var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var aa,baa,caa,ma,daa,na,eaa,pa,sa,ta,ua,gaa,haa,Da,Ea,iaa,jaa,Ga,kaa,Ha,Ia,Ja,laa,Ka,Qa,Ra,naa,oaa,bb,paa,cb,db,eb,jb,kb,qaa,raa,ob,taa,uaa,Cb,vaa,Ib,waa,xaa,Gb,yaa,zaa,Aaa,Baa,Daa,Caa,Eaa,Pb,Faa,Rb,Tb,Xb,cc,dc,ec,fc,Naa,Oaa,gc,ic,hc,Paa,Qaa,Raa,Saa,jc,Taa,kc,mc,nc,Uaa,oc,pc,Waa,Yaa,sc,tc,aba,uc,yc,bba,cba,Fc,dba,Nc,Pc,gba,hba,Qc,mba,Wc,jba,lba,Uc,Tc,$c,ad,nba,bd,oba,dd,ed,pba,gd,hd,id,ld,od,rd,td,wd,yd,Bba,zba,Aba,Dba,Eba,Bd,Cd,Dd,Hba,Fd,Iba,Jba,Kba,Mba,Lba,Jd,Ld,Nba,Pd,Rd,Td,Oba,Wd, Xd,Zd,$d,Pba,Qba,Rba,Sba,ce,de,ie,Vba,Xba,Wba,je,le,Yba,ke,qe,be,$ba,Zba,we,ve,ae,ye,aca,Be,Ce,De,bca,dca,fca,Je,Le,Me,jca,lca,Oe,mca,Ne,qca,He,hca,sca,pca,nca,oca,tca,rca,Pe,kca,Se,vca,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Fca,Gca,Hca,Ica,Jca,Kca,Ve,Lca,Pca,Qca,Rca,Wca,Ze,Vca,Sca,Yca,$ca,bda,af,dda,cf,df,fda,ff,ef,gda,gf,hda,hf,jf,mf,of,ida,pf,jda,kda,qf,nf,rf,tf,sf,uf,vf,wf,xf,yf,lda,nda,Cf,oda,pda,Df,Ef,Hf,rda,sda,uda,vda,xda,If,yda,Jf,zda,Kf,Ada,Lf,Mf,Bda,Nf,Of,Pf,Qf,Cda,Sf,Tf,Uf,Vf,Xf,Yf,Eda,bg, cg,dg,Fda,Gda,eg,Ida,fg,gg,hg,Kda,kg,Lda,Mda,Nda,jg,Jda,ig,Oda,Pda,Qda,lg,mg,ng,Rda,qg,sg,tg,Vda,Tda,vg,Wda,Uda,Yda,Xda,Zda,$da,yg,aea,bea,Ag,Cg,dea,Eg,eea,Dg,Hg,Gg,Ig,Lg,kea,iea,jea,Ng,lea,mea,Pg,oea,Qg,Rg,pea,Vg,Wg,Xg,Sg,Ug,Tg,bh,hea,ch,qea,rea,dh,eh,fh,Mg,Og,gh,sea,tea,hh,ih,jh,kh,lh,mh,nh,oh,ph,qh,rh,sh,uea,th,yea,Bea,vea,Aea,zea,xea,wea,Cea,uh,Dea,xh,Gea,yh,Fh,Jea,Gh,Lea,Mea,Iea,Nea,Ih,Rea,Sea,Tea,Jh,Vea,Wea,zh,Uea,Xea,Qea,Mh,Nh,Oh,Ph,Qh,Rh,Zea,$ea,Sh,afa,bfa,Th,Uh,Wh,cfa,Vh,Xh,Yh,Zh,ai,bi,ffa, gfa,ifa,hfa,jfa,ei,fi,gi,lfa,mfa,nfa,ii,ji,ki,li,oi,pi,qi,ofa,ri,qfa,ui,vi,wi,xi,yi,zi,rfa,Ci,tfa,Bi,Ai,sfa,ufa,vfa,Ei,wfa,Di,Fi,Gi,Hi,Ii,Ji,xfa,Ki,yfa,Oi,zfa,Cfa,Pi,Qi,Ri,Si,Wi,Efa,Xi,Yi,Zi,Ffa,Gfa,bj,Hfa,cj,dj,Kfa,Mfa,Ofa,Nfa,Pfa,fj,Qfa,ij,mj,oj,pj,qj,Tfa,nj,rj,sj,tj,vj,wj,Vfa,xj,yj,Xfa,Wfa,Yfa,Zfa,$fa,cga,zj,Aj,Bj,Cj,dga,Dj,fga,gga,hga,iga,jga,Fj,kga,lga,mga,nga,Gj,Hj,Ij,Jj,Kj,Lj,Mj,pga,Nj,oga,Oj,qga,rga,sga,tga,Pj,Qj,Rj,Sj,Tj,uga,Uj,Vj,Wj,Xj,Zj,yga,vga,ck,xga,dk,wga,bk,ak,fk,Aga,hk,gk,mk,nk,pk, Dga,ok,sk,Ega,tk,Bga,Hga,Iga,Jga,wk,xk,yk,Kga,zk,Ak,Bk,Ck,Lga,Dk,Ek,Fk,Mga,Nga,Gk,Oga,Hk,Rga,Sga,Tga,Uga,Pga,Ik,Jk,Ok,Pk,Wga,Rk,Qk,Xga,Yga,Zga,Vk,$ga,Wk,Xk,aha,Yk,cha,Zk,bha,dha,eha,$k,al,bl,cl,fl,gl,hl,fha,il,jl,kl,gha,iha,jha,ml,ol,nl,ql,rl,sl,lha,mha,tl,ul,vl,oha,pha,sha,qha,tha,xha,wl,wha,uha,xl,yl,yha,zl,zha,Al,Bha,Aha,Cha,Dha,El,Fl,Eha,Fha,Gha,Gl,Hl,Hha,Il,Iha,Jha,Lha,Pha,Jl,Qha,Rha,Sha,Tha,Uha,Ml,Vha,Wha,Xha,Tl,Sl,Rl,Yha,Zha,$ha,Ul,Vl,Wl,bia,am,bm,cm,cia,dm,eia,fia,gia,em,im,jm,om,pm,sm,iia, kia,jia,lia,mia,ym,nia,oia,zm,pia,qia,ria,sia,Im,Bm,Jm,Km,Lm,tia,uia,via,Mm,Nm,Om,wia,xia,yia,Pm,zia,Qm,Rm,Aia,Bia,Cia,Dia,Eia,Fia,Sm,Tm,Um,Wm,Iia,Xm,Ym,Jia,Hia,Vm,Kia,Zm,$m,an,cn,bn,Lia,Mia,Nia,dn,Pia,en,Ria,Sia,Tia,Uia,Via,Wia,Xia,Yia,hn,jn,kn,$ia,Zia,aja,bja,mn,cja,nn,dja,eja,on,pn,qn,fja,rn,sn,gja,tn,un,vn,wn,xn,yn,zn,An,hja,ija,jja,kja,Bn,lja,nja,mja,Dn,En,pja,oja,sja,vja,uja,Fn,wja,xja,yja,Aja,zja,Bja,Gn,Cja,Dja,In,Eja,Fja,Gja,Hja,Jn,Ija,Kn,Jja,Ln,Mn,Lja,Nn,Mja,On,Pn,Nja,Oja,Qn,Sn,Qja,Tn,Pja, Rja,Sja,Tja,Vja,Un,Wja,eo,fo,Yja,Zja,bka,cka,go,ho,io,jo,ko,lo,mo,no,oo,po,qo,ro,so,gka,fka,hka,jka,ika,lka,eka,kka,dka,to,uo,nka,oka,pka,yo,zo,Ao,vo,rka,Bo,mka,tka,uka,ska,Co,Do,Eo,Fo,vka,qka,wka,Go,xka,yka,zka,Aka,Bka,Eka,Fka,Gka,Hka,Ika,Lka,Nka,Pka,Qka,Ska,Rka,Uka,Wka,Xka,Vo,Yka,Uo,Xo,Zka,ap,cp,dp,$ka,ala,bla,kp,dla,ela,tp,fla,hla,up,ila,jla,pla,lla,xp,yp,zp,Bp,Cp,ula,Dp,Ep,Fp,wla,Ip,xla,yla,Jp,Ala,Lp,Mp,Np,Op,Bla,Pp,Rp,Sp,Tp,Up,Cla,Wp,Xp,Yp,Zp,$p,aq,Dla,Ela,Fla,Gla,Hla,Ila,bq,Jla,iq,Kla,Lla,Mla, jq,lq,mq,nq,qq,rq,sq,Ola,vq,wq,xq,Pla,Qla,yq,Rla,Sla,Fq,$la,ama,bma,Gq,cma,dma,gma,Iq,ima,hma,Kq,jma,Mq,kma,Nq,lma,Oq,Pq,Qq,Rq,Sq,Tq,Uq,Vq,Wq,Xq,Yq,Zq,$q,ar,br,cr,dr,er,fr,gr,hr,ir,jr,kr,lr,mr,nr,mma,or,nma,pr,oma,qr,rr,sr,tr,ur,vr,wr,yr,zr,Ar,Br,Cr,Dr,Er,Fr,Gr,Hr,Ir,pma,qma,Kr,Mr,rma,Qr,Rr,Sr,Tr,Ur,Xr,vma,Yr,Zr,$r,xma,wma,sma,cs,bs,Bma,ds,ms,js,ns,os,Dma,Gma,qs,Hma,Ima,Kma,Pma,Lma,Nma,Oma,ts,rs,Qma,vs,ws,xs,Rma,Ds,Sma,Es,Tma,Uma,Gs,Vma,Is,Js,Ks,Ls,Ms,Xma,Ps,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,Zma,$s,ct,bt, ana,ena,cna,dna,fna,gna,ina,jna,hna,lna,ft,gt,jt,mna,nna,it,kt,pna,qna,una,tna,ot,pt,qt,rt,tt,vt,wna,xna,yna,Dt,Et,zna,Ana,Bna,Jt,Kt,Lt,Cna,Dna,Fna,Hna,Pt,Ina,St,Qt,Vt,Wt,Yt,Jna,eu,fu,gu,hu,ju,ku,mu,Ona,Pna,ou,Qna,Rna,qu,Sna,Tna,ru,tu,Una,Vna,Xna,xu,Zna,$na,vu,aoa,boa,doa,coa,Bu,Yna,foa,goa,Hu,Fu,hoa,ioa,Iu,Ju,joa,koa,Mu,loa,moa,noa,ooa,Ru,poa,qoa,roa,soa,toa,uoa,voa,woa,Tu,xoa,Vu,zoa,Aoa,Boa,Coa,Doa,Wu,iv,Foa,Ioa,jv,Joa,Loa,Eoa,Moa,Noa,Ooa,Goa,Hoa,Xu,Yu,ev,Koa,$u,Zu,Poa,Qoa,Roa,Soa,Toa,Uoa,Zoa,Voa, nv,ov,qv,apa,uv,bpa,pv,vv,cpa,yv,dpa,fpa,Dv,epa,opa,gpa,npa,Hv,ppa,spa,Iv,Gv,qpa,rpa,tpa,Kv,vpa,wpa,xpa,ypa,zpa,Apa,Bpa,upa,Dpa,Epa,Fpa,Gpa,Hpa,Jpa,Ov,Kpa,Pv,Qv,Rv,Lpa,Mpa,Uv,Vv,Opa,Npa,Wv,Ppa,Rpa,Tpa,Spa,Upa,Xpa,Vpa,iw,hw,Ypa,gw,jw,kw,lw,Zpa,$pa,nw,bqa,qw,pw,tw,uw,vw,cqa,ww,yw,dqa,Aw,Cw,Dw,eqa,fqa,gqa,Ew,Gw,hqa,Hw,Iw,Jw,jqa,Kw,kqa,Mw,Pw,Ow,Nw,Qw,Rw,nqa,tqa,vqa,sqa,rqa,uqa,Uw,Xw,xqa,wqa,bx,cx,mqa,Gqa,ix,Fqa,Jqa,Eqa,Tw,jx,ax,gx,Hqa,Zw,pqa,oqa,qqa,Ww,Dqa,nx,Rqa,Qqa,Sqa,rx,Uqa,tx,ux,wx,Wqa,Xqa,Yqa,Zqa, $qa,xx,bra,cra,dra,zx,era,fra,gra,ira,jra,Cx,lra,Dx,mra,nra,pra,qra,Fx,rra,tra,Gx,ura,Hx,Ix,au,Cra,zra,Fra,Ox,Hra,Kra,Qx,Ora,Pra,Qra,Sra,Rra,Tra,Zx,Ura,Xx,$x,Yx,Rx,hy,gy,ky,ly,ny,Wra,oy,sy,ty,Xra,Yra,wy,$ra,asa,bsa,csa,dsa,esa,fsa,gsa,hsa,isa,By,jsa,Cy,Ey,ksa,lsa,msa,Fy,nsa,osa,Jy,Ky,Ly,psa,My,qsa,Oy,ssa,rsa,Qy,Ry,Sy,Ty,tsa,Uy,Vy,usa,vsa,Wy,Xy,zsa,wsa,ysa,xsa,Yy,Zy,$y,Asa,Bsa,Csa,az,Esa,Hsa,Gsa,bz,cz,dz,ez,fz,hz,iz,jz,kz,lz,mz,Isa,Jsa,Ksa,Lsa,nz,oz,pz,qz,sz,uz,Nsa,Msa,wz,Osa,xz,yz,zz,Az,Bz,Ez,Fz, Gz,Hz,Qsa,Iz,Jz,Kz,Rsa,Mz,Oz,Ssa,Pz,Usa,Vsa,Wsa,Xsa,Ysa,Zsa,ata,cta,mA,dta,oA,nA,gta,hta,ita,qA,rA,kta,tA,uA,vA,wA,xA,yA,zA,AA,mta,BA,lta,CA,DA,ota,nta,EA,FA,GA,HA,JA,qta,rta,LA,MA,OA,$A,ZA,tta,NA,wta,aB,zta,Ata,Bta,Cta,yta,Dta,Eta,dB,cB,vta,xta,eB,Ita,Jta,iB,Kta,fB,gB,Lta,jB,Nta,Pta,kB,lB,Qta,mB,Sta,nB,Yta,Wta,Tta,Vta,Uta,pB,qB,rB,sB,tB,uB,vB,xB,$ta,dua,BB,DB,CB,EB,eua,fua,hua,iua,gua,jua,nua,pua,oua,qua,rua,sua,FB,uua,tua,GB,HB,IB,vua,JB,KB,LB,xua,yua,MB,wua,NB,Bua,OB,PB,QB,RB,SB,TB,UB,VB,WB,XB, YB,ZB,$B,aC,bC,cC,dC,eC,fC,gC,hC,iC,jC,kC,lC,mC,nC,oC,pC,qC,rC,sC,tC,uC,vC,wC,xC,yC,zC,AC,BC,CC,DC,EC,FC,GC,HC,IC,JC,KC,LC,MC,NC,OC,PC,QC,RC,SC,TC,UC,VC,WC,XC,YC,ZC,$C,aD,bD,cD,dD,fD,gD,Dua,hD,X,iD,eD,jD,kD,lD,Fua,nD,Hua,mD,Iua,pD,Jua,rD,oD,sD,tD,uD,wD,Lua,Mua,Nua,Oua,FD,GD,BD,HD,Qua,Rua,Sua,Tua,Kua,Uua,vD,Vua,Wua,JD,OD,KD,yD,Xua,xD,ID,LD,PD,Zua,zD,AD,ND,MD,$ua,QD,RD,SD,TD,ava,UD,VD,WD,XD,YD,cva,dva,fva,gva,$D,aE,bE,cE,lva,nva,pva,qva,eE,sva,tva,kE,uva,lE,mE,nE,oE,pE,qE,vva,xva,wva,yva,zva,uE,vE, xE,yE,zE,AE,BE,Ava,CE,DE,wE,GE,HE,IE,JE,Bva,FE,Dva,KE,Eva,Fva,LE,Gva,ME,NE,Hva,Iva,OE,Jva,Kva,PE,Lva,Mva,Nva,Ova,Pva,QE,Qva,Rva,RE,SE,TE,Sva,UE,VE,Tva,WE,XE,Uva,YE,Vva,ZE,Wva,Xva,$E,aF,Yva,Zva,$va,awa,bF,bwa,cwa,dwa,cF,ewa,dF,fwa,eF,gwa,fF,hwa,jF,iwa,kF,lF,jwa,mF,kwa,nF,oF,lwa,mwa,rF,sF,owa,tF,pwa,qwa,nwa,rwa,swa,uF,vF,wF,xF,vwa,yF,zF,BF,wwa,CF,DF,FF,IF,GF,MF,NF,xwa,OF,PF,QF,RF,ywa,TF,UF,VF,zwa,WF,XF,YF,KF,ZF,$F,aG,Awa,bG,cG,dG,Bwa,eG,fG,gG,hG,iG,kG,lG,mG,nG,Cwa,Dwa,Ewa,Fwa,sG,oG,tG,uG,Gwa,Hwa,Iwa, vG,wG,xG,Jwa,Kwa,qG,Lwa,Mwa,yG,Nwa,zG,AG,CG,DG,EG,FG,GG,IG,JG,LG,MG,NG,OG,KG,Qwa,Rwa,Swa,PG,QG,RG,Twa,TG,Vwa,UG,VG,WG,XG,ZG,Wwa,YG,$G,sH,vH,Xwa,yH,zH,Zwa,AH,BH,$wa,axa,bxa,CH,dxa,SG,cxa,exa,EH,DH,fxa,FH,gxa,GH,hxa,ixa,jxa,kxa,lxa,HH,mxa,IH,JH,MH,NH,OH,nxa,oxa,pxa,qxa,rxa,PH,sxa,QH,uxa,SH,TH,wxa,vxa,xxa,yxa,zxa,VH,WH,XH,Axa,Bxa,Cxa,Dxa,Exa,Fxa,Gxa,Hxa,Ixa,Jxa,ZH,$H,Kxa,Lxa,aI,bI,Mxa,cI,dI,fI,Nxa,gI,hI,iI,Oxa,jI,Pxa,kI,Qxa,lI,Rxa,Sxa,mI,Txa,Uxa,Vxa,nI,oI,pI,qI,rI,Wxa,sI,tI,uI,Xxa,vI,wI,Yxa,Zxa,$xa, xI,aya,yI,zI,AI,BI,eva,bya,cya,dya,eya,fya,CI,DI,EI,FI,GI,HI,II,JI,KI,LI,MI,gya,hya,TI,UI,iya,VI,$I,kya,oya,tya,pya,vya,wya,uya,xya,yya,zya,kJ,Cya,Eya,Gya,Hya,Iya,nJ,Kya,Lya,Pya,oJ,Qya,Mya,pJ,qJ,Rya,Uya,Tya,Yya,Vya,rJ,sJ,cza,vJ,gza,fza,eza,kza,jza,lza,mza,pza,nza,oza,dza,qza,rza,wJ,iza,sza,xJ,hza,AJ,BJ,uza,xza,vza,Aza,Iza,Hza,Bza,Jza,Dza,Eza,Cza,Nza,Pza,Rza,Tza,Wza,Xza,Zza,$za,bAa,aAa,gAa,dAa,cAa,hAa,kAa,lAa,mAa,nAa,NJ,Dya,qAa,oAa,QJ,rAa,tAa,TJ,wAa,xAa,vAa,UJ,yAa,VJ,WJ,rE,XJ,Bya,ZJ,$J,aK,zAa,AAa, bK,BAa,CAa,DAa,cK,dK,eK,fK,gK,hK,iK,jK,kK,EAa,FAa,lK,GAa,mK,LH,nK,oK,HAa,pK,IAa,JAa,Fya,uAa,KAa,qK,sE,ZD,zJ,LAa,MAa,sK,bza,tJ,NAa,OJ,PJ,EJ,DJ,CJ,GJ,Uza,Yza,FJ,Zya,iAa,OAa,Kza,Fza,tK,sAa,mJ,QAa,PAa,tza,Vza,RAa,jAa,KJ,$ya,aza,Sya,Sza,Qza,zza,wza,Oya,Nya,Jya,Mza,Gza,eAa,Wya,Xya,IJ,JJ,HJ,fAa,Oza,TAa,SAa,uK,vK,wK,xK,yK,zK,FK,VAa,IK,KK,WAa,XAa,YAa,ZAa,$Aa,LK,aBa,MK,PK,QK,bBa,dBa,cBa,eBa,fBa,gBa,hBa,iBa,jBa,SK,UK,lBa,VK,WK,XK,YK,mBa,nBa,ZK,$K,aL,oBa,pBa,bL,dL,hL,iL,jL,kL,lL,mL,nL,oL,pL,qL,rL,sL,tL,qBa,rBa, uL,vL,wL,xL,yL,zL,sBa,tBa,AL,EL,wBa,xBa,FL,HL,yBa,zBa,ABa,IL,JL,KL,LL,ML,NL,OL,EBa,QL,PL,FBa,CBa,DBa,GBa,RL,SL,HBa,IBa,TL,JBa,$t,LBa,KBa,NBa,OBa,QBa,RBa,PBa,SBa,VBa,$L,aM,WBa,XBa,YBa,ZBa,bM,cM,$Ba,aCa,bCa,cCa,fCa,hCa,iCa,gCa,gM,iM,hM,jCa,eM,kCa,lCa,mCa,fM,qCa,pCa,oCa,nCa,rCa,sCa,dCa,tCa,uCa,eCa,vCa,zCa,wCa,xCa,yCa,CCa,ACa,BCa,DCa,kM,FCa,ECa,ICa,GCa,JCa,HCa,KCa,LCa,MCa,NCa,OCa,PCa,QCa,RCa,SCa,TCa,UCa,VCa,WCa,YCa,ZCa,$Ca,XCa,aDa,bDa,eDa,mM,oM,qM,sM,fDa,tM,uM,vM,jDa,lDa,kDa,nDa,vDa,DM,xM,mDa,iDa,hDa, gDa,CM,yM,BM,IM,JM,yDa,KM,LM,HM,CDa,zDa,ADa,DDa,MM,NM,FDa,PM,QM,RM,SM,TM,UM,VM,GDa,HDa,WM,XM,ZM,JDa,KDa,YM,$M,NDa,ODa,aN,PDa,dN,QDa,eN,gN,RDa,fN,hN,SDa,jN,UDa,VDa,lN,mN,rN,XDa,oN,sN,uN,YDa,wN,qN,tN,ZDa,xN,$Da,yN,aEa,nN,pN,WDa,vN,zN,bEa,cEa,AN,dEa,BN,eEa,CN,DN,FN,EN,GN,HN,fEa,gEa,IN,JN,KN,LN,hEa,MN,NN,iEa,ON,jEa,PN,QN,RN,kEa,SN,lEa,mEa,nEa,TN,oEa,pEa,qEa,rEa,sEa,UN,VN,WN,XN,tEa,uEa,ZN,vEa,$N,aO,wEa,xEa,bO,yEa,zEa,DEa,EEa,AEa,BEa,CEa,dO,eO,fO,gO,FEa,GEa,hO,iO,HEa,jO,kO,JEa,IEa,mO,lO,KEa,LEa,MEa,NEa, nO,OEa,pO,qO,PEa,REa,SEa,sO,wO,XEa,tDa,zM,YEa,ZEa,$Ea,aFa,bFa,cFa,wM,tO,dFa,eFa,zO,AO,KHa,OHa,lIa,BO,pIa,mIa,nIa,rIa,sIa,CO,tIa,qIa,uIa,DO,EO,FO,vIa,wIa,GO,xIa,HO,yIa,IO,xO,AIa,BIa,zIa,EIa,NO,GIa,uDa,oDa,OO,PO,RO,SO,TO,UO,VO,QO,YO,IIa,$O,KIa,aP,MIa,NIa,LIa,JIa,OIa,PIa,QIa,fP,RIa,SIa,UIa,gP,xDa,hP,VIa,XIa,EM,YIa,ZIa,$Ia,AM,pDa,rDa,sDa,jP,kP,lP,mP,aJa,bJa,nP,cJa,oP,pP,dJa,qP,rP,eJa,fJa,sP,tP,uP,vP,wP,xP,hJa,gJa,yP,iJa,jJa,lJa,zP,mJa,kJa,SP,QP,TP,VP,WP,nJa,uJa,DD,RP,ZP,yJa,cQ,AJa,GP,dQ,FP,eQ,PP,hQ,FJa, iQ,jQ,GJa,HJa,kQ,IJa,JJa,KJa,LJa,lQ,MJa,RJa,QJa,NJa,PJa,OJa,mQ,SJa,nQ,TJa,UJa,WJa,XJa,YJa,cKa,sQ,tQ,fKa,uQ,vQ,gKa,jKa,kKa,lKa,mKa,wQ,nKa,pKa,qKa,IQ,zKa,uKa,vKa,BKa,JQ,CKa,EKa,DKa,FKa,LQ,OQ,GKa,KQ,PQ,QQ,HKa,KKa,IKa,NKa,VQ,hR,mR,qR,pR,jLa,ZKa,ZQ,rR,eR,sR,XKa,lLa,kLa,tR,UQ,dR,nLa,oLa,pLa,rLa,mLa,vR,qLa,tLa,uLa,sLa,yR,wLa,TQ,aR,wR,bLa,JKa,fLa,ER,bR,KR,nR,MR,NR,JLa,KLa,oR,LLa,PR,MLa,NLa,cR,OLa,YKa,PLa,BLa,$Q,RKa,QLa,PKa,OKa,LKa,RR,SLa,bMa,aMa,dMa,eMa,VR,YR,ZR,WR,aS,fMa,gMa,bS,iMa,jMa,lMa,mMa,kMa,nMa,sMa, qMa,uMa,wMa,xMa,zMa,yMa,hS,AMa,DMa,EMa,MS,NS,GMa,PS,HMa,SS,TS,US,VS,IMa,WS,JMa,NMa,XS,YS,OMa,PMa,RMa,QMa,SMa,TMa,UMa,ZS,$S,VMa,XMa,YMa,ZMa,dT,bNa,aNa,eT,fT,gT,cNa,dNa,eNa,fNa,gNa,iNa,hNa,jNa,hT,lNa,kNa,mNa,nNa,iT,jT,oNa,qNa,rNa,sNa,tNa,kT,uNa,lT,vNa,mT,nT,xNa,yNa,zNa,wNa,oT,DNa,BNa,CNa,ENa,pT,FNa,GNa,HNa,JNa,INa,qT,KNa,LNa,MNa,tT,rT,sT,NNa,uT,ONa,PNa,QNa,SNa,RNa,AT,UNa,VNa,TNa,WNa,BT,XNa,CT,YNa,$Na,ZNa,aOa,bOa,cOa,dOa,FT,IT,GT,eOa,JT,KT,gOa,MT,NT,hOa,LT,jOa,OT,QT,kOa,RT,ST,TT,lOa,oOa,nOa,VT,WT,XT, rOa,pOa,qOa,ZT,sOa,wOa,uOa,tOa,vOa,$T,yOa,zOa,aU,bU,DOa,BOa,COa,cU,FOa,AOa,GOa,dU,eU,HOa,IOa,JOa,fU,KOa,LOa,MOa,NOa,OOa,POa,QOa,TOa,ROa,UOa,VOa,WOa,XOa,ZOa,pU,qU,$Oa,oU,uU,vU,cPa,xU,sU,tU,wU,dPa,ePa,yU,kPa,gPa,hPa,lPa,mPa,jPa,fPa,zU,oPa,nPa,pPa,vPa,CU,yPa,BPa,APa,zPa,tPa,uPa,qPa,rPa,wPa,DU,EU,DPa,GS,tMa,GU,EPa,GPa,FPa,xPa,IPa,JPa,KPa,IU,LPa,PU,NPa,OPa,PPa,RPa,QPa,SPa,QU,RU,TPa,WPa,XPa,TU,VPa,YPa,ZPa,UPa,UU,XU,$Pa,aQa,WU,bQa,cQa,dQa,eQa,gQa,fQa,jQa,kQa,hQa,mQa,nQa,iQa,$U,aV,oQa,qQa,bV,pQa,rQa,tQa, sQa,uQa,cV,vQa,wQa,xQa,dV,eV,zQa,yQa,AQa,BQa,DQa,CQa,EQa,FQa,GQa,HQa,IQa,KQa,gV,fV,hV,LQa,MQa,JQa,RQa,SQa,TQa,WQa,VQa,UQa,XQa,YQa,iV,jV,ZQa,$Qa,aRa,bRa,dRa,kV,mV,cRa,eRa,fRa,gRa,hRa,iRa,oV,jRa,kRa,nRa,pV,oRa,mRa,qV,rV,pRa,qRa,sRa,uRa,rRa,tRa,tV,vRa,xRa,yRa,ARa,BRa,uV,vV,CRa,wRa,FRa,ERa,DRa,wV,xV,HRa,GRa,yV,zV,IRa,JRa,AV,KRa,LRa,MRa,BV,NRa,CV,ORa,DV,PRa,SRa,TRa,URa,WRa,XRa,YRa,VRa,$Ra,ZRa,aSa,dSa,GV,fSa,eSa,bSa,cSa,gSa,hSa,HV,IV,iSa,jSa,kSa,lSa,mSa,nSa,pSa,qSa,ySa,tSa,uSa,rSa,ASa,OV,BSa,FSa,RV,GSa, CSa,NV,UV,TV,PV,VV,JSa,LSa,KSa,WV,QV,MV,ISa,SV,DSa,HSa,NSa,JV,XV,OSa,PSa,ESa,YV,ZV,QSa,$V,aW,bW,RSa,SSa,USa,VSa,TSa,cW,XSa,WSa,dW,YSa,eW,fW,ZSa,$Sa,aTa,bTa,cTa,eTa,gTa,fTa,dTa,gW,hTa,jTa,iTa,hW,iW,kTa,mTa,nTa,jW,lTa,oTa,pTa,kW,qTa,lW,oW,nW,sTa,rTa,tTa,pW,qW,uTa,vTa,xTa,wTa,yTa,zTa,ATa,sW,BTa,CTa,DTa,ETa,FTa,GTa,ITa,JTa,KTa,HTa,LTa,MTa,NTa,OTa,PTa,wW,QTa,xW,TTa,yW,VTa,zW,UTa,XTa,YTa,WTa,AW,ZTa,$Ta,aUa,bUa,CW,cUa,dUa,eUa,kUa,pUa,nUa,gUa,FW,mUa,fUa,oUa,rUa,sUa,qUa,HW,uUa,vUa,wUa,yUa,zUa,xUa,AUa,iOa, MW,NW,OW,BUa,QW,DUa,EUa,FUa,RW,GUa,HUa,IUa,JUa,KUa,LUa,CUa,MUa,SW,NUa,SUa,TUa,UUa,UW,VUa,WW,XW,WUa,YW,XUa,VW,YUa,ZUa,fVa,bX,dX,hVa,eX,iVa,$Ua,fX,kVa,lVa,nVa,gX,hX,oVa,gVa,iX,qVa,pVa,jX,dVa,$W,rVa,sVa,tVa,uVa,vVa,aVa,cVa,aX,yVa,zVa,BVa,AVa,lX,nX,oX,EVa,FVa,kX,GVa,CVa,DVa,wVa,HVa,JVa,KVa,QVa,RVa,LVa,rX,mX,xVa,IVa,TVa,XVa,tX,YVa,ZVa,VVa,vX,$Va,aWa,SVa,bWa,WVa,cWa,wX,uX,dWa,fWa,eWa,sX,hWa,zX,iWa,xX,AX,yX,BX,jWa,kWa,nWa,mWa,pWa,qWa,oWa,EX,DX,sWa,tWa,uWa,vWa,wWa,yWa,xWa,zWa,GX,HX,AWa,BWa,FWa,CWa,GWa,HWa, DWa,EWa,IWa,JWa,KWa,IX,LWa,NWa,PWa,SWa,QWa,RWa,OX,SX,UWa,TX,VWa,WWa,XWa,UX,ZWa,$Wa,aXa,YWa,dXa,eXa,VX,WX,fXa,gXa,hXa,tKa,yKa,iXa,kXa,jXa,lXa,YX,ZX,mXa,nXa,aY,bY,$X,oXa,pXa,qXa,rXa,tXa,xXa,DXa,HXa,fY,IXa,KX,KXa,LXa,MXa,NXa,OXa,PXa,QXa,hY,RXa,iY,SXa,jY,UXa,VXa,kY,WXa,XXa,YXa,ZXa,$Xa,aYa,bYa,cYa,dYa,eYa,fYa,lY,hYa,gYa,lYa,mYa,nYa,mY,nY,oY,pY,qY,rY,sY,oYa,tY,pYa,qYa,vYa,yYa,zYa,AYa,BYa,xY,yY,xYa,uYa,CYa,vY,rYa,EYa,uY,wY,sYa,tYa,zY,FYa,GYa,wYa,DYa,HYa,JYa,IYa,AY,OYa,MYa,NYa,KYa,PYa,BY,LYa,CY,DY,QYa,RYa, SYa,EY,UYa,VYa,FY,WYa,GY,XYa,YYa,ZYa,$Ya,bZa,cZa,jYa,jZa,fZa,aZa,lZa,mZa,gZa,hZa,eZa,iZa,IY,dZa,kZa,sZa,qZa,pZa,oZa,nZa,JY,tZa,JX,KY,LY,MY,uZa,vZa,wZa,NY,xZa,QX,yZa,OY,MX,NX,MWa,QY,SY,CZa,DZa,UY,RY,PY,VY,AZa,zZa,BZa,WY,EZa,FZa,kYa,LX,GZa,TY,HZa,IZa,JZa,KZa,XY,LZa,MZa,NZa,OZa,bXa,cXa,YY,PZa,QZa,RZa,SZa,ZY,VZa,TZa,WZa,YZa,UZa,$Za,b_a,a_a,d_a,bZ,eZ,g_a,f_a,k_a,i_a,l_a,m_a,h_a,j_a,e_a,n_a,o_a,p_a,fZ,q_a,TXa,r_a,s_a,gZ,t_a,u_a,v_a,w_a,x_a,iZ,E_a,D_a,nZ,F_a,C_a,I_a,J_a,K_a,M_a,N_a,O_a,P_a,Q_a,R_a,T_a,U_a, V_a,S_a,qZ,hZ,W_a,X_a,oZ,Z_a,L_a,pZ,$_a,a0a,d0a,g0a,e0a,f0a,h0a,b0a,c0a,l0a,j0a,m0a,n0a,k0a,o0a,p0a,i0a,q0a,r0a,rZ,s0a,t0a,u0a,v0a,y0a,x0a,w0a,sZ,z0a,B0a,C0a,D0a,wZ,xZ,iYa,E0a,F0a,I0a,H0a,G0a,J0a,L0a,M0a,K0a,ZZa,yZ,O0a,P0a,Q0a,W0a,T0a,U0a,V0a,X0a,Z0a,rZa,tZ,S0a,R0a,Y0a,PX,HY,aZ,b1a,a1a,c1a,d1a,e1a,f1a,A0a,dZ,cZ,g1a,i1a,h1a,j1a,XZa,k1a,$0a,c_a,AZ,BZ,m1a,CZ,n1a,o1a,p1a,q1a,r1a,s1a,u1a,t1a,w1a,x1a,B1a,y1a,A1a,C1a,EZ,G1a,E1a,F1a,J1a,K1a,L1a,M1a,N1a,DZ,O1a,I1a,D1a,FZ,P1a,z1a,Q1a,GZ,S1a,T1a,U1a,R1a,HZ, X1a,W1a,$1a,Z1a,Y1a,a2a,b2a,IZ,c2a,d2a,h2a,e2a,f2a,g2a,i2a,j2a,k2a,m2a,l2a,n2a,o2a,p2a,r2a,t2a,s2a,u2a,q2a,v2a,x2a,z2a,w2a,A2a,B2a,D2a,C2a,E2a,y2a,MZ,F2a,G2a,H2a,J2a,L2a,M2a,O2a,Q2a,QZ,S2a,T2a,U2a,V2a,W2a,Y2a,X2a,a3a,MVa,RZ,pX,Z2a,$2a,b3a,UZ,d3a,c3a,e3a,f3a,g3a,j3a,h3a,m3a,VZ,i3a,n3a,WZ,r3a,YZ,ZZ,s3a,XZ,t3a,$Z,w3a,v3a,p3a,q3a,x3a,y3a,z3a,o3a,A3a,a_,B3a,u3a,R2a,TZ,D3a,qX,E3a,OVa,NVa,F3a,G3a,H3a,I3a,J3a,K3a,c_,PVa,L3a,N3a,O3a,P3a,M3a,Q3a,R3a,d_,S3a,T3a,U3a,V3a,e_,Pwa,W3a,X3a,Y3a,g_,a4a,b4a,h_,d4a,e4a, c4a,$3a,i_,f_,Z3a,l_,k_,f4a,m_,j_,j4a,m4a,o4a,p4a,r4a,h4a,n4a,s4a,i4a,t4a,u4a,w4a,n_,x4a,v4a,p_,z4a,A4a,l4a,k4a,y4a,B4a,q4a,g4a,r_,H4a,E4a,I4a,F4a,D4a,J4a,C4a,M4a,s_,N4a,P4a,rG,R4a,T4a,U4a,V4a,w_,W4a,bVa,Z4a,x_,KZ,$4a,b5a,X4a,JW,q_,c5a,d5a,C_,Y_a,S4a,B_,t_,g5a,h5a,j5a,i5a,k5a,a5a,z_,l5a,LW,m5a,lUa,o5a,n5a,N0a,JZ,E_,tUa,p5a,jVa,q5a,mOa,y_,r5a,iUa,s5a,jUa,t5a,v5a,f5a,Q4a,x5a,w5a,A_,u_,y5a,F_,GW,A5a,B5a,cX,C5a,D5a,E5a,hUa,D_,vZ,Y4a,F5a,l1a,o_,P5a,L5a,R5a,J5a,S5a,I5a,H_,KW,X5a,T5a,V5a,U5a,Z5a,K_,L_,b6a, a6a,$5a,N_,O5a,R_,d6a,Q_,M_,f6a,i6a,j6a,M5a,g6a,U_,k6a,N5a,c6a,O_,l6a,J_,m6a,n6a,o6a,X_,Y_,e6a,Z_,$_,p6a,P_,Y5a,q6a,r6a,s6a,h6a,t6a,S_,u6a,T_,v6a,x6a,I_,a0,W5a,y6a,z6a,W_,V_,A6a,lWa,B6a,C6a,D6a,b0,c0,G6a,J6a,L6a,F6a,T6a,U6a,V6a,W6a,X6a,Y6a,Z6a,a7a,$6a,d0,e0,f0,b7a,c7a,g0,KH,d7a,h0,e7a,i0,j0,f7a,YJ,k0,LJ,g7a,RJ,pAa,h7a,uJ,i7a,wH,xH,l0,rK,j7a,k7a,l7a,m0,n7a,o7a,n0,p0,q0,r7a,s7a,r0,t7a,p7a,q7a,u7a,v7a,w7a,x7a,y7a,s0,A7a,Cva,RH,B7a,C7a,UH,z7a,EE,D7a,E7a,F7a,t0,H7a,pF,I7a,u0,v0,J7a,w0,K7a,o0,L7a,M7a,Ywa, x0,y0,N7a,z0,A0,O7a,B0,P7a,C0,D0,Q7a,R7a,txa,E0,S7a,U7a,T7a,F0,V7a,G0,H0,W7a,X7a,Y7a,Z7a,$7a,a8a,c8a,J0,b8a,d8a,e8a,f8a,g8a,k8a,h8a,i8a,j8a,m8a,o8a,p8a,q8a,n8a,K0,r8a,s8a,t8a,u8a,v8a,M0,w8a,N0,O0,P0,x8a,y8a,A8a,B8a,C8a,D8a,F8a,E8a,G8a,Q0,R0,J8a,H8a,I8a,S0,L8a,M8a,T0,U0,V0,W0,X0,O8a,Y0,P8a,Q8a,R8a,Z0,$0,a1,S8a,T8a,U8a,X8a,W8a,b1,Y8a,Z8a,$8a,Aya,V8a,b9a,c9a,e9a,aaa,ha;aa=function(a){return function(){return aaa[a].apply(this,arguments)}}; g.da=function(a,b){return aaa[a]=b}; baa=function(a){var b=0;return function(){return b=0;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,SM:e}}return{i:-1,SM:void 0}}; Ka=function(a){return a?a:function(b,c){return laa(this,b,c).i}}; g.Ma=function(a,b,c){a=a.split(".");c=c||g.La;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}; Qa=function(a,b){var c=g.Pa("CLOSURE_FLAGS");a=c&&c[a];return a!=null?a:b}; g.Pa=function(a,b){a=a.split(".");b=b||g.La;for(var c=0;c2){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.Xa=function(a,b,c){g.Xa=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?naa:oaa;return g.Xa.apply(null,arguments)}; g.Za=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.$a=function(){return Date.now()}; g.ab=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=0;--c)c in d&&b.call(void 0,d[c],c,a)}; g.pb=function(a,b,c){b=ob(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]}; ob=function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f=0;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1}; g.rb=function(a,b){return saa(a,b)>=0}; taa=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0}; g.ub=function(a,b){b=saa(a,b);var c;(c=b>=0)&&g.tb(a,b);return c}; g.tb=function(a,b){return Array.prototype.splice.call(a,b,1).length==1}; g.vb=function(a,b){b=ob(a,b);b>=0&&g.tb(a,b)}; uaa=function(a,b){var c=0;raa(a,function(d,e){b.call(void 0,d,e,a)&&g.tb(a,e)&&c++})}; g.wb=function(a){return Array.prototype.concat.apply([],arguments)}; g.zb=function(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);m>0?e=l+1:(f=l,h=!m)}return h?e:-e-1}; g.Jb=function(a,b){a.sort(b||Gb)}; xaa=function(a,b){var c=Gb;g.Jb(a,function(d,e){return c(b(d),b(e))})}; g.Kb=function(a,b){if(!g.Sa(a)||!g.Sa(b)||a.length!=b.length)return!1;for(var c=a.length,d=yaa,e=0;eb?1:a=0&&a.indexOf(b,c)==c}; g.Qb=function(a){return/^[\s\xa0]*$/.test(a)}; Rb=function(a){if(!Gaa.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(Haa,"&"));a.indexOf("<")!=-1&&(a=a.replace(Iaa,"<"));a.indexOf(">")!=-1&&(a=a.replace(Jaa,">"));a.indexOf('"')!=-1&&(a=a.replace(Kaa,"""));a.indexOf("'")!=-1&&(a=a.replace(Laa,"'"));a.indexOf("\x00")!=-1&&(a=a.replace(Maa,"�"));return a}; g.Sb=function(a,b){return a.indexOf(b)!=-1}; Tb=function(a,b){return g.Sb(a.toLowerCase(),b.toLowerCase())}; g.Yb=function(a,b){var c=0;a=Wb(String(a)).split(".");b=Wb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&eb?1:0}; g.Zb=function(){var a=g.La.navigator;return a&&(a=a.userAgent)?a:""}; cc=function(a){return $b||ac?bc?bc.brands.some(function(b){return(b=b.brand)&&g.Sb(b,a)}):!1:!1}; dc=function(a){return g.Sb(g.Zb(),a)}; ec=function(){return $b||ac?!!bc&&bc.brands.length>0:!1}; fc=function(){return ec()?!1:dc("Opera")}; Naa=function(){return ec()?!1:dc("Trident")||dc("MSIE")}; Oaa=function(){return ec()?cc("Microsoft Edge"):dc("Edg/")}; gc=function(){return dc("Firefox")||dc("FxiOS")}; ic=function(){return dc("Safari")&&!(hc()||(ec()?0:dc("Coast"))||fc()||(ec()?0:dc("Edge"))||Oaa()||(ec()?cc("Opera"):dc("OPR"))||gc()||dc("Silk")||dc("Android"))}; hc=function(){return ec()?cc("Chromium"):(dc("Chrome")||dc("CriOS"))&&!(ec()?0:dc("Edge"))||dc("Silk")}; Paa=function(){return dc("Android")&&!(hc()||gc()||fc()||dc("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.Zb();if(a==="Internet Explorer"){if(Naa())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),c[1]=="7.0")if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]); b=Qaa(c);switch(a){case "Opera":if(fc())return b(["Version","Opera"]);if(ec()?cc("Opera"):dc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(ec()?0:dc("Edge"))return b(["Edge"]);if(Oaa())return b(["Edg"]);break;case "Chromium":if(hc())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&gc()||a==="Safari"&&ic()||a==="Android Browser"&&Paa()||a==="Silk"&&dc("Silk")?(b=c[2])&&b[1]||"":""}; Saa=function(a){if(ec()&&a!=="Silk"){var b=bc.brands.find(function(c){return c.brand===a}); if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Raa(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])}; jc=function(){return $b||ac?!!bc&&!!bc.platform:!1}; Taa=function(){return jc()?bc.platform==="Android":dc("Android")}; kc=function(){return dc("iPhone")&&!dc("iPod")&&!dc("iPad")}; mc=function(){return kc()||dc("iPad")||dc("iPod")}; nc=function(){return jc()?bc.platform==="macOS":dc("Macintosh")}; Uaa=function(){return jc()?bc.platform==="Windows":dc("Windows")}; oc=function(a){oc[" "](a);return a}; pc=function(a,b){try{return oc(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.qc=function(a){return Waa(a,function(){return g.Yb(Xaa,a)>=0})}; Yaa=function(a){return g.rc?"webkit"+a:a.toLowerCase()}; sc=function(a,b){g.lb.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.Gd=e;this.key=++$aa;this.removed=this.SI=!1}; uc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Gd=null}; g.vc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)}; g.wc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}; yc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}; g.zc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}; bba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}; g.Ac=function(a){for(var b in a)return b}; cba=function(a){for(var b in a)return a[b]}; g.Bc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}; g.Cc=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}; g.Dc=function(a,b){return a!==null&&b in a}; g.Ec=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1}; Fc=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=Fc(a,b))&&a[b]}; g.Gc=function(a){for(var b in a)return!1;return!0}; g.eba=function(a){for(var b in a)delete a[b]}; g.Hc=function(a,b,c){return a!==null&&b in a?a[b]:c}; g.Ic=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.Jc=function(a){var b={},c;for(c in a)b[c]=a[c];return b}; g.Kc=function(a){if(!a||typeof a!=="object")return a;if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.Kc(a[c]);return b}; g.Lc=function(a,b){for(var c,d,e=1;e]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.xd(c,Gd)}; Mba=function(a,b,c,d){a=Lba(a);b=b||g.La;c=c instanceof gd?hd(c):c||"";return d!==void 0?b.open(a,c,d):b.open(a,c)}; Lba=function(a){a=wd(a);return a!==void 0?a:g.ud.toString()}; g.Hd=function(a,b,c){return Math.min(Math.max(a,b),c)}; g.Id=function(a,b){a%=b;return a*b<0?a+b:a}; Jd=function(a,b,c){return a+c*(b-a)}; g.Kd=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0}; Ld=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.Md=function(a,b){this.width=a;this.height=b}; g.Nd=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; g.Od=function(a,b){b=wd(b);b!==void 0&&(a.href=b)}; Nba=function(a){var b="true".toString(),c=[new Cd];if(c.length===0)throw Error("");if(c.map(function(d){if(d instanceof Cd)d=d.j;else throw Error("");return d}).every(function(d){return"data-loaded".indexOf(d)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); a.setAttribute("data-loaded",b)}; Pd=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);}; g.Qd=function(a,b,c){var d=window;a=wd(a);return a!==void 0?d.open(a,b,c):null}; Rd=function(a){var b,c;return(a=(c=(b=a.document).querySelector)==null?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""}; Td=function(a){var b=Rd(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)}; g.Ud=function(a,b){a.src=g.nd(b);Td(a)}; Oba=function(a,b){return a.parseFromString(g.Ad(b),"text/xml")}; g.Vd=function(a){return encodeURIComponent(String(a))}; Wd=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; Xd=function(a){return a=Rb(a)}; g.Yd=function(a){return a==null?"":String(a)}; Zd=function(a){for(var b=0,c=0;c>>0;return b}; $d=function(a){var b=Number(a);return b==0&&g.Qb(a)?NaN:b}; Pba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; Qba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Rba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; Sba=function(a){var b=1;a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c}; ce=function(a){return a?new ae(be(a)):Tba||(Tba=new ae)}; de=function(a,b){return typeof b==="string"?a.getElementById(b):b}; g.ee=function(a,b){return(b||document).getElementsByTagName(String(a))}; g.ge=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.fe(document,"*",a,b)}; g.he=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.fe(c,"*",a,b)[0]||null}return a||null}; g.fe=function(a,b,c,d){a=d||a;b=b&&b!="*"?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,typeof b.split=="function"&&g.rb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a}; ie=function(a,b){g.vc(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Uba.hasOwnProperty(d)?a.setAttribute(Uba[d],c):Pb(d,"aria-")||Pb(d,"data-")?a.setAttribute(d,c):a[d]=c})}; Vba=function(a){a=a.document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new g.Md(a.clientWidth,a.clientHeight)}; Xba=function(a){var b=Wba(a);a=a.parentWindow||a.defaultView;return new g.Kd(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}; Wba=function(a){return a.scrollingElement?a.scrollingElement:g.rc||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement}; je=function(a){return a?a.parentWindow||a.defaultView:window}; le=function(a,b,c){var d=arguments,e=document,f=d[1],h=ke(e,String(d[0]));f&&(typeof f==="string"?h.className=f:Array.isArray(f)?h.className=f.join(" "):ie(h,f));d.length>2&&Yba(e,h,d,2);return h}; Yba=function(a,b,c,d){function e(l){l&&b.appendChild(typeof l==="string"?a.createTextNode(l):l)} for(;d0)e(f);else{a:{if(f&&typeof f.length=="number"){if(g.Ta(f)){var h=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){h=typeof f.item=="function";break a}}h=!1}g.Mb(h?g.zb(f):f,e)}}}; g.me=function(a){return ke(document,a)}; ke=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)}; g.ne=function(a){return document.createTextNode(String(a))}; g.oe=function(a,b){a.appendChild(b)}; g.pe=function(a){for(var b;b=a.firstChild;)a.removeChild(b)}; qe=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}; g.re=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}; g.se=function(a){var b;if(g.rc&&(b=a.parentElement))return b;b=a.parentNode;return g.Ta(b)&&b.nodeType==1?b:null}; g.te=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}; be=function(a){return a.nodeType==9?a:a.ownerDocument||a.document}; g.ue=function(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.pe(a),a.appendChild(be(a).createTextNode(String(b)))}; $ba=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||Zba(a)):a.hasAttribute("tabindex")&&Zba(a)}; Zba=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768}; we=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return ve(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&g.rb(e.className.split(/\s+/),c))},!0)}; ve=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}; ae=function(a){this.j=a||g.La.document||document}; ye=function(a){typeof g.La.setImmediate!=="function"||g.La.Window&&g.La.Window.prototype&&g.La.Window.prototype.setImmediate==g.La.setImmediate?(xe||(xe=aca()),xe(a)):g.La.setImmediate(a)}; aca=function(){var a=g.La.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!dc("Presto")&&(a=function(){var e=g.me("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l=f.location.protocol=="file:"?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Xa)(function(m){if((l=="*"||m.origin==l)&&m.data==h)this.port1.onmessage()}, this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}}); if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.gX;c.gX=null;e()}}; return function(e){d.next={gX:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.La.setTimeout(e,0)}}; Be=function(a){g.La.setTimeout(function(){throw a;},0)}; Ce=function(){this.B=this.j=null}; De=function(){this.next=this.scope=this.Cm=null}; g.Ge=function(a,b){Ee||bca();Fe||(Ee(),Fe=!0);cca.add(a,b)}; bca=function(){if(g.La.Promise&&g.La.Promise.resolve){var a=g.La.Promise.resolve(void 0);Ee=function(){a.then(dca)}}else Ee=function(){ye(dca)}}; dca=function(){for(var a;a=cca.remove();){try{a.Cm.call(a.scope)}catch(b){Be(b)}nba(eca,a)}Fe=!1}; g.Ie=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.cd)try{var b=this;a.call(void 0,function(c){He(b,2,c)},function(c){He(b,3,c)})}catch(c){He(this,3,c)}}; fca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1}; Je=function(a,b,c){var d=gca.get();d.C=a;d.B=b;d.context=c;return d}; Le=function(a){if(a instanceof g.Ie)return a;var b=new g.Ie(g.cd);He(b,2,a);return b}; Me=function(a){return new g.Ie(function(b,c){c(a)})}; g.ica=function(a,b,c){hca(a,b,c,null)||g.Ge(g.Za(b,a))}; jca=function(a){return new g.Ie(function(b,c){a.length||b(void 0);for(var d=0,e;d1)));h=h.next)e||(f=h);e&&(c.j==0&&d==1?mca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):nca(c),oca(c,e,3,b)))}a.C=null}else He(a,3,b)}; Ne=function(a,b){a.B||a.j!=2&&a.j!=3||pca(a);a.D?a.D.next=b:a.B=b;a.D=b}; qca=function(a,b,c,d){var e=Je(null,null,null);e.j=new g.Ie(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f; e.B=c?function(l){try{var m=c.call(d,l);m===void 0&&l instanceof Pe?h(l):f(m)}catch(n){h(n)}}:h}); e.j.C=a;Ne(a,e);return e.j}; He=function(a,b,c){a.j==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,hca(c,a.Eea,a.Fea,a)||(a.N=c,a.j=b,a.C=null,pca(a),b!=3||c instanceof Pe||rca(a,c)))}; hca=function(a,b,c,d){if(a instanceof g.Ie)return Ne(a,Je(b||g.cd,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.Ta(a))try{var f=a.then;if(typeof f==="function")return sca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1}; sca=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))} function h(m){l||(l=!0,c.call(e,m))} var l=!1;try{b.call(a,h,f)}catch(m){f(m)}}; pca=function(a){a.K||(a.K=!0,g.Ge(a.d8,a))}; nca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b}; oca=function(a,b,c,d){if(c==3&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,tca(b,c,d);else try{b.D?b.C.call(b.context):tca(b,c,d)}catch(e){uca.call(null,e)}nba(gca,b)}; tca=function(a,b,c){b==2?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)}; rca=function(a,b){a.G=!0;g.Ge(function(){a.G&&uca.call(null,b)})}; Pe=function(a){jb.call(this,a)}; kca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c}; g.Qe=function(a,b){g.Zc.call(this);this.Xi=a||1;this.PH=b||g.La;this.bX=(0,g.Xa)(this.pea,this);this.QZ=g.$a()}; g.Re=function(a,b,c){if(typeof a==="function")c&&(a=(0,g.Xa)(a,c));else if(a&&typeof a.handleEvent=="function")a=(0,g.Xa)(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:g.La.setTimeout(a,b||0)}; Se=function(a,b){var c=null;return(new g.Ie(function(d,e){c=g.Re(function(){d(b)},a); c==-1&&e(Error("Failed to schedule timer."))})).Ml(function(d){g.La.clearTimeout(c); throw d;})}; g.Te=function(a){g.K.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.Qe(this.flushInterval);this.j.listen("tick",this.pn,!1,this);g.Q(this,this.j)}; vca=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.pn()}; wca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)}; xca=function(a){for(var b=0;b>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e=56320&&h<=57343){f=(f-55296)*1024+h-56320+65536; d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a}; Qca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")}; Rca=function(a){for(var b=[],c=0;c>6|192:((e&64512)==55296&&d+1>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.Xe=function(a,b){b===void 0&&(b=0);Sca();b=Tca[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>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.Ye=function(a,b){if(Uca&&!b)a=g.La.btoa(a);else{for(var c=[],d=0,e=0;e255&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Xe(c,b)}return a}; Wca=function(a){var b=[];Vca(a,function(c){b.push(c)}); return b}; Ze=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):g.Sb("=.",a[b-1])&&(c=g.Sb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Vca(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d}; Vca=function(a,b){function c(m){for(;d>4);h!=64&&(b(f<<4&240|h>>2),l!=64&&b(h<<6&192|l))}}; Sca=function(){if(!$e){$e={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Tca[c]=d;for(var e=0;e "+a)}; hf=function(a){if(typeof a==="string")return{buffer:bda(a),xx:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),xx:!1};if(a.constructor===Uint8Array)return{buffer:a,xx:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),xx:!1};if(a.constructor===cf)return{buffer:ef(a)||new Uint8Array(0),xx:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),xx:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; jf=function(){return typeof BigInt==="function"}; mf=function(a){var b=a>>>0;kf=b;lf=(a-b)/4294967296>>>0}; of=function(a){if(a<0){mf(0-a);var b=g.v(nf(kf,lf));a=b.next().value;b=b.next().value;kf=a>>>0;lf=b>>>0}else mf(a)}; ida=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=b*4294967296+(a>>>0);return c?-a:a}; pf=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else jf()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+jda(c)+jda(a));return c}; jda=function(a){a=String(a);return"0000000".slice(a.length)+a}; kda=function(){var a=kf,b=lf;b&2147483648?jf()?a=""+(BigInt(b|0)<>>0)):(b=g.v(nf(a,b)),a=b.next().value,b=b.next().value,a="-"+pf(a,b)):a=pf(a,b);return a}; qf=function(a){if(a.length<16)of(Number(a));else if(jf())a=BigInt(a),kf=Number(a&BigInt(4294967295))>>>0,lf=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");lf=kf=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)),lf*=1E6,kf=kf*1E6+d,kf>=4294967296&&(lf+=Math.trunc(kf/4294967296),lf>>>=0,kf>>>=0);b&&(b=g.v(nf(kf,lf)),a=b.next().value,b=b.next().value,kf=a,lf=b)}}; nf=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; rf=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)}; tf=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<32&&(c|=(h&127)>>4);for(d=3;d<32&&h&128;d+=7)h=e[f++],c|=(h&127)<>>0,c>>>0);throw gf();}; sf=function(a,b){a.j=b;if(b>a.C)throw hda(a.C,b);}; uf=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 gf();sf(a,c);return e}; vf=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];sf(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; wf=function(a){var b=vf(a);return vf(a)*4294967296+(b>>>0)}; xf=function(a){var b=vf(a),c=vf(a);a=(c>>31)*2+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return d==2047?b?NaN:a*Infinity:d==0?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)}; yf=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;ca.C)throw hda(b,a.C-c);a.j=d;return c}; nda=function(a,b){if(b==0)return df();var c=lda(a,b);a.DI&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?new Uint8Array(0):mda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?df():new cf(c,bf)}; Cf=function(a,b){if(zf.length){var c=zf.pop();c.init(a,void 0,void 0,b);a=c}else a=new rf(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;oda(this,b)}; oda=function(a,b){b=b===void 0?{}:b;a.dP=b.dP===void 0?!1:b.dP}; pda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=uf(a.j)>>>0;b=c>>>3;c&=7;if(!(c>=0&&c<=5))throw gda(c,a.C);if(b<1)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0}; Df=function(a){switch(a.B){case 0:a.B!=0?Df(a):yf(a.j);break;case 1:a=a.j;sf(a,a.j+8);break;case 2:if(a.B!=2)Df(a);else{var b=uf(a.j)>>>0;a=a.j;sf(a,a.j+b)}break;case 5:a=a.j;sf(a,a.j+4);break;case 3:b=a.D;do{if(!pda(a))throw Error("Unmatched start-group tag: stream EOF");if(a.B==4){if(a.D!=b)throw Error("Unmatched end-group tag");break}Df(a)}while(1);break;default:throw gda(a.B,a.C);}}; Ef=function(a,b,c){var d=a.j.C,e=uf(a.j)>>>0,f=a.j.j+e,h=f-d;h<=0&&(a.j.C=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.C=d}; Hf=function(a){var b=uf(a.j)>>>0;a=a.j;var c=lda(a,b);a=a.B;if(qda){var d=a,e;(e=Ff)||(e=Ff=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=c===0&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(Gf===void 0){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Gf=!0}catch(p){Gf=!1}}!Gf&&(Ff=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f=b?Ve():(m=a[f++],l<194||(m&192)!==128?(f--,Ve()):c.push((l&31)<<6|m&63)): l<240?f>=b-1?Ve():(m=a[f++],(m&192)!==128||l===224&&m<160||l===237&&m>=160||((e=a[f++])&192)!==128?(f--,Ve()):c.push((l&15)<<12|(m&63)<<6|e&63)):l<=244?f>=b-2?Ve():(m=a[f++],(m&192)!==128||(l<<28)+(m-144)>>30!==0||((e=a[f++])&192)!==128||((d=a[f++])&192)!==128?(f--,Ve()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Ve(),c.length>=8192&&(h=Lca(h,c),c.length=0);f=Lca(h,c)}return f}; rda=function(a){var b=uf(a.j)>>>0;return nda(a.j,b)}; sda=function(a,b){this.B=a>>>0;this.j=b>>>0}; uda=function(a){if(!a)return tda||(tda=new sda(0,0));if(!/^\d+$/.test(a))return null;qf(a);return new sda(kf,lf)}; vda=function(a,b){this.B=a>>>0;this.j=b>>>0}; xda=function(a){if(!a)return wda||(wda=new vda(0,0));if(!/^-?\d+$/.test(a))return null;qf(a);return new vda(kf,lf)}; If=function(){this.j=[]}; yda=function(a,b,c){for(;c>0||b>127;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; Jf=function(a,b){for(;b>127;)a.j.push(b&127|128),b>>>=7;a.j.push(b)}; zda=function(a,b){if(b>=0)Jf(a,b);else{for(var c=0;c<9;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; Kf=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)}; Ada=function(){this.C=[];this.B=0;this.j=new If}; Lf=function(a,b){b.length!==0&&(a.C.push(b),a.B+=b.length)}; Mf=function(a,b,c){Jf(a.j,b*8+c)}; Bda=function(a,b,c){c!=null&&(typeof c==="string"&&uda(c),Mf(a,b,1),typeof c==="number"?(a=a.j,mf(c),Kf(a,kf),Kf(a,lf)):(c=uda(c),a=a.j,b=c.j,Kf(a,c.B),Kf(a,b)))}; Nf=function(a,b,c){Mf(a,b,2);Jf(a.j,c.length);Lf(a,a.j.end());Lf(a,c)}; Of=function(a,b,c,d){this.XM=a;this.YM=b;this.j=c;this.L3=d}; Pf=function(a){return Array.prototype.slice.call(a)}; Qf=function(a){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?Symbol():a}; Cda=function(a,b){Rf(b,(a|0)&-14591)}; Sf=function(a,b){Rf(b,(a|34)&-14557)}; Tf=function(a){return!(!a||typeof a!=="object"||a.j!==Dda)}; Uf=function(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}; Vf=function(a,b,c){if(a!=null)if(typeof a==="string")a=a?new cf(a,bf):df();else if(a.constructor!==cf)if(af(a))a=a.length?new cf(c?a:new Uint8Array(a),bf):df();else{if(!b)throw Error();a=void 0}return a}; Xf=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=Wf(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;Rf(a,d|1);return!0}; Yf=function(a){if(a&2)throw Error();}; Eda=function(a,b){(b=ag?b[ag]:void 0)&&(a[ag]=Pf(b))}; bg=function(){var a=Error();Baa(a,"incident");Be(a)}; cg=function(a){a=Error(a);Baa(a,"warning");return a}; dg=function(a){if(a!=null&&typeof a!=="number")throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a}; Fda=function(a){return a.displayName||a.name||"unknown type name"}; Gda=function(a){if(typeof a!=="boolean")throw Error("Expected boolean but got "+Ra(a)+": "+a);return a}; eg=function(a){var b=typeof a;return b==="number"?Number.isFinite(a):b!=="string"?!1:Hda.test(a)}; Ida=function(a){if(typeof a!=="number")throw cg("int32");if(!Number.isFinite(a))throw cg("int32");return a|0}; fg=function(a){return a==null?a:Ida(a)}; gg=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a|0:void 0}; hg=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a>>>0:void 0}; Kda=function(a,b){b=!!b;if(!eg(a))throw cg("int64");return typeof a==="string"?ig(a):b?Jda(a):jg(a)}; kg=function(a){return a==null?a:Kda(a)}; Lda=function(a){return a[0]==="-"?!1:a.length<20?!0:a.length===20&&Number(a.substring(0,6))<184467}; Mda=function(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337}; Nda=function(a){if(a<0){of(a);var b=pf(kf,lf);a=Number(b);return Number.isSafeInteger(a)?a:b}if(Lda(String(a)))return a;of(a);return lf*4294967296+(kf>>>0)}; jg=function(a){eg(a);a=Math.trunc(a);Number.isSafeInteger(a)||(of(a),a=ida(kf,lf));return a}; Jda=function(a){eg(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Mda(b)?a=b:(of(a),a=kda())}return a}; ig=function(a){eg(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));Mda(a)||(qf(a),a=kda());return a}; Oda=function(a){if(a==null)return a;if(eg(a)){if(typeof a==="string"){eg(a);var b=Math.trunc(Number(a));Number.isSafeInteger(b)&&b>=0?a=String(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),Lda(a)||(qf(a),a=pf(kf,lf)));return a}if(typeof a==="number")return eg(a),a=Math.trunc(a),a>=0&&Number.isSafeInteger(a)?a:Nda(a)}}; Pda=function(a){if(a==null||typeof a=="string"||af(a)||a instanceof cf)return a}; Qda=function(a){if(typeof a!=="string")throw Error();return a}; lg=function(a){if(a!=null&&typeof a!=="string")throw Error();return a}; mg=function(a){return a==null||typeof a==="string"?a:void 0}; ng=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Fda(b)+" but got "+(a&&Fda(a.constructor)));return a}; Rda=function(a,b,c){if(a!=null&&typeof a==="object"&&a.SK===og)return a;if(Array.isArray(a)){var d=Wf(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&Rf(a,e);return new b(a)}}; qg=function(a,b){pg=b;a=new a(b);pg=void 0;return a}; sg=function(a){switch(typeof a){case "boolean":return rg||(rg=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Sda||(Sda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}; tg=function(a,b,c){a==null&&(a=pg);pg=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=Wf(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(Uf(c[f])){d|=256;b=f-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-16760833|(b&1023)<< 14}}}Rf(a,d);return a}; Vda=function(a){if(typeof Proxy!=="function")return a;var b=vg(a);if(b)return b;b=new Proxy(a,{set:function(c,d,e){Tda();c[d]=e;return!0}}); Uda(a,b);return b}; Tda=function(){bg()}; vg=function(a){var b;return(b=wg)==null?void 0:b.get(a)}; Wda=function(a){var b;return((b=xg)==null?void 0:b.get(a))||a}; Uda=function(a,b){(wg||(wg=new WeakMap)).set(a,b);(xg||(xg=new WeakMap)).set(b,a)}; Yda=function(a,b){return Xda(b)}; Xda=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(Xf(a,void 0,0))return}else{if(af(a))return Yca(a);if(a instanceof cf)return fda(a)}}return a}; Zda=function(a,b,c){var d=Pf(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b=a.length||b>=c))return a[b]}; Dg=function(a,b,c,d){if(c===-1)return null;var e=b>>14&1023||536870912;if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(eea(a,b,e,c)&&Fg!=null){var h;a=(h=fea)!=null?h:fea={};h=a[Fg]||0;h>=4||(a[Fg]=h+1,bg())}return d}return eea(a,b,e,c)}}; Hg=function(a,b,c){var d=a.gb,e=zg(d);Yf(e);Gg(d,e,b,c);return a}; Gg=function(a,b,c,d,e){var f=b>>14&1023||536870912;if(c>=f||e&&!gea){var h=b;if(b&256)e=a[a.length-1];else{if(d==null)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c=0;q--){var r=c[q];d&&q===c.length-1&&r===d||(n++,r!=null&&m++)}if(d)for(var t in d)q=+t,isNaN(q)||(p+=Cea(q),l++,q>h&&(h=q));n=e(n,m)+f(l,h,p);t=m;q=l;r=h;for(var u=p,x=c.length-1;x>=0;x--){var B=c[x];if(!(B==null||d&&x===c.length-1&&B===d)){B=x-b;var E=e(B,t)+f(q,r,u);E=1024||(q--,t++,u-=F.length,h=e(d,t)+f(q,r,u),h1?a-1:0)}; zea=function(a,b){return(a>1?a-1:0)+(a-b)*4}; xea=function(a,b){return a==0?0:9*Math.max(1<<32-Math.clz32(a+a/2-1),4)<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b}; wea=function(a){return 40+4*a}; Cea=function(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2}; uh=function(a,b,c){this.gb=tg(a,b,c)}; Dea=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Bg(b,32);return qg(a,b)}; xh=function(a){var b=vh?a.gb:yg(a.gb,aea,void 0,void 0,!1);var c=!vh;var d=Eea?void 0:a.constructor.Kf;var e=zg(c?a.gb:b);if(a=b.length){var f=b[a-1],h=Uf(f);h?a--:f=void 0;var l=+!!(e&512)-1,m=a-l,n=!!wh&&gea&&!(e&512),p;e=(p=wh)!=null?p:th;e=n?e(m,l,b,f):m;p=(m=n&&m!==e)?Array.prototype.slice.call(b,0,a):b;if(h||m){b:{var q=p;var r=f;h={};n=!1;if(m)for(var t=Math.max(0,e+l);t0;a--){E=a-1;B=p[E];E-=l;if(!(B==null||Xf(B,d,E)||Tf(B)&&B.size===0))break;F=!0}if(p!==b||q||F){if(!m&&!c)p=Array.prototype.slice.call(p,0,a);else if(F||q||r)p.length=a;r&&p.push(r)}b=p}return b}; Gea=function(a){return Array.isArray(a)?a[0]instanceof Of?a:[Fea,a]:[a,void 0]}; yh=function(a,b,c){if(Array.isArray(b)){var d=Wf(b);if(d&4)return b;for(var e=0,f=0;e0?void 0:b]}; Iea=function(a){var b=a[Hh];if(b)return b;b=Ih(a,a[Hh]=new Gh,Mea,Mea,Lea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(sg(a[0])===rg?Eh?b=Eh:(b=new Gh,b.pB=sg(!0),b=Eh=b):b=Dh||(Dh=new Gh),b=a[Hh]=b):b.G=!0}return b}; Nea=function(a,b,c){a[b]=c}; Ih=function(a,b,c,d,e){e=e===void 0?Nea:e;b.pB=sg(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],typeof h==="function"&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&typeof h[0]==="number"&&h[0]>0;){for(var m=0;m127;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}}; afa=function(a){a.roa=!0;return a}; bfa=function(a){return function(){var b=new Ada;Qea(this.gb,b,Jh(a));Lf(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h>>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=cfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;h>=12;h-=12,l+=12)c+=Vh(a,l),d+=Vh(a,l+4),e+=Vh(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 dfa.toString(e)}; cfa=function(a){for(var b=[],c=0;c>>31)&4294967295;q=e[0];var u=e[1],x=e[2],B=e[3],E=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var F=B^u&(x^B);var I=1518500249}else F=u^x^B,I=1859775393;else t<60?(F=u&x|B&(u|x),I=2400959708):(F=u^x^B,I=3395469782);F=((q<<5|q>>>27)&4294967295)+F+E+I+r[t]&4294967295;E=B;B=x;x=(u<<30|u>>>2)&4294967295;u=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+u&4294967295;e[2]= e[2]+x&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+E&4294967295} function c(q,r){if(typeof q==="string"){q=unescape(encodeURIComponent(q));for(var t=[],u=0,x=q.length;u=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var u=24;u>=0;u-=8)q[r++]=e[t]>>u&255;return q} for(var e=[],f=[],h=[],l=[128],m=1;m<64;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,K7:function(){for(var q=d(),r="",t=0;t=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Wd(e):"")}}}; Yi=function(a,b){if(!b)return a;var c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; Zi=function(a,b,c){if(Array.isArray(b))for(var d=0;d=0&&bc)e=c;d+=b.length+1;return Wd(a.slice(d,e!==-1?e:0))}; dj=function(a,b){for(var c=a.search(Ifa),d=0,e,f=[];(e=Hfa(a,d,b,c))>=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Jfa,"$1")}; Kfa=function(a,b,c){return bj(dj(a,b),b,c)}; g.ej=function(a){g.Zc.call(this);this.headers=new Map;this.N=a||null;this.C=!1;this.Ca=this.j=null;this.Y="";this.B=0;this.D="";this.G=this.Fa=this.Z=this.Ga=!1;this.ra=0;this.qa=null;this.Ka="";this.K=!1}; Mfa=function(a,b,c,d,e,f,h){var l=new g.ej;Lfa.push(l);b&&l.listen("complete",b);l.VF("ready",l.k7);f&&(l.ra=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)}; Ofa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Nfa(a);fj(a)}; Nfa=function(a){a.Ga||(a.Ga=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Pfa=function(a){if(a.C&&typeof gj!="undefined")if(a.Ca[1]&&g.hj(a)==4&&a.getStatus()==2)a.getStatus();else if(a.Z&&g.hj(a)==4)g.Re(a.l0,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(ij(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=g.hj(a)>2?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Nfa(a)}}finally{fj(a)}}}; fj=function(a,b){if(a.j){Qfa(a);var c=a.j,d=a.Ca[0]?function(){}:null; a.j=null;a.Ca=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}}; Qfa=function(a){a.qa&&(g.La.clearTimeout(a.qa),a.qa=null)}; ij=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=g.Ui(1,String(a.Y)),!a&&g.La.self&&g.La.self.location&&(a=g.La.self.location.protocol.slice(0,-1)),b=!Rfa.test(a?a.toLowerCase():"");c=b}return c}; g.hj=function(a){return a.j?a.j.readyState:0}; g.jj=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}}; g.kj=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ka){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.Sfa=function(a){var b={};a=(a.j&&g.hj(a)>=2?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c>1,b),Dj(a,a.length>>1)]}; gga=function(a){var b=g.v(fga(a,Ej));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)}; hga=function(a,b){var c=fga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.v(c);c=d.next().value;d=d.next().value;for(var e=1;e>>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=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]}; Fj=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.j=b===void 0?0:b;this.B=c}; kga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Fj(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Fj(a);b=c.slice(1);b.length===1&&b[0]===""&&(b=[]);c=Number(c[0]);return isNaN(c)||c<0||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Fj(a)):new Fj(a,c,b)}; lga=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=kga(a))}; mga=function(a,b,c,d,e){var f=a.index?a.logger.Go(function(){return iga(a.index,gga(b),c,d,e)},"W"):"u"; a.logger.e_(f)}; nga=function(a,b,c){var d=g.v(a.index?a.logger.Go(function(){return jga(gga(b),c)},"R"):["u"]),e=d.next().value; d=d.next().value;a.logger.d_(e);return d}; Gj=function(a){g.K.call(this);var b=this;this.logger=a;this.D=new g.uj;this.addOnDisposeCallback(function(){return b.D.reject()})}; Hj=function(a,b){var c=setTimeout(function(){a.D.resolve()},b); a.addOnDisposeCallback(function(){return void clearTimeout(c)})}; Ij=function(a,b,c){return a.logger.Go(function(){return a.dG(b,c)},a.C)}; Jj=function(a,b,c,d){Gj.call(this,a);this.G=b;this.N=c;this.C="m";this.B="x";this.K=0;Hj(this,d)}; Kj=function(a,b,c){Gj.call(this,a);this.G=b;this.C="f";this.B="z";Hj(this,c)}; Lj=function(a,b,c){Gj.call(this,a);this.G=b;this.C="w";this.B="z";Hj(this,c)}; Mj=function(a,b){Gj.call(this,a);this.error=b;this.C="e";this.B="y"}; pga=function(a,b){var c=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);b=c.length+1;c=oga(c);var d=new Uint8Array(4+c.length);d.set([42,b&127|128,b>>7,a.error.code]);d.set(c,4);return d}; Nj=function(a,b,c){Gj.call(this,a);this.G=b;this.clientState=c;this.C="S";this.B="q"}; oga=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):g.We(a)}; Oj=function(a,b,c){g.K.call(this);var d=this;this.logger=a;this.onError=b;this.state=c;this.C=0;this.addOnDisposeCallback(function(){d.j&&(d.j.dispose(),d.j=void 0)})}; qga=function(a,b){var c;return(c=a.j)==null?void 0:Ij(c,function(){return Pj(a,b)},function(d){var e; if(a.j instanceof Jj&&((e=b.Zj)==null?0:e.xM))try{var f;(f=a.cache)==null||mga(f,Pj(a,b),d,b.Zj.lE,a.G)}catch(h){a.reportError(new wj(24,"ELX:write",h))}})}; rga=function(a,b){var c;if((c=b.Zj)!=null&&c.HI)try{var d,e=(d=a.cache)==null?void 0:nga(d,Pj(a,b),b.Zj.lE);return e?a.logger.Go(function(){return g.Xe(e,2)},"a"):void 0}catch(f){a.reportError(new wj(23,"RXO:read",f))}}; sga=function(a,b){if(!b.y$)throw new wj(29,"SDF:notready");return Ij(new Nj(a.logger,a.C,a.state),function(){return Pj(a,b)})}; tga=function(a,b){b=b instanceof wj?b:new wj(5,"TVD:error",b);a.reportError(b);return Ij(new Mj(a.logger,b),function(){return[]})}; Pj=function(a,b){return b.tJ?b.tJ:b.zr?a.logger.Go(function(){return b.tJ=oga(b.zr)},"c"):[]}; Qj=function(a){this.gb=tg(a)}; Rj=function(a,b,c){this.j=a;this.C=b;this.B=c}; Sj=function(a,b,c){c=c===void 0?{}:c;this.lda=a;this.j=c;this.B=b}; Tj=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e}; uga=function(a,b,c){c=c===void 0?{}:c;return new Rj(b,a,c)}; Uj=function(a){this.gb=tg(a)}; Vj=function(a){this.gb=tg(a)}; Wj=function(a){this.gb=tg(a)}; Xj=function(a){this.gb=tg(a)}; Zj=function(a,b){this.N=a.I$;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&vga(this)}; yga=function(a,b){g.Rc(a.j,"complete",function(){if(ij(a.j)){var c=g.jj(a.j);if(b&&a.j.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.Z(c)}catch(h){ak(a,new Ki(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=Ji(a.j.getStatus());bk(a,ck(a));c==0?wga(a,d):ak(a,new Ki(c,"Xhr succeeded but the status code is not 200"))}else{c=g.jj(a.j);d=ck(a);if(c){var e=xga(a,c);c=e.code;var f=e.details; e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;bk(a,d);ak(a,new Ki(c,f,e))}})}; vga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){ak(a,new Ki(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&wga(a,d)}if("2"in b)for(b=xga(a,b["2"]),c=0;c-1&&a.splice(b,1)}; wga=function(a,b){for(var c=0;c>4&15).toString(16)+(a&15).toString(16)}; ok=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b}; sk=function(a){a.j||(a.j=new Map,a.B=0,a.C&&Xi(a.C,function(b,c){a.add(Wd(b),c)}))}; Ega=function(a,b){sk(a);b=tk(a,b);return a.j.has(b)}; g.Fga=function(a,b,c){a.remove(b);c.length>0&&(a.C=null,a.j.set(tk(a,b),g.zb(c)),a.B=a.B+c.length)}; tk=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b}; Bga=function(a,b){b&&!a.D&&(sk(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Fga(this,e,c))},a)); a.D=b}; g.Gga=function(a){var b="";g.vc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"}); return b}; g.uk=function(a,b,c){if(g.Gc(c))return a;c=g.Gga(c);if(typeof a==="string")return bj(a,g.Vd(b),c);g.qk(a,b,c);return a}; g.vk=function(a){g.K.call(this);this.B=a;this.j={}}; Hga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h0&&(b[e]=d)},a); return b}; gha=function(a){a=kl(a);var b=[];g.vc(a,function(c,d){d in Object.prototype||typeof c!="undefined"&&b.push([d,":",c].join(""))}); return b}; iha=function(a){hl(a,"od",hha);hl(a,"opac",ll).j=!0;hl(a,"sbeos",ll).j=!0;hl(a,"prf",ll).j=!0;hl(a,"mwt",ll).j=!0;hl(a,"iogeo",ll)}; jha=function(){this.j=this.Lu=null}; ml=function(){}; ol=function(){if(!nl())throw Error();}; nl=function(){return!(!pl||!pl.performance)}; ql=function(a){return a?a.passive&&kha()?a:a.capture||!1:!1}; rl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,ql(d)),!0):!1}; sl=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0}; lha=function(){}; mha=function(){return($b||ac)&&bc?bc.mobile:!tl()&&(dc("iPod")||dc("iPhone")||dc("Android")||dc("IEMobile"))}; tl=function(){return($b||ac)&&bc?!bc.mobile&&(dc("iPad")||dc("Android")||dc("Silk")):dc("iPad")||dc("Android")&&!dc("Mobile")||dc("Silk")}; ul=function(a){try{return!!a&&a.location.href!=null&&pc(a,"foo")}catch(b){return!1}}; vl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)}; oha=function(){var a=[];vl(nha,function(b){a.push(b)}); return a}; pha=function(a){var b,c;return(c=(b=/https?:\/\/[^\/]+/.exec(a))==null?void 0:b[0])!=null?c:""}; sha=function(){var a=qha("IFRAME"),b={};g.Mb(rha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)}); return b}; qha=function(a,b){b=b===void 0?document:b;return b.createElement(String(a).toLowerCase())}; tha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,ul(a)&&(b=a);return b}; xha=function(a){a=a||wl();for(var b=new uha(g.La.location.href,!1),c=null,d=a.length-1,e=d;e>=0;--e){var f=a[e];!c&&vha.test(f.url)&&(c=f);if(f.url&&!f.KQ){b=f;break}}e=null;f=a.length&&a[d].url;b.depth!=0&&f&&(e=a[d]);return new wha(b,e,c)}; wl=function(){var a=g.La,b=[],c=null;do{var d=a;if(ul(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new uha(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.La;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;ab?c.length:b;return 3997-b-a.C.length-1}; Al=function(a,b){this.j=a;this.depth=b}; Bha=function(){function a(l,m){return l==null?m:l} var b=wl(),c=Math.max(b.length-1,0),d=xha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Al([f.url,f.KQ?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Al([e.url,2],0));b.url&&b!=f&&h.push(new Al([b.url,0],a(b.depth,c)));d=g.Bl(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=pha(b.url))&&d.push([new Al([e,1],a(b.depth,c))]);d.push([]);return g.Bl(d,function(l){return Aha(c,l)})}; Aha=function(a,b){g.Cl(b,function(e){return e.depth>=0}); var c=Dl(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2); d[0]=a;g.Mb(b,function(e){return d[e.depth+1]=e.j}); return d}; Cha=function(){var a=a===void 0?Bha():a;return a.map(function(b){return zl(b)})}; Dha=function(a){var b=!1;b=b===void 0?!1:b;pl.google_image_requests||(pl.google_image_requests=[]);var c=qha("IMG",pl.document);b&&(c.attributionSrc="");c.src=a;pl.google_image_requests.push(c)}; El=function(a){var b="ih";if(a.ih&&a.hasOwnProperty(b))return a.ih;var c=new a;a.ih=c;a.hasOwnProperty(b);return c}; Fl=function(){this.B=new lha;this.j=nl()?new ol:new ml}; Eha=function(){Gl();var a=pl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&typeof pl.setInterval==="function"&&typeof pl.clearInterval==="function"&&typeof pl.setTimeout==="function"&&typeof pl.clearTimeout==="function")}; Fha=function(){Gl();return Cha()}; Gha=function(){}; Gl=function(){var a=El(Gha);if(!a.j){if(!pl)throw Error("Context has not been set and window is undefined.");a.j=El(Fl)}return a.j}; Hl=function(a){this.gb=tg(a)}; Hha=function(a){this.C=a;this.j=-1;this.B=this.D=0}; Il=function(a,b){return function(){var c=g.Fa.apply(0,arguments);if(a.j>-1)return b.apply(null,g.w(c));try{return a.j=a.C.j.now(),b.apply(null,g.w(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}}; Iha=function(a,b){this.B=a;this.C=b;this.j=new Hha(a)}; Jha=function(){this.j={}}; Lha=function(){var a=Jl().flags,b=Kha;a=a.j[b.key];if(b.valueType==="proto"){try{var c=JSON.parse(a);if(Array.isArray(c))return c}catch(d){}return b.defaultValue}return typeof a===typeof b.defaultValue?a:b.defaultValue}; Pha=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Jc=new gl;hl(this.Jc,"mv",Mha).j=!0;hl(this.Jc,"omid",ll);hl(this.Jc,"epoh",ll).j=!0;hl(this.Jc,"epph",ll).j=!0;hl(this.Jc,"umt",ll).j=!0;hl(this.Jc,"phel",ll).j=!0;hl(this.Jc,"phell",ll).j=!0;hl(this.Jc,"oseid",Nha).j=!0;var a=this.Jc;a.j.sloi||(a.j.sloi=new cl);a.j.sloi.j=!0;hl(this.Jc,"mm",Kl);hl(this.Jc,"ovms",Oha).j=!0;hl(this.Jc,"xdi",ll).j=!0;hl(this.Jc,"amp",ll).j=!0;hl(this.Jc,"prf",ll).j=!0;hl(this.Jc,"gtx",ll).j=!0;hl(this.Jc, "mvp_lv",ll).j=!0;hl(this.Jc,"ssmol",ll).j=!0;hl(this.Jc,"fmd",ll).j=!0;hl(this.Jc,"gen204simple",ll);this.j=new Iha(Gl(),this.Jc);this.D=!1;this.flags=new Jha}; Jl=function(){return El(Pha)}; Qha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof xl)var e=c;else e=new xl,vl(c,function(h,l){var m=e,n=m.D++;h=yl(l,h);m.j.push(n);m.B[n]=h}); var f=e.Ee(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Gl(),Dha(f))}catch(h){}}; Rha=function(a,b,c){c=c===void 0?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c}; Sha=function(){var a=a===void 0?g.La:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.$a()}; Tha=function(){var a=a===void 0?g.La:a;return(a=a.performance)&&a.now?a.now():null}; Uha=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()}; Ml=function(){var a=window;this.events=[];this.B=a||g.La;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=Ll()||(b!=null?b:Math.random()<1)}; Vha=function(a){a&&Nl&&Ll()&&(Nl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Nl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; Wha=function(){var a=Ol;this.j=Pl;this.PX="jserror";this.HT=!0;this.bO=null;this.B=this.fR;this.qd=a===void 0?null:a}; Xha=function(a,b,c){var d=Ql;return Il(Jl().j.j,function(){try{if(d.qd&&d.qd.j){var e=d.qd.start(a.toString(),3);var f=b();d.qd.end(e)}else f=b()}catch(l){var h=d.HT;try{Vha(e),h=d.B(a,new Rl(Sl(l)),void 0,c)}catch(m){d.fR(217,m)}if(!h)throw l;}return f})()}; Tl=function(a,b,c,d){return Il(Jl().j.j,function(){var e=g.Fa.apply(0,arguments);return Xha(a,function(){return b.apply(c,e)},d)})}; Sl=function(a){var b=a.toString();a.name&&b.indexOf(a.name)==-1&&(b+=": "+a.name);a.message&&b.indexOf(a.message)==-1&&(b+=": "+a.message);if(a.stack)a:{a=a.stack;var c=b;try{a.indexOf(c)==-1&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n");break a}catch(e){b=c;break a}b=void 0}return b}; Rl=function(a){Rha.call(this,Error(a),{message:a})}; Yha=function(){pl&&typeof pl.google_measure_js_timing!="undefined"&&(pl.google_measure_js_timing||Ol.disable())}; Zha=function(a){Ql.bO=function(b){g.Mb(a,function(c){c(b)})}}; $ha=function(a,b){return Xha(a,b)}; Ul=function(a,b){return Tl(a,b)}; Vl=function(a,b,c,d){Ql.fR(a,b,c,d)}; Wl=function(){return Date.now()-aia}; bia=function(){var a=Jl().C,b=Xl>=0?Wl()-Xl:-1,c=Yl?Wl()-Zl:-1,d=$l>=0?Wl()-$l:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var e=[250,500,1E3];Vl(637,Error(),.001);var f=b;c!=-1&&c1500&&d<4E3?500:h}; am=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; bm=function(a){return a.right-a.left}; cm=function(a,b,c){b instanceof g.Kd?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,typeof c==="number"&&(a.top+=c,a.bottom+=c));return a}; cia=function(a,b,c){var d=new am(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c}; dm=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}; eia=function(a){var b=a!==a.top,c=a.top===tha(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(dia,function(h){return typeof f[h]==="function"})||(e=1)); return{Ho:f,compatibility:e,Vda:d}}; fia=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"}; gia=function(a,b,c){a&&b!==null&&b!=b.top&&(b=b.top);try{return(c===void 0?0:c)?(new g.Md(b.innerWidth,b.innerHeight)).round():Vba(b||window).round()}catch(d){return new g.Md(-12245933,-12245933)}}; em=function(a,b,c){try{a&&(b=b.top);var d=gia(a,b,c),e=d.height,f=d.width;if(f===-12245933)return new am(f,f,f,f);var h=Xba(ce(b.document).j),l=h.x,m=h.y;return new am(m,l+f,m+e,l)}catch(n){return new am(-12245933,-12245933,-12245933,-12245933)}}; g.hm=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; im=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.km=function(a,b,c){if(typeof b==="string")(b=jm(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=jm(c,d);f&&(c.style[f]=e)}}; jm=function(a,b){var c=hia[b];if(!c){var d=Pba(b);c=d;a.style[d]===void 0&&(d=(g.rc?"Webkit":lm?"Moz":g.mm?"ms":null)+Rba(d),a.style[d]!==void 0&&(c=d));hia[b]=c}return c}; g.nm=function(a,b){var c=a.style[Pba(b)];return typeof c!=="undefined"?c:a.style[jm(a,b)]||""}; om=function(a,b){var c=be(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; pm=function(a,b){return om(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; g.rm=function(a,b,c){if(b instanceof g.Kd){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.qm(d,!1);a.style.top=g.qm(b,!1)}; sm=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; iia=function(a){var b=be(a),c=pm(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=pm(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null}; g.tm=function(a){var b=be(a),c=new g.Kd(0,0);if(a==(b?be(b):document).documentElement)return c;a=sm(a);b=Xba(ce(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; kia=function(a,b){var c=new g.Kd(0,0),d=je(be(a));if(!pc(d,"parent"))return c;do{var e=d==b?g.tm(a):jia(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.um=function(a,b){a=lia(a);b=lia(b);return new g.Kd(a.x-b.x,a.y-b.y)}; jia=function(a){a=sm(a);return new g.Kd(a.left,a.top)}; lia=function(a){if(a.nodeType==1)return jia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Kd(a.clientX,a.clientY)}; g.vm=function(a,b,c){if(b instanceof g.Md)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");a.style.width=g.qm(b,!0);a.style.height=g.qm(c,!0)}; g.qm=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}; g.wm=function(a){var b=mia;if(pm(a,"display")!="none")return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; mia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.rc&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=sm(a),new g.Md(a.right-a.left,a.bottom-a.top)):new g.Md(b,c)}; g.xm=function(a,b){a.style.display=b?"":"none"}; ym=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; nia=function(a){return new am(a.top,a.right,a.bottom,a.left)}; oia=function(a){var b=a.top||0,c=a.left||0;return new am(b,c+(a.width||0),b+(a.height||0),c)}; zm=function(a){return a!=null&&a>=0&&a<=1}; pia=function(){var a=g.Zb();return a?Am("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 Tb(a,b)})||Tb(a,"OMI/")&&!Tb(a,"XiaoMi/")?!0:Tb(a,"Presto")&&Tb(a,"Linux")&&!Tb(a,"X11")&&!Tb(a,"Android")&&!Tb(a,"Mobi"):!1}; qia=function(){this.C=!ul(pl.top);this.isMobileDevice=tl()||mha();var a=wl();this.domain=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?g.Vi(a[a.length-1].url)||"":"";this.j=new am(0,0,0,0);this.D=new g.Md(0,0);this.G=new g.Md(0,0);this.N=new am(0,0,0,0);this.frameOffset=new g.Kd(0,0);this.K=0;this.Z=!1;this.B=!(!pl||!eia(pl).Ho);this.update(pl)}; ria=function(a,b){b&&b.screen&&(a.D=new g.Md(b.screen.width,b.screen.height))}; sia=function(a,b){a:{var c=a.j?new g.Md(bm(a.j),a.j.getHeight()):new g.Md(0,0);b=b===void 0?pl:b;b!==null&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if(f.compatMode=="CSS1Compat"&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth); m>c.height?m>p?(d=m,e=n):(d=p,e=q):m0||a.Z)return!0;a=Gl().B.isVisible();var b=sl(Hm)===0;return a||b}; Bm=function(){return El(qia)}; Jm=function(a){this.C=a;this.B=0;this.j=null}; Km=function(a,b,c){this.C=a;this.Ra=c===void 0?"na":c;this.G=[];this.isInitialized=!1;this.D=new cia(-1,!0,this);this.j=this;this.Z=b;this.qa=this.Y=!1;this.Fa="uk";this.Ga=!1;this.K=!0}; Lm=function(a,b){g.rb(a.G,b)||(a.G.push(b),b.wA(a.j),b.mu(a.D),b.Eq()&&(a.Y=!0))}; tia=function(a){a=a.j;a.tV();a.sV();var b=Bm();b.N=em(!1,a.C,b.isMobileDevice);sia(Bm(),a.C);a.D.j=a.CY()}; uia=function(a){a.Y=a.G.length?Am(a.G,function(b){return b.Eq()}):!1}; via=function(a){var b=g.zb(a.G);g.Mb(b,function(c){c.mu(a.D)})}; Mm=function(a){var b=g.zb(a.G);g.Mb(b,function(c){c.wA(a.j)}); a.j!=a||via(a)}; Nm=function(a,b,c,d){this.element=a;this.j=new am(0,0,0,0);this.D=new am(0,0,0,0);this.B=b;this.Jc=c;this.ra=d;this.qa=!1;this.timestamp=-1;this.N=new dm(b.D,this.element,this.j,new am(0,0,0,0),0,0,Wl(),0)}; Om=function(a){this.G=!1;this.j=a;this.D=function(){}}; wia=function(a,b,c){this.C=c===void 0?0:c;this.B=a;this.j=b==null?"":b}; xia=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}}; yia=function(a,b){return a.Cb.C?!1:a.Bb.B?!1:typeof a.jtypeof b.j?!1:a.j0?d[c]-d[c-1]:d[c]})}; Zm=function(){this.B=new Tm;this.Ra=new Sm;this.ra=this.N=-1;this.bb=1E3;this.Xa=new Tm([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Fa=this.Ca=-1}; $m=function(a,b){return Iia(a.B,b===void 0?!0:b)}; an=function(a,b,c,d){var e=e===void 0?!1:e;c=Tl(d,c);rl(a,b,c,{capture:e})}; cn=function(a,b){b=bn(b);return b===0?0:bn(a)/b}; bn=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)}; Lia=function(a,b){if(!a||!b)return!1;for(var c=0;a!==null&&c++<100;){if(a===b)return!0;try{if(a=g.se(a)||a){var d=be(a),e=d&&je(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; Mia=function(a,b,c){if(!a||!b)return!1;b=cm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;ul(window.top)&&window.top&&window.top.document&&(window=window.top);if(!fia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=be(c))&&b.defaultView&&b.defaultView.frameElement)&&Lia(b,a);var d=a===c;a=!d&&a&&ve(a,function(e){return e===c}); return!(b||d||a)}; Nia=function(a,b,c,d){return Bm().C?!1:bm(a)<=0||a.getHeight()<=0?!0:c&&d?$ha(208,function(){return Mia(a,b,c)}):!1}; dn=function(a,b,c){g.K.call(this);this.position=Oia.clone();this.PK=this.SJ();this.aR=-2;this.timeCreated=Date.now();this.L2=-1;this.iq=b;this.FK=null;this.DE=!1;this.gL=null;this.opacity=-1;this.requestSource=c;this.xea=!1;this.gR=function(){}; this.f3=function(){}; this.fk=new jha;this.fk.Lu=a;this.fk.j=a;this.vu=!1;this.Ow={qR:null,pR:null};this.d2=!0;this.IH=null;this.IA=this.S9=!1;Jl().K++;this.gi=this.OP();this.G2=-1;this.Zf=null;this.hasCompleted=this.P9=!1;this.Jc=new gl;iha(this.Jc);Pia(this);this.requestSource==1?il(this.Jc,"od",1):il(this.Jc,"od",0)}; Pia=function(a){a=a.fk.Lu;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Qia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Qba()):!!a.getAttribute("data-"+Qba());b&&(Bm().B=!0)}; en=function(a,b){b!=a.IA&&(a.IA=b,a=Bm(),b?a.K++:a.K>0&&a.K--)}; Ria=function(a,b){if(a.Zf){if(b.getName()===a.Zf.getName())return;a.Zf.dispose();a.Zf=null}b=b.create(a.fk.j,a.Jc,a.Eq());if(b=b!=null&&b.pN()?b:null)a.Zf=b}; Sia=function(a,b,c){if(!a.FK||a.iq==-1||b.B===-1||a.FK.B===-1)return 0;a=b.B-a.FK.B;return a>c?0:a}; Tia=function(a,b,c){if(a.Zf){a.Zf.Dt();var d=a.Zf.N,e=d.D,f=e.j;if(d.K!=null){var h=d.C;a.gL=new g.Kd(h.left-f.left,h.top-f.top)}f=a.sM()?Math.max(d.j,d.G):d.j;h={};e.volume!==null&&(h.volume=e.volume);e=a.rY(d);a.FK=d;a.Ta(f,b,c,!1,h,e,d.Z)}}; Uia=function(a){if(a.DE&&a.IH){var b=jl(a.Jc,"od")==1,c=Bm().j,d=a.IH,e=a.Zf?a.Zf.getName():"ns",f=a.gL,h=new g.Md(bm(c),c.getHeight());c=a.sM();a={dea:e,gL:f,Vea:h,sM:c,Ce:a.gi.Ce,Qea:b};if(b=d.B){b.Dt();e=b.N;f=e.D.j;var l=h=null;e.K!=null&&f&&(h=e.C,h=new g.Kd(h.left-f.left,h.top-f.top),l=new g.Md(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={dea:b.getName(),gL:h,Vea:l,sM:c,Qea:!1,Ce:e}}else c=null;c&&Fia(d,a,c)}}; Via=function(a,b,c){b&&(a.gR=b);c&&(a.f3=c)}; g.fn=function(){}; g.gn=function(a){return{value:a,done:!1}}; Wia=function(){this.D=this.j=this.C=this.B=this.G=0}; Xia=function(a){var b={};var c=g.$a()-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}; Yia=function(){$k.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; hn=function(a){return zm(a.volume)&&a.volume>0}; jn=function(a,b,c,d){c=c===void 0?!0:c;d=d===void 0?function(){return!0}:d; return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return Zia(f,b,c)}}; kn=function(a,b){return function(c){return b(c)?c[a]:void 0}}; $ia=function(a){return function(b){for(var c=0;c0?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})}; aja=function(){this.B=this.j=""}; bja=function(){}; mn=function(a,b){var c={};if(a!==void 0)if(b!=null)for(var d in b){var e=b[d];d in Object.prototype||e!=null&&(c[d]=typeof e==="function"?e(a):a[e])}else g.Lc(c,a);return Rm(Qm(new Pm,c))}; cja=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)this.B[b][1]>0&&(this.j[b]=0);this.C=0}; nn=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];d>0&&a.j[b]==0&&(a.j[b]=1)}; dja=function(a){var b=g.Cc(a.B),c=0,d;for(d in a.j)g.rb(b,d)&&a.j[d]==1&&(c+=a.B[d][1],a.j[d]=2);return c}; eja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(d==1||d==2)b+=a.B[c][1]}return b}; on=function(){this.j=this.B=0}; pn=function(){Zm.call(this);this.C=new Sm;this.Na=this.Y=this.Ga=0;this.Z=-1;this.fb=new Sm;this.G=new Sm;this.j=new Tm;this.K=this.D=-1;this.qa=new Sm;this.bb=2E3;this.Ka=new on;this.Wa=new on;this.Va=new on}; qn=function(a,b,c){var d=a.Na;Yl||c||a.Z==-1||(d+=b-a.Z);return d}; fja=function(){this.C=!1}; rn=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0}; sn=function(a,b){rn.call(this,a,b);this.N=[]}; gja=function(){}; tn=function(){}; un=function(a,b,c,d){Nm.call(this,a,b,c,d)}; vn=function(a,b,c){Nm.call(this,null,a,b,c);this.K=a.isActive();this.G=0}; wn=function(a){return[a.top,a.left,a.bottom,a.right]}; xn=function(a,b,c,d,e,f){f=f===void 0?new tn:f;dn.call(this,b,c,d);this.vS=e;this.aP=0;this.ri={};this.Lg=new cja;this.A3={};this.cj="";this.bb=null;this.zb=!1;this.j=[];this.ws=f.B();this.K=f.C();this.D=null;this.C=-1;this.Ra=this.Y=void 0;this.ra=this.qa=0;this.Fa=-1;this.fb=this.Xa=!1;this.Ga=this.Z=this.B=this.IC=this.Jb=0;new Tm;this.Ka=this.Va=0;this.Wa=-1;this.Ak=0;this.N=g.cd;this.Ca=[this.SJ()];this.Nb=2;this.Wy={};this.Wy.pause="p";this.Wy.resume="r";this.Wy.skip="s";this.Wy.mute="m";this.Wy.unmute= "um";this.Wy.exitfullscreen="ef";this.G=null;this.rb=this.Bb=!1;this.Kb=Math.floor(Date.now()/1E3-1704067200);this.Na=0}; yn=function(a){a.hasCompleted=!0;a.Ak!=0&&(a.Ak=3)}; zn=function(a){return a===void 0?a:Number(a)?ym(a,3):0}; An=function(a,b){return a.Ca[b!=null&&bMath.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=c.currentTime!==void 0?c.currentTime:a.qa;var d=c-a.qa,e=0;d>=0?(a.ra+=b,a.Ka+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);d!=0&&(a.ra=0);a.Wa==-1&&d>0&&(a.Wa=$l>=0?Wl()-$l:-1);a.qa=c;return e}; jja=function(a,b){Am(a.K,function(c){return c.D==b.D})||a.K.push(b)}; kja=function(a){var b=Wm(a.xj().j,1);return Bn(a,b)}; Bn=function(a,b,c){return b>=15E3?!0:a.Xa?(c===void 0?0:c)?!0:a.C>0?b>=a.C/2:a.Fa>0?b>=a.Fa:!1:!1}; lja=function(a){var b=ym(a.gi.Ce,2),c=a.Lg.C,d=a.gi,e=An(a),f=zn(e.D),h=zn(e.K),l=zn(d.volume),m=ym(e.N,2),n=ym(e.ra,2),p=ym(d.Ce,2),q=ym(e.Ca,2),r=ym(e.Fa,2);d=ym(d.Mk,2);a=a.Zt().clone();a.round();e=$m(e,!1);return{Uea:b,yF:c,TK:f,JK:h,eE:l,UK:m,LK:n,Ce:p,WK:q,MK:r,Mk:d,position:a,YK:e}}; nja=function(a,b){mja(a.j,b,function(){return{Uea:0,yF:void 0,TK:-1,JK:-1,eE:-1,UK:-1,LK:-1,Ce:-1,WK:-1,MK:-1,Mk:-1,position:void 0,YK:[]}}); a.j[b]=lja(a)}; mja=function(a,b,c){for(var d=a.length;d0?1:0;p.atos=Um(m.j);p.ssb=Um(m.Xa,!1);p.amtos=Iia(m.j,!1);p.uac=a.Jb;p.vpt=m.C.j;n=="nio"&& (p.nio=1,p.avms="nio");p.gmm="4";p.gdr=Bn(a,m.C.j,!0)?1:0;p.efpf=a.Nb;if(n=="gsv"||n=="nis")n=a.Zf,n.G>0&&(p.nnut=n.G);p.tcm=hja(a);p.nmt=a.Va;p.bt=a.Ka;p.pst=a.Wa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.qa;p.is=a.Lg.C;a.j.length>=1&&(p.i0=a.j[0].yF,p.a0=[a.j[0].eE],p.c0=[a.j[0].Ce],p.ss0=[a.j[0].Mk],n=a.j[0].position,p.p0=n?wn(n):void 0);a.j.length>=2&&(p.i1=a.j[1].yF,p.a1=En(a.j[1].TK,a.j[1].eE,a.j[1].JK),p.c1=En(a.j[1].UK,a.j[1].Ce,a.j[1].LK),p.ss1=En(a.j[1].WK,a.j[1].Mk,a.j[1].MK),n=a.j[1].position, p.p1=n?wn(n):void 0,p.mtos1=a.j[1].YK);a.j.length>=3&&(p.i2=a.j[2].yF,p.a2=En(a.j[2].TK,a.j[2].eE,a.j[2].JK),p.c2=En(a.j[2].UK,a.j[2].Ce,a.j[2].LK),p.ss2=En(a.j[2].WK,a.j[2].Mk,a.j[2].MK),n=a.j[2].position,p.p2=n?wn(n):void 0,p.mtos2=a.j[2].YK);a.j.length>=4&&(p.i3=a.j[3].yF,p.a3=En(a.j[3].TK,a.j[3].eE,a.j[3].JK),p.c3=En(a.j[3].UK,a.j[3].Ce,a.j[3].LK),p.ss3=En(a.j[3].WK,a.j[3].Mk,a.j[3].MK),n=a.j[3].position,p.p3=n?wn(n):void 0,p.mtos3=a.j[3].YK);p.cs=eja(a.Lg);b&&(p.ic=dja(a.Lg),p.dvpt=m.C.B,p.dvs= Ym(m.B,.5),p.dfvs=Ym(m.B,1),p.davs=Ym(m.j,.5),p.dafvs=Ym(m.j,1),c&&(m.C.B=0,Jia(m.B),Jia(m.j)),a.qs()&&(p.dtos=m.Ga,p.dav=m.Y,p.dtoss=a.aP+1,c&&(m.Ga=0,m.Y=0,a.aP++)),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=[bm(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.IC&&(p.vds=a.IC);if(a.K.length>0||a.ws)b=g.zb(a.K),a.ws&&b.push(a.ws),p.pings=g.Bl(b,function(q){return q.toString()}); b=g.Bl(g.ln(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.Zf?a.Zf.getName():"ns";a.Zf&&g.Lc(p,a.Zf.Vt());d?(p.c=ym(a.gi.Ce,2),p.ss=ym(a.gi.Mk,2)):p.tth=Wl()-rja;p.mc=ym(m.ra,2);p.nc=ym(m.N,2);p.mv=zn(m.K);p.nv=zn(m.D);p.lte=ym(a.aR,2);d=An(a,e);$m(m);p.qmtos=$m(d);p.qnc=ym(d.N,2);p.qmv=zn(d.K);p.qnv=zn(d.D);p.qas=d.D>0?1:0;p.qi=a.cj;p.avms||(p.avms="geo");p.psm=m.Ka.j;p.psv=m.Ka.getValue();p.psfv=m.Wa.getValue();p.psa=m.Va.getValue();l=gha(l.Jc);l.length&&(p.veid=l);a.G&&g.Lc(p, Xia(a.G));p.avas=a.FJ();p.vs=a.FY();p.co=sja(a);return p}; oja=function(a,b){if(g.rb(tja,b))return!0;var c=a.ri[b];return c!==void 0?(a.ri[b]=!0,!c):!1}; sja=function(a){var b=a.Na.toString(10).padStart(2,"0");b=""+a.Kb+b;a.Na<99&&a.Na++;return b}; vja=function(){this.j={};var a=je();Fn(this,a,document);var b=uja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Fn(this,c,c.document);Fn(this,a.top,a.top.document)}}catch(d){}}; uja=function(){var a=document.documentElement;try{if(!ul(je().top))return"2";var b=[],c=je(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&b.length!=0?"1":"0"}catch(d){return"2"}}; Fn=function(a,b,c){an(c,"mousedown",function(){return wja(a)},301); an(b,"scroll",function(){return xja(a)},302); an(c,"touchmove",function(){return yja(a)},303); an(c,"mousemove",function(){return zja(a)},304); an(c,"keydown",function(){return Aja(a)},305)}; wja=function(a){g.vc(a.j,function(b){b.C>1E5||++b.C})}; xja=function(a){g.vc(a.j,function(b){b.j>1E5||++b.j})}; yja=function(a){g.vc(a.j,function(b){b.j>1E5||++b.j})}; Aja=function(a){g.vc(a.j,function(b){b.B>1E5||++b.B})}; zja=function(a){g.vc(a.j,function(b){b.D>1E5||++b.D})}; Bja=function(){this.j=[];this.B=[]}; Gn=function(a,b){return g.pb(a.j,function(c){return c.cj==b})}; Cja=function(a,b){return b?g.pb(a.j,function(c){return c.fk.Lu==b}):null}; Dja=function(a,b){return g.pb(a.B,function(c){return c.Tp()==2&&c.cj==b})}; In=function(){var a=Hn;return a.j.length==0?a.B:a.B.length==0?a.j:g.wb(a.B,a.j)}; Eja=function(a,b){a=b.Tp()==1?a.j:a.B;var c=ob(a,function(d){return d==b}); return c!=-1?(a.splice(c,1),b.Zf&&b.Zf.sI(),b.dispose(),!0):!1}; Fja=function(a){var b=Hn;if(Eja(b,a)){switch(a.Tp()){case 0:var c=function(){return null}; case 2:c=function(){return Dja(b,a.cj)}; break;case 1:c=function(){return Gn(b,a.cj)}}for(var d=c();d;d=c())Eja(b,d)}}; Gja=function(a){var b=Hn;a=g.ln(a,function(c){return!Cja(b,c.fk.Lu)}); b.j.push.apply(b.j,g.w(a))}; Hja=function(a){var b=[];g.Mb(a,function(c){Am(Hn.j,function(d){return d.fk.Lu===c.fk.Lu&&d.cj===c.cj})||(Hn.j.push(c),b.push(c))})}; Jn=function(){this.j=this.B=null}; Ija=function(a,b){function c(d,e){b(d,e)} if(a.B==null)return!1;a.j=g.pb(a.B,function(d){return d!=null&&d.uV()}); a.j&&(a.j.init(c)?tia(a.j.j):b(a.j.j.iA(),a.j));return a.j!=null}; Kn=function(a){a=Jja(a);Om.call(this,a.length?a[a.length-1]:new Km(pl,0));this.C=a;this.B=null}; Jja=function(a){if(!a.length)return[];a=(0,g.ln)(a,function(c){return c!=null&&c.sD()}); for(var b=1;bc.time?b:c},a[0])}; On=function(a){a=a===void 0?pl:a;Om.call(this,new Km(a,2))}; Pn=function(){var a=Nja();Km.call(this,pl.top,a,"geo")}; Nja=function(){Jl();var a=Bm();return a.C||a.B?0:2}; Oja=function(){}; Qn=function(){this.done=!1;this.j={Q6:0,GW:0,bpa:0,IX:0,vQ:-1,u7:0,t7:0,v7:0,bea:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new Jm(this)}; Sn=function(){var a=Rn;a.K||(a.K=!0,Pja(a,function(){return a.D.apply(a,g.w(g.Fa.apply(0,arguments)))}),a.D())}; Qja=function(){El(Oja);var a=El(Jn);a.j!=null&&a.j.j?tia(a.j.j):Bm().update(pl)}; Tn=function(a,b,c){if(!a.done&&(a.B.cancel(),b.length!=0)){a.C=null;try{Qja();var d=Wl();Jl().G=d;if(El(Jn).j!=null)for(var e=0;e=0?Wl()-Xl:-1,l=Wl();e.j.vQ==-1&&(h=l);var m=Bm(),n=Jl(),p=kl(n.Jc),q=In();try{if(q.length>0){var r=m.j;r&&(p.bs=[bm(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);pl.screen&&(p.scs=[pl.screen.width,pl.screen.height])}else p.url=encodeURIComponent(pl.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512))); p.tt=h;p.pt=Xl;p.bin=n.B;pl.google_osd_load_pub_page_exp!==void 0&&(p.olpp=pl.google_osd_load_pub_page_exp);p.deb=[1,e.j.Q6,e.j.GW,e.j.IX,e.j.vQ,0,e.B.B,e.j.u7,e.j.t7,e.j.v7,e.j.bea,-1].join(";");p.tvt=Sja(e,l);m.B&&(p.inapp=1);if(pl!==null&&pl!=pl.top){q.length>0&&(p.iframe_loc=encodeURIComponent(pl.location.href.substring(0,512)));var u=m.N;p.is=[bm(u),u.getHeight()]}}catch(x){p.error=1}Rn.C=p}r=g.Jc(Rn.C);t=Jl().j;jl(t.C,"prf")==1?(u=new Hl,e=t.j,f=0,e.j>-1&&(f=e.C.j.now()-e.j),u=Qg(u,1,dg(e.D+ f),0),e=t.j,u=Qg(u,5,fg(e.j>-1?e.B+1:e.B),0),u=Qg(u,2,kg(t.B.j.C()),"0"),u=Qg(u,3,kg(t.B.j.B()),"0"),t=Qg(u,4,kg(t.B.j.j()),"0"),u={},t=(u.pf=g.Xe(t.j()),u)):t={};g.Lc(r,t);g.Lc(b,d,c,r,a())}])}; Vja=function(){var a=Uja||pl;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("&")}; Un=function(){var a="youtube.player.web_20240709_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240709_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240709_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240709_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(((b=a)==null?void 0:b.length)==2)return a[1];a="youtube.player.web_20240709_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=a)==null?void 0:c.length)==3?"20"+a[1]+a[2]:null}; Wja=function(){return"av.default_js".includes("ima_html5_sdk")?{Ip:"ima",Mp:null}:"av.default_js".includes("ima_native_sdk")?{Ip:"nima",Mp:null}:"av.default_js".includes("admob-native-video-javascript")?{Ip:"an",Mp:null}:"youtube.player.web_20240709_01_RC00".includes("cast_js_sdk")?{Ip:"cast",Mp:Un()}:"youtube.player.web_20240709_01_RC00".includes("youtube.player.web")?{Ip:"yw",Mp:Un()}:"youtube.player.web_20240709_01_RC00".includes("outstream_web_client")?{Ip:"out",Mp:Un()}:"youtube.player.web_20240709_01_RC00".includes("drx_rewarded_web")? {Ip:"r",Mp:Un()}:"youtube.player.web_20240709_01_RC00".includes("gam_native_web_video")?{Ip:"n",Mp:Un()}:"youtube.player.web_20240709_01_RC00".includes("admob_interstitial_video")?{Ip:"int",Mp:Un()}:{Ip:"j",Mp:null}}; eo=function(a,b){var c={sv:"962"};bo!==null&&(c.v=bo);c.cb=Xja;c.nas=Hn.j.length;c.msg=a;b!==void 0&&(a=Yja(b))&&(c.e=co[a]);return c}; fo=function(a){return Pb(a,"custom_metric_viewable")}; Yja=function(a){var b=fo(a)?"custom_metric_viewable":a.toLowerCase();return Fc(Cn,function(c){return c==b})}; Zja=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"}; bka=function(a){try{var b=a.split(",");return b.length>g.Cc($ja).length?null:Dl(b,function(c,d){d=d.toLowerCase().split("=");if(d.length!=2||aka[d[0]]===void 0||!aka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; cka=function(a,b){if(a.j==void 0)return 0;switch(a.G){case "mtos":return a.B?Xm(b.j,a.j):Xm(b.B,a.j);case "tos":return a.B?Wm(b.j,a.j):Wm(b.B,a.j)}return 0}; go=function(a,b,c,d){rn.call(this,b,d);this.N=a;this.Z=c}; ho=function(){}; io=function(a){rn.call(this,"fully_viewable_audible_half_duration_impression",a)}; jo=function(a){this.j=a}; ko=function(a,b){rn.call(this,a,b)}; lo=function(a){sn.call(this,"measurable_impression",a)}; mo=function(){jo.apply(this,arguments)}; no=function(a,b,c){vn.call(this,a,b,c)}; oo=function(a){a=a===void 0?pl:a;Om.call(this,new Km(a,2))}; po=function(a,b,c){vn.call(this,a,b,c)}; qo=function(a){a=a===void 0?pl:a;Om.call(this,new Km(a,2))}; ro=function(){Km.call(this,pl,2,"mraid");this.Ka=0;this.ra=this.Ca=!1;this.N=null;this.B=eia(this.C);this.D.j=new am(0,0,0,0);this.Na=!1}; so=function(a,b,c){a.qv("addEventListener",b,c)}; gka=function(a){Jl().D=!!a.qv("isViewable");so(a,"viewableChange",dka);a.qv("getState")==="loading"?so(a,"ready",eka):fka(a)}; fka=function(a){typeof a.B.Ho.AFMA_LIDAR==="string"?(a.Ca=!0,hka(a)):(a.B.compatibility=3,a.N="nc",a.vj("w"))}; hka=function(a){a.ra=!1;var b=jl(Jl().Jc,"rmmt")==1,c=!!a.qv("isViewable");(b?!c:1)&&Gl().setTimeout(Ul(524,function(){a.ra||(ika(a),Vl(540,Error()),a.N="mt",a.vj("w"))}),500); jka(a);so(a,a.B.Ho.AFMA_LIDAR,kka)}; jka=function(a){var b=jl(Jl().Jc,"sneio")==1,c=a.B.Ho.AFMA_LIDAR_EXP_1!==void 0,d=a.B.Ho.AFMA_LIDAR_EXP_2!==void 0;(b=b&&d)&&(a.B.Ho.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Ho.AFMA_LIDAR_EXP_1=!b)}; ika=function(a){a.qv("removeEventListener",a.B.Ho.AFMA_LIDAR,kka);a.Ca=!1}; lka=function(a,b){if(a.qv("getState")==="loading")return new g.Md(-1,-1);b=a.qv(b);if(!b)return new g.Md(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Md(-1,-1):new g.Md(a,b)}; eka=function(){try{var a=El(ro);a.qv("removeEventListener","ready",eka);fka(a)}catch(b){Vl(541,b)}}; kka=function(a,b){try{var c=El(ro);c.ra=!0;var d=a?new am(a.y,a.x+a.width,a.y+a.height,a.x):new am(0,0,0,0);var e=Wl(),f=Im();var h=new cia(e,f,c);h.j=d;h.volume=b;c.mu(h)}catch(l){Vl(542,l)}}; dka=function(a){var b=Jl(),c=El(ro);a&&!b.D&&(b.D=!0,c.Na=!0,c.N&&c.vj("w",!0))}; to=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.z9,a.firstquartile=this.u9,a.midpoint=this.w9,a.thirdquartile=this.A9,a.complete=this.r9,a.error=this.s9,a.pause=this.uS,a.resume=this.B1,a.skip=this.y9,a.viewable_impression=this.Up,a.mute=this.GC,a.unmute=this.GC,a.fullscreen=this.v9,a.exitfullscreen=this.t9,a.fully_viewable_audible_half_duration_impression=this.Up,a.measurable_impression=this.Up,a.abandon=this.uS,a.engagedview=this.Up,a.impression=this.Up,a.creativeview= this.Up,a.progress=this.GC,a.custom_metric_viewable=this.Up,a.bufferstart=this.uS,a.bufferfinish=this.B1,a.audio_measurable=this.Up,a.audio_audible=this.Up,a);a={};this.N=(a.overlay_resize=this.x9,a.abandon=this.kQ,a.close=this.kQ,a.collapse=this.kQ,a.overlay_unmeasurable_impression=function(b){return Dn(b,"overlay_unmeasurable_impression",Im())},a.overlay_viewable_immediate_impression=function(b){return Dn(b,"overlay_viewable_immediate_impression",Im())},a.overlay_unviewable_impression=function(b){return Dn(b, "overlay_unviewable_impression",Im())},a.overlay_viewable_end_of_session_impression=function(b){return Dn(b,"overlay_viewable_end_of_session_impression",Im())},a); Jl().B=3;mka(this)}; uo=function(a,b,c,d){a=a.aH(null,d,!0,b);a.D=c;Gja([a]);return a}; nka=function(a,b,c){eha(b);var d=a.j;g.Mb(b,function(e){var f=g.Bl(e.criteria,function(h){var l=bka(h);if(l==null)h=null;else if(h=new Zja,l.visible!=null&&(h.j=l.visible/100),l.audible!=null&&(h.B=l.audible==1),l.time!=null){var m=l.timetype=="mtos"?"mtos":"tos",n=Faa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);n=="%"&&(l/=100);h.setTime(l,n,m)}return h}); Am(f,function(h){return h==null})||jja(c,new go(e.id,e.event,f,d))})}; oka=function(){var a=[],b=Jl();a.push(El(Pn));jl(b.Jc,"mvp_lv")&&a.push(El(ro));b=[new oo,new qo];b.push(new Kn(a));b.push(new On(pl));return b}; pka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Wl(),c=Jl(),d=Bm();Xl=b;c.C=79463069;a.B!=="o"&&(Uja=tha(pl));if(Eha()){Rn.j.GW=0;Rn.j.vQ=Wl()-b;var e=oka(),f=El(Jn);f.B=e;Ija(f,function(){vo()})?Rn.done||(Rja(),Lm(f.j.j,a),Sn()):d.C?vo():Sn()}else wo=!0}catch(h){throw Hn.reset(),h; }}}; yo=function(a){Rn.B.cancel();xo=a;Rn.done=!0}; zo=function(a){if(a.B)return a.B;var b=El(Jn).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}; Ao=function(a,b,c){if(a.j==null)return b.IC|=4,!1;a=qka(a.j,c,b);b.IC|=a;return a==0}; vo=function(){var a=[new On(pl)],b=El(Jn);b.B=a;Ija(b,function(){yo("i")})?Rn.done||(Rja(),Sn()):yo("i")}; rka=function(a,b){if(!a.zb){var c=Dn(a,"start",Im());c=a.vS.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="962";bo!==null&&(d.v=bo);Xi(c,function(e,f){return d[e]=e=="mtos"||e=="tos"?f:encodeURIComponent(f)}); b=Vja();Xi(b,function(e,f){return d[e]=encodeURIComponent(f)}); b="//pagead2.googlesyndication.com/pagead/gen_204?"+Rm(Qm(new Pm,d));Dia(b);a.zb=!0}}; Bo=function(a,b,c){Tn(Rn,[a],!Im());nja(a,c);c!=4&&mja(a.Ca,c,a.SJ);return Dn(a,b,Im())}; mka=function(a){Tja(function(){var b=ska();a.B!=null&&(b.sdk=a.B);var c=El(Jn);c.j!=null&&(b.avms=c.j.getName());return b})}; tka=function(a,b,c,d){var e=Cja(Hn,c);e!==null&&e.cj!==b&&(a.mJ(e),e=null);e||(b=a.aH(c,Wl(),!1,b),Hn.B.length==0&&(Jl().C=79463069),Hja([b]),e=b,e.D=zo(a),d&&(e.bb=d));return e}; uka=function(a,b){var c=a[b];c!==void 0&&c>0&&(a[b]=Math.floor(c*1E3))}; ska=function(){var a=Bm(),b={},c={},d={};return Object.assign({},(b.sv="962",b),bo!==null&&(c.v=bo,c),(d["if"]=a.C?"1":"0",d.nas=String(Hn.j.length),d))}; Co=function(a){rn.call(this,"audio_audible",a)}; Do=function(a){sn.call(this,"audio_measurable",a)}; Eo=function(){jo.apply(this,arguments)}; Fo=function(){}; vka=function(a){this.j=a}; qka=function(a,b,c){a=a.B();if(typeof a==="function"){var d={};var e={};d=Object.assign({},bo!==null&&(d.v=bo,d),(e.sv="962",e.cb=Xja,e.e=wka(b),e));e=Dn(c,b,Im());g.Lc(d,e);c.A3[b]=e;d=c.Tp()==2?Cia(d).join("&"):c.vS.j(d).j;try{return a(c.cj,d,b),0}catch(f){return 2}}else return 1}; wka=function(a){var b=fo(a)?"custom_metric_viewable":a;a=Fc(Cn,function(c){return c==b}); return co[a]}; Go=function(){to.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; xka=function(a,b,c){c=c.opt_configurable_tracking_events;a.j!=null&&Array.isArray(c)&&nka(a,c,b)}; yka=function(a,b,c){var d=Gn(Hn,b);d||(d=c.opt_nativeTime||-1,d=uo(a,b,zo(a),d),c.opt_osdId&&(d.bb=c.opt_osdId));return d}; zka=function(a,b,c){var d=Gn(Hn,b);d||(d=uo(a,b,"n",c.opt_nativeTime||-1));return d}; Aka=function(a,b){var c=Gn(Hn,b);c||(c=uo(a,b,"h",-1));return c}; Bka=function(a){Jl();switch(zo(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}; Eka=function(a,b,c,d){c=c===void 0?{}:c;var e={};g.Lc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.aK(b,c);c=f?f.vS:a.UO();if(e.opt_bounds)return c.j(eo("ol",d));if(d!==void 0)if(Yja(d)!==void 0)if(wo)a=eo("ue",d);else if(pka(a),xo=="i")a=eo("i",d),a["if"]=0;else if(b=a.aK(b,e)){b:{xo=="i"&&(b.vu=!0);f=e.opt_fullscreen;f!==void 0&&en(b,!!f);var h;if(f=!Bm().B)(f=Tb(g.Zb(),"CrKey")&&!(Tb(g.Zb(),"CrKey")&&Tb(g.Zb(),"SmartSpeaker"))||Tb(g.Zb(),"PlayStation")||Tb(g.Zb(),"Roku")||pia()||Tb(g.Zb(), "Xbox"))||(f=g.Zb(),f=Tb(f,"AppleTV")||Tb(f,"Apple TV")||Tb(f,"CFNetwork")||Tb(f,"tvOS")),f||(f=g.Zb(),f=Tb(f,"sdk_google_atv_x86")||Tb(f,"Android TV")),f=!f;f&&(Gl(),f=sl(Hm)===0);if(h=f){switch(b.Tp()){case 1:rka(b,"pv");break;case 2:a.QS(b)}yo("pv")}f=d.toLowerCase();if(h=!h)h=jl(Jl().Jc,"ssmol")&&f==="loaded"?!1:g.rb(Cka,f);if(h&&b.Ak==0){xo!="i"&&(Rn.done=!1);h=e!==void 0?e.opt_nativeTime:void 0;$l=h=typeof h==="number"?h:Wl();b.DE=!0;var l=Im();b.Ak=1;b.ri={};b.ri.start=!1;b.ri.firstquartile= !1;b.ri.midpoint=!1;b.ri.thirdquartile=!1;b.ri.complete=!1;b.ri.resume=!1;b.ri.pause=!1;b.ri.skip=!1;b.ri.mute=!1;b.ri.unmute=!1;b.ri.viewable_impression=!1;b.ri.measurable_impression=!1;b.ri.fully_viewable_audible_half_duration_impression=!1;b.ri.fullscreen=!1;b.ri.exitfullscreen=!1;b.aP=0;l||(b.xj().Z=h);Tn(Rn,[b],!l)}(h=b.Wy[f])&&nn(b.Lg,h);jl(Jl().Jc,"fmd")||g.rb(Dka,f)&&b.ws&&b.ws.B(b,null);switch(b.Tp()){case 1:var m=fo(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),jl(Jl().Jc,"fmd")&&g.rb(Dka,f)&&b.ws&&b.ws.B(b,null),d!==void 0)){e=eo(void 0,f);g.Lc(e,d);d=e;break b}d=void 0}b.Ak==3&&a.mJ(b);a=d}else a=eo("nf",d);else a=void 0;else wo?a=eo("ue"):f?(a=eo(),g.Lc(a,pja(f,!0,!1,!1))):a=eo("nf");return typeof a==="string"?c.j():c.j(a)}; Fka=function(a,b){b&&(a.C=b)}; Gka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b}; Hka=function(a,b,c){c=c===void 0?{}:c;a=Eka(El(Go),b,c,a);return Gka(a)}; Ika=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}}; Lka=function(a){if(g.Qb(g.Yd(a)))return!1;if(a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var b=new g.ik(a)}catch(c){return g.pb(Jka,function(d){return a.search(d)>0})!=null}return b.K.match(Kka)?!0:g.pb(Jka,function(c){return a.match(c)!=null})!=null}; g.Ho=function(a,b){return a.replace(Mka,function(c,d){try{var e=g.Hc(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!g.Qb(g.Yd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})}; Nka=function(a,b){return Object.is(a,b)}; g.Jo=function(a){var b=Io;Io=a;return b}; Pka=function(a){if(a.Zi!==void 0){var b=g.Ko;g.Ko=!0;try{for(var c=g.v(a.Zi),d=c.next();!d.done;d=c.next()){var e=d.value;e.jl||g.Oka(e)}}finally{g.Ko=b}}}; Qka=function(){var a;return((a=Io)==null?void 0:a.Kt)!==!1}; g.Oka=function(a){a.jl=!0;Pka(a);var b;(b=a.pE)==null||b.call(a,a)}; g.Lo=function(a){a&&(a.aL=0);return g.Jo(a)}; g.Oo=function(a,b){g.Jo(b);if(a&&a.dg!==void 0&&a.Xm!==void 0&&a.vy!==void 0){if(g.Mo(a))for(b=a.aL;ba.aL;)a.dg.pop(),a.vy.pop(),a.Xm.pop()}}; Ska=function(a,b,c){Rka(a);if(a.Zi.length===0&&a.dg!==void 0)for(var d=0;d0}; g.Po=function(a){a.dg!=null||(a.dg=[]);a.Xm!=null||(a.Xm=[]);a.vy!=null||(a.vy=[])}; Rka=function(a){a.Zi!=null||(a.Zi=[]);a.Iu!=null||(a.Iu=[])}; Uka=function(a){function b(){if(g.Ko)throw Error("");if(Io!==null){var d=Io.aL++;g.Po(Io);d0?" "+b:b))}}; g.op=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.np(a,e)}); else{var c={};Array.prototype.forEach.call(kp(a),function(e){c[e]=!0}); Array.prototype.forEach.call(b,function(e){c[e]=!0}); b="";for(var d in c)b+=b.length>0?" "+d:d;g.lp(a,b)}}; g.pp=function(a,b){a.classList?a.classList.remove(b):g.mp(a,b)&&g.lp(a,Array.prototype.filter.call(kp(a),function(c){return c!=b}).join(" "))}; g.qp=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.pp(a,c)}):g.lp(a,Array.prototype.filter.call(kp(a),function(c){return!g.rb(b,c)}).join(" "))}; g.rp=function(a,b,c){c?g.np(a,b):g.pp(a,b)}; dla=function(a,b){var c=!g.mp(a,b);g.rp(a,b,c)}; g.sp=function(){g.Zc.call(this);this.j=0;this.endTime=this.startTime=null}; ela=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return typeof c==="string"?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"}); g.km(a,"transition",b.join(","))}; tp=function(a,b,c,d,e){g.sp.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]}; fla=function(a,b,c,d){return new tp(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})}; hla=function(a){a=Wb(a);if(a=="")return null;var b=String(a.slice(0,4)).toLowerCase();if(("url("1||a&&a.split(")"),null;if(a.indexOf("(")>0){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in gla))return null}return a}; up=function(a,b){a=g.La[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null}; ila=function(a){var b=g.La.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null}; jla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.mm&&document.documentMode<10){if(!b[c].call)throw Error("IE Clobbering detected");}else if(typeof b[c]!="function")throw Error("Clobbering detected");return b[c].apply(b,d)}; pla=function(a){if(!a)return kla;var b=document.createElement("div").style;lla(a).forEach(function(c){var d=g.rc&&c in mla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Pb(d,"--")||Pb(d,"var")||(c=jla(nla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=hla(c),c!=null&&jla(ola,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return new g.xd(b.cssText||"",Gd)}; lla=function(a){g.Sa(a)?a=g.zb(a):(a=g.Cc(a),g.ub(a,"cssText"));return a}; g.wp=function(a){var b,c=b=0,d=!1;a=a.split(qla);for(var e=0;e.4?-1:1;return(b==0?null:b)==-1?"rtl":"ltr"}; g.Ap=function(a){if(a instanceof xp||a instanceof yp||a instanceof zp)return a;if(typeof a.next=="function")return new xp(function(){return a}); if(typeof a[Symbol.iterator]=="function")return new xp(function(){return a[Symbol.iterator]()}); if(typeof a.nm=="function")return new xp(function(){return a.nm()}); throw Error("Not an iterator or iterable.");}; xp=function(a){this.B=a}; yp=function(a){this.B=a}; zp=function(a){xp.call(this,function(){return a}); this.C=a}; Bp=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}; Cp=function(a,b){if(b==0)return a.j;if(b==1)return a.B;var c=Jd(a.j,a.x1,b),d=Jd(a.x1,a.x2,b);a=Jd(a.x2,a.B,b);c=Jd(c,d,b);d=Jd(d,a,b);return Jd(c,d,b)}; ula=function(a,b){var c=(b-a.j)/(a.B-a.j);if(c<=0)return 0;if(c>=1)return 1;for(var d=0,e=1,f=0,h=0;h<8;h++){f=Cp(a,c);var l=(Cp(a,c+1E-6)-f)/1E-6;if(Math.abs(f-b)<1E-6)return c;if(Math.abs(l)<1E-6)break;else f1E-6&&h<8;h++)f=0}; g.Gp=function(a){g.K.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a}; wla=function(a,b,c){g.Ge(function(){a.apply(b,c)})}; g.Hp=function(a){this.j=a}; Ip=function(a){this.j=a}; xla=function(a){this.data=a}; yla=function(a){return a===void 0||a instanceof xla?a:new xla(a)}; Jp=function(a){this.j=a}; g.zla=function(a){var b=a.creation;a=a.expiration;return!!a&&ag.$a()}; g.Kp=function(a){this.j=a}; Ala=function(){}; Lp=function(){}; Mp=function(a){this.j=a;this.B=null}; Np=function(a){if(a.j==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.B)!=null?b:a.isAvailable())||Be(Error("Storage mechanism: Storage unavailable"))}; Op=function(){var a=null;try{a=g.La.localStorage||null}catch(b){}Mp.call(this,a)}; Bla=function(){var a=null;try{a=g.La.sessionStorage||null}catch(b){}Mp.call(this,a)}; Pp=function(a,b){this.B=a;this.j=b+"::"}; g.Qp=function(a){var b=new Op;return b.isAvailable()?a?new Pp(b,a):b:null}; Rp=function(a,b){this.j=a;this.B=b}; Sp=function(a){this.j=[];if(a)a:{if(a instanceof Sp){var b=a.Vn();a=a.Im();if(this.j.length<=0){for(var c=this.j,d=0;d>>6:(f<65536?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>> 6&63),l[c++]=128|f&63);return l}; Wp=function(a){for(var b=a.length;--b>=0;)a[b]=0}; Xp=function(a,b,c,d,e){this.v2=a;this.f8=b;this.e8=c;this.R7=d;this.q$=e;this.cZ=a&&a.length}; Yp=function(a,b){this.JX=a;this.lB=0;this.Av=b}; Zp=function(a,b){a.rg[a.pending++]=b&255;a.rg[a.pending++]=b>>>8&255}; $p=function(a,b,c){a.Ci>16-c?(a.sj|=b<>16-a.Ci,a.Ci+=c-16):(a.sj|=b<>>=1,c<<=1;while(--b>0);return c>>>1}; Ela=function(a,b,c){var d=Array(16),e=0,f;for(f=1;f<=15;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=Dla(d[e]++,e))}; Fla=function(a){var b;for(b=0;b<286;b++)a.jk[b*2]=0;for(b=0;b<30;b++)a.Sw[b*2]=0;for(b=0;b<19;b++)a.Ui[b*2]=0;a.jk[512]=1;a.Ds=a.yC=0;a.Sm=a.matches=0}; Gla=function(a){a.Ci>8?Zp(a,a.sj):a.Ci>0&&(a.rg[a.pending++]=a.sj);a.sj=0;a.Ci=0}; Hla=function(a,b,c){Gla(a);Zp(a,c);Zp(a,~c);Vp.yz(a.rg,a.window,b,c,a.pending);a.pending+=c}; Ila=function(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];aq(a,h,c);l=gq[h];l!==0&&(e-=hq[h],$p(a,e,l))}}while(d>1;h>=1;h--)bq(a,c,h);m=f;do h=a.yg[1],a.yg[1]=a.yg[a.Ur--],bq(a,c,1),d=a.yg[1],a.yg[--a.zA]=h,a.yg[--a.zA]=d,c[m*2]=c[h*2]+c[d*2],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[h*2+1]=c[d*2+1]=m,a.yg[1]=m++,bq(a,c,1);while(a.Ur>= 2);a.yg[--a.zA]=a.yg[1];h=b.JX;m=b.lB;d=b.Av.v2;e=b.Av.cZ;f=b.Av.f8;var n=b.Av.e8,p=b.Av.q$,q,r=0;for(q=0;q<=15;q++)a.wr[q]=0;h[a.yg[a.zA]*2+1]=0;for(b=a.zA+1;b<573;b++){var t=a.yg[b];q=h[h[t*2+1]*2+1]+1;q>p&&(q=p,r++);h[t*2+1]=q;if(!(t>m)){a.wr[q]++;var u=0;t>=n&&(u=f[t-n]);var x=h[t*2];a.Ds+=x*(q+u);e&&(a.yC+=x*(d[t*2+1]+u))}}if(r!==0){do{for(q=p-1;a.wr[q]===0;)q--;a.wr[q]--;a.wr[q+1]+=2;a.wr[p]--;r-=2}while(r>0);for(q=p;q!==0;q--)for(t=a.wr[q];t!==0;)d=a.yg[--b],d>m||(h[d*2+1]!==q&&(a.Ds+=(q-h[d* 2+1])*h[d*2],h[d*2+1]=q),t--)}Ela(c,l,a.wr)}; Kla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;f===0&&(l=138,m=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[(d+1)*2+1];++h>>=1)if(b&1&&a.jk[c*2]!==0)return 0;if(a.jk[18]!==0||a.jk[20]!==0||a.jk[26]!==0)return 1;for(c=32;c<256;c++)if(a.jk[c*2]!==0)return 1;return 0}; jq=function(a,b,c){a.rg[a.uE+a.Sm*2]=b>>>8&255;a.rg[a.uE+a.Sm*2+1]=b&255;a.rg[a.SQ+a.Sm]=c&255;a.Sm++;b===0?a.jk[c*2]++:(a.matches++,b--,a.jk[(cq[c]+256+1)*2]++,a.Sw[(b<256?fq[b]:fq[256+(b>>>7)])*2]++);return a.Sm===a.WF-1}; lq=function(a,b){a.msg=kq[b];return b}; mq=function(a){for(var b=a.length;--b>=0;)a[b]=0}; nq=function(a){var b=a.state,c=b.pending;c>a.Je&&(c=a.Je);c!==0&&(Vp.yz(a.output,b.rg,b.MG,c,a.uB),a.uB+=c,b.MG+=c,a.cU+=c,a.Je-=c,b.pending-=c,b.pending===0&&(b.MG=0))}; qq=function(a,b){var c=a.fl>=0?a.fl:-1,d=a.Gb-a.fl,e=0;if(a.level>0){a.ye.YO===2&&(a.ye.YO=Mla(a));iq(a,a.CK);iq(a,a.lJ);Kla(a,a.jk,a.CK.lB);Kla(a,a.Sw,a.lJ.lB);iq(a,a.aX);for(e=18;e>=3&&a.Ui[Nla[e]*2+1]===0;e--);a.Ds+=3*(e+1)+14;var f=a.Ds+3+7>>>3;var h=a.yC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&c!==-1)$p(a,b?1:0,3),Hla(a,c,d);else if(a.strategy===4||h===f)$p(a,2+(b?1:0),3),Jla(a,oq,pq);else{$p(a,4+(b?1:0),3);c=a.CK.lB+1;d=a.lJ.lB+1;e+=1;$p(a,c-257,5);$p(a,d-1,5);$p(a,e-4,4);for(f=0;f>>8&255;a.rg[a.pending++]=b&255}; Ola=function(a,b){var c=a.n_,d=a.Gb,e=a.Jl,f=a.I_,h=a.Gb>a.mj-262?a.Gb-(a.mj-262):0,l=a.window,m=a.Jv,n=a.zq,p=a.Gb+258,q=l[d+e-1],r=l[d+e];a.Jl>=a.IY&&(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]&&de){a.jB=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&--c!== 0);return e<=a.hc?e:a.hc}; vq=function(a){var b=a.mj,c;do{var d=a.F3-a.hc-a.Gb;if(a.Gb>=b+(b-262)){Vp.yz(a.window,a.window,b,b,0);a.jB-=b;a.Gb-=b;a.fl-=b;var e=c=a.kK;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.zq[--e],a.zq[e]=f>=b?f-b:0;while(--c);d+=b}if(a.ye.rj===0)break;e=a.ye;c=a.window;f=a.Gb+a.hc;var h=e.rj;h>d&&(h=d);h===0?c=0:(e.rj-=h,Vp.yz(c,e.input,e.Sx,h,f),e.state.wrap===1?e.Vd=tq(e.Vd,c,h,f):e.state.wrap===2&&(e.Vd=uq(e.Vd,c,h,f)),e.Sx+=h,e.Ty+=h,c=h);a.hc+=c;if(a.hc+a.Eh>=3)for(d=a.Gb-a.Eh, a.Fe=a.window[d],a.Fe=(a.Fe<=3&&(a.Fe=(a.Fe<=3)if(c=jq(a,a.Gb-a.jB,a.Ue-3),a.hc-=a.Ue,a.Ue<=a.eR&&a.hc>=3){a.Ue--;do a.Gb++,a.Fe=(a.Fe<=3&&(a.Fe=(a.Fe<4096)&&(a.Ue=2));if(a.Jl>=3&&a.Ue<=a.Jl){d=a.Gb+a.hc-3;c=jq(a,a.Gb-1-a.T0,a.Jl-3);a.hc-=a.Jl-1;a.Jl-=2;do++a.Gb<=d&&(a.Fe=(a.Fe<=3&&a.Gb>0&&(d=a.Gb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Gb+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]&&da.hc&&(a.Ue=a.hc)}a.Ue>=3?(c=jq(a,1,a.Ue-3),a.hc-=a.Ue,a.Gb+=a.Ue,a.Ue=0):(c=jq(a,0,a.window[a.Gb]),a.hc--,a.Gb++);if(c&&(qq(a,!1),a.ye.Je===0))return 1}a.Eh=0;return b=== 4?(qq(a,!0),a.ye.Je===0?3:4):a.Sm&&(qq(a,!1),a.ye.Je===0)?1:2}; Qla=function(a,b){for(var c;;){if(a.hc===0&&(vq(a),a.hc===0)){if(b===0)return 1;break}a.Ue=0;c=jq(a,0,a.window[a.Gb]);a.hc--;a.Gb++;if(c&&(qq(a,!1),a.ye.Je===0))return 1}a.Eh=0;return b===4?(qq(a,!0),a.ye.Je===0?3:4):a.Sm&&(qq(a,!1),a.ye.Je===0)?1:2}; yq=function(a,b,c,d,e){this.X8=a;this.p$=b;this.H$=c;this.o$=d;this.func=e}; Rla=function(){this.ye=null;this.status=0;this.rg=null;this.wrap=this.pending=this.MG=this.Wm=0;this.Od=null;this.Zn=0;this.method=8;this.YA=-1;this.Jv=this.vU=this.mj=0;this.window=null;this.F3=0;this.head=this.zq=null;this.I_=this.IY=this.strategy=this.level=this.eR=this.n_=this.Jl=this.hc=this.jB=this.Gb=this.Lx=this.T0=this.Ue=this.fl=this.Sr=this.Rr=this.oQ=this.kK=this.Fe=0;this.jk=new Vp.Yq(1146);this.Sw=new Vp.Yq(122);this.Ui=new Vp.Yq(78);mq(this.jk);mq(this.Sw);mq(this.Ui);this.aX=this.lJ= this.CK=null;this.wr=new Vp.Yq(16);this.yg=new Vp.Yq(573);mq(this.yg);this.zA=this.Ur=0;this.depth=new Vp.Yq(573);mq(this.depth);this.Ci=this.sj=this.Eh=this.matches=this.yC=this.Ds=this.uE=this.Sm=this.WF=this.SQ=0}; Sla=function(a,b){if(!a||!a.state||b>5||b<0)return a?lq(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.rj!==0||c.status===666&&b!==4)return lq(a,a.Je===0?-5:-2);c.ye=a;var d=c.YA;c.YA=b;if(c.status===42)if(c.wrap===2)a.Vd=0,rq(c,31),rq(c,139),rq(c,8),c.Od?(rq(c,(c.Od.text?1:0)+(c.Od.ou?2:0)+(c.Od.extra?4:0)+(c.Od.name?8:0)+(c.Od.comment?16:0)),rq(c,c.Od.time&255),rq(c,c.Od.time>>8&255),rq(c,c.Od.time>>16&255),rq(c,c.Od.time>>24&255),rq(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),rq(c,c.Od.os& 255),c.Od.extra&&c.Od.extra.length&&(rq(c,c.Od.extra.length&255),rq(c,c.Od.extra.length>>8&255)),c.Od.ou&&(a.Vd=uq(a.Vd,c.rg,c.pending,0)),c.Zn=0,c.status=69):(rq(c,0),rq(c,0),rq(c,0),rq(c,0),rq(c,0),rq(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),rq(c,3),c.status=113);else{var e=8+(c.vU-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.Gb!==0&&(e|=32);c.status=113;sq(c,e+(31-e%31));c.Gb!==0&&(sq(c,a.Vd>>>16),sq(c,a.Vd&65535));a.Vd=1}if(c.status===69)if(c.Od.extra){for(e= c.pending;c.Zn<(c.Od.extra.length&65535)&&(c.pending!==c.Wm||(c.Od.ou&&c.pending>e&&(a.Vd=uq(a.Vd,c.rg,c.pending-e,e)),nq(a),e=c.pending,c.pending!==c.Wm));)rq(c,c.Od.extra[c.Zn]&255),c.Zn++;c.Od.ou&&c.pending>e&&(a.Vd=uq(a.Vd,c.rg,c.pending-e,e));c.Zn===c.Od.extra.length&&(c.Zn=0,c.status=73)}else c.status=73;if(c.status===73)if(c.Od.name){e=c.pending;do{if(c.pending===c.Wm&&(c.Od.ou&&c.pending>e&&(a.Vd=uq(a.Vd,c.rg,c.pending-e,e)),nq(a),e=c.pending,c.pending===c.Wm)){var f=1;break}f=c.Zne&&(a.Vd=uq(a.Vd,c.rg,c.pending-e,e));f===0&&(c.Zn=0,c.status=91)}else c.status=91;if(c.status===91)if(c.Od.comment){e=c.pending;do{if(c.pending===c.Wm&&(c.Od.ou&&c.pending>e&&(a.Vd=uq(a.Vd,c.rg,c.pending-e,e)),nq(a),e=c.pending,c.pending===c.Wm)){f=1;break}f=c.Zne&&(a.Vd=uq(a.Vd,c.rg,c.pending-e,e));f===0&&(c.status=103)}else c.status= 103;c.status===103&&(c.Od.ou?(c.pending+2>c.Wm&&nq(a),c.pending+2<=c.Wm&&(rq(c,a.Vd&255),rq(c,a.Vd>>8&255),a.Vd=0,c.status=113)):c.status=113);if(c.pending!==0){if(nq(a),a.Je===0)return c.YA=-1,0}else if(a.rj===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return lq(a,-5);if(c.status===666&&a.rj!==0)return lq(a,-5);if(a.rj!==0||c.hc!==0||b!==0&&c.status!==666){d=c.strategy===2?Qla(c,b):c.strategy===3?Pla(c,b):zq[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.Je===0&&(c.YA= -1),0;if(d===2&&(b===1?($p(c,2,3),aq(c,256,oq),c.Ci===16?(Zp(c,c.sj),c.sj=0,c.Ci=0):c.Ci>=8&&(c.rg[c.pending++]=c.sj&255,c.sj>>=8,c.Ci-=8)):b!==5&&($p(c,0,3),Hla(c,0,0),b===3&&(mq(c.head),c.hc===0&&(c.Gb=0,c.fl=0,c.Eh=0))),nq(a),a.Je===0))return c.YA=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(rq(c,a.Vd&255),rq(c,a.Vd>>8&255),rq(c,a.Vd>>16&255),rq(c,a.Vd>>24&255),rq(c,a.Ty&255),rq(c,a.Ty>>8&255),rq(c,a.Ty>>16&255),rq(c,a.Ty>>24&255)):(sq(c,a.Vd>>>16),sq(c,a.Vd&65535));nq(a);c.wrap>0&& (c.wrap=-c.wrap);return c.pending!==0?0:1}; Fq=function(a){if(!(this instanceof Fq))return new Fq(a);a=this.options=Vp.assign({level:-1,method:8,chunkSize:16384,Kv:15,v$:8,strategy:0,to:""},a||{});a.raw&&a.Kv>0?a.Kv=-a.Kv:a.Y8&&a.Kv>0&&a.Kv<16&&(a.Kv+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ye=new Tla;this.ye.Je=0;var b=this.ye;var c=a.level,d=a.method,e=a.Kv,f=a.v$,h=a.strategy;if(b){var l=1;c===-1&&(c=6);e<0?(l=0,e=-e):e>15&&(l=2,e-=16);if(f<1||f>9||d!==8||e<8||e>15||c<0||c>9||h<0||h>4)b=lq(b,-2);else{e===8&&(e=9);var m= new Rla;b.state=m;m.ye=b;m.wrap=l;m.Od=null;m.vU=e;m.mj=1<>=7;f<30;f++)for(hq[f]=h<<7,e=0;e<1<=n.mj&&(b===0&&(mq(n.head),n.Gb=0,n.fl=0,n.Eh=0),c=new Vp.bz(n.mj),Vp.yz(c,f,h-n.mj,n.mj,0),f=c,h=n.mj);c=a.rj;d=a.Sx;e=a.input;a.rj=h;a.Sx=0;a.input=f;for(vq(n);n.hc>=3;){f=n.Gb;h=n.hc-2;do n.Fe=(n.Fe<-4&&((0,c[16])(c[58],c[16]),c[82])(c[85],c[18])<=(0,c[16])(c[18],c[51]),c[44]!==5&&(c[new Date("1969-12-31T20:15:13.000-03:45")/1E3]>=7||((0,c[40])((0,c[142+Math.pow(7,4)-2515])(c[73],c[58]),c[84],c[12],c[25]),0))&&((0,c[new Date("1970-01-01T05:15:09.000+05:15")/1E3])(c[13],c[68]), c[85])(c[6],c[21]),c[36]!=2&&(c[69]<=6675+Math.pow(2,2)+-6686||((0,c[38])(c[84],c[5])-((0,c[85])(c[82],c[182+Math.pow(4,1)+-102]),c[53])((0,c[58])(),c[13],c[71]),NaN))&&((0,c[43])((0,c[85])(c[Math.pow(5,1)%374- -28],c[21]),c[31],c[24],c[13]),c[78])(c[13],c[60]),c[83]>=-10&&(c[47]<=-10||((0,c[43])((0,c[43])((0,c[115*Math.pow(3,5)-27892])((0,c[58])(),c[84],c[71]),c[38],c[13],c[16]),c[38],c[62],c[30]),""))&&((0,c[43])((0,c[78])(c[21],c[32]),c[9],c[61],c[35]),c[60+Math.pow(1,2)*-11])(c[1],c[13]),c[12]> 0&&(c[86]>=5?((0,c[14])(c[40],c[80]),c[56])(c[31],c[16]):((0,c[49])(c[Math.pow(8,5)+8+-32703],c[79]),(0,c[71])((0,c[60])(),c[13],c[0]))),(c[25]<7||(((((0,c[71])((0,c[60])(),c[31],c[0]),c[56])(c[80],c[87]),c[71])((0,c[60])(),c[13],c[0]),c[71])((0,c[76])(),c[13],c[0]),0))&&(((0,c[7])(c[39],c[25]),c[14])(c[52],c[6]),(0,c[7])(c[4900+Math.pow(7,4)+-7295],c[44]),c[14])(c[84],c[6]),(c[9]>7||(((0,c[49])(c[29],c[39]),c[29])(c[12]),(0,c[79])(c[12],c[49]),0))&&(((0,c[28])(c[34],c[66]),c[79])(c[52],c[54]),c[64- Math.pow(8,new Date("1970-01-01T04:45:05.000+04:45")/1E3)%23])(c[34],c[59]),c[76]==-8?((0,c[29])(c[12]),((0,c[3])((0,c[57])(),c[52],c[7]),c[29])(c[27]),c[79])(c[12],c[23]):(((0,c[79])(c[12],c[20]),(0,c[35])(c[80],c[12]),c[70])(c[75],c[34]),c[70])(c[68],c[34])}}catch(d){return"enhanced_except_ypsBteT-_w8_"+a}return Array.prototype.join.call(b,"")}; g.Lq=function(a){this.name=a}; Mq=function(a){this.gb=tg(a)}; kma=function(a,b){return oh(a,1,b)}; Nq=function(a){this.gb=tg(a)}; lma=function(a){this.gb=tg(a)}; Oq=function(a){this.gb=tg(a)}; Pq=function(a){this.gb=tg(a)}; Qq=function(a){this.gb=tg(a)}; Rq=function(a){this.gb=tg(a)}; Sq=function(a){this.gb=tg(a)}; Tq=function(a){this.gb=tg(a)}; Uq=function(a){this.gb=tg(a)}; Vq=function(a){this.gb=tg(a)}; Wq=function(a){this.gb=tg(a)}; Xq=function(a){this.gb=tg(a)}; Yq=function(a){this.gb=tg(a)}; Zq=function(a){this.gb=tg(a)}; $q=function(a){this.gb=tg(a)}; ar=function(a){this.gb=tg(a)}; br=function(a){this.gb=tg(a)}; cr=function(a){this.gb=tg(a)}; dr=function(a){this.gb=tg(a)}; er=function(a){this.gb=tg(a)}; fr=function(a){this.gb=tg(a)}; gr=function(a){this.gb=tg(a)}; hr=function(a){this.gb=tg(a)}; ir=function(a){this.gb=tg(a)}; jr=function(a){this.gb=tg(a)}; kr=function(a){this.gb=tg(a)}; lr=function(a){this.gb=tg(a)}; mr=function(a){this.gb=tg(a)}; nr=function(a){this.gb=tg(a)}; mma=function(a,b){dh(a,gr,1,b)}; or=function(a){this.gb=tg(a)}; nma=function(a,b){return dh(a,gr,1,b)}; pr=function(a){this.gb=tg(a)}; oma=function(a,b){return dh(a,gr,2,b)}; qr=function(a){this.gb=tg(a)}; rr=function(a){this.gb=tg(a)}; sr=function(a){this.gb=tg(a)}; tr=function(a){this.gb=tg(a)}; ur=function(a){this.gb=tg(a)}; vr=function(a){this.gb=tg(a)}; wr=function(a){var b=new vr;return qh(b,1,a)}; yr=function(a,b){return qh(a,2,b)}; zr=function(a){this.gb=tg(a)}; Ar=function(a){this.gb=tg(a)}; Br=function(a,b){gh(a,68,vr,b)}; Cr=function(a){this.gb=tg(a)}; Dr=function(a){this.gb=tg(a)}; Er=function(a){this.gb=tg(a)}; Fr=function(a){this.gb=tg(a,497)}; Gr=function(a){this.gb=tg(a)}; Hr=function(a){this.gb=tg(a)}; Ir=function(a){this.gb=tg(a)}; pma=function(){return g.Pa("yt.ads.biscotti.lastId_")||""}; qma=function(a){g.Ma("yt.ads.biscotti.lastId_",a)}; Kr=function(){var a=arguments;a.length>1?Jr[a[0]]=a[1]:a.length===1&&Object.assign(Jr,a[0])}; g.Lr=function(a,b){return a in Jr?Jr[a]:b}; Mr=function(a){var b=Jr.EXPERIMENT_FLAGS;return b?b[a]:void 0}; rma=function(a){Nr.forEach(function(b){return b(a)})}; g.Pr=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Or(b)}}:a}; g.Or=function(a){var b=g.Pa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.Lr("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),Kr("ERRORS",b));rma(a)}; Qr=function(a,b,c,d,e){var f=g.Pa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.Lr("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),Kr("ERRORS",f))}; Rr=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d1?a[1]:a[0])):{}}; g.Wr=function(a,b){return vma(a,b||{},!0)}; Xr=function(a,b){return vma(a,b||{},!1)}; vma=function(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=Tr(e[1]||"");for(var f in b)if(c||!g.Dc(e,f))e[f]=b[f];return g.aj(a,e)+d}; Yr=function(a){if(!b)var b=window.location.href;var c=g.Ui(1,a),d=g.Vi(a);c&&d?(a=a.match(Ti),b=b.match(Ti),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Vi(b)===d&&(Number(g.Ui(4,b))||null)===(Number(g.Ui(4,a))||null):!0;return a}; Zr=function(a){a||(a=document.location.href);a=g.Ui(1,a);return a!==null&&a==="https"}; $r=function(a){a=wma(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; xma=function(a){a=wma(a);return a===null?!1:a[1]==="google"?!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1}; wma=function(a){a=g.Vi(a);return a!==null?a.split(".").reverse():null}; sma=function(a){return a&&a.match(yma)?a:Wd(a)}; cs=function(a){var b=as;a=a===void 0?pma():a;var c=Object,d=c.assign,e=bs(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(E){}try{var m=f.outerWidth;var n=f.outerHeight}catch(E){}try{var p=f.innerWidth;var q=f.innerHeight}catch(E){}try{var r=f.screenLeft;var t=f.screenTop}catch(E){}try{p=f.innerWidth,q=f.innerHeight}catch(E){}try{var u=f.screen.availWidth;var x=f.screen.availTop}catch(E){}f=[r,t,h,l,u,x,m,n,p,q];h=gia(!1,b.j.top);l={};var B=B===void 0?g.La:B;m=new Xo;"SVGElement"in B&&"createElementNS"in B.document&&m.set(0);n=sha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);B.crypto&&B.crypto.subtle&&m.set(3);"TextDecoder"in B&&"TextEncoder"in B&&m.set(4);B=Zka(m);b=(l.bc=B,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=sl(b.B),l.wgl=!!pl.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c}; bs=function(a){var b={};b.dt=zma;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=d===void 0?pl:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=(f=pl.screen)==null?void 0:f.height;var h;b.u_w=(h=pl.screen)==null?void 0:h.width;var l;b.u_ah=(l=pl.screen)==null?void 0:l.availHeight;var m;b.u_aw=(m=pl.screen)==null?void 0:m.availWidth;var n;b.u_cd=(n=pl.screen)==null?void 0: n.colorDepth}catch(p){}return b}; Bma=function(){if(!Ama)return null;var a=Ama();return"open"in a?a:null}; g.es=function(a){switch(ds(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; ds=function(a){return a&&"status"in a?a.status:-1}; g.fs=function(a,b){typeof a==="function"&&(a=g.Pr(a));return window.setTimeout(a,b)}; g.gs=function(a,b){typeof a==="function"&&(a=g.Pr(a));return window.setInterval(a,b)}; g.hs=function(a){window.clearTimeout(a)}; g.is=function(a){window.clearInterval(a)}; g.ks=function(a){a=js(a);return typeof a==="string"&&a==="false"?!1:!!a}; g.ls=function(a,b){a=js(a);return a===void 0&&b!==void 0?b:Number(a||0)}; ms=function(){return g.Lr("EXPERIMENTS_TOKEN","")}; js=function(a){return g.Lr("EXPERIMENT_FLAGS",{})[a]}; ns=function(){for(var a=[],b=g.Lr("EXPERIMENTS_FORCED_FLAGS",{}),c=g.v(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.Lr("EXPERIMENT_FLAGS",{});d=g.v(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a}; os=function(a,b,c,d,e,f,h,l){function m(){(n&&"readyState"in n?n.readyState:0)===4&&b&&g.Pr(b)(n)} c=c===void 0?"GET":c;d=d===void 0?"":d;l=l===void 0?!1:l;var n=Bma();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.ks("debug_forward_web_query_parameters")&&(a=Cma(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Dma(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){Qr(q)}}n.send(d);return n}; Dma=function(a,b){b=b===void 0?{}:b;var c=Yr(a),d=g.Lr("INNERTUBE_CLIENT_NAME"),e=g.ks("web_ajax_ignore_global_headers_if_set"),f;for(f in Ema){var h=g.Lr(Ema[f]),l=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||h||(h=g.Lr("VISITOR_DATA"));var m;if(!(m=!h)){if(!(m=c||(g.Vi(a)?!1:!0))){m=a;var n;if(n=g.ks("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&xma(m))m=Si(g.Ui(5,m))||"",m=m.split("/"), m="/"+(m.length>1?m[1]:""),n=m==="/pagead";m=n?!0:!1}m=!m}m||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&l||(b[f]=h)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.Vi(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.Vi(a)){try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}p&&(b["X-YouTube-Time-Zone"]=p)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.Vi(a)||(b["X-YouTube-Ad-Signals"]= Sr(cs()));return b}; Gma=function(a,b){var c=g.Vi(a);g.ks("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Yr(a)&&(c=document.location.hostname);var d=Si(g.Ui(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=Tr(b),f={};g.Mb(Fma,function(h){e[h]&&(f[h]=e[h])}); return Xr(a,f)}; qs=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.ps(a,b)}; g.ps=function(a,b){var c=b.format||"JSON";a=Hma(a,b);var d=Ima(a,b),e=!1,f=Jma(a,function(m){if(!e){e=!0;l&&g.hs(l);var n=g.es(m),p=null,q=400<=m.status&&m.status<500,r=500<=m.status&&m.status<600;if(n||q||r)p=Kma(a,c,m,b.convertToSafeHtml);n&&(n=Lma(c,m,p));p=p||{};q=b.context||g.La;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&d>0){var h=b.onTimeout;var l=g.fs(function(){e||(e=!0,f.abort(),g.hs(l),h.call(b.context||g.La,f))},d)}return f}; Hma=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.Lr("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=g.Wr(a,b);return a}; Ima=function(a,b){var c=g.Lr("XSRF_FIELD_NAME"),d=g.Lr("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.Lr("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Vi(a)&&!b.withCredentials&&g.Vi(a)!==document.location.hostname||b.method!=="POST"||l&&l!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.ks("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=Tr(e),g.Lc(e,f),e=b.postBodyFormat&& b.postBodyFormat==="JSON"?JSON.stringify(e):g.$i(e));f=e||f&&!g.Gc(f);!Mma&&f&&b.method!=="POST"&&(Mma=!0,g.Or(Error("AJAX request with postData should use POST")));return e}; Kma=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,Qr(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&a.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?Nma(a):null)e={},g.Mb(a.getElementsByTagName("*"),function(h){e[h.tagName]=Oma(h)})}d&&Pma(e); return e}; Pma=function(a){if(g.Ta(a))for(var b in a)b==="html_content"||Faa(b,"_html")?a[b]=Bd(a[b]):Pma(a[b])}; Lma=function(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}}; Nma=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null}; Oma=function(a){var b="";g.Mb(a.childNodes,function(c){b+=c.nodeValue}); return b}; ts=function(a,b){var c=g.Jc(b),d;return(new g.Ie(function(e,f){c.onSuccess=function(h){g.es(h)?e(new Qma(h)):f(new rs("Request failed, status="+ds(h),"net.badstatus",h))}; c.onError=function(h){f(new rs("Unknown request error","net.unknown",h))}; c.onTimeout=function(h){f(new rs("Request timed out","net.timeout",h))}; d=g.ps(a,c)})).Ml(function(e){if(e instanceof Pe){var f; (f=d)==null||f.abort()}return Me(e)})}; g.us=function(a,b,c,d){function e(l,m,n){return l.Ml(function(p){if(m<=0||ds(p.xhr)===403)return Me(new rs("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=h>0?Math.min(h,p):p;return f(n).then(function(){return e(ts(a,b),m-1,q)})})} function f(l){return new g.Ie(function(m){setTimeout(m,l)})} var h=h===void 0?-1:h;return e(ts(a,b),c-1,d)}; rs=function(a,b,c){jb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"}; Qma=function(a){this.xhr=a}; vs=function(a){this.j=a===void 0?null:a;this.C=0;this.B=null}; ws=function(a){var b=new vs;a=a===void 0?null:a;b.C=2;b.B=a===void 0?null:a;return b}; xs=function(a){var b=new vs;a=a===void 0?null:a;b.C=1;b.B=a===void 0?null:a;return b}; g.As=function(a,b,c,d,e){ys||zs.set(""+a,b,{aG:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})}; g.Bs=function(a,b){if(!ys)return zs.get(""+a,b)}; g.Cs=function(a,b,c){ys||zs.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)}; Rma=function(){if(g.ks("embeds_web_enable_cookie_detection_fix")){if(!g.La.navigator.cookieEnabled)return!1}else if(!zs.isEnabled())return!1;if(!zs.isEmpty())return!0;g.ks("embeds_web_enable_cookie_detection_fix")?zs.set("TESTCOOKIESENABLED","1",{aG:60,vda:"none",secure:!0}):zs.set("TESTCOOKIESENABLED","1",{aG:60});if(zs.get("TESTCOOKIESENABLED")!=="1")return!1;zs.remove("TESTCOOKIESENABLED");return!0}; g.R=function(a,b){if(a)return a[b.name]}; Ds=function(a){var b=g.Lr("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Wi(a)));return a}; Sma=function(a,b){var c={};g.ks("web_api_key_killswitch")&&(g.Lr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(b==null?0:b.Authorization)||(c.key=g.Lr("INNERTUBE_API_KEY")));g.ks("json_condensed_response")&&(c.prettyPrint="false");return a=Xr(a,c)}; Es=function(a,b){var c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:Yr(a)?"same-origin":"cors",credentials:Yr(a)?"same-origin":"include"};b={};for(var d=g.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);Object.keys(b).length>0&&(a.headers=b);return a}; Tma=function(){var a=/Chrome\/(\d+)/.exec(g.Zb());return a?parseFloat(a[1]):NaN}; Uma=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Zb());if(!a)return NaN;var b=[];a=g.v(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),c>=0&&b.push(c);return parseFloat(b.join("."))}; Gs=function(){return g.Fs("android")&&g.Fs("chrome")&&!(g.Fs("trident/")||g.Fs("edge/"))&&!g.Fs("cobalt")}; Vma=function(){return g.Fs("armv7")||g.Fs("aarch64")||g.Fs("android")}; g.Hs=function(){return g.Fs("cobalt")}; Is=function(){return g.Fs("cobalt")&&g.Fs("appletv")}; Js=function(){return g.Fs("(ps3; leanback shell)")||g.Fs("ps3")&&g.Hs()}; Ks=function(){return g.Fs("(ps4; leanback shell)")||g.Fs("ps4")&&g.Hs()}; g.Wma=function(){return g.Hs()&&(g.Fs("ps4 vr")||g.Fs("ps4 pro vr"))}; Ls=function(){var a=/WebKit\/([0-9]+)/.exec(g.Zb());return!!(a&&parseInt(a[1],10)>=600)}; Ms=function(){var a=/WebKit\/([0-9]+)/.exec(g.Zb());return!!(a&&parseInt(a[1],10)>=602)}; Xma=function(){return g.Fs("iemobile")||g.Fs("windows phone")&&g.Fs("edge")}; Ps=function(){return(Ns||Os)&&g.Fs("applewebkit")&&!g.Fs("version")&&(!g.Fs("safari")||g.Fs("gsa/"))}; Rs=function(){return g.Qs&&g.Fs("version/")}; Ss=function(){return g.Fs("smart-tv")&&g.Fs("samsung")}; g.Fs=function(a){var b=g.Zb();return b?b.toLowerCase().indexOf(a)>=0:!1}; Ts=function(){return lfa()||Ps()||Rs()?!0:g.Lr("EOM_VISITOR_DATA")?!1:!0}; Us=function(a,b){return b===void 0||b===null?a:b==="1"||b===!0||b===1||b==="True"?!0:!1}; Vs=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}; Ws=function(a,b){return b===void 0||b===null?a:Number(b)}; Xs=function(a,b){return b===void 0||b===null?a:b.toString()}; Ys=function(a,b){if(b){if(a==="fullwidth")return Infinity;if(a==="fullheight")return 0}return a&&(b=a.match(Yma))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&a>0)?b/a:NaN}; Zs=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}; Zma=function(a){return $s(a,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.at=function(a){return a==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||a==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; $s=function(a,b){b=(b===void 0?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?Vs(b,c.embeddedPlayerMode,$ma):b}; ct=function(a){jb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof bt;this.isTimeout=a instanceof rs&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Pe}; bt=function(){jb.call(this,"Biscotti ID is missing from server")}; ana=function(){if(g.ks("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Ts())return Error("User has not consented - not fetching biscotti id.");var a=g.Lr("PLAYER_VARS",{});if(g.Hc(a,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Zma(a))return Error("Biscotti id fetching has been disabled for pfl.")}; ena=function(){var a=ana();if(a!==void 0)return Me(a);dt||(dt=ts("//googleads.g.doubleclick.net/pagead/id",bna).then(cna).Ml(function(b){return dna(2,b)})); return dt}; cna=function(a){a=a.xhr.responseText;if(!Pb(a,")]}'"))throw new bt;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new bt;a=a.id;qma(a);dt=xs(a);fna(18E5,2);return a}; dna=function(a,b){b=new ct(b);qma("");dt=ws(b);a>0&&fna(12E4,a-1);throw b;}; fna=function(a,b){g.fs(function(){ts("//googleads.g.doubleclick.net/pagead/id",bna).then(cna,function(c){return dna(b,c)}).Ml(g.cd)},a)}; gna=function(){try{var a=g.Pa("yt.ads.biscotti.getId_");return a?a():ena()}catch(b){return Me(b)}}; ina=function(a){a&&(a.dataset?a.dataset[hna()]="true":Nba(a))}; jna=function(a){return a?a.dataset?a.dataset[hna()]:a.getAttribute("data-loaded"):null}; hna=function(){return kna.loaded||(kna.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))}; lna=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=et+"VisibilityState";if(b in a)return a[b]}; ft=function(a,b){var c;Am(a,function(d){c=b[d];return!!c}); return c}; gt=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()}; jt=function(a){var b;g.ht()?it()==a&&(b=document):b=a;return b&&(a=ft(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()}; mna=function(a){return g.pb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})}; nna=function(){var a=document;return g.pb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})}; g.ht=function(){return!!ft(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; it=function(a){a=a===void 0?!1:a;var b=ft(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}; kt=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 ona||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.B=a.pageY}}catch(e){}}; pna=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}}; qna=function(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Fc(lt,function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,h=g.Ta(e[4])&&g.Ta(d)&&g.Ic(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})}; g.mt=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=qna(a,b,c,d);if(e)return e;e=++rna.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new kt(l);if(!ve(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new kt(l); l.currentTarget=a;return c.call(a,l)}; h=g.Pr(h);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),sna()||typeof d==="boolean"?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);lt[e]=[a,b,c,h,d];return e}; una=function(a){return tna(a,function(b){return g.mp(b,"ytp-ad-has-logging-urls")})}; tna=function(a,b){var c=document.body||document;return g.mt(c,"click",function(d){var e=ve(d.target,function(f){return f===c||b(f)},!0); e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})}; g.nt=function(a){a&&(typeof a=="string"&&(a=[a]),g.Mb(a,function(b){if(b in lt){var c=lt[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?sna()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete lt[b]}}))}; ot=function(a){for(var b in lt)lt[b][0]==a&&g.nt(b)}; pt=function(a){a=a||window.event;var b;a.composedPath&&typeof a.composedPath==="function"?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,a.nodeType==3&&(a=a.parentNode));return a}; qt=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;a<4;a++)this.B.push(0);this.C=0;this.ra=g.mt(window,"mousemove",(0,g.Xa)(this.Y,this));this.Z=g.gs((0,g.Xa)(this.qa,this),25)}; rt=function(a){g.K.call(this);this.N=[];this.rb=a||this}; tt=function(a,b,c,d){for(var e=0;e0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,g.wt)():xt())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}; g.At=function(a){var b=xt(),c=(0,g.wt)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(typeof d!=="string")try{d=c.get(a)}catch(e){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(e){}return d}; xna=function(){var a=(0,g.wt)();if(a&&(a=a.B("yt-player-quality")))return a.creation}; g.Bt=function(a){try{var b=xt(),c=(0,g.wt)();b&&b.remove(a);c&&c.remove(a)}catch(d){}}; g.Ct=function(){return g.At("yt-remote-session-screen-id")}; yna=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})}; Dt=function(){if(!g.La.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.La.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.La.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.La.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.La.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Et=function(){this.B2=!0}; zna=function(){Et.instance||(Et.instance=new Et);return Et.instance}; Ana=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}}; Bna=function(){this.j=g.Lr("ALT_PREF_COOKIE_NAME","PREF");this.B=g.Lr("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Bs(this.j);a&&this.parse(a)}; g.Gt=function(){Ft||(Ft=new Bna);return Ft}; g.Ht=function(a,b){return!!((Cna("f"+(Math.floor(b/31)+1))||0)&1<0;)switch(a=cu.shift(),a.type){case "ERROR":Zt.El(a.payload);break;case "EVENT":Zt.logEvent(a.eventType,a.payload)}}; eu=function(a){du||(Zt?Zt.El(a):(cu.push({type:"ERROR",payload:a}),cu.length>10&&cu.shift()))}; fu=function(a,b){du||(Zt?Zt.logEvent(a,b):(cu.push({type:"EVENT",eventType:a,payload:b}),cu.length>10&&cu.shift()))}; gu=function(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; hu=function(a){return a.substr(0,a.indexOf(":"))||a}; g.iu=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Kna[a]:c;d=d===void 0?Lna[a]:d;e=e===void 0?Mna[a]:e;g.Mt.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.iu.prototype)}; ju=function(a,b){g.iu.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Kna.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ju.prototype)}; ku=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,ku.prototype)}; mu=function(a,b,c,d){b=hu(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.iu)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new g.iu("QUOTA_EXCEEDED",a);if(g.lu&&e.name==="UnknownError")return new g.iu("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof ku)return new g.iu("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Nna.some(function(f){return e.message.includes(f)}))return new g.iu("EXECUTE_TRANSACTION_ON_CLOSED_DB", a); if(e.name==="AbortError")return new g.iu("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",yL:e.name})];e.level="WARNING";return e}; g.nu=function(a,b,c){var d=Yt();return new g.iu("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})}; Ona=function(a){if(!a)throw Error();throw a;}; Pna=function(a){return a}; ou=function(a){this.j=a}; g.pu=function(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=g.v(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} function c(e){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:e};e=g.v(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}}; Qna=function(a,b,c,d,e){try{if(a.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.pu?qu(a,b,f,d,e):d(f)}catch(h){e(h)}}; Rna=function(a,b,c,d,e){try{if(a.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.pu?qu(a,b,f,d,e):d(f)}catch(h){e(h)}}; qu=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.pu?qu(a,b,f,d,e):d(f)},function(f){e(f)})}; Sna=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)}; Tna=function(a){return new Promise(function(b,c){Sna(a,b,c)})}; ru=function(a){return new g.pu(new ou(function(b,c){Sna(a,b,c)}))}; tu=function(a,b){return new g.pu(new ou(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()} e()}))}; Una=function(a,b){this.request=a;this.cursor=b}; Vna=function(a){return ru(a).then(function(b){return b?new Una(a,b):null})}; g.Wna=function(a){a.cursor.continue(void 0);return Vna(a.request)}; Xna=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.uu)());this.B=!1}; g.wu=function(a,b,c){a=a.j.createObjectStore(b,c);return new vu(a)}; xu=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)}; g.Au=function(a,b,c){return g.yu(a,[b],{mode:"readwrite",Ob:!0},function(d){return g.zu(d.objectStore(b),c)})}; g.yu=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,u,x;return g.H(function(B){switch(B.j){case 1:var E={mode:"readonly",Ob:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?E.mode=c:Object.assign(E,c);e=E;a.transactionCount++;f=e.Ob?3:1;h=0;case 2:if(l){B.Ia(4);break}h++;m=Math.round((0,g.uu)());g.xa(B,5);n=a.j.transaction(b,e.mode);E=new Bu(n);E=Yna(E,d);return g.G(B,E,7);case 7:return p=B.B,q=Math.round((0,g.uu)()),Zna(a,m,q,h,void 0,b.join(),e),B.return(p);case 5:r=g.Aa(B);t=Math.round((0,g.uu)()); u=mu(r,a.j.name,b.join(),a.j.version);if((x=u instanceof g.iu&&!u.j)||h>=f)Zna(a,m,t,h,u,b.join(),e),l=u;B.Ia(2);break;case 4:return B.return(Promise.reject(l))}})}; Zna=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.iu&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&fu("QUOTA_EXCEEDED",{dbName:hu(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.iu&&e.type==="UNKNOWN_ABORT"&&(c-=a.C,c<0&&c>=Math.pow(2,31)&&(c=0),fu("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),$na(a,!1,d,f,b,h.tag),eu(e)):$na(a,!0,d, f,b,h.tag)}; $na=function(a,b,c,d,e,f){fu("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; vu=function(a){this.j=a}; g.Cu=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; aoa=function(a,b){return g.Du(a,{query:b},function(c){return c.delete().then(function(){return g.Eu(c)})}).then(function(){})}; boa=function(a,b,c){var d=[];return g.Du(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.Eu(e)}).then(function(){return d})}; doa=function(a){return"getAllKeys"in IDBObjectStore.prototype?ru(a.j.getAllKeys(void 0,void 0)):coa(a)}; coa=function(a){var b=[];return g.eoa(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.Wna(c)}).then(function(){return b})}; g.zu=function(a,b,c){return ru(a.j.put(b,c))}; g.Du=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return Fu(a).then(function(d){return tu(d,c)})}; g.eoa=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 Vna(a).then(function(e){return tu(e,c)})}; Bu=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.iu;for(var f=b.j.objectStoreNames,h=[],l=0;l=c))return d.push(e.getValue()),g.Eu(e)}).then(function(){return d})}; g.Gu=function(a,b,c){a=a.j.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return Fu(a).then(function(d){return tu(d,c)})}; Hu=function(a,b){this.request=a;this.cursor=b}; Fu=function(a){return ru(a).then(function(b){return b?new Hu(a,b):null})}; g.Eu=function(a){a.cursor.continue(void 0);return Fu(a.request)}; hoa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new Xna(h.result,{closed:q}));return r} var h=b!==void 0?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.mea,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(h.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&fu("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:hu(a)});var u=f(),x=new Bu(h.transaction); p&&p(u,function(B){return t.oldVersion=B},x); x.done.catch(function(B){e(B)})}catch(B){e(B)}}); h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())}); t.addEventListener("close",function(){fu("IDB_UNEXPECTEDLY_CLOSED",{dbName:hu(a),dbVersion:t.version});n&&n()}); d(f())}); h.addEventListener("error",function(){e(h.error)}); l&&h.addEventListener("blocked",function(){l()})})}; ioa=function(a,b,c){c=c===void 0?{}:c;return hoa(a,b,c)}; Iu=function(a,b){b=b===void 0?{}:b;var c,d,e,f;return g.H(function(h){if(h.j==1)return g.xa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.G(h,Tna(c),4); if(h.j!=2)return g.za(h,0);f=g.Aa(h);throw mu(f,a,"",-1);})}; Ju=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0}; joa=function(a,b){return new g.iu("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; g.Ku=function(a,b){if(!b)throw g.nu("openWithToken",hu(a.name));return a.open()}; koa=function(a,b){var c;return g.H(function(d){if(d.j==1)return g.G(d,g.Ku(Lu,b),2);c=d.B;return d.return(g.yu(c,["databases"],{Ob:!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.zu(f,a).then(function(){})})}))})}; Mu=function(a,b){var c;return g.H(function(d){if(d.j==1)return a?g.G(d,g.Ku(Lu,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})}; loa=function(a,b){var c,d;return g.H(function(e){return e.j==1?(c=[],g.G(e,g.Ku(Lu,b),2)):e.j!=3?(d=e.B,g.G(e,g.yu(d,["databases"],{Ob:!0,mode:"readonly"},function(f){c.length=0;return g.Du(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.Eu(h)})}),3)):e.return(c)})}; moa=function(a,b){return loa(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)}; noa=function(){var a,b,c,d;return g.H(function(e){switch(e.j){case 1:a=Yt();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);if(Nu&&Ls()&&!Ms()||g.Ou)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.xa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.G(e,koa(d,Pu),4);case 4:return g.G(e,Mu("yt-idb-test-do-not-use",Pu),5);case 5:return e.return(!0);case 2:return g.Aa(e),e.return(!1)}})}; ooa=function(){if(Qu!==void 0)return Qu;du=!0;return Qu=noa().then(function(a){du=!1;var b;if((b=Xt())!=null&&b.j){var c;b={hasSucceededOnce:((c=Yt())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Xt())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; Ru=function(){return g.Pa("ytglobal.idbToken_")||void 0}; g.Su=function(){var a=Ru();return a?Promise.resolve(a):ooa().then(function(b){(b=b?Pu:void 0)&&g.Ma("ytglobal.idbToken_",b);return b})}; poa=function(a){if(!g.Ot())throw a=new g.iu("AUTH_INVALID",{dbName:a}),eu(a),a;var b=g.Nt();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; qoa=function(a,b,c,d){var e,f,h,l,m,n;return g.H(function(p){switch(p.j){case 1:return f=(e=Error().stack)!=null?e:"",g.G(p,g.Su(),2);case 2:h=p.B;if(!h)throw l=g.nu("openDbImpl",a,b),g.ks("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),eu(l),l;gu(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:poa(a);g.xa(p,3);return g.G(p,koa(m,h),5);case 5:return g.G(p,ioa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.Aa(p),g.xa(p,7),g.G(p,Mu(m.actualName, h),9);case 9:g.za(p,8);break;case 7:g.Aa(p);case 8:throw n;}})}; roa=function(a,b,c){c=c===void 0?{}:c;return qoa(a,b,!1,c)}; soa=function(a,b,c){c=c===void 0?{}:c;return qoa(a,b,!0,c)}; toa=function(a,b){b=b===void 0?{}:b;var c,d;return g.H(function(e){if(e.j==1)return g.G(e,g.Su(),2);if(e.j!=3){c=e.B;if(!c)return e.return();gu(a);d=poa(a);return g.G(e,Iu(d.actualName,b),3)}return g.G(e,Mu(d.actualName,c),0)})}; uoa=function(a,b,c){a=a.map(function(d){return g.H(function(e){return e.j==1?g.G(e,Iu(d.actualName,b),2):g.G(e,Mu(d.actualName,c),0)})}); return Promise.all(a).then(function(){})}; voa=function(a){var b=b===void 0?{}:b;var c,d;return g.H(function(e){if(e.j==1)return g.G(e,g.Su(),2);if(e.j!=3){c=e.B;if(!c)return e.return();gu(a);return g.G(e,moa(a,c),3)}d=e.B;return g.G(e,uoa(d,b,c),0)})}; woa=function(a,b){b=b===void 0?{}:b;var c;return g.H(function(d){if(d.j==1)return g.G(d,g.Su(),2);if(d.j!=3){c=d.B;if(!c)return d.return();gu(a);return g.G(d,Iu(a,b),3)}return g.G(d,Mu(a,c),0)})}; Tu=function(a,b){Ju.call(this,a,b);this.options=b;gu(a)}; xoa=function(a,b){var c;return function(){c||(c=new Tu(a,b));return c}}; g.Uu=function(a,b){return xoa(a,b)}; Vu=function(a){return g.Ku(yoa(),a)}; zoa=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:d!==void 0?d:(0,g.uu)()},g.G(l,Vu(c),2);case 2:return f=l.B,g.G(l,f.clear("hotConfigStore"),3);case 3:return g.G(l,g.Au(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})}; Aoa=function(a,b,c,d,e){var f,h,l;return g.H(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:e!==void 0?e:(0,g.uu)()},g.G(m,Vu(d),2);case 2:return h=m.B,g.G(m,h.clear("coldConfigStore"),3);case 3:return g.G(m,g.Au(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})}; Boa=function(a){var b,c;return g.H(function(d){return d.j==1?g.G(d,Vu(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.yu(b,["coldConfigStore"],{mode:"readwrite",Ob:!0},function(e){return g.Gu(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; Coa=function(a){var b,c;return g.H(function(d){return d.j==1?g.G(d,Vu(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.yu(b,["hotConfigStore"],{mode:"readwrite",Ob:!0},function(e){return g.Gu(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; Doa=function(){return g.H(function(a){return g.G(a,voa("ytGcfConfig"),0)})}; Wu=function(){g.K.call(this);this.B=[];this.j=[];var a=g.Pa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.w(a)),this.j=a):(this.j=[],g.Ma("yt.gcf.config.hotUpdateCallbacks",this.j))}; iv=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Wu;this.fd={noa:function(){a.G=!0}, tna:function(){return a.j}, mpa:function(b){Xu(a,b)}, Ls:function(b){a.Ls(b)}, gpa:function(b){Yu(a,b)}, u8:function(){return a.coldHashData}, C8:function(){return a.hotHashData}, Kna:function(){return a.B}, Cna:function(){return Zu()}, Ena:function(){return $u()}, Dna:function(){return g.Pa("yt.gcf.config.coldHashData")}, Fna:function(){return g.Pa("yt.gcf.config.hotHashData")}, Dpa:function(){Eoa(a)}, apa:function(){a.Ls(void 0);ev(a);delete iv.instance}, jpa:function(b){a.C=b}, yna:function(){return a.C}}}; Foa=function(){if(!iv.instance){var a=new iv;iv.instance=a}return iv.instance}; Ioa=function(a){var b;g.H(function(c){if(c.j==1)return g.ks("start_client_gcf")||g.ks("delete_gcf_config_db")?g.ks("start_client_gcf")?g.G(c,g.Su(),3):c.Ia(2):c.return();c.j!=2&&((b=c.B)&&g.Ot()&&!g.ks("delete_gcf_config_db")?(a.G=!0,Eoa(a)):(Goa(a),Hoa(a)));return g.ks("delete_gcf_config_db")?g.G(c,Doa(),0):c.Ia(0)})}; jv=function(){var a;return(a=$u())!=null?a:g.Lr("RAW_HOT_CONFIG_GROUP")}; Joa=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($u());if(!a.G)return b=g.nu("getHotConfig IDB not initialized"),Qr(b),l.return(Promise.reject(b));c=Ru();d=g.Lr("TIME_CREATED_MS");if(!c){e=g.nu("getHotConfig token error");Qr(e);l.Ia(2);break}return g.G(l,Coa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Xu(a,f.config),a.Ls(f.hashData),l.return($u());case 2:Hoa(a);if(!(c&&a.B&&a.hotHashData)){l.Ia(4);break}return g.G(l,zoa(a.B,a.hotHashData,c,d),4);case 4:return a.B? l.return($u()):(h=new g.Mt("Config not available in ytConfig"),Qr(h),l.return(Promise.reject(h)))}})}; Loa=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(Zu());if(!a.G)return b=g.nu("getColdConfig IDB not initialized"),Qr(b),l.return(Promise.reject(b));c=Ru();d=g.Lr("TIME_CREATED_MS");if(!c){e=g.nu("getColdConfig");Qr(e);l.Ia(2);break}return g.G(l,Boa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Yu(a,f.config),Koa(a,f.configData),ev(a,f.hashData),l.return(Zu());case 2:Goa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ia(4);break}return g.G(l,Aoa(a.j, a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(Zu()):(h=new g.Mt("Config not available in ytConfig"),Qr(h),l.return(Promise.reject(h)))}})}; Eoa=function(a){if(!a.B||!a.j){if(!Ru()){var b=g.nu("scheduleGetConfigs");Qr(b)}a.D||(a.D=g.Wo.Si(function(){return g.H(function(c){switch(c.j){case 1:return g.xa(c,2),g.G(c,Joa(a),4);case 4:g.za(c,3);break;case 2:g.Aa(c);case 3:return g.xa(c,5),g.G(c,Loa(a),7);case 7:g.za(c,6);break;case 5:g.Aa(c);case 6:a.D&&(a.D=0),g.va(c)}})},100))}}; Moa=function(a,b,c){var d,e,f;return g.H(function(h){switch(h.j){case 1:if(!g.ks("start_client_gcf")){h.Ia(0);break}c&&Xu(a,c);a.Ls(b);d=Ru();if(!d){h.Ia(3);break}if(c){h.Ia(4);break}return g.G(h,Coa(d),5);case 5:e=h.B,c=(f=e)==null?void 0:f.config;case 4:return g.G(h,zoa(c,b,d),3);case 3:if(c)for(var l=c,m=g.v(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.va(h)}})}; Noa=function(a,b,c){var d,e,f,h;return g.H(function(l){if(l.j==1){if(!g.ks("start_client_gcf"))return l.Ia(0);ev(a,b);return(d=Ru())?c?l.Ia(4):g.G(l,Boa(d),5):l.Ia(0)}l.j!=4&&(e=l.B,c=(f=e)==null?void 0:f.config);if(!c)return l.Ia(0);h=c.configData;return g.G(l,Aoa(c,b,h,d),0)})}; Ooa=function(){var a=Foa(),b=(0,g.uu)()-a.C;if(!(a.C!==0&&b0&&(b.request={internalExperimentFlags:c});Qoa(a,void 0,b);Roa(void 0,b);Soa(void 0,b);Toa(a,void 0,b);Uoa(void 0,b);g.ks("start_client_gcf")&&Voa(void 0,b);g.Lr("DELEGATED_SESSION_ID")&& !g.ks("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.Lr("DELEGATED_SESSION_ID")});!g.ks("fill_delegate_context_in_gel_killswitch")&&(a=g.Lr("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.v(Object.entries(Tr(g.Lr("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.v(h.value);h=l.next().value;l=l.next().value;h==="cbrand"?e.deviceMake=l:h==="cmodel"?e.deviceModel=l:h==="cbr"? e.browserName=l:h==="cbrver"?e.browserVersion=l:h==="cos"?e.osName=l:h==="cosver"?e.osVersion=l:h==="cplatform"&&(e.platform=l)}b.client=c.call(a,d,e);return b}; Qoa=function(a,b,c){a=a.wQ;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=ch(b,Pq,96)||new Pq;var d=Dt();d=Object.keys(Woa).indexOf(d);d=d===-1?null:d;d!==null&&sh(c,3,d);dh(b,Pq,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=Dt())}; Roa=function(a,b){var c=g.Pa("yt.embedded_player.embed_url");c&&(a?(b=ch(a,Uq,7)||new Uq,qh(b,4,c),dh(a,Uq,7,b)):b&&(b.thirdParty={embedUrl:c}))}; Soa=function(a,b){var c;if(g.ks("web_log_memory_total_kbytes")&&((c=g.La.navigator)==null?0:c.deviceMemory)){var d;c=(d=g.La.navigator)==null?void 0:d.deviceMemory;a?Hg(a,95,kg(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}}; Toa=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=ch(b,Oq,62))!=null?d:new Oq;qh(c,6,a.appInstallData);dh(b,Oq,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)}; Uoa=function(a,b){var c=Fna();c&&(a?sh(a,61,Xoa[c]):b&&(b.client.connectionType=c));g.ks("web_log_effective_connection_type")&&(c=Hna())&&(a?sh(a,94,Yoa[c]):b&&(b.client.effectiveConnectionType=c))}; Zoa=function(a,b,c){c=c===void 0?{}:c;var d={};g.Lr("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.Lr("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.Lr("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.RW||g.Lr("AUTHORIZATION");b||(a?b="Bearer "+g.Pa("gapi.auth.getToken")().access_token:(a=zna().UE(mv),g.ks("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d}; Voa=function(a,b){var c=Ooa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=(f=ch(a,Oq,62))!=null?f:new Oq;d=qh(b,1,d);qh(d,3,e).Ls(c);dh(a,Oq,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))}}; nv=function(a,b){this.version=a;this.args=b}; ov=function(a,b){this.topic=a;this.j=b}; qv=function(a,b){var c=pv();c&&c.publish.call(c,a.toString(),a,b)}; apa=function(a,b){var c=pv();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Pa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(rv[d])try{if(f&&a instanceof ov&&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.Iv){var n=new l;l.Iv=n.version}var p=l.Iv}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l, g.zb(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.Or(q)}},$oa[a.toString()]?g.Ut()?g.Wo.Si(h):g.fs(h,0):h())}); rv[d]=!0;tv[a.toString()]||(tv[a.toString()]=[]);tv[a.toString()].push(d);return d}; uv=function(a,b){var c=apa(a,function(d){b.apply(void 0,arguments);bpa(c)}); return c}; bpa=function(a){var b=pv();b&&(typeof a==="number"&&(a=[a]),g.Mb(a,function(c){b.unsubscribeByKey(c);delete rv[c]}))}; pv=function(){return g.Pa("ytPubsub2Pubsub2Instance")}; vv=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()hpa||h=lpa&&(Fv++,g.ks("abandon_compression_after_N_slow_zips")?Ev===g.ls("compression_disable_point")&&Fv>mpa&&(Bv=!1):Bv=!1);npa(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)}; opa=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,g.uu)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Pa("yt.logging.gzipForFetch",!1):!0;if(Bv&&f){if(!a.body)return a;try{var h=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);f=h;if(!c&&typeof h==="string"){var l=gpa(h);if(l!=null&&(l>hpa||l=lpa)if(Fv++,g.ks("abandon_compression_after_N_slow_zips")||g.ks("abandon_compression_after_N_slow_zips_lr")){b=Fv/Ev;var n=mpa/g.ls("compression_disable_point");Ev>0&&Ev%g.ls("compression_disable_point")===0&&b>=n&&(Bv=!1)}else Bv=!1;npa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return Qr(p),a}}else return a}; gpa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return Qr(b),null}}; npa=function(a){g.ks("gel_compression_csi_killswitch")||!g.ks("log_gel_compression_latency")&&!g.ks("log_gel_compression_latency_lr")||vv("gel_compression",a,{sampleRate:.1})}; Hv=function(a){var b=this;this.NI=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){}; this.xA=function(){}; this.now=Date.now;this.zE=!1;this.fd={ipa:function(p){b.Af=p}, Epa:function(){b.DC()}, f7:function(){b.vO()}, wF:function(p){return g.H(function(q){return g.G(q,b.wF(p),0)})}, bM:function(p,q){return b.bM(p,q)}, eM:function(){b.eM()}}; var c;this.F2=(c=a.F2)!=null?c:100;var d;this.E1=(d=a.E1)!=null?d:1;var e;this.t1=(e=a.t1)!=null?e:2592E6;var f;this.j1=(f=a.j1)!=null?f:12E4;var h;this.D1=(h=a.D1)!=null?h:5E3;var l;this.Af=(l=a.Af)!=null?l:void 0;this.rJ=!!a.rJ;var m;this.XI=(m=a.XI)!=null?m:.1;var n;this.ML=(n=a.ML)!=null?n:10;a.handleError&&(this.handleError=a.handleError);a.xA&&(this.xA=a.xA);a.zE&&(this.zE=a.zE);a.NI&&(this.NI=a.NI);this.ob=a.ob;this.Do=a.Do;this.Ih=a.Ih;this.kh=a.kh;this.sendFn=a.sendFn;this.mS=a.mS;this.xR= a.xR;Gv(this)&&(!this.ob||this.ob("networkless_logging"))&&ppa(this)}; ppa=function(a){Gv(a)&&!a.zE&&(a.j=!0,a.rJ&&Math.random()<=a.XI&&a.Ih.j7(a.Af),a.eM(),a.kh.Hh()&&a.DC(),a.kh.listen(a.mS,a.DC.bind(a)),a.kh.listen(a.xR,a.vO.bind(a)))}; spa=function(a,b){if(!Gv(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=qpa(f);(l=rpa(f))&&a.ob&&a.ob("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.ob&&a.ob("nwl_consider_error_code")&&h||a.ob&&!a.ob("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.ML)){p.Ia(2);break}if(!a.kh.iM){p.Ia(3);break}return g.G(p,a.kh.iM(),3);case 3:if(a.kh.Hh()){p.Ia(2);break}c(e,f);if(!a.ob||!a.ob("nwl_consider_error_code")||((m=b)==null?void 0: m.id)===void 0){p.Ia(6);break}return g.G(p,a.Ih.YS(b.id,a.Af,!1),6);case 6:return p.return();case 2:if(a.ob&&a.ob("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.ML)return p.return();a.potentialEsfErrorCounter++;if(((n=b)==null?void 0:n.id)===void 0){p.Ia(8);break}return b.sendCount=400&&a<=599?!1:!0}; rpa=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)}; tpa=function(){if(Jv)return Jv();var a={};Jv=g.Uu("LogsDatabaseV2",{zs:(a.LogsRequestsStore={Hn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.wu(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.Cu(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&xu(b,"sapisid");c(9)&&xu(b,"SWHealthLog")}, version:9});return Jv()}; Kv=function(a){return g.Ku(tpa(),a)}; vpa=function(a,b){var c,d,e,f;return g.H(function(h){if(h.j==1)return c={startTime:(0,g.uu)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.G(h,Kv(b),2);if(h.j!=3)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.Lr("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.G(h,g.Au(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.uu)();upa(c);return h.return(f)})}; wpa=function(a,b){var c,d,e,f,h,l,m,n;return g.H(function(p){if(p.j==1)return c={startTime:(0,g.uu)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.G(p,Kv(b),2);if(p.j!=3)return d=p.B,e=g.Lr("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.uu)()],l=IDBKeyRange.bound(f,h),m="prev",g.ks("use_fifo_for_networkless")&&(m="next"),n=void 0,g.G(p,g.yu(d,["LogsRequestsStore"],{mode:"readwrite",Ob:!0},function(q){return g.Gu(q.objectStore("LogsRequestsStore").index("newRequestV2"), {query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),a==="NEW"&&(n.status="QUEUED",r.update(n)))})}),3); c.ticks.tc=(0,g.uu)();upa(c);return p.return(n)})}; xpa=function(a,b){var c;return g.H(function(d){if(d.j==1)return g.G(d,Kv(b),2);c=d.B;return d.return(g.yu(c,["LogsRequestsStore"],{mode:"readwrite",Ob:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.zu(f,h).then(function(){return h})})}))})}; ypa=function(a,b,c,d){c=c===void 0?!0:c;var e;return g.H(function(f){if(f.j==1)return g.G(f,Kv(b),2);e=f.B;return f.return(g.yu(e,["LogsRequestsStore"],{mode:"readwrite",Ob:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),d!==void 0&&(m.options.compress=d),g.zu(l,m).then(function(){return m})):g.pu.resolve(void 0)})}))})}; zpa=function(a,b){var c;return g.H(function(d){if(d.j==1)return g.G(d,Kv(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})}; Apa=function(a){var b,c;return g.H(function(d){if(d.j==1)return g.G(d,Kv(a),2);b=d.B;c=(0,g.uu)()-2592E6;return g.G(d,g.yu(b,["LogsRequestsStore"],{mode:"readwrite",Ob:!0},function(e){return g.Du(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.Eu(f)})})}),0)})}; Bpa=function(){g.H(function(a){return g.G(a,voa("LogsDatabaseV2"),0)})}; upa=function(a){g.ks("nwl_csi_killswitch")||vv("networkless_performance",a,{sampleRate:1})}; Dpa=function(a){return g.Ku(Cpa(),a)}; Epa=function(a){var b,c;g.H(function(d){if(d.j==1)return g.G(d,Dpa(a),2);b=d.B;c=(0,g.uu)()-2592E6;return g.G(d,g.yu(b,["SWHealthLog"],{mode:"readwrite",Ob:!0},function(e){return g.Du(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.Eu(f)})})}),0)})}; Fpa=function(a){var b;return g.H(function(c){if(c.j==1)return g.G(c,Dpa(a),2);b=c.B;return g.G(c,b.clear("SWHealthLog"),0)})}; g.Lv=function(a,b,c,d,e,f,h){e=e===void 0?"":e;f=f===void 0?!1:f;h=h===void 0?!1:h;if(a)if(c&&!g.Hs()){if(a){a=g.qd(g.vd(a));if(a===g.ud.toString()||a.startsWith("data"))a="";else{var l=l===void 0?{}:l;a instanceof g.zd?l=a:(a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),l.Woa&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 ")),l.Voa&&(a=a.replace(/(\r\n|\n|\r)/g,"
")),l.Xoa&&(a=a.replace(/(\t+)/g,'$1')), l=Bd(a));a=g.Vd(g.Li(g.Ad(l).toString()))}g.Qb(a)||(l=le("IFRAME",{src:'javascript:""',style:"display:none"}),be(l).body.appendChild(l))}}else if(e)os(a,b,"POST",e,d);else if(g.Lr("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)os(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Ika({url:a});if(m.C&&m.B||m.D){var n=Si(g.Ui(5,a));var p=!(!n||!n.endsWith("/aclk")||cj(a,"ri")!=="1");break b}}catch(q){}p=!1}p?Gpa(a)?(b&&b(),l=!0):l=!1:l=!1;l||Hpa(a,b)}}; Gpa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,b===void 0?"":b))return!0}catch(c){}return!1}; Hpa=function(a,b){var c=new Image,d=""+Ipa++;Mv[d]=c;c.onload=c.onerror=function(){b&&Mv[d]&&b();delete Mv[d]}; c.src=a}; Jpa=function(a){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"}; Ov=function(){Nv||(Nv=new Wt("yt.offline"));return Nv}; Kpa=function(a){if(g.ks("offline_error_handling")){var b=Ov().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Ov().set("errors",b,2592E3,!0)}}; Pv=function(){this.j=new Map;this.B=!1}; Qv=function(){if(!Pv.instance){var a=g.Pa("yt.networkRequestMonitor.instance")||new Pv;g.Ma("yt.networkRequestMonitor.instance",a);Pv.instance=a}return Pv.instance}; Rv=function(){g.Zc.call(this);var a=this;this.B=!1;this.j=Yka();this.j.listen("networkstatus-online",function(){if(a.B&&g.ks("offline_error_handling")){var b=Ov().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Mt(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.Or(d)}Ov().set("errors",{},2592E3,!0)}}})}; Lpa=function(){if(!Rv.instance){var a=g.Pa("yt.networkStatusManager.instance")||new Rv;g.Ma("yt.networkStatusManager.instance",a);Rv.instance=a}return Rv.instance}; g.Sv=function(a){a=a===void 0?{}:a;g.Zc.call(this);var b=this;this.j=this.D=0;this.B=Lpa();var c=g.Pa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Mpa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Mpa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; Mpa=function(a,b){a.rateLimit?a.j?(g.Wo.bk(a.D),a.D=g.Wo.Si(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.uu)())},a.rateLimit-((0,g.uu)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.uu)()):a.dispatchEvent(b)}; Uv=function(){var a=Hv.call;Tv||(Tv=new g.Sv({xoa:!0,Uma:!0}));a.call(Hv,this,{Ih:{j7:Apa,Wz:zpa,sY:wpa,l$:xpa,YS:ypa,set:vpa},kh:Tv,handleError:function(b,c,d){var e,f=d==null?void 0:(e=d.error)==null?void 0:e.code;if(f===400||f===415){var h;Qr(new g.Mt(b.message,c,d==null?void 0:(h=d.error)==null?void 0:h.code),void 0,void 0,void 0,!0)}else g.Or(b)}, xA:Qr,sendFn:Npa,now:g.uu,G3:Kpa,Do:g.Tt(),mS:"publicytnetworkstatus-online",xR:"publicytnetworkstatus-offline",rJ:!0,XI:.1,ML:g.ls("potential_esf_error_limit",10),ob:g.ks,zE:!(g.Ot()&&g.Vi(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.uj;g.ks("networkless_immediately_drop_all_requests")&&Bpa();woa("LogsDatabaseV2")}; Vv=function(){var a=g.Pa("yt.networklessRequestController.instance");a||(a=new Uv,g.Ma("yt.networklessRequestController.instance",a),g.ks("networkless_logging")&&g.Su().then(function(b){a.Af=b;ppa(a);a.C.resolve();a.rJ&&Math.random()<=a.XI&&a.Af&&Epa(a.Af);g.ks("networkless_immediately_drop_sw_health_store")&&Opa(a)})); return a}; Opa=function(a){var b;g.H(function(c){if(!a.Af)throw b=g.nu("clearSWHealthLogsDb"),b;return c.return(Fpa(a.Af).catch(function(d){a.handleError(d)}))})}; Npa=function(a,b,c,d){d=d===void 0?!1:d;b=g.ks("web_fp_via_jspb")?Object.assign({},b):b;g.ks("use_cfr_monitor")&&Ppa(a,b);if(g.ks("use_request_time_ms_header"))b.headers&&Yr(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.uu)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.uu)())}c&&Object.keys(b).length===0?g.Lv(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),Dv(a,b.postBody, b,g.ps,d)):Dv(a,JSON.stringify(b.postParams),b,qs,d):g.ps(a,b)}; Wv=function(a,b){g.ks("use_event_time_ms_header")&&Yr(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.uu)())));return b}; Ppa=function(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Qv().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Qv().requestComplete(a,!0);d(e,f)}}; g.Xv=function(a){this.config_=null;a?this.config_=a:Poa()&&(this.config_=g.kv())}; g.Yv=function(a,b,c,d){function e(p){try{if((p===void 0?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?Vv().writeThenSend(n,f):Vv().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;typeof r!=="string"&&(r=JSON.stringify(f.postBody));Dv(n,r,f,g.ps,q)}else Dv(n,JSON.stringify(f.postParams),f,qs,q)}else g.ks("web_all_payloads_via_jspb")?g.ps(n,f):qs(n,f)}catch(t){if(t.name==="InvalidAccessError")Qr(Error("An extension is blocking network request.")); else throw t;}} !g.Lr("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&Qr(new g.Mt("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Mt("innertube xhrclient not ready",b,c,d),g.Or(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)}, onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)}, onError:function(p,q){if(d.onError)d.onError(q)}, onFetchError:function(p){if(d.onError)d.onError(p)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.rZ;h&&(c=h);var l=a.config_.sZ||!1;h=Zoa(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_.zQ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=g.Wr(""+c+b,l);g.Pa("ytNetworklessLoggingInitializationOptions")&& Qpa.isNwlInitialized?ooa().then(function(p){e(p)}):e(!1)}; g.cw=function(a,b,c){var d=g.Zv();if(d&&b){var e=d.subscribe(a,function(){function f(){$v[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,h)} var h=arguments;try{g.aw[a]?f():g.fs(f,0)}catch(l){g.Or(l)}},c); $v[e]=!0;bw[a]||(bw[a]=[]);bw[a].push(e);return e}return 0}; Rpa=function(a){var b=g.cw("LOGGED_IN",function(c){a.apply(void 0,arguments);g.dw(b)})}; g.dw=function(a){var b=g.Zv();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),g.Mb(a,function(c){b.unsubscribeByKey(c);delete $v[c]}))}; g.ew=function(a,b){var c=g.Zv();return c?c.publish.apply(c,arguments):!1}; Tpa=function(a){var b=g.Zv();if(b)if(b.clear(a),a)Spa(a);else for(var c in bw)Spa(c)}; g.Zv=function(){return g.La.ytPubsubPubsubInstance}; Spa=function(a){bw[a]&&(a=bw[a],g.Mb(a,function(b){$v[b]&&delete $v[b]}),a.length=0)}; g.fw=function(a,b,c){Upa(a,b,c===void 0?null:c)}; Upa=function(a,b,c){c=c===void 0?null:c;var d=Vpa(a),e=document.getElementById(d),f=e&&jna(e),h=e&&!f;f?b&&b():(b&&(f=g.cw(d,b),b=""+g.Wa(b),Wpa[b]=f),h||(e=Xpa(a,d,function(){jna(e)||(ina(e),g.ew(d),g.fs(function(){Tpa(d)},0))},c)))}; Xpa=function(a,b,c,d){d=d===void 0?null:d;var e=g.me("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.Ud(e,g.Jq(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; Vpa=function(a){var b=document.createElement("a");g.Od(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Zd(a)}; iw=function(a){var b=g.Fa.apply(1,arguments);if(!gw(a)||b.some(function(d){return!gw(d)}))throw Error("Only objects may be merged."); b=g.v(b);for(var c=b.next();!c.done;c=b.next())hw(a,c.value)}; hw=function(a,b){for(var c in b)if(gw(b[c])){if(c in a&&!gw(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});hw(a[c],b[c])}else if(jw(b[c])){if(c in a&&!jw(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Ypa(a[c],b[c])}else a[c]=b[c];return a}; Ypa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,gw(c)?a.push(hw({},c)):jw(c)?a.push(Ypa([],c)):a.push(c);return a}; gw=function(a){return typeof a==="object"&&!Array.isArray(a)}; jw=function(a){return typeof a==="object"&&Array.isArray(a)}; kw=function(a){g.K.call(this);this.B=a}; lw=function(a){kw.call(this,!0);this.j=a}; Zpa=function(a,b){g.K.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.Xa)(a,b);this.j=new g.fp(function(){return d(c.qa)},300); g.Q(this,this.j);this.Y=this.Z=Infinity}; $pa=function(a,b){if(!b)return!1;for(var c=0;c-1)throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(d.rU!==void 0)var e=d.rU;else if(d.Pea)e=d[xw]?dqa(a,d[xw],c):[],e=d.Pea.apply(d,g.w(e));else if(d.u3){e=d.u3;var f=e[xw]?dqa(a,e[xw],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.w(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.xpa||a.B.set(b,e); return e}; dqa=function(a,b,c){return b?b.map(function(d){return d instanceof vw?yw(a,d.key,c,!0):yw(a,d,c)}):[]}; Aw=function(){zw||(zw=new cqa);return zw}; Cw=function(){var a,b;return"h5vcc"in Bw&&((a=Bw.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=Bw.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in Bw&&Bw.performance.mark&&Bw.performance.measure?2:0}; Dw=function(a){var b=Cw();switch(b){case 1:Bw.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:Bw.performance.mark(a+"-start");break;case 0:break;default:Pd(b,"unknown trace type")}}; eqa=function(a){var b=Cw();switch(b){case 1:Bw.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";Bw.performance.mark(c);Bw.performance.measure(a,b,c);break;case 0:break;default:Pd(b,"unknown trace type")}}; fqa=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?g.Tt():d;this.C=c;this.scheduler=d;this.B=new g.uj;this.j=a;for(a={mx:0};a.mx=1E3?f():e>=a?$w||($w=ax(function(){f();$w=void 0},0)):h-m>=10&&(wqa(c,d.tier),l.D=h)}; rqa=function(a,b){if(a.endpoint==="log_event"){Tw(a);var c=Uw(a),d=new Map;d.set(c,[a.payload]);var e=oqa(a.payload)||"";b&&(Yw=new b);return new g.Ie(function(f,h){Yw&&Yw.isReady()?bx(d,Yw,f,h,{bypassNetworkless:!0},!0,Ww(e)):f()})}}; uqa=function(a,b,c){if(b.endpoint==="log_event"){Tw(void 0,b);var d=Uw(b,!0),e=new Map;e.set(d,[xh(b.payload)]);c&&(Yw=new c);return new g.Ie(function(f){Yw&&Yw.isReady()?cx(e,Yw,f,{bypassNetworkless:!0},!0,Ww(a)):f()})}}; Uw=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(b===void 0?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Hr;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Vg(d,2,dx,lg(c.playlistId));ex[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),fx[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; Xw=function(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new g.Ie(function(e,f){var h=Zw(c,d),l=h.C;h.C=!1;gx(h.B);gx(h.j);h.j=0;Yw&&Yw.isReady()?d===void 0&&g.ks("enable_web_tiered_gel")?xqa(e,f,a,b,c,300,l):xqa(e,f,a,b,c,d,l):(wqa(c,d),e())})}; xqa=function(a,b,c,d,e,f,h){var l=Yw;c=c===void 0?{}:c;e=e===void 0?!1:e;f=f===void 0?200:f;h=h===void 0?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(d!==void 0)e?(b=g.ks("enable_web_tiered_gel")?Rw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Rw().extractMatchingEntries(q),m.set(d,b),cx(m,l,a,c,!1,h)):(m=g.ks("enable_web_tiered_gel")?Rw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Rw().extractMatchingEntries(q),n.set(d,m), bx(n,l,a,b,c,!1,h));else if(e){b=g.v(Object.keys(Vw));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.ks("enable_web_tiered_gel")?Rw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Rw().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),f.length>0&&m.set(n,f),(g.ks("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.ks("web_fp_via_jspb_and_json"))&&delete Vw[n];cx(m,l,a,c,!1,h)}else{m=g.v(Object.keys(Vw));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.ks("enable_web_tiered_gel")?Rw().smartExtractMatchingEntries({keys:[{isJspb:!1, cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):Rw().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),q.length>0&&n.set(p,q),(g.ks("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.ks("web_fp_via_jspb_and_json"))&&delete Vw[p];bx(n,l,a,b,c,!1,h)}}; wqa=function(a,b){function c(){Xw({writeThenSend:!0},void 0,a,b)} a=a===void 0?!1:a;b=b===void 0?200:b;var d=Zw(a,b),e=d===yqa||d===zqa?5E3:Aqa;g.ks("web_gel_timeout_cap")&&!d.j&&(e=ax(function(){c()},e),d.j=e); gx(d.B);e=g.Lr("LOGGING_BATCH_TIMEOUT",g.ls("web_gel_debounce_ms",1E4));g.ks("shorten_initial_gel_batch_timeout")&&hx&&(e=Bqa);e=ax(function(){g.ls("gel_min_batch_size")>0?Rw().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=Cqa&&c():c()},e); d.B=e}; bx=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;var l=Math.round((0,g.uu)()),m=a.size,n=Dqa(h);a=g.v(a);var p=a.next();for(h={};!p.done;h={tR:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,fS:void 0,HR:void 0},p=a.next()){var q=g.v(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.Kc({context:g.lv(b.config_||g.kv())});if(!g.Sa(q)&&!g.ks("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=fx[p])&&Eqa(h.batchRequest,p,q);delete fx[p];h.dangerousLogToVisitorSession= p==="visitorOnlyApprovedKey";Fqa(h.batchRequest,l,h.dangerousLogToVisitorSession);Gqa(e);h.fS=function(r){g.ks("start_client_gcf")&&g.Wo.Si(function(){return g.H(function(t){return g.G(t,Hqa(r),0)})}); m--;m||c()}; h.tR=0;h.HR=function(r){return function(){r.tR++;if(e.bypassNetworkless&&r.tR===1)try{g.Yv(b,n,r.batchRequest,ix({writeThenSend:!0},r.dangerousLogToVisitorSession,r.fS,r.HR,f)),hx=!1}catch(t){g.Or(t),d()}m--;m||c()}}(h); try{g.Yv(b,n,h.batchRequest,ix(e,h.dangerousLogToVisitorSession,h.fS,h.HR,f)),hx=!1}catch(r){g.Or(r),d()}}}; cx=function(a,b,c,d,e,f){d=d===void 0?{}:d;var h=Math.round((0,g.uu)()),l={value:a.size},m=new Map([].concat(g.w(a)));m=g.v(m);for(var n=m.next();!n.done;n=m.next()){var p=g.v(n.value).next().value,q=a.get(p);n=new Ir;var r=b.config_||g.kv(),t=new Xq,u=new Rq;qh(u,1,r.yQ);qh(u,2,r.xQ);sh(u,16,r.qZ);qh(u,17,r.innertubeContextClientVersion);if(r.tK){var x=r.tK,B=new Oq;x.coldConfigData&&qh(B,1,x.coldConfigData);x.appInstallData&&qh(B,6,x.appInstallData);x.coldHashData&&qh(B,3,x.coldHashData);x.hotHashData&& B.Ls(x.hotHashData);dh(u,Oq,62,B)}(x=g.La.devicePixelRatio)&&x!=1&&Hg(u,65,dg(x));x=ms();x!==""&&qh(u,54,x);x=ns();if(x.length>0){B=new Tq;for(var E=0;EKqa&&(a=1);Kr("BATCH_CLIENT_COUNTER",a);return a}; Eqa=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}]}; Tw=function(a,b){if(!g.Pa("yt.logging.transport.enableScrapingForTest")){var c=js("il_payload_scraping");if((c!==void 0?String(c):"")==="enable_il_payload_scraping")lx=[],g.Ma("yt.logging.transport.enableScrapingForTest",!0),g.Ma("yt.logging.transport.scrapedPayloadsForTesting",lx),g.Ma("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Ma("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Ma("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Pa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Pa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Pa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Pa("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var e=0;e0&&mra(a,b,f)}else mra(a,b)}; mra=function(a,b,c){a=nra(a);b=b?g.$i(b):"";c=c||5;Ts()&&g.As(a,b,c)}; nra=function(a){for(var b=g.v(ora),c=b.next();!c.done;c=b.next())a=dj(a,c.value);return"ST-"+Zd(a).toString(36)}; pra=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")}; qra=function(){this.Ft=[];this.xs=[]}; Fx=function(){if(!Ex){var a=Ex=new qra;a.xs.length=0;a.Ft.length=0;rra(a,sra)}return Ex}; rra=function(a,b){b.xs&&a.xs.push.apply(a.xs,b.xs);b.Ft&&a.Ft.push.apply(a.Ft,b.Ft)}; tra=function(a){function b(){return a.charCodeAt(d++)} var c=a.length,d=0;do{var e=Gx(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=Gx(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=Gx(b);if(f===2)return a.substr(d,e);d+=e;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f=typeof h!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(h=tra(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?Hx(f+".ve",h,l,m):0;d+=f;d+=Hx(e,a[e],b,c);if(d>500)break}}else c[b]=Ix(a),d+=c[b].length;else c[b]=Ix(a),d+=c[b].length;return d}; Hx=function(a,b,c,d){c+="."+a;a=Ix(b);d[c]=a;return c.length+a.length}; Ix=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}}; au=function(a){g.Jx(a)}; g.Kx=function(a){g.Jx(a,"WARNING")}; g.Jx=function(a,b){var c=c===void 0?{}:c;c.name=g.Lr("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.Lr("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=b===void 0?"ERROR":b,e=!1;d=d===void 0?"ERROR":d;e=e===void 0?!1:e;if(a){a.hasOwnProperty("level")&&a.level&&(d=a.level);if(g.ks("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(!(vra>=5)){var h=wra,l=Daa(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.B||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var r=l.lineNumber||"Not available",t=l.fileName||"Not available",u=p,x=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var B=0;B=500);B++);else if(a.hasOwnProperty("params")&& a.params){var E=a.params;if(typeof a.params==="object")for(var F in E){if(E[F]){var I="params."+F,O=Ix(E[F]);c[I]=O;x+=I.length+O.length;if(x>500)break}}else c.params=Ix(E)}if(h.length)for(var N=0;N=500);N++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);var S={message:m,name:n,lineNumber:r,fileName:t,stack:u,params:c,sampleWeight:1},Y=Number(a.columnNumber);isNaN(Y)||(S.lineNumber=S.lineNumber+":"+Y);if(a.level=== "IGNORED")var la=0;else a:{for(var oa=Fx(),ba=g.v(oa.xs),qa=ba.next();!qa.done;qa=ba.next()){var P=qa.value;if(S.message&&S.message.match(P.qB)){la=P.weight;break a}}for(var wa=g.v(oa.Ft),y=wa.next();!y.done;y=wa.next()){var W=y.value;if(W.callback(S)){la=W.weight;break a}}la=1}S.sampleWeight=la;for(var xb=g.v(xra),Ua=xb.next();!Ua.done;Ua=xb.next()){var sb=Ua.value;if(sb.DL[S.name])for(var Db=g.v(sb.DL[S.name]),Na=Db.next();!Na.done;Na=Db.next()){var ib=Na.value,Ab=S.message.match(ib.Jj);if(Ab){S.params["params.error.original"]= Ab[0];for(var A=ib.groups,D={},C=0;C1E3&&g.Kx(new g.Mt("IL Attach cache exceeded limit"))}l= Xx(c,b);Sx.has(l)?Yx(c,b):Ux.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q}); if(g.ks("il_via_jspb")){var p=oma((new pr).j(b),c.getAsJspb());g.Bl(d,function(q){q=q.getAsJspb();gh(p,3,gr,q)}); b==="UNDEFINED_CSN"?Zx("visualElementAttached",f,void 0,p):$qa(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Bl(d,function(q){return q.getAsJson()})},b==="UNDEFINED_CSN"?Zx("visualElementAttached",f,c):a?nx("visualElementAttached",c,a,f):g.bu("visualElementAttached",c,f)}; Pra=function(a,b,c,d,e,f){$x(c,b);d=Rx({cttAuthInfo:Cx(b)||void 0},b);g.ks("il_via_jspb")?(e=(new sr).j(b),c=c.getAsJspb(),c=dh(e,gr,2,c),c=sh(c,4,1),f&&dh(c,mr,3,f),b==="UNDEFINED_CSN"?Zx("visualElementShown",d,void 0,c):wx(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),b==="UNDEFINED_CSN"?Zx("visualElementShown",d,f):a?nx("visualElementShown",f,a,d):g.bu("visualElementShown",f,d))}; Qra=function(a,b,c,d){var e=(d=d===void 0?!1:d)?16:8,f=Rx({cttAuthInfo:Cx(b)||void 0,endOfSequence:d},b);g.ks("il_via_jspb")?(e=(new rr).j(b),c=c.getAsJspb(),c=dh(e,gr,2,c),sh(c,4,d?16:8),b==="UNDEFINED_CSN"?Zx("visualElementHidden",f,void 0,c):Wqa(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},b==="UNDEFINED_CSN"?Zx("visualElementHidden",f,d):a?nx("visualElementHidden",d,a,f):g.bu("visualElementHidden",d,f))}; Sra=function(a,b,c,d,e){Rra(a,b,c,d,e)}; Rra=function(a,b,c,d,e){var f=void 0;$x(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=Rx({cttAuthInfo:Cx(b)||void 0},b);g.ks("il_via_jspb")?(d=(new qr).j(b),c=c.getAsJspb(),c=dh(d,gr,2,c),sh(c,4,Mra[f]),e&&dh(c,mr,3,e),b==="UNDEFINED_CSN"?Zx("visualElementGestured",h,void 0,c):Xqa(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),b==="UNDEFINED_CSN"?Zx("visualElementGestured",h,e):a?nx("visualElementGestured",e,a,h):g.bu("visualElementGestured",e,h))}; Tra=function(){var a=nw(16);for(var b=[],c=0;c0&&c.push(g.me("BR"));c.push(g.ne(f))}):c.push(g.ne(d))}return c}; oy=function(a,b,c,d){if(c==="child"){g.pe(b);var e;d===void 0?e=void 0:e=!Array.isArray(d)||d&&typeof d.I==="string"?[d]:d;c=Wra(a,e);c=g.v(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else c==="style"?g.km(b,"cssText",d?d:""):d===null||d===void 0?b.removeAttribute(c):(a=d.toString(),c==="href"&&(a=g.qd(g.vd(a))),b.setAttribute(c,a))}; g.T=function(a){g.my.call(this,a);this.Hb=!0;this.Z=!1;this.listeners=[]}; g.py=function(a,b){b?a.show():a.hide()}; g.ry=function(a){g.T.call(this,a);this.Ra=new g.iy;g.Q(this,this.Ra)}; sy=function(a,b,c,d,e,f,h){h=h===void 0?null:h;g.ry.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.Bb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.kb=f;this.bb=null;this.dT=new lw(this.element);g.Q(this,this.dT);this.rb=this.T(this.element,"click",this.onClick);this.Ga=[];this.Ca=new Zpa(this.onClick,this);g.Q(this,this.Ca);this.zb=!1;this.Ka=this.qa=null}; ty=function(a,b){a=a===void 0?null:a;b=b===void 0?null:b;if(a==null)return g.Kx(Error("Got null or undefined adText object")),"";var c=g.Yd(a.text);if(!a.isTemplated)return c;if(b==null)return g.Kx(Error("Missing required parameters for a templated message")),c;a=g.v(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.v(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c}; Xra=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].url!=null)?g.Yd(a.thumbnails[0].url):""}; Yra=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].width!=null&&a.thumbnails[0].height!=null)?new g.Md(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Md(0,0)}; g.uy=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.v(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""}; g.vy=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c1){for(var b=[a[0]],c=1;c0&&(this.j=new g.fp(this.SW,b,this),g.Q(this,this.j));this.G=new g.fp(this.SW,c,this);g.Q(this,this.G);this.Z=fla(this.B,e,1,d);g.Q(this,this.Z);this.N=fla(this.B,0,d,1);g.Q(this,this.N);this.D=new rt;g.Q(this,this.D)}; Isa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Pd(a,"unknown result type")}}; Jsa=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:Pd(a,"Unknown method type")}}; Ksa=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?getComputedStyle(e).display==="none"?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}a.isTrusted===!0?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):a.isTrusted===!1?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"): d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);Kr("ISDSTAT",c);nz(c,"i.s_",{yea:"sk",metadata:b,states:d});return c}; Lsa=function(a,b){var c=[];b?b.isTrusted===!0?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):b.isTrusted===!1?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");nz(0,"a.s_",{metadata:a,states:c},!1);Kr("ASDSTAT",0)}; nz=function(a,b,c,d){d=d===void 0?!0:d;var e,f,h={detected:a===0,source:""+b+((e=c.yea)!=null?e:"")+((f=c.T6)!=null?f:""),detectionStates:c.states,durationMs:c.S6};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.bu("biscottiBasedDetection",h);d&&(a=Isa(a),b=Jsa(b),Kr("CATSTAT",Number(g.Lr("CATSTAT",0))&~(3<0}; uz=function(a,b,c,d,e,f){dz.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Fa=!1;this.Wa=f;this.G=this.api.U().experiments.ob("enable_modern_skip_button_on_web");this.Xa=!1;this.D=new g.ry({I:"span",La:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.Q(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.fb=new g.gz(this.D,500,!1,100,function(){return h.hide()}); g.Q(this,this.fb);this.Na=new mz(this.D.element,15E3,5E3,.5,.5,this.G);g.Q(this,this.Na);this.hide()}; Nsa=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.R(a.clickCommand,g.vz)&&g.R(a.clickCommand,g.vz).commands||[]).some(function(b){return b.adLifecycleCommand?Msa(b.adLifecycleCommand):!1})}; Msa=function(a){return a.action==="END_LINEAR_AD"||a.action==="END_LINEAR_AD_PLACEMENT"}; wz=function(a,b,c,d,e,f){dz.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()}; Osa=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Fa.hide():a.B.hide()),b?(a=a.C,a.fb.show(),a.show()):a.C.show())}; xz=function(a,b,c,d){Ly.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; yz=function(a,b,c,d,e,f){sy.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.Ea("ytp-ad-simple-ad-badge");this.hide()}; zz=function(a,b,c,d,e){e=e===void 0?!1:e;hy.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.pM=e}; Az=function(a,b){g.iy.call(this);this.api=a;this.durationMs=b;this.j=null;this.Gd=new rt(this);g.Q(this,this.Gd);this.B=Psa;this.Gd.T(this.api,"presentingplayerstatechange",this.r5);this.j=this.Gd.T(this.api,"onAdPlaybackProgress",this.Sc)}; Bz=function(a){g.iy.call(this);this.j=!1;this.ij=0;this.Gd=new rt(this);g.Q(this,this.Gd);this.durationMs=a;this.We=new g.Qe(100);g.Q(this,this.We);this.Gd.T(this.We,"tick",this.Sc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()}; g.Cz=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";d>0&&(b+=" "+d+" Days");if(d>0||e>0)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";d>0&&(b+=d+":",e<10&&(b+="0"));if(d>0||e>0)b+=e+":",f<10&&(b+="0");b+=f+":";c<10&&(b+="0");d=b+c}return a>=0?d:"-"+d}; g.Dz=function(a){return(!("button"in a)||typeof a.button!=="number"||a.button===0)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; Ez=function(a,b,c,d,e,f){dz.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()}; Fz=function(a,b,c,d){bz.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; Gz=function(a,b,c,d){sy.call(this,a,{I:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,c,d);this.hide()}; Hz=function(a,b){this.B=a;this.j=b}; Qsa=function(a,b){return a.B+b*(a.j-a.B)}; Iz=function(a,b,c){return a.j-a.B?g.Hd((b-a.B)/(a.j-a.B),0,1):c!=null?c:Infinity}; Jz=function(a,b){g.ry.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.Q(this,this.B);this.progressBar=this.Ea("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Kz=function(a,b,c,d,e,f){sy.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"},{I:"div",S:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Ea("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.Ea("ytp-ad-player-overlay-instream-info");this.D=null;Rsa(this)&&(a=le("div"),g.np(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 Fz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(a),c.init(gy("ad-title"),{text:b.title},this.macros),g.Q(this,c)),this.D=a);this.G=this.Ea("ytp-ad-player-overlay-skip-or-preview"); this.Na=this.Ea("ytp-ad-player-overlay-progress-bar");this.Fa=this.Ea("ytp-ad-player-overlay-instream-user-sentiment");this.ra=this.Ea("ytp-ad-player-overlay-ad-disclosure-banner");this.B=e;g.Q(this,this.B);this.hide()}; Rsa=function(a){a=a.api.U();return g.Lz(a)&&a.B}; Mz=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.aj("/sharing_services",a);g.Lv(d)}; g.Nz=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return a<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; Oz=function(a){this.j=new Jp(a)}; Ssa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(g.Lr("INNERTUBE_CLIENT_NAME")==="WEB"||g.Lr("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a}; Pz=function(a){if(g.Lr("LOGGED_IN",!0)&&Ssa()){var b=g.Lr("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Vi(window.location.href);c&&b.push(c);c=g.Vi(a);g.rb(b,c)||!c&&Pb(a,"/")?(b=Wi(a),(b=Efa(b))?(b=nra(b),b=(b=g.Bs(b)||null)?Tr(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;Ssa()?(d||(d=g.Lr("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&Dx(a,b)}}; g.Tsa=function(a){var b=b===void 0?{}:b;var c=c===void 0?"":c;var d=d===void 0?window:d;a=g.aj(a,b);Pz(a);c=g.vd(a+c);d=d.location;c=wd(c);c!==void 0&&(d.href=c)}; g.hA=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=g.Lr("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Dx(a,b);c||(Pz(a),g.Tsa(a))}; g.iA=function(a,b,c,d,e){e=e===void 0?!1:e;c&&Dx(a,c);c=g.vd(a);var f=g.qd(c);a!=f&&Qr(Error("Unsafe window.open URL: "+a));a=f;b=b||Zd(a).toString(36);try{if(e){e=a;e=Jpa(e);Pz(e);g.Qd(e,b,"attributionsrc");return}}catch(h){g.Or(h)}Pz(a);g.Qd(c,b,d)}; Usa=function(a){jA=a}; Vsa=function(a){jA=a&&a.data}; Wsa=function(a){kA=a}; Xsa=function(a){kA=a&&a.data}; Ysa=function(a){lA=a}; Zsa=function(a){lA=a&&a.data}; ata=function(){$sa=lA=kA=jA=null}; cta=function(){var a=a===void 0?window.location.href:a;if(g.ks("kevlar_disable_theme_param"))return null;Si(g.Ui(5,a));try{var b=g.Vr(a).theme;return bta.get(b)||null}catch(c){}return null}; mA=function(){this.j={};if(this.B=Rma()){var a=g.Bs("CONSISTENCY");a&&dta(this,{encryptedTokenJarContents:a})}}; dta=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},c*1E3); a.B&&g.As("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}}; oA=function(){this.B=-1;var a=g.Lr("LOCATION_PLAYABILITY_TOKEN");g.Lr("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=nA(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)}; nA=function(a){return a.localStorage===void 0?new Wt("yt-client-location"):a.localStorage}; g.pA=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d=g.Lr("INNERTUBE_CONTEXT");if(!d)return g.Jx(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Kc(d);g.ks("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=g.Lr("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints= window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=f===void 0?!1:f;g.Gt();var h="USER_INTERFACE_THEME_LIGHT";g.Ht(0,165)?h="USER_INTERFACE_THEME_DARK":g.Ht(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.ks("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:cta()||h;e.userInterfaceTheme=f;if(!b){if(f=Fna())e.connectionType=f;g.ks("web_log_effective_connection_type")&&(f=Hna())&&(d.client.effectiveConnectionType=f)}var l;if(g.ks("web_log_memory_total_kbytes")&&((l=g.La.navigator)==null?0:l.deviceMemory)){var m;l=(m=g.La.navigator)==null?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+l*1E6}g.ks("web_gcf_hashes_innertube")&&(f=Ooa())&&(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.Vr(g.La.location.href);!g.ks("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo={graftUrl:g.La.location.href},g.ks("kevlar_woffle")&&yna.instance&&(m=yna.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=Dt(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.ks("web_lr_app_quality_killswitch")&&(m=g.Lr("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.Lr("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.ks("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(I){}n=void 0}n&&(e.timeZone=n)}(n=ms())?e.experimentsToken=n:delete e.experimentsToken;n=ns();mA.instance||(mA.instance=new mA);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.Bc(mA.instance.j)});!g.ks("web_prequest_context_killswitch")&&(n=g.Lr("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.Gt();n=g.Ht(0,58);e=e.get("gsml","");d.user=Object.assign({}, d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.ks("warm_op_csn_cleanup")?c&&(b=g.Bx())&&(d.clientScreenNonce=b):!b&&(b=g.Bx())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Pa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;oA.getInstance().setLocationOnInnerTubeContext(d);try{var p=cs(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.v(Object.entries(p)),t=r.next();!t.done;t=r.next()){var u=g.v(t.value),x=u.next().value, B=u.next().value;p=x;q=B;a=void 0;(a=d.adSignalsInfo.params)==null||a.push({key:p,value:""+q})}var E;if(g.ks("add_ifa_to_tvh5_requests")&&((E=d.client)==null?void 0:E.clientName)==="TVHTML5"){var F=g.Lr("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(I){g.Jx(I)}return d}; gta=function(a,b){if(!a)return!1;var c,d=(c=g.R(a,eta))==null?void 0:c.signal;if(d&&b.Ly)return!!b.Ly[d];var e;if((c=(e=g.R(a,fta))==null?void 0:e.request)&&b.PO)return!!b.PO[c];for(var f in a)if(b.HO[f])return!0;return!1}; hta=function(a){var b={"Content-Type":"application/json"};g.Lr("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.Lr("EOM_VISITOR_DATA"):g.Lr("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.Lr("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.Lr("LOGGED_IN",!1);g.Lr("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.Lr("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=g.Lr("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.Lr("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]= a),(a=g.Lr("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.Lr("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b}; ita=function(){this.j={}}; qA=function(){this.mappings=new ita}; rA=function(a){return function(){return new a}}; kta=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=jta[b];if(c){c=new RegExp(c);for(var d=g.v(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(jta).forEach(function(h){var l=g.v(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)}); c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length}); d=g.v(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]}; g.sA=function(a){return"/youtubei/v1/"+kta(a)}; tA=function(){}; uA=function(){}; vA=function(){}; wA=function(a){return g.Pa("ytcsi."+(a||"")+"data_")||lta(a)}; xA=function(){var a=wA();a.info||(a.info={});return a.info}; yA=function(a){a=wA(a);a.metadata||(a.metadata={});return a.metadata}; zA=function(a){a=wA(a);a.tick||(a.tick={});return a.tick}; AA=function(a){a=wA(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel}; mta=function(a){a=AA(a);a.gelInfos||(a.gelInfos={});return a.gelInfos}; BA=function(a){var b=wA(a).nonce;b||(b=g.ow(16),wA(a).nonce=b);return b}; lta=function(a){var b={tick:{},info:{}};g.Ma("ytcsi."+(a||"")+"data_",b);return b}; CA=function(){var a=g.Pa("ytcsi.debug");a||(a=[],g.Ma("ytcsi.debug",a),g.Ma("ytcsi.reference",{}));return a}; DA=function(a){a=a||"";var b=nta();if(b[a])return b[a];var c=CA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d}; ota=function(a){a=a||"";var b=nta();b[a]&&delete b[a];var c=CA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d}; nta=function(){var a=g.Pa("ytcsi.reference");if(a)return a;CA();return g.Pa("ytcsi.reference")}; EA=function(a){return pta[a]||"LATENCY_ACTION_UNKNOWN"}; FA=function(a,b){nv.call(this,1,arguments);this.We=b}; GA=function(){this.j=0}; HA=function(){GA.instance||(GA.instance=new GA);return GA.instance}; JA=function(a,b){IA[b]=IA[b]||{count:0};var c=IA[b];c.count++;c.time=(0,g.uu)();a.j||(a.j=g.Rt(0,function(){var d=(0,g.uu)(),e;for(e in IA)IA[e]&&d-IA[e].time>6E4&&delete IA[e];a&&(a.j=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.Mt("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||g.Kx(c)),!0):!1}; qta=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; rta=function(){var a;if(g.ks("csi_use_performance_navigation_timing")||g.ks("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=KA==null?void 0:(a=KA.getEntriesByType)==null?void 0:(b=a.call(KA,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=LA(e.requestStart),e.responseEnd=LA(e.responseEnd),e.redirectStart=LA(e.redirectStart),e.redirectEnd=LA(e.redirectEnd),e.domainLookupEnd=LA(e.domainLookupEnd),e.connectStart=LA(e.connectStart), e.connectEnd=LA(e.connectEnd),e.responseStart=LA(e.responseStart),e.secureConnectionStart=LA(e.secureConnectionStart),e.domainLookupStart=LA(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=KA.timing}else a=g.ks("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(KA.timing)):KA.timing;return a}; LA=function(a){return Math.round(MA()+a)}; MA=function(){return(g.ks("csi_use_time_origin")||g.ks("csi_use_time_origin_tvhtml5"))&&KA.timeOrigin?Math.floor(KA.timeOrigin):KA.timing.navigationStart}; OA=function(a,b){NA("_start",a,b)}; $A=function(a,b,c){c=c===void 0?!1:c;if(!g.ks("web_csi_action_sampling_enabled")||!wA(b).actionDisabled)if(g.ks("web_csi_via_jspb")&&!c){c=new Ar;var d=Object.keys(a);a=Object.values(a);for(var e=0;e0)for(h=0;h0&&!g.ks("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(NA("srt",b.responseStart),a.prerender!==1&&OA(c));a=xta();a>0&&NA("fpt",a);a=rta();a.isPerformanceNavigationTiming&&$A({performanceNavigationTiming:!0},void 0);NA("nreqs",a.requestStart,void 0);NA("nress",a.responseStart,void 0);NA("nrese",a.responseEnd,void 0);a.redirectEnd-a.redirectStart>0&&(NA("nrs",a.redirectStart,void 0),NA("nre",a.redirectEnd,void 0)); a.domainLookupEnd-a.domainLookupStart>0&&(NA("ndnss",a.domainLookupStart,void 0),NA("ndnse",a.domainLookupEnd,void 0));a.connectEnd-a.connectStart>0&&(NA("ntcps",a.connectStart,void 0),NA("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=MA()&&a.connectEnd-a.secureConnectionStart>0&&(NA("nstcps",a.secureConnectionStart,void 0),NA("ntcpe",a.connectEnd,void 0));KA&&"getEntriesByType"in KA&&yta()}; Ata=function(a){function b(f,h,l){h=h.match("_rid")?h.split("_rid")[0]:h;typeof l==="number"&&(l=JSON.stringify(l));f.requestIds?f.requestIds.push({endpoint:h,id:l}):f.requestIds=[{endpoint:h,id:l}]} var c={};a=g.v(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":b(c,d,e);break;case "GetGuide_rid":b(c,d,e);break;case "GetHome_rid":b(c,d,e);break;case "GetPlayer_rid":b(c,d,e);break;case "GetSearch_rid":b(c,d,e);break;case "GetSettings_rid":b(c,d,e);break;case "GetTrending_rid":b(c,d,e);break;case "GetWatchNext_rid":b(c,d,e);break;case "yt_red":c.isRedSubscriber=!!e;break;case "yt_ad":c.isMonetized=!!e}}return c}; Bta=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;d==="SCRIPT"?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):d==="LINK"&&(c=a.href);Rd(window)&&a.setAttribute("nonce",Rd(window));return c?(a=KA.getEntriesByName(c))&&a[0]&&(a=a[0],c=MA(),NA("rsf_"+b,c+Math.round(a.fetchStart)),NA("rse_"+b,c+Math.round(a.responseEnd)),a.transferSize!==void 0&&a.transferSize===0)?!0:!1:!1}; Cta=function(){var a=[];if(document.querySelector&&KA&&KA.getEntriesByName)for(var b in bB)if(bB.hasOwnProperty(b)){var c=bB[b];Bta(b,c)&&a.push(c)}return a}; yta=function(){var a=window.location.protocol,b=KA.getEntriesByType("resource");b=g.ln(b,function(c){return c.name.indexOf(a+"//fonts.gstatic.com/s/")===0}); (b=Dl(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(NA("wffs",LA(b.startTime)),NA("wffe",LA(b.responseEnd)))}; Dta=function(a,b,c){KA&&KA.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?KA.measure(a,b,c):b?KA.measure(a,b):KA.measure(a))}; Eta=function(a){var b=cB("aft",a);if(b)return b;b=g.Lr((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d0))for(b=g.v(b),d=b.next();!d.done;d=b.next())d=d.value,e=new zr,qh(e,1,d),gh(c,83,zr,e);ZA(c)}else{c=Ata(g.Lr("TIMING_INFO",{}));Object.keys(c).length>0&&$A(c);c={isNavigation:!0,actionType:EA(g.Lr("TIMING_ACTION"))};if(b=g.Lr("PREVIOUS_ACTION"))c.previousAction=EA(b);if(b=g.Lr("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.Lr("CLIENT_TRANSPORT"))c.transportProtocol= b;(b=g.Bx())&&b!=="UNDEFINED_CSN"&&(c.clientScreenNonce=b);b=aB();if(b===1||b===-1)c.isVisible=!0;b=yA().loadType==="cold";d=xA();b||(b=d.yt_lt==="cold");if(b&&(c.loadType="cold",zta(xA()),b=Cta(),b.length>0))for(c.resourceInfo=[],b=g.v(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});$A(c)}c=AA();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);b=c.preLoggedGelInfos;c=mta();d=void 0;for(e=0;e-1&&(delete wa["@type"],Y=wa);x&&a.B.has(x)&&a.B.delete(x);((W=b.config)==null?0:W.mda)&&gB(b.config.mda);if(Y||(xb=a.C)==null||!xb.Jma(b.input,b.Zp)){Ua.Ia(15);break}return g.G(Ua,a.C.voa(b.input,b.Zp),16);case 16:Y=Ua.B;case 15:return Yta(a,Y,b),d(),Ua.return(Y||void 0)}})}; Tta=function(a,b){a:{a=a.hP;var c,d=(c=g.R(b,eta))==null?void 0:c.signal;if(d&&a.Ly&&(c=a.Ly[d])){var e=c();break a}var f;if((c=(f=g.R(b,fta))==null?void 0:f.request)&&a.PO&&(f=a.PO[c])){e=f();break a}for(e in b)if(a.HO[e]&&(b=a.HO[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)}; Vta=function(a,b,c){var d,e,f,h,l,m,n;return g.H(function(p){if(p.j==1){f=((d=b)==null?void 0:(e=d.Ew)==null?void 0:e.identity)||mv;m=(h=b)==null?void 0:(l=h.Ew)==null?void 0:l.sessionIndex;var q=Le(a.j.UE(f,{sessionIndex:m}));return g.G(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},hta(c),n)))})}; Uta=function(a,b,c){var d,e=(b==null?void 0:(d=b.Ew)==null?void 0:d.identity)||mv,f;b=b==null?void 0:(f=b.Ew)==null?void 0:f.sessionIndex;a=a.j.UE(e,{sessionIndex:b});return Object.assign({},hta(c),a)}; pB=function(){}; qB=function(){}; rB=function(a){this.K=a}; sB=function(){}; tB=function(){}; uB=function(){}; vB=function(){}; g.wB=function(a,b){var c=g.Fa.apply(2,arguments);a=a===void 0?0:a;g.Mt.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)}; xB=function(a){this.j=a}; $ta=function(a,b,c){if(a.j){var d=Si(g.Ui(5,dj(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.ks("wug_networking_gzip_request")&&(a=opa(c));return new window.Request(b,a)}; g.zB=function(a,b){if(!yB){var c=Aw();ww(c,{TG:aua,u3:xB});var d={HO:{feedbackEndpoint:rA(sB),modifyChannelNotificationPreferenceEndpoint:rA(tB),playlistEditEndpoint:rA(uB),shareEntityEndpoint:rA(rB),subscribeEndpoint:rA(pB),unsubscribeEndpoint:rA(qB),webPlayerShareEntityServiceEndpoint:rA(vB)}},e=oA.getInstance(),f={};e&&(f.client_location=e);a===void 0&&(a=zna());b===void 0&&(b=c.resolve(aua));Sta(d,b,a,f);ww(c,{TG:bua,rU:mB.instance});yB=c.resolve(bua)}return yB}; dua=function(){if(!g.ks("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.ks("disable_biscotti_fetch_entirely_for_all_web_clients")&&Ts()){var a=g.Lr("PLAYER_VARS",{});if(g.Hc(a,"privembed",!1)!="1"&&!Zma(a)){var b=function(){AB=!0;"google_ad_status"in window?Kr("DCLKSTAT",1):Kr("DCLKSTAT",2)}; try{g.fw("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}cua.push(g.Wo.Si(function(){if(!(AB||"google_ad_status"in window)){try{if(b){var c=""+g.Wa(b),d=Wpa[c];d&&g.dw(d)}}catch(e){}AB=!0;Kr("DCLKSTAT",3)}},5E3))}}}; BB=function(){var a=Number(g.Lr("DCLKSTAT",0));return isNaN(a)?0:a}; DB=function(a,b,c){var d=this;this.network=a;this.B=c;this.j=null;b&&eua(this,new Promise(function(e){g.Rt(0,function(){e(CB(d))},0)}))}; CB=function(a,b){b=b===void 0?0:b;var c,d,e,f,h,l,m,n,p,q,r,t;return g.H(function(u){switch(u.j){case 1:c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};if(d=yj().j)c.interpreterHash=d;g.xa(u,2);return g.G(u,EB(a,c),4);case 4:e=u.B;if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");f=e.challenge;h=fua(f);if("c1a"in h&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.za(u,3);break;case 2:l= g.Aa(u);g.Kx(l);b++;if(b>=5)return g.Kx(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),gua(a,864E5),u.return({challenge:"",xr:{},Wq:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,b-1)+Math.random()*1E3;return u.return(new Promise(function(x){g.Rt(0,function(){x(CB(a,b))},m)})); case 3:n=Number(h.t)||7200;gua(a,n*1E3);p=void 0;if(!("c1a"in h&&e.bgChallenge)){u.Ia(5);break}q=hua(e.bgChallenge);g.xa(u,6);return g.G(u,Xfa(q),8);case 8:g.za(u,7);break;case 6:return r=g.Aa(u),g.Kx(r),u.return({challenge:f,xr:h,Wq:p,bgChallenge:q});case 7:return g.xa(u,9),p=new vj({challenge:q,l1:!0,Ki:"aGIf"}),g.G(u,p.xT,11);case 11:g.za(u,5);break;case 9:t=g.Aa(u),g.Kx(t),p=void 0;case 5:return u.return({challenge:f,xr:h,Wq:p,bgChallenge:q})}})}; EB=function(a,b){var c;return g.H(function(d){c=a.B;return!c||c.Hh()?d.return(EB(a.network,b)):d.return(new Promise(function(e){c.VF("publicytnetworkstatus-online",function(){EB(a.network,b).then(e)})}))})}; eua=function(a,b){a.j=b}; fua=function(a){var b={};a=a.split("&");a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b}; hua=function(a){var b=new tj;if(a.interpreterJavascript){var c=gma(a.interpreterJavascript);c=Fd(c).toString();var d=new rj;qh(d,6,c);dh(b,rj,1,d)}else a.interpreterUrl&&(c=Iq(a.interpreterUrl),c=g.nd(c).toString(),d=new sj,qh(d,4,c),dh(b,sj,2,d));a.interpreterHash&&rh(b,3,a.interpreterHash);a.program&&rh(b,4,a.program);a.globalName&&rh(b,5,a.globalName);return b}; iua=function(a){var b,c,d;return g.H(function(e){if(e.j==1)return g.G(e,Promise.race([a.j,null]),2);b=e.B;var f=CB(a);a.j=f;(c=b)==null||(d=c.Wq)==null||d.dispose();g.va(e)})}; gua=function(a,b){function c(){var e;return g.H(function(f){e=d-Date.now();return e<1E3?g.G(f,iua(a),0):(Qt(c,0,Math.min(e,6E4)),f.Ia(0))})} var d=Date.now()+b;c()}; jua=function(a,b){return new Promise(function(c){g.Rt(0,function(){c(b())},a)})}; g.kua=function(a,b){var c;return g.H(function(d){var e=g.Pa("yt.aba.att");return(c=e?e:DB.instance!==void 0?DB.instance.C.bind(DB.instance):null)?d.return(c("ENGAGEMENT_TYPE_PLAYBACK",a,b)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.lua=function(){var a;return(a=(a=g.Pa("yt.aba.att2"))?a:DB.instance!==void 0?DB.instance.D.bind(DB.instance):null)?a():Promise.resolve(!1)}; nua=function(a,b){var c=g.Pa("ytDebugData.callbacks");c||(c={},g.Ma("ytDebugData.callbacks",c));if(g.ks("web_dd_iu")||mua.includes(a))c[a]=b}; pua=function(a){for(var b="",c=0;c=1?a[a.length-1]:null;for(var d=g.v(a),e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;b>=0;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]}; sua=function(a){return{isReady:a.isr.bind(a),dG:function(b){var c=void 0;b.Zj&&(c={ca:b.Zj.lE,ma:b.Zj.k_,at:b.Zj.HI,st:b.Zj.xM});var d;return a.mawst((d=b.zr)!=null?d:"",c)}, ready:a.rea.bind(a),start:function(){}}}; FB=function(){this.state=1;this.Wq=null}; uua=function(a,b,c,d,e,f){var h=h===void 0?"trayride":h;c?(a.xd(2),g.fw(c,function(){if(window[h])tua(a,d,h,e);else{a.xd(3);var l=Vpa(c),m=document.getElementById(l);m&&(Tpa(l),m.parentNode.removeChild(m));g.Kx(new g.Mt("Unable to load Botguard","from "+c))}},f)):b?(f=g.me("SCRIPT"),b instanceof Dd?(f.textContent=Fd(b),Td(f)):f.textContent=b,f.nonce=Rd(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?tua(a,d,h,e):(a.xd(4),g.Kx(new g.Mt("Unable to load Botguard from JS")))): g.Kx(new g.Mt("Unable to load VM; no url or JS provided"))}; tua=function(a,b,c,d){a.xd(5);try{var e=new vj({program:b,globalName:c,l1:g.ks("att_web_record_metrics"),Ki:"aGIf"});e.xT.then(function(){a.xd(6);d&&d(b)}); a.vT(e)}catch(f){a.xd(7),f instanceof Error&&g.Kx(f)}}; GB=function(){var a=g.Pa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null}; HB=function(){FB.apply(this,arguments)}; IB=function(){}; vua=function(a,b,c){for(var d=!1,e=g.v(a.gj.entries()),f=e.next();!f.done;f=e.next())f=g.v(f.value).next().value,f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.Ya==="core"&&(d=!0);if(d){a:if(!c){a=g.v(a.gj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.v(c.value),c=d.next().value,d=d.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.Ya==="core"){c=d.layoutId;break a}c=void 0}c?b.gQ(c):qz("No triggering layout ID available when attempting to mute.")}}; JB=function(a,b){this.Cl=a;this.Io=b}; KB=function(){}; LB=function(){}; xua=function(a){g.K.call(this);var b=this;this.kd=a;this.j=new Map;MB(this,"commandExecutorCommand",function(c,d,e){wua(b,c.commands,d,e)}); MB(this,"clickTrackingParams",function(){})}; yua=function(a,b){MB(a,b.Kr(),function(c,d,e){b.fu(c,d,e)})}; MB=function(a,b,c){a.Ma();a.j.get(b)&&g.Jx(Error("Extension name "+b+" already registered"));a.j.set(b,c)}; wua=function(a,b,c,d){b=b===void 0?[]:b;a.Ma();var e=[],f=[];b=g.v(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.R(h,zua)||g.R(h,Aua)?e.push(h):f.push(h);e=g.v(e);for(b=e.next();!b.done;b=e.next())NB(a,b.value,c,d);f=g.v(f);for(e=f.next();!e.done;e=f.next())NB(a,e.value,c,d)}; NB=function(a,b,c,d){a.Ma();b.loggingUrls&&Bua(a,"loggingUrls",b.loggingUrls,c,d);b=g.v(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.v(e.value);e=f.next().value;f=f.next().value;e==="openPopupAction"?a.kd.get().bv("innertubeCommand",{openPopupAction:f}):e==="confirmDialogEndpoint"?a.kd.get().bv("innertubeCommand",{confirmDialogEndpoint:f}):Cua.hasOwnProperty(e)||Bua(a,e,f,c,d)}}; Bua=function(a,b,c,d,e){if((a=a.j.get(b))&&typeof a==="function")try{a(c,d,e)}catch(f){g.Jx(f)}else b=new g.Mt("Unhandled field",b),g.Kx(b)}; OB=function(a,b,c){this.Jf=a;this.j=b;this.Oa=c}; PB=function(a){this.value=a}; QB=function(a){this.value=a}; RB=function(a){this.value=a}; SB=function(a){this.value=a}; TB=function(a){this.value=a}; UB=function(a){this.value=a}; VB=function(a){this.value=a}; WB=function(){PB.apply(this,arguments)}; XB=function(a){this.value=a}; YB=function(a){this.value=a}; ZB=function(a){this.value=a}; $B=function(a){this.value=a}; aC=function(a){this.value=a}; bC=function(a){this.value=a}; cC=function(a){this.value=a}; dC=function(a){this.value=a}; eC=function(a){this.value=a}; fC=function(a){this.value=a}; gC=function(){PB.apply(this,arguments)}; hC=function(a){this.value=a}; iC=function(a){this.value=a}; jC=function(a){this.value=a}; kC=function(a){this.value=a}; lC=function(a){this.value=a}; mC=function(a){this.value=a}; nC=function(a){this.value=a}; oC=function(a){this.value=a}; pC=function(a){this.value=a}; qC=function(a){this.value=a}; rC=function(a){this.value=a}; sC=function(a){this.value=a}; tC=function(a){this.value=a}; uC=function(a){this.value=a}; vC=function(a){this.value=a}; wC=function(a){this.value=a}; xC=function(a){this.value=a}; yC=function(a){this.value=a}; zC=function(a){this.value=a}; AC=function(a){this.value=a}; BC=function(a){this.value=a}; CC=function(a){this.value=a}; DC=function(a){this.value=a}; EC=function(a){this.value=a}; FC=function(a){this.value=a}; GC=function(a){this.value=a}; HC=function(a){this.value=a}; IC=function(a){this.value=a}; JC=function(a){this.value=a}; KC=function(a){this.value=a}; LC=function(a){this.value=a}; MC=function(a){this.value=a}; NC=function(a){this.value=a}; OC=function(a){this.value=a}; PC=function(a){this.value=a}; QC=function(a){this.value=a}; RC=function(a){this.value=a}; SC=function(a){this.value=a}; TC=function(){PB.apply(this,arguments)}; UC=function(a){this.value=a}; VC=function(){PB.apply(this,arguments)}; WC=function(){PB.apply(this,arguments)}; XC=function(){PB.apply(this,arguments)}; YC=function(){PB.apply(this,arguments)}; ZC=function(){PB.apply(this,arguments)}; $C=function(a){this.value=a}; aD=function(a){this.value=a}; bD=function(a){this.value=a}; cD=function(a){this.value=a}; dD=function(a){this.value=a}; fD=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.v(b);for(c=b.next();!c.done;c=b.next())if(!eD(a.Aa,c.value))return!1;return!0}; gD=function(){return""}; Dua=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}}; hD=function(a,b,c,d){d=d===void 0?!1:d;jb.call(this,a);this.al=c;this.Dw=d;this.args=[];b&&this.args.push(b)}; X=function(a,b,c,d){d=d===void 0?!1:d;jb.call(this,a);this.al=c;this.Dw=d;this.args=[];b&&this.args.push(b)}; iD=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)}); this.j=b}; eD=function(a,b){return a.j.has(b)}; jD=function(a,b){a=a.j.get(b);if(a!==void 0)return a.get()}; kD=function(a){return Array.from(a.j.keys())}; lD=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.v(b);for(c=b.next();!c.done;c=b.next())if(!eD(a.Aa,c.value))return!1;return!0}; Fua=function(a){var b;return((b=Eua.get(a))==null?void 0:b.Py)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; nD=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:Gua.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=mD(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.v(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(mD(d.value)); b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.v(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(mD(a.value))}return c}; Hua=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:Gua.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c}; mD=function(a,b){var c={type:a.triggerType};b!=null&&(c.category=b);a.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c}; Iua=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Bl(d||[],function(e){return nD(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{})); return b}; pD=function(a,b){return function(c){return Jua(oD(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Ya,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Ya)}}; Jua=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:nD(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Ya:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Aa:new iD([])}),layoutData:Hua(a,{layoutId:m,layoutType:n,Ya:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Cb:new Map,Aa:new iD([]),Wb:{}})}}}; rD=function(a){this.Ba=a;a=Math.random();var b=this.Ba.get();b=g.qD(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&b>=0&&b<=1?b:0;this.j=a1){g.Kx(new g.Mt("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0}; lwa=function(a,b){var c=new Map;a=g.v(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.layoutType==="LAYOUT_TYPE_MEDIA")var e="v";else d.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(e=jD(d.Aa,"metadata_type_linked_in_player_layout_type"),e=e==="LAYOUT_TYPE_ENDCAP"||e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":e==="LAYOUT_TYPE_SURVEY"?"s":e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):e="u";c.set(d.layoutId,e);e==="u"&&(e={},pF(b,"uct",(e.c=d.layoutId,e)))}a=b.Dm();qF={contentCpn:a,Gt:c}; d={};pF(b,"acc",(d.ct=c.size,d.c=a,d))}; mwa=function(){qF={contentCpn:"",Gt:new Map}}; rF=function(a){var b;return(b=qF.Gt.get(a))!=null?b:"u"}; sF=function(a,b,c){pF(a,b,c);nwa(a)}; owa=function(a){var b=a.layoutId,c=a.gs;if(a.Ao){var d={};sF(a.Jf,"slso",(d.ec=b,d.is=c,d.ctp=rF(b),d))}}; tF=function(a){var b=a.layoutId,c=a.gs;if(a.Ao){var d={};sF(a.Jf,"slse",(d.ec=b,d.is=c,d.ctp=rF(b),d))}}; pwa=function(a){var b=a.layoutId,c=a.gs,d=a.Jf;a.Ao&&(a={},sF(d,"sleo",(a.xc=b,a.is=c,a.ctp=rF(b),a)),nwa(d))}; qwa=function(a){var b=a.cpn,c=a.Jf;a=a.gs;var d=c.Dm(),e={};sF(c,"ce",(e.ec=b,e.ia=b!==d,e.r=qF.Gt.has(b),e.is=a,e.ctp=rF(b),e))}; nwa=function(a){if(a.Dm()!==qF.contentCpn){var b={};pF(a,"ccm",(b.c=qF.contentCpn,b))}}; rwa=function(a){var b=a.cpn,c=a.Jf;a=a.gs;var d=c.Dm(),e={};sF(c,"cx",(e.xc=b,e.ia=b!==d,e.r=qF.Gt.has(b),e.is=a,e.ctp=rF(b),e))}; swa=function(a,b){this.Jf=a;this.Ba=b}; uF=function(a){var b=[];if(a){a=g.v(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;d!==void 0&&(d=typeof d==="boolean"?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")}; vF=function(a,b,c){b=b===void 0?{}:b;this.errorCode=a;this.details=b;this.severity=c===void 0?0:c}; wF=function(a){return a===1||a===2}; xF=function(a,b){b=b===void 0?0:b;if(a instanceof vF)return a;a=a&&a instanceof Error?a:Error(""+a);wF(b)?g.Jx(a):g.Kx(a);return new vF(b===1?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)}; g.uwa=function(a){return(a=twa[a.toString()])?a:"LICENSE"}; vwa=function(a,b){function c(){var d=g.Fa.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.w(d))} a.addEventListener("playing",c)}; yF=function(){var a=g.Pa("yt.player.utils.videoElement_");a||(a=g.me("VIDEO"),g.Ma("yt.player.utils.videoElement_",a));return a}; zF=function(a){var b=yF();return!!(b&&b.canPlayType&&b.canPlayType(a))}; BF=function(a){if(/opus/.test(a)&&g.AF&&!Fp("38")&&!g.Hs())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)&&!Ks())return!1;a==='audio/mp4; codecs="mp4a.40.2"'&&(a='video/mp4; codecs="avc1.4d401f"');return!!zF(a)}; wwa=function(a){try{var b=BF('video/mp4; codecs="avc1.42001E"')||BF('video/webm; codecs="vp9"');return(BF('audio/mp4; codecs="mp4a.40.2"')||BF('audio/webm; codecs="opus"'))&&(b||!a)||zF('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}}; CF=function(){var a=yF();return!(!a.webkitSupportsPresentationMode||typeof a.webkitSetPresentationMode!=="function")}; DF=function(){var a=yF();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1}; g.EF=function(){rt.apply(this,arguments)}; FF=function(a,b,c,d,e,f){this.sampleRate=a===void 0?0:a;this.numChannels=b===void 0?0:b;this.spatialAudioType=c===void 0?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=d===void 0?!1:d;this.C=e===void 0?0:e;this.B=f===void 0?0:f}; IF=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||GF(a,b);this.j=g.HF[this.quality];this.fps=c||0;this.stereoLayout=!e||d!=null&&d!=="UNKNOWN"&&d!=="RECTANGULAR"?0:e;this.projectionType=d?d==="EQUIRECTANGULAR"&&e===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.HF[this.quality],a===0?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(c==="EQUIRECTANGULAR"||c==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||c==="MESH"?"s":"p")+(b>55?"60":b>49?"50":b>39?"48":""))); this.qualityLabel=a;this.B=l||"";this.primaries=m||""}; GF=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=JF[0];for(var d=0;d=Math.floor(f*16/9)*1.3||a>=f*1.3)return b;b=e}return"tiny"}; MF=function(a,b,c){c=c===void 0?{}:c;this.id=a;this.mimeType=b;c.ub>0||(c.ub=16E3);Object.assign(this,c);a=g.v(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=KF(b);this.sb=LF[this.itag]||""}; NF=function(a){return a.sb==="9"||a.sb==="("||a.sb==="9h"||a.sb==="(h"}; xwa=function(a){return a.sb==="H"||a.sb==="h"}; OF=function(a){return a.sb==="9h"||a.sb==="(h"}; PF=function(a){return a.sb==="1"||a.sb==="1h"}; QF=function(a){return a.sb==="mac3"||a.sb==="meac3"||a.sb==="m"}; RF=function(a){return a.sb==="MAC3"||a.sb==="MEAC3"||a.sb==="M"}; g.SF=function(a){return a.containerType===1}; ywa=function(a){return a.sb==="("||a.sb==="(h"||a.sb==="H"}; TF=function(a){return a.mimeType==="application/x-mpegURL"}; UF=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}}; VF=function(a,b){a=UF(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags}; zwa=function(a){var b=navigator.mediaCapabilities;if(b==null||!b.decodingInfo||a.sb==="f")return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:a.ub*8||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:a.ub*8||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})}; WF=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)}; XF=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)}; YF=function(a){return a.includes("vtt")||a.includes("text/mp4")}; KF=function(a){return a.indexOf("/mp4")>=0?1:a.indexOf("/webm")>=0?2:a.indexOf("/x-flv")>=0?3:a.indexOf("/vtt")>=0?4:0}; ZF=function(a,b,c,d,e,f){var h=new FF;b in g.HF||(b="small");b==="light"&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.HF[b],d=Math.round(e*16/9));f=new IF(d,e,0,null,void 0,b,f);a=unescape(a.replace(/"/g,'"'));return new MF(c,a,{audio:h,video:f})}; $F=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+((c=a.Fw)==null?void 0:c.toFixed(0))+", "+((d=a.ub)==null?void 0:d.toFixed(0))+")"}; aG=function(a,b){return{start:function(c){return a[c]}, end:function(c){return b[c]}, length:a.length}}; Awa=function(a,b,c){for(var d=[],e=[],f=0;f=b)return c}catch(d){}return-1}; dG=function(a,b){return cG(a,b)>=0}; Bwa=function(a,b){if(!a)return NaN;b=cG(a,b);return b>=0?a.start(b):NaN}; eG=function(a,b){if(!a)return NaN;b=cG(a,b);return b>=0?a.end(b):NaN}; fG=function(a){return a&&a.length?a.end(a.length-1):NaN}; gG=function(a,b){a=eG(a,b);return a>=0?a-b:0}; hG=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return aG(d,e)}; iG=function(a,b,c,d){g.iy.call(this);var e=this;this.Hd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.RY={error:function(){!e.Ma()&&e.isActive&&e.publish("error",e)}, updateend:function(){!e.Ma()&&e.isActive&&e.publish("updateend",e)}}; g.jy(this.Hd,this.RY);this.eI=this.isActive}; kG=function(a,b,c,d,e,f){g.iy.call(this);var h=this;this.Pb=a;this.vg=b;this.id=c;this.containerType=d;this.sb=e;this.zg=f;this.VQ=this.PF=this.Gf=null;this.ZI=!1;this.appendWindowStart=this.timestampOffset=0;this.qO=aG([],[]);this.mE=!1;this.OF=[];this.gC=jG?[]:void 0;this.dI=!1;this.Gd=function(m){return h.publish(m.type,h)}; var l;if((l=this.Pb)==null?0:l.addEventListener)this.Pb.addEventListener("updateend",this.Gd),this.Pb.addEventListener("error",this.Gd)}; lG=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; mG=function(a,b){this.resource=a;this.j=b===void 0?!1:b;this.B=!1}; nG=function(a,b,c){c=c===void 0?!1:c;g.K.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.vg=this.mediaElement.Ib());this.events=new g.EF(this);g.Q(this,this.events);this.C=new mG(this.Qa?window.URL.createObjectURL(this.Qa):this.vg.webkitMediaSourceURL,!0);a=this.Qa||this.vg;tt(this.events,a,["sourceopen","webkitsourceopen"],this.aca);tt(this.events,a,["sourceclose","webkitsourceclose"],this.Zba);this.D={updateend:this.s5}}; Cwa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Dwa=function(a,b){oG(a)?g.Ge(function(){b(a)}):a.callback=b}; Ewa=function(a,b,c){if(pG){var d;qG(a.mediaElement,{l:"mswssb",sr:(d=a.mediaElement.ea)==null?void 0:rG(d)},!1);g.jy(b,a.D,a);g.jy(c,a.D,a)}a.j=b;a.B=c;g.Q(a,b);g.Q(a,c)}; Fwa=function(a,b,c,d){d=b.mimeType+(d===void 0?"":d);var e=c.mimeType;b=b.sb;c=c.sb;var f;a.Z=(f=a.Qa)==null?void 0:f.addSourceBuffer(e);var h;a.Y=d.split(";")[0]==="fakesb"?void 0:(h=a.Qa)==null?void 0:h.addSourceBuffer(d);a.vg&&(a.vg.webkitSourceAddId("0",e),a.vg.webkitSourceAddId("1",d));f=new kG(a.Z,a.vg,"0",KF(e),c,!1);d=new kG(a.Y,a.vg,"1",KF(d),b,!0);Ewa(a,f,d)}; sG=function(a){return!!a.j||!!a.B}; oG=function(a){try{return tG(a)==="open"}catch(b){return!1}}; tG=function(a){if(a.Qa)return a.Qa.readyState;switch(a.vg.webkitSourceState){case a.vg.SOURCE_OPEN:return"open";case a.vg.SOURCE_ENDED:return"ended";default:return"closed"}}; uG=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; Gwa=function(a){oG(a)&&(a.Qa?a.Qa.endOfStream():a.vg.webkitSourceEndOfStream(a.vg.EOS_NO_ERROR))}; Hwa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Hd:a.j,f=a.B.isView()?a.B.Hd:a.B,h=new nG(a.mediaElement,a.Qa,!0);h.C=a.C;Ewa(h,new iG(e,b,c,d),new iG(f,b,c,d));oG(a)||a.j.Kq(a.j.Ec());return h}; Iwa=function(a){var b;(b=a.j)==null||b.Gz();var c;(c=a.B)==null||c.Gz();a.K=!1}; vG=function(){var a=this;this.NS=this.aT=qaa;this.promise=new g.Ie(function(b,c){a.aT=b;a.NS=c})}; wG=function(){g.K.call(this);this.qK=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Zc;this.ea=null;g.Q(this,this.D)}; xG=function(a){a=a.tA();return a.length<1?NaN:a.end(a.length-1)}; Jwa=function(a){!a.B&&Cwa()&&(a.C?a.C.then(function(){return Jwa(a)}):a.Wh()||(a.B=a.Mr()))}; Kwa=function(a){a.B&&(a.B.dispose(),a.B=void 0)}; qG=function(a,b,c){var d;((d=a.ea)==null?0:d.yc())&&a.ea.oa("rms",b,c===void 0?!1:c)}; Lwa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||c>10||(a.play(),g.fs(function(){Lwa(a,a.getCurrentTime(),c+1)},500))}; Mwa=function(a,b){a.resource&&b!==null&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)}; yG=function(a){return gG(a.Dh(),a.getCurrentTime())}; Nwa=function(a,b){if(a.Yk()===0||a.hasError())return!1;var c=a.getCurrentTime()>0;return b>=0&&(a=a.tA(),a.length||!c)?dG(a,b):c}; zG=function(a){a.Wh()&&(Owa&&a.ea&&a.ea.Cv("rs_s"),Nu&&a.getCurrentTime()>0&&a.seekTo(0),a.XL(),a.load(),Mwa(a,null));delete a.C}; AG=function(a){switch(a.Uh()){case 2:return"progressive.net.retryexhausted";case 3:var b;return((b=a.Wf())==null?0:b.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.BG=function(a,b,c){this.eh=b===void 0?null:b;this.seekSource=c===void 0?null:c;this.state=a||64}; CG=function(a,b){return Pwa(a,b.getCurrentTime(),(0,g.uu)(),yG(b))}; DG=function(a,b,c,d){if(!(b===a.state&&c===a.eh&&d===a.seekSource||b!==void 0&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.BG(b,c,e?d?d:a.seekSource:null)}return a}; EG=function(a,b,c){return DG(a,a.state|b,null,c===void 0?null:c)}; FG=function(a,b){return DG(a,a.state&~b,null,null)}; GG=function(a,b,c,d){return DG(a,(a.state|b)&~c,null,d===void 0?null:d)}; g.U=function(a,b){return!!(a.state&b)}; g.HG=function(a,b){return b.state===a.state&&b.eh===a.eh}; IG=function(a){return a.isPlaying()&&!g.U(a,16)&&!g.U(a,32)}; JG=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,2048)?3:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1}; LG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,x){g.K.call(this);var B=this;this.Yo=a;this.slot=b;this.layout=c;this.Oa=d;this.yb=e;this.Sa=f;this.Ha=h;this.zc=l;this.Lb=m;this.Bq=n;this.position=q;this.G=r;this.Ba=t;this.hs=u;this.Qg=x;this.jh=!0;this.D=!1;this.kc="not_rendering";this.j=!1;this.B=new nF;a=jD(this.layout.Aa,"metadata_type_ad_placement_config");this.eb=new CE(c.Cb,this.Oa,a,c.layoutId);var E;a=((E=KG(this))==null?void 0:E.progressCommands)||[];this.C=new Ova(m,a,c.layoutId,function(){return B.mA()})}; MG=function(a){return{layoutId:a.nA(),gs:a.hs,Jf:a.Sa.get(),Ao:a.gf()}}; NG=function(a,b){return b.layoutId!==a.layout.layoutId?(a.Yo.sf(a.slot,b,new hD("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; OG=function(a){a.kc="rendering_start_requested";a.Bq(-1)}; KG=function(a){return jD(a.layout.Aa,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; Qwa=function(a){qz("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)}; Rwa=function(a){a.gf()&&qz("Unexpected ad player in SSAP",a.slot,a.layout)}; Swa=function(a){var b;return((b=a.Sa.get().De(2))==null?void 0:b.clientPlaybackNonce)||""}; PG=function(a,b){switch(b){case "normal":a.Yb("complete");break;case "skipped":a.Yb("skip");break;case "abandoned":IE(a.eb,"impression")&&a.Yb("abandon")}}; QG=function(a,b){a.D||(b=new g.rz(b.state,new g.BG),a.D=!0);return b}; RG=function(a,b){kF(b)?a.Bq(1):g.tz(b,4)&&!g.tz(b,2)&&a.S2();sz(b,4)<0&&!(sz(b,2)<0)&&a.T2()}; Twa=function(a){a.position===0&&(a.zc.get(),a=jD(a.layout.Aa,"metadata_type_ad_placement_config").kind,a={adBreakType:SG(a)},gB("ad_bl"),g.hB(a))}; TG=function(a,b){GE(a.eb,b,!a.j)}; Vwa=function(a){var b;return(((b=KG(a))==null?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.R(c==null?void 0:c.command,Uwa)})!==-1}; UG=function(a,b){var c=jD(a.Aa,"metadata_type_eligible_for_ssap");return c===void 0?(qz("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.gf(c)}; VG=function(a){switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return qz("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:Pd(a,"unexpected transition reason")}}; WG=function(a,b,c){jB(a,c)||lB(a,b,c);jB(a,"video_to_ad")||lB(a,b,"video_to_ad");jB(a,"ad_to_video")||lB(a,b,"ad_to_video");jB(a,"ad_to_ad")||lB(a,b,"ad_to_ad")}; XG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,x,B){LG.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,u,x,B);var E=this;this.kd=m;this.oo=q;this.xK=!0;this.YQ=this.ij=0;this.Qz=ed(function(){owa(MG(E));E.Yo.wc(E.slot,E.layout)}); this.Pz=ed(function(){pwa(MG(E));E.kc!=="rendering_stop_requested"&&E.oo(E);E.LO()}); this.We=new g.Qe(200);this.We.listen("tick",function(){E.Sc()}); g.Q(this,this.We)}; ZG=function(a){a.YQ=Date.now();YG(a,a.ij);a.We.start()}; Wwa=function(a){a.ij=a.mA();a.EC(a.ij/1E3,!0);YG(a,a.ij)}; YG=function(a,b){b={current:b/1E3,duration:a.mA()/1E3};a.kd.get().bv("onAdPlaybackProgress",b)}; $G=function(a){XG.call(this,a.Yo,a.slot,a.Nf,a.Oa,a.yb,a.Sa,a.Ha,a.zc,a.kd,a.Lb,a.Bq,a.oo,a.Nq,a.Sy,a.Ba,a.hs,a.Qg)}; sH=function(a){XG.call(this,a.Yo,a.slot,a.Nf,a.Oa,a.yb,a.Sa,a.Ha,a.zc,a.kd,a.Lb,a.Bq,a.oo,a.Nq,a.Sy,a.Ba,a.hs,a.Qg)}; vH=function(){sH.apply(this,arguments)}; Xwa=function(a){return UG(a.slot,a.Ba.get())?new vH(a):new $G(a)}; yH=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,x,B,E,F,I,O,N){LG.call(this,a,b,c,d,e,l,m,p,r,u,x,B,E,F,I,N);var S=this;this.hf=f;this.jd=h;this.Pc=n;this.kd=q;this.Yf=t;this.oo=x;this.context=O;this.adCpn="";this.JW=0;this.VY=!1;this.Qz=ed(function(){owa(MG(S));S.Yo.wc(S.slot,S.layout)}); this.Pz=ed(function(){pwa(MG(S));S.kc!=="rendering_stop_requested"&&S.oo(S);S.LO()}); this.gf()||(this.RK=new g.fp(function(){S.dL("load_timeout",new hD("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=wH(this.Ba.get()),F=xH(F.get()),a&&F&&(this.oB=new g.fp(function(){var Y=jD(c.Aa,"metadata_type_preload_player_vars"); Y&&S.jd.get().J.preloadVideoByPlayerVars(Y,2,300)})))}; zH=function(a,b){var c=jD(b.Aa,"metadata_type_ad_video_id"),d=jD(b.Aa,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.Yf.get().J.U().Na.add(c,{WI:d});(b=jD(b.Aa,"metadata_type_sodar_extension_data"))&&cva(a.hf.get(),b);Ywa(a.Ha.get(),!1)}; Zwa=function(a){Ywa(a.Ha.get(),!0);var b;((b=a.shrunkenPlayerBytesConfig)==null?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ha.get().rC(!1)}; AH=function(a){yH.call(this,a.callback,a.slot,a.Nf,a.Oa,a.yb,a.hf,a.jd,a.Sa,a.Ha,a.Pc,a.zc,a.kd,a.Lb,a.Yf,a.Bq,a.oo,a.Nq,a.Sy,a.Ba,a.hs,a.context,a.Qg)}; BH=function(){AH.apply(this,arguments)}; $wa=function(a){return Xwa(Object.assign({},a,{Yo:a.callback,Bq:function(){}}))}; axa=function(a){return new yH(a.callback,a.slot,a.Nf,a.Oa,a.yb,a.hf,a.jd,a.Sa,a.Ha,a.Pc,a.zc,a.kd,a.Lb,a.Yf,function(b){a.kd.get().bv("onAdIntroStateChange",b)},a.oo,a.Nq,a.Sy,a.Ba,a.hs,a.context,a.Qg)}; bxa=function(a){function b(c){a.kd.get().UG(c)} return UG(a.slot,a.Ba.get())?new BH(Object.assign({},a,{Bq:b})):new yH(a.callback,a.slot,a.Nf,a.Oa,a.yb,a.hf,a.jd,a.Sa,a.Ha,a.Pc,a.zc,a.kd,a.Lb,a.Yf,b,a.oo,a.Nq,a.Sy,a.Ba,a.hs,a.context,a.Qg)}; CH=function(a){for(var b=a.Nf,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.v(DE()),e=d.next();!e.done;e=d.next())c.push(e.value);if(WE(b,{Ld:c,He:["LAYOUT_TYPE_MEDIA_BREAK"]}))return $wa(a);b=a.Nf;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.v(DE());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(WE(b,{Ld:c,He:["LAYOUT_TYPE_MEDIA"]}))return eD(a.Nf.Aa,"metadata_type_ad_intro")?axa(a):bxa(a)}; dxa=function(a){var b=jD(a.Aa,"metadata_type_ad_placement_config").kind,c=jD(a.Aa,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:cxa(c),adBreakType:SG(b)}}; SG=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"}}; cxa=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"}}; exa=function(a){try{return new DH(a)}catch(b){}}; EH=function(a,b,c,d,e,f,h,l,m,n,p){g.K.call(this);this.Ev=a;this.slot=b;this.layout=c;this.Xd=d;this.cf=e;this.Sa=f;this.Fc=h;this.jd=l;this.uc=m;this.Ha=n;this.jh=!0;a=CH(p);if(!a)throw Error("Invalid params for sublayout");this.Jd=a}; DH=function(a){EH.call(this,a.Ev,a.slot,a.layout,a.Xd,a.cf,a.Sa,a.Fc,a.jd,a.uc,a.Ha,a.eea);this.params=a}; fxa=function(){this.j=1;this.B=new nF}; FH=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.K.call(this);this.callback=a;this.Sa=b;this.Fc=c;this.jd=d;this.Ha=e;this.zc=f;this.Mq=h;this.slot=l;this.layout=m;this.Xd=n;this.ji=p;this.uc=q;this.Ba=r;this.jh=!0;this.sx=!1;this.Fg=[];this.sz=-1;this.EQ=!1;this.Nw=new fxa}; gxa=function(a){var b;return(b=a.layout.Oy)!=null?b:jD(a.layout.Aa,"metadata_type_sub_layouts")}; GH=function(a){return{Jf:a.Sa.get(),gs:!1,Ao:a.gf()}}; hxa=function(a,b,c){if(a.pk()===a.Fg.length-1){var d,e;qz("Unexpected skip requested during the last sublayout",(d=a.Bf())==null?void 0:d.ac(),(e=a.Bf())==null?void 0:e.Za(),{requestingSlot:b,requestingLayout:c})}}; ixa=function(a,b,c){return c.layoutId!==HH(a,b,c)?(qz("onSkipRequested for a PlayerBytes layout that is not currently active",a.ac(),a.Za()),!1):!0}; jxa=function(a){a.pk()===a.Fg.length-1&&qz("Unexpected skip with target requested during the last sublayout")}; kxa=function(a,b,c){return c.renderingContent===void 0&&c.layoutId!==HH(a,b,c)?(qz("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.ac(),a.Za(),{requestingSlot:b,requestingLayout:c}),!1):!0}; lxa=function(a,b,c,d){var e=jD(b.Za().Aa,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e0)){qz("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});break a}a.sz=b;b=a.Bf();if(a.pk()>0&&!a.gf()){var c=a.zc.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});iB("ad_to_ad",d)}a.NT(b)}}; MH=function(a){FH.call(this,a.Ev,a.Sa,a.Fc,a.jd,a.Ha,a.zc,a.Mq,a.slot,a.layout,a.Xd,a.ji,a.uc,a.Ba)}; NH=function(a){FH.call(this,a.Ev,a.Sa,a.Fc,a.jd,a.Ha,a.zc,a.Mq,a.slot,a.layout,a.Xd,a.ji,a.uc,a.Ba)}; OH=function(){NH.apply(this,arguments);this.Bh=void 0}; nxa=function(a,b,c){b.hA().currentState<2&&(c=VG(c),b.Id(b.Za(),c));c=b.hA().j;a.MO(a.slot,b.Za(),c)}; oxa=function(a,b){a.Nw.j===2&&b!==a.Dm()&&qz("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:b})}; pxa=function(a,b){var c=a.Bf();c?(c.Id(c.Za(),b),b=a.pk()+1,b>=0&&be&&h.WH(p,e-d);return p}; yxa=function(a,b){var c=jD(b.Aa,"metadata_type_sodar_extension_data");if(c)try{cva(0,c)}catch(d){qz("Unexpected error when loading Sodar",a,b,{error:d})}}; zxa=function(a,b,c,d,e,f){VH(a,b,new g.rz(c,new g.BG),d,e,!1,f)}; VH=function(a,b,c,d,e,f,h){f=f===void 0?!0:f;kF(c)&&lF(e,0,null)&&(!IE(a,"impression")&&h&&h(),a.Yb("impression"));IE(a,"impression")&&(g.tz(c,4)&&!g.tz(c,2)&&a.Oh("pause"),sz(c,4)<0&&!(sz(c,2)<0)&&a.Oh("resume"),g.tz(c,16)&&e>=.5&&a.Oh("seek"),f&&g.tz(c,2)&&WH(a,c.state,b,d,e))}; WH=function(a,b,c,d,e,f,h){if(IE(a,"impression")){var l=Math.abs(d-e)<=1;XH(a,b,l?d:e,c,d,f,h&&l);l&&a.Yb("complete")}}; XH=function(a,b,c,d,e,f,h){HE(a,c*1E3,h);e<=0||c<=0||(b==null?0:g.U(b,16))||(b==null?0:g.U(b,32))||(lF(c,e*.25,d)&&(f&&!IE(a,"first_quartile")&&f("first"),a.Yb("first_quartile")),lF(c,e*.5,d)&&(f&&!IE(a,"midpoint")&&f("second"),a.Yb("midpoint")),lF(c,e*.75,d)&&(f&&!IE(a,"third_quartile")&&f("third"),a.Yb("third_quartile")))}; Axa=function(a,b){IE(a,"impression")&&a.Oh(b?"fullscreen":"end_fullscreen")}; Bxa=function(a){IE(a,"impression")&&a.Oh("clickthrough")}; Cxa=function(a){a.Oh("active_view_measurable")}; Dxa=function(a){IE(a,"impression")&&!IE(a,"seek")&&a.Oh("active_view_fully_viewable_audible_half_duration")}; Exa=function(a){IE(a,"impression")&&!IE(a,"seek")&&a.Oh("active_view_viewable")}; Fxa=function(a){IE(a,"impression")&&!IE(a,"seek")&&a.Oh("audio_audible")}; Gxa=function(a){IE(a,"impression")&&!IE(a,"seek")&&a.Oh("audio_measurable")}; Hxa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Fc=d;this.eb=e;this.Ha=f;this.Us=h;this.yb=l;this.hf=m;this.Ba=n;this.Oa=p;this.Sa=q;this.xK=!0;this.pd=this.kc=null;this.adCpn=void 0}; Ixa=function(a,b,c){var d;UH(a.Oa.get(),"ads_qua","cpn."+jD(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+((d=a.Sa.get().De(2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; Jxa=function(a,b){var c,d;UH(a.Oa.get(),"ads_imp","cpn."+jD(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+((c=a.Sa.get().De(2))==null?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.R((d=jD(a.layout.Aa,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,YH))}; ZH=function(a){return{enterMs:jD(a.Aa,"metadata_type_layout_enter_ms"),exitMs:jD(a.Aa,"metadata_type_layout_exit_ms")}}; $H=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){QH.call(this,a,b,c,d,e,h,l,m,n,q);this.Us=f;this.hf=p;this.yb=r;this.Ba=t;this.pd=this.kc=null}; Kxa=function(a,b){var c;UH(a.Oa.get(),"ads_imp","acpn."+((c=a.Sa.get().De(2))==null?void 0:c.clientPlaybackNonce)+";clr."+b)}; Lxa=function(a,b,c){var d;UH(a.Oa.get(),"ads_qua","cpn."+jD(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+((d=a.Sa.get().De(2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; aI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,x,B,E,F,I,O){this.uc=a;this.Xd=b;this.ji=c;this.Sa=d;this.Fc=e;this.Ha=f;this.Oa=h;this.Us=l;this.yf=m;this.yb=n;this.hf=p;this.jd=q;this.Pc=r;this.zc=t;this.kd=u;this.Lb=x;this.Yf=B;this.Ba=E;this.j=F;this.context=I;this.Qg=O}; bI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,x,B,E){this.uc=a;this.Xd=b;this.ji=c;this.Oa=d;this.yb=e;this.hf=f;this.jd=h;this.Sa=l;this.Ha=m;this.Pc=n;this.zc=p;this.kd=q;this.Lb=r;this.Yf=t;this.Ba=u;this.Fc=x;this.context=B;this.Qg=E}; Mxa=function(a,b,c,d){hy.call(this,"survey-interstitial",a,b,c,d)}; cI=function(a,b,c,d,e){vE.call(this,c,a,b,d);this.Oa=e;a=jD(b.Aa,"metadata_type_ad_placement_config");this.eb=new CE(b.Cb,e,a,b.layoutId)}; dI=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; fI=function(a,b,c){c=c===void 0?eI:c;c.widtha.width*a.height*.2)return{WM:3,ZH:501,errorMessage:"ad("+dI(c)+") to container("+dI(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{WM:3,ZH:501,errorMessage:"ad("+dI(c)+") covers container("+dI(a)+") center."}}; Nxa=function(a,b){var c=jD(a.Aa,"metadata_type_ad_placement_config");return new CE(a.Cb,b,c,a.layoutId)}; gI=function(a){return jD(a.Aa,"metadata_type_invideo_overlay_ad_renderer")}; hI=function(a,b,c,d){hy.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d}; iI=function(a,b,c,d,e,f,h,l,m,n,p,q){vE.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ha=l;this.Lb=m;this.Ba=n;this.K=p;this.G=q;this.eb=Nxa(b,c)}; Oxa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];DE().forEach(function(b){a.push(b)}); return{Ld:a,He:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; jI=function(a,b,c,d,e,f,h,l,m,n,p,q,r){vE.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Z=l;this.Ha=m;this.Lb=n;this.Ba=p;this.K=q;this.G=r;this.eb=Nxa(b,c)}; Pxa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.v(DE()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ld:a,He:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; kI=function(a){this.Ha=a;this.j=!1}; Qxa=function(a,b,c){hy.call(this,"survey",a,{},b,c)}; lI=function(a,b,c,d,e,f,h){vE.call(this,c,a,b,d);this.D=e;this.Ha=f;this.Ba=h}; Rxa=function(a,b,c,d,e,f,h,l,m,n){this.Cc=a;this.Ha=b;this.Oa=c;this.D=d;this.yb=e;this.B=f;this.C=h;this.Lb=l;this.Ba=m;this.j=n}; Sxa=function(a,b,c,d,e,f,h,l,m,n){this.Cc=a;this.Ha=b;this.Oa=c;this.D=d;this.yb=e;this.B=f;this.C=h;this.Lb=l;this.Ba=m;this.j=n}; mI=function(a,b,c,d,e,f,h,l,m,n){dF.call(this,a,b,c,d,e,f,h,m);this.Fn=l;this.Sa=n}; Txa=function(){var a=fwa();a.Ld.push("metadata_type_ad_info_ad_metadata");return a}; Uxa=function(a,b,c,d,e,f,h){this.Cc=a;this.Ha=b;this.Oa=c;this.B=d;this.Fn=e;this.j=f;this.Sa=h}; Vxa=function(a,b,c,d,e,f,h,l){this.Cc=a;this.Ha=b;this.Oa=c;this.B=d;this.Fn=e;this.j=f;this.Ba=h;this.Sa=l}; nI=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)}; oI=function(a,b){this.adPodIndex=a;this.j=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); var c=0;for(a+=1;a0}; TI=function(a){return!!(a.M9&&a.slot&&a.layout)}; UI=function(a){var b,c=(b=a.config)==null?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||c.kind==null||!a)}; iya=function(a){if(!MI(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.R(a,iF)||g.R(a,gF)||g.R(a,hF)?!0:!1}; VI=function(a){return a.playerVars!==void 0&&a.pings!==void 0&&a.externalVideoId!==void 0}; $I=function(a){if(!MI(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.R(a,jya);return b?kya(b):(b=g.R(a,WI))?VI(b):(b=g.R(a,XI))?b.playerVars!==void 0:(b=g.R(a,iF))?b.durationMilliseconds!==void 0:g.R(a,YI)||g.R(a,ZI)?!0:!1}; kya=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.R(b,aJ)}); return a.length>0&&a.every($I)}; oya=function(a){if(!MI(a.adLayoutMetadata))return!1;if(g.R(a.renderingContent,lya))return!0;a=g.R(a.renderingContent,bJ);return g.R(a==null?void 0:a.sidePanel,mya)||g.R(a==null?void 0:a.sidePanel,nya)?!0:!1}; tya=function(a){var b=a.adSlotMetadata;if((b==null?void 0:b.slotId)===void 0||(b==null?void 0:b.slotType)===void 0||!(pya(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=(c=a.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.R(a,aJ))?$I(c):(c=g.R(a,cJ))?oya(c):(c=g.R(a,qya))?iya(c):(c=g.R(a,rya))?gya(c):(a=g.R(a,sya))?MI(a.adLayoutMetadata)?g.R(a.renderingContent,NI)?!0:!1:!1:!1}; pya=function(a){var b;a=g.R((b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,cJ);var c;return a&&((c=a.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&a.layoutExitNormalTriggers===void 0}; vya=function(a,b){var c;if((c=a.questions)==null||!c.length||!a.playbackCommands||(b===void 0||!b)&&a.questions.length!==1)return!1;a=g.v(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=((c=g.R(b,dJ))==null?void 0:c.surveyAdQuestionCommon)||((d=g.R(b,eJ))==null?void 0:d.surveyAdQuestionCommon);if(!uya(e))return!1}return!0}; wya=function(a){a=((a==null?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&a.questions.length===1){var c,d=((b=g.R(a.questions[0],dJ))==null?void 0:b.surveyAdQuestionCommon)||((c=g.R(a.questions[0],eJ))==null?void 0:c.surveyAdQuestionCommon);b=uya(d)}else b=!1;else b=!1;return b}; uya=function(a){if(!a)return!1;a=g.R(a.instreamAdPlayerOverlay,fJ);var b=g.R(a==null?void 0:a.skipOrPreviewRenderer,YH),c=g.R(a==null?void 0:a.adInfoRenderer,gJ);return(g.R(a==null?void 0:a.skipOrPreviewRenderer,hJ)||b)&&c?!0:!1}; xya=function(a){return a.linearAds!=null&&MI(a.adLayoutMetadata)}; yya=function(a){return a.linearAd!=null&&a.adVideoStart!=null}; zya=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.R(a.ctaButton,g.iJ)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.R(a.backgroundImage,jJ)&&((b=g.R(a.backgroundImage,jJ))==null?0:b.landscape)?!0:!1}; kJ=function(a,b,c,d,e,f,h){g.K.call(this);this.Ba=a;this.j=b;this.C=d;this.Sa=e;this.D=f;this.B=h}; Cya=function(a,b,c){var d,e=((d=c.adSlots)!=null?d:[]).map(function(f){return g.R(f,lJ)}); c.CC?jD(b.Aa,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?rE(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Ba.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Bw.filter(function(f){var h; return((h=f.renderer)==null?void 0:h.clientForecastingAdRenderer)!=null}),d.length!==0?Aya(a.B,d,e,b.slotId,c.ssdaiAdsConfig):rE(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):rE(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Bya(a.D,b)):Aya(a.B,c.Bw,e,b.slotId,c.ssdaiAdsConfig)}; Eya=function(a,b,c,d,e,f){var h=a.Sa.get().De(1);rE(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Dya(a.C.get(),c,d,e,h.clientPlaybackNonce,h.Kp,h.daiEnabled,h,f)},b)}; Gya=function(a,b,c,d,e,f,h){b=Fya(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof X?b:mJ(a,d,e,b,c);return a instanceof X?a:[a]}; Hya=function(a,b,c,d,e){var f=sE(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new OC({getAdBreakUrl:d.getAdBreakUrl,KS:0,JS:0}),new bD(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new HI(a.j,f),slotFulfillmentTriggers:[new Wxa(a.j)],slotExpirationTriggers:[new BI(a.j,e),new EI(a.j,f)],Ya:"core",Aa:new iD(d),adSlotLoggingData:c}:new X("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new X("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return a instanceof X?a:[a]}; Iya=function(a){var b,c;return((b=a.renderer)==null?void 0:(c=b.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0}; nJ=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new pI(gD,b,a.id):new X("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=(d=a.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new vI(gD,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new X("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;((e=a.layoutExitedForReasonTrigger)==null?0:e.triggeringLayoutId)&&((f= a.layoutExitedForReasonTrigger)==null?0:f.layoutExitReason)?(b=Xxa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof X?b:new uI(gD,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new X("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=(h=a.onLayoutSelfExitRequestedTrigger)!=null&&h.triggeringLayoutId?new AI(gD,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new X("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a= a.onNewPlaybackAfterContentVideoIdTrigger?new BI(gD,b,a.id):new X("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=(l=a.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new CI(gD,a.skipRequestedTrigger.triggeringLayoutId,a.id):new X("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=(m=a.slotIdEnteredTrigger)!=null&&m.triggeringSlotId?new DI(gD,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new X("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n; b=(n=a.slotIdExitedTrigger)!=null&&n.triggeringSlotId?new EI(gD,a.slotIdExitedTrigger.triggeringSlotId,a.id):new X("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=(p=a.surveySubmittedTrigger)!=null&&p.triggeringLayoutId?new JI(gD,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new X("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new Zxa(a.id):new X("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q; b=(q=a.closeRequestedTrigger)!=null&&q.triggeringLayoutId?new qI(gD,a.closeRequestedTrigger.triggeringLayoutId,a.id):new X("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=(r=a.slotIdScheduledTrigger)!=null&&r.triggeringSlotId?new HI(gD,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new X("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number((t=a.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var u;h=Number((u= a.mediaTimeRangeTrigger)==null?void 0:u.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(u=h,u===-1&&(u=c),c=d>u?new X("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===c&&d-500<=u):new Dp(d,u),a=c instanceof X?c:new xI(gD,b,c,!1,a.id)):a=new X("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new rI(gD,b,!1,a.id):new X("Not able to create ContentVideoIdEndedTrigger"); else{if(a.layoutIdEnteredTrigger){var x;b=(x=a.layoutIdEnteredTrigger)!=null&&x.triggeringLayoutId?new tI(gD,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new X("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var B;b=(B=a.timeRelativeToLayoutEnterTrigger)!=null&&B.triggeringLayoutId?new KI(gD,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new X("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var E; b=(E=a.onDifferentLayoutIdEnteredTrigger)!=null&&E.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new yI(gD,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new X("Not able to create CloseRequestedTrigger")}else b=new X("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}; Kya=function(a,b,c,d,e,f,h,l){return b===null?new X("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[Jya(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new iD([new QB(d),new bC(e)]);n=ZD(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",Cb:new Map, layoutExitNormalTriggers:[new BI(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:q,Wb:m(r),adLayoutLoggingData:p}})]}; Lya=function(a,b,c,d,e,f,h,l){return b===null?new X("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[Jya(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new iD([new RB(d),new bC(e)]);n=ZD(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", Cb:new Map,layoutExitNormalTriggers:[new BI(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:q,Wb:m(r),adLayoutLoggingData:p}})]}; Pya=function(a,b,c,d,e,f){if(!f)for(b=g.v(b),f=b.next();!f.done;f=b.next())f=f.value,oJ(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return Mya(p)}); b=[];f=g.v(a);for(var h=f.next(),l={};!h.done;l={Jw:void 0},h=f.next()){l.Jw=h.value;h=g.v(l.Jw.XN);for(var m=h.next(),n={};!m.done;n={Gn:void 0},m=h.next())n.Gn=m.value,m=function(p,q){return function(r){return p.Gn.TO(r,q.Jw.instreamVideoAdRenderer.elementId,p.Gn.WN)}}(n,l),n.Gn.isContentVideoCompanion?b.push(Nya(c,d,e,l.Jw.instreamVideoAdRenderer.elementId,n.Gn.associatedCompositePlayerBytesLayoutId,n.Gn.adSlotLoggingData,m)):a.length>1?b.push(Oya(c,d,e,l.Jw.instreamVideoAdRenderer.elementId,n.Gn.adSlotLoggingData, function(p,q){return function(r){return p.Gn.TO(r,q.Jw.instreamVideoAdRenderer.elementId,p.Gn.WN,p.Gn.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(Oya(c,d,e,l.Jw.instreamVideoAdRenderer.elementId,n.Gn.adSlotLoggingData,m))}return b}; oJ=function(a,b,c){if(b=Qya(b)){b=g.v(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=pJ(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.zF=c)}else qz("InstreamVideoAdRenderer without externalVideoId")}}; Qya=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.R(a.sandwichedLinearAdRenderer.linearAd,WI);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.v(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.R(c,WI)&&b.push(g.R(c,WI));return b}return null}; Mya=function(a){if(a.instreamVideoAdRenderer===void 0)return qz("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.v(a.XN),c=b.next();!c.done;c=b.next()){c=c.value;if(c.TO===void 0)return!1;if(c.WN===void 0)return qz("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(a.zF===void 0||c.BI===void 0||a.zF!==c.BI&&c.BI!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(a.instreamVideoAdRenderer.elementId===void 0)return qz("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:a.zF,"matching APSR kind":c.BI}),!1}return!0}; pJ=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,zF:void 0,adVideoId:b,XN:[]});return a.get(b)}; qJ=function(a,b,c,d,e,f,h,l,m){e?pJ(a,e).XN.push({xma:b,BI:c,isContentVideoCompanion:d,WN:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,TO:m}):qz("Companion AdPlacementSupportedRenderer without adVideoId")}; Rya=function(a){var b,c=(b=jD(a.Aa,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=jD(a.Aa,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=jD(a.Aa,"metadata_type_content_cpn"),f=jD(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),h=jD(a.Aa,"metadata_type_player_underlay_renderer"),l=jD(a.Aa,"metadata_type_ad_placement_config"),m=jD(a.Aa,"metadata_type_video_length_seconds");var n=eD(a.Aa,"metadata_type_layout_enter_ms")&&eD(a.Aa, "metadata_type_layout_exit_ms")?(jD(a.Aa,"metadata_type_layout_exit_ms")-jD(a.Aa,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Pq:d,contentCpn:e,zS:c,YN:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,QK:n,inPlayerLayoutId:jD(a.Aa,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jD(a.Aa,"metadata_type_linked_in_player_slot_id")}}; Uya=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){d=sE(d,"SLOT_TYPE_PLAYER_BYTES");a=Sya(e,a,h,c,d,m,n);if(a instanceof X)return a;var x;n=(x=jD(a.Aa,"metadata_type_fulfilled_layout"))==null?void 0:x.layoutId;if(!n)return new X("Invalid adNotify layout");b=Tya(n,e,f,c,l,b,m,p,q,r,t,u,h);return b instanceof X?b:[a].concat(g.w(b))}; Tya=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=Vya(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof X)return c;a=Wya(b,a,h,e,c);return a instanceof X?a:[].concat(g.w(a.qg),[a.qy])}; Yya=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=Vya(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof X)return b;a=Xya(a,c,f,h,d,l.dc,b);return a instanceof X?a:a.qg.concat(a.qy)}; Vya=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=rJ(d,c,n);return r instanceof hD?new X(r):n.J.U().experiments.ob("html5_refactor_in_player_slot_generation")?function(t){var u=new oI(0,[r.Cp]);t=Zya(b,r.layoutId,r.gp,c,sJ(r.playerVars,r.YB,f,m,u),r.Cp,e,u,h(t),l.get(r.gp.externalVideoId),q);u=[];if(r.gp.playerOverlay.instreamAdPlayerOverlayRenderer){var x=Rya(t);if(!x)return qz("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,qg:[]}; u=[$ya(a,x.contentCpn,x.Pq,function(E){return tJ(b,E.slotId,"core",x,pD(p,E))},x.inPlayerSlotId)].concat(g.w(u)); if(x.instreamAdPlayerUnderlayRenderer&&uJ(n)){var B=x.instreamAdPlayerUnderlayRenderer;u=[aza(a,x.contentCpn,x.Pq,function(E){return bza(b,E.slotId,B,x.adPlacementConfig,x.Pq,pD(p,E))})].concat(g.w(u))}}return{layout:t, qg:u}}:function(t){var u=new oI(0,[r.Cp]); return{layout:Zya(b,r.layoutId,r.gp,c,sJ(r.playerVars,r.YB,f,m,u),r.Cp,e,u,h(t),l.get(r.gp.externalVideoId),q),qg:[]}}}; rJ=function(a,b,c){if(!a.playerVars)return new hD("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(a.elementId==null||a.playerVars==null||a.playerOverlay==null||((d=a.playerOverlay)==null?void 0:d.instreamAdPlayerOverlayRenderer)==null&&((e=a.playerOverlay)==null?void 0:e.playerOverlayLayoutRenderer)==null||a.pings==null||a.externalVideoId==null)return new hD("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=Tr(a.playerVars);e=Number(d.length_seconds); isNaN(e)&&(e=0,qz("Expected valid length seconds in player vars but got NaN"));if(c.gf(b.kind==="AD_PLACEMENT_KIND_START")){if(a.layoutId===void 0)return new hD("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,gp:a,playerVars:d,YB:a.playerVars,Cp:e}}; sJ=function(a,b,c,d,e){a.iv_load_policy=d;b=Tr(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){qz(f)}c.dj&&(a.ctrl=c.dj);c.Kj&&(a.ytr=c.Kj);c.Mw&&(a.ytrcc=c.Mw);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.yn&&(a.vss_credentials_token_type=c.yn),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));e.j>=2&&(a.slot_pos=e.adPodIndex);a.autoplay="1";return a}; cza=function(a){var b=new Map;a=g.v(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&b.set(c.hostElementId,c);return b}; vJ=function(a){return a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; gza=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.v(a),t=r.next();!t.done;t=r.next()){t=t.value;var u;if(u=!pya(t)){var x=void 0;u=(t==null?void 0:(x=t.adSlotMetadata)==null?void 0:x.slotType)!=="SLOT_TYPE_IN_PLAYER"}if(u){x=vJ(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var B=m.gf(x),E=dza(t,n,d,c.Kp,B);if(E instanceof X)return E;var F=void 0;u={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:(F=t.adSlotMetadata.slotPhysicalPosition)!=null? F:1,Ya:"core",slotEntryTrigger:E.slotEntryTrigger,slotFulfillmentTriggers:E.slotFulfillmentTriggers,slotExpirationTriggers:E.slotExpirationTriggers};if(E=g.R(t.fulfillmentContent.fulfilledLayout,aJ)){if(!$I(E))return new X("Invalid PlayerBytesAdLayoutRenderer");B=eza(u,t.adSlotMetadata.triggerEvent,E,b,c,d,e,f,h,l,m,n,a,p,B);if(B instanceof X)return B;E=[];vJ(t)&&E.push(new cD({Au:vJ(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c.dc&&E.push(new WC({}));E.push(new aD(x));t=Object.assign({}, u,{Aa:new iD(E),fulfilledLayout:B.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push.apply(q,g.w(B.qg));q.push(t)}else if(x=g.R(t.fulfillmentContent.fulfilledLayout,cJ),E=B=void 0,((B=x)==null?void 0:(E=B.adLayoutMetadata)==null?void 0:E.layoutType)!=="LAYOUT_TYPE_PANEL_QR_CODE"||t.slotEntryTrigger!==void 0)if(x){if(!oya(x))return new X("Invalid PlayerUnderlayAdLayoutRenderer");F=x;var I=d,O=c.Kp;E=f;B=u;x=t.adSlotMetadata.triggerEvent;if(F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"){var N= g.R(F.renderingContent,bJ);if(N)if(N=g.R(N.sidePanel,nya)){var S={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Ya:"core"};I=wJ(F,I,O);x=I instanceof X?I:Object.assign({},S,{renderingContent:F.renderingContent,Cb:new Map([["impression",N.impressionPings||[]],["resume",N.resumePings||[]]])},I,{Wb:pD(E,B)(S),Aa:new iD([new bC(xJ(x))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else x=new X("DismissablePanelTextPortraitImageRenderer is missing");else x= new X("SqueezebackPlayerSidePanelRenderer is missing")}else F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.R(F.renderingContent,lya)?(N={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Ya:"core"},I=wJ(F,I,O),x=I instanceof X?I:Object.assign({},N,{renderingContent:F.renderingContent,Cb:new Map},I,{Wb:pD(E,B)(N),Aa:new iD([new bC(xJ(x))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})):x=new X("CounterfactualRenderer is missing"):F.adLayoutMetadata.layoutType=== "LAYOUT_TYPE_PANEL_QR_CODE"?(N=g.R(F.renderingContent,bJ))?g.R(N.sidePanel,mya)?(N={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Ya:"core"},I=wJ(F,I,O),x=I instanceof X?I:Object.assign({},N,{renderingContent:F.renderingContent,Cb:new Map},I,{Wb:pD(E,B)(N),Aa:new iD([new bC(xJ(x))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})):x=new X("QrCodeRenderer is missing"):x=new X("SqueezebackPlayerSidePanelRenderer is missing"):x=new X("LayoutType ["+F.adLayoutMetadata.layoutType+ "] is invalid for PlayerUnderlaySlot");if(x instanceof X)return x;t=Object.assign({},u,{Aa:new iD([]),fulfilledLayout:x,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(x=g.R(t.fulfillmentContent.fulfilledLayout,rya)){if(!gya(x))return new X("Invalid AboveFeedAdLayoutRenderer");x=fza(x,d,c.Kp,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof X)return x;t=Object.assign({},u,{Aa:new iD([]),fulfilledLayout:x,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData}); q.push(t)}else if(x=g.R(t.fulfillmentContent.fulfilledLayout,sya)){if(!MI(x.adLayoutMetadata)||!g.R(x.renderingContent,NI))return new X("Invalid BelowPlayerAdLayoutRenderer");x=fza(x,d,c.Kp,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof X)return x;t=Object.assign({},u,{Aa:new iD([]),fulfilledLayout:x,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new X("Unable to retrieve a client slot ["+u.slotType+"] from a given AdSlotRenderer")}}return q}; fza=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Ya:"core"};b=wJ(a,b,c);if(b instanceof X)return b;c=[];c.push(new bC(xJ(f)));f==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&h!==void 0&&c.push(new tC(h));return Object.assign({},l,{renderingContent:a.renderingContent,Cb:new Map([["impression",hza(a)]])},b,{Wb:pD(d,e)(l),Aa:new iD(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}; eza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){var x=wJ(c,f,e.Kp);if(x instanceof X)return x;if(g.R(c.renderingContent,WI)){m=iza([c],e,m);if(m instanceof X)return m;if(m.length!==1)return new X("Only expected one media layout.");a=jza(a,b,c,x,m[0],void 0,"core",d,f,h,l,n,r,t,u,e.Kp,q);return a instanceof X?a:{layout:a.layout,qg:a.nf?[a.nf]:[]}}var B=g.R(c.renderingContent,jya);if(B){if(!MI(c.adLayoutMetadata))return new X("Invalid ad layout metadata");if(!kya(B))return new X("Invalid sequential layout"); B=B.sequentialLayouts.map(function(E){return E.playerBytesAdLayoutRenderer}); a=kza(a,b,c.adLayoutMetadata,x,B,d,f,e,m,h,l,n,p,q,u,r,t);return a instanceof X?a:{layout:a.q7,qg:a.qg}}return new X("Not able to convert a sequential layout")}; kza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,x,B){var E=new fC({current:null}),F=iza(e,l,m);if(F instanceof X)return F;m=[];for(var I=[],O=void 0,N=0;N0&&(N.push(E),N.push(new eC(O.adPodSkipTarget))); (f=n.get(O.externalVideoId))&&N.push(new QC(f));f=N}else f=new X("Invalid vod media renderer")}if(f instanceof X)return f;a=Object.assign({},h,d,{Cb:F,renderingContent:c.renderingContent,Aa:new iD(f),Wb:pD(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.R(c.renderingContent,WI);if(!c||!VI(c))return new X("Invalid meida renderer");q=pJ(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.zF="AD_PLACEMENT_KIND_START";return t?(m=mza(r,a,m,x,p,B,u,E),m instanceof X?m:oza(a.layoutId, r)&&m?{layout:Object.assign({},a,{Aa:new iD(f.concat(new mC(m)))})}:{layout:a,nf:m}):{layout:a}}; lza=function(a,b,c,d,e){if(!$I(b))return new X("Invalid PlayerBytesAdLayoutRenderer");var f=g.R(b.renderingContent,iF);if(!f||f.durationMilliseconds===void 0)return new X("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Ya:"adapter"};d=[new SC(f.durationMilliseconds),new VC({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new bC(d), new vC("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new dC(e.Cw.adPodIndex-1));d.push(new IC(e.Cw.adPodIndex));var l;d.push(new eC((l=e.adPodSkipTarget)!=null?l:-1))}return Object.assign({},h,yJ,{renderingContent:b.renderingContent,Aa:new iD(d),Cb:f.skipPings?new Map([["skip",f.skipPings]]):new Map,Wb:pD(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})}; mza=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return n.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId}); if(a.length!==0){if(a.length!==1)return new X("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=dza(a,f,c,d,h);if(h instanceof X)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(m=a.adSlotMetadata.slotPhysicalPosition)!=null?m:1,Ya:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.R(a.fulfillmentContent.fulfilledLayout, qya);if(!m||!iya(m))return new X("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Ya:"core"};c=wJ(m,c,d);if(c instanceof X)return c;d=[];if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.w(pza(a.adSlotMetadata.triggerEvent,b)));else if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")d.push(new bC(xJ(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new X("Not able to parse an SDF InPlayer layout"); e=Object.assign({},h,c,{renderingContent:m.renderingContent,Cb:new Map,Wb:pD(e,f)(h),Aa:new iD(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Aa:new iD([])})}}; pza=function(a,b){var c=[];c.push(new bC(xJ(a)));c.push(new tC(b.layoutId));(a=jD(b.Aa,"metadata_type_player_bytes_callback_ref"))&&c.push(new yC(a));(a=jD(b.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new fC(a));(a=jD(b.Aa,"metadata_type_remote_slots_data"))&&c.push(new QC(a));(a=jD(b.Aa,"metadata_type_ad_next_params"))&&c.push(new UB(a));(a=jD(b.Aa,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new VB(a));(a=jD(b.Aa,"metadata_type_ad_pod_info"))&&c.push(new cC(a));(b= jD(b.Aa,"metadata_type_ad_video_id"))&&c.push(new gC(b));return c}; nza=function(a,b,c,d,e,f){function h(n){return zJ(b,n)} var l=d.vJ.inPlayerSlotId,m={layoutId:d.vJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ya:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:new tI(h,a),slotFulfillmentTriggers:[new DI(h,l)],slotExpirationTriggers:[new EI(h,l),new BI(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new vI(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Cb:new Map,Aa:new iD([new oC(d.vJ),new bC(d.adPlacementConfig), e]),Wb:pD(f,c)(m),adLayoutLoggingData:d.vJ.adLayoutLoggingData});return Object.assign({},c,{Aa:new iD([new NC(a)])})}; oza=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var d=g.R(c.fulfillmentContent.fulfilledLayout,cJ);if(d&&(d=g.R(d.renderingContent,bJ))&&d.associatedPlayerBytesLayoutId===a)return c}}; dza=function(a,b,c,d,e){var f=qza(nJ(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof X)return f;for(var h=[],l=g.v(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=nJ(m.value,c,d);if(m instanceof X)return m;h.push(m)}h=rza(h,e,a,b);b=[];a=g.v(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=nJ(e.value,c,d);if(e instanceof X)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}}; qza=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a instanceof pI?new nI(function(e){return zJ(d,e)},c.adSlotMetadata.slotId):a}; rza=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?a.map(function(e){return e instanceof DI?new HI(function(f){return zJ(d,f)},c.adSlotMetadata.slotId):e}):a}; wJ=function(a,b,c){for(var d=[],e=g.v(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=nJ(f.value,b,c);if(f instanceof X)return f;d.push(f)}e=[];f=g.v(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=nJ(h.value,b,c);if(h instanceof X)return h;e.push(h)}f=[];h=g.v(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=nJ(l.value,b,c);if(l instanceof X)return l;f.push(l)}h=[];a=g.v(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l= a.next()){l=nJ(l.value,b,c);if(l instanceof X)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Vc:[]}}; iza=function(a,b,c){for(var d=[],e=g.v(a),f=e.next();!f.done;f=e.next())if(f=g.R(f.value.renderingContent,WI)){if(!VI(f))return new X("Invalid vod media renderer");d.push(sza(f))}e=d.map(function(q){return q.Cp}); f=[];for(var h=0,l=0;l=2&&(E.slot_pos=B.adPodIndex);E.autoplay="1";var F,I;E=n.videoLengthSeconds;var O=n.playerVars,N=n.Cb, S=n.zt,Y=n.instreamAdPlayerOverlayRenderer,la=n.playerOverlayLayoutRenderer,oa=n.adVideoId,ba=(F=g.R(b,WI))==null?void 0:F.adLayoutLoggingData;F=(I=g.R(b,WI))==null?void 0:I.sodarExtensionData;I=ZD(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var qa={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};B={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",Cb:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"adapter",Aa:new iD([new hC(h), new CC(E),new DC(O),new GC(p),new HC(r),new IC(q),new yC({current:null}),Y&&new iC(Y),la&&new jC(la),new bC(f),new gC(oa),new cC(B),F&&new FC(F),x&&new XC(x),new JC({}),new YC(S)].filter(Fza)),Wb:e(qa),adLayoutLoggingData:ba};E=Aza(g.R(b,WI),f,h,B.layoutId,d);return{F7:B,hea:E}}}; Dza=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=Tr(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=e.instreamAdPlayerOverlayRenderer===void 0?null:e.instreamAdPlayerOverlayRenderer;var f=a.playerOverlay|| {};f=f.playerOverlayLayoutRenderer===void 0?null:f.playerOverlayLayoutRenderer;var h=c.video_id;h||(h=(h=a.externalVideoId)?h:void 0);if(!h)throw new TypeError("Expected valid video id in IVAR");if(b&&d===0){var l;b=(l=Lza[h])!=null?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Cb:a.pings?BE(a.pings):new Map,zt:AE(a.pings)}}; Eza=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||a<=0?null:a}; Cza=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{OX:b,RX:a}}; Nza=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[Mza(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=ZD(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ya:"core"},u=BE(n),x=[new BI(b.j,f)],B;var E=n==null?void 0:(B=n.activeViewTracking)==null?void 0:B.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Cb:u,layoutExitNormalTriggers:x,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[], layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:new iD([new bC(d),new YC(AE(n)),new ZC(E),new CC(h/1E3)]),Wb:p(t),adLayoutLoggingData:r}})]:new X("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})}; Pza=function(a,b,c,d,e,f,h,l){a=Oza(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=ZD(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",Cb:q,layoutExitNormalTriggers:[new AI(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:new iD([new LC(e),new bC(c)]),Wb:m(p)}}); return a instanceof X?a:[a]}; Rza=function(a,b,c,d,e,f,h){return[Qza(a,f,d,function(l){var m=l.slotId;l=h(l);m=ZD(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",Cb:new Map,layoutExitNormalTriggers:[new BI(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:new iD([new iC(e),new bC(c)]),Wb:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]}; Tza=function(a,b,c,d,e,f,h,l){a=Sza(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=ZD(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=DJ(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,EJ(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=ZD(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=DJ(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,EJ(b,n,p))):q.imageOverlayAdContentRenderer?(q=ZD(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=EJ(b,n,p),n.push(new KI(b.j,45E3,q)),n=DJ(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new hD("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new hD("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof X?a:[a]}; Wza=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new X("Expected valid duration for AdActionInterstitialRenderer."):function(p){return Uza(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 Vza(a,q,e,function(r,t){var u=r.slotId;r=h(r);u=ZD(b.B.get(),"LAYOUT_TYPE_ENDCAP", u);return CJ(b,u,t,c,r,"LAYOUT_TYPE_ENDCAP",[new oC(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}}; Xza=function(a,b,c,d){if(!c.playerVars)return new X("No playerVars available in AdIntroRenderer.");var e=Tr(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=ZD(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};return{Nf:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Cb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"adapter",Aa:new iD([new KC({}), new bC(b),new yC({current:null}),new DC(e)]),Wb:f(l)},ym:[new uI(a.j,h,["error"])],dk:[],Nz:[],Mz:[]}}}; Zza=function(a,b,c,d,e,f,h,l,m,n){n=n===void 0?!1:n;var p=AJ(e);if(!vya(e,n))return new X("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(p<=0)return new X("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=uza(a,b,e,f,c,d,h);return q instanceof X?q:function(r){return Yza(b,r.slotId,c,p,e,BJ(e),h(r),q,l,m)}}; $za=function(a,b,c,d,e,f,h,l){function m(q){return Vza(a,q,d,n)} function n(q,r){var t=q.slotId;q=h(q);t=ZD(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return CJ(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new pC(e),f],e.adLayoutLoggingData)} if(!zya(e))return new X("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=e.timeoutSeconds*1E3;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=FJ(b,r,c,p,t,new Map,q,m,void 0,GJ(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new uC(r.zL);q=new dC(l);return{Nf:{layoutId:r.layoutId,layoutType:r.layoutType,Cb:r.Cb,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:r.Ya,Aa:new iD([].concat(g.w(r.Jz),[t,q])),Wb:r.Wb,adLayoutLoggingData:r.adLayoutLoggingData},ym:[],dk:r.layoutExitMuteTriggers,Nz:r.layoutExitUserInputSubmittedTriggers,Mz:r.Vc,nf:r.nf}}}; bAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,x){a=sE(a,"SLOT_TYPE_PLAYER_BYTES");d=Sya(b,h,d,e,a,n,p);if(d instanceof X)return d;var B;h=(B=jD(d.Aa,"metadata_type_fulfilled_layout"))==null?void 0:B.layoutId;if(!h)return new X("Invalid adNotify layout");b=aAa(h,b,c,e,f,m,l,n,q,r,t,u,x);return b instanceof X?b:[d].concat(g.w(b))}; aAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=cAa(b,c,d,f,h,l,m,n,p,q,r);dAa(f)?(d=eAa(b,a),a=sE(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=ZD(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=HJ(b,d,l),b=[].concat(g.w(l.slotExpirationTriggers),[new qI(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 X?a:{qy:Object.assign({}, l,{slotExpirationTriggers:b,Aa:new iD([new NC(a.layout)]),adSlotLoggingData:e}),qg:a.qg}):e=Wya(b,a,l,e,c);return e instanceof X?e:[].concat(g.w(e.qg),[e.qy])}; gAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=cAa(a,b,c,e,f,h,m,n,p,q,r,t);dAa(e)?(e=fAa(a,c,h,l),e instanceof X?a=e:(l=sE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=ZD(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.w(e.slotExpirationTriggers),[new qI(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 X?l:{qy:{slotId:e.slotId, slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:IJ(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:JJ(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Ya:e.Ya,Aa:new iD([new aD(KJ(c)),new NC(l.layout),new cD({Au:a.Au(c)})]),adSlotLoggingData:d},qg:l.qg})):a=Xya(a,c,h,l,d,m.dc,b);return a instanceof X?a:a.qg.concat(a.qy)}; dAa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(g.R(b.value,YI))return!0;return!1}; cAa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(wH(p)&&xH(p))a:{var u=hAa(d,c,p);if(u instanceof X)t=u;else{for(var x=0,B=[],E=[],F=[],I=[],O=[],N=[],S=new zC({current:null}),Y=new fC({current:null}),la=!1,oa=[],ba=0,qa=[],P=0;P0?ba:-1;else if(wa=g.R(P,iF)){P=Wza(a,b,c,wa,f,x,l,Y,ba); if(P instanceof X){t=P;break a}P=P(r);B.push(P.Nf);E=[].concat(g.w(P.ym),g.w(E));F=[].concat(g.w(P.dk),g.w(F));P.nf&&(oa=[P.nf].concat(g.w(oa)))}else if(wa=g.R(P,YI)){if(t===void 0){t=new X("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:wa});break a}P=Zza(a,b,c,f,wa,S,l,t,x,LJ(p,"supports_multi_step_on_desktop"));if(P instanceof X){t=P;break a}P=P(r);B.push(P.Nf);P.nf&&oa.push(P.nf);E=[].concat(g.w(P.ym),g.w(E));F=[].concat(g.w(P.dk),g.w(F)); I=[].concat(g.w(P.Nz),g.w(I));O=[].concat(g.w(P.Mz),g.w(O));N=[S].concat(g.w(N))}else if(P=g.R(P,ZI)){P=$za(a,b,c,f,P,S,l,x);if(P instanceof X){t=P;break a}P=P(r);B.push(P.Nf);P.nf&&oa.push(P.nf);F=[].concat(g.w(P.dk),g.w(F))}else{t=new X("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Oy:B,layoutExitSkipTriggers:E,layoutExitUserInputSubmittedTriggers:I,Vc:O,layoutExitMuteTriggers:F,Jz:N,qg:oa}}}else a:if(x=hAa(d,c,p),x instanceof X)t=x;else{B=0;E=[];F=[];I=[];O=[];N=[];S=[]; Y=new zC({current:null});la=new fC({current:null});oa=!1;qa=[];ba=-1;u=g.v(d);for(P=u.next();!P.done;P=u.next())if(P=P.value,g.R(P,XI)){P=Xza(b,c,g.R(P,XI),l);if(P instanceof X){t=P;break a}P=P(r);E.push(P.Nf);F=[].concat(g.w(P.ym),g.w(F));I=[].concat(g.w(P.dk),g.w(I));P.nf&&(qa=[P.nf].concat(g.w(qa)))}else if(g.R(P,WI)){ba=rJ(g.R(P,WI),c,p);if(ba instanceof hD){t=new X(ba);break a}P=new oI(B,x);P=iAa(b,ba.layoutId,ba.gp,c,sJ(ba.playerVars,ba.YB,h,n,P),ba.Cp,f,P,l(r),la,m.get(ba.gp.externalVideoId), void 0,q);B++;E.push(P.Nf);F=[].concat(g.w(P.ym),g.w(F));I=[].concat(g.w(P.dk),g.w(I));oa||(S.push(la),oa=!0);ba=(ba=ba.gp.adPodSkipTarget)&&ba>0?ba:-1}else if(g.R(P,iF)){P=Wza(a,b,c,g.R(P,iF),f,B,l,la,ba);if(P instanceof X){t=P;break a}P=P(r);E.push(P.Nf);F=[].concat(g.w(P.ym),g.w(F));I=[].concat(g.w(P.dk),g.w(I));P.nf&&(qa=[P.nf].concat(g.w(qa)))}else if(g.R(P,YI)){if(t===void 0){t=new X("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.R(P, YI)});break a}P=Zza(a,b,c,f,g.R(P,YI),Y,l,t,B,LJ(p,"supports_multi_step_on_desktop"));if(P instanceof X){t=P;break a}P=P(r);E.push(P.Nf);P.nf&&qa.push(P.nf);F=[].concat(g.w(P.ym),g.w(F));I=[].concat(g.w(P.dk),g.w(I));O=[].concat(g.w(P.Nz),g.w(O));N=[].concat(g.w(P.Mz),g.w(N));S=[Y].concat(g.w(S))}else if(g.R(P,ZI)){P=$za(a,b,c,f,g.R(P,ZI),Y,l,B);if(P instanceof X){t=P;break a}P=P(r);E.push(P.Nf);P.nf&&qa.push(P.nf);I=[].concat(g.w(P.dk),g.w(I))}else{t=new X("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}t={Oy:E,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:O,Vc:N,layoutExitMuteTriggers:I,Jz:S,qg:qa}}t instanceof X?r=t:(N=r.slotId,x=t.Oy,B=t.layoutExitSkipTriggers,E=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,I=t.Jz,r=l(r),O=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N=e?e.layoutId:ZD(b.B.get(),O,N),S={layoutId:N,layoutType:O,Ya:"core"},r={layout:{layoutId:N,layoutType:O,Cb:new Map,layoutExitNormalTriggers:[new AI(b.j,N)],layoutExitSkipTriggers:B, layoutExitMuteTriggers:E,layoutExitUserInputSubmittedTriggers:F,Vc:[],Ya:"core",Aa:new iD([new AC(x)].concat(g.w(I))),Wb:r(S)},qg:t.qg});return r}}; hAa=function(a,b,c){var d=[];a=g.v(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.R(e,WI)){e=rJ(g.R(e,WI),b,c);if(e instanceof hD)return new X(e);d.push(e.Cp)}return d}; kAa=function(a,b,c,d,e,f,h,l){if(!vya(c,l===void 0?!1:l))return new X("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=AJ(c);if(m<=0)return new X("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new zC({current:null}),p=uza(a,b,c,n,d,f,h);return jAa(a,d,f,m,e,function(q,r){var t=q.slotId,u=BJ(c);q=h(q);var x,B=(x=GJ(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?x: ZD(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"core"};x=p(B,r);var E=jD(x.Aa,"metadata_type_fulfilled_layout");E||qz("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new bC(d),new SC(m),new VC(u),n];E&&u.push(new vC(E.layoutType));return{t$:{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Cb:new Map,layoutExitNormalTriggers:[new AI(b.j,B)],layoutExitSkipTriggers:[new CI(b.j,r.layoutId)], layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new JI(b.j,r.layoutId)],Vc:[],Ya:"core",Aa:new iD(u),Wb:q(t)},H9:x}})}; lAa=function(a){if(!yya(a))return!1;var b=g.R(a.adVideoStart,MJ);return b?g.R(a.linearAd,WI)&&TI(b)?!0:(qz("Invalid Sandwich with notify"),!1):!1}; mAa=function(a){if(a.linearAds==null)return!1;a=g.R(a.adStart,MJ);return a?TI(a)?!0:(qz("Invalid LASR with notify"),!1):!1}; nAa=function(a){if(!xya(a))return!1;a=g.R(a.adStart,MJ);return a?TI(a)?!0:(qz("Invalid LASR with notify"),!1):!1}; NJ=function(a,b,c,d,e,f,h,l,m){this.D=a;this.B=b;this.j=c;this.Ba=d;this.Me=e;this.C=f;this.Ha=h;this.gk=l;this.loadPolicy=m===void 0?1:m}; Dya=function(a,b,c,d,e,f,h,l,m){var n=[];if(b.length===0&&d.length===0&&c.length===0)return n;b=b.filter(UI);var p=c.filter(tya),q=d.filter(UI),r=new Map,t=cza(b),u=c.some(function(P){var wa;return(P==null?void 0:(wa=P.adSlotMetadata)==null?void 0:wa.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),x=c.some(function(P){var wa; return(P==null?void 0:(wa=P.adSlotMetadata)==null?void 0:wa.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),B=c.some(function(P){var wa; return(P==null?void 0:(wa=P.adSlotMetadata)==null?void 0:wa.slotType)==="SLOT_TYPE_IN_PLAYER"}); c=c.some(function(P){var wa,y;return(P==null?void 0:(wa=P.adSlotMetadata)==null?void 0:wa.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(P==null?void 0:(y=P.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_ABOVE_FEED"}); if(u||x||B||c)c=gza(p,b,l,e,t,a.Me.get(),a.loadPolicy,r,a.Ba.get(),a.D.get(),B),c instanceof X?qz(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.w(c));c=g.v(b);for(x=c.next();!x.done;x=c.next())x=x.value,B=oAa(a,r,x,e,f,h,u,l,t,m,p),B instanceof X?qz(B,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.w(B));pAa(a.Ba.get())||(f=qAa(a,q,e,l,t,r),n.push.apply(n,g.w(f)));if(a.C===null||h&&!l.AX){var E, F,I;a=l.dc&&b.length===1&&((E=b[0].config)==null?void 0:(F=E.adPlacementConfig)==null?void 0:F.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((I=b[0].renderer)==null?void 0:I.adBreakServiceRenderer);if(!n.length&&!a){var O,N,S,Y;qz("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":(O=b[0])==null?void 0:(N=O.config)==null?void 0:(S=N.adPlacementConfig)==null?void 0:S.kind,renderer:(Y=b[0])==null?void 0:Y.renderer})}return n}E= d.filter(UI);n.push.apply(n,g.w(Pya(r,E,a.B.get(),a.C,e,u)));if(!n.length){var la,oa,ba,qa;qz("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":(la=b[0])==null?void 0:(oa=la.config)==null?void 0:(ba=oa.adPlacementConfig)==null?void 0:ba.kind,renderer:(qa=b[0])==null?void 0:qa.renderer})}return n}; qAa=function(a,b,c,d,e,f){function h(r){return pD(a.Me.get(),r)} var l=[];b=g.v(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&lAa(p)?(qz("Found AdNotify with SandwichedLinearAdRenderer"),q=g.R(p.adVideoStart,MJ),p=g.R(p.linearAd,WI),oJ(f,n,m.config.adPlacementConfig.kind),n=void 0,q=Tya((n=q)==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ba.get(),a.Me.get()),q instanceof X?qz(q):l.push.apply(l,g.w(q))): q&&(!q.adLayoutMetadata&&mAa(q)||q.adLayoutMetadata&&nAa(q))&&(qz("Found AdNotify with LinearAdSequenceRenderer"),oJ(f,n,m.config.adPlacementConfig.kind),n=void 0,p=aAa((n=g.R(q.adStart,MJ))==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,MI(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ba.get()),p instanceof X?qz(p):l.push.apply(l,g.w(p)))}return l}; oAa=function(a,b,c,d,e,f,h,l,m,n,p){function q(E){return pD(a.Me.get(),E)} var r=c.renderer,t=c.config.adPlacementConfig,u=t.kind,x=c.adSlotLoggingData,B=l.AX&&u==="AD_PLACEMENT_KIND_START";B=f&&!B;if(r.adsEngagementPanelRenderer!=null)return qJ(b,c.elementId,u,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,I,O){var N=a.j.get(),S=E.slotId,Y=r.adsEngagementPanelRenderer;E=pD(a.Me.get(),E);return OJ(N,S,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new SB(Y),F,I,Y.impressionPings,E,r.adsEngagementPanelRenderer.adLayoutLoggingData,O)}),[]; if(r.adsEngagementPanelLayoutViewModel)return qJ(b,c.elementId,u,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,I,O){var N=a.j.get(),S=E.slotId,Y=r.adsEngagementPanelLayoutViewModel;E=pD(a.Me.get(),E);return PJ(N,S,"LAYOUT_TYPE_PANEL",new TB(Y),F,I,E,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,O)}),[]; if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Kya(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,x,d,q);qJ(b,c.elementId,u,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,I,O){var N=a.j.get(),S=E.slotId,Y=r.actionCompanionAdRenderer;E=pD(a.Me.get(),E);return OJ(N,S,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new QB(Y),F,I,Y.impressionPings,E,r.actionCompanionAdRenderer.adLayoutLoggingData,O)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Lya(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,x,d,q); qJ(b,c.elementId,u,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,I,O){var N=a.j.get(),S=E.slotId,Y=r.topBannerImageTextIconButtonedLayoutViewModel;E=pD(a.Me.get(),E);return PJ(N,S,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new RB(Y),F,I,E,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,O)})}else if(r.imageCompanionAdRenderer)qJ(b, c.elementId,u,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,I,O){var N=a.j.get(),S=E.slotId,Y=r.imageCompanionAdRenderer; E=pD(a.Me.get(),E);return OJ(N,S,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new XB(Y),F,I,Y.impressionPings,E,r.imageCompanionAdRenderer.adLayoutLoggingData,O)}); else if(r.bannerImageLayoutViewModel)qJ(b,c.elementId,u,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,I,O){var N=a.j.get(),S=E.slotId,Y=r.bannerImageLayoutViewModel;E=pD(a.Me.get(),E);return PJ(N,S,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new YB(Y),F,I,E,r.bannerImageLayoutViewModel.adLayoutLoggingData,O)}); else if(r.shoppingCompanionCarouselRenderer)qJ(b,c.elementId,u,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,I,O){var N=a.j.get(),S=E.slotId,Y=r.shoppingCompanionCarouselRenderer;E=pD(a.Me.get(),E);return OJ(N,S,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new ZB(Y),F,I,Y.impressionPings,E,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,O)}); else if(r.adBreakServiceRenderer){if(!Iya(c))return[];if(u==="AD_PLACEMENT_KIND_PAUSE")return Hya(a.B.get(),t,x,c.renderer.adBreakServiceRenderer,d);if(u!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&u!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Gya(a.B.get(),t,x,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.gk)return new X("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.dc||qz("Received non-live cue point triggered AdBreakServiceRenderer", void 0,void 0,{kind:u,adPlacementConfig:t,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.dc),clientPlaybackNonce:l.clientPlaybackNonce});rAa(a.gk,{adPlacementRenderer:c,contentCpn:d,Kp:e});if(u==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!a.Ha)return new X("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no playerControlsApiProvider set for interface");e=a.Ha.get().getCurrentTimeSec(1,!1);return sAa(a.B.get(),c.renderer.adBreakServiceRenderer,t,e,d,x,f)}}else{if(r.clientForecastingAdRenderer)return Pza(a.B.get(), a.j.get(),t,x,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return Tza(a.B.get(),a.j.get(),t,x,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return Rza(a.B.get(),a.j.get(),t,x,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&B)return Iza(a.B.get(),a.j.get(),c,d,q,n,!a.Ba.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!B){if(h)return[];oJ(b,r,u);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!xya(r.linearAdSequenceRenderer))return new X("Received invalid LinearAdSequenceRenderer.")}else if(r.linearAdSequenceRenderer.linearAds== null)return new X("Received invalid LinearAdSequenceRenderer.");if(g.R(r.linearAdSequenceRenderer.adStart,MJ)){qz("Found AdNotify in LinearAdSequenceRenderer");c=g.R(r.linearAdSequenceRenderer.adStart,MJ);if(!hya(c))return new X("Invalid AdMessageRenderer.");f=r.linearAdSequenceRenderer.linearAds;return bAa(a.D.get(),a.B.get(),a.j.get(),a.Me.get(),t,x,c,MI(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,e,l,q,m,a.loadPolicy,a.Ba.get())}return gAa(a.B.get(), a.j.get(),t,x,r.linearAdSequenceRenderer.linearAds,MI(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,q,m,a.loadPolicy,a.Ba.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!B){if(h)return[];oJ(b,r,u);return Yya(a.B.get(),a.j.get(),t,x,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Ba.get(),a.Me.get(),p)}if(r.instreamSurveyAdRenderer)return kAa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,x,d,q,LJ(a.Ba.get(),"supports_multi_step_on_desktop")); if(r.sandwichedLinearAdRenderer!=null)return yya(r.sandwichedLinearAdRenderer)?g.R(r.sandwichedLinearAdRenderer.adVideoStart,MJ)?(qz("Found AdNotify in SandwichedLinearAdRenderer"),c=g.R(r.sandwichedLinearAdRenderer.adVideoStart,MJ),hya(c)?(f=g.R(r.sandwichedLinearAdRenderer.linearAd,WI))?Uya(c,f,t,a.D.get(),a.B.get(),a.j.get(),a.Me.get(),x,d,e,l,q,m,a.loadPolicy,a.Ba.get()):new X("Missing IVAR from Sandwich"):new X("Invalid AdMessageRenderer.")):gAa(a.B.get(),a.j.get(),t,x,[r.sandwichedLinearAdRenderer.adVideoStart, r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Ba.get()):new X("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return l=LJ(a.Ba.get(),"enable_h5_shorts_ad_terminal_events")&&l.vk,Nza(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,x,d,e,l,q)}}return[]}; QJ=function(a,b,c,d,e,f,h,l){g.K.call(this);var m=this;this.B=a;this.C=b;this.yf=d;this.Ha=e;this.Ba=f;this.Oa=h;this.Fc=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)})}; rAa=function(a,b){if(a.j)qz("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.v(a.yf.get().IM);for(var c=b.next();!c.done;c=b.next())tAa(a,a.j,c.value)}}; tAa=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Ba.get().J.U().yc()&&UH(a.Oa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Ch.toFixed(3));rE(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=RJ(a.Ba.get()),n=a.Oa;if(e.Ba.get().J.U().experiments.ob("enable_smearing_expansion_dai")){var p=g.qD(e.Ba.get().J.U().experiments, "max_prefetch_window_sec_for_livestream_optimization");var q=g.qD(e.Ba.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Zm:uAa(c),XB:!1,cueProcessedMs:d*1E3};var r=c.startSecs+c.Ch;if(d===0)m.Qn=new Dp(0,r*1E3);else{q=c.startSecs-q;var t=q-d;m.Qn=t<=0?new Dp(q*1E3,r*1E3):new Dp(Math.floor(d+Math.random()*Math.min(t,p))*1E3,r*1E3)}p=m}else p={Zm:uAa(c),XB:!1},r=c.startSecs+c.Ch,c.startSecs<=d?m=new Dp((c.startSecs-4)*1E3,r*1E3):(q=Math.max(0,c.startSecs-d-10),m=new Dp(Math.floor(d+ Math.random()*(m?d===0?0:Math.min(q,5):q))*1E3,r*1E3)),p.Qn=m;f=mJ(e,f,h,p,l,[new BC(c)]);e.Ba.get().J.U().experiments.ob("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Qn.start/1E3-d,n=c.startSecs-d,(h=h.J.Uc())!=null&&(h=h.pc(),h.qoe&&(h=h.qoe,h.provider.X.L("html5_add_dai_smearing_to_qoe")&&(l=g.SJ(h.provider)*1E3,p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(n*1E3).toFixed(0)),h.j.daism=p)))):UH(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Qn.start/1E3- d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})}; TJ=function(a){var b,c=(b=jD(a.Aa,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=jD(a.Aa,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=jD(a.Aa,"metadata_type_content_cpn"),f=jD(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),h=jD(a.Aa,"metadata_type_player_overlay_layout_renderer"),l=jD(a.Aa,"metadata_type_player_underlay_renderer"),m=jD(a.Aa,"metadata_type_ad_placement_config"),n=jD(a.Aa,"metadata_type_video_length_seconds"); var p=eD(a.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?jD(a.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):eD(a.Aa,"metadata_type_layout_enter_ms")&&eD(a.Aa,"metadata_type_layout_exit_ms")?(jD(a.Aa,"metadata_type_layout_exit_ms")-jD(a.Aa,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Pq:d,contentCpn:e,zS:c,YN:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,QK:p,inPlayerLayoutId:jD(a.Aa,"metadata_type_linked_in_player_layout_id"), inPlayerSlotId:jD(a.Aa,"metadata_type_linked_in_player_slot_id")}}; wAa=function(a,b){return vAa(a,b)}; xAa=function(a,b){b=vAa(a,b);if(!b)return null;var c;b.QK=(c=jD(a.Aa,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return b}; vAa=function(a,b){var c,d=(c=jD(a.Aa,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!d)return null;c=cwa(a,b);return{R6:bwa(a,b),adPlacementConfig:jD(a.Aa,"metadata_type_ad_placement_config"),U6:c,contentCpn:jD(a.Aa,"metadata_type_content_cpn"),inPlayerLayoutId:jD(a.Aa,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jD(a.Aa,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:jD(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0, instreamAdPlayerUnderlayRenderer:void 0,QK:void 0,zS:d,Pq:a.layoutId,videoLengthSeconds:jD(a.Aa,"metadata_type_video_length_seconds")}}; UJ=function(a,b,c,d,e,f,h,l,m){g.K.call(this);this.D=a;this.K=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Me=h;this.Ba=l;this.Sa=m;this.jh=!0}; yAa=function(a,b,c){return aza(a.j.get(),b.contentCpn,b.Pq,function(d){return bza(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Pq,pD(a.Me.get(),d))})}; VJ=function(a,b,c,d,e,f,h,l){g.K.call(this);this.B=a;this.j=b;this.C=c;this.Ba=d;this.D=e;this.Sa=f;this.Ha=h;this.zc=l}; WJ=function(a){g.K.call(this);this.j=a}; rE=function(a,b,c,d){a.j().Rg(b,d);c=c();a=a.j();a.Qb.xI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.v(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Qb.Tj("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Qb.Tj("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.Qb(c.slotId))throw new X("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(yD(e,c))throw new X("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.oh.St.has(c.slotType))throw new X("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.oh.yv.has(c.slotType))throw new X("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");PD(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);PD(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", c.slotFulfillmentTriggers);PD(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=KD(f,h);if(yD(f,c))throw new X("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new Wua(c));f.j.set(h,l)}catch(la){la instanceof X&&la.al?(d.Qb.hm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",la.al,c),qz(la,c,void 0,void 0,la.Dw)):(d.Qb.hm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", c),qz(la,c));break a}yD(d.j,c).K=!0;try{var m=d.j,n=yD(m,c),p=c.slotEntryTrigger,q=m.oh.xn.get(p.triggerType);q&&(q.Kl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ca.set(p.triggerId,q));for(var r=g.v(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var u=t.value,x=m.oh.xn.get(u.triggerType);x&&(x.Kl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",u,c,null),n.qa.set(u.triggerId,x))}for(var B=g.v(c.slotExpirationTriggers),E=B.next();!E.done;E=B.next()){var F=E.value,I=m.oh.xn.get(F.triggerType);I&&(I.Kl("TRIGGER_CATEGORY_SLOT_EXPIRATION", F,c,null),n.Y.set(F.triggerId,I))}var O=m.oh.St.get(c.slotType).get().build(m.C,c);n.N=O;var N=m.oh.yv.get(c.slotType).get().build(m.G,c);N.init();n.B=N}catch(la){la instanceof X&&la.al?(d.Qb.hm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",la.al,c),qz(la,c,void 0,void 0,la.Dw)):(d.Qb.hm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),qz(la,c));vD(d,c,!0);break a}d.Qb.Tj("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Sg(c);for(var S=g.v(d.B),Y=S.next();!Y.done;Y= S.next())Y.value.Sg(c);BD(d,c)}}; XJ=function(a,b,c,d,e){g.K.call(this);var f=this;this.B=a;this.C=b;this.Pc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ma()||d.get().removeListener(f)})}; Bya=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.v(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof xI?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):qz("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new Dp(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Pc.get().addCueRange(c,d.start,d.end,!1,a);YJ(a.context.Ba.get())&&(b=d.start,d=d.end,e={},a.context.Op.Dl("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))}; ZJ=function(){g.K.apply(this,arguments);this.jh=!0;this.gj=new Map;this.j=new Map}; $J=function(a,b){a=g.v(a.gj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; aK=function(a,b){a=g.v(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}qz("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Qb(b)),layoutId:b})}; zAa=function(){this.j=new Map}; AAa=function(a,b){this.callback=a;this.slot=b}; bK=function(){}; BAa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c}; CAa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.B=!1;this.j=0}; DAa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c}; cK=function(a){this.Ha=a}; dK=function(a){g.K.call(this);this.sN=a;this.Ub=new Map}; eK=function(a,b){for(var c=[],d=g.v(a.Ub.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof JI&&f.triggeringLayoutId===b&&c.push(e)}c.length?HD(a.sN(),c):qz("Survey is submitted but no registered triggers can be activated.")}; fK=function(a,b,c){dK.call(this,a);var d=this;this.Ba=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(d)})}; gK=function(a){g.K.call(this);this.j=a;this.jh=!0;this.Ub=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set}; hK=function(a){g.K.call(this);this.j=a;this.Ub=new Map}; iK=function(a,b){for(var c=[],d=g.v(a.Ub.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&HD(a.j(),c)}; jK=function(a,b,c){g.K.call(this);var d=this;this.j=a;this.context=c;this.Ub=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(d)})}; kK=function(a,b,c,d,e){g.K.call(this);var f=this;this.B=a;this.Pc=b;this.Ha=c;this.Sa=d;this.context=e;this.jh=!0;this.Ub=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ma()||c.get().removeListener(f)})}; EAa=function(a,b,c,d,e,f,h,l,m,n){if(a.Sa.get().De(1).clientPlaybackNonce!==m)throw new X("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Ub.set(c.triggerId,{jE:new LI(b,c,d,e),kJ:f});a.Pc.get().addCueRange(f,h,l,n,a);YJ(a.context.Ba.get())&&(m={},a.context.Op.Dl("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=e==null?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))}; FAa=function(a,b){a=g.v(a.Ub.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;if(b===d.kJ)return c}return""}; lK=function(a,b){g.K.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=((d=b.get().Qw)==null?void 0:d.slotId)||null}; GAa=function(a,b){var c=[];a=g.v(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; mK=function(a){g.K.call(this);this.j=a;this.jh=!0;this.Ub=new Map}; LH=function(a,b,c){b=b.layoutId;for(var d=[],e=g.v(a.Ub.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof AI){var h;if(h=f.trigger.layoutId===b){h=c;var l=Pua.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&HD(a.j(),d)}; nK=function(a){g.K.call(this);this.j=a;this.jh=!0;this.Ub=new Map}; oK=function(a){g.K.call(this);this.C=a;this.jh=!0;this.Ub=new Map;this.j=new Map;this.B=new Map}; HAa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.v(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c}; pK=function(a){g.K.call(this);this.j=a;this.Ub=new Map}; IAa=function(a,b){for(var c=[],d=g.v(a.Ub.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof nI&&e.trigger.slotId===b&&c.push(e);c.length>=1&&HD(a.j(),c)}; JAa=function(a,b){var c={slotId:sE(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ya:"surface",Aa:new iD([])},d=Object,e=d.assign;b=ZD(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Cb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"surface",Aa:new iD([]), Wb:Jua(!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,{M9:!0,slot:c,layout:b})}; Fya=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Zm:new Dp(-0x8000000000000,-0x8000000000000),XB:d},c!=null&&(d.Qn=new Dp(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Zm:new Dp(0x7ffffffffffff,0x8000000000000),XB:d},c!=null&&(d.Qn=new Dp(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||qz("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||qz("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);e===-1&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new X("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={Zm:new Dp(a,e),XB:d};if(c!=null){a=Math.max(0,a-c);if(a===e)return d;d.Qn=new Dp(a,e)}return d; default:return new X("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}}; uAa=function(a){var b=a.startSecs*1E3;return new Dp(b,b+a.Ch*1E3)}; KAa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.v(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,c!=null&&(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;a=g.v(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if(((c=g.R(b.value,lJ))==null?void 0:(d=c.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; qK=function(a){this.Ba=a;this.B=new Map;this.j=new Map;this.C=new Map}; sE=function(a,b){if(rK(a.Ba.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.ow(16)}; ZD=function(a,b,c){if(rK(a.Ba.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.ow(16)}; zJ=function(a,b){if(rK(a.Ba.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.ow(16)}; LAa=function(a){var b=[new tC(a.Pq),new xC(a.zS),new bC(a.adPlacementConfig),new CC(a.videoLengthSeconds),new RC(a.QK)];a.instreamAdPlayerOverlayRenderer&&b.push(new iC(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new jC(a.playerOverlayLayoutRenderer));a.YN&&b.push(new fC(a.YN));return b}; MAa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:ZD(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?(h=c.instreamAdPlayerOverlayRenderer)==null?void 0:h.adLayoutLoggingData:(l=c.playerOverlayLayoutRenderer)==null?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Cb:new Map,layoutExitNormalTriggers:[new vI(function(n){return zJ(f, n)},c.Pq)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:b,Aa:d,Wb:e(h),adLayoutLoggingData:m}}; sK=function(a,b){var c=this;this.B=a;this.Ba=b;this.j=function(d){return zJ(c.B.get(),d)}}; bza=function(a,b,c,d,e,f){c=new iD([new kC(c),new bC(d)]);b=ZD(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",Cb:new Map,layoutExitNormalTriggers:[new vI(function(h){return zJ(a.B.get(),h)},e)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:c,Wb:f(d),adLayoutLoggingData:void 0}}; tJ=function(a,b,c,d,e){var f=LAa(d);return MAa(b,c,d,new iD(f),e,a.B.get())}; NAa=function(a,b,c,d,e){var f=LAa(d);f.push(new $B(d.R6));f.push(new aC(d.U6));return MAa(b,c,d,new iD(f),e,a.B.get())}; OJ=function(a,b,c,d,e,f,h,l,m,n){b=ZD(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Ya:"core"},q=new Map;h&&q.set("impression",h);h=[new yI(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new uI(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Cb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:new iD([d,new bC(f),new tC(e)]),Wb:l(p),adLayoutLoggingData:m}}; PJ=function(a,b,c,d,e,f,h,l,m){b=ZD(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Ya:"core"},p=[new yI(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new uI(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Cb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:new iD([d,new bC(f),new tC(e)]),Wb:h(n),adLayoutLoggingData:l}}; EJ=function(a,b,c){var d=[];d.push(new zI(a.j,c));b&&d.push(b);return d}; DJ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Ya:"core"};return{layoutId:b,layoutType:c,Cb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new qI(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:new iD([new WB(d),new bC(e)]),Wb:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; CJ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Ya:"core"};return{layoutId:b,layoutType:f,Cb:new Map,layoutExitNormalTriggers:[new vI(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:new iD([new bC(d)].concat(g.w(h))),Wb:e(m),adLayoutLoggingData:l}}; GJ=function(a,b,c,d){if(a.Ba.get().gf(b.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)qz("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c}; Uza=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=FJ(a,b,c,e,f,h,l,m,q,GJ(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Jz;c=new uC(a.zL);d=a.layoutExitSkipTriggers;n>0&&(b.push(c),b.push(new eC(n)),d=[]);b.push(new dC(p));return{Nf:{layoutId:a.layoutId,layoutType:a.layoutType,Cb:a.Cb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:a.Ya,Aa:new iD(b),Wb:a.Wb,adLayoutLoggingData:a.adLayoutLoggingData}, ym:d,dk:a.layoutExitMuteTriggers,Nz:a.layoutExitUserInputSubmittedTriggers,Mz:a.Vc,nf:a.nf}}; Yza=function(a,b,c,d,e,f,h,l,m,n){b=FJ(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,GJ(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); a=new JI(a.j,b.zL);c=new uC(b.zL);n=new dC(n);return{Nf:{layoutId:b.layoutId,layoutType:b.layoutType,Cb:b.Cb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:b.Ya,Aa:new iD([].concat(g.w(b.Jz),[c,n])),Wb:b.Wb,adLayoutLoggingData:b.adLayoutLoggingData},ym:b.layoutExitSkipTriggers,dk:b.layoutExitMuteTriggers,Nz:[].concat(g.w(b.layoutExitUserInputSubmittedTriggers),[a]),Mz:b.Vc,nf:b.nf}}; FJ=function(a,b,c,d,e,f,h,l,m,n,p){b=n!=null?n:ZD(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"adapter"};l=l(b);var q=jD(l.Aa,"metadata_type_fulfilled_layout");q||qz("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new bC(c),new SC(d),new VC(e)];q&&c.push(new vC(q.layoutType));p&&c.push(new IC(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Cb:f,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[new CI(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"adapter",Jz:c,Wb:h(n),adLayoutLoggingData:m,nf:l,zL:r}}; Zya=function(a,b,c,d,e,f,h,l,m,n,p){a=OAa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Cb:a.Cb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Vc:a.Vc,Ya:a.Ya,Aa:new iD(a.pX),Wb:a.Wb,adLayoutLoggingData:a.adLayoutLoggingData}}; iAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=OAa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.pX;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(e.push(n),e.push(new eC(c.adPodSkipTarget)),d=[]);e.push(new dC(l.adPodIndex));c.isCritical&&(d=[new uI(a.j,b.layoutId,["error"])].concat(g.w(d)));return{Nf:{layoutId:b.layoutId,layoutType:b.layoutType,Cb:b.Cb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:b.Ya,Aa:new iD(e), Wb:b.Wb,adLayoutLoggingData:b.adLayoutLoggingData},ym:d,dk:b.layoutExitMuteTriggers,Nz:b.layoutExitUserInputSubmittedTriggers,Mz:b.Vc}}; OAa=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 bC(e),new cC(m),new gC(d.externalVideoId),new hC(l),new VC({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new DC(f),new yC({current:null}),new CC(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new iC(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new jC(h)); q&&e.push(new EC(q));(q=d.playerUnderlay)&&e.push(new kC(q));l=sE(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:h==null?void 0:h.layoutId)?q:ZD(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new uC(q));e.push(new wC(l));e.push(new IC(m.adPodIndex));d.adNextParams&&e.push(new UB(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new nC(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new VB(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new TC(d.legacyInfoCardVastExtension)); d.sodarExtensionData&&e.push(new FC(d.sodarExtensionData));p&&e.push(new QC(p));e.push(new YC(AE(d.pings)));m=BE(d.pings);if(r){a:{r=g.v(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(f=g.R(p.fulfillmentContent.fulfilledLayout,cJ))&&(f=g.R(f.renderingContent,bJ))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new lC(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Cb:m,layoutExitNormalTriggers:[new AI(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds? [new CI(a.j,q)]:[],layoutExitMuteTriggers:[new CI(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:c,pX:e,Wb:n(t),adLayoutLoggingData:d.adLayoutLoggingData}}; Kza=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return fD(p,[],["LAYOUT_TYPE_MEDIA"])})||qz("Unexpect subLayout type for DAI composite layout"); b=ZD(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",Cb:new Map,layoutExitNormalTriggers:[new wI(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Aa:new iD([new GC(c),new HC(l),new AC(d),new bC(e),new MC(f),new JC({}),new $C(m)]),Wb:h(n)}}; Fza=function(a){return a!=null}; tK=function(a,b,c){var d=this;this.B=a;this.C=b;this.Ba=c;this.j=function(e){return zJ(d.B.get(),e)}}; sAa=function(a,b,c,d,e,f,h){if(!c.highCcvPrefetchConfig)return new X("AdPlacementConfig for Live Prefetch is missing high_ccv_prefetch_config");c=c.highCcvPrefetchConfig;d*=1E3;var l=[];if(!c.breakLengthMs)return new X("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var m=g.v(c.breakLengthMs),n=m.next();!n.done;n=m.next())if(n=n.value,Number(n)>0){var p=d+Number(c.startTimeOffsetMs),q=p+Number(c.cacheFetchSmearingDurationMs);p={Zm:new Dp(q,q+Number(n)),XB:!1,Qn:new Dp(Math.floor(p+ Math.random()*Number(c.cacheFetchSmearingDurationMs)),q)};q=[];q.push(new dD({breakLengthMs:Number(n)}));h&&q.push(new JC({}));l.push(mJ(a,b,e,p,f,q))}return l}; mJ=function(a,b,c,d,e,f){f=f===void 0?[]:f;var h=sE(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Qn&&d.Qn.start!==d.Zm.start&&l.push(new xI(a.j,c,new Dp(d.Qn.start,d.Zm.start),!1));l.push(new xI(a.j,c,new Dp(d.Zm.start,d.Zm.end),d.XB));d={getAdBreakUrl:b.getAdBreakUrl,KS:d.Zm.start,JS:d.Zm.end,cueProcessedMs:d.cueProcessedMs};b=new GI(a.j,h);f=[new OC(d)].concat(g.w(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new BI(a.j, c),new EI(a.j,h),new FI(a.j,h)],Ya:"core",Aa:new iD(f),adSlotLoggingData:e}}; QAa=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next())d.push(PAa(a,b,e.value));return d}; PAa=function(a,b,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===a?c.clone(b):c}; tza=function(a,b,c,d,e){return RAa(a,b,c,d,e)}; Vza=function(a,b,c,d){var e=sE(a.B.get(),"SLOT_TYPE_IN_PLAYER");return RAa(a,e,b,c,d)}; RAa=function(a,b,c,d,e){var f=new tI(a.j,c),h=[new DI(a.j,b)];a=[new EI(a.j,b),new BI(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Aa:new iD([new NC(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}}; jAa=function(a,b,c,d,e,f){var h=sE(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=sE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=ZD(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=uK(a,b,c,d);var n=[new DI(a.j,h)];c=[new EI(a.j,h),new BI(a.j,c),new qI(a.j,m)];if(d instanceof X)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.t$;l=l.H9;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:IJ(a,b,h,d),slotFulfillmentTriggers:JJ(a,b,h,n),slotExpirationTriggers:c,Ya:"core",Aa:new iD([new NC(f),new aD(KJ(b)),new cD({Au:a.Au(b)})]),adSlotLoggingData:e},l]}; KJ=function(a){return a.kind==="AD_PLACEMENT_KIND_START"}; $ya=function(a,b,c,d,e){e=e?e:sE(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new tI(a.j,c);var f=[new DI(a.j,e)];a=[new BI(a.j,b),new EI(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Aa:new iD([new NC(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}}; aza=function(a,b,c,d){var e=sE(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new tI(a.j,c);var f=[new DI(a.j,e)];a=[new BI(a.j,b),new EI(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Aa:new iD([new NC(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}}; Sya=function(a,b,c,d,e,f,h){var l=sE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=ZD(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=SAa(a,d,f,h,m);if(d instanceof X)return d;h=[new DI(a.j,l)];e=[new BI(a.j,f),new DI(a.j,e),new II(a.j,e)];c=pD(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", Cb:new Map,layoutExitNormalTriggers:[new dya(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new fya(a.j,m,b.durationMs)],Vc:[new eya(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ya:"core",Aa:new iD([new UC(b)]),Wb:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Aa:new iD([new NC(b)])}}; Sza=function(a,b,c,d,e,f){b=uK(a,b,c,d);if(b instanceof X)return b;var h=b instanceof xI?new aya(a.j,c,b.j):null;d=sE(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new DI(a.j,d)];a=[new BI(a.j,c),new EI(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 hD?new X(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a, Ya:"core",Aa:new iD([new NC(f)]),adSlotLoggingData:e}}; Qza=function(a,b,c,d){var e=sE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new pI(a.j,b),h=[new HI(a.j,e)];a=[new BI(a.j,b),new EI(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Aa:new iD([new NC(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}}; zza=function(a,b,c,d){var e=sE(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new tI(a.j,c);var f=[new DI(a.j,e)],h=[new EI(a.j,e),new BI(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 DI(a.j,e)],slotExpirationTriggers:[new BI(a.j,b),new EI(a.j,e)],Ya:"core",Aa:new iD([new NC(d(f))])}}; wza=function(a,b,c,d,e){var f=sE(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new sI(a.j,d,c);d=[new DI(a.j,f)];a=[new BI(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Aa:new iD([new NC(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}}; Oya=function(a,b,c,d,e,f){var h=sE(a.B.get(),b);return vK(a,h,b,new tI(a.j,d),[new BI(a.j,c),new EI(a.j,h),new uI(a.j,d,["error"])],e,f)}; Nya=function(a,b,c,d,e,f,h){var l=sE(a.B.get(),b);return vK(a,l,b,new uI(a.j,e,["normal"]),[new BI(a.j,c),new EI(a.j,l),new uI(a.j,d,["error"])],f,h)}; Jya=function(a,b,c,d,e){var f=sE(a.B.get(),b);return vK(a,f,b,new pI(a.j,c),[new BI(a.j,c),new EI(a.j,f)],d,e)}; Mza=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=sE(a.B.get(),c);b=new pI(a.j,b);var h=[new DI(a.j,f)];a=[new EI(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Aa:new iD([new NC(e({slotId:f,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}}; Gza=function(a,b,c,d){var e=sE(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new Yxa(a.j),h=[new HI(a.j,e)];b=[new BI(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Ba.get();return!g.ED(a.J.U())&&a.J.U().experiments.ob("enable_pacf_slot_asde_player_byte_h5")||g.ED(a.J.U())&&a.J.U().experiments.ob("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Aa:new iD([new NC(d(l)),new JC({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Aa:new iD([new NC(d(l)),new JC({})])}}; eAa=function(a,b){return pAa(a.Ba.get())?new uI(a.j,b,["normal","error","skipped"]):new uI(a.j,b,["normal"])}; Wya=function(a,b,c,d,e){b=eAa(a,b);a=HJ(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 X?e:{qy:Object.assign({},a,{Aa:new iD([new NC(e.layout)]),adSlotLoggingData:d}),qg:e.qg}}; Xya=function(a,b,c,d,e,f,h){c=fAa(a,b,c,d);if(c instanceof X)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 X)return h;d=[new aD(KJ(b)),new NC(h.layout),new cD({Au:a.Au(b)})];f&&d.push(new WC({}));return{qy:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:IJ(a, b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:JJ(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya,Aa:new iD(d),adSlotLoggingData:e},qg:h.qg}}; IJ=function(a,b,c,d){return a.Ba.get().gf(KJ(b))?new nI(a.j,c):d}; JJ=function(a,b,c,d){return a.Ba.get().gf(KJ(b))?[new HI(a.j,c)]:d}; HJ=function(a,b,c){var d=sE(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new DI(a.j,d)];a=[new EI(a.j,d),new BI(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Ya:"core"}}; fAa=function(a,b,c,d){b=uK(a,b,c,d);return b instanceof X?b:HJ(a,b,c)}; Oza=function(a,b,c,d,e,f){var h=sE(a.B.get(),"SLOT_TYPE_FORECASTING");b=uK(a,b,c,d);if(b instanceof X)return b;d=[new DI(a.j,h)];a=[new EI(a.j,h),new BI(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Aa:new iD([new NC(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}}; TAa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new pI(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Fya(b,d),a instanceof X?a:e(a.Zm,f);case "AD_PLACEMENT_KIND_END":return new rI(a.j,c,f);default:return new X("Cannot construct entry trigger",{kind:b.kind})}}; SAa=function(a,b,c,d,e){return TAa(a,b,c,d,function(f,h){return new $xa(a.j,c,f,h,e)})}; uK=function(a,b,c,d){return TAa(a,b,c,d,function(e,f){return new xI(a.j,c,e,f)})}; vK=function(a,b,c,d,e,f,h){a=[new HI(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Ya:"core",Aa:new iD([new NC(h({slotId:b,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}}; wK=function(a,b){g.K.call(this);this.Ba=a;this.j=b;this.eventCount=0}; xK=function(a,b,c,d){wK.call(this,a,b);this.Ba=a;this.Sa=c;this.context=d}; yK=function(){this.j=new Map}; zK=function(a){return window.Int32Array?new Int32Array(a):Array(a)}; FK=function(a){g.K.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!UAa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;b<256;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);AK=new Uint8Array(256);BK=zK(256);CK=zK(256);DK=zK(256);EK=zK(256);for(var f=0;f<256;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;AK[f]=e;b=e<<1^(e>>7&&283);var h=b^e;BK[f]=b<<24|e<<16|e<<8|h;CK[f]=h<<24|BK[f]>>>8;DK[f]=e<<24|CK[f]>>>8;EK[f]=e<<24|DK[f]>>>8}UAa=!0}e=zK(44);for(c= 0;c<4;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;c<44;c++)a=e[c-1],c%4||(a=(AK[a>>16&255]^d)<<24|AK[a>>8&255]<<16|AK[a&255]<<8|AK[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; VAa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;h>=0&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;n<40;)h=BK[c>>>24]^CK[d>>16&255]^DK[e>>8&255]^EK[f&255]^b[n++],l=BK[d>>>24]^CK[e>>16&255]^DK[f>>8&255]^EK[c&255]^b[n++],m=BK[e>>>24]^CK[f>>16&255]^DK[c>>8&255]^EK[d&255]^b[n++],f=BK[f>>>24]^CK[c>>16&255]^DK[d>>8&255]^EK[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=AK[c>>>24]^h>>>24;a[1]=AK[d>>16&255]^h>>16&255;a[2]=AK[e>>8&255]^ h>>8&255;a[3]=AK[f&255]^h&255;h=b[41];a[4]=AK[d>>>24]^h>>>24;a[5]=AK[e>>16&255]^h>>16&255;a[6]=AK[f>>8&255]^h>>8&255;a[7]=AK[c&255]^h&255;h=b[42];a[8]=AK[e>>>24]^h>>>24;a[9]=AK[f>>16&255]^h>>16&255;a[10]=AK[c>>8&255]^h>>8&255;a[11]=AK[d&255]^h&255;h=b[43];a[12]=AK[f>>>24]^h>>>24;a[13]=AK[c>>16&255]^h>>16&255;a[14]=AK[d>>8&255]^h>>8&255;a[15]=AK[e&255]^h&255}; IK=function(){if(!GK&&!g.Ou){if(HK)return HK;var a;HK=(a=window.crypto)==null?void 0:a.subtle;var b,c,d;if(((b=HK)==null?0:b.importKey)&&((c=HK)==null?0:c.sign)&&((d=HK)==null?0:d.encrypt))return HK;HK=void 0}}; KK=function(){this.B=this.Et=0;this.j=Array.from({length:JK.length}).fill(0)}; WAa=function(){}; XAa=function(){this.startTimeMs=(0,g.uu)();this.j=!1}; YAa=function(){this.j=new WAa}; ZAa=function(a,b,c,d){d=d===void 0?1:d;c>=0&&(b in a.j||(a.j[b]=new KK),a.j[b].Nh(c,d))}; $Aa=function(a,b,c,d,e){var f=(0,g.uu)(),h=e?e(b):void 0,l;e=(l=h==null?void 0:h.Et)!=null?l:1;if(e!==0){var m;l=(m=h==null?void 0:h.profile)!=null?m:c;ZAa(a,l,f-d,e)}return b}; LK=function(a,b,c,d,e){if(b&&typeof b==="object"){var f=function(h){return $Aa(a,h,c,d,e)}; if("then"in b&&typeof b.then==="function")return b.then(f);if("andThen"in b&&typeof b.Yj==="function")return b.Yj(f)}return $Aa(a,b,c,d,e)}; aBa=function(){}; MK=function(a,b){this.Kd=a;this.cipher=this.Kd.exports.AES128CTRCipher_create(b.byteOffset)}; g.NK=function(a){this.D=a}; g.OK=function(a){g.K.call(this);this.B=a}; PK=function(a,b){this.j=new MK(a,b)}; QK=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;a<64;a++)this.G[a]^=92,this.C[a]^=54;this.reset()}; bBa=function(a,b,c){for(var d=a.N,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,u,x=0;x<64;)x<16?(d[x]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],u=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=u),r=q+RK[x]+u+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,x++,x<16?(d[x]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r= d[x-2],t=d[x-15],u=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=u),r=p+RK[x]+u+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,x++,x<16?(d[x]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],u=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=u),r=n+RK[x]+u+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^ ~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,x++,x<16?(d[x]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],u=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=u),r=m+RK[x]+u+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),u=q,q=l,l=u,u=p,p=h,h=u,u=n,n=f,f=u,m=e+r,e=r+t,x++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]= l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0}; dBa=function(a){var b=new Uint8Array(32),c=64-a.B;a.B>55&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=a.D*8,f=1;f<9;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;c<8;c++)b[c*4]=a.j[c]>>>24,b[c*4+1]=a.j[c]>>>16&255,b[c*4+2]=a.j[c]>>>8&255,b[c*4+3]=a.j[c]&255;cBa(a);return b}; cBa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0}; eBa=function(a){this.j=a}; fBa=function(a,b,c){a=new QK(a.j);a.update(b);a.update(c);b=dBa(a);a.update(a.G);a.update(b);b=dBa(a);a.reset();return b}; gBa=function(a){this.B=a}; hBa=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.G(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.G(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})}; iBa=function(a,b,c){a.C||(a.C=new eBa(a.B));return fBa(a.C,b,c)}; jBa=function(a,b,c){var d,e;return g.H(function(f){if(f.j==1){d=IK();if(!d)return f.return(iBa(a,b,c));g.xa(f,3);return g.G(f,hBa(a,b,c,d),5)}if(f.j!=3)return f.return(f.B);e=g.Aa(f);g.Kx(e);GK=!0;return f.return(iBa(a,b,c))})}; SK=function(){var a=kBa;var b=b===void 0?[]:b;var c=c===void 0?[]:c;b=ama.apply(null,[bma.apply(null,g.w(b))].concat(g.w(c)));this.store=dma(a,void 0,b)}; g.TK=function(a,b,c){for(var d=Object.assign({},a),e=g.v(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(l===void 0)delete d[f];else if(h===void 0)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.w(h),g.w(l)):l;else if(!Array.isArray(l)&&g.Ta(l)&&!Array.isArray(h)&&g.Ta(h))d[f]=g.TK(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Mt("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Koa:h,updateValue:l}),g.Jx(b), a}return d}; UK=function(a){var b=this;a=a===void 0?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})}; lBa=function(a,b){return a.j.length===0?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset}; VK=function(a,b){b=g.v(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)}; WK=function(a,b,c){return a.split(b).un.split(c).nK}; XK=function(a){a.D=void 0;a.B=0;a.C=0}; YK=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length}; mBa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D}; nBa=function(a,b,c){b=b===void 0?0:b;c=c===void 0?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));c<0&&(c=a.totalLength-b);a.focus(b);if(!YK(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);XK(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)}; ZK=function(a,b,c){a=nBa(a,b===void 0?0:b,c===void 0?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; $K=function(a,b,c){a=ZK(a,b===void 0?0:b,c===void 0?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c>10;f=56320|f&1023}eL[e++]=f}}f=String.fromCharCode.apply(String,eL); e<1024&&(f=f.substr(0,e));c.push(f)}return c.join("")}; hL=function(a,b){var c;if((c=gL)==null?0:c.encodeInto)return b=gL.encodeInto(a,b),b.read>6|192:((e&64512)===55296&&d+1>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}; iL=function(a){if(gL)return gL.encode(a);var b=new Uint8Array(Math.ceil(a.length*1.2)),c=hL(a,b);b.lengthc&&(b=b.subarray(0,c));return b}; jL=function(a){this.j=a;this.pos=0;this.B=-1}; kL=function(a){var b=aL(a.j,a.pos);++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=aL(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c}; lL=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){c<0&&(c=kL(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:kL(a);break;case 1:a.pos+=8;break;case 2:d=kL(a);a.pos+=d;break;case 5:a.pos+=4}}return!1}; mL=function(a,b){if(lL(a,b))return kL(a)}; nL=function(a,b){if(lL(a,b))return!!kL(a)}; oL=function(a,b){if(lL(a,b)){b=kL(a);var c=ZK(a.j,a.pos,b);a.pos+=b;return c}}; pL=function(a,b){if(a=oL(a,b))return g.fL(a)}; qL=function(a,b,c){if(a=oL(a,b))return c(new jL(new UK([a])))}; rL=function(a,b){for(var c=[];lL(a,b);)c.push(kL(a));return c.length?c:void 0}; sL=function(a,b,c){for(var d=[],e;e=oL(a,b);)d.push(c(new jL(new UK([e]))));return d.length?d:void 0}; tL=function(a,b){a=a instanceof Uint8Array?new UK([a]):a;return b(new jL(a))}; qBa=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}; rBa=function(a,b){this.Kd=b;this.pos=0;this.B=[];this.j=qBa(a===void 0?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; uL=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=a.j.length*2;c268435455){uL(a,4);for(var c=b&1073741823,d=0;d<4;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(uL(a,4);b>127;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1}; wL=function(a,b,c){c!==void 0&&(vL(a,b*8),vL(a,c))}; xL=function(a,b,c){c!==void 0&&wL(a,b,c?1:0)}; yL=function(a,b,c){c!==void 0&&(vL(a,b*8+2),b=c.length,vL(a,b),uL(a,b),a.j.set(c,a.pos),a.pos+=b)}; zL=function(a,b,c){c!==void 0&&(sBa(a,b,Math.ceil(Math.log2(c.length*4+2)/7)),uL(a,c.length*1.2),b=hL(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(uL(a,b),b=hL(c,a.j.subarray(a.pos))),a.pos+=b,tBa(a))}; sBa=function(a,b,c){c=c===void 0?2:c;vL(a,b*8+2);a.B.push(a.pos);a.B.push(c);a.pos+=c}; tBa=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}}; AL=function(a,b,c,d,e){c&&(sBa(a,b,e===void 0?3:e),d(a,c),tBa(a))}; g.BL=function(a,b,c){c=new rBa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)}; g.CL=function(a){var b=new jL(new UK([Ze(decodeURIComponent(a))]));a=pL(b,2);b=mL(b,4);var c=uBa[b];if(typeof c==="undefined")throw a=new g.Mt("Failed to recognize field number",{name:"EntityKeyHelperError",hna:b}),g.Jx(a),a;return{b8:b,entityType:c,entityId:a}}; g.DL=function(a,b){var c=new rBa;yL(c,2,iL(a));a=vBa[b];if(typeof a==="undefined")throw b=new g.Mt("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.Jx(b),b;wL(c,4,a);wL(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Xe(b))}; EL=function(a,b,c,d){if(d===void 0)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; wBa=function(a,b,c,d,e){var f=a[b];if(f==null||!f[c])return a;d=g.TK(f[c],d,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; xBa=function(a,b){a=a===void 0?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=(f=e.options)==null?void 0:f.persistenceOption;if(h&&h!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&h!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!e.entityKey)return g.Jx(Error("Missing entity key")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return g.Jx(new g.Mt("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Ac(e.payload); return EL(d,l,e.entityKey,e.payload[l])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var m=g.CL(e).entityType;l=EL(d,m,e);break a}catch(q){if(q instanceof Error){g.Jx(new g.Mt("Failed to deserialize entity key",{entityKey:e,nS:q.message}));l=d;break a}throw q;}l=void 0}return l}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return g.Jx(new g.Mt("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Ac(e.payload);var n,p;return wBa(d,l,e.entityKey, e.payload[l],(n=e.fieldMask)==null?void 0:(p=n.mergeOptions)==null?void 0:p.repeatedFieldsMergeOption)}return d},a); case "REPLACE_ENTITY":var c=b.payload;return EL(a,c.entityType,c.key,c.a8);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 EL(h,e,l,f[l])},d)},a); case "UPDATE_ENTITY":return c=b.payload,wBa(a,c.entityType,c.key,c.a8,c.Aoa);default:return a}}; FL=function(a,b,c){return a[b]?a[b][c]||null:null}; HL=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+c*60+b*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;b<=0?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=b.hours===void 0?0:b.hours;c=b.minutes===void 0?0:b.minutes;a=b.seconds===void 0?0:b.seconds;d=e>0;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(GL)?e.replace(",","\u00a0"):f.includes(GL)?e.replace(",","\u202f"):h.includes(GL)?e.replace(",","."):e;b.push(e)}d=d===void 0?!1:d;c=(["af","be","lt"].includes(GL)||d)&&c<10?yBa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=yBa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(GL)&&(c=".");return b.join(c)}; yBa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; zBa=function(a,b){var c,d;a=((c=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=c.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(c=0;ca}; QBa=function(a,b){PBa(a.program,b.Xca)&&(lB("bg_i",void 0,"player_att"),g.VL.initialize(a,function(){lB("bg_l",void 0,"player_att");UL=(0,g.uu)()},b.cspNonce))}; RBa=function(a){a=a===void 0?{}:a;return g.VL.invoke(a)}; PBa=function(a,b){return a?g.VL.isLoading()?!1:OBa(b):!1}; SBa=function(a){a=a.split("");WL.oW(a,27);WL.rM(a,3);WL.cn(a,39);WL.rM(a,1);WL.oW(a,74);WL.rM(a,1);WL.cn(a,58);WL.oW(a,31);return a.join("")}; g.XL=function(a,b){return a.Ga+"timedtext_video?ref=player&v="+b.videoId}; g.YL=function(a,b){a.feature=b}; g.TBa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.VL.isInitialized()){var d="";b.videoData&&b.videoData.vr&&(d=b.videoData.vr+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);lB("bg_v",void 0,"player_att");(d=RBa(d))?(lB("bg_s",void 0,"player_att"),c.push("r1a="+d)):(lB("bg_e",void 0,"player_att"),c.push("r1c=2"))}else lB("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.VL.getState()); return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^BB())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.Lr("CATSTAT",0)))},a); this.videoData&&this.videoData.vr?this.xr=Tr(this.videoData.vr):this.xr={}}; g.UBa=function(a){if(a.videoData&&a.videoData.vr){for(var b=[a.videoData.vr],c=g.v(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.xr[d]&&a.j[d]&&(d=a.j[d](a.xr))&&b.push(d);return b.join("&")}return null}; g.ZL=function(a,b){QBa(a,{Xca:g.qD(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})}; VBa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&a.length===3}; $L=function(a){a=a===void 0?2592E3:a;if(a>0&&!(xna()>(0,g.uu)()-a*1E3))return 0;a=g.At("yt-player-quality");if(typeof a==="string"){if(a=g.HF[a],a>0)return a}else if(a instanceof Object)return a.quality;return 0}; aM=function(){var a=g.At("yt-player-proxima-pref");return a==null?null:a}; WBa=function(){var a=g.At("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality0&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.zt("yt-player-performance-cap",d,c?2592E3:604800))}; ZBa=function(a,b){b=b===void 0?!0:b;var c=bM();return b?+c[a]||8192:c[a]}; bM=function(){return g.At("yt-player-performance-cap")||{}}; cM=function(){var a;return(a=g.At("yt-player-performance-cap-active-set"))!=null?a:[]}; $Ba=function(a){(a===void 0?0:a)?(a=cM().filter(function(b){return b.startsWith("1")}),g.zt("yt-player-performance-cap-active-set",a,2592E3)):g.zt("yt-player-performance-cap-active-set",[],2592E3)}; aCa=function(a){g.zt("yt-player-watch-later-pending",a)}; bCa=function(){return!!g.At("yt-player-headers-readable")}; cCa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}}; g.dM=function(){var a=g.At("yt-player-caption-language-preferences");return a?a:[]}; fCa=function(a,b){AL(a,2,b.yr,eM,3);AL(a,3,b.AQ,dCa,3);yL(a,4,b.onesieUstreamerConfig);yL(a,9,b.jp);AL(a,10,b.zC,fM,3);AL(a,15,b.reloadPlaybackParams,eCa,3)}; hCa=function(a,b){AL(a,1,b.formatId,gM,3);wL(a,2,b.startTimeMs);wL(a,3,b.durationMs);wL(a,4,b.qn);wL(a,5,b.Vi);AL(a,9,b.Ama,gCa,3);AL(a,11,b.Ooa,hM,1);AL(a,12,b.sS,hM,1)}; iCa=function(a,b){zL(a,1,b.videoId);wL(a,2,b.lmt)}; gCa=function(a,b){if(b.HW)for(var c=0;c>31));wL(a,16,b.X9);wL(a,17,b.detailedNetworkType);wL(a,18,b.n7);wL(a,19,b.m7);wL(a,21,b.aea);wL(a,23,b.d7);wL(a,28,b.BS);wL(a,29,b.sea);wL(a,34,b.visibility);c=b.playbackRate;if(c!==void 0){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(c!==void 0)for(vL(a,285),uL(a,4),d=0;d<4;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}wL(a,36,b.Q7); AL(a,38,b.mediaCapabilities,kCa,3);wL(a,39,b.qea);wL(a,40,b.Tw);wL(a,44,b.playerState);xL(a,46,b.N7);wL(a,48,b.Gy);wL(a,50,b.Iw);wL(a,51,b.Qy);wL(a,54,b.Dq);xL(a,56,b.A$);wL(a,57,b.s7);xL(a,58,b.Qo);wL(a,59,b.qj);wL(a,60,b.Rx);xL(a,61,b.isPrefetch);wL(a,62,b.Kz);yL(a,63,b.sabrLicenseConstraint);wL(a,64,b.Z9);wL(a,66,b.Y9);wL(a,67,b.Coa);wL(a,68,b.m$)}; kCa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c>31));zL(a,2,b.message)}; pCa=function(a,b){yL(a,1,b.MB);AL(a,2,b.Qoa,qCa,3)}; oCa=function(a,b){wL(a,1,b.type);yL(a,2,b.value)}; nCa=function(a,b){zL(a,12,b.deviceMake);zL(a,13,b.deviceModel);wL(a,16,b.clientName);zL(a,17,b.clientVersion);zL(a,18,b.osName);zL(a,19,b.osVersion)}; rCa=function(a,b){zL(a,1,b.name);zL(a,2,b.value)}; sCa=function(a,b){zL(a,1,b.url);if(b.sQ)for(var c=0;c1&&(this.G=a[1]==="2")}; mM=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.ub=e===void 0?0:e}; oM=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!nM||a.ub===b.ub)}; g.pM=function(a,b,c,d){return new mM(g.HF[a]||0,g.HF[b]||0,c,d)}; qM=function(a){if(nM&&a.ub)return!1;var b=g.HF.auto;return a.B===b&&a.j===b}; sM=function(a){return rM[a.j||a.B]||"auto"}; fDa=function(a,b){b=g.HF[b];return a.B<=b&&(!a.j||a.j>=b)}; tM=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")}; uM=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;c==null||c({ainfolen:this.j.length});b=g.v(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Xb||a.has(d.Xb.id)){var e=void 0,f=void 0,h=void 0;(h=c)==null||h({atkerr:!!d.Xb,itag:d.itag,xtag:d.j,lang:((e=d.Xb)==null?void 0:e.name)||"",langid:((f=d.Xb)==null?void 0:f.id)||""})}else e=new g.lM(d.id,d.Xb),a.add(d.Xb.id),this.audioTracks.push(e);c==null||c({atklen:this.audioTracks.length})}}; vM=function(){g.K.apply(this,arguments);this.j=null}; jDa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(wM(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.sb]=[a.info]);return n}p=gDa(b,d,l);f&&e({aftsrt:xM(p)});for(var q={},r=g.v(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var u=g.v(p[t]),x=u.next();!x.done;x=u.next()){x=x.value;var B=x.itag,E=void 0,F=t+"_"+(((E=x.video)==null?void 0:E.fps)||0);q.hasOwnProperty(F)?q[F]===!0?n[t].push(x):l[B]=q[F]:(E=yM(b,x,c,d.isLive,m),E!==!0?(h.add(t),l[B]=E, E==="disablevp9hfr"&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(x),q[F]=!0))}}f&&e({bfflt:xM(n)});for(var I in n)n.hasOwnProperty(I)&&(d=I,n[d]&&n[d][0].zg()&&(n[d]=n[d],n[d]=hDa(b,n[d],l),n[d]=iDa(n[d],l)));f&&e(l);b=g.v(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.C1;f&&e({aftflt:xM(n)});a.j=g.wc(n,function(O){return!!O.length}); return a.j}; lDa=function(a,b,c,d,e,f,h,l){l=l===void 0?!1:l;if(b.Lc&&h&&h.length>1&&!(b.qj>0||b.Y)){for(var m=b.B||!!e,n=m&&b.Nb?f:void 0,p=gDa(b,d),q=[],r=[],t={},u=0;u0&&r&&e&&(p=[h,c],B=e.concat(r).filter(function(E){return E})); if(B.length&&!b.Qo){BM(B,p);if(m){m=[];b=g.v(B);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return xs(new uM(B,a,n))}B=uDa(b);B=g.pb(B,l);if(!B){if(q[h])return f=q[h],BM(f),xs(new uM(f,a,n));m&&f({novideo:1});return ws()}b.Bc&&(B==="1"||B==="1h")&&q[c]&&(h=CM(q[B]),p=CM(q[c]),p>h?B=c:b.Dd&&p===h&&vDa(q[c])&&(B=c));B==="9"&&q.h&&CM(q.h)>CM(q["9"])&&(B="h");b.Jb&&d.isLive&&B==="("&&q.H&&CM(q["("])<1440&&(B="H");m&&f({vfmly:DM(B)});b=q[B];if(!b.length)return m&&f({novfmly:DM(B)}), ws();BM(b);return xs(new uM(b,a,n))}; nDa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c}; vDa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&wDa.has(b.itag))return!0;return!1}; DM=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}}; xM=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(DM(d));d=g.v(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")}; mDa=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.me)return l[q]="noenc",!1;if(f.zb&&p.sb==="(h"&&f.Bb)return l[q]="lichdr",!1;if(p.sb==="("||p.sb==="(h"){if(a.D&&c&&c.flavor==="widevine"){var r=p.mimeType+"; experimental=allowed";(r=!!p.me[c.flavor]&&!!c.j[r])||(l[q]=p.me[c.flavor]?"unspt":"noflv");return r}if(!EM(a,FM.CRYPTOBLOCKFORMAT)&&!a.Fa||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.me[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.me[c.flavor]? "unspt":"noflv":"nosys",!1)}); m.length&&(h[n]=m)}); d&&Object.entries(l).length&&e(l);return h}; iDa=function(a,b){var c=Dl(a,function(d,e){return e.video.fps>32?Math.min(d,e.video.width):d},Infinity); c32||d.video.widtha.K)return"max"+a.K;if(a.fb&&b.sb==="h"&&b.video&&b.video.j>1080)return"blkhigh264";if(b.sb==="(h"&&!c.K)return"enchdr";if((d===void 0?0:d)&&RF(b)&&!a.Ra)return"blk51live";if((b.sb==="MAC3"||b.sb==="mac3")&&!a.D)return"blkac3";if((b.sb==="MEAC3"||b.sb==="meac3")&&!a.G)return"blkeac3";if((b.sb==="M"||b.sb==="m")&&!a.ra)return"blkaac51";if((b.sb=== "so"||b.sb==="sa")&&!a.Ca)return"blkamb";if(!a.zb&&b.me&&b.me.fairplay&&(b.sb==="("||b.sb==="(h"||b.sb==="A"||b.sb==="MEAC3"))return"cbc";if(b.sb==="i"&&!a.Kb)return"blkiamf";var f,h;if(a.bb&&(b.sb==="1"||b.sb==="1h")&&((f=b.video)==null?0:f.j)&&((h=b.video)==null?void 0:h.j)>a.bb)return"av1cap";if((d=c.C.get(b.sb))&&d.C1>0)return e.add(b.sb),"byerr";var l;if((l=b.video)==null?0:l.fps>32){if(!c.Ga&&!EM(c,FM.FRAMERATE))return"capHfr";if(a.Xa&&b.video.j>=4320)return"blk8khfr";if(NF(b)&&a.Td&&b.me&& b.video.j>=1440)return"disablevp9hfr"}if(a.ub&&b.ub>a.ub)return"ratecap";a=xDa(c,b);return a!==!0?a:!0}; BM=function(a,b){b=b===void 0?[]:b;g.Jb(a,function(c,d){var e=d.ub-c.ub;if(!c.zg()||!d.zg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&b.length>0&&(c=b.indexOf(c.sb)+1,d=b.indexOf(d.sb)+1,f=c===0||d===0?d||-1:c-d);f||(f=e);return f})}; g.GM=function(a,b){this.B=a;this.D=b===void 0?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""}; IM=function(a){HM(a);return a.C}; JM=function(a){return a.B?a.B.startsWith("local"):a.scheme==="local"}; yDa=function(a){HM(a);return g.zc(a.j,function(b){return b!==null})}; KM=function(a){HM(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return a.path==="/videoplayback"&&b.length>1&&!!b[1]}; LM=function(a,b){b=b===void 0?!1:b;HM(a);if(a.path!=="/videoplayback"){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Ee();c=new g.ik(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&f.length>1&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.kk(c,(d.indexOf("rr")===0?"rr":"r")+e+"---"+f[1]+a),c=new g.GM(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.kk(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.kk(c,"www.youtube.com"),d=c.toString()):(c=qva(d),cE(c)&&(d=c));c=new g.GM(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c}; HM=function(a){if(a.B){if(!cE(a.B)&&!a.B.startsWith("local"))throw new g.Mt("Untrusted URL",a.B);var b=g.rk(a.B);a.scheme=b.G;a.C=b.j+(b.C!=null?":"+b.C:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.slice(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.slice(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);d>0&&e>0?(a.path=c.slice(0,e),c=c.slice(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=zDa(c);Object.assign(a.j, ADa(b.D.toString()));Object.assign(a.j,d);a.j.file==="index.m3u8"&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=String.fromCharCode(110),c=a.get(b))&&(c=BDa[0](c),a.set(b,c),BDa.length||jma(""))}}; CDa=function(a){HM(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(yDa(a)){var c=[];g.vc(a.j,function(d,e){d!==null&&c.push(e+"="+d)}); b+="?"+c.join("&")}return b}; zDa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b0?DDa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b}; DDa=function(a,b,c){if(b==="cmo"){var d;(d=c.indexOf("="))>=0?(b="cmo="+c.slice(0,d),c=c.slice(d+1)):(d=c.indexOf("%3D"))>=0&&(b="cmo="+c.slice(0,d),c=c.slice(d+3))}a[b]=c}; MM=function(a){var b=g.R(a,EDa)||a.signatureCipher;a={TY:!1,nE:"",GH:"",s:""};if(!b)return a;b=Tr(b);a.TY=!0;a.nE=b.url;a.GH=b.sp;a.s=b.s;return a}; NM=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.Zg=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Zg=m||null}; g.OM=function(){this.segments=[];this.j=null;this.B=!0;this.C=""}; FDa=function(a,b){if(b>a.Ad())a.segments=[];else{var c=ob(a.segments,function(d){return d.Pa>=b},a); c>0&&a.segments.splice(0,c)}}; PM=function(a,b,c,d,e){e=e===void 0?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.B=e)?0:8;this.dataOffset=this.offset+this.j}; QM=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b}; RM=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b}; SM=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}; TM=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b}; UM=function(a){var b=a.data;var c=a.offset+a.j;b=b.getUint32(c)*4294967296+b.getUint32(c+4);a.j+=8;return b}; VM=function(a,b){b=b===void 0?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c1?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=QM(a)<<16|RM(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=TM(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e1?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}}; dN=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.bN(a,0,1836476516))?g.cN(a):NaN}; QDa=function(a){var b=g.bN(a,0,1937011556);if(!b)return null;b=eN(a,b.dataOffset+8,1635148593)||eN(a,b.dataOffset+8,1635135537);if(!b)return null;var c=eN(a,b.dataOffset+78,1936995172),d=eN(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),QM(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=eN(a,d.dataOffset,1886547818)){var h=eN(a,d.dataOffset,1886546020),l=eN(a,d.dataOffset,2037673328);if(!l&&(l=eN(a,d.dataOffset,1836279920), !l))return null;h&&(h.skip(4),c=SM(h)/65536,f=SM(h)/65536,e=SM(h)/65536);a=GDa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new ODa(b,c,f,e,a)}return null}; eN=function(a,b,c){for(;fN(a,b);){var d=gN(a,b);if(d.type===c)return d;b+=d.size}return null}; g.bN=function(a,b,c){for(;fN(a,b);){var d=gN(a,b);if(d.type===c)return d;b=hN(d.type)?b+8:b+d.size}return null}; g.iN=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=b.getUint32(a)*4294967296+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b}; gN=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new PM(a,b,c,d)}; g.cN=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)}; RDa=function(a){a=new PM(a.data,a.offset,a.size,a.type,a.B);var b=QM(a);a.skip(7);var c=TM(a);if(b===0){b=TM(a);var d=TM(a)}else b=UM(a),d=UM(a);a.skip(2);for(var e=RM(a),f=[],h=[],l=0;l122)return!1}return!0}; hN=function(a){return a===1701082227||a===1836019558||a===1836019574||a===1835297121||a===1835626086||a===1937007212||a===1953653094||a===1953653099||a===1836475768}; SDa=function(a){a.skip(4);return{wda:VM(a,0),value:VM(a,0),Dv:TM(a),Uoa:TM(a),Xma:TM(a),id:TM(a),u_:VM(a),offset:a.offset}}; g.TDa=function(a){var b=eN(a,0,1701671783);if(!b)return null;var c=SDa(b),d=c.wda;c=aN(c.u_);if(a=eN(a,b.offset+b.size,1701671783))if(a=SDa(a),a=aN(a.u_),c&&a){b=g.v(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new ZM(c,d):null}; jN=function(a,b){for(var c=eN(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=eN(a,c.offset+c.size,b)}}; g.kN=function(a,b){for(var c=0,d=[];fN(a,c);){var e=gN(a,c);e.type===b&&d.push(e);c=hN(e.type)?c+8:c+e.size}return d}; UDa=function(a,b){var c=g.bN(a,0,1937011556),d=g.bN(a,0,1953654136);if(!c||!d||a.getUint32(c.offset+12)>=2)return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.bN(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(d!==1701733217&&d!==1701733238)return null;d=new HDa(a.byteLength+b);WM(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;WM(d,a,c.offset+16,c.size-16);WM(d,e,e.byteOffset+f.dataOffset+8,b);WM(d,a,c.offset+c.size,a.byteLength- (c.offset+c.size));c=g.v([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.bN(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.bN(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data}; VDa=function(a){var b=g.bN(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;b=eN(a,b.offset+24+(c===1701733217?28:78),1936289382);if(!b)return null;c=eN(a,b.offset+8,1935894637);if(!c||a.getUint32(c.offset+12)!==1667392371)return null;b=eN(a,b.offset+8,1935894633);if(!b)return null;b=eN(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=a.getInt8(b.offset+16+d);return c}; lN=function(a,b){this.j=a;this.pos=0;this.start=b||0}; mN=function(a){return a.pos>=a.j.byteLength}; rN=function(a,b,c){var d=new lN(c);if(!nN(d,a))return!1;d=oN(d);if(!pN(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=qN(d,!0);d=a+(d.start+d.pos-b)+e;d=d>9?WDa(d-9,8):WDa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;bc;e++)c=c*256+wN(a),d*=128;return b?c-d:c}; tN=function(a){var b=qN(a,!0);a.pos+=b}; ZDa=function(a){if(!pN(a,440786851,!0))return null;var b=a.pos;qN(a,!1);var c=qN(a,!0)+a.pos-b;a.pos=b+c;if(!pN(a,408125543,!1))return null;qN(a,!0);if(!pN(a,357149030,!0))return null;var d=a.pos;qN(a,!1);var e=qN(a,!0)+a.pos-d;a.pos=d+e;if(!pN(a,374648427,!0))return null;var f=a.pos;qN(a,!1);var h=qN(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}; xN=function(a){var b=a.pos;a.pos=0;var c=1E6;nN(a,[408125543,357149030,2807729])&&(c=sN(a));a.pos=b;return c}; $Da=function(a,b){var c=a.pos;a.pos=0;if(a.j.getUint8(a.pos)!==160&&!yN(a)||!pN(a,160))return a.pos=c,NaN;qN(a,!0);var d=a.pos;if(!pN(a,161))return a.pos=c,NaN;qN(a,!0);wN(a);var e=wN(a)<<8|wN(a);a.pos=d;if(!pN(a,155))return a.pos=c,NaN;d=sN(a);a.pos=c;return(e+d)*b/1E9}; yN=function(a){if(!aEa(a)||!pN(a,524531317))return!1;qN(a,!0);return!0}; aEa=function(a){if(a.xo()){if(!pN(a,408125543))return!1;qN(a,!0)}return!0}; nN=function(a,b){for(var c=0;c0){var d=ADa(b.substr(c+1));g.vc(d,function(e,f){this.set(f,e)},a); b=b.substr(0,c)}b=zDa(b);g.vc(b,function(e,f){this.set(f,e)},a)}; cEa=function(a){var b=a.base.Ee(),c=[];g.vc(a.j,function(e,f){c.push(f+"="+e)}); if(!c.length)return b;var d=c.join("&");a=yDa(a.base)?"&":"?";return b+a+d}; AN=function(a,b){var c=new g.GM(b);(b=c.get("req_id"))&&a.set("req_id",b);g.vc(a.j,function(d,e){c.set(e,null)}); return c}; dEa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0}; BN=function(a){a.G=(0,g.uu)();a.started=0;a.timedOut=0;a.j=0}; eEa=function(a,b){var c=a.started+a.j*4;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)}; CN=function(a,b){a[b]||(a[b]=new dEa);return a[b]}; DN=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()}; FN=function(a,b,c){a=b?EN(a,c):a.j;return new zN(a)}; EN=function(a,b){b=b?b.im:!1;a.D||(a.D=LM(a.C,b));return a.D}; GN=function(a,b,c){return IM(b?EN(a,c):a.j)}; HN=function(a,b,c){c=CN(c,GN(a,a.Rj(b,c),b));b=Math.max(a.G,c.timedOut)+b.WC*(a.B-a.G)+.25*a.K;b=b>3?1E3*Math.pow(1.6,b-3):0;return b===0?!0:a.Z+b<(0,g.uu)()}; fEa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)}; gEa=function(a,b,c,d,e){++a.B;b&&++a.G;IM(c.base).startsWith("redirector.")&&(a.j=a.C.clone(),delete a.D,d.UC&&delete e[IM(a.j)])}; IN=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 DN(a)}; JN=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; KN=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&a.length===2&&(a=new JN(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&a.length>0))return a}; LN=function(a,b){return new JN(a,a+b-1)}; hEa=function(a){return a.end==null?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}}; MN=function(a){if(!a)return new JN(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new JN(b,a),b.length>0))return b}; NN=function(a,b,c,d,e,f,h,l,m,n,p,q){d=d===void 0?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Mj=p;this.clipId=q===void 0?"":q;this.G=[];this.C="";this.Pa=-1;this.K=0;this.C=d;this.Pa=e>=0?e:-1;this.startTime=f||0;this.duration=h||0;this.Sb=l||0;this.B=m>=0?m:this.range?this.range.length:NaN;this.Se=this.range?this.Sb+this.B===this.range.length:n===void 0?!!this.B:n;this.range?(this.Ve=this.startTime+this.duration*this.Sb/this.range.length,this.D=this.duration*this.B/this.range.length, this.Mf=this.Ve+this.D):iEa(this)}; iEa=function(a){a.Ve=a.startTime;a.D=a.duration;a.Mf=a.Ve+a.D}; ON=function(a){return a.Se&&a.j.index.JF(a.Pa)}; jEa=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.Sb+b.B===a.Sb+a.B:d}; PN=function(a){return a.type===1||a.type===2}; QN=function(a){return a.type===3||a.type===6}; RN=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Sb+a.B===b.range.start+b.Sb:a.Pa===b.Pa?a.Sb+a.B===b.Sb:a.Pa+1===b.Pa&&b.Sb===0&&a.Se:!1}; kEa=function(a,b){return RN(a,b)||Math.abs(a.Mf-b.Ve)<=1E-6||a.Pa+1===b.Pa&&b.Sb===0&&a.Se?!0:!1}; SN=function(a){return a.Pa+(a.Se?1:0)}; lEa=function(a){a.length===1||g.Cl(a,function(c){return!!c.range}); for(var b=1;b=b.range.start+b.Sb&&a.range.start+a.Sb+a.B<=b.range.start+b.Sb+b.B:a.Pa===b.Pa&&a.Sb>=b.Sb&&(a.Sb+a.B<=b.Sb+b.B||b.Se)}; sEa=function(a,b){return a.j!==b.j?!1:a.type===4&&b.type===3&&a.j.jg()?(a=a.j.eC(a),Am(a,function(c){return sEa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Sb+b.B>a.Sb&&b.Sb+b.B<=a.Sb+a.B}; UN=function(a,b){var c=b.Pa;a.C="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.K,a.duration=b.duration,iEa(a)}; VN=function(a,b){var c=this;this.jb=a;this.D=this.j=null;this.G=this.hh=NaN;this.Rj=this.requestId=null;this.fd={Yna:function(){return c.range}}; this.resource=a[0].j.resource;this.B=b||"";this.jb[0].range&&this.jb[0].B>0&&(mEa(a)?(this.range=lEa(a),this.C=this.range.length):(this.range=this.jb[this.jb.length-1].range,this.C=nEa(a)))}; WN=function(a){return!PN(a.jb[a.jb.length-1])}; XN=function(a){return a.jb[a.jb.length-1].type===4}; g.YN=function(a,b,c){c=a.Rj===null?a.resource.Rj(b,c,a.jb[0].type):a.Rj;if(a.j){b=c?LM(a.j,b.im):a.j;var d=new zN(b);d.get("alr")||d.set("alr","yes");a.B&&bEa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new zN(new g.GM(a.B)):(d=FN(a.resource,c,b),a.B&&bEa(d,a.B));(b=a.range)?d.set("range",b.toString()):a.jb[0].j.Ax()&&a.jb.length===1&&a.jb[0].Sb&&d.set("range",a.jb[0].Sb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.hh)||d.set("headm",a.hh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&& g.vc(a.urlParams,function(e,f){d.set(f,e)}); return d}; tEa=function(a){if(a.range)return a.C;a=a.jb[0];return Math.round(a.D*a.j.info.ub)}; uEa=function(a,b){return Math.max(0,a.jb[0].Ve-b)}; ZN=function(a,b,c,d,e,f){f=f===void 0?0:f;IN.call(this,a,b,d,void 0);this.G=c;this.Oj=f;this.index=e||new g.OM}; vEa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.Ch=c;this.j=d||NaN;this.B=e||NaN}; $N=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""}; aO=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(c.length>0)return c[0]}return null}; wEa=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?(Number(b[2])|0)*3600+(Number(b[4])|0)*60+(Number(b[6])|0):Number(a)|0}; xEa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a}; bO=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1}; yEa=function(a){var b=a.C;a.C=[];return b}; zEa=function(){this.D=[];this.j=null;this.B={};this.C={}}; DEa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.v(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;e.nodeName==="Period"?f=AEa(a):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=BEa(a,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",f=CEa(a,e));if(f==null)return;f.update(d);g.Bb(c,yEa(f))}g.Bb(a.D,c);xaa(a.D,function(h){return h.startSecs*1E3+h.j})}; EEa=function(a){a.j&&(a.j.j=[]);g.vc(a.B,function(b){b.j=[]}); g.vc(a.C,function(b){b.j=[]})}; AEa=function(a){a.j||(a.j=new bO);return a.j}; BEa=function(a,b){a.B[b]||(a.B[b]=new bO);return a.B[b]}; CEa=function(a,b){a.C[b]||(a.C[b]=new bO);return a.C[b]}; dO=function(a){var b=a===void 0?{}:a;a=b.Oj===void 0?0:b.Oj;var c=b.In===void 0?!1:b.In;var d=b.Br===void 0?0:b.Br;var e=b.bf===void 0?0:b.bf;var f=b.Ji===void 0?Infinity:b.Ji;var h=b.kB===void 0?0:b.kB;b=b.ge===void 0?!1:b.ge;g.OM.call(this);this.Tr=this.Xp=-1;this.Pj=a;this.Br=d;this.In=c;this.bf=e;this.Ji=f;this.kB=h;(this.ge=b)&&c&&cO&&(this.B=!1,this.C="postLive")}; eO=function(a,b){return Ib(a.segments,function(c){return b-c.Pa})}; fO=function(a,b,c){c=c===void 0?{}:c;ZN.call(this,a,b,"",void 0,void 0,c.Oj||0);this.index=new dO(c)}; gO=function(a,b,c){IN.call(this,a,b);this.G=c;a=this.index=new g.OM;a.B=!1;a.C="d"}; FEa=function(a,b,c){var d=a.index.WJ(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.ub*f;return new VN([new NN(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)}; GEa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.G;b=b.K.split(",").filter(function(p){return p.length>0}); for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n0&&(b-=a.timestampOffset);var c=kO(a)+b;IEa(a,c);a.timestampOffset=b}; IEa=function(a,b){g.SF(a.info.j.info)||a.info.j.info.Le();a.C=b;if(g.SF(a.info.j.info)){var c=iO(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;fN(c,f);){var h=gN(c,f);isNaN(d)&&(h.type===1936286840?d=h.data.getUint32(h.dataOffset+8):h.type===1836476516&&(d=g.cN(h)));if(h.type===1952867444){!d&&a&&(d=dN(a));var l=g.iN(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=hN(h.type)?f+8:f+h.size}return!0}c=new lN(iO(a));a=a.G?c:new lN(new DataView(a.info.j.j.buffer));d=xN(a);a=c.pos;c.pos=0;if(yN(c)&&pN(c,231))if(e=qN(c,!0),b=Math.floor(b*1E9/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;d>=0;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b}; mO=function(a,b){b=b===void 0?!1:b;var c=lO(a);a=b?0:a.info.D;return c||a}; lO=function(a){g.SF(a.info.j.info)||a.info.j.info.Le();if(a.B&&a.info.type===6)return a.B.Oj;if(g.SF(a.info.j.info)){var b=iO(a);var c=0;b=g.kN(b,1936286840);b=g.v(b);for(var d=b.next();!d.done;d=b.next())d=RDa(d.value),c+=d.RT[0]/d.Dv;c=c||NaN;if(!(c>=0))a:{c=iO(a);b=a.info.j.j;for(var e=d=0,f=0;fN(c,d);){var h=gN(c,d);if(h.type===1836476516)e=g.cN(h);else if(h.type===1836019558){!e&&b&&(e=dN(b));if(!e){c=NaN;break a}var l=eN(h.data,h.dataOffset,1953653094),m=l;l=e;var n=eN(m.data,m.dataOffset,1952868452); m=eN(m.data,m.dataOffset,1953658222);var p=SM(n);SM(n);p&2&&SM(n);n=p&8?SM(n):0;var q=SM(m),r=q&1;p=q&4;var t=q&256,u=q&512,x=q&1024;q&=2048;var B=TM(m);r&&SM(m);p&&SM(m);for(var E=r=0;E2048?"":b.indexOf("https://")===0?b:""}; sO=function(a,b,c){b.match(UEa);return a(b,c).then(function(d){var e=g.TEa(d.xhr);return e?sO(a,e,c):d.xhr})}; wO=function(a,b,c){a=a===void 0?"":a;b=b===void 0?null:b;c=c===void 0?!1:c;g.iy.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Xa=this.duration=0;this.isPremiere=this.ge=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Ji=this.bf=0;this.isOtf=this.dc=!1;this.Va=(0,g.uu)();this.Ca=Infinity;this.j={};this.N=new Map;this.state=this.Ag=0;this.timeline=null;this.isManifestless=!1;this.Ga=[];this.K=null;this.Fa=0;this.D="";this.Ka=NaN;this.fb=this.Tb=this.timestampOffset=this.G= 0;this.Z=this.Y=NaN;this.Lc=0;this.Wa=this.bb=this.ra=!1;this.Na=[];this.Ra={};this.fd={yma:function(m){tO(d,m)}}; var e;this.rb=(e=b)==null?void 0:e.ob("html5_use_network_error_code_enums");VEa=!!b&&b.ob("html5_modern_vp9_mime_type");var f;uO=!((f=b)==null||!f.ob("html5_enable_flush_during_seek"))&&g.Hs();var h;vO=!((h=b)==null||!h.ob("html5_enable_reset_audio_decoder"))&&g.Hs();var l;WEa=!((l=b)==null||!l.ob("html5_windowed_postlive_allow_request_final_segment"))}; XEa=function(a){return g.zc(a.j,function(b){return!!b.info.video&&b.info.video.j>=2160})}; tDa=function(a){return g.zc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})}; zM=function(a){return g.zc(a.j,function(b){return!!b.info.me})}; YEa=function(a){return g.zc(a.j,function(b){return YF(b.info.mimeType)})}; ZEa=function(a){return g.zc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR":!1})}; $Ea=function(a){return g.zc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; aFa=function(a){return g.zc(a.j,function(b){return b.info.video?b.info.video.projectionType==="MESH":!1})}; bFa=function(a){return g.zc(a.j,function(b){return b.info.video?b.info.video.stereoLayout===1:!1})}; cFa=function(a){return bba(a.j,function(b){return b.info.video?b.wS():!0})}; wM=function(a){return g.zc(a.j,function(b){return JM(b.resource.j)})}; tO=function(a,b){a.j[b.info.id]=b;a.N.set(VF(b.info,a.dc),b)}; dFa=function(a,b){return(b.itag||"")+";"+((a.dc?0:b.lmt||0)||0)+";"+(b.xtags||"")}; eFa=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")}; zO=function(a,b,c){c=c===void 0?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(XF(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=rGa[a.stereoLayout]);var r=REa(a)||void 0;if(n==null?0:n.primaries)var t=JHa[n.primaries]||void 0;h=new IF(h,e,l,p,q,void 0,m,r,t);d=xO(d,h,LF[a.itag||""]);uO&&(d+="; enableflushduringseek=true");vO&&(d+="; enableresetaudiodecoder=true")}var u;if(WF(d)){var x= a.audioSampleRate;q=a.audioTrack;x=new FF(x?+x:void 0,a.audioChannels,a.spatialAudioType,a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(u=new g.rO(t,e||"",!!q)))}var B;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(B=new PEa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&& m){var E={};m=g.v(m);for(n=m.next();!n.done;n=m.next())(n=yO[n.value])&&(E[n]=b[n])}return new MF(f,d,{audio:x,video:h,Xb:u,me:E,ub:q,Fw:c,contentLength:t,lastModified:e,captionTrack:B,streamType:l,approxDurationMs:a})}; AO=function(a,b,c){c=c===void 0?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(XF(d)){var h=(a.size||"640x360").split("x");h=new IF(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=xO(d,h,LF[a.itag]);uO&&(d+="; enableflushduringseek=true");vO&&(d+="; enableresetaudiodecoder=true")}var l;if(WF(d)){var m=new FF(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.rO(a.name,a.audio_track_id, a.isDefault==="1"))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(n=new PEa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.v(a.drm_families.split(",")),u=t.next();!u.done;u=t.next())u=u.value,r[u]=b[u]}return new MF(e,d,{audio:m,video:h,Xb:l,me:r,ub:f,Fw:c,contentLength:p,lastModified:q,captionTrack:n, streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})}; KHa=function(a){return Am(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; OHa=function(a){return Am(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; lIa=function(a,b){return a.timeline?Cb(a.timeline.D,b):a.Ga.length?Cb(a.Ga,b):[]}; BO=function(a,b,c){b=b===void 0?"":b;c=c===void 0?"":c;a=new g.GM(a,!0);a.set("alr","yes");c&&(c=SBa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a}; pIa=function(a,b){var c=$N(b,"id");c=c.replace(":",";");var d=$N(b,"mimeType"),e=$N(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number($N(b,"bandwidth"))/8;var f=Number(aO(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(XF(d)){var l=Number($N(b,"width"));var m=Number($N(b,"height")),n=Number($N(b,"frameRate")),p=mIa($N(b,a.D+":projectionType"));a:switch($N(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 IF(l,m,n,p,q)}if(WF(d)){var r=Number($N(b,"audioSamplingRate"));var t=Number($N(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=nIa($N(b,a.D+":spatialAudioType"));r=new FF(r,t,m);a:{t=$N(b,"lang")||"und";if(m=aO(b,"Role"))if(p=$N(m,"value")||"",g.Dc(oIa,p)){m=t+"."+oIa[p];n=p==="main";a=$N(b,a.D+":langName")||t+" - "+p;t=new g.rO(a,m,n);break a}t=void 0}}if(b=aO(b,"ContentProtection"))if(b.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var u={};for(b= b.firstChild;b!=null;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(u[a]=m.trim()))}else u=void 0;return new MF(c,d,{audio:r,video:l,Xb:t,me:u,ub:e,Fw:h,contentLength:f})}; mIa=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"}}; nIa=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"}}; rIa=function(a,b){b=b===void 0?"":b;a.state=1;a.Va=(0,g.uu)();return SEa(b||a.sourceUrl).then(function(c){if(!a.Ma()){a.Ag=c.status;c=c.responseText;var d=new DOMParser;c=Oba(d,ima(c)).getElementsByTagName("MPD")[0];a.Ca=wEa($N(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){d=g.v(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.value==="http://youtube.com/yt/2012/10/10"){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=a.Ca=a.Ca}; tIa=function(a){a.K&&a.K.stop()}; qIa=function(a){var b=a.Ca;isFinite(b)&&(CO(a)?a.refresh():(b=Math.max(0,a.Va+b-(0,g.uu)()),a.K||(a.K=new g.fp(a.refresh,b,a),g.Q(a,a.K)),a.K.start(b)))}; uIa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Ad()+1}return 0}; DO=function(a){return a.Tb?a.Tb-(a.G||a.timestampOffset):0}; EO=function(a){return a.fb?a.fb-(a.G||a.timestampOffset):0}; FO=function(a){if(!isNaN(a.Ka))return a.Ka;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!YF(b[c].info.mimeType)){b=0;for(c=d.Tn();c<=d.Ad();c++)b+=d.getDuration(c);b/=d.rA();b=Math.round(b/.5)*.5;d.rA()>10&&(a.Ka=b);return b}if(a.isLive&&(d=b[c],d.Oj))return d.Oj}return NaN}; vIa=function(a,b){a=dba(a.j,function(d){return d.index.isLoaded()}); if(!a)return NaN;a=a.index;var c=a.Ii(b);return a.getStartTime(c)===b?b:c=0&&e.segments.splice(f,1)}}}; xIa=function(a){for(var b in a.j)YF(a.j[b].info.mimeType)||FDa(a.j[b].index,Infinity)}; HO=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.In&&(f&&(e.Xp=Math.max(e.Xp,f)),h&&(e.Tr=Math.max(e.Tr||0,h)))}}; yIa=function(a){a.fb=0;a.Tb=0;a.Lc=0}; IO=function(a){return a.bb&&a.isManifestless?a.isLiveHeadPlayable:a.isLive}; xO=function(a,b,c){JO===null&&(JO=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(VEa&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return JO||c!=="9"&&c!=="("?JO||c!=="9h"&&c!=="(h"||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!JO&&!KO||a!=='video/webm; codecs="vp9"'&&a!=='video/webm; codecs="vp9.2"')return a; c="00";var d="08",e="01",f="01",h="01";a==='video/webm; codecs="vp9.2"'&&(c="02",d="10",b.primaries==="bt2020"&&(h=e="09"),b.B==="smpte2084"&&(f="16"),b.B==="arib-std-b67"&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'}; g.LO=function(a){this.tag=a}; AIa=function(a,b){zIa.apply(null,[6,a,b].concat(g.w(g.Fa.apply(2,arguments))))}; BIa=function(a,b){zIa.apply(null,[5,a,b].concat(g.w(g.Fa.apply(2,arguments))))}; zIa=function(a,b,c){var d=g.Fa.apply(3,arguments),e=a===6?"ERROR":"WARNING",f="b"+c;g.Jx(new (Function.prototype.bind.apply(g.Mt,[null,f].concat(g.w(d)))),e);d.unshift(f);d=d.join(", ");e=CIa.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(m){}CIa.set(b,f);e=f}if(!(a0&&(e.j=Math.min(e.j+h,10),e.B=f);e.j>0?(e.j--,e=!0):e=!1;if(e)typeof d==="function"&&(d=d()),console.log("plyr."+b,d);else{var l;d=((l=FIa.get(b))!=null?l:0)+1;FIa.set(b,d);d%100===1&&console.warn("plyr","plyr."+b+" is chatty, dropping logs.")}}}; EIa=function(){this.j=10;this.B=Date.now()}; NO=function(a,b,c,d){b=""+b+(c>49?"p60":c>32?"p48":"");if(!a.L("html5_gradual_perf_cap"))return ZBa(b);a=ZBa(b,!1);if(a!=null&&a>0)return a;a=MO.get(b);if(a!=null&&a>0)return a;d=d==null?void 0:d.get(b);return d!=null&&d>0?d:8192}; GIa=function(a){this.Da=a;this.qc=this.Qo=this.Na=this.G=this.D=this.ra=this.Ka=this.Wa=this.Ca=!1;this.N=this.K=0;this.fb=!1;this.Ga=!0;this.Xa=!1;this.qj=0;this.Fa=!1;this.Tb=Infinity;this.dO=!1;this.Bc=!0;this.Va=this.Ra=!1;this.j={};this.B=this.Y=!1;this.Nb=this.Da.yc();this.Jb=!1;this.zb=this.Da.experiments.ob("html5_enable_vp9_fairplay");this.Ed=this.Da.L("html5_force_av1_for_testing");this.bb=g.qD(this.Da.experiments,"html5_av1_ordinal_cap");this.Td=this.Da.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported"); this.Lc=this.Da.L("html5_account_onesie_format_selection_during_format_filter");this.Dd=this.Da.L("html5_prefer_hbr_vp9_over_av1");this.Jg=0;this.disableAv1=this.Bb=this.rb=!1;this.ub=g.qD(this.Da.experiments,"html5_max_byterate");this.Z=this.Da.L("html5_prefer_high_aac_by_default");this.ke=this.Da.L("html5_prefer_language_over_codec");this.Kb=this.Da.L("html5_enable_iamf_audio");this.Xc=this.Da.experiments.ob("html5_allow_capability_merge")}; uDa=function(a){if(a.Wa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Fa&&(b.unshift("1"),b.unshift("1h"));a.Qo&&b.unshift("h");a.qa&&(b=(HIa[a.qa]||[a.qa]).concat(b));return b}; oDa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");a.Jg===1&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Ca&&(b=["so","sa"].concat(b));!a.qc||a.Na||a.C||b.unshift("a");!a.Z&&a.Ka&&b.unshift("ah");a.C&&(b=(HIa[a.C]||[a.C]).concat(b));a.Kb&&b.unshift("i");return b}; OO=function(a,b,c,d){b=b===void 0?{}:b;if(d===void 0?0:d)return b.disabled=1,0;if(EM(a.G,FM.AV1_CODECS)&&EM(a.G,FM.HEIGHT)&&EM(a.G,FM.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=cCa();if(e)return b.localPref=e}catch(l){}d=1080;navigator.hardwareConcurrency<=2&&(d=480);b.coreCount=navigator.hardwareConcurrency;Vma()&&(b.isArm=1,d=240);if(c){var f,h;if(e=(f=c.videoInfos.find(function(l){return PF(l)}))==null?void 0:(h=f.B)==null?void 0:h.powerEfficient)d=8192,b.isEfficient=1; c=c.videoInfos[0].video;a=Math.min(NO(a,"1",c.fps),NO(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=NO(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=NO(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d}; PO=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.bb=this.keySystemAccess=null;this.pw=this.uw=-1;this.jm=null;this.C=!!d&&d.ob("edge_nonprefixed_eme")}; RO=function(a){return a.C?!1:!a.keySystemAccess&&!!QO()&&a.keySystem==="com.microsoft.playready"}; SO=function(a){return a.keySystem==="com.microsoft.playready"}; TO=function(a){return!a.keySystemAccess&&!!QO()&&a.keySystem==="com.apple.fps.1_0"}; UO=function(a){return a.keySystem==="com.youtube.fairplay"}; VO=function(a){return a.keySystem==="com.youtube.fairplay.sbdl"}; g.WO=function(a){return a.flavor==="fairplay"}; QO=function(){var a=window,b=a.MSMediaKeys;Ls()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; YO=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.AF&&!g.Hs())return Fp("45");if(g.Ou||g.mm)return a.ob("edge_nonprefixed_eme");if(g.XO)return Fp("47");if(g.lu){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.qD(a,"html5_safari_desktop_eme_min_version"))return Fp(a)}return!0}; IIa=function(a,b,c,d){var e=Is(),f=(c=e||c&&Ls())?["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.w(f),g.w(ZO.playready)):[].concat(g.w(ZO.playready),g.w(f))}; $O=function(a,b,c,d,e){d=d===void 0?!1:d;g.K.call(this);this.Da=b;this.useCobaltWidevine=d;this.oa=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)}; KIa=function(a,b){a.callback=b;a.D=[];YO(a.Da.experiments)?aP(a):JIa(a)}; aP=function(a){if(!a.Ma())if(a.B.length===0)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=LIa(a,c);if(bP&&bP.keySystem===b&&bP.jda===JSON.stringify(d))a.oa("remksa",{re:!0}),MIa(a,c,bP.keySystemAccess);else{var e,f;a.oa("remksa",{re:!1,ok:(f=(e=bP)==null?void 0:e.keySystem)!=null?f:""});bP=void 0;(cP.isActive()?cP.So("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(IL(function(h){MIa(a,c,h,d)}),IL(function(){a.G=!a.G&&a.C[a.B[0]].flavor=== "widevine"; a.G||a.B.shift();aP(a)}))}}}; MIa=function(a,b,c,d){if(!a.Ma()){d&&(bP={keySystem:b.keySystem,keySystemAccess:c,jda:JSON.stringify(d)});b.keySystemAccess=c;if(SO(b)){c=yF();d=g.v(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.v(c.audioCapabilities),e=d.next();!e.done;e=d.next())NIa(a,b,e.value);if(c.videoCapabilities)for(c=g.v(c.videoCapabilities),d=c.next();!d.done;d=c.next())NIa(a,b,d.value)}a.D.push(b); a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&VO(b)?(a.B.shift(),aP(a)):a.callback(a.D)}}; NIa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; LIa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&UO(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];SO(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.v(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.indexOf("audio/")===0,h=f?c.audioCapabilities:c.videoCapabilities;b.flavor!== "widevine"||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.AF&&g.Fs("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),g.dP(a.Da)==="MWEB"&&(Rs()||Gs())&&(a.oa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; JIa=function(a){if(QO()&&g.lu)a.D.push(new PO("fairplay","com.apple.fps.1_0","",a.Da.experiments));else{var b=OIa(),c=g.pb(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||l.indexOf("audio/")===0,h=h||l.indexOf("video/")===0);return f&&h}); c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)}; OIa=function(){var a=QO();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=yF(); return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; PIa=function(a){this.experiments=a;this.C=0;this.G=(this.D=this.experiments.ob("html5_consider_end_stall"))&&eP;this.B=this.experiments.ob("html5_measure_max_progress_handling");this.j=this.L("html5_use_media_for_elbow")}; QIa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=Rr(b||"","&");a={};b=g.v(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a}; g.qD=function(a,b){return Number(a.flags[b])||0}; fP=function(a,b){return(a=a.flags[b])?a.toString():""}; RIa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]}; SIa=function(a){if(a.j)return a.j;if(a.experimentIds.length<=1)return a.j=a.experimentIds,a.j;var b=[].concat(g.w(a.experimentIds)).map(function(d){return Number(d)}); b.sort();for(var c=b.length-1;c>0;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()}); a.j.unshift("v1");return a.j}; UIa=function(a){return TIa.then(a)}; gP=function(a,b,c){this.experiments=a;this.Ga=b;this.Fa=c===void 0?!1:c;this.Z=!!g.Pa("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.ob("html5_disable_vp9_encrypted");this.j=new Map;this.Ca=g.qD(this.experiments,"html5_max_vertical_resolution");this.ra=g.qD(this.experiments,"html5_max_ps4_av1_vertical_resolution");a=g.Pa("cast.receiver.platform.getValue");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null}; xDa=function(a,b,c){c=c===void 0?1:c;var d=b.itag;if(d==="0")return!0;var e=b.mimeType;if(b.Le()&&Is()&&a.experiments.ob("html5_appletv_disable_vp9"))return"dwebm";if(PF(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||b.video.primaries==="bt2020")&&!(EM(a,FM.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(d==="338"&&!(g.AF?Fp(53):g.XO&&Fp(64)))return"dopus"; var f;if(a.Ca&&((f=b.video)==null?void 0:f.height)>a.Ca)return"dvert";var h;if(a.ra&&!g.Fs("ps4 pro")&&Ks()&&PF(b)&&((h=b.video)==null?void 0:h.height)>a.ra)return"pavert";f=c;f=f===void 0?1:f;c={};b.video&&(b.video.width&&(c[FM.WIDTH.name]=b.video.width),b.video.height&&(c[FM.HEIGHT.name]=b.video.height),b.video.fps&&(c[FM.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[FM.EOTF.name]=b.video.B),b.ub&&(c[FM.BITRATE.name]=b.ub*8*f),b.sb==="("&&(c[FM.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType=== "EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType==="MESH")&&(c[FM.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[FM.CHANNELS.name]=b.audio.numChannels);a.D&&NF(b)&&(c[FM.EXPERIMENTAL.name]="allowed");f=g.v(Object.keys(FM));for(h=f.next();!h.done;h=f.next())if(h=FM[h.value],c[h.name]&&!(h===FM.EOTF&&b.mimeType.indexOf("vp09.02")>0||a.experiments.ob("html5_ignore_h264_framerate_cap")&&h===FM.FRAMERATE&&xwa(b)))if(EM(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(OF(b)&&h===FM.EOTF)return"dvp92";a.Z&&b.video&&b.video.j>1080&&b.me&&(e+="; hdcp=2.2");return d==="227"?"hqcenc":d!=="585"&&d!=="588"&&d!=="583"&&d!=="586"&&d!=="584"&&d!=="587"&&d!=="591"&&d!=="592"||a.experiments.ob("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"}; hP=function(){var a=Gs()&&!Fp(29),b=g.Fs("google tv")&&g.Fs("chrome")&&!Fp(30);return a||b?!1:Cwa()}; VIa=function(a,b,c){var d=480;b=g.v(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;f<=1080&&f>d&&xDa(a,e,c)===!0&&(d=f)}return d}; g.iP=function(a,b){b=b===void 0?!1:b;return hP()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(yF(),"application/x-mpegURL")?!0:!1}; XIa=function(a){WIa(function(){for(var b=g.v(Object.keys(FM)),c=b.next();!c.done;c=b.next())EM(a,FM[c.value])})}; EM=function(a,b){b.name in a.N||(a.N[b.name]=YIa(a,b));return a.N[b.name]}; YIa=function(a,b){if(a.G)return!!a.G[b.name];if(b===FM.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===FM.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.qo);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.qo)}; ZIa=function(a){a.D||(a.D=!0,a.B=!0)}; $Ia=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).g8);a.C.set(b,{g8:c+1,C1:Math.pow(2,c+1)});a.B=!0}; AM=function(a){for(var b=[],c=g.v(a.j.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.j.get(d);b.push(d+"_"+e.maxWidth+"_"+e.maxHeight)}return b.join(".")}; pDa=function(a,b){for(var c=new Map,d=g.v(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c}; rDa=function(a,b,c){var d,e=((d=c.video)==null?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,sb:b,Fh:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=l==null?void 0:l.width;h.maxHeight=l==null?void 0:l.height;h.maxFramerate=e;EM(a,FM.BITRATE)&&(h.maxBitrateBps=c.ub*8);h.CF=l==null?void 0:l.isHdr()}l=a.j.get(d);l?f||(c=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(h.maxWidth||0,h.maxHeight||0)?l:h,b={itag:c.itag,sb:b,Fh:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth|| 0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,CF:c.CF},EM(a,FM.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)}; sDa=function(a,b,c){var d,e=((d=c.video)==null?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&((n=c.video)==null?0:n.height)&&l.maxHeight&&l.maxHeight>=((p=c.video)==null?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,sb:b,Fh:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=f==null?void 0:f.width,b.maxHeight=f==null?void 0:f.height,b.maxFramerate=e,EM(a,FM.BITRATE)&&(b.maxBitrateBps=c.ub* 8),b.CF=f==null?void 0:f.isHdr()),a.j.set(d,b))}; jP=function(){g.iy.call(this);this.items={}}; kP=function(){g.NK.apply(this,arguments)}; lP=function(){g.OK.apply(this,arguments)}; mP=function(a,b){var c=a.eJ(b);PK.call(this,a,c||b);this.Kd=a;c&&this.Kd.exports.free(c.byteOffset)}; aJa=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)}; bJa=function(a){a.B||(a.B=new kP(a.j));return a.B}; nP=function(a){try{return Ze(a)}catch(b){return null}}; cJa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?nP(b.clientKey):null;var c=b.encryptedClientKey?nP(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?Number(b.keyExpiresInSeconds)*1E3+(0,g.uu)():null;a&&c&&d&&(this.j=new aJa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=nP(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; oP=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)}; pP=function(a,b,c,d){c=c===void 0?.5:c;d=d===void 0?0:d;this.resolution=b;this.B=0;this.C=!1;this.jl=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a0&&(b=a.byterate,this.Fa=!0);this.B.Xj(this.policy.G,b);a.delay>0&&this.K.Xj(1, Math.min(a.delay,2));a.stall>0&&this.G.Xj(1,a.stall);a.init>0&&(this.Ga=Math.min(a.init,this.Ga));a.interruptions&&(this.j=this.j.concat(a.interruptions),this.j.length>16&&this.j.pop());this.Z=(0,g.uu)();this.policy.K>0&&(this.Ka=new g.fp(this.Va,this.policy.K,this),g.Q(this,this.Ka),this.Ka.start())}; rP=function(a,b,c,d){a.B.Xj(d===void 0?b:d,c/b);a.D=(0,g.uu)()}; eJa=function(a){a.C||(a.C=(0,g.uu)());a.policy.Z&&(a.D=(0,g.uu)())}; fJa=function(a,b){if(a.C){var c=b-a.C;if(c>1E3){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e}); d.length>16&&d.pop()}a.qa+=c}a.C=b}; sP=function(a,b,c,d,e,f){f=f===void 0?!1:f;a.Ca.Xj(b,c/b);a.D=(0,g.uu)();e||a.N.Xj(1,b-d);f||(a.C=0);a.Z>-1&&(0,g.uu)()-a.Z>3E4&&gJa(a)}; tP=function(a,b,c){b=Math.max(b,2048);a.G.Xj(1,c/b)}; uP=function(a){a=a.K.fh()+a.ra.fh()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)}; vP=function(a,b,c){isNaN(c)||(a.Y+=c);isNaN(b)||(a.Na+=b)}; wP=function(a){a=a.B.fh();return a>0?a:1}; xP=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?1048576:c;var d=wP(a);d=1/((a.G.fh()||0)*a.policy.Y+1/d);var e=a.Ca.fh();d=Math.max(d,e>0?e:1);if(!b)return d;b=1E-9+uP(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((a.N.percentile(.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c}; hJa=function(a){var b={delay:uP(a),stall:a.G.fh()||0,byterate:wP(a),init:a.Ga},c=a.j[0];c.stamp=Math.round(a.D/36E5)*36E5;c.net=Math.ceil(a.qa);c.max=a.interruptions[0]||0;b.interruptions=a.j;return b}; gJa=function(a){g.zt("yt-player-bandwidth",hJa(a),2592E3);a.Z=(0,g.uu)();a.Fa=!0}; yP=function(a){return(0,g.uu)()-a.D>=4E3}; iJa=function(a,b){b.Ws=a.Y;b.Fv=a.Na;b.bandwidthEstimate=xP(a);b.j={ttr:(a.K.fh()*1E3).toFixed(),ttm:(a.ra.fh()*1E3).toFixed(),d:uP(a).toFixed(2),st:((a.G.fh()||0)*1E9).toFixed(2),bw:a.B.fh().toFixed(0),abw:a.Ca.fh().toFixed(0),v50:a.N.percentile(.5).toFixed(2),v92:a.N.percentile(.92).toFixed(2),v96:a.N.percentile(.96).toFixed(2),v98:a.N.percentile(.98).toFixed(2)};b=b.j;b["int"]=a.interruptions.join(".");b.intDur=Math.ceil(a.qa);b.intHist=a.j.map(function(c){return c.stamp+"_"+c.net+"_"+c.max}).join(".")}; jJa=function(a){this.experiments=a;this.j=17;this.B=13E4;this.G=.5;this.C=this.D=!1;this.Y=g.qD(this.experiments,"html5_stall_factor")||1;this.K=g.qD(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.ob("html5_trigger_loader_when_idle_network");this.Z=this.experiments.ob("html5_sabr_fetch_on_idle_network_preloaded_players")}; lJa=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;g.K.call(this);var c=this;this.values=a;this.Qr=b;this.B={};this.C=this.j=0;this.D=new g.fp(function(){kJa(c)},1E4); g.Q(this,this.D)}; zP=function(a,b){mJa(a,b);return a.values[b]&&a.Qr[b]?a.values[b]/Math.pow(2,a.j/a.Qr[b]):0}; mJa=function(a,b){a.values[b]||(b=XBa(),a.values=b.values||{},a.Qr=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})}; kJa=function(a){var b=XBa();if(b.values){b=b.values;for(var c={},d=g.v(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=zP(a,e);a.B=c}b=a.Qr;c={};c.values=a.B;c.halfLives=b;g.zt("yt-player-memory",c,2592E3)}; SP=function(a,b,c,d,e){g.K.call(this);this.webPlayerContextConfig=b;this.Vl=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.zj=this.Ae=this.fb=this.wj=this.userDisplayName=this.userDisplayImage=this.Ti="";this.j={};this.Nb={};this.controlsType="0";this.Td=NaN;this.rb=!1;this.Sf=(0,g.uu)();this.Kb=0;this.Xl=this.tp=!1;this.Bn=!0;this.preferGapless=this.Tl=this.Rf=this.C=this.Ul=this.Qf=!1;this.uh=[];this.lm=!0;this.Tf=!1;a=a?g.Jc(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 QIa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:Xs("",a.forced_experiments)||void 0;this.cspNonce=(b==null?0:b.cspNonce)?b.cspNonce:Xs("",a.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(S){f=""}this.rf=f;this.ancestorOrigins= (d=window.location.ancestorOrigins)?Array.from(d):[];this.D=Us(!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=fP(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),f==="all"||f==="once")d.chipset&&(this.Nb.cchip=d.chipset),d.cobaltAppVersion&&(this.Nb.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Nb.cfrmver=d.firmwareVersion),d.deviceYear&&(this.Nb.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||nJa(this)&&b.loaderUrl?b.loaderUrl||"":this.rf:this.D||nJa(this)&&a.loaderUrl?Xs("",a.loaderUrl):this.rf;this.D&&g.Ma("yt.embedded_player.embed_url",this.loaderUrl);this.N=aE(this.loaderUrl,oJa);d=this.loaderUrl;var h=h===void 0?!1:h;this.Wp=$D(aE(d,pJa),d,h,"Trusted Ad Domain URL");this.Bc=Us(!1,a.privembed);this.protocol=this.rf.indexOf("http:")===0?"http":"https";this.Ga=bE((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)|| "")||bE(this.rf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";h==="adunit"?d=this.D?"embedded":"detailpage":h==="embedded"||this.N?d=Vs(d,h,qJa):h&&(d="embedded");this.Ka=d;bqa();h=null;d=b?b.playerStyle:a.ps;f=g.rb(rJa,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.ra=(this.K=g.rb(rJa,this.playerStyle))&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.Np=!this.ra;this.Ra=Us(!1,a.disableplaybackui);this.disablePaidContentOverlay=Us(!1,b==null?void 0:b.disablePaidContentOverlay); this.disableSeek=Us(!1,b==null?void 0:b.disableSeek);this.enableSpeedOptions=(b==null?void 0:b.enableSpeedOptions)||(yF().defaultPlaybackRate?AP||g.Qs||BP?g.XO&&Fp("20")||g.AF&&Fp("4")||g.CP&&Fp("11")||Ms():!(g.CP&&!g.Fs("chrome")||AP||g.Fs("android")||g.Fs("silk")):!1);this.wp=Us(!1,a.enable_faster_speeds);this.B=Us(this.playerStyle==="blazer",a.is_html5_mobile_device||b&&b.isMobileDevice);this.Wa=Ps()||Rs();this.Bp=this.L("mweb_allow_background_playback")?!1:this.B&&!this.K;this.Va=DF();this.uq= g.DP;var l;this.Yl=!!(b==null?0:(l=b.embedsHostFlags)==null?0:l.optOutApiDeprecation);var m;this.xp=!!(b==null?0:(m=b.embedsHostFlags)==null?0:m.allowPfpImaIntegration);this.zp=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?b.hideInfo!==void 0&&(n=!b.hideInfo):n=a.showinfo;this.zn=g.EP(this)&&!this.Yl||Us(!FP(this)&&!GP(this)&&!this.K,n);this.im=b?!!b.mobileIphoneSupportsInlinePlayback:Us(!1,a.playsinline);l=this.B&&HP&&IP!=null&&IP>0&&IP<=2.3;m=b?b.useNativeControls: a.use_native_controls;this.Z=g.EP(this)&&this.B;n=this.B&&!this.Z;m=g.JP(this)||!l&&Us(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType=n!=="0"&&n!==0?m:"0";this.Wk=this.B;this.color=Vs("red",b?b.progressBarColor:a.color,sJa);this.gq=this.controlsType==="3";this.qc=!this.D;this.An=(m=!this.qc&&!GP(this)&&!this.ra&&!this.K&&!FP(this))&&!this.gq&&this.controlsType==="1";this.Ed=g.KP(this)&&m&&this.controlsType==="0"&&!this.An;this.Tq=this.jq=l;this.Xc=(this.controlsType==="3"||this.B||Us(!1, a.use_media_volume))&&!this.Z;this.Cn=Ns&&!g.qc(601)?!1:!0;this.Ap=this.D||!1;this.Lc=GP(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Xs("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||Us(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.Gj=this.L("enable_cast_for_web_unplugged")&&g.LP(this)&&l||this.L("enable_cast_on_music_web")&&g.Lz(this)&&l||p&&l&&this.controlsType==="1"&&!this.B&&(GP(this)||g.KP(this)|| g.MP(this));this.Qq=!!window.document.pictureInPictureEnabled||CF();p=b?!!b.supportsAutoplayOverride:Us(!1,a.autoplayoverride);this.Ai=!(this.B&&!g.EP(this))&&!g.Fs("nintendo wiiu")||p;this.Bi=(b?!!b.enableMutedAutoplay:Us(!1,a.mutedautoplay))&&!1;p=(GP(this)||FP(this))&&this.playerStyle==="blazer";this.Pk=b?!!b.disableFullscreen:!Us(!0,a.fs);l=g.at(g.NP(this))&&g.EP(this);this.zb=!this.Pk&&(p||g.ht())&&!l;this.Sl=this.L("uniplayer_block_pip")&&(Gs()&&Fp(58)&&!Rs()||Nu);p=g.EP(this)&&!this.Yl;var q; b?b.disableRelatedVideos!==void 0&&(q=!b.disableRelatedVideos):q=a.rel;this.Dd=p||Us(!this.K,q);this.mm=Us(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=Rs()&&IP>0&&IP<=4.4?"_top":"_blank";this.Jg=g.MP(this);this.Sj=Us(this.playerStyle==="blazer",b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "books":q="gb";break;case "docs":case "flix":q="gd";break;case "duo":q="gu";break;case "google-live":q= "gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.qa=q;this.Ca=Xs("",b?b.authorizedUserIndex:a.authuser);this.Tb=g.EP(this)&&(this.Bc||!Rma()||this.Wa);var r;b?b.disableWatchLater!==void 0&&(r=!b.disableWatchLater):r=a.showwatchlater;this.ke=((q=!this.Tb)||!!this.Ca&&q)&&Us(!this.ra,this.N?r:void 0);this.jf=b?b.isMobileDevice||!!b.disableKeyboardControls: Us(!1,a.disablekb);this.loop=Us(!1,a.loop);this.pageId=Xs("",b?b.initialDelegatedSessionId:a.pageid);this.Cq=Us(!0,a.canplaylive);this.Bb=Us(!1,a.livemonitor);this.disableSharing=Us(this.K,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),q.length!==2?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||r*q<=0?null:new g.Md(r,q))):r=null;this.Dn=r;this.mute=b?!!b.startMuted:Us(!1,a.mute); this.storeUserVolume=!this.mute&&Us(this.controlsType!=="0",b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Vs(void 0,r,OP);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":Xs("",a.cc_lang_pref);r=Vs(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,OP);this.controlsType==="3"&&r===2&&(r=3);this.Jb=r;this.tj=b?b.hl||"en_US":Xs("en_US",a.hl);this.region=b?b.contentRegion||"US":Xs("US",a.cr); this.hostLanguage=b?b.hostLanguage||"en":Xs("en",a.host_language);this.vp=!this.Bc&&Math.random()=480;this.schedule=new qP(q,new PIa(this.experiments),e);g.Q(this,this.schedule);var t;this.enableSafetyMode=(t=b==null?void 0:b.initialEnableSafetyMode)!=null?t:Us(!1,a.enable_safety_mode);e=this.Ra?!1:GP(this)&&this.playerStyle!=="blazer";var u;b?b.disableAutonav!=null&&(u=!b.disableAutonav):u=a.allow_autonav;this.Yd=Us(e,!this.ra&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:Us(!1,a.send_visitor_id_header);var x;this.playerStyle==="docs"&&(b?x=b.disableNativeContextMenu: x=a.disable_native_context_menu);this.disableNativeContextMenu=Us(!1,x);this.yp=DD(this)&&this.L("enable_skip_intro_button");this.embedConfig=Xs("",b?b.serializedEmbedConfig:a.embed_config);this.Fa=$s(a,g.EP(this));this.C=this.Fa==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(b==null||!b.embedsErrorLinks);this.Qk=Us(!1,a.full_window);var B;this.bb=!((B=this.webPlayerContextConfig)==null?0:B.chromeless);var E;this.livingRoomAppMode=Vs("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode|| (b==null?void 0:(E=b.device)==null?void 0:E.livingRoomAppMode),vJa);var F;u=Ws(NaN,b==null?void 0:(F=b.device)==null?void 0:F.deviceYear);isNaN(u)||(this.deviceYear=u);this.transparentBackground=b?!!b.transparentBackground:Us(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:Us(!1,a.show_miniplayer_button);var I;g.EP(this)&&!(b==null?0:(I=b.embedsHostFlags)==null?0:I.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen: Us(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:Us(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var O;this.Bn=(O=a.show_loop_video_toggle)!=null?O:!0;this.fq=Math.random()<1E-4;this.Tk=a.onesie_hot_config||(b==null?0:b.onesieHotConfig)?new cJa(a.onesie_hot_config,b==null?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=b==null?void 0: b.canaryStage;this.Pf=new lJa;g.Q(this,this.Pf);this.Ul=Us(!1,a.force_gvi);this.datasyncId=(b==null?void 0:b.datasyncId)||g.Lr("DATASYNC_ID");this.Wl=g.Lr("LOGGED_IN",!1);this.yj=(b==null?void 0:b.allowWoffleManagement)||!1;this.Vk=this.Uk=Infinity;this.livingRoomPoTokenId=b==null?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Rf=!0:this.Rf=Math.random()*100=0&&a0&&a.fq&&(d.sort(),g.Kx(new g.Mt("Player client parameters changed after startup",d)));a.userAge=Ws(a.userAge,b.user_age);a.Ti=Xs(a.Ti,b.user_display_email);a.userDisplayImage=Xs(a.userDisplayImage,b.user_display_image);g.dE(a.userDisplayImage)||(a.userDisplayImage= "");a.userDisplayName=Xs(a.userDisplayName,b.user_display_name);a.wj=Xs(a.wj,b.user_gender);a.csiPageType=Xs(a.csiPageType,b.csi_page_type);a.csiServiceName=Xs(a.csiServiceName,b.csi_service_name);a.Sj=Us(a.Sj,b.enablecsi);a.pageId=Xs(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Uf=b.living_room_session_po_token.toString())}; TP=function(a,b){return!a.K&&Gs()&&Fp(55)&&a.controlsType==="3"&&!b}; g.UP=function(a){a=PP(a.Ga);return a==="www.youtube-nocookie.com"?"www.youtube.com":a}; VP=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")}; WP=function(a){return GP(a)&&!g.LP(a)}; g.JP=function(a){return a.L("html5_local_playsinline")?Ns&&!g.qc(602)&&!("playsInline"in yF()):Ns&&!a.im||g.Fs("nintendo wiiu")?!0:!1}; g.dP=function(a){return a.j.c}; g.ED=function(a){return/^TVHTML5/.test(g.dP(a))}; nJa=function(a){return g.dP(a)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; uJa=function(a){return a.j.cmodel==="CHROMECAST ULTRA/STEAK"||a.j.cmodel==="CHROMECAST/STEAK"}; g.XP=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; DD=function(a){return/web/i.test(g.dP(a))}; g.YP=function(a){return g.dP(a).toUpperCase()==="WEB"}; RP=function(a){return g.dP(a)==="WEB_KIDS"}; g.LP=function(a){return g.dP(a)==="WEB_UNPLUGGED"}; ZP=function(a){return g.dP(a)==="TVHTML5_UNPLUGGED"}; g.CD=function(a){return g.LP(a)||g.dP(a)==="TV_UNPLUGGED_CAST"||ZP(a)}; g.Lz=function(a){return g.dP(a)==="WEB_REMIX"}; g.$P=function(a){return g.dP(a)==="WEB_EMBEDDED_PLAYER"}; g.bQ=function(a){return(a.deviceIsAudioOnly||!g.AF||Nu||a.controlsType==="3"?!1:g.Qs?a.D&&g.qc(51):!0)||(a.deviceIsAudioOnly||!g.XO||Nu||a.controlsType==="3"?!1:g.Qs?a.D&&g.qc(48):g.qc(38))||(a.deviceIsAudioOnly||!g.CP||Nu||a.controlsType==="3"?!1:g.Qs?a.D&&g.qc(37):g.qc(27))||!a.deviceIsAudioOnly&&g.aQ&&!Xma()&&g.qc(11)||!a.deviceIsAudioOnly&&g.lu&&g.qc("604.4")}; yJa=function(a){if(g.KP(a)&&HP)return!1;if(g.XO){if(!g.qc(47)||!g.qc(52)&&g.qc(51))return!1}else if(g.lu)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; cQ=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.ED(a)}; AJa=function(a,b){return a.enabledEngageTypes.has(b.toString())||zJa.includes(b)}; GP=function(a){return a.Ka==="detailpage"}; g.KP=function(a){return a.Ka==="embedded"}; dQ=function(a){return a.Ka==="leanback"}; FP=function(a){return a.Ka==="adunit"||a.playerStyle==="gvn"}; g.MP=function(a){return a.Ka==="profilepage"}; g.EP=function(a){return a.D&&g.KP(a)&&!FP(a)&&!a.K}; eQ=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(b.length===5)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(b.length===8)return b.splice(7,0,"s20-c"),b.join("/");if(b.length===9)return b[7]+="-s20-c",b.join("/");g.Kx(new g.Mt("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage}; g.fQ=function(a){var b=g.UP(a);BJa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b}; g.gQ=function(a,b){b=b===void 0?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.Vl){var c=new vG,d,e=a.Vl();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.Kx(new g.Mt("b189348328_oauth_callback_failed",{error:f})); c.resolve(b)}); return d!==void 0?xs(d):new vs(c)}return xs(b)}; PP=function(a){var b=g.Vi(a);return(a=Number(g.Ui(4,a))||null)?b+":"+a:b}; hQ=function(a,b){b=b===void 0?!1:b;var c=LF[a],d=CJa[c],e=DJa[a];if(!e||!d)return null;b=new IF(b?e.height:e.width,b?e.width:e.height,e.fps);d=xO(d,b,c);return new MF(a,d,{video:b,ub:e.bitrate/8})}; FJa=function(a){var b=CJa[LF[a]],c=EJa[a];return c&&b?new MF(a,b,{audio:new FF(c.audioSampleRate,c.numChannels)}):null}; iQ=function(a){this.j=a}; jQ=function(a,b,c,d){if(c)return ws();c={};var e=yF();b=g.v(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.getInfo().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].getInfo().Le())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.v(JF);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?xs(a):ws()}; GJa=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=""}; HJa=function(a,b){a.C.some(function(c){var d;return((d=c.Xb)==null?void 0:d.getId())===b}); a.j=b}; kQ=function(a,b,c){a.cpn&&(b=g.aj(b,{cpn:a.cpn}));c&&(b=g.aj(b,{paired:c}));return b}; IJa=function(a,b){a=a.itag.toString();b!==null&&(a+=b.itag.toString());return a}; JJa=function(a){for(var b=[],c=[],d=g.v(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate}); c.sort(function(f,h){return f.bitrate-h.bitrate}); a.B=b.concat(c)}; KJa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=((b=a.audioItag)==null?void 0:b.split(","))||[];this.KC=a.KC;this.me=a.me||"";this.Xb=a.Xb;this.audioChannels=a.audioChannels;this.j=""}; LJa=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!0:c;d=d===void 0?{}:d;var e={};a=g.v(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||f.eotf!=="smpte2084"&&f.eotf!=="arib-std-b67"){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/); m=m?m[1]:"";f.audio_track_id&&(h=new g.rO(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new KJa({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,KC:n?l[n]:void 0,me:f.drm_families,Xb:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e}; lQ=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null}; MJa=function(a,b){if(!(Nu||Ls()||Is()))return null;a=LJa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.v(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.v(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Xb&&(f=h.Xb.getId(),c[f]||(h=new g.lM(f,h.Xb),c[f]=h,b.push(h)))}}return b.length>0?b:null}; RJa=function(a,b,c,d,e,f,h){if(!(Nu||Ls()||Is()))return ws();var l={},m=NJa(c),n=LJa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),ws();OJa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],u=null,x="";d=d&&d.match(/hls_timedtext_playlist/)?new KJa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Xb:new g.rO("English","en",!1)}):null;for(var B=g.v(Object.keys(n)),E=B.next();!E.done;E=B.next())if(E=E.value,!a.L("html5_disable_drm_hfr_1080")|| E!=="383"&&E!=="373"){E=g.v(n[E]);for(var F=E.next();!F.done;F=E.next())if(F=F.value,F.width){for(var I=g.v(F.B),O=I.next();!O.done;O=I.next())if(O=O.value,n[O]){F.j=O;break}F.j||(F.j=PJa(n,F));if(I=n[F.j])if(c.push(F),F.me==="fairplay"&&(q=p),O="",F.KC==="PQ"?O="smpte2084":F.KC==="HLG"&&(O="arib-std-b67"),O&&(x=O),t.push(QJa(I,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,O)),!u||F.width*F.height*F.fps>u.width*u.height*u.fps)u=F}else r.push(F)}else l[E]="disdrmhfr";t.reduce(function(N, S){return S.getInfo().isEncrypted()&&N},!0)&&(q=p); e=Math.max(e,0);p=u||{};n=p.fps===void 0?0:p.fps;u=p.width===void 0?0:p.width;p=p.height===void 0?0:p.height;B=a.L("html5_native_audio_track_switching");t.push(QJa(r,c,d,f,"93",u,p,n,m,"auto",e,q,x,B));Object.entries(l).length&&h(l);return jQ(a.G,t,TP(a,b),!1)}; QJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var u=0,x="",B=g.v(a),E=B.next();!E.done;E=B.next())E=E.value,x||(x=E.itag),E.audioChannels&&E.audioChannels>u&&(u=E.audioChannels,x=E.itag);e=new MF(e,"application/x-mpegURL",{audio:new FF(0,u),video:new IF(f,h,l,null,void 0,n,void 0,r),me:q,B_:x});a=new GJa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new lQ(e,a,m)}; NJa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(b.length<=1)))return+b[1].split("/")[0];return NaN}; PJa=function(a,b){for(var c=g.v(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.me===b.me&&!e.audioChannels)return d}return""}; OJa=function(a){for(var b=new Set,c=g.v(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.v(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.v(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]}; mQ=function(a,b){this.j=a;this.B=b}; SJa=function(a,b,c,d){var e=[];c=g.v(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.GM(h.url,!0);if(h.s){var l=f,m=h.sp,n=SBa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.v(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=ZF(h.type,h.quality,h.itag,h.width,h.height);e.push(new mQ(h,f))}}return jQ(a.G,e,TP(a,b),!1)}; nQ=function(a,b){this.j=a;this.B=b}; TJa=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=ZF(e.type,"medium","0");d.push(new nQ(f,e.url))}return jQ(a.G,d,TP(a,b),!1)}; UJa=function(a,b){var c=[],d=ZF(b.type,"auto",b.itag);c.push(new nQ(d,b.url));return jQ(a.G,c,!1,!0)}; WJa=function(a){return a&&VJa[a]?VJa[a]:null}; XJa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.jp=nP(a.ustreamerConfig)||void 0)}; YJa=function(a,b){var c;if(b=b==null?void 0:(c=b.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)a.kS=new XJa(b)}; g.oQ=function(a){a=a===void 0?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name===void 0?null:a.name;this.displayName=a.displayName||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""}; g.qQ=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.pQ(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.rQ=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.ZJa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.rQ(a));return b}; g.pQ=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);a.kind==="asr"&&c.indexOf("(")===-1&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")}; cKa=function(a,b,c,d){a||(a=b&&$Ja.hasOwnProperty(b)&&aKa.hasOwnProperty(b)?aKa[b]+"_"+$Ja[b]:void 0);b=a;if(!b)return null;a=b.match(bKa);if(!a||a.length!==5)return null;if(a=b.match(bKa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(Number(a[1])===1&&e===8)&&f.indexOf(e)>=0}else a=!1;return c||d||a?b:null}; sQ=function(a,b){for(var c={},d=g.v(Object.keys(dKa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.dE(f)&&(c[dKa[e]]=f)}return c}; tQ=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url}); a.sort(function(l,m){return l.width-m.width||l.height-m.height}); for(var c=g.v(Object.keys(eKa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=eKa[e];for(var f=g.v(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=fKa(h.url);g.dE(e)&&(b[d]=e);break}}(a=a.pop())&&a.width>=1280&&(a=fKa(a.url),g.dE(a)&&(b["maxresdefault.jpg"]=a));return b}; fKa=function(a){return a.startsWith("//")?"https:"+a:a}; uQ=function(a){return a&&a.baseUrl||""}; vQ=function(a){a=g.Vr(a);for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a}; gKa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;b!=null&&(a.vr=b)}; jKa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.R(h,hKa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.R(h,iKa))return Object.assign({is_yto_interstitial:!0},Tr(h))}); d=g.v(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,hp:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,hp: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, hp:f===0?5:7})}}}; kKa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; lKa=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)}; mKa=function(a,b){b!=null?(a.Pp=b,a.Ff=!0):(a.Pp="",a.Ff=!1)}; wQ=function(a,b){this.type=a||"";this.id=b||""}; g.xQ=function(a){return new wQ(a.substr(0,2),a.substr(2))}; g.yQ=function(a,b){this.Da=a;this.author="";this.GE=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=Rr(a,"&");var c;this.j=((c=b.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.Z=sQ(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new wQ("UU","PLAYER_"+c)).toString();break;default:if(a= b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.xQ(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.zQ=function(a,b){this.Da=a;this.Bt=this.author="";this.GE=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Hx=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Bt=b.Bt||"";if(a=b.endscreen_autoplay_session_data)this.GE=Rr(a,"&");this.HE=b.HE;this.isLivePlayback=b.live_playback==="1";this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds=typeof a==="string"?Number(a):a;this.lengthText= b.lengthText||"";this.Hx=b.Hx||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Rr(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=sQ(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; nKa=function(a){var b,c,d=(b=a.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=(e=a.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:(l=h.endScreen)==null?void 0:(m=l.watchNextEndScreenRenderer)==null?void 0:m.results;if(!a){var n,p;a=d==null?void 0:(n=d.endScreen)==null?void 0:(p=n.endScreen)==null?void 0:p.results}return a}; g.BQ=function(a){var b,c,d;a=g.R((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,AQ);return g.R(a==null?void 0:a.playerBar,oKa)}; pKa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url}; qKa=function(){if(CQ===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Qp(g.Nt()+"::yt-player"))){CQ=new Oz(a);break a}CQ=void 0}}return CQ}; g.DQ=function(){var a=qKa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; g.rKa=function(a){var b=qKa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; g.EQ=function(a){return g.DQ()[a]||0}; g.FQ=function(a,b){var c=g.DQ();b!==c[a]&&(b!==0?c[a]=b:delete c[a],g.rKa(c))}; g.GQ=function(a){return g.H(function(b){return b.return(g.Ku(sKa(),a))})}; IQ=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.H(function(u){switch(u.j){case 1:return m=g.EQ(a),m===4?u.return(4):g.G(u,g.Su(),2);case 2:n=u.B;if(!n)throw g.nu("wiac");if(!l||h===void 0){u.Ia(3);break}return g.G(u,tKa(l,h),4);case 4:h=u.B;case 3:return p=c.lastModified||"0",g.G(u,g.GQ(n),5);case 5:return q=u.B,g.xa(u,6),HQ++,g.G(u,g.yu(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Ob:!0},function(x){if(f!==void 0&&h!==void 0){var B=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10, "0");B=g.zu(x.objectStore("media"),h,B)}else B=g.pu.resolve(void 0);var E=uKa(a,b.zg()),F=uKa(a,!b.zg()),I={fmts:vKa(d),format:c||{}};E=g.zu(x.objectStore("index"),I,E);var O=d.downloadedEndTime===-1;I=O?x.objectStore("index").get(F):g.pu.resolve(void 0);var N={fmts:"music",format:{}};x=O&&e&&!b.zg()?g.zu(x.objectStore("index"),N,F):g.pu.resolve(void 0);return g.pu.all([x,I,B,E]).then(function(S){S=g.v(S);S.next();S=S.next().value;HQ--;var Y=g.EQ(a);if(Y!==4&&O&&e||S!==void 0&&g.wKa(S.fmts))Y=1,g.FQ(a, Y);return Y})}),8); case 8:return u.return(u.B);case 6:r=g.Aa(u);HQ--;t=g.EQ(a);if(t===4)return u.return(t);g.FQ(a,4);throw r;}})}; g.xKa=function(a){var b,c;return g.H(function(d){if(d.j==1)return g.G(d,g.Su(),2);if(d.j!=3){b=d.B;if(!b)throw g.nu("ri");return g.G(d,g.GQ(b),3)}c=d.B;return d.return(g.yu(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:{}})})}))})}; zKa=function(a,b,c,d,e){var f,h,l;return g.H(function(m){if(m.j==1)return g.G(m,g.Su(),2);if(m.j!=3){f=m.B;if(!f)throw g.nu("rc");return g.G(m,g.GQ(f),3)}h=m.B;l=g.yu(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)}); return e?m.return(l.then(function(n){if(n===void 0)throw Error("No data from indexDb");return yKa(e,n)}).catch(function(n){throw new g.Mt("Error while reading chunk: "+n.name+", "+n.message); })):m.return(l)})}; g.wKa=function(a){return a?a==="music"?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1}; uKa=function(a,b){return""+a+"|"+(b?"v":"a")}; vKa=function(a){var b={};return Sr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; BKa=function(a){var b={},c={};a=g.v(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.AKa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.v(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(","); return c}; JQ=function(a){g.iy.call(this);this.j=null;this.C=new Tp;this.j=null;this.K=new Set;this.crossOrigin=a||""}; CKa=function(a,b,c){for(c=KQ(a,c);c>=0;){var d=a.levels[c];if(d.isLoaded(LQ(d,b))&&(d=g.MQ(d,b)))return d;c--}return g.MQ(a.levels[0],b)}; EKa=function(a,b,c){c=KQ(a,c);for(var d,e;c>=0;c--)if(d=a.levels[c],e=LQ(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.enqueue(f,{TZ:f,A_:e}))}DKa(a)}; DKa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=FKa(a,b)}}; FKa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.TZ].Ee(b.A_);c.onload=function(){var d=b.TZ,e=b.A_;a.j!==null&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);DKa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.LJ()-1);e=[e,d];a.publish("l",e[0],e[1])}; return c}; g.NQ=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}; LQ=function(a,b){return Math.floor(b/(a.columns*a.rows))}; g.MQ=function(a,b){b>=a.vN()&&a.lz();var c=LQ(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.lz()+1-d*c;if(f1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; GKa=function(a,b,c){return(a=a.levels[b])?a.yI(c):-1}; KQ=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1}; PQ=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.NQ.call(this,a,b,c,0);this.B=null;this.G=d?2:0}; QQ=function(a,b,c,d){OQ.call(this,a,0,void 0,b,!(d===void 0||!d));for(a=0;a1&&g.Kx(new g.Mt("There are more than one engaged_view_urls.")),a.zj=Bf.engagedViewUrls[0])}}var ao=a.playerResponse.playerCueRanges;ao&&ao.length>0&&(a.cueRanges=ao);var qy=a.playerResponse.playerCueRangeSet;qy&&g.XQ(a,qy);a:{var aH=a.playerResponse.adPlacements;if(aH)for(var bH=g.v(aH),Qz=bH.next();!Qz.done;Qz= bH.next()){var cH=void 0,dH=void 0,Rz=(cH=Qz.value.adPlacementRenderer)==null?void 0:(dH=cH.renderer)==null?void 0:dH.videoAdTrackingRenderer;if(Rz){var eH=Rz;break a}}eH=null}var fH=eH;ca&&ca.promotedPlaybackTracking&&fH&&g.Kx(new g.Mt("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));fH&&(a.E2=!0);var gH=a.playerResponse.playerAds;if(gH)for(var lS=b,hH=g.v(gH),Sz=hH.next();!Sz.done;Sz=hH.next()){var iH=Sz.value;if(iH){var jH=iH.playerLegacyDesktopWatchAdsRenderer; if(jH){var Yo=jH.playerAdParams;if(Yo){Yo.autoplay=="1"&&(a.Ik=!0,a.Iq=!0);a.Qv=Yo.encodedAdSafetyReason||null;Yo.showContentThumbnail!==void 0&&(a.Wl=!!Yo.showContentThumbnail);lS.enabled_engage_types=Yo.enabledEngageTypes;break}}}}var Ke=a.playerResponse.playerConfig;if(Ke){var Cm=Ke.manifestlessWindowedLiveConfig;if(Cm){var Tz=Number(Cm.minDvrSequence),Uz=Number(Cm.maxDvrSequence),Vz=Number(Cm.minDvrMediaTimeMs),Wz=Number(Cm.maxDvrMediaTimeMs),av=Number(Cm.startWalltimeMs);Tz&&(a.bf=Tz);Vz&&(a.fb= Vz/1E3);Uz&&(a.Ji=Uz);Wz&&(a.Tb=Wz/1E3);av&&(a.Lc=av/1E3);(Tz||Vz)&&(Uz||Wz)&&(a.Xa=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.ge=!1)}var Zo=Ke.daiConfig;if(Zo){if(Zo.enableDai){a.Ef=!0;var kH=Zo.enableServerStitchedDai;kH&&(a.enableServerStitchedDai=kH);var lH=Zo.enablePreroll;lH&&(a.enablePreroll=lH)}var mH;if(Zo.daiType==="DAI_TYPE_SS_DISABLED"||((mH=Zo.debugInfo)==null?0:mH.isDisabledUnpluggedChannel))a.XD=!0;Zo.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(a.xU=!0)}var dl=Ke.audioConfig;if(dl){var Xz= dl.loudnessDb;Xz!=null&&(a.Rf=Xz);var bv=dl.trackAbsoluteLoudnessLkfs;bv!=null&&(a.F1=bv);var nH=dl.loudnessTargetLkfs;nH!=null&&(a.loudnessTargetLkfs=nH);dl.audioMuted&&(a.Tk=!0);dl.muteOnStart&&(a.DX=!0);var cv=dl.loudnessNormalizationConfig;if(cv){cv.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);cv.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var mS=cv.minimumLoudnessTargetLkfs;mS!=null&&(a.minimumLoudnessTargetLkfs=mS);var xr=cv.maxStatefulTimeThresholdSec; xr!=null&&(a.maxStatefulTimeThresholdSec=xr)}}var V9=Ke.playbackEndConfig;if(V9){var fFa=V9.endSeconds,gFa=V9.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(fFa&&(a.endSeconds=fFa),gFa&&(a.limitedPlaybackDurationInSeconds=gFa))}var nS=Ke.fairPlayConfig;if(nS){var hFa=nS.certificate;hFa&&(a.bb=nP(hFa));var iFa=Number(nS.keyRotationPeriodMs);iFa>0&&(a.uw=iFa);var jFa=Number(nS.keyPrefetchMarginMs);jFa>0&&(a.pw=jFa)}var Yz=Ke.playbackStartConfig;if(Yz){a.UC=Number(Yz.startSeconds);var kFa=Yz.liveUtcStartSeconds, lFa=!!a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0;kFa&&!lFa&&(a.liveUtcStartSeconds=Number(kFa));var W9=Yz.startPosition;if(W9){var mFa=W9.utcTimeMillis;mFa&&!lFa&&(a.liveUtcStartSeconds=Number(mFa)*.001);var nFa=W9.streamTimeMillis;nFa&&(a.Yd=Number(nFa)*.001)}a.progressBarStartPosition=Yz.progressBarStartPosition;a.progressBarEndPosition=Yz.progressBarEndPosition}else{var X9=Ke.skippableSegmentsConfig;if(X9){var oFa=X9.introSkipDurationMs;oFa&&(a.WD=Number(oFa)/1E3);var pFa=X9.outroSkipDurationMs; pFa&&(a.hI=Number(pFa)/1E3)}}var Y9=Ke.skippableIntroConfig;if(Y9){var qFa=Number(Y9.startMs),rFa=Number(Y9.endMs);isNaN(qFa)||isNaN(rFa)||(a.yj=qFa,a.Qf=rFa)}var sFa=Ke.streamSelectionConfig;sFa&&(a.Td=Number(sFa.maxBitrate));var tFa=Ke.vrConfig;tFa&&(a.PA=tFa.partialSpherical=="1");var oH=Ke.webDrmConfig;if(oH){oH.skipWidevine&&(a.EX=!0);var uFa=oH.widevineServiceCert;uFa&&(a.jm=nP(uFa));oH.useCobaltWidevine&&(a.useCobaltWidevine=!0);oH.startWithNoQualityConstraint&&(a.Sj=!0)}var $o=Ke.mediaCommonConfig; if($o){var oS=$o.dynamicReadaheadConfig;if(oS){a.maxReadAheadMediaTimeMs=oS.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=oS.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=oS.readAheadGrowthRateMs||NaN;var vFa,wFa=$o==null?void 0:(vFa=$o.mediaUstreamerRequestConfig)==null?void 0:vFa.videoPlaybackUstreamerConfig;wFa&&(a.zi=nP(wFa));var Z9=$o==null?void 0:$o.sabrContextUpdates;if(Z9&&Z9.length>0)for(var xFa=g.v(Z9),$9=xFa.next();!$9.done;$9=xFa.next()){var dv=$9.value;if(dv.type&&dv.value){var ifb= {type:dv.type,scope:dv.scope,value:nP(dv.value)||void 0,sendByDefault:dv.sendByDefault};a.sabrContextUpdates.set(dv.type,ifb)}}}var yFa=$o.serverPlaybackStartConfig;yFa&&(a.serverPlaybackStartConfig=yFa);$o.useServerDrivenAbr&&(a.LN=!0);var zFa=$o.requestPipeliningConfig;zFa&&(a.requestPipeliningConfig=zFa)}var AFa=Ke.inlinePlaybackConfig;AFa&&(a.H_=!!AFa.showAudioControls);var pS=Ke.embeddedPlayerConfig;if(pS){a.embeddedPlayerConfig=pS;var a$=pS.embeddedPlayerMode;if(a$){var BFa=a.U();BFa.Fa=a$; BFa.C=a$==="EMBEDDED_PLAYER_MODE_PFL"}var CFa=pS.permissions;CFa&&(a.allowImaMonetization=!!CFa.allowImaMonetization)}var DFa=Ke.ssapConfig;DFa&&(a.e1=DFa.ssapPrerollEnabled||!1);var qS=Ke.webPlayerConfig;qS&&(qS.gatewayExperimentGroup&&(a.gatewayExperimentGroup=qS.gatewayExperimentGroup),qS.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var el=a.playerResponse.streamingData;if(el){var EFa=el.adaptiveFormats;if(EFa){var FFa=el.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&FFa)for(var GFa= g.v(EFa),b$=GFa.next();!b$.done;b$=GFa.next()){var rS=b$.value;!rS.url&&rS.distinctParams&&(rS.url=FFa+"&"+rS.distinctParams)}}var c$=el.formats;if(c$){for(var pH=[],HFa=g.v(c$),d$=HFa.next();!d$.done;d$=HFa.next()){var e$=d$.value;pH.push(e$.itag+"/"+e$.width+"x"+e$.height)}a.SD=pH.join(",");pH=[];for(var IFa=g.v(c$),f$=IFa.next();!f$.done;f$=IFa.next()){var qH=f$.value,rH={itag:qH.itag,type:qH.mimeType,quality:qH.quality},JFa=qH.url;JFa&&(rH.url=JFa);var sS=MM(qH),jfb=sS.nE,kfb=sS.GH,lfb=sS.s;sS.TY&& (rH.url=jfb,rH.sp=kfb,rH.s=lfb);pH.push(g.$i(rH))}a.Uf=pH.join(",")}var g$$=el.hlsFormats;if(g$$){var KFa=Ke||null,tS={};if(KFa){var h$=KFa.audioPairingConfig;if(h$&&h$.pairs)for(var LFa=g.v(h$.pairs),i$=LFa.next();!i$.done;i$=LFa.next()){var MFa=i$.value,j$=MFa.videoItag;tS[j$]||(tS[j$]=[]);tS[j$].push(MFa.audioItag)}}for(var NFa={},OFa=g.v(g$$),k$=OFa.next();!k$.done;k$=OFa.next()){var PFa=k$.value;NFa[PFa.itag]=PFa.bitrate}for(var QFa=[],RFa=g.v(g$$),l$=RFa.next();!l$.done;l$=RFa.next()){var hi= l$.value,Dm={itag:hi.itag,type:hi.mimeType,url:hi.url,bitrate:hi.bitrate,width:hi.width,height:hi.height,fps:hi.fps},uS=hi.audioTrack;if(uS){var SFa=uS.displayName;SFa&&(Dm.name=SFa,Dm.audio_track_id=uS.id,uS.audioIsDefault&&(Dm.is_default="1"))}if(hi.drmFamilies){for(var TFa=[],UFa=g.v(hi.drmFamilies),m$=UFa.next();!m$.done;m$=UFa.next())TFa.push(yO[m$.value]);Dm.drm_families=TFa.join(",")}var vS=tS[hi.itag];if(vS&&vS.length){Dm.audio_itag=vS.join(",");var VFa=NFa[vS[0]];VFa&&(Dm.bitrate+=VFa)}var WFa= REa(hi);WFa&&(Dm.eotf=WFa);hi.audioChannels&&(Dm.audio_channels=hi.audioChannels);QFa.push(g.$i(Dm))}a.hlsFormats=QFa.join(",")}var n$=el.licenseInfos;if(n$&&n$.length>0){for(var XFa={},YFa=g.v(n$),o$=YFa.next();!o$.done;o$=YFa.next()){var ZFa=o$.value,$Fa=ZFa.drmFamily,aGa=ZFa.url;$Fa&&aGa&&(XFa[yO[$Fa]]=aGa)}a.me=XFa}var bGa=el.drmParams;bGa&&(a.drmParams=bGa);var cGa=el.dashManifestUrl;cGa&&(a.Xc=g.aj(cGa,{cpn:a.clientPlaybackNonce}));var dGa=el.hlsManifestUrl;dGa&&(a.hlsvp=dGa);var eGa=el.probeUrl; eGa&&(a.probeUrl=eE(g.aj(eGa,{cpn:a.clientPlaybackNonce})));var fGa=el.serverAbrStreamingUrl;fGa&&(a.Vl=new g.GM(fGa,!0))}var gGa=a.playerResponse.trackingParams;gGa&&(a.ra=gGa);var fd=a.playerResponse.videoDetails;if(fd){var Em=b,p$=fd.videoId;p$&&(a.videoId=p$,Em.video_id||(Em.video_id=p$));var hGa=fd.channelId;hGa&&(a.N.uid=hGa.substr(2));var q$=fd.title;q$&&(a.title=q$,Em.title||(Em.title=q$));var r$=fd.lengthSeconds;r$&&(a.lengthSeconds=Number(r$),Em.length_seconds||(Em.length_seconds=r$));var iGa= fd.keywords;iGa&&(a.keywords=OKa(iGa));var s$=fd.channelId;s$&&(a.Rl=s$,Em.ucid||(Em.ucid=s$));var jGa=fd.viewCount;jGa&&(a.rawViewCount=Number(jGa));var t$=fd.author;t$&&(a.author=t$,Em.author||(Em.author=t$));var kGa=fd.shortDescription;kGa&&(a.shortDescription=kGa);var lGa=fd.isCrawlable;lGa&&(a.isListed=lGa);var mGa=fd.musicVideoType;mGa&&(a.musicVideoType=mGa);var u$=fd.isLive;u$!=null&&(a.isLivePlayback=u$);if(u$||fd.isUpcoming)a.isPremiere=!fd.isLiveContent;var nGa=fd.thumbnail;nGa&&(a.Z=tQ(nGa)); var oGa=fd.isExternallyHostedPodcast;oGa&&(a.isExternallyHostedPodcast=oGa);var v$=fd.viewerLivestreamJoinPosition;if(v$==null?0:v$.utcTimeMillis)a.FC=$d(v$.utcTimeMillis);var pGa=Ke||null,w$=b;fd.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);fd.isUpcoming&&(a.isUpcoming=!0);if(fd.isPostLiveDvr){a.ge=!0;var qGa=fd.latencyClass;qGa&&(a.latencyClass=WKa[qGa]||"UNKNOWN");fd.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var x$=!1;if(a.Bb)a.allowLiveDvr=hP()?!0:Os&&YQ<5?!1:!0,a.isLivePlayback= !0;else if(fd.isLive){w$.livestream="1";a.allowLiveDvr=fd.isLiveDvrEnabled?hP()?!0:Os&&YQ<5?!1:!0:!1;a.Na=27;fd.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var sGa=fd.latencyClass;sGa&&(a.latencyClass=WKa[sGa]||"UNKNOWN");var tGa=fd.liveChunkReadahead;tGa&&(a.liveChunkReadahead=tGa);var Zz=pGa&&pGa.livePlayerConfig;if(Zz){Zz.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Zz.hasSubfragmentedWebm&&(a.vF=!0);Zz.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var uGa=Zz.liveExperimentalContentId; uGa&&(a.liveExperimentalContentId=Number(uGa));var vGa=Zz.isLiveHeadPlayable;a.L("html5_live_head_playable")&&vGa!=null&&(a.isLiveHeadPlayable=vGa)}x$=!0}else fd.isUpcoming&&(x$=!0);x$&&(a.isLivePlayback=!0,w$.adformat&&w$.adformat.split("_")[1]!=="8"||a.Ka.push("heartbeat"),a.Cq=!0)}var wGa=fd.isPrivate;wGa!==void 0&&(a.isPrivate=Us(a.isPrivate,wGa))}if(ba){var xGa=fd||null,yGa=!1,$z=ba.errorScreen;yGa=$z&&($z.playerLegacyDesktopYpcOfferRenderer||$z.playerLegacyDesktopYpcTrailerRenderer||$z.ypcTrailerRenderer)? !0:xGa&&xGa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ba.status);if(!yGa){a.errorCode=WJa(ba.errorCode)||"auth";var wS=$z&&$z.playerErrorMessageRenderer;if(wS){a.playerErrorMessageRenderer=wS;var zGa=wS.reason;zGa&&(a.errorReason=g.uy(zGa));var y$=wS.subreason;y$&&(a.On=g.uy(y$),a.ww=y$)}else a.errorReason=ba.reason||null;var z$=ba.status;if(z$==="LOGIN_REQUIRED")a.errorDetail="1";else if(z$==="CONTENT_CHECK_REQUIRED")a.errorDetail="2";else if(z$==="AGE_CHECK_REQUIRED"){var AGa= ba.errorScreen,BGa=AGa&&AGa.playerKavRenderer;a.errorDetail=BGa&&BGa.kavUrl?"4":"3"}else a.errorDetail=ba.isBlockedInRestrictedMode?"5":"0"}}var CGa=a.playerResponse.interstitialPods;CGa&&jKa(a,CGa);a.Wa&&a.eventId&&(a.Wa=Xr(a.Wa,{ei:a.eventId}));var A$=a.playerResponse.captions;if(A$&&A$.playerCaptionsTracklistRenderer)a:{var Fm=A$.playerCaptionsTracklistRenderer;a.captionTracks=[];if(Fm.captionTracks)for(var DGa=g.v(Fm.captionTracks),B$=DGa.next();!B$.done;B$=DGa.next()){var Gm=B$.value,EGa=LKa(Gm.baseUrl); if(!EGa)break a;var C$={is_translateable:!!Gm.isTranslatable,languageCode:Gm.languageCode,languageName:Gm.name&&g.uy(Gm.name),url:EGa,vss_id:Gm.vssId,kind:Gm.kind};C$.name=Gm.trackName;C$.displayName=Gm.name&&g.uy(Gm.name);a.captionTracks.push(new g.oQ(C$))}a.DD=Fm.audioTracks||[];a.HZ=Fm.defaultAudioTrackIndex||0;a.dw=[];if(Fm.translationLanguages)for(var FGa=g.v(Fm.translationLanguages),D$=FGa.next();!D$.done;D$=FGa.next()){var aA=D$.value,fv={};fv.languageCode=aA.languageCode;fv.languageName=g.uy(aA.languageName); if(aA.translationSourceTrackIndices){fv.translationSourceTrackIndices=[];for(var GGa=g.v(aA.translationSourceTrackIndices),E$=GGa.next();!E$.done;E$=GGa.next())fv.translationSourceTrackIndices.push(E$.value)}if(aA.excludeAudioTrackIndices){fv.excludeAudioTrackIndices=[];for(var HGa=g.v(aA.excludeAudioTrackIndices),F$=HGa.next();!F$.done;F$=HGa.next())fv.excludeAudioTrackIndices.push(F$.value)}a.dw.push(fv)}a.FD=[];if(Fm.defaultTranslationSourceTrackIndices)for(var IGa=g.v(Fm.defaultTranslationSourceTrackIndices), G$=IGa.next();!G$.done;G$=IGa.next())a.FD.push(G$.value);a.Tv=!!Fm.contribute&&!!Fm.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&a.clipConfig.startTimeMs!=null&&(a.UC=Number(a.clipConfig.startTimeMs)*.001);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&lKa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var JGa; a.compositeLiveIngestionOffsetToken=(JGa=a.playerResponse.playbackTracking)==null?void 0:JGa.compositeLiveIngestionOffsetToken;var KGa;a.compositeLiveStatusToken=(KGa=a.playerResponse.playbackTracking)==null?void 0:KGa.compositeLiveStatusToken}VQ(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var LGa=b.hlsdvr;LGa!=null&&(a.allowLiveDvr=LGa=="1"?hP()?!0:Os&&YQ<5?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Qv||(a.Qv=b.encoded_ad_safety_reason||null);a.zW=b.agcid||null;a.aD=b.ad_id||null;a.eD=b.ad_sys|| null;a.QD=b.encoded_ad_playback_context||null;a.Tk=Us(a.Tk,b.infringe||b.muted);a.Wea=b.authkey;a.zca=b.authuser;a.mutedAutoplay=Us(a.mutedAutoplay,b&&b.playmuted);a.CD=Us(a.CD,b&&b.mutedautoplay);var xS=b.length_seconds;xS&&(a.lengthSeconds=typeof xS==="string"?$d(xS):xS);if(a.isAd()||a.An||!g.at(g.NP(a.Da)))a.endSeconds=Ws(a.endSeconds,a.hI||b.end||b.endSeconds);else{var yS=a.lengthSeconds;switch(g.NP(a.Da)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":yS>30?a.limitedPlaybackDurationInSeconds= 30:yS<30&&yS>10&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=yS*.2}}a.ra=Xs(a.ra,b.itct);a.YD=Us(a.YD,b.noiba);a.LF=Us(a.LF,b.is_live_destination);a.isLivePlayback=Us(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.dc();b.isUpcoming&&(a.isUpcoming=Us(a.isUpcoming,b.isUpcoming));a.ge=Us(a.ge,b.post_live_playback);a.Xa&&(a.ge=!1);a.isMdxPlayback=Us(a.isMdxPlayback,b.mdx); var zS=b.mdx_control_mode;zS&&(a.mdxControlMode=typeof zS==="number"?zS:$d(zS));a.isInlinePlaybackNoAd=Us(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Bc=Ws(a.Bc,b.reload_count);a.reloadReason=Xs(a.reloadReason,b.reload_reason);a.Wl=Us(a.Wl,b.show_content_thumbnail);a.SF=Us(a.SF,b.utpsa);a.GD=Us(a.GD,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.ID=b.tkn||null;var MGa=sQ(b);Object.keys(MGa).length>0&&(a.Z=MGa);a.Ca=Xs(a.Ca,b.vvt);a.mdxEnvironment=Xs(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.T3=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=Xs(a.playlistId,b.list);b.index&&(a.playlistIndex=a.playlistIndex===void 0?Ws(0,b.index):Ws(a.playlistIndex,b.index));a.kW=b.pyv_view_beacon_url;a.sW=b.pyv_quartile25_beacon_url;a.uW=b.pyv_quartile50_beacon_url;a.wW=b.pyv_quartile75_beacon_url;a.qW= b.pyv_quartile100_beacon_url;var NGa=b.session_data;!a.yW&&NGa&&(a.yW=Rr(NGa,"&").feature);a.isFling=Ws(a.isFling?1:0,b.is_fling)==1;a.vnd=Ws(a.vnd,b.vnd);a.forceAdsUrl=Xs(a.forceAdsUrl,b.force_ads_url);a.dj=Xs(a.dj,b.ctrl);a.Kj=Xs(a.Kj,b.ytr);a.Mw=b.ytrcc;a.BW=b.ytrexp;a.hD=b.ytrext;a.qc=Xs(a.qc,b.adformat);a.ZB=Xs(a.ZB,b.attrib);a.slotPosition=Ws(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Np=Us(a.Np,b.ssrt);a.videoId=Zs(b)||a.videoId;a.G=Xs(a.G,b.vss_credentials_token);a.yn=Xs(a.yn,b.vss_credentials_token_type); a.Gj=Us(a.Gj,b.audio_only);a.NN=Us(a.NN,b.aac_high);a.VC=Us(a.VC,b.prefer_low_quality_audio);a.KN=Us(a.KN,b.uncap_inline_quality);a.L("html5_enable_qoe_cat_list")?b.qoe_cat&&(a.zp=a.zp.concat(b.qoe_cat.split(","))):a.uh=Xs(a.uh,b.qoe_cat);a.Cn=Us(a.Cn,b.download_media);var OGa=b.prefer_gapless;var mfb=OGa!=null?Us(a.Y,OGa):a.Y?a.Y:a.Da.preferGapless&&a.Da.supportsGaplessShorts();a.Y=mfb;KAa(a.playerResponse)&&(a.adModule=!0,a.Ka.push("ad"));var PGa=b.adaptive_fmts;PGa&&(a.adaptiveFormats=PGa,a.oa("adpfmts", {},!0));var QGa=b.allow_embed;QGa&&(a.allowEmbed=QGa=="1");var RGa=b.backgroundable;RGa&&(a.backgroundable=RGa=="1");var SGa=b.autonav;SGa&&(a.isAutonav=SGa=="1");var H$=b.autoplay;H$&&(a.Iq=H$=="1",a.Ik=H$=="1");var TGa=b.iv_load_policy;TGa&&(a.annotationsLoadPolicy=Vs(a.annotationsLoadPolicy,TGa,OP));var UGa=b.cc_lang_pref;UGa&&(a.captionsLanguagePreference=Xs(UGa,a.captionsLanguagePreference));var VGa=b.cc_load_policy;VGa&&(a.TC=Vs(a.TC,VGa,OP));var WGa;a.deviceCaptionsOn=(WGa=b.device_captions_on)!= null?WGa:void 0;var XGa;a.UZ=(XGa=b.device_captions_lang_pref)!=null?XGa:"";var YGa;a.MN=(YGa=b.viewer_selected_caption_langs)!=null?YGa:[];if(!a.L("html5_enable_ssap_entity_id")){var ZGa=b.cached_load;ZGa&&(a.Fp=Us(a.Fp,ZGa))}b.dash=="0"&&(a.LD=!0);var $Ga=b.dashmpd;$Ga&&(a.Xc=g.aj($Ga,{cpn:a.clientPlaybackNonce}));var aHa=b.delay;aHa&&(a.Kb=$d(aHa));var bHa=a.hI||b.end;bHa!=void 0&&(a.clipEnd=Ws(a.clipEnd,bHa));var cHa=b.fmt_list;cHa&&(a.SD=cHa);b.heartbeat_preroll&&a.Ka.push("heartbeat");a.zn= -Math.floor(Math.random()*10);a.Lv=-Math.floor(Math.random()*40);var dHa=b.is_listed;dHa&&(a.isListed=Us(a.isListed,dHa));var eHa=b.is_private;eHa&&(a.isPrivate=Us(a.isPrivate,eHa));var fHa=b.is_dni;fHa&&(a.Ff=Us(a.Ff,fHa));var gHa=b.dni_color;gHa&&(a.Pp=Xs(a.Pp,gHa));var hHa=b.pipable;hHa&&(a.pipable=Us(a.pipable,hHa));a.ZW=a.pipable&&a.Da.Qq;a.KX=a.ZW&&!a.Da.showMiniplayerButton;var iHa=b.paid_content_overlay_duration_ms;iHa&&(a.paidContentOverlayDurationMs=$d(iHa));var jHa=b.paid_content_overlay_text; jHa&&(a.paidContentOverlayText=jHa);var kHa=b.url_encoded_fmt_stream_map;kHa&&(a.Uf=kHa);var lHa=b.hls_formats;lHa&&(a.hlsFormats=lHa);var mHa=b.hlsvp;mHa&&(a.hlsvp=mHa);var AS=b.live_start_walltime;AS&&(a.TH=typeof AS==="number"?AS:$d(AS));var BS=b.live_manifest_duration;BS&&(a.Sl=typeof BS==="number"?BS:$d(BS));var nHa=b.player_params;nHa&&(a.playerParams=nHa);var oHa=b.partnerid;oHa&&(a.Na=Ws(a.Na,oHa));var pHa=b.probe_url;pHa&&(a.probeUrl=eE(g.aj(pHa,{cpn:a.clientPlaybackNonce})));var I$=b.pyv_billable_url; I$&&lva(I$)&&(a.zj=I$);var J$=b.pyv_conv_url;J$&&lva(J$)&&(a.pW=J$);PKa(a,b);a.startSeconds>0||(a.startSeconds=Ws(a.startSeconds,a.UC||a.WD||b.start||b.startSeconds),a.Nb=a.startSeconds);if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var qHa=b.live_utc_start;if(qHa!=null)a.liveUtcStartSeconds=Number(qHa);else{var K$=a.startSeconds;K$&&isFinite(K$)&&K$>1E9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var rHa=b.utc_start_millis;rHa&&(a.liveUtcStartSeconds= Number(rHa)*.001)}var sHa=b.stream_time_start_millis;sHa&&(a.Yd=Number(sHa)*.001);var tHa=a.WD||b.start;tHa==void 0||b.resume=="1"||a.isLivePlayback||(a.clipStart=Ws(a.clipStart,tHa));var uHa=b.url_encoded_third_party_media;uHa&&(a.im=Ur(uHa));var L$=b.ypc_offer_button_formatted_text;if(L$){var vHa=JSON.parse(L$);a.ON=vHa!=null?vHa:null;a.GZ=L$}var wHa=b.ypc_offer_button_text;wHa&&(a.PC=wHa);var xHa=b.ypc_offer_description;xHa&&(a.Qq=xHa);var yHa=b.ypc_offer_headline;yHa&&(a.Zy=yHa);var zHa=b.ypc_full_video_message; zHa&&(a.jq=zHa);var AHa=b.ypc_offer_id;AHa&&(a.lm=AHa);var BHa=b.ypc_buy_url;BHa&&(a.MC=BHa);var CHa=b.ypc_item_thumbnail;CHa&&(a.NC=CHa);var DHa=b.ypc_item_title;DHa&&(a.uq=DHa);var EHa=b.ypc_item_url;EHa&&(a.OC=EHa);var FHa=b.ypc_vid;FHa&&(a.Xq=FHa);b.ypc_overlay_timeout&&(a.Tq=Number(b.ypc_overlay_timeout));var GHa=b.ypc_trailer_player_vars;GHa&&(a.mm=Tr(GHa));var HHa=b.ypc_original_itct;HHa&&(a.p4=HHa);a.Rl=Xs(a.Rl,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=Us(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=Us(a.N.rmktEnabled,b.rmktEnabled);a.VA=b.storyboard_spec||null;a.yw=b.live_storyboard_spec||null;a.FU=b.iv_endscreen_url||null;a.bG=Us(a.bG,b.iv3_module);a.Cq=Us(a.Cq,b.ypc_license_checker_module);a.Hj=Us(a.Hj,b.ypc_module);a.Bi=Us(a.Bi,b.ypc_clickwrap_module);a.Hj&&a.Ka.push("ypc");a.Bi&&a.Ka.push("ypc_clickwrap"); a.bW={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};KKa(a,b);var IHa=b.cotn; IHa&&(a.cotn=IHa);if(XKa(a))ZQ(a)&&(a.isLivePlayback&&a.Xc&&(a.wj=!0),a.bb&&(a.vp=!0));else if(YKa(a))a.wj=!0;else{var LHa,MHa,NHa=((LHa=a.playerResponse)==null?void 0:(MHa=LHa.streamingData)==null?void 0:MHa.adaptiveFormats)||[];if(NHa.length>0)var tH=ZKa(a,NHa);else{var PHa=a.adaptiveFormats;if(PHa&&!ZQ(a)){$Q(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(KO=!0);var bA=aR(PHa),M$=a.me,QHa=a.lengthSeconds,nfb=a.isLivePlayback,uH=a.ge,cA=a.Da,ofb=KHa(bA);if(nfb||uH){var Yj=new wO("",cA==null? void 0:cA.experiments,!0);Yj.dc=!0;Yj.isManifestless=!0;Yj.B=!uH;Yj.isLive=!uH;Yj.ge=uH;for(var RHa=g.v(bA),N$=RHa.next();!N$.done;N$=RHa.next()){var dA=N$.value,SHa=AO(dA,M$),gv=BO(dA.url,dA.sp,dA.s),THa=gv.get("id");THa&&THa.includes("%7E")&&(Yj.ra=!0);var pfb=Number(dA.target_duration_sec)||5,qfb=Number(dA.max_dvr_duration_sec)||14400,UHa=Number(gv.get("mindsq")||gv.get("min_sq")||"0"),VHa=Number(gv.get("maxdsq")||gv.get("max_sq")||"0")||Infinity;Yj.bf=Yj.bf||UHa;Yj.Ji=Yj.Ji||VHa;var rfb=!YF(SHa.mimeType); gv&&tO(Yj,new fO(gv,SHa,{Oj:pfb,In:rfb,Br:qfb,bf:UHa,Ji:VHa,kB:300,ge:uH}))}var WHa=Yj}else{if(ofb==="FORMAT_STREAM_TYPE_OTF"){var DS=QHa;DS=DS===void 0?0:DS;var eA=new wO("",cA==null?void 0:cA.experiments,!1);eA.duration=DS||0;for(var XHa=g.v(bA),O$=XHa.next();!O$.done;O$=XHa.next()){var fA=O$.value,P$=AO(fA,M$,eA.duration),Q$=BO(fA.url,fA.sp,fA.s);if(Q$)if(P$.streamType==="FORMAT_STREAM_TYPE_OTF")tO(eA,new gO(Q$,P$,"sq/0"));else{var sfb=KN(fA.init),tfb=KN(fA.index);tO(eA,new qO(Q$,P$,sfb,tfb))}}eA.isOtf= !0;var YHa=eA}else{var ES=QHa;ES=ES===void 0?0:ES;var FS=new wO("",cA==null?void 0:cA.experiments,!1);FS.duration=ES||0;for(var ZHa=g.v(bA),R$=ZHa.next();!R$.done;R$=ZHa.next()){var gA=R$.value,ufb=AO(gA,M$,FS.duration),vfb=KN(gA.init),wfb=KN(gA.index),$Ha=BO(gA.url,gA.sp,gA.s);$Ha&&tO(FS,new qO($Ha,ufb,vfb,wfb))}YHa=FS}WHa=YHa}var S$=WHa;if(bA.length>0){var aIa=bA[0];if(a.U().playerStyle==="hangouts-meet"&&aIa.url){var xfb=g.Vr(aIa.url);a.fq=a.fq||Number(xfb.expire)}}var yfb=a.isLivePlayback&&!a.ge&& !a.Xa&&!a.isPremiere;a.L("html5_live_head_playable")&&(!bR(a)&&yfb&&a.oa("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(S$.bb=!0));S$.Wa=cR(a);tH=S$}else tH=null;a.oa("pafmts",{isManifestFilled:!!tH})}if(tH){dR(a,tH);var bIa=!0}else bIa=!1;bIa?a.enableServerStitchedDai=a.enableServerStitchedDai&&eR(a):!a.Xc||a.Da.qa==="yt"&&a.dc()&&a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")||(a.wj=!0)}var U$=b.adpings;U$&&(a.Pv=U$?Tr(U$):null);var cIa=b.feature;cIa&&(a.Ap=cIa); var dIa=b.referrer;dIa&&(a.referrer=dIa);a.clientScreenNonce=Xs(a.clientScreenNonce,b.csn);a.mH=Ws(a.mH,b.root_ve_type);a.wp=Ws(a.wp,b.kids_age_up_mode);b.kids_app_info!=void 0&&(a.kidsAppInfo=b.kids_app_info);a.wB=Us(a.wB,b.upg_content_filter_mode);a.unpluggedFilterModeType=Ws(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var eIa=b.unplugged_location_info;eIa&&(a.qa=eIa);var fIa=b.unplugged_partner_opt_out;fIa&&(a.XC=Xs("",fIa));a.mw=Us(a.mw,b.disable_watch_next);a.tp=Xs(a.tp,b.internal_ip_override); a.RE=!!b.is_yto_interstitial;(a.interstitials.length||a.RE)&&a.Ka.push("yto");var gIa=b.Tm;gIa&&(a.Tm=gIa);b.uM&&(a.uM=b.uM);var hIa;a.Va=(hIa=b.csi_timer)!=null?hIa:"";a.En=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var hv=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&hv&&YJa(a,hv);if(hv==null?0:hv.ustreamerConfig)a.jp=nP(hv.ustreamerConfig);var iIa,jIa,kIa=hv==null?void 0:(iIa=hv.loggingContext)==null?void 0:(jIa=iIa.qoeLoggingContext)==null?void 0:jIa.serializedContextData; kIa&&(a.j4=kIa);g.EP(a.Da)&&a.Da.Tl&&(a.embedsRct=Xs(a.embedsRct,b.rct),a.embedsRctn=Xs(a.embedsRctn,b.rctn));a.Tl=a.Tl||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)}; NKa=function(a,b,c){var d,e=(d=b.cpnInfo)==null?void 0:d.cpn;a.playerResponseCpn=e!=null?e:"";g.fR(a)&&!e&&a.Ay("ssei","eim_"+a.clientPlaybackNonce);var f;return((f=b.cacheMetadata)==null?0:f.isCacheHit)||a.Fp||!e?"":(gR.has(e)?c="":(b=$Ka.push(e),gR.add(e),b>(c!=null?c:50)&&(c=$Ka.shift())&&gR.delete(c),c=e),e!==c&&a.Ay("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)}; VQ=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.XQ(a,e);var f=a.Ra.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.R(l,aLa),a.L("web_player_autonav_use_server_provided_state")&&hR(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.uy(p.title)),p.subtitle&&(b.subtitle=g.uy(p.subtitle)))}g.KP(a.Da)&&(a.ke=!!h.addToMenu);bLa(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.Tca=g.R(q,cLa));var r,t,u,x=g.R((r=a.getWatchNextResponse())==null?void 0: (t=r.playerOverlays)==null?void 0:(u=t.playerOverlayRenderer)==null?void 0:u.infoPanel,dLa);if(x){a.VD=Number(x==null?void 0:x.durationMs)||NaN;if(x==null?0:x.infoPanelOverviewViewModel)a.Pf=x==null?void 0:x.infoPanelOverviewViewModel;if(x==null?0:x.infoPanelDetailsViewModel)a.Wk=x==null?void 0:x.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var B,E,F=(B=a.getWatchNextResponse())==null?void 0:(E=B.contents)==null?void 0:E.twoColumnWatchNextResults;if(F){var I=F.desktopOverlay&& g.R(F.desktopOverlay,eLa);I&&(I.suppressShareButton&&(a.showShareButton=!1),I.suppressWatchLaterButton&&(a.ke=!1))}n&&fLa(a,b,n);var O=Ws(0,b.autoplay_count),N=a.getWatchNextResponse(),S,Y=(S=N.contents)==null?void 0:S.twoColumnWatchNextResults,la,oa,ba,qa=(la=N.playerOverlays)==null?void 0:(oa=la.playerOverlayRenderer)==null?void 0:(ba=oa.autoplay)==null?void 0:ba.playerOverlayAutoplayRenderer,P=nKa(a),wa,y=(wa=N.contents)==null?void 0:wa.singleColumnWatchNextResults;if(y){var W;if(((W=y.autoplay)== null?0:W.autoplay)&&!y.playlist){var xb=y.autoplay.autoplay.sets,Ua={},sb=new g.zQ(a.U()),Db=null,Na;if(xb){for(var ib=g.v(xb),Ab=ib.next();!Ab.done;Ab=ib.next()){var A=Ab.value.autoplayVideoRenderer;if(A&&A.compactVideoRenderer){Db=A.compactVideoRenderer;break}}if(Na=xb[0].autoplayVideo){var D=Na.clickTrackingParams;D&&(Ua.itct=D);Ua.autonav="1";Ua.playnext=String(O)}}else Ua.feature="related-auto";var C=g.R(Na,g.iR);if(Db){sb.videoId=Db.videoId;var J=Db.shortBylineText;J&&(sb.author=g.uy(J));var L= Db.title;L&&(sb.title=g.uy(L))}else C!=null&&C.videoId&&(sb.videoId=C.videoId);sb.GE=Ua;a.suggestions=[];a.Sv=sb}}if(P){for(var Z=[],ca=g.v(P),ia=ca.next();!ia.done;ia=ca.next()){var M=ia.value,ea=void 0,ka=null;if(M.endScreenVideoRenderer){var ya=M.endScreenVideoRenderer,Oa=ya.title;ka=new g.zQ(a.U());ka.videoId=ya.videoId;ka.lengthSeconds=ya.lengthInSeconds||0;var yb=ya.publishedTimeText;yb&&(ka.publishedTimeText=g.uy(yb));var Ub=ya.shortBylineText;Ub&&(ka.author=g.uy(Ub));var Eb=ya.shortViewCountText; Eb&&(ka.shortViewCount=g.uy(Eb));if(Oa){ka.title=g.uy(Oa);var Ya=Oa.accessibility;if(Ya){var sd=Ya.accessibilityData;sd&&sd.label&&(ka.ariaLabel=sd.label)}}var jd=ya.navigationEndpoint;if(jd){ea=jd.clickTrackingParams;var Sd=g.R(jd,g.iR),Ed=g.R(jd,g.Py);Sd?ka.HE=Sd:Ed!=null&&(ka.watchUrl=Ed.url)}var ze=ya.thumbnailOverlays;if(ze)for(var xc=g.v(ze),Ae=xc.next();!Ae.done;Ae=xc.next()){var Zf=Ae.value.thumbnailOverlayTimeStatusRenderer;if(Zf)if(Zf.style==="LIVE"){ka.isLivePlayback=!0;break}else if(Zf.style=== "UPCOMING"){ka.isUpcoming=!0;break}}ka.Z=tQ(ya.thumbnail)}else if(M.endScreenPlaylistRenderer){var Ue=M.endScreenPlaylistRenderer,Af=Ue.navigationEndpoint;if(!Af)continue;var Sc=g.R(Af,g.iR);if(!Sc)continue;var Yg=Sc.videoId;ka=new g.yQ(a.U());ka.playlistId=Ue.playlistId;ka.playlistLength=Number(Ue.videoCount)||0;ka.j=Yg||null;ka.videoId=Yg;var $h=Ue.title;$h&&(ka.title=g.uy($h));var Ah=Ue.shortBylineText;Ah&&(ka.author=g.uy(Ah));ea=Af.clickTrackingParams;ka.Z=tQ(Ue.thumbnail)}ka&&(ea&&(ka.sessionData= {itct:ea}),Z.push(ka))}a.suggestions=Z}if(qa){a.fW=!!qa.preferImmediateRedirect;a.Tf=a.Tf||!!qa.webShowNewAutonavCountdown;a.Xl=a.Xl||!!qa.webShowBigThumbnailEndscreen;if(a.Tf||a.Xl){var Zg=Y||null,Mc=new g.zQ(a.U());Mc.videoId=qa.videoId;var $f=qa.videoTitle;if($f){Mc.title=g.uy($f);var Vb=$f.accessibility;if(Vb){var Mi=Vb.accessibilityData;Mi&&Mi.label&&(Mc.ariaLabel=Mi.label)}}var Kk=qa.byline;Kk&&(Mc.author=g.uy(Kk));var lc=qa.publishedTimeText;lc&&(Mc.publishedTimeText=g.uy(lc));var Vn=qa.shortViewCountText; Vn&&(Mc.shortViewCount=g.uy(Vn));var Wn=qa.thumbnailOverlays;if(Wn)for(var fm=g.v(Wn),Xn=fm.next();!Xn.done;Xn=fm.next()){var Ni=Xn.value.thumbnailOverlayTimeStatusRenderer;if(Ni)if(Ni.style==="LIVE"){Mc.isLivePlayback=!0;break}else if(Ni.style==="UPCOMING"){Mc.isUpcoming=!0;break}else if(Ni.style==="DEFAULT"&&Ni.text){Mc.lengthText=g.uy(Ni.text);var ug=Ni.text.accessibility;if(ug){var gm=ug.accessibilityData;gm&&gm.label&&(Mc.Hx=gm.label||"")}break}}Mc.Z=tQ(qa.background);var Lk=qa.nextButton;if(Lk){var Bh= Lk.buttonRenderer;if(Bh){var Yn=Bh.navigationEndpoint;if(Yn){var Zn=g.R(Yn,g.iR);Zn&&(Mc.HE=Zn)}}}if(qa.topBadges){var $n=qa.topBadges[0];if($n){var Ch=g.R($n,gLa);Ch&&Ch.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Mc.uM=!0)}}var Mk=qa.alternativeTitle;Mk&&(Mc.Bt=g.uy(Mk));var Nk={autonav:"1",playnext:String(O)};Mc.playlistId&&(Nk.autoplay="1");if(Zg){var Aq,Bq,Cq,Dq,Eq=(Aq=Zg.autoplay)==null?void 0:(Bq=Aq.autoplay)==null?void 0:(Cq=Bq.sets)==null?void 0:(Dq=Cq[0])==null?void 0:Dq.autoplayVideo;if(Eq){var Bf= Eq.clickTrackingParams;Bf&&(Nk.itct=Bf);var ao=g.R(Eq,g.iR);ao&&(Mc.UW=ao)}}else if(qa){var qy,aH,bH,Qz=(qy=qa.nextButton)==null?void 0:(aH=qy.buttonRenderer)==null?void 0:(bH=aH.navigationEndpoint)==null?void 0:bH.clickTrackingParams;Qz&&(Nk.itct=Qz)}Nk.itct||(Nk.feature="related-auto");Mc.GE=Nk;a.suggestions||(a.suggestions=[]);a.Sv=Mc}qa.countDownSecs!=null&&(a.GY=qa.countDownSecs*1E3);qa.countDownSecsForFullscreen!=null&&(a.BD=qa.countDownSecsForFullscreen>=0?qa.countDownSecsForFullscreen*1E3: -1);if(a.L("web_player_autonav_next_button_renderer")){var cH;a.afa=(cH=qa.nextButton)==null?void 0:cH.buttonRenderer}var dH;a.Zea=(dH=qa.cancelButton)==null?void 0:dH.buttonRenderer;a.L("web_autonav_color_transition")&&qa.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.R(qa.watchToWatchTransitionRenderer,hLa))}var Rz=nKa(a);if(Rz){var eH,fH,gH,lS=Rz==null?void 0:(eH=Rz[0])==null?void 0:(fH=eH.endScreenVideoRenderer)==null?void 0:(gH=fH.navigationEndpoint)==null?void 0:gH.clickTrackingParams, hH=g.jR(a);lS&&hH&&(hH.sessionData={itct:lS})}a.Ra.currentVideoThumbnail&&(a.Z=tQ(a.Ra.currentVideoThumbnail));var Sz,iH,jH,Yo,Ke,Cm=(Sz=a.Ra)==null?void 0:(iH=Sz.contents)==null?void 0:(jH=iH.twoColumnWatchNextResults)==null?void 0:(Yo=jH.results)==null?void 0:(Ke=Yo.results)==null?void 0:Ke.contents;if(Cm&&Cm[1]){var Tz,Uz,Vz,Wz,av=(Tz=Cm[1].videoSecondaryInfoRenderer)==null?void 0:(Uz=Tz.owner)==null?void 0:(Vz=Uz.videoOwnerRenderer)==null?void 0:(Wz=Vz.thumbnail)==null?void 0:Wz.thumbnails;av&& av.length&&(a.profilePicture=av[av.length-1].url)}var Zo=Zs(b),kH,lH=(kH=a.getWatchNextResponse())==null?void 0:kH.onResponseReceivedEndpoints;if(lH)for(var mH=g.v(lH),dl=mH.next();!dl.done;dl=mH.next()){var Xz=dl.value;g.R(Xz,kR)&&(a.GU=g.R(Xz,kR));var bv=g.R(Xz,iLa),nH=void 0;if((nH=bv)==null?0:nH.entityKeys)a.zw=bv.entityKeys||[],bv.visibleOnLoadKeys&&(a.visibleOnLoadKeys=bv.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var cv=g.lR.getState().entities,mS=g.DL("visibility_override","markersVisibilityOverrideEntity"); var xr=FL(cv,"markersVisibilityOverrideEntity",mS);a.jf=(xr==null?void 0:xr.videoId)===(a.videoId||Zo)&&(xr==null?0:xr.visibilityOverrideMarkersKey)?xr.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.w(a.jf))}}}; hR=function(a){var b;return((b=a.autoplaySwitchButtonRenderer)==null?void 0:b.enabled)!==void 0}; mR=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)}; qR=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&nR(a)&&(b=!1);var c=!!a.j&&a.j.dc,d=a.Da,e=a.IQ(),f=oR(a),h=a.NN,l=b,m=a.isOtf();b=a.dO();var n=a.Bb,p=a.Jg,q=pR(a),r=new GIa(d);if(d.yc()||d.L("html5_logging_format_selection"))r.B=!0;r.Wa=f;r.Ka=h&&d.N;r.Jg=p;g.Fs("windows nt 5.1")&&!g.XO&&(r.Qo=!0);if(f=e)f=g.bQ(d)?yJa(d):!1;f&&(r.Ca=!0);l&&(r.Qo=!0,r.qc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.Qo=!0);d.playerStyle==="picasaweb"&&(m&&(r.Qo=!1),r.Ga=!1);n&&(r.Qo=!0);EM(d.G,FM.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.Xa=!0);r.K=g.qD(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.qD(d.experiments,"html5_min_selectable_quality_ordinal");BP&&(r.Tb=480);if(c||e)r.Ga=!1;r.fb=!1;r.disableAv1=q;c=OO(d,r.j,void 0,r.disableAv1);c>0&&c<2160&&(lG()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+lG(),r.qj=c);c>=2160&& (r.Fa=!0);cCa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Bc=!1);r.dO=b;r.Va=g.Ou||Ss()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Jb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");Is()&&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.Nv&&(r.qa=a.Nv),a.Mv&&(r.C=a.Mv));r.Ra=a.isLivePlayback&&a.Yi()&&a.Da.L("html5_drm_live_audio_51");r.Bb= a.ND;return a.rf=r}; pR=function(a){return a.Da.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&nR(a)?!0:!1}; jLa=function(a){gB("drm_pb_s",void 0,a.Va);a.bb||a.j&&zM(a.j);var b={};a.j&&(b=jDa(a.lw,qR(a),a.Da.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set)); b=new $O(b,a.Da,a.EX,a.useCobaltWidevine?Is()?rR(a):!1:!1,function(c,d){a.oa(c,d)}); g.Q(a,b);a.vp=!1;a.loading=!0;KIa(b,function(c){gB("drm_pb_f",void 0,a.Va);for(var d=g.v(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.bb=a.bb;e.uw=a.uw;e.pw=a.pw;break;case "widevine":e.jm=a.jm}a.yp=c;if(a.yp.length>0&&(a.K=a.yp[0],a.Da.yc())){c={};d=g.v(Object.entries(a.K.j));for(e=d.next();!e.done;e=d.next()){var f=g.v(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.oa("drmProbe",c)}UQ(a)})}; ZKa=function(a,b){if(b.length===0||ZQ(a))return null;$Q(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(KO=!0);var c=a.me;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.ge,h=a.Da,l=OHa(b);if(e||f){h=new wO("",h.experiments,!0);h.B=!f;h.dc=!0;h.isManifestless=!0;h.isLive=!f;h.ge=f;b=g.v(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=zO(m,c);e=MM(m);e=BO(e.nE||m.url||"",e.GH,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.ra=!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.bf=h.bf||n;h.Ji=h.Ji||p;var q=!YF(d.mimeType);e&&tO(h,new fO(e,d,{Oj:l,In:q,Br:m,bf:n,Ji:p,kB:300,ge:f}))}c=h}else if(l==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;f=new wO("",h.experiments,!1);f.duration=d||0;h=g.v(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=zO(b,c,f.duration),e=MM(b),(e=BO(e.nE||b.url||"",e.GH,e.s))&&(d.streamType==="FORMAT_STREAM_TYPE_OTF"?tO(f,new gO(e,d,"sq/0")): tO(f,new qO(e,d,MN(b.initRange),MN(b.indexRange))));f.isOtf=!0;c=f}else{d=d===void 0?0:d;f=new wO("",h.experiments,!1);f.duration=d||0;h=g.v(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=zO(l,c,f.duration),d=MN(l.initRange),e=MN(l.indexRange),m=MM(l),(l=BO(m.nE||l.url||"",m.GH,m.s))&&tO(f,new qO(l,b,d,e));c=f}f=a.isLivePlayback&&!a.ge&&!a.Xa&&!a.isPremiere;a.L("html5_live_head_playable")&&(!bR(a)&&f&&a.oa("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(c.bb=!0));c.Wa=cR(a);return c}; ZQ=function(a){return Is()?!rR(a):Ls()?!(!a.bb||!a.L("html5_enable_safari_fairplay")):!1}; rR=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.XQ=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.jD.set(c.cueRangeSetIdentifier,(d=c.playerCueRanges)!=null?d:[])}}; eR=function(a){return!(!a.j||!a.j.isManifestless)}; sR=function(a){return a.isLowLatencyLiveStream&&a.j!=void 0&&FO(a.j)>=5}; XKa=function(a){return Is()&&rR(a)?!1:ZQ(a)&&g.CD(a.Da)&&!a.isLivePlayback||!hP()||a.LD?!0:!1}; lLa=function(a){a.loading=!0;a.wj=!1;if(YKa(a))g.xKa(a.videoId).then(function(c){kLa(a,c)}).then(function(){UQ(a)}); else{cE(a.Xc)||g.Kx(new g.Mt("DASH MPD Origin invalid: ",a.Xc));var b=a.Xc;b=g.aj(b,{mpd_version:g.qD(a.Da.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&a.latencyClass!="NORMAL"||(b=g.aj(b,{pacing:0}));sIa(b,a.Da.experiments,a.isLivePlayback).then(function(c){a.Ma()||(dR(a,c,!0),gB("mrc",void 0,a.Va),UQ(a))},function(c){a.Ma()||(a.loading=!1,a.publish("dataloaderror",new vF("manifest.net.retryexhausted",{backend:"manifest", rc:c.status},1)))}); gB("mrs",void 0,a.Va)}}; kLa=function(a,b){var c=b.map(function(m){return m.itag}),d; if((d=a.playerResponse)!=null&&d.streamingData){d=[];for(var e=g.v(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={Wi:void 0},f=e.next())if(h.Wi=f.value,a.L("html5_fix_multi_audio_offline_playback")){f=g.v(b);for(var l=f.next();!l.done;l=f.next())l=l.value,l.itag===h.Wi.itag&&l.xtags===h.Wi.xtags&&(h.Wi=Object.assign({},h.Wi),h.Wi.url=b.find(function(m){return function(n){return n.itag===m.Wi.itag}}(h)).url,h.Wi.signatureCipher="",d.push(h.Wi))}else c.includes(h.Wi.itag)&& (h.Wi=Object.assign({},h.Wi),h.Wi.url=b.find(function(m){return function(n){return n.itag===m.Wi.itag}}(h)).url,h.Wi.signatureCipher="",d.push(h.Wi)); b=ZKa(a,d);oR(a)&&a.L("music_web_woffle")&&wIa(b,!1);dR(a,b);a.oa("dlr",{})}else a.oa("offsdm",{cotn:a.fI?a.fI.cotn:"0",cpn:a.clientPlaybackNonce})}; tR=function(a){if(!a.isProximaLatencyEligible)return!1;var b=aM();return b!=null?b===1:a.L("html5_enable_proxima")}; UQ=function(a){a.Ma()||(a.loading=!1,a.publish("dataloaded"))}; dR=function(a,b,c){c=c===void 0?!1:c;a.j=b;g.Q(a,b);b.bf=a.bf;b.Ji=a.Ji;b.fb=a.fb;b.Tb=a.Tb;b.Lc=a.Lc;a.Vl&&(b.qa=new DN(a.Vl));(a.IQ()||g.uR(a))&&a.Ka.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");d.indexOf("manifest_duration")!=-1&&(a.Sl=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.oa,a),c?b.subscribe("refresh",a.V_,a):b.subscribe("cuepointsadded",a.mX,a));zM(b)?a.vp=!0:bP=void 0;a.Xa&&(b.C=a.Xa,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere= a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable}; nLa=function(a,b){var c=b||XKa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.oa("skipDash",{dm:!!a.j,air:b,dd:a.LD,mss:hP(),"3pp":a.isExternallyHostedPodcast}),ws();oR(a)&&wIa(a.j,a.isLivePlayback);$Q(a,"html5_enable_cobalt_experimental_vp9_decoder")&&ZIa(a.Da.G);return xs().then(function(){return lDa(a.lw,qR(a),a.Da.G,a.j,a.K,function(d){return a.publish("ctmp","fmtflt",d)},a.gI,cR(a)&&a.L("html5_enable_server_format_filter")).then(function(d){mLa(a,d); a.lw.j=null;/^av/.test(a.clientPlaybackNonce)&&a.rf&&a.oa("av1",a.rf.j)})})}; oLa=function(a,b){if(b&&a.hlsvp)return ws();if(a.hlsFormats){b=aR(a.hlsFormats);var c;if(((c=a.rf)==null?0:c.B)&&b){c=[];for(var d=g.v(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.oa("hlsfmt",{itags:c.join(".")})}a.xw=MJa(a.Da,b);c=a.clientPlaybackNonce;var f,h,l,m;return RJa(a.Da,a.isAd(),b,(m=(f=a.playerResponse)==null?void 0:(h=f.captions)==null?void 0:(l=h.playerCaptionsRenderer)==null?void 0:l.baseUrl)!=null?m:null,a.Td,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p= 0,q=[],r=g.v(n),t=r.next();!t.done;t=r.next()){t=t.value; var u=void 0;q.push((u=t.getInfo())==null?void 0:u.itag);var x=u=void 0;((u=t.getInfo())==null?void 0:(x=u.audio)==null?void 0:x.numChannels)>p&&(p=t.getInfo().audio.numChannels)}p>2&&a.oa("hlschl",{mn:p});var B;((B=a.rf)==null?0:B.B)&&a.oa("hlsfmtaf",{itags:q.join(".")});var E;if(a.L("html5_enable_vp9_fairplay")&&((E=a.K)==null?0:VO(E)))for(a.oa("drm",{sbdlfbk:1}),p=g.v(a.yp),q=p.next();!q.done;q=p.next())if(q=q.value,UO(q)){a.K=q;break}vR(a,n)})}return ws()}; pLa=function(a){if(a.isExternallyHostedPodcast&&a.Uf){var b=aR(a.Uf);if(!b[0])return ws();a.o4=b[0];return UJa(a.Da,b[0]).then(function(c){vR(a,c)})}return a.im&&a.AU?TJa(a.Da,a.isAd(),a.im).then(function(c){vR(a,c)}):ws()}; rLa=function(a){if(a.isExternallyHostedPodcast)return ws();var b=aR(a.Uf,a.SD);if(a.hlsvp){var c=HKa(a.hlsvp,a.clientPlaybackNonce,a.Td);b.push(c)}return SJa(a.Da,a.isAd(),b,qLa(a)).then(function(d){vR(a,d)})}; mLa=function(a,b){a.C=b;if(a.C){b=g.v(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;d!==0&&(a.HD[d]=c.id)}}wR(a);if(a.K&&a.C&&a.C.videoInfos&&!(a.C.videoInfos.length<=0)&&(b=TF(a.C.videoInfos[0]),b!=(a.K.flavor=="fairplay")))for(c=g.v(a.yp),d=c.next();!d.done;d=c.next())if(d=d.value,b==(d.flavor=="fairplay")){a.K=d;break}}; vR=function(a,b){a.Ed=b;mLa(a,new uM(g.Bl(a.Ed,function(c){return c.getInfo()})))}; qLa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Da.j.c,cver:a.Da.j.cver};a.Aw&&(b.ptk=a.Aw,b.oid=a.XV,b.ptchn=a.IU,b.pltype=a.ZV,a.nw&&(b.m=a.nw));return b}; g.xR=function(a){return ZQ(a)&&a.bb?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.me||null}; tLa=function(a){var b=sLa(a);return b&&b.text?g.uy(b.text):a.paidContentOverlayText}; uLa=function(a){var b=sLa(a);return b&&b.durationMs?$d(b.durationMs):a.paidContentOverlayDurationMs}; sLa=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.R((b=a.Ra)==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.playerDisclosure,vLa)||null}; yR=function(a){var b="";if(a.VG)return a.VG;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Xa?"window":"live");a.ge&&(b="post");return b}; g.zR=function(a,b){return typeof a.keywords[b]!=="string"?null:a.keywords[b]}; wLa=function(a){return!!a.zj||!!a.WC||!!a.Az||!!a.bA||a.E2||a.N.focEnabled||a.N.rmktEnabled}; g.AR=function(a){return!!(a.Xc||a.Uf||a.im||a.hlsvp||a.lx())}; TQ=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.rb(a.Ka,"ypc");a.ypcPreview&&(b=!1);return a.ue()&&!a.loading&&(g.AR(a)||g.rb(a.Ka,"heartbeat")||b)}; aR=function(a,b){a=Ur(a);var c={};if(b){b=g.v(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.v(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a}; wR=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.Uk);for(var c=0;c0:b||a.adFormat!=="17_8"||a.isAutonav||g.$P(a.Da)||a.Iq?a.Ai?!1:a.Da.Ai||a.Da.Bi||!g.EP(a.Da)?!b&&KR(a)=="adunit"&&a.zj?!1:!0:!1:!1:(a.Ai?0:a.Ti)&&g.EP(a.Da)?!0:!1;a.L("html5_log_detailpage_autoplay")&&KR(a)=="detailpage"&&a.oa("autoplay_info",{autoplay:a.Ik,autonav:a.isAutonav,result:b});return b}; g.OR=function(a){return a.oauthToken||a.Da.zj}; KLa=function(a){var b=1,c=g.qD(a.Da.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=Infinity;if(a.L("html5_combine_format_loudness_and_video_target_loudness"))if(c=((d=a.D)==null?void 0:d.audio.B)||a.F1){var e;d=c-((e=a.loudnessTargetLkfs)!=null?e:0)}else d=a.Rf;else{var f;d=((f=a.D)==null?void 0:f.audio.C)||a.Rf}if(a.L("html5_stateful_audio_normalization")){if(!isFinite(c))return b;c=Math.max(c,a.minimumLoudnessTargetLkfs);a.applyStatefulNormalization?(Date.now()-a.Da.Vk>a.maxStatefulTimeThresholdSec* 1E3&&(a.Da.Uk=Infinity,a.Da.Vk=Infinity),e=Math.min(a.loudnessTargetLkfs,a.Da.Uk)):e=Math.min(a.loudnessTargetLkfs,c);e=Math.min(e-c,0);a.preserveStatefulLoudnessTarget&&(a.Da.Uk=c+e,a=a.Da,c=Date.now(),a.Vk=c);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b}; oR=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=g.dP(a.Da)==="TVHTML5_SIMPLY"&&a.Da.j.ctheme==="MUSIC";a.Gj||!g.Lz(a.Da)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Gj=!0);if(b=g.Hs())b=/Starboard\/([0-9]+)/.exec(g.Zb()),b=(b?parseInt(b[1],10):NaN)<10;c=a.Da;c=(g.dP(c)==="TVHTML5_CAST"||g.dP(c)==="TVHTML5"&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&a.Da.j.ctheme==="MUSIC";var d;if(d=!a.Gj)c||(c=a.Da,c= g.dP(c)==="TVHTML5"&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b=a.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&a.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",b||c||a.isExternallyHostedPodcast)&&(a.Gj=!0);return a.Da.deviceIsAudioOnly||a.Gj&&a.Da.N}; LLa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; PR=function(a){return!(!a.Cn||!a.Da.N)&&a.lx()}; MLa=function(a){return a.enablePreroll&&a.enableServerStitchedDai}; NLa=function(a){return a.L("html5_enable_sabr_from_watch_server")&&a.LN&&!a.Vl}; cR=function(a){if(a.W1||a.cotn||!a.j||a.j.isOtf||a.xU&&!a.L("html5_enable_sabr_csdai"))return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;if(a.L("html5_enable_sabr_from_watch_server"))return a.LN&&!!a.Vl;var b=!a.j.dc&&!a.Yi(),c=b&&eP&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!eP&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=OLa(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.Yi()&&!a.j.dc&&eP&&(a.Vk==="1"?!1:!0);(c=c||b||d||e)&&!a.Vl&&a.oa("sabr",{loc:"m"},!0); return c&&!!a.Vl}; OLa=function(a){var b;if(!(b=a.dc()&&a.Yi()&&eP&&(a.Vk==="1"?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.dc()&&!a.Yi()&&eP;var c=a.dc()&&a.latencyClass!=="ULTRALOW"&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e=a.latencyClass==="ULTRALOW"&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(c||d||e)}c=b;b=a.enableServerStitchedDai&&c&&a.L("html5_enable_sabr_ssdai_streaming_xhr"); c=!a.enableServerStitchedDai&&c;a=a.dc()&&!eP&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a}; g.fR=function(a){return a.e1&&cR(a)}; YKa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&g.EQ(b)===1;return b&&!a.Cn}; g.QR=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&JM(b[a.B.id].resource.j);b=!!b[a.D.id]&&JM(b[a.D.id].resource.j);return(a.B.itag==="0"||c)&&b}; PLa=function(a){return a.pz?["OK","LIVE_STREAM_OFFLINE"].includes(a.pz.status):!0}; BLa=function(a){return(a=a.Dn)&&a.showError?a.showError:!1}; $Q=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")}; RKa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")}; QLa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; PKa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.bA=new pKa(b));if(b=b.video_masthead_ad_quartile_urls)a.WC=b.quartile_0_url,a.hW=b.quartile_25_url,a.iW=b.quartile_50_url,a.jW=b.quartile_75_url,a.gW=b.quartile_100_url,a.Az=b.quartile_0_urls,a.bD=b.quartile_25_urls,a.dD=b.quartile_50_urls,a.fD=b.quartile_75_urls,a.YC=b.quartile_100_urls}; OKa=function(a){var b={};a=g.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");d.length==2?b[d[0]]=d[1]:b[c]=!0}return b}; LKa=function(a){if(a){if(pva(a))return a;a=qva(a);if(pva(a,!0))return a}return""}; g.RLa=function(a){return a.captionsLanguagePreference||a.Da.captionsLanguagePreference||g.zR(a,"yt:cc_default_lang")||a.Da.tj}; RR=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())}; g.jR=function(a){var b;return a.Sv||((b=a.suggestions)==null?void 0:b[0])||null}; SLa=function(a){var b={isSabr:cR(a)},c;if(a=(c=a.getHeartbeatResponse())==null?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b}; g.SR=function(a){return a.Ff&&a.Da.xp}; g.TR=function(a){var b,c;return!!((b=a.embeddedPlayerConfig)==null?0:(c=b.embeddedPlayerFlags)==null?0:c.enableMusicUx)}; g.UR=function(a){var b=a.U(),c=g.TLa(b),d=a.ra;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=KR(a);f==="leanback"?e="WATCH":b.L("gvi_channel_client_screen")&&f==="profilepage"?e="CHANNEL":a.Bb?e="LIVE_MONITOR":f==="detailpage"?e="WATCH_FULL_SCREEN":f==="adunit"?e="ADUNIT":f==="sponsorshipsoffer"&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.wp)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:ULa[e]}});if(b=a.wB)d.unpluggedAppInfo= {enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:VLa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Dd&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=WLa[b];c.request=d;d=c.user||{};if(b=a.Ca)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Jb)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.TLa=function(a){var b=g.pA(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.v(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo, {deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Lc)b.thirdParty={embedUrl:a};return b}; bMa=function(a,b,c){var d=a.videoId,e=g.UR(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(tw()),referer:document.location.toString(),signatureTimestamp:19914};g.Gt();a.isAutonav&&(h.autonav=!0);g.Ht(0,141)&&(h.autonavState=g.Ht(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Ht(0,66);JLa(a)&&(h.autoplay=!0);f.N&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l= l.split(",");l=g.v(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");q.length!==3||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.v(q);for(var r=q.next();!r.done;r=q.next()){var t=g.v(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var u=Number(p.campaignid);if(p.adtype==="in_display_ad")q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),u&&(m.viralCampaignId= String(u));else if(p.adtype==="video_ad"){var x={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=XLa[p.breaktype])x.breakType=p;q&&(x.url=q);r&&(x.presetAd=r);t&&(x.viralAdResponseUrl=t);u&&(x.viralCampaignId=String(u));n.push(x)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.TH;if(m!=null){m={startWalltime:String(m)};if(n=a.Sl)m.manifestDuration=String(n||14400); h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Ai?0:a.Ti)h.splay=!0;m=a.vnd;m===5&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Mw)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Kj){n=a.hD;l=[];p=g.v(bDa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.kZ?"INACTIVE":"ACTIVE",clientFormFactor:YLa[r]||"UNKNOWN_FORM_FACTOR",clientName:dDa[q.m2]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:ZLa[r]||"UNKNOWN_PLATFORM"}; r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(B){g.Kx(B)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),t.limit_ad_tracking!==void 0&&t.limit_ad_tracking!==null&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p= {},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;m>0&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);c!==0&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.EP(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);$La&&a.startSeconds>0&&(d.startTimeSecs=a.startSeconds);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.Ht(g.Gt(),65);a.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.YP(e)&& (d.captionParams.deviceCaptionsOn=h!=null?!h:!1);a.UZ&&(d.captionParams.deviceCaptionsLangPref=a.UZ);a.MN.length?d.captionParams.viewerSelectedCaptionLangs=a.MN:g.YP(e)&&(h=g.dM(),h==null?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h=a.fetchType==="onesie"&&a.L("html5_onesie_attach_po_token");f=a.fetchType!=="onesie"&&a.L("html5_non_onesie_attach_po_token");if(h||f)h=a.U(),h.Uf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=h.Uf);e.L("fetch_att_independently")&& (d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=aMa());e.L("html5_report_supports_vp9_encoding")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=aMa(a));return d}; aMa=function(a){if(a==null)var b=void 0;else{b=qR(a);a=a.U().G;var c=hQ("243");b=c?yM(b,c,a,!0)===!0:!1}return{supportsVp9Encoding:b,supportXhr:eP}}; dMa=function(a,b){var c,d,e;return g.H(function(f){if(f.j==1)return c={context:g.TLa(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.sA(cMa),g.G(f,g.oB(b,c,d),2);e=f.B;return f.return(e)})}; eMa=function(a,b,c){OBa(g.qD(b.experiments,"bg_vm_reinit_threshold"))&&dMa(a,c).then(function(d){d&&(d=d.botguardData)&&g.ZL(d,b)},function(d){a.Ma()||(d=xF(d),a.oa("attf",d.details))})}; VR=function(a,b){g.K.call(this);this.app=a;this.state=b}; YR=function(a,b,c){a.state.B.hasOwnProperty(b)||WR(a,b,c);a.state.Y[b]=function(){return c.apply(a,g.Fa.apply(0,arguments))}; a.state.Z.add(b)}; ZR=function(a,b,c){a.state.B.hasOwnProperty(b)||WR(a,b,c);a.app.U().N&&(a.state.qa[b]=function(){return c.apply(a,g.Fa.apply(0,arguments))},a.state.Z.add(b))}; WR=function(a,b,c){a.state.B[b]=function(){return c.apply(a,g.Fa.apply(0,arguments))}}; g.$R=function(a,b,c){return a.state.B[b].apply(a.state.B,g.w(c))}; aS=function(){g.Gp.call(this);this.G=new Map}; fMa=function(){g.K.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 aS;this.j=new aS;this.D=new aS;this.N=new aS}; gMa=function(a,b,c){typeof a==="string"&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return bS(a)}; bS=function(a,b,c){if(typeof a==="string")return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.v(hMa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b}; iMa=function(a,b,c,d){if(g.Ta(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d32&&d.push("hfr");b.isHdr()&&d.push("hdr");b.primaries==="bt2020"&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c}; nMa=function(a,b){VR.call(this,a,b)}; sMa=function(a,b){var c={};if(a.app.U().ra){a=g.v(oMa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);if(b=c.qoe_cat)a="",typeof b==="string"&&b.length>0&&(a=b.split(",").filter(function(e){return pMa.includes(e)}).join(",")),c.qoe_cat=a; qMa(c)}else for(a=g.v(rMa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c}; qMa=function(a){var b=a.raw_player_response;if(!b){var c=a.player_response;c&&(b=JSON.parse(c))}delete a.player_response;delete a.raw_player_response;b&&(a.raw_player_response={streamingData:b.streamingData})}; g.eS=function(a){return(a=tMa(a.app.Ab()))?a.Fi():null}; uMa=function(a,b,c){var d=a.app.lf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a}; wMa=function(a){var b=b===void 0?5:b;return a?vMa[a]||b:b}; g.fS=function(a,b,c){VR.call(this,a,b);c&&(xMa(this),ZR(this,"addEventListener",this.Z6),ZR(this,"removeEventListener",this.cda),ZR(this,"cueVideoByPlayerVars",this.B7),ZR(this,"loadVideoByPlayerVars",this.e$),ZR(this,"preloadVideoByPlayerVars",this.Mca),ZR(this,"loadVideoById",this.YZ),ZR(this,"loadVideoByUrl",this.ZZ),ZR(this,"playVideo",this.xS),ZR(this,"loadPlaylist",this.loadPlaylist),ZR(this,"nextVideo",this.nextVideo),ZR(this,"previousVideo",this.previousVideo),ZR(this,"playVideoAt",this.playVideoAt), ZR(this,"getVideoData",this.DY),ZR(this,"seekBy",this.yda),ZR(this,"seekTo",this.Bda),ZR(this,"showControls",this.showControls),ZR(this,"hideControls",this.hideControls),ZR(this,"cancelPlayback",this.cancelPlayback),ZR(this,"getProgressState",this.getProgressState),ZR(this,"isInline",this.isInline),ZR(this,"setInline",this.setInline),ZR(this,"setLoopVideo",this.setLoopVideo),ZR(this,"getLoopVideo",this.getLoopVideo),ZR(this,"getVideoContentRect",this.getVideoContentRect),ZR(this,"getVideoStats",this.T8), ZR(this,"getCurrentTime",this.x8),ZR(this,"getDuration",this.hY),ZR(this,"getPlayerState",this.J8),ZR(this,"getVideoLoadedFraction",this.Q8),ZR(this,"mute",this.ZK),ZR(this,"unMute",this.LM),ZR(this,"setVolume",this.oM),ZR(this,"loadModule",this.loadModule),ZR(this,"unloadModule",this.unloadModule),ZR(this,"getOption",this.uY),ZR(this,"getOptions",this.getOptions),ZR(this,"setOption",this.setOption),ZR(this,"addCueRange",this.addCueRange),ZR(this,"getDebugText",this.getDebugText),ZR(this,"getStoryboardFormat", this.getStoryboardFormat),ZR(this,"toggleFullscreen",this.toggleFullscreen),ZR(this,"isFullscreen",this.isFullscreen),ZR(this,"getPlayerSize",this.getPlayerSize),ZR(this,"toggleSubtitles",this.toggleSubtitles),ZR(this,"setCenterCrop",this.setCenterCrop),ZR(this,"setFauxFullscreen",this.setFauxFullscreen),ZR(this,"setSizeStyle",this.setSizeStyle),ZR(this,"handleGlobalKeyDown",this.handleGlobalKeyDown),ZR(this,"handleGlobalKeyUp",this.handleGlobalKeyUp),ZR(this,"wakeUpControls",this.wakeUpControls), lMa(this))}; xMa=function(a){WR(a,"getInternalApiInterface",a.getInternalApiInterface);WR(a,"addEventListener",a.X6);WR(a,"removeEventListener",a.Zca);WR(a,"cueVideoByPlayerVars",a.A7);WR(a,"loadVideoByPlayerVars",a.d$);WR(a,"preloadVideoByPlayerVars",a.Lca);WR(a,"getAdState",a.getAdState);WR(a,"sendAbandonmentPing",a.sendAbandonmentPing);WR(a,"setLoopRange",a.setLoopRange);WR(a,"getLoopRange",a.getLoopRange);WR(a,"setAutonavState",a.setAutonavState);WR(a,"seekTo",a.zda);WR(a,"seekBy",a.xda);WR(a,"seekToLiveHead", a.seekToLiveHead);WR(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);WR(a,"seekToStreamTime",a.seekToStreamTime);WR(a,"startSeekCsiAction",a.startSeekCsiAction);WR(a,"getStreamTimeOffset",a.getStreamTimeOffset);WR(a,"getVideoData",a.P8);WR(a,"setInlinePreview",a.setInlinePreview);WR(a,"getAppState",a.getAppState);WR(a,"updateLastActiveTime",a.updateLastActiveTime);WR(a,"setBlackout",a.setBlackout);WR(a,"setUserEngagement",a.setUserEngagement);WR(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings); WR(a,"getPresentingPlayerType",a.UJ);WR(a,"canPlayType",a.canPlayType);WR(a,"updatePlaylist",a.updatePlaylist);WR(a,"updateVideoData",a.updateVideoData);WR(a,"updateEnvironmentData",a.updateEnvironmentData);WR(a,"sendVideoStatsEngageEvent",a.Eda);WR(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);WR(a,"setSafetyMode",a.setSafetyMode);WR(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)}); WR(a,"getVideoAspectRatio",a.getVideoAspectRatio);WR(a,"getPreferredQuality",a.getPreferredQuality);WR(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);WR(a,"setPlaybackQualityRange",a.Lda);WR(a,"onAdUxClicked",a.onAdUxClicked);WR(a,"getFeedbackProductData",a.getFeedbackProductData);WR(a,"getStoryboardFrame",a.getStoryboardFrame);WR(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);WR(a,"getStoryboardLevel",a.getStoryboardLevel);WR(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels); WR(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);WR(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);WR(a,"addCueRange",a.addCueRange);WR(a,"addUtcCueRange",a.addUtcCueRange);WR(a,"showAirplayPicker",a.showAirplayPicker);WR(a,"dispatchReduxAction",a.dispatchReduxAction);WR(a,"getPlayerResponse",a.G8);WR(a,"getWatchNextResponse",a.V8);WR(a,"getHeartbeatResponse",a.B8);WR(a,"changeMarkerVisibility",a.changeMarkerVisibility);WR(a,"getCurrentTime",a.v8);WR(a,"getDuration",a.hY); WR(a,"getPlayerState",a.getPlayerState);WR(a,"getPlayerStateObject",a.H8);WR(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);WR(a,"getProgressState",a.getProgressState);WR(a,"getVolume",a.getVolume);WR(a,"setVolume",a.oM);WR(a,"isMuted",a.isMuted);WR(a,"mute",a.ZK);WR(a,"unMute",a.LM);WR(a,"loadModule",a.loadModule);WR(a,"unloadModule",a.unloadModule);WR(a,"getOption",a.uY);WR(a,"getOptions",a.getOptions);WR(a,"setOption",a.setOption);WR(a,"loadVideoById",a.YZ);WR(a,"loadVideoByUrl",a.ZZ);WR(a, "playVideo",a.xS);WR(a,"loadPlaylist",a.loadPlaylist);WR(a,"nextVideo",a.nextVideo);WR(a,"previousVideo",a.previousVideo);WR(a,"playVideoAt",a.playVideoAt);WR(a,"getDebugText",a.getDebugText);WR(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);WR(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);WR(a,"getVideoContentRect",a.getVideoContentRect);WR(a,"setSqueezeback",a.setSqueezeback);WR(a,"setAutonav",a.setAutonav);WR(a,"isNotServable",a.isNotServable);WR(a,"channelSubscribed",a.channelSubscribed); WR(a,"channelUnsubscribed",a.channelUnsubscribed);WR(a,"togglePictureInPicture",a.togglePictureInPicture);WR(a,"supportsGaplessAudio",a.supportsGaplessAudio);WR(a,"supportsGaplessShorts",a.supportsGaplessShorts);WR(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)}); WR(a,"clearQueue",a.clearQueue);WR(a,"getAudioTrack",a.o8);WR(a,"setAudioTrack",a.Fda);WR(a,"getAvailableAudioTracks",a.r8);WR(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);WR(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);WR(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);WR(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);WR(a,"setMinimized",a.setMinimized);WR(a,"setOverlayVisibility",a.setOverlayVisibility);WR(a,"confirmYpcRental",a.confirmYpcRental); WR(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);WR(a,"isSubtitlesOn",a.isSubtitlesOn);WR(a,"queueNextVideo",a.queueNextVideo);WR(a,"handleExternalCall",a.handleExternalCall);WR(a,"logApiCall",a.logApiCall);WR(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);WR(a,"setScreenLayer",a.setScreenLayer);WR(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);WR(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);WR(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);WR(a, "syncVolume",a.syncVolume);WR(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);WR(a,"openSettingsMenuItem",a.openSettingsMenuItem);WR(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);WR(a,"getVisibilityState",a.getVisibilityState);WR(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);WR(a,"setGlobalCrop",a.setGlobalCrop);WR(a,"setInternalSize",a.setInternalSize);WR(a,"setFauxFullscreen",a.setFauxFullscreen)}; zMa=function(a){a.state.G||(a.state.G={addEventListener:function(b,c){yMa(a,b,c)}, removeEventListener:function(b,c){c=typeof c==="string"?b+c:b+String(g.Wa(c));var d=a.state.K[c];d&&(a.state.j.unsubscribe(b,d),delete a.state.K[c])}}); return a.state.G}; yMa=function(a,b,c){var d=typeof c==="string"?b+c:b+String(g.Wa(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)}}; hS=function(a,b,c){a=g.gS(a.Re(),b);return c?(c.addOnDisposeCallback(a),null):a}; g.iS=function(a,b,c){return a.app.U().jf?b:g.tE("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})}; AMa=function(a){a.Re().element.setAttribute("aria-live","polite")}; g.jS=function(a,b,c){g.fS.call(this,a,b,c)}; g.kS=function(a){a=a.Ab();var b=a.Ie.get("endscreen");return b&&b.uv()?!0:a.zH()}; g.CS=function(a,b){a.getPresentingPlayerType()===3?a.publish("mdxautoplaycancel"):a.ib("onAutonavCancelled",b)}; g.HS=function(a){var b=GS(a.Ab());return a.app.uj&&!a.isFullscreen()||a.getPresentingPlayerType()===3&&b&&b.zl()&&b.Vp()||!!a.getPlaylist()}; g.BMa=function(a,b,c){g.$R(a,"addEmbedsConversionTrackingParams",[b]);a.L("embeds_web_enable_referring_feature_deprecation")||g.YL(b,c)}; g.JS=function(a){return(a=g.IS(a.Ab()))?a.XJ():{}}; g.CMa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&a.mimeType!=="application/x-mpegURL"}; g.KS=function(a,b,c){a=a.qb().element;var d=Ib(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1}); d<0&&(d=-(d+1));qe(a,b,d);b.setAttribute("data-layer",String(c))}; g.LS=function(a){var b=a.U();if(!b.Yd)return!1;var c=a.getVideoData();if(!c||a.getPresentingPlayerType()===3)return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!RR(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.zl();var f=c.Ra&&c.Ra.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Ff&&f;return!c.ypcPreview&&(!d||e)&&!g.rb(c.Ka,"ypc")&& !a&&(!g.EP(b)||f)}; DMa=function(a){a=g.dS(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||b.B.video.j<1080||b.K3)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";b.B.id.indexOf(";")>=0&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.oa("iqss",{trigger:d},!0),!0):!1}; EMa=function(){Et.apply(this,arguments);this.requestHeaders={}}; MS=function(){FMa||(FMa=new EMa);return FMa}; NS=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization}; g.OS=function(a,b,c,d){d=d===void 0?!1:d;g.ry.call(this,b);var e=this;this.J=a;this.Ga=d;this.N=new g.EF(this);this.qa=new g.gz(this,c,!0,void 0,void 0,function(){e.ZX()}); g.Q(this,this.N);g.Q(this,this.qa)}; GMa=function(a){a.B&&(document.activeElement&&g.te(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.ut(a.N);a.Y=void 0}; PS=function(a,b,c){a.wk()?a.Mb():a.md(b,c)}; HMa=function(a,b,c,d){d=new g.T({I:"div",La:["ytp-linked-account-popup-button"],va:d,W:{role:"button",tabindex:"0"}});b=new g.T({I:"div",S:"ytp-linked-account-popup",W:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",va:b},{I:"div",S:"ytp-linked-account-popup-description",va:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.OS.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.Q(this,this.dialog); d.listen("click",function(){e.Mb()}); g.Q(this,d);g.KS(this.J,this.element,4);this.hide()}; g.QS=function(a,b,c,d){g.ry.call(this,a);this.priority=b;c&&this.Nj(c);d&&this.Cd(d)}; g.RS=function(a,b,c,d){a=a===void 0?{}:a;b=b===void 0?[]:b;c=c===void 0?!1:c;d=d===void 0?!1:d;b.push("ytp-menuitem");var e=a;"role"in e||(e.role="menuitem");c||(e=a,"tabindex"in e||(e.tabindex="0"));a={I:c?"a":"div",La:b,W:a,V:[{I:"div",S:"ytp-menuitem-icon",va:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",va:"{{label}}"},{I:"div",S:"ytp-menuitem-content",va:"{{content}}"}]};d&&a.V.push({I:"div",S:"ytp-menuitem-secondary-icon",va:"{{secondaryIcon}}"});return a}; SS=function(a){g.QS.call(this,g.RS({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Fb=a.Hm();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Kc(c)}); this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; TS=function(a){return a?g.uy(a):""}; US=function(a){g.K.call(this);this.api=a}; VS=function(a){US.call(this,a);var b=this;WR(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)}); WR(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)}); a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)}); a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new SS(b.api);g.Q(b,b.menuItem)})}; IMa=function(a){this.api=a;this.j={}}; WS=function(a,b,c,d){b in a.j||(c=new g.gE(c,d,{id:b,priority:2,namespace:"appad"}),a.api.kf([c],1),a.j[b]=c)}; JMa=function(a){US.call(this,a);var b=this;this.events=new g.EF(this);g.Q(this,this.events);this.j=new IMa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}}); this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;WS(d,"part2viewed",1,0x8000000000000);WS(d,"engagedview",Math.max(1,c.Kb*1E3),0x8000000000000);c.isLivePlayback||(c=c.lengthSeconds*1E3,WS(d,"videoplaytime25",c*.25,c),WS(d,"videoplaytime50",c*.5,c),WS(d,"videoplaytime75",c*.75,c),WS(d,"videoplaytime100",c,0x8000000000000),WS(d,"conversionview",c,0x8000000000000),WS(d,"videoplaybackstart",1,c),WS(d,"videoplayback2s",2E3,c),WS(d,"videoplayback10s",1E4,c))}); this.events.T(this.api,g.iE("appad"),this.B);this.events.T(this.api,g.jE("appad"),this.B)}; NMa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.v(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.Ho(c,d);d=void 0;d=d===void 0?!1:d;(d=$D(aE(c,KMa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=$D(aE(c,LMa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=$D(aE(c,MMa),c,d,"Nielsen OCR URL"));g.Lv(c,void 0,d)}return!0}; XS=function(a,b){OMa(a,b).then(function(c){g.Lv(b,void 0,void 0,c)})}; YS=function(a,b){b.forEach(function(c){XS(a,c)})}; OMa=function(a,b){return g.ED(a.api.U())&&$r(b)&&Zr(b)?g.gQ(a.api.U(),g.OR(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):xs()}; PMa=function(a){US.call(this,a);this.events=new g.EF(a);g.Q(this,this.events);this.events.T(a,"videoready",function(b){if(a.getPresentingPlayerType()===1){var c,d,e={playerDebugData:{pmlSignal:!!((c=b.getPlayerResponse())==null?0:(d=c.adPlacements)==null?0:d.some(function(f){var h;return f==null?void 0:(h=f.adPlacementRenderer)==null?void 0:h.renderer})), contentCpn:b.clientPlaybackNonce}};g.bu("adsClientStateChange",e)}})}; RMa=function(a){g.T.call(this,{I:"button",La:["ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",W:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.xD);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&& QMa(this);hS(a,this.element,this);this.xD()}; QMa=function(a){a.B.push(a.T(a.J,"videodatachange",a.xD));a.B.push(a.T(a.J,"videoplayerreset",a.xD));a.B.push(a.T(a.J,"onPlaylistUpdate",a.xD));a.B.push(a.T(a.J,"autonavchange",a.GV))}; SMa=function(a){a.isChecked=a.isChecked;a.Ea("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);a.J.Th()}; TMa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&hR(a.Md())}; UMa=function(a){US.call(this,a);var b=this;this.events=new g.EF(a);g.Q(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new RMa(a);g.Q(b,c);a.xz(c)})}; ZS=function(a,b){g.QS.call(this,g.RS({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)}; $S=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))}; VMa=function(a){var b=!a.U().Pk&&a.getPresentingPlayerType()!==3;return a.isFullscreen()||b}; g.aT=function(a,b,c,d){var e=a.currentTarget;if((c===void 0||!c)&&g.Dz(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.hA(a,d,!0);return!1}; g.bT=function(a,b,c){if(WP(b.U())&&b.getPresentingPlayerType()!==2){if(g.Dz(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.Dz(c);d&&b.pauseVideo();g.hA(a,void 0,!0);d&&(g.iA(a),c.preventDefault())}return!1}; XMa=function(){var a=WMa.includes("en")?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,W:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,W:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a}; YMa=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"}]}]}]}}; ZMa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}}; dT=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";ZS.call(this,b,g.cT.Z3);var c=this;this.J=a;this.j=!1;this.B=new g.fp(function(){g.pp(c.element,"ytp-menuitem-highlighted")},0); this.Fb=a.Hm();this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.listen($Ma,this.D);g.Q(this,this.B)}; bNa=function(a){US.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){aNa(b)}); a.addEventListener("highlightSettingsMenu",function(c){aNa(b);var d=b.menuItem;c==="menu_item_cinematic_lighting"&&(g.np(d.element,"ytp-menuitem-highlighted"),g.np(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())}); WR(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})}; aNa=function(a){a.menuItem||(a.menuItem=new dT(a.api),g.Q(a,a.menuItem),a.menuItem.Ta(a.j))}; eT=function(a,b,c,d){ZS.call(this,"Stable Volume",g.cT.E6);g.np(this.element,"ytp-drc-menu-item");this.Fb=a.Hm();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.B,this);$S(this,a);this.Fb.Tc(this)}; fT=function(a){US.call(this,a);var b=this;this.events=new g.EF(a);g.Q(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new eT(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.Q(b,b.menuItem))}); WR(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)}); WR(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()}); WR(this.api,"hasDrcAudioTrack",function(){return b.B()}); var c;this.j=(c=g.At("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()}; gT=function(a){US.call(this,a);var b=this;this.j={};this.events=new g.EF(a);g.Q(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()}); this.events.T(a,g.iE("embargo"),function(c){b.api.To(!0);var d,e=(d=b.j[c.id])!=null?d:[];d=g.v(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Lf("auth",2,"This video isn't available in your current playback area",uF({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=(e=f.embargo)==null?void 0:e.onTrigger)&&b.api.ib("innertubeCommand",f)}})}; cNa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.B)}; dNa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number((d=c.playbackPosition)==null?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number((f=c.duration)==null?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}}; eNa=function(a){US.call(this,a);var b=this;this.j=[];this.events=new g.EF(a);g.Q(this,this.events);WR(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().zp&&b.addEmbedsConversionTrackingParams(c)}); this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=jh(c.visualElement.getAsJspb(),2),b.j.push(c))})}; fNa=function(a){US.call(this,a);var b=this;this.events=new g.EF(a);g.Q(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){OL(NL(),16623);b.j=g.Bx();var d=a.U().Ai&&!c.Ai;if(NR(c)&&d){OL(NL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=(e=c.getWatchNextResponse())==null?void 0:e.trackingParams;f&&QL(f)}if(c.getPlayerResponse()){var h;(c=(h=c.getPlayerResponse())==null?void 0:h.trackingParams)&&QL(c)}}else OL(NL(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=(f=c.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&QL(h)}); this.events.T(a,"loadvideo",function(){OL(NL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); this.events.T(a,"cuevideo",function(){OL(NL(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); this.events.T(a,"largeplaybuttonclicked",function(c){OL(NL(),27240,c.visualElement)}); this.events.T(a,"playlistnextbuttonclicked",function(c){OL(NL(),27240,c.visualElement)}); this.events.T(a,"playlistprevbuttonclicked",function(c){OL(NL(),27240,c.visualElement)}); this.events.T(a,"playlistautonextvideo",function(){OL(NL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; gNa=function(a){g.K.call(this);var b=this;this.j=null;for(var c=[],d=0;d<=100;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];typeof e.isVisible==="undefined"?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)}; iNa=function(a){US.call(this,a);var b=this;this.events=new g.EF(a);g.Q(this,this.events);this.events.T(a,"applicationInitialized",function(){hNa(b)})}; hNa=function(a){a.j=new gNa(a.api.getRootNode());g.Q(a,a.j);a.events.T(a.api,"videoStatsPingCreated",function(b){var c=a.j;c=c.j==null?null:Math.round(c.j*100)/100;b.inview=c!=null?c:void 0;c=a.api.getPlayerSize();if(c.height>0&&c.width>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.XP();d>1&&c.push(d);c=c.join(":")}else c=void 0;b.size=c})}; jNa=function(a){var b;return((b=((a==null?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:b.timeCounterRenderer)||null}; hT=function(a){g.T.call(this,{I:"div",La:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",va:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",va:"\u2022"},{I:"span",va:"{{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)}; lNa=function(a,b){a.j||(a.B=b,a.C=(0,g.uu)(),a.j=new g.ep(function(){kNa(a)},null),kNa(a))}; kNa=function(a){var b=Math,c=b.round,d=Math.min((0,g.uu)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",HL({seconds:b}));b<=0&&a.j?mNa(a):a.j&&a.j.start()}; mNa=function(a){a.j&&(a.j.dispose(),a.j=null)}; nNa=function(a){US.call(this,a);var b=this;this.events=new g.EF(a);g.Q(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new hT(a);g.Q(b,b.j);g.KS(a,b.j.element,4);b.j.hide()})}; iT=function(a){g.T.call(this,{I:"button",La:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",La:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{I:"div",La:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],W:{"data-priority":"1"}});this.Ua=a;this.j=new g.gz(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.Q(this, this.j);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.listen("click",this.onClick);this.Ta()}; jT=function(a){US.call(this,a);var b=this;this.events=new g.EF(a);g.Q(this,this.events);WR(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)}); WR(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)}); var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&WP(c)&&c.controlsType==="1"&&this.events.T(a,"standardControlsInitialized",function(){b.j=new iT(a);g.Q(b,b.j);a.xz(b.j)})}; oNa=function(a){g.T.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",La:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],W:{"aria-label":"Close"},V:[g.Ay()]},{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",va:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle", va:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ea("ytp-gated-actions-overlay-background");this.B=this.Ea("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ea("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.ib("onCloseMiniplayer")}); this.hide()}; qNa=function(a,b){var c=0;c=0;for(var d={};c e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;qNa(c,d.actionButtons||[]);c.show()}else c.hide()}); g.KS(this.api,this.j.element,4)}; sNa=function(a){US.call(this,a);var b=a.U();b.Hj=!1;b.bb=!1;b.lm=!1;ZR(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()}); ZR(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()}); ZR(a,"updateSubtitlesUserSettings",function(c){a.updateSubtitlesUserSettings(c)}); ZR(a,"getCaptionTracks",function(){return a.getOption("captions","tracklist",{includeAsr:!0})}); ZR(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()}); ZR(a,"getPreferredQuality",function(){return a.getPreferredQuality()}); ZR(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()}); ZR(a,"setPlaybackQuality",function(c){a.setPlaybackQuality(c)})}; tNa=function(a){US.call(this,a);a=a.U();a.uh.push("flix");a.bb=!1;a.Hj=!1}; kT=function(a){US.call(this,a);var b=this;ZR(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()}); ZR(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.w(g.Fa.apply(0,arguments)))}); YR(this.api,"getSphericalProperties",function(){return b.api.getPresentingPlayerType()===2?{}:b.getSphericalProperties()}); YR(this.api,"setSphericalProperties",function(){var c=g.Fa.apply(0,arguments);b.api.getPresentingPlayerType()!==2&&b.setSphericalProperties.apply(b,g.w(c))})}; uNa=function(a){US.call(this,a);WR(a,"createClientVe",this.createClientVe.bind(this));WR(a,"createServerVe",this.createServerVe.bind(this));WR(a,"destroyVe",this.destroyVe.bind(this));WR(a,"hasVe",this.hasVe.bind(this));WR(a,"logClick",this.logClick.bind(this));WR(a,"logVisibility",this.logVisibility.bind(this));WR(a,"setTrackingParams",this.setTrackingParams.bind(this))}; lT=function(a){US.call(this,a);var b=this;this.events=new g.EF(a);g.Q(this,this.events);WR(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}); WR(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}); WR(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})}; vNa=function(a,b,c){var d=a.api.getCurrentTime()*1E30&&e>0&&(c.width+=e,g.km(b.element,"width",c.width+"px")));a.size=c}}; g.yT=function(a,b){var c=a.j[a.j.length-1];c!==b&&(a.j.push(b),QNa(a,c,b))}; g.zT=function(a){if(!(a.j.length<=1)){var b=a.j.pop(),c=a.j[0];a.j=[c];QNa(a,b,c,!0)}}; QNa=function(a,b,c,d){RNa(a);b&&(b.unsubscribe("size-change",a.HC,a),b.unsubscribe("back",a.bj,a));c.subscribe("size-change",a.HC,a);c.subscribe("back",a.bj,a);if(a.Hb){g.np(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;PNa(a);g.vm(a.element,e);a.G=new g.fp(function(){SNa(a,b,c,d)},20,a); a.G.start()}else c.Ja(a.element),b&&b.detach()}; SNa=function(a,b,c,d){a.G.dispose();a.G=null;g.np(a.element,"ytp-popup-animating");d?(g.np(b.element,"ytp-panel-animate-forward"),g.pp(c.element,"ytp-panel-animate-back")):(g.np(b.element,"ytp-panel-animate-back"),g.pp(c.element,"ytp-panel-animate-forward"));g.vm(a.element,a.size);a.K=new g.fp(function(){g.pp(a.element,"ytp-popup-animating");b.detach();g.qp(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a); a.K.start()}; RNa=function(a){a.G&&g.hp(a.G);a.K&&g.hp(a.K)}; AT=function(a){g.xT.call(this,a,"ytp-shopping-product-menu");this.Oe=new g.vT(this.J);g.Q(this,this.Oe);this.hide();g.yT(this,this.Oe);g.KS(this.J,this.element,4)}; UNa=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&(c=TNa(a,c,e,b==null?void 0:b.icon,b==null?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.ib("innertubeCommand",b.navigationEndpoint);a.hide()},a))}; VNa=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&TNa(a,c,e,b==null?void 0:b.icon).listen("click",function(){var f;(b==null?void 0:(f=b.icon)==null?void 0:f.iconType)==="HIDE"?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.ib("innertubeCommand",b.serviceEndpoint);a.hide()},a)}; TNa=function(a,b,c,d,e){b=new g.QS(g.RS({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",WNa(e));b.setIcon(WNa(d));g.Q(a,b);a.Oe.Tc(b,!0);return b}; WNa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{I:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return fsa();case "HIDE":return{I:"svg",W:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",W:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return Ey()}}; BT=function(a){tT.call(this,a,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.T({I:"button",La:["ytp-featured-product-overflow-icon","ytp-button"],W:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Q(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.T({I:"img",S:"ytp-suggested-action-badge-img",W:{src:"{{url}}"}}); this.thumbnailImage.hide();g.Q(this,this.thumbnailImage);this.thumbnailIcon=new g.T({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.Q(this,this.thumbnailIcon);this.banner=new g.T({I:"a",S:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{I:"div",S:"ytp-suggested-action-details",V:[{I:"text",S:"ytp-suggested-action-title",va:"{{title}}"},{I:"text",S:"ytp-suggested-action-subtitle",va:"{{subtitle}}"},{I:"text",S:"ytp-suggested-action-metadata-text", va:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.Q(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.iE("suggested_action_view_model"),this.vaa);this.T(this.J,g.jE("suggested_action_view_model"),this.waa);this.T(this.overflowButton.element,"click",this.v5);this.T(a,"featuredproductdismissed",this.Tu);this.J.createServerVe(this.banner.element,this.banner,!0)}; XNa=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.ra=a.isVisible,sT(a),a.Ql(),g.py(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.py(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.py(a.overflowButton,a.isVisible))}; CT=function(){BT.apply(this,arguments)}; YNa=function(a){US.call(this,a);this.j=new CT(this.api);g.Q(this,this.j);g.KS(this.api,this.j.element,4)}; $Na=function(a){US.call(this,a);var b=this;this.j="";this.events=new g.EF(a);g.Q(this,this.events);this.events.T(a,"internalaudioformatchange",function(c,d){if(d){d=b.api.getAvailableAudioTracks();d=g.v(d);for(var e=d.next();!e.done;e=d.next())if(e.value.getLanguageInfo().getId()===c){b.j=c;break}}}); this.events.T(a,"videoplayerreset",function(){b.j&&ZNa(b)}); this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})}; ZNa=function(a){var b=a.api.Uc();b&&(b.getVideoData().nda=a.j)}; g.DT=function(a,b,c,d,e,f,h){g.QS.call(this,g.RS({"aria-haspopup":"true"}),b,a);this.Fb=d;this.K=!1;this.C=null;this.options={};this.B=new g.vT(c,void 0,a,e,f,h);g.Q(this,this.B);this.listen("keydown",this.w5);this.listen("click",this.open)}; aOa=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.ET=function(a,b){g.wT(a.B);for(var c={},d=!1,e=0;ef.start&&d>= 5;B+=I}x=B.substr(0,4)+" "+B.substr(4,4)+" "+B.substr(8,4)+" "+(B.substr(12,4)+" "+B.substr(16,4))}else x="";m={video_id_and_cpn:String(c.videoId)+" / "+x,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:u,network_activity_style:u,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""}; n=e.clientWidth+"x"+e.clientHeight+(f>1?"*"+f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=KLa(c);var N;n=((N=c.D)==null?0:N.audio.j)?"DRC":Math.round(a*h)+"%";N=Math.round(a)+"% / "+n;a=c.Rf.toFixed(1);isFinite(Number(a))&&(N+=" (content loudness "+a+"dB)");m.volume=N;m.resolution=e.videoWidth+"x"+e.videoHeight;if(e=c.B){if(N=e.video)a=N.fps,a>1&&(m.resolution+="@"+a),(a=g.UT(b))&&a.video&&(m.resolution+= " / "+a.video.width+"x"+a.video.height,a.video.fps>1&&(m.resolution+="@"+a.video.fps)),m.codecs=nOa(e),!c.D||e.audio&&e.video?e.B_&&(m.codecs+=" / "+e.B_+"A"):m.codecs+=" / "+nOa(c.D),N.B||N.primaries?(a=N.B||"unknown",a==="smpte2084"?a+=" (PQ)":a==="arib-std-b67"&&(a+=" (HLG)"),m.color=a+" / "+(N.primaries||"unknown"),m.color_style=""):m.color_style="display:none";if(e.debugInfo)for(m.fmt_debug_info="",e=g.v(e.debugInfo),N=e.next();!N.done;N=e.next())N=N.value,m.fmt_debug_info+=N.label+":"+N.text+ " ";m.fmt_debug_info_style=m.fmt_debug_info&&m.fmt_debug_info.length>0?"":"display:none"}e=c.isLivePlayback;N=c.ge;m.live_mode_style=e||N?"":"display:none";m.live_latency_style=e?"":"display:none";if(N)m.live_mode="Post-Live"+(eR(c)?" Manifestless":"");else if(e){N=TT(l,"livelatency");m.live_latency_secs=N.toFixed(2)+"s";e=eR(c)?"Manifestless, ":"";c.Xa&&(e+="Windowed, ");a="Uncertain";if(N>=0&&N<120)if(c.latencyClass&&c.latencyClass!=="UNKNOWN")switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency"; break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(N=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+N.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=ST(l,"bandwidth");m.network_activity_samples= ST(l,"networkactivity");m.live_latency_samples=ST(l,"livelatency");m.buffer_health_samples=ST(l,"bufferhealth");b=g.QR(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";$Q(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240709_01_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&q.length>0&&m.debug_info.length+q.length<=60?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style= m.extra_debug_info&&m.extra_debug_info.length>0?"":"display:none";return m}; nOa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag}; VT=function(a,b,c,d,e){g.T.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"}; WT=function(a,b){if(a.heightPx===-1){var c=null;try{c=g.me("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;c1?2:1,a.C.height=a.heightPx*c,a.C.style.height= a.heightPx+"px",a.B.scale(1,c)));b=g.v(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+20&&(a.G=g.gs(function(){cU(a)},b)),a.D=!0)}; cU=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.Lr("EOM_VISITOR_DATA")||g.Lr("VISITOR_DATA");d=b.Wl?b.datasyncId:c;e=fP(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.Uf=FOa(a,e);g.va(f)})}; FOa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();a.Rb.Oi(c?"pot_cms":"pot_csms");var d=a.j.dG({zr:b,Zj:{lE:b,k_:150,HI:!0,xM:!0}});a.Rb.Oi(c?"pot_cmf":"pot_csmf");if(c&&a.L("html5_handle_sps_status")){var e;(e=a.B)==null||e.resolve();a.B=null;if(a.C){a.C=!1;var f,h=(f=g.dS(a.api.app))==null?void 0:f.ya;h&&h.mB(!1)}}return d}catch(l){return g.Kx(l),""}}; AOa=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new vG),a.j.ready().then(function(){a.Rb.Oi("pot_if");cU(a)}))}; GOa=function(a){US.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.EF(a);g.Q(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||b.freePreviewWatchedDuration!==null)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),b.freePreviewUsageDetails.length>0?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}); WR(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c}); WR(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})}; dU=function(a){g.K.call(this);this.features=[];var b=this.j,c=new uNa(a),d=new VS(a),e=new pT(a),f=new bU(a);var h=g.CD(a.U())?void 0:new gT(a);var l=new oT(a),m=new rOa(a),n=new zOa(a),p=new kT(a);var q=g.CD(a.U())?new GOa(a):void 0;var r=a.L("html5_enable_ssap")?new jOa(a):void 0;var t=a.L("web_cinematic_watch_settings")&&(t=a.U().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new bNa(a):void 0;var u=new jT(a);var x=a.L("enable_courses_player_overlay_purchase")?new rNa(a):void 0; var B=g.YP(a.U())?new nNa(a):void 0;var E=new eNa(a);var F=a.U().D?new fNa(a):void 0;var I=a.L("web_player_move_autonav_toggle")&&a.U().Yd?new UMa(a):void 0;var O=g.YP(a.U())?new lT(a):void 0;var N=a.L("web_enable_speedmaster")&&g.YP(a.U())?new MT(a):void 0;var S=a.U().Qk?void 0:new yOa(a);var Y=a.L("report_pml_debug_signal")?new PMa(a):void 0;var la=new ENa(a),oa=new KNa(a);var ba=a.L("enable_web_player_player_in_bar_feature")&&g.Lz(a.U())?new MNa(a):void 0;var qa=a.U().playerStyle==="flix"?new tNa(a): void 0;var P=navigator.mediaSession&&window.MediaMetadata&&a.U().Hj?new mT(a):void 0;var wa=a.L("html5_enable_drc")&&!a.U().K?new fT(a):void 0;var y=new JMa(a);var W=a.U();var xb=W.K&&((xb=W.getWebPlayerContextConfig())==null?void 0:xb.houseBrandEnvironment)==="apps-elements"?new sNa(a):void 0;W=g.YP(a.U())?new YNa(a):void 0;var Ua=a.L("html5_enable_d6de4")?new JNa(a):void 0;var sb=g.YP(a.U())&&a.L("web_sleep_timer")?new FT(a):void 0;var Db=g.EP(a.U())?new iNa(a):void 0;a=a.L("html5_enable_audio_track_stickiness")? new $Na(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,u,x,B,E,F,I,O,N,S,Y,la,oa,ba,qa,P,wa,y,xb,W,Ua,sb,Db,void 0,a)}; eU=function(){this.B=this.j=NaN}; HOa=function(a,b){this.X=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new eU;this.j=b||null;this.C=!1}; IOa=function(a,b,c){var d=g.KP(b.Da)&&!b.Da.K;if(b.Da.Sj&&(GP(b.Da)||b.Da.Ka==="shortspage"||dQ(b.Da)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.Lr("TIMING_ACTION")||Kr("TIMING_ACTION",a.X.csiPageType);a.X.csiServiceName&&Kr("CSI_SERVICE_NAME",a.X.csiServiceName);if(a.j){d=a.j.Gi();for(var e=g.v(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,gB(f,d[f],a.timerName);d=g.Pr(Ata)(a.j.iJ);g.hB(d,a.timerName);d=a.j;d.B={};d.iJ={}}g.hB({playerInfo:{visibilityState:g.Pr(aB)()},playerType:"LATENCY_PLAYER_HTML5"}, a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(jB("_start",a.timerName)?c=g.Pr(cB)("_start",a.timerName)+a.B:g.Kx(new g.Mt("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!jB("pbs",a.timerName)&&a.tick("pbs",c)}}; JOa=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if(a!=="video_to_ad"||f!=null&&f.Ga){f=a==="ad_to_video"?f:d;c=f==null?void 0:f.jJ;var l={};if(d==null?0:d.G)l.cttAuthInfo={token:d.G,videoId:d.videoId};e&&(l.startTime=e);iB(a,l);var m,n,p;d={targetVideoId:(m=d==null?void 0:d.videoId)!=null?m:"empty_video",targetCpn:b,adVideoId:(n=f==null?void 0:f.videoId)!=null?n:"empty_video",adClientPlaybackNonce:(p=c==null?void 0:c.cpn)!=null?p:f==null?void 0:f.clientPlaybackNonce}; c&&(d.adBreakType=c.adBreakType,d.adType=c.adType);g.hB(d,a);gB("pbs",h!=null?h:(0,g.uu)(),a)}}; fU=function(a){Jta();Ita();a.timerName=""}; KOa=function(a){if(a.j){var b=a.j;b.B={};b.iJ={}}a.C=!1;a.G=void 0;a.B=NaN}; LOa=function(a,b){g.iy.call(this);this.Da=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=Rr(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author= b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)typeof a==="string"&&a.length===16?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new wQ("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.xQ(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");this.index>0&&(this.items=[]);a=g.v(a);for(c=a.next();!c.done;c=a.next())(c= c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=sQ(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]}; MOa=function(a){return!!(a.playlist||a.list||a.api)}; NOa=function(a){var b=a.index+1;return b>=a.length?0:b}; OOa=function(a){var b=a.index-1;return b<0?a.length-1:b}; g.gU=function(a,b,c,d){b=b!==void 0?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.SQ(a.Da,b),g.Q(a,e),e.An=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; POa=function(a,b){a.index=g.Hd(b,0,a.length-1);a.startSeconds=0}; QOa=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.gU(a);a.items=[];for(var d=g.v(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}}; TOa=function(a,b){var c,d,e,f,h,l,m;return g.H(function(n){if(n.j==1){c=g.zB();var p=a.U(),q={context:g.UR(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(r==null?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(r==null?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r= b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var u,x,B,E,F,I;r=((I=g.R((u=r)==null?void 0:(x=u.embedPreview)==null?void 0:(B=x.thumbnailPreviewRenderer)==null?void 0:(E=B.playButton)==null?void 0:(F=E.buttonRenderer)==null?void 0:F.navigationEndpoint,g.iR))==null?void 0:I.videoId)||null}else r=null}u=(u=r)?u:void 0;x=a.playlistId?a.playlistId:b.list;B=b.listType;if(x){var O;B==="user_uploads"?O={username:x}:O={playlistId:x};ROa(p,u,b,O);q.playlistRequest= O}else b.playlist?(O={templistVideoIds:b.playlist.toString().split(",")},ROa(p,u,b,O),q.playlistRequest=O):u&&(O={videoId:u},p&&(O.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=O);d=q;e=g.sA(SOa);g.xa(n,2);return g.G(n,g.oB(c,d,e),4)}if(n.j!=2)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Fa=$s(b,g.EP(h)),h.C=h.Fa==="EMBEDDED_PLAYER_MODE_PFL",f&&(l=f,l.trackingParams&&QL(l.trackingParams)),n.return(new g.SQ(h,b));m=g.Aa(n);m instanceof Error||(m=Error("b259802748"));g.Jx(m);return n.return(a)})}; ROa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; g.iU=function(a,b){hU.get(a);hU.set(a,b)}; g.jU=function(a){g.iy.call(this);this.loaded=!1;this.player=a}; UOa=function(){this.B=[];this.j=[]}; g.kU=function(a,b){return b?a.j.concat(a.B):a.j}; g.lU=function(a,b){switch(b.kind){case "asr":VOa(b,a.B);break;default:VOa(b,a.j)}}; VOa=function(a,b){g.pb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)}; g.mU=function(a){g.K.call(this);this.X=a;this.B=new UOa;this.G=[];this.Z=[];this.D=new g.uj}; g.nU=function(a,b,c){g.mU.call(this,a);this.videoData=b;this.audioTrack=c;this.j=null;this.C=!1;this.G=b.dw;this.Z=b.FD;this.C=g.LR(b)}; WOa=function(){this.lj=!1}; XOa=function(a){var b=a===void 0?{}:a;a=b.hasSubfragmentedFmp4===void 0?!1:b.hasSubfragmentedFmp4;b=b.vF===void 0?!1:b.vF;var c=new WOa;c.lj=a||b;return c}; g.YOa=function(a){this.Da=a;this.N=new WOa;this.Mv=this.Lv=!1;this.Wp=2;this.Ca=20971520;this.fb=8388608;this.ra=120;this.Ed=62914560;this.jq=g.qD(this.Da.experiments,"html5_min_readbehind_secs");this.UD=g.qD(this.Da.experiments,"html5_min_readbehind_cap_secs");this.Pk=this.Da.L("html5_offline_reset_media_stream_on_unresumable_slices");this.ub=NaN;this.dw=this.Vl=this.Aw=2;this.Sk=oU(this,"html5_request_size_min_kb",64)*1024;this.Na=2097152;this.UA=oU(this,"html5_bypass_contention_secs");this.Tv= 1048576;this.jm=!1;this.Qk=oU(this,"html5_repredict_interval_ms",1800);this.PD=oU(this,"html5_head_miss_secs",5);this.WD=oU(this,"html5_min_upgrade_health_secs",10);this.zb=15;this.Jg=1;this.Z=1.15;this.Y=1.05;this.Xl=1;this.VD=oU(this,"html5_min_seconds_between_format_selections",8);this.OD=oU(this,"html5_max_buffer_health_for_downgrade_secs",15);this.gt=eP;this.Bj=this.Td=!1;this.Hj=6;this.B=!1;this.Gq=g.qD(this.Da.experiments,"html5_min_startup_buffered_media_duration_secs");this.Nv=g.qD(this.Da.experiments, "html5_post_interrupt_readahead");this.bA=this.Da.L("html5_allow_onesie_for_ssap");this.JB=this.Da.L("html5_disable_classic_alr");this.Pv=g.qD(this.Da.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.ww=100;this.yj=10;this.YD=6;this.ow=oU(this,"html5_ssdai_failure_retry_limit",3);this.im=this.Da.experiments.ob("html5_clone_original_for_fallback_location");this.wj=!1;this.Bc=g.qD(this.Da.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Vk=g.qD(this.Da.experiments, "html5_subsegment_readahead_timeout_secs");this.CD=g.qD(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Uk=g.qD(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.ED=g.qD(this.Da.experiments,"html5_subsegment_readahead_min_load_speed");this.uw=g.qD(this.Da.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.GD=g.qD(this.Da.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.zj=oU(this,"html5_hopeless_secs", 15);this.Ap=1;this.ke=!1;this.bD=this.Da.L("html5_restrict_streaming_xhr_on_sqless_requests");this.QD=g.qD(this.Da.experiments,"html5_max_headm_for_streaming_xhr");this.SF=this.Da.L("html5_pipeline_manifestless_allow_nonstreaming");this.TH=this.Da.L("html5_prefer_server_bwe3");this.JD=this.Da.L("html5_last_slice_transition");this.hD=this.Da.L("html5_store_xhr_headers_readable");this.mw=this.Sf=this.hk=!1;this.Np=g.qD(this.Da.experiments,"html5_max_drift_per_track_secs");this.uq=this.Da.L("html5_no_placeholder_rollbacks"); this.jD=this.Da.L("html5_subsegment_readahead_enable_mffa");this.Qf=this.Da.L("html5_allow_video_keyframe_without_audio");this.MF=this.Da.L("html5_enable_vp9_fairplay");this.Jb=!0;this.Pf=this.Va=this.Xc=!1;this.Dn=!0;this.ew=!1;this.D="";this.MC=1048576;this.rf=[];this.PC=this.Da.L("html5_woffle_resume");this.Sl=this.Da.L("html5_abs_buffer_health");this.FD=this.Da.L("html5_interruption_resets_seeked_time");this.RD=g.qD(this.Da.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ka= !1;this.yp=this.Da.L("html5_log_additional_source_buffer_updates");this.wp=this.Da.L("html5_explicitly_dispose_xhr");this.Qv=!1;this.Wl=!this.Da.L("html5_encourage_array_coalescing");this.Yl=!1;this.YC=this.Da.L("html5_restart_on_unexpected_detach");this.qj=0;this.Kb="";this.iD=this.Da.L("html5_filter_non_efficient_formats_for_safari");this.Da.L("html5_format_hybridization");this.pz=this.Da.L("html5_abort_before_separate_init");this.dD=Ms();this.fD=this.Da.L("html5_serialize_server_stitched_ad_request"); this.VA=this.Da.L("html5_skip_buffer_check_seek_to_head");this.jf=!1;this.Ul=this.Da.L("html5_attach_po_token_to_bandaid");this.fq=g.qD(this.Da.experiments,"html5_max_redirect_response_length")||8192;this.Tk=this.Da.L("html5_rewrite_timestamps_for_webm");this.Nb=this.Da.L("html5_only_media_duration_for_discontinuities");this.WC=g.qD(this.Da.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Da.L("html5_onesie_live");this.ID=this.Da.L("html5_onesie_premieres");this.OC=this.Da.L("html5_drop_onesie_for_live_mode_mismatch"); this.RE=g.qD(this.Da.experiments,"html5_onesie_live_ttl_secs")||8;this.Qq=g.qD(this.Da.experiments,"html5_attach_num_random_bytes_to_bandaid");this.LF=g.qD(this.Da.experiments,"html5_onesie_request_timeout_ms")||3E3;this.j=!1;this.uh=this.Da.L("html5_apply_ssap_slice_info_adjustment");this.aD=this.Da.L("html5_enable_sabr_host_fallback");this.qa=!1;this.ZB=this.Da.L("html5_disable_ssap_append_pause");this.Cn=this.Da.L("html5_init_source_buffer_after_metadata");this.BD=this.Da.L("html5_gapless_fallback_on_append_error"); this.xw=!1;this.Fa=this.Da.L("html5_ssdai_use_post_for_media")&&this.Da.L("gab_return_sabr_ssdai_config");this.KD=this.Da.L("html5_use_post_for_media");this.Lc=this.Da.L("html5_use_live_ump_heartbeat");this.zw=this.Da.L("html5_use_sps_ump_part");this.DD=this.Da.L("html5_handle_sps_status");this.tj=this.Da.L("html5_enable_sps_non_fatal_logs");this.eD=this.Da.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Da.L("html5_use_ump");this.bb=this.Ga=!1;this.VG=this.Da.Tf;this.UC=this.Da.L("html5_reset_primary_stats_on_redirector_failure"); this.gI=this.Da.L("html5_remap_to_original_host_when_redirected");this.mm=this.Ti=this.C=this.Bi=!1;this.Ai=this.Da.L("html5_enable_sabr_format_selection");this.En=this.Da.L("html5_sabr_support_quality_constraints");this.hI=this.Da.L("html5_sabr_remove_all_quality_constraints");this.nB=this.Da.L("html5_iterative_seeking_buffered_time");this.Wk=this.Da.L("html5_use_network_error_code_enums");this.WB=this.Da.L("html5_disable_overlapping_requests");this.K=!1;this.enableServerDrivenRequestCancellation= this.Da.L("html5_enable_server_driven_request_cancellation");this.cD=this.Da.L("html5_enable_sabr_request_timing");this.tp=this.Da.L("html5_enable_server_format_filter");this.NC=this.Da.L("html5_drc_edit_sync_workaround");this.Zy=this.Da.L("html5_enable_lawnmower");this.TC=this.Da.L("html5_enable_lawnmower_messaging");this.Uf=this.Da.yc()?g.qD(this.Da.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.HD=g.qD(this.Da.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Cq=g.qD(this.Da.experiments, "html5_normal_latency_mffa_ms")||NaN;this.XD=g.qD(this.Da.experiments,"html5_mffa_ms_proxima_override")||this.Cq;this.ND=this.Da.L("html5_live_defrag_only_h264_playbacks");this.LD=this.Da.L("html5_live_defrag_only_h264_formats");this.fI=this.Da.L("html5_record_now");this.Rf=!1;this.An=g.qD(this.Da.experiments,"html5_drm_byterate_soft_cap");this.Bn=g.qD(this.Da.experiments,"html5_drm_live_byterate_soft_cap");this.zp=this.Sv=!1;this.Xa=this.Da.L("html5_sabr_log_request_creation");this.Tb=this.Da.L("html5_sabr_report_request_cancellation_info"); this.Tf=this.Yy=this.pw=!1;this.nw=this.Da.L("html5_spoof_4k");this.gq=oU(this,"html5_min_media_duration_for_cabr_slice");this.SD=this.Wl?0:oU(this,"html5_min_media_duration_for_append_prop");this.SC=this.Da.L("html5_remove_defrag_without_frame_level_streaming");this.Dd=!0;this.wB=this.Da.L("html5_consume_all_buffered_bytes_one_poll");this.FC=this.Da.L("html5_disable_urgent_adaptation");this.yA=this.Da.L("html5_apply_constraints_in_client_for_sabr");this.jw=this.Da.L("html5_send_video_playback_ustreamer_config"); this.Bp=oU(this,"html5_max_discontinuity_rewrite_count");this.xp=oU(this,"html5_fixed_media_duration_for_request");this.Sj=this.Da.L("html5_use_init_selected_audio");this.Ra=!1;this.Ae=oU(this,"html5_sabr_request_limit_per_period");this.Xq=this.vp=this.Xy=this.G=this.hw=!1;this.qc=this.Da.L("html5_sabr_live_partial_segment");this.Yd=this.Da.L("html5_sabr_dispose_media_objects");this.zn=!1;this.Co=this.Da.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Ov=this.Gj=!1;this.VC=this.Da.L("html5_enable_d6de4"); this.Az=this.Da.L("html5_account_for_delayed_buffer_range_creation");this.MD=this.Da.L("html5_ssap_keep_only_ssap_eos_check");this.Da.L("html5_high_res_seek_logging");this.rb=this.Da.L("html5_update_buffer_timeline_until_update_end");this.Bb=!1;this.gD=this.Da.L("html5_enable_ssap_multi_audio_format_filtering");this.XC=this.Da.L("html5_enable_po_token_live_caption");this.lm=this.Da.L("html5_consume_ssdai_info_with_streaming");this.yw=this.lw=this.Wa=!1;this.gw=this.Da.L("html5_sabr_fail_request_after_handle_available_slices"); this.Tq=g.qD(this.Da.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Rv=!1;this.Tl=this.Da.L("html5_append_pause_high_res_logging")}; ZOa=function(a,b,c){c=c===void 0?!1:c;b.video.j>1080&&!a.Lv&&(a.Ca=36700160,a.fb=5242880,a.Na=Math.max(4194304,a.Na),a.Lv=!0);b.video.j>2160&&!a.Mv&&(a.Ca=104857600,a.ub=13107200,a.Mv=!0);g.qD(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?b.isEncrypted()&&g.Hs()&&g.Fs("samsung")&&(g.Fs("kant")||g.Fs("muse"))&&(a.ub=g.qD(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.Hs()&&g.Fs("kant")&&(a.ub=1310720);a.An!==0&&b.isEncrypted()&&(a.ub=a.An);a.Bn!==0&&b.isEncrypted()&& c&&(a.ub=a.Bn);b.ub&&(a.Tv=Math.max(a.Sk,Math.min(a.Na,5*b.ub)))}; pU=function(a){return a.C&&a.Ai}; qU=function(a){return a.C&&a.Ti&&a.playbackStartPolicy}; $Oa=function(a,b,c,d){a.Ti&&(a.playbackStartPolicy=b,a.jG=c,a.bG=d)}; oU=function(a,b,c){return g.qD(a.Da.experiments,b)||(c===void 0?0:c)}; g.aPa=function(a,b){return YF(a.info.mimeType)?b?a.info.itag===b:!0:!1}; g.bPa=function(a,b){if(a.j!=null&&g.CD(b.U())&&!a.j.isManifestless&&a.j.j.rawcc!=null)return!0;if(!a.dc())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.aPa(c,"386")}); a=!!a.j&&!a.j.isManifestless&&YEa(a.j);return b||a}; g.rU=function(a,b,c,d,e,f){g.mU.call(this,a);this.videoId=c;this.lZ=e;this.eventId=f;this.K={};this.j=null;a=d||g.Vr(b).hl||"";a=a.split("_").join("-");this.C=g.Wr(b,{hl:a})}; uU=function(a,b){var c=this;this.currentState=0;this.onSuccess=[];this.onFailure=[];this.currentState=a;this.result=b.result;this.error=b.error;b.promise&&b.promise.then(function(d){sU(c,d)},function(d){tU(c,d)})}; vU=function(a){return new uU(1,{result:a})}; cPa=function(a){var b=new uU(0,{});sU(b,a);return b}; xU=function(a,b){var c=new uU(0,{});a.onSuccess.push(function(d){sU(c,d)}); a.onFailure.push(function(d){try{var e=b(d);sU(c,e)}catch(f){tU(c,f)}}); wU(a);return c}; sU=function(a,b){if(b&&typeof b==="object"){if("then"in b){b.then(function(c){sU(a,c)},function(c){tU(a,c)}); return}if(b instanceof uU){b.Yj(function(c){sU(a,c)}); xU(b,function(c){tU(a,c)}); return}}a.currentState=1;a.result=b;wU(a)}; tU=function(a,b){a.currentState=2;a.error=b;wU(a)}; wU=function(a){if(a.currentState===1){var b=a.onSuccess;a.onSuccess=[];a.onFailure=[];b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c(a.result)}else if(a.currentState===2)for(b=a.onFailure,a.onSuccess=[],a.onFailure=[],b=g.v(b),c=b.next();!c.done;c=b.next())c=c.value,c(a.error)}; dPa=function(a,b,c){this.B=a;this.j=b;this.onFailure=c}; ePa=function(a,b){return{zz:a.zz&&b.zz,Kd:a.Kd&&b.Kd,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}}; yU=function(a,b){var c=fPa,d=this;this.path=a;this.C=b;this.D=c;this.capabilities={zz:!!this.C,Kd:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new dPa([{name:"compileStreaming",condition:function(e){return!!d.B&&e.streaming}, Ww:function(){return WebAssembly.compileStreaming(fetch(d.path))}, onFailure:function(){return d.capabilities.streaming=!1}}, {name:"sync",condition:function(e){return e.sync}, Ww:function(){return gPa(d).Yj(function(e){return new WebAssembly.Module(e)})}, onFailure:function(){return d.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, Ww:function(){return gPa(d).Yj(function(e){return WebAssembly.compile(e)})}, onFailure:function(){return d.capabilities.Kd=!1}}],void 0,function(e,f,h){g.Kx(Error("wasm module compile mode '"+h.name+"' failure",{cause:e}))}); this.K=new dPa([{name:"instantiateStreaming",condition:function(e){return e.Kd&&e.streaming&&!d.B&&!d.j}, Ww:function(e,f){return WebAssembly.instantiateStreaming(fetch(d.path),f).then(function(h){d.j=vU(h.module);return{instance:h.instance,aq:!1}})}, onFailure:function(){return d.capabilities.streaming=!1}}, {name:"sync",condition:function(e){return e.Kd&&e.sync}, Ww:function(e,f){return hPa(d,e).Yj(function(h){return{instance:new WebAssembly.Instance(h,f),aq:!1}})}, onFailure:function(){return d.capabilities.sync=!1}}, {name:"async",condition:function(e){return e.Kd}, Ww:function(e,f){return hPa(d,e).Yj(function(h){return WebAssembly.instantiate(h,f)}).Yj(function(h){return{instance:h, aq:!1}})}, onFailure:function(){return d.capabilities.Kd=!1}}, {name:"asmjs",condition:function(e){return e.zz}, Ww:function(e,f){return new uU(0,{promise:d.C(f).then(function(h){return{instance:{exports:h},aq:!0}})})}, onFailure:function(){return d.capabilities.zz=!1}}],function(e,f,h){return d.D(h,e.instance.exports)},function(e,f,h){g.Kx(Error("wasm module instantiation mode "+h.name+" failure",{cause:e}))})}; kPa=function(a){var b=iPa;return b.instantiate(a?ePa(b.capabilities,a):b.capabilities,new jPa)}; gPa=function(a){if(a.B)return a.B;var b=fetch(a.path).then(function(c){return c.arrayBuffer()}).then(function(c){a.B=vU(c); return c}).then(void 0,function(c){g.Kx(Error("wasm module fetch failure",{cause:c})); a.B=void 0;throw c;}); a.B=new uU(0,{promise:b});return a.B}; hPa=function(a,b){if(!b.Kd)return new uU(2,{error:Error("wasm unavailable")});if(a.j)return a.j;a.j=xU(a.compile(b).Yj(function(c){a.j=vU(c);return c}),function(c){g.Kx(Error("wasm module compile failure",{cause:c})); a.j=void 0;throw c;}); return a.j}; lPa=function(){}; mPa=function(){}; jPa=function(){this.env=new lPa;this.wasi_snapshot_preview1=new mPa}; fPa=function(a,b){b._initialize();a=Math.floor(Math.random()*256);var c=Math.floor(Math.random()*256),d=0;try{d=b.malloc(16);(new Uint8Array(b.memory.buffer,d,16)).fill(a);if(b.sentinel(d,16,c)!==c*16%256)return!1;for(var e=new Uint8Array(b.memory.buffer,d,16),f=0;f<16;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{d!==0&&b.free(d)}}; zU=function(a,b){this.instance=a;this.aq=b;this.exports=this.instance.exports}; oPa=function(a,b,c){c=c===void 0?!1:c;var d=AU.Ss();return nPa(a,b,{zz:c,Kd:!0,sync:!0,streaming:!0}).Yj(function(e){AU.Gr(e.aq?"winitjs":"winit",d);return e})}; nPa=function(a,b,c){iPa||(iPa=new yU(a,b));return kPa(c).Yj(function(d){return new zU(d.instance,d.aq)})}; pPa=function(a,b){g.K.call(this);var c=this;this.J=a;this.j=b;this.iJ={};this.B={};this.C=null;this.K=this.J.L("web_player_defer_modules");this.D=new Set;this.G=new g.EF(this);this.fd={doa:function(){return c.j}}; this.Ie=new Map;g.Q(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)}; g.BU=function(a){return a.Ie.get("captions")}; vPa=function(a,b){switch(b){case "ad":return qPa(a);case "annotations_module":return a.J.Zc()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.zU||a.controlsType==="3"?!1:a.Na.isEmpty()&&a.playerStyle!=="annotation-editor"&&a.playerStyle!=="live-dashboard"?!!b.Wa||!!g.JR(b)||!!g.ILa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return rPa(a);case "embed":return g.EP(a.J.U());case "endscreen":return g.sPa(a);case "heartbeat":return a.zT();case "inline_preview":return a.J.U().showInlinePreviewUi; case "kids":return RP(a.J.U());case "remote":return a.J.U().Gj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().yj;case "captions":return tPa(a);case "unplugged":return g.LP(a.J.U());case "ux":return a.J.U().bb;case "webgl":return uPa(a);case "ypc":return a.zH();case "ypc_clickwrap":return a=a.J.getVideoData(),a.Bi&&!a.RE;case "yto":return!!a.J.getVideoData().Ka.includes("yto");default:return g.Jx(Error("Module descriptor "+b+" does not match")),!1}}; CU=function(a,b,c,d,e){var f;c=c===void 0?!1:c;d=d===void 0?!1:d;var h=a.Ie.get(b);if(!h||d)if(e||(e=function(){CU(a,b,c,d)}),f||(f=function(){a.J.Dg(b)}),h=h||wPa(a,b,vPa(a,b),e,f))a.Ie.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.Ym("onApiChange")}; yPa=function(a){var b=b===void 0?!1:b;var c,d,e,f,h;return g.H(function(l){if(l.j==1)return(c=a.Ie.get("asmjs"))&&!b?l.return(c):(d=hU.get("asmjs"))!=null?(e=d,l.Ia(2)):g.G(l,new Promise(function(m,n){xPa(a,"asmjs",function(){var p=hU.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3); l.j!=2&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Ie.set("asmjs",h);h.create();return l.return(h)})}; BPa=function(a){zPa(a)&&a.SO();APa(a)&&(CU(a,"captions",!0),CU(a,"endscreen"),a.fJ(),CU(a,"creatorendscreen",!0))}; APa=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}; zPa=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.rb(a.Ka,"ad")||wLa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=b==null?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=(e=d.config)==null?void 0:e.adPlacementConfig;e=void 0;if(((e=f)==null?void 0:e.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var h=e=void 0;f=Number((e=f)==null?void 0:(h= e.adTimeOffset)==null?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number(((e=d.renderer)==null?void 0:(h=e.adBreakServiceRenderer)==null?void 0:h.prefetchMilliseconds)||0);d=f-d;d=11;a=a.api.U().Z&&JU;return!(!b&&!a)}; TU=function(a,b){return!a.api.isInline()&&!WPa(a,pt(b))&&g.Dz(b)}; VPa=function(a){a.Kg.Gv();if(a.EM&&a.RO)a.RO=!1;else if(!a.api.U().Ra&&!a.Dr()){var b=a.api.getPlayerStateObject();g.U(b,2)&&g.kS(a.api)||a.BH(b);!a.api.U().zb||b.isCued()||g.U(b,1024)?a.Vs():a.BM.isActive()?(a.qQ(),a.BM.stop()):a.BM.start()}}; YPa=function(a,b){var c;if((c=a.api.getVideoData())==null?0:c.mutedAutoplay){var d,e;if((d=b.target)==null?0:(e=d.className)==null?0:e.includes("ytp-info-panel"))return!1}return g.Dz(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),a.api.getPresentingPlayerType()===2&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.U(b,4)||g.U(b,8)||g.U(b,2)||a.Vs(),!0):!1}; ZPa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()}; UPa=function(a){a=Gs()&&Tma()>=67&&!a.api.U().Z;return!g.Fs("tizen")&&!BP&&!a&&!0}; UU=function(a,b){b=b===void 0?2:b;g.iy.call(this);this.api=a;this.j=null;this.Gd=new rt(this);g.Q(this,this.Gd);this.B=Psa;this.Gd.T(this.api,"presentingplayerstatechange",this.C5);this.j=this.Gd.T(this.api,"progresssync",this.Sc);this.hp=b;this.hp===1&&this.Sc()}; g.VU=function(a){g.T.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",va:"{{title}}"}]},{I:"div",S:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.J=a;this.B=new g.fp(this.show,10,this);this.j=new g.fp(this.hide,500,this);g.Q(this,this.B);g.Q(this,this.j);this.hide()}; XU=function(a,b,c){if(b<=0){c=Jy();b="muted";var d=0}else c=c?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";WU(a,c,b,d+"%")}; $Pa=function(a,b){b=b?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:esa();var c=a.J.getPlaybackRate(),d=g.tE("Speed is $RATE",{RATE:String(c)});WU(a,b,d,c+"x")}; aQa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";WU(a,XMa(),b)}; WU=function(a,b,c,d){d=d===void 0?"":d;a.updateValue("label",c===void 0?"":c);a.updateValue("icon",b);g.ip(a.j);a.B.start();a.updateValue("title",d);g.rp(a.element,"ytp-bezel-text-hide",!d)}; bQa=function(a,b){g.T.call(this,{I:"button",La:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.EP(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")?hsa():{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {I:"div",S:"ytp-cards-button-title",va:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div", S:"ytp-cards-button-title",va:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.gz(this,250,!0,100);g.Q(this,this.B);g.rp(this.C,"ytp-show-cards-title",g.EP(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.Caa);this.wH(!0)}; cQa=function(a,b){g.T.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",W:{"aria-label":"Show cards","aria-haspopup":"true"},V:[hsa()]},{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},V:[g.Ay()]}]:[{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var c=this;this.J=a;this.Yg= b;this.D=new g.gz(this,250,!1,250);this.j=null;this.N=new g.fp(this.Qaa,300,this);this.K=new g.fp(this.Paa,2E3,this);this.G=[];this.B=null;this.Y=new g.fp(function(){c.element.style.margin="0"},250); this.onClickCommand=this.C=null;g.Q(this,this.D);g.Q(this,this.N);g.Q(this,this.K);g.Q(this,this.Y);a.U().L("player_new_info_card_format")?(g.np(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ea("ytp-cards-teaser-close-button"),"click",this.D5),this.T(this.Ea("ytp-cards-teaser-info-icon"),"click",this.ST),this.T(this.Ea("ytp-cards-teaser-label"),"click",this.ST)):this.listen("click",this.ST);this.T(b.element,"mouseover",this.NV);this.T(b.element,"mouseout",this.MV);this.T(a,"cardsteasershow", this.eca);this.T(a,"cardsteaserhide",this.Mb);this.T(a,"cardstatechange",this.g3);this.T(a,"presentingplayerstatechange",this.g3);this.T(a,"appresize",this.zN);this.T(a,"onShowControls",this.zN);this.T(a,"onHideControls",this.l7);this.listen("mouseenter",this.E5)}; dQa=function(a){g.T.call(this,{I:"button",La:[YU.BUTTON,YU.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:YU.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.Dy()]},{I:"div",S:YU.TITLE_NOTIFICATIONS_OFF,W:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",W:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; eQa=function(a,b){a.j=b;a.element.classList.toggle(YU.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.MD:c.KD)?(a=a.api.Em())?nB(a,b):g.Jx(Error("No innertube service available when updating notification preferences.")):g.Jx(Error("No update preferences command available.")):g.Jx(Error("No video data when updating notification preferences."))}; gQa=function(a,b,c){var d=d===void 0?800:d;var e=e===void 0?600:e;a=fQa(a,b);if(a=g.Qd(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))Rpa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)}; fQa=function(a,b){var c=document.location.protocol;return Gfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")}; g.ZU=function(a,b,c,d,e,f,h,l,m,n,p,q){a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if(b==="0"||b==="-1")b=null;if(d==="0"||d==="-1")d=null;var r=p.U(),t=r.userDisplayName&&g.KP(r);g.T.call(this,{I:"div",La:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",W:t?{title:g.tE("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":eQ(r),"data-tooltip-opaque":String(g.EP(r)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",va:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",W:t?{title:g.tE("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":eQ(r),"data-tooltip-opaque":String(g.EP(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},d?{I:"div",S:"ytp-sb-count", va:d}:""]}],W:{"aria-live":"polite"}});var u=this;this.channelId=h;this.J=p;this.C=q;var x=this.Ea("ytp-sb-subscribe"),B=this.Ea("ytp-sb-unsubscribe");f&&g.np(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var E=function(){if(r.Ca){var I=u.channelId;if(m||n){var O={c:I};var N;g.VL.isInitialized()&&(N=RBa(O));O=N||"";if(N=p.getVideoData())if(N=N.subscribeCommand){var S=p.Em();S?(nB(S,N,{botguardResponse:O,feature:m}),p.ib("SUBSCRIBE",I)):g.Jx(Error("No innertube service available when updating subscriptions."))}else g.Jx(Error("No subscribe command in videoData.")); else g.Jx(Error("No video data available when updating subscription."))}B.focus();B.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}else gQa(g.UP(u.J.U()),"sb_button",u.D)},F=function(){var I=u.channelId; if(m||n){var O=p.getVideoData();nB(p.Em(),O.unsubscribeCommand,{feature:m});p.ib("UNSUBSCRIBE",I)}x.focus();x.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")}; this.T(x,"click",E);this.T(B,"click",F);this.T(x,"keypress",function(I){I.keyCode===13&&E(I)}); this.T(B,"keypress",function(I){I.keyCode===13&&F(I)}); this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(AMa(p),hS(p,x,this),hS(p,B,this))}else g.np(x,"ytp-sb-disabled"),g.np(B,"ytp-sb-disabled")}; jQa=function(a){g.T.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{I:"div",S:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",va:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}",W:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Ea("ytp-title-channel");this.B=this.Ea("ytp-title-channel-logo");this.channelName=this.Ea("ytp-title-expanded-title");this.G=this.Ea("ytp-title-expanded-overlay");this.C=this.j=this.subscribeButton=null;this.D=!1;a.createClientVe(this.B,this,36925);a.createClientVe(this.channelName,this, 37220);g.EP(this.api.U())&&hQa(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qd(iQa(b));c.preventDefault()}); this.T(this.B,"click",this.faa);this.Ta()}; kQa=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.ZU("Subscribe",null,"Subscribed",null,!0,!1,b.Rl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); a.subscribeButton=c;g.Q(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new dQa(a.api);a.j=e;g.Q(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Yl&&(e.show(),a.api.logVisibility(e.element,!0))}); a.T(a.api,"UNSUBSCRIBE",function(){b.Yl&&(e.hide(),a.api.logVisibility(e.element,!1),eQa(e,!1))})}}; hQa=function(a){var b=a.api.U();kQa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Wa||(a.T(a.channel,"mouseenter",a.mP),a.T(a.channel,"mouseleave",a.GO),a.T(a.channel,"focusin",a.mP),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.GO()})); a.C=new g.fp(function(){a.isExpanded()&&(a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.j&&(a.j.hide(),a.api.logVisibility(a.j.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.Q(a,a.C);a.T(a.channel,lQa,function(){mQa(a)}); a.T(a.api,"onHideControls",a.XS);a.T(a.api,"appresize",a.XS);a.T(a.api,"fullscreentoggled",a.XS)}; mQa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; nQa=function(a){var b=a.api.getPlayerSize();return g.EP(a.api.U())&&b.width>=524}; iQa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.fQ(b)+c.zb;g.TR(c)&&(d="https://music.youtube.com"+c.zb);if(!g.EP(b))return d;b={};g.$R(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.YL(b,"emb_ch_name_ex");return g.aj(d,b)}; $U=function(a){var b=g.RS({"aria-haspopup":"true"});g.QS.call(this,b,a);this.listen("keydown",this.j)}; aV=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; oQa=function(a,b){g.T.call(this,{I:"div",S:"ytp-user-info-panel",W:{"aria-label":"User info"},V:a.U().Ca&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable}}",role:"text"},va:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable2}}",role:"text"},va:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon", va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",W:{tabIndex:"{{userInfoFocusable}}"},va:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",W:{tabIndex:"{{userInfoFocusable2}}",role:"button"},va:a.U().Tb?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.U().Ca||a.U().Tb||(a=this.Ea("ytp-user-info-panel-login"),this.T(a,"click",this.G5));this.closeButton=new g.T({I:"button",La:["ytp-collapse","ytp-button"],W:{title:"Close"},V:[g.Iy()]});this.closeButton.Ja(this.element); g.Q(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.F5);this.Ta()}; qQa=function(a,b,c){g.vT.call(this,a);this.Fb=b;this.le=c;this.getVideoUrl=new $U(6);this.Yn=new $U(5);this.Sn=new $U(4);this.vc=new $U(3);this.eH=new g.QS(g.RS({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.QS(g.RS(),1,"Stats for nerds");this.Sz=new g.ry({I:"div",La:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.tX=new uT(this.J,this.Sz);this.YH=this.pu=null;g.EP(this.J.U())&&(this.closeButton= new g.T({I:"button",La:["ytp-collapse","ytp-button"],W:{title:"Close"},V:[g.Iy()]}),g.Q(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.listen("click",this.o7,this));g.EP(this.J.U())&&(this.Ll=new g.QS(g.RS(),8,"Account"),g.Q(this,this.Ll),this.Tc(this.Ll,!0),this.Ll.listen("click",this.Uba,this),a.createClientVe(this.Ll.element,this.Ll,137682));this.J.U().Bn&&(this.Fl=new ZS("Loop",7),g.Q(this,this.Fl),this.Tc(this.Fl,!0),this.Fl.listen("click",this.Jaa,this),a.createClientVe(this.Fl.element, this.Fl,28661));g.Q(this,this.getVideoUrl);this.Tc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Aaa,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.Q(this,this.Yn);this.Tc(this.Yn,!0);this.Yn.listen("click",this.Baa,this);a.createClientVe(this.Yn.element,this.Yn,28660);g.Q(this,this.Sn);this.Tc(this.Sn,!0);this.Sn.listen("click",this.zaa,this);a.createClientVe(this.Sn.element,this.Sn,28658);g.Q(this,this.vc);this.Tc(this.vc,!0);this.vc.listen("click",this.yaa, this);g.Q(this,this.eH);this.Tc(this.eH,!0);this.eH.listen("click",this.Aba,this);g.Q(this,this.showVideoInfo);this.Tc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Vba,this);g.Q(this,this.Sz);this.Sz.listen("click",this.naa,this);g.Q(this,this.tX);b=document.queryCommandSupported&&document.queryCommandSupported("copy");Saa("Chromium")>=43&&(b=!0);Saa("Firefox")<=40&&(b=!1);b&&(this.pu=new g.T({I:"textarea",S:"ytp-html5-clipboard",W:{readonly:"",tabindex:"-1"}}),g.Q(this,this.pu), this.pu.Ja(this.element));var d;(d=this.Ll)==null||d.setIcon(lsa());var e;(e=this.Fl)==null||e.setIcon({I:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.vc.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.eH.setIcon(fsa());this.showVideoInfo.setIcon(gsa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);pQa(this);this.xH(this.J.getVideoData())}; bV=function(a,b){var c=!1;if(a.pu){var d=a.pu.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Fb.Mb():(a.Sz.Cd(b,"text"),g.yT(a.Fb,a.tX),ZMa(a.Sz.element),a.pu&&(a.pu=null,pQa(a)));return c}; pQa=function(a){var b=!!a.pu;a.vc.Nj(b?"Copy debug info":"Get debug info");aV(a.vc,!b);a.Sn.Nj(b?"Copy embed code":"Get embed code");aV(a.Sn,!b);a.getVideoUrl.Nj(b?"Copy video URL":"Get video URL");aV(a.getVideoUrl,!b);a.Yn.Nj(b?"Copy video URL at current time":"Get video URL at current time");aV(a.Yn,!b);a.Sn.setIcon(b?csa():null);a.getVideoUrl.setIcon(b?By():null);a.Yn.setIcon(b?By():null)}; rQa=function(a){return g.EP(a.J.U())?a.Ll:a.Fl}; tQa=function(a,b){g.xT.call(this,a);this.le=b;this.D=new g.EF(this);this.ra=new g.fp(this.jca,1E3,this);this.Ca=this.C=null;g.Q(this,this.D);g.Q(this,this.ra);a.createClientVe(this.element,this,28656);g.np(this.element,"ytp-contextmenu");sQa(this);this.hide()}; sQa=function(a){g.ut(a.D);var b=a.J.U();b.playerStyle==="gvn"||b.B||b.Wa||(b=a.J.qb(),a.D.T(b,"contextmenu",a.jaa),a.D.T(b,"touchstart",a.I5,null,!0),a.D.T(b,"touchmove",a.w0,null,!0),a.D.T(b,"touchend",a.w0,null,!0))}; uQa=function(a){a.J.isFullscreen()?g.KS(a.J,a.element,10):a.Ja(document.body)}; cV=function(a,b,c){c=c===void 0?240:c;g.T.call(this,{I:"button",La:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.EP(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",va:"{{icon}}"},{I:"div",S:"ytp-copylink-title",va:"Copy link",W:{"aria-hidden":"true"}}]});this.api=a;this.Ne=b;this.j=c;this.visible=!1;this.tooltip=this.Ne.Re();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.rp(this.element,"ytp-show-copylink-title",g.EP(b));a.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.Ta();this.addOnDisposeCallback(g.gS(this.tooltip,this.element))}; vQa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.qb().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.Wp&&!g.SR(c)&&!a.api.Zc()&&!b}; wQa=function(a){a.updateValue("icon",wy());if(a.api.U().B)a.tooltip.CH(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Th();a.tooltip.CH(a.element);var b=a.listen("mouseleave",function(){a.Nc(b);a.Ta();a.tooltip.xm()})}}; xQa=function(a,b){return g.H(function(c){if(c.j==1)return g.xa(c,2),g.G(c,navigator.clipboard.writeText(b),4);if(c.j!=2)return c.return(!0);g.Aa(c);var d=c.return,e=!1,f=g.me("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Nu){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)})}; dV=function(a){g.T.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",va:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.fp(this.show,10,this);this.B=new g.fp(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ea("ytp-doubletap-static-circle");g.Q(this,this.D);g.Q(this,this.B);this.hide();this.N=this.Ea("ytp-doubletap-fast-forward-ve");this.Y=this.Ea("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")}; eV=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.qb().getPlayerSize();a.G?a.B.stop():g.ip(a.B);a.D.start();a.element.setAttribute("data-side",b===-1?"back":"forward");g.np(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";b===1?(a.j.style.right="",a.j.style.left=d.width*.8-30+"px"):b===-1&&(a.j.style.right="",a.j.style.left=d.width*.1-15+"px");a.j.style.top=d.height*.5+15+"px";yQa(a,a.G?a.C:c)}; zQa=function(a,b,c){g.ip(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.np(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")}; yQa=function(a,b){b=g.tE("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)}; AQa=function(a){tT.call(this,a,!1,!0);this.Ga=[];this.Nb=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Fa=new g.T({I:"div",S:"ytp-featured-product-open-in-new"});g.Q(this,this.Fa);this.countdownTimer=new g.T({I:"text",S:"ytp-featured-product-countdown",va:"{{content}}"});this.countdownTimer.hide();g.Q(this,this.countdownTimer);this.B=new g.T({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text", va:"{{trendingOffer}}"}]});this.B.hide();g.Q(this,this.B);this.overflowButton=new g.T({I:"button",La:["ytp-featured-product-overflow-icon","ytp-button"],W:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Q(this,this.overflowButton);this.infoButton=new g.T({I:"button",La:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.Q(this,this.infoButton);this.N=new g.T({I:"text",S:"ytp-featured-product-exclusive-countdown",va:"{{content}}",W:{id:"exclusiveCountdown","aria-hidden":"true"}}); this.N.hide();g.Q(this,this.N);this.K=new g.T({I:"div",S:"ytp-featured-product-exclusive-container",W:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",va:"{{exclusive}}",W:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.Q(this,this.K);this.banner=new g.T({I:"a",S:"ytp-featured-product-container", V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",W:{src:"{{thumbnail}}"}},this.Fa]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",va:"{{title}}"},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",S:"ytp-featured-product-price-container",W:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",va:"{{price}}",W:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text", va:"{{promotionText}}",W:{"aria-hidden":"true"}}]}:{I:"div",W:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",va:"{{price}}",W:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",va:"{{salesOriginalPrice}}",W:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",va:"{{priceDropReferencePrice}}",W:{"aria-hidden":"true"}}]},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div", S:"ytp-featured-product-when-promotion-text-enabled",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",va:"{{affiliateDisclaimer}}"},this.B,{I:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",va:"{{vendor}}"}]}:{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",va:"{{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", va:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.Q(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,g.iE("featured_product"),this.Ida);this.T(this.J,g.jE("featured_product"),this.bC);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.Daa);this.T(this.overflowButton.element,"click",this.J5);this.T(a,"featuredproductdismissed",this.Tu)}; BQa=function(a){var b,c;a=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;var d,e,f;return(a==null||!a.affiliateDisclaimer)&&(a==null?0:(d=a.exclusivesData)==null?0:d.exclusiveOfferLabelText)&&(a==null?0:(e=a.exclusivesData)==null?0:e.expirationTimestampMs)&&(a==null?0:(f=a.exclusivesData)==null?0:f.exclusiveOfferCountdownText)?!0:!1}; DQa=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.exclusivesData)==null?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(b>0){if(b<604800){var h,l,m,n;c=(h=a.j)==null?void 0:(l=h.bannerData)==null?void 0:(m=l.itemData)==null?void 0:(n=m.exclusivesData)==null?void 0:n.exclusiveOfferCountdownText;if(c!==void 0)for(h=Date.now(),l=g.v(c),m=l.next();!m.done;m=l.next())if(m=m.value,m!==void 0&&m.text!==void 0&&(n=Number(m.textDisplayStartTimestampMs), !isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(HL({seconds:b}))),a.N.Cd(b)):a.N.Cd(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:(p=a.j)==null?void 0:(q=p.bannerData)==null?void 0:(r=q.itemData)==null?void 0:(t=r.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});a.K.show();fV(a);var u;(u=a.Tb)==null||u.start()}else CQa(a)}; CQa=function(a){var b;(b=a.Tb)==null||b.stop();a.N.hide();a.K.hide();gV(a)}; EQa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(d==null||!d.priceReplacementText)&&(d==null?0:d.promotionText)?d==null?void 0:d.promotionText.content:null}; FQa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f;if(!(d!=null&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice)){var h,l;return d==null?void 0:(h=d.dealsData)==null?void 0:(l=h.sales)==null?void 0:l.originalPrice}return null}; GQa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f,h,l;if(!((d==null?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice))&&(d==null?0:(h=d.dealsData)==null?0:(l=h.priceDrop)==null?0:l.referencePrice)){var m,n;return d==null?void 0:(m=d.dealsData)==null?void 0:(n=m.priceDrop)==null?void 0:n.referencePrice}return null}; HQa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;if(d==null?0:d.priceReplacementText)return d==null?void 0:d.priceReplacementText;if((d==null?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(d==null?void 0:d.price)+" "+(d==null?void 0:(e=d.promotionText)==null?void 0:e.content)}var f,h;if(d==null?0:(f=d.dealsData)==null?0:(h=f.sales)==null?0:h.originalPrice){var l,m;return d==null?void 0:(l=d.dealsData)== null?void 0:(m=l.sales)==null?void 0:m.salesPriceAccessibilityLabel}var n,p;if(d==null?0:(n=d.dealsData)==null?0:(p=n.priceDrop)==null?0:p.referencePrice){var q,r;return(d==null?void 0:d.price)+" "+(d==null?void 0:(q=d.dealsData)==null?void 0:(r=q.priceDrop)==null?void 0:r.referencePrice)}return d==null?void 0:d.price}; IQa=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.B.Hb?null:(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:d.vendorName}var e,f,h,l,m,n;return a.B.Hb||a.K.Hb||((e=a.j)==null?0:(f=e.bannerData)==null?0:(h=f.itemData)==null?0:h.affiliateDisclaimer)?null:(l=a.j)==null?void 0:(m=l.bannerData)==null?void 0:(n=m.itemData)==null?void 0:n.vendorName}; KQa=function(a,b){hV(a);if(b){var c=g.lR.getState().entities;c=FL(c,"featuredProductsEntity",b);if(c!=null&&c.productsData){b=[];c=g.v(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if((e=d)!=null&&e.identifier&&d.featuredSegments){a.Ga.push(d);var f=void 0;e=g.v((f=d)==null?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=JQa(h.startTimeSec);f!==void 0&&(h=JQa(h.endTimeSec),b.push(new g.gE(f*1E3,h===void 0?0x7ffffffffffff:h*1E3,{id:d.identifier, namespace:"featured_product"})))}}}a.J.kf(b)}}}; gV=function(a){if(a.trendingOfferEntityKey){var b=g.lR.getState().entities;if(b=FL(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==((c=a.j)==null?void 0:(d=c.bannerData)==null?void 0:(e=d.itemData)==null?void 0:e.encodedOfferSkuId)?fV(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:IQa(a)}))}else fV(a)}else fV(a)}; fV=function(a){a.B.hide();a.banner.update({vendor:IQa(a)})}; hV=function(a){a.Ga=[];a.bC();a.J.qf("featured_product")}; LQa=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.hiddenProductOptions)==null?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Cd(HL({seconds:b}));if(b>0){var h;(h=a.Kb)==null||h.start()}}; MQa=function(a){var b;(b=a.Kb)==null||b.stop();a.countdownTimer.hide()}; JQa=function(a){if(a!==void 0&&a.trim()!==""&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||a<0)))return a}; RQa=function(a,b,c){g.T.call(this,{I:"div",La:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",va:"{{disclaimer}}"},{I:"a",La:["ytp-info-panel-action-item-button","ytp-button"],W:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",va:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",va:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ea("ytp-info-panel-action-item-disclaimer");this.button= this.Ea("ytp-info-panel-action-item-button");this.ue=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.R(b==null?void 0:b.onTap,Mx);var d=g.R(c,g.Py);this.ue=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.ue=!0,g.Od(this.button,g.vd(a))):(d=g.R(c,NQa))&&!this.j?((a=d.phoneNumbers)&&a.length>0?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.ue=!0,g.Od(this.button,g.vd(a,[OQa]))):(c=g.R(c,PQa))&&!this.j&&(a=c.phoneNumber? "tel:"+c.phoneNumber:"",this.ue=!0,g.Od(this.button,g.vd(a,[QQa])));var e;if(c=(e=b.disclaimerText)==null?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:(f=b.bodyText)==null?void 0:f.content,icon:Ey(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:(h=b.bodyText)==null?void 0:h.content,icon:Ey()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.ue&&(this.B={externalLinkData:{url:a}})}; SQa=function(a,b){var c=ly();g.OS.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",W:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",va:"{{title}}"},{I:"button",La:["ytp-info-panel-detail-close","ytp-button"],W:{"aria-label":"Close"},V:[g.Ay()]}]},{I:"div",S:"ytp-info-panel-detail-body",va:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Ea("ytp-info-panel-detail-items"); this.C=new g.EF(this);this.itemData=[];this.D=c;b=this.Ea("ytp-info-panel-detail-close");this.T(b,"click",this.Mb);b=this.Ea("ytp-info-panel-detail-skrim");this.T(b,"click",this.Mb);b=this.Ea("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()}); g.Q(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()}; TQa=function(a,b){a=g.v(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)}; WQa=function(a,b){g.T.call(this,{I:"div",S:"ytp-info-panel-preview",W:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.EP(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",va:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",va:"{{chevron}}"}]});var c=this;this.J=a;this.Ge=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.Dr();PS(b)}); this.C=new g.gz(this,250,!1,100);g.Q(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.M5);this.T(this.J,"paidcontentoverlayvisibilitychange",this.T_);this.T(this.J,"infopaneldetailvisibilitychange",this.T_);var d=a.getVideoData()||{};UQa(d)&&VQa(this,d);this.T(a,"onShowControls",this.L5);this.T(a,"onHideControls",this.K5)}; VQa=function(a,b){if(!b.Bi||!a.J.ao()){var c=b.VD||1E4,d=UQa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.ip(a.j),a.videoId=b.videoId,d?(XQa(a,c,b),a.md()):(a.Mb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),XQa(a,c,b),a.md())}}; UQa=function(a){var b,c,d,e;return!!((b=a.Pf)==null?0:(c=b.title)==null?0:c.content)||!!((d=a.Pf)==null?0:(e=d.bodyText)==null?0:e.content)}; XQa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.fp(a.Nda,b,a);g.Q(a,a.j);var d;b=((d=c.Pf)==null?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(c==null?0:(f=c.Pf)==null?0:(h=f.title)==null?0:h.content){var l;d=(e=c.Pf)==null?void 0:(l=e.title)==null?void 0:l.content;var m,n;if((m=c.Pf)==null?0:(n=m.bodyText)==null?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=((p=c.Pf)==null?void 0:(q=p.bodyText)==null?void 0:q.content)||"";a.update({text:e+c,chevron:g.zy()})}; YQa=function(a,b){a.j&&(g.U(b,8)?(a.B=!0,a.md(),a.j.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))}; iV=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; jV=function(a,b){var c=0;a=g.v(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return c===0?c:c-1}; ZQa=function(a,b){for(var c=0,d=g.v(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&b0?b[0]:null;var c=g.he("ytp-chrome-bottom"),d=g.he("ytp-ad-module");a.C=!(c==null||!c.contains(b));a.K=!(d==null||!d.contains(b));a.N=!(b==null||!b.hasAttribute("data-tooltip-target-fixed"));return b}; nRa=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(b==null?0:(e=b.runs)==null?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.xm(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((b==null?0:(f=b.runs)==null?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(f>-1)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.my({I:"span",S:"ytp-promotooltip-details-icon", V:[lRa[a.tooltipRenderer.targetId]]});g.Q(a,h);for(var l=[],m=g.v(d),n=m.next();!n.done;n=m.next())n=new g.my({I:"span",S:"ytp-promotooltip-details-component",va:n.value}),g.Q(a,n),l.push(n);d.length===2?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):d.length===1&&(f===0?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if(typeof f!=="string")for(g.pe(a.details),e=g.v(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value); else a.update({details:f});e=!0}}g.xm(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;((p=g.R(e,g.iJ))==null?0:(q=p.text)==null?0:(r=q.runs)==null?0:r.length)&&g.R(e,g.iJ).text.runs[0].text&&(a.update({acceptButtonText:g.R(e,g.iJ).text.runs[0].text.toString()}),f=!0);g.xm(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,u,x;((t=g.R(p,g.iJ))==null?0:(u=t.text)==null?0:(x=u.runs)==null?0:x.length)&&g.R(p,g.iJ).text.runs[0].text&&(a.update({dismissButtonText:g.R(p,g.iJ).text.runs[0].text.toString()}), q=!0);g.xm(a.dismissButton,q)}c&&(a.B=c);a.targetElement=kRa(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.py(a,!0);mRa(a);a.Hb&&!a.Y&&(a.Y=!0,a.fd.sH(0));a.j&&a.J.logVisibility(a.element,a.Hb)}}; pV=function(a){g.py(a,!1);a.j&&a.J.logVisibility(a.element,a.Hb)}; oRa=function(a){var b,c,d,e=((b=g.R(a.acceptButton,g.iJ))==null?void 0:(c=b.text)==null?void 0:(d=c.runs)==null?void 0:d.length)&&!!g.R(a.acceptButton,g.iJ).text.runs[0].text,f,h,l;b=((f=g.R(a.dismissButton,g.iJ))==null?void 0:(h=f.text)==null?void 0:(l=h.runs)==null?void 0:l.length)&&!!g.R(a.dismissButton,g.iJ).text.runs[0].text;return e||b}; mRa=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b=c.display==="none"||c.visibility==="hidden"||b.getAttribute("aria-hidden")==="true"}if(b||a.J.isMinimized())g.py(a,!1);else if(b=g.wm(a.targetElement),b.width&&b.height){a.J.sy(a.element,a.targetElement);var d=a.J.qb().getPlayerSize().height;c=g.wm(a.Ea("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.Xn().height-c-b.height-12,a.element.style.top=d+"px"); d=a.Ea("ytp-promotooltip-pointer");var e=g.um(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.py(a,!1)}; qV=function(a){g.T.call(this,{I:"button",La:["ytp-replay-button","ytp-button"],W:{title:"Replay"},V:[g.Gy()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.xd(a.getPlayerStateObject());hS(this.J,this.element,this)}; rV=function(a,b){b=b===void 0?240:b;g.T.call(this,{I:"button",La:["ytp-button","ytp-search-button"],W:{title:"Search","data-tooltip-opaque":String(g.EP(a.U()))},V:[{I:"div",S:"ytp-search-icon",va:"{{icon}}"},{I:"div",S:"ytp-search-title",va:"Search"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",W:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); a.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);hS(a,this.element,this)}; g.sV=function(a,b,c,d){d=d===void 0?240:d;g.T.call(this,{I:"button",La:["ytp-button","ytp-share-button"],W:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.EP(a.U()))},V:[{I:"div",S:"ytp-share-icon",va:"{{icon}}"},{I:"div",S:"ytp-share-title",va:"Share"}]});this.api=a;this.Ne=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Ne.Re();this.j=!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta); this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();this.addOnDisposeCallback(g.gS(this.tooltip,this.element))}; pRa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.EP(b)&&g.HS(a.api)&&g.U(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&a.api.getPresentingPlayerType()!==2||!c.showShareButton||c.Wp||d||g.SR(c)||a.j;d=a.api.qb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b}; qRa=function(a,b){b.name!=="InvalidStateError"&&b.name!=="AbortError"&&(b.name==="NotAllowedError"?(a.Ne.Dr(),PS(a.B,a.element,!1)):g.Jx(b))}; sRa=function(a,b){var c=ly(),d=a.U();c={I:"div",S:"ytp-share-panel",W:{id:ly(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",W:{id:c},va:"Share"},{I:"a",La:["ytp-share-panel-link","ytp-no-contextmenu"],W:{href:"{{link}}",target:d.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},va:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",W:{type:"checkbox", checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[YMa()]},{I:"div",S:"ytp-share-panel-service-buttons",va:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",va:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",La:["ytp-share-panel-close","ytp-button"],W:{title:"Close"},V:[g.Ay()]}]};g.OS.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Re();this.C=[];this.G=this.Ea("ytp-share-panel-inner-content"); this.closeButton=this.Ea("ytp-share-panel-close");this.T(this.closeButton,"click",this.Mb);this.addOnDisposeCallback(g.gS(this.tooltip,this.closeButton));this.D=this.Ea("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ta);this.j=this.Ea("ytp-share-panel-link");this.addOnDisposeCallback(g.gS(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=rRa(e,h); g.bT(h,e.api,f)&&e.api.ib("SHARE_CLICKED")}); this.listen("click",this.R5);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.k$);this.hide()}; uRa=function(a,b){tRa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f'),(u=t.document)&&u.write&&(u.write(g.Ad(x)),u.close()))):((t=Mba(x,t,r,I))&&u.noopener&&(t.opener=null), t&&u.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e)); e.fn.addOnDisposeCallback(g.gS(a.tooltip,e.fn.element));l==="Facebook"?a.api.createClientVe(e.fn.element,e.fn,164504):l==="Twitter"&&a.api.createClientVe(e.fn.element,e.fn,164505);a.T(e.fn.element,"click",function(p){return function(){a.api.logClick(p.fn.element)}}(e)); a.api.logVisibility(e.fn.element,!0);a.C.push(e.fn);d++}}var m=b.more||b.moreLink,n=new g.T({I:"a",La:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],W:{href:m,target:"_blank",title:"More"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=rRa(a,q);g.bT(q,a.api,p)&&a.api.ib("SHARE_CLICKED")}); n.addOnDisposeCallback(g.gS(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)}; rRa=function(a,b){var c={};g.EP(a.api.U())&&(g.$R(a.api,"addEmbedsConversionTrackingParams",[c]),a.api.L("embeds_web_enable_referring_feature_deprecation")||g.YL(c,"emb_share"),b=g.aj(b,c));return b}; tRa=function(a){for(var b=g.v(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.fb(c);a.C=[]}; tV=function(a){return a===void 0||a.startSec===void 0||a.endSec===void 0?!1:!0}; vRa=function(a,b){a.startSec+=b;a.endSec+=b}; xRa=function(a){tT.call(this,a);this.B=this.j=this.isContentForward=this.N=!1;wRa(this);this.T(this.J,"changeProductsInVideoVisibility",this.fba);this.T(this.J,"videodatachange",this.onVideoDataChange)}; yRa=function(a){a.K&&a.Ka.element.removeChild(a.K.element);a.K=void 0}; ARa=function(a,b){return b.map(function(c){var d,e;if((c=(d=g.R(c,zRa))==null?void 0:(e=d.thumbnail)==null?void 0:e.thumbnails)&&c.length!==0)return c[0].url}).filter(function(c){return c!==void 0}).map(function(c){c=new g.T({I:"img", S:"ytp-suggested-action-product-thumbnail",W:{alt:"",src:c}});g.Q(a,c);return c})}; BRa=function(a,b){a.isContentForward=b;g.rp(a.badge.element,"ytp-suggested-action-badge-content-forward",b)}; uV=function(a){var b=a.isContentForward&&!a.qM();g.rp(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.rp(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)}; vV=function(a,b,c){return new g.gE(a*1E3,b*1E3,{priority:9,namespace:c})}; CRa=function(a){a.J.qf("shopping_overlay_visible");a.J.qf("shopping_overlay_preview_collapsed");a.J.qf("shopping_overlay_preview_expanded");a.J.qf("shopping_overlay_expanded")}; wRa=function(a){a.T(a.J,g.iE("shopping_overlay_visible"),function(){a.Hf(!0)}); a.T(a.J,g.jE("shopping_overlay_visible"),function(){a.Hf(!1)}); a.T(a.J,g.iE("shopping_overlay_expanded"),function(){a.ra=!0;sT(a)}); a.T(a.J,g.jE("shopping_overlay_expanded"),function(){a.ra=!1;sT(a)}); a.T(a.J,g.iE("shopping_overlay_preview_collapsed"),function(){a.j=!0;uV(a)}); a.T(a.J,g.jE("shopping_overlay_preview_collapsed"),function(){a.j=!1;uV(a)}); a.T(a.J,g.iE("shopping_overlay_preview_expanded"),function(){a.B=!0;uV(a)}); a.T(a.J,g.jE("shopping_overlay_preview_expanded"),function(){a.B=!1;uV(a)})}; FRa=function(a){g.T.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",W:{href:"{{channelLink}}",target:a.U().Y,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",va:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Ea("ytp-shorts-title-channel-logo");this.channelName=this.Ea("ytp-shorts-title-expanded-title"); this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.logClick(b.j);g.Qd(DRa(b));c.preventDefault()}); a.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qd(DRa(b));c.preventDefault()}); ERa(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()}; ERa=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.ZU("Subscribe",null,"Subscribed",null,!0,!1,b.Rl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); a.subscribeButton=c;g.Q(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}}; DRa=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.fQ(b)+c.zb;if(!g.EP(b))return c;b={};g.$R(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.YL(b,"emb_ch_name_ex");return g.aj(c,b)}; wV=function(a){g.OS.call(this,a,{I:"button",La:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",va:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.fp(function(){b.hide()},5E3); this.Qf=this.yj=NaN;g.Q(this,this.j);this.K=function(){b.show()}; this.G=function(){b.hide()}; this.D=function(){var c=b.J.getCurrentTime();c>b.yj/1E3&&c0?{I:"svg",W:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",La:["ytp-circle-arrow","ytp-svg-fill"],W:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {I:"text",La:["ytp-jump-button-text","ytp-svg-fill"],W:{x:"7.05",y:"15.05"}}]}:{I:"svg",W:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",La:["ytp-circle-arrow","ytp-svg-fill"],W:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {I:"text",La:["ytp-jump-button-text","ytp-svg-fill"],W:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.fp(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250); this.C=!1;(b=b>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.tE(b?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\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);hS(a,this.element, this)}; NRa=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.Th()}; CV=function(a,b){yV.call(this,a,b,"timedMarkerCueRange","View key moments");this.T(a,g.jE("timedMarkerCueRange"),this.Sc);this.T(a,"updatemarkervisibility",this.updateVideoData)}; ORa=function(a){var b,c=(b=a.J.getVideoData())==null?void 0:b.jf;if(c)for(a=a.D.Na,c=g.v(c),b=c.next();!b.done;b=c.next())if(b=a[b.value]){var d=void 0,e=void 0,f=void 0;if(((d=b.onTap)==null?void 0:(e=d.innertubeCommand)==null?void 0:(f=e.changeEngagementPanelVisibilityAction)==null?void 0:f.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return b}}; DV=function(a){g.T.call(this,{I:"button",La:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[msa()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ta);this.updateValue("title",g.iS(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});hS(a,this.element,this);a.createClientVe(this.element, this,62946);this.Ta()}; PRa=function(a,b,c){c=c===void 0?!1:c;g.T.call(this,{I:"button",La:["ytp-mute-button","ytp-button"],W:a.U().Va?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},va:"{{icon}}"});this.J=a;this.Fa=c;this.j=null;this.D=this.Y=this.G=this.ra=NaN;this.Ca=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",Jy());this.tooltip=b.Re();this.j=new g.my({I:"svg",W:{height:"100%", version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",W:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",W:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",W:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",W:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",W:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",W:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]}, {I:"path",Hc:!0,La:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],W:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Hc:!0,La:["ytp-svg-fill","ytp-svg-volume-animation-hider"],W:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.Q(this,this.j);this.K=this.j.Ea("ytp-svg-volume-animation-speaker"); this.Ca=this.K.getAttribute("d");this.C=g.ge("ytp-svg-volume-animation-mover",this.j.element);this.B=g.ge("ytp-svg-volume-animation-hider",this.j.element);this.Ga=new ZT;g.Q(this,this.Ga);this.qa=new ZT;g.Q(this,this.qa);this.listen("click",this.Raa);this.T(a,"appresize",this.OV);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Va?this.addOnDisposeCallback(g.gS(b.Re(),this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/), d=new g.OS(a,{I:"span",La:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},V:[b[0],{I:"a",W:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},va:b[2]},b[4]]},100,!0),g.Q(this,d),d.hide(),d.subscribe("show",function(e){a.FE(d,e)}),g.KS(a,d.element,4)); this.message=d;a.createClientVe(this.element,this,28662);this.OV(a.qb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())}; SRa=function(a,b){a.ra=b;var c=a.Ca;b&&(c+=vOa(QRa,RRa,b));a.K.setAttribute("d",c)}; TRa=function(a,b){a.Y=b;for(var c=20*b,d=0;d=3&&a.J.getPresentingPlayerType()!==2}; YRa=function(a){var b=GS(a.J.Ab());return b?a.j?b.zl():b.Vp():!1}; VRa=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=a.playlist!=null&&a.playlist.zl();c=g.HS(a.J)&&(!a.j||c);var d=a.j&&g.LS(a.J),e=YRa(a),f=a.j&&a.J.getPresentingPlayerType()===5,h=g.iS(a.J,"Next","SHIFT+n"),l=g.iS(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.gU(a.playlist,a.j?NOa(a.playlist):OOa(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.Cz(m.lengthSeconds):null;b.preview=m.gh("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=(m=a.videoData)==null?void 0:g.jR(m))b.url=l.xl(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.Cz(l.lengthSeconds): null,b.preview=l.gh("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.gS(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Nc(a.G),a.G=null);a.tooltip.Th()}; $Ra=function(a,b){g.T.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",W:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",W:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",W:{"aria-hidden":"true"}, va:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[Fy()],W:{title:"Play from this position",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.Ay()],W:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=a;this.G=this.Ea("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ea("ytp-fine-scrubbing-dismiss");this.Ca=this.Ea("ytp-fine-scrubbing-draggable");this.playButton=this.Ea("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.Na=this.j=0;this.Ka=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.Fa=!1;ZRa(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.gS(b,this.dismissButton));this.addOnDisposeCallback(g.gS(b,this.playButton));this.Ga=new g.HT(this.Ca,!0);this.Ga.subscribe("dragstart",this.DN,this);this.Ga.subscribe("dragmove",this.CN,this);this.Ga.subscribe("dragend",this.T5,this);this.T(a,"SEEK_COMPLETE",this.DB);a.L("web_fix_fine_scrubbing_false_play")&& this.T(a,"rootnodemousedown",function(d){c.ra=d}); this.G.addEventListener("keydown",function(){}); g.Q(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)}; ZRa=function(a,b){var c=g.Cz(b),d=g.tE("Seek to $PROGRESS",{PROGRESS:g.Cz(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})}; aSa=function(a){a.qa=NaN;a.Y=0;a.N=a.C}; dSa=function(a){var b=a.api.qk();if(b){var c=90*a.scale,d=KQ(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=LQ(b,b.lz()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=ha.D.length;)d= void 0,(d=a.thumbnails.pop())==null||d.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,(d=a.B.pop())==null||d.dispose(); for(;a.B.length-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval}; eSa=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)}; bSa=function(){g.T.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})}; cSa=function(){g.T.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",va:"{{chapterTitle}}"}]})}; gSa=function(a){g.T.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",W:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",W:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",W:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",W:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",W:{"clip-path":"url(#hm_1)",fill:"white", "fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",W:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Ea("ytp-heat-map-svg");this.C=this.Ea("ytp-heat-map-path");this.G=this.Ea("ytp-heat-map-graph");this.D=this.Ea("ytp-heat-map-play");this.B=this.Ea("ytp-heat-map-hover");this.ue=!1;this.j=60;a=""+g.Wa(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.np(this.api.getRootNode(),"ytp-heat-map-v2")}; hSa=function(a,b){b>0&&(a.j=b,a.K.style.height=a.j+"px")}; HV=function(){g.T.call(this,{I:"div",S:"ytp-chapter-hover-container",V:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",V:[{I:"div",La:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Ea("ytp-progress-linear-live-buffer");this.C=this.Ea("ytp-ad-progress-list"); this.G=this.Ea("ytp-load-progress");this.K=this.Ea("ytp-play-progress");this.B=this.Ea("ytp-hover-progress");this.j=this.Ea("ytp-chapter-hover-container")}; IV=function(a,b){g.km(a.j,"width",b)}; iSa=function(a,b){g.km(a.j,"margin-right",b+"px")}; jSa=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN}; kSa=function(){g.T.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.KV=function(a,b){g.ry.call(this,{I:"div",S:"ytp-progress-bar-container",W:{"aria-disabled":"true"},V:[{I:"div",La:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",La:["ytp-progress-bar"],W:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{I:"div",S:"ytp-chapters-container"},{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"}, {I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",V:[{I:"div",La:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",La:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",va:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",va:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",W:{title:"{{clipstarttitle}}"},va:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end", W:{title:"{{clipendtitle}}"},va:"{{clipendicon}}"}]});this.api=a;this.rf=!1;this.Tf=this.Va=this.N=this.Sf=0;this.ke=null;this.Ka={};this.Nb={};this.clipEnd=Infinity;this.zb=this.Ea("ytp-clip-end");this.Bc=new g.HT(this.zb,!0);this.qc=this.Ea("ytp-clip-end-exclude");this.Lc=this.Ea("ytp-clip-start-exclude");this.clipStart=0;this.Kb=this.Ea("ytp-clip-start");this.Xc=new g.HT(this.Kb,!0);this.qa=this.fb=0;this.progressBar=this.Ea("ytp-progress-bar");this.Bb={};this.Na={};this.Tb=this.Ea("ytp-chapters-container"); this.Rf=this.Ea("ytp-timed-markers-container");this.j=[];this.K=[];this.Ae={};this.Pf=null;this.Wa=-1;this.rb=this.Ca=0;this.Y=null;this.Uf=this.Ea("ytp-scrubber-button");this.Jg=this.Ea("ytp-scrubber-container");this.Xa=new g.Kd;this.Qf=new jSa;this.C=new Hz(0,0);this.Eb=null;this.D=this.jf=!1;this.uh=null;this.ra=this.Ea("ytp-heat-map-container");this.Dd=this.Ea("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.bb=this.Ea("ytp-fine-scrubbing-container");this.Td=this.Ea("ytp-fine-scrubbing-edu"); this.B=void 0;this.Ga=this.Ed=this.Fa=!1;this.tooltip=b.Re();this.addOnDisposeCallback(g.gS(this.tooltip,this.zb));g.Q(this,this.Bc);this.Bc.subscribe("hoverstart",this.Q_,this);this.Bc.subscribe("hoverend",this.P_,this);this.T(this.zb,"click",this.WL);this.addOnDisposeCallback(g.gS(this.tooltip,this.Kb));g.Q(this,this.Xc);this.Xc.subscribe("hoverstart",this.Q_,this);this.Xc.subscribe("hoverend",this.P_,this);this.T(this.Kb,"click",this.WL);lSa(this);this.T(a,"resize",this.jc);this.T(a,"presentingplayerstatechange", this.j9);this.T(a,"videodatachange",this.ju);this.T(a,"videoplayerreset",this.i9);this.T(a,"cuerangesadded",this.Mea);this.T(a,"cuerangesremoved",this.dda);this.T(a,"onLoopRangeChange",this.PV);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.iE("timedMarkerCueRange"),this.hca);this.T(a,"updatemarkervisibility",this.l3);this.updateVideoData(a.getVideoData(),!0);this.PV(a.getLoopRange());JV(this)&&!this.B&&(this.B=new $Ra(this.api,this.tooltip),a=g.tm(this.element).x||0,this.B.jc(a,this.N), this.B.Ja(this.bb),g.Q(this,this.B),this.T(this.B.dismissButton,"click",this.Uw),this.T(this.B.playButton,"click",this.pP),this.T(this.B.element,"dblclick",this.pP));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.Dd,this,140127,!0);this.api.createClientVe(this.Td,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)}; lSa=function(a){if(a.j.length===0){var b=new HV;a.j.push(b);g.Q(a,b);b.Ja(a.Tb,0)}for(;a.j.length>1;)a.j.pop().dispose();IV(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""}; mSa=function(a){var b=b===void 0?NaN:b;var c=new gSa(a.api);a.G.push(c);g.Q(a,c);c.Ja(a.ra);b>=0&&(c.element.style.width=b+"px")}; nSa=function(a){for(;a.K.length;)a.K.pop().dispose()}; pSa=function(a){var b,c,d,e,f;return(f=g.R((e=g.R((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,AQ))==null?void 0:e.playerBar,oSa))==null?void 0:f.chapters}; qSa=function(a){for(var b=a.j,c=[],d=0;d=h&&x<=p&&f.push(r)}m>0&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;u=m;x=d===0;x=x===void 0?!1:x;hSa(h,u);q=p;t=h.j;x=x===void 0?!1:x;var B=1E3/q.length,E=[];E.push({x:0,y:100});for(var F=0;F0&&(c=f[f.length-1])}g.LV(a);l=[];b=g.v(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.R(e.value,xSa))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:(n= e.visibleTimeRangeStartMillis)!=null?n:-1,visibleTimeRangeEndMillis:(c=e.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(d=e.decorationTimeMillis)!=null?d:NaN,label:m?g.uy(m):""});a.heatMarkersDecorations=l}}; tSa=function(a,b){a.K.push(b);g.Q(a,b);b.Ja(a.Rf,a.Rf.children.length)}; uSa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=MV(a,c.timeRangeStartMillis/(a.C.j*1E3),NV(a));g.km(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}}; rSa=function(a,b){var c=0,d=!1;b=g.v(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.R(e,zSa)){e=g.R(e,zSa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.uy(h):"";h=e.timeRangeStartMillis;h!=null&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;c===0&&e.startTime!==0&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new HV,a.j.push(f),g.Q(a,f),f.Ja(a.Tb,a.Tb.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=0;d--)if(a.j[d].width>0){iSa(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;IV(a.j[d],e+"px");break}a.j[c].width=0;IV(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,IV(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,IV(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)}; ASa=function(a,b){var c=0,d=!1,e=a.j.length,f=a.C.j*1E3;f===0&&(f=a.api.getProgressState().seekableEnd*1E3);if(f>0&&a.N>0){for(var h=a.N-(a.D?3:2)*a.Ca,l=a.rb===0?3:h*a.rb,m=g.v(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c1);n=(f===0?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];r!==void 0&&r.width> 0?r.width+=n:qa.rb&&(a.rb=m/f),d=!0)}c++}}return d}; OV=function(a){if(a.N){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=((d=a.api.getVideoData())==null?0:RR(d))&&b.airingStart&&b.airingEnd?BSa(a,b.airingStart,b.airingEnd):BSa(a,b.seekableStart,b.seekableEnd);d=Iz(c,b.loaded,0);b=Iz(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;PV(a,b,d);e&&CSa(a);DSa(a)}}}; BSa=function(a,b,c){return ESa(a)?new Hz(Math.max(b,a.Eb.startTimeMs/1E3),Math.min(c,a.Eb.endTimeMs/1E3)):new Hz(b,c)}; FSa=function(a,b){var c;if(((c=a.Eb)==null?void 0:c.type)==="repeatChapter"||(b==null?void 0:b.type)==="repeatChapter")b&&(b=a.j[jV(a.j,b.startTimeMs)],g.rp(b.j,"ytp-repeating-chapter",!1)),a.Eb&&(b=a.j[jV(a.j,a.Eb.startTimeMs)],g.rp(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.rp(d.j,"ytp-exp-chapter-hover-container",!a.Eb)})}; RV=function(a,b){var c=Qsa(a.C,b.B);if(a.j.length>1){c=QV(a,b.C,!0);for(var d=0,e=0;e0&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?a.C.j*1E3:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c}; GSa=function(a,b,c){return c>=a.j.length?!1:Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ca)<4}; CSa=function(a){a.Uf.style.removeProperty("height");for(var b=g.v(Object.keys(a.Ka)),c=b.next();!c.done;c=b.next())HSa(a,c.value);SV(a);PV(a,a.qa,a.fb)}; NV=function(a){var b=a.Xa.x;b=g.Hd(b,0,a.N);a.Qf.update(b,a.N);return a.Qf}; UV=function(a){return(a.D?135:90)-TV(a)}; TV=function(a){var b=48,c=a.api.U();a.D?b=54:g.EP(c)&&!c.B&&(b=40);return b}; PV=function(a,b,c){a.qa=b;a.fb=c;var d=NV(a),e=a.C.j,f=Qsa(a.C,a.qa),h=g.tE("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Cz(f,!0),DURATION:g.Cz(e,!0)}),l=jV(a.j,f*1E3);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Eb&&a.api.getPresentingPlayerType()!==2&&(e=a.Eb.startTimeMs/1E3,f=a.Eb.endTimeMs/1E3);e=Iz(a.C,e,0);l=Iz(a.C,f,1);h=a.api.getVideoData();f=g.Hd(b,e,l);c=(h==null?0:g.QR(h))?1:g.Hd(c, e,l);b=MV(a,b,d);g.km(a.Jg,"transform","translateX("+b+"px)");VV(a,d,e,f,"PLAY_PROGRESS");(h==null?0:RR(h))?(b=a.api.getProgressState().seekableEnd)&&VV(a,d,f,Iz(a.C,b),"LIVE_BUFFER"):VV(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;(m=a.G[0])!=null&&m.D.setAttribute("width",(f*100).toFixed(2)+"%")}}; VV=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ca*(a.D?3:2),l=c*h;c=QV(a,l);var m=d*h;h=QV(a,m);e==="HOVER_PROGRESS"&&(h=QV(a,b.j*d,!0),m=b.j*d-ISa(a,b.j*d)*(a.D?3:2));d=Math.max(l-JSa(a,c),0);for(l=c;l=a.j.length)return a.N;for(var c=0,d=0;d0||a.qc.clientWidth>0?(f=b.clientWidth/c,a=-1*a.Lc.clientWidth/c):(f/=c,a=-1*a.j[e].element.offsetLeft/c),g.km(b,"background-size",f+"px"),g.km(b,"background-position-x",a+"px"))}; WV=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.km(b,"transform","scalex("+(d?c/d:0)+")")}; QV=function(a,b,c){var d=0;(c===void 0?0:c)&&(b-=ISa(a,b)*(a.D?3:2));c=g.v(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; MV=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.v(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&h.width>0&&e++;return b*(c.j-(a.D?3:2)*a.Ca)+(a.D?3:2)*(e<0?0:e)+c.D}; ISa=function(a,b){for(var c=a.j.length,d=0,e=g.v(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,f.width!==0)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d}; g.MSa=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Sf=b;a.N=c;a.D=d;JV(a)&&(b=a.B)!=null&&(b.scale=d?1.5:1);CSa(a);a.j.length===1&&(a.j[0].width=c||0);e&&g.LV(a);a.B&&f&&JV(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-TV(a),a.bb.style.height=c+"px",g.km(a.ra,"transform","translateY("+-d+"px)"),g.km(a.progressBar,"transform","translateY("+-d+"px)")),dSa(a.B))}; SV=function(a){var b=!!a.Eb&&a.api.getPresentingPlayerType()!==2,c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Eb?(c=a.Eb.startTimeMs/1E3,d=a.Eb.endTimeMs/1E3):(e=c>a.C.B,f=a.C.j>0&&da.qa);g.rp(a.Uf,"ytp-scrubber-button-hover",c===d&&a.j.length>1);if(a.api.L("web_player_heat_map_played_bar")){var f;(f=a.G[0])!=null&&f.B.setAttribute("width",(b.B*100).toFixed(2)+"%")}}}; HSa=function(a,b){var c=a.Ka[b];b=a.Nb[b];var d=NV(a),e=Iz(a.C,c.start/1E3,0),f=tva(c,a.D)/d.width;var h=Iz(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Hd(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";WV(a,b,g.Hd((h-c)*d.j+d.D,0,d.width),d.width,!0)}; NSa=function(a,b){var c=b.getId();a.Ka[c]===b&&(g.re(a.Nb[c]),delete a.Ka[c],delete a.Nb[c])}; JV=function(a){var b;return!((b=a.api.getVideoData())==null?0:b.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()}; XV=function(a){a.B&&(a.B.disable(),a.Va=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.bb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))}; OSa=function(a,b){var c=b/UV(a)*TV(a);g.km(a.progressBar,"transform","translateY("+-b+"px)");g.km(a.ra,"transform","translateY("+-b+"px)");g.km(a.bb,"transform","translateY("+c+"px)");a.bb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=TV(a)-c+"px")}; PSa=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.HT(a.progressBar,!0),a.Y.subscribe("hovermove",a.kba,a),a.Y.subscribe("hoverend",a.jba,a),a.Y.subscribe("dragstart",a.hba,a),a.Y.subscribe("dragmove",a.mba,a),a.Y.subscribe("dragend",a.lba,a),a.uh=a.listen("keydown",a.V5)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Nc(a.uh),a.Y.cancel(),a.Y.dispose(),a.Y=null)}; ESa=function(a){var b;return!((b=a.Eb)==null||!b.postId)&&a.api.getPresentingPlayerType()!==2}; YV=function(a,b){g.T.call(this,{I:"button",La:["ytp-remote-button","ytp-button"],W:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},va:"{{icon}}"});this.J=a;this.Fb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);a.createClientVe(this.element,this,139118);this.Ta();this.listen("click",this.B,this);hS(a,this.element,this)}; ZV=function(a,b){g.T.call(this,{I:"button",La:["ytp-button","ytp-settings-button"],W:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":ly(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.Hy()]});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);hS(a,this.element,this);this.J.createClientVe(this.element, this,28663);this.updateBadge();this.j(a.qb().getPlayerSize())}; QSa=function(a,b){a.B=!!b;a.j(a.J.qb().getPlayerSize())}; $V=function(a,b){ZS.call(this,"Annotations",g.cT.N3);this.J=a;this.Fb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]});this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.subscribe("select",this.onSelect,this);this.Ta()}; aW=function(a,b){g.DT.call(this,"Audio track",g.cT.AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.T({I:"div",V:[{I:"span",va:"Audio track"},{I:"span",S:"ytp-menuitem-label-count",va:"{{content}}"}]});a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.Q(this,this.countLabel);this.Nj(this.countLabel);this.T(a,"videodatachange",this.Ta);this.T(a,"onPlaybackAudioChange",this.Ta);this.Ta()}; bW=function(a,b){ZS.call(this,"Autoplay",g.cT.S3);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()}; RSa=function(a,b){g.QS.call(this,g.RS({"aria-haspopup":"false"}),0,"More options");this.J=a;this.Fb=b;this.T(this.element,"click",this.onClick);this.Fb.Tc(this)}; SSa=function(a,b){var c;g.YP(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",va:"Adjust download quality from your "},{I:"a",S:"ytp-panel-footer-content-link",va:"Settings",W:{href:"/account_downloads"}}]});g.DT.call(this,"Quality",g.cT.A6,a,b,void 0,void 0,c);this.J=a;this.Ca={};this.Y={};this.D={};this.Ga=new Set;this.j=this.G=!1;this.N="unknown";this.qa="";this.ra=new g.Sv;g.Q(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",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.np(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.yD);this.T(a,"videoplayerreset",this.yD);this.T(a,"onPlaybackQualityChange",this.QV);this.yD();a.createClientVe(this.element,this,137721)}; USa=function(a,b,c){var d=a.Ca[b],e=g.HF[b];return TSa(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)}; VSa=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:"Auto";d&&(h="("+h);a=TSa(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",va:d});return a}; TSa=function(a,b,c,d){b={I:"span",La:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";c==="highres"?e="8K":c==="hd2880"?e="5K":c==="hd2160"?e="4K":c.indexOf("hd")===0&&c!=="hd720"&&(e="HD");e&&(b.V.push(" "),b.V.push({I:"sup",S:d,va:e}));return b}; cW=function(a,b,c,d){g.T.call(this,{I:"div",S:"ytp-input-slider-section",V:[{I:"input",S:"ytp-input-slider",W:{type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.D=a;this.K=b;this.N=c;this.initialValue=d;this.B=this.Ea("ytp-input-slider");this.j=d?d:a;this.init();this.T(this.B,"input",this.G)}; XSa=function(a,b){a.j=b;a.updateValue("slidervalue",a.j);a.B.valueAsNumber=a.j;WSa(a,b)}; WSa=function(a,b){a.B.style.setProperty("--yt-slider-shape-gradient-percent",(b-a.D)/(a.K-a.D)*100+"%")}; dW=function(a){cW.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate());this.J=a;this.C=g.me("P");this.qa=pba(this.Y,this);g.np(this.B,"ytp-speedslider");g.np(this.C,"ytp-speedslider-text");a=this.C;var b=this.B;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);YSa(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)}; YSa=function(a){a.C.textContent=a.j+"x"}; eW=function(a,b,c,d,e,f,h){g.T.call(this,{I:"div",S:"ytp-slider-section",W:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.N=a;this.Y=b;this.B=c;this.C=d;this.qa=e;this.Fa=f;this.range=this.C-this.B;this.Ka=this.Ea("ytp-slider-section");this.D=this.Ea("ytp-slider");this.ra=this.Ea("ytp-slider-handle");this.K=new g.HT(this.D, !0);this.j=h?h:c;g.Q(this,this.K);this.K.subscribe("dragmove",this.X5,this);this.T(this.element,"keydown",this.Y5);this.T(this.element,"wheel",this.W5);this.init()}; fW=function(a){eW.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.me("P");this.Ga=pba(this.Ca,this);g.np(this.D,"ytp-speedslider");g.np(this.G,"ytp-speedslider-text");a=this.G;var b=this.D;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);ZSa(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)}; ZSa=function(a){a.G.textContent=$Sa(a,a.j)+"x"}; $Sa=function(a,b){a=Number(g.Hd(b,a.B,a.C).toFixed(2));b=Math.floor((a+.001)*100%5+2E-15);var c=a;b!==0&&(c=a-b*.01);return Number(c.toFixed(2))}; aTa=function(a){g.ry.call(this,{I:"div",S:"ytp-speedslider-component"});a.L("web_settings_use_input_slider")?this.j=new dW(a):this.j=new fW(a);g.Q(this,this.j);this.element.appendChild(this.j.element)}; bTa=function(a){var b=new aTa(a);uT.call(this,a,b,"Custom");g.Q(this,b)}; cTa=function(a,b){var c=new bTa(a);g.DT.call(this,"Playback speed",g.cT.D6,a,b,gW(a)?void 0:"Custom",gW(a)?void 0:function(){g.yT(b,c)}); a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]});g.Q(this,c);this.J=a;this.N=null;gW(a)?(this.j=g.tE("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.D=this.J.getPlaybackRate()):this.D=this.j=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ta);this.Ta()}; eTa=function(a,b){var c=dTa(b);a.options[c]?a.Ri(c):b===a.D&&a.j&&(a.Ri(a.j),a.Cd(b.toString()))}; gTa=function(a){g.ET(a,a.G.map(dTa));a.j=null;a.D=null;var b=a.J.getPlaybackRate();if(!a.G.includes(b)||gW(a.J))fTa(a,b),g.DT.prototype.Ig.call(a,a.j)}; fTa=function(a,b){a.D=b;a.j=g.tE("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(dTa);b.unshift(a.j);g.ET(a,b)}; dTa=function(a){return a.toString()}; gW=function(a){return a.L("web_settings_menu_surface_custom_playback")}; hTa=function(a){return a.L("web_settings_menu_surface_custom_playback")&&a.L("web_settings_use_input_slider")}; jTa=function(a,b,c,d){var e=new g.vT(b,void 0,"Video Override");g.DT.call(this,d.text||"",a,b,c,"Video Override",function(){g.yT(c,e)}); var f=this;g.np(this.element,"ytp-subtitles-options-menu-item");this.N=d.option.toString();a=d.options;this.settings=g.Nb(a,this.RV,this);this.G=e;g.Q(this,this.G);b=new g.QS({I:"div",S:"ytp-menuitemtitle",va:"Allow for a different caption style if specified by the video."},0);g.Q(this,b);this.G.Tc(b,!0);this.D=new g.QS({I:"div",S:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"On"}]},-1);g.Q(this,this.D);this.G.Tc(this.D,!0);this.T(this.D.element,"click", function(){iTa(f,!0)}); this.j=new g.QS({I:"div",S:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"Off"}]},-2);g.Q(this,this.j);this.G.Tc(this.j,!0);this.T(this.j.element,"click",function(){iTa(f,!1)}); g.ET(this,g.Bl(a,this.RV))}; iTa=function(a,b){a.publish("settingChange",a.N+"Override",!b);a.Fb.bj()}; hW=function(a,b){g.vT.call(this,a,void 0,"Options");var c=this;this.Pu={};for(var d=0;d=0);if(!(b<0||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ca*a.scale,d=CKa(a.B,a.D,b);IRa(a.bg,d,b,c,!0);a.Fa.start()}}; GTa=function(a){var b=a.j;a.type===3&&a.Ka.stop();a.api.removeEventListener("appresize",a.Ga);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null}; ITa=function(a){g.T.call(this,{I:"button",La:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.EP(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",va:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",va:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;AMa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize", this.AD);this.T(a,"videodatachange",this.AD);this.T(a,"presentingplayerstatechange",this.AD);this.AD();a=this.J.U();var b=g.At("yt-player-watch-later-pending");a.D&&b?(aCa(),HTa(this)):this.Ta(2);g.rp(this.element,"ytp-show-watch-later-title",g.EP(a));hS(this.J,this.element,this)}; JTa=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.EP(c)&&g.HS(a.J)&&g.U(a.J.getPlayerStateObject(),128),f=c.C;return c.ke&&b.width>=240&&!d.isAd()&&d.ke&&!e&&!g.SR(d)&&!a.J.Zc()&&!f}; KTa=function(a,b){gQa(g.UP(a.J.U()),"wl_button",function(){aCa({videoId:b});window.location.reload()})}; HTa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ta(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.Em(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ta(2);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; a.isRequestPending=!1;a.Ta(1);a.J.U().B&&a.J.CH(a.element);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_ADDED")}; nB(c,b).then(d,function(){a.isRequestPending=!1;a.Ta(4,"An error occurred. Please try again later.");a.J.U().N&&a.J.ib("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; LTa=function(a,b){if(b!==a.icon){switch(b){case 3:var c=YMa();break;case 1:c=wy();break;case 2:c={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path", Hc:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}}; g.uW=function(){g.SU.apply(this,arguments);this.vK=(this.Xr=g.EP(this.api.U()))&&(this.api.U().B||Rs()||Ps());this.BO=48;this.CO=69;this.rE=this.Ei=null;this.Ru=[];this.CM=this.xi=this.DM=this.Rw=this.le=null;this.QH=[];this.contextMenu=this.Eg=this.overflowButton=this.oi=this.Yg=this.searchButton=this.copyLinkButton=this.shareButton=this.kp=this.Ug=this.title=this.channelAvatar=this.OB=this.tooltip=null;this.kO=!1;this.SG=this.Fx=this.PE=this.QE=null;this.pS=this.iR=this.QO=!1}; MTa=function(a){var b=a.api.U(),c=g.U(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()}; NTa=function(a){if(a.Pg()&&!a.api.Zc()&&a.oi){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.kp||b&&!JTa(a.kp)||fRa(a.oi,a.kp);!a.shareButton||b&&!pRa(a.shareButton)||fRa(a.oi,a.shareButton);!a.copyLinkButton||b&&!vQa(a.copyLinkButton)||fRa(a.oi,a.copyLinkButton)}else{if(a.oi){b=a.oi;for(var c=g.v(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.te(a.Ug.element,a.searchButton.element)&&a.searchButton.Ja(a.Ug.element);a.kp&&!g.te(a.Ug.element, a.kp.element)&&a.kp.Ja(a.Ug.element);a.shareButton&&!g.te(a.Ug.element,a.shareButton.element)&&a.shareButton.Ja(a.Ug.element);a.copyLinkButton&&!g.te(a.Ug.element,a.copyLinkButton.element)&&a.copyLinkButton.Ja(a.Ug.element)}}; OTa=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if(om(b,"display")!=="none"&&b.getAttribute("aria-hidden")!=="true"){var e=void 0;b.tabIndex>=0?e=b:e=OTa(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexd/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Ke())&&d.isView()&&(d=d.mediaElement);if(d&&d.hx().length>12&&g.xR(e))return{msg:"played-ranges"};if(!e.C)return null;if(!h)return{msg:"no-pvd-formats"};if(!e.C.j||!h.j)return{msg:"non-dash"};d=h.videoInfos[0];var l=e.C.videoInfos[0];a.G&&nR(f)&&(d=b.fA(),l= c.fA());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(PF(d)||PF(l)))return{msg:"av1"};b=a.B&&f.vk()&&lG();if(l.containerType!==d.containerType)if(b)f.oa("sgap",{ierr:"container"});else return{msg:"container"};if(g.xR(f)&&g.xR(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.AF)if(b)f.oa("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:h.itag,cr:c.sampleRate,ni:e.itag,nr:m.sampleRate};return(c.numChannels||2)!==(m.numChannels|| 2)?{msg:"channel-count"}:a.D&&f.vk()&&d.video.fps!==l.video.fps?{msg:"fps"}:null}; bUa=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.Ik||e.Ik)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};if(!c.j&&!a.zo())return{nq:"no-empty"};a=aUa(c,a,b,Infinity);return a!=null?{nq:a.msg}:null}; CW=function(a){g.K.call(this);this.app=a;this.D=this.C=this.wb=this.j=null;this.B=1;this.events=new g.EF(this);this.events.T(this.app.Ua,g.jE("gaplessshortslooprange"),this.N);g.Q(this,this.events)}; cUa=function(){this.j=this.C=this.G=this.D=this.B=!1}; dUa=function(a){var b=new cUa;b.B=a.L("h5_gapless_support_types_diff");b.D=a.L("h5_gapless_error_on_fps_diff");b.G=a.L("html5_gapless_use_format_info_fix");b.C=a.L("html5_gapless_disable_on_av1");b.j=a.L("html5_gapless_one_queued_player_only");return b}; g.DW=function(a,b,c,d){d=d===void 0?!1:d;wG.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d}; eUa=function(a,b,c,d,e,f){f=f===void 0?0:f;g.K.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.yd=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.Oq=new vG;this.vn=d-b.Ec()*1E3;this.Oq.then(void 0,function(){}); this.timeout=new g.fp(function(){h.Tg("timeout")},1E4); g.Q(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}}; kUa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.H(function(q){if(q.j==1){if(a.Ma())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.EW.Ss();return g.G(q,a.Oq,2)}g.EW.Gr("gtfta",b);c=a.j.Ke();if(c.isEnded())return a.Tg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!oG(a.D))return a.Tg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Mr()!==a.D)return a.Tg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error|| "")));d=fUa(a);e=d.F_;f=d.zX;h=d.D_;a.j.Lj(!1,!0);l=gUa(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.iF();a.yd.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.vH(m.SB,m.TB);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{qx:!0,bU:3,bd:"gapless_pseudo"}),l.play(),xs());n=c.vc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.oa("gapless",n);a.j.oa("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();hUa(a.j,f,!1, p,a.B.getVideoData().clientPlaybackNonce);hUa(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.t2=!0;a.yd.U().L("html5_gapless_monitor_pbs")&&a.G===1&&iUa(a.B);g.Ge(function(){!a.B.getVideoData().Ga&&a.B.getPlayerState().isOrWillBePlaying()&&jUa(a.B)}); FW(a,6);a.dispose();return q.return(Promise.resolve())})}; pUa=function(a){if(a.B.getVideoData().C){var b=a.yd.U().L("html5_gapless_suspend_next_loader")&&a.G===1;lUa(a.B,a.D,b,mUa(a));FW(a,3);nUa(a);var c=oUa(a);b=c.yT;c=c.X1;b.subscribe("updateend",a.nz,a);c.subscribe("updateend",a.nz,a);a.nz(b);a.nz(c)}}; nUa=function(a){a.j.unsubscribe("internalvideodatachange",a.Jn,a);a.B.unsubscribe("internalvideodatachange",a.Jn,a);a.yd.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.Jn,a),a.B.unsubscribe("internalvideoformatchange",a.Jn,a));a.j.unsubscribe("mediasourceattached",a.Jn,a);a.B.unsubscribe("statechange",a.UV,a)}; gUa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.DW(a,b,c,d)}; FW=function(a,b){b<=a.status.status||(a.status={status:b,error:null},b===5&&a.Oq.resolve())}; mUa=function(a){return a.yd.U().L("html5_gapless_no_clear_buffer_timeline")&&a.G===1&&cR(a.j.getVideoData())}; fUa=function(a){var b=a.j.Ke();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:GW(a.j,!0);c=Math.min(a.vn/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Vf()+d;return{D7:b,F_:a,zX:c,D_:Infinity}}; oUa=function(a){return{yT:a.C.j.Hd,X1:a.C.B.Hd}}; rUa=function(a){g.K.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.C=this.D=null;this.N=dUa(this.app.U());this.K=function(){g.Ge(function(){qUa(b)})}}; sUa=function(a,b,c,d,e){d=d===void 0?0:d;e=e===void 0?0:e;a.zo()||HW(a);a.D=new vG;a.j=b;var f=c,h=e===0;h=h===void 0?!0:h;var l=a.app.Uc(),m=l.getVideoData().isLivePlayback?Infinity:GW(l,!0)*1E3;f>m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Ua.addEventListener(g.iE("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.gE(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,GW(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,GW(b)+m)),h=vIa(f,l)||d,h!==d&&a.j.oa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Dd=!0;d.getVideoData().Y=!0;g.IW(d,!0);f={};a.B&&(f=g.SJ(a.B.pc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:h});d.oa("queued",f);b!==0&&d.seekTo(b+.01,{qx:!0,bU:3,bd:"videoqueuer_queued"});a.C=new eUa(a.N,a.app.Uc(),a.j,c,a.app,e);c=a.C;c.status.status!== Infinity&&(FW(c,1),c.j.subscribe("internalvideodatachange",c.Jn,c),c.B.subscribe("internalvideodatachange",c.Jn,c),c.yd.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.Jn,c),c.B.subscribe("internalvideoformatchange",c.Jn,c)),c.j.subscribe("mediasourceattached",c.Jn,c),c.B.subscribe("statechange",c.UV,c),c.j.subscribe("newelementrequired",c.Z_,c),c.Jn());return a.D}; qUa=function(a){var b,c,d,e,f,h,l,m,n;g.H(function(p){switch(p.j){case 1:if(a.Ma()||!a.D||!a.j)return p.return();a.Z&&JW(a.app.Uc(),!0,!1);c=a.app.U().L("html5_force_csdai_gapful_transition")&&((b=a.app.Uc())==null?void 0:b.getVideoData().isDaiEnabled());d=null;if(!a.C||c){p.Ia(2);break}g.xa(p,3);return g.G(p,kUa(a.C),5);case 5:g.za(p,2);break;case 3:d=e=g.Aa(p);case 2:if(!a.j)return p.return();g.EW.So("vqsp",function(){KW(a.app,a.j)}); f=a.j.Ke();a.app.U().L("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&a.j.seekTo(0);g.EW.So("vqpv",function(){a.app.playVideo()}); if(d||c)a.j?(h=d?d.message:"forced",(l=a.B)==null||l.oa("gapfulfbk",{r:h}),tUa(a.j,h)):(m=a.B)==null||m.oa("gapsp",{});n=a.D;HW(a);n&&n.resolve();return p.return(Promise.resolve())}})}; HW=function(a,b){b=b===void 0?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Ua.removeEventListener(g.iE("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(a.C.status.status!==6&&(c=a.C,c.status.status!==Infinity&&c.G!==1&&c.Tg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.dS(a.app,1)&&a.j!==a.app.Uc()&&a.j.dispose();a.j&&b&&LW(a.j);a.j=null;a.Z=!1}; uUa=function(a){var b;return((b=a.C)==null?void 0:b.currentVideoDuration)||-1}; vUa=function(a,b,c){if(a.zo())return"qie";if(a.j==null||a.j.Ma()||a.j.getVideoData()==null)return"qpd";if(b.videoId!==a.j.mf())return"vinm";if(uUa(a)<=0)return"ivd";if(c!==1)return"upt";var d;(d=a.C)==null?a=void 0:d.getStatus().status!==5?a="niss":aUa(d.policy,d.j,d.B,d.vn)!=null?a="pge":(c=oUa(d),b=c.yT,a=g.qD(d.yd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=dG(c.X1.oe(),d),b=dG(b.oe(),d),a=!(a>0)||c&&b?null:"neb");return a!=null?a:null}; wUa=function(){var a=lna();return!(!a||a==="visible")}; yUa=function(a){var b=xUa();b&&document.addEventListener(b,a,!1)}; zUa=function(a){var b=xUa();b&&document.removeEventListener(b,a,!1)}; xUa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[et+"VisibilityState"])return"";a=et+"visibilitychange"}return a}; AUa=function(){g.iy.call(this);var a=this;this.fullscreen=0;this.D=this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.G=function(){a.Hf()}; yUa(this.G);this.K=this.getVisibilityState(this.Zh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.wu(),this.MA(),this.TA(),this.xk())}; iOa=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.wu()||a.MA()||a.TA()||a.xk())}; MW=function(a,b){g.K.call(this);var c=this;this.policy=a;this.jb=b;this.B=0;this.j=null;this.wf=[];this.C=null;this.fd={Wn:function(){return c.jb}}; this.jb.length===1||g.Cl(this.jb,function(d){return!!d.range})}; NW=function(a,b,c){a.j&&(VK(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.v(a.jb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{if(PN(h)&&!c&&a.B+b.totalLength-e0){b=g.v(b.jb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=((d=c.value.range)==null?void 0:d.length)||0}return a}if(b.cG.length>0)for(c=g.v(b.cG),d=c.next();!d.done;d=c.next())a+=d.value.Ks||0;return a+b.nZ}; FUa=function(a,b){if(PW){var c=0;a=a.Yc.get(b);if(a==null||!a.Aj)return 0;a=g.v(a.Aj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.totalLength;return c}return((c=a.Yc.get(b))==null?void 0:c.wf.totalLength)||0}; RW=function(a,b){a=a.Yc.get(b);if(PW){if(a==null||!a.aE)return!1;b=a.Aj.size>0;return a.Nx.length>0||b}return!(a==null||!a.aE)&&!(a==null||!a.wf.totalLength)}; GUa=function(a,b){var c=a.Yc.get(b),d=EUa(a,b),e=!d&&!!c.bytesReceived;if(PW){var f;if((f=a.manifest)==null?0:f.dc){a=g.v(c.Aj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.zx)return!1;return e}}else if(f=a.wx(b),e&&a.j&&f!==void 0)return f;return(e||c.bytesReceived===d)&&c.Dz+FUa(a,b)===c.bytesReceived}; HUa=function(a,b,c){a.Yc.set(b,{wf:new UK,Dz:0,bytesReceived:0,nZ:0,FS:!1,Og:!1,wx:!1,Fh:c,iT:[],jb:[],cG:[],aE:!1,Aj:new Map,FH:new Map,Nx:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})}; IUa=function(a,b,c,d){c.jb.push.apply(c.jb,g.w(d));if(PW){c.FH.has(b)||c.FH.set(b,[]);var e;(e=c.FH.get(b)).push.apply(e,g.w(d))}else if(c.eg)for(a=g.v(d),b=a.next();!b.done;b=a.next())c.eg.jb.push(b.value);else{c.eg=new MW(a.Te,[].concat(g.w(c.jb)));var f;((f=a.Te)==null?0:f.Yd)&&g.Q(a,c.eg)}}; JUa=function(a,b,c){var d,e=(d=a.manifest)==null?void 0:d.N.get(b);if(!e)return[];if(c.xo){var f;return((f=e.bx(0,c.clipId))==null?void 0:f.jb)||[]}if(e.Pm()){var h=c.startMs;d=c.durationMs;f=1E3;var l;if(((l=a.Te)==null?0:l.C)&&c.timeRange){var m;h=(m=c.timeRange.qh)!=null?m:-1;var n;d=(n=c.timeRange.CE)!=null?n:-1;var p;f=(p=c.timeRange.Dv)!=null?p:-1}if(c.jC<0||c.Hq<0||d<0||h<0||c.Ks<0||f<0)return QW(a,b),[];a=LN(c.jC,c.Ks);b=c.fL||0;return[new NN(3,e,a,"makeSliceInfosMediaBytes",c.Hq-1,h/f,d/ f,b,a.length-b,void 0,c.Mj,c.clipId)]}if(c.Hq<0)return QW(a,b),[];var q;return((q=a.manifest)==null?0:q.dc)?(b=e.Oj,l=b*e.info.ub,a=((h=a.Te)==null?0:h.qc)?c.fL:void 0,[new NN(3,e,void 0,"makeSliceInfosMediaBytes",c.Hq,void 0,b,a,l,!0,c.Mj,c.clipId)]):[]}; KUa=function(a,b,c){a.manifest=b;a.Te=c;b=g.v(a.Yc);for(c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;for(var e=g.v(d.iT),f=e.next();!f.done;f=e.next()){f=f.value;var h=JUa(a,c,f);IUa(a,f.Yp,d,h)}}}; LUa=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.totalLength}); (a=a.Yc.get(c))&&!a.Og&&(PW?(a.Aj.has(b)||a.Aj.set(b,{data:new UK,OI:0,zx:!1}),VK(a.Aj.get(b).data,d)):VK(a.wf,d),a.bytesReceived+=d.totalLength,a.FS=!0)}; CUa=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b}); var c=a.Yc.get(b);c&&!c.Og&&(c.Og=!0,c.Cg&&c.Cg(),MUa(a)&&a.D.L_())}; MUa=function(a){a=g.v(a.Yc.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Og)return!1;return!0}; SW=function(a,b){var c,d;(c=window.h5vcc)==null||(d=c.settings)==null||d.set(a,b)}; NUa=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.w(new Uint8Array(c))));a.close()}return b}; SUa=function(a){var b=a.experiments,c=b.ob.bind(b);OUa=c("html5_use_async_stopVideo");PUa=c("html5_pause_for_async_stopVideo");QUa=c("html5_not_reset_media_source");Owa=c("html5_rebase_video_to_ad_timeline");pG=c("html5_not_reset_media_source");RUa=c("html5_not_reset_media_source");jG=c("html5_retain_source_buffer_appends_for_debugging");fOa=c("web_enable_auto_pip")||c("web_enable_pip_on_miniplayer");c("html5_mediastream_applies_timestamp_offset")&&(TW=!0);var d=g.qD(b,"html5_cobalt_override_quic"); d&&SW("QUIC",+(d>0));(d=g.qD(b,"html5_cobalt_audio_write_ahead_ms"))&&SW("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_decode_to_texture"))&&SW("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&SW("MediaElement.EnableUsingMediaSourceBufferedRange",+d);Error.stackTraceLimit=50;var e=g.qD(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f, e)}}); XIa(a.G);PW=c("html5_use_ump_request_slicer");RTa=c("html5_record_now");c("html5_disable_streaming_xhr")&&(eP=!1);c("html5_pr_start_secs")&&($La=!0);g.qD(a.experiments,"html5_byterate_soft_cap_mweb")&&(nM=!0);c("html5_use_non_active_broadcast_for_post_live")&&(cO=!0)}; TUa=function(a){return a.slice(12).replace(/_[a-z]/g,function(b){return b.toUpperCase().replace("_","")}).replace("Dot",".")}; UUa=function(a){if(a.experiments.ob("html5_cobalt_auto_apply_h5vcc_flags"))for(var b in a.experiments.flags)if(b.startsWith("cobalt_h5vcc")){var c=TUa(b),d=g.qD(a.experiments,b);c&&d&&SW(c,d)}}; UW=function(a,b,c,d,e){e=e===void 0?[]:e;g.K.call(this);this.X=a;this.lc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])}; VUa=function(a){if(!(a.segments.length<2)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.v(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.v(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.v(f.segments),l=h.next();!l.done;l=h.next())(l=VW(l.value))&&d.push(l);f.removeAll()}}}(c=VW(b))&&d.push(c);d=g.v(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}}; WW=function(a,b,c,d){if(!a.j||b>c)return!1;b=new UW(a.X,b,c,a.j,d);d=g.v(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=VW(c);e&&e!==VW(a.j)&&a.B.set(e,[c])}a=a.j;a.j.has(b.Ye())?a.j.get(b.Ye()).push(b):a.j.set(b.Ye(),[b]);return!0}; XW=function(a,b){return a.B.get(b)}; WUa=function(a,b,c){a.B.set(b,c)}; YW=function(a,b,c,d,e,f){return new XUa(c,c+(d||0),!d,b,a,e,f)}; XUa=function(a,b,c,d,e,f,h){g.K.call(this);this.lc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.KK=h;this.j=new Map;wR(f)}; VW=function(a){return a.videoData.clientPlaybackNonce}; YUa=function(a){if(a.j.size)for(var b=g.v(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()}; ZUa=function(a){this.end=this.start=a}; g.ZW=function(a,b,c){g.K.call(this);var d=this;this.api=a;this.X=b;this.ea=c;this.Fa=new Map;this.bb=new Map;this.Ka=new Map;this.B=new Map;this.C=[];this.G=[];this.D=new Map;this.qc=new Map;this.Y=new Map;this.Tb=NaN;this.Jb=this.Xa=this.Nb=null;this.Kb=new g.fp(function(){$Ua(d,d.Tb,d.Nb||void 0)}); this.events=new g.EF(this);this.zb=15E3;this.Z=new g.fp(function(){d.Ca=!0;var e=d.ea,f=d.zb;e.oa("sdai",{aftimeout:f});e.Rd(new vF("ad.fetchtimeout",{timeout:f}));aVa(d);d.qF(!1)},this.zb); this.Ca=!1;this.K=new Map;this.Bb=[];this.ra=null;this.Ae=new Set;this.Ga=[];this.Bc=[];this.Ed=[];this.Td=[];this.j=void 0;this.Wa=0;this.Ra=!0;this.qa=!1;this.Na=[];this.Dd=new Set;this.Yd=new Set;this.ke=new Set;this.zm=0;this.fb=new Set;this.Xc=0;this.Mn=this.Lc=!1;this.Vb=this.N="";this.rb=null;this.fd={jna:function(){return d.B}, una:function(){return d.C}, kna:function(){return d.D}, Z7:function(e){d.onCueRangeEnter(d.B.get(e))}, dna:function(e){d.onCueRangeExit(d.B.get(e))}, fpa:function(e,f){d.B.set(e,f)}, hpa:function(e){d.Vb=e}, YE:function(){return d.YE()}}; this.ea.getPlayerType();bVa(this.ea,this);this.Va=this.X.yc();g.Q(this,this.Kb);g.Q(this,this.events);g.Q(this,this.Z);this.events.T(this.api,g.iE("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.jE("serverstitchedcuerange"),this.onCueRangeExit)}; fVa=function(a,b,c,d,e,f,h,l){var m=cVa(a,f,f+e);a.Ca&&a.ea.oa("sdai",{adaftto:1});a.Mn&&a.ea.oa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ea;h=h===void 0?f+e:h;f===h&&!e&&a.X.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.oa("sdai",{attl0d:1});f>h&&$W(a,{reason:"enterTime_greater_than_return",lc:f,Wd:h});var p=n.od()*1E3;fn&&$W(a,{reason:"parent_return_greater_than_content_duration", Wd:h,Loa:n});n=null;p=g.Hb(a.G,{Wd:f},function(q,r){return q.Wd-r.Wd}); p>=0&&(n=a.G[p],n.Wd>f&&dVa(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p.5&&a.ea.oa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.api.Uy();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.D.get(b.adCpn);var m=a.D.get(c.adCpn)}e?a.ea.oa("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):gVa(a,m,l,c.Vg,b.Vg,d,e)}else if(!b.isAd&&c.isAd){a.Vb=e.cpn;a.api.publish("serverstitchedvideochange"); l=bX(a,"a2c");a.ea.oa("sdai",l);a.zm=0;if(l=c.Zd)a.Wa=l.end;var n;c.adCpn&&(n=a.D.get(c.adCpn));n&&cX(a.ea,n,e,c.Vg,b.Vg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.D.get(b.adCpn));p&&(a.Wa=0,a.Vb=p.cpn,a.api.publish("serverstitchedvideochange",p.pd,p.qr),n=bX(a,"c2a",p),a.ea.oa("sdai",n),a.zm=1,cX(a.ea,e,p,c.Vg,b.Vg,d,!!f))}}; hVa=function(a,b,c){c=(b+(c===void 0?0:c))*1E3;var d=g.Hb(a.G,{lc:c},function(e,f){return e.lc-f.lc}); d=d<0?(d+2)*-1:d;return d>=0&&(a=a.G[d],a.Wd>=c)?{Kn:a,Su:b}:{Kn:void 0,Su:b}}; eX=function(a,b){var c="";(b=iVa(a,b))&&(c=b.getId());return c?a.D.get(c):void 0}; iVa=function(a,b){if(a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.Vb){var c=a.B.get(a.Vb);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.v(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; $Ua=function(a,b,c){var d=a.Jb||a.api.Uc().getPlayerState();fX(a,!0);a.ea.seekTo(b,c);a=a.api.Uc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()}; fX=function(a,b){a.Tb=NaN;a.Nb=null;a.Kb.stop();a.Xa&&b&&jVa(a.Xa);a.Jb=null;a.Xa=null}; kVa=function(a){var b=b===void 0?-1:b;var c=c===void 0?Infinity:c;for(var d=[],e=g.v(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.lcc)&&d.push(f);a.G=d;d=g.v(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.ea.removeCueRange(e),a.B.delete(e.getId()),a.ea.oa("sdai",{rmAdCR:1}));d=hVa(a,b/1E3);b=d.Kn;d=d.Su;if(b&&(d=d*1E3-b.lc,e=b.lc+d,b.durationMs=d,b.Wd=e,d=a.B.get(b.cpn))){e=g.v(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start= b.lc+b.durationMs:f.end===d.start&&(f.end=b.lc);d.start=b.lc;d.end=b.lc+b.durationMs}if(b=hVa(a,c/1E3).Kn){var h;d="playback_timelinePlaybackId_"+b.pd+"_video_id_"+((h=b.videoData)==null?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.lc+"_parentReturnTimeMs_"+b.Wd;a.El("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; lVa=function(a){a.Fa.clear();a.bb.clear();a.Ka.clear();a.B.clear();a.C=[];a.G=[];a.D.clear();a.qc.clear();a.Y.clear();a.K.clear();a.Bb=[];a.ra=null;a.Ae.clear();a.Ga=[];a.Bc=[];a.Ed=[];a.Td=[];a.Na=[];a.Dd.clear();a.Yd.clear();a.ke.clear();a.fb.clear();a.Ca=!1;a.j=void 0;a.Wa=0;a.Ra=!0;a.qa=!1;a.zm=0;a.Xc=0;a.Lc=!1;a.Mn=!1;a.N="";a.Z.isActive()&&aX(a)}; nVa=function(a,b,c,d,e,f){if(!a.Mn)if(!a.X.L("html5_ssdai_use_media_time")&&g.mVa(a,c))a.Va&&a.ea.oa("sdai",{gdu:"undec",seg:c,itag:e});else if(b=gX(a,b,c,d,f),!(a.ea.getVideoData().Om()&&(b==null?0:b.RA)))return b}; gX=function(a,b,c,d,e){var f;a.X.L("html5_ssdai_use_media_time")||(f=a.K.get(c));if(!f){if(f=hX(a,b))return f;var h=iX(a,c-1,d!=null?d:2);if(e)return a.ea.oa("sdai",{misscue:e,sq:c,type:d,prevsstate:h==null?void 0:h.vz,prevrecord:a.K.has(c-1)}),a.X.L("html5_ssdai_use_media_time")?hX(a,b-5):a.K.get(c-1);if((h==null?void 0:h.vz)===2&&(a.ea.oa("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),!a.X.L("html5_ssdai_use_media_time")))return a.K.get(c-1)}return f}; hX=function(a,b){b+=a.du();if(a.X.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=c===void 0?0:c;var d=b*1E3;a=g.v(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.qr?e.qr*1E3:e.lc;if(d>=e.lc-c*1E3&&d<=f+e.durationMs+c*1E3){b={Kn:e,Su:b};break a}}b={Kn:void 0,Su:b}}else b=hVa(a,b,1);return b.Kn}; oVa=function(a){if(a.Na.length)for(var b=g.v(a.Na),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.v(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.v(a.C);for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);a.B.clear();a.C=[];a.Fa.clear();a.bb.clear();a.Ka.clear();a.j||(a.Ra=!0)}; gVa=function(a,b,c,d,e,f,h){if(b&&c){a.Vb=c.cpn;a.api.publish("serverstitchedvideochange",c.pd,c.qr);var l=bX(a,"a2a",c);a.ea.oa("sdai",l);a.zm++;cX(a.ea,b,c,d||0,e||0,!!f,!!h)}else a.ea.oa("sdai",{misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(b==null?void 0:b.cpn)||"",seek:f,skip:h})}; iX=function(a,b,c){if(c===1){if(a.Fa.has(b))return a.Fa.get(b)}else{if(c===2&&a.bb.has(b))return a.bb.get(b);if(c===3&&a.Ka.has(b))return a.Ka.get(b)}}; qVa=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;pVa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.ea.removeCueRange(e);if(a.Na.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else pVa(a,b,c)}; pVa=function(a,b,c){b=a.hJ(b,c);c=!0;g.Lb(a.C,b,function(h,l){return h.start-l.start}); for(var d=0;d0){var e=a.C[d],f=a.C[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ea.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.KE("serverstitchedcuerange",36E5),b=g.v(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())}; jX=function(a,b,c){if(c===void 0||!c){c=g.v(a.Bb);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.Bb.push(new ZUa(b))}}; g.mVa=function(a,b){a=g.v(a.Bb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; dVa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Goa:b,lc:c,Wd:d,bna:e.pd,cna:((f=e.videoData)==null?void 0:f.videoId)||"",Yma:e.durationMs,Zma:e.lc,ana:e.Wd};$W(a,b)}; $W=function(a,b,c){a=a.ea;a.oa("timelineerror",b);b=new vF("dai.timelineerror",b);c?a.Lf("dai.timelineerror",1,"RETRYABLE_ERROR",uF(b.details)):a.Rd(b)}; rVa=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; sVa=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.v(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; tVa=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.v(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=(b=d.value.videoData)==null?void 0:b.videoId)&&c.push(d);return c}; uVa=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.durationMs!==0&&b.Wd!==b.lc&&c++;return c}; vVa=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.v(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.durationMs!==0&&e.Wd!==e.lc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Yd.has(e)&&(a.ea.oa("sdai",{decoratedAd:e}),a.Yd.add(e)))}}; aVa=function(a){a.Va&&a.ea.oa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Xc)+"_isTimeout_"+a.Ca})}; cVa=function(a,b,c){if(a.Ga.length)for(var d=g.v(a.Ga),e=d.next(),f={};!e.done;f={Vz:void 0},e=d.next()){f.Vz=e.value;e=f.Vz.startSecs*1E3;var h=f.Vz.Ch*1E3+e;if(b>e&&be&&c0&&d>b*1E3+a.Cda)return!1;if(d=CVa(a,c)){b=!1;c=void 0;d=g.v(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}VW(e)===a.Vb&&(b=!0)}d=void 0;if(c)d=VW(c);else if(b){var f;d=(f=a.timeline.j)==null?void 0:VW(f)}if(d)return a.finishSegmentByCpn(a.Vb,d,2,void 0),!0;var h;a.api.oa("ssap",{mfnc:1,mfncc:(h= a.timeline.j)==null?void 0:VW(h)})}return!1}; lX=function(a,b){a=XW(a.timeline,b);return(a==null?0:a.length)?a[0].Ye():0}; nX=function(a,b){var c=c===void 0?!1:c;var d=a.timeline.j;if(!d)return{clipId:"",Hl:0};var e=DVa(a,b,c);if(e)return{clipId:VW(e)||"",Hl:e.Ye()};a.api.oa("mci",{cs:VW(d),mt:b,tl:mX(a),invt:!!c});return{clipId:"",Hl:0}}; oX=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(b.j.size===0)return(b.Vh()-b.Ye())/1E3;b=b.j.values();b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Vh()-d.Ye())/1E3}return a}; EVa=function(a,b){return(a=kX(a,b*1E3))?a.Ye():0}; FVa=function(a,b){var c=XW(a.timeline,b);b=0;if(c==null?0:c.length)for(a=g.v(c),c=a.next();!c.done;c=a.next())c=c.value,b+=(c.Vh()-c.Ye())/1E3;else return oX(a);return b}; kX=function(a,b){if(a=XW(a.timeline,a.Vb)){a=g.v(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Ye()<=b&&c.Vh()>=b)return c}}; GVa=function(a){var b=a.ea.getVideoData();a.Vb&&(a=a.Lp.get(a.Vb))&&(b=a);return b}; CVa=function(a,b,c){c=c===void 0?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.Jb(e);b=g.Hb(e,b);b=d.get(e[b<0?(b+2)*-1:b]);if(!c&&b){c=g.v(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.Ye()!==b.Vh())return b;return a.timeline}return b&&b.length>0?b[b.length-1]:void 0}}; DVa=function(a,b,c){c=c===void 0?!1:c;var d=CVa(a,b,c);if(d){if(a=d.segments,a.length){for(var e=g.v(a),f=e.next();!f.done;f=e.next())if(f=f.value,f.Ye()<=b&&f.Vh()>b)return f;if(c&&d.Ye()===d.Vh())return a[0]}}else a.api.oa("ssap",{ctnf:1})}; wVa=function(a,b){var c;if(a.Ny)for(c=a.LG.shift();c&&c!==a.Ny;)c=a.LG.shift();else c=a.LG.shift();if(c)return a.Ck.has(c)?HVa(a,c):IVa(a,b)&&(a.bL.stop(),a.api.playVideo(1)),a.RH.set(a.Vb,b),a.api.oa("ssap",{onvftn:1}),JVa(a,c),!1;a.api.oa("ssap",{onvftv:1});a.bL.stop();return!0}; HVa=function(a,b){b=XW(a.timeline,b);if(b==null?0:b.length)a.api.pauseVideo(),a.bL.start(b[0].KK)}; JVa=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce,e=a.Vb,f=!1;if(e==="")e=d,f=!0;else if(e===void 0){var h=a.ea.qA().Ng;h&&a.timeline.B.has(h)&&(e=h);a.api.oa("ssap",{mcc:e+";"+b});a.ea.Rd(new vF("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b}))}if(e===b)f&&c&&KVa(a,c,f);else{h=a.RH.get(e);if(!(f||h&&IVa(a,h))){var l=a.api.Uy(a.Vb);a.api.oa("ssap",{nmec:l,cpc:a.Vb,ec:b})}a.Vb=b;LVa(a);b=XW(a.timeline,a.Vb);if(b==null?0:b.length){b=b[0];l=b.getType();e!==d&&(a.GK=e,c= a.Lp.get(e));h?a.RH.delete(e):h=f?1:2;a:{var m=a.Vb;if(!a.ek.has(m))for(var n=g.v(a.ek),p=n.next();!p.done;p=n.next()){var q=g.v(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}p=m;n=a.api.U().L("html5_ssap_insert_su_before_nonvideo")&&p!==a.Vb;q=a.ea.qA();if(q.Ng!==p){var r=q.pc(q.Ng);m=q.pc(p);q.Ng=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.X.yc()&&p.oa("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.SJ(p.provider),MVa(p,n,"SU")),isNaN(p.K)||g.is(p.K)), m.resume())}n=a.ea.getCurrentTime();m=Math.max(0,n-lX(a,e)/1E3);n=Math.max(0,n-lX(a,a.Vb)/1E3);p=b.getVideoData();q=a.ea.qA();r=e;var t=a.Vb,u=IVa(a,h),x=a.ea.getPlayerState();if(r!==t){var B=q.pc(r),E=q.pc(t),F,I=r===((F=B.getVideoData())==null?void 0:F.clientPlaybackNonce),O;F=t===((O=E.getVideoData())==null?void 0:O.clientPlaybackNonce);var N;O=I?((N=B.getVideoData())==null?void 0:N.videoId)||"":"nvd";var S;N=F?((S=E.getVideoData())==null?void 0:S.videoId)||"":"nvd";I&&(S=B.qoe)!=null&&(pX(S,4, u?4:0,t,N,m),S.reportStats());F&&(qX(E),(S=E.qoe)!=null&&(pX(S,4,u?5:1,r,O,n),S.reportStats()),NVa(E,new g.rz(x,E.Ge)),OVa(E));PVa(q,r)}var Y;JOa(e,a.Vb,d,p,(Y=a.GM.get(e))!=null?Y:(0,g.uu)(),c);a.GM.delete(e);f?c=void 0:c||a.api.oa("ssap",{pvdm:e+";"+a.Vb,pvdmc:a.Vb===d?"1":"0"});a.api.oa("ssap",{tpac:e+";"+a.Vb,tpcc:d,tpv:(p==null?0:p.ue())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",p,l,c,h);a.api.L("html5_ssap_publish_content_video_data_updated_event")&&!b.C&&a.ea.getVideoData().publish("dataupdated"); a.Ck.delete(e);a.Ny="";p&&l===1?KVa(a,p):a.ea.oa("ssap",{nis:a.Vb});l===2?a.zm++:a.zm=0}}}; KVa=function(a,b,c){c=c===void 0?!1:c;if(b.startSeconds&&a.b2){var d=b.startSeconds;b=XW(a.timeline,b.clientPlaybackNonce);if(b==null?0:b.length)d+=b[0].Ye()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.KP()||(a.ea.seekTo(d,{IT:!0}),a.b2=!1,a.ea.oa("ssap",{is:a.Vb,co:c?"1":"0",tse:d.toFixed()}))}}; QVa=function(a,b,c){b=XW(a.timeline,b);if(b==null?0:b.length)if(b=CVa(a,b[0].Ye())){b=g.v(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(VW(d)===c)break;if(d=VW(d))a.ek.delete(d),(d=a.ek.get(d))&&a.ea.removeCueRange(d)}}}; RVa=function(a,b,c){DVa(a,b)||a.ea.oa("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:mX(a)})}; LVa=function(a){var b=a.Vb,c=a.Lp.get(b)||a.ea.getVideoData();c&&(a=a.ea.getCurrentTime()-lX(a,b)/1E3,c.Pk=a>0?a:0)}; rX=function(a,b){b=b||a.Vb;var c=a.Lp.get(b);return c?c.Pk:b!==a.ea.getVideoData().clientPlaybackNonce?0:a.ea.getVideoData().Pk}; mX=function(a){var b=a.Vb;b||(b=a.ea.getVideoData().clientPlaybackNonce);var c,d,e=Array.from((d=(c=a.timeline.j)==null?void 0:c.j.values())!=null?d:[]);c=[];if(e==null?0:e.length)for(d=g.v(e),e=d.next();!e.done;e=d.next())if(e=e.value,e.length&&e[0]&&(e=e[0].segments,e.length)){e=g.v(e);for(var f=e.next();!f.done;f=e.next()){var h=f.value;f="st."+h.Ye()+";";f+="et."+h.Vh()+";";var l=VW(h);l&&(f+="cpn."+l+";",f+="a."+(b===l?1:0)+";");if(h=h.getVideoData())l=void 0,f+="vid."+((l=h.videoId)!=null?l: "nvd");c.push(f)}}return(c.length?c.join(","):"empty."+b)+";cpcpn."+a.vl()}; xVa=function(a){a.ea.bH(Array.from(a.ek.values()));a.ek.clear()}; IVa=function(a,b){return a.api.L("html5_ssap_support_more_transition_reasons")?b===3||b===5||b===6||b===7:b===3}; TVa=function(a,b,c){g.K.call(this);var d=this;this.api=a;this.X=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.qa=NaN;this.G=this.D=this.Y=null;this.Z=new g.fp(function(){SVa(d,d.qa,d.Y||void 0)}); this.ra=[];this.Ca=new g.fp(function(){var e=d.ra.pop();if(e){var f=e.pd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.gp(d.Ca,4500))}}); this.events=new g.EF(this);c.getPlayerType();g.Q(this,this.Z);g.Q(this,this.Ca);g.Q(this,this.events);this.events.T(this.api,g.iE("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Ek)}; XVa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=f===void 0?e+d:f;if(e>f)return sX(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=m.od()*1E3;if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ m.Ec(),sX(a,m,h,l),"";n=null;for(var p=g.v(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.lc&&eq.lc)return sX(a,"overlappingReturn",h,l),"";if(f===q.lc)return sX(a,"outOfOrder",h,l),"";e===q.Wd&&(n=q)}h="cs_childplayback_"+UVa++;l={Zd:tX(d,!0),vn:Infinity,target:null};var r={pd:h,playerVars:b,playerType:c,durationMs:d,lc:e,Wd:f,Pt:l};a.B=a.B.concat(r).sort(function(x,B){return x.lc-B.lc}); n?VVa(a,n,{Zd:tX(n.durationMs,!0),vn:n.Pt.vn,target:r}):(b={Zd:tX(e,!1),vn:e,target:r},a.K.set(b.Zd,b),m.addCueRange(b.Zd));b=!0;if(a.j===a.api.Uc()&&(m=m.getCurrentTime()*1E3,m>=r.lc&&mb)break;if(f>b)return{Kn:d,Su:b-e};c=f-d.Wd/1E3}return{Kn:null,Su:b-c}}; SVa=function(a,b,c){c=c===void 0?{}:c;var d=a.G||a.api.Uc().getPlayerState();wX(a,!0);b=isFinite(b)?b:a.j.Un();var e=aWa(a,b);b=e.Kn;e=e.Su;var f=b&&!uX(a,b)||!b&&a.j!==a.api.Uc(),h=e*1E3;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||vX(a);b?WVa(a,b,e,c,d):bWa(a,e,c,d)}; bWa=function(a,b,c,d){var e=a.j,f=a.api.Uc();e!==f&&a.api.Cy();e.seekTo(b,Object.assign({},{bd:"application_timelinemanager"},c));cWa(a,d)}; WVa=function(a,b,c,d,e){var f=uX(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.X.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.SQ(a.X,b.playerVars);h.pd=b.pd;a.api.Ku(h,b.playerType)}h=a.api.Uc();f||h.addCueRange(b.Pt.Zd);h.seekTo(c,Object.assign({},{bd:"application_timelinemanager"},d));cWa(a,e)}; cWa=function(a,b){a=a.api.Uc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()}; wX=function(a,b){a.qa=NaN;a.Y=null;a.Z.stop();a.D&&b&&jVa(a.D);a.G=null;a.D=null}; uX=function(a,b){a=a.api.Uc();return!!a&&a.getVideoData().pd===b.pd}; dWa=function(a){var b=a.B.find(function(e){return uX(a,e)}); if(b){var c=a.api.Uc();vX(a);var d=new g.BG(8);b=$Va(a,b)/1E3;bWa(a,b,{},d);c.oa("forceParentTransition",{childPlayback:1});a.j.oa("forceParentTransition",{parentPlayback:1})}}; fWa=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?Infinity:c;for(var d=b,e=c,f=g.v(a.K),h=f.next();!h.done;h=f.next()){var l=g.v(h.value);h=l.next().value;l=l.next().value;l.vn>=d&&l.target&&l.target.Wd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.v(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.lc>=d&&l.Wd<=e){var m=a;m.N===l&&vX(m);uX(m,l)&&m.api.Cy()}else f.push(l);a.B=f;d=aWa(a,b/1E3);b=d.Kn;d=d.Su;b&&(d*=1E3,eWa(a,b,d,b.Wd===b.lc+b.durationMs?b.lc+d:b.Wd));(b=aWa(a,c/1E3).Kn)&& sX(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.pd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.lc+" parentReturnTimeMs="+b.Wd+"}.Child playbacks can only have duration updated not their start."))}; eWa=function(a,b,c,d){b.durationMs=c;b.Wd=d;d={Zd:tX(c,!0),vn:c,target:null};VVa(a,b,d);uX(a,b)&&a.api.Uc().getCurrentTime()*1E3>c&&(b=$Va(a,b)/1E3,c=a.api.Uc().getPlayerState(),bWa(a,b,{},c))}; sX=function(a,b,c,d){a.j.oa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; hWa=function(a){a&&a!=="web"&&gWa.includes(a)}; zX=function(a,b){g.K.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.fp(function(){xX(c);yX(c)}); g.Q(this,this.j)}; iWa=function(a){xX(a);return a.data.map(function(b){return b.value})}; xX=function(a){var b=(0,g.uu)();a.data.forEach(function(c){c.expiref?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cm;if(EX(a)){var n=pWa(a);var p=isNaN(n)||g.Ou||FX&&g.lu||m;Nu&&!g.qc(601)?n=e.aspectRatio:p=p||f.controlsType==="3";p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=a.getPlayerSize().width*.02,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.hm(p,0,b.width,b.height)):p=new g.hm(0, 0,b.width,b.height):(c=e.aspectRatio/n,p=new g.hm((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),c===1&&g.lu&&(n=p.width-b.height*n,n>0&&(p.width+=n,p.height+=n)));g.rp(a.element,"ytp-fit-cover-video",Math.max(p.width-e.width,p.height-e.height)<1);if(l||a.Z1)a.Dc.style.display="";a.QQ=!0}else{p=-b.height;Nu?p*=window.devicePixelRatio:g.aQ&&(p-=window.screen.height);p=new g.hm(0,p,b.width,b.height);if(l||a.Z1)a.Dc.style.display="none";a.QQ=!1}im(a.OL,p)||(a.OL=p,g.LP(f)?(a.Dc.style.setProperty("width", p.width+"px","important"),a.Dc.style.setProperty("height",p.height+"px","important")):g.vm(a.Dc,p.getSize()),d=new g.Kd(p.left,p.top),g.rm(a.Dc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.hm((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);im(a.RB,b)||(a.RB=b,d=!0);g.km(a.Dc,"transform",c===1?"":"scaleX("+c+")");h&&m!==a.LL&&(m&&(a.Dc.addEventListener($Ma,a.tL),a.Dc.addEventListener("transitioncancel",a.tL),a.Dc.classList.add(g.CX.VIDEO_CONTAINER_TRANSITIONING)),a.LL=m,a.app.Ua.publish("playerUnderlayVisibilityChange", a.LL?"transitioning":"hidden"));return d}; tWa=function(){this.csn=g.Bx();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set}; uWa=function(a){if(a.csn!==g.Bx())if(a.csn==="UNDEFINED_CSN")a.csn=g.Bx();else{var b=g.Bx(),c=g.Ax();if(b&&c){a.csn=b;for(var d=g.v(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.ks("combine_ve_grafts")?PL(NL(),e,c):g.Pr(g.Wx)(void 0,b,c,e))}if(b)for(a=g.v(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.cy(b,c)}}; vWa=function(a,b){this.Oc=a;this.policy=b;this.playbackRate=1}; wWa=function(a,b){var c=Math.min(2.5,uP(a.Oc));a=GX(a);return b-c*a}; yWa=function(a,b,c,d,e){e=e===void 0?!1:e;if(a.policy.xp)return Math.ceil(a.policy.xp*b);a.policy.Sl&&(d=Math.abs(d));d/=a.playbackRate;var f=1/xP(a.Oc);c=Math.max(.9*(d-3),uP(a.Oc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);a.policy.zj>0&&e&&(c=Math.max(c,a.policy.zj));return xWa(a,c,b)}; xWa=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.Sk,a.policy.dw*c),Math.min(Math.min(a.policy.Na,31*c),Math.ceil(b*c))))||a.policy.Sk}; zWa=function(a,b,c){c=yWa(a,b.j.info.ub,c.j.info.ub,0);var d=uP(a.Oc)+c/xP(a.Oc);return Math.max(d,d+a.policy.WD-c/b.j.info.ub)}; GX=function(a){return xP(a.Oc,!a.policy.Bj,a.policy.Tv)}; HX=function(a){return GX(a)/a.playbackRate}; AWa=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.v(b&&d.length>0?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return a0&&(this.j=c.Tq)}; FWa=function(a,b,c,d,e){if(!e.info.Se){if(c.length===0)c.push(e);else{var f;(a=(f=c.pop())==null?void 0:jO(f,e))?c.push(a):c.push(e)}return d}var h;(c=(h=c.pop())==null?void 0:jO(h,e))||(c=e);if(a.policy.qc&&c.info.Sb)return a.logger&&a.logger({incompleteSegment:c.info.Rc()}),d;h=a.LP(c);d=h.formatId;e=h.Pa;f=h.clipId;c=h.O7;h=h.startTimeMs;!a.policy.uh&&a.policy.j&&a.Wc&&(f=lX(a.Wc,f),h+=f);d={formatId:d,startTimeMs:h,durationMs:c,qn:e,Vi:e,IB:h,HB:c};e=CWa(b,d.startTimeMs);(c=e>=0?b[e]:null)&&DWa(a, c,d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f=n+h.j?h=!0:p+h.j=0?a:-a-2}; GWa=function(a,b){if(a.Pb){var c=a.Pb.oe();if(c.length!==0){if(a.policy.Az&&a.D&&b){var d=a.D,e=d.info.Ve;!dG(c,e)&&d.info.D>0&&(0,g.uu)()-a.G<5E3&&(a.logger&&a.logger({dend:d.info.Rc()}),c=Awa(c,e,e+.01))}d=[];for(var f=e=0;e=h){var p=0;if(a.Wc){var q=nX(a.Wc,m*1E3);q&&(p=q.Hl/1E3)}q=Object.assign({},a.hd[f]);var r=a.manifest.N.get(eFa(a.hd[f].formatId)),t=Math.max(m, h);h=r.index.Ii(t+a.j/1E3-p);m=r.index.getStartTime(h)+p;var u=h+ +(Math.abs(m-t)>a.j/1E3);t=u+a.C;u=(r.index.getStartTime(u)+p)*1E3;a.policy.hw&&f===a.B&&!b?(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:m*1E3}),q.qn=h+a.C,q.startTimeMs=m*1E3):(q.qn=t,q.startTimeMs=u);q.IB=q.startTimeMs;h=void 0;m=((h=a.D)==null?void 0:h.info.duration)||11;f===a.B&&la.j/1E3);h=m+a.C;p=(r.index.JJ(m)+p)*1E3;q.Vi=h;q.durationMs=p-q.startTimeMs;q.HB=q.durationMs;q.qn<=q.Vi&&d.push(q)}na.j)return!1;if(EWa(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.HB=b.durationMs,b.Vi=Math.max(b.Vi,c.Vi),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.qn,h=b.Vi;b.formatId=c.formatId;b.durationMs=c.durationMs;b.qn=c.qn;b.HB=c.durationMs;b.Vi=c.Vi;c.formatId=a;c.startTimeMs=e;c.IB=e;c.durationMs=d-e;c.HB=c.durationMs; c.qn=f;c.Vi=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.HB=b.durationMs);return!1}; EWa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.dc||b.lmt===c.lmt}; IWa=function(a,b,c){if(a.logger){for(var d=[],e=0;e=b+a.C}),d=a.oy.some(function(e){return e.info.Pa===b}); return c||d}; IX=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.ge;this.D=null;this.C=0}; LWa=function(a,b,c){if(!a.policy.K){a=b.j.index;var d=b.B.Pa;a.jo(d)||c&&c.Pa===d?(b.G=!a.jo(d),b.qa=!a.jo(d)):(b.G=!0,b.qa=!0)}}; NWa=function(a){var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);MWa(a.videoTrack);MWa(a.audioTrack);a.policy.K||xIa(a.manifest);a.manifest.isManifestless&&!a.policy.K&&(a.B=!0,a.C=0);var c=a.ya;c.policy.Bb||(c.currentTime=b);a.G=!0;a.D=new vG;return a.D}; PWa=function(a,b,c,d,e){var f=a.policy.qc?e:void 0;if(!b.j.jg()){if(!(f=c===0||!!b.C.length&&b.C[0]instanceof JX))a:{if(b.C.length&&(f=b.C[0],f instanceof KX&&f.rh&&f.zi)){f=!0;break a}f=!1}f||a.policy.C||LX(b);return c}var h=MX(b,c);if(!isNaN(h))return h;if(a.ya.MQ(c*1E3))return c;e.WA||(b.il(),a.ya.kH(!0));return d&&(a=eG(d.oe(),c),!isNaN(a))?(NX(b,a+OWa,f),c):NX(b,c,f)}; SWa=function(a,b,c,d){if(a.policy.K)!d||!a.B&&a.policy.Jb||g.Ge(function(){OX(a)}); else{if(a.isSeeking()&&a.j){var e=QWa(a,b,c);if(e!==-1){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.Ge(function(){a.ya.oa("seekreason",{reason:"behindMinSq",tgt:e});RWa(a,e)}); return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.VA||!a.B;MX(a.videoTrack,a.j)>=0&&MX(a.audioTrack,a.j)>=0&&f?((a.videoTrack.G||a.audioTrack.G)&&a.ya.oa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.Ge(function(){if(a.B||!a.policy.Jb)OX(a);else{var h=b.startTime,l=b.duration;if(!a.policy.K){var m=c?a.videoTrack.G:a.audioTrack.G,n=a.videoTrack.K!==-1&&a.audioTrack.K!==-1,p=a.j>=h&&a.j432E3&&yIa(a.manifest);a.C&&(e=a.C,a.C=0);g.Ge(function(){a.policy.K||RWa(a,e,102)}); a.ya.oa("initManifestlessSync",{st:e,ost:e+a.ya.Ec(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.K&&RWa(a,e,102)}}}; SX=function(a,b){var c=this;this.Db=a;this.requestNumber=++TWa;this.j=this.now();this.qa=this.Z=NaN;this.Y=this.j;this.B=this.Nb=this.G=0;this.D=this.j;this.Ra=this.Ga=this.Va=this.Bc=this.qc=this.Ca=this.Na=this.C=0;this.K=void 0;this.bb=0;this.N=this.isActive=!1;this.zb=this.rb=0;this.fd={uoa:function(){return c.Jp}}; this.Oc=b.Oc;this.snapshot=hJa(this.Oc);this.policy=this.Oc.Ra;this.Ar=!!b.Ar;this.hv=b.hv;b.sJ&&(RX||(RX=iL("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.K=new Uint8Array(2048));var d;this.Jp=(d=b.Jp)!=null?d:!1;eJa(this.Oc)}; UWa=function(a){a.Va=Math.max(a.Va,a.G-a.qc);a.Ga=Math.max(a.Ga,a.Y-a.Bc);a.Ca=0}; TX=function(a,b,c){fJa(a.Oc,b);if(a.K){if(a.bb+20>a.K.length){var d=new Uint8Array(a.K.length*2);d.set(a.K);a.K=d}VWa(a,Math.ceil(b)-Math.ceil(a.Y));VWa(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.G/1024)))}d=b-a.Y;var e=c-a.G;a.Nb=e;a.Ra=Math.max(a.Ra,e/(d+.01)*1E3);a.Y=b;a.G=c;a.Ca&&c>a.Ca&&UWa(a)}; VWa=function(a,b){for(;b>31;)a.K[a.bb++]=RX[(b&31)+32],b>>=5;a.K[a.bb++]=RX[b]}; WWa=function(a){return a.K?g.fL(a.K.subarray(0,a.bb)):""}; XWa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; UX=function(a,b){SX.call(this,a,b);this.Bb=this.Kb=!1;this.Fa=this.ra=Infinity;this.Ka=NaN;this.Jb=!1;this.Xa=NaN;this.Tb=0;this.aA=b.aA||1;this.oS=b.oS||this.aA;this.Gl=b.Gl;this.Pa=b.Pa;this.hh=b.hh;YWa(this);this.RS(this.j);this.Wa=(this.Xa-this.j)/1E3}; ZWa=function(a,b,c){a.Ar||(b=Math.max(b,.01),rP(a.Oc,b,c,b))}; $Wa=function(a,b){return b?a.yK()&&!a.policy.j?!0:b>=2048||a.policy.j&&a.N:!1}; aXa=function(a){return(a.D-a.j)/1E3}; YWa=function(a){a.Ka=a.j+a.snapshot.delay*1E3;a.Jb=!1}; dXa=function(a,b){if(a.Gl&&a.Pa!==void 0&&a.hh!==void 0){var c=Math,d=c.min,e=a.ra;var f=a.Gl;var h=a.j;if(bXa(f,a.Pa))f=b;else{var l=0;f.lj&&(l=.2);f=h+(f.Pj+l)*1E3}a.ra=d.call(c,e,f);c=Math;d=c.min;e=a.Fa;f=a.Gl;h=a.j;l=cXa(f,a.Pa,a.hh);l!==2&&(b=l?b:h+f.Pj*1E3,f.lj&&(b+=f.Pj*1E3));a.Fa=d.call(c,e,b);a.ra<=a.j?YWa(a):(a.Ka=a.ra,a.Jb=!0)}}; eXa=function(a,b){if(b+1<=a.totalLength){var c=aL(a,b);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!(b+c<=a.totalLength))return[-1,b];if(c===1)a=aL(a,b++);else if(c===2)c=aL(a,b++),a=aL(a,b++),a=(c&63)+64*a;else if(c===3){c=aL(a,b++);var d=aL(a,b++);a=aL(a,b++);a=(c&31)+32*(d+256*a)}else if(c===4){c=aL(a,b++);d=aL(a,b++);var e=aL(a,b++);a=aL(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),YK(a,c,4)?a=mBa(a).getUint32(c-a.C,!0):(d=aL(a,c+2)+256*aL(a,c+3),a=aL(a,c)+256*(aL(a,c+1)+ 256*d)),b+=5;return[a,b]}; VX=function(a){this.Db=a;this.j=new UK}; WX=function(a,b){this.info=a;this.callback=b;this.state=1;this.KB=this.nQ=!1;this.eg=null}; fXa=function(a){return g.Cl(a.info.jb,function(b){return b.type===3})}; gXa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Db=c;this.status=0;this.j=new UK;this.B=0;this.Ma=this.D=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.BB()}; 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.uu)();e.Db.Cs(f,e.B)},function(){},d.body||null)}; hXa=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)}; tKa=function(a,b){var c,d,e;return g.H(function(f){if(f.j==1){if(!b)return f.return(b);c=XX.Ss();d=new g.NK(a.B);return g.G(f,d.encrypt(b,a.j),2)}e=f.B;XX.Gr("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})}; yKa=function(a,b){var c,d,e;return g.H(function(f){if(f.j==1){if(!b)return f.return(b);c=XX.Ss();d=new g.NK(a.B);return g.G(f,d.decrypt(b,a.j),2)}e=f.B;XX.Gr("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})}; iXa=function(a,b){var c=this;this.j=a;this.Db=b;this.loaded=this.status=0;this.error="";a=KN(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new UK;this.Js().then(function(){c.Db.Mo()},function(d){c.error=""+d||"unknown_err"; c.Db.Mo()})}; kXa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Db=c;this.N=d;this.status=0;this.response=void 0;this.B=0;this.G=this.K=!1;this.errorMessage="";this.Y=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&e.status!==204)e.status=e.status||242,e.C=f.body.getReader(),e.Ma()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Db.Yu(),jXa(e)); else e.onDone();else e.onError(Error("null_response"))}; this.Z=function(f){var h=(0,g.uu)();e.Ma()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),jXa(e),e.Db.Cs(h,e.B)))}; this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()}; this.j=new UK;this.D=window.AbortController?new AbortController:void 0;this.start(a)}; jXa=function(a){a.C.read().then(a.Z,a.onError).then(void 0,au)}; lXa=function(a,b,c){var d=this;c=c===void 0?{}:c;this.Db=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.v(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.BB(f)}; a=IL(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",IL(function(f){d.Cg(f)}),!1)}; YX=function(a,b,c,d,e){if(JM(a.base))return new iXa(a,c);a=a.Ee();return d?VBa()?new gXa(a,b,c,e):new kXa(a,b,c,e):new lXa(a,c,e)}; ZX=function(a,b,c,d,e,f,h,l,m){m=m===void 0?!1:m;g.K.call(this);this.Db=a;this.policy=b;this.je=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.ly=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.fp(this.gda,this.policy.Qk,this)}; mXa=function(a){a.resource.Z=(0,g.uu)();a=$X(a);a.B=(0,g.uu)();a.started+=1}; nXa=function(a,b,c){a.timing.wR((0,g.uu)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;BN($X(a));if((b=a.ly)!=null&&(a=a.je.base,!((0,g.uu)()=400?(a.lastError="net.badstatus",!0):(e===void 0?0:e)?(a.lastError="ump.spsrejectfailure",!0):c||d!==void 0&&d?!1:(a.lastError=b===204?"net.nocontent":"net.connect",!0)}; $X=function(a){return CN(a.C,IM(a.je.base))}; oXa=function(a){var b=a.timing.jr();b.shost=IM(a.je.base);return b}; pXa=function(a){var b="";if(!a)return b;a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b+=c.videoCodec+"_"+c.maxWidth+"_"+c.maxHeight+"_"+c.maxFramerate+"_"+c.is10BitSupported+"_"+c.maxBitrateBps+";";return b}; qXa=function(a,b){return(a==null?void 0:a.maxWidth)>(b==null?void 0:b.maxWidth)||(a==null?void 0:a.maxHeight)>(b==null?void 0:b.maxHeight)}; rXa=function(a,b){for(var c=g.v(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),d.length!==0){g.Jb(d,function(l,m){return m.maxFramerate-l.maxFramerate}); for(var e=[d[0]],f=0,h=1;ha.j||c.push(d)}return c}; xXa=function(a,b,c){var d=uXa[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=vXa[a]||[]);b.push.apply(b,g.w(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.w(wXa[a]||[]))}; DXa=function(a,b){var c=qR(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.vk();if(d){if(!e.B){if(f&&cY)return cY;if(dY)return dY}}else if(dY&&!e.B)return dY;var h=[],l=[],m={},n=eY.concat(yXa);d&&(n=eY.concat(zXa));a.L("html5_early_media_for_drm")&&(n=n.concat(AXa),a.L("allow_vp9_1080p_mq_enc")&&n.push(BXa));var p=[].concat(g.w(CXa));c.Z&&(p[0]=["141"]);n=g.v(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.v(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u= hQ(t,f&&d);if(u&&u.video&&!(PF(u)&&!c.Fa&&u.video.j>c.qj)){var x=g.qD(a.U().experiments,"html5_drm_byterate_soft_cap");x>0&&ywa(u)&&u.ub>x||(r?(h.push(t),xXa(t,h,a)):(u=yM(c,u,e),u===!0?(r=!0,h.push(t),xXa(t,h,a)):m[t]=u))}}}p=g.v(p);for(n=p.next();!n.done;n=p.next())for(n=g.v(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=FJa(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!QF(q)&&!RF(q)))if(q=yM(c,q,e),q===!0){l.push(r);xXa(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B= !1,cY=dY=void 0),f?cY={video:h,audio:l}:dY={video:h,audio:l};dY={video:h,audio:l};e.B=!1;return dY}; HXa=function(a,b){var c={},d=a.ea,e=a.Da,f=d.getVideoData(),h=$L(0),l=d.getPlayerSize(),m=d.getVisibilityState();h&&(c.X9=h,c.lastManualDirection=WBa(),h=xna()||0,h>0&&(h=(e.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.uu)())-h,e.L("html5_use_date_now_for_local_storage")?h>0&&(c.timeSinceLastManualFormatSelectionMs=h):c.timeSinceLastManualFormatSelectionMs=h));c.aea=$L();h=e.L("html5_use_streamer_bandwidth_for_low_latency_live")&&f.isLowLatencyLiveStream;if(e.schedule.Fa&&!h){var n;h= e.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!((n=a.Te)==null||!n.Bj):!1;c.d7=xP(e.schedule,!h)}n=g.XP();var p=g.HF.medium,q=Math.floor(p*16/9);h=f.vk()?p:q;p=f.vk()?q:p;c.n7=Math.max(l.width*n,h);c.m7=Math.max(l.height*n,p);c.visibility=m;c.qea=tw();c.Q7=g.SJ(d.pc().provider)*1E3;e.L("html5_sabr_support_quality_constraints")&&a.Kz&&(c.Kz=a.Kz);e.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(c.sabrLicenseConstraint=a.sabrLicenseConstraint);if(e.L("html5_enable_platform_backpressure_with_sabr")){if(c.Tw= 3,a.fH||(c.Tw^=1),!a.iH||oR(f))c.Tw^=2}else{if(e.L("html5_onesie_media_capabilities")||e.L("html5_enable_server_format_filter"))c.Tw=3;e.L("html5_onesie_audio_only_playback")&&oR(f)&&(c.Tw=1)}l=f.rf?f.rf:qR(f);if(e.L("html5_onesie_media_capabilities")){m=e.G;n=[];h=[];p=e.L("html5_shorts_onesie_mismatched_fix");f=f.vk();var r=eY.concat(yXa);p&&(r=eY.concat(zXa));e.L("html5_early_media_for_drm")&&(r=r.concat(AXa),e.L("allow_vp9_1080p_mq_enc")&&r.push(BXa));q=[].concat(g.w(CXa));l.Z&&(q[0]=["141"]); r=g.v(r);for(var t=r.next();!t.done;t=r.next()){t=g.v(t.value);for(var u=t.next();!u.done;u=t.next()){u=u.value;var x=hQ(u,f&&p);if(x&&x.video){var B=g.qD(e.experiments,"html5_drm_byterate_soft_cap");if(!(B>0&&ywa(x)&&x.ub>B)&&yM(l,x,m)===!0){n.push({videoCodec:EXa[LF[u]],maxWidth:x.video.width,maxHeight:x.video.height,maxFramerate:x.video.fps});break}}}}f=g.v(q);for(p=f.next();!p.done;p=f.next())for(p=g.v(p.value),q=p.next();!q.done;q=p.next())if(q=q.value,(r=FJa(q))&&r.audio&&(e.L("html5_onesie_51_audio")|| !QF(r)&&!RF(r))&&yM(l,r,m)===!0){h.push({audioCodec:FXa[LF[q]],numChannels:r.audio.numChannels});break}c.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:h}}var E;if((E=a.Te)==null?0:E.C&&E.tp){h=e.G;b&&b("ssap",{clientCapabilities:AM(h)});E=[];m=[];n=new Map;if((f=h.j)&&f.size>0)for(f=g.v(f.values()),p=f.next();!p.done;p=f.next())q=p.value,q.Fh?m.push({audioCodec:FXa[q.sb],numChannels:q.numChannels,spatialCapabilityBitmask:GXa[q.sb]}):(r=EXa[q.sb],p={videoCodec:r,maxWidth:q.maxWidth|| 0,maxHeight:q.maxHeight||0,maxFramerate:q.maxFramerate||0,is10BitSupported:q.CF||!1},q.maxBitrateBps&&(p.maxBitrateBps=q.maxBitrateBps,t=hQ(q.itag),u=void 0,((u=t)==null?0:u.video)&&yM(l,t,h)===!0&&(t=t.ub*8,t>p.maxBitrateBps&&(p.maxBitrateBps=t))),q=r+"_"+q.CF,r=n.get(q)||[],r.push(p),n.set(q,r));E=rXa(E,n);if(b){h="";if(n)for(f=g.v(n.keys()),p=f.next();!p.done;p=f.next())p=p.value,h+=p+"-"+pXa(n.get(p))+";";n=h;h=pXa(E);f="";if(m)for(p=g.v(m),q=p.next();!q.done;q=p.next())q=q.value,f+=q.audioCodec+ "_"+q.numChannels+"_"+q.maxBitrateBps+"_"+q.spatialCapabilityBitmask+";";b("ssap",{vfcm:n,vfcam:h,afcam:f})}c.mediaCapabilities={videoFormatCapabilities:E,audioFormatCapabilities:m,hdrModeBitmask:3}}var F;if((F=a.Te)==null?0:F.C){c.Qo=l.Qo;var I;c.qj=(I=a.Te)==null?void 0:I.qj}e.Tf&&(c.N7=e.Tf);c.BS=a.tE;c.Gy=a.Gy;if(e.L("html5_fix_time_since_last_seek_reporting")?a.hq!==void 0:a.hq)c.sea=(0,g.uu)()-a.hq;a.isPrefetch&&e.L("html5_report_prefetch_requests")&&(c.isPrefetch=!0);eP||(c.A$=!0);b=uP(e.schedule)* 1E3;b>0&&(c.s7=b);var O;((O=a.Te)==null?0:O.Sv)&&a.Rx&&a.Rx0?a:e.schedule.interruptions[0]||0);return c}; fY=function(a,b,c,d,e,f){var h={};b&&(h.Aca={MB:b});if(!a)return h;h.playbackCookie=c==null?void 0:c.playbackCookie;e&&(h.HS=e);h.MM=[];h.fM=[];if(g.fR(a)&&a.sabrContextUpdates.size>0)for(b=g.v(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())IXa(h,c.value,d);cR(a)&&!g.fR(a)&&a.L("html5_enable_sabr_request_pipelining")&&f&&IXa(h,f,d);a.UA&&(h.Sda=a.UA);d=a.U().j;h.clientInfo={clientName:JXa[d.c.toUpperCase()]||0};d.cbrand&&(h.clientInfo.deviceMake=d.cbrand);d.cmodel&&(h.clientInfo.deviceModel= d.cmodel);d.cver&&(h.clientInfo.clientVersion=d.cver);d.cos&&(h.clientInfo.osName=d.cos);d.cosver&&(h.clientInfo.osVersion=d.cosver);a.jp&&(h.jp=a.jp);return h}; IXa=function(a,b,c){var d=b.type||0;(c==null?0:c.has(d))?a.fM.push(b):a.MM.push(d)}; KX=function(a,b,c,d,e,f){var h=f===void 0?{}:f;var l=h.NG===void 0?[]:h.NG;var m=h.JH===void 0?!1:h.JH;var n=h.Hw===void 0?0:h.Hw;var p=h.poToken===void 0?"":h.poToken;var q=h.ly===void 0?void 0:h.ly;var r=h.WG===void 0?"":h.WG;var t=h.rh===void 0?0:h.rh;var u=h.zi===void 0?new Uint8Array(0):h.zi;var x=h.yM===void 0?!1:h.yM;f=h.lq===void 0?0:h.lq;h=h.MB===void 0?void 0:h.MB;WX.call(this,b,e);var B=this;this.policy=a;this.logger=new g.LO("dash/request");this.Lz=this.Ag=0;this.N1=!1;this.Tr=this.Xp= null;this.aZ=!1;this.zi=this.rh=null;this.KM=this.Z2=!1;this.QI=null;this.lq=this.Qp=0;this.Bu=!1;this.fd={xd:function(F){B.xd(F)}, boa:function(){return B.eg}, ppa:function(F){B.eg=F}, opa:function(F){B.Ag=F}, npa:function(F){B.Bd.lastError=F}, aQ:function(){return B.xhr}}; this.timing=new UX(this,c);this.JH=m;this.rh=t;this.zi=u;this.je=g.YN(this.info,this.policy,d);this.je.set("rn",this.Sp().toString());this.je.set("rbuf",(n*1E3).toFixed().toString());this.JH&&this.je.set("smb","1");this.policy.Ul&&p&&this.je.set("pot",p);r&&this.je.set("bbs",r);this.policy.useUmp&&!JM(this.je.base)&&(this.Ol=new VX(this),this.je.set("ump","1"),this.je.set("srfvp","1"));if(a=this.policy.gt?this.policy.bD&&!isNaN(this.info.hh)&&this.info.hh>this.policy.QD?!1:!0:!1)b=null,this.policy.LD&& this.policy.hk?b=[1]:x&&(b=[]),b!=null&&(this.policy.SC&&b.push(2),this.je.set("defsel",b.join(",")));this.Bd=new ZX(this,this.policy,this.je,this.info.resource,this.timing,this.logger,d,q);this.NG=l||null;this.KB=KXa(this);mXa(this.Bd);d=void 0;if(this.policy.KD||this.Ol||this.policy.Fa)d={method:"POST"},l=(0,g.gY)([120,0]),q={},this.policy.VC&&h&&(h=fY(void 0,h),q.zC=h),this.policy.jw&&this.zi&&(q.videoPlaybackUstreamerConfig=this.zi),this.policy.Fa&&(h=this.info.D)&&Object.assign(q,h),Object.keys(q).length> 0?d.body=g.BL(q,g.jM):d.body=l;if(this.rh&&this.zi){this.je.set("iwts","1");d={method:"POST"};h={Gy:this.rh*1E3};var E;l=(E=this.info.D)==null?void 0:E.dn;E=g.BL({yr:h,dn:l||void 0,videoPlaybackUstreamerConfig:this.zi},g.jM);d.body=E}try{this.xhr=YX(this.je,this.policy.N,this.timing,a,d),this.Bd.B.start(),f&&(this.Qu=new g.fp(this.p_,f,this),this.Qu.start(f+(this.timing.Oc.K.fh()||0)*1E3)),this.policy.fI&&XWa(this.timing,this.Ee()),this.logger.debug(function(){return"Sent, itag="+B.je.get("itag")+ " seg="+B.info.jb[0].Pa+" range="+B.je.get("range")+" time="+Math.round(B.info.jb[0].Ve)+"-"+Math.round(g.nb(B.info.jb).Mf)+" rtp="+(B.timing.VJ()-Date.now()).toFixed(0)}),g.Ge(function(){})}catch(F){LXa(this,F,!0)}}; KXa=function(a){if(!(XN(a.info)&&a.info.Jp()&&a.policy.ke&&a.NG)||a.info.resource.B>=2||$L()>0||!bCa())return!1;var b=a.je.get("aitags");if(!b)return!1;b=Wd(b).split(",");for(var c=[],d=g.v(a.NG),e=d.next();!e.done;e=d.next())e=e.value,g.rb(b,e)&&c.push(e);if(!c.length)return!1;a.je.set("altitags",g.Vd(c.join(",")));return!0}; LXa=function(a,b,c){c=c===void 0?!1:c;g.Jx(b);a.Bd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.Ge(function(){aY(a.Bd)}):aY(a.Bd)}; MXa=function(a){if(a.policy.JB)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.XE();c=!c||c<=a.policy.fq;return(!a.xhr.AC()||!b||b.indexOf("text/plain")!==-1)&&c}; NXa=function(a,b){var c=dL(b);return cE(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""}; OXa=function(a,b){a.timing.N=!0;if(a.policy.Lc){var c;(c=a.Qu)==null||c.stop()}NW(a.eg,b,!1)}; PXa=function(a,b){a.info=b;if(a.eg){var c=a.eg;b=b.jb;(b.length!==c.jb.length||b.lengtha.G&&(a.G=NaN,a.K=NaN);if(a.j&&a.j.Pa===b){d=a.j;f=d.Zg;var h=e.Uu(f);a.oa("sdai",{onqevt:f.event,sq:b,gab:h});if(h)f.event!=="predictStart"?d.uF?mY(a,4,"cue"):(a.G=b,a.K=c,a.oa("sdai",{joinad:a.B,sg:a.G,st:a.K.toFixed(3)}),a.Y=Date.now(),mY(a,2,"join"),e.dK(d.Zg)):(a.policy.G?(a.C=Math.floor(c-f.j/1E3),a.oa("sdai",{onpred:c,est:a.C})):(a.D=b+ Math.max(Math.ceil(-f.j/5E3),1),a.oa("sdai",{onpred:b,est:a.D})),a.Y=Date.now(),mY(a,3,"predict"),e.dK(d.Zg));else if(a.B===1){var l;((l=a.N)==null?0:l.eP(c))?(iYa(a.ya,c,c,b),mY(a,4,"sk2had")):mY(a,5,"nogab")}else f.event==="predictStart"&&(a.policy.G&&a.C>0?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.oa("sdai",{updateSt:b,old:a.C}),a.C=b):a.D>0&&(b+=Math.max(Math.ceil(-f.j/5E3),1),a.D!==b&&(a.oa("sdai",{updateSt:b,old:a.D}),a.D=b)))}else a.B===1&&mY(a,5,"noad")}; lYa=function(a,b,c){if(a.B===1||a.B===2)return!1;if(a.B!==0&&b===a.audioTrack){if(a.policy.G){a=a.videoTrack;var d;return!((d=a.Z)==null||!KWa(d,c))||jYa(a.D,c)}d=kYa(a.videoTrack);if(c>(d?d.Pa:-1))return!1}return!0}; mYa=function(a,b,c){return(c<0||c===a.G)&&!isNaN(a.K)?a.K:b}; nYa=function(a,b){if(a.j){var c=a.j.Zg.Ch-(b.startTime+a.Z-a.j.Zg.startSecs);c<=0||(c=new XM(a.j.Zg.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.Zg.context,a.j.Zg.identifier,"stop",a.j.Zg.j+b.duration*1E3),a.oa("cuepointdiscontinuity",{segNum:b.Pa}),lY(a,c,b.Pa))}}; mY=function(a,b,c){a.B!==b&&(a.oa("sdai",{setsst:b,old:a.B,r:c}),a.B=b)}; nY=function(a,b,c,d){(d===void 0?0:d)?mY(a,1,"seek"):b>0&&Math.abs(b-c)>=5&&a.B===4&&mY(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))}; oY=function(a,b,c){this.audio=a;this.video=b;this.reason=c}; pY=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0}; qY=function(a,b,c){g.K.call(this);this.policy=a;this.D=b;this.oa=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1}; rY=function(a,b,c){if(c===void 0?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.uu)()+c;a.C.set(b.info.id,c)}; sY=function(a){for(var b=g.v(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;d<(0,g.uu)()&&a.C.delete(c)}return a.C}; oYa=function(a){return a.K&&sY(a).size>0}; tY=function(a,b){a.j!==b&&(a.j=b,a.B=!0)}; pYa=function(a,b){if(b){var c=g.pb(a.D.j,function(f){return f.id===b}); if(a.policy.Sj){var d,e;a.oa("iaudio",{id:b,sid:(d=c)==null?void 0:(e=d.Xb)==null?void 0:e.id})}}c||(c=g.pb(a.D.j,function(f){var h;return!((h=f.Xb)==null||!h.isDefault)})); return c}; qYa=function(a,b,c,d,e,f){var h=this;f=f===void 0?[]:f;this.ya=a;this.Ca=b;this.policy=c;this.manifest=d;this.K=e;this.fb=f;this.logger=new g.LO("dash/abr");this.j=RQ;this.C=this.N=null;this.Y=-1;this.Na=!1;this.nextVideo=this.B=null;this.D=[];this.Va=new Set;this.Ka={};this.Xa=new oP(1);this.Z=0;this.Wa=this.ra=this.qa=!1;this.Ga=0;this.bb=!1;this.Fa=new Set;this.Ra=!1;this.fd={J1:function(){uY(h)}}; this.G=new qY(this.policy,e,function(l,m){h.ya.oa(l,m)})}; vYa=function(a,b,c){vY(a,b);rYa(a,c);a.N=a.B;sYa(a);tYa(a);a.C=a.nextVideo;a.N=a.B;return uYa(a)}; yYa=function(a,b){if(wYa(a,b))return null;if(b.reason==="m"&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+tM(b)}),vY(a,b),a.Z=a.D.length-1,uY(a),wY(a),a.ra=a.ra||a.C!==a.nextVideo,a.C=a.nextVideo,new oY(a.B,a.C,b.reason); b.reason==="r"&&(a.Y=-1);vY(a,b);wY(a);if(b.reason==="r"&&a.nextVideo===a.C)return new oY(a.B,a.nextVideo,b.reason);xYa(a);return null}; zYa=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new oY(a.N,a.C,c?"t":"m")}; AYa=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,uYa(a)}else a.Wa=a.N!==b,a.N=b;return null}; BYa=function(a,b){if(b.j.info.video&&b.Se){var c=(b.Sb+b.B)/b.duration,d=b.j.info.ub;c&&d&&(a.Xa.Xj(1,c/d),a.policy.B&&c/d>1.5&&a.ya.oa("overshoot",{sq:b.Pa,br:c,max:d}))}}; xY=function(a,b,c){rY(a.G,b,c===void 0?!1:c);a.Y=-1;vY(a,a.j)}; yY=function(a,b){return new oY(a.N,a.C,b||a.j.reason)}; xYa=function(a){if(a.C&&a.nextVideo&&zY(a,a.C.info)a.policy.qj,l=e<=a.policy.qj?PF(d):NF(d);if(!f||h||l)c[e]=d}return c}; vY=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.uu)();c=g.ln(c,function(r){if(r.ub>this.policy.ub)return!1;var t=this.manifest.j[r.id];return sY(this.G).get(r.id)>d?!1:t.resource.B>4||t.K>4?(this.logger.debug(function(){return"Remove "+$F(r)+"; 4 load failures"}),!1):this.Fa.has(+r.itag)?!1:!0},a); oYa(a.G)&&(c=g.ln(c,function(r){return r.video.width<=854&&r.video.height<=480}))}c.length||(c=a.K.videoInfos); var e=g.ln(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.pb(c,function(r){return r.id===a.G.j}); f?e=[f]:tY(a.G,"")}f=b.reason==="m"||b.reason==="s";a.policy.iD&&FX&&g.lu&&(!f||b.j<1080)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)})); if(e.length>0)if(lG()){var h=CYa(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.sb===h[r.video.j].sb})}else{var l,m,n=(l=e[0])==null?void 0:(m=l.video)==null?void 0:m.j; if(n){b=e.filter(function(r){return!!r&&!!r.video&&r.video.j===n}); var p=CYa(a,b)[n].sb;e=e.filter(function(r){return!!r&&!!r.video&&r.sb===p})}}e.length||(e=[c[0]]); e.sort(function(r,t){return zY(a,r)-zY(a,t)}); c={};for(b=1;bc.lO.video.width?(g.tb(e,b),b--):zY(a,c.RN)*a.policy.Z>zY(a,c.lO)&&(g.tb(e,b-1),b--);var q=e[e.length-1];a.bb=!!a.C&&!!a.C.info&&a.C.info.sb!==q.sb;a.logger.debug(function(){return"Constraint: "+tM(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+$F(q)}); a.D=e;a.Va.clear();c=!1;for(b=0;b=1080&&(c=!0);ZOa(a.policy,q,a.manifest.dc)}; rYa=function(a,b){if(a.policy.Sj){var c=pYa(a.G,b);b||c||(c=DYa(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.pb(a.K.j,function(d){return!!d.Xb&&d.Xb.isDefault}))||(c=DYa(a)),c=c||a.K.j[0]; a.B=a.manifest.j[c.id];uY(a)}; EYa=function(a,b){for(var c=0;c+1d}; uY=function(a){if(!a.B||!a.policy.D&&!a.B.info.Xb){var b=a.K.j;a.B&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j)); a.B=a.manifest.j[b[0].id];if(b.length>1){var c=!1;if(c=a.policy.Xc?!0:a.j.isLocked()?a.j.j<240:EYa(a,a.B))a.B=a.manifest.j[g.nb(b).id]}}}; wY=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=a.j.j<=360?a.manifest.j[a.D[0].id]:a.manifest.j[g.nb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+$F(a.nextVideo.info)}); else{for(var b=Math.min(a.Z,a.D.length-1),c=HX(a.Ca),d=zY(a,a.B.info),e=c/a.policy.Y-d;b>0&&!(zY(a,a.D[b])<=e);b--);for(var f=c/a.policy.Z-d;b=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+$F(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+tM(a.j)}); a.Z=b}}; sYa=function(a){var b=a.policy.Y,c=HX(a.Ca),d=c/b-zY(a,a.B.info);b=g.qb(a.D,function(e){return zY(this,e)1E3&&(b=c));return b}; HYa=function(a){var b=a===void 0?{}:a;a=b.lj===void 0?!1:b.lj;var c=b.hk===void 0?!1:b.hk;b=b.gt===void 0?!1:b.gt;return a?b?3:2:c?-1:1}; JYa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ga=c;this.D=this.B=0;this.Gf=null;this.qa=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new vG;this.ra=this.Ca=!1;this.fd={Vna:function(){return d.C}, sna:function(){return d.chunkSize}, mna:function(){return d.N}, lna:function(){return d.K}}; (b=IYa(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.MC,this.C=0,this.N=g.ow(16),this.K=g.ow(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new hXa(this.N,this.K))}; IYa=function(a){if(a.policy.rf&&a.policy.PC)for(var b=g.v(a.policy.rf),c=b.next(),d={};!c.done;d={FO:void 0,WO:void 0},c=b.next())if(c=g.Vr(c.value),d.FO=+c.clen,d.WO=+c.csz,d.FO>0&&d.WO>0&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.FO,a.csz=d.WO,a.ck=c.ck,a.civ=c.civ,a}; AY=function(a){return!!a.Gf&&ON(a.Gf)}; OYa=function(a,b){if(!AY(a)&&!a.Ma()){if(!(a.Ca||(a.Ca=!0,a.C>0))){var c=KYa(a);c=IQ(a.policy.D,a.j.info,BY(a),c,a.policy.bb);LYa(a,c)}if(b.info.type===1){if(a.Gf){CY(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=LN(0,b.j.totalLength)}else if(b.info.type===2)a.Gf&&a.Gf.type===1||CY(a,Error("Woffle: Index before init")),a.indexRange=LN(a.initRange.end+1,b.j.totalLength);else if(b.info.type===3){if(!a.Gf){CY(a,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(a.Gf.type===3&&!RN(a.Gf,b.info)&&(a.Y=[],b.info.Pa!==SN(a.Gf)||b.info.Sb!==0))return;if(b.info.Se){c=g.v(a.Y);for(var d=c.next();!d.done;d=c.next())MYa(a,d.value);a.Y=[]}else{a.Y.push(b);a.Gf=b.info;return}}else{CY(a,Error("Woffle: Unexpected slice type"));return}a.Gf=b.info;MYa(a,b);NYa(a)}}; MYa=function(a,b){var c=0,d=ZK(b.j);if(a.D=d.length)return;if(c<0)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c0){var h=d.getUint32(c+28);f+=h*16+4}var l=d.getUint32(c+f-4);try{var m=TYa(b.subarray(c+f,c+f+l));if(m!==null){var n=m;break a}}catch(p){}}c+=e}n=null;break a}catch(p){n=null;break a}n=void 0}if(n!=null)for(b=hg(Eg(n,7)),b==null||a.Le||(a.cryptoPeriodIndex=b),b=hg(Eg(n,10)),b!=null&&b>0&&!a.Le&&(a.j=b),n=kea(n, 2,zg(n.gb)&34?lea:mea,2),n=g.v(n),b=n.next();!b.done;b=n.next())a.C.push(g.Xe(ff(b.value),4))}; VYa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Xe(a.initData):""+a.cryptoPeriodIndex}; FY=function(a,b,c){var d=c===void 0?{}:c;c=d.videoDuration===void 0?0:d.videoDuration;var e=d.QG===void 0?void 0:d.QG;d=d.pK===void 0?!1:d.pK;this.videoId=a;this.status=b;this.videoDuration=c;this.QG=e;this.pK=d}; WYa=function(a,b,c,d,e){this.videoId=a;this.rP=b;this.B=c;this.bytesDownloaded=d;this.j=e}; GY=function(a){this.j=a;this.offset=0}; XYa=function(a){if(a.offset>=a.j.totalLength)throw Error();return aL(a.j,a.offset++)}; YYa=function(a,b){b=b===void 0?!1:b;var c=XYa(a);if(c===1){b=-1;for(c=0;c<7;c++){var d=XYa(a);b===-1&&d!==255&&(b=0);b>-1&&(b=b*256+d)}return b}d=128;for(var e=0;e<6&&d>c;e++)c=c*256+XYa(a),d*=128;return b?c:c-d}; ZYa=function(a){try{var b=YYa(a,!0),c=YYa(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}}; $Ya=function(a){for(var b=new GY(a),c=-1,d=0,e=0;!d||!e;){var f=ZYa(b),h=f.id;f=f.size;if(h<0)return;if(h===176){if(f!==2)return;d=b.Gm()}else if(h===186){if(f!==2)return;e=b.Gm()}h===374648427?c=b.Gm()+f:h!==408125543&&h!==174&&h!==224&&b.skip(f)}b=$K(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new UK([b]);VK(d,a);return d}; bZa=function(a,b,c){var d=this;this.ya=a;this.policy=b;this.K=c;this.logger=new g.LO("dash");this.B=[];this.j=null;this.Ca=-1;this.Y=0;this.Fa=NaN;this.qa=0;this.C=NaN;this.Z=this.Na=0;this.Wa=-1;this.Ka=this.G=this.D=this.Ga=null;this.Xa=this.Va=NaN;this.N=this.ra=this.bb=this.fb=null;this.rb=!1;this.Ra=this.timestampOffset=0;this.fd={wY:function(){return d.B}}; if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.bb&&a.oa("atv",{ap:this.policy.bb});this.N=new JYa(this.policy,e,function(h,l,m){HY(a,new FY(d.policy.D,2,{QG:new WYa(f,h,e.info,l,m)}))}); this.N.Z.promise.then(function(h){d.N=null;h===1?HY(a,new FY(d.policy.D,h)):d.ya.oa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); h instanceof DY&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.ya.oa("offlinenwerr",{em:l}),aZa(d),HY(a,new FY(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.ya.oa("dldbwerr",{em:l}),aZa(d),HY(a,new FY(d.policy.D,4,{pK:!0})))})}}; cZa=function(a){return a.B.length?a.B[0]:null}; jYa=function(a,b){return a.B.some(function(c){return c.info.Pa===b})}; jZa=function(a,b,c,d){d=d===void 0?0:d;if(a.G){var e=a.G.Sb+a.G.B;if(c.info.Sb>0)if(c.info.Pa===a.G.Pa&&c.info.Sb=0&&a.G.Pa>=0&&!RN(a.G,c.info))throw new g.Mt("improper_continuation",a.G.Rc(),c.info.Rc());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:RN(e,f)||(Math.abs(e.Ve-f.Ve)<=1E-6&&e.Pa===f.Pa?0:kEa(e,f)))||dZa(a,"d")}else if(c.info.Sb>0)throw new g.Mt("continuation_of_null",c.info.Rc());a.G=c.info; a.K=c.info.j;if(c.info.Sb===0){if(a.j)if(!a.ya.isOffline()||a.policy.Pk)a.ya.oa("slice_not_fully_processed",{buffered:a.j.info.Rc(),push:c.info.Rc()});else throw new g.Mt("slice_not_fully_processed",a.j.info.Rc(),c.info.Rc());IY(a);a.Na=d}else{if(a.Na&&d&&a.Na!==d)throw a=new g.Mt("lmt_mismatch",c.info.Pa,a.Na,d),a.level="WARNING",a;!c.info.j.Pm()&&a.D&&(d=c.info,e=a.D.ej,d.C="updateWithEmsg",d.Pa=e)}if(a.j){d=jO(a.j,c);if(!d)throw new g.Mt("failed_to_merge",a.j.info.Rc(),c.info.Rc());a.j=d}else a.j= c;a:{c=g.SF(a.j.info.j.info);if(a.j.info.type!==3){if(!a.j.info.Se)break a;a.j.info.type===6?eZa(a,b,a.j):fZa(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(a.Ca<=0&&a.Y===0){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+80))break;if(q!==408125543)if(q===524531317)l=!0,p>=0&&(e=h.Gm()+p,m=!0);else{if(l&&(q=== 160||q===163)&&(f<0&&(f=n),m))break;q===163&&(f=Math.max(0,f),e=h.Gm()+p);if(q===160){f<0&&(e=f=h.Gm()+p);break}h.skip(p)}}f<0&&(e=-1)}if(f<0)break;a.Ca=f;a.Y=e-f}if(a.Ca>d)break;a.Ca?(d=gZa(a,a.Ca),d.G&&hZa(a,d),eZa(a,b,d),iZa(a,d),a.Ca=0):a.Y&&(d=gZa(a,a.Y<0?Infinity:a.Y),a.Y-=d.j.totalLength,iZa(a,d))}}a.j&&a.j.info.Se&&(iZa(a,a.j),a.j=null)}; fZa=function(a,b){!b.info.j.Pm()&&b.info.Sb===0&&(g.SF(b.info.j.info)||b.info.j.info.Le())&&MEa(b);if(b.info.type===1)try{hZa(a,b),kZa(a,b)}catch(e){g.Jx(e);var c=TN(b.info);c.hms="1";a.ya.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.fQ(b);a.N&&OYa(a.N,b);if(c.jg()&&a.policy.C)a:{a=a.ya.manifest;b=b.info.clipId;c=UF(c.info,a.dc);if(b){var d=dFa(a,c);if(a.Ra[d])break a;a.Ra[d]=b}a.Na.push(c)}}; aZa=function(a){var b;(b=a.N)==null||b.dispose();a.N=null}; lZa=function(a){var b=a.B.reduce(function(c,d){return c+d.j.totalLength},0); a.j&&(b+=a.j.j.totalLength);return b}; mZa=function(a){if(a.ra&&!a.policy.uq){var b=a.ya;b.manifest.isManifestless&&GO(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;IY(a)}; gZa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=HEa(c,b);a.j=c[1];return c[0]}; hZa=function(a,b){var c=iO(b);if(OF(b.info.j.info)&&b.info.j.info.video.primaries==="bt2020"){var d=new lN(c);nN(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,c.getUint8(d)===129&&c.getUint8(d+1)===1&&c.setUint8(d+1,9))}d=b.info.j.info;NF(d)&&!OF(d)&&(d=iO(b),(new lN(d)).xo(),rN([408125543,374648427,174,224],21936,d));b.info.j.info.zg()&&(d=b.info.j,d.info&&d.info.video&&d.info.video.projectionType==="MESH"&&!d.B&&(g.SF(d.info)?d.B=QDa(c):d.info.Le()&&(d.B=XDa(c))));b.info.j.info.Le()&& b.info.zg()&&(c=iO(b),(new lN(c)).xo(),rN([408125543,374648427,174,224],30320,c)&&rN([408125543,374648427,174,224],21432,c));if(a.policy.dD&&b.info.j.info.Le()){c=iO(b);var e=new lN(c);if(nN(e,[408125543,374648427,174,29637])){d=qN(e,!0);e=e.start+e.pos;for(var f=0;f=JY(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&nZa(c)&&(b=a.Ga,TW?(l=KEa(c),h=1/l,l=JY(a,l),b=JY(b)+h-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,PDa(iO(c),b))}else{h=!1;a.D||(MEa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.ej,f.C="updateWithEmsg",f.Pa=d,f=c.B,f.C&&(d=a.K.index,d.B=!f.C,d.C="emsg"),f=c.info.j.info,d=iO(c),g.SF(f)?jN(d,1701671783):f.Le()&&rN([408125543],307544935,d)));a:if((f=mO(c,a.policy.Nb))&&LEa(c))l=oZa(a,c),a.Z+=l,f-=l,a.qa+=f,a.C=a.policy.Tk?a.C+f:NaN;else{if(a.policy.mw){if(d=m=a.ya.rr(kO(c),1),a.C>=0&&c.info.type!==6){if(a.policy.Tk&&isNaN(a.Va)){g.Kx(new g.Mt("Missing duration while processing previous chunk", c.info.Rc()));a.ya.isOffline()&&!a.policy.Pk||pZa(a,c,d);dZa(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.Ka?a.Ka.Pa:-1,t=a.Xa,u=a.Va,x=a.policy.Np&&n>a.policy.Np,B=Math.abs(p)>10,E=Math.abs(a.C-d)<1E-7;if(Math.abs(p)>1E-4){a.Ra+=1;var F=(e=a.D)==null?void 0:$M(e);e={audio:""+ +a.Fh(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(n*1E3).toFixed(),segDrift:(p*1E3).toFixed(),skipRewrite:""+ +(x||B)};if(F==null?0:F.length)e.adCpn=F[0];a.ya.handleError("qoe.avsync", e);a.Wa=q}x||B||E||(d=a.C);e=oZa(a,c,m);f-=e;a.Z=n+e;a.policy.B&&(p&&!E||e)&&(n=(l=a.D)==null?void 0:$M(l),a.ya.oa("discontinuityRewrite",{adCpn:(n==null?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(p*1E3).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;pZa(a,c,d)&&(a.qa+=f,a.C=d+f,a.policy.Bp&&a.Ra>=a.policy.Bp&&(a.Ra=0,a.ya.Fq({resetForRewrites:"count"})))}a.Ka= c.info;a.Va=lO(c);c.C>=0&&(a.Xa=c.C);if(h&&a.D){h=qZa(a,!0);UN(c.info,h);a.j&&UN(a.j.info,h);b=g.v(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.K&&l.Pa!==((e=a.D)==null?void 0:e.ej)||UN(l,h);(c.info.Se||a.j&&a.j.info.Se)&&c.info.type!==6||(a.ra=h,b=a.ya,b.manifest.isManifestless&&rZa(b,h,null,!!a.K.info.video),a.policy.jf||sZa(a))}}kZa(a,c);a.timestampOffset&&JEa(c,a.timestampOffset)}; iZa=function(a,b){if(b.info.Se){a.fb=b.info;if(a.D){var c=a.D,d=qZa(a,!1),e=null;if(a.D.uF()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=$M(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.v(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.v(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n= m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.v(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new SYa(e,f,h,l,g.LDa(c),g.MDa(c))}a.ya.WR(a.K,d,e);a.ra||a.policy.jf||sZa(a);a.ra=null}IY(a)}a.N&&OYa(a.N,b);if(c=a.Po())if(c=jO(c,b,a.policy.Wl)){a.B.pop();a.B.push(c);return}a.B.push(b)}; IY=function(a){a.j=null;a.Ca=-1;a.Y=0;a.D=null;a.Fa=NaN;a.qa=0;a.ra=null}; dZa=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.Ka?a.Ka.Pa:-1};a.C=NaN;a.Z=0;a.Wa=-1;a.Ka=null;a.Xa=NaN;a.Va=NaN;a.bb=null;a.ya.oa("mdstm",b)}; kZa=function(a,b){if(a.K.info.me){if(b.info.j.info.Le()){var c=new lN(iO(b));if(nN(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=qN(c,!0);c=d!==16?null:vN(c,d)}else c=null;d="webm"}else b.info.G=QYa(iO(b)),c=RYa(b.info.G),d="cenc";c&&c.length&&(c=new EY(c,d),a.policy.MF&&g.SF(b.info.j.info)&&(d=VDa(iO(b)))&&(c.B=d),c.Le=b.info.j.info.Le(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.ya.gy(c))}}; sZa=function(a){var b=a.D,c=JDa(b);c&&(c.startSecs+=a.Fa,a.ya.VR(a.K,c,b.ej,b.uF()))}; qZa=function(a,b){var c,d=a.D;if(c=JDa(d))c.startSecs+=a.Fa;return new NM(d.ej,a.Fa,b?d.Oj:a.qa,d.ingestionTime,"sq/"+d.ej,void 0,void 0,b,c)}; pZa=function(a,b,c){if(!IEa(b,c))return b=TN(b.info),b.smst="1",a.ya.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Fa)&&(a.Fa=c);return!0}; oZa=function(a,b,c){var d=0;if(b.info.j.info.Le()&&!LEa(b))return 0;if(a.Ga&&!a.Fh()){var e=0;c&&g.SF(b.info.j.info)?e=c-a.C:b.info.j.info.Le()&&(e=a.Z);var f=b.info.Pa;c=mO(b,a.policy.Nb);var h=a.Ga;var l=h.Wa;h=h.Z;var m=Math.abs(h-e)>.02;if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.SF(b.info.j.info))PDa(iO(b),d);else if(b.info.j.info.Le()&&(f=e-h,!g.SF(b.info.j.info)&&(b.info.j.info.Le(),d=new lN(iO(b)),l=b.G?d:new lN(new DataView(b.info.j.j.buffer)),mO(b,!0)))){var n= f*1E3,p=xN(l);l=d.pos;d.pos=0;if(d.j.getUint8(d.pos)===160||yN(d))if(pN(d,160))if(qN(d,!0),pN(d,155)){if(f=d.pos,m=qN(d,!0),d.pos=f,n=n*1E9/p,p=sN(d),n=p+Math.max(-p*.7,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;f>=0;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=mO(b,a.policy.Nb);d=c-d}d&&b.info.j.info.Le()&&a.ya.oa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d}; nZa=function(a){return a.info.j.Pm()&&a.info.Pa===a.info.j.index.Ad()}; JY=function(a,b){b=(b=b===void 0?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()}; tZa=function(a,b){b<0||(a.B.forEach(function(c){JEa(c,b)}),a.timestampOffset=b)}; JX=function(a,b,c,d,e){WX.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.ag=d;this.lastError=null;this.Cg=function(){f.Ma()||(f.ag.Yc.has(f.formatId)?(f.isComplete()||f.j.start(),RW(f.ag,f.formatId)&&f.vB(2),f.ag.Og(f.formatId)&&(GUa(f.ag,f.formatId)?f.xd(4):(f.lastError="net.closed",f.xd(5)))):(f.lastError="player.exception",f.xd(5)))}; this.j=new g.fp(function(){f.isComplete()||(f.lastError="net.timeout",f.xd(5))},this.policy.LF); this.j.start();BUa(this.ag,this.formatId,this.Cg);g.Ge(this.Cg)}; KY=function(a,b,c,d){g.K.call(this);var e=this;this.ya=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.LO("dash");this.C=[];this.ra=[];this.B=this.Pb=null;this.Ka=!1;this.Na=this.Ra=0;this.K=-1;this.qa=!1;this.Ga=-1;this.Ca=this.Fa=null;this.Y=NaN;this.fd={MP:function(){return e.D}, Una:function(){return e.C}, qna:function(){return e.Z}}; this.D=new bZa(a,b,c);this.policy.C&&(this.Z=new BWa(this.D,this.ya.getManifest(),this.policy,function(f){e.policy.zp&&e.ya.oa("buftl",f)})); this.ub=c.info.ub;this.N=this.policy.Wa?!1:c.NA();this.isManifestless=c.NA();this.G=this.N;g.Q(this,this.Fa)}; LY=function(a,b,c){c=c===void 0?!1:c;b&&TW&&tZa(a.D,b.YP());if(!c){var d;(d=a.Z)==null||JWa(d)}a.Pb=b;(b=a.Z)!=null&&(b.Pb=a.Pb)}; MY=function(a){var b=a.Pb&&a.Pb.lA();if(a.policy.xw){if((a=a.Z)==null)a=void 0;else{var c;a=(c=a.D)==null?void 0:c.info}return a||null}return b}; uZa=function(a){for(var b={},c=0;c4&&a.ra.shift()}; wZa=function(a,b){if(b.Il()){var c=b.Ok();c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.B&&b instanceof JX&&a.ya.oa("omblss",{s:d.info.Rc()}),NY(a,b.info.jb,d,b.VP())}}; NY=function(a,b,c,d){d=d===void 0?0:d;isNaN(a.Y)||(a.ya.oa("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:xZa(a,c);break;case 4:var e=c.info.j,f=e.EV(c),h;((h=a.B)==null?0:h.type===4)&&rEa(c.info,a.B)&&(a.B=e.eC(a.B).pop());c=g.v(f);for(e=c.next();!e.done;e=c.next())NY(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Ga||(e.Ga=(0,g.uu)(),WG("fvb_r",e.Ga,e.j))):(e=a.timing,e.K||(e.K=(0,g.uu)(),WG("fab_r",e.K,e.j))); jZa(a.D,b,c,d);a.policy.C&&yZa(a);break;case 6:jZa(a.D,b,c,d),a.B=c.info}}; xZa=function(a,b){if(b.info.type===1)if(b.info.j.info.video){var c=a.timing;c.Ka||(c.Ka=(0,g.uu)(),WG("vis_r",c.Ka,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.uu)(),WG("ais_r",c.Z,c.j));fZa(a.D,b);a=a.ya;a.videoTrack.j.jg()&&a.audioTrack.j.jg()&&a.policy.C&&!a.manifest.dc&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),Math.abs(b-c)>1&&a.oa("trBug",{af:""+UF(a.audioTrack.j.info,!1),vf:""+UF(a.videoTrack.j.info,!1),a:""+b,v:""+c}))}; QX=function(a){return cZa(a.D)}; yZa=function(a){a.C.length?a.B=g.nb(g.nb(a.C).info.jb):a.D.B.length?a.B=a.D.Po().info:a.B=MY(a)}; OY=function(a,b){var c={hd:[],Oo:[]},d;if((a=a.Z)==null)a=void 0;else{IWa(a,a.hd,"og");GWa(a,b);IWa(a,a.hd,"trim");var e=HWa(a);b=e.hd;e=e.oy;for(var f=[],h=0;h0){var r=cG(q,m);r>=0&&(p=(q.end(r)-m)*1E3)}f.push({formatId:UF(l.info.j.info,a.manifest.dc),Mj:l.info.Mj, sequenceNumber:l.info.Pa+a.C,DJ:n,SZ:l.info.B,c8:p})}a={hd:b,Oo:f}}return(d=a)!=null?d:c}; MX=function(a,b,c){c=c===void 0?!1:c;if(a.Pb){var d=a.Pb.oe(),e=eG(d,b),f=NaN,h=MY(a);h&&(f=eG(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&zZa(AZa(a),0))return b}a=BZa(a,b,c);return a>=0?a:NaN}; NX=function(a,b,c){a.j.jg();var d=BZa(a,b);if(d>=0)return d;if((d=a.Z)!=null){var e=b;d.policy.qc&&c!=null&&c.WA||(d.oy=[]);GWa(d,!0);d.B=CWa(d.hd,e*1E3)}c=Math;d=c.min;e=a.D;if(e.N)if(e=e.N,e.Gf&&e.Gf.type===3)e=e.Gf.startTime;else if(e.C>0){var f=e.j.index;f=g.Hb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(f>=0?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.j){var h,l;c=(h=a.ya.Xf())==null?void 0:(l=nX(h,b))==null?void 0:l.clipId;a.B=a.j.Nr(b, void 0,c).jb[0]}else a.B=a.policy.Wa?null:a.j.Nr(b).jb[0];PY(a)&&a.Pb&&a.Pb.abort();a.Na=0;return a.B?a.B.startTime:b}; MWa=function(a){a.N=!0;a.G=!0;a.K=-1;NX(a,Infinity)}; QY=function(a){for(var b=0,c=g.v(a.C),d=c.next();!d.done;d=c.next())b+=tEa(d.value.info);return b+=lZa(a.D)}; SY=function(a,b){b=b===void 0?!1:b;var c=a.ya.getCurrentTime(),d=a.D.Po(),e=(d==null?void 0:d.info.Mf)||0;a.policy.Gj&&(d==null?0:d.info.j.NA())&&!d.info.Se&&(e=d.info.Ve);if(a.policy.j&&d&&d.info.clipId){var f,h=(((f=a.ya.Xf())==null?void 0:lX(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Pb)return a.policy.C&&b&&!isNaN(c)&&d?e-c:0;if((f=MY(a))&&RY(a,f))return f.Mf;f=a.Pb.oe(!0);return b&&d?(b=0,a.policy.C&&(b=gG(f,e+.02)),b+e-c):gG(f,c)}; CZa=function(a,b){if(a.C.length){if(a.C[0].info.jb[0].startTime<=b)return;LX(a)}for(var c=a.D,d=c.B.length-1;d>=0;d--)c.B[d].info.startTime>b&&c.B.pop();yZa(a);a.B&&b=0;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=mO(l,e.policy.Nb),f=l.info)}f&&(e.G=e.B.length>0?e.B[e.B.length-1].info:e.bb,e.B.length!==0||e.G||dZa(e,"r"));e.ya.oa("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?NX(a,d):a.B=a.j.vt(b-1,!1).jb[0]}; UY=function(a,b){var c;for(c=0;c0?c||b.Pa>=a.Ga:c}; VY=function(a){var b;return PY(a)||RY(a,(b=a.D.Po())==null?void 0:b.info)}; AZa=function(a){var b=[],c=MY(a);c&&b.push(c);b=g.wb(b,a.D.Wn());c=g.v(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.v(d.info.jb),f=e.next(),h={};!f.done;h={hH:void 0},f=e.next())h.hH=f.value,d.nQ&&(b=g.ln(b,function(l){return function(m){return!rEa(m,l.hH)}}(h))),(QN(h.hH)||h.hH.type===4)&&b.push(h.hH)}a.B&&!jEa(a.B,g.nb(b),a.B.j.Pm())&&b.push(a.B); return b}; zZa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return b<0?NaN:zZa(a,c?b:0)?a[b].startTime:NaN}; WY=function(a){return!(!a.B||a.B.j===a.j)}; EZa=function(a){return WY(a)&&a.j.jg()&&a.B.j.info.ubb&&d.Mf1)for(a=0;a0)return 2;if(b<0)return 1;c=a.Ad();return b(0,g.uu)()?0:1}; ZY=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=t===void 0?null:t;g.K.call(this);var u=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.yM=r;this.zi=t;this.qa=!1;this.WG="";this.Gl=null;this.hh=NaN;this.ra=!1;this.B=null;this.rh=this.Z=NaN;this.lq=this.K=0;this.logger=new g.LO("dash");this.fd={NQ:function(x,B){return u.NQ(x,B)}}; this.policy.Qq>0&&(this.WG=g.ow(this.policy.Qq));this.policy.Uf&&(this.N=new YY(this.ya,this.policy,this.schedule),g.Q(this,this.N))}; VZa=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.gI)||(f=IM(d.j)===IM(d.C));f?d=!1:(e=CN(e,IM(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.uu)()0&&h.Z===0&&a.ya.Zr),c=d,f=WY(b),d=c.j.kz(c,e),(e=d.C)&&d.jb.length>1&&(f||d.resource.B||d.jb[0].j!==c.j?d=c.j.kz(c,d.jb[0].B):(f=d.jb[d.jb.length-1],h=f.B/e,!f.Se&&h<.4&&(d=c.j.kz(c,e-f.B)))),c=d):(d.Pa<0&&(c=TN(d),c.pr=""+b.C.length,a.ya.isSeeking()&&(c.sk="1"),c.snss=d.C,a.ya.oa("nosq", c)),c=f.vD(d));if(a.policy.Ga)for(d=g.v(c.jb),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.Pm()?(c=yWa(a.G,b.j.info.ub,c.j.info.ub,0),c=d.j.kz(d,c)):c=d.j.vD(d);if(a.B){var l=c.jb[0].j.info.id;d=a.j;e=c.jb[0].Pa;d=e<0&&!isNaN(d.G)?d.G:e;e=mYa(a.j,c.jb[0].Ve,d);var m=b===a.audioTrack?1:2;h=c.jb[0].j.info.sb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Zg.event;if(n.j.Pa===d){n=p==="predictStart"?void 0:n.j.Zg.event;break a}if(n.j.Pa===d-1){n=p==="start"||p==="continue"?p:void 0;break a}}n= void 0}if(a.policy.Fa&&a.j.B!==0){var q=a.B.bK(e,d,l,m,h,n);d<0&&m===2&&nY(a.j,0,0,!0);if(q){var r;l=((r=q.dn)==null?void 0:r.Nt)||"";var t;r=((t=q.dn)==null?void 0:t.f2)||-1;a.ya.oa("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:f,f:h,sg:d,st:e.toFixed(3)});c.D=q}}else if(t=a.B.gA(e,d,l,m,h,n),d<0&&m===2&&nY(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.fD&&b.isRequestPending(d-1)){a.ya.oa("sdai",{wt_daistate_on_sg:d-1});return}a.ya.oa("sdai",r);t&&(c.j=new g.GM(t));a.policy.B&&(t=c.resource.TJ("id")|| "",r=((q=c.j)==null?void 0:q.get("id"))||"",t!==r&&a.ya.oa("stmidmismatch",{cid:t,aid:r}))}else a.j.B!==5&&a.ya.oa("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.Yl&&c.jb[0].Pa!==-1&&c.jb[0].Pa=e.D?(e.oa("sdai",{haltrq:f+1,est:e.D}),d=!1):d=e.B!==2;if(!d||!HN(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.ya.isSuspended&&(!yP(a.schedule)||a.ya.oJ))return!1;if(a.policy.D&&HQ>=5)return g.gp(a.ya.XF),!1;if(a.manifest.isManifestless){if(b.C.length>0&&b.B&&b.B.Pa===-1||b.C.length>=a.policy.Ap||!a.policy.SF&&b.C.length>0&&!a.policy.N.lj)return!1;if(b.N)return!a.manifest.isLive|| !isNaN(a.hh)}if(JZa(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.jg())return!1;NX(b,a.ya.getCurrentTime())}if(QX(b)&&(b.Po()!==QX(b)||a.ya.isSuspended))return!1;e=(d=a.policy.UA)&&!b.C.length&&SY(b,!0)=a.policy.Wp)return!1;d=b.B;if(!d)return!0;d.type===4&&d.j.jg()&&(b.B=g.nb(d.j.eC(d)),d=b.B); if(!ON(d)&&!d.j.ut(d))return!1;f=a.manifest.ge||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.Ad();var h=c.j.index.Ad();f=Math.min(f,h);if(b.j.index.MJ()>0&&f>0&&(WEa?d.Pa>f:d.Pa>=f))return b.Ga=f,c.Ga=f,!1}if(d.j.info.audio&&d.type===4||ON(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.Mf,e=!!(c.B&&!RY(c,c.B)&&c.B.MfWZa(a,b)?(WZa(a,b),!1):(a=b.Pb)&&a.isLocked()? !1:!0}; WZa=function(a,b){var c=a.j;c=c.j?c.j.Zg:null;if(a.policy.Ga&&c)return c.startSecs+c.Ch+15;b=aZ(a.ya,b);a.policy.zb>0&&(c=((0,g.uu)()-a.ya.hq)/1E3,b=Math.min(b,a.policy.zb+a.policy.Jg*c));c=a.ya.getCurrentTime()+b;return a.policy.Nv&&(b=XZa(a.ya)+a.policy.Nv,b=0||b.resource.TJ("defrag")==="1"||b.resource.TJ("otf")==="1"){b=null;break a}e=LN(0,4096)}e=new VN([new NN(5,d.j,e,"createProbeRequestInfo"+d.C,d.Pa)],b.B);e.Rj=c;e.j=b.j;b=e}b&&UZa(a,b)}}; UZa=function(a,b){a.ya.fK(b);var c=tEa(b),d=ZZa(a.ya);c={Oc:a.schedule,aA:c,oS:wWa(a.G,c),Jp:PN(b.jb[0]),Ar:JM(b.resource.j),sJ:a.policy.B,hv:function(e,f){a.ya.ZG(e,f)}}; a.Gl&&(c.Pa=b.jb[0].Pa,c.hh=b.hh,c.Gl=a.Gl);d={Hw:uEa(b,a.ya.getCurrentTime()),NG:a.policy.ke&&XN(b)&&b.jb[0].j.info.video?GYa(a.C):void 0,JH:a.policy.Ga,poToken:a.ya.Yt(),ly:a.ya.sA(),WG:a.WG,rh:isNaN(a.rh)?null:a.rh,zi:a.zi,yM:a.yM,lq:a.lq,MB:d};return new KX(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.jb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(e.state>=2)||e.isComplete()||e.ex()||!(!a.ya.Qa||a.ya.isSuspended||SY(l)>3)){var m=RZa(e,a.policy,a.D);m===1&&(a.ra=!0);YZa(a,e,m);if(e.isComplete()|| e.Ma()&&f<3){if(a.policy.B){var n=e.timing.jr();n.rst=e.state;n.strm=e.xhr.AC();n.cncl=e.xhr&&e.Bd.D?1:0;a.ya.oa("rqs",n)}e.N1&&a.ya.oa("sbwe3",{},!0)}if(!a.Ma()&&e.state>=2){dYa(a.timing,e,h);var p=a.ya;a.rh&&e.QI&&p&&(a.rh=NaN,a.ya.uT(e.QI),a.ya.oE(),a.ya.oa("cabrUtcSeek",{mediaTimeSeconds:e.QI}));e.iC&&(e.Qp>0&&a.ya.oa("sError",{errorHttpResponseCode:e.Qp.toString()}),a.rh&&e.iC&&!e.iC.action&&(a.ya.Mu(a.rh),a.rh=NaN,a.ya.oa("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.rh})));a.policy.zw&&e.hj&& a.ya.Um(e.hj);a.policy.Lc&&(a.lq=e.lq);if(e.state===3){UY(l,e);XN(e.info)&&bZ(a,l,h,!0);if(a.B){var q=e.info.gA();q&&a.B.yl(e.info.jb[0].Pa,h.info.id,q,e.info.jb[0].startTime)}a.ya.df()}else if(e.isComplete()&&e.info.jb[0].type===5){if(e.state!==4)e.Nm()&&a.ya.handleError(e.Uh(),e.Jr());else{var r=(e.info.jb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof KX&&r.ex()&&r.SH(!0)}e.dispose()}else{e.Nm()||$Za(a,e);var t;((t=e.aB)==null?0:t.itagDenylist)&&a.ya.mL(e.aB.itagDenylist); if(e.state===4)a_a(a,e),a.j&&hYa(a.j,e.info,a.B);else if(a.policy.gt&&e.Il()&&!e.isComplete()&&!a_a(a,e)&&!e.Nm())break a;e.Nm()&&(b_a(a,e),isNaN(a.rh)||(a.ya.Mu(a.rh),a.rh=NaN));a.ya.df();var u=SZa(e,a.policy,a.D);YZa(a,e,u)}}}}}catch(x){f=a.qa?1:0,a.qa=!0,e=wF(f),f=xF(x,f),a.ya.handleError(f.errorCode,f.details,f.severity),e||a.ya.il()}},d)}; $Za=function(a,b){if(b.KB&&b.state>=2&&b.state!==3){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c}); var d=FYa(a.C,c),e=b.info.C;e&&(e-=d.NP(),d.C=!0,b.info.jb[0].j.C=!1,PXa(b,d.bx(e)),cZ(a.ya,a.videoTrack,d),KZa(a.videoTrack,d),a.ya.jS(d.info.video.quality),(e=b.VP())&&d.info.lastModified&&d.info.lastModified!==+e&&UY(a.videoTrack,b))}else b.KB=!1}}; b_a=function(a,b){var c=b.info.jb[0].j,d=b.Uh();if(JM(c.resource.j)){var e=g.Ye(b.Wf(),3);a.ya.oa("dldbrerr",{em:e||"none"})}e=b.info.jb[0].Pa;var f=mYa(a.j,b.info.jb[0].Ve,e);d==="net.badstatus"&&(a.K+=1);if(b.canRetry()&&c_a(a.ya)){if(!(b.info.resource.B>=a.policy.ow&&a.B&&b.info.bq()&&d==="net.badstatus"&&a.B.yE(f,e))){e=(c.info.video&&c.resource.B>1||b.Ag===410||b.Ag===500||b.Ag===503)&&!(sY(a.C.G).size>0)&&!JM(c.resource.j);f=b.Jr();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun="1"); a.ya.handleError(d,f);a.Ma()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),xY(a.C,c)),UY(h,b),a.ya.df())}}else h=1,a.B&&b.info.bq()&&d==="net.badstatus"&&a.B.yE(f,e)&&(h=0),a.manifest.isLive&&b.Uh()==="net.badstatus"&&a.K<=a.policy.yj*2?(xIa(a.manifest),a.manifest.ge||a.manifest.isPremiere?PX(a.ya,0,{bd:"badStatusWorkaround"}):a.manifest.C?PX(a.ya,a.manifest.fb,{bd:"badStatusWorkaround", rr:!0}):dZ(a.ya)):a.ya.handleError(d,b.Jr(),h)}; a_a=function(a,b){if(a.policy.useUmp&&b.Ma())return!1;try{var c=b.info.jb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.N&&(b.Ma(),b.isComplete()||b.Il(),d.N=!1);b.zP()&&a.ya.aJ.Xj(1,b.zP());var e=b.MJ(),f=b.mY();HO(a.manifest,e,f)}if(b.info.Jp()&&!WN(b.info))for(var h=g.v(b.Ok()),l=h.next();!l.done;l=h.next())xZa(d,l.value);for(a.ya.getCurrentTime();d.C.length&&d.C[0].state===4;){var m=d.C.shift();wZa(d,m);d.Ra=m.fY()}d.C.length&&wZa(d,d.C[0]);var n=!!QX(d); n&&b instanceof JX&&(c.info.Fh()?XXa(a.timing):WXa(a.timing));return n}catch(p){b=b.Jr();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.Mt&&c.args)for(d=g.v(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.v(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.Kx(c);if(c.level==="WARNING"){a.ea.Fq(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}}; d_a=function(a){var b=a.videoTrack.j.index;a.Gl=new OZa({hk:a.policy.hk,lj:a.policy.N.lj,Pj:b.Pj,Ad:function(){return b.Ad()}, Yw:function(){return b.Yw()}})}; bZ=function(a,b,c,d){if(!(c.jg()||c.SA()||c.C||!HN(c.resource,a.policy,a.D)||c.info.sb==="f"||a.policy.C)){if(d){d=a.G;var e=c.info;d=xWa(d,e.video?d.policy.Aw:d.policy.Vl,e.ub)}else d=0;d=c.bx(d);a=UZa(a,d);WN(d)&&vZa(b,a);c.C=!0}}; eZ=function(a,b,c,d,e,f,h,l){g.K.call(this);var m=this;this.ya=a;this.Te=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.N=f;this.isAudioOnly=h;this.Ca=l;this.B=RQ;this.ra=!1;this.logger=new g.LO("sabr");this.qa=this.Y=!1;this.videoInfos=this.G=this.N.videoInfos;this.C=this.Z=this.N.j;this.j=new qY(b,f,function(n,p){m.ya.oa(n,p)}); e_a(this);this.isAudioOnly&&f_a(this,this.manifest.j["0"])}; g_a=function(a,b){var c=[];b=g.v(b);for(var d=b.next();!d.done;d=b.next())c.push(UF(d.value,a.manifest.dc));return c}; f_a=function(a,b,c){b!==a.D&&(a.D&&(a.ra=!0),a.D=b,a.lL(b,a.videoTrack,c))}; k_a=function(a,b){a.logger.debug("setConstraint: "+tM(b));a.Te.j&&(a.qa=b.reason==="m"||b.reason==="l"?!0:!1);b.reason==="m"?b.isLocked()&&h_a(a,b.j):i_a(a,b)?j_a(a,b.B,b.j):a.videoInfos=a.G;a.B=b}; i_a=function(a,b){return a.Te.En&&b.reason==="b"||a.Te.hI?!1:a.Te.yA?!0:b.reason==="l"||b.reason==="b"||b.reason==="o"}; l_a=function(a,b){return b.isLocked()&&a.j.B||a.B===void 0?!1:oM(b,a.B)}; m_a=function(a,b){var c,d=(c=a.D)==null?void 0:c.info.video.j;return a.ra?!0:a.D?b!==d?!0:!a.j.B||a.Te.Co&&a.j.j===a.D.info.itag?!1:!0:!1}; h_a=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.pb(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.oa("sabrpf",{pfid:""+c, vfids:""+d.join(".")}),j_a(a,b,b),tY(a.j,""))}else j_a(a,b,b)}; j_a=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.ln(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})}; e_a=function(a){var b=null;if(b=a.Te.Sj?pYa(a.j,a.Ca):g.pb(a.Z,function(c){var d;return!((d=c.Xb)==null||!d.isDefault)}))a.C=[b]}; n_a=function(a,b){return a.map(function(c){return VF(c,b)})}; o_a=function(a){var b;if((b=a.B)==null?0:b.isLocked())return a.videoInfos;var c=sY(a.j);b=g.ln(a.videoInfos,function(d){return d.ub>a.Te.ub?!1:!c.has(d.id)}); oYa(a.j)&&(b=g.ln(b,function(d){return d.video.width<=854&&d.video.height<=480})); return b}; p_a=function(a,b,c){var d=a.manifest,e=a.ea.getVideoData(),f=g.fR(e),h=HXa({Da:e.U(),ea:a.ea,tE:a.tE,Te:a.Te,hq:a.hq,Rx:a.Rx,Iw:a.Iw,Qy:a.Qy,Dq:a.Dq,isPrefetch:a.isPrefetch,fH:a.fH,iH:a.iH,Kz:a.Kz,sabrLicenseConstraint:e.sabrLicenseConstraint,Gy:a.Gy},c),l=fY(e,a.MB,a.nextRequestPolicy,a.rk,a.HS,a.hda),m=a.qH,n=a.rH;if(n===void 0&&m===void 0){var p;n=d.dc;n=(m=(p=a.pO)==null?void 0:p.video)?[UF(m.info,n)]:[];var q;p=d.dc;m=(m=(q=a.pO)==null?void 0:q.audio)?[UF(m.info,p)]:[]}if(e.zi)var r=e.zi;e={yr:h, Oo:a.Oo,qH:m,rH:n,videoPlaybackUstreamerConfig:r,zC:l};a.dn&&(e.dn=a.dn);if(f&&b){f=new Map;var t=g.v(d.Na);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.Ra[dFa(d,h)]||"")?(f.has(l)||f.set(l,[]),f.get(l).push(h)):c&&c("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});d=new Map;t=g.v(a.hd);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=(q=b)==null?void 0:nX(q,l),q=r.clipId,r=r.Hl,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,hd:[],vx:n})),r!==0&&(h.startTimeMs= l-r),d.get(q).hd.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:((q=h.formatId)==null?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:mX(b)}));e.HH=[];d=g.v(d.entries());for(f=d.next();!f.done;f=d.next())f=g.v(f.value),f.next(),f=f.next().value,e.HH.push(f);if(a.hd.length&&!e.HH.length){if(c){e="";a=g.v(a.hd);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+(((f=d.formatId)==null?void 0:f.itag)||"")+"_"+(((t=d.formatId)==null?void 0:t.lmt)||0)+"_"+ (((h=d.formatId)==null?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:mX(b)})}return}a.HK&&(e.HK=a.HK);a.EK&&(e.EK=a.EK)}else e.hd=a.hd,e.vx=d.Na,f&&((t=a.hd)==null?void 0:t.length)>0&&!b&&c&&c("ssap",{bldmistlm:"1"});return e}; fZ=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Db=c;this.B=null;this.fd={toa:function(){var e;return(e=d.data)==null?void 0:e.isPrefetch}}}; q_a=function(a,b,c){if(a.Yr())return!0;a.data=b;a.j=p_a(b,c,function(d,e){var f;(f=a.Db)==null||f.Dl(d,e)}); if(!a.j)return!1;a.B=g.BL(a.j,zCa);return!0}; TXa=function(a,b,c){a.Rj===void 0&&(a.Rj=a.resource.Rj(b,c));return a.Rj}; r_a=function(a){var b,c;return((b=a.j)==null?void 0:(c=b.yr)==null?void 0:c.BS)||0}; s_a=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e0;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,E_a(b,c,f));break;case 1:E_a(b,jZ,y_a);break;case 0:F_a(b, b.j&7);c=nZ(b,16);e=nZ(b,16);(c^e)!==65535&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(a.C*2),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output}; E_a=function(a,b,c){b=C_a(b);c=C_a(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(l<15){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<>=7;n<0;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(n<256)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,n>256){h=lZ[n];h+=nZ(a,kZ[n]);m=D_a(a,c);l=mZ[m];l+=nZ(a,z_a[m]);if(H_a&&hc.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<=0)return F_a(a,c&15),c>>4;for(F_a(a,7);c<0;)c=b[nZ(a,1)-c];return c>>4}; nZ=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<>=b;a.j-=b;return c}; F_a=function(a,b){a.j-=b;a.register>>=b}; C_a=function(a){for(var b=[],c=g.v(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h7&&(f+=b[h]);for(e=1;e>m&1;l=f<<4|h;if(h<=7)for(m=1<<7-h;m--;)d[m<>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d}; I_a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.H(function(u){switch(u.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=AU.So(b.aq?"gza":"gzw",function(){return b.exports.inflateGzip(c,a.length,e)}))throw Error("inflateGzip="+f); h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return u.return(h)}catch(x){g.Jx(x)}if(!("DecompressionStream"in window))return AU.isActive()?u.return(AU.So("gzj",function(){return g.G_a(new g.A_a(a))})):u.return(g.G_a(new g.A_a(a))); l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new UK([]);if(AU.isActive())return u.return(AU.So("gzn",function(){var x,B,E;return g.H(function(F){if(F.j==1)return g.G(F,n.read(),5);if(F.j!=4){x=F.B;B=x.value;if(E=x.done)return F.Ia(4);p.append(B);return F.Ia(1)}return F.return(ZK(p))})})); case 2:return g.G(u,n.read(),5);case 5:q=u.B;r=q.value;if(t=q.done){u.Ia(4);break}p.append(r);u.Ia(2);break;case 4:return u.return(ZK(p))}})}; J_a=function(a){hY.call(this,"onesie");this.rd=a;this.j={};this.D=!0;this.C=null;this.queue=new x_a(this);this.G={}}; K_a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.v(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.UY){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||iZ(e)}}}; M_a=function(a,b){var c=b.totalLength,d=!1;switch(a.C){case 0:a.ZR(b,a.D).then(function(f){var h=a.rd;h.Sd("oprr");h.playerResponse=f;h.hR||(h.jH=!1);oZ(h)},function(f){a.rd.vj(f)}); break;case 2:a.Sd("ormk");b=ZK(b);var e;a.queue.decrypt(b,!L_a(a.rd),(e=a.rd.U())==null?void 0:e.Kd);break;default:d=!0}a.rd.Lm&&a.rd.oa("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null}; N_a=function(a){return new Promise(function(b){setTimeout(b,a)})}; O_a=function(a,b){var c=a.U();c=a.Dd&&c.L("html5_onesie_preload_use_content_owner");var d=a.kS,e=fP(b.X.experiments,"debug_bandaid_hostname");if(e)b=yW(b,e);else if((c===void 0?0:c)&&(d==null?0:d.url)&&!b.B){var f=IM(new g.GM(d.url));b=yW(b,f)}else b=(f=b.j.get(0))==null?void 0:f.location.clone();if(b&&a.videoId){f=nP(a.videoId);a=[];if(f)for(f=g.v(f),c=f.next();!c.done;c=f.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}}; P_a=function(a,b,c){c=c===void 0?0:c;var d,e;return g.H(function(f){if(f.j==1)return d=[],d.push(b.load()),c>0&&d.push(N_a(c)),g.G(f,Promise.race(d),2);e=O_a(a,b);return f.return(e)})}; Q_a=function(a,b,c,d){d=d===void 0?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");IK()||a.set("onem","1");b.startSeconds>0&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),b=e.L("html5_gapless_onesie_no_media_bytes")&&nR(b)&&b.Dd,c&&!b?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),eP||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad", "0"),a.set("oavd","0")))}; R_a=function(a,b,c,d,e){e=e===void 0?!1:e;var f=b.Sk,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.zQ&&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.Zb()});g.Lr("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.Lr("EOM_VISITOR_DATA")}):(c=c.visitorData||g.Lr("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=fP(b.experiments, "debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=iL(JSON.stringify(a));return{url:h,sQ:f,postBody:a,Sca:e,wC:e}}; T_a=function(a,b,c,d,e,f){var h=g.BL(a,sCa,a.wC?void 0:c.Kd),l={encryptedClientKey:b.j.encryptedClientKey,M1:!0,LX:!0,gP:S_a(c,!!a.wC),w3:c.experiments.ob("html5_use_jsonformatter_to_parse_player_response")};if(a.wC)l.Gea=h;else{a=b.encrypt(h);var m;a=((m=c.Kd)==null?void 0:m.rR(a))||a;m=l.MX=a;(0,g.uu)();m=fBa(new eBa(b.j.C),m,b.iv);l.fZ=m;l.iv=b.iv}b=d.getVideoData();c=HXa({Da:c,ea:d,tE:b.startSeconds*1E3,fH:!0,iH:!0});return{AQ:l,yr:c,onesieUstreamerConfig:e,jp:f,zC:fY(b)}}; U_a=function(a,b,c){var d,e,f;return g.H(function(h){if(h.j==1)return d=g.BL(b,sCa),g.G(h,t_a(c,d),2);if(h.j!=3)return e=h.B,g.G(h,u_a(c,e),3);f=h.B;return h.return({MX:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,fZ:f,M1:!0,LX:!0,gP:S_a(a,!!b.wC),w3:a.experiments.ob("html5_use_jsonformatter_to_parse_player_response")})})}; V_a=function(a,b,c,d,e,f){var h,l,m;return g.H(function(n){if(n.j==1)return g.G(n,U_a(c,a,b),2);h=n.B;l=d.getVideoData();m=HXa({Da:c,ea:d,tE:l.startSeconds*1E3,fH:!0,iH:!0});return n.return({AQ:h,yr:m,onesieUstreamerConfig:e,jp:f,zC:fY(l)})})}; S_a=function(a,b){a=xP(a.schedule,!0);b=b||!!IK()&&a>1572864;return"DecompressionStream"in window||!b}; qZ=function(a,b){g.K.call(this);var c=this;this.ea=a;this.playerRequest=b;this.X=this.ea.U();this.videoData=this.ea.getVideoData();this.logger=new g.LO("onesie");this.Lm=this.X.yc();this.XO=this.X.Tk;this.GG=new gZ(this.XO.j,this.X.Kd);this.xhr=null;this.state=1;this.Oq=new vG;this.ZY=!1;this.playerResponse="";this.Ol=new VX(this);this.Vm=new J_a(this);this.XH=this.X.L("html5_onesie_check_timeout");this.zO=new g.fp(this.i7,500,this);this.HG=new g.fp(this.jQ,1E4,this);this.wL=new g.fp(function(){if(!c.isComplete()){var d= pZ(c);c.vj(new vF("net.timeout",d))}},g.qD(this.X.experiments,"html5_onesie_request_timeout_ms")); this.z0=new g.fp(this.r$,2E3,this);this.Zu="";this.wK=this.xZ=!1;this.BA=this.ea.sA();this.lS="";this.jH=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.hR=this.LA=!1;this.KH=[];this.tv=this.ej=-1;g.Q(this.videoData,this);g.Q(this,this.zO);g.Q(this,this.HG);g.Q(this,this.z0);g.Q(this,this.GG);a=hP();eP&&a&&!this.X.L("html5_disable_onesie_media_bytes")&&(this.cg=new Map);this.aY=new Map;this.E_=new Map;this.w1=new Map}; hZ=function(a,b){var c;return(c=a.cg)==null?void 0:c.get(b)}; W_a=function(a,b,c){var d;return g.H(function(e){if(e.j==1)return a.Sd("oprd_s"),L_a(a)?g.G(e,v_a(a.GG,b,c),3):(d=a.GG.decrypt(b,c),e.Ia(2));e.j!=2&&(d=e.B);a.Sd("oprd_c");return e.return(d)})}; X_a=function(a){return a.L("html5_onesie_host_probing")||a.Lm?eP:!1}; oZ=function(a){if(!a.playerResponse)return!1;if(a.LA)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&oR(a.videoData);if(a.cg&&a.jH){if(!a.cg.has(a.Zu))return!1;var c=a.cg.get(a.Zu),d;if(d=c){d=!1;for(var e=g.v(c.Yc.keys()),f=e.next();!f.done;f=e.next())if(f=c.Yc.get(f.value))for(var h=g.v(f.cG),l=h.next();!l.done;l=h.next())l.value.Ks>0&&(f.Fh?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Sd("ofr");a.Oq.resolve(a.playerResponse);if(!a.XH){var m;(m=a.wL)==null||m.start();a.HG.start()}return a.LA= !0}; Z_a=function(a){if(a.cg&&!a.L("html5_onesie_media_capabilities")){a.Sd("ogsf_s");var b=DXa(a.ea.getVideoData(),function(d,e){a.oa(d,e)}),c=Y_a(a.ea); b.video=tXa(c,b.video);a.Sd("ogsf_c");if(b.video.length)return b;a.oa("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}}; L_a=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(b==null?0:b.wC)||g.$P(a.X)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!IK()}; pZ=function(a){if(!a.Nd)return{};var b=a.Nd.jr();b.d=WWa(a.Nd);b.shost=a.K1;b.ty="o";return b}; $_a=function(a,b){var c,d;(d=(a=(c=a.cg)==null?void 0:c.get(b))==null)||(b=a.C?!1:a.C=!0,d=!b);return!d}; a0a=function(a,b,c,d,e,f,h,l,m,n,p){g.K.call(this);var q=this;this.ea=a;this.ya=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Oc=h;this.ra=l;this.D=m;this.timing=n;this.Z=p;this.j=[];this.G={};this.Ka=this.Na=!1;this.rk=new Set;this.C=this.Fa=this.Y=this.Dq=0;this.K=null;this.fd={aoa:function(){return q.j}, xna:function(){return q.G}, Lma:function(){q.j.length=0}, Lna:function(){return q.rk}, Hna:function(){return q.Y}, lpa:function(r){q.Y=r}, qpa:function(r){q.C=r}}; this.videoData=this.ea.getVideoData();this.policy.Uf&&(this.Ga=new YY(this.ya,this.policy,this.Oc),g.Q(this,this.Ga))}; d0a=function(a,b){b=b===void 0?!1:b;if(b0a(a,b)){a.policy.Xa&&a.ya.oa("sabrcrq",{create:1});var c=new fZ(0,a.manifest.qa,a);a.policy.Ae>0&&a.C++;b=c0a(a,c,b);a.j.push(b);var d;(d=a.Ga)==null||PZa(d,a.manifest.qa)}}; g0a=function(a,b){var c=OY(a.audioTrack,a.ya.isSeeking()),d=OY(a.videoTrack,a.ya.isSeeking()),e=[].concat(g.w(c.hd),g.w(d.hd)),f=[].concat(g.w(c.Oo),g.w(d.Oo)),h,l=((h=a.ya)==null?void 0:h.IF())&&(ER(a.videoData)||g.DR(a.videoData));h=a.policy.K&&l;l=a.ya.getCurrentTime()||0;l=e0a(a,l);var m=a.ya.Ec()||0;h=h?Number.MAX_SAFE_INTEGER:Math.min(Number.MAX_SAFE_INTEGER,Math.ceil((l+m)*1E3));l=!rZ(a,a.audioTrack);m=!rZ(a,a.videoTrack);var n=nP(a.ya.Yt()),p=ZZa(a.ya),q,r,t=a.ea,u=a.manifest,x=a.B,B=a.rk, E=a.policy,F=a.ya.hq,I=XZa(a.ya)*1E3,O=(q=a.Ca)==null?void 0:q.Iw;q=(r=a.Ca)==null?void 0:r.Qy;var N;r=Number((N=a.D.D)==null?void 0:N.info.itag)||0;var S;N=Number((S=a.D.K)==null?void 0:S.info.itag)||0;b={ea:t,manifest:u,hd:e,Oo:f,tE:h,nextRequestPolicy:x,rk:B,Te:E,hq:F,Rx:I,Iw:O,Qy:q,Dq:a.Dq,isPrefetch:b||a.ya.isSuspended,fH:l,iH:m,HS:n,HK:r,EK:N,MB:p};if(e=a.ea.gx())b.Gy=e*1E3;if(a.policy.Ai){e=a.D;f=e.Y;if(e.Te.j&&!f&&e.Te.gD)for(S=g.v(e.C),N=S.next();!N.done;N=S.next())if(N.value.Xb){f=!0;break}e= e.Te.j&&!f?[]:g_a(e,e.C);b.qH=e;e=a.D;e.Te.j&&!e.qa?e=[]:(f=o_a(e),f.length===0&&(f=e.G),e=g_a(e,f));b.rH=e}else a.fK(a.videoTrack.j),a.fK(a.audioTrack.j),b.pO=yY(a.ra);a.policy.En&&(e=a.ea.wP().I0,b.Kz=e.j);if(a.policy.G){c=f0a(a,c.hd,d.hd);var Y;if(d=(Y=a.K)==null?void 0:Y.WP(c))b.dn=d}a.policy.qa&&a.j.length>0&&a.j[0].sO()&&(b.hda=a.j[0].TP());return b}; e0a=function(a,b){if(a.ya.isSeeking())return b;var c=a.ea.Ke();if(!c)return b;c=c.Dh();if(c.length===0||dG(c,b))return b;for(var d=b,e=Infinity,f=0;fb)){var h=b-c.end(f);h0){var c=Math.floor((0,g.uu)()/1E4);if(c===a.Fa){if(a.C>=a.policy.Ae){if(a.C===a.policy.Ae){var d={reason:"toomanyrequests"};d.limit=a.C;a.ya.handleError("player.exception",d);a.C+=1}return!1}}else a.Fa=c,a.C=0}b=!b&&!yP(a.Oc);if(a.ya.isSuspended&&(a.ya.oJ||b)||a.qa&&(0,g.uu)()0&&(!a.policy.qa||a.j.length!==1||!a.j[0].sO())||(d=a.manifest.qa)==null||!HN(d,a.policy,a.G))return!1;d=a.policy.MD&&a.policy.j&&a.ya.Xf();if(VY(a.audioTrack)&&VY(a.videoTrack)&& !d)return!1;if(a.policy.j&&a.N&&!a.ya.Xf())return a.Dl("ssap",{pauseontlm:1}),!1;if(a.policy.Yy&&rZ(a,a.audioTrack)&&rZ(a,a.videoTrack))return a.policy.B&&a.ya.oa("sabrHeap",{a:""+QY(a.audioTrack),v:""+QY(a.videoTrack)}),!1;if(d=a.policy.G)d=!1,a.Z.B===2?d=!0:a.Z.B===3&&(b=f0a(a,OY(a.audioTrack,a.ya.isSeeking()).hd,OY(a.videoTrack,a.ya.isSeeking()).hd),c=a.Z,b>=c.C?(c.oa("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.policy.Xa&&a.ya.oa("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.Xa&& a.ya.oa("sabrcrq",{nopolicy:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.Xa&&a.ya.oa("sabrcrq",{noreadahead:1}),!0;if(a.policy.K&&a.ya.IF())return a.policy.Xa&&a.ya.oa("sabrcrq",{seekToHead:1}),!0;d=Math.min(aZ(a.ya,a.audioTrack)*1E3,a.B.targetAudioReadaheadMs);b=Math.min(aZ(a.ya,a.videoTrack)*1E3,a.B.targetVideoReadaheadMs);var e=Math.min(d,b);c=SY(a.audioTrack,!0)*1E3;var f=SY(a.videoTrack,!0)*1E3;var h=c>e;e=f>e;if((!h||!e)&&a.policy.B&&a.policy.Tf){var l= a.ya.vc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.ya.oa("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.j)&&(a=a.ya,a.Qa&&a.Qa.j&&a.Qa.B&&a.xb&&!IO(a.manifest)?(d=a.getCurrentTime(),c=a.Qa.j.oe(),b=a.Qa.B.oe(),c=c?eG(c,d):d,d=b?eG(b,d):d,d=Math.min(c,d),isNaN(d)?d=!1:(a=oX(a.xb),d=d>=a-.01)):d=!1);return d?!1:!0}; c0a=function(a,b,c){var d={Oc:a.Oc,hv:function(m,n){a.ea.ZG(m,n)}, Jp:a.policy.zn,sJ:a.policy.B},e=TXa(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,i0a(a));c=g0a(a,c);if((a.policy.j||a.policy.qa)&&a.policy.B&&c.rk){for(var f=e="",h=g.v(c.rk),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.ya.oa("sabrbldrqs",{ctxts:e,misctxts:f})}q_a(b,c,a.ya.Xf())||!a.policy.j&&!a.policy.qa||a.ya.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new jY(a.policy,b,a.manifest,a.G,a,d,a.ya.sA(),a.policy.uh?a.ya.Xf():void 0); kY(a.timing);a.policy.Xa&&a.ya.oa("sabrcrq",{rn:d.Sp(),probe:b.Yr()});return d}; l0a=function(a,b){if(!b.Ma()&&!a.Ma()){if(a.policy.B&&b.isComplete()&&b instanceof jY){var c=a.ya,d=c.oa;var e=Object.assign(b.Nd.jr(),{rst:b.state,strm:b.xhr.AC(),d:WWa(b.Nd),cncl:b.xhr&&b.Bd.D?1:0,rqb:b.v1});e=Object.assign(s_a(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.Yr())b.dispose();else{if(b.CZ())b instanceof jY&&dYa(a.timing,b),i0a(a),j0a(a);else if(b.Nm()){c=a.ea.gx();if(d=b instanceof jY){var f,h;d=!!((f=b.info.j)==null?0:(h=f.yr)==null?0:h.Gy)}d&&c&&a.ya.Mu(c);b instanceof qZ?a.j.pop(): (f=1,b.canRetry()&&c_a(a.ya)&&(k0a(a,b),f=0),a.ya.handleError(b.Uh(),b.Jr(),f))}else{if(a.ya.isSuspended&&!b.isComplete())return;j0a(a)}b.Ma()||b instanceof qZ||(b.isComplete()?f=SZa(b,a.policy,a.G):(f=RZa(b,a.policy,a.G),f===1&&(a.Na=!0)),f!==0&&(b=new fZ(1,b.info.resource),b.Rj=f===2,c0a(a,b)))}}a.ya.df()}; j0a=function(a){for(;a.j.length&&a.j[0].mQ(a.mf());){var b=a.j.shift();m0a(a,b);a.policy.Yd&&b instanceof jY&&b.dispose();a.policy.G&&n0a(a,b)}a.j.length&&(b=a.j[0],m0a(a,b),a.policy.G&&a.policy.lm&&n0a(a,b))}; m0a=function(a,b){if(a.policy.Ai){var c=new Set(b.Hr(a.mf()));c=g.v(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof qZ))){var f=a.D,h=f.manifest.dc;d=n_a(f.C,h);f=n_a(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.Wn(e,a.mf()),b.Il(e,a.mf()))){e=b.Ok(e,a.mf());if(a.policy.j&&(f=d[0].j.info,(h=a.ya.Xf())&&f)){var l=b.dY();if(h.api.L("html5_ssap_set_format_info_for_all")||l!==h.ea.getVideoData().clientPlaybackNonce)if(h=XW(h.timeline,l))if(h=h[0].getVideoData())f.Fh()? h.D=f:h.B=f}e=g.v(e);for(f=e.next();!f.done;f=e.next()){f=f.value;a.policy.B&&b instanceof qZ&&a.ya.oa("omblss",{s:f.info.Rc()});h=f.info.j.info.Fh();var m=f.info.j;if(h){l=void 0;var n=a.D,p=(l=b.RP(a.mf()))==null?void 0:l.token;m!==n.K&&(n.K=m,n.lL(m,n.audioTrack,p))}else l=void 0,f_a(a.D,m,(l=b.RP(a.mf()))==null?void 0:l.token);l=h?a.audioTrack:a.videoTrack;b instanceof qZ&&(l.N=!1,b instanceof qZ&&(h?XXa(a.timing):WXa(a.timing)));NY(l,d,f)}}}}else for(d=b.cY()||yY(a.ra),c=new Set(b.Hr(a.mf())), a.policy.j?e=c:e=[((f=d.video)==null?void 0:VF(f.info,a.manifest.dc))||"",((h=d.audio)==null?void 0:VF(h.info,a.manifest.dc))||""],d=g.v(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.Il(e,a.mf()))for(f=b.Ok(e,a.mf()),f=g.v(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.B&&b instanceof qZ&&a.ya.oa("omblss",{s:h.info.Rc()}),l=b.Wn(e,a.mf()),m=(n=h.info.j.info.Fh())?a.audioTrack:a.videoTrack,b instanceof qZ&&(m.N=!1,b instanceof qZ&&(n?XXa(a.timing):WXa(a.timing))),NY(m,l,h)}; n0a=function(a,b){if(b.mQ(a.mf())||a.policy.lm){var c=b.Sp();if(a.Ra!==c){var d=b.BY();b=d.ej;var e=d.tv;d=d.bq;!a.K||e<0||(a.Ra=c,c=mYa(a.Z,e,b),e=a.ya.Ec()||0,gYa(a.Z,b,c/1E3-e,d,a.K))}}}; k0a=function(a,b){a.policy.qa?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),b==null||b.dispose())}; o0a=function(a,b){for(var c=[],d=0;d0)for(var b=g.v(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=a.videoData.sabrContextUpdates.get(c))==null?0:d.sendByDefault)&&a.rk.add(c)}if(a.policy.qa&&a.j.length)for(b=g.v(a.j),c=b.next();!c.done;c=b.next())(c=c.value.TP())&&c.type&&c.sendByDefault&&a.rk.add(c.type)}; q0a=function(a){a.policy.Tb&&(a.Ca=void 0,a.Dq=0)}; r0a=function(a,b){if(b.Nm()||b.Ma()){var c=a.ya,d=c.oa,e=b.state;a=a.mf();var f,h;if((b=(f=b.cg)==null?void 0:f.get(a))==null)b=void 0;else{f=0;a=b.Hr();for(var l=0;l=a.policy.uw,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e=a.policy.Vk&&!a.C;if(!f&&!c&&w0a(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.uu)()/1E3-(a.Lz.fh()||0)-a.N.j-a.policy.Bc;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){sZ(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Uk;d=f.Ve&&d<=f.Mf){d=!0;break a}d=!1}d=!d}if(d)return a.oa("ostmf",{ct:a.getCurrentTime(),a:b.j.info.Fh()}),!1;(a=a.ra)!=null&&(a.Yc.get(c).aE=!0);return!0}; C0a=function(a){if(!a.manifest.dc)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&vZ(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&vZ(a.ea)&&(b.ge||b.isPremiere))return a.oa("ombpa",{}),!1;var c,d;if(a.policy.OC&&!!((c=a.qa)==null?0:(d=c.VZ)==null?0:d.Ica)!==a.manifest.ge)return a.oa("ombplmm",{}),!1;c=b.Nb||b.liveUtcStartSeconds||b.Yd;if(a.manifest.ge&&c)return a.oa("ombplst",{}),!1;if(a.manifest.ra)return a.oa("ombab",{}),!1;c=Date.now();if(IO(a.manifest)&& !isNaN(a.Ca)&&c-a.Ca>a.policy.RE*1E3)return a.oa("ombttl",{}),!1;if(!(a=a.manifest.bf&&a.manifest.C||!a.policy.ID&&a.manifest.isPremiere||tR(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!((e=b.playerResponse)==null||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0}; D0a=function(a,b){var c=b.j,d=a.manifest.dc;if(C0a(a))if(a.ra&&a.ra.Yc.has(VF(c.info,d))){if(d=VF(c.info,d),B0a(a,b)){var e=new VN(a.ra.Wn(d)),f=function(h){try{if(h.Nm())a.handleError(h.Uh(),h.Jr()),UY(b,h),XN(h.info)&&bZ(a.D,b,c,!0),a.df();else if(a_a(a.D,h)){var l;(l=a.B)==null||hYa(l,h.info,a.K);a.df()}}catch(m){h=xF(m),a.handleError(h.errorCode,h.details,h.severity),a.il()}}; c.C=!0;WN(e)&&(vZa(b,new JX(a.policy,d,e,a.ra,f)),kY(a.timing))}}else a.oa("ombfmt",{})}; wZ=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.getCurrentTime();var c=cZ,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Ii(b)||0;e.Ga!==b&&(e.Ka={},e.Ga=b,vY(e,e.j));b=!e.j.isLocked()&&e.Y>-1&&(0,g.uu)()-e.Yb.j&&b.reason==="b";d||e||c?(a.ea.Fq({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.Co||(a.C.j.B=!1)):(a.policy.Co&&(a.C.j.B=!1),yZ(a))}}else if(!wYa(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j}); c=a.j.j;K0a(a,yYa(a.j,b));wZ(a);d=b.isLocked()&&b.reason==="m"&&a.j.ra;e=a.policy.Sf&&b.reason==="l"&&WY(a.videoTrack);c=c.j>b.j&&b.reason==="b";var f=a.j.bb&&!lG();d||e||c||f?a.ea.Fq({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):yZ(a)}}; M0a=function(a,b,c){if((!a.Qa||oG(a.Qa)&&!a.policy.jm)&&!a.Mg.isSeeking()&&(pU(a.policy)||WY(b)&&b.j.jg()&&a.j.qa)){var d=a.getCurrentTime()+zWa(a.Z,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)}); CZa(b,d)}}; K0a=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+$F(b.video.info)}),N0a(a.ea,new pY(b.video,b.reason))); if(a.j.Wa){var c=yY(a.j,"a");a.ea.ey(new pY(c.audio,c.reason))}}; ZZa=function(a){a=a.ea;a=a.videoData.videoId?a.videoData.bfa:void 0;if(a)return nP(a)||void 0}; yZ=function(a){g.gp(a.rb)}; O0a=function(a,b){var c=(0,g.uu)()-b,d=SY(a.audioTrack,!0)*1E3,e=SY(a.videoTrack,!0)*1E3;a.logger.debug(function(){return"Appends paused for "+c}); if(a.policy.B&&(a.oa("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),qU(a.policy))){var f=HX(a.Z);a.oa("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:AWa(a.Z,a.Zr,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.Zr,ps:(a.policy.jG||"").toString(),rn:(a.policy.bG||"").toString()})}}; P0a=function(a){if(a.policy.j&&XY(a.videoTrack)&&XY(a.audioTrack))return"ssap";if(JZa(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.rb&&LZa(a.videoTrack)&&LZa(a.audioTrack))return"updateEnd";if(VY(a.audioTrack)||VY(a.videoTrack)&&a.videoTrack.j.info.sb!=="f")return"";if(a.Mg.isSeeking()){var b=a.Z;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.C){var e=b.policy.Gq;qU(b.policy)&&(e=AWa(b,!1,HX(b)));b=e;c=SY(d,!0)>=b&&SY(c,!0)>=b}else c.C.length|| d.C.length?(e=c.j.info.ub+d.j.info.ub,e=10*(1-HX(b)/e),b=Math.max(e,b.policy.Gq),c=SY(d,!0)>=b&&SY(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(c.C.length>0&&c.D.B.length===1&&cZa(c.D).info.D360);d=qU(a.policy)&&a.policy.mm;if(!a.Zr||!d&&c)return"";c=a.policy.Hj;qU(a.policy)&&(c=AWa(a.Z,a.Zr,HX(a.Z)));c= FZa(a.videoTrack,a.getCurrentTime(),c)||FZa(a.audioTrack,a.getCurrentTime(),c);return qU(a.policy)?c?"mbnm":"":(a.videoTrack.C.length>0||a.audioTrack.C.length>0||TZa(a.D,a.videoTrack,a.audioTrack)||TZa(a.D,a.audioTrack,a.videoTrack))&&c?"nord":""}; Q0a=function(a){if(a.G){var b=a.G.df(a.audioTrack,fG(a.Qa.B.oe()));b&&a.ea.seekTo(b,{qx:!0,bd:"pollSubsegmentReadahead",rr:!0})}}; W0a=function(a,b,c){if(a.policy.rb&&LZa(b))return!1;if(c.GQ())return!0;if(!c.UI())return!1;var d=QX(b);if(!d||d.info.type===6)return!1;var e=a.policy.SD;if(e&&!d.info.Se){var f=d.info.Ve-a.getCurrentTime();if(d.info.De)return a.policy.C&&T0a(a,b),!1;U0a(a,b);var l;a.policy.Dd&&c===((l=a.Qa)==null?void 0:l.j)&&a.Va&&(c.cK()===0?(a.Va=!1,a.policy.Dd=!1):a.Wa=c.cK());if(!V0a(a,c,d))return!1;a.policy.rb?d.isLocked=!0:(b.Qs(d),BYa(a.j,d.info),a.logger.debug(function(){return"Appended "+d.info.Rc()+", buffered: "+ bG(c.oe())})); return!0}; T0a=function(a,b){a.policy.Tl&&(b===a.videoTrack?a.Ka=a.Ka||(0,g.uu)():a.Fa=a.Fa||(0,g.uu)())}; U0a=function(a,b){a.policy.Tl&&(b===a.videoTrack?a.Ka=0:a.Fa=0)}; V0a=function(a,b,c){var d=a.policy.Ka?(0,g.uu)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=X0a(a,c,f)||f);var h=ZK(f);f=a.policy.Ka?(0,g.uu)():0;e=Y0a(a,b,h,c.info,e);a.policy.Ka&&(!c.info.Sb||c.info.Se||c.info.Ve<10)&&(b=b.vc({as:c.info.Rc(),pdur:Math.round(f-d),adur:Math.round((0,g.uu)()-f)}),b.omt=(a.getCurrentTime()+a.Ec()).toFixed(3),b.to=a.Ec(),a.oa("sba",b));if(e==="s")return a.Na&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Na=!1,a.fb=!1),a.Xa=0,!0;if(e==="i"||e==="x")return Z0a(a, "checked",e,c.info),!1;if(e==="q"){if(!a.Na)return a.logger.debug("QuotaExceeded, retrying."),a.Na=!0,!1;if(!a.fb)return a.fb=!0,a.ea.seekTo(a.getCurrentTime(),{bd:"quotaExceeded",rr:!0}),!1;c.info.zg()?(b=a.policy,b.Ca=Math.floor(b.Ca*.8),b.Ed=Math.floor(b.Ed*.8),b.ra=Math.floor(b.ra*.8)):(b=a.policy,b.fb=Math.floor(b.fb*.8),b.ra=Math.floor(b.ra*.8));pU(a.policy)?rY(a.C.j,c.info.j,!1):xY(a.j,c.info.j)}a.ea.Fq({reattachOnAppend:e});return!1}; X0a=function(a,b,c){var d;if(d=a.policy.nw&&a.Qa&&!a.Qa.qa&&!a.ea.uJ())b=b.info.j.info,d=b.Le()&&NF(b)&&b.video&&b.video.width<3840&&b.video.width>b.video.height;if(d&&(a.Qa.qa=!0,BF('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=$Ya(c),a.policy.B&&a.oa("sp4k",{s:!!c}),c}; Z0a=function(a,b,c,d){var e="fmt.unplayable",f=1;c==="x"||c==="m"?(e="fmt.unparseable",pU(a.policy)?!d.j.info.video||sY(a.C.j).size>0||rY(a.C.j,d.j,!1):!d.j.info.video||sY(a.j.G).size>0||xY(a.j,d.j)):c==="i"&&(a.Xa<15?(a.Xa++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=TN(d);var h;d.mrs=(h=a.Qa)==null?void 0:tG(h);d.origin=b;d.reason=c;a.handleError(e,d,f)}; rZa=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=YF(f.j[p].info.mimeType)||f.j[p].info.zg();if(d===m)if(m=f.j[p].index,m.jo(b.Pa)){if(!f.Wa){h=m;m=b;var n=h.Rn(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.uN(m),h=!0):h=!1}h&&(l=b.Pa)}else m.uN(b),h=!0}if(l>=0){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;SWa(a.Mg,b,d,f);a.B.WR(b,c,d,e);b.Pa===a.manifest.bf&&f&&EO(a.manifest)&&b.startTime>EO(a.manifest)&&(a.manifest.fb=b.startTime+(isNaN(a.timestampOffset)? 0:a.timestampOffset),a.Mg.isSeeking()&&a.Mg.j0&&a.Qa&&oG(a.Qa)&&(b=b.j.info.video?a.Qa.B:a.Qa.j)&&!b.yk()){b=b.oe();var d=cG(b,a.getCurrentTime());d>=0&&(b=a.getCurrentTime()-b.start(d),c+=Math.max(0,Math.min(b-a.policy.jq,a.policy.UD)))}a.policy.ra>0&&(c=Math.min(c,a.policy.ra));return c}; b1a=function(a){a.Ra&&!a.isSuspended&&yP(a.schedule)&&(a1a(a,a.Ra),a.Ra="")}; a1a=function(a,b){wW(b,"cms",function(c){a.policy.B&&a.oa("pathprobe",c)},function(c){a.ea.handleError(c)})}; c1a=function(a,b){if(a.Qa&&a.Qa.G&&!a.Qa.Og()&&(b.Hw=SY(a.videoTrack),b.B=SY(a.audioTrack),a.policy.B)){var c=QY(a.videoTrack),d=QY(a.audioTrack),e=bG(a.Qa.B.oe(),"_",5),f=bG(a.Qa.j.oe(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=GX(a.Z);a.logger.debug(function(){return uF(b.j)})}; d1a=function(a,b){a.K=b;a.B&&(a.B.N=b);a.K.wT(a.videoTrack.j.info.Le());a.D.B=a.K;a.policy.G&&(a.Y.K=a.K)}; e1a=function(a,b){if(a.Qa&&a.Qa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.getCurrentTime()!==b&&a.resume();if(a.Mg.isSeeking()&&a.Qa&&!a.Qa.Og()){var c=a.getCurrentTime()<=b&&b=b&&A0a(a,d.startTime,!1)}); return c&&c.startTimea.getCurrentTime())return c.start/1E3;return Infinity}; k1a=function(a){var b=MY(a.videoTrack),c=MY(a.audioTrack);return b&&!NZa(a.videoTrack)?b.startTime:c&&!NZa(a.audioTrack)?c.startTime:NaN}; $0a=function(a,b,c){a.policy.BD&&nR(a.ea.getVideoData())?(a.ea.HF()||Z0a(a,"sepInit",b,c.info),l1a(a.ea,"sie")):Z0a(a,"sepInit",b,c.info)}; c_a=function(a){return a.ea.uA()0){var e=d.j.shift();n1a(d,e.info)}d.j.length>0&&(e=d.j[0].time-(0,g.uu)(),d.B.start(Math.max(0,e)))}},0); g.Q(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)}; n1a=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&a.C.size>0)c=!0;else{for(var d=g.v(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||a.publish("rotated_need_key_info_ready",b)}; o1a=function(a){var b=a.url;var c=a.interval;a=a.retries;this.url=b;this.interval=c;this.retries=a}; p1a=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null}; q1a=function(a){var b=bL(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(c===-1)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(e==null)return null;e=e[1];isFinite(e)&&(e=String(e));e=typeof e==="string"?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=aN(b.slice(d+2));if(b==null)return null;a=new p1a(e,a.subarray(c+4));a.statusCode!==0&&(a.errorMessage=g.uwa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new o1a({url:c,interval:Number(b["Heartbeat-Interval-Secs"])|| 60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.v(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),e.length===2&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a}; r1a=function(a,b,c){c=c===void 0?"":c;g.K.call(this);this.message=a;this.requestNumber=b;this.We=c;this.onError=this.onSuccess=null;this.j=new g.mi(5E3,2E4,.2)}; s1a=function(a,b,c){a.onSuccess=b;a.onError=c}; u1a=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(e.status!==0&&e.response)if(gB("drm_net_r",void 0,a.We),e=new Uint8Array(e.response),e=q1a(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else t1a(a,e)}, onError:function(e){t1a(a,e)}}; c&&(b=Kfa(b,"access_token",c));g.ps(b,d)}; t1a=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)}; w1a=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Ma()){gB("drm_net_r",void 0,a.We);var h=f.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(f.license)try{l=Ze(f.license)}catch(u){g.Jx(u)}if(h!==0||l){l=new p1a(h,l);h!==0&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.v(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=v1a[q.trackType];if(r){r==="HD"&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");h[r]|| (m.push(r),h[r]=!0);var t=null;try{t=Ze(q.keyId)}catch(u){g.Jx(u)}t&&(n[g.Xe(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=Ze(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.RW="Bearer "+d);g.Yv(c,"player/get_drm_license",b,e)}; x1a=function(a,b,c,d){g.iy.call(this);this.videoData=a;this.X=b;this.Y=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.ra=!1;this.C=null;this.Ga=[];this.D=[];this.Z=!1;this.j={};this.Ca=NaN;this.status="";this.K=NaN;this.B=a.K;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.X.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ca&&(a.vvt=this.videoData.Ca,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment)); this.X.Ca&&(a.authuser=this.X.Ca);this.X.pageId&&(a.pageid=this.X.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Zb()))?e[1]:"";e==="ATV"&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;this.B.flavor==="widevine"&&(this.G.hdr="1");this.B.flavor==="playready"&&(b=Number(fP(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&b>=0&&(this.G.mfpe=""+b),this.qa=!1);b="";g.WO(this.B)?VO(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+ Qca(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.B.B;this.baseUrl=b;this.fairplayKeyId=cj(this.baseUrl,"ek")||"";if(b=cj(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Fa=this.videoData.L("html5_use_drm_retry");this.Ga=c.Le?[g.Xe(c.initData,4)]:c.C;DZ(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"}; B1a=function(a,b){DZ(a,{createkeysession:1});a.status="gr";gB("drm_gk_s",void 0,a.videoData.Va);a.url=y1a(a);try{a.C=b.createSession(a.Y,function(c){DZ(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&&(z1a(a.C,function(c,d){A1a(a,c,d)},function(c,d,e){if(!a.Ma()){d=void 0; var f=1;g.WO(a.B)&&g.LP(a.X)&&a.X.L("html5_enable_safari_fairplay")&&e===1212433232&&(d="ERROR_HDCP",f=a.X.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.Ma()||(DZ(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.qq(c)}),g.Q(a,a.C))}; y1a=function(a){var b=a.baseUrl;nva(b)||a.error("drm.net",2,"t.x");if(!cj(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.X.experiments.experiments[e]}); c.length>0&&(a.G.fexp=c.join())}c=g.v(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Kfa(b,d,a.G[d]);return b}; A1a=function(a,b,c){if(!a.Ma())if(b){DZ(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":C1a(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(gB("drm_gk_f",void 0,a.videoData.Va),a.ra=!0,a.publish("newsession",a));if(SO(a.B)&&(b=D1a(b),!b))return;g.WO(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=pBa(g.Xe(b)));b=new r1a(b,++a.requestNumber,a.videoData.Va);s1a(b,function(d){E1a(a, d)},function(d,e,f){if(!a.Ma()){var h=0,l; (l=d.j.B>=3)||(l=a.Fa&&(0,g.uu)()-a.Ca>36E4);l&&(h=1,e="drm.net.retryexhausted");DZ(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(wF(h),d)&&F1a(a,d)}}); g.Q(a,b);G1a(a,b)}else a.error("drm.unavailable",1,"km.empty")}; C1a=function(a,b){DZ(a,{sdpvrq:1});a.K=Date.now();if(a.B.flavor!=="widevine")a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.X.j);c=g.aj("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:bL(b)}),responseType:"arraybuffer"}; g.us(c,b,3,500).then(IL(function(d){d=d.xhr;if(!a.Ma()){d=new Uint8Array(d.response);var e=bL(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))}}),IL(function(d){a.Ma()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}}; EZ=function(a){var b;if(b=a.qa&&a.C!=null)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b}; G1a=function(a,b){a.status="km";gB("drm_net_s",void 0,a.videoData.Va);if(a.videoData.useInnertubeDrmService()){var c=new g.Xv(a.X.Sk),d={context:g.lv(c.config_||g.kv())};d.drmSystem=H1a[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Xe(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!((e=a.videoData.B)==null?0:(f=e.video)==null? 0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.X.j)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Ca&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Ca, scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Jb&&(d.context.user.kidsParent={oauthToken:a.videoData.Jb});g.WO(a.B)&&(d.fairplayKeyId=g.Xe(Rca(a.fairplayKeyId)));g.gQ(a.X,g.OR(a.videoData)).then(function(l){w1a(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.gQ(a.X,g.OR(a.videoData)).then(function(l){u1a(b,a.url,l); a.status="rs"})}; E1a=function(a,b){if(!a.Ma())if(DZ(a,{onlcsrsp:1}),a.status="rr",b.statusCode!==0)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{gB("drm_kr_s",void 0,a.videoData.Va);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.publish("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&& !a.videoData.RD&&a.publish("newlicense",new o1a({})),a.videoData.RD=!0,a.Z=Am(a.D,function(d){return d.includes("HDR")})); b.j&&(a.X.L("html5_enable_vp9_fairplay")&&VO(a.B)?(c=g.Xe(Rca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=yc(b.j,function(d){return{type:d,status:"unknown"}})); TO(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Ze(bL(b.message)):UO(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=pBa(g.Xe(b.message)));a.C&&(DZ(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){gB("drm_kr_f",void 0,a.videoData.Va);EZ(a)||(DZ(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Ye(d.message,3); a.error("drm.keyerror",1,d)})); a.N&&(a.Ca=(0,g.uu)());g.WO(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.X.L("html5_enable_vp9_fairplay")&&VO(a.B)&&a.publish("qualitychange",I1a(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}}; F1a=function(a,b){var c=b.j.getValue();c=new g.fp(function(){G1a(a,b)},c); g.Q(a,c);c.start();g.ni(b.j);DZ(a,{rtyrq:1})}; J1a=function(a,b){for(var c=[],d=g.v(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)}; K1a=function(a){var b={};b[a.status]=EZ(a)?J1a(a,"."):a.D.join(".");return b}; L1a=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}; M1a=function(a,b){for(var c in a.j)if(a.j[c].status==="usable"&&a.j[c].type===b)return!0;return!1}; N1a=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status}; DZ=function(a,b){var c=c===void 0?!1:c;uF(b);(c||a.X.yc())&&a.publish("ctmp","drmlog",b)}; O1a=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}; I1a=function(a){return g.rb(a,"UHD2")||g.rb(a,"UHD2HDR")?"highres":g.rb(a,"UHD1")||g.rb(a,"UHD1HDR")?"hd2160":g.rb(a,"HD")||g.rb(a,"HDHDR")?"hd1080":g.rb(a,"HD720")||g.rb(a,"HD720HDR")?"hd720":"large"}; D1a=function(a){for(var b="",c=0;c'.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new FZ(null,null,null,null,a)}; U1a=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}; R1a=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 19.2999?(a=c.uw,c=c.pw,c>=a&&(c=a*.75),b=(a-c)*.5,c=new BZ(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new CZ(b,this,a);break a;default:c=null}if(this.G=c)g.Q(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.LW,this),this.G.subscribe("log_qoe",this.pj,this);YO(this.X.experiments);this.pj({cks:this.j.getInfo()})}; W1a=function(a){var b=a.D.gO();b?b.then(IL(function(){Y1a(a)}),IL(function(c){if(!a.Ma()){g.Jx(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.pj({mdkrdy:1}),a.Y=!0); a.qa&&(b=a.qa.gO())}; $1a=function(a,b,c){a.Ra=!0;c=new EY(b,c);a.X.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));Z1a(a,c)}; Z1a=function(a,b){if(!a.Ma()){a.pj({onInitData:1});if(a.X.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.pj({initd:b.initData.length,ct:b.contentType});if(a.j.flavor==="widevine")if(a.Fa&&!a.videoData.isLivePlayback)IZ(a);else{if(!(a.X.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Le)){a.Fa=!0;c=b.cryptoPeriodIndex;var d=b.j;UYa(b);b.Le||(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.LW(b)}}; Y1a=function(a){if(!a.Ma())if(a.X.L("html5_drm_set_server_cert")||VO(a.j)){var b=a.D.setServerCertificate();b?b.then(IL(function(c){a.X.yc()&&a.publish("ctmp","ssc",{success:c})}),IL(function(c){a.publish("ctmp","ssce",{n:c.name, m:c.message})})).then(IL(function(){a2a(a)})):a2a(a)}else a2a(a)}; a2a=function(a){a.Ma()||(a.Y=!0,a.pj({onmdkrdy:1}),IZ(a))}; b2a=function(a){return a.j.flavor==="widevine"&&a.videoData.L("html5_drm_cpi_license_key")}; IZ=function(a){if((a.Ra||a.X.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Ga){for(;a.C.length;){var b=a.C[0],c=b2a(a)?VYa(b):g.Xe(b.initData);if(VO(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if(a.j.flavor!=="fairplay"||VO(a.j)){a.C.shift();continue}else a.B.delete(c);UYa(b);break}}a.C.length&&a.createSession(a.C[0])}}; c2a=function(a){var b;if(b=g.Hs()){var c;b=!((c=a.D.B)==null||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.fL(b),a.publish("ctmp","drm",{metrics:b}))}; d2a=function(a){g.K.call(this);var b=this;this.ea=a;this.Da=this.ea.U();this.videoData=this.ea.getVideoData();this.RF=0;this.K=this.B=this.G=!1;this.D=0;this.C=g.qD(this.Da.experiments,"html5_delayed_retry_count");this.j=new g.fp(function(){JZ(b.ea)},g.qD(this.Da.experiments,"html5_delayed_retry_delay_ms")); g.Q(this,this.j)}; h2a=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;nR(a.ea.getVideoData())&&a.Da.L("html5_gapless_fallback_on_qoe_restart")&&l1a(a.ea,"pe");if((b==="progressive.net.retryexhausted"||b==="fmt.unplayable"||b==="fmt.decode")&&!a.ea.Hk.G&&d&&d.itag==="22")return a.ea.Hk.G=!0,a.Rd("qoe.restart",{reason:"fmt.unplayable.22"}),KZ(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.o4)c.mimeType=f.type,a.oa("3pp",{url:f.url});c.ns="3pp";a.ea.Lf(b,1,"VIDEO_UNAVAILABLE",uF((new vF(b, c,1)).details));return!0}var h=a.RF+3E4<(0,g.uu)()||a.j.isActive();if(a.Da.L("html5_empty_src")&&a.videoData.isAd()&&b==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Rd("auth",c),!0;h||iOa(a.ea.Jm())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());(b==="fmt.decode"||b==="fmt.unplayable")&&(e==null?0:QF(e)||RF(e))&&($Ia(a.Da.G,e.sb),c.acfallexp=e.sb,f=h=!0);!h&&a.C>0&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ea.ya;!h&&((d==null?0:PF(d))||(d==null?0:NF(d)))&&($Ia(a.Da.G,d.sb), f=h=!0,c.cfallexp=d.sb);if(!h)return e2a(a,c);if(a.Da.L("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.fR(a.videoData)&&b==="fmt.unplayable"&&c.cid&&c.ccid&&c.cid!==c.ccid&&iOa(a.ea.Jm())&&(a.Rd("ssap.transitionfailure",c),h=a.ea,g.fR(h.videoData)&&h.xb&&BVa(h.xb)))return!0;h=!1;a.G?a.RF=(0,g.uu)():h=a.G=!0;var l=a.videoData;if(l.rb){l=l.rb.iY();var m=Date.now()/1E3+1800;l=l6048E5&&l2a(a,"signature");return!1}; l2a=function(a,b){try{window.location.reload(),a.Rd("qoe.restart",{detail:"pr."+b})}catch(c){}}; n2a=function(a,b){var c=a.Da.G;c.K=!1;c.B=!0;a.Rd("qoe.restart",{e:b===void 0?"fmt.noneavailable":b,detail:"hdr"});JZ(a.ea,!0)}; o2a=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e}; p2a=function(a,b,c){this.X=a;this.DH=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.qD(this.X.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map}; r2a=function(a,b,c){!a.X.L("html5_tv_ignore_capable_constraint")&&g.ED(a.X)&&(c=c.compose(q2a(a,b)));return c}; t2a=function(a,b){var c,d=s2a(a,(c=b.j)==null?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return c>1&&d?(a=VIa(a.X.G,b.j.videoInfos,c),new mM(0,a,!0,"o")):new mM(0,0,!1,"o")}; s2a=function(a,b){return b&&g.ED(a.X)?b.some(function(c){return c.video.fps>32}):!1}; u2a=function(a,b){var c=a.ea.KJ();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.tU>0&&qM(b.videoData.WB)&&(a=c.tU,b.videoData.WB=new mM(0,a,!1,"u"));return b.videoData.WB}; q2a=function(a,b){if(g.ED(a.X)&&EM(a.X.G,FM.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.JP(a.X)&&(e=window.screen&&window.screen.width?new g.Md(window.screen.width,window.screen.height):null);e||(e=a.X.Dn?a.X.Dn.clone():a.DH.Xh());(Ns||FX||d)&&e.scale(g.XP());d=e;oR(b.videoData)||PR(b.videoData);b=b.j.videoInfos;if(b.length){e=g.qD(a.X.experiments,"html5_override_oversend_fraction")||.85;var f=b[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&f.projectionType!== "EQUIRECTANGULAR_THREED_TOP_BOTTOM"||HP||(e=.45);a=g.qD(a.X.experiments,"html5_viewport_undersend_maximum");for(f=0;f6E4&&(a.B=0);a.B++;a.N=g.$a();if(a.B!==4)return!1;w2a(a,b.videoData.B);return!0}; z2a=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.qD(a.X.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!((0,g.uu)()-a.D<5E3?0:f||e>0))return!1;var h=((0,g.uu)()-a.D)/1E3;a.D=(0,g.uu)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.K,m=c.totalVideoFrames-a.Z;a.K=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||-1;f&&a.X.yc()&&a.ea.oa("ddf",{dr:c.droppedVideoFrames, de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.ED(a.X))return!1;a.j=(m>60?l/m:0)>e?a.j+1:0;if(a.j!==3)return!1;w2a(a,b.videoData.B);a.ea.oa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},y2a()));return!0}; w2a=function(a,b){var c=a.X,d=b.sb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(e>49?"p60":e>32?"p48":"");if(c.L("html5_gradual_perf_cap"))if(f<=0&&BIa("VideoPlayer",321298775,b,f.toFixed(0)),c=NO(c,d,e,h),f>0&&(c=Math.min(c,f)),!LZ.has(b)&&cM().includes(b))YBa(b,c,!0);else if(LZ.has(b)||h==null){a:{var l=l===void 0?!0:l;d=cM().slice();if(l){if(d.includes(b))break a;d.push(b)}else{if(!d.includes(b))break a;d.splice(d.indexOf(b),1)}g.zt("yt-player-performance-cap-active-set",d,2592E3)}MO.set(b,c)}else LZ.add(b), h==null||h.set(b,c);else YBa(b,f);a.ea.fp()}; A2a=function(a,b){if(!b.j.j)return a.G?new mM(0,360,!1,"b"):RQ;for(var c=!1,d=!1,e=g.v(b.j.videoInfos),f=e.next();!f.done;f=e.next())PF(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.qD(a.X.experiments,"html5_performance_cap_floor");e=a.X.B?240:e;b=g.v(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!PF(h))if(f=NO(a.X,h.sb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new mM(0,d,!1,"b")}; B2a=function(a,b){var c=a.ea.Jm();return c.isInline()&&!b.KN?new mM(0,480,!1,"v"):c.isBackground()&&tw()/1E3>60&&!g.ED(a.X)?new mM(0,360,!1,"v"):RQ}; D2a=function(a,b,c){if(a.X.experiments.ob("html5_disable_client_autonav_cap_for_onesie")&&b.fetchType==="onesie"||g.ED(a.X)&&($L(-1)>=1080||b.osid))return RQ;var d=g.qD(a.X.experiments,"html5_autonav_quality_cap"),e=g.qD(a.X.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&tw()/1E3>e?(c&&(d=C2a(a,c,d)),new mM(0,d,!1,"e")):RQ}; C2a=function(a,b,c){if(a.L("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b=0||(a.provider.ea.getVisibilityState()===3?a.G=!0:(a.j=g.SJ(a.provider),a.delay.start()))}; G2a=function(a){if(!(a.B<0)){var b=g.SJ(a.provider),c=b-a.D;a.D=b;a.playerState.state===8?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; H2a=function(a){var b;switch((b=a.X.playerCanaryStage)==null?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; J2a=function(a,b){b?I2a.test(a):(a=g.Vr(a),Object.keys(a).includes("cpn"))}; L2a=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Yr(a)&&Zr()){if(h){var n;((n=K2a.uaChPolyfill)==null?void 0:n.state.type)!==2?h=null:(h=K2a.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.Lr("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]= d:g.Lr("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.Lr("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ca)&&!ZP(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.Wl&&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")&&I2a.test(a)&&(l.withCredentials=!0)}Object.keys(m).length>0&&(l.headers=m);f&&(l.onFinish=f);return Object.keys(l).length>1?l:null}; M2a=function(a,b,c,d,e,f,h,l){Zr()&&c.token&&(a=g.Wr(a,{ctt:c.token,cttype:c.aU,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(b==null?b={}:J2a(a,d.L("html5_assert_cpn_with_regex")),h?Vv().sendAndWrite(a,b):Vv().sendThenWrite(a,b,l)):b?(J2a(a,d.L("html5_assert_cpn_with_regex")),g.ps(a,b)):g.Lv(a,e)}; O2a=function(a){for(var b=[],c=0;c500&&c.oa("vmlock",{diff:f.toFixed()});c.Fa=e},250)); a.ea.Xf()&&b&&(this.Ca=b-Math.round(g.SJ(a)*1E3));this.provider.videoData.dj&&(this.remoteControlMode=P2a[this.provider.videoData.dj]||0);this.provider.videoData.Kj&&(a=eDa(this.provider.videoData.Kj),a==null?0:a.length)&&(this.remoteConnectedDevices=a)}; g.OZ=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))}; Q2a=function(a,b){var c=a.adCpn||a.provider.videoData.clientPlaybackNonce,d=a.provider.getCurrentTime(c);g.OZ(a,b,"cmt",[d.toFixed(3)]);d=a.provider.Vf(c);if(a.D&&d*1E3>a.D.G_+100&&a.D){var e=a.D;c=e.isAd;d=d*1E3-e.G_;a.Ka=b*1E3-e.qda-d-e.Yca;e=(0,g.uu)()-d;b=a.Ka;d=a.provider.videoData;var f=d.isAd();if(c||f){f=(c?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=e-b;iB(f,h);g.hB({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce}, f);gB("pbs",e,f)}else e=a.provider.ea.Gi(),e.K!==d.clientPlaybackNonce?(e.G=d.clientPlaybackNonce,e.B=b):d.vk()||g.Kx(new g.Mt("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.oa("gllat",{l:a.Ka.toFixed(),prev_ad:+c});delete a.D}}; QZ=function(a,b){b=b===void 0?NaN:b;b=b>=0?b:g.SJ(a.provider);var c=a.provider.ea.lF(),d=c.Ws-(a.Va||0);d>0&&g.OZ(a,b,"bwm",[d,(c.Fv-(a.Tb||0)).toFixed(3)]);isNaN(a.Va)&&c.Ws&&a.isOffline&&a.UL(!1);a.Va=c.Ws;a.Tb=c.Fv;isNaN(c.bandwidthEstimate)||g.OZ(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.X.yc()&&Object.keys(c.j).length!==0&&a.oa("bwinfo",c.j);if(a.provider.X.yc()||a.provider.X.L("html5_log_meminfo"))d=z0a(),Object.values(d).some(function(e){return e!==void 0})&&a.oa("meminfo",d); a.qa&&g.OZ(a,b,"bat",[a.qa.level,a.qa.charging?"1":"0"]);d=a.provider.ea.getVisibilityState();a.Lc!==d&&(g.OZ(a,b,"vis",[d]),a.Lc=d);Q2a(a,b);(d=R2a(a.provider))&&d!==a.Nb&&(g.OZ(a,b,"conn",[d]),a.Nb=d);S2a(a,b,c)}; S2a=function(a,b,c){if(!isNaN(c.Hw)){var d=c.Hw;c.B96E3&&(new g.fp(a.reportStats,0,a)).start()}; W2a=function(a){a.provider.videoData.Dd&&RZ(a,"prefetch");a.provider.videoData.Bc&&a.oa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Bc});a.provider.videoData.Bb&&RZ(a,"monitor");a.provider.videoData.isLivePlayback&&RZ(a,"live");eP&&RZ(a,"streaming");a.provider.videoData.Om()&&RZ(a,"lifa");a.provider.videoData.dj&&a.oa("ctrl",{mode:a.provider.videoData.dj},!0);if(a.provider.videoData.Kj){var b=a.provider.videoData.Kj.replace(/,/g,"_");a.oa("ytp",{type:b},!0)}a.provider.videoData.BW&& (b=a.provider.videoData.BW.replace(/,/g,"."),a.oa("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.X.L("enable_white_noise")||a.provider.X.L("enable_webgl_noop");c=g.uR(c)||g.FR(c)||g.GR(c)||g.HR(c);(b||c)&&(b=(0,g.SZ)())&&(a.j.gpu=[b]);PR(a.provider.videoData)&&g.OZ(a,g.SJ(a.provider),"dt",["1"]);a.provider.X.yc()&&(b=(0,g.uu)()-a.provider.X.Sf,a.oa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.K=g.gs(function(){a.reportStats()},1E4)}; Y2a=function(a,b,c){var d=g.SJ(a.provider);X2a(a,d,b,0,c);QZ(a,d);V2a(a)}; X2a=function(a,b,c,d,e){var f=a.provider.X.j.cbrver;a.provider.X.j.cbr==="Chrome"&&/^96[.]/.test(f)&&c==="net.badstatus"&&/rc\.500/.test(e)&&Z2a(a,3);a.provider.X.L("html5_use_ump")&&/b248180278/.test(e)&&Z2a(a,4);f=a.provider.getCurrentTime(a.adCpn||a.provider.videoData.clientPlaybackNonce);d=d===1?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+BB());e&&c.push($2a(e));g.OZ(a,b,"error",c);a.C=!0}; a3a=function(a){a.B>=0||(a.provider.X.Qf||a.provider.ea.getVisibilityState()!==3?a.B=g.SJ(a.provider):a.Wa=!0)}; MVa=function(a,b,c,d){if(c!==a.Ge){b=10&&a.playTimeSecs<=180&&(a.provider.ea.pG(),a.j.qoealert=["1"],a.fb=!0)),c!=="B"||a.Ge!=="PL"&&a.Ge!=="PB"||(a.isBuffering=!0),a.G=b);a.Ge==="PL"&&(c==="B"||c==="S")||a.provider.X.yc()?QZ(a,b):(a.rb||c!=="PL"||(a.rb=!0,S2a(a,b,a.provider.ea.lF())),Q2a(a,b));c==="PL"&&g.gp(a.Xc);var e=[c];c==="S"&&d&&e.push("ss."+d);g.OZ(a, b,"vps",e);a.Ge=c;a.zb=b;a.G=b;a.C=!0}}; RZ=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c}; pX=function(a,b,c,d,e,f){var h=g.SJ(a.provider);c!==1&&c!==3&&c!==5||g.OZ(a,h,"vps",[a.Ge]);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}; Z2a=function(a,b){if(!a.Xa){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.Xa=!0}}; $2a=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a}; b3a=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.iq=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.ea.getVolume();this.Z=this.provider.ea.isMuted()?1:0;this.B=TZ(this.provider)}; UZ=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.nb(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?a.B.endTime===0&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=TZ(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j}; d3a=function(a){c3a(a);a.K=g.gs(function(){a.update()},100); a.iq=g.SJ(a.provider);a.B=TZ(a.provider)}; c3a=function(a){g.is(a.K);a.K=NaN}; e3a=function(a,b,c){c-=a.iq;return b===a.j&&c>.5}; f3a=function(a,b,c,d){this.X=b;this.Bc=c;this.segments=[];this.experimentIds=[];this.bb=this.Tb=this.isFinal=this.delayThresholdMet=this.zb=this.Dd=this.autoplay=this.autonav=!1;this.Lc="yt";this.K=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.Xa=!1;this.N=this.pageId="";this.D=c==="watchtime";this.C=c==="playback";this.ra=c==="atr";this.uh=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.ra?"/api/stats/"+c:"//"+b.En+"/api/stats/"+c;d&&(this.Tb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState= d.state,d.rti>0&&(this.Z=d.rti)):(this.Rf=d.mos,this.Jg=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.Td=d.inview),d.size&&(this.Xc=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.Ae=g.Jc(b.j);this.N=fP(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.Nb=g.Jc(b.Nb);this.Qf=b.Lc;this.experimentIds=SIa(b.experiments);this.Wa=b.tj;this.Lc=b.qa;this.region= b.region;this.userAge=b.userAge;this.rb=b.wj;this.ke=tw();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ca=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Sf=b.L("vss_final_ping_send_and_write");this.Ga=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Tf=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.EP(b)&&(this.Ra=b.Fa);g.at(g.NP(b))&&this.K.push(1);this.accessToken= g.OR(a);a.L("html5_add_per_destination_base_query_for_video_stats_urls")?a.xp[this.Bc]?this.Fa=a.xp[this.Bc]:a.xp.playback&&(this.Fa=a.xp.playback):a.Fa&&(this.Fa=a.Fa);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=JLa(a);this.C&&(this.Dd=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Iq&&KR(a)=="adunit"?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=MR(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.zb= a.Ff;a.G&&(this.Y=a.G,this.Jb=a.yn);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Pk;this.Kb=a.Kb;a.B&&(this.Yd=a.B.itag,a.D&&a.D.itag!==this.Yd&&(this.Bb=a.D.itag));a.j&&wM(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=KR(a);this.bb=a.Ai?!1:a.Ti;this.jf=a.zn;if(b=yR(a))this.Uf=b;this.rf=a.Lv;this.Na=a.Na;this.eventId=a.eventId;this.playlistId=a.HY||a.playlistId;this.yA=a.yA;this.dj=a.dj;this.Kj=a.Kj;this.Np=a.Np;this.subscribed=a.subscribed;this.videoId=a.videoId; this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.SC=a.SC;this.referrer=a.referrer;this.Ap=a.yW||a.Ap;this.fb=a.XC;this.nB=a.nB;this.userGenderAge=a.userGenderAge;this.Ov=a.Ov;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.EP(this.X)&&a.mutedAutoplay&&this.K.push(2);a.Zc(new g.Md(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.K.push(3);g.TR(a)&&this.K.push(4);this.Va=a.tW;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken= a.compositeLiveIngestionOffsetToken)}; g3a=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.gQ(a.X,a.accessToken).then(function(d){return L2a(a.uri,a.X,a.pageId,c,d,b,a.Pf)})}; j3a=function(a,b){return function(){a.X.L("html5_simplify_pings")?(a.j=a.Ka,a.Ed=b(),a.ke=0,a.send()):g3a(a).then(function(c){var d=h3a(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.aj(a.uri,d);a.X.L("vss_through_gel_double")&&i3a(d);a.Ca?(c==null&&(c={}),a.Ga?Vv().sendAndWrite(d,c):Vv().sendThenWrite(d,c)):c?g.ps(d,c):g.Lv(d)})}}; h3a=function(a){var b={ns:a.Lc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.Yd,fs:a.Tb?"1":"0",rt:a.B(a.Ed),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Qf,lact:a.ke,live:a.Uf,cl:(650814266).toString(),mos:a.Rf,state:a.playerState,volume:a.Jg};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Ae);a.N==="all"?Object.assign(b,a.Nb):a.N==="once"&&a.C&&Object.assign(b,a.Nb);a.autoplay&&(b.autoplay="1");a.Dd&&(b.sautoplay="1");a.zb&&(b.dni="1");!a.D&&a.Ra&&(b.epm=k3a[a.Ra]); a.isFinal&&(b["final"]="1");a.bb&&(b.splay="1");a.Kb&&(b.delay=a.Kb);a.Wa&&(b.hl=a.Wa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);a.userAge!==void 0&&a.rb&&(b.uga=a.rb+a.userAge);a.Ka!==void 0&&(b.len=a.B(a.Ka));!a.D&&a.experimentIds.length>0&&(b.fexp=a.experimentIds.toString());a.G!==null&&(b.rtn=a.B(a.G));a.Ap&&(b.feature=a.Ap);a.dj&&(b.ctrl=a.dj);a.Kj&&(b.ytr=a.Kj);a.Bb&&(b.afmt=a.Bb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.qc&&(b.lio=a.B(a.qc)); a.D?(b.idpj=a.jf,b.ldpj=a.rf,a.delayThresholdMet&&(b.dtm="1"),a.Z!=null&&(b.rti=a.B(a.Z)),a.Ov&&(b.ald=a.Ov),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):a.adType!==void 0&&(b.at=a.adType);a.Xc&&(a.C||a.D)&&(b.size=a.Xc);a.C&&a.K.length&&(b.pbstyle=a.K.join(","));a.Td!=null&&(a.C||a.D)&&(b.inview=a.B(a.Td));a.D&&(b.volume=VZ(a,g.Bl(a.segments,function(d){return d.volume})),b.st=VZ(a,g.Bl(a.segments,function(d){return d.startTime})),b.et=VZ(a,g.Bl(a.segments,function(d){return d.endTime})), Am(a.segments,function(d){return d.playbackRate!==1})&&(b.rate=VZ(a,g.Bl(a.segments,function(d){return d.playbackRate}))),Am(a.segments,function(d){return d.j!=="-"})&&(b.als=g.Bl(a.segments,function(d){return d.j}).join(",")),Am(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.Bl(a.segments,function(d){return""+ +d.previouslyEnded}).join(","))); b.muted=VZ(a,g.Bl(a.segments,function(d){return d.muted?1:0})); Am(a.segments,function(d){return d.visibilityState!==0})&&(b.vis=VZ(a,g.Bl(a.segments,function(d){return d.visibilityState}))); Am(a.segments,function(d){return d.connectionType!==0})&&(b.conn=VZ(a,g.Bl(a.segments,function(d){return d.connectionType}))); Am(a.segments,function(d){return d.B!==0})&&(b.blo=VZ(a,g.Bl(a.segments,function(d){return d.B}))); Am(a.segments,function(d){return!!d.C})&&(b.blo=g.Bl(a.segments,function(d){return d.C}).join(",")); Am(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.Bl(a.segments,function(d){return d.compositeLiveStatusToken}).join(",")); Am(a.segments,function(d){return d.G!=="-"})&&(b.cc=g.Bl(a.segments,function(d){return d.G}).join(",")); Am(a.segments,function(d){return d.clipId!=="-"})&&(b.clipid=g.Bl(a.segments,function(d){return d.clipId}).join(",")); if(Am(a.segments,function(d){return!!d.D})){var c="au"; a.C&&(c="au_d");b[c]=g.Bl(a.segments,function(d){return d.D}).join(",")}Zr()&&a.Y&&(b.ctt=a.Y,b.cttype=a.Jb,b.mdx_environment=a.mdxEnvironment); a.uh&&(b.etype=a.qa!==void 0?a.qa:0);a.fb&&(b.uoo=a.fb);a.livingRoomAppMode&&a.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(b.clram=l3a[a.livingRoomAppMode]||a.livingRoomAppMode);a.Fa?m3a(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.SC,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.Np&&(b.ssrt="1"),a.nB&&(b.upt=a.nB));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn= a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Va&&(b.host_cpn=a.Va);return b}; m3a=function(a,b){if(b&&a.Fa){var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);a.Fa.ns==="3pp"&&(b.ns="3pp");for(var f=g.v(Object.keys(a.Fa)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Fa[h]||(b[h]=a.Fa[h])}}; VZ=function(a,b){return g.Bl(b,a.B).join(",")}; i3a=function(a){a.indexOf("watchtime")!==-1&&g.bu("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})}; n3a=function(a,b){a.attestationResponse&&g3a(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ca?a.Ga?Vv().sendAndWrite(b,c):Vv().sendThenWrite(b,c):g.ps(b,c)})}; WZ=function(a){g.K.call(this);this.provider=a;this.K="paused";this.D=NaN;this.N=[10,10,10,40];this.Y=this.Z=0;this.ra=this.Ga=this.Ca=this.qa=this.C=!1;this.B=this.G=NaN;this.j=new b3a(a)}; r3a=function(a){if(!a.C){a.provider.videoData.mH===16623&&g.Kx(Error("Playback for EmbedPage"));var b=XZ(a,"playback");a:{if(a.provider.X.L("web_player_use_server_vss_schedule")){var c,d=(c=a.provider.videoData.getPlayerResponse())==null?void 0:c.playbackTracking,e=d==null?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=d==null?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&e.length>0&&d){c=[];var f=a.provider.videoData.zn,h=a.provider.videoData.Lv,l=-f;e=g.v(e);for(var m=e.next();!m.done;m= e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.N=c;break a}}a.N=[10+a.provider.videoData.zn,10,10,40+a.provider.videoData.Lv-a.provider.videoData.zn,40]}d3a(a.j);b.G=YZ(a);a.B>0&&(b.j-=a.B);b.send();a.provider.videoData.Aw&&(b=a.provider.X,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Aw,oid:d.XV,ptchn:d.IU,pltype:d.ZV,content_v:MR(d)},d.nw&&Object.assign(c,{m:d.nw}),b=g.aj(b.Ga+"ptracking",c),o3a(a,b));a.provider.videoData.Kb||(p3a(a), q3a(a),a.Zs());a.C=!0;b=a.j;b.j=b.provider.ea.Vf();b.iq=g.SJ(b.provider);!(b.C===0&&b.j<5)&&b.j-b.C>2&&(b.C=b.j);b.N=!0;a.provider.X.L("html5_log_vss_details")&&a.provider.ea.oa("vssinit",{})}}; YZ=function(a,b){b=b===void 0?NaN:b;var c=g.SJ(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.N[a.Z];a.Z+11E3;!(f.length>1)&&f[0].isEmpty()||l||(h.G=YZ(a,e));h.send();a.Y++}},(e-c)*1E3); return a.G=e}; ZZ=function(a){g.hs(a.D);a.D=NaN}; s3a=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||UZ(a);var b=a.segments;a.segments=[];return b}; XZ=function(a,b){var c=u3a(a.provider);Object.assign(c,{state:a.K});b=new f3a(a.provider.videoData,a.provider.X,b,c);b.j=a.provider.ea.Vf();c=a.provider.videoData.clientPlaybackNonce;a.provider.X.L("html5_ssap_vss_fix")&&(b.j=a.provider.ea.GJ(c));a.provider.videoData.isLivePlayback||(b.Ka=a.provider.ea.getDuration(c));a.provider.videoData.j&&(c=a.provider.videoData.j.lf(b.j))&&(b.qc=c-b.j);b.Ed=g.SJ(a.provider);b.segments=[TZ(a.provider)];return b}; t3a=function(a,b){var c=XZ(a,"watchtime");v3a(a)&&(c.delayThresholdMet=!0,a.Ca=!0);if(a.B>0){for(var d=g.v(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.KP();c.segments=b;return c}; $Z=function(a,b){var c=w3a(a,!isNaN(a.G));b&&(a.G=NaN);return c}; w3a=function(a,b){var c=t3a(a,s3a(a));!isNaN(a.G)&&b&&(c.Z=a.G);return c}; v3a=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Kb&&a.C&&!a.Ca)b=a.j,b=b.G+b.provider.ea.Vf()-b.C>=a.provider.videoData.Kb;return!!b}; p3a=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.Ga&&(o3a(a,a.provider.videoData.youtubeRemarketingUrl),a.Ga=!0)}; q3a=function(a){a.provider.videoData.googleRemarketingUrl&&!a.ra&&(o3a(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0)}; x3a=function(a){a.provider.X.L("html5_log_vss_details")&&a.provider.ea.oa("vssfi",{});if(!a.Ma()&&a.C){a.K="paused";var b=$Z(a);b.isFinal=!0;b.send();a.dispose()}}; y3a=function(a,b){if(!a.Ma())if(g.U(b.state,2)||g.U(b.state,512)){if(a.K="paused",g.tz(b,2)||g.tz(b,512))g.tz(b,2)&&(a.j.previouslyEnded=!0),a.C&&(ZZ(a),$Z(a).send(),a.G=NaN)}else if(g.U(b.state,8)){a.provider.X.L("html5_shorts_gapless_vss_pbs_fix")&&nR(a.provider.videoData)&&!a.C&&r3a(a);a.K="playing";var c=a.C&&isNaN(a.D)?YZ(a):NaN;!isNaN(c)&&(sz(b,64)<0||sz(b,512)<0)&&(a=w3a(a,!1),a.G=c,a.send())}else a.K="paused"}; z3a=function(a,b,c){if(!a.qa){c||(c=XZ(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if(d.message!=="Unknown Error")throw d;}a.qa=!0}}; o3a=function(a,b){var c=a.provider.X;g.gQ(a.provider.X,g.OR(a.provider.videoData)).then(function(d){var e=a.provider.X.pageId,f=a.provider.X.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.X.L("vss_pings_using_networkless")||a.provider.X.L("kevlar_woffle"),l=a.provider.X.L("allow_skip_networkless");d=L2a(b,c,e,f,d);M2a(b,d,{token:a.provider.videoData.G,aU:a.provider.videoData.yn,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})}; A3a=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}; a_=function(a,b,c){this.videoData=a;this.X=b;this.ea=c;this.j=void 0}; g.SJ=function(a){return B3a(a)()}; B3a=function(a){if(!a.j){var b=g.Za(function(d){var e=(0,g.uu)();d&&e<=631152E6&&(a.ea.oa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.X.L("html5_validate_yt_now")),c=b(); a.j=function(){return Math.round(b()-c)/1E3}; a.ea.bS()}return a.j}; u3a=function(a){var b=a.ea.Or()||{};b.fs=a.ea.BF();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;b.clipid=a.ea.eA();var c;b.playerheight=((c=a.ea.getPlayerSize())==null?void 0:c.height)||0;var d;b.playerwidth=((d=a.ea.getPlayerSize())==null?void 0:d.width)||0;a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Tk&&(c.infringe=1);(a.Ai?0:a.Ti)&&(c.splay=1); (d=yR(a))&&(c.live=d);a.Iq&&(c.sautoplay=1);a.Ik&&(c.autoplay=1);a.yA&&(c.sdetail=a.yA);a.Na&&(c.partnerid=a.Na);a.osid&&(c.osid=a.osid);a.JD&&(c.cc=g.ZJa(a.JD));return Object.assign(b,c)}; R2a=function(a){if(navigator.connection&&navigator.connection.type)return C3a[navigator.connection.type]||C3a.other;if(g.ED(a.X)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0}; TZ=function(a){var b=new A3a,c;b.G=((c=u3a(a).cc)==null?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();c!==0&&(b.visibilityState=c);a.X.rb&&(b.B=1);b.C=a.videoData.Xy;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.Xb&&c.Xb.id&&c.Xb.id!=="und"&&(b.D=c.Xb.id);b.connectionType=R2a(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.eA()||"-";b.j=a.videoData.rW||"-";return b}; g.b_=function(a,b){g.K.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Ge=new g.BG;this.fd={Wna:function(){return c.qoe}, ioa:function(){return c.j}, Gna:function(){return c.B}}; this.provider.videoData.ue()&&!this.provider.videoData.im&&(this.j=new WZ(this.provider),this.provider.X.L("html5_ssap_vss_fix")&&(this.j.B=this.provider.videoData.Sf/1E3),g.Q(this,this.j),this.qoe=new g.PZ(this.provider,b),g.Q(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Ng=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Ng,this.j));if(a.X.playerCanaryState==="canary"||a.X.playerCanaryState==="holdback")this.B=new MZ(this.provider),g.Q(this,this.B)}; D3a=function(a){return!!a.j&&!!a.qoe}; qX=function(a){a.B&&F2a(a.B);a.qoe&&a3a(a.qoe)}; E3a=function(a){if(a.qoe){a=a.qoe;for(var b=g.v(a.provider.X.uh),c=b.next();!c.done;c=b.next())RZ(a,c.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(b=g.v(a.provider.videoData.zp),c=b.next();!c.done;c=b.next())RZ(a,c.value);else a.provider.videoData.uh&&RZ(a,a.provider.videoData.uh);a.provider.videoData.dc()&&(b=a.provider.videoData.j,eR(a.provider.videoData)&&RZ(a,"manifestless"),b&&FO(b)&&RZ(a,"live-segment-"+FO(b).toFixed(1)));cR(a.provider.videoData)&&RZ(a,"sabr");a.provider.videoData.gatewayExperimentGroup&& (b=a.provider.videoData.gatewayExperimentGroup,b==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?b="spkadtrt":b==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(b="spkadctrl"),RZ(a,b));a.provider.X.qa!=="yt"&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!PR(a.provider.videoData)&&a.UL(!0);a.provider.X.yc()&&(b=NUa())&&a.oa("cblt",{m:b});tR(a.provider.videoData)&&(a.provider.ea.getProximaLatencyPreference()?RZ(a,"proximaui"):RZ(a,"proximaexp"))}}; OVa=function(a){if(a.provider.ea.Xf()){if(a.D)return;a.D=!0}a.j&&r3a(a.j);if(a.B){a=a.B;var b=g.SJ(a.provider);a.j<0&&(a.j=b,a.delay.start());a.B=b;a.D=b}}; NVa=function(a,b){if(g.tz(b,1024)||g.tz(b,512)||g.tz(b,4)){if(a.B){var c=a.B;c.B>=0||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Ng){var d;(d=a.C.get(a.Ng))==null||y3a(d,b)}else a.j&&y3a(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.SJ(d.provider),f=d.getPlayerState(c);MVa(d,e,f,c.seekSource||void 0);f=c.eh;g.U(c,128)&&f&&(f.RL=f.RL||"",X2a(d,e,f.errorCode,f.IE,f.RL));(g.U(c,2)||g.U(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(d.B>=0&& (d.j.user_intent=[d.B.toString()]),d.N=!0);V2a(d)}a.B&&(d=a.B,G2a(d),d.playerState=b.state,d.B>=0&&g.tz(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.Xf()&&(a.Ge=b.state)}; F3a=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Ng){var b;(b=a.C.get(a.Ng))!=null&&UZ(b.j)}else a.j&&UZ(a.j.j)}; G3a=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){b.Ge==="PL"&&(b.Ge="N");var c=g.SJ(b.provider);g.OZ(b,c,"vps",[b.Ge]);b.N||(b.B>=0&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.X.yc()&&b.oa("finalized",{});b.Ga=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.v(a.C.values()),c=b.next();!c.done;c=b.next())x3a(c.value);else a.j&&x3a(a.j);a.dispose()}; H3a=function(a,b){a.j&&z3a(a.j,b)}; I3a=function(a){if(!a.j)return null;var b=XZ(a.j,"atr");return function(c){a.j&&z3a(a.j,c,b)}}; J3a=function(a,b,c,d){c.adFormat=c.qc;var e=b.ea;b=new WZ(new a_(c,b.X,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, Vf:function(){return e.Vf()}, GJ:function(){return e.GJ()}, Xf:function(){return e.Xf()}, lF:function(){return e.lF()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, pF:function(){return e.pF()}, getVisibilityState:function(){return e.getVisibilityState()}, Gi:function(){return e.Gi()}, Or:function(){return e.Or()}, getVolume:function(){return e.getVolume()}, isMuted:function(){return e.isMuted()}, BF:function(){return e.BF()}, eA:function(){return e.eA()}, getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()}, bS:function(){e.bS()}, pG:function(){e.pG()}, oa:function(f,h){e.oa(f,h)}})); b.B=d;g.Q(a,b);return b}; K3a=function(){this.Hw=0;this.C=this.Fv=this.Ws=this.B=NaN;this.j={};this.bandwidthEstimate=NaN}; c_=function(a,b,c){g.K.call(this);var d=this;this.X=a;this.ea=b;this.B=c;this.j=new Map;this.Ng="";this.fd={Vn:function(){return Array.from(d.j.keys())}}}; PVa=function(a,b){a.j.has(b)&&(G3a(a.j.get(b)),a.j.delete(b))}; L3a=function(){this.j=g.hE;this.array=[]}; N3a=function(a,b,c){var d=[];for(b=M3a(a,b);bc)break}return d}; O3a=function(a,b){var c=[];a=g.v(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; P3a=function(a){return a.array.slice(M3a(a,0x7ffffffffffff),a.array.length)}; M3a=function(a,b){a=Ib(a.array,function(c){return b-c.start||1}); return a<0?-(a+1):a}; Q3a=function(a,b){var c=NaN;a=g.v(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b1)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(b>0&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1}; W3a=function(a,b){this.videoData=a;this.j=b}; X3a=function(a,b,c){return b.LI(c).then(function(){return xs(new W3a(b,b.C))},function(d){d instanceof Error&&g.Kx(d); var e=zF('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=BF('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.iP(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.lx(),d:!!b.Xc,drm:b.Yi(),f18:b.Uf.indexOf("itag=18")>=0,c18:e};b.j&&(b.Yi()?(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=BF('video/mp4; codecs="avc1.42001E"'), e.cVP9=BF('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 vF(d,e,h)})}; Y3a=function(a){this.G=a;this.C=this.B=0;this.D=new QT(50)}; g_=function(a,b,c){g.iy.call(this);this.videoData=a;this.experiments=b;this.K=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.N=0;c=new Z3a;a.latencyClass==="ULTRALOW"&&(c.D=!1);a.Bb?c.B=3:g.DR(a)&&(c.B=2);a.latencyClass==="NORMAL"&&(c.G=!0);var d=g.qD(b,"html5_liveness_drift_proxima_override");if(tR(a)&&d){c.j=d;var e;((e=a.j)==null?0:XEa(e))&&c.j--}if(g.Fs("trident/")||g.Fs("edge/"))c.C=Math.max(c.C,g.qD(b,"html5_platform_minimum_readahead_seconds")||3);g.qD(b,"html5_minimum_readahead_seconds")&& (c.C=g.qD(b,"html5_minimum_readahead_seconds"));g.qD(b,"html5_maximum_readahead_seconds")&&(c.K=g.qD(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.qD(b,"html5_liveness_drift_chunk_override"))c.j=b;sR(a)&&(c.j=(c.j+1)/5,a.latencyClass==="LOW"&&(c.j*=2));this.policy=c;this.Z=this.policy.B!==1;this.j=f_(this,$3a(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))}; a4a=function(a,b){if(b)return b=a.videoData,b=$3a(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),f_(a,b);if(a.B.length){if(Math.min.apply(null,a.B)>1)return f_(a,a.j-1);if(a.policy.D)return f_(a,a.j+1)}return a.j}; b4a=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=a4a(a,b===void 0?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b}; h_=function(a,b){return b>=a.Un()-c4a(a)}; d4a=function(a,b,c){b=h_(a,b);c||b?b&&(a.C=!0):a.C=!1;a.Z=a.policy.B===2||a.policy.B===3&&a.C}; e4a=function(a,b){b=h_(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b}; c4a=function(a){var b=a.policy.j;a.G||(b=Math.max(b-1,0));return b*i_(a)}; $3a=function(a,b,c){c.Bb&&b--;sR(c)&&(b=1);if(tR(c)&&(a=g.qD(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;((d=c.j)==null?0:XEa(d))&&b++}return b}; i_=function(a){return a.videoData.j?FO(a.videoData.j)||5:5}; f_=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/i_(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/i_(a))),b)}; Z3a=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1}; l_=function(a){g.K.call(this);this.ea=a;this.X=this.ea.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.fp(this.df,1E3,this);this.rb=new j_({delayMs:g.qD(this.X.experiments,"html5_seek_timeout_delay_ms")});this.Fa=new j_({delayMs:g.qD(this.X.experiments,"html5_long_rebuffer_threshold_ms")});this.Bb=k_(this,"html5_seek_set_cmt");this.Va=k_(this,"html5_seek_jiggle_cmt");this.bb=k_(this,"html5_seek_new_elem");this.Tb=k_(this,"html5_unreported_seek_reseek");this.Ca=k_(this,"html5_long_rebuffer_jiggle_cmt"); this.Ka=k_(this,"html5_long_rebuffer_ssap_clip_not_match");this.Ga=new j_({delayMs:2E4});this.Wa=k_(this,"html5_seek_new_elem_shorts");this.fb=k_(this,"html5_seek_new_media_source_shorts_reuse");this.Xa=k_(this,"html5_seek_new_media_element_shorts_reuse");this.Ra=k_(this,"html5_reseek_after_time_jump");this.Z=k_(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=k_(this,"html5_gapless_slow_seek");this.Y=k_(this,"html5_gapless_slice_append_stuck");this.ra=k_(this,"html5_gapless_slow_start"); this.N=k_(this,"html5_ads_preroll_lock_timeout");this.Nb=k_(this,"html5_ssap_ad_longrebuffer_new_element");this.Jb=new j_({delayMs:g.qD(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Tz:!this.X.L("html5_report_slow_ads_as_error")});this.zb=new j_({delayMs:g.qD(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Tz:!this.X.L("html5_skip_slow_buffering_ad")});this.Kb=new j_({delayMs:g.qD(this.X.experiments,"html5_slow_start_timeout_delay_ms")});this.Na=k_(this,"html5_slow_start_no_media_source"); this.B={};g.Q(this,this.G)}; k_=function(a,b){var c=g.qD(a.X.experiments,b+"_delay_ms");a=a.X.L(b+"_cfl");return new j_({delayMs:c,Tz:a})}; f4a=function(a,b){a.j=b}; m_=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Rd(e,b,h),b.Tz||f()):(b.ZL&&b.B&&!b.D?(c=(0,g.uu)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.ZL,c=b.j&&c-b.j>b.PS||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.vc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ea.oa("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))}; j_=function(a){var b=a===void 0?{}:a;a=b.delayMs===void 0?0:b.delayMs;var c=b.PS===void 0?1E3:b.PS;var d=b.ZL===void 0?3E4:b.ZL;b=b.Tz===void 0?!1:b.Tz;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.PS=c;this.ZL=d;this.Tz=b}; j4a=function(a){g.K.call(this);var b=this;this.ea=a;this.X=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new g4a;this.Ca=new l_(this.ea);this.K=this.j=this.ya=this.mediaElement=this.playbackData=null;this.B=NaN;this.D=0;this.Na=NaN;this.C=null;this.Ra=NaN;this.G=this.Y=null;this.qa=!1;this.rb=NaN;this.Jb=0;this.N=!1;this.Ka=new g.fp(function(){h4a(b,!1)},2E3); this.zb=new g.fp(function(){n_(b)}); this.Wa=new g.fp(function(){b.qa=!0;i4a(b,{})}); this.timestampOffset=0;this.Ga=!0;this.Va=0;this.Bb=NaN;this.Fa=new g.fp(function(){var c=b.X.Pf;c.j+=1E4/36E5;c.j-c.C>1/6&&(kJa(c),c.C=c.j);b.Fa.start()},1E4); this.bb=this.Kb=!1;this.Z=0;this.fb=!1;this.ra=0;g.Q(this,this.Ca);g.Q(this,this.Ka);g.Q(this,this.Wa);g.Q(this,this.zb);g.Q(this,this.Fa)}; m4a=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new Y3a(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(eR(a.videoData)&&a.ya){var c=a.ya.aJ.fh()||0;break a}if(a.videoData.j){c=a.videoData.j.Fa;break a}}c=0}return c}),a.j=new g_(a.videoData,a.X.experiments,function(){return a.qe(!0)})); o_(a.ea)?(b=k4a(a),b.sU?(cR(a.videoData)&&a.L("html5_sabr_enable_utc_seek_requests")&&a.cC(b.sU,b.startSeconds),a.D=b.startSeconds):b.startSeconds>0&&a.seekTo(b.startSeconds,{bd:"seektimeline_startPlayback",seekSource:15})):l4a(a)||(a.D=a.D||(g.fR(a.videoData)?0:a.videoData.startSeconds)||0)}; o4a=function(a,b){(a.ya=b)?n4a(a,!0):p_(a)}; p4a=function(a,b){g.gp(a.Ca.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.gp(a.Fa):a.Fa.stop());if(a.mediaElement)if(b.xB.state===8&&IG(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Dh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?cG(c,Math.max(b-3.5,0)):cG(c,b-3.5);d>=0&&b>c.end(d)-1.1&&d+10?(q_(a.ea,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.bb=!0):a.videoData.isLivePlayback&&a.videoData.endSeconds>0&&(q_(a.ea,a.getCurrentTime()+a.videoData.endSeconds),a.bb=!0))}; r4a=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&&c50&&e.B.shift())),e=a.j,d4a(e,c,b===void 0?!0:b),e4a(e,c),b&&h4a(a,!0));d!==a.Kb&&(b=a.getCurrentTime()-a.rb<=500,c=a.Jb>=1E3,b||c||(b=a.ea.pc(),b.qoe&&(b=b.qoe,c=g.SJ(b.provider), g.OZ(b,c,"lh",[d?"1":"0"])),a.Kb=d,a.Jb++,a.rb=a.getCurrentTime()))}; h4a=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!h_(c,d)&&c.eq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d0&&xG(a.mediaElement)>0&&(a.B=w4a(a,a.B,!1)),!a.mediaElement||!x4a(a))a.zb.start(750);else if(!isNaN(a.B)&&isFinite(a.B)){var b=a.Ra-(a.B-a.timestampOffset);if(!(b===0||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005))if(b=a.mediaElement.getCurrentTime()-a.B,Math.abs(b)<=a.Va||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005)a.C&&a.C.resolve(a.mediaElement.getCurrentTime()); else{if(a.videoData.OD)a.videoData.OD=!1;else if(!bR(a.videoData)&&a.B>=a.qe()-.1){a.B=a.qe();a.C.resolve(a.qe());JW(a.ea);return}try{var c=a.B-a.timestampOffset;a.mediaElement.seekTo(c);a.Ca.j=c;a.Ra=c;a.D=a.B;a.L("html5_enable_new_seek_timeline_logic")&&(a.N=!1)}catch(d){}}}}; x4a=function(a){if(!a.mediaElement||a.mediaElement.Yk()===0||a.mediaElement.hasError())return!1;var b=a.mediaElement.getCurrentTime()>0;if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.Yi())return b;if(a.B>=0){var c=a.mediaElement.tA();if(c.length||!b)return dG(c,a.B-a.timestampOffset)}return b}; v4a=function(a,b){a.G&&(a.G.resolve(b),a.ea.publish("SEEK_COMPLETE"),a.X.yc()&&(b=a.vc(),b["native"]=""+ +a.N,b.otgt=""+(a.B+a.timestampOffset),a.ea.oa("seekEnd",b)));p_(a)}; p_=function(a){a.B=NaN;a.Ra=NaN;a.C=null;a.Y=null;a.G=null;a.qa=!1;a.N=!1;a.Va=0;a.Ka.stop();a.Wa.stop()}; z4a=function(a,b,c){var d=a.mediaElement,e=b.type;switch(e){case "seeking":var f=d.getCurrentTime()+a.timestampOffset;if(!a.C||a.N&&f!==a.B){var h=!!a.C;a.C=new vG;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){v4a(a,m)},function(){p_(a)}); if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;Lsa({adCpn:a.videoData.clientPlaybackNonce,contentCpn:(l=a.videoData.tW)!=null?l:""},b.j);a.L("enable_ask_gating")&&a.ea.hL()}a.Ra=f;f4a(a.Ca,d.getCurrentTime());a.seekTo(f,{seekSource:104,bd:"seektimeline_mediaElementEvent"});c&&RVa(c,f*1E3,!!h);a.N=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":o_(a.ea)||y4a(a);n_(a);break;case "progress":n_(a);break;case "pause":a.Z=a.getCurrentTime()}a.Z&& ((e==="play"||e==="playing"||e==="timeupdate"||e==="progress")&&a.getCurrentTime()-a.Z>10&&a.seekTo(a.Z,{bd:"pauseJump"}),e!=="pause"&&e!=="play"&&e!=="playing"&&e!=="progress"&&(a.Z=0))}; A4a=function(a){return(ER(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||l4a(a))&&!!a.videoData.j}; l4a=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&a.videoData.startSeconds>1E9}; k4a=function(a){var b=0,c=NaN,d="";bR(a.videoData)&&(b=Infinity);if(g.DR(a.videoData))return{startSeconds:b,sU:c,source:d};a.videoData.startSeconds?(d="ss",b=a.videoData.startSeconds):a.videoData.Yd&&(d="stss",b=a.videoData.Yd);a.videoData.liveUtcStartSeconds&&(c=a.videoData.liveUtcStartSeconds);return{startSeconds:b,sU:c,source:d}}; y4a=function(a){if(a.Ga)if(g.DR(a.videoData))a.Ga=!1;else{var b="ss",c=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Nb&&!l4a(a)&&(b="mss",c=a.videoData.Nb);(a.videoData.Xa?a.L("html5_prioritize_windowed_st_start_seconds"):a.L("html5_prioritize_st_start_seconds"))&&!c&&a.videoData.Yd&&(b="stss",c=a.videoData.Yd);!c&&A4a(a)&&(c=a.videoData.liveUtcStartSeconds||a.videoData.Nb,b="utc",c=a.qe()-a.lf(a.qe())+c);!c&&a.videoData.Yd&&(b="stss",c=a.videoData.Yd);var d={};if(c){if(c>a.qe()||c< a.od())d.minSeekableTime=a.od(),d.maxSeekableTime=a.qe(),d.cmt=a.getCurrentTime(),d.it=a.lf(a.getCurrentTime()),d.ss=c,d.utc=A4a(a)?a.videoData.liveUtcStartSeconds||a.videoData.Nb:0,a.ea.oa("startSecondsOutOfBounds",d),a.videoData.dc()&&(c=w4a(a,c,!1));a.seekTo(c,{bd:"seektimeline_startSeconds"});d[b]=c;a.ea.oa("startSeconds",d);a.Ga=!1}else a.videoData.Nb&&(d[b]=a.videoData.Nb+a.Ec(),a.ea.oa("startSeconds",d))}}; B4a=function(a,b){a.ea.oa("sdai",{adj4t:b.toFixed(3)});a.Na=b;b+=1;a.B=b;a.D=b;u4a(a).then(function(c){v4a(a,c)},function(){p_(a)})}; q4a=function(a){return a.mediaElement?yG(a.mediaElement):0}; g4a=function(){}; r_=function(){this.j=this.started=!1}; H4a=function(a){function b(e){return c.Ul&&(!d.Cn||!d.Da.N)||c.qa!=="yt"&&(d.Na===38&&c.playerStyle==="books"||d.Na===30&&c.playerStyle==="docs"||d.Na===33&&c.playerStyle==="google-live")?C4a(a,d,e):D4a(a,d).then(function(){s_(a,d)},function(f){s_(a,d,!0); throw f;})} var c=a.U(),d=a.getVideoData();d.Ma();d.loading=!0;return E4a(a)?F4a(a,d).then(function(){s_(a,d)},function(e){e=xF(e); if(wF(e.severity))return s_(a,d,!0),Promise.reject(e);e.errorCode==="onesie.response.badproxystatus"&&""+e.details.st==="3"&&(G4a=!0);a.handleError(e);return b("onesie")}):b("gvi")}; E4a=function(a){var b=a.U();if(b.L("html5_disable_onesie")||!b.L("html5_onesie")||!b.L("html5_onesie_inline")&&a.getVisibilityState()===5||b.qa!=="yt")return!1;var c=b.Tk;if(!c||!c.j)return a.handleError(new vF("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.uu)()&&(a.oa("okexp","1"),(c=a.sA())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=(d=c.j.get(0))==null?void 0:IM(d.location))&&!AW(b)&&c.j.delete(0)}if(G4a)return a.oa("ost3","1"),!1;d={};return Object.keys(d).length> 0?(d.onesie="0",a.handleError(new vF("html5.missingapi",d)),!1):!0}; I4a=function(a){var b=MS();NS(b,a);return g.zB(b,HBa())}; F4a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,u,x,B,E,F,I,O,N,S,Y,la,oa,ba,qa;return g.H(function(P){if(P.j==1)return b.fetchType="onesie",c=bMa(b,a.getPlayerSize(),a.getVisibilityState()),d=new qZ(a,c),g.G(P,d.fetch(),2);e=P.B;f={player_response:e};b.loading=!1;h=a.yd.Ou;if(d.cg){l=g.v(d.cg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.v(n),q=p.next().value,r=p.next().value,t=q,u=r,h.j.set(t,u,180),t===b.videoId&&(x=u.Hr(),b.gI=x);h.cA=d}B=g.v(d.aY.entries());for(E=B.next();!E.done;E= B.next())F=E.value,I=g.v(F),O=I.next().value,N=I.next().value,S=O,Y=N,h.B.set(S,Y,180);g.WQ(b,f,!0);if(b.loading||TQ(b))return P.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.gI=[];la={};oa="onesie.response";ba=0;b.errorCode?(oa="auth",la.ec=b.errorCode,la.ed=b.errorDetail,la.es=b.On||"",ba=2):(la.successButUnplayable="1",la.disposed=""+ +b.Ma(),la.afmts=""+ +/adaptiveFormats/.test(e),la.cpn=b.clientPlaybackNonce);qa=new vF(oa,la,ba);return P.return(Promise.reject(qa))})}; D4a=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(!(f0)){t.Ia(5);break}return g.G(t,Se(5E3),6);case 6:h=new g.Mt("Retrying OnePlatform request",{attempt:f}),g.Kx(h);case 5:return g.xa(t,7),g.G(t,J4a(a,b),9);case 9:return t.return();case 7:l=g.Aa(t);m=xF(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&n==="manifest.net.badstatus"&&m.details.rc===401&&(d=!1,f===e-1&&(e+=1)):d&&n=== "manifest.net.badstatus"&&m.details.rc==="401"&&(d=!1,f===e-1&&(e+=1));if(n==="auth"||n==="manifest.net.retryexhausted")return t.return(Promise.reject(m));a.handleError(m);if(wF(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 vF(q,{backend:"op"},r)))}})}; J4a=function(a,b){function c(oa){oa.readyState===2&&a.Sd("ps_c")} var d,e,f,h,l,m,n,p,q,r,t,u,x,B,E,F,I,O,N,S,Y,la;return g.H(function(oa){switch(oa.j){case 1:b.fetchType="gp";d=a.U();e=g.gQ(d,g.OR(b));if(!e.j){f=e.getValue();oa.Ia(2);break}return g.G(oa,e.j,3);case 3:f=oa.B;case 2:return h=f,l=I4a(h),m=bMa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.sA(K4a),p=g.OR(b),q=(0,g.uu)(),r=!1,t="empty",u=0,a.Sd("psns"),x={BB:c},g.G(oa,g.oB(l,m,n,void 0,x),4);case 4:B=oa.B;a.Sd("psnr");if(b.Ma())return oa.return();B?"error"in B&&B.error?(r=!0,t="esf:"+B.error.message, u=B.error.code):B.errorMetadata&&(r=!0,t="its",u=B.errorMetadata.status):r=!0;if(r)return E=0,F=((0,g.uu)()-q).toFixed(),I={},I=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:u,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Lr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.Ca?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.dj||"",token_eq:p===g.OR(b)?"1":"0"}:{backend:"op", rc:""+u,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Lr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.Ca?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.dj||"",token_eq:p===g.OR(b)?"1":"0"},O="manifest.net.connect",u===429?(O="auth",E=2):u>200&&(O="manifest.net.badstatus",u===400&&(E=2)),oa.return(Promise.reject(new vF(O,I,E)));b.loading=!1;g.WQ(b,{raw_player_response:B},!0); N=B;g.KP(b.U())&&N&&N.trackingParams&&QL(N.trackingParams);if(b.errorCode)return S={ec:b.errorCode,ed:b.errorDetail,es:b.On||""},oa.return(Promise.reject(new vF("auth",S,2)));if(!b.loading&&!TQ(b))return Y=b.isAd()?"auth":"manifest.net.retryexhausted",la=b.isAd()?2:1,oa.return(Promise.reject(new vF(Y,{successButUnplayable:"1",hasMedia:g.AR(b)?"1":"0"},la)));g.va(oa)}})}; C4a=function(a,b,c){function d(u){u=xF(u);if(wF(u.severity))return Promise.reject(u);a.handleError(u);return!1} function e(){return!0} var f,h,l,m,n,p,q,r,t;return g.H(function(u){switch(u.j){case 1:var x=a.U(),B=a.getPlayerSize(),E=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(b.Na===38&&x.playerStyle==="books")F=b.videoId.indexOf(":"),F=g.aj("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.T3});else if(b.Na===30&&x.playerStyle==="docs")F=g.aj("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.zca,authkey:b.Wea,eurl:x.Lc});else if(b.Na=== 33&&x.playerStyle==="google-live")F=g.aj("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{x.qa!=="yt"&&g.Jx(Error("getVideoInfoUrl for invalid namespace: "+x.qa));var I={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:x.Lc,ps:x.playerStyle,el:KR(b),hl:x.tj,list:b.playlistId,agcid:b.zW,aqi:b.adQueryId,sts:19914,lact:tw()};Object.assign(I,x.j);x.forcedExperiments&&(I.forced_experiments=x.forcedExperiments);b.Ca?(I.vvt=b.Ca,b.mdxEnvironment&&(I.mdx_environment=b.mdxEnvironment)): g.OR(b)&&(I.access_token=g.OR(b));b.adFormat&&(I.adformat=b.adFormat);b.slotPosition>=0&&(I.slot_pos=b.slotPosition);b.breakType&&(I.break_type=b.breakType);b.aD!==null&&(I.ad_id=b.aD);b.eD!==null&&(I.ad_sys=b.eD);b.QD!==null&&(I.encoded_ad_playback_context=b.QD);b.GD&&(I.tpra="1");x.captionsLanguagePreference&&(I.cc_lang_pref=x.captionsLanguagePreference);x.Jb&&x.Jb!==2&&(I.cc_load_policy=x.Jb);var O=g.Ht(g.Gt(),65);g.YP(x)&&O!=null&&!O&&(I.device_captions_on="1");x.mute&&(I.mute=x.mute);b.annotationsLoadPolicy&& x.annotationsLoadPolicy!==2&&(I.iv_load_policy=b.annotationsLoadPolicy);b.ow&&(I.endscreen_ad_tracking=b.ow);(O=x.Na.get(b.videoId))&&O.FM&&(I.ic_track=O.FM);b.ra&&(I.itct=b.ra);JLa(b)&&(I.autoplay="1");b.mutedAutoplay&&(I.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(I.autonav="1");b.YD&&(I.noiba="1");b.isMdxPlayback&&(I.mdx="1",I.ytr=b.Kj);b.mdxControlMode&&(I.mdx_control_mode=b.mdxControlMode);b.Mw&&(I.ytrcc=b.Mw);b.SF&&(I.utpsa="1");b.isFling&&(I.is_fling="1");b.isInlinePlaybackNoAd&&(I.mute="1"); b.vnd&&(I.vnd=b.vnd);b.forceAdsUrl&&(O=b.forceAdsUrl.split("|").length===3,I.force_ad_params=O?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Dd&&(I.preload=b.Dd);B.width&&(I.width=B.width);B.height&&(I.height=B.height);(b.Ai?0:b.Ti)&&(I.splay="1");b.ypcPreview&&(I.ypc_preview="1");MR(b)&&(I.content_v=MR(b));b.Bb&&(I.livemonitor=1);x.Ca&&(I.authuser=x.Ca);x.pageId&&(I.pageid=x.pageId);x.fb&&(I.ei=x.fb);x.D&&(I.iframe="1");b.contentCheckOk&&(I.cco="1");b.racyCheckOk&&(I.rco="1");x.N&&b.TH&&(I.live_start_walltime= b.TH);x.N&&b.Sl&&(I.live_manifest_duration=b.Sl);x.N&&b.playerParams&&(I.player_params=b.playerParams);x.N&&b.cycToken&&(I.cyc=b.cycToken);x.N&&b.ID&&(I.tkn=b.ID);E!==0&&(I.vis=E);x.enableSafetyMode&&(I.enable_safety_mode="1");b.Jb&&(I.kpt=b.Jb);b.wp&&(I.kids_age_up_mode=b.wp);b.kidsAppInfo&&(I.kids_app_info=b.kidsAppInfo);b.wB&&(I.upg_content_filter_mode="1");x.widgetReferrer&&(I.widget_referrer=x.widgetReferrer.substring(0,128));b.qa?(B=b.qa.latitudeE7!=null&&b.qa.longitudeE7!=null?b.qa.latitudeE7+ ","+b.qa.longitudeE7:",",B+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):B=null;B&&(I.uloc=B);b.tp&&(I.internalipoverride=b.tp);x.embedConfig&&(I.embed_config=x.embedConfig);x.mm&&(I.co_rel="1");x.ancestorOrigins.length>0&&(I.ancestor_origins=Array.from(x.ancestorOrigins).join(","));x.homeGroupInfo!==void 0&&(I.home_group_info=x.homeGroupInfo);x.livingRoomAppMode!==void 0&&(I.living_room_app_mode=x.livingRoomAppMode);x.enablePrivacyFilter&& (I.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(I.is_living_room_deeplink="1");b.ew&&b.gw&&(I.clip=b.ew,I.clipt=b.gw);b.mw&&(I.disable_watch_next="1");b.En&&(I.forced_by_var="1");for(var N in I)!L4a.has(N)&&I[N]&&String(I[N]).length>512&&(g.Kx(Error("GVI param too long: "+N)),I[N]="");N=x.Ga;g.LP(x)&&(N=bE(N.replace(/\b(?:www|web)([.-])/,"tv$1"))||x.Ga);x=g.aj(N+"get_video_info",I);F&&(x=Gma(x,F));F=x}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m0)){u.Ia(5);break}return g.G(u, Se(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=Xr(f,p);case 5:return g.G(u,M4a(b,n).then(e,d),7);case 7:if(q=u.B)return u.return();m++;u.Ia(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&Math.random()<1E-4)try{g.Kx(new g.Mt("b/152131571",btoa(f)))}catch(S){}return u.return(Promise.reject(new vF(r,{backend:"gvi"},t)))}})}; M4a=function(a,b){function c(B){return d(B.xhr)} function d(B){if(!a.Ma()){B=B?B.status:-1;var E=0,F=((0,g.uu)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:B,rt:F}:{backend:"gvi",rc:""+B,rt:F};var I="manifest.net.connect";B===429?(I="auth",E=2):B>200&&(I="manifest.net.badstatus",B===400&&(E=2));return Promise.reject(new vF(I,F,E))}} var e,f,h,l,m,n,p,q,r,t,u,x;return g.H(function(B){if(B.j==1){a.fetchType="gvi";e=a.U();var E={};a.hD&&(E.ytrext=a.hD);(l=g.Gc(E)?void 0:E)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Xr(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=fP(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);Object.keys(m).length> 0&&(f.headers=m);p=(0,g.uu)();return g.G(B,sO(ts,h,f).then(void 0,c),2)}q=B.B;if(!q||!q.responseText)return B.return(d(q));a.loading=!1;r=Tr(q.responseText);g.WQ(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.On||""},B.return(Promise.reject(new vF("auth",t,2)));if(!a.loading&&!TQ(a))return u=a.isAd()?"auth":"manifest.net.retryexhausted",x=a.isAd()?2:1,B.return(Promise.reject(new vF(u,{successButUnplayable:"1"},x)));g.va(B)})}; s_=function(a,b,c){c=c===void 0?!1:c;var d,e,f,h;g.H(function(l){if(l.j==1){d=a.U();if(c&&(!g.$P(d)||KR(b)!=="embedded")||b.mw||KR(b)!=="adunit"&&(g.ED(d)||RP(d)||g.Lz(d)||g.LP(d)||g.dP(d)==="WEB_CREATOR"))return l.return();e=g.gQ(d,g.OR(b));return e.j?g.G(l,e.j,3):(f=e.getValue(),l.Ia(2))}l.j!=2&&(f=l.B);h=f;return l.return(N4a(a,b,h))})}; N4a=function(a,b,c){var d,e,f,h,l;return g.H(function(m){if(m.j==1){g.xa(m,2);d=I4a(c);var n=b.U();g.Gt();var p={context:g.UR(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};KR(b)==="adunit"&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.mm&&(p.showContentOwnerOnly=!0);b.lX&&(p.showShortsOnly=!0);g.Ht(0,141)&&(p.autonavState=g.Ht(0,140)?"STATE_OFF":"STATE_ON");if(g.YP(n)){var q=g.Ht(0,65);q=q!=null? !q:!1;var r=!!g.At("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=(t=n.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.sA(O4a);a.Sd("wn_s");return g.G(m,g.oB(d,e,f),4)}if(m.j!=2)return h=m.B,a.Sd("wn_r"),!h||"error"in h&&h.error||(l=h,g.KP(b.U())&&l.trackingParams&&QL(l.trackingParams),g.WQ(b,{raw_watch_next_response:h},!1)),g.za(m,0);g.Aa(m);g.va(m)})}; P4a=function(a){a.Sd("vir");a.Sd("ps_s");lB("vir",void 0,"video_to_ad");var b=H4a(a);b.then(function(){a.Sd("virc");lB("virc",void 0,"video_to_ad");a.Sd("ps_r");lB("ps_r",void 0,"video_to_ad")},function(){a.Sd("virc"); lB("virc",void 0,"video_to_ad")}); return b}; g.v_=function(a,b,c,d,e,f,h,l,m,n){m=m===void 0?new g.SQ(a):m;n=n===void 0?!0:n;g.iy.call(this);var p=this;this.X=a;this.playerType=b;this.Rb=c;this.DH=d;this.getVisibilityState=f;this.visibility=h;this.yd=l;this.videoData=m;this.e7=n;this.logger=new g.LO("VideoPlayer");this.iE=new V3a(this.X);this.Be=null;this.LB=new HZ;this.Cr=null;this.Hk=new p2a(this.X,this.DH,this);this.SY=!0;this.Qa=this.ya=null;this.wq=[];this.xq=new r_;this.If=this.JG=null;this.Fs=new r_;this.GL=null;this.bZ=this.yu=!1;this.HL= NaN;this.J0=!1;this.playerState=new g.BG;this.KL=[];this.JC=new g.EF;this.ll=new d2a(this);this.mediaElement=null;this.Kx=new g.fp(this.Haa,15E3,this);this.hT=this.cL=!1;this.wy=NaN;this.II=!1;this.hO=0;this.AF=!1;this.DK=NaN;this.PT=new RT(new Map([["bufferhealth",function(){return q4a(p.Qc)}], ["bandwidth",function(){return p.xP()}], ["networkactivity",function(){return p.X.schedule.Y}], ["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?Q4a(p):NaN}], ["rawlivelatency",function(){return Q4a(p)}]])); this.RF=0;this.loop=!1;this.playbackRate=1;this.LZ=0;this.Qc=new j4a(this);this.VW=!1;this.JL=[];this.UQ=this.K0=0;this.cT=this.m3=!1;this.Fv=this.Ws=0;this.UN=new g.fp(this.Z8,0,this);this.t2=!1;this.xb=this.Wc=null;this.J$=[this.JC,this.UN,this.Kx,this.PT];this.Hf=function(){var q=p.pc();q.provider.X.Qf||q.provider.ea.getVisibilityState()===3||(q.provider.X.Qf=!0);F3a(q);if(q.B){var r=q.B;r.G&&r.j<0&&r.provider.ea.getVisibilityState()!==3&&F2a(r)}q.qoe&&(q=q.qoe,q.Wa&&q.B<0&&q.provider.X.Qf&&a3a(q), q.C&&QZ(q));p.ya&&t_(p);p.X.Bp&&!p.videoData.backgroundable&&p.mediaElement&&!p.Zh()&&(p.isBackground()&&p.mediaElement.vI()?(p.oa("bgmobile",{suspend:1}),p.Uo(!0,!0)):p.isBackground()||u_(p)&&p.oa("bgmobile",{resume:1}))}; this.fd={qq:function(q){p.qq(q)}, kpa:function(q){p.Be=q}, Pna:function(){return p.gB}, qA:function(){return p.hB}, nna:function(){return p.iO}, ona:function(){return p.jO}, Hoa:function(){}, U:function(){return p.X}, Ke:function(){return p.mediaElement}, Joa:function(q){p.uL(q)}}; this.logger.debug(function(){return"creating, type "+b}); this.Ah=new d_(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.iE("endcr")||g.U(p.playerState,32)||JW(p); e(q,r,p.playerType)},function(q,r){g.fR(p.videoData)&&p.oa(q,r)}); g.Q(this,this.Ah);g.Q(this,this.Qc);R4a(this,m);this.videoData.subscribe("dataupdated",this.pca,this);this.videoData.subscribe("dataloaded",this.AO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.oa,this);this.videoData.subscribe("ctmpstr",this.Ay,this);this.gJ();yUa(this.Hf);this.visibility.subscribe("visibilitystatechange",this.Hf);this.iO=new g.fp(this.hM,g.qD(this.X.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.jO= new g.fp(this.hM,g.qD(this.X.experiments,"html5_player_att_retry_delay_ms")||4500,this)}; rG=function(a){return a.L("html5_not_reset_media_source")&&!a.Yi()&&!a.videoData.isLivePlayback&&g.LR(a.videoData)&&!a.X.supportsGaplessShorts()}; R4a=function(a,b){if(a.playerType===2||a.X.Wp)b.AU=!0;var c=cKa(b.qc,b.ZB,a.X.D,a.X.N);c&&(b.adFormat=c);a.playerType===2&&(b.Ik=!0);if(a.isFullscreen()||a.X.D)c=g.At("yt-player-autonavstate"),b.autonavState=c||(a.X.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&q_(a,b.endSeconds)}; T4a=function(a){if(a.videoData.Y){var b=a.yd.Uc();a.videoData.Mv=a.videoData.Mv||(b==null?void 0:b.BP());a.videoData.Nv=a.videoData.Nv||(b==null?void 0:b.EP())}if(BLa(a.videoData)||!PLa(a.videoData))b=a.videoData.errorDetail,a.Lf(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.On||void 0);a.videoData.Jg=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&S4a(a);a.L("html5_enable_d6de4")&&a.lU()}; U4a=function(a){G3a(a.gB);g.fb(a.gB);for(var b=a.hB,c=g.v(b.j.values()),d=c.next();!d.done;d=c.next())G3a(d.value);b.j.clear();g.fb(a.hB)}; V4a=function(a){return a.mediaElement&&a.mediaElement.Zv()?a.mediaElement.Ib():null}; w_=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.ue())return!0;a.Lf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.IW=function(a,b){(b=b===void 0?!1:b)||g.fR(a.videoData)||qX(a.pc());a.yu=b;!w_(a)||a.xq.Cu()?g.ED(a.X)&&a.videoData.isLivePlayback&&a.xq.Cu()&&!a.xq.j&&!a.yu&&a.AO():(a.xq.start(),b=a.pc(),g.SJ(b.provider),b.qoe&&W2a(b.qoe),a.AO())}; W4a=function(a){var b=a.videoData;P4a(a).then(void 0,function(c){a.videoData!==b||b.Ma()||(c=xF(c),c.errorCode==="auth"&&a.videoData.errorDetail?a.Lf(c.errorCode,2,unescape(a.videoData.errorReason),uF(c.details),a.videoData.errorDetail,a.videoData.On||void 0):a.handleError(c))})}; bVa=function(a,b){a.Wc=b;a.ya&&d1a(a.ya,new g.zZ(b))}; Z4a=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.wq=g.zb(a.videoData.Ka),g.AR(a.videoData)){a.Rb.tick("bpd_s");x_(a).then(function(){a.Rb.tick("bpd_c");if(!a.Ma()){a.yu&&(a.Gc(EG(EG(a.playerState,512),1)),u_(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&q_(a,c.endSeconds);a.xq.j=!0;y_(a,"dataloaded");a.Fs.Cu()&&X4a(a);E2a(a.Hk,a.If)}}); a.L("html5_log_media_perf_info")&&a.oa("loudness",{v:a.videoData.Rf.toFixed(3)},!0);var b=QLa(a.videoData);b&&a.oa("playerResponseExperiment",{id:b},!0);Y4a(a)}else y_(a,"dataloaded")}; x_=function(a){z_(a);a.If=null;var b=X3a(a.X,a.videoData,a.Zh());a.JG=b;a.JG.then(function(c){$4a(a,c)},function(c){a.Ma()||(c=xF(c),a.visibility.isBackground()?(A_(a,"vp_none_avail"),a.JG=null,a.xq.reset()):(a.xq.j=!0,a.Lf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",uF(c.details))))}); return b}; KZ=function(a){a.logger.debug("Updating for format change");x_(a).then(function(){return u_(a)}); a.playerState.isOrWillBePlaying()&&a.playVideo()}; $4a=function(a,b){if(!a.Ma()&&!b.videoData.Ma()){a.logger.debug("finished building playback data");a.If=b;m4a(a.Qc,a.If);if(a.videoData.isLivePlayback){var c=jWa(a.yd.Ou,a.videoData.videoId)||a.ya&&!isNaN(a.ya.Ca);c=a.L("html5_onesie_live")&&c;o_(a)||a.videoData.Nb>0&&!eR(a.videoData)||c||a.seekTo(a.qe(),{bd:"videoplayer_playbackData",seekSource:18})}if(a.videoData.C.j){if(a.L("html5_sabr_report_missing_url_as_error")&&NLa(a.videoData)){a.handleError(new vF("fmt.missing",{missabrurl:"1"},2));return}a.ya? g.Kx(Error("Duplicated Loader")):(c=g.qD(a.X.experiments,"html5_onesie_defer_content_loader_ms"))&&vZ(a)&&jWa(a.yd.Ou,a.videoData.X3)?g.fs(function(){a.Ma()||a.ya||a5a(a)},c):a5a(a)}else!a.videoData.C.j&&PR(a.videoData)&&a.oL(new FY(a.videoData.videoId||"",4)); B_(a);v2a(b).then(function(){var d={};a.fp(d);a.X.yc()&&a.L("html5_log_media_perf_info")&&a.oa("av1Info",d);t_(a)})}}; b5a=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.activate();g.IW(a);w_(a)&&!g.U(a.playerState,128)&&(a.Fs.Cu()||(a.Fs.start(),a.videoData.Tl?a.Gc(EG(a.playerState,4)):a.Gc(EG(EG(a.playerState,8),1))),X4a(a))}; X4a=function(a){a.Ma();a.logger.debug("try finish readying playback");if(a.Fs.j)a.logger.debug("already finished readying");else if(a.xq.j)if(g.U(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.wq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.wq}); else if(a.Ah.started||S3a(a.Ah),a.ao())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.ya&&(a.bZ=eYa(a.ya.timing));a.Fs.j||(a.Fs.j=!0);var b=a.L("html5_onesie_live")&&a.ya&&!isNaN(a.ya.Ca);!a.videoData.isLivePlayback||a.videoData.Nb>0&&!eR(a.videoData)||b||o_(a)||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{bd:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.hT=!0));E3a(a.pc());a.logger.debug("finished readying playback");a.publish("playbackready", a);jB("pl_c",a.Rb.timerName)||(a.Rb.tick("pl_c"),lB("pl_c",void 0,"video_to_ad"));jB("pbr",a.Rb.timerName)||(a.Rb.tick("pbr"),lB("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")}; JW=function(a,b,c){b=b===void 0?!0:b;(c===void 0||c)&&a.mediaElement&&a.mediaElement.pause();a.Gc(b?new g.BG(14):new g.BG)}; q_=function(a,b){a.Cr&&c5a(a);a.Cr=new g.gE(b*1E3,0x7ffffffffffff);a.Cr.namespace="endcr";a.addCueRange(a.Cr)}; c5a=function(a){a.removeCueRange(a.Cr);a.Cr=null}; d5a=function(a,b,c,d,e){var f=a.pc(e);e=g.fR(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.UT(a);f.FG(new o2a(e,c,b,h?h.itag:"",d));c=a.Hk;c.B=0;c.j=0;a.publish("internalvideoformatchange",e,b==="m")}; g.UT=function(a){var b=C_(a);return qM(b)||!a.If?null:g.pb(a.If.j.videoInfos,function(c){return b.D(c)})}; C_=function(a){if(a.If){var b=a.Hk;var c=a.If;a=a.Zw();if(b.ea.Jm().isInline())var d=RQ;else b.L("html5_exponential_memory_for_sticky")?d=zP(b.X.Pf,"sticky-lifetime")<.5?"auto":rM[$L()]:d=rM[$L()],d=g.pM("auto",d,!1,"s");if(qM(d)){d=q2a(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.v(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if((m=l.B)==null?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Vma()&&!g.ED(b.X)&&NF(c.j.videoInfos[0])&& (f=Math.min(f,g.HF.large));h=g.qD(b.X.experiments,"html5_chipset_soft_cap");h>0&&(f=Math.min(f,h));d=e.call(d,new mM(0,f,!1,"o"));e=d.compose;f=4320;!b.X.B||g.KP(b.X)||b.X.L("hls_for_vod")||b.X.L("mweb_remove_360p_cap")||g.qD(b.X.experiments,"html5_byterate_soft_cap_mweb")!==0||(f=g.HF.medium);(h=g.qD(b.X.experiments,"html5_default_quality_cap"))&&c.j.j&&(b.X.L("html5_always_apply_default_quality_cap")||!c.videoData.dj&&!c.videoData.me)&&(f=Math.min(f,h));(h=g.qD(b.X.experiments,"html5_ns_yt_progressive_quality_cap"))&& !c.j.j&&b.X.qa==="yt"&&(f=Math.min(f,h));h=g.qD(b.X.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.qD(b.X.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.v(l.videoInfos),m=l.next();!m.done;m=l.next())if(m.value.video.fps>32){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.qD(b.X.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=C2a(b,c,f);d=e.call(d,g.qD(b.X.experiments,"html5_byterate_soft_cap_mweb")> 0&&b.X.B&&!g.KP(b.X)?new mM(0,f===4320?0:f,!1,"d",g.qD(b.X.experiments,"html5_byterate_soft_cap_mweb")):new mM(0,f===4320?0:f,!1,"d")).compose(B2a(b,c.videoData)).compose(D2a(b,c.videoData,c)).compose(A2a(b,c)).compose(t2a(b,c));if(qM(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(u2a(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(A2a(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(u2a(b,c)));d=d.compose(t2a(b,c));b=c.videoData.JB.compose(d).compose(c.videoData.FZ).compose(a)}else b= RQ;return b}; Y_a=function(a){var b=a.Hk;a=a.videoData;var c=B2a(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(D2a(b,a));return c}; g.e5a=function(a,b,c,d){a.videoData.JB=b;if(a.If&&c){c=a.Hk;var e=a.If;if(e.j.j){var f=$L(),h=e.j.videoInfos[0].video.j;if(!(f>h&&h!==0&&b.j===h)){var l;f=s2a(c,(l=e.j)==null?void 0:l.videoInfos);l=c.ea.getPlaybackRate();l>1&&f&&(l=VIa(c.X.G,e.j.videoInfos,l),b.j!==0&&l=480;if(c.L("html5_exponential_memory_for_sticky")){m= c.X.Pf;n=1;var p=p===void 0?!1:p;mJa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Qr["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Qr["sticky-lifetime"]=0);p&&zP(m,"sticky-lifetime")>.0625&&(n=m.Qr["sticky-lifetime"]*2);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Qr["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.X;p=c.C;c=c.L("html5_perserve_av1_perf_cap");n=c=c===void 0?!1:c;m=m.L("html5_gradual_perf_cap");m=m===void 0?!1:m;if(n===void 0?0:n){n= bM();b=g.v(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,e.indexOf("1")!==0&&(n[e]=0);g.zt("yt-player-performance-cap",n,m?2592E3:604800)}else g.Bt("yt-player-performance-cap");$Ba(c);if(c){c=g.v(MO.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||MO.delete(m);c=g.v(LZ.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||LZ.delete(m);c=g.v(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else MO.clear(),LZ.clear(), p.clear()}}}}a.ya&&(p=a.ya,d=d||"",pU(p.policy)?tY(p.C.j,d):tY(p.j.G,d));B_(a)}; S4a=function(a){a.videoData.hw="";a.videoData.videoId?a.yd.uP(a.videoData.videoId).then(function(b){a.videoData.hw=b;a.publish("contentPoTokenReady",a.videoData,!0)}):a.oa("pomvid",{})}; B_=function(a){if(!a.Ma()&&!g.U(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)t_(a);else{var b=C_(a),c=a.videoData;a:{var d=a.videoData.Ed;if(b.j){for(var e=g.v(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.HF[h.video.quality];if((!b.C||h.video.quality!=="auto")&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.rb=d;d5a(a,b.reason,f5a(a,a.videoData.rb))}if(a.L("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.Qc.Ga=!1,a.playVideo()}}; t_=function(a){if(a.videoData.C&&a.videoData.C.j){var b=C_(a);a.ya&&L0a(a.ya,b)}}; g5a=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.lu&&((b=a.videoData.B)==null?0:TF(b)))}; h5a=function(a){if(!g5a(a))return!1;var b;a=(b=a.mediaElement)==null?void 0:b.audioTracks();return!!(a&&a.length>1)}; j5a=function(a){var b=i5a(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Xb.getName()===b})}; i5a=function(a){var b;if(a=(b=a.mediaElement)==null?void 0:b.audioTracks())for(b=0;b0&&(b.rf=d.Yy));b.Sf=d.Sj;b.qj=OO(c,{},d.C||void 0,pR(d));b.bb=oR(d)&&g.Lz(c);cR(d)&&(c.L("html5_sabr_report_partial_segment_estimated_duration")&&(b.Rv=!0),c.L("html5_sabr_report_full_segment_for_partial_eviction")&&(b.hw=!0),b.C=!0,b.Bi=c.L("html5_sabr_enable_utc_seek_requests"),b.mm=c.L("html5_disable_client_resume_policy_for_sabr"),b.pw=c.L("html5_trigger_loader_when_idle_network"),b.Xq=c.L("html5_sabr_parse_live_metadata_playback_boundaries"),b.Yy=c.L("html5_enable_platform_backpressure_with_sabr"), b.Tf=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.Sv=c.L("html5_sabr_report_next_ad_break_time"),b.G=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.Xy=c.L("html5_pause_ssdai_append"),b.vp=c.L("html5_sabr_exclude_quality_ordinal_check"),b.zp=c.L("html5_log_high_res_buffer_timeline"),b.xw=c.L("html5_gapless_sabr_btl_last_slice")&&nR(d),eR(d)&&(b.zn=c.L("html5_disable_variability_tracker_for_live"),b.Ra=c.L("html5_sabr_use_accurate_slice_info_params")),b.Ov=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"), b.qa=c.L("html5_enable_sabr_request_pipelining")&&!g.fR(d),b.Gj=c.L("html5_ignore_partial_segment_from_live_readahead"),b.yw=c.L("html5_use_non_active_broadcast_for_post_live"),b.Bb=c.L("html5_use_centralized_player_time"),b.Wa=c.L("html5_enable_sabr_seek_loader_refactor"),b.lw=b.G&&c.L("html5_reset_server_stitch_state_for_non_sabr_seek"));b.K=b.C&&c.L("html5_sabr_live");EM(c.G,FM.BITRATE)&&(b.ub=NaN);if(l=g.qD(c.experiments,"html5_request_size_max_kb"))b.Na=l*1024;c.G.D?b.Kb="; "+FM.EXPERIMENTAL.name+ "=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.Kb="; tunnelmode=true");l=d.serverPlaybackStartConfig;(l==null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(b.Ti=!0,$Oa(b,l.playbackStartPolicy,2));l=k5a(a);a.LB.removeAll();a:{c=a.yd.Ou;if(d=a.videoData.videoId)if(e=c.j.get(d)){c.j.remove(d);c=e;break a}c=void 0}a.ya=new g.uZ(a,a.X.schedule,b,a.videoData.j,a.videoData.C,C_(a),l,a.videoData.enableServerStitchedDai,c,a.videoData.Va);b=a.yu&&g.ED(a.X)&&a.videoData.isLivePlayback;a.ya.initialize(a.getCurrentTime(), C_(a),b);a.videoData.probeUrl&&(a.ya.Ra=a.videoData.probeUrl);if(a.wq.length||a.yu)a.videoData.cotn||D_(a,!1);o4a(a.Qc,a.ya);a.Wc&&d1a(a.ya,new g.zZ(a.Wc));a.xb&&(a.ya.nM(a.xb),a.Qc.Ga=!1);g.QR(a.videoData)&&(a=a.ya,a.policy.yj=a.policy.YD)}; z_=function(a){a.ya&&(a.ya.dispose(),a.ya=null,o4a(a.Qc,null));rG(a)?l5a(a):LW(a)}; l5a=function(a){if(a.Qa)if(a.logger.debug("release media source"),a.Xz(),a.Qa.K)try{a.X.yc()&&a.oa("rms",{l:"vprms",sr:rG(a),rs:tG(a.Qa)});a.Qa.clear();var b;(b=a.mediaElement)!=null&&(b.B=a.Qa);a.Qa=null}catch(c){b=new g.Mt("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=xF(b),a.handleError(b),LW(a)}else LW(a)}; LW=function(a){a.Qa&&(a.logger.debug("remove media source"),Iwa(a.Qa),a.Xz(),a.Qa.dispose(),a.Qa=null)}; m5a=function(a){if(a.Qa)return a.Qa.C;a.logger.debug("update media source");a:{try{g.Hs()&&a.videoData.IQ()&&Kwa(a.mediaElement);var b=a.mediaElement.Mr(a.fA(),a.CP())}catch(d){if(h2a(a.ll,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Lf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}lUa(a,b)}var c;return((c=a.Mr())==null?void 0:c.C)||null}; lUa=function(a,b,c,d){function e(f){try{n5a(a,f,c,d)}catch(h){g.Kx(h),a.handleError(new vF("fmt.unplayable",{msi:"1",ename:h&&typeof h==="object"&&"name"in h?String(h.name):void 0},1))}} c=c===void 0?!1:c;d=d===void 0?!1:d;o5a(a);a.Qa=b;rG(a)&&tG(a.Qa)==="open"?e(a.Qa):Dwa(a.Qa,e)}; o5a=function(a){if(a.ya){var b=a.getCurrentTime()-a.Ec();a.ya.seek(b,{}).Ml(function(){})}else a5a(a)}; n5a=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;if(a.Qa&&(!b||a.Qa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&eR(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.Wo(f)}else a.Qa.Wo(e);I0a(a.ya,a.Qa,c,d);a.publish("mediasourceattached")}}; N0a=function(a,b){d5a(a,b.reason,b.j.info,b.token,b.videoId)}; JZ=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d,e,f;return g.H(function(h){if(h.j==1){a.ya&&a.ya.kx();a.ya&&a.ya.Ma()&&z_(a);if(a.L("html5_enable_vp9_fairplay")&&a.Yi()&&(d=a.videoData.j)!=null)for(var l in d.j)d.j.hasOwnProperty(l)&&(d.j[l].j=null,d.j[l].C=!1);a.Gc(EG(a.playerState,2048));a.publish("newelementrequired");return b?g.G(h,x_(a),2):h.Ia(2)}a.videoData.dc()&&((e=a.ya)==null?0:e.Ca)&&!o_(a)&&((f=a.isAtLiveHead())&&bR(a.videoData)?a.seekTo(Infinity,{bd:"videoPlayer_getNewElement"}): a.videoData.ge&&a.ya&&(l=a.ya,l.manifest.dc&&(l.manifest.ge||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{bd:"loader_resetSqless"}),l.videoTrack.N=!0,l.audioTrack.N=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):IO(l.manifest)&&dZ(l))));c&&a.seekTo(0,{seekSource:105});g.U(a.playerState,8)&&a.playVideo();g.va(h)})}; E_=function(a,b){a.oa("hgte",{ne:+b});a.videoData.Y=!1;b&&JZ(a);a.ya&&F0a(a.ya)}; tUa=function(a,b){a.oa("newelem",{r:b});JZ(a)}; p5a=function(a,b){a.Rb.D.BR();g.U(a.playerState,32)||(a.Gc(EG(a.playerState,32,b==null?void 0:b.seekSource)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Sc()}; jVa=function(a,b){b=b==null?void 0:b.seekSource;g.U(a.playerState,32)?(a.Gc(GG(a.playerState,16,32,b)),a.publish("endseeking",a)):g.U(a.playerState,2)||a.Gc(EG(a.playerState,16,b));a.Rb.D.GR(a.videoData,a.playerState.isPaused())}; q5a=function(a,b){a.X.experiments.ob("enable_adb_handling_in_sabr")&&(a.pauseVideo(!0),a.hL(),b&&a.Lf("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; mOa=function(a){var b=0,c="";if(a.Wc){if(a.Wc.Mn)return"D,";b=a.Wc.AP();c=a.Wc.vl().substring(0,4)}else a.xb&&(b=a.xb.AP(),c=a.xb.vl().substring(0,4));return b>0?(a="AD"+b+", ",c&&(a+=c+", "),a):""}; y_=function(a,b){a.publish("internalvideodatachange",b===void 0?"dataupdated":b,a,a.videoData)}; r5a=function(a){for(var b=g.v("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.JC.T(a.mediaElement,c.value,a.uL,a);a.X.jm&&a.mediaElement.Zv()&&(a.JC.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.O$,a),a.JC.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.P$,a))}; iUa=function(a){g.is(a.HL);s5a(a)||(a.HL=g.gs(function(){return s5a(a)},100))}; s5a=function(a){var b=a.mediaElement;b&&a.cL&&!a.videoData.Ga&&!jB("vfp",a.Rb.timerName)&&b.Yk()>=2&&!b.isEnded()&&fG(b.Dh())>0&&a.Rb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Ga&&b.getDuration()>0&&(b.isPaused()&&b.Yk()>=2&&fG(b.Dh())>0&&(jB("pbp",a.Rb.timerName)||a.Rb.tick("pbp"),!a.videoData.Tl||a.J0||b.isSeeking()||(a.J0=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),e_(a.iE,b))?(jUa(a),!0):!1}; jUa=function(a){g.is(a.HL);a.Kx.stop();a.videoData.Ga=!0;a.X.tp=!0;a.X.Kb=0;var b=a.ll;if(b.videoData.B){var c=b.Da.G,d=b.videoData.B.sb;c.C.has(d)&&(c.C.delete(d),c.B=!0)}b.j.stop();t5a(a);g.U(a.playerState,8)&&a.Gc(FG(a.playerState,65));a.yu=!1;OVa(a.pc());g.gp(a.iO);a.publish("playbackstarted");(a=g.Pa("yt.scheduler.instance.clearPriorityThreshold"))?a():Vt(0,0)}; t5a=function(a){var b=a.yd.Md(),c={},d={};!jB("pbs",a.Rb.timerName)&&KA.measure&&KA.getEntriesByName&&(KA.getEntriesByName("mark_nr")[0]?Lta("mark_nr"):Lta());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);a.mediaElement&&a.mediaElement.isPaused()&&(d.isPausedOnLoad=!0);d.itag=b.B?Number(b.B.itag):-1;b.Dd&&(d.preloadType=String(a.bZ?2:1));c.liveStreamMode=u5a[yR(b)];c.playerInfo=d;a.Rb.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 e in b)b.hasOwnProperty(e)&&a.Rb.tick(e,b[e])}}; v5a=function(a){a.pc().Cg();if(bR(a.videoData)&&Date.now()>a.LZ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&CO(a.videoData.j))){var b=a.pc();if(b.qoe){b=b.qoe;var c=b.provider.ea.lF(),d=g.SJ(b.provider);S2a(b,d,c);c=c.C;isNaN(c)||g.OZ(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.CD(b.U())?!0:g.dP(b.U())==="TVHTML5"?b.Vk==="6":!1):b=g.CD(a.X);b&&a.oa("rawlat",{l:TT(a.PT,"rawlivelatency").toFixed(3)});a.LZ=Date.now()}a.videoData.B&&TF(a.videoData.B)&&(b=V4a(a))&& b.videoHeight!==a.UQ&&(a.UQ=b.videoHeight,d5a(a,"a",f5a(a,a.videoData.rb)))}; f5a=function(a,b){if(b.j.video.quality==="auto"&&TF(b.getInfo())&&a.videoData.Ed)for(var c=g.v(a.videoData.Ed),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.UQ&&d.j.video.quality!=="auto")return d.getInfo();return b.getInfo()}; Q4a=function(a){if(!bR(a.videoData))return NaN;var b=0;a.ya&&a.videoData.j&&(b=eR(a.videoData)?a.ya.aJ.fh()||0:a.videoData.j.Fa);return(0,g.uu)()/1E3-a.lf()-b}; x5a=function(a){a.mediaElement&&a.mediaElement.Zh()&&(a.DK=(0,g.uu)());a.X.uq?g.fs(function(){w5a(a)},0):w5a(a)}; w5a=function(a){var b;if((b=a.Qa)==null||!b.Mm()){if(a.mediaElement)try{a.GL=a.mediaElement.playVideo()}catch(d){A_(a,"err."+d)}if(a.GL){var c=a.GL;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d}); if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.GL===c)if(d&&d.name==="AbortError"&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message}); else{var e="promise";d&&d.name&&(e+=";m."+d.name);A_(a,e);a.VW=!0;a.videoData.Ai=!0}})}}}; A_=function(a,b){g.U(a.playerState,128)||(a.Gc(GG(a.playerState,1028,9)),a.oa("dompaused",{r:b}),a.publish("onAutoplayBlocked"))}; u_=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if((b=a.videoData.C)==null?0:b.j){c=m5a(a);var d;(d=a.ya)==null||d.resume()}else z_(a),a.videoData.rb&&(c=a.videoData.rb.wD());b=c;d=a.mediaElement.vI();c=!1;d&&b!==null&&b.resource===d.resource||(y5a(a,b),c=!0);g.U(a.playerState,2)||(b=a.Qc,b.G||!(b.D>0)||b.mediaElement&&b.mediaElement.getCurrentTime()>0||(d={bd:"seektimeline_resumeTime"},b.videoData.Ga||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(cR(a.videoData)){if(!a.videoData.Yi())break a}else if(!g.xR(a.videoData))break a; if(a.mediaElement)if((d=a.videoData.K)&&a.mediaElement.Zv()){var e=a.mediaElement.Ib();if(a.Be)if(e!==a.Be.element)F_(a);else if(b&&d.flavor==="fairplay"&&!Is())F_(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&Is()&&d.flavor==="widevine")a.Lf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Be=new X1a(e,a.videoData,a.X);a.Be.subscribe("licenseerror",a.nL,a);a.Be.subscribe("qualitychange",a.Faa,a);a.Be.subscribe("heartbeatparams", a.sG,a);a.Be.subscribe("keystatuseschange",a.qq,a);a.Be.subscribe("ctmp",a.oa,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&d.flavor==="widevine"&&a.Be.gy(new EY(z5a,"cenc",!1));b=g.v(a.LB.keys);for(d=b.next();!d.done;d=b.next())d=a.LB.get(d.value),a.Be.gy(d);a.L("html5_eme_loader_sync")||a.LB.removeAll()}}else a.Lf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c}; y5a=function(a,b){a.Rb.tick("vta");lB("vta",void 0,"video_to_ad");a.getCurrentTime()>0&&s4a(a.Qc,a.getCurrentTime());a.mediaElement.activate(b);a.Qa&&Vt(0,4);!a.videoData.Ga&&a.playerState.isOrWillBePlaying()&&a.Kx.start();if(g5a(a)){var c;if(b=(c=a.mediaElement)==null?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}}; F_=function(a){a.Be&&(a.Be.dispose(),a.Be=null)}; GW=function(a,b){b=b===void 0?!1:b;bR(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.eq()||g.DR(a.videoData))?a=a.getCurrentTime():g.fR(a.videoData)&&a.xb?(b=a.xb,a=a.getCurrentTime(),a=(a=DVa(b,a*1E3))?(a.Vh()-a.Ye())/1E3:0):a=a.qe(b);return a}; A5a=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Qa?(F_(a),LW(a),m5a(a)):(a.videoData.rb&&a.videoData.rb.kT(),a.mediaElement.stopVideo()),a.playVideo())}; B5a=function(a,b){a.X.L("html5_log_rebuffer_reason")&&a.oa("bufreason",{r:b,lact:tw()})}; cX=function(a,b,c,d,e,f,h,l,m){var n;if((n=a.videoData.j)==null?0:n.isLive){var p=c.playerType===2?c:b,q=b.videoData.videoId,r=c.videoData.videoId;if(q&&r){n=a.pc();if(n.qoe){var t=n.qoe,u=b.cpn,x=c.cpn,B=p.videoData.qc,E=t.provider.videoData.clientPlaybackNonce,F=t.provider.videoData.videoId,I=x!==E&&r!==F;E=u!==E&&q!==F;t.reportStats();t.adCpn&&t.adCpn!==u||(t.adCpn=E?u:"",t.Y=E?q:"",t.adFormat=E?B:void 0,pX(t,2,h?4:f?2:0,x,r,e),t.reportStats(),t.adCpn=I?x:"",t.Y=I?r:"",t.adFormat=I?B:void 0,pX(t, 2,h?5:f?3:1,u,q,d),t.reportStats())}d=b.cpn;if(n.C.has(d)){if(f=n.C.get(d),$Z(f,!0).send(),ZZ(f),d!==n.provider.videoData.clientPlaybackNonce){x3a(f);var O;(O=n.j)==null||s3a(O);n.C.delete(d)}}else n.Ng=n.provider.videoData.clientPlaybackNonce,n.Ng&&n.j&&(n.C.set(n.Ng,n.j),$Z(n.j).send(),ZZ(n.j));O=c.cpn;p=p.videoData;e-=a.du();if(n.C.has(O)){e=n.C.get(O);var N=e.C&&isNaN(e.D)?YZ(e):NaN;e=w3a(e,!1);isNaN(N)||(e.G=N);e.send()}else e=J3a(n,n.provider,p,e),n.C.set(O,e),y3a(e,new g.rz(EG(new g.BG,8), new g.BG)),r3a(e),(N=n.j)==null||ZZ(N);n.Ng=O;a.L("html5_unify_csi_server_stitched_transition_logging")?JOa(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,c.videoData,l,void 0,m):(n=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===n?"video":"ad")+"_to_"+(c.cpn===n?"video":"ad"),n={},a.G&&(n.cttAuthInfo={token:a.G,videoId:a.videoId}),l&&(n.startTime=l),iB(b,n),g.hB({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),gB("pbs",m!=null?m:(0,g.uu)(),b))}}}; C5a=function(a,b){if(a.X.yc()&&a.mediaElement){var c=a.mediaElement.vc();c.omt=(a.mediaElement.getCurrentTime()+a.Ec()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(g.SJ(a.pc().provider)*1E3).toFixed();c.e=b;a.JL[a.K0++%5]=c}try{if(b==="timeupdate"||b==="progress")return}catch(d){}a.logger.debug(function(){return"video element event "+b})}; D5a=function(a){if(a.X.yc()){a.JL.sort(function(d,e){return+d.rt-+e.rt}); for(var b=g.v(a.JL),c=b.next();!c.done;c=b.next())c=c.value,a.oa("vpe",Object.assign({t:c.rt},c));a.JL=[];a.K0=0}}; E5a=function(a){if(g.Fs("cobalt")&&g.Fs("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.oa("nxdock",{d:b})}}; hUa=function(a,b,c,d,e){a.oa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})}; D_=function(a,b){var c;(c=a.ya)==null||xZ(c,b)}; vZ=function(a){return g.rb(a.wq,"ad")}; Y4a=function(a){$Q(a.videoData,"html5_set_debugging_opt_in")&&(a=g.Gt(),g.Ht(0,183)||(Jt(183,!0),a.save()))}; F5a=function(a){return g.fR(a.videoData)&&a.xb?oX(a.xb):a.videoData.qe()}; l1a=function(a,b){a.yd.zo()||(a.oa("sgap",{f:b}),a.yd.clearQueue(!1,b==="pe"))}; o_=function(a){return cR(a.videoData)&&a.L("html5_disable_video_player_initiated_seeks")}; g.G_=function(a,b,c,d){g.K.call(this);var e=this;this.logger=new g.LO("App");this.tB=this.uj=!1;this.jt={};this.QL={};this.hC=[];this.pZ=!1;this.BQ=null;this.uZ=!1;this.Cx=!0;this.CT=!1;this.PZ=this.WQ=null;this.c_=!0;this.mediaElement=this.Eb=null;this.sR=NaN;this.IG=!1;this.ze=this.LC=this.xb=this.xe=this.screenLayer=this.wb=this.playlist=null;this.fd={aO:function(h,l){e.xb&&e.xb.aO(h,l)}}; this.logger.debug("constructor begin");this.config=wna(b||{});this.webPlayerContextConfig=c;Jna();b=this.config.args||{};this.X=new SP(b,c,c?c.canaryState:this.config.assets.player_canary_state,d,this);g.Q(this,this.X);SUa(this.X);UUa(this.X);this.X.experiments.ob("jspb_serialize_with_worker")&&nqa();this.X.experiments.ob("gzip_gel_with_worker")&&fpa();this.X.experiments.ob("web_player_empty_translator")&&(G5a||(G5a=!0),px={},qx={},Tqa=!1);this.X.B&&!H5a&&(window.addEventListener(AP?"touchstart": "click",$Ta,{capture:!0,passive:!0}),H5a=!0);this.L("html5_onesie")&&(this.ly=new xW(this.X),g.Q(this,this.ly));this.e2=Us(GP(this.X)&&!0,b.enablesizebutton);this.PQ=Us(!1,b.player_wide);this.visibility=new AUa;g.Q(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.uC(Us(!1,b.player_wide));this.uj=Us(!1,b.external_list);this.events=new g.EF(this);g.Q(this,this.events);this.L("start_client_gcf")&&(ww(Aw(),{TG:iv,rU:Foa()}),this.r7=Aw().resolve(iv),Ioa(this.r7));this.Rca=new aS;g.Q(this, this.Rca);this.Vr=new tWa;d=new fMa;b=this.L("web_player_one_api");this.Ua=new g.jS(this,d,b);g.Q(this,this.Ua);this.template=new nWa(this);g.Q(this,this.template);this.appState=1;this.Pi=I5a(this);b?this.J=this.Ua:(this.J=new g.fS(this,d,!0),g.Q(this,this.J));g.Q(this,d);d={};this.fO=(d.internalvideodatachange=this.S$,d.playbackready=this.U$,d.playbackstarted=this.V$,d.statechange=this.W$,d);this.h8=new dU(this.Ua);this.Pd=J5a(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");if(d&& K5a||b)this.X.Xq=GPa(this.Pd,b),xU(this.X.Xq.Yj(function(h){e.X.Kd=h;var l;(l=g.dS(e))==null||l.oa("wasm",{a:h.aq})}),function(h){g.Kx(h); h="message"in h&&h.message||h.toString()||"";var l;(l=g.dS(e))==null||l.oa("wasm",{e:h})}); else if(d&&!K5a){var f;(f=g.dS(this))==null||f.oa("wasm",{e:"wasm unavailable"})}this.Rb=new HOa(this.X,this.Pd);this.Ua.publish("csiinitialized");this.tb=L5a(this);this.tb.setPlaybackRate(this.X.D?1:M5a(this,Number(g.At("yt-player-playback-rate"))||1));g.jy(this.tb,this.fO,this);T4a(this.tb);f={};this.Q0=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.BR,f.contentPoTokenReady=this.qG,f.endseeking=this.GR,f.internalAbandon= this.tG,f.internalaudioformatchange=this.kG,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.FG,f.liveviewshift=this.Gaa,f.playbackstalledatstart=this.bca,f.progresssync=this.oba,f.onAbnormalityDetected=this.hL,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.DB,f.SEEK_TO=this.Pba,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=this.bba,f.playbackready=this.cba, f.statechange=this.y0,f.connectionissue=this.pG,f.newelementrequired=this.b0,f.heartbeatparams=this.sG,f.videoelementevent=this.uL,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.Wba,f.nonfatalerror=this.Uaa,f);this.Nu=new g.EF(this);g.Q(this,this.Nu);f=10;g.ED(this.X)&&(f=3);ZP(this.X)&&(f=g.qD(this.X.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ou=new BX;g.Q(this,this.Ou);this.uy=new zX(f,function(h){h!==g.dS(e,h.getPlayerType())&&h.dispose()}); g.Q(this,this.uy);this.nP=this.CJ=-1;this.dM=new g.fp(this.template.resize,16,this.template);g.Q(this,this.dM);this.Wc=new TVa(this.Ua,this.X,this.tb);this.yq=new UW(this.X);this.Rk=new rUa(this);g.Q(this,this.Rk);this.UM=new CW(this);g.Q(this,this.UM);hWa(this.X.j.c);this.events.T(this.Ua,g.iE("appapi"),this.Q$);this.events.T(this.Ua,g.jE("appapi"),this.R$);this.events.T(this.Ua,g.iE("appprogressboundary"),this.nba);this.events.T(this.Ua,g.jE("applooprange"),this.gM);this.events.T(this.Ua,"presentingplayerstatechange", this.Ek);this.events.T(this.Ua,"resize",this.Bba);this.template.Ja(de(document,a));this.events.T(this.Ua,"offlineslatestatechange",this.Waa);this.Pd.J.U().yj&&CU(this.Pd,"offline");this.X.bb&&g.iU("ux",g.vW);this.QW=new g.fp(this.Wca,g.qD(this.X.experiments,"html5_defer_fetch_att_ms"),this);g.Q(this,this.QW);this.Md().ue()&&(g.Ct()&&this.Md().Ka.push("remote"),N5a(this));this.Rb.tick("fs");O5a(this);this.X.bb&&CU(this.Pd,"ux",!0);g.EP(this.Pd.J.U())&&CU(this.Pd,"embed");this.L("web_player_sentinel_is_uniplayer")|| g.Kx(new g.Mt("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.ks("web_player_sentinel_yt_experiments_sync");a!==f&&g.Kx(new g.Mt("b/195699950",{yt:a,player:f}));c||g.Kx(new g.Mt("b/179532961"));this.b3=P5a(this);if(c=g.qD(this.X.experiments,"html5_block_pip_safari_delay"))this.tP=new g.fp(this.fX,c,this),g.Q(this,this.tP);ys=this.X.Bc;c=g.qD(this.X.experiments,"html5_performance_impact_profiling_timer_ms");c>0&&(this.G0= new g.Qe(c),g.Q(this,this.G0),this.events.T(this.G0,"tick",function(){e.H0&&Q5a.Gr("apit",e.H0);e.H0=Q5a.Ss()})); this.Ua.publish("applicationInitialized");this.logger.debug("constructor end")}; P5a=function(a){function b(c){c.stack&&c.stack.indexOf("player")!==-1&&(c={n:c.name,m:c.message},(a.wb||a.tb).pc().Rd("player.exception",uF(c)))} Lx.subscribe("handleError",b);Nr.push(b);return function(){Lx.unsubscribe("handleError",b);var c=Nr.indexOf(b);c!==-1&&Nr.splice(c,1)}}; L5a=function(a){var b=new g.SQ(a.X,a.config.args);a.Ua.publish("initialvideodatacreated",b);return a.Uz(1,b)}; R5a=function(a,b){if(a.tb!==b){b.getVideoData().autonavState=a.tb.getVideoData().autonavState;ky(a.tb,a.fO,a);var c=a.tb.getPlaybackRate();a.tb.dispose();a.tb=b;a.tb.setPlaybackRate(c);g.jy(b,a.fO,a);N5a(a)}}; J5a=function(a){var b="",c=lWa(a);c.indexOf("//")===0&&(c=a.X.protocol+":"+c);var d=c.lastIndexOf("/base.js");d!==-1&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.Kx(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new pPa(a.Ua,b);S5a(a,b);return b}; S5a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c); b.C=c}; I5a=function(a){if(a.X.storeUserVolume){a=g.At("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.Hd(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.X.mute};return a}; H_=function(a){a.mediaElement=a.X.deviceIsAudioOnly?new g.PT(g.me("AUDIO")):BW.pop()||new g.PT(g.me("VIDEO"));g.Q(a,a.mediaElement);a.wb&&a.wb.setMediaElement(a.mediaElement);try{a.X.Xc?(a.LC&&a.events.Nc(a.LC),a.LC=a.events.T(a.mediaElement,"volumechange",a.Oaa)):(a.mediaElement.mC(a.Pi.muted),a.mediaElement.setVolume(a.Pi.volume/100))}catch(e){a.Tg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g, "_")));return}g.ut(a.Nu);T5a(a);var b=a.template,c=a.mediaElement.Ib();b.Dc=c;b.oK=!1;b.Dc.parentNode||qe(b.Rz,b.Dc,0);b.OL=new g.hm(0,0,0,0);sWa(b);DX(b);c=b.Dc;g.np(c,"video-stream");g.np(c,g.CX.MAIN_VIDEO);var d=b.app.U();d.Pk&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in yF()&&(c.playsInline=!0):d.im&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.jq&&b.Dc&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.Tg("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}}; KW=function(a,b,c){if(a.wb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId}); var d=null;if(a.wb){d=a.wb.getPlayerState();a.logger.debug("set presenting player, destroy modules");DU(a.Pd,3);I_(a,"cuerangesremoved",a.wb.rl());a.Rk&&!b.isGapless()&&a.wb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=rG(b)&&rG(a.wb);a.L("html5_rebase_video_to_ad_timeline")&&a.Rb.Cv("iv_s");U5a(a,e)}b.getPlayerType()===1&&R5a(a,b);V5a(a,b);a.wb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.jy(b,a.Q0,a);if(b.AK())W5a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata", b,b.getVideoData());d&&!g.HG(d,b.getPlayerState())&&a.y0(new g.rz(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&b.getPlayerType()===1;if(b.xq.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Ym("onPlaybackQualityChange",c.quality);I_(a,"cuerangesadded",a.wb.rl());c=b.getPlayerState();g.U(c,2)?X5a(a):g.U(c,8)?b.playVideo():b.FF()&&b.pauseVideo();if(b.getPlayerType()===2){var f;b.getVideoData().tW=(f=g.dS(a,1))==null?void 0:f.getVideoData().clientPlaybackNonce}b.getPlayerType()!== 2||a.Ef()||(f=b.getVideoData(),a.tb.zy(f.clientPlaybackNonce,f.qc||"",f.breakType||0,f.Rf,f.videoId||""));a.logger.debug("finish set presenting player")}}}; X5a=function(a){if(!Y5a(a)){var b=a.tb.Ke();b&&(b=b.JE(),b instanceof Promise&&b.catch(function(){})); J_(a,JG(a.getPlayerStateObject()))}}; T5a=function(a){var b=a.mediaElement;CF()?a.Nu.T(b,"webkitpresentationmodechanged",a.Mba):window.document.pictureInPictureEnabled&&(a.Nu.T(b,"enterpictureinpicture",function(){a.pC(!0)}),a.Nu.T(b,"leavepictureinpicture",function(){a.pC(!1)})); Ns&&(a.Nu.T(b,"webkitbeginfullscreen",function(){a.hn(3)}),a.Nu.T(b,"webkitendfullscreen",function(){a.hn(0)}))}; V5a=function(a,b){var c=b.getPlayerType();if(b!==a.tb&&b!==a.jt[c]){var d;(d=a.jt[c])==null||d.dispose();a.jt[c]=b}}; U5a=function(a,b){b=b===void 0?!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.Lj(),H_(a));a.wb&&(a.wb.Lj(!b),ky(a.wb,a.Q0,a),a.wb.getPlayerType()!==1&&a.wb.dispose());a.wb=null;a.logger.debug("finish clear presenting player")}; g.dS=function(a,b){return b?b===1?a.tb:a.getVideoData().enableServerStitchedDai&&b===2?a.getVideoData().enablePreroll?a.jt[2]||a.wb:a.wb:g.fR(a.getVideoData())&&b===2?a.jt[2]||a.wb:a.jt[b]||null:a.wb}; Z5a=function(a,b,c,d){a=a.Uz(b,c,d);T4a(a);return a}; K_=function(a,b){return a.Ef(b)?a.tb:b}; L_=function(a,b){var c=a.wb;return c&&b===a.tb&&a.Ef(b)&&a.Ef(c)?c:b}; b6a=function(a){a.logger.debug("start application playback");if(a.tb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=M_(a);a.Md().isLoaded();b&&a.Jq(6);$5a(a);zPa(a.Pd)||a6a(a)}}; a6a=function(a){if(!M_(a)){var b=EU(a.Pd);b&&!b.created&&qPa(a.Pd)&&(a.logger.debug("reload ad module"),b.create())}}; $5a=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Pd;zPa(c)||c.SO();!K5a&&c.J.L("html5_allow_asmjs")&&FPa(c);CU(c,"embed");CU(c,"inline_preview");CU(c,"kids");CU(c,"remote");CU(c,"miniplayer");CU(c,"offline");CU(c,"unplugged");CU(c,"ypc",!1,!0);CU(c,"ypc_clickwrap",!1,!0);CU(c,"yto",!1,!0);CU(c,"webgl",!1,!0);APa(c)||(CU(c,"captions",!0),CU(c,"endscreen"),c.fJ(),CU(c,"creatorendscreen",!0));c.uX();a.Ua.publish("videoready",b)}; N_=function(a){a=a.Md();a.ue();return NR(a)}; O5a=function(a){a.logger.debug("start prepare initial playback");a.ZO();var b=a.config.args;H_(a);var c=a.Md();a.Ua.Ac("onVolumeChange",a.Pi);if(b&&MOa(b)){var d=WP(a.X);d&&!a.uj&&(b.fetch=0);var e=g.EP(a.X);e&&!a.uj&&(b.fetch=0);O_(a,b);g.EP(a.X)&&a.Rb.tick("ep_pr_s");if(!d||a.uj)if(e&&!a.uj)c6a(a);else if(!c.ue())a.playlist.onReady(function(){P_(a)})}KW(a,a.tb); g.U(a.tb.getPlayerState(),128)||(b=wwa(!a.X.deviceIsAudioOnly),b==="fmt.noneavailable"?a.Tg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):b==="html5.missingapi"?a.Tg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.ue()&&N_(a)&&(a.X.Ai||a.X.Bi)?Q_(a):c.CD?a.Ua.mutedAutoplay():g.At("yt-player-playback-on-reload")?(g.bu("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.X.Ca}),g.zt("yt-player-playback-on-reload",!1),Q_(a)):dQ(a.X)||d6a(a),g.YP(a.X)||g.dP(a.X)=== "MWEB"?(g.Rt(g.Tt(),function(){R_(a)}),g.Rt(g.Tt(),function(){dua()})):(R_(a),dua()),a.logger.debug("finish prepare initial playback"))}; R_=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.gp(a.QW);else{var b=a.getVideoData().botguardData;b&&g.ZL(b,a.X,a.getVideoData().vr||"")}}; d6a=function(a){a.logger.debug("start initialize to CUED mode");a.Ua.publish("initializingmode");a.Jq(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.$P(a.X)?g.Rt(g.Tt(),function(){CU(a.Pd,"remote")}):CU(a.Pd,"remote"); CU(a.Pd,"miniplayer");a.logger.debug("initialized to CUED mode")}; Q_=function(a){a.logger.debug("start initialize application playback");if(g.U(a.tb.getPlayerState(),128))return!1;var b=a.tb.getVideoData();N_(a)&&a.X.Bi&&(BW.length&&a.tB?(S_(a,{muted:!1,volume:a.Pi.volume},!1),T_(a,!1)):BW.length||a.Pi.muted||(S_(a,{muted:!0,volume:a.Pi.volume},!1),T_(a,!0)));N_(a)&&g.EP(a.X)&&b.mutedAutoplay&&(S_(a,{muted:!0,volume:a.Pi.volume},!1),T_(a,!0));b.DX&&S_(a,{muted:!0,volume:a.Pi.volume},!1);e6a(a,1,b,!1);a.Ua.publish("initializingmode");KW(a,a.tb);a.Jq(3);var c;if(!(c= !a.X.Cn)){if(c=a.ze){c=a.ze;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.pZ}c&&(a.Lj(),H_(a),a.tb.setMediaElement(a.mediaElement));b5a(a.tb);if(g.U(a.tb.getPlayerState(),128))return!1;b.Tl||J_(a,3);return a.pZ=!0}; M_=function(a){a=GS(a.Pd);return!!a&&a.loaded}; f6a=function(a,b){if(!a.Eb)return!1;var c=a.Eb.startTimeMs*.001-1,d=a.Eb.endTimeMs*.001;a.Eb.type==="repeatChapter"&&d--;return Math.abs(b-c)<=1E-6||Math.abs(b-d)<=1E-6||b>=c&&b<=d}; i6a=function(a){var b,c=(b=g.dS(a))==null?void 0:b.ya;a.wb&&nR(a.getVideoData())&&c&&c.policy.Va&&(b=g.qD(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=g6a(a)*1E3-b,a.L("html5_gapless_new_slr")?(a=a.UM,h6a(a.app,"gaplessshortslooprange"),b=new g.gE(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Uc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))}; j6a=function(a){if(!(g.U(a.tb.getPlayerState(),64)&&a.Md().isLivePlayback&&a.Eb.startTimeMs<5E3)){if(a.Eb.type==="repeatChapter"){var b,c=(b=tMa(a.Ab()))==null?void 0:b.Fi(),d;b=(d=a.getVideoData())==null?void 0:d.Qk;c instanceof g.SU&&b&&(d=b[jV(b,a.Eb.startTimeMs)],c.cH(0,d.title));isNaN(Number(a.Eb.loopCount))?a.Eb.loopCount=0:a.Eb.loopCount++;a.Eb.loopCount===1&&a.Ua.ib("innertubeCommand",a.getVideoData().d4)}c={bd:"application_loopRangeStart"};if(a.Eb.type==="clips"||a.Eb.type==="shortsLoop")c.seekSource= 58;a.tb.seekTo(a.Eb.startTimeMs*.001,c)}}; M5a=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(b*100+.001)%5,b=a===0?b:Math.floor((b-a*.01)*100+.001)/100);return b}; g6a=function(a,b){b=g.dS(a,b);if(!b)return 0;b=K_(a,b);return U_(a,GW(b),b)}; U_=function(a,b,c){if(a.Ef(c)){c=c.getVideoData();if(V_(a))c=b;else{a=a.Wc;for(var d=g.v(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.pd===e.pd){b+=e.lc/1E3;break}d=b;a=g.v(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.pd===e.pd)break;var f=e.lc/1E3;if(f1&&(e=!1);if(!a.IG||e!==b){c=c.lock(e?"portrait":"landscape");if(c!=null)c["catch"](function(){}); a.IG=!0}}else a.IG&&(a.IG=!1,c.unlock())}; I_=function(a,b,c){a.Ua.publish(b,c);var d=g.ED(a.X)||g.LP(a.X)||g.Lz(a.X);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.ib(e,c.map(function(f){return{getId:function(){return this.id}, end:f.end,id:f.getId(),namespace:f.namespace==="ad"?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}}; a0=function(a,b,c,d,e,f){c=c===void 0?!0:c;var h=g.dS(a,e);h&&(h.getPlayerType()===2&&!a.Ef(h)||g.DR(h.getVideoData()))||(a.getPresentingPlayerType()===3?GS(a.Pd).rG("control_seek",b,c):(h===a.tb&&a.Eb&&!f6a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))}; W5a=function(a,b,c){c&&(a.Lj(),H_(a));c=g.dS(a);c.Rd(new vF("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?eR(d)&&g.CD(a.X)&&(e.live_utc_start=c.lf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Ca&&(e.vvt=d.Ca);d.G&&(e.vss_credentials_token=d.G,e.vss_credentials_token_type=d.yn);d.oauthToken&&(e.oauth_token=d.oauthToken);d.En&&(e.force_gvi=d.En);e.autoplay=1;e.reload_count=d.Bc+1;e.reload_reason=b;d.XC&&(e.unplugged_partner_opt_out= d.XC);d.tj&&(e.ypc_is_premiere_trailer=d.tj);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);b==="signature"&&a.xe&&a6a(a)}; y6a=function(a,b){a.Md().autonavState=b;g.zt("yt-player-autonavstate",b);a.Ua.publish("autonavchange",b)}; z6a=function(a){var b=a.getVideoData().Tk,c=a.X.rb,d=a.isInline()&&!a.getVideoData().H_,e=a.mediaElement;b||c||d?e.bP():(e.fP(),S_(a,a.Pi))}; W_=function(a){var b=EU(a.Ab());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())}; V_=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.xe}; A6a=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.v(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=om(a,d);b.hidden=!!a.hidden}; lWa=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?Iq(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""}; B6a=function(a){return a.isTimeout?"NO_BID":"ERR_BID"}; C6a=function(){var a=null;gna().then(function(b){return a=b},function(b){return a=B6a(b)}); return a}; D6a=function(){var a=Se(1E3,"NO_BID");return Oe(jca([gna(),a]).Ml(B6a),function(){a.cancel()})}; b0=function(a){return a.Yd?g.Ht(g.Gt(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; c0=function(a){this.player=a;this.C=this.j=1}; G6a=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=Yr(c),h=g.Vi(c)?!1:!0;(f||h)&&typeof Intl!=="undefined"&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.Vi(c)?!1:!0;if(f||h||d!==""){var l={};c=Sr(cs(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");n.length>1&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))}); m.has("bid")&&(l.bid=m.get("bid"));l.params=[];E6a.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))}); F6a(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;a!=null&&a!=="cosver"&&(b.client.osVersion=a);a=e.j.cplatform;a!=null&&a!=="cplatform"&&a!==""&&(b.client.platform=a);a=e.j.cmodel;a!=null&&a!=="cmodel"&&(b.client.deviceModel=a);a=e.j.cplayer;a!=null&&a!=="cplayer"&&(b.client.playerType=a);e=e.j.cbrand;e!=null&&e!=="cbrand"&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1}; J6a=function(a,b){var c=!1;if(b==="")return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";d[0]==="!"&&(d=d.substring(1),h="INACTIVE");d=d.split("-");d.length<3||(d[0]in H6a&&(f.clientName=H6a[d[0]]),d[1]in I6a&&(f.platform=I6a[d[1]]),f.applicationState=h,f.clientVersion=d.length>2?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)}); return c}; L6a=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in K6a))return!1;a=a.split(RegExp("[:&]"));var b=K6a.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(b/31)).toString();b=1<=2?h[1]:"";var l=N6a.test(b),m=O6a.exec(b);m=m!=null&&m.length>=2?m[1]:"";var n=P6a.exec(b);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=Q6a.exec(b),q=p!=null&&p.length>=2?p[1]:"0",r=PP(a.player.U().Ga);p=a.player.getVideoData(1);var t=g.pA(p.ra,!0),u="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";G6a(a,t,b,u.toString(),a.player.U()); var x={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19914,autonavState:b0(a.player.U())};d&&(d={},J6a(d,c.YT_REMOTE)&&(x.mdxContext=d));if(d=R6a.includes(r)?void 0:g.Bs("PREF")){for(var B=d.split(RegExp("[:&]")),E=0,F=B.length;E1&&I[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0; break}}x.autoCaptionsDefaultOn=L6a(d)}b=S6a.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:x};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:Sr(cs(u.toString())),overridePlaybackContext:b};e!==void 0&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams= c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(c.AD_BREAK_LENGTH*1E3).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(a.player.getCurrentTime(1)*1E3);(a=SLa(p))&&(h.getAdBreakContext=a);return h}; U6a=function(){c0.apply(this,arguments)}; V6a=function(a,b,c,d,e){var f=c.Pw;c=c.Zd;var h=a.player.U().Bj,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.Ch:0,AUTONAV_STATE:b0(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:a.player.Lr()*1E3,LACT:tw(),LIVE_INDEX:f?a.C++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.qb().Xh().height,P_W:a.player.qb().Xh().width,YT_REMOTE:h?h.join(","): ""},m=bs(as);Object.keys(m).forEach(function(n){m[n]!=null&&(l[n.toUpperCase()]=m[n].toString())}); d!==""&&(l.BISCOTTI_ID=d);d={};$r(b)&&(d.sts="19914",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return Xr(g.Ho(b,l),d)}; W6a=function(a,b){var c=a.player.U(),d,e=(d=a.player.getVideoData(1))==null?void 0:d.oauthToken;return g.gQ(c,e).then(function(f){if(f&&Zr()){var h=MS();NS(h,f)}return g.oB(a.player.Em(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})}; X6a=function(a){this.Oa=a}; Y6a=function(a){this.J=a}; Z6a=function(a){this.Oa=a}; a7a=function(a){g.K.call(this);this.dh=a;this.k6=$6a(this)}; $6a=function(a){var b=new xua(a.dh.kd);g.Q(a,b);a=g.v([new X6a(a.dh.Oa),new Y6a(a.dh.J),new Z6a(a.dh.Oa),new JB(a.dh.Cl,a.dh.Io),new LB,new OB(a.dh.Jf,a.dh.ql,a.dh.Oa),new KB,new IB]);for(var c=a.next();!c.done;c=a.next())yua(b,c.value);a=g.v(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())MB(b,c.value,function(){}); return b}; d0=function(a){var b=a.Sa,c=a.Ba;a=a.Me;var d=new zAa,e={Op:new swa(b.get(),c),Ba:c};return{Qb:new xK(c,a,b,e),context:e,Qg:d}}; e0=function(a,b,c,d,e){g.K.call(this);this.J=a;this.B=b;this.Ha=c;this.Sa=d;this.yf=e;this.listeners=[];var f=new rt(this);g.Q(this,f);f.T(a,"internalAbandon",this.tG);this.addOnDisposeCallback(function(){g.ut(f)})}; f0=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.B=this.C=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; b7a=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.D="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.C=!1;a.B=!1}; c7a=function(a,b){a=g.v(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){gB("ad_i");g.hB({isMonetized:!0});break}}; g0=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||b!=null&&b.Ga)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),iB("video_to_ad",b)}; KH=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});iB("ad_to_video",b);d7a(a)}; d7a=function(a){if(a.C)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&a.D==="AD_PLACEMENT_KIND_START"&&a.actionType==="video_to_ad")eB("video_to_ad");else{var b={adBreakType:SG(a.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType};a.actionType==="ad_to_video"?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)); a.adFormat&&(b.adType=a.adFormat);a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn);a.videoId&&(b.videoId=a.videoId);a.adCpn&&(b.adClientPlaybackNonce=a.adCpn);a.adVideoId&&(b.adVideoId=a.adVideoId);g.hB(b,a.actionType)}}; h0=function(a){g.K.call(this);this.J=a;this.j=new Map;this.B=new rt(this);g.Q(this,this.B);this.B.T(this.J,g.iE("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.jE("ad"),this.onCueRangeExit,this)}; e7a=function(a,b,c,d,e){g.gE.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})}; i0=function(a){this.J=a}; j0=function(a){this.J=a}; f7a=function(a){return k0(a)&&LJ(a,"html5_ssap_play_cached_preroll")}; YJ=function(a){return a.J.U().yc()&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")}; k0=function(a){var b,c;return(c=(b=a.J.getVideoData(1))==null?void 0:g.fR(b))!=null?c:!1}; LJ=function(a,b){return a.J.U().L(b)}; g7a=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")}; RJ=function(a){var b,c,d;return((b=a.J.getVideoData(1).getPlayerResponse())==null?void 0:(c=b.playerConfig)==null?void 0:(d=c.daiConfig)==null?void 0:d.enableServerStitchedDai)||!1}; pAa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")}; h7a=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")}; uJ=function(a){return a.J.U().experiments.ob("enable_desktop_player_underlay")}; i7a=function(a){return a.J.U().experiments.ob("html5_load_empty_player_in_media_break_sub_lra")}; wH=function(a){return a.J.U().experiments.ob("html5_load_ads_instead_of_cue")}; xH=function(a){return a.J.U().experiments.ob("html5_preload_ads")}; l0=function(a){return a.J.U().experiments.ob("html5_rebase_video_to_ad_timeline")}; rK=function(a){return a.J.U().experiments.ob("enable_ads_control_flow_deterministic_id_generation")}; j7a=function(a){return a.J.U().experiments.ob("enable_desktop_discovery_video_abandon_pings")}; k7a=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}}; l7a=function(){g.iy.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.v(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; m0=function(){if(m7a===null){m7a=new l7a;El(Go).B="b";var a=El(Go),b=zo(a)=="h"||zo(a)=="b",c=!(Jl(),!1);b&&c&&(a.D=!0,a.G=new vja)}return m7a}; n7a=function(a,b,c){a.j[b]=c}; o7a=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}}; n0=function(a,b,c){this.Ha=a;this.J=b;this.Ba=c;this.B=new Set;this.j=new Map;m0().subscribe("adactiveviewmeasurable",this.Wx,this);m0().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Vx,this);m0().subscribe("adviewableimpression",this.Xx,this);m0().subscribe("adaudioaudible",this.Tx,this);m0().subscribe("adaudiomeasurable",this.Ux,this)}; p0=function(a,b,c){var d=c.zt,e=c.aI,f=c.listener,h=c.O6;c=c.Ao===void 0?!1:c.Ao;if(a.j.has(b))qz("Unexpected registration of layout in LidarApi");else{if(h){if(a.B.has(h))return;a.B.add(h)}a.j.set(b,f);il(Jl().Jc,"fmd",1);Fka(El(Go),d);var l=c?b:void 0;n7a(m0(),b,{GP:function(){if(!e)return{};var m=a.J.getPresentingPlayerType(!0),n;return(n=a.J.getVideoData(m))!=null&&n.isAd()?{currentTime:a.Ha.get().getCurrentTimeSec(m,!1,l),duration:e,isPlaying:o0(a.Ha.get(),m).isPlaying(),isVpaid:!1,isYouTube:!0, volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}})}}; q0=function(a,b){a.j.has(b)?(a.j.delete(b),delete m0().j[b]):qz("Unexpected unregistration of layout in LidarApi")}; r7a=function(a,b,c){var d={};p7a(a,d,b,c);q7a(d);d.LACT=r0(function(){return tw().toString()}); d.VIS=r0(function(){return a.getVisibilityState().toString()}); d.SDKV="h.3.0";d.VOL=r0(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()}); d.VED="";return d}; s7a=function(a,b){var c={};if(b)return c;if(!a.kind)return g.Jx(Error("AdPlacementConfig without kind")),c;if(a.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||a.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.Jx(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=r0(bd(Math.round($d(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=r0(bd("0"));return c}; r0=function(a){return{toString:function(){return a()}}}; t7a=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.Gc(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}; p7a=function(a,b,c,d){b.CPN=r0(function(){var e;(e=a.getVideoData(1))?e=e.clientPlaybackNonce:(g.Kx(Error("Video data is null.")),e=null);return e}); b.AD_MT=r0(function(){if(d!=null)var e=d;else{var f=c;a.U().L("html5_ssap_use_cpn_to_get_time")||(f=void 0);if(a.U().L("enable_h5_shorts_ad_fill_ad_mt_macro")||a.U().L("enable_desktop_discovery_pings_ad_mt_macro")){var h=a.getPresentingPlayerType(!0),l;e=((l=a.getVideoData(h))==null?0:l.isAd())?u7a(a,h,f):0}else e=u7a(a,2,f)}return Math.round(Math.max(0,e*1E3)).toString()}); b.MT=r0(function(){return Math.round(Math.max(0,a.getCurrentTime(1,!1)*1E3)).toString()}); b.P_H=r0(function(){return a.qb().Xh().height.toString()}); b.P_W=r0(function(){return a.qb().Xh().width.toString()}); b.PV_H=r0(function(){return a.qb().getVideoContentRect().height.toString()}); b.PV_W=r0(function(){return a.qb().getVideoContentRect().width.toString()})}; q7a=function(a){a.CONN=r0(bd("0"));a.WT=r0(function(){return Date.now().toString()})}; u7a=function(a,b,c){return c!==void 0?a.getCurrentTime(b,!1,c):a.getCurrentTime(b,!1)}; v7a=function(){}; w7a=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,u,x,B,E;g.H(function(F){switch(F.j){case 1:f=!!b.scrubReferrer;h=g.Ho(b.baseUrl,t7a(c,f,d));l={};if(!b.headers){F.Ia(2);break}m=a.D();if(!m.j){n=m.getValue();F.Ia(3);break}return g.G(F,m.j,4);case 4:n=F.B;case 3:p=n;q=g.v(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.Lr("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.Lr("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Lr("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]= g.Lr("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(u=a.G())&&(l["X-Goog-PageId"]=u);break;case "AUTH_USER":x=a.j();!p&&x&&(l["X-Goog-AuthUser"]=x);break;case "DATASYNC_ID":if(B=void 0,(B=a.C())==null?0:B.ob("enable_datasync_id_header_in_web_vss_pings"))E=a.B(),Yr(h)&&g.Lr("LOGGED_IN")&&E&&(l["X-Yt-DataSync-Id"]=E)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.Lv(h,void 0,f,Object.keys(l).length!== 0?l:void 0,"",!0,e),g.va(F)}})}; x7a=function(a,b,c,d,e){this.D=a;this.G=b;this.j=c;this.B=d;this.C=e}; y7a=function(a,b){this.j=a;this.Ba=b}; s0=function(a,b,c,d,e,f,h){var l=l===void 0?new x7a(function(){var m=a.U(),n=a.getVideoData(1);return g.gQ(m,n?g.OR(n):"")},function(){return a.U().pageId},function(){return a.U().Ca},function(){var m; return(m=a.U().datasyncId)!=null?m:""},function(){return a.U().experiments}):l; this.J=a;this.B=b;this.yb=c;this.Sa=d;this.Qb=e;this.Ba=f;this.Qg=h;this.D=l;this.BC=null;this.j=new Map;this.C=new y7a(l,this.Ba)}; A7a=function(a,b,c,d,e){var f=aK(a.B.get(),c);f?(c=EE(a,z7a(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):qz("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; Cva=function(a,b,c,d,e,f){d=d===void 0?[]:d;var h=aK(a.B.get(),b);if(h){var l=a.yb.get().Oh(b,c),m=EE(a,z7a(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Qb.us("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new bya(n,p),void 0,void 0,h.adLayoutLoggingData))})}else qz("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b, trackingType:c})}; RH=function(a,b){g.bu("adsClientStateChange",b)}; B7a=function(a,b){a.j.has(b.nA())?qz("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.nA(),b)}; C7a=function(a,b){a.j.delete(b.nA())||qz("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; UH=function(a,b,c){typeof c==="string"?a.J.getVideoData(1).Ay(b,c):a.J.getVideoData(1).oa(b,c)}; z7a=function(a){var b=jD(a.Aa,"metadata_type_ad_placement_config");a=jD(a.Aa,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,r_:a}}; EE=function(a,b,c,d,e,f){var h=c?D7a(a):{},l=c?E7a(a,c.layoutId):{},m=F7a(a),n,p=e!=null?e:(n=a.Sa.get().De(2))==null?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=a.Sa.get().De(1).clientPlaybackNonce);e=void 0;if(c){var q;if((q=a.Qg.j.get(c.layoutId))==null?0:q.Ao)e=c.layoutId}q={};a=Object.assign({},r7a(a.J,e,d),s7a(b.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),l,h,m,(q.FINAL=r0(function(){return"1"}),q.AD_CPN=r0(function(){return p|| ""}),q)); (c==null?void 0:c.renderingContent)!==void 0||(a.SLOT_POS=r0(function(){return(b.r_||0).toString()})); c={};f=Object.assign({},a,f);a=g.v(Object.values(G7a));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],h!=null&&h.toString()!=null&&(c[d]=h.toString());return c}; D7a=function(a){var b={},c,d=(c=a.BC)==null?void 0:c.ij/1E3;d!=null&&(b.SURVEY_ELAPSED_MS=r0(function(){return Math.round(d*1E3).toString()})); b.SURVEY_LOCAL_TIME_EPOCH_S=r0(function(){return Math.round(Date.now()/1E3).toString()}); return b}; E7a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.vP();if(!a)return{};b={};return b.YT_ERROR_CODE=a.WM.toString(),b.ERRORCODE=a.ZH.toString(),b.ERROR_MSG=a.errorMessage,b}; F7a=function(a){var b={},c=a.J.getVideoData(1);b.ASR=r0(function(){var d;return(d=c==null?void 0:c.Qv)!=null?d:null}); b.EI=r0(function(){var d;return(d=c==null?void 0:c.eventId)!=null?d:null}); return b}; t0=function(a,b,c){g.K.call(this);this.J=a;this.Us=b;this.Ba=c;this.listeners=[];this.ZQ=null;this.ZN=new Map;b=new g.EF(this);g.Q(this,b);b.T(a,"videodatachange",this.oca);b.T(a,"serverstitchedvideochange",this.Qba);this.Qw=this.De()}; H7a=function(a,b,c){var d=a.LI(b,c);a.Qw=d;a.listeners.forEach(function(e){e.pL(d)})}; pF=function(a,b,c){a.J.getVideoData(1).oa(b,c)}; I7a=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; u0=function(a,b,c){g.K.call(this);this.J=a;this.Sa=b;this.Ba=c;this.listeners=[];this.qE=[];this.j=function(){qz("Called 'doUnlockPreroll' before it's initialized.")}; b=new rt(this);c=new g.EF(this);g.Q(this,c);g.Q(this,b);b.T(a,"progresssync",this.pba);b.T(a,"presentingplayerstatechange",this.eba);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.nh);b.T(a,"overlayvisibilitychange",this.Dj);b.T(a,"shortsadswipe",this.Fj);b.T(a,"resize",this.jc);c.T(a,g.iE("appad"),this.Cj)}; v0=function(a){k0(a.Ba.get())||a.j()}; J7a=function(a,b){a.qE=a.qE.filter(function(c){return c!==b})}; w0=function(a,b,c){return a.getCurrentTimeSec(b,c)}; K7a=function(a,b){var c;b=(c=a.Sa.get().ZN.get(b))!=null?c:null;if(b===null)return qz("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a0){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&h.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&h.adTimeOffset&&h.adTimeOffset.offsetEndMilliseconds==="-1"&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)}); d.map(function(h){return g.R(h,lJ)}).forEach(function(h){var l; (h=h==null?void 0:(l=h.slotEntryTrigger)==null?void 0:l.mediaTimeRangeTrigger)&&h.offsetEndMilliseconds==="-1"&&(h.offsetEndMilliseconds=f)})}return{Bw:e, adSlots:d,CC:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}}; B0=function(a){g.K.call(this);this.J=a;this.listeners=[];this.j=new rt(this);g.Q(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.zR);this.j.T(this.J,"aduxmouseout",this.yR);this.j.T(this.J,"muteadaccepted",this.N$)}; P7a=function(a,b,c){b=g.Bl(b,function(d){return new vsa(d,c,d.id)}); a.J.ib("onAdUxUpdate",b)}; C0=function(a,b){a=g.v(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)}; D0=function(a,b){this.B=a;this.C=b===void 0?!1:b;this.j={}}; Q7a=function(a,b){var c=a.startSecs+a.Ch;c=c<=0?null:c;if(c===null)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{x7:new Dp(b,c),L9:new XM(b,c-b,a.context,a.identifier,a.event,a.j)}}; R7a=function(){this.j=[]}; txa=function(a,b,c){var d=g.Hb(a.j,b);if(d>=0)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; E0=function(a,b,c){g.K.call(this);this.J=a;this.Ba=b;this.Oa=c;this.listeners=[];this.D=!1;this.IM=[];this.B=null;this.G=new D0(this,h7a(b.get()));this.C=new R7a;this.j=null}; S7a=function(a,b){a.IM.push(b);for(var c=!1,d=g.v(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.Y_(b)||c;a.D=c}; U7a=function(a,b){RH(a.Oa.get(),{cuepointTrigger:{event:T7a(b.event),cuepointId:b.identifier,totalCueDurationMs:b.Ch*1E3,playheadTimeMs:b.j,cueStartTimeMs:b.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})}; T7a=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 Pd(a,"Unexpected cuepoint event")}}; F0=function(a){this.J=a}; V7a=function(a,b){a.J.cueVideoByPlayerVars(b,2)}; G0=function(a){this.J=a}; H0=function(a){this.J=a}; W7a=function(a){this.J=a}; X7a=function(a,b,c,d,e){g.K.call(this);var f=this,h=SD(function(){return new qK(f.Ba)}); g.Q(this,h);var l=SD(function(){return new sK(h,f.Ba)}); g.Q(this,l);var m=SD(function(){return new ZJ}); g.Q(this,m);var n=SD(function(){return new WJ(a)}); g.Q(this,n);var p=SD(function(){return new tK(h,l,f.Ba)}); g.Q(this,p);var q=SD(function(){return new yK}); g.Q(this,q);this.Cc=SD(function(){return new B0(b)}); g.Q(this,this.Cc);this.Lb=SD(function(){return new UD(e)}); g.Q(this,this.Lb);this.zc=SD(function(){return new f0(b)}); g.Q(this,this.zc);this.Pc=SD(function(){return new h0(b)}); g.Q(this,this.Pc);this.jd=SD(function(){return new F0(b)}); g.Q(this,this.jd);this.kd=SD(function(){return new i0(b)}); g.Q(this,this.kd);this.Ba=SD(function(){return new j0(b)}); g.Q(this,this.Ba);var r=SD(function(){return new A0(d)}); g.Q(this,r);var t=SD(function(){return new rD(f.Ba)}); g.Q(this,t);this.Yf=SD(function(){return new G0(b)}); g.Q(this,this.Yf);this.Fo=SD(function(){return new XD}); g.Q(this,this.Fo);this.Sa=SD(function(){return new t0(b,q,f.Ba)}); g.Q(this,this.Sa);var u=d0({Sa:this.Sa,Ba:this.Ba,Me:t}),x=u.context,B=u.Qg;this.Qb=u.Qb;this.yf=SD(function(){return new E0(b,f.Ba,f.Oa)}); g.Q(this,this.yf);this.Fc=SD(function(){return new H0(b)}); g.Q(this,this.Fc);this.Ha=SD(function(){return new u0(b,f.Sa,f.Ba)}); g.Q(this,this.Ha);u=SD(function(){return new NJ(h,p,l,f.Ba,t,"SLOT_TYPE_ABOVE_FEED",f.Ha,f.gk)}); g.Q(this,u);this.hf=SD(function(){return new YD}); this.yb=SD(function(){return new n0(f.Ha,b,f.Ba)}); g.Q(this,this.yb);this.Oa=SD(function(){return new s0(b,m,f.yb,f.Sa,f.Qb,f.Ba,B)}); g.Q(this,this.Oa);this.Kk=new UJ(TJ,I0,function(F,I,O,N){return tJ(l.get(),F,I,O,N)},n,p,l,t,this.Ba,this.Sa); g.Q(this,this.Kk);this.Qd=new VJ(n,u,c,this.Ba,a,this.Sa,this.Ha,this.zc);g.Q(this,this.Qd);var E=new e0(b,this.Qd,this.Ha,this.Sa,this.yf);this.wh=SD(function(){return E}); this.Yx=E;this.gk=new QJ(n,p,this.wh,this.yf,this.Ha,this.Ba,this.Oa,this.Fc);g.Q(this,this.gk);this.Gg=new XJ(n,p,this.Pc,this.wh,x);g.Q(this,this.Gg);this.Ud=new kJ(this.Ba,n,p,u,this.Sa,this.Gg,c);g.Q(this,this.Ud);this.Vj=SD(function(){return new pE(r,l,t,f.Ba,f.Oa,f.Ha,f.Fc)}); g.Q(this,this.Vj);this.Xe=SD(function(){return new qE}); g.Q(this,this.Xe);this.Xg=new fK(a,this.Cc,this.Ba);g.Q(this,this.Xg);this.Zb=new gK(a);g.Q(this,this.Zb);this.Lw=new hK(a);g.Q(this,this.Lw);this.yh=new jK(a,this.wh,x);g.Q(this,this.yh);this.zf=new kK(a,this.Pc,this.Ha,this.Sa,x);g.Q(this,this.zf);this.Jx=new lK(a,this.Sa);g.Q(this,this.Jx);this.cf=new mK(a);g.Q(this,this.cf);this.Xd=new pK(a);g.Q(this,this.Xd);this.Gk=new nK(a);g.Q(this,this.Gk);this.Ry=new oK(a);g.Q(this,this.Ry);this.Xd=new pK(a);g.Q(this,this.Xd);this.Qe=SD(function(){return new bK}); g.Q(this,this.Qe);this.Lk=SD(function(){return new cK(f.Ha)}); g.Q(this,this.Lk);this.FW=SD(function(){return new Xva(f.Cc,f.Oa,a,m,f.yb)}); g.Q(this,this.FW);this.Uj=SD(function(){return new XE(f.Ud,n,h)}); g.Q(this,this.Uj);this.lk=SD(function(){return new bF(f.Ba,f.Oa,f.cf,f.yb)}); g.Q(this,this.lk);this.Jk=SD(function(){return new aI(a,f.Xd,f.cf,f.Sa,f.Fc,f.Ha,f.Oa,q,f.yf,f.yb,f.hf,f.jd,f.Pc,f.zc,f.kd,f.Lb,f.Yf,f.Ba,m,x,B)}); g.Q(this,this.Jk);this.yS=SD(function(){return new kwa(f.Ha,f.Oa,f.Ba,f.yb)}); g.Q(this,this.yS);this.uu=SD(function(){return new Rxa(f.Cc,f.Ha,f.Oa,m,f.yb,f.Lw,f.Ry,f.Lb,f.Ba,c)}); g.Q(this,this.uu);this.d3=SD(function(){return new Yva(f.Cc)}); g.Q(this,this.d3);this.VN=new z0(a,this.Fo,h);g.Q(this,this.VN);this.oh={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vj],["SLOT_TYPE_ABOVE_FEED",this.Xe],["SLOT_TYPE_FORECASTING",this.Xe], ["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe],["SLOT_TYPE_PLAYER_UNDERLAY",this.Xe],["SLOT_TYPE_PLAYBACK_TRACKING",this.Xe],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Xe]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Zb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Lw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.zf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.zf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.zf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.zf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Jx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Jx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ry],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xd]]),yv:new Map([["SLOT_TYPE_ABOVE_FEED",this.Qe],["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES",this.Lk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Qe],["SLOT_TYPE_PLAYBACK_TRACKING",this.Qe],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Qe]]),Hu:new Map([["SLOT_TYPE_ABOVE_FEED", this.FW],["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_PLAYER_BYTES",this.Jk],["SLOT_TYPE_PLAYBACK_TRACKING",this.yS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.yS],["SLOT_TYPE_IN_PLAYER",this.uu],["SLOT_TYPE_PLAYER_UNDERLAY",this.d3]])};this.listeners=[m.get()];this.bB={Ud:this.Ud,ql:this.Ba.get(),kb:this.Lb.get(),NB:this.Ha.get(),Qd:this.Qd,ox:h.get(),TF:this.Fo.get(),Io:this.Xg,Cl:m.get(),Jf:this.Sa.get()}}; Y7a=function(a,b,c,d,e){g.K.call(this);var f=this,h=SD(function(){return new qK(f.Ba)}); g.Q(this,h);var l=SD(function(){return new sK(h,f.Ba)}); g.Q(this,l);var m=SD(function(){return new ZJ}); g.Q(this,m);var n=SD(function(){return new WJ(a)}); g.Q(this,n);var p=SD(function(){return new tK(h,l,f.Ba)}); g.Q(this,p);var q=SD(function(){return new yK}); g.Q(this,q);this.Cc=SD(function(){return new B0(b)}); g.Q(this,this.Cc);this.Lb=SD(function(){return new UD(e)}); g.Q(this,this.Lb);this.zc=SD(function(){return new f0(b)}); g.Q(this,this.zc);this.Pc=SD(function(){return new h0(b)}); g.Q(this,this.Pc);this.jd=SD(function(){return new F0(b)}); g.Q(this,this.jd);this.kd=SD(function(){return new i0(b)}); g.Q(this,this.kd);this.Ba=SD(function(){return new j0(b)}); g.Q(this,this.Ba);var r=SD(function(){return new A0(d)}); g.Q(this,r);var t=SD(function(){return new rD(f.Ba)}); g.Q(this,t);var u=SD(function(){return new NJ(h,p,l,f.Ba,t,null,null,f.gk)}); g.Q(this,u);this.Yf=SD(function(){return new G0(b)}); g.Q(this,this.Yf);this.Fo=SD(function(){return new XD}); g.Q(this,this.Fo);this.Sa=SD(function(){return new t0(b,q,f.Ba)}); g.Q(this,this.Sa);var x=d0({Sa:this.Sa,Ba:this.Ba,Me:t}),B=x.context,E=x.Qg;this.Qb=x.Qb;this.yf=SD(function(){return new E0(b,f.Ba,f.Oa)}); this.Ha=SD(function(){return new u0(b,f.Sa,f.Ba)}); g.Q(this,this.Ha);this.yb=SD(function(){return new n0(f.Ha,b,f.Ba)}); g.Q(this,this.yb);this.Oa=SD(function(){return new s0(b,m,f.yb,f.Sa,f.Qb,f.Ba,E)}); g.Q(this,this.Oa);this.hf=SD(function(){return new YD}); g.Q(this,this.hf);this.Kk=new UJ(TJ,I0,function(I,O,N,S){return tJ(l.get(),I,O,N,S)},n,p,l,t,this.Ba,this.Sa); g.Q(this,this.Kk);this.Qd=new VJ(n,u,c,this.Ba,a,this.Sa,this.Ha,this.zc);g.Q(this,this.Qd);var F=new e0(b,this.Qd,this.Ha,this.Sa,this.yf);this.wh=SD(function(){return F}); this.Yx=F;this.gk=new QJ(n,p,this.wh,this.yf,this.Ha,this.Ba,this.Oa);g.Q(this,this.gk);this.Gg=new XJ(n,p,this.Pc,this.wh,B);g.Q(this,this.Gg);this.Ud=new kJ(this.Ba,n,p,u,this.Sa,this.Gg,c);g.Q(this,this.Ud);this.Vj=SD(function(){return new pE(r,l,t,f.Ba,f.Oa,f.Ha)}); g.Q(this,this.Vj);this.Xe=SD(function(){return new qE}); g.Q(this,this.Xe);this.Xg=new fK(a,this.Cc,this.Ba);g.Q(this,this.Xg);this.Zb=new gK(a);g.Q(this,this.Zb);this.Lw=new hK(a);g.Q(this,this.Lw);this.yh=new jK(a,this.wh,B);g.Q(this,this.yh);this.zf=new kK(a,this.Pc,this.Ha,this.Sa,B);g.Q(this,this.zf);this.cf=new mK(a);g.Q(this,this.cf);this.Gk=new nK(a);g.Q(this,this.Gk);this.Ry=new oK(a);g.Q(this,this.Ry);this.Fc=SD(function(){return new H0(b)}); g.Q(this,this.Fc);this.Xd=new pK(a);g.Q(this,this.Xd);this.Qe=SD(function(){return new bK}); g.Q(this,this.Qe);this.Lk=SD(function(){return new cK(f.Ha)}); g.Q(this,this.Lk);this.Uj=SD(function(){return new XE(f.Ud,n,h)}); g.Q(this,this.Uj);this.lk=SD(function(){return new bF(f.Ba,f.Oa,f.cf,f.yb)}); g.Q(this,this.lk);this.uu=SD(function(){return new Sxa(f.Cc,f.Ha,f.Oa,m,f.yb,f.Lw,f.Ry,f.Lb,f.Ba,c)}); g.Q(this,this.uu);this.Jk=SD(function(){return new bI(a,f.Xd,f.cf,f.Oa,f.yb,f.hf,f.jd,f.Sa,f.Ha,f.Pc,f.zc,f.kd,f.Lb,f.Yf,f.Ba,f.Fc,B,E)}); g.Q(this,this.Jk);this.VN=new z0(a,this.Fo,h);g.Q(this,this.VN);this.oh={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe], ["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Zb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Lw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Ry],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xd]]),yv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES",this.Lk]]),Hu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_IN_PLAYER",this.uu],["SLOT_TYPE_PLAYER_BYTES",this.Jk]])};this.listeners=[m.get()];this.bB={Ud:this.Ud,ql:this.Ba.get(),kb:this.Lb.get(),NB:this.Ha.get(),Qd:this.Qd,ox:h.get(),TF:this.Fo.get(),Io:this.Xg, Cl:m.get(),Jf:this.Sa.get()}}; Z7a=function(a,b,c,d,e){g.K.call(this);var f=this,h=SD(function(){return new qK(f.Ba)}); g.Q(this,h);var l=SD(function(){return new sK(h,f.Ba)}); g.Q(this,l);var m=SD(function(){return new ZJ}); g.Q(this,m);var n=SD(function(){return new WJ(a)}); g.Q(this,n);var p=SD(function(){return new tK(h,l,f.Ba)}); g.Q(this,p);var q=SD(function(){return new yK}); g.Q(this,q);this.Cc=SD(function(){return new B0(b)}); g.Q(this,this.Cc);this.Lb=SD(function(){return new UD(e)}); g.Q(this,this.Lb);this.zc=SD(function(){return new f0(b)}); g.Q(this,this.zc);this.Pc=SD(function(){return new h0(b)}); g.Q(this,this.Pc);this.jd=SD(function(){return new F0(b)}); g.Q(this,this.jd);this.kd=SD(function(){return new i0(b)}); g.Q(this,this.kd);this.Ba=SD(function(){return new j0(b)}); g.Q(this,this.Ba);var r=SD(function(){return new A0(d)}); g.Q(this,r);var t=SD(function(){return new rD(f.Ba)}); g.Q(this,t);var u=SD(function(){return new NJ(h,p,l,f.Ba,t,null,null,null)}); g.Q(this,u);this.Yf=SD(function(){return new G0(b)}); g.Q(this,this.Yf);this.Sa=SD(function(){return new t0(b,q,f.Ba)}); g.Q(this,this.Sa);var x=d0({Sa:this.Sa,Ba:this.Ba,Me:t}),B=x.context,E=x.Qg;this.Qb=x.Qb;this.Ha=SD(function(){return new u0(b,f.Sa,f.Ba)}); g.Q(this,this.Ha);this.yb=SD(function(){return new n0(f.Ha,b,f.Ba)}); g.Q(this,this.yb);this.Oa=SD(function(){return new s0(b,m,f.yb,f.Sa,f.Qb,f.Ba,E)}); g.Q(this,this.Oa);this.hf=SD(function(){return new YD}); g.Q(this,this.hf);this.Kk=new UJ(TJ,I0,function(I,O,N,S){return tJ(l.get(),I,O,N,S)},n,p,l,t,this.Ba,this.Sa); g.Q(this,this.Kk);this.Qd=new VJ(n,u,c,this.Ba,a,this.Sa,this.Ha,this.zc);g.Q(this,this.Qd);var F=new e0(b,this.Qd,this.Ha,this.Sa);this.wh=SD(function(){return F}); this.Yx=F;this.Gg=new XJ(n,p,this.Pc,this.wh,B);g.Q(this,this.Gg);this.Ud=new kJ(this.Ba,n,p,u,this.Sa,this.Gg,c);g.Q(this,this.Ud);this.Vj=SD(function(){return new pE(r,l,t,f.Ba,f.Oa,f.Ha)}); g.Q(this,this.Vj);this.Xe=SD(function(){return new qE}); g.Q(this,this.Xe);this.Xg=new fK(a,this.Cc,this.Ba);g.Q(this,this.Xg);this.Zb=new gK(a);g.Q(this,this.Zb);this.yh=new jK(a,this.wh,B);g.Q(this,this.yh);this.zf=new kK(a,this.Pc,this.Ha,this.Sa,B);g.Q(this,this.zf);this.cf=new mK(a);g.Q(this,this.cf);this.Gk=new nK(a);g.Q(this,this.Gk);this.Fc=SD(function(){return new H0(b)}); g.Q(this,this.Fc);this.Xd=new pK(a);g.Q(this,this.Xd);this.Qe=SD(function(){return new bK}); g.Q(this,this.Qe);this.Lk=SD(function(){return new cK(f.Ha)}); g.Q(this,this.Lk);this.Uj=SD(function(){return new XE(f.Ud,n,h)}); g.Q(this,this.Uj);this.lk=SD(function(){return new bF(f.Ba,f.Oa,f.cf,f.yb)}); g.Q(this,this.lk);this.D0=SD(function(){return new iwa(f.Cc,f.Ha,f.Oa,m,c,f.Ba)}); g.Q(this,this.D0);this.Jk=SD(function(){return new bI(a,f.Xd,f.cf,f.Oa,f.yb,f.hf,f.jd,f.Sa,f.Ha,f.Pc,f.zc,f.kd,f.Lb,f.Yf,f.Ba,f.Fc,B,E)}); g.Q(this,this.Jk);this.oh={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xd]]),yv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_ABOVE_FEED",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES",this.Lk]]),Hu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_IN_PLAYER", this.D0],["SLOT_TYPE_PLAYER_BYTES",this.Jk]])};this.listeners=[m.get()];this.bB={Ud:this.Ud,ql:this.Ba.get(),kb:this.Lb.get(),NB:this.Ha.get(),Qd:this.Qd,ox:h.get(),TF:null,Io:this.Xg,Cl:m.get(),Jf:this.Sa.get()}}; $7a=function(a,b,c,d,e){g.K.call(this);var f=this,h=SD(function(){return new qK(f.Ba)}); g.Q(this,h);var l=SD(function(){return new sK(h,f.Ba)}); g.Q(this,l);var m=SD(function(){return new ZJ}); g.Q(this,m);var n=SD(function(){return new WJ(a)}); g.Q(this,n);var p=SD(function(){return new tK(h,l,f.Ba)}); g.Q(this,p);var q=SD(function(){return new yK}); g.Q(this,q);this.Fn=SD(function(){return new W7a(b)}); g.Q(this,this.Fn);this.Cc=SD(function(){return new B0(b)}); g.Q(this,this.Cc);this.Lb=SD(function(){return new UD(e)}); g.Q(this,this.Lb);this.zc=SD(function(){return new f0(b)}); g.Q(this,this.zc);this.Pc=SD(function(){return new h0(b)}); g.Q(this,this.Pc);this.jd=SD(function(){return new F0(b)}); g.Q(this,this.jd);this.kd=SD(function(){return new i0(b)}); g.Q(this,this.kd);this.Ba=SD(function(){return new j0(b)}); g.Q(this,this.Ba);var r=SD(function(){return new A0(d)}); g.Q(this,r);var t=SD(function(){return new rD(f.Ba)}); g.Q(this,t);var u=SD(function(){return new NJ(h,p,l,f.Ba,t,null,null,null)}); g.Q(this,u);this.Yf=SD(function(){return new G0(b)}); g.Q(this,this.Yf);this.Sa=SD(function(){return new t0(b,q,f.Ba)}); g.Q(this,this.Sa);var x=d0({Sa:this.Sa,Ba:this.Ba,Me:t}),B=x.context,E=x.Qg;this.Qb=x.Qb;this.Ha=SD(function(){return new u0(b,f.Sa,f.Ba)}); g.Q(this,this.Ha);this.yb=SD(function(){return new n0(f.Ha,b,f.Ba)}); g.Q(this,this.yb);this.Oa=SD(function(){return new s0(b,m,f.yb,f.Sa,f.Qb,f.Ba,E)}); g.Q(this,this.Oa);this.hf=SD(function(){return new YD}); g.Q(this,this.hf);this.Kk=new UJ(wAa,I0,function(I,O,N,S){return NAa(l.get(),I,O,N,S)},n,p,l,t,this.Ba,this.Sa); g.Q(this,this.Kk);this.Qd=new VJ(n,u,c,this.Ba,a,this.Sa,this.Ha,this.zc);g.Q(this,this.Qd);var F=new e0(b,this.Qd,this.Ha,this.Sa);this.wh=SD(function(){return F}); this.Yx=F;this.Gg=new XJ(n,p,this.Pc,this.wh,B);g.Q(this,this.Gg);this.Ud=new kJ(this.Ba,n,p,u,this.Sa,this.Gg,c);g.Q(this,this.Ud);this.Vj=SD(function(){return new pE(r,l,t,f.Ba,f.Oa,f.Ha)}); g.Q(this,this.Vj);this.Xe=SD(function(){return new qE}); g.Q(this,this.Xe);this.Xg=new fK(a,this.Cc,this.Ba);g.Q(this,this.Xg);this.Zb=new gK(a);g.Q(this,this.Zb);this.yh=new jK(a,this.wh,B);g.Q(this,this.yh);this.zf=new kK(a,this.Pc,this.Ha,this.Sa,B);g.Q(this,this.zf);this.cf=new mK(a);g.Q(this,this.cf);this.Gk=new nK(a);g.Q(this,this.Gk);this.Fc=SD(function(){return new H0(b)}); g.Q(this,this.Fc);this.Xd=new pK(a);g.Q(this,this.Xd);this.Qe=SD(function(){return new bK}); g.Q(this,this.Qe);this.Lk=SD(function(){return new cK(f.Ha)}); g.Q(this,this.Lk);this.Uj=SD(function(){return new XE(f.Ud,n,h)}); g.Q(this,this.Uj);this.lk=SD(function(){return new bF(f.Ba,f.Oa,f.cf,f.yb)}); g.Q(this,this.lk);this.Jk=SD(function(){return new bI(a,f.Xd,f.cf,f.Oa,f.yb,f.hf,f.jd,f.Sa,f.Ha,f.Pc,f.zc,f.kd,f.Lb,f.Yf,f.Ba,f.Fc,B,E)}); g.Q(this,this.Jk);this.D3=SD(function(){return new Uxa(f.Cc,f.Ha,f.Oa,m,f.Fn,c,f.Sa)}); g.Q(this,this.D3);this.oh={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xd]]),yv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES",this.Lk]]),Hu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_IN_PLAYER",this.D3],["SLOT_TYPE_PLAYER_BYTES", this.Jk]])};this.listeners=[m.get()];this.bB={Ud:this.Ud,ql:this.Ba.get(),kb:this.Lb.get(),NB:this.Ha.get(),Qd:this.Qd,ox:h.get(),TF:null,Io:this.Xg,Cl:m.get(),Jf:this.Sa.get()}}; a8a=function(a,b,c,d,e){g.K.call(this);var f=this,h=SD(function(){return new qK(f.Ba)}); g.Q(this,h);var l=SD(function(){return new sK(h,f.Ba)}); g.Q(this,l);var m=SD(function(){return new ZJ}); g.Q(this,m);var n=SD(function(){return new WJ(a)}); g.Q(this,n);var p=SD(function(){return new tK(h,l,f.Ba)}); g.Q(this,p);var q=SD(function(){return new yK}); g.Q(this,q);this.Fn=SD(function(){return new W7a(b)}); g.Q(this,this.Fn);this.Cc=SD(function(){return new B0(b)}); g.Q(this,this.Cc);this.Lb=SD(function(){return new UD(e)}); g.Q(this,this.Lb);this.zc=SD(function(){return new f0(b)}); g.Q(this,this.zc);this.Pc=SD(function(){return new h0(b)}); g.Q(this,this.Pc);this.jd=SD(function(){return new F0(b)}); g.Q(this,this.jd);this.kd=SD(function(){return new i0(b)}); g.Q(this,this.kd);this.Ba=SD(function(){return new j0(b)}); g.Q(this,this.Ba);var r=SD(function(){return new A0(d)}); g.Q(this,r);var t=SD(function(){return new rD(f.Ba)}); g.Q(this,t);this.Yf=SD(function(){return new G0(b)}); g.Q(this,this.Yf);this.Sa=SD(function(){return new t0(b,q,f.Ba)}); g.Q(this,this.Sa);var u=d0({Sa:this.Sa,Ba:this.Ba,Me:t}),x=u.context,B=u.Qg;this.Qb=u.Qb;this.yf=SD(function(){return new E0(b,f.Ba,f.Oa)}); g.Q(this,this.yf);this.Fc=SD(function(){return new H0(b)}); g.Q(this,this.Fc);this.Ha=SD(function(){return new u0(b,f.Sa,f.Ba)}); g.Q(this,this.Ha);u=SD(function(){return new NJ(h,p,l,f.Ba,t,null,f.Ha,f.gk,3)}); g.Q(this,u);this.hf=SD(function(){return new YD}); this.yb=SD(function(){return new n0(f.Ha,b,f.Ba)}); g.Q(this,this.yb);this.Oa=SD(function(){return new s0(b,m,f.yb,f.Sa,f.Qb,f.Ba,B)}); g.Q(this,this.Oa);this.Qd=new VJ(n,u,c,this.Ba,a,this.Sa,this.Ha,this.zc);g.Q(this,this.Qd);var E=new e0(b,this.Qd,this.Ha,this.Sa,this.yf);this.wh=SD(function(){return E}); this.Yx=E;this.Kk=new UJ(xAa,I0,function(F,I,O,N){return NAa(l.get(),F,I,O,N)},n,p,l,t,this.Ba,this.Sa); g.Q(this,this.Kk);this.gk=new QJ(n,p,this.wh,this.yf,this.Ha,this.Ba,this.Oa,this.Fc);g.Q(this,this.gk);this.Gg=new XJ(n,p,this.Pc,this.wh,x);g.Q(this,this.Gg);this.Ud=new kJ(this.Ba,n,p,u,this.Sa,this.Gg,c);g.Q(this,this.Ud);this.Vj=SD(function(){return new pE(r,l,t,f.Ba,f.Oa,f.Ha,f.Fc)}); g.Q(this,this.Vj);this.Xe=SD(function(){return new qE}); g.Q(this,this.Xe);this.Xg=new fK(a,this.Cc,this.Ba);g.Q(this,this.Xg);this.Zb=new gK(a);g.Q(this,this.Zb);this.yh=new jK(a,this.wh,x);g.Q(this,this.yh);this.zf=new kK(a,this.Pc,this.Ha,this.Sa,x);g.Q(this,this.zf);this.Jx=new lK(a,this.Sa);g.Q(this,this.Jx);this.cf=new mK(a);g.Q(this,this.cf);this.Gk=new nK(a);g.Q(this,this.Gk);this.Xd=new pK(a);g.Q(this,this.Xd);this.Qe=SD(function(){return new bK}); g.Q(this,this.Qe);this.Lk=SD(function(){return new cK(f.Ha)}); g.Q(this,this.Lk);this.Uj=SD(function(){return new XE(f.Ud,n,h)}); g.Q(this,this.Uj);this.lk=SD(function(){return new bF(f.Ba,f.Oa,f.cf,f.yb)}); g.Q(this,this.lk);this.Jk=SD(function(){return new aI(a,f.Xd,f.cf,f.Sa,f.Fc,f.Ha,f.Oa,q,f.yf,f.yb,f.hf,f.jd,f.Pc,f.zc,f.kd,f.Lb,f.Yf,f.Ba,m,x,B)}); g.Q(this,this.Jk);this.uu=SD(function(){return new Vxa(f.Cc,f.Ha,f.Oa,m,f.Fn,c,f.Ba,f.Sa)}); g.Q(this,this.uu);this.oh={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Jx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Jx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Xd]]),yv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES", this.Lk]]),Hu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_PLAYER_BYTES",this.Jk],["SLOT_TYPE_IN_PLAYER",this.uu]])};this.listeners=[m.get()];this.bB={Ud:this.Ud,ql:this.Ba.get(),kb:this.Lb.get(),NB:this.Ha.get(),Qd:this.Qd,ox:h.get(),TF:null,Io:this.Xg,Cl:m.get(),Jf:this.Sa.get()}}; c8a=function(a,b,c,d){g.K.call(this);var e=this;this.j=b8a(function(){return e.B},a,b,c,d); g.Q(this,this.j);this.B=(new TD(this.j)).C();g.Q(this,this.B)}; J0=function(a){return a.j.bB}; b8a=function(a,b,c,d,e){try{var f=b.U();if(g.YP(f))var h=new X7a(a,b,c,d,e);else if(g.$P(f))h=new Y7a(a,b,c,d,e);else if(RP(f))h=new Z7a(a,b,c,d,e);else if(g.Lz(f))h=new $7a(a,b,c,d,e);else if(g.LP(f))h=new a8a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),qz("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,qoa:h.j.cver,poa:h.j.ctheme,ooa:h.j.cplayer,Roa:h.playerStyle}),new N7a(a,b,c,d,e)}}; d8a=function(a){Wy.call(this,a)}; e8a=function(a,b,c,d,e){dz.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.ra=this.Ea("ytp-ad-timed-pie-countdown");this.D=this.Ea("ytp-ad-timed-pie-countdown-container"); this.B=this.Ea("ytp-ad-timed-pie-countdown-inner");this.G=this.Ea("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(Math.PI*10);this.hide()}; f8a=function(a,b,c,d,e,f){sy.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",W:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div", S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.FT=e;this.pM=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Fa=this.Ea("ytp-ad-action-interstitial-instream-info");this.ra=this.Ea("ytp-ad-action-interstitial-image-container");this.Y=new Sy(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-image");g.Q(this,this.Y);this.Y.Ja(this.ra);this.Wa=this.Ea("ytp-ad-action-interstitial-headline-container"); this.G=new bz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-headline");g.Q(this,this.G);this.G.Ja(this.Wa);this.Va=this.Ea("ytp-ad-action-interstitial-description-container");this.C=new bz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-description");g.Q(this,this.C);this.C.Ja(this.Va);this.Xa=this.Ea("ytp-ad-action-interstitial-background-container");this.Na=new Sy(this.api,this.layoutId,this.interactionLoggingClientData, this.kb,"ytp-ad-action-interstitial-background",!0);g.Q(this,this.Na);this.Na.Ja(this.Xa);this.fb=this.Ea("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ea("ytp-ad-action-interstitial-slot");this.xf=this.Ea("ytp-ad-action-interstitial-card");this.D=new rt;g.Q(this,this.D);this.hide()}; g8a=function(a){var b=g.he("html5-video-player");b&&g.rp(b,"ytp-ad-display-override",a)}; k8a=function(a,b,c,d){sy.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.Fa=this.D=this.Xa=this.Va=null;this.Wa=!1;this.G=null;this.ra=0;a=this.Ea("ytp-ad-overlay-container");this.Na=new mz(a,45E3,6E3,.3,.4);g.Q(this,this.Na);this.C=h8a(this);g.Q(this,this.C);this.C.Ja(a);this.B=i8a(this);g.Q(this,this.B);this.B.Ja(a);this.j=j8a(this);g.Q(this,this.j);this.j.Ja(a);this.hide()}; h8a=function(a){var b=new g.ry({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:[Ky(l8a)]}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",La:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Ea("ytp-ad-overlay-title"),"click",function(c){K0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-link"),"click",function(c){K0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.EN);b.hide();return b}; i8a=function(a){var b=new g.ry({I:"div",La:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[Ky(l8a)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",W:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",La:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], va:"{{displayUrl}}"}]});a.T(b.Ea("ytp-ad-overlay-title"),"click",function(c){K0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-link"),"click",function(c){K0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.EN);a.T(b.Ea("ytp-ad-overlay-text-image"),"click",a.fca);b.hide();return b}; j8a=function(a){var b=new g.ry({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:[Ky(l8a)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ea("ytp-ad-overlay-image"),"click",function(c){K0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.EN);b.hide();return b}; m8a=function(a,b){if(b){var c=g.R(b,gJ)||null;if(c==null)g.Jx(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.he("video-ads ytp-ad-module")||null,b==null)g.Jx(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Fa=new g.ry({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.Q(a,a.Fa),a.Fa.Ja(b),b=new az(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.Fa.element,!1),g.Q(a,b),b.init(gy("ad-info-hover-text-button"), c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.L$,a);b.subscribe("e",a.YR,a);a.T(a.G,"click",a.M$);var d=g.he("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.R((e=g.R(c.button,g.iJ))==null?void 0:e.serviceEndpoint,Fsa))a.Wa=a.api.getPlayerState(1)===2,a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.fb=b}else g.Jx(Error("Ad info button container within overlay ad was not present."))}else g.Kx(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; o8a=function(a,b){if(n8a(a,L0)||a.api.isMinimized())return!1;var c=ty(b.title),d=ty(b.description);if(g.Qb(c)||g.Qb(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",ty(b.title));a.C.updateValue("description",ty(b.description));a.C.updateValue("displayUrl",ty(b.displayUrl));b.navigationEndpoint&&g.Bb(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}; p8a=function(a,b){if(n8a(a,L0)||a.api.isMinimized())return!1;var c=ty(b.title),d=ty(b.description);if(g.Qb(c)||g.Qb(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",ty(b.title));a.B.updateValue("description",ty(b.description));a.B.updateValue("displayUrl",ty(b.displayUrl));a.B.updateValue("imageUrl",Xra(b.image));b.navigationEndpoint&&g.Bb(a.Y,b.navigationEndpoint);a.Xa=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}; q8a=function(a,b){if(a.api.isMinimized())return!1;var c=Yra(b.image),d=c;c.width0?(b=new Jz(a.api,a.j),b.Ja(a.playerOverlay), g.Q(a,b)):g.Jx(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.Jx(Error("addCommonComponents() needs to be called before starting countdown."))}; B8a=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.$a()-a.C).toString()})}; C8a=function(a,b,c,d,e){P0.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()}; D8a=function(a,b,c){a.noneOfTheAbove=new w8a(a.api,a.layoutId,a.interactionLoggingClientData,a.kb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(gy("survey-none-of-the-above"),b,c)}; F8a=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)}); E8a(a,!0)}; E8a=function(a,b){var c=a.D;a=G8a(a);b=b===void 0?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof wz&&!c.j.D&&Osa(c.j,!1));c.B&&(a?c.B.show():c.B.hide())}; G8a=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()}; Q0=function(a,b,c,d,e){P0.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()}; R0=function(a,b,c,d){sy.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.Ea("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Ea("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Ea("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; J8a=function(a,b){var c=a.B[b],d;(d=a.C)==null||d.dispose();g.R(c,eJ)?H8a(a,g.R(c,eJ),a.macros):g.R(c,dJ)&&I8a(a,g.R(c,dJ),a.macros);a.j=b}; H8a=function(a,b,c){var d=new Q0(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.D.bind(a));d.Ja(a.G);d.init(gy("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.Q(a,d)}; I8a=function(a,b,c){var d=new C8a(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.D.bind(a));d.Ja(a.G);d.init(gy("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.Q(a,d)}; S0=function(a,b,c,d){sy.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.Ea("ytp-ad-survey-interstitial");this.B=this.Ea("ytp-ad-survey-interstitial-contents");this.text=this.Ea("ytp-ad-survey-interstitial-text"); this.logoImage=this.Ea("ytp-ad-survey-interstitial-logo-image");this.transition=new g.gz(this,500,!1,300);g.Q(this,this.transition)}; L8a=function(a,b){b=b&&Ry(b)||"";if(g.Qb(b))g.Kx(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=pla(d.style);b=new g.xd([c,Kba(K8a,b)].map(Iba).join(""),Gd);a.style.cssText=yd(b)}}; M8a=function(a){var b=g.he("html5-video-player");b&&g.rp(b,"ytp-ad-display-override",a)}; T0=function(a){this.content=a.content;if(a.commandRuns){a=g.v(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.R(b,N8a),b.onTap&&(this.interaction={onTap:b.onTap})}}; U0=function(a,b,c,d){sy.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()}; V0=function(a,b,c,d){sy.call(this,a,{I:"span",S:"ytp-ad-badge"},"ad-badge",b,c,d);this.adBadgeText=new U0(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);this.adBadgeText.Ja(this.element);g.Q(this,this.adBadgeText);this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; W0=function(a,b,c,d,e,f){f=f===void 0?0:f;dz.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.Ea("ytp-preview-ad__text");switch(this.ra){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.gz(this,400,!1,100,function(){h.hide()}); g.Q(this,this.transition);this.hide()}; X0=function(a,b,c,d){sy.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()}; O8a=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}}; Y0=function(a,b,c,d){sy.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()}; P8a=function(a,b,c,d,e){dz.call(this,a,{I:"div",La:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{I:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{I:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,c,d,e);this.B=0;this.adAvatar=new X0(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.Q(this,this.adAvatar);qe(this.element,this.adAvatar.element,0);this.headline=new U0(this.api,this.layoutId,this.interactionLoggingClientData, this.kb);g.Q(this,this.headline);this.headline.Ja(this.Ea("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new U0(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.Q(this,this.description);this.description.Ja(this.Ea("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Y0(this.api,this.layoutId,this.interactionLoggingClientData, this.kb);g.Q(this,this.adButton);this.adButton.Ja(this.element);this.hide()}; Q8a=function(a,b,c,d){sy.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.Ea("ytp-skip-ad-button__text");this.transition=new g.gz(this,500,!1,100,function(){e.hide()}); g.Q(this,this.transition);this.j=new mz(this.element,15E3,5E3,.5,.5,!0);g.Q(this,this.j);this.hide()}; R8a=function(a,b,c,d,e){dz.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new W0(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j);g.Q(this,this.B);this.B.Ja(this.element);this.C=new Q8a(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.Q(this,this.C);this.C.Ja(this.element);this.hide()}; Z0=function(a,b,c,d){sy.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()}; $0=function(a,b,c,d,e){sy.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",b,c,d);this.B=e;this.ra=this.Ea("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Ea("ytp-ad-player-overlay-layout__ad-info-container"); this.G=this.Ea("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Y=this.Ea("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; a1=function(a,b,c){Wy.call(this,a);this.api=a;this.kb=b;this.B={};a=new g.T({I:"div",La:["video-ads","ytp-ad-module"]});g.Q(this,a);BP&&g.np(a.element,"ytp-ads-tiny-mode");this.G=new lw(a.element);g.Q(this,this.G);g.KS(this.api,a.element,4);uJ(c)&&(c=new g.T({I:"div",La:["ytp-ad-underlay"]}),g.Q(this,c),this.C=new lw(c.element),g.Q(this,this.C),g.KS(this.api,c.element,0));g.Q(this,qsa())}; S8a=function(a,b){a=g.Hc(a.B,b.id,null);a==null&&g.Kx(Error("Component not found for element id: "+b.id));return a||null}; T8a=function(a){g.jU.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new U6a(this.player):new c0(this.player);this.D=function(){if(b.B!=null)return b.B;var d=new a7a({Io:J0(b.j).Io,Jf:J0(b.j).Jf,J:b.player,ql:J0(b.j).ql,Oa:b.j.j.Oa,Cl:J0(b.j).Cl,kd:b.j.j.kd});b.B=d.k6;return b.B}; this.j=new c8a(this.player,this,this.C,this.D);g.Q(this,this.j);var c=a.U();!DD(c)||g.LP(c)||RP(c)||(g.Q(this,new a1(a,J0(this.j).kb,J0(this.j).ql)),g.Q(this,new d8a(a)))}; U8a=function(a){a.created!==a.loaded&&qz("Created and loaded are out of sync")}; X8a=function(a){g.jU.prototype.load.call(a);var b=J0(a.j).ql;try{a.player.getRootNode().classList.add("ad-created")}catch(l){qz(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.ob("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((e==null?void 0:e.adSlots)||[]).map(function(l){return g.R(l,lJ)}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.dc();b=V8a(f,h,b,J0(a.j).ox);f=c&&c.clientPlaybackNonce||"";c=c&&c.Fp||!1;h=1E3*a.player.getDuration(1);W8a(a);a.j.j.Yx.Dk(f,h,c,b.CL,b.KW,b.CL,e,d)}; W8a=function(a){var b,c;if(c=!(((b=a.player.getVideoData(1))==null?0:b.Fp)||g.Lr("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=DD(b)&&!g.CD(b)&&b.playerStyle==="desktop-polymer";c&&(b=zMa(a.player),(a=a.player.L("web_player_deprecate_external_api")?a.player.getInternalApi():void 0)?(a.addEventListener("updateKevlarOrC3Companion",Usa),a.addEventListener("updateEngagementPanelAction",Wsa),a.addEventListener("changeEngagementPanelVisibility",Ysa)):(b.addEventListener("updateKevlarOrC3Companion",Vsa),b.addEventListener("updateEngagementPanelAction", Xsa),b.addEventListener("changeEngagementPanelVisibility",Zsa)),window.addEventListener("yt-navigate-start",ata))}; b1=function(a,b){b===a.xt&&(a.xt=void 0)}; Y8a=function(a){var b=J0(a.j).Qd,c=b.D().UP("SLOT_TYPE_PLAYER_BYTES",1);b=b.Sa.get().De(1).clientPlaybackNonce;var d=!1;c=g.v(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.slotEntryTrigger instanceof pI?e.slotEntryTrigger.Hv:void 0;f&&f===b&&(d&&qz("More than 1 preroll playerBytes slot detected",e),d=!0)}d||v0(J0(a.j).NB)}; Z8a=function(a){if(k0(J0(a.j).ql))return!0;var b="";a=g.v(J0(a.j).Cl.gj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.Ya==="core")return!0;b+=c.slotType+" "}Math.random()<.01&&qz("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1}; $8a=function(a){a=g.v(J0(a.j).Cl.gj.values());for(var b=a.next();!b.done;b=a.next())if(b.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Aya=function(a,b,c,d,e){c=c===void 0?[]:c;d=d===void 0?"":d;e=e===void 0?"":e;var f=J0(a.j).ql,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.dc();c=V8a(b,c,f,J0(a.j).ox);Eya(J0(a.j).Ud,d,c.CL,c.KW,b,e)}; V8a=function(a,b,c,d){b={CL:[],KW:b};a=g.v(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.renderer!=null){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.R((n=f.sandwichedLinearAdRenderer)==null?void 0:n.adVideoStart,MJ)?(h=g.R((m=f.sandwichedLinearAdRenderer)==null?void 0:m.adVideoStart,MJ),h=JAa(h,p),g.Px(f.sandwichedLinearAdRenderer.adVideoStart,MJ,h)):g.R((l=f.linearAdSequenceRenderer)==null?void 0:l.adStart,MJ)&& (m=g.R((h=f.linearAdSequenceRenderer)==null?void 0:h.adStart,MJ),h=JAa(m,p),g.Px(f.linearAdSequenceRenderer.adStart,MJ,h))}b.CL.push(e)}return b}; g.c1=function(a){if(typeof DOMParser!="undefined"){var b=new DOMParser;a=ima(a);return b.parseFromString(g.Ad(a),"application/xml")}throw Error("Your browser does not support loading xml documents");}; g.d1=function(a){g.K.call(this);this.callback=a;this.j=new Bp(0,0,.4,0,.2,1,1,1);this.delay=new g.ep(this.next,window,this);g.Q(this,this.delay)}; g.a9a=function(a){var b=a.U();return b.Dd&&!b.C&&g.EP(b)?a.Zc()?(a=a.Xn(),Math.min(a.width,a.height)>=315):!a.Pg():!1}; g.e1=function(a){g.T.call(this,{I:"div",S:"ytp-more-videos-view",W:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.EF(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.T({I:"h2",S:"ytp-related-title",va:"{{title}}"});this.previous=new g.T({I:"button",La:["ytp-button","ytp-previous"],W:{"aria-label":"Show previous suggested videos"},V:[g.yy()]});this.N=new g.d1(function(c){b.suggestions.element.scrollLeft=-c}); this.next=new g.T({I:"button",La:["ytp-button","ytp-next"],W:{"aria-label":"Show more suggested videos"},V:[g.zy()]});g.Q(this,this.D);this.K=a.U().D;g.Q(this,this.title);this.title.Ja(this.element);this.suggestions=new g.T({I:"div",S:"ytp-suggestions"});g.Q(this,this.suggestions);this.suggestions.Ja(this.element);g.Q(this,this.previous);this.previous.Ja(this.element);this.previous.listen("click",this.m6,this);g.Q(this,this.N);b9a(this);g.Q(this,this.next);this.next.Ja(this.element);this.next.listen("click", this.l6,this);this.D.T(this.api,"appresize",this.jc);this.D.T(this.api,"fullscreentoggled",this.Zx);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.jc(this.api.qb().getPlayerSize());this.onVideoDataChange()}; b9a=function(a){for(var b={DA:0};b.DA<16;b={DA:b.DA},++b.DA){var c=new g.T({I:"a",S:"ytp-suggestion-link",W:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",W:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",va:"{{title}}"},{I:"div",S:"ytp-suggestion-author",va:"{{author_and_views}}"},{I:"div",W:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration", va:"{{duration}}"}]}]});g.Q(a,c);var d=c.Ea("ytp-suggestion-link");g.km(d,"transitionDelay",b.DA/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.DA;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.xl(),l={},g.BMa(a.api,l,"emb_rel_pause"),h=g.aj(h,l),g.bT(h,a.api,f)):g.aT(f,a.api,a.K,m||void 0)&&a.api.mp(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)}}; c9a=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.f1=function(a){var b=a.api.Gh()?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.rp(a.element,"ytp-scroll-min",b>=0);g.rp(a.element,"ytp-scroll-max",b<=c)}; e9a=function(a){for(var b=a.suggestionData.length,c=0;c>>0)+"_",e=0;return b}); ma("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}}); ma("Set",function(a){function b(c){this.j=new Map;if(c){c=g.v(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size} if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(g.v([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a; b.prototype.add=function(c){c=c===0?0:c;this.j.set(c,c);this.size=this.j.size;return this}; b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c}; b.prototype.clear=function(){this.j.clear();this.size=0}; b.prototype.has=function(c){return this.j.has(c)}; b.prototype.entries=function(){return this.j.entries()}; b.prototype.values=function(){return this.j.values()}; b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})}; return b}); ma("Array.prototype.entries",function(a){return a?a:function(){return Ga(this,function(b,c){return[b,c]})}}); ma("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ha(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}}); ma("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); ma("String.prototype.repeat",function(a){return a?a:function(b){var c=Ha(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}}); ma("Array.prototype.values",function(a){return a?a:function(){return Ga(this,function(b,c){return c})}}); ma("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); ma("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}}); ma("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}}); ma("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}}); ma("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}}); ma("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)pa(b,d)&&c.push(b[d]);return c}}); ma("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}}); ma("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}}); ma("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}}); ma("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}}); ma("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ha(this,null,"padStart");b-=d.length;c=c!==void 0?String(c):" ";return(b>0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}}); ma("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}}); ma("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}}); ma("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.v(c);for(var d;!(d=c.next()).done;)this.add(d.value)}} if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a; b.prototype.add=function(c){this.j.set(c,!0);return this}; b.prototype.has=function(c){return this.j.has(c)}; b.prototype.delete=function(c){return this.j.delete(c)}; return b}); ma("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#d;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); ma("Int8Array.prototype.copyWithin",Ja);ma("Uint8Array.prototype.copyWithin",Ja);ma("Uint8ClampedArray.prototype.copyWithin",Ja);ma("Int16Array.prototype.copyWithin",Ja);ma("Uint16Array.prototype.copyWithin",Ja);ma("Int32Array.prototype.copyWithin",Ja);ma("Uint32Array.prototype.copyWithin",Ja);ma("Float32Array.prototype.copyWithin",Ja);ma("Float64Array.prototype.copyWithin",Ja);ma("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}}); ma("Int8Array.prototype.findLastIndex",Ka);ma("Uint8Array.prototype.findLastIndex",Ka);ma("Uint8ClampedArray.prototype.findLastIndex",Ka);ma("Int16Array.prototype.findLastIndex",Ka);ma("Uint16Array.prototype.findLastIndex",Ka);ma("Int32Array.prototype.findLastIndex",Ka);ma("Uint32Array.prototype.findLastIndex",Ka);ma("Float32Array.prototype.findLastIndex",Ka);ma("Float64Array.prototype.findLastIndex",Ka);ma("Number.parseInt",function(a){return a||parseInt}); ma("String.raw",function(a){return a?a:function(b,c){if(b==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h>>0);maa=0;g.k=cb.prototype;g.k.V6=function(a){var b=g.Fa.apply(1,arguments),c=this.yP(b);c?c.push(new paa(a)):this.P1(a,b)}; g.k.P1=function(a){this.j.set(this.rV(g.Fa.apply(1,arguments)),[new paa(a)])}; g.k.yP=function(){var a=this.rV(g.Fa.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0}; g.k.t8=function(){var a=this.yP(g.Fa.apply(0,arguments));return a&&a.length?a[0]:void 0}; g.k.clear=function(){this.j.clear()}; g.k.rV=function(){var a=g.Fa.apply(0,arguments);return a?a.join(","):"key"};g.z(db,cb);db.prototype.B=function(a){var b=g.Fa.apply(1,arguments),c=0,d=this.t8(b);d&&(c=d.j);this.P1(c+a,b)};g.z(eb,cb);eb.prototype.Nh=function(a){this.V6(a,g.Fa.apply(1,arguments))};g.K.prototype.Gq=!1;g.K.prototype.Ma=function(){return this.Gq}; g.K.prototype.dispose=function(){this.Gq||(this.Gq=!0,this.xa())}; g.K.prototype[Symbol.dispose]=function(){this.dispose()}; g.K.prototype.addOnDisposeCallback=function(a,b){this.Gq?b!==void 0?a.call(b):a():(this.Co||(this.Co=[]),this.Co.push(b!==void 0?(0,g.Xa)(a,b):a))}; g.K.prototype.xa=function(){if(this.Co)for(;this.Co.length;)this.Co.shift()()};g.ab(jb,Error);jb.prototype.name="CustomError";var Tba;g.ab(kb,jb);kb.prototype.name="AssertionError";g.lb.prototype.stopPropagation=function(){this.B=!0}; g.lb.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,Dl,Am;saa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0); for(var c=0;c=0;c--)if(c in a&&a[c]===b)return c;return-1}; g.Mb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f/g,Kaa=/"/g,Laa=/'/g,Maa=/\x00/g,Gaa=/[\x00&<>"']/;var bc,o9a=g.La.navigator;bc=o9a?o9a.userAgentData||null:null;oc[" "]=function(){};var lm,FX,w6a,p9a,q9a,r9a,AP,BP,s9a;g.CP=fc();g.mm=Naa();g.Ou=dc("Edge");g.aQ=g.Ou||g.mm;lm=dc("Gecko")&&!(Tb(g.Zb(),"WebKit")&&!dc("Edge"))&&!(dc("Trident")||dc("MSIE"))&&!dc("Edge");g.rc=Tb(g.Zb(),"WebKit")&&!dc("Edge");FX=nc();w6a=Uaa();g.Qs=Taa();p9a=kc();q9a=dc("iPad");r9a=dc("iPod");AP=mc();BP=Tb(g.Zb(),"KaiOS"); a:{var t9a="",u9a=function(){var a=g.Zb();if(lm)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Ou)return/Edge\/([\d\.]+)/.exec(a);if(g.mm)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.rc)return/WebKit\/(\S+)/.exec(a);if(g.CP)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); u9a&&(t9a=u9a?u9a[1]:"");if(g.mm){var h1,v9a=g.La.document;h1=v9a?v9a.documentMode:void 0;if(h1!=null&&h1>parseFloat(t9a)){s9a=String(h1);break a}}s9a=t9a}var Xaa=s9a,Vaa={};var lQa=Yaa("AnimationEnd"),$Ma=Yaa("TransitionEnd");g.ab(sc,g.lb);var w9a={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)?lm&&(pc(b,"nodeName")||(b=null)):c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=a.clientX!==void 0? a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=typeof a.pointerType==="string"?a.pointerType:w9a[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_"+(Math.random()*1E6|0);var $aa=0;var fba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=Nc.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=Pc(a,b,d,e);h>-1?(b=a[h],c||(b.SI=!1)):(b=new aba(b,this.src,f,!!d,e),b.SI=c,a.push(b));return b}; g.k.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Pc(e,b,c,d);return b>-1?(uc(e[b]),g.tb(e,b),e.length==0&&(delete this.listeners[a],this.j--),!0):!1}; g.k.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e-1?a[e]:null}; g.k.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return g.zc(this.listeners,function(f){for(var h=0;h>>0);g.ab(g.Zc,g.K);g.Zc.prototype[Zaa]=!0;g.k=g.Zc.prototype;g.k.addEventListener=function(a,b,c,d){g.Rc(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.rS;if(b){var c=[];for(var d=1;b;b=b.rS)c.push(b),++d}b=this.P6;d=a.type||a;if(typeof a==="string")a=new g.lb(a,b);else if(a instanceof g.lb)a.target=a.target||b;else{var e=a;a=new g.lb(d,b);g.Lc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&f>=0;f--){var h=a.currentTarget=c[f];e=$c(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=$c(h,d,!0,a)&&e,a.B||(e=$c(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f0){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var x9a={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};gd.prototype.toString=function(){return this.j}; var rba={},qba={};id("");var kd;g.md.prototype.toString=function(){return this.W0+""}; var sba={};g.pd.prototype.toString=function(){return this.Y0}; g.ud=new g.pd("about:invalid#zClosurez");var QQa=td("tel"),OQa=td("sms"),tba=[td("data"),td("http"),td("https"),td("mailto"),td("ftp"),new rd(function(a){return/^[^:]*([/?#]|$)/.test(a)})],uba=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Gd={};g.xd.prototype.toString=function(){return this.V0.toString()}; var kla=new g.xd("",Gd),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.zd.prototype.toString=function(){return this.U0.toString()}; var y9a=/^[a-zA-Z0-9-]+$/,z9a={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},A9a={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.zd(g.La.trustedTypes&&g.La.trustedTypes.emptyHTML||"",Fba);Cd.prototype.toString=function(){return this.j};Dd.prototype.toString=function(){return this.X0.toString()};var B9a=dd(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.Ad(Cba);return!b.parentElement});g.k=g.Kd.prototype;g.k.clone=function(){return new g.Kd(this.x,this.y)}; g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.k.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};g.k=g.Md.prototype;g.k.clone=function(){return new g.Md(this.width,this.height)}; g.k.area=function(){return this.width*this.height}; g.k.aspectRatio=function(){return this.width/this.height}; g.k.isEmpty=function(){return!this.area()}; g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};g.C9a=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Uba={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=ae.prototype;g.k.Ib=function(a){return de(this.j,a)}; g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))}; g.k.Ea=function(a){return g.he(a,this.j)}; g.k.setProperties=ie;g.k.createElement=function(a){return ke(this.j,a)}; g.k.appendChild=g.oe;g.k.append=function(a,b){Yba(be(a),a,arguments,1)}; g.k.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.k.removeNode=g.re;g.k.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})}; g.k.contains=g.te;var xe;Ce.prototype.add=function(a,b){var c=eca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c}; Ce.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a}; var eca=new ad(function(){return new De},function(a){return a.reset()}); De.prototype.set=function(a,b){this.Cm=a;this.scope=b;this.next=null}; De.prototype.reset=function(){this.next=this.scope=this.Cm=null};var Ee,Fe=!1,cca=new Ce;fca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1}; var gca=new ad(function(){return new fca},function(a){a.reset()}); g.Ie.prototype.then=function(a,b,c){return qca(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)}; g.Ie.prototype.$goog_Thenable=!0;g.k=g.Ie.prototype;g.k.Ml=function(a,b){return qca(this,null,a,b)}; g.k.catch=g.Ie.prototype.Ml;g.k.cancel=function(a){if(this.j==0){var b=new Pe(a);g.Ge(function(){mca(this,b)},this)}}; g.k.Eea=function(a){this.j=0;He(this,2,a)}; g.k.Fea=function(a){this.j=0;He(this,3,a)}; g.k.d8=function(){for(var a;a=nca(this);)oca(this,a,this.j,this.N);this.K=!1}; var uca=Be;g.ab(Pe,jb);Pe.prototype.name="cancel";g.ab(g.Qe,g.Zc);g.k=g.Qe.prototype;g.k.enabled=!1;g.k.qd=null;g.k.setInterval=function(a){this.Xi=a;this.qd&&this.enabled?(this.stop(),this.start()):this.qd&&this.stop()}; g.k.pea=function(){if(this.enabled){var a=g.$a()-this.QZ;a>0&&a>>0,c=a.j.j+c;a.j.j>>0);return!0},function(a,b,c){b=hg(b); b!=null&&b!=null&&(Mf(a,c,0),Jf(a.j,b))}),V9a=Mh(function(a,b,c){if(a.B!==0)return!1; Oh(b,c,uf(a.j));return!0},function(a,b,c){b=gg(b); b!=null&&(b=parseInt(b,10),Mf(a,c,0),zda(a.j,b))});g.z(Uh,uh);Uh.Kf=[1,2,3,4];var dfa={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.z(Xh,uh);var di=[1,2,3],W9a=[0,di,S9a,M9a,Q9a];var X9a=[0,l1,[0,E9a,H9a]];g.z(Yh,uh);var ci=[1,2,3],Y9a=[0,ci,J9a,G9a,m1,X9a];g.z(Zh,uh);Zh.Kf=[1];var Z9a=[0,l1,W9a,Y9a];var $9a=[0,[1,2,3],m1,[0,k1,-1,P9a],m1,[0,k1,-1,K9a,P9a],m1,[0,k1]];g.z(ai,uh);ai.prototype.Kr=function(){kea(this,3,mg,3,void 0,!0);throw Error();}; ai.Kf=[3,6,4];ai.prototype.j=bfa([0,k1,$9a,R9a,l1,Z9a,N9a,O9a]);g.z(bi,uh);bi.Kf=[1];var kfa={};g.k=ei.prototype;g.k.isEnabled=function(){if(!g.La.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{aG:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.k.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.vda;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.aG}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');l===void 0&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=l<0?"":l==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+l*1E3)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(e!=null?";samesite="+ e:"")}; g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e=0;b--)this.remove(a[b])}; var zs=new ei(typeof document=="undefined"?null:document);g.z(ii,uh);ii.Kf=[2];ji.prototype.setInterval=function(a){this.intervalMs=a;this.We&&this.enabled?(this.stop(),this.start()):this.We&&this.stop()}; ji.prototype.start=function(){var a=this;this.enabled=!0;this.We||(this.We=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())}; ji.prototype.stop=function(){this.enabled=!1;this.We&&(clearTimeout(this.We),this.We=void 0)}; ji.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b0&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.xE||this.j.enabled||this.j.start()}}; g.k.flush=function(a,b){var c=this;if(this.C.length===0)a&&a();else{var d=Date.now();if(this.Ca>d&&this.Y0&&(c.Y=Date.now(),c.Ca=c.Y+m),n=o1.j?o1.B(n,o1.j,175237375,!0):o1.B(n,175237375,null,!0),n=n===null?void 0:n)&&(n=jh(n,1,-1),n!==-1&&(c.D=new g.mi(n<1?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0}; l=function(m,n){var p=rea(e,xi);var q=sea(e,14);g.ni(c.D);c.j.setInterval(c.D.getValue());m===401&&f&&(c.ra=f);q&&(c.G+=q);n===void 0&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.xE||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z}; c.network&&c.network.send(d,h,l)}}}}; g.k.oP=function(){vfa(this.B,!0);this.flush();vfa(this.B,!1)}; g.k.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0}; Ai.prototype.uH=function(a){this.j.uH(a);return this}; Ai.prototype.build=function(a,b,c,d,e,f){b=b===void 0?0:b;e=e===void 0?0:e;f=f===void 0?0:f;c=c===void 0?0:c;if(Ig(Ei(this),ri,11)){var h=Fi(this);oh(h,3,c)}Ig(Ei(this),ri,11)&&(c=Fi(this),oh(c,4,e));Ig(Ei(this),ri,11)&&(e=Fi(this),oh(e,5,f));f=this.j.clone();e=Date.now().toString();f=Hg(f,4,kg(e));a=fh(f,xi,3,a.slice());d&&(f=new ki,d=oh(f,13,d),f=new li,d=dh(f,ki,2,d),f=new wi,d=dh(f,li,1,d),d=sh(d,2,9),dh(a,wi,18,d));b&&ph(a,14,b);return a};Gi.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t;return g.H(function(u){switch(u.j){case 1:return f=(e=d.M6?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.xa(u,2,3),h=Object.assign({},{method:a.requestType, headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),g.G(u,fetch(a.url,h),5);case 5:l=u.B;if(l.status!==200){(m=c)==null||m(l.status);u.Ia(3);break}if((n=b)==null){u.Ia(7);break}return g.G(u,l.text(),8);case 8:n(u.B);case 7:case 3:g.Ba(u);clearTimeout(f);g.Ca(u,0);break;case 2:p=g.Aa(u);switch((q=p)==null?void 0:q.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}u.Ia(3)}})}; Gi.prototype.ZJ=function(){return 4};g.z(Hi,g.K);Hi.prototype.FX=function(){this.D=!0;return this}; Hi.prototype.build=function(){this.network||(this.network=new Gi);var a=new Ci({logSource:this.logSource,TE:this.TE?this.TE:nfa,sessionIndex:this.sessionIndex,Oea:this.B,Dx:this.C,xE:!1,FX:this.D,XW:this.XW,network:this.network});g.Q(this,a);if(this.j){var b=this.j,c=Di(a.B);qh(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.VB&&(a.VB=this.VB);this.pageId&&(a.pageId=this.pageId);this.Hz&&((c=this.Hz)?(a.experimentIds||(a.experimentIds=new ii),b=a.experimentIds,c=c.Nk(),qh(b,4,c)):a.experimentIds&& Hg(a.experimentIds,4));wfa(a.B);this.network.uH&&this.network.uH(this.logSource);this.network.Oda&&this.network.Oda(a);return a};g.z(Ii,g.K);Ii.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new bi,c=[],d=0;d0&&(this.getStatus(),this.qa=g.Re(this.m5,this.ra,this)),this.getStatus(),this.Z=!0,this.j.send(a), this.Z=!1}catch(h){this.getStatus(),Ofa(this,h)}}; g.k.m5=function(){typeof gj!="undefined"&&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"),fj(this))}; g.k.xa=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),fj(this,!0));g.ej.Of.xa.call(this)}; g.k.l0=function(){this.Ma()||(this.Fa||this.Z||this.G?Pfa(this):this.rba())}; g.k.rba=function(){Pfa(this)}; g.k.isActive=function(){return!!this.j}; g.k.isComplete=function(){return g.hj(this)==4}; g.k.getStatus=function(){try{return g.hj(this)>2?this.j.status:-1}catch(a){return-1}}; g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),a===null?void 0:a}; g.k.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};mj.prototype.send=function(a,b,c){b=b===void 0?function(){}:b; c=c===void 0?function(){}:c; Mfa(a.url,function(d){d=d.target;ij(d)?b(g.jj(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)}; mj.prototype.ZJ=function(){return 1};oj.prototype.start=function(){this.startMillis=nj()}; oj.prototype.done=function(){this.startMillis!=null&&this.logger.eB(this.event,nj()-this.startMillis)}; g.k=pj.prototype;g.k.bR=function(){}; g.k.eB=function(){}; g.k.Go=function(a,b){a=a();this.eB(b,0);return a}; g.k.El=function(){}; g.k.pn=function(){}; g.k.cR=function(a,b,c){return c}; g.k.f_=function(){}; g.k.d_=function(){}; g.k.e_=function(){}; g.z(qj,g.K);g.k=qj.prototype;g.k.bR=function(){this.Ga.j.gm("/client_streamz/bg/fsc",this.C,this.Ki)}; g.k.eB=function(a,b){if(a==="t")this.Ca.Nh(b,this.C,this.Ki);else if(a==="n")this.Fa.Nh(b,this.C,this.Ki);else if(a==="h"||a==="u"||a==="k"){if(a=this.G.get(a))this.Z.j.gm("/client_streamz/bg/fcc",a,this.Ki),this.Y.Nh(b,a,this.Ki)}else this.qa.Nh(b,a,"",this.B,this.Ki)}; g.k.Go=function(a,b){var c=nj();a=a();this.eB(b,nj()-c);return a}; g.k.El=function(a){var b=this.D.get(a);b?this.ra.j.gm("/client_streamz/bg/fiec",this.C,this.Ki,b):this.errorCount.j.gm("/client_streamz/bg/cec",a,"",this.B,this.Ki)}; g.k.cR=function(a,b,c){function d(h){var l=nj()-f;e.Ka.Nh(l,a,b,h,e.B,e.Ki)} var e=this,f=nj();c.then(function(){d(0)},function(h){h instanceof Ki?d(h.code):d(-1)}); return c}; g.k.f_=function(a){this.Ra.j.gm("/client_streamz/bg/po/csc",a,this.B,this.Ki)}; g.k.d_=function(a){this.N.j.gm("/client_streamz/bg/po/ctav",a,this.B,this.Ki)}; g.k.e_=function(a){this.Na.j.gm("/client_streamz/bg/po/cwsc",a,this.B,this.Ki)}; g.k.pn=function(){this.j.pn()};g.z(rj,uh);g.z(sj,uh);g.z(tj,uh);var aga=Th(tj),Ufa=function(a){return afa(function(b){return b instanceof a&&!(Wf(b.gb)&2)})}(tj); tj.messageId="bfkj";g.z(vj,g.K);vj.prototype.snapshot=function(a){var b=this;if(this.Ma())throw Error("Already disposed");this.wg.bR();return this.B.then(function(c){var d=c.b7;return new Promise(function(e){var f=new oj(b.wg,"n");d(function(h){f.done();b.wg.pn();e(h)},[a.zr, a.Tda,a.C3,a.Wda])})})}; vj.prototype.l2=function(a){var b=this;if(this.Ma())throw Error("Already disposed");this.wg.bR();var c=this.wg.Go(function(){return b.C([a.zr,a.Tda,a.C3,a.Wda])},"n"); this.wg.pn();return c}; g.z(wj,Error);g.z(zj,uh);g.z(Aj,uh);g.z(Bj,uh);Cj.prototype.ME=function(a,b){var c=this,d,e,f,h,l;return g.H(function(m){if(m.j==1){var n=new zj;d=rh(n,1,c.Gs);a&&rh(d,2,a);b&&rh(d,3,b);e=c.j();return g.G(m,c.client.create(d,e),2)}f=m.B;h=ff(Pg(f,2));if(h.length)return m.return(cga(h));l=ch(f,tj,1);if(!l)throw Error("Missing field");return m.return(l)})}; Cj.prototype.TX=function(a){var b=this,c,d;return g.H(function(e){c=b.j();var f=new Aj;f=rh(f,1,b.Gs);d=rh(f,2,a);f=e.return;var h=b.client;h=Hk(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},d$a);return f.call(e,h)})}; Cj.prototype.ping=function(a,b){var c=this,d,e;return g.H(function(f){d=c.j();e=b||new Bj;var h=qh(e,1,c.Gs);qh(h,2,a);return g.G(f,c.client.ping(e,d),0)})};var e$a,ega=(e$a=Math.imul)!=null?e$a:function(a,b){return a*b|0},Ej=[196, 200,224,18];Fj.prototype.Nk=function(){return String(this.j)+","+this.B.join()}; Fj.prototype.Eh=function(a,b){var c=void 0;if(this.B[this.j]!==a){var d=this.B.indexOf(a);d!==-1?(this.B.splice(d,1),d=this.N&&this.D.resolve();var c=a();a=this.logger.Go(function(){return b.G(c)},"C"); if(a===void 0)throw new wj(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new wj(18,"ODM:Invalid");return a}; g.z(Kj,Gj);Kj.prototype.j=function(){return this.G}; g.z(Lj,Gj);Lj.prototype.j=function(){var a=this;return this.logger.Go(function(){return Ze(a.G)},"d")}; Lj.prototype.dG=function(){return this.G}; g.z(Mj,Gj);Mj.prototype.j=function(){if(this.G)return this.G;this.G=pga(this,function(a){return"_"+Wh(a)}); return pga(this,function(a){return a})}; g.z(Nj,Gj);Nj.prototype.j=function(a){var b=a();if(b.length>118)throw new wj(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[Math.random()*255,Math.random()*255],d=c.concat([this.G&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;d=1&&this.j&&this.readyState!=4&&(this.j=!1,hk(this));this.readyState=0}; g.k.o9=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,gk(this)),this.j&&(this.readyState=3,gk(this),this.j)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.m9.bind(this),this.iK.bind(this));else if(typeof g.La.ReadableStream!=="undefined"&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.N=new TextDecoder;Aga(this)}else a.text().then(this.n9.bind(this),this.iK.bind(this))}; g.k.d9=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?hk(this):gk(this);this.readyState==3&&Aga(this)}}; g.k.n9=function(a){this.j&&(this.response=this.responseText=a,hk(this))}; g.k.m9=function(a){this.j&&(this.response=a,hk(this))}; g.k.iK=function(){this.j&&hk(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(fk.prototype,"withCredentials",{get:function(){return this.G==="include"}, set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.ik.prototype.toString=function(){var a=[],b=this.G;b&&a.push(pk(b,j$a,!0),":");var c=this.j;if(c||b=="file")a.push("//"),(b=this.Z)&&a.push(pk(b,j$a,!0),"@"),a.push(g.Vd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,c!=null&&a.push(":",String(c));if(c=this.B)this.j&&c.charAt(0)!="/"&&a.push("/"),a.push(pk(c,c.charAt(0)=="/"?k$a:l$a,!0));(c=this.D.toString())&&a.push("?",c);(c=this.K)&&a.push("#",pk(c,m$a));return a.join("")}; g.ik.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.jk(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.kk(b,a.j):c=a.C!=null;var d=a.B;if(c)g.lk(b,a.C);else if(c=!!a.B){if(d.charAt(0)!="/")if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");e!=-1&&(d=b.B.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(g.Sb(e,"./")||g.Sb(e,"/.")){d=Pb(e,"/");e=e.split("/");for(var f=[],h=0;h1||f.length==1&&f[0]!="")&&f.pop(), d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=a.D.toString()!=="";c?mk(b,a.D.clone()):c=!!a.K;c&&(b.K=a.K);return b}; g.ik.prototype.clone=function(){return new g.ik(this)}; var j$a=/[#\/\?@]/g,l$a=/[#\?:]/g,k$a=/[#\?]/g,Cga=/[#\?@]/g,m$a=/#/g;g.k=ok.prototype;g.k.add=function(a,b){sk(this);this.C=null;a=tk(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){sk(this);a=tk(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(){sk(this);return this.B==0}; g.k.forEach=function(a,b){sk(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)}; g.k.Vn=function(){sk(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d0?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>>3;f.C!=1&&f.C!=2&&f.C!=15&&xk(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0} function c(m){f.D++;f.D==5&&m&240&&xk(f,h,l,"message length too long");f.B|=(m&127)<<(f.D-1)*7;m&128||(f.j=2,f.Z=0,typeof Uint8Array!=="undefined"?f.G=new Uint8Array(f.B):f.G=Array(f.B),f.B==0&&e())} function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()} function e(){if(f.C<15){var m={};m[f.C]=f.G;f.N.push(m)}f.j=0} for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l0?a:null};yk.prototype.isInputValid=function(){return this.j===null}; yk.prototype.Wf=function(){return this.j}; yk.prototype.zI=function(){return!1}; yk.prototype.parse=function(a){this.j!==null&&Kga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||Jga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(d==0)var e=null;else{try{var f=Wca(c.j.slice(0,d*4))}catch(h){Jga(c,c.j,h.message)}c.B+=d*4;c.j=c.j.slice(d*4);e=f}b=e===null?null:this.D.parse(e)}catch(h){Kga(this,a,h.message)}this.B+=a.length;return b};var o$a={INIT:0,TD:1,JN:2,oz:3,RC:4,QC:5,STRING:6,HN:7,YV:8,lW:9,mW:10,nW:11,BU:12,CU:13,DU:14,EU:15,cW:16,dW:17,eW:18,z6:19,IN:20};g.k=Ak.prototype;g.k.isInputValid=function(){return this.G!=3}; g.k.Wf=function(){return this.Y}; g.k.done=function(){return this.G===2}; g.k.zI=function(){return!1}; g.k.parse=function(a){function b(){for(;r0;)if(u=a[r++], f.Z===4?f.Z=0:f.Z++,!u)break a;if(u==='"'&&!f.N){f.j=d();break}if(u==="\\"&&!f.N&&(f.N=!0,u=a[r++],!u))break;if(f.N)if(f.N=!1,u==="u"&&(f.Z=1),u=a[r++])continue;else break;l.lastIndex=r;u=l.exec(a);if(!u){r=a.length+1;break}r=u.index+1;u=a[u.index];if(!u)break}f.C+=r-x;continue;case m.lW:if(!u)continue;u==="r"?f.j=m.mW:Bk(f,a,r);continue;case m.mW:if(!u)continue;u==="u"?f.j=m.nW:Bk(f,a,r);continue;case m.nW:if(!u)continue;u==="e"?f.j=d():Bk(f,a,r);continue;case m.BU:if(!u)continue;u==="a"?f.j=m.CU: Bk(f,a,r);continue;case m.CU:if(!u)continue;u==="l"?f.j=m.DU:Bk(f,a,r);continue;case m.DU:if(!u)continue;u==="s"?f.j=m.EU:Bk(f,a,r);continue;case m.EU:if(!u)continue;u==="e"?f.j=d():Bk(f,a,r);continue;case m.cW:if(!u)continue;u==="u"?f.j=m.dW:Bk(f,a,r);continue;case m.dW:if(!u)continue;u==="l"?f.j=m.eW:Bk(f,a,r);continue;case m.eW:if(!u)continue;u==="l"?f.j=d():Bk(f,a,r);continue;case m.z6:u==="."?f.j=m.IN:Bk(f,a,r);continue;case m.IN:if("0123456789.eE+-".indexOf(u)!==-1)continue;else r--,f.C--,f.j= d();continue;default:Bk(f,a,r)}}} function d(){var u=h.pop();return u!=null?u:m.TD} function e(u){f.B>1||(u||(u=q===-1?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.K.push(u):f.K.push(JSON.parse(u)),q=r)} for(var f=this,h=f.ra,l=f.Ca,m=o$a,n=a.length,p=0,q=-1,r=0;r0?(t=f.K,f.K=[],t):null}return null};Ck.prototype.isInputValid=function(){return this.G===null}; Ck.prototype.Wf=function(){return this.G}; Ck.prototype.zI=function(){return!1}; Ck.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 Ak({Dma:!0,H7:!0})} function d(m){if(m)for(var n=0;n1)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}} for(var f=this,h=0;h0?(a=f.D,f.D=[],a):null};Dk.prototype.aQ=function(){return this.j}; Dk.prototype.getStatus=function(){return this.D}; Dk.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.hj(this.j),c=this.j.B,d=this.j.getStatus(),e=g.jj(this.j);a=[];if(g.kj(this.j)instanceof Array){var f=g.kj(this.j);f.length>0&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?Ek(this,7):c==7?Ek(this,8):d||Ek(this,3)),this.B||(this.B=Lga(this.j),this.B==null&&Ek(this,5)),this.D>2)Fk(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.zI())for(var l=0;lthis.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);n!=null&&this.G&&this.G(n)}catch(p){Ek(this,5);Fk(this);break a}}b==4?(e.length!= 0||this.Y?Ek(this,2):Ek(this,4),Fk(this)):Ek(this,1)}}}catch(p){Ek(this,6),Fk(this)}};g.k=Mga.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[a]=c);c.push(b);return this}; g.k.addListener=function(a,b){this.on(a,b);return this}; g.k.removeListener=function(a,b){var c=this.B[a];c&&g.ub(c,b);(a=this.j[a])&&g.ub(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.oaa=function(a){var b=this.B.data;b&&Nga(a,b);(b=this.j.data)&&Nga(a,b);this.j.data=[]}; g.k.cca=function(){switch(this.C.getStatus()){case 1:Gk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Gk(this,"error");break;case 8:Gk(this,"close");break;case 2:Gk(this,"end")}};Oga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Pga(function(h){var l=h.PJ(),m=h.getMetadata(),n=Sga(e,!1);m=Tga(e,m,n,f+l.getName());var p=Uga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,uga(d,b,c))};Ik.prototype.create=function(a,b){return Hk(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},g$a)}; Ik.prototype.ping=function(a,b){return Hk(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},i$a)};var p$a=1,Uk=new WeakMap;g.z(Jk,g.K);Jk.prototype.signal=function(){var a=new Pk(!1);this.signals.add(a);g.Q(this,a);return a}; Jk.prototype.XA=function(a){return Ok(this,a).XA()}; g.z(Pk,g.K);g.k=Pk.prototype;g.k.gO=function(){var a=this,b=p$a++;Qk(function(){Wga(a,b)}); return b}; g.k.detach=function(a){var b=this;Qk(function(){var c=b.slots.get(a);c&&c.CX()})}; g.k.value=function(a){return this.promise(!0,a)}; g.k.XA=function(){return this.OZ}; g.k.next=function(a){return this.promise(!1,a)}; g.k.promise=function(a,b){var c=this,d=lca();Qk(function(){if(c.Ma())d.reject(new Pe("Signal initially disposed"));else if(b&&b.Ma())d.reject(new Pe("Owner initially disposed"));else if(a&&c.cX&&c.WY)d.resolve(c.OZ);else if(c.fC.add(d),Oe(d.promise,function(){c.fC.delete(d)}),b){var e=function(){d.reject(new Pe("Owner asynchronously disposed"))}; Oe(d.promise,function(){var f=Uk.get(b);f&&g.ub(f,e)}); Zga(b,e)}}); return d.promise}; g.k.xa=function(){var a=this;g.K.prototype.xa.call(this);Qk(function(){for(var b=g.v(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.CX,c();a.slots.clear();b=g.v(a.fC);for(c=b.next();!c.done;c=b.next())c.value.reject(new Pe("Signal asynchronously disposed"));a.fC.clear()})}; var Sk=[],Tk=!1;g.z(Vk,g.K);Vk.prototype.start=function(){var a=this;if(this.Ma())throw new Xk("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=a.milliseconds>0?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Rk(Ok(d,a.C),a)}a.Db.gS(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3; a.handle=void 0;a.D=1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Rk(Ok(d,a.C),a)}a.Db.gS(a)},this.milliseconds); this.state=1}}; Vk.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;(a=this.B)==null||a.reject(new Wk);var b;(b=this.Db.O_)==null||b.call(this);if(this.G){var c;(c=this.j)!=null&&Rk(Ok(c,this.G))}}}; Vk.prototype.xa=function(){this.clear();var a;(a=this.B)==null||a.reject(new Xk);this.state=4;g.K.prototype.xa.call(this)}; Vk.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.fa.Object.defineProperties(Vk.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.D}}, Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.B!=null||(this.B=new g.uj),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Wk("Timer has been cancelled."));case 4:return Promise.reject(new Xk("Timer has been disposed."));default:Pd(this.state)}}}, gS:{configurable:!0,enumerable:!0,get:function(){if(this.Ma())throw new Xk("Cannot attach a signal to a disposed timer.");this.C||(this.j!=null||(this.j=new Jk(this)),this.C=this.j.signal());return this.C}}, O_:{configurable:!0,enumerable:!0,get:function(){if(this.Ma())throw new Xk("Cannot attach a signal to a disposed timer.");this.G||(this.j!=null||(this.j=new Jk(this)),this.G=this.j.signal());return this.G}}}); g.z(Wk,jb);g.z(Xk,jb);g.z(Yk,Oj);g.k=Yk.prototype;g.k.isReady=function(){return!!this.j}; g.k.ready=function(){var a=this;return g.H(function(b){return g.G(b,a.D.promise,0)})}; g.k.ME=function(a){return bha(this,this.logger.cR("c",a===void 0?1:a,this.cA.ME(yj().j,null)),new wj(10,"JVZ:Timeout"))}; g.k.prefetch=function(){this.state===1&&(this.B=this.ME())}; g.k.start=function(){if(this.state===1){this.state=2;var a=new oj(this.logger,"r");this.ready().finally(function(){return void a.done()}); dha(this)}}; g.k.dG=function(a){if(a.Zj&&!this.cache){var b=Math.min(a.Zj.k_,150);if(!(b>150))try{this.cache=new lga(b,this.logger)}catch(f){this.reportError(new wj(22,"GBJ:init",f))}}b={zr:a.zr,tJ:a.tJ,y$:!0,z$:!0};a.Zj&&(a=a.Zj,b.Zj={lE:a.lE,HI:a.HI,xM:a.xM});a:{try{if(this.Ma())throw new wj(21,"BNT:disposed");var c,d;var e=(d=(c=qga(this,b))!=null?c:rga(this,b))!=null?d:sga(this,b);break a}catch(f){if(!b.z$)throw f;e=tga(this,f);break a}e=void 0}return e};var hha={NONE:0,Vga:1},Oha={e4:0,tka:1,ska:2,uka:3},Kl={O3:"a",Qga:"d",VIDEO:"v"};$k.prototype.isVisible=function(){return this.yx?this.Ce>=.3:this.Ce>=.5};var ll={Bga:0,mha:1},Mha={NONE:0,wia:1,tha:2};al.prototype.getValue=function(){return this.B}; g.z(bl,al);bl.prototype.C=function(a){this.B===null&&g.Ec(this.D,a)&&(this.B=a)}; g.z(cl,al);cl.prototype.C=function(a){this.B===null&&typeof a==="number"&&(this.B=a)}; g.z(fl,al);fl.prototype.C=function(a){this.B===null&&typeof a==="string"&&(this.B=a)};gl.prototype.disable=function(){this.B=!1}; gl.prototype.enable=function(){this.B=!0}; gl.prototype.isEnabled=function(){return this.B}; gl.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var Hm=document,pl=window;var Qia=!g.mm&&!ic();ml.prototype.now=function(){return 0}; ml.prototype.B=function(){return 0}; ml.prototype.C=function(){return 0}; ml.prototype.j=function(){return 0};g.z(ol,ml);ol.prototype.now=function(){return nl()&&pl.performance.now?pl.performance.now():ml.prototype.now.call(this)}; ol.prototype.B=function(){return nl()&&pl.performance.memory?pl.performance.memory.totalJSHeapSize||0:ml.prototype.B.call(this)}; ol.prototype.C=function(){return nl()&&pl.performance.memory?pl.performance.memory.usedJSHeapSize||0:ml.prototype.C.call(this)}; ol.prototype.j=function(){return nl()&&pl.performance.memory?pl.performance.memory.jsHeapSizeLimit||0:ml.prototype.j.call(this)};var kha=dd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); g.La.addEventListener("test",null,b)}catch(c){}return a});lha.prototype.isVisible=function(){return sl(Hm)===1};id("csi.gstatic.com");id("googleads.g.doubleclick.net");id("partner.googleadservices.com");id("pubads.g.doubleclick.net");id("securepubads.g.doubleclick.net");id("tpc.googlesyndication.com");var nha={nfa:"allow-forms",ofa:"allow-modals",pfa:"allow-orientation-lock",qfa:"allow-pointer-lock",rfa:"allow-popups",sfa:"allow-popups-to-escape-sandbox",tfa:"allow-presentation",ufa:"allow-same-origin",vfa:"allow-scripts",wfa:"allow-top-navigation",xfa:"allow-top-navigation-by-user-activation"},rha=dd(function(){return oha()});var vha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");xl.prototype.Ee=function(a,b,c){a=a+"//"+b+c;var d=zha(this)-c.length;if(d<0)return"";this.j.sort(function(n,p){return n-p}); c=null;b="";for(var e=0;e=m.length){d-=m.length;a+=m;b=this.C;break}c=c==null?f:c}}d="";c!=null&&(d=b+"trn="+c);return a+d};Fl.prototype.setInterval=function(a,b){return pl.setInterval(a,b)}; Fl.prototype.clearInterval=function(a){pl.clearInterval(a)}; Fl.prototype.setTimeout=function(a,b){return pl.setTimeout(a,b)}; Fl.prototype.clearTimeout=function(a){pl.clearTimeout(a)};g.z(Hl,uh);Hl.prototype.j=bfa([0,F9a,I9a,-2,L9a]);var Nha={aka:1,L6:2,tja:3};Pha.prototype.ES=function(a){if(typeof a==="string"&&a.length!=0){var b=this.Jc;if(b.B){a=a.split("&");for(var c=a.length-1;c>=0;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);d.length>1?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var p1=null;var Nl=g.La.performance,q$a=!!(Nl&&Nl.mark&&Nl.measure&&Nl.clearMarks),Ll=dd(function(){var a;if(a=q$a){var b;if(p1===null){p1="";try{a="";try{a=g.La.top.location.hash}catch(c){a=g.La.location.hash}a&&(p1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=p1;a=!!b.indexOf&&b.indexOf("1337")>=0}return a}); Ml.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(Ll()&&g.Mb(this.events,Vha),this.events.length=0)}; Ml.prototype.start=function(a,b){if(!this.j)return null;var c=Tha()||Sha();a=new Uha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Nl&&Ll()&&Nl.mark(b);return a}; Ml.prototype.end=function(a){if(this.j&&typeof a.value==="number"){var b=Tha()||Sha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Nl&&Ll()&&Nl.mark(b);!this.j||this.events.length>2048||this.events.push(a)}};Wha.prototype.fR=function(a,b,c,d,e){e=e||this.PX;try{var f=new xl;f.j.push(1);f.B[1]=yl("context",a);b.error&&b.meta&&b.id||(b=new Rl(Sl(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=yl("msg",h)}var l=b.meta||{};if(this.bO)try{this.bO(l)}catch(t){}if(d)try{d(l)}catch(t){}b=[l];f.j.push(3);f.B[3]=b;var m=xha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=yl("top",n)}var p={url:m.j.url||""};if(m.j.url){var q=m.j.url.match(Ti);var r=Ri(q[1],null,q[3],q[4])}else r="";n=[p,{url:r}];f.j.push(5); f.B[5]=n;Qha(this.j,e,f,c)}catch(t){try{Qha(this.j,e,{context:"ecmserr",rctx:a,msg:Sl(t),url:m&&m.j.url},c)}catch(u){}}return this.HT}; g.z(Rl,Rha);var Pl,Ql,Ol=new Ml;Pl=new function(){var a="https:";pl&&pl.location&&pl.location.protocol==="http:"&&(a="http:");this.B=a;this.j=.01}; Ql=new Wha;pl&&pl.document&&(pl.document.readyState=="complete"?Yha():Ol.j&&rl(pl,"load",function(){Yha()}));var aia=Date.now(),Zl=-1,Xl=-1,rja,$l=-1,Yl=!1;g.k=am.prototype;g.k.getHeight=function(){return this.bottom-this.top}; g.k.clone=function(){return new am(this.top,this.right,this.bottom,this.left)}; g.k.contains=function(a){return this&&a?a instanceof am?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};dm.prototype.Ib=function(){return this.N};var r$a={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Cn={F6:"start",l4:"firstquartile",w6:"midpoint",G6:"thirdquartile",COMPLETE:"complete",ERROR:"error",v6:"metric",PAUSE:"pause",B6:"resume",C6:"skip",K6:"viewable_impression",y6:"mute",I6:"unmute",m4:"fullscreen",i4:"exitfullscreen",W3:"bufferstart",V3:"bufferfinish",n4:"fully_viewable_audible_half_duration_impression",u6:"measurable_impression",M3:"abandon",g4:"engagedview",q4:"impression",a4:"creativeview",t6:"loaded", fka:"progress",CLOSE:"close",xga:"collapse",Nja:"overlay_resize",Oja:"overlay_unmeasurable_impression",Pja:"overlay_unviewable_impression",Rja:"overlay_viewable_immediate_impression",Qja:"overlay_viewable_end_of_session_impression",b4:"custom_metric_viewable",P3:"audio_audible",R3:"audio_measurable",Q3:"audio_impression"},Cka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Dka=["start","firstquartile","midpoint","thirdquartile"],tja=["abandon"],co={UNKNOWN:-1,F6:0,l4:1,w6:2, G6:3,COMPLETE:4,v6:5,PAUSE:6,B6:7,C6:8,K6:9,y6:10,I6:11,m4:12,i4:13,n4:14,u6:15,M3:16,g4:17,q4:18,a4:19,t6:20,b4:21,W3:22,V3:23,Q3:27,R3:28,P3:29};var dia={dfa:"addEventListener",vha:"getMaxSize",wha:"getScreenSize",xha:"getState",yha:"getVersion",oka:"removeEventListener",Sia:"isViewable"};g.k=g.hm.prototype;g.k.clone=function(){return new g.hm(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.Kd?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.Md(this.width,this.height)}; g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var hia={};qia.prototype.update=function(a){a&&a.document&&(this.N=em(!1,a,this.isMobileDevice),this.j=em(!0,a,this.isMobileDevice),sia(this,a),ria(this,a))};Jm.prototype.cancel=function(){Gl().clearTimeout(this.j);this.j=null}; Jm.prototype.schedule=function(){var a=this,b=Gl(),c=Jl().j.j;this.j=b.setTimeout(Il(c,Ul(143,function(){a.B++;a.C.sample()})),bia())};g.k=Km.prototype;g.k.sD=function(){return!1}; g.k.initialize=function(){return this.isInitialized=!0}; g.k.iA=function(){return this.j.Fa}; g.k.sF=function(){return this.j.qa}; g.k.vj=function(a,b){if(!this.qa||(b===void 0?0:b))this.qa=!0,this.Fa=a,this.Z=0,this.j!=this||Mm(this)}; g.k.getName=function(){return this.j.Ra}; g.k.Vt=function(){return this.j.nY()}; g.k.nY=function(){return{}}; g.k.Pr=function(){return this.j.Z}; g.k.sV=function(){var a=Bm();a.j=em(!0,this.C,a.isMobileDevice)}; g.k.tV=function(){ria(Bm(),this.C)}; g.k.CY=function(){return this.D.j}; g.k.sample=function(){}; g.k.isActive=function(){return this.j.K}; g.k.wA=function(a){var b=this.j;this.j=a.Pr()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,Mm(this)):this.K!==this.j.K&&(this.K=this.j.K,Mm(this))}; g.k.mu=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(c===void 0||!c||b.volume==a.volume)&&b.C==a.C)b=b.j,c=a.j,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.D=a;!c&&via(this)}}; g.k.Eq=function(){return this.Y}; g.k.dispose=function(){this.Ga=!0}; g.k.Ma=function(){return this.Ga};g.k=Nm.prototype;g.k.pN=function(){return!0}; g.k.sI=function(){}; g.k.dispose=function(){if(!this.Ma()){var a=this.B;g.ub(a.G,this);a.Y&&this.Eq()&&uia(a);this.sI();this.qa=!0}}; g.k.Ma=function(){return this.qa}; g.k.Vt=function(){return this.B.Vt()}; g.k.Pr=function(){return this.B.Pr()}; g.k.iA=function(){return this.B.iA()}; g.k.sF=function(){return this.B.sF()}; g.k.wA=function(){}; g.k.mu=function(){this.Dt()}; g.k.Eq=function(){return this.ra};g.k=Om.prototype;g.k.Pr=function(){return this.j.Pr()}; g.k.iA=function(){return this.j.iA()}; g.k.sF=function(){return this.j.sF()}; g.k.create=function(a,b,c){var d=null;this.j&&(d=this.tI(a,b,c),Lm(this.j,d));return d}; g.k.uV=function(){return this.tD()}; g.k.tD=function(){return!1}; g.k.init=function(a){return this.j.initialize()?(Lm(this.j,this),this.D=a,!0):!1}; g.k.wA=function(a){a.Pr()==0&&this.D(a.iA(),this)}; g.k.mu=function(){}; g.k.Eq=function(){return!1}; g.k.dispose=function(){this.G=!0}; g.k.Ma=function(){return this.G}; g.k.Vt=function(){return{}};Pm.prototype.add=function(a,b,c){++this.C;a=new wia(a,b,c);this.j.push(new wia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Bia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Rm(this.j);b.length>0&&(a+="?"+b);return a};Sm.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(c===void 0?!a:c)this.D=0};var Gia=[1,.75,.5,.3,0];Tm.prototype.update=function(a,b,c,d,e,f){f=f===void 0?!0:f;b=e?Math.min(a,b):b;for(e=0;e0&&b>=h;h=!(a>0&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Zm.prototype.update=function(a,b,c,d){this.N=this.N!=-1?Math.min(this.N,b.Ce):b.Ce;this.ra=Math.max(this.ra,b.Ce);this.Ca=this.Ca!=-1?Math.min(this.Ca,b.Mk):b.Mk;this.Fa=Math.max(this.Fa,b.Mk);this.Xa.update(b.Mk,c.Mk,b.j,a,d);this.B.update(b.Ce,c.Ce,b.j,a,d);c=d||c.yx!=b.yx?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ra.update(c,a,b)}; Zm.prototype.qs=function(){return this.Ra.C>=this.bb};if(Hm&&Hm.URL){var s$a=Hm.URL,t$a;if(t$a=!!s$a){var u$a;a:{if(s$a){var v$a=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var q1=v$a.exec(decodeURIComponent(s$a));if(q1){u$a=q1[1]&&q1[1].length>1?q1[1].substring(1):"true";break a}}catch(a){}}u$a=""}t$a=u$a.length>0}Ql.HT=!t$a};var w$a=new am(0,0,0,0);var Oia=new am(0,0,0,0);g.z(dn,g.K);g.k=dn.prototype; g.k.xa=function(){if(this.fk.j){if(this.Ow.qR){var a=this.fk.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Ow.qR,ql());this.Ow.qR=null}this.Ow.pR&&(a=this.fk.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Ow.pR,ql()),this.Ow.pR=null)}this.IH&&this.IH.dispose();this.Zf&&this.Zf.dispose();delete this.PK;delete this.gR;delete this.f3;delete this.fk.Lu;delete this.fk.j;delete this.Ow;delete this.IH;delete this.Zf;delete this.Jc;g.K.prototype.xa.call(this)}; g.k.Zt=function(){return this.Zf?this.Zf.j:this.position}; g.k.ES=function(a){Jl().ES(a)}; g.k.Eq=function(){return!1}; g.k.SJ=function(){return new Zm}; g.k.xj=function(){return this.PK}; g.k.rY=function(a){return Sia(this,a,1E4)}; g.k.Ta=function(a,b,c,d,e,f,h){this.vu||(this.DE&&(a=this.oO(a,c,e,h),d=d&&this.gi.Ce>=(this.yx()?.3:.5),this.nU(f,a,d),this.iq=b,a.Ce>0&&-1===this.G2&&(this.G2=b),this.L2==-1&&this.qs()&&(this.L2=b),this.aR==-2&&(this.aR=bn(this.Zt())?a.Ce:-1),this.gi=a),this.gR(this))}; g.k.nU=function(a,b,c){this.xj().update(a,b,this.gi,c)}; g.k.OP=function(){return new $k}; g.k.oO=function(a,b,c,d){c=this.OP();c.j=b;b=Gl().B;b=sl(Hm)===0?-1:b.isVisible()?0:1;c.B=b;c.Ce=this.JO(a);c.yx=this.yx();c.Mk=d;return c}; g.k.JO=function(a){return this.opacity===0&&jl(this.Jc,"opac")===1?0:a}; g.k.yx=function(){return!1}; g.k.sM=function(){return this.P9||this.S9}; g.k.Px=function(){Wl()}; g.k.sB=function(){Wl()}; g.k.Tp=function(){return 0}; g.k.qs=function(){return this.PK.qs()}; g.k.FY=function(){var a=this.DE;a=(this.hasCompleted||this.Ma())&&!a;var b=Jl().B!==2||this.xea;return this.vu||b&&a?2:this.qs()?4:3}; g.k.FJ=function(){return 0};g.fn.prototype.next=function(){return g.r1}; g.r1={done:!0,value:void 0};g.fn.prototype.nm=function(){return this};g.z(Yia,$k);var s1=$ia([void 0,1,2,3,4,8,16]),t1=$ia([void 0,4,8,16]),x$a={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:kn("p0",t1),p1:kn("p1",t1),p2:kn("p2",t1),p3:kn("p3",t1),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:jn("mtos1",[0,2,4],!1,t1),mtos2:jn("mtos2",[0,2,4],!1,t1),mtos3:jn("mtos3",[0,2,4],!1,t1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:kn("a0",t1),a1:kn("a1",t1),a2:kn("a2",t1),a3:kn("a3",t1),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:kn("c0",t1),c1:kn("c1",t1),c2:kn("c2",t1),c3:kn("c3",t1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:kn("qmtos",s1),qnc:kn("qnc",s1),qmv:kn("qmv",s1),qnv:kn("qnv",s1), 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:kn("ss0",t1),ss1:kn("ss1",t1),ss2:kn("ss2",t1),ss3:kn("ss3",t1),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"},y$a=Object.assign({},x$a,{avid:bd("audio"),avas:"avas",vs:"vs"}),z$a={atos:"atos",avt:jn("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return c[a]===void 0&&b!==void 0?b:c[a]}}("ss",0), t:"t"};on.prototype.getValue=function(){return this.B}; on.prototype.update=function(a,b){a>=32||(this.j&1<=.5;zm(b.volume)&&(this.D=this.D!=-1?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.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.Ka.update(a,b.isVisible());this.Wa.update(a,b.Ce>=1);this.Va.update(a, hn(b))}};fja.prototype.B=function(a){this.C||(this.j(a)?(a=qka(this.Y,this.D,a),this.G|=a,a=a==0):a=!1,this.C=a)};g.z(rn,fja);rn.prototype.j=function(){return!0}; rn.prototype.K=function(){return!1}; rn.prototype.getId=function(){var a=this,b=Fc(Cn,function(c){return c==a.D}); return co[b].toString()}; rn.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");this.G>0&&(a+=":"+this.G);return this.getId()+a};g.z(sn,rn);sn.prototype.B=function(a,b){b=b===void 0?null:b;b!=null&&this.N.push(b);rn.prototype.B.call(this,a)};g.z(tn,gja);tn.prototype.B=function(){return null}; tn.prototype.C=function(){return[]};g.z(un,Nm);g.k=un.prototype;g.k.rO=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=nia(a.getBoundingClientRect())}catch(n){c=new am(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=kia(a,b),h=f.x,l=f.y;var m=new am(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=w$a.clone()}this.j=m}}; g.k.dX=function(){this.D=this.B.D.j}; g.k.zZ=function(a){var b=jl(this.Jc,"od")==1;return Nia(a,this.D,this.element,b)}; g.k.eX=function(){this.timestamp=Wl()}; g.k.Dt=function(){this.eX();this.rO();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var a=this.element;var b=new g.Md(a.videoWidth,a.videoHeight);a=this.j;var c=bm(a),d=a.getHeight(),e=b.width;b=b.height;e<=0||b<=0||c<=0||d<=0||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,d>0&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),c>0&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.dX(); a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new am(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 am(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new am(0,0,0,0):a;a=this.B.D;b=e=d=0;(this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0&&(this.zZ(c)?c=new am(0,0,0,0):(d=Bm().D,b=new am(0,d.height,d.width,0),d=cn(c,this.j),e=cn(c,Bm().j),b=cn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new am(0,0,0, 0):cm(c,-this.j.left,-this.j.top);Im()||(e=d=0);this.N=new dm(a,this.element,this.j,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.B.getName()};var A$a=new am(0,0,0,0);g.z(vn,un);g.k=vn.prototype;g.k.pN=function(){this.C();return!0}; g.k.mu=function(){un.prototype.Dt.call(this)}; g.k.eX=function(){}; g.k.rO=function(){}; g.k.Dt=function(){this.C();un.prototype.Dt.call(this)}; g.k.wA=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Bm().j=new am(0,0,0,0),this.j=new am(0,0,0,0),this.D=new am(0,0,0,0),this.timestamp=-1));this.K=a};var u1={},qja=(u1.firstquartile=0,u1.midpoint=1,u1.thirdquartile=2,u1.complete=3,u1);g.z(xn,dn);g.k=xn.prototype;g.k.Eq=function(){return!0}; g.k.Bo=function(){return this.Ak==2}; g.k.rY=function(a){return Sia(this,a,Math.max(1E4,this.C/3))}; g.k.Ta=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.Lc(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Ra=m.isYouTube||this.Ra;Gl();this.rb=!1;e=ija(this,b);hja(this)===1&&(f=e);dn.prototype.Ta.call(this,a,b,c,d,m,f,h);this.ws&&this.ws.C&&g.Mb(this.K,function(n){n.B(l)})}; g.k.nU=function(a,b,c){dn.prototype.nU.call(this,a,b,c);An(this).update(a,b,this.gi,c);this.fb=hn(this.gi)&&hn(b);this.Fa==-1&&this.Xa&&(this.Fa=this.xj().C.j);this.Lg.C=0;a=this.qs();b.isVisible()&&nn(this.Lg,"vs");a&&nn(this.Lg,"vw");zm(b.volume)&&nn(this.Lg,"am");hn(b)?nn(this.Lg,"a"):nn(this.Lg,"mut");this.IA&&nn(this.Lg,"f");b.B!=-1&&(nn(this.Lg,"bm"),b.B==1&&(nn(this.Lg,"b"),hn(b)&&nn(this.Lg,"umutb")));hn(b)&&b.isVisible()&&nn(this.Lg,"avs");this.fb&&a&&nn(this.Lg,"avw");b.Ce>0&&nn(this.Lg, "pv");Bn(this,this.xj().C.j,!0)&&nn(this.Lg,"gdr");Xm(this.xj().B,1)>=2E3&&nn(this.Lg,"pmx");this.rb&&nn(this.Lg,"tvoff")}; g.k.SJ=function(){return new pn}; g.k.xj=function(){return this.PK}; g.k.OP=function(){return new Yia}; g.k.oO=function(a,b,c,d){a=dn.prototype.oO.call(this,a,b,c,d===void 0?-1:d);a.fullscreen=this.IA;a.paused=this.Bo();a.volume=c.volume;zm(a.volume)||(this.Jb++,b=this.gi,zm(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=c!==void 0&&c>=0?c:-1;return a}; g.k.JO=function(a){return Bm(),this.IA?1:dn.prototype.JO.call(this,a)}; g.k.Tp=function(){return 1}; g.k.getDuration=function(){return this.C}; g.k.FY=function(){return this.vu?2:kja(this)?5:this.qs()?4:3}; g.k.FJ=function(){return this.Bb?this.xj().G.C>=2E3?4:3:2};var B$a=g.$a();Bja.prototype.reset=function(){this.j=[];this.B=[]}; var Hn=El(Bja);g.z(Kn,Om);g.k=Kn.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()}; g.k.Vt=function(){return(this.B?this.B:this.j).Vt()}; g.k.Pr=function(){return(this.B?this.B:this.j).Pr()}; g.k.init=function(a){var b=!1;(0,g.Mb)(this.C,function(c){c.initialize()&&(b=!0)}); b&&(this.D=a,Lm(this.j,this));return b}; g.k.dispose=function(){(0,g.Mb)(this.C,function(a){a.dispose()}); Om.prototype.dispose.call(this)}; g.k.uV=function(){return Am(this.C,function(a){return a.sD()})}; g.k.tD=function(){return Am(this.C,function(a){return a.sD()})}; g.k.tI=function(a,b,c){return new un(a,this.j,b,c)}; g.k.mu=function(a){this.B=a.B};var Kja={threshold:[0,.3,.5,.75,1]};g.z(Ln,un);g.k=Ln.prototype;g.k.pN=function(){var a=this;this.Y||(this.Y=Wl());if($ha(298,function(){return Lja(a)}))return!0; this.B.vj("msf");return!1}; g.k.sI=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.Dt=function(){var a=Mn(this);a.length>0&&Nn(this,a);un.prototype.Dt.call(this)}; g.k.rO=function(){}; g.k.zZ=function(){return!1}; g.k.dX=function(){}; g.k.Vt=function(){var a={};return Object.assign(this.B.Vt(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))}; g.k.getName=function(){return"nio"};g.z(On,Om);On.prototype.getName=function(){return"nio"}; On.prototype.tD=function(){return!Bm().B&&this.j.j.C.IntersectionObserver!=null}; On.prototype.tI=function(a,b,c){return new Ln(a,this.j,b,c)};g.z(Pn,Km);Pn.prototype.CY=function(){return Bm().j}; Pn.prototype.sD=function(){var a=Nja();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,Mm(this)),this.Z=a);return a==2};Qn.prototype.sample=function(){Tn(this,In(),!1)}; Qn.prototype.D=function(){var a=Im(),b=Wl();a?(Yl||(Zl=b,g.Mb(Hn.j,function(c){var d=c.xj();d.Na=qn(d,b,c.Ak!=1)})),Yl=!0):(this.N=Sja(this,b),Yl=!1,rja=b,g.Mb(Hn.j,function(c){c.DE&&(c.xj().Z=b)})); Tn(this,In(),!a)}; var Rn=El(Qn);var Uja=null,xo="",wo=!1;var Xja=Wja().Ip,bo=Wja().Mp;var $ja={nha:"visible",Rfa:"audible",Zka:"time",dla:"timetype"},aka={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, audible:function(a){return a=="0"||a=="1"}, timetype:function(a){return a=="mtos"||a=="tos"}, time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}}; Zja.prototype.setTime=function(a,b,c){b=="ms"?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=c===void 0?"tos":c;return this};g.z(go,rn);go.prototype.getId=function(){return this.N}; go.prototype.K=function(){return!0}; go.prototype.j=function(a){var b=a.xj(),c=a.getDuration();return Am(this.Z,function(d){if(d.j!=void 0)var e=cka(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}e==0?d=!1:(d=d.C!=-1?d.C:c!==void 0&&c>0?d.D*c:-1,d=d!=-1&&e>=d);return d})};g.z(ho,bja);ho.prototype.j=function(a){var b=new aja;b.j=mn(a,x$a);b.B=mn(a,z$a);return b};g.z(io,rn);io.prototype.j=function(a){return kja(a)};g.z(jo,gja);g.z(ko,rn);ko.prototype.j=function(a){return a.xj().qs()};g.z(lo,sn);lo.prototype.j=function(a){var b=g.rb(this.N,jl(Jl().Jc,"ovms"));return!a.vu&&(a.Ak!=0||b)};g.z(mo,jo);mo.prototype.B=function(){return new lo(this.j)}; mo.prototype.C=function(){return[new ko("viewable_impression",this.j),new io(this.j)]};g.z(no,vn);no.prototype.C=function(){var a=g.Pa("ima.admob.getViewability"),b=jl(this.Jc,"queryid");typeof a==="function"&&b&&a(b)}; no.prototype.getName=function(){return"gsv"};g.z(oo,Om);oo.prototype.getName=function(){return"gsv"}; oo.prototype.tD=function(){var a=Bm();Jl();return a.B&&!1}; oo.prototype.tI=function(a,b,c){return new no(this.j,b,c)};g.z(po,vn);po.prototype.C=function(){var a=this,b=g.Pa("ima.bridge.getNativeViewability"),c=jl(this.Jc,"queryid");typeof b==="function"&&c&&b(c,function(d){g.Gc(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=oia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?A$a.clone():oia(e);a.timestamp=d.opt_nativeTime||-1;Bm().j=h.j;d=d.opt_nativeVolume;d!==void 0&&(h.volume=d)})}; po.prototype.getName=function(){return"nis"};g.z(qo,Om);qo.prototype.getName=function(){return"nis"}; qo.prototype.tD=function(){var a=Bm();Jl();return a.B&&!1}; qo.prototype.tI=function(a,b,c){return new po(this.j,b,c)};g.z(ro,Km);g.k=ro.prototype;g.k.sD=function(){return this.B.Ho!=null}; g.k.nY=function(){var a={};this.Ka&&(a.mraid=this.Ka);this.Ca&&(a.mlc=1);a.mtop=this.B.Vda;this.N&&(a.mse=this.N);this.Na&&(a.msc=1);a.mcp=this.B.compatibility;return a}; g.k.qv=function(a){var b=g.Fa.apply(1,arguments);try{return this.B.Ho[a].apply(this.B.Ho,b)}catch(c){Vl(538,c,.01,function(d){d.method=a})}}; g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.sF();this.isInitialized=!0;if(this.B.compatibility===2)return this.N="ng",this.vj("w"),!1;if(this.B.compatibility===1)return this.N="mm",this.vj("w"),!1;Bm().Z=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?gka(this):an(this.C,"load",function(){Gl().setTimeout(Ul(292,function(){return gka(a)}),100)},292); return!0}; g.k.sV=function(){var a=Bm(),b=lka(this,"getMaxSize");a.j=new am(0,b.width,b.height,0)}; g.k.tV=function(){Bm().D=lka(this,"getScreenSize")}; g.k.dispose=function(){ika(this);Km.prototype.dispose.call(this)};var Kha=new function(a,b){this.key=a;this.defaultValue=b===void 0?!1:b;this.valueType="boolean"}("45378663");g.k=to.prototype;g.k.mJ=function(a){en(a,!1);Fja(a)}; g.k.aK=function(){}; g.k.aH=function(a,b,c,d){var e=this;a=new xn(pl,a,c?b:-1,7,this.UO(),this.vX());a.cj=d;fha(a.Jc);il(a.Jc,"queryid",a.cj);a.ES("");Via(a,function(){return e.MY.apply(e,g.w(g.Fa.apply(0,arguments)))},function(){return e.q9.apply(e,g.w(g.Fa.apply(0,arguments)))}); (d=El(Jn).j)&&Ria(a,d);a.fk.Lu&&El(Oja);return a}; g.k.wA=function(a){switch(a.Pr()){case 0:if(a=El(Jn).j)a=a.j,g.ub(a.G,this),a.Y&&this.Eq()&&uia(a);vo();break;case 2:Sn()}}; g.k.mu=function(){}; g.k.Eq=function(){return!1}; g.k.q9=function(a,b){a.vu=!0;switch(a.Tp()){case 1:rka(a,b);break;case 2:this.QS(a)}}; g.k.z9=function(a){var b=a.N(a);b&&(b=b.volume,a.Bb=zm(b)&&b>0);nja(a,0);return Dn(a,"start",Im())}; g.k.GC=function(a,b,c){Tn(Rn,[a],!Im());return this.Up(a,b,c)}; g.k.Up=function(a,b,c){return Dn(a,c,Im())}; g.k.u9=function(a){return Bo(a,"firstquartile",1)}; g.k.w9=function(a){a.Xa=!0;return Bo(a,"midpoint",2)}; g.k.A9=function(a){return Bo(a,"thirdquartile",3)}; g.k.r9=function(a){var b=Bo(a,"complete",4);yn(a);return b}; g.k.s9=function(a){a.Ak=3;return Dn(a,"error",Im())}; g.k.B1=function(a,b,c){b=Im();if(a.Bo()&&!b){var d=a.xj(),e=Wl();d.Z=e}Tn(Rn,[a],!b);a.Bo()&&(a.Ak=1);return Dn(a,c,b)}; g.k.y9=function(a,b){b=this.GC(a,b||{},"skip");yn(a);return b}; g.k.v9=function(a,b){en(a,!0);return this.GC(a,b||{},"fullscreen")}; g.k.t9=function(a,b){en(a,!1);return this.GC(a,b||{},"exitfullscreen")}; g.k.uS=function(a,b,c){b=a.xj();var d=Wl();b.Na=qn(b,d,a.Ak!=1);Tn(Rn,[a],!Im());a.Ak==1&&(a.Ak=2);return Dn(a,c,Im())}; g.k.x9=function(a){Tn(Rn,[a],!Im());return a.B()}; g.k.kQ=function(a){Tn(Rn,[a],!Im());this.s1(a);yn(a);return a.B()}; g.k.MY=function(){}; g.k.QS=function(){}; g.k.s1=function(){}; g.k.vV=function(){}; g.k.VO=function(){}; g.k.vX=function(){this.j||(this.j=this.VO());return this.j==null?new tn:new mo(this.j)}; g.k.UO=function(){return new ho};g.z(Co,rn);Co.prototype.j=function(a){return a.FJ()==4};g.z(Do,sn);Do.prototype.j=function(a){a=a.FJ();return a==3||a==4};g.z(Eo,jo);Eo.prototype.B=function(){return new Do(this.j)}; Eo.prototype.C=function(){return[new Co(this.j)]};g.z(Fo,bja);Fo.prototype.j=function(a){a&&(a.e===28&&(a=Object.assign({},a,{avas:3})),a.vs===4||a.vs===5)&&(a=Object.assign({},a,{vs:3}));var b=new aja;b.j=mn(a,y$a);b.B=mn(a,z$a);return b};vka.prototype.B=function(){return g.Pa(this.j)};g.z(Go,to);g.k=Go.prototype;g.k.aK=function(a,b){var c=this,d=El(Jn);if(d.j!=null)switch(d.j.getName()){case "nis":var e=zka(this,a,b);break;case "gsv":e=yka(this,a,b);break;case "exc":e=Aka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=tka(this,a,b.opt_adElement,b.opt_osdId)));e&&e.Tp()==1&&(e.N==g.cd&&(e.N=function(f){return c.vV(f)}),xka(this,e,b)); return e}; g.k.vV=function(a){a.B=0;a.Ga=0;if(a.D=="h"||a.D=="n"){Jl();a.bb&&(Jl(),zo(this)!="h"&&zo(this));var b=g.Pa("ima.common.getVideoMetadata");if(typeof b==="function")try{var c=b(a.cj)}catch(e){a.B|=4}else a.B|=2}else if(a.D=="b")if(b=g.Pa("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{c=b(a.cj)}catch(e){a.B|=4}else a.B|=2;else if(a.D=="ml")if(b=g.Pa("ima.common.getVideoMetadata"),typeof b==="function")try{c=b(a.cj)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(c===void 0?a.B|=8:c===null? a.B|=16:g.Gc(c)?a.B|=32:c.errorCode!=null&&(a.Ga=c.errorCode,a.B|=64));c==null&&(c={});b=c;a.Z=0;for(var d in r$a)b[d]==null&&(a.Z|=r$a[d]);uka(b,"currentTime");uka(b,"duration");zm(c.volume)&&zm()&&(c.volume*=NaN);return c}; g.k.VO=function(){Jl();zo(this)!="h"&&zo(this);var a=Bka(this);return a!=null?new vka(a):null}; g.k.QS=function(a){!a.j&&a.vu&&Ao(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)}; g.k.s1=function(a){a.d2&&(a.qs()?Ao(this,a,"overlay_viewable_end_of_session_impression"):Ao(this,a,"overlay_unviewable_impression"),a.d2=!1)}; g.k.MY=function(){}; g.k.aH=function(a,b,c,d){if(Lha()){var e=jl(Jl().Jc,"mm"),f={};(e=(f[Kl.O3]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[Kl.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Fka(this,e);this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Vl(1044,Error())}a=to.prototype.aH.call(this,a,b,c,d);this.D&&(b=this.G,a.G==null&&(a.G=new Wia),b.j[a.cj]=a.G,a.G.G=B$a);return a}; g.k.mJ=function(a){a&&a.Tp()==1&&this.D&&delete this.G.j[a.cj];return to.prototype.mJ.call(this,a)}; g.k.vX=function(){this.j||(this.j=this.VO());return this.j==null?new tn:this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Eo(this.j):new mo(this.j)}; g.k.UO=function(){return this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Fo:new ho}; var C$a=Tl(193,Hka,void 0,ska);g.Ma("Goog_AdSense_Lidar_sendVastEvent",C$a);var D$a=Ul(194,function(a,b){b=b===void 0?{}:b;a=Eka(El(Go),a,b);return Gka(a)}); g.Ma("Goog_AdSense_Lidar_getViewability",D$a);var E$a=Tl(195,function(){return Fha()}); g.Ma("Goog_AdSense_Lidar_getUrlSignalsArray",E$a);var F$a=Ul(196,function(){return JSON.stringify(Fha())}); g.Ma("Goog_AdSense_Lidar_getUrlSignalsList",F$a);var bva=na(["//tpc.googlesyndication.com/sodar/",""]);var zma=(new Date).getTime();var Jka="://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(" "),Kka=/\bocr\b/;var Mka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var G$a=0,H$a=0,I$a=0;var Io;Io=null;g.Ko=!1;g.Ro=1;g.Qo=Symbol("SIGNAL");g.To={version:0,JZ:0,jl:!1,dg:void 0,vy:void 0,Xm:void 0,aL:0,Zi:void 0,Iu:void 0,Kt:!1,NO:!1,Z0:function(){return!1}, b1:function(){}, pE:function(){}, Qma:function(){}};var J$a=Symbol("UNSET"),K$a=Symbol("COMPUTING"),L$a=Symbol("ERRORED");Object.assign({},g.To,{value:J$a,jl:!0,error:null,jP:Nka,Z0:function(a){return a.value===J$a||a.value===K$a}, b1:function(a){if(a.value===K$a)throw Error("Detected cycle in computations.");var b=a.value;a.value=K$a;var c=g.Lo(a);try{var d=a.Oma()}catch(e){d=L$a,a.error=e}finally{g.Oo(a,c)}b!==J$a&&b!==L$a&&d!==L$a&&a.jP(b,d)?a.value=b:(a.value=d,a.version++)}});var Tka;g.Vka=null;Tka=Object.assign({},g.To,{jP:Nka,value:void 0});g.M$a=Object.assign({},g.To,{NO:!0,Kt:!1,pE:function(a){a.schedule!==null&&a.schedule(a.aC)}, tF:!1,Ez:g.So});g.N$a=Xka(!1);g.O$a=Xka(!0);var P$a=Symbol("updater");g.z(Vo,g.Zc);Vo.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Do.bk(this.G);delete Vo.instance}; Vo.prototype.Hh=function(){return this.j}; Vo.prototype.df=function(){var a=this;this.G=this.Do.Si(function(){var b;return g.H(function(c){if(c.j==1)return a.j?((b=window.navigator)==null?0:b.onLine)?c.Ia(3):g.G(c,Uo(a),3):g.G(c,Uo(a),3);a.df();g.va(c)})},3E4)};Xo.prototype.set=function(a,b){b=b===void 0?!0:b;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)}; Xo.prototype.get=function(a){return!!this.data[a]};var bp;g.ab(g.ep,g.K);g.k=g.ep.prototype;g.k.start=function(){this.stop();this.D=!1;var a=$ka(this),b=ala(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.Rc(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=$ka(this),b=ala(this);a&&!b&&this.B.mozRequestAnimationFrame?Wc(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null}; g.k.isActive=function(){return this.j!=null}; g.k.n5=function(){this.D&&this.j&&Wc(this.j);this.j=null;this.K.call(this.G,g.$a())}; g.k.xa=function(){this.stop();g.ep.Of.xa.call(this)};g.ab(g.fp,g.K);g.k=g.fp.prototype;g.k.uD=0;g.k.xa=function(){g.fp.Of.xa.call(this);this.stop();delete this.j;delete this.B}; g.k.start=function(a){this.stop();this.uD=g.Re(this.C,a!==void 0?a:this.Xi)}; g.k.stop=function(){this.isActive()&&g.La.clearTimeout(this.uD);this.uD=0}; g.k.isActive=function(){return this.uD!=0}; g.k.wV=function(){this.uD=0;this.j&&this.j.call(this.B)};g.jp.prototype[Symbol.iterator]=function(){return this}; g.jp.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.ab(g.sp,g.Zc);g.k=g.sp.prototype;g.k.isPlaying=function(){return this.j==1}; g.k.isPaused=function(){return this.j==-1}; g.k.iL=function(){this.Nn("begin")}; g.k.As=function(){this.Nn("end")}; g.k.onFinish=function(){this.Nn("finish")}; g.k.onStop=function(){this.Nn("stop")}; g.k.Nn=function(a){this.dispatchEvent(a)};var Q$a=dd(function(){var a=g.me("DIV"),b=g.rc?"-webkit":lm?"-moz":g.mm?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!y9a.test("div"))throw Error("");if("DIV"in A9a)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!y9a.test(n))throw Error("");var e=c[n];if(e!=null){var f=void 0;var h=n;if(e instanceof gd)e=hd(e);else if(h.toLowerCase()=="style"){if(!g.Ta(e))throw Error("");if(!(e instanceof g.xd)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];m!=null&&(m=Array.isArray(m)?m.map(Bba).join(" "):Bba(m),l+=f+":"+m+";")}e=l?new g.xd(l,Gd):kla}e=yd(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in z9a)if(e instanceof g.md)e=g.nd(e).toString();else if(e instanceof g.pd)e=g.qd(e);else if(typeof e==="string")e=g.vd(e).toString();else throw Error("");}f=h+'="'+Rb(String(e))+ '"';d+=" "+f}}var n="":(b=Eba(b),n+=">"+g.Ad(b).toString()+"");n=Bd(n);if(B9a())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Ad(n);return g.nm(a.firstChild,"transition")!=""});g.ab(tp,g.sp);g.k=tp.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.iL();this.Nn("play");this.startTime=g.$a();this.j=1;if(Q$a())return g.km(this.B,this.K),this.C=g.Re(this.Dca,void 0,this),!0;this.qN(!1);return!1}; g.k.Dca=function(){g.wm(this.B);ela(this.B,this.N);g.km(this.B,this.D);this.C=g.Re((0,g.Xa)(this.qN,this,!1),this.G*1E3)}; g.k.stop=function(){this.isPlaying()&&this.qN(!0)}; g.k.qN=function(a){g.km(this.B,"transition","");g.La.clearTimeout(this.C);g.km(this.B,this.D);this.endTime=g.$a();this.j=0;if(a)this.onStop();else this.onFinish();this.As()}; g.k.xa=function(){this.stop();tp.Of.xa.call(this)}; g.k.pause=function(){};var gla={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};up("Element","attributes")||up("Node","attributes");up("Element","innerHTML")||up("HTMLElement","innerHTML");up("Node","nodeName");up("Node","nodeType");up("Node","parentNode");up("Node","childNodes");up("HTMLElement","style")||up("Element","style");up("HTMLStyleElement","sheet");var nla=ila("getPropertyValue"),ola=ila("setProperty");up("Element","namespaceURI")||up("Node","namespaceURI");var mla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var sla,d9a,rla,qla,tla;sla=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]");d9a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.R$a=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.vp=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]");rla=/^http:\/\/.*/;g.S$a=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");qla=/\s+/;tla=/[\d\u06f0-\u06f9]/;xp.prototype.nm=function(){return new yp(this.B())}; xp.prototype[Symbol.iterator]=function(){return new zp(this.B())}; xp.prototype.j=function(){return new zp(this.B())}; g.z(yp,g.fn);yp.prototype.next=function(){return this.B.next()}; yp.prototype[Symbol.iterator]=function(){return new zp(this.B)}; yp.prototype.j=function(){return new zp(this.B)}; g.z(zp,xp);zp.prototype.next=function(){return this.C.next()};Bp.prototype.clone=function(){return new Bp(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};Dp.prototype.clone=function(){return new Dp(this.start,this.end)};(function(){if(w6a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Zb()))?a[1]:"0"}return FX?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Zb()))?a[0].replace(/_/g,"."):"10"):g.Qs?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Zb()))?a[1]:""):p9a||q9a||r9a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Zb()))?a[1].replace(/_/g,"."):""):""})();var vla=function(){if(g.XO)return Ep(/Firefox\/([0-9.]+)/);if(g.mm||g.Ou||g.CP)return Xaa;if(g.AF){if(mc()||nc()){var a=Ep(/CriOS\/([0-9.]+)/);if(a)return a}return Ep(/Chrome\/([0-9.]+)/)}if(g.lu&&!mc())return Ep(/Version\/([0-9.]+)/);if(Ns||Os){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Zb()))return a[1]+"."+a[2]}else if(g.DP)return(a=Ep(/Android\s+([0-9.]+)/))?a:Ep(/Version\/([0-9.]+)/);return""}();g.ab(g.Gp,g.K);g.k=g.Gp.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.Ph(a)}return!1}; g.k.Ph=function(a){var b=this.j[a];if(b){var c=this.B[b];this.D!=0?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.ub(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;e0&&this.D==0)for(;c=this.C.pop();)this.Ph(c)}}return e!=0}return!1}; g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Ph,this),delete this.B[a])}else this.j.length=0,this.B={}}; g.k.xa=function(){g.Gp.Of.xa.call(this);this.clear();this.C.length=0};g.Hp.prototype.set=function(a,b){b===void 0?this.j.remove(a):this.j.set(a,g.Li(b))}; g.Hp.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}}; g.Hp.prototype.remove=function(a){this.j.remove(a)};g.ab(Ip,g.Hp);Ip.prototype.set=function(a,b){Ip.Of.set.call(this,a,yla(b))}; Ip.prototype.B=function(a){a=Ip.Of.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; Ip.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.ab(Jp,Ip);Jp.prototype.set=function(a,b,c){if(b=yla(b)){if(c){if(c=c.length)return g.r1;var e=c.key(b++);if(a)return g.gn(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return g.gn(e)}; return d}; g.k.clear=function(){Np(this);this.j.clear()}; g.k.key=function(a){Np(this);return this.j.key(a)};g.ab(Op,Mp);g.ab(Bla,Mp);g.ab(Pp,Lp);Pp.prototype.set=function(a,b){this.B.set(this.j+a,b)}; Pp.prototype.get=function(a){return this.B.get(this.j+a)}; Pp.prototype.remove=function(a){this.B.remove(this.j+a)}; Pp.prototype.nm=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.fn;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.gn(a?e.slice(c.j.length):c.B.get(e))}; return d};Rp.prototype.getValue=function(){return this.B}; Rp.prototype.clone=function(){return new Rp(this.j,this.B)};g.k=Sp.prototype;g.k.Eh=function(a,b){var c=this.j;c.push(new Rp(a,b));a=c.length-1;b=this.j;for(c=b[a];a>0;){var d=a-1>>1;if(b[d].j>c.j)b[a]=b[d],a=d;else break}b[a]=c}; g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(b<=0)){if(b==1)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a>1;){var f=a*2+1,h=a*2+2;f=he.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.k.Im=function(){for(var a=this.j,b=[],c=a.length,d=0;d>>16&65535|0;for(var f;c!==0;){f=c>2E3?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var uq={},v1,X$a=[],w1=0;w1<256;w1++){v1=w1;for(var Y$a=0;Y$a<8;Y$a++)v1=v1&1?3988292384^v1>>>1:v1>>>1;X$a[w1]=v1}uq=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^X$a[(a^b[d])&255];return a^-1};var kq={};kq={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 dq=[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],gq=[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],Yla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Nla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],oq=Array(576);Wp(oq);var pq=Array(60);Wp(pq);var fq=Array(512);Wp(fq);var cq=Array(256);Wp(cq);var eq=Array(29);Wp(eq);var hq=Array(30);Wp(hq);var Vla,Wla,Xla,Ula=!1;var zq;zq=[new yq(0,0,0,0,function(a,b){var c=65535;for(c>a.Wm-5&&(c=a.Wm-5);;){if(a.hc<=1){vq(a);if(a.hc===0&&b===0)return 1;if(a.hc===0)break}a.Gb+=a.hc;a.hc=0;var d=a.fl+c;if(a.Gb===0||a.Gb>=d)if(a.hc=a.Gb-d,a.Gb=d,qq(a,!1),a.ye.Je===0)return 1;if(a.Gb-a.fl>=a.mj-262&&(qq(a,!1),a.ye.Je===0))return 1}a.Eh=0;if(b===4)return qq(a,!0),a.ye.Je===0?3:4;a.Gb>a.fl&&qq(a,!1);return 1}), new yq(4,4,8,4,wq),new yq(4,5,16,8,wq),new yq(4,6,32,32,wq),new yq(4,4,16,16,xq),new yq(8,16,32,32,xq),new yq(8,16,128,128,xq),new yq(8,32,128,256,xq),new yq(32,128,258,1024,xq),new yq(32,258,258,4096,xq)];var Tla={};Tla=function(){this.input=null;this.Ty=this.rj=this.Sx=0;this.output=null;this.cU=this.Je=this.uB=0;this.msg="";this.state=null;this.YO=2;this.Vd=0};var Zla=Object.prototype.toString; Fq.prototype.push=function(a,b){var c=this.ye,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=Cla(a):Zla.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.Sx=0;c.rj=c.input.length;do{c.Je===0&&(c.output=new Vp.bz(d),c.uB=0,c.Je=d);a=Sla(c,e);if(a!==1&&a!==0)return this.As(a),this.ended=!0,!1;if(c.Je===0||c.rj===0&&(e===4||e===2))if(this.options.to==="string"){var f=Vp.GT(c.output,c.uB);b=f;f=f.length;if(f<65537&&(b.subarray&& W$a||!b.subarray))b=String.fromCharCode.apply(null,Vp.GT(b,f));else{for(var h="",l=0;l0||c.Je===0)&&a!==1);if(e===4)return(c=this.ye)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=lq(c,-2):(c.state=null,a=d===113?lq(c,-3):0)):a=-2,this.As(a),this.ended=!0,a===0;e===2&&(this.As(0),c.Je=0);return!0}; Fq.prototype.As=function(a){a===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Vp.XX(this.chunks));this.chunks=[];this.err=a;this.msg=this.ye.msg};var Hq="@@redux/INIT"+Gq(),ema="@@redux/REPLACE"+Gq();var fma=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Z$a=[0,T9a,-3,n1];g.z(Kq,uh);Kq.prototype.getType=function(){return mh(this,11)}; Kq.Kf=[2,13,14];var TYa=function(){var a=[0,V9a,U9a,k1,T9a,k1,-1,n1,T9a,n1,-1,V9a,n1,U9a,l1,Z$a,k1,-1,n1];return function(b,c){if(i1.length){var d=i1.pop();oda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Cf(b,c);try{var e=new Kq,f=e.gb;Fh(a)(f,b);var h=e}finally{b.free()}return h}}();var Fsa=new g.Lq("adInfoDialogEndpoint");var Aua=new g.Lq("adPingingEndpoint");var Uwa=new g.Lq("crossDeviceProgressCommand");var NI=new g.Lq("actionCompanionAdRenderer");var iF=new g.Lq("adActionInterstitialRenderer");var $$a=new g.Lq("adDurationRemainingRenderer");var gJ=new g.Lq("adHoverTextButtonRenderer");var Dsa=new g.Lq("adInfoDialogRenderer");var MJ=new g.Lq("adMessageRenderer");var hJ=new g.Lq("adPreviewRenderer");var PI=new g.Lq("adsEngagementPanelRenderer");var nya=new g.Lq("dismissablePanelTextPortraitImageRenderer");var aab=new g.Lq("flyoutCtaRenderer");var OI=new g.Lq("imageCompanionAdRenderer");var gF=new g.Lq("instreamAdPlayerOverlayRenderer");var bab=new g.Lq("instreamAdPlayerUnderlayRenderer");var z8a=new g.Lq("instreamSurveyAdBackgroundImageRenderer");var fJ=new g.Lq("instreamSurveyAdPlayerOverlayRenderer");var YI=new g.Lq("instreamSurveyAdRenderer"),eJ=new g.Lq("instreamSurveyAdSingleSelectQuestionRenderer"),dJ=new g.Lq("instreamSurveyAdMultiSelectQuestionRenderer"),x1=new g.Lq("instreamSurveyAdAnswerRenderer"),cab=new g.Lq("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var WI=new g.Lq("instreamVideoAdRenderer");var dab=new g.Lq("textOverlayAdContentRenderer"),eab=new g.Lq("enhancedTextOverlayAdContentRenderer"),fab=new g.Lq("imageOverlayAdContentRenderer");var hF=new g.Lq("playerOverlayLayoutRenderer");var rya=new g.Lq("aboveFeedAdLayoutRenderer");var sya=new g.Lq("belowPlayerAdLayoutRenderer");var qya=new g.Lq("inPlayerAdLayoutRenderer");var aJ=new g.Lq("playerBytesAdLayoutRenderer");var cJ=new g.Lq("playerUnderlayAdLayoutRenderer");var XI=new g.Lq("adIntroRenderer");var jya=new g.Lq("playerBytesSequentialLayoutRenderer");var yza=new g.Lq("slidingTextPlayerOverlayRenderer");var ZI=new g.Lq("surveyTextInterstitialRenderer");var gab=new g.Lq("simpleAdBadgeRenderer");var YH=new g.Lq("skipAdRenderer"),hab=new g.Lq("skipButtonRenderer");var lJ=new g.Lq("adSlotRenderer");var bJ=new g.Lq("squeezebackPlayerSidePanelRenderer");var iab=new g.Lq("timedPieCountdownRenderer");var jab=new g.Lq("adAvatarViewModel");var kab=new g.Lq("adBadgeViewModel");var lab=new g.Lq("adButtonViewModel");var mab=new g.Lq("adDisclosureBannerViewModel");var nab=new g.Lq("adPreviewViewModel");var oab=new g.Lq("playerAdAvatarLockupCardButtonedViewModel");var pab=new g.Lq("skipAdButtonViewModel");var qab=new g.Lq("skipAdViewModel");var rab=new g.Lq("visitAdvertiserLinkViewModel");var QI=new g.Lq("bannerImageLayoutViewModel");var RI=new g.Lq("topBannerImageTextIconButtonedLayoutViewModel");var SI=new g.Lq("adsEngagementPanelLayoutViewModel");g.BR=new g.Lq("browseEndpoint");var sab=new g.Lq("confirmDialogEndpoint");var Mqa=new g.Lq("rawColdConfigGroup");var Lqa=new g.Lq("rawHotConfigGroup");g.vz=new g.Lq("commandExecutorCommand");g.z(Mq,uh);g.z(Nq,uh);Nq.Kf=[1];g.z(lma,uh);var tJa={Bla:0,Mla:1,Xla:32,cma:61,jma:67,ema:86,Wla:42,Yla:60,Ola:62,bma:73,ama:76,fma:88,gma:90,kma:99,Ula:98,hma:100,lma:41,mma:69,nma:70,oma:71,Bja:2,Cja:27,ANDROID:3,Afa:54,Bfa:14,Jfa:91,Cfa:55,Dfa:24,Efa:20,Ffa:18,Hfa:21,Lfa:30,Ofa:29,Pfa:28,Hla:101,Qfa:34,Kfa:36,Gfa:38,IOS:5,yia:15,Iia:92,zia:40,Bia:25,Cia:17,Dia:19,Eia:64,Fia:66,Gia:26,Kia:22,Lia:33,Mia:68,Nia:35,Hia:53,Jia:37,Aia:39,mla:7,nla:57,ola:43,rla:59,qla:93,Nfa:74,sla:75,tla:85,ula:65,xla:80,yla:8,kla:10,Ala:58,zla:63,wla:72,Mfa:23, rma:11,tma:13,tga:12,lla:16,Vla:56,dma:31,yja:77,zha:84,Zla:87,Bha:89,Aha:94,lja:95};g.z(Oq,uh);Oq.prototype.u8=function(){return lh(this,3)}; Oq.prototype.C8=function(){return lh(this,5)}; Oq.prototype.Ls=function(a){return qh(this,5,a)};g.z(Pq,uh);g.z(Qq,uh);Qq.Kf=[2];g.z(Rq,uh);Rq.prototype.getDeviceId=function(){return lh(this,6)}; Rq.prototype.getPlayerType=function(){return mh(this,36)}; Rq.prototype.setHomeGroupInfo=function(a){return dh(this,Qq,81,a)}; Rq.prototype.clearLocationPlayabilityToken=function(){return Hg(this,89)}; Rq.Kf=[9,66,32,86,100,101];g.z(Sq,uh);Sq.prototype.getValue=function(){return lh(this,Xg(this,Iqa)===2?2:-1)}; var Iqa=[2,3,4,5,6];g.z(Tq,uh);Tq.Kf=[15,26,28];g.z(Uq,uh);Uq.Kf=[5];g.z(Vq,uh);Vq.prototype.getToken=function(){return ih(this,2)}; Vq.prototype.setToken=function(a){return qh(this,2,a)};g.z(Wq,uh);Wq.prototype.setSafetyMode=function(a){return sh(this,5,a)}; Wq.Kf=[12];g.z(Xq,uh);Xq.prototype.tH=function(a){return dh(this,Rq,1,a)}; Xq.Kf=[12];var jJ=new g.Lq("thumbnailLandscapePortraitRenderer");g.tab=new g.Lq("changeEngagementPanelVisibilityAction");var fta=new g.Lq("continuationCommand");g.uab=new g.Lq("openPopupAction");g.y1=new g.Lq("webCommandMetadata");var gLa=new g.Lq("metadataBadgeRenderer");var eta=new g.Lq("signalServiceEndpoint");var Mx=new g.Lq("innertubeCommand");var N8a=new g.Lq("loggingDirectives");var $ma={aha:"EMBEDDED_PLAYER_MODE_UNKNOWN",Xga:"EMBEDDED_PLAYER_MODE_DEFAULT",Zga:"EMBEDDED_PLAYER_MODE_PFP",Yga:"EMBEDDED_PLAYER_MODE_PFL"};var DLa=new g.Lq("channelThumbnailEndpoint");var CLa=new g.Lq("embeddedPlayerErrorMessageRenderer");var yLa=new g.Lq("embeddedPlayerOverlayVideoDetailsRenderer"),ELa=new g.Lq("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),FLa=new g.Lq("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var dLa=new g.Lq("embedsInfoPanelRenderer");var vab=new g.Lq("feedbackEndpoint");var wab=new g.Lq("callToActionButtonViewModel");var xab=new g.Lq("interactionLoggingCommandMetadata");var Woa={Tla:"WEB_DISPLAY_MODE_UNKNOWN",Pla:"WEB_DISPLAY_MODE_BROWSER",Rla:"WEB_DISPLAY_MODE_MINIMAL_UI",Sla:"WEB_DISPLAY_MODE_STANDALONE",Qla:"WEB_DISPLAY_MODE_FULLSCREEN"};g.z(Yq,uh);Yq.prototype.getValue=function(){return lh(this,2)};g.z(Zq,uh);Zq.Kf=[4,5];g.z($q,uh);g.z(ar,uh);var Dra=[2,3,4,5];g.z(br,uh);br.prototype.getMessage=function(){return lh(this,1)};g.z(cr,uh);g.z(dr,uh);g.z(er,uh);er.Kf=[10,17];g.z(fr,uh);g.z(gr,uh);gr.prototype.setTrackingParams=function(a){return Hg(this,1,Vf(a,!1,!1))};g.z(hr,uh);g.z(ir,uh);g.z(jr,uh);g.z(kr,uh);g.z(lr,uh);g.z(mr,uh);mr.prototype.De=function(){return ch(this,kr,8)}; mr.prototype.B9=function(){return Ig(this,kr,8)}; mr.prototype.getVideoData=function(){return ch(this,lr,15)}; mr.prototype.xH=function(a){dh(this,lr,15,a)}; mr.Kf=[4];g.z(nr,uh);g.z(or,uh);or.prototype.j=function(a){return qh(this,2,a)};g.z(pr,uh);pr.prototype.j=function(a){return qh(this,1,a)}; pr.Kf=[3];g.z(qr,uh);qr.prototype.j=function(a){return qh(this,1,a)}; qr.prototype.hasVe=function(){return Ig(this,gr,2)};g.z(rr,uh);rr.prototype.j=function(a){return qh(this,1,a)}; rr.prototype.hasVe=function(){return Ig(this,gr,2)};g.z(sr,uh);sr.prototype.j=function(a){return qh(this,1,a)}; sr.prototype.hasVe=function(){return Ig(this,gr,2)};g.z(tr,uh);tr.prototype.j=function(a){return qh(this,1,a)}; tr.prototype.hasVe=function(){return Ig(this,gr,2)};g.z(ur,uh);g.z(vr,uh);vr.prototype.getId=function(){return lh(this,2)};g.z(zr,uh);g.z(Ar,uh);Ar.prototype.getPlayerType=function(){return mh(this,7)}; Ar.prototype.mf=function(){return lh(this,19)}; Ar.prototype.setVideoId=function(a){return qh(this,19,a)}; Ar.Kf=[112,83,118,68];g.z(Cr,uh);g.z(Dr,uh);g.z(Er,uh);g.z(Fr,uh); var vx=[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 Mra={ria:0,Wha:1,cia:2,dia:4,kia:8,fia:16,gia:32,qia:64,pia:128,Yha:256,aia:512,iia:1024,Zha:2048,bia:4096,Xha:8192,hia:16384,lia:32768,jia:65536,mia:131072,oia:262144};g.z(Gr,uh);g.z(Hr,uh);Hr.prototype.mf=function(){return ih(this,Xg(this,dx)===1?1:-1)}; Hr.prototype.setVideoId=function(a){return Vg(this,1,dx,lg(a))}; Hr.prototype.getPlaylistId=function(){return ih(this,Xg(this,dx)===2?2:-1)}; var dx=[1,2];g.z(Ir,uh);Ir.Kf=[3];var kR=new g.Lq("changeKeyedMarkersVisibilityCommand");var yab=new g.Lq("changeMarkersVisibilityCommand");var iLa=new g.Lq("loadMarkersCommand");var zab=new g.Lq("suggestedActionDataViewModel");var zRa=new g.Lq("productListItemRenderer");var Aab=new g.Lq("shoppingOverlayRenderer");var zLa=new g.Lq("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Bab=new g.Lq("adFeedbackEndpoint");var Cab=new g.Lq("menuEndpoint");var PQa=new g.Lq("phoneDialerEndpoint");var NQa=new g.Lq("sendSmsEndpoint");var xLa=new g.Lq("copyTextEndpoint");var Dab=new g.Lq("shareEndpoint"),Eab=new g.Lq("shareEntityEndpoint"),Fab=new g.Lq("shareEntityServiceEndpoint"),Gab=new g.Lq("webPlayerShareEntityServiceEndpoint");g.Py=new g.Lq("urlEndpoint");g.iR=new g.Lq("watchEndpoint");var Hab=new g.Lq("watchPlaylistEndpoint");var ANa=new g.Lq("compositeVideoOverlayRenderer");var Iab=new g.Lq("miniplayerRenderer");var vLa=new g.Lq("paidContentOverlayRenderer");var SKa=new g.Lq("playerMutedAutoplayOverlayRenderer"),TKa=new g.Lq("playerMutedAutoplayEndScreenRenderer");var hKa=new g.Lq("unserializedPlayerResponse"),UKa=new g.Lq("unserializedPlayerResponse");var Jab=new g.Lq("playlistEditEndpoint");var z1;g.iJ=new g.Lq("buttonRenderer");z1=new g.Lq("toggleButtonRenderer");var lya=new g.Lq("counterfactualRenderer");var Kab=new g.Lq("resolveUrlCommandMetadata");var Lab=new g.Lq("modifyChannelNotificationPreferenceEndpoint");var zua=new g.Lq("pingingEndpoint");var Mab=new g.Lq("unsubscribeEndpoint");g.CR=new g.Lq("subscribeButtonRenderer");var Nab=new g.Lq("subscribeEndpoint");var pNa=new g.Lq("buttonViewModel");var mya=new g.Lq("qrCodeRenderer");var vJa={eja:"LIVING_ROOM_APP_MODE_UNSPECIFIED",bja:"LIVING_ROOM_APP_MODE_MAIN",aja:"LIVING_ROOM_APP_MODE_KIDS",cja:"LIVING_ROOM_APP_MODE_MUSIC",dja:"LIVING_ROOM_APP_MODE_UNPLUGGED",Zia:"LIVING_ROOM_APP_MODE_GAMING"};var aLa=new g.Lq("autoplaySwitchButtonRenderer");var AQ,oSa,oKa,zSa;AQ=new g.Lq("decoratedPlayerBarRenderer");oSa=new g.Lq("chapteredPlayerBarRenderer");oKa=new g.Lq("multiMarkersPlayerBarRenderer");zSa=new g.Lq("chapterRenderer");g.sSa=new g.Lq("markerRenderer");var eLa=new g.Lq("desktopOverlayConfigRenderer");var cLa=new g.Lq("gatedActionsOverlayViewModel");var wSa=new g.Lq("heatMarkerRenderer");var vSa=new g.Lq("heatmapRenderer");var hLa=new g.Lq("watchToWatchTransitionRenderer");var ALa=new g.Lq("playlistPanelRenderer");var Oab=new g.Lq("productUpsellSuggestedActionViewModel");var Pab=new g.Lq("suggestedActionTimeRangeTrigger"),Qab=new g.Lq("suggestedActionsRenderer"),Rab=new g.Lq("suggestedActionRenderer");var xSa=new g.Lq("timedMarkerDecorationRenderer");var EDa=new g.Lq("cipher");var iKa=new g.Lq("playerVars");var VKa=new g.Lq("playerVars");var A1=g.La.window,Sab,Uab,Jr=(A1==null?void 0:(Sab=A1.yt)==null?void 0:Sab.config_)||(A1==null?void 0:(Uab=A1.ytcfg)==null?void 0:Uab.data_)||{};g.Ma("yt.config_",Jr);var Nr=[];var yma=/^[\w.]*$/,uma={q:!0,search_query:!0},tma=String(Rr);var as=new function(){var a=window.document;this.j=window;this.B=a}; g.Ma("yt.ads_.signals_.getAdSignalsString",function(a){return Sr(cs(a))});g.$a();var Ama="XMLHttpRequest"in g.La?function(){return new XMLHttpRequest}:null;var Vab="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.w(Vab);var Ema={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"},Fma="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.w(Vab)),Mma=!1,Cma=Gma,Jma=os;g.z(rs,jb);vs.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):this.C===1&&a?(a=a.call(c,this.B))&&typeof a.then==="function"?a:xs(a):this.C===2&&b?(a=b.call(c,this.B))&&typeof a.then==="function"?a:ws(a):this}; vs.prototype.getValue=function(){return this.B}; vs.prototype.$goog_Thenable=!0;var ys=!1;var Nu=Ns||Os;var Yma=/^([0-9\.]+):([0-9\.]+)$/;g.z(ct,jb);ct.prototype.name="BiscottiError";g.z(bt,jb);bt.prototype.name="BiscottiMissingError";var bna={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},dt=null;var Gba=na(["data-"]),kna={};var Wab=0,et=g.rc?"webkit":lm?"moz":g.mm?"ms":g.CP?"o":"",Xab=g.Pa("ytDomDomGetNextId")||function(){return++Wab}; g.Ma("ytDomDomGetNextId",Xab);var ona={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};kt.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; kt.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; kt.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var lt=g.La.ytEventsEventsListeners||{};g.Ma("ytEventsEventsListeners",lt);var rna=g.La.ytEventsEventsCounter||{count:0};g.Ma("ytEventsEventsCounter",rna);var vna=dd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a}),sna=dd(function(){var a=!1; try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});var B1;B1=window;g.uu=B1.ytcsi&&B1.ytcsi.now?B1.ytcsi.now:B1.performance&&B1.performance.timing&&B1.performance.now&&B1.performance.timing.navigationStart?function(){return B1.performance.timing.navigationStart+B1.performance.now()}:function(){return(new Date).getTime()};g.ab(qt,g.K);qt.prototype.Y=function(a){a.j===void 0&&pna(a);var b=a.j;a.B===void 0&&pna(a);this.j=new g.Kd(b,a.B)}; qt.prototype.Zt=function(){return this.j||new g.Kd}; qt.prototype.qa=function(){if(this.j){var a=(0,g.uu)();if(this.D!=0){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=Math.abs((d-this.G)/this.G)>.5?1:0;for(c=b=0;c<4;c++)b+=this.B[c]||0;b>=3&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}}; qt.prototype.xa=function(){g.is(this.Z);g.nt(this.ra)};g.z(rt,g.K);rt.prototype.T=function(a,b,c,d,e){c=g.Pr((0,g.Xa)(c,d||this.rb));c={target:a,name:b,callback:c};var f;e&&vna()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c}; rt.prototype.Nc=function(a){for(var b=0;b=N.Hn)||B.j.version>=S||B.j.objectStoreNames.contains(O)||F.push(O)}m=F;if(m.length===0){x.Ia(5);break}n=Object.keys(c.options.zs); p=l.objectStoreNames();if(c.Gc.options.version+1)throw r.close(),c.C=!1,joa(c,t);return x.return(r);case 8:throw b(), q instanceof Error&&!g.ks("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),mu(q,c.name,"",(u=c.options.version)!=null?u:-1);}})} function b(){c.j===d&&(c.j=void 0)} var c=this;if(!this.C)throw joa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, closed:b,mea:b,upgrade:this.options.upgrade};return this.j=d=a()};var Lu=new Ju("YtIdbMeta",{zs:{databases:{Hn:1}},upgrade:function(a,b){b(1)&&g.wu(a,"databases",{keyPath:"actualName"})}});var Qu,Pu=new function(){}(new function(){});new g.uj;g.z(Tu,Ju);Tu.prototype.B=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?soa:roa)(a,b,Object.assign({},c))}; Tu.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?woa:toa)(this.name,a)};var ebb={},yoa=g.Uu("ytGcfConfig",{zs:(ebb.coldConfigStore={Hn:1},ebb.hotConfigStore={Hn:1},ebb),shared:!1,upgrade:function(a,b){b(1)&&(g.Cu(g.wu(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Cu(g.wu(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.z(Wu,g.K);Wu.prototype.xa=function(){for(var a=g.v(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.B.length=0;g.K.prototype.xa.call(this)};iv.prototype.Ls=function(a){this.hotHashData=a;g.Ma("yt.gcf.config.hotHashData",this.hotHashData||null)};var fbb=typeof TextEncoder!=="undefined"?new TextEncoder:null,kpa=fbb?function(a){return fbb.encode(a)}:function(a){a=g.We(a); for(var b=new Uint8Array(a.length),c=0;c=b?!1:!0}; g.k.eM=function(){var a=this;if(!Gv(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Ih.sY("QUEUED",this.Af).then(function(b){b&&!a.bM(b,a.j1)?a.Do.Si(function(){return g.H(function(c){if(c.j==1)return b.id===void 0?c.Ia(2):g.G(c,a.Ih.YS(b.id,a.Af),2);a.eM();g.va(c)})}):a.kh.Hh()&&a.DC()})};var Jv;var Pqa={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138, mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168, kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471, webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494, miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500};var hbb={},Cpa=g.Uu("ServiceWorkerLogsDatabase",{zs:(hbb.SWHealthLog={Hn:1},hbb),shared:!0,upgrade:function(a,b){b(1)&&g.Cu(g.wu(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Mv={},Ipa=0;var Nv;Pv.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; Pv.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:a===!1&&this.B?!0:null}; Pv.prototype.removeParams=function(a){return a.split("?")[0]}; Pv.prototype.removeParams=Pv.prototype.removeParams;Pv.prototype.isEndpointCFR=Pv.prototype.isEndpointCFR;Pv.prototype.requestComplete=Pv.prototype.requestComplete;Pv.getInstance=Qv;g.z(Rv,g.Zc);g.k=Rv.prototype;g.k.Hh=function(){return this.j.Hh()}; g.k.Qx=function(a){this.j.j=a}; g.k.W8=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; g.k.V7=function(){this.B=!0}; g.k.listen=function(a,b){return this.j.listen(a,b)}; g.k.iM=function(a){a=Uo(this.j,a);a.then(function(b){g.ks("use_cfr_monitor")&&Qv().requestComplete("generate_204",b)}); return a}; Rv.prototype.sendNetworkCheckRequest=Rv.prototype.iM;Rv.prototype.listen=Rv.prototype.listen;Rv.prototype.enableErrorFlushing=Rv.prototype.V7;Rv.prototype.getWindowStatus=Rv.prototype.W8;Rv.prototype.networkStatusHint=Rv.prototype.Qx;Rv.prototype.isNetworkAvailable=Rv.prototype.Hh;Rv.getInstance=Lpa;g.z(g.Sv,g.Zc);g.Sv.prototype.Hh=function(){var a=g.Pa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0}; g.Sv.prototype.Qx=function(a){var b=g.Pa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)}; g.Sv.prototype.iM=function(a){var b=this,c;return g.H(function(d){c=g.Pa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.ks("skip_network_check_if_cfr")&&Qv().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Qx(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.Hh())})):c?d.return(c(a)):d.return(!0)})};var Tv;g.z(Uv,Hv);Uv.prototype.writeThenSend=function(a,b){b||(b={});b=Wv(a,b);g.Ot()||(this.j=!1);Hv.prototype.writeThenSend.call(this,a,b)}; Uv.prototype.sendThenWrite=function(a,b,c){b||(b={});b=Wv(a,b);g.Ot()||(this.j=!1);Hv.prototype.sendThenWrite.call(this,a,b,c)}; Uv.prototype.sendAndWrite=function(a,b){b||(b={});b=Wv(a,b);g.Ot()||(this.j=!1);Hv.prototype.sendAndWrite.call(this,a,b)}; Uv.prototype.awaitInitialization=function(){return this.C.promise};var Qpa=g.La.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ma("ytNetworklessLoggingInitializationOptions",Qpa);g.Xv.prototype.isReady=function(){!this.config_&&Poa()&&(this.config_=g.kv());return!!this.config_};var ibb,$v,bw;ibb=g.La.ytPubsubPubsubInstance||new g.Gp;$v=g.La.ytPubsubPubsubSubscribedKeys||{};bw=g.La.ytPubsubPubsubTopicToKeys||{};g.aw=g.La.ytPubsubPubsubIsSynchronous||{};g.Gp.prototype.subscribe=g.Gp.prototype.subscribe;g.Gp.prototype.unsubscribeByKey=g.Gp.prototype.Ph;g.Gp.prototype.publish=g.Gp.prototype.publish;g.Gp.prototype.clear=g.Gp.prototype.clear;g.Ma("ytPubsubPubsubInstance",ibb);g.Ma("ytPubsubPubsubTopicToKeys",bw);g.Ma("ytPubsubPubsubIsSynchronous",g.aw); g.Ma("ytPubsubPubsubSubscribedKeys",$v);var Wpa={};g.z(kw,g.K);kw.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Ib();this.Ib().appendChild(a)}; g.z(lw,kw);lw.prototype.Ib=function(){return this.j};g.z(Zpa,g.K);var mw=Date.now().toString();var rw={};var xw=Symbol("injectionDeps");uw.prototype.toString=function(){return"InjectionToken("+this.name+")"}; cqa.prototype.resolve=function(a){return a instanceof vw?yw(this,a.key,[],!0):yw(this,a,[])};var zw;var Bw=window;var Fw=g.ks("web_enable_lifecycle_monitoring")&&Cw()!==0,iqa=g.ks("web_enable_lifecycle_monitoring");fqa.prototype.cancel=function(){for(var a=g.v(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.PL||this.scheduler.bk(b.jobId),b.PL=!0;this.B.resolve()};g.k=Gw.prototype;g.k.install=function(a){this.plugins.push(a);return this}; g.k.uninstall=function(){var a=this;g.Fa.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);b>-1&&a.plugins.splice(b,1)})}; g.k.transition=function(a,b){var c=this;Fw&&eqa(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&&(gqa(this.B),this.B=void 0);jqa(this,a,b);this.state=a;Fw&&Dw(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); d(hqa(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; g.k.pda=function(a){var b=g.Fa.apply(1,arguments);g.Tt();for(var c=g.v(a),d=c.next(),e={};!d.done;e={UF:void 0},d=c.next())e.UF=d.value,Ina(function(f){return function(){Iw(f.UF.name);f.UF.callback.apply(f.UF,g.w(b));Jw(f.UF.name)}}(e))}; g.k.oda=function(a){var b=g.Fa.apply(1,arguments),c,d,e,f;return g.H(function(h){h.j==1&&(g.Tt(),c=g.v(a),d=c.next(),e={});if(h.j!=3){if(d.done)return h.Ia(0);e.cB=d.value;e.GI=void 0;f=function(l){return function(){Iw(l.cB.name);var m=l.cB.callback.apply(l.cB,g.w(b));typeof(m==null?void 0:m.then)==="function"?l.GI=m.then(function(){Jw(l.cB.name)}):Jw(l.cB.name)}}(e); Ina(f);return e.GI?g.G(h,e.GI,3):h.Ia(3)}e={cB:void 0,GI:void 0};d=c.next();return h.Ia(2)})}; g.k.T1=function(a){var b=g.Fa.apply(1,arguments),c=this,d=a.map(function(e){return{RQ:function(){Iw(e.name);e.callback.apply(e,g.w(b));Jw(e.name)}, priority:Hw(c,e)}}); d.length&&(this.B=new fqa(d))}; g.fa.Object.defineProperties(Gw.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Lw;g.z(Kw,Gw);Kw.prototype.G=function(a,b){var c=this;this.j=g.Rt(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); a(b==null?void 0:b.event)}; Kw.prototype.K=function(a,b){this.j&&(g.Wo.bk(this.j),this.j=null);a(b==null?void 0:b.event)};var lx=[];g.Ma("yt.logging.transport.getScrapedGelPayloads",function(){return lx});Mw.prototype.storePayload=function(a,b){a=Nw(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a}; Mw.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Pw(this,a.keys.splice(0,1)[0]),c=[],d=0;d=0){d=!1;break a}}d=!0}d&&(b=Ox(b))&&this.nH(b)}}; g.k.d1=function(a){return a}; g.k.q5=function(a){var b=this.Ca;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=$pa(b,a)||a.length!=1;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.Y=Infinity):(b.Z=c.clientX,b.Y=c.clientY);for(c=b.C.length=0;c=0)}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.D=!0}; g.k.o5=function(a){if(this.Ca){var b=this.Ca,c=a.changedTouches;c&&b.N&&b.B==1&&!b.D&&!b.G&&!b.K&&$pa(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;b.B===0&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}}; g.k.nH=function(a){this.layoutId?this.kb.executeCommand(a,this.layoutId):g.Jx(new g.Mt("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.k.createServerVe=function(a,b){this.api.createServerVe(a,this);this.api.setTrackingParams(a,b)}; g.k.logVisibility=function(a,b){this.api.hasVe(a)&&this.api.logVisibility(a,b,this.interactionLoggingClientData)}; g.k.xa=function(){this.clear(null);this.Nc(this.rb);for(var a=g.v(this.Ga),b=a.next();!b.done;b=a.next())this.Nc(b.value);g.ry.prototype.xa.call(this)};g.z(Ly,sy); Ly.prototype.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);this.j=b;if(b.text==null&&b.icon==null)g.Kx(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}a!=null&&g.np(this.element,a);b.text!=null&&(a=g.uy(b.text),g.Qb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.ry({I:"span",S:"ytp-ad-button-text",va:a}),g.Q(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.Qb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);b.icon!=null&&(b=Ky(b.icon),b!=null&&(this.B=new g.ry({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.Q(this,this.B)),this.D?qe(this.element,this.B.element,0):this.B.Ja(this.element))}}; Ly.prototype.clear=function(){this.hide()}; Ly.prototype.onClick=function(a){sy.prototype.onClick.call(this,a);a=g.v(psa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.Jx(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.z(My,g.K);My.prototype.xa=function(){this.B&&g.nt(this.B);this.j.clear();Ny=null;g.K.prototype.xa.call(this)}; My.prototype.register=function(a,b){b&&this.j.set(a,b)}; var Ny=null;g.z(Qy,sy); Qy.prototype.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.R(b.button,g.iJ)||null;b==null?g.Jx(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Ly(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.Q(this,this.button),this.button.init(gy("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.uy(a)),this.button.Ja(this.element),this.G&&!g.mp(this.button.element,"ytp-ad-clickable")&&g.np(this.button.element, "ytp-ad-clickable"),a&&(this.B=new g.ry({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.ry({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.Q(this,b)),g.Q(this,this.B),this.B.Ja(this.element),b=Oy(a),qe(this.B.element,b,0)),this.show())}; Qy.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();sy.prototype.hide.call(this)}; Qy.prototype.show=function(){this.button&&this.button.show();sy.prototype.show.call(this)};g.z(Sy,sy); Sy.prototype.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&Ry(a)||"";g.Qb(c)?Math.random()<.01&&g.Kx(Error("Found AdImage without valid image URL")):(this.j?g.km(this.element,"backgroundImage","url("+c+")"):ie(this.element,{src:c}),ie(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())}; Sy.prototype.clear=function(){this.hide()};g.z(Ty,sy);g.k=Ty.prototype;g.k.hide=function(){sy.prototype.hide.call(this);this.C&&this.C.focus()}; g.k.show=function(){this.C=document.activeElement;sy.prototype.show.call(this);this.D.focus()}; g.k.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||b.title!=null?b.confirmLabel==null?g.Jx(Error("ConfirmDialogRenderer.confirmLabel was not set.")):b.cancelLabel==null?g.Jx(Error("ConfirmDialogRenderer.cancelLabel was not set.")):tsa(this,b):g.Jx(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.ut(this.j);this.hide()}; g.k.CR=function(){this.hide()}; g.k.rN=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.Jx(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.k.DR=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.Jx(Error("Missing layoutId for confirm dialog.")));this.hide()};g.z(Uy,sy);g.k=Uy.prototype; g.k.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);this.C=b;if(b.defaultText==null&&b.defaultIcon==null)g.Jx(Error("ToggleButtonRenderer must have either text or icon set."));else if(b.defaultIcon==null&&b.toggledIcon!=null)g.Jx(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}a!=null&&g.np(this.D,a)}a={};b.defaultText? (c=g.uy(b.defaultText),g.Qb(c)||(a.buttonText=c,this.api.U().experiments.ob("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.ob("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.xm(this.Fa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=Ky(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra= !0,c=Ky(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.xm(this.Y,!0),g.xm(this.G,!1)),g.xm(this.j,!1)):g.xm(this.B,!1);g.Gc(a)||this.update(a);b.isToggled&&(g.np(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Vy(this);this.T(this.element,"change",this.xV);this.show()}}; g.k.onClick=function(a){this.Ga.length>0&&(this.toggleButton(!this.isToggled()),this.xV());sy.prototype.onClick.call(this,a)}; g.k.xV=function(){g.rp(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.v(usa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.Jx(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Vy(this)}; g.k.clear=function(){this.hide()}; g.k.toggleButton=function(a){g.rp(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;Vy(this)}; g.k.isToggled=function(){return this.j.checked};g.z(Wy,rt);Wy.prototype.K=function(a){if(Array.isArray(a)){a=g.v(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof vsa&&this.D(b)}};g.z(Xy,sy);g.k=Xy.prototype;g.k.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);b.reasons?b.confirmLabel==null?g.Jx(Error("AdFeedbackRenderer.confirmLabel was not set.")):(b.cancelLabel==null&&g.Kx(Error("AdFeedbackRenderer.cancelLabel was not set.")),b.title==null&&g.Kx(Error("AdFeedbackRenderer.title was not set.")),zsa(this,b)):g.Jx(Error("AdFeedbackRenderer.reasons were not set."))}; g.k.clear=function(){ot(this.G);ot(this.Y);this.D.length=0;this.hide()}; g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();sy.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;sy.prototype.show.call(this);this.G.focus()}; g.k.R_=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.k.mca=function(){this.hide()}; Yy.prototype.Ib=function(){return this.j.element}; Yy.prototype.getCommand=function(){return this.B}; Yy.prototype.isChecked=function(){return this.C.checked};g.z(Zy,Ty);Zy.prototype.CR=function(a){Ty.prototype.CR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Zy.prototype.rN=function(a){Ty.prototype.rN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Zy.prototype.DR=function(a){Ty.prototype.DR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.z($y,sy);g.k=$y.prototype; g.k.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);this.G=b;if(b.dialogMessage==null&&b.title==null)g.Jx(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{b.confirmLabel==null&&g.Kx(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.R(b.closeOverlayRenderer,g.iJ)||null)this.j=new Ly(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.Q(this,this.j),this.j.init(gy("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.uy(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c=this.Na?(this.Fa.hide(),this.Wa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Na-a)/1E3)),a!=this.Xa&&(cz(this.C,{TIME_REMAINING:String(a)}),this.Xa=a)))}};g.z(kz,dz);g.k=kz.prototype; g.k.init=function(a,b,c){dz.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.R(b.actionButton,g.iJ))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;e!=null&&e.length>0&&g.Qb(g.Yd(e[0].url))&&(e[0].url=d.profilePicture)}else g.Kx(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(gy("ad-image"),b.image,c);this.G.init(gy("ad-text"), b.headline,c);this.D.init(gy("ad-text"),b.description,c);this.B.init(gy("button"),a,c);c=dp(this.B.element);cp(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.GF()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Ea("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Ea("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Ea("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.Ea("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Ea("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Ea("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.Ea("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.zV.bind(this));this.Fa=b.startMs||0;ez(this)}else g.Jx(Error("FlyoutCtaRenderer has no valid action button."));else g.Jx(Error("FlyoutCtaRenderer has no description AdText."));else g.Jx(Error("FlyoutCtaRenderer has no headline AdText."));else g.Kx(Error("FlyoutCtaRenderer has no image."))}; g.k.onClick=function(a){dz.prototype.onClick.call(this,a);this.api.pauseVideo();!g.te(this.B.element,a.target)&&this.ra&&(this.layoutId?this.kb.executeCommand(this.ra,this.layoutId):g.Jx(Error("Missing layoutId for flyout cta.")))}; g.k.Ro=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Na)&&1E3*a.current>=this.Fa&&(fz(this),g.pp(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}}; g.k.Aq=function(){this.clear()}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.zV.bind(this))}; g.k.show=function(){this.B&&this.B.show();dz.prototype.show.call(this)}; g.k.hide=function(){this.B&&this.B.hide();dz.prototype.hide.call(this)}; g.k.zV=function(a){a=="hidden"?this.show():this.hide()};g.z(lz,sy);g.k=lz.prototype; g.k.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.R(this.j.likeButton,z1),b=this.j.dislikeButton&&g.R(this.j.dislikeButton,z1),this.C.init(gy("toggle-button"),a,c),this.B.init(gy("toggle-button"),b,c),this.T(this.element,"change",this.AV),this.D.show(100),this.show(),c=g.v(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.kb.executeCommand(a,this.layoutId):g.Jx(Error("Missing layoutId for instream user sentiment."))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.C.hide();this.B.hide();sy.prototype.hide.call(this)}; g.k.show=function(){this.C.show();this.B.show();sy.prototype.show.call(this)}; g.k.AV=function(){dla(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.ib("onYtShowToast",this.j.postMessageAction);this.D.hide()}; g.k.onClick=function(a){this.Ga.length>0&&this.AV();sy.prototype.onClick.call(this,a)};g.z(mz,g.K);g.k=mz.prototype;g.k.xa=function(){this.reset();g.K.prototype.xa.call(this)}; g.k.reset=function(){g.ut(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.CV,this);this.D.T(this.B,"mouseout",this.BV,this);this.qa&&(this.D.T(this.B,"focusin",this.CV,this),this.D.T(this.B,"focusout",this.BV,this));this.j?this.j.start():(this.K=this.C=!0,g.km(this.B,{opacity:this.Y}))}; g.k.CV=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()}; g.k.BV=function(){this.K?this.G.start():this.j&&this.j.start()}; g.k.SW=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.z(uz,dz);g.k=uz.prototype; g.k.init=function(a,b,c){dz.prototype.init.call(this,a,b,c);this.ra=b;(this.Fa=Nsa(this))&&g.Kx(Error("hasAdControlInClickCommands_ is true."));if(!b||g.Gc(b))g.Jx(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Gc(b.message))g.Jx(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=Ky(a);b==null?g.Jx(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")): (this.C=new g.ry({I:"button",La:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{I:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[b]}]}),g.Q(this,this.C),this.C.Ja(this.D.element),this.B=new bz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(gy("ad-text"),this.ra.message,c),g.Q(this,this.B),qe(this.C.element,this.B.element, 0));var d=d===void 0?null:d;c=this.api.U();!(this.Ga.length>0)&&c.B&&(BP?0:"ontouchstart"in document.documentElement&&(mha()||tl()))&&(this.Nc(this.rb),d&&this.Nc(d),this.Ga=[this.T(this.element,"touchstart",this.q5,this),this.T(this.element,"touchmove",this.p5,this),this.T(this.element,"touchend",this.o5,this)])}}; g.k.clear=function(){this.Na.reset();this.hide()}; g.k.hide=function(){this.D.hide();this.B&&this.B.hide();fz(this);dz.prototype.hide.call(this)}; g.k.onClick=function(a){if(this.C!=null){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(Ksa(a,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;dz.prototype.onClick.call(this,a);this.publish("j");this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");if(this.Wa||!this.Fa)this.api.onAdUxClicked(this.componentType, this.layoutId)}}; g.k.d1=function(a){if(!this.Wa)return this.Fa&&qz("SkipButton click commands not pruned while ALC exist"),a;var b,c=(b=g.R(a,g.vz))==null?void 0:b.commands;if(!c)return a;a=[];for(b=0;b=this.G&&Osa(this,!0)};g.z(xz,Ly);xz.prototype.init=function(a,b,c){Ly.prototype.init.call(this,a,b,c);a=!1;b.text!=null&&(a=g.uy(b.text),a=!g.Qb(a));a?b.navigationEndpoint==null?g.Kx(Error("No visit advertiser clickthrough provided in renderer,")):b.style!=="STYLE_UNKNOWN"?g.Kx(Error("Button style was not a link-style type in renderer,")):this.show():g.Kx(Error("No visit advertiser text was present in the renderer."))};g.z(yz,sy); yz.prototype.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);a=b.text;g.Qb(ty(a))?g.Kx(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 bz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),a.init(gy("simple-ad-badge"),b,c),a.Ja(this.element),g.Q(this,a)),this.api.U().experiments.ob("enable_unified_ad_badge_style_fix")&&this.C&& this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())}; yz.prototype.clear=function(){this.hide()};g.z(zz,hy);g.z(Az,g.iy);g.k=Az.prototype;g.k.HJ=function(){return this.durationMs}; g.k.stop=function(){this.j&&this.Gd.Nc(this.j)}; g.k.Sc=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.r5=function(a){g.tz(a,2)&&this.publish("g")};g.z(Bz,g.iy);g.k=Bz.prototype;g.k.HJ=function(){return this.durationMs}; g.k.start=function(){this.j||(this.j=!0,this.We.start())}; g.k.stop=function(){this.j&&(this.j=!1,this.We.stop())}; g.k.Sc=function(){this.ij+=100;var a=!1;this.ij>this.durationMs&&(this.ij=this.durationMs,this.We.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.ij/1E3};this.publish("h");a&&this.publish("g")}; g.k.getProgressState=function(){return this.B};g.z(Ez,dz);g.k=Ez.prototype;g.k.init=function(a,b,c){dz.prototype.init.call(this,a,b,c);var d;if(b==null?0:(d=b.templatedCountdown)==null?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.Kx(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new bz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);this.B.init(gy("ad-text"),a,{});this.B.Ja(this.element);g.Q(this,this.B)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){fz(this);dz.prototype.hide.call(this)}; g.k.Aq=function(){this.hide()}; g.k.Ro=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&this.B&&(a=(this.j instanceof Az?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:a.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof Bz?a.seekableEnd:this.api.getDuration(2,!1))-a.current,cz(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.Cz(a)),TIME_REMAINING:String(Math.ceil(a))}))}}; g.k.show=function(){ez(this);dz.prototype.show.call(this)};g.z(Fz,bz);Fz.prototype.onClick=function(a){bz.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.z(Gz,sy);Gz.prototype.init=function(a,b){sy.prototype.init.call(this,a,b,{});if(b!=null&&b.text){var c;if(((c=b.text)==null?0:c.content)&&!g.Qb(b.text.content)){this.j=new g.ry({I:"div",S:"ytp-ad-disclosure-banner__text",va:b.text.content});g.Q(this,this.j);this.j.Ja(this.element);var d;if((d=b.interaction)==null?0:d.onTap)this.B=new g.ry({I:"div",S:"ytp-ad-disclosure-banner__chevron",V:[g.zy()]}),g.Q(this,this.B),this.B.Ja(this.element);this.show()}}else g.Jx(Error("No banner text found in AdDisclosureBanner."))}; Gz.prototype.clear=function(){this.hide()};g.z(Jz,g.ry);Jz.prototype.Sc=function(){var a=this.B.getProgressState();this.progressBar.style.width=Iz(new Hz(a.seekableStart,a.seekableEnd),a.current,0)*100+"%"}; Jz.prototype.onStateChange=function(){g.LP(this.api.U())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.B.subscribe("h",this.Sc,this),this.Sc()):this.j!==-1&&(this.hide(),this.B.Ph(this.j),this.j=-1))};g.z(Kz,sy); Kz.prototype.init=function(a,b,c,d){sy.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.R(c,YH),c=g.R(c,hJ),a?(c=new wz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,this.Y),c.Ja(this.G),c.init(gy("skip-button"),a,this.macros),g.Q(this,c)):c&&(a=new iz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!1),a.Ja(this.G),a.init(gy("ad-preview"),c,this.macros),jz(a),g.Q(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer, c=new lz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.Fa),c.init(gy("instream-user-sentiment"),a,this.macros),g.Q(this,c));if(a=g.R(b,aab))if(a=g.R(a,aab))c=new kz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!!b.showWithoutLinkedMediaLayout),g.Q(this,c),c.Ja(this.C),c.init(gy("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,a==null&&(a={text:{text:"Ad",isTemplated:!1}}), c=new yz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.Q(this,c),c.Ja(this.j),c.init(gy("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,a==null&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new Ez(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d),g.Q(this,d),d.Ja(this.j),d.init(gy("ad-duration-remaining"), a,this.macros));b.adInfoRenderer&&(d=g.R(b.adInfoRenderer,gJ))&&(a=new az(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.Q(this,a),a.Ja(this.j),a.init(gy("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(a=g.R(b.visitAdvertiserRenderer,g.iJ))&&(c=Rsa(this)&&this.D?this.D:this.j)&&(d=new xz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.Q(this,d),d.Ja(c),d.init(gy("visit-advertiser"),a,this.macros),ap(d.element),a=dp(d.element), cp(d.element,a+" This link opens in new tab"));(d=this.api.U())&&!g.JP(d)&&d.controlsType=="3"&&(d=new Jz(this.api,this.B),d.Ja(this.Na),g.Q(this,d));b.adDisclosureBannerRenderer&&(b=g.R(b.adDisclosureBannerRenderer,mab))&&(d=new Gz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),d.Ja(this.ra),d.init(gy("ad-disclosure-banner"),b),g.Q(this,d));this.api.U().L("enable_updated_html5_player_focus_style")&&g.np(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()}; Kz.prototype.clear=function(){this.hide()};Oz.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.j.set(a,b,c)}; Oz.prototype.get=function(a){return this.j.get(a)}; Oz.prototype.remove=function(a){this.j.remove(a)};var jA=null,kA=null,lA=null,$sa=null;g.Ma("yt.www.ads.eventcache.getLastCompanionData",function(){return jA}); g.Ma("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Ma("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return kA}); g.Ma("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return lA}); g.Ma("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return $sa});var bta=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);mA.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=((c=b.Zp.context)==null?void 0:(d=c.request)==null?void 0:d.consistencyTokenJars)||[];var e;(a=(e=a.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(b,a)}; mA.prototype.replace=function(a,b){a=g.v(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];dta(this,b)};var nbb=window.location.hostname.split(".").slice(-2).join("."),G1;oA.getInstance=function(){G1=g.Pa("yt.clientLocationService.instance");G1||(G1=new oA,g.Ma("yt.clientLocationService.instance",G1));return G1}; g.k=oA.prototype; g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.j)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.j.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.j.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.C||this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.C|| this.locationPlayabilityToken}; g.k.handleResponse=function(a){var b;a=(b=a.responseContext)==null?void 0:b.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.j=void 0,g.Lr("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=nA(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.As("YT_CL",JSON.stringify({loctok:a}),15552E3,nbb,!0))}; g.k.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=nA(this))&&this.localStorage.remove("yt-location-playability-token"):g.Cs("YT_CL");this.C=void 0;this.B!==-1&&(clearTimeout(this.B),this.B=-1)}; g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.Lr("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b, maximumAge:0,timeout:c})})}; g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b}; g.k.createLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);return b};g.k=ita.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.Vn=function(){return Object.keys(this.j)}; g.k.remove=function(a){delete this.j[a]};qA.prototype.getModuleId=function(a){return a.serviceId.getModuleId()}; qA.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=Pd(b)}}return a}; qA.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a}; new qA;var H1={},jta=(H1.WEB_UNPLUGGED="^unplugged/",H1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",H1.WEB_UNPLUGGED_OPS="^unplugged/",H1.WEB_UNPLUGGED_PUBLIC="^unplugged/",H1.WEB_CREATOR="^creator/",H1.WEB_KIDS="^kids/",H1.WEB_EXPERIMENTS="^experiments/",H1.WEB_MUSIC="^music/",H1.WEB_REMIX="^music/",H1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",H1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",H1);tA.prototype.G=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?mv:c;var d={context:g.pA(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.sA(this.C());(e=(f=g.R(a.commandMetadata,g.y1))==null?void 0:f.apiUrl)&&(b=e);f=Sma(Ds(b));a=Object.assign({},{command:a},void 0);d={input:f,ov:Es(f),Zp:d,config:a};d.config.Ew?d.config.Ew.identity=c:d.config.Ew={identity:c};return d}g.Jx(new g.Mt("Error: Failed to create Request from Command.",a))}; g.fa.Object.defineProperties(tA.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.z(uA,tA);g.z(vA,uA);vA.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",ov:Es("/getDatasyncIdsEndpoint","GET"),Zp:{}}}; vA.prototype.C=function(){return[]}; vA.prototype.B=function(){}; vA.prototype.j=function(){};var obb={},Rta=(obb.GET_DATASYNC_IDS=rA(vA),obb);var I1={},pta=(I1.auto_search="LATENCY_ACTION_AUTO_SEARCH",I1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",I1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",I1["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",I1.app_startup="LATENCY_ACTION_APP_STARTUP",I1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",I1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",I1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",I1["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS", I1["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",I1["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",I1["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",I1["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",I1["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",I1["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",I1["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",I1["asset.metadata"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",I1["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",I1["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",I1["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",I1["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",I1["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",I1["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",I1["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS", I1["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",I1["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",I1["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",I1.browse="LATENCY_ACTION_BROWSE",I1.cast_splash="LATENCY_ACTION_CAST_SPLASH",I1.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",I1.channels="LATENCY_ACTION_CHANNELS",I1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",I1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS", I1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",I1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",I1["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",I1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",I1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",I1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",I1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",I1["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT", I1["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",I1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",I1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",I1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",I1.chips="LATENCY_ACTION_CHIPS",I1.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",I1["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",I1["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT", I1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",I1.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",I1.embed="LATENCY_ACTION_EMBED",I1.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",I1.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",I1.explore="LATENCY_ACTION_EXPLORE",I1.favorites="LATENCY_ACTION_FAVORITES",I1.home="LATENCY_ACTION_HOME",I1.inboarding="LATENCY_ACTION_INBOARDING",I1.library="LATENCY_ACTION_LIBRARY",I1.live= "LATENCY_ACTION_LIVE",I1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",I1.mini_app="LATENCY_ACTION_MINI_APP_PLAY",I1.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",I1.onboarding="LATENCY_ACTION_ONBOARDING",I1.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",I1["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",I1["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",I1["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",I1["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS", I1["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",I1["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",I1["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",I1["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",I1["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",I1["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",I1["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",I1["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING", I1["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",I1["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",I1["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",I1["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",I1["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",I1["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",I1["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",I1["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",I1["owner.videos"]= "LATENCY_ACTION_CREATOR_CMS_VIDEOS",I1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",I1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",I1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",I1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",I1["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",I1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",I1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",I1.prebuffer="LATENCY_ACTION_PREBUFFER", I1.prefetch="LATENCY_ACTION_PREFETCH",I1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",I1.profile_switcher="LATENCY_ACTION_LOGIN",I1.reel_watch="LATENCY_ACTION_REEL_WATCH",I1.results="LATENCY_ACTION_RESULTS",I1["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",I1.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",I1.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",I1.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",I1.search_ui="LATENCY_ACTION_SEARCH_UI",I1.search_suggest= "LATENCY_ACTION_SUGGEST",I1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",I1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",I1.seek="LATENCY_ACTION_PLAYER_SEEK",I1.settings="LATENCY_ACTION_SETTINGS",I1.store="LATENCY_ACTION_STORE",I1.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",I1.tenx="LATENCY_ACTION_TENX",I1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",I1.watch="LATENCY_ACTION_WATCH",I1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",I1["watch,watch7"]="LATENCY_ACTION_WATCH", I1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",I1["watch,watch7ad"]="LATENCY_ACTION_WATCH",I1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",I1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",I1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",I1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",I1["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",I1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",I1["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",I1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", I1["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",I1["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",I1["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",I1["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",I1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",I1["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",I1["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",I1["video.translations"]= "LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",I1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",I1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",I1.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",I1.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",I1.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",I1);var V={LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE:269,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COSTREAM_JOIN_FLOW:280,LATENCY_ACTION_COSTREAM_INVITE_FLOW:279, LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER:277,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170, LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158, LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_SHORTS_THUMBNAIL_EDITOR:290,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148, LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95, LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56, LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120, LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_EXTERNAL_GREEN_SCREEN_IMAGE_DOWNLOAD:291,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD:272,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD:271,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD:270,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE:275,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO:274,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO:273, LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA:287,LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO:278,LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD:267,LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET:251,LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING:285,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION:262,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157, LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD:240,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING:264,LATENCY_ACTION_SHORTS_RECOMPOSITION:263,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_CREATION_MODES_START_CREATION:293,LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT:239, LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT:286,LATENCY_ACTION_CREATION_MODES_MODE_SWITCH:236,LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235,LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE:250,LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242,LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102, LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL:238,LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39, LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY:292,LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD:289,LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS:288,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219, LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176, LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST:265,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202,LATENCY_ACTION_CREATOR_CMS_REPORTS:201, LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES:252,LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES:261,LATENCY_ACTION_CREATOR_CMS_CHANNELS:196, LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY:253,LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES:254,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207,LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY:282, LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA:258,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS:260,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS:259,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS:257,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY:256,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP:255,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211, LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49, LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54, LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_PLAYLIST_AGGREGATION:266,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8, LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_NETWORK_INSTRUMENTATION:281,LATENCY_ACTION_IMAGE_LOAD:268,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_INFRASTRUCTURE_CONTAINER:276,LATENCY_ACTION_INBOARDING:284,LATENCY_ACTION_FAVORITES:283,LATENCY_ACTION_INLINE_TO_WATCH:232, LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187,LATENCY_ACTION_UNKNOWN:0};V[V.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE"; V[V.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";V[V.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";V[V.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";V[V.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";V[V.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";V[V.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR"; V[V.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";V[V.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";V[V.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";V[V.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";V[V.LATENCY_ACTION_COSTREAM_JOIN_FLOW]="LATENCY_ACTION_COSTREAM_JOIN_FLOW";V[V.LATENCY_ACTION_COSTREAM_INVITE_FLOW]="LATENCY_ACTION_COSTREAM_INVITE_FLOW";V[V.LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER]="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER"; V[V.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";V[V.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";V[V.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";V[V.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";V[V.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";V[V.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";V[V.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC"; V[V.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";V[V.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";V[V.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";V[V.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";V[V.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC"; V[V.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";V[V.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";V[V.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";V[V.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";V[V.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";V[V.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC"; V[V.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";V[V.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";V[V.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";V[V.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";V[V.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";V[V.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC"; V[V.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";V[V.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";V[V.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";V[V.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";V[V.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";V[V.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";V[V.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW"; V[V.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";V[V.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";V[V.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";V[V.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";V[V.LATENCY_ACTION_SHORTS_THUMBNAIL_EDITOR]="LATENCY_ACTION_SHORTS_THUMBNAIL_EDITOR";V[V.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";V[V.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE"; V[V.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";V[V.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";V[V.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";V[V.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";V[V.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";V[V.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE"; V[V.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";V[V.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";V[V.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";V[V.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";V[V.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";V[V.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO"; V[V.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";V[V.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";V[V.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";V[V.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";V[V.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";V[V.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";V[V.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH"; V[V.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";V[V.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";V[V.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";V[V.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";V[V.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";V[V.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE"; V[V.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";V[V.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";V[V.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";V[V.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";V[V.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";V[V.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";V[V.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT"; V[V.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";V[V.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";V[V.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";V[V.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";V[V.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";V[V.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";V[V.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER"; V[V.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";V[V.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";V[V.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";V[V.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";V[V.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";V[V.LATENCY_ACTION_EXTERNAL_GREEN_SCREEN_IMAGE_DOWNLOAD]="LATENCY_ACTION_EXTERNAL_GREEN_SCREEN_IMAGE_DOWNLOAD"; V[V.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD";V[V.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD";V[V.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD";V[V.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE"; V[V.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO";V[V.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO";V[V.LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA]="LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA";V[V.LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO]="LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO";V[V.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD"; V[V.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";V[V.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";V[V.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";V[V.LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING]="LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING";V[V.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";V[V.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER"; V[V.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION";V[V.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";V[V.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";V[V.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";V[V.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD"; V[V.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";V[V.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";V[V.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";V[V.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";V[V.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";V[V.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM"; V[V.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";V[V.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";V[V.LATENCY_ACTION_CREATION_MODES_START_CREATION]="LATENCY_ACTION_CREATION_MODES_START_CREATION";V[V.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";V[V.LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT]="LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT";V[V.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH"; V[V.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";V[V.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";V[V.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";V[V.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE";V[V.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";V[V.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT"; V[V.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";V[V.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";V[V.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";V[V.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";V[V.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";V[V.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL"; V[V.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";V[V.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";V[V.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";V[V.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";V[V.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";V[V.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE"; V[V.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";V[V.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";V[V.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";V[V.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";V[V.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";V[V.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";V[V.LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY]="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY";V[V.LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD]="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD"; V[V.LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS]="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS";V[V.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";V[V.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";V[V.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";V[V.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";V[V.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING"; V[V.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";V[V.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";V[V.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";V[V.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";V[V.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";V[V.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY"; V[V.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";V[V.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";V[V.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";V[V.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";V[V.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";V[V.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT"; V[V.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";V[V.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";V[V.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";V[V.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";V[V.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";V[V.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST"; V[V.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";V[V.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";V[V.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";V[V.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";V[V.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST";V[V.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING"; V[V.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";V[V.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";V[V.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";V[V.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";V[V.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";V[V.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES"; V[V.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";V[V.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";V[V.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";V[V.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";V[V.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";V[V.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES"; V[V.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";V[V.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";V[V.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";V[V.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";V[V.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";V[V.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS"; V[V.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY"; V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY"; V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS"; V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";V[V.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS"; V[V.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";V[V.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";V[V.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";V[V.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";V[V.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";V[V.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS"; V[V.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";V[V.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";V[V.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";V[V.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";V[V.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";V[V.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD"; V[V.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";V[V.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";V[V.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";V[V.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";V[V.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";V[V.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS"; V[V.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";V[V.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";V[V.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";V[V.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";V[V.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";V[V.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD"; V[V.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";V[V.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";V[V.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";V[V.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";V[V.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";V[V.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";V[V.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";V[V.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST"; V[V.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";V[V.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";V[V.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";V[V.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";V[V.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";V[V.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";V[V.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";V[V.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL"; V[V.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";V[V.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";V[V.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";V[V.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";V[V.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";V[V.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";V[V.LATENCY_ACTION_NETWORK_INSTRUMENTATION]="LATENCY_ACTION_NETWORK_INSTRUMENTATION";V[V.LATENCY_ACTION_IMAGE_LOAD]="LATENCY_ACTION_IMAGE_LOAD"; V[V.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";V[V.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";V[V.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";V[V.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";V[V.LATENCY_ACTION_INFRASTRUCTURE_CONTAINER]="LATENCY_ACTION_INFRASTRUCTURE_CONTAINER";V[V.LATENCY_ACTION_INBOARDING]="LATENCY_ACTION_INBOARDING";V[V.LATENCY_ACTION_FAVORITES]="LATENCY_ACTION_FAVORITES"; V[V.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";V[V.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";V[V.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";V[V.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";V[V.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";V[V.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";V[V.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";V[V.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";V[V.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME"; V[V.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";V[V.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";V[V.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";V[V.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";V[V.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var PA={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};PA[PA.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";PA[PA.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI"; PA[PA.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var QA={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};QA[QA.CONN_INVALID]="CONN_INVALID";QA[QA.CONN_WIRED]="CONN_WIRED";QA[QA.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";QA[QA.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA"; QA[QA.CONN_WIFI_METERED]="CONN_WIFI_METERED";QA[QA.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";QA[QA.CONN_DISCO]="CONN_DISCO";QA[QA.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";QA[QA.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";QA[QA.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";QA[QA.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";QA[QA.CONN_WIFI]="CONN_WIFI";QA[QA.CONN_NONE]="CONN_NONE";QA[QA.CONN_UNKNOWN]="CONN_UNKNOWN";QA[QA.CONN_DEFAULT]="CONN_DEFAULT"; var RA={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};RA[RA.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA"; RA[RA.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";RA[RA.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";RA[RA.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";RA[RA.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";RA[RA.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";RA[RA.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN"; RA[RA.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";RA[RA.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";RA[RA.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";RA[RA.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";RA[RA.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";RA[RA.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";RA[RA.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";RA[RA.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B"; RA[RA.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";RA[RA.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";RA[RA.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";RA[RA.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";RA[RA.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";RA[RA.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";RA[RA.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";RA[RA.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA"; RA[RA.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";RA[RA.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";RA[RA.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";RA[RA.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var SA={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}; SA[SA.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";SA[SA.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";SA[SA.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";SA[SA.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";SA[SA.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";SA[SA.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";SA[SA.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";SA[SA.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN"; var TA={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};TA[TA.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";TA[TA.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";TA[TA.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";TA[TA.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var UA={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0}; UA[UA.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";UA[UA.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var VA={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};VA[VA.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";VA[VA.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";VA[VA.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP"; VA[VA.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";VA[VA.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";VA[VA.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var WA={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};WA[WA.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";WA[WA.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";WA[WA.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";WA[WA.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED"; var XA={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};XA[XA.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";XA[XA.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";XA[XA.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var YA={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};YA[YA.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN"; YA[YA.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";YA[YA.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var sta="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo startupEdgeCaseInfo startupInfo renderCounters playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo imageLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo dynamicAssetFetchInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata videoMetadataParsingContext browseEarlyRequested".split(" ");g.z(FA,nv);var Gta=new ov("aft-recorded",FA);var IA=g.La.ytLoggingLatencyUsageStats_||{};g.Ma("ytLoggingLatencyUsageStats_",IA);GA.prototype.tick=function(a,b,c,d){JA(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.ks("web_csi_via_jspb")?(d=new Cr,qh(d,1,a),qh(d,2,b),a=g.ks("jspb_sparse_encoded_pivot")?new Fr([{}]):new Fr,eh(a,Cr,5,vx,d),ux("latencyActionTicked",a,c)):g.bu("latencyActionTicked",{tickName:a,clientActionNonce:b},c))}; GA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");JA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.bu("latencyActionInfo",a,{cttAuthInfo:c}))}; GA.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=this.start&&(a=2&&c.ssdaiAdsConfig&&qz("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!((f=e.renderer)==null?0:(h=f.linearAdSequenceRenderer)==null?0:(l=h.linearAds)==null?0:l.length)||!((m=e.renderer)==null||!m.instreamVideoAdRenderer)})||uva(a)})}; kE.prototype.uO=function(){gva(this.j)};lE.prototype.NE=function(){var a=this;fva(this.j,function(){var b=jD(a.slot.Aa,"metadata_type_ad_break_request_data");return a.B.get().fetch({t3:b.getAdBreakUrl,yX:new g.gE(b.KS,b.JS)})})}; lE.prototype.uO=function(){gva(this.j)};mE.prototype.NE=function(){var a=this.slot.Aa,b,c=(b=this.slot.fulfilledLayout)!=null?b:jD(a,"metadata_type_fulfilled_layout");Lua(this.callback,this.slot,c)}; mE.prototype.uO=function(){wD(this.callback,this.slot,new X("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")};oE.prototype.build=function(a,b){return b.fulfilledLayout||nE(b,{Ld:["metadata_type_fulfilled_layout"]})?new mE(a,b):this.C(a,b)};g.z(pE,oE); pE.prototype.C=function(a,b){if(nE(b,{Ld:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new kE(a,b,this.j,this.B,this.Me,this.Ba,this.Oa,this.Ha,this.Fc);if(nE(b,{Ld:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new lE(a,b,this.j,this.B,this.Me,this.Ba);throw new X("Unsupported slot with type: "+b.slotType+" and client metadata: "+kD(b.Aa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.z(qE,oE);qE.prototype.C=function(a,b){throw new X("Unsupported slot with type: "+b.slotType+" and client metadata: "+kD(b.Aa)+" in DefaultFulfillmentAdapterFactory.");};g.k=vva.prototype;g.k.ac=function(){return this.slot}; g.k.Za=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.sf(this.slot,a,new hD("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=jD(a.Aa,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.wc(this.slot,a),Cya(this.B,this.slot, b)):qz("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}}; g.k.Id=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new hD("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.Mc(this.slot,a,b),xva(this))};g.z(vE,g.iy);g.k=vE.prototype;g.k.ac=function(){return this.B.slot}; g.k.Za=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.gQ=function(){}; g.k.eQ=function(){}; g.k.dQ=function(){}; g.k.eK=function(){}; g.k.startRendering=function(a){var b=this;uE(this.B,a,function(){return void b.tM()})}; g.k.tM=function(){this.C.get().tM(this.j)}; g.k.Id=function(a,b){var c=this;uE(this.B,a,function(){var d=c.C.get();P7a(d,c.j,3);c.j=[];c.callback.Mc(c.slot,a,b)})}; g.k.xa=function(){this.C.Ma()||this.C.get().removeListener(this);g.iy.prototype.xa.call(this)}; g.fa.Object.defineProperties(vE.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});CE.prototype.Oh=function(a,b){b=b===void 0?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&Ava(a)){var d=this.C.get(b);d&&c.push.apply(c,g.w(d))}FE(this,a,c);this.j.add(a);b&&this.j.add(b)}; CE.prototype.Yb=function(a,b){b=b===void 0?!1:b;if(!this.j.has(a)){var c=b&&Ava(a);c&&(b=!this.j.has(c));this.Oh(a,b)}};g.z(Dva,hy);g.z(KE,vE);g.k=KE.prototype;g.k.hg=function(a,b){yE("ads-engagement-panel-layout",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.ac(),this.Za(),b)}; g.k.startRendering=function(a){xE(this.eb,this.ac(),this.Za(),g.R(this.Za().renderingContent,SI),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new Dva(b,c,d,e,f)},this.j); vE.prototype.startRendering.call(this,a)}; g.k.wc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Hi():qz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){uD(this.uc(),this);vE.prototype.xa.call(this)};g.z(Fva,hy);g.z(LE,vE);g.k=LE.prototype;g.k.hg=function(a,b){yE("banner-image",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.ac(),this.Za(),b)}; g.k.startRendering=function(a){xE(this.eb,this.ac(),this.Za(),g.R(this.Za().renderingContent,QI),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new Fva(b,c,d,e,f)},this.j); vE.prototype.startRendering.call(this,a)}; g.k.wc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Hi():qz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){uD(this.uc(),this);vE.prototype.xa.call(this)};g.z(ME,hy);g.z(NE,vE);g.k=NE.prototype;g.k.hg=function(a,b){yE("action-companion",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.ac(),this.Za(),b)}; g.k.startRendering=function(a){xE(this.eb,this.ac(),this.Za(),g.R(this.Za().renderingContent,NI),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new ME(b,c,d,e,f)},this.j); vE.prototype.startRendering.call(this,a)}; g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Yb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Hi():qz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){uD(this.uc(),this);vE.prototype.xa.call(this)};g.z(Iva,hy);g.z(OE,vE);g.k=OE.prototype;g.k.hg=function(a,b){yE("image-companion",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.ac(),this.Za(),b)}; g.k.startRendering=function(a){xE(this.eb,this.ac(),this.Za(),g.R(this.Za().renderingContent,OI),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new Iva(b,c,d,e,f)},this.j); vE.prototype.startRendering.call(this,a)}; g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Yb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Hi():qz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){uD(this.uc(),this);vE.prototype.xa.call(this)};g.z(Kva,hy);g.z(PE,vE);g.k=PE.prototype;g.k.hg=function(a,b){yE("shopping-companion",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.ac(),this.Za(),b)}; g.k.startRendering=function(a){xE(this.eb,this.ac(),this.Za(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new Kva(b,c,d,e,f)},this.j); vE.prototype.startRendering.call(this,a)}; g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Yb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Hi():qz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){uD(this.uc(),this);vE.prototype.xa.call(this)};g.z(QE,vE);g.k=QE.prototype;g.k.startRendering=function(a){xE(this.eb,this.ac(),this.Za(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new ME(b,c,d,e,f)},this.j); vE.prototype.startRendering.call(this,a)}; g.k.wc=function(){}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){uD(this.uc(),this);vE.prototype.xa.call(this)}; g.k.hg=function(){};g.k=Rva.prototype;g.k.ac=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().qE.push(this);var a=jD(this.layout.Aa,"metadata_type_video_length_seconds"),b=jD(this.layout.Aa,"metadata_type_active_view_traffic_type");zE(this.layout.Cb)&&p0(this.yb.get(),this.layout.layoutId,{zt:b,aI:a,listener:this})}; g.k.release=function(){this.Ha.get().removeListener(this);J7a(this.Ha.get(),this);zE(this.layout.Cb)&&q0(this.yb.get(),this.layout.layoutId)}; g.k.startRendering=function(a){this.callback.wc(this.slot,a)}; g.k.Id=function(a,b){j7a(this.Ba.get())&&!this.j&&(this.eb.Yb("abandon"),this.j=!0);this.callback.Mc(this.slot,a,b)}; g.k.Cj=function(a){switch(a.id){case "part2viewed":this.eb.Yb("start");this.eb.Yb("impression");break;case "videoplaytime25":this.eb.Yb("first_quartile");break;case "videoplaytime50":this.eb.Yb("midpoint");break;case "videoplaytime75":this.eb.Yb("third_quartile");break;case "videoplaytime100":j7a(this.Ba.get())?this.j||(this.eb.Yb("complete"),this.j=!0):this.eb.Yb("complete");JE(this.eb)&&HE(this.eb,Infinity,!0);break;case "engagedview":JE(this.eb)||this.eb.Yb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:qz("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.k.onVolumeChange=function(){}; g.k.aj=function(){}; g.k.nh=function(){}; g.k.Dj=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Bg=function(){}; g.k.Li=function(){}; g.k.ER=function(a){JE(this.eb)&&HE(this.eb,a*1E3,!1)}; g.k.Fj=function(){}; g.k.Wx=function(){this.eb.Yb("active_view_measurable")}; g.k.Xx=function(){this.eb.Yb("active_view_viewable")}; g.k.Vx=function(){this.eb.Yb("active_view_fully_viewable_audible_half_duration")}; g.k.Ux=function(){this.eb.Yb("audio_measurable")}; g.k.Tx=function(){this.eb.Yb("audio_audible")};g.z(RE,vE);g.k=RE.prototype;g.k.init=function(){vE.prototype.init.call(this);var a=jD(this.layout.Aa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Wb};this.j.push(new zz(a,this.layout.layoutId,jD(this.layout.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))}; g.k.mq=function(){this.D||this.Ha.get().resumeVideo(1)}; g.k.startRendering=function(a){vE.prototype.startRendering.call(this,a);x0(this.Ha.get(),"ad-showing");this.callback.wc(this.slot,a);this.G.xt=this}; g.k.Id=function(a,b){vE.prototype.Id.call(this,a,b);y0(this.Ha.get(),"ad-showing");b1(this.G,this)}; g.k.hg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ha.get().Bo(1))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo()}}; g.k.xa=function(){vE.prototype.xa.call(this)};g.z(SE,hy);g.z(TE,vE);g.k=TE.prototype;g.k.startRendering=function(a){xE(this.eb,this.ac(),this.Za(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new SE(b,c,d,e,f)},this.j); vE.prototype.startRendering.call(this,a)}; g.k.wc=function(){}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){uD(this.uc(),this);vE.prototype.xa.call(this)}; g.k.hg=function(){};g.z(UE,hy);g.z(VE,vE);VE.prototype.init=function(){vE.prototype.init.call(this);var a=g.R(this.layout.renderingContent,iF)||jD(this.layout.Aa,"metadata_type_ad_action_interstitial_renderer"),b=wE(this.eb);this.j.push(new UE(a,b,this.layout.layoutId,{adsClientData:this.layout.Wb},!0,!0))}; VE.prototype.startRendering=function(a){vE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)}; VE.prototype.hg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=(c=jD(this.layout.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&a.rL(this.ac(),this.layout)}}; VE.prototype.xa=function(){vE.prototype.xa.call(this)};XE.prototype.build=function(a,b,c,d){if(WE(d,{Ld:["metadata_type_ad_break_response_data"],He:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new vva(a,c,d,this.B,this.C,this.j);throw new hD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kD(d.Aa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.z(Uva,hy);g.z(YE,vE);g.k=YE.prototype;g.k.hg=function(a,b){yE("ads-engagement-panel",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.ac(),this.Za(),b)}; g.k.startRendering=function(a){xE(this.eb,this.ac(),this.Za(),g.R(this.Za().renderingContent,PI),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new Uva(b,c,d,e,f)},this.j); vE.prototype.startRendering.call(this,a)}; g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Yb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Hi():qz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){uD(this.uc(),this);vE.prototype.xa.call(this)};g.z(ZE,vE);g.k=ZE.prototype;g.k.hg=function(a,b){yE("top-banner-image-text-icon-buttoned",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.ac(),this.Za(),b)}; g.k.startRendering=function(a){xE(this.eb,this.ac(),this.Za(),g.R(this.Za().renderingContent,RI),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new SE(b,c,d,e,f)},this.j); vE.prototype.startRendering.call(this,a)}; g.k.wc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Hi():qz("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){uD(this.uc(),this);vE.prototype.xa.call(this)};Xva.prototype.build=function(a,b,c,d){if(WE(d,Vva())||g.R(d.renderingContent,PI)!==void 0)return new YE(a,c,d,this.Cc,this.Oa,this.uc,this.yb,this.j);if(WE(d,Hva())||g.R(d.renderingContent,NI)!==void 0)return new NE(a,c,d,this.Cc,this.Oa,this.uc,this.yb,this.j);if(WE(d,Jva())||g.R(d.renderingContent,OI)!==void 0)return new OE(a,c,d,this.Cc,this.Oa,this.uc,this.yb,this.j);if(WE(d,Lva()))return new PE(a,c,d,this.Cc,this.Oa,this.uc,this.yb,this.j);if(WE(d,Qva()))return new QE(a,c,d,this.Cc,this.Oa,this.uc, this.yb,this.j);if(WE(d,Gva())||g.R(d.renderingContent,QI)!==void 0)return new LE(a,c,d,this.Cc,this.Oa,this.uc,this.yb,this.j);if(WE(d,Wva())||g.R(d.renderingContent,RI)!==void 0)return new ZE(a,c,d,this.Cc,this.Oa,this.uc,this.yb,this.j);if(WE(d,Sva()))return new TE(a,c,d,this.Cc,this.Oa,this.uc,this.yb,this.j);if(WE(d,Eva())||g.R(d.renderingContent,SI)!==void 0)return new KE(a,c,d,this.Cc,this.Oa,this.uc,this.yb,this.j);throw new hD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ kD(d.Aa)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.z($E,hy);g.z(aF,vE);aF.prototype.init=function(){vE.prototype.init.call(this);var a=jD(this.layout.Aa,"metadata_type_player_underlay_renderer");this.j.push(new $E(g.R(a,bab),this.layout.layoutId,{adsClientData:this.layout.Wb}))}; aF.prototype.hg=function(){}; aF.prototype.startRendering=function(a){vE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)}; aF.prototype.xa=function(){vE.prototype.xa.call(this)};Yva.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.v(DE()),f=e.next();!f.done;f=e.next())b.push(f.value);if(WE(d,{Ld:b,He:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new aF(a,c,d,this.Cc);throw new hD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kD(d.Aa)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=Zva.prototype;g.k.ac=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new hD("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.wc(this.slot,a),this.eb.Yb("impression"),LH(this.ji,a,"normal"))}; g.k.Id=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new hD("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.Mc(this.slot,a,b)};g.k=awa.prototype;g.k.ac=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new hD("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.wc(this.slot,a),this.eb.Yb("impression"),LH(this.ji,a,"normal"))}; g.k.Id=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.sf(this.slot,a,new hD("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.Mc(this.slot,a,b)};bF.prototype.build=function(a,b,c,d){if(!this.Ba.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(WE(d,$va()))return new Zva(a,c,d,this.Oa,this.ji)}else if(WE(d,{Ld:[],He:["LAYOUT_TYPE_FORECASTING"]}))return new awa(a,c,d,this.Oa,this.ji);throw new hD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kD(d.Aa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.z(dwa,hy);g.z(cF,vE);g.k=cF.prototype;g.k.init=function(){vE.prototype.init.call(this);var a=g.R(this.layout.renderingContent,hF)||jD(this.layout.Aa,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.Wb};this.j.push(new dwa(a,jD(this.layout.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))}; g.k.mq=function(){this.D||this.Ha.get().resumeVideo(2)}; g.k.startRendering=function(a){vE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.G.xt=this}; g.k.Id=function(a,b){vE.prototype.Id.call(this,a,b);b1(this.G,this)}; g.k.hg=function(a){if($J(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().Bo(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser-link":this.Ha.get().pauseVideo();ewa(this).YL();break; case "skip-button":if(a=ewa(this),!this.layout.renderingContent&&a.xK)qz("Requesting to skip by LegacyPlayerBytes when components enabled"),a.iy(this.ac(),this.layout);else{var b;(a=(b=jD(this.layout.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.rL(this.ac(),this.layout)}}}; g.k.xa=function(){vE.prototype.xa.call(this)};g.z(dF,vE);g.k=dF.prototype;g.k.init=function(){vE.prototype.init.call(this);var a=g.R(this.layout.renderingContent,gF)||jD(this.layout.Aa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Wb},c;(c=!!this.layout.renderingContent)||(c=!eF(this).xK);this.j.push(new zz(a,this.layout.layoutId,jD(this.layout.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))}; g.k.mq=function(){this.D||this.Ha.get().resumeVideo(2)}; g.k.startRendering=function(a){vE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.G.xt=this}; g.k.Id=function(a,b){vE.prototype.Id.call(this,a,b);b1(this.G,this)}; g.k.hg=function(a){if($J(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().Bo(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();eF(this).YL();break;case "skip-button":if(a= eF(this),!this.layout.renderingContent&&a.xK)qz("Requesting to skip by LegacyPlayerBytes"),a.iy(this.ac(),this.layout);else{var b;(a=(b=jD(this.layout.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.rL(this.ac(),this.layout)}}}; g.k.xa=function(){vE.prototype.xa.call(this)};g.z(gwa,hy);g.z(fF,vE);g.k=fF.prototype;g.k.startRendering=function(a){var b=this;uE(this.B,a,function(){b.j.push(new gwa(jD(b.layout.Aa,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Wb));b.tM();b.callback.wc(b.slot,a);g.U(o0(b.Ha.get(),1),512)&&b.callback.sf(b.ac(),b.Za(),new hD("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.k.Li=function(){}; g.k.Bg=function(a){if(a.state.isError()){var b;this.callback.sf(this.ac(),this.Za(),new hD("A player error happened during adNotify",{playerErrorCode:(b=a.state.eh)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.k.onFullscreenToggled=function(){}; g.k.nh=function(){}; g.k.Dj=function(){}; g.k.aj=function(){}; g.k.onVolumeChange=function(){}; g.k.Cj=function(){}; g.k.Fj=function(){}; g.k.hg=function(){};iwa.prototype.build=function(a,b,c,d){if(a=jF(a,c,d,this.Cc,this.Ha,this.Oa,this.B,this.j,this.Ba))return a;throw new hD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kD(d.Aa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=jwa.prototype;g.k.ac=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().qE.push(this);var a=jD(this.layout.Aa,"metadata_type_video_length_seconds"),b=jD(this.layout.Aa,"metadata_type_active_view_traffic_type"),c=jD(this.layout.Aa,"metadata_type_active_view_identifier");zE(this.layout.Cb)&&p0(this.yb.get(),this.layout.layoutId,{zt:b,aI:a,listener:this,O6:c})}; g.k.release=function(){this.Ha.get().removeListener(this);J7a(this.Ha.get(),this);zE(this.layout.Cb)&&q0(this.yb.get(),this.layout.layoutId)}; g.k.startRendering=function(a){this.callback.wc(this.slot,a)}; g.k.Id=function(a,b){mF(this,"abandon");this.callback.Mc(this.slot,a,b)}; g.k.Cj=function(a){switch(a.id){case "part2viewed":this.eb.Yb("start");this.eb.Yb("impression");break;case "videoplaytime25":this.eb.Yb("first_quartile");break;case "videoplaytime50":this.eb.Yb("midpoint");break;case "videoplaytime75":this.eb.Yb("third_quartile");break;case "videoplaytime100":mF(this,"complete");JE(this.eb)&&HE(this.eb,Infinity,!0);break;case "engagedview":JE(this.eb)||this.eb.Yb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:qz("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.k.onVolumeChange=function(){}; g.k.aj=function(){}; g.k.nh=function(){}; g.k.Dj=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Bg=function(a){this.j||(g.tz(a,4)&&!g.tz(a,2)?GE(this.eb,"pause"):sz(a,4)<0&&!(sz(a,2)<0)&&GE(this.eb,"resume"))}; g.k.Li=function(){}; g.k.ER=function(a){JE(this.eb)&&HE(this.eb,a*1E3,!1)}; g.k.Fj=function(){mF(this,"swipe")}; g.k.Wx=function(){this.eb.Yb("active_view_measurable")}; g.k.Xx=function(){this.eb.Yb("active_view_viewable")}; g.k.Vx=function(){this.eb.Yb("active_view_fully_viewable_audible_half_duration")}; g.k.Ux=function(){this.eb.Yb("audio_measurable")}; g.k.Tx=function(){this.eb.Yb("audio_audible")};kwa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.v(DE()),f=e.next();!f.done;f=e.next())b.push(f.value);if(WE(d,{Ld:b,He:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new jwa(a,c,d,this.Ha,this.Oa,this.Ba,this.yb):new Rva(a,c,d,this.Ha,this.Oa,this.Ba,this.yb);throw new hD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kD(d.Aa)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); };var qF={contentCpn:"",Gt:new Map};swa.prototype.Dl=function(a,b){var c={};b=Object.assign({},b,(c.cc=this.Jf.Dm(),c));pF(this.Jf,a,b)};var tbb,L1,twa; tbb={yfa:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Sfa:"AUTHENTICATION_MALFORMED",Tfa:"AUTHENTICATION_MISSING",Vfa:"BAD_REQUEST",dga:"CAST_SESSION_DEVICE_MISMATCHED",ega:"CAST_SESSION_VIDEO_MISMATCHED",fga:"CAST_TOKEN_EXPIRED",gga:"CAST_TOKEN_FAILED",hga:"CAST_TOKEN_MALFORMED",iga:"CGI_PARAMS_MALFORMED",jga:"CGI_PARAMS_MISSING",Kga:"DEVICE_FALLBACK",eha:"GENERIC_WITH_LINK_AND_CPN",fha:"ERROR_HDCP",gha:"LICENSE",iha:"VIDEO_UNAVAILABLE",pha:"FORMAT_UNAVAILABLE",uha:"GEO_FAILURE", Lha:"HTML5_AUDIO_RENDERER_ERROR",Mha:"GENERIC_WITHOUT_LINK",Nha:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Oha:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Pha:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Qha:"HTML5_SPS_UMP_STATUS_REJECTED",xia:"INVALID_DRM_MESSAGE",hka:"PURCHASE_NOT_FOUND",ika:"PURCHASE_REFUNDED",pka:"RENTAL_EXPIRED",vka:"RETRYABLE_ERROR",Dka:"SERVER_ERROR",Lka:"SIGNATURE_EXPIRED",Ska:"STOPPED_BY_ANOTHER_PLAYBACK",Tka:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Uka:"STREAMING_NOT_ALLOWED", Vka:"STREAM_LICENSE_NOT_FOUND",fla:"TOO_MANY_REQUESTS",gla:"TOO_MANY_REQUESTS_WITH_LINK",hla:"TOO_MANY_STREAMS_PER_ENTITLEMENT",ila:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Ela:"VIDEO_FORBIDDEN",Fla:"VIDEO_NOT_FOUND",Yfa:"BROWSER_OR_EXTENSION_ERROR"};L1={}; g.OU=(L1.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",L1.DEVICE_FALLBACK="Sorry, this video is not available on this device.",L1.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",L1.LICENSE="Sorry, there was an error licensing this video.",L1.VIDEO_UNAVAILABLE= "Video unavailable",L1.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",L1.GEO_FAILURE="This video isn't available in your country.",L1.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",L1.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",L1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",L1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", L1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",L1.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",L1.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",L1.PURCHASE_NOT_FOUND="This video requires payment.",L1.PURCHASE_REFUNDED="This video's purchase has been refunded.",L1.RENTAL_EXPIRED="This video's rental has expired.",L1.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",L1.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",L1.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",L1.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",L1.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",L1.SERVER_ERROR="There was an internal server error. Please try again later.",L1.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",L1.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",L1.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",L1.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",L1.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",L1.TOO_MANY_REQUESTS="Please log in to watch this video.", L1.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",L1.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",L1.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",L1.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",L1.VIDEO_FORBIDDEN="Access to this video is forbidden.",L1.VIDEO_NOT_FOUND="This video can not be found.",L1.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",L1); twa={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 ubb;var vbb=g.Zb(),wbb=vbb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!wbb||wbb.length<2)ubb=void 0;else{var xbb=vbb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);ubb=xbb&&xbb.length===6?Number(xbb[5].replace("_",".")):0}var YQ=ubb,JU=YQ>=0;g.z(g.EF,rt);g.EF.prototype.T=function(a,b,c,d,e){return rt.prototype.T.call(this,a,b,c,d,e)};var M1={},yO=(M1.FAIRPLAY="fairplay",M1.PLAYREADY="playready",M1.WIDEVINE="widevine",M1.CLEARKEY=null,M1.FLASHACCESS=null,M1.UNKNOWN=null,M1.WIDEVINE_CLASSIC=null,M1);FF.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var N1={},FM=(N1.WIDTH={name:"width",video:!0,valid:640,qo:99999},N1.HEIGHT={name:"height",video:!0,valid:360,qo:99999},N1.FRAMERATE={name:"framerate",video:!0,valid:30,qo:9999},N1.BITRATE={name:"bitrate",video:!0,valid:3E5,qo:2E9},N1.EOTF={name:"eotf",video:!0,valid:"bt709",qo:"catavision"},N1.CHANNELS={name:"channels",video:!1,valid:2,qo:99},N1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",qo:"invalidformat"},N1.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", qo:"nope"},N1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",qo:"av99.0.05M.08"},N1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",qo:"invalid"},N1);var ybb=["h","H"],zbb=["9","("],Abb=["9h","(h"],Bbb=["8","*"],Cbb=["a","A"],Dbb=["o","O"],Ebb=["m","M"],Fbb=["mac3","MAC3"],Gbb=["meac3","MEAC3"],O1={},HIa=(O1.h=ybb,O1.H=ybb,O1["9"]=zbb,O1["("]=zbb,O1["9h"]=Abb,O1["(h"]=Abb,O1["8"]=Bbb,O1["*"]=Bbb,O1.a=Cbb,O1.A=Cbb,O1.o=Dbb,O1.O=Dbb,O1.m=Ebb,O1.M=Ebb,O1.mac3=Fbb,O1.MAC3=Fbb,O1.meac3=Gbb,O1.MEAC3=Gbb,O1),Hbb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),qDa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var P1={},LF=(P1["0"]="f",P1["160"]="h",P1["133"]="h",P1["134"]="h",P1["135"]="h",P1["136"]="h",P1["137"]="h",P1["264"]="h",P1["266"]="h",P1["138"]="h",P1["298"]="h",P1["299"]="h",P1["304"]="h",P1["305"]="h",P1["214"]="h",P1["216"]="h",P1["374"]="h",P1["375"]="h",P1["140"]="a",P1["141"]="ah",P1["327"]="sa",P1["258"]="m",P1["380"]="mac3",P1["328"]="meac3",P1["161"]="H",P1["142"]="H",P1["143"]="H",P1["144"]="H",P1["222"]="H",P1["223"]="H",P1["145"]="H",P1["224"]="H",P1["225"]="H",P1["146"]="H",P1["226"]= "H",P1["227"]="H",P1["147"]="H",P1["384"]="H",P1["376"]="H",P1["385"]="H",P1["377"]="H",P1["149"]="A",P1["261"]="M",P1["381"]="MAC3",P1["329"]="MEAC3",P1["598"]="9",P1["278"]="9",P1["242"]="9",P1["243"]="9",P1["244"]="9",P1["775"]="9",P1["776"]="9",P1["777"]="9",P1["778"]="9",P1["779"]="9",P1["780"]="9",P1["781"]="9",P1["782"]="9",P1["783"]="9",P1["247"]="9",P1["248"]="9",P1["353"]="9",P1["355"]="9",P1["356"]="9",P1["271"]="9",P1["577"]="9",P1["313"]="9",P1["579"]="9",P1["272"]="9",P1["302"]="9", P1["303"]="9",P1["407"]="9",P1["408"]="9",P1["308"]="9",P1["315"]="9",P1["330"]="9h",P1["331"]="9h",P1["332"]="9h",P1["333"]="9h",P1["334"]="9h",P1["335"]="9h",P1["336"]="9h",P1["337"]="9h",P1["338"]="so",P1["600"]="o",P1["250"]="o",P1["251"]="o",P1["194"]="*",P1["195"]="*",P1["220"]="*",P1["221"]="*",P1["196"]="*",P1["197"]="*",P1["279"]="(",P1["280"]="(",P1["317"]="(",P1["318"]="(",P1["273"]="(",P1["274"]="(",P1["357"]="(",P1["358"]="(",P1["275"]="(",P1["359"]="(",P1["360"]="(",P1["276"]="(",P1["583"]= "(",P1["584"]="(",P1["314"]="(",P1["585"]="(",P1["561"]="(",P1["277"]="(",P1["361"]="(h",P1["362"]="(h",P1["363"]="(h",P1["364"]="(h",P1["365"]="(h",P1["366"]="(h",P1["591"]="(h",P1["592"]="(h",P1["367"]="(h",P1["586"]="(h",P1["587"]="(h",P1["368"]="(h",P1["588"]="(h",P1["562"]="(h",P1["409"]="(",P1["410"]="(",P1["411"]="(",P1["412"]="(",P1["557"]="(",P1["558"]="(",P1["394"]="1",P1["395"]="1",P1["396"]="1",P1["397"]="1",P1["787"]="1",P1["788"]="1",P1["398"]="1",P1["399"]="1",P1["400"]="1",P1["401"]= "1",P1["571"]="1",P1["402"]="1",P1["694"]="1h",P1["695"]="1h",P1["696"]="1h",P1["697"]="1h",P1["698"]="1h",P1["699"]="1h",P1["700"]="1h",P1["701"]="1h",P1["702"]="1h",P1["703"]="1h",P1["386"]="3",P1["387"]="w",P1["406"]="6",P1["645"]="(",P1["646"]="(",P1["647"]="(",P1["648"]="(",P1["649"]="(",P1["650"]="(",P1["651"]="(",P1["652"]="(",P1["653"]="(",P1["654"]="(",P1["655"]="(",P1["656"]="(",P1["657"]="(",P1["658"]="(",P1["659"]="(",P1["660"]="(",P1["661"]="(",P1["662"]="(",P1["663"]="(",P1["664"]="(", P1["665"]="(",P1["666"]="(",P1["667"]="(",P1["668"]="(",P1["669"]="(",P1["670"]="(",P1["671"]="(",P1["672"]="(",P1["673"]="(",P1["674"]="(h",P1["675"]="(h",P1["676"]="(h",P1["677"]="(h",P1["678"]="(h",P1["679"]="(h",P1["680"]="(h",P1["681"]="(h",P1["682"]="(h",P1["683"]="(h",P1["684"]="(h",P1["685"]="(h",P1["686"]="(h",P1["687"]="(h",P1["688"]="A",P1["689"]="A",P1["690"]="A",P1["691"]="MEAC3",P1["773"]="i",P1);var Q1={},rGa=(Q1.STEREO_LAYOUT_UNKNOWN=0,Q1.STEREO_LAYOUT_LEFT_RIGHT=1,Q1.STEREO_LAYOUT_TOP_BOTTOM=2,Q1);var R1,rM;R1={};g.HF=(R1.auto=0,R1.tiny=144,R1.light=144,R1.small=240,R1.medium=360,R1.large=480,R1.hd720=720,R1.hd1080=1080,R1.hd1440=1440,R1.hd2160=2160,R1.hd2880=2880,R1.highres=4320,R1);rM={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var JF="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");IF.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};MF.prototype.Le=function(){return this.containerType===2}; MF.prototype.isEncrypted=function(){return!!this.me}; MF.prototype.Fh=function(){return!!this.audio}; MF.prototype.zg=function(){return!!this.video};g.z(iG,g.iy);g.k=iG.prototype;g.k.appendBuffer=function(a,b,c){if(this.Hd.SE()!==this.appendWindowStart+this.start||this.Hd.EJ()!==this.appendWindowEnd+this.start||this.Hd.Ec()!==this.timestampOffset+this.start)this.Hd.supports(1),this.Hd.lT(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Hd.Kq(this.timestampOffset+this.start);this.Hd.appendBuffer(a,b,c)}; g.k.abort=function(){this.Hd.abort()}; g.k.remove=function(a,b){this.Hd.remove(a+this.start,b+this.start)}; g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.k.clear=function(){this.Hd.clear()}; g.k.lT=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b}; g.k.YP=function(){return this.timestampOffset+this.start}; g.k.SE=function(){return this.appendWindowStart}; g.k.EJ=function(){return this.appendWindowEnd}; g.k.Kq=function(a){this.timestampOffset=a}; g.k.Ec=function(){return this.timestampOffset}; g.k.oe=function(a){a=this.Hd.oe(a===void 0?!1:a);return hG(a,this.start,this.end)}; g.k.yk=function(){return this.Hd.yk()}; g.k.cK=function(){return this.Hd.cK()}; g.k.Mm=function(){return this.Hd.Mm()}; g.k.GQ=function(){return this.Hd.GQ()}; g.k.Gz=function(){this.Hd.Gz()}; g.k.Ex=function(a){return this.Hd.Ex(a)}; g.k.Xw=function(){return this.Hd.Xw()}; g.k.NJ=function(){return this.Hd.NJ()}; g.k.kU=function(a,b){this.Hd.kU(a,b)}; g.k.supports=function(a){return this.Hd.supports(a)}; g.k.lA=function(){return this.Hd.lA()}; g.k.isView=function(){return!0}; g.k.UI=function(){return this.Hd.UI()?this.isActive:!1}; g.k.isLocked=function(){return this.eI&&!this.isActive}; g.k.vc=function(a){a=this.Hd.vc(a);a.vw=this.start+"-"+this.end;return a}; g.k.OJ=function(){return this.Hd.OJ()}; g.k.cF=function(){return this.Hd.cF()}; g.k.SP=function(){return this.Hd.SP()}; g.k.xa=function(){ky(this.Hd,this.RY);g.iy.prototype.xa.call(this)}; g.k.KF=function(){return this.Hd.KF()}; g.k.YI=function(){this.Hd.YI()};var TW=!1;g.z(kG,g.iy);g.k=kG.prototype;g.k.appendBuffer=function(a,b,c){this.mE=!1;c&&(this.PF=c);if(a.length){var d;((d=this.Pb)==null?0:d.appendBuffer)?this.Pb.appendBuffer(a):this.Pb?this.Pb.append(a):this.vg&&this.vg.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.VQ=this.PF),b.type===3&&(this.Gf=b,this.dI=!0),this.OF.push(b.Rc()),this.OF.length>4&&this.OF.shift());this.gC&&(this.gC.length>=2||a.length>1048576?delete this.gC:this.gC.push(a))}; g.k.abort=function(){try{this.Pb?this.Pb.abort():this.vg&&this.vg.webkitSourceAbort(this.id)}catch(a){RUa&&g.Jx(new g.Mt("Error while abort the source buffer: "+a.name+", "+a.message))}this.PF=this.Gf=null;this.dI=!1}; g.k.remove=function(a,b,c){this.mE=!1;var d;if((d=this.Pb)==null?0:d.remove)c&&c({b:bG(this.oe()),s:a,e:b}),this.Pb.remove(a,b)}; g.k.removeAll=function(){this.remove(this.SE(),this.EJ())}; g.k.clear=function(){this.Mm()||(this.abort(),this.removeAll(),this.VQ=this.PF=this.Gf=null,this.appendWindowStart=this.timestampOffset=0,this.qO=aG([],[]),this.mE=!1,this.gC=jG?[]:void 0,this.ZI=!0,this.dI=!1)}; g.k.SE=function(){if(TW&&this.zg)return this.appendWindowStart;var a;return((a=this.Pb)==null?void 0:a.appendWindowStart)||0}; g.k.EJ=function(){var a;return((a=this.Pb)==null?void 0:a.appendWindowEnd)||0}; g.k.lT=function(a,b){this.Pb&&(TW&&this.zg?(this.appendWindowStart=a,this.Pb.appendWindowEnd=b):a>this.SE()?(this.Pb.appendWindowEnd=b,this.Pb.appendWindowStart=a):(this.Pb.appendWindowStart=a,this.Pb.appendWindowEnd=b))}; g.k.YP=function(){return this.timestampOffset}; g.k.Kq=function(a){TW?this.timestampOffset=a:this.supports(1)&&(this.Pb.timestampOffset=a)}; g.k.Ec=function(){return TW?this.timestampOffset:this.supports(1)?this.Pb.timestampOffset:0}; g.k.oe=function(a){if(a===void 0?0:a)return this.mE||this.yk()||(this.qO=this.oe(!1),this.mE=!0),this.qO;try{return this.Pb?this.Pb.buffered:this.vg?this.vg.webkitSourceBuffered(this.id):aG([0],[Infinity])}catch(b){return aG([],[])}}; g.k.yk=function(){var a;return((a=this.Pb)==null?void 0:a.updating)||!1}; g.k.Mm=function(){return this.ZI}; g.k.GQ=function(){return!this.ZI&&this.yk()}; g.k.Gz=function(){this.ZI=!1}; g.k.Ex=function(a){var b=a==null?void 0:a.sb;a=a==null?void 0:a.containerType;return!b&&!a||b===this.sb&&a===this.containerType}; g.k.Xw=function(){return this.PF}; g.k.NJ=function(){return this.VQ}; g.k.kU=function(a,b){this.containerType!==a&&(this.supports(4),lG()&&this.Pb.changeType(b));this.containerType=a}; g.k.lA=function(){return this.Gf}; g.k.isView=function(){return!1}; g.k.supports=function(a){switch(a){case 1:var b;return((b=this.Pb)==null?void 0:b.timestampOffset)!==void 0;case 0:var c;return!((c=this.Pb)==null||!c.appendBuffer);case 2:var d;return!((d=this.Pb)==null||!d.remove);case 3:var e,f;return!!(((e=this.Pb)==null?0:e.addEventListener)&&((f=this.Pb)==null?0:f.removeEventListener));case 4:return!(!this.Pb||!this.Pb.changeType);default:return!1}}; g.k.UI=function(){return!this.yk()}; g.k.isLocked=function(){return!1}; g.k.vc=function(a){a.to=this.Ec();a.up=this.yk();var b,c=((b=this.Pb)==null?void 0:b.appendWindowStart)||0,d;b=((d=this.Pb)==null?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=bG(this.oe())}catch(e){}return a}; g.k.cK=function(){var a;return((a=this.Pb)==null?void 0:a.writeHead)||0}; g.k.OJ=function(){for(var a={},b=0;b=7&&vwa(this,function(){g.fs(function(){Lwa(a,a.getCurrentTime(),0)},500)}); return b}; g.k.seekTo=function(a){this.Yk()>0&&(JU&&YQ<4&&(a=Math.max(.1,a)),this.setCurrentTime(a))}; g.k.Uo=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;qG(this,{l:"mer",sr:(a=this.ea)==null?void 0:rG(a),rs:tG(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.Mt("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.Jx(a),this.stopVideo()}else this.stopVideo()}; g.k.stopVideo=function(){var a=this;if(!this.B){var b;(b=this.Qa)==null||Iwa(b);if(OUa){if(!this.C){var c=new vG;c.then(void 0,function(){}); this.C=c;PUa&&this.pause();g.fs(function(){a.C===c&&(zG(a),c.resolve())},200)}}else zG(this)}}; g.k.oA=function(){var a=this.Dh();return fG(a)>0&&this.getDuration()?eG(a,this.getCurrentTime()):0}; g.k.ax=function(){var a=this.getDuration();return a===Infinity?1:a?this.oA()/a:0}; g.k.vc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:bG(this.hx(),",",3),vbu:bG(this.Dh()),vbs:bG(this.tA()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Yk(),vns:""+this.RJ(),vec:""+this.Uh(),vemsg:this.Wf(),vvol:""+this.getVolume(),vdom:""+ +this.HQ(),vsrc:""+ +!!this.Wh(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}}; g.k.hasError=function(){return this.Uh()>0}; g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.iP(a)}; g.k.removeEventListener=function(a,b){this.D.Nc(a,b,!1,this)}; g.k.dispatchEvent=function(a){if(this.C&&a.type==="pause")return!1;if(QUa){var b,c=((b=a.j)==null?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((c==null?0:c.Mm())||b<=((c==null?void 0:c.N)||0)){var d;qG(this,{l:"mede",sr:(d=this.ea)==null?void 0:rG(d),et:a.type});return!1}if(this.qK)return qG(this,{l:"medes",et:a.type}),c&&a.type==="seeking"&&(c.N=performance.now(),this.qK=!1),!1}return this.D.dispatchEvent(a)}; g.k.fP=function(){this.K=!1}; g.k.bP=function(){this.K=!0;this.mC(!0)}; g.k.oX=function(){this.K&&!this.QJ()&&this.mC(!0)}; g.k.xa=function(){this.N&&this.removeEventListener("volumechange",this.oX);OUa&&zG(this);g.K.prototype.xa.call(this)}; var OUa=!1,PUa=!1,QUa=!1,Owa=!1;g.k=g.BG.prototype;g.k.isPaused=function(){return g.U(this,4)}; g.k.isPlaying=function(){return g.U(this,8)&&!g.U(this,512)&&!g.U(this,64)&&!g.U(this,2)}; g.k.isOrWillBePlaying=function(){return g.U(this,8)&&!g.U(this,2)&&!g.U(this,1024)}; g.k.isCued=function(){return g.U(this,64)&&!g.U(this,8)&&!g.U(this,4)}; g.k.isBuffering=function(){return g.U(this,1)&&!g.U(this,2)}; g.k.isError=function(){return g.U(this,128)}; g.k.isSuspended=function(){return g.U(this,512)}; g.k.FF=function(){return g.U(this,64)&&g.U(this,4)}; g.k.toString=function(){return"PSt."+this.state.toString(16)}; var S1={},T1=(S1.BUFFERING="buffering-mode",S1.CUED="cued-mode",S1.ENDED="ended-mode",S1.PAUSED="paused-mode",S1.PLAYING="playing-mode",S1.SEEKING="seeking-mode",S1.UNSTARTED="unstarted-mode",S1);g.z(LG,g.K);g.k=LG.prototype;g.k.hA=function(){return this.B}; g.k.ac=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){var a=jD(this.layout.Aa,"metadata_type_video_length_seconds"),b=jD(this.layout.Aa,"metadata_type_active_view_traffic_type");zE(this.layout.Cb)&&p0(this.yb.get(),this.layout.layoutId,{zt:b,aI:a,listener:this,Ao:this.gf()});B7a(this.Oa.get(),this);a=this.Qg;b=this.layout.layoutId;var c={Ao:this.gf()};a.j.set(b,c);this.tx()}; g.k.release=function(){zE(this.layout.Cb)&&q0(this.yb.get(),this.layout.layoutId);C7a(this.Oa.get(),this);this.Qg.j.delete(this.layout.layoutId);this.By()}; g.k.Es=function(){}; g.k.Hs=function(){}; g.k.startRendering=function(a){tF(MG(this));NG(this,a)&&(OG(this),this.Ts(a),this.gf()||this.KI(!1))}; g.k.wc=function(a,b){if(b.layoutId===this.layout.layoutId){this.kc="rendering";this.j=this.Ha.get().isMuted()||this.Ha.get().getVolume()===0;this.Yb("impression");this.Yb("start");if(this.Ha.get().isMuted()){TG(this,"mute");var c;a=((c=KG(this))==null?void 0:c.muteCommands)||[];VD(this.Lb.get(),a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.Oh("fullscreen");var d;c=((d=KG(this))==null?void 0:d.fullscreenCommands)||[];VD(this.Lb.get(),c,this.layout.layoutId)}this.gf()||(d=this.zc.get(), d.C&&!d.B&&(d.G=!1,d.B=!0,d.actionType!=="ad_to_video"&&(d.J.L("html5_no_video_to_ad_on_preroll")?lB("pbs",void 0,d.actionType):gB("pbs",void 0,d.actionType),g.ks("finalize_all_timelines")&&Kta(d.actionType))));this.Bq(1);this.QR(b);var e;b=((e=KG(this))==null?void 0:e.impressionCommands)||[];VD(this.Lb.get(),b,this.layout.layoutId)}}; g.k.dL=function(a,b,c){this.K={WM:3,ZH:a==="load_timeout"?402:400,errorMessage:b.message};this.Yb("error");var d;a=((d=KG(this))==null?void 0:d.errorCommands)||[];VD(this.Lb.get(),a,this.layout.layoutId);this.gf()||this.Yo.sf(this.slot,this.layout,b,c)}; g.k.S2=function(){if(this.kc==="rendering"){TG(this,"pause");var a,b=((a=KG(this))==null?void 0:a.pauseCommands)||[];VD(this.Lb.get(),b,this.layout.layoutId);this.Bq(2)}}; g.k.T2=function(){if(this.kc==="rendering"){TG(this,"resume");var a,b=((a=KG(this))==null?void 0:a.resumeCommands)||[];VD(this.Lb.get(),b,this.layout.layoutId)}}; g.k.EC=function(a,b){b=b===void 0?!1:b;if(this.kc==="rendering"){HE(this.eb,a*1E3,b);this.j||HE(this.eb,a*1E3,b===void 0?!1:b);var c=this.mA();c&&(c/=1E3,(a>=c*.25||b)&&this.Yb("first_quartile"),(a>=c*.5||b)&&this.Yb("midpoint"),(a>=c*.75||b)&&this.Yb("third_quartile"),this.Ba.get().J.U().experiments.ob("enable_progress_command_flush_on_kabuki")?Pva(this.C,a*1E3,b):Pva(this.C,a*1E3,Vwa(this)?b:!1))}}; g.k.Dm=function(){var a;return((a=this.Sa.get().De(1))==null?void 0:a.clientPlaybackNonce)||""}; g.k.Vy=function(a,b){a.layoutId!==this.layout.layoutId?this.Yo.sf(this.slot,a,new hD("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):b()}; g.k.Mc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.kc="not_rendering",this.layoutExitReason=void 0,this.gf()||(a=c!=="normal"||this.position+1===this.G)&&this.KI(a),this.R2(c),this.Bq(0),c){case "abandoned":if(IE(this.eb,"impression")){var d,e=((d=KG(this))==null?void 0:d.abandonCommands)||[];VD(this.Lb.get(),e,this.layout.layoutId)}break;case "normal":d=((e=KG(this))==null?void 0:e.completeCommands)||[];VD(this.Lb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=((f= KG(this))==null?void 0:f.skipCommands)||[];VD(this.Lb.get(),d,this.layout.layoutId)}}; g.k.nA=function(){return this.layout.layoutId}; g.k.vP=function(){return this.K}; g.k.Wx=function(){if(this.kc==="rendering"){this.eb.Yb("active_view_measurable");var a,b=((a=KG(this))==null?void 0:a.activeViewMeasurableCommands)||[];VD(this.Lb.get(),b,this.layout.layoutId)}}; g.k.Vx=function(){if(this.kc==="rendering"){this.eb.Yb("active_view_fully_viewable_audible_half_duration");var a,b=((a=KG(this))==null?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];VD(this.Lb.get(),b,this.layout.layoutId)}}; g.k.Xx=function(){if(this.kc==="rendering"){this.eb.Yb("active_view_viewable");var a,b=((a=KG(this))==null?void 0:a.activeViewViewableCommands)||[];VD(this.Lb.get(),b,this.layout.layoutId)}}; g.k.Tx=function(){if(this.kc==="rendering"){this.eb.Yb("audio_audible");var a,b=((a=KG(this))==null?void 0:a.activeViewAudioAudibleCommands)||[];VD(this.Lb.get(),b,this.layout.layoutId)}}; g.k.Ux=function(){if(this.kc==="rendering"){this.eb.Yb("audio_measurable");var a,b=((a=KG(this))==null?void 0:a.activeViewAudioMeasurableCommands)||[];VD(this.Lb.get(),b,this.layout.layoutId)}}; g.k.KI=function(a){this.zc.get().KI(jD(this.layout.Aa,"metadata_type_ad_placement_config").kind,a,this.position,this.G,!1)}; g.k.onFullscreenToggled=function(a){if(this.kc==="rendering")if(a){this.Oh("fullscreen");var b,c=((b=KG(this))==null?void 0:b.fullscreenCommands)||[];VD(this.Lb.get(),c,this.layout.layoutId)}else this.Oh("end_fullscreen"),b=((c=KG(this))==null?void 0:c.endFullscreenCommands)||[],VD(this.Lb.get(),b,this.layout.layoutId)}; g.k.onVolumeChange=function(){if(this.kc==="rendering")if(this.Ha.get().isMuted()){TG(this,"mute");var a,b=((a=KG(this))==null?void 0:a.muteCommands)||[];VD(this.Lb.get(),b,this.layout.layoutId)}else TG(this,"unmute"),a=((b=KG(this))==null?void 0:b.unmuteCommands)||[],VD(this.Lb.get(),a,this.layout.layoutId)}; g.k.nh=function(){}; g.k.Dj=function(){}; g.k.aj=function(){}; g.k.Cj=function(){}; g.k.Fj=function(){}; g.k.Oh=function(a){this.eb.Oh(a,!this.j)}; g.k.Yb=function(a){this.eb.Yb(a,!this.j)}; g.k.gf=function(){var a=jD(this.slot.Aa,"metadata_type_eligible_for_ssap");return a===void 0?(qz("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ba.get().gf(a)};g.z(XG,LG);g.k=XG.prototype;g.k.LO=function(){this.layoutExitReason?this.Yo.Mc(this.slot,this.layout,this.layoutExitReason):Qwa(this)}; g.k.tx=function(){}; g.k.By=function(){var a=this.Oa.get();a.BC===this&&(a.BC=null);this.We.stop()}; g.k.Es=function(){this.We.stop();LG.prototype.S2.call(this)}; g.k.Hs=function(){ZG(this);LG.prototype.T2.call(this)}; g.k.mA=function(){return jD(this.Za().Aa,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.Id=function(a,b){var c=this;this.Vy(a,function(){c.kc!=="rendering_stop_requested"&&(c.kc="rendering_stop_requested",c.layoutExitReason=b,PG(c,b),c.We.stop())})}; g.k.Sc=function(){var a=Date.now(),b=a-this.YQ;this.YQ=a;this.ij+=b;this.ij>=this.mA()?this.JY():(this.EC(this.ij/1E3),YG(this,this.ij))}; g.k.R2=function(){}; g.k.Li=function(){}; g.z($G,XG);g.k=$G.prototype;g.k.Bg=function(a){if(this.kc!=="not_rendering"){a=QG(this,a);var b=this.Ha.get().getPresentingPlayerType()===2;this.kc==="rendering_start_requested"?b&&kF(a)&&this.Qz():b?g.tz(a,2)?qz("Receive player ended event during MediaBreak",this.ac(),this.Za()):RG(this,a):this.jx()}}; g.k.Ts=function(){Twa(this);M7a(this.Ha.get());this.Oa.get().BC=this;jB("pbp")||jB("pbs")||lB("pbp");jB("pbp","watch")||jB("pbs","watch")||lB("pbp",void 0,"watch");this.Qz()}; g.k.QR=function(a){this.zc.get();var b=jD(a.Aa,"metadata_type_ad_placement_config").kind,c=this.position===0;a=jD(a.Aa,"metadata_type_linked_in_player_layout_type");a={adBreakType:SG(b),adType:cxa(a)};var d=void 0;c?b!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";gB("ad_mbs",void 0,d);g.hB(a,d);ZG(this)}; g.k.jx=function(){this.Pz()}; g.k.JY=function(){Wwa(this);this.Pz()}; g.z(sH,XG);g.k=sH.prototype;g.k.Bg=function(a){this.kc!=="not_rendering"&&(a=QG(this,a),RG(this,a))}; g.k.Ts=function(){qz("startRenderingHelper in SSAP");this.Oa.get().BC=this;this.Qz()}; g.k.QR=function(){ZG(this)}; g.k.jx=function(){qz("handleAdPlayerNoLongerPresenting in SSAP");Rwa(this);this.Pz()}; g.k.JY=function(){Wwa(this);this.Yo.dC(this.ac(),this.Za(),"normal")}; g.z(vH,sH);vH.prototype.Id=function(a,b){var c=this;this.Vy(a,function(){oF(c.B,b)&&(c.kc="rendering_stop_requested",c.layoutExitReason=b,PG(c,b),c.We.stop())})}; vH.prototype.startRendering=function(a){tF(MG(this));NG(this,a)&&(OG(this),this.Oa.get().BC=this)};g.z(yH,LG);g.k=yH.prototype;g.k.LO=function(){this.layoutExitReason?this.Yo.Mc(this.slot,this.layout,this.layoutExitReason):Qwa(this)}; g.k.jx=function(){Rwa(this);this.Pz()}; g.k.Bg=function(a){if(this.kc!=="not_rendering"){a=QG(this,a);var b=this.Ha.get().getPresentingPlayerType()===2;this.kc==="rendering_start_requested"?b&&kF(a)&&this.Qz():b?g.tz(a,2)?this.Pz():RG(this,a):this.jx()}}; g.k.tx=function(){jD(this.Za().Aa,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=jD(this.Za().Aa,"metadata_type_shrunken_player_bytes_config")}; g.k.By=function(){jD(this.Za().Aa,"metadata_type_player_bytes_callback_ref").current=null;this.It&&this.Pc.get().removeCueRange(this.It);this.It=void 0;var a;(a=this.RK)==null||a.dispose();this.oB&&this.oB.dispose()}; g.k.Ts=function(a){var b=wH(this.Ba.get()),c=xH(this.Ba.get());if(b&&c&&!this.gf()){c=jD(a.Aa,"metadata_type_preload_player_vars");var d=g.qD(this.Ba.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.oB&&this.oB.start(d*1E3)}zH(this,a);Twa(this);b?(c=this.jd.get(),a=jD(a.Aa,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):V7a(this.jd.get(),jD(a.Aa,"metadata_type_player_vars"));var e;(e=this.RK)==null||e.start();b||this.jd.get().J.playVideo(2)}; g.k.QR=function(){var a;(a=this.RK)==null||a.stop();this.It="adcompletioncuerange:"+this.Za().layoutId;this.Pc.get().addCueRange(this.It,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.Op;var b=this.It,c=this.Za().layoutId;if(YJ(a.Ba.get())){var d={};a.Dl("mccr",(d.cid=b,d.c=c,d))}(this.adCpn=Swa(this))||qz("Media layout confirmed started, but ad CPN not set.");this.kd.get().bv("onAdStart",this.adCpn);this.JW=Date.now()}; g.k.mA=function(){var a;return(a=this.Sa.get().De(2))==null?void 0:a.Eca}; g.k.YL=function(){this.eb.Oh("clickthrough")}; g.k.Id=function(a,b){var c=this;this.Vy(a,function(){if(c.kc!=="rendering_stop_requested"){c.kc="rendering_stop_requested";c.layoutExitReason=b;PG(c,b);var d;(d=c.RK)==null||d.stop();c.oB&&c.oB.stop();Zwa(c)}})}; g.k.onCueRangeEnter=function(a){if(a!==this.It)qz("Received CueRangeEnter signal for unknown layout.",this.ac(),this.Za(),{cueRangeId:a});else{var b=this.context.Op,c=this.Za().layoutId;if(YJ(b.Ba.get())){var d={};b.Dl("mccre",(d.cid=a,d.c=c,d))}this.Pc.get().removeCueRange(this.It);this.It=void 0;a=jD(this.Za().Aa,"metadata_type_video_length_seconds");this.EC(a,!0);this.Yb("complete")}}; g.k.R2=function(a){a!=="abandoned"&&this.kd.get().bv("onAdComplete");this.kd.get().bv("onAdEnd",this.adCpn)}; g.k.onCueRangeExit=function(){}; g.k.Li=function(a){this.kc==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().rC(!0),this.EC(a))}; g.k.EC=function(a,b){LG.prototype.EC.call(this,a,b===void 0?!1:b);if(a>=5&&!this.VY){b=Date.now()-this.JW;a*=1E3;var c={contentCpn:this.Dm(),adCpn:Swa(this)},d=b<1E3?0:1;nz(d,"i.k_",{metadata:c,S6:b,T6:Math.floor(a/1E3)});Kr("IKDSTAT",d);d===0&&this.ET()&&this.kd.get().bv("onAbnormalityDetected");this.VY=!0}}; g.k.ET=function(){if(!this.Ba.get().ET())return!1;var a=jD(this.ac().Aa,"metadata_type_player_bytes_slot_metadata");a===void 0&&qz("PlayerBytesSlotMetadata is not filled",this.ac(),this.Za());return(a==null?void 0:a.Au)===!0};g.z(AH,yH);AH.prototype.Bg=function(a){this.kc!=="not_rendering"&&(a=QG(this,a),RG(this,a))}; AH.prototype.Ts=function(a){qz("startRenderingHelper in SSAP");zH(this,a);this.Qz()}; g.z(BH,AH);BH.prototype.Id=function(a,b){var c=this;this.Vy(a,function(){oF(c.B,b)&&(c.kc="rendering_stop_requested",c.layoutExitReason=b,PG(c,b),Zwa(c))})}; BH.prototype.startRendering=function(a){tF(MG(this));NG(this,a)&&(OG(this),zH(this,a))};g.z(EH,g.K);g.k=EH.prototype;g.k.init=function(){var a=jD(this.layout.Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Sa.get().addListener(this);this.Jd.init();lwa([this.layout],this.Sa.get());this.cO()}; g.k.cO=function(){var a=jD(this.Jd.Za().Aa,"metadata_type_player_vars");a?this.jd.get().addPlayerResponseForAssociation({playerVars:a}):(a=dxa(this.Jd.Za()),this.jd.get().addPlayerResponseForAssociation({jJ:a}))}; g.k.pL=function(){}; g.k.ac=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.Es=function(){this.Jd.Es()}; g.k.Hs=function(){this.Jd.Hs()}; g.k.iy=function(){qz("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}; g.k.wc=function(a,b){this.Jd.wc(a,b)}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.Li=function(a){this.Jd.Li(a)}; g.k.onFullscreenToggled=function(a){this.Jd.onFullscreenToggled(a)}; g.k.nh=function(a){this.Jd.nh(a)}; g.k.aj=function(a){this.Jd.aj(a)}; g.k.onVolumeChange=function(){this.Jd.onVolumeChange()}; g.k.Cj=function(){}; g.k.Fj=function(){}; g.k.Dj=function(){}; g.z(DH,EH);g.k=DH.prototype;g.k.FQ=function(){return this.Ha.get().getPresentingPlayerType()===2}; g.k.nG=function(a){qwa({cpn:a,Jf:this.Sa.get(),gs:!0});this.layout.layoutId===a&&(IAa(this.Xd,this.slot.slotId),this.Ev.wc(this.slot,this.layout))}; g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)return void qz("wrong layout");this.Ha.get().addListener(this);tD(this.uc(),this);this.Jd.startRendering(this.layout)}; g.k.Bg=function(a){this.Jd.Bg(a)}; g.k.Mc=function(a,b,c){this.Jd.Mc(a,b,c)}; g.k.release=function(){this.Sa.get().removeListener(this);this.Jd.release();mwa();uD(this.uc(),this)}; g.k.Id=function(a,b){a.layoutId!==this.layout.layoutId?qz("wrong layout"):(this.Jd.Id(this.layout,b),this.FQ()&&this.Fc.get().finishSegmentByCpn(this.layout.layoutId,this.Sa.get().De(1).clientPlaybackNonce),this.Ha.get().removeListener(this))}; g.k.oG=function(a,b,c){rwa({cpn:a,Jf:this.Sa.get(),gs:!0});this.Za().layoutId===a&&(this.Jd.hA().currentState<2&&(a=VG(c),LJ(this.params.context.Ba.get(),"html5_fix_non_video_expiration")&&a==="error"?this.Ev.sf(this.slot,this.layout,new hD("Non video ad expired during SSAP single layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):LH(this.cf,this.layout,a)),this.Ev.Mc(this.slot,this.layout,this.Jd.hA().j))};g.z(FH,g.K);g.k=FH.prototype;g.k.ac=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.pL=function(){}; g.k.Bf=function(){return this.Fg[this.sz]}; g.k.pk=function(){return this.sz}; g.k.Es=function(a,b){var c=this.Bf();b.layoutId!==HH(c,a,b)?qz("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Es()}; g.k.Hs=function(a,b){var c=this.Bf();b.layoutId!==HH(c,a,b)?qz("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Hs()}; g.k.iy=function(a,b){var c=this.Bf();hxa(this,a,b);ixa(c,a,b)&&this.BJ(c.ac(),c.Za(),"skipped")}; g.k.rL=function(a,b){var c=this.Bf();jxa(this);kxa(c,a,b)&&(a=lxa(this,c,a,b),a!==void 0&&(this.gf()?this.KO(c.Za(),a,"skipped"):mxa(this,c.ac(),c.Za(),a)))}; g.k.t0=function(a,b){var c=Object.assign({},GH(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.gs;if(c.Ao){var f={};sF(c.Jf,"wrse",(f.ec=d,f.is=e,f.ctp=rF(d),f))}FD(this.Mq,a,b)}; g.k.wc=function(a,b){var c;(c=this.Bf())==null||c.wc(a,b)}; g.k.Mc=function(a,b,c){b.layoutId===this.Za().layoutId&&(this.sx=!1,uD(this.uc(),this));var d;(d=this.Bf())==null||d.Mc(a,b,c)}; g.k.Li=function(a){var b;(b=this.Bf())==null||b.Li(a)}; g.k.gK=function(a,b,c){this.pk()===-1&&(this.callback.wc(this.slot,this.layout),this.sz++);var d=this.Bf();d?(d.dL(a,b,c),this.gf()&&this.callback.sf(this.slot,this.layout,b,c)):qz("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.pk()),layoutId:this.Za().layoutId})}; g.k.onFullscreenToggled=function(a){var b;(b=this.Bf())==null||b.onFullscreenToggled(a)}; g.k.nh=function(a){var b;(b=this.Bf())==null||b.nh(a)}; g.k.aj=function(a){var b;(b=this.Bf())==null||b.aj(a)}; g.k.onVolumeChange=function(){var a;(a=this.Bf())==null||a.onVolumeChange()}; g.k.MO=function(a,b,c){GD(this.Mq,a,b,c)}; g.k.NT=function(a){a.startRendering(a.Za())}; g.k.init=function(){var a=jD(this.Za().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(this.Fg.length<1)throw new X("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Fg.length)});if(a=jD(this.Za().Aa,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.v(this.Fg);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),Mua(this.Mq,this.slot,b.Za()),Nua(this.Mq,this.slot,b.Za());if(this.gf())for(this.Sa.get().addListener(this), lwa(gxa(this),this.Sa.get()),a=gxa(this),a=g.v(a),b=a.next();!b.done;b=a.next())this.cO(b.value)}; g.k.cO=function(a){var b=jD(a.Aa,"metadata_type_player_vars");b?(a.layoutType!=="LAYOUT_TYPE_MEDIA"&&qz("Non-video ad contains playerVars",this.slot,a),this.jd.get().addPlayerResponseForAssociation({playerVars:b})):(a=dxa(a),this.jd.get().addPlayerResponseForAssociation({jJ:a}))}; g.k.release=function(){var a=jD(this.Za().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=jD(this.Za().Aa,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.v(this.Fg);for(var b=a.next();!b.done;b=a.next())b=b.value,Oua(this.Mq,this.slot,b.Za()),b.release();this.gf()&&(this.Sa.get().removeListener(this),mwa())}; g.k.Vy=function(a){return a.layoutId!==this.Za().layoutId?(this.callback.sf(this.ac(),a,new hD("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Za().layoutId+("and LayoutType: "+this.Za().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.k.CI=function(){this.Ha.get().addListener(this);tD(this.uc(),this)}; g.k.Bg=function(a){if(a.state.isError()){var b,c;this.gK((b=a.state.eh)==null?void 0:b.errorCode,new hD("There was a player error during this media layout.",{playerErrorCode:(c=a.state.eh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.Bf())&&b.Bg(a)}; g.k.gf=function(){var a=jD(this.ac().Aa,"metadata_type_eligible_for_ssap");return a===void 0?(qz("Expected SSAP eligibility in PlayerBytes slots",this.ac(),this.Za()),!1):this.Ba.get().gf(a)}; g.k.Dj=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.Cj=function(){}; g.k.Fj=function(){}; g.z(MH,FH);g.k=MH.prototype;g.k.dR=function(){var a=this.Bf();a&&a.jx()}; g.k.v0=function(a,b,c){this.BJ(a,b,c)}; g.k.u0=function(a,b){this.BJ(a,b,"error")}; g.k.BJ=function(a,b,c){var d=this;IH(this,a,b,c,function(){JH(d,d.pk()+1)})}; g.k.startRendering=function(a){this.Vy(a)&&(this.CI(),l0(this.Ba.get())&&g0(this.zc.get()),i7a(this.Ba.get())||M7a(this.Ha.get()),l0(this.Ba.get())||g0(this.zc.get()),this.pk()===-1&&JH(this,this.pk()+1))}; g.k.Id=function(a,b){var c=this;this.sx=!0;this.pk()===this.Fg.length?this.callback.Mc(this.slot,this.layout,b):(a=this.Bf(),a.Id(a.Za(),b),this.jZ=function(){c.callback.Mc(c.slot,c.layout,b)}); this.Ha.get().J.Cy();V7a(this.jd.get(),{});a=o0(this.Ha.get(),1);a.isPaused()&&!g.U(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.sx&&this.dR()}; g.k.oG=function(){}; g.k.nG=function(){}; g.k.dC=function(){}; g.k.KO=function(){}; g.z(NH,FH);NH.prototype.v0=function(a,b,c){a=Object.assign({},GH(this),{layoutId:b.layoutId,layoutExitReason:c});b=a.layoutId;c=a.layoutExitReason;var d={};sF(a.Jf,"prse",(d.xc=b,d.ler=c,d.ctp=rF(b),d))}; NH.prototype.u0=function(a,b,c,d){qz("onSubLayoutError in SSAP");this.callback.sf(this.slot,this.layout,c,d)}; NH.prototype.BJ=function(a,b,c){qz("exitSubLayoutAndPlayNext in SSAP");this.KO(b,this.pk()+1,c)}; NH.prototype.KO=function(a,b,c){var d=this;qz("confirmExitSubLayoutAndPlayTarget in SSAP");IH(this,this.slot,a,c,function(){if(b>=d.Fg.length+1||b<0)qz("Unexpected target sublayout index",d.slot,d.layout,{targetSubLayoutIndex:b});else{d.sz=b;if(b===d.Fg.length){var e=d.Sa.get().De(1).clientPlaybackNonce;LH(d.ji,d.layout,"normal")}else e=d.Fg[b].Za().layoutId;d.Fc.get().finishSegmentByCpn(a.layoutId,e)}})}; g.z(OH,NH);g.k=OH.prototype;g.k.Bf=function(){return this.Bh}; g.k.pk=function(){var a=this;return this.Fg.findIndex(function(b){var c;return b.Za().layoutId===((c=a.Bh)==null?void 0:c.Za().layoutId)})}; g.k.NT=function(a){pz(this.Bh===void 0,"replacing another adapter");this.Bh=a;a.startRendering(a.Za())}; g.k.MO=function(a,b,c){GD(this.Mq,a,b,c);var d;pz(b.layoutId===((d=this.Bh)==null?void 0:d.Za().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot: "+a.slotType:"",subLayout:oz(b)})&&(this.Bh=void 0)}; g.k.release=function(){NH.prototype.release.call(this);pz(this.Bh===void 0,"currentAdapter is still active during release");this.Bh=void 0}; g.k.FQ=function(){return this.Ha.get().getPresentingPlayerType()===2}; g.k.Id=function(a,b){pz(a.layoutId===this.Za().layoutId,"StopRendering for wrong layout")&&oF(this.Nw.B,b)&&this.Bh&&(a=this.Bh,a.hA().currentState<2&&a.Id(a.Za(),b),this.FQ()&&this.Fc.get().finishSegmentByCpn(this.Bh.Za().layoutId,this.Sa.get().De(1).clientPlaybackNonce))}; g.k.Mc=function(a,b,c){NH.prototype.Mc.call(this,a,b,c);b.layoutId===this.Za().layoutId&&this.Ha.get().removeListener(this)}; g.k.Dm=function(){return this.Sa.get().De(1).clientPlaybackNonce}; g.k.oG=function(a,b,c){rwa(Object.assign({},GH(this),{cpn:a}));if(this.Bh&&this.Bh.Za().layoutId===a)nxa(this,this.Bh,c);else{var d,e;qz("Exiting cpn does not match active cpn",this.slot,(d=this.Bh)==null?void 0:d.Za(),{exitingCpn:a,transitionReason:c,activeCpn:(e=this.Bh)==null?void 0:e.Za().layoutId})}b===this.Dm()&&(this.Bh!==void 0&&(qz("active adapter is not properly exited",this.slot,this.layout,{activeLayout:oz(this.Bh.Za())}),nxa(this,this.Bh,c)),this.Nw.B.currentState<2&&(a=VG(c),LJ(this.Ba.get(), "html5_fix_non_video_expiration")&&a==="error"?this.callback.sf(this.slot,this.layout,new hD("Non video ad expired into content during SSAP composite layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):LH(this.ji,this.layout,a)),this.callback.Mc(this.slot,this.layout,this.Nw.B.j))}; g.k.startRendering=function(a){this.Vy(a)&&(a=this.Nw,pz(a.j===1,"tickStartRendering: state is not initial"),a.j=2,this.CI())}; g.k.nG=function(a){qwa(Object.assign({},GH(this),{cpn:a}));var b=this.Fg.find(function(c){return c.Za().layoutId===a}); b?(this.Nw.j!==2&&(IAa(this.Xd,this.slot.slotId),pz(this.Nw.j===2,"Expect started"),this.callback.wc(this.slot,this.layout)),this.NT(b),FD(this.Mq,this.slot,b.Za())):oxa(this,a)}; g.k.iy=function(a,b){hxa(this,a,b);var c=this.Bf();c?ixa(c,a,b)&&pxa(this,"skipped"):qxa(this,"onSkipRequested")}; g.k.rL=function(a,b){var c;a:{if(c=this.Bf()){if(jxa(this),kxa(c,a,b)&&(a=lxa(this,c,a,b),a!==void 0)){c={N6:c,jea:this.Fg[a]};break a}}else qxa(this,"SkipWithAdPodSkip");c=void 0}if(a=c)c=a.N6,a=a.jea,c.Id(c.Za(),"skipped"),a=a.Za().layoutId,this.Fc.get().finishSegmentByCpn(c.Za().layoutId,a)}; g.k.t0=function(){qz("Not used in html5_ssap_fix_layout_exit")}; g.k.Bg=function(a){var b;(b=this.Bf())==null||b.Bg(a)}; g.k.gK=function(){qz("Not used in html5_ssap_fix_layout_exit")}; g.k.dC=function(a,b,c){var d;if(((d=this.Bf())==null?void 0:d.Za().layoutId)!==b.layoutId)return void qz("requestToExitSubLayout: wrong layout");pxa(this,c)};g.z(PH,g.K);g.k=PH.prototype;g.k.ac=function(){return this.Jd.ac()}; g.k.Za=function(){return this.Jd.Za()}; g.k.init=function(){var a=jD(this.Za().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.tx()}; g.k.tx=function(){this.Jd.init()}; g.k.release=function(){var a=jD(this.Za().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.By()}; g.k.By=function(){this.Jd.release()}; g.k.Es=function(){this.Jd.Es()}; g.k.Hs=function(){this.Jd.Hs()}; g.k.iy=function(a,b){qz("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.ac(),this.Za(),{requestingSlot:a,requestingLayout:b})}; g.k.startRendering=function(a){a.layoutId!==this.Za().layoutId?this.callback.sf(this.ac(),a,new hD("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Za().layoutId+("and LayoutType: "+this.Za().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),tD(this.uc(),this),l0(this.Ba.get())&&g0(this.zc.get()),i7a(this.Ba.get())||M7a(this.Ha.get()),l0(this.Ba.get())||g0(this.zc.get()),this.Ts(a))}; g.k.Ts=function(a){this.Jd.startRendering(a)}; g.k.Id=function(a,b){this.sx=!0;this.wM(a,b);this.Ha.get().J.Cy();V7a(this.jd.get(),{});a=o0(this.Ha.get(),1);a.isPaused()&&!g.U(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.sx&&this.dR()}; g.k.wM=function(a,b){this.Jd.Id(a,b)}; g.k.wc=function(a,b){this.Jd.wc(a,b)}; g.k.Mc=function(a,b,c){b.layoutId===this.Za().layoutId&&(this.sx=!1,uD(this.uc(),this));this.Jd.Mc(a,b,c);b.layoutId===this.Za().layoutId&&KH(this.zc.get())}; g.k.dR=function(){this.Jd.jx()}; g.k.Li=function(a){this.Jd.Li(a)}; g.k.Bg=function(a){if(a.state.isError()){var b,c;this.gK((b=a.state.eh)==null?void 0:b.errorCode,new hD("There was a player error during this media layout.",{playerErrorCode:(c=a.state.eh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Jd.Bg(a)}; g.k.gK=function(a,b,c){this.Jd.dL(a,b,c)}; g.k.onFullscreenToggled=function(a){this.Jd.onFullscreenToggled(a)}; g.k.nh=function(a){this.Jd.nh(a)}; g.k.aj=function(a){this.Jd.aj(a)}; g.k.onVolumeChange=function(){this.Jd.onVolumeChange()}; g.k.Dj=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.Cj=function(){}; g.k.Fj=function(){};g.k=QH.prototype;g.k.ac=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){this.yf.get().addListener(this);this.Ha.get().addListener(this);this.tx();var a=jD(this.layout.Aa,"metadata_type_layout_enter_ms"),b=jD(this.layout.Aa,"metadata_type_layout_exit_ms"),c,d=(c=this.Sa.get().Qw)==null?void 0:c.clientPlaybackNonce;c=this.layout.Wb.adClientDataEntry;RH(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.yf.get();e=txa(e.C,a,b);e!==null&&(RH(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d, cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Fc.get().Fz(e,b))}; g.k.release=function(){this.By();this.yf.get().removeListener(this);this.Ha.get().removeListener(this)}; g.k.startRendering=function(){this.Ts();this.callback.wc(this.slot,this.layout)}; g.k.Id=function(a,b){this.wM(b);this.driftRecoveryMs!==null&&(SH(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(uxa(this)-jD(this.layout.Aa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Ha.get().J.Lr()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Mc(this.slot,this.layout,b)}; g.k.Y_=function(){return!1}; g.k.U_=function(a){var b=jD(this.layout.Aa,"metadata_type_layout_enter_ms"),c=jD(this.layout.Aa,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a0&&HD(this.j(),b)}; g.k.Mh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof II&&e.triggeringSlotId===a.slotId&&b.push(d)}b.length>0&&HD(this.j(),b)}; g.k.Jh=function(a){for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof zI&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}b.length>0&&HD(this.j(),b)}; g.k.tf=function(a){this.C.add(a.slotId);for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof DI&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&HD(this.j(),b)}; g.k.uf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof EI)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof sI){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}b.length>0&&HD(this.j(),b)}; g.k.Kh=function(a){for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof FI&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&HD(this.j(),b)}; g.k.Lh=function(a){for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof GI&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&HD(this.j(),b)}; g.k.lh=function(a,b){this.K.add(b.layoutId)}; g.k.pg=function(a,b){this.K.delete(b.layoutId)}; g.k.wc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.v(this.Ub.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof tI)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof yI){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof sI&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));c.length>0&&HD(this.j(),c)}; g.k.Mc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.v(this.Ub.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof vI&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof uI){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}a.length>0&&HD(this.j(),a)}; g.k.Rg=function(){}; g.k.Dk=function(){this.D.clear()}; g.k.Jo=function(){};g.z(hK,g.K);hK.prototype.Kl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new X("Tried to register duplicate trigger for slot.");if(!(b instanceof qI))throw new X("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Ub.set(b.triggerId,new LI(a,b,c,d))}; hK.prototype.Pl=function(a){this.Ub.delete(a.triggerId)};g.z(jK,g.K);jK.prototype.Kl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new X("Tried to register duplicate trigger for slot.");if(!(b instanceof pI||b instanceof BI))throw new X("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ub.set(b.triggerId,new LI(a,b,c,d))}; jK.prototype.Pl=function(a){this.Ub.delete(a.triggerId)}; jK.prototype.Dk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.v(this.Ub.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof pI&&l.trigger.Hv===a&&f.push(l);e.call(d,b,g.w(f));if(!f7a(this.context.Ba.get())){d=b.push;e=d.apply;f=[];h=g.v(this.Ub.values());for(l=h.next();!l.done;l=h.next())if(l=l.value,l.trigger instanceof BI){var m=l.trigger.j===a;m?c&&m&&(qz("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:a}), f.push(l)):f.push(l)}e.call(d,b,g.w(f))}b.length&&HD(this.j(),b)}; jK.prototype.Jo=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.v(this.Ub.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof BI&&l.j===a&&e.push(h)}d.call(c,b,g.w(e));b.length&&HD(this.j(),b)};g.z(kK,g.K);g.k=kK.prototype;g.k.Kl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new X("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof xI)EAa(this,a,b,c,d,e,b.j.start,b.j.end,b.Hv,b.visible);else if(b instanceof rI)EAa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Hv,b.visible);else throw new X("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");}; g.k.Pl=function(a){var b=this.Ub.get(a.triggerId);b&&this.Pc.get().removeCueRange(b.kJ);this.Ub.delete(a.triggerId)}; g.k.onCueRangeEnter=function(a){var b=FAa(this,a);if(b&&(b=this.Ub.get(b)))if(g.U(o0(this.Ha.get()),32))this.j.add(b.kJ);else{var c=b==null?void 0:b.jE.trigger;if(c instanceof xI||c instanceof rI){if(YJ(this.context.Ba.get())){var d=b.jE.slot,e=b.jE.layout,f={};this.context.Op.Dl("cre",(f.ca=b.jE.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=e==null?void 0:e.layoutType,f.cid=a,f))}HD(this.B(),[b.jE])}}}; g.k.onCueRangeExit=function(a){(a=FAa(this,a))&&(a=this.Ub.get(a))&&this.j.delete(a.kJ)}; g.k.Bg=function(a){if(sz(a,16)<0){a=g.v(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.wc=function(){}; g.k.Mc=function(){}; g.k.Rg=function(){}; g.k.Li=function(){}; g.k.onFullscreenToggled=function(){}; g.k.nh=function(){}; g.k.Dj=function(){}; g.k.aj=function(){}; g.k.onVolumeChange=function(){}; g.k.Cj=function(){}; g.k.Fj=function(){};g.z(lK,g.K);g.k=lK.prototype; g.k.Kl=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new X("Tried to re-register the trigger.");a=new LI(a,b,c,d);if(a.trigger instanceof Yxa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof wI)this.C.set(a.trigger.triggerId,a);else throw new X("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&HD(this.D(),[a])}; g.k.Pl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)}; g.k.pL=function(a){a=a.slotId;if(this.j!==a){var b=[];this.j!=null&&b.push.apply(b,g.w(GAa(this.C,this.j)));a!=null&&b.push.apply(b,g.w(GAa(this.B,a)));this.j=a;b.length&&HD(this.D(),b)}}; g.k.oG=function(){}; g.k.nG=function(){};g.z(mK,g.K);g.k=mK.prototype;g.k.Kl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new X("Tried to register duplicate trigger for slot.");if(!(b instanceof AI))throw new X("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ub.set(b.triggerId,new LI(a,b,c,d))}; g.k.Pl=function(a){this.Ub.delete(a.triggerId)}; g.k.wc=function(){}; g.k.Mc=function(){}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){};g.z(nK,g.K);g.k=nK.prototype;g.k.Rg=function(a,b){for(var c=[],d=g.v(this.Ub.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&HD(this.j(),c)}; g.k.Kl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new X("Tried to register duplicate trigger for slot.");if(!(b instanceof eva))throw new X("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Ub.set(b.triggerId,new LI(a,b,c,d))}; g.k.Pl=function(a){this.Ub.delete(a.triggerId)}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.wc=function(){}; g.k.Mc=function(){};g.z(oK,g.K);g.k=oK.prototype;g.k.Kl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new X("Tried to register duplicate trigger for slot.");if(!(b instanceof KI))throw new X("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ub.set(b.triggerId,new LI(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.Pl=function(a){this.Ub.delete(a.triggerId);if(!(a instanceof KI))throw new X("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),b.size===0&&this.j.delete(a.triggeringLayoutId)}; g.k.Sg=function(){}; g.k.Mh=function(){}; g.k.Jh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Kh=function(){}; g.k.Lh=function(){}; g.k.lh=function(){}; g.k.pg=function(){}; g.k.Rg=function(){}; g.k.wc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.v(a);var d=a.next();for(b={};!d.done;b={HM:void 0},d=a.next())b.HM=d.value,d=new g.fp(function(e){return function(){var f=c.Ub.get(e.HM.triggerId);HD(c.C(),[f])}}(b),b.HM.durationMs),d.start(),this.B.set(b.HM.triggerId,d)}}; g.k.Mc=function(){};g.z(pK,g.K);pK.prototype.Kl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new X("Tried to register duplicate trigger for slot.");if(!(b instanceof nI))throw new X("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Ub.set(b.triggerId,new LI(a,b,c,d))}; pK.prototype.Pl=function(a){this.Ub.delete(a.triggerId)};tK.prototype.Au=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};g.z(wK,g.K);g.k=wK.prototype;g.k.logEvent=function(a){this.us(a)}; g.k.Tj=function(a,b,c){this.us(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)}; g.k.Rh=function(a,b,c,d){this.us(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.tN=function(a,b,c,d){LJ(this.Ba.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);oD(this.j.get())&&this.us(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; g.k.xI=function(a,b,c,d,e){this.us(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)}; g.k.hm=function(a,b,c,d){this.us("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.us=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=q===void 0?0:q;LJ(this.Ba.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,ypa:d,Cpa:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Ba.get().J.U().L("html5_disable_client_tmp_logs")&&(a!=="ADS_CLIENT_EVENT_TYPE_ERROR"||r.BT())&&a!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){a||qz("Empty PACF event type",e,f);var u=oD(r.j.get()), x={eventType:a,eventOrder:++r.eventCount},B={};e&&(B.slotData=nD(u,e));f&&(B.layoutData=Hua(u,f));h&&(B.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(B.triggerData=mD(l.trigger,l.category));b&&(B.opportunityData=Iua(u,b,c,d));u={organicPlaybackContext:{contentCpn:r.Sa.get().De(1).clientPlaybackNonce}};u.organicPlaybackContext.isLivePlayback=r.Sa.get().De(1).dc;var E;u.organicPlaybackContext.isMdxPlayback= (E=r.Sa.get().De(1))==null?void 0:E.isMdxPlayback;var F;if((F=r.Sa.get().De(1))==null?0:F.daiEnabled)u.organicPlaybackContext.isDaiContent=!0;var I;if(E=(I=r.Sa.get().De(2))==null?void 0:I.clientPlaybackNonce)u.adVideoPlaybackContext={adVideoCpn:E};u&&(B.externalContext=u);x.adClientData=B;m&&(x.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(x.serializedAdServingData=n.serializedAdServingDataEntry);p&&(x.errorInfo=p);g.bu("adsClientStateChange",{adsClientEvent:x})}}; q&&q>0?g.Rt(g.Tt(),function(){return t()},q):t()}catch(u){LJ(this.Ba.get(),"html5_log_pacf_logging_errors")&&g.Rt(g.Tt(),function(){qz(u instanceof Error?u:String(u),e,f,{pacf_message:"exception during pacf logging"})})}}; g.k.BT=function(){return this.Ba.get().BT()};g.z(xK,wK);g.k=xK.prototype;g.k.Tj=function(a,b,c){wK.prototype.Tj.call(this,a,b,c);YJ(this.Ba.get())&&(c={},this.context.Op.Dl("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))}; g.k.Rh=function(a,b,c,d){wK.prototype.Rh.call(this,a,b,c,d);YJ(this.Ba.get())&&(d={},this.context.Op.Dl("pacf",(d.et=a,d.st=b.slotType,d.si=b.slotId,d.lt=c==null?void 0:c.layoutType,d.li=c==null?void 0:c.layoutId,d)))}; g.k.xI=function(a,b,c,d,e){wK.prototype.xI.call(this,a,b,c,d,e);YJ(this.Ba.get())&&(c={},this.context.Op.Dl("pacf",(c.et=a,c.ot=b,c.ss=d==null?void 0:d.length,c)))}; g.k.tN=function(a,b,c,d){wK.prototype.tN.call(this,a,b,c,d);if(YJ(this.Ba.get())){var e={};this.context.Op.Dl("pacf",(e.et=a,e.tt=c.trigger.triggerType,e.tc=c.category,e.st=b.slotType,e.si=b.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e))}}; g.k.hm=function(a,b,c,d){wK.prototype.hm.call(this,a,b,c,d);if(YJ(this.Ba.get())){var e={};this.context.Op.Dl("perror",(e.ert=a,e.erm=b,e.st=c.slotType,e.si=c.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e))}}; g.k.us=function(a,b,c,d,e,f,h,l,m,n,p){if(g.ED(this.Ba.get().J.U())){var q=this.Ba.get();q=g.qD(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;wK.prototype.us.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};yK.prototype.clear=function(){this.j.clear()};var UAa=!1,AK,BK,CK,DK,EK;g.z(FK,g.K); FK.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;d0)d+="."+JK[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new WAa;return a}; g.k.toString=function(){return""};g.k=aBa.prototype;g.k.isActive=function(){return!1}; g.k.uK=function(){}; g.k.CQ=function(){}; g.k.Ss=function(){}; g.k.Gr=function(){}; g.k.So=function(a,b){return b()}; g.k.YX=function(){return{}}; g.k.toString=function(){return""};var U1,Jbb,Kbb,Lbb,Mbb,Nbb,V1,AU,XX,Q5a,cP;U1=new aBa;Jbb=!!+Mr("html5_enable_profiler");Kbb=!!+Mr("html5_onesie_enable_profiler");Lbb=!!+Mr("html5_offline_encryption_enable_profiler");Mbb=!!+Mr("html5_performance_impact_profiling_timer_ms");Nbb=!!+Mr("html5_drm_enable_profiler");V1=Jbb||Kbb||Lbb||Mbb||Nbb?new YAa:U1;g.EW=Jbb?V1:U1;AU=Kbb?V1:U1;XX=Lbb?V1:U1;Q5a=Mbb?V1:U1;cP=Nbb?V1:U1;g.k=MK.prototype;g.k.encrypt=function(a){this.Kd.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a}; g.k.kM=function(a){this.Kd.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)}; g.k.J9=function(a,b){return{profile:this.Kd.aq?"oals":"oalw",Et:Math.ceil(b.byteLength/16)}}; g.k.Ma=function(){return this.cipher===0}; g.k.dispose=function(){this.Kd.exports.AES128CTRCipher_release(this.cipher);this.cipher=0}; AU.CQ(MK,{encrypt:MK.prototype.J9});g.NK.prototype.encrypt=function(a,b){var c=this,d,e;return g.H(function(f){if(f.j==1){d=IK();if(!d)return f.return(c.j(a,b));g.xa(f,3);return g.G(f,c.B(a,b,d),5)}if(f.j!=3)return f.return(f.B);e=g.Aa(f);g.Kx(e);GK=!0;return f.return(c.j(a,b))})}; g.NK.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.G(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.G(h,c.encrypt(e,d.G,a),4);case 4:return f=h.B,h.return(new Uint8Array(f))}})}; g.NK.prototype.j=function(a,b){this.C||(this.C=new FK(this.D));this.C.kM(b);return this.C.encrypt(a)}; g.NK.prototype.decrypt=function(a,b){return this.encrypt(a,b)}; g.z(g.OK,g.K);g.OK.prototype.encrypt=function(a,b){this.j||(this.j=new FK(this.B),g.Q(this,this.j));this.j.kM(b);return this.j.encrypt(a)}; g.OK.prototype.decrypt=function(a,b){return this.encrypt(a,b)}; PK.prototype.encrypt=function(a,b){this.j.kM(b);return this.j.encrypt(a)}; PK.prototype.decrypt=function(a,b){return this.encrypt(a,b)}; PK.prototype.Ma=function(){return this.j.Ma()}; PK.prototype.dispose=function(){this.j.dispose()};QK.prototype.reset=function(){cBa(this);this.update(this.C)}; QK.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&this.B+c>=64&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,bBa(this,this.K,0));for(;b+64<=c;b+=64)bBa(this,a,b);b=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{nK:b,un:c}}; UK.prototype.isFocused=function(a){return a>=this.C&&a=0;var K2a=window;var MBa=dd(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var UL;g.VL=new HB;UL=0;var WL={cn:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}, rM:function(a,b){a.splice(0,b)}, oW:function(a){a.reverse()}};var L4a=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var eP=VBa()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Ou?!0:!1;var qJa={lfa:"adunit",Jga:"detailpage",Uga:"editpage",Wga:"embedded",Wia:"leanback",bka:"previewpage",dka:"profilepage",J6:"unplugged",Yja:"playlistoverview",Rka:"sponsorshipsoffer",Hka:"shortspage",Dha:"handlesclaiming",Tha:"immersivelivepage",Fga:"creatormusic",Uha:"immersivelivepreviewpage",efa:"admintoolyurt"};var cDa={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},dDa={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"},P2a={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var MKa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.lM.prototype.getLanguageInfo=function(){return this.Xb}; g.lM.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");a.length>1&&(this.xtags=a[1])}return this.xtags}; g.lM.prototype.toString=function(){return this.Xb.name}; g.lM.prototype.getLanguageInfo=g.lM.prototype.getLanguageInfo;mM.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j}; mM.prototype.compose=function(a){if(a.C&&qM(a))return RQ;if(a.C||qM(this))return a;if(this.C||qM(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;nM&&(d=this.ub!==0&&a.ub!==0?Math.min(this.ub,a.ub):this.ub===0?a.ub:this.ub);return nM&&b===this.B&&c===this.j&&d===this.ub||!nM&&b===this.B&&c===this.j?this:nM?new mM(b,c,!1,c===this.j&&d===this.ub?this.reason:a.reason,d):new mM(b,c,!1,c===this.j?this.reason:a.reason)}; mM.prototype.D=function(a){return!a.video||nM&&this.ub!==0&&this.ub=0}; g.k.Xt=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.rA=function(){return this.segments.length}; g.k.Gm=function(){return 0}; g.k.Ii=function(a){return(a=this.dA(a))?a.Pa:-1}; g.k.WJ=function(a){return(a=this.Rn(a))?a.sourceURL:""}; g.k.getStartTime=function(a){return(a=this.Rn(a))?a.startTime:0}; g.k.JJ=function(a){return this.getStartTime(a)+this.getDuration(a)}; g.k.YJ=aa(1);g.k.isLoaded=function(){return this.segments.length>0}; g.k.Rn=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Hb(this.segments,new NM(a,0,0,0,""),function(b,c){return b.Pa-c.Pa}); return this.j=a>=0?this.segments[a]:null}; g.k.dA=function(a){if(this.j&&this.j.startTime<=a&&a=0?this.segments[a]:this.segments[Math.max(0,-a-2)]}; g.k.append=function(a){if(a.length)if(a=g.zb(a),this.segments.length){var b=this.segments.length?g.nb(this.segments).endTime:0,c=a[0].Pa-this.Ad();c>1&&taa(this.segments);for(c=c>0?0:-c+1;ca.Pa&&this.index.Tn()<=a.Pa+1}; g.k.update=function(a,b,c){this.index.append(a);FDa(this.index,c);a=this.index;a.B=b;a.C="update"}; g.k.jg=function(){return this.SA()?!0:IN.prototype.jg.call(this)}; g.k.vt=function(a,b){var c=this.index.WJ(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=this.info.ub>0?this.info.ub*e:1E3;return new VN([new NN(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)}; g.k.NP=function(){return this.SA()?0:this.initRange.length}; g.k.wS=function(){return!1};bO.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new bO,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+$N(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+$N(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.Ch:0,m=Date.parse(xEa($N(a,"yt:segmentIngestTime")))/1E3;c.G=a.parentElement.tagName==="SegmentTemplate";c.G&&(c.N=$N(a,"media"));a=b?h-b.Pa:1;c.K=a>0?0:-a+1;a=g.v(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")|| 0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Pa)h++;else{var t=new vEa(h,l,n,m+p,f);c.j.push(t);var u=d;var x=e,B=t.startSecs;t=u.getAttribute("yt:cuepointTimeOffset");var E=u.getAttribute("yt:cuepointDuration");if(t&&E){t=Number(t);B=-t/x+B;x=Number(E)/x;E=u.getAttribute("yt:cuepointContext")||null;var F=u.getAttribute("yt:cuepointIdentifier")||"";u=u.getAttribute("yt:cuepointEvent")||"";u=new XM(B,x,E,F,ccb[u]||"unknown",t)}else u=null;u&&c.C.push(u);h++;l+=n;f+=n;m+=n+p}}c.j.length&& (c.B=g.nb(c.j))}this.K=c.K;this.B=c.B||this.B;g.Bb(this.j,c.j);g.Bb(this.C,c.C);this.G=c.G;this.N=c.N;this.D===-1&&(this.D=c.getStreamTimeOffset())}; bO.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.z(dO,g.OM);g.k=dO.prototype;g.k.jo=function(a,b){a=eO(this,a);return a>=0&&(b||!this.segments[a].pending)}; g.k.Tn=function(){return this.In?this.segments.length?this.dA(this.od()).Pa:-1:g.OM.prototype.Tn.call(this)}; g.k.od=function(){if(this.ge)return 0;if(!this.In)return g.OM.prototype.od.call(this);if(!this.segments.length)return 0;var a=Math.max(g.nb(this.segments).endTime-this.Br,0);return this.bf>0&&this.dA(a).Pa0&&this.Tr0&&this.Xp>0&&!b&&(b=this.dA(this.Br))&&(a=Math.min(b.Pa-1,a));return a}; g.k.Yw=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.k.uN=function(a){var b=eO(this,a.Pa);if(b>=0)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.kB&&a.Pa%(300/this.Pj)===0){var c=this.segments[0].Pa,d=Math.floor(this.kB/this.Pj);a=a.Pa-d;b=-(b+1)-d;b>0&&a>c&&(this.segments=this.segments.slice(b))}}; g.k.MJ=function(){return this.Xp}; g.k.JF=function(a){return cO?!this.B&&a>=0&&this.Ad()<=a:g.OM.prototype.JF.call(this,a)}; g.k.dA=function(a){if(!this.In)return g.OM.prototype.dA.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Pj+1);else{b=Ib(this.segments,function(d){return a=d.endTime?1:0}); if(b>=0)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Pa-b.Pa-1))+1)+b.Pa}return this.Rn(b)}; g.k.Rn=function(a){if(!this.In)return g.OM.prototype.Rn.call(this,a);if(!this.segments.length)return null;var b=eO(this,a);if(b>=0)return this.segments[b];var c=-(b+1);b=this.Pj;if(c===0)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 NM(a,d,b,0,"sq/"+a,void 0,void 0, !0)}; var cO=!1;g.z(fO,ZN);g.k=fO.prototype;g.k.NA=function(){return!0}; g.k.jg=function(){return!0}; g.k.ut=function(a){return this.Ax()&&a.B&&!a.Se||!a.j.index.JF(a.Pa)}; g.k.bx=function(){}; g.k.Nr=function(a,b){return typeof a!=="number"||isFinite(a)?ZN.prototype.Nr.call(this,a,b===void 0?!1:b):new VN([new NN(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Oj,void 0,this.Oj*this.info.ub)],"")}; g.k.vt=function(a,b){var c=c===void 0?!1:c;if(this.index.jo(a))return ZN.prototype.vt.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Oj*this.info.ub),f=this.Oj;b&&(f=e=0);return new VN([new NN(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],a>=0?"sq/"+a:"")};g.z(gO,IN);g.k=gO.prototype;g.k.Pm=function(){return!1}; g.k.Ax=function(){return!1}; g.k.NA=function(){return!1}; g.k.bx=function(){return new VN([new NN(1,this,void 0,"otfInit")],this.G)}; g.k.kz=function(){return null}; g.k.vD=function(a){this.ut(a);return FEa(this,SN(a),!1)}; g.k.Nr=function(a,b){b=b===void 0?!1:b;a=this.index.Ii(a);b&&(a=Math.min(this.index.Ad(),a+1));return FEa(this,a,!0)}; g.k.fQ=function(a){a.info.type===1&&(this.j||(this.j=$K(a.j)),a.B&&a.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&GEa(this,a.B))}; g.k.ut=function(a){return a.B===0?!0:this.index.Ad()>a.Pa&&this.index.Tn()<=a.Pa+1}; g.k.NP=function(){return 0}; g.k.wS=function(){return!1};g.k=g.oO.prototype;g.k.jo=function(a){return a<=this.Ad()}; g.k.Gm=function(a){return this.offsets[a]}; g.k.getStartTime=function(a){return this.qh[a]/this.j}; g.k.JJ=function(a){return this.getStartTime(a)+this.getDuration(a)}; g.k.YJ=aa(0);g.k.lf=function(){return NaN}; g.k.getDuration=function(a){a=this.gY(a);return a>=0?a/this.j:-1}; g.k.gY=function(a){return a+1=0}; g.k.Xt=function(){return this.B?this.qh[this.count]/this.j:NaN}; g.k.od=function(){return 0}; g.k.rA=function(){return this.count}; g.k.WJ=function(){return""}; g.k.Ii=function(a){a=g.Hb(this.qh.subarray(0,this.count),a*this.j);return a>=0?a:Math.max(0,-a-2)}; g.k.isLoaded=function(){return this.Ad()>=0}; g.k.pY=function(a,b){if(a>=this.Ad())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,OEa(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.qh;this.qh=new Float64Array(a+1);for(a=0;a0&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),a>0&&d.push(new NN(4,this,LN(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new VN(d)}; g.k.fQ=function(a){if(a.info.type===1){if(this.j)return;this.j=$K(a.j)}else if(a.info.type===2){if(this.G||this.index.Ad()>=0)return;if(g.SF(this.info)){var b=this.index,c=iO(a);a=a.info.range.start;var d=g.bN(c,0,1936286840);c=RDa(d);b.j=c.Dv;var e=c.P7;b.offsets[0]=c.i8+a+d.size;b.qh[0]=e;b.B=!0;a=c.RT.length;for(d=0;d0&&a===f[0].cJ)for(a=0;a=b+c)break}e.length||g.Jx(new g.Mt("b189619593",""+a,""+b,""+c));return new VN(e)}; g.k.EV=function(a){for(var b=this.eC(a.info),c=a.info.range.start+a.info.Sb,d=[],e=0;e=this.index.Gm(c+1);)c++;return this.kF(c,b,a.B).jb}; g.k.ut=function(a){ON(a);return this.jg()?!0:a.range.end+1this.info.contentLength&&(b=new JN(b.start,this.info.contentLength-1)),new VN([new NN(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);a.type===4&&(a=this.eC(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Sb+a.B;a.type===3&&(ON(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.kF(c,d,b)}; g.k.vD=function(){return null}; g.k.Nr=function(a,b,c){b=b===void 0?!1:b;a=this.index.Ii(a);b&&(a=Math.min(this.index.Ad(),a+1));return this.kF(a,this.index.Gm(a),0,c)}; g.k.Pm=function(){return!0}; g.k.Ax=function(){return!0}; g.k.NA=function(){return!1}; g.k.NP=function(){return this.indexRange.length+this.initRange.length}; g.k.wS=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var a2={},JHa=(a2.COLOR_PRIMARIES_BT709="bt709",a2.COLOR_PRIMARIES_BT2020="bt2020",a2.COLOR_PRIMARIES_UNKNOWN=null,a2.COLOR_PRIMARIES_UNSPECIFIED=null,a2),b2={},QEa=(b2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",b2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",b2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",b2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",b2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,b2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,b2);g.rO.prototype.getName=function(){return this.name}; g.rO.prototype.getId=function(){return this.id}; g.rO.prototype.getIsDefault=function(){return this.isDefault}; g.rO.prototype.toString=function(){return this.name}; g.rO.prototype.getName=g.rO.prototype.getName;g.rO.prototype.getId=g.rO.prototype.getId;g.rO.prototype.getIsDefault=g.rO.prototype.getIsDefault;var UEa=/action_display_post/;var VEa,uO,vO;g.z(wO,g.iy);g.k=wO.prototype;g.k.isLoading=function(){return this.state===1}; g.k.Nm=function(){return this.state===3}; g.k.vca=function(a){var b=a.getElementsByTagName("Representation");if(a.getElementsByTagName("SegmentList").length>0||a.getElementsByTagName("SegmentTemplate").length>0){this.dc=this.B=!0;this.timeline||(this.timeline=new zEa);DEa(this.timeline,a);this.publish("refresh");for(a=0;a=0?p=KN(r):q=q+"?range="+r}m.call(l,new NM(n.Pa,n.startSecs,n.Ch,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Xa)}EEa(this.timeline);return!0}this.duration=wEa($N(a,"mediaPresentationDuration")); a:{for(a=0;a0))return this.qe()-a}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!YF(a[b].info.mimeType))return c.od()}return 0}; g.k.getStreamTimeOffset=function(){return this.G}; g.k.lf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Ii(a),e=c.lf(d);if(e)return e+a-c.getStartTime(d)}}return NaN}; var JO=null,WEa=!1,dcb,KO=!((dcb=navigator.mediaCapabilities)==null||!dcb.decodingInfo),oIa={commentary:1,alternate:2,dub:3,main:4};g.LO.prototype.info=function(){}; g.LO.prototype.debug=function(){}; var CIa=new Map,FIa=new Map,DIa=new function(){var a=this;this.j=new Map;this.fd={pna:function(){return a.j}}};var LZ=new Set,MO=new Map;PO.prototype.clone=function(a){return new PO(this.flavor,a,this.B,this.experiments)}; PO.prototype.vc=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; PO.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 ecb={},ZO=(ecb.playready=["com.youtube.playready","com.microsoft.playready"],ecb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],ecb),c2={},H1a=(c2.widevine="DRM_SYSTEM_WIDEVINE",c2.fairplay="DRM_SYSTEM_FAIRPLAY",c2.playready="DRM_SYSTEM_PLAYREADY",c2),d2={},fcb=(d2.widevine=1,d2.fairplay=2,d2.playready=3,d2);var bP;g.z($O,g.K); $O.prototype.initialize=function(a,b){for(var c=this,d=g.v(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.v(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.me)for(var h=g.v(Object.keys(f.me)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=ZO[m];!m&&this.L("html5_enable_vp9_fairplay")&&l==="fairplay"&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.v(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new PO(l,n,f.me[l],this.Da.experiments),this.j[l]=this.j[l]|| {},this.j[l][f.mimeType]=!0}}}Is()&&(this.C["com.youtube.fairplay"]=new PO("fairplay","com.youtube.fairplay","",this.Da.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=IIa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})}; $O.prototype.L=function(a){return this.Da.experiments.ob(a)};var u5a={"":"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"};PIa.prototype.L=function(a){return this.experiments.ob(a)};var sJa={RED:"red",pma:"white"};QIa.prototype.ob=function(a){return this.flags[a]==="true"};var TIa=Promise.resolve(),WIa=window.queueMicrotask?window.queueMicrotask.bind(window):UIa;gP.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Nu?a=a||gcb[b]:IP===2.2?a=a||hcb[b]:Gs()&&(a=a||icb[b]);return!!a}; gP.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):BF(a)}; var hcb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},icb={"application/x-mpegURL":"maybe"},gcb={"application/x-mpegURL":"maybe"};g.z(jP,g.iy);jP.prototype.add=function(a,b){if(!this.items[a]&&(b.WI||b.xO||b.FM)){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)}}; jP.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; jP.prototype.get=function(a){return this.items[a]||null}; jP.prototype.isEmpty=function(){return g.Gc(this.items)};g.z(kP,g.NK);kP.prototype.j=function(a,b){var c=AU.Ss();b=g.NK.prototype.j.call(this,a,b);AU.Gr("oap",c,Math.ceil(a.length/16));return b}; kP.prototype.B=function(a,b,c){var d=this,e,f;return g.H(function(h){if(h.j==1)return e=AU.Ss(),g.G(h,g.NK.prototype.B.call(d,a,b,c),2);f=h.B;AU.Gr("oan2",e,Math.ceil(a.byteLength/16));return h.return(f)})}; g.z(lP,g.OK);lP.prototype.encrypt=function(a,b){var c=AU.Ss();b=g.OK.prototype.encrypt.call(this,a,b);AU.Gr("oap",c,Math.ceil(a.byteLength/16));return b}; g.z(mP,PK);mP.prototype.encrypt=function(a,b){var c=this.Kd.eJ(a),d=this.Kd.eJ(b);PK.prototype.encrypt.call(this,c||a,d||b);d&&this.Kd.exports.free(d.byteOffset);return c?this.Kd.rR(c):a};oP.prototype.Xj=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a}; oP.prototype.fh=function(){return this.j/(1-Math.pow(this.alpha,this.B))};pP.prototype.Xj=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.jl=!0}; pP.prototype.percentile=function(a){var b=this;if(!this.C&&this.B===0)return 0;this.jl&&(g.Jb(this.G,function(c,d){return b.values[c]-b.values[d]}),this.jl=!1); return this.values[this.G[Math.round(a*((this.C?this.j:this.B)-1))]]||0}; pP.prototype.fh=function(){return this.K?(this.percentile(this.D-this.K)+this.percentile(this.D)+this.percentile(this.D+this.K))/3:this.percentile(this.D)};g.z(qP,g.K);qP.prototype.Va=function(){var a;(a=this.Ka)==null||a.start();if(yP(this)&&this.policy.N){var b;(b=this.yd)==null||b.hG()}};g.z(lJa,g.K);var rJa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),xJa={Ifa:"caoe",Wfa:"cbrand",Xfa:"cbr",Zfa:"cbrver",lga:"cchip",vga:"ccappver",wga:"ccrv",oha:"cfrmver",sia:"c",via:"cver",uia:"ctheme",tia:"cplayer",sja:"cmodel",Eja:"cnetwork",Lja:"cos",Mja:"cosver",Tja:"cplatform",rka:"crqyear"};g.z(SP,g.K);g.k=SP.prototype;g.k.L=function(a){return this.experiments.ob(a)}; g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=h?"music.youtube.com":g.UP(this);e=c==="www.youtube.com";!f&&d&&e?f="https://youtu.be/"+a:g.LP(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),Nu&&(a=pma())&&(b.ebc=a));return g.aj(f,b)}; g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.UP(this)+"/embed/"+b;d&&(b=g.aj(b,{list:d}));d=c.width;c=c.height;b=Xd(b);a=Xd(a!=null?a:"YouTube video player");return'')}; g.k.supportsGaplessAudio=function(){return g.AF&&!Nu&&Tma()>=74||g.XO&&g.qc(68)?!0:!1}; g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Wa||g.lu?!1:!0}; g.k.getPlayerType=function(){return this.j.cplayer}; g.k.yc=function(){return this.Rf}; g.k.Wu=function(){this.L("html5_enable_lawnmower_messaging")}; var BJa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],wJa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],zJa=[19];var e2={},EJa=(e2["140"]={numChannels:2},e2["141"]={numChannels:2},e2["251"]={audioSampleRate:48E3,numChannels:2},e2["380"]={numChannels:6},e2["328"]={numChannels:6},e2),f2={},CJa=(f2["1"]='video/mp4; codecs="av01.0.08M.08"',f2["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',f2["9"]='video/webm; codecs="vp9"',f2["("]='video/webm; codecs="vp9"',f2["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',f2.h='video/mp4; codecs="avc1.64001e"',f2.H='video/mp4; codecs="avc1.64001e"',f2.o= 'audio/webm; codecs="opus"',f2.a='audio/mp4; codecs="mp4a.40.2"',f2.ah='audio/mp4; codecs="mp4a.40.2"',f2.mac3='audio/mp4; codecs="ac-3"; channels=6',f2.meac3='audio/mp4; codecs="ec-3"; channels=6',f2),g2={},DJa=(g2["337"]={width:3840,height:2160,bitrate:3E7,fps:30},g2["336"]={width:2560,height:1440,bitrate:15E6,fps:30},g2["335"]={width:1920,height:1080,bitrate:75E5,fps:30},g2["702"]={width:7680,height:4320,bitrate:4E7,fps:60},g2["701"]={width:3840,height:2160,bitrate:2E7,fps:60},g2["700"]={width:2560, height:1440,bitrate:1E7,fps:60},g2["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},g2["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},g2["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},g2["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},g2["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},g2["360"]={width:1920,height:1080,bitrate:5331E3, fps:30,cryptoblockformat:"subsample"},g2["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},g2["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},g2["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},g2["315"]={width:3840,height:2160,bitrate:2E7,fps:60},g2["308"]={width:2560,height:1440,bitrate:1E7,fps:60},g2["303"]={width:1920,height:1080,bitrate:5E6,fps:60},g2["302"]={width:1280,height:720,bitrate:25E5, fps:60},g2["299"]={width:1920,height:1080,bitrate:75E5,fps:60},g2["298"]={width:1280,height:720,bitrate:35E5,fps:60},g2["571"]={width:7680,height:4320,bitrate:3E7,fps:60},g2["401"]={width:3840,height:2160,bitrate:15E6,fps:60},g2["400"]={width:2560,height:1440,bitrate:75E5,fps:60},g2["399"]={width:1920,height:1080,bitrate:2E6,fps:60},g2["398"]={width:1280,height:720,bitrate:1E6,fps:60},g2["397"]={width:854,height:480,bitrate:4E5,fps:30},g2["396"]={width:640,height:360,bitrate:25E4,fps:30},g2["313"]= {width:3840,height:2160,bitrate:8E6,fps:30},g2["271"]={width:2560,height:1440,bitrate:4E6,fps:30},g2["248"]={width:1920,height:1080,bitrate:2E6,fps:30},g2["247"]={width:1280,height:720,bitrate:15E5,fps:30},g2["244"]={width:854,height:480,bitrate:52E4,fps:30},g2["243"]={width:640,height:360,bitrate:28E4,fps:30},g2["137"]={width:1920,height:1080,bitrate:4E6,fps:30},g2["136"]={width:1280,height:720,bitrate:3E6,fps:30},g2["135"]={width:854,height:480,bitrate:1E6,fps:30},g2["385"]={width:1920,height:1080, bitrate:6503313,fps:60},g2["376"]={width:1280,height:720,bitrate:5706960,fps:60},g2["384"]={width:1280,height:720,bitrate:3660979,fps:60},g2["225"]={width:1280,height:720,bitrate:5805E3,fps:30},g2["224"]={width:1280,height:720,bitrate:453E4,fps:30},g2["145"]={width:1280,height:720,bitrate:2682052,fps:30},g2);g.k=iQ.prototype;g.k.getInfo=function(){return this.j}; g.k.wD=function(){return null}; g.k.iY=function(){var a=this.wD();return a?(a=g.Vr(a.resource),Number(a.expire)):NaN}; g.k.kT=function(){}; g.k.getHeight=function(){return this.j.video.height};GJa.prototype.build=function(){JJa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.v(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.Xb){if(e.Xb.getIsDefault()){c=e.Xb.getId();break a}c||(c=e.Xb.getId())}}d=g.v(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.Xb||e.Xb.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.v(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.v(e);for(var f=e.next();!f.done;f= e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Xb){p=f.Xb;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";d!==null&&(q=d.itag.toString());q=kQ(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(IJa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.v(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=jcb,d=(h=d.Xb)?'#EXT-X-MEDIA:URI="'+kQ(this,d.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=this.G.length>0?jcb:void 0;d=g.v(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,((h=l)==null?void 0:h.length)>0&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(IJa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",h.fps>1&&(l+= ",FRAME-RATE="+h.fps),h.KC&&(l+=",VIDEO-RANGE="+h.KC),a.push(l),a.push(kQ(this,e.url,"")));return a.join("\n")}; var jcb="text";g.z(lQ,iQ);lQ.prototype.iY=function(){return this.expiration}; lQ.prototype.wD=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 mG(a)}return this.resource};g.z(mQ,iQ);mQ.prototype.wD=function(){return new mG(this.B.Ee())}; mQ.prototype.kT=function(){this.B=LM(this.B)};g.z(nQ,iQ);nQ.prototype.wD=function(){return new mG(this.B)};var h2={},VJa=(h2.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",h2.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",h2.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",h2);g.k=g.oQ.prototype;g.k.getId=function(){return this.id}; g.k.getName=function(){return this.name}; g.k.isServable=function(){return this.j}; g.k.Ee=function(){return this.url}; g.k.getXtags=function(){return this.xtags}; g.k.toString=function(){return this.languageCode+": "+g.pQ(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.k.ue=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var $Ja={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},aKa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},bKa=/^(\d*)_((\d*)_?(\d*))$/;var dKa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},eKa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var i2={},QKa=(i2.ALWAYS=1,i2.BY_REQUEST=3,i2.UNKNOWN=void 0,i2),j2={},WKa=(j2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",j2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",j2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",j2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",j2);var kBa; kBa=function(a){for(var b=Object.keys(a),c={},d=0;dd-b?-1:a}; g.k.lz=function(){return this.B.Ad()}; g.k.vN=function(){return this.B.Tn()}; g.k.FV=function(a){this.B=a};g.z(QQ,OQ);QQ.prototype.B=function(a,b){return OQ.prototype.B.call(this,"$N|"+a,b)}; QQ.prototype.G=function(a,b,c){return new PQ(a,b,c,this.isLive)};var $Ka=[],gR=new Set;g.z(g.SQ,g.iy);g.k=g.SQ.prototype;g.k.U=function(){return this.Da}; g.k.L=function(a){return this.Da.L(a)}; g.k.ai=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=this.rf)==null||!a.rb)}; g.k.V_=function(){this.Ma()||(this.j.B||this.j.unsubscribe("refresh",this.V_,this),this.mX(-1))}; g.k.mX=function(a){if(!this.isLivePlayback||!this.K||this.K.flavor!="fairplay"){var b=lIa(this.j,this.jG);if(b.length>0){for(var c=g.v(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.od());this.publish("cuepointupdated",b,a);this.jG+=b.length;if(eR(this)&&this.Da.yc())for(b=g.v(b),c=b.next();!c.done;c=b.next())c=c.value,this.oa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.cD.start=this.Pk, this.cD.end=c+3)}}}; g.k.Yi=function(){return this.me?!0:!!this.j&&zM(this.j)}; g.k.LI=function(a){var b=this;if(this.Ma())return ws();this.Ed=this.rb=this.C=null;$Q(this,"html5_high_res_logging_always")&&(this.Da.Rf=!0);return nLa(this,a).then(void 0,function(){return oLa(b,a)}).then(void 0,function(){return pLa(b)}).then(void 0,function(){return rLa(b)})}; g.k.qk=function(){if(this.cotn)return null;var a=g.CD(this.Da)||this.L("web_l3_storyboard");if(!this.Sk)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Sk=new OQ(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=cba(this.j.j).index)&&(this.Sk=new QQ(b.spec,this.j.isLive,c,a))}else this.VA?this.Sk=new OQ(this.VA,this.lengthSeconds,void 0,!1,a):this.yw&&this.j&& (b=cba(this.j.j).index)&&(this.Sk=new QQ(this.yw,this.j.isLive,b,a));return this.Sk}; 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.VA||this.yw}; g.k.qe=function(){return this.j&&!isNaN(this.j.qe())?this.j.qe():eR(this)?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.Ii(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor((a-b)*1E3)}}return null}; g.k.ue=function(){return!this.Ma()&&!(!this.videoId&&!this.im)}; g.k.lx=function(){var a,b,c;return!!this.adaptiveFormats||!!((a=this.playerResponse)==null?0:(b=a.streamingData)==null?0:(c=b.adaptiveFormats)==null?0:c.length)}; g.k.isLoaded=function(){return TQ(this)&&!this.wj&&!this.vp}; g.k.gh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Da.ra||a=="pop1.jpg"||a=="pop2.jpg"||a=="sddefault.jpg"||a=="hq720.jpg"||a=="maxresdefault.jpg"?b:VP(this.Da,this.videoId,a)}; g.k.dc=function(){return this.isLivePlayback||this.ge||this.Xa||!(!this.liveUtcStartSeconds||!this.Sl)}; g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.ge&&!this.isLivePlayback&&this.j.B)}; g.k.getAvailableAudioTracks=function(){return this.C?this.C.getAvailableAudioTracks().length>0?this.C.getAvailableAudioTracks():this.xw||[]:[]}; g.k.getAudioTrack=function(){var a=this;if(this.D&&!TF(this.D))return g.pb(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.Uk; if(this.xw){if(!this.Bp)for(var b=g.v(this.xw),c=b.next();!c.done;c=b.next())if(c=c.value,c.Xb.getIsDefault()){this.Bp=c;break}return this.Bp||this.Uk}return this.Uk}; g.k.getPlayerResponse=function(){return this.playerResponse}; g.k.getWatchNextResponse=function(){return this.Ra}; g.k.getHeartbeatResponse=function(){return this.UD}; g.k.xl=function(){return this.watchUrl?this.watchUrl:this.Da.getVideoUrl(this.videoId)}; g.k.IQ=function(){return!!this.j&&(ZEa(this.j)||$Ea(this.j)||aFa(this.j))}; g.k.getEmbeddedPlayerResponse=function(){return this.Ei}; g.k.vk=function(){return(this.eventLabel||this.Da.Ka)==="shortspage"}; g.k.isAd=function(){return this.MF||!!this.adFormat}; g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.k.Om=function(){var a,b,c;return this.isDaiEnabled()&&!!((a=this.playerResponse)==null?0:(b=a.playerConfig)==null?0:(c=b.daiConfig)==null?0:c.ssaEnabledPlayback)}; g.k.zT=function(){return RKa(this)?this.Y2:this.Cq||this.tj}; g.k.zH=function(){return this.Hj||this.tj}; g.k.dO=function(){return $Q(this,"html5_samsung_vp9_live")}; g.k.useInnertubeDrmService=function(){return!0}; g.k.oa=function(a,b,c){this.publish("ctmp",a,b,c)}; g.k.Ay=function(a,b,c){this.publish("ctmpstr",a,b,c)}; g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.k.Zc=function(a,b){if(!g.EP(this.Da)||(this.Da.Fa||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||b)return!1;var c;return!!(((c=this.embeddedPlayerConfig)==null?0:c.isShortsExperienceEligible)&&a.width<=a.height)}; g.k.xa=function(){g.iy.prototype.xa.call(this);this.Pv=null;delete this.Tea;delete this.accountLinkingConfig;delete this.j;this.C=this.UD=this.playerResponse=this.Ra=null;this.Uf=this.adaptiveFormats="";delete this.botguardData;this.jf=this.suggestions=this.Sv=null};var YLa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},ZLa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},XLa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},$La=!1,ULa={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"},WLa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},VLa={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.z(VR,g.K);g.k=VR.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&&aE(c,sbb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.v(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Kx(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.vp&&!this.state.ra.has(a)&&(this.state.ra.add(a),g.bu("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Fa,errorCode:c}))}; g.k.publish=function(a){var b=g.Fa.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.w(b)));if(a==="videodatachange"||a==="resize"||a==="cardstatechange")this.state.j.publish.apply(this.state.j,[a].concat(g.w(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.w(b)))}; g.k.ib=function(a){var b=g.Fa.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.w(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.w(b)))}; g.k.Ac=function(a){var b=g.Fa.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.w(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.w(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.w(b)))}; g.k.Ym=function(a){var b=g.Fa.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.w(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.w(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.w(b)));this.state.N.publish.apply(this.state.N,[a].concat(g.w(b)))}; g.k.L=function(a){return this.app.U().L(a)}; g.k.xa=function(){if(this.state.element){var a=this.state.element,b;for(b in this.state.B)this.state.B.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.K.prototype.xa.call(this)};g.z(aS,g.Gp);aS.prototype.publish=function(a){var b=g.Fa.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.Gp.prototype.publish.call.apply(g.Gp.prototype.publish,[this,a].concat(g.w(b.shift())))}finally{this.G.delete(a)}return c};g.z(fMa,g.K);fMa.prototype.xa=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 hMa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.z(jMa,VR);g.k=jMa.prototype;g.k.getApiInterface=function(){return Array.from(this.state.Z)}; g.k.Y6=function(a,b){this.state.N.subscribe(a,b)}; g.k.bda=function(a,b){this.state.N.unsubscribe(a,b)}; g.k.getPlayerState=function(a){return k6a(this.app,a)}; g.k.I8=function(){return k6a(this.app)}; g.k.Ada=function(a,b,c){mMa(this)&&(Z_(this.app,!0,1),a0(this.app,a,b,c,1))}; g.k.getCurrentTime=function(a,b,c){var d=this.getPlayerState(a);if(this.app.getAppState()===2&&d===5){var e;return((e=this.app.getVideoData())==null?void 0:e.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&d===0?g6a(this.app,a):a?this.app.getCurrentTime(a,b,c):this.app.getCurrentTime(a)}; g.k.w8=function(){return this.app.getCurrentTime(1)}; g.k.D8=function(){var a=this.app.lf(1);return isNaN(a)?this.getCurrentTime(1):a}; g.k.A8=function(){return this.app.getDuration(1)}; g.k.oM=function(a,b){a=g.Hd(Math.floor(a),0,100);isFinite(a)&&S_(this.app,{volume:a,muted:this.isMuted()},b)}; g.k.Qda=function(a){this.oM(a,!1)}; g.k.ZK=function(a){S_(this.app,{muted:!0,volume:this.getVolume()},a)}; g.k.F$=function(){this.ZK(!1)}; g.k.LM=function(a){g.cS(this.app)||S_(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)}; g.k.Dea=function(){this.LM(!1)}; g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Ff&&(a.pfp={enableIma:g.SR(this.app.getVideoData())&&this.app.Md().allowImaMonetization,autoplay:NR(this.app.Md()),mutedAutoplay:this.app.Md().mutedAutoplay});return a}; g.k.xS=function(){var a=this.app.getPresentingPlayerType();if(a===2&&!this.app.Ef()){var b=EU(this.app.Ab());if(!Z8a(b)||$8a(b))return}a===3?GS(this.app.Ab()).rG("control_play"):this.app.U().L("html5_ssap_ignore_play_for_ad")&&g.fR(this.app.Md())&&a===2||this.app.playVideo(a)}; g.k.Cca=function(){Z_(this.app,!0,1);this.xS()}; g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(b!==2||this.app.Ef()||Z8a(EU(this.app.Ab())))b===3?GS(this.app.Ab()).rG("control_pause"):this.app.pauseVideo(b,a)}; g.k.cea=function(){var a=this.app,b=!1;a.X.qc&&(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.wp?lbb:kbb:[1]}; g.k.getPlaybackQuality=function(a){return(a=g.dS(this.app,a))?a.getPlaybackQuality():"unknown"}; g.k.Kda=function(){}; g.k.getAvailableQualityLevels=function(a){return(a=g.dS(this.app,a))?(a=g.Bl(a.Ut(),function(b){return b.quality}),a.length&&(a[0]==="auto"&&a.shift(),a=a.concat(["auto"])),a):[]}; g.k.s8=function(){return this.getAvailableQualityLevels(1)}; g.k.N8=function(){return this.EY()}; g.k.O8=function(){return 1}; g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)}; g.k.EY=function(){return this.getVideoLoadedFraction()}; g.k.S8=function(){return 0}; g.k.getSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}}; g.k.setSize=function(){this.app.qb().resize()}; g.k.loadVideoById=function(a,b,c,d){if(!a)return!1;a=bS(a,b,c);return this.app.loadVideoByPlayerVars(a,d)}; g.k.c$=function(a,b,c){a=this.loadVideoById(a,b,c,1);Z_(this.app,a,1)}; g.k.cueVideoById=function(a,b,c,d){a=bS(a,b,c);this.app.cueVideoByPlayerVars(a,d)}; g.k.z7=function(a,b,c){this.cueVideoById(a,b,c,1)}; g.k.loadVideoByUrl=function(a,b,c,d){a=gMa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)}; g.k.f$=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);Z_(this.app,a,1)}; g.k.cueVideoByUrl=function(a,b,c,d){a=gMa(a,b,c);this.app.cueVideoByPlayerVars(a,d)}; g.k.C7=function(a,b,c){this.cueVideoByUrl(a,b,c,1)}; g.k.U8=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Md(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)}; g.k.y8=function(){return this.app.getDebugText()}; g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Md();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Md().videoId,this.app.qb().getPlayerSize(),this.getPlaylistId()||void 0)}; g.k.W6=function(a,b,c){return q6a(this.app,a,b,c)}; g.k.removeCueRange=function(a){return s6a(this.app,a)}; g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)}; g.k.b$=function(a,b,c,d){this.loadPlaylist(a,b,c,d);Z_(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.G$=function(){this.nextVideo();Z_(this.app,!0,1)}; g.k.previousVideo=function(a){this.app.previousVideo(a)}; g.k.Oca=function(){this.previousVideo();Z_(this.app,!0,1)}; g.k.playVideoAt=function(a){this.app.playVideoAt(a)}; g.k.Bca=function(a){this.playVideoAt(a);Z_(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.K8=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;cd?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.ai(),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.T8=function(){return g.dS(this.app,1).vc(!0)}; g.k.toggleSubtitles=function(){var a=g.BU(this.app.Ab());a&&a.tea()}; g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}}; g.k.wakeUpControls=function(){var a=g.eS(this);a&&a.Gv()}; g.k.setCenterCrop=function(a){this.app.qb().setCenterCrop(a)}; g.k.getLoopVideo=function(){return this.app.getLoopVideo()}; g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)}; var oMa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), rMa="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 k2={},vMa=(k2["api.invalidparam"]=2,k2.auth=150,k2["drm.auth"]=150,k2["heartbeat.net"]=150,k2["heartbeat.servererror"]=150,k2["heartbeat.stop"]=150,k2["html5.unsupportedads"]=5,k2["fmt.noneavailable"]=5,k2["fmt.decode"]=5,k2["fmt.unplayable"]=5,k2["html5.missingapi"]=5,k2["html5.unsupportedlive"]=5,k2["drm.unavailable"]=5,k2["mrm.blocked"]=151,k2["embedder.identity.denied"]=152,k2);g.z(g.fS,nMa);g.k=g.fS.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.Y[a]?!0:!!(this.state.qa[a]&&b&&aE(b,sbb))}; g.k.getBandwidthEstimate=function(){return xP(this.app.U().schedule)}; g.k.reportPlaybackIssue=function(a){a=a===void 0?"":a;var b=g.dS(this.app);b&&(a={gpu:(0,g.SZ)(),d:a},b.handleError(new vF("feedback",a)))}; g.k.getInternalApi=function(){return Object.assign({},this.state.B)}; g.k.getInternalApiInterface=function(){return g.Cc(this.state.B)}; g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;this.app.queueNextVideo(a,b,c,d===void 0?"":d,e===void 0?"":e)}; g.k.H8=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.U(a,1),isCued:a.isCued(),isDomPaused:g.U(a,1024),isEnded:g.U(a,2),isError:g.U(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.U(a,16),isUiSeeking:g.U(a,32),isUnstarted:g.U(a,64)}}; g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.k.startSeekCsiAction=function(){this.app.Gi().D.j=(0,g.uu)()}; g.k.v8=function(a,b,c){return this.getCurrentTime(a===void 0?1:a,b,c)}; g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=b===void 0?!0:b;var f=g.dS(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Ec()&&(h=f.getStreamTimeOffset());a0(e,a-h,b,c,1,d)}; g.k.getStreamTimeOffset=function(){var a=g.dS(this.app,1);return a?a.getStreamTimeOffset():0}; g.k.seekToLiveHead=function(a,b){var c=g.dS(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&a0(this.app,Infinity,a,b,1)}; g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.dS(this.app,1);c&&c.cC(a,b)}; g.k.zda=function(a,b,c,d,e){this.seekTo(a,b,c,d===void 0?1:d,e)}; g.k.xda=function(a,b,c,d){this.seekBy(a,b,c,d,1)}; g.k.setVolume=function(a,b){this.oM(a,b===void 0?!0:b)}; g.k.mute=function(a){this.ZK(a===void 0?!0:a)}; g.k.unMute=function(a){this.LM(a===void 0?!0:a)}; g.k.syncVolume=function(){var a=I5a(this.app);S_(this.app,{volume:a.volume,muted:a.muted},!1)}; g.k.getAvailableQualityLabels=function(){var a=g.dS(this.app,1);return a?g.Bl(a.Ut(),function(b){return b.qualityLabel}):[]}; g.k.channelSubscribed=function(){this.ib("SUBSCRIBE",this.app.Md().Rl)}; g.k.channelUnsubscribed=function(){this.ib("UNSUBSCRIBE",this.app.Md().Rl)}; g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)}; g.k.getCurrentPlaylistSequence=function(){return g.dS(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.k.getPlaylistSequenceForTime=function(a){return g.dS(this.app).getPlaylistSequenceForTime(a)}; g.k.shouldSendVisibilityState=function(){return!0}; g.k.confirmYpcRental=function(){var a=g.dS(this.app,1);a&&a.Dg("ypc_clickwrap")}; g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a}; g.k.setConnectedRemoteApps=function(a){this.app.U().Bj=a}; g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=Vs("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,vJa)}; g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=a===void 0?!1:a}; g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.k.addUtcCueRange=function(a,b,c,d,e){return r6a(this.app,a,b,c,d,e)}; g.k.P8=function(a){a=a===void 0?1:a;var b=this.DY(a);if(a=g.dS(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()&&((c=a.progressBarStartPosition)==null?0:c.utcTimeMillis)?$d(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&((e=a.progressBarEndPosition)==null?0:e.utcTimeMillis)? $d(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.p4;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=tLa(a);b.paidContentOverlayDurationMs=uLa(a);a.j&&wM(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.dS(this.app,1))?a.getPlayerState():null)?a.eh:null;return!!(a&&b&&g.U(a,128)&&wMa(b.errorCode)===5)}; g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()}; g.k.supportsGaplessShorts=function(){return this.app.U().supportsGaplessShorts()}; g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,d===void 0?"":d)}; g.k.clearQueue=function(){this.app.clearQueue()}; g.k.Fi=function(){return g.eS(this)}; g.k.sendAbandonmentPing=function(){var a=g.dS(this.app);a&&a.sendAbandonmentPing()}; g.k.setAutonavState=function(a,b){b=b===void 0?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Md(),b==null?0:hR(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(a===3)b.autonavState!==3&&(b.iD=b.autonavState);else if(b.iD!==void 0)a=b.iD,b.iD=void 0;else return}y6a(this.app,a)}; g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,b===void 0?!1:b)}; g.k.setLoopRange=function(a){this.app.setLoopRange(a)}; g.k.getLoopRange=function(){return this.app.getLoopRange()}; g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=g.dS(this.app,1))==null||!a.hasSupportedAudio51Tracks())}; g.k.setUserAudio51Preference=function(a,b){b=b===void 0?!1:b;var c=g.dS(this.app,1);c&&c.setUserAudio51Preference(a,b)}; g.k.getUserAudio51Preference=function(){var a,b;return(b=(a=g.dS(this.app,1))==null?void 0:a.getUserAudio51Preference())!=null?b:1}; g.k.setProximaLatencyPreference=function(a){var b=g.dS(this.app,1);b&&b.setProximaLatencyPreference(a)}; g.k.getProximaLatencyPreference=function(){var a=g.dS(this.app,1);return a?a.getProximaLatencyPreference():0}; g.k.isProximaLatencyEligible=function(){var a=g.dS(this.app,1);return a?a.isProximaLatencyEligible():!1}; g.k.getAppState=function(){return this.app.getAppState()}; g.k.updateLastActiveTime=function(){pw()}; g.k.setBlackout=function(a){this.app.setBlackout(a)}; g.k.setUserEngagement=function(a){this.app.U().Xl!==a&&(this.app.U().Xl=a,(a=g.dS(this.app,1))&&B_(a))}; g.k.updateSubtitlesUserSettings=function(a,b){b=b===void 0?!0:b;g.BU(this.app.Ab()).q3(a,b)}; g.k.getCaptionWindowContainerId=function(){var a=g.BU(this.app.Ab());return a?a.getCaptionWindowContainerId():""}; g.k.toggleSubtitlesOn=function(){var a=g.BU(this.app.Ab());a&&a.M2()}; g.k.isSubtitlesOn=function(){var a=g.BU(this.app.Ab());return a?a.isSubtitlesOn():!1}; g.k.getPlayerResponse=function(a){return(a=g.dS(this.app,a))?a.getVideoData().getPlayerResponse():null}; g.k.G8=function(){return this.getPlayerResponse(1)}; g.k.getEmbeddedPlayerResponse=function(){var a=g.dS(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null}; g.k.getWatchNextResponse=function(a){return(a=g.dS(this.app,a))?a.getVideoData().getWatchNextResponse():null}; g.k.V8=function(){return this.getWatchNextResponse(1)}; g.k.getHeartbeatResponse=function(a){return(a=g.dS(this.app,a))?a.getVideoData().getHeartbeatResponse():null}; g.k.B8=function(){return this.getHeartbeatResponse(1)}; g.k.getStoryboardFrame=function(a,b){var c=this.app.qk();if(!c)return null;b=c.levels[b];return b?(a=g.MQ(b,a))?{column:a.column,columns:a.columns,height:a.Ox,row:a.row,rows:a.rows,url:a.url,width:a.eG}:null:null}; g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.qk();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Ec();return b.yI(a)}; g.k.getStoryboardLevel=function(a){var b=this.app.qk();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.lz(),minFrameIndex:b.vN()}:null:null}; g.k.getNumberOfStoryboardLevels=function(){var a=this.app.qk();return a?a.levels.length:0}; g.k.o8=function(){return this.getAudioTrack(1)}; g.k.getAudioTrack=function(a){return(a=g.dS(this.app,a))?a.getAudioTrack():this.app.getVideoData().Uk}; g.k.setAudioTrack=function(a,b,c){this.UJ()===3&&GS(this.app.Ab()).rG("control_set_audio_track",a);if(c=g.dS(this.app,c))if(c.Ma()||g.U(c.playerState,128))a=!1;else{var d;if((d=c.videoData.C)==null?0:d.j){d=b?c.getCurrentTime()-c.Ec():NaN;if(b){var e=q4a(c.Qc);c.oa("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.ya.setAudioTrack(a,d,b)}else if(h5a(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d=400)if(a=this.Md(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!!((b=a.getWatchNextResponse())==null?0:(c=b.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:(e=d.autoplay)==null?0:e.autoplay)!==!1}if(a)this.j||(this.j=!0,g.py(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||QMa(this), b=this.Md(),this.GV(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.py(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.v(this.B),c=b.next();!c.done;c=b.next())this.Nc(c.value)}; g.k.GV=function(a){TMa(this)?this.isChecked=a!==1:((a=a!==1)||(g.Gt(),a=g.ks("web_autonav_allow_off_by_default")&&!g.Ht(0,141)&&g.Lr("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Ht(0,140)),this.isChecked=a);SMa(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.aM(this.isChecked?2:1);SMa(this);if(TMa(this)){var a=this.Md().autoplaySwitchButtonRenderer;this.isChecked&&(a==null?0:a.onEnabledCommand)?this.J.ib("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(a==null?0:a.onDisabledCommand)&&this.J.ib("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.Md=function(){return this.J.getVideoData(1)};g.z(UMa,US);g.z(ZS,g.QS);ZS.prototype.onClick=function(){this.enabled&&($S(this,!this.checked),this.publish("select",this.checked))}; ZS.prototype.getValue=function(){return this.checked}; ZS.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var WMa=["en-CA","en","es-MX","fr-CA"];g.z(dT,ZS);dT.prototype.Ta=function(a){a?this.j||(this.Fb.Tc(this),this.j=!0):this.j&&(this.Fb.ph(this),this.j=!1);this.j&&$S(this,NBa())}; dT.prototype.D=function(){g.pp(this.element,"ytp-menuitem-highlight-transition-enabled")}; dT.prototype.C=function(a){var b=NBa();a!==b&&(b=g.Gt(),Jt(190,a),Jt(192,!0),b.save(),this.J.ib("cinematicSettingsToggleChange",a))}; dT.prototype.xa=function(){this.j&&this.Fb.ph(this);ZS.prototype.xa.call(this)};g.z(bNa,US);bNa.prototype.updateCinematicSettings=function(a){this.j=a;var b;(b=this.menuItem)==null||b.Ta(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.z(eT,ZS);eT.prototype.B=function(a){this.C(a?1:0)}; eT.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=this.j()===1&&a;$S(this,b);this.setEnabled(a)}; eT.prototype.xa=function(){this.Fb.ph(this);ZS.prototype.xa.call(this)};g.z(fT,US);fT.prototype.getDrcUserPreference=function(){return this.j}; fT.prototype.setDrcUserPreference=function(a){g.zt("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Uc())&&this.B()&&KZ(a))}; fT.prototype.updateEnvironmentData=function(){this.api.U().Tf=this.j===1}; fT.prototype.B=function(){var a,b,c=(a=this.api.getVideoData())==null?void 0:(b=a.C)==null?void 0:b.j;return c?Am(c,function(d){var e;return((e=d.audio)==null?void 0:e.j)===!0}):!1};g.z(gT,US);gT.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.qf("embargo",1);var c=b==null?void 0:b.jD.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?dNa(this,c.filter(function(d){return cNa(a,d)})):(b==null?0:b.cueRanges)&&dNa(this,b.cueRanges.filter(function(d){return cNa(a,d)}))}; gT.prototype.B=function(a){return a.embargo!==void 0}; gT.prototype.xa=function(){US.prototype.xa.call(this);this.j={}};g.z(eNa,US); eNa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.Lc,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");c.length>0&&(a.embeds_widget_referrer=c);d.length>0&&(a.embeds_referring_euri=d);b.D&&f.length>0&&(a.embeds_referring_origin=f);e.length>0&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.at(g.NP(b))&&e.unshift(159628),b=e.join(","),b=g.Hs()?b:g.Ye(b,4),a.source_ve_path=b);this.j.length= 0};g.z(fNa,US);g.z(gNa,g.K);gNa.prototype.xa=function(){g.K.prototype.xa.call(this);this.j=null;this.B&&this.B.disconnect()};g.z(iNa,US);g.z(hT,g.T);hT.prototype.show=function(){g.T.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; hT.prototype.onVideoDataChange=function(a){var b,c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;d&&(b=jNa(d),g.U(this.api.getPlayerStateObject(),128)||a==="dataloaderror"||!b?(this.B=0,mNa(this),this.hide()):(a=(b.remainingTimeSecs||0)*1E3,a>0&&(this.show(),this.updateValue("label",ABa(b.label)),lNa(this,a))))}; hT.prototype.xa=function(){mNa(this);g.T.prototype.xa.call(this)};g.z(nNa,US);g.z(iT,g.T);iT.prototype.onClick=function(){this.Ua.logClick(this.element);this.Ua.ib("onFullerscreenEduClicked")}; iT.prototype.Ta=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.z(jT,US);jT.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;(b=this.j)!=null&&(g.rp(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),hS(b.Ua,b.element,b),b.C=!0))}; jT.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;(b=this.j)!=null&&(b.B=a,b.Ta())};g.z(oNa,g.T);g.z(rNa,US);g.z(sNa,US);g.z(tNa,US);g.z(kT,US);kT.prototype.getSphericalProperties=function(){var a=g.IS(this.api.Ab());return a?a.getSphericalProperties():{}}; kT.prototype.setSphericalProperties=function(a){if(a){var b=g.IS(this.api.Ab());b&&b.setSphericalProperties(a,!0)}};g.z(uNa,US);g.k=uNa.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,d===void 0?!1:d)}; g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,c===void 0?!1:c)}; g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)}; g.k.logClick=function(a,b){this.api.logClick(a,b)}; g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)}; g.k.hasVe=function(a){return this.api.hasVe(a)}; g.k.destroyVe=function(a){this.api.destroyVe(a)};g.z(lT,US);lT.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.eS(this.api)&&!(a<0)){var c=this.api.getVideoData(),d=c.Qk;if(d&&a=0)return;b=~b;g.Fb(this.items,b,0,a);qe(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.XR,this);this.menuItems.publish("size-change")}; g.k.ph=function(a){a.unsubscribe("size-change",this.XR,this);this.Ma()||(g.ub(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))}; g.k.XR=function(){this.menuItems.publish("size-change")}; g.k.focus=function(){for(var a=0,b=0;b1&&g.zT(this)}; g.k.HC=function(){RNa(this);this.Hb&&(PNa(this),g.vm(this.element,this.size))}; g.k.bj=function(){var a=this.j.pop();QNa(this,a,this.j[this.j.length-1],!0)}; g.k.u5=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Mb();a.preventDefault();break;case 37:this.j.length>1&&this.bj();a.preventDefault();break;case 39:a.preventDefault()}}; g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()}; g.k.xa=function(){g.OS.prototype.xa.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.z(AT,g.xT);AT.prototype.open=function(a,b){this.initialize(a.items)&&this.md(b,!!b)}; AT.prototype.initialize=function(a){g.wT(this.Oe);if(a===void 0||a.length===0)return!1;var b=a.length;a=g.v(a);for(var c=a.next();!c.done;c=a.next())this.Tc(c.value,b--);return!0}; AT.prototype.Tc=function(a,b){a.menuNavigationItemRenderer?UNa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&VNa(this,a.menuServiceItemRenderer,b)};g.z(BT,tT);g.k=BT.prototype;g.k.lG=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.Mx(),this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand))}; g.k.Tu=function(){this.enabled=!1;this.qa.hide()}; g.k.Ky=function(){return!!this.j&&this.enabled}; g.k.onVideoDataChange=function(a,b){this.O1(b);if(this.j){this.Q1();a:if(!this.isCounterfactual){var c,d,e;this.banner.update({title:(c=this.j)==null?void 0:c.title,subtitle:(d=this.j)==null?void 0:d.subtitle,metadata:(e=this.j)==null?void 0:e.metadataText});var f;this.onClickCommand=g.R((f=this.j)==null?void 0:f.onTap,Mx);var h;if(a=g.R((h=this.j)==null?void 0:h.onOverflow,Mx))this.N=g.R(a,Cab);var l;if((l=this.j)==null?0:l.thumbnailImage){var m,n;h=((m=this.j)==null?void 0:(n=m.thumbnailImage)== null?void 0:n.sources)||[];if(h.length===0)break a;this.thumbnailImage.update({url:h[0].url})}else{var p;if((p=this.j)==null?0:p.thumbnailIconName){var q;this.thumbnailIcon.update({icon:(q=this.j)==null?void 0:q.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!((r=this.j)==null||!r.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.j)==null||!t.shouldHideDismissButton)}var u;this.banner.element.setAttribute("aria-label",((u=this.j)==null?void 0:u.a11yLabel)||"");var x; this.Va=(x=this.j)==null?void 0:x.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;XNa(this)}}; g.k.vaa=function(){this.isVisible=!0;XNa(this)}; g.k.waa=function(){this.isVisible=!1;XNa(this)}; g.k.NK=function(){tT.prototype.NK.call(this);this.B&&this.J.logVisibility(this.banner.element,this.isVisible)}; g.k.Mx=function(){tT.prototype.Mx.call(this,!1);this.B&&this.J.logClick(this.banner.element)}; g.k.v5=function(a){this.K||(this.K=new AT(this.J),g.Q(this,this.K));var b,c;if((b=this.N)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.K.open(this.N.menu.menuRenderer,a.target),a.preventDefault()}; g.k.O1=function(){}; g.k.Q1=function(){}; g.k.xa=function(){this.J.qf("suggested_action_view_model");tT.prototype.xa.call(this)};g.z(CT,BT); CT.prototype.O1=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.R((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.suggestedActionViewModel,Oab);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var f;this.j=g.R((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,zab)}var h,l;if(this.B=!!((h=this.productUpsellSuggestedActionViewModel)==null?0:(l=h.loggingDirectives)==null? 0:l.trackingParams)){var m,n;this.J.setTrackingParams(this.banner.element,((m=this.productUpsellSuggestedActionViewModel)==null?void 0:(n=m.loggingDirectives)==null?void 0:n.trackingParams)||null)}var p;this.isCounterfactual=!((p=this.productUpsellSuggestedActionViewModel)==null||!p.isCounterfactualServing)}; CT.prototype.Q1=function(){var a=[],b,c=g.v(((b=this.productUpsellSuggestedActionViewModel)==null?void 0:b.ranges)||[]);for(b=c.next();!b.done;b=c.next()){var d=b.value;d&&(b=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(b)||isNaN(d)||a.push(new g.gE(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.kf(a)};g.z(YNa,US);g.z($Na,US);$Na.prototype.onVideoDataChange=function(a){a==="newdata"&&this.j&&ZNa(this)};g.z(g.DT,g.QS);g.k=g.DT.prototype;g.k.open=function(){g.yT(this.Fb,this.B)}; g.k.Ri=function(a){aOa(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Cd(this.Zk(a)),this.C=a)}; g.k.Cz=function(a,b,c,d){var e=this;c={I:"div",La:["ytp-menuitem",d?"ytp-menuitem-with-footer":""],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",La:["ytp-menuitem-label"],va:"{{label}}"}]};d&&(d={I:"div",S:"ytp-menuitem-footer",V:[d]},c.V?c.V.push(d):c.V=[d]);b=new g.QS(c,b,this.Zk(a,!0));b.listen("click",function(){e.wN(a)}); return b}; g.k.enable=function(a){this.K?a||(this.K=!1,this.mz(!1)):a&&(this.K=!0,this.mz(!0))}; g.k.mz=function(a){a?this.Fb.Tc(this):this.Fb.ph(this)}; g.k.Ig=function(a){this.publish("select",a)}; g.k.wN=function(a){this.Ig(a)}; g.k.Zk=function(a){return a.toString()}; g.k.w5=function(a){a.defaultPrevented||a.keyCode!==39||(this.open(),a.preventDefault())}; g.k.xa=function(){this.K&&this.Fb.ph(this);g.QS.prototype.xa.call(this);for(var a=g.v(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.z(bOa,g.DT);g.k=bOa.prototype;g.k.Ta=function(){var a=this.kA("Off");this.J.getPresentingPlayerType()!==2?(cOa(this),this.Ri(this.G),this.j&&(this.G===a?this.j="":this.setSleepTimerTimeLeft(this.j)),this.N&&this.setVideoTimeLeft(this.N),this.enable(!0)):(g.ET(this,[]),this.enable(!1))}; g.k.Ig=function(a){dOa(this,a);this.Fb.bj()}; g.k.kA=function(a){switch(a){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(a.toString()+" Minutes").toLowerCase()}}; g.k.onVideoDataChange=function(a){a==="dataloaded"&&cOa(this)}; g.k.Tba=function(a){this.J.logVisibility(this.element,a)}; g.k.onClick=function(){this.J.logClick(this.element)}; g.k.resetSleepTimerMenuSettings=function(){dOa(this,this.kA("Off"))}; g.k.setSleepTimerTimeLeft=function(a){this.j=a;this.Cd(a)}; g.k.setVideoTimeLeft=function(a){this.N=a;this.D.Cd(a)};g.z(FT,US);FT.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}; FT.prototype.setSleepTimerTimeLeft=function(a){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(a)}; FT.prototype.setVideoTimeLeft=function(a){this.menuItem&&this.menuItem.setVideoTimeLeft(a)};g.z(g.HT,g.iy);g.k=g.HT.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),IT(this),GT(this))}; g.k.Px=function(a){IT(this);this.T(JT("move"),this.IV);this.T(JT("out"),this.sB);this.T("touchstart",this.yN);this.j&&this.T(JT("down"),this.xN);var b=a.target;a=new g.Kd(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.IV=function(a){var b=a.target;a=new g.Kd(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Ld(new g.Kd(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)}; g.k.sB=function(a){var b=new g.Kd(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.te(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}IT(this);GT(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)}; g.k.C$=function(a){this.Px(a);this.xN(a)}; g.k.xN=function(a){if(typeof a.button!=="number"||a.button===0){IT(this);this.D.T(KT(a.target),JT("move"),this.B$);this.D.T(KT(a.target),JT("up"),this.x5);var b=a.target;if(g.rc)this.T("dragstart",this.L7);else if(a.preventDefault(),(g.aQ||lm)&&b)a:{for(var c=b;c;){if($ba(c)||c.getAttribute("tabindex")==="-1"){c.focus();break a}c=c.parentElement}KT(b).activeElement.blur()}this.C=!0;a=new g.Kd(a.pageX,a.pageY);this.publish("dragstart",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}}; g.k.L7=function(a){a.preventDefault()}; g.k.B$=function(a){var b=a.target;b===KT(a.target)&&(b=null);a=new g.Kd(a.pageX,a.pageY);this.publish("hovermove",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}; g.k.x5=function(a){IT(this);this.C=!1;var b=pt(a),c=a.target;a=new g.Kd(a.pageX,a.pageY);b&&g.te(this.target,b)?(this.T(JT("move"),this.IV),this.T(JT("out"),this.sB),this.T(JT("down"),this.xN),this.T("touchstart",this.yN),this.publish("dragend",a.x,a.y,c)):(GT(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))}; g.k.yN=function(a){var b=a.changedTouches[0];b&&(IT(this),this.Y||(this.T("touchmove",this.uea),this.T("touchend",this.JV),this.T("touchcancel",this.JV),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.uea=function(a){var b=eOa(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.JV=function(a){var b=eOa(this,a);if(b){IT(this);GT(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.xa=function(){this.j&&(g.rc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");IT(this);g.iy.prototype.xa.call(this)}; var fOa=!1;g.z(gOa,g.T);gOa.prototype.Yh=function(){g.km(this.element,"display","none");this.J.logVisibility(this.j,!1)};g.z(MT,US);MT.prototype.ra=function(a,b){this.Z=[a,b];this.j.subscribe("dragmove",this.K,this);this.j.subscribe("dragend",this.G,this);this.C||g.gp(this.delay)}; MT.prototype.Fa=function(){if(this.D){this.C=!0;this.Ga=this.api.getPlaybackRate();this.Ka=this.api.getPlayerStateObject().isPaused();var a=this.speedmasterUserEdu;g.km(a.element,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Na);this.api.hideControls();this.api.playVideo();this.N&&(this.N.HA=!0);this.qa&&(this.qa.rK=!0)}}; MT.prototype.K=function(a,b){if(!this.C){a=[a,b];var c=this.Z;c&&a&&c.length===2&&a.length===2?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b=0?this.j.playbackRate:1}catch(a){return 1}}; g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a}; g.k.Wt=function(){return this.j.loop}; g.k.setLoop=function(a){this.j.loop=a}; g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)}; g.k.isPaused=function(){return this.j.paused}; g.k.isSeeking=function(){return this.j.seeking}; g.k.isEnded=function(){return this.j.ended}; g.k.QJ=function(){return this.j.muted}; g.k.mC=function(a){DF();this.j.muted=a}; g.k.hx=function(){return this.j.played||aG([],[])}; g.k.Dh=function(){try{var a=this.j.buffered}catch(b){}return a||aG([],[])}; g.k.tA=function(){return this.j.seekable||aG([],[])}; g.k.wI=function(){var a=this.j;return a.getStartDate?a.getStartDate():null}; g.k.getCurrentTime=function(){return this.j.currentTime}; g.k.setCurrentTime=function(a){this.j.currentTime=a}; g.k.getDuration=function(){return this.j.duration}; g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a}; g.k.pause=function(){this.j.pause()}; g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){}); return a}; g.k.Yk=function(){return this.j.readyState}; g.k.RJ=function(){return this.j.networkState}; g.k.Uh=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.Zh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless}; g.k.wv=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():CF()&&a.webkitSetPresentationMode(a.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.k.Zt=function(){var a=this.j;return new g.Kd(a.offsetLeft,a.offsetTop)}; g.k.getSize=function(){return g.wm(this.j)}; g.k.setSize=function(a){g.vm(this.j,a)}; g.k.getVolume=function(){return this.j.volume}; g.k.setVolume=function(a){DF();this.j.volume=a}; g.k.iP=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[a]=this.listener)}; g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)}; g.k.removeAttribute=function(a){this.j.removeAttribute(a)}; g.k.hasAttribute=function(a){return this.j.hasAttribute(a)}; g.k.dE=aa(33);g.k.LH=aa(35);g.k.MH=aa(37);g.k.Iz=aa(39);g.k.JE=function(){return jt(this.j)}; g.k.At=function(a){g.np(this.j,a)}; g.k.mF=function(a){return g.nm(this.j,a)}; g.k.HQ=function(){return g.te(document.body,this.j)}; g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks}; g.k.xa=function(){for(var a=g.v(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);wG.prototype.xa.call(this)}; g.k.oT=function(a){this.j.disableRemotePlayback=a};QT.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a}; QT.prototype.forEach=function(a){for(var b=this.j+1;b25?5E3:500;this.delay.start(a)}; XT.prototype.N=function(){this.G?(this.position+=1,this.position>15&&(this.G=!1)):(--this.position,this.position<=0&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.z(rOa,US);g.z(ZT,g.K);ZT.prototype.j=function(){var a=(0,g.uu)()-this.startTime;a=a=0;a--)this.features[a].dispose();this.features.length=0;g.K.prototype.xa.call(this)};eU.prototype.BR=function(){this.B=(0,g.uu)()}; eU.prototype.reset=function(){this.j=this.B=NaN}; eU.prototype.GR=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});iB("seek",c);g.hB({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||gB("pl_ss",this.B,"seek");gB(b,(0,g.uu)(),"seek")}this.reset()}};g.k=HOa.prototype;g.k.reset=function(){eB(this.timerName)}; g.k.tick=function(a,b){gB(a,b,this.timerName)}; g.k.Oi=function(a){return kB(a,this.timerName)}; g.k.Cv=function(a){WG(a,void 0,this.timerName)}; g.k.infoGel=function(a){g.hB(a,this.timerName)};g.z(LOa,g.iy);g.k=LOa.prototype;g.k.zl=function(a){return this.loop||!!a||this.index+1=0}; g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var b=0;b0)||IU(this,1,!0)}; g.k.KV=function(){this.K=!0;this.j.Nc(this.G);this.G=this.j.T(document,"mouseup",this.z5)}; g.k.z5=function(){this.K=!1;IU(this,8,!1);this.j.Nc(this.G);this.G=this.j.T(this.target,"mousedown",this.KV)}; g.k.LV=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ca=a.identifier,this.j.Nc(this.Z),this.Z=this.j.T(this.target,"touchend",this.A5,void 0,!0),IU(this,1024,!0)}; g.k.A5=function(a){if(a=a.changedTouches)for(var b=0;b1280||f>720)if(e=c.gh("maxresdefault.jpg"))break;if(d>640||f>480)if(e=c.gh("maxresdefault.jpg"))break; if(d>320||f>180)if(e=c.gh("sddefault.jpg")||c.gh("hqdefault.jpg")||c.gh("mqdefault.jpg"))break;if(e=c.gh("default.jpg"))break}g.$P(b)&&(b=new Image,b.addEventListener("load",function(){Qta()}),b.src=e?e:"",this.api.Gi().tick("ftr")); this.G.style.backgroundImage=e?"url("+e+")":""};g.z(g.MU,g.T);g.MU.prototype.resize=function(){}; g.MU.prototype.B=function(a){var b=this;this.C=!1;OPa(this);var c=a.kP,d=this.api.U();c!=="GENERIC_WITHOUT_LINK"||d.K?c==="TOO_MANY_REQUESTS"?(d=this.api.getVideoData(),this.Cd(PU(this,"TOO_MANY_REQUESTS_WITH_LINK",d.xl(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||d.K?this.api.U().L("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019",d&&(a=g.aj(a,{hl:d})),this.Cd(PU(this,"HTML5_SPS_UMP_STATUS_REJECTED", a))):this.api.U().L("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(a=g.aj(a,{hl:d})),this.Cd(PU(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.Cd(g.NU(a.errorMessage)):this.Cd(PU(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.aj(c, {hl:a})),this.Cd(PU(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.qc&&!d.D&&NPa(this,function(f){if(g.aT(f,b.api,!WP(b.api.U()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Ac("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});h.isFullscreen()&&h.toggleFullscreen()}})); if(this.C){var e=this.Ea("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),NPa(this,function(){b.api.logClick(e)}))}}; var MPa=/([^<>]+)<\/a>/;g.z(PPa,g.T);g.k=PPa.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.ib("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.aT(a,this.J,!0);this.J.logClick(this.element)}; g.k.onVideoDataChange=function(a,b){RPa(this,b);this.Ge&&SPa(this,this.Ge)}; g.k.B5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&RPa(this,b);this.j&&SPa(this,a.state);this.Ge=a.state}; g.k.md=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)}; g.k.Mb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.z(QU,g.T);QU.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.T.prototype.hide.call(this)}; QU.prototype.onStateChange=function(a){this.xd(a.state)}; QU.prototype.xd=function(a){if(g.U(a,128))var b=!1;else{var c;b=((c=this.api.Uc())==null?0:c.yu)?!1:g.U(a,16)||g.U(a,1)?!0:!1}b?this.j.start():this.hide()}; QU.prototype.B=function(){this.message.style.display="block"};g.z(RU,g.OS);RU.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(TPa(this),this.md()):(this.j&&this.logClick(),this.Mb()))}; RU.prototype.Ek=function(a){this.api.isMutedByMutedAutoplay()&&g.tz(a,2)&&this.Mb()}; RU.prototype.onClick=function(){this.api.unMute();this.logClick()}; RU.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.z(g.SU,g.EF);g.k=g.SU.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.sK=a.getPlayerSize();this.Gc(b);this.Sq();this.jc();this.api.publish("basechromeinitialized",this);this.XP()&&this.api.publish("standardControlsInitialized")}; g.k.onVideoDataChange=function(a,b){var c=this.QF!==b.videoId;if(c||a==="newdata"){a=this.api;a.isFullscreen()||(this.sK=a.getPlayerSize());var d;((d=this.api.getVideoData(1))==null?0:g.fR(d))&&this.Rq()}c&&(this.QF=b.videoId,c=this.Kg,c.Ga=3E3,IU(c,512,!0),this.Sq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.j2=572)}; g.k.dba=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.k.vC=function(){var a=this.api.bl()&&this.api.Ep(),b=this.api.OA();return this.QO||a||this.pQ||b}; g.k.Rq=function(){var a=!this.vC();g.rp(this.api.getRootNode(),"ytp-menu-shown",!a);var b;((b=this.api.getVideoData(1))==null?0:g.fR(b))&&g.rp(this.api.getRootNode(),"ytp-hide-controls",!a)}; g.k.VI=function(a){try{if(!g.te(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!$ba(a);)a=a===this.api.getRootNode()?null:g.se(a);return!!a}; g.k.yB=function(a){var b=this.api.getRootNode();g.rp(b,"ytp-autohide",a);g.rp(b,"ytp-autohide-active",!0);this.TW.start(a?250:100);a&&(this.EM=!1,g.pp(b,"ytp-touch-mode"));this.RO=!a;this.api.jM(!a)}; g.k.AR=function(){var a=this.api.getRootNode();g.rp(a,"ytp-autohide-active",!1)}; g.k.Kba=function(){this.dU=!0}; g.k.Jba=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.dU=!1,this.eU&&this.Nc(this.eU),this.iG===0&&TU(this,a)?(this.qQ(),this.pJ.start(),this.eU=this.T(this.api.qb(),"touchmove",this.Kba,void 0,!0)):this.pJ.stop();XPa(this)&&TU(this,a)&&!this.api.U().Z&&VPa(this);var b=this.iU.wk();if(!g.EP(this.api.U())&&AP&&YPa(this,a))b&&a.preventDefault();else if(this.EM=!0,g.np(this.api.getRootNode(),"ytp-touch-mode"),this.Kg.Gv(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b= this.api.getPlayerStateObject(),!(!this.api.ai()||g.U(b,2)&&g.kS(this.api)||g.U(b,64))){b=Date.now()-this.NZ;this.iG+=1;if(b<=350){this.BE=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=(this.iG-1)*10;d>0&&db*2&&d=650;this.Kg.resize();g.rp(b,"ytp-fullscreen",this.api.isFullscreen());g.rp(b,"ytp-large-width-mode",c);g.rp(b,"ytp-small-mode",this.Pg());g.rp(b,"ytp-tiny-mode",this.zK());g.rp(b,"ytp-big-mode",this.Gh());this.xg&&this.xg.resize(a)}; g.k.Ek=function(a){this.Gc(a.state);this.Sq()}; g.k.oC=aa(5);g.k.IP=function(){var a=!!this.QF&&!this.api.Df()&&!this.qS,b=this.api.getPresentingPlayerType()===2,c=this.api.U();if(b){if(q9a&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=EU(this.api.Ab());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.CD(b.player.U()):!1);return a}return a&&(c.zn||this.api.isFullscreen()||c.Qk)}; g.k.Sq=function(){var a=this.IP();this.uo!==a&&(this.uo=a,g.rp(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.k.Gc=function(a){var b=a.isCued()||this.api.ao()&&this.api.getPresentingPlayerType()!==3;b!==this.isCued&&(this.isCued=b,this.fU&&this.Nc(this.fU),this.fU=this.T(this.api.qb(),"touchstart",this.Jba,void 0,b));var c=this.Kg,d=a.isPlaying()&&!g.U(a,32)||this.api.EF();IU(c,128,!d);c=this.Kg;d=this.api.getPresentingPlayerType()===3;IU(c,256,d);c=this.api.getRootNode();g.U(a,2)?d=[T1.ENDED]:(d=[],g.U(a,8)?d.push(T1.PLAYING):g.U(a,4)&&d.push(T1.PAUSED),g.U(a,1)&&!g.U(a,32)&&d.push(T1.BUFFERING),g.U(a, 32)&&d.push(T1.SEEKING),g.U(a,64)&&d.push(T1.UNSTARTED));g.Kb(this.TN,d)||(g.qp(c,this.TN),this.TN=d,g.op(c,d));d=this.api.U();var e=g.U(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f=h==="3"&&!g.U(a,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:$8a(EU(this.api.Ab())))||this.api.OA()||g.EP(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.rp(c,"ytp-hide-controls",!f);g.rp(c,"ytp-native-controls",d.controlsType==="3"&&!b&&!e&&!this.pQ);g.U(a, 128)&&!g.EP(d)?(this.xg||(this.xg=new g.MU(this.api),g.Q(this,this.xg),g.KS(this.api,this.xg.element,4)),this.xg.B(a.eh),this.xg.show()):this.xg&&(this.xg.dispose(),this.xg=null)}; g.k.Dr=function(){return this.api.bl()&&this.api.Ep()?(this.api.lC(!1,!1),!0):this.api.Df()?(g.CS(this.api,!0),!0):!1}; g.k.onMutedAutoplayChange=function(a){this.pQ=a;this.Rq()}; g.k.Gh=function(){return!1}; g.k.Pg=function(){return!this.Gh()&&(this.api.getPlayerSize().width=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,(e&65)==65&&(a.x=d.right)&&(e&=-2),(e&132)==132&&(a.y=d.bottom)&&(e&= -5),a.xd.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.yd.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.hm(0,0,0,0);d.left= a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.rm(this.element,new g.Kd(d.left,d.top));g.ut(this.D);this.D.T(document,"contextmenu",this.saa);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.H5)}; g.k.saa=function(a){if(!a.defaultPrevented){var b=pt(a);g.te(this.element,b)||this.Mb();this.J.U().disableNativeContextMenu&&a.preventDefault()}}; g.k.onFullscreenToggled=function(){this.Mb();uQa(this)}; g.k.H5=function(){this.Mb()};g.z(cV,g.T);cV.prototype.onClick=function(){var a=this,b,c,d,e;return g.H(function(f){if(f.j==1)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.G(f,xQa(a,e),2);f.B&&wQa(a);a.api.logClick(a.element);g.va(f)})}; cV.prototype.Ta=function(){this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=vQa(this);g.rp(this.element,"ytp-copylink-button-visible",this.visible); g.py(this,this.visible);this.tooltip.Th();this.api.logVisibility(this.element,this.visible&&this.Z)}; cV.prototype.Kc=function(a){g.T.prototype.Kc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; cV.prototype.xa=function(){g.T.prototype.xa.call(this);g.pp(this.element,"ytp-copylink-button-visible")};g.z(dV,g.T);dV.prototype.show=function(){g.T.prototype.show.call(this);g.gp(this.B)}; dV.prototype.hide=function(){this.D.stop();this.C=0;g.pp(this.element,"ytp-chapter-seek");g.pp(this.element,"ytp-time-seeking");g.T.prototype.hide.call(this)}; dV.prototype.dH=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=a===-1?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.ip(this.B);this.D.start();this.element.setAttribute("data-side",a===-1?"back":"forward");var f=3*this.J.qb().getPlayerSize().height;e=this.J.qb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";a===1?(this.j.style.left="",this.j.style.right=e+"px"):a===-1&&(this.j.style.right="",this.j.style.left=e+"px");var h=f* 2.5;f=h/2;var l=this.Ea("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";a===1?(a=this.J.qb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):a===-1&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Ea("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");yQa(this,this.G?this.C:d)};g.z(AQa,tT);g.k=AQa.prototype;g.k.J5=function(a){this.Na||(this.Na=new AT(this.J),g.Q(this,this.Na));var b,c;if((b=this.Bb)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.Na.open(this.Bb.menu.menuRenderer,a.target),a.preventDefault()}; g.k.Daa=function(){this.J.ib("innertubeCommand",this.Xc);this.J.logClick(this.infoButton.element)}; g.k.Ky=function(){return!!this.j}; g.k.qM=function(){return!!this.j}; g.k.lG=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Bc&&this.J.ib("innertubeCommand",this.Bc),this.Mx(!1))}; g.k.Tu=function(){this.Mx(!0);var a,b;((a=this.j)==null?0:(b=a.bannerData)==null?0:b.dismissedStatusKey)&&this.Nb.push(this.j.bannerData.dismissedStatusKey);this.bC()}; g.k.HV=function(){this.bC();hV(this)}; g.k.Ida=function(a){var b=this,c;if(a.id!==((c=this.j)==null?void 0:c.identifier)){this.bC();c=g.v(this.Ga);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=(f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=((f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.dismissedStatusKey)||"";if(this.Nb.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.qa.show();sT(this);g.py(this.Fa,!d.stayInApp);MQa(this);CQa(this);gV(this);this.Bc=g.R(d.onTapCommand,Mx);if(e=g.R(d.menuOnTap,Mx))this.Bb=g.R(e,Cab);e=void 0;this.banner.update({thumbnail:(e=(d.thumbnailSources||[])[0])==null?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:FQa(this),priceDropReferencePrice:GQa(this),promotionText:EQa(this),priceA11yText:HQa(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:IQa(this)}); l=h=f=e=void 0;((e=d)==null?0:(f=e.hiddenProductOptions)==null?0:f.showDropCountdown)&&((h=d)==null?0:(l=h.hiddenProductOptions)==null?0:l.dropTimestampMs)&&(this.Kb=new g.fp(function(){LQa(b)},1E3),this.Fa.hide(),this.countdownTimer.show(),LQa(this)); this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&BQa(this)&&(this.Tb=new g.fp(function(){DQa(b)},1E3),DQa(this))}}}}; g.k.bC=function(){this.j&&(this.j=void 0,this.Ql())}; g.k.onVideoDataChange=function(a,b){var c=this;a==="dataloaded"&&hV(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=b==null?void 0:(d=b.getPlayerResponse())==null?void 0:(e=d.videoDetails)==null?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.R((h=b.getWatchNextResponse())==null?void 0:(l=h.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,Aab);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&& a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=b==null?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=b==null?void 0:b.trendingOfferEntityKey;var p;if(h=b==null?void 0:(p=b.dismissButton)==null?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=b==null?void 0:(q=b.dismissButton)== null?void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.uy(p));this.Xc=b==null?void 0:b.onClickCommand;this.Ga.length||(KQa(this,n),gV(this));var r;(r=this.Lc)==null||r.call(this);this.Lc=g.lR.subscribe(function(){KQa(c,n);gV(c)})}else{var t; (t=this.Lc)==null||t.call(this);this.bC()}}; g.k.xa=function(){hV(this);MQa(this);CQa(this);tT.prototype.xa.call(this)};g.z(RQa,g.T);RQa.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.z(SQa,g.OS);g.k=SQa.prototype;g.k.show=function(){g.OS.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);TQa(this,!0)}; g.k.hide=function(){g.OS.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);TQa(this,!1)}; g.k.getId=function(){return this.D}; g.k.Rp=function(){return this.itemData.length}; g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:((c=b.Wk)==null?void 0:(d=c.title)==null?void 0:d.content)||"",body:((e=b.Wk)==null?void 0:(f=e.bodyText)==null?void 0:f.content)||""});var h;a=((h=b.Wk)==null?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.v(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if((l=b.Wk)==null?0:l.ctaButtons)for(b=g.v(b.Wk.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.R(l.value, wab))l=new RQa(this.J,l,this.j),l.ue&&(this.itemData.push(l),l.Ja(this.items))}}; g.k.xa=function(){this.hide();g.OS.prototype.xa.call(this)};g.z(WQa,g.T);g.k=WQa.prototype;g.k.onVideoDataChange=function(a,b){VQa(this,b);this.Ge&&YQa(this,this.Ge)}; g.k.M5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&VQa(this,b);YQa(this,a.state);this.Ge=a.state}; g.k.T_=function(a){(this.D=a)?this.hide():this.j&&this.show()}; g.k.L5=function(){this.B||this.md();this.showControls=!0}; g.k.K5=function(){this.B||this.Mb();this.showControls=!1}; g.k.md=function(){var a;if((a=this.J)==null?0:a.L("embeds_web_enable_info_panel_sizing_fix")){var b;a=(b=this.J)==null?void 0:b.getPlayerSize();b=a.width<380;var c;a=a.height<(((c=this.J)==null?0:c.Zc())?400:280);var d,e;if((((d=this.J)==null?0:d.getPlayerStateObject().isCued())||((e=this.J)==null?0:g.U(e.getPlayerStateObject(),1024)))&&b&&a)return}this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))}; g.k.Mb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))}; g.k.Nda=function(){this.B=!1;this.showControls||this.Mb()};var ncb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ncb).reduce(function(a,b){a[ncb[b]]=b;return a},{}); var ocb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ocb).reduce(function(a,b){a[ocb[b]]=b;return a},{}); var pcb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(pcb).reduce(function(a,b){a[pcb[b]]=b;return a},{});var qcb,rcb;qcb=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];rcb=[{option:0,text:iV(0)},{option:.25,text:iV(.25)},{option:.5,text:iV(.5)},{option:.75,text:iV(.75)},{option:1,text:iV(1)}]; g.lV=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:qcb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:iV(.5)},{option:-1,text:iV(.75)},{option:0,text:iV(1)},{option:1,text:iV(1.5)},{option:2, text:iV(2)},{option:3,text:iV(3)},{option:4,text:iV(4)}]},{option:"background",text:"Background color",options:qcb},{option:"backgroundOpacity",text:"Background opacity",options:rcb},{option:"windowColor",text:"Window color",options:qcb},{option:"windowOpacity",text:"Window opacity",options:rcb},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:iV(.25)},{option:.5,text:iV(.5)},{option:.75,text:iV(.75)},{option:1,text:iV(1)}]}];var scb=[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.z(dRa,g.EF);g.k=dRa.prototype; g.k.OY=function(a){a.repeat||(this.C.rK=!1);var b=!1,c=a.keyCode,d=pt(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.cS(this.api.app)||scb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.jf&&!g.cS(this.api.app)&&(e=!1);if(c===9)b=!0;else{if(d)switch(c){case 32:case 13:if(d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT")b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||m!=="option"&&m!=="button"&&m.indexOf("menuitem")!==0||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b= d.getAttribute("role")==="slider";break;case 38:case 40:m=d.getAttribute("role"),d=c===38?d.previousSibling:d.nextSibling,m==="slider"?b=!0:e&&(m==="option"?(d&&d.getAttribute("role")==="option"&&d.focus(),f=b=!0):m&&m.indexOf("menuitem")===0&&(d&&d.hasAttribute("role")&&d.getAttribute("role").indexOf("menuitem")===0&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);XU(this.le,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0); XU(this.le,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.ai()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.ai()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&kV(this,!0);(b||h)&&this.Kg.Gv();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.N&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey, shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Ac("onKeyPress",a))}; g.k.PY=function(a){var b=a.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(b,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()}; g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.rK)return b;(c=g.IS(this.api.Ab()))&&(c=c.zv)&&c.Hb&&(c.LY(a),b=!0);switch(a){case 9:kV(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.D||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.U().jf){var l,m;a=(l=this.progressBar)== null?void 0:(m=l.B)==null?void 0:m.isEnabled;b=this.Vs(a)}}return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.rK=!1);var m=!1,n=this.api.U();if(n.jf&&!g.cS(this.api.app))return m;var p=g.IS(this.api.Ab());if(p&&(p=p.zv)&&p.Hb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.KY(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,"awesome".indexOf(this.B)===0?(m=!0,7===this.B.length&&dla(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m="awesome".indexOf(this.B)===0));if(!m&&(!g.cS(this.api.app)|| scb.includes(a))){var q=this.api.getVideoData(),r,t;p=(r=this.progressBar)==null?void 0:(t=r.B)==null?void 0:t.isEnabled;r=q?q.Qk:[];t=FX?d:c;switch(a){case 80:b&&!n.Ra&&(WU(this.le,nsa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Ra&&(WU(this.le,Cy(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.ai()&&(this.api.startSeekCsiAction(),this.j?eV(this.j,-1,10):WU(this.le,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill", W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.ai()&&(this.api.startSeekCsiAction(),this.j?eV(this.j,1,10):WU(this.le,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.ai()&&(this.api.startSeekCsiAction(),t?(t=aRa(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(zQa(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?eV(this.j,-1,5):WU(this.le,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.ai()&&(this.api.startSeekCsiAction(),t?(t=$Qa(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(zQa(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(this.j!=null?eV(this.j,1,5):WU(this.le,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),XU(this.le,this.api.getVolume(),!1)):(this.api.mute(),XU(this.le,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Ra:this.Vs(p);break;case 75:m=this.Vs(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),$Pa(this.le,!1),m=!0):this.api.ai()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&& (m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),$Pa(this.le,!0),m=!0):this.api.ai()&&(this.step(-1),m=!0);break;case 70:VMa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0); break;case 27:p?(this.progressBar.Uw(),m=!0):this.K()&&(m=!0)}if(n.controlsType!=="3")switch(a){case 67:g.BU(this.api.Ab())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),aQa(this.le,!n||n&&!n.displayName),m=!0);break;case 79:mV(this,"textOpacity");break;case 87:mV(this,"windowOpacity");break;case 187:case 61:mV(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:mV(this,"fontSizeIncrement",!0,!0)}var u;b||c||d||(a>=48&&a<=57?u=a-48:a>=96&&a<=105&&(u=a-96));u!=null&&this.api.ai()&& (this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(u/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Kg.Gv()}this.D||this.api.publish("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m}; g.k.step=function(a){this.api.ai();if(this.api.getPlayerStateObject().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,a>0?77:78)}}; g.k.Vs=function(a){if(!this.api.U().Ra){var b;var c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;if(d){var e;b=((e=g.R(d.miniplayer,Iab))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else b=!1;b&&this.api.ib("onExpandMiniplayer");a?this.progressBar.pP():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.le.BH(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.k.xa=function(){g.ip(this.G);g.EF.prototype.xa.call(this)};g.z(g.nV,g.T);g.nV.prototype.Ns=aa(11);g.nV.prototype.Ta=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.oi.isEmpty();a=g.EP(a)&&g.HS(this.J)&&g.U(this.J.getPlayerStateObject(),128);var c=this.J.getPlayerSize();this.visible=this.J.Pg()&&!a&&c.width>=240&&!g.SR(this.J.getVideoData())&&!b&&!this.j&&!this.J.Zc();g.rp(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Th();this.J.logVisibility(this.element,this.visible&&this.Z)}; g.nV.prototype.Kc=function(a){g.T.prototype.Kc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)}; g.nV.prototype.xa=function(){g.T.prototype.xa.call(this);g.pp(this.element,"ytp-overflow-button-visible")};g.z(eRa,g.OS);g.k=eRa.prototype;g.k.N5=function(a){a=pt(a);g.te(this.element,a)&&(g.te(this.j,a)||g.te(this.closeButton,a)||PS(this))}; g.k.Mb=function(){g.OS.prototype.Mb.call(this);this.J.xm(this.element)}; g.k.show=function(){this.Hb&&this.J.publish("OVERFLOW_PANEL_OPENED");g.OS.prototype.show.call(this);this.element.setAttribute("aria-modal","true");gRa(this,!0)}; g.k.hide=function(){g.OS.prototype.hide.call(this);this.element.removeAttribute("aria-modal");gRa(this,!1)}; g.k.onFullscreenToggled=function(a){!a&&this.wk()&&PS(this)}; g.k.isEmpty=function(){return this.actionButtons.length===0}; g.k.focus=function(){for(var a=g.v(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Hb){b.focus();break}};g.z(hRa,g.T);hRa.prototype.onClick=function(a){g.aT(a,this.api)&&this.api.playVideoAt(this.index)};g.z(iRa,g.OS);g.k=iRa.prototype;g.k.show=function(){g.OS.prototype.show.call(this);this.C.T(this.api,"videodatachange",this.AN);this.C.T(this.api,"onPlaylistUpdate",this.AN);this.AN()}; g.k.hide=function(){g.OS.prototype.hide.call(this);g.ut(this.C);this.updatePlaylist(null)}; g.k.AN=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Ea("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.Nc(this.D),this.D=null))}; g.k.cM=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.tE(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.v(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length; this.j=[];for(d=0;d=this.B&&!a.C&&!b.isAd()&&!this.api.Zc()}else a=!1;this.visible=a;g.py(this,this.visible);g.rp(this.element,"ytp-search-button-visible",this.visible);g.rp(this.element,"ytp-show-search-title",!this.api.Pg());this.api.logVisibility(this.element,this.visible&&this.Z)}; rV.prototype.Kc=function(a){g.T.prototype.Kc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(g.sV,g.T);g.k=g.sV.prototype;g.k.Os=aa(8);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){qRa(a,f)})}catch(f){f instanceof Error&&qRa(this,f)}else this.Ne.Dr(),PS(this.B,this.element,!1); this.api.logClick(this.element)}; g.k.Ta=function(){var a=this.api.U(),b=this.api.Zc();g.rp(this.element,"ytp-show-share-title",g.EP(a)&&!b);this.Ne.Gh()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.km(this.element,"right",a+"px")):b&&g.km(this.element,"right","0px");this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=pRa(this);g.rp(this.element,"ytp-share-button-visible",this.visible);g.py(this,this.visible);this.tooltip.Th();this.api.logVisibility(this.element,pRa(this)&&this.Z)}; g.k.Kc=function(a){g.T.prototype.Kc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; g.k.xa=function(){g.T.prototype.xa.call(this);g.pp(this.element,"ytp-share-button-visible")};g.z(sRa,g.OS);g.k=sRa.prototype;g.k.R5=function(a){a=pt(a);g.te(this.G,a)||g.te(this.closeButton,a)||PS(this)}; g.k.Mb=function(){g.OS.prototype.Mb.call(this);this.tooltip.xm(this.element);this.api.logVisibility(this.j,!1);for(var a=g.v(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)}; g.k.show=function(){var a=this.Hb;g.OS.prototype.show.call(this);this.Ta();a||this.api.ib("onSharePanelOpened")}; g.k.k$=function(){this.Hb&&this.Ta()}; g.k.Ta=function(){var a=this;g.np(this.element,"ytp-share-panel-loading");g.pp(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&nB(this.api.Em(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ma()||(g.pp(a.element,"ytp-share-panel-loading"),uRa(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.tE("Share link $URL",{URL:b}));ZMa(this.j);this.api.logVisibility(this.j,!0)}; g.k.onFullscreenToggled=function(a){!a&&this.wk()&&PS(this)}; g.k.focus=function(){this.j.focus()}; g.k.xa=function(){g.OS.prototype.xa.call(this);tRa(this)};g.z(xRa,tT);g.k=xRa.prototype;g.k.xa=function(){CRa(this);tT.prototype.xa.call(this)}; g.k.lG=function(a){a.target!==this.dismissButton.element&&(this.Mx(!1),this.J.ib("innertubeCommand",this.onClickCommand))}; g.k.Tu=function(){this.Wa=!0;this.Mx(!0);this.Ql()}; g.k.fba=function(a){this.N=a;this.Ql()}; g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Wa=!1,this.Ca=!0,this.Y=this.ra=!1,CRa(this),BRa(this,!1),this.B=this.j=!1,uV(this),yRa(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(b==null?0:(c=b.getPlayerResponse())==null?0:(d=c.videoDetails)==null?0:d.isLiveContent)this.Hf(!1);else{var e,f,h;b=g.R((e=b.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer, Aab);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=b==null?void 0:b.featuredProductsEntityKey)){f=g.lR.getState().entities;var l;if((l=FL(f,"featuredProductsEntity",e))==null?0:l.productsData){this.Hf(!1);return}}this.enabled=!0;if(!this.D){var m;l=(m=b.badgeInteractionLogging)==null?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!((n=b.dismissButton)==null||!n.trackingParams)){var p; this.J.setTrackingParams(this.dismissButton.element,((p=b.dismissButton)==null?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,BRa(this,!0),yRa(this),m=ARa(this,m),n=[],m.length>0&&n.push(m[0]),m.length>1&&(p=new g.T({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.Q(this,p),n.push(p),n.push.apply(n,g.w(m.slice(1)))),this.K=new g.T({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.Q(this,this.K),this.Ka.element.append(this.K.element));this.text=g.uy(b.text); var q;if(m=(q=b.dismissButton)==null?void 0:q.a11yLabel)this.Va=g.uy(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.kf()}NNa(this);sT(this);this.Ql()}}; g.k.Ky=function(){return!this.N&&this.enabled&&!this.Wa&&!this.J.Pg()&&!this.zb&&(this.Y||this.Ca)}; g.k.kL=function(a){tT.prototype.kL.call(this,a);if(this.j||this.B)this.timing&&tV(this.timing.preview)&&(this.j=!1,uV(this),this.B=!1,uV(this),this.J.qf("shopping_overlay_preview_collapsed"),this.J.qf("shopping_overlay_preview_expanded"),a=vV(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),tV(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.qf("shopping_overlay_expanded"),a.end=this.timing.expanded.endSec*1E3),this.J.kf([a])), this.ra=!0,sT(this);uV(this)}; g.k.Hf=function(a){(this.Y=a)?(rT(this),sT(this,!1)):(CRa(this),this.Ra.start());this.Ql()}; g.k.kf=function(a){var b=this.timing;a=(a===void 0?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;tV(d)&&(vRa(d,a),c.push(vV(d.startSec,d.endSec,"shopping_overlay_visible")));tV(e)&&(vRa(e,a),d=e.startSec+1,c.push(vV(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(vV(d,e.endSec,"shopping_overlay_preview_expanded")));tV(b)&&(vRa(b,a),c.push(vV(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.kf(c)};g.z(FRa,g.T); FRa.prototype.Ta=function(){var a=this.api.U();g.py(this,g.EP(a)&&this.api.Zc());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Hb);var b=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.zb&&!!b.profilePicture:g.EP(a)&&(c=!!b.videoId&&!!b.zb&&!!b.profilePicture&&!g.SR(b)&&!a.C&&!(a.Z&&this.api.getPlayerSize().width<200));var d=b.profilePicture;a=g.EP(a)?b.expandedTitle:b.author;d=d===void 0?"":d;a=a=== void 0?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.updateValue("channelLogoLabel",g.tE("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.np(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.pp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.logVisibility(this.channelName,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Rl);this.updateValue("expandedTitle",b.expandedTitle)};g.z(wV,g.OS);wV.prototype.show=function(){g.OS.prototype.show.call(this);this.j.start()}; wV.prototype.hide=function(){g.OS.prototype.hide.call(this);this.j.stop()}; wV.prototype.ju=function(a,b){a==="dataloaded"&&((this.yj=b.yj,this.Qf=b.Qf,isNaN(this.yj)||isNaN(this.Qf))?this.C&&(this.J.qf("intro"),this.J.removeEventListener(g.iE("intro"),this.K),this.J.removeEventListener(g.jE("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.iE("intro"),this.K),this.J.addEventListener(g.jE("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.gE(this.yj,this.Qf,{priority:9,namespace:"intro"}), this.J.kf([a]),this.C=!0))};g.z(xV,g.T);xV.prototype.onClick=function(){this.J.wv()}; xV.prototype.Ta=function(){var a=!0;g.EP(this.J.U())&&(a=a&&this.J.qb().getPlayerSize().width>=480);g.py(this,a);this.updateValue("icon",this.J.Zh()?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: {I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.z(HRa,g.T);HRa.prototype.xa=function(){this.j=null;g.T.prototype.xa.call(this)};g.z(yV,g.T);yV.prototype.onClick=function(){this.J.ib("innertubeCommand",this.B)}; yV.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()}; yV.prototype.K=function(){this.j.disabled=this.B==null;g.rp(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Sc()};g.z(zV,yV);zV.prototype.onClickCommand=function(a){g.R(a,kR)&&this.Sc()}; zV.prototype.updateVideoData=function(a,b){var c,d,e;a=g.R((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,AQ);var f;this.B=(f=g.R(a==null?void 0:a.playerBarActionButton,g.iJ))==null?void 0:f.command;yV.prototype.K.call(this)}; zV.prototype.Sc=function(){var a="",b=this.D.j,c,d=((c=this.J.getLoopRange())==null?void 0:c.type)==="clips";if(b.length>1&&!d){a=this.J.getProgressState().current*1E3;c=jV(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.J.ib("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;yV.prototype.N.call(this,a)};g.z(AV,g.T);AV.prototype.G=function(a){g.U(a.state,32)?KRa(this,this.api.qk()):this.Hb&&(g.U(a.state,16)||g.U(a.state,1))||this.j.hide()}; AV.prototype.Cg=function(){var a=this.api.getPlayerStateObject();(g.U(a,32)||g.U(a,16))&&LRa(this)}; AV.prototype.K=function(){this.C=NaN;LRa(this)}; AV.prototype.hide=function(){this.B&&KRa(this,null);g.T.prototype.hide.call(this)};g.z(MRa,g.T);g.k=MRa.prototype;g.k.onClick=function(){var a=this;if(this.J.U().zb||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.rF(b)})}catch(b){this.rF(b)}}else PS(this.message,this.element,!0)}; g.k.rF=function(a){String(a).includes("fullscreen error")?g.Kx(a):g.Jx(a);this.MR()}; g.k.MR=function(){this.disable();this.message.md(this.element,!0)}; g.k.Zx=function(){it()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}; g.k.h7=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=window.screen.width*.9,b=window.screen.height*.9,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.MR()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(ft(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.OS(this.J,{I:"div",La:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",W:{href:"https://support.google.com/youtube/answer/6276924", target:this.J.U().Y},va:b[2]},b[4]]},100,!0);this.message.hide();g.Q(this,this.message);this.message.subscribe("show",function(c){a.Ne.FE(a.message,c)}); g.KS(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.Ta=function(){var a=VMa(this.J),b=this.J.U().Z&&this.J.getPlayerSize().width<250;g.py(this,a&&!b);this.J.logVisibility(this.element,this.Hb)}; g.k.hn=function(a){if(a){var b={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g", S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.iS(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.Kx(c)})}else b={I:"svg", W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3", V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.iS(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});this.Ne.Re().Th()}; g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.T.prototype.xa.call(this)};g.z(BV,g.T);BV.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=this.j>0?1:-1,b=Math.abs(this.j),c=this.J.Fi().Rw;c&&eV(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],this.j<0&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.w(a)),g.gp(this.B))};g.z(CV,yV);CV.prototype.onClickCommand=function(a){g.R(a,yab)&&this.Sc()}; CV.prototype.updateVideoData=function(){var a,b;this.B=(a=ORa(this))==null?void 0:(b=a.onTap)==null?void 0:b.innertubeCommand;yV.prototype.K.call(this)}; CV.prototype.Sc=function(){var a="",b=this.D.K,c,d=(c=ORa(this))==null?void 0:c.headerTitle;c=d?g.uy(d):"";var e;d=((e=this.J.getLoopRange())==null?void 0:e.type)==="clips";b.length>1&&!d&&(a=this.J.getProgressState().current*1E3,e=ZQa(b,a),a=e!=null?b[e].title:c,e!=null&&e!==this.currentIndex&&(this.J.ib("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));yV.prototype.N.call(this,a)};g.z(DV,g.T);DV.prototype.onClick=function(){this.J.ib("onCollapseMiniplayer");this.J.logClick(this.element)}; DV.prototype.Ta=function(){this.visible=!this.J.isFullscreen();g.py(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)}; DV.prototype.Kc=function(a){g.T.prototype.Kc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.z(PRa,g.T);g.k=PRa.prototype;g.k.OV=function(a){this.visible=a.width>=300||this.Fa;g.py(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)}; g.k.Raa=function(){this.J.U().Va?this.J.isMuted()?this.J.unMute():this.J.mute():PS(this.message,this.element,!0);this.J.logClick(this.element)}; g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.U();a=d===0?1:a>50?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?SRa(this,a):uOa(this.Ga,function(l){SRa(c,f+(c.G-f)*l)},250); this.G=a}d=d===0?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?TRa(this,d):uOa(this.qa,function(l){TRa(c,h+(c.D-h)*l)},250); this.D=d}e.Va&&(e=g.iS(this.J,"Mute","m"),d=g.iS(this.J,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.Th())}; g.k.Kc=function(a){g.T.prototype.Kc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)}; var QRa=["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"],RRa=["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.z(g.EV,g.T);g.EV.prototype.onStateChange=function(a){this.xd(a.state)}; g.EV.prototype.xd=function(a){var b=g.DR(this.J.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.U(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.iS(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=g.iS(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}a=== 3?this.update({title:b,icon:URa(a)}):(this.update({title:b}),(b=URa(a))&&this.j&&this.j!==3?wOa(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Th();this.j=a}}; g.EV.prototype.onVideoDataChange=function(){g.rp(this.element,"ytp-play-button-playlist",g.HS(this.J))}; g.EV.prototype.Vs=function(a){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var b={},c;if((c=this.J.getVideoData())==null?0:c.G)b.cttAuthInfo={token:this.J.getVideoData().G,videoId:this.J.getVideoData().videoId};iB("direct_playback",b);this.J.Gi().timerName="direct_playback"}else this.j===3&&fU(this.J.Gi());this.J.playVideo()}this.J.isMinimized()&&(a==null?void 0:a.type)=== "click"&&this.element.blur()};g.z(g.FV,g.T);g.k=g.FV.prototype;g.k.onVideoDataChange=function(){WRa(this);this.D&&(this.Nc(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.S5);this.C=XRa(this);VRa(this);this.BN(this.J.qb().getPlayerSize())}; g.k.BN=function(a){a=a===void 0?this.J.qb().getPlayerSize():a;var b,c=((b=this.J.getLoopRange())==null?void 0:b.type)==="clips";a=(g.HS(this.J)||this.j&&g.LS(this.J)&&!this.J.L("web_hide_next_button")||YRa(this))&&!c&&(this.j||a.width>=400);g.py(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.aT(a,this.J):a.preventDefault();b&&(this.j&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.j?(fU(this.J.Gi()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(fU(this.J.Gi()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))}; g.k.S5=function(){var a=XRa(this);a!==this.C&&(this.C=a,VRa(this))}; g.k.xa=function(){this.B&&(this.B(),this.B=null);WRa(this);g.T.prototype.xa.call(this)};g.z($Ra,g.T);g.k=$Ra.prototype;g.k.U5=function(a){this.DN(a.pageX);this.CN(a.pageX+a.deltaX);aSa(this)}; g.k.DN=function(a){this.qa=a-this.Na}; g.k.CN=function(a){a-=this.Na;!isNaN(this.qa)&&this.thumbnails.length>0&&(this.Y=a-this.qa,this.thumbnails.length>0&&this.Y!==0&&(this.C=this.N+this.Y,a=fSa(this,this.C),this.C<=this.j/2&&this.C>=eSa(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.km(this.Ca,"transform","translateX("+(this.C-this.j/2)+"px)"),ZRa(this,a)):this.C=this.N))}; g.k.T5=function(){this.ra&&(this.ra.HA=!0);var a=(0,g.uu)()-this.Va<300;if(Math.abs(this.Y)<5&&!a){this.Va=(0,g.uu)();a=this.qa+this.Y;var b=this.j/2-a;this.DN(a);this.CN(a+b);aSa(this);this.api.logClick(this.G)}aSa(this)}; g.k.DB=function(){GV(this,this.api.getCurrentTime())}; g.k.play=function(a){this.api.seekTo(fSa(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.jc=function(a,b){this.Na=a;this.j=b;GV(this,this.api.getCurrentTime())}; g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ra=this.api.getCurrentTime(),ZRa(this,this.Ra),g.rp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ka=this.T(this.element,"wheel",this.U5),this.logVisibility(this.isEnabled))}; g.k.disable=function(){this.isEnabled=!1;this.hide();g.rp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ka&&this.Nc(this.Ka);this.logVisibility(this.isEnabled)}; g.k.reset=function(){this.disable();this.D=[];this.Fa=!1}; g.k.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.G,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)}; g.k.xa=function(){for(;this.B.length;){var a=void 0;(a=this.B.pop())==null||a.dispose()}g.T.prototype.xa.call(this)}; g.z(bSa,g.T);g.z(cSa,g.T);g.z(gSa,g.T);g.z(HV,g.T);HV.prototype.Ib=function(a){return a==="PLAY_PROGRESS"?this.K:a==="LOAD_PROGRESS"?this.G:a==="LIVE_BUFFER"?this.D:this.B};jSa.prototype.update=function(a,b,c,d){c=c===void 0?0:c;this.width=b;this.D=c;this.j=b-c-(d===void 0?0:d);this.position=g.Hd(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.z(kSa,g.T);g.z(g.KV,g.ry);g.k=g.KV.prototype; g.k.l3=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.qf("timedMarkerCueRange");nSa(this);for(var c=g.v(b.jf),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=this.Na[d])==null?void 0:e.markerType;e=void 0;var h=(e=this.Na[d])==null?void 0:e.markers;if(!h)break;if(f==="MARKER_TYPE_TIMESTAMPS"){a=g.v(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new kSa;h=void 0;f.title=((h=e.title)==null?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j= Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=(l=(h=e.onActive)==null?void 0:h.innertubeCommand)!=null?l:void 0;tSa(this,f)}uSa(this,this.K);a=this.K;f=this.Ae;e=[];h=null;for(l=0;lm&&(h.end=m);m=bRa(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.kf(e);this.Pf=this.Na[d];a=!0}else if(f==="MARKER_TYPE_HEATMAP"){d=this.Na[d];p=n=e=m=l=h=void 0;if(d&& d.markers){f=(e=(p=d.markersMetadata)==null?void 0:(n=p.heatmapMetadata)==null?void 0:n.minHeightDp)!=null?e:0;e=(h=(m=d.markersMetadata)==null?void 0:(l=m.heatmapMetadata)==null?void 0:l.maxHeightDp)!=null?h:60;h=this.j.length;l=null;for(m=0;m=p&&u<=q&&n.push(t)}e>0&&(this.ra.style.height= e+"px");p=this.G[m];q=n;t=f;var x=e,B=m===0;B=B===void 0?!1:B;hSa(p,x);r=q;u=p.j;B=B===void 0?!1:B;var E=1E3/r.length,F=[];F.push({x:0,y:100});for(var I=0;I0&&(l=n[n.length-1])}g.LV(this)}e= void 0;f=[];if(d=(e=d.markersDecoration)==null?void 0:e.timedMarkerDecorations)for(d=g.v(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:(h=e.visibleTimeRangeStartMillis)!=null?h:-1,visibleTimeRangeEndMillis:(l=e.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(m=e.decorationTimeMillis)!=null?m:NaN,label:e.label?g.uy(e.label):""});d=f;this.heatMarkersDecorations=d}}b.xW=this.K;g.rp(this.element,"ytp-timed-markers-enabled",a);return a}; g.k.jc=function(){g.LV(this);OV(this);uSa(this,this.K);if(this.B){var a=g.tm(this.element).x||0;this.B.jc(a,this.N)}}; g.k.onClickCommand=function(a){if(a=g.R(a,kR)){var b=a.key;a.isVisible&&b&&ySa(this,b)}}; g.k.hca=function(a){this.api.ib("innertubeCommand",this.Ae[a.id])}; g.k.Sc=function(){OV(this);var a=this.api.getCurrentTime();(athis.clipEnd)&&this.WL()}; g.k.V5=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.ju=function(a,b){this.updateVideoData(b,a==="newdata")}; g.k.i9=function(){this.ju("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=b===void 0?!1:b;var c=!!a&&a.ue();c&&(RR(a)||ESa(this)?this.jf=!1:this.jf=a.allowLiveDvr,g.rp(this.api.getRootNode(),"ytp-enable-live-buffer",!(a==null||!RR(a))));PSa(this,this.api.ai());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;SV(this);for(PV(this,this.qa,this.fb);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.Bb={};var d;(d=this.B)==null||d.reset();XV(this);g.rp(this.api.getRootNode(),"ytp-fine-scrubbing-exp", JV(this))}else this.WL();this.Yh()}if(a){var e;d=((e=this.Eb)==null?void 0:e.type)==="clips";if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.BQ(e);c=pSa(e);var f;e=b!=null||c!=null&&c.length>0||((f=e.zw)==null?void 0:f.length)>0}if(e&&!d){f=this.api.getVideoData();d=g.BQ(f);e=!1;if(d==null?0:d.markersMap){e=this.api.getVideoData();var h;e.jw=((h=d.visibleOnLoad)==null?void 0:h.key)||e.jw;h=g.v(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.Bb[d.key]=d.value, d.value.onChapterRepeat&&(e.d4=d.value.onChapterRepeat));e.jw!=null&&ySa(this,e.jw);e=!0}var l;if(((l=f.zw)==null?void 0:l.length)>0){l=g.lR.getState().entities;h=g.v(f.zw);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=(c=FL(l,"macroMarkersListEntity",d))==null?void 0:c.markersList;var m=c=void 0;if(((c=b)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((m=b)==null?void 0:m.markerType)==="MARKER_TYPE_HEATMAP")this.Na[d]=b}e=this.l3()||e}!e&&(l=pSa(f))&&(rSa(this,l),f.Qk=this.j,qSa(this)); FSa(this,null);a.GU&&this.G.length===0&&(a=a.GU,l=a.key,a.isVisible&&l&&ySa(this,l))}else lSa(this),nSa(this)}OV(this)}; g.k.j9=function(a){this.Y&&!g.U(a.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var b;((b=this.B)==null?0:b.isEnabled)&&g.U(a.state,8)&&this.api.pauseVideo()}; g.k.PV=function(a){var b=!!this.Eb!==!!a,c=this.Eb;this.Eb=a;FSa(this,c);(a==null?void 0:a.type)!=="clips"&&a||(a?(this.updateValue("clipstarticon",jsa()),this.updateValue("clipendicon",jsa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",bsa()),this.updateValue("clipendicon",asa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(), !0),g.LV(this)),SV(this));PV(this,this.qa,this.fb)}; g.k.kba=function(a,b,c){var d=g.tm(this.element),e=NV(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=Iz(this.C,Number(c.getAttribute("data-position")),0)*e+g.tm(this.progressBar).x);this.Xa.x=a-d.x;this.Xa.y=b-d.y;a=NV(this);c=RV(this,a);b=0;var m;if((m=this.api.getVideoData())==null?0:RR(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=Iz(this.C,m)*NV(this).j),b=this.C.B; ESa(this)&&(b=this.C.B);m=f||g.Cz(this.jf?c-this.C.j:c-b);b=a.position+this.Sf;c-=this.api.Ec();var n;if((n=this.B)==null||!n.isEnabled)if(this.api.qk()){if(this.j.length>1){n=QV(this,this.Xa.x,!0);if(!this.Eb)for(d=0;d1)for(d=0;d0)for(n=this.Xa.x,d=g.v(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=MV(this,e.timeRangeStartMillis/ (this.C.j*1E3),NV(this)),g.rp(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.Pf?(n=ZQa(this.K,c*1E3),n=n!=null?this.K[n].title:""):(n=jV(this.j,c*1E3),n=this.j[n].title):(n=jV(this.j,c*1E3),n=this.j[n].title);n||(l+=16*d);this.tooltip.scale===.6&&(this.api.L("web_cairo_modern_miniplayer")?(l=this.api.qb().getPlayerSize().height-225,l=n?l+110:l+110+16):l=n?110:126);d=jV(this.j,c*1E3);this.Wa=GSa(this,c,d)?d:GSa(this, c,d+1)?d+1:-1;g.rp(this.api.getRootNode(),"ytp-progress-bar-snap",this.Wa!==-1&&this.j.length>1);d=!1;e=g.v(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=c*1E3;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.Cz(h.decorationTimeMillis/1E3),d=!0)}this.Ed!==d&&(this.Ed=d,this.api.logVisibility(this.Dd,this.Ed));g.rp(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=this.tooltip.scale*320;e=n.length*(this.D?8.55:5.7);e=e<=d?e: d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.N-a.position&&(d=2);this.api.U().Z&&(l-=10);this.G.length&&this.G[0].ue&&(l-=14*(this.D?2:1),this.Fa||(this.Fa=!0,this.api.logVisibility(this.ra,this.Fa)));var q;if(JV(this)&&(((q=this.B)==null?0:q.isEnabled)||this.Va>0)){var r;l-=((r=this.B)==null?0:r.isEnabled)?UV(this):this.Va}q=void 0;JV(this)&&(q="Pull up for precise seeking",this.Ga||(this.Ga=!0,this.api.logVisibility(this.Td,this.Ga)));this.tooltip.vM(b,c,m,!!f,l,n,d,q)}else this.tooltip.vM(b, c,m,!!f,l);g.np(this.api.getRootNode(),"ytp-progress-bar-hover");DSa(this)}; g.k.jba=function(){this.Yh();g.pp(this.api.getRootNode(),"ytp-progress-bar-hover");this.Fa&&(this.Fa=!1,this.api.logVisibility(this.ra,this.Fa));this.Ga&&(this.Ga=!1,this.api.logVisibility(this.Td,this.Ga))}; g.k.hba=function(a,b){JV(this)&&this.B&&(this.B.Fa?GV(this.B,this.api.getCurrentTime()):dSa(this.B),this.B.show(),g.rp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.ke&&(this.ke.dispose(),this.ke=null);this.Tf=b;this.j.length>1&&this.Wa!==-1?this.api.seekTo(this.j[this.Wa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(RV(this,NV(this)),!1,void 0,void 0,7);g.np(this.element,"ytp-drag");(this.rf=this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.k.lba=function(){if(JV(this)&&this.B){var a=UV(this);this.Va>=a*.5?(this.B.enable(),GV(this.B,this.api.getCurrentTime()),OSa(this,a)):XV(this)}if(g.U(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var b;if((b=this.B)==null?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.j.length>1&&this.Wa!==-1)this.api.seekTo(this.j[this.Wa].startTime/1E3,void 0,void 0,void 0,7);else{a=RV(this,NV(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.v(this.heatMarkersDecorations); for(var c=b.next();!c.done;c=b.next())c=c.value,a*1E3>=c.visibleTimeRangeStartMillis&&a*1E3<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Dd)}g.pp(this.element,"ytp-drag");this.rf&&!g.U(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.k.mba=function(a,b){a=NV(this);a=RV(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;JV(this)&&((c=this.B)==null?0:c.Fa)&&(GV(this.B,a),this.B.isEnabled||(this.Va=g.Hd(this.Tf-b-10,0,UV(this)),OSa(this,this.Va)))}; g.k.Yh=function(){this.tooltip.rQ()}; g.k.Q_=function(){this.Eb||(this.updateValue("clipstarticon",$ra()),this.updateValue("clipendicon",$ra()),g.np(this.element,"ytp-clip-hover"))}; g.k.P_=function(){this.Eb||(this.updateValue("clipstarticon",bsa()),this.updateValue("clipendicon",asa()),g.pp(this.element,"ytp-clip-hover"))}; g.k.WL=function(){this.clipStart=0;this.clipEnd=Infinity;SV(this);PV(this,this.qa,this.fb)}; g.k.Mea=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ka[c]){var d=g.me("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ka[c]=b;this.Nb[c]=d;g.lp(d,b.style);HSa(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else NSa(this,b)}; g.k.dda=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())NSa(this,b.value)}; g.k.Uw=function(a){this.B&&(this.B.onExit(a!=null),XV(this))}; g.k.pP=function(a){this.B&&(this.B.play(a!=null),XV(this))}; g.k.xa=function(){PSa(this,!1);g.ry.prototype.xa.call(this)};g.z(YV,g.T);YV.prototype.isActive=function(){return!!this.J.getOption("remote","casting")}; YV.prototype.Ta=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=this.J.getOption("remote","receivers").length>1);g.py(this,a&&this.J.qb().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.Hb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,W:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.Zra())}g.rp(this.element,"ytp-remote-button-active",this.isActive())}}; YV.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.wk())a.Mb();else{a.initialize();a:{var c=g.v(a.Oe.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.priority===1){c=d;break a}c=null}c&&(c.open(),a.md(b));a.md(b)}}this.J.logClick(this.element)};g.z(ZV,g.T);ZV.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.py(this,a);this.J.logVisibility(this.element,a)}; ZV.prototype.C=function(){if(this.Fb.Hb)this.Fb.Mb();else{var a=g.BU(this.J.Ab());a&&!a.loaded&&(a.Sh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Fb.md(this.element)}}; ZV.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=b!==2&&b!==3,d=g.JS(this.J),e=c&&!!g.IS(this.J.Ab());b=e&&d.displayMode===1;d=e&&d.displayMode===2;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.rp(this.element,"ytp-hdr-quality-badge",a);g.rp(this.element,"ytp-hd-quality-badge",!a&&(c==="hd1080"||c==="hd1440"));g.rp(this.element,"ytp-4k-quality-badge",!a&&c==="hd2160");g.rp(this.element,"ytp-5k-quality-badge",!a&&c==="hd2880");g.rp(this.element,"ytp-8k-quality-badge", !a&&c==="highres");g.rp(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.rp(this.element,"ytp-3d-badge",!a&&e&&d)};g.z($V,ZS);$V.prototype.isLoaded=function(){var a=g.HU(this.J.Ab());return a!==void 0&&a.loaded}; $V.prototype.Ta=function(){g.HU(this.J.Ab())!==void 0&&this.J.getPresentingPlayerType()!==3?this.j||(this.Fb.Tc(this),this.j=!0):this.j&&(this.Fb.ph(this),this.j=!1);$S(this,this.isLoaded())}; $V.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)}; $V.prototype.xa=function(){this.j&&this.Fb.ph(this);ZS.prototype.xa.call(this)};g.z(aW,g.DT);aW.prototype.Ta=function(){var a=this.J.getAvailableAudioTracks();a.length>1?(g.ET(this,g.Bl(a,this.j)),this.tracks=g.Nb(a,this.j,this),this.countLabel.Cd(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Ri(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)}; aW.prototype.Ig=function(a){g.DT.prototype.Ig.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Fb.bj()}; aW.prototype.j=function(a){return a.toString()};g.z(bW,ZS); bW.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3&&g.LS(this.J))this.j||(this.Fb.Tc(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.ph(this);this.j=!1;a=g.v(this.C);for(var b=a.next();!b.done;b= a.next())this.Nc(b.value)}}; bW.prototype.D=function(a){$S(this,a!==1)}; bW.prototype.onSelect=function(a){this.J.aM(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))}; bW.prototype.xa=function(){this.j&&this.Fb.ph(this);ZS.prototype.xa.call(this)};g.z(RSa,g.QS);RSa.prototype.onClick=function(a){a.preventDefault();var b,c;(b=g.eS(this.J))==null||(c=b.Hm())==null||c.Mb();var d,e;(d=g.eS(this.J))==null||(e=d.eY())==null||e.md(a.target)};g.z(SSa,g.DT);g.k=SSa.prototype; g.k.yD=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3){this.Ca=this.J.Ut();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.$R(this.J,"getAvailableQualityData",[]);b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);a[a.length-1]==="auto"&&b.push("auto");this.Ga=new Set(a)}else if(this.G){c=g.$R(this.J,"getAvailableQualityData",[]);b=[];c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Y[d.quality]= d,d.quality&&b.push(d.quality);a[a.length-1]==="auto"&&b.push("auto")}else b=a;g.CMa(this.J)&&this.J.lx()&&b.unshift("missing-qualities");DMa(this.J)&&b.unshift("inline-survey");g.ET(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.ra.Hh();c=!g.YP(this.J.U())||!(a===void 0?0:a)||!(c===void 0||c);a=this.B;c=c===void 0?!1:c;c=c===void 0?!1:c;a.XY&&(a=a.Ea("ytp-panel-footer"),g.rp(a,"ytp-panel-hide-footer",c));if(b.length){this.QV();this.enable(!0);return}}this.enable(!1)}; g.k.QV=function(){if(this.j){var a=this.J.getPreferredQuality();this.Ga.has(a)&&(this.N=this.J.getPlaybackQuality(),this.qa=this.J.getPlaybackQualityLabel(),a==="auto"?(this.Ri(a),this.Cd(this.Zk(a))):this.Ri(this.qa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.N=this.J.getPlaybackQuality(),this.Ri(a),a==="auto"&&this.Cd(this.Zk(a)))}; g.k.Ig=function(a){if(a!=="missing-qualities"){g.DT.prototype.Ig.call(this,a);var b=this.j?this.D[a]:this.Y[a];var c=b==null?void 0:b.quality,d=b==null?void 0:b.formatId,e=b==null?void 0:b.paygatedQualityDetails;b=e==null?void 0:e.endpoint;if(e){var f;e=(f=this.options[a])==null?void 0:f.element;this.J.logClick(e)}if(this.j){var h,l;if((h=g.R(b,g.uab))==null?0:(l=h.popup)==null?0:l.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c, d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if((m=g.R(b,g.uab))==null?0:(n=m.popup)==null?0:n.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Fb.Mb();this.yD()}}; g.k.open=function(){for(var a=g.v(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe((c=b)==null?void 0:c.element)&&(c=void 0,this.J.logVisibility((c=b)==null?void 0:c.element,!0))}g.DT.prototype.open.call(this);this.J.logClick(this.element)}; g.k.Cz=function(a,b,c){var d=this;if(a==="missing-qualities")return new g.QS({I:"a",La:["ytp-menuitem"],W:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",La:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.Zk(a));if(a!=="inline-survey"){var e,f=(e=this.j?this.D[a]:this.Y[a])==null?void 0:e.paygatedQualityDetails;e=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;b=g.DT.prototype.Cz.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",va:"Looks good?"}];c=g.v([!0,!1]);f=c.next();for(e={};!f.done;e={tQ:void 0},f=c.next())e.tQ=f.value,f=new g.T({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.tQ?isa():dsa()],W:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.tQ,m=g.dS(d.J.app);m&&(m.oa("iqsr",{tu:l}),m.getVideoData().K3=!0);d.Fb.Mb();d.yD()}}(e)),a.push(f); return new g.QS({I:"div",S:"ytp-menuitem",W:{"aria-disabled":"true"},V:[{I:"div",La:["ytp-menuitem-label"],V:a}]},b)}; g.k.Zk=function(a,b){b=b===void 0?!1:b;if(a==="missing-qualities")return{I:"div",va:"Missing options?"};if(a==="inline-survey")return"";var c=this.G||this.j?[VSa(this,a,b,!1)]:[USa(this,a)];var d=this.J.getPreferredQuality();b||d!=="auto"||a!=="auto"||(c.push(" "),this.j?c.push(VSa(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(VSa(this,this.N,b,!0,["ytp-menu-label-secondary"])):c.push(USa(this,this.N,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.z(cW,g.T);cW.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.j);WSa(this,this.j)}; cW.prototype.G=function(){XSa(this,Number(this.B.value))};g.z(dW,cW);dW.prototype.G=function(){cW.prototype.G.call(this);this.C&&(YSa(this),this.qa())}; dW.prototype.Y=function(){this.J.setPlaybackRate(this.j,!0)}; dW.prototype.updateValues=function(){XSa(this,this.J.getPlaybackRate());YSa(this)};g.z(eW,g.T);g.k=eW.prototype;g.k.init=function(){this.Iy(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.C)}; g.k.Y5=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.N;break;case 39:case 38:b=this.N;break;default:return}this.Iy(this.j+b);a.preventDefault()}}; g.k.W5=function(a){var b=this.j;b+=(a.deltaX||-a.deltaY)<0?-this.Y:this.Y;this.Iy(b);a.preventDefault()}; g.k.X5=function(a){a=(a-g.tm(this.D).x)/this.qa*this.range+this.B;this.Iy(a)}; g.k.Iy=function(a,b){b=b===void 0?"":b;a=g.Hd(a,this.B,this.C);b===""&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Fa)+"px";this.j=a}; g.k.focus=function(){this.Ka.focus()};g.z(fW,eW);fW.prototype.Ca=function(){this.J.setPlaybackRate(this.j,!0)}; fW.prototype.Iy=function(a){eW.prototype.Iy.call(this,a,$Sa(this,a).toString());this.G&&(ZSa(this),this.Ga())}; fW.prototype.updateValues=function(){var a=this.J.getPlaybackRate();$Sa(this,this.j)!==a&&(this.Iy(a),ZSa(this))};g.z(aTa,g.ry);aTa.prototype.focus=function(){this.j.focus()};g.z(bTa,uT);g.z(cTa,g.DT);g.k=cTa.prototype;g.k.Zk=function(a){return a==="1"?"Normal":a.toLocaleString()}; g.k.Ta=function(){var a=this.J.getPresentingPlayerType();this.enable(a!==2&&a!==3);gTa(this)}; g.k.mz=function(a){g.DT.prototype.mz.call(this,a);a?(this.N=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),gTa(this),eTa(this,this.J.getPlaybackRate())):(this.Nc(this.N),this.N=null)}; g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||fTa(this,b);eTa(this,a)}; g.k.Cz=function(a,b,c){if(a===this.j&&hTa(this.J)){var d={I:"div",S:"ytp-speed-slider-menu-footer",V:[new dW(this.J)]};return g.DT.prototype.Cz.call(this,a,b,c,d)}return g.DT.prototype.Cz.call(this,a,b,c)}; g.k.Ig=function(a){g.DT.prototype.Ig.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Fb.bj()}; g.k.wN=function(a){a===this.j&&gW(this.J)&&!hTa(this.J)?(a=new bTa(this.J),g.yT(this.Fb,a)):g.DT.prototype.wN.call(this,a)};g.z(jTa,g.DT);g.k=jTa.prototype;g.k.Ri=function(a){g.DT.prototype.Ri.call(this,a)}; g.k.RV=function(a){return a.option.toString()}; g.k.getOption=function(a){return this.settings[a]}; g.k.Zk=function(a){return this.getOption(a).text||""}; g.k.Ig=function(a){g.DT.prototype.Ig.call(this,a);this.publish("settingChange",this.N,this.settings[a].option)};g.z(hW,g.vT);hW.prototype.wi=function(a){for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Pu[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ri(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; hW.prototype.Fk=function(a,b){this.publish("settingChange",a,b)};g.z(iW,g.DT);iW.prototype.j=function(a){return a.languageCode}; iW.prototype.Zk=function(a){return this.languages[a].languageName||""}; iW.prototype.Ig=function(a){this.publish("select",a);this.J.logClick(this.element);g.zT(this.Fb)};g.z(mTa,g.DT);g.k=mTa.prototype;g.k.zD=function(a){return g.Gc(a)?"__off__":a.displayName}; g.k.Zk=function(a){return a==="__off__"?"Off":a==="__translate__"?"Auto-translate":a==="__contribute__"?"Add subtitles/CC":a==="__correction__"?"Suggest caption corrections":(a==="__off__"?{}:this.tracks[a]).displayName}; g.k.Ig=function(a){if(a==="__translate__")this.j.open();else if(a==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.XL(this.J.U(),this.J.getVideoData());g.iA(b)}else if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=nTa(this);jW(this,c);g.DT.prototype.Ig.call(this,this.zD(c));var d,e;c=(b=this.J.getVideoData().getPlayerResponse())==null?void 0:(d=b.captions)==null?void 0:(e=d.playerCaptionsTracklistRenderer)== null?void 0:e.openTranscriptCommand;this.J.ib("innertubeCommand",c);this.Fb.bj();this.D&&this.J.logClick(this.D)}else{if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=nTa(this);jW(this,b);g.DT.prototype.Ig.call(this,this.zD(b));var f,h;b=(c=this.J.getVideoData().getPlayerResponse())==null?void 0:(f=c.captions)==null?void 0:(h=f.playerCaptionsTracklistRenderer)==null?void 0:h.openTranscriptCommand;this.J.ib("innertubeCommand",b)}else this.J.logClick(this.element), jW(this,a==="__off__"?{}:this.tracks[a]),g.DT.prototype.Ig.call(this,a);this.Fb.bj()}}; g.k.Ta=function(){var a=this.J.getOptions();a=a&&a.indexOf("captions")!==-1;var b=this.J.getVideoData(),c=b&&b.Tv,d,e=!((d=this.J.getVideoData())==null||!g.QR(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.Nb(d,this.zD,this);e=g.Bl(d,this.zD);var m,n;nTa(this)&&((f=b.getPlayerResponse())==null?0:(m=f.captions)==null?0:(n=m.playerCaptionsTracklistRenderer)== null?0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.Gc(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p}); Aaa(l,f)}kTa(this.j,l);e.push("__translate__")}f=this.zD(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.ET(this,e);this.Ri(f);h&&h.translationLanguage?this.j.Ri(this.j.j(h.translationLanguage)):aOa(this.j);a&&this.G.wi(this.J.getSubtitlesUserSettings());this.countLabel.Cd(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.Z5=function(a){var b=this.J.getOption("captions","track");b=g.Jc(b);b.translationLanguage=this.j.languages[a];jW(this,b)}; g.k.Fk=function(a,b){if(a==="reset")this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}lTa(this,!0);this.N.start();this.G.wi(this.J.getSubtitlesUserSettings())}; g.k.Sba=function(a){a||g.ip(this.N)}; g.k.xa=function(){g.ip(this.N);g.DT.prototype.xa.call(this)}; g.k.open=function(){g.DT.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.z(oTa,g.xT);g.k=oTa.prototype; g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.IS=new SSa(this.J,this)}catch(c){g.Kx(Error("QualityMenuItem creation failed"))}g.Q(this,this.IS);var b=new mTa(this.J,this);g.Q(this,b);a.C||(b=new $V(this.J,this),g.Q(this,b));a.enableSpeedOptions&&(b=new cTa(this.J,this),g.Q(this,b));(g.EP(a)||a.K)&&(a.B||a.Wa)&&(b=new RSa(this.J,this),g.Q(this,b));a.Yd&&!a.L("web_player_move_autonav_toggle")&&(a=new bW(this.J,this),g.Q(this,a));a=new aW(this.J,this); g.Q(this,a);this.J.publish("settingsMenuInitialized");QSa(this.settingsButton,this.Oe.Rp())}}; g.k.Tc=function(a){this.initialize();this.Oe.Tc(a);QSa(this.settingsButton,this.Oe.Rp())}; g.k.ph=function(a){this.Hb&&this.Oe.Rp()<=1&&this.hide();this.Oe.ph(a);QSa(this.settingsButton,this.Oe.Rp())}; g.k.md=function(a){this.initialize();this.Oe.Rp()>0&&g.xT.prototype.md.call(this,a)}; g.k.Mb=function(){this.BL?this.BL=!1:g.xT.prototype.Mb.call(this)}; g.k.show=function(){g.xT.prototype.show.call(this);g.np(this.J.getRootNode(),"ytp-settings-shown")}; g.k.hide=function(){g.xT.prototype.hide.call(this);g.pp(this.J.getRootNode(),"ytp-settings-shown")}; g.k.Hf=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.z(kW,g.T);kW.prototype.onClick=function(){if(qTa(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.Ht(g.Gt(),65);g.YP(this.J.U())&&b!=null&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}}; kW.prototype.j=function(a){var b,c;(b=g.eS(this.J))==null||(c=b.Hm())==null||c.md(a)}; kW.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName}; kW.prototype.Ta=function(){var a=qTa(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.iS(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)(c=this.Ea("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.iS(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;(d=this.Ea("ytp-subtitles-button-icon"))== null||d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}this.tooltip.Th();c=c&&this.J.qb().getPlayerSize().width>=b;g.py(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.z(g.mW,g.T);g.k=g.mW.prototype; g.k.Sc=function(){var a=this.api.qb().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!oW(this)||!g.U(this.api.getPlayerStateObject(),64));g.py(this,b);g.rp(this.element,"ytp-time-display-allow-autohide",b&&a<400);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);nW(this)&&(c-=this.Eb.startTimeMs/1E3);c=g.Cz(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=nW(this)?g.Cz((this.Eb.endTimeMs- this.Eb.startTimeMs)/1E3):g.Cz(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!oW(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Sc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Cd(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.gS(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Eb!== a;this.Eb=a;b&&lW(this)}; g.k.onLoopRangeChange=function(a){var b=this.Eb!==a;this.Eb=a;b&&(this.Sc(),lW(this))}; g.k.qca=function(){this.api.setLoopRange(null)}; g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&c===2?this.api.getVideoData(1):b);this.Sc();lW(this)}; g.k.updateVideoData=function(a){this.DF=a.isLivePlayback&&!a.Bb;this.B=RR(a);this.isPremiere=a.isPremiere;g.rp(this.element,"ytp-live",oW(this))}; g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.k.xa=function(){this.j&&this.j();g.T.prototype.xa.call(this)};g.z(sTa,g.T);g.k=sTa.prototype;g.k.Zx=function(){var a=this.api.Gh();this.C!==a&&(this.C=a,rTa(this,this.api.getVolume(),this.api.isMuted()))}; g.k.SV=function(a){g.py(this,a.width>=350)}; g.k.c6=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;b===37?c=this.volume-5:b===39?c=this.volume+5:b===36?c=0:b===35&&(c=100);c!==null&&(c=g.Hd(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}}; g.k.a6=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(b<0?-10:10)):this.api.setVolume(this.volume+g.Hd(b/10,-10,10));a.preventDefault()}; g.k.Yba=function(){pW(this,this.j,!0,this.B,this.api.Rm());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.b6=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.tm(this.N).x;this.api.setVolume(g.Hd((a-c/2)/(b-c),0,1)*100)}; g.k.Xba=function(){pW(this,this.j,!1,this.B,this.api.Rm());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Y))}; g.k.onVolumeChange=function(a){rTa(this,a.volume,a.muted)}; g.k.nX=function(){pW(this,this.j,this.isDragging,this.B,this.api.Rm())}; g.k.xa=function(){g.T.prototype.xa.call(this);g.pp(this.K,"ytp-volume-slider-active")};g.z(qW,g.T); qW.prototype.onVideoDataChange=function(){var a=this.api.U();this.jc();this.visible=!!this.api.getVideoData().videoId&&!g.SR(this.api.getVideoData(1));g.py(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.Nc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.np(this.element,"no-link")); b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.UP(b),b.indexOf("www.")===0&&(b=b.substring(4)),c=g.TR(a)?"Watch on YouTube Music":b==="youtube.com"?"Watch on YouTube":g.tE("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)}; qW.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.Dz(a),!1,!0,!0);if(g.EP(b)){var d={};g.EP(b)&&g.$R(this.api,"addEmbedsConversionTrackingParams",[d]);this.api.L("embeds_web_enable_referring_feature_deprecation")||g.YL(d,"emb_logo");c=g.aj(c,d)}g.bT(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; qW.prototype.jc=function(){var a={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",W:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, b=28666,c=this.api.getVideoData();this.api.Zc()?a={I:"svg",W:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",W:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.TR(c)&&(a={I:"svg",W:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{I:"path",W:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{I:"path",W:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{I:"path",W:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{I:"path",W:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{I:"path",W:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{I:"path",W:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{I:"path",W:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{I:"path",W:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{I:"path",W:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{I:"path",W:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{I:"path",W:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{I:"path",W:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},b=216163);g.TR(c)?g.np(this.element,"ytp-youtube-music-button"):g.pp(this.element,"ytp-youtube-music-button");a.W=Object.assign({},a.W,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)}; qW.prototype.Kc=function(a){g.T.prototype.Kc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(uTa,g.EF);g.k=uTa.prototype;g.k.Cg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.U(this.J.getPlayerStateObject(),2))this.progressBar.Sc(),this.Ca.Sc()}; g.k.yB=function(){this.pU();this.Kg.B?this.Cg():this.progressBar.Yh()}; g.k.d6=function(){this.Cg();this.Z.start()}; g.k.pU=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=a.N*2*g.XP(),c=a.C;a=(c.j-c.B)*1E3/a.api.getPlaybackRate()/b<300}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Kg.B||(a=b=!1);b?this.ra||(this.ra=this.T(this.J,"progresssync",this.Cg)):this.ra&&(this.Nc(this.ra),this.ra=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()}; g.k.jc=function(){var a=this.J.Gh(),b=this.J.qb().getPlayerSize(),c=wTa(this),d=Math.max(b.width-c*2,100);if(this.fb!==b.width||this.Xa!==a){this.fb=b.width;this.Xa=a;var e=xTa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.MSa(this.progressBar,c,e,a);this.J.Re().TV=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round((b.height-yTa(this))*.82));c.maxWidth=d;c.maxHeight=a;c.HC();this.pU();this.J.U().L("html5_player_dynamic_bottom_gradient")&&GRa(this.Wa, b.height)}; g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Na.style.background=a.Ff?a.Pp:"";this.qa&&NRa(this.qa,a.showSeekingControls);this.Y&&NRa(this.Y,a.showSeekingControls)}; g.k.Ib=function(){return this.C.element};g.z(zTa,tT);g.k=zTa.prototype;g.k.lG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand),this.Tu())}; g.k.Tu=function(){this.enabled=!1;this.qa.hide()}; g.k.onVideoDataChange=function(a,b){a==="dataloaded"&&ATa(this);a=[];var c,d,e,f;if(b=(f=g.R((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.suggestedActionsRenderer,Qab))==null?void 0:f.suggestedActions)for(c=g.v(b),d=c.next();!d.done;d=c.next())(d=g.R(d.value,Rab))&&g.R(d.trigger,Pab)&&a.push(d);if(a.length!==0){c=[];a=g.v(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.R(d.trigger,Pab))f=(f=d.title)?g.uy(f):"View Chapters", b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,b!=null&&e!=null&&d.tapCommand&&(c.push(new g.gE(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.kf(c)}}; g.k.Ky=function(){return this.enabled}; g.k.Hf=function(){this.enabled?this.Ra.start():rT(this);this.Ql()}; g.k.xa=function(){ATa(this);tT.prototype.xa.call(this)};var o2={},rW=(o2.CHANNEL_NAME="ytp-title-channel-name",o2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",o2.LINK="ytp-title-link",o2.SESSIONLINK="yt-uix-sessionlink",o2.SUBTEXT="ytp-title-subtext",o2.TEXT="ytp-title-text",o2.TITLE="ytp-title",o2);g.z(sW,g.T); sW.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.Dz(a),!1,!0);g.EP(b)&&(b={},g.$R(this.api,"addEmbedsConversionTrackingParams",[b]),this.api.L("embeds_web_enable_referring_feature_deprecation")||g.YL(b,"emb_title"),c=g.aj(c,b));g.bT(c,this.api,a)}; sW.prototype.Ta=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:rW.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},va:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:rW.CHANNEL_NAME,va:"{{channelName}}",W:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);BTa(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.zb&&c.profilePicture?(this.updateValue("channelLink", c.zb),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):BTa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Qk;g.rp(this.link,rW.FULLERSCREEN_LINK,c);b.ra||!a.videoId||c||g.SR(a)||b.C?this.j&&(this.updateValue("url",null),this.Nc(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.EP(b)?a.expandedTitle: a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.z(g.tW,g.T);g.k=g.tW.prototype;g.k.setEnabled=function(a){if(this.type!=null)if(a)switch(this.type){case 3:case 2:DTa(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a}; g.k.vM=function(a,b,c,d,e,f,h,l){if(!this.Na||this.env.Z){this.type===3&&this.Yh();this.type!==1&&(g.lp(this.element,"ytp-tooltip ytp-bottom"),(JRa(this.api)||this.api.isInline())&&g.np(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.qk())&&this.B.subscribe("l",this.X_,this));if(l){var m=g.wm(this.bg).height||this.Ca;this.Ra.style.bottom=m+2+"px"}this.update({text:c,title:f!=null?f:"",eduText:l!=null?l:""});g.rp(this.text,"ytp-tooltip-text-no-title", this.type===1&&!f);this.api.isInline()&&g.np(this.text,"ytp-modern-tooltip-text");g.rp(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=KQ(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&this.B.levels.length===4&&(c=this.B.levels.length-1),c=GKa(this.B,c,b));FTa(this,c);if(h)switch(b=g.wm(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"}ETa(this,!!d,a,e)}}; g.k.rQ=function(){this.type===1&&this.Yh()}; g.k.CH=function(a,b){if(this.type)if(this.type===3)this.Yh();else return;CTa(this,a,3,b)}; g.k.Th=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&DTa(this))}; g.k.X_=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,FTa(this,a))}; g.k.a$=function(){EKa(this.B,this.D,this.N*this.scale)}; g.k.Yh=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);GTa(this);break;case 3:GTa(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.X_,this),this.B=null),this.api.removeEventListener("videoready",this.Ga),this.Fa.stop()}this.type=null;this.Y&&this.K.hide()}; g.k.xm=function(){if(this.j)for(var a=0;a=0;b--)if(this.Ru[b]===a){this.Ru.splice(b,1);break}IU(this.Kg,64,this.Ru.length>0)}; g.k.vC=function(){this.api.bl()&&this.api.Ep();return!!this.rE||MTa(this)||g.SU.prototype.vC.call(this)}; g.k.nC=aa(3);g.k.Os=aa(7);g.k.Ns=aa(10);g.k.Rq=function(){var a=!this.vC(),b=a&&this.api.bl()&&!g.U(this.api.getPlayerStateObject(),2)&&!g.SR(this.api.getVideoData())&&!this.api.U().C&&!this.api.Zc(),c=this.Xr&&g.HS(this.api)&&g.U(this.api.getPlayerStateObject(),128);a||c?(this.CM.show(),this.DM.show()):(this.CM.hide(),this.DM.hide(),this.api.xm(this.xi.element));b?this.Yg.md():this.Yg.Mb();this.Eg&&vTa(this.Eg,this.pS||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&NTa(this);g.SU.prototype.Rq.call(this)}; g.k.sy=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.wm(a),h=d||this.Eg&&g.te(this.Eg.Ib(),b),l=d=null;c!=null&&h||(d=g.wm(b),l=g.um(b,this.api.getRootNode()),c==null&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Eg,d=wTa(b),l=xTa(b),h=this.api.qb().getPlayerSize().height,c=g.Hd(c,d,d+l-f.width),f=h-yTa(b)-f.height):g.te(this.xi.element,b)?(b=this.api.qb().getPlayerSize().width,c=g.Hd(c,12,b-f.width-12),f=this.Gh()?this.CO:this.BO,this.api.U().playerStyle==="gvn"&&(f+= 20),this.Xr&&(f-=this.Gh()?26:18)):(b=this.api.qb().getPlayerSize(),c=g.Hd(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.yB=function(a){a&&(this.api.xm(this.xi.element),this.Eg&&this.api.xm(this.Eg.Ib()));this.vK&&(g.rp(this.contextMenu.element,"ytp-autohide",a),g.rp(this.contextMenu.element,"ytp-autohide-active",!0));g.SU.prototype.yB.call(this,a)}; g.k.AR=function(){g.SU.prototype.AR.call(this);this.vK&&(g.rp(this.contextMenu.element,"ytp-autohide-active",!1),this.vK&&(this.contextMenu.hide(),this.oi&&this.oi.hide()))}; g.k.Xn=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.hm(0,0,c.width,c.height);if(a||this.Kg.B&&!this.vC()){if(this.api.U().zn||b)a=this.Gh()?this.CO:this.BO,c.top+=a,c.height-=a;this.Eg&&(c.height-=yTa(this.Eg))}return c}; g.k.Zx=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.QE.element,b),b.parentElement.insertBefore(this.PE.element,b.nextSibling))):g.Jx(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.QE.detach(),this.PE.detach());this.jc();this.Sq()}; g.k.Gh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1}; g.k.showControls=function(a){this.QO=!a;this.Rq()}; g.k.jc=function(){var a=this.Gh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.rp(this.contextMenu.element,"ytp-big-mode",a);this.Rq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||NTa(this);this.Sq();var b=this.api.Zc();b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.km(this.xi.element,"padding-left",a+"px"),g.km(this.xi.element,"padding-right",a+"px")):b&&(g.km(this.xi.element,"padding-left",""),g.km(this.xi.element,"padding-right",""));g.SU.prototype.jc.call(this)}; g.k.IP=function(){if(MTa(this)&&!g.HS(this.api))return!1;var a=this.api.getVideoData();return!g.EP(this.api.U())||this.api.getPresentingPlayerType()===2||!this.Ei||((a=this.Ei||a.Ei)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.R(a.videoDetails,yLa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.SU.prototype.IP.call(this):!1}; g.k.Sq=function(){g.SU.prototype.Sq.call(this);this.api.logVisibility(this.title.element,!!this.uo);this.OB&&this.OB.Kc(!!this.uo);this.channelAvatar.Kc(!!this.uo);this.overflowButton&&this.overflowButton.Kc(this.Pg()&&!!this.uo);this.shareButton&&this.shareButton.Kc(!this.Pg()&&!!this.uo);this.kp&&this.kp.Kc(!this.Pg()&&!!this.uo);this.searchButton&&this.searchButton.Kc(!this.Pg()&&!!this.uo);this.copyLinkButton&&this.copyLinkButton.Kc(!this.Pg()&&!!this.uo);if(!this.uo){this.api.xm(this.xi.element); for(var a=0;a=b)return d.return();(c=a.j.get(0))&&VTa(a,c);g.va(d)})}; var STa={cka:0,Bka:1,lka:2,Cka:3,Iga:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var BW=[],H5a=!1;g.SZ=dd(function(){var a="";try{var b=g.me("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.z(CW,g.K);CW.prototype.K=function(){this.j!=null&&this.app.getVideoData()!==this.j&&TQ(this.j)&&m6a(this.app,this.j,void 0,void 0,this.B)}; CW.prototype.G=function(){if(this.j!=null&&this.app.getVideoData()!==this.j&&this.wb!=null&&this.C!=null&&this.D!=null&&TQ(this.j)){var a=bUa(this.wb,this.C,this.D);a==null?m6a(this.app,this.j,void 0,void 0,this.B):(this.wb.oa("sgap",a),this.wb.getVideoData().Y&&E_(this.wb,!1))}}; CW.prototype.N=function(a){var b=this.app.Uc();if(b){var c=this.app.getCurrentTime();Math.abs(c-a.end/1E3)>5&&b.oa("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.oa("glrre",{cmt:c})}}; CW.prototype.xa=function(){this.j=null;g.K.prototype.xa.call(this)};g.z(g.DW,wG);g.k=g.DW.prototype;g.k.isView=function(){return!0}; g.k.WS=function(){var a=this.mediaElement.getCurrentTime();if(a=4&&a!=="player-reload-after-handoff";this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Rd(new vF("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.vn,msg:a})));E_(this.j,c)}this.Oq.reject(a);this.dispose()}}; g.k.xu=function(){return this.status.status>=4&&this.status.status<6}; g.k.xa=function(){nUa(this);this.j.unsubscribe("newelementrequired",this.Z_,this);if(this.C){var a=this.C.B;this.C.j.Hd.unsubscribe("updateend",this.nz,this);a.Hd.unsubscribe("updateend",this.nz,this)}g.K.prototype.xa.call(this)}; g.k.UV=function(a){g.tz(a,128)&&this.Tg("player-error-event")};g.z(rUa,g.K);g.k=rUa.prototype;g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.D&&this.D.reject("Queue cleared");this.app.U().L("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&E_(this.B,!1);HW(this,a)}; g.k.zo=function(){return!this.j}; g.k.HF=function(a){return this.j===a}; g.k.xu=function(){var a;return((a=this.C)==null?void 0:a.xu())||!1}; g.k.xa=function(){HW(this);g.K.prototype.xa.call(this)};g.z(AUa,g.iy);g.k=AUa.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:wUa()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0}; g.k.hn=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Hf())}; g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Hf())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Hf())}; g.k.pC=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Hf())}; g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Hf())}; g.k.uC=function(a){this.D!==a&&(this.D=a,this.Hf())}; g.k.Zh=function(){return this.j}; g.k.isFullscreen=function(){return this.fullscreen!==0}; g.k.jA=function(){return this.fullscreen}; g.k.isMinimized=function(){return this.B}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return wUa()}; g.k.wu=function(){return this.pictureInPicture}; g.k.MA=function(){return!1}; g.k.TA=function(){return this.C}; g.k.xk=function(){return this.D}; g.k.Hf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.Zh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.wu(),this.MA(),this.TA(),this.xk());a!==this.K&&this.publish("visibilitystatechange");this.K=a}; g.k.xa=function(){zUa(this.G);g.iy.prototype.xa.call(this)};g.z(MW,g.K);MW.prototype.Ok=function(){if(!this.wf.length)return[];var a=this.wf;this.wf=[];this.C=g.nb(a).info;return a}; MW.prototype.KG=function(){return this.wf}; MW.prototype.xa=function(){g.K.prototype.xa.call(this);this.j=null;this.wf.length=0;this.jb.length=0;this.C=null};g.z(OW,g.K);g.k=OW.prototype;g.k.Hr=function(){return Array.from(this.Yc.keys())}; g.k.Qs=function(a){a=this.Yc.get(a);var b=a.wf;a.Dz+=b.totalLength;a.wf=new UK;return b}; g.k.Og=function(a){return this.Yc.get(a).Og}; g.k.wx=function(a){return this.Yc.get(a).wx}; g.k.EB=function(a,b,c,d){this.Yc.get(a)||HUa(this,a,b);b=this.Yc.get(a);if(this.manifest){a=JUa(this,a,c);if(d)for(var e=g.v(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.K=h;f.startTime+=h;f.Ve+=h;f.Mf+=h}IUa(this,c.Yp,b,a)}else c.xo?b.nZ=c.Ks:b.cG.push(c),b.iT.push(c)}; g.k.Wn=function(a){var b;return((b=this.Yc.get(a))==null?void 0:b.jb)||[]}; g.k.vB=function(){for(var a=g.v(this.Yc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.FS&&(b.Cg&&b.Cg(),b.FS=!1)}; g.k.rq=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b}); var c=this.Yc.get(b);if(PW){if(c&&!c.Og){if(c.Aj.get(a))c.Aj.get(a).zx=!0;else{var d;((d=this.Te)==null?0:d.qc)&&c.Aj.set(a,{data:new UK,OI:0,zx:!0})}c.wx=!0}}else c&&!c.wx&&(c.wx=!0)}; g.k.Ok=function(a){if(PW){var b=this.Yc.get(a);if(b)for(var c=g.v(b.Aj),d=c.next();!d.done;d=c.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;var f=b.FH.get(d);if(PN(f[0])){if(!e.zx)continue;var h=e.data,l=0,m=[];f=g.v(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=WK(h,l,p);l+=p;m.push(new hO(n,q))}b.Nx.push.apply(b.Nx,g.w(m))}else if(e.data.totalLength>0||!f[0].range&&e.zx)h=void 0,l=f[0],m=e.OI,f=e.data,l.range||(h=e.zx),h=new hO(qEa(l,l.Sb+m,f.totalLength,h),f), e.OI+=h.info.B,b.Nx.push(h);b.Aj.get(d).data=new UK;e.zx&&b.Aj.delete(d)}a=this.Yc.get(a);if(!a)return[];b=a.Nx;a.Nx=[];c=g.v(b);for(d=c.next();!d.done;d=c.next())a.Dz+=d.value.info.B;return b||[]}c=(b=this.Yc.get(a))==null?void 0:b.eg;if(!c)return[];this.Km(a,c);return c.Ok()}; g.k.Il=function(a){if(PW)return RW(this,a);var b,c,d;return!!((c=(b=this.Yc.get(a))==null?void 0:b.eg)==null?0:(d=c.KG())==null?0:d.length)||RW(this,a)}; g.k.Km=function(a,b){for(;RW(this,a);){var c=this.Qs(a);var d=a;d=this.Yc.get(d).Og&&!FUa(this,d);NW(b,c,d&&GUa(this,a))}}; g.k.xa=function(){g.K.prototype.xa.call(this);for(var a=g.v(this.Yc.keys()),b=a.next();!b.done;b=a.next())CUa(this,b.value);var c;if((c=this.Te)==null?0:c.Yd)for(a=g.v(this.Yc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Aj.clear(),b.FH.clear(),b.Nx.length=0,b.jb.length=0,b.iT.length=0,b.cG.length=0;this.Yc.clear()}; var PW=!1;g.z(UW,g.K);g.k=UW.prototype;g.k.enqueue=function(a,b){if(a.D!==this)return!1;if(this.segments.length===0||(b===void 0?0:b))this.j=a;this.segments.push(a);return!0}; g.k.Ye=function(){return this.lc||0}; g.k.Vh=function(){return this.C||0}; g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;(a=this.segments.pop())==null||a.dispose()}this.B.clear()}; g.k.xa=function(){this.removeAll();g.K.prototype.xa.call(this)}; g.z(XUa,g.K);g.k=XUa.prototype;g.k.Ye=function(){return this.lc}; g.k.Vh=function(){return this.B}; g.k.getType=function(){return this.type}; g.k.getVideoData=function(){return this.videoData}; g.k.xH=function(a){wR(a);this.videoData=a}; g.k.xa=function(){YUa(this);g.K.prototype.xa.call(this)};g.z(g.ZW,g.K);g.k=g.ZW.prototype;g.k.hJ=function(a,b,c){return new g.gE(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})}; g.k.onCueRangeEnter=function(a){this.Na.push(a);var b=a.getId();this.ea.oa("sdai",{oncueEnter:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Vf()||0).toFixed(3)});var c=b==="";this.fb.add(a.B);var d=this.D.get(b);if(c){var e;if(this.ea.getVideoData().Om()&&((e=this.j)==null?0:e.IW)&&this.N){var f;a=((f=this.j)==null?void 0:f.Vg)||this.ea.getCurrentTime();var h,l;cX(this.ea,(h=this.j)==null?void 0:h.IW,this.YE(),a,this.ea.getCurrentTime(),!1,!0,(l=this.j)== null?void 0:l.Xda,(0,g.uu)());this.rb&&(this.events.Nc(this.rb),this.rb=null);this.N="";this.Ra=!0;return}}else if(this.ea.oa("sdai",{enterAdCueRange:1}),this.ea.getVideoData().Om()&&(d==null?0:d.RA))return;if(this.Ra&&!this.j)this.Ra=!1,!c&&d&&(c=this.ea.getCurrentTime(),dX(this,{Zd:a,isAd:!0,cq:!0,Vg:c,adCpn:b},{isAd:!1,cq:!1,Vg:c}),this.Vb=d.cpn,this.api.publish("serverstitchedvideochange",d.pd,d.qr),a=bX(this,"midab",d),this.ea.oa("sdai",a),this.zm=1),this.qa=!1;else if(this.j){if(this.j.cq)this.ea.oa("sdai", {a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime()}),d=this.ea.getCurrentTime(),a={Zd:a,isAd:!c,cq:!0,Vg:d,adCpn:b},b={Zd:this.j.Zd,isAd:this.j.isAd,cq:!1,Vg:d,adCpn:this.j.adCpn},this.j.Zd&&this.fb.delete(this.j.Zd.B),dX(this,a,b);else{if(this.j.Zd===a){this.ea.oa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end}); this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}a={Zd:a,isAd:!c,cq:!0,Vg:this.ea.getCurrentTime(),adCpn:b};dX(this,a,this.j)}this.j=void 0;this.qa=!1}else this.j={Zd:a,isAd:!c,cq:!0,Vg:this.ea.getCurrentTime(),adCpn:b}}; g.k.onCueRangeExit=function(a){var b=a.getId();this.ea.oa("sdai",{oncueExit:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Vf()||0).toFixed(3)});var c=b==="",d=this.D.get(b);if(this.ea.getVideoData().Om()&&!c&&d){if(d.RA)return;d.RA=!0;this.K.clear();if(this.X.L("html5_lifa_no_rewatch_ad_sbc"))if(this.ea.tO()){var e=d.lc;this.ea.OS(e/1E3,(e+d.durationMs)/1E3)}else this.ea.oa("lifa",{remove:0})}if(this.fb.has(a.B))if(this.fb.delete(a.B),this.Na=this.Na.filter(function(f){return f!== a}),this.Ra&&(this.qa=this.Ra=!1,this.ea.oa("sdai",{cref:1})),this.j){if(this.j.cq){if(this.j.Zd===a){this.ea.oa("sdai",{same_cue_range_pair_exit:1, acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}b={Zd:a,isAd:!c,cq:!1,Vg:this.ea.getCurrentTime(),adCpn:b};dX(this,this.j,b)}else this.ea.oa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Vg,upcomingCpn:b,contentCpn:this.ea.getVideoData().clientPlaybackNonce,currentTime:this.ea.getCurrentTime()}); this.j=void 0;this.qa=!1}else this.j={Zd:a,isAd:!c,cq:!1,Vg:this.ea.getCurrentTime(),adCpn:b};else this.ea.oa("sdai",{ignore_single_exit:1})}; g.k.YE=function(){return{cpn:this.ea.getVideoData().clientPlaybackNonce,durationMs:0,lc:0,playerType:1,Wd:0,videoData:this.ea.getVideoData(),errorCount:0}}; g.k.Al=function(a){return this.Mn?!1:this.ea.getVideoData().Om()?(a=eX(this,a*1E3),!!a&&!a.RA):!!eX(this,a*1E3)}; g.k.seekTo=function(a,b,c,d){a=a===void 0?0:a;b=b===void 0?{}:b;c=c===void 0?!1:c;d=d===void 0?null:d;if(this.ea.getVideoData().Om()&&this.X.L("html5_lifa_ad_removed_ne")&&a<=this.Wa/1E3)this.ea.pauseVideo(),this.Wa=0,this.qa=!0,JZ(this.ea),this.ea.seekTo(a),this.ea.playVideo();else if(this.qa=!0,c)$Ua(this,a,b);else{c=this.api.Uc();var e=c===this.Xa?this.Jb:null;fX(this,!1);this.Tb=a;this.Nb=b;d!=null&&this.Kb.start(d);c&&(this.Jb=e||c.getPlayerState(),p5a(c),this.Xa=c)}}; g.k.xa=function(){fX(this,!1);kVa(this);lVa(this);g.K.prototype.xa.call(this)}; g.k.wT=function(a){this.Lc=a;this.ea.oa("sdai",{swebm:a})}; g.k.yl=function(a,b,c,d){if(c&&b){var e;this.X.L("html5_ssdai_use_media_time")?e=hX(this,d):e=this.K.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.GM(c),this.Va&&this.ea.oa("sdai",{hdlredir:1,itag:b,seg:a,hostport:IM(c)}),e.locations.set(d,c))}}; g.k.bK=function(a,b,c,d,e,f){var h=d===3;e=nVa(this,a,b,d,c,f);if(!e)return jX(this,b,h),e=g.mVa(this,b)?"undec":"ncp",this.ea.oa("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.K.set(b,e);a=e.pm;var l;d=((l=iX(this,b-1,d))==null?void 0:l.Nt)||"";d===""&&this.ea.oa("sdai",{eds:1});l=nP(e.ssdaiAdsConfig||"")||void 0;c=this.ea.getVideoData();var m;f=((m=c.B)==null?void 0:m.containerType)||0;m=c.HD[f];b=e.My&&b>=e.My?e.My:void 0;return{dn:{AI:a?rVa(this,a):[],MW:l,Nt:d,f2:b,y3:$d(m.split(";")[0]), z3:m.split(";")[1]||""}}}; g.k.WP=function(a){a:{if(!this.Mn){var b=hX(this,a);if(!(this.ea.getVideoData().Om()&&(b==null?0:b.RA)))break a}b=void 0}if(!b)return this.ea.oa("sdai",{gvprp:"ncp",mt:a}),null;a=b.pm;b=nP(b.ssdaiAdsConfig||"")||void 0;var c=this.ea.getVideoData(),d,e=((d=c.B)==null?void 0:d.containerType)||0;d=c.HD[e];return{AI:a?rVa(this,a):[],MW:b,y3:$d(d.split(";")[0]),z3:d.split(";")[1]||""}}; g.k.gA=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=d===3;a=nVa(this,a,b,d,c,f);this.Va&&this.ea.oa("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return jX(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=(l=a.videoData.getPlayerResponse())==null?void 0:(m=l.streamingData)==null?void 0:m.adaptiveFormats;if(!f)return this.ea.oa("sdai",{gdu:"noadpfmts",seg:b,itag:h}),jX(this,b,e),null;l=f.find(function(u){return u.itag===h}); if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.v(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.ea.oa("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});jX(this,b,e);return null}a.locations.set(h,new g.GM(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.oa("sdai",{gdu:"nourl",seg:b,itag:h}),jX(this,b,e),null;l=new zN(l);this.Lc&&(l.get("dvc")?this.ea.oa("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=(q=iX(this,b-1,d))==null?void 0:q.Nt)&& l.set("daistate",m);a.My&&b>=a.My&&l.set("skipsq",""+a.My);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.pm&&(q=rVa(this,a.pm),q.length>0&&l.set("acpns",q.join(",")));e||this.K.set(b,a);e=null;e=l.get("aids");var r;if((((p=e)==null?void 0:(r=p.split(","))==null?void 0:r.length)||0)!==q.length)if(a.pm){var t;this.ea.oa("sdai",{acpns_aids_nm:1,ids:tVa(this,a.pm).join("_"),acpns:q.join("_"),aids:(t=e)==null?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.ea.oa("sdai", {acpns_aids_nm:"noAdBreakId",cpn:m});d=l.Ee();(d==null?void 0:d.length)>2048&&this.ea.oa("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Va&&(d&&(r=a.cpn,p=a.pm,vVa(this,r,p),p&&!this.ke.has(p)&&(r=sVa(this,r,p),t=uVa(this,p),this.ea.oa("sdai",{iofa:r}),this.ea.oa("sdai",{noawnzd:t-r}),this.ea.oa("sdai",{acpns:q.join("."),aids:(n=e)==null?void 0:n.replace(/,/g,".")}),this.ke.add(p))),this.ea.oa("sdai",{gdu:"v",seg:b,itag:c,ast:a.lc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId})); return d}; g.k.oH=function(a,b,c){var d=gX(this,a,c);return(d=d?(d.lc+d.durationMs)/1E3:0)&&b>d?(this.xv(a,c,!0),this.ea.seekTo(d),!0):!1}; g.k.xv=function(a,b,c){c=c===void 0?!1:c;if(a=gX(this,a,b)){var d=void 0,e=a.pm;if(e){this.ea.oa("sdai",{skipadonsq:b,sts:c,abid:e,acpn:a.cpn,avid:a.videoData.videoId});c=this.Y.get(e);if(!c)return;c=g.v(c);for(e=c.next();!e.done;e=c.next())e=e.value,e.My=b,e.lc>a.lc&&(d=e)}this.N=a.cpn;oVa(this);b=this.ea.getCurrentTime();gVa(this,a,d,b,b,!1,!0)}}; g.k.ZS=function(){for(var a=g.v(this.G),b=a.next();!b.done;b=a.next())b.value.My=NaN;oVa(this);this.ea.oa("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""}; g.k.VH=aa(45); g.k.dS=function(a,b,c,d,e,f,h,l,m){d.length>0&&this.ea.oa("sdai",{onssinfo:1,sq:a,start:b.toFixed(3),cpns:d.join(","),ds:e.join(","),isVideo:h?1:0});m&&(h?this.bb.set(a,{Nt:m,vz:l}):this.Fa.set(a,{Nt:m,vz:l}));if(h){if(d.length&&e.length)for(this.N&&this.N===d[0]&&this.ea.oa("sdai",{skipfail:1,sq:a,acpn:this.N}),a=b+this.du(),h=0;h0&&(this.zm=0,this.Vb="",this.api.publish("serverstitchedvideochange"));a=this.ea;a.videoData.yU=!0;a.Rd(new vF("qoe.restart",c));JZ(a,!0);return!0}; g.k.kx=function(){this.ea.oa("sdai",{rstdaist:1});this.Fa.clear();this.bb.clear();this.Ka.clear()}; g.k.Xu=function(a){this.Ae.add(a);var b;((b=this.ra)==null?void 0:b.identifier)===a&&aX(this)}; g.k.AP=function(){return this.zm}; g.k.vl=function(){return this.Vb}; g.k.Uu=function(a){var b=EU(this.api.Ab());return b?b.Uu(a):!1}; g.k.eP=function(a){return this.Mn?!1:!!hX(this,a)}; g.k.JT=function(a){var b=this;this.ea.pauseVideo();var c=this.ea.getCurrentTime(),d=this.D.get(this.Vb),e=this.B.get(this.Vb);if(d){this.N=this.Vb;this.qa=!1;d.RA=!0;var f=this.ea.getCurrentTime();this.j={Zd:e,isAd:!0,cq:!1,Vg:f,adCpn:this.Vb,IW:d,Xda:a};if(e==null?0:e.start)this.Wa=f*1E3-e.start;this.K.clear();JZ(this.ea);this.Vb=this.YE().cpn;this.api.publish("serverstitchedvideochange");this.ea.seekTo(c);this.ea.playVideo();this.rb||(this.rb=this.events.T(this.api,"progresssync",function(){var h= d.qr?d.qr*1E3:d.lc,l=b.B.get(d.cpn);l&&b.ea.removeCueRange(l);b.B.delete(d.cpn);b.D.delete(d.cpn);l=b.G.indexOf(d);l>=0&&b.G.splice(l,1);l=[];for(var m=g.v(b.C),n=m.next();!n.done;n=m.next())n=n.value,n.end<=h?b.ea.removeCueRange(n):l.push(n);b.C=l;pVa(b,0,h+d.durationMs)})); return!0}this.ea.oa("sdai",{skipFail:c});return!1}; var eVa=0;g.z(yVa,g.K);g.k=yVa.prototype; g.k.aO=function(a,b){b=b===void 0?"":b;if(this.VT===b)return!0;var c=!1,d=this.timeline.j;if(!d||!d.getVideoData())return this.api.oa("ssap",{htsm:d?0:1}),!1;if(this.api.L("html5_ssap_clear_timeline_before_update")){var e=this.timeline,f;(f=e.j)==null||YUa(f);e.B.clear()}e=[];f=d.getVideoData();var h=VW(d),l=new Map;d=[];var m=[],n=0,p=0,q=0,r=[];a=g.v(a);for(var t=a.next();!t.done;t=a.next()){var u=t.value,x=u.clipId;if(x){if(u.Vq){q=u.Vq.a_||0;var B=u.Vq.b_||1;t=Number(((u.Vq.M0||0)/(u.Vq.N0||1)* 1E3).toFixed(0));var E=Number((q/B*1E3).toFixed(0));q=B=t+E}else t=q,E=0,B=t,this.EH.has(x)||this.Ck.add(x);var F=void 0,I=(F=l.get(x))!=null?F:0;F=!1;if(this.VT)if(this.api.L("html5_ssap_clear_timeline_before_update")){var O=this.ek.get(x);O&&(O.start=t,O.end=B,F=!0)}else{var N=x;O=t;var S=B,Y=XW(this.timeline,N);if(Y!=null&&Y.length){I=l){this.RH.set(a,c);QVa(this,a,b);this.GM.set(a,(0,g.uu)());if(c=this.ek.get(b))for(c=c.getId().split(","),c=g.v(c),h=c.next();!h.done;h=c.next())h=h.value,h!==b&&this.Ck.has(h)&&(this.Ck.delete(h),this.EH.add(h));d&&JZ(this.ea);LVa(this);b=f.Ye()/1E3;d=void 0;f=(d=g.qD(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?d:0;this.ea.seekTo(b+f/1E3);e&&this.api.playVideo(1);return[a]}}}return[]}; g.k.KP=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Vh();a=g.v(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Vh()>b&&(b=d.Vh())}return b/1E3}; g.k.od=function(){var a=this.ea.getCurrentTime()*1E3;var b=kX(this,a);if(!b){var c=XW(this.timeline,this.Vb);if(c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Ye()>a&&(b=d)}}return b&&b.getType()===1?b.Ye()/1E3:0}; g.k.getVideoData=function(a){if(a===2&&!this.Al()){if(this.GK&&this.Lp.has(this.GK))return this.Lp.get(this.GK);this.api.oa("ssap",{lpanf:""+this.ea.getVideoData().clientPlaybackNonce});return null}return GVa(this)}; g.k.Al=function(){var a=XW(this.timeline,this.Vb);return(a==null?0:a.length)?a[0].getType()===2:!1}; g.k.OA=function(){var a=XW(this.timeline,this.Vb);return(a==null?0:a.length)?a[0].C:!1}; g.k.seekTo=function(a,b){b=b===void 0?{}:b;var c=EVa(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)}; g.k.hJ=function(a,b,c){return new g.gE(a,b,{id:c,namespace:"ssap",priority:9})}; g.k.onCueRangeEnter=function(a){if(!this.IL.has(a.getId())){this.api.oa("ssap",{oce:1,cpn:a.getId(),st:a.start,et:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Vf()||0).toFixed(3)});for(var b=a.getId().split(","),c=0;cc+1)for(d=c+1;dthis.C;)(c=this.data.shift())&&AX(this,c,!0);yX(this)}; g.k.remove=function(a,b){b=b===void 0?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(AX(this,c,b),g.vb(this.data,function(d){return d.key===a}),yX(this))}; g.k.removeAll=function(a){if(a=a===void 0?!1:a)for(var b=g.v(this.data),c=b.next();!c.done;c=b.next())AX(this,c.value,a);this.data=[];yX(this)}; g.k.xa=function(){var a=this;g.K.prototype.xa.call(this);this.data.forEach(function(b){AX(a,b,!0)}); this.data=[]};g.z(BX,g.K);BX.prototype.KJ=function(a){if(a)return this.B.get(a)}; BX.prototype.xa=function(){this.j.removeAll();this.B.removeAll();g.K.prototype.xa.call(this)};g.tcb=dd(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var p2;p2={};g.CX=(p2.STOP_EVENT_PROPAGATION="html5-stop-propagation",p2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",p2.IV_DRAWER_OPEN="ytp-iv-drawer-open",p2.MAIN_VIDEO="html5-main-video",p2.VIDEO_CONTAINER="html5-video-container",p2.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",p2.HOUSE_BRAND="house-brand",p2);g.z(nWa,g.T);g.k=nWa.prototype;g.k.At=function(){g.op(this.element,g.Fa.apply(0,arguments))}; g.k.Lj=function(){this.Dc&&(this.Dc.removeEventListener("focus",this.KR),g.re(this.Dc),this.Dc=null)}; g.k.ZO=function(){this.Ma();var a=this.app.U();a.Cn||this.At("tag-pool-enabled");a.K&&this.At(g.CX.HOUSE_BRAND);a.playerStyle==="gvn"&&(this.At("ytp-gvn"),this.element.style.backgroundColor="transparent");a.qc&&(this.OO=g.cw("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)}; g.k.jM=function(a){g.JP(this.app.U());this.oK=!a;DX(this)}; g.k.resize=function(){if(this.Dc){var a=this.Xh();if(!a.isEmpty()){var b=!g.Nd(a,this.RB.getSize()),c=sWa(this);b&&(this.RB.width=a.width,this.RB.height=a.height);a=this.app.U();(c||b||a.qc)&&this.app.Ua.publish("resize",this.getPlayerSize())}}}; g.k.ju=function(a,b){this.updateVideoData(b)}; g.k.updateVideoData=function(a){if(this.Dc){var b=this.app.U();Nu&&(this.Dc.setAttribute("x-webkit-airplay","allow"),a.title?this.Dc.setAttribute("title",a.title):this.Dc.removeAttribute("title"));this.Dc.setAttribute("controlslist","nodownload");b.Tq&&a.videoId&&(this.Dc.poster=a.gh("default.jpg"))}b=g.zR(a,"yt:bgcolor");this.Rz.style.backgroundColor=b?b:"";this.kR=Ys(g.zR(a,"yt:stretch"));this.lR=Ys(g.zR(a,"yt:crop"),!0);g.rp(this.element,"ytp-dni",a.Ff);this.resize()}; g.k.setGlobalCrop=function(a){this.bQ=Ys(a,!0);this.resize()}; g.k.setCenterCrop=function(a){this.jX=a;this.resize()}; g.k.hn=function(){}; g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.EP(a);if(b&&Gs()&&!c)return new g.Md(window.outerWidth,window.outerHeight);c=!isNaN(this.OE.width)&&!isNaN(this.OE.height);var d=this.app.U().L("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Md(this.element.clientWidth,this.element.clientHeight);if(b||a.Ap){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.ZF&&this.ZF.media=== a||(this.ZF=window.matchMedia(a));var e=this.ZF&&this.ZF.matches}if(e)return new g.Md(window.innerWidth,window.innerHeight)}else if(c)return this.OE.clone();return new g.Md(this.element.clientWidth,this.element.clientHeight)}; g.k.Xh=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.qD(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.CS&&b.width>c?new g.Md(b.width*g.qD(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b}; g.k.getVideoAspectRatio=function(){return isNaN(this.kR)?pWa(this):this.kR}; g.k.getVideoContentRect=function(a){var b=this.Xh();a=qWa(this,b,this.getVideoAspectRatio(),a);return new g.hm((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; g.k.rC=function(a){this.CS=a;this.resize()}; g.k.GF=function(){return this.LL}; g.k.onMutedAutoplayChange=function(){DX(this)}; g.k.setInternalSize=function(a){g.Nd(this.OE,a)||(this.OE=a,this.resize())}; g.k.xa=function(){this.OO&&g.dw(this.OO);this.Lj();g.T.prototype.xa.call(this)};g.k=tWa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Bx();c&&a.visualElement&&g.fy(c,a.visualElement,b)}; g.k.createClientVe=function(a,b,c,d){var e=this;d=d===void 0?!1:d;this.elements.has(a);this.elements.add(a);c=bra(c);a.visualElement=c;var f=g.Bx(),h=g.Ax();f&&h&&(g.ks("combine_ve_grafts")?PL(NL(),c,h):g.Pr(g.Wx)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.elements.has(a)&&e.destroyVe(a)}); d&&this.B.add(a)}; g.k.createServerVe=function(a,b,c){var d=this;c=c===void 0?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)}); c&&this.B.add(a)}; g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)}; g.k.wX=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,OL(NL(),a),uWa(this))}; g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.yx(b))}; g.k.hasVe=function(a){return this.elements.has(a)};vWa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)}; vWa.prototype.getPlaybackRate=function(){return this.playbackRate};BWa.prototype.LP=function(a){var b=UF(a.info.j.info,this.manifest.dc),c=a.info.Pa+this.C,d=a.info.startTime*1E3;if(this.policy.Ra)try{d=this.policy.Ra?kO(a)*1E3:a.info.startTime*1E3}catch(h){Math.random()>.99&&this.logger&&(d=$K(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.Rc(),encodedDataView:g.Xe(d,4)})),d=a.info.startTime*1E3}var e=a.info.clipId;if(this.policy.Ra){if(a.info.j.Pm())var f=a.info.duration;else a.D===-1&&(a.D=lO(a)),f=a.D||a.info.duration;f*=1E3}else f=a.info.duration* 1E3;this.policy.Ra&&(d<0||f<0)&&this.logger&&(this.logger({missingSegInfo:a.info.Rc(),startTimeMs:d,durationMs:f}),d<0&&(d=a.info.startTime*1E3),f<0&&(f=a.info.duration*1E3));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,O7:f}}; BWa.prototype.Kq=function(a){this.timestampOffset=a};IX.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.Pb,f=PWa(this,this.videoTrack,a,this.videoTrack.Pb,b);b=PWa(this,this.audioTrack,this.policy.Qf?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(LWa(this,this.videoTrack,c),LWa(this,this.audioTrack,d));return a}; IX.prototype.isSeeking=function(){return this.G}; IX.prototype.uT=function(a){this.C=a}; var OWa=2/24;var TWa=0;g.k=SX.prototype;g.k.Yu=function(){this.Z=this.now();fJa(this.Oc,this.Z);this.Db.Yu()}; g.k.Cs=function(a,b){var c=this.policy.B?(0,g.uu)():0;TX(this,a,b);a-this.D<10&&this.Qm()||this.cw(a,b);this.Db.Cs(a,b);this.policy.B&&(a=(0,g.uu)()-c,this.zb+=a,this.rb=Math.max(a,this.rb))}; g.k.cw=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Ar||(vP(this.Oc,c,d),this.hv(c,d));this.D=a;this.B=b}; g.k.Mo=function(){this.Ca&&UWa(this);this.Db.Mo()}; g.k.Bs=function(a){this.Ca||(this.Ca=this.G-this.Nb+a,this.qc=this.G,this.Bc=this.Y)}; g.k.m1=function(){}; g.k.jr=function(){var a={rn:this.requestNumber,rt:(this.Y-this.j).toFixed(),lb:this.G,stall:(1E3*this.C).toFixed(),ht:(this.Z-this.j).toFixed(),elt:(this.qa-this.j).toFixed(),elb:this.Na,d:WWa(this)};this.url&&QTa(a,this.url);this.policy.B&&(a.mph=this.rb.toFixed(),a.tph=this.zb.toFixed());a.ulb=this.Va;a.ult=this.Ga;a.abw=this.Ra;return a}; g.k.now=function(){return(0,g.uu)()}; g.k.deactivate=function(){this.isActive&&(this.isActive=!1)}; var RX;g.z(UX,SX);g.k=UX.prototype;g.k.jr=function(){var a=SX.prototype.jr.call(this);a.pb=this.aA;a.pt=(1E3*this.Wa).toFixed();a.se=this.Tb;return a}; g.k.Ir=function(){var a=this.Db;this.fb||(this.fb=a.Ir?a.Ir():1);return this.fb}; g.k.yK=function(){return this.Gl?this.Ir()!==1:!1}; g.k.wR=function(a,b,c){if(!this.Kb){this.Kb=!0;if(!this.Ar){TX(this,a,b);this.cw(a,b);var d=this.Ir();this.Tb=c;d===2?this.Ar||(this.Ga?rP(this.Oc,this.Ga/1E3,this.Va,.25):rP(this.Oc,b/(c||this.Ra),b,.01),tP(this.Oc,b,this.C)):d===1&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.Bb||this.policy.G||!this.Qm()||ZWa(this,c,b),this.Qm()&&tP(this.Oc,b,this.C));sP(this.Oc,(a-this.j)/1E3||.01,this.B,this.Wa,this.Jp)}this.deactivate()}}; g.k.cw=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Ir();this.isActive?e===1&&((d>0||this.policy.D)&&(c>.2||d<1024)?(this.C+=c,d>0&&c>.2&&ZWa(this,.05,d),this.Bb=!0):d>0&&(ZWa(this,c,d),this.Bb=!0)):$Wa(this,b)&&(e===1&&(c=(this.Z-this.j)/1E3,d=(a-this.Z)/1E3,this.Gl&&dXa(this,this.now()),this.Jb||this.Ar||(e=this.Oc,e.K.Xj(1,c),e.ra.Xj(1,d))),this.qa=a,this.Na=b,this.isActive=!0);SX.prototype.cw.call(this,a,b)}; g.k.eL=function(a){if(!this.Ar){TX(this,a,this.G);var b=(a-this.j)/1E3;this.Ir()!==2&&this.Qm()&&(this.C+=(a-this.D)/1E3,tP(this.Oc,this.B,this.C));sP(this.Oc,b,this.B,this.Wa,this.Jp,!0);a=(a-this.D)/1E3;vP(this.Oc,a,0);this.hv(a,0)}}; g.k.Qm=function(){return $Wa(this,this.B)}; g.k.xY=function(){this.Gl&&dXa(this,this.now());return this.Ka}; g.k.Bx=function(){return this.B>this.oS&&$Wa(this,this.B)}; g.k.VJ=function(){return this.Xa}; g.k.RS=function(a){a=a===void 0?this.now():a;if(this.Gl){dXa(this,a);if(this.fb?this.yK():this.ra!==this.Fa){var b=this.Fa;if(a=1}; g.k.isComplete=function(){return this.state>=3}; g.k.Nm=function(){return this.state===5}; g.k.onStateChange=function(){}; g.k.xd=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)}; g.k.vB=function(a){a&&this.state=this.xhr.HEADERS_RECEIVED}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; g.k.XE=function(){return+this.getResponseHeader("content-length")}; g.k.Fm=function(){return this.B}; g.k.ev=function(){return this.status>=200&&this.status<300&&!!this.B}; g.k.Wr=function(){return this.j.totalLength>0}; g.k.Jy=function(){var a=this.j;this.j=new UK;return a}; g.k.FL=function(){return this.j}; g.k.abort=function(){this.Ma=!0;this.xhr.abort()}; g.k.AC=function(){return!0}; g.k.SL=function(){return this.C}; g.k.Wf=function(){return""};g.k=iXa.prototype; g.k.Js=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,x;return g.H(function(B){if(B.j==1){a.status=200;b=a.j.get("docid");c=Wd(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 hXa(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(B.j!=5)return n<=m?g.G(B,zKa(b,c,d,n,f),5):B.Ia(0);p=B.B;if(p===void 0)throw Error("invariant: data is undefined");q=n*e; r=(n+1)*e;t=Math.max(0,h.start-q);u=Math.min(h.end+1,r)-(t+q);x=new Uint8Array(p.buffer,t,u);a.B.append(x);a.loaded+=u;a.loaded=200&&this.status<300&&!!this.B}; g.k.Wr=function(){return!!this.j.totalLength}; g.k.Jy=function(){var a=this.j;this.j=new UK;return a}; g.k.FL=function(){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.AC=function(){return!0}; g.k.SL=function(){return this.K}; g.k.Wf=function(){return this.errorMessage};g.k=lXa.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.Db.Mo()}}; g.k.BB=function(){this.xhr.readyState===2&&this.Db.Yu()}; g.k.Cg=function(a){this.Ma||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Db.Cs((0,g.uu)(),a.loaded))}; g.k.nu=function(){return this.xhr.readyState>=2}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.Kx(Error("Could not read XHR header "+a)),""}}; g.k.XE=function(){return+this.getResponseHeader("content-length")}; g.k.Fm=function(){return this.B}; g.k.ev=function(){return this.status>=200&&this.status<300&&this.j&&!!this.B}; g.k.Wr=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.k.Jy=function(){var a=this.response;this.response=void 0;return new UK([new Uint8Array(a)])}; g.k.FL=function(){return new UK([new Uint8Array(this.response)])}; g.k.abort=function(){this.Ma=!0;this.xhr.abort()}; g.k.AC=function(){return!1}; g.k.SL=function(){return!1}; g.k.Wf=function(){return""};g.z(ZX,g.K);g.k=ZX.prototype;g.k.gda=function(){if(!this.Ma()){var a=(0,g.uu)(),b=!1;if(this.timing.Qm()){if(this.G)return;var c=this.timing.VJ();this.timing.RS();var d=this.timing.VJ();d-c>=this.policy.Qk*.8?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=this.j>=5):this.j=0}else{var e=a-this.timing.xY(); e>0&&(this.j+=1);a=eEa($X(this),!1)*this.policy.PD;(b=e>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}this.j>0&&this.Db.hQ(); b?this.SH(!1):this.B.start()}}; g.k.SH=function(a){this.D=!0;a&&(a=$X(this),a.C+=1);this.Db.rz();this.lastError="net.timeout";aY(this)}; g.k.canRetry=function(a){var b=$X(this);a=a?this.policy.ow:this.policy.yj;return b.timedOut0&&(b=aL(b.j,0),a.ubyte=b,c===1&&b===0&&(a.b248180278=!0))}this.Ag&&(a.rc=this.policy.Wk?this.Ag:this.Ag.toString());this.policy.Lc&&this.K2&&(a.tr=this.K2);a.itag=this.info.jb[0].j.info.itag;a.ml=""+ +this.info.jb[0].j.jg();a.sq=""+this.info.jb[0].Pa;this.je&&(a.ifi=""+ +KM(this.info.resource.C));this.Ag!==410&&this.Ag!==500&&this.Ag!==503||(a.fmt_unav="true");var d;(c=this.errorMessage||((d=this.xhr)==null? void 0:d.Wf()))&&(a.msg=c);this.JH&&(a.smb="1");this.info.bq()&&(a.sdai="1");return a}; g.k.fY=function(){return aXa(this.timing)}; g.k.Wf=function(){return this.xhr.Wf()||""}; g.k.Bx=function(){return this.isComplete()||this.timing.Bx()}; g.k.Cs=function(){!this.Ma()&&this.xhr&&(this.Ag=this.xhr.status,this.policy.gq&&this.eg&&this.Km(!1),this.Il()?this.vB(2):!this.aZ&&this.Bx()&&(this.vB(),this.aZ=!0))}; g.k.Yu=function(){if(!this.Ma()&&this.xhr){if(!this.Lz&&this.xhr.nu()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Lz=((0,g.uu)()-a)/1E3}this.xhr.nu()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.hD&&!bCa()&&g.zt("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;(c=this.Qu)==null||c.stop();this.Xp=a||this.Xp; this.Tr=b||this.Tr}}; g.k.Mo=function(){var a=this.xhr;if(!this.Ma()&&a){this.Ag=a.status;a=this.lQ(a);if(this.policy.Lc){var b;(b=this.Qu)==null||b.stop()}a===5?aY(this.Bd):this.xd(a);this.Bd.B.stop()}}; g.k.lQ=function(a){var b=this;QXa(this);if(bY(this.Bd,this.xhr.status,this.Qp?this.timing.N||this.KM:this.xhr.ev(),!1,this.Bu))return 5;var c="";if(MXa(this)){var d=a.FL();d.totalLength<=this.policy.fq&&(c=NXa(this,ZK(d)))}if(c)return BN($X(this.Bd)),this.info.yl(this.je,c),3;c=a.Fm();if(this.Ol){this.Km(!0);QXa(this);if(bY(this.Bd,this.xhr.status,this.timing.N||this.KM,!1,this.Bu))return 5;if(!this.Z2){if(this.KM)return BN($X(this.Bd)),3;this.Bd.lastError="net.closed";return 5}}else{if(bY(this.Bd, this.xhr.status,this.xhr.ev(),!1,this.Bu))return 5;if((d=this.info.C)&&d!==c||a.SL())return this.Bd.lastError="net.closed",5;this.Km(!0)}d=fXa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=fXa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.N1=!0,this.policy.TH&&(d=a);nXa(this.Bd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(e.Wa*1E3+e.j-Date.now()).toFixed(0)}); return 4}; g.k.canRetry=function(){this.Ma();var a=this.info.bq();return this.Bd.canRetry(a)}; g.k.onStateChange=function(){this.isComplete()&&(this.policy.wp?this.rz():this.timing.deactivate())}; g.k.SH=function(a){this.Bd.SH(a)}; g.k.hQ=function(){this.callback&&this.callback(this,this.state)}; g.k.ex=function(){return this.Bd.ex()}; g.k.dispose=function(){WX.prototype.dispose.call(this);this.Bd.dispose();var a;(a=this.Qu)==null||a.dispose();this.policy.wp||this.rz()}; g.k.rz=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.k.Ok=function(){if(!this.KG().length)return[];this.nQ=!0;return this.eg.Ok()}; g.k.Il=function(){if(this.state<1)return!1;if(this.eg&&this.eg.wf.length)return!0;var a;return((a=this.xhr)==null?0:a.Wr())?!0:!1}; g.k.KG=function(){this.Km(!1);return this.eg?this.eg.KG():[]}; g.k.Km=function(a){try{if(a||this.xhr.nu()&&this.xhr.Wr()&&!MXa(this)&&!this.KB)this.eg||(this.eg=new MW(this.policy,this.info.jb)),this.xhr.Wr()&&(this.Ol?this.Ol.feed(this.xhr.Jy()):NW(this.eg,this.xhr.Jy(),a&&!this.xhr.Wr()))}catch(b){this.Ol?LXa(this,b):g.Kx(b)}}; g.k.FB=function(a,b){switch(a){case 21:a=b.split(1).un;OXa(this,a);break;case 22:this.Z2=!0;NW(this.eg,new UK([]),!0);break;case 43:if(a=pL(new jL(b),1))this.info.yl(this.je,a),this.KM=!0;break;case 45:b=WCa(new jL(b));a=b.fT;b=b.gT;a&&b&&(this.QI=a/b);break;case 44:this.iC=VCa(new jL(b));var c,d,e;!this.timing.N&&((c=this.iC)==null?void 0:c.action)===4&&((d=this.iC)==null?0:(e=d.G1)==null?0:e.Qp)&&(this.Qp=this.iC.G1.Qp);break;case 53:this.policy.Lc&&(a=SCa(new jL(b)).lq)&&(this.Qu||(this.lq=a,this.Qu= new g.fp(this.p_,a,this)),this.Qu.start());break;case 60:this.aB=kM(new jL(b));break;case 64:this.policy.TC&&(a=FCa(new jL(b)),this.policy.Wu(a));break;case 58:this.policy.zw&&(a=vCa(new jL(b)))&&(this.hj=a,this.policy.tj&&a.hj===3&&(this.Bu=!0))}}; g.k.Bs=function(a,b,c,d){c||this.timing.Bs(d);if(a!==21)return!1;if(a=this.policy.gq)if(a*=this.info.jb[0].j.info.ub,b.totalLength+c!==d&&b.totalLength0)return!1;if(!this.xhr.nu())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Ol)var a=!this.info.C;else this.xhr.XE()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a=a==="audio/mp4"||a==="video/mp4"||a==="video/webm");if(!a)return!1;if(isNaN(this.info.hh))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.jb[0].Pa)return!1;return!0}; g.k.VP=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.k.MJ=function(){this.xhr&&(this.Xp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Xp}; g.k.mY=function(){this.xhr&&(this.Tr=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Tr}; g.k.Uh=function(){return this.Bd.Uh()}; g.k.p_=function(){if(!this.Ma()&&this.xhr){this.K2="heartbeat";var a=this.Bd;a.j+=2;this.hQ()}};hY.prototype.FB=function(a,b){switch(a){case 20:a=new jL(b);a={Yp:mL(a,1),videoId:pL(a,2),itag:mL(a,3),lmt:mL(a,4),xtags:pL(a,5),jC:mL(a,6),xo:nL(a,8),Hq:mL(a,9),Sma:mL(a,10),startMs:mL(a,11),durationMs:mL(a,12),Ks:mL(a,14),timeRange:qL(a,15,jCa),Mj:mL(a,16),fL:mL(a,17),clipId:pL(a,1E3)};this.UR(a);break;case 21:this.SR(b,!1);break;case 22:this.rq(b);break;case 31:a=tL(b,KCa);this.AB(a);break;case 52:a=tL(b,TCa);this.CB(a);break;default:this.IR(a,b)}}; hY.prototype.UR=function(){}; hY.prototype.IR=function(){};g.z(iY,SX);g.k=iY.prototype;g.k.cw=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Qm()?d>0&&(this.ra&&(c>.2||d<1024?(this.C+=c,c>.2&&rP(this.Oc,.05,d,.05)):rP(this.Oc,c,d,c)),this.Fa&&(this.Ka+=d,this.Wa+=c)):(c=this.Oc,d=(a-this.Z)/1E3,c.K.Xj(1,(this.Z-this.j)/1E3),c.ra.Xj(1,d),this.qa=a,this.Na=b);SX.prototype.cw.call(this,a,b)}; g.k.wR=function(a,b){TX(this,a,b);this.cw(a,b);this.ra&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.Qm()&&tP(this.Oc,this.Ka,this.C),sP(this.Oc,(a-this.j)/1E3||.01,this.B,b,!1))}; g.k.eL=function(a){TX(this,a,this.G);var b=(a-this.D)/1E3;vP(this.Oc,b,0);this.hv(b,0);if(this.ra||!this.Qm())b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.Qm()&&(this.C+=(a-this.D)/1E3,tP(this.Oc,this.Ka,this.C)),sP(this.Oc,(a-this.j)/1E3||.01,this.B,b,!1,!0)}; g.k.EG=function(a){a=a.mO||2147483647;(a&2)!==2&&(this.Fa=!1);(a&1)===1&&(this.ra=!0)}; g.k.uG=function(a){a=a.mO||2147483647;(a&2)===2&&(this.Fa=!1);(a&1)===1&&(this.ra=!1)}; g.k.yY=function(){return this.qa}; g.k.IJ=function(){var a=this.Fa?this.now()-this.D:0;return Math.max(this.Wa*1E3+a,1)}; g.k.QP=function(){return this.Ka*1E3/this.IJ()}; g.k.Qm=function(){return this.B>2048}; g.k.m1=function(a){this.Xa=a}; g.k.jr=function(){var a=SX.prototype.jr.call(this);a.rbw=this.QP();a.rbe=+this.Fa;a.gbe=+this.ra;a.ackt=(this.Xa-this.j).toFixed();return a}; g.k.RS=function(){}; g.k.VJ=function(){return NaN}; g.k.xY=function(){return this.j+this.snapshot.delay*1E3};g.z(SXa,hY);g.k=SXa.prototype; g.k.IR=function(a,b){switch(a){case 35:this.tq(b);break;case 44:this.AG(b);break;case 43:this.cS(b);break;case 53:this.aS(b);break;case 55:a=new jL(b);(a={timeline:qL(a,1,YCa),rda:qL(a,2,aDa)},a.timeline)&&a.timeline.J2&&this.Db.hS(a.timeline.J2,a.timeline.Uda,a.rda);break;case 56:this.xG();break;case 57:this.zG(b);break;case 42:this.LR(b);break;case 45:this.CG(b);break;case 59:this.yG(b);break;case 51:this.DG(b);break;case 49:this.EG(b);break;case 50:this.uG(b);break;case 47:this.BG(b);break;case 58:this.Um(b); break;case 61:this.Db.Nd.m1((0,g.uu)());break;case 66:this.vG(b)}}; g.k.DG=function(a){a=new jL(a);a={dpa:sL(a,1,iM),cpa:sL(a,2,iM)};this.Db.DG(a)}; g.k.yG=function(a){var b=new jL(a);a=rL(b,1);var c=rL(b,2);b=rL(b,3);this.Db.yG(a,c,b)}; g.k.CG=function(a){a=WCa(new jL(a));this.Db.CG(a)}; g.k.BG=function(a){a=tL(a,NCa);this.Db.BG(a)}; g.k.LR=function(a){a=new jL(a);a={videoId:pL(a,1),formatId:qL(a,2,iM),endTimeMs:mL(a,3),Wma:mL(a,4),mimeType:pL(a,5),oZ:qL(a,6,DCa),indexRange:qL(a,7,DCa),rP:qL(a,8,uCa)};this.Db.LR(a)}; g.k.zG=function(a){a=aDa(new jL(a));this.Db.zG(a)}; g.k.xG=function(){this.Db.xG()}; g.k.tq=function(a){a=LCa(new jL(a));this.Db.tq(a)}; g.k.aS=function(a){a=SCa(new jL(a));this.Db.aS(a)}; g.k.AG=function(a){a=VCa(new jL(a));this.Db.AG(a)}; g.k.cS=function(a){a={redirectUrl:pL(new jL(a),1)};this.Db.cS(a)}; g.k.SR=function(a){var b=aL(a,0);if(a.totalLength!==1){a=a.split(1).un;var c=this.B[b]||null;c&&LUa(this.Db.ag,b,c,a)}}; g.k.rq=function(a){a=aL(a,0);var b=this.B[a]||null;b&&this.Db.rq(a,b)}; g.k.CB=function(a){this.Db.CB(a)}; g.k.UR=function(a){var b=a.Yp,c=a.xo,d=a.jC,e=a.fL,f=a.Mj,h=a.Hq,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Ks,q=a.clipId,r=RXa(a);a=Hbb.has(LF[""+a.itag]);this.B[b]=r;this.Db.EB(r,a,{Yp:b,xo:!!c,jC:d!=null?d:-1,Hq:h!=null?h:-1,startMs:l!=null?l:-1,durationMs:m!=null?m:-1,Ks:p,fL:e,Mj:f,clipId:q,timeRange:n})}; g.k.EG=function(a){a={mO:mL(new jL(a),1)};this.Db.EG(a)}; g.k.uG=function(a){a={mO:mL(new jL(a),1)};this.Db.uG(a)}; g.k.AB=function(a){this.Db.AB(a)}; g.k.Um=function(a){a=vCa(new jL(a));this.Db.Um(a)}; g.k.vG=function(a){a={vZ:qL(new jL(a),1,QCa)};this.Db.vG(a)};g.z(jY,g.K);g.k=jY.prototype;g.k.Cs=function(){!this.Ma()&&this.xhr&&(this.Km(),l0a(this.Db,this))}; g.k.Yu=function(){}; g.k.Mo=function(){if(!this.Ma()&&this.xhr){var a=this.lQ();a===5?aY(this.Bd):this.xd(a);this.Bd.B.stop();var b;(b=this.gH)==null||b.stop()}}; g.k.lQ=function(){if(!this.policy.gw&&bY(this.Bd,this.xhr.status,this.xhr.ev(),this.info.Yr(),this.Bu))return 5;this.Km();if(this.policy.gw&&bY(this.Bd,this.xhr.status,this.xhr.ev(),this.info.Yr(),this.Bu))return 5;if(this.H1)return 3;nXa(this.Bd,this.xhr.Fm(),0);this.policy.Tb&&q0a(this.Db);return 4}; g.k.Km=function(){var a=this.xhr;if(a.Wr()){a=a.Jy();var b=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+b}); this.Ol.feed(a)}}; g.k.FB=function(a,b){this.Nd.policy.j&&a===21&&(this.Nd.N=!0);this.tda.FB(a,b)}; g.k.Bs=function(a,b,c,d){this.Nd.policy.j&&a===21&&(this.Nd.N=!0);c||this.Nd.Bs(d);return!1}; g.k.tq=function(a){this.Db.tq(a)}; g.k.aS=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;(b=this.gH)==null||b.dispose();this.SS=a;a.O0&&(this.gH=new g.fp(this.o_,a.O0,this));this.o_()}}; g.k.o_=function(){var a;if((a=this.SS)!=null&&a.items){var b;(b=this.gH)==null||b.start();if(this.Nd.Qm()){a=this.Nd.IJ();b=this.Nd.QP();var c=UXa(this,a);if(!(b>c.VK||c.nR>0&&this.info.DP()>c.nR)){this.US=(0,g.uu)();var d;(d=this.gH)==null||d.stop();this.policy.Tb&&(d=this.Db,a={Iw:Math.round(b*a/1E3),Qy:a},d.policy.Tb&&(d.Ca=a,d.Dq++));this.Bd.SH(!1)}}}}; g.k.AG=function(a){this.Db.AG(a)}; g.k.cS=function(a){this.H1=!0;this.info.resource.yl(this.je,a.redirectUrl)}; g.k.EG=function(a){this.Nd instanceof iY&&this.Nd.EG(a)}; g.k.uG=function(a){this.Nd instanceof iY&&this.Nd.uG(a)}; g.k.hS=function(a,b,c){this.Db.hS(a,b,c,this.Sp())}; g.k.LR=function(a){if(pU(this.policy)){var b=a.formatId,c=RXa({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new JN(((d=a.oZ)==null?void 0:d.first)||0,((e=a.oZ)==null?void 0:e.IZ)||0),h,l;d=new JN(((h=a.indexRange)==null?void 0:h.first)||0,((l=a.indexRange)==null?void 0:l.IZ)||0);this.manifest.N.get(c)||(c=a.rP||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=BO(""),c=zO(c,null),tO(a,new qO(b,c,f,d)))}}; g.k.CG=function(a){this.Db.CG(a)}; g.k.AB=function(a){this.Db.AB(a)}; g.k.yG=function(a,b,c){this.Db.yG(a,b,c)}; g.k.zG=function(a){a.scope===2&&(this.sda=a);this.Db.zG(a)}; g.k.xG=function(){this.PW=!0;this.Db.xG()}; g.k.DG=function(a){this.policy.tp&&this.Db.DG(a)}; g.k.BG=function(a){this.Db.BG(a,this.Sp())}; g.k.Um=function(a){this.policy.tj&&a.hj===3&&(this.Bu=!0);this.Db.Um(a)}; g.k.vG=function(a){this.Db.vG(a)}; g.k.canRetry=function(){this.Ma();return this.Bd.canRetry(!1)}; g.k.dispose=function(){if(!this.Ma()){g.K.prototype.dispose.call(this);this.Bd.dispose();var a;(a=this.gH)==null||a.dispose();this.xd(-1);this.rz()}}; g.k.xd=function(a){this.state=a;l0a(this.Db,this)}; g.k.Yr=function(){return this.info.Yr()}; g.k.sO=function(){return this.PW}; g.k.TP=function(){return this.sda}; g.k.EB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.G&&!b&&(this.ej=c.Hq,this.tv=c.startMs);var d=0;this.policy.uh&&this.q_&&this.clipId&&(d=lX(this.q_,this.clipId)/1E3);this.ag.EB(a,b,c,d);this.ag.Yc.get(a).aE=!0}; g.k.rq=function(a,b){this.ag.rq(a,b)}; g.k.CB=function(a){this.requestIdentifier=a}; g.k.Ok=function(a){return this.ag.Ok(a)}; g.k.Wn=function(a){return this.ag.Wn(a)}; g.k.Il=function(a){return this.ag.Il(a)}; g.k.Hr=function(){return this.ag.Hr()}; g.k.Ir=function(){return 1}; g.k.Sp=function(){return this.Nd.requestNumber}; g.k.RP=function(){return this.requestIdentifier}; g.k.dY=function(){return this.clipId}; g.k.Ee=function(){return this.je.Ee()}; g.k.L_=function(){this.rz()}; g.k.rz=function(){this.Nd.deactivate();var a;(a=this.xhr)==null||a.abort()}; g.k.isComplete=function(){return this.state>=3}; g.k.CZ=function(){return this.state===3}; g.k.Nm=function(){return this.state===5}; g.k.mQ=function(){return this.isComplete()}; g.k.Cu=function(){return this.state>=1}; g.k.ex=function(){return 0}; g.k.cY=function(){var a;return(a=this.info.data)==null?void 0:a.pO}; g.k.hQ=function(){}; g.k.zY=function(){return r_a(this.info)}; g.k.Uh=function(){return this.Bd.Uh()}; g.k.Jr=function(){var a=oXa(this.Bd);Object.assign(a,s_a(this.info));a.req="sabr";a.rn=this.Sp();var b;if((b=this.xhr)==null?0:b.status)a.rc=this.policy.Wk?this.xhr.status:this.xhr.status.toString();var c;(b=(c=this.xhr)==null?void 0:c.Wf())&&(a.msg=b);this.US&&(c=UXa(this,this.US-this.Nd.yY()),a.letm=c.W9,a.mrbps=c.VK,a.mram=c.nR);return a}; g.k.BY=function(){return{ej:this.ej,tv:this.tv,bq:this.info.bq()}};VXa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.uu)()};g.z(fYa,g.iy);g.k=fYa.prototype; g.k.WR=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.vz);this.N.dS(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.ra.has(a.Pa)){c=a.startTime;d=[];for(e=0;e=0){var e;d=((e=iX(b.Wc,c,2))==null?void 0:e.Nt)||""}if(d)return b.xv(a,c),iYa(this.ya,a,a,c),this.oa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.oa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.z(qY,g.K);qY.prototype.fp=function(a,b,c){c=c===void 0?{}:c;this.policy.qj=OO(a,c,this.D,b===void 0?!1:b)};qYa.prototype.mL=function(a){var b=this;if(this.policy.Zy){var c=new Set(a);c.size===this.Fa.size&&[].concat(g.w(c)).every(function(d){return b.Fa.has(d)})||(this.ya.oa("lwnmow",{itagDenylist:[].concat(g.w(a)).join(",")}),this.ya.Ey(!!c.size),this.Y=-1,this.Fa=c,vY(this,this.j),this.Ra=!0)}}; qYa.prototype.fp=function(a,b,c){c=c===void 0?{}:c;var d=this.policy.qj;this.G.fp(a,b===void 0?!1:b,c);if(d!==this.policy.qj){vY(this,this.j);wY(this);var e,f;d>this.policy.qj&&((e=this.C)==null?0:PF(e.info))&&((f=this.nextVideo)==null||!PF(f.info))&&(this.qa=!0)}};JYa.prototype.dispose=function(){this.ra=!0}; JYa.prototype.Ma=function(){return this.ra}; g.z(DY,Error);var z5a=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]);GY.prototype.skip=function(a){this.offset+=a}; GY.prototype.Gm=function(){return this.offset};g.k=bZa.prototype;g.k.wY=function(){return this.B}; g.k.Po=function(){return this.B.length?this.B[this.B.length-1]:null}; g.k.il=function(){this.B=[];IY(this);aZa(this)}; g.k.Qs=function(){this.bb=this.B.shift().info}; g.k.Wn=function(){return g.Bl(this.B,function(a){return a.info})}; g.k.Fh=function(){return!!this.K.info.audio}; g.k.getDuration=function(){return this.K.index.Xt()};g.z(JX,WX);g.k=JX.prototype;g.k.onStateChange=function(){this.Ma()&&(QW(this.ag,this.formatId),this.j.dispose())}; g.k.Jr=function(){var a=EUa(this.ag,this.formatId),b;var c=((b=this.ag.Yc.get(this.formatId))==null?void 0:b.bytesReceived)||0;var d;b=((d=this.ag.Yc.get(this.formatId))==null?void 0:d.Dz)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:FUa(this.ag,this.formatId),isAnyMediaEndReceived:this.ag.wx(this.formatId)}}; g.k.fY=function(){return 0}; g.k.Bx=function(){return!0}; g.k.Ok=function(){return this.ag.Ok(this.formatId)}; g.k.KG=function(){return[]}; g.k.Il=function(){return this.ag.Il(this.formatId)}; g.k.Uh=function(){return this.lastError}; g.k.ex=function(){return 0};g.z(KY,g.K);g.k=KY.prototype;g.k.Po=function(){return this.D.Po()}; g.k.Qs=function(a){this.D.Qs(a);var b;(b=this.Z)!=null&&(b.B=FWa(b,b.hd,b.oy,b.B,a),b.D=a,b.G=(0,g.uu)());this.ub=Math.max(this.ub,a.info.j.info.ub||0)}; g.k.getDuration=function(){if(this.policy.j){var a=this.ya.Xf();if(a)return oX(a)}return this.j.index.Xt()}; g.k.il=function(){LX(this);this.D.il()}; g.k.MP=function(){return this.D}; g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.jb[0].Pa:!1}; g.k.Kq=function(a){var b;(b=this.Z)==null||b.Kq(a)};g.z(YY,g.K);YY.prototype.C=function(){this.B++>15||(this.j=!this.j,new QZa(this.ya,this.policy,this.Oc,this.resource,this.j),this.delay.start())}; g.k=QZa.prototype;g.k.Yu=function(){}; g.k.Cs=function(){}; g.k.Mo=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Fm()===this.size)this.ya.oa("rqs",this.getInfo());else{var a="net.connect";this.xhr.status>200?a="net.badstatus":this.xhr.nu()&&(a="net.closed");this.onError(a)}}; g.k.onError=function(a){var b=this;this.ya.handleError(a,this.getInfo());wW("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.ya.oa("pathprobe",c)},function(c){b.ya.handleError(c.errorCode,c.details)})}; g.k.getInfo=function(){var a=this.timing.jr();a.shost=IM(this.location.base);a.pb=this.size;return a};g.z(ZY,g.K);ZY.prototype.NQ=function(a,b){if(!WY(a)||!a.j.jg())return!1;var c=this.C.Ra||EZa(a)||b<=this.policy.OD||this.C.qa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+EZa(a)+", health: "+b}); return c}; ZY.prototype.xa=function(){g.K.prototype.xa.call(this)}; var $Y=2/24;g.z(eZ,g.K);eZ.prototype.lL=function(a,b,c){var d;var e=((d=this.B)==null?void 0:d.reason)==="m"?"m":this.B&&i_a(this,this.B)?this.B.reason:"a";this.ya.lL(new pY(a,e,c));cZ(this.ya,b,a,!0)}; eZ.prototype.J1=function(a){for(var b=g.v(this.Z),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.C=[c],this.K=this.manifest.j[a],this.Te.j&&(this.Y=!0),new pY(this.K,"m");this.C=[];return null}; eZ.prototype.fp=function(a,b,c){c=c===void 0?{}:c;this.j.fp(a,b===void 0?!1:b,c)};fZ.prototype.Yr=function(){return this.requestType===1}; fZ.prototype.DP=function(){var a;return((a=this.Db)==null?void 0:a.DP())||0}; fZ.prototype.bq=function(){var a;return!((a=this.data)==null||!a.dn)};g.z(gZ,g.K);gZ.prototype.encrypt=function(a){(0,g.uu)();return w_a(this).encrypt(a,this.iv)}; gZ.prototype.decrypt=function(a,b){(0,g.uu)();return w_a(this).decrypt(a,b)};x_a.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.Vm.Sd("omd_s");e=new Uint8Array(16);b?c?h=new mP(c,a):h=new lP(a):f=new kP(a);case 2:if(!d.j.length||!d.j[0].isEncrypted){p.Ia(4);break}l=d.j.shift();if(!f){m=h.decrypt(ZK(l.buffer),e);p.Ia(5);break}return g.G(p,f.decrypt(ZK(l.buffer),e),6);case 6:m=p.B;case 5:n=m;for(var q=0;q=4)){var b=pZ(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.Wf()){var d="onesie.net";b.msg=c.Wf()}else c.status>=400?d="onesie.net.badstatus":c.ev()?this.ZY||(d="onesie.response.noplayerresponse"):d=c.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.vj(new vF(d,b)):(this.Sd("or_fs"),this.Nd.wR((0,g.uu)(),c.Fm(),0),this.xd(4),this.Lm&&this.oa("rqs",b));this.Lm&&this.oa("ombre", "ok."+ +!d);this.jH=!1;oZ(this);K_a(this.Vm);if(!this.XH){this.HG.stop();var e;(e=this.wL)==null||e.stop()}var f;if(a=(f=this.BA)==null?void 0:YTa(f))for(f=0;f1E3){var a;(a=this.Nd)==null||a.eL((0,g.uu)());a=pZ(this);if(this.X.yc()&&this.xhr instanceof gXa){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.totalLength;a.xdc=b.D}this.vj(new vF("net.timeout",a))}}else(0,g.uu)()-this.Nd.j>1E4&&((b=this.Nd)==null||b.eL((0,g.uu)()),this.jQ());this.isComplete()||this.zO.start()}}; g.k.jQ=function(){this.logger.info("Onesie request timed out");this.jH=!1;if(!oZ(this)){var a=pZ(this);a.timeout="1";this.vj(new vF("onesie.request",a))}}; g.k.vj=function(a){var b=this;a=xF(a);this.LA?this.ea.Rd(a):(this.Oq.reject(a),this.LA=!0);K_a(this.Vm);this.XH||this.HG.stop();this.Sd("or_fe");var c,d;(c=this.BA)==null||(d=YTa(c))==null||d.forEach(function(e){b.oa("pathprobe",e)}); this.xd(5);this.dispose()}; g.k.isComplete=function(){return this.state>=3}; g.k.mQ=function(a){var b,c;return this.isComplete()||!!((b=this.cg)==null?0:(c=b.get(a))==null?0:c.j)}; g.k.CZ=function(){return!1}; g.k.Nm=function(){return this.state===5}; g.k.notifySubscribers=function(a){for(var b=0;b102400&&!this.xZ&&(this.Sd("or100k"),this.xZ=!0);if(a.Wr()){var b=a.Jy(),c=b.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); this.Lm&&this.oa("ombrss","len."+c);this.Ol.feed(b)}if(this.cg)for(var d=g.v(this.cg.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;(a=this.cg.get(f))==null||a.vB();this.notifySubscribers(f)}}catch(h){this.vj(h)}}; g.k.Sp=function(){return this.Nd.requestNumber}; g.k.RP=function(a){return this.w1.get(a)}; g.k.BY=function(){return{ej:this.ej,tv:this.tv,bq:!1}};g.z(a0a,g.K);g.k=a0a.prototype;g.k.kH=function(a){this.qa=void 0;q0a(this);o0a(this,a)}; g.k.MQ=function(a){return this.j.length===0?!1:Math.abs(this.j[0].zY()-a)<50}; g.k.tq=function(a){this.B=a;this.qa=(0,g.uu)()+(a.backoffTimeMs||0)}; g.k.AG=function(a){if(a.action===void 0){var b=this.ea.gx();b!==void 0&&this.ya.Mu(b)}else if(a.action!==0||!this.Ka)switch(b={},b.reason=a.Uca,b.action=a.action,a.action){case 1:this.policy.G&&this.K&&this.K.yE(void 0,void 0,b);break;case 0:this.Ka=!0;this.ya.cP(b);break;case 2:this.ya.handleError("sabr.config",b,1);break;case 5:q5a(this.ea,!0);break;case 6:q5a(this.ea,!1);break;case 3:this.policy.aD&&((a=this.manifest.qa)!=null&&(a.N=!0),this.ya.handleError("sabr.hostfallback",b))}}; g.k.hS=function(a,b,c,d){if(this.policy.j){this.ya.oa("ssap",{rn:d,v:b,tl:s0a(a)});var e=this.ya.Xf();a={Gt:a,context:c,version:b};c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.rk.add(c.type));e?p0a(this,e,a):(this.ya.oa("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}}; g.k.zG=function(a){this.policy.qa&&a&&a.type&&a.sendByDefault&&this.rk.add(a.type)}; g.k.xG=function(){}; g.k.CG=function(a){if(a.fT!==void 0&&a.gT){var b=a.fT/a.gT;this.audioTrack.N=!1;this.videoTrack.N=!1;this.policy.Wa&&(this.ya.Mg.B=!1);var c={bd:"sabr_seek",WA:!0,IT:!0};a.seekSource&&(c.seekSource=a.seekSource);PX(this.ya,b,c)}}; g.k.AB=function(a){a.lK&&a.mK&&HO(this.manifest,a.lK,a.mK);this.policy.Xq&&(a.y_&&a.z_&&(this.manifest.Y=a.y_/a.z_),a.l_&&a.m_&&(this.manifest.Z=a.l_/a.m_))}; g.k.Um=function(a){this.ya.Um(a)}; g.k.yG=function(a,b,c){this.policy.B&&this.ya.oa("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.v(a);for(var d=a.next();!d.done;d=a.next())this.rk.add(d.value)}if(b)for(b=g.v(b),a=b.next();!a.done;a=b.next())a=a.value,this.rk.has(a)&&this.rk.delete(a);if(c)for(c=g.v(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),b===3&&(this.videoData.UA=""))}; g.k.DG=function(){}; g.k.BG=function(a,b){$Oa(this.policy,a,4,b)}; g.k.vG=function(a){if(a==null?0:a.vZ)if(a=a.vZ.n8){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.formatId){var c=this.manifest.N.get(eFa(b.formatId));c&&c.info&&(c.info.debugInfo=b.debugInfo)}}}; g.k.mf=function(){return this.ea.mf()||""}; g.k.DP=function(){var a=SY(this.audioTrack,!0)*1E3,b=SY(this.videoTrack,!0)*1E3;return Math.min(a,b)}; g.k.Dl=function(a,b){this.ya.oa(a,b)}; g.k.fK=function(a){K0a(this.ya,AYa(this.ra,a))}; g.k.xa=function(){g.K.prototype.xa.call(this);this.B=void 0;o0a(this,!0);this.j=[]};t0a.prototype.df=function(a,b){if(this.D)return y0a(this,b);if(b=QX(a)){var c=b.B;c&&c.D&&c.j&&(a=a.C.length?a.C[0]:null)&&a.state>=2&&!a.Nm()&&a.info.hh===0&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN}; t0a.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.z(g.uZ,g.K);g.k=g.uZ.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a}); a=a||0;pU(this.policy)||(b=yY(this.j),N0a(this.ea,new pY(b.video,b.reason)),this.ea.ey(new pY(b.audio,b.reason)));this.manifest.isManifestless&&d_a(this.D);this.G&&v0a(this.G,this.videoTrack.j);b=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.manifest.isManifestless;this.policy.Ov&&(d=d||this.manifest.ge);this.policy.Bb||(this.currentTime=d?a:b);if(this.policy.C){var e;((e=this.qa)==null?0:$_a(e,this.mf()||""))&&C0a(this)&&B0a(this,this.videoTrack)&&B0a(this,this.audioTrack)&&r0a(this.Y, this.qa)}else this.ra&&(D0a(this,this.videoTrack),D0a(this,this.audioTrack),DUa(this.ra),delete this.ra);c?(this.policy.Pf?(this.Bb=c,xZ(this,c)):xZ(this,!1),g.gp(this.XF)):(c=this.getCurrentTime()===0,bZ(this.D,this.videoTrack,this.videoTrack.j,c),bZ(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.C&&d0a(this.Y,!0),this.policy.Bi&&this.ea.gx()||this.seek(this.getCurrentTime(),{}).Ml(function(){}),this.timing.tick("gv")); (this.manifest.bf||this.manifest.Ji||this.manifest.fb||this.manifest.Tb||this.manifest.Lc)&&this.ea.YG(this.manifest)}; g.k.resume=function(){if(this.isSuspended||this.Zr){this.logger.debug("Resumed.");this.oJ=this.Zr=this.isSuspended=!1;try{this.df()}catch(a){g.Jx(a)}}}; g.k.Xz=function(a){a=a===void 0?!1:a;this.logger.debug("detaching media source");G0a(this);rG(this.ea)&&(this.N=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Fa&&this.oa("loader",{setsmb:1}),this.policy.Ga=!0):this.policy.Pf?xZ(this,this.Bb):xZ(this,!1);this.il()}; g.k.setAudioTrack=function(a,b,c){c=c===void 0?!1:c;if(!this.Ma()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.Dd&&(this.Va=!0));if(pU(this.policy)){var e=this.C.J1(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id}); this.ea.ey(e)}else{var f=zYa(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id}); this.ea.ey(new pY(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Ii(b),this.oa("setAudio",{id:a.id,cmt:b,sq:c}),c>=0)){DZa(this.audioTrack,c,NaN,NaN);GO(this.manifest,c,!1);return}this.ea.Fq()}}; g.k.setPlaybackRate=function(a){a!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(a)}; g.k.lL=function(a){var b=a.j.info.Fh();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+$F(a.j.info)}); b?this.ea.ey(a):N0a(this.ea,a)}; g.k.fK=function(a){QN(a.jb[a.jb.length-1])&&K0a(this,AYa(this.j,a.jb[0].j))}; g.k.Yt=function(){return this.ea.Yt()}; g.k.Um=function(a){if(this.policy.tj)if(a.hj===1)this.ea.sC(0);else{if(a.hj===2||a.hj===3){var b=!1;if(a.hj===3){b=this.ea.uA();var c;this.Kb=(c=a.q1)!=null?c:Infinity;this.ea.sC(b+1);(b=c_a(this))&&this.mB(!0)}this.ea.eS(!0,b)}}else this.ea.Um(a)}; g.k.sA=function(){return this.ea.sA()}; g.k.rl=function(){return this.ea.rl()}; g.k.jS=function(a){this.ea.jS(a)}; g.k.Hca=function(){var a,b=(a=this.ea.Ke())==null?void 0:a.getCurrentTime();b?this.ea.oa("rms",{cta:b}):g.gp(this.zb)}; g.k.df=function(){J0a(this);if(this.Qa&&oG(this.Qa)&&!this.Qa.yk()){var a=MY(this.videoTrack);a=this.policy.JD&&a&&ON(a);this.manifest.isManifestless&&this.manifest.C&&DO(this.manifest)?(this.N=DO(this.manifest),this.Qa.Wo(this.N)):IO(this.manifest)&&!a?isNaN(this.N)?(this.N=this.getCurrentTime()+3600,this.Qa.Wo(this.N)):this.N<=this.getCurrentTime()+1800&&(this.N=Math.max(this.N+1800,this.getCurrentTime()+3600),this.Qa.Wo(this.N)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()), (!isFinite(this.N)||this.N!==a)&&a>0&&(this.Qa.Wo(a),this.N=a))}if(!this.Ma())if(CO(this.manifest)&&this.manifest.Nm()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.rb?{rc:b.Ag}:{rc:b.Ag.toString()},1)}else if(this.policy.C)a:{try{j0a(this.Y);this.manifest.isManifestless&&this.policy.K&&OX(this.Mg);if(pU(this.policy)&&!lG()&&this.policy.Cn&&this.Qa&&!sG(this.Qa)&&this.videoTrack.Ka&&this.audioTrack.Ka){this.oa("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.sb, a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.sb});var c=this.Qa,d=this.videoTrack.j,e=this.audioTrack.j;!sG(c)&&e&&d&&(Fwa(c,d.info,e.info,this.policy.Kb),H0a(this,c))}var f;((f=this.Qa)==null?0:sG(f))&&this.QB();pU(this.policy)||wZ(this);d0a(this.Y)}catch(l){g.Kx(l);b=l;if(b.message.includes("changeType")){this.oa("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.handleError("fmt.unplayable",{exp:b.name,msg:b.message,s:b.stack},1)}b1a(this);g.gp(this.bb)}else if(!this.manifest.B|| !HZa(this.videoTrack)&&!HZa(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Jb?c=!1:(this.il(),this.ea.seekTo(Infinity,{bd:"checkLoaderTracksSync",rr:!0}),c=!0),!c){J0a(this);this.manifest.isManifestless&&(IZa(this.videoTrack),IZa(this.audioTrack),OX(this.Mg),(c=QX(this.videoTrack))&&c.B&&(c=c.B.D&&!this.policy.hk,this.oa(c===this.policy.N.lj?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.lj,dfs:this.policy.hk},!0)));if(this.Qa)this.QB();else if(this.policy.D){var h;c=!1;if(this.policy.wB)for(d= g.v([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=QX(f);e&&f.Po()!==MY(f);e=QX(f))f.Qs(e);c=c||!!e}else(b=QX(this.videoTrack))&&this.videoTrack.Qs(b),(h=QX(this.audioTrack))&&this.audioTrack.Qs(h);PY(this.videoTrack)&&PY(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&yZ(this)}wZ(this);bZ(this.D,this.videoTrack,this.videoTrack.j,!1);bZ(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.FC||M0a(this,this.videoTrack, this.audioTrack);VZa(this.D,this.videoTrack,this.audioTrack);VZa(this.D,this.audioTrack,this.videoTrack);b1a(this);this.G&&(b=this.G,b.D?(h=b.K+b.policy.uw,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.Vk)),b=Math.max(0,h*1E3-Date.now())):b=NaN,isNaN(b)||g.gp(this.Nb,b));g.gp(this.bb)}}; g.k.cP=function(a){this.ea.cP(a)}; g.k.QB=function(){var a=this;if(this.Qa){var b=this.Qa.j,c=this.Qa.B;i1a(this,this.audioTrack);i1a(this,this.videoTrack);var d=P0a(this);if(d){if(this.policy.gt){if(!b.Xw()){var e=QX(this.audioTrack);if(e){if(!tZ(this,this.audioTrack,b,e.info))return;S0a(this,b,e)}}if(!c.Xw()&&(e=QX(this.videoTrack))){if(!tZ(this,this.videoTrack,c,e.info))return;S0a(this,c,e)}}this.Dp||(this.Dp=(0,g.uu)(),this.logger.debug(function(){return"Appends pause start "+a.Dp+" reason "+d}),this.policy.B&&this.oa("apdps", {r:d}))}else if(this.Dp&&(O0a(this,this.Dp),this.Dp=0),Q0a(this),e=!1,this.policy.j&&XY(this.videoTrack)||!W0a(this,this.videoTrack,c)||(e=!0,YXa(this.timing),bYa(this.timing)),this.Qa&&!this.Qa.Og()&&(this.policy.j&&XY(this.audioTrack)||!W0a(this,this.audioTrack,b)||(e=!0,ZXa(this.timing),cYa(this.timing)),!this.Ma()&&this.Qa)){if(!this.policy.Va&&PY(this.videoTrack)&&PY(this.audioTrack)&&oG(this.Qa)&&!this.Qa.yk()){c=!1; c=MY(this.audioTrack);if(this.policy.j){var f;b=(f=this.xb)==null?void 0:nX(f,c.Ve*1E3);c=!(!b||b.clipId!==c.clipId);this.oa("ssap",{eos:c})}else f=c.j,c=f===this.manifest.j[f.info.id];c&&(this.logger.debug("Setting EOS"),Gwa(this.Qa),gJa(this.schedule))}e&&!this.Qa.isAsync()&&yZ(this)}}}; g.k.e6=function(a){var b=this,c,d;(d=(a===((c=this.Qa)==null?void 0:c.j)?this.audioTrack:this.videoTrack).Ca)==null||d.stop();var e;h1a(this,a===((e=this.Qa)==null?void 0:e.j));var f;if(this.policy.Dd&&a===((f=this.Qa)==null?void 0:f.j)&&this.Wa){c=this.Wa-this.getCurrentTime();var h;this.ea.oa("asl",{l:c,xtag:(h=MY(this.audioTrack))==null?void 0:h.j.info.j});this.Va=!1;this.Wa=0}a.Mm()&&a.oe().length===0&&(a.Gz(),this.Qa&&!this.Qa.Mm()&&(this.ea.U().yc()&&this.ea.oa("rms",{ld:"seek"}),this.Qa.N= performance.now(),this.ea.qP(),this.ea.U().yc()&&g.gp(this.zb)));if(this.policy.Ka&&this.Qa){h=a===this.Qa.j;var l=a.lA();if(l){if(!l.Sb||l.Se)h=a.vc({a:h}),h.omt=(this.getCurrentTime()+this.Ec()).toFixed(3),h.to=this.Ec(),this.oa("sbu",h),this.policy.yp&&!dG(a.oe(),Math.min(l.Ve+$Y,l.Mf))&&this.oa("sbunb",{st:l.Ve,et:l.Mf});l.Se&&!a.yk()&&setTimeout(function(){var m=a.oe(),n=cG(m,l.startTime+$Y),p=cG(m,b.getCurrentTime());(n<0||n!==p)&&b.oa("sbu_mismatch",{b:bG(m),c:b.getCurrentTime(),s:l.Rc()})}, 0)}}this.df()}; g.k.T$=function(a){if(this.Qa){var b=MY(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.SP())for(var c=0;cthis.C&&(this.C=c,g.Gc(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.gp(this.B))}}; BZ.prototype.G=function(){for(var a=g.v(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.publish;for(var d=this.C,e=this.j[c].match(Ti),f=[],h=g.v(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,l.indexOf("cpi=")===0?f.push("cpi="+d.toString()):l.indexOf("ek=")===0?f.push("ek="+g.Vd(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=c.length*2;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e0)for(var c=g.v(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.uu)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.v(this.C.values());for(var e=d.next();!e.done;e=d.next())if(Math.abs(e.value.cryptoPeriodIndex-c)<=1){c=!0;break a}}c=!1}c?(c=a.j,c=Math.max(0,Math.random()*((isNaN(c)?120:c)-30))*1E3):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length, ignore:this.D});c<=0?n1a(this,a):this.D||(this.j.push({time:b+c,info:a}),g.gp(this.B,c))}}; CZ.prototype.xa=function(){this.j=[];AZ.prototype.xa.call(this)};var x2={},v1a=(x2.DRM_TRACK_TYPE_AUDIO="AUDIO",x2.DRM_TRACK_TYPE_SD="SD",x2.DRM_TRACK_TYPE_HD="HD",x2.DRM_TRACK_TYPE_UHD1="UHD1",x2);g.z(r1a,g.K);g.z(x1a,g.iy);g.k=x1a.prototype;g.k.qq=function(a){var b=this;this.Ma()||a.size<=0||(a.forEach(function(c,d){var e=SO(b.B)?d:c;d=new Uint8Array(SO(b.B)?c:d);SO(b.B)&&O1a(d);c=g.Xe(d,4);O1a(d);d=g.Xe(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),J1a(this,","),DZ(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),a==="drm.provision"&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));wF(b)&&this.dispose()}; g.k.shouldRetry=function(a,b){return this.Fa&&this.N?!1:!a&&this.requestNumber===b.requestNumber}; g.k.xa=function(){this.j={};g.iy.prototype.xa.call(this)}; g.k.vc=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(EZ(this)){var b=new Set,c;for(c in this.j)this.j[c].status!=="usable"&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; g.k.Ee=function(){return this.url};g.z(FZ,g.K);g.k=FZ.prototype;g.k.f6=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}}; g.k.qq=function(){this.N&&this.N(this.j.keyStatuses)}; g.k.onClosed=function(){this.Ma()||g.Fs("xboxone")&&this.C&&this.C("closed")}; g.k.j0=function(a){this.G&&this.G(a.message,"license-request")}; g.k.h0=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; g.k.g0=function(){this.K&&this.K()}; g.k.update=function(a){var b=this;if(this.j)return(cP.isActive()?cP.So("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,IL(function(c){Q1a(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 xs()}; g.k.xa=function(){this.j&&(this.Y?this.j.close().catch(g.Kx):this.j.close());this.element=null;g.K.prototype.xa.call(this)};g.z(GZ,g.K);g.k=GZ.prototype;g.k.gO=function(){var a=this;if(this.j.keySystemAccess)return(cP.isActive()?cP.So("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Ma())if(a.B=c,cP.isActive())cP.So("emeset",function(){return a.element.setMediaKeys(c)}); else{var d;(d=a.element)==null||d.setMediaKeys(c)}}); if(RO(this.j))this.C=new (QO())(this.j.keySystem);else if(TO(this.j)){this.C=new (QO())(this.j.keySystem);var b;(b=this.element)==null||b.webkitSetMediaKeys(this.C)}else cP.isActive()&&this.oa("emev",{v:"01b"}),tt(this.G,this.element,["keymessage","webkitkeymessage"],this.j6),tt(this.G,this.element,["keyerror","webkitkeyerror"],this.i6),tt(this.G,this.element,["keyadded","webkitkeyadded"],this.g6);return null}; g.k.setServerCertificate=function(){return this.B.setServerCertificate?this.j.flavor==="widevine"&&this.j.jm?this.B.setServerCertificate(this.j.jm):VO(this.j)&&this.j.bb?this.B.setServerCertificate(this.j.bb):null:null}; g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();UO(this.j)?c=R1a(c,this.j.bb):VO(this.j)&&(c=m1a(c)||new Uint8Array(0));b&&b("genreq");var e=cP.isActive()?cP.So("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c); var f=new FZ(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},IL(function(l){Q1a(f,"t.generateRequest",l)})); return f}if(RO(this.j))return T1a(this,c);if(TO(this.j))return S1a(this,c);if((e=this.element)==null?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;(h=this.element)==null||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new FZ(this.element,this.j,c,null,null,this.N)}; g.k.j6=function(a){var b=U1a(this,a);b&&b.j0(a)}; g.k.i6=function(a){var b=U1a(this,a);b&&b.h0(a)}; g.k.g6=function(a){var b=U1a(this,a);b&&b.g0(a)}; g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a}; g.k.xa=function(){this.C=this.B=null;var a;(a=this.D)==null||a.dispose();a=g.v(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.K.prototype.xa.call(this);delete this.element};g.k=HZ.prototype;g.k.get=function(a){a=this.findIndex(a);return a!==-1?this.values[a]:null}; g.k.remove=function(a){a=this.findIndex(a);a!==-1&&(this.keys.splice(a,1),this.values.splice(a,1))}; g.k.removeAll=function(){this.keys=[];this.values=[]}; g.k.set=function(a,b){var c=this.findIndex(a);c!==-1?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; g.k.findIndex=function(a){return g.qb(this.keys,function(b){return g.Kb(a,b)})};g.z(X1a,g.iy);g.k=X1a.prototype;g.k.uaa=function(a){this.pj({onecpt:1});a.initData&&$1a(this,new Uint8Array(a.initData),a.initDataType)}; g.k.Taa=function(a){this.pj({onndky:1});$1a(this,a.initData,a.contentType)}; g.k.gy=function(a){this.pj({onneedkeyinfo:1});this.X.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));Z1a(this,a)}; g.k.LW=function(a){this.C.push(a);IZ(this)}; g.k.createSession=function(a){var b=b2a(this)?VYa(a):g.Xe(a.initData);this.B.get(b);this.Ga=!0;a=new x1a(this.videoData,this.X,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.jL,this);a.subscribe("keystatuseschange",this.qq,this);a.subscribe("licenseerror",this.nL,this);a.subscribe("newlicense",this.d0,this);a.subscribe("newsession",this.e0,this);a.subscribe("sessionready",this.r0,this);a.subscribe("fairplay_next_need_key_info",this.W_,this);this.X.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange", this.qU,this);this.X.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.Lba,this);B1a(a,this.D)}; g.k.d0=function(a){this.Ma()||(this.pj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))}; g.k.e0=function(){this.Ma()||(this.pj({newlcssn:1}),this.C.shift(),this.Ga=!1,IZ(this))}; g.k.r0=function(){if(RO(this.j)&&(this.pj({onsnrdy:1}),this.Na--,this.Na===0)){var a=this.qa,b,c;(b=a.element)==null||(c=b.msSetMediaKeys)==null||c.call(b,a.C)}}; g.k.qq=function(a){if(!this.Ma()){!this.Ka&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(c2a(this),this.Ka=!0);this.pj({onksch:1});var b=this.qU;if(!EZ(a)&&g.Ou&&a.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(EZ(a))for(var e=g.v(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,a.j[f].status==="usable"&&c.push(a.j[f].type),a.j[f].status!=="unknown"&&(d=!1);if(!EZ(a)||d)c=a.D;c=I1a(c)}b.call(this,c);this.publish("keystatuseschange", a)}}; g.k.jL=function(a,b){this.Ma()||this.publish("ctmp",a,b)}; g.k.W_=function(a,b){this.Ma()||this.publish("fairplay_next_need_key_info",a,b)}; g.k.nL=function(a,b,c,d){this.Ma()||(this.videoData.L("html5_log_drm_metrics_on_error")&&c2a(this),this.publish("licenseerror",a,b,c,d))}; g.k.Zw=function(){return this.Z}; g.k.qU=function(a){var b=g.pM("auto",a,!1,"l");if(this.videoData.Sj){if(oM(this.Z,b))return}else if(fDa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.pj({updtlq:a})}; g.k.Lba=function(a){this.videoData.sabrLicenseConstraint=a}; g.k.xa=function(){this.j.keySystemAccess&&this.element&&(this.Ca?this.element.setMediaKeys(null).catch(g.Kx):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.v(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.jL,this),b.unsubscribe("keystatuseschange",this.qq,this),b.unsubscribe("licenseerror",this.nL,this),b.unsubscribe("newlicense",this.d0,this),b.unsubscribe("newsession",this.e0,this),b.unsubscribe("sessionready",this.r0,this),b.unsubscribe("fairplay_next_need_key_info", this.W_,this),this.X.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.qU,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.iy.prototype.xa.call(this)}; g.k.vc=function(){for(var a={systemInfo:this.j.vc(),sessions:[]},b=g.v(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.vc());return a}; g.k.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")}; g.k.pj=function(a,b){b=b===void 0?!1:b;this.Ma()||(uF(a),(this.X.yc()||b)&&this.publish("ctmp","drmlog",a))};g.z(d2a,g.K);g.k=d2a.prototype;g.k.uJ=function(){return!!this.RF}; g.k.AK=function(){return this.B}; g.k.handleError=function(a){var b=this;i2a(this,a);if((a.errorCode!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&a.errorCode!=="fmt.unparseable"||!h2a(this,a.errorCode,a.details))&&!m2a(this,a)){if(this.Da.qa!=="yt"&&k2a(this,a)&&this.videoData.fq&&(0,g.uu)()/1E3>this.videoData.fq&&this.Da.qa==="hm"){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.fq;c.init=this.videoData.aW/1E3;c.now=(0,g.uu)()/1E3;c.systelapsed=((0,g.uu)()-this.videoData.aW)/1E3; a=new vF(a.errorCode,c,2);this.ea.Lf(a.errorCode,2,"SIGNATURE_EXPIRED",uF(a.details))}if(wF(a.severity)){var d;c=(d=this.ea.ya)==null?void 0:d.j.j;if(this.Da.L("html5_use_network_error_code_enums"))if(j2a(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Da.K&&a.errorCode==="auth"&&a.details.rc===429){e="TOO_MANY_REQUESTS";var f="6"}}else j2a(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Da.K||a.errorCode!=="auth"||a.details.rc!=="429"||(e="TOO_MANY_REQUESTS",f="6");this.ea.Lf(a.errorCode, a.severity,e,uF(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Rd(a.errorCode,a.details),d&&a.errorCode==="manifest.net.connect"&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.uu)(),wW(a,"manifest",function(h){b.K=!0;b.oa("pathprobe",h)},function(h){b.Rd(h.errorCode,h.details)}))}}; g.k.oa=function(a,b){this.ea.pc().oa(a,b)}; g.k.Rd=function(a,b){b=uF(b);this.ea.pc().Rd(a,b)};p2a.prototype.wP=function(a){return a?{I0:A2a(this,a)}:{I0:RQ}}; p2a.prototype.L=function(a){return this.X.L(a)};g.z(MZ,g.K);MZ.prototype.onError=function(a){if(a!=="player.fatalexception"||this.provider.L("html5_exception_to_health"))a==="sabr.fallback"&&(this.encounteredSabrFallback=!0),a.match(ucb)?this.networkErrorCount++:this.nonNetworkErrorCount++}; MZ.prototype.send=function(){if(!(this.C||this.j<0)){G2a(this);var a=g.SJ(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.eh;this.playerState.isError()?b=c&&c.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&&g.U(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=u5a[yR(this.provider.videoData)];a:switch(this.provider.X.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=H2a(this.provider), f=this.B<0?a:this.B-this.j;a=this.provider.X.Sf+36E5<(0,g.uu)();b={started:this.B>=0,stateAtSend:b,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.xR(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:cR(this.provider.videoData)};a||g.bu("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}}; MZ.prototype.xa=function(){this.C||this.send();window.removeEventListener("error",this.zB);window.removeEventListener("unhandledrejection",this.zB);g.K.prototype.xa.call(this)}; var ucb=/\bnet\b/;var I2a=/[?&]cpn=/;var N2a=Math.pow(10,8);g.z(g.PZ,g.K);g.k=g.PZ.prototype;g.k.l9=function(){var a=g.SJ(this.provider);Q2a(this,a)}; g.k.dF=function(){return this.Ka}; g.k.iF=function(){return{SB:this.SB,TB:this.TB}}; g.k.vH=function(a,b){this.SB=a;this.TB=b}; g.k.YG=function(a){this.j.lwc=[[a.bf?a.bf.toFixed():"",a.Ji?a.Ji.toFixed():"",a.fb?(a.fb*1E3).toFixed():"",a.Tb?(a.Tb*1E3).toFixed():"",a.Lc?(a.Lc*1E3).toFixed():""].join(":")]}; g.k.reportStats=function(a){a=a===void 0?NaN:a;if(!this.Ma()&&(a=a>=0?a:g.SJ(this.provider),["PL","B","S"].indexOf(this.Ge)>-1&&(!g.Gc(this.j)||a>=this.G+30)&&(g.OZ(this,a,"vps",[this.Ge]),this.G=a),!g.Gc(this.j))){this.sequenceNumber===7E3&&g.Kx(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){QZ(this,a);var b=a,c=this.provider.ea.pF(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.SB,h=e&&!this.TB;d>c.totalVideoFrames||f>5E3?Y2a(this,"html5.badframedropcount","df."+d+";tf."+ c.totalVideoFrames):(f>0||h)&&g.OZ(this,b,"df",[f]);this.SB=d;this.TB=e;this.Z>0&&(g.OZ(this,a,"glf",[this.Z]),this.Z=0);V1.isActive()&&(a=V1.YX(),Object.keys(a).length>0&&this.oa("profile",a));this.Jb&&RZ(this,"lwnmow");this.provider.X.yc()&&this.provider.L("html5_record_now")&&this.oa("now",{wt:(0,g.uu)()});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=KR(this.provider.videoData);a.content_v=MR(this.provider.videoData);a.ns=this.provider.X.qa;a.fexp=SIa(this.provider.X.experiments).toString();a.cl=(650814266).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=yR(this.provider.videoData))&&(a.live=b);this.provider.videoData.Yi()&& (a.drm=1,this.provider.videoData.K&&(a.drm_system=fcb[this.provider.videoData.K.flavor]||0),this.provider.videoData.Vk&&(a.drm_product=this.provider.videoData.Vk));Zr()&&this.provider.videoData.G&&(a.ctt=this.provider.videoData.G,a.cttype=this.provider.videoData.yn,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.yU&&(a.dai_fallback= "1")):this.provider.videoData.pd?a.dai="cs":this.provider.videoData.XD&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.dZ){if(b=this.provider.videoData.dZ,a&&b)for(b.ns==="3pp"&&(a.ns="3pp"),this.Ed.has(b.ns)&&RZ(this,"hbps"),b.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=b.shbpslc),c=g.v(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Dd.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId; this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")||(a.qclc=T2a(this,a.seq));this.Bb&&(a.embargoed="1");g.Lc(a,this.provider.X.j);this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")&&(b=a.seq)&&(b=T2a(this,+b),this.j.qclc=[b]);a=g.aj("//"+this.provider.X.En+"/api/stats/qoe",a);c=b="";d=g.v(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,this.j[e]===null?g.Kx(new g.Mt("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),e.length>100?c+=e:b+= e);U2a(this,a+b,c.replace(/ /g,"%20"))}this.j={}}}; g.k.Ey=function(a){this.Jb=a}; g.k.R1=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;RZ(this,"eme-"+(a.keySystemAccess?"final":RO(a)?"ms":UO(a)?"ytfp":TO(a)?"safarifp":"nonfinal"))}}; g.k.FG=function(a){var b=g.SJ(this.provider),c=[a.j.id,a.B,this.Bc,a.reason];a.token&&c.push(a.token);g.OZ(this,b,"vfs",c);this.Bc=a.j.id;c=this.provider.ea.getPlayerSize();if(c.width>0&&c.height>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.XP();d>1&&c.push(d);g.OZ(this,b,"view",c)}this.bb||(this.provider.X.yc()&&RZ(this,"rqs2"),this.provider.videoData.j&&wM(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.bb=!0;a.reason==="m"&&++this.ke===100&&Z2a(this,2);g.OZ(this,b,"vps", [this.Ge]);this.reportStats(b)}; g.k.kG=function(a){var b=g.SJ(this.provider);if(a.j.id!==this.Na){var c=[a.j.id,this.Na,a.reason];a.token&&c.push(a.token);g.OZ(this,b,"afs",c);this.Na=a.j.id}}; g.k.Vu=aa(50);g.k.To=function(a){this.Bb=a}; g.k.Ij=aa(29);g.k.onPlaybackRateChange=function(a){var b=g.SJ(this.provider);a&&a!==this.qc&&(g.OZ(this,b,"rate",[a]),this.qc=a);this.reportStats(b)}; g.k.Ko=aa(25);g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,2048))return"B";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";if(a.isOrWillBePlaying()&&g.U(a,64))return"B";var b=vcb[JG(a)];g.ED(this.provider.X)&&b==="B"&&this.provider.ea.getVisibilityState()===3&&(b="SU");b==="B"&&g.U(a,4)&&(b="PB");return b}; g.k.xa=function(){g.K.prototype.xa.call(this);g.is(this.K);g.is(this.Kb)}; g.k.UL=function(a){this.isOffline=a;g.OZ(this,g.SJ(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.k.oa=function(a,b,c){var d=this.j.ctmp||[],e=this.Td.indexOf(a)!==-1;e||this.Td.push(a);if(!c||!e){var f=typeof b!=="string"?uF(b):b;f=$2a(f);if(!c&&!/^t[.]/.test(f)){var h=g.SJ(this.provider)*1E3;f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f}); this.j.ctmp=d;V2a(this);return h}}; g.k.XG=function(a,b,c){this.D={qda:Number(this.oa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),G_:a,Yca:b,isAd:c}}; g.k.zy=function(a,b,c){g.OZ(this,g.SJ(this.provider),"ad_playback",[a,b,c])}; g.k.resume=function(){var a=this;this.provider.X.yc()&&this.oa("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?W2a(this):this.K=g.gs(function(){a.reportStats()},1E4)}; var y2={},vcb=(y2[5]="N",y2[-1]="N",y2[3]="B",y2[0]="EN",y2[2]="PA",y2[1]="PL",y2[-1E3]="ER",y2[1E3]="N",y2),NZ=[];b3a.prototype.KP=function(){return this.j}; b3a.prototype.update=function(){if(this.N){var a=this.provider.ea.Vf()||0;this.provider.X.L("html5_ssap_vss_fix")&&(a=this.provider.ea.GJ(this.provider.videoData.clientPlaybackNonce)||0);var b=g.SJ(this.provider);a>=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||e3a(this,a,b)){var c;if(!(c=ab-this.iq+2||e3a(this,a,b))){c=this.provider.ea.getVolume();var d=c!==this.Y,e=this.provider.ea.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||this.D>=0||(this.Y=c, this.D=b),c=b-this.D,this.D>=0&&c>2?(this.D=-1,c=!0):c=!1)}c&&(UZ(this),this.C=a);this.iq=b;this.j=a}}};f3a.prototype.send=function(a){var b=this;if(!this.Xa){var c=h3a(this),d=g.aj(this.uri,c);this.X.L("vss_through_gel_double")&&i3a(d);this.ra&&!this.X.L("html5_simplify_pings")?n3a(this,d):g3a(this,a).then(function(e){b.ra&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});M2a(d,e,{token:b.Y,aU:b.Jb,mdxEnvironment:b.mdxEnvironment},b.X,a,b.Ca,b.isFinal&&b.Sf||b.Ga||b.C&&b.Tf)}); this.Xa=!0}}; f3a.prototype.B=function(a){a===void 0&&(a=NaN);return Number(a.toFixed(3)).toString()}; var z2={},l3a=(z2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,z2.LIVING_ROOM_APP_MODE_MAIN=1,z2.LIVING_ROOM_APP_MODE_KIDS=2,z2.LIVING_ROOM_APP_MODE_MUSIC=3,z2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,z2.LIVING_ROOM_APP_MODE_GAMING=5,z2),A2={},k3a=(A2.EMBEDDED_PLAYER_MODE_UNKNOWN=0,A2.EMBEDDED_PLAYER_MODE_DEFAULT=1,A2.EMBEDDED_PLAYER_MODE_PFP=2,A2.EMBEDDED_PLAYER_MODE_PFL=3,A2);g.z(WZ,g.K);g.k=WZ.prototype;g.k.Cg=function(){this.j.update();v3a(this)&&(p3a(this),q3a(this),this.Zs())}; g.k.xa=function(){g.K.prototype.xa.call(this);ZZ(this);c3a(this.j)}; g.k.vc=function(){return h3a(XZ(this,"playback"))}; g.k.Zs=function(){this.provider.videoData.N.eventLabel=KR(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.X.playerStyle;this.provider.videoData.zj&&(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.zj;a.isAd=b}; g.k.Hi=function(a){var b=XZ(this,"engage");b.qa=a;return j3a(b,B3a(this.provider))};A3a.prototype.isEmpty=function(){return this.endTime===this.startTime};a_.prototype.L=function(a){return this.X.L(a)}; a_.prototype.getCurrentTime=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Xf();if(b&&(a=a||b.vl()))return rX(b,a)}else if(g.fR(this.videoData)){var c=this.ea.Xf();if(c)return a=this.ea.getCurrentTime(),c=(((b=nX(c,a*1E3))==null?void 0:b.Hl)||0)/1E3,a-c}return this.ea.getCurrentTime()}; a_.prototype.Vf=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Xf();if(b&&(a=a||b.vl()))return rX(b,a)}else if(g.fR(this.videoData)){var c=this.ea.Xf();if(c)return a=this.ea.Vf(),c=(((b=nX(c,a*1E3))==null?void 0:b.Hl)||0)/1E3,a-c}return this.ea.Vf()}; var C3a={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.z(g.b_,g.K);g.k=g.b_.prototype;g.k.Cg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ng){var a;(a=this.C.get(this.Ng))==null||a.Cg()}else this.j&&this.j.Cg()}; g.k.To=function(a){this.qoe&&this.qoe.To(a)}; g.k.Ij=aa(28);g.k.Rd=function(a,b){this.qoe&&Y2a(this.qoe,a,b);if(this.B)this.B.onError(a)}; g.k.FG=function(a){this.qoe&&this.qoe.FG(a)}; g.k.kG=function(a){this.qoe&&this.qoe.kG(a)}; g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&UZ(this.j.j)}; g.k.Vu=aa(49);g.k.oa=function(a,b,c){this.qoe&&this.qoe.oa(a,b,c)}; g.k.XG=function(a,b,c){this.qoe&&this.qoe.XG(a,b,c)}; g.k.YG=function(a){var b;(b=this.qoe)==null||b.YG(a)}; g.k.Ey=function(a){this.qoe&&this.qoe.Ey(a)}; g.k.zy=function(a,b,c){this.qoe&&this.qoe.zy(a,b,c)}; g.k.Ko=aa(24);g.k.dF=function(){if(this.qoe)return this.qoe.dF()}; g.k.vc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ng){var a;(a=this.C.get(this.Ng))==null||a.vc()}else if(this.j)return this.j.vc();return{}}; g.k.iF=function(){var a;return(a=this.qoe)==null?void 0:a.iF()}; g.k.vH=function(a,b){var c;(c=this.qoe)==null||c.vH(a,b)}; g.k.Hi=function(a){return this.j?this.j.Hi(a):function(){}}; g.k.Zs=function(){this.j&&this.j.Zs()}; g.k.getVideoData=function(){return this.provider.videoData}; g.k.resume=function(){this.qoe&&this.qoe.resume()};g.z(c_,g.K); c_.prototype.gJ=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!D3a(d))this.B.oa("ssap",{rlc:a}),PVa(this,a);else return}if(!this.j.has(a)){d=new a_(b,this.X,this.ea);var e=Math.round(g.SJ(this.B.provider)*1E3);d=new g.b_(d,e);D3a(d)||this.B.oa("nqv",{vv:b.videoId});e=this.B.getVideoData();this.j.set(a,d);if(d.qoe){var f=d.qoe,h=e.videoId||"";f.contentCpn=e.clientPlaybackNonce;f.ra=h}E3a(d);c===2&&(this.X.L("html5_log_ad_playback_docid")?(c=this.B,c.qoe&&(c=c.qoe,d=b.qc||"",e= b.breakType||0,b=b.videoId||"",f=this.X.qa||"yt",g.OZ(c,g.SJ(c.provider),"ad_playback",[a,d,e,b,f]))):this.B.zy(a,b.qc||"",b.breakType||0))}}; c_.prototype.pc=function(a){a=a||this.Ng;return this.j.get(a)||this.B};g.z(d_,g.K);g.k=d_.prototype; g.k.kf=function(a,b){this.sync();b&&this.j.array.length>=2E3&&this.KE("captions",1E4);b=this.j;if(a.length>1&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else for(var c=g.v(a),d=c.next();!d.done;d=c.next())d=d.value,!b.array.length||b.j(d,b.array[b.array.length-1])>0?b.array.push(d):g.Lb(b.array,d,b.j);a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.namespace==="ad"&&this.D("ssap",{acrsid:b.getId(),acrsst:b.start,acrset:b.end,acrscpt:b.playerType});this.C=NaN;this.sync()}; g.k.Vo=function(a){a.length>1E4&&g.Kx(new g.Mt("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Ma()){for(var b=g.v(a),c=b.next();!c.done;c=b.next())(c=c.value)&&c.namespace==="ad"&&this.D("ssap",{rcrid:c.getId(),rcst:c.start,rcet:c.end,rcpt:c.playerType});var d=new Set(a);this.B=this.B.filter(function(e){return!d.has(e)}); R3a(this.j,d);this.sync()}}; g.k.KE=function(a,b){var c=(isNaN(this.C)?g.U(this.K(),2)?0x8000000000000:this.Y()*1E3:this.C)-b;b=this.rl().filter(function(d){return d.namespace===a&&d.endthis.j,f=g.U(c,8)&&g.U(c,16),h=this.ea.Jm().isBackground()||c.isSuspended();m_(this,this.rb,f&&!h,e,"qoe.slowseek",function(){},"timeout"); var l=isFinite(this.j);l=f&&l&&Nwa(b,this.j);var m=!d||Math.abs(d-this.j)>10;m_(this,this.Bb,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt"); m=l&&dG(b.Dh(),this.j);var n=this.ea.ya;l=!n||!n.policy.Va;var p=function(){b.seekTo(a.j+.001)}; m_(this,this.Va,m&&l&&!h,e,"qoe.slowseek",p,"jiggle_cmt");l=function(){return JZ(a.ea)}; m_(this,this.bb,m&&!h,e,"qoe.slowseek",l,"new_elem");m=IG(c);var q=c.isBuffering(),r=b.Dh(),t=cG(r,d),u=t>=0&&r.end(t)>d+5,x=m&&q&&u,B=this.ea.getVideoData();m_(this,this.Wa,d<.002&&this.j<.002&&f&&g.ED(this.X)&&g.LR(B)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");m_(this,this.qa,B.vk()&&f&&!h&&!B.Ga,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");m_(this,this.Ca,x&&!h,m&&!q,"qoe.longrebuffer",p,"jiggle_cmt");m_(this,this.Ga,x&&!h,m&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(n){var E=n.getCurrentTime(); f=b.hx();f=Bwa(f,E);f=!n.isSeeking()&&d===f;m_(this,this.Tb,m&&q&&f&&!h,m&&!q&&!f,"qoe.longrebuffer",function(){b.seekTo(E)},"seek_to_loader")}f={}; p=cG(r,Math.max(d-3.5,0));x=p>=0&&d>r.end(p)-1.1;var F=p>=0&&p+1=0&&x&&F<11;f.close2edge=x;f.gapsize=F;f.buflen=r.length;this.D&&(f.seekSour=this.D);if(p=this.ea.Xf()){x=p.vl();F=x!==nX(p,d*1E3).clipId;var I=g.qD(this.X.experiments,"html5_ssap_skip_seeking_offset_ms"),O=(lX(p,x)+I)/1E3;m_(this,this.Ka,F&&m&&q&&!h,m&&!q,"qoe.longrebuffer",function(){b.seekTo(O)},"ssap_clip_not_match")}m_(this,this.Fa,m&&q&&!h,m&&!q,"qoe.longrebuffer", function(){},"timeout",f); f=c.isSuspended();f=vZ(this.ea)&&!f;m_(this,this.N,f,!f,"qoe.start15s",function(){a.ea.Dg("ad")},"ads_preroll_timeout"); p=d-this.C<.5;var N;f=!((N=this.ea.Xf())==null||!N.Al());F=(x=B.isAd()||f&&this.X.experiments.ob("html5_ssap_skip_slow_ad"))&&m&&!q&&p;N=function(){var S=a.ea,Y=g.fR(S.videoData)&&S.xb,la=S.yd.Uc();(la&&S.videoData.isAd()&&la.getVideoData().pd===S.getVideoData().pd||!S.videoData.Ef)&&!Y?S.Lf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+S.videoData.videoId):$Q(S.videoData,"html5_ssap_skip_slow_ad")&&Y&&S.xb.Al()&&(S.Rd(new vF("ssap.transitionfailure",{cpn:nX(S.xb,S.Vf()).clipId,pcpn:S.xb.vl(), cmt:S.Vf()})),BVa(S.xb))}; m_(this,this.Jb,F,!F,"ad.rebuftimeout",N,"skip_slow_ad");p=x&&q&&dG(b.Dh(),d+5)&&p;m_(this,this.zb,p&&!h,!p,"ad.rebuftimeout",N,"skip_slow_ad_buf");N=c.isOrWillBePlaying()&&g.U(c,64)&&!h;m_(this,this.Kb,N,e,"qoe.start15s",function(){},"timeout"); N=!!n&&!n.Qa&&c.isOrWillBePlaying();m_(this,this.Na,N,e,"qoe.start15s",l,"newElemMse");N=gG(r,0);p=g.U(c,16)||g.U(c,32);p=!h&&c.isOrWillBePlaying()&&q&&!p&&(g.U(c,64)||d===0)&&N>5;m_(this,this.fb,g.LR(B)&&p,m&&!q,"qoe.longrebuffer",function(){a.ea.Fq()},"reset_media_source"); m_(this,this.Xa,g.LR(B)&&p,m&&!q,"qoe.longrebuffer",l,"reset_media_element");this.C===0&&(this.K=d);p=q&&this.j===0&&d>1&&d===this.K;m_(this,this.Ra,g.LR(B)&&p,m&&!q,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump"); h=c.isOrWillBePlaying()&&!h;u=GW(this.ea)-d<6&&!u&&this.ea.xu();m_(this,this.Z,B.vk()&&h&&q&&u,m&&!q,"qoe.longrebuffer",function(){JZ(a.ea,!1,!0)},"handoff_end_long_buffer_reload"); n=(n==null?void 0:k1a(n))||NaN;n=r.length>1||!isNaN(n)&&n-.1<=d;m_(this,this.Y,nR(B)&&h&&q&&n,m&&!q,"qoe.longrebuffer",l,"gapless_slice_append_stuck");n=t>=0&&r.end(t)>=2;h=nR(B)&&this.ea.t2&&n&&!B.Ga&&h&&(q||g.U(c,8)&&g.U(c,16));m_(this,this.ra,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&N>5&&c.isPlaying()&&d<.1);m_(this,this.Nb,c,d>.5&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.C=d;this.G.start()}}; l_.prototype.Rd=function(a,b,c){b=this.vc(b);b.wn=c;b.wdup=this.B[a]?"1":"0";this.ea.Rd(new vF(a,b));this.B[a]=!0}; l_.prototype.vc=function(a){a=Object.assign(this.ea.vc(!0),a.vc());this.j&&(a.stt=this.j.toFixed(3));this.ea.getVideoData().isLivePlayback&&(a.ct=this.ea.getCurrentTime().toFixed(3),a.to=this.ea.Ec().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; j_.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1}; j_.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.uu)();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}; j_.prototype.vc=function(){var a={},b=(0,g.uu)();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.z(j4a,g.K);g.k=j4a.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.WS()||this.seekTo(.01,{bd:"seektimeline_setupMediaElement"})),n_(this)):p_(this)}; g.k.getCurrentTime=function(){return!isNaN(this.B)&&isFinite(this.B)?this.B:this.mediaElement&&x4a(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; g.k.gx=function(){return this.Xa}; g.k.Vf=function(){return this.getCurrentTime()-this.Ec()}; g.k.Un=function(){return this.j?this.j.Un():Infinity}; g.k.isAtLiveHead=function(a){if(!this.j)return!1;a===void 0&&(a=this.getCurrentTime());return h_(this.j,a)}; g.k.eq=function(){return!!this.j&&this.j.eq()}; g.k.seekTo=function(a,b){var c=b===void 0?{}:b;b=c.UH===void 0?!1:c.UH;var d=c.hU===void 0?0:c.hU;var e=c.qx===void 0?!1:c.qx;var f=c.bU===void 0?0:c.bU;var h=c.bd===void 0?"":c.bd;var l=c.seekSource===void 0?void 0:c.seekSource;var m=c.rr===void 0?!1:c.rr;var n=c.WA===void 0?!1:c.WA;c=c.IT===void 0?!1:c.IT;m&&(a+=this.Ec());cR(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&l===29&&(this.Xa=void 0);if(m=a=this.qe())||!g.DR(this.videoData);x||(p={st:p,mst:this.qe()},this.j&& this.L("html5_high_res_seek_logging")&&(p.ht=this.j.Un(),p.adft=c4a(this.j)),this.ea.oa("seeknotallowed",p));if(!x)return this.C&&(this.C=null,u4a(this)),Le(this.getCurrentTime());x=.005;n&&this.L("html5_sabr_seek_no_shift_tolerance")&&(x=0);if(Math.abs(a-this.B)<=x&&this.qa)return this.G;h&&(x=a,(this.X.yc()||this.L("html5_log_seek_reasons"))&&this.ea.oa("seekreason",{reason:h,tgt:x}));l&&(this.Ca.D=l);this.qa&&p_(this);this.G||(this.G=new vG);a&&!isFinite(a)&&n4a(this,!1);(h=c||m)||(h=a,h=!(this.videoData.isLivePlayback&& this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&this.mediaElement.Yk()>0&&xG(this.mediaElement)>0)||eR(this.videoData)&&this.od()===this.qe(!1)?0:isFinite(h)||!eR(this.videoData)));h||(a=w4a(this,a,e));a&&!isFinite(a)&&n4a(this,!1);this.D=a;this.Va=f;this.B=a;this.Z=0;this.j&&(e=this.j,f=a,d4a(e,f,!1),e4a(e,f));e=this.ea;f=a;h={UH:b,seekSource:l};e.Qc.D=f;c=e.iE;c.mediaTime=f;c.j=!0;h.UH&&p5a(e,h);h=f>e.videoData.endSeconds&&f>e.videoData.limitedPlaybackDurationInSeconds;e.Cr&&h&&isFinite(f)&& c5a(e);fb.start&&c5a(this.ea);return this.G}; g.k.qe=function(a){if(!this.videoData.isLivePlayback)return F5a(this.ea);var b;return RR(this.videoData)&&((b=this.mediaElement)==null?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),LLa(this.lf(a)*1E3)+a):eR(this.videoData)&&this.videoData.Xa&&this.videoData.j?this.videoData.j.qe()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.j?this.j.Un():F5a(this.ea)+this.timestampOffset:this.mediaElement?Is()?LLa(this.mediaElement.wI().getTime()):xG(this.mediaElement)+this.timestampOffset|| this.timestampOffset:this.timestampOffset}; g.k.od=function(){if(g.fR(this.videoData)){var a=this.ea;g.fR(a.videoData);var b,c;return(c=(b=a.xb)==null?void 0:b.od())!=null?c:a.videoData.od()}b=this.videoData?this.videoData.od()+this.timestampOffset:this.timestampOffset;return RR(this.videoData)&&this.videoData.j&&(c=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(),a=this.lf(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b}; g.k.qP=function(){this.G||this.seekTo(this.D,{bd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.k.IF=function(){return this.qa&&!isFinite(this.B)}; g.k.xa=function(){o4a(this,null);this.Ca.dispose();g.K.prototype.xa.call(this)}; g.k.vc=function(){var a={};this.ya&&Object.assign(a,this.ya.vc());this.mediaElement&&Object.assign(a,this.mediaElement.vc());return a}; g.k.iS=function(a){this.timestampOffset=a}; g.k.getStreamTimeOffset=function(){return eR(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.k.Ec=function(){return this.timestampOffset}; g.k.lf=function(a){return this.videoData.j.lf(a-this.timestampOffset)}; g.k.ax=function(){if(!this.mediaElement)return 0;if(ER(this.videoData)){var a=this.mediaElement,b=a.Dh();a=(fG(b)>0&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.od();b=this.qe()-this.od();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.ax()}; g.k.ey=function(a){this.K&&(this.K.j=a)}; g.k.cC=function(a,b){this.ea.oa("requestUtcSeek",{time:a});cR(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Xa=a);var c;(c=this.ya)==null||c.cC(a);b&&(this.ra=b)}; g.k.Mu=function(a){cR(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Xa=void 0);if(this.ra)this.ea.oa("utcSeekingFallback",{source:"streamTime",timeSeconds:this.ra}),this.ea.seekTo(this.ra,{bd:"utcSeekingFallback_streamTime"}),this.ra=0;else{var b=this.getCurrentTime();isNaN(b)||(a=this.lf(b)-a,b-=a,this.ea.oa("utcSeekingFallback",{source:"estimate",timeSeconds:b}),this.ea.seekTo(b,{bd:"utcSeekingFallback_estimate"}))}}; g.k.oE=function(){this.ra=0}; g.k.L=function(a){return this.X&&this.X.L(a)};r_.prototype.Cu=function(){return this.started}; r_.prototype.start=function(){this.started=!0}; r_.prototype.reset=function(){this.j=this.started=!1};var G4a=!1;g.z(g.v_,g.iy);g.k=g.v_.prototype;g.k.xa=function(){this.logger.debug("dispose");g.is(this.HL);zUa(this.Hf);this.visibility.unsubscribe("visibilitystatechange",this.Hf);U4a(this);z_(this);g.Wo.bk(this.wy);this.Lj();this.If=null;g.fb(this.videoData);g.fb(this.ll);g.fb(this.iO);g.fb(this.jO);g.gb(this.J$);this.Cr=null;g.iy.prototype.xa.call(this)}; g.k.zy=function(a,b,c,d,e){if(this.X.L("html5_log_ad_playback_docid")){var f=this.pc();if(f.qoe){f=f.qoe;var h=this.X.qa||"yt";g.OZ(f,g.SJ(f.provider),"ad_playback",[a,b,c,e,h])}}else this.pc().zy(a,b,c);this.L("html5_log_media_perf_info")&&this.oa("adloudness",{ld:d.toFixed(3),cpn:a})}; g.k.BP=function(){var a;return(a=this.ya)==null?void 0:a.BP()}; g.k.EP=function(){var a;return(a=this.ya)==null?void 0:a.EP()}; g.k.fA=function(){var a;return(a=this.ya)==null?void 0:a.fA()}; g.k.CP=function(){var a;return(a=this.ya)==null?void 0:a.CP()}; g.k.Yi=function(){return this.videoData.Yi()}; g.k.qA=function(){return this.hB}; g.k.gJ=function(){!this.gB||this.gB.Ma();this.gB=new g.b_(new a_(this.videoData,this.X,this));this.hB=new c_(this.X,this,this.gB)}; g.k.getVideoData=function(){return this.videoData}; g.k.U=function(){return this.X}; g.k.wP=function(){return this.Hk.wP(this.If)}; g.k.pc=function(a){if(a)a:{for(var b=this.hB,c=g.v(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.hB.pc();return a}; g.k.Jm=function(){return this.visibility}; g.k.Ke=function(){return this.mediaElement}; g.k.AO=function(){if(this.videoData.isLoaded()){var a=this.ll;g.qD(a.Da.experiments,"html5_player_min_build_cl")>0&&g.qD(a.Da.experiments,"html5_player_min_build_cl")>650814266&&l2a(a,"oldplayer");Z4a(this)}else this.videoData.wj||this.videoData.vp?this.yu&&g.ED(this.X)&&this.videoData.isLivePlayback||(this.videoData.wj?lLa(this.videoData):(a=this.pc(),a.qoe&&(a=a.qoe,RZ(a,"protected"),a.provider.videoData.K?a.R1():a.provider.videoData.subscribe("dataloaded",a.R1,a)),jLa(this.videoData))):!this.videoData.loading&& this.e7&&W4a(this)}; g.k.nM=function(a){this.xb=a;this.ya&&this.ya.nM(a)}; g.k.pA=aa(15);g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; g.k.isBackground=function(){return this.visibility.isBackground()}; g.k.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.hM(!0),U4a(this),g.Wo.bk(this.wy))}; g.k.ip=function(){F3a(this.pc())}; g.k.Lf=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e}); var h,l;g.Ec(tbb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+BB());if(a==="auth"||a==="drm.auth"||a==="heartbeat.stop")c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.OU[h]||"",kP:h,On:f||"",RL:d,IE:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;y_(this,"dataloaderror");this.Gc(DG(this.playerState,128,b));g.Wo.bk(this.wy);z_(this);this.Uo()}; g.k.Dg=function(a){this.wq=this.wq.filter(function(b){return a!==b}); this.logger.debug(function(){return"set preroll ready for "+a}); g.fR(this.videoData)&&!this.ao()&&this.Rb.Oi("pl_pr");this.Fs.Cu()&&X4a(this)}; g.k.ao=function(){var a;(a=!!this.wq.length)||(a=this.Ah.j.array[0],a=!!a&&a.start<=-0x8000000000000);return a}; g.k.eq=function(){return this.Qc.eq()}; g.k.isPlaying=function(){return this.playerState.isPlaying()}; g.k.FF=function(){return this.playerState.FF()&&this.videoData.Tl}; g.k.getPlayerState=function(){return this.playerState}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.If){var a=this.If;a=a.videoData.JB.compose(a.videoData.FZ);a=sM(a)}else a="auto";return a}; g.k.fF=aa(19);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.ut(this.JC),this.mediaElement=a,this.mediaElement.ea=this,r5a(this),this.Qc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Lj();if(!this.playerState.isError()){var b=FG(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=EG(b,1));a.isView()&&(b=FG(b,64));this.Gc(b)}this.mediaElement= a;this.mediaElement.ea=this;cQ(this.X)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);r5a(this);this.Qc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.ll.uJ()&&Jwa(this.mediaElement)}}; g.k.Lj=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();c>0&&(this.Qc.D=c);this.Qc.setMediaElement(null);!a&&rG(this)?l5a(this):LW(this);this.ya&&(yZ(this.ya),D_(this,b));this.Kx.stop();if(this.mediaElement&&(!this.Fs.Cu()||this.playerState.isError()||g.U(this.playerState,2)||this.Gc(EG(this.playerState,512)),this.mediaElement)){g.ut(this.JC);if(a||!this.mediaElement.isView())this.L("html5_rebase_video_to_ad_timeline")&& this.Rb.Cv("mesv_s"),this.mediaElement.stopVideo(),F_(this);this.mediaElement=this.mediaElement.ea=null}}}; g.k.playVideo=function(a){a=a===void 0?!1:a;var b=this,c,d,e,f,h,l;return g.H(function(m){if(m.j==1){b.logger.debug("start play video");var n=window.google_image_requests;n&&n.length>10&&(window.google_image_requests=n.slice(-10));if(g.U(b.playerState,128))return m.return();if(b.ll.AK())return b.publish("signatureexpired"),m.return();b.mediaElement&&qX(b.pc());b5a(b);(g.U(b.playerState,64)||a)&&b.Gc(EG(b.playerState,8));return b.Fs.j&&b.mediaElement?b.If||!b.JG?m.Ia(2):g.G(m,b.JG,3):m.return()}if(m.j!= 2&&g.U(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.iP(b.X.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.Yi()?"fmt.unplayable":"fmt.noneavailable",d=1),g.Kx(Error("selectableFormats")),b.Lf(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.Zh()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(x_(b));if(o_(b))n=b.Qc,bR(n.videoData)?!n.isAtLiveHead(n.getCurrentTime())&&n.eq()&&n.ea.seekTo(Infinity, {bd:"seektimeline_peggedToLive",seekSource:34}):g.fR(n.videoData)&&n.getCurrentTime()=0?a:this.getCurrentTime()}; g.k.lf=function(){var a;return((a=this.videoData.j)==null?0:a.lf)?this.videoData.j.lf(this.getCurrentTime()-this.Ec()):this.mediaElement&&(a=this.mediaElement.wI())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN}; g.k.getDuration=function(a){return g.fR(this.videoData)&&this.xb?this.L("html5_ssap_enable_duration_by_cpn")&&a?FVa(this.xb,a):oX(this.xb):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Ec():this.qe()?this.qe():0}; g.k.lF=function(){var a=new K3a;this.ya?(iJa(this.X.schedule,a),c1a(this.ya,a)):this.mediaElement&&(a.Hw=yG(this.mediaElement));a.Ws=this.Ws;a.Fv=this.Fv;a.C=this.isAtLiveHead()&&this.isPlaying()?Q4a(this):NaN;return a}; g.k.ZG=function(a,b){this.Fv+=a;this.Ws+=b}; g.k.ax=function(){return this.mediaElement?g.DR(this.videoData)?1:ER(this.videoData)?this.isAtLiveHead()||this.eq()?1:this.Qc.ax():this.mediaElement.ax():0}; g.k.vc=function(a){var b={};if(a===void 0?0:a){Object.assign(b,this.pc().vc());this.mediaElement&&(Object.assign(b,this.mediaElement.vc()),Object.assign(b,this.pF()));this.ya&&Object.assign(b,this.ya.vc());this.Be&&(b.drm=JSON.stringify(this.Be.vc()));b.state=this.playerState.state.toString(16);g.U(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.eh));this.ao()&&(b.prerolls=this.wq.join(","));this.videoData.Td&&(b.ismb=this.videoData.Td);this.videoData.latencyClass!=="UNKNOWN"&& (b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.yd.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&& FO(this.videoData.j)&&(b.segduration=FO(this.videoData.j)),a=this.Qc,b.lat=a.K?kOa(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Rf.toFixed(3);if(a=g.UT(this))b.optimal_format=a.video.qualityLabel;b.user_qual=$L();b.release_version="youtube.player.web_20240709_01_RC00";g.fR(this.videoData)&&this.xb&&(b.ssap=mX(this.xb))}b.debug_videoId=this.videoData.videoId;return b}; g.k.addCueRange=function(a){this.wz([a])}; g.k.removeCueRange=function(a){this.Ah.Vo([a])}; g.k.KE=function(a,b){return this.Ah.KE(a,b)}; g.k.wz=function(a,b){this.Ah.kf(a,b)}; g.k.bH=function(a){this.Ah.Vo(a)}; g.k.rl=function(){return this.Ah.rl()||[]}; g.k.Zh=function(){return this.visibility.Zh()}; g.k.wv=function(){this.mediaElement&&this.mediaElement.wv()}; g.k.pca=function(){y_(this)}; g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.k.uL=function(a){var b=a.target.Wh();if(this.mediaElement&&this.mediaElement.Wh()&&this.mediaElement.Wh()===b){C5a(this,a.type);switch(a.type){case "error":var c=AG(this.mediaElement)||"",d=this.mediaElement.Wf();if(c==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.oa("capchg",{msg:d}),JZ(this,!0)):x_(this);return}if(this.mediaElement.hasError()&&(h2a(this.ll,c,{msg:d})||g.fR(this.videoData)&&this.xb&&(d=this.playerState.eh,this.xb.handleError(c,d==null?void 0:d.IE))))return; if(this.isBackground()&&this.mediaElement.Uh()===4){this.Uo();A_(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Qa||c>0)&&c!==1&&this.Wo(c);break;case "ratechange":this.ya&&this.ya.setPlaybackRate(this.mediaElement.getPlaybackRate());S3a(this.Ah);this.pc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":E5a(this);this.publish("onLoadedMetadata");iUa(this);c=this.lf();this.videoData.FC&&(this.videoData.FC=c);break; case "loadstart":iUa(this);break;case "progress":case "suspend":this.Sc();this.publish("onLoadProgress",this,this.ax());break;case "playing":this.Rb.Cv("plev");this.hT&&!o_(this)&&(this.hT=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{bd:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.Yk()===0;if(c&&(!this.cL||d))return;this.cL=this.cL||!!this.mediaElement.getCurrentTime(); s5a(this);this.Sc();if(!this.mediaElement||this.mediaElement.Wh()!==b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.hx().length>0&&this.mediaElement.Dh().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.ya)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Yk()>2||!this.mediaElement.isSeeking()&&dG(this.mediaElement.Dh(),this.mediaElement.getCurrentTime()))&& (c=this.mediaElement.vc(),c.bh=yG(this.mediaElement).toFixed(3),this.oa("uwe",c));g.fR(this.videoData)&&this.xb&&AVa(this.xb,this.mediaElement.getCurrentTime());break;case "resize":E5a(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.VW&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&this.getCurrentTime()===0&&g.lu){A_(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Wh()=== b){z4a(this.Qc,a,this.xb||void 0);this.publish("videoelementevent",a);b=this.playerState;d=this.iE;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.fR(this.videoData)&&this.xb?oX(this.xb):void 0;if(!g.U(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.U(b,64)||a.type!=="ended"&&a.type!=="pause"){f=f||e.getDuration();f=e.isEnded()||l>1&&Math.abs(l-f)<1.1;var m=a.type==="pause"&&e.isEnded();l=a.type==="ended"||a.type==="waiting"||a.type==="timeupdate"&&!g.U(b, 4)&&!e_(d,l);if(m||f&&l)e.RJ()>0&&e.Wh()&&(h=14);else switch(a.type){case "error":AG(e)&&(h|=128);break;case "pause":g.U(b,256)?(h^=256)||(h=64):g.U(b,32)||g.U(b,2)||g.U(b,4)||(h=4,g.U(b,1)&&g.U(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,CG(d,e)):e_(d,e.getCurrentTime())&&(h&=-2);g.U(b,1)&&CG(d,e)&&(h|=1);break;case "seeking":h|=16;g.U(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;CG(d,e);break;case "waiting":g.U(b,2)||(h|=1);CG(d,e);break;case "timeupdate":l=g.U(b,16),f=g.U(b, 4),(g.U(b,8)||l)&&!f&&e_(d,e.getCurrentTime())&&(h=8),CG(d,e)&&(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=AG(h),l=1,e?(e==="capability.changed"&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.vc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.Wf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.OU[f]||"",kP:f,RL:uF(m),IE:l,cpn:b.eh?b.eh.cpn:""}):h=null,h&&(h.cpn=c));b=DG(b,d,h)}!g.U(this.playerState,1)&&g.U(b,1)&&B5a(this,"evt"+a.type);this.Gc(b)}}}; g.k.O$=function(a){a=a.j.availability==="available";a!==this.AF&&(this.AF=a,this.publish("airplayavailabilitychange"))}; g.k.P$=function(){var a=(0,g.uu)(),b=this.mediaElement.Zh();this.oa("airplay",{ia:b});!b&&!isNaN(this.DK)&&a-this.DK<2E3||(this.DK=a,b!==this.Zh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Hf()),this.oa("airplay",{rbld:b}),KZ(this)),this.publish("airplayactivechange"))}; g.k.qF=function(a){if(this.ya){var b=this.ya,c=b.B,d=b.getCurrentTime(),e=Date.now()-c.Y;c.Y=NaN;c.oa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.K)&&c.B!==3&&iYa(c.ya,d,c.K,c.G);c.policy.G?c.C=NaN:c.D=NaN;mY(c,4,c.B===3?"adfps":"adf");yZ(b)}}; g.k.Sc=function(a){var b=this;a=a===void 0?!1:a;if(this.mediaElement&&this.videoData){r4a(this.Qc,this.isPlaying());var c=this.getCurrentTime();!this.ya||g.U(this.playerState,4)&&g.DR(this.videoData)||cR(this.videoData)&&g.U(this.playerState,32)||e1a(this.ya,c);c>5&&(this.Qc.D=c);var d=g.Ut();d?g.Wo.bk(this.wy):g.hs(this.wy);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||RR(this.videoData))&&!g.U(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.U(b.playerState, 128)){b.X.yc()&&C5a(b,"pfx");var l=b.getCurrentTime(),m=yG(b.mediaElement),n=g.U(b.playerState,8),p=e_(b.iE,l),q=Pwa(b.iE,l,(0,g.uu)(),m);n&&p?b.Gc(FG(b.playerState,1)):n&&q?(n=b.getDuration(),p=bR(b.videoData),n&&Math.abs(n-l)<1.1?(b.oa("setended",{ct:l,bh:m,dur:n,live:p}),b.mediaElement.Wt()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{bd:"videoplayer_loop",seekSource:37})):JW(b)):(b.playerState.isBuffering()||B5a(b,"progress_fix"),b.Gc(EG(b.playerState,1)))):(n&&!p&&!q&&l>0&&(n= (Date.now()-b.RF)/1E3,p=b.getDuration(),l>p-1&&b.oa("misspg",{t:l.toFixed(2),d:p.toFixed(2),r:n.toFixed(2),bh:m.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&yG(b.mediaElement)>5&&b.Gc(FG(b.playerState,1)));b.Sc()}}; this.mediaElement.hx().length===0?this.wy=d?g.Wo.Si(f,100):g.fs(f,100):this.wy=d?g.Wo.Si(f,500):g.fs(f,500)}this.videoData.Pk=c;if(this.L("html5_ssap_vss_fix")){var h;(h=this.xb)==null||LVa(h)}!a&&this.isPlaying()&&v5a(this);z2a(this.Hk,this.If,this.Ke(),this.isBackground())&&t_(this);this.publish("progresssync",this,a);e&&RR(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.k.Z8=function(){this.Lf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.k.dF=function(){return this.pc().dF()}; g.k.xP=function(){return this.ya?this.ya.xP():xP(this.X.schedule,!0)}; g.k.Gc=function(a){if(g.HG(this.playerState,a))this.X.yc()&&a.seekSource!==this.playerState.seekSource&&this.oa("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()}); var b=new g.rz(a,this.playerState);this.playerState=a;D5a(this);var c=!this.KL.length;this.KL.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=b.xB.state===8&&!d;g.tz(b,1)&&d&&g.U(this.playerState,8)&&!g.U(this.playerState,64)&&this.ya&&(E0a(this.ya),this.mediaElement&&yG(this.mediaElement)>=5&&x2a(this.Hk,this.If)&&t_(this));(d=g.qD(this.X.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.U(a,1)&&(g.U(a,8)||g.U(a,16))?this.UN.start(d):this.UN.stop();(sz(b,8)<0||g.tz(b, 1024))&&this.Kx.stop();!g.tz(b,8)||this.videoData.Ga||g.U(b.state,1024)||this.Kx.start();g.U(b.state,8)&&sz(b,16)<0&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&ER(this.videoData)&&(this.Wo(this.getCurrentTime()),this.Sc(!0));g.tz(b,2)&&(this.hM(!0),this.X.yc()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&cR(this.videoData)&&this.videoData.j&&(d={minst:""+this.videoData.j.Y,cminst:""+(this.videoData.j.od(!0)+this.Ec()),maxst:""+this.videoData.j.Z,cmaxst:""+ (this.videoData.j.qe(!0)+this.Ec())},this.oa("sabrSeekableBoundaries",d)));g.tz(b,128)&&this.Uo();this.videoData.j&&this.videoData.isLivePlayback&&!this.m3&&(sz(b,8)<0?tIa(this.videoData.j):g.tz(b,8)&&this.videoData.j.resume());p4a(this.Qc,b);NVa(this.pc(),b);if(c&&!this.Ma())try{for(var e=g.v(this.KL),f=e.next();!f.done;f=e.next()){var h=f.value;T3a(this.Ah,h);this.publish("statechange",h)}}finally{this.KL.length=0}}}; g.k.pG=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")}; g.k.bS=function(){this.Rb.tick("qoes")}; g.k.qP=function(){this.Qc.qP()}; g.k.nL=function(a,b,c,d){a:{var e=this.ll;d=d===void 0?"LICENSE":d;c=c.substr(0,256);var f=wF(b);a==="drm.keyerror"&&this.Be&&this.Be.B.keys.length>1&&e.D<96&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())n2a(e,a);else{if(e.ea.Lf(a,b,d,c),e2a(e,{detail:c}))break a}else e.Rd(a,{detail:c});a==="drm.sessionlimitexhausted"&&(e.oa("retrydrm",{sessionLimitExhausted:1}),e.D++,A5a(e.ea))}}; g.k.Faa=function(){var a=this,b=g.qD(this.X.experiments,"html5_license_constraint_delay"),c=Ss();b&&c?(b=new g.fp(function(){B_(a);y_(a)},b),g.Q(this,b),b.start()):(B_(this),y_(this))}; g.k.sG=function(a){this.publish("heartbeatparams",a)}; g.k.qq=function(a){this.oa("keystatuses",K1a(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=L1a(b,c);d=EZ(a)?M1a(a,d):a.D.includes(d)}else{a:{b=L1a(b,c);for(d in a.j)if(a.j[d].status==="output-restricted"){var e=a.j[d].type;if(b===""||e==="AUDIO"||b===e){d=!0;break a}}d=!1}d=!d}if(this.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if((f=this.Be)==null?0:VO(f.j))if((c=this.Be)== null)c=0;else{b=f=void 0;e=g.v(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=N1a(h,"SD")),b||(b=N1a(h,"AUDIO"));c.pj({sd:f,audio:b});c=f==="output-restricted"||b==="output-restricted"}else c=!d;if(c){this.oa("drm",{dshdr:1});n2a(this.ll);return}}else{this.videoData.ND||(this.videoData.ND=!0,this.oa("drm",{dphdr:1}),JZ(this,!0));return}var l;if((l=this.Be)==null?0:VO(l.j))return}else if(l=a.Z&&d,c&&!l){n2a(this.ll);return}d||M1a(a,"AUDIO")&&M1a(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), a=K1a(a),this.cT?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Lf("drm.keyerror",2,void 0,"info."+a)):(this.cT=!0,this.Rd(new vF("qoe.restart",Object.assign({},{retrydrm:1},a))),t_(this),A5a(this)))}; g.k.Haa=function(){if(!this.videoData.Ga&&this.mediaElement&&!this.isBackground()){var a="0";this.mediaElement.Yk()>0&&yG(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.j&&(this.Gc(EG(this.playerState,1)),B5a(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");D5a(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!mR(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].me)||this.Be),mfmtinfo:!this.videoData.B,prerolls:this.ao()?this.wq.join(","): "0"};if(this.Be){b=this.Be;if(b.B.size<=0){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=K1a(b.B.values().next().value),b=uF(b);a.drmp=b}var d;Object.assign(a,((d=this.ya)==null?void 0:d.vc())||{});var e;Object.assign(a,((e=this.mediaElement)==null?void 0:e.vc())||{});this.pc().Rd("qoe.start15s",uF(a));this.publish("loadsofttimeout")}}; g.k.Wo=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,y_(this))}; g.k.hM=function(a){var b=this;a=a===void 0?!1:a;if(!this.II)if(jB("att_s","player_att")||lB("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.G(l,g.lua(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.xa(l,4);e=I3a(b.pc());if(!e)throw Error();f={};return g.G(l,g.kua((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f),3E4),6);case 6:h=l.B;if(b.II)throw Error(); if(!h.challenge)throw g.Kx(Error("Not sending attestation ping; no attestation challenge string")),Error();b.II=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):h.webResponse&&m.push("r1a="+h.webResponse);var n;((n=h.adblockReporting)==null?void 0:n.reportingStatus)!==void 0&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;((p=h.adblockReporting)==null?void 0:p.broadSpectrumDetectionResult)!==void 0&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));lB("att_f", void 0,"player_att");g.za(l,0);break;case 4:g.Aa(l),lB("att_e",void 0,"player_att"),g.va(l)}})})().then(function(){}); else{var c=new g.TBa(this.videoData);if("c1a"in c.xr&&!g.VL.isInitialized()){lB("att_wb",void 0,"player_att");this.hO===2&&Math.random()<.01&&g.Kx(Error("Botguard not available after 2 attempts"));if(a)return;if(this.hO<5){g.gp(this.jO);this.hO++;return}}(c=g.UBa(c))?(lB("att_f",void 0,"player_att"),H3a(this.pc(),c),this.II=!0):lB("att_e",void 0,"player_att")}}; g.k.qe=function(a){return this.Qc.qe(a===void 0?!1:a)}; g.k.od=function(){return this.Qc.od()}; g.k.Ec=function(){return this.Qc?this.Qc.Ec():0}; g.k.getStreamTimeOffset=function(){return this.Qc?this.Qc.getStreamTimeOffset():0}; g.k.du=function(){var a=0;this.X.L("web_player_ss_media_time_offset")&&(a=this.getStreamTimeOffset()===0?this.Ec():this.getStreamTimeOffset());return a}; g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&s2a(this.Hk,(b=this.videoData.C)==null?void 0:b.videoInfos)&&(this.playbackRate=a,t_(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)}; g.k.getPlaybackRate=function(){return this.playbackRate}; g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,a==="auto"&&this.mediaElement)){var b=V4a(this);b&&b.videoHeight>0&&(a=GF(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.Zs=function(){this.pc().Zs()}; g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.pc();c.j?(c=XZ(c.j,"engage"),c.qa=a,c.send(b)):b&&b()}; g.k.Hi=function(a){return this.pc().Hi(a)}; g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;return bR(this.videoData)&&(this.SY||b)?this.Qc.isAtLiveHead(a):!1}; g.k.Lr=function(){var a=this.qe(),b=this.getCurrentTime(),c;(c=!bR(this.videoData))||(c=this.Qc,c=!(c.j&&c.j.C));return c||this.eq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)}; g.k.Ko=aa(23);g.k.Vu=aa(48);g.k.To=function(a){this.pc().To(a)}; g.k.Ey=function(a){this.pc().Ey(a)}; g.k.Ij=aa(27);g.k.YG=function(a){this.pc().YG(a)}; g.k.pF=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.k.setLoop=function(a){this.loop=a;this.mediaElement&&cQ(this.X)&&this.mediaElement.setLoop(a);this.ya&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.ya.policy.Va=!0:F0a(this.ya))}; g.k.Wt=function(){return this.mediaElement&&cQ(this.X)?this.mediaElement.Wt():this.loop}; g.k.iS=function(a){this.oa("timestamp",{o:a.toString()});this.Qc.iS(a)}; g.k.Sd=function(a){this.Rb.tick(a)}; g.k.Oi=function(a){return this.Rb.Oi(a)}; g.k.Cv=function(a){this.Rb.Cv(a)}; g.k.oa=function(a,b,c){c=c===void 0?!1:c;this.pc().oa(a,b,c)}; g.k.Ay=function(a,b,c){c=c===void 0?!1:c;this.pc().oa(a,b,c)}; g.k.Rd=function(a){this.pc().Rd(a.errorCode,uF(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&(a==="qoe.longrebuffer"||a==="qoe.slowseek")){a=this.ya?uZa(this.ya.videoTrack):{};var b,c;this.oa("lasoe",Object.assign(this.ya?uZa(this.ya.audioTrack):{},(b=this.Qa)==null?void 0:(c=b.j)==null?void 0:c.OJ()));var d,e;this.oa("lvsoe",Object.assign(a,(d=this.Qa)==null?void 0:(e=d.B)==null?void 0:e.OJ()))}}; g.k.XG=function(a,b,c){this.pc().XG(a,b,c)}; g.k.cP=function(a){this.videoData.W1=!0;this.Rd(new vF("sabr.fallback",a));JZ(this,!0)}; g.k.getPlayerSize=function(){return this.DH.getPlayerSize()}; g.k.Xh=function(){return this.DH.Xh()}; g.k.Gi=function(){return this.Rb}; g.k.Or=function(){return this.yd.Or()}; g.k.getVolume=function(){return this.yd.getVolume()}; g.k.BF=function(){return this.yd.BF()}; g.k.isMuted=function(){return this.yd.isMuted()}; g.k.eA=function(){return this.yd.eA()}; g.k.L=function(a){return this.X.L(a)}; g.k.Rs=function(){var a=this.getCurrentTime(),b=a-this.Ec();var c=this.mediaElement?fG(this.mediaElement.Dh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(!this.L("html5_ssdai_disable_seek_to_skip")&&((d=this.ya)==null?0:d.oH(b,this.qe())))return this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return((e=this.ya)==null?0:e.Rs(b,c))?(this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),B4a(this.Qc,a),!0):!1}; g.k.yc=function(){return this.X.yc()}; g.k.Yt=function(){if(this.L("html5_bandaid_attach_content_po_token")&&this.videoData.videoId)return this.videoData.hw||this.yd.oR(this.videoData.videoId);this.yd.oU();return this.X.Uf||""}; g.k.mf=function(){return this.videoData.videoId}; g.k.sA=function(){return this.yd.ly}; g.k.xu=function(){return this.yd.xu()}; g.k.cC=function(a,b){this.Qc.cC(a,b)}; g.k.oE=function(){this.Qc.oE()}; g.k.Um=function(a){this.yd.Um(a)}; g.k.eS=function(a,b){this.yd.eS(a,b)}; g.k.OS=function(a,b){var c;(c=this.ya)==null||c.OS(a,b)}; g.k.tO=function(){var a=this.Mr();return!!a&&a.tO()}; g.k.Xf=function(){return this.xb}; g.k.vH=function(a,b){this.pc().vH(a,b)}; g.k.iF=function(){return this.pc().iF()}; g.k.uA=function(){return this.videoData.UX}; g.k.sC=function(a){this.videoData.UX=a}; g.k.zo=function(){return this.yd.zo()}; g.k.HF=function(){return this.yd.HF(this)}; g.k.nT=function(a){this.videoData.bfa=a};g.z(g.G_,g.K);g.G_.create=function(a,b,c,d){try{var e=typeof a==="string"?a:"player"+g.Wa(a),f=B2[e];if(f){try{f.dispose()}catch(l){g.Jx(l)}B2[e]=null}var h=new g.G_(a,b,c,d);h.addOnDisposeCallback(function(){B2[e]=null;h.b3&&h.b3()}); return B2[e]=h}catch(l){throw g.Jx(l),(l&&l instanceof Error?l:Error(String(l))).stack;}}; g.k=g.G_.prototype;g.k.Jm=function(){return this.visibility}; g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return this.visibility.getVisibilityState(a,b,c,d,e,f,h,l)}; g.k.Em=function(){this.BQ||(this.BQ=g.zB(MS(),HBa()));return this.BQ}; g.k.Lj=function(){if(this.mediaElement){this.LC&&(this.events.Nc(this.LC),this.LC=null);g.ut(this.Nu);this.wb&&this.wb.Lj(!0);this.template.Lj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.XL()}catch(a){g.Kx(a)}this.mediaElement=null}}; g.k.Uc=function(){return this.wb}; g.k.Cy=function(){var a=this;this.wb!==this.tb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+((b=a.wb)==null?void 0:b.getPlayerType())+", vid "+((c=a.wb)==null?void 0:c.getVideoData().videoId)}),KW(this,this.tb))}; g.k.Uz=function(a,b,c){var d=this,e=this.Rb;a===2&&(e=new HOa(this.X));return new g.v_(this.X,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.U$=function(){M_(this)||(this.logger.debug("application playback ready"),this.Jq(5))}; g.k.cba=function(a){if(!M_(this)){this.logger.debug("playback ready");u6a(this);var b=a.getPlayerState();a.FF()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}}; g.k.canPlayType=function(a){return zF(a)}; g.k.U=function(){return this.X}; g.k.getVideoData=function(){return this.wb.getVideoData()}; g.k.nF=aa(17);g.k.Md=function(){return this.tb.getVideoData()}; g.k.getVideoLoadedFraction=function(a){a=g.dS(this,a);return a?g.QR(a.getVideoData())?1:(a=a.Ke())?a.ax():0:0}; g.k.qb=function(){return this.template}; g.k.Ab=function(){return this.Pd}; g.k.Gi=function(){return this.Rb}; g.k.qC=function(a){var b=g.dS(this,1);b&&JW(b,a)}; g.k.Or=function(){var a=this.Pd.Or();this.Ua.publish("videoStatsPingCreated",a);return a}; g.k.getVolume=function(){return Math.round(this.Ua.getVolume())}; g.k.BF=function(){return this.Ua.isFullscreen()}; g.k.isMuted=function(){return this.Ua.isMuted()}; g.k.eA=function(){if(this.wb===this.tb&&this.Eb)return this.Eb.postId}; g.k.Wca=function(){var a=this;this.L("use_rta_only_for_player")||(g.ED(this.X)?g.gQ(this.X,g.OR(this.getVideoData())).then(function(b){NS(MS(),b);eMa(a.getVideoData(),a.X,a.Em())}):eMa(this.getVideoData(),this.X,this.Em()))}; g.k.uP=function(a){var b=this;return g.H(function(c){return b.PB?c.return(b.PB.uP(a)):c.return(Promise.reject("web po not available"))})}; g.k.lU=function(a){this.Ua.publish("d6de4videobindingchange",a)}; g.k.oU=function(){this.PB&&this.PB.oU()}; g.k.oR=function(a){return this.PB?this.PB.oR(a):""}; g.k.sT=function(a){this.PB=a}; g.k.UG=function(a){a===1&&(this.Rb.tick("vr"),t5a(this.wb),IOa(this.Rb,this.wb.getVideoData(),t6a(this)),BPa(this.Pd));var b=this.X;(dQ(b)&&b.N||g.LP(b))&&(this.Ef()||this.Ua.ib("onAdStateChange",a))}; g.k.setLoopVideo=function(a){this.wb===this.tb&&this.wb.Wt()!==a&&(this.wb.setLoop(a),this.Ua.ib("onLoopChange",a))}; g.k.getLoopVideo=function(){return this.wb.Wt()}; g.k.setLoopRange=function(a){var b=!1;!!this.Eb!==!!a?b=!0:this.Eb&&a&&(b=this.Eb.startTimeMs!==a.startTimeMs||this.Eb.endTimeMs!==a.endTimeMs||this.Eb.postId!==a.postId||this.Eb.type!==a.type);if(b){if(this.wb&&nR(this.getVideoData())){b=(a==null?void 0:a.endTimeMs)||-1;var c;(c=g.dS(this))==null||c.oa("slr",{et:b})}this.tb.Ah.qf("applooprange");if(a)c=new g.gE(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.tb.addCueRange(c);else{this.Md().clipConfig=void 0;var d,e;((d= this.Eb)==null?void 0:d.type)!=="repeatChapter"||isNaN(Number((e=this.Eb)==null?void 0:e.loopCount))||(c={loopCount:String(this.Eb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.bu("repeatChapterLoopEvent",c))}this.Eb=a;this.Ua.ib("onLoopRangeChange",a||void 0);this.wb===this.tb&&(this.gM(),this.wb.ip())}}; g.k.getLoopRange=function(){return this.Eb}; g.k.gM=function(){var a="";this.Eb?this.wb!==this.tb?a="pnea":f6a(this,this.tb.getCurrentTime())&&(this.Eb.loopCount=0,a="ilr"):a="nlr";if(this.wb&&nR(this.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var b,c,d;(d=g.dS(this))==null||d.oa("slrre",{rej:a,ct:this.tb.getCurrentTime(),lst:(b=this.Eb)==null?void 0:b.startTimeMs,let:(c=this.Eb)==null?void 0:c.endTimeMs})}else{var e;(e=g.dS(this))==null||e.oa("slrre",{})}a||j6a(this)}; g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=M5a(this,a),this.tb.getPlaybackRate()!==a&&(this.tb.setPlaybackRate(a),b&&!this.X.D&&g.zt("yt-player-playback-rate",a),this.Ua.Ym("onPlaybackRateChange",a)))}; g.k.getCurrentTime=function(a,b,c){b=b===void 0?!0:b;if(this.getPresentingPlayerType()===3)return GS(this.Pd).getCurrentTime();var d=a===2&&this.getVideoData().enableServerStitchedDai,e=g.fR(this.getVideoData());a=d||e?g.dS(this):g.dS(this,a);if(!a)return 0;if(e&&this.xb)return b=this.xb,a=a.getCurrentTime(),c?c=rX(b,c):(c=EVa(b,a),c=a-c/1E3),c;if(b){if(d&&this.xe&&(c=this.xe.Wa/1E3,c!==0))return c;c=L_(this,a);return U_(this,c.getCurrentTime(),c)}d&&this.xe?(c=this.xe,a=a.getCurrentTime(),c=(c=iVa(c, a*1E3))?a-c.start/1E3:a):c=a.getCurrentTime();return c}; g.k.oA=function(){var a=g.dS(this);if(!a)return 0;a=L_(this,a);return U_(this,a.oA(),a)}; g.k.getDuration=function(a,b){b=b===void 0?!0:b;var c=this.getVideoData(),d=a===2&&c.enableServerStitchedDai,e=g.fR(c);var f=d||e?g.dS(this):g.dS(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number((h=c.progressBarStartPosition)==null?void 0:h.utcTimeMillis),m;c=Number((m=c.progressBarEndPosition)==null?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.xb)return this.L("html5_ssap_enable_duration_by_cpn")?b=FVa(this.xb,this.xb.vl()):(b=this.xb,d= b.ea.getCurrentTime()*1E3,b=(b=kX(b,d))?(b.Vh()-b.Ye())/1E3:0),a===1&&b===0?f.getDuration():b;if(b)return f=K_(this,f),U_(this,f.getDuration(),f);d&&this.xe?(a=this.xe,f=f.getCurrentTime(),f=(f=eX(a,f*1E3))?f.durationMs/1E3:0):f=f.getDuration();return f}; g.k.lf=function(a){var b=g.dS(this,a);return b?this.Ef(b)?(b=K_(this,b),b.lf()-b.getCurrentTime()+this.getCurrentTime(a)):b.lf():0}; g.k.addPlayerResponseForAssociation=function(a){this.xb&&this.xb.addPlayerResponseForAssociation(a)}; g.k.finishSegmentByCpn=function(a,b){return this.xb?this.xb.finishSegmentByCpn(a,b):[]}; g.k.ZO=function(){this.template.ZO();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=mna(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.Cba)}; g.k.getDebugText=function(a){var b=this.tb.vc(a);if(this.wb&&this.wb!==this.tb){for(var c=this.wb.vc(a),d=g.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=de(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.he("video-ads");f?(A6a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.he("videoAdUiSkipContainer"),l=g.he("ytp-ad-skip-button-container"),m=g.he("ytp-skip-ad-button"),n=h||l||m;n?(A6a(n,f),f.ima=h?1: 0,f.bulleit=l?1:0,f.component=m?1:0):f.missing=1;d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(+this.mediaElement.getSize().area()===0),b.op=this.mediaElement.mF("opacity"),c=this.mediaElement.Zt().y+this.mediaElement.getSize().height,b.yof=""+(+c<=0),b.dis=this.mediaElement.mF("display"));a&&((a=(0,g.SZ)())&&(b.gpu=a),(a=this.X.playerStyle)&&(b.ps=a),this.X.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_20240709_01_RC00"},b=this.getPlayerStateObject().eh;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.k.getPresentingPlayerType=function(a){if(this.appState===1)return 1;if(M_(this))return 3;var b;if(a&&((b=this.xe)==null?0:b.Al(this.getCurrentTime())))return 2;var c;return g.fR(this.getVideoData())&&((c=this.xb)==null?0:c.Al())?2:g.dS(this).getPlayerType()}; g.k.OA=function(){return g.fR(this.getVideoData())&&this.xb?this.xb.OA():!1}; g.k.getPlayerStateObject=function(a){return this.getPresentingPlayerType()===3?GS(this.Pd).Ge:g.dS(this,a).getPlayerState()}; g.k.getAppState=function(){return this.appState}; g.k.uL=function(a){switch(a.type){case "loadedmetadata":this.dM.start();a=g.v(this.hC);for(var b=a.next();!b.done;b=a.next())b=b.value,r6a(this,b.id,b.Sea,b.Rea,void 0,!1);this.hC=[];break;case "loadstart":this.Rb.Cv("gv");break;case "progress":case "timeupdate":fG(a.target.Dh())>=2&&this.Rb.Cv("l2s");break;case "playing":g.aQ&&this.dM.start();if(g.ED(this.X))a=!1;else{b=g.IS(this.Ab());a=this.mediaElement.mF("display")==="none"||this.mediaElement.getSize().area()===0;var c=EX(this.template),d=this.wb.getVideoData(), e=g.Lz(this.X);d=oR(d);b=!c||b||e||d||this.X.rb;a=a&&!b}a&&(this.wb.oa("hidden",{},!0),this.getVideoData().Bc||(this.getVideoData().Bc=1,this.b0(),this.wb.playVideo()))}}; g.k.onLoadProgress=function(a,b){this.Ua.Ac("onLoadProgress",b)}; g.k.bca=function(){this.Ua.publish("playbackstalledatstart")}; g.k.onVideoProgress=function(a,b){a=L_(this,a);b=U_(this,a.getCurrentTime(),a);this.Ua.Ac("onVideoProgress",b)}; g.k.onAutoplayBlocked=function(){this.Ua.Ac("onAutoplayBlocked")}; g.k.oba=function(){this.Ua.publish("progresssync")}; g.k.bba=function(){this.Ua.Ac("onPlaybackPauseAtStart")}; g.k.W$=function(a){if(this.getPresentingPlayerType()===1){g.tz(a,1)&&!g.U(a.state,64)&&this.Md().isLivePlayback&&this.tb.isAtLiveHead()&&this.Ua.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.tz(a,2)){if(this.Eb&&this.Eb.endTimeMs>=(this.getDuration()-1)*1E3){j6a(this);return}X5a(this)}if(g.U(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.eh;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Ym("onError",wMa(b.errorCode));this.Ua.Ac("onDetailedError",{errorCode:b.errorCode, errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.kP,cpn:b.cpn});(0,g.uu)()-this.X.Sf>6048E5&&this.Ua.Ac("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!jB("pbresume","ad_to_video")&&jB("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.hB(b,"ad_to_video");gB("pbresume",void 0,"ad_to_video");BPa(this.Pd)}this.Ua.publish("applicationplayerstatechange",a)}}; g.k.y0=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("presentingplayerstatechange",a)}; g.k.Ek=function(a){J_(this,JG(a.state));g.U(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(S_(this,{muted:!1,volume:this.Pi.volume},!1),T_(this,!1))}; g.k.S$=function(a,b,c){a==="newdata"&&N5a(this);b=c.clipConfig;a==="dataloaded"&&b&&b.startTimeMs!=null&&b.endTimeMs!=null&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})}; g.k.kG=function(a,b){this.Ua.Ac("onPlaybackAudioChange",this.Ua.getAudioTrack().Xb.name);this.Ua.publish("internalaudioformatchange",this.Ua.getAudioTrack().Xb.id,b)}; g.k.FG=function(a){var b=this.wb.getVideoData();a===b&&this.Ua.Ym("onPlaybackQualityChange",a.B.video.quality)}; g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId}); this.X.yc()&&b.oa("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.tb&&(this.X.zj=c.oauthToken);if(b===this.tb){this.getVideoData().enableServerStitchedDai&&!this.xe?this.xe=new g.ZW(this.Ua,this.X,this.tb):!this.getVideoData().enableServerStitchedDai&&this.xe&&(this.xe.dispose(),this.xe=null);if(this.X.yc()&&g.fR(c)){var d,e;b.oa("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((d=this.yq.j)==null?void 0:(e=d.getVideoData())==null? void 0:e.clientPlaybackNonce)||""})}var f,h;!g.fR(this.getVideoData())||a!=="newdata"&&a!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((f=this.yq.j)==null?void 0:(h=f.getVideoData())==null?void 0:h.clientPlaybackNonce)?!g.fR(this.getVideoData())&&this.xb&&(this.X.yc()&&b.oa("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.xb.dispose(),this.xb=null):(VUa(this.yq),d=YW(this.yq,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.yq.enqueue(d,!0),WW(this.yq,0,this.getDuration(1)* 1E3,[d]),WUa(this.yq,this.getVideoData().clientPlaybackNonce,[d]),this.xb&&(this.xb.dispose(),this.xb=null,this.X.yc()&&b.oa("ssap",{tlmdis:1})),this.X.yc()&&b.oa("ssap",{tlmcreate:1}),this.xb=new yVa(this.Ua,this.yq,this.tb),this.tb.nM(this.xb))}if(a==="newdata")this.logger.debug("new video data, destroy modules"),DU(this.Pd,2),this.Ua.publish("videoplayerreset",b);else{if(!this.mediaElement)return;a==="dataloaded"&&(this.wb===this.tb?(QP(c.Da,c.bW),b6a(this)):$5a(this));b.getPlayerType()===1&&(this.X.Va&& z6a(this),this.getVideoData().isLivePlayback&&!this.X.Cq&&this.Tg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((wLa(c)||this.getVideoData().Pv)&&this.Ua.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&l6a(this)));this.Ua.publish("videodatachange",a,c,b.getPlayerType())}this.Ua.Ac("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.gM();(d=c.mH)?this.Vr.wX(d,c.clientPlaybackNonce):uWa(this.Vr)}; g.k.EO=function(){O_(this,null);this.Ua.Ac("onPlaylistUpdate")}; g.k.nba=function(a){delete this.QL[a.getId()];this.tb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=((b=a.Ra)==null?void 0:(c=b.contents)==null?void 0:(d=c.singleColumnWatchNextResults)==null?void 0:(e=d.autoplay)==null?void 0:(f=e.autoplay)==null?void 0:f.sets)||((h=a.Ra)==null?void 0:(l=h.contents)==null?void 0:(m=l.twoColumnWatchNextResults)==null?void 0:(n=m.autoplay)==null?void 0:(p=n.autoplay)==null?void 0:p.sets);if(q)for(b=g.v(q),c=b.next();!c.done;c=b.next())if(c=c.value, e=d=void 0,c=c.autoplayVideo||((d=c.autoplayVideoRenderer)==null?void 0:(e=d.autoplayEndpointRenderer)==null?void 0:e.endpoint),d=g.R(c,g.iR),f=e=void 0,c!=null&&((e=d)==null?void 0:e.videoId)===a.videoId&&((f=d)==null?0:f.continuePlayback)){a=c;break a}a=null}(b=g.R(a,g.iR))&&this.Ua.ib("onPlayVideo",{sessionData:{autonav:"1",itct:a==null?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})}; g.k.Jq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),a===2&&this.getPresentingPlayerType()===1&&(J_(this,-1),J_(this,5)),this.appState=a,this.Ua.publish("appstatechange",a))}; g.k.Tg=function(a,b,c,d,e){this.tb.Lf(a,b,c,d,e)}; g.k.Ps=function(a,b){this.tb.handleError(new vF(a,b))}; g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;var c=g.dS(this,a);if(!c)return!1;a=K_(this,c);c=L_(this,c);return a!==c?a.isAtLiveHead(U_(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)}; g.k.Lr=function(){var a=g.dS(this);return a?K_(this,a).Lr():0}; g.k.seekTo=function(a,b,c,d,e){b=b!==!1;if(d=g.dS(this,d))this.appState===2&&Q_(this),this.Ef(d)?V_(this)?this.xe.seekTo(a,{seekSource:e},b,c):this.Wc.seekTo(a,{seekSource:e},b,c):g.fR(this.getVideoData())&&this.xb?this.xb.seekTo(a,{UH:!b,hU:c,bd:"application",seekSource:e}):d.seekTo(a,{UH:!b,hU:c,bd:"application",seekSource:e})}; g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)}; g.k.DB=function(){this.Ua.Ac("SEEK_COMPLETE")}; g.k.hL=function(){this.Ua.ib("onAbnormalityDetected")}; g.k.Pba=function(a,b){var c=a.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=b;this.appState===2?g.U(a.getPlayerState(),512)||Q_(this):this.Ua.Ac("SEEK_TO",b)}; g.k.onAirPlayActiveChange=function(){this.Ua.publish("airplayactivechange");this.X.L("html5_external_airplay_events")&&this.Ua.Ac("onAirPlayActiveChange",this.Ua.Zh())}; g.k.onAirPlayAvailabilityChange=function(){this.Ua.publish("airplayavailabilitychange");this.X.L("html5_external_airplay_events")&&this.Ua.Ac("onAirPlayAvailabilityChange",this.Ua.AF())}; g.k.showAirplayPicker=function(){var a;(a=this.wb)==null||a.wv()}; g.k.BR=function(){this.Ua.publish("beginseeking")}; g.k.qG=function(){this.Ua.publish("contentPoTokenReady")}; g.k.GR=function(){this.Ua.publish("endseeking")}; g.k.getStoryboardFormat=function(a){return(a=g.dS(this,a))?K_(this,a).getVideoData().getStoryboardFormat():null}; g.k.qk=function(a){return(a=g.dS(this,a))?K_(this,a).getVideoData().qk():null}; g.k.Ef=function(a){a=a||this.wb;var b=!1;if(a){a=a.getVideoData();if(V_(this))a=a===this.xe.ea.getVideoData();else a:if(b=this.Wc,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.v(b.B);for(var c=b.next();!c.done;c=b.next())if(a.pd===c.value.pd){a=!0;break a}a=!1}b=a}return b}; g.k.cE=function(a,b,c,d,e,f,h){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n lengthMs="+d+" enterTimeMs="+e}); var l="",m=V_(this),n;(n=g.dS(this))==null||n.oa("appattl",{sstm:this.xe?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?fVa(this.xe,a,b,c,d,e,f,h):XVa(this.Wc,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l}); return l}; g.k.xF=function(a,b,c,d,e,f,h){if(V_(this)){var l=fVa(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.Xu=function(a){var b;(b=this.xe)==null||b.Xu(a)}; g.k.Fz=function(a,b){a=a===void 0?-1:a;b=b===void 0?Infinity:b;V_(this)||fWa(this.Wc,a,b)}; g.k.WH=function(a,b,c){if(V_(this)){var d=this.xe,e=d.qc.get(a);e?(c===void 0&&(c=e.Wd),e.durationMs=b,e.Wd=c):d.El("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Wc;e=null;for(var f=g.v(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.pd===a){e=h;break}e?(c===void 0&&(c=e.Wd),eWa(d,e,b,c)):sX(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}}; g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?"":d;this.Ef();a=new g.SQ(this.X,a);d&&(a.pd=d);m6a(this,a,b,c)}; g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;a=this.preloadVideoByPlayerVars(a,b===void 0?1:b,c,d===void 0?"":d,e===void 0?"":e);b=this.Uc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.UM,d=this.Rk.N,c.C!==a&&(c.wb=b,c.C=a,c.B=1,c.j=a.getVideoData(),c.D=d,c.j.isLoaded()?c.G():c.j.subscribe("dataloaded",c.G,c))):(c=bUa(b,a,this.Rk.N),c!=null?(b.oa("sgap",c),b.getVideoData().Y&&E_(b,!1)):(a=a.getVideoData(),b=this.UM,b.j!== a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))}; g.k.wJ=function(a,b,c,d){var e=this;c=c===void 0?0:c;d=d===void 0?0:d;var f=g.dS(this);f&&(K_(this,f).m3=!0);sUa(this.Rk,a,b,c,d).then(function(){e.Ua.Ac("onQueuedVideoLoaded")},function(){})}; g.k.zo=function(){return this.Rk.zo()}; g.k.HF=function(a){return this.Rk.HF(a)}; g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("Clearing queue");this.Rk.clearQueue(a,b)}; g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;if(b===2&&this.Md().enableServerStitchedDai&&this.tb&&!vZ(this.tb)){var f;(f=this.tb)==null||f.oa("lvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.SQ(this.X,a);g.$P(this.X)&&!f.Ik&&fU(this.Rb);var l,m=this.Rb,n=(l=f.Va)!=null?l:"";m.timerName=n;this.Rb.Oi("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Rb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&& !this.L("html5_shorts_gapless_always_fallback")){l=vUa(this.Rk,f,b);if(l==null){J_(this,-1);a=this.Rk;a.app.U().L("html5_gapless_new_slr")?h6a(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().OD=!0;var p,q;(p=a.j)==null||(q=p.ya)==null||q.resume();var r;(r=a.j)==null||qX(r.pc());c={bd:"gapless_to_next_video",seekSource:60};var t;(t=a.app.Uc())==null||t.seekTo(uUa(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var u;(u=g.dS(a.app))==null||u.playVideo(!0)}a.K();return!0}t= this.L("html5_shorts_gapless_preload_fallback");u=this.Rk.j;t&&u&&!u.Ma()&&(p=u.getVideoData(),p=this.X.L("html5_autonav_autoplay_in_preload_key")?X_(this,b,p):Y_(this,b,p.videoId,p.pd),this.uy.set(p,u,3600));this.Rk.clearQueue(t);var x;(x=g.dS(this))==null||x.oa("sgap",{f:l})}if(e){for(;f.Tm.length&&f.Tm[0].isExpired();)f.Tm.shift();h=f.Tm.length-1;h=h>0&&e.B(f.Tm[h])&&e.B(f.Tm[h-1]);f.Tm.push(e)}c||(a&&MOa(a)?(WP(this.X)&&!this.uj&&(a.fetch=0),O_(this,a)):this.playlist&&O_(this,null),a&&(this.uj= Us(!1,a.external_list)));this.Ua.publish("loadvideo");b=this.Ku(f,b,d);h&&this.Tg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.Tm.join()).replace(/[;:,]/g,"_"));return b}; g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;c=c===void 0?NaN:c;d=d===void 0?"":d;e=e===void 0?"":e;var f="";if(this.X.L("html5_autonav_autoplay_in_preload_key"))f=o6a(this,b,a,e);else{var h=Zs(a);f=Y_(this,b,h,e)}if(this.uy.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null; a=new g.SQ(this.X,a);e&&(a.pd=e);return n6a(this,a,b,c,d)}; g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Pd;a=a.J.U().showMiniplayerUiWhenMinimized?a.Ie.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.Pd;a=a.J.U().showInlinePreviewUi?a.Ie.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.ib("onInlinePreviewModeChange"))}; g.k.pC=function(a){var b=this.X.L("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",c=this.X.Sl&&this.X.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.tP&&b?this.tP.start():this.fX():this.visibility.pC(a)}; g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)}; g.k.fX=function(){var a,b=(a=this.mediaElement)==null?void 0:a.Ib();b&&jt(b).catch(function(c){return g.Kx(c)})}; g.k.Mba=function(){this.mediaElement.Ib();this.mediaElement.Ib().webkitPresentationMode==="picture-in-picture"?this.pC(!0):this.pC(!1)}; g.k.togglePictureInPicture=function(){var a=g.dS(this);a&&a.togglePictureInPicture()}; g.k.Ku=function(a,b,c){b=b===void 0?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b}); jB("_start",this.Rb.timerName)||g.Pr(OA)(void 0,this.Rb.timerName);var d=!1,e=e6a(this,b,a,!1);e?(d=!0,a.dispose()):(e=Z5a(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&w_(e)&&g.IW(e),this.dM.stop(),b===1&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),KW(this,e));e===this.tb&&(this.X.zj=a.oauthToken);if(!w_(e))return!1;if(e===this.tb){this.Jq(1);c=Q_(this);if(d&&this.L("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&e.xq.j)this.onVideoDataChange("dataloaded", e,e.getVideoData());return c}b5a(e);return!0}; g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=b===void 0?1:b;if(this.Md().enableServerStitchedDai&&this.tb&&!vZ(this.tb)&&a&&Object.keys(a).length>0){var d;(d=this.tb)==null||d.oa("qvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b})}else if(a&&MOa(a))if(this.Cx=!0,O_(this,a),(a=g.gU(this.playlist))&&a.ue())$_(this,a,b);else this.playlist.onReady(function(){P_(c)}); else{b||(b=this.getPresentingPlayerType());b===1&&this.EO();d=new g.SQ(this.X,a);var e=g.EP(this.X)&&!this.X.ra&&b===1&&!d.isAd()&&!d.qc;this.Ua.publish("cuevideo");e?(this.Uc().getVideoData().loading=!0,TOa(d,a?a:{}).then(function(f){$_(c,f,b)}),d.dispose()):$_(this,d,b)}}; g.k.mp=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(GP(this.X)||g.CD(this.X))return b=b||{},b.lact=tw(),b.vis=this.Ua.getVisibilityState(),this.Ua.ib("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;KOa(this.Rb);this.Rb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0}; g.k.cuePlaylist=function(a,b,c,d){this.Cx=!0;p6a(this,a,b,c,d)}; g.k.loadPlaylist=function(a,b,c,d){this.Cx=!1;p6a(this,a,b,c,d)}; g.k.VE=function(){return this.Ua.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.zl())}; g.k.Tt=aa(13); g.k.nextVideo=function(a,b){var c=g.jR(this.tb.getVideoData());g.LS(this.Ua)&&c?this.mp(c.videoId,b?c.GE:c.sessionData,c.playlistId,b,void 0,c.UW||void 0):this.uj?this.Ua.Ac("onPlaylistNext"):this.getPresentingPlayerType()===3?GS(this.Pd).nextVideo():!this.playlist||WP(this.X)&&!this.Ua.isFullscreen()||(this.playlist.zl(a)&&POa(this.playlist,NOa(this.playlist)),this.playlist.loaded?(a=b&&this.X.L("html5_player_autonav_logging"),b&&this.Ua.publish("playlistautonextvideo"),this.Ku(g.gU(this.playlist,void 0, b,a),1)):this.Cx=!1)}; g.k.previousVideo=function(a){this.uj?this.Ua.Ac("onPlaylistPrevious"):this.getPresentingPlayerType()===3?GS(this.Pd).NL():!this.playlist||WP(this.X)&&!this.Ua.isFullscreen()||(this.playlist.Vp(a)&&POa(this.playlist,OOa(this.playlist)),this.playlist.loaded?this.Ku(g.gU(this.playlist),1):this.Cx=!1)}; g.k.playVideoAt=function(a){this.uj?this.Ua.Ac("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Ku(g.gU(this.playlist,a),1):this.Cx=!1,POa(this.playlist,a))}; g.k.getPlaylist=function(){return this.playlist}; g.k.gF=aa(21);g.k.Q$=function(a){this.Ua.Ac("onCueRangeEnter",a.getId())}; g.k.R$=function(a){this.Ua.Ac("onCueRangeExit",a.getId())}; g.k.wz=function(a,b,c){var d=g.dS(this,b);if(d){var e=this.Md();if(g.fR(e)){if(this.xb)if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&d.getPlayerType()===2&&this.xb.Al()&&(this.tb.oa("ssap",{acrla:a.length?a[0].getId():"",acrll:a.length,pt:d.getPlayerType(),acpn:d.getVideoData().clientPlaybackNonce,ccpn:this.tb.getVideoData().clientPlaybackNonce}),d=this.tb),b===1)for(var f=lX(this.xb,e.clientPlaybackNonce),h=g.v(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.Hl=f,l.C=e.clientPlaybackNonce; else if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&b===2)for(this.getPresentingPlayerType(),e=g.v(a),f=e.next();!f.done;f=e.next())f.value.C=this.xb.vl();e=g.v(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=(h=b)!=null?h:1}d.wz(a,c);b&&this.getPresentingPlayerType()!==b||I_(this,"cuerangesadded",a)}else this.L("html5_ssap_enable_cpn_triggered_media_end")&&this.tb.oa("ssap",{acrlpnf:this.tb.getVideoData().clientPlaybackNonce})}; g.k.bH=function(a,b){var c=g.dS(this,b);c&&(c.bH(a),b&&this.getPresentingPlayerType()!==b||I_(this,"cuerangesremoved",a))}; g.k.Uy=function(a){var b=this.Uc()||this.tb,c=b.Ah;if(c){var d=this.getPresentingPlayerType();if(this.X.yc()){var e=c.jK("ad");b.oa("ssap",{hac:e?"1":"0",cpn:a,pt:d})}return this.L("html5_ssap_enable_cpn_triggered_media_end")?c.Uy(d,a):c.Uy(d)}return 0}; g.k.V$=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.Bx(d);if(e&&e!=="UNDEFINED_CSN"){var f=b.X.L("web_player_attach_player_response_ve"),h=b.X.L("web_playback_associated_ve");if(b.X.L("il_via_jspb")){d=new jr;var l=b.getVideoData().clientPlaybackNonce;l=qh(d,1,l);qh(l,3,e);b.getVideoData().ra&&(f||h)&&(f=g.yx(b.getVideoData().ra),g.cy(e,f),h&&(e=f.getAsJspb(),dh(d,gr,2,e)));if(b.getVideoData().queueInfo){e=b.getVideoData().queueInfo;h=new ir;if(e==null?0:e.enqueueingVe)(e== null?0:e.enqueueingVe.trackingParams)?(f=g.yx(e.enqueueingVe.trackingParams),f=f.getAsJspb(),dh(h,gr,1,f)):g.Kx(new g.Mt("Cannot map enqueueingVe from a client VE "));(e==null?0:e.enqueueingCsn)&&qh(h,2,e.enqueueingCsn);(e==null?0:e.clientEnqueueingTimeMs)&&ph(h,3,Number(e.clientEnqueueingTimeMs));dh(d,ir,4,h)}e={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId});h=g.ks("jspb_sparse_encoded_pivot")?new Fr([{}]): new Fr;eh(h,jr,202,vx,d);ux("playbackAssociated",h,e)}else d={cpn:b.getVideoData().clientPlaybackNonce,csn:e},b.getVideoData().ra&&(f||h)&&(f=g.yx(b.getVideoData().ra),g.cy(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.bu("playbackAssociated",d,e)}else g.Kx(new g.Mt("CSN Missing or undefined during playback association"))} var b=this;this.getPresentingPlayerType();IOa(this.Rb,this.wb.getVideoData(),t6a(this));N_(this)&&this.X.D&&KR(this.Md())==="embedded"&&this.c_&&Math.random()<.01&&g.bu("autoplayTriggered",{intentional:this.uZ});this.c_=!1;BPa(this.Pd);this.L("web_player_defer_ad")&&a6a(this);this.Ua.Ac("onPlaybackStartExternal");(this.X.L("mweb_client_log_screen_associated"),RP(this.X))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate= 20;iB("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.YP(this.X)||g.dP(this.X)==="MWEB"?g.Rt(g.Tt(),function(){R_(b)}):R_(this); this.gM();i6a(this)}; g.k.tG=function(){this.Ua.publish("internalAbandon");W_(this)}; g.k.onApiChange=function(){this.X.N&&this.wb?this.Ua.Ym("onApiChange",this.wb.getPlayerType()):this.Ua.Ym("onApiChange")}; g.k.Oaa=function(){var a=this.mediaElement;a={volume:g.Hd(Math.floor(a.getVolume()*100),0,100),muted:a.QJ()};a.muted||T_(this,!1);this.Pi=g.Jc(a);this.Ua.Ac("onVolumeChange",a)}; g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.sR)&&(this.sR=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.sR}),this.Ua.Ac("onMutedAutoplayStarts"))}; g.k.onFullscreenChange=function(){var a=v6a(this);this.hn(a?1:0);x6a(this,!!a)}; g.k.hn=function(a){var b=!!a,c=!!this.jA()!==b;this.visibility.hn(a);this.template.hn(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&v6a(this)===this.mediaElement.Ib()&&this.mediaElement.JE();this.template.resize();c&&this.Rb.tick("fsc");c&&(this.Ua.publish("fullscreentoggled",b),a=this.Md(),b={fullscreen:b,videoId:a.PN||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Ac("onFullscreenChange",b))}; g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; g.k.jA=function(){return this.visibility.jA()}; g.k.Cba=function(){this.wb&&(this.jA()!==0&&this.jA()!==1||this.hn(v6a(this)?1:0),this.X.Sl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.JE())}; g.k.Gaa=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("liveviewshift",a)}; g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a}); var b=g.dS(this,a);b&&(this.appState===2?(g.$P(this.X)&&fU(this.Rb),Q_(this)):g.U(b.getPlayerState(),2)?(b=36,this.getVideoData().vk()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):b.playVideo())}; g.k.pauseVideo=function(a,b){(a=g.dS(this,a))&&a.pauseVideo(b)}; g.k.stopVideo=function(a){a=a===void 0?!1:a;this.logger.debug(function(){return"stop video"}); var b=this.tb.getVideoData(),c=new g.SQ(this.X,{video_id:b.PN||b.videoId,oauth_token:b.oauthToken});c.Z=g.Jc(b.Z);var d;!a||(d=this.webPlayerContextConfig)!=null&&d.disableStaleness||(c.vW=!0);this.cancelPlayback(6);$_(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.dS(this,b);d?b===2&&d.getPlayerType()===1&&(MLa(this.Md())||g.fR(this.getVideoData()))?d.oa("canclpb",{r:"no_adpb_ssdai"}):(this.X.yc()&&d.oa("canclpb",{r:a}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.wb&&(this.logger.debug("cancel playback, destroy modules"),DU(this.Pd,a)),b===1&&(d.stopVideo(),W_(this)),d.Uo(void 0,a!==6),I_(this,"cuerangesremoved",d.rl()),d.Ah.reset(),this.Rk&&d.isGapless()&& (d.Lj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.dS(this,b))&&AJa(this.X,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.Hi=function(a){var b=g.dS(this);return b&&AJa(this.X,a)?b.Hi(a):null}; g.k.updatePlaylist=function(){!WP(this.X)&&g.EP(this.X)&&c6a(this);this.Ua.Ac("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.e2=a;this.L("web_log_theater_mode_visibility")?this.uC(b):this.PQ=b;this.Ua.publish("sizestylechange",a,b);this.template.resize()}; g.k.uC=function(a){this.visibility.uC(a)}; g.k.xk=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.xk():this.PQ}; g.k.isMinimized=function(){return this.visibility.isMinimized()}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.wu=function(){return this.visibility.wu()}; g.k.MA=function(){return this.visibility.MA()}; g.k.TA=function(){return this.visibility.TA()}; g.k.OQ=function(){return this.e2}; g.k.getAdState=function(){if(this.getPresentingPlayerType()===3)return GS(this.Pd).getAdState();if(!this.Ef()){var a=EU(this.Ab());if(a)return a.getAdState()}return-1}; g.k.Bba=function(a){var b=this.template.getVideoContentRect();im(this.PZ,b)||(this.PZ=b,this.wb&&B_(this.wb),this.tb&&this.tb!==this.wb&&B_(this.tb),this.jA()===1&&this.IG&&x6a(this,!0));this.WQ&&g.Nd(this.WQ,a)||(this.Ua.publish("appresize",a),this.WQ=a)}; g.k.ai=function(){return this.Ua.ai()}; g.k.Wba=function(){this.getPresentingPlayerType()===2&&this.Wc.isManifestless()?dWa(this.Wc):(this.xe&&(kVa(this.xe),W_(this)),W5a(this,"signature"))}; g.k.b0=function(){this.Lj();H_(this)}; g.k.Uaa=function(a){a.errorCode==="manifest.net.badstatus"&&a.details.rc===(this.X.experiments.ob("html5_use_network_error_code_enums")?401:"401")&&this.Ua.ib("onPlayerRequestAuthFailed")}; g.k.pG=function(){this.Ua.Ac("CONNECTION_ISSUE")}; g.k.sG=function(a){this.Ua.publish("heartbeatparams",a)}; g.k.aM=function(a){this.Ua.ib("onAutonavChangeRequest",a!==1)}; g.k.Ke=function(){return this.mediaElement}; g.k.setBlackout=function(a){this.X.rb!==a&&(this.X.rb=a,this.wb&&(this.wb.ip(),this.X.Va&&z6a(this),this.wb.To(a)))}; g.k.Waa=function(){var a=g.dS(this);if(a){var b=!this.Ua.EF();(a.SY=b)||a.Kx.stop();a.videoData.j&&(b?a.videoData.j.resume():tIa(a.videoData.j));a.ya&&(b?a.ya.resume():D_(a,!0));g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Gc(FG(a.playerState,512)):a.Gc(EG(a.playerState,512));a=a.pc();a.qoe&&(a=a.qoe,g.OZ(a,g.SJ(a.provider),"stream",[b?"A":"I"]))}}; g.k.onLoadedMetadata=function(){this.Ua.Ac("onLoadedMetadata")}; g.k.onDrmOutputRestricted=function(){this.Ua.Ac("onDrmOutputRestricted")}; g.k.iB=function(){this.uZ=!0}; g.k.xa=function(){this.Pd.dispose();this.h8.dispose();this.Wc.dispose();this.xe&&this.xe.dispose();this.yq.removeAll();this.yq.dispose();this.xb&&this.xb.dispose();this.tb.dispose();this.Lj();g.gb(g.Bc(this.jt),this.playlist);g.K.prototype.xa.call(this)}; g.k.L=function(a){return this.X.L(a)}; g.k.setScreenLayer=function(a){this.screenLayer=a}; g.k.getInternalApi=function(){return this.Ua.getInternalApi()}; g.k.createSubtitlesModuleIfNeeded=function(){return this.Pd.createSubtitlesModuleIfNeeded()}; g.k.isOrchestrationLeader=function(){var a=GU(this.Pd);return a?a.isOrchestrationLeader():!1}; g.k.getVideoUrl=function(a,b,c,d,e){if(this.Eb&&this.Eb.postId)return a=this.X.getVideoUrl(a),a=dj(a,"v"),a.replace("/watch","/clip/"+this.Eb.postId);var f=this.Ua.Zc()||this.X.Ka==="shortspage",h=g.TR(this.getVideoData());return this.X.getVideoUrl(a,b,c,d,e,f,h)}; g.k.xu=function(){return this.Rk.xu()}; g.k.Um=function(a){this.Ua.publish("spsumpstatuschange",a)}; g.k.eS=function(a,b){this.Ua.publish("spsumpreject",a,b)}; g.k.hG=function(){try{for(var a=g.v(Object.values(this.jt)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Ma()||c.hG()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.v(iWa(this.uy)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Ma()||f.hG()}this.tb.hG()}catch(h){g.Kx(h)}}; g.k.JT=function(){if(this.xe){var a=(0,g.uu)();return this.xe.JT(a)}return!1}; var B2={};var N6a=/[&\?]action_proxy=1/,M6a=/[&\?]token=([\w-]*)/,O6a=/[&\?]video_id=([\w-]*)/,P6a=/[&\?]index=([\d-]*)/,Q6a=/[&\?]m_pos_ms=([\d-]*)/,S6a=/[&\?]vvt=([\w-]*)/,E6a="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(" "),R6a="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(" "),H6a={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"},I6a={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},K6a={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};c0.prototype.fB=function(a){this.player.Gi().tick(a)}; c0.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=this.j===1;d&&this.fB("a_bid_s");var e=C6a();if(e!==null)return d&&this.fB("a_bid_f"),this.B(a,b,e);e=D6a();d&&Oe(e,function(){c.fB("a_bid_f")}); return e.then(function(f){return c.B(a,b,f)})}; c0.prototype.B=function(a,b,c){var d=this,e=b===void 0?{}:b;b=e.Pw;var f=e.Zd;var h=e.cueProcessedMs;c=c===void 0?"":c;var l=this.player.getVideoData(1);e=this.player.U().Bj;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Ch:0,AUTONAV_STATE:b0(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Lr()*1E3,LACT:tw(),LIVE_INDEX:b?this.C++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0, VIS:this.player.getVisibilityState(),P_H:this.player.qb().Xh().height,P_W:this.player.qb().Xh().width,YT_REMOTE:e?e.join(","):""},n=bs(as);Object.keys(n).forEach(function(q){n[q]!=null&&(m[q.toUpperCase()]=n[q].toString())}); c!==""&&(m.BISCOTTI_ID=c);c={};$r(a)&&(c.sts="19914",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=Xr(g.Ho(a,m),c);return p.split("?").length!==2?Me(Error("Invalid AdBreakInfo URL")):g.gQ(this.player.U(),l==null?void 0:l.oauthToken).then(function(q){if(q&&Zr()){var r=MS();NS(r,q)}q=d.player.Em(r);r=T6a(d,p,m,l.isMdxPlayback,h);return g.oB(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})}; c0.prototype.reset=function(){this.C=this.j=1};g.z(U6a,c0); U6a.prototype.B=function(a,b,c){b=b===void 0?{}:b;var d=b.Pw;var e=b.Zd;var f=b.cueProcessedMs;c=c===void 0?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:V6a(this,a,{Pw:d,Zd:e},c,b);if(h.split("?").length!==2)return Math.random()<.1&&g.Kx(Error("Invalid AdBreakInfo URL")),Me(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=M6a.exec(h);c=c!=null&&c.length>=2?c[1]:"";a=N6a.test(h);e=O6a.exec(h);e=e!=null&&e.length>= 2?e[1]:"";var n=P6a.exec(h);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=Q6a.exec(h);p=p!=null&&p.length>=2?p[1]:"0";var q=PP(this.player.U().Ga),r=g.pA(this.player.getVideoData(1).ra,!0);G6a(this,r,h,m===""?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(tw()),playerHeightPixels:Math.trunc(this.player.qb().Xh().height),playerWidthPixels:Math.trunc(this.player.qb().Xh().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19914,autonavState:b0(this.player.U())}; if(l){l={};var t=this.player.U().Bj;J6a(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=R6a.includes(q)?void 0:g.Bs("PREF")){t=l.split(RegExp("[:&]"));for(var u=0,x=t.length;u1&&B[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=L6a(l)}h=S6a.exec(h);(h=h!=null&&h.length>=2?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m}; m=SLa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=f!==void 0?Math.round(f).toString():void 0;t=(d==null?0:d.context)?d.context:void 0;d=(d=Math.trunc((d?d.Ch:0)*1E3))?String(d):void 0;u=this.player.Lr()*1E3;u=Number.isNaN(u)?0:Math.trunc(u);b={adBlock:b,params:c,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:l,topLevelDomain:q,isProxyAdTagRequest:a,context:r,overridePlaybackContext:h,cueProcessedMs:f,videoId:e?e:void 0,liveTargetingParams:t,breakLengthMs:d, driftFromHeadMs:u?String(u):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:m?m:void 0};return W6a(this,b)};var wcb={qka:"replaceUrlMacros",Jja:"onAboutThisAdPopupClosed",lha:"executeCommand"};X6a.prototype.Kr=function(){return"adPingingEndpoint"}; X6a.prototype.fu=function(a,b,c){A7a(this.Oa.get(),a,b,c)};Y6a.prototype.Kr=function(){return"changeEngagementPanelVisibilityAction"}; Y6a.prototype.fu=function(a){this.J.ib("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};Z6a.prototype.Kr=function(){return"loggingUrls"}; Z6a.prototype.fu=function(a,b,c){a=g.v(a);for(var d=a.next();!d.done;d=a.next())d=d.value,A7a(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.z(a7a,g.K);g.z(e0,g.K);g.k=e0.prototype;g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.Dk=function(a,b,c,d,e,f,h,l){if(a==="")qz("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().Dk(a,b,c,d,e,f,h,l);this.Sa.get().Dk(a,b,c,d,e,f,h,l);var m;(m=this.yf)==null||m.get().Dk(a,b,c,d,e,f,h,l);this.B.Dk(a,b,c,d,e,f,h,l);m=g.v(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Dk(a,b,c,d,e,f,h,l)}}; g.k.tG=function(){this.j&&this.Jo(this.j)}; g.k.Jo=function(a){this.j=void 0;for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Jo(a)};f0.prototype.KI=function(a,b,c,d,e){b7a(this);this.G=!b&&c===0;var f=this.J.getVideoData(1),h=this.J.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.j=f.G);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.D=a;d<=0?(b7a(this),this.G=!b&&c===0):(this.actionType=this.G?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.C=!0,jB("_start",this.actionType)&&d7a(this)))}; f0.prototype.reset=function(){return new f0(this.J)};g.z(h0,g.K);h0.prototype.addCueRange=function(a,b,c,d,e,f,h){f=f===void 0?3:f;h=h===void 0?1:h;this.j.has(a)?qz("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new e7a(a,b,c,d,f),this.j.set(a.id,{Zd:a,listener:e,hp:h}),this.J.kf([a],h))}; h0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.Vo([b.Zd],b.hp),this.j.delete(b.Zd.id)):qz("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; h0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)}; h0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)}; g.z(e7a,g.gE);i0.prototype.UG=function(a){this.J.UG(a)}; i0.prototype.bv=function(a){var b=g.Fa.apply(1,arguments);a==="onAdStart"||a==="onAdEnd"?this.J.Ym.apply(this.J,[a].concat(g.w(b))):this.J.ib.apply(this.J,[a].concat(g.w(b)))};j0.prototype.gf=function(a){return a&&k0(this)}; j0.prototype.BT=function(){return this.J.U().experiments.ob("h5_enable_generic_error_logging_event")}; j0.prototype.ET=function(){return this.J.U().experiments.ob("enable_ips_gating")};var m7a=null;g.z(l7a,g.iy);l7a.prototype.GP=function(a){return this.j.hasOwnProperty(a)?this.j[a].GP():{}}; g.Ma("ytads.bulleit.getVideoMetadata",function(a){return m0().GP(a)}); g.Ma("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=m0();c=k7a(c);c!==null&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=n0.prototype; g.k.Oh=function(a,b){if(!this.j.has(a))return{};if(b==="seek"){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=b===void 0?!1:b;var c=El(Go).aK(a,{});c?yn(c):b&&(a=El(Go).aH(null,Wl(),!1,a),a.Ak=3,Hja([a]));return{}}b=o7a(b);if(b===null)return{};var d=this.J.Uc();d=d&&V4a(d);if(!d)return{};var e=this.J.getPresentingPlayerType(!0);if((c=this.J.getVideoData(e))==null||!c.isAd())return{};c={opt_adElement:d,opt_fullscreen:this.Ha.get().isFullscreen()};return Hka(b,a,c)}; g.k.Wx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Wx()}; g.k.Vx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Vx()}; g.k.Xx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Xx()}; g.k.Tx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Tx()}; g.k.Ux=function(a){var b;(b=this.j.get(a.queryId))==null||b.Ux()};v7a.prototype.send=function(a,b,c,d){try{w7a(this,a,b,c,d===void 0?!1:d)}catch(e){}};g.z(x7a,v7a);y7a.prototype.send=function(a,b,c,d){var e=!1;try{if(d==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")e=!0,a=Jpa(a);d=e;var f=a.match(Ti);if(f[1]==="https")var h=a;else f[1]="https",h=Ri("https",f[2],f[3],f[4],f[5],f[6],f[7]);var l=Lka(h);f=[];var m=xma(h)&&this.Ba.get().J.U().experiments.ob("add_auth_headers_to_remarketing_google_dot_com_ping");if($r(h)||m)f.push({headerType:"USER_AUTH"}),f.push({headerType:"PLUS_PAGE_ID"}),f.push({headerType:"VISITOR_ID"}),f.push({headerType:"EOM_VISITOR_ID"}), f.push({headerType:"AUTH_USER"}),f.push({headerType:"DATASYNC_ID"});this.j.send({baseUrl:h,scrubReferrer:l,headers:f},b,c,d)}catch(n){}};s0.prototype.Hi=function(){var a=this.J.Uc();return a&&(a=a.Hi(1))?a:null};g.z(t0,g.K);g.k=t0.prototype;g.k.Dm=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.Dk=function(){this.ZN.clear();this.ZQ=null;this.Us.get().clear()}; g.k.Jo=function(){}; g.k.De=function(a){var b=this.J.getVideoData(a);return b?this.LI(b,a||this.J.getPresentingPlayerType(!0)):null}; g.k.oca=function(a,b,c,d,e){b.videoId==="nPpU29QrbiU"&&pF(this,"ads_ssm_vdc_s",{pt:c,dvt:a});RJ(this.Ba.get())&&a!=="dataloaded"||H7a(this,b,c);if(k0(this.Ba.get())&&a==="newdata"&&e!==void 0){a=this.Dm();var f=b.clientPlaybackNonce,h={};sF(this,"rte",(h.ec=f,h.xc=d==null?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=rF(f),h));b=b.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;e=I7a(e);if(e!==1)if(d!==void 0)for(c=g.v(this.listeners),a=c.next();!a.done;a=c.next())a.value.oG(d, b,e);else qz("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.v(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.nG(b)}}; g.k.Qba=function(a,b){a!==void 0&&(this.ZQ=a,b===void 0?qz("Expected ad video start time on SS video changed"):this.ZN.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).oa("ads_ssvc",{pt:c,cpn:d==null?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?H7a(this,d,c):qz("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})}; g.k.LI=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.pd,h=a.title,l=a.dj,m=a.Kj,n=a.isMdxPlayback,p=a.yn,q=a.mdxEnvironment,r=a.isAutonav,t=a.Iq,u=a.Ik,x=a.Fp,B=a.videoId||"",E=a.profilePicture||"",F=a.Rl||"",I=a.vk()||!1,O=a.Om()||!1;a=a.Mw||void 0;f=this.Us.get().j.get(f)||{layoutId:null,slotId:null};var N=this.J.getVideoData(1),S=N.dc();N=N.getPlayerResponse();b=1E3*this.J.getDuration(b);var Y=1E3*this.J.getDuration(1),la,oa,ba=(N==null?void 0:(la=N.playerConfig)==null? void 0:(oa=la.daiConfig)==null?void 0:oa.enableDai)||!1,qa,P;la=(N==null?void 0:(qa=N.playerConfig)==null?void 0:(P=qa.daiConfig)==null?void 0:P.enablePreroll)||!1;return Object.assign({},f,{videoId:B,author:c,clientPlaybackNonce:d,Eca:b,Kp:Y,daiEnabled:ba,AX:la,isListed:e,dc:S,profilePicture:E,title:h,Rl:F,dj:l,Kj:m,Mw:a,isMdxPlayback:n,yn:p,mdxEnvironment:q,isAutonav:r,Iq:t,Ik:u,Fp:x,vk:I,Om:O})}; g.k.xa=function(){this.listeners.length=0;this.Qw=null;g.K.prototype.xa.call(this)};g.z(u0,g.K);g.k=u0.prototype;g.k.Dk=function(){var a=this;k0(this.Ba.get())||(this.j=ed(function(){a.J.Ma()||a.J.Dg("ad",1)}))}; g.k.Jo=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.ER=function(){}; g.k.playVideo=function(){this.J.playVideo()}; g.k.pauseVideo=function(){this.J.pauseVideo()}; g.k.resumeVideo=function(a){this.Bo(a)&&this.J.playVideo()}; g.k.Bo=function(a){return this.J.getPlayerState(a)===2}; g.k.getCurrentTimeSec=function(a,b,c){var d=this.Sa.get().ZQ;if(a===2&&!b&&d!==null)return K7a(this,d);LJ(this.Ba.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.J.getCurrentTime(a,b,c):this.J.getCurrentTime(a,b)}; g.k.getVolume=function(){return this.J.getVolume()}; g.k.isMuted=function(){return this.J.isMuted()}; g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)}; g.k.getPlayerState=function(a){return this.J.getPlayerState(a)}; g.k.isFullscreen=function(){return this.J.isFullscreen()}; g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()}; g.k.rC=function(a){this.J.rC(a)}; g.k.pba=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(a===2){a=g.v(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Li(b)}else if(a===1)for(a=g.v(this.qE),c=a.next();!c.done;c=a.next())c.value.ER(b)}; g.k.eba=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Bg(a,this.getPresentingPlayerType())}; g.k.onFullscreenToggled=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)}; g.k.onVolumeChange=function(){for(var a=g.v(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()}; g.k.nh=function(){for(var a=this.J.isMinimized(),b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.nh(a)}; g.k.Dj=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Dj(a)}; g.k.jc=function(){for(var a=this.J.qb().Xh(),b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.aj(a)}; g.k.Cj=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Cj(a)}; g.k.Fj=function(){for(var a=g.v(this.listeners),b=a.next();!b.done;b=a.next())b.value.Fj()};g.z(N7a,g.K);g.z(z0,g.K);z0.prototype.xa=function(){this.Fo.Ma()||this.Fo.get().removeListener(this);g.K.prototype.xa.call(this)};A0.prototype.fetch=function(a){var b=a.yX;return this.j.fetch(a.t3,{Pw:a.Pw===void 0?void 0:a.Pw,Zd:b,cueProcessedMs:a.cueProcessedMs===void 0?0:a.cueProcessedMs}).then(function(c){return O7a(c,b)})};g.z(B0,g.K);g.k=B0.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.tM=function(a){P7a(this,a,1)}; g.k.onAdUxClicked=function(a,b){C0(this,function(c){c.hg(a,b)})}; g.k.zR=function(a){C0(this,function(b){b.eQ(a)})}; g.k.yR=function(a){C0(this,function(b){b.dQ(a)})}; g.k.N$=function(a){C0(this,function(b){b.eK(a)})};D0.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={sE:null,RZ:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Ch)?qz("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,S7a(this, c)))}}; g.k.xa=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.FR,this),this.j=null);this.listeners.length=0;this.IM.length=0;g.K.prototype.xa.call(this)};F0.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=H0.prototype;g.k.cE=function(a,b,c,d,e,f,h){return this.J.cE(a,b,c,d,e,f,h)}; g.k.Fz=function(a,b){this.J.Fz(a,b)}; g.k.WH=function(a,b,c){this.J.WH(a,b,c)}; g.k.Xu=function(a){this.J.Xu(a)}; g.k.xF=function(a,b,c,d,e,f,h){this.J.xF(a,b,c,d,e,f,h)}; g.k.Rs=function(a){return this.J.Rs(a)}; g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.z(X7a,g.K);g.z(Y7a,g.K);g.z(Z7a,g.K);g.z($7a,g.K);g.z(a8a,g.K);g.z(c8a,g.K);c8a.prototype.C=function(){return this.B};g.z(d8a,Wy); d8a.prototype.D=function(a){var b=a.content;if(b.componentType==="shopping-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="action-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="image-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="top-banner-image-text-icon-buttoned")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="banner-image")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="ads-engagement-panel")switch(b=b.renderer,a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",b.addAction);this.j.ib("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.j.ib("changeEngagementPanelVisibility",b.hideAction),this.j.ib("updateEngagementPanelAction",b.removeAction)}else if(b.componentType==="ads-engagement-panel-layout"){var c=b.renderer;switch(a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",{action:Ox(c.addAction),layoutId:b.layoutId,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});this.j.ib("changeEngagementPanelVisibility",Ox(c.expandAction));break;case 3:this.j.ib("changeEngagementPanelVisibility", Ox(c.hideAction)),this.j.ib("updateEngagementPanelAction",{action:Ox(c.removeAction)})}}};g.z(e8a,dz);g.k=e8a.prototype; g.k.init=function(a,b,c){dz.prototype.init.call(this,a,b,c);g.km(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(){fz(this);dz.prototype.hide.call(this)}; g.k.show=function(){ez(this);dz.prototype.show.call(this)}; g.k.Aq=function(){this.hide()}; g.k.Ro=function(){if(this.j){var a=this.j.getProgressState();a!=null&&a.current!=null&&g.km(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.z(f8a,sy);g.k=f8a.prototype; g.k.init=function(a,b,c){sy.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.R(b.actionButton,g.iJ))if(a=b.durationMilliseconds||0,typeof a!=="number"||a<=0)g.Jx(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null){var e=b.image.thumbnail.thumbnails;e!=null&& e.length>0&&g.Qb(g.Yd(e[0].url))&&(e[0].url=d.profilePicture,g.Qb(g.Yd(d.profilePicture))&&AIa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.Qb(g.Yd(e[0].url))&&(e[0].url=d.gh());e=b.headline;e!=null&&g.Qb(g.Yd(e.text))&&(e.text=d.author)}this.Y.init(gy("ad-image"),b.image,c);this.G.init(gy("ad-text"),b.headline,c);this.C.init(gy("ad-text"),b.description,c);this.Na.init(gy("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.Xa.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.xf.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.Fa.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Ly(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,d);g.Q(this,this.actionButton);this.actionButton.Ja(this.fb);this.actionButton.init(gy("button"),g.R(b.actionButton,g.iJ),c);ap(this.actionButton.element);d=dp(this.actionButton.element);cp(this.actionButton.element, d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.ra,"click",this.lP,this);this.D.T(this.Va,"click",this.lP,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Wa,"click",this.lP,this);this.j=this.FT?new Az(this.api,a):new Bz(a);g.Q(this,this.j);if(b.skipButton){if((a=g.R(b.skipButton,hab))&&this.j&&(this.skipButton=new uz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,this.pM), g.Q(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(gy("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.R(c,gab))a=new yz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),a.Ja(this.Fa),a.init(gy("simple-ad-badge"),c,this.macros),g.Q(this,a);if(c=b.adInfoRenderer)if(c=g.R(c,gJ))a=new az(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),a.Ja(this.Fa),a.init(gy("ad-info-hover-text-button"), c,this.macros),g.Q(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.R(b.nonskippableOverlayRenderer,hJ))&&this.j&&(this.B=new iz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,!1),g.Q(this,this.B),this.B.Ja(this.element),this.B.init(gy("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.R(b,iab)&&this.j&&(c=new e8a(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j),g.Q(this,c),c.Ja(this.element),c.init(gy("timed-pie-countdown"),g.R(b,iab), this.macros)));this.show();this.element.focus()}else g.Jx(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Jx(Error("AdActionInterstitialRenderer has no button."));else g.Jx(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Jx(Error("AdActionInterstitialRenderer has no description AdText."));else g.Jx(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Jx(Error("AdActionInterstitialRenderer has no image."))}; g.k.clear=function(){g.ut(this.D);this.hide()}; g.k.show=function(){g8a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();sy.prototype.show.call(this)}; g.k.hide=function(){g8a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();sy.prototype.hide.call(this)}; g.k.lP=function(){this.navigationEndpoint&&(this.layoutId?this.kb.executeCommand(this.navigationEndpoint,this.layoutId):g.Jx(Error("Missing layoutId for ad action interstitial.")))};var l8a={iconType:"CLOSE"},L0=new g.Md(320,63);g.z(k8a,sy);g.k=k8a.prototype; g.k.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.zb(this.D.onClickCommands||[]);this.Va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.R(a,dab)?(this.G=g.he("ytp-ad-overlay-ad-info-button-container",this.C.element),m8a(this,b),a=o8a(this,g.R(a,dab))):g.R(a,eab)?(this.G=g.he("ytp-ad-overlay-ad-info-button-container",this.B.element),m8a(this,b),a=p8a(this,g.R(a,eab))):g.R(a,fab)?(this.G= g.he("ytp-ad-overlay-ad-info-button-container",this.j.element),m8a(this,b),a=q8a(this,g.R(a,fab))):(g.Jx(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),r8a(this,!0))}; g.k.clear=function(){r8a(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.fca=function(){this.Xa&&(this.layoutId?this.kb.executeCommand(this.Xa,this.layoutId):g.Jx(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.k.EN=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.v(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.Jx(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.k.L$=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.k.YR=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.YR("invideo-overlay")}; g.k.M$=function(a){a.target===this.G&&g.he("ytp-ad-button",this.fb.element).click()};g.z(s8a,dz);g.k=s8a.prototype;g.k.init=function(a,b,c){dz.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=a==null||a===0?0:a+this.j.getProgressState().current*1E3;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(gy("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(){t8a(this,!1);dz.prototype.hide.call(this);this.B.hide();this.messageText.hide();fz(this)}; g.k.show=function(){t8a(this,!0);dz.prototype.show.call(this);ez(this);this.B.show();this.messageText.show()}; g.k.Aq=function(){this.hide()}; g.k.Ro=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(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&&(cz(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.z(u8a,sy);g.k=u8a.prototype; g.k.init=function(a,b,c){sy.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.R(b.actionButton,g.iJ)?(this.C.init(gy("ad-image"),b.image,c),this.B.init(gy("ad-text"),b.headline,c),this.D.init(gy("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 Ly(this.api,this.layoutId,this.interactionLoggingClientData,this.kb, a),b.backgroundColor&&g.km(this.element,"background-color",g.Nz(b.backgroundColor)),g.Q(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(gy("button"),g.R(b.actionButton,g.iJ),c),b=g.qD(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.pp(c,"ytp-ad-underlay-left-container"),g.np(c,"ytp-ad-underlay-right-container"),g.km(this.j,"margin-left",Math.round((b+.02)*100)+"%")):(c=this.j,g.pp(c,"ytp-ad-underlay-right-container"), g.np(c,"ytp-ad-underlay-left-container")),g.km(this.j,"width",Math.round((1-b-.04)*100)+"%"),this.api.GF()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.VV.bind(this)),this.api.addEventListener("resize",this.QY.bind(this))):g.Jx(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Jx(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Jx(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Jx(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.k.show=function(){v8a(!0);this.actionButton&&this.actionButton.show();sy.prototype.show.call(this)}; g.k.hide=function(){v8a(!1);this.actionButton&&this.actionButton.hide();sy.prototype.hide.call(this)}; g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.VV.bind(this));this.api.removeEventListener("resize",this.QY.bind(this));this.hide()}; g.k.onClick=function(a){sy.prototype.onClick.call(this,a);this.actionButton&&g.te(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.k.VV=function(a){a==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):a==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):a==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; g.k.QY=function(a){a.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):a.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.km(this.B.element,"font-size",a.width/40+"px")};g.z(M0,sy); M0.prototype.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.R(b.answer,g.iJ)?(a=new Ly(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(gy("ytp-ad-survey-answer-button"),g.R(b.answer,g.iJ),c),a.show()):b.answer&&g.R(b.answer,z1)&&(this.j=new Uy(this.api,this.layoutId,this.interactionLoggingClientData,this.kb, ["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.Q(this,this.j),this.j.init(gy("survey-answer-button"),g.R(b.answer,z1),c));this.show()}; M0.prototype.nH=function(a){this.layoutId?WD(this.kb,a,this.layoutId,this.macros):g.Jx(new g.Mt("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; M0.prototype.onClick=function(a){sy.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; M0.prototype.clear=function(){this.hide()};g.z(w8a,sy);w8a.prototype.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);b.answer&&g.R(b.answer,z1)&&(this.button=new Uy(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(gy("survey-none-of-the-above-button"),g.R(b.answer,z1),c));this.show()};g.z(N0,Ly);N0.prototype.init=function(a,b,c){Ly.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.uy(b.text),a=!g.Qb(b));a||g.Kx(Error("No submit text was present in the renderer."))}; N0.prototype.onClick=function(a){this.publish("l");Ly.prototype.onClick.call(this,a)};g.z(O0,sy); O0.prototype.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.R(a,YH)?(a=g.R(a,YH),c=new wz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,!0),c.Ja(this.skipOrPreview),c.init(gy("skip-button"),a,this.macros),g.Q(this,c),this.j=c):g.R(a,hJ)&&(a=g.R(a,hJ),c=new iz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,!1),c.Ja(this.skipOrPreview),c.init(gy("ad-preview"),a,this.macros),jz(c),g.Q(this,c),this.j=c);this.j== null&&g.Jx(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.R(a,g.iJ)&&(a=g.R(a,g.iJ),c=new N0(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.submitButton),c.init(gy("survey-submit"),a,this.macros),g.Q(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.R(a,gab),c=new yz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),c.Ja(this.C),c.init(gy("simple-ad-badge"),a,this.macros), g.Q(this,c);if(a=b.adDurationRemaining)a=g.R(a,$$a),c=new Ez(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,void 0),c.Ja(this.C),c.init(gy("ad-duration-remaining"),a,this.macros),g.Q(this,c);(b=b.adInfoRenderer)&&g.R(b,gJ)&&(a=new az(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.Q(this,a),a.Ja(this.C),a.init(gy("ad-info-hover-text-button"),g.R(b,gJ),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()}; O0.prototype.clear=function(){this.hide()};g.z(P0,sy);P0.prototype.init=function(a,b,c){sy.prototype.init.call(this,a,b,c);B8a(this)}; P0.prototype.show=function(){this.C=g.$a();sy.prototype.show.call(this)}; P0.prototype.o1=function(){};g.z(C8a,P0);g.k=C8a.prototype;g.k.init=function(a,b,c){var d=this;P0.prototype.init.call(this,a,b,c);b.questionText&&x8a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.R(e,x1)&&y8a(d,g.R(e,x1),c,f)}); this.G=new Set(this.B.map(function(e){return e.j.j})); (a=b.noneOfTheAbove)&&(a=g.R(a,cab))&&D8a(this,a,c);b.surveyAdQuestionCommon&&A8a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()}; g.k.o1=function(){E8a(this,!1);this.D.B.subscribe("l",this.dca,this)}; g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?F8a(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),E8a(this,!0))}; g.k.dca=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.Kc(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=bj(f.baseUrl,b));return f}); return e}); if(c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?WD(this.kb,d,this.layoutId,this.macros):g.Jx(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.z(Q0,P0);Q0.prototype.init=function(a,b,c){var d=this;P0.prototype.init.call(this,a,b,c);b.questionText&&x8a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.R(e,x1)&&y8a(d,g.R(e,x1),c,f)}); b.surveyAdQuestionCommon?A8a(this,b.surveyAdQuestionCommon):g.Jx(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()}; Q0.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(R0,sy);R0.prototype.init=function(a,b,c){var d=this;sy.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=(e=b.conditioningRules)!=null?e:[];var f;this.B=(f=b.questions)!=null?f:[];var h;((h=b.questions)==null?0:h.length)&&J8a(this,0)}else(b.questions||[]).forEach(function(l){g.R(l,eJ)?H8a(d,g.R(l,eJ),c):g.R(l,dJ)&&I8a(d,g.R(l,dJ),c)}); this.show()}; R0.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; R0.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if((c=this.conditioningRules)==null?0:c.length){var d;if(a.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(e){return e.questionIndex===b.j})==null)g.Jx(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if((f=e.answerIndices)==null?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex; break;case "CONDITION_ANY_OF":var h;if((h=e.answerIndices)==null?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex; break;default:g.Jx(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)J8a(this,d); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Jx(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 K8a=na(['background-image:url("','");']);g.z(S0,sy); S0.prototype.init=function(a,b,c){var d=this;sy.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(typeof a!=="number"||a<0)g.Jx(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.R(b.ctaButton,g.iJ))if(b.brandImage)if(b.backgroundImage&&g.R(b.backgroundImage,jJ)&&g.R(b.backgroundImage,jJ).landscape){this.layoutId||g.Jx(Error("Missing layoutId for survey interstitial."));L8a(this.interstitial, g.R(b.backgroundImage,jJ).landscape);L8a(this.logoImage,b.brandImage);g.ue(this.text,g.uy(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Ly(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,e);g.Q(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(gy("button"),g.R(b.ctaButton,g.iJ),c);this.actionButton.show();this.j=new Az(this.api,a*1E3);this.j.subscribe("g",function(){d.transition.hide()}); g.Q(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.Jx(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Jx(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Jx(Error("SurveyTextInterstitialRenderer has no button."));else g.Jx(Error("SurveyTextInterstitialRenderer has no text."));else g.Jx(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; S0.prototype.clear=function(){this.hide()}; S0.prototype.show=function(){M8a(!0);sy.prototype.show.call(this)}; S0.prototype.hide=function(){M8a(!1);sy.prototype.hide.call(this)};g.z(U0,sy);U0.prototype.init=function(a,b){sy.prototype.init.call(this,a,b,{});if(a=b.content){g.ue(this.element,a);var c,d;b=((c=b.interaction)==null?void 0:(d=c.accessibility)==null?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.Jx(Error("AdSimpleAttributedString does not have text content"))}; U0.prototype.clear=function(){this.hide()}; U0.prototype.onClick=function(a){sy.prototype.onClick.call(this,a)};g.z(V0,sy); V0.prototype.init=function(a,b){sy.prototype.init.call(this,a,b,{});(a=b.label)&&a.content&&!g.Qb(a.content)?(this.adBadgeText.init(gy("ad-simple-attributed-string"),new T0(a)),(b=b.adPodIndex)&&b.content&&!g.Qb(b.content)&&(this.j=new U0(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),this.j.Ja(this.element),g.Q(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(gy("ad-simple-attributed-string"),new T0(b))),this.element.classList.add("ytp-ad-badge--stark"),this.show()): g.Jx(Error("No label is returned in AdBadgeViewModel."))}; V0.prototype.show=function(){this.adBadgeText.show();var a;(a=this.j)==null||a.show();sy.prototype.show.call(this)}; V0.prototype.hide=function(){this.adBadgeText.hide();var a;(a=this.j)==null||a.hide();sy.prototype.hide.call(this)};g.z(W0,dz);g.k=W0.prototype; g.k.init=function(a,b){dz.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(b.durationMilliseconds<0){g.Jx(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.HJ();var c;if((c=b.previewText)==null||!c.text||g.Qb(b.previewText.text))g.Jx(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.ue(this.C,b.previewText.text);var d; if(((d=this.api.getVideoData(1))==null?0:d.Wl)&&b.previewImage){var e,f;(a=((f=rua(((e=b.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:f.url)||"")&&a.length?(this.previewImage=new g.ry({I:"img",S:"ytp-preview-ad__image",W:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.Q(this,this.previewImage),this.previewImage.Ja(this.element)):g.Jx(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(){fz(this);dz.prototype.hide.call(this)}; g.k.show=function(){ez(this);dz.prototype.show.call(this)}; g.k.Aq=function(){this.hide()}; g.k.Ro=function(){if(this.j){var a=this.j.getProgressState();if(a!=null&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if((b=this.G)==null?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=(c=this.G)==null?void 0:(d=c.text)==null?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.ue(this.C,a);this.D=b}}}};g.z(X0,sy); X0.prototype.init=function(a,b){sy.prototype.init.call(this,a,b,{});var c,d;if((a=((d=rua(((c=b.image)==null?void 0:c.sources)||[],O8a(b),!0))==null?void 0:d.url)||"")&&a.length){c=this.Ea("ytp-ad-avatar");c.src=a;var e,f;if(d=(e=b.interaction)==null?void 0:(f=e.accessibility)==null?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.Jx(Error("Failed to get imageUrl in AdAvatar."))}; X0.prototype.clear=function(){this.hide()}; X0.prototype.onClick=function(a){sy.prototype.onClick.call(this,a)};g.z(Y0,sy); Y0.prototype.init=function(a,b){sy.prototype.init.call(this,a,b,{});var c;a=(c=b.label)==null?void 0:c.content;if((c=a!=null&&!g.Qb(a))||b.iconImage){c&&(this.buttonText=new g.ry({I:"span",S:"ytp-ad-button__text",va:a}),g.Q(this,this.buttonText),this.buttonText.Ja(this.element));var d,e,f=((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)||c?a:"";f&&cp(this.element,f+" This link opens in new tab");ap(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=g.v(e.sources), a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,(c=a.clientResource)==null?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:(h=e.clientResource)==null?void 0:h.imageName}}}h=Ky(d);h!=null&&(this.buttonIcon=new g.ry({I:"span",S:"ytp-ad-button__icon",V:[h]}),g.Q(this,this.buttonIcon),b.iconLeading?(qe(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.Kx(Error("AdButton does not have label or an icon."))}; Y0.prototype.clear=function(){this.hide()}; Y0.prototype.onClick=function(a){sy.prototype.onClick.call(this,a)};g.z(P8a,dz);g.k=P8a.prototype; g.k.init=function(a,b){dz.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.Ea("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"),qe(this.Ea("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.R(b.avatar,jab)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.R(b.button,lab);e?(this.adAvatar.init(gy("ad-avatar"),a),this.headline.init(gy("ad-simple-attributed-string"),new T0(c)),this.description.init(gy("ad-simple-attributed-string"),new T0(d)),c.content&&c.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(gy("ad-button"),e),this.B=b.startMs||0,this.api.GF()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.WV.bind(this)),ez(this)):g.Jx(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Jx(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Jx(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Jx(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.k.Ro=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(fz(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.k.Aq=function(){this.clear()}; g.k.onClick=function(a){this.api.pauseVideo();dz.prototype.onClick.call(this,a)}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.WV.bind(this))}; g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();dz.prototype.show.call(this)}; g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();dz.prototype.hide.call(this)}; g.k.WV=function(a){a==="hidden"?this.show():this.hide()};g.z(Q8a,sy);g.k=Q8a.prototype; g.k.init=function(a,b){sy.prototype.init.call(this,a,b,{});if(!b.label||g.Qb(b.label))g.Jx(Error("No label is returned for SkipAdButton."));else if(g.ue(this.D,b.label),a=Ky({iconType:"SKIP_NEXT_NEW"}),a==null)g.Jx(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.ry({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.Q(this,this.C),this.C.Ja(this.element),this.api.U().experiments.ob("enable_skip_to_next_messaging")&&(b=g.Yd(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(Ksa(a,{contentCpn:(c=(b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)!=null?c:""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;sy.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.k.clear=function(){this.j.reset();this.hide()}; g.k.hide=function(){sy.prototype.hide.call(this)}; g.k.show=function(){this.j.start();sy.prototype.show.call(this);this.B&&this.api.U().experiments.ob("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.z(R8a,dz);g.k=R8a.prototype; g.k.init=function(a,b){dz.prototype.init.call(this,a,b,{});var c=g.R(b.preskipState,nab);c?(a=g.R(b.skippableState,pab))?(b.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.Kx(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(gy("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(gy("skip-button"),a),this.show()):g.Jx(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.Jx(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))}; g.k.show=function(){ez(this);dz.prototype.show.call(this)}; g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();fz(this);dz.prototype.hide.call(this)}; g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();fz(this);dz.prototype.hide.call(this)}; g.k.Aq=function(){this.hide()}; g.k.Ro=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;(a=this.B)!=null&&a.transition.hide();(a=this.C)!=null&&(a.transition.show(),a.show())}};g.z(Z0,sy); Z0.prototype.init=function(a,b){sy.prototype.init.call(this,a,b,{});if(b.label){var c;((c=b.label)==null?0:c.content)&&!g.Qb(b.label.content)&&(this.linkText=new g.ry({I:"span",S:"ytp-visit-advertiser-link__text",va:b.label.content}),g.Q(this,this.linkText),this.linkText.Ja(this.element));var d,e;if((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)cp(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=b.label)==null?0:f.content)&&!g.Qb(b.label.content)&&cp(this.element, b.label.content+" This link opens in new tab")}ap(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Jx(Error("No label found in VisitAdvertiserLink."))}; Z0.prototype.onClick=function(a){sy.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Z0.prototype.clear=function(){this.hide()};g.z($0,sy); $0.prototype.init=function(a,b,c,d){sy.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.R(c,qab),c=g.R(c,nab),a?(this.xv=new R8a(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B),g.Q(this,this.xv),this.xv.Ja(this.G),this.xv.init(gy("skip-ad"),a)):c&&(this.C=new W0(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,1),g.Q(this,this.C),this.C.Ja(this.G),this.C.init(gy("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&& (a=g.R(b.playerAdCard,oab))&&(this.playerAdCard=new P8a(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B),g.Q(this,this.playerAdCard),this.playerAdCard.Ja(this.ra),this.playerAdCard.init(gy("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(c=b.adBadgeRenderer,a=g.R(c,gab),c=g.R(c,kab),a||c)&&(a?(this.adBadge=new yz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.Q(this,this.adBadge),this.adBadge.Ja(this.j),this.adBadge.init(gy("simple-ad-badge"),a,this.macros)): c&&(this.D=new V0(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.Q(this,this.D),this.D.Ja(this.j),this.D.init(gy("ad-badge"),c),this.j.classList.add("ytp-ad-player-overlay-layout__ad-info-container--with-ad-badge-view-model")));b.adDurationRemaining&&(a=g.R(b.adDurationRemaining,$$a))&&(this.adDurationRemaining=new Ez(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d.videoAdDurationSeconds),g.Q(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.j), this.adDurationRemaining.init(gy("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.R(b.adInfoRenderer,gJ))&&(this.adInfoButton=new az(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.Q(this,this.adInfoButton),this.adInfoButton.Ja(this.j),this.adInfoButton.init(gy("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(d=g.R(b.visitAdvertiserLink,rab))&&(this.visitAdvertiserLink=new Z0(this.api,this.layoutId,this.interactionLoggingClientData, this.kb),g.Q(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.j),this.visitAdvertiserLink.init(gy("visit-advertiser-link"),d));b.adDisclosureBanner&&(b=g.R(b.adDisclosureBanner,mab))&&(this.adDisclosureBanner=new Gz(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.Q(this,this.adDisclosureBanner),this.adDisclosureBanner.Ja(this.Y),this.adDisclosureBanner.init(gy("ad-disclosure-banner"),b));this.show()}; $0.prototype.clear=function(){this.hide()};var xcb="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.z(a1,Wy); a1.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!xcb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.kb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof UE?c.FT:!1,m=c instanceof UE||c instanceof zz?c.pM:!1;h=h===void 0?{}:h;l=l===void 0?!1:l;m=m===void 0?!1:m;switch(d){case "invideo-overlay":a=new k8a(a,f,h,e);break;case "player-overlay":a=new Kz(a,f,h,e,new UU(a),m);break;case "player-overlay-layout":a=new $0(a,f,h,e,new UU(a));break;case "survey":a= new R0(a,f,h,e);break;case "ad-action-interstitial":a=new f8a(a,f,h,e,l,m);break;case "survey-interstitial":a=new S0(a,f,h,e);break;case "ad-message":a=new s8a(a,f,h,e,new UU(a,1));break;case "player-underlay":a=new u8a(a,f,h,e);break;default:a=null}if(!a){g.Kx(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Dc(this.B,b)?g.Kx(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof $E?this.C?this.C.append(a.dT):g.Jx(Error("Underlay view was not created but UnderlayRenderer was created")): this.G.append(a.dT);break;case 2:b=S8a(this,a);if(b==null)break;b.bind(c);break;case 3:c=S8a(this,a),c!=null&&(g.fb(c),g.Dc(this.B,b)?(c=this.B,b in c&&delete c[b]):g.Kx(Error("Ad UI component does not exist: "+b)))}}; a1.prototype.xa=function(){g.gb(Object.values(this.B));this.B={};Wy.prototype.xa.call(this)};g.z(T8a,g.jU);g.k=T8a.prototype;g.k.create=function(){try{U8a(this),this.load(),this.created=!0,U8a(this)}catch(a){qz(a instanceof Error?a:String(a))}}; g.k.load=function(){try{X8a(this)}finally{k0(J0(this.j).ql)&&this.player.Dg("ad",1)}}; g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Yx.Jo(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.jU.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){qz(b instanceof Error?b:String(b))}if(this.B!=null){var a=this.B;this.B=null;a.dispose()}this.C.reset()}; g.k.jn=function(){return!1}; g.k.getAdState=function(){return-1}; g.k.getOptions=function(){return Object.values(wcb)}; g.k.Sh=function(a,b){b=b===void 0?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=r7a(this.player),Object.assign(b,a.zma),a=g.Ho(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.mq(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}}; g.k.Uu=function(a){var b;return!((b=this.j.j.yf)==null||!b.get().Uu(a))}; g.k.mq=function(a){a.isMuted&&vua(J0(this.j).Cl,J0(this.j).Io,a.layoutId);this.xt&&this.xt.mq()}; g.k.executeCommand=function(a){J0(this.j).kb.executeCommand(a.command,a.layoutId)};g.Ma("yt.player.Application.create",g.G_.create);g.Ma("yt.player.Application.createAlternate",g.G_.create);rra(Fx(),{xs:[{qB:/Unable to load player module/,weight:20},{qB:/Failed to fetch/,weight:500},{qB:/XHR API fetch failed/,weight:10},{qB:/JSON parsing failed after XHR fetch/,weight:10},{qB:/Retrying OnePlatform request/,weight:10},{qB:/CSN Missing or undefined during playback association/,weight:100}]});var ycb=g.Pa("ytcsi.tick");ycb&&ycb("pe");g.iU("ad",T8a);g.zcb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Ma("yt.msgs_",g.zcb);g.z(g.d1,g.K);g.d1.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.uu)()};this.next()}; g.d1.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.d1.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.uu)()-a;a=this.j;d=ula(a,e/d);if(d==0)a=a.C;else if(d==1)a=a.D;else{e=Jd(a.C,a.y1,d);var f=Jd(a.y1,a.y2,d);a=Jd(a.y2,a.D,d);e=Jd(e,f,d);f=Jd(f,a,d);a=Jd(e,f,d)}a=g.Hd(a,0,1);this.callback(b+(c-b)*a);a<1&&this.delay.start()}};g.z(g.e1,g.T);g.k=g.e1.prototype;g.k.l6=function(){this.B&&this.scrollTo(this.j-this.containerWidth)}; g.k.show=function(){g.T.prototype.show.call(this);c9a(this)}; g.k.m6=function(){this.B&&this.scrollTo(this.j+this.containerWidth)}; g.k.Zx=function(){this.jc(this.api.qb().getPlayerSize())}; g.k.jc=function(a){var b=this.api.Zc()?.5625:16/9,c=this.api.Gh();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-c*8)/c;b=Math.floor(d/b);for(var e=g.v(this.C),f=e.next();!f.done;f=e.next())f=f.value.Ea("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.f1(this)}; g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Ff?!1:a.D;this.suggestionData=b.suggestions?g.ln(b.suggestions,function(c){return c&&!c.playlistId}):[]; e9a(this);b.Ff?this.title.update({title:g.tE("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.Zc()?"More shorts":"More videos"})}; g.k.scrollTo=function(a){a=g.Hd(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.f1(this);c9a(this)};})(_yt_player);