var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC 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.dev/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 z="local{toString{signatureCipher{prototype{splice{cmo={Y{cmo=td{T{length{%3D{replace{pop{set{reverse{{push{file{youtube.player.web_20250422_22_RC00{indexOf{1{assign{,{url{/initplayback{get{slice{path{W{So{&{\u22da;{split{unshift{1970-01-01T05:29:55.000+05:30{scheme{/videoplayback{www.youtube.com{mn{s{clone{vS{:{fallback_count{tE{match{---{/{n{join{startsWith{]\u22d1/{cmo{7qmy6t7jtx86Z0BluL-_w8_{={Fs{rr{playerfallback{pM{1970-01-01T08:30:54.000+08:30{/api/manifest{j{1969-12-31T20:29:51.000-03:30{1970-01-01T01:01:09.000+01:00{1970-01-01T10:46:16.000+10:45{//{1969-12-31T21:14:54.000-02:45{r{/file/index.m3u8{else{NaN{cmo=pf{U-MdVav{redirector.googlevideo.com{fvip{forEach{fromCharCode{Untrusted URL{rr?[1-9].*\\.c\\.youtube\\.com${sp{index.m3u8{?{GN{\\.a1\\.googlevideo\\.com${\\.googlevideo\\.com${://{undefined{a1.googlevideo.com{m5".split("{"), Yl,Y9X,A3X,l8,c3E,TXv,VX,El3,$l,ol9,v3,H3,GV,wX,zvl,LXX,s9,fY,r33,h3,lcX,M4,pY,P89,QX,Zc,mX,gX,yX,VSE,nY,q4,CY,vlX,HY8,zo,GV4,WXE,lw,w34,iY3,J33,FXl,jc3,VY,tSl,evY,ez,BXY,xz,X3X,kVE,XI,Rv3,acc,x4X,scX,pj,OO,fcY,hvX,Kj,S9V,dg,Td,E8,ot,La,rg,p3v,lh,PG,V9,QcV,OYX,vG,m43,wg,JF,kR,Rt,at,xR,glE,y3X,s8,SL,hF,nlc,D43,Ic3,uE9,q9c,bh,pa,Q9,Zz,O8,gg,y9,Aqc,It,Ka,qV,Ca,Yn,ci,df,cq8,En,oH,LR,TL9,Ez3,ozv,rf,Pi,V7,vi,Hi,wf,il,vz8,Hj3,Gov,WTE,JU,wWX,FG,jF,Ns,ijc,tU,Jq3,jmE,kn,aH,fR,SF,Ms,eoc,tzY,afY,koX,sm8,Q7,ZH, nR,SOl,bjX,Mz3,IH,KR,pWv,ul,AD,pR,ZjE,Qmv,ow,EU,bl,Oj3,zH,rv,LC,P4,mFX,$J,v4,H4,GH,W4,wv,yqc,nzV,ix,DF8,IfS,JD,jI,KT4,eI,B4,CwS,Xf,kJ,Rw,UVc,Y8l,sU,AF3,fC,hD,Tg3,SI,Mw,oRY,zUE,lzV,La8,PhX,Ha8,bx,vR9,VLv,pC,Qm,Gd3,ZR,Wa9,OU,iaX,wGc,JF3,Fav,nC,DR,jt4,Ng9,tL8,Iw,ux,KC,eUS,RU3,qw,azc,xV3,MLV,Ap,S84,st8,pGc,OaY,da,E_,z5,o1,mVX,L2,DV4,ra,VQ,$K,vB,G5,Kal,WB,q8c,im,Jp,jo,AUl,eo,XL,R1,cUV,kK,dsX,Tfc,a1,BB,xK,s_,Enl,f2,So,zZX,Mp,bm,p2,lHE,yQ,PlV,VFX,$sc,vnv,mW,O_,QQ,L2v,rU8,HRX,W29,wil,iR3,I1,um,K2,JUv,U2, A1,cp,d$,F23,E2,jH3,LG,zl,Bfl,l3,Pp,Xi3,k$V,VW,vp,Hp,Gl,w$,Wp,J1,i3,Bp,FP,Nz,t1,aHS,kZ,xsE,R3,a3,h1,Sg,Mz,xZ,fG,s2,pG,sHE,QW,fHV,ZV,SnX,mA,g$,jg,eg,yW,nG,DV,I3,bR9,u3,KG,qz,CG,UY,YH,pi3,A7,QHE,cc,ZR8,EY,Te,ox,ze,L6,ro,lk,ORS,gn3,VJ,yUV,nnc,DsX,vc,Hc,wo,uGV,ik,K2S,J7,Clc,jP,YUX,NA,t7,eP,ADc,Bc,cD9,X1,dwY,Tv8,kH,EJv,Rx,ax,sY,f6,zV4,MA,lRc,oJS,bk,QJ,Zp,$wX,PxX,mS,yJ,vJc,GHY,WkY,uk,K6,qA,C6,UF,YO,Am,iCX,JDS,FkX,Nvc,tIY,TU,EF,eVS,og,BvY,X43,RVX,fRl,zU,hVc,SUc,MI8,bC4,p43,lp,Qw4,ZC9,OCv,Wy,GU,Hy,mwX,gJc, yDY,wT,ip,Jm,DwS,eE,By,XB,kO,Rg,ufv,Kk3,qU8,sF,hm,SE,QR,ZI,gT,Up3,ApX,Y_X,cpY,dpX,Kx,Ta8,EKc,qP,oK4,zEV,LWl,rpY,AB,U6,c7,d2,Ty,lWY,PmS,VoX,E6,oJ,$p8,zy,vKV,H2X,G5E,Lu,WWX,r2,lt,wB8,i2E,JpS,FW3,j13,NaV,$W,v7,H7,W7,Ba4,w2,it,eyX,eE4,Gy,B$8,JB,Fj,j$,tB,ND,XpE,klV,Ry3,e$,xzX,Xj,fVv,hy3,S2V,Mgv,bGc,ppX,Q3c,ZG3,aJ,xW,s6,mzV,OG8,gZX,y1E,hB,nZE,S$,Dzc,IV9,MD,bt,pu,uPX,QM,Zb,KA4,O6,g2,yM,nu,Db,IJ,ut,Ku,q2c,C3X,UAE,YYX,qD,A78,dAE,c7X,UR,Yt,EHE,To3,LSc,Pkc,lpl,A6,VPS,$AY,vHV,Gel,H6Y,WSc,co,wcc,i6E,TJ,J74,FSl, jxX,Noc,ER,oq,tPS,zJ,eJE,Li,rd,Xcv,la,ke8,Po,VN,RJc,ap8,$t,Ho,sxX,GJ,xA3,fp3,hJY,SY9,b63,Wo,pcX,J6,F$,Z6X,O68,y73,nH8,jC,Nn,t6,eC,Bo,X$,kt,Rq,aq,xt,sR,fi,h6,KSc,u1X,qYX,UP3,Ck8,AmY,Ipc,YFS,DAc,SC,Mn,dP8,TTX,EOE,ZO,ni,DO,ba,zO9,Iq,cmV,rmv,lIV,LF4,ua,Ki,qn,Ci,Ppc,oO8,VEl,UT,$PX,vOl,HxX,GUc,WFX,Jm8,FF4,jgE,NTY,Y3,AY,cr,tE8,eOX,kU3,ROc,dc,ET,xPl,oD,Tt,fIY,sg9,hOY,SFc,ME9,LL,rc,pyY,Qg4,ZxX,OxV,mPl,gOc,ym4,nOv,DPc,IIV,Pr,Vv,$3,vr,uB3,UDl,Y6l,cB4,ABV,dDV,Wr,wc,T2X,EW3,oWl,iY,JY,FM,jy,NU,tY,ey,Br,znY,XM, rBX,aD,lbX,PtX,x3,sT,fL,hY,V$X,$Dc,HuV,Sy,cy,jwX,Zd,GyY,W8X,OT,w7X,Qv,JBY,iuV,pL,mu,gc,F8S,jJ3,N2X,t$V,yv,en3,nL,qF4,KFX,Dd,ID,KL,qU,kyS,CL,Ug,AS,Rn3,abX,cO,S6S,zc,sJE,hnS,Eg,Tc,$M,vO,M$3,WO,buX,w9,i7,p7l,ZuY,mDE,eW,XD,DD3,IbY,uj8,kM,UnE,N3,yBX,A6X,CtX,K89,q68,c63,YR9,hS,b7,TdX,EtX,otY,zgl,L$l,Qc,r69,Og,lOv,$nV,vtc,mG,GJ4,woX,W$X,ii8,yc,Iz,Ce,YU,Aj,cL,dp,Tz,jq3,NdX,Ev,tCE,o_,zz,Uv,L_,rp,lF,zt,PL,egc,$U,kJ4,vL,HL,aOc,RgS,xnX,sqS,fOl,Gz,hgX,WL,wp,MCV,Qqv,Zi8,iF,y63,gtX,ntl,Dnv,IO9,Jj,u$X,Oi8,FJ,K$X, qRX,jJ,UUV,YTS,AY8,cY4,dUX,tj,Tc3,E3Y,o3V,zTX,ldV,Luc,eJ,BL,XJ,kU,R_,a_,xU,f_,VyS,SJ,hj,$Uv,bF,Gt4,M7,Wu3,wrX,Ncv,iL8,JYV,Fuv,jDl,p_,QI,Z_,tyl,Ov,m3,gp,yI,n_,D_,RTE,eTE,q7,ktS,C_,Xrc,K_,I_,Bcc,uF,YC,xUX,cP,AZ,z6,LB,lQ,hTX,STX,rq,$C,My8,vP,sD3,QDX,ZLX,OLY,WP,wq,iQ,mU9,JZ,F0,jk,Nv,g3S,tZ,ek,BP,yYc,n3l,X0,DU3,KuX,biS,uM3,qTX,CY3,U3Y,Idl,AS8,T99,sA,hZ,oME,zG3,LGc,rSE,P79,bQ,Mv,VW8,lmS,HeS,WG3,JSX,QH,FG8,pB,OA,jz3,mI,yH,nB,N9c,tW9,AT,eG8,dK,B9V,XOV,Vf,kcE,amX,$c,x3V,szX,beX,fm8,WF,wK,ig,F7,jn,m39,NQ,tT, en,ySE,kc,nM9,D3c,Ru,uD8,xc,s4,fZ,hT,qg9,Sn,bg,pZ,Qf,ZU,C7v,U7X,YvY,mD,gK,yf,nZ,DU,Iu,Ajv,cj8,d78,TpV,EUX,oUX,ug,zNV,cu,L38,rjX,l_3,d5,E3,o5,zj,le,Pu,Vw,VJ4,Hu,Gj,Wu,$74,vUc,w5,H_S,GzE,Ja,tJX,eNY,BpY,Fz,XLX,kz3,x7Y,NY,f_8,s_l,hNY,MJ4,b_c,Bu,Xz,pLX,k4,R5,a5,x4,s3,fF,ha,ST,MY,be,pF,Qw,ZQ,O3,Q_c,Z_c,O_X,g5,I5,m7c,CF,Us,YG,Af,cn,Tw,Es,D74,o4,zw,Ll,uJX,I_9,gUX,Pn,lr,Uvl,VB,Fm,wF,jr,NL,AZ3,er,EC8,dv4,Tq3,zp3,Vk9,LIc,lG9,PQX,YAc,Xm,Bn,vCX,R4,a4,xG,HB9,pl,G6l,QB,ZD,Os,gF,WIv,nl,DD,wPc,I4,ur,JZX,Cl,Yx,Au, c5,d3,T0,EI,ob,z0,LU,jME,r3,Vo,P5,tkc,k69,BqX,XP3,RpS,aGc,sMl,fGX,xvS,SAc,H5,G0,iH,Mkv,bB8,w3,Ju,QMS,ZBX,yZE,gC3,tu,eh,B5,XC,kx,ab,Dv3,IG9,u0Y,bH,pU,KIc,qAY,CQc,g3,yo,nU,UQ4,Y4c,cTl,TK9,KU,Ecv,Uu,qR,cA,d7,Eu,ocS,Vb,$6,vA,HA,WA,w7,JQ,Pg8,Vn4,jA,$Q8,vcX,tQ,HZE,GxY,eA,BA,WDc,wF3,JT8,RE,juX,NK8,X4,tnX,ef3,XFY,BKc,hQ,FDV,Rfc,aUv,ZN,pg,xQ9,suc,Ou,mv,fUV,hfc,ng,S4c,MnE,bZ9,pF3,qC,QuX,ZZX,OZX,mQX,gcY,yTl,ncX,DQv,UC,IU9,Ab,KDc,q4X,CgY,UYE,Y3c,c9,Lc,caY,E4V,rU,o4X,LOS,Aal,raS,lQE,Pev,dYv,T5X,dU,TP,zP,ze8,oU, EC,VTc,$YX,v48,HF3,Gjc,WOv,j54,wu8,$F,v9,FY,eec,kjv,XuX,Jb,tb,ReE,XY,aQX,s5S,sC,xYV,OFc,fQE,ZFY,bz,mY9,n4Y,pc,Mb,g4X,yaX,DYX,Z1,uz8,KO3,q33,CeS,ULl,Ysv,AfX,IQc,dL3,TFX,EGc,zH3,oG9,rf8,yx,lD8,nc,D1,IU,Pr3,VrX,qb,Cc,vGS,$Lc,Ui,Hlc,WmX,il3,wnl,JfV,NFS,FmX,lV,Wx,VO,trc,Px,wn,iV,JH,Fa,eHE,Nk,Xnc,Bx,eH,kS,RQ,aQ,xS,kw9,si,hH,RH3,Mk,pT,QO,aDS,xLY,s4Y,fD9,Zs,mq,hHX,gn,yO,nT,Mr4,Ds,IQ,bl3,KT,UZ,CT,qk,Ys,Az,Zl3,DLV,umY,nGX,yfY,IDE,TB,zB,UR3,Kmc,qsS,CrV,Q4X,Lz4,Wj,zY3,PHX,oxE,d8,w8,Pj,Hj,ru4,r8,mLl,Olv,gGX,oB, Ex3,j5,WzV,Nd,iUY,Ju8,FzX,e5,jbl,N3c,thv,B38,X5E,ks,RY9,RB,aoS,xRX,fo3,hY3,xs,SI3,bUS,sZ,p59,f$,hz,Lg,yu3,Kzc,ZS,CHE,AQ3,mf,dCc,T7V,E63,AA,Y$,o69,C$,B5X,K$,UD,qd,g8,rB,LW,Pa,$$,Lvv,va,G2,Wa,rQS,lN8,JA,VAX,$C3,v6X,Hg3,G1X,WvX,wA4,igY,JQc,Fv8,tA,jEY,eb,Xs,N7X,tAc,e9Y,B7V,k$,XAv,k13,R9Y,aN3,sD,fW,hA,xC8,Sb,sE3,b6,h9l,fNl,Qu,ZZ,OD,mj,Su8,gB,yu,MAv,bg4,nW,DZ,Ogl,pAY,Zgv,QE9,I8,u6,KW,mC4,g6S,yQc,qq,DCE,Kv8,u4V,CW,Ue,YD,A_,ch,Tg,Ee,oN,zg,LV,r1,quX,CW3,UbX,lE,Ph,Vz,$D,Hh,Wh,cb3,AbX,iE,dbX,J_,FH,jR,NG,t_, XH,kD,RN,aN,xD,se,fV,h_,SR,MG,bE,oF3,Qz,Oe,zF3,mt,rb4,l1l,PzX,$b3,HcY,uE,GPv,qG,KV,icX,Jb8,FwS,UX,Yg,NUS,c0,ds,H0,GN,eFS,W0,ws,i1,BUX,JL,t3c,Fb,js,kPX,X9S,Ni,tL,es,B0,kg,a1S,xbX,al,xg,fK,hL,sUX,sX,SCS,M38,bcX,p98,QU3,ZcX,OcV,Mi,Ss,hFX,yb9,b1,DbX,I13,gs,uY8,Ql,Z5,Kw9,yl,Cz3,YiX,nK,D5,AHX,Il,dkY,u1,rH3,zKV,Tn4,oSE,ESX,qi,CK,Uw,Yv,AI,cX,dw,Ew,PV9,vSY,L5,aI3,rw,HT3,Wq8,PX,HX,VF,vX,$v,JHX,iT8,wx3,Fqv,GL,jQV,Bnl,WX,is,k4l,JI,FZ,jd,NI,RK9,tI,as3,xkY,BX,aj,xv,f5,hI,Sd,MI,bs,p5,QF,ZA,Ow,mL,gw,sQv,fs9,yF,n5, DA,Ij,us,K5,hKX,SiE,qI,A2,px4,QQ3,cR,db,J2,Fn,OTV,t2,mkE,gS9,Xn,yHX,Dk3,nSX,IsX,uaS,KqX,qi8,CV3,Udc,AzX,YZc,cz8,Es3,z7S,T8E,Lf8,rz9,PAv,RC,aC,$dl,V5E,xX,sk,fz,H$E,h2,Sw,Ml,WfX,wjv,bf,GBV,pz,Ffc,Q8,ZE,Ok,ms,gb,y8,nz,DE,IC,uf,Kz,ql,Cz,Uy,Y8,Ao,cK,dY,TT,Ey,o0,zT,Lm,rY,lD,PK,VL,$8,vK,HK,GT,WK,wY,iD,Jo,Fw,jY,NT,to,eY,BK,Xw,k8,R0,a0,x8,sy,fm,ho,SY,MT,bD,pm,QL,Zt,Oy,m6,gY,yL,nm,Dt,I0,uD,Km,qT,Cm,Uj,Yq,Ar,c_,TG,Ej,N83,od,u,zG,dD,LH,rD,lT,e7V,VK,Xj8,P_,kBE,v_,R7S,GG,$q,W_,wD,iT,FA,xdE,sB8,fSc,h7l,ad,xq,B_, sj,M54,b$c,pj3,QBX,aSv,Z$3,Jr,O$4,md9,hr,QK,Si,N8,gsX,ji,fH,M8,ZT,nsV,tr,ei,pH,bT,DdX,Oj,m0,gD,yK,ISl,nH,DT,Id,uT,KH,u38,Kfv,CAV,Uq3,UE,YB,AAX,Ag,E$v,zu8,rAV,lZ3,dl,VbE,$qS,rl,v$E,ln,Pm,VE,$B,vm,Hm,HWY,Wj3,waX,G2c,iWX,JA9,Jg,Ft,Nr,e8,Bm,Xt,FjX,kB,j8l,RK,aK,j8,fS,hg,S8,Mr,NBE,sE,eul,bn,BBY,XaX,pS,k29,QE,Z0,RuY,aZ8,OE,xq3,s8X,m1,fZV,hu9,SDX,MbS,gl,yE,bW3,pav,nS,D0,IK,Q88,un,KS,qr,CS,ZWX,U7,YP,OWY,A5,mql,cU,g$X,yAc,n$v,Dqc,IZV,usX,dt,Kj4,qDX,C6S,TX,UGc,E7,Ye3,o9,A_X,zX,c_3,dGY,Ld,$P,T13,vU,HU,GX,WU, EDX,wt,iu,J5,F6,jf,oDV,zrE,t5,ef,r_X,BU,lPc,PEY,Lt9,VRX,$Gc,vDc,kP,HV8,R9,a9,xP,s7,Ggv,fd,h5,Mx,WtX,bu,pd,whS,ZM,gt,O7,I9,uu,iVl,Kd,J_l,Cd,Uq,Ye,FtE,cd,jNX,Tu,Eq,on,nd,zu,Lw,rh,N1V,lM,Pd,Vd,tRV,$e,vd,Hd,Gu,Wd,wh,Jx,Fg,j1,N2,erc,B1l,XhX,Cw,tx,U$,Y0,kgV,Rr3,aP3,AX,cD,d4,xGX,sN3,q2,fPv,hrl,T3,Sec,E$,oh,LQ,r4,lU,PD,VG,vD,HD,WD,w4,iU,JX,G3,phY,QNc,jU,NO,tX,ZV3,BD,mG3,XS,k0,gD8,Rh,ah,x0,fQ,y_X,s$,hX,SU,MO,nDX,QG,IPl,uHv,Kt8,O$,Zr,qe4,CEv,Ui9,md,ALc,eU,YXv,cL4,g4,diS,yG,TsY,nQ,EgV,ogl,zlX,Lb9,rL9,Dr,P18, l5S,Ih,qO,Vsc,CQ,$i8,UM,vg9,HK3,Ym,GNE,Wbv,w0V,iKS,A4,JL9,cq,jlY,EM,oW,tsv,NsV,elX,BsY,X0Y,Lh,rP,li,kNX,Rl3,a5X,xiv,sll,f58,hl3,SX9,Msc,bK3,VC,$m,p0V,Ql9,vq,Hq,ZK3,Gi,Wq,ii,OKY,J4,Fl,je,mic,No,ggc,t4,yLc,ee,ngE,Di8,Bq,I5l,ub3,Kb9,Xl,km,RW,aW,xm,qXX,C13,sM,fh,h4,UI3,Se,Mo,bi,ph,QC,Yw4,AIv,Z$,OM,cIX,mK,gP,yC,nh,qZY,dI8,Tw4,D$,Evc,ovY,z5l,IW,ui,Kh,qo,Ch,Ul,Yr,AE,cJ,d6,TE,LLl,rIc,PJ,Va,lAY,$r,JE,HJ,ao,GLY,FLS,WLX,jj8,tdX,e5c,NwX,Bwc,XXE,kLc,mP,sjX,SwE,h5X,b5Y,pXX,Qj3,DK,Io,O5Y,mIV,DIc,ud,IAE,gv9,KA,qK, CA,Ur,KL3,Ulc,qwY,c2S,r28,LsE,dl3,lEV,AK,EXE,Tb4,$lX,GsS,Hz3,J29,WsX,cN,dy,e89,oX,BbE,fEX,sCE,xlv,aE9,ks4,MwE,SkY,R8c,Oz3,Zz4,ml4,PN,nXc,gXS,y2V,XRX,DlS,IEv,zh,ry,pRY,bzY,QC4,unS,Lf,h8v,qkX,UT9,AoY,dT8,o88,zjc,roX,ltV,VY8,PD4,W6Y,v83,$TV,wKX,F6E,j08,NYl,tY3,jQ,ya,XKl,ej9,BN,s0X,RX,hjY,SyX,ft3,aX,MYv,sr,ff,Gf,hK,xI3,SQ,M_,by,pf,bmE,pKX,Q2,Q0X,ZmE,Oml,Zh,Or,mM,gy,y2,nf,Dh,IX,uy,mTc,g8S,Kf,yoY,q_,KQ,Cf,UG,DTl,n8l,Yk,It4,uwv,K6E,A9,cZ,qyX,du,CDX,U83,MdX,xTX,Yj3,TI,Wm,CH,V2,ArV,crE,of,twv,Th,d83,N_,tK, vN,$y,Yy,Gh,TY3,L6v,HN,FsE,imX,TDc,Pfl,oXE,zI,kTV,nA,oqc,EqE,uZV,E8V,zh3,Joc,JK,jCE,NbV,vXX,co3,Yy4,A2X,Csc,nvl,yIX,Z5c,KsV,z8l,HmX,wRv,izX,wy,iy,WN,GTX,Cfc,rr3,L03,LJ,ru,lc,PZ,VV,vZ,WZ,wu,ic,J9,jc,NN,lTX,$k,F9,t9,ec,PT8,BZ,ViV,$88,kk,vqY,HHV,Rf,af,xk,sG,fJ,h9,Sc,MN,iH3,pJ,Jr9,bc,F0v,W0c,w_v,jd8,QV,Zw,NDX,tiX,OG,eh4,z1,X_X,BDX,Rhv,x8X,sd3,aTl,SjS,Mi4,p_X,If,uc,QdX,ZHV,KJ,qN,OH9,m8Y,gq3,yrE,Ua,nqv,At,cz,ITY,uAY,CT9,YEX,Agc,Ur9,Ea,zC,os,cgE,drv,dW,Tl3,EBc,oBX,zMl,TC,Pnc,V8X,$rv,l0E,rgS,L1V,vBl,HSc, K0X,GfS,qjE,W13,wmX,jKc,iS3,Jg9,F19,eMX,NlE,t8E,Blc,XmY,rW,a09,kf9,xrY,RMV,sK3,f0v,hM4,SE9,M89,bSX,pmE,QK8,ZSV,OS9,mrX,gBX,lB,nBc,Dr3,I0S,yg9,utl,K1S,UxX,VP,Hz,Wz,Y74,wW,iB,Jt,Tt3,oPX,EPc,LZV,WZv,lMS,kN,jB,z04,dx4,c53,A58,Xk,Nc,Bz,fn,ht,J5V,SB,Mc,sa,tf4,FZc,j9c,e0c,bB,pn,XUX,ZL,Oa,mo,gW,yP,nn,DL,kX3,R04,Is,uB,qc,xxX,s9c,Kn,Cn,S7X,Mf4,UP,bdX,cH,pUX,dz,EP,Q9V,Tb,ov,ZdX,LI,mxX,gP8,lO,PH,Gb,nPS,$5,WH,iO,DxX,Fe,HH,wz,IMl,jx,u6X,NZ,KZ9,V_,vH,y5Y,JM,tM,q7V,Cu9,U24,ex,YqX,BH,Xe,k5,Rv,AxS,x5,av,sP,fI,cxv, d2E,hM,Sx,MZ,bO,pI,Th3,Q_,ZY,Ee3,zdS,OP,mR,gz,rxl,LUX,y_,lFX,PMX,V1S,nI,$23,ve4,HwV,Gu3,WU3,DY,Iv,uO,KI,wdc,iwX,CI,JxV,UH,Y2,FUX,jnX,Aw,Nhc,t1S,ku8,RdV,edX,BhE,Xdl,dO,Tp,EH,o7,aFV,x29,zp,snc,hdc,fF4,PM,lq,M1V,bwc,pd9,QnE,VZ,ZwV,vM,HM,OwX,geE,yxE,WM,FR,ugv,Hd8,tt,qq3,CM8,UO3,Y$c,AX8,Fk,wO,cXc,tw,ev,E0E,o03,zbX,BM,PU3,Ld8,rXc,$O3,v0c,k2,HQ9,VUX,G3c,R7,a7,x2,Wd3,wD4,sH,f1,iQl,hw,JXX,Sv,jv,QZ,Fd3,GXS,r58,Z7,OH,gO,yZ,n1,D7,I7,mH,qg,N4E,U5,ebX,Y1,XD4,k3X,B4S,tUE,Rb8,ar8,xO3,Ta,sh3,frc,S$E,E5,idY,oy,bQ4, Qh9,Rs,ZQY,OQc,eB,Puc,$xE,vPX,MU4,Ls,mOY,g0E,rI,yXv,PI,Vp,$1,vI,HI,n08,Ga,WI,DO4,IrV,wI,io,Jv,Fp,jj,N0,Kdl,uSY,tv,q$l,Uo4,ej,YM8,CUl,yp,mJ,ns,Iy,uo,cI,A48,LKS,kq,gI,UJ,Ve9,vm3,s5,dA,x1,Tr,zr,O5,LD,ihc,rA,lN,J4X,FKc,jWX,NPl,Pb,te3,eIY,V6,BPX,xoX,a$4,Xql,RIv,ki9,$Q,sWV,vb,f$X,hI8,MeS,bhc,pqY,QWv,y4l,iN,JG,I$9,FX,jK,ulc,CiV,UK8,Yl9,AE4,NJ,cEX,T6c,Er3,SK,vrX,rEX,lKX,GEl,MJ,WPc,iA9,wJ8,JEV,pD,OJ,FP3,bN,mp,gA,jo3,t7X,XJ3,I$,US,Tk,zk,ZAE,OAX,PT,lI,$p,vT,mKv,nrc,yEl,DKX,Gk,HT,IKl,KP9,qlE,U_8,iI,CdX,YrX,AKX, Fr,jt,d_v,De,wS,et,soV,N69,M7Y,Rp,V5,u23,$_v,Mm,ES,pk,Q5,Gh4,WM3,ifc,wNl,op,OS,m9,gS,FM9,y5,nk,jXc,Lk,Da,grc,uI,LM9,Kk,Nyc,RAX,kE3,eA3,qm,Y_,fh3,sX9,SrX,MQ9,zO,lR,PC,r_,$_,vC,bf8,HC,QXX,GO,OfY,iR,Zf9,Jl,FT,ny9,j4,uK3,KM9,e4,qr9,YGl,bR,Qj,Z3,g_,A9X,yj,nq,Kq,q9,Cq,UN,c9v,YA,Ak,okl,ct,dC,z_Y,LBS,TY,r9X,lw3,PcX,Vcc,EN,oV,$NX,HJ3,rC,lC,$A,vt,GIc,WBX,Ht,GY,Wt,wC,wZc,iJc,iC,J9V,FBS,Jk,Nuc,jf9,tc3,Fh,BuX,e_9,XZ8,jm,Ne,kIY,awX,xNY,tk,em,Bt,sfl,h_8,Xh,SGc,RV,Mcc,bJX,kA,aV,xA,sN,OJl,gkv,pZ9,mNX,y9Y,Qfc,ZJ4, nkX,DNc,hk,Iw8,KBv,Uc3,Atv,YaS,m7,ON,nv,dcY,Di,IV,uC,EN8,Kv,oN4,TWl,qe,rtS,Cv,UB,lLE,Yh,c1,PBX,VBX,$c8,vNY,HnX,dj,WoE,wzX,LP3,$Kl,JtX,in9,js3,Fo8,NWE,EB,tBX,eaS,z7,kC8,LN,rj,lZ,aLX,fLv,$h,v1,H1,Sav,ha9,P1,MB9,bnl,pzE,Zn4,G7,KoS,FN,j0,dZc,Me,E5S,o59,z3Y,LRl,rMc,tR,lYE,e0,B1,XN,POY,a6,VxV,$Zv,xh,sB,v54,HIX,Gb3,WR8,wHc,fN,R6,iIY,JMl,hR,jvv,NzX,txX,S0,e3X,Bz3,XH9,kbY,R3V,aY8,xZX,svl,fYE,h3X,MM,MxX,bZ,bIS,QU,Qv3,pHX,OIX,m5,SPv,pN,gj,yU,nN,Dy,I6,uZ,mZV,KN,g5E,CN,uec,COX,Ugl,YH4,AwS,Ac,cw3,qP4,IY3,dg9,Ub, TO9,o2X,qM,YL,n5X,DZc,cw,zRl,LHX,KRc,yMX,rwc,TZ,l7X,Eb,oS,PqE,zZ,v2c,VvY,$gc,Lr,H1c,rZ,l9,Pw,VS,GpV,WHX,wMX,$L,Jw4,FH9,vw,j7X,Hw,GZ,NOl,tv3,eR3,BOX,XM3,kp4,SH4,xg3,qGS,wZ,b1V,pM8,s7X,f78,a7Y,hRX,g2X,i9,RRX,MvX,n29,mgE,O13,Z1X,Q7l,FF,Dgc,Sm,jl,NS,tc,I7l,uRX,qHc,KHX,CqE,yA,U03,Y53,pv,Zi,u9S,Bw,kL,TIE,E1X,o1X,aS,XF,el,xL,cvE,AvX,d0V,sb,zwv,LJv,OB,ZI3,bC,fr,rvE,RS,l8Y,PoE,VjY,$0V,v1X,HsE,GaS,WJX,wIc,is3,Jv3,E2S,JR,Sl,jyV,hc,NIX,za3,LoX,MS,tjS,ewY,BIX,XI3,b9,a8l,ka3,x0c,f8c,Rw4,hw9,Mj3,S5l,QyS,pr,Ob,m0v, Os3,D0X,yvX,I8X,upl,g1c,n13,ZsX,KJ8,mV,q5c,YJV,Co3,UJ4,yS,FR4,AGE,cGv,dJS,TAc,EQv,nr,oQl,DC,zmX,IS,u9,LpX,Kr,rGl,leX,qS,PNS,VKX,$J3,vQc,Cr,ssc,UV,Wp8,Yw,Grc,wbX,iDX,xcV,VU,JG8,NAl,FpE,cl,j$8,aeE,RmX,zW,xJV,kr3,hmX,L4,SJ3,MKX,Q$l,ZDv,mJV,pbv,gQ9,yGc,nQ9,DJ9,Ie9,Kp3,qJl,CN8,uXV,lG,A0,YSV,bDc,AiX,OD8,Pl,dmE,Um8,rN,TS9,Epv,L98,Vt4,riV,$mc,PIc,$w,opS,Vk,vpX,z2v,GW,W93,ik3,wT8,Ji3,Gk4,F9S,jp3,vl,NSv,tt9,e28,BSc,R29,kk9,XTl,Wl,aa8,spS,fa3,h2X,SSE,Mtc,J0,Zy,bk3,pTE,ZkV,QpS,OkS,gp9,yiY,mmS,Hl,bsY,Dmc,Ial, urX,clX,CI3,U9X,YWc,d9Y,E_S,ywX,wN,qS9,K9X,T_c,gC,Al3,Ww,QA,laX,l3l,rll,PRV,V44,GOV,WyX,xml,ZC,QS,zWc,wC3,Ly3,iqY,Jlc,syX,Hkc,o_E,pIl,Nj,t0,jrl,e9,N_E,t4v,eW9,B_c,XCX,RWX,a39,hWV,x9X,f39,SWE,XW,QrE,bqS,pCV,m98,uFl,KVX,kw,qbc,Bl,C98,Oq8,M4X,RF,Uj9,srl,YVX,aF,c0V,A0X,TNc,EwV,owX,djX,uG,r0l,LiS,V93,PG8,lBX,$j3,vwv,K4,H4Y,GWV,wlv,i4S,Wi3,J0c,ez9,jFv,NN9,t9E,BNV,Xl9,kWc,aBX,Rz9,xjX,sFv,C4,hzX,SVc,b4Y,M9V,pl4,fBS,QF9,O4c,mjY,y0E,Djl,gwS,YE,IB4,uWX,Z48,KiX,nwX,Ay,qV3,CGV,UBV,Yz4,Ay3,cy3,dBE,EE3,z$X,LQl, ryc,lJl,Pvv,c$,V_l,de,vEE,H3c,z_,WQc,L3,i33,Jy4,FQV,je8,t_E,Nel,v_c,X$l,k_3,$9X,re,P$,e$8,BeX,$E,v$,aJ9,R$c,xBE,sec,fJS,M_9,h$X,Qe4,H$,Szv,Z33,G_,nE9,O3v,we,iv,DB4,W$,IJS,Jy,qzE,KQl,gE9,yy8,Cv8,Uf3,YtX,mBV,AWE,Fi,cWX,uiX,w$V,Vn,TVE,NB,ty,EI9,oI8,zC9,LeS,rWX,llX,PPc,VGE,$f3,e_,vIV,HyS,Wec,weS,iy4,GS9,JW4,Fe8,jR3,NVc,tGY,eCS,Xi,bV4,BVS,XeX,kE,kSX,RCS,ae,sRS,flX,xE,Stv,MGX,hC8,xfX,sz,Re,al8,S_,hy,by3,MB,f3,Oy3,yWv,DfX,IlX,Kec,QRv,nIS,qtV,ZyX,CP9,U53,Oz,bv,ch3,d59,YxX,Qn,oVl,zic,gIl,mfX,EVV,LNc,uxc,AhX, peS,mQ,ge,yn,rhv,n3,HOX,VDv,Gqv,$5X,PjS,WNS,lxX,JhX,wgv,DJ,FN8,NHc,eiY,BHE,XgE,axX,qB,x5X,kqv,ZJ,hiX,Sx4,ce,ciS,Ie,MDX,bOc,QO8,pgc,ZOc,fxE,Ut,OOY,m5X,gVE,nVX,yh3,npl,C3,D5S,u_Y,Ixl,qxE,KNY,tDv,UaE,Cjl,YI,uv,Y0S,TS,AVV,cVX,daY,TJV,Eo4,dV,FiX,RiS,oo8,FyE,p3,zq9,Lrc,rV9,lqY,P$c,oR,zS,$aX,voX,H8X,VuV,GMY,Ly,JV9,wSS,i8S,Frv,rV,jG3,NJ3,tuc,lP,eqc,XSE,kMv,Rql,Pe,BJY,Ve,$I,aql,xa3,GS,ve,He,sG3,We,fq9,hqE,S09,b8V,Muc,Nf,QG3,Z8c,pSX,O8v,tW,maS,eG,goE,Be,yVY,noX,KrV,uo3,UyV,DaX,q0V,Xx,IqX,C$9,Yp9,ACS,cCX,dy4, RR,TQv,fy,aR,EuY,hW,SG,zt8,L43,bP,py,rCX,Mf,lnY,Qe,V6X,PbS,Ot,me,gV,HoX,$yX,vuv,ye,GKY,JCE,wEv,W4S,iov,ny,jkE,BQ9,XEV,IR,kK8,Dl,NQ3,t6c,xyc,uP,Ky,sk9,fnX,ht3,SpX,M6S,Ux,QkV,ZoE,Ooc,YV,pEc,guc,Cy,Ah,cg,boE,dH,yCE,nuc,Tq,Dy3,Inc,uuV,Ex,K43,oO,qpc,CbY,U6c,Y1S,AdS,cd8,d6X,oj9,TEl,zXE,Lx4,PLX,$6E,vj9,Vpc,GvS,WxE,wvE,Gq,JdV,Fxc,Xvv,ij,auS,ful,sLV,x69,eX3,BEV,jLX,NEX,kvv,Jh,F_,S1v,ar,m_3,Mpc,N5,eD,pv4,b08,RXX,Z09,O03,m69,Bg,gjc,fO,njc,D68,Iuc,KxS,ud3,q1S,hh,SD,CL4,A$4,c$Y,pO,Yh4,dHX,Tr9,UHv,Ox,Ebl,ob8,Zx, zBY,Lll,r$8,lXX,VM8,PKl,H9c,GFc,$HY,wkY,i98,vb3,yT,nO,J$S,jYc,Dx,Fl8,NrE,eBY,tME,BrE,IO,XkV,kF9,RBV,aXc,xHv,sYS,fXl,ShS,hBX,MMX,b9l,pkE,QYv,Z9X,mHc,KO,uj,q5,gbS,y$X,O9X,Kl3,qhX,CKS,AnX,YLX,U14,cnl,d1l,CO,U0,TGE,Ei3,oi8,z49,rn9,ljE,AV,PSl,Yo,dJ,Lg9,VOX,$1c,viX,HEX,GRc,E0,Wgl,w2l,FgV,oG,j23,JnX,zM,L8,rJ,e49,NG9,tO3,X2X,BGv,kRX,R44,x1S,h4X,ajv,s29,PS,SLX,bEc,p2X,ZEc,OEX,Vh,$o,m1S,MO4,niY,ynX,giY,vS,HS,Ij3,D1Y,GM,WS,wJ,uVX,i$,Kg8,qL9,CSX,JV,UE9,Fo,Yd9,ju,Na,dEl,TRY,E7c,zcv,Ln4,rJV,o7E,PX9,lkl,V28,HMY, BS,Wn9,G8E,$EY,v7S,wV3,iM8,Xo,ko,JJc,Fn3,jPc,NRc,t2E,ecX,XVc,k84,M2X,xE9,sPl,Rc3,pVv,hV,Ma,g78,yJX,Qh,Zq,n7X,QPX,f8,gJ,mr,b$,Ikl,uOl,yh,qdc,UWE,CXE,n8,p8,s0,KnY,O0,ZMX,DE8,A8S,RG,Dq,c8X,dWv,Su,OMX,IG,u$,TMc,K8,qa,C8,ETX,oTX,LcY,r8Y,zxX,Up,Yu,lgV,AC,P0Y,cE,dQ,VVE,$Wc,vT3,H7X,GQV,WcX,i7c,w8c,Ep,TK,J8X,jZX,FcV,ok,zK,NMS,ex8,BM3,Lo,tVv,X8l,kQ9,RxX,agl,xW4,sZ8,fg3,lb,PE,ScY,hx9,V0,$u,b74,MVE,vE,QZE,HE,p89,Z7S,mWX,O7c,gTc,WE,y89,nT9,ib,DWV,JC,Igc,uQE,KcE,qcS,C08,YKX,ANc,cNV,U$S,d$X,T0S,EaY,oaY,zQX,LEX, rN8,lv9,e6,P_3,Vqv,$$l,GmX,JN8,wY3,HtS,ku,WE4,val,it8,Rk,jAX,FE3,ak,N0X,tqY,eQX,qj,B0X,XYE,sAc,fv3,hQ8,fo,SKc,hC,S6,Mqv,My,btX,pY3,bb,QAS,naX,m4,gQ,y0,Dn,Ik,IvE,D$X,Zt3,ub,uU4,KEE,C_c,Ko,UuE,Ymc,AsS,no,du8,csX,qy,Co,gal,Zn,Til,Ed3,od3,z1Y,Ot4,m$X,Op,LhY,rs9,l94,P58,HPV,Gn9,vdV,iPX,U1,fv,Et,jIX,NiX,Fh4,tZv,e1c,JsX,VZ3,BiX,wQX,XQ8,Wh3,THc,Yj,gZ,$uE,R13,f93,cv,h18,Smv,xu4,Tv,MZc,bPX,knX,pQX,sIv,QIX,E1,dE,ZPX,muc,OPl,Ad,ys8,L0,UNE,oL,rE,zv,lL,sOv,ndv,ucc,I9l,qmX,C5X,Khl,Vr,Pv,Yoc,AeY,ceV,dh3,VXl,L_4, reX,oYv,Hp3,EYc,Gv,w6Y,G99,ipX,Jec,Hv,wE,iL,tXS,NmY,jiS,Fd,P4v,ep,BmX,td,Jd,k93,RSc,a2l,vYX,kj,aL,xhV,l2X,eSX,jp,siX,Wv,f2X,hSc,SoX,f0,hd,X6v,MXX,bpv,Sp,M6,p6v,N6,W_c,Qil,ZpY,Op4,RL,mh9,Bv,gY3,Xd,w_,ye3,Dh8,bL,p0,I23,u5Y,K_l,s1,xj,qol,DuE,C49,Utv,Yf3,APl,cPV,Qr,Zu,E9V,LYl,l6c,TxY,wfl,ibS,JPv,FYc,jTX,Nx8,tNX,BxS,esX,O1,mx,gE,XfX,kD4,Rs8,uU,a69,yr,xtv,n0,sTV,Du,IL,f6E,X6,hs9,uL,RjS,q8,SfX,XK,BY4,R5X,MN4,Er,bb3,atY,pfc,bU,pQ,QTE,EG,ZbE,Obc,ky,fAY,mt8,g93,K0,n99,Dtc,q6,Uh,Yb,I63,qfX,CJ3,A$,UX3,u8V,AOv, KY8,YQX,cO9,dXv,Tk9,Ef9,ck,z69,tb3,tg,dP,LC9,rOE,zi,ofX,xB,l4X,P2Y,Va8,dr,FS,Ti,vfY,HXl,TF,Eh,GAX,oY,eQ,WCc,C0,ws3,iXX,JO9,DGX,zF,L9,FC4,rr,lK,jac,Pk,NkX,Vq,$b,tac,e64,FbV,vk,Bk9,Xs4,R68,kAX,Hk,GF,a4X,Wk,xXc,sa3,f4l,h68,SQv,Ma9,psX,iK,bXY,Qa8,ZXE,OXl,mXV,DXl,gf3,yO3,nf8,uqY,qQX,C2c,U4w,KCc,J$,Y9T,A3Y,c3I,d4I,TXo,jM,Elq,NH,t$,eM,olO,zvz,r3W,lcL,P8O,VSI,vlL,$4F,HYw,Bk,Xy,w3F,GVF,WXI,kb,iYW,J3q,RY,aY,FXz,xb,jcq,sh,NXI,f9,h$,tSz,SM,MH,evj,BXj,bK,p9,X3T,Qq,kVI,RvW,gr,yq,acm,x4Y,scY,S9o,hvL,n9,MSo,bYL, p3o,aA9,fcj,ZYm,OYY,glI,U48,rX;Yl=function(U){return function(){return U48[U].apply(this,arguments)}}; g.E9=function(U,Y){return U48[U]=Y}; Y9X=function(U){var Y=0;return function(){return Y=this.length))return this[U]}; yX=function(U){return U?U:gX}; VSE=function(U,Y,A){U instanceof String&&(U=String(U));for(var c=U.length-1;c>=0;c--){var d=U[c];if(Y.call(A,d,c,U))return{bJ:c,iW:d}}return{bJ:-1,iW:void 0}}; nY=function(U){return U?U:function(Y,A){return VSE(this,Y,A).bJ}}; g.Ic=function(U,Y,A){U=U.split(".");A=A||g.Dc;for(var c;U.length&&(c=U.shift());)U.length||Y===void 0?A[c]&&A[c]!==Object.prototype[c]?A=A[c]:A=A[c]={}:A[c]=Y}; q4=function(U,Y){var A=g.u8("CLOSURE_FLAGS");U=A&&A[U];return U!=null?U:Y}; g.u8=function(U,Y){U=U.split(".");Y=Y||g.Dc;for(var A=0;A2){var c=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,c);return U.apply(Y,d)}}return function(){return U.apply(Y,arguments)}}; g.dL=function(U,Y,A){g.dL=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?vlX:HY8;return g.dL.apply(null,arguments)}; g.EO=function(U,Y){var A=Array.prototype.slice.call(arguments,1);return function(){var c=A.slice();c.push.apply(c,arguments);return U.apply(this,c)}}; g.om=function(){return Date.now()}; zo=function(U){return U}; g.rL=function(U,Y){function A(){} A.prototype=Y.prototype;U.sy=Y.prototype;U.prototype=new A;U.prototype.constructor=U;U.Pg=function(c,d,T){for(var E=Array(arguments.length-2),L=2;L=0;--A)A in c&&Y.call(void 0,c[A],A,U)}; g.$z=function(U,Y,A){Y=VY(U,Y,A);return Y<0?null:typeof U==="string"?U.charAt(Y):U[Y]}; VY=function(U,Y,A){for(var c=U.length,d=typeof U==="string"?U.split(""):U,T=0;T=0;c--)if(c in d&&Y.call(A,d[c],c,U))return c;return-1}; g.Go=function(U,Y){return NXE(U,Y)>=0}; tSl=function(U){if(!Array.isArray(U))for(var Y=U.length-1;Y>=0;Y--)delete U[Y];U.length=0}; g.wL=function(U,Y){Y=NXE(U,Y);var A;(A=Y>=0)&&g.WW(U,Y);return A}; g.WW=function(U,Y){return Array.prototype.splice.call(U,Y,1).length==1}; g.iw=function(U,Y){Y=VY(U,Y);Y>=0&&g.WW(U,Y)}; evY=function(U,Y){var A=0;jc3(U,function(c,d){Y.call(void 0,c,d,U)&&g.WW(U,d)&&A++})}; g.Jq=function(U){return Array.prototype.concat.apply([],arguments)}; g.FI=function(U){var Y=U.length;if(Y>0){for(var A=Array(Y),c=0;c>>1),r=void 0;A?r=Y.call(void 0,U[L],L,U):r=Y(c,U[L]);r>0?d=L+1:(T=L,E=!r)}return E?d:-d-1}; g.sO=function(U,Y){U.sort(Y||XI)}; kVE=function(U,Y){var A=XI;g.sO(U,function(c,d){return A(Y(c),Y(d))})}; g.fj=function(U,Y,A){if(!g.UO(U)||!g.UO(Y)||U.length!=Y.length)return!1;var c=U.length;A=A||Rv3;for(var d=0;dY?1:U0&&(Y[d]=c)},U); return Y}; QcV=function(U){U=V9(U);var Y=[];g.QY(U,function(A,c){c in Object.prototype||typeof A!="undefined"&&Y.push([c,":",A].join(""))}); return Y}; OYX=function(U){rg(U,"od",ZYc);rg(U,"opac",$R).Y=!0;rg(U,"sbeos",$R).Y=!0;rg(U,"prf",$R).Y=!0;rg(U,"mwt",$R).Y=!0;rg(U,"iogeo",$R)}; vG=function(U,Y){return U.lastIndexOf(Y,0)==0}; m43=function(U,Y){var A=U.length-Y.length;return A>=0&&U.indexOf(Y,A)==A}; g.HG=function(U){return/^[\s\xa0]*$/.test(U)}; g.Gd=function(U,Y){return U.indexOf(Y)!=-1}; wg=function(U,Y){return g.Gd(U.toLowerCase(),Y.toLowerCase())}; g.Fv=function(U,Y){var A=0;U=ih(String(U)).split(".");Y=ih(String(Y)).split(".");for(var c=Math.max(U.length,Y.length),d=0;A==0&&dY?1:0}; g.tF=function(){var U=g.Dc.navigator;return U&&(U=U.userAgent)?U:""}; kR=function(U){if(!eL&&!BG||!Xv)return!1;for(var Y=0;Y0:!1}; xR=function(){return at()?!1:Rt("Opera")}; glE=function(){return at()?!1:Rt("Trident")||Rt("MSIE")}; y3X=function(){return at()?kR("Microsoft Edge"):Rt("Edg/")}; s8=function(){return Rt("Firefox")||Rt("FxiOS")}; SL=function(){return Rt("Safari")&&!(hF()||(at()?0:Rt("Coast"))||xR()||(at()?0:Rt("Edge"))||y3X()||(at()?kR("Opera"):Rt("OPR"))||s8()||Rt("Silk")||Rt("Android"))}; hF=function(){return at()?kR("Chromium"):(Rt("Chrome")||Rt("CriOS"))&&!(at()?0:Rt("Edge"))||Rt("Silk")}; nlc=function(){return Rt("Android")&&!(hF()||s8()||xR()||Rt("Silk"))}; D43=function(U){var Y={};U.forEach(function(A){Y[A[0]]=A[1]}); return function(A){return Y[A.find(function(c){return c in Y})]||""}}; Ic3=function(U){var Y=g.tF();if(U==="Internet Explorer"){if(glE())if((U=/rv: *([\d\.]*)/.exec(Y))&&U[1])Y=U[1];else{U="";var A=/MSIE +([\d\.]+)/.exec(Y);if(A&&A[1])if(Y=/Trident\/(\d.\d)/.exec(Y),A[1]=="7.0")if(Y&&Y[1])switch(Y[1]){case "4.0":U="8.0";break;case "5.0":U="9.0";break;case "6.0":U="10.0";break;case "7.0":U="11.0"}else U="7.0";else U=A[1];Y=U}else Y="";return Y}var c=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");A=[];for(var d;d=c.exec(Y);)A.push([d[1],d[2],d[3]||void 0]); Y=D43(A);switch(U){case "Opera":if(xR())return Y(["Version","Opera"]);if(at()?kR("Opera"):Rt("OPR"))return Y(["OPR"]);break;case "Microsoft Edge":if(at()?0:Rt("Edge"))return Y(["Edge"]);if(y3X())return Y(["Edg"]);break;case "Chromium":if(hF())return Y(["Chrome","CriOS","HeadlessChrome"])}return U==="Firefox"&&s8()||U==="Safari"&&SL()||U==="Android Browser"&&nlc()||U==="Silk"&&Rt("Silk")?(Y=A[2])&&Y[1]||"":""}; uE9=function(U){if(at()&&U!=="Silk"){var Y=Xv.brands.find(function(A){return A.brand===U}); if(!Y||!Y.version)return NaN;Y=Y.version.split(".")}else{Y=Ic3(U);if(Y==="")return NaN;Y=Y.split(".")}return Y.length===0?NaN:Number(Y[0])}; q9c=function(){var U=null;if(!KX3)return U;try{var Y=function(A){return A}; U=KX3.createPolicy("goog#html",{createHTML:Y,createScript:Y,createScriptURL:Y})}catch(A){}return U}; bh=function(){MV===void 0&&(MV=q9c());return MV}; pa=function(U){this.Y=U}; Q9=function(U){var Y=bh();U=Y?Y.createScriptURL(U):U;return new pa(U)}; Zz=function(U){if(U instanceof pa)return U.Y;throw Error("");}; O8=function(U){this.Y=U}; g.ma=function(U){if(U instanceof O8)return U.Y;throw Error("");}; gg=function(U){this.Bp=U}; y9=function(U){return new gg(function(Y){return Y.substr(0,U.length+1).toLowerCase()===U+":"})}; g.Dz=function(U,Y){Y=Y===void 0?C8V:Y;a:if(Y=Y===void 0?C8V:Y,!(U instanceof O8)){for(var A=0;A4);d++)Y[Pi(U[d])]||(A+="\nInner error "+c++ +": ",U[d].stack&&U[d].stack.indexOf(U[d].toString())==0||(A+=typeof U[d]==="string"?U[d]:U[d].message+"\n"),A+=rf(U[d],Y));d")!=-1&&(U=U.replace(lfl,">")),U.indexOf('"')!=-1&&(U=U.replace(Pw8,""")),U.indexOf("'")!=-1&&(U=U.replace(VzX,"'")),U.indexOf("\x00")!=-1&&(U=U.replace($Fl,"�")));return U}; g.Wi=function(U){return U==null?"":String(U)}; wf=function(U){for(var Y=0,A=0;A>>0;return Y}; il=function(U){var Y=Number(U);return Y==0&&g.HG(U)?NaN:Y}; vz8=function(U){return String(U).replace(/\-([a-z])/g,function(Y,A){return A.toUpperCase()})}; Hj3=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Gov=function(U){return U.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Y,A,c){return A+c.toUpperCase()})}; WTE=function(U){var Y=1;U=U.split(":");for(var A=[];Y>0&&U.length;)A.push(U.shift()),Y--;U.length&&A.push(U.join(":"));return A}; JU=function(){return eL||BG?!!Xv&&!!Xv.platform:!1}; wWX=function(){return JU()?Xv.platform==="Android":Rt("Android")}; FG=function(){return Rt("iPhone")&&!Rt("iPod")&&!Rt("iPad")}; jF=function(){return FG()||Rt("iPad")||Rt("iPod")}; Ns=function(){return JU()?Xv.platform==="macOS":Rt("Macintosh")}; ijc=function(){return JU()?Xv.platform==="Windows":Rt("Windows")}; tU=function(U){tU[" "](U);return U}; Jq3=function(U,Y){try{return tU(U[Y]),!0}catch(A){}return!1}; jmE=function(U,Y){var A=FTY;return Object.prototype.hasOwnProperty.call(A,U)?A[U]:A[U]=Y(U)}; g.eF=function(U){return jmE(U,function(){return g.Fv(NLY,U)>=0})}; g.Bi=function(U,Y,A){return Math.min(Math.max(U,Y),A)}; g.XG=function(U,Y){U%=Y;return U*Y<0?U+Y:U}; kn=function(U,Y,A){return U+A*(Y-U)}; g.RH=function(U,Y){this.x=U!==void 0?U:0;this.y=Y!==void 0?Y:0}; aH=function(U,Y){return U==Y?!0:U&&Y?U.x==Y.x&&U.y==Y.y:!1}; g.xn=function(U,Y){this.width=U;this.height=Y}; g.sn=function(U,Y){return U==Y?!0:U&&Y?U.width==Y.width&&U.height==Y.height:!1}; fR=function(U){return U.width*U.height}; SF=function(U,Y){this.Y=U===hU&&Y||""}; Ms=function(U){if(U instanceof qV)return U;U=String(U).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Ca(U)}; eoc=function(U){return tzY(U)}; tzY=function(U){var Y=Ms("");return Ca(U.map(function(A){return Yn(Ms(A))}).join(Yn(Y).toString()))}; afY=function(U){var Y;if(!BL3.test("div"))throw Error("");if(XWX.indexOf("DIV")!==-1)throw Error("");var A="":(U=eoc(Y.map(function(c){return c instanceof qV?c:Ms(String(c))})),A+=">"+U.toString()+""); return Ca(A)}; koX=function(U){for(var Y="",A=Object.keys(U),c=0;c2&&pWv(d,E,c,2);return E}; pWv=function(U,Y,A,c){function d(L){L&&Y.appendChild(typeof L==="string"?U.createTextNode(L):L)} for(;c0)d(T);else{a:{if(T&&typeof T.length=="number"){if(g.Yz(T)){var E=typeof T.item=="function"||typeof T.item=="string";break a}if(typeof T==="function"){E=typeof T.item=="function";break a}}E=!1}g.MF(E?g.FI(T):T,d)}}}; g.qs=function(U){return ul(document,U)}; ul=function(U,Y){Y=String(Y);U.contentType==="application/xhtml+xml"&&(Y=Y.toLowerCase());return U.createElement(Y)}; g.CR=function(U){return document.createTextNode(String(U))}; g.UU=function(U,Y){U.appendChild(Y)}; g.YJ=function(U){for(var Y;Y=U.firstChild;)U.removeChild(Y)}; AD=function(U,Y,A){U.insertBefore(Y,U.childNodes[A]||null)}; g.c4=function(U){return U&&U.parentNode?U.parentNode.removeChild(U):null}; g.dv=function(U,Y){if(!U||!Y)return!1;if(U.contains&&Y.nodeType==1)return U==Y||U.contains(Y);if(typeof U.compareDocumentPosition!="undefined")return U==Y||!!(U.compareDocumentPosition(Y)&16);for(;Y&&U!=Y;)Y=Y.parentNode;return Y==U}; pR=function(U){return U.nodeType==9?U:U.ownerDocument||U.document}; g.TH=function(U,Y){if("textContent"in U)U.textContent=Y;else if(U.nodeType==3)U.data=String(Y);else if(U.firstChild&&U.firstChild.nodeType==3){for(;U.lastChild!=U.firstChild;)U.removeChild(U.lastChild);U.firstChild.data=String(Y)}else g.YJ(U),U.appendChild(pR(U).createTextNode(String(Y)))}; ZjE=function(U){return U.tagName=="A"&&U.hasAttribute("href")||U.tagName=="INPUT"||U.tagName=="TEXTAREA"||U.tagName=="SELECT"||U.tagName=="BUTTON"?!U.disabled&&(!U.hasAttribute("tabindex")||Qmv(U)):U.hasAttribute("tabindex")&&Qmv(U)}; Qmv=function(U){U=U.tabIndex;return typeof U==="number"&&U>=0&&U<32768}; ow=function(U,Y,A){if(!Y&&!A)return null;var c=Y?String(Y).toUpperCase():null;return EU(U,function(d){return(!c||d.nodeName==c)&&(!A||typeof d.className==="string"&&g.Go(d.className.split(/\s+/),A))},!0)}; EU=function(U,Y,A){U&&!A&&(U=U.parentNode);for(A=0;U;){if(Y(U))return U;U=U.parentNode;A++}return null}; bl=function(U){this.Y=U||g.Dc.document||document}; Oj3=function(){this.Y=this.d$=null}; zH=function(){}; rv=function(){if(!LC())throw Error();}; LC=function(){return!(!lx||!lx.performance)}; P4=function(U){return function(){return U}}; g.Vm=function(){}; mFX=function(U){var Y=Y||0;return function(){return U.apply(this,Array.prototype.slice.call(arguments,0,Y))}}; $J=function(U){var Y=!1,A;return function(){Y||(A=U(),Y=!0);return A}}; v4=function(U){var Y=U;return function(){if(Y){var A=Y;Y=null;A()}}}; H4=function(U,Y,A){var c=0;return function(d){g.Dc.clearTimeout(c);var T=arguments;c=g.Dc.setTimeout(function(){U.apply(A,T)},Y)}}; GH=function(U){return U?U.passive&&gzv()?U:U.capture||!1:!1}; W4=function(U,Y,A,c){return U.addEventListener?(U.addEventListener(Y,A,GH(c)),!0):!1}; wv=function(U){if(U.prerendering)return 3;var Y;return(Y={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[U.visibilityState||U.webkitVisibilityState||U.mozVisibilityState||""])!=null?Y:0}; yqc=function(){}; nzV=function(U){return U}; ix=function(U){U.bRv=!0;return U}; DF8=function(U){return g.DH?"webkit"+U:U.toLowerCase()}; IfS=function(){return(eL||BG)&&Xv?Xv.mobile:!JD()&&(Rt("iPod")||Rt("iPhone")||Rt("Android")||Rt("IEMobile"))}; JD=function(){return(eL||BG)&&Xv?!Xv.mobile&&(Rt("iPad")||Rt("Android")||Rt("Silk")):Rt("iPad")||Rt("Android")&&!Rt("Mobile")||Rt("Silk")}; jI=function(U,Y,A,c,d,T,E){var L="";U&&(L+=U+":");A&&(L+="//",Y&&(L+=Y+"@"),L+=A,c&&(L+=":"+c));d&&(L+=d);T&&(L+="?"+T);E&&(L+="#"+E);return L}; g.Nw=function(U){return U.match(uIE)}; KT4=function(U){return U?decodeURI(U):U}; g.tD=function(U){return KT4(g.Nw(U)[3]||null)}; eI=function(U){return KT4(g.Nw(U)[5]||null)}; g.qO4=function(U){U=g.Nw(U);return jI(U[1],U[2],U[3],U[4])}; B4=function(U){U=g.Nw(U);return jI(null,null,null,null,U[5],U[6],U[7])}; CwS=function(U){var Y=U.indexOf("#");return Y<0?U:U.slice(0,Y)}; Xf=function(U,Y){if(U){U=U.split("&");for(var A=0;A=0){var T=U[A].substring(0,c);d=U[A].substring(c+1)}else T=U[A];Y(T,d?vi(d):"")}}}; kJ=function(U,Y){if(!Y)return U;var A=U.indexOf("#");A<0&&(A=U.length);var c=U.indexOf("?");if(c<0||c>A){c=A;var d=""}else d=U.substring(c+1,A);U=[U.slice(0,c),d,U.slice(A)];A=U[1];U[1]=Y?A?A+"&"+Y:Y:A;return U[0]+(U[1]?"?"+U[1]:"")+U[2]}; Rw=function(U,Y,A){if(Array.isArray(Y))for(var c=0;c=0&&YA)d=A;c+=Y.length+1;return vi(U.slice(c,d!==-1?d:0))}; hD=function(U,Y){for(var A=U.search(cF3),c=0,d,T=[];(d=AF3(U,c,Y,A))>=0;)T.push(U.substring(c,d)),c=Math.min(U.indexOf("&",d)+1||A,A);T.push(U.slice(c));return T.join("").replace(dVX,"$1")}; Tg3=function(U,Y,A){return sU(hD(U,Y),Y,A)}; SI=function(U){try{return!!U&&U.location.href!=null&&Jq3(U,"foo")}catch(Y){return!1}}; Mw=function(U,Y){if(U)for(var A in U)Object.prototype.hasOwnProperty.call(U,A)&&Y(U[A],A,U)}; oRY=function(){var U=[];Mw(ERX,function(Y){U.push(Y)}); return U}; zUE=function(U){var Y,A;return(A=(Y=/https?:\/\/[^\/]+/.exec(U))==null?void 0:Y[0])!=null?A:""}; lzV=function(){var U=La8("IFRAME"),Y={};g.MF(rFY(),function(A){U.sandbox&&U.sandbox.supports&&U.sandbox.supports(A)&&(Y[A]=!0)}); return Y}; La8=function(U,Y){Y=Y===void 0?document:Y;return Y.createElement(String(U).toLowerCase())}; PhX=function(U){for(var Y=U;U&&U!=U.parent;)U=U.parent,SI(U)&&(Y=U);return Y}; Ha8=function(U){U=U||bx();for(var Y=new VLv(g.Dc.location.href,!1),A=null,c=U.length-1,d=c;d>=0;--d){var T=U[d];!A&&$Vv.test(T.url)&&(A=T);if(T.url&&!T.Y){Y=T;break}}d=null;T=U.length&&U[c].url;Y.depth!==0&&T&&(d=U[c]);return new vR9(Y,d,A)}; bx=function(){var U=g.Dc,Y=[],A=null;do{var c=U;if(SI(c)){var d=c.location.href;A=c.document&&c.document.referrer||null}else d=A,A=null;Y.push(new VLv(d||""));try{U=c.parent}catch(T){U=null}}while(U&&c!==U);c=0;for(U=Y.length-1;c<=U;++c)Y[c].depth=U-c;c=g.Dc;if(c.location&&c.location.ancestorOrigins&&c.location.ancestorOrigins.length===Y.length-1)for(U=1;UY&&(Y=A.length);return 3997-Y-U.W.length-1}; OU=function(U,Y){this.Y=U;this.depth=Y}; iaX=function(){function U(L,r){return L==null?r:L} var Y=bx(),A=Math.max(Y.length-1,0),c=Ha8(Y);Y=c.Y;var d=c.T,T=c.W,E=[];T&&E.push(new OU([T.url,T.Y?2:0],U(T.depth,1)));d&&d!=T&&E.push(new OU([d.url,2],0));Y.url&&Y!=T&&E.push(new OU([Y.url,0],U(Y.depth,A)));c=g.mk(E,function(L,r){return E.slice(0,E.length-r)}); !Y.url||(T||d)&&Y!=T||(d=zUE(Y.url))&&c.push([new OU([d,1],U(Y.depth,A))]);c.push([]);return g.mk(c,function(L){return wGc(A,L)})}; wGc=function(U,Y){g.gv(Y,function(d){return d.depth>=0}); var A=ym(Y,function(d,T){return Math.max(d,T.depth)},-1),c=acc(A+2); c[0]=U;g.MF(Y,function(d){return c[d.depth+1]=d.Y}); return c}; JF3=function(){var U=U===void 0?iaX():U;return U.map(function(Y){return ZR(Y)})}; Fav=function(U){var Y=!1;Y=Y===void 0?!1:Y;lx.google_image_requests||(lx.google_image_requests=[]);var A=La8("IMG",lx.document);Y&&(A.attributionSrc="");A.src=U;lx.google_image_requests.push(A)}; nC=function(U){var Y="Gz";if(U.Gz&&U.hasOwnProperty(Y))return U.Gz;var A=new U;U.Gz=A;U.hasOwnProperty(Y);return A}; DR=function(){this.T=new yqc;this.Y=LC()?new rv:new zH}; jt4=function(){Iw();var U=lx.document;return!!(U&&U.body&&U.body.getBoundingClientRect&&typeof lx.setInterval==="function"&&typeof lx.clearInterval==="function"&&typeof lx.setTimeout==="function"&&typeof lx.clearTimeout==="function")}; Ng9=function(){Iw();return JF3()}; tL8=function(){}; Iw=function(){var U=nC(tL8);if(!U.Y){if(!lx)throw Error("Context has not been set and window is undefined.");U.Y=nC(DR)}return U.Y}; ux=function(U){return(U&192)!==128}; KC=function(){throw Error("Invalid UTF8");}; eUS=function(U,Y){Y=String.fromCharCode.apply(null,Y);return U==null?Y:U+Y}; RU3=function(U){var Y=!1;Y=Y===void 0?!1:Y;if(BgX){if(Y&&(XGS?!U.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(U)))throw Error("Found an unpaired surrogate");U=(kdS||(kdS=new TextEncoder)).encode(U)}else{for(var A=0,c=new Uint8Array(3*U.length),d=0;d>6|192;else{if(T>=55296&&T<=57343){if(T<=56319&&d=56320&&E<=57343){T=(T-55296)*1024+ E-56320+65536;c[A++]=T>>18|240;c[A++]=T>>12&63|128;c[A++]=T>>6&63|128;c[A++]=T&63|128;continue}else d--}if(Y)throw Error("Found an unpaired surrogate");T=65533}c[A++]=T>>12|224;c[A++]=T>>6&63|128}c[A++]=T&63|128}}U=A===c.length?c:c.subarray(0,A)}return U}; qw=function(U){g.Dc.setTimeout(function(){throw U;},0)}; azc=function(U){return Array.prototype.map.call(U,function(Y){Y=Y.toString(16);return Y.length>1?Y:"0"+Y}).join("")}; xV3=function(U){for(var Y=[],A=0;A>6|192:((d&64512)==55296&&c+1>18|240,Y[A++]=d>>12&63|128):Y[A++]=d>>12|224,Y[A++]=d>>6&63|128),Y[A++]=d&63|128)}return Y}; g.U_=function(U,Y){Y===void 0&&(Y=0);st8();Y=fzc[Y];for(var A=Array(Math.floor(U.length/3)),c=Y[64]||"",d=0,T=0;d>2];E=Y[(E&3)<<4|L>>4];L=Y[(L&15)<<2|r>>6];r=Y[r&63];A[T++]=""+l+E+L+r}l=0;r=c;switch(U.length-d){case 2:l=U[d+1],r=Y[(l&15)<<2]||c;case 1:U=U[d],A[T]=""+Y[U>>2]+Y[(U&3)<<4|l>>4]+r+c}return A.join("")}; g.YK=function(U,Y){if(hU4&&!Y)U=g.Dc.btoa(U);else{for(var A=[],c=0,d=0;d255&&(A[c++]=T&255,T>>=8);A[c++]=T}U=g.U_(A,Y)}return U}; MLV=function(U){var Y=[];S84(U,function(A){Y.push(A)}); return Y}; Ap=function(U){var Y=U.length,A=Y*3/4;A%3?A=Math.floor(A):g.Gd("=.",U[Y-1])&&(A=g.Gd("=.",U[Y-2])?A-2:A-1);var c=new Uint8Array(A),d=0;S84(U,function(T){c[d++]=T}); return d!==A?c.subarray(0,d):c}; S84=function(U,Y){function A(r){for(;c>4);E!=64&&(Y(T<<4&240|E>>2),L!=64&&Y(E<<6&192|L))}}; st8=function(){if(!cB){cB={};for(var U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Y=["+/=","+/","-_=","-_.","-_"],A=0;A<5;A++){var c=U.concat(Y[A].split(""));fzc[A]=c;for(var d=0;d=Y||(c[U]=A+1,U=Error(),Ez3(U,"incident"),qw(U))}}; ra=function(U,Y,A){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(A===void 0?0:A)&&Symbol.for&&U?Symbol.for(U):U!=null?Symbol(U):Symbol():Y}; VQ=function(U,Y){lm||PB in U||IzV(U,uvv);U[PB]|=Y}; $K=function(U,Y){lm||PB in U||IzV(U,uvv);U[PB]=Y}; vB=function(U){U[PB]&=-3}; G5=function(U,Y){return Y===void 0?U.Y!==HB&&!!(2&(U.PZ[PB]|0)):!!(2&Y)&&U.Y!==HB}; Kal=function(U,Y){if(U!=null)if(typeof U==="string")U=U?new da(U,T5):E_();else if(U.constructor!==da)if(yF3&&U!=null&&U instanceof Uint8Array)U=U.length?new da(new Uint8Array(U),T5):E_();else{if(!Y)throw Error();U=void 0}return U}; WB=function(U,Y){if(typeof Y!=="number"||Y<0||Y>=U.length)throw Error();}; q8c=function(U,Y,A){Y=Y&128?0:-1;var c=U.length,d;if(d=!!c)d=U[c-1],d=d!=null&&typeof d==="object"&&d.constructor===Object;for(var T=c+(d?-1:0),E=0;EY.length)return!1;if(U.lengthd)return!1;if(c>>0;Np=Y;tp=(U-Y)/4294967296>>>0}; XL=function(U){if(U<0){eo(0-U);var Y=g.J(BB(Np,tp));U=Y.next().value;Y=Y.next().value;Np=U>>>0;tp=Y>>>0}else eo(U)}; R1=function(U,Y){var A=Y*4294967296+(U>>>0);return Number.isSafeInteger(A)?A:kK(U,Y)}; cUV=function(U,Y){var A=Y&2147483648;A&&(U=~U+1>>>0,Y=~Y>>>0,U==0&&(Y=Y+1>>>0));U=R1(U,Y);return typeof U==="number"?A?-U:U:A?"-"+U:U}; kK=function(U,Y){Y>>>=0;U>>>=0;if(Y<=2097151)var A=""+(4294967296*Y+U);else Jp()?A=""+(BigInt(Y)<>>24|Y<<8)&16777215,Y=Y>>16&65535,U=(U&16777215)+A*6777216+Y*6710656,A+=Y*8147497,Y*=2,U>=1E7&&(A+=U/1E7>>>0,U%=1E7),A>=1E7&&(Y+=A/1E7>>>0,A%=1E7),A=Y+dsX(A)+dsX(U));return A}; dsX=function(U){U=String(U);return"0000000".slice(U.length)+U}; Tfc=function(){var U=Np,Y=tp;Y&2147483648?Jp()?U=""+(BigInt(Y|0)<>>0)):(Y=g.J(BB(U,Y)),U=Y.next().value,Y=Y.next().value,U="-"+kK(U,Y)):U=kK(U,Y);return U}; a1=function(U){if(U.length<16)XL(Number(U));else if(Jp())U=BigInt(U),Np=Number(U&BigInt(4294967295))>>>0,tp=Number(U>>BigInt(32)&BigInt(4294967295));else{var Y=+(U[0]==="-");tp=Np=0;for(var A=U.length,c=0+Y,d=(A-Y)%6+Y;d<=A;c=d,d+=6)c=Number(U.slice(c,d)),tp*=1E6,Np=Np*1E6+c,Np>=4294967296&&(tp+=Math.trunc(Np/4294967296),tp>>>=0,Np>>>=0);Y&&(Y=g.J(BB(Np,tp)),U=Y.next().value,Y=Y.next().value,Np=U,tp=Y)}}; BB=function(U,Y){Y=~Y;U?U=~U+1:Y+=1;return[U,Y]}; xK=function(U){return Array.prototype.slice.call(U)}; s_=function(U){if(U!=null&&typeof U!=="number")throw Error("Value of float/double field must be a number, found "+typeof U+": "+U);return U}; Enl=function(U){return U.displayName||U.name||"unknown type name"}; f2=function(U){if(U!=null&&typeof U!=="boolean")throw Error("Expected boolean but got "+CY(U)+": "+U);return U}; So=function(U){switch(typeof U){case "bigint":return!0;case "number":return hp(U);case "string":return onX.test(U);default:return!1}}; zZX=function(U){if(typeof U!=="number")throw L2("int32");if(!hp(U))throw L2("int32");return U|0}; Mp=function(U){return U==null?U:zZX(U)}; bm=function(U){if(U==null)return U;if(typeof U==="string"&&U)U=+U;else if(typeof U!=="number")return;return hp(U)?U|0:void 0}; p2=function(U){if(U==null)return U;if(typeof U==="string"&&U)U=+U;else if(typeof U!=="number")return;return hp(U)?U>>>0:void 0}; lHE=function(U){var Y=0;Y=Y===void 0?0:Y;if(!So(U))throw L2("int64");var A=typeof U;switch(Y){case 512:switch(A){case "string":return QQ(U);case "bigint":return String(ZW(64,U));default:return O_(U)}case 1024:switch(A){case "string":return L2v(U);case "bigint":return jo(ZW(64,U));default:return rU8(U)}case 0:switch(A){case "string":return QQ(U);case "bigint":return jo(ZW(64,U));default:return mW(U)}default:return Ka(Y,"Unknown format requested type for int64")}}; yQ=function(U){return U==null?U:lHE(U)}; PlV=function(U){if(U[0]==="-")return!1;var Y=U.length;return Y<20?!0:Y===20&&Number(U.substring(0,6))<184467}; VFX=function(U){var Y=U.length;return U[0]==="-"?Y<20?!0:Y===20&&Number(U.substring(0,7))>-922337:Y<19?!0:Y===19&&Number(U.substring(0,6))<922337}; $sc=function(U){if(U<0){XL(U);var Y=kK(Np,tp);U=Number(Y);return n2(U)?U:Y}Y=String(U);if(PlV(Y))return Y;XL(U);return R1(Np,tp)}; vnv=function(U){if(VFX(U))return U;a1(U);return Tfc()}; mW=function(U){So(U);U=DW(U);n2(U)||(XL(U),U=cUV(Np,tp));return U}; O_=function(U){So(U);U=DW(U);if(n2(U))U=String(U);else{var Y=String(U);VFX(Y)?U=Y:(XL(U),U=Tfc())}return U}; QQ=function(U){So(U);var Y=DW(Number(U));if(n2(Y))return String(Y);Y=U.indexOf(".");Y!==-1&&(U=U.substring(0,Y));return vnv(U)}; L2v=function(U){var Y=DW(Number(U));if(n2(Y))return jo(Y);Y=U.indexOf(".");Y!==-1&&(U=U.substring(0,Y));return Jp()?jo(ZW(64,BigInt(U))):jo(vnv(U))}; rU8=function(U){return n2(U)?jo(mW(U)):jo(O_(U))}; HRX=function(U){if(U==null)return U;var Y=typeof U;if(Y==="bigint")return String(ZW(64,U));if(So(U)){if(Y==="string")return QQ(U);if(Y==="number")return mW(U)}}; W29=function(U){if(U==null)return U;var Y=typeof U;if(Y==="bigint")return String(G$X(64,U));if(So(U)){if(Y==="string")return So(U),Y=DW(Number(U)),n2(Y)&&Y>=0?U=String(Y):(Y=U.indexOf("."),Y!==-1&&(U=U.substring(0,Y)),PlV(U)||(a1(U),U=kK(Np,tp))),U;if(Y==="number")return So(U),U=DW(U),U>=0&&n2(U)?U:$sc(U)}}; wil=function(U){if(U==null||typeof U=="string"||U instanceof da)return U}; iR3=function(U){if(typeof U!=="string")throw Error();return U}; I1=function(U){if(U!=null&&typeof U!=="string")throw Error();return U}; um=function(U){return U==null||typeof U==="string"?U:void 0}; K2=function(U,Y){if(!(U instanceof Y))throw Error("Expected instanceof "+Enl(Y)+" but got "+(U&&Enl(U.constructor)));return U}; JUv=function(U,Y,A){if(U!=null&&typeof U==="object"&&U[qp]===C2)return U;if(Array.isArray(U)){var c=U[PB]|0;A=c|A&32|A&2;A!==c&&$K(U,A);return new Y(U)}}; U2=function(U){return U}; A1=function(U){var Y=zo(YZ);return Y?U[Y]:void 0}; cp=function(){}; d$=function(U,Y){for(var A in U)!isNaN(A)&&Y(U,+A,U[A])}; F23=function(U){var Y=new cp;d$(U,function(A,c,d){Y[c]=xK(d)}); Y.Y=U.Y;return Y}; E2=function(U,Y,A,c,d){var T=c?!!(Y&32):void 0;c=[];var E=U.length,L=4294967295,r=!1,l=!!(Y&64),P=l?Y&128?0:-1:void 0;if(!(Y&1)){var V=E&&U[E-1];V!=null&&typeof V==="object"&&V.constructor===Object?(E--,L=E):V=void 0;if(l&&!(Y&128)&&!d){r=!0;var v;L=((v=Tl)!=null?v:U2)(L-P,P,U,V)+P}}v=void 0;for(var H=0;H=L){var F=H-P,N=void 0;((N=v)!=null?N:v={})[F]=G}else c[H]=G}if(V)for(var e in V)E=V[e],E!=null&&(E=A(E,T))!=null&&(H=+e,G=void 0,l&&!Number.isNaN(H)&& (G=H+P)0?void 0:U===0?eZY||(eZY=[0,void 0]):[-U,void 0];case "string":return[0,U];case "object":return U}}; l3=function(U,Y,A){U=Xi3(U,Y[0],Y[1],A?1:2);Y!==r$&&A&&VQ(U,2048);return U}; Pp=function(U,Y,A){return Xi3(U,Y,A,3)}; Xi3=function(U,Y,A,c){if(U==null){var d=32;A?(U=[A],d|=128):U=[];Y&&(d=d&-16760833|(Y&1023)<<14)}else{if(!Array.isArray(U))throw Error("narr");d=U[PB]|0;4096&d&&!(2&d)&&k$V();if(d&256)throw Error("farr");if(d&64)return c!==3||d&4096||$K(U,d|4096),U;if(A&&(d|=128,A!==U[0]))throw Error("mid");a:{A=U;d|=64;var T=A.length;if(T){var E=T-1,L=A[E];if(L!=null&&typeof L==="object"&&L.constructor===Object){Y=d&128?0:-1;E-=Y;if(E>=1024)throw Error("pvtlmt");for(var r in L)T=+r,T1024)throw Error("spvt");d=d&-16760833|(r&1023)<<14}}}d|=64;c===3&&(d|=4096);$K(U,d);return U}; k$V=function(){DV4(RZE,5)}; VW=function(U,Y){if(typeof U!=="object")return U;if(Array.isArray(U)){var A=U[PB]|0;if(U.length===0&&A&1)return;if(A&2)return U;var c;if(c=Y)c=(!!(32&A)||!(1&A))&&!(1&A&&!(16&A));return c?(VQ(U,34),A&4&&Object.freeze(U),U):E2(U,A,VW,Y!==void 0,!0)}if(U[qp]===C2)return Y=U.PZ,A=Y[PB]|0,G5(U,A)?U:E2(Y,A,VW,!0,!0);if(U instanceof da)return U}; vp=function(U){var Y=U.PZ,A=Y[PB]|0;if(!G5(U,A))return U;U=new U.constructor(E2(Y,A,VW,!0,!0));vB(U.PZ);return U}; Hp=function(U){if(U.Y!==HB)return!1;var Y=U.PZ;Y=E2(Y,Y[PB]|0,VW,!0,!0);vB(Y);U.PZ=Y;U.Y=void 0;return!0}; Gl=function(U){if(!Hp(U)&&G5(U,U.PZ[PB]|0))throw Error();}; w$=function(U,Y,A){Object.isExtensible(U);return Wp(U.PZ,Y,A)}; Wp=function(U,Y,A,c){if(Y===-1)return null;var d=Y+(A?0:-1),T=U.length-1;if(!(T<1+(A?0:-1))){if(d>=T){var E=U[T];if(E!=null&&typeof E==="object"&&E.constructor===Object){A=E[Y];var L=!0}else if(d===T)A=E;else return}else A=U[d];if(c&&A!=null){c=c(A);if(c==null)return c;if(!Object.is(c,A))return L?E[Y]=c:U[d]=c,c}return A}}; J1=function(U,Y,A,c){Gl(U);var d=U.PZ;i3(d,d[PB]|0,Y,A,c);return U}; i3=function(U,Y,A,c,d){var T=A+(d?0:-1),E=U.length-1;if(E>=1+(d?0:-1)&&T>=E){var L=U[E];if(L!=null&&typeof L==="object"&&L.constructor===Object)return L[A]=c,Y}if(T<=E)return U[T]=c,Y;if(c!==void 0){var r;E=((r=Y)!=null?r:Y=U[PB]|0)>>14&1023||536870912;A>=E?c!=null&&(T={},U[E+(d?0:-1)]=(T[A]=c,T)):U[T]=c}return Y}; Bp=function(U,Y,A,c,d){var T=U.PZ,E=T[PB]|0;c=G5(U,E)?1:c;d=!!d||c===3;c===2&&Hp(U)&&(T=U.PZ,E=T[PB]|0);U=FP(T,Y);var L=U[PB]|0;if(!(4&L)){4&L&&(U=xK(U),L=jg(L,E),E=i3(T,E,Y,U));for(var r=0,l=0;r "+U)}; cc=function(U,Y){if(typeof U==="string")return{buffer:OaY(U),J7:Y};if(Array.isArray(U))return{buffer:new Uint8Array(U),J7:Y};if(U.constructor===Uint8Array)return{buffer:U,J7:!1};if(U.constructor===ArrayBuffer)return{buffer:new Uint8Array(U),J7:!1};if(U.constructor===da)return{buffer:o1(U)||new Uint8Array(0),J7:!0};if(U instanceof Uint8Array)return{buffer:new Uint8Array(U.buffer,U.byteOffset,U.byteLength),J7:!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"); }; ZR8=function(U,Y,A,c){this.T=null;this.K=!1;this.Y=this.W=this.j=0;this.init(U,Y,A,c)}; EY=function(U){var Y=0,A=0,c=0,d=U.T,T=U.Y;do{var E=d[T++];Y|=(E&127)<32&&(A|=(E&127)>>4);for(c=3;c<32&&E&128;c+=7)E=d[T++],A|=(E&127)<>>0,A>>>0);throw A7();}; Te=function(U,Y){U.Y=Y;if(Y>U.W)throw QHE(U.W,Y);}; ox=function(U){var Y=U.T,A=U.Y,c=Y[A++],d=c&127;if(c&128&&(c=Y[A++],d|=(c&127)<<7,c&128&&(c=Y[A++],d|=(c&127)<<14,c&128&&(c=Y[A++],d|=(c&127)<<21,c&128&&(c=Y[A++],d|=c<<28,c&128&&Y[A++]&128&&Y[A++]&128&&Y[A++]&128&&Y[A++]&128&&Y[A++]&128)))))throw A7();Te(U,A);return d}; ze=function(U){var Y=U.T,A=U.Y,c=Y[A+0],d=Y[A+1],T=Y[A+2];Y=Y[A+3];Te(U,U.Y+4);return(c<<0|d<<8|T<<16|Y<<24)>>>0}; L6=function(U){var Y=ze(U);U=ze(U);return R1(Y,U)}; ro=function(U){var Y=ze(U),A=ze(U);U=(A>>31)*2+1;var c=A>>>20&2047;Y=4294967296*(A&1048575)+Y;return c==2047?Y?NaN:U*Infinity:c==0?U*4.9E-324*Y:U*Math.pow(2,c-1075)*(Y+4503599627370496)}; lk=function(U){for(var Y=0,A=U.Y,c=A+10,d=U.T;AU.W)throw QHE(Y,U.W-A);U.Y=c;return A}; gn3=function(U,Y){if(Y==0)return E_();var A=ORS(U,Y);U.BB&&U.K?A=U.T.subarray(A,A+Y):(U=U.T,Y=A+Y,A=A===Y?new Uint8Array(0):ms3?U.slice(A,Y):new Uint8Array(U.subarray(A,Y)));return A.length==0?E_():new da(A,T5)}; VJ=function(U,Y,A,c){if(Pc.length){var d=Pc.pop();d.init(U,Y,A,c);U=d}else U=new ZR8(U,Y,A,c);this.Y=U;this.W=this.Y.Y;this.T=this.j=-1;yUV(this,c)}; yUV=function(U,Y){Y=Y===void 0?{}:Y;U.DK=Y.DK===void 0?!1:Y.DK}; nnc=function(U,Y,A,c){if($H.length){var d=$H.pop();yUV(d,c);d.Y.init(U,Y,A,c);return d}return new VJ(U,Y,A,c)}; DsX=function(U){var Y=U.Y;if(Y.Y==Y.W)return!1;U.W=U.Y.Y;var A=ox(U.Y)>>>0;Y=A>>>3;A&=7;if(!(A>=0&&A<=5))throw pi3(A,U.W);if(Y<1)throw Error("Invalid field number: "+Y+" (at position "+U.W+")");U.j=Y;U.T=A;return!0}; vc=function(U){switch(U.T){case 0:U.T!=0?vc(U):lk(U.Y);break;case 1:U=U.Y;Te(U,U.Y+8);break;case 2:if(U.T!=2)vc(U);else{var Y=ox(U.Y)>>>0;U=U.Y;Te(U,U.Y+Y)}break;case 5:U=U.Y;Te(U,U.Y+4);break;case 3:Y=U.j;do{if(!DsX(U))throw Error("Unmatched start-group tag: stream EOF");if(U.T==4){if(U.j!=Y)throw Error("Unmatched end-group tag");break}vc(U)}while(1);break;default:throw pi3(U.T,U.W);}}; Hc=function(U,Y,A){var c=U.Y.W,d=ox(U.Y)>>>0,T=U.Y.Y+d,E=T-c;E<=0&&(U.Y.W=T,A(Y,U,void 0,void 0,void 0),E=T-U.Y.Y);if(E)throw Error("Message parsing ended unexpectedly. Expected to read "+(d+" bytes, instead read "+(d-E)+" bytes, either the data ended unexpectedly or the message misreported its own length"));U.Y.Y=T;U.Y.W=c}; wo=function(U){var Y=ox(U.Y)>>>0;U=U.Y;var A=ORS(U,Y);U=U.T;if(IH3){var c=U,d;(d=Ge)||(d=Ge=new TextDecoder("utf-8",{fatal:!0}));Y=A+Y;c=A===0&&Y===c.length?c:c.subarray(A,Y);try{var T=d.decode(c)}catch(l){if(Wc===void 0){try{d.decode(new Uint8Array([128]))}catch(P){}try{d.decode(new Uint8Array([97])),Wc=!0}catch(P){Wc=!1}}!Wc&&(Ge=void 0);throw l;}}else{T=A;Y=T+Y;A=[];for(var E=null,L,r;T=Y?KC():(r=U[T++],L<194||ux(r)?(T--,KC()):A.push((L&31)<<6|r&63)):L<240? T>=Y-1?KC():(r=U[T++],ux(r)||L===224&&r<160||L===237&&r>=160||ux(d=U[T++])?(T--,KC()):A.push((L&15)<<12|(r&63)<<6|d&63)):L<=244?T>=Y-2?KC():(r=U[T++],ux(r)||(L<<28)+(r-144)>>30!==0||ux(d=U[T++])||ux(c=U[T++])?(T--,KC()):(L=(L&7)<<18|(r&63)<<12|(d&63)<<6|c&63,L-=65536,A.push((L>>10&1023)+55296,(L&1023)+56320))):KC(),A.length>=8192&&(E=eUS(E,A),A.length=0);T=eUS(E,A)}return T}; uGV=function(U){var Y=ox(U.Y)>>>0;return gn3(U.Y,Y)}; ik=function(U,Y,A){this.PZ=Pp(U,Y,A)}; K2S=function(U,Y){if(Y==null||Y=="")return new U;Y=JSON.parse(Y);if(!Array.isArray(Y))throw Error("dnarr");VQ(Y,32);return new U(Y)}; J7=function(U,Y){this.T=U>>>0;this.Y=Y>>>0}; Clc=function(U){if(!U)return qn3||(qn3=new J7(0,0));if(!/^\d+$/.test(U))return null;a1(U);return new J7(Np,tp)}; jP=function(U,Y){this.T=U>>>0;this.Y=Y>>>0}; YUX=function(U){if(!U)return UwV||(UwV=new jP(0,0));if(!/^-?\d+$/.test(U))return null;a1(U);return new jP(Np,tp)}; NA=function(){this.Y=[]}; t7=function(U,Y,A){for(;A>0||Y>127;)U.Y.push(Y&127|128),Y=(Y>>>7|A<<25)>>>0,A>>>=7;U.Y.push(Y)}; eP=function(U,Y){for(;Y>127;)U.Y.push(Y&127|128),Y>>>=7;U.Y.push(Y)}; ADc=function(U,Y){if(Y>=0)eP(U,Y);else{for(var A=0;A<9;A++)U.Y.push(Y&127|128),Y>>=7;U.Y.push(1)}}; Bc=function(U,Y){U.Y.push(Y>>>0&255);U.Y.push(Y>>>8&255);U.Y.push(Y>>>16&255);U.Y.push(Y>>>24&255)}; cD9=function(){this.W=[];this.T=0;this.Y=new NA}; X1=function(U,Y){Y.length!==0&&(U.W.push(Y),U.T+=Y.length)}; dwY=function(U,Y){kH(U,Y,2);Y=U.Y.end();X1(U,Y);Y.push(U.T);return Y}; Tv8=function(U,Y){var A=Y.pop();for(A=U.T+U.Y.length()-A;A>127;)Y.push(A&127|128),A>>>=7,U.T++;Y.push(A);U.T++}; kH=function(U,Y,A){eP(U.Y,Y*8+A)}; EJv=function(U,Y,A){if(A!=null){switch(typeof A){case "string":Clc(A)}kH(U,Y,1);switch(typeof A){case "number":U=U.Y;eo(A);Bc(U,Np);Bc(U,tp);break;case "bigint":A=BigInt.asUintN(64,A);A=new J7(Number(A&BigInt(4294967295)),Number(A>>BigInt(32)));U=U.Y;Y=A.Y;Bc(U,A.T);Bc(U,Y);break;default:A=Clc(A),U=U.Y,Y=A.Y,Bc(U,A.T),Bc(U,Y)}}}; Rx=function(U,Y,A){kH(U,Y,2);eP(U.Y,A.length);X1(U,U.Y.end());X1(U,A)}; ax=function(){function U(){throw Error();} Object.setPrototypeOf(U,U.prototype);return U}; sY=function(U,Y,A){this.AL=U;this.vV=Y;U=zo(xH);this.Y=!!U&&A===U||!1}; f6=function(U,Y){var A=A===void 0?xH:A;return new sY(U,Y,A)}; zV4=function(U,Y,A,c,d){Y=oJS(Y,c);Y!=null&&(A=dwY(U,A),d(Y,U),Tv8(U,A))}; MA=function(U,Y,A,c){var d=c[U];if(d)return d;d={};d.Tq=c;d.BJ=g.M(Bfl(c[0]));var T=c[1],E=1;T&&T.constructor===Object&&(d.extensions=T,T=c[++E],typeof T==="function"&&(d.GP=!0,h7!=null||(h7=T),SP!=null||(SP=c[E+1]),T=c[E+=2]));for(var L={};T&&Array.isArray(T)&&T.length&&typeof T[0]==="number"&&T[0]>0;){for(var r=0;r>BigInt(32)));t7(U.Y,A.T,A.Y);break;default:A=YUX(Y),t7(U.Y,A.T,A.Y)}}}; Am=function(U,Y,A){Y=bm(Y);Y!=null&&Y!=null&&(kH(U,A,0),ADc(U.Y,Y))}; iCX=function(U,Y,A){Y=Y==null||typeof Y==="boolean"?Y:typeof Y==="number"?!!Y:void 0;Y!=null&&(kH(U,A,0),U.Y.Y.push(Y?1:0))}; JDS=function(U,Y,A){Y=um(Y);Y!=null&&Rx(U,A,RU3(Y))}; FkX=function(U,Y,A,c,d){Y=oJS(Y,c);Y!=null&&(A=dwY(U,A),d(Y,U),Tv8(U,A))}; Nvc=function(){var U=cy;this.Y=jwX;this.isRepeated=0;this.T=QW;this.defaultValue=void 0;this.W=U.messageId!=null?wa:void 0}; tIY=function(U){return function(){var Y=new cD9;GHY(this.PZ,Y,MA(go,mS,yJ,U));X1(Y,Y.Y.end());for(var A=new Uint8Array(Y.T),c=Y.W,d=c.length,T=0,E=0;E-1)return Y.apply(null,g.X(A));try{return U.Y=U.W.Y.now(),Y.apply(null,g.X(A))}finally{U.j+=U.W.Y.now()-U.Y,U.Y=-1,U.T+=1}}}; BvY=function(U,Y){this.T=U;this.W=Y;this.Y=new eVS(U)}; X43=function(){this.Y={}}; RVX=function(){var U=zU().flags,Y=kHX;U=U.Y[Y.key];if(Y.valueType==="proto"){try{var A=JSON.parse(U);if(Array.isArray(A))return A}catch(c){}return Y.defaultValue}return typeof U===typeof Y.defaultValue?U:Y.defaultValue}; fRl=function(){this.W=void 0;this.T=this.J=0;this.K=-1;this.Jb=new La;rg(this.Jb,"mv",aRX).Y=!0;rg(this.Jb,"omid",$R);rg(this.Jb,"epoh",$R).Y=!0;rg(this.Jb,"epph",$R).Y=!0;rg(this.Jb,"umt",$R).Y=!0;rg(this.Jb,"phel",$R).Y=!0;rg(this.Jb,"phell",$R).Y=!0;rg(this.Jb,"oseid",xwl).Y=!0;var U=this.Jb;U.Y.sloi||(U.Y.sloi=new E8);U.Y.sloi.Y=!0;rg(this.Jb,"mm",Lx);rg(this.Jb,"ovms",sw4).Y=!0;rg(this.Jb,"xdi",$R).Y=!0;rg(this.Jb,"amp",$R).Y=!0;rg(this.Jb,"prf",$R).Y=!0;rg(this.Jb,"gtx",$R).Y=!0;rg(this.Jb, "mvp_lv",$R).Y=!0;rg(this.Jb,"ssmol",$R).Y=!0;rg(this.Jb,"fmd",$R).Y=!0;rg(this.Jb,"gen204simple",$R);this.Y=new BvY(Iw(),this.Jb);this.j=!1;this.flags=new X43}; zU=function(){return nC(fRl)}; hVc=function(U,Y,A,c){if(Math.random()<(c||U.Y))try{if(A instanceof pC)var d=A;else d=new pC,Mw(A,function(E,L){var r=d,l=r.j++;E=Qm(L,E);r.Y.push(l);r.T[l]=E}); var T=d.GN(U.T,"pagead2.googlesyndication.com","/pagead/gen_204?id="+Y+"&");T&&(Iw(),Fav(T))}catch(E){}}; SUc=function(U,Y,A){A=A===void 0?{}:A;this.error=U;this.meta=A;this.context=Y.context;this.msg=Y.message||"";this.id=Y.id||"jserror"}; MI8=function(){var U=U===void 0?g.Dc:U;return(U=U.performance)&&U.now&&U.timing?Math.floor(U.now()+U.timing.navigationStart):g.om()}; bC4=function(){var U=U===void 0?g.Dc:U;return(U=U.performance)&&U.now?U.now():null}; p43=function(U,Y,A){this.label=U;this.type=Y;this.value=A;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; lp=function(){var U=window;this.events=[];this.T=U||g.Dc;var Y=null;U&&(U.google_js_reporting_queue=U.google_js_reporting_queue||[],this.events=U.google_js_reporting_queue,Y=U.google_measure_js_timing);this.Y=rT()||(Y!=null?Y:Math.random()<1)}; Qw4=function(U){U&&Py&&rT()&&(Py.clearMarks("goog_"+U.label+"_"+U.uniqueId+"_start"),Py.clearMarks("goog_"+U.label+"_"+U.uniqueId+"_end"))}; ZC9=function(){var U=VR;this.Y=$O;this.LY="jserror";this.F6=!0;this.Wc=null;this.T=this.bj;this.Z5=U===void 0?null:U}; OCv=function(U,Y,A){var c=vy;return og(zU().Y.Y,function(){try{if(c.Z5&&c.Z5.Y){var d=c.Z5.start(U.toString(),3);var T=Y();c.Z5.end(d)}else T=Y()}catch(L){var E=c.F6;try{Qw4(d),E=c.T(U,new Hy(GU(L)),void 0,A)}catch(r){c.bj(217,r)}if(!E)throw L;}return T})()}; Wy=function(U,Y,A,c){return og(zU().Y.Y,function(){var d=g.SS.apply(0,arguments);return OCv(U,function(){return Y.apply(A,d)},c)})}; GU=function(U){var Y=U.toString();U.name&&Y.indexOf(U.name)==-1&&(Y+=": "+U.name);U.message&&Y.indexOf(U.message)==-1&&(Y+=": "+U.message);if(U.stack)a:{U=U.stack;var A=Y;try{U.indexOf(A)==-1&&(U=A+"\n"+U);for(var c;U!=c;)c=U,U=U.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");Y=U.replace(/\n */g,"\n");break a}catch(d){Y=A;break a}Y=void 0}return Y}; Hy=function(U){SUc.call(this,Error(U),{message:U})}; mwX=function(){lx&&typeof lx.google_measure_js_timing!="undefined"&&(lx.google_measure_js_timing||VR.disable())}; gJc=function(U){vy.Wc=function(Y){g.MF(U,function(A){A(Y)})}}; yDY=function(U,Y){return OCv(U,Y)}; wT=function(U,Y){return Wy(U,Y)}; ip=function(U,Y,A,c){vy.bj(U,Y,A,c)}; Jm=function(){return Date.now()-nJ3}; DwS=function(){var U=zU().W,Y=FB>=0?Jm()-FB:-1,A=jE?Jm()-NP:-1,c=tm>=0?Jm()-tm:-1;if(U==947190542)return 100;if(U==79463069)return 200;U=[2E3,4E3];var d=[250,500,1E3];ip(637,Error(),.001);var T=Y;A!=-1&&A1500&&c<4E3?500:E}; eE=function(U,Y,A,c){this.top=U;this.right=Y;this.bottom=A;this.left=c}; By=function(U){return U.right-U.left}; XB=function(U,Y){return U==Y?!0:U&&Y?U.top==Y.top&&U.right==Y.right&&U.bottom==Y.bottom&&U.left==Y.left:!1}; kO=function(U,Y,A){var c=new eE(0,0,0,0);this.time=U;this.volume=null;this.W=Y;this.Y=c;this.T=A}; Rg=function(U,Y,A,c,d,T,E,L){this.j=U;this.G=Y;this.W=A;this.J=c;this.Y=d;this.K=T;this.T=E;this.Z=L}; ufv=function(U){var Y=U!==U.top,A=U.top===PhX(U),c=-1,d=0;if(Y&&A&&U.top.mraid){c=3;var T=U.top.mraid}else c=(T=U.mraid)?Y?A?2:1:0:-1;T&&(T.IS_GMA_SDK||(d=2),fcY(IRc,function(E){return typeof T[E]==="function"})||(d=1)); return{JW:T,compatibility:d,XaY:c}}; Kk3=function(){var U=window.document;return U&&typeof U.elementFromPoint==="function"}; qU8=function(U,Y,A){if(U&&Y!==null&&Y!=Y.top){if(!Y.top)return new g.xn(-12245933,-12245933);Y=Y.top}try{return(A===void 0?0:A)?(new g.xn(Y.innerWidth,Y.innerHeight)).round():SOl(Y||window).round()}catch(c){return new g.xn(-12245933,-12245933)}}; sF=function(U,Y,A){try{if(U){if(!Y.top)return new eE(-12245933,-12245933,-12245933,-12245933);Y=Y.top}var c=qU8(U,Y,A),d=c.height,T=c.width;if(T===-12245933)return new eE(T,T,T,T);var E=Q7(Y.document);var L=bjX(E.Y);var r=L.x,l=L.y;return new eE(l,r+T,l+d,r)}catch(P){return new eE(-12245933,-12245933,-12245933,-12245933)}}; g.fx=function(U,Y,A,c){this.left=U;this.top=Y;this.width=A;this.height=c}; hm=function(U,Y){return U==Y?!0:U&&Y?U.left==Y.left&&U.width==Y.width&&U.top==Y.top&&U.height==Y.height:!1}; g.MP=function(U,Y,A){if(typeof Y==="string")(Y=SE(U,Y))&&(U.style[Y]=A);else for(var c in Y){A=U;var d=Y[c],T=SE(A,c);T&&(A.style[T]=d)}}; SE=function(U,Y){var A=Cxv[Y];if(!A){var c=vz8(Y);A=c;U.style[c]===void 0&&(c=(g.DH?"Webkit":bp?"Moz":null)+Gov(c),U.style[c]!==void 0&&(A=c));Cxv[Y]=A}return A}; g.px=function(U,Y){var A=U.style[vz8(Y)];return typeof A!=="undefined"?A:U.style[SE(U,Y)]||""}; QR=function(U,Y){var A=pR(U);return A.defaultView&&A.defaultView.getComputedStyle&&(U=A.defaultView.getComputedStyle(U,null))?U[Y]||U.getPropertyValue(Y)||"":""}; ZI=function(U,Y){return QR(U,Y)||(U.currentStyle?U.currentStyle[Y]:null)||U.style&&U.style[Y]}; g.mF=function(U,Y,A){if(Y instanceof g.RH){var c=Y.x;Y=Y.y}else c=Y,Y=A;U.style.left=g.OF(c,!1);U.style.top=g.OF(Y,!1)}; gT=function(U){try{return U.getBoundingClientRect()}catch(Y){return{left:0,top:0,right:0,bottom:0}}}; Up3=function(U){var Y=pR(U),A=ZI(U,"position"),c=A=="fixed"||A=="absolute";for(U=U.parentNode;U&&U!=Y;U=U.parentNode)if(U.nodeType==11&&U.host&&(U=U.host),A=ZI(U,"position"),c=c&&A=="static"&&U!=Y.documentElement&&U!=Y.body,!c&&(U.scrollWidth>U.clientWidth||U.scrollHeight>U.clientHeight||A=="fixed"||A=="absolute"||A=="relative"))return U;return null}; g.yR=function(U){var Y=pR(U),A=new g.RH(0,0);if(U==(Y?pR(Y):document).documentElement)return A;U=gT(U);Y=Q7(Y);Y=bjX(Y.Y);A.x=U.left+Y.x;A.y=U.top+Y.y;return A}; ApX=function(U,Y){var A=new g.RH(0,0),c=IH(pR(U));if(!Jq3(c,"parent"))return A;do{var d=c==Y?g.yR(U):Y_X(U);A.x+=d.x;A.y+=d.y}while(c&&c!=Y&&c!=c.parent&&(U=c.frameElement)&&(c=c.parent));return A}; g.nx=function(U,Y){U=cpY(U);Y=cpY(Y);return new g.RH(U.x-Y.x,U.y-Y.y)}; Y_X=function(U){U=gT(U);return new g.RH(U.left,U.top)}; cpY=function(U){if(U.nodeType==1)return Y_X(U);U=U.changedTouches?U.changedTouches[0]:U;return new g.RH(U.clientX,U.clientY)}; g.DI=function(U,Y,A){if(Y instanceof g.xn)A=Y.height,Y=Y.width;else if(A==void 0)throw Error("missing height argument");U.style.width=g.OF(Y,!0);U.style.height=g.OF(A,!0)}; g.OF=function(U,Y){typeof U=="number"&&(U=(Y?Math.round(U):U)+"px");return U}; g.Ig=function(U){var Y=dpX;if(ZI(U,"display")!="none")return Y(U);var A=U.style,c=A.display,d=A.visibility,T=A.position;A.visibility="hidden";A.position="absolute";A.display="inline";U=Y(U);A.display=c;A.position=T;A.visibility=d;return U}; dpX=function(U){var Y=U.offsetWidth,A=U.offsetHeight,c=g.DH&&!Y&&!A;return(Y===void 0||c)&&U.getBoundingClientRect?(U=gT(U),new g.xn(U.right-U.left,U.bottom-U.top)):new g.xn(Y,A)}; g.up=function(U,Y){U.style.display=Y?"":"none"}; Kx=function(U,Y){Y=Math.pow(10,Y);return Math.floor(U*Y)/Y}; Ta8=function(U){return new eE(U.top,U.right,U.bottom,U.left)}; EKc=function(U){var Y=U.top||0,A=U.left||0;return new eE(Y,A+(U.width||0),Y+(U.height||0),A)}; qP=function(U){return U!=null&&U>=0&&U<=1}; oK4=function(){var U=g.tF();return U?Cx("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(Y){return wg(U,Y)})||wg(U,"OMI/")&&!wg(U,"XiaoMi/")?!0:wg(U,"Presto")&&wg(U,"Linux")&&!wg(U,"X11")&&!wg(U,"Android")&&!wg(U,"Mobi"):!1}; zEV=function(){this.W=!SI(lx.top);this.isMobileDevice=JD()||IfS();var U=bx();this.domain=U.length>0&&U[U.length-1]!=null&&U[U.length-1].url!=null?g.tD(U[U.length-1].url)||"":"";this.Y=new eE(0,0,0,0);this.j=new g.xn(0,0);this.K=new g.xn(0,0);this.G=new eE(0,0,0,0);this.frameOffset=new g.RH(0,0);this.J=0;this.Z=!1;this.T=!(!lx||!ufv(lx).JW);this.update(lx)}; LWl=function(U,Y){Y&&Y.screen&&(U.j=new g.xn(Y.screen.width,Y.screen.height))}; rpY=function(U,Y){a:{var A=U.Y?new g.xn(By(U.Y),U.Y.getHeight()):new g.xn(0,0);Y=Y===void 0?lx:Y;Y!==null&&Y!=Y.top&&(Y=Y.top);var c=0,d=0;try{var T=Y.document,E=T.body,L=T.documentElement;if(T.compatMode=="CSS1Compat"&&L.scrollHeight)c=L.scrollHeight!=A.height?L.scrollHeight:L.offsetHeight,d=L.scrollWidth!=A.width?L.scrollWidth:L.offsetWidth;else{var r=L.scrollHeight,l=L.scrollWidth,P=L.offsetHeight,V=L.offsetWidth;L.clientHeight!=P&&(r=E.scrollHeight,l=E.scrollWidth,P=E.offsetHeight,V=E.offsetWidth); r>A.height?r>P?(c=r,d=l):(c=P,d=V):r0||U.Z)return!0;U=Iw().T.isVisible();var Y=wv(YW)===0;return U||Y}; U6=function(){return nC(zEV)}; c7=function(U){this.W=U;this.T=0;this.Y=null}; d2=function(U,Y,A){this.W=U;this.kE=A===void 0?"na":A;this.K=[];this.isInitialized=!1;this.j=new kO(-1,!0,this);this.Y=this;this.Z=Y;this.Pw=this.X=!1;this.QJ="uk";this.jX=!1;this.J=!0}; Ty=function(U,Y){g.Go(U.K,Y)||(U.K.push(Y),Y.yj(U.Y),Y.AQ(U.j),Y.WN()&&(U.X=!0))}; lWY=function(U){U=U.Y;U.Qw();U.u2();var Y=U6();Y.G=sF(!1,U.W,Y.isMobileDevice);rpY(U6(),U.W);U.j.Y=U.cn()}; PmS=function(U){U.X=U.K.length?Cx(U.K,function(Y){return Y.WN()}):!1}; VoX=function(U){var Y=g.FI(U.K);g.MF(Y,function(A){A.AQ(U.j)})}; E6=function(U){var Y=g.FI(U.K);g.MF(Y,function(A){A.yj(U.Y)}); U.Y!=U||VoX(U)}; oJ=function(U,Y,A,c){this.element=U;this.Y=new eE(0,0,0,0);this.W=null;this.J=new eE(0,0,0,0);this.T=Y;this.Jb=A;this.jX=c;this.ov=!1;this.timestamp=-1;this.X=new Rg(Y.j,this.element,this.Y,new eE(0,0,0,0),0,0,Jm(),0);this.K=void 0}; $p8=function(U,Y){return U.K?new eE(Math.max(Y.top+U.K.top,Y.top),Math.min(Y.left+U.K.right,Y.right),Math.min(Y.top+U.K.bottom,Y.bottom),Math.max(Y.left+U.K.left,Y.left)):Y.clone()}; zy=function(U){this.K=!1;this.Y=U;this.j=function(){}}; vKV=function(U,Y,A){this.W=A===void 0?0:A;this.T=U;this.Y=Y==null?"":Y}; H2X=function(U){switch(Math.trunc(U.W)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; G5E=function(U,Y){return U.WY.W?!1:U.TY.T?!1:typeof U.Ytypeof Y.Y?!1:U.Y0?c[A]-c[A-1]:c[A]})}; JB=function(){this.T=new v7;this.kE=this.Uv=0;this.dW=new $W;this.Hw=this.G=-1;this.qI=1E3;this.VJ=new v7([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.QJ=this.ov=-1}; Fj=function(U,Y){return Ba4(U.T,Y===void 0?!0:Y)}; j$=function(U,Y,A,c){var d=d===void 0?!1:d;A=Wy(c,A);W4(U,Y,A,{capture:d})}; tB=function(U,Y){Y=ND(Y);return Y===0?0:ND(U)/Y}; ND=function(U){return Math.max(U.bottom-U.top,0)*Math.max(U.right-U.left,0)}; XpE=function(U,Y){if(!U||!Y)return!1;for(var A=0;U!==null&&A++<100;){if(U===Y)return!0;try{if(U=U.parentElement||U){var c=pR(U),d=c&&IH(c),T=d&&d.frameElement;T&&(U=T)}}catch(E){break}}return!1}; klV=function(U,Y,A){if(!U||!Y)return!1;Y=U.clone().translate(-Y.left,-Y.top);U=(Y.left+Y.right)/2;Y=(Y.top+Y.bottom)/2;SI(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Kk3())return!1;U=window.document.elementFromPoint(U,Y);if(!U)return!1;Y=(Y=(Y=pR(A))&&Y.defaultView&&Y.defaultView.frameElement)&&XpE(Y,U);var c=U===A;U=!c&&U&&EU(U,function(d){return d===A}); return!(Y||c||U)}; Ry3=function(U,Y,A,c){return U6().W?!1:By(U)<=0||U.getHeight()<=0?!0:A&&c?yDY(208,function(){return klV(U,Y,A)}):!1}; e$=function(U,Y,A){g.p.call(this);this.position=aVv.clone();this.sD=this.M4();this.cH=-2;this.timeCreated=Date.now();this.Gw=-1;this.f4=Y;this.RN=null;this.wd=!1;this.fW=null;this.opacity=-1;this.requestSource=A;this.d7Y=!1;this.BH=function(){}; this.n$=function(){}; this.eD=new Oj3;this.eD.d$=U;this.eD.Y=U;this.F5=!1;this.LD={RK:null,pw:null};this.wZ=!0;this.U4=null;this.L7=this.ysY=!1;zU().J++;this.rV=this.Ws();this.K$=-1;this.fP=null;this.hasCompleted=this.knW=!1;this.Jb=new La;OYX(this.Jb);xzX(this);this.requestSource==1?lh(this.Jb,"od",1):lh(this.Jb,"od",0)}; xzX=function(U){U=U.eD.d$;var Y;if(Y=U&&U.getAttribute)Y=/-[a-z]/.test("googleAvInapp")?!1:s3Y&&U.dataset?"googleAvInapp"in U.dataset:U.hasAttribute?U.hasAttribute("data-"+Hj3()):!!U.getAttribute("data-"+Hj3());Y&&(U6().T=!0)}; Xj=function(U,Y){Y!=U.L7&&(U.L7=Y,U=U6(),Y?U.J++:U.J>0&&U.J--)}; fVv=function(U,Y){if(U.fP){if(Y.getName()===U.fP.getName())return;U.fP.dispose();U.fP=null}Y=Y.create(U.eD.Y,U.Jb,U.WN());if(Y=Y!=null&&Y.observe()?Y:null)U.fP=Y}; hy3=function(U,Y,A){if(!U.RN||U.f4==-1||Y.T===-1||U.RN.T===-1)return 0;U=Y.T-U.RN.T;return U>A?0:U}; S2V=function(U,Y,A){if(U.fP){U.fP.tA();var c=U.fP.X,d=c.j,T=d.Y;if(c.J!=null){var E=c.W;U.fW=new g.RH(E.left-T.left,E.top-T.top)}T=U.Kz()?Math.max(c.Y,c.K):c.Y;E={};d.volume!==null&&(E.volume=d.volume);d=U.uA(c);U.RN=c;U.cw(T,Y,A,!1,E,d,c.Z)}}; Mgv=function(U){if(U.wd&&U.U4){var Y=PG(U.Jb,"od")==1,A=U6().Y,c=U.U4,d=U.fP?U.fP.getName():"ns",T=U.fW,E=new g.xn(By(A),A.getHeight());A=U.Kz();U={jeY:d,fW:T,Pln:E,Kz:A,zN:U.rV.zN,h6Y:Y};if(Y=c.T){Y.tA();d=Y.X;T=d.j.Y;var L=E=null;d.J!=null&&T&&(E=d.W,E=new g.RH(E.left-T.left,E.top-T.top),L=new g.xn(T.right-T.left,T.bottom-T.top));d=A?Math.max(d.Y,d.K):d.Y;A={jeY:Y.getName(),fW:E,Pln:L,Kz:A,h6Y:!1,zN:d}}else A=null;A&&NaV(c,U,A)}}; bGc=function(U,Y,A){Y&&(U.BH=Y);A&&(U.n$=A)}; g.kW=function(){}; g.RJ=function(U){return{value:U,done:!1}}; ppX=function(){this.j=this.Y=this.W=this.T=this.K=0}; Q3c=function(U){var Y={};var A=g.om()-U.K;Y=(Y.ptlt=A,Y);(A=U.T)&&(Y.pnk=A);(A=U.W)&&(Y.pnc=A);(A=U.j)&&(Y.pnmm=A);(U=U.Y)&&(Y.pns=U);return Y}; ZG3=function(){pj.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; aJ=function(U){return qP(U.volume)&&U.volume>0}; xW=function(U,Y,A,c){A=A===void 0?!0:A;c=c===void 0?function(){return!0}:c; return function(d){var T=d[U];if(Array.isArray(T)&&c(d))return OG8(T,Y,A)}}; s6=function(U,Y){return function(A){return Y(A)?A[U]:void 0}}; mzV=function(U){return function(Y){for(var A=0;A0?T[d-1]+1:0,c+1).reduce(function(E,L){return E+L},0)})}; gZX=function(){this.T=this.Y=""}; y1E=function(){}; hB=function(U,Y){var A={};if(U!==void 0)if(Y!=null)for(var c in Y){var d=Y[c];c in Object.prototype||d!=null&&(A[c]=typeof d==="function"?d(U):U[d])}else g.cG(A,U);return lt(r2(new Lu,A))}; nZE=function(){var U={};this.T=(U.vs=[1,0],U.vw=[0,1],U.am=[2,2],U.a=[4,4],U.f=[8,8],U.bm=[16,16],U.b=[32,32],U.avw=[0,64],U.avs=[64,0],U.pv=[256,256],U.gdr=[0,512],U.p=[0,1024],U.r=[0,2048],U.m=[0,4096],U.um=[0,8192],U.ef=[0,16384],U.s=[0,32768],U.pmx=[0,16777216],U.mut=[33554432,33554432],U.umutb=[67108864,67108864],U.tvoff=[134217728,134217728],U);this.Y={};for(var Y in this.T)this.T[Y][1]>0&&(this.Y[Y]=0);this.W=0}; S$=function(U,Y){var A=U.T[Y],c=A[1];U.W+=A[0];c>0&&U.Y[Y]==0&&(U.Y[Y]=1)}; Dzc=function(U){var Y=g.nj(U.T),A=0,c;for(c in U.Y)g.Go(Y,c)&&U.Y[c]==1&&(A+=U.T[c][1],U.Y[c]=2);return A}; IV9=function(U){var Y=0,A;for(A in U.Y){var c=U.Y[A];if(c==1||c==2)Y+=U.T[A][1]}return Y}; MD=function(){this.Y=this.T=0}; bt=function(){JB.call(this);this.W=new $W;this.yJ=this.X=this.jX=0;this.Z=-1;this.i$=new $W;this.K=new $W;this.Y=new v7;this.J=this.j=-1;this.Pw=new $W;this.qI=2E3;this.eX=new MD;this.Ly=new MD;this.Zf=new MD}; pu=function(U,Y,A){var c=U.yJ;jE||A||U.Z==-1||(c+=Y-U.Z);return c}; uPX=function(){this.W=!1}; QM=function(U,Y){this.W=!1;this.j=U;this.X=Y;this.K=0}; Zb=function(U,Y){QM.call(this,U,Y);this.G=[]}; KA4=function(){}; O6=function(){}; g2=function(U,Y,A,c){oJ.call(this,U,Y,A,c)}; yM=function(U,Y,A){oJ.call(this,null,U,Y,A);this.Z=U.isActive();this.G=0}; nu=function(U){return[U.top,U.left,U.bottom,U.right]}; Db=function(U,Y,A,c,d,T){T=T===void 0?new O6:T;e$.call(this,Y,A,c);this.P$=d;this.vy=0;this.bl={};this.h_=new nZE;this.vF={};this.FP="";this.Zf=null;this.Tk=!1;this.Y=[];this.zB=T.T();this.J=T.W();this.j=null;this.W=-1;this.kE=this.X=void 0;this.Hw=this.Pw=0;this.QJ=-1;this.qI=this.Ly=!1;this.jX=this.Z=this.T=this.nO=this.ws=0;new v7;this.eX=this.yJ=0;this.dW=-1;this.EO=0;this.G=g.Vm;this.ov=[this.M4()];this.R1=2;this.Xt={};this.Xt.pause="p";this.Xt.resume="r";this.Xt.skip="s";this.Xt.mute="m";this.Xt.unmute= "um";this.Xt.exitfullscreen="ef";this.K=null;this.VJ=this.i$=!1;this.AP=Math.floor(Date.now()/1E3-1704067200);this.Uv=0}; IJ=function(U){U.hasCompleted=!0;U.EO!=0&&(U.EO=3)}; ut=function(U){return U===void 0?U:Number(U)?Kx(U,3):0}; Ku=function(U,Y){return U.ov[Y!=null&&YMath.max(1E4,U.W/3)?0:Y);var A=U.G(U)||{};A=A.currentTime!==void 0?A.currentTime:U.Pw;var c=A-U.Pw,d=0;c>=0?(U.Hw+=Y,U.eX+=Math.max(Y-c,0),d=Math.min(c,U.Hw)):U.yJ+=Math.abs(c);c!=0&&(U.Hw=0);U.dW==-1&&c>0&&(U.dW=tm>=0?Jm()-tm:-1);U.Pw=A;return d}; UAE=function(U,Y){Cx(U.J,function(A){return A.j==Y.j})||U.J.push(Y)}; YYX=function(U){var Y=W7(U.Bg().Y,1);return qD(U,Y)}; qD=function(U,Y,A){return Y>=15E3?!0:U.Ly?(A===void 0?0:A)?!0:U.W>0?Y>=U.W/2:U.QJ>0?Y>=U.QJ:!1:!1}; A78=function(U){var Y=Kx(U.rV.zN,2),A=U.h_.W,c=U.rV,d=Ku(U),T=ut(d.j),E=ut(d.J),L=ut(c.volume),r=Kx(d.G,2),l=Kx(d.Hw,2),P=Kx(c.zN,2),V=Kx(d.ov,2),v=Kx(d.QJ,2);c=Kx(c.Yi,2);var H=U.i8().clone().round();U=U.fP&&U.fP.W?(U.fP?U.fP.W:null).clone().round():null;d=Fj(d,!1);return{w5Y:Y,XI:A,QD:T,Y7:E,r3:L,Fh:r,x7:l,zN:P,UD:V,oQ:v,Yi:c,position:H,ND:U,e5:d}}; dAE=function(U,Y){c7X(U.Y,Y,function(){return{w5Y:0,XI:void 0,QD:-1,Y7:-1,r3:-1,Fh:-1,x7:-1,zN:-1,UD:-1,oQ:-1,Yi:-1,position:void 0,ND:void 0,e5:[]}}); U.Y[Y]=A78(U)}; c7X=function(U,Y,A){for(var c=U.length;c0?1:0;V.atos= H7(l.Y);V.ssb=H7(l.VJ,!1);V.amtos=Ba4(l.Y,!1);V.uac=U.ws;V.vpt=l.W.Y;P=="nio"&&(V.nio=1,V.avms="nio");V.gmm="4";V.gdr=qD(U,l.W.Y,!0)?1:0;V.efpf=U.R1;if(P=="gsv"||P=="nis")P=U.fP,P.G>0&&(V.nnut=P.G);V.tcm=q2c(U);V.nmt=U.yJ;V.bt=U.eX;V.pst=U.dW;V.vpaid=U.X;V.dur=U.W;V.vmtime=U.Pw;V.is=U.h_.W;U.Y.length>=1&&(V.i0=U.Y[0].XI,V.a0=[U.Y[0].r3],V.c0=[U.Y[0].zN],V.ss0=[U.Y[0].Yi],P=U.Y[0].position,T=U.Y[0].ND,V.p0=P?nu(P):void 0,P&&T&&!XB(T,P)&&(V.cp0=nu(T)));U.Y.length>=2&&(V.i1=U.Y[1].XI,V.a1=Yt(U.Y[1].QD, U.Y[1].r3,U.Y[1].Y7),V.c1=Yt(U.Y[1].Fh,U.Y[1].zN,U.Y[1].x7),V.ss1=Yt(U.Y[1].UD,U.Y[1].Yi,U.Y[1].oQ),P=U.Y[1].position,T=U.Y[1].ND,V.p1=P?nu(P):void 0,P&&T&&!XB(T,P)&&(V.cp1=nu(T)),V.mtos1=U.Y[1].e5);U.Y.length>=3&&(V.i2=U.Y[2].XI,V.a2=Yt(U.Y[2].QD,U.Y[2].r3,U.Y[2].Y7),V.c2=Yt(U.Y[2].Fh,U.Y[2].zN,U.Y[2].x7),V.ss2=Yt(U.Y[2].UD,U.Y[2].Yi,U.Y[2].oQ),P=U.Y[2].position,T=U.Y[2].ND,V.p2=P?nu(P):void 0,P&&T&&!XB(T,P)&&(V.cp2=nu(T)),V.mtos2=U.Y[2].e5);U.Y.length>=4&&(V.i3=U.Y[3].XI,V.a3=Yt(U.Y[3].QD,U.Y[3].r3, U.Y[3].Y7),V.c3=Yt(U.Y[3].Fh,U.Y[3].zN,U.Y[3].x7),V.ss3=Yt(U.Y[3].UD,U.Y[3].Yi,U.Y[3].oQ),P=U.Y[3].position,T=U.Y[3].ND,V.p3=P?nu(P):void 0,P&&T&&!XB(T,P)&&(V.cp3=nu(T)),V.mtos3=U.Y[3].e5);V.cs=IV9(U.h_);Y&&(V.ic=Dzc(U.h_),V.dvpt=l.W.T,V.dvs=it(l.T,.5),V.dfvs=it(l.T,1),V.davs=it(l.Y,.5),V.dafvs=it(l.Y,1),A&&(l.W.T=0,eyX(l.T),eyX(l.Y)),U.cK()&&(V.dtos=l.jX,V.dav=l.X,V.dtoss=U.vy+1,A&&(l.jX=0,l.X=0,U.vy++)),V.dat=l.K.T,V.dft=l.Pw.T,A&&(l.K.T=0,l.Pw.T=0));V.ps=[L.K.width,L.K.height];V.bs=[By(L.Y),L.Y.getHeight()]; V.scs=[L.j.width,L.j.height];V.dom=L.domain;U.nO&&(V.vds=U.nO);if(U.J.length>0||U.zB)Y=g.FI(U.J),U.zB&&Y.push(U.zB),V.pings=g.mk(Y,function(v){return v.toString()}); Y=g.mk(g.fu(U.J,function(v){return v.J()}),function(v){return v.getId()}); BXY(Y);V.ces=Y;U.T&&(V.vmer=U.T);U.Z&&(V.vmmk=U.Z);U.jX&&(V.vmiec=U.jX);V.avms=U.fP?U.fP.getName():"ns";U.fP&&g.cG(V,U.fP.XE());c?(V.c=Kx(U.rV.zN,2),V.ss=Kx(U.rV.Yi,2)):V.tth=Jm()-zJV;V.mc=Kx(l.Hw,2);V.nc=Kx(l.G,2);V.mv=ut(l.J);V.nv=ut(l.j);V.lte=Kx(U.cH,2);c=Ku(U,d);Fj(l);V.qmtos=Fj(c);V.qnc=Kx(c.G,2);V.qmv=ut(c.J);V.qnv=ut(c.j);V.qas=c.j>0?1:0;V.qi=U.FP;V.avms||(V.avms="geo");V.psm=l.eX.Y;V.psv=l.eX.getValue();V.psfv=l.Ly.getValue();V.psa=l.Zf.getValue();r=QcV(r.Jb);r.length&&(V.veid=r);U.K&&g.cG(V, Q3c(U.K));V.avas=U.B8();V.vs=U.mO();V.co=LSc(U);V.tm=l.Uv;V.tu=l.kE;return V}; To3=function(U,Y){if(g.Go(r7E,Y))return!0;var A=U.bl[Y];return A!==void 0?(U.bl[Y]=!0,!A):!1}; LSc=function(U){var Y=U.Uv.toString(10).padStart(2,"0");Y=""+U.AP+Y;U.Uv<99&&U.Uv++;return Y}; Pkc=function(){this.Y={};var U=IH();A6(this,U,document);var Y=lpl();try{if("1"==Y){for(var A=U.parent;A!=U.top;A=A.parent)A6(this,A,A.document);A6(this,U.top,U.top.document)}}catch(c){}}; lpl=function(){var U=document.documentElement;try{if(!SI(IH().top))return"2";var Y=[],A=IH(U.ownerDocument);for(U=A;U!=A.top;U=U.parent)if(U.frameElement)Y.push(U.frameElement);else break;return Y&&Y.length!=0?"1":"0"}catch(c){return"2"}}; A6=function(U,Y,A){j$(A,"mousedown",function(){return VPS(U)},301); j$(Y,"scroll",function(){return $AY(U)},302); j$(A,"touchmove",function(){return vHV(U)},303); j$(A,"mousemove",function(){return H6Y(U)},304); j$(A,"keydown",function(){return Gel(U)},305)}; VPS=function(U){g.QY(U.Y,function(Y){Y.W>1E5||++Y.W})}; $AY=function(U){g.QY(U.Y,function(Y){Y.Y>1E5||++Y.Y})}; vHV=function(U){g.QY(U.Y,function(Y){Y.Y>1E5||++Y.Y})}; Gel=function(U){g.QY(U.Y,function(Y){Y.T>1E5||++Y.T})}; H6Y=function(U){g.QY(U.Y,function(Y){Y.j>1E5||++Y.j})}; WSc=function(){this.Y=[];this.T=[]}; co=function(U,Y){return g.$z(U.Y,function(A){return A.FP==Y})}; wcc=function(U,Y){return Y?g.$z(U.Y,function(A){return A.eD.d$==Y}):null}; i6E=function(U,Y){return g.$z(U.T,function(A){return A.K4()==2&&A.FP==Y})}; TJ=function(){var U=dd;return U.Y.length==0?U.T:U.T.length==0?U.Y:g.Jq(U.T,U.Y)}; J74=function(U,Y){U=Y.K4()==1?U.Y:U.T;var A=VY(U,function(c){return c==Y}); return A!=-1?(U.splice(A,1),Y.fP&&Y.fP.unobserve(),Y.dispose(),!0):!1}; FSl=function(U){var Y=dd;if(J74(Y,U)){switch(U.K4()){case 0:var A=function(){return null}; case 2:A=function(){return i6E(Y,U.FP)}; break;case 1:A=function(){return co(Y,U.FP)}}for(var c=A();c;c=A())J74(Y,c)}}; jxX=function(U){var Y=dd;U=g.fu(U,function(A){return!wcc(Y,A.eD.d$)}); Y.Y.push.apply(Y.Y,g.X(U))}; Noc=function(U){var Y=[];g.MF(U,function(A){Cx(dd.Y,function(c){return c.eD.d$===A.eD.d$&&c.FP===A.FP})||(dd.Y.push(A),Y.push(A))})}; ER=function(){this.Y=this.T=null}; oq=function(U){return U.Y!=null}; tPS=function(U,Y){function A(c,d){Y(c,d)} if(U.T==null)return!1;U.Y=g.$z(U.T,function(c){return c!=null&&c.FR()}); U.Y&&(U.Y.init(A)?lWY(U.Y.Y):Y(U.Y.Y.DL(),U.Y));return U.Y!=null}; zJ=function(U){U=eJE(U);zy.call(this,U.length?U[U.length-1]:new d2(lx,0));this.W=U;this.T=null}; eJE=function(U){if(!U.length)return[];U=(0,g.fu)(U,function(A){return A!=null&&A.bk()}); for(var Y=1;YA.time?Y:A},U[0])}; Po=function(U){U=U===void 0?lx:U;zy.call(this,new d2(U,2))}; VN=function(){var U=RJc();d2.call(this,lx.top,U,"geo")}; RJc=function(){zU();var U=U6();return U.W||U.T?0:2}; ap8=function(){}; $t=function(){this.done=!1;this.Y={Nu:0,yy:0,SBE:0,tF:0,hk:-1,g6:0,ym:0,cj:0,v4Y:0};this.K=null;this.J=!1;this.W=null;this.G=0;this.T=new c7(this)}; Ho=function(){var U=vo;U.J||(U.J=!0,xA3(U,function(){return U.j.apply(U,g.X(g.SS.apply(0,arguments)))}),U.j())}; sxX=function(){nC(ap8);var U=nC(ER);oq(U)&&U.Y.Y?lWY(U.Y.Y):U6().update(lx)}; GJ=function(U,Y,A){if(!U.done&&(U.T.cancel(),Y.length!=0)){U.W=null;try{sxX();var c=Jm();zU().K=c;if(oq(nC(ER)))for(var d=0;d=0?Jm()-FB:-1,L=Jm();d.Y.hk==-1&&(E=L);var r=U6(),l=zU(),P=V9(l.Jb),V=TJ();try{if(V.length>0){var v=r.Y;v&&(P.bs=[By(v),v.getHeight()]);var H=r.K;H&&(P.ps=[H.width,H.height]);lx.screen&&(P.scs=[lx.screen.width,lx.screen.height])}else P.url=encodeURIComponent(lx.location.href.substring(0,512)),T.referrer&&(P.referrer=encodeURIComponent(T.referrer.substring(0,512))); P.tt=E;P.pt=FB;P.bin=l.T;lx.google_osd_load_pub_page_exp!==void 0&&(P.olpp=lx.google_osd_load_pub_page_exp);P.deb=[1,d.Y.Nu,d.Y.yy,d.Y.tF,d.Y.hk,0,d.T.T,d.Y.g6,d.Y.ym,d.Y.cj,d.Y.v4Y,-1].join(";");P.tvt=hJY(d,L);r.T&&(P.inapp=1);if(lx!==null&&lx!=lx.top){V.length>0&&(P.iframe_loc=encodeURIComponent(lx.location.href.substring(0,512)));var G=r.G;P.is=[By(G),G.getHeight()]}}catch(F){P.error=1}vo.W=P}v=g.YR(vo.W);H=zU().Y;PG(H.W,"prf")==1?(G=new EF,d=H.Y,T=0,d.Y>-1&&(T=d.W.Y.now()-d.Y),G=R3(G,1,s_(d.j+ T),0),d=H.Y,G=R3(G,5,Mp(d.Y>-1?d.T+1:d.T),0),G=R3(G,2,yQ(H.T.Y.W()),"0"),G=R3(G,3,yQ(H.T.Y.T()),"0"),H=R3(G,4,yQ(H.T.Y.Y()),"0"),G={},H=(G.pf=g.U_(H.T()),G)):H={};g.cG(v,H);g.cG(Y,c,A,v,U())}])}; b63=function(){var U=MP9||lx;if(!U)return"";var Y=[];if(!U.location||!U.location.href)return"";Y.push("url="+encodeURIComponent(U.location.href.substring(0,512)));U.document&&U.document.referrer&&Y.push("referrer="+encodeURIComponent(U.document.referrer.substring(0,512)));return Y.join("&")}; Wo=function(){var U="youtube.player.web_20250422_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250422_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250422_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250422_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),Y;if(((Y=U)==null?void 0:Y.length)==2)return U[1];U="youtube.player.web_20250422_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var A;return((A=U)==null?void 0:A.length)==3?"20"+U[1]+U[2]:null}; pcX=function(){return"av.default_js".includes("ima_html5_sdk")?{Ty:"ima",Wf:null}:"av.default_js".includes("ima_native_sdk")?{Ty:"nima",Wf:null}:"av.default_js".includes("admob-native-video-javascript")?{Ty:"an",Wf:null}:"youtube.player.web_20250422_22_RC00".includes("cast_js_sdk")?{Ty:"cast",Wf:Wo()}:"youtube.player.web_20250422_22_RC00".includes("youtube.player.web")?{Ty:"yw",Wf:Wo()}:"youtube.player.web_20250422_22_RC00".includes("outstream_web_client")?{Ty:"out",Wf:Wo()}:"youtube.player.web_20250422_22_RC00".includes("drx_rewarded_web")? {Ty:"r",Wf:Wo()}:"youtube.player.web_20250422_22_RC00".includes("gam_native_web_video")?{Ty:"n",Wf:Wo()}:"youtube.player.web_20250422_22_RC00".includes("admob_interstitial_video")?{Ty:"int",Wf:Wo()}:{Ty:"j",Wf:null}}; J6=function(U,Y){var A={sv:"966"};wd!==null&&(A.v=wd);A.cb=Qxv;A.nas=dd.Y.length;A.msg=U;Y!==void 0&&(U=Z6X(Y))&&(A.e=ia[U]);return A}; F$=function(U){return vG(U,"custom_metric_viewable")}; Z6X=function(U){var Y=F$(U)?"custom_metric_viewable":U.toLowerCase();return Kj(Cu,function(A){return A==Y})}; O68=function(){this.Y=void 0;this.T=!1;this.W=0;this.j=-1;this.K="tos"}; y73=function(U){try{var Y=U.split(",");return Y.length>g.nj(mAX).length?null:ym(Y,function(A,c){c=c.toLowerCase().split("=");if(c.length!=2||gHY[c[0]]===void 0||!gHY[c[0]](c[1]))throw Error("Entry ("+c[0]+", "+c[1]+") is invalid.");A[c[0]]=c[1];return A},{})}catch(A){return null}}; nH8=function(U,Y){if(U.Y==void 0)return 0;switch(U.K){case "mtos":return U.T?w2(Y.Y,U.Y):w2(Y.T,U.Y);case "tos":return U.T?W7(Y.Y,U.Y):W7(Y.T,U.Y)}return 0}; jC=function(U,Y,A,c){QM.call(this,Y,c);this.G=U;this.Z=A}; Nn=function(){}; t6=function(U){QM.call(this,"fully_viewable_audible_half_duration_impression",U)}; eC=function(U){this.Y=U}; Bo=function(U,Y){QM.call(this,U,Y)}; X$=function(U){Zb.call(this,"measurable_impression",U)}; kt=function(){eC.apply(this,arguments)}; Rq=function(U,Y,A){yM.call(this,U,Y,A)}; aq=function(U){U=U===void 0?lx:U;zy.call(this,new d2(U,2))}; xt=function(U,Y,A){yM.call(this,U,Y,A)}; sR=function(U){U=U===void 0?lx:U;zy.call(this,new d2(U,2))}; fi=function(){d2.call(this,lx,2,"mraid");this.eX=0;this.Hw=this.ov=!1;this.G=null;this.T=ufv(this.W);this.j.Y=new eE(0,0,0,0);this.Uv=!1}; h6=function(U,Y,A){U.vU("addEventListener",Y,A)}; KSc=function(U){zU().j=!!U.vU("isViewable");h6(U,"viewableChange",DAc);U.vU("getState")==="loading"?h6(U,"ready",Ipc):u1X(U)}; u1X=function(U){typeof U.T.JW.AFMA_LIDAR==="string"?(U.ov=!0,qYX(U)):(U.T.compatibility=3,U.G="nc",U.x5("w"))}; qYX=function(U){U.Hw=!1;var Y=PG(zU().Jb,"rmmt")==1,A=!!U.vU("isViewable");(Y?!A:1)&&Iw().setTimeout(wT(524,function(){U.Hw||(Ck8(U),ip(540,Error()),U.G="mt",U.x5("w"))}),500); UP3(U);h6(U,U.T.JW.AFMA_LIDAR,YFS)}; UP3=function(U){var Y=PG(zU().Jb,"sneio")==1,A=U.T.JW.AFMA_LIDAR_EXP_1!==void 0,c=U.T.JW.AFMA_LIDAR_EXP_2!==void 0;(Y=Y&&c)&&(U.T.JW.AFMA_LIDAR_EXP_2=!0);A&&(U.T.JW.AFMA_LIDAR_EXP_1=!Y)}; Ck8=function(U){U.vU("removeEventListener",U.T.JW.AFMA_LIDAR,YFS);U.ov=!1}; AmY=function(U,Y){if(U.vU("getState")==="loading")return new g.xn(-1,-1);Y=U.vU(Y);if(!Y)return new g.xn(-1,-1);U=parseInt(Y.width,10);Y=parseInt(Y.height,10);return isNaN(U)||isNaN(Y)?new g.xn(-1,-1):new g.xn(U,Y)}; Ipc=function(){try{var U=nC(fi);U.vU("removeEventListener","ready",Ipc);u1X(U)}catch(Y){ip(541,Y)}}; YFS=function(U,Y){try{var A=nC(fi);A.Hw=!0;var c=U?new eE(U.y,U.x+U.width,U.y+U.height,U.x):new eE(0,0,0,0);var d=Jm(),T=AB();var E=new kO(d,T,A);E.Y=c;E.volume=Y;A.AQ(E)}catch(L){ip(542,L)}}; DAc=function(U){var Y=zU(),A=nC(fi);U&&!Y.j&&(Y.j=!0,A.Uv=!0,A.G&&A.x5("w",!0))}; SC=function(){this.isInitialized=!1;this.Y=this.T=null;var U={};this.G=(U.start=this.xIw,U.firstquartile=this.wwY,U.midpoint=this.HyX,U.thirdquartile=this.oEs,U.complete=this.XV,U.error=this.MXY,U.pause=this.wI,U.resume=this.Sx,U.skip=this.TWE,U.viewable_impression=this.e4,U.mute=this.El,U.unmute=this.El,U.fullscreen=this.PYX,U.exitfullscreen=this.iyI,U.fully_viewable_audible_half_duration_impression=this.e4,U.measurable_impression=this.e4,U.abandon=this.wI,U.engagedview=this.e4,U.impression=this.e4, U.creativeview=this.e4,U.progress=this.El,U.custom_metric_viewable=this.e4,U.bufferstart=this.wI,U.bufferfinish=this.Sx,U.audio_measurable=this.e4,U.audio_audible=this.e4,U);U={};this.Z=(U.overlay_resize=this.Yvy,U.abandon=this.Np,U.close=this.Np,U.collapse=this.Np,U.overlay_unmeasurable_impression=function(Y){return UR(Y,"overlay_unmeasurable_impression",AB())},U.overlay_viewable_immediate_impression=function(Y){return UR(Y,"overlay_viewable_immediate_impression",AB())},U.overlay_unviewable_impression= function(Y){return UR(Y,"overlay_unviewable_impression",AB())},U.overlay_viewable_end_of_session_impression=function(Y){return UR(Y,"overlay_viewable_end_of_session_impression",AB())},U); zU().T=3;cmV(this);this.W=null}; Mn=function(U,Y,A,c){U=U.tZ(null,c,!0,Y);U.j=A;jxX([U]);return U}; dP8=function(U,Y,A){scX(Y);var c=U.Y;g.MF(Y,function(d){var T=g.mk(d.criteria,function(E){var L=y73(E);if(L==null)E=null;else if(E=new O68,L.visible!=null&&(E.Y=L.visible/100),L.audible!=null&&(E.T=L.audible==1),L.time!=null){var r=L.timetype=="mtos"?"mtos":"tos",l=m43(L.time,"%")?"%":"ms";L=parseInt(L.time,10);l=="%"&&(L/=100);E.setTime(L,l,r)}return E}); Cx(T,function(E){return E==null})||UAE(A,new jC(d.id,d.event,T,c))})}; TTX=function(){var U=[],Y=zU();U.push(nC(VN));PG(Y.Jb,"mvp_lv")&&U.push(nC(fi));Y=[new aq,new sR];Y.push(new zJ(U));Y.push(new Po(lx));return Y}; EOE=function(U){if(!U.isInitialized){U.isInitialized=!0;try{var Y=Jm(),A=zU(),c=U6();FB=Y;A.W=79463069;U.T!=="o"&&(MP9=PhX(lx));if(jt4()){vo.Y.yy=0;vo.Y.hk=Jm()-Y;var d=TTX(),T=nC(ER);T.T=d;tPS(T,function(){ba()})?vo.done||(fp3(),Ty(T.Y.Y,U),Ho()):c.W?ba():Ho()}else pi=!0}catch(E){throw dd.reset(),E; }}}; ZO=function(U){vo.T.cancel();QN=U;vo.done=!0}; ni=function(U){if(U.T)return U.T;var Y=nC(ER).Y;if(Y)switch(Y.getName()){case "nis":U.T="n";break;case "gsv":U.T="m"}U.T||(U.T="h");return U.T}; DO=function(U,Y,A){if(U.Y==null)return Y.nO|=4,!1;U=oO8(U.Y,A,Y);Y.nO|=U;return U==0}; ba=function(){var U=[new Po(lx)],Y=nC(ER);Y.T=U;tPS(Y,function(){ZO("i")})?vo.done||(fp3(),Ho()):ZO("i")}; zO9=function(U,Y){if(!U.Tk){var A=UR(U,"start",AB());A=U.P$.Y(A).Y;var c={id:"lidarv"};c.r=Y;c.sv="966";wd!==null&&(c.v=wd);Xf(A,function(d,T){return c[d]=d=="mtos"||d=="tos"?T:encodeURIComponent(T)}); Y=b63();Xf(Y,function(d,T){return c[d]=encodeURIComponent(T)}); Y="//pagead2.googlesyndication.com/pagead/gen_204?"+lt(r2(new Lu,c));FW3(Y);U.Tk=!0}}; Iq=function(U,Y,A){GJ(vo,[U],!AB());dAE(U,A);A!=4&&c7X(U.ov,A,U.M4);return UR(U,Y,AB())}; cmV=function(U){SY9(function(){var Y=LF4();U.T!=null&&(Y.sdk=U.T);var A=nC(ER);oq(A)&&(Y.avms=A.Y.getName());return Y})}; rmv=function(U,Y,A,c){var d=wcc(dd,A);d!==null&&d.FP!==Y&&(U.D1(d),d=null);d||(Y=U.tZ(A,Jm(),!1,Y),dd.T.length==0&&(zU().W=79463069),Noc([Y]),d=Y,d.j=ni(U),c&&(d.Zf=c));return d}; lIV=function(U,Y){var A=U[Y];A!==void 0&&A>0&&(U[Y]=Math.floor(A*1E3))}; LF4=function(){var U=U6(),Y={},A={},c={};return Object.assign({},(Y.sv="966",Y),wd!==null&&(A.v=wd,A),(c["if"]=U.W?"1":"0",c.nas=String(dd.Y.length),c))}; ua=function(U){QM.call(this,"audio_audible",U)}; Ki=function(U){Zb.call(this,"audio_measurable",U)}; qn=function(){eC.apply(this,arguments)}; Ci=function(){}; Ppc=function(U){this.Y=U}; oO8=function(U,Y,A){U=U.T();if(typeof U==="function"){var c={};var d={};c=Object.assign({},wd!==null&&(c.v=wd,c),(d.sv="966",d.cb=Qxv,d.e=VEl(Y),d));d=UR(A,Y,AB());g.cG(c,d);A.vF[Y]=d;c=A.K4()==2?JpS(c).join("&"):A.P$.Y(c).Y;try{return U(A.FP,c,Y),0}catch(T){return 2}}else return 1}; VEl=function(U){var Y=F$(U)?"custom_metric_viewable":U;U=Kj(Cu,function(A){return A==Y}); return ia[U]}; UT=function(){SC.call(this);this.J=null;this.K=!1;this.j="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; $PX=function(U,Y,A){A=A.opt_configurable_tracking_events;U.Y!=null&&Array.isArray(A)&&dP8(U,A,Y)}; vOl=function(U,Y,A){var c=co(dd,Y);c||(c=A.opt_nativeTime||-1,c=Mn(U,Y,ni(U),c),A.opt_osdId&&(c.Zf=A.opt_osdId));return c}; HxX=function(U,Y,A){var c=co(dd,Y);c||(c=Mn(U,Y,"n",A.opt_nativeTime||-1));return c}; GUc=function(U,Y){var A=co(dd,Y);A||(A=Mn(U,Y,"h",-1));return A}; WFX=function(U){zU();switch(ni(U)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; Jm8=function(U,Y,A,c){A=A===void 0?{}:A;var d={};g.cG(d,{opt_adElement:void 0,opt_fullscreen:void 0},A);var T=U.A5(Y,A);A=T?T.P$:U.ir();if(d.opt_bounds)return A.Y(J6("ol",c));if(c!==void 0)if(Z6X(c)!==void 0)if(pi)U=J6("ue",c);else if(EOE(U),QN=="i")U=J6("i",c),U["if"]=0;else if(Y=U.A5(Y,d)){b:{QN=="i"&&(Y.F5=!0);T=d.opt_fullscreen;T!==void 0&&Xj(Y,!!T);var E;if(T=!U6().T)(T=wg(g.tF(),"CrKey")&&!(wg(g.tF(),"CrKey")&&wg(g.tF(),"SmartSpeaker"))||wg(g.tF(),"PlayStation")||wg(g.tF(),"Roku")||oK4()||wg(g.tF(), "Xbox"))||(T=g.tF(),T=wg(T,"AppleTV")||wg(T,"Apple TV")||wg(T,"CFNetwork")||wg(T,"tvOS")),T||(T=g.tF(),T=wg(T,"sdk_google_atv_x86")||wg(T,"Android TV")),T=!T;T&&(Iw(),T=wv(YW)===0);if(E=T){switch(Y.K4()){case 1:zO9(Y,"pv");break;case 2:U.Sw(Y)}ZO("pv")}T=c.toLowerCase();if(E=!E)E=PG(zU().Jb,"ssmol")&&T==="loaded"?!1:g.Go(wyE,T);if(E&&Y.EO==0){QN!="i"&&(vo.done=!1);E=d!==void 0?d.opt_nativeTime:void 0;tm=E=typeof E==="number"?E:Jm();Y.wd=!0;var L=AB();Y.EO=1;Y.bl={};Y.bl.start=!1;Y.bl.firstquartile= !1;Y.bl.midpoint=!1;Y.bl.thirdquartile=!1;Y.bl.complete=!1;Y.bl.resume=!1;Y.bl.pause=!1;Y.bl.skip=!1;Y.bl.mute=!1;Y.bl.unmute=!1;Y.bl.viewable_impression=!1;Y.bl.measurable_impression=!1;Y.bl.fully_viewable_audible_half_duration_impression=!1;Y.bl.fullscreen=!1;Y.bl.exitfullscreen=!1;Y.vy=0;L||(Y.Bg().Z=E);GJ(vo,[Y],!L)}(E=Y.Xt[T])&&S$(Y.h_,E);PG(zU().Jb,"fmd")||g.Go(ixX,T)&&Y.zB&&Y.zB.T(Y,null);switch(Y.K4()){case 1:var r=F$(T)?U.G.custom_metric_viewable:U.G[T];break;case 2:r=U.Z[T]}if(r&&(c=r.call(U, Y,d,c),PG(zU().Jb,"fmd")&&g.Go(ixX,T)&&Y.zB&&Y.zB.T(Y,null),c!==void 0)){d=J6(void 0,T);g.cG(d,c);c=d;break b}c=void 0}Y.EO==3&&U.D1(Y);U=c}else U=J6("nf",c);else U=void 0;else pi?U=J6("ue"):T?(U=J6(),g.cG(U,EHE(T,!0,!1,!1))):U=J6("nf");return typeof U==="string"?A.Y():A.Y(U)}; FF4=function(U,Y){Y&&(U.j=Y)}; jgE=function(U){var Y={};return Y.viewability=U.Y,Y.googleViewability=U.T,Y}; NTY=function(U,Y,A){A=A===void 0?{}:A;U=Jm8(nC(UT),Y,A,U);return jgE(U)}; Y3=function(U,Y){return(U=(new RegExp("[^#]*[?&]"+Y+"=([^&#]*)")).exec(U))?U[1]:null}; AY=function(U){var Y=g.SS.apply(1,arguments).filter(Boolean).join("&");if(!Y)return U;var A=U.match(/[?&]adurl=/);return A?U.slice(0,A.index+1)+Y+"&"+U.slice(A.index+1):U+(U.indexOf("?")<0?"?":"&")+Y}; cr=function(U,Y){return Y?"&"+U+"="+encodeURIComponent(Y):""}; tE8=function(U){var Y=U.url;U=U.H0s;this.Y=Y;this.W=U;this.T=(new Date).getTime()-17040672E5}; eOX=function(U){U=U.W;if(!U)return"";var Y=cr("uap",U.platform)+cr("uapv",U.platformVersion)+cr("uafv",U.uaFullVersion)+cr("uaa",U.architecture)+cr("uam",U.model)+cr("uab",U.bitness);U.fullVersionList&&(Y+="&uafvl="+encodeURIComponent(U.fullVersionList.map(function(A){return encodeURIComponent(A.brand)+";"+encodeURIComponent(A.version)}).join("|"))); U.wow64!=null&&(Y+="&uaw="+Number(U.wow64));return Y.slice(1)}; kU3=function(U,Y,A,c,d){var T=window;var E=E===void 0?!1:E;var L;A?L=(E===void 0?0:E)?"//ep1.adtrafficquality.google/bg/"+Hi(A)+".js":"//pagead2.googlesyndication.com/bg/"+Hi(A)+".js":L="";E=E===void 0?!1:E;A=T.document;var r={};Y&&(r._scs_=Y);r._bgu_=L;r._bgp_=c;r._li_="v_h.3.0.0.0";d&&(r._upb_=d);(Y=T.GoogleTyFxhY)&&typeof Y.push=="function"||(Y=T.GoogleTyFxhY=[]);Y.push(r);Y=Q7(A).createElement("SCRIPT");Y.type="text/javascript";Y.async=!0;U=(E===void 0?0:E)?sm8(BTY,Hi(U)+".js"):sm8(XyS,Hi(U)+ ".js");g.z$(Y,U);(T=(T.GoogleTyFxhYEET||{})[Y.src])?T():A.getElementsByTagName("head")[0].appendChild(Y)}; ROc=function(){try{var U,Y;return!!((U=window)==null?0:(Y=U.top)==null?0:Y.location.href)&&!1}catch(A){return!0}}; dc=function(U,Y,A){A=A===void 0?Error():A;var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=U;Y+=":";A instanceof Error?(this.message=Y+A.message,this.stack=A.stack||""):(this.message=Y+String(A),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; ET=function(){var U=aI3();U=U===void 0?"bevasrsg":U;return new Promise(function(Y){var A=window===window.top?window:ROc()?window:window.top,c=A[U],d;((d=c)==null?0:d.bevasrs)?Y(new Tt(c.bevasrs)):(c||(c={},c=(c.nqfbel=[],c),A[U]=c),c.nqfbel.push(function(T){Y(new Tt(T))}))})}; xPl=function(U){var Y={c:U.Bi,e:U.UY,mc:U.rr,me:U.Gj};U.mj&&(Y.co={c:U.mj.JI,a:U.mj.Nf,s:U.mj.sU});return Y}; oD=function(U){g.p.call(this);this.wpc=U}; Tt=function(U){g.p.call(this);var Y=this;this.CP=U;this.W="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.T=void 0;this.oh=this.CP.p;this.j=this.Du.bind(this);this.addOnDisposeCallback(function(){return void sg9(Y)})}; fIY=function(U){var Y;return g.S(function(A){if(A.T==1){if(!U.CP.wpc)throw new dc(30,"NWA");return U.Y?A.return(U.Y):g.x(A,U.CP.wpc(),2)}Y=A.Y;U.Y=new oD(Y);return A.return(U.Y)})}; sg9=function(U){U.T!==void 0&&(U.W.forEach(function(Y){var A;(A=U.T)==null||A.removeEventListener(Y,U.j)}),U.T=void 0)}; hOY=function(U){var Y=Y===void 0?49:Y;var A=[];ZV(U,zt,6).forEach(function(c){DV(c,2)<=Y&&A.push(DV(c,1))}); return A}; SFc=function(U){var Y=Y===void 0?49:Y;var A=[];ZV(U,zt,6).forEach(function(c){DV(c,2)>Y&&A.push(DV(c,1))}); return A}; ME9=function(U){U.then(function(){},function(){})}; LL=function(){g.p.apply(this,arguments);this.j=1;this[bxX]=this.dispose}; rc=function(U){return{fieldType:2,fieldName:U}}; g.lY=function(U){return{fieldType:3,fieldName:U}}; pyY=function(U){this.Y=U;U.oo("/client_streamz/bg/frs",g.lY("mk"))}; Qg4=function(U){this.Y=U;U.oo("/client_streamz/bg/wrl",g.lY("mn"),rc("ac"),rc("sc"),g.lY("rk"),g.lY("mk"))}; ZxX=function(U){this.Y=U;U.S2("/client_streamz/bg/ec",g.lY("en"),g.lY("mk"))}; OxV=function(U){this.Y=U;U.oo("/client_streamz/bg/el",g.lY("en"),g.lY("mk"))}; mPl=function(U){this.Y=U;U.S2("/client_streamz/bg/cec",rc("ec"),g.lY("mk"))}; gOc=function(U){this.Y=U;U.S2("/client_streamz/bg/po/csc",rc("cs"),g.lY("mk"))}; ym4=function(U){this.Y=U;U.S2("/client_streamz/bg/po/ctav",g.lY("av"),g.lY("mk"))}; nOv=function(U){this.Y=U;U.S2("/client_streamz/bg/po/cwsc",g.lY("su"),g.lY("mk"))}; DPc=function(U){this.PZ=Pp(U)}; IIV=function(U,Y){return xsE(U,Y,zZX)}; Pr=function(U){this.PZ=Pp(U)}; Vv=function(U){this.PZ=Pp(U)}; $3=function(U){this.PZ=Pp(U)}; vr=function(U){this.PZ=Pp(U)}; uB3=function(U){this.PZ=Pp(U)}; g.Cpv=function(U){var Y=new vr;Y=CG(Y,1,U.T);var A=KFX(U);Y=xsE(Y,A,iR3);A=[];for(var c=[],d=g.J(U.Y.keys()),T=d.next();!T.done;T=d.next())c.push(T.value.split(","));for(d=0;d>>31)&4294967295;V=d[0];var G=d[1],F=d[2],N=d[3],e=d[4];for(H=0;H<80;H++){if(H<40)if(H<20){var B=N^G&(F^N);var f=1518500249}else B=G^F^N,f=1859775393;else H<60?(B=G&F|N&(G|F),f=2400959708):(B=G^F^N,f=3395469782);B=((V<<5|V>>>27)&4294967295)+B+e+f+v[H]&4294967295;e=N;N=F;F=(G<<30|G>>>2)&4294967295;G=V;V=B}d[0]=d[0]+V&4294967295;d[1]=d[1]+G&4294967295;d[2]= d[2]+F&4294967295;d[3]=d[3]+N&4294967295;d[4]=d[4]+e&4294967295} function A(V,v){if(typeof V==="string"){V=unescape(encodeURIComponent(V));for(var H=[],G=0,F=V.length;G=56;H--)T[H]=v&255,v>>>=8;Y(T);for(H=v=0;H<5;H++)for(var G=24;G>=0;G-=8)V[v++]=d[H]>>G&255;return V} for(var d=[],T=[],E=[],L=[128],r=1;r<64;++r)L[r]=0;var l,P;U();return{reset:U,update:A,digest:c,Cs:function(){for(var V=c(),v="",H=0;H1)));E=E.next)d||(T=E);d&&(A.Y==0&&c==1?uj8(A,Y):(T?(c=T,c.next==A.j&&(A.j=c),c.next=c.next.next):K89(A),q68(A,d,3,Y)))}U.W=null}else N3(U,3,Y)}; kM=function(U,Y){U.T||U.Y!=2&&U.Y!=3||CtX(U);U.j?U.j.next=Y:U.T=Y;U.j=Y}; UnE=function(U,Y,A,c){var d=eW(null,null,null);d.Y=new g.tS(function(T,E){d.W=Y?function(L){try{var r=Y.call(c,L);T(r)}catch(l){E(l)}}:T; d.T=A?function(L){try{var r=A.call(c,L);r===void 0&&L instanceof hS?E(L):T(r)}catch(l){E(l)}}:E}); d.Y.W=U;kM(U,d);return d.Y}; N3=function(U,Y,A){U.Y==0&&(U===A&&(Y=3,A=new TypeError("Promise cannot resolve to itself")),U.Y=1,yBX(A,U.fOE,U.NYE,U)||(U.G=A,U.Y=Y,U.W=null,CtX(U),Y!=3||A instanceof hS||YR9(U,A)))}; yBX=function(U,Y,A,c){if(U instanceof g.tS)return IbY(U,Y,A,c),!0;if(U)try{var d=!!U.$goog_Thenable}catch(E){d=!1}else d=!1;if(d)return U.then(Y,A,c),!0;if(g.Yz(U))try{var T=U.then;if(typeof T==="function")return A6X(U,T,Y,A,c),!0}catch(E){return A.call(c,E),!0}return!1}; A6X=function(U,Y,A,c,d){function T(r){L||(L=!0,c.call(d,r))} function E(r){L||(L=!0,A.call(d,r))} var L=!1;try{Y.call(U,E,T)}catch(r){T(r)}}; CtX=function(U){U.J||(U.J=!0,g.jW(U.SB,U))}; K89=function(U){var Y=null;U.T&&(Y=U.T,U.T=Y.next,Y.next=null);U.T||(U.j=null);return Y}; q68=function(U,Y,A,c){if(A==3&&Y.T&&!Y.j)for(;U&&U.K;U=U.W)U.K=!1;if(Y.Y)Y.Y.W=null,c63(Y,A,c);else try{Y.j?Y.W.call(Y.context):c63(Y,A,c)}catch(d){dnX.call(null,d)}M$3(gWY,Y)}; c63=function(U,Y,A){Y==2?U.W.call(U.context,A):U.T&&U.T.call(U.context,A)}; YR9=function(U,Y){U.K=!0;g.jW(function(){U.K&&dnX.call(null,Y)})}; hS=function(U){lw.call(this,U)}; g.SW=function(U,Y){g.PO.call(this);this.Ar=U||1;this.cC=Y||g.Dc;this.h2=(0,g.dL)(this.kzs,this);this.NL=g.om()}; g.M3=function(U,Y,A){if(typeof U==="function")A&&(U=(0,g.dL)(U,A));else if(U&&typeof U.handleEvent=="function")U=(0,g.dL)(U.handleEvent,U);else throw Error("Invalid listener argument");return Number(Y)>2147483647?-1:g.Dc.setTimeout(U,Y||0)}; b7=function(U,Y){var A=null;return(new g.tS(function(c,d){A=g.M3(function(){c(Y)},U); A==-1&&d(Error("Failed to schedule timer."))})).TX(function(c){g.Dc.clearTimeout(A); throw c;})}; g.pe=function(U){g.p.call(this);this.G=U;this.j=0;this.W=100;this.K=!1;this.T=new Map;this.J=new Set;this.flushInterval=3E4;this.Y=new g.SW(this.flushInterval);this.Y.listen("tick",this.Qu,!1,this);g.Z(this,this.Y)}; TdX=function(U){U.Y.enabled||U.Y.start();U.j++;U.j>=U.W&&U.Qu()}; EtX=function(U,Y){return U.J.has(Y)?void 0:U.T.get(Y)}; otY=function(U){for(var Y=0;Y2?U.Y.statusText:""}catch(A){Y=""}U.j=Y+" ["+U.getStatus()+"]";W$X(U)}}finally{yc(U)}}}; yc=function(U,Y){if(U.Y){U.J&&(clearTimeout(U.J),U.J=null);var A=U.Y;U.Y=null;Y||U.dispatchEvent("ready");try{A.onreadystatechange=null}catch(c){}}}; Iz=function(U){var Y=U.getStatus();a:switch(Y){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var A=!0;break a;default:A=!1}if(!A){if(Y=Y===0)U=g.Nw(String(U.Z))[1]||null,!U&&g.Dc.self&&g.Dc.self.location&&(U=g.Dc.self.location.protocol.slice(0,-1)),Y=!J6X.test(U?U.toLowerCase():"");A=Y}return A}; g.Dm=function(U){return U.Y?U.Y.readyState:0}; g.u7=function(U){try{return U.Y?U.Y.responseText:""}catch(Y){return""}}; g.Ke=function(U){try{if(!U.Y)return null;if("response"in U.Y)return U.Y.response;switch(U.jX){case "":case "text":return U.Y.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in U.Y)return U.Y.mozResponseArrayBuffer}return null}catch(Y){return null}}; g.F$8=function(U){var Y={};U=(U.Y&&g.Dm(U)>=2?U.Y.getAllResponseHeaders()||"":"").split("\r\n");for(var A=0;A>1,Y),jJ(U,U.length>>1)]}; YTS=function(U){var Y=g.J(UUV(U,N7));U=Y.next().value;Y=Y.next().value;return U.toString(16)+Y.toString(16)}; AY8=function(U,Y){var A=UUV(Y);U=new Uint32Array(U.buffer);Y=U[0];var c=g.J(A);A=c.next().value;c=c.next().value;for(var d=1;d>>8|E<<24,E+=T|0,E^=L+38293,T=T<<3|T>>>29,T^=E,r=r>>>8|r<<24,r+=L|0,r^=l+38293,L=L<<3|L>>>29,L^=r;T=[T,E];U[d]^=T[0];d+1=A?(globalThis.sessionStorage.removeItem(U),["e"]):["a",new Uint8Array(c.buffer,Y+4)]}; tj=function(U,Y,A){A=A===void 0?[]:A;this.maxItems=U;this.Y=Y===void 0?0:Y;this.T=A}; Tc3=function(U){var Y=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!Y)return new tj(U);var A=Y.split(",");if(A.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new tj(U);Y=A.slice(1);Y.length===1&&Y[0]===""&&(Y=[]);A=Number(A[0]);return isNaN(A)||A<0||A>Y.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new tj(U)):new tj(U,A,Y)}; E3Y=function(U,Y){this.logger=Y;try{var A=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(c){A=!1}A&&(this.index=Tc3(U))}; o3V=function(U,Y,A,c,d){var T=U.index?cL(U.logger,function(){return cY4(U.index,YTS(Y),A,c,d)},"W"):"u"; U.logger.wu(T)}; zTX=function(U,Y,A){var c=g.J(U.index?cL(U.logger,function(){return dUX(YTS(Y),A)},"R"):["u"]),d=c.next().value; c=c.next().value;U.logger.XW(d);return c}; ldV=function(U){function Y(){A-=c;A-=d;A^=d>>>13;c-=d;c-=A;c^=A<<8;d-=A;d-=c;d^=c>>>13;A-=c;A-=d;A^=d>>>12;c-=d;c-=A;c^=A<<16;d-=A;d-=c;d^=c>>>5;A-=c;A-=d;A^=d>>>3;c-=d;c-=A;c^=A<<10;d-=A;d-=c;d^=c>>>15} U=Luc(U);for(var A=2654435769,c=2654435769,d=314159265,T=U.length,E=T,L=0;E>=12;E-=12,L+=12)A+=eJ(U,L),c+=eJ(U,L+4),d+=eJ(U,L+8),Y();d+=T;switch(E){case 11:d+=U[L+10]<<24;case 10:d+=U[L+9]<<16;case 9:d+=U[L+8]<<8;case 8:c+=U[L+7]<<24;case 7:c+=U[L+6]<<16;case 6:c+=U[L+5]<<8;case 5:c+=U[L+4];case 4:A+=U[L+3]<<24;case 3:A+=U[L+2]<<16;case 2:A+=U[L+1]<<8;case 1:A+=U[L+0]}Y();return rYX.toString(d)}; Luc=function(U){for(var Y=[],A=0;A>7,U.error.code]);c.set(A,4);return c}; SJ=function(U,Y,A){BL.call(this,U);this.j=Y;this.clientState=A;this.Y="S";this.T="q"}; hj=function(U){return globalThis.TextEncoder?(new TextEncoder).encode(U):g.CC(U)}; $Uv=function(U,Y,A){return U instanceof wp?Qqv(U,A,Y,1):U.OY(A)}; bF=function(U){g.p.call(this);var Y=this;this.W=new g.VI;this.j=0;this.T=void 0;this.state=2;this.CP=U.CP;this.CD=U.CD;this.O4=Object.assign({},v33,U.O4||{});this.logger=U.CP.Is();var A;this.onError=(A=U.onError)!=null?A:function(){}; this.Fd=U.Fd||!1;if(HL9(U)){var c=this.CP;this.K=function(){return y63(c).catch(function(E){E=Y.reportError(new dc(Y.Y?20:32,"TRG:Disposed",E));Y.T=E;var L;(L=Y.Y)==null||L.dispose();Y.Y=void 0;Y.W.reject(E)})}; ntl(c,function(){return void M7(Y)}); c.Z===2&&M7(this)}else this.K=U.xGJ,M7(this);var d=this.logger.share();d.lH("o");var T=new YU(d,"o");this.W.promise.then(function(){T.done();d.V8();d.dispose()},function(){return void d.dispose()}); this.addOnDisposeCallback(function(){Y.Y?(Y.Y.dispose(),Y.Y=void 0):Y.T?Y.logger.V8():(Y.T=Y.reportError(new dc(32,"TNP:Disposed")),Y.logger.V8(),Y.W.reject(Y.T))}); g.Z(this,this.logger)}; Gt4=function(U,Y){if(!(Y instanceof dc))if(Y instanceof Qc){var A=Error(Y.toString());A.stack=Y.stack;Y=new dc(11,"EBH:Error",A)}else Y=new dc(12,"BSO:Unknown",Y);return U.reportError(Y)}; M7=function(U){var Y,A,c,d,T,E,L,r,l,P,V,v,H,G,F;return g.S(function(N){switch(N.T){case 1:Y=void 0;U.j++;A=new g.VI;U.CP instanceof iF&&U.CP.j.push(A.promise);if(!U.Fd){N.uY(2);break}c=new g.VI;setTimeout(function(){return void c.resolve()}); return g.x(N,c.promise,2);case 2:return d=U.logger.share(),g.J3(N,4,5),U.state=5,T={},E=[],g.x(N,FJ(U.CP.snapshot({Bi:T,jJ:E}),U.O4.PoT,function(){return Promise.reject(new dc(15,"MDA:Timeout"))}),7); case 7:L=N.Y;if(U.Ky())throw new dc(U.Y?20:32,"MDA:Disposed");r=E[0];U.state=6;return g.x(N,FJ($Uv(U.CD,d,L),U.O4.dJ,function(){return Promise.reject(new dc(10,"BWB:Timeout"))}),8); case 8:l=N.Y;if(U.Ky())throw new dc(U.Y?20:32,"BWB:Disposed");U.state=7;Y=cL(d,function(){var B=Wu3(U,l,A,r);B.W.promise.then(function(){return void U.K()}); return B},"i"); case 5:g.Rc(N);d.dispose();g.xl(N,6);break;case 4:P=g.XE(N);(V=Y)==null||V.dispose();if(!U.T){v=Gt4(U,P);A.resolve();var e;if(e=U.CP instanceof iF&&U.j<2)a:if(P instanceof dc)e=P.code!==32&&P.code!==20&&P.code!==10;else{if(P instanceof Qc)switch(P.code){case 2:case 13:case 14:case 4:break;default:e=!1;break a}e=!0}if(e)return H=(1+Math.random()*.25)*(U.Y?6E4:1E3),G=setTimeout(function(){return void U.K()},H),U.addOnDisposeCallback(function(){return void clearTimeout(G)}),N.return(); U.T=v}d.a4(U.Y?13:14);U.W.reject(U.T);return N.return();case 6:U.state=8,U.j=0,(F=U.Y)==null||F.dispose(),U.Y=Y,U.W.resolve(),g.i8(N)}})}; Wu3=function(U,Y,A,c){var d=I3(Y,2)*1E3;if(d<=0)throw new dc(31,"TTM:Invalid");if(u3(Y,4))return new xU(U.logger,u3(Y,4),d);if(!I3(Y,3))return new a_(U.logger,z5(kZ(Y,1)),d);if(!c)throw new dc(4,"PMD:Undefined");c=c(z5(kZ(Y,1)));if(!(c instanceof Function))throw new dc(16,"APF:Failed");U.J=Math.floor((Date.now()+d)/1E3);U=new R_(U.logger,c,I3(Y,3),d);U.addOnDisposeCallback(function(){return void A.resolve()}); return U}; wrX=function(U,Y){Y=Y instanceof dc?Y:new dc(5,"TVD:error",Y);return U.reportError(Y)}; Ncv=function(U,Y,A){try{if(U.Ky())throw new dc(21,"BNT:disposed");if(!U.Y&&U.T)throw U.T;var c,d;return(d=(c=iL8(U,Y,A))!=null?c:JYV(U,Y,A))!=null?d:Fuv(U,Y,A)}catch(T){if(!Y.Gj)throw wrX(U,T);return jDl(U,A,T)}}; iL8=function(U,Y,A){var c;return(c=U.Y)==null?void 0:kU(c,function(){return p_(U,Y)},A,function(d){var T; if(U.Y instanceof R_&&((T=Y.mj)==null?0:T.sU))try{var E;(E=U.cache)==null||o3V(E,p_(U,Y),d,Y.mj.JI,U.J-120)}catch(L){U.reportError(new dc(24,"ELX:write",L))}})}; JYV=function(U,Y,A){var c;if((c=Y.mj)!=null&&c.Nf)try{var d,T=(d=U.cache)==null?void 0:zTX(d,p_(U,Y),Y.mj.JI);return T?A?cL(U.logger,function(){return g.U_(T,2)},"a"):T:void 0}catch(E){U.reportError(new dc(23,"RXO:read",E))}}; Fuv=function(U,Y,A){var c={stack:[],error:void 0,hasError:!1};try{if(!Y.rr)throw new dc(29,"SDF:notready");return kU(GV4(c,new SJ(U.logger,0,U.state)),function(){return p_(U,Y)},A)}catch(d){c.error=d,c.hasError=!0}finally{WXE(c)}}; jDl=function(U,Y,A){var c={stack:[],error:void 0,hasError:!1};try{var d=wrX(U,A);return kU(GV4(c,new f_(U.logger,d)),function(){return[]},Y)}catch(T){c.error=T,c.hasError=!0}finally{WXE(c)}}; p_=function(U,Y){return Y.UY?Y.UY:Y.Bi?cL(U.logger,function(){return Y.UY=hj(Y.Bi)},"c"):[]}; QI=function(){var U=0,Y;return function(A){Y||(Y=new dp);var c=new SJ(Y,U,1),d=kU(c,function(){return hj(A)},!0); c.dispose();U++;return d}}; Z_=function(U){this.PZ=Pp(U)}; tyl=function(U,Y,A){this.Uo=U;this.KC=Y;this.metadata=A}; Ov=function(U,Y){Y=Y===void 0?{}:Y;this.ugr=U;this.metadata=Y;this.status=null}; m3=function(U,Y,A,c,d){this.name=U;this.methodType="unary";this.requestType=Y;this.responseType=A;this.Y=c;this.T=d}; gp=function(U){this.PZ=Pp(U)}; yI=function(U){this.PZ=Pp(U)}; n_=function(U){this.PZ=Pp(U)}; D_=function(U,Y){this.G=U.FHv;this.Z=Y;this.Y=U.xhr;this.W=[];this.K=[];this.J=[];this.j=[];this.T=[];this.G&&eTE(this)}; RTE=function(U,Y){var A=new Bcc;g.d9(U.Y,"complete",function(){if(Iz(U.Y)){var c=g.u7(U.Y);if(Y&&U.Y.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=U.Z(c)}catch(L){I_(U,uF(new Qc(13,"Error when deserializing response data; error: "+L+(", response: "+c)),A));return}c=zgl(U.Y.getStatus());K_(U,q7(U));c==0?Xrc(U,d):I_(U,uF(new Qc(c,"Xhr succeeded but the status code is not 200"),A))}else{c=g.u7(U.Y);d=q7(U);if(c){var T=ktS(U, c);c=T.code;var E=T.details;T=T.metadata}else c=2,E="Rpc failed due to xhr error. uri: "+String(U.Y.Z)+", error code: "+U.Y.T+", error: "+U.Y.getLastError(),T=d;K_(U,d);I_(U,uF(new Qc(c,E,T),A))}})}; eTE=function(U){U.G.NN("data",function(Y){if("1"in Y){var A=Y["1"];try{var c=U.Z(A)}catch(d){I_(U,new Qc(13,"Error when deserializing response data; error: "+d+(", response: "+A)))}c&&Xrc(U,c)}if("2"in Y)for(Y=ktS(U,Y["2"]),A=0;A-1&&U.splice(Y,1)}; Xrc=function(U,Y){for(var A=0;A>4&15).toString(16)+(U&15).toString(16)}; STX=function(U){return U.replace(/%25([0-9a-fA-F]{2})/g,"%$1")}; rq=function(U,Y){this.T=this.Y=null;this.W=U||null;this.j=!!Y}; $C=function(U){U.Y||(U.Y=new Map,U.T=0,U.W&&Xf(U.W,function(Y,A){U.add(vi(Y),A)}))}; My8=function(U,Y){$C(U);Y=vP(U,Y);return U.Y.has(Y)}; g.bLX=function(U,Y,A){U.remove(Y);A.length>0&&(U.W=null,U.Y.set(vP(U,Y),g.FI(A)),U.T=U.T+A.length)}; vP=function(U,Y){Y=String(Y);U.j&&(Y=Y.toLowerCase());return Y}; sD3=function(U,Y){Y&&!U.j&&($C(U),U.W=null,U.Y.forEach(function(A,c){var d=c.toLowerCase();c!=d&&(this.remove(c),g.bLX(this,d,A))},U)); U.j=Y}; g.prS=function(U){var Y="";g.QY(U,function(A,c){Y+=c;Y+=":";Y+=A;Y+="\r\n"}); return Y}; g.HP=function(U,Y,A){if(g.qF(A))return U;A=g.prS(A);if(typeof U==="string")return sU(U,g.$n(Y),A);g.PP(U,Y,A);return U}; g.G6=function(U){g.p.call(this);this.T=U;this.Y={}}; QDX=function(U,Y,A,c,d,T){if(Array.isArray(A))for(var E=0;E=0)return!0;try{var Y=new g.dq(U)}catch(A){return g.$z(cSl,function(c){return U.search(c)>0})!=null}return Y.J.match(d3X)?!0:g.$z(cSl,function(A){return U.match(A)!=null})!=null}; g.kC=function(U,Y){return U.replace(EMv,function(A,c){try{var d=g.Cj(Y,c);if(d==null||d.toString()==null)return A;d=d.toString();if(d==""||!g.HG(g.Wi(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(T){}return A})}; sA=function(U,Y){return Object.is(U,Y)}; hZ=function(U){var Y=fB;fB=U;return Y}; oME=function(U){if(U.qd!==void 0){var Y=Sk;Sk=!0;try{for(var A=g.J(U.qd),c=A.next();!c.done;c=A.next()){var d=c.value;d.TB||(U=void 0,d.TB=!0,oME(d),(U=d.UG)==null||U.call(d,d))}}finally{Sk=Y}}}; zG3=function(){var U;return((U=fB)==null?void 0:U.FJ)!==!1}; LGc=function(U){U&&(U.Gg=0);return hZ(U)}; rSE=function(U,Y){hZ(Y);if(U&&U.O$!==void 0&&U.wz!==void 0&&U.kX!==void 0){if(Mv(U))for(Y=U.Gg;YU.Gg;)U.O$.pop(),U.kX.pop(),U.wz.pop()}}; P79=function(U,Y,A){lmS(U);if(U.qd.length===0&&U.O$!==void 0)for(var c=0;c0}; VW8=function(U){U.O$!=null||(U.O$=[]);U.wz!=null||(U.wz=[]);U.kX!=null||(U.kX=[])}; lmS=function(U){U.qd!=null||(U.qd=[]);U.BR!=null||(U.BR=[])}; HeS=function(U){function Y(){if(Sk)throw Error("");if(fB!==null){var c=fB.Gg++;VW8(fB);c0?" "+Y:Y))}}; g.zx=function(U,Y){if(U.classList)Array.prototype.forEach.call(Y,function(d){g.ou(U,d)}); else{var A={};Array.prototype.forEach.call(dK(U),function(d){A[d]=!0}); Array.prototype.forEach.call(Y,function(d){A[d]=!0}); Y="";for(var c in A)Y+=Y.length>0?" "+c:c;g.Tx(U,Y)}}; g.LZ=function(U,Y){U.classList?U.classList.remove(Y):g.E4(U,Y)&&g.Tx(U,Array.prototype.filter.call(dK(U),function(A){return A!=Y}).join(" "))}; g.rK=function(U,Y){U.classList?Array.prototype.forEach.call(Y,function(A){g.LZ(U,A)}):g.Tx(U,Array.prototype.filter.call(dK(U),function(A){return!g.Go(Y,A)}).join(" "))}; g.lg=function(U,Y,A){A?g.ou(U,Y):g.LZ(U,Y)}; B9V=function(U,Y){var A=!g.E4(U,Y);g.lg(U,Y,A)}; g.PF=function(){g.PO.call(this);this.Y=0;this.endTime=this.startTime=null}; XOV=function(U,Y){Array.isArray(Y)||(Y=[Y]);Y=Y.map(function(A){return typeof A==="string"?A:A.property+" "+A.duration+"s "+A.timing+" "+A.delay+"s"}); g.MP(U,"transition",Y.join(","))}; Vf=function(U,Y,A,c,d){g.PF.call(this);this.T=U;this.K=Y;this.J=A;this.j=c;this.G=Array.isArray(d)?d:[d]}; kcE=function(U,Y,A,c){return new Vf(U,Y,{opacity:A},{opacity:c},{property:"opacity",duration:Y,timing:"ease-in",delay:0})}; amX=function(U){U=ih(U);if(U=="")return null;var Y=String(U.slice(0,4)).toLowerCase();if(("url("1||U&&U.split(")"),null;if(U.indexOf("(")>0){if(/"|'/.test(U))return null;Y=/([\-\w]+)\(/g;for(var A;A=Y.exec(U);)if(!(A[1].toLowerCase()in RGS))return null}return U}; $c=function(U,Y){U=g.Dc[U];return U&&U.prototype?(Y=Object.getOwnPropertyDescriptor(U.prototype,Y))&&Y.get||null:null}; x3V=function(U){var Y=g.Dc.CSSStyleDeclaration;return Y&&Y.prototype&&Y.prototype[U]||null}; szX=function(U,Y,A,c){if(U)return U.apply(Y,c);if(g.vF&&document.documentMode<10){if(!Y[A].call)throw Error("IE Clobbering detected");}else if(typeof Y[A]!="function")throw Error("Clobbering detected");return Y[A].apply(Y,c)}; beX=function(U){if(!U)return"";var Y=document.createElement("div").style;fm8(U).forEach(function(A){var c=g.DH&&A in hG9?A:A.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");vG(c,"--")||vG(c,"var")||(A=szX(Sgl,U,U.getPropertyValue?"getPropertyValue":"getAttribute",[A])||"",A=amX(A),A!=null&&szX(MW9,Y,Y.setProperty?"setProperty":"setAttribute",[c,A]))}); return Y.cssText||""}; fm8=function(U){g.UO(U)?U=g.FI(U):(U=g.nj(U),g.wL(U,"cssText"));return U}; g.Gx=function(U){var Y,A=Y=0,c=!1;U=U.split(pO4);for(var d=0;d.4?-1:1;return(Y==0?null:Y)==-1?"rtl":"ltr"}; g.JT=function(U){if(U instanceof WF||U instanceof wK||U instanceof ig)return U;if(typeof U.next=="function")return new WF(function(){return U}); if(typeof U[Symbol.iterator]=="function")return new WF(function(){return U[Symbol.iterator]()}); if(typeof U.Km=="function")return new WF(function(){return U.Km()}); throw Error("Not an iterator or iterable.");}; WF=function(U){this.T=U}; wK=function(U){this.T=U}; ig=function(U){WF.call(this,function(){return U}); this.W=U}; F7=function(U,Y,A,c,d,T,E,L){this.Y=U;this.G=Y;this.W=A;this.K=c;this.j=d;this.J=T;this.T=E;this.Z=L}; jn=function(U,Y){if(Y==0)return U.Y;if(Y==1)return U.T;var A=kn(U.Y,U.W,Y),c=kn(U.W,U.j,Y);U=kn(U.j,U.T,Y);A=kn(A,c,Y);c=kn(c,U,Y);return kn(A,c,Y)}; m39=function(U,Y){var A=(Y-U.Y)/(U.T-U.Y);if(A<=0)return 0;if(A>=1)return 1;for(var c=0,d=1,T=0,E=0;E<8;E++){T=jn(U,A);var L=(jn(U,A+1E-6)-T)/1E-6;if(Math.abs(T-Y)<1E-6)return A;if(Math.abs(L)<1E-6)break;else T1E-6&&E<8;E++)T=0}; g.BF=function(U){g.p.call(this);this.J=1;this.W=[];this.j=0;this.Y=[];this.T={};this.G=!!U}; ySE=function(U,Y,A){g.jW(function(){U.apply(Y,A)})}; g.X7=function(U){this.Y=U}; kc=function(U){this.Y=U}; nM9=function(U){this.data=U}; D3c=function(U){return U===void 0||U instanceof nM9?U:new nM9(U)}; Ru=function(U){this.Y=U}; g.Im4=function(U){var Y=U.creation;U=U.expiration;return!!U&&Ug.om()}; g.au=function(U){this.Y=U}; uD8=function(){}; xc=function(){}; s4=function(U){this.Y=U;this.T=null}; fZ=function(U){if(U.Y==null)throw Error("Storage mechanism: Storage unavailable");var Y;(KGY?U.isAvailable():(Y=U.T)!=null?Y:U.isAvailable())||qw(Error("Storage mechanism: Storage unavailable"))}; hT=function(){var U=null;try{U=g.Dc.localStorage||null}catch(Y){}s4.call(this,U)}; qg9=function(){var U=null;try{U=g.Dc.sessionStorage||null}catch(Y){}s4.call(this,U)}; Sn=function(U,Y){this.T=U;this.Y=Y+"::"}; g.MQ=function(U){var Y=new hT;return Y.isAvailable()?U?new Sn(Y,U):Y:null}; bg=function(U,Y){this.Y=U;this.T=Y}; pZ=function(U){this.Y=[];if(U)a:{if(U instanceof pZ){var Y=U.C2();U=U.Bm();if(this.Y.length<=0){for(var A=this.Y,c=0;c>>6:(T<65536?L[A++]=224|T>>>12:(L[A++]=240|T>>>18,L[A++]=128|T>>>12&63),L[A++]=128|T>>> 6&63),L[A++]=128|T&63);return L}; mD=function(U){for(var Y=U.length;--Y>=0;)U[Y]=0}; gK=function(U,Y,A,c,d){this.Wh=U;this.yb=Y;this.GY=A;this.Yv=c;this.irX=d;this.i4=U&&U.length}; yf=function(U,Y){this.BL=U;this.Ir=0;this.rX=Y}; nZ=function(U,Y){U.Gl[U.pending++]=Y&255;U.Gl[U.pending++]=Y>>>8&255}; DU=function(U,Y,A){U.ll>16-A?(U.dF|=Y<>16-U.ll,U.ll+=A-16):(U.dF|=Y<>>=1,A<<=1;while(--Y>0);return A>>>1}; cj8=function(U,Y,A){var c=Array(16),d=0,T;for(T=1;T<=15;T++)c[T]=d=d+A[T-1]<<1;for(A=0;A<=Y;A++)d=U[A*2+1],d!==0&&(U[A*2]=Ajv(c[d]++,d))}; d78=function(U){var Y;for(Y=0;Y<286;Y++)U.GX[Y*2]=0;for(Y=0;Y<30;Y++)U.Rb[Y*2]=0;for(Y=0;Y<19;Y++)U.Hg[Y*2]=0;U.GX[512]=1;U.aZ=U.BM=0;U.ai=U.matches=0}; TpV=function(U){U.ll>8?nZ(U,U.dF):U.ll>0&&(U.Gl[U.pending++]=U.dF);U.dF=0;U.ll=0}; EUX=function(U,Y,A){TpV(U);nZ(U,A);nZ(U,~A);O4.SH(U.Gl,U.window,Y,A,U.pending);U.pending+=A}; oUX=function(U,Y,A,c){var d=Y*2,T=A*2;return U[d]>>7)];Iu(U,E,A);L=Y4[E];L!==0&&(d-=Aa[E],DU(U,d,L))}}while(c>1;E>=1;E--)ug(U,A,E);r=T;do E=U.N1[1],U.N1[1]=U.N1[U.KR--],ug(U,A,1),c=U.N1[1],U.N1[--U.zD]=E,U.N1[--U.zD]=c,A[r*2]=A[E*2]+A[c*2],U.depth[r]=(U.depth[E]>=U.depth[c]?U.depth[E]:U.depth[c])+1,A[E*2+1]=A[c*2+1]=r,U.N1[1]=r++,ug(U,A,1);while(U.KR>= 2);U.N1[--U.zD]=U.N1[1];E=Y.BL;r=Y.Ir;c=Y.rX.Wh;d=Y.rX.i4;T=Y.rX.yb;var l=Y.rX.GY,P=Y.rX.irX,V,v=0;for(V=0;V<=15;V++)U.wK[V]=0;E[U.N1[U.zD]*2+1]=0;for(Y=U.zD+1;Y<573;Y++){var H=U.N1[Y];V=E[E[H*2+1]*2+1]+1;V>P&&(V=P,v++);E[H*2+1]=V;if(!(H>r)){U.wK[V]++;var G=0;H>=l&&(G=T[H-l]);var F=E[H*2];U.aZ+=F*(V+G);d&&(U.BM+=F*(c[H*2+1]+G))}}if(v!==0){do{for(V=P-1;U.wK[V]===0;)V--;U.wK[V]--;U.wK[V+1]+=2;U.wK[P]--;v-=2}while(v>0);for(V=P;V!==0;V--)for(H=U.wK[V];H!==0;)c=U.N1[--Y],c>r||(E[c*2+1]!==V&&(U.aZ+=(V- E[c*2+1])*E[c*2],E[c*2+1]=V),H--)}cj8(A,L,U.wK)}; L38=function(U,Y,A){var c,d=-1,T=Y[1],E=0,L=7,r=4;T===0&&(L=138,r=3);Y[(A+1)*2+1]=65535;for(c=0;c<=A;c++){var l=T;T=Y[(c+1)*2+1];++E>>=1)if(Y&1&&U.GX[A*2]!==0)return 0;if(U.GX[18]!==0||U.GX[20]!==0||U.GX[26]!==0)return 1;for(A=32;A<256;A++)if(U.GX[A*2]!==0)return 1;return 0}; d5=function(U,Y,A){U.Gl[U.n1+U.ai*2]=Y>>>8&255;U.Gl[U.n1+U.ai*2+1]=Y&255;U.Gl[U.Jx+U.ai]=A&255;U.ai++;Y===0?U.GX[A*2]++:(U.matches++,Y--,U.GX[(KZ[A]+256+1)*2]++,U.Rb[(Y<256?U3[Y]:U3[256+(Y>>>7)])*2]++);return U.ai===U.rN-1}; E3=function(U,Y){U.msg=Tj[Y];return Y}; o5=function(U){for(var Y=U.length;--Y>=0;)U[Y]=0}; zj=function(U){var Y=U.state,A=Y.pending;A>U.hB&&(A=U.hB);A!==0&&(O4.SH(U.output,Y.Gl,Y.JZ,A,U.Gf),U.Gf+=A,Y.JZ+=A,U.NQ+=A,U.hB-=A,Y.pending-=A,Y.pending===0&&(Y.JZ=0))}; le=function(U,Y){var A=U.Ox>=0?U.Ox:-1,c=U.u$-U.Ox,d=0;if(U.level>0){U.ZF.Wy===2&&(U.ZF.Wy=l_3(U));cu(U,U.aN);cu(U,U.v8);L38(U,U.GX,U.aN.Ir);L38(U,U.Rb,U.v8.Ir);cu(U,U.Vy);for(d=18;d>=3&&U.Hg[PFE[d]*2+1]===0;d--);U.aZ+=3*(d+1)+5+5+4;var T=U.aZ+3+7>>>3;var E=U.BM+3+7>>>3;E<=T&&(T=E)}else T=E=c+5;if(c+4<=T&&A!==-1)DU(U,Y?1:0,3),EUX(U,A,c);else if(U.strategy===4||E===T)DU(U,2+(Y?1:0),3),zNV(U,LF,r5);else{DU(U,4+(Y?1:0),3);A=U.aN.Ir+1;c=U.v8.Ir+1;d+=1;DU(U,A-257,5);DU(U,c-1,5);DU(U,d-4,4);for(T=0;T>>8&255;U.Gl[U.pending++]=Y&255}; VJ4=function(U,Y){var A=U.s8,c=U.u$,d=U.Pm,T=U.bv,E=U.u$>U.Sj-262?U.u$-(U.Sj-262):0,L=U.window,r=U.N6,l=U.MY,P=U.u$+258,V=L[c+d-1],v=L[c+d];U.Pm>=U.t9&&(A>>=2);T>U.Cr&&(T=U.Cr);do{var H=Y;if(L[H+d]===v&&L[H+d-1]===V&&L[H]===L[c]&&L[++H]===L[c+1]){c+=2;for(H++;L[++c]===L[++H]&&L[++c]===L[++H]&&L[++c]===L[++H]&&L[++c]===L[++H]&&L[++c]===L[++H]&&L[++c]===L[++H]&&L[++c]===L[++H]&&L[++c]===L[++H]&&cd){U.QF=Y;d=H;if(H>=T)break;V=L[c+d-1];v=L[c+d]}}}while((Y=l[Y&r])>E&&--A!== 0);return d<=U.Cr?d:U.Cr}; Hu=function(U){var Y=U.Sj,A;do{var c=U.uZ-U.Cr-U.u$;if(U.u$>=Y+(Y-262)){O4.SH(U.window,U.window,Y,Y,0);U.QF-=Y;U.u$-=Y;U.Ox-=Y;var d=A=U.eU;do{var T=U.head[--d];U.head[d]=T>=Y?T-Y:0}while(--A);d=A=Y;do T=U.MY[--d],U.MY[d]=T>=Y?T-Y:0;while(--A);c+=Y}if(U.ZF.O_===0)break;d=U.ZF;A=U.window;T=U.u$+U.Cr;var E=d.O_;E>c&&(E=c);E===0?A=0:(d.O_-=E,O4.SH(A,d.input,d.h7,E,T),d.state.wrap===1?d.Fy=$4(d.Fy,A,E,T):d.state.wrap===2&&(d.Fy=vu(d.Fy,A,E,T)),d.h7+=E,d.a6+=E,A=E);U.Cr+=A;if(U.Cr+U.VG>=3)for(c=U.u$-U.VG, U.pP=U.window[c],U.pP=(U.pP<=3&&(U.pP=(U.pP<=3)if(A=d5(U,U.u$-U.QF,U.Ae-3),U.Cr-=U.Ae,U.Ae<=U.zJ&&U.Cr>=3){U.Ae--;do U.u$++,U.pP=(U.pP<=3&&(U.pP=(U.pP<4096)&&(U.Ae=2));if(U.Pm>=3&&U.Ae<=U.Pm){c=U.u$+U.Cr-3;A=d5(U,U.u$-1-U.wi,U.Pm-3);U.Cr-=U.Pm-1;U.Pm-=2;do++U.u$<=c&&(U.pP=(U.pP<=3&&U.u$>0&&(c=U.u$-1,A=T[c],A===T[++c]&&A===T[++c]&&A===T[++c])){for(d=U.u$+258;A===T[++c]&&A===T[++c]&&A===T[++c]&&A===T[++c]&&A===T[++c]&&A===T[++c]&&A===T[++c]&&A===T[++c]&&cU.Cr&&(U.Ae=U.Cr)}U.Ae>=3?(A=d5(U,1,U.Ae-3),U.Cr-=U.Ae,U.u$+=U.Ae,U.Ae=0):(A=d5(U,0,U.window[U.u$]),U.Cr--,U.u$++);if(A&&(le(U,!1),U.ZF.hB===0))return 1}U.VG=0;return Y=== 4?(le(U,!0),U.ZF.hB===0?3:4):U.ai&&(le(U,!1),U.ZF.hB===0)?1:2}; vUc=function(U,Y){for(var A;;){if(U.Cr===0&&(Hu(U),U.Cr===0)){if(Y===0)return 1;break}U.Ae=0;A=d5(U,0,U.window[U.u$]);U.Cr--;U.u$++;if(A&&(le(U,!1),U.ZF.hB===0))return 1}U.VG=0;return Y===4?(le(U,!0),U.ZF.hB===0?3:4):U.ai&&(le(U,!1),U.ZF.hB===0)?1:2}; w5=function(U,Y,A,c,d){this.gH=U;this.Mcv=Y;this.Q1v=A;this.XwX=c;this.func=d}; H_S=function(){this.ZF=null;this.status=0;this.Gl=null;this.wrap=this.pending=this.JZ=this.Cm=0;this.jl=null;this.HS=0;this.method=8;this.Tf=-1;this.N6=this.AV=this.Sj=0;this.window=null;this.uZ=0;this.head=this.MY=null;this.bv=this.t9=this.strategy=this.level=this.zJ=this.s8=this.Pm=this.Cr=this.QF=this.u$=this.LZ=this.wi=this.Ae=this.Ox=this.Jc=this.Ur=this.qp=this.eU=this.pP=0;this.GX=new O4.Z_(1146);this.Rb=new O4.Z_(122);this.Hg=new O4.Z_(78);o5(this.GX);o5(this.Rb);o5(this.Hg);this.Vy=this.v8= this.aN=null;this.wK=new O4.Z_(16);this.N1=new O4.Z_(573);o5(this.N1);this.zD=this.KR=0;this.depth=new O4.Z_(573);o5(this.depth);this.ll=this.dF=this.VG=this.matches=this.BM=this.aZ=this.n1=this.ai=this.rN=this.Jx=0}; GzE=function(U,Y){if(!U||!U.state||Y>5||Y<0)return U?E3(U,-2):-2;var A=U.state;if(!U.output||!U.input&&U.O_!==0||A.status===666&&Y!==4)return E3(U,U.hB===0?-5:-2);A.ZF=U;var c=A.Tf;A.Tf=Y;if(A.status===42)if(A.wrap===2)U.Fy=0,Pu(A,31),Pu(A,139),Pu(A,8),A.jl?(Pu(A,(A.jl.text?1:0)+(A.jl.DI?2:0)+(A.jl.extra?4:0)+(A.jl.name?8:0)+(A.jl.comment?16:0)),Pu(A,A.jl.time&255),Pu(A,A.jl.time>>8&255),Pu(A,A.jl.time>>16&255),Pu(A,A.jl.time>>24&255),Pu(A,A.level===9?2:A.strategy>=2||A.level<2?4:0),Pu(A,A.jl.os& 255),A.jl.extra&&A.jl.extra.length&&(Pu(A,A.jl.extra.length&255),Pu(A,A.jl.extra.length>>8&255)),A.jl.DI&&(U.Fy=vu(U.Fy,A.Gl,A.pending,0)),A.HS=0,A.status=69):(Pu(A,0),Pu(A,0),Pu(A,0),Pu(A,0),Pu(A,0),Pu(A,A.level===9?2:A.strategy>=2||A.level<2?4:0),Pu(A,3),A.status=113);else{var d=8+(A.AV-8<<4)<<8;d|=(A.strategy>=2||A.level<2?0:A.level<6?1:A.level===6?2:3)<<6;A.u$!==0&&(d|=32);A.status=113;Vw(A,d+(31-d%31));A.u$!==0&&(Vw(A,U.Fy>>>16),Vw(A,U.Fy&65535));U.Fy=1}if(A.status===69)if(A.jl.extra){for(d= A.pending;A.HS<(A.jl.extra.length&65535)&&(A.pending!==A.Cm||(A.jl.DI&&A.pending>d&&(U.Fy=vu(U.Fy,A.Gl,A.pending-d,d)),zj(U),d=A.pending,A.pending!==A.Cm));)Pu(A,A.jl.extra[A.HS]&255),A.HS++;A.jl.DI&&A.pending>d&&(U.Fy=vu(U.Fy,A.Gl,A.pending-d,d));A.HS===A.jl.extra.length&&(A.HS=0,A.status=73)}else A.status=73;if(A.status===73)if(A.jl.name){d=A.pending;do{if(A.pending===A.Cm&&(A.jl.DI&&A.pending>d&&(U.Fy=vu(U.Fy,A.Gl,A.pending-d,d)),zj(U),d=A.pending,A.pending===A.Cm)){var T=1;break}T=A.HSd&&(U.Fy=vu(U.Fy,A.Gl,A.pending-d,d));T===0&&(A.HS=0,A.status=91)}else A.status=91;if(A.status===91)if(A.jl.comment){d=A.pending;do{if(A.pending===A.Cm&&(A.jl.DI&&A.pending>d&&(U.Fy=vu(U.Fy,A.Gl,A.pending-d,d)),zj(U),d=A.pending,A.pending===A.Cm)){T=1;break}T=A.HSd&&(U.Fy=vu(U.Fy,A.Gl,A.pending-d,d));T===0&&(A.status=103)}else A.status= 103;A.status===103&&(A.jl.DI?(A.pending+2>A.Cm&&zj(U),A.pending+2<=A.Cm&&(Pu(A,U.Fy&255),Pu(A,U.Fy>>8&255),U.Fy=0,A.status=113)):A.status=113);if(A.pending!==0){if(zj(U),U.hB===0)return A.Tf=-1,0}else if(U.O_===0&&(Y<<1)-(Y>4?9:0)<=(c<<1)-(c>4?9:0)&&Y!==4)return E3(U,-5);if(A.status===666&&U.O_!==0)return E3(U,-5);if(U.O_!==0||A.Cr!==0||Y!==0&&A.status!==666){c=A.strategy===2?vUc(A,Y):A.strategy===3?$74(A,Y):ie[A.level].func(A,Y);if(c===3||c===4)A.status=666;if(c===1||c===3)return U.hB===0&&(A.Tf= -1),0;if(c===2&&(Y===1?(DU(A,2,3),Iu(A,256,LF),A.ll===16?(nZ(A,A.dF),A.dF=0,A.ll=0):A.ll>=8&&(A.Gl[A.pending++]=A.dF&255,A.dF>>=8,A.ll-=8)):Y!==5&&(DU(A,0,3),EUX(A,0,0),Y===3&&(o5(A.head),A.Cr===0&&(A.u$=0,A.Ox=0,A.VG=0))),zj(U),U.hB===0))return A.Tf=-1,0}if(Y!==4)return 0;if(A.wrap<=0)return 1;A.wrap===2?(Pu(A,U.Fy&255),Pu(A,U.Fy>>8&255),Pu(A,U.Fy>>16&255),Pu(A,U.Fy>>24&255),Pu(A,U.a6&255),Pu(A,U.a6>>8&255),Pu(A,U.a6>>16&255),Pu(A,U.a6>>24&255)):(Vw(A,U.Fy>>>16),Vw(A,U.Fy&65535));zj(U);A.wrap>0&& (A.wrap=-A.wrap);return A.pending!==0?0:1}; Ja=function(U){if(!(this instanceof Ja))return new Ja(U);U=this.options=O4.assign({level:-1,method:8,chunkSize:16384,ZN:15,Tsy:8,strategy:0,to:""},U||{});U.raw&&U.ZN>0?U.ZN=-U.ZN:U.OJ&&U.ZN>0&&U.ZN<16&&(U.ZN+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ZF=new W33;this.ZF.hB=0;var Y=this.ZF;var A=U.level,c=U.method,d=U.ZN,T=U.Tsy,E=U.strategy;if(Y){var L=1;A===-1&&(A=6);d<0?(L=0,d=-d):d>15&&(L=2,d-=16);if(T<1||T>9||c!==8||d<8||d>15||A<0||A>9||E<0||E>4)Y=E3(Y,-2);else{d===8&&(d=9); var r=new H_S;Y.state=r;r.ZF=Y;r.wrap=L;r.jl=null;r.AV=d;r.Sj=1<>=7;T<30;T++)for(Aa[T]=E<<7,d=0;d<1<=l.Sj&&(Y===0&&(o5(l.head),l.u$=0,l.Ox=0,l.VG=0),A=new O4.YP(l.Sj),O4.SH(A,T,E-l.Sj,l.Sj,0),T=A,E=l.Sj);A=U.O_;c=U.h7;d=U.input;U.O_=E;U.h7=0;U.input=T;for(Hu(l);l.Cr>=3;){T=l.u$;E=l.Cr-2;do l.pP=(l.pP<=(0,A[43])(A[11],A[34]),(A[71]>-9||((0,A[3])(A[20],A[17]),null))&&(0,A[3])(A[44],A[52]),(A[14]>-8||((0,A[26])((0,A[56])(),A[47],A[25]),0))&&(0,A[6])(A[51],A[8])}catch(c){(0,A[29])((0,A[26])((0,A[42])(), A[51],A[25]),A[76],A[51],A[73]),(0,A[29])((0,A[32])(A[81]),A[76],A[47],A[64])}try{A[39]!=1&&(A[19]!=-3?(0,A[16])(A[81]):(0,A[22])(A[4])),A[71]>-3?(0,A[85])(A[82],A[28]):(0,A[9])(A[34],A[66]),A[36]>new Date(z[62])/1E3&&(A[73]!==new Date(z[66])/1E3&&((0,A[79])(A[55],A[10]),z[70])||(0,A[59])((0,A[20])(),A[34],A[58]))}catch(c){(0,A[79])(A[34],A[52]),((0,A[85])(A[82],A[70]),A[79])(A[4],A[17])}finally{A[73]>=5&&(A[6]===new Date(z[34])/1E3&&(((0,A[56])((0,A[15])((0,A[33])(A[32],A[4]),A[9],(0,A[33])(A[19], A[4]),A[38],A[47]),A[59],(0,A[29])(),A[82],A[58]),A[9])(A[55],A[75]),(0,A[85])(A[38],A[78]),1)||(0,A[79])(A[82],A[76])-(0,A[15])((0,A[18])(A[16],A[34]),A[33],(0,A[56])(((0,A[79])(A[55],A[62]),A[33])(A[65],A[82]),A[18],A[45],A[4]),A[3],A[54])),A[69]<=-8&&(A[42]<3||((0,A[5])((0,A[49])(A[19],A[13]),(0,A[32])((0,A[79])(),A[55],A[33]),A[52],(0,A[77])(A[54],A[4]),(0,A[83])(A[47],A[new Date(z[63])/1E3]),(0,A[37])(((0,A[14])(A[48],A[36]),(0,A[14])(A[52],A[12]),A[85])(A[27],A[15]),A[85],A[5],A[12]),A[17], A[7]),0))&&((((0,A[80])((0,A[50])(),A[17],A[81]),(((0,A[new Date(z[59])/1E3])(A[46],A[55]),A[39])(A[48],A[new Date(z[64])/1E3]),A[30])(A[76],A[15]),A[30])(A[59],A[23]),((0,A[80])((0,A[44])(),A[59],A[79]),A[80])((0,A[50])(),A[55],A[81]),A[80])((0,A[64])(),A[17],A[79]),A[35])(A[25]),A[28]>0&&((((0,A[80])((0,A[41])(),A[59],A[79]),A[54])(A[82],A[52]),(0,A[20])(A[55],A[26]),(0,A[30])(A[59],A[63]),A[54])(A[57],A[25]),A[54])(A[8],A[17]),A[57]!==7&&(A[84]<=-9&&((0,A[20])(A[17],A[9]),1)||(0,A[80])((0,A[44])(), A[17],A[79])),A[66]<9&&(A[27]>-10&&((0,A[77])((0,A[74])(A[52]),A[55],A[30],A[10]),1)||(0,A[5])((0,A[38])(),A[68],A[6])<(0,A[5])((0,A[35])(),A[26],A[6])),A[19]<1&&(A[61]!=-2?(0,A[8])(((0,A[65])(A[30],A[20]),A[65])(A[26],A[53]),A[31],A[34],A[30]):(0,A[8])((0,A[71])(A[33],A[24])>=(0,A[42])(A[9]),A[65],A[60],A[14]))}}catch(c){return z[53]+U}return Y[z[49]](z[15])}; g.eT=function(U){this.name=U}; b_c=function(U){this.PZ=Pp(U)}; Bu=function(U){this.PZ=Pp(U)}; Xz=function(U){this.PZ=Pp(U)}; pLX=function(U){this.PZ=Pp(U)}; k4=function(U){this.PZ=Pp(U)}; R5=function(U){this.PZ=Pp(U)}; a5=function(U){this.PZ=Pp(U)}; x4=function(U){this.PZ=Pp(U)}; s3=function(U){this.PZ=Pp(U)}; fF=function(U){this.PZ=Pp(U)}; ha=function(U){this.PZ=Pp(U)}; ST=function(U){this.PZ=Pp(U)}; MY=function(U){this.PZ=Pp(U)}; be=function(U){this.PZ=Pp(U)}; pF=function(U){this.PZ=Pp(U)}; Qw=function(U){this.PZ=Pp(U,500)}; ZQ=function(U){this.PZ=Pp(U)}; O3=function(U){this.PZ=Pp(U)}; Q_c=function(U){this.PZ=Pp(U)}; Z_c=function(){return g.u8("yt.ads.biscotti.lastId_")||""}; O_X=function(U){g.Ic("yt.ads.biscotti.lastId_",U)}; g5=function(){var U=arguments,Y=mO;U.length>1?Y[U[0]]=U[1]:U.length===1&&Object.assign(Y,U[0])}; g.DQ=function(U,Y){return U in mO?mO[U]:Y}; I5=function(U){var Y=mO.EXPERIMENT_FLAGS;return Y?Y[U]:void 0}; m7c=function(U){ue.forEach(function(Y){return Y(U)})}; g.qY=function(U){return U&&window.yterr?function(){try{return U.apply(this,arguments)}catch(Y){g.KF(Y)}}:U}; g.KF=function(U){var Y=g.u8("yt.logging.errors.log");Y?Y(U,"ERROR",void 0,void 0,void 0,void 0,void 0):(Y=g.DQ("ERRORS",[]),Y.push([U,"ERROR",void 0,void 0,void 0,void 0,void 0]),g5("ERRORS",Y));m7c(U)}; CF=function(U,Y,A,c,d){var T=g.u8("yt.logging.errors.log");T?T(U,"WARNING",Y,A,c,void 0,d):(T=g.DQ("ERRORS",[]),T.push([U,"WARNING",Y,A,c,void 0,d]),g5("ERRORS",T))}; Us=function(U,Y){Y=U.split(Y);for(var A={},c=0,d=Y.length;c1?U[1]:U[0])):{}}; Tw=function(U,Y){return D74(U,Y||{},!0)}; Es=function(U,Y){return D74(U,Y||{},!1)}; D74=function(U,Y,A){var c=U.split("#",2);U=c[0];c=c.length>1?"#"+c[1]:"";var d=U.split("?",2);U=d[0];d=Af(d[1]||"");for(var T in Y)if(A||!g.Df(d,T))d[T]=Y[T];return g.xJ(U,d)+c}; o4=function(U){if(!Y)var Y=window.location.href;var A=g.Nw(U)[1]||null,c=g.tD(U);A&&c?(U=g.Nw(U),Y=g.Nw(Y),U=U[3]==Y[3]&&U[1]==Y[1]&&U[4]==Y[4]):U=c?g.tD(Y)===c&&(Number(g.Nw(Y)[4]||null)||null)===(Number(g.Nw(U)[4]||null)||null):!0;return U}; zw=function(U){U||(U=document.location.href);U=g.Nw(U)[1]||null;return U!==null&&U==="https"}; Ll=function(U){U=I_9(U);return U===null?!1:U[0]==="com"&&U[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; uJX=function(U){U=I_9(U);return U===null?!1:U[1]==="google"?!0:U[2]==="google"?U[0]==="au"&&U[1]==="com"?!0:U[0]==="uk"&&U[1]==="co"?!0:!1:!1}; I_9=function(U){U=g.tD(U);return U!==null?U.split(".").reverse():null}; gUX=function(U){return U&&U.match(K3S)?U:vi(U)}; Pn=function(U){var Y=rF;U=U===void 0?Z_c():U;var A=Object,c=A.assign,d=lr(Y);var T=Y.Y;try{var E=T.screenX;var L=T.screenY}catch(e){}try{var r=T.outerWidth;var l=T.outerHeight}catch(e){}try{var P=T.innerWidth;var V=T.innerHeight}catch(e){}try{var v=T.screenLeft;var H=T.screenTop}catch(e){}try{P=T.innerWidth,V=T.innerHeight}catch(e){}try{var G=T.screen.availWidth;var F=T.screen.availTop}catch(e){}T=[v,H,E,L,G,F,r,l,P,V];E=qU8(!1,Y.Y.top);L={};var N=N===void 0?g.Dc:N;r=new OA;"SVGElement"in N&&"createElementNS"in N.document&&r.set(0);l=lzV();l["allow-top-navigation-by-user-activation"]&&r.set(1);l["allow-popups-to-escape-sandbox"]&&r.set(2);N.crypto&&N.crypto.subtle&&r.set(3);"TextDecoder"in N&&"TextEncoder"in N&&r.set(4);N=jz3(r);Y=(L.bc=N,L.bih=E.height,L.biw=E.width,L.brdim=T.join(),L.vis=wv(Y.T),L.wgl=!!lx.WebGLRenderingContext,L);A=c.call(A,d,Y);A.ca_type="image";U&&(A.bid=U);return A}; lr=function(U){var Y={};Y.dt=qvc;Y.flash="0";a:{try{var A=U.Y.top.location.href}catch(P){U=2;break a}U=A?A===U.T.location.href?0:1:2}Y=(Y.frm=U,Y);try{Y.u_tz=-(new Date).getTimezoneOffset();var c=c===void 0?lx:c;try{var d=c.history.length}catch(P){d=0}Y.u_his=d;var T;Y.u_h=(T=lx.screen)==null?void 0:T.height;var E;Y.u_w=(E=lx.screen)==null?void 0:E.width;var L;Y.u_ah=(L=lx.screen)==null?void 0:L.availHeight;var r;Y.u_aw=(r=lx.screen)==null?void 0:r.availWidth;var l;Y.u_cd=(l=lx.screen)==null?void 0: l.colorDepth}catch(P){}return Y}; Uvl=function(){if(!CF3)return null;var U=CF3();return"open"in U?U:null}; g.$G=function(U){switch(VB(U)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; VB=function(U){return U&&"status"in U?U.status:-1}; g.vn=function(U,Y){typeof U==="function"&&(U=g.qY(U));return window.setTimeout(U,Y)}; g.Hn=function(U,Y){typeof U==="function"&&(U=g.qY(U));return window.setInterval(U,Y)}; g.Gw=function(U){window.clearTimeout(U)}; g.Wn=function(U){window.clearInterval(U)}; g.ir=function(U){U=wF(U);return typeof U==="string"&&U==="false"?!1:!!U}; g.Jf=function(U,Y){U=wF(U);return U===void 0&&Y!==void 0?Y:Number(U||0)}; Fm=function(){return g.DQ("EXPERIMENTS_TOKEN","")}; wF=function(U){return g.DQ("EXPERIMENT_FLAGS",{})[U]}; jr=function(){for(var U=[],Y=g.DQ("EXPERIMENTS_FORCED_FLAGS",{}),A=g.J(Object.keys(Y)),c=A.next();!c.done;c=A.next())c=c.value,U.push({key:c,value:String(Y[c])});A=g.DQ("EXPERIMENT_FLAGS",{});c=g.J(Object.keys(A));for(var d=c.next();!d.done;d=c.next())d=d.value,d.startsWith("force_")&&Y[d]===void 0&&U.push({key:d,value:String(A[d])});return U}; NL=function(U,Y,A,c,d,T,E,L){function r(){(l&&"readyState"in l?l.readyState:0)===4&&Y&&g.qY(Y)(l)} A=A===void 0?"GET":A;c=c===void 0?"":c;L=L===void 0?!1:L;var l=Uvl();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",r,!1):l.onreadystatechange=r;g.ir("debug_forward_web_query_parameters")&&(U=YAc(U));l.open(A,U,!0);T&&(l.responseType=T);E&&(l.withCredentials=!0);A=A==="POST"&&(window.FormData===void 0||!(c instanceof FormData));if(d=AZ3(U,d))for(var P in d)l.setRequestHeader(P,d[P]),"content-type"===P.toLowerCase()&&(A=!1);A&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(L&&"setAttributionReporting"in XMLHttpRequest.prototype){U={eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(U)}catch(V){CF(V)}}l.send(c);return l}; AZ3=function(U,Y){Y=Y===void 0?{}:Y;var A=o4(U),c=g.DQ("INNERTUBE_CLIENT_NAME"),d=g.ir("web_ajax_ignore_global_headers_if_set"),T;for(T in cZX){var E=g.DQ(cZX[T]),L=T==="X-Goog-AuthUser"||T==="X-Goog-PageId";T!=="X-Goog-Visitor-Id"||E||(E=g.DQ("VISITOR_DATA"));var r;if(!(r=!E)){if(!(r=A||(g.tD(U)?!1:!0))){r=U;var l;if(l=g.ir("add_auth_headers_to_remarketing_google_dot_com_ping")&&T==="Authorization"&&(c==="TVHTML5"||c==="TVHTML5_UNPLUGGED"||c==="TVHTML5_SIMPLY")&&uJX(r))r=eI(r)||"",r=r.split("/"), r="/"+(r.length>1?r[1]:""),l=r==="/pagead";r=l?!0:!1}r=!r}r||d&&Y[T]!==void 0||c==="TVHTML5_UNPLUGGED"&&L||(Y[T]=E)}"X-Goog-EOM-Visitor-Id"in Y&&"X-Goog-Visitor-Id"in Y&&delete Y["X-Goog-Visitor-Id"];if(A||!g.tD(U))Y["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(A||!g.tD(U)){try{var P=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(V){}P&&(Y["X-YouTube-Time-Zone"]=P)}document.location.hostname.endsWith("youtubeeducation.com")||!A&&g.tD(U)||(Y["X-YouTube-Ad-Signals"]= YG(Pn()));return Y}; er=function(U,Y){Y.method="POST";Y.postParams||(Y.postParams={});return g.tf(U,Y)}; EC8=function(U,Y){if(window.fetch&&Y.format!=="XML"){var A={method:Y.method||"GET",credentials:"same-origin"};Y.headers&&(A.headers=Y.headers);Y.priority&&(A.priority=Y.priority);U=dv4(U,Y);var c=Tq3(U,Y);c&&(A.body=c);Y.withCredentials&&(A.credentials="include");var d=Y.context||g.Dc,T=!1,E;fetch(U,A).then(function(L){if(!T){T=!0;E&&g.Gw(E);var r=L.ok,l=function(P){P=P||{};r?Y.onSuccess&&Y.onSuccess.call(d,P,L):Y.onError&&Y.onError.call(d,P,L);Y.onFinish&&Y.onFinish.call(d,P,L)}; (Y.format||"JSON")==="JSON"&&(r||L.status>=400&&L.status<500)?L.json().then(l,function(){l(null)}):l(null)}}).catch(function(){Y.onError&&Y.onError.call(d,{},{})}); U=Y.timeout||0;Y.onFetchTimeout&&U>0&&(E=g.vn(function(){T||(T=!0,g.Gw(E),Y.onFetchTimeout.call(Y.context||g.Dc))},U))}else g.tf(U,Y)}; g.tf=function(U,Y){var A=Y.format||"JSON";U=dv4(U,Y);var c=Tq3(U,Y),d=!1,T=oCl(U,function(r){if(!d){d=!0;L&&g.Gw(L);var l=g.$G(r),P=null,V=400<=r.status&&r.status<500,v=500<=r.status&&r.status<600;if(l||V||v)P=zp3(U,A,r,Y.convertToSafeHtml);l&&(l=LIc(A,r,P));P=P||{};V=Y.context||g.Dc;l?Y.onSuccess&&Y.onSuccess.call(V,r,P):Y.onError&&Y.onError.call(V,r,P);Y.onFinish&&Y.onFinish.call(V,r,P)}},Y.method,c,Y.headers,Y.responseType,Y.withCredentials); c=Y.timeout||0;if(Y.onTimeout&&c>0){var E=Y.onTimeout;var L=g.vn(function(){d||(d=!0,T.abort(),g.Gw(L),E.call(Y.context||g.Dc,T))},c)}return T}; dv4=function(U,Y){Y.includeDomain&&(U=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+U);var A=g.DQ("XSRF_FIELD_NAME");if(Y=Y.urlParams)Y[A]&&delete Y[A],U=Tw(U,Y);return U}; Tq3=function(U,Y){var A=g.DQ("XSRF_FIELD_NAME"),c=g.DQ("XSRF_TOKEN"),d=Y.postBody||"",T=Y.postParams,E=g.DQ("XSRF_FIELD_NAME"),L;Y.headers&&(L=Y.headers["Content-Type"]);Y.excludeXsrf||g.tD(U)&&!Y.withCredentials&&g.tD(U)!==document.location.hostname||Y.method!=="POST"||L&&L!=="application/x-www-form-urlencoded"||Y.postParams&&Y.postParams[E]||(T||(T={}),T[A]=c);(g.ir("ajax_parse_query_data_only_when_filled")&&T&&Object.keys(T).length>0||T)&&typeof d==="string"&&(d=Af(d),g.cG(d,T),d=Y.postBodyFormat&& Y.postBodyFormat==="JSON"?JSON.stringify(d):g.aw(d));T=d||T&&!g.qF(T);!rZE&&T&&Y.method!=="POST"&&(rZE=!0,g.KF(Error("AJAX request with postData should use POST")));return d}; zp3=function(U,Y,A,c){var d=null;switch(Y){case "JSON":try{var T=A.responseText}catch(E){throw c=Error("Error reading responseText"),c.params=U,CF(c),E;}U=A.getResponseHeader("Content-Type")||"";T&&U.indexOf("json")>=0&&(T.substring(0,5)===")]}'\n"&&(T=T.substring(5)),d=JSON.parse(T));break;case "XML":if(U=(U=A.responseXML)?lG9(U):null)d={},g.MF(U.getElementsByTagName("*"),function(E){d[E.tagName]=PQX(E)})}c&&Vk9(d); return d}; Vk9=function(U){if(g.Yz(U))for(var Y in U)Y==="html_content"||m43(Y,"_html")?U[Y]=Ca(U[Y]):Vk9(U[Y])}; LIc=function(U,Y,A){if(Y&&Y.status===204)return!0;switch(U){case "JSON":return!!A;case "XML":return Number(A&&A.return_code)===0;case "RAW":return!0;default:return!!A}}; lG9=function(U){return U?(U=("responseXML"in U?U.responseXML:U).getElementsByTagName("root"))&&U.length>0?U[0]:null:null}; PQX=function(U){var Y="";g.MF(U.childNodes,function(A){Y+=A.nodeValue}); return Y}; YAc=function(U){var Y=window.location.search,A=g.tD(U);g.ir("debug_handle_relative_url_for_query_forward_killswitch")||!A&&o4(U)&&(A=document.location.hostname);var c=eI(U);c=(A=A&&(A.endsWith("youtube.com")||A.endsWith("youtube-nocookie.com")))&&c&&c.startsWith("/api/");if(!A||c)return U;var d=Af(Y),T={};g.MF($vc,function(E){d[E]&&(T[E]=d[E])}); return Es(U,T)}; Xm=function(U,Y){var A=g.YR(Y),c;return(new g.tS(function(d,T){A.onSuccess=function(E){g.$G(E)?d(new vCX(E)):T(new Bn("Request failed, status="+VB(E),"net.badstatus",E))}; A.onError=function(E){T(new Bn("Unknown request error","net.unknown",E))}; A.onTimeout=function(E){T(new Bn("Request timed out","net.timeout",E))}; c=g.tf(U,A)})).TX(function(d){if(d instanceof hS){var T; (T=c)==null||T.abort()}return XD(d)})}; g.kG=function(U,Y,A,c){function d(L,r,l){return L.TX(function(P){if(r<=0||VB(P.xhr)===403)return XD(new Bn("Request retried too many times","net.retryexhausted",P.xhr,P));P=Math.pow(2,A-r+1)*l;var V=E>0?Math.min(E,P):P;return T(l).then(function(){return d(Xm(U,Y),r-1,V)})})} function T(L){return new g.tS(function(r){setTimeout(r,L)})} var E=E===void 0?-1:E;return d(Xm(U,Y),A-1,c)}; Bn=function(U,Y,A){lw.call(this,U+", errorCode="+Y);this.errorCode=Y;this.xhr=A;this.name="PromiseAjaxError"}; vCX=function(U){this.xhr=U}; R4=function(U){this.Y=U===void 0?null:U;this.T=0;this.W=null}; a4=function(U){var Y=new R4;U=U===void 0?null:U;Y.T=2;Y.W=U===void 0?null:U;return Y}; xG=function(U){var Y=new R4;U=U===void 0?null:U;Y.T=1;Y.W=U===void 0?null:U;return Y}; g.Sr=function(U,Y,A,c,d){fl||hf.set(""+U,Y,{OX:A,path:"/",domain:c===void 0?"youtube.com":c,secure:d===void 0?!1:d})}; g.ML=function(U,Y){if(!fl)return hf.get(""+U,Y)}; g.br=function(U,Y,A){fl||hf.remove(""+U,Y===void 0?"/":Y,A===void 0?"youtube.com":A)}; HB9=function(){if(g.ir("embeds_web_enable_cookie_detection_fix")){if(!g.Dc.navigator.cookieEnabled)return!1}else if(!hf.isEnabled())return!1;if(!hf.isEmpty())return!0;g.ir("embeds_web_enable_cookie_detection_fix")?hf.set("TESTCOOKIESENABLED","1",{OX:60,etE:"none",secure:!0}):hf.set("TESTCOOKIESENABLED","1",{OX:60});if(hf.get("TESTCOOKIESENABLED")!=="1")return!1;hf.remove("TESTCOOKIESENABLED");return!0}; g.O=function(U,Y){if(U)return U[Y.name]}; pl=function(U){var Y=g.DQ("INNERTUBE_HOST_OVERRIDE");Y&&(U=String(Y)+String(B4(U)));return U}; G6l=function(U){var Y={};g.ir("json_condensed_response")&&(Y.prettyPrint="false");return U=Es(U,Y)}; QB=function(U,Y){var A=A===void 0?{}:A;U={method:Y===void 0?"POST":Y,mode:o4(U)?"same-origin":"cors",credentials:o4(U)?"same-origin":"include"};Y={};for(var c=g.J(Object.keys(A)),d=c.next();!d.done;d=c.next())d=d.value,A[d]&&(Y[d]=A[d]);Object.keys(Y).length>0&&(U.headers=Y);return U}; ZD=function(){var U=/Chrome\/(\d+)/.exec(g.tF());return U?parseFloat(U[1]):NaN}; Os=function(){var U=/\sCobalt\/(\S+)\s/.exec(g.tF());if(!U)return NaN;var Y=[];U=g.J(U[1].split("."));for(var A=U.next();!A.done;A=U.next())A=parseInt(A.value,10),A>=0&&Y.push(A);return parseFloat(Y.join("."))}; gF=function(){return g.mm("android")&&g.mm("chrome")&&!(g.mm("trident/")||g.mm("edge/"))&&!g.mm("cobalt")}; WIv=function(){return g.mm("armv7")||g.mm("aarch64")||g.mm("android")}; g.yB=function(){return g.mm("cobalt")}; nl=function(){return g.mm("cobalt")&&g.mm("appletv")}; DD=function(){return g.mm("(ps3; leanback shell)")||g.mm("ps3")&&g.yB()}; wPc=function(){return g.mm("(ps4; leanback shell)")||g.mm("ps4")&&g.yB()}; g.iBX=function(){return g.yB()&&(g.mm("ps4 vr")||g.mm("ps4 pro vr"))}; I4=function(){var U=/WebKit\/([0-9]+)/.exec(g.tF());return!!(U&&parseInt(U[1],10)>=600)}; ur=function(){var U=/WebKit\/([0-9]+)/.exec(g.tF());return!!(U&&parseInt(U[1],10)>=602)}; JZX=function(){return g.mm("iemobile")||g.mm("windows phone")&&g.mm("edge")}; Cl=function(){return(Kl||qL)&&g.mm("applewebkit")&&!g.mm("version")&&(!g.mm("safari")||g.mm("gsa/"))}; Yx=function(){return g.UI&&g.mm("version/")}; Au=function(){return g.mm("smart-tv")&&g.mm("samsung")}; g.mm=function(U){var Y=g.tF();return Y?Y.toLowerCase().indexOf(U)>=0:!1}; c5=function(){return T2X()||Cl()||Yx()?!0:g.DQ("EOM_VISITOR_DATA")?!1:!0}; d3=function(U,Y){return Y===void 0||Y===null?U:Y==="1"||Y===!0||Y===1||Y==="True"?!0:!1}; T0=function(U,Y,A){for(var c in A)if(A[c]==Y)return A[c];return U}; EI=function(U,Y){return Y===void 0||Y===null?U:Number(Y)}; ob=function(U,Y){return Y===void 0||Y===null?U:Y.toString()}; z0=function(U,Y){if(Y){if(U==="fullwidth")return Infinity;if(U==="fullheight")return 0}return U&&(Y=U.match(FIc))&&(U=Number(Y[2]),Y=Number(Y[1]),!isNaN(U)&&!isNaN(Y)&&U>0)?Y/U:NaN}; LU=function(U){var Y=U.docid||U.video_id||U.videoId||U.id;if(Y)return Y;Y=U.raw_player_response;Y||(U=U.player_response)&&(Y=JSON.parse(U));return Y&&Y.videoDetails&&Y.videoDetails.videoId||null}; jME=function(U){return r3(U,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.lH=function(U){return U==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||U==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; r3=function(U,Y){Y=(Y===void 0?0:Y)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Y="EMBEDDED_PLAYER_MODE_PFL");var A=U.raw_embedded_player_response;if(!A&&(U=U.embedded_player_response))try{A=JSON.parse(U)}catch(c){return Y}return A?T0(Y,A.embeddedPlayerMode,Nqc):Y}; Vo=function(U){lw.call(this,U.message||U.description||U.name);this.isMissing=U instanceof P5;this.isTimeout=U instanceof Bn&&U.errorCode=="net.timeout";this.isCanceled=U instanceof hS}; P5=function(){lw.call(this,"Biscotti ID is missing from server")}; tkc=function(){if(g.ir("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!c5())return Error("User has not consented - not fetching biscotti id.");var U=g.DQ("PLAYER_VARS",{});if(g.Cj(U,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(jME(U))return Error("Biscotti id fetching has been disabled for pfl.")}; k69=function(){var U=tkc();if(U!==void 0)return XD(U);$x||($x=Xm("//googleads.g.doubleclick.net/pagead/id",ep3).then(BqX).TX(function(Y){return XP3(2,Y)})); return $x}; BqX=function(U){U=U.xhr.responseText;if(!vG(U,")]}'"))throw new P5;U=JSON.parse(U.substr(4));if((U.type||1)>1)throw new P5;U=U.id;O_X(U);$x=xG(U);RpS(18E5,2);return U}; XP3=function(U,Y){Y=new Vo(Y);O_X("");$x=a4(Y);U>0&&RpS(12E4,U-1);throw Y;}; RpS=function(U,Y){g.vn(function(){Xm("//googleads.g.doubleclick.net/pagead/id",ep3).then(BqX,function(A){return XP3(Y,A)}).TX(g.Vm)},U)}; aGc=function(){try{var U=g.u8("yt.ads.biscotti.getId_");return U?U():k69()}catch(Y){return XD(Y)}}; sMl=function(U){U&&(U.dataset?U.dataset[xvS()]="true":TL9(U))}; fGX=function(U){return U?U.dataset?U.dataset[xvS()]:U.getAttribute("data-loaded"):null}; xvS=function(){return hpX.loaded||(hpX.loaded="loaded".replace(/\-([a-z])/g,function(U,Y){return Y.toUpperCase()}))}; SAc=function(){var U=document;if("visibilityState"in U)return U.visibilityState;var Y=v5+"VisibilityState";if(Y in U)return U[Y]}; H5=function(U,Y){var A;Cx(U,function(c){A=Y[c];return!!A}); return A}; G0=function(U){if(U.requestFullscreen)U=U.requestFullscreen(void 0);else if(U.webkitRequestFullscreen)U=U.webkitRequestFullscreen();else if(U.mozRequestFullScreen)U=U.mozRequestFullScreen();else if(U.msRequestFullscreen)U=U.msRequestFullscreen();else if(U.webkitEnterFullscreen)U=U.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return U instanceof Promise?U:Promise.resolve()}; iH=function(U){var Y;g.W5()?w3()==U&&(Y=document):Y=U;return Y&&(U=H5(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Y))?(Y=U.call(Y),Y instanceof Promise?Y:Promise.resolve()):Promise.resolve()}; Mkv=function(U){return g.$z(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Y){return"on"+Y.toLowerCase()in U})}; bB8=function(){var U=document;return g.$z(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(Y){return"on"+Y.toLowerCase()in U})}; g.W5=function(){return!!H5(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; w3=function(U){U=U===void 0?!1:U;var Y=H5(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(U)for(;Y&&Y.shadowRoot;)Y=Y.shadowRoot.fullscreenElement;return Y?Y:null}; Ju=function(U){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(U=U||window.event){this.event=U;for(var Y in U)Y in pPX||(this[Y]=U[Y]);this.scale=U.scale;this.rotation=U.rotation;var A=U.target||U.srcElement;A&&A.nodeType==3&&(A=A.parentNode);this.target=A;var c=U.relatedTarget; if(c)try{c=c.nodeName?c:null}catch(d){c=null}else this.type=="mouseover"?c=U.fromElement:this.type=="mouseout"&&(c=U.toElement);this.relatedTarget=c;this.clientX=U.clientX!=void 0?U.clientX:U.pageX;this.clientY=U.clientY!=void 0?U.clientY:U.pageY;this.keyCode=U.keyCode?U.keyCode:U.which;this.charCode=U.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=U.altKey;this.ctrlKey=U.ctrlKey;this.shiftKey=U.shiftKey;this.metaKey=U.metaKey;this.Y=U.pageX;this.T=U.pageY}}catch(d){}}; QMS=function(U){if(document.body&&document.documentElement){var Y=document.body.scrollTop+document.documentElement.scrollTop;U.Y=U.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);U.T=U.clientY+Y}}; ZBX=function(U,Y,A,c){c=c===void 0?{}:c;U.addEventListener&&(Y!="mouseenter"||"onmouseenter"in document?Y!="mouseleave"||"onmouseenter"in document?Y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Y="MozMousePixelScroll"):Y="mouseout":Y="mouseover");return Kj(FC,function(d){var T=typeof d[4]==="boolean"&&d[4]==!!c,E=g.Yz(d[4])&&g.Yz(c)&&g.U8(d[4],c);return!!d.length&&d[0]==U&&d[1]==Y&&d[2]==A&&(T||E)})}; g.jh=function(U,Y,A,c){c=c===void 0?{}:c;if(!U||!U.addEventListener&&!U.attachEvent)return"";var d=ZBX(U,Y,A,c);if(d)return d;d=++OBv.count+"";var T=!(Y!="mouseenter"&&Y!="mouseleave"||!U.addEventListener||"onmouseenter"in document);var E=T?function(L){L=new Ju(L);if(!EU(L.relatedTarget,function(r){return r==U},!0))return L.currentTarget=U,L.type=Y,A.call(U,L)}:function(L){L=new Ju(L); L.currentTarget=U;return A.call(U,L)}; E=g.qY(E);U.addEventListener?(Y=="mouseenter"&&T?Y="mouseover":Y=="mouseleave"&&T?Y="mouseout":Y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Y="MozMousePixelScroll"),mvX()||typeof c==="boolean"?U.addEventListener(Y,E,c):U.addEventListener(Y,E,!!c.capture)):U.attachEvent("on"+Y,E);FC[d]=[U,Y,A,E,c];return d}; yZE=function(U){return gC3(U,function(Y){return g.E4(Y,"ytp-ad-has-logging-urls")})}; gC3=function(U,Y){var A=document.body||document;return g.jh(A,"click",function(c){var d=EU(c.target,function(T){return T===A||Y(T)},!0); d&&d!==A&&!d.disabled&&(c.currentTarget=d,U.call(d,c))})}; g.NR=function(U){U&&(typeof U=="string"&&(U=[U]),g.MF(U,function(Y){if(Y in FC){var A=FC[Y],c=A[0],d=A[1],T=A[3];A=A[4];c.removeEventListener?mvX()||typeof A==="boolean"?c.removeEventListener(d,T,A):c.removeEventListener(d,T,!!A.capture):c.detachEvent&&c.detachEvent("on"+d,T);delete FC[Y]}}))}; tu=function(U){for(var Y in FC)FC[Y][0]==U&&g.NR(Y)}; eh=function(U){U=U||window.event;var Y;U.composedPath&&typeof U.composedPath==="function"?Y=U.composedPath():Y=U.path;Y&&Y.length?U=Y[0]:(U=U||window.event,U=U.target||U.srcElement,U.nodeType==3&&(U=U.parentNode));return U}; B5=function(U){this.G=U;this.Y=null;this.j=0;this.J=null;this.K=0;this.T=[];for(U=0;U<4;U++)this.T.push(0);this.W=0;this.Hw=g.jh(window,"mousemove",(0,g.dL)(this.X,this));this.Z=g.Hn((0,g.dL)(this.Pw,this),25)}; XC=function(U){g.p.call(this);this.Z=[];this.AP=U||this}; kx=function(U,Y,A,c){for(var d=0;d0?A:0;A=c?Date.now()+c*1E3:0;if((c=c?(0,g.xx)():sI())&&window.JSON){typeof Y!=="string"&&(Y=JSON.stringify(Y,void 0));try{c.set(U,Y,A)}catch(d){c.remove(U)}}}; g.hu=function(U){var Y=sI(),A=(0,g.xx)();if(!Y&&!A||!window.JSON)return null;try{var c=Y.get(U)}catch(d){}if(typeof c!=="string")try{c=A.get(U)}catch(d){}if(typeof c!=="string")return null;try{c=JSON.parse(c,void 0)}catch(d){}return c}; IG9=function(){var U=(0,g.xx)();if(U&&(U=U.T("yt-player-quality")))return U.creation}; g.Sh=function(U){try{var Y=sI(),A=(0,g.xx)();Y&&Y.remove(U);A&&A.remove(U)}catch(c){}}; g.MR=function(){return g.hu("yt-remote-session-screen-id")}; u0Y=function(U){var Y=this;this.T=void 0;this.Y=!1;U.addEventListener("beforeinstallprompt",function(A){A.preventDefault();Y.T=A}); U.addEventListener("appinstalled",function(){Y.Y=!0},{once:!0})}; bH=function(){if(!g.Dc.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Dc.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Dc.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Dc.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Dc.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(U){return"WEB_DISPLAY_MODE_UNKNOWN"}}; pU=function(){this.Q1=!0}; KIc=function(){pU.instance||(pU.instance=new pU);return pU.instance}; qAY=function(U){switch(U){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}}; CQc=function(){this.Y=g.DQ("ALT_PREF_COOKIE_NAME","PREF");this.T=g.DQ("ALT_PREF_COOKIE_DOMAIN","youtube.com");var U=g.ML(this.Y);U&&this.parse(U)}; g.Zo=function(){Qo||(Qo=new CQc);return Qo}; g.OI=function(U,Y){return!!((UQ4("f"+(Math.floor(Y/31)+1))||0)&1<0;)switch(U=lW.shift(),U.type){case "ERROR":oE.a4(U.payload);break;case "EVENT":oE.logEvent(U.eventType,U.payload)}}; Vb=function(U){PA||(oE?oE.a4(U):(lW.push({type:"ERROR",payload:U}),lW.length>10&&lW.shift()))}; $6=function(U,Y){PA||(oE?oE.logEvent(U,Y):(lW.push({type:"EVENT",eventType:U,payload:Y}),lW.length>10&&lW.shift()))}; vA=function(U){if(U.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; HA=function(U){return U.substr(0,U.indexOf(":"))||U}; g.G1=function(U,Y,A,c,d){Y=Y===void 0?{}:Y;A=A===void 0?zf3[U]:A;c=c===void 0?LD3[U]:c;d=d===void 0?rTX[U]:d;g.Do.call(this,A,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:U},Y));this.type=U;this.message=A;this.level=c;this.Y=d;Object.setPrototypeOf(this,g.G1.prototype)}; WA=function(U,Y){g.G1.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Y,foundObjectStores:U},zf3.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,WA.prototype)}; w7=function(U,Y){var A=Error.call(this);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.index=U;this.objectStore=Y;Object.setPrototypeOf(this,w7.prototype)}; JQ=function(U,Y,A,c){Y=HA(Y);var d=U instanceof Error?U:Error("Unexpected error: "+U);if(d instanceof g.G1)return d;U={objectStoreNames:A,dbName:Y,dbVersion:c};if(d.name==="QuotaExceededError")return new g.G1("QUOTA_EXCEEDED",U);if(g.iW&&d.name==="UnknownError")return new g.G1("QUOTA_MAYBE_EXCEEDED",U);if(d instanceof w7)return new g.G1("MISSING_INDEX",Object.assign({},U,{objectStore:d.objectStore,index:d.index}));if(d.name==="InvalidStateError"&&lUX.some(function(T){return d.message.includes(T)}))return new g.G1("EXECUTE_TRANSACTION_ON_CLOSED_DB", U); if(d.name==="AbortError")return new g.G1("UNKNOWN_ABORT",U,d.message);d.args=[Object.assign({},U,{name:"IdbError",W6:d.name})];d.level="WARNING";return d}; g.F4=function(U,Y,A){var c=Eu();return new g.G1("IDB_NOT_SUPPORTED",{context:{caller:U,publicName:Y,version:A,hasSucceededOnce:c==null?void 0:c.hasSucceededOnce}})}; Pg8=function(U){if(!U)throw Error();throw U;}; Vn4=function(U){return U}; jA=function(U){this.Y=U}; g.NC=function(U){function Y(d){if(c.state.status==="PENDING"){c.state={status:"REJECTED",reason:d};d=g.J(c.T);for(var T=d.next();!T.done;T=d.next())T=T.value,T()}} function A(d){if(c.state.status==="PENDING"){c.state={status:"FULFILLED",value:d};d=g.J(c.Y);for(var T=d.next();!T.done;T=d.next())T=T.value,T()}} var c=this;this.state={status:"PENDING"};this.Y=[];this.T=[];U=U.Y;try{U(A,Y)}catch(d){Y(d)}}; $Q8=function(U,Y,A,c,d){try{if(U.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var T=A(U.state.value);T instanceof g.NC?tQ(U,Y,T,c,d):c(T)}catch(E){d(E)}}; vcX=function(U,Y,A,c,d){try{if(U.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var T=A(U.state.reason);T instanceof g.NC?tQ(U,Y,T,c,d):c(T)}catch(E){d(E)}}; tQ=function(U,Y,A,c,d){Y===A?d(new TypeError("Circular promise chain detected.")):A.then(function(T){T instanceof g.NC?tQ(U,Y,T,c,d):c(T)},function(T){d(T)})}; HZE=function(U,Y,A){function c(){A(U.error);T()} function d(){Y(U.result);T()} function T(){try{U.removeEventListener("success",d),U.removeEventListener("error",c)}catch(E){}} U.addEventListener("success",d);U.addEventListener("error",c)}; GxY=function(U){return new Promise(function(Y,A){HZE(U,Y,A)})}; eA=function(U){return new g.NC(new jA(function(Y,A){HZE(U,Y,A)}))}; BA=function(U,Y){return new g.NC(new jA(function(A,c){function d(){var T=U?Y(U):null;T?T.then(function(E){U=E;d()},c):A()} d()}))}; WDc=function(U,Y){this.request=U;this.cursor=Y}; wF3=function(U){return eA(U).then(function(Y){return Y?new WDc(U,Y):null})}; g.iZ8=function(U){U.cursor.continue(void 0);return wF3(U.request)}; JT8=function(U,Y){this.Y=U;this.options=Y;this.transactionCount=0;this.W=Math.round((0,g.y)());this.T=!1}; g.k6=function(U,Y,A){U=U.Y.createObjectStore(Y,A);return new X4(U)}; RE=function(U,Y){U.Y.objectStoreNames.contains(Y)&&U.Y.deleteObjectStore(Y)}; g.fg=function(U,Y,A){return g.aE(U,[Y],{mode:"readwrite",kt:!0},function(c){return g.x6(c.objectStore(Y),A)})}; g.aE=function(U,Y,A,c){var d,T,E,L,r,l,P,V,v,H,G,F;return g.S(function(N){switch(N.T){case 1:var e={mode:"readonly",kt:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof A==="string"?e.mode=A:Object.assign(e,A);d=e;U.transactionCount++;T=d.kt?3:1;E=0;case 2:if(L){N.uY(4);break}E++;r=Math.round((0,g.y)());g.J3(N,5);l=U.Y.transaction(Y,d.mode);e=new hQ(l);e=FDV(e,c);return g.x(N,e,7);case 7:return P=N.Y,V=Math.round((0,g.y)()),juX(U,r,V,E,void 0,Y.join(),d),N.return(P);case 5:v=g.XE(N);H=Math.round((0,g.y)()); G=JQ(v,U.Y.name,Y.join(),U.Y.version);if((F=G instanceof g.G1&&!G.Y)||E>=T)juX(U,r,H,E,G,Y.join(),d),L=G;N.uY(2);break;case 4:return N.return(Promise.reject(L))}})}; juX=function(U,Y,A,c,d,T,E){Y=A-Y;d?(d instanceof g.G1&&(d.type==="QUOTA_EXCEEDED"||d.type==="QUOTA_MAYBE_EXCEEDED")&&$6("QUOTA_EXCEEDED",{dbName:HA(U.Y.name),objectStoreNames:T,transactionCount:U.transactionCount,transactionMode:E.mode}),d instanceof g.G1&&d.type==="UNKNOWN_ABORT"&&(A-=U.W,A<0&&A>=2147483648&&(A=0),$6("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:T,transactionDuration:Y,transactionCount:U.transactionCount,dbDuration:A}),U.T=!0),NK8(U,!1,c,T,Y,E.tag),Vb(d)):NK8(U,!0,c,T,Y, E.tag)}; NK8=function(U,Y,A,c,d,T){$6("TRANSACTION_ENDED",{objectStoreNames:c,connectionHasUnknownAbortedTransaction:U.T,duration:d,isSuccessful:Y,tryCount:A,tag:T===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":T})}; X4=function(U){this.Y=U}; g.SA=function(U,Y,A){U.Y.createIndex(Y,A,{unique:!1})}; tnX=function(U,Y){return g.MC(U,{query:Y},function(A){return A.delete().then(function(){return g.bW(A)})}).then(function(){})}; ef3=function(U,Y,A){var c=[];return g.MC(U,{query:Y},function(d){if(!(A!==void 0&&c.length>=A))return c.push(d.getValue()),g.bW(d)}).then(function(){return c})}; XFY=function(U){return"getAllKeys"in IDBObjectStore.prototype?eA(U.Y.getAllKeys(void 0,void 0)):BKc(U)}; BKc=function(U){var Y=[];return g.kxE(U,{query:void 0},function(A){Y.push(A.cursor.primaryKey);return g.iZ8(A)}).then(function(){return Y})}; g.x6=function(U,Y,A){return eA(U.Y.put(Y,A))}; g.MC=function(U,Y,A){U=U.Y.openCursor(Y.query,Y.direction);return pg(U).then(function(c){return BA(c,A)})}; g.kxE=function(U,Y,A){var c=Y.query;Y=Y.direction;U="openKeyCursor"in IDBObjectStore.prototype?U.Y.openKeyCursor(c,Y):U.Y.openCursor(c,Y);return wF3(U).then(function(d){return BA(d,A)})}; hQ=function(U){var Y=this;this.Y=U;this.W=new Map;this.T=!1;this.done=new Promise(function(A,c){Y.Y.addEventListener("complete",function(){A()}); Y.Y.addEventListener("error",function(d){d.currentTarget===d.target&&c(Y.Y.error)}); Y.Y.addEventListener("abort",function(){var d=Y.Y.error;if(d)c(d);else if(!Y.T){d=g.G1;for(var T=Y.Y.objectStoreNames,E=[],L=0;L=A))return c.push(d.getValue()),g.bW(d)}).then(function(){return c})}; g.Qb=function(U,Y,A){U=U.Y.openCursor(Y.query===void 0?null:Y.query,Y.direction===void 0?"next":Y.direction);return pg(U).then(function(c){return BA(c,A)})}; ZN=function(U,Y){this.request=U;this.cursor=Y}; pg=function(U){return eA(U).then(function(Y){return Y?new ZN(U,Y):null})}; g.bW=function(U){U.cursor.continue(void 0);return pg(U.request)}; xQ9=function(U,Y,A){return new Promise(function(c,d){function T(){v||(v=new JT8(E.result,{closed:V}));return v} var E=Y!==void 0?self.indexedDB.open(U,Y):self.indexedDB.open(U);var L=A.blocked,r=A.blocking,l=A.K6T,P=A.upgrade,V=A.closed,v;E.addEventListener("upgradeneeded",function(H){try{if(H.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(E.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");H.dataLoss&&H.dataLoss!=="none"&&$6("IDB_DATA_CORRUPTED",{reason:H.dataLossMessage||"unknown reason",dbName:HA(U)});var G=T(),F=new hQ(E.transaction); P&&P(G,function(N){return H.oldVersion=N},F); F.done.catch(function(N){d(N)})}catch(N){d(N)}}); E.addEventListener("success",function(){var H=E.result;r&&H.addEventListener("versionchange",function(){r(T())}); H.addEventListener("close",function(){$6("IDB_UNEXPECTEDLY_CLOSED",{dbName:HA(U),dbVersion:H.version});l&&l()}); c(T())}); E.addEventListener("error",function(){d(E.error)}); L&&E.addEventListener("blocked",function(){L()})})}; suc=function(U,Y,A){A=A===void 0?{}:A;return xQ9(U,Y,A)}; Ou=function(U,Y){Y=Y===void 0?{}:Y;var A,c,d,T;return g.S(function(E){if(E.T==1)return g.J3(E,2),A=self.indexedDB.deleteDatabase(U),c=Y,(d=c.blocked)&&A.addEventListener("blocked",function(){d()}),g.x(E,GxY(A),4); if(E.T!=2)return g.t3(E,0);T=g.XE(E);throw JQ(T,U,"",-1);})}; mv=function(U,Y){this.name=U;this.options=Y;this.W=!0;this.K=this.j=0}; fUV=function(U,Y){return new g.G1("INCOMPATIBLE_DB_VERSION",{dbName:U.name,oldVersion:U.options.version,newVersion:Y})}; g.g7=function(U,Y){if(!Y)throw g.F4("openWithToken",HA(U.name));return U.open()}; hfc=function(U,Y){var A;return g.S(function(c){if(c.T==1)return g.x(c,g.g7(yb,Y),2);A=c.Y;return c.return(g.aE(A,["databases"],{kt:!0,mode:"readwrite"},function(d){var T=d.objectStore("databases");return T.get(U.actualName).then(function(E){if(E?U.actualName!==E.actualName||U.publicName!==E.publicName||U.userIdentifier!==E.userIdentifier:1)return g.x6(T,U).then(function(){})})}))})}; ng=function(U,Y){var A;return g.S(function(c){if(c.T==1)return U?g.x(c,g.g7(yb,Y),2):c.return();A=c.Y;return c.return(A.delete("databases",U))})}; S4c=function(U,Y){var A,c;return g.S(function(d){return d.T==1?(A=[],g.x(d,g.g7(yb,Y),2)):d.T!=3?(c=d.Y,g.x(d,g.aE(c,["databases"],{kt:!0,mode:"readonly"},function(T){A.length=0;return g.MC(T.objectStore("databases"),{},function(E){U(E.getValue())&&A.push(E.getValue());return g.bW(E)})}),3)):d.return(A)})}; MnE=function(U,Y){return S4c(function(A){return A.publicName===U&&A.userIdentifier!==void 0},Y)}; bZ9=function(){var U,Y,A,c;return g.S(function(d){switch(d.T){case 1:U=Eu();if((Y=U)==null?0:Y.hasSucceededOnce)return d.return(!0);if(DN&&I4()&&!ur()||g.IE)return d.return(!1);try{if(A=self,!(A.indexedDB&&A.IDBIndex&&A.IDBKeyRange&&A.IDBObjectStore))return d.return(!1)}catch(T){return d.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return d.return(!1);g.J3(d,2);c={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.x(d,hfc(c,uW),4);case 4:return g.x(d,ng("yt-idb-test-do-not-use",uW),5);case 5:return d.return(!0);case 2:return g.XE(d),d.return(!1)}})}; pF3=function(){if(Kg!==void 0)return Kg;PA=!0;return Kg=bZ9().then(function(U){PA=!1;var Y;if((Y=T1())!=null&&Y.Y){var A;Y={hasSucceededOnce:((A=Eu())==null?void 0:A.hasSucceededOnce)||U};var c;(c=T1())==null||c.set("LAST_RESULT_ENTRY_KEY",Y,2592E3,!0)}return U})}; qC=function(){return g.u8("ytglobal.idbToken_")||void 0}; g.Cg=function(){var U=qC();return U?Promise.resolve(U):pF3().then(function(Y){(Y=Y?uW:void 0)&&g.Ic("ytglobal.idbToken_",Y);return Y})}; QuX=function(U){if(!g.uH())throw U=new g.G1("AUTH_INVALID",{dbName:U}),Vb(U),U;var Y=g.Ib();return{actualName:U+":"+Y,publicName:U,userIdentifier:Y}}; ZZX=function(U,Y,A,c){var d,T,E,L,r,l;return g.S(function(P){switch(P.T){case 1:return T=(d=Error().stack)!=null?d:"",g.x(P,g.Cg(),2);case 2:E=P.Y;if(!E)throw L=g.F4("openDbImpl",U,Y),g.ir("ytidb_async_stack_killswitch")||(L.stack=L.stack+"\n"+T.substring(T.indexOf("\n")+1)),Vb(L),L;vA(U);r=A?{actualName:U,publicName:U,userIdentifier:void 0}:QuX(U);g.J3(P,3);return g.x(P,hfc(r,E),5);case 5:return g.x(P,suc(r.actualName,Y,c),6);case 6:return P.return(P.Y);case 3:return l=g.XE(P),g.J3(P,7),g.x(P,ng(r.actualName, E),9);case 9:g.t3(P,8);break;case 7:g.XE(P);case 8:throw l;}})}; OZX=function(U,Y,A){A=A===void 0?{}:A;return ZZX(U,Y,!1,A)}; mQX=function(U,Y,A){A=A===void 0?{}:A;return ZZX(U,Y,!0,A)}; gcY=function(U,Y){Y=Y===void 0?{}:Y;var A,c;return g.S(function(d){if(d.T==1)return g.x(d,g.Cg(),2);if(d.T!=3){A=d.Y;if(!A)return d.return();vA(U);c=QuX(U);return g.x(d,Ou(c.actualName,Y),3)}return g.x(d,ng(c.actualName,A),0)})}; yTl=function(U,Y,A){U=U.map(function(c){return g.S(function(d){return d.T==1?g.x(d,Ou(c.actualName,Y),2):g.x(d,ng(c.actualName,A),0)})}); return Promise.all(U).then(function(){})}; ncX=function(U){var Y=Y===void 0?{}:Y;var A,c;return g.S(function(d){if(d.T==1)return g.x(d,g.Cg(),2);if(d.T!=3){A=d.Y;if(!A)return d.return();vA(U);return g.x(d,MnE(U,A),3)}c=d.Y;return g.x(d,yTl(c,Y,A),0)})}; DQv=function(U,Y){Y=Y===void 0?{}:Y;var A;return g.S(function(c){if(c.T==1)return g.x(c,g.Cg(),2);if(c.T!=3){A=c.Y;if(!A)return c.return();vA(U);return g.x(c,Ou(U,Y),3)}return g.x(c,ng(U,A),0)})}; UC=function(U,Y){mv.call(this,U,Y);this.options=Y;vA(U)}; IU9=function(U,Y){var A;return function(){A||(A=new UC(U,Y));return A}}; g.YF=function(U,Y){return IU9(U,Y)}; Ab=function(U){return g.g7(u7Y(),U)}; KDc=function(U,Y,A,c){var d,T,E;return g.S(function(L){switch(L.T){case 1:return d={config:U,hashData:Y,timestamp:c!==void 0?c:(0,g.y)()},g.x(L,Ab(A),2);case 2:return T=L.Y,g.x(L,T.clear("hotConfigStore"),3);case 3:return g.x(L,g.fg(T,"hotConfigStore",d),4);case 4:return E=L.Y,L.return(E)}})}; q4X=function(U,Y,A,c,d){var T,E,L;return g.S(function(r){switch(r.T){case 1:return T={config:U,hashData:Y,configData:A,timestamp:d!==void 0?d:(0,g.y)()},g.x(r,Ab(c),2);case 2:return E=r.Y,g.x(r,E.clear("coldConfigStore"),3);case 3:return g.x(r,g.fg(E,"coldConfigStore",T),4);case 4:return L=r.Y,r.return(L)}})}; CgY=function(U){var Y,A;return g.S(function(c){return c.T==1?g.x(c,Ab(U),2):c.T!=3?(Y=c.Y,A=void 0,g.x(c,g.aE(Y,["coldConfigStore"],{mode:"readwrite",kt:!0},function(d){return g.Qb(d.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(T){A=T.getValue()})}),3)):c.return(A)})}; UYE=function(U){var Y,A;return g.S(function(c){return c.T==1?g.x(c,Ab(U),2):c.T!=3?(Y=c.Y,A=void 0,g.x(c,g.aE(Y,["hotConfigStore"],{mode:"readwrite",kt:!0},function(d){return g.Qb(d.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(T){A=T.getValue()})}),3)):c.return(A)})}; Y3c=function(){return g.S(function(U){return g.x(U,ncX("ytGcfConfig"),0)})}; c9=function(){g.p.call(this);this.T=[];this.Y=[];var U=g.u8("yt.gcf.config.hotUpdateCallbacks");U?(this.T=[].concat(g.X(U)),this.Y=U):(this.Y=[],g.Ic("yt.gcf.config.hotUpdateCallbacks",this.Y))}; Lc=function(){var U=this;this.K=!1;this.W=this.j=0;this.J=new c9;this.o5={ORX:function(){U.K=!0}, kdX:function(){return U.Y}, tTv:function(Y){dU(U,Y)}, Pr:function(Y){U.Pr(Y)}, gwX:function(Y){TP(U,Y)}, Cb:function(){return U.coldHashData}, Ho:function(){return U.hotHashData}, qLv:function(){return U.T}, tvs:function(){return EC()}, Bzs:function(){return oU()}, blw:function(){return g.u8("yt.gcf.config.coldHashData")}, f_Y:function(){return g.u8("yt.gcf.config.hotHashData")}, wxw:function(){Aal(U)}, JAv:function(){U.Pr(void 0);zP(U);delete Lc.instance}, dGy:function(Y){U.W=Y}, Olr:function(){return U.W}}}; caY=function(){if(!Lc.instance){var U=new Lc;Lc.instance=U}return Lc.instance}; E4V=function(U){var Y;g.S(function(A){if(A.T==1)return g.ir("start_client_gcf")||g.ir("delete_gcf_config_db")?g.ir("start_client_gcf")?g.x(A,g.Cg(),3):A.uY(2):A.return();A.T!=2&&((Y=A.Y)&&g.uH()&&!g.ir("delete_gcf_config_db")?(U.K=!0,Aal(U)):(dYv(U),T5X(U)));return g.ir("delete_gcf_config_db")?g.x(A,Y3c(),0):A.uY(0)})}; rU=function(){var U;return(U=oU())!=null?U:g.DQ("RAW_HOT_CONFIG_GROUP")}; o4X=function(U){var Y,A,c,d,T,E;return g.S(function(L){switch(L.T){case 1:if(U.T)return L.return(oU());if(!U.K)return Y=g.F4("getHotConfig IDB not initialized"),CF(Y),L.return(Promise.reject(Y));A=qC();c=g.DQ("TIME_CREATED_MS");if(!A){d=g.F4("getHotConfig token error");CF(d);L.uY(2);break}return g.x(L,UYE(A),3);case 3:if((T=L.Y)&&T.timestamp>c)return dU(U,T.config),U.Pr(T.hashData),L.return(oU());case 2:T5X(U);if(!(A&&U.T&&U.hotHashData)){L.uY(4);break}return g.x(L,KDc(U.T,U.hotHashData,A,c),4);case 4:return U.T? L.return(oU()):(E=new g.Do("Config not available in ytConfig"),CF(E),L.return(Promise.reject(E)))}})}; LOS=function(U){var Y,A,c,d,T,E;return g.S(function(L){switch(L.T){case 1:if(U.Y)return L.return(EC());if(!U.K)return Y=g.F4("getColdConfig IDB not initialized"),CF(Y),L.return(Promise.reject(Y));A=qC();c=g.DQ("TIME_CREATED_MS");if(!A){d=g.F4("getColdConfig");CF(d);L.uY(2);break}return g.x(L,CgY(A),3);case 3:if((T=L.Y)&&T.timestamp>c)return TP(U,T.config),ze8(U,T.configData),zP(U,T.hashData),L.return(EC());case 2:dYv(U);if(!(A&&U.Y&&U.coldHashData&&U.configData)){L.uY(4);break}return g.x(L,q4X(U.Y, U.coldHashData,U.configData,A,c),4);case 4:return U.Y?L.return(EC()):(E=new g.Do("Config not available in ytConfig"),CF(E),L.return(Promise.reject(E)))}})}; Aal=function(U){if(!U.T||!U.Y){if(!qC()){var Y=g.F4("scheduleGetConfigs");CF(Y)}U.j||(U.j=g.ZG.iN(function(){return g.S(function(A){switch(A.T){case 1:return g.J3(A,2),g.x(A,o4X(U),4);case 4:g.t3(A,3);break;case 2:g.XE(A);case 3:return g.J3(A,5),g.x(A,LOS(U),7);case 7:g.t3(A,6);break;case 5:g.XE(A);case 6:U.j&&(U.j=0),g.i8(A)}})},100))}}; raS=function(U,Y,A){var c,d,T;return g.S(function(E){switch(E.T){case 1:if(!g.ir("start_client_gcf")){E.uY(0);break}A&&dU(U,A);U.Pr(Y);c=qC();if(!c){E.uY(3);break}if(A){E.uY(4);break}return g.x(E,UYE(c),5);case 5:d=E.Y,A=(T=d)==null?void 0:T.config;case 4:return g.x(E,KDc(A,Y,c),3);case 3:if(A)for(var L=A,r=g.J(U.J.Y),l=r.next();!l.done;l=r.next())l=l.value,l(L);g.i8(E)}})}; lQE=function(U,Y,A){var c,d,T,E;return g.S(function(L){if(L.T==1){if(!g.ir("start_client_gcf"))return L.uY(0);zP(U,Y);return(c=qC())?A?L.uY(4):g.x(L,CgY(c),5):L.uY(0)}L.T!=4&&(d=L.Y,A=(T=d)==null?void 0:T.config);if(!A)return L.uY(0);E=A.configData;return g.x(L,q4X(A,Y,E,c),0)})}; Pev=function(){var U=caY(),Y=(0,g.y)()-U.W;if(!(U.W!==0&&Y0&&(Y.request={internalExperimentFlags:A});$YX(U,void 0,Y);v48(void 0,Y);HF3(void 0,Y);Gjc(U,void 0,Y);WOv(void 0,Y);g.ir("start_client_gcf")&&wu8(void 0,Y);g.DQ("DELEGATED_SESSION_ID")&& !g.ir("pageid_as_header_web")&&(Y.user={onBehalfOfUser:g.DQ("DELEGATED_SESSION_ID")});!g.ir("fill_delegate_context_in_gel_killswitch")&&(U=g.DQ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Y.user=Object.assign({},Y.user,{serializedDelegationContext:U}));U=g.DQ("INNERTUBE_CONTEXT");var c;if(g.ir("enable_persistent_device_token")&&(U==null?0:(c=U.client)==null?0:c.rolloutToken)){var d;Y.client.rolloutToken=U==null?void 0:(d=U.client)==null?void 0:d.rolloutToken}c=Object;d=c.assign;U=Y.client; A={};for(var T=g.J(Object.entries(Af(g.DQ("DEVICE","")))),E=T.next();!E.done;E=T.next()){var L=g.J(E.value);E=L.next().value;L=L.next().value;E==="cbrand"?A.deviceMake=L:E==="cmodel"?A.deviceModel=L:E==="cbr"?A.browserName=L:E==="cbrver"?A.browserVersion=L:E==="cos"?A.osName=L:E==="cosver"?A.osVersion=L:E==="cplatform"&&(A.platform=L)}Y.client=d.call(c,U,A);return Y}; $YX=function(U,Y,A){U=U.Xu;if(U==="WEB"||U==="MWEB"||U===1||U===2)if(Y){A=QW(Y,Xz,96)||new Xz;var c=bH();c=Object.keys(iFS).indexOf(c);c=c===-1?null:c;c!==null&&YH(A,3,c);mA(Y,Xz,96,A)}else A&&(A.client.mainAppWebInfo=(c=A.client.mainAppWebInfo)!=null?c:{},A.client.mainAppWebInfo.webDisplayMode=bH())}; v48=function(U,Y){var A=g.u8("yt.embedded_player.embed_url");A&&(U?(Y=QW(U,s3,7)||new s3,CG(Y,4,A),mA(U,s3,7,Y)):Y&&(Y.thirdParty={embedUrl:A}))}; HF3=function(U,Y){var A;if(g.ir("web_log_memory_total_kbytes")&&((A=g.Dc.navigator)==null?0:A.deviceMemory)){var c;A=(c=g.Dc.navigator)==null?void 0:c.deviceMemory;U?J1(U,95,yQ(A*1E6)):Y&&(Y.client.memoryTotalKbytes=""+A*1E6)}}; Gjc=function(U,Y,A){if(U.appInstallData)if(Y){var c;A=(c=QW(Y,Bu,62))!=null?c:new Bu;CG(A,6,U.appInstallData);mA(Y,Bu,62,A)}else A&&(A.client.configInfo=A.client.configInfo||{},A.client.configInfo.appInstallData=U.appInstallData)}; WOv=function(U,Y){var A=cTl();A&&(U?YH(U,61,Ja3[A]):Y&&(Y.client.connectionType=A));g.ir("web_log_effective_connection_type")&&(A=TK9())&&(U?YH(U,94,FOY[A]):Y&&(Y.client.effectiveConnectionType=A))}; j54=function(U,Y,A){A=A===void 0?{}:A;var c={};g.DQ("EOM_VISITOR_DATA")?c={"X-Goog-EOM-Visitor-Id":g.DQ("EOM_VISITOR_DATA")}:c={"X-Goog-Visitor-Id":A.visitorData||g.DQ("VISITOR_DATA","")};if(Y&&Y.includes("www.youtube-nocookie.com"))return c;Y=A.lm||g.DQ("AUTHORIZATION");Y||(U?Y="Bearer "+g.u8("gapi.auth.getToken")().access_token:(U=KIc().IH(Vx),g.ir("pageid_as_header_web")||delete U["X-Goog-PageId"],c=Object.assign({},c,U)));Y&&(c.Authorization=Y);return c}; wu8=function(U,Y){var A=Pev();if(A){var c=A.coldConfigData,d=A.coldHashData;A=A.hotHashData;if(U){var T;Y=(T=QW(U,Bu,62))!=null?T:new Bu;c=CG(Y,1,c);CG(c,3,d).Pr(A);mA(U,Bu,62,Y)}else Y&&(Y.client.configInfo=Y.client.configInfo||{},c&&(Y.client.configInfo.coldConfigData=c),d&&(Y.client.configInfo.coldHashData=d),A&&(Y.client.configInfo.hotHashData=A))}}; $F=function(U,Y){this.version=U;this.args=Y}; v9=function(U,Y){this.topic=U;this.Y=Y}; FY=function(U,Y){var A=Jb();A&&A.publish.call(A,U.toString(),U,Y)}; eec=function(U){var Y=N5c,A=Jb();if(!A)return 0;var c=A.subscribe(Y.toString(),function(d,T){var E=g.u8("ytPubsub2Pubsub2SkipSubKey");E&&E==c||(E=function(){if(j3[c])try{if(T&&Y instanceof v9&&Y!=d)try{var L=Y.Y,r=T;if(!r.args||!r.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!L.BU){var l=new L;L.BU=l.version}var P=L.BU}catch(V){}if(!P||r.version!=P)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{T=Reflect.construct(L, g.FI(r.args))}catch(V){throw V.message="yt.pubsub2.Data.deserialize(): "+V.message,V;}}catch(V){throw V.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+Y.toString()+": "+V.message,V;}U.call(window,T)}catch(V){g.KF(V)}},tT9[Y.toString()]?g.AQ()?g.ZG.iN(E):g.vn(E,0):E())}); j3[c]=!0;Nb[Y.toString()]||(Nb[Y.toString()]=[]);Nb[Y.toString()].push(c);return c}; kjv=function(){var U=B5X,Y=eec(function(A){U.apply(void 0,arguments);XuX(Y)}); return Y}; XuX=function(U){var Y=Jb();Y&&(typeof U==="number"&&(U=[U]),g.MF(U,function(A){Y.unsubscribeByKey(A);delete j3[A]}))}; Jb=function(){return g.u8("ytPubsub2Pubsub2Instance")}; tb=function(U,Y,A){A=A===void 0?{sampleRate:.1}:A;Math.random()hec||E=puX&&(S3++,g.ir("abandon_compression_after_N_slow_zips")?fc===g.Jf("compression_disable_point")&&S3>Q5X&&(aU=!1):aU=!1);ZFY(Y);c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=U;c.postParams=void 0;d(A,c)}; OFc=function(U){var Y=Y===void 0?!1:Y;var A=A===void 0?!1:A;var c=(0,g.y)(),d={startTime:c,ticks:{},infos:{}},T=Y?g.u8("yt.logging.gzipForFetch",!1):!0;if(aU&&T){if(!U.body)return U;try{var E=A?U.body:typeof U.body==="string"?U.body:JSON.stringify(U.body);T=E;if(!A&&typeof E==="string"){var L=fQE(E);if(L!=null&&(L>hec||L=puX)if(S3++,g.ir("abandon_compression_after_N_slow_zips")||g.ir("abandon_compression_after_N_slow_zips_lr")){Y=S3/fc;var l=Q5X/g.Jf("compression_disable_point");fc>0&&fc%g.Jf("compression_disable_point")===0&&Y>=l&&(aU=!1)}else aU=!1;ZFY(d)}}U.headers=Object.assign({},{"Content-Encoding":"gzip"},U.headers||{});U.body=T;return U}catch(P){return CF(P),U}}else return U}; fQE=function(U){try{return(new Blob(U.split(""))).size}catch(Y){return CF(Y),null}}; ZFY=function(U){g.ir("gel_compression_csi_killswitch")||!g.ir("log_gel_compression_latency")&&!g.ir("log_gel_compression_latency_lr")||tb("gel_compression",U,{sampleRate:.1})}; bz=function(U){var Y=this;this.p_=this.Y=!1;this.potentialEsfErrorCounter=this.T=0;this.handleError=function(){}; this.cG=function(){}; this.now=Date.now;this.hM=!1;this.o5={OIJ:function(P){Y.iB=P}, P8v:function(){Y.lU()}, sM:function(){Y.rg()}, Vv:function(P){return g.S(function(V){return g.x(V,Y.Vv(P),0)})}, nG:function(P,V){return Y.nG(P,V)}, Xx:function(){Y.Xx()}}; var A;this.UU=(A=U.UU)!=null?A:100;var c;this.GH=(c=U.GH)!=null?c:1;var d;this.Q6=(d=U.Q6)!=null?d:2592E6;var T;this.xK=(T=U.xK)!=null?T:12E4;var E;this.ri=(E=U.ri)!=null?E:5E3;var L;this.iB=(L=U.iB)!=null?L:void 0;this.Uq=!!U.Uq;var r;this.P8=(r=U.P8)!=null?r:.1;var l;this.rU=(l=U.rU)!=null?l:10;U.handleError&&(this.handleError=U.handleError);U.cG&&(this.cG=U.cG);U.hM&&(this.hM=U.hM);U.p_&&(this.p_=U.p_);this.lY=U.lY;this.F8=U.F8;this.XX=U.XX;this.dY=U.dY;this.sendFn=U.sendFn;this.R_=U.R_;this.X$= U.X$;Mb(this)&&(!this.lY||this.lY("networkless_logging"))&&mY9(this)}; mY9=function(U){Mb(U)&&!U.hM&&(U.Y=!0,U.Uq&&Math.random()<=U.P8&&U.XX.Qm(U.iB),U.Xx(),U.dY.gY()&&U.lU(),U.dY.listen(U.R_,U.lU.bind(U)),U.dY.listen(U.X$,U.rg.bind(U)))}; n4Y=function(U,Y){if(!Mb(U))throw Error("IndexedDB is not supported: updateRequestHandlers");var A=Y.options.onError?Y.options.onError:function(){}; Y.options.onError=function(d,T){var E,L,r,l;return g.S(function(P){switch(P.T){case 1:E=g4X(T);(L=yaX(T))&&U.lY&&U.lY("web_enable_error_204")&&U.handleError(Error("Request failed due to compression"),Y.url,T);if(!(U.lY&&U.lY("nwl_consider_error_code")&&E||U.lY&&!U.lY("nwl_consider_error_code")&&U.potentialEsfErrorCounter<=U.rU)){P.uY(2);break}if(!U.dY.Y1){P.uY(3);break}return g.x(P,U.dY.Y1(),3);case 3:if(U.dY.gY()){P.uY(2);break}A(d,T);if(!U.lY||!U.lY("nwl_consider_error_code")||((r=Y)==null?void 0: r.id)===void 0){P.uY(6);break}return g.x(P,U.XX.dI(Y.id,U.iB,!1),6);case 6:return P.return();case 2:if(U.lY&&U.lY("nwl_consider_error_code")&&!E&&U.potentialEsfErrorCounter>U.rU)return P.return();U.potentialEsfErrorCounter++;if(((l=Y)==null?void 0:l.id)===void 0){P.uY(8);break}return Y.sendCount=400&&U<=599?!1:!0}; yaX=function(U){var Y;U=U==null?void 0:(Y=U.error)==null?void 0:Y.code;return!(U!==400&&U!==415)}; DYX=function(){if(Qx)return Qx();var U={};Qx=g.YF("LogsDatabaseV2",{fR:(U.LogsRequestsStore={Os:2},U),shared:!1,upgrade:function(Y,A,c){A(2)&&g.k6(Y,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});A(3);A(5)&&(c=c.objectStore("LogsRequestsStore"),c.Y.indexNames.contains("newRequest")&&c.Y.deleteIndex("newRequest"),g.SA(c,"newRequestV2",["status","interface","timestamp"]));A(7)&&RE(Y,"sapisid");A(9)&&RE(Y,"SWHealthLog")}, version:9});return Qx()}; Z1=function(U){return g.g7(DYX(),U)}; uz8=function(U,Y){var A,c,d,T;return g.S(function(E){if(E.T==1)return A={startTime:(0,g.y)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.x(E,Z1(Y),2);if(E.T!=3)return c=E.Y,d=Object.assign({},U,{options:JSON.parse(JSON.stringify(U.options)),interface:g.DQ("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.x(E,g.fg(c,"LogsRequestsStore",d),3);T=E.Y;A.ticks.tc=(0,g.y)();IQc(A);return E.return(T)})}; KO3=function(U,Y){var A,c,d,T,E,L,r,l;return g.S(function(P){if(P.T==1)return A={startTime:(0,g.y)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.x(P,Z1(Y),2);if(P.T!=3)return c=P.Y,d=g.DQ("INNERTUBE_CONTEXT_CLIENT_NAME",0),T=[U,d,0],E=[U,d,(0,g.y)()],L=IDBKeyRange.bound(T,E),r="prev",g.ir("use_fifo_for_networkless")&&(r="next"),l=void 0,g.x(P,g.aE(c,["LogsRequestsStore"],{mode:"readwrite",kt:!0},function(V){return g.Qb(V.objectStore("LogsRequestsStore").index("newRequestV2"), {query:L,direction:r},function(v){v.getValue()&&(l=v.getValue(),U==="NEW"&&(l.status="QUEUED",v.update(l)))})}),3); A.ticks.tc=(0,g.y)();IQc(A);return P.return(l)})}; q33=function(U,Y){var A;return g.S(function(c){if(c.T==1)return g.x(c,Z1(Y),2);A=c.Y;return c.return(g.aE(A,["LogsRequestsStore"],{mode:"readwrite",kt:!0},function(d){var T=d.objectStore("LogsRequestsStore");return T.get(U).then(function(E){if(E)return E.status="QUEUED",g.x6(T,E).then(function(){return E})})}))})}; CeS=function(U,Y,A,c){A=A===void 0?!0:A;var d;return g.S(function(T){if(T.T==1)return g.x(T,Z1(Y),2);d=T.Y;return T.return(g.aE(d,["LogsRequestsStore"],{mode:"readwrite",kt:!0},function(E){var L=E.objectStore("LogsRequestsStore");return L.get(U).then(function(r){return r?(r.status="NEW",A&&(r.sendCount+=1),c!==void 0&&(r.options.compress=c),g.x6(L,r).then(function(){return r})):g.NC.resolve(void 0)})}))})}; ULl=function(U,Y){var A;return g.S(function(c){if(c.T==1)return g.x(c,Z1(Y),2);A=c.Y;return c.return(A.delete("LogsRequestsStore",U))})}; Ysv=function(U){var Y,A;return g.S(function(c){if(c.T==1)return g.x(c,Z1(U),2);Y=c.Y;A=(0,g.y)()-2592E6;return g.x(c,g.aE(Y,["LogsRequestsStore"],{mode:"readwrite",kt:!0},function(d){return g.MC(d.objectStore("LogsRequestsStore"),{},function(T){if(T.getValue().timestamp<=A)return T.delete().then(function(){return g.bW(T)})})}),0)})}; AfX=function(){g.S(function(U){return g.x(U,ncX("LogsDatabaseV2"),0)})}; IQc=function(U){g.ir("nwl_csi_killswitch")||tb("networkless_performance",U,{sampleRate:1})}; dL3=function(U){return g.g7(cfc(),U)}; TFX=function(U){var Y,A;g.S(function(c){if(c.T==1)return g.x(c,dL3(U),2);Y=c.Y;A=(0,g.y)()-2592E6;return g.x(c,g.aE(Y,["SWHealthLog"],{mode:"readwrite",kt:!0},function(d){return g.MC(d.objectStore("SWHealthLog"),{},function(T){if(T.getValue().timestamp<=A)return T.delete().then(function(){return g.bW(T)})})}),0)})}; EGc=function(U){var Y;return g.S(function(A){if(A.T==1)return g.x(A,dL3(U),2);Y=A.Y;return g.x(A,Y.clear("SWHealthLog"),0)})}; g.OC=function(U,Y,A,c,d,T,E){d=d===void 0?"":d;T=T===void 0?!1:T;E=E===void 0?!1:E;if(U)if(A&&!g.yB())CF(new g.Do("Legacy referrer-scrubbed ping detected")),U&&oG9(U,void 0,{scrubReferrer:!0});else if(d)NL(U,Y,"POST",d,c);else if(g.DQ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||c||E)NL(U,Y,"GET","",c,void 0,T,E);else{b:{try{c:{var L=new tE8({url:U});if(Y3(L.Y,"dsh")==="1")var r=null;else{var l=Y3(L.Y,"ae");if(l==="1"){var P=Y3(L.Y,"adurl");if(P)try{r={version:3,Vm:decodeURIComponent(P),w6:AY(L.Y,"act=1", "ri=1",eOX(L))};break c}catch(H){}}r=l==="2"?{version:4,Vm:AY(L.Y,"dct=1","suid="+L.T,""),w6:AY(L.Y,"act=1","ri=1","suid="+L.T)}:null}}if(r){var V=eI(U);var v=!(!V||!V.endsWith("/aclk")||fC(U,"ri")!=="1");break b}}catch(H){}v=!1}v?zH3(U)?(Y&&Y(),A=!0):A=!1:A=!1;A||oG9(U,Y)}}; zH3=function(U,Y){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(U,Y===void 0?"":Y))return!0}catch(A){}return!1}; oG9=function(U,Y,A){A=A===void 0?{}:A;var c=new Image,d=""+Lmv++;mw[d]=c;c.onload=c.onerror=function(){Y&&mw[d]&&Y();delete mw[d]}; A.scrubReferrer&&(c.referrerPolicy="no-referrer");c.src=U}; rf8=function(U){var Y;return((Y=document.featurePolicy)==null?0:Y.allowedFeatures().includes("attribution-reporting"))?U+"&nis=6":U+"&nis=5"}; yx=function(){gU||(gU=new d7("yt.offline"));return gU}; lD8=function(U){if(g.ir("offline_error_handling")){var Y=yx().get("errors",!0)||{};Y[U.message]={name:U.name,stack:U.stack};U.level&&(Y[U.message].level=U.level);yx().set("errors",Y,2592E3,!0)}}; nc=function(){this.Y=new Map;this.T=!1}; D1=function(){if(!nc.instance){var U=g.u8("yt.networkRequestMonitor.instance")||new nc;g.Ic("yt.networkRequestMonitor.instance",U);nc.instance=U}return nc.instance}; IU=function(){g.PO.call(this);var U=this;this.T=!1;this.Y=FG8();this.Y.listen("networkstatus-online",function(){if(U.T&&g.ir("offline_error_handling")){var Y=yx().get("errors",!0);if(Y){for(var A in Y)if(Y[A]){var c=new g.Do(A,"sent via offline_errors");c.name=Y[A].name;c.stack=Y[A].stack;c.level=Y[A].level;g.KF(c)}yx().set("errors",{},2592E3,!0)}}})}; Pr3=function(){if(!IU.instance){var U=g.u8("yt.networkStatusManager.instance")||new IU;g.Ic("yt.networkStatusManager.instance",U);IU.instance=U}return IU.instance}; g.uz=function(U){U=U===void 0?{}:U;g.PO.call(this);var Y=this;this.Y=this.j=0;this.T=Pr3();var A=g.u8("yt.networkStatusManager.instance.listen").bind(this.T);A&&(U.rateLimit?(this.rateLimit=U.rateLimit,A("networkstatus-online",function(){VrX(Y,"publicytnetworkstatus-online")}),A("networkstatus-offline",function(){VrX(Y,"publicytnetworkstatus-offline")})):(A("networkstatus-online",function(){Y.dispatchEvent("publicytnetworkstatus-online")}),A("networkstatus-offline",function(){Y.dispatchEvent("publicytnetworkstatus-offline")})))}; VrX=function(U,Y){U.rateLimit?U.Y?(g.ZG.J$(U.j),U.j=g.ZG.iN(function(){U.W!==Y&&(U.dispatchEvent(Y),U.W=Y,U.Y=(0,g.y)())},U.rateLimit-((0,g.y)()-U.Y))):(U.dispatchEvent(Y),U.W=Y,U.Y=(0,g.y)()):U.dispatchEvent(Y)}; qb=function(){var U=bz.call;Kc||(Kc=new g.uz({pKW:!0,nDJ:!0}));U.call(bz,this,{XX:{Qm:Ysv,nQ:ULl,Q2:KO3,CYs:q33,dI:CeS,set:uz8},dY:Kc,handleError:function(Y,A,c){var d,T=c==null?void 0:(d=c.error)==null?void 0:d.code;if(T===400||T===415){var E;Y=new g.Do(Y.message,A,c==null?void 0:(E=c.error)==null?void 0:E.code);CF(Y,void 0,void 0,void 0,!0)}else g.KF(Y)}, cG:CF,sendFn:$Lc,now:g.y,Qi:lD8,F8:g.Y6(),R_:"publicytnetworkstatus-online",X$:"publicytnetworkstatus-offline",Uq:!0,P8:.1,rU:g.Jf("potential_esf_error_limit",10),lY:g.ir,hM:!(g.uH()&&g.tD(document.location.toString())!=="www.youtube-nocookie.com")});this.W=new g.VI;g.ir("networkless_immediately_drop_all_requests")&&AfX();DQv("LogsDatabaseV2")}; Cc=function(){var U=g.u8("yt.networklessRequestController.instance");U||(U=new qb,g.Ic("yt.networklessRequestController.instance",U),g.ir("networkless_logging")&&g.Cg().then(function(Y){U.iB=Y;mY9(U);U.W.resolve();U.Uq&&Math.random()<=U.P8&&U.iB&&TFX(U.iB);g.ir("networkless_immediately_drop_sw_health_store")&&vGS(U)})); return U}; vGS=function(U){var Y;g.S(function(A){if(!U.iB)throw Y=g.F4("clearSWHealthLogsDb"),Y;return A.return(EGc(U.iB).catch(function(c){U.handleError(c)}))})}; $Lc=function(U,Y,A,c){c=c===void 0?!1:c;Y=g.ir("web_fp_via_jspb")?Object.assign({},Y):Y;g.ir("use_cfr_monitor")&&Hlc(U,Y);if(g.ir("use_request_time_ms_header"))Y.headers&&o4(U)&&(Y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.y)())));else{var d;if((d=Y.postParams)==null?0:d.requestTimeMs)Y.postParams.requestTimeMs=Math.round((0,g.y)())}A&&Object.keys(Y).length===0?g.OC(U):Y.compress?Y.postBody?(typeof Y.postBody!=="string"&&(Y.postBody=JSON.stringify(Y.postBody)),sC(U,Y.postBody, Y,g.tf,c)):sC(U,JSON.stringify(Y.postParams),Y,er,c):g.tf(U,Y)}; Ui=function(U,Y){g.ir("use_event_time_ms_header")&&o4(U)&&(Y.headers||(Y.headers={}),Y.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.y)())));return Y}; Hlc=function(U,Y){var A=Y.onError?Y.onError:function(){}; Y.onError=function(d,T){D1().requestComplete(U,!1);A(d,T)}; var c=Y.onSuccess?Y.onSuccess:function(){}; Y.onSuccess=function(d,T){D1().requestComplete(U,!0);c(d,T)}}; g.YS=function(U){this.config_=null;U?this.config_=U:VTc()&&(this.config_=g.lz())}; g.AH=function(U,Y,A,c){function d(l){try{if((l===void 0?0:l)&&c.retry&&!c.networklessOptions.bypassNetworkless)T.method="POST",c.networklessOptions.writeThenSend?Cc().writeThenSend(r,T):Cc().sendAndWrite(r,T);else if(c.compress){var P=!c.networklessOptions.writeThenSend;if(T.postBody){var V=T.postBody;typeof V!=="string"&&(V=JSON.stringify(T.postBody));sC(r,V,T,g.tf,P)}else sC(r,JSON.stringify(T.postParams),T,er,P)}else g.ir("web_all_payloads_via_jspb")?g.tf(r,T):er(r,T)}catch(v){if(v.name==="InvalidAccessError")CF(Error("An extension is blocking network request.")); else throw v;}} !g.DQ("VISITOR_DATA")&&Y!=="visitor_id"&&Math.random()<.01&&CF(new g.Do("Missing VISITOR_DATA when sending innertube request.",Y,A,c));if(!U.isReady())throw U=new g.Do("innertube xhrclient not ready",Y,A,c),g.KF(U),U;var T={headers:c.headers||{},method:"POST",postParams:A,postBody:c.postBody,postBodyFormat:c.postBodyFormat||"JSON",onTimeout:function(){c.onTimeout()}, onFetchTimeout:c.onTimeout,onSuccess:function(l,P){if(c.onSuccess)c.onSuccess(P)}, onFetchSuccess:function(l){if(c.onSuccess)c.onSuccess(l)}, onError:function(l,P){if(c.onError)c.onError(P)}, onFetchError:function(l){if(c.onError)c.onError(l)}, timeout:c.timeout,withCredentials:!0,compress:c.compress};T.headers["Content-Type"]||(T.headers["Content-Type"]="application/json");A="";var E=U.config_.I$;E&&(A=E);E=U.config_.UC||!1;var L=j54(E,A,c);Object.assign(T.headers,L);T.headers.Authorization&&!A&&E&&(T.headers["x-origin"]=window.location.origin);var r=Tw(""+A+("/youtubei/"+U.config_.innertubeApiVersion+"/"+Y),{alt:"json"});g.u8("ytNetworklessLoggingInitializationOptions")&&GwS.isNwlInitialized?pF3().then(function(l){d(l)}):d(!1)}; g.oQ=function(U,Y,A){var c=g.cx();if(c&&Y){var d=c.subscribe(U,function(){function T(){dn[d]&&Y.apply&&typeof Y.apply=="function"&&Y.apply(A||window,E)} var E=arguments;try{g.T4[U]?T():g.vn(T,0)}catch(L){g.KF(L)}},A); dn[d]=!0;Ei[U]||(Ei[U]=[]);Ei[U].push(d);return d}return 0}; WmX=function(U){var Y=g.oQ("LOGGED_IN",function(A){U.apply(void 0,arguments);g.z4(Y)})}; g.z4=function(U){var Y=g.cx();Y&&(typeof U==="number"?U=[U]:typeof U==="string"&&(U=[parseInt(U,10)]),g.MF(U,function(A){Y.unsubscribeByKey(A);delete dn[A]}))}; g.LT=function(U,Y){var A=g.cx();return A?A.publish.apply(A,arguments):!1}; il3=function(U){var Y=g.cx();if(Y)if(Y.clear(U),U)wnl(U);else for(var A in Ei)wnl(A)}; g.cx=function(){return g.Dc.ytPubsubPubsubInstance}; wnl=function(U){Ei[U]&&(U=Ei[U],g.MF(U,function(Y){dn[Y]&&delete dn[Y]}),U.length=0)}; g.rn=function(U,Y,A){JfV(U,Y,A===void 0?null:A)}; JfV=function(U,Y,A){A=A===void 0?null:A;var c=FmX(U),d=document.getElementById(c),T=d&&fGX(d),E=d&&!T;T?Y&&Y():(Y&&(T=g.oQ(c,Y),Y=""+g.cW(Y),j43[Y]=T),E||(d=NFS(U,c,function(){fGX(d)||(sMl(d),g.LT(c),g.vn(function(){il3(c)},0))},A)))}; NFS=function(U,Y,A,c){c=c===void 0?null:c;var d=g.qs("SCRIPT");d.id=Y;d.onload=function(){A&&setTimeout(A,0)}; d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}}; c&&d.setAttribute("nonce",c);g.z$(d,g.ta(U));U=document.getElementsByTagName("head")[0]||document.body;U.insertBefore(d,U.firstChild);return d}; FmX=function(U){var Y=document.createElement("a");g.uh(Y,U);U=Y.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+wf(U)}; lV=function(U,Y){if(U===Y)U=!0;else if(Array.isArray(U)&&Array.isArray(Y))U=g.fj(U,Y,lV);else if(g.Yz(U)&&g.Yz(Y))a:if(g.nj(U).length!=g.nj(Y).length)U=!1;else{for(var A in U)if(!lV(U[A],Y[A])){U=!1;break a}U=!0}else U=!1;return U}; Wx=function(U){var Y=g.SS.apply(1,arguments);if(!Px(U)||Y.some(function(c){return!Px(c)}))throw Error("Only objects may be merged."); Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next())VO(U,A.value)}; VO=function(U,Y){for(var A in Y)if(Px(Y[A])){if(A in U&&!Px(U[A]))throw Error("Cannot merge an object into a non-object.");A in U||(U[A]={});VO(U[A],Y[A])}else if(wn(Y[A])){if(A in U&&!wn(U[A]))throw Error("Cannot merge an array into a non-array.");A in U||(U[A]=[]);trc(U[A],Y[A])}else U[A]=Y[A];return U}; trc=function(U,Y){Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next())A=A.value,Px(A)?U.push(VO({},A)):wn(A)?U.push(trc([],A)):U.push(A);return U}; Px=function(U){return typeof U==="object"&&!Array.isArray(U)}; wn=function(U){return typeof U==="object"&&Array.isArray(U)}; iV=function(U){g.p.call(this);this.T=U}; JH=function(U){iV.call(this,!0);this.Y=U}; Fa=function(U,Y){g.p.call(this);var A=this;this.W=[];this.G=!1;this.T=0;this.K=this.J=this.j=!1;this.Pw=null;var c=(0,g.dL)(U,Y);this.Y=new g.IM(function(){return c(A.Pw)},300); g.Z(this,this.Y);this.X=this.Z=Infinity}; eHE=function(U,Y){if(!Y)return!1;for(var A=0;A-1)throw Error("Deps cycle for: "+Y);if(U.T.has(Y))return U.T.get(Y);if(!U.Y.has(Y)){if(c)return;throw Error("No provider for: "+Y);}c=U.Y.get(Y);A.push(Y);if(c.Hz!==void 0)var d=c.Hz;else if(c.VST)d=c[fT]?RH3(U,c[fT],A):[],d=c.VST.apply(c,g.X(d));else if(c.Pz){d=c.Pz;var T=d[fT]?RH3(U,d[fT],A):[];d=new (Function.prototype.bind.apply(d,[null].concat(g.X(T))))}else throw Error("Could not resolve providers for: "+Y);A.pop();c.RwI||U.T.set(Y,d); return d}; RH3=function(U,Y,A){return Y?Y.map(function(c){return c instanceof aQ?hH(U,c.key,A,!0):hH(U,c,A)}):[]}; Mk=function(){SH||(SH=new kw9);return SH}; pT=function(){var U,Y;return"h5vcc"in bV&&((U=bV.h5vcc.traceEvent)==null?0:U.traceBegin)&&((Y=bV.h5vcc.traceEvent)==null?0:Y.traceEnd)?1:"performance"in bV&&bV.performance.mark&&bV.performance.measure?2:0}; QO=function(U){var Y=pT();switch(Y){case 1:bV.h5vcc.traceEvent.traceBegin("YTLR",U);break;case 2:bV.performance.mark(U+"-start");break;case 0:break;default:Ka(Y,"unknown trace type")}}; aDS=function(U){var Y=pT();switch(Y){case 1:bV.h5vcc.traceEvent.traceEnd("YTLR",U);break;case 2:Y=U+"-start";var A=U+"-end";bV.performance.mark(A);bV.performance.measure(U,Y,A);break;case 0:break;default:Ka(Y,"unknown trace type")}}; xLY=function(U){var Y,A;(A=(Y=window).onerror)==null||A.call(Y,U.message,"",0,0,U)}; s4Y=function(U){var Y=this;var A=A===void 0?0:A;var c=c===void 0?g.Y6():c;this.W=A;this.scheduler=c;this.T=new g.VI;this.Y=U;for(U={A7:0};U.A7=1E3?d():c>=U?lA||(lA=Pj(function(){d();lA=void 0},0)):T-L>=10&&(Kmc(Y,A.tier),E.j=T)}; yfY=function(U,Y){if(U.endpoint==="log_event"){g.ir("more_accurate_gel_parser")&&Az().storePayload({isJspb:!1},U.payload);d8(U);var A=TB(U),c=new Map;c.set(A,[U.payload]);var d=Olv(U.payload)||"";Y&&(L$=new Y);return new g.tS(function(T,E){L$&&L$.isReady()?qsS(c,L$,T,E,{bypassNetworkless:!0},!0,oB(d)):T()})}}; IDE=function(U,Y,A){if(Y.endpoint==="log_event"){d8(void 0,Y);var c=TB(Y,!0),d=new Map;d.set(c,[LG(Y.payload)]);A&&(L$=new A);return new g.tS(function(T){L$&&L$.isReady()?CrV(d,L$,T,{bypassNetworkless:!0},!0,oB(U)):T()})}}; TB=function(U,Y){var A="";if(U.dangerousLogToVisitorSession)A="visitorOnlyApprovedKey";else if(U.cttAuthInfo){if(Y===void 0?0:Y){Y=U.cttAuthInfo.token;A=U.cttAuthInfo;var c=new O3;A.videoId?c.setVideoId(A.videoId):A.playlistId&&h1(c,2,V4,I1(A.playlistId));$s[Y]=c}else Y=U.cttAuthInfo,A={},Y.videoId?A.videoId=Y.videoId:Y.playlistId&&(A.playlistId=Y.playlistId),vj[U.cttAuthInfo.token]=A;A=U.cttAuthInfo.token}return A}; zB=function(U,Y,A){U=U===void 0?{}:U;Y=Y===void 0?!1:Y;new g.tS(function(c,d){var T=r8(Y,A),E=T.W;T.W=!1;Hj(T.T);Hj(T.Y);T.Y=0;L$&&L$.isReady()?A===void 0&&g.ir("enable_web_tiered_gel")?UR3(c,d,U,Y,300,E):UR3(c,d,U,Y,A,E):(Kmc(Y,A),c())})}; UR3=function(U,Y,A,c,d,T){var E=L$;A=A===void 0?{}:A;c=c===void 0?!1:c;d=d===void 0?200:d;T=T===void 0?!1:T;var L=new Map,r=new Map,l={isJspb:c,cttAuthInfo:void 0,tier:d},P={isJspb:c,cttAuthInfo:void 0};if(c){Y=g.J(Object.keys(EZ));for(d=Y.next();!d.done;d=Y.next())d=d.value,r=g.ir("enable_web_tiered_gel")?Az().smartExtractMatchingEntries({keys:[l,P],sizeLimit:1E3}):Az().extractMatchingEntries({isJspb:!0,cttAuthInfo:d}),r.length>0&&L.set(d,r),(g.ir("web_fp_via_jspb_and_json")&&A.writeThenSend||!g.ir("web_fp_via_jspb_and_json"))&& delete EZ[d];CrV(L,E,U,A,!1,T)}else{L=g.J(Object.keys(EZ));for(l=L.next();!l.done;l=L.next())l=l.value,P=g.ir("enable_web_tiered_gel")?Az().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:l,tier:d},{isJspb:!1,cttAuthInfo:l}],sizeLimit:1E3}):Az().extractMatchingEntries({isJspb:!1,cttAuthInfo:l}),P.length>0&&r.set(l,P),(g.ir("web_fp_via_jspb_and_json")&&A.writeThenSend||!g.ir("web_fp_via_jspb_and_json"))&&delete EZ[l];qsS(r,E,U,Y,A,!1,T)}}; Kmc=function(U,Y){function A(){zB({writeThenSend:!0},U,Y)} U=U===void 0?!1:U;Y=Y===void 0?200:Y;var c=r8(U,Y),d=c===YIc||c===AuX?5E3:cu8;g.ir("web_gel_timeout_cap")&&!c.Y&&(d=Pj(function(){A()},d),c.Y=d); Hj(c.T);d=g.DQ("LOGGING_BATCH_TIMEOUT",g.Jf("web_gel_debounce_ms",1E4));g.ir("shorten_initial_gel_batch_timeout")&&GB&&(d=dRX);d=Pj(function(){g.Jf("gel_min_batch_size")>0?Az().getSequenceCount({cttAuthInfo:void 0,isJspb:U,tier:Y})>=T3E&&A():A()},d); c.T=d}; qsS=function(U,Y,A,c,d,T,E){d=d===void 0?{}:d;var L=Math.round((0,g.y)()),r=U.size,l=Ex3(E);U=g.J(U);var P=U.next();for(E={};!P.done;E={Cw:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Z7:void 0,WA:void 0},P=U.next()){var V=g.J(P.value);P=V.next().value;V=V.next().value;E.batchRequest=g.AF({context:g.P9(Y.config_||g.lz())});if(!g.UO(V)&&!g.ir("throw_err_when_logevent_malformed_killswitch")){c();break}E.batchRequest.events=V;(V=vj[P])&&oxE(E.batchRequest,P,V);delete vj[P];E.dangerousLogToVisitorSession= P==="visitorOnlyApprovedKey";zY3(E.batchRequest,L,E.dangerousLogToVisitorSession);Lz4(d);E.Z7=function(v){g.ir("start_client_gcf")&&g.ZG.iN(function(){return g.S(function(H){return g.x(H,ru4(v),0)})}); r--;r||A()}; E.Cw=0;E.WA=function(v){return function(){v.Cw++;if(d.bypassNetworkless&&v.Cw===1)try{g.AH(Y,l,v.batchRequest,Wj({writeThenSend:!0},v.dangerousLogToVisitorSession,v.Z7,v.WA,T)),GB=!1}catch(H){g.KF(H),c()}r--;r||A()}}(E); try{g.AH(Y,l,E.batchRequest,Wj(d,E.dangerousLogToVisitorSession,E.Z7,E.WA,T)),GB=!1}catch(v){g.KF(v),c()}}}; CrV=function(U,Y,A,c,d,T){c=c===void 0?{}:c;var E=Math.round((0,g.y)()),L={value:U.size},r=new Map([].concat(g.X(U)));r=g.J(r);for(var l=r.next();!l.done;l=r.next()){var P=g.J(l.value).next().value,V=U.get(P);l=new Q_c;var v=Y.config_||g.lz(),H=new ST,G=new k4;CG(G,1,v.ij);CG(G,2,v.Ma);YH(G,16,v.Fr);CG(G,17,v.innertubeContextClientVersion);if(v.d5){var F=v.d5,N=new Bu;F.coldConfigData&&CG(N,1,F.coldConfigData);F.appInstallData&&CG(N,6,F.appInstallData);F.coldHashData&&CG(N,3,F.coldHashData);F.hotHashData&& N.Pr(F.hotHashData);mA(G,Bu,62,N)}(F=g.Dc.devicePixelRatio)&&F!=1&&J1(G,65,s_(F));F=Fm();F!==""&&CG(G,54,F);F=jr();if(F.length>0){N=new x4;for(var e=0;e65535&&(U=1);g5("BATCH_CLIENT_COUNTER",U);return U}; oxE=function(U,Y,A){if(A.videoId)var c="VIDEO";else if(A.playlistId)c="PLAYLIST";else return;U.credentialTransferTokenTargetId=A;U.context=U.context||{};U.context.user=U.context.user||{};U.context.user.credentialTransferTokens=[{token:Y,scope:c}]}; d8=function(U,Y){var A=g.u8("yt.logging.transport.enableScrapingForTest"),c=wF("il_payload_scraping");c=(c!==void 0?String(c):"")==="enable_il_payload_scraping";if(!A)if(c)Jz=[],g.Ic("yt.logging.transport.enableScrapingForTest",!0),g.Ic("yt.logging.transport.scrapedPayloadsForTesting",Jz),g.Ic("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Ic("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Ic("yt.logging.transport.scrapeClientEvent",!0);else return;A=g.u8("yt.logging.transport.scrapedPayloadsForTesting");c=g.u8("yt.logging.transport.payloadToScrape");Y&&(Y=Y.payload,(Y=g.u8("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Y)())&&A.push(Y));Y=g.u8("yt.logging.transport.scrapeClientEvent");if(c&&c.length>=1)for(var d=0;d0&&aoS(U,Y,T)}else aoS(U,Y)}; aoS=function(U,Y,A){U=xRX(U);Y=Y?g.aw(Y):"";A=A||5;c5()&&g.Sr(U,Y,A)}; xRX=function(U){for(var Y=g.J(sbX),A=Y.next();!A.done;A=Y.next())U=hD(U,A.value);return"ST-"+wf(U).toString(36)}; fo3=function(U){if(U.name==="JavaException")return!0;U=U.stack;return U.includes("chrome://")||U.includes("chrome-extension://")||U.includes("moz-extension://")}; hY3=function(){this.PK=[];this.bO=[]}; xs=function(){if(!aB){var U=aB=new hY3;U.bO.length=0;U.PK.length=0;SI3(U,Mhc)}return aB}; SI3=function(U,Y){Y.bO&&U.bO.push.apply(U.bO,Y.bO);Y.PK&&U.PK.push.apply(U.PK,Y.PK)}; bUS=function(U){function Y(){return U.charCodeAt(c++)} var A=U.length,c=0;do{var d=sZ(Y);if(d===Infinity)break;var T=d>>3;switch(d&7){case 0:d=sZ(Y);if(T===2)return d;break;case 1:if(T===2)return;c+=8;break;case 2:d=sZ(Y);if(T===2)return U.substr(c,d);c+=d;break;case 5:if(T===2)return;c+=4;break;default:return}}while(c500));c++);c=d}else if(typeof U==="object")for(d in U){if(U[d]){var T=d;var E=U[d],L=Y,r=A;T=typeof E!=="string"||T!=="clickTrackingParams"&&T!=="trackingParams"?0:(E=bUS(atob(E.replace(/-/g,"+").replace(/_/g,"/"))))?f$(T+".ve",E,L,r):0;c+=T;c+=f$(d,U[d],Y,A);if(c>500)break}}else A[Y]=hz(U),c+=A[Y].length;else A[Y]=hz(U),c+=A[Y].length;return c}; f$=function(U,Y,A,c){A+="."+U;U=hz(Y);c[A]=U;return A.length+U.length}; hz=function(U){try{return(typeof U==="string"?U:String(JSON.stringify(U))).substr(0,500)}catch(Y){return"unable to serialize "+typeof U+" ("+Y.message+")"}}; Lg=function(U){g.S5(U)}; g.Md=function(U){g.S5(U,"WARNING")}; g.S5=function(U,Y){var A=A===void 0?{}:A;A.name=g.DQ("INNERTUBE_CONTEXT_CLIENT_NAME",1);A.version=g.DQ("INNERTUBE_CONTEXT_CLIENT_VERSION");Y=Y===void 0?"ERROR":Y;var c=!1;Y=Y===void 0?"ERROR":Y;c=c===void 0?!1:c;if(U){U.hasOwnProperty("level")&&U.level&&(Y=U.level);if(g.ir("console_log_js_exceptions")){var d=[];d.push("Name: "+U.name);d.push("Message: "+U.message);U.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(U.params));U.hasOwnProperty("args")&&d.push("Error args: "+JSON.stringify(U.args)); d.push("File name: "+U.fileName);d.push("Stacktrace: "+U.stack);window.console.log(d.join("\n"),U)}if(!(Qb9>=5)){d=[];for(var T=g.J(ZUX),E=T.next();!E.done;E=T.next()){E=E.value;try{E()&&d.push(E())}catch(F){}}d=[].concat(g.X(OUE),g.X(d));var L=ozv(U);T=L.message||"Unknown Error";E=L.name||"UnknownError";var r=L.stack||U.T||"Not available";if(r.startsWith(E+": "+T)){var l=r.split("\n");l.shift();r=l.join("\n")}l=L.lineNumber||"Not available";L=L.fileName||"Not available";var P=0;if(U.hasOwnProperty("args")&& U.args&&U.args.length)for(var V=0;V=500);V++);else if(U.hasOwnProperty("params")&&U.params){var v=U.params;if(typeof U.params==="object")for(V in v){if(v[V]){var H="params."+V,G=hz(v[V]);A[H]=G;P+=H.length+G.length;if(P>500)break}}else A.params=hz(v)}if(d.length)for(V=0;V=500);V++);navigator.vendor&&!A.hasOwnProperty("vendor")&&(A["device.vendor"]=navigator.vendor);A={message:T,name:E,lineNumber:l, fileName:L,stack:r,params:A,sampleWeight:1};V=Number(U.columnNumber);isNaN(V)||(A.lineNumber=A.lineNumber+":"+V);if(U.level==="IGNORED")U=0;else a:{U=xs();V=g.J(U.bO);for(d=V.next();!d.done;d=V.next())if(d=d.value,A.message&&A.message.match(d.mz)){U=d.weight;break a}U=g.J(U.PK);for(V=U.next();!V.done;V=U.next())if(V=V.value,V.callback(A)){U=V.weight;break a}U=1}A.sampleWeight=U;U=g.J(mRX);for(V=U.next();!V.done;V=U.next())if(V=V.value,V.ue[A.name])for(T=g.J(V.ue[A.name]),d=T.next();!d.done;d=T.next())if(E= d.value,d=A.message.match(E.XP)){A.params["params.error.original"]=d[0];T=E.groups;E={};for(l=0;l1E3&&g.Md(new g.Do("IL Attach cache exceeded limit"))}L= K$(A,Y);y4.has(L)?qd(A,Y):DS.set(L,!0)}}c=c.filter(function(P){P.csn!==Y?(P.csn=Y,P=!0):P=!1;return P}); A={csn:Y,parentVe:A.getAsJson(),childVes:g.mk(c,function(P){return P.getAsJson()})}; Y==="UNDEFINED_CSN"?C$("visualElementAttached",T,A):U?j5("visualElementAttached",A,U,T):g.r7("visualElementAttached",A,T)}; T7V=function(U,Y,A,c,d){UD(A,Y);c=g8({cttAuthInfo:ks(Y)||void 0},Y);A={csn:Y,ve:A.getAsJson(),eventType:1};d&&(A.clientData=d);Y==="UNDEFINED_CSN"?C$("visualElementShown",c,A):U?j5("visualElementShown",A,U,c):g.r7("visualElementShown",A,c)}; E63=function(U,Y,A,c){var d=(c=c===void 0?!1:c)?16:8;c=g8({cttAuthInfo:ks(Y)||void 0,endOfSequence:c},Y);A={csn:Y,ve:A.getAsJson(),eventType:d};Y==="UNDEFINED_CSN"?C$("visualElementHidden",c,A):U?j5("visualElementHidden",A,U,c):g.r7("visualElementHidden",A,c)}; AA=function(U,Y,A,c,d){Y$(U,Y,A,void 0,c,d)}; Y$=function(U,Y,A,c,d){UD(A,Y);c=c||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var T=g8({cttAuthInfo:ks(Y)||void 0},Y);A={csn:Y,ve:A.getAsJson(),gestureType:c};d&&(A.clientData=d);Y==="UNDEFINED_CSN"?C$("visualElementGestured",T,A):U?j5("visualElementGestured",A,U,T):g.r7("visualElementGestured",A,T)}; o69=function(){var U=Nk(16);for(var Y=[],A=0;A0&&A.push(g.qs("BR"));A.push(g.CR(T))}):A.push(g.CR(c))}return A}; va=function(U,Y,A,c){if(A==="child"){g.YJ(Y);var d;c===void 0?d=void 0:d=!Array.isArray(c)||c&&typeof c.D==="string"?[c]:c;A=Lvv(U,d);A=g.J(A);for(U=A.next();!U.done;U=A.next())Y.appendChild(U.value)}else A==="style"?g.MP(Y,"cssText",c?c:""):c===null||c===void 0?Y.removeAttribute(A):(U=c.toString(),A==="href"&&(U=g.ma(g.Dz(U))),Y.setAttribute(A,U))}; g.n=function(U){g.Vu.call(this,U);this.Mz=!0;this.K=!1;this.listeners=[]}; g.Ha=function(U){g.n.call(this,U);this.Zf=new g.l6;g.Z(this,this.Zf)}; G2=function(U,Y,A,c,d,T,E){E=E===void 0?null:E;g.Ha.call(this,Y);this.api=U;this.macros={};this.componentType=A;this.G=this.Z=null;this.i$=E;this.layoutId=c;this.interactionLoggingClientData=d;this.Bw=T;this.dW=null;this.Nw=new JH(this.element);g.Z(this,this.Nw);this.VJ=this.N(this.element,"click",this.onClick);this.jX=[];this.ov=new Fa(this.onClick,this);g.Z(this,this.ov);this.ws=!1;this.eX=this.Pw=null}; Wa=function(U,Y){U=U===void 0?null:U;Y=Y===void 0?null:Y;if(U==null)return g.Md(Error("Got null or undefined adText object")),"";var A=g.Wi(U.text);if(!U.isTemplated)return A;if(Y==null)return g.Md(Error("Missing required parameters for a templated message")),A;U=g.J(Object.entries(Y));for(Y=U.next();!Y.done;Y=U.next()){var c=g.J(Y.value);Y=c.next().value;c=c.next().value;A=A.replace("{"+Y+"}",c)}return A}; rQS=function(U){U=U===void 0?null:U;return U!=null&&(U=U.thumbnail,U!=null&&U.thumbnails!=null&&U.thumbnails.length!=0&&U.thumbnails[0].url!=null)?g.Wi(U.thumbnails[0].url):""}; lN8=function(U){U=U===void 0?null:U;return U!=null&&(U=U.thumbnail,U!=null&&U.thumbnails!=null&&U.thumbnails.length!=0&&U.thumbnails[0].width!=null&&U.thumbnails[0].height!=null)?new g.xn(U.thumbnails[0].width||0,U.thumbnails[0].height||0):new g.xn(0,0)}; g.wB=function(U){if(U.simpleText)return U.simpleText;if(U.runs){var Y=[];U=g.J(U.runs);for(var A=U.next();!A.done;A=U.next())A=A.value,A.text&&Y.push(A.text);return Y.join("")}return""}; g.i6=function(U){if(U.simpleText)return U=document.createTextNode(U.simpleText),U;var Y=[];if(U.runs)for(var A=0;A1){for(var Y=[U[0]],A=1;A0&&(this.Y=new g.IM(this.L8,Y,this),g.Z(this,this.Y));this.K=new g.IM(this.L8,A,this);g.Z(this,this.K);this.Z=kcE(this.T,d,1,c);g.Z(this,this.Z);this.G=kcE(this.T,0,c,1);g.Z(this,this.G);this.j=new XC;g.Z(this,this.j)}; r1=function(U,Y,A){this.T=U;this.isAsync=Y;this.Y=A}; quX=function(U){switch(U){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Ka(U,"unknown result type")}}; CW3=function(U,Y){var A=1;U.isTrusted===!1&&(A=0);g5("ISDSTAT",A);lE(A,"i.s_",{triggerContext:"sk",metadata:Y});return A}; UbX=function(U,Y){var A=[];Y?Y.isTrusted===!0?A.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):Y.isTrusted===!1?A.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):A.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):A.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");lE(0,"a.s_",{metadata:U,states:A});g5("ASDSTAT",0)}; lE=function(U,Y,A){Y=YC9[Y];var c,d,T={detected:U===0,source:""+Y.T+((c=A.triggerContext)!=null?c:"")+((d=A.En)!=null?d:""),detectionStates:A.states,durationMs:A.Lf};A.metadata&&(T.contentCpn=A.metadata.contentCpn,T.adCpn=A.metadata.adCpn);g.r7("biscottiBasedDetection",T);Y.Y!==void 0&&(A=Number(g.DQ("CATSTAT",0)),Y.Y!==void 0?(Y=Y.Y,U=quX(U),U=A&~(3<0}; Wh=function(U,Y,A,c,d,T){YD.call(this,U,{D:"div",B:"ytp-ad-skip-button-slot"},"skip-button",Y,A,c,d);var E=this;this.Hw=null;this.QJ=!1;this.yJ=T;this.J=this.api.L().experiments.lY("enable_modern_skip_button_on_web");this.Ly=!1;this.j=new g.Ha({D:"span",Iv:["ytp-ad-skip-button-container"]});this.J&&this.j.element.classList.add("ytp-ad-skip-button-container-detached");g.Z(this,this.j);this.j.Df(this.element);this.T=this.W=null;this.qI=new g.d1(this.j,500,!1,100,function(){return E.hide()}); g.Z(this,this.qI);this.Uv=new LV(this.j.element,15E3,5E3,.5,.5,this.J);g.Z(this,this.Uv);this.hide()}; cb3=function(U){U=U.Hw&&U.Hw.adRendererCommands;return(U&&U.clickCommand&&g.O(U.clickCommand,g.w1)&&g.O(U.clickCommand,g.w1).commands||[]).some(function(Y){return Y.adLifecycleCommand?AbX(Y.adLifecycleCommand):!1})}; AbX=function(U){return U.action==="END_LINEAR_AD"||U.action==="END_LINEAR_AD_PLACEMENT"}; iE=function(U,Y,A,c,d,T){YD.call(this,U,{D:"div",B:"ytp-ad-skip-ad-slot"},"skip-ad",Y,A,c,d);this.Hw=T;this.j=!1;this.J=0;this.W=this.T=null;this.hide()}; dbX=function(U,Y){U.j||(U.j=!0,U.T&&(Y?U.T.Hw.hide():U.T.hide()),Y?(U=U.W,U.qI.show(),U.show()):U.W.show())}; J_=function(U,Y,A,c){hA.call(this,U,Y,A,c,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; FH=function(U,Y,A,c,d,T,E){T=T===void 0?!1:T;E=E===void 0?!1:E;G2.call(this,U,{D:"span",B:"ytp-ad-simple-ad-badge"},"simple-ad-badge",Y,A,c);this.W=d;this.Y=this.As("ytp-ad-simple-ad-badge");(this.T=T)&&this.Y.classList.add("ytp-ad-simple-ad-badge--clean-player");E&&this.Y.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; jR=function(U,Y,A,c,d){d=d===void 0?!1:d;rB.call(this,"player-overlay",U,{},Y,c);this.videoAdDurationSeconds=A;this.interactionLoggingClientData=c;this.U2=d}; NG=function(U,Y){g.l6.call(this);this.api=U;this.durationMs=Y;this.Y=null;this.Yr=new XC(this);g.Z(this,this.Yr);this.T=TUS;this.Yr.N(this.api,"presentingplayerstatechange",this.WE);this.Y=this.Yr.N(this.api,"onAdPlaybackProgress",this.ya)}; t_=function(U){g.l6.call(this);this.Y=!1;this.Jr=0;this.Yr=new XC(this);g.Z(this,this.Yr);this.durationMs=U;this.lf=new g.SW(100);g.Z(this,this.lf);this.Yr.N(this.lf,"tick",this.ya);this.T={seekableStart:0,seekableEnd:U/1E3,current:0};this.start()}; g.eR=function(U,Y){var A=Math.abs(Math.floor(U)),c=Math.floor(A/86400),d=Math.floor(A%86400/3600),T=Math.floor(A%3600/60);A=Math.floor(A%60);if(Y){Y="";c>0&&(Y+=" "+c+" D\u00edas");if(c>0||d>0)Y+=" "+d+" Horas";Y+=" "+T+" Minutos";Y+=" "+A+" Segundos";c=Y.trim()}else{Y="";c>0&&(Y+=c+":",d<10&&(Y+="0"));if(c>0||d>0)Y+=d+":",T<10&&(Y+="0");Y+=T+":";A<10&&(Y+="0");c=Y+A}return U>=0?c:"-"+c}; g.Bh=function(U){return(!("button"in U)||typeof U.button!=="number"||U.button===0)&&!("shiftKey"in U&&U.shiftKey)&&!("altKey"in U&&U.altKey)&&!("metaKey"in U&&U.metaKey)&&!("ctrlKey"in U&&U.ctrlKey)}; XH=function(U,Y,A,c,d,T,E){YD.call(this,U,{D:"span",B:E?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",Y,A,c,d);this.videoAdDurationSeconds=T;this.T=null;E&&this.api.L().T&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),DN&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; kD=function(U,Y,A,c){CW.call(this,U,Y,A,c,"ytp-video-ad-top-bar-title","ad-title")}; RN=function(U){this.content=U.content;if(U.commandRuns){U=g.J(U.commandRuns);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,this.loggingDirectives=g.O(Y,EFV),Y.onTap&&(this.interaction={onTap:Y.onTap})}}; aN=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",Y,A,c);this.hide()}; xD=function(U,Y,A,c,d){G2.call(this,U,{D:"span",B:d?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",Y,A,c);this.T=d;this.adBadgeText=new aN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);this.adBadgeText.Df(this.element);g.Z(this,this.adBadgeText);d?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),DN&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; se=function(U,Y,A,c){G2.call(this,U,{D:"span",B:"ytp-ad-pod-index"},"ad-pod-index",Y,A,c);this.api.L().T&&(this.element.classList.add("ytp-ad-pod-index--mweb"),DN&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; fV=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",Y,A,c);this.hide()}; h_=function(U,Y){this.T=U;this.Y=Y}; SR=function(U,Y,A){if(!U.getLength())return A!=null?A:Infinity;U=(Y-U.T)/U.getLength();return g.Bi(U,0,1)}; MG=function(U,Y,A,c){c=c===void 0?!1:c;g.Ha.call(this,{D:"div",B:"ytp-ad-persistent-progress-bar-container",C:[{D:"div",B:"ytp-ad-persistent-progress-bar"}]});this.api=U;this.T=Y;this.W=A;c&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.Z(this,this.T);this.progressBar=this.As("ytp-ad-persistent-progress-bar");this.Y=-1;this.N(U,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; bE=function(U,Y,A,c,d,T){G2.call(this,U,{D:"div",B:"ytp-ad-player-overlay",C:[{D:"div",B:"ytp-ad-player-overlay-flyout-cta"},{D:"div",B:"ytp-ad-player-overlay-instream-info"},{D:"div",B:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",B:"ytp-ad-player-overlay-progress-bar"},{D:"div",B:"ytp-ad-player-overlay-instream-user-sentiment"},{D:"div",B:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",Y,A,c);this.X=T;this.J=this.As("ytp-ad-player-overlay-flyout-cta");this.J.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.Y=this.As("ytp-ad-player-overlay-instream-info");this.j=null;oF3(this)&&(U=KR("div"),g.ou(U,"ytp-ad-player-overlay-top-bar-gradients"),Y=this.Y,Y.parentNode&&Y.parentNode.insertBefore(U,Y),(Y=this.api.getVideoData(2))&&Y.isListed&&Y.title&&(A=new kD(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),A.Df(U),A.init(LW("ad-title"),{text:Y.title},this.macros),g.Z(this,A)),this.j=U);this.W=null;this.kE=this.As("ytp-ad-player-overlay-skip-or-preview");this.Uv=this.As("ytp-ad-player-overlay-progress-bar"); this.QJ=this.As("ytp-ad-player-overlay-instream-user-sentiment");this.Hw=this.As("ytp-ad-player-overlay-ad-disclosure-banner");this.T=d;g.Z(this,this.T);this.hide()}; oF3=function(U){U=U.api.L();var Y=g.pV(U)&&U.T;return U.S("embeds_embc3ds_atb")&&U.disableOrganicUi&&!0||Y}; Qz=function(U,Y,A){var c={};Y&&(c.v=Y);A&&(c.list=A);U={name:U,locale:void 0,feature:void 0};for(var d in c)U[d]=c[d];c=g.xJ("/sharing_services",U);g.OC(c)}; g.ZP=function(U){U&=16777215;var Y=[(U&16711680)>>16,(U&65280)>>8,U&255];U=Y[0];var A=Y[1];Y=Y[2];U=Number(U);A=Number(A);Y=Number(Y);if(U!=(U&255)||A!=(A&255)||Y!=(Y&255))throw Error('"('+U+","+A+","+Y+'") is not a valid RGB color');A=U<<16|A<<8|Y;return U<16?"#"+(16777216|A).toString(16).slice(1):"#"+A.toString(16)}; Oe=function(U){this.Y=new Ru(U)}; zF3=function(){var U=!1;try{U=!!window.sessionStorage.getItem("session_logininfo")}catch(Y){U=!0}return(g.DQ("INNERTUBE_CLIENT_NAME")==="WEB"||g.DQ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&U}; mt=function(U){if(g.DQ("LOGGED_IN",!0)&&zF3()){var Y=g.DQ("VALID_SESSION_TEMPDATA_DOMAINS",[]);var A=g.tD(window.location.href);A&&Y.push(A);A=g.tD(U);g.Go(Y,A)||!A&&vG(U,"/")?(Y=B4(U),(Y=CwS(Y))?(Y=xRX(Y),Y=(Y=g.ML(Y)||null)?Af(Y):{}):Y=null):Y=null;Y==null&&(Y={});A=Y;var c=void 0;zF3()?(c||(c=g.DQ("LOGIN_INFO")),c?(A.session_logininfo=c,A=!0):A=!1):A=!1;A&&RB(U,Y)}}; g.Lw3=function(U){var Y=Y===void 0?{}:Y;var A=A===void 0?"":A;var c=c===void 0?window:c;U=g.xJ(U,Y);mt(U);A=g.Dz(U+A);c=c.location;A=It(A);A!==void 0&&(c.href=A)}; g.g1=function(U,Y,A){Y=Y===void 0?{}:Y;A=A===void 0?!1:A;var c=g.DQ("EVENT_ID");c&&(Y.ei||(Y.ei=c));Y&&RB(U,Y);A||(mt(U),g.Lw3(U))}; g.yz=function(U,Y,A,c,d){d=d===void 0?!1:d;A&&RB(U,A);A=g.Dz(U);var T=g.ma(A);U!=T&&CF(Error("Unsafe window.open URL: "+U));U=T;Y=Y||wf(U).toString(36);try{if(d)return d=U,d=rf8(d),mt(d),g.AU(window,d,Y,"attributionsrc")}catch(E){g.KF(E)}mt(U);return g.AU(window,A,Y,c)}; rb4=function(U){nV=U}; l1l=function(U){DP=U}; PzX=function(U){IN=U}; $b3=function(){V3X=IN=DP=nV=null}; HcY=function(){var U=U===void 0?window.location.href:U;if(g.ir("kevlar_disable_theme_param"))return null;var Y=eI(U);if(g.ir("enable_dark_theme_only_on_shorts")&&Y!=null&&Y.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var A=g.dF(U).theme;return vFv.get(A)||null}catch(c){}return null}; uE=function(){this.Y={};if(this.T=HB9()){var U=g.ML("CONSISTENCY");U&&GPv(this,{encryptedTokenJarContents:U})}}; GPv=function(U,Y){if(Y.encryptedTokenJarContents&&(U.Y[Y.encryptedTokenJarContents]=Y,typeof Y.expirationSeconds==="string")){var A=Number(Y.expirationSeconds);setTimeout(function(){delete U.Y[Y.encryptedTokenJarContents]},A*1E3); U.T&&g.Sr("CONSISTENCY",Y.encryptedTokenJarContents,A,void 0,!0)}}; qG=function(){this.T=-1;var U=g.DQ("LOCATION_PLAYABILITY_TOKEN");g.DQ("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=KV(this))&&(U=this.localStorage.get("yt-location-playability-token"));U&&(this.locationPlayabilityToken=U,this.Y=void 0)}; KV=function(U){return U.localStorage===void 0?new d7("yt-client-location"):U.localStorage}; g.CV=function(U,Y,A){Y=Y===void 0?!1:Y;A=A===void 0?!1:A;var c=g.DQ("INNERTUBE_CONTEXT");if(!c)return g.S5(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};c=g.AF(c);g.ir("web_no_tracking_params_in_shell_killswitch")||delete c.clickTracking;c.client||(c.client={});var d=c.client;d.clientName==="MWEB"&&d.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(d.clientFormFactor=g.DQ("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");d.screenWidthPoints=window.innerWidth;d.screenHeightPoints= window.innerHeight;d.screenPixelDensity=Math.round(window.devicePixelRatio||1);d.screenDensityFloat=window.devicePixelRatio||1;d.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var T=T===void 0?!1:T;g.Zo();var E="USER_INTERFACE_THEME_LIGHT";g.OI(0,165)?E="USER_INTERFACE_THEME_DARK":g.OI(0,174)?E="USER_INTERFACE_THEME_LIGHT":!g.ir("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (E="USER_INTERFACE_THEME_DARK");T=T?E:HcY()||E;d.userInterfaceTheme=T;if(!Y){if(T=cTl())d.connectionType=T;g.ir("web_log_effective_connection_type")&&(T=TK9())&&(c.client.effectiveConnectionType=T)}var L;if(g.ir("web_log_memory_total_kbytes")&&((L=g.Dc.navigator)==null?0:L.deviceMemory)){var r;L=(r=g.Dc.navigator)==null?void 0:r.deviceMemory;c.client.memoryTotalKbytes=""+L*1E6}g.ir("web_gcf_hashes_innertube")&&(T=Pev())&&(r=T.coldConfigData,L=T.coldHashData,T=T.hotHashData,c.client.configInfo=c.client.configInfo|| {},r&&(c.client.configInfo.coldConfigData=r),L&&(c.client.configInfo.coldHashData=L),T&&(c.client.configInfo.hotHashData=T));r=g.dF(g.Dc.location.href);!g.ir("web_populate_internal_geo_killswitch")&&r.internalcountrycode&&(d.internalGeo=r.internalcountrycode);d.clientName==="MWEB"||d.clientName==="WEB"?(d.mainAppWebInfo={graftUrl:g.Dc.location.href},g.ir("kevlar_woffle")&&u0Y.instance&&(r=u0Y.instance,d.mainAppWebInfo.pwaInstallabilityStatus=!r.Y&&r.T?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),d.mainAppWebInfo.webDisplayMode=bH(),d.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):d.clientName==="TVHTML5"&&(!g.ir("web_lr_app_quality_killswitch")&&(r=g.DQ("LIVING_ROOM_APP_QUALITY"))&&(d.tvAppInfo=Object.assign(d.tvAppInfo||{},{appQuality:r})),r=g.DQ("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(d.tvAppInfo=Object.assign(d.tvAppInfo||{},{certificationScope:r}));if(!g.ir("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(h){}l=void 0}l&&(d.timeZone=l)}(l=Fm())?d.experimentsToken=l:delete d.experimentsToken;l=jr();uE.instance||(uE.instance=new uE);c.request=Object.assign({},c.request,{internalExperimentFlags:l,consistencyTokenJars:g.yY(uE.instance.Y)});!g.ir("web_prequest_context_killswitch")&&(l=g.DQ("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(c.request.externalPrequestContext=l);d=g.Zo();l=g.OI(0,58);d=d.get("gsml","");c.user=Object.assign({}, c.user);l&&(c.user.enableSafetyMode=l);d&&(c.user.lockedSafetyMode=!0);g.ir("warm_op_csn_cleanup")?A&&(Y=g.X3())&&(c.clientScreenNonce=Y):!Y&&(Y=g.X3())&&(c.clientScreenNonce=Y);U&&(c.clickTracking={clickTrackingParams:U});if(U=g.u8("yt.mdx.remote.remoteClient_"))c.remoteClient=U;qG.getInstance().setLocationOnInnerTubeContext(c);try{var P=Pn(),V=P.bid;delete P.bid;c.adSignalsInfo={params:[],bid:V};for(var v=g.J(Object.entries(P)),H=v.next();!H.done;H=v.next()){var G=g.J(H.value),F=G.next().value, N=G.next().value;P=F;V=N;U=void 0;(U=c.adSignalsInfo.params)==null||U.push({key:P,value:""+V})}var e,B;if(((e=c.client)==null?void 0:e.clientName)==="TVHTML5"||((B=c.client)==null?void 0:B.clientName)==="TVHTML5_UNPLUGGED"){var f=g.DQ("INNERTUBE_CONTEXT");f.adSignalsInfo&&(c.adSignalsInfo.advertisingId=f.adSignalsInfo.advertisingId,c.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",c.adSignalsInfo.limitAdTracking=f.adSignalsInfo.limitAdTracking)}}catch(h){g.S5(h)}return c}; icX=function(U,Y){if(!U)return!1;var A,c=(A=g.O(U,Wwc))==null?void 0:A.signal;if(c&&Y.BI)return!!Y.BI[c];var d;if((A=(d=g.O(U,w9X))==null?void 0:d.request)&&Y.po)return!!Y.po[A];for(var T in U)if(Y.lV[T])return!0;return!1}; Jb8=function(U){var Y={"Content-Type":"application/json"};g.DQ("EOM_VISITOR_DATA")?Y["X-Goog-EOM-Visitor-Id"]=g.DQ("EOM_VISITOR_DATA"):g.DQ("VISITOR_DATA")&&(Y["X-Goog-Visitor-Id"]=g.DQ("VISITOR_DATA"));Y["X-Youtube-Bootstrap-Logged-In"]=g.DQ("LOGGED_IN",!1);g.DQ("DEBUG_SETTINGS_METADATA")&&(Y["X-Debug-Settings-Metadata"]=g.DQ("DEBUG_SETTINGS_METADATA"));U!=="cors"&&((U=g.DQ("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Y["X-Youtube-Client-Name"]=U),(U=g.DQ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Y["X-Youtube-Client-Version"]= U),(U=g.DQ("CHROME_CONNECTED_HEADER"))&&(Y["X-Youtube-Chrome-Connected"]=U),(U=g.DQ("DOMAIN_ADMIN_STATE"))&&(Y["X-Youtube-Domain-Admin-State"]=U),g.DQ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(U=g.DQ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Y["X-YouTube-Lava-Device-Context"]=U));return Y}; FwS=function(){this.Y={}}; UX=function(){this.mappings=new FwS}; Yg=function(U){return function(){return new U}}; NUS=function(U){var Y=Y===void 0?"UNKNOWN_INTERFACE":Y;if(U.length===1)return U[0];var A=jUS[Y];if(A){A=new RegExp(A);for(var c=g.J(U),d=c.next();!d.done;d=c.next())if(d=d.value,A.exec(d))return d}var T=[];Object.entries(jUS).forEach(function(E){var L=g.J(E);E=L.next().value;L=L.next().value;Y!==E&&T.push(L)}); A=new RegExp(T.join("|"));U.sort(function(E,L){return E.length-L.length}); c=g.J(U);for(d=c.next();!d.done;d=c.next())if(d=d.value,!A.exec(d))return d;return U[0]}; g.AL=function(U){return"/youtubei/v1/"+NUS(U)}; c0=function(){}; ds=function(){}; H0=function(){}; GN=function(U){return g.u8("ytcsi."+(U||"")+"data_")||t3c(U)}; eFS=function(){var U=GN();U.info||(U.info={});return U.info}; W0=function(U){U=GN(U);U.metadata||(U.metadata={});return U.metadata}; ws=function(U){U=GN(U);U.tick||(U.tick={});return U.tick}; i1=function(U){U=GN(U);if(U.gel){var Y=U.gel;Y.gelInfos||(Y.gelInfos={});Y.gelTicks||(Y.gelTicks={})}else U.gel={gelTicks:{},gelInfos:{}};return U.gel}; BUX=function(U){U=i1(U);U.gelInfos||(U.gelInfos={});return U.gelInfos}; JL=function(U){var Y=GN(U).nonce;Y||(Y=g.tH(16),GN(U).nonce=Y);return Y}; t3c=function(U){var Y={tick:{},info:{}};g.Ic("ytcsi."+(U||"")+"data_",Y);return Y}; Fb=function(){var U=g.u8("ytcsi.debug");U||(U=[],g.Ic("ytcsi.debug",U),g.Ic("ytcsi.reference",{}));return U}; js=function(U){U=U||"";var Y=X9S();if(Y[U])return Y[U];var A=Fb(),c={timerName:U,info:{},tick:{},span:{},jspbInfo:[]};A.push(c);return Y[U]=c}; kPX=function(U){U=U||"";var Y=X9S();Y[U]&&delete Y[U];var A=Fb(),c={timerName:U,info:{},tick:{},span:{},jspbInfo:[]};A.push(c);Y[U]=c}; X9S=function(){var U=g.u8("ytcsi.reference");if(U)return U;Fb();return g.u8("ytcsi.reference")}; Ni=function(U){return RFv[U]||"LATENCY_ACTION_UNKNOWN"}; tL=function(U,Y){$F.call(this,1,arguments);this.lf=Y}; es=function(){this.Y=0}; B0=function(){es.instance||(es.instance=new es);return es.instance}; kg=function(U,Y){Xb[Y]=Xb[Y]||{count:0};var A=Xb[Y];A.count++;A.time=(0,g.y)();U.Y||(U.Y=g.CU(0,function(){var c=(0,g.y)(),d;for(d in Xb)Xb[d]&&c-Xb[d].time>6E4&&delete Xb[d];U&&(U.Y=0)},5E3)); return A.count>5?(A.count===6&&Math.random()*1E5<1&&(A=new g.Do("CSI data exceeded logging limit with key",Y.split("_")),Y.indexOf("plev")>=0||g.Md(A)),!0):!1}; a1S=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; xbX=function(){var U;if(g.ir("csi_use_performance_navigation_timing")||g.ir("csi_use_performance_navigation_timing_tvhtml5")){var Y,A,c,d=Rl==null?void 0:(U=Rl.getEntriesByType)==null?void 0:(Y=U.call(Rl,"navigation"))==null?void 0:(A=Y[0])==null?void 0:(c=A.toJSON)==null?void 0:c.call(A);d?(d.requestStart=al(d.requestStart),d.responseEnd=al(d.responseEnd),d.redirectStart=al(d.redirectStart),d.redirectEnd=al(d.redirectEnd),d.domainLookupEnd=al(d.domainLookupEnd),d.connectStart=al(d.connectStart), d.connectEnd=al(d.connectEnd),d.responseStart=al(d.responseStart),d.secureConnectionStart=al(d.secureConnectionStart),d.domainLookupStart=al(d.domainLookupStart),d.isPerformanceNavigationTiming=!0,U=d):U=Rl.timing}else U=g.ir("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Rl.timing)):Rl.timing;return U}; al=function(U){return Math.round(xg()+U)}; xg=function(){return(g.ir("csi_use_time_origin")||g.ir("csi_use_time_origin_tvhtml5"))&&Rl.timeOrigin?Math.floor(Rl.timeOrigin):Rl.timing.navigationStart}; fK=function(U,Y){sX("_start",U,Y)}; hL=function(U,Y){if(!g.ir("web_csi_action_sampling_enabled")||!GN(Y).actionDisabled){var A=js(Y||"");Wx(A.info,U);U.loadType&&(A=U.loadType,W0(Y).loadType=A);Wx(BUX(Y),U);A=JL(Y);Y=GN(Y).cttAuthInfo;B0().info(U,A,Y)}}; sUX=function(){var U,Y,A,c;return((c=Mk().resolve(xS(Lc))==null?void 0:(U=rU())==null?void 0:(Y=U.loggingHotConfig)==null?void 0:(A=Y.csiConfig)==null?void 0:A.debugTicks)!=null?c:[]).map(function(d){return Object.values(d)[0]})}; sX=function(U,Y,A){if(!g.ir("web_csi_action_sampling_enabled")||!GN(A).actionDisabled){var c=JL(A),d;if(d=g.ir("web_csi_debug_sample_enabled")&&c){(Mk().resolve(xS(Lc))==null?0:rU())&&!f1X&&(f1X=!0,sX("gcfl",(0,g.y)(),A));var T,E,L;d=(Mk().resolve(xS(Lc))==null?void 0:(T=rU())==null?void 0:(E=T.loggingHotConfig)==null?void 0:(L=E.csiConfig)==null?void 0:L.debugSampleWeight)||0;if(T=d!==0)b:{T=sUX();if(T.length>0)for(E=0;EA.duration?c:A},{duration:0}))&&Y.startTime>0&&Y.responseEnd>0&&(sX("wffs",al(Y.startTime)),sX("wffe",al(Y.responseEnd)))}; ZcX=function(U,Y,A){Rl&&Rl.measure&&(U.startsWith("measure_")||(U="measure_"+U),A?Rl.measure(U,Y,A):Y?Rl.measure(U,Y):Rl.measure(U))}; OcV=function(U){var Y=Ss("aft",U);if(Y)return Y;Y=g.DQ((U||"")+"TIMING_AFT_KEYS",["ol"]);for(var A=Y.length,c=0;c0&&hL(Y);Y={isNavigation:!0,actionType:Ni(g.DQ("TIMING_ACTION"))};var A=g.DQ("PREVIOUS_ACTION");A&&(Y.previousAction=Ni(A));if(A=g.DQ("CLIENT_PROTOCOL"))Y.httpProtocol=A;if(A=g.DQ("CLIENT_TRANSPORT"))Y.transportProtocol=A;(A=g.X3())&&A!=="UNDEFINED_CSN"&&(Y.clientScreenNonce=A);A=M38();if(A===1||A===-1)Y.isVisible= !0;A=W0().loadType==="cold";var c=eFS();A||(A=c.yt_lt==="cold");if(A){Y.loadType="cold";A=eFS();c=xbX();var d=xg(),T=g.DQ("CSI_START_TIMESTAMP_MILLIS",0);T>0&&!g.ir("embeds_web_enable_csi_start_override_killswitch")&&(d=T);d&&(sX("srt",c.responseStart),A.prerender!==1&&fK(d));A=yb9();A>0&&sX("fpt",A);A=xbX();A.isPerformanceNavigationTiming&&hL({performanceNavigationTiming:!0},void 0);sX("nreqs",A.requestStart,void 0);sX("nress",A.responseStart,void 0);sX("nrese",A.responseEnd,void 0);A.redirectEnd- A.redirectStart>0&&(sX("nrs",A.redirectStart,void 0),sX("nre",A.redirectEnd,void 0));A.domainLookupEnd-A.domainLookupStart>0&&(sX("ndnss",A.domainLookupStart,void 0),sX("ndnse",A.domainLookupEnd,void 0));A.connectEnd-A.connectStart>0&&(sX("ntcps",A.connectStart,void 0),sX("ntcpe",A.connectEnd,void 0));A.secureConnectionStart>=xg()&&A.connectEnd-A.secureConnectionStart>0&&(sX("nstcps",A.secureConnectionStart,void 0),sX("ntcpe",A.connectEnd,void 0));Rl&&"getEntriesByType"in Rl&&QU3();A=[];if(document.querySelector&& Rl&&Rl.getEntriesByName)for(var E in pK)pK.hasOwnProperty(E)&&(c=pK[E],p98(E,c)&&A.push(c));if(A.length>0)for(Y.resourceInfo=[],E=g.J(A),A=E.next();!A.done;A=E.next())Y.resourceInfo.push({resourceCache:A.value})}hL(Y);Y=i1();Y.preLoggedGelInfos||(Y.preLoggedGelInfos=[]);E=Y.preLoggedGelInfos;Y=BUX();A=void 0;for(c=0;c-1&&(delete FE["@type"],D=FE);F&&U.T.has(F)&&U.T.delete(F);((O9=Y.config)==null?0:O9.QgI)&&Z5(Y.config.QgI);if(D||(tq=U.W)==null||!tq.O4v(Y.input,Y.OZ)){kl.uY(15);break}return g.x(kl,U.W.aqE(Y.input,Y.OZ),16);case 16:D=kl.Y;case 15:return rH3(U,D,Y),((Lj=Y.config)==null?0:Lj.n8E)&&Z5(Y.config.n8E),c(),kl.return(D|| void 0)}})}; Tn4=function(U,Y){a:{U=U.Jd;var A,c=(A=g.O(Y,Wwc))==null?void 0:A.signal;if(c&&U.BI&&(A=U.BI[c])){var d=A();break a}var T;if((A=(T=g.O(Y,w9X))==null?void 0:T.request)&&U.po&&(T=U.po[A])){d=T();break a}for(d in Y)if(U.lV[d]&&(Y=U.lV[d])){d=Y();break a}d=void 0}if(d!==void 0)return Promise.resolve(d)}; oSE=function(U,Y,A){var c,d,T,E,L,r,l;return g.S(function(P){if(P.T==1){T=((c=Y)==null?void 0:(d=c.Gc)==null?void 0:d.identity)||Vx;r=(E=Y)==null?void 0:(L=E.Gc)==null?void 0:L.sessionIndex;var V=g.BO(U.Y.IH(T,{sessionIndex:r}));return g.x(P,V,2)}l=P.Y;return P.return(Promise.resolve(Object.assign({},Jb8(A),l)))})}; ESX=function(U,Y,A){var c,d=(Y==null?void 0:(c=Y.Gc)==null?void 0:c.identity)||Vx,T;Y=Y==null?void 0:(T=Y.Gc)==null?void 0:T.sessionIndex;U=U.Y.IH(d,{sessionIndex:Y});return Object.assign({},Jb8(A),U)}; qi=function(){}; CK=function(){}; Uw=function(U){this.J=U}; Yv=function(){}; AI=function(){}; cX=function(){}; dw=function(){}; g.TL=function(U,Y){var A=g.SS.apply(2,arguments);U=U===void 0?0:U;g.Do.call(this,Y,A);this.errorType=U;Object.setPrototypeOf(this,this.constructor.prototype)}; Ew=function(U,Y,A,c){this.Y=U;this.T=Y;this.W=A;this.j=c}; PV9=function(U,Y,A){if(U.Y){var c=eI(hD(Y,"key"))||"/UNKNOWN_PATH";U.Y.start(c)}c=A;g.ir("wug_networking_gzip_request")&&(c=OFc(A));var d;return new ((d=U.j)!=null?d:window.Request)(Y,c)}; g.zL=function(U,Y){if(!oj){var A=Mk();si(A,{wl:VH8,Pz:Ew});var c={lV:{feedbackEndpoint:Yg(Yv),modifyChannelNotificationPreferenceEndpoint:Yg(AI),playlistEditEndpoint:Yg(cX),shareEntityEndpoint:Yg(Uw),subscribeEndpoint:Yg(qi),unsubscribeEndpoint:Yg(CK),webPlayerShareEntityServiceEndpoint:Yg(dw)}},d=qG.getInstance(),T={};d&&(T.client_location=d);U===void 0&&(U=KIc());Y===void 0&&(Y=A.resolve(VH8));dkY(c,Y,U,T);si(A,{wl:$kV,Hz:Il.instance});oj=A.resolve($kV)}return oj}; vSY=function(U){var Y=new lF;if(U.interpreterJavascript){var A=x7Y(U.interpreterJavascript);A=En(A).toString();var c=new L_;CG(c,6,A);mA(Y,L_,1,c,wa)}else U.interpreterUrl&&(A=NY(U.interpreterUrl),A=Zz(A).toString(),c=new rp,CG(c,4,A),mA(Y,rp,2,c,wa));U.interpreterHash&&UY(Y,3,U.interpreterHash,wa);U.program&&UY(Y,4,U.program,wa);U.globalName&&UY(Y,5,U.globalName,wa);U.clientExperimentsStateBlob&&UY(Y,7,U.clientExperimentsStateBlob,wa);return Y}; L5=function(U){var Y={};U=U.split("&");U=g.J(U);for(var A=U.next();!A.done;A=U.next())A=A.value.split("="),A.length===2&&(Y[A[0]]=A[1]);return Y}; aI3=function(){if(g.ir("bg_st_hr"))return"havuokmhhs-0";var U,Y=((U=performance)==null?void 0:U.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Y)}; rw=function(U){this.Y=U}; HT3=function(){return new Promise(function(U){var Y=window.top;Y.ntpevasrs!==void 0?U(new rw(Y.ntpevasrs)):(Y.ntpqfbel===void 0&&(Y.ntpqfbel=[]),Y.ntpqfbel.push(function(A){U(new rw(A))}))})}; Wq8=function(){if(!g.ir("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.ir("disable_biscotti_fetch_entirely_for_all_web_clients")&&c5()){var U=g.DQ("PLAYER_VARS",{});if(g.Cj(U,"privembed",!1)!="1"&&!jME(U)){var Y=function(){ls=!0;"google_ad_status"in window?g5("DCLKSTAT",1):g5("DCLKSTAT",2)}; try{g.rn("//static.doubleclick.net/instream/ad_status.js",Y)}catch(A){}G4X.push(g.ZG.iN(function(){if(!(ls||"google_ad_status"in window)){try{if(Y){var A=""+g.cW(Y),c=j43[A];c&&g.z4(c)}}catch(d){}ls=!0;g5("DCLKSTAT",3)}},5E3))}}}; PX=function(){var U=Number(g.DQ("DCLKSTAT",0));return isNaN(U)?0:U}; HX=function(U,Y,A){var c=this;this.network=U;this.options=Y;this.T=A;this.Y=null;if(Y.T$n){var d=new g.VI;this.Y=d.promise;g.Dc.ytAtRC&&qR(function(){var T,E;return g.S(function(L){if(L.T==1){if(!g.Dc.ytAtRC)return L.return();T=VF(null);return g.x(L,$v(c,T),2)}E=L.Y;g.Dc.ytAtRC&&g.Dc.ytAtRC(JSON.stringify(E));g.i8(L)})},2); HT3().then(function(T){var E,L,r,l;return g.S(function(P){if(P.T==1)return T.bindInnertubeChallengeFetcher(function(V){return $v(c,VF(V))}),g.x(P,ET(),2); E=P.Y;L=T.getLatestChallengeResponse();r=L.challenge;if(!r)throw Error("BGE_MACIL");l={challenge:r,gC:L5(r),CP:E,bgChallenge:new lF};d.resolve(l);T.registerChallengeFetchedCallback(function(V){V=V.challenge;if(!V)throw Error("BGE_MACR");V={challenge:V,gC:L5(V),CP:E,bgChallenge:new lF};c.Y=Promise.resolve(V)}); g.i8(P)})})}else Y.preload&&wx3(this,new Promise(function(T){g.CU(0,function(){T(vX(c))},0)}))}; VF=function(U){var Y={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};U&&(Y.interpreterHash=U);return Y}; vX=function(U,Y){Y=Y===void 0?0:Y;var A,c,d,T,E,L,r,l,P,V,v,H;return g.S(function(G){switch(G.T){case 1:A=VF(HL().Y);if(g.ir("att_fet_ks"))return g.J3(G,7),g.x(G,$v(U,A),9);g.J3(G,4);return g.x(G,iT8(U,A),6);case 6:E=G.Y;d=E.epw;T=E.STW;c=E;g.t3(G,3);break;case 4:return g.XE(G),g.Md(Error("Failed to fetch attestation challenge after "+(Y+" attempts; not retrying for 24h."))),GL(U,864E5),G.return({challenge:"",gC:{},CP:void 0,bgChallenge:void 0});case 9:c=G.Y;if(!c)throw Error("Fetching Attestation challenge returned falsy"); if(!c.challenge)throw Error("Missing Attestation challenge");d=c.challenge;T=L5(d);if("c1a"in T&&(!c.bgChallenge||!c.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.t3(G,3);break;case 7:L=g.XE(G);g.Md(L);Y++;if(Y>=5)return g.Md(Error("Failed to fetch attestation challenge after "+(Y+" attempts; not retrying for 24h."))),GL(U,864E5),G.return({challenge:"",gC:{},CP:void 0,bgChallenge:void 0});r=1E3*Math.pow(2,Y-1)+Math.random()*1E3;return G.return(new Promise(function(F){g.CU(0, function(){F(vX(U,Y))},r)})); case 3:l=Number(T.t)||7200;GL(U,l*1E3);P=void 0;if(!("c1a"in T&&c.bgChallenge)){G.uY(10);break}V=vSY(c.bgChallenge);g.J3(G,11);return g.x(G,aOc(HL(),V),13);case 13:g.t3(G,12);break;case 11:return v=g.XE(G),g.Md(v),G.return({challenge:d,gC:T,CP:P,bgChallenge:V});case 12:return g.J3(G,14),P=new $U({challenge:V,Jl:{s_:"aGIf"}}),g.x(G,P.oh,16);case 16:g.t3(G,10);break;case 14:H=g.XE(G),g.Md(H),P=void 0;case 10:return G.return({challenge:d,gC:T,CP:P,bgChallenge:V})}})}; $v=function(U,Y){var A;return g.S(function(c){A=U.T;if(!A||A.gY())return c.return($v(U.network,Y));D5("att_pna",void 0,"attestation_challenge_fetch");return c.return(new Promise(function(d){A.kL("publicytnetworkstatus-online",function(){$v(U.network,Y).then(d)})}))})}; JHX=function(U){if(!U)throw Error("Fetching Attestation challenge returned falsy");if(!U.challenge)throw Error("Missing Attestation challenge");var Y=U.challenge,A=L5(Y);if("c1a"in A&&(!U.bgChallenge||!U.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},U,{epw:Y,STW:A})}; iT8=function(U,Y){var A,c,d,T,E;return g.S(function(L){switch(L.T){case 1:A=void 0,c=0,d={};case 2:if(!(c<5)){L.uY(4);break}if(!(c>0)){L.uY(5);break}d.n8=1E3*Math.pow(2,c-1)+Math.random()*1E3;return g.x(L,new Promise(function(r){return function(l){g.CU(0,function(){l(void 0)},r.n8)}}(d)),5); case 5:return g.J3(L,7),g.x(L,$v(U,Y),9);case 9:return T=L.Y,L.return(JHX(T));case 7:A=E=g.XE(L),E instanceof Error&&g.Md(E);case 8:c++;d={n8:void 0};L.uY(2);break;case 4:throw A;}})}; wx3=function(U,Y){U.Y=Y}; Fqv=function(U){var Y,A,c;return g.S(function(d){if(d.T==1)return g.x(d,Promise.race([U.Y,null]),2);Y=d.Y;var T=vX(U);U.Y=T;(A=Y)==null||(c=A.CP)==null||c.dispose();g.i8(d)})}; GL=function(U,Y){function A(){var d;return g.S(function(T){d=c-Date.now();return d<1E3?g.x(T,Fqv(U),0):(qR(A,0,Math.min(d,6E4)),T.uY(0))})} var c=Date.now()+Y;A()}; jQV=function(U,Y){return new Promise(function(A){g.CU(0,function(){A(Y())},U)})}; g.Nn3=function(U,Y){var A;return g.S(function(c){var d=g.u8("yt.aba.att");return(A=d?d:HX.instance!==void 0?HX.instance.W.bind(HX.instance):null)?c.return(A("ENGAGEMENT_TYPE_PLAYBACK",U,Y)):c.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.tHE=function(){var U;return(U=(U=g.u8("yt.aba.att2"))?U:HX.instance!==void 0?HX.instance.j.bind(HX.instance):null)?U():Promise.resolve(!1)}; Bnl=function(U,Y){var A=g.u8("ytDebugData.callbacks");A||(A={},g.Ic("ytDebugData.callbacks",A));if(g.ir("web_dd_iu")||eKv.includes(U))A[U]=Y}; WX=function(){var U=XxY;var Y=Y===void 0?[]:Y;var A=A===void 0?[]:A;Y=eNY.apply(null,[BpY.apply(null,g.X(Y))].concat(g.X(A)));this.store=kz3(U,void 0,Y)}; g.ww=function(U,Y,A){for(var c=Object.assign({},U),d=g.J(Object.keys(Y)),T=d.next();!T.done;T=d.next()){T=T.value;var E=U[T],L=Y[T];if(L===void 0)delete c[T];else if(E===void 0)c[T]=L;else if(Array.isArray(L)&&Array.isArray(E))c[T]=A?[].concat(g.X(E),g.X(L)):L;else if(!Array.isArray(L)&&g.Yz(L)&&!Array.isArray(E)&&g.Yz(E))c[T]=g.ww(E,L,A);else if(typeof L===typeof E)c[T]=L;else return Y=new g.Do("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:T,Wjw:E,updateValue:L}),g.S5(Y), U}return c}; is=function(U){var Y=this;U=U===void 0?[]:U;this.jI=[];this.I4=this.gF=0;this.sN=void 0;this.totalLength=0;U.forEach(function(A){Y.append(A)})}; k4l=function(U,Y){return U.jI.length===0?!1:(U=U.jI[U.jI.length-1])&&U.buffer===Y.buffer&&U.byteOffset+U.length===Y.byteOffset}; JI=function(U,Y){Y=g.J(Y.jI);for(var A=Y.next();!A.done;A=Y.next())U.append(A.value)}; FZ=function(U,Y,A){return U.split(Y).AS.split(A).SU}; jd=function(U){U.sN=void 0;U.gF=0;U.I4=0}; NI=function(U,Y,A){U.isFocused(Y);return Y-U.I4+A<=U.jI[U.gF].length}; RK9=function(U){if(!U.sN){var Y=U.jI[U.gF];U.sN=new DataView(Y.buffer,Y.byteOffset,Y.length)}return U.sN}; tI=function(U,Y,A){U=U.fJ(Y===void 0?0:Y,A===void 0?-1:A);Y=new Uint8Array(U.length);try{Y.set(U)}catch(c){for(A=0;A>10;T=56320|T&1023}XZ[d++]=T}}T=String.fromCharCode.apply(String,XZ); d<1024&&(T=T.substring(0,d));A.push(T)}return A.join("")}; aj=function(U,Y){var A;if((A=Rj)==null?0:A.encodeInto)return Y=Rj.encodeInto(U,Y),Y.read>6|192:((d&64512)===55296&&c+1>18|240,Y[A++]=d>>12&63|128):Y[A++]=d>>12|224,Y[A++]=d>>6&63|128),Y[A++]=d&63|128)}return A}; xv=function(U){if(Rj)return Rj.encode(U);var Y=new Uint8Array(Math.ceil(U.length*1.2)),A=aj(U,Y);Y.lengthA&&(Y=Y.subarray(0,A));return Y}; f5=function(U){this.Y=U;this.pos=0;this.T=-1}; hI=function(U){var Y=U.Y.getUint8(U.pos);++U.pos;if(Y<128)return Y;for(var A=Y&127,c=1;Y>=128;)Y=U.Y.getUint8(U.pos),++U.pos,c*=128,A+=(Y&127)*c;return A}; Sd=function(U,Y){var A=U.T;for(U.T=-1;U.Y.oA(U.pos,1);){A<0&&(A=hI(U));var c=A>>3,d=A&7;if(c===Y)return!0;if(c>Y){U.T=A;break}A=-1;switch(d){case 0:hI(U);break;case 1:U.pos+=8;break;case 2:c=hI(U);U.pos+=c;break;case 5:U.pos+=4}}return!1}; MI=function(U,Y){if(Sd(U,Y))return hI(U)}; bs=function(U,Y){if(Sd(U,Y))return!!hI(U)}; p5=function(U,Y){if(Sd(U,Y)){Y=hI(U);var A=U.Y.fJ(U.pos,Y);U.pos+=Y;return A}}; QF=function(U,Y){if(U=p5(U,Y))return g.kv(U)}; ZA=function(U,Y,A){if(U=p5(U,Y))return A(new f5(new is([U])))}; Ow=function(U,Y){for(var A=[];Sd(U,Y);)A.push(hI(U));return A.length?A:void 0}; mL=function(U,Y,A){for(var c=[],d;d=p5(U,Y);)c.push(A(new f5(new is([d]))));return c.length?c:void 0}; gw=function(U,Y){U=U instanceof Uint8Array?new is([U]):U;return Y(new f5(U))}; sQv=function(U,Y,A){if(Y&&A&&A.buffer===Y.exports.memory.buffer){var c=Y.realloc(A.byteOffset,U);if(c)return new Uint8Array(Y.exports.memory.buffer,c,U)}U=Y?new Uint8Array(Y.exports.memory.buffer,Y.malloc(U),U):new Uint8Array(U);A&&U.set(A);return U}; fs9=function(U,Y){this.vu=Y;this.pos=0;this.T=[];this.Y=sQv(U===void 0?4096:U,Y);this.view=new DataView(this.Y.buffer,this.Y.byteOffset,this.Y.byteLength)}; yF=function(U,Y){Y=U.pos+Y;if(!(U.Y.length>=Y)){for(var A=U.Y.length*2;A268435455){yF(U,4);for(var A=Y&1073741823,c=0;c<4;c++)U.view.setUint8(U.pos,A&127|128),A>>=7,U.pos+=1;Y=Math.floor(Y/268435456)}for(yF(U,4);Y>127;)U.view.setUint8(U.pos,Y&127|128),Y>>=7,U.pos+=1;U.view.setUint8(U.pos,Y);U.pos+=1}; DA=function(U,Y,A){A!==void 0&&(n5(U,Y*8),n5(U,A))}; Ij=function(U,Y,A){A!==void 0&&DA(U,Y,A?1:0)}; us=function(U,Y,A){A!==void 0&&(n5(U,Y*8+2),Y=A.length,n5(U,Y),yF(U,Y),U.Y.set(A,U.pos),U.pos+=Y)}; K5=function(U,Y,A){A!==void 0&&(hKX(U,Y,Math.ceil(Math.log2(A.length*4+2)/7)),yF(U,A.length*1.2),Y=aj(A,U.Y.subarray(U.pos)),U.pos+Y>U.Y.length&&(yF(U,Y),Y=aj(A,U.Y.subarray(U.pos))),U.pos+=Y,SiE(U))}; hKX=function(U,Y,A){A=A===void 0?2:A;n5(U,Y*8+2);U.T.push(U.pos);U.T.push(A);U.pos+=A}; SiE=function(U){for(var Y=U.T.pop(),A=U.T.pop(),c=U.pos-A-Y;Y--;){var d=Y?128:0;U.view.setUint8(A++,c&127|d);c>>=7}}; qI=function(U,Y,A,c,d){A&&(hKX(U,Y,d===void 0?3:d),c(U,A),SiE(U))}; g.C5=function(U,Y,A){A=new fs9(4096,A);Y(A,U);return new Uint8Array(A.Y.buffer,A.Y.byteOffset,A.pos)}; g.Uk=function(U){var Y=new f5(new is([Ap(decodeURIComponent(U))]));U=QF(Y,2);Y=MI(Y,4);var A=MH3[Y];if(typeof A==="undefined")throw U=new g.Do("Failed to recognize field number",{name:"EntityKeyHelperError",WsY:Y}),g.S5(U),U;return{Qb:Y,entityType:A,entityId:U}}; g.YX=function(U,Y){var A=A===void 0?0:A;var c=new fs9;us(c,2,xv(U));U=bT9[Y];if(typeof U==="undefined")throw A=new g.Do("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Y}),g.S5(A),A;DA(c,4,U);DA(c,5,1);Y=new Uint8Array(c.Y.buffer,c.Y.byteOffset,c.pos);return encodeURIComponent(g.U_(Y,A))}; A2=function(U,Y,A,c){if(c===void 0)return c=Object.assign({},U[Y]||{}),A=(delete c[A],c),c={},Object.assign({},U,(c[Y]=A,c));var d={},T={};return Object.assign({},U,(T[Y]=Object.assign({},U[Y],(d[A]=c,d)),T))}; px4=function(U,Y,A,c,d){var T=U[Y];if(T==null||!T[A])return U;c=g.ww(T[A],c,d==="REPEATED_FIELDS_MERGE_OPTION_APPEND");d={};T={};return Object.assign({},U,(T[Y]=Object.assign({},U[Y],(d[A]=c,d)),T))}; QQ3=function(U,Y){U=U===void 0?{}:U;switch(Y.type){case "ENTITY_LOADED":return Y.payload.reduce(function(c,d){var T,E=(T=d.options)==null?void 0:T.persistenceOption;if(E&&E!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&E!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return c;if(!d.entityKey)return g.S5(Error("Missing entity key")),c;if(d.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!d.payload)return d=new g.Do("REPLACE entity mutation is missing a payload",{entityKey:d.entityKey}),g.S5(d),c;var L=g.gL(d.payload); return A2(c,L,d.entityKey,d.payload[L])}if(d.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{d=d.entityKey;try{var r=g.Uk(d).entityType;L=A2(c,r,d);break a}catch(V){if(V instanceof Error){d=new g.Do("Failed to deserialize entity key",{entityKey:d,originalMessage:V.message});g.S5(d);L=c;break a}throw V;}L=void 0}return L}if(d.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!d.payload)return d=new g.Do("UPDATE entity mutation is missing a payload",{entityKey:d.entityKey}),g.S5(d),c;L=g.gL(d.payload);var l,P;return px4(c, L,d.entityKey,d.payload[L],(l=d.fieldMask)==null?void 0:(P=l.mergeOptions)==null?void 0:P.repeatedFieldsMergeOption)}return c},U); case "REPLACE_ENTITY":var A=Y.payload;return A2(U,A.entityType,A.key,A.uK);case "REPLACE_ENTITIES":return Object.keys(Y.payload).reduce(function(c,d){var T=Y.payload[d];return Object.keys(T).reduce(function(E,L){return A2(E,d,L,T[L])},c)},U); case "UPDATE_ENTITY":return A=Y.payload,px4(U,A.entityType,A.key,A.uK,A.COJ);default:return U}}; cR=function(U,Y,A){return U[Y]?U[Y][A]||null:null}; db=function(U){return window.Int32Array?new Int32Array(U):Array(U)}; J2=function(U){g.p.call(this);this.counter=[0,0,0,0];this.T=new Uint8Array(16);this.Y=16;if(!ZTS){var Y,A=new Uint8Array(256),c=new Uint8Array(256);var d=1;for(Y=0;Y<256;Y++)A[d]=Y,c[Y]=d,d^=d<<1^(d>>7&&283);Ts=new Uint8Array(256);Ek=db(256);oC=db(256);WR=db(256);wb=db(256);for(var T=0;T<256;T++){d=T?c[255^A[T]]:0;d^=d<<1^d<<2^d<<3^d<<4;d=d&255^d>>>8^99;Ts[T]=d;Y=d<<1^(d>>7&&283);var E=Y^d;Ek[T]=Y<<24|d<<16|d<<8|E;oC[T]=E<<24|Ek[T]>>>8;WR[T]=d<<24|oC[T]>>>8;wb[T]=d<<24|WR[T]>>>8}ZTS=!0}d=db(44);for(A= 0;A<4;A++)d[A]=U[4*A]<<24|U[4*A+1]<<16|U[4*A+2]<<8|U[4*A+3];for(c=1;A<44;A++)U=d[A-1],A%4||(U=(Ts[U>>16&255]^c)<<24|Ts[U>>8&255]<<16|Ts[U&255]<<8|Ts[U>>>24],c=c<<1^(c>>7&&283)),d[A]=d[A-4]^U;this.key=d}; Fn=function(U,Y){for(var A=0;A<4;A++)U.counter[A]=Y[A*4]<<24|Y[A*4+1]<<16|Y[A*4+2]<<8|Y[A*4+3];U.Y=16}; OTV=function(U){for(var Y=U.key,A=U.counter[0]^Y[0],c=U.counter[1]^Y[1],d=U.counter[2]^Y[2],T=U.counter[3]^Y[3],E=3;E>=0&&!(U.counter[E]=-~U.counter[E]);E--);for(var L,r,l=4;l<40;)E=Ek[A>>>24]^oC[c>>16&255]^WR[d>>8&255]^wb[T&255]^Y[l++],L=Ek[c>>>24]^oC[d>>16&255]^WR[T>>8&255]^wb[A&255]^Y[l++],r=Ek[d>>>24]^oC[T>>16&255]^WR[A>>8&255]^wb[c&255]^Y[l++],T=Ek[T>>>24]^oC[A>>16&255]^WR[c>>8&255]^wb[d&255]^Y[l++],A=E,c=L,d=r;U=U.T;E=Y[40];U[0]=Ts[A>>>24]^E>>>24;U[1]=Ts[c>>16&255]^E>>16&255;U[2]=Ts[d>>8&255]^ E>>8&255;U[3]=Ts[T&255]^E&255;E=Y[41];U[4]=Ts[c>>>24]^E>>>24;U[5]=Ts[d>>16&255]^E>>16&255;U[6]=Ts[T>>8&255]^E>>8&255;U[7]=Ts[A&255]^E&255;E=Y[42];U[8]=Ts[d>>>24]^E>>>24;U[9]=Ts[T>>16&255]^E>>16&255;U[10]=Ts[A>>8&255]^E>>8&255;U[11]=Ts[c&255]^E&255;E=Y[43];U[12]=Ts[T>>>24]^E>>>24;U[13]=Ts[A>>16&255]^E>>16&255;U[14]=Ts[c>>8&255]^E>>8&255;U[15]=Ts[d&255]^E&255}; t2=function(){if(!jw&&!g.IE){if(Nl)return Nl;var U;Nl=(U=window.crypto)==null?void 0:U.subtle;var Y,A,c;if(((Y=Nl)==null?0:Y.importKey)&&((A=Nl)==null?0:A.sign)&&((c=Nl)==null?0:c.encrypt))return Nl;Nl=void 0}}; g.ew=function(U){this.T=U}; mkE=function(U,Y,A,c){var d,T;return g.S(function(E){switch(E.T){case 1:if(U.W){E.uY(2);break}return g.x(E,c.importKey("raw",U.T,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:U.W=E.Y;case 2:return d={name:"AES-CTR",counter:A,length:128},g.x(E,c.encrypt(d,U.W,Y),4);case 4:return T=E.Y,E.return(new Uint8Array(T))}})}; gS9=function(U,Y,A){U.Y||(U.Y=new J2(U.T));Fn(U.Y,A);return U.Y.encrypt(Y)}; g.BR=function(U){this.T=U}; Xn=function(U){this.K=new Uint8Array(64);this.W=new Uint8Array(64);this.j=0;this.J=new Uint8Array(64);this.T=0;this.K.set(U);this.W.set(U);for(U=0;U<64;U++)this.K[U]^=92,this.W[U]^=54;this.reset()}; yHX=function(U,Y,A){for(var c=U.G,d=U.Y[0],T=U.Y[1],E=U.Y[2],L=U.Y[3],r=U.Y[4],l=U.Y[5],P=U.Y[6],V=U.Y[7],v,H,G,F=0;F<64;)F<16?(c[F]=G=Y[A]<<24|Y[A+1]<<16|Y[A+2]<<8|Y[A+3],A+=4):(v=c[F-2],H=c[F-15],G=c[F-7]+c[F-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),c[F]=G),v=V+kX[F]+G+((r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7))+(r&l^~r&P),H=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&T^d&E^T&E),V=v+H,L+=v,F++,F<16?(c[F]=G=Y[A]<<24|Y[A+1]<<16|Y[A+2]<<8|Y[A+3],A+=4):(v= c[F-2],H=c[F-15],G=c[F-7]+c[F-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),c[F]=G),v=P+kX[F]+G+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&r^~L&l),H=((V>>>2|V<<30)^(V>>>13|V<<19)^(V>>>22|V<<10))+(V&d^V&T^d&T),P=v+H,E+=v,F++,F<16?(c[F]=G=Y[A]<<24|Y[A+1]<<16|Y[A+2]<<8|Y[A+3],A+=4):(v=c[F-2],H=c[F-15],G=c[F-7]+c[F-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),c[F]=G),v=l+kX[F]+G+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&L^ ~E&r),H=((P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10))+(P&V^P&d^V&d),l=v+H,T+=v,F++,F<16?(c[F]=G=Y[A]<<24|Y[A+1]<<16|Y[A+2]<<8|Y[A+3],A+=4):(v=c[F-2],H=c[F-15],G=c[F-7]+c[F-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),c[F]=G),v=r+kX[F]+G+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&E^~T&L),H=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&P^l&V^P&V),G=V,V=L,L=G,G=P,P=E,E=G,G=l,l=T,T=G,r=d+v,d=v+H,F++;U.Y[0]=d+U.Y[0]|0;U.Y[1]=T+U.Y[1]|0;U.Y[2]=E+U.Y[2]|0;U.Y[3]= L+U.Y[3]|0;U.Y[4]=r+U.Y[4]|0;U.Y[5]=l+U.Y[5]|0;U.Y[6]=P+U.Y[6]|0;U.Y[7]=V+U.Y[7]|0}; Dk3=function(U){var Y=new Uint8Array(32),A=64-U.T;U.T>55&&(A+=64);var c=new Uint8Array(A);c[0]=128;for(var d=U.j*8,T=1;T<9;T++){var E=d%256;c[A-T]=E;d=(d-E)/256}U.update(c);for(A=0;A<8;A++)Y[A*4]=U.Y[A]>>>24,Y[A*4+1]=U.Y[A]>>>16&255,Y[A*4+2]=U.Y[A]>>>8&255,Y[A*4+3]=U.Y[A]&255;nSX(U);return Y}; nSX=function(U){U.Y=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];U.G=[];U.G.length=64;U.j=0;U.T=0}; IsX=function(U){this.Y=U}; uaS=function(U,Y,A){U=new Xn(U.Y);U.update(Y);U.update(A);Y=Dk3(U);U.update(U.K);U.update(Y);Y=Dk3(U);U.reset();return Y}; KqX=function(U){this.T=U}; qi8=function(U,Y,A,c){var d,T,E;return g.S(function(L){switch(L.T){case 1:if(U.Y){L.uY(2);break}return g.x(L,c.importKey("raw",U.T,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:U.Y=L.Y;case 2:return d=new Uint8Array(Y.length+A.length),d.set(Y),d.set(A,Y.length),T={name:"HMAC",hash:"SHA-256"},g.x(L,c.sign(T,U.Y,d),4);case 4:return E=L.Y,L.return(new Uint8Array(E))}})}; CV3=function(U,Y,A){U.W||(U.W=new IsX(U.T));return uaS(U.W,Y,A)}; Udc=function(U,Y,A){var c,d;return g.S(function(T){if(T.T==1){c=t2();if(!c)return T.return(CV3(U,Y,A));g.J3(T,3);return g.x(T,qi8(U,Y,A,c),5)}if(T.T!=3)return T.return(T.Y);d=g.XE(T);g.Md(d);jw=!0;return T.return(CV3(U,Y,A))})}; AzX=function(U){for(var Y="",A=0;A=1?U[U.length-1]:null;for(var c=g.J(U),d=c.next();!d.done;d=c.next())if(d=d.value,d.width&&d.height&&(A&&d.width>=Y||!A&&d.height>=Y))return d;for(Y=U.length-1;Y>=0;Y--)if(A&&U[Y].width||!A&&U[Y].height)return U[Y];return U[0]}; aC=function(){this.state=1;this.CP=null;this.ZG=void 0}; $dl=function(U,Y,A,c,d,T){var E=E===void 0?"trayride":E;A?(U.l9(2),g.rn(A,function(){if(window[E])V5E(U,c,E,d);else{U.l9(3);var L=FmX(A),r=document.getElementById(L);r&&(il3(L),r.parentNode.removeChild(r));g.Md(new g.Do("BL:ULB",""+A))}},T)):Y?(T=g.qs("SCRIPT"),Y instanceof df?(T.textContent=En(Y),oH(T)):T.textContent=Y,T.nonce=ci(document),document.head.appendChild(T),document.head.removeChild(T),window[E]?V5E(U,c,E,d):(U.l9(4),g.Md(new g.Do("BL:ULBJ")))):g.Md(new g.Do("BL:ULV"))}; V5E=function(U,Y,A,c){U.l9(5);var d=!!U.ZG&&vsX.includes(g.tD(U.ZG)||"");try{var T=new $U({program:Y,globalName:A,Jl:{disable:!g.ir("att_web_record_metrics")||!g.ir("att_skip_metrics_for_cookieless_domains_ks")&&d,s_:"aGIf"}});T.oh.then(function(){U.l9(6);c&&c(Y)}); U.xS(T)}catch(E){U.l9(7),E instanceof Error&&g.Md(E)}}; xX=function(){var U=g.u8("yt.abuse.playerAttLoader");return U&&["bgvma","bgvmb","bgvmc"].every(function(Y){return Y in U})?U:null}; sk=function(){aC.apply(this,arguments)}; fz=function(){}; H$E=function(U,Y,A){for(var c=!1,d=g.J(U.QH.entries()),T=d.next();!T.done;T=d.next())T=g.J(T.value).next().value,T.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T.mY==="core"&&(c=!0);if(c){a:if(!A){U=g.J(U.QH.entries());for(A=U.next();!A.done;A=U.next())if(c=g.J(A.value),A=c.next().value,c=c.next().value,A.slotType==="SLOT_TYPE_IN_PLAYER"&&A.mY==="core"){A=c.layoutId;break a}A=void 0}A?Y.mw(A):$D("No triggering layout ID available when attempting to mute.")}}; h2=function(U,Y){this.CX=U;this.Kc=Y}; Sw=function(){}; Ml=function(){}; WfX=function(U){g.p.call(this);var Y=this;this.a5=U;this.Y=new Map;bf(this,"commandExecutorCommand",function(A,c,d){GBV(Y,A.commands,c,d)}); bf(this,"clickTrackingParams",function(){})}; wjv=function(U,Y){bf(U,Y.Dq(),function(A,c,d){Y.Wx(A,c,d)})}; bf=function(U,Y,A){U.Ky();U.Y.get(Y)&&g.S5(Error("Extension name "+Y+" already registered"));U.Y.set(Y,A)}; GBV=function(U,Y,A,c){Y=Y===void 0?[]:Y;U.Ky();var d=[],T=[];Y=g.J(Y);for(var E=Y.next();!E.done;E=Y.next())E=E.value,g.O(E,i$X)||g.O(E,Jzc)?d.push(E):T.push(E);d=g.J(d);for(Y=d.next();!Y.done;Y=d.next())pz(U,Y.value,A,c);T=g.J(T);for(d=T.next();!d.done;d=T.next())pz(U,d.value,A,c)}; pz=function(U,Y,A,c){U.Ky();Y.loggingUrls&&Ffc(U,"loggingUrls",Y.loggingUrls,A,c);Y=g.J(Object.entries(Y));for(var d=Y.next();!d.done;d=Y.next()){var T=g.J(d.value);d=T.next().value;T=T.next().value;d==="openPopupAction"?U.a5.get().wX("innertubeCommand",{openPopupAction:T}):d==="confirmDialogEndpoint"?U.a5.get().wX("innertubeCommand",{confirmDialogEndpoint:T}):jB3.hasOwnProperty(d)||Ffc(U,d,T,A,c)}}; Ffc=function(U,Y,A,c,d){if((U=U.Y.get(Y))&&typeof U==="function")try{U(A,c,d)}catch(T){g.S5(T)}else Y=new g.Do("Unhandled field",Y),g.Md(Y)}; Q8=function(U,Y,A){this.A_=U;this.Y=Y;this.SX=A;si(Mk(),{wl:lS3,Pz:rz9})}; ZE=function(U){this.value=U}; Ok=function(U){this.value=U}; ms=function(U){this.value=U}; gb=function(U){this.value=U}; y8=function(U){this.value=U}; nz=function(U){this.value=U}; DE=function(U){this.value=U}; IC=function(){ZE.apply(this,arguments)}; uf=function(U){this.value=U}; Kz=function(U){this.value=U}; ql=function(U){this.value=U}; Cz=function(U){this.value=U}; Uy=function(U){this.value=U}; Y8=function(U){this.value=U}; Ao=function(U){this.value=U}; cK=function(U){this.value=U}; dY=function(U){this.value=U}; TT=function(U){this.value=U}; Ey=function(){ZE.apply(this,arguments)}; o0=function(U){this.value=U}; zT=function(U){this.value=U}; Lm=function(U){this.value=U}; rY=function(U){this.value=U}; lD=function(U){this.value=U}; PK=function(U){this.value=U}; VL=function(U){this.value=U}; $8=function(U){this.value=U}; vK=function(U){this.value=U}; HK=function(U){this.value=U}; GT=function(U){this.value=U}; WK=function(U){this.value=U}; wY=function(U){this.value=U}; iD=function(U){this.value=U}; Jo=function(U){this.value=U}; Fw=function(U){this.value=U}; jY=function(U){this.value=U}; NT=function(U){this.value=U}; to=function(U){this.value=U}; eY=function(U){this.value=U}; BK=function(U){this.value=U}; Xw=function(U){this.value=U}; k8=function(U){this.value=U}; R0=function(U){this.value=U}; a0=function(U){this.value=U}; x8=function(U){this.value=U}; sy=function(U){this.value=U}; fm=function(U){this.value=U}; ho=function(U){this.value=U}; SY=function(U){this.value=U}; MT=function(U){this.value=U}; bD=function(U){this.value=U}; pm=function(U){this.value=U}; QL=function(U){this.value=U}; Zt=function(U){this.value=U}; Oy=function(U){this.value=U}; m6=function(U){this.value=U}; gY=function(U){this.value=U}; yL=function(){ZE.apply(this,arguments)}; nm=function(U){this.value=U}; Dt=function(){ZE.apply(this,arguments)}; I0=function(){ZE.apply(this,arguments)}; uD=function(){ZE.apply(this,arguments)}; Km=function(){ZE.apply(this,arguments)}; qT=function(){ZE.apply(this,arguments)}; Cm=function(U){this.value=U}; Uj=function(U){this.value=U}; Yq=function(U){this.value=U}; Ar=function(U){this.value=U}; c_=function(U){this.value=U}; TG=function(U,Y,A){if(A&&!A.includes(U.layoutType))return!1;Y=g.J(Y);for(A=Y.next();!A.done;A=Y.next())if(!dD(U.clientMetadata,A.value))return!1;return!0}; Ej=function(){return""}; N83=function(U,Y){switch(U){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 Y(U),8}}; od=function(U,Y,A,c){c=c===void 0?!1:c;lw.call(this,U);this.c7=A;this.rk=c;this.args=[];Y&&this.args.push(Y)}; u=function(U,Y,A,c){c=c===void 0?!1:c;lw.call(this,U);this.c7=A;this.rk=c;this.args=[];Y&&this.args.push(Y)}; zG=function(U){var Y=new Map;U.forEach(function(A){Y.set(A.Y(),A)}); this.Y=Y}; dD=function(U,Y){return U.Y.has(Y)}; LH=function(U,Y){U=U.Y.get(Y);if(U!==void 0)return U.get()}; rD=function(U){return Array.from(U.Y.keys())}; lT=function(U,Y,A){if(A&&A!==U.slotType)return!1;Y=g.J(Y);for(A=Y.next();!A.done;A=Y.next())if(!dD(U.clientMetadata,A.value))return!1;return!0}; e7V=function(U){var Y;return((Y=t54.get(U))==null?void 0:Y.Z0)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; VK=function(U,Y){var A={type:Y.slotType,controlFlowManagerLayer:B84.get(Y.mY)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Y.slotEntryTrigger&&(A.entryTriggerType=Y.slotEntryTrigger.triggerType);Y.slotPhysicalPosition!==1&&(A.slotPhysicalPosition=Y.slotPhysicalPosition);if(U){A.debugData={slotId:Y.slotId};if(U=Y.slotEntryTrigger)A.debugData.slotEntryTriggerData=P_(U);U=Y.slotFulfillmentTriggers;A.debugData.fulfillmentTriggerData=[];U=g.J(U);for(var c=U.next();!c.done;c=U.next())A.debugData.fulfillmentTriggerData.push(P_(c.value)); Y=Y.slotExpirationTriggers;A.debugData.expirationTriggerData=[];Y=g.J(Y);for(U=Y.next();!U.done;U=Y.next())A.debugData.expirationTriggerData.push(P_(U.value))}return A}; Xj8=function(U,Y){var A={type:Y.layoutType,controlFlowManagerLayer:B84.get(Y.mY)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};U&&(A.debugData={layoutId:Y.layoutId});return A}; P_=function(U,Y){var A={type:U.triggerType};Y!=null&&(A.category=Y);U.triggeringSlotId!=null&&(A.triggerSourceData||(A.triggerSourceData={}),A.triggerSourceData.associatedSlotId=U.triggeringSlotId);U.triggeringLayoutId!=null&&(A.triggerSourceData||(A.triggerSourceData={}),A.triggerSourceData.associatedLayoutId=U.triggeringLayoutId);return A}; kBE=function(U,Y,A,c){Y={opportunityType:Y};U&&(c||A)&&(c=g.mk(c||[],function(d){return VK(U,d)}),Y.debugData=Object.assign({},A&&A.length>0?{associatedSlotId:A}:{},c.length>0?{slots:c}:{})); return Y}; v_=function(U,Y){return function(A){return R7S($q(U),Y.slotId,Y.slotType,Y.slotPhysicalPosition,Y.mY,Y.slotEntryTrigger,Y.slotFulfillmentTriggers,Y.slotExpirationTriggers,A.layoutId,A.layoutType,A.mY)}}; R7S=function(U,Y,A,c,d,T,E,L,r,l,P){return{adClientDataEntry:{slotData:VK(U,{slotId:Y,slotType:A,slotPhysicalPosition:c,mY:d,slotEntryTrigger:T,slotFulfillmentTriggers:E,slotExpirationTriggers:L,clientMetadata:new zG([])}),layoutData:Xj8(U,{layoutId:r,layoutType:l,mY:P,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],HZ:new Map,clientMetadata:new zG([]),Gk:{}})}}}; GG=function(U){this.xE=U;U=Math.random();var Y=this.xE.get();Y=g.H_(Y.U.L().experiments,"html5_debug_data_log_probability");Y=Number.isFinite(Y)&&Y>=0&&Y<=1?Y:0;this.Y=U1){g.Md(new g.Do("Exit already started",{current:U.currentState}));var A=!1}else A=!0;if(!A)return!1;U.currentState=2;U.Y=Y;return!0}; jf=function(U){if(U.currentState!==2)return!1;U.currentState=3;return!0}; oDV=function(U,Y){var A=new Map;U=g.J(U);for(var c=U.next();!c.done;c=U.next()){c=c.value;if(c.layoutType==="LAYOUT_TYPE_MEDIA")var d="v";else c.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(d=LH(c.clientMetadata,"metadata_type_linked_in_player_layout_type"),d=d==="LAYOUT_TYPE_ENDCAP"||d==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":d==="LAYOUT_TYPE_SURVEY"?"s":d==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):d="u";A.set(c.layoutId,d);if(d==="u"){var T={};d=Y;c=(T.c=c.layoutId,T);d.U.wW("uct",c)}}U= Y.fX();Nx={contentCpn:U,ZS:A};c={};A=(c.ct=A.size,c.c=U,c);Y.U.wW("acc",A)}; zrE=function(){Nx={contentCpn:"",ZS:new Map}}; t5=function(U){var Y;return(Y=Nx.ZS.get(U))!=null?Y:"u"}; ef=function(U,Y,A){U.U.wW(Y,A);Lt9(U)}; r_X=function(U){var Y=U.layoutId,A=U.gK;if(U.uG){var c={};ef(U.A_,"slso",(c.ec=Y,c.is=A,c.ctp=t5(Y),c))}}; BU=function(U){var Y=U.layoutId,A=U.gK;if(U.uG){var c={};ef(U.A_,"slse",(c.ec=Y,c.is=A,c.ctp=t5(Y),c))}}; lPc=function(U){var Y=U.layoutId,A=U.gK,c=U.A_;U.uG&&(U={},ef(c,"sleo",(U.xc=Y,U.is=A,U.ctp=t5(Y),U)),Lt9(c))}; PEY=function(U){var Y=U.cpn,A=U.A_;U=U.gK;var c=A.fX(),d={};ef(A,"ce",(d.ec=Y,d.ia=Y!==c,d.r=Nx.ZS.has(Y),d.is=U,d.ctp=t5(Y),d))}; Lt9=function(U){if(U.fX()!==Nx.contentCpn){var Y={};Y=(Y.c=Nx.contentCpn,Y);U.U.wW("ccm",Y)}}; VRX=function(U){var Y=U.cpn,A=U.A_;U=U.gK;var c=A.fX(),d={};ef(A,"cx",(d.xc=Y,d.ia=Y!==c,d.r=Nx.ZS.has(Y),d.is=U,d.ctp=t5(Y),d))}; $Gc=function(U){this.params=U;this.Y=new Set}; vDc=function(U,Y,A){if(!U.Y.has(Y)){U.Y.add(Y);var c={};U.params.Tx.XT(Y,Object.assign({},A,(c.p_ac=U.params.adCpn,c.p_isv=U.params.gEv&&U.params.pV,c)))}}; kP=function(U,Y,A){if(X6(U.params.Tx.xE.get(),!0)){var c=A.flush,d={};vDc(U,Y,(d.cts=A.currentTimeSec,d.f=c,d))}}; HV8=function(U,Y){this.A_=U;this.xE=Y}; R9=function(U){var Y=[];if(U){U=g.J(Object.entries(U));for(var A=U.next();!A.done;A=U.next()){var c=g.J(A.value);A=c.next().value;c=c.next().value;c!==void 0&&(c=typeof c==="boolean"?""+ +c:(""+c).replace(/[:,=]/g,"_"),Y.push(A+"."+c))}}return Y.join(";")}; a9=function(U,Y,A){Y=Y===void 0?{}:Y;this.errorCode=U;this.details=Y;this.severity=A===void 0?0:A}; xP=function(U){return U===1||U===2}; s7=function(U,Y){Y=Y===void 0?0:Y;if(U instanceof a9)return U;U=U&&U instanceof Error?U:Error(""+U);xP(Y)?g.S5(U):g.Md(U);return new a9(Y===1?"player.fatalexception":"player.exception",{name:""+U.name,message:""+U.message},Y)}; Ggv=function(U,Y){function A(){var c=g.SS.apply(0,arguments);U.removeEventListener("playing",A);Y.apply(null,g.X(c))} U.addEventListener("playing",A)}; fd=function(){var U=g.u8("yt.player.utils.videoElement_");U||(U=g.qs("VIDEO"),g.Ic("yt.player.utils.videoElement_",U));return U}; h5=function(U){var Y=fd();return!!(Y&&Y.canPlayType&&Y.canPlayType(U))}; Mx=function(U){if(/opus/.test(U)&&g.Sf&&!en("38")&&!g.yB())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(U);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(U);if(/webm/.test(U)&&!wPc())return!1;U==='audio/mp4; codecs="mp4a.40.2"'&&(U='video/mp4; codecs="avc1.4d401f"');return!!h5(U)}; WtX=function(U){try{var Y=Mx('video/mp4; codecs="avc1.42001E"')||Mx('video/webm; codecs="vp9"');return(Mx('audio/mp4; codecs="mp4a.40.2"')||Mx('audio/webm; codecs="opus"'))&&(Y||!U)||h5('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(A){return"html5.missingapi"}}; bu=function(){var U=fd();return!(!U.webkitSupportsPresentationMode||typeof U.webkitSetPresentationMode!=="function")}; pd=function(){var U=fd();try{var Y=U.muted;U.muted=!Y;return U.muted!==Y}catch(A){}return!1}; whS=function(){var U;return((U=navigator.connection)==null?void 0:U.type)||""}; g.Qy=function(){XC.apply(this,arguments)}; ZM=function(U,Y,A,c,d,T,E,L){this.sampleRate=U===void 0?0:U;this.numChannels=Y===void 0?0:Y;this.spatialAudioType=A===void 0?"SPATIAL_AUDIO_TYPE_NONE":A;this.Y=c===void 0?!1:c;this.j=d===void 0?0:d;this.W=T===void 0?0:T;this.audioQuality=E===void 0?"AUDIO_QUALITY_UNKNOWN":E;this.T=L===void 0?!1:L}; gt=function(U,Y,A,c,d,T,E,L,r){this.width=U;this.height=Y;this.quality=T||O7(U,Y);this.qualityOrdinal=g.mZ[this.quality];this.fps=A||0;this.stereoLayout=!d||c!=null&&c!=="UNKNOWN"&&c!=="RECTANGULAR"?0:d;this.projectionType=c?c==="EQUIRECTANGULAR"&&d===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":c:"UNKNOWN";(U=E)||(U=g.mZ[this.quality],U===0?U="Autom\u00e1tica":(Y=this.fps,A=this.projectionType,U=U.toString()+(A==="EQUIRECTANGULAR"||A==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||A==="MESH"?"s":"p")+(Y>55?"60": Y>49?"50":Y>39?"48":"")));this.qualityLabel=U;this.Y=L||"";this.primaries=r||""}; O7=function(U,Y){var A=Math.max(U,Y);U=Math.min(U,Y);Y=yy[0];for(var c=0;c=Math.floor(T*16/9)*1.3||U>=T*1.3)return Y;Y=d}return"tiny"}; I9=function(U,Y,A){A=A===void 0?{}:A;this.id=U;this.mimeType=Y;A.hs>0||(A.hs=16E3);Object.assign(this,A);U=g.J(this.id.split(";"));this.itag=U.next().value;this.Y=U.next().value;this.containerType=nd(Y);this.Rv=DM[this.itag]||""}; uu=function(U){return U.Rv==="9"||U.Rv==="("||U.Rv==="9h"||U.Rv==="(h"}; iVl=function(U){return U.Rv==="H"||U.Rv==="h"}; Kd=function(U){return U.Rv==="9h"||U.Rv==="(h"}; J_l=function(U){return!!U.JB&&!!U.JB.fairplay&&(U.Rv==="("||U.Rv==="(h"||U.Rv==="A"||U.Rv==="MEAC3")||qx&&!!U.JB&&U.Rv==="1e"}; Cd=function(U){return U.Rv==="1"||U.Rv==="1h"||qx&&U.Rv==="1e"}; Uq=function(U){return U.Rv==="mac3"||U.Rv==="meac3"||U.Rv==="m"||U.Rv==="i"}; Ye=function(U){return U.Rv==="MAC3"||U.Rv==="MEAC3"||U.Rv==="M"||U.Rv==="I"}; g.Ax=function(U){return U.containerType===1}; FtE=function(U){return U.Rv==="("||U.Rv==="(h"||U.Rv==="H"||qx&&U.Rv==="1e"}; cd=function(U){return U.mimeType==="application/x-mpegURL"}; g.dh=function(U,Y){return{itag:+U.itag,lmt:Y?0:U.lastModified,xtags:U.Y||""}}; jNX=function(U){var Y=navigator.mediaCapabilities;if(Y==null||!Y.decodingInfo||U.Rv==="f")return Promise.resolve();var A={type:U.audio&&U.video?"file":"media-source"};U.video&&(A.video={contentType:U.mimeType,width:U.video.width||640,height:U.video.height||360,bitrate:U.hs*8||1E6,framerate:U.video.fps||30});U.audio&&(A.audio={contentType:U.mimeType,channels:""+(U.audio.numChannels||2),bitrate:U.hs*8||128E3,samplerate:U.audio.sampleRate||44100});return Y.decodingInfo(A).then(function(c){U.T=c})}; Tu=function(U){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(U)}; Eq=function(U){return/(vp9|vp09|vp8|avc1|av01)/.test(U)}; on=function(U){return U.includes("vtt")||U.includes("text/mp4")}; nd=function(U){return U.indexOf("/mp4")>=0?1:U.indexOf("/webm")>=0?2:U.indexOf("/x-flv")>=0?3:U.indexOf("/vtt")>=0?4:0}; zu=function(U,Y,A,c,d,T){var E=new ZM;Y in g.mZ||(Y="small");Y==="light"&&(Y="tiny");c&&d?(d=Number(d),c=Number(c)):(d=g.mZ[Y],c=Math.round(d*16/9));T=new gt(c,d,0,null,void 0,Y,T);U=unescape(U.replace(/"/g,'"'));return new I9(A,U,{audio:E,video:T})}; Lw=function(U){var Y="id="+U.id;U.video&&(Y+=", res="+U.video.qualityLabel);var A,c;return Y+", byterate=("+((A=U.gk)==null?void 0:A.toFixed(0))+", "+((c=U.hs)==null?void 0:c.toFixed(0))+")"}; rh=function(U,Y){return{start:function(A){return U[A]}, end:function(A){return Y[A]}, length:U.length}}; N1V=function(U,Y,A){for(var c=[],d=[],T=0;T=Y)return A}catch(c){}return-1}; Vd=function(U,Y){return Pd(U,Y)>=0}; tRV=function(U,Y){if(!U)return NaN;Y=Pd(U,Y);return Y>=0?U.start(Y):NaN}; $e=function(U,Y){if(!U)return NaN;Y=Pd(U,Y);return Y>=0?U.end(Y):NaN}; vd=function(U){return U&&U.length?U.end(U.length-1):NaN}; Hd=function(U){return vd(U)>0}; Gu=function(U,Y){U=$e(U,Y);return U>=0?U-Y:0}; Wd=function(U,Y,A){for(var c=[],d=[],T=0;TA||(c.push(Math.max(Y,U.start(T))-Y),d.push(Math.min(A,U.end(T))-Y));return rh(c,d)}; wh=function(U,Y,A,c){g.l6.call(this);var d=this;this.Pp=U;this.start=Y;this.end=A;this.isActive=c;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.aR={error:function(){!d.Ky()&&d.isActive&&d.publish("error",d)}, updateend:function(){!d.Ky()&&d.isActive&&d.publish("updateend",d)}}; this.Pp.oF(this.aR);this.nK=this.isActive}; Jx=function(U,Y,A,c,d,T){g.l6.call(this);var E=this;this.yd=U;this.N7=Y;this.id=A;this.containerType=c;this.Rv=d;this.pV=T;this.Sh=this.FK=this.YH=null;this.H8=!1;this.appendWindowStart=this.timestampOffset=0;this.Ko=rh([],[]);this.d3=!1;this.QW=[];this.vM=iM?[]:void 0;this.Yr=function(r){return E.publish(r.type,E)}; var L;if((L=this.yd)==null?0:L.addEventListener)this.yd.addEventListener("updateend",this.Yr),this.yd.addEventListener("error",this.Yr)}; Fg=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; j1=function(U,Y){this.Dm=U;this.Y=Y===void 0?!1:Y;this.T=!1}; N2=function(U,Y,A){A=A===void 0?!1:A;g.p.call(this);this.mediaElement=U;this.Ov=Y;this.isView=A;this.J=0;this.j=!1;this.K=!0;this.X=0;this.callback=null;this.Z=!1;this.Ov||(this.N7=g.M(this.mediaElement.jc()));this.events=new g.Qy(this);g.Z(this,this.events);this.W=new j1(this.Ov?window.URL.createObjectURL(this.Ov):this.N7.webkitMediaSourceURL,!0);U=this.Ov||this.N7;kx(this.events,U,["sourceopen","webkitsourceopen"],this.wuY);kx(this.events,U,["sourceclose","webkitsourceclose"],this.iVE);this.G={updateend:this.AR}}; erc=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; B1l=function(U,Y){tx(U)?g.jW(function(){Y(U)}):U.callback=Y}; XhX=function(U,Y,A){if(Kw){var c;q2(U.mediaElement,{l:"mswssb",sr:(c=U.mediaElement.iY)==null?void 0:c.U_()},!1);Y.oF(U.G,U);A.oF(U.G,U)}U.Y=Y;U.T=A;g.Z(U,Y);g.Z(U,A)}; Cw=function(U){return!!U.Y||!!U.T}; tx=function(U){try{return U$(U)==="open"}catch(Y){return!1}}; U$=function(U){if(U.Ov)return U.Ov.readyState;switch(U.N7.webkitSourceState){case U.N7.SOURCE_OPEN:return"open";case U.N7.SOURCE_ENDED:return"ended";default:return"closed"}}; Y0=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; kgV=function(U){tx(U)&&(U.Ov?U.Ov.endOfStream():U.N7.webkitSourceEndOfStream(U.N7.EOS_NO_ERROR))}; Rr3=function(U,Y,A,c){if(!U.Y||!U.T)return null;var d=U.Y.isView()?U.Y.Pp:U.Y,T=U.T.isView()?U.T.Pp:U.T,E=new N2(U.mediaElement,U.Ov,!0);E.W=U.W;XhX(E,new wh(d,Y,A,c),new wh(T,Y,A,c));tx(U)||U.Y.dB(U.Y.Zm());return E}; aP3=function(U){var Y;(Y=U.Y)==null||Y.tG();var A;(A=U.T)==null||A.tG();U.K=!1}; AX=function(){var U=this;this.JE=this.cI=iY3;this.promise=new g.tS(function(Y,A){U.cI=Y;U.JE=A})}; cD=function(){g.p.call(this);this.g5=!1;this.Dm=null;this.G=this.J=!1;this.j=new g.PO;this.iY=null;g.Z(this,this.j)}; d4=function(U){U=U.K7();return U.length<1?NaN:U.end(U.length-1)}; xGX=function(U){!U.T&&erc()&&(U.W?U.W.then(function(){return xGX(U)}):U.Fj()||(U.T=U.lL()))}; sN3=function(U){U.T&&(U.T.dispose(),U.T=void 0)}; q2=function(U,Y,A){var c;((c=U.iY)==null?0:c.O3())&&U.iY.wW("rms",Y,A===void 0?!1:A)}; fPv=function(U,Y,A){U.isPaused()||U.getCurrentTime()>Y||A>10||(U.play(),g.vn(function(){fPv(U,U.getCurrentTime(),A+1)},500))}; hrl=function(U,Y){U.Dm&&U.Dm.equals(Y)||(U.Dm&&U.Dm.dispose(),U.Dm=Y)}; T3=function(U){return Gu(U.Hb(),U.getCurrentTime())}; Sec=function(U,Y){if(U.Ux()===0||U.hasError())return!1;var A=U.getCurrentTime()>0;return Y>=0&&(U=U.K7(),U.length||!A)?Vd(U,Y):A}; E$=function(U){U.Fj()&&(U.iY&&U.iY.gX("rs_s"),DN&&U.getCurrentTime()>0&&U.seekTo(0),U.qh(),U.load(),hrl(U,null));delete U.W}; oh=function(U){switch(U.C3()){case 2:return"progressive.net.retryexhausted";case 3:return U=U.uB(),(U==null?0:U.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||MRY&&(U==null?0:U.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.z3=function(U,Y,A){this.Pb=Y===void 0?null:Y;this.seekSource=A===void 0?null:A;this.state=U||64}; LQ=function(U,Y,A){A=A===void 0?!1:A;return bV4(U,Y.getCurrentTime(),(0,g.y)(),T3(Y),A)}; r4=function(U,Y,A,c){if(!(Y===U.state&&A===U.Pb&&c===U.seekSource||Y!==void 0&&(Y&128&&!A||Y&2&&Y&16))){var d;if(d=Y)d=Y||U.state,d=!!(d&16||d&32);U=new g.z3(Y,A,d?c?c:U.seekSource:null)}return U}; lU=function(U,Y,A){return r4(U,U.state|Y,null,A===void 0?null:A)}; PD=function(U,Y){return r4(U,U.state&~Y,null,null)}; VG=function(U,Y,A,c){return r4(U,(U.state|Y)&~A,null,c===void 0?null:c)}; g.I=function(U,Y){return!!(U.state&Y)}; g.$0=function(U,Y){return Y.state===U.state&&Y.Pb===U.Pb}; vD=function(U){return U.isPlaying()&&!g.I(U,16)&&!g.I(U,32)}; HD=function(U){return g.I(U,128)?-1:g.I(U,2)?0:g.I(U,2048)?3:g.I(U,64)?-1:g.I(U,1)&&!g.I(U,32)?3:g.I(U,8)?1:g.I(U,4)?2:-1}; WD=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H,G,F,N){g.p.call(this);var e=this;this.bG=U;this.slot=Y;this.layout=A;this.SX=c;this.xt=d;this.Gn=T;this.FT=E;this.Ua=L;this.U3=r;this.Xz=l;this.position=V;this.J=v;this.xE=H;this.Ss=G;this.MW=F;this.context=N;this.Tz=!0;this.K=!1;this.XN="not_rendering";this.T=!1;this.W=new wt;U=LH(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.NI=new RK(A.HZ,this.SX,U,A.layoutId);var B;U=((B=G3(this))==null?void 0:B.progressCommands)||[];this.j=new MbS(r, U,A.layoutId,function(){return e.Fn()}); this.Y=new $Gc({adCpn:this.layout.layoutId,Tx:N.Tx,gEv:this.Ss,pV:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; w4=function(U){return{layoutId:U.Iw(),gK:U.Ss,A_:U.Gn.get(),uG:U.Fl()}}; iU=function(U,Y){return Y.layoutId!==U.layout.layoutId?(U.bG.xH(U.slot,Y,new od("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+U.layout.layoutId+("and LayoutType: "+U.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; JX=function(U){U.XN="rendering_start_requested";U.Xz(-1)}; G3=function(U){return LH(U.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; phY=function(U){$D("Received layout exit signal when not in layout exit flow.",U.slot,U.layout)}; QNc=function(U){var Y;return((Y=FS(U.Gn.get(),2))==null?void 0:Y.clientPlaybackNonce)||""}; jU=function(U,Y){switch(Y){case "normal":U.l$("complete");break;case "skipped":U.l$("skip");break;case "abandoned":S8(U.NI,"impression")&&U.l$("abandon")}}; NO=function(U,Y){U.K||(Y=new g.vh(Y.state,new g.z3),U.K=!0);return Y}; tX=function(U,Y){vU(Y)?U.Xz(1):g.Gg(Y,4)&&!g.Gg(Y,2)&&U.f$();Hh(Y,4)<0&&!(Hh(Y,2)<0)&&U.Nj()}; ZV3=function(U){U.position===0&&(U.Ua.get(),U=LH(U.layout.clientMetadata,"metadata_type_ad_placement_config").kind,U={adBreakType:eU(U)},Z5("ad_bl"),g.OX(U))}; BD=function(U,Y){fS(U.NI,Y,!U.T)}; mG3=function(U){var Y;return(((Y=G3(U))==null?void 0:Y.progressCommands)||[]).findIndex(function(A){return!!g.O(A==null?void 0:A.command,OV8)})!==-1}; XS=function(U,Y){var A=LH(U.clientMetadata,"metadata_type_eligible_for_ssap");return A===void 0?($D("Expected SSAP eligibility in PlayerBytes factory",U),!1):Y.Fl(A)}; k0=function(U,Y){if(!q8(Y.get(),"html5_ssap_pass_transition_reason"))return 3;switch(U){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return $D("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return $D("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:U}),3;default:Ka(U,"unknown layoutExitReason")}}; gD8=function(U){$D("getExitReason: unexpected reason",void 0,void 0,{reason:U})}; Rh=function(U,Y){if(q8(Y.get(),"html5_ssap_pass_transition_reason"))switch(U){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return gD8(U),"abandoned";case 3:case 1:return gD8(U),"error";default:Ka(U,"unexpected transition reason")}else switch(U){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return $D("getExitReason: unexpected reason",void 0,void 0,{reason:U}),"error";default:Ka(U,"unexpected transition reason")}}; ah=function(U,Y,A){yl(U,A)||D5(U,Y,A);yl(U,"video_to_ad")||D5(U,Y,"video_to_ad");yl(U,"ad_to_video")||D5(U,Y,"ad_to_video");yl(U,"ad_to_ad")||D5(U,Y,"ad_to_ad")}; x0=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H,G,F,N,e){WD.call(this,U,Y,A,c,d,T,E,L,l,P,V,v,H,G,F,N,e);var B=this;this.a5=r;this.gw=V;this.f9=!0;this.yp=this.Jr=0;this.xd=v4(function(){r_X(w4(B));B.bG.Vd(B.slot,B.layout)}); this.f1=v4(function(){lPc(w4(B));B.XN!=="rendering_stop_requested"&&B.gw(B);B.layoutExitReason?B.bG.D5(B.slot,B.layout,B.layoutExitReason):phY(B)}); this.lf=new g.SW(200);this.lf.listen("tick",function(){B.ya()}); g.Z(this,this.lf)}; fQ=function(U){U.yp=Date.now();s$(U,U.Jr);U.lf.start()}; y_X=function(U){U.Jr=U.Fn();U.EK(U.Jr/1E3,!0);s$(U,U.Jr)}; s$=function(U,Y){Y={current:Y/1E3,duration:U.Fn()/1E3};U.a5.get().wX("onAdPlaybackProgress",Y)}; hX=function(U){x0.call(this,U.bG,U.slot,U.Oy,U.SX,U.xt,U.Gn,U.FT,U.Ua,U.a5,U.U3,U.Xz,U.gw,U.TI,U.z9,U.xE,U.Ss,U.MW,U.context)}; SU=function(U){x0.call(this,U.bG,U.slot,U.Oy,U.SX,U.xt,U.Gn,U.FT,U.Ua,U.a5,U.U3,U.Xz,U.gw,U.TI,U.z9,U.xE,U.Ss,U.MW,U.context)}; MO=function(){SU.apply(this,arguments)}; nDX=function(U){return XS(U.slot,U.xE.get())?new MO(U):new hX(U)}; QG=function(U){WD.call(this,U.callback,U.slot,U.Oy,U.SX,U.xt,U.Gn,U.FT,U.Ua,U.U3,U.Xz,U.gw,U.TI,U.z9,U.xE,U.Ss,U.MW,U.context);var Y=this;this.adCpn="";this.OC=this.Of=0;this.xd=v4(function(){r_X(w4(Y));Y.bG.Vd(Y.slot,Y.layout)}); this.f1=v4(function(){lPc(w4(Y));Y.XN!=="rendering_stop_requested"&&Y.gw(Y);Y.layoutExitReason?Y.bG.D5(Y.slot,Y.layout,Y.layoutExitReason):phY(Y)}); this.VV=U.VV;this.vQ=U.vQ;this.cQ=U.cQ;this.a5=U.a5;this.lB=U.lB;this.gw=U.gw;if(!this.Fl()){q8(this.xE.get(),"html5_disable_media_load_timeout")||(this.Dz=new g.IM(function(){Y.md("load_timeout",new od("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); U=bU(this.xE.get());var A=pQ(this.xE.get());U&&A&&(this.Uj=new g.IM(function(){var c=LH(Y.layout.clientMetadata,"metadata_type_preload_player_vars");c&&Y.vQ.get().U.preloadVideoByPlayerVars(c,2,300)}))}}; IPl=function(U,Y){var A=LH(Y.clientMetadata,"metadata_type_ad_video_id"),c=LH(Y.clientMetadata,"metadata_type_legacy_info_card_vast_extension");A&&c&&U.lB.get().U.L().eX.add(A,{wc:c});(Y=LH(Y.clientMetadata,"metadata_type_sodar_extension_data"))&&u38(U.VV.get(),Y);DGX(U.FT.get(),!1)}; uHv=function(U){DGX(U.FT.get(),!0);var Y;((Y=U.shrunkenPlayerBytesConfig)==null?0:Y.shouldRequestShrunkenPlayerBytes)&&U.FT.get().D_(!1)}; Kt8=function(U){return new Zr(U)}; O$=function(){QG.apply(this,arguments)}; Zr=function(){O$.apply(this,arguments)}; qe4=function(U){return nDX(Object.assign({},U,{bG:U.callback,Xz:function(){}}))}; CEv=function(U){return new QG(Object.assign({},U,{Xz:function(Y){U.a5.get().wX("onAdIntroStateChange",Y)}}))}; Ui9=function(U){function Y(A){U.a5.get().gj(A)} return XS(U.slot,U.xE.get())?Kt8(Object.assign({},U,{Xz:Y})):new QG(Object.assign({},U,{Xz:Y}))}; md=function(U){for(var Y=U.Oy,A=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],c=g.J(aK()),d=c.next();!d.done;d=c.next())A.push(d.value);if(U7(Y,{Wp:A,R2:["LAYOUT_TYPE_MEDIA_BREAK"]}))return qe4(U);Y=U.Oy;A=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];c=g.J(aK());for(d=c.next();!d.done;d=c.next())A.push(d.value);if(U7(Y,{Wp:A,R2:["LAYOUT_TYPE_MEDIA"]}))return dD(U.Oy.clientMetadata,"metadata_type_ad_intro")?CEv(U):Ui9(U)}; ALc=function(U){var Y=g.M(LH(U.clientMetadata,"metadata_type_ad_placement_config")).kind,A=LH(U.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:U.layoutId,adType:YXv(A),adBreakType:eU(Y)}}; eU=function(U){switch(U){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"}}; YXv=function(U){switch(U){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; cL4=function(U){try{return new g4(U.sB,U.slot,U.layout,U.UH,U.QV,U.Gn,U.WQ,U.vQ,U.wf,U.FT,U.D7I,U)}catch(Y){}}; g4=function(U,Y,A,c,d,T,E,L,r,l,P,V){g.p.call(this);this.sB=U;this.slot=Y;this.layout=A;this.UH=c;this.QV=d;this.Gn=T;this.WQ=E;this.vQ=L;this.wf=r;this.FT=l;this.params=V;this.Tz=!0;U=md(P);if(!U)throw Error("Invalid params for sublayout");this.LU=U}; diS=function(){this.Y=1;this.T=new wt}; yG=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H){g.p.call(this);this.callback=U;this.Gn=Y;this.WQ=A;this.vQ=c;this.FT=d;this.yU=T;this.Ua=E;this.tW=L;this.slot=r;this.layout=l;this.UH=P;this.nF=V;this.wf=v;this.xE=H;this.Tz=!0;this.u6=!1;this.wV=[];this.K1=-1;this.HH=!1;this.Br=new diS}; TsY=function(U){var Y;return(Y=U.layout.xU)!=null?Y:LH(U.layout.clientMetadata,"metadata_type_sub_layouts")}; nQ=function(U){return{A_:U.Gn.get(),gK:!1,uG:U.Fl()}}; EgV=function(U,Y,A){if(U.B7()===U.wV.length-1){var c,d;$D("Unexpected skip requested during the last sublayout",(c=U.wv())==null?void 0:c.Nz(),(d=U.wv())==null?void 0:d.zn(),{requestingSlot:Y,requestingLayout:A})}}; ogl=function(U,Y,A){return A.layoutId!==Dr(U,Y,A)?($D("onSkipRequested for a PlayerBytes layout that is not currently active",U.Nz(),U.zn()),!1):!0}; zlX=function(U){U.B7()===U.wV.length-1&&$D("Unexpected skip with target requested during the last sublayout")}; Lb9=function(U,Y,A){return A.renderingContent===void 0&&A.layoutId!==Dr(U,Y,A)?($D("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",U.Nz(),U.zn(),{requestingSlot:Y,requestingLayout:A}),!1):!0}; rL9=function(U,Y,A,c){var d=LH(Y.zn().clientMetadata,"metadata_type_ad_pod_skip_target");if(d&&d>0&&d0)){$D("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",U.slot,U.layout,{indexToPlay:Y,layoutId:U.layout.layoutId});break a}U.K1=Y;Y=U.wv();if(U.B7()>0&&!U.Fl()){var A=U.Ua.get();A.T=!1;var c={};A.Y&&A.videoId&&(c.cttAuthInfo={token:A.Y,videoId:A.videoId});gs("ad_to_ad",c)}U.kS(Y)}}; qO=function(U){yG.call(this,U.sB,U.Gn,U.WQ,U.vQ,U.FT,U.yU,U.Ua,U.tW,U.slot,U.layout,U.UH,U.nF,U.wf,U.xE)}; Vsc=function(U){(U=U.wv())&&U.GD()}; CQ=function(U){yG.call(this,U.sB,U.Gn,U.WQ,U.vQ,U.FT,U.yU,U.Ua,U.tW,U.slot,U.layout,U.UH,U.nF,U.wf,U.xE);this.UT=void 0}; $i8=function(U,Y){U.Iu()&&!jf(U.Br.T)||U.callback.D5(U.slot,U.layout,Y)}; UM=function(U){return q8(U.xE.get(),"html5_ssap_pass_transition_reason")}; vg9=function(U,Y,A){iu(Y.RF())<2&&(A=Rh(A,U.xE),Y.Hp(Y.zn(),A));A=J5(Y.RF());U.ao(U.slot,Y.zn(),A)}; HK3=function(U,Y){if(U.Br.T.currentState<2){var A=Rh(Y,U.xE);A==="error"?U.callback.xH(U.slot,U.layout,new od("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:Y},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):KQ(U.nF,U.layout,A)}}; Ym=function(U,Y,A){iu(Y.RF())>=2||(Y.Hp(Y.zn(),A),jf(Y.RF())&&(xq(U.tW,U.slot,Y.zn(),A),U.UT=void 0))}; GNE=function(U,Y){U.Br.Y===2&&Y!==U.fX()&&$D("onClipEntered: unknown cpn",U.slot,U.layout,{cpn:Y})}; Wbv=function(U,Y){var A=U.wv();if(A){var c=A.zn().layoutId,d=U.B7()+1;U.Iu()?Ym(U,A,Y):A.Hp(A.zn(),Y);d>=0&&dd&&E.BC(P,d-c);return P}; BsY=function(U,Y,A){var c=LH(Y.clientMetadata,"metadata_type_sodar_extension_data");if(c)try{u38(A,c)}catch(d){$D("Unexpected error when loading Sodar",U,Y,{error:d})}}; X0Y=function(U,Y,A,c,d,T,E){Lh(U,Y,new g.vh(A,new g.z3),c,d,E,!1,T)}; Lh=function(U,Y,A,c,d,T,E,L){E=E===void 0?!0:E;vU(A)&&HU(d,0,null)&&(!S8(U,"impression")&&L&&L(),U.l$("impression"));S8(U,"impression")&&(g.Gg(A,4)&&!g.Gg(A,2)&&U.P5("pause"),Hh(A,4)<0&&!(Hh(A,2)<0)&&U.P5("resume"),g.Gg(A,16)&&d>=.5&&U.P5("seek"),E&&g.Gg(A,2)&&rP(U,A.state,Y,c,d,T))}; rP=function(U,Y,A,c,d,T,E,L){S8(U,"impression")&&(T?(T=d-c,T=T>=-1&&T<=2):T=Math.abs(c-d)<=1,li(U,Y,T?c:d,A,c,E,L&&T),T&&U.l$("complete"))}; li=function(U,Y,A,c,d,T,E){hg(U,A*1E3,E);d<=0||A<=0||(Y==null?0:g.I(Y,16))||(Y==null?0:g.I(Y,32))||(HU(A,d*.25,c)&&(T&&!S8(U,"first_quartile")&&T("first"),U.l$("first_quartile")),HU(A,d*.5,c)&&(T&&!S8(U,"midpoint")&&T("second"),U.l$("midpoint")),HU(A,d*.75,c)&&(T&&!S8(U,"third_quartile")&&T("third"),U.l$("third_quartile")))}; kNX=function(U,Y){S8(U,"impression")&&U.P5(Y?"fullscreen":"end_fullscreen")}; Rl3=function(U){S8(U,"impression")&&U.P5("clickthrough")}; a5X=function(U){U.P5("active_view_measurable")}; xiv=function(U){S8(U,"impression")&&!S8(U,"seek")&&U.P5("active_view_fully_viewable_audible_half_duration")}; sll=function(U){S8(U,"impression")&&!S8(U,"seek")&&U.P5("active_view_viewable")}; f58=function(U){S8(U,"impression")&&!S8(U,"seek")&&U.P5("audio_audible")}; hl3=function(U){S8(U,"impression")&&!S8(U,"seek")&&U.P5("audio_measurable")}; SX9=function(U,Y,A,c,d,T,E,L,r,l,P,V){this.callback=U;this.slot=Y;this.layout=A;this.WQ=c;this.NI=d;this.FT=T;this.UL=E;this.xt=L;this.VV=r;this.xE=l;this.SX=P;this.Gn=V;this.f9=!0;this.R5=this.XN=null;this.adCpn=void 0;this.Y=!1}; Msc=function(U,Y,A){var c;zi(U.SX.get(),"ads_qua","cpn."+LH(U.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((c=FS(U.Gn.get(),2))==null?void 0:c.clientPlaybackNonce)+";qt."+Y+";clr."+A)}; bK3=function(U,Y){var A,c;zi(U.SX.get(),"ads_imp","cpn."+LH(U.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((A=FS(U.Gn.get(),2))==null?void 0:A.clientPlaybackNonce)+";clr."+Y+";skp."+!!g.O((c=LH(U.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:c.skipOrPreviewRenderer,Pq))}; VC=function(U){return{enterMs:LH(U.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:LH(U.clientMetadata,"metadata_type_layout_exit_ms")}}; $m=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H){cq.call(this,U,Y,A,c,d,E,L,r,l,V);this.UL=T;this.VV=P;this.xt=v;this.xE=H;this.R5=this.XN=null}; p0V=function(U,Y){var A;zi(U.SX.get(),"ads_imp","acpn."+((A=FS(U.Gn.get(),2))==null?void 0:A.clientPlaybackNonce)+";clr."+Y)}; Ql9=function(U,Y,A){var c;zi(U.SX.get(),"ads_qua","cpn."+LH(U.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((c=FS(U.Gn.get(),2))==null?void 0:c.clientPlaybackNonce)+";qt."+Y+";clr."+A)}; vq=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H,G,F,N,e,B,f,h,Q){this.wf=U;this.UH=Y;this.nF=A;this.Gn=c;this.WQ=d;this.FT=T;this.yU=E;this.SX=L;this.UL=r;this.EH=l;this.xt=P;this.VV=V;this.vQ=v;this.cQ=H;this.Ua=G;this.a5=F;this.U3=N;this.lB=e;this.xE=B;this.Y=f;this.context=h;this.MW=Q}; Hq=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H,G,F,N,e,B){this.wf=U;this.UH=Y;this.nF=A;this.SX=c;this.xt=d;this.VV=T;this.vQ=E;this.Gn=L;this.FT=r;this.yU=l;this.cQ=P;this.Ua=V;this.a5=v;this.U3=H;this.lB=G;this.xE=F;this.WQ=N;this.context=e;this.MW=B}; ZK3=function(U,Y,A,c){rB.call(this,"survey-interstitial",U,Y,A,c)}; Gi=function(U,Y,A,c,d){Ft.call(this,A,U,Y,c);this.SX=d;U=LH(Y.clientMetadata,"metadata_type_ad_placement_config");this.NI=new RK(Y.HZ,d,U,Y.layoutId)}; Wq=function(U){return Math.round(U.width)+"x"+Math.round(U.height)}; ii=function(U,Y,A){A=A===void 0?wP:A;A.widthU.width*U.height*.2)return{o9:3,lS:501,errorMessage:"ad("+Wq(A)+") to container("+Wq(U)+") ratio exceeds limit."};if(A.height>U.height/3-Y)return{o9:3,lS:501,errorMessage:"ad("+Wq(A)+") covers container("+Wq(U)+") center."}}; OKY=function(U,Y){var A=g.M(LH(U.clientMetadata,"metadata_type_ad_placement_config"));return new RK(U.HZ,Y,A,U.layoutId)}; J4=function(U){return g.M(LH(U.clientMetadata,"metadata_type_invideo_overlay_ad_renderer"))}; Fl=function(U,Y,A,c){rB.call(this,"invideo-overlay",U,Y,A,c);this.interactionLoggingClientData=c}; je=function(U,Y,A,c,d,T,E,L,r,l,P,V){Ft.call(this,T,U,Y,d);this.SX=A;this.j=E;this.FT=L;this.U3=r;this.xE=l;this.J=P;this.K=V;this.NI=OKY(Y,A)}; mic=function(){var U=["metadata_type_invideo_overlay_ad_renderer"];aK().forEach(function(Y){U.push(Y)}); return{Wp:U,R2:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; No=function(U,Y,A,c,d,T,E,L,r,l,P,V,v){Ft.call(this,T,U,Y,d);this.SX=A;this.j=E;this.Z=L;this.FT=r;this.U3=l;this.xE=P;this.J=V;this.K=v;this.NI=OKY(Y,A)}; ggc=function(){for(var U=["metadata_type_invideo_overlay_ad_renderer"],Y=g.J(aK()),A=Y.next();!A.done;A=Y.next())U.push(A.value);return{Wp:U,R2:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; t4=function(U){this.FT=U;this.Y=!1}; yLc=function(U,Y,A){rB.call(this,"survey",U,{},Y,A)}; ee=function(U,Y,A,c,d,T,E){Ft.call(this,A,U,Y,c);this.j=d;this.FT=T;this.xE=E}; ngE=function(U,Y,A,c,d,T,E,L,r,l){this.TQ=U;this.FT=Y;this.SX=A;this.j=c;this.xt=d;this.T=T;this.W=E;this.U3=L;this.xE=r;this.Y=l}; Di8=function(U,Y,A,c,d,T,E,L,r,l){this.TQ=U;this.FT=Y;this.SX=A;this.j=c;this.xt=d;this.T=T;this.W=E;this.U3=L;this.xE=r;this.Y=l}; Bq=function(U,Y,A,c,d,T,E,L,r,l){E7.call(this,U,Y,A,c,d,T,E,r);this.GI=L;this.Gn=l}; I5l=function(){var U=Ye3();U.Wp.push("metadata_type_ad_info_ad_metadata");return U}; ub3=function(U,Y,A,c,d,T,E){this.TQ=U;this.FT=Y;this.SX=A;this.T=c;this.GI=d;this.Y=T;this.Gn=E}; Kb9=function(U,Y,A,c,d,T,E,L){this.TQ=U;this.FT=Y;this.SX=A;this.T=c;this.GI=d;this.Y=T;this.xE=E;this.Gn=L}; Xl=function(U,Y){this.slotId=Y;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=U(this.triggerType)}; km=function(U,Y){this.adPodIndex=U;this.Y=Y.length;this.adBreakLengthSeconds=Y.reduce(function(c,d){return c+d},0); var A=0;for(U+=1;U0}; PJ=function(U){return!!(U.JsJ&&U.slot&&U.layout)}; Va=function(U){var Y,A=(Y=U.config)==null?void 0:Y.adPlacementConfig;U=U.renderer;return!(!A||A.kind==null||!U)}; lAY=function(U){if(!TE(U.adLayoutMetadata))return!1;U=U.renderingContent;return g.O(U,PU)||g.O(U,Vy)||g.O(U,rt)||g.O(U,lu)?!0:!1}; $r=function(U){return U.playerVars!==void 0&&U.pings!==void 0&&U.externalVideoId!==void 0}; JE=function(U){if(!TE(U.adLayoutMetadata))return!1;U=U.renderingContent;var Y=g.O(U,vJ);return Y?HJ(Y):(Y=g.O(U,GE))?$r(Y):(Y=g.O(U,WJ))?Y.playerVars!==void 0:(Y=g.O(U,PU))?Y.durationMilliseconds!==void 0:g.O(U,w6)||g.O(U,id)?!0:!1}; HJ=function(U){U=(U.sequentialLayouts||[]).map(function(Y){return g.O(Y,kr)}); return U.length>0&&U.every(JE)}; ao=function(U){return TE(U.adLayoutMetadata)?(U=g.O(U.renderingContent,Ro))&&U.pings?!0:!1:!1}; GLY=function(U){if(!TE(U.adLayoutMetadata))return!1;if(g.O(U.renderingContent,Psv)||g.O(U.renderingContent,VdY))return!0;var Y=g.O(U.renderingContent,xr);return g.O(U.renderingContent,sl)||g.O(Y==null?void 0:Y.sidePanel,$Iv)||g.O(Y==null?void 0:Y.sidePanel,vv3)||g.O(Y==null?void 0:Y.sidePanel,H58)?!0:!1}; FLS=function(U){var Y;(Y=!U)||(Y=U.adSlotMetadata,Y=!((Y==null?void 0:Y.slotId)!==void 0&&(Y==null?void 0:Y.slotType)!==void 0));if(Y||!(WLX(U)||U.slotEntryTrigger&&U.slotFulfillmentTriggers&&U.slotExpirationTriggers))return!1;var A;U=(A=U.fulfillmentContent)==null?void 0:A.fulfilledLayout;return(A=g.O(U,kr))?JE(A):(A=g.O(U,fA))?GLY(A):(A=g.O(U,wXv))?lAY(A):(A=g.O(U,i5E))?LLl(A):(A=g.O(U,JIV))?TE(A.adLayoutMetadata)?g.O(A.renderingContent,El)?!0:!1:!1:(U=g.O(U,hE))?ao(U):!1}; WLX=function(U){var Y;U=g.O((Y=U.fulfillmentContent)==null?void 0:Y.fulfilledLayout,fA);var A;return U&&((A=U.adLayoutMetadata)==null?void 0:A.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&U.layoutExitNormalTriggers===void 0}; jj8=function(U){var Y;return(U==null?void 0:(Y=U.adSlotMetadata)==null?void 0:Y.slotType)==="SLOT_TYPE_IN_PLAYER"}; tdX=function(U,Y){var A;if((A=U.questions)==null||!A.length||!U.playbackCommands||(Y===void 0||!Y)&&U.questions.length!==1)return!1;U=g.J(U.questions);for(Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var c=A=void 0,d=((A=g.O(Y,S7))==null?void 0:A.surveyAdQuestionCommon)||((c=g.O(Y,MK))==null?void 0:c.surveyAdQuestionCommon);if(!NwX(d))return!1}return!0}; e5c=function(U){U=((U==null?void 0:U.playerOverlay)||{}).instreamSurveyAdRenderer;var Y;if(U)if(U.playbackCommands&&U.questions&&U.questions.length===1){var A,c=((Y=g.O(U.questions[0],S7))==null?void 0:Y.surveyAdQuestionCommon)||((A=g.O(U.questions[0],MK))==null?void 0:A.surveyAdQuestionCommon);Y=NwX(c)}else Y=!1;else Y=!1;return Y}; NwX=function(U){if(!U)return!1;U=g.O(U.instreamAdPlayerOverlay,bd);var Y=g.O(U==null?void 0:U.skipOrPreviewRenderer,Pq),A=g.O(U==null?void 0:U.adInfoRenderer,pA);return(g.O(U==null?void 0:U.skipOrPreviewRenderer,Qa)||Y)&&A?!0:!1}; Bwc=function(U){return U.linearAds!=null&&TE(U.adLayoutMetadata)}; XXE=function(U){return U.linearAd!=null&&U.adVideoStart!=null}; kLc=function(U){if(isNaN(Number(U.timeoutSeconds))||!U.text||!U.ctaButton||!g.O(U.ctaButton,g.ZK)||!U.brandImage)return!1;var Y;return U.backgroundImage&&g.O(U.backgroundImage,Ol)&&((Y=g.O(U.backgroundImage,Ol))==null?0:Y.landscape)?!0:!1}; mP=function(U,Y,A,c,d,T,E,L){g.p.call(this);this.xE=U;this.Y=Y;this.T=c;this.Gn=d;this.j=T;this.W=E;this.vQ=L}; sjX=function(U,Y,A){var c,d=((c=A.adSlots)!=null?c:[]).map(function(L){return g.O(L,g6)}); if(A.Z6)if(LH(Y.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Gf(U.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Y.slotId); else{if(R5X(U.xE.get())){var T=A.Su.filter(function(L){var r;return((r=L.renderer)==null?void 0:r.clientForecastingAdRenderer)!=null}); T.length!==0?aA9(U.W,T,d,Y.slotId,A.ssdaiAdsConfig):Gf(U.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Y.slotId)}else Gf(U.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Y.slotId); xI3(U.j,Y)}else{var E;c={CR:Math.round(((T=LH(Y.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:T.CR)||0),nR:(E=LH(Y.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:E.nR};aA9(U.W,A.Su,d,Y.slotId,A.ssdaiAdsConfig,c)}}; SwE=function(U,Y,A,c,d,T,E){var L=FS(U.Gn.get(),1);if(fAY(U.xE.get())){var r=ya(U.T.get(),A,c,d,L.clientPlaybackNonce,L.Y5,L.daiEnabled,L,T,E);h5X(U,r);Gf(U.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return r},Y)}else Gf(U.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return ya(U.T.get(),A,c,d,L.clientPlaybackNonce,L.Y5,L.daiEnabled,L,T,E)},Y)}; h5X=function(U,Y){Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next()){var c=A.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.fulfilledLayout)if(A=void 0,c.fulfilledLayout.renderingContent)A=LH(c.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(c.fulfilledLayout.xU){c=g.J(c.fulfilledLayout.xU);for(var d=c.next();!d.done&&(d=d.value,!d.renderingContent||!(A=LH(d.clientMetadata,"metadata_type_player_vars")));d=c.next());}}else A=void 0;if(A){U.vQ.get().U.preloadVideoByPlayerVars(A, 2,300);break}}}; b5Y=function(U,Y,A,c,d,T,E){Y=MdX(Y,T,Number(c.prefetchMilliseconds)||0,E);U=Y instanceof u?Y:nA(U,c,d,Y,A);return U instanceof u?U:[U]}; pXX=function(U,Y,A,c,d){var T=Wm(U.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");c=[new QL({getAdBreakUrl:c.getAdBreakUrl,CR:0,nR:0}),new Yq(!0)];U=Y.pauseDurationMs?Y.lactThresholdMs?{slotId:T,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Ul(U.Y,T),slotFulfillmentTriggers:[new C13(U.Y)],slotExpirationTriggers:[new nh(U.Y,d),new Kh(U.Y,T)],mY:"core",clientMetadata:new zG(c),adSlotLoggingData:A}:new u("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new u("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return U instanceof u?U:[U]}; Qj3=function(U){var Y,A;return((Y=U.renderer)==null?void 0:(A=Y.adBreakServiceRenderer)==null?void 0:A.getAdBreakUrl)!==void 0}; DK=function(U,Y,A){if(U.beforeContentVideoIdStartedTrigger)U=U.beforeContentVideoIdStartedTrigger?new RW(Ej,Y,U.id):new u("Not able to create BeforeContentVideoIdStartedTrigger");else{if(U.layoutIdExitedTrigger){var c;Y=(c=U.layoutIdExitedTrigger)!=null&&c.triggeringLayoutId?new Se(Ej,U.layoutIdExitedTrigger.triggeringLayoutId,U.id):new u("Not able to create LayoutIdExitedTrigger")}else{if(U.layoutExitedForReasonTrigger){var d,T;((d=U.layoutExitedForReasonTrigger)==null?0:d.triggeringLayoutId)&&((T= U.layoutExitedForReasonTrigger)==null?0:T.layoutExitReason)?(Y=UI3(U.layoutExitedForReasonTrigger.layoutExitReason),U=Y instanceof u?Y:new h4(Ej,U.layoutExitedForReasonTrigger.triggeringLayoutId,[Y],U.id)):U=new u("Not able to create LayoutIdExitedForReasonTrigger")}else{if(U.onLayoutSelfExitRequestedTrigger){var E;Y=(E=U.onLayoutSelfExitRequestedTrigger)!=null&&E.triggeringLayoutId?new yC(Ej,U.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,U.id):new u("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(U.onNewPlaybackAfterContentVideoIdTrigger)U= U.onNewPlaybackAfterContentVideoIdTrigger?new nh(Ej,Y,U.id):new u("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(U.skipRequestedTrigger){var L;Y=(L=U.skipRequestedTrigger)!=null&&L.triggeringLayoutId?new IW(Ej,U.skipRequestedTrigger.triggeringLayoutId,U.id):new u("Not able to create SkipRequestedTrigger")}else if(U.slotIdEnteredTrigger){var r;Y=(r=U.slotIdEnteredTrigger)!=null&&r.triggeringSlotId?new ui(Ej,U.slotIdEnteredTrigger.triggeringSlotId,U.id):new u("Not able to create SlotIdEnteredTrigger")}else if(U.slotIdExitedTrigger){var l; Y=(l=U.slotIdExitedTrigger)!=null&&l.triggeringSlotId?new Kh(Ej,U.slotIdExitedTrigger.triggeringSlotId,U.id):new u("Not able to create SkipRequestedTrigger")}else if(U.surveySubmittedTrigger){var P;Y=(P=U.surveySubmittedTrigger)!=null&&P.triggeringLayoutId?new AE(Ej,U.surveySubmittedTrigger.triggeringLayoutId,U.id):new u("Not able to create SurveySubmittedTrigger")}else{if(U.mediaResumedTrigger)U=U.mediaResumedTrigger&&U.id?new Yw4(U.id):new u("Not able to create MediaResumedTrigger");else{if(U.closeRequestedTrigger){var V; Y=(V=U.closeRequestedTrigger)!=null&&V.triggeringLayoutId?new aW(Ej,U.closeRequestedTrigger.triggeringLayoutId,U.id):new u("Not able to create CloseRequestedTrigger")}else if(U.slotIdScheduledTrigger){var v;Y=(v=U.slotIdScheduledTrigger)!=null&&v.triggeringSlotId?new Ul(Ej,U.slotIdScheduledTrigger.triggeringSlotId,U.id):new u("Not able to create SlotIdScheduledTrigger")}else{if(U.mediaTimeRangeTrigger){var H;c=Number((H=U.mediaTimeRangeTrigger)==null?void 0:H.offsetStartMilliseconds);var G;E=Number((G= U.mediaTimeRangeTrigger)==null?void 0:G.offsetEndMilliseconds);isFinite(c)&&isFinite(E)?(G=E,G===-1&&(G=A),A=c>G?new u("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:c,offsetEndMs:G},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",G===A&&c-500<=G):new NQ(c,G),U=A instanceof u?A:new Z$(Ej,Y,A,!1,U.id)):U=new u("Not able to create MediaTimeRangeTrigger")}else if(U.contentVideoIdEndedTrigger)U=U.contentVideoIdEndedTrigger?new xm(Ej,Y,!1,U.id):new u("Not able to create ContentVideoIdEndedTrigger"); else{if(U.layoutIdEnteredTrigger){var F;Y=(F=U.layoutIdEnteredTrigger)!=null&&F.triggeringLayoutId?new fh(Ej,U.layoutIdEnteredTrigger.triggeringLayoutId,U.id):new u("Not able to create LayoutIdEnteredTrigger")}else if(U.timeRelativeToLayoutEnterTrigger){var N;Y=(N=U.timeRelativeToLayoutEnterTrigger)!=null&&N.triggeringLayoutId?new cJ(Ej,Number(U.timeRelativeToLayoutEnterTrigger.durationMs),U.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,U.id):new u("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(U.onDifferentLayoutIdEnteredTrigger){var e; Y=(e=U.onDifferentLayoutIdEnteredTrigger)!=null&&e.triggeringLayoutId&&U.onDifferentLayoutIdEnteredTrigger.slotType&&U.onDifferentLayoutIdEnteredTrigger.layoutType?new mK(Ej,U.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,U.onDifferentLayoutIdEnteredTrigger.slotType,U.onDifferentLayoutIdEnteredTrigger.layoutType,U.id):new u("Not able to create CloseRequestedTrigger")}else{if(U.liveStreamBreakStartedTrigger)U=U.liveStreamBreakStartedTrigger&&U.id?new QC(Ej,U.id):new u("Not able to create LiveStreamBreakStartedTrigger"); else if(U.liveStreamBreakEndedTrigger)U=U.liveStreamBreakEndedTrigger&&U.id?new Mo(Ej,U.id):new u("Not able to create LiveStreamBreakEndedTrigger");else{if(U.liveStreamBreakScheduledDurationMatchedTrigger){var B;Y=(B=U.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&B.breakDurationMs?new bi(Number(U.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,U.id):new u("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(U.liveStreamBreakScheduledDurationNotMatchedTrigger){var f; Y=(f=U.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&f.breakDurationMs?new ph(Number(U.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,U.id):new u("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(U.newSlotScheduledWithBreakDurationTrigger){var h;Y=(h=U.newSlotScheduledWithBreakDurationTrigger)!=null&&h.breakDurationMs?new OM(Number(U.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,U.id):new u("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else Y= U.prefetchCacheExpiredTrigger?new D$(Ej,U.id):new u("Not able to convert an AdsControlflowTrigger.");U=Y}Y=U}U=Y}Y=U}U=Y}Y=U}U=Y}Y=U}U=Y}Y=U}U=Y}return U}; Io=function(U,Y){Y.Y>=2&&(U.slot_pos=Y.adPodIndex);U.autoplay="1"}; O5Y=function(U,Y,A,c,d,T,E,L){return Y===null?new u("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:Y,ActionCompanionAdRenderer:c}):[Z5c(U,Y,E,T,function(r){var l=r.slotId;r=L(r);var P=c.adLayoutLoggingData,V=new zG([new Ok(c),new Y8(d)]);l=CH(A.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var v={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",mY:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",HZ:new Map, layoutExitNormalTriggers:[new nh(A.Y,E)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:V,Gk:r(v),adLayoutLoggingData:P}})]}; mIV=function(U,Y,A,c,d,T,E,L){return Y===null?new u("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:Y,TopBannerImageTextIconButtonedLayoutViewModel:c}):[Z5c(U,Y,E,T,function(r){var l=r.slotId;r=L(r);var P=c.adLayoutLoggingData,V=new zG([new ms(c),new Y8(d)]);l=CH(A.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var v={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",mY:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", HZ:new Map,layoutExitNormalTriggers:[new nh(A.Y,E)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:V,Gk:r(v),adLayoutLoggingData:P}})]}; DIc=function(U,Y,A,c,d,T){if(!T)for(Y=g.J(Y),T=Y.next();!T.done;T=Y.next())T=T.value,ud(U,T.renderer,T.config.adPlacementConfig.kind);U=Array.from(U.values()).filter(function(P){return gv9(P)}); Y=[];T=g.J(U);for(var E=T.next(),L={};!E.done;L={B2:void 0},E=T.next()){L.B2=E.value;E=g.J(L.B2.Hc);for(var r=E.next(),l={};!r.done;l={yN:void 0},r=E.next())l.yN=r.value,r=function(P,V){return function(v){return P.yN.XA(v,V.B2.instreamVideoAdRenderer.elementId,P.yN.Pc)}}(l,L),l.yN.isContentVideoCompanion?Y.push(yIX(A,c,d,L.B2.instreamVideoAdRenderer.elementId,l.yN.associatedCompositePlayerBytesLayoutId,l.yN.adSlotLoggingData,r)):U.length>1?Y.push(nvl(A,c,d,L.B2.instreamVideoAdRenderer.elementId,l.yN.adSlotLoggingData, function(P,V){return function(v){return P.yN.XA(v,V.B2.instreamVideoAdRenderer.elementId,P.yN.Pc,P.yN.associatedCompositePlayerBytesLayoutId)}}(l,L))):Y.push(nvl(A,c,d,L.B2.instreamVideoAdRenderer.elementId,l.yN.adSlotLoggingData,r))}return Y}; ud=function(U,Y,A){if(Y=IAE(Y)){Y=g.J(Y);for(var c=Y.next();!c.done;c=Y.next())if((c=c.value)&&c.externalVideoId){var d=KA(U,c.externalVideoId);d.instreamVideoAdRenderer||(d.instreamVideoAdRenderer=c,d.wN=A)}else $D("InstreamVideoAdRenderer without externalVideoId")}}; IAE=function(U){var Y=[],A=U.sandwichedLinearAdRenderer&&U.sandwichedLinearAdRenderer.linearAd&&g.O(U.sandwichedLinearAdRenderer.linearAd,GE);if(A)return Y.push(A),Y;if(U.instreamVideoAdRenderer)return Y.push(U.instreamVideoAdRenderer),Y;if(U.linearAdSequenceRenderer&&U.linearAdSequenceRenderer.linearAds){U=g.J(U.linearAdSequenceRenderer.linearAds);for(A=U.next();!A.done;A=U.next())A=A.value,g.O(A,GE)&&Y.push(g.O(A,GE));return Y}return null}; gv9=function(U){if(U.instreamVideoAdRenderer===void 0)return $D("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var Y=g.J(U.Hc),A=Y.next();!A.done;A=Y.next()){A=A.value;if(A.XA===void 0)return!1;if(A.Pc===void 0)return $D("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(U.wN===void 0||A.tq===void 0||U.wN!==A.tq&&A.tq!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(U.instreamVideoAdRenderer.elementId===void 0)return $D("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:U.wN,"matching APSR kind":A.tq}),!1}return!0}; KA=function(U,Y){U.has(Y)||U.set(Y,{instreamVideoAdRenderer:void 0,wN:void 0,adVideoId:Y,Hc:[]});return g.M(U.get(Y))}; qK=function(U,Y,A,c,d,T,E,L,r){d?KA(U,d).Hc.push({eYI:Y,tq:A,isContentVideoCompanion:c,Pc:E,associatedCompositePlayerBytesLayoutId:T,adSlotLoggingData:L,XA:r}):$D("Companion AdPlacementSupportedRenderer without adVideoId")}; CA=function(U){var Y=0;U=g.J(U.questions);for(var A=U.next();!A.done;A=U.next())if(A=A.value,A=g.O(A,S7)||g.O(A,MK)){var c=void 0;Y+=((c=A.surveyAdQuestionCommon)==null?void 0:c.durationMilliseconds)||0}return Y}; Ur=function(U){var Y,A,c,d,T=((A=g.O((Y=U.questions)==null?void 0:Y[0],S7))==null?void 0:A.surveyAdQuestionCommon)||((d=g.O((c=U.questions)==null?void 0:c[0],MK))==null?void 0:d.surveyAdQuestionCommon),E;Y=[].concat(g.X(((E=U.playbackCommands)==null?void 0:E.instreamAdCompleteCommands)||[]),g.X((T==null?void 0:T.timeoutCommands)||[]));var L,r,l,P,V,v,H,G,F,N,e,B,f,h,Q,K,D,c3,TV,U9;return{impressionCommands:(L=U.playbackCommands)==null?void 0:L.impressionCommands,errorCommands:(r=U.playbackCommands)== null?void 0:r.errorCommands,muteCommands:(l=U.playbackCommands)==null?void 0:l.muteCommands,unmuteCommands:(P=U.playbackCommands)==null?void 0:P.unmuteCommands,pauseCommands:(V=U.playbackCommands)==null?void 0:V.pauseCommands,rewindCommands:(v=U.playbackCommands)==null?void 0:v.rewindCommands,resumeCommands:(H=U.playbackCommands)==null?void 0:H.resumeCommands,skipCommands:(G=U.playbackCommands)==null?void 0:G.skipCommands,progressCommands:(F=U.playbackCommands)==null?void 0:F.progressCommands,t4r:(N= U.playbackCommands)==null?void 0:N.clickthroughCommands,fullscreenCommands:(e=U.playbackCommands)==null?void 0:e.fullscreenCommands,activeViewViewableCommands:(B=U.playbackCommands)==null?void 0:B.activeViewViewableCommands,activeViewMeasurableCommands:(f=U.playbackCommands)==null?void 0:f.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(h=U.playbackCommands)==null?void 0:h.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(Q=U.playbackCommands)== null?void 0:(K=Q.activeViewTracking)==null?void 0:K.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(D=U.playbackCommands)==null?void 0:(c3=D.activeViewTracking)==null?void 0:c3.activeViewAudioMeasurableCommands,endFullscreenCommands:(TV=U.playbackCommands)==null?void 0:TV.endFullscreenCommands,abandonCommands:(U9=U.playbackCommands)==null?void 0:U9.abandonCommands,completeCommands:Y}}; KL3=function(U,Y,A,c,d,T,E){return function(L,r){return uZV(U,r.slotId,L,T,function(l,P){var V=r.layoutId;l=E(l);return Yy(Y,V,P,d,l,"LAYOUT_TYPE_SURVEY",[new GT(A),c],A.adLayoutLoggingData)})}}; Ulc=function(U,Y,A,c,d,T,E){if(!qwY(U))return new u("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:U});var L=U.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Csc(T,Y,A,c,function(r){var l=r.slotId;r=E(r);l=CH(d.T.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",l);var P={layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",mY:"core"},V=new Se(d.Y,c);return{layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",HZ:new Map,layoutExitNormalTriggers:[V], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:new zG([new WK(L)]),Gk:r(P)}})]}; qwY=function(U){U=g.O(U==null?void 0:U.additionalPlayerOverlay,YkX);if(!U)return!1;var Y=U.slidingMessages;return U.title&&Y&&Y.length!==0?!0:!1}; c2S=function(U,Y,A,c,d){var T;if((T=U.playerOverlay)==null||!T.instreamSurveyAdRenderer)return function(){return[]}; if(!e5c(U))return function(){return new u("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:U})}; var E=U.playerOverlay.instreamSurveyAdRenderer,L=CA(E);return L<=0?function(){return new u("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:E})}:function(r,l){var P=A2X(r,A,c,function(V){var v=V.slotId; V=l(V);var H=Ur(E);v=CH(d.T.get(),"LAYOUT_TYPE_SURVEY",v);var G={layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",mY:"core"},F=new Se(d.Y,c),N=new IW(d.Y,v),e=new AE(d.Y,v),B=new Tw4(d.Y);return{layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",HZ:new Map,layoutExitNormalTriggers:[F,B],layoutExitSkipTriggers:[N],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[e],Oa:[],mY:"core",clientMetadata:new zG([new HK(E),new Y8(Y),new m6(L/1E3),new Dt(H)]),Gk:V(G),adLayoutLoggingData:E.adLayoutLoggingData}}); r=Ulc(U,A,P.slotId,c,d,r,l);return r instanceof u?r:[P].concat(g.X(r))}}; r28=function(U,Y,A,c,d,T,E){E=E===void 0?!1:E;var L=[];try{var r=[];if(A.renderer.linearAdSequenceRenderer)var l=function(F){F=dl3(F.slotId,A,Y,d(F),c,T,E);r=F.IOv;return F.Ls}; else if(A.renderer.instreamVideoAdRenderer)l=function(F){var N=F.slotId;F=d(F);var e=E,B=A.config.adPlacementConfig,f=Tb4(B),h=f.l0,Q=f.EG;f=A.renderer.instreamVideoAdRenderer;var K;if(f==null?0:(K=f.playerOverlay)==null?0:K.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var D=AK(f,e);K=Math.min(h+D.videoLengthSeconds*1E3,Q);e=new km(0,[D.videoLengthSeconds]);Q=D.videoLengthSeconds;var c3=D.playerVars,TV=D.instreamAdPlayerOverlayRenderer,U9=D.playerOverlayLayoutRenderer, LY=D.adVideoId,q=EXE(A),FE=D.HZ;D=D.y$;var B3=f==null?void 0:f.adLayoutLoggingData;f=f==null?void 0:f.sodarExtensionData;N=CH(Y.T.get(),"LAYOUT_TYPE_MEDIA",N);var O9={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",mY:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",HZ:FE,layoutExitNormalTriggers:[new Mo(Y.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:new zG([new o0(c),new Xw(Q),new k8(c3),new x8(h),new sy(K),TV&&new zT(TV), U9&&new Lm(U9),new Y8(B),new Ey(LY),new Ao(e),new bD(q),f&&new a0(f),new NT({current:null}),new ho({}),new Km(D)].filter(oXE)),Gk:F(O9),adLayoutLoggingData:B3}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var P=z8l(U,c,A.adSlotLoggingData,l);L.push(P);for(var V=g.J(r),v=V.next();!v.done;v=V.next()){var H=v.value,G=H(U,d);if(G instanceof u)return G;L.push.apply(L,g.X(G))}}catch(F){return new u(F,{errorMessage:F.message,AdPlacementRenderer:A,numberOfSurveyRenderers:LsE(A)})}return L}; LsE=function(U){U=(U.renderer.linearAdSequenceRenderer||{}).linearAds;return U!=null&&U.length?U.filter(function(Y){var A,c;return((A=g.O(Y,GE))==null?void 0:(c=A.playerOverlay)==null?void 0:c.instreamSurveyAdRenderer)!=null}).length:0}; dl3=function(U,Y,A,c,d,T,E){var L=Y.config.adPlacementConfig,r=Tb4(L),l=r.l0,P=r.EG;r=(Y.renderer.linearAdSequenceRenderer||{}).linearAds;if(r==null||!r.length)throw new TypeError("Expected linear ads");var V=[],v={KK:l,TI:0,uXn:V};r=r.map(function(G){return lEV(U,G,v,A,c,L,d,P,E)}).map(function(G,F){F=new km(F,V); return G(F)}); var H=r.map(function(G){return G.aj}); return{Ls:Pfl(A,U,l,H,L,EXE(Y),c,P,T),IOv:r.map(function(G){return G.F6T})}}; lEV=function(U,Y,A,c,d,T,E,L,r){var l=AK(g.O(Y,GE),r),P=A.KK,V=A.TI,v=Math.min(P+l.videoLengthSeconds*1E3,L);A.KK=v;A.TI++;A.uXn.push(l.videoLengthSeconds);var H,G,F=(H=g.O(Y,GE))==null?void 0:(G=H.playerOverlay)==null?void 0:G.instreamSurveyAdRenderer;if(l.adVideoId==="nPpU29QrbiU"&&F==null)throw new TypeError("Survey slate media has no survey overlay");return function(N){Io(l.playerVars,N);var e,B,f=l.videoLengthSeconds,h=l.playerVars,Q=l.HZ,K=l.y$,D=l.instreamAdPlayerOverlayRenderer,c3=l.playerOverlayLayoutRenderer, TV=l.adVideoId,U9=(e=g.O(Y,GE))==null?void 0:e.adLayoutLoggingData;e=(B=g.O(Y,GE))==null?void 0:B.sodarExtensionData;B=CH(c.T.get(),"LAYOUT_TYPE_MEDIA",U);var LY={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",mY:"adapter"};N={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",HZ:Q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"adapter",clientMetadata:new zG([new o0(E),new Xw(f),new k8(h),new x8(P),new sy(v),new fm(V),new NT({current:null}), D&&new zT(D),c3&&new Lm(c3),new Y8(T),new Ey(TV),new Ao(N),e&&new a0(e),F&&new uD(F),new ho({}),new Km(K)].filter(oXE)),Gk:d(LY),adLayoutLoggingData:U9};f=c2S(g.O(Y,GE),T,E,N.layoutId,c);return{aj:N,F6T:f}}}; AK=function(U,Y){if(!U)throw new TypeError("Expected instream video ad renderer");if(!U.playerVars)throw new TypeError("Expected player vars in url encoded string");var A=Af(U.playerVars),c=Number(A.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(U.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=U.playerOverlay||{};d=d.instreamAdPlayerOverlayRenderer===void 0?null:d.instreamAdPlayerOverlayRenderer;var T=U.playerOverlay|| {};T=T.playerOverlayLayoutRenderer===void 0?null:T.playerOverlayLayoutRenderer;var E=A.video_id;E||(E=(E=U.externalVideoId)?E:void 0);if(!E)throw new TypeError("Expected valid video id in IVAR");if(Y&&c===0){var L;Y=(L=Vwv[E])!=null?L:c}else Y=c;return{playerVars:A,videoLengthSeconds:Y,instreamAdPlayerOverlayRenderer:d,playerOverlayLayoutRenderer:T,adVideoId:E,HZ:U.pings?kB(U.pings):new Map,y$:Xt(U.pings)}}; EXE=function(U){U=Number(U.driftRecoveryMs);return isNaN(U)||U<=0?null:U}; Tb4=function(U){var Y=U.adTimeOffset||{};U=Y.offsetEndMilliseconds;Y=Number(Y.offsetStartMilliseconds);if(isNaN(Y))throw new TypeError("Expected valid start offset");U=Number(U);if(isNaN(U))throw new TypeError("Expected valid end offset");return{l0:Y,EG:U}}; $lX=function(U){var Y,A=(Y=LH(U.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Y.current;if(!A)return null;Y=LH(U.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var c=U.layoutId,d=LH(U.clientMetadata,"metadata_type_content_cpn"),T=LH(U.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),E=LH(U.clientMetadata,"metadata_type_player_underlay_renderer"),L=LH(U.clientMetadata,"metadata_type_ad_placement_config"),r=LH(U.clientMetadata,"metadata_type_video_length_seconds"); var l=dD(U.clientMetadata,"metadata_type_layout_enter_ms")&&dD(U.clientMetadata,"metadata_type_layout_exit_ms")?(LH(U.clientMetadata,"metadata_type_layout_exit_ms")-LH(U.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Kl:c,contentCpn:d,xz:A,Y6:Y,instreamAdPlayerOverlayRenderer:T,instreamAdPlayerUnderlayRenderer:E,adPlacementConfig:L,videoLengthSeconds:r,j5:l,inPlayerLayoutId:LH(U.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:LH(U.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; GsS=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H,G){c=Wm(c,"SLOT_TYPE_PLAYER_BYTES");U=vXX(d,U,E,A,c,r,l);if(U instanceof u)return U;var F;l=(F=LH(U.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:F.layoutId;if(!l)return new u("Invalid adNotify layout");Y=Hz3(l,d,T,A,L,Y,r,P,V,v,H,G,E);return Y instanceof u?Y:[U].concat(g.X(Y))}; Hz3=function(U,Y,A,c,d,T,E,L,r,l,P,V,v){A=WsX(Y,A,c,T,E,L,r,l,P,V,v);if(A instanceof u)return A;U=wRv(Y,U,E,d,A);return U instanceof u?U:[].concat(g.X(U.yV),[U.jK])}; J29=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H){Y=WsX(U,Y,A,d,T,L,r,l,P,V,v,H);if(Y instanceof u)return Y;U=izX(U,A,T,E,c,L.Sc,Y);return U instanceof u?U:U.yV.concat(U.jK)}; WsX=function(U,Y,A,c,d,T,E,L,r,l,P,V){var v=cN(c,A,l);return v instanceof od?new u(v):l.U.L().experiments.lY("html5_refactor_in_player_slot_generation")?function(H){var G=new km(0,[v.MR]);H=FsE(Y,v.layoutId,v.lG,A,dy(v.playerVars,v.HM,T,r,G),v.MR,d,G,E(H),L.get(v.lG.externalVideoId),V);G=[];if(v.lG.playerOverlay.instreamAdPlayerOverlayRenderer){var F=$lX(H);if(!F)return $D("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,H),{layout:H,yV:[]}; G=[jCE(U,F.contentCpn,F.Kl,function(e){return Th(Y,e.slotId,"core",F,v_(P,e))},F.inPlayerSlotId)].concat(g.X(G)); if(F.instreamAdPlayerUnderlayRenderer&&Er(l)){var N=F.instreamAdPlayerUnderlayRenderer;G=[NbV(U,F.contentCpn,F.Kl,function(e){return twv(Y,e.slotId,N,F.adPlacementConfig,F.Kl,v_(P,e))})].concat(g.X(G))}}return{layout:H, yV:G}}:function(H){var G=new km(0,[v.MR]); return{layout:FsE(Y,v.layoutId,v.lG,A,dy(v.playerVars,v.HM,T,r,G),v.MR,d,G,E(H),L.get(v.lG.externalVideoId),V),yV:[]}}}; cN=function(U,Y,A){if(!U.playerVars)return new od("No playerVars available in InstreamVideoAdRenderer.");var c,d;if(U.elementId==null||U.playerVars==null||U.playerOverlay==null||((c=U.playerOverlay)==null?void 0:c.instreamAdPlayerOverlayRenderer)==null&&((d=U.playerOverlay)==null?void 0:d.playerOverlayLayoutRenderer)==null||U.pings==null||U.externalVideoId==null)return new od("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:U});c=Af(U.playerVars);d=Number(c.length_seconds); isNaN(d)&&(d=0,$D("Expected valid length seconds in player vars but got NaN"));if(A.Fl(Y.kind==="AD_PLACEMENT_KIND_START")){if(U.layoutId===void 0)return new od("Expected server generated layout ID in instreamVideoAdRenderer");Y=U.layoutId}else Y=U.elementId;return{layoutId:Y,lG:U,playerVars:c,HM:U.playerVars,MR:d}}; dy=function(U,Y,A,c,d){U.iv_load_policy=c;Y=Af(Y);if(Y.cta_conversion_urls)try{U.cta_conversion_urls=JSON.parse(Y.cta_conversion_urls)}catch(T){$D(T)}A.IJ&&(U.ctrl=A.IJ);A.P7&&(U.ytr=A.P7);A.BT&&(U.ytrcc=A.BT);A.isMdxPlayback&&(U.mdx="1");U.vvt&&(U.vss_credentials_token=U.vvt,A.Dp&&(U.vss_credentials_token_type=A.Dp),A.mdxEnvironment&&(U.mdx_environment=A.mdxEnvironment));Io(U,d);return U}; e89=function(U){var Y=new Map;U=g.J(U);for(var A=U.next();!A.done;A=U.next())(A=A.value.renderer.remoteSlotsRenderer)&&A.hostElementId&&Y.set(A.hostElementId,A);return Y}; oX=function(U){return U.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; BbE=function(U){return U!=null}; fEX=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H){for(var G=[],F=g.J(U),N=F.next();!N.done;N=F.next())if(N=N.value,!WLX(N)&&!jj8(N)){var e=oX(N)&&!!N.slotEntryTrigger.beforeContentVideoIdStartedTrigger,B=r.Fl(e),f=XRX(N,l,c,A.Y5,B);if(f instanceof u)return f;var h=void 0,Q={slotId:N.adSlotMetadata.slotId,slotType:N.adSlotMetadata.slotType,slotPhysicalPosition:(h=N.adSlotMetadata.slotPhysicalPosition)!=null?h:1,mY:"core",slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers, slotExpirationTriggers:f.slotExpirationTriggers},K=g.O(N.fulfillmentContent.fulfilledLayout,kr);if(K){if(!JE(K))return new u("Invalid PlayerBytesAdLayoutRenderer");h=V&&!(oX(N)&&N.slotEntryTrigger.beforeContentVideoIdStartedTrigger);f=f.slotFulfillmentTriggers.some(function(D){return D instanceof bi}); B=h?ks4(Q,N.adSlotMetadata.triggerEvent,K,A,c,T,l,U,B,v,f,H):R8c(Q,N.adSlotMetadata.triggerEvent,K,Y,A,c,d,T,E,L,r,l,U,P,B,N.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof u)return B;f=[];oX(N)&&f.push(new Ar({JQ:oX(N)&&!!N.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));h&&f.push(new ho({}));A.Sc&&f.push(new I0({}));f.push(new Uj(e));N=Object.assign({},Q,{clientMetadata:new zG(f),fulfilledLayout:B.layout,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});G.push.apply(G,g.X(B.yV)); G.push(N)}else if(e=g.O(N.fulfillmentContent.fulfilledLayout,fA)){if(!GLY(e))return new u("Invalid PlayerUnderlayAdLayoutRenderer");e=aE9(e,c,A.Y5,T,Q,N.adSlotMetadata.triggerEvent,N.adSlotMetadata.triggeringSourceLayoutId);if(e instanceof u)return e;N=Object.assign({},Q,{clientMetadata:new zG([]),fulfilledLayout:e,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});G.push(N)}else if(e=g.O(N.fulfillmentContent.fulfilledLayout,i5E)){if(!LLl(e))return new u("Invalid AboveFeedAdLayoutRenderer");e= xlv(e,c,A.Y5,T,Q,N.adSlotMetadata.triggerEvent,N.adSlotMetadata.triggeringSourceLayoutId);if(e instanceof u)return e;N=Object.assign({},Q,{clientMetadata:new zG([]),fulfilledLayout:e,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});G.push(N)}else if(e=g.O(N.fulfillmentContent.fulfilledLayout,JIV)){if(!TE(e.adLayoutMetadata)||!g.O(e.renderingContent,El))return new u("Invalid BelowPlayerAdLayoutRenderer");e=xlv(e,c,A.Y5,T,Q,N.adSlotMetadata.triggerEvent,N.adSlotMetadata.triggeringSourceLayoutId); if(e instanceof u)return e;N=Object.assign({},Q,{clientMetadata:new zG([]),fulfilledLayout:e,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});G.push(N)}else if(e=g.O(N.fulfillmentContent.fulfilledLayout,hE)){if(!ao(e))return new u("Invalid PlayerBytesSequenceItemAdLayoutRenderer");e=sCE(e,c,A.Y5,T,Q,N.adSlotMetadata.triggerEvent);if(e instanceof u)return e;N=Object.assign({},Q,{clientMetadata:new zG([]),fulfilledLayout:e,adSlotLoggingData:N.adSlotMetadata.adSlotLoggingData});G.push(N)}else return new u("Unable to retrieve a client slot ["+ Q.slotType+"] from a given AdSlotRenderer")}return G}; sCE=function(U,Y,A,c,d,T){var E={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,mY:"core"};Y=zh(U,Y,A);return Y instanceof u?Y:(A=g.O(U.renderingContent,Ro))&&A.pings?Object.assign({},E,{renderingContent:U.renderingContent,HZ:kB(A.pings)},Y,{Gk:v_(c,d)(E),clientMetadata:new zG([new Y8(Lf(T))]),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData}):new u("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; xlv=function(U,Y,A,c,d,T,E){var L={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,mY:"core"};Y=zh(U,Y,A);if(Y instanceof u)return Y;A=[];A.push(new Y8(Lf(T)));T==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&E!==void 0&&A.push(new wY(E));return Object.assign({},L,{renderingContent:U.renderingContent,HZ:new Map([["impression",h8v(U)]])},Y,{Gk:v_(c,d)(L),clientMetadata:new zG(A),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData})}; aE9=function(U,Y,A,c,d,T,E){if(U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(E=g.O(U.renderingContent,xr))if(E=g.O(E.sidePanel,vv3)){var L={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,mY:"core"};Y=zh(U,Y,A);U=Y instanceof u?Y:Object.assign({},L,{renderingContent:U.renderingContent,HZ:new Map([["impression",E.impressionPings||[]],["resume",E.resumePings||[]]])},Y,{Gk:v_(c,d)(L),clientMetadata:new zG([new Y8(Lf(T))]),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData})}else U= new u("DismissablePanelTextPortraitImageRenderer is missing");else U=new u("SqueezebackPlayerSidePanelRenderer is missing");else U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.O(U.renderingContent,Psv)?(E={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,mY:"core"},Y=zh(U,Y,A),U=Y instanceof u?Y:Object.assign({},E,{renderingContent:U.renderingContent,HZ:new Map},Y,{Gk:v_(c,d)(E),clientMetadata:new zG([new Y8(Lf(T))]),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData})): U=new u("CounterfactualRenderer is missing"):U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?U=new u("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?U=new u("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.O(U.renderingContent,sl)?(T={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType, mY:"core"},Y=zh(U,Y,A),U=Y instanceof u?Y:E?Object.assign({},T,{renderingContent:U.renderingContent,HZ:new Map},Y,{Gk:v_(c,d)(T),clientMetadata:new zG([new wY(E)]),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData}):new u("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):U=new u("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):U.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.O(U.renderingContent,VdY)? (T={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,mY:"core"},Y=zh(U,Y,A),U=Y instanceof u?Y:Object.assign({},T,{renderingContent:U.renderingContent,HZ:new Map([])},Y,{Gk:v_(c,d)(T),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new zG([])})):U=new u("AdsEngagementPanelSectionListViewModel is missing"):U=new u("LayoutType ["+U.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return U}; ks4=function(U,Y,A,c,d,T,E,L,r,l,P,V){if((V==null?void 0:V.CR)===void 0||(V==null?void 0:V.nR)===void 0)return new u("Cached ad break range from cue point is missing");var v=zh(A,d,c.Y5);if(v instanceof u)return v;v={layoutExitMuteTriggers:[],layoutExitNormalTriggers:v.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Oa:[],layoutExitUserInputSubmittedTriggers:[]};if(g.O(A.renderingContent,GE))return U=SkY(U,Y,A,v,d,T,L,r,c.Y5,E,V.CR,V.nR),U instanceof u?U:U.N5===void 0?new u("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:U.layout,yV:[U.N5]};var H=g.O(A.renderingContent,vJ);if(H){if(!TE(A.adLayoutMetadata))return new u("Invalid ad layout metadata");if(!HJ(H))return new u("Invalid sequential layout");H=H.sequentialLayouts.map(function(G){return G.playerBytesAdLayoutRenderer}); U=MwE(U,Y,A,v,H,d,c,T,E,r,L,l,V.CR,V.nR,P);return U instanceof u?U:{layout:U.Lo,yV:U.yV}}return new u("Not able to convert a sequential layout")}; MwE=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H,G){var F=bzY(d,v,H);if(F instanceof u)return F;var N=[],e=[];F=g.J(F);for(var B=F.next();!B.done;B=F.next()){var f=B.value;B=U;var h=d[f.TI],Q=f,K=Y;f=T;var D=E,c3=L,TV=r,U9=l,LY=P,q=ry(h);if(q instanceof u)B=q;else{var FE={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,mY:"adapter"};Q=pRY(K,h,Q,f);Q instanceof u?B=Q:(B=Object.assign({},FE,ly,{HZ:q,renderingContent:h.renderingContent,clientMetadata:new zG(Q),Gk:v_(c3,B)(FE),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData}), B=(h=PN(LY,B,f,D.Y5,c3,TV,U9,void 0,!0))?h instanceof u?h:{layout:B,N5:h}:new u("Expecting associatedInPlayerSlot"))}if(B instanceof u)return B;N.push(B.layout);e.push(B.N5)}d={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,mY:"core"};Y=[new bD(Number(A.driftRecoveryMs)),new x8(v),new sy(H),new Y8(Lf(Y)),new Cm(V),new ho({})];G&&Y.push(new c_({}));return{Lo:Object.assign({},d,c,{xU:N,HZ:new Map,clientMetadata:new zG(Y),Gk:v_(L,U)(d)}),yV:e}}; SkY=function(U,Y,A,c,d,T,E,L,r,l,P,V){if(!JE(A))return new u("Invalid PlayerBytesAdLayoutRenderer");var v=ry(A);if(v instanceof u)return v;var H={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,mY:"core"},G=g.O(A.renderingContent,GE);if(!G)return new u("Invalid rendering content for DAI media layout");G=AK(G,!1);P={jO:G,TI:0,KK:P,DB:Math.min(P+G.videoLengthSeconds*1E3,V),X8:new km(0,[G.videoLengthSeconds])};var F;V=(F=Number(A.driftRecoveryMs))!=null?F:void 0;Y=pRY(Y, A,P,d,V);if(Y instanceof u)return Y;U=Object.assign({},H,c,{HZ:v,renderingContent:A.renderingContent,clientMetadata:new zG(Y),Gk:v_(T,U)(H),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData});return(d=PN(E,U,d,r,T,l,L,void 0,!0))?d instanceof u?d:{layout:U,N5:d}:new u("Expecting associatedInPlayerSlot")}; R8c=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H,G,F){var N=zh(A,T,d.Y5);if(N instanceof u)return N;if(g.O(A.renderingContent,GE)){r=QC4([A],d,r);if(r instanceof u)return r;if(r.length!==1)return new u("Only expected one media layout.");U=Zz4(U,Y,A,N,r[0],void 0,"core",c,T,E,L,l,v,H,G,d.Y5,V,void 0,F);return U instanceof u?U:{layout:U.layout,yV:U.N5?[U.N5]:[]}}var e=g.O(A.renderingContent,vJ);if(e){if(!TE(A.adLayoutMetadata))return new u("Invalid ad layout metadata");if(!HJ(e))return new u("Invalid sequential layout"); e=e.sequentialLayouts.map(function(B){return B.playerBytesAdLayoutRenderer}); U=Oz3(U,Y,A.adLayoutMetadata,N,e,c,T,d,r,E,L,l,P,V,G,v,H,F);return U instanceof u?U:{layout:U.Lo,yV:U.yV}}return new u("Not able to convert a sequential layout")}; Oz3=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H,G,F,N,e){var B=new TT({current:null}),f=QC4(d,L,r);if(f instanceof u)return f;r=[];for(var h=[],Q=void 0,K=0;K0&&(K.push(e),K.push(new dY(Q.adPodSkipTarget)));(T=l.get(Q.externalVideoId))&&K.push(new Oy(T));T=K}else T=new u("Invalid vod media renderer")}if(T instanceof u)return T;U=Object.assign({},E,c,{HZ:f,renderingContent:A.renderingContent,clientMetadata:new zG(T),Gk:v_(P,U)(E),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData});A=g.O(A.renderingContent,GE);if(!A||!$r(A))return new u("Invalid meida renderer");V=KA(V,A.externalVideoId);V.instreamVideoAdRenderer=A;V.wN="AD_PLACEMENT_KIND_START";return H?(r=PN(v,U,r,F,P,N,G,e,!1),r instanceof u?r:y2V(U.layoutId,v)&&r?{layout:Object.assign({},U,{clientMetadata:new zG(T.concat(new PK(r)))})}:{layout:U,N5:r}): {layout:U}}; ml4=function(U,Y,A,c,d){if(!JE(Y))return new u("Invalid PlayerBytesAdLayoutRenderer");var T=g.O(Y.renderingContent,PU);if(!T||T.durationMilliseconds===void 0)return new u("Invalid endcap renderer");var E={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,mY:"adapter"};c=[new gY(T.durationMilliseconds),new Dt({impressionCommands:void 0,abandonCommands:T.abandonCommands?[{commandExecutorCommand:T.abandonCommands}]:void 0,completeCommands:T.completionCommands}),new Y8(c), new Jo("LAYOUT_TYPE_ENDCAP")];if(d){c.push(new cK(d.X8.adPodIndex-1));c.push(new fm(d.X8.adPodIndex));var L;c.push(new dY((L=d.adPodSkipTarget)!=null?L:-1))}return Object.assign({},E,ly,{renderingContent:Y.renderingContent,clientMetadata:new zG(c),HZ:T.skipPings?new Map([["skip",T.skipPings]]):new Map,Gk:v_(A,U)(E),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData})}; PN=function(U,Y,A,c,d,T,E,L,r){U=U.filter(function(P){return P.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&P.adSlotMetadata.triggeringSourceLayoutId===Y.layoutId}); if(U.length!==0){if(U.length!==1)return new u("Invalid InPlayer slot association for the given PlayerBytes layout");U=U[0];E=XRX(U,T,A,c,E);if(E instanceof u)return E;var l;T={slotId:U.adSlotMetadata.slotId,slotType:U.adSlotMetadata.slotType,slotPhysicalPosition:(l=U.adSlotMetadata.slotPhysicalPosition)!=null?l:1,mY:"core",slotEntryTrigger:E.slotEntryTrigger,slotFulfillmentTriggers:E.slotFulfillmentTriggers,slotExpirationTriggers:E.slotExpirationTriggers};l=g.O(U.fulfillmentContent.fulfilledLayout, wXv);if(!l||!lAY(l))return new u("Invalid InPlayerAdLayoutRenderer");E={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,mY:"core"};A=zh(l,A,c);if(A instanceof u)return A;c=[];r&&c.push(new ho({}));if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")c.push.apply(c,g.X(nXc(U.adSlotMetadata.triggerEvent,Y)));else if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")c.push(new Y8(Lf(U.adSlotMetadata.triggerEvent))),L&&c.push(L);else return new u("Not able to parse an SDF InPlayer layout"); d=Object.assign({},E,A,{renderingContent:l.renderingContent,HZ:new Map,Gk:v_(d,T)(E),clientMetadata:new zG(c),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},T,{fulfilledLayout:d,clientMetadata:new zG([])})}}; nXc=function(U,Y){var A=[];A.push(new Y8(Lf(U)));A.push(new wY(Y.layoutId));(U=LH(Y.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&A.push(new NT(U));(U=LH(Y.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&A.push(new TT(U));(U=LH(Y.clientMetadata,"metadata_type_remote_slots_data"))&&A.push(new Oy(U));(U=LH(Y.clientMetadata,"metadata_type_ad_next_params"))&&A.push(new nz(U));(U=LH(Y.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&A.push(new DE(U));(U= LH(Y.clientMetadata,"metadata_type_ad_pod_info"))&&A.push(new Ao(U));(Y=LH(Y.clientMetadata,"metadata_type_ad_video_id"))&&A.push(new Ey(Y));return A}; gXS=function(U,Y,A,c,d,T){function E(l){return V2(Y,l)} var L=c.SO.inPlayerSlotId,r={layoutId:c.SO.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",mY:"core"};A={slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:new fh(E,U),slotFulfillmentTriggers:[new ui(E,L)],slotExpirationTriggers:[new Kh(E,L),new nh(E,A)]};U=Object.assign({},r,{layoutExitNormalTriggers:[new Se(E,U)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],HZ:new Map,clientMetadata:new zG([new $8(c.SO), new Y8(c.adPlacementConfig),d]),Gk:v_(T,A)(r),adLayoutLoggingData:c.SO.adLayoutLoggingData});return Object.assign({},A,{clientMetadata:new zG([new pm(U)])})}; y2V=function(U,Y){Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next())if(A=A.value,A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var c=g.O(A.fulfillmentContent.fulfilledLayout,fA);if(c&&(c=g.O(c.renderingContent,xr))&&c.associatedPlayerBytesLayoutId===U)return A}}; XRX=function(U,Y,A,c,d){var T=DlS(DK(U.slotEntryTrigger,A,c),d,U,Y);if(T instanceof u)return T;for(var E=[],L=g.J(U.slotFulfillmentTriggers),r=L.next();!r.done;r=L.next()){r=DK(r.value,A,c);if(r instanceof u)return r;E.push(r)}E=IEv(E,d,U,Y);Y=[];U=g.J(U.slotExpirationTriggers);for(d=U.next();!d.done;d=U.next()){d=DK(d.value,A,c);if(d instanceof u)return d;Y.push(d)}return{slotEntryTrigger:T,slotFulfillmentTriggers:E,slotExpirationTriggers:Y}}; DlS=function(U,Y,A,c){return Y&&A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&U instanceof RW?new Xl(function(d){return V2(c,d)},A.adSlotMetadata.slotId):U}; IEv=function(U,Y,A,c){return Y&&A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?U.map(function(d){return d instanceof ui?new Ul(function(T){return V2(c,T)},A.adSlotMetadata.slotId):d}):U}; zh=function(U,Y,A){for(var c=[],d=g.J(U.layoutExitNormalTriggers||[]),T=d.next();!T.done;T=d.next()){T=DK(T.value,Y,A);if(T instanceof u)return T;c.push(T)}d=[];T=g.J(U.layoutExitSkipTriggers||[]);for(var E=T.next();!E.done;E=T.next()){E=DK(E.value,Y,A);if(E instanceof u)return E;d.push(E)}T=[];E=g.J(U.layoutExitMuteTriggers||[]);for(var L=E.next();!L.done;L=E.next()){L=DK(L.value,Y,A);if(L instanceof u)return L;T.push(L)}E=[];U=g.J(U.layoutExitUserInputSubmittedTriggers||[]);for(L=U.next();!L.done;L= U.next()){L=DK(L.value,Y,A);if(L instanceof u)return L;E.push(L)}return{layoutExitNormalTriggers:c,layoutExitSkipTriggers:d,layoutExitMuteTriggers:T,layoutExitUserInputSubmittedTriggers:E,Oa:[]}}; ry=function(U){var Y=g.O(U.renderingContent,GE);if(Y==null?0:Y.pings)return kB(Y.pings);U=g.O(U.renderingContent,PU);return(U==null?0:U.skipPings)?new Map([["skip",U.skipPings]]):new Map}; pRY=function(U,Y,A,c,d){Y=g.O(Y.renderingContent,GE);if(!Y)return new u("Invalid rendering content for DAI media layout");U=[new o0(c),new Xw(A.jO.videoLengthSeconds),new k8(A.jO.playerVars),new x8(A.KK),new sy(A.DB),new fm(A.TI),new Y8(Lf(U)),new Ey(A.jO.adVideoId),new Ao(A.X8),Y.sodarExtensionData&&new a0(Y.sodarExtensionData),new NT({current:null}),new ho({}),new Km(Xt(Y.pings))].filter(BbE);d!==void 0&&U.push(new bD(d));return U}; bzY=function(U,Y,A){U=U.map(function(r){return AK(g.O(r.renderingContent,GE),!1)}); var c=U.map(function(r){return r.videoLengthSeconds}),d=c.map(function(r,l){return new km(l,c)}),T=Y,E=A,L=[]; U.forEach(function(r,l){E=Math.min(T+r.videoLengthSeconds*1E3,A);Io(r.playerVars,d[l]);L.push({jO:r,KK:T,DB:E,TI:l,X8:d[l]});T=E}); return L}; QC4=function(U,Y,A){for(var c=[],d=g.J(U),T=d.next();!T.done;T=d.next())if(T=g.O(T.value.renderingContent,GE)){if(!$r(T))return new u("Invalid vod media renderer");c.push(unS(T))}d=c.map(function(V){return V.MR}); T=[];for(var E=0,L=0;L0?U9:-1;else if(FE=g.O(q,PU)){q=o88(U,Y,A, FE,T,F,L,D,U9);if(q instanceof u){H=q;break a}q=q(v);N.push(q.Oy);e=[].concat(g.X(q.dC),g.X(e));B=[].concat(g.X(q.K5),g.X(B));q.N5&&(TV=[q.N5].concat(g.X(TV)))}else if(FE=g.O(q,w6)){if(H===void 0){H=new u("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:FE});break a}q=roX(U,Y,A,T,FE,K,L,H,F,q8(P,"supports_multi_step_on_desktop"));if(q instanceof u){H=q;break a}q=q(v);N.push(q.Oy);q.N5&&TV.push(q.N5);e=[].concat(g.X(q.dC),g.X(e));B=[].concat(g.X(q.K5), g.X(B));f=[].concat(g.X(q.LQ),g.X(f));h=[].concat(g.X(q.ZC),g.X(h));Q=[K].concat(g.X(Q))}else if(q=g.O(q,id)){q=ltV(U,Y,A,T,q,K,L,F);if(q instanceof u){H=q;break a}q=q(v);N.push(q.Oy);q.N5&&TV.push(q.N5);B=[].concat(g.X(q.K5),g.X(B))}else{H=new u("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}H={xU:N,layoutExitSkipTriggers:e,layoutExitUserInputSubmittedTriggers:f,Oa:h,layoutExitMuteTriggers:B,fQ:Q,yV:TV}}}else a:if(F=wKX(c,A,P),F instanceof u)H=F;else{N=0;e=[];B=[];f=[];h=[];Q= [];K=[];D=new to({current:null});c3=new TT({current:null});TV=!1;LY=[];U9=-1;G=g.J(c);for(q=G.next();!q.done;q=G.next())if(q=q.value,g.O(q,WJ)){q=zjc(Y,A,g.O(q,WJ),L);if(q instanceof u){H=q;break a}q=q(v);e.push(q.Oy);B=[].concat(g.X(q.dC),g.X(B));f=[].concat(g.X(q.K5),g.X(f));q.N5&&(LY=[q.N5].concat(g.X(LY)))}else if(g.O(q,GE)){U9=cN(g.O(q,GE),A,P);if(U9 instanceof od){H=new u(U9);break a}q=new km(N,F);q=imX(Y,U9.layoutId,U9.lG,A,dy(U9.playerVars,U9.HM,E,l,q),U9.MR,T,q,L(v),c3,r.get(U9.lG.externalVideoId), void 0,V);N++;e.push(q.Oy);B=[].concat(g.X(q.dC),g.X(B));f=[].concat(g.X(q.K5),g.X(f));TV||(K.push(c3),TV=!0);U9=(U9=U9.lG.adPodSkipTarget)&&U9>0?U9:-1}else if(g.O(q,PU)){q=o88(U,Y,A,g.O(q,PU),T,N,L,c3,U9);if(q instanceof u){H=q;break a}q=q(v);e.push(q.Oy);B=[].concat(g.X(q.dC),g.X(B));f=[].concat(g.X(q.K5),g.X(f));q.N5&&(LY=[q.N5].concat(g.X(LY)))}else if(g.O(q,w6)){if(H===void 0){H=new u("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.O(q, w6)});break a}q=roX(U,Y,A,T,g.O(q,w6),D,L,H,N,q8(P,"supports_multi_step_on_desktop"));if(q instanceof u){H=q;break a}q=q(v);e.push(q.Oy);q.N5&&LY.push(q.N5);B=[].concat(g.X(q.dC),g.X(B));f=[].concat(g.X(q.K5),g.X(f));h=[].concat(g.X(q.LQ),g.X(h));Q=[].concat(g.X(q.ZC),g.X(Q));K=[D].concat(g.X(K))}else if(g.O(q,id)){q=ltV(U,Y,A,T,g.O(q,id),D,L,N);if(q instanceof u){H=q;break a}q=q(v);e.push(q.Oy);q.N5&&LY.push(q.N5);f=[].concat(g.X(q.K5),g.X(f))}else{H=new u("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}H={xU:e,layoutExitSkipTriggers:B,layoutExitUserInputSubmittedTriggers:h,Oa:Q,layoutExitMuteTriggers:f,fQ:K,yV:LY}}H instanceof u?v=H:(Q=v.slotId,F=H.xU,N=H.layoutExitSkipTriggers,e=H.layoutExitMuteTriggers,B=H.layoutExitUserInputSubmittedTriggers,f=H.fQ,v=L(v),h=d?d.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Q=d?d.layoutId:CH(Y.T.get(),h,Q),K={layoutId:Q,layoutType:h,mY:"core"},v={layout:{layoutId:Q,layoutType:h,HZ:new Map,layoutExitNormalTriggers:[new yC(Y.Y,Q)],layoutExitSkipTriggers:N, layoutExitMuteTriggers:e,layoutExitUserInputSubmittedTriggers:B,Oa:[],mY:"core",clientMetadata:new zG([new eY(F)].concat(g.X(f))),Gk:v(K)},yV:H.yV});return v}}; wKX=function(U,Y,A){var c=[];U=g.J(U);for(var d=U.next();!d.done;d=U.next())if(d=d.value,g.O(d,GE)){d=cN(g.O(d,GE),Y,A);if(d instanceof od)return new u(d);c.push(d.MR)}return c}; F6E=function(U,Y,A,c,d,T,E,L){if(!tdX(A,L===void 0?!1:L))return new u("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:A});var r=CA(A);if(r<=0)return new u("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:A});var l=new to({current:null}),P=KL3(U,Y,A,l,c,T,E);return Joc(U,c,T,r,d,function(V,v){var H=V.slotId,G=Ur(A);V=E(V);var F,N=(F=Gh(Y,c,A.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?F: CH(Y.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",H);H={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",mY:"core"};F=P(N,v);var e=LH(F.clientMetadata,"metadata_type_fulfilled_layout");e||$D("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");G=[new Y8(c),new gY(r),new Dt(G),l];e&&G.push(new Jo(e.layoutType));return{HrJ:{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",HZ:new Map,layoutExitNormalTriggers:[new yC(Y.Y,N)],layoutExitSkipTriggers:[new IW(Y.Y, v.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new AE(Y.Y,v.layoutId)],Oa:[],mY:"core",clientMetadata:new zG(G),Gk:V(H)},DIf:F}})}; j08=function(U){if(!XXE(U))return!1;var Y=g.O(U.adVideoStart,FK);return Y?g.O(U.linearAd,GE)&&PJ(Y)?!0:($D("Invalid Sandwich with notify"),!1):!1}; NYl=function(U){if(U.linearAds==null)return!1;U=g.O(U.adStart,FK);return U?PJ(U)?!0:($D("Invalid LASR with notify"),!1):!1}; tY3=function(U){if(!Bwc(U))return!1;U=g.O(U.adStart,FK);return U?PJ(U)?!0:($D("Invalid LASR with notify"),!1):!1}; jQ=function(U,Y,A,c,d,T,E,L,r,l){this.j=U;this.T=Y;this.Y=A;this.xE=c;this.Y8=d;this.W=T;this.FT=E;this.SD=L;this.nV=r;this.loadPolicy=l===void 0?1:l}; ya=function(U,Y,A,c,d,T,E,L,r,l){var P=[];if(Y.length===0&&c.length===0&&A.length===0)return P;Y=Y.filter(Va);var V=A.filter(FLS),v=c.filter(Va),H=new Map,G=e89(Y),F=A.some(function(B3){var O9;return(B3==null?void 0:(O9=B3.adSlotMetadata)==null?void 0:O9.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),N=A.some(function(B3){var O9; return(B3==null?void 0:(O9=B3.adSlotMetadata)==null?void 0:O9.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),e=A.some(function(B3){var O9; return(B3==null?void 0:(O9=B3.adSlotMetadata)==null?void 0:O9.slotType)==="SLOT_TYPE_IN_PLAYER"}),B=A.some(function(B3){var O9,tq; return(B3==null?void 0:(O9=B3.adSlotMetadata)==null?void 0:O9.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(B3==null?void 0:(tq=B3.adSlotMetadata)==null?void 0:tq.slotType)==="SLOT_TYPE_ABOVE_FEED"}); A=A.some(function(B3){var O9;return(B3==null?void 0:(O9=B3.adSlotMetadata)==null?void 0:O9.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(F||N||e||B||A)l=fEX(V,Y,L,d,G,U.Y8.get(),U.loadPolicy,H,U.xE.get(),U.j.get(),e,E,r,l),l instanceof u?$D(l,void 0,void 0,{contentCpn:d}):P.push.apply(P,g.X(l));l=g.J(Y);for(A=l.next();!A.done;A=l.next())A=A.value,N=ej9(U,H,A,d,T,E,F,L,G,r,V),N instanceof u?$D(N,void 0,void 0,{renderer:A.renderer,config:A.config.adPlacementConfig,kind:A.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:E}):P.push.apply(P,g.X(N));BY4(U.xE.get())||(T=XKl(U,v,d,L,G,H),P.push.apply(P,g.X(T)));if(U.W===null||E&&!L.yn){var f, h,Q;U=L.Sc&&Y.length===1&&((f=Y[0].config)==null?void 0:(h=f.adPlacementConfig)==null?void 0:h.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((Q=Y[0].renderer)==null?void 0:Q.adBreakServiceRenderer);if(!P.length&&!U){var K,D,c3,TV;$D("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":Y.length,contentCpn:d,"first APR kind":(K=Y[0])==null?void 0:(D=K.config)==null?void 0:(c3=D.adPlacementConfig)==null?void 0:c3.kind,renderer:(TV=Y[0])==null?void 0: TV.renderer})}return P}f=c.filter(Va);P.push.apply(P,g.X(DIc(H,f,U.T.get(),U.W,d,F)));if(!P.length){var U9,LY,q,FE;$D("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":Y.length,contentCpn:d,daiEnabled:E.toString(),"first APR kind":(U9=Y[0])==null?void 0:(LY=U9.config)==null?void 0:(q=LY.adPlacementConfig)==null?void 0:q.kind,renderer:(FE=Y[0])==null?void 0:FE.renderer})}return P}; XKl=function(U,Y,A,c,d,T){function E(v){return v_(U.Y8.get(),v)} var L=[];Y=g.J(Y);for(var r=Y.next();!r.done;r=Y.next()){r=r.value;var l=r.renderer,P=l.sandwichedLinearAdRenderer,V=l.linearAdSequenceRenderer;P&&j08(P)?($D("Found AdNotify with SandwichedLinearAdRenderer"),V=g.O(P.adVideoStart,FK),P=g.O(P.linearAd,GE),ud(T,l,r.config.adPlacementConfig.kind),l=void 0,V=Hz3((l=V)==null?void 0:l.layout.layoutId,U.T.get(),U.Y.get(),r.config.adPlacementConfig,r.adSlotLoggingData,P,A,c,E,d,U.loadPolicy,U.xE.get(),U.Y8.get()),V instanceof u?$D(V):L.push.apply(L,g.X(V))): V&&(!V.adLayoutMetadata&&NYl(V)||V.adLayoutMetadata&&tY3(V))&&($D("Found AdNotify with LinearAdSequenceRenderer"),ud(T,l,r.config.adPlacementConfig.kind),l=void 0,P=PD4((l=g.O(V.adStart,FK))==null?void 0:l.layout.layoutId,U.T.get(),U.Y.get(),r.config.adPlacementConfig,r.adSlotLoggingData,V.linearAds,TE(V.adLayoutMetadata)?V.adLayoutMetadata:void 0,A,c,E,d,U.loadPolicy,U.xE.get()),P instanceof u?$D(P):L.push.apply(L,g.X(P)))}return L}; ej9=function(U,Y,A,c,d,T,E,L,r,l,P){function V(e){return v_(U.Y8.get(),e)} var v=A.renderer,H=A.config.adPlacementConfig,G=H.kind,F=A.adSlotLoggingData,N=L.yn&&G==="AD_PLACEMENT_KIND_START";N=T&&!N;if(v.adsEngagementPanelRenderer!=null)return qK(Y,A.elementId,G,v.adsEngagementPanelRenderer.isContentVideoEngagementPanel,v.adsEngagementPanelRenderer.adVideoId,v.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,H,F,function(e,B,f,h){var Q=U.Y.get(),K=e.slotId,D=v.adsEngagementPanelRenderer;e=v_(U.Y8.get(),e);return N_(Q,K,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new gb(D),B,f,D.impressionPings,e,v.adsEngagementPanelRenderer.adLayoutLoggingData,h)}),[]; if(v.adsEngagementPanelLayoutViewModel)return qK(Y,A.elementId,G,v.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,v.adsEngagementPanelLayoutViewModel.adVideoId,v.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,F,function(e,B,f,h){var Q=U.Y.get(),K=e.slotId,D=v.adsEngagementPanelLayoutViewModel;e=v_(U.Y8.get(),e);return tK(Q,K,"LAYOUT_TYPE_PANEL",new y8(D),B,f,e,v.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,h)}),[]; if(v.actionCompanionAdRenderer!=null){if(v.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return O5Y(U.T.get(),U.W,U.Y.get(),v.actionCompanionAdRenderer,H,F,c,V);qK(Y,A.elementId,G,v.actionCompanionAdRenderer.isContentVideoCompanion,v.actionCompanionAdRenderer.adVideoId,v.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,H,F,function(e,B,f,h){var Q=U.Y.get(),K=e.slotId,D=v.actionCompanionAdRenderer;e=v_(U.Y8.get(),e);return N_(Q,K,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Ok(D),B,f,D.impressionPings,e,v.actionCompanionAdRenderer.adLayoutLoggingData,h)})}else if(v.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(v.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return mIV(U.T.get(),U.W,U.Y.get(),v.topBannerImageTextIconButtonedLayoutViewModel,H,F,c,V); qK(Y,A.elementId,G,v.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,v.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,v.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,F,function(e,B,f,h){var Q=U.Y.get(),K=e.slotId,D=v.topBannerImageTextIconButtonedLayoutViewModel;e=v_(U.Y8.get(),e);return tK(Q,K,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new ms(D),B,f,e,v.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,h)})}else if(v.imageCompanionAdRenderer)qK(Y, A.elementId,G,v.imageCompanionAdRenderer.isContentVideoCompanion,v.imageCompanionAdRenderer.adVideoId,v.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,H,F,function(e,B,f,h){var Q=U.Y.get(),K=e.slotId,D=v.imageCompanionAdRenderer; e=v_(U.Y8.get(),e);return N_(Q,K,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new uf(D),B,f,D.impressionPings,e,v.imageCompanionAdRenderer.adLayoutLoggingData,h)}); else if(v.bannerImageLayoutViewModel)qK(Y,A.elementId,G,v.bannerImageLayoutViewModel.isContentVideoCompanion,v.bannerImageLayoutViewModel.adVideoId,v.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,F,function(e,B,f,h){var Q=U.Y.get(),K=e.slotId,D=v.bannerImageLayoutViewModel;e=v_(U.Y8.get(),e);return tK(Q,K,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Kz(D),B,f,e,v.bannerImageLayoutViewModel.adLayoutLoggingData,h)}); else if(v.shoppingCompanionCarouselRenderer)qK(Y,A.elementId,G,v.shoppingCompanionCarouselRenderer.isContentVideoCompanion,v.shoppingCompanionCarouselRenderer.adVideoId,v.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,H,F,function(e,B,f,h){var Q=U.Y.get(),K=e.slotId,D=v.shoppingCompanionCarouselRenderer;e=v_(U.Y8.get(),e);return N_(Q,K,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new ql(D),B,f,D.impressionPings,e,v.shoppingCompanionCarouselRenderer.adLayoutLoggingData,h)}); else if(v.adBreakServiceRenderer){if(!Qj3(A))return[];if(G==="AD_PLACEMENT_KIND_PAUSE")return pXX(U.T.get(),H,F,A.renderer.adBreakServiceRenderer,c);if(G!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&G!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return b5Y(U.T.get(),H,F,A.renderer.adBreakServiceRenderer,c,d,T);L.Sc||$D("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:G,adPlacementConfig:H,daiEnabledForContentVideo:String(T),isServedFromLiveInfra:String(L.Sc),clientPlaybackNonce:L.clientPlaybackNonce}); if(G==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!U.FT)return new u("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!U.nV)return new u("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");U.nV.vA({adPlacementRenderer:A,contentCpn:c,Y5:d});d=eQ(U.FT.get());return kTV(U.T.get(),A.renderer.adBreakServiceRenderer,H,d,c,F,T)}if(!U.SD)return new u("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); U.SD.vA({adPlacementRenderer:A,contentCpn:c,Y5:d})}else{if(v.clientForecastingAdRenderer)return UT9(U.T.get(),U.Y.get(),H,F,v.clientForecastingAdRenderer,c,d,V);if(v.invideoOverlayAdRenderer)return dT8(U.T.get(),U.Y.get(),H,F,v.invideoOverlayAdRenderer,c,d,V);if(v.instreamAdPlayerOverlayRenderer)return AoY(U.T.get(),U.Y.get(),H,F,v.instreamAdPlayerOverlayRenderer,c,V);if((v.linearAdSequenceRenderer||v.instreamVideoAdRenderer)&&N)return r28(U.T.get(),U.Y.get(),A,c,V,l,RjS(U.xE.get()));if(v.linearAdSequenceRenderer&& !N){if(E)return[];ud(Y,v,G);if(v.linearAdSequenceRenderer.adLayoutMetadata){if(!Bwc(v.linearAdSequenceRenderer))return new u("Received invalid LinearAdSequenceRenderer.")}else if(v.linearAdSequenceRenderer.linearAds==null)return new u("Received invalid LinearAdSequenceRenderer.");if(g.O(v.linearAdSequenceRenderer.adStart,FK)){$D("Found AdNotify in LinearAdSequenceRenderer");A=g.O(v.linearAdSequenceRenderer.adStart,FK);if(!rIc(A))return new u("Invalid AdMessageRenderer.");T=v.linearAdSequenceRenderer.linearAds; return VY8(U.j.get(),U.T.get(),U.Y.get(),U.Y8.get(),H,F,A,TE(v.linearAdSequenceRenderer.adLayoutMetadata)?v.linearAdSequenceRenderer.adLayoutMetadata:void 0,T,c,d,L,V,r,U.loadPolicy,U.xE.get())}return W6Y(U.T.get(),U.Y.get(),H,F,v.linearAdSequenceRenderer.linearAds,TE(v.linearAdSequenceRenderer.adLayoutMetadata)?v.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,L,V,r,U.loadPolicy,U.xE.get(),P)}if(!v.remoteSlotsRenderer||T){if(v.instreamVideoAdRenderer&&!N){if(E)return[];ud(Y,v,G);return J29(U.T.get(), U.Y.get(),H,F,v.instreamVideoAdRenderer,c,d,L,V,r,U.loadPolicy,U.xE.get(),U.Y8.get(),P)}if(v.instreamSurveyAdRenderer)return F6E(U.T.get(),U.Y.get(),v.instreamSurveyAdRenderer,H,F,c,V,q8(U.xE.get(),"supports_multi_step_on_desktop"));if(v.sandwichedLinearAdRenderer!=null)return XXE(v.sandwichedLinearAdRenderer)?g.O(v.sandwichedLinearAdRenderer.adVideoStart,FK)?($D("Found AdNotify in SandwichedLinearAdRenderer"),A=g.O(v.sandwichedLinearAdRenderer.adVideoStart,FK),rIc(A)?(T=g.O(v.sandwichedLinearAdRenderer.linearAd, GE))?GsS(A,T,H,U.j.get(),U.T.get(),U.Y.get(),U.Y8.get(),F,c,d,L,V,r,U.loadPolicy,U.xE.get()):new u("Missing IVAR from Sandwich"):new u("Invalid AdMessageRenderer.")):W6Y(U.T.get(),U.Y.get(),H,F,[v.sandwichedLinearAdRenderer.adVideoStart,v.sandwichedLinearAdRenderer.linearAd],void 0,c,d,L,V,r,U.loadPolicy,U.xE.get()):new u("Received invalid SandwichedLinearAdRenderer.");if(v.videoAdTrackingRenderer!=null)return qkX(U.T.get(),U.Y.get(),v.videoAdTrackingRenderer,H,F,c,d,L.vg,V)}}return[]}; BN=function(U,Y,A,c,d,T,E,L){g.p.call(this);var r=this;this.T=U;this.W=Y;this.EH=c;this.FT=d;this.xE=T;this.SX=E;this.WQ=L;this.Y=null;A.get().addListener(this);this.addOnDisposeCallback(function(){A.Ky()||A.get().removeListener(r)}); c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ky()||c.get().removeListener(r)})}; s0X=function(U,Y,A){var c=eQ(U.FT.get());atY(U.xE.get())&&zi(U.SX.get(),"sdai","onopp.1;evt."+A.event+";start."+A.startSecs.toFixed(3)+";d."+A.LV.toFixed(3));Gf(U.T.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var d=U.W.get(),T=Y.adPlacementRenderer.renderer.adBreakServiceRenderer,E=Y.contentCpn,L=Y.adPlacementRenderer.adSlotLoggingData,r=XK(U.xE.get()),l=U.SX;if(d.xE.get().U.L().experiments.lY("enable_smearing_expansion_dai")){var P=d.xE.get();P=g.H_(P.U.L().experiments,"max_prefetch_window_sec_for_livestream_optimization"); r=d.xE.get();var V=g.H_(r.U.L().experiments,"min_prefetch_offset_sec_for_livestream_optimization");r={Mt:xTX(A),PM:!1,cueProcessedMs:c*1E3};var v=A.startSecs+A.LV;if(c===0)r.lP=new NQ(0,v*1E3);else{V=A.startSecs-V;var H=V-c;r.lP=H<=0?new NQ(V*1E3,v*1E3):new NQ(Math.floor(c+Math.random()*Math.min(H,P))*1E3,v*1E3)}P=r}else P={Mt:xTX(A),PM:!1},v=A.startSecs+A.LV,A.startSecs<=c?r=new NQ((A.startSecs-4)*1E3,v*1E3):(V=Math.max(0,A.startSecs-c-10),r=new NQ(Math.floor(c+Math.random()*(r?c===0?0:Math.min(V, 5):V))*1E3,v*1E3)),P.lP=r;T=nA(d,T,E,P,L,[new BK(A)]);ky(d.xE.get())&&zi(l.get(),"abrsm","cpi."+A.identifier+";cps."+A.startSecs+";cpd."+A.LV+";cts."+c+";rbf."+P.lP.start);l.get().U.Yp(P.lP.start/1E3-c,A.startSecs-c);return[T]})}; RX=function(U){var Y,A=(Y=LH(U.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Y.current;if(!A)return null;Y=LH(U.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var c=U.layoutId,d=LH(U.clientMetadata,"metadata_type_content_cpn"),T=LH(U.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),E=LH(U.clientMetadata,"metadata_type_player_overlay_layout_renderer"),L=LH(U.clientMetadata,"metadata_type_player_underlay_renderer"),r=LH(U.clientMetadata, "metadata_type_ad_placement_config"),l=LH(U.clientMetadata,"metadata_type_video_length_seconds");var P=dD(U.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?LH(U.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):dD(U.clientMetadata,"metadata_type_layout_enter_ms")&&dD(U.clientMetadata,"metadata_type_layout_exit_ms")?(LH(U.clientMetadata,"metadata_type_layout_exit_ms")-LH(U.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Kl:c,contentCpn:d,xz:A,Y6:Y,instreamAdPlayerOverlayRenderer:T, playerOverlayLayoutRenderer:E,instreamAdPlayerUnderlayRenderer:L,adPlacementConfig:r,videoLengthSeconds:l,j5:P,inPlayerLayoutId:LH(U.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:LH(U.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; hjY=function(U,Y){return ft3(U,Y)}; SyX=function(U,Y){Y=ft3(U,Y);if(!Y)return null;var A;Y.j5=(A=LH(U.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:A.adBreakRemainingLengthSeconds;return Y}; ft3=function(U,Y){var A,c=(A=LH(U.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:A.current;if(!c)return null;A=qDX(U,Y);return{Zt:Kj4(U,Y),adPlacementConfig:LH(U.clientMetadata,"metadata_type_ad_placement_config"),Rn:A,contentCpn:LH(U.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:LH(U.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:LH(U.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:LH(U.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,j5:void 0,xz:c,Kl:U.layoutId,videoLengthSeconds:LH(U.clientMetadata,"metadata_type_video_length_seconds")}}; aX=function(U,Y,A,c,d,T,E,L,r){g.p.call(this);this.j=U;this.J=Y;this.K=A;this.W=c;this.Y=d;this.T=T;this.Y8=E;this.xE=L;this.Gn=r;this.Tz=!0}; MYv=function(U,Y,A){return NbV(U.Y.get(),Y.contentCpn,Y.Kl,function(c){return twv(U.T.get(),c.slotId,A,Y.adPlacementConfig,Y.Kl,v_(U.Y8.get(),c))})}; sr=function(U,Y,A,c,d,T,E,L){g.p.call(this);this.T=U;this.Y=Y;this.W=A;this.xE=c;this.j=d;this.Gn=T;this.FT=E;this.Ua=L}; ff=function(U){g.p.call(this);this.Y=U}; Gf=function(U,Y,A,c){U.Y().Lh(Y,c);A=A();U=U.Y();U.gs.uM("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Y,c,A);Y=g.J(A);for(A=Y.next();!A.done;A=Y.next())a:{c=U;A=A.value;c.gs.jD("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",A);c.gs.jD("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",A);try{var d=c.Y;if(g.HG(A.slotId))throw new u("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(N8(d,A))throw new u("Duplicate registration for slot.",{slotId:A.slotId,slotEntryTriggerType:A.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!d.ZO.nI.has(A.slotType))throw new u("No fulfillment adapter factory registered for slot of type: "+A.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!d.ZO.e$.has(A.slotType))throw new u("No SlotAdapterFactory registered for slot of type: "+A.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");ZT(d,"TRIGGER_CATEGORY_SLOT_ENTRY",A.slotEntryTrigger?[A.slotEntryTrigger]:[]);ZT(d,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", A.slotFulfillmentTriggers);ZT(d,"TRIGGER_CATEGORY_SLOT_EXPIRATION",A.slotExpirationTriggers);var T=c.Y,E=A.slotType+"_"+A.slotPhysicalPosition,L=Si(T,E);if(N8(T,A))throw new u("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");L.set(A.slotId,new md9(A));T.Y.set(E,L)}catch(c3){c3 instanceof u&&c3.c7?(c.gs.UR("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",c3.c7,A),$D(c3,A,void 0,void 0,c3.rk)):(c.gs.UR("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", A),$D(c3,A));break a}g.M(N8(c.Y,A)).J=!0;try{var r=c.Y,l=g.M(N8(r,A)),P=A.slotEntryTrigger,V=r.ZO.A1.get(P.triggerType);V&&(V.MF("TRIGGER_CATEGORY_SLOT_ENTRY",P,A,null),l.ov.set(P.triggerId,V));for(var v=g.J(A.slotFulfillmentTriggers),H=v.next();!H.done;H=v.next()){var G=H.value,F=r.ZO.A1.get(G.triggerType);F&&(F.MF("TRIGGER_CATEGORY_SLOT_FULFILLMENT",G,A,null),l.Pw.set(G.triggerId,F))}for(var N=g.J(A.slotExpirationTriggers),e=N.next();!e.done;e=N.next()){var B=e.value,f=r.ZO.A1.get(B.triggerType); f&&(f.MF("TRIGGER_CATEGORY_SLOT_EXPIRATION",B,A,null),l.X.set(B.triggerId,f))}var h=r.ZO.nI.get(A.slotType).get().build(r.W,A);l.G=h;var Q=r.ZO.e$.get(A.slotType).get().build(r.K,A);Q.init();l.T=Q}catch(c3){c3 instanceof u&&c3.c7?(c.gs.UR("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",c3.c7,A),$D(c3,A,void 0,void 0,c3.rk)):(c.gs.UR("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",A),$D(c3,A));Jr(c,A,!0);break a}c.gs.jD("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",A); c.Y.Ey(A);for(var K=g.J(c.T),D=K.next();!D.done;D=K.next())D.value.Ey(A);B_(c,A)}}; hK=function(U,Y,A,c,d){g.p.call(this);var T=this;this.T=U;this.W=Y;this.cQ=A;this.context=d;this.Y=new Map;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ky()||c.get().removeListener(T)})}; xI3=function(U,Y){var A=0x8000000000000;var c=0;for(var d=g.J(Y.slotFulfillmentTriggers),T=d.next();!T.done;T=d.next())T=T.value,T instanceof Z$?(A=Math.min(A,T.Y.start),c=Math.max(c,T.Y.end)):$D("Found unexpected fulfillment trigger for throttled slot.",Y,null,{fulfillmentTrigger:T});c=new NQ(A,c);A="throttledadcuerange:"+Y.slotId;U.Y.set(A,Y);U.cQ.get().addCueRange(A,c.start,c.end,!1,U);X6(U.context.xE.get())&&(Y=c.start,c=c.end,d={},U.context.Tx.XT("tcrr",(d.cid=A,d.sm=Y,d.em=c,d)))}; SQ=function(){g.p.apply(this,arguments);this.Tz=!0;this.QH=new Map;this.Y=new Map}; M_=function(U){return U.QH}; by=function(U,Y){U=g.J(U.QH.values());for(var A=U.next();!A.done;A=U.next())if(A.value.layoutId===Y)return!0;return!1}; pf=function(U,Y){U=g.J(U.Y.values());for(var A=U.next();!A.done;A=U.next()){A=g.J(A.value);for(var c=A.next();!c.done;c=A.next())if(c=c.value,c.layoutId===Y)return c}$D("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.HG(Y)),layoutId:Y})}; bmE=function(){this.Y=new Map}; pKX=function(U,Y){this.callback=U;this.slot=Y}; Q2=function(){}; Q0X=function(U,Y,A){this.callback=U;this.slot=Y;this.FT=A}; ZmE=function(U,Y,A){this.callback=U;this.slot=Y;this.FT=A;this.T=!1;this.Y=0}; Oml=function(U,Y,A){this.callback=U;this.slot=Y;this.FT=A}; Zh=function(U){this.FT=U}; Or=function(U){g.p.call(this);this.m7=U;this.JP=new Map}; mM=function(U,Y){for(var A=[],c=g.J(U.JP.values()),d=c.next();!d.done;d=c.next()){d=d.value;var T=d.trigger;T instanceof AE&&T.triggeringLayoutId===Y&&A.push(d)}A.length?sj(U.m7(),A):$D("Survey is submitted but no registered triggers can be activated.")}; gy=function(U,Y,A){Or.call(this,U);var c=this;this.xE=A;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.Ky()||Y.get().removeListener(c)})}; y2=function(U){g.p.call(this);this.Y=U;this.Tz=!0;this.JP=new Map;this.K=new Set;this.W=new Set;this.j=new Set;this.J=new Set;this.T=new Set}; nf=function(U){g.p.call(this);this.Y=U;this.JP=new Map}; Dh=function(U,Y){for(var A=[],c=g.J(U.JP.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger.Y===Y.layoutId&&A.push(d);A.length&&sj(U.Y(),A)}; IX=function(U,Y,A){g.p.call(this);var c=this;this.Y=U;this.context=A;this.JP=new Map;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.Ky()||Y.get().removeListener(c)})}; uy=function(U,Y,A,c,d){g.p.call(this);var T=this;this.T=U;this.cQ=Y;this.FT=A;this.Gn=c;this.context=d;this.Tz=!0;this.JP=new Map;this.Y=new Set;A.get().addListener(this);this.addOnDisposeCallback(function(){A.Ky()||A.get().removeListener(T)})}; mTc=function(U,Y,A,c,d,T,E,L,r,l){if(FS(U.Gn.get(),1).clientPlaybackNonce!==r)throw new u("Cannot register CueRange-based trigger for different content CPN",{trigger:A});U.JP.set(A.triggerId,{cT:new d6(Y,A,c,d),cueRangeId:T});U.cQ.get().addCueRange(T,E,L,l,U);X6(U.context.xE.get())&&(r={},U.context.Tx.XT("crr",(r.ca=Y,r.tt=A.triggerType,r.st=c.slotType,r.lt=d==null?void 0:d.layoutType,r.cid=T,r.sm=E,r.em=L,r)))}; g8S=function(U,Y){U=g.J(U.JP.entries());for(var A=U.next();!A.done;A=U.next()){var c=g.J(A.value);A=c.next().value;c=c.next().value;if(Y===c.cueRangeId)return A}return""}; Kf=function(U,Y){g.p.call(this);var A=this;this.j=U;this.T=new Map;this.W=new Map;this.Y=null;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.Ky()||Y.get().removeListener(A)}); var c;this.Y=((c=Ti(Y.get()))==null?void 0:c.slotId)||null}; yoY=function(U,Y){var A=[];U=g.J(U.values());for(var c=U.next();!c.done;c=U.next())c=c.value,c.slot.slotId===Y&&A.push(c);return A}; q_=function(U){g.p.call(this);this.Y=U;this.Tz=!0;this.JP=new Map}; KQ=function(U,Y,A){Y=Y.layoutId;for(var c=[],d=g.J(U.JP.values()),T=d.next();!T.done;T=d.next())if(T=T.value,T.trigger instanceof yC){var E;if(E=T.trigger.layoutId===Y){E=A;var L=SZ9.get(T.category);E=L?L===E:!1}E&&c.push(T)}c.length&&sj(U.Y(),c)}; Cf=function(U){g.p.call(this);this.Y=U;this.Tz=!0;this.JP=new Map}; UG=function(U,Y,A,c,d){g.p.call(this);var T=this;this.K=U;this.EH=Y;this.FT=A;this.SX=c;this.Y=null;this.Tz=!0;this.JP=new Map;this.j=new Set;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.Ky()||Y.get().removeListener(T)}); d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ky()||d.get().removeListener(T)})}; DTl=function(U){U.Y&&(U.T&&(U.T.stop(),U.T.start()),n8l(U,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; n8l=function(U,Y){for(var A=[],c=g.J(U.JP.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger.triggerType===Y&&A.push(d);A.length>0&&sj(U.K(),A)}; Yk=function(U,Y,A,c,d){for(var T=[],E=g.J(U.JP.values()),L=E.next();!L.done;L=E.next()){var r=L=L.value,l=r.trigger;r=r.slot;if(l.triggerType===Y){if(l instanceof bi||l instanceof ph||l instanceof OM){if(d&&l.breakDurationMs!==A)continue;if(!d&&l.breakDurationMs===A)continue;if(c.has(r.slotId))continue;if(U.j.has(r.slotId))continue}T.push(L)}}T.length>0&&sj(U.K(),T)}; It4=function(U,Y){Y=(Y.LV+1)*1E3;var A=void 0;U=g.J(U.JP.values());for(var c=U.next();!c.done;c=U.next()){var d=c.value;c=d.trigger;d=d.slot;c instanceof bi&&c.breakDurationMs<=Y&&(!A||c.breakDurationMs>A.trigger.breakDurationMs)&&(A={slot:d,trigger:c})}return A}; uwv=function(U){U=U.adPlacementRenderer.config.adPlacementConfig;if(!U.prefetchModeConfig||!U.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;U=Number(U.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(U)||U<=0?0:Math.floor(Math.random()*U)}; K6E=function(U){U=U.adPlacementRenderer.config.adPlacementConfig;if(U.prefetchModeConfig&&U.prefetchModeConfig.cacheFetchRefreshDurationMs&&(U=Number(U.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(U)||U<=0)))return U}; A9=function(U){U.Y=null;U.JP.clear();U.j.clear();U.T&&U.T.stop();U.W&&U.W.stop()}; cZ=function(U){g.p.call(this);this.W=U;this.Tz=!0;this.JP=new Map;this.Y=new Map;this.T=new Map}; qyX=function(U,Y){var A=[];if(Y=U.Y.get(Y.layoutId)){Y=g.J(Y);for(var c=Y.next();!c.done;c=Y.next())(c=U.T.get(c.value.triggerId))&&A.push(c)}return A}; du=function(U){g.p.call(this);this.Y=U;this.JP=new Map}; CDX=function(U,Y){for(var A=[],c=g.J(U.JP.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof Xl&&d.trigger.slotId===Y&&A.push(d);A.length>=1&&sj(U.Y(),A)}; U83=function(U,Y){var A={slotId:Wm(Y,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],mY:"surface",clientMetadata:new zG([])},c=Object,d=c.assign;Y=CH(Y,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",A.slotId);Y={layoutId:Y,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",HZ:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"surface", clientMetadata:new zG([]),Gk:R7S(!1,A.slotId,A.slotType,A.slotPhysicalPosition,A.mY,A.slotEntryTrigger,A.slotFulfillmentTriggers,A.slotExpirationTriggers,Y,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return d.call(c,{},U,{JsJ:!0,slot:A,layout:Y})}; MdX=function(U,Y,A,c){var d=U.kind;c=c?!1:!U.hideCueRangeMarker;switch(d){case "AD_PLACEMENT_KIND_START":return c={Mt:new NQ(-0x8000000000000,-0x8000000000000),PM:c},A!=null&&(c.lP=new NQ(-0x8000000000000,-0x8000000000000)),c;case "AD_PLACEMENT_KIND_END":return c={Mt:new NQ(0x7ffffffffffff,0x8000000000000),PM:c},A!=null&&(c.lP=new NQ(Math.max(0,Y-A),0x8000000000000)),c;case "AD_PLACEMENT_KIND_MILLISECONDS":d=U.adTimeOffset;d.offsetStartMilliseconds||$D("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); d.offsetEndMilliseconds||$D("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");U=Number(d.offsetStartMilliseconds);d=Number(d.offsetEndMilliseconds);d===-1&&(d=Y);if(Number.isNaN(U)||Number.isNaN(d)||U>d)return new u("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:U,offsetEndMs:d},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",d===Y&&U-500<=d);c={Mt:new NQ(U,d),PM:c};if(A!=null){U=Math.max(0,U-A);if(U===d)return c;c.lP=new NQ(U,d)}return c; default:return new u("AdPlacementKind not supported in convertToRange.",{kind:d,adPlacementConfig:U})}}; xTX=function(U){var Y=U.startSecs*1E3;return new NQ(Y,Y+U.LV*1E3)}; Yj3=function(U){if(!U||!U.adPlacements&&!U.adSlots)return!1;for(var Y=g.J(U.adPlacements||[]),A=Y.next();!A.done;A=Y.next())if(A=A.value)if(A=A.adPlacementRenderer,A!=null&&(A.config&&A.config.adPlacementConfig&&A.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;U=g.J(U.adSlots||[]);for(Y=U.next();!Y.done;Y=U.next()){var c=A=void 0;if(((A=g.O(Y.value,g6))==null?void 0:(c=A.adSlotMetadata)==null?void 0:c.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; TI=function(U){this.xE=U;this.T=new Map;this.Y=new Map;this.W=new Map}; Wm=function(U,Y){if(EG(U.xE.get())){var A=U.T.get(Y)||0;A++;U.T.set(Y,A);return Y+"_"+A}return g.tH(16)}; CH=function(U,Y,A){if(EG(U.xE.get())){var c=U.Y.get(Y)||0;c++;U.Y.set(Y,c);return A+"_"+Y+"_"+c}return g.tH(16)}; V2=function(U,Y){if(EG(U.xE.get())){var A=U.W.get(Y)||0;A++;U.W.set(Y,A);return Y+"_"+A}return g.tH(16)}; ArV=function(U){var Y=[new wY(U.Kl),new jY(U.xz),new Y8(U.adPlacementConfig),new Xw(U.videoLengthSeconds),new m6(U.j5)];U.instreamAdPlayerOverlayRenderer&&Y.push(new zT(U.instreamAdPlayerOverlayRenderer));U.playerOverlayLayoutRenderer&&Y.push(new Lm(U.playerOverlayLayoutRenderer));U.Y6&&Y.push(new TT(U.Y6));return Y}; crE=function(U,Y,A,c,d,T){U=A.inPlayerLayoutId?A.inPlayerLayoutId:CH(T,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",U);var E,L,r=A.instreamAdPlayerOverlayRenderer?(E=A.instreamAdPlayerOverlayRenderer)==null?void 0:E.adLayoutLoggingData:(L=A.playerOverlayLayoutRenderer)==null?void 0:L.adLayoutLoggingData;E={layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",mY:Y};return{layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",HZ:new Map,layoutExitNormalTriggers:[new Se(function(l){return V2(T, l)},A.Kl)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:Y,clientMetadata:c,Gk:d(E),adLayoutLoggingData:r}}; of=function(U,Y){var A=this;this.T=U;this.xE=Y;this.Y=function(c){return V2(A.T.get(),c)}}; twv=function(U,Y,A,c,d,T){A=new zG([new rY(A),new Y8(c)]);Y=CH(U.T.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Y);c={layoutId:Y,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",mY:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",HZ:new Map,layoutExitNormalTriggers:[new Se(function(E){return V2(U.T.get(),E)},d)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:A,Gk:T(c),adLayoutLoggingData:void 0}}; Th=function(U,Y,A,c,d){var T=ArV(c);return crE(Y,A,c,new zG(T),d,U.T.get())}; d83=function(U,Y,A,c,d){var T=ArV(c);T.push(new Cz(c.Zt));T.push(new Uy(c.Rn));return crE(Y,A,c,new zG(T),d,U.T.get())}; N_=function(U,Y,A,c,d,T,E,L,r,l){Y=CH(U.T.get(),A,Y);var P={layoutId:Y,layoutType:A,mY:"core"},V=new Map;E&&V.set("impression",E);E=[new mK(U.Y,d,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];l&&E.push(new h4(U.Y,l,["normal"]));return{layoutId:Y,layoutType:A,HZ:V,layoutExitNormalTriggers:E,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:new zG([c,new Y8(T),new wY(d)]),Gk:L(P),adLayoutLoggingData:r}}; tK=function(U,Y,A,c,d,T,E,L,r){Y=CH(U.T.get(),A,Y);var l={layoutId:Y,layoutType:A,mY:"core"},P=[new mK(U.Y,d,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];r&&P.push(new h4(U.Y,r,["normal"]));return{layoutId:Y,layoutType:A,HZ:new Map,layoutExitNormalTriggers:P,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:new zG([c,new Y8(T),new wY(d)]),Gk:E(l),adLayoutLoggingData:L}}; vN=function(U,Y,A){var c=[];c.push(new gP(U.Y,A));Y&&c.push(Y);return c}; $y=function(U,Y,A,c,d,T,E){var L={layoutId:Y,layoutType:A,mY:"core"};return{layoutId:Y,layoutType:A,HZ:new Map,layoutExitNormalTriggers:E,layoutExitSkipTriggers:[new aW(U.Y,Y)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:new zG([new IC(c),new Y8(d)]),Gk:T(L),adLayoutLoggingData:c.adLayoutLoggingData}}; Yy=function(U,Y,A,c,d,T,E,L){var r={layoutId:Y,layoutType:T,mY:"core"};return{layoutId:Y,layoutType:T,HZ:new Map,layoutExitNormalTriggers:[new Se(U.Y,A)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:new zG([new Y8(c)].concat(g.X(E))),Gk:d(r),adLayoutLoggingData:L}}; Gh=function(U,Y,A,c){if(U.xE.get().Fl(Y.kind==="AD_PLACEMENT_KIND_START"))if(A===void 0)$D("Expected SSAP layout ID in renderer",void 0,void 0,{caller:c});else return A}; TY3=function(U,Y,A,c,d,T,E,L,r,l,P,V,v){U=HN(U,Y,A,d,T,E,L,r,V,Gh(U,A,c.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),v);Y=U.fQ;A=new iD(U.Ah);c=U.layoutExitSkipTriggers;l>0&&(Y.push(A),Y.push(new dY(l)),c=[]);Y.push(new cK(P));return{Oy:{layoutId:U.layoutId,layoutType:U.layoutType,HZ:U.HZ,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:U.mY,clientMetadata:new zG(Y),Gk:U.Gk,adLayoutLoggingData:U.adLayoutLoggingData}, dC:c,K5:U.layoutExitMuteTriggers,LQ:U.layoutExitUserInputSubmittedTriggers,ZC:U.Oa,N5:U.N5}}; L6v=function(U,Y,A,c,d,T,E,L,r,l){Y=HN(U,Y,A,c,T,new Map,E,function(P){return L(P,r)},void 0,Gh(U,A,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); U=new AE(U.Y,Y.Ah);A=new iD(Y.Ah);l=new cK(l);return{Oy:{layoutId:Y.layoutId,layoutType:Y.layoutType,HZ:Y.HZ,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:Y.mY,clientMetadata:new zG([].concat(g.X(Y.fQ),[A,l])),Gk:Y.Gk,adLayoutLoggingData:Y.adLayoutLoggingData},dC:Y.layoutExitSkipTriggers,K5:Y.layoutExitMuteTriggers,LQ:[].concat(g.X(Y.layoutExitUserInputSubmittedTriggers),[U]),ZC:Y.Oa,N5:Y.N5}}; HN=function(U,Y,A,c,d,T,E,L,r,l,P){Y=l!=null?l:CH(U.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",Y);l={layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",mY:"adapter"};L=L(Y);var V=LH(L.clientMetadata,"metadata_type_fulfilled_layout");V||$D("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var v=V?V.layoutId:"";A=[new Y8(A),new gY(c),new Dt(d)];V&&A.push(new Jo(V.layoutType));P&&A.push(new fm(P));return{layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", HZ:T,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new IW(U.Y,v)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"adapter",fQ:A,Gk:E(l),adLayoutLoggingData:r,N5:L,Ah:v}}; FsE=function(U,Y,A,c,d,T,E,L,r,l,P){U=TDc(U,Y,"core",A,c,d,T,E,L,r,l,void 0,P);return{layoutId:U.layoutId,layoutType:U.layoutType,HZ:U.HZ,layoutExitNormalTriggers:U.layoutExitNormalTriggers,layoutExitSkipTriggers:U.layoutExitSkipTriggers,layoutExitMuteTriggers:U.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:U.layoutExitUserInputSubmittedTriggers,Oa:U.Oa,mY:U.mY,clientMetadata:new zG(U.sG),Gk:U.Gk,adLayoutLoggingData:U.adLayoutLoggingData}}; imX=function(U,Y,A,c,d,T,E,L,r,l,P,V,v){Y=TDc(U,Y,"adapter",A,c,d,T,E,L,r,P,V,v);c=Y.layoutExitSkipTriggers;d=Y.sG;A.adPodSkipTarget&&A.adPodSkipTarget>0&&(d.push(l),d.push(new dY(A.adPodSkipTarget)),c=[]);d.push(new cK(L.adPodIndex));A.isCritical&&(c=[new h4(U.Y,Y.layoutId,["error"])].concat(g.X(c)));return{Oy:{layoutId:Y.layoutId,layoutType:Y.layoutType,HZ:Y.HZ,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:Y.mY,clientMetadata:new zG(d), Gk:Y.Gk,adLayoutLoggingData:Y.adLayoutLoggingData},dC:c,K5:Y.layoutExitMuteTriggers,LQ:Y.layoutExitUserInputSubmittedTriggers,ZC:Y.Oa}}; TDc=function(U,Y,A,c,d,T,E,L,r,l,P,V,v){var H={layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA",mY:A};d=[new Y8(d),new Ao(r),new Ey(c.externalVideoId),new o0(L),new Dt({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands,progressCommands:c.adVideoProgressCommands}),new k8(T),new NT({current:null}),new Xw(E)];(T=c.playerOverlay.instreamAdPlayerOverlayRenderer)&&d.push(new zT(T));(E=c.playerOverlay.playerOverlayLayoutRenderer)&&d.push(new Lm(E)); V&&d.push(new R0(V));(V=c.playerUnderlay)&&d.push(new rY(V));L=Wm(U.T.get(),"SLOT_TYPE_IN_PLAYER");V=(V=T?T.elementId:E==null?void 0:E.layoutId)?V:CH(U.T.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",L);d.push(new iD(V));d.push(new Fw(L));d.push(new fm(r.adPodIndex));c.adNextParams&&d.push(new nz(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new VL(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new DE(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new yL(c.legacyInfoCardVastExtension)); c.sodarExtensionData&&d.push(new a0(c.sodarExtensionData));P&&d.push(new Oy(P));d.push(new Km(Xt(c.pings)));r=kB(c.pings);if(v){a:{v=g.J(v);for(P=v.next();!P.done;P=v.next())if(P=P.value,P.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(T=g.O(P.fulfillmentContent.fulfilledLayout,fA))&&(T=g.O(T.renderingContent,xr))&&T.associatedPlayerBytesLayoutId===Y){v=P;break a}v=void 0}v&&d.push(new lD(v))}return{layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA",HZ:r,layoutExitNormalTriggers:[new yC(U.Y,Y)],layoutExitSkipTriggers:c.skipOffsetMilliseconds? [new IW(U.Y,V)]:[],layoutExitMuteTriggers:[new IW(U.Y,V)],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:A,sG:d,Gk:l(H),adLayoutLoggingData:c.adLayoutLoggingData}}; Pfl=function(U,Y,A,c,d,T,E,L,r){c.every(function(P){return TG(P,[],["LAYOUT_TYPE_MEDIA"])})||$D("Unexpect subLayout type for DAI composite layout"); Y=CH(U.T.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Y);var l={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",mY:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",HZ:new Map,layoutExitNormalTriggers:[new Mo(U.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Oa:[],mY:"core",clientMetadata:new zG([new x8(A),new sy(L),new eY(c),new Y8(d),new bD(T),new ho({}),new Cm(r)]),Gk:E(l)}}; oXE=function(U){return U!=null}; zI=function(U,Y,A){var c=this;this.T=U;this.W=Y;this.xE=A;this.Y=function(d){return V2(c.T.get(),d)}}; kTV=function(U,Y,A,c,d,T,E){if(!A.prefetchModeConfig)return new u("AdPlacementConfig for Live Prefetch is missing prefetch_config");A=A.prefetchModeConfig;c*=1E3;var L=[];if(!A.breakLengthMs)return new u("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var r=g.J(A.breakLengthMs),l=r.next();!l.done;l=r.next())if(l=l.value,Number(l)>0){var P=c+Number(A.startTimeOffsetMs),V=P+Number(A.cacheFetchSmearingDurationMs);l={Mt:new NQ(V,V+Number(l)),PM:!1,lP:new NQ(Math.floor(P+Math.random()* Number(A.cacheFetchSmearingDurationMs)),V),cueProcessedMs:c?c:P};P=[];P.push(new c_({}));V=[];V.push(new D$(U.Y));V.push(new qXX(U.Y));E&&P.push(new ho({}));L.push(nA(U,Y,d,l,T,P,V))}return L}; nA=function(U,Y,A,c,d,T,E){T=T===void 0?[]:T;var L=Wm(U.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");E||(E=[],c.lP&&c.lP.start!==c.Mt.start&&E.push(new Z$(U.Y,A,new NQ(c.lP.start,c.Mt.start),!1)),E.push(new Z$(U.Y,A,new NQ(c.Mt.start,c.Mt.end),c.PM)));c={getAdBreakUrl:Y.getAdBreakUrl,CR:c.Mt.start,nR:c.Mt.end,cueProcessedMs:c.cueProcessedMs};Y=new Ch(U.Y,L);T=[new QL(c)].concat(g.X(T));return{slotId:L,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:E, slotExpirationTriggers:[new nh(U.Y,A),new Kh(U.Y,L),new qo(U.Y,L)],mY:"core",clientMetadata:new zG(T),adSlotLoggingData:d}}; oqc=function(U,Y,A){var c=[];A=g.J(A);for(var d=A.next();!d.done;d=A.next())c.push(EqE(U,Y,d.value));return c}; EqE=function(U,Y,A){return A.triggeringSlotId!=null&&A.triggeringSlotId===U?A.clone(Y):A}; uZV=function(U,Y,A,c,d){return zh3(U,Y,A,c,d)}; E8V=function(U,Y,A,c){var d=Wm(U.T.get(),"SLOT_TYPE_IN_PLAYER");return zh3(U,d,Y,A,c)}; zh3=function(U,Y,A,c,d){var T=new fh(U.Y,A),E=[new ui(U.Y,Y)];U=[new Kh(U.Y,Y),new nh(U.Y,c)];return{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:E,slotExpirationTriggers:U,mY:"core",clientMetadata:new zG([new pm(d({slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:T,slotFulfillmentTriggers:E,slotExpirationTriggers:U},A))]),adSlotLoggingData:void 0}}; Joc=function(U,Y,A,c,d,T){var E=Wm(U.T.get(),"SLOT_TYPE_PLAYER_BYTES"),L=Wm(U.T.get(),"SLOT_TYPE_IN_PLAYER"),r=CH(U.T.get(),"LAYOUT_TYPE_SURVEY",L);c=LJ(U,Y,A,c);var l=[new ui(U.Y,E)];A=[new Kh(U.Y,E),new nh(U.Y,A),new aW(U.Y,r)];if(c instanceof u)return c;L=T({slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:c,slotFulfillmentTriggers:l,slotExpirationTriggers:A},{slotId:L,layoutId:r});T=L.HrJ;L=L.DIf;return[{slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:wy(U,Y,E,c),slotFulfillmentTriggers:iy(U,Y,E,l),slotExpirationTriggers:A,mY:"core",clientMetadata:new zG([new pm(T),new Uj(JK(Y)),new Ar({JQ:U.JQ(Y)})]),adSlotLoggingData:d},L]}; JK=function(U){return U.kind==="AD_PLACEMENT_KIND_START"}; jCE=function(U,Y,A,c,d){d=d?d:Wm(U.T.get(),"SLOT_TYPE_IN_PLAYER");A=new fh(U.Y,A);var T=[new ui(U.Y,d)];U=[new nh(U.Y,Y),new Kh(U.Y,d)];return{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:U,mY:"core",clientMetadata:new zG([new pm(c({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:U}))])}}; NbV=function(U,Y,A,c){var d=Wm(U.T.get(),"SLOT_TYPE_PLAYER_UNDERLAY");A=new fh(U.Y,A);var T=[new ui(U.Y,d)];U=[new nh(U.Y,Y),new Kh(U.Y,d)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:U,mY:"core",clientMetadata:new zG([new pm(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:U}))])}}; vXX=function(U,Y,A,c,d,T,E){var L=Wm(U.T.get(),"SLOT_TYPE_IN_PLAYER"),r=CH(U.T.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",L);c=L03(U,c,T,E,r);if(c instanceof u)return c;E=[new ui(U.Y,L)];d=[new nh(U.Y,T),new ui(U.Y,d),new Yr(U.Y,d)];A=v_(A,{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:c,slotFulfillmentTriggers:E,slotExpirationTriggers:d});U=U.W.get();T={layoutId:r,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",mY:"core"};Y={layoutId:r,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", HZ:new Map,layoutExitNormalTriggers:[new Evc(U.Y,r,Y.durationMs)],layoutExitSkipTriggers:[new z5l(U.Y,r,Y.durationMs)],Oa:[new ovY(U.Y,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],mY:"core",clientMetadata:new zG([new nm(Y)]),Gk:A(T)};return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:c,slotFulfillmentTriggers:E,slotExpirationTriggers:d,clientMetadata:new zG([new pm(Y)])}}; co3=function(U,Y,A,c,d,T){Y=LJ(U,Y,A,c);if(Y instanceof u)return Y;var E=Y instanceof Z$?new cIX(U.Y,A,Y.Y):null;c=Wm(U.T.get(),"SLOT_TYPE_IN_PLAYER");var L=[new ui(U.Y,c)];U=[new nh(U.Y,A),new Kh(U.Y,c)];T=T({slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:L,slotExpirationTriggers:U},E);return T instanceof od?new u(T):{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:L,slotExpirationTriggers:U, mY:"core",clientMetadata:new zG([new pm(T)]),adSlotLoggingData:d}}; Yy4=function(U,Y,A,c){var d=Wm(U.T.get(),"SLOT_TYPE_IN_PLAYER"),T=new RW(U.Y,Y),E=[new Ul(U.Y,d)];U=[new nh(U.Y,Y),new Kh(U.Y,d)];return{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:E,slotExpirationTriggers:U,mY:"core",clientMetadata:new zG([new pm(c({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:T,slotFulfillmentTriggers:E,slotExpirationTriggers:U}))]),adSlotLoggingData:A}}; A2X=function(U,Y,A,c){var d=Wm(U.T.get(),"SLOT_TYPE_IN_PLAYER");A=new fh(U.Y,A);var T=[new ui(U.Y,d)],E=[new Kh(U.Y,d),new nh(U.Y,Y)];T={slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:E};return{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:[new ui(U.Y,d)],slotExpirationTriggers:[new nh(U.Y,Y),new Kh(U.Y,d)],mY:"core",clientMetadata:new zG([new pm(c(T))])}}; Csc=function(U,Y,A,c,d){var T=Wm(U.T.get(),"SLOT_TYPE_IN_PLAYER");A=new sM(U.Y,c,A);c=[new ui(U.Y,T)];U=[new nh(U.Y,Y)];return{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:c,slotExpirationTriggers:U,mY:"core",clientMetadata:new zG([new pm(d({slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:A,slotFulfillmentTriggers:c,slotExpirationTriggers:U}))])}}; nvl=function(U,Y,A,c,d,T){var E=Wm(U.T.get(),Y);return ru(U,E,Y,new fh(U.Y,c),[new nh(U.Y,A),new Kh(U.Y,E),new h4(U.Y,c,["error"])],d,T)}; yIX=function(U,Y,A,c,d,T,E){var L=Wm(U.T.get(),Y);return ru(U,L,Y,new h4(U.Y,d,["normal"]),[new nh(U.Y,A),new Kh(U.Y,L),new h4(U.Y,c,["error"])],T,E)}; Z5c=function(U,Y,A,c,d){var T=Wm(U.T.get(),Y);return ru(U,T,Y,new RW(U.Y,A),[new nh(U.Y,A),new Kh(U.Y,T)],c,d)}; KsV=function(U,Y,A,c,d){A=A?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var T=Wm(U.T.get(),A);Y=new RW(U.Y,Y);var E=[new ui(U.Y,T)];U=[new Kh(U.Y,T)];return{slotId:T,slotType:A,slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:E,slotExpirationTriggers:U,mY:"core",clientMetadata:new zG([new pm(d({slotId:T,slotType:A,slotPhysicalPosition:1,mY:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:E,slotExpirationTriggers:U}))]),adSlotLoggingData:c}}; z8l=function(U,Y,A,c){var d=Wm(U.T.get(),"SLOT_TYPE_PLAYER_BYTES"),T=new QC(U.Y),E=[new Ul(U.Y,d)];U=[new nh(U.Y,Y)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:E,slotExpirationTriggers:U,mY:"core",clientMetadata:new zG([new pm(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:T,slotFulfillmentTriggers:E,slotExpirationTriggers:U})),new ho({})]),adSlotLoggingData:A}}; HmX=function(U,Y){return BY4(U.xE.get())?new h4(U.Y,Y,["normal","error","skipped"]):new h4(U.Y,Y,["normal"])}; wRv=function(U,Y,A,c,d){Y=HmX(U,Y);U=WN(U,Y,A);d=d({slotId:U.slotId,slotType:U.slotType,slotPhysicalPosition:U.slotPhysicalPosition,slotEntryTrigger:U.slotEntryTrigger,slotFulfillmentTriggers:U.slotFulfillmentTriggers,slotExpirationTriggers:U.slotExpirationTriggers,mY:U.mY});return d instanceof u?d:{jK:Object.assign({},U,{clientMetadata:new zG([new pm(d.layout)]),adSlotLoggingData:c}),yV:d.yV}}; izX=function(U,Y,A,c,d,T,E){A=GTX(U,Y,A,c);if(A instanceof u)return A;E=E({slotId:A.slotId,slotType:A.slotType,slotPhysicalPosition:A.slotPhysicalPosition,slotEntryTrigger:A.slotEntryTrigger,slotFulfillmentTriggers:A.slotFulfillmentTriggers,slotExpirationTriggers:A.slotExpirationTriggers,mY:A.mY});if(E instanceof u)return E;c=[new Uj(JK(Y)),new pm(E.layout),new Ar({JQ:U.JQ(Y)})];T&&c.push(new I0({}));return{jK:{slotId:A.slotId,slotType:A.slotType,slotPhysicalPosition:A.slotPhysicalPosition,slotEntryTrigger:wy(U, Y,A.slotId,A.slotEntryTrigger),slotFulfillmentTriggers:iy(U,Y,A.slotId,A.slotFulfillmentTriggers),slotExpirationTriggers:A.slotExpirationTriggers,mY:A.mY,clientMetadata:new zG(c),adSlotLoggingData:d},yV:E.yV}}; wy=function(U,Y,A,c){return U.xE.get().Fl(JK(Y))?new Xl(U.Y,A):c}; iy=function(U,Y,A,c){return U.xE.get().Fl(JK(Y))?[new Ul(U.Y,A)]:c}; WN=function(U,Y,A){var c=Wm(U.T.get(),"SLOT_TYPE_PLAYER_BYTES"),d=[new ui(U.Y,c)];U=[new Kh(U.Y,c),new nh(U.Y,A)];return{slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:d,slotExpirationTriggers:U,mY:"core"}}; GTX=function(U,Y,A,c){Y=LJ(U,Y,A,c);return Y instanceof u?Y:WN(U,Y,A)}; Cfc=function(U,Y,A,c,d,T){var E=Wm(U.T.get(),"SLOT_TYPE_FORECASTING");Y=LJ(U,Y,A,c);if(Y instanceof u)return Y;c=[new ui(U.Y,E)];U=[new Kh(U.Y,E),new nh(U.Y,A)];return{slotId:E,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:c,slotExpirationTriggers:U,mY:"core",clientMetadata:new zG([new pm(T({slotId:E,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,mY:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:c,slotExpirationTriggers:U}))]),adSlotLoggingData:d}}; rr3=function(U,Y,A,c,d){var T=!Y.hideCueRangeMarker;switch(Y.kind){case "AD_PLACEMENT_KIND_START":return new RW(U.Y,A);case "AD_PLACEMENT_KIND_MILLISECONDS":return U=MdX(Y,c),U instanceof u?U:d(U.Mt,T);case "AD_PLACEMENT_KIND_END":return new xm(U.Y,A,T);default:return new u("Cannot construct entry trigger",{kind:Y.kind})}}; L03=function(U,Y,A,c,d){return rr3(U,Y,A,c,function(T,E){return new AIv(U.Y,A,T,E,d)})}; LJ=function(U,Y,A,c){return rr3(U,Y,A,c,function(d,T){return new Z$(U.Y,A,d,T)})}; ru=function(U,Y,A,c,d,T,E){U=[new Ul(U.Y,Y)];return{slotId:Y,slotType:A,slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:U,slotExpirationTriggers:d,mY:"core",clientMetadata:new zG([new pm(E({slotId:Y,slotType:A,slotPhysicalPosition:1,mY:"core",slotEntryTrigger:c,slotFulfillmentTriggers:U,slotExpirationTriggers:d}))]),adSlotLoggingData:T}}; lc=function(U,Y){g.p.call(this);this.xE=U;this.Y=Y;this.eventCount=0}; PZ=function(U,Y,A,c){lc.call(this,U,Y);this.xE=U;this.Gn=A;this.context=c}; VV=function(){this.Y=new Map}; vZ=function(U,Y){var A=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=U;this.result=Y.result;this.error=Y.error;Y.promise&&Y.promise.then(function(c){$k(A,c)},function(c){A.qU(c)})}; WZ=function(U){if(HZ(U)){if(U instanceof vZ)return U;if(GI(U))return new vZ("wait",{promise:U})}return new vZ("done",{result:U})}; wu=function(){return new vZ("wait",{})}; ic=function(U){return new vZ("fail",{error:U})}; J9=function(U){try{return WZ(U())}catch(Y){return ic(Y)}}; jc=function(U,Y){var A=wu();U.onSuccess.push(function(c){try{var d=Y(c);$k(A,d)}catch(T){A.qU(T)}}); U.onFailure.push(function(c){A.qU(c)}); F9(U);return A}; NN=function(U,Y){var A=wu();U.onSuccess.push(function(c){$k(A,c)}); U.onFailure.push(function(c){try{var d=Y(c);$k(A,d)}catch(T){A.qU(T)}}); F9(U);return A}; lTX=function(U,Y){var A=wu();U.onSuccess.push(function(c){try{Y(),$k(A,c)}catch(d){A.qU(d)}}); U.onFailure.push(function(c){try{Y(),A.qU(c)}catch(d){A.qU(d)}}); F9(U)}; $k=function(U,Y){if(HZ(Y)){if(GI(Y)){Y.then(function(A){$k(U,A)},function(A){U.qU(A)}); return}if(Y instanceof vZ){jc(Y,function(A){$k(U,A)}); NN(Y,function(A){U.qU(A)}); return}}U.currentState="done";U.result=Y;F9(U)}; F9=function(U){if(U.currentState==="done"){var Y=U.onSuccess;U.onSuccess=[];U.onFailure=[];Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next())A=A.value,A(U.result)}else if(U.currentState==="fail")for(Y=U.onFailure,U.onSuccess=[],U.onFailure=[],Y=g.J(Y),A=Y.next();!A.done;A=Y.next())A=A.value,A(U.error)}; t9=function(U){return function(){return PT8(U.apply(this,g.SS.apply(0,arguments)))}}; ec=function(U){return WZ(U).wait()}; PT8=function(U){return J9(function(){return BZ(U,U.next())})}; BZ=function(U,Y){return Y.done?WZ(Y.value):NN(jc(Y.value.Ny,function(A){return BZ(U,U.next(A))}),function(A){return BZ(U,U.throw(A))})}; ViV=function(U,Y){if(U.length===0)return WZ(NaN);var A=wu(),c=U.length;U.forEach(function(d,T){lTX(WZ(d),function(){A.currentState==="wait"&&(Y!==void 0&&Y(T)&&A.currentState==="wait"?A.resolve(T):(--c,c===0&&A.resolve(NaN)))})}); return A}; $88=function(U){return U.map(function(Y){return WZ(Y)})}; kk=function(U){var Y=U.hours||0;var A=U.minutes||0,c=U.seconds||0;Y=c+A*60+Y*3600+(U.days||0)*86400+(U.weeks||0)*604800+(U.months||0)*2629800+(U.years||0)*31557600;Y<=0?Y={hours:0,minutes:0,seconds:0}:(U=Y,Y=Math.floor(U/3600),U%=3600,A=Math.floor(U/60),c=Math.floor(U%60),Y={hours:Y,minutes:A,seconds:c});var d=Y.hours===void 0?0:Y.hours;A=Y.minutes===void 0?0:Y.minutes;U=Y.seconds===void 0?0:Y.seconds;c=d>0;Y=[];if(c){d=(new Intl.NumberFormat("en-u-nu-latn")).format(d);var T=["fr"],E="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(" "); d="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(X9)?d.replace(",","\u00a0"):T.includes(X9)?d.replace(",","\u202f"):E.includes(X9)?d.replace(",","."):d;Y.push(d)}c=c===void 0?!1:c;A=(["af","be","lt"].includes(X9)||c)&&A<10?vqY().format(A):(new Intl.NumberFormat("en-u-nu-latn")).format(A);Y.push(A);A=vqY().format(U);Y.push(A);A=":";"da fi id si sr sr-Latn".split(" ").includes(X9)&&(A=".");return Y.join(A)}; vqY=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; HHV=function(U,Y){var A,c;U=((A=U.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(c=A.videoAuthorizationToken)==null?void 0:c.credentialTransferTokens)||[];for(A=0;AY;U=A}else U=!1;return U}; g.yV=function(U,Y){return U.ZG+"timedtext_video?ref=player&v="+Y.videoId}; g.fTY=function(U){var Y=this;this.videoData=U;U={};this.Y=(U.c1a=function(){var A=[];if(g.mB.isInitialized()){var c="";Y.videoData&&Y.videoData.iO&&(c=Y.videoData.iO+("&r1b="+Y.videoData.clientPlaybackNonce));var d={};c=(d.atr_challenge=c,d);D5("bg_v",void 0,"player_att");(c=sd3(c))?(D5("bg_s",void 0,"player_att"),A.push("r1a="+c)):(D5("bg_e",void 0,"player_att"),A.push("r1c=2"))}else D5("bg_e",void 0,"player_att"),window.trayride||window.botguard?A.push("r1c=1"):A.push("r1c=4");A.push("r1d="+g.mB.getState()); return A.join("&")},U.c6a=function(A){return"r6a="+(Number(A.c)^PX())},U.c6b=function(A){return"r6b="+(Number(A.c)^Number(g.DQ("CATSTAT",0)))},U); this.videoData&&this.videoData.iO?this.gC=Af(this.videoData.iO):this.gC={}}; g.hhV=function(U){if(U.videoData&&U.videoData.iO){for(var Y=[U.videoData.iO],A=g.J(Object.keys(U.Y)),c=A.next();!c.done;c=A.next())c=c.value,U.gC[c]&&U.Y[c]&&(c=U.Y[c](U.gC))&&Y.push(c);return Y.join("&")}return null}; g.nJ=function(U,Y){x8X(U,{waY:g.H_(Y.experiments,"bg_vm_reinit_threshold"),cspNonce:Y.cspNonce,ZG:Y.ZG||""})}; SjS=function(){var U=XMLHttpRequest.prototype.fetch;return!!U&&U.length===3}; Mi4=function(U){U=U[z[32]](z[15]);Dw[z[29]](U,1);Dw[z[41]](U,46);Dw[z[44]](U,30);Dw[z[29]](U,3);Dw[z[41]](U,45);Dw[z[44]](U,59);Dw[z[29]](U,1);Dw[z[41]](U,8);Dw[z[29]](U,1);return U[z[49]](z[15])}; p_X=function(U){bH3=2592E3*(U||1)}; If=function(U){U=U===void 0?bH3:U;if(U>0&&!(IG9()>(0,g.y)()-U*1E3))return 0;U=g.hu("yt-player-quality");if(typeof U==="string"){if(U=g.mZ[U],U>0)return U}else if(U instanceof Object)return U.quality;return 0}; uc=function(){var U=g.hu("yt-player-proxima-pref");return U==null?null:U}; QdX=function(){var U=g.hu("yt-player-quality");if(U instanceof Object&&U.quality&&U.previousQuality){if(U.quality>U.previousQuality)return 1;if(U.quality0&&Y[0]?U.getAutoplayPolicy(Y[0]):U.getAutoplayPolicy("mediaelement");if(D8l[A])return D8l[A]}}catch(c){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; cz=function(U){return U.Ie||U.Vz||U.mutedAutoplay}; ITY=function(U,Y){return cz(U)?Y!==1&&Y!==2&&Y!==0?"AUTOPLAY_STATUS_UNAVAILABLE":U.r_?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; uAY=function(U,Y,A){var c=Y.L();U.thirdParty||(U.thirdParty={});c.ancestorOrigins&&(U.thirdParty.embeddedPlayerContext=Object.assign({},U.thirdParty.embeddedPlayerContext,{ancestorOrigins:c.ancestorOrigins}));c.S("embeds_enable_autoplay_and_visibility_signals")&&(c.jL!=null&&(U.thirdParty.embeddedPlayerContext=Object.assign({},U.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(c.jL)})),c.DM&&(U.thirdParty.embeddedPlayerContext=Object.assign({},U.thirdParty.embeddedPlayerContext,{visibilityFractionSource:c.DM})), U.thirdParty.embeddedPlayerContext=Object.assign({},U.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:At(),autoplayIntended:cz(Y),autoplayStatus:ITY(Y,A)}))}; CT9=function(U,Y){qI(U,2,Y.HK,dW,3);qI(U,3,Y.wy,K0X,3);us(U,4,Y.onesieUstreamerConfig);us(U,9,Y.q0);qI(U,10,Y.fO,TC,3);qI(U,15,Y.reloadPlaybackParams,qjE,3)}; YEX=function(U,Y){qI(U,1,Y.formatId,Ea,3);DA(U,2,Y.startTimeMs);DA(U,3,Y.durationMs);DA(U,4,Y.TT);DA(U,5,Y.wY);qI(U,9,Y.rjJ,Ur9,3);qI(U,11,Y.jTY,os,1);qI(U,12,Y.Mw,os,1)}; Agc=function(U,Y){K5(U,1,Y.videoId);DA(U,2,Y.lmt)}; Ur9=function(U,Y){if(Y.gA)for(var A=0;A>31));DA(U,16,Y.mIn);DA(U,17,Y.detailedNetworkType);DA(U,18,Y.JN);DA(U,19,Y.UM);DA(U,21,Y.W6y);DA(U,23,Y.YQ);DA(U,28,Y.W$);DA(U,29,Y.GzT);DA(U,34,Y.visibility);A=Y.playbackRate;if(A!==void 0){var c=new ArrayBuffer(4);(new Float32Array(c))[0]=A;A=(new Uint32Array(c))[0];if(A!==void 0)for(n5(U,285),yF(U,4),c=0;c<4;)U.view.setUint8(U.pos,A&255),A>>=8,U.pos+=1,c+=1}DA(U,36,Y.HP); qI(U,38,Y.mediaCapabilities,Tl3,3);DA(U,39,Y.r8y);DA(U,40,Y.Y3);DA(U,44,Y.playerState);Ij(U,46,Y.My);DA(U,48,Y.z$);DA(U,50,Y.tD);DA(U,51,Y.Ld);DA(U,54,Y.xf);if(Y.UO)for(A=0;A>31));K5(U,2,Y.message)}; $rv=function(U,Y){DA(U,1,Y.clientState);qI(U,2,Y.MTY,Pnc,1)}; l0E=function(U,Y){us(U,1,Y.OVY);qI(U,2,Y.cen,V8X,3);qI(U,3,Y.coldStartInfo,$rv,3)}; rgS=function(U,Y){DA(U,1,Y.type);us(U,2,Y.value)}; L1V=function(U,Y){K5(U,1,Y.hl);K5(U,12,Y.deviceMake);K5(U,13,Y.deviceModel);DA(U,16,Y.clientName);K5(U,17,Y.clientVersion);K5(U,18,Y.osName);K5(U,19,Y.osVersion)}; vBl=function(U,Y){K5(U,1,Y.name);K5(U,2,Y.value)}; HSc=function(U,Y){K5(U,1,Y.url);if(Y.Rl)for(var A=0;A1&&(this.K=U[1]==="2")}; VP=function(U,Y,A,c,d){this.T=U;this.Y=Y;this.W=A;this.reason=c;this.hs=d===void 0?0:d}; g.$N=function(U,Y,A,c){return new VP(g.mZ[U]||0,g.mZ[Y]||0,A,c)}; Hz=function(U){if(vz&&U.hs)return!1;var Y=g.mZ.auto;return U.T===Y&&U.Y===Y}; Wz=function(U){return GC[U.Y||U.T]||"auto"}; Y74=function(U,Y){Y=g.mZ[Y];return U.T<=Y&&(!U.Y||U.Y>=Y)}; wW=function(U){return"["+U.T+"-"+U.Y+", override: "+(U.W+", reason: "+U.reason+"]")}; iB=function(U,Y,A){this.videoInfos=U;this.Y=Y;this.audioTracks=[];if(this.Y){U=new Set;A==null||A({ainfolen:this.Y.length});Y=g.J(this.Y);for(var c=Y.next();!c.done;c=Y.next())if(c=c.value,!c.b$||U.has(c.b$.id)){var d=void 0,T=void 0,E=void 0;(E=A)==null||E({atkerr:!!c.b$,itag:c.itag,xtag:c.Y,lang:((d=c.b$)==null?void 0:d.name)||"",langid:((T=c.b$)==null?void 0:T.id)||""})}else d=new g.Pz(c.id,c.b$),U.add(c.b$.id),this.audioTracks.push(d);A==null||A({atklen:this.audioTracks.length})}}; Jt=function(){g.p.apply(this,arguments);this.Y=null}; Tt3=function(U,Y,A,c,d,T,E){if(U.Y)return U.Y;var L={},r=new Set,l={};if(Fk(c)){for(var P in c.Y)c.Y.hasOwnProperty(P)&&(U=c.Y[P],l[U.info.Rv]=[U.info]);return l}P=A58(Y,c,L);T&&d({aftsrt:jB(P)});for(var V={},v=g.J(Object.keys(P)),H=v.next();!H.done;H=v.next()){H=H.value;for(var G=g.J(P[H]),F=G.next();!F.done;F=G.next()){F=F.value;var N=F.itag,e=void 0,B=H+"_"+(((e=F.video)==null?void 0:e.fps)||0);V.hasOwnProperty(B)?V[B]===!0?l[H].push(F):L[N]=V[B]:(e=Nc(Y,F,A,c.isLive,r),e!==!0?(E.add(H),L[N]=e, e==="disablevp9hfr"&&(V[B]="disablevp9hfr")):(l[H]=l[H]||[],l[H].push(F),V[B]=!0))}}T&&d({bfflt:jB(l)});for(var f in l)l.hasOwnProperty(f)&&(c=f,l[c]&&l[c][0].pV()&&(l[c]=l[c],l[c]=c53(Y,l[c],L),l[c]=dx4(l[c],L)));T&&Object.keys(L).length>0&&d({rjr:R9(L)});Y=g.J(r.values());for(c=Y.next();!c.done;c=Y.next())(c=A.j.get(c.value))&&--c.kK;T&&d({aftflt:jB(l)});U.Y=g.Zf(l,function(h){return!!h.length}); return U.Y}; oPX=function(U,Y,A,c,d,T,E,L){L=L===void 0?!1:L;if(Y.nU&&E&&E.length>1&&!(Y.cg>0||Y.Z)){for(var r=Y.T||!!d,l=r&&Y.R1?T:void 0,P=A58(Y,c),V=[],v=[],H={},G=0;G0&&v&&d&&(P=[E,A],N=d.concat(v).filter(function(e){return e})); if(N.length&&!Y.Gr){Bz(N,P);if(r){r=[];Y=g.J(N);for(c=Y.next();!c.done;c=Y.next())r.push(c.value.itag);T({hbdfmt:r.join(".")})}return xG(new iB(N,U,l))}N=GXS(Y);N=g.$z(N,L);if(!N){if(V[E])return T=V[E],Bz(T),xG(new iB(T,U,l));r&&T({novideo:1});return a4()}Y.Me&&(N==="1"||N==="1h")&&V[A]&&(E=Xk(V[N]),P=Xk(V[A]),P>E?N=A:P===E&&WZv(V[A])&&(N=A));N==="9"&&V.h&&Xk(V.h)>Xk(V["9"])&&(N="h");Y.i$&&c.isLive&&N==="("&&V.H&&Xk(V["("])<1440&&(N="H");r&&T({vfmly:kN(N)});Y=V[N];if(!Y.length)return r&&T({novfmly:kN(N)}), a4();Bz(Y);return xG(new iB(Y,U,l))}; LZV=function(U,Y){var A=!(!U.m&&!U.M),c=!(!U.mac3&&!U.MAC3),d=!(!U.meac3&&!U.MEAC3);U=!(!U.i&&!U.I);Y.qe=U;return A||c||d||U}; WZv=function(U){U=g.J(U);for(var Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,Y.itag&&wUv.has(Y.itag))return!0;return!1}; lMS=function(U){U=g.J(U);for(var Y=U.next();!Y.done;Y=U.next())if(Y.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; kN=function(U){switch(U){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return U}}; jB=function(U){var Y=[],A;for(A in U)if(U.hasOwnProperty(A)){var c=A;Y.push(kN(c));c=g.J(U[c]);for(var d=c.next();!d.done;d=c.next())Y.push(d.value.itag)}return Y.join(".")}; z04=function(U,Y,A,c,d,T){var E={},L={};g.QY(Y,function(r,l){r=r.filter(function(P){var V=P.itag;if(!P.JB)return L[V]="noenc",!1;if(T.Tk&&P.Rv==="(h"&&T.VJ)return L[V]="lichdr",!1;if(!U.K&&P.Rv==="1e")return L[V]="noav1enc",!1;if(P.Rv==="("||P.Rv==="(h"){if(U.W&&A&&A.flavor==="widevine"){var v=P.mimeType+"; experimental=allowed";(v=!!P.JB[A.flavor]&&!!A.Y[v])||(L[V]=P.JB[A.flavor]?"unspt":"noflv");return v}if(!Rs(U,as.CRYPTOBLOCKFORMAT)&&!U.QJ||U.ov)return L[V]=U.ov?"disvp":"vpsub",!1}return A&&P.JB[A.flavor]&& A.Y[P.mimeType]?!0:(L[V]=A?P.JB[A.flavor]?"unspt":"noflv":"nosys",!1)}); r.length&&(E[l]=r)}); c&&Object.entries(L).length&&d({rjr:R9(L)});return E}; dx4=function(U,Y){var A=ym(U,function(c,d){return d.video.fps>32?Math.min(c,d.video.width):c},Infinity); A32||c.video.widthU.J)return"max"+U.J;if(U.Zf&&Y.Rv==="h"&&Y.video&&Y.video.qualityOrdinal>1080)return"blkhigh264";if(Y.Rv==="(h"&&!A.G)return"enchdr";if((c===void 0?0:c)&&Ye(Y)&&!U.eX)return"blk51live";if((Y.Rv==="MAC3"||Y.Rv==="mac3")&&!U.j)return"blkac3";if((Y.Rv==="MEAC3"||Y.Rv==="meac3")&&!U.K)return"blkeac3";if(Y.Rv==="M"||Y.Rv==="m")return"blkaac51"; if((Y.Rv==="so"||Y.Rv==="sa")&&!U.Pw)return"blkamb";if(!U.Tk&&J_l(Y)&&(!A.K||Y.Rv!=="1e"))return"cbc";if(!A.K&&J_l(Y)&&Y.Rv==="1e")return"cbcav1";if((Y.Rv==="i"||Y.Rv==="I")&&!U.AP)return"blkiamf";var T;if(U.ws&&((T=Y.audio)==null?void 0:T.T)===!0)return"blkvbcabr";var E,L;if(U.yJ&&(Y.Rv==="1"||Y.Rv==="1h"||A.K&&Y.Rv==="1e")&&((E=Y.video)==null?0:E.qualityOrdinal)&&((L=Y.video)==null?void 0:L.qualityOrdinal)>U.yJ)return"av1cap";if((c=A.j.get(Y.Rv))&&c.kK>0)return d.add(Y.Rv),"byerr";var r;if((r=Y.video)== null?0:r.fps>32){if(!A.jX&&!Rs(A,as.FRAMERATE))return"capHfr";if(U.dW&&Y.video.qualityOrdinal>=4320)return"blk8khfr";if(uu(Y)&&U.q5&&Y.JB&&Y.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(U.hs&&Y.hs>U.hs)return"ratecap";U=idY(A,Y);return U!==!0?U:!0}; Bz=function(U,Y){Y=Y===void 0?[]:Y;g.sO(U,function(A,c){var d=c.hs-A.hs;if(!A.pV()||!c.pV())return d;var T=c.video.height*c.video.width-A.video.height*A.video.width;!T&&Y&&Y.length>0&&(A=Y.indexOf(A.Rv)+1,c=Y.indexOf(c.Rv)+1,T=A===0||c===0?c||-1:A-c);T||(T=d);return T})}; g.xN=function(U,Y){this[z[8]]=U;this[z[61]]=Y===void 0?!1:Y;this[z[28]]=this[z[27]]=this[z[35]]=z[15];this[z[6]]={};this[z[23]]=z[15]}; fn=function(U){sa(U);return U[z[28]]}; ht=function(U){return U[z[8]]?U[z[8]][z[50]](z[0]):U[z[35]]===z[0]}; J5V=function(U){sa(U);return g.mT(U[z[6]],function(Y){return Y!==null})}; SB=function(U){sa(U);var Y=decodeURIComponent(U[z[25]](z[38])||z[15])[z[32]](z[22]);return U[z[27]]===z[36]&&Y[z[9]]>1&&!!Y[1]}; Mc=function(U,Y){Y=Y===void 0?!1:Y;sa(U);if(U[z[27]]!==z[36]){var A=U[z[40]]();A[z[13]](z[57],z[20]);return A}var c=U[z[82]]();A=new g.dq(c);var d=U[z[25]](z[74]),T=decodeURIComponent(U[z[25]](z[38])||z[15])[z[32]](z[22]);if(d&&T&&T[z[9]]>1&&T[1])return c=A.Y,U=c[z[11]](/^[^.]*/,z[15]),g.EA(A,(c[z[19]](z[56])===0?z[56]:z[67])+d+z[46]+T[1]+U),A=new g.xN(A[z[1]]()),A[z[13]](z[43],z[20]),A;if(Y)return A=U[z[40]](),A[z[13]](z[43],z[20]),A;d=A.Y[z[45]](z[83]);A.Y[z[45]](z[84])?(g.EA(A,z[73]),c=A[z[1]]()): A.Y[z[45]](z[78])?(g.EA(A,z[37]),c=A[z[1]]()):(A=lZ3(c),Ag(A)&&(c=A));A=new g.xN(c);A[z[13]](z[71],z[20]);d&&A[z[13]](z[7],z[87]);return A}; sa=function(U){if(U[z[8]]){if(!Ag(U[z[8]])&&!U[z[8]][z[50]](z[0]))throw new g.Do(z[77],U[z[8]]);var Y=g.VH(U[z[8]]);U[z[35]]=Y.K;U[z[28]]=Y.Y+(Y.W!=null?z[42]+Y.W:z[15]);var A=Y.T;if(A[z[50]](z[36]))U[z[27]]=z[36],A=A[z[26]](14);else if(A[z[50]](z[24]))U[z[27]]=z[24],A=A[z[26]](13);else if(A[z[50]](z[60])){var c=A[z[19]](z[47],12),d=A[z[19]](z[47],c+1);c>0&&d>0?(U[z[27]]=A[z[26]](0,d),A=A[z[26]](d+1)):(U[z[27]]=A,A=z[15])}else U[z[27]]=A,A=z[15];c=U[z[6]];U[z[6]]=FZc(A);Object[z[21]](U[z[6]],j9c(Y.j.toString())); Object[z[21]](U[z[6]],c);U[z[6]][z[17]]===z[80]&&(delete U[z[6]][z[17]],U[z[27]]+=z[68]);U[z[8]]=z[15];U[z[23]]=z[15];U[z[61]]&&(sa(U),Y=U[z[6]][z[48]]||null)&&(Y=Ntv[0](Y),U[z[13]](z[48],Y))}}; tf4=function(U){sa(U);var Y=U[z[35]]+(U[z[35]]?z[85]:z[65])+U[z[28]]+U[z[27]];if(J5V(U)){var A=[];g.QY(U[z[6]],function(c,d){c!==null&&A[z[16]](d+z[54]+c)}); Y+=z[81]+A[z[49]](z[30])}return Y}; FZc=function(U){U=U[z[32]](z[47]);var Y=0;U[0]||Y++;for(var A={};Y0?e0c(Y,c[z[26]](0,d),c[z[26]](d+1)):c&&(Y[c]=z[15])}return Y}; e0c=function(U,Y,A){if(Y===z[52]){var c;(c=A[z[19]](z[54]))>=0?(Y=z[5]+A[z[26]](0,c),A=A[z[26]](c+1)):(c=A[z[19]](z[10]))>=0&&(Y=z[5]+A[z[26]](0,c),A=A[z[26]](c+3))}U[Y]=A}; bB=function(U){var Y=g.O(U,Bt4)||U[z[2]];U={pM:!1,m5:z[15],Fs:z[15],s:z[15]};if(!Y)return U;Y=Af(Y);U[z[58]]=!0;U[z[88]]=Y[z[23]];U[z[55]]=Y[z[79]];U[z[39]]=Y[z[39]];return U}; pn=function(U,Y,A,c,d,T,E,L,r){this.Js=U;this.startTime=Y;this.duration=A;this.ingestionTime=c;this.sourceURL=d;this.l1=r;this.endTime=Y+A;this.Y=E||0;this.range=T||null;this.pending=L||!1;this.l1=r||null}; g.QP=function(){this.segments=[];this.Y=null;this.T=!0;this.W=""}; XUX=function(U,Y){if(Y>U.Ea())U.segments=[];else{var A=VY(U.segments,function(c){return c.Js>=Y},U); A>0&&U.segments.splice(0,A)}}; ZL=function(U,Y,A,c,d){d=d===void 0?!1:d;this.data=U;this.offset=Y;this.size=A;this.type=c;this.Y=(this.T=d)?0:8;this.dataOffset=this.offset+this.Y}; Oa=function(U){var Y=U.data.getUint8(U.offset+U.Y);U.Y+=1;return Y}; mo=function(U){var Y=U.data.getUint16(U.offset+U.Y);U.Y+=2;return Y}; gW=function(U){var Y=U.data.getInt32(U.offset+U.Y);U.Y+=4;return Y}; yP=function(U){var Y=U.data.getUint32(U.offset+U.Y);U.Y+=4;return Y}; nn=function(U){var Y=U.data;var A=U.offset+U.Y;Y=Y.getUint32(A)*4294967296+Y.getUint32(A+4);U.Y+=8;return Y}; DL=function(U,Y){Y=Y===void 0?NaN:Y;if(isNaN(Y))var A=U.size;else for(A=U.Y;A1?Math.ceil(d*Y):Math.floor(d*Y))}U.skip(1);A=Oa(U)<<16|mo(U);if(A&256){c=A&1;d=A&4;var T=A&512,E=A&1024,L=A&2048;A=yP(U);c&&U.skip(4);d&&U.skip(4);c=(T?4:0)+(E?4:0)+(L?4:0);for(d=0;d1?Math.ceil(E*Y):Math.floor(E*Y)),U.skip(c)}}}; cH=function(U){U=new DataView(U.buffer,U.byteOffset,U.byteLength);return(U=g.Y5(U,0,1836476516))?g.AM(U):NaN}; pUX=function(U){var Y=g.Y5(U,0,1937011556);if(!Y)return null;Y=dz(U,Y.dataOffset+8,1635148593)||dz(U,Y.dataOffset+8,1635135537);if(!Y)return null;var A=dz(U,Y.dataOffset+78,1936995172),c=dz(U,Y.dataOffset+78,1937126244);if(!c)return null;Y=null;if(A)switch(A.skip(4),Oa(A)){default:Y=0;break;case 1:Y=2;break;case 2:Y=1;break;case 3:Y=255}var d=A=null,T=null;if(c=dz(U,c.dataOffset,1886547818)){var E=dz(U,c.dataOffset,1886546020),L=dz(U,c.dataOffset,2037673328);if(!L&&(L=dz(U,c.dataOffset,1836279920), !L))return null;E&&(E.skip(4),A=gW(E)/65536,T=gW(E)/65536,d=gW(E)/65536);U=kX3(L);U=new DataView(U.buffer,U.byteOffset+8,U.byteLength-8);return new Mf4(Y,A,T,d,U)}return null}; dz=function(U,Y,A){for(;Tb(U,Y);){var c=EP(U,Y);if(c.type===A)return c;Y+=c.size}return null}; g.Y5=function(U,Y,A){for(;Tb(U,Y);){var c=EP(U,Y);if(c.type===A)return c;Y=ov(c.type)?Y+8:Y+c.size}return null}; g.zb=function(U){if(U.data.getUint8(U.dataOffset)){var Y=U.data;U=U.dataOffset+4;Y=Y.getUint32(U)*4294967296+Y.getUint32(U+4)}else Y=U.data.getUint32(U.dataOffset+4);return Y}; EP=function(U,Y){var A=U.getUint32(Y),c=U.getUint32(Y+4);return new ZL(U,Y,A,c)}; g.AM=function(U){var Y=U.data.getUint8(U.dataOffset)?20:12;return U.data.getUint32(U.dataOffset+Y)}; Q9V=function(U){U=new ZL(U.data,U.offset,U.size,U.type,U.T);var Y=Oa(U);U.skip(7);var A=yP(U);if(Y===0){Y=yP(U);var c=yP(U)}else Y=nn(U),c=nn(U);U.skip(2);for(var d=mo(U),T=[],E=[],L=0;L122)return!1}return!0}; ov=function(U){return U===1701082227||U===1836019558||U===1836019574||U===1835297121||U===1835626086||U===1937007212||U===1953653094||U===1953653099||U===1836475768}; ZdX=function(U){U.skip(4);return{SyW:DL(U,0),value:DL(U,0),timescale:yP(U),FjJ:yP(U),XfY:yP(U),id:yP(U),U8:DL(U),offset:U.offset}}; g.Odc=function(U){var Y=dz(U,0,1701671783);if(!Y)return null;var A=ZdX(Y),c=A.SyW;A=UP(A.U8);if(U=dz(U,Y.offset+Y.size,1701671783))if(U=ZdX(U),U=UP(U.U8),A&&U){Y=g.J(Object.keys(U));for(var d=Y.next();!d.done;d=Y.next())d=d.value,A[d]=U[d]}return A?new qc(A,c):null}; LI=function(U,Y){for(var A=dz(U,0,Y);A;){var c=A;c.type=1936419184;c.data.setUint32(c.offset+4,1936419184);A=dz(U,A.offset+A.size,Y)}}; g.rz=function(U,Y){for(var A=0,c=[];Tb(U,A);){var d=EP(U,A);d.type===Y&&c.push(d);A=ov(d.type)?A+8:A+d.size}return c}; mxX=function(U,Y){var A=g.Y5(U,0,1937011556),c=g.Y5(U,0,1953654136);if(!A||!c||U.getUint32(A.offset+12)>=2)return null;var d=new DataView(Y.buffer,Y.byteOffset,Y.length),T=g.Y5(d,0,1937011556);if(!T)return null;Y=d.getUint32(T.dataOffset+8);c=d.getUint32(T.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;c=new R04(U.byteLength+Y);Is(c,U,0,A.offset+12);c.data.setInt32(c.offset,2);c.offset+=4;Is(c,U,A.offset+16,A.size-16);Is(c,d,d.byteOffset+T.dataOffset+8,Y);Is(c,U,A.offset+A.size,U.byteLength- (A.offset+A.size));A=g.J([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(d=A.next();!d.done;d=A.next())d=g.M(g.Y5(U,0,d.value)),c.data.setUint32(d.offset,d.size+Y);U=g.Y5(c.data,0,1953654136);c.data.setUint32(U.offset+16,2);return c.data}; gP8=function(U){var Y=g.Y5(U,0,1937011556);if(!Y)return null;var A=U.getUint32(Y.dataOffset+12);if(A!==1701733217&&A!==1701733238)return null;Y=dz(U,Y.offset+24+(A===1701733217?28:78),1936289382);if(!Y)return null;A=dz(U,Y.offset+8,1935894637);if(!A||U.getUint32(A.offset+12)!==1667392371)return null;Y=dz(U,Y.offset+8,1935894633);if(!Y)return null;Y=dz(U,Y.offset+8,1952804451);if(!Y)return null;A=new Uint8Array(16);for(var c=0;c<16;c++)A[c]=U.getInt8(Y.offset+16+c);return A}; lO=function(U,Y){this.Y=U;this.pos=0;this.start=Y||0}; PH=function(U){return U.pos>=U.Y.byteLength}; Gb=function(U,Y,A){var c=new lO(A);if(!V_(c,U))return!1;c=$5(c);if(!vH(c,Y))return!1;for(U=0;Y;)Y>>>=8,U++;Y=c.start+c.pos;var d=HH(c,!0);c=U+(c.start+c.pos-Y)+d;c=c>9?y5Y(c-9,8):y5Y(c-2,1);U=Y-U;A.setUint8(U++,236);for(Y=0;YA;d++)A=A*256+Fe(U),c*=128;return Y?A-c:A}; wz=function(U){var Y=HH(U,!0);U.pos+=Y}; IMl=function(U){if(!vH(U,440786851,!0))return null;var Y=U.pos;HH(U,!1);var A=HH(U,!0)+U.pos-Y;U.pos=Y+A;if(!vH(U,408125543,!1))return null;HH(U,!0);if(!vH(U,357149030,!0))return null;var c=U.pos;HH(U,!1);var d=HH(U,!0)+U.pos-c;U.pos=c+d;if(!vH(U,374648427,!0))return null;var T=U.pos;HH(U,!1);var E=HH(U,!0)+U.pos-T,L=new Uint8Array(A+12+d+E),r=new DataView(L.buffer);L.set(new Uint8Array(U.Y.buffer,U.Y.byteOffset+Y,A));r.setUint32(A,408125543);r.setUint32(A+4,33554431);r.setUint32(A+8,4294967295); L.set(new Uint8Array(U.Y.buffer,U.Y.byteOffset+c,d),A+12);L.set(new Uint8Array(U.Y.buffer,U.Y.byteOffset+T,E),A+12+d);return L}; jx=function(U){var Y=U.pos;U.pos=0;var A=1E6;V_(U,[408125543,357149030,2807729])&&(A=WH(U));U.pos=Y;return A}; u6X=function(U,Y){var A=U.pos;U.pos=0;if(U.Y.getUint8(U.pos)!==160&&!NZ(U)||!vH(U,160))return U.pos=A,NaN;HH(U,!0);var c=U.pos;if(!vH(U,161))return U.pos=A,NaN;HH(U,!0);Fe(U);var d=Fe(U)<<8|Fe(U);U.pos=c;if(!vH(U,155))return U.pos=A,NaN;c=WH(U);U.pos=A;return(d+c)*Y/1E9}; NZ=function(U){if(!KZ9(U)||!vH(U,524531317))return!1;HH(U,!0);return!0}; KZ9=function(U){if(U.Db()){if(!vH(U,408125543))return!1;HH(U,!0)}return!0}; V_=function(U,Y){for(var A=0;A0){var c=j9c(Y.substring(A+1));g.QY(c,function(d,T){this.set(T,d)},U); Y=Y.substring(0,A)}Y=FZc(Y);g.QY(Y,function(d,T){this.set(T,d)},U)}; Cu9=function(U){return U.Pg}; U24=function(U){var Y=U.Pg.GN(),A=[];g.QY(U.Y,function(d,T){A.push(T+"="+d)}); if(!A.length)return Y;var c=A.join("&");U=J5V(U.Pg)?"&":"?";return Y+U+c}; ex=function(U,Y){var A=new g.xN(Y);(Y=A.get("req_id"))&&U.set("req_id",Y);g.QY(U.Y,function(c,d){A["set"](d,null)}); return A}; YqX=function(){this.W=this.T=this.qU=this.timedOut=this.started=this.j=this.Y=0}; BH=function(U){U.j=(0,g.y)();U.started=0;U.timedOut=0;U.qU=0}; Xe=function(U,Y){var A=U.started+U.qU*4;Y&&(A+=U.T);A=Math.max(0,A-3);return Math.pow(1.6,A)}; k5=function(U,Y){U[Y]||(U[Y]=new YqX);return U[Y]}; Rv=function(U){this.X=this.G=this.K=this.W=0;this.Z=this.J=!1;this.Y=U;this.T=U.clone()}; AxS=function(U,Y,A){if(ht(U.Y))return!1;var c=k5(A,fn(U.Y));if(c.timedOut<1&&c.qU<1)return!1;c=c.timedOut+c.qU;U=av(U,Y);A=k5(A,fn(U));return A.timedOut+A.qU+01?Y=Y.QB:(A=k5(A,sP(U,U.Wl(Y,A),Y)),Y=Math.max(U.K,A.timedOut)+Y.ut*(U.W-U.K)+.25*U.G,Y=Y>3?1E3*Math.pow(1.6,Y-3):0);return Y===0?!0:U.X+Y<(0,g.y)()}; cxv=function(U,Y,A){U.Y.set(Y,A);U.T.set(Y,A);U.j&&U.j.set(Y,A)}; d2E=function(U,Y,A,c,d){++U.W;Y&&++U.K;fn(A.Pg).startsWith("redirector.")&&(U.Y=U.T.clone(),delete U.j,c.L_&&delete d[fn(U.Y)])}; hM=function(U){return U?(U.itag||"")+";"+(U.lmt||0)+";"+(U.xtags||""):""}; Sx=function(U,Y,A,c){this.initRange=A;this.indexRange=c;this.Y=null;this.W=!1;this.J=0;this.j=this.Mc=this.T=null;this.info=Y;this.Dm=new Rv(U)}; MZ=function(U,Y){this.start=U;this.end=Y;this.length=Y-U+1}; bO=function(U){U=U.split("-");var Y=Number(U[0]),A=Number(U[1]);if(!isNaN(Y)&&!isNaN(A)&&U.length===2&&(U=new MZ(Y,A),!isNaN(U.start)&&!isNaN(U.end)&&!isNaN(U.length)&&U.length>0))return U}; pI=function(U,Y){return new MZ(U,U+Y-1)}; Th3=function(U){return U.end==null?{start:String(U.start)}:{start:String(U.start),end:String(U.end)}}; Q_=function(U){if(!U)return new MZ(0,0);var Y=Number(U.start);U=Number(U.end);if(!isNaN(Y)&&!isNaN(U)&&(Y=new MZ(Y,U),Y.length>0))return Y}; ZY=function(U,Y,A,c,d,T,E,L,r,l,P,V){c=c===void 0?"":c;this.type=U;this.Y=Y;this.range=A;this.source=c;this.w9=P;this.clipId=V===void 0?"":V;this.X=[];this.Z="";this.Js=-1;this.Pw=this.Hw=0;this.Z=c;this.Js=d>=0?d:-1;this.startTime=T||0;this.duration=E||0;this.T=L||0;this.W=r>=0?r:this.range?this.range.length:NaN;this.K=this.range?this.T+this.W===this.range.length:l===void 0?!!this.W:l;this.range?(this.j=this.startTime+this.duration*this.T/this.range.length,this.G=this.duration*this.W/this.range.length, this.J=this.j+this.G):Ee3(this)}; Ee3=function(U){oeY?(U.j=U.startTime+Math.min(U.duration*U.T/U.Y.info.hs,U.duration),U.G=Math.min(U.duration,U.duration*U.W/U.Y.info.hs),U.J=Math.min(U.j+U.G,U.startTime+U.duration)):(U.j=U.startTime,U.G=U.duration,U.J=U.j+U.G)}; zdS=function(U,Y,A){var c=!(!Y||Y.Y!==U.Y||Y.type!==U.type||Y.Js!==U.Js);return A?c&&!!Y&&(U.range&&Y.range?Y.range.end===U.range.end:Y.range===U.range)&&Y.T+Y.W===U.T+U.W:c}; OP=function(U){return U.type===1||U.type===2}; mR=function(U){return U.type===3||U.type===6}; gz=function(U,Y){return U.Y===Y.Y?U.range&&Y.range?U.range.start+U.T+U.W===Y.range.start+Y.T:U.Js===Y.Js?U.T+U.W===Y.T:U.Js+1===Y.Js&&Y.T===0&&U.K:!1}; rxl=function(U,Y){return U.Js!==Y.Js&&Y.Js!==U.Js+1||U.type!==Y.type?!1:gz(U,Y)?!0:Math.abs(U.j-Y.j)<=1E-6&&U.Js===Y.Js?!1:LUX(U,Y)}; LUX=function(U,Y){return gz(U,Y)||Math.abs(U.J-Y.j)<=1E-6||U.Js+1===Y.Js&&Y.T===0&&U.K?!0:!1}; y_=function(U){return U.Js+(U.K?1:0)}; lFX=function(U){U.length===1||g.gv(U,function(A){return!!A.range}); for(var Y=1;Y=Y.range.start+Y.T&&U.range.start+U.T+U.W<=Y.range.start+Y.T+Y.W:U.Js===Y.Js&&U.T>=Y.T&&(U.T+U.W<=Y.T+Y.W||Y.K)}; WU3=function(U,Y){return U.Y!==Y.Y?!1:U.type===4&&Y.type===3&&U.Y.kH()?(U=U.Y.Ag(U),Cx(U,function(A){return WU3(A,Y)})):U.Js===Y.Js&&!!Y.W&&Y.T+Y.W>U.T&&Y.T+Y.W<=U.T+U.W}; DY=function(U,Y){var A=Y.Js;U.Z="updateWithSegmentInfo";U.Js=A;if(U.startTime!==Y.startTime||U.duration!==Y.duration)U.startTime=Y.startTime+U.Hw,U.duration=Y.duration,Ee3(U)}; Iv=function(U,Y){var A=this;this.py=U;this.j=this.Y=null;this.K=this.rY=NaN;this.Wl=this.requestId=null;this.o5={TKv:function(){return A.range}}; this.Dm=U[0].Y.Dm;this.T=Y||"";this.py[0].range&&this.py[0].W>0&&(PMX(U)?(this.range=lFX(U),this.W=this.range.length):(this.range=this.py[this.py.length-1].range,this.W=V1S(U)))}; uO=function(U){return!OP(U.py[U.py.length-1])}; KI=function(U){return U.py[U.py.length-1].type===4}; g.qZ=function(U,Y,A){A=U.Wl===null?U.Dm.Wl(Y,A,U.py[0].type):U.Wl;if(U.Y){Y=A?Mc(U.Y,Y.kU):U.Y;var c=new tM(Y);c.get("alr")||c.set("alr","yes");U.T&&q7V(c,U.T)}else/http[s]?:\/\//.test(U.T)?c=new tM(new g.xN(U.T)):(c=x5(U.Dm,A,Y),U.T&&q7V(c,U.T));(Y=U.range)?c.set("range",Y.toString()):U.py[0].Y.Sa()&&U.py.length===1&&U.py[0].T&&c.set("range",U.py[0].T+"-");U.requestId&&c.set("req_id",U.requestId);isNaN(U.rY)||c.set("headm",U.rY.toString());isNaN(U.K)||c.set("mffa",U.K+"ms");U.urlParams&&g.QY(U.urlParams, function(d,T){c.set(T,d)}); return c}; wdc=function(U){if(U.range)return U.W;U=U.py[0];return Math.round(U.G*U.Y.info.hs)}; iwX=function(U,Y){return Math.max(0,U.py[0].j-Y)}; CI=function(U,Y,A,c,d,T){T=T===void 0?0:T;Sx.call(this,U,Y,c,void 0);this.K=A;this.Pl=T;this.index=d||new g.QP}; JxV=function(U,Y,A,c,d){this.Js=U;this.startSecs=Y;this.LV=A;this.Y=c||NaN;this.T=d||NaN}; UH=function(U,Y,A){for(;U;U=U.parentNode)if(U.attributes&&(!A||U.nodeName===A)){var c=U.getAttribute(Y);if(c)return c}return""}; Y2=function(U,Y){for(;U;U=U.parentNode){var A=U.getElementsByTagName(Y);if(A.length>0)return A[0]}return null}; FUX=function(U){if(!U)return 0;var Y=U.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return Y?(Number(Y[2])|0)*3600+(Number(Y[4])|0)*60+(Number(Y[6])|0):Number(U)|0}; jnX=function(U){return U.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?U+"Z":U}; Aw=function(){this.Y=[];this.T=null;this.J=0;this.W=[];this.K=!1;this.G="";this.j=-1}; Nhc=function(U){var Y=U.W;U.W=[];return Y}; t1S=function(){this.j=[];this.Y=null;this.T={};this.W={}}; ku8=function(U,Y){var A=[];Y=Array.from(Y.getElementsByTagName("SegmentTimeline"));Y=g.J(Y);for(var c=Y.next();!c.done;c=Y.next()){c=c.value;var d=c.parentNode.parentNode,T=null;d.nodeName==="Period"?T=edX(U):d.nodeName==="AdaptationSet"?(d=d.getAttribute("id")||d.getAttribute("mimetype")||"",T=BhE(U,d)):d.nodeName==="Representation"&&(d=d.getAttribute("id")||"",T=Xdl(U,d));if(T==null)return;T.update(c);g.NF(A,Nhc(T))}g.NF(U.j,A);kVE(U.j,function(E){return E.startSecs*1E3+E.Y})}; RdV=function(U){U.Y&&(U.Y.Y=[]);g.QY(U.T,function(Y){Y.Y=[]}); g.QY(U.W,function(Y){Y.Y=[]})}; edX=function(U){U.Y||(U.Y=new Aw);return U.Y}; BhE=function(U,Y){U.T[Y]||(U.T[Y]=new Aw);return U.T[Y]}; Xdl=function(U,Y){U.W[Y]||(U.W[Y]=new Aw);return U.W[Y]}; dO=function(U){var Y=U===void 0?{}:U;U=Y.Pl===void 0?0:Y.Pl;var A=Y.zI===void 0?!1:Y.zI;var c=Y.x$===void 0?0:Y.x$;var d=Y.u1===void 0?0:Y.u1;var T=Y.Gh===void 0?Infinity:Y.Gh;var E=Y.FZ===void 0?0:Y.FZ;var L=Y.yT===void 0?!1:Y.yT;Y=Y.NP===void 0?!1:Y.NP;g.QP.call(this);this.ZT=this.yK=-1;this.zl=U;this.x$=c;this.zI=A;this.u1=d;this.Gh=T;this.FZ=E;((this.yT=L)||isFinite(T)&&this.Gh>0)&&A&&cM&&(this.T=!1,this.W="postLive");this.NP=Y}; Tp=function(U,Y){return xz(U.segments,function(A){return Y-A.Js})}; EH=function(U,Y,A){A=A===void 0?{}:A;CI.call(this,U,Y,"",void 0,void 0,A.Pl||0);this.index=new dO(A)}; o7=function(U,Y,A){Sx.call(this,U,Y);this.K=A;U=this.index=new g.QP;U.T=!1;U.W="d"}; aFV=function(U,Y,A){var c=U.index.H9(Y),d=U.index.getStartTime(Y),T=U.index.getDuration(Y);A?T=A=0:A=U.info.hs*T;return new Iv([new ZY(3,U,void 0,"otfCreateRequestInfoForSegment",Y,d,T,0,A)],c)}; x29=function(U,Y){if(!U.index.isLoaded()){var A=[],c=Y.j;Y=Y.K.split(",").filter(function(P){return P.length>0}); for(var d=0,T=0,E=0,L=/^(\d+)/,r=/r=(\d+)/,l=0;lc)return null}else if(A&&(A=U.Y,c=Y.Y,A=!(c.jI.length?k4l(A,c.jI[0]):1)),A)return null;A=new ZY(U.info.type,U.info.Y,U.info.range,U.info.Z,U.info.Js,U.info.startTime,U.info.duration,U.info.T,U.info.W,U.info.K,U.info.w9,U.info.clipId);c=Y.info;A.W+=c.W;A.range&&(A.G+=c.G);A.J=c.J;A.K=c.K;c=new is;JI(c,U.Y);JI(c,Y.Y);A=new zp(A,c);A.T= Y.T||U.T;A.W=U.W!==-1?U.W:Y.W;A.j=U.j!==-1?U.j:Y.j;return A}; g.rO=function(U){g.Ax(U.info.Y.info)||U.info.Y.info.Wu();if(U.W!==-1)return U.W;if(U.T&&s9c(U.T))return U.W=s9c(U.T),U.W;if(g.Ax(U.info.Y.info)){var Y=U.AB();for(var A=U.info.Y.Y,c=NaN,d=NaN,T=0;Tb(Y,T);){var E=EP(Y,T);E.type===1936286840?d=E.data.getUint32(E.dataOffset+8):E.type===1836476516?d=g.AM(E):E.type===1952867444&&isNaN(c)&&(c=g.zb(E));T=ov(E.type)?T+8:T+E.size}!d&&A&&(d=cH(A));Y=c/d}else Y=new lO(U.AB()),A=U.K?Y:new lO(new DataView(U.info.Y.Y.buffer)),c=jx(A),A=Y.pos,Y.pos=0,NZ(Y)?vH(Y, 231)?(c=WH(Y)*c/1E9,Y.pos=A,Y=c):(Y.pos=A,Y=NaN):(Y.pos=A,Y=NaN);U.W=Y||U.info.j;return U.W}; hdc=function(U,Y){U.timestampOffset>0&&(Y-=U.timestampOffset);var A=g.rO(U)+Y;fF4(U,A);U.timestampOffset=Y}; fF4=function(U,Y){g.Ax(U.info.Y.info)||U.info.Y.info.Wu();U.W=Y;if(g.Ax(U.info.Y.info)){var A=U.AB();U=U.info.Y.Y;for(var c=NaN,d=NaN,T=0;Tb(A,T);){var E=EP(A,T);isNaN(c)&&(E.type===1936286840?c=E.data.getUint32(E.dataOffset+8):E.type===1836476516&&(c=g.AM(E)));if(E.type===1952867444){!c&&U&&(c=cH(U));var L=g.zb(E);isNaN(d)&&(d=Math.round(Y*c)-L);var r=E;L+=d;if(r.data.getUint8(r.dataOffset)){var l=r.data;r=r.dataOffset+4;l.setUint32(r,Math.floor(L/4294967296));l.setUint32(r+4,L&4294967295)}else r.data.setUint32(r.dataOffset+ 4,L)}T=ov(E.type)?T+8:T+E.size}return!0}A=new lO(U.AB());U=U.K?A:new lO(new DataView(U.info.Y.Y.buffer));c=jx(U);U=A.pos;A.pos=0;if(NZ(A)&&vH(A,231))if(d=HH(A,!0),Y=Math.floor(Y*1E9/c),Math.ceil(Math.log(Y)/Math.log(2)/8)>d)Y=!1;else{for(c=d-1;c>=0;c--)A.Y.setUint8(A.pos+c,Y&255),Y>>>=8;A.pos=U;Y=!0}else Y=!1;return Y}; PM=function(U,Y){Y=Y===void 0?!1:Y;var A=lq(U);U=Y?0:U.info.G;return A||U}; lq=function(U){g.Ax(U.info.Y.info)||U.info.Y.info.Wu();if(U.T&&U.info.type===6)return U.T.Pl;if(g.Ax(U.info.Y.info)){var Y=U.AB();var A=0;Y=g.rz(Y,1936286840);Y=g.J(Y);for(var c=Y.next();!c.done;c=Y.next())c=Q9V(c.value),A+=c.g2[0]/c.timescale;A=A||NaN;if(!(A>=0))a:{A=U.AB();Y=U.info.Y.Y;for(var d=c=0,T=0;Tb(A,c);){var E=EP(A,c);if(E.type===1836476516)d=g.AM(E);else if(E.type===1836019558){!d&&Y&&(d=cH(Y));if(!d){A=NaN;break a}var L=g.M(dz(E.data,E.dataOffset,1953653094)),r=L;L=d;var l=g.M(dz(r.data, r.dataOffset,1952868452));r=g.M(dz(r.data,r.dataOffset,1953658222));var P=gW(l);gW(l);P&2&&gW(l);l=P&8?gW(l):0;var V=gW(r),v=V&1;P=V&4;var H=V&256,G=V&512,F=V&1024;V&=2048;var N=yP(r);v&&gW(r);P&&gW(r);for(var e=v=0;e2048?"":Y.indexOf("https://")===0?Y:""}; WM=function(U,Y,A){Y.match(D23);return U(Y,A).then(function(c){var d=g.neX(c.xhr);return d?WM(U,d,A):c.xhr})}; FR=function(U,Y,A){U=U===void 0?"":U;Y=Y===void 0?null:Y;A=A===void 0?!1:A;g.l6.call(this);var c=this;this.sourceUrl=U;this.isLivePlayback=A;this.Zf=this.duration=0;this.isPremiere=this.yT=this.j=this.isLiveHeadPlayable=this.isLive=this.T=!1;this.Gh=this.u1=0;this.isOtf=this.Sc=!1;this.yJ=(0,g.y)();this.Pw=Infinity;this.Y={};this.W=new Map;this.state=this.ZA=0;this.timeline=null;this.isManifestless=!1;this.ov=[];this.J=null;this.jX=0;this.K="";this.eX=NaN;this.QJ=this.R1=this.timestampOffset=this.G= 0;this.uL=this.VP=NaN;this.qz=0;this.dW=this.X=!1;this.Uv=[];this.kE={};this.Hw=NaN;this.o5={SZv:function(L){wO(c,L)}}; var d;this.Ly=(d=Y)==null?void 0:d.lY("html5_use_network_error_code_enums");IF9=!!Y&&Y.lY("html5_modern_vp9_mime_type");var T;iq=!((T=Y)==null||!T.lY("html5_enable_flush_during_seek"))&&g.yB();var E;Jw=!((E=Y)==null||!E.lY("html5_enable_reset_audio_decoder"))&&g.yB()}; ugv=function(U){return g.mT(U.Y,function(Y){return!!Y.info.video&&Y.info.video.qualityOrdinal>=2160})}; Hd8=function(U){return g.mT(U.Y,function(Y){return!!Y.info.video&&Y.info.video.isHdr()})}; tt=function(U){return g.mT(U.Y,function(Y){return!!Y.info.JB})}; g.KUc=function(U){return g.mT(U.Y,function(Y){return on(Y.info.mimeType)})}; qq3=function(U){return g.mT(U.Y,function(Y){return Y.info.video?Y.info.video.projectionType==="EQUIRECTANGULAR":!1})}; CM8=function(U){return g.mT(U.Y,function(Y){return Y.info.video?Y.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; UO3=function(U){return g.mT(U.Y,function(Y){return Y.info.video?Y.info.video.projectionType==="MESH":!1})}; Y$c=function(U){return g.mT(U.Y,function(Y){return Y.info.video?Y.info.video.stereoLayout===1:!1})}; AX8=function(U){return fcY(U.Y,function(Y){return Y.info.video?Y.H$():!0})}; Fk=function(U){return g.mT(U.Y,function(Y){return ht(Y.Dm.Y)})}; wO=function(U,Y){U.Y[Y.info.id]=Y;U.W.set(hM(g.dh(Y.info,U.Sc)),Y)}; cXc=function(U,Y){return hM({itag:Y.itag,lmt:U.Sc?0:Y.lmt||0,xtags:Y.xtags})}; tw=function(U,Y,A){A=A===void 0?0:A;var c=U.mimeType||"",d=U.itag;var T=U.xtags;d=d?d.toString():"";T&&(d+=";"+T);T=d;if(Eq(c)){var E=U.width||640;d=U.height||360;var L=U.fps,r=U.qualityLabel,l=U.colorInfo,P=U.projectionType,V;U.stereoLayout&&(V=dOX[U.stereoLayout]);var v=geE(U)||void 0;if(l==null?0:l.primaries)var H=T4l[l.primaries]||void 0;E=new gt(E,d,L,P,V,void 0,r,v,H);c=jv(c,E,DM[U.itag||""]);iq&&(c+="; enableflushduringseek=true");Jw&&(c+="; enableresetaudiodecoder=true")}var G;if(Tu(c)){var F= U.audioSampleRate;V=U.audioTrack;F=new ZM(F?+F:void 0,U.audioChannels,U.spatialAudioType,U.isDrc,U.loudnessDb,U.trackAbsoluteLoudnessLkfs,U.audioQuality||"AUDIO_QUALITY_UNKNOWN",U.isVb);V&&(H=V.displayName,d=V.id,V=V.audioIsDefault,H&&(G=new g.Gp(H,d||"",!!V)))}var N;U.captionTrack&&(r=U.captionTrack,V=r.displayName,H=r.vssId,d=r.languageCode,L=r.kind,r=r.id,V&&H&&d&&(N=new OwX(V,H,d,L,U.xtags,r)));V=Number(U.bitrate)/8;H=Number(U.contentLength);d=Number(U.lastModified);r=U.drmFamilies;L=U.type;A= A&&H?H/A:0;U=Number(U.approxDurationMs);if(Y&&r){var e={};r=g.J(r);for(l=r.next();!l.done;l=r.next())(l=Ng[l.value])&&(e[l]=Y[l])}return new I9(T,c,{audio:F,video:E,b$:G,JB:e,hs:V,gk:A,contentLength:H,lastModified:d,captionTrack:N,streamType:L,approxDurationMs:U})}; ev=function(U,Y,A){A=A===void 0?0:A;var c=U.type;var d=U.itag;var T=U.xtags;T&&(d=U.itag+";"+T);if(Eq(c)){var E=(U.size||"640x360").split("x");E=new gt(+E[0],+E[1],+U.fps,U.projection_type,+U.stereo_layout,void 0,U.quality_label,U.eotf,U.primaries);c=jv(c,E,DM[U.itag]);iq&&(c+="; enableflushduringseek=true");Jw&&(c+="; enableresetaudiodecoder=true")}var L;if(Tu(c)){var r=new ZM(+U.audio_sample_rate||void 0,+U.audio_channels||0,U.spatial_audio_type,!!U.drc);U.name&&(L=new g.Gp(U.name,U.audio_track_id, U.isDefault==="1"))}var l;U.caption_display_name&&U.caption_vss_id&&U.caption_language_code&&(l=new OwX(U.caption_display_name,U.caption_vss_id,U.caption_language_code,U.caption_kind,U.xtags,U.caption_id));T=Number(U.bitrate)/8;var P=Number(U.clen),V=Number(U.lmt);A=A&&P?P/A:0;if(Y&&U.drm_families){var v={};for(var H=g.J(U.drm_families.split(",")),G=H.next();!G.done;G=H.next())G=G.value,v[G]=Y[G]}return new I9(d,c,{audio:r,video:E,b$:L,JB:v,hs:T,gk:A,contentLength:P,lastModified:V,captionTrack:l, streamType:U.stream_type,approxDurationMs:Number(U.approx_duration_ms)})}; E0E=function(U){return Cx(U,function(Y){return"FORMAT_STREAM_TYPE_OTF"===Y.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; o03=function(U){return Cx(U,function(Y){return"FORMAT_STREAM_TYPE_OTF"===Y.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; zbX=function(U,Y){return U.timeline?ez(U.timeline.j,Y):U.ov.length?ez(U.ov,Y):[]}; BM=function(U,Y,A){Y=Y===void 0?"":Y;A=A===void 0?"":A;U=new g.xN(U,!0);U.set("alr","yes");A&&(A=Mi4(decodeURIComponent(A)),U[z[13]](Y,encodeURIComponent(A)));return U}; PU3=function(U,Y){var A=UH(Y,"id");A=A.replace(":",";");var c=UH(Y,"mimeType"),d=UH(Y,"codecs");c=d?c+'; codecs="'+d+'"':c;d=Number(UH(Y,"bandwidth"))/8;var T=Number(Y2(Y,"BaseURL").getAttribute(U.K+":contentLength")),E=U.duration&&T?T/U.duration:0;if(Eq(c)){var L=Number(UH(Y,"width"));var r=Number(UH(Y,"height")),l=Number(UH(Y,"frameRate")),P=Ld8(UH(Y,U.K+":projectionType"));a:switch(UH(Y,U.K+":stereoLayout")){case "layout_left_right":var V=1;break a;case "layout_top_bottom":V=2;break a;default:V= 0}L=new gt(L,r,l,P,V)}if(Tu(c)){var v=Number(UH(Y,"audioSamplingRate"));var H=Number(UH(Y.getElementsByTagName("AudioChannelConfiguration")[0],"value"));r=rXc(UH(Y,U.K+":spatialAudioType"));v=new ZM(v,H,r);a:{H=UH(Y,"lang")||"und";if(r=Y2(Y,"Role"))if(P=UH(r,"value")||"",g.Df(lrl,P)){r=H+"."+lrl[P];l=P==="main";U=UH(Y,U.K+":langName")||H+" - "+P;H=new g.Gp(U,r,l);break a}H=void 0}}if(Y=Y2(Y,"ContentProtection"))if(Y.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var G={};for(Y= Y.firstChild;Y!=null;Y=Y.nextSibling)Y instanceof Element&&/SystemURL/.test(Y.nodeName)&&(U=Y.getAttribute("type"),r=Y.textContent,U&&r&&(G[U]=r.trim()))}else G=void 0;return new I9(A,c,{audio:v,video:L,b$:H,JB:G,hs:d,gk:E,contentLength:T})}; Ld8=function(U){switch(U){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"}}; rXc=function(U){switch(U){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"}}; $O3=function(U,Y){Y=Y===void 0?"":Y;U.state=1;U.yJ=(0,g.y)();return yxE(Y||U.sourceUrl).then(function(A){if(!U.Ky()){U.ZA=A.status;A=A.responseText;var c=new DOMParser;A=V7(c,f_8(A),"text/xml").getElementsByTagName("MPD")[0];U.Pw=FUX(UH(A,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(A.attributes){c=g.J(A.attributes);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.value==="http://youtube.com/yt/2012/10/10"){c=d.name.split(":")[1];break b}}c=""}U.K=c;U.isLive=U.Pw=U.Pw}; HQ9=function(U){U.J&&U.J.stop()}; VUX=function(U){var Y=U.Pw;isFinite(Y)&&(k2(U)?U.refresh():(Y=Math.max(0,U.yJ+Y-(0,g.y)()),U.J||(U.J=new g.IM(U.refresh,Y,U),g.Z(U,U.J)),U.J.start(Y)))}; G3c=function(U){U=U.Y;for(var Y in U){var A=U[Y].index;if(A.isLoaded())return A.Ea()+1}return 0}; R7=function(U){return U.R1?U.R1-(U.G||U.timestampOffset):0}; a7=function(U){return U.QJ?U.QJ-(U.G||U.timestampOffset):0}; x2=function(U){if(!isNaN(U.eX))return U.eX;var Y=U.Y,A;for(A in Y){var c=Y[A].index;if(c.isLoaded()&&!on(Y[A].info.mimeType)){Y=0;for(A=c.n2();A<=c.Ea();A++)Y+=c.getDuration(A);Y/=c.Ud();Y=Math.round(Y/.5)*.5;c.Ud()>10&&(U.eX=Y);return Y}if(U.isLive&&(c=Y[A],c.Pl))return c.Pl}return NaN}; Wd3=function(U,Y){U=S9V(U.Y,function(c){return c.index.isLoaded()}); if(!U)return NaN;U=U.index;var A=U.Qz(Y);return U.getStartTime(A)===Y?Y:A=0&&d.segments.splice(T,1)}}}; iQl=function(U){for(var Y in U.Y)on(U.Y[Y].info.mimeType)||XUX(U.Y[Y].index,Infinity)}; hw=function(U,Y,A){for(var c in U.Y){var d=U.Y[c].index,T=Y,E=A;d.zI&&(T&&(d.yK=Math.max(d.yK,T)),E&&(d.ZT=Math.max(d.ZT||0,E)))}A&&(U.Hw=A/1E3)}; JXX=function(U){U.QJ=0;U.R1=0;U.qz=0}; Sv=function(U){return U.dW&&U.isManifestless?U.isLiveHeadPlayable:U.isLive}; jv=function(U,Y,A){Mg===null&&(Mg=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(IF9&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Mg||A!=="9"&&A!=="("?Mg||A!=="9h"&&A!=="(h"||(U='video/webm; codecs="vp9.2"'):U='video/webm; codecs="vp9"',U;if(!Mg&&!bq||U!=='video/webm; codecs="vp9"'&&U!=='video/webm; codecs="vp9.2"')return U; A="00";var c="08",d="01",T="01",E="01";U==='video/webm; codecs="vp9.2"'&&(A="02",c="10",Y.primaries==="bt2020"&&(E=d="09"),Y.Y==="smpte2084"&&(T="16"),Y.Y==="arib-std-b67"&&(T="18"));return'video/webm; codecs="'+["vp09",A,"51",c,"01",d,T,E,"00"].join(".")+'"'}; QZ=function(U,Y,A){U=""+U+(Y>49?"p60":Y>32?"p48":"");Y=KJ()[U];if(Y!=null&&Y>0)return Y;Y=p1.get(U);if(Y!=null&&Y>0)return Y;A=A==null?void 0:A.get(U);return A!=null&&A>0?A:8192}; Fd3=function(U){this.Ww=U;this.qz=this.Gr=this.QJ=this.K=this.j=this.Ly=this.kE=this.Pw=!1;this.G=this.J=0;this.Zf=!1;this.Hw=!0;this.dW=!1;this.cg=0;this.f_=this.ov=!1;this.Me=!0;this.Uv=this.eX=!1;this.Y={};this.ws=this.Lr=this.disableAv1=this.VJ=this.qe=this.qI=this.i$=this.T=this.Z=!1;this.Va=this.Ww.S("html5_disable_aac_preference");this.mH=Infinity;this.jX=0;this.R1=this.Ww.O3();this.Tk=this.Ww.experiments.lY("html5_enable_vp9_fairplay");this.o2=this.Ww.S("html5_force_av1_for_testing");this.yJ= g.H_(this.Ww.experiments,"html5_av1_ordinal_cap");this.q5=this.Ww.S("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.nU=this.Ww.S("html5_account_onesie_format_selection_during_format_filter");this.hs=g.H_(this.Ww.experiments,"html5_max_byterate");this.AP=this.Ww.S("html5_enable_iamf_audio");this.tb=this.Ww.experiments.lY("html5_allow_capability_merge");this.KU=this.Ww.S("html5_enable_encrypted_av1")}; GXS=function(U){if(U.kE)return["f"];if(g.mm("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var Y=["9h","9","h","8"];U.KU&&Y.push("1e");Y=Y.concat(["(h","(","H","*"]);U.ov&&(Y.unshift("1"),Y.unshift("1h"));U.Gr&&Y.unshift("h");U.X&&(Y=(jhv[U.X]||[U.X]).concat(Y));return Y}; r58=function(U){var Y=["o","a","A"];U.jX===1&&(U.j&&(Y=["mac3","MAC3"].concat(Y)),U.K&&(Y=["meac3","MEAC3"].concat(Y)),U.AP&&(Y=["i","I"].concat(Y)));U.Pw&&(Y=["so","sa"].concat(Y));!U.qz||U.QJ||U.W||U.Va||Y.unshift("a");U.W&&(Y=(jhv[U.W]||[U.W]).concat(Y));return Y}; Z7=function(U,Y,A,c){Y=Y===void 0?{}:Y;if(c===void 0?0:c)return Y.disabled=1,0;if(Rs(U.K,as.AV1_CODECS)&&Rs(U.K,as.HEIGHT)&&Rs(U.K,as.BITRATE))return Y.isCapabilityUsable=1,8192;try{var d=yrE();if(d)return Y.localPref=d}catch(L){}c=1080;d=navigator.hardwareConcurrency;d<=2&&(c=480);Y.coreCount=d;if(d=g.H_(U.experiments,"html5_default_av1_threshold"))c=Y["default"]=d;!U.S("html5_disable_av1_arm_check")&&WIv()&&(Y.isArm=1,c=240);if(U=U.K.Hw)Y.mcap=U,c=Math.max(c,U);if(A){var T,E;if(U=(T=A.videoInfos.find(function(L){return Cd(L)}))== null?void 0:(E=T.T)==null?void 0:E.powerEfficient)c=8192,Y.isEfficient=1; A=A.videoInfos[0].video;T=Math.min(QZ("1",A.fps),QZ("1",30));Y.perfCap=T;c=Math.min(c,T);A.isHdr()&&!U&&(Y.hdr=1,c*=.75)}else A=QZ("1",30),Y.perfCap30=A,c=Math.min(c,A),A=QZ("1",60),Y.perfCap60=A,c=Math.min(c,A);return Y.av1Threshold=c}; OH=function(U,Y,A,c){this.flavor=U;this.keySystem=Y;this.T=A;this.experiments=c;this.Y={};this.dW=this.keySystemAccess=null;this.W2=this.AD=-1;this.GT=null;this.W=!!c&&c.lY("edge_nonprefixed_eme");c&&c.lY("html5_enable_vp9_fairplay")}; gO=function(U){return U.W?!1:!U.keySystemAccess&&!!mH()&&U.keySystem==="com.microsoft.playready"}; yZ=function(U){return U.keySystem==="com.microsoft.playready"}; n1=function(U){return!U.keySystemAccess&&!!mH()&&U.keySystem==="com.apple.fps.1_0"}; D7=function(U){return U.keySystem==="com.youtube.fairplay"}; I7=function(U){return U.keySystem==="com.youtube.fairplay.sbdl"}; g.uq=function(U){return U.flavor==="fairplay"}; mH=function(){var U=window,Y=U.MSMediaKeys;I4()&&!Y&&(Y=U.WebKitMediaKeys);return Y&&Y.isTypeSupported?Y:null}; qg=function(U){return navigator.requestMediaKeySystemAccess?g.Sf&&!g.yB()?en("45"):g.IE||g.vF?U.lY("edge_nonprefixed_eme"):g.K1?en("47"):g.iW&&U.lY("html5_enable_safari_fairplay")?!1:!0:!1}; N4E=function(U,Y,A,c){var d=nl(),T=(A=d||A&&I4())?["com.youtube.fairplay"]:["com.widevine.alpha"];Y&&T.unshift("com.youtube.widevine.l3");d&&c&&T.unshift("com.youtube.fairplay.sbdl");return A?T:U?[].concat(g.X(T),g.X(C1.playready)):[].concat(g.X(C1.playready),g.X(T))}; U5=function(U,Y,A,c,d){c=c===void 0?!1:c;g.p.call(this);this.Ww=Y;this.useCobaltWidevine=c;this.wW=d;this.T=[];this.W={};this.Y={};this.callback=null;this.K=!1;this.j=[];this.initialize(U,!A)}; ebX=function(U,Y){U.callback=Y;U.j=[];qg(U.Ww.experiments)?Y1(U):tUE(U)}; Y1=function(U){if(!U.Ky())if(U.T.length===0)U.callback(U.j);else{var Y=U.T[0],A=U.W[Y],c=B4S(U,A);if(Av&&Av.keySystem===Y&&Av.jgT===JSON.stringify(c))U.wW("remksa",{re:!0}),XD4(U,A,Av.keySystemAccess);else{var d,T;U.wW("remksa",{re:!1,ok:(T=(d=Av)==null?void 0:d.keySystem)!=null?T:""});Av=void 0;navigator.requestMediaKeySystemAccess(Y,c).then(af(function(E){XD4(U,A,E,c)}),af(function(){U.K=!U.K&&U.W[U.T[0]].flavor==="widevine"; U.K||U.T.shift();Y1(U)}))}}}; XD4=function(U,Y,A,c){if(!U.Ky()){c&&(Av={keySystem:Y.keySystem,keySystemAccess:A,jgT:JSON.stringify(c)});Y.keySystemAccess=A;if(yZ(Y)){A=fd();c=g.J(Object.keys(U.Y[Y.flavor]));for(var d=c.next();!d.done;d=c.next())d=d.value,Y.Y[d]=!!A.canPlayType(d)}else{A=Y.keySystemAccess.getConfiguration();if(A.audioCapabilities)for(c=g.J(A.audioCapabilities),d=c.next();!d.done;d=c.next())k3X(U,Y,d.value);if(A.videoCapabilities)for(A=g.J(A.videoCapabilities),c=A.next();!c.done;c=A.next())k3X(U,Y,c.value)}U.j.push(Y); U.useCobaltWidevine||U.S("html5_enable_vp9_fairplay")&&I7(Y)?(U.T.shift(),Y1(U)):U.callback(U.j)}}; k3X=function(U,Y,A){U.S("log_robustness_for_drm")?Y.Y[A.contentType]=A.robustness||!0:Y.Y[A.contentType]=!0}; B4S=function(U,Y){var A={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(U.S("html5_enable_vp9_fairplay")&&D7(Y))return A.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),A.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[A];yZ(Y)&&(A.initDataTypes=["keyids","cenc"]);for(var c=g.J(Object.keys(U.Y[Y.flavor])),d=c.next();!d.done;d=c.next()){d=d.value;var T=d.indexOf("audio/")===0,E=T?A.audioCapabilities:A.videoCapabilities;Y.flavor!== "widevine"||U.K?E.push({contentType:d}):T?E.push({contentType:d,robustness:"SW_SECURE_CRYPTO"}):(g.Sf&&g.mm("windows nt")&&!U.S("html5_drm_enable_moho")||E.push({contentType:d,robustness:"HW_SECURE_ALL"}),T=d,U.Ww.K.W&&d.includes("vp09")&&(T=d+"; experimental=allowed"),E.push({contentType:T,robustness:"SW_SECURE_DECODE"}),cI(U.Ww)==="MWEB"&&(Yx()||gF())&&(U.wW("swcrypto",{}),E.push({contentType:d,robustness:"SW_SECURE_CRYPTO"})))}return[A]}; tUE=function(U){if(mH()&&(g.iW||Kl))U.j.push(new OH("fairplay","com.apple.fps.1_0","",U.Ww.experiments));else{var Y=Rb8(),A=g.$z(U.T,function(c){var d=U.W[c],T=!1,E=!1,L;for(L in U.Y[d.flavor])Y(L,c)&&(d.Y[L]=!0,T=T||L.indexOf("audio/")===0,E=E||L.indexOf("video/")===0);return T&&E}); A&&U.j.push(U.W[A]);U.T=[]}U.callback(U.j)}; Rb8=function(){var U=mH();if(U){var Y=U.isTypeSupported;return function(c,d){return Y(d,c)}}var A=fd(); return A&&(A.addKey||A.webkitAddKey)?function(c,d){return!!A.canPlayType(c,d)}:function(){return!1}}; ar8=function(U){this.experiments=U;this.Y=2048;this.j=0;this.Hw=(this.G=this.S("html5_streaming_resilience"))?.5:.25;var Y=Y===void 0?0:Y;this.W=g.H_(this.experiments,"html5_media_time_weight_prop")||Y;this.Pw=g.H_(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.X=(this.K=this.experiments.lY("html5_consider_end_stall"))&&dI;this.T=this.experiments.lY("html5_measure_max_progress_handling");this.Z=this.S("html5_treat_requests_pre_elbow_as_metadata");this.J=this.S("html5_media_time_weight")|| !!this.W;this.S("html5_sabr_live_audio_early_return_fix")&&dI&&(this.Y=65536)}; xO3=function(U,Y){this.Y=void 0;this.experimentIds=U?U.split(","):[];this.flags=Us(Y||"","&");U={};Y=g.J(this.experimentIds);for(var A=Y.next();!A.done;A=Y.next())U[A.value]=!0;this.experiments=U}; g.H_=function(U,Y){U=U.flags[Y];JSON.stringify(U);return Number(U)||0}; Ta=function(U,Y){return(U=U.flags[Y])?U.toString():""}; sh3=function(U){if(U=U.flags.html5_web_po_experiment_ids)if(U=U.replace(/\[ *(.*?) *\]/,"$1"))return U.split(",").map(Number);return[]}; frc=function(U){if(U.Y)return U.Y;if(U.experimentIds.length<=1)return U.Y=U.experimentIds,U.Y;var Y=[].concat(g.X(U.experimentIds)).map(function(c){return Number(c)}); Y.sort();for(var A=Y.length-1;A>0;--A)Y[A]-=Y[A-1];U.Y=Y.map(function(c){return c.toString()}); U.Y.unshift("v1");return U.Y}; S$E=function(U){return hbX.then(U)}; E5=function(U,Y,A){this.experiments=U;this.jX=Y;this.QJ=A===void 0?!1:A;this.X=!!g.u8("cast.receiver.platform.canDisplayType");this.Z={};this.Pw=!1;this.j=new Map;this.G=!0;this.T=this.W=!1;this.Y=new Map;this.Hw=0;this.ov=this.experiments.lY("html5_disable_vp9_encrypted");this.K=this.experiments.lY("html5_enable_encrypted_av1");U=g.u8("cast.receiver.platform.getValue");if(Y=!this.X&&U)Y=U("max-video-resolution-vpx");this.J=Y||null;MU4(this);this.W=!!(nl()&&Os()>=21)}; idY=function(U,Y,A){A=A===void 0?1:A;var c=Y.itag;if(c==="0")return!0;var d=Y.mimeType;if(Y.Rv==="1e"&&!U.K)return"dav1enc";if(Cd(Y)&&U.Pw)return"dav1";if(Y.video&&(Y.video.isHdr()||Y.video.primaries==="bt2020")&&!(Rs(U,as.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(c==="338"&&!(g.Sf?en(53):g.K1&&en(64)))return"dopus";var T=A;T=T===void 0?1: T;A={};Y.video&&(Y.video.width&&(A[as.WIDTH.name]=Y.video.width),Y.video.height&&(A[as.HEIGHT.name]=Y.video.height),Y.video.fps&&(A[as.FRAMERATE.name]=Y.video.fps*T),Y.video.Y&&(A[as.EOTF.name]=Y.video.Y),Y.hs&&(A[as.BITRATE.name]=Y.hs*8*T),Y.Rv==="("&&(A[as.CRYPTOBLOCKFORMAT.name]="subsample"),Y.video.projectionType==="EQUIRECTANGULAR"||Y.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Y.video.projectionType==="MESH")&&(A[as.DECODETOTEXTURE.name]="true");Y.audio&&Y.audio.numChannels&& (A[as.CHANNELS.name]=Y.audio.numChannels);U.W&&uu(Y)&&(A[as.EXPERIMENTAL.name]="allowed");T=g.J(Object.keys(as));for(var E=T.next();!E.done;E=T.next()){E=as[E.value];var L;if(L=A[E.name])if(L=!(E===as.EOTF&&Y.mimeType.indexOf("vp09.02")>0)){L=E;var r=Y;L=!(U.experiments.lY("html5_ignore_h264_framerate_cap")&&L===as.FRAMERATE&&iVl(r))}if(L)if(Rs(U,E))if(U.J){if(U.J[E.name] 1080&&Y.JB&&(d+="; hdcp=2.2");return c==="227"?"hqcenc":c!=="585"&&c!=="588"&&c!=="583"&&c!=="586"&&c!=="584"&&c!=="587"&&c!=="591"&&c!=="592"||U.experiments.lY("html5_enable_new_hvc_enc")?nl()&&Os()>=21&&g.mm("appletv5")&&(c==="410"||c==="845")?!0:U.isTypeSupported(d)?!0:"tpus":"newhvc"}; oy=function(){var U=gF()&&!en(29),Y=g.mm("google tv")&&g.mm("chrome")&&!en(30);return U||Y?!1:erc()}; bQ4=function(U,Y,A){var c=480;Y=g.J(Y);for(var d=Y.next();!d.done;d=Y.next()){d=d.value;var T=d.video.qualityOrdinal;T<=1080&&T>c&&idY(U,d,A)===!0&&(c=T)}return c}; g.za=function(U,Y){Y=Y===void 0?!1:Y;return oy()&&U.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!Y&&U.canPlayType(fd(),"application/x-mpegURL")?!0:!1}; Qh9=function(U){pDX(function(){for(var Y=g.J(Object.keys(as)),A=Y.next();!A.done;A=Y.next())Rs(U,as[A.value])})}; Rs=function(U,Y){Y.name in U.Z||(U.Z[Y.name]=ZQY(U,Y));return U.Z[Y.name]}; ZQY=function(U,Y){if(U.J)return!!U.J[Y.name];if(Y===as.BITRATE&&U.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!U.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(Y===as.AV1_CODECS)return U.isTypeSupported("video/mp4; codecs="+Y.valid)&&!U.isTypeSupported("video/mp4; codecs="+Y.oV);if(Y.video){var A='video/webm; codecs="vp9"';U.isTypeSupported(A)||(A='video/mp4; codecs="avc1.4d401e"')}else A='audio/webm; codecs="opus"', U.isTypeSupported(A)||(A='audio/mp4; codecs="mp4a.40.2"');return U.isTypeSupported(A+"; "+Y.name+"="+Y.valid)&&!U.isTypeSupported(A+"; "+Y.name+"="+Y.oV)}; OQc=function(U,Y){var A=0;U.j.has(Y)&&(A=g.M(U.j.get(Y)).gJ);U.j.set(Y,{gJ:A+1,kK:Math.pow(2,A+1)});U.T=!0}; eB=function(U){for(var Y=[],A=g.J(U.Y.keys()),c=A.next();!c.done;c=A.next()){c=c.value;var d=U.Y.get(c);Y.push(c+"_"+d.maxWidth+"_"+d.maxHeight)}return Y.join(".")}; Puc=function(U,Y){for(var A=new Map,c=g.J(U.Y.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var T=d.split("_")[0];Y.has(T)||A.set(d,U.Y.get(d))}U.Y=A}; $xE=function(U,Y,A){var c,d=((c=A.video)==null?void 0:c.fps)||0;c=Y+"_"+d;var T=!!A.audio,E={itag:A.itag,Rv:Y,SI:T};if(T)E.numChannels=A.audio.numChannels;else{var L=A.video;E.maxWidth=L==null?void 0:L.width;E.maxHeight=L==null?void 0:L.height;E.maxFramerate=d;Rs(U,as.BITRATE)&&(E.maxBitrateBps=A.hs*8);E.YL=L==null?void 0:L.isHdr()}L=U.Y.get(c);L?T||(A=Math.max(L.maxWidth||0,L.maxHeight||0)>Math.max(E.maxWidth||0,E.maxHeight||0)?L:E,Y={itag:A.itag,Rv:Y,SI:T,maxWidth:Math.max(L.maxWidth||0,E.maxWidth|| 0),maxHeight:Math.max(L.maxHeight||0,E.maxHeight||0),maxFramerate:d,YL:A.YL},Rs(U,as.BITRATE)&&(Y.maxBitrateBps=A.maxBitrateBps),U.Y.set(c,Y)):U.Y.set(c,E)}; vPX=function(U,Y,A){var c,d=((c=A.video)==null?void 0:c.fps)||0;c=Y+"_"+d;var T=!!A.audio,E=U.Y.get(c);a:{var L=U.Y.get(c),r=!!A.audio;if(L){if(r){var l=!1;break a}var P;if(!r&&((l=A.video)==null?0:l.height)&&L.maxHeight&&L.maxHeight>=((P=A.video)==null?void 0:P.height)){l=!1;break a}}l=!0}l&&(l=A.itag,Y=E?E:{itag:l,Rv:Y,SI:T},T?Y.numChannels=A.audio.numChannels:(T=A.video,Y.maxWidth=T==null?void 0:T.width,Y.maxHeight=T==null?void 0:T.height,Y.maxFramerate=d,Rs(U,as.BITRATE)&&(Y.maxBitrateBps=A.hs* 8),Y.YL=T==null?void 0:T.isHdr()),U.Y.set(c,Y))}; MU4=function(U){var Y;(Y=navigator.mediaCapabilities)!=null&&Y.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(A){A.smooth&&A.powerEfficient&&(U.Hw=2160)})}; Ls=function(){g.l6.call(this);this.items={}}; mOY=function(U,Y,A){this.encryptedClientKey=Y;this.K=A;this.Y=new Uint8Array(U.buffer,0,16);this.W=new Uint8Array(U.buffer,16)}; g0E=function(U){U.T||(U.T=new g.ew(U.Y));return U.T}; rI=function(U){try{return Ap(U)}catch(Y){return null}}; yXv=function(U,Y){if(!Y&&U)try{Y=JSON.parse(U)}catch(d){}if(Y){U=Y.clientKey?rI(Y.clientKey):null;var A=Y.encryptedClientKey?rI(Y.encryptedClientKey):null,c=Y.keyExpiresInSeconds?Number(Y.keyExpiresInSeconds)*1E3+(0,g.y)():null;U&&A&&c&&(this.Y=new mOY(U,A,c));Y.onesieUstreamerConfig&&(this.onesieUstreamerConfig=rI(Y.onesieUstreamerConfig)||void 0);this.baseUrl=Y.baseUrl}}; PI=function(){this.data=new Uint8Array(2048);this.pos=0;lo||(lo=xv("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; Vp=function(U,Y){U.add(Y==null||isNaN(Y)?0:Y+1)}; $1=function(U){this.Y=this.T=0;this.alpha=Math.exp(Math.log(.5)/U)}; vI=function(U){this.T=U===void 0?15:U;this.values=new Float64Array(176);this.Y=new Float64Array(11);this.W=new Float64Array(16)}; HI=function(U,Y,A,c){A=A===void 0?.5:A;c=c===void 0?0:c;this.resolution=Y;this.T=0;this.W=!1;this.TB=!0;this.Y=Math.round(U*this.resolution);this.values=Array(this.Y);for(U=0;U0)Y=U.byterate,this.Pw=!0;else{var c; A=(((c=navigator.connection)==null?void 0:c.downlink)||0)*64*1024;A>0&&(Y=A,this.Pw=!0)}this.W.wF(this.policy.J,Y);U.delay>0&&this.Z.wF(1,Math.min(U.delay,2));U.stall>0&&this.G.wF(1,U.stall);U.init>0&&(this.Uv=Math.min(U.init,this.Uv));U.interruptions&&(this.j=this.j.concat(U.interruptions),this.j.length>16&&this.j.pop());this.Hw=(0,g.y)();this.policy.G>0&&(this.kE=new g.IM(this.dW,this.policy.G,this),g.Z(this,this.kE),this.kE.start())}; WI=function(U,Y,A,c){U.W.wF(c===void 0?Y:c,A/Y);U.J=(0,g.y)()}; DO4=function(U){U.K||(U.K=(0,g.y)());U.policy.X&&(U.J=(0,g.y)())}; IrV=function(U,Y){if(U.K){var A=Y-U.K;if(A<6E4){if(A>1E3){var c=U.interruptions;c.push(Math.ceil(A));c.sort(function(d,T){return T-d}); c.length>16&&c.pop()}U.jX+=A}}U.K=Y}; wI=function(U,Y,A,c,d,T){T=T===void 0?!1:T;U.eX.wF(Y,A/Y);U.J=(0,g.y)();d||U.X.wF(1,Y-c);T||(U.K=0);U.Hw>-1&&(0,g.y)()-U.Hw>3E4&&uSY(U)}; io=function(U,Y,A){Y=Math.max(Y,U.T.Y);U.G.wF(1,A/Y)}; Jv=function(U){U=U.Z.Y4()+U.QJ.Y4()||0;U=isNaN(U)?.5:U;return U=Math.min(U,5)}; Fp=function(U,Y,A){isNaN(A)||(U.ov+=A);isNaN(Y)||(U.yJ+=Y)}; jj=function(U){U=U.W.Y4();return U>0?U:1}; N0=function(U,Y,A){Y=Y===void 0?!1:Y;A=A===void 0?1048576:A;var c=jj(U);c=1/((U.G.Y4()||0)*U.policy.Pw+1/c);var d=U.eX.Y4();d=d>0?d:1;var T=Math.max(c,d);U.policy.K>0&&d=4E3}; q$l=function(U){this.experiments=U;this.Y=17;this.W=13E4;this.J=.5;this.T=!1;this.Hw=this.S("html5_use_histogram_for_bandwidth");this.j=!1;this.K=g.H_(this.experiments,"html5_auxiliary_estimate_weight");this.Pw=g.H_(this.experiments,"html5_stall_factor")||1;this.G=g.H_(this.experiments,"html5_check_for_idle_network_interval_ms");this.Z=this.experiments.lY("html5_trigger_loader_when_idle_network");this.X=this.experiments.lY("html5_sabr_fetch_on_idle_network_preloaded_players")}; Uo4=function(U,Y){U=U===void 0?{}:U;Y=Y===void 0?{}:Y;g.p.call(this);var A=this;this.values=U;this.IZ=Y;this.T={};this.W=this.Y=0;this.j=new g.IM(function(){CUl(A)},1E4); g.Z(this,this.j)}; ej=function(U,Y){YM8(U,Y);return U.values[Y]&&U.IZ[Y]?U.values[Y]/Math.pow(2,U.Y/U.IZ[Y]):0}; YM8=function(U,Y){U.values[Y]||(Y=ZHV(),U.values=Y.values||{},U.IZ=Y.halfLives||{},U.T=Y.values?Object.assign({},Y.values):{})}; CUl=function(U){var Y=ZHV();if(Y.values){Y=Y.values;for(var A={},c=g.J(Object.keys(U.values)),d=c.next();!d.done;d=c.next())d=d.value,Y[d]&&U.T[d]&&(U.values[d]+=Y[d]-U.T[d]),A[d]=ej(U,d);U.T=A}Y=U.IZ;A={};A.values=U.T;A.halfLives=Y;g.fU("yt-player-memory",A,2592E3)}; yp=function(U,Y,A,c,d){g.p.call(this);this.webPlayerContextConfig=Y;this.QB=c;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.DG=this.ws=this.sT=this.s$=this.userDisplayName=this.userDisplayImage=this.Re="";this.Y={};this.AP={};this.controlsType="0";this.nU=NaN;this.Ly=!1;this.fV=(0,g.y)();this.Tk=0;this.FO=this.pc=!1;this.Us=!0;this.preferGapless=this.uL=this.Bu=this.W=this.b1=!1;this.yP=[];this.NU=!1;this.kU=0;U=U?g.YR(U):{};Y&&Y.csiPageType&&(this.csiPageType=Y.csiPageType);Y&&Y.csiServiceName&& (this.csiServiceName=Y.csiServiceName);Y&&Y.preferGapless&&(this.preferGapless=Y.preferGapless);this.experiments=new xO3(Y?Y.serializedExperimentIds:U.fexp,Y?Y.serializedExperimentFlags:U.fflags);this.forcedExperiments=Y?Y.serializedForcedExperimentIds:ob("",U.forced_experiments)||void 0;this.cspNonce=(Y==null?0:Y.cspNonce)?Y.cspNonce:ob("",U.csp_nonce);this.S("web_player_deprecated_uvr_killswitch");try{var T=document.location.toString()}catch(c3){T=""}this.zs=T;this.ancestorOrigins=(c=window.location.ancestorOrigins)? Array.from(c):[];this.j=d3(!1,Y?Y.isEmbed:U.is_embed);if(Y&&Y.device){if(c=Y.device,c.androidOsExperience&&(this.Y.caoe=""+c.androidOsExperience),c.androidPlayServicesVersion&&(this.Y.capsv=""+c.androidPlayServicesVersion),c.brand&&(this.Y.cbrand=c.brand),c.browser&&(this.Y.cbr=c.browser),c.browserVersion&&(this.Y.cbrver=c.browserVersion),c.cobaltReleaseVehicle&&(this.Y.ccrv=""+c.cobaltReleaseVehicle),this.Y.c=c.interfaceName||"WEB",this.Y.cver=c.interfaceVersion||"html5",c.interfaceTheme&&(this.Y.ctheme= c.interfaceTheme),this.Y.cplayer=c.interfacePlayerType||"UNIPLAYER",c.model&&(this.Y.cmodel=c.model),c.network&&(this.Y.cnetwork=c.network),c.os&&(this.Y.cos=c.os),c.osVersion&&(this.Y.cosver=c.osVersion),c.platform&&(this.Y.cplatform=c.platform),T=Ta(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),T==="all"||T==="once")c.chipset&&(this.AP.cchip=c.chipset),c.cobaltAppVersion&&(this.AP.ccappver=c.cobaltAppVersion),c.firmwareVersion&&(this.AP.cfrmver=c.firmwareVersion),c.deviceYear&&(this.AP.crqyear= c.deviceYear)}else this.Y.c=U.c||"web",this.Y.cver=U.cver||"html5",this.Y.cplayer="UNIPLAYER";this.loaderUrl=Y?this.j||A48(this)&&Y.loaderUrl?Y.loaderUrl||"":this.zs:this.j||A48(this)&&U.loaderUrl?ob("",U.loaderUrl):this.zs;this.j&&g.Ic("yt.embedded_player.embed_url",this.loaderUrl);this.Z=YB(this.loaderUrl,c4S);c=this.loaderUrl;var E=E===void 0?!1:E;this.VK=UE(YB(c,doV),c,E,"Trusted Ad Domain URL");this.Lr=d3(!1,U.privembed);this.protocol=this.zs.indexOf("http:")===0?"http":"https";this.ZG=AAX((Y? Y.customBaseYoutubeUrl:U.BASE_YT_URL)||"")||AAX(this.zs)||this.protocol+"://www.youtube.com/";E=Y?Y.eventLabel:U.el;c="detailpage";E==="adunit"?c=this.j?"embedded":"detailpage":E==="embedded"||this.Z?c=T0(c,E,TPS):E&&(c="embedded");this.QJ=c;Xnc();E=null;c=Y?Y.playerStyle:U.ps;T=g.Go(Em8,c);!c||T&&!this.Z||(E=c);this.playerStyle=E;this.J=g.Go(Em8,this.playerStyle);this.houseBrandUserStatus=Y==null?void 0:Y.houseBrandUserStatus;this.Hw=this.J&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.NR=!this.Hw;this.Uv=d3(!1,U.disableplaybackui);this.disablePaidContentOverlay=d3(!1,Y==null?void 0:Y.disablePaidContentOverlay);this.disableSeek=d3(!1,Y==null?void 0:Y.disableSeek);this.enableSpeedOptions=(Y==null?void 0:Y.enableSpeedOptions)||(fd().defaultPlaybackRate?BI||g.UI||Xp?g.K1&&en("20")||g.Sf&&en("4")||g.k1&&en("11")||ur():!(g.k1&&!g.mm("chrome")||BI||g.mm("android")||g.mm("silk")):!1);this.Cc=d3(!1,U.enable_faster_speeds);var L;this.supportsVarispeedExtendedFeatures=(L=Y==null?void 0: Y.supportsVarispeedExtendedFeatures)!=null?L:!1;this.T=d3(this.playerStyle==="blazer",U.is_html5_mobile_device||Y&&Y.isMobileDevice);this.yJ=Cl()||Yx();this.bH=this.S("mweb_allow_background_playback")?!1:this.T&&!this.J;this.kE=pd();this.BN=g.Ry;var r;this.eL=!!(Y==null?0:(r=Y.embedsHostFlags)==null?0:r.optOutApiDeprecation);var l;this.hW=!!(Y==null?0:(l=Y.embedsHostFlags)==null?0:l.allowPfpImaIntegration);this.Gy=this.S("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var P;Y?Y.hideInfo!== void 0&&(P=!Y.hideInfo):P=U.showinfo;this.FB=g.ay(this)&&!this.eL||d3(!x1(this)&&!s5(this)&&!this.J,P);this.JS=Y?!!Y.mobileIphoneSupportsInlinePlayback:d3(!1,U.playsinline);L=this.T&&fs&&hv!=null&&hv>0&&hv<=2.3;r=Y?Y.useNativeControls:U.use_native_controls;this.G=g.ay(this)&&this.T;l=this.T&&!this.G;r=g.Sj(this)||!L&&d3(l,r)?"3":"1";this.disableOrganicUi=!(Y==null||!Y.disableOrganicUi);l=Y?Y.controlsType:U.controls;this.controlsType=this.disableOrganicUi||l==="0"||l===0?"0":r;this.sO=this.T;this.color= T0("red",Y?Y.progressBarColor:U.color,omv);this.ev=this.controlsType==="3";this.mH=!this.j;this.IF=(r=!this.mH&&!s5(this)&&!this.Hw&&!this.J&&!x1(this))&&!this.ev&&this.controlsType==="1";this.tb=g.M0(this)&&r&&this.controlsType==="0"&&!this.IF&&!(Y==null?0:Y.embedsEnableEmc3ds);this.EL=this.UB=L;this.Me=(this.controlsType==="3"||this.T||d3(!1,U.use_media_volume))&&!this.G;this.J1=Kl&&!g.eF(601)?!1:!0;this.tj=this.j||!1;this.qz=s5(this)?"":(this.loaderUrl||U.post_message_origin||"").substring(0,128); this.widgetReferrer=ob("",Y?Y.widgetReferrer:U.widget_referrer);var V;Y?Y.disableCastApi&&(V=!1):V=U.enablecastapi;V=!this.Z||d3(!0,V);L=!0;Y&&Y.disableMdxCast&&(L=!1);this.yz=this.S("enable_cast_for_web_unplugged")&&g.bo(this)&&L||g.pV(this)&&L||V&&L&&this.controlsType==="1"&&!this.T&&(s5(this)||g.M0(this)||g.ps(this));this.qY=!!window.document.pictureInPictureEnabled||bu();V=Y?!!Y.supportsAutoplayOverride:d3(!1,U.autoplayoverride);this.Ie=!(this.T&&!g.ay(this))&&!g.mm("nintendo wiiu")||V;this.E9= (Y?!!Y.enableMutedAutoplay:d3(!1,U.mutedautoplay))&&!1;V=(s5(this)||x1(this))&&this.playerStyle==="blazer";this.Vt=Y?!!Y.disableFullscreen:!d3(!0,U.fs);L=g.lH(g.Qp(this))&&g.ay(this);this.VJ=!this.Vt&&(V||g.W5())&&!L;this.tU=this.S("html5_picture_in_picture_logging_onresize");var v;this.IT=(v=g.H_(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?v:.33;this.SL=this.S("html5_picture_in_picture_blocking_onresize");this.GT=this.S("html5_picture_in_picture_blocking_ontimeupdate"); this.cN=this.S("html5_picture_in_picture_blocking_document_fullscreen");this.yB=this.S("html5_picture_in_picture_blocking_standard_api");v=gF()&&en(58)&&!Yx();V=DN||typeof MediaSource==="undefined";this.sx=this.S("uniplayer_block_pip")&&(v||V)||this.SL||this.GT||this.yB;v=g.ay(this)&&!this.eL;var H;Y?Y.disableRelatedVideos!==void 0&&(H=!Y.disableRelatedVideos):H=U.rel;this.KU=v||d3(!this.J,H);this.Ll=d3(!1,Y?Y.enableContentOwnerRelatedVideos:U.co_rel);this.X=Yx()&&hv>0&&hv<=4.4?"_top":"_blank";this.VU= g.ps(this);this.vl=d3(this.playerStyle==="blazer",Y?Y.enableCsiLogging:U.enablecsi);switch(this.playerStyle){case "blogger":H="bl";break;case "gmail":H="gm";break;case "gac":H="ga";break;case "ads-preview":H="ap";break;case "books":H="gb";break;case "docs":case "flix":H="gd";break;case "duo":H="gu";break;case "google-live":H="gl";break;case "google-one":H="go";break;case "play":H="gp";break;case "chat":H="hc";break;case "hangouts-meet":H="hm";break;case "photos-edu":case "picasaweb":H="pw";break; default:H="yt"}this.Pw=H;this.ov=ob("",Y?Y.authorizedUserIndex:U.authuser);this.R1=g.ay(this)&&(this.Lr||!HB9()||this.yJ);var G;Y?Y.disableWatchLater!==void 0&&(G=!Y.disableWatchLater):G=U.showwatchlater;this.q5=((H=!this.R1)||!!this.ov&&H)&&d3(!this.Hw,this.Z?G:void 0);this.Ix=Y?Y.isMobileDevice||!!Y.disableKeyboardControls:d3(!1,U.disablekb);this.loop=d3(!1,U.loop);this.pageId=ob("",Y?Y.initialDelegatedSessionId:U.pageid);this.fl=d3(!0,U.canplaylive);this.i$=d3(!1,U.livemonitor);this.disableSharing= d3(this.J,Y?Y.disableSharing:U.ss);(G=Y&&this.S("fill_video_container_size_override_from_wpcc")?Y.videoContainerOverride:U.video_container_override)?(H=G.split("x"),H.length!==2?G=null:(G=Number(H[0]),H=Number(H[1]),G=isNaN(G)||isNaN(H)||G*H<=0?null:new g.xn(G,H))):G=null;this.K2=G;this.mute=Y?!!Y.startMuted:d3(!1,U.mute);this.storeUserVolume=!this.mute&&d3(this.controlsType!=="0",Y?Y.storeUserVolume:U.store_user_volume);G=Y?Y.annotationsLoadPolicy:U.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:T0(void 0,G,Z8);this.captionsLanguagePreference=Y?Y.captionsLanguagePreference||"":ob("",U.cc_lang_pref);G=T0(2,Y?Y.captionsLanguageLoadPolicy:U.cc_load_policy,Z8);this.controlsType==="3"&&G===2&&(G=3);this.v7=G;this.Va=Y?Y.hl||"en_US":ob("en_US",U.hl);this.region=Y?Y.contentRegion||"US":ob("US",U.cr);this.hostLanguage=Y?Y.hostLanguage||"en":ob("en",U.host_language);this.RV=!this.Lr&&Math.random()=480;this.schedule=new Ga(V,new ar8(this.experiments),d);g.Z(this,this.schedule);var F;this.enableSafetyMode=(F=Y==null?void 0:Y.initialEnableSafetyMode)!=null? F:d3(!1,U.enable_safety_mode);d=this.Uv?!1:s5(this)&&this.playerStyle!=="blazer";var N;Y?Y.disableAutonav!=null&&(N=!Y.disableAutonav):N=U.allow_autonav;this.o2=d3(d,!this.Hw&&N);this.sendVisitorIdHeader=Y?!!Y.sendVisitorIdHeader:d3(!1,U.send_visitor_id_header);var e;this.playerStyle==="docs"&&(Y?e=Y.disableNativeContextMenu:e=U.disable_native_context_menu);this.disableNativeContextMenu=d3(!1,e);this.Aj=kq(this)&&this.S("enable_skip_intro_button");this.embedConfig=ob("",Y?Y.serializedEmbedConfig: U.embed_config);this.jX=r3(U,g.ay(this));this.W=this.jX==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(Y==null||!Y.embedsErrorLinks);this.Md=d3(!1,U.full_window);var B;this.Zf=!((B=this.webPlayerContextConfig)==null?0:B.chromeless);var f;this.livingRoomAppMode=T0("LIVING_ROOM_APP_MODE_UNSPECIFIED",U.living_room_app_mode||(Y==null?void 0:(f=Y.device)==null?void 0:f.livingRoomAppMode),r4l);var h;N=EI(NaN,Y==null?void 0:(h=Y.device)==null?void 0:h.deviceYear);isNaN(N)||(this.deviceYear=N);this.transparentBackground= Y?!!Y.transparentBackground:d3(!1,U.transparent_background);this.showMiniplayerButton=Y?!!Y.showMiniplayerButton:d3(!1,U.show_miniplayer_button);var Q;g.ay(this)&&!(Y==null?0:(Q=Y.embedsHostFlags)==null?0:Q.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=Y?!!Y.externalFullscreen:d3(!1,U.external_fullscreen);this.showMiniplayerUiWhenMinimized=Y?!!Y.showMiniplayerUiWhenMinimized:d3(!1,U.use_miniplayer_ui);var K;this.Us=(K=U.show_loop_video_toggle)!=null?K:!0;this.PN=Math.random()< 1E-4;this.oX=U.onesie_hot_config||(Y==null?0:Y.onesieHotConfig)?new yXv(U.onesie_hot_config,Y==null?void 0:Y.onesieHotConfig):void 0;this.isTectonic=Y?!!Y.isTectonic:!!U.isTectonic;this.playerCanaryState=A;this.playerCanaryStage=Y==null?void 0:Y.canaryStage;this.mA=new Uo4;g.Z(this,this.mA);this.datasyncId=(Y==null?void 0:Y.datasyncId)||g.DQ("DATASYNC_ID");this.xm=g.DQ("LOGGED_IN",!1);this.jo=(Y==null?void 0:Y.allowWoffleManagement)||!1;this.W7=Infinity;this.Aw=NaN;this.livingRoomPoTokenId=Y==null? void 0:Y.livingRoomPoTokenId;this.S("html5_high_res_logging_always")?this.Bu=!0:this.Bu=Math.random()*100=0&&U0&&U.PN&&(c.sort(),g.Md(new g.Do("Player client parameters changed after startup",c)));U.userAge=EI(U.userAge,Y.user_age);U.Re=ob(U.Re,Y.user_display_email);U.userDisplayImage=ob(U.userDisplayImage,Y.user_display_image);g.cm(U.userDisplayImage)||(U.userDisplayImage= "");U.userDisplayName=ob(U.userDisplayName,Y.user_display_name);U.s$=ob(U.s$,Y.user_gender);U.csiPageType=ob(U.csiPageType,Y.csi_page_type);U.csiServiceName=ob(U.csiServiceName,Y.csi_service_name);U.vl=d3(U.vl,Y.enablecsi);U.pageId=ob(U.pageId,Y.pageid);if(A=Y.enabled_engage_types)U.enabledEngageTypes=new Set(A.split(","));Y.living_room_session_po_token&&(U.Zh=Y.living_room_session_po_token.toString())}; ns=function(U,Y){return!U.J&&gF()&&en(55)&&U.controlsType==="3"&&!Y}; g.D8=function(U){U=O5(U.ZG);return U==="www.youtube-nocookie.com"?"www.youtube.com":U}; Iy=function(U,Y,A){return U.protocol+"://i1.ytimg.com/vi/"+Y+"/"+(A||"hqdefault.jpg")}; uo=function(U){return s5(U)&&!g.bo(U)}; g.Sj=function(U){return U.S("html5_local_playsinline")?Kl&&!g.eF(602)&&!("playsInline"in fd()):Kl&&!U.JS||g.mm("nintendo wiiu")?!0:!1}; cI=function(U){return U.Y.c}; g.Rd=function(U){return/^TVHTML5/.test(cI(U))}; g.Ks=function(U){return cI(U)==="TVHTML5"}; A48=function(U){return cI(U)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; LKS=function(U){return U.Y.cmodel==="CHROMECAST ULTRA/STEAK"||U.Y.cmodel==="CHROMECAST/STEAK"}; g.q0=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; kq=function(U){return/web/i.test(cI(U))}; g.Cs=function(U){return cI(U).toUpperCase()==="WEB"}; gI=function(U){return cI(U)==="WEB_KIDS"}; g.bo=function(U){return cI(U)==="WEB_UNPLUGGED"}; UJ=function(U){return cI(U)==="TVHTML5_UNPLUGGED"}; g.XA=function(U){return g.bo(U)||cI(U)==="TV_UNPLUGGED_CAST"||UJ(U)}; g.pV=function(U){return cI(U)==="WEB_REMIX"}; g.YQ=function(U){return cI(U)==="WEB_EMBEDDED_PLAYER"}; g.cb=function(U){return(U.deviceIsAudioOnly||!g.Sf||DN||U.controlsType==="3"?!1:g.UI?U.j&&g.eF(51):!0)||(U.deviceIsAudioOnly||!g.K1||DN||U.controlsType==="3"?!1:g.UI?U.j&&g.eF(48):g.eF(38))||(U.deviceIsAudioOnly||!g.k1||DN||U.controlsType==="3"?!1:g.UI?U.j&&g.eF(37):g.eF(27))||!U.deviceIsAudioOnly&&g.AG&&!JZX()&&g.eF(11)||!U.deviceIsAudioOnly&&g.iW&&g.eF("604.4")}; Ve9=function(U){if(g.M0(U)&&fs)return!1;if(g.K1){if(!g.eF(47)||!g.eF(52)&&g.eF(51))return!1}else if(g.iW)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; vm3=function(U,Y){return U.enabledEngageTypes.has(Y.toString())||$oY.includes(Y)}; s5=function(U){return U.QJ==="detailpage"}; g.M0=function(U){return U.QJ==="embedded"}; dA=function(U){return U.QJ==="leanback"}; x1=function(U){return U.QJ==="adunit"||U.playerStyle==="gvn"}; g.ps=function(U){return U.QJ==="profilepage"}; g.ay=function(U){return U.j&&g.M0(U)&&!x1(U)&&!U.J}; Tr=function(U){if(!U.userDisplayImage)return"";var Y=U.userDisplayImage.split("/");if(Y.length===5)return U=Y[Y.length-1].split("="),U[1]="s20-c",Y[Y.length-1]=U.join("="),Y.join("/");if(Y.length===8)return Y.splice(7,0,"s20-c"),Y.join("/");if(Y.length===9)return Y[7]+="-s20-c",Y.join("/");g.Md(new g.Do("Profile image not a FIFE URL.",U.userDisplayImage));return U.userDisplayImage}; g.EJ=function(U){var Y=g.D8(U);Hh9.includes(Y)&&(Y="www.youtube.com");return U.protocol+"://"+Y}; g.o$=function(U,Y){Y=Y===void 0?"":Y;if(U.QB){var A=new AX,c,d=U.QB();d.signedOut?c="":d.token?c=d.token:d.pendingResult.then(function(T){d.signedOut?A.resolve(""):A.resolve(T.token)},function(T){g.Md(new g.Do("b189348328_oauth_callback_failed",{error:T})); A.resolve(Y)}); return c!==void 0?xG(c):new R4(A)}return xG(Y)}; zr=function(U,Y){Y=Y===void 0?"":Y;return U.xm?WZ(!0):NN(jc(WZ(g.o$(U,Y)),function(A){return WZ(!!A)}),function(){return WZ(!1)})}; O5=function(U){var Y=g.M(g.tD(U));return(U=Number(g.Nw(U)[4]||null)||null)?Y+":"+U:Y}; LD=function(U,Y){Y=Y===void 0?!1:Y;var A=DM[U],c=Giv[A],d=WK9[U];if(!d||!c)return null;Y=new gt(Y?d.height:d.width,Y?d.width:d.height,d.fps);c=jv(c,Y,A);return new I9(U,c,{video:Y,hs:d.bitrate/8})}; ihc=function(U){var Y=Giv[DM[U]],A=wq8[U];return A&&Y?new I9(U,Y,{audio:new ZM(A.audioSampleRate,A.numChannels)}):null}; rA=function(U){this.Y=U}; lN=function(U,Y,A,c){if(A)return a4();A={};var d=fd();Y=g.J(Y);for(var T=Y.next();!T.done;T=Y.next())if(T=T.value,U.canPlayType(d,T.getInfo().mimeType)||c){var E=T.Y.video.quality;if(!A[E]||A[E].getInfo().Wu())A[E]=T}U=[];A.auto&&U.push(A.auto);c=g.J(yy);for(d=c.next();!d.done;d=c.next())(d=A[d.value])&&U.push(d);return U.length?xG(U):a4()}; J4X=function(U){this.itag=U.itag;this.url=U.url;this.codecs=U.codecs;this.width=U.width;this.height=U.height;this.fps=U.fps;this.bitrate=U.bitrate;var Y;this.T=((Y=U.audioItag)==null?void 0:Y.split(","))||[];this.CO=U.CO;this.JB=U.JB||"";this.b$=U.b$;this.audioChannels=U.audioChannels;this.Y=""}; FKc=function(U,Y,A,c){Y=Y===void 0?!1:Y;A=A===void 0?!0:A;c=c===void 0?{}:c;var d={};U=g.J(U);for(var T=U.next();!T.done;T=U.next()){T=T.value;if(Y&&MediaSource&&MediaSource.isTypeSupported){var E=T.type;T.audio_channels&&(E=E+"; channels="+T.audio_channels);if(!MediaSource.isTypeSupported(E)){c[T.itag]="tpus";continue}}if(A||!T.drm_families||T.eotf!=="smpte2084"&&T.eotf!=="arib-std-b67"){E=void 0;var L={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},r=T.type.match(/codecs="([^"]*)"/); r=r?r[1]:"";T.audio_track_id&&(E=new g.Gp(T.name,T.audio_track_id,!!T.is_default));var l=T.eotf;T=new J4X({itag:T.itag,url:T.url,codecs:r,width:Number(T.width),height:Number(T.height),fps:Number(T.fps),bitrate:Number(T.bitrate),audioItag:T.audio_itag,CO:l?L[l]:void 0,JB:T.drm_families,b$:E,audioChannels:Number(T.audio_channels)});d[T.itag]=d[T.itag]||[];d[T.itag].push(T)}else c[T.itag]="enchdr"}return d}; jWX=function(U,Y,A,c,d){this.W=U;this.T=Y;this.K=A;this.cpn=c;this.J=d;this.j=0;this.Y=""}; NPl=function(U,Y){U.W.some(function(A){var c;return((c=A.b$)==null?void 0:c.getId())===Y}); U.Y=Y}; Pb=function(U,Y,A){U.cpn&&(Y=g.xJ(Y,{cpn:U.cpn}));A&&(Y=g.xJ(Y,{paired:A}));return Y}; te3=function(U,Y){U=U.itag.toString();Y!==null&&(U+=Y.itag.toString());return U}; eIY=function(U){for(var Y=[],A=[],c=g.J(U.T),d=c.next();!d.done;d=c.next())d=d.value,d.bitrate<=U.j?Y.push(d):A.push(d);Y.sort(function(T,E){return E.bitrate-T.bitrate}); A.sort(function(T,E){return T.bitrate-E.bitrate}); U.T=Y.concat(A)}; V6=function(U,Y,A){this.Y=U;this.T=Y;this.expiration=A;this.Dm=null}; BPX=function(U,Y){if(!(DN||I4()||nl()))return null;U=FKc(Y,U.S("html5_filter_fmp4_in_hls"));if(!U)return null;Y=[];for(var A={},c=g.J(Object.keys(U)),d=c.next();!d.done;d=c.next()){d=g.J(U[d.value]);for(var T=d.next();!T.done;T=d.next()){var E=T.value;E.b$&&(T=E.b$.getId(),A[T]||(E=new g.Pz(T,E.b$),A[T]=E,Y.push(E)))}}return Y.length>0?Y:null}; xoX=function(U,Y,A,c,d,T,E){if(!(DN||I4()||nl()))return a4();var L={},r=Xql(A),l=FKc(A,U.S("html5_filter_fmp4_in_hls"),U.K.G,L);if(!l)return E({noplst:1}),a4();ki9(l);A={};var P=(A.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",A),V;A=[];var v=[],H=[],G=null,F="";c=c&&c.match(/hls_timedtext_playlist/)?new J4X({itag:"0",url:c,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,b$:new g.Gp("English","en",!1)}):null;for(var N=g.J(Object.keys(l)),e=N.next();!e.done;e=N.next())if(e=e.value,!U.S("html5_disable_drm_hfr_1080")|| e!=="383"&&e!=="373"){e=g.J(l[e]);for(var B=e.next();!B.done;B=e.next())if(B=B.value,B.width){for(var f=g.J(B.T),h=f.next();!h.done;h=f.next())if(h=h.value,l[h]){B.Y=h;break}B.Y||(B.Y=RIv(l,B));if(f=l[B.Y])if(A.push(B),B.JB==="fairplay"&&(V=P),h="",B.CO==="PQ"?h="smpte2084":B.CO==="HLG"&&(h="arib-std-b67"),h&&(F=h),H.push(a$4(f,[B],c,T,B.itag,B.width,B.height,B.fps,r,void 0,void 0,V,h)),!G||B.width*B.height*B.fps>G.width*G.height*G.fps)G=B}else v.push(B)}else L[e]="disdrmhfr";H.reduce(function(Q, K){return K.getInfo().isEncrypted()&&Q},!0)&&(V=P); d=Math.max(d,0);P=G||{};l=P.fps===void 0?0:P.fps;G=P.width===void 0?0:P.width;P=P.height===void 0?0:P.height;N=U.S("html5_native_audio_track_switching");H.push(a$4(v,A,c,T,"93",G,P,l,r,"auto",d,V,F,N));Object.entries(L).length&&E(L);return lN(U.K,H,ns(U,Y),!1)}; a$4=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H){for(var G=0,F="",N=g.J(U),e=N.next();!e.done;e=N.next())e=e.value,F||(F=e.itag),e.audioChannels&&e.audioChannels>G&&(G=e.audioChannels,F=e.itag);d=new I9(d,"application/x-mpegURL",{audio:new ZM(0,G),video:new gt(T,E,L,null,void 0,l,void 0,v),JB:V,k7:F});U=new jWX(U,Y,A?[A]:[],c,!!H);U.j=P?P:1369843;return new V6(d,U,r)}; Xql=function(U){U=g.J(U);for(var Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,Y.url&&(Y=Y.url.split("expire/"),!(Y.length<=1)))return+Y[1].split("/")[0];return NaN}; RIv=function(U,Y){for(var A=g.J(Object.keys(U)),c=A.next();!c.done;c=A.next()){c=c.value;var d=U[c][0];if(!d.width&&d.JB===Y.JB&&!d.audioChannels)return c}return""}; ki9=function(U){for(var Y=new Set,A=g.J(Object.values(U)),c=A.next();!c.done;c=A.next())c=c.value,c.length&&(c=c[0],c.height&&c.codecs.startsWith("vp09")&&Y.add(c.height));A=[];if(Y.size){c=g.J(Object.keys(U));for(var d=c.next();!d.done;d=c.next())if(d=d.value,U[d].length){var T=U[d][0];T.height&&Y.has(T.height)&&!T.codecs.startsWith("vp09")&&A.push(d)}}Y=g.J(A);for(A=Y.next();!A.done;A=Y.next())delete U[A.value]}; $Q=function(U,Y){this.Y=U;this.T=Y}; sWV=function(U,Y,A,c){var d=[];A=g.J(A);for(var T=A.next();!T.done;T=A.next()){var E=T.value;if(E.url){T=new g.xN(E.url,!0);if(E.s){var L=T,r=E.sp,l=Mi4(decodeURIComponent(E.s));L[z[13]](r,encodeURIComponent(l))}L=g.J(Object.keys(c));for(r=L.next();!r.done;r=L.next())r=r.value,T.set(r,c[r]);E=zu(E.type,E.quality,E.itag,E.width,E.height);d.push(new $Q(E,T))}}return lN(U.K,d,ns(U,Y),!1)}; vb=function(U,Y){this.Y=U;this.T=Y}; f$X=function(U,Y,A){var c=[];A=g.J(A);for(var d=A.next();!d.done;d=A.next())if((d=d.value)&&d.url){var T=zu(d.type,"medium","0");c.push(new vb(T,d.url))}return lN(U.K,c,ns(U,Y),!1)}; hI8=function(U,Y){var A=[],c=zu(Y.type,"auto",Y.itag);A.push(new vb(c,Y.url));return lN(U.K,A,!1,!0)}; MeS=function(U){return U&&SMX[U]?SMX[U]:null}; bhc=function(U){switch(U){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return U;default:return"sabr.config"}}; pqY=function(U){if(U=U.commonConfig)this.url=U.url,this.urlQueryOverride=U.urlQueryOverride,U.ustreamerConfig&&(this.q0=rI(U.ustreamerConfig)||void 0)}; QWv=function(U,Y){var A;if(Y=Y==null?void 0:(A=Y.watchEndpointSupportedOnesieConfig)==null?void 0:A.html5PlaybackOnesieConfig)U.qq=new pqY(Y)}; g.Hb=function(U){U=U===void 0?{}:U;this.languageCode=U.languageCode||"";this.languageName=U.languageName||null;this.kind=U.kind||"";this.name=U.name===void 0?null:U.name;this.displayName=U.displayName||null;this.id=U.id||null;this.Y=U.is_servable||!1;this.isTranslateable=U.is_translateable||!1;this.url=U.url||null;this.vssId=U.vss_id||"";this.isDefault=U.is_default||!1;this.translationLanguage=U.translationLanguage||null;this.xtags=U.xtags||"";this.captionId=U.captionId||""}; g.Wb=function(U){var Y={languageCode:U.languageCode,languageName:U.languageName,displayName:g.Gr(U),kind:U.kind,name:U.name,id:U.id,is_servable:U.Y,is_default:U.isDefault,is_translateable:U.isTranslateable,vss_id:U.vssId};U.xtags&&(Y.xtags=U.xtags);U.captionId&&(Y.captionId=U.captionId);U.translationLanguage&&(Y.translationLanguage=U.translationLanguage);return Y}; g.wA=function(U){return U.translationLanguage?U.translationLanguage.languageCode:U.languageCode}; g.ZhY=function(U){var Y=U.vssId;U.translationLanguage&&Y&&(Y="t"+Y+"."+g.wA(U));return Y}; g.Gr=function(U){var Y=[];if(U.displayName)Y.push(U.displayName);else{var A=U.languageName||"";Y.push(A);U.kind==="asr"&&A.indexOf("(")===-1&&Y.push(" (Subt\u00edtulos autom\u00e1ticos)");U.name&&Y.push(" - "+U.name)}U.translationLanguage&&Y.push(" >> "+U.translationLanguage.languageName);return Y.join("")}; y4l=function(U,Y,A,c){U||(U=Y&&OhX.hasOwnProperty(Y)&&moc.hasOwnProperty(Y)?moc[Y]+"_"+OhX[Y]:void 0);Y=U;if(!Y)return null;U=Y.match(gml);if(!U||U.length!==5)return null;if(U=Y.match(gml)){var d=Number(U[3]),T=[7,8,10,5,6];U=!(Number(U[1])===1&&d===8)&&T.indexOf(d)>=0}else U=!1;return A||c||U?Y:null}; iN=function(U,Y){for(var A={},c=g.J(Object.keys(nmE)),d=c.next();!d.done;d=c.next()){d=d.value;var T=Y?Y+d:d;T=U[T+"_webp"]||U[T];g.cm(T)&&(A[nmE[d]]=T)}return A}; JG=function(U){var Y={};if(!U||!U.thumbnails)return Y;U=U.thumbnails.filter(function(L){return!!L.url}); U.sort(function(L,r){return L.width-r.width||L.height-r.height}); for(var A=g.J(Object.keys(Dol)),c=A.next();!c.done;c=A.next()){var d=Number(c.value);c=Dol[d];for(var T=g.J(U),E=T.next();!E.done;E=T.next())if(E=E.value,E.width>=d){d=I$9(E.url);g.cm(d)&&(Y[c]=d);break}}(U=U.pop())&&U.width>=1280&&(U=I$9(U.url),g.cm(U)&&(Y["maxresdefault.jpg"]=U));return Y}; I$9=function(U){return U.startsWith("//")?"https:"+U:U}; FX=function(U){return U&&U.baseUrl||""}; jK=function(U){U=g.dF(U);for(var Y=g.J(Object.keys(U)),A=Y.next();!A.done;A=Y.next()){A=A.value;var c=U[A];U[A]=Array.isArray(c)?c[0]:c}return U}; ulc=function(U,Y){U.botguardData=Y.playerAttestationRenderer.botguardData;Y=Y.playerAttestationRenderer.challenge;Y!=null&&(U.iO=Y)}; CiV=function(U,Y){Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next()){A=A.value;var c=A.interstitials.map(function(E){var L=g.O(E,KKY);if(L)return{is_yto_interstitial:!0,raw_player_response:L};if(E=g.O(E,qMv))return Object.assign({is_yto_interstitial:!0},Af(E))}); c=g.J(c);for(var d=c.next();!d.done;d=c.next())switch(d=d.value,A.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":U.interstitials=U.interstitials.concat({time:0,playerVars:d,Lc:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":U.interstitials=U.interstitials.concat({time:0x7ffffffffffff,playerVars:d,Lc:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var T=Number(A.podConfig.timeToInsertAtMillis);U.interstitials=U.interstitials.concat({time:T,playerVars:d, Lc:T===0?5:7})}}}; UK8=function(U,Y){if(Y=Y.find(function(A){return!(!A||!A.tooltipRenderer)}))U.tooltipRenderer=Y.tooltipRenderer}; Yl9=function(U,Y){Y.subscribeCommand&&(U.subscribeCommand=Y.subscribeCommand);Y.unsubscribeCommand&&(U.unsubscribeCommand=Y.unsubscribeCommand);Y.addToWatchLaterCommand&&(U.addToWatchLaterCommand=Y.addToWatchLaterCommand);Y.removeFromWatchLaterCommand&&(U.removeFromWatchLaterCommand=Y.removeFromWatchLaterCommand);Y.getSharePanelCommand&&(U.getSharePanelCommand=Y.getSharePanelCommand)}; AE4=function(U,Y){Y!=null?(U.j4=Y,U.ET=!0):(U.j4="",U.ET=!1)}; NJ=function(U,Y){this.type=U||"";this.id=Y||""}; g.tG=function(U){return new NJ(U.substring(0,2),U.substring(2))}; g.eK=function(U,Y){this.Ww=U;this.author="";this.Ti=null;this.playlistLength=0;this.Y=this.sessionData=null;this.X={};this.title="";if(Y){this.author=Y.author||Y.playlist_author||"";this.title=Y.playlist_title||"";if(U=Y.session_data)this.sessionData=Us(U,"&");var A;this.Y=((A=Y.thumbnail_ids)==null?void 0:A.split(",")[0])||null;this.X=iN(Y,"playlist_");this.videoId=Y.video_id||void 0;if(A=Y.list)switch(Y.listType){case "user_uploads":this.playlistId=(new NJ("UU","PLAYER_"+A)).toString();break;default:if(U= Y.playlist_length)this.playlistLength=Number(U)||0;this.playlistId=g.tG(A).toString();if(Y=Y.video)this.videoId=(Y[0]||null).video_id||void 0}else Y.playlist&&(this.playlistLength=Y.playlist.toString().split(",").length)}}; g.Bb=function(U,Y){this.Ww=U;this.OB=this.author="";this.Ti=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.t7=this.lengthText="";this.sessionData=null;this.X={};this.title="";if(Y){this.ariaLabel=Y.aria_label||void 0;this.author=Y.author||"";this.OB=Y.OB||"";if(U=Y.endscreen_autoplay_session_data)this.Ti=Us(U,"&");this.Mx=Y.Mx;this.isLivePlayback=Y.live_playback==="1";this.isUpcoming=!!Y.isUpcoming;if(U=Y.length_seconds)this.lengthSeconds=typeof U==="string"?Number(U):U;this.lengthText= Y.lengthText||"";this.t7=Y.t7||"";this.publishedTimeText=Y.publishedTimeText||void 0;if(U=Y.session_data)this.sessionData=Us(U,"&");this.shortViewCount=Y.short_view_count_text||void 0;this.X=iN(Y);this.title=Y.title||"";this.videoId=Y.docid||Y.video_id||Y.videoId||Y.id||void 0;this.watchUrl=Y.watchUrl||void 0}}; cEX=function(U){var Y,A,c=(Y=U.getWatchNextResponse())==null?void 0:(A=Y.contents)==null?void 0:A.twoColumnWatchNextResults,d,T,E,L,r;U=(d=U.getWatchNextResponse())==null?void 0:(T=d.playerOverlays)==null?void 0:(E=T.playerOverlayRenderer)==null?void 0:(L=E.endScreen)==null?void 0:(r=L.watchNextEndScreenRenderer)==null?void 0:r.results;if(!U){var l,P;U=c==null?void 0:(l=c.endScreen)==null?void 0:(P=l.endScreen)==null?void 0:P.results}return U}; g.kQ=function(U){var Y,A,c;U=g.O((Y=U.getWatchNextResponse())==null?void 0:(A=Y.playerOverlays)==null?void 0:(c=A.playerOverlayRenderer)==null?void 0:c.decoratedPlayerBarRenderer,XX);return g.O(U==null?void 0:U.playerBar,dKV)}; T6c=function(U){this.Y=U.playback_progress_0s_url;this.W=U.playback_progress_2s_url;this.T=U.playback_progress_10s_url}; Er3=function(){if(R$===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(Y){}a:{try{var U=!!self.localStorage}catch(Y){U=!1}if(U&&(U=g.MQ(g.Ib()+"::yt-player"))){R$=new Oe(U);break a}R$=void 0}}return R$}; g.a$=function(){var U=Er3();if(!U)return{};try{var Y=U.get("yt-player-lv");return JSON.parse(Y||"{}")}catch(A){return{}}}; g.orX=function(U){var Y=Er3();Y&&(U=JSON.stringify(U),Y.set("yt-player-lv",U))}; g.xQ=function(U){return g.a$()[U]||0}; g.sJ=function(U,Y){var A=g.a$();Y!==A[U]&&(Y!==0?A[U]=Y:delete A[U],g.orX(A))}; g.fD=function(U){return g.S(function(Y){return Y.return(g.g7(zAl(),U))})}; SK=function(U,Y,A,c,d,T,E,L){var r,l,P,V,v,H;return g.S(function(G){switch(G.T){case 1:return r=g.xQ(U),r===4?G.return(4):g.x(G,g.Cg(),2);case 2:l=G.Y;if(!l)throw g.F4("wiac");if(!L||E===void 0){G.uY(3);break}return g.x(G,LP3(L,E),4);case 4:E=G.Y;case 3:return P=A.lastModified||"0",g.x(G,g.fD(l),5);case 5:return V=G.Y,g.J3(G,6),hG++,g.x(G,g.aE(V,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",kt:!0},function(F){if(T!==void 0&&E!==void 0){var N=""+U+"|"+Y.id+"|"+P+"|"+String(T).padStart(10, "0");N=g.x6(F.objectStore("media"),E,N)}else N=g.NC.resolve(void 0);var e=rEX(U,Y.pV()),B=rEX(U,!Y.pV()),f={fmts:lKX(c),format:A||{}};e=g.x6(F.objectStore("index"),f,e);var h=c.downloadedEndTime===-1;f=h?F.objectStore("index").get(B):g.NC.resolve(void 0);var Q={fmts:"music",format:{}};F=h&&d&&!Y.pV()?g.x6(F.objectStore("index"),Q,B):g.NC.resolve(void 0);return g.NC.all([F,f,N,e]).then(function(K){K=g.J(K);K.next();K=K.next().value;hG--;var D=g.xQ(U);if(D!==4&&h&&d||K!==void 0&&g.Pd3(K.fmts))D=1,g.sJ(U, D);return D})}),8); case 8:return G.return(G.Y);case 6:v=g.XE(G);hG--;H=g.xQ(U);if(H===4)return G.return(H);g.sJ(U,4);throw v;}})}; g.V7X=function(U){var Y,A;return g.S(function(c){if(c.T==1)return g.x(c,g.Cg(),2);if(c.T!=3){Y=c.Y;if(!Y)throw g.F4("ri");return g.x(c,g.fD(Y),3)}A=c.Y;return c.return(g.aE(A,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(d){var T=IDBKeyRange.bound(U+"|",U+"~");return d.objectStore("index").getAll(T).then(function(E){return E.map(function(L){return L?L.format:{}})})}))})}; vrX=function(U,Y,A,c,d){var T,E,L;return g.S(function(r){if(r.T==1)return g.x(r,g.Cg(),2);if(r.T!=3){T=r.Y;if(!T)throw g.F4("rc");return g.x(r,g.fD(T),3)}E=r.Y;L=g.aE(E,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(l){var P=""+U+"|"+Y+"|"+A+"|"+String(c).padStart(10,"0");return l.objectStore("media").get(P)}); return d?r.return(L.then(function(l){if(l===void 0)throw Error("No data from indexDb");return $Kl(d,l)}).catch(function(l){throw new g.Do("Error while reading chunk: "+l.name+", "+l.message); })):r.return(L)})}; g.Pd3=function(U){return U?U==="music"?!0:U.includes("dlt=-1")||!U.includes("dlt="):!1}; rEX=function(U,Y){return""+U+"|"+(Y?"v":"a")}; lKX=function(U){var Y={};return YG((Y.dlt=U.downloadedEndTime.toString(),Y.mket=U.maxKnownEndTime.toString(),Y.avbr=U.averageByteRate.toString(),Y))}; GEl=function(U){var Y={},A={};U=g.J(U);for(var c=U.next();!c.done;c=U.next()){var d=c.value,T=d.split("|");d.match(g.HAY)?(c=Number(T.pop()),isNaN(c)?A[d]="?":(T=T.join("|"),(d=Y[T])?(T=d[d.length-1],c===T.end+1?T.end=c:d.push({start:c,end:c})):Y[T]=[{start:c,end:c}])):A[d]="?"}U=g.J(Object.keys(Y));for(c=U.next();!c.done;c=U.next())c=c.value,A[c]=Y[c].map(function(E){return E.start+"-"+E.end}).join(","); return A}; MJ=function(U){g.l6.call(this);this.Y=null;this.W=new Qf;this.Y=null;this.J=new Set;this.crossOrigin=U||""}; WPc=function(U,Y,A){for(A=bN(U,A);A>=0;){var c=U.levels[A];if(c.isLoaded(pD(c,Y))&&(c=g.Q6(c,Y)))return c;A--}return g.Q6(U.levels[0],Y)}; iA9=function(U,Y,A){A=bN(U,A);for(var c,d;A>=0;A--)if(c=U.levels[A],d=pD(c,Y),!c.isLoaded(d)){c=U;var T=A,E=T+"-"+d;c.J.has(E)||(c.J.add(E),c.W.enqueue(T,{R$:T,yQ:d}))}wJ8(U)}; wJ8=function(U){if(!U.Y&&!U.W.isEmpty()){var Y=g.M(U.W.remove());U.Y=JEV(U,Y)}}; JEV=function(U,Y){var A=document.createElement("img");U.crossOrigin&&(A.crossOrigin=U.crossOrigin);A.src=U.levels[Y.R$].GN(Y.yQ);A.onload=function(){var c=Y.R$,d=Y.yQ;U.Y!==null&&(U.Y.onload=null,U.Y=null);c=U.levels[c];c.loaded.add(d);wJ8(U);var T=c.columns*c.rows;d*=T;c=Math.min(d+T-1,c.qb()-1);d=[d,c];U.publish("l",d[0],d[1])}; return A}; g.Ze=function(U,Y,A,c){this.level=U;this.j=Y;this.loaded=new Set;this.level=U;this.j=Y;U=A.split("#");this.width=Math.floor(Number(U[0]));this.height=Math.floor(Number(U[1]));this.frameCount=Math.floor(Number(U[2]));this.columns=Math.floor(Number(U[3]));this.rows=Math.floor(Number(U[4]));this.Y=Math.floor(Number(U[5]));this.W=U[6];this.signature=U[7];this.videoLength=c}; pD=function(U,Y){return Math.floor(Y/(U.columns*U.rows))}; g.Q6=function(U,Y){Y>=U.bW()&&U.DC();var A=pD(U,Y),c=U.columns*U.rows,d=Y%c;Y=d%U.columns;d=Math.floor(d/U.columns);var T=U.DC()+1-c*A;if(T1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; FP3=function(U,Y,A){return(U=U.levels[Y])?U.FG(A):-1}; bN=function(U,Y){var A=U.j.get(Y);if(A)return A;A=U.levels.length;for(var c=0;c=Y)return U.j.set(Y,c),c;U.j.set(Y,A-1);return A-1}; mp=function(U,Y,A,c){A=A.split("#");A=[A[1],A[2],0,A[3],A[4],-1,A[0],""].join("#");g.Ze.call(this,U,Y,A,0);this.T=null;this.K=c?2:0}; gA=function(U,Y,A,c){OJ.call(this,U,0,void 0,Y,!(c===void 0||!c));for(U=0;U(A!=null?A:50)&&(A=aKS.shift())&&qJ.delete(A),A=d),d!==A&&U.Kd("ssei","dcpn_"+d+"_"+A+"_"+U.clientPlaybackNonce),A)}; I$=function(U,Y){var A=Y.raw_watch_next_response;if(!A){var c=Y.watch_next_response;c&&(A=JSON.parse(c))}if(A){U.Uv=A;var d=U.Uv.playerCueRangeSet;d&&g.CD(U,d);var T=U.Uv.playerOverlays;if(T){var E=T.playerOverlayRenderer;if(E){var L=E.autonavToggle;L&&(U.autoplaySwitchButtonRenderer=g.O(L,xKc),U.S("web_player_autonav_use_server_provided_state")&&US(U)&&(U.autonavState=U.autoplaySwitchButtonRenderer.enabled?2:1));var r=E.videoDetails;if(r){var l=r.embeddedPlayerOverlayVideoDetailsRenderer;var P=r.playerOverlayVideoDetailsRenderer; P&&(P.title&&(Y.title=g.wB(P.title)),P.subtitle&&(Y.subtitle=g.wB(P.subtitle)))}g.M0(U.Ww)&&(U.q5=!!E.addToMenu);soV(U,E.shareButton);E.startPosition&&E.endPosition&&(U.progressBarStartPosition=E.startPosition,U.progressBarEndPosition=E.endPosition);var V=E.gatedActionsOverlayRenderer;V&&(U.zY=g.O(V,fK4));var v,H,G,F=g.O((v=U.getWatchNextResponse())==null?void 0:(H=v.playerOverlays)==null?void 0:(G=H.playerOverlayRenderer)==null?void 0:G.infoPanel,hA4);if(F){U.oO=Number(F==null?void 0:F.durationMs)|| NaN;if(F==null?0:F.infoPanelOverviewViewModel)U.mA=F==null?void 0:F.infoPanelOverviewViewModel;if(F==null?0:F.infoPanelDetailsViewModel)U.v7=F==null?void 0:F.infoPanelDetailsViewModel}U.showSeekingControls=!!E.showSeekingControls}}var N,e,B=(N=U.getWatchNextResponse())==null?void 0:(e=N.contents)==null?void 0:e.twoColumnWatchNextResults;if(B){var f=B.desktopOverlay&&g.O(B.desktopOverlay,Slv);f&&(f.suppressShareButton&&(U.showShareButton=!1),f.suppressWatchLaterButton&&(U.q5=!1))}l&&M7Y(U,Y,l);var h= EI(0,Y.autoplay_count),Q=g.M(U.getWatchNextResponse()),K,D=(K=Q.contents)==null?void 0:K.twoColumnWatchNextResults,c3,TV,U9,LY=(c3=Q.playerOverlays)==null?void 0:(TV=c3.playerOverlayRenderer)==null?void 0:(U9=TV.autoplay)==null?void 0:U9.playerOverlayAutoplayRenderer,q=cEX(U),FE,B3=(FE=Q.contents)==null?void 0:FE.singleColumnWatchNextResults;if(B3){var O9;if(((O9=B3.autoplay)==null?0:O9.autoplay)&&!B3.playlist){var tq=B3.autoplay.autoplay.sets,Lj={},kl=new g.Bb(U.L()),eS=null,To;if(tq){for(var t= g.J(tq),zV=t.next();!zV.done;zV=t.next()){var Im=zV.value.autoplayVideoRenderer;if(Im&&Im.compactVideoRenderer){eS=Im.compactVideoRenderer;break}}if(To=tq[0].autoplayVideo){var jL=To.clickTrackingParams;jL&&(Lj.itct=jL);Lj.autonav="1";Lj.playnext=String(h)}}else Lj.feature="related-auto";var Rm=g.O(To,g.Yp);if(eS){kl.videoId=eS.videoId;var vW=eS.shortBylineText;vW&&(kl.author=g.wB(vW));var b8=eS.title;b8&&(kl.title=g.wB(b8))}else Rm!=null&&Rm.videoId&&(kl.videoId=Rm.videoId);kl.Ti=Lj;U.suggestions= [];U.q6=kl}}if(q){for(var hq=[],am=g.J(q),k=am.next();!k.done;k=am.next()){var R=k.value,a=void 0,b=null;if(R.endScreenVideoRenderer){var m=R.endScreenVideoRenderer,N4=m.title;b=new g.Bb(U.L());b.videoId=m.videoId;b.lengthSeconds=m.lengthInSeconds||0;var A3=m.publishedTimeText;A3&&(b.publishedTimeText=g.wB(A3));var W3=m.shortBylineText;W3&&(b.author=g.wB(W3));var dX=m.shortViewCountText;dX&&(b.shortViewCount=g.wB(dX));if(N4){b.title=g.wB(N4);var ac=N4.accessibility;if(ac){var KY=ac.accessibilityData; KY&&KY.label&&(b.ariaLabel=KY.label)}}var jz=m.navigationEndpoint;if(jz){a=jz.clickTrackingParams;var NV=g.O(jz,g.Yp),fa=g.O(jz,g.pW);NV?b.Mx=NV:fa!=null&&(b.watchUrl=fa.url)}var n6=m.thumbnailOverlays;if(n6)for(var na=g.J(n6),Dp=na.next();!Dp.done;Dp=na.next()){var F1=Dp.value.thumbnailOverlayTimeStatusRenderer;if(F1)if(F1.style==="LIVE"){b.isLivePlayback=!0;break}else if(F1.style==="UPCOMING"){b.isUpcoming=!0;break}}b.X=JG(m.thumbnail)}else if(R.endScreenPlaylistRenderer){var $Z=R.endScreenPlaylistRenderer, ag=$Z.navigationEndpoint;if(!ag)continue;var G$=g.O(ag,g.Yp);if(!G$)continue;var xO=G$.videoId;b=new g.eK(U.L());b.playlistId=$Z.playlistId;b.playlistLength=Number($Z.videoCount)||0;b.Y=xO||null;b.videoId=xO;var OR=$Z.title;OR&&(b.title=g.wB(OR));var m$=$Z.shortBylineText;m$&&(b.author=g.wB(m$));a=ag.clickTrackingParams;b.X=JG($Z.thumbnail)}b&&(a&&(b.sessionData={itct:a}),hq.push(b))}U.suggestions=hq}if(LY){U.r8=!!LY.preferImmediateRedirect;U.Va=U.Va||!!LY.webShowNewAutonavCountdown;U.FO=U.FO||!!LY.webShowBigThumbnailEndscreen; if(U.Va||U.FO){var B7=D||null,T$=new g.Bb(U.L());T$.videoId=LY.videoId;var Ix=LY.videoTitle;if(Ix){T$.title=g.wB(Ix);var zd=Ix.accessibility;if(zd){var RM=zd.accessibilityData;RM&&RM.label&&(T$.ariaLabel=RM.label)}}var yw=LY.byline;yw&&(T$.author=g.wB(yw));var WG=LY.publishedTimeText;WG&&(T$.publishedTimeText=g.wB(WG));var e1=LY.shortViewCountText;e1&&(T$.shortViewCount=g.wB(e1));var Bd=LY.thumbnailOverlays;if(Bd)for(var Xg=g.J(Bd),TN=Xg.next();!TN.done;TN=Xg.next()){var l7=TN.value.thumbnailOverlayTimeStatusRenderer; if(l7)if(l7.style==="LIVE"){T$.isLivePlayback=!0;break}else if(l7.style==="UPCOMING"){T$.isUpcoming=!0;break}else if(l7.style==="DEFAULT"&&l7.text){T$.lengthText=g.wB(l7.text);var EX=l7.text.accessibility;if(EX){var ol=EX.accessibilityData;ol&&ol.label&&(T$.t7=ol.label||"")}break}}T$.X=JG(LY.background);var ke=LY.nextButton;if(ke){var Rn=ke.buttonRenderer;if(Rn){var an=Rn.navigationEndpoint;if(an){var xe=g.O(an,g.Yp);xe&&(T$.Mx=xe)}}}if(LY.topBadges){var sq=LY.topBadges[0];if(sq){var fw=g.O(sq,bAc); fw&&fw.style==="BADGE_STYLE_TYPE_PREMIUM"&&(T$.nHY=!0)}}var d_=LY.alternativeTitle;d_&&(T$.OB=g.wB(d_));var aM={autonav:"1",playnext:String(h)};T$.playlistId&&(aM.autoplay="1");if(B7){var TO,O2,zN,hx,LK=(TO=B7.autoplay)==null?void 0:(O2=TO.autoplay)==null?void 0:(zN=O2.sets)==null?void 0:(hx=zN[0])==null?void 0:hx.autoplayVideo;if(LK){var S1=LK.clickTrackingParams;S1&&(aM.itct=S1);var rs=g.O(LK,g.Yp);rs&&(T$.ac=rs)}}else if(LY){var M2,bM,pw,Qd=(M2=LY.nextButton)==null?void 0:(bM=M2.buttonRenderer)== null?void 0:(pw=bM.navigationEndpoint)==null?void 0:pw.clickTrackingParams;Qd&&(aM.itct=Qd)}aM.itct||(aM.feature="related-auto");T$.Ti=aM;U.suggestions||(U.suggestions=[]);U.q6=T$}LY.countDownSecs!=null&&(U.G4=LY.countDownSecs*1E3);LY.countDownSecsForFullscreen!=null&&(U.DZ=LY.countDownSecsForFullscreen>=0?LY.countDownSecsForFullscreen*1E3:-1);U.S("web_autonav_color_transition")&&LY.watchToWatchTransitionRenderer&&(U.watchToWatchTransitionRenderer=g.O(LY.watchToWatchTransitionRenderer,pJV))}var l1= cEX(U);if(l1){var H9,ZF,P0,Vl=l1==null?void 0:(H9=l1[0])==null?void 0:(ZF=H9.endScreenVideoRenderer)==null?void 0:(P0=ZF.navigationEndpoint)==null?void 0:P0.clickTrackingParams,Oq=g.Ai(U);Vl&&Oq&&(Oq.sessionData={itct:Vl})}U.Uv.currentVideoThumbnail&&(U.X=JG(U.Uv.currentVideoThumbnail));var EW,mU,gh,or,yd,GP=(EW=U.Uv)==null?void 0:(mU=EW.contents)==null?void 0:(gh=mU.twoColumnWatchNextResults)==null?void 0:(or=gh.results)==null?void 0:(yd=or.results)==null?void 0:yd.contents;if(GP&&GP[1]){var nw, DF,xC,Ff,gd=(nw=GP[1].videoSecondaryInfoRenderer)==null?void 0:(DF=nw.owner)==null?void 0:(xC=DF.videoOwnerRenderer)==null?void 0:(Ff=xC.thumbnail)==null?void 0:Ff.thumbnails;gd&&gd.length&&(U.profilePicture=gd[gd.length-1].url)}var In=LU(Y),$g,W9=($g=U.getWatchNextResponse())==null?void 0:$g.onResponseReceivedEndpoints;if(W9)for(var wU=g.J(W9),v0=wU.next();!v0.done;v0=wU.next()){var yN=v0.value;g.O(yN,cT)&&(U.Di=g.O(yN,cT));var iz=g.O(yN,Qov),uM=void 0;if((uM=iz)==null?0:uM.entityKeys)U.Qs=iz.entityKeys|| [],iz.visibleOnLoadKeys&&(U.visibleOnLoadKeys=iz.visibleOnLoadKeys)}if(U.S("web_key_moments_markers")){var Lq=g.dS.getState().entities,Vc=g.YX("visibility_override","markersVisibilityOverrideEntity");var nF=cR(Lq,"markersVisibilityOverrideEntity",Vc);U.VJ=(nF==null?void 0:nF.videoId)===(U.videoId||In)&&(nF==null?0:nF.visibilityOverrideMarkersKey)?nF.visibilityOverrideMarkersKey:U.visibleOnLoadKeys;U.visibleOnLoadKeys=[].concat(g.X(U.VJ))}}}; US=function(U){var Y;return((Y=U.autoplaySwitchButtonRenderer)==null?void 0:Y.enabled)!==void 0}; Tk=function(U){return!!(U.W&&U.W.videoInfos&&U.W.videoInfos.length)}; g.rS=function(U){var Y=U.Z;U.S("html5_gapless_unlimit_format_selection")&&ES(U)&&(Y=!1);var A=!!U.Y&&U.Y.Sc,c=U.Ww,d=U.xJ(),T=op(U),E=U.Ly,L=Y,r=U.isOtf();Y=U.f_();var l=U.i$,P=U.getUserAudio51Preference(),V=zk(U),v=new Fd3(c);if(c.O3()||c.S("html5_logging_format_selection"))v.T=!0;v.kE=T;v.Ly=E&&c.Z;v.jX=P;g.mm("windows nt 5.1")&&!g.K1&&(v.Gr=!0);if(T=d)T=g.cb(c)?Ve9(c):!1;T&&(v.Pw=!0);L&&(v.Gr=!0,v.qz=!0);r&&!c.S("html5_otf_prefer_vp9")&&(v.Gr=!0);c.playerStyle==="picasaweb"&&(r&&(v.Gr=!1),v.Hw= !1);l&&(v.Gr=!0);Rs(c.K,as.CHANNELS)&&(c.S("html5_enable_ac3")&&(v.j=!0),c.S("html5_enable_eac3")&&(v.K=!0),c.S("html5_enable_ac3_gapless")&&(v.QJ=!0));c.S("html5_block_8k_hfr")&&(v.dW=!0);v.J=g.H_(c.experiments,"html5_max_selectable_quality_ordinal");v.G=g.H_(c.experiments,"html5_min_selectable_quality_ordinal");Xp&&(v.mH=480);if(A||d)v.Hw=!1;v.Zf=!1;v.disableAv1=V;A=Z7(c,v.Y,void 0,v.disableAv1);A>0&&A<2160&&(Fg()||c.S("html5_format_hybridization"))&&(v.Y.supportsChangeType=+Fg(),v.cg=A);A>=2160&& (v.ov=!0);yrE()&&(v.Y.serveVp9OverAv1IfHigherRes=0,v.Me=!1);v.f_=Y;v.Uv=g.IE||Au()&&!Y?!1:!0;v.Z=c.S("html5_format_hybridization");v.i$=c.S("html5_disable_encrypted_vp9_live_non_2k_4k");Lk(U)&&(v.Lr=U.S("html5_prefer_language_over_codec"));nl()&&U.playerResponse&&U.playerResponse.playerConfig&&U.playerResponse.playerConfig.webPlayerConfig&&U.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(v.j=!0,v.K=!0);U.Z&&U.isAd()&&(U.fl&&(v.X=U.fl),U.BN&&(v.W=U.BN));v.eX=U.isLivePlayback&& U.h8()&&U.Ww.S("html5_drm_live_audio_51");v.VJ=U.MD;v.ws=!Lk(U)&&U.S("html5_disable_voice_boost_for_cabr");return U.zs=v}; zk=function(U){return U.Ww.S("html5_disable_av1")||U.S("html5_gapless_shorts_disable_av1")&&ES(U)?!0:!1}; ZAE=function(U){Z5("drm_pb_s",void 0,U.Pw);U.dW||U.Y&&tt(U.Y);var Y={};U.Y&&(Y=Tt3(U.Yn,g.rS(U),U.Ww.K,U.Y,function(A){return U.publish("ctmp","fmtflt",A)},!0,new Set)); Y=new U5(Y,U.Ww,U.K8,U.useCobaltWidevine?nl()?lI(U):!1:!1,function(A,c){U.wW(A,c)}); g.Z(U,Y);U.J1=!1;U.loading=!0;ebX(Y,function(A){Z5("drm_pb_f",void 0,U.Pw);for(var c=g.J(A),d=c.next();!d.done;d=c.next())switch(d=d.value,d.flavor){case "fairplay":d.dW=U.dW;d.AD=U.AD;d.W2=U.W2;break;case "widevine":d.GT=U.GT}U.pc=A;if(U.pc.length>0&&(U.K=U.pc[0],U.Ww.O3())){A={};c=g.J(Object.entries(U.K.Y));for(d=c.next();!d.done;d=c.next()){var T=g.J(d.value);d=T.next().value;T=T.next().value;var E="unk";(d=d.match(/(.*)codecs="(.*)"/))&&(E=d[2]);A[E]=T}U.wW("drmProbe",A)}U.zf()})}; OAX=function(U,Y){if(Y.length===0||PT(U))return null;U.Ww.K.W&&(bq=!0);var A=U.JB;var c=U.lengthSeconds,d=U.isLivePlayback,T=U.yT,E=U.Ww,L=o03(Y);if(d||T){E=E.experiments;c=new FR("",E,!0);c.T=!T;c.Sc=!0;c.isManifestless=!0;c.isLive=!T;c.yT=T;Y=g.J(Y);for(d=Y.next();!d.done;d=Y.next()){var r=d.value;d=tw(r,A);L=bB(r);L=BM(L.m5||r.url||"",L.Fs,L.s);var l=L.get("id");l&&l.includes("%7E")&&(c.X=!0);var P=void 0;l=(P=E)==null?void 0:P.lY("html5_max_known_end_time_rebase");P=Number(r.targetDurationSec|| 5);r=Number(r.maxDvrDurationSec||14400);var V=Number(L.get("mindsq")||L.get("min_sq")||"0"),v=Number(L.get("maxdsq")||L.get("max_sq")||"0")||Infinity;c.u1=c.u1||V;c.Gh=c.Gh||v;var H=!on(d.mimeType);L&&wO(c,new EH(L,d,{Pl:P,zI:H,x$:r,u1:V,Gh:v,FZ:300,yT:T,NP:l}))}A=c}else if(L==="FORMAT_STREAM_TYPE_OTF"){c=c===void 0?0:c;T=new FR("",E.experiments,!1);T.duration=c||0;E=g.J(Y);for(c=E.next();!c.done;c=E.next())c=c.value,Y=tw(c,A,T.duration),d=bB(c),(d=BM(d.m5||c.url||"",d.Fs,d.s))&&(Y.streamType==="FORMAT_STREAM_TYPE_OTF"? wO(T,new o7(d,Y,"sq/0")):wO(T,new HM(d,Y,Q_(c.initRange),Q_(c.indexRange))));T.isOtf=!0;A=T}else{c=c===void 0?0:c;T=new FR("",E.experiments,!1);T.duration=c||0;E=g.J(Y);for(c=E.next();!c.done;c=E.next())L=c.value,c=tw(L,A,T.duration),Y=Q_(L.initRange),d=Q_(L.indexRange),l=bB(L),(L=BM(l.m5||L.url||"",l.Fs,l.s))&&wO(T,new HM(L,c,Y,d));A=T}T=U.isLivePlayback&&!U.yT&&!U.jX&&!U.isPremiere;U.S("html5_live_head_playable")&&(!V5(U)&&T&&U.wW("missingLiveHeadPlayable",{}),U.Ww.Pw==="yt"&&(A.dW=!0));return A}; PT=function(U){return nl()?!lI(U):I4()?!(!U.dW||!U.S("html5_enable_safari_fairplay")&&oy()):!1}; lI=function(U){return U.S("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.CD=function(U,Y){Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next())if(A=A.value,A.cueRangeSetIdentifier){var c=void 0;U.oU.set(A.cueRangeSetIdentifier,(c=A.playerCueRanges)!=null?c:[])}}; $p=function(U){return!(!U.Y||!U.Y.isManifestless)}; vT=function(U){return U.Me?U.isLowLatencyLiveStream&&U.Y!=null&&x2(U.Y)>=5:U.isLowLatencyLiveStream&&U.Y!=void 0&&x2(U.Y)>=5}; mKv=function(U){return nl()&&lI(U)?!1:PT(U)&&(g.XA(U.Ww)?!U.isLivePlayback:U.hlsvp)||!oy()||U.hY?!0:!1}; nrc=function(U){U.loading=!0;U.s$=!1;if(grc(U))g.V7X(U.videoId).then(function(c){yEl(U,c)}).then(function(){U.zf()}); else{Ag(U.KU)||g.Md(new g.Do("DASH MPD Origin invalid: ",U.KU));var Y=U.KU,A=g.H_(U.Ww.experiments,"dash_manifest_version")||4;Y=g.xJ(Y,{mpd_version:A});U.isLowLatencyLiveStream&&U.latencyClass!=="NORMAL"||(Y=g.xJ(Y,{pacing:0}));v0c(Y,U.Ww.experiments,U.isLivePlayback).then(function(c){U.Ky()||(HT(U,c,!0),Z5("mrc",void 0,U.Pw),U.zf())},function(c){U.Ky()||(U.loading=!1,U.publish("dataloaderror",new a9("manifest.net.retryexhausted",{backend:"manifest", rc:c.status},1)))}); Z5("mrs",void 0,U.Pw)}}; yEl=function(U,Y){var A=Y.map(function(r){return r.itag}),c; if((c=U.playerResponse)!=null&&c.streamingData){c=[];if(U.S("html5_offline_always_use_local_formats")){A=0;for(var d=g.J(Y),T=d.next();!T.done;T=d.next()){T=T.value;var E=Object.assign({},T);E.signatureCipher="";c.push(E);E=g.J(U.playerResponse.streamingData.adaptiveFormats);for(var L=E.next();!L.done;L=E.next())if(L=L.value,T.itag===L.itag&&T.xtags===L.xtags){A+=1;break}}AP&&(P=H.getInfo().audio.numChannels)}P>2&&U.wW("hlschl",{mn:P});var N;((N=U.zs)==null?0:N.T)&&U.wW("hlsfmtaf",{itags:V.join(".")});var e;if(U.S("html5_enable_vp9_fairplay")&&((e=U.K)==null?0:I7(e)))for(U.wW("drm",{sbdlfbk:1}),P=g.J(U.pc),V=P.next();!V.done;V=P.next())if(V=V.value,D7(V)){U.K=V;break}iI(U,l)})}return a4()}; qlE=function(U){if(U.isExternallyHostedPodcast&&U.fV){var Y=wS(U.fV);if(!Y[0])return a4();U.sSv=Y[0];return hI8(U.Ww,Y[0]).then(function(A){iI(U,A)})}return U.SL&&U.WV?f$X(U.Ww,U.isAd(),U.SL).then(function(A){iI(U,A)}):a4()}; U_8=function(U){if(U.isExternallyHostedPodcast)return a4();var Y=wS(U.fV,U.TF);if(U.hlsvp){var A=jo3(U.hlsvp,U.clientPlaybackNonce,U.nU);Y.push(A)}return sWV(U.Ww,U.isAd(),Y,CdX(U)).then(function(c){iI(U,c)})}; iI=function(U,Y){U.qe=Y;U.v3(new iB(g.mk(U.qe,function(A){return A.getInfo()})))}; CdX=function(U){var Y={cpn:U.clientPlaybackNonce,c:U.Ww.Y.c,cver:U.Ww.Y.cver};U.FU&&(Y.ptk=U.FU,Y.oid=U.F2,Y.ptchn=U.QY,Y.pltype=U.eb,U.ob&&(Y.m=U.ob));return Y}; g.Ji=function(U){return PT(U)&&U.dW?(U={},U.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",U):U.T&&U.T.JB||null}; YrX=function(U){var Y=Fr(U);return Y&&Y.text?g.wB(Y.text):U.paidContentOverlayText}; AKX=function(U){var Y=Fr(U);return Y&&Y.durationMs?il(Y.durationMs):U.paidContentOverlayDurationMs}; Fr=function(U){var Y,A,c;return U.playerResponse&&U.playerResponse.paidContentOverlay&&U.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.O((Y=U.Uv)==null?void 0:(A=Y.playerOverlays)==null?void 0:(c=A.playerOverlayRenderer)==null?void 0:c.playerDisclosure,cKv)||null}; jt=function(U){var Y="";if(U.sX)return U.sX;U.isLivePlayback&&(Y=U.allowLiveDvr?"dvr":U.isPremiere?"lp":U.jX?"window":"live");U.yT&&(Y="post");return Y}; g.Nm=function(U,Y){return typeof U.keywords[Y]!=="string"?null:U.keywords[Y]}; d_v=function(U){return!!U.jL||!!U.tT||!!U.Ut||!!U.JD||U.uT||U.G.focEnabled||U.G.rmktEnabled}; g.ti=function(U){return!!(U.KU||U.fV||U.SL||U.hlsvp||U.xO())}; De=function(U){if(U.S("html5_onesie")&&U.errorCode)return!1;var Y=g.Go(U.Hw,"ypc");U.ypcPreview&&(Y=!1);return U.Bp()&&!U.loading&&(g.ti(U)||g.Go(U.Hw,"heartbeat")||Y)}; wS=function(U,Y){U=cn(U);var A={};if(Y){Y=g.J(Y.split(","));for(var c=Y.next();!c.done;c=Y.next())(c=c.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(A[c[1]]={width:c[2],height:c[3]})}Y=g.J(U);for(c=Y.next();!c.done;c=Y.next()){c=c.value;var d=A[c.itag];d&&(c.width=d.width,c.height=d.height)}return U}; et=function(U){var Y=U.getAvailableAudioTracks();Y=Y.concat(U.jo);for(var A=0;A0:U.Zh?!1:U.Ww.Ie||U.Ww.E9||!g.ay(U.Ww)?!0:!1:(U.Zh?0:U.Ie)&&g.ay(U.Ww)?!0:!1;U.S("html5_log_detailpage_autoplay")&&Mm(U)==="detailpage"&&U.wW("autoplay_info",{autoplay:U.Vz,autonav:U.isAutonav,wasDompaused:U.Zh,result:Y});return Y}; g.Za=function(U){return U.oauthToken||U.Ww.DG}; WM3=function(U){return Lk(U)&&!g.KD(U)}; ifc=function(U){if(U.S("html5_stateful_audio_normalization")){var Y=1,A=g.H_(U.Ww.experiments,"html5_default_ad_gain");A&&U.isAd()&&(Y=A);var c;if(A=((c=U.j)==null?void 0:c.audio.W)||U.q4){c=(0,g.y)();U.K2=2;var d=c-U.Ww.Aw<=U.maxStatefulTimeThresholdSec*1E3;U.applyStatefulNormalization&&d?U.K2=4:d||(U.Ww.W7=Infinity,U.Ww.Aw=NaN);d=(U.K2===4?g.Bi(U.Ww.W7,U.minimumLoudnessTargetLkfs,U.loudnessTargetLkfs):U.loudnessTargetLkfs)-A;if(U.K2!==4){var T,E,L,r,l=((T=U.playerResponse)==null?void 0:(E=T.playerConfig)== null?void 0:(L=E.audioConfig)==null?void 0:(r=L.loudnessNormalizationConfig)==null?void 0:r.statelessLoudnessAdjustmentGain)||0;d+=l}d=Math.min(d,0);U.preserveStatefulLoudnessTarget&&(U.Ww.W7=A+d,U.Ww.Aw=c);U=Math.min(1,Math.pow(10,d/20))||Y}else U=wNl(U)}else U=wNl(U);return U}; wNl=function(U){var Y=1,A=g.H_(U.Ww.experiments,"html5_default_ad_gain");A&&U.isAd()&&(Y=A);var c;if(A=((c=U.j)==null?void 0:c.audio.j)||U.Vt)U.K2=1;return Math.min(1,Math.pow(10,-A/20))||Y}; op=function(U){var Y=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],A=cI(U.Ww)==="TVHTML5_SIMPLY"&&U.Ww.Y.ctheme==="MUSIC";U.NU||!g.pV(U.Ww)&&!A||!Y.includes(U.musicVideoType)&&!U.isExternallyHostedPodcast||(U.NU=!0);if(Y=g.yB())Y=/Starboard\/([0-9]+)/.exec(g.tF()),Y=(Y?parseInt(Y[1],10):NaN)<10;A=U.Ww;A=(cI(A)==="TVHTML5_CAST"||cI(A)==="TVHTML5"&&(A.Y.cver.startsWith("6.20130725")||A.Y.cver.startsWith("6.20130726")))&&U.Ww.Y.ctheme==="MUSIC";var c;if(c=!U.NU)A||(A=U.Ww,A=cI(A)=== "TVHTML5"&&A.Y.cver.startsWith("7")),c=A;c&&!Y&&(Y=U.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",A=(U.S("cast_prefer_audio_only_for_atv_and_uploads")||U.S("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&U.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",Y||A||U.isExternallyHostedPodcast)&&(U.NU=!0);return U.Ww.deviceIsAudioOnly||U.NU&&U.Ww.Z}; OS=function(U){var Y,A,c;return((Y=U.playerResponse)==null?void 0:(A=Y.playerConfig)==null?void 0:(c=A.compositeVideoConfig)==null?void 0:c.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.JKX=function(U){return U.S("html5_enable_sabr_live_captions")&&U.Sc()&&Lk(U)||OS(U)}; m9=function(U){var Y,A,c;return!!((Y=U.playerResponse)==null?0:(A=Y.playerConfig)==null?0:(c=A.mediaCommonConfig)==null?0:c.splitScreenEligible)}; gS=function(U){var Y;return!((Y=U.playerResponse)==null||!Y.compositePlayabilityStatus)}; FM9=function(U){return isNaN(U)?0:Math.max((Date.now()-U)/1E3-30,0)}; y5=function(U){return!(!U.Tc||!U.Ww.Z)&&U.xO()}; nk=function(U){return U.xn&&U.enableServerStitchedDai}; jXc=function(U){return U.Hl&&!U.Md}; Lk=function(U){var Y=U.S("html5_enable_sabr_on_drive")&&U.Ww.Pw==="gd";if(U.V_)return U.Hl&&U.wW("fds",{fds:!0},!0),!1;if(U.Ww.Pw!=="yt"&&!Y)return U.Hl&&U.wW("dsvn",{ns:U.Ww.Pw},!0),!1;if(U.cotn||!U.Y||U.Y.isOtf||U.HV&&!U.S("html5_enable_sabr_csdai"))return!1;if(U.S("html5_use_sabr_requests_for_debugging"))return!0;U.Hl&&U.wW("esfw",{usbc:U.Hl,hsu:!!U.Md},!0);if(U.Hl&&U.Md)return!0;if(U.S("html5_remove_client_sabr_determination"))return!1;var A=!U.Y.Sc&&!U.h8();Y=A&&dI&&U.S("html5_enable_sabr_vod_streaming_xhr"); A=A&&!dI&&U.S("html5_enable_sabr_vod_non_streaming_xhr");var c=Da(U),d=U.S("html5_enable_sabr_drm_vod_streaming_xhr")&&dI&&U.h8()&&!U.Y.Sc&&(U.drmProduct==="1"?!1:!0);(Y=Y||A||c||d)&&!U.Md&&U.wW("sabr",{loc:"m"},!0);return Y&&!!U.Md}; Da=function(U){var Y;if(!(Y=dI&&U.Sc()&&U.h8()&&(U.drmProduct==="1"?!1:!0)&&U.S("html5_sabr_live_drm_streaming_xhr"))){Y=U.Sc()&&!U.h8()&&dI;var A=U.Sc()&&U.latencyClass!=="ULTRALOW"&&!U.isLowLatencyLiveStream&&U.S("html5_sabr_live_normal_latency_streaming_xhr"),c=U.isLowLatencyLiveStream&&U.S("html5_sabr_live_low_latency_streaming_xhr"),d=U.latencyClass==="ULTRALOW"&&U.S("html5_sabr_live_ultra_low_latency_streaming_xhr");Y=Y&&(A||c||d)}A=Y;Y=U.enableServerStitchedDai&&A&&U.S("html5_enable_sabr_ssdai_streaming_xhr"); A=!U.enableServerStitchedDai&&A;c=U.Sc()&&!dI&&U.S("html5_enable_sabr_live_non_streaming_xhr");U=dI&&(U.b9()||m9(U)&&U.S("html5_enable_sabr_for_lifa_eligible_streams"));return Y||A||c||U}; g.KD=function(U){return U.r5&&Lk(U)}; grc=function(U){var Y;if(Y=!!U.cotn)Y=U.videoId,Y=!!Y&&g.xQ(Y)===1;return Y&&!U.Tc}; g.Ip=function(U){if(!U.Y||!U.T||!U.j)return!1;var Y=U.Y.Y,A=!!Y[U.T.id]&&ht(Y[U.T.id].Dm.Y);Y=!!Y[U.j.id]&&ht(Y[U.j.id].Dm.Y);return(U.T.itag==="0"||A)&&Y}; uI=function(U){return U.Ib?["OK","LIVE_STREAM_OFFLINE"].includes(U.Ib.status):!0}; LM9=function(U){return(U=U.IF)&&U.showError?U.showError:!1}; Kk=function(U,Y){return U.S(Y)?!0:(U.fflags||"").includes(Y+"=true")}; Nyc=function(U){return U.S("html5_heartbeat_iff_heartbeat_params_filled")}; RAX=function(U,Y){Y.inlineMetricEnabled&&(U.inlineMetricEnabled=!0);Y.playback_progress_0s_url&&(U.JD=new T6c(Y));if(Y=Y.video_masthead_ad_quartile_urls)U.tT=Y.quartile_0_url,U.XR=Y.quartile_25_url,U.Mf=Y.quartile_50_url,U.im=Y.quartile_75_url,U.Vw=Y.quartile_100_url,U.Ut=Y.quartile_0_urls,U.hT=Y.quartile_25_urls,U.Xs=Y.quartile_50_urls,U.HW=Y.quartile_75_urls,U.Vu=Y.quartile_100_urls}; kE3=function(U){var Y={};U=g.J(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var c=A.split("=");c.length===2?Y[c[0]]=c[1]:Y[A]=!0}return Y}; eA3=function(U){if(U){if(rAV(U))return U;U=lZ3(U);if(rAV(U,!0))return U}return""}; g.tQ3=function(U){return U.captionsLanguagePreference||U.Ww.captionsLanguagePreference||g.Nm(U,"yt:cc_default_lang")||U.Ww.Va}; qm=function(U){return!(!U.isLivePlayback||!U.hasProgressBarBoundaries())}; g.Ai=function(U){var Y;return U.q6||((Y=U.suggestions)==null?void 0:Y[0])||null}; g.Ck=function(U){return U.ET&&(U.S("embeds_enable_pfp_always_unbranded")||U.Ww.hW)}; g.UW=function(U){var Y,A;return!!((Y=U.embeddedPlayerConfig)==null?0:(A=Y.embeddedPlayerFlags)==null?0:A.enableMusicUx)}; Y_=function(U){return U.Ww.j&&U.isPrivate}; g.cC=function(U){var Y=U.L(),A=g.Al(Y),c=Y.qz;(Y.S("embeds_web_enable_iframe_api_send_full_embed_url")||Y.S("embeds_web_enable_rcat_validation_in_havs")||Y.S("embeds_enable_autoplay_and_visibility_signals"))&&g.M0(Y)&&(c&&(A.thirdParty=Object.assign({},A.thirdParty,{embedUrl:c})),uAY(A,U));if(c=U.Zf)A.clickTracking={clickTrackingParams:c};c=A.client||{};var d="EMBED",T=Mm(U);T==="leanback"?d="WATCH":Y.S("gvi_channel_client_screen")&&T==="profilepage"?d="CHANNEL":U.i$?d="LIVE_MONITOR":T==="detailpage"? d="WATCH_FULL_SCREEN":T==="adunit"?d="ADUNIT":T==="sponsorshipsoffer"&&(d="UNKNOWN");c.clientScreen=d;if(Y=U.kidsAppInfo)c.kidsAppInfo=JSON.parse(Y);(d=U.Fo)&&!Y&&(c.kidsAppInfo={contentSettings:{ageUpMode:eLE[d]}});if(Y=U.RU)c.unpluggedAppInfo={enableFilterMode:!0};(d=U.unpluggedFilterModeType)&&!Y&&(c.unpluggedAppInfo={filterModeType:By3[d]});if(Y=U.sT)c.unpluggedLocationInfo=Y;A.client=c;c=A.request||{};U.kC&&(c.isPrefetch=!0);if(Y=U.mdxEnvironment)c.mdxEnvironment=Y;if(Y=U.mdxControlMode)c.mdxControlMode= XN3[Y];A.request=c;c=A.user||{};if(Y=U.eX)c.credentialTransferTokens=[{token:Y,scope:"VIDEO"}];if(Y=U.tb)c.delegatePurchases={oauthToken:Y},c.kidsParent={oauthToken:Y};A.user=c;if(c=U.contextParams)A.activePlayers=[{playerContextParams:c}];if(U=U.clientScreenNonce)A.clientScreenNonce=U;return A}; g.Al=function(U){var Y=g.CV(),A=Y.client||{};if(U.forcedExperiments){var c=U.forcedExperiments.split(","),d=[];c=g.J(c);for(var T=c.next();!T.done;T=c.next())d.push(Number(T.value));A.experimentIds=d}if(d=U.homeGroupInfo)A.homeGroupInfo=JSON.parse(d);if(d=U.getPlayerType())A.playerType=d;if(d=U.Y.ctheme)A.theme=d;if(d=U.livingRoomAppMode)A.tvAppInfo=Object.assign({},A.tvAppInfo,{livingRoomAppMode:d});d=U.deviceYear;U.S("html5_propagate_device_year")&&d&&(A.tvAppInfo=Object.assign({},A.tvAppInfo,{deviceYear:d})); if(d=U.livingRoomPoTokenId)A.tvAppInfo=Object.assign({},A.tvAppInfo,{livingRoomPoTokenId:d});Y.client=A;A=Y.user||{};U.enableSafetyMode&&(A=Object.assign({},A,{enableSafetyMode:!0}));U.pageId&&(A=Object.assign({},A,{onBehalfOfUser:U.pageId}));Y.user=A;A=U.qz;U.S("embeds_web_enable_iframe_api_send_full_embed_url")||U.S("embeds_web_enable_rcat_validation_in_havs")||U.S("embeds_enable_autoplay_and_visibility_signals")||!A||(Y.thirdParty={embedUrl:A});return Y}; fh3=function(U,Y,A){var c=U.videoId,d=g.cC(U),T=U.L(),E={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(kS()),referer:document.location.toString(),signatureTimestamp:20201};g.Zo();U.isAutonav&&(E.autonav=!0);g.OI(0,141)&&(E.autonavState=g.OI(0,140)?"STATE_OFF":"STATE_ON");E.autoCaptionsDefaultOn=g.OI(0,66);Gh4(U)&&(E.autoplay=!0);T.Z&&U.cycToken&&(E.cycToken=U.cycToken);T.enablePrivacyFilter&&(E.enablePrivacyFilter=!0);U.isFling&&(E.fling=!0);var L=U.forceAdsUrl;if(L){var r={},l=[];L= L.split(",");L=g.J(L);for(var P=L.next();!P.done;P=L.next()){P=P.value;var V=P.split("|");V.length!==3||P.includes("=")||(V[0]="breaktype="+V[0],V[1]="offset="+V[1],V[2]="url="+V[2]);P={adtype:"video_ad"};V=g.J(V);for(var v=V.next();!v.done;v=V.next()){var H=g.J(v.value.split("="));v=H.next().value;H=TXv(H);P[v]=H.join("=")}V=P.url;v=P.presetad;H=P.viralresponseurl;var G=Number(P.campaignid);if(P.adtype==="in_display_ad")V&&(r.url=V),v&&(r.presetAd=v),H&&(r.viralAdResponseUrl=H),G&&(r.viralCampaignId= String(G));else if(P.adtype==="video_ad"){var F={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(P.offset)||0)}};if(P=khX[P.breaktype])F.breakType=P;V&&(F.url=V);v&&(F.presetAd=v);H&&(F.viralAdResponseUrl=H);G&&(F.viralCampaignId=String(G));l.push(F)}}E.forceAdParameters={videoAds:l,inDisplayAd:r}}U.isInlinePlaybackNoAd&&(E.isInlinePlaybackNoAd=!0);U.isLivingRoomDeeplink&&(E.isLivingRoomDeeplink=!0);r=U.csW;if(r!=null){r={startWalltime:String(r)};if(l=U.ju)r.manifestDuration=String(l||14400); E.liveContext=r}if(U.mutedAutoplay){E.mutedAutoplay=!0;r=T.getWebPlayerContextConfig();var N,e;(r==null?0:(N=r.embedsHostFlags)==null?0:N.allowMutedAutoplayDurationMode)&&(r==null?0:(e=r.embedsHostFlags)==null?0:e.allowMutedAutoplayDurationMode.includes(RLY[U.mutedAutoplayDurationMode]))&&(E.mutedAutoplayDurationMode=RLY[U.mutedAutoplayDurationMode])}if(U.Zh?0:U.Ie)E.splay=!0;N=U.vnd;N===5&&(E.vnd=N);N={};if(e=U.isMdxPlayback)N.triggeredByMdx=e;if(e=U.BT)N.skippableAdsSupported=e.split(",").includes("ska"); if(l=U.P7){e=U.TL;r=[];l=g.J(K1S(l));for(L=l.next();!L.done;L=l.next()){L=L.value;P=L.platform;L={applicationState:L.o$?"INACTIVE":"ACTIVE",clientFormFactor:ahl[P]||"UNKNOWN_FORM_FACTOR",clientName:Cn4[L.Yx]||"UNKNOWN_INTERFACE",clientVersion:L.deviceVersion||"",platform:x_c[P]||"UNKNOWN_PLATFORM"};P={};if(e){V=void 0;try{V=JSON.parse(e)}catch(B){g.Md(B)}V&&(P={params:[{key:"ms",value:V.ms}]},V.advertising_id&&(P.advertisingId=V.advertising_id),V.limit_ad_tracking!==void 0&&V.limit_ad_tracking!== null&&(P.limitAdTracking=V.limit_ad_tracking),L.osName=V.os_name,L.userAgent=V.user_agent,L.windowHeightPoints=V.window_height_points,L.windowWidthPoints=V.window_width_points)}r.push({adSignalsInfo:P,remoteClient:L})}N.remoteContexts=r}e=U.sourceContainerPlaylistId;r=U.serializedMdxMetadata;if(e||r)l={},e&&(l.mdxPlaybackContainerInfo={sourceContainerPlaylistId:e}),r&&(l.serializedMdxMetadata=r),N.mdxPlaybackSourceContext=l;E.mdxContext=N;N=Y.width;N>0&&(E.playerWidthPixels=Math.round(N));if(Y=Y.height)E.playerHeightPixels= Math.round(Y);A!==0&&(E.vis=A);if(A=T.widgetReferrer)E.widgetReferrer=A.substring(0,128);g.ay(T)&&E&&(E.ancestorOrigins=T.ancestorOrigins);U.defaultActiveSourceVideoId&&(E.compositeVideoContext={defaultActiveSourceVideoId:U.defaultActiveSourceVideoId});if(T=T.getWebPlayerContextConfig())E.encryptedHostFlags=T.encryptedHostFlags;c={videoId:c,context:d,playbackContext:{contentPlaybackContext:E}};U.reloadPlaybackParams&&(c.playbackContext.reloadPlaybackContext={reloadPlaybackParams:U.reloadPlaybackParams}); U.contentCheckOk&&(c.contentCheckOk=!0);if(d=U.clientPlaybackNonce)c.cpn=d;if(d=U.playerParams)c.params=d;if(d=U.playlistId)c.playlistId=d;U.racyCheckOk&&(c.racyCheckOk=!0);d=U.L();if(E=d.embedConfig)c.serializedThirdPartyEmbedConfig=E;c.captionParams={};E=g.OI(g.Zo(),65);U.deviceCaptionsOn!=null?c.captionParams.deviceCaptionsOn=U.deviceCaptionsOn:g.Cs(d)&&(c.captionParams.deviceCaptionsOn=E!=null?!E:!1);U.L_&&(c.captionParams.deviceCaptionsLangPref=U.L_);U.VA.length?c.captionParams.viewerSelectedCaptionLangs= U.VA:g.Cs(d)&&(E=g.CJ(),E==null?0:E.length)&&(c.captionParams.viewerSelectedCaptionLangs=E);E=U.fetchType==="onesie"&&U.S("html5_onesie_attach_po_token");T=U.fetchType!=="onesie"&&U.S("html5_non_onesie_attach_po_token");if(E||T)E=U.L(),E.Zh&&(c.serviceIntegrityDimensions={},c.serviceIntegrityDimensions.poToken=E.Zh);d.S("fetch_att_independently")&&(c.attestationRequest={omitBotguardData:!0});c.playbackContext||(c.playbackContext={});c.playbackContext.devicePlaybackCapabilities=sX9(U);c.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&U.wW("noVp9",{});return c}; sX9=function(U){var Y=!(U==null?0:U.f_())&&(U==null?void 0:U.Sc())&&Au(),A;if(!(A=U==null)){A=g.rS(U);U=U.L().K;var c=LD("243");A=!(c&&Nc(A,c,U,!0)===!0)}return{supportsVp9Encoding:!(A||Y),supportXhr:dI}}; SrX=function(U,Y){var A,c,d;return g.S(function(T){if(T.T==1)return A={context:g.Al(U.L()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:U.videoId,cpn:U.clientPlaybackNonce}}]},c=g.AL(hL3),g.x(T,g.KK(Y,A,c),2);d=T.Y;return T.return(d)})}; MQ9=function(U,Y,A){var c=g.H_(Y.experiments,"bg_vm_reinit_threshold");(!gu||(0,g.y)()-gu>c)&&SrX(U,A).then(function(d){d&&(d=d.botguardData)&&g.nJ(d,Y)},function(d){U.Ky()||(d=s7(d),U.wW("attf",d.details))})}; zO=function(U,Y){g.p.call(this);this.app=U;this.state=Y}; lR=function(U,Y,A){U.state.Y.hasOwnProperty(Y)||r_(U,Y,A);U.state.G[Y]=function(){return A.apply(U,g.SS.apply(0,arguments))}; U.state.J.add(Y)}; PC=function(U,Y,A){U.state.Y.hasOwnProperty(Y)||r_(U,Y,A);U.app.L().Z&&(U.state.Z[Y]=function(){return A.apply(U,g.SS.apply(0,arguments))},U.state.J.add(Y))}; r_=function(U,Y,A){U.state.Y[Y]=function(){return A.apply(U,g.SS.apply(0,arguments))}}; g.Vj=function(U,Y,A){return U.state.Y[Y].apply(U.state.Y,g.X(A))}; $_=function(){g.BF.call(this);this.K=new Map}; vC=function(){g.p.apply(this,arguments);this.element=null;this.J=new Set;this.G={};this.Z={};this.Y={};this.X=new Set;this.W=new $_;this.T=new $_;this.j=new $_;this.K=new $_}; bf8=function(U,Y,A){typeof U==="string"&&(U={mediaContentUrl:U,startSeconds:Y,suggestedQuality:A});a:{if((Y=U.mediaContentUrl)&&(Y=/\/([ve]|embed)\/([^#?]+)/.exec(Y))&&Y[2]){Y=Y[2];break a}Y=null}U.videoId=Y;return HC(U)}; HC=function(U,Y,A){if(typeof U==="string")return{videoId:U,startSeconds:Y,suggestedQuality:A};Y={};A=g.J(pNY);for(var c=A.next();!c.done;c=A.next())c=c.value,U[c]&&(Y[c]=U[c]);return Y}; QXX=function(U,Y,A,c){if(g.Yz(U)&&!Array.isArray(U)){Y="playlist list listType index startSeconds suggestedQuality".split(" ");A={};for(c=0;c32&&c.push("hfr");Y.isHdr()&&c.push("hdr");Y.primaries==="bt2020"&&c.push("wcg");A.video_quality_features=c}}if(U=U.getPlaylistId())A.list=U;return A}; Jl=function(){GO.apply(this,arguments)}; FT=function(U,Y){var A={};if(U.app.L().Hw){U=g.J(gyc);for(var c=U.next();!c.done;c=U.next())c=c.value,Y.hasOwnProperty(c)&&(A[c]=Y[c]);if(Y=A.qoe_cat)U="",typeof Y==="string"&&Y.length>0&&(U=Y.split(",").filter(function(d){return yKc.includes(d)}).join(",")),A.qoe_cat=U; ny9(A)}else for(U=g.J(D_9),c=U.next();!c.done;c=U.next())c=c.value,Y.hasOwnProperty(c)&&(A[c]=Y[c]);return A}; ny9=function(U){var Y=U.raw_player_response;if(!Y){var A=U.player_response;A&&(Y=JSON.parse(A))}delete U.player_response;delete U.raw_player_response;if(Y){U.raw_player_response={streamingData:Y.streamingData,playerConfig:Y.playerConfig};var c;if((c=Y.playbackTracking)==null?0:c.qoeUrl)U.raw_player_response=Object.assign({},U.raw_player_response,{playbackTracking:{qoeUrl:Y.playbackTracking.qoeUrl}});var d;if((d=Y.videoDetails)==null?0:d.videoId)U.raw_player_response=Object.assign({},U.raw_player_response, {videoDetails:{videoId:Y.videoDetails.videoId}})}}; j4=function(U,Y,A){var c=U.app.tB(A);if(!c)return 0;U=c-U.app.getCurrentTime(A);return Y-U}; uK3=function(U){var Y=Y===void 0?5:Y;return U?IhX[U]||Y:Y}; g.N9=function(){Jl.apply(this,arguments)}; KM9=function(U){r_(U,"getInternalApiInterface",U.getInternalApiInterface);r_(U,"addEventListener",U.V5);r_(U,"removeEventListener",U.YyI);r_(U,"cueVideoByPlayerVars",U.Bj);r_(U,"loadVideoByPlayerVars",U.lfE);r_(U,"preloadVideoByPlayerVars",U.lhW);r_(U,"getAdState",U.getAdState);r_(U,"sendAbandonmentPing",U.sendAbandonmentPing);r_(U,"setLoopRange",U.setLoopRange);r_(U,"getLoopRange",U.getLoopRange);r_(U,"setAutonavState",U.setAutonavState);r_(U,"seekTo",U.y_W);r_(U,"seekBy",U.r_J);r_(U,"seekToLiveHead", U.seekToLiveHead);r_(U,"requestSeekToWallTimeSeconds",U.requestSeekToWallTimeSeconds);r_(U,"seekToStreamTime",U.seekToStreamTime);r_(U,"startSeekCsiAction",U.startSeekCsiAction);r_(U,"getStreamTimeOffset",U.getStreamTimeOffset);r_(U,"getVideoData",U.UJ);r_(U,"setInlinePreview",U.setInlinePreview);r_(U,"getAppState",U.getAppState);r_(U,"updateLastActiveTime",U.updateLastActiveTime);r_(U,"setBlackout",U.setBlackout);r_(U,"setUserEngagement",U.setUserEngagement);r_(U,"updateSubtitlesUserSettings",U.updateSubtitlesUserSettings); r_(U,"getPresentingPlayerType",U.jt);r_(U,"canPlayType",U.canPlayType);r_(U,"updatePlaylist",U.updatePlaylist);r_(U,"updateVideoData",U.updateVideoData);r_(U,"updateEnvironmentData",U.updateEnvironmentData);r_(U,"sendVideoStatsEngageEvent",U.ztY);r_(U,"productsInVideoVisibilityUpdated",U.productsInVideoVisibilityUpdated);r_(U,"setSafetyMode",U.setSafetyMode);r_(U,"isAtLiveHead",function(Y){return U.isAtLiveHead(void 0,Y)}); r_(U,"getVideoAspectRatio",U.getVideoAspectRatio);r_(U,"getPreferredQuality",U.getPreferredQuality);r_(U,"getPlaybackQualityLabel",U.getPlaybackQualityLabel);r_(U,"setPlaybackQualityRange",U.lAy);r_(U,"onAdUxClicked",U.onAdUxClicked);r_(U,"getFeedbackProductData",U.getFeedbackProductData);r_(U,"getStoryboardFrame",U.getStoryboardFrame);r_(U,"getStoryboardFrameIndex",U.getStoryboardFrameIndex);r_(U,"getStoryboardLevel",U.getStoryboardLevel);r_(U,"getNumberOfStoryboardLevels",U.getNumberOfStoryboardLevels); r_(U,"getCaptionWindowContainerId",U.getCaptionWindowContainerId);r_(U,"getAvailableQualityLabels",U.getAvailableQualityLabels);r_(U,"addCueRange",U.addCueRange);r_(U,"addUtcCueRange",U.addUtcCueRange);r_(U,"showAirplayPicker",U.showAirplayPicker);r_(U,"dispatchReduxAction",U.dispatchReduxAction);r_(U,"getPlayerResponse",U.oI);r_(U,"getWatchNextResponse",U.rH);r_(U,"getHeartbeatResponse",U.Po);r_(U,"getCurrentTime",U.Vb);r_(U,"getDuration",U.YF);r_(U,"getPlayerState",U.getPlayerState);r_(U,"getPlayerStateObject", U.Wo);r_(U,"getVideoLoadedFraction",U.getVideoLoadedFraction);r_(U,"getProgressState",U.getProgressState);r_(U,"getVolume",U.getVolume);r_(U,"setVolume",U.Qh);r_(U,"isMuted",U.isMuted);r_(U,"mute",U.S5);r_(U,"unMute",U.Rs);r_(U,"loadModule",U.loadModule);r_(U,"unloadModule",U.unloadModule);r_(U,"getOption",U.IR);r_(U,"getOptions",U.getOptions);r_(U,"setOption",U.setOption);r_(U,"loadVideoById",U.Xr);r_(U,"loadVideoByUrl",U.MM);r_(U,"playVideo",U.Yz);r_(U,"loadPlaylist",U.loadPlaylist);r_(U,"nextVideo", U.nextVideo);r_(U,"previousVideo",U.previousVideo);r_(U,"playVideoAt",U.playVideoAt);r_(U,"getDebugText",U.getDebugText);r_(U,"getWebPlayerContextConfig",U.getWebPlayerContextConfig);r_(U,"notifyShortsAdSwipeEvent",U.notifyShortsAdSwipeEvent);r_(U,"getVideoContentRect",U.getVideoContentRect);r_(U,"setSqueezeback",U.setSqueezeback);r_(U,"toggleSubtitlesOn",U.toggleSubtitlesOn);r_(U,"isSubtitlesOn",U.isSubtitlesOn);r_(U,"reportPlaybackIssue",U.reportPlaybackIssue);r_(U,"setAutonav",U.setAutonav);r_(U, "isNotServable",U.isNotServable);r_(U,"channelSubscribed",U.channelSubscribed);r_(U,"channelUnsubscribed",U.channelUnsubscribed);r_(U,"togglePictureInPicture",U.togglePictureInPicture);r_(U,"supportsGaplessAudio",U.supportsGaplessAudio);r_(U,"supportsGaplessShorts",U.supportsGaplessShorts);r_(U,"enqueueVideoByPlayerVars",function(Y){return void U.enqueueVideoByPlayerVars(Y)}); r_(U,"clearQueue",U.clearQueue);r_(U,"getAudioTrack",U.Zs);r_(U,"setAudioTrack",U.m1X);r_(U,"getAvailableAudioTracks",U.qy);r_(U,"getMaxPlaybackQuality",U.getMaxPlaybackQuality);r_(U,"getUserPlaybackQualityPreference",U.getUserPlaybackQualityPreference);r_(U,"getSubtitlesUserSettings",U.getSubtitlesUserSettings);r_(U,"resetSubtitlesUserSettings",U.resetSubtitlesUserSettings);r_(U,"setMinimized",U.setMinimized);r_(U,"setOverlayVisibility",U.setOverlayVisibility);r_(U,"confirmYpcRental",U.confirmYpcRental); r_(U,"queueNextVideo",U.queueNextVideo);r_(U,"handleExternalCall",U.handleExternalCall);r_(U,"logApiCall",U.logApiCall);r_(U,"isExternalMethodAvailable",U.isExternalMethodAvailable);r_(U,"setScreenLayer",U.setScreenLayer);r_(U,"getCurrentPlaylistSequence",U.getCurrentPlaylistSequence);r_(U,"getPlaylistSequenceForTime",U.getPlaylistSequenceForTime);r_(U,"shouldSendVisibilityState",U.shouldSendVisibilityState);r_(U,"syncVolume",U.syncVolume);r_(U,"highlightSettingsMenuItem",U.highlightSettingsMenuItem); r_(U,"openSettingsMenuItem",U.openSettingsMenuItem);r_(U,"getEmbeddedPlayerResponse",U.getEmbeddedPlayerResponse);r_(U,"getVisibilityState",U.getVisibilityState);r_(U,"isMutedByMutedAutoplay",U.isMutedByMutedAutoplay);r_(U,"isMutedByEmbedsMutedAutoplay",U.isMutedByEmbedsMutedAutoplay);r_(U,"setGlobalCrop",U.setGlobalCrop);r_(U,"setInternalSize",U.setInternalSize);r_(U,"setFauxFullscreen",U.setFauxFullscreen);r_(U,"setAppFullscreen",U.setAppFullscreen)}; e4=function(U,Y,A){U=g.tl(U.wq(),Y);return A?(A.addOnDisposeCallback(U),null):U}; g.BC=function(U,Y,A){return U.app.L().Ix?Y:g.wl("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:Y,SHORTCUT:A})}; qr9=function(U){U.wq().element.setAttribute("aria-live","polite")}; g.XT=function(U,Y){g.N9.call(this,U,Y);KM9(this);PC(this,"addEventListener",this.Xe);PC(this,"removeEventListener",this.x1X);PC(this,"cueVideoByPlayerVars",this.Ni);PC(this,"loadVideoByPlayerVars",this.LYE);PC(this,"preloadVideoByPlayerVars",this.LAw);PC(this,"loadVideoById",this.Xr);PC(this,"loadVideoByUrl",this.MM);PC(this,"playVideo",this.Yz);PC(this,"loadPlaylist",this.loadPlaylist);PC(this,"nextVideo",this.nextVideo);PC(this,"previousVideo",this.previousVideo);PC(this,"playVideoAt",this.playVideoAt); PC(this,"getVideoData",this.Oh);PC(this,"seekBy",this.Gly);PC(this,"seekTo",this.c_w);PC(this,"showControls",this.showControls);PC(this,"hideControls",this.hideControls);PC(this,"cancelPlayback",this.cancelPlayback);PC(this,"getProgressState",this.getProgressState);PC(this,"isInline",this.isInline);PC(this,"setInline",this.setInline);PC(this,"setLoopVideo",this.setLoopVideo);PC(this,"getLoopVideo",this.getLoopVideo);PC(this,"getVideoContentRect",this.getVideoContentRect);PC(this,"getVideoStats",this.eg); PC(this,"getCurrentTime",this.XM);PC(this,"getDuration",this.YF);PC(this,"getPlayerState",this.sJ);PC(this,"getVideoLoadedFraction",this.J4);PC(this,"mute",this.S5);PC(this,"unMute",this.Rs);PC(this,"setVolume",this.Qh);PC(this,"loadModule",this.loadModule);PC(this,"unloadModule",this.unloadModule);PC(this,"getOption",this.IR);PC(this,"getOptions",this.getOptions);PC(this,"setOption",this.setOption);PC(this,"addCueRange",this.addCueRange);PC(this,"getDebugText",this.getDebugText);PC(this,"getStoryboardFormat", this.getStoryboardFormat);PC(this,"toggleFullscreen",this.toggleFullscreen);PC(this,"isFullscreen",this.isFullscreen);PC(this,"getPlayerSize",this.getPlayerSize);PC(this,"toggleSubtitles",this.toggleSubtitles);this.app.L().S("embeds_enable_move_set_center_crop_to_public")||PC(this,"setCenterCrop",this.setCenterCrop);PC(this,"setFauxFullscreen",this.setFauxFullscreen);PC(this,"setSizeStyle",this.setSizeStyle);PC(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);PC(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); OfY(this)}; g.k_=function(U){U=U.WZ();var Y=U.Hu.get("endscreen");return Y&&Y.UA()?!0:U.AT()}; g.Rr=function(U,Y){U.getPresentingPlayerType()===3?U.publish("mdxautoplaycancel"):U.Ev("onAutonavCancelled",Y)}; g.x_=function(U){var Y=ar(U.WZ());return U.app.mG&&!U.isFullscreen()||U.getPresentingPlayerType()===3&&Y&&Y.pX()&&Y.kD()||!!U.getPlaylist()}; g.sW=function(U,Y){g.Vj(U,"addEmbedsConversionTrackingParams",[Y])}; g.hl=function(U){return(U=g.fq(U.WZ()))?U.Tp():{}}; g.Cy3=function(U){U=(U=U.getVideoData())&&U.T;return!!U&&!(!U.audio||!U.video)&&U.mimeType!=="application/x-mpegURL"}; g.S4=function(U,Y,A){U=U.Cy().element;var c=xz(U.children,function(d){d=Number(d.getAttribute("data-layer"));return A-d||1}); c<0&&(c=-(c+1));AD(U,Y,c);Y.setAttribute("data-layer",String(A))}; g.M9=function(U){var Y=U.L();if(!Y.o2)return!1;var A=U.getVideoData();if(!A||U.getPresentingPlayerType()===3)return!1;var c=(!A.isLiveDefaultBroadcast||Y.S("allow_poltergust_autoplay"))&&!qm(A);c=A.isLivePlayback&&(!Y.S("allow_live_autoplay")||!c);var d=A.isLivePlayback&&Y.S("allow_live_autoplay_on_mweb");U=U.getPlaylist();U=!!U&&U.pX();var T=A.Uv&&A.Uv.playerOverlays||null;T=!!(T&&T.playerOverlayRenderer&&T.playerOverlayRenderer.autoplay);T=A.ET&&T;return!A.ypcPreview&&(!c||d)&&!g.Go(A.Hw,"ypc")&& !U&&(!g.ay(Y)||T)}; YGl=function(U,Y){U=UNE(U.app.M0().j);U=g.J(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var c=A.getAvailableAudioTracks(),d=null;c=g.J(c);for(var T=c.next();!T.done;T=c.next())if(T=T.value,T.getLanguageInfo().getId()===Y){d=T;break}d&&A.Vo(d,!0)}}; bR=function(){pU.apply(this,arguments);this.requestHeaders={}}; Qj=function(){pq||(pq=new bR);return pq}; Z3=function(U,Y){Y?U.requestHeaders.Authorization="Bearer "+Y:delete U.requestHeaders.Authorization}; g.OW=function(U){g.p.call(this);var Y=this;this.iY=U;this.o5={rL:function(){return Y.iY}}}; g.my=function(U,Y,A,c){c=c===void 0?!1:c;g.Ha.call(this,Y);var d=this;this.U=U;this.ov=c;this.Z=new g.Qy(this);this.fade=new g.d1(this,A,!0,void 0,void 0,function(){d.hF()}); g.Z(this,this.Z);g.Z(this,this.fade)}; g_=function(U){var Y=U.U.getRootNode();return U.U.S("web_watch_pip")||U.U.S("web_shorts_pip")?pR(Y):document}; A9X=function(U){U.T&&(document.activeElement&&g.dv(U.element,document.activeElement)&&U.T.focus(),U.T.setAttribute("aria-expanded","false"),U.T=void 0);g.Rb(U.Z);U.X=void 0}; yj=function(U,Y,A){U.Bl()?U.Kr():U.fU(Y,A)}; nq=function(U,Y,A,c){c=new g.n({D:"div",Iv:["ytp-linked-account-popup-button"],YE:c,V:{role:"button",tabindex:"0"}});Y=new g.n({D:"div",B:"ytp-linked-account-popup",V:{role:"dialog","aria-modal":"true",tabindex:"-1"},C:[{D:"div",B:"ytp-linked-account-popup-title",YE:Y},{D:"div",B:"ytp-linked-account-popup-description",YE:A},{D:"div",B:"ytp-linked-account-popup-buttons",C:[c]}]});g.my.call(this,U,{D:"div",B:"ytp-linked-account-popup-container",C:[Y]},100);var d=this;this.dialog=Y;g.Z(this,this.dialog); c.listen("click",function(){d.Kr()}); g.Z(this,c);g.S4(this.U,this.element,4);this.hide()}; g.Ir=function(U,Y,A,c){g.Ha.call(this,U);this.priority=Y;A&&g.D3(this,A);c&&this.CU(c)}; g.uR=function(U,Y,A,c){U=U===void 0?{}:U;Y=Y===void 0?[]:Y;A=A===void 0?!1:A;c=c===void 0?!1:c;Y.push("ytp-menuitem");var d=U;"role"in d||(d.role="menuitem");A||(d=U,"tabindex"in d||(d.tabindex="0"));U={D:A?"a":"div",Iv:Y,V:U,C:[{D:"div",B:"ytp-menuitem-icon",YE:"{{icon}}"},{D:"div",B:"ytp-menuitem-label",YE:"{{label}}"},{D:"div",B:"ytp-menuitem-content",YE:"{{content}}"}]};c&&U.C.push({D:"div",B:"ytp-menuitem-secondary-icon",YE:"{{secondaryIcon}}"});return U}; g.D3=function(U,Y){U.updateValue("label",Y)}; Kq=function(U){g.Ir.call(this,g.uR({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var Y=this;this.U=U;this.T=this.Y=!1;this.o1=U.qF();U.createServerVe(this.element,this,!0);this.N(this.U,"settingsMenuVisibilityChanged",function(A){Y.tP(A)}); this.N(this.U,"videodatachange",this.j);this.listen("click",this.onClick);this.j()}; q9=function(U){return U?g.wB(U):""}; Cq=function(U){g.p.call(this);this.api=U}; UN=function(U){Cq.call(this,U);var Y=this;r_(U,"setAccountLinkState",function(A){Y.setAccountLinkState(A)}); r_(U,"updateAccountLinkingConfig",function(A){Y.updateAccountLinkingConfig(A)}); U.addEventListener("videodatachange",function(A,c){Y.onVideoDataChange(c)}); U.addEventListener("settingsMenuInitialized",function(){Y.menuItem=new Kq(Y.api);g.Z(Y,Y.menuItem)})}; c9v=function(U){this.api=U;this.Y={}}; YA=function(U,Y,A,c){Y in U.Y||(A=new g.EE(A,c,{id:Y,priority:2,namespace:"appad"}),U.api.VT([A],1),U.Y[Y]=A)}; Ak=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(this);g.Z(this,this.events);this.Y=new c9v(this.api);this.events.N(this.api,"legacyadtrackingpingreset",function(){Y.Y.Y={}}); this.events.N(this.api,"legacyadtrackingpingchange",function(A){var c=Y.Y;YA(c,"part2viewed",1,0x8000000000000);YA(c,"engagedview",Math.max(1,A.Tk*1E3),0x8000000000000);if(!A.isLivePlayback){var d=A.lengthSeconds*1E3;ES(A)&&c.api.S("html5_shorts_gapless_ads_duration_fix")&&(d=c.api.getProgressState().seekableEnd*1E3-A.Uf);YA(c,"videoplaytime25",d*.25,d);YA(c,"videoplaytime50",d*.5,d);YA(c,"videoplaytime75",d*.75,d);YA(c,"videoplaytime100",d,0x8000000000000);YA(c,"conversionview",d,0x8000000000000); YA(c,"videoplaybackstart",1,d);YA(c,"videoplayback2s",2E3,d);YA(c,"videoplayback10s",1E4,d)}}); this.events.N(this.api,g.zf("appad"),this.T);this.events.N(this.api,g.LS("appad"),this.T)}; okl=function(U,Y,A){if(!(A in Y))return!1;Y=Y[A];Array.isArray(Y)||(Y=[Y]);Y=g.J(Y);for(A=Y.next();!A.done;A=Y.next()){A=A.value;var c={CPN:U.api.getVideoData().clientPlaybackNonce};A=g.kC(A,c);c=void 0;c=c===void 0?!1:c;(c=UE(YB(A,dNE),A,c,"Active View 3rd Party Integration URL"))||(c=void 0,c=c===void 0?!1:c,c=UE(YB(A,Tuc),A,c,"Google/YouTube Brand Lift URL"));c||(c=void 0,c=c===void 0?!1:c,c=UE(YB(A,EkY),A,c,"Nielsen OCR URL"));g.OC(A,void 0,c)}return!0}; ct=function(U,Y){z_Y(U,Y).then(function(A){g.OC(Y,void 0,void 0,A)})}; dC=function(U,Y){Y.forEach(function(A){ct(U,A)})}; z_Y=function(U,Y){return g.Rd(U.api.L())&&Ll(Y)&&zw(Y)?g.o$(U.api.L(),g.Za(U.api.getVideoData())).then(function(A){var c;A&&(c={Authorization:"Bearer "+A});return c},void 0):xG()}; LBS=function(U){Cq.call(this,U);this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"videoready",function(Y){if(U.getPresentingPlayerType()===1){var A,c,d={playerDebugData:{pmlSignal:!!((A=Y.getPlayerResponse())==null?0:(c=A.adPlacements)==null?0:c.some(function(T){var E;return T==null?void 0:(E=T.adPlacementRenderer)==null?void 0:E.renderer})), contentCpn:Y.clientPlaybackNonce}};g.r7("adsClientStateChange",d)}})}; TY=function(U){g.n.call(this,{D:"button",Iv:["ytp-button","ytp-autonav-toggle"],V:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},C:[{D:"div",B:"ytp-autonav-toggle-button-container",C:[{D:"div",B:"ytp-autonav-toggle-button",V:{"aria-checked":"true"}}]}]});this.U=U;this.T=[];this.Y=!1;this.isChecked=!0;U.createClientVe(this.element,this,113681);this.N(U,"presentingplayerstatechange",this.lk);this.listen("click",this.onClick);this.U.L().S("web_player_autonav_toggle_always_listen")&& r9X(this);e4(U,this.element,this);this.lk()}; r9X=function(U){U.T.push(U.N(U.U,"videodatachange",U.lk));U.T.push(U.N(U.U,"videoplayerreset",U.lk));U.T.push(U.N(U.U,"onPlaylistUpdate",U.lk));U.T.push(U.N(U.U,"autonavchange",U.dG))}; lw3=function(U){U.isChecked=U.isChecked;U.As("ytp-autonav-toggle-button").setAttribute("aria-checked",String(U.isChecked));var Y=U.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";U.updateValue("title",Y);U.updateValue("label",Y);U.U.Aa()}; PcX=function(U){return U.U.L().S("web_player_autonav_use_server_provided_state")&&US(g.M(U.XY()))}; Vcc=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"standardControlsInitialized",function(){var A=new TY(U);g.Z(Y,A);U.eH(A,"RIGHT_CONTROLS_LEFT")})}; EN=function(U,Y){g.Ir.call(this,g.uR({role:"menuitemcheckbox","aria-checked":"false"}),Y,U,{D:"div",B:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; oV=function(U,Y){U.checked=Y;U.element.setAttribute("aria-checked",String(U.checked))}; $NX=function(U){var Y=!U.L().Vt&&U.getPresentingPlayerType()!==3;return U.isFullscreen()||Y}; g.zY=function(U,Y,A,c){var d=U.currentTarget;if((A===void 0||!A)&&g.Bh(U))return U.preventDefault(),!0;Y.pauseVideo();U=g.M(d.getAttribute("href"));g.g1(U,c,!0);return!1}; g.Lv=function(U,Y,A){if(uo(Y.L())&&Y.getPresentingPlayerType()!==2){if(g.Bh(A))return Y.isFullscreen()&&!Y.L().externalFullscreen&&Y.toggleFullscreen(),A.preventDefault(),!0}else{var c=g.Bh(A);c&&Y.pauseVideo();g.g1(U,void 0,!0);c&&(g.yz(U),A.preventDefault())}return!1}; HJ3=function(){var U=vk9.includes("es")?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,V:{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"}}]};U.B="ytp-subtitles-button-icon";return U}; rC=function(){return{D:"div",B:"ytp-spinner-container",C:[{D:"div",B:"ytp-spinner-rotator",C:[{D:"div",B:"ytp-spinner-left",C:[{D:"div",B:"ytp-spinner-circle"}]},{D:"div",B:"ytp-spinner-right",C:[{D:"div",B:"ytp-spinner-circle"}]}]}]}}; lC=function(U){if(document.createRange){var Y=document.createRange();Y&&(Y.selectNodeContents(U),U=window.getSelection())&&(U.removeAllRanges(),U.addRange(Y))}}; $A=function(U){var Y=U.S("web_player_use_cinematic_label_2")?"Modo Ambiente":"Iluminaci\u00f3n cinem\u00e1tica";EN.call(this,Y,g.Pt.ze);var A=this;this.U=U;this.Y=!1;this.T=new g.IM(function(){g.LZ(A.element,"ytp-menuitem-highlighted")},0); this.o1=U.qF();this.setIcon({D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{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.W,this);this.listen(VA,this.j);g.Z(this,this.T)}; vt=function(U){Cq.call(this,U);var Y=this;this.Y=!1;U.addEventListener("settingsMenuInitialized",function(){GIc(Y)}); U.addEventListener("highlightSettingsMenu",function(A){GIc(Y);var c=Y.menuItem;A==="menu_item_cinematic_lighting"&&(g.ou(c.element,"ytp-menuitem-highlighted"),g.ou(c.element,"ytp-menuitem-highlight-transition-enabled"),c.T.start())}); r_(U,"updateCinematicSettings",function(A){Y.updateCinematicSettings(A)})}; GIc=function(U){U.menuItem||(U.menuItem=new $A(U.api),g.Z(U,U.menuItem),U.menuItem.cw(U.Y))}; WBX=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"applicationvideodatachange",function(A,c){c=c.clipConfig;A==="dataloaded"&&c&&c.startTimeMs!=null&&c.endTimeMs!=null&&Y.api.setLoopRange({startTimeMs:Math.floor(Number(c.startTimeMs)),endTimeMs:Math.floor(Number(c.endTimeMs)),postId:c.postId,type:"clips"})})}; Ht=function(U){Cq.call(this,U);this.events=new g.Qy(U);g.Z(this,this.events);r_(U,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));r_(U,"setCreatorEndscreenHideButton",this.Y.bind(this))}; GY=function(U,Y,A,c){EN.call(this,"Volumen estable",g.Pt.Jn);g.ou(this.element,"ytp-drc-menu-item");this.o1=U.qF();this.W=Y;this.Y=A;this.hasDrcAudioTrack=c;U.addEventListener("videodatachange",this.T.bind(this));U.S("mta_drc_mutual_exclusion_removal")&&this.N(U,"onPlaybackAudioChange",this.T);U=this.Y()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.j,this);oV(this,U);this.o1.gf(this)}; Wt=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);U.S("html5_show_drc_toggle")&&U.addEventListener("settingsMenuInitialized",function(){Y.menuItem||(Y.menuItem=new GY(Y.api,Y.setDrcUserPreference.bind(Y),Y.getDrcUserPreference.bind(Y),Y.T.bind(Y)),g.Z(Y,Y.menuItem))}); r_(this.api,"setDrcUserPreference",function(c){Y.setDrcUserPreference(c)}); r_(this.api,"getDrcUserPreference",function(){return Y.getDrcUserPreference()}); r_(this.api,"hasDrcAudioTrack",function(){return Y.T()}); var A;this.Y=(A=g.hu("yt-player-drc-pref"))!=null?A:1;this.updateEnvironmentData()}; wC=function(U){Cq.call(this,U);var Y=this;this.Y={};this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"videodatachange",function(){Y.onVideoDataChange()}); this.events.N(U,g.zf("embargo"),function(A){Y.api.X9(!0);var c,d=(c=Y.Y[A.id])!=null?c:[];c=g.J(d);for(d=c.next();!d.done;d=c.next()){var T=d.value;Y.api.hideControls();Y.api.OT("auth",2,"This video isn't available in your current playback area",R9({embargoed:1,id:A.id,idx:A.T,start:A.start}));d=void 0;(T=(d=T.embargo)==null?void 0:d.onTrigger)&&Y.api.Ev("innertubeCommand",T)}})}; wZc=function(U,Y){var A;return(A=Y.onEnter)==null?void 0:A.some(U.T)}; iJc=function(U,Y){Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next()){A=A.value;var c=void 0,d=Number((c=A.playbackPosition)==null?void 0:c.utcTimeMillis)/1E3,T=void 0;c=d+Number((T=A.duration)==null?void 0:T.seconds);T="embargo_"+d;U.api.addUtcCueRange(T,d,c,"embargo",!1);A.onEnter&&(U.Y[T]=A.onEnter.filter(U.T))}}; iC=function(U){Cq.call(this,U);var Y=this;this.Y=[];this.events=new g.Qy(U);g.Z(this,this.events);r_(U,"addEmbedsConversionTrackingParams",function(A){Y.api.L().Gy&&Y.addEmbedsConversionTrackingParams(A)}); this.events.N(U,"veClickLogged",function(A){Y.api.hasVe(A)&&(A=A.visualElement.getAsJspb(),A=DV(A,2),Y.Y.push(A))})}; J9V=function(U){Cq.call(this,U);r_(U,"isEmbedsShortsMode",function(){return U.isEmbedsShortsMode()})}; FBS=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"initialvideodatacreated",function(A){MN(Sc(),16623);Y.Y=g.X3();var c=U.L().Ie&&!A.Zh;if(Q5(A)&&c){MN(Sc(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(A.getWatchNextResponse()){var d,T=(d=A.getWatchNextResponse())==null?void 0:d.trackingParams;T&&pJ(T)}if(A.getPlayerResponse()){var E;(A=(E=A.getPlayerResponse())==null?void 0:E.trackingParams)&&pJ(A)}}else MN(Sc(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),A.getEmbeddedPlayerResponse()&&(E=(T=A.getEmbeddedPlayerResponse())==null?void 0:T.trackingParams)&&pJ(E)}); this.events.N(U,"loadvideo",function(){MN(Sc(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Y.Y})}); this.events.N(U,"cuevideo",function(){MN(Sc(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Y.Y})}); this.events.N(U,"largeplaybuttonclicked",function(A){MN(Sc(),27240,A.visualElement)}); this.events.N(U,"playlistnextbuttonclicked",function(A){MN(Sc(),27240,A.visualElement)}); this.events.N(U,"playlistprevbuttonclicked",function(A){MN(Sc(),27240,A.visualElement)}); this.events.N(U,"playlistautonextvideo",function(){MN(Sc(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; Jk=function(U,Y){g.p.call(this);var A=this;this.Y=null;this.W=Y;Y=[];for(var c=0;c<=100;c++)Y.push(c/100);Y={threshold:Y,trackVisibility:!0,delay:1E3};(this.T=window.IntersectionObserver?new IntersectionObserver(function(d){d=d[d.length-1];typeof d.isVisible==="undefined"?document.visibilityState==="visible"&&d.isIntersecting&&d.intersectionRatio>0?A.Y=d.intersectionRatio:document.visibilityState==="hidden"?A.Y=0:A.Y=null:A.Y=d.isVisible?d.intersectionRatio:0;typeof A.W==="function"&&A.W(A.Y)},Y): null)&&this.T.observe(U)}; Nuc=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"applicationInitialized",function(){jf9(Y)})}; jf9=function(U){var Y=U.api.getRootNode(),A,c=U.api.getWebPlayerContextConfig().embedsEnableEmc3ds?w34((A=Y.parentElement)==null?void 0:A.parentElement)||Y:Y;U.Y=new Jk(c,function(d){d!=null&&(U.api.L().jL=d,U.api.L().DM="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.Z(U,U.Y);U.events.N(U.api,"videoStatsPingCreated",function(d){var T=U.Y;T=T.Y==null?null:Math.round(T.Y*100)/100;d.inview=T!=null?T:void 0;T=U.api.getPlayerSize();if(T.height>0&&T.width>0){T=[Math.round(T.width),Math.round(T.height)];var E=g.q0();E>1&&T.push(E);T=T.join(":")}else T=void 0;d.size=T})}; tc3=function(U){var Y;return((Y=((U==null?void 0:U.messageRenderers)||[]).find(function(A){return!!A.timeCounterRenderer}))==null?void 0:Y.timeCounterRenderer)||null}; Fh=function(U){g.n.call(this,{D:"div",Iv:["ytp-player-content","ytp-iv-player-content"],C:[{D:"div",B:"ytp-free-preview-countdown-timer",C:[{D:"span",YE:"{{label}}"},{D:"span",B:"ytp-free-preview-countdown-timer-separator",YE:"\u2022"},{D:"span",YE:"{{duration}}"}]}]});this.api=U;this.Y=null;this.W=this.T=0;this.N(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; BuX=function(U,Y){U.Y||(U.T=Y,U.W=(0,g.y)(),U.Y=new g.DG(function(){e_9(U)},null),e_9(U))}; e_9=function(U){var Y=Math,A=Y.round,c=Math.min((0,g.y)()-U.W,U.T);Y=A.call(Y,(U.T-c)/1E3);U.updateValue("duration",kk({seconds:Y}));Y<=0&&U.Y?U.stopTimer():U.Y&&U.Y.start()}; XZ8=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"basechromeinitialized",function(){Y.Y=new Fh(U);g.Z(Y,Y.Y);g.S4(U,Y.Y.element,4);Y.Y.hide()})}; jm=function(U){g.n.call(this,{D:"button",Iv:["ytp-fullerscreen-edu-button","ytp-button"],C:[{D:"div",Iv:["ytp-fullerscreen-edu-text"],YE:"Desliza hacia abajo para ver m\u00e1s detalles"},{D:"div",Iv:["ytp-fullerscreen-edu-chevron"],C:[{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},C:[{D:"path",V:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],V:{"data-priority":"2"}});this.gW=U;this.fade=new g.d1(this,250,void 0,100);this.T=this.Y=!1;U.createClientVe(this.element, this,61214);g.Z(this,this.fade);this.N(U,"fullscreentoggled",this.cw);this.N(U,"presentingplayerstatechange",this.cw);this.listen("click",this.onClick);this.cw()}; Ne=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);r_(this.api,"updateFullerscreenEduButtonSubtleModeState",function(c){Y.updateFullerscreenEduButtonSubtleModeState(c)}); r_(this.api,"updateFullerscreenEduButtonVisibility",function(c){Y.updateFullerscreenEduButtonVisibility(c)}); var A=U.L();U.S("external_fullscreen_with_edu")&&A.externalFullscreen&&uo(A)&&A.controlsType==="1"&&this.events.N(U,"standardControlsInitialized",function(){Y.Y=new jm(U);g.Z(Y,Y.Y);U.eH(Y.Y)})}; kIY=function(U){g.n.call(this,{D:"div",B:"ytp-gated-actions-overlay",C:[{D:"div",B:"ytp-gated-actions-overlay-background",C:[{D:"div",B:"ytp-gated-actions-overlay-background-overlay"}]},{D:"button",Iv:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],V:{"aria-label":"Cerrar"},C:[g.Nq()]},{D:"div",B:"ytp-gated-actions-overlay-bar",C:[{D:"div",B:"ytp-gated-actions-overlay-text-container",C:[{D:"div",B:"ytp-gated-actions-overlay-title",YE:"{{title}}"},{D:"div",B:"ytp-gated-actions-overlay-subtitle", YE:"{{subtitle}}"}]},{D:"div",B:"ytp-gated-actions-overlay-button-container"}]}]});var Y=this;this.api=U;this.background=this.As("ytp-gated-actions-overlay-background");this.T=this.As("ytp-gated-actions-overlay-button-container");this.Y=[];this.N(this.As("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){Y.api.Ev("onCloseMiniplayer")}); this.hide()}; awX=function(U,Y){var A=0;A=0;for(var c={};A d&&(d=L.width,T="url("+L.url+")")}A.background.style.backgroundImage=T;awX(A,c.actionButtons||[]);A.show()}else A.hide()}); g.S4(this.api,this.Y.element,4)}; tk=function(U){Cq.call(this,U);var Y=this;PC(this.api,"getSphericalProperties",function(){return Y.getSphericalProperties()}); PC(this.api,"setSphericalProperties",function(){Y.setSphericalProperties.apply(Y,g.X(g.SS.apply(0,arguments)))}); lR(this.api,"getSphericalProperties",function(){return Y.api.getPresentingPlayerType()===2?{}:Y.getSphericalProperties()}); lR(this.api,"setSphericalProperties",function(){var A=g.SS.apply(0,arguments);Y.api.getPresentingPlayerType()!==2&&Y.setSphericalProperties.apply(Y,g.X(A))})}; em=function(U){Cq.call(this,U);r_(U,"createClientVe",this.createClientVe.bind(this));r_(U,"createServerVe",this.createServerVe.bind(this));r_(U,"destroyVe",this.destroyVe.bind(this));r_(U,"hasVe",this.hasVe.bind(this));r_(U,"logClick",this.logClick.bind(this));r_(U,"logVisibility",this.logVisibility.bind(this));r_(U,"setTrackingParams",this.setTrackingParams.bind(this))}; Bt=function(U,Y,A,c){function d(E){var L=!(E.status!==204&&E.status!==200&&!E.response),r;E={succ:""+ +L,rc:E.status,lb:((r=E.response)==null?void 0:r.byteLength)||0,rt:((0,g.y)()-T).toFixed(),shost:g.tD(U),trigger:Y};sfl(E,U);A&&A(E);c&&!L&&c(new a9("pathprobe.net",E))} var T=(0,g.y)();g.tf(U,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:d,onTimeout:d})}; sfl=function(U,Y){var A;((A=window.performance)==null?0:A.getEntriesByName)&&(Y=performance.getEntriesByName(Y))&&Y.length&&(Y=Y[0],U.pedns=(Y.domainLookupEnd-Y.startTime).toFixed(),U.pecon=(Y.connectEnd-Y.domainLookupEnd).toFixed(),U.perqs=(Y.requestStart-Y.connectEnd).toFixed(),fwX&&(U.perqsa=Y.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; h_8=function(U){fwX=U}; Xh=function(U,Y){this.I5=U;this.policy=Y;this.playbackRate=1}; SGc=function(U,Y){var A=Math.min(2.5,Jv(U.I5));U=kA(U);return Y-A*U}; RV=function(U,Y,A,c,d){d=d===void 0?!1:d;if(U.policy.cN)return Math.ceil(U.policy.cN*Y);U.policy.QN&&(c=Math.abs(c));c/=U.playbackRate;var T=1/N0(U.I5);A=Math.max(.9*(c-3),Jv(U.I5)+U.I5.T.Y*T)/T*.8/(Y+A);A=Math.min(A,c);U.policy.Md>0&&d&&(A=Math.max(A,U.policy.Md));return Mcc(U,A,Y)}; Mcc=function(U,Y,A){return Math.ceil(Math.max(Math.max(U.policy.sO,U.policy.JD*A),Math.min(Math.min(U.policy.kE,31*A),Math.ceil(Y*A))))||U.policy.sO}; bJX=function(U,Y,A){A=RV(U,Y.Y.info.hs,A.Y.info.hs,0);var c=Jv(U.I5)+A/N0(U.I5);return Math.max(c,c+U.policy.Xq-A/Y.Y.info.hs)}; kA=function(U){return N0(U.I5,!U.policy.Hl,U.policy.Ut)}; aV=function(U){return kA(U)/U.playbackRate}; xA=function(U,Y,A){var c=U.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],d=U.policy.playbackStartPolicy.startMinReadaheadPolicy||[];U=Infinity;Y=g.J(Y&&c.length>0?c:d);for(c=Y.next();!c.done;c=Y.next())c=c.value,d=c.minReadaheadMs||0,A<(c.minBandwidthBytesPerSec||0)||U>d&&(U=d);return U0&&(this.T=A.P2)}; OJl=function(U,Y,A,c,d){if(!c.info.K){if(A.length===0)A.push(c);else{var T;(U=(T=A.pop())==null?void 0:g.L1(T,c))?A.push(U):A.push(c)}return d}var E;(A=(E=A.pop())==null?void 0:g.L1(E,c))||(A=c);if(U.policy.KU&&A.info.T)return U.logger&&U.logger({incompleteSegment:A.info.jq()}),d;c=U.zi(A);d=c.Js;c={clipId:c.clipId,formatId:c.formatId,startTimeMs:c.startTimeMs,durationMs:c.iK,TT:d,wY:d};d=pZ9(Y,c.startTimeMs);(A=d>=0?Y[d]:null)&&Qfc(U,A,c)?c=A:(d+=1,Y.splice(d,0,c));A=0;for(T=d+1;T=l+E.T?E=!0:P+E.T=0?U:-U-2}; mNX=function(U,Y){if(U.yd){var A=U.yd.MU();if(A.length!==0){if(U.W&&Y){var c=U.W,d=c.info.j;!Vd(A,d)&&c.info.G>0&&(0,g.y)()-U.J<5E3&&(U.logger&&U.logger({dend:c.info.jq()}),A=N1V(A,d,d+.01))}U.policy.SL&&U.logger&&U.logger({cbri:""+U.Y});c=[];for(var T=d=0;d=E){var P=0;if(U.BQ){var V=fv(U.BQ,r*1E3);V&&(P=V.Mk/1E3)}V=Object.assign({},U.BZ[T]);var v=U.rW.W.get(hM(U.BZ[T].formatId)), H=Math.max(r,E);E=v.index.Qz(H+U.T/1E3-P);r=v.index.getStartTime(E)+P;var G=E+ +(Math.abs(r-H)>U.T/1E3);H=G+U.j;G=(v.index.getStartTime(G)+P)*1E3;T!==U.Y||Y?(V.TT=H,V.startTimeMs=G):(U.logger&&U.logger({pEvict:"1",og:V.startTimeMs,adj:r*1E3}),V.TT=E+U.j,V.startTimeMs=r*1E3);E=void 0;r=((E=U.W)==null?void 0:E.info.duration)||11;T===U.Y&&LU.T/1E3);E=r+U.j;P=(v.index.Mp(r)+P)*1E3;V.wY=E;V.durationMs= P-V.startTimeMs;V.TT<=V.wY&&c.push(V)}lU.T)return!1;if(ZJ4(U,Y.formatId,A.formatId))return Y.durationMs=Math.max(c,d)-Y.startTimeMs,Y.wY=Math.max(Y.wY,A.wY),!0;if(Math.abs(Y.startTimeMs-A.startTimeMs)<=U.T){if(Y.durationMs>A.durationMs+U.T){U=Y.formatId;var T=Y.TT,E=Y.wY;Y.formatId=A.formatId;Y.durationMs=A.durationMs;Y.TT=A.TT;Y.wY=A.wY;A.formatId=U;A.startTimeMs=d;A.durationMs=c-d;A.TT=T;A.wY=E;return!1}Y.formatId=A.formatId;return!0}c> A.startTimeMs&&(Y.durationMs=A.startTimeMs-Y.startTimeMs,Y.clipId===A.clipId&&(Y.wY=A.TT-1));return!1}; ZJ4=function(U,Y,A){return Y.itag!==A.itag||Y.xtags!==A.xtags?!1:U.rW.Sc||Y.lmt===A.lmt}; nkX=function(U,Y,A){if(U.logger){for(var c=[],d=0;d=0&&pv(U.audioTrack,U.Y)>=0&&T?((U.videoTrack.K||U.audioTrack.K)&&U.loader.wW("iterativeSeeking",{status:"done",count:U.seekCount}),U.videoTrack.K=!1,U.audioTrack.K=!1):c&&g.jW(function(){if(U.T||!U.policy.ws)ON(U);else{var E=Y.startTime,L=Y.duration;if(!U.policy.K){var r=A?U.videoTrack.K:U.audioTrack.K,l=U.videoTrack.J!==-1&&U.audioTrack.J!==-1,P=U.Y>=E&&U.Y432E3&&JXX(U.rW);U.W&&(d=U.W,U.W=0);g.jW(function(){U.policy.K||m7(U,d,102)}); U.loader.wW("initManifestlessSync",{st:d,ost:d+U.loader.Zm(),a:U.audioTrack.J,v:U.videoTrack.J});U.j&&(U.j.resolve(d+.1),U.j=null);U.policy.K&&m7(U,d,102)}}}; nv=function(U,Y){var A=this;this.vZ=U;this.requestNumber=++ct3;this.Y=this.now();this.Z=this.X=NaN;this.G=this.Y;this.W=this.mH=this.K=0;this.J=this.Y;this.qI=this.Hw=this.eX=this.Me=this.qz=this.jX=this.T=this.j=0;this.Pw=this.isActive=!1;this.AP=this.VJ=0;this.o5={ZRY:function(){return A.bP}}; this.I5=Y.I5;this.snapshot=Kdl(this.I5);this.policy=this.I5.T;this.sZ=!!Y.sZ;this.xp=Y.xp;this.XO=Y.XO||0;this.zl=Y.zl||0;Y.J3&&(this.QJ=new PI);var c;this.bP=(c=Y.bP)!=null?c:!1;this.sZ||DO4(this.I5)}; dcY=function(U){U.eX=Math.max(U.eX,U.K-U.qz);U.Hw=Math.max(U.Hw,U.G-U.Me);U.jX=0}; Di=function(U,Y,A){IrV(U.I5,Y);U.QJ&&(U.QJ.add(Math.ceil(Y)-Math.ceil(U.G)),U.QJ.add(Math.max(0,Math.ceil(A/1024)-Math.ceil(U.K/1024))));var c=Y-U.G,d=A-U.K;U.mH=d;U.qI=Math.max(U.qI,d/(c+.01)*1E3);U.G=Y;U.K=A;U.jX&&A>U.jX&&dcY(U)}; IV=function(U,Y){U.url=Y;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; uC=function(U,Y){nv.call(this,U,Y);this.ws=this.R1=!1;this.Uv=this.ov=Infinity;this.kE=NaN;this.Tk=!1;this.Ly=NaN;this.Lr=this.yJ=this.dW=0;this.iJ=Y.iJ||1;this.Ca=Y.Ca||this.iJ;this.hw=Y.hw;this.Js=Y.Js;this.rY=Y.rY;TWl(this);this.kz(this.Y);this.i$=(this.Ly-this.Y)/1E3}; EN8=function(U){var Y=U.yJ||U.dW;return Y?U.snapshot.delay+Math.min(U.zl,(U.Z-U.X)/1E3)+Y:U.i$}; Kv=function(U,Y,A){if(!U.sZ){Y=Math.max(Y,.01);var c=U.XO?Math.max(Y,A/U.XO):Y,d=U.I5.T.W;d&&(c=Y,U.XO&&(c=Math.max(Y,A/U.XO*d)));WI(U.I5,Y,A,c)}}; oN4=function(U){return(U.J-U.Y)/1E3}; TWl=function(U){U.kE=U.Y+U.snapshot.delay*1E3;U.Tk=!1}; qe=function(U,Y){if(U.hw&&U.Js!==void 0&&U.rY!==void 0){var A=Math,c=A.min,d=U.ov;var T=U.hw;var E=U.Y;if(za3(T,U.Js))T=Y;else{var L=0;T.ej&&(L=.2);T=E+(T.zl+L)*1E3}U.ov=c.call(A,d,T);A=Math;c=A.min;d=U.Uv;T=U.hw;E=U.Y;L=LoX(T,U.Js,U.rY);L!==2&&(Y=L?Y:E+T.zl*1E3,T.ej&&(Y+=T.zl*1E3));U.Uv=c.call(A,d,Y);U.ov<=U.Y?TWl(U):(U.kE=U.ov,U.Tk=!0)}}; rtS=function(U,Y){if(U.oA(Y,1)){var A=U.getUint8(Y);A=A<128?1:A<192?2:A<224?3:A<240?4:5}else A=0;if(A<1||!U.oA(Y,A))return[-1,Y];if(A===1)U=U.getUint8(Y++);else if(A===2)A=U.getUint8(Y++),U=U.getUint8(Y++),U=(A&63)+64*U;else if(A===3){A=U.getUint8(Y++);var c=U.getUint8(Y++);U=U.getUint8(Y++);U=(A&31)+32*(c+256*U)}else if(A===4){A=U.getUint8(Y++);c=U.getUint8(Y++);var d=U.getUint8(Y++);U=U.getUint8(Y++);U=(A&15)+16*(c+256*(d+256*U))}else A=Y+1,U.focus(A),NI(U,A,4)?U=RK9(U).getUint32(A-U.I4,!0):(c= U.getUint8(A+2)+256*U.getUint8(A+3),U=U.getUint8(A)+256*(U.getUint8(A+1)+256*c)),Y+=5;return[U,Y]}; Cv=function(U){this.vZ=U;this.Y=new is}; UB=function(U,Y){this.info=U;this.callback=Y;this.state=1;this.qE=this.Lp=!1;this.J_=null}; lLE=function(U){return g.gv(U.info.py,function(Y){return Y.type===3})}; Yh=function(U,Y,A,c){var d=this;c=c===void 0?{}:c;this.policy=Y;this.vZ=A;this.status=0;this.Y=new is;this.T=0;this.Ky=this.W=this.qU=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",U);if(c.headers)for(U=c.headers,Y=g.J(Object.keys(U)),A=Y.next();!A.done;A=Y.next())A=A.value,this.xhr.setRequestHeader(A,U[A]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return d.B4()}; this.xhr.onload=function(){return d.onDone()}; this.xhr.onerror=function(){return d.onError()}; this.xhr.fetch(function(T){d.Y.append(T);d.T+=T.length;T=(0,g.y)();d.vZ.qN(T,d.T)},function(){},c.body||null)}; c1=function(){this.T=this.t1=0;this.Y=Array.from({length:AR.length}).fill(0)}; PBX=function(){}; VBX=function(){this.startTimeMs=(0,g.y)();this.Y=!1}; $c8=function(){this.Y=new PBX}; vNY=function(U,Y,A,c){c=c===void 0?1:c;A>=0&&(Y in U.Y||(U.Y[Y]=new c1),U.Y[Y].Yh(A,c))}; HnX=function(U,Y,A,c,d){var T=(0,g.y)(),E=d?d(Y):void 0,L;d=(L=E==null?void 0:E.t1)!=null?L:1;if(d!==0){var r;L=(r=E==null?void 0:E.profile)!=null?r:A;vNY(U,L,T-c,d)}return Y}; dj=function(U,Y,A,c,d){if(Y&&typeof Y==="object"){var T=function(E){return HnX(U,E,A,c,d)}; if(GI(Y))return Y.then(T);if(GCl(Y))return jc(Y,T)}return HnX(U,Y,A,c,d)}; WoE=function(){}; wzX=function(U,Y){this.T=(new TextEncoder).encode(U);this.Y=(new TextEncoder).encode(Y)}; LP3=function(U,Y){var A,c,d;return g.S(function(T){if(T.T==1){if(!Y)return T.return(Y);A=T7.mN();c=new g.ew(U.T);return g.x(T,c.encrypt(Y,U.Y),2)}d=T.Y;T7.HG("woe",A,Math.ceil(Y.byteLength/16));return T.return(d)})}; $Kl=function(U,Y){var A,c,d;return g.S(function(T){if(T.T==1){if(!Y)return T.return(Y);A=T7.mN();c=new g.ew(U.T);return g.x(T,c.decrypt(Y,U.Y),2)}d=T.Y;T7.HG("wod",A,Math.ceil(Y.byteLength/16));return T.return(d)})}; JtX=function(U,Y){var A=this;this.Y=U;this.vZ=Y;this.loaded=this.status=0;this.error="";U=bO(this.Y.get("range")||"");if(!U)throw Error("bad range");this.range=U;this.T=new is;in9(this).then(function(){A.vZ.S9()},function(c){A.error=""+c||"unknown_err"; A.vZ.S9()})}; in9=function(U){var Y,A,c,d,T,E,L,r,l,P,V,v,H,G,F;return g.S(function(N){if(N.T==1){U.status=200;Y=U.Y.get("docid");A=vi(U.Y.get("fmtid")||"");c=U.Y.get("lmt")||"0";d=+(U.Y.get("csz")||0);if(!Y||!A||!d)throw Error("Invalid local URL");U.Y.get("ck")&&U.Y.get("civ")&&(T=new wzX(U.Y.get("ck"),U.Y.get("civ")));E=U.range;L=Math.floor(E.start/d);r=Math.floor(E.end/d);l=L}if(N.T!=5)return l<=r?g.x(N,vrX(Y,A,c,l,T),5):N.uY(0);P=N.Y;if(P===void 0)throw Error("invariant: data is undefined");V=l*d;v=(l+1)*d; H=Math.max(0,E.start-V);G=Math.min(E.end+1,v)-(H+V);F=new Uint8Array(P.buffer,H,G);U.T.append(F);U.loaded+=G;U.loaded0&&(d.Y=Math.min(d.Y+E,10),d.T=T);d.Y>0?(d.Y--,d=!0):d=!1;if(d)typeof c==="function"&&(c=c()),console.log("plyr."+Y,c);else{var L;c=((L=RaX.get(Y))!=null?L:0)+1;RaX.set(Y,c);c%100===1&&console.warn("plyr","plyr."+Y+" is chatty, dropping logs.")}}}; kC8=function(){this.Y=10;this.T=Date.now()}; LN=function(U,Y){g.p.call(this);var A=this;this.policy=U;this.py=Y;this.T=0;this.Y=null;this.CV=[];this.W=null;this.o5={Jj:function(){return A.py}}; this.py.length===1||g.gv(this.py,function(c){return!!c.range})}; rj=function(U,Y,A){U.Y&&(JI(U.Y,Y),Y=U.Y,U.Y=null);for(var c=0,d=0,T=g.J(U.py),E=T.next();!E.done;E=T.next())if(E=E.value,E.range&&c+E.W<=U.T)c+=E.W;else{Y.getLength();if(OP(E)&&!A&&U.T+Y.getLength()-d=400?(U.lastError="net.badstatus",!0):(d===void 0?0:d)?(U.lastError="ump.spsrejectfailure",!0):A||c!==void 0&&c?!1:(U.lastError=Y===204?"net.nocontent":"net.connect",!0)}; H1=function(U,Y){if(U.policy.Cv)return!1;var A=Y.getResponseHeader("content-type"),c=Y.J0();U=!c||c<=U.policy.EL;return(!Y.Gb()||!A||A.indexOf("text/plain")!==-1)&&U}; Sav=function(U,Y){var A="";Y=Y.Fx();Y.getLength()<=U.policy.EL&&(A=ha9(U,Y.fJ()));return A}; ha9=function(U,Y){var A=BX(Y);return Ag(A)?(U.logger.debug(function(){return"Redirecting to "+A}),A):""}; P1=function(U){return k5(U.W,fn(U.uf.Pg))}; MB9=function(U){var Y=U.timing.XD();Y.shost=fn(U.uf.Pg);return Y}; bnl=function(U,Y){return(U==null?void 0:U.maxWidth)>(Y==null?void 0:Y.maxWidth)||(U==null?void 0:U.maxHeight)>(Y==null?void 0:Y.maxHeight)}; pzE=function(U,Y){for(var A=g.J(Y.keys()),c=A.next();!c.done;c=A.next())if(c=Y.get(c.value),c.length!==0){g.sO(c,function(L,r){return r.maxFramerate-L.maxFramerate}); for(var d=[c[0]],T=0,E=1;EU.Y||A.push(c)}return A}; G7=function(U,Y,A){var c=OnY[U]||[];A.S("html5_shorts_onesie_mismatched_fix")&&(c=mcX[U]||[]);Y.push.apply(Y,g.X(c));A.S("html5_early_media_for_drm")&&Y.push.apply(Y,g.X(gNX[U]||[]))}; KoS=function(U,Y){var A=g.rS(U),c=U.L(),d=c.K;c=c.S("html5_shorts_onesie_mismatched_fix");var T=U.vg();if(c){if(!d.T){if(T&&W1)return W1;if(wj)return wj}}else if(wj&&!d.T)return wj;var E=[],L=[],r={},l=iZ.concat(ytE);c&&(l=iZ.concat(nNl));U.S("html5_early_media_for_drm")&&(l=l.concat(Dcc),U.S("allow_vp9_1080p_mq_enc")&&l.push(IL4));var P=[].concat(g.X(ukE));U.S("html5_iamf_audio_onesie_fmt")&&P.push(["773"]);l=g.J(l);for(var V=l.next();!V.done;V=l.next()){var v=!1;V=g.J(V.value);for(var H=V.next();!H.done;H= V.next()){H=H.value;var G=LD(H,T&&c);if(G&&G.video&&!(Cd(G)&&!A.ov&&G.video.qualityOrdinal>A.cg)){var F=g.H_(U.L().experiments,"html5_drm_byterate_soft_cap");F>0&&FtE(G)&&G.hs>F||(v?(E.push(H),G7(H,E,U)):(G=Nc(A,G,d),G===!0?(v=!0,E.push(H),G7(H,E,U)):r[H]=G))}}}P=g.J(P);for(l=P.next();!l.done;l=P.next())for(l=g.J(l.value),v=l.next();!v.done;v=l.next())if(v=v.value,(V=ihc(v))&&V.audio&&(U.S("html5_onesie_51_audio")||!Uq(V)&&!Ye(V)))if(V=Nc(A,V,d),V===!0){L.push(v);G7(v,L,U);break}else r[v]=V;A.T&& Y("orfmts",r);if(c)return d.T&&(d.T=!1,W1=wj=void 0),T?W1={video:E,audio:L}:wj={video:E,audio:L};wj={video:E,audio:L};d.T=!1;return wj}; g.UZc=function(U,Y,A){var c=A.K,d=[],T=[],E=A.S("html5_shorts_onesie_mismatched_fix");U=U.vg();var L=iZ.concat(ytE);E&&(L=iZ.concat(nNl));A.S("html5_early_media_for_drm")&&(L=L.concat(Dcc),A.S("allow_vp9_1080p_mq_enc")&&L.push(IL4));var r=[].concat(g.X(ukE));A.S("html5_iamf_audio_onesie_fmt")&&r.push(["773"]);L=g.J(L);for(var l=L.next();!l.done;l=L.next()){l=g.J(l.value);for(var P=l.next();!P.done;P=l.next()){P=P.value;var V=LD(P,U&&E);if(V&&V.video){var v=g.H_(A.experiments,"html5_drm_byterate_soft_cap"); if(!(v>0&&FtE(V)&&V.hs>v)&&Nc(Y,V,c)===!0){d.push({videoCodec:qaS[DM[P]],maxWidth:V.video.width,maxHeight:V.video.height,maxFramerate:V.video.fps});break}}}}E=g.J(r);for(U=E.next();!U.done;U=E.next())for(U=g.J(U.value),r=U.next();!r.done;r=U.next())if(r=r.value,(L=ihc(r))&&L.audio&&(A.S("html5_onesie_51_audio")||!Uq(L)&&!Ye(L))&&Nc(Y,L,c)===!0){T.push({audioCodec:CBX[DM[r]],numChannels:L.audio.numChannels});break}return{videoFormatCapabilities:d,audioFormatCapabilities:T}}; FN=function(U){var Y={},A=U.iY,c=U.Ww,d=A.getVideoData(),T=If(0),E=c.S("html5_sabr_use_container_size")?A.fg():A.getPlayerSize(),L=A.getVisibilityState();if(c.S("html5_enable_audio_quality_setting")){var r=g.H_(c.experiments,"html5_default_audio_quality_setting_lr"),l;Y.Pj=(l=YPv[r])!=null?l:0}T&&(Y.mIn=T,Y.lastManualDirection=QdX(),T=IG9()||0,T>0&&(T=(c.S("html5_use_date_now_for_local_storage")?Date.now():(0,g.y)())-T,c.S("html5_use_date_now_for_local_storage")?T>0&&(Y.timeSinceLastManualFormatSelectionMs= T):Y.timeSinceLastManualFormatSelectionMs=T));T=c.S("html5_use_streamer_bandwidth_for_low_latency_live")&&d.isLowLatencyLiveStream;if(c.schedule.Pw&&!T){var P;T=c.S("html5_disable_bandwidth_cofactors_for_sabr_live")?!((P=U.vp)==null||!P.Hl):!1;Y.YQ=N0(c.schedule,!T)}P=g.q0();r=g.mZ.medium;l=Math.floor(r*16/9);T=d.vg()?r:l;r=d.vg()?l:r;Y.JN=Math.max(E.width*P,T);Y.UM=Math.max(E.height*P,r);Y.visibility=L;Y.r8y=kS();Y.HP=A.ZM()*1E3;E=U.iY.lr(!0);var V,v,H,G,F,N;Y.hpY={defaultPolicy:(E==null?void 0: (V=E.EM)==null?void 0:V.Y)||0,smooth:(E==null?void 0:(v=E.i3w)==null?void 0:v.Y)||0,visibility:(E==null?void 0:(H=E.HFw)==null?void 0:H.Y)||0,vP:(E==null?void 0:(G=E.jB)==null?void 0:G.Y)||0,performance:(E==null?void 0:(F=E.ZV)==null?void 0:F.Y)||0,speed:(E==null?void 0:(N=E.Y9Y)==null?void 0:N.Y)||0};var e;Y.W6y=(E==null?void 0:(e=E.o4Y)==null?void 0:e.Y)||0;Y.UO=U.UO&&U.UO.length>0?U.UO:[1,2];U.sabrLicenseConstraint&&(Y.sabrLicenseConstraint=U.sabrLicenseConstraint);if(c.S("html5_onesie_media_capabilities")|| c.S("html5_enable_server_format_filter"))Y.Y3=3;c.S("html5_onesie_audio_only_playback")&&op(d)&&(Y.Y3=1);var B;((B=U.vp)==null?0:B.i$)&&U.erf&&(Y.Y3=Y.Y3===void 0?7:Y.Y3|4);V=d.zs?d.zs:g.rS(d);c.S("html5_onesie_media_capabilities")&&(Y.mediaCapabilities=g.UZc(d,V,c));var f;if((f=U.vp)==null?0:JR(f)){H=c.K;f=[];v=[];G=new Map;F=Array.from(H.Y.values());F=g.J(F);for(N=F.next();!N.done;N=F.next())e=N.value,e.SI?v.push({audioCodec:CBX[e.Rv],numChannels:e.numChannels,spatialCapabilityBitmask:AM8[e.Rv]}): (B=qaS[e.Rv],N={videoCodec:B,maxWidth:e.maxWidth||0,maxHeight:e.maxHeight||0,maxFramerate:e.maxFramerate||0,is10BitSupported:e.YL||!1},e.maxBitrateBps&&(N.maxBitrateBps=e.maxBitrateBps,E=LD(e.itag),L=void 0,((L=E)==null?0:L.video)&&Nc(V,E,H)===!0&&(E=E.hs*8,E>N.maxBitrateBps&&(N.maxBitrateBps=E))),e=B+"_"+e.YL,B=G.get(e)||[],B.push(N),G.set(e,B));f=pzE(f,G);H={};c.S("html5_ssff_denylist_opus_low")&&(H={itagDenylist:[249,350]});Y.mediaCapabilities={videoFormatCapabilities:f,audioFormatCapabilities:v, hdrModeBitmask:3,perPlaybackAttributes:H}}var h;if((h=U.vp)==null?0:h.Y){Y.Gr=V.Gr;var Q;Y.cg=(Q=U.vp)==null?void 0:Q.cg}c.NU&&(Y.My=c.NU);Y.W$=U.RO;Y.dN=U.dN;Y.z5=U.z5;Y.z$=U.z$;if(c.S("html5_fix_time_since_last_seek_reporting")?U.Bf!==void 0:U.Bf)Y.GzT=(0,g.y)()-U.Bf;U.isPrefetch&&c.S("html5_report_prefetch_requests")&&(Y.isPrefetch=!0);dI||(Y.APE=!0);h=Jv(c.schedule)*1E3;h>0&&(Y.r6=h);var K;((K=U.vp)==null?0:K.Ib)&&U.VL&&U.VL0?D:c.schedule.interruptions[0]||0);var c3;if((c3=U.vp)==null?0:c3.AP)Y.bz=U.bz;c.S("html5_sabr_enable_server_xtag_selection")&&(d.W7||c.qI)&&(Y.audioTrackId=d.W7||c.qI);if(c.S("html5_log_mosaic_audio_track_id")&&gS(d)&&!Y.audioTrackId){var TV;a:{var U9, LY,q;c3=(U9=d.playerResponse)==null?void 0:(LY=U9.playerConfig)==null?void 0:(q=LY.compositeVideoConfig)==null?void 0:q.sourceConfigs;var FE,B3;U9=(TV=d.playerResponse)==null?void 0:(FE=TV.playerConfig)==null?void 0:(B3=FE.compositeVideoConfig)==null?void 0:B3.defaultActiveSourceVideoId;if(c3&&U9)for(TV=g.J(c3),FE=TV.next();!FE.done;FE=TV.next())if(FE=FE.value,FE.videoId===U9&&FE.audioTracks)for(FE=g.J(FE.audioTracks),B3=FE.next();!B3.done;B3=FE.next())if(B3=B3.value,B3.isDefaultForSource){TV=B3.id|| "";break a}TV=""}Y.audioTrackId=TV;d==null||d.wW("misstrkchg",{"default":Y.audioTrackId})}var O9;if((O9=U.vp)==null?0:O9.Z$)if(U=whS())Y.detailedNetworkType=cMc[U]||cMc.other;c.S("html5_enable_voice_boost")&&(Y.Y$v=c.kU);return Y}; j0=function(U,Y,A,c,d,T,E){var L={};Y&&(L.pA=Y);if(!U)return L;L.playbackCookie=A==null?void 0:A.playbackCookie;d&&(L.yO=d);L.qB=[];L.dP=[];if(E==null?0:E.size)for(Y=g.J(E.values()),A=Y.next();!A.done;A=Y.next())L.dP.push(A.value);if(U.sabrContextUpdates.size>0)for(Y=g.J(U.sabrContextUpdates.values()),A=Y.next();!A.done;A=Y.next())dZc(L,A.value,c);WM3(U)&&T&&dZc(L,T,c);U.dk&&(L.VIJ=U.dk);c=U.L().Y;L.clientInfo={clientName:TzX[c.c.toUpperCase()]||0};c.cbrand&&(L.clientInfo.deviceMake=c.cbrand);c.cmodel&& (L.clientInfo.deviceModel=c.cmodel);c.cver&&(L.clientInfo.clientVersion=c.cver);c.cos&&(L.clientInfo.osName=c.cos);c.cosver&&(L.clientInfo.osVersion=c.cosver);c=U.L();c.S("html5_sabr_enable_server_xtag_selection")&&c.Va&&(L.clientInfo.hl=c.Va);U.q0&&(L.q0=U.q0);return L}; dZc=function(U,Y,A){var c=Y.type||0;(A==null?0:A.has(c))?U.dP.push(Y):U.qB.push(c)}; Me=function(U,Y,A,c,d,T){var E=T===void 0?{}:T;var L=E.Kj===void 0?[]:E.Kj;var r=E.JT===void 0?!1:E.JT;var l=E.zc===void 0?0:E.zc;var P=E.poToken===void 0?"":E.poToken;var V=E.sK===void 0?void 0:E.sK;var v=E.OV===void 0?"":E.OV;var H=E.L3===void 0?0:E.L3;var G=E.NW===void 0?new Uint8Array(0):E.NW;var F=E.gM===void 0?!1:E.gM;T=E.L4===void 0?0:E.L4;E=E.pA===void 0?void 0:E.pA;UB.call(this,Y,d);var N=this;this.policy=U;this.logger=new g.o6("dash/request");this.Nl=this.ZA=0;this.BX=!1;this.ZT=this.yK= null;this.Xw=!1;this.NW=this.L3=null;this.pz=this.aE=!1;this.n_=null;this.L4=this.aT=0;this.GM=!1;this.o5={l9:function(B){N.l9(B)}, Wzn:function(){return N.J_}, fPr:function(B){N.J_=B}, BbT:function(B){N.ZA=B}, bIX:function(B){N.GQ.lastError=B}, G1:function(){return N.xhr}}; this.timing=new uC(this,A);this.JT=r;this.L3=H;this.NW=G;this.uf=g.qZ(this.info,this.policy,c);this.uf.set("rn",this.wB().toString());this.uf.set("rbuf",(l*1E3).toFixed().toString());this.JT&&this.uf.set("smb","1");this.policy.Us&&P&&this.uf.set("pot",P);v&&this.uf.set("bbs",v);this.policy.useUmp&&!ht(this.uf.Pg)&&(this.j2=new Cv(this),this.uf.set("ump","1"),this.uf.set("srfvp","1"));if(U=this.policy.yH?this.policy.D$&&!isNaN(this.info.rY)&&this.info.rY>this.policy.IU?!1:!0:!1)Y=null,this.policy.hT&& this.policy.r9?Y=[1]:F&&(Y=[]),Y!=null&&(this.policy.cB&&Y.push(2),this.uf.set("defsel",Y.join(",")));this.GQ=new lZ(this,this.policy,this.uf,this.info.Dm,this.timing,this.logger,c,V);this.Kj=L||null;this.qE=E5S(this);aLX(this.GQ);c=void 0;if(this.policy.xj||this.j2||this.policy.eX)c={method:"POST"},L=(0,g.NM)([120,0]),V={},this.policy.jE&&E&&(E=j0(void 0,E),V.fO=E),this.policy.WR&&this.NW&&(V.videoPlaybackUstreamerConfig=this.NW),this.policy.eX&&(E=this.info.j)&&Object.assign(V,E),Object.keys(V).length> 0?c.body=g.C5(V,g.Ln):c.body=L;if(this.L3&&this.NW){this.uf.set("iwts","1");c={method:"POST"};E={z$:this.L3*1E3};var e;L=(e=this.info.j)==null?void 0:e.iP;e=g.C5({HK:E,iP:L||void 0,videoPlaybackUstreamerConfig:this.NW},g.Ln);c.body=e}try{this.xhr=EB(this.uf,this.policy.G,this.timing,U,c),this.GQ.T.start(),T&&(this.f0=new g.IM(this.D9,T,this),this.f0.start(T+(this.timing.I5.Z.Y4()||0)*1E3)),this.policy.v2&&IV(this.timing,this.GN()),this.logger.debug(function(){return"Sent, itag="+N.uf.get("itag")+ " seg="+N.info.py[0].Js+" range="+N.uf.get("range")+" time="+Math.round(N.info.py[0].j)+"-"+Math.round(g.PW(N.info.py).J)+" rtp="+(N.timing.P9()-Date.now()).toFixed(0)}),g.jW(function(){})}catch(B){o59(this,B,!0)}}; E5S=function(U){if(!(KI(U.info)&&U.info.bP()&&U.policy.b1&&U.Kj)||U.info.Dm.W>=2||If()>0||!gq3())return!1;var Y=U.uf.get("aitags");if(!Y)return!1;Y=vi(Y).split(",");for(var A=[],c=g.J(U.Kj),d=c.next();!d.done;d=c.next())d=d.value,g.Go(Y,d)&&A.push(d);if(!A.length)return!1;U.uf.set("altitags",g.$n(A.join(",")));return!0}; o59=function(U,Y,A){A=A===void 0?!1:A;g.S5(Y);U.GQ.lastError="player.exception";U.errorMessage=Y.name+"_"+Y.message;A?g.jW(function(){$h(U.GQ)}):$h(U.GQ)}; z3Y=function(U,Y){U.timing.Pw=!0;U.xhr.Gb()&&U.timing.HU();if(U.policy.tb){var A;(A=U.f0)==null||A.stop()}rj(U.J_,Y,!1)}; LRl=function(U,Y){U.info=Y;if(U.J_){var A=U.J_;Y=Y.py;(Y.length!==A.py.length||Y.length0){Y=g.J(Y.py);for(var A=Y.next();!A.done;A=Y.next()){var c=void 0;U+=((c=A.value.range)==null?void 0:c.length)||0}return U}if(Y.bu.length>0)for(A=g.J(Y.bu),c=A.next();!c.done;c=A.next())U+=c.value.wb||0;return U+Y.Dv}; xh=function(U,Y){if(kh){var A=0;U=U.zQ.get(Y);if(U==null||!U.qA)return 0;U=g.J(U.qA.values());for(Y=U.next();!Y.done;Y=U.next())A+=Y.value.data.getLength();return A}return((A=U.zQ.get(Y))==null?void 0:A.CV.getLength())||0}; sB=function(U,Y){U=U.zQ.get(Y);if(kh){if(U==null||!U.JM)return!1;Y=U.qA.size>0;return U.pZ.length>0||Y}return!(U==null||!U.JM)&&!(U==null||!U.CV.getLength())}; v54=function(U,Y){var A=U.zQ.get(Y),c=$Zv(U,Y),d=!c&&!!A.bytesReceived;if(kh){var T;if((T=U.rW)==null?0:T.Sc){U=g.J(A.qA.values());for(Y=U.next();!Y.done;Y=U.next())if(!Y.value.ea)return!1;return d}}else if(T=U.FH(Y),d&&U.Y&&T!==void 0)return T;return(d||A.bytesReceived===c)&&A.gt+xh(U,Y)===A.bytesReceived}; HIX=function(U,Y,A){U.zQ.set(Y,{CV:new is,gt:0,bytesReceived:0,Dv:0,jw:!1,oe:!1,FH:!1,SI:A,pE:[],py:[],bu:[],JM:!1,qA:new Map,uS:new Map,pZ:[]});U.logger.debug(function(){return"[initStream] formatId: "+Y})}; Gb3=function(U,Y,A,c){A.py.push.apply(A.py,g.X(c));if(kh){A.uS.has(Y)||A.uS.set(Y,[]);var d;(d=A.uS.get(Y)).push.apply(d,g.X(c))}else if(A.J_)for(U=g.J(c),Y=U.next();!Y.done;Y=U.next())A.J_.py.push(Y.value);else{A.J_=new LN(U.vp,[].concat(g.X(A.py)));var T;((T=U.vp)==null?0:T.sx)&&g.Z(U,A.J_)}}; WR8=function(U,Y,A){var c,d=(c=U.rW)==null?void 0:c.W.get(Y);if(!d)return[];if(A.Db){var T;return((T=d.w4(0,A.clipId))==null?void 0:T.py)||[]}if(d.Lm()){var E=A.startMs,L=A.durationMs,r=1E3,l;if(((l=U.vp)==null?0:l.Y)&&A.timeRange){var P;E=(P=A.timeRange.startTicks)!=null?P:-1;var V;L=(V=A.timeRange.iC)!=null?V:-1;var v;r=(v=A.timeRange.timescale)!=null?v:-1}if(A.uU<0||A.Ob<0||L<0||E<0||A.wb<0||r<0)return a6(U,Y),[];U=pI(A.uU,A.wb);Y=A.Bk||0;return[new ZY(3,d,U,"makeSliceInfosMediaBytes",A.Ob-1,E/ r,L/r,Y,U.length-Y,void 0,A.w9,A.clipId)]}if(A.Ob<0)return a6(U,Y),[];var H;return((H=U.rW)==null?0:H.Sc)?(Y=d.Pl,l=Y*d.info.hs,P=((E=U.vp)==null?0:E.KU)?A.Bk:void 0,((r=U.vp)==null?0:r.Ml)&&A.timeRange&&!P&&(L=A.timeRange.startTicks/A.timeRange.timescale),[new ZY(3,d,void 0,"makeSliceInfosMediaBytes",A.Ob,L,Y,P,l,!0,A.w9,A.clipId)]):[]}; wHc=function(U,Y,A){U.rW=Y;U.vp=A;Y=g.J(U.zQ);for(A=Y.next();!A.done;A=Y.next()){var c=g.J(A.value);A=c.next().value;c=c.next().value;for(var d=g.J(c.pE),T=d.next();!T.done;T=d.next()){T=T.value;var E=WR8(U,A,T);Gb3(U,T.Tr,c,E)}}}; fN=function(U,Y,A,c){U.logger.debug(function(){return"[addStreamData] formatId: "+A+",headerId: "+Y+" bytes: "+c.getLength()}); (U=U.zQ.get(A))&&!U.oe&&(kh?(U.qA.has(Y)||U.qA.set(Y,{data:new is,RC:0,ea:!1}),JI(U.qA.get(Y).data,c)):JI(U.CV,c),U.bytesReceived+=c.getLength(),U.jw=!0)}; R6=function(U,Y){U.logger.debug(function(){return"[closeStream] formatId: "+Y}); var A=U.zQ.get(Y);A&&!A.oe&&(A.oe=!0,A.ag&&A.ag(),iIY(U)&&U.j.fC())}; iIY=function(U){U=g.J(U.zQ.values());for(var Y=U.next();!Y.done;Y=U.next())if(!Y.value.oe)return!1;return!0}; JMl=function(U){kh=U}; hR=function(U,Y,A,c,d,T,E,L){g.p.call(this);this.policy=U;this.info=Y;this.rW=A;this.vZ=d;this.uv=L;this.logger=new g.o6("sabr");this.j2=new Cv(this);this.cX=new B1(this);this.Tl=new XN(this);this.state=1;this.gi=!1;this.G2=0;this.clipId="";this.sA=this.mW=-1;this.F_=0;this.xV=-1;this.GM=this.f8=!1;this.Xi=0;this.ZW=!1;this.policy.uD?this.xr=new tR(this,T):this.xr=new uC(this,T);this.uf=this.policy.AP?Y.P3:g.M(FR4(Y,this.policy,c));this.uf.set("rn",""+this.wB());this.uf.set("alr","yes");wHc(this.Tl, A,U);this.GQ=new lZ(this,this.policy,this.uf,Y.Dm,this.xr,this.logger,c,E,this.policy.enableServerDrivenRequestCancellation);aLX(this.GQ);var r;if((r=this.policy)==null?0:r.sx)g.Z(this,this.Tl),g.Z(this,this.GQ);U=Y.T;Y={method:"POST",body:U};U&&(this.F_=U.length);try{this.xhr=EB(this.uf,this.policy.G,this.xr,dI,Y),this.policy.v2&&IV(this.xr,this.GN()),this.GQ.T.start()}catch(l){g.Md(l)}}; jvv=function(U){U.policy.nD&&U.ib&&!U.ZW?U.ZW=!0:U.xr.HU()}; NzX=function(U,Y){var A=-1,c=-1,d=-1,T;if((T=U.rI)==null?0:T.items)for(U=g.J(U.rI.items),T=U.next();!T.done;T=U.next())T=T.value,Y=L,r=U.rW.isManifestless&&U.policy.AD,E){var l;if(((l=U.Y)==null?void 0:l.l1.event)==="predictStart"&&U.Y.JsU.J&&(U.J=NaN,U.G=NaN);U.Y&&U.Y.Js===Y?pHX(U,Y,A,U.Y,d):U.T===1&&pN(U,5,"noad")}; Qv3=function(U,Y,A,c,d){c.Od?pN(U,4,"cue"):(U.J=Y,U.G=A,U.wW("sdai",{joinad:U.T,sg:U.J,st:U.G.toFixed(3)}),U.X=Date.now(),pN(U,2,U.T===3?"staftpred":"join"),d.Q_(c.l1))}; pHX=function(U,Y,A,c,d){if(d&&c){var T=c.l1,E=d.qO(T);T.event==="predictStart"&&(U.Hw=Y);U.wW("sdai",{onqevt:T.event,sq:Y,mt:A,gab:E,cst:T.startSecs,cueid:U.policy.Kv&&(E||T.event==="start")?T.identifier:void 0},!0);if(E)if(T.event!=="predictStart")T.event==="start"&&U.Hw===Y-1&&U.wW("sdai",{gabonstart:Y}),Qv3(U,Y,A,c,d);else if(U.policy.NU)pN(U,3,"predict");else{var L=Y+Math.max(Math.ceil(-T.Y/5E3),1);E=Math.floor(A-T.Y/1E3);U.policy.j?U.K=E:U.j=L;U.wW("sdai",{onpred:A,estsq:L,estmt:E.toFixed(3)}); Zy(U.loader,E,E,L);U.X=Date.now();pN(U,3,"predict");d.Q_(c.l1)}else U.T===1?((L=U.W)==null?0:L.Qx(A))?(Zy(U.loader,A,A,Y),pN(U,4,"sk2head")):pN(U,5,"nogab"):T.event==="predictStart"?U.policy.j&&U.K>0?(A=Math.floor(A-T.Y/1E3),U.K!==A&&U.wW("sdai",{updateSt:A,old:U.K}),U.K=A):U.j>0&&(A=Y+Math.max(Math.ceil(-T.Y/5E3),1),U.j!==A&&(U.wW("sdai",{updateSt:A,old:U.j}),U.j=A)):U.policy.NU&&U.T===3&&Qv3(U,Y,A,c,d);var r,l;if(U.b9&&T.event==="start"&&((r=U.Y)==null?void 0:r.l1.event)!=="predictStart"&&((l=U.Y)== null?void 0:l.Js)===Y-1){var P;U.wW("sdai",{ovlpst:(P=U.Y)==null?void 0:P.l1.event,sq:Y})}}else U.wW("sdai",{nulldec:1,sq:Y,mt:A.toFixed(3),evt:(c==null?void 0:(T=c.l1)==null?void 0:T.event)||"none"})}; OIX=function(U,Y,A){if(U.policy.bH&&U.policy.j)return!(U.T===1||U.T===2||!U.policy.NU&&U.T===3&&A>=U.j);if(U.T===1||U.T===2)return!1;if(U.T!==0&&Y===U.audioTrack){if(U.policy.j)return ZI3(U.videoTrack,A)||ZI3(U.videoTrack,A+1);U=OB(U.videoTrack);if(A>(U?U.Js:-1))return!1}return!0}; m5=function(U,Y,A){return(A<0||A===U.J)&&!isNaN(U.G)?U.G:Y}; SPv=function(U,Y){if(U.Y){var A=U.Y.l1.LV-(Y.startTime+U.Z-U.Y.l1.startSecs);A<=0||(A=new uB(U.Y.l1.startSecs-(isNaN(U.Z)?0:U.Z),A,U.Y.l1.context,U.Y.l1.identifier,"stop",U.Y.l1.Y+Y.duration*1E3),U.wW("cuepointdiscontinuity",{segNum:Y.Js}),bZ(U,A,Y.Js))}}; pN=function(U,Y,A){U.T!==Y&&(U.wW("sdai",{setsst:Y,old:U.T,r:A}),U.T=Y)}; gj=function(U,Y,A,c){(c===void 0?0:c)?pN(U,1,"seek"):Y>0&&Math.abs(Y-A)>=5&&U.T===4&&pN(U,5,"sk2t")}; yU=function(U,Y,A){this.audio=U;this.video=Y;this.reason=A}; nN=function(U,Y,A){this.Y=U;this.reason=Y;this.token=A;this.videoId=void 0}; Dy=function(U,Y,A){g.p.call(this);this.policy=U;this.j=Y;this.wW=A;this.W=new Map;this.K=0;this.J=!1;this.Y="";this.T=!1}; I6=function(U,Y,A){if(A===void 0?0:A)U.J=!0;++U.K;A=6E4*Math.pow(2,U.K);A=(0,g.y)()+A;U.W.set(Y.info.id,A)}; uZ=function(U){for(var Y=g.J(U.W.entries()),A=Y.next();!A.done;A=Y.next()){var c=g.J(A.value);A=c.next().value;c=c.next().value;c<(0,g.y)()&&U.W.delete(A)}return U.W}; mZV=function(U){return U.J&&uZ(U).size>0}; KN=function(U,Y){U.Y!==Y&&(U.Y=Y,U.T=!0)}; g5E=function(U,Y){var A;Y&&(A=g.$z(U.j.Y,function(d){return d.id===Y})); if(!A&&(A=g.$z(U.j.Y,function(d){var T;return!((T=d.b$)==null||!T.isDefault)}),Y)){var c; U.wW("iaf",{id:Y,sid:(c=A)==null?void 0:c.id})}return A}; CN=function(U,Y,A,c,d,T){var E=this;T=T===void 0?[]:T;this.loader=U;this.ov=Y;this.policy=A;this.rW=c;this.J=d;this.qI=T;this.logger=new g.o6("dash/abr");this.Y=y6;this.W=this.G=null;this.X=-1;this.Uv=!1;this.nextVideo=this.T=null;this.j=[];this.yJ=new Set;this.eX={};this.Ly=new $1(1);this.Z=0;this.dW=this.Hw=this.Pw=!1;this.jX=0;this.Zf=!1;this.QJ=new Set;this.kE=!1;this.o5={zH:function(){qM(E)}}; this.K=new Dy(this.policy,d,function(L,r){E.loader.wW(L,r)})}; uec=function(U,Y,A){Ub(U,Y);Y=g5E(U.K,A);A||Y||(Y=yMX(U));Y=Y||U.J.Y[0];U.T=U.rW.Y[Y.id];qM(U);U.G=U.T;n5X(U);DZc(U);U.W=U.nextVideo;U.G=U.T;return IY3(U)}; COX=function(U,Y){if(KRc(U,Y))return null;if(Y.reason==="m"&&Y.isLocked())return U.logger.debug(function(){return"User sets constraint to: "+wW(Y)}),Ub(U,Y),U.Z=U.j.length-1,qM(U),YL(U),U.Hw=U.Hw||U.W!==U.nextVideo,U.W=U.nextVideo,new yU(U.T,U.W,Y.reason); Y.reason==="r"&&(U.X=-1);Ub(U,Y);YL(U);if(Y.reason==="r"&&U.nextVideo===U.W)return new yU(U.T,U.nextVideo,Y.reason);qP4(U);return null}; Ugl=function(U,Y,A){U.T=U.rW.Y[Y];U.G=U.T;return new yU(U.G,U.W,A?"t":"m")}; YH4=function(U,Y){if(Y.info.video){if(U.W!==Y)return U.W=Y,IY3(U)}else U.dW=U.G!==Y,U.G=Y;return null}; AwS=function(U,Y){if(Y.Y.info.video&&Y.K){var A=(Y.T+Y.W)/Y.duration,c=Y.Y.info.hs;A&&c&&(U.Ly.wF(1,A/c),U.policy.T&&A/c>1.5&&U.loader.wW("overshoot",{sq:Y.Js,br:A,max:c}))}}; Ac=function(U,Y,A){I6(U.K,Y,A===void 0?!1:A);U.X=-1;Ub(U,U.Y)}; cw3=function(U,Y){return new yU(U.G,U.W,Y||U.Y.reason)}; qP4=function(U){if(U.W&&U.nextVideo&&cw(U,U.W.info)U.policy.cg,L=d<=U.policy.cg?Cd(c):uu(c);if(!T||E||L)A[d]=c}return A}; Ub=function(U,Y){U.Y=Y;var A=U.J.videoInfos;if(!U.Y.isLocked()){var c=(0,g.y)();A=g.fu(A,function(L){if(L.hs>this.policy.hs)return!1;var r=this.rW.Y[L.id];return uZ(this.K).get(L.id)>c?!1:r.Dm.W>4||r.J>4?(this.logger.debug(function(){return"Remove "+Lw(L)+"; 4 load failures"}),!1):this.QJ.has(+L.itag)?!1:!0},U); mZV(U.K)&&(A=g.fu(A,function(L){return L.video.width<=854&&L.video.height<=480}))}A.length||(A=U.J.videoInfos); var d=A;U.policy.tU&&(d=TO9(U,d,Y));d=g.fu(d,Y.j,Y);if(U.Y.isLocked()&&U.K.Y){var T=g.$z(A,function(L){return L.id===U.K.Y}); T?d=[T]:KN(U.K,"")}U.policy.tU||(d=TO9(U,d,Y));d.length||(d=[A[0]]);d.sort(function(L,r){return cw(U,L)-cw(U,r)}); Y={};for(A=1;AY.FA.video.width?(g.WW(d,A),A--):cw(U,Y.hL)*U.policy.Z>cw(U,Y.FA)&&(g.WW(d,A-1),A--);var E=d[d.length-1];U.Zf=!!U.W&&!!U.W.info&&U.W.info.Rv!==E.Rv;U.logger.debug(function(){return"Constraint: "+wW(U.Y)+", "+d.length+" fmts selectable, max selectable fmt: "+Lw(E)}); U.j=d;U.yJ.clear();Y=!1;for(A=0;A=1080&&(Y=!0);E2S(U.policy,E,U.rW.Sc)}; TO9=function(U,Y,A){var c=A.reason==="m"||A.reason==="s";U.policy.sX&&dZ&&g.iW&&(!c||A.Y<1080)&&(Y=Y.filter(function(l){return l.video&&(!l.T||l.T.powerEfficient)})); if(Y.length>0)if(Fg()){var d=dg9(U,Y);Y=Y.filter(function(l){return!!l&&!!l.video&&l.Rv===d[l.video.qualityOrdinal].Rv})}else{var T,E,L=(T=Y[0])==null?void 0:(E=T.video)==null?void 0:E.qualityOrdinal; if(L){A=Y.filter(function(l){return!!l&&!!l.video&&l.video.qualityOrdinal===L}); var r=dg9(U,A)[L].Rv;Y=Y.filter(function(l){return!!l&&!!l.video&&l.Rv===r})}}return Y}; o2X=function(U,Y){for(var A=0;A+1c}; qM=function(U){if(!U.T||!U.policy.W&&!U.T.info.b$){var Y=U.J.Y;U.T&&(Y=Y.filter(function(c){return c.audio.Y===U.T.info.audio.Y}),Y.length||(Y=U.J.Y)); U.T=U.rW.Y[Y[0].id];if(Y.length>1&&!U.policy.Ly){var A=g.$z(Y,function(c){return c.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); A&&(U.T=U.rW.Y[A.id]);A=!1;if(A=U.policy.qe?!0:U.Y.isLocked()?U.Y.Y<240:o2X(U,U.T))U.T=U.rW.Y[g.PW(Y).id]}}}; YL=function(U){if(!U.nextVideo||!U.policy.W)if(U.Y.isLocked())U.nextVideo=U.Y.Y<=360?U.rW.Y[U.j[0].id]:U.rW.Y[g.PW(U.j).id],U.logger.debug(function(){return"Select max fmt: "+Lw(U.nextVideo.info)}); else{for(var Y=Math.min(U.Z,U.j.length-1),A=aV(U.ov),c=cw(U,U.T.info),d=A/U.policy.Pw-c;Y>0&&!(cw(U,U.j[Y])<=d);Y--);for(var T=A/U.policy.Z-c;Y=T);Y++);U.nextVideo=U.rW.Y[U.j[Y].id];U.Z!==Y&&U.logger.info(function(){return"Adapt to: "+Lw(U.nextVideo.info)+", bandwidth: "+A.toFixed(0)+", bandwidth to downgrade: "+d.toFixed(0)+", bandwidth to upgrade: "+T.toFixed(0)+", constraint: "+wW(U.Y)}); U.Z=Y}}; n5X=function(U){var Y=U.policy.Pw,A=aV(U.ov),c=A/Y-cw(U,U.T.info);Y=g.HW(U.j,function(d){return cw(this,d)T?d=0:c[E]>U.buffered[E]&&(E===T-1?d=2:E===T-2&&c[E+1]>U.buffered[E+1]&&(d=3))}U.Y.add(Y<<3|(A&&4)|d);Y=Math.ceil(U.track.ZM()*1E3);U.Y.add(Y-U.K);U.K=Y;if(d===1)for(U.Y.add(T),E=Y=0;E=2&&U.Y.add(c[T- 1]-U.buffered[T-1]);A&&U.Y.add(A);U.buffered=c}; oS=function(U,Y,A){var c=this;this.policy=U;this.Y=Y;this.jX=A;this.j=this.T=0;this.YH=null;this.Pw=new Set;this.X=[];this.indexRange=this.initRange=null;this.Z=new AX;this.Hw=this.ov=!1;this.o5={POy:function(){return c.W}, SLJ:function(){return c.chunkSize}, Qff:function(){return c.G}, uDY:function(){return c.J}}; (Y=PqE(this))?(this.chunkSize=Y.csz,this.W=Math.floor(Y.clen/Y.csz),this.G=Y.ck,this.J=Y.civ):(this.chunkSize=U.HT,this.W=0,this.G=g.tH(16),this.J=g.tH(16));this.K=new Uint8Array(this.chunkSize);this.G&&this.J&&(this.crypto=new wzX(this.G,this.J))}; PqE=function(U){if(U.policy.VU&&U.policy.oO)for(var Y=g.J(U.policy.VU),A=Y.next(),c={};!A.done;c={NJ:void 0,Hy:void 0},A=Y.next())if(A=g.dF(A.value),c.NJ=+A.clen,c.Hy=+A.csz,c.NJ>0&&c.Hy>0&&U.policy.W===A.docid&&U.Y.info.id===A.fmtid&&U.Y.info.lastModified===+A.lmt)return U={},U.clen=c.NJ,U.csz=c.Hy,U.ck=A.ck,U.civ=A.civ,U}; zZ=function(U){return!!U.YH&&U.YH.lN()}; v2c=function(U,Y){if(!zZ(U)&&!U.Ky()){if(!(U.ov||(U.ov=!0,U.W>0))){var A=Lr(U);A=SK(U.policy.W,U.Y.info,rZ(U),A,U.policy.qI);l9(U,A)}if(Y.info.type===1){if(U.YH){Pw(U,Error("Woffle: Expect INIT slices to always start us off"));return}U.initRange=pI(0,Y.Y.getLength())}else if(Y.info.type===2)U.YH&&U.YH.type===1||Pw(U,Error("Woffle: Index before init")),U.indexRange=pI(U.initRange.end+1,Y.Y.getLength());else if(Y.info.type===3){if(!U.YH){Pw(U,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(U.YH.type===3&&!gz(U.YH,Y.info)&&(U.X=[],Y.info.Js!==y_(U.YH)||Y.info.T!==0))return;if(Y.info.K){A=g.J(U.X);for(var c=A.next();!c.done;c=A.next())VvY(U,c.value);U.X=[]}else{U.X.push(Y);U.YH=Y.info;return}}else{Pw(U,Error("Woffle: Unexpected slice type"));return}U.YH=Y.info;VvY(U,Y);$gc(U)}}; VvY=function(U,Y){var A=0,c=Y.Y.fJ();if(U.j=c.length)return;if(A<0)throw Error("Missing data");U.j=U.W;U.T=0}for(d={};A0){var E=c.getUint32(A+28);T+=E*16+4}var L=c.getUint32(A+T-4);try{var r=i13(Y.subarray(A+T,A+T+L));if(r!==null){var l=r;break a}}catch(P){}}A+=d}l=null;break a}catch(P){l=null;break a}l=void 0}if(l!=null)for(Y=p2(w$(l,7)),Y==null||U.Wu||(U.cryptoPeriodIndex=Y),Y=p2(w$(l,10)),Y!=null&&Y>0&&!U.Wu&&(U.Y=Y),l=Bp(l, 2,aHS,void 0===hZX?2:4),l=g.J(l),c=l.next();!c.done;c=l.next())Y=U.W,A=Y.push,c=z5(c.value),c=g.U_(c,4),A.call(Y,c)}; FH9=function(U){return isNaN(U.cryptoPeriodIndex)?g.U_(U.initData):""+U.cryptoPeriodIndex}; vw=function(U,Y,A){var c=A===void 0?{}:A;A=c.videoDuration===void 0?0:c.videoDuration;var d=c.rj===void 0?void 0:c.rj;c=c.y_===void 0?!1:c.y_;this.videoId=U;this.status=Y;this.videoDuration=A;this.rj=d;this.y_=c}; j7X=function(U,Y,A,c,d){this.videoId=U;this.By=Y;this.T=A;this.bytesDownloaded=c;this.Y=d}; Hw=function(U){this.Y=U;this.offset=0}; GZ=function(U){if(U.offset>=U.Y.getLength())throw Error();return U.Y.getUint8(U.offset++)}; NOl=function(U,Y){Y=Y===void 0?!1:Y;var A=GZ(U);if(A===1){Y=-1;for(A=0;A<7;A++){var c=GZ(U);Y===-1&&c!==255&&(Y=0);Y>-1&&(Y=Y*256+c)}return Y}c=128;for(var d=0;d<6&&c>A;d++)A=A*256+GZ(U),c*=128;return Y?A:A-c}; tv3=function(U){try{var Y=NOl(U,!0),A=NOl(U,!1);return{id:Y,size:A}}catch(c){return{id:-1,size:-1}}}; eR3=function(U){for(var Y=new Hw(U),A=-1,c=0,d=0;!c||!d;){var T=tv3(Y),E=T.id;T=T.size;if(E<0)return;if(E===176){if(T!==2)return;c=Y.bQ()}else if(E===186){if(T!==2)return;d=Y.bQ()}E===374648427?A=Y.bQ()+T:E!==408125543&&E!==174&&E!==224&&Y.skip(T)}Y=tI(U,0,A);A=new DataView(Y.buffer);A.setUint16(c,3840);A.setUint16(d,2160);c=new is([Y]);JI(c,U);return c}; BOX=function(U,Y,A){var c=this;this.loader=U;this.policy=Y;this.J=A;this.logger=new g.o6("dash");this.T=[];this.Y=null;this.ov=-1;this.X=0;this.QJ=NaN;this.Pw=0;this.W=NaN;this.Z=this.Uv=0;this.Zf=-1;this.eX=this.K=this.j=this.jX=null;this.Ly=this.dW=NaN;this.G=this.Hw=this.yJ=this.qI=null;this.VJ=!1;this.kE=this.timestampOffset=0;this.o5={J9:function(){return c.T}}; if(this.policy.W){var d=this.J,T=this.policy.W;this.policy.qI&&U.wW("atv",{ap:this.policy.qI});this.G=new oS(this.policy,d,function(E,L,r){Ww(U,new vw(c.policy.W,2,{rj:new j7X(T,E,d.info,L,r)}))}); this.G.Z.promise.then(function(E){c.G=null;E===1?Ww(U,new vw(c.policy.W,E)):c.loader.wW("offlineerr",{status:E.toString()})},function(E){var L=(E.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); E instanceof VS&&!E.Y?(c.logger.info(function(){return"Assertion failed: "+L}),c.loader.wW("offlinenwerr",{em:L}),wZ(c),Ww(U,new vw(c.policy.W,4))):(c.logger.info(function(){return"Failed to write to disk: "+L}),c.loader.wW("dldbwerr",{em:L}),wZ(c),Ww(U,new vw(c.policy.W,4,{y_:!0})))})}}; XM3=function(U){return U.T.length?U.T[0]:null}; kp4=function(U,Y){return U.T.some(function(A){return A.info.Js===Y})}; SH4=function(U,Y,A,c){c=c===void 0?0:c;if(U.K){var d=U.K.T+U.K.W;if(A.info.T>0)if(A.info.Js===U.K.Js&&A.info.T=0&&U.K.Js>=0&&!gz(U.K,A.info))throw new g.Do("improper_continuation",U.K.jq(),A.info.jq());rxl(U.K,A.info)||RRX(U,"d")}else if(A.info.T>0)throw new g.Do("continuation_of_null",A.info.jq());U.K=A.info;U.J=A.info.Y;if(A.info.T===0){if(U.Y)if(!U.loader.isOffline()||U.policy.W7)U.loader.wW("slice_not_fully_processed", {buffered:U.Y.info.jq(),push:A.info.jq()});else throw new g.Do("slice_not_fully_processed",U.Y.info.jq(),A.info.jq());i9(U);U.Uv=c}else{if(U.Uv&&c&&U.Uv!==c)throw U=new g.Do("lmt_mismatch",A.info.Js,U.Uv,c),U.level="WARNING",U;!A.info.Y.Lm()&&U.j&&(c=A.info,d=U.j.mW,c.Z="updateWithEmsg",c.Js=d)}if(U.Y){c=g.L1(U.Y,A);if(!c)throw new g.Do("failed_to_merge",U.Y.info.jq(),A.info.jq());U.Y=c}else U.Y=A;a:{A=g.Ax(U.Y.info.Y.info);if(U.Y.info.type!==3){if(!U.Y.info.K)break a;U.Y.info.type===6?a7Y(U,Y,U.Y): xg3(U,U.Y);U.Y=null}for(;U.Y;){c=U.Y.Y.getLength();if(U.ov<=0&&U.X===0){var T=U.Y.Y,E=-1;d=-1;if(A){for(var L=0;L+80))break;if(V!==408125543)if(V===524531317)L=!0,P>=0&&(d=T.bQ()+P,r=!0);else{if(L&&(V===160||V===163)&&(E<0&&(E=l),r))break;V===163&&(E=Math.max(0,E),d=T.bQ()+P);if(V===160){E<0&&(d=E=T.bQ()+ P);break}T.skip(P)}}E<0&&(d=-1)}if(E<0)break;U.ov=E;U.X=d-E}if(U.ov>c)break;U.ov?(c=s7X(U,U.ov),c.K&&f78(U,c),a7Y(U,Y,c),hRX(U,c),U.ov=0):U.X&&(c=s7X(U,U.X<0?Infinity:U.X),U.X-=c.Y.getLength(),hRX(U,c))}}U.Y&&U.Y.info.K&&(hRX(U,U.Y),U.Y=null)}; xg3=function(U,Y){!Y.info.Y.Lm()&&Y.info.T===0&&(g.Ax(Y.info.Y.info)||Y.info.Y.info.Wu())&&pd9(Y);if(Y.info.type===1)try{f78(U,Y),MvX(U,Y)}catch(d){g.S5(d);var A=nI(Y.info);A.hms="1";U.loader.handleError("fmt.unparseable",A||{},1)}A=Y.info.Y;A.z1(Y);U.G&&v2c(U.G,Y);if(A.kH()&&U.policy.Y)a:{U=U.loader.rW;Y=Y.info.clipId;A=g.dh(A.info,U.Sc);if(Y){var c=cXc(U,A);if(U.kE[c])break a;U.kE[c]=Y}U.Uv.push(A)}}; qGS=function(U,Y,A){if(U.T.length!==0&&(A||U.T.some(function(T){return T.info.j=FF(E)+L):Y=U.getDuration()>=E.getDuration(),Y=!Y;Y&&Q7l(A)&&(Y=U.jX,Jc?(L=M1V(A),E=1/L,L=FF(U,L),Y=FF(Y)+E-L):Y=Y.getDuration()- U.getDuration(),Y=1+Y/A.info.duration,bdX(A.AB(),Y))}else{E=!1;U.j||(pd9(A),A.T&&(U.j=A.T,E=!0,T=A.info,c=A.T.mW,T.Z="updateWithEmsg",T.Js=c,T=A.T,T.lN&&(c=U.J.index,c.T=!T.lN,c.W="emsg"),T=A.info.Y.info,c=A.AB(),g.Ax(T)?LI(c,1701671783):T.Wu()&&Gb([408125543],307544935,c)));a:if((T=PM(A,U.policy.mH))&&bwc(A))L=Z1X(U,A),U.Z+=L,T-=L,U.Pw+=T,U.W=U.policy.v7?U.W+T:NaN;else{if(U.policy.O7){if(c=r=U.loader.GG(g.rO(A),1),U.W>=0&&A.info.type!==6){if(U.policy.v7&&isNaN(U.dW)){g.Md(new g.Do("Missing duration while processing previous chunk", A.info.jq()));U.loader.isOffline()&&!U.policy.W7||O13(U,A,c);RRX(U,"m");break a}var l=r-U.W,P=l-U.Z,V=A.info.Js,v=U.eX?U.eX.Js:-1,H=U.Ly,G=U.dW,F=U.policy.Ll&&l>U.policy.Ll,N=Math.abs(P)>10,e=Math.abs(U.W-c)<1E-7;if(Math.abs(P)>1E-4){U.kE+=1;var B=(d=U.j)==null?void 0:Cn(d);d={audio:""+ +U.SI(),sq:V.toFixed(),sliceStart:r,lastSq:v.toFixed(),lastSliceStart:H,lastSliceDuration:G,totalDrift:(l*1E3).toFixed(),segDrift:(P*1E3).toFixed(),skipRewrite:""+ +(F||N)};if(B==null?0:B.length)d.adCpn=B[0];U.loader.handleError("qoe.avsync", d);U.Zf=V}F||N||e||(c=U.W);d=Z1X(U,A,r);T-=d;U.Z=l+d;U.policy.T&&(P&&!e||d)&&(l=(L=U.j)==null?void 0:Cn(L),U.loader.wW("discontinuityRewrite",{adCpn:(l==null?0:l.length)?l.join("."):"",itag:A.info.Y.info.itag,sq:A.info.Js,originalStartTime:r,rewrittenStartTime:c,startTimeAdjustment:c-r,segDrift:(P*1E3).toFixed(),originalDuration:T+d,rewrittenDuration:T,durationAdjustment:d}))}}else c=isNaN(U.W)?A.info.startTime:U.W;O13(U,A,c)&&(U.Pw+=T,U.W=c+T,U.policy.fl&&U.kE>=U.policy.fl&&(U.kE=0,U.loader.gB({resetForRewrites:"count"})))}U.eX= A.info;U.dW=lq(A);A.W>=0&&(U.Ly=A.W);if(E&&U.j){E=mgE(U,!0);DY(A.info,E);U.Y&&DY(U.Y.info,E);Y=g.J(Y);for(L=Y.next();!L.done;L=Y.next())L=L.value,d=void 0,U.policy.K&&L.Js!==((d=U.j)==null?void 0:d.mW)||DY(L,E);(A.info.K||U.Y&&U.Y.info.K)&&A.info.type!==6||(U.Hw=E,U.policy.Zf?(Y=g2X(U.j),U.loader.VD(U.J,E,Y)):(Y=U.loader,Y.rW.isManifestless&&ywX(Y,E,null,!!U.J.info.video)),U.policy.Zh||n29(U))}}MvX(U,A);U.timestampOffset&&hdc(A,U.timestampOffset)}; hRX=function(U,Y){if(Y.info.K){U.qI=Y.info;if(U.j){var A=U.j,c=mgE(U,!1);A=g2X(A);U.loader.VD(U.J,c,A);U.Hw||U.policy.Zh||n29(U);U.Hw=null}i9(U)}U.G&&v2c(U.G,Y);if(c=U.rB())if(c=g.L1(c,Y,U.policy.WW,U.policy.mA)){U.T.pop();U.T.push(c);return}U.T.push(Y)}; g2X=function(U){if(U.Od()){var Y=U.data["Stitched-Video-Id"]?U.data["Stitched-Video-Id"].split(",").slice(0,-1):[],A=Cn(U),c=[];if(U.data["Stitched-Video-Duration-Us"])for(var d=g.J(U.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),T=d.next();!T.done;T=d.next())c.push((Number(T.value)||0)/1E6);d=[];if(U.data["Stitched-Video-Start-Frame-Index"]){T=g.J(U.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var E=T.next();!E.done;E=T.next())d.push(Number(E.value)||0)}d=[]; if(U.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(T=g.J(U.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),E=T.next();!E.done;E=T.next())d.push((Number(E.value)||0)/1E6);U=new wMX(Y,A,c,d,g.fMc(U),g.h03(U))}else U=null;return U}; i9=function(U){U.Y=null;U.ov=-1;U.X=0;U.j=null;U.QJ=NaN;U.Pw=0;U.Hw=null}; RRX=function(U,Y){Y={rst4disc:Y,cd:U.Z.toFixed(3),sq:U.eX?U.eX.Js:-1};U.W=NaN;U.Z=0;U.Zf=-1;U.eX=null;U.Ly=NaN;U.dW=NaN;U.yJ=null;U.loader.wW("mdstm",Y)}; MvX=function(U,Y){if(U.J.info.JB){if(Y.info.Y.info.Wu()){var A=new lO(Y.AB());if(V_(A,[408125543,374648427,174,28032,25152,20533,18402])){var c=HH(A,!0);A=c!==16?null:JM(A,c)}else A=null;c="webm"}else Y.info.X=GpV(Y.AB()),A=WHX(Y.info.X),c="cenc";A&&A.length&&(A=new $L(A,c),U.policy.Jq&&g.Ax(Y.info.Y.info)&&(c=gP8(Y.AB()))&&(A.T=c),A.Wu=Y.info.Y.info.Wu(),Y.T&&Y.T.cryptoPeriodIndex&&(A.cryptoPeriodIndex=Y.T.cryptoPeriodIndex),Y.T&&Y.T.T&&(A.Y=Y.T.T),U.loader.o6(A))}}; n29=function(U){var Y=U.j,A=xxX(Y);A&&(A.startSecs+=U.QJ,U.loader.G7(U.J,A,Y.mW,Y.Od()))}; mgE=function(U,Y){var A,c=U.j;if(A=xxX(c))A.startSecs+=U.QJ;return new pn(c.mW,U.QJ,Y?c.Pl:U.Pw,c.ingestionTime,"sq/"+c.mW,void 0,void 0,Y,A)}; O13=function(U,Y,A){if(!fF4(Y,A))return Y=nI(Y.info),Y.smst="1",U.loader.handleError("fmt.unparseable",Y||{},1),!1;isNaN(U.QJ)&&(U.QJ=A);return!0}; Z1X=function(U,Y,A){var c=0;if(Y.info.Y.info.Wu()&&!bwc(Y))return 0;if(U.jX&&!U.SI()){var d=0;A&&g.Ax(Y.info.Y.info)?d=A-U.W:Y.info.Y.info.Wu()&&(d=U.Z);var T=Y.info.Js;A=PM(Y,U.policy.mH);var E=U.jX;var L=E.Zf;E=E.Z;var r=Math.abs(E-d)>.02;if((T===L||T>L&&T>U.Zf)&&r){c=Math.max(.95,Math.min(1.05,(A-(E-d))/A));if(g.Ax(Y.info.Y.info))bdX(Y.AB(),c);else if(Y.info.Y.info.Wu()&&(T=d-E,!g.Ax(Y.info.Y.info)&&(Y.info.Y.info.Wu(),c=new lO(Y.AB()),L=Y.K?c:new lO(new DataView(Y.info.Y.Y.buffer)),PM(Y,!0)))){var l= T*1E3,P=jx(L);L=c.pos;c.pos=0;if(c.Y.getUint8(c.pos)===160||NZ(c))if(vH(c,160))if(HH(c,!0),vH(c,155)){if(T=c.pos,r=HH(c,!0),c.pos=T,l=l*1E9/P,P=WH(c),l=P+Math.max(-P*.7,Math.min(P,l)),l=Math.sign(l)*Math.floor(Math.abs(l)),!(Math.ceil(Math.log(l)/Math.log(2)/8)>r)){c.pos=T+1;for(T=r-1;T>=0;T--)c.Y.setUint8(c.pos+T,l&255),l>>>=8;c.pos=L}}else c.pos=L;else c.pos=L;else c.pos=L}c=PM(Y,U.policy.mH);c=A-c}c&&Y.info.Y.info.Wu()&&U.loader.wW("webmDurationAdjustment",{durationAdjustment:c,videoDrift:d+c, audioDrift:E})}return c}; Q7l=function(U){return U.info.Y.Lm()&&U.info.Js===U.info.Y.index.Ea()}; FF=function(U,Y){Y=(Y=Y===void 0?0:Y)?Math.round(U.timestampOffset*Y)/Y:U.timestampOffset;U.J.j&&Y&&(Y+=U.J.j.Y);return Y+U.getDuration()}; Dgc=function(U,Y){Y<0||(U.T.forEach(function(A){hdc(A,Y)}),U.timestampOffset=Y)}; Sm=function(U,Y,A,c,d){UB.call(this,A,d);var T=this;this.policy=U;this.formatId=Y;this.Tl=c;this.lastError=null;this.ag=function(){T.Ky()||(T.Tl.zQ.has(T.formatId)?(T.isComplete()||T.Y.start(),sB(T.Tl,T.formatId)&&T.yF(2),T.Tl.oe(T.formatId)&&(v54(T.Tl,T.formatId)?T.l9(4):(T.lastError="net.closed",T.l9(5)))):(T.lastError="player.exception",T.l9(5)))}; this.Y=new g.IM(function(){T.isComplete()||(T.lastError="net.timeout",T.l9(5))},1E3); this.Y.start();POY(this.Tl,this.formatId,this.ag);g.jW(this.ag)}; jl=function(U,Y,A,c){g.p.call(this);var d=this;this.loader=U;this.policy=Y;this.Y=A;this.timing=c;this.logger=new g.o6("dash");this.W=[];this.jX=[];this.T=this.yd=null;this.yJ=!1;this.Uv=this.kE=0;this.J=-1;this.ov=!1;this.QJ=-1;this.eX=null;this.Hw=NaN;this.Pw=[];this.o5={T1:function(){return d.j}, iRw:function(){return d.W}, JUr:function(){return d.G}}; this.j=new BOX(U,Y,A);this.policy.Y&&(this.G=new sN(this.j,this.loader.getManifest(),this.policy,function(T){d.policy.UB&&d.wW("buftl",T)})); this.policy.R1&&(this.X=new TZ(this));this.hs=A.info.hs;this.Z=this.policy.Hw?!1:A.C7();this.isManifestless=A.C7();this.K=this.Z;g.Z(this,this.eX)}; NS=function(U,Y,A){A=A===void 0?!1:A;Y&&Jc&&Dgc(U.j,Y.Kp());if(!A){var c;(c=U.G)==null||DNc(c)}U.yd=Y;(Y=U.G)!=null&&(Y.yd=U.yd)}; tc=function(U){var Y=U.yd&&U.yd.Cg();if(U.policy.yB){if((U=U.G)==null)U=void 0;else{var A;U=(A=U.W)==null?void 0:A.info}return U||null}return Y}; I7l=function(U){for(var Y={},A=0;A4&&U.jX.shift()}; qHc=function(U,Y){if(Y.Ve()){var A=Y.oi();A=g.J(A);for(var c=A.next();!c.done;c=A.next())c=c.value,U.policy.T&&Y instanceof Sm&&U.wW("omblss",{s:c.info.jq()}),KHX(U,Y.info.py,c,Y.UW())}}; KHX=function(U,Y,A,c){c=c===void 0?0:c;isNaN(U.Hw)||(U.wW("aswm",{sq:Y[0].Js,id:Y[0].Y.info.itag,xtag:Y[0].Y.info.Y,ep:Date.now()-U.Hw}),U.Hw=NaN);switch(A.info.type){case 1:case 2:CqE(U,A);break;case 4:var d=A.info.Y,T=d.gG(A),E;((E=U.T)==null?0:E.type===4)&&Gu3(A.info,U.T)&&(U.T=d.Ag(U.T).pop());A=g.J(T);for(d=A.next();!d.done;d=A.next())KHX(U,Y,d.value,c);break;case 3:A.info.Y.info.video?(d=U.timing,d.jX||(d.jX=(0,g.y)(),ah("fvb_r",d.jX,d.Y))):(d=U.timing,d.J||(d.J=(0,g.y)(),ah("fab_r",d.J,d.Y))); SH4(U.j,Y,A,c);U.policy.Y&&U03(U);break;case 6:SH4(U.j,Y,A,c),U.T=A.info}}; CqE=function(U,Y){if(Y.info.type===1)if(Y.info.Y.info.video){var A=U.timing;A.eX||(A.eX=(0,g.y)(),ah("vis_r",A.eX,A.Y))}else A=U.timing,A.Z||(A.Z=(0,g.y)(),ah("ais_r",A.Z,A.Y));xg3(U.j,Y);U=U.loader;U.videoTrack.Y.kH()&&U.audioTrack.Y.kH()&&U.policy.Y&&!U.rW.Sc&&(Y=U.audioTrack.getDuration(),A=U.videoTrack.getDuration(),Math.abs(Y-A)>1&&U.wW("trBug",{af:""+g.dh(U.audioTrack.Y.info,!1),vf:""+g.dh(U.videoTrack.Y.info,!1),a:""+Y,v:""+A}))}; yA=function(U){return XM3(U.j)}; U03=function(U){U.W.length?U.T=g.PW(g.PW(U.W).info.py):U.j.T.length?U.T=U.j.rB().info:U.T=tc(U)}; Y53=function(U,Y){var A={BZ:[],wC:[]},c;if((U=U.G)==null)U=void 0;else{nkX(U,U.BZ,"og");mNX(U,Y);nkX(U,U.BZ,"trim");var d=y9Y(U);Y=d.BZ;d=d.nm;for(var T=[],E=0;E0){var v=Pd(V,r);v>=0&&(P=(V.end(v)-r+.1)*1E3)}T.push({formatId:g.dh(L.info.Y.info,U.rW.Sc), w9:L.info.w9,sequenceNumber:L.info.Js+U.j,mV:l,EC:L.info.W,qo:P})}U={BZ:Y,wC:T}}return(c=U)!=null?c:A}; pv=function(U,Y,A){A=A===void 0?!1:A;if(U.yd){var c=U.yd.MU(),d=$e(c,Y),T=NaN,E=tc(U);E&&(T=$e(c,E.Y.index.getStartTime(E.Js)));if(d===T&&U.T&&U.T.W&&AvX(cvE(U),0))return Y}U=d0V(U,Y,A);return U>=0?U:NaN}; Zi=function(U,Y,A){U.Y.kH();var c=d0V(U,Y);if(c>=0)return c;var d;(d=U.G)==null||gkv(d,Y,A);A=Math;c=A.min;d=U.j;if(d.G)if(d=d.G,d.YH&&d.YH.type===3)d=d.YH.startTime;else if(d.W>0){var T=d.Y.index;T=g.kz(T.offsets.subarray(0,T.count),d.W*d.chunkSize);d=d.Y.index.getStartTime(T>=0?T:Math.max(0,-T-2))}else d=0;else d=Infinity;Y=c.call(A,Y,d);U.T=U.policy.Hw?null:U.Y.Hx(Y).py[0];el(U)&&(U.yd&&U.yd.abort(),U.policy.dk&&(A=U.G)!=null&&(A.W=void 0));U.Uv=0;return U.T?U.T.startTime:Y}; u9S=function(U){U.Z=!0;U.K=!0;U.J=-1;Zi(U,Infinity)}; Bw=function(U){for(var Y=0,A=g.J(U.W),c=A.next();!c.done;c=A.next())Y+=wdc(c.value.info);return Y+=b1V(U.j)}; kL=function(U,Y){Y=Y===void 0?!1:Y;var A=U.loader.getCurrentTime(),c=U.j.rB(),d=(c==null?void 0:c.info.J)||0;U.policy.xm&&(c==null?0:c.info.Y.C7())&&!c.info.K&&(d=c.info.j);if(!U.yd)return U.policy.Y&&Y&&!isNaN(A)&&c?d-A:0;var T=tc(U);if(T&&XF(T))return T.J;var E=U.yd.MU(!0);if(Y&&c)return T=0,U.policy.Y&&(T=Gu(E,d+.02)),T+d-A;d=Gu(E,A);U.policy.U5&&T&&(Y=Pd(E,A),E=Pd(E,T.j-.02),Y===E&&(A=T.J-A,U.policy.T&&A>d+.02&&U.wW("abh",{bh:d,bhtls:A}),d=Math.max(d,A)));return d}; TIE=function(U){var Y=tc(U);return Y?Y.J-U.loader.getCurrentTime():0}; E1X=function(U,Y){if(U.W.length){if(U.W[0].info.py[0].startTime<=Y)return;bC(U)}for(var A=U.j,c=A.T.length-1;c>=0;c--)A.T[c].info.startTime>Y&&A.T.pop();U03(U);U.T&&Y=0;E--){var L=d.T[E];L.info.Js>=Y&&(d.T.pop(),d.W-=PM(L,d.policy.mH),T=L.info)}T&&(d.K=d.T.length>0?d.T[d.T.length-1].info:d.yJ,d.T.length!==0||d.K||RRX(d,"r"));d.loader.wW("mdstm",{rollbk:1,itag:T?T.Y.info.itag:"",popped:T?T.Js:-1,sq:Y,lastslc:d.K?d.K.Js:-1,lastfraget:d.W.toFixed(3)});if(U.policy.Y)return U.T=null,!0;c>A?Zi(U,c):U.T=U.Y.rb(Y-1,!1).py[0]}catch(r){return Y=s7(r),Y.details.reason="rollbkerr", U.loader.handleError(Y.errorCode,Y.details,Y.severity),!1}return!0}; aS=function(U,Y){var A;for(A=0;A0?A||Y.Js>=U.QJ:A}; xL=function(U){var Y;return el(U)||XF((Y=U.j.rB())==null?void 0:Y.info)}; cvE=function(U){var Y=[],A=tc(U);A&&Y.push(A);Y=g.Jq(Y,U.j.Jj());A=g.J(U.W);for(var c=A.next();!c.done;c=A.next()){c=c.value;for(var d=g.J(c.info.py),T=d.next(),E={};!T.done;E={aG:void 0},T=d.next())E.aG=T.value,c.Lp&&(Y=g.fu(Y,function(L){return function(r){return!Gu3(r,L.aG)}}(E))),(mR(E.aG)||E.aG.type===4)&&Y.push(E.aG)}U.T&&!zdS(U.T,g.PW(Y),U.T.Y.Lm())&&Y.push(U.T); return Y}; AvX=function(U,Y){if(!U.length)return!1;for(Y+=1;Y=Y){Y=T;break a}}Y=d}return Y<0?NaN:AvX(U,A?Y:0)?U[Y].startTime:NaN}; sb=function(U){return!(!U.T||U.T.Y===U.Y)}; zwv=function(U){return sb(U)&&U.Y.kH()&&U.T.Y.info.hsY&&U.J1080&&!U.Yn&&(U.Uv=36700160,U.VJ=5242880,U.kE=Math.max(4194304,U.kE),U.Yn=!0);Y.video.qualityOrdinal>2160&&!U.Tc&&(U.Uv=104857600,U.hs=13107200,U.Tc=!0);g.H_(U.Ww.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?Y.isEncrypted()&&g.yB()&&g.mm("samsung")&&(g.mm("kant")||g.mm("muse"))&&(U.hs=g.H_(U.Ww.experiments,"html5_samsung_kant_limit_max_bitrate")):Y.isEncrypted()&&g.yB()&&g.mm("kant")&&(U.hs=1310720);U.Aj!==0&&Y.isEncrypted()&& (U.hs=U.Aj);U.Gy!==0&&Y.isEncrypted()&&A&&(U.hs=U.Gy);Y.hs&&(U.Ut=Math.max(U.sO,Math.min(U.kE,5*Y.hs)))}; JR=function(U){return U.Y&&U.VK}; Sl=function(U){return U.Y&&U.x_&&U.playbackStartPolicy}; jyV=function(U,Y,A,c){U.x_&&(U.playbackStartPolicy=Y,U.kM=A,U.SN=c)}; hc=function(U,Y,A){A=A===void 0?0:A;return g.H_(U.Ww.experiments,Y)||A}; NIX=function(U){var Y=U===void 0?{}:U;U=Y.r9;var A=Y.ej;var c=Y.zl;var d=Y.Ea;Y=Y.XU;this.r9=U;this.ej=A;this.zl=c;this.Ea=d;this.XU=Y}; za3=function(U,Y){if(Y<0)return!0;var A=U.Ea();return Y0)return 2;if(Y<0)return 1;A=U.Ea();return Y(0,g.y)()?0:1}; b9=function(U,Y,A,c,d,T,E,L,r,l,P,V,v,H){H=H===void 0?null:H;g.p.call(this);var G=this;this.loader=U;this.policy=Y;this.videoTrack=A;this.audioTrack=c;this.j=d;this.Y=T;this.timing=E;this.K=L;this.schedule=r;this.rW=l;this.W=P;this.Pw=V;this.gM=v;this.NW=H;this.Hw=!1;this.OV="";this.hw=null;this.rY=NaN;this.ov=!1;this.T=null;this.L3=this.X=NaN;this.L4=this.J=0;this.logger=new g.o6("dash");this.o5={sP:function(F,N){return G.sP(F,N)}}; this.policy.EA>0&&(this.OV=g.tH(this.policy.EA));this.policy.jo&&(this.Z=new MS(this.loader,this.policy,this.schedule),g.Z(this,this.Z))}; a8l=function(U,Y,A){var c=Y.T?Y.T.Y.Dm:Y.Y.Dm;var d=U.j,T;(T=!U.policy.yl)||(T=fn(c.Y)===fn(c.T));T?c=!1:(d=k5(d,fn(c.T)),T=6E4*Math.pow(d.W,1.6),(0,g.y)()=d.j?(d.wW("sdai",{haltrq:T+1,est:d.j}),c=!1):c=d.T!==2;if(!c||!fI(Y.T?Y.T.Y.Dm:Y.Y.Dm,U.policy,U.j,U.loader.Y9())||U.loader.isSuspended&&(!tv(U.schedule)||U.loader.Q0))return!1;if(U.policy.W&&hG>=5)return g.uQ(U.loader.Dr),!1;if(U.rW.isManifestless){if(Y.W.length>0&&Y.T&&Y.T.Js===-1||Y.W.length>=U.policy.BN||!U.policy.K_&&Y.W.length>0&&!U.policy.G.ej)return!1;if(Y.Z)return!U.rW.isLive|| !isNaN(U.rY)}if(VjY(Y))return U.logger.debug("Pending request with server-selectable format found"),!1;if(!Y.T){if(!Y.Y.kH())return!1;Zi(Y,U.loader.getCurrentTime())}if(yA(Y)&&(Y.rB()!==yA(Y)||U.loader.isSuspended))return!1;d=(c=U.policy.s5)&&!Y.W.length&&kL(Y,!0)=U.policy.qY)return!1;c=Y.T;if(!c)return!0;c.type===4&&c.Y.kH()&&(Y.T=g.PW(c.Y.Ag(c)),c= Y.T);if(!c.lN()&&!c.Y.ST(c))return!1;T=U.rW.yT||U.rW.j;if(U.rW.isManifestless&&T){T=Y.Y.index.Ea();var E=A.Y.index.Ea();T=Math.min(T,E);if(Y.Y.index.aY()>0&&T>0&&c.Js>=T)return Y.QJ=T,A.QJ=T,!1}if(c.Y.info.audio&&c.type===4||c.lN())return!1;T=!Y.K&&!A.K;if(d=!d)d=c.J,d=!!(A.T&&!XF(A.T)&&A.T.Jx0c(U,Y)?(x0c(U,Y),!1):(U=Y.yd)&&U.isLocked()?!1:!0}; x0c=function(U,Y){var A=U.Y;A=A.Y?A.Y.l1:null;if(U.policy.jX&&A)return A.startSecs+A.LV+15;Y=QA(U.loader,Y);U.policy.Tk>0&&(A=((0,g.y)()-U.loader.Bf)/1E3,Y=Math.min(Y,U.policy.Tk+U.policy.DG*A));A=U.loader.getCurrentTime()+Y;return U.policy.xn&&(Y=syX(U.loader)+U.policy.xn,Y=0||Y.Dm.ip("defrag")==="1"||Y.Dm.ip("otf")==="1"){Y=null;break a}d=pI(0,4096)}d=new Iv([new ZY(5,c.Y,d,"createProbeRequestInfo"+c.Z,c.Js)],Y.T);d.Wl=A;d.Y=Y.Y;Y=d}Y&&Rw4(U,Y)}}; Rw4=function(U,Y){U.loader.Bn(Y);var A=wdc(Y),c=U.loader.w5();A={I5:U.schedule,iJ:A,Ca:SGc(U.K,A),bP:OP(Y.py[0]),sZ:ht(Y.Dm.Y),J3:U.policy.T,xp:function(E,L){U.loader.mL(E,L)}}; if(U.schedule.T.J){var d,T;A.XO=(((d=U.videoTrack.Y)==null?void 0:d.info.hs)||0)+(((T=U.audioTrack.Y)==null?void 0:T.info.hs)||0)}U.hw&&(A.Js=Y.py[0].Js,A.rY=Y.rY,A.hw=U.hw);c={zc:iwX(Y,U.loader.getCurrentTime()),Kj:U.policy.b1&&KI(Y)&&Y.py[0].Y.info.video?LHX(U.W):void 0,JT:U.policy.jX,poToken:U.loader.iG(),sK:U.loader.JK(),OV:U.OV,L3:isNaN(U.L3)?null:U.L3,NW:U.NW,gM:U.gM,L4:U.L4,pA:c};return new Me(U.policy,Y,A,U.j,function(E,L){try{a:{var r=E.info.py[0].Y,l=r.info.video?U.videoTrack:U.audioTrack; if(!(E.state>=2)||E.isComplete()||E.uO()||!(!U.loader.Ov||U.loader.isSuspended||kL(l)>3)){var P=BIX(E,U.policy,U.j);P===1&&(U.ov=!0);f8c(U,E,P);if(E.isComplete()||E.Ky()&&L<3){if(U.policy.T){var V=E.timing.XD();V.rst=E.state;V.strm=E.xhr.Gb();V.cncl=E.xhr&&E.GQ.j?1:0;U.loader.wW("rqs",V)}E.BX&&U.loader.wW("sbwe3",{},!0)}if(!U.Ky()&&E.state>=2){fYE(U.timing,E,r);var v=U.loader;U.L3&&E.n_&&v&&(U.L3=NaN,U.loader.Tv(E.n_),U.loader.tM(),U.loader.wW("cabrUtcSeek",{mediaTimeSeconds:E.n_}));E.D6&&U.L3&&E.D6&& !E.D6.action&&(U.loader.zR(U.L3),U.L3=NaN,U.loader.wW("cabrUtcSeekFallback",{targetUtcTimeSeconds:U.L3}));E.FD&&U.loader.Vq(E.FD);U.policy.tb&&(U.L4=E.L4);if(E.state===3){aS(l,E);KI(E.info)&&pr(U,l,r,!0);if(U.T){var H=E.info.vG();H&&U.T.zX(E.info.py[0].Js,r.info.id,H)}U.loader.I2()}else if(E.isComplete()&&E.info.py[0].type===5){if(E.state!==4)E.nX()&&U.loader.handleError(E.C3(),E.QK());else{var G=(E.info.py[0].Y.info.video?U.videoTrack:U.audioTrack).W[0]||null;G&&G instanceof Me&&G.uO()&&G.OA()}E.dispose()}else{E.nX()|| hw9(U,E);var F;((F=E.W4)==null?0:F.itagDenylist)&&U.loader.ED(E.W4.itagDenylist);if(E.state===4)S5l(U,E),U.Y&&bIS(U.Y,E.info,U.T);else if(U.policy.yH&&E.Ve()&&!E.isComplete()&&!S5l(U,E)&&!E.nX())break a;E.nX()&&(Mj3(U,E),isNaN(U.L3)||(U.loader.zR(U.L3),U.L3=NaN));U.policy.Lr&&!E.isComplete()?bsY(U.loader):U.loader.I2();var N=XI3(E,U.policy,U.j);f8c(U,E,N)}}}}}catch(e){L=U.Hw?1:0,U.Hw=!0,E=xP(L),L=s7(e,L),U.loader.handleError(L.errorCode,L.details,L.severity),E||U.loader.LF()}},c)}; hw9=function(U,Y){if(Y.qE&&Y.state>=2&&Y.state!==3){var A=Y.xhr.getResponseHeader("X-Response-Itag");if(A){U.logger.debug(function(){return"Applying streamer-selected format "+A}); var c=zRl(U.W,A),d=Y.info.W;d&&(d-=c.ol(),c.W=!0,Y.info.py[0].Y.W=!1,LRl(Y,c.w4(d)),QS(U.loader,U.videoTrack,c),$0V(U.videoTrack,c),U.loader.La(c.info.video.quality),(d=Y.UW())&&c.info.lastModified&&c.info.lastModified!==+d&&aS(U.videoTrack,Y))}else Y.qE=!1}}; Mj3=function(U,Y){var A=Y.info.py[0].Y,c=Y.C3();if(ht(A.Dm.Y)){var d=g.YK(Y.uB(),3);U.loader.wW("dldbrerr",{em:d||"none"})}d=Y.info.py[0].Js;var T=m5(U.Y,Y.info.py[0].j,d);c==="net.badstatus"&&(U.J+=1);if(Y.canRetry()&&pIl(U.loader)){if(!(Y.info.Dm.W>=U.policy.Ft&&U.T&&Y.info.isDecorated()&&c==="net.badstatus"&&U.T.V3(T,d))){d=(A.info.video&&A.Dm.W>1||Y.ZA===410||Y.ZA===500||Y.ZA===503)&&!(uZ(U.W.K).size>0)&&!ht(A.Dm.Y);T=Y.QK();var E=A.info.video?U.videoTrack:U.audioTrack;d&&(T.stun="1");U.loader.handleError(c, T);U.Ky()||(d&&(U.logger.debug(function(){return"Stunning format "+A.info.id}),Ac(U.W,A)),aS(E,Y),U.loader.I2())}}else E=1,U.T&&Y.info.isDecorated()&&c==="net.badstatus"&&U.T.V3(T,d)&&(E=0),U.rW.isLive&&Y.C3()==="net.badstatus"&&U.J<=U.policy.yP*2?(iQl(U.rW),U.rW.yT||U.rW.isPremiere?gC(U.loader,0,{Qa:"badStatusWorkaround"}):U.rW.j?gC(U.loader,U.rW.QJ,{Qa:"badStatusWorkaround", GG:!0}):ZC(U.loader)):U.loader.handleError(c,Y.QK(),E)}; S5l=function(U,Y){if(U.policy.useUmp&&Y.Ky())return!1;try{var A=Y.info.py[0].Y,c=A.info.video?U.videoTrack:U.audioTrack;if(U.rW.isManifestless&&c){U.J=0;c.Z&&(Y.Ky(),Y.isComplete()||Y.Ve(),c.Z=!1);Y.EY()&&U.loader.bD.wF(1,Y.EY());var d=Y.aY(),T=Y.Wn();hw(U.rW,d,T)}if(Y.info.bP()&&!uO(Y.info))for(var E=g.J(Y.oi()),L=E.next();!L.done;L=E.next())CqE(c,L.value);for(U.loader.getCurrentTime();c.W.length&&c.W[0].state===4;){var r=c.W.shift();qHc(c,r);c.kE=r.Pn()}c.W.length&&qHc(c,c.W[0]);var l=!!yA(c);l&& Y instanceof Sm&&(A.info.SI()?Bz3(U.timing):e3X(U.timing));return l}catch(P){Y=Y.QK();Y.origin="hrhs";a:{U=U.loader;A=P;if(A instanceof Error){Y.msg||(Y.msg=""+A.message);Y.name||(Y.name=""+A.name);if(A instanceof g.Do&&A.args)for(c=g.J(Object.entries(A.args)),d=c.next();!d.done;d=c.next())T=g.J(d.value),d=T.next().value,T=T.next().value,Y["arg"+d]=""+T;g.Md(A);if(A.level==="WARNING"){U.iY.gB(Y);break a}}U.handleError("fmt.unplayable",Y,1)}return!1}}; QyS=function(U){var Y=U.videoTrack.Y.index;U.hw=new NIX({r9:U.policy.r9,ej:U.policy.G.ej,zl:Y.lC(),Ea:function(){return Y.Ea()}, XU:function(){return Y.XU()}})}; pr=function(U,Y,A,c){var d=U.policy.Fo?U.loader.Y9():0;A.kH()||A.P4()||A.W||!fI(A.Dm,U.policy,U.j,d)||A.info.Rv==="f"||U.policy.Y||(c?(c=U.K,d=A.info,c=Mcc(c,d.video?c.policy.H_:c.policy.J1,d.hs)):c=0,c=A.w4(c),U=Rw4(U,c),uO(c)&&uRX(Y,U),A.W=!0)}; Ob=function(U,Y,A,c,d,T,E,L){g.p.call(this);var r=this;this.loader=U;this.vp=Y;this.videoTrack=A;this.audioTrack=c;this.rW=d;this.X=T;this.isAudioOnly=E;this.J=L;this.T=y6;this.ov=!1;this.logger=new g.o6("sabr");this.Z=this.Hw=this.Pw=!1;this.videoInfos=this.G=this.X.videoInfos;this.W=this.jX=this.X.Y;this.Y=new Dy(Y,T,function(l,P){r.loader.wW(l,P)}); this.vp.uL||ZsX(this);this.isAudioOnly&&Os3(this,this.rW.Y["0"])}; m0v=function(U,Y){var A=[];Y=g.J(Y);for(var c=Y.next();!c.done;c=Y.next())A.push(g.dh(c.value,U.rW.Sc));return A}; Os3=function(U,Y,A){Y!==U.j&&(U.j&&(U.ov=!0),U.j=Y,U.aQ(Y,U.videoTrack,A))}; D0X=function(U,Y){U.logger.debug("setConstraint: "+wW(Y));JR(U.vp)&&(U.Hw=Y.reason==="m"||Y.reason==="l"?!0:!1);Y.reason==="m"?Y.isLocked()&&g1c(U,Y.Y):yvX(U,Y)?n13(U,Y.T,Y.Y):U.videoInfos=U.G;U.T=Y}; yvX=function(U,Y){return U.vp.Da&&Y.reason==="b"||U.vp.yD&&Y.reason==="l"||U.vp.g_?!1:U.vp.xY?!0:Y.reason==="l"||Y.reason==="b"||Y.reason==="o"}; I8X=function(U,Y){return Y.isLocked()&&U.Y.T||U.T===void 0?!1:Y.equals(U.T)}; upl=function(U,Y){var A,c=(A=U.j)==null?void 0:A.info.video.qualityOrdinal;return U.ov?!0:U.j?Y!==c?!0:!U.Y.T||U.vp.Vt&&U.Y.Y===U.j.info.itag?!1:!0:!1}; g1c=function(U,Y){var A=U.Y.Y;if(A){U.videoInfos=U.G;var c=g.$z(U.videoInfos,function(d){return d.id===A}); c&&c.video.qualityOrdinal===Y?U.videoInfos=[c]:(c=U.videoInfos.map(function(d){return d.id}),U.loader.wW("sabrpf",{pfid:""+A, vfids:""+c.join(".")}),n13(U,Y,Y),KN(U.Y,""))}else n13(U,Y,Y)}; n13=function(U,Y,A){U.videoInfos=U.G;U.videoInfos=g.fu(U.videoInfos,function(c){return c.video.qualityOrdinal>=Y&&c.video.qualityOrdinal<=A})}; ZsX=function(U){var Y=g5E(U.Y,U.J);Y&&(U.W=[Y])}; KJ8=function(U,Y,A){if(U.vp.uL){if(U.J){var c=g.fu(U.W,function(d){return d.id===U.J}); return mV(c,A).includes(Y)}c=g.fu(U.W,function(d){var T;return!((T=d.b$)==null||!T.isDefault)}); if(c.length>0)return mV(c,A).includes(Y)}return mV(U.W,A).includes(Y)}; mV=function(U,Y){return U.map(function(A){return hM(g.dh(A,Y))})}; q5c=function(U){var Y;if((Y=U.T)==null?0:Y.isLocked())return U.videoInfos;var A=uZ(U.Y);Y=g.fu(U.videoInfos,function(c){return c.hs>U.vp.hs?!1:!A.has(c.id)}); mZV(U.Y)&&(Y=g.fu(Y,function(c){return c.video.width<=854&&c.video.height<=480})); return Y}; YJV=function(U,Y,A,c){var d=U.rW,T=U.iY.getVideoData(),E=g.KD(T),L=U.MP,r=FN({Ww:T.L(),iY:U.iY,RO:U.RO,vp:U.vp,Bf:U.Bf,VL:U.VL,tD:U.tD,Ld:U.Ld,xf:U.xf,isPrefetch:U.isPrefetch,jZ:U.jZ,sabrLicenseConstraint:T.sabrLicenseConstraint,z$:U.z$,bz:U.bz,dN:U.dN,z5:U.z5,erf:!!L,UO:T.UO}),l=j0(T,U.pA,U.nextRequestPolicy,U.t$,U.yO,U.yZ,U.OM);c&&A&&(c=l.dP?l.dP.map(function(F){return F.type}):[],A("sabr",{stmctxt:c.join("_"), unsntctxt:l.qB?l.qB.join("_"):""}));c=U.XC;var P=U.iS;if(P===void 0&&c===void 0){var V;P=Co3(d.Sc,(V=U.Wj)==null?void 0:V.video);var v;c=Co3(d.Sc,(v=U.Wj)==null?void 0:v.audio)}if(T.NW)var H=T.NW;T={HK:r,wC:U.wC,XC:c,iS:P,MP:L,videoPlaybackUstreamerConfig:H,fO:l};U.iP&&(T.iP=U.iP);if(E&&Y){E=new Map;var G=g.J(d.Uv);for(L=G.next();!L.done;L=G.next())L=L.value,(r=d.kE[cXc(d,L)]||"")?(E.has(r)||E.set(r,[]),E.get(r).push(L)):A&&A("ssap",{nocid4fmt:(L.itag||"")+"_"+(L.lmt||0)+"_"+(L.xtags||"")});d=new Map; G=g.J(U.BZ);for(L=G.next();!L.done;L=G.next())L=L.value,r=L.startTimeMs||0,l=void 0,V=(l=Y)==null?void 0:fv(l,r),l=V.clipId,V=V.Mk,l?(d.has(l)||(v=E.get(l)||[],d.set(l,{clipId:l,BZ:[],QL:v})),V!==0&&(L.startTimeMs=r-V),d.get(l).BZ.push(L)):A&&(l=void 0,A("ssap",{nocid4range:"1",fmt:((l=L.formatId)==null?void 0:l.itag)||"",st:r.toFixed(3),d:(L.durationMs||0).toFixed(3),timeline:gZ(Y)}));T.Ih=[];d=g.J(d.entries());for(E=d.next();!E.done;E=d.next())E=g.J(E.value),E.next(),E=E.next().value,T.Ih.push(E); if(U.BZ.length&&!T.Ih.length){A&&A("ssap",{nobfrange:"1",br:UJ4(U.BZ),timeline:gZ(Y)});return}U.C9&&(T.C9=U.C9);U.p9&&(T.p9=U.p9)}else T.BZ=U.BZ,T.QL=d.Uv,E&&((G=U.BZ)==null?void 0:G.length)>0&&!Y&&A&&A("ssap",{bldmistlm:"1"});return T}; Co3=function(U,Y){return Y?[g.dh(Y.info,U)]:[]}; UJ4=function(U){var Y="";U=g.J(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var c=void 0,d=void 0,T=void 0;Y+="fmt."+(((c=A.formatId)==null?void 0:c.itag)||"")+"_"+(((d=A.formatId)==null?void 0:d.lmt)||0)+"_"+(((T=A.formatId)==null?void 0:T.xtags)||"")+";st."+(A.startTimeMs||0).toFixed(3)+";d."+(A.durationMs||0).toFixed(3)+";"}return Y}; yS=function(U,Y,A){var c=this;this.requestType=U;this.Dm=Y;this.vZ=A;this.T=null;this.o5={NKY:function(){var d;return(d=c.data)==null?void 0:d.isPrefetch}, yO:function(){var d;return(d=c.data)==null?void 0:d.yO}}}; FR4=function(U,Y,A){Y=x5(U.Dm,AGE(U,Y,A),Y);U.rK()&&Y.set("probe","1");return Y}; AGE=function(U,Y,A){U.Wl===void 0&&(U.Wl=U.Dm.Wl(Y,A));return U.Wl}; cGv=function(U){var Y,A;return((Y=U.Y)==null?void 0:(A=Y.HK)==null?void 0:A.W$)||0}; dJS=function(U){var Y,A;return!!((Y=U.Y)==null?0:(A=Y.HK)==null?0:A.z$)}; TAc=function(U){var Y={},A=[],c=[];if(!U.data)return Y;for(var d=0;d0;r--)A.push(L)}A.length!==E?Y.error=!0:(T=A.slice(-T),A.length=d,aeE(Y,A,T));break;case 1:aeE(Y,dN,tKv);break;case 0:xJV(Y, Y.Y&7);A=zW(Y,16);d=zW(Y,16);(A^d)!==65535&&(Y.error=!0);Y.output.set(Y.data.subarray(Y.T,Y.T+A),Y.W);Y.T+=A;Y.W+=A;break;default:Y.error=!0}U.W>U.output.length&&(U.output=new Uint8Array(U.W*2),U.W=0,U.T=0,U.j=!1,U.Y=0,U.register=0)}U.output.length!==U.W&&(U.output=U.output.subarray(0,U.W));return U.error?new Uint8Array(0):U.output}; aeE=function(U,Y,A){Y=kr3(Y);A=kr3(A);for(var c=U.data,d=U.output,T=U.W,E=U.register,L=U.Y,r=U.T;;){if(L<15){if(r>c.length){U.error=!0;break}E|=(c[r+1]<<8)+c[r]<>=7;l<0;)l=Y[(E&1)-l],E>>=1;else E>>=l&15;L-=l&15;l>>=4;if(l<256)d[T++]=l;else if(U.register=E,U.Y=L,U.T=r,l>256){E=EV[l];E+=zW(U,TW[l]);r=RmX(U,A);L=oF[r];L+=zW(U,emX[r]);if(feV&&EA.length&&(U.error=!0);U.register|=(A[c+1]<<8)+A[c]<=0)return xJV(U,A&15),A>>4;for(xJV(U,7);A<0;)A=Y[zW(U,1)-A];return A>>4}; zW=function(U,Y){for(;U.Y=U.data.length)return U.error=!0,0;U.register|=U.data[U.T++]<>=Y;U.Y-=Y;return A}; xJV=function(U,Y){U.Y-=Y;U.register>>=Y}; kr3=function(U){for(var Y=[],A=g.J(U),c=A.next();!c.done;c=A.next())c=c.value,Y[c]||(Y[c]=0),Y[c]++;var d=Y[0]=0;A=[];var T=0;c=0;for(var E=1;E7&&(T+=Y[E]);for(d=1;d>r&1;L=T<<4|E;if(E<=7)for(r=1<<7-E;r--;)c[r<>=7;E--;){c[r]||(c[r]=-Y,Y+=2);var l=d&1;d>>=1;r=l-c[r]}c[r]=L}}return c}; hmX=function(U){var Y,A,c,d,T,E,L;return g.S(function(r){switch(r.T){case 1:if(!("DecompressionStream"in window))return r.return(g.s$l(new g.BAS(U)));Y=new DecompressionStream("gzip");A=Y.writable.getWriter();A.write(U);A.close();c=Y.readable.getReader();d=new is([]);case 2:return g.x(r,c.read(),5);case 5:T=r.Y;E=T.value;if(L=T.done){r.uY(4);break}d.append(E);r.uY(2);break;case 4:return r.return(d.fJ())}})}; L4=function(U,Y){this.Y=U;this.vu=Y}; SJ3=function(U){return NN(NN(J9(function(){return jc(U.vu,function(Y){return U.j_(U.Y,Y)})}),function(){return U.sC(U.Y)}),function(){return U.vY(U.Y)})}; MKX=function(U,Y){return SJ3(new L4(U,Y))}; Q$l=function(U){e0.call(this,"onesie");this.Ys=U;this.Y={};this.W=!0;this.j=null;this.queue=new NAl(this);this.K={};this.J=t9(function(Y,A){var c=this;return function T(){var E,L,r,l,P,V,v,H,G,F,N,e,B,f,h,Q,K,D,c3,TV;return h3(T,function(U9){switch(U9.T){case 1:g.jS(U9,2);c.Ys.Xh();E=function(LY){return function(q){throw{name:LY,message:q};}}; L=Y.fJ();g.J3(U9,4,5);if(!A){U9.uY(7);break}return wX(U9,M4(NN(bDc(c.Ys,L,c.iv),E("DecryptError")).wait()),8);case 8:r=U9.Y;case 7:if(!c.Ys.enableCompression){U9.uY(9);break}return wX(U9,M4(NN(MKX((V=r)!=null?V:L,c.Ys.L().qe),E("DecompressError")).wait()),10);case 10:l=U9.Y;case 9:P=gw((H=(v=l)!=null?v:r)!=null?H:L,GfS);case 5:g.Rc(U9,0,2);if(F=(G=c.Ys.L())==null?void 0:G.vu)((N=r)==null?void 0:N.buffer)===F.exports.memory.buffer&&F.free(r.byteOffset),((e=l)==null?void 0:e.buffer)===F.exports.memory.buffer&& F.free(l.byteOffset);g.xl(U9,6);break;case 4:throw f=B=g.XE(U9),new a9("onesie.response.parse",{name:(D=f.name)!=null?D:"unknown",message:(c3=f.message)!=null?c3:"unknown",wasm:((h=c.Ys.L())==null?0:h.vu)?((Q=c.Ys.L())==null?0:(K=Q.vu)==null?0:K.Y)?"1js":"1":"0",enc:c.W,gz:c.Ys.enableCompression,webcrypto:!!t2()});case 6:return pbv(P),TV=g.kv(P.body),U9.return(TV);case 2:g.Rc(U9),g.xl(U9,0)}})}()})}; ZDv=function(U){var Y=U.queue;Y.Y.length&&Y.Y[0].isEncrypted&&!Y.T&&(Y.Y.length=0);Y=g.J(Object.keys(U.Y));for(var A=Y.next();!A.done;A=Y.next()){A=A.value;var c=U.Y[A];if(!c.nM){var d=U.queue;d.Y.push({videoId:c.videoId,formatId:A,isEncrypted:!1});d.T||cl(d)}}}; mJV=function(U,Y){var A=Y.getLength(),c=!1;switch(U.j){case 0:U.Ys.S("html5_future_onesie_ump_handler_on_player_response")?NN(jc(U.J(Y,U.W),function(d){OD8(U.Ys,d)}),function(d){U.Ys.x5(d)}):U.Xh(Y,U.W).then(function(d){OD8(U.Ys,d)},function(d){U.Ys.x5(d)}); break;case 2:U.pU("ormk");Y=Y.fJ();U.Ys.S("html5_future_onesie_ump_handler_on_media_decryption_key")?U.queue.W(Y,U.Ys.L().qe):U.queue.decrypt(Y);break;default:c=!0}U.Ys.Nk&&U.Ys.wW("ombup","id.11;pt."+U.j+";len."+A+(c?";ignored.1":""));U.j=null}; pbv=function(U){if(U.Om!==1)throw new a9("onesie.response.badproxystatus",{st:U.Om,webcrypto:!!t2(),textencoder:!!g.Dc.TextEncoder});if(U.HY!==200)throw new a9("onesie.response.badstatus",{st:U.HY});}; gQ9=function(U){return new Promise(function(Y){setTimeout(Y,U)})}; yGc=function(U,Y){var A=U.L();A=U.kC&&A.S("html5_onesie_preload_use_content_owner");var c=U.qq,d=Ta(Y.MI.experiments,"debug_bandaid_hostname");if(d)Y=UV(Y,d);else if((A===void 0?0:A)&&(c==null?0:c.url)&&!Y.T){var T=fn(new g.xN(c.url));Y=UV(Y,T)}else Y=(T=Y.Y.get(0))==null?void 0:T.location.clone();if(Y&&U.videoId){T=rI(U.videoId);U=[];if(T)for(T=g.J(T),A=T.next();!A.done;A=T.next())U.push(A.value.toString(16).padStart(2,"0"));Y.set("id",U.join(""));return Y}}; nQ9=function(U,Y,A){A=A===void 0?0:A;var c,d;return g.S(function(T){if(T.T==1)return c=[],c.push(Y.load()),A>0&&c.push(gQ9(A)),g.x(T,Promise.race(c),2);d=yGc(U,Y);return T.return(d)})}; DJ9=function(U,Y,A,c){c=c===void 0?!1:c;U.set("cpn",Y.clientPlaybackNonce);U.set("opr","1");var d=Y.L();U.set("por","1");t2()||U.set("onem","1");Y.startSeconds>0&&U.set("osts",""+Y.startSeconds);c||(d.S("html5_onesie_disable_partial_segments")&&U.set("oses","1"),Y=d.S("html5_gapless_onesie_no_media_bytes")&&ES(Y)&&Y.kC,A&&!Y?(Y=A.audio,U.set("pvi",A.video.join(",")),d.S("html5_onesie_disable_audio_bytes")||U.set("pai",Y.join(",")),dI||U.set("osh","1")):(U.set("oad","0"),U.set("ovd","0"),U.set("oaad", "0"),U.set("oavd","0")))}; Ie9=function(U,Y,A,c,d){d=d===void 0?!1:d;var T="https://youtubei.googleapis.com/youtubei/"+Y.Hl.innertubeApiVersion+"/player",E=[{name:"Content-Type",value:"application/json"}];c&&E.push({name:"Authorization",value:"Bearer "+c});E.push({name:"User-Agent",value:g.tF()});g.DQ("EOM_VISITOR_DATA")?E.push({name:"X-Goog-EOM-Visitor-Id",value:g.DQ("EOM_VISITOR_DATA")}):(A=A.visitorData||g.DQ("VISITOR_DATA"))&&E.push({name:"X-Goog-Visitor-Id",value:A});(A=g.DQ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&E.push({name:"X-YouTube-Lava-Device-Context", value:A});(Y=Ta(Y.experiments,"debug_sherlog_username"))&&E.push({name:"X-Youtube-Sherlog-Username",value:Y});U=xv(JSON.stringify(U));return{url:T,Rl:E,postBody:U,C1w:d,dl:d}}; Kp3=function(U,Y,A,c,d,T){var E=g.C5(U,HSc,U.dl?void 0:A.vu),L={encryptedClientKey:Y.Y.encryptedClientKey,tX:!0,fY:!0,I7:uXV(A,!!U.dl),YA:A.experiments.lY("html5_use_jsonformatter_to_parse_player_response")};if(U.dl)L.Z3s=E;else{if(A.vu){U=PNS(Y).T(E,Y.iv);var r;L.eO=(r=A.vu.KW(U))!=null?r:U}else L.eO=Y.encrypt(E);r=L.eO;(0,g.y)();r=uaS(new IsX(Y.Y.W),r,Y.iv);L.wT=r;L.iv=Y.iv}Y=c.getVideoData();A=FN({Ww:A,iY:c,RO:Y.startSeconds*1E3});d={wy:L,HK:A,onesieUstreamerConfig:d,q0:T,fO:j0(Y)};Y.reloadPlaybackParams&& (d.reloadPlaybackParams=Y.reloadPlaybackParams);return d}; qJl=function(U,Y,A){var c,d,T;return g.S(function(E){if(E.T==1)return c=g.C5(Y,HSc),g.x(E,VKX(A,c),2);if(E.T!=3)return d=E.Y,g.x(E,$J3(A,d),3);T=E.Y;return E.return({eO:d,encryptedClientKey:A.Y.encryptedClientKey,iv:A.iv,wT:T,tX:!0,fY:!0,I7:uXV(U,!!Y.dl),YA:U.experiments.lY("html5_use_jsonformatter_to_parse_player_response")})})}; CN8=function(U,Y,A,c,d,T){var E,L,r,l;return g.S(function(P){if(P.T==1)return g.x(P,qJl(A,U,Y),2);E=P.Y;L=c.getVideoData();r=FN({Ww:A,iY:c,RO:L.startSeconds*1E3});l={wy:E,HK:r,onesieUstreamerConfig:d,q0:T,fO:j0(L)};L.reloadPlaybackParams&&(l.reloadPlaybackParams=L.reloadPlaybackParams);return P.return(l)})}; uXV=function(U,Y){U=N0(U.schedule,!0);Y=Y||!!t2()&&U>1572864;return"DecompressionStream"in window||!Y}; lG=function(U,Y){g.p.call(this);var A=this;this.iY=U;this.playerRequest=Y;this.logger=new g.o6("onesie");this.xhr=null;this.state=1;this.If=new AX;this.h9=!1;this.playerResponse="";this.j2=new Cv(this);this.uN=new Q$l(this);this.M6="";this.B9=this.e_=!1;this.a_="";this.enableCompression=this.Na=this.Rw=!1;this.Sn=[];this.sA=this.mW=-1;this.MI=this.iY.L();this.videoData=this.iY.getVideoData();this.Nk=this.MI.O3();this.YV=this.MI.oX;this.lh=new qS(this.YV.Y,this.MI.qe,EQv(this.MI));this.fK=this.MI.S("html5_onesie_check_timeout"); this.O6=new g.IM(this.uI,500,this);this.ud=new g.IM(this.fp,1E4,this);this.xI=new g.IM(function(){if(!A.isComplete()){var c=rN(A);A.x5(new a9("net.timeout",c))}},1E3); this.cO=new g.IM(this.wZv,2E3,this);this.tK=this.iY.JK();this.pj=this.S("html5_onesie_wait_for_media_availability");g.Z(this.videoData,this);g.Z(this,this.O6);g.Z(this,this.ud);g.Z(this,this.cO);g.Z(this,this.lh);U=oy();dI&&U&&(this.Ig=new Map);this.Mg=new Map;this.zj=new Map;this.Id=new Map;this.td=new Map}; A0=function(U,Y){var A;return(A=U.Ig)==null?void 0:A.get(Y)}; YSV=function(U,Y,A){var c;return g.S(function(d){if(d.T==1)return U.pU("oprd_s"),Um8(U)?g.x(d,vQc(U.lh,Y,A),3):(c=U.lh.decrypt(Y,A),d.uY(2));d.T!=2&&(c=d.Y);U.pU("oprd_c");return d.return(c)})}; bDc=function(U,Y,A){U.pU("oprd_s");Y=PNS(U.lh).encrypt(Y,A);jc(Y,function(){U.pU("oprd_c")}); return Y}; AiX=function(U){return U.S("html5_onesie_host_probing")||U.Nk?dI:!1}; OD8=function(U,Y){U.pU("oprr");U.playerResponse=Y;U.Na||(U.pj=!1);Pl(U)}; Pl=function(U){if(!U.playerResponse)return!1;if(U.Rw)return!0;var Y=U.videoData.S("html5_onesie_audio_only_playback")&&op(U.videoData);if(U.Ig&&U.pj){if(!U.Ig.has(U.M6))return!1;var A=U.Ig.get(U.M6),c;if(c=A){c=!1;for(var d=g.J(A.zQ.keys()),T=d.next();!T.done;T=d.next())if(T=A.zQ.get(T.value))for(var E=g.J(T.bu),L=E.next();!L.done;L=E.next())L.value.wb>0&&(T.SI?c=!0:Y=!0);c=!(Y&&c)}if(c)return!1}U.pU("ofr");U.If.resolve(U.playerResponse);if(!U.fK){var r;(r=U.xI)==null||r.start();U.ud.start()}return U.Rw= !0}; dmE=function(U){if(U.Ig&&!U.S("html5_onesie_media_capabilities")){U.pU("ogsf_s");var Y=KoS(U.iY.getVideoData(),function(c,d){U.wW(c,d)}),A=ciS(U.iY); Y.video=Zn4(A,Y.video);U.pU("ogsf_c");if(Y.video.length)return Y;U.wW("ombspf","l."+A.T+";u."+A.Y+";o."+A.W+";r."+A.reason)}}; Um8=function(U,Y){return U.S("html5_onesie_sync_request_encryption")||(Y==null?0:Y.dl)||g.YQ(U.MI)&&U.S("html5_embed_onesie_use_sync_encryption")?!1:!!t2()}; rN=function(U){if(!U.xr)return{};var Y=U.xr.XD(),A;Y.d=(A=U.xr.QJ)==null?void 0:A.jS();Y.shost=U.P3;Y.ty="o";return Y}; TS9=function(U,Y){var A,c;(c=(U=(A=U.Ig)==null?void 0:A.get(Y))==null)||(Y=U.W?!1:U.W=!0,c=!Y);return!c}; Epv=function(U,Y,A,c,d,T,E,L,r,l,P){g.p.call(this);var V=this;this.iY=U;this.loader=Y;this.policy=A;this.audioTrack=c;this.videoTrack=d;this.rW=T;this.I5=E;this.Zf=L;this.j=r;this.timing=l;this.Z=P;this.Y=[];this.G={};this.yJ=this.dW=!1;this.t$=new Set;this.K=this.kE=this.Pw=this.xf=0;this.T=null;this.ov={BZ:[],wC:[]};this.jX={BZ:[],wC:[]};this.J=null;this.Uv=[];this.o5={o$X:function(){return V.Y}, gfw:function(){return V.G}, mRW:function(){V.Y.length=0}, a_J:function(){return V.t$}, Zls:function(){return V.Pw}, mGw:function(v){V.Pw=v}, Nbn:function(v){V.K=v}, nt:function(v){V.J=v}}; this.videoData=this.iY.getVideoData();this.policy.jo&&(this.eX=new MS(this.loader,this.policy,this.I5),g.Z(this,this.eX))}; L98=function(U,Y){Y=Y===void 0?!1:Y;if(opS(U)){U.policy.J&&U.loader.wW("sabrcrq",{create:1});var A=new yS(0,U.rW.Z,U);U.policy.fV>0&&U.K++;Y=z2v(U,A,Y);U.Y.push(Y);var c;(c=U.eX)==null||tjS(c,U.rW.Z)}}; Vt4=function(U,Y){var A=riV(U);if(U.policy.GT){var c=U.ov;var d=U.jX}else c=Vk(U,U.audioTrack),d=Vk(U,U.videoTrack);var T=[].concat(g.X(c.BZ),g.X(d.BZ));U.policy.i$&&U.J&&T.push.apply(T,g.X(U.Uv));var E=[].concat(g.X(c.wC),g.X(d.wC)),L=U.loader.w5(),r,l,P=U.iY,V=U.rW,v=U.W,H=U.t$,G=U.policy,F=U.loader.Bf,N=syX(U.loader)*1E3,e=(r=U.QJ)==null?void 0:r.tD;r=(l=U.QJ)==null?void 0:l.Ld;var B;l=Number((B=U.j.j)==null?void 0:B.info.itag)||0;var f;B=Number((f=U.j.K)==null?void 0:f.info.itag)||0;Y={iY:P,rW:V, BZ:T,wC:E,RO:A,nextRequestPolicy:v,t$:H,vp:G,Bf:F,VL:N,tD:e,Ld:r,xf:U.xf,isPrefetch:Y||U.loader.isSuspended,C9:l,p9:B,pA:L,OM:U.iY.R7()};A=U.loader.iG();T=rI(A);A&&(Y.yO=T);if(A=U.iY.PR())Y.z$=A*1E3;var h;A=U.j;T=A.Pw;if(((h=A.vp)==null?0:JR(h))&&!T)for(h=g.J(A.W),E=h.next();!E.done;E=h.next())if(E.value.b$){T=!0;break}h=JR(A.vp)&&!T?[]:m0v(A,A.W);Y.XC=h;h=U.j;JR(h.vp)&&!h.Hw?h=[]:(A=q5c(h),A.length===0&&(A=h.G),h=m0v(h,A));Y.iS=h;Y.MP=U.policy.i$&&U.J?[U.J]:void 0;U.policy.Oc&&(Y.dN=laX(U.loader, U.audioTrack),Y.z5=laX(U.loader,U.videoTrack));if(U.policy.j){if(U.policy.hg){h=U.loader.getCurrentTime();var Q=$w(U,c.BZ,h);c=$w(U,d.BZ,h);var K;d=(K=U.T)==null?void 0:K.Ya(Math.min(Q,c))}else K=PIc(U,c.BZ,d.BZ),d=(Q=U.T)==null?void 0:Q.Ya(K);d&&(Y.iP=d)}U.policy.X&&U.Y.length>0&&U.Y[0].SQ()&&(Y.yZ=U.Y[0].Fu());return Y}; riV=function(U){var Y,A=U.policy.K&&((Y=U.loader)==null?void 0:Y.Ai());Y=U.loader.getCurrentTime()||0;Y=$mc(U,Y);var c=U.loader.Zm()||0;Y+=c;c=Rp(U.videoData)||g.kp(U.videoData);var d=0;A?(c&&(d=Number.MAX_SAFE_INTEGER),U.videoData.jX&&(d=Math.ceil(U.videoData.QJ*1E3))):d=Math.ceil(Y*1E3);return Math.min(Number.MAX_SAFE_INTEGER,d)}; $mc=function(U,Y){if(U.loader.isSeeking())return Y;var A=U.iY.sH();if(!A)return Y;A=A.Hb();if(A.length===0||Vd(A,Y))return Y;if(!v1X(U.videoTrack,Y)&&!v1X(U.audioTrack,Y))return U.loader.wW("sundrn",{b:0,lt:Y}),Y;for(var c=Y,d=Infinity,T=0;TY)){var E=Y-A.end(T);E=20)?(U.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),Y):c}; PIc=function(U,Y,A){var c=U.loader.getCurrentTime()||0;Y=$w(U,Y,c);U=$w(U,A,c);return Math.min(Y,U)}; $w=function(U,Y,A){var c=U.loader.Zm()||0;if(U.policy.hg)return vpX(Y,(A+c)*1E3)/1E3+A;U=g.J(Y);for(Y=U.next();!Y.done;Y=U.next()){var d=Y.value;Y=d.startTimeMs?d.startTimeMs/1E3-c:0;d=Y+(d.durationMs?d.durationMs/1E3:0);if(Y<=A&&A<=d)return d}return A}; opS=function(U){if(U.policy.fV>0){var Y=Math.floor((0,g.y)()/1E4);if(Y===U.kE){if(U.K>=U.policy.fV){if(U.K===U.policy.fV){var A={reason:"toomanyrequests"};A.limit=U.K;U.loader.handleError("player.exception",A);U.K+=1}return!1}}else U.kE=Y,U.K=0}if(U.loader.isSuspended&&U.loader.Q0)return!1;if(U.Hw&&(0,g.y)()0&&(!U.policy.X||U.Y.length!==1||!U.Y[0].SQ()))return!1;var c;if((c=U.rW.Z)==null||!fI(c,U.policy,U.G,U.loader.Y9())||xL(U.audioTrack)&&xL(U.videoTrack))return!1; if(vl(U,U.audioTrack)&&vl(U,U.videoTrack))return U.policy.T&&U.loader.wW("sabrHeap",{a:""+Bw(U.audioTrack),v:""+Bw(U.videoTrack)}),!1;if(Y=U.policy.j){Y=!1;if(U.Z.T===2)Y=!0;else if(U.Z.T===3){riV(U);U.loader.Zm();c=PIc(U,Y53(U.audioTrack,U.loader.isSeeking()).BZ,Y53(U.videoTrack,U.loader.isSeeking()).BZ);var d=U.Z;c>=d.K?(d.wW("sdai",{haltrq:c,est:d.K}),c=!0):c=!1;c&&(Y=!0)}Y&&U.policy.J&&U.loader.wW("sabrcrq",{waitad:1})}if(Y)return!1;U.policy.GT&&(U.ov=Vk(U,U.audioTrack),U.jX=Vk(U,U.videoTrack)); if(!U.W)return U.policy.J&&U.loader.wW("sabrcrq",{nopolicy:1}),!0;if(U.iY.PR())return U.policy.J&&U.loader.wW("sabrcrq",{utc:1}),!0;if(U.j.Z)return U.policy.J&&U.loader.wW("sabrcrq",{audio:1}),!0;if(!U.W.targetAudioReadaheadMs||!U.W.targetVideoReadaheadMs)return U.policy.J&&U.loader.wW("sabrcrq",{noreadahead:1}),!0;if(U.policy.K&&U.loader.Ai())return U.policy.J&&U.loader.wW("sabrcrq",{seekToHead:1}),!0;Y=Math.min(QA(U.loader,U.audioTrack)*1E3,U.W.targetAudioReadaheadMs);c=Math.min(QA(U.loader,U.videoTrack)* 1E3,U.W.targetVideoReadaheadMs);var T=Math.min(Y,c);d=kL(U.audioTrack,!0)*1E3;var E=kL(U.videoTrack,!0)*1E3;if(U.policy.GT){var L=U.iY.getCurrentTime()*1E3;var r=vpX(U.ov.BZ,L);L=vpX(U.jX.BZ,L)}else r=d,L=E;var l=rY||c>=0&&d.TT>c+1)break;A=Math.max(A,d.startTimeMs+d.durationMs);c=Math.max(c,d.wY)}return Math.max(0,A-Y)}; z2v=function(U,Y,A){var c={I5:U.I5,xp:function(r,l){U.iY.mL(r,l)}, bP:U.policy.hW,J3:U.policy.T};U.I5.T.J&&(c.XO=(U.videoTrack.Y.info.hs||0)+(U.audioTrack.Y.info.hs||0));U.policy.jL&&(c.zl=U.audioTrack.Y.index.lC(),c.bP=!1);var d=AGE(Y,U.policy,U.G)?2:1;d!==U.Pw&&(U.Pw=d,Gk4(U));A=Vt4(U,A);if(U.policy.X&&U.policy.T&&A.t$){for(var T=d="",E=g.J(A.t$),L=E.next();!L.done;L=E.next())L=L.value,U.videoData.sabrContextUpdates.has(L)||U.policy.X&&A.yZ&&A.yZ.type===L?d+="_"+L:T+="_"+L;U.loader.wW("sabrbldrqs",{ctxts:d,misctxts:T})}!Y.setData(A,U.loader.OO(),U.policy,U.G)&& U.policy.X&&U.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);c=new hR(U.policy,Y,U.rW,U.G,U,c,U.loader.JK(),U.policy.IF?U.loader.OO():void 0);S0(U.timing);U.policy.J&&U.loader.wW("sabrcrq",{rn:c.wB(),probe:Y.rK()});return c}; GW=function(U,Y){if(Y.Ky()||U.Ky())U.policy.Cc||(U.policy.K?Hl(U.loader):U.loader.I2());else{if(U.policy.T&&Y.isComplete()&&Y instanceof hR){var A=U.loader,c=A.wW,d,T,E=Object.assign(Y.xr.XD(),{rst:Y.state,strm:Y.xhr.Gb(),d:(d=Y.xr.QJ)==null?void 0:d.jS(),cncl:Y.xhr&&Y.GQ.j?1:0,rqb:Y.F_,cwt:Y.Xi,swt:(T=Y.ib)==null?void 0:T.vz});d=Object.assign(TAc(Y.info),E);c.call(A,"rqs",d)}if(Y.isComplete()&&Y.rK()&&Y instanceof hR)U.policy.qz?Y.gT()?(Y.dispose(),U.Y.length===0?U.loader.I2():(U=U.Y[0],U instanceof hR&&U.uO()&&U.OA())):Y.nX()&&U.loader.handleError(Y.C3(),Y.QK()):(Y.dispose(),U.loader.I2());else{if(Y.yR())Y instanceof hR&&fYE(U.timing,Y),Gk4(U),W93(U);else if(Y.nX())A=U.iY.PR(),Y instanceof hR&&dJS(Y.info)&&A&&U.loader.zR(A),Y instanceof lG?U.Y.pop():(A=1,Y.canRetry()&&pIl(U.loader)&&(wT8(U,Y),A=0),U.loader.handleError(Y.C3(),Y.QK(),A));else{if(U.loader.isSuspended&&!Y.isComplete())return;W93(U)}Y.Ky()||Y instanceof lG||(Y.isComplete()?A=XI3(Y,U.policy,U.G):(A=BIX(Y,U.policy,U.G),A===1&&(U.dW= !0)),A!==0&&(c=new yS(1,Y.info.Dm),c.Wl=A===2,z2v(U,c)));U.policy.Lr&&!Y.isComplete()?bsY(U.loader):U.loader.I2()}}}; W93=function(U){for(;U.Y.length&&U.Y[0].l_(U.SM());){var Y=U.Y.shift();ik3(U,Y);if(U.policy.j){var A=U;if(!A.policy.Zf&&Y.l_(A.SM())){var c=Y.wB();if(A.Ly!==c){var d=Y.gm();Y=d.mW;var T=d.sA;d=d.isDecorated;!A.T||T<0||(A.Ly=c,c=m5(A.Z,T/1E3,Y),T=A.loader.Zm()||0,QU(A.Z,Y,c-T,d,A.T))}}}}U.Y.length&&ik3(U,U.Y[0])}; ik3=function(U,Y){var A=new Set(Y.V$(U.SM()));A=g.J(A);for(var c=A.next();!c.done;c=A.next()){var d=c.value;if(!(c=!(Y instanceof lG))){c=U.j;var T=c.rW.Sc,E=mV(c.videoInfos,T);T=KJ8(c,d,T);var L=E.includes(d);!c.vp.oU||T||L||c.loader.wW("sabrcpf",{fid:""+d,vfids:""+E.join("."),said:c.J||""});c=T||E.includes(d)}if(c&&(c=Y.Jj(d,U.SM()),E=U.policy.i$&&on(c[0].Y.info.mimeType),(!(!E&&U.policy.E5&&c.length>0&&(c[0].Y.info.SI()?kL(U.audioTrack):kL(U.videoTrack))>3)||Y.isComplete())&&Y.Ve(d,U.SM())))for(d= Y.oi(d,U.SM()),d=g.J(d),T=d.next();!T.done;T=d.next())if(T=T.value,U.policy.T&&Y instanceof lG&&U.loader.wW("omblss",{s:T.info.jq()}),E)L=U,L.videoData.Sc()&&L.J&&hM(L.J)===hM(g.dh(T.info.Y.info,L.rW.Sc))&&L.iY.publish("sabrCaptionsDataLoaded",T,L.Zo.bind(L));else{L=T.info.Y.info.SI();var r=T.info.Y;if(L){var l=void 0;var P=U.j,V=(l=Y.u_(U.SM()))==null?void 0:l.token;P.Z&&r!==P.K?l=!0:(P.Z=!1,r!==P.K&&(P.K=r,P.aQ(r,P.audioTrack,V)),l=!1);if(l)continue}else l=void 0,Os3(U.j,r,(l=Y.u_(U.SM()))==null? void 0:l.token);l=L?U.audioTrack:U.videoTrack;Y instanceof lG&&(l.Z=!1,Y instanceof lG&&(L?Bz3(U.timing):e3X(U.timing)));try{KHX(l,c,T)}catch(v){T=s7(v),U.loader.handleError(T.errorCode,T.details,T.severity),l.LF(),U.XF(!1,"pushSlice"),Hl(U.loader)}}}}; wT8=function(U,Y){U.policy.X?U.Y.splice(U.Y.indexOf(Y)).forEach(function(A){A.dispose()}):(U.Y.pop(),Y==null||Y.dispose())}; Ji3=function(U,Y,A){for(var c=[],d=0;d0)for(var Y=g.J(U.videoData.sabrContextUpdates.keys()),A=Y.next();!A.done;A=Y.next()){A=A.value;var c=void 0;((c=U.videoData.sabrContextUpdates.get(A))==null?0:c.sendByDefault)&&U.t$.add(A)}if(U.policy.X&&U.Y.length)for(Y=g.J(U.Y),A=Y.next();!A.done;A=Y.next())(A=A.value.Fu())&&A.type&&A.sendByDefault&&U.t$.add(A.type)}; F9S=function(U){U.policy.Me&&(U.QJ=void 0,U.xf=0)}; jp3=function(U,Y){if(Y.nX()||Y.Ky()){var A=U.loader,c=A.wW,d=Y.state;U=U.SM();var T,E;if((Y=(T=Y.Ig)==null?void 0:T.get(U))==null)Y=void 0;else{T=0;U=Y.V$();for(var L=0;L=U.policy.lE,E=!1;if(T){var L=0;!isNaN(Y)&&Y>U.K&&(L=Y-U.K,U.K=Y);L/d=U.policy.eL&&!U.W;if(!T&&!A&&XTl(U,Y))return NaN;A&&(U.W=!0);a:{c=E;A=(0,g.y)()/1E3-(U.Nl.Y4()||0)-U.G.Y-U.policy.nU;T=U.T.startTime;A=T+A;if(c){if(isNaN(Y)){Wl(U,NaN,"n",Y);T=NaN;break a}c=Y-U.policy.FO;c=T.j&&c<=T.J){c=!0;break a}c=!1}c=!c}if(c)return U.wW("ostmf",{ct:U.getCurrentTime(),a:Y.Y.info.SI()}),!1;(U=U.Hw)!=null&&(U.zQ.get(A).JM=!0);return!0}; h2X=function(U){if(!U.rW.Sc)return!0;var Y=U.iY.getVideoData();if(U.iY.j9())return U.wW("ombpa",{}),!1;var A,c;if(U.policy.YB&&!!((A=U.X)==null?0:(c=A.Cx)==null?0:c.fhw)!==U.rW.yT)return U.wW("ombplmm",{}),!1;A=Y.AP||Y.liveUtcStartSeconds||Y.o2;if(U.rW.yT&&A)return U.wW("ombplst",{}),!1;if(U.rW.X)return U.wW("ombab",{}),!1;A=Date.now();return Sv(U.rW)&&!isNaN(U.ov)&&A-U.ov>U.policy.IC*1E3?(U.wW("ombttl",{}),!1):U.rW.u1&&U.rW.j||!U.policy.HV&&U.rW.isPremiere||!(Gk(Y)===0||U.policy.Y&&Y.S("html5_enable_onesie_media_for_sabr_proxima_optin"))|| Y.S("html5_disable_onesie_media_for_mosaic")&&gS(Y)||Y.b9()&&!Y.S("html5_enable_onesie_media_for_lifa")&&Y.isDaiEnabled()&&Y.enableServerStitchedDai||Y.S("html5_disable_onesie_media_for_lifa_eligible")&&m9(Y)?!1:!0}; SSE=function(U,Y){var A=Y.Y,c=U.rW.Sc;if(h2X(U))if(U.Hw&&U.Hw.zQ.has(hM(g.dh(A.info,c)))){if(c=hM(g.dh(A.info,c)),fa3(U,Y)){var d=new Iv(U.Hw.Jj(c)),T=function(E){try{if(E.nX())U.handleError(E.C3(),E.QK()),aS(Y,E),KI(E.info)&&pr(U.K,Y,A,!0),U.I2();else if(S5l(U.K,E)){var L;(L=U.W)==null||bIS(L,E.info,U.Pw);U.I2()}}catch(r){E=s7(r),U.handleError(E.errorCode,E.details,E.severity),U.LF()}}; A.W=!0;uO(d)&&(uRX(Y,new Sm(U.policy,c,d,U.Hw,T)),S0(U.timing))}}else U.wW("ombfmt",{})}; Mtc=function(U,Y){Y=Y||U.videoTrack&&U.videoTrack.T&&U.videoTrack.T.startTime||U.getCurrentTime();var A=QS,c=U.videoTrack,d=U.Y;Y=d.nextVideo&&d.nextVideo.index.Qz(Y)||0;d.jX!==Y&&(d.eX={},d.jX=Y,Ub(d,d.Y));Y=!d.Y.isLocked()&&d.X>-1&&(0,g.y)()-d.XY.Y&&Y.reason==="b";c||d||A?(U.iY.gB({reattachOnConstraint:c?"u":d?"drm":"perf",lo:Y.T,up:Y.Y}),U.policy.Vt||(U.j.Y.T=!1)):(U.policy.Vt&&(U.j.Y.T=!1),Hl(U))}}else if(!KRc(U.Y,Y)&&U.videoTrack){U.logger.debug(function(){return"Setting constraint: r="+Y.reason+" u="+Y.Y}); A=U.Y.Y;mmS(U,COX(U.Y,Y));Mtc(U);c=Y.isLocked()&&Y.reason==="m"&&U.Y.Hw;d=U.policy.Re&&Y.reason==="l"&&sb(U.videoTrack);A=A.Y>Y.Y&&Y.reason==="b";var T=U.Y.Zf&&!Fg();c||d||A||T?U.iY.gB({reattachOnConstraint:c?"u":d?"drm":T?"codec":"perf"}):Hl(U)}}; yiY=function(U,Y,A){if((!U.Ov||tx(U.Ov)&&!U.policy.pc)&&!U.Xg.isSeeking()&&(U.policy.Y||sb(Y)&&Y.Y.kH()&&U.Y.Pw)){var c=U.getCurrentTime()+bJX(U.Z,Y,A);U.logger.debug(function(){return"Clearing back to "+c.toFixed(3)}); E1X(Y,c)}}; mmS=function(U,Y){Y&&(U.logger.debug(function(){return"Logging new format: "+Lw(Y.video.info)}),npl(U.iY,new nN(Y.video,Y.reason))); if(U.Y.dW){var A=cw3(U.Y,"a");U.iY.xu(new nN(A.audio,A.reason))}}; Hl=function(U){g.uQ(U.Tk)}; bsY=function(U){U.policy.Lr&&U.policy.yH&&Math.min(TIE(U.videoTrack),TIE(U.audioTrack))*1E3>U.policy.Uc?g.uQ(U.ws):U.I2()}; Dmc=function(U,Y){var A=(0,g.y)()-Y,c=kL(U.audioTrack,!0)*1E3,d=kL(U.videoTrack,!0)*1E3;U.logger.debug(function(){return"Appends paused for "+A}); if(U.policy.T&&(U.wW("apdpe",{dur:A.toFixed(),abuf:c.toFixed(),vbuf:d.toFixed()}),Sl(U.policy))){var T=aV(U.Z);U.wW("sdps",{ct:Y,ah:c.toFixed(),vh:d.toFixed(),mr:xA(U.Z,U.GB,T),bw:T.toFixed(),js:U.isSeeking(),re:+U.GB,ps:(U.policy.kM||"").toString(),rn:(U.policy.SN||"").toString()})}}; Ial=function(U){if(VjY(U.videoTrack))return U.logger.debug("Pausing appends for server-selectable format"),"ssf";if(U.policy.yJ&&HsE(U.videoTrack)&&HsE(U.audioTrack))return"updateEnd";if(xL(U.audioTrack)||xL(U.videoTrack)&&U.videoTrack.Y.info.Rv!=="f")return"";if(U.Xg.isSeeking()){var Y=U.Z;var A=U.videoTrack;var c=U.audioTrack;if(Y.policy.Y){var d=Y.policy.oX;Sl(Y.policy)&&(d=xA(Y,!1,aV(Y)));Y=d;A=kL(c,!0)>=Y&&kL(A,!0)>=Y}else A.W.length||c.W.length?(d=A.Y.info.hs+c.Y.info.hs,d=10*(1-aV(Y)/d),Y= Math.max(d,Y.policy.oX),A=kL(c,!0)>=Y&&kL(A,!0)>=Y):A=!0;if(!A)return"abr";A=U.videoTrack;if(A.W.length>0&&A.j.T.length===1&&XM3(A.j).info.G360);c=Sl(U.policy)&&U.policy.VP;if(!U.GB||!c&&A)return"";A=U.policy.zd;Sl(U.policy)&&(A=xA(U.Z,U.GB,aV(U.Z)));A=LJv(U.videoTrack,U.getCurrentTime(),A)||LJv(U.audioTrack,U.getCurrentTime(), A);return Sl(U.policy)?A?"mbnm":"":(U.videoTrack.W.length>0||U.audioTrack.W.length>0||ka3(U.K,U.videoTrack,U.audioTrack)||ka3(U.K,U.audioTrack,U.videoTrack))&&A?"nord":""}; urX=function(U){if(U.G){var Y=U.G.I2(U.audioTrack,vd(U.Ov.T.MU()));Y&&U.iY.seekTo(Y,{Dy:!0,Qa:"pollSubsegmentReadahead",GG:!0})}}; clX=function(U,Y,A){if(U.policy.yJ&&HsE(Y))return!1;if(A.YJ())return!0;if(!A.XG())return!1;var c=yA(Y);if(!c||c.info.type===6)return!1;var d;if(U.policy.ju||((d=U.W)==null?0:OIX(d,Y,c.info.Js)))U.eX=0;else return U.Xg.isSeeking()&&Hl(U),U.eX=U.eX||(0,g.y)(),!1;if(!wN(U,Y,A,c.info))return!1;if(U.rW.T&&c.info.T===0){if(d=K9X(Y,A,c)){var T=tc(Y);U.wW("initchg",{it:c.info.Y.info.id,sr:!!T&&T.Y===c.info.Y,ty:c.info.type,seg:c.info.Js})}T=g.Ax(c.info.Y.info);U.policy.o2&&T&&!d&&QnE(c)}T=U.G&&!!U.G.j&&Y.Y.info.audio; d=U.rW.isManifestless||c.K;if(!(U.rW.T&&c.info.T!==0||d&&!T)&&qS9(U,Y,A,c))return!0;if(T)return!1;T=QA(U,Y);T=U.getCurrentTime()+T;if(c.info.j>T)return U.policy.Y&&CI3(U,Y),U.policy.Qs&&qGS(Y.j,T,!1),!1;U9X(U,Y);var E;U.policy.Ix&&A===((E=U.Ov)==null?void 0:E.Y)&&U.Ly&&(A.jU()===0?(U.Ly=!1,U.policy.Ix=!1):U.qI=A.jU());if(!YWc(U,A,c,Y))return!1;U.policy.yJ&&c.info.lN()?(U.iY.L().O3()&&U.wW("eosl",{ls:c.info.jq()}),c.isLocked=!0):(Y.Wr(c),AwS(U.Y,c.info),U.logger.debug(function(){return"Appended "+ c.info.jq()+", buffered: "+lM(A.MU())})); d&&Al3(U,c.info.Y.Mc);return!0}; CI3=function(U,Y){Y===U.videoTrack?U.Uv=U.Uv||(0,g.y)():U.QJ=U.QJ||(0,g.y)()}; U9X=function(U,Y){Y===U.videoTrack?U.Uv=0:U.QJ=0}; YWc=function(U,Y,A,c){var d=U.policy.R1?(0,g.y)():0,T=A.K&&A.info.Y.Y||void 0,E=A.Y;A.K&&(E=d9Y(U,A,E)||E);var L=E.fJ();E=U.policy.R1?(0,g.y)():0;Y=T_c(U,Y,L,A.info,T);(c=c.X)!=null&&(T=A.info,d=E-d,E=(0,g.y)()-E,!c.T||rxl(c.T,T)&&c.T.Js===T.Js||c.flush(),c.j+=d,c.W+=E,d=1,!c.T&&T.T&&(d=2),Eb(c,d,Y),E=Math.ceil(T.T/1024),d===2&&c.Y.add(E),c.Y.add(Math.ceil((T.T+T.W)/1024)-E),c.T=T);U.jX=0;if(Y===0)return U.kE&&(U.logger.debug("Retry succeed, back to normal append logic."),U.kE=!1,U.i$=!1),U.VJ=0, !0;if(Y===2||Y===5)return E_S(U,"checked",Y,A.info),!1;if(Y===1){if(!U.kE)return U.logger.debug("QuotaExceeded, retrying."),U.kE=!0,!1;if(!U.i$)return U.i$=!0,U.iY.seekTo(U.getCurrentTime(),{Qa:"quotaExceeded",GG:!0}),!1;A.info.pV()?(d=U.policy,d.Uv=Math.floor(d.Uv*.8),d.ov=Math.floor(d.ov*.8)):(d=U.policy,d.VJ=Math.floor(d.VJ*.8),d.ov=Math.floor(d.ov*.8));U.policy.Y?I6(U.j.Y,A.info.Y,!1):Ac(U.Y,A.info.Y)}U.iY.gB({reattachOnAppend:Y});return!1}; d9Y=function(U,Y,A){var c;if(c=U.policy.E7&&U.Ov&&!U.Ov.Z&&!U.iY.Kg())Y=Y.info.Y.info,c=Y.Wu()&&uu(Y)&&Y.video&&Y.video.width<3840&&Y.video.width>Y.video.height;if(c&&(U.Ov.Z=!0,Mx('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return A=eR3(A),U.policy.T&&U.wW("sp4k",{s:!!A}),A}; E_S=function(U,Y,A,c){var d="fmt.unplayable",T=1;A===5||A===3?(d="fmt.unparseable",U.policy.Y?!c.Y.info.video||uZ(U.j.Y).size>0||I6(U.j.Y,c.Y,!1):!c.Y.info.video||uZ(U.Y.K).size>0||Ac(U.Y,c.Y)):A===2&&(U.VJ<15?(U.VJ++,d="html5.invalidstate",T=0):d="fmt.unplayable");c=nI(c);var E;c.mrs=(E=U.Ov)==null?void 0:U$(E);c.origin=Y;c.reason=A;U.handleError(d,c,T)}; ywX=function(U,Y,A,c,d){var T=U.rW;var E=U.policy.Y,L=!1,r=-1,l;for(l in T.Y){var P=on(T.Y[l].info.mimeType)||T.Y[l].info.pV();if(c===P)if(P=T.Y[l].index,P.Y_(Y.Js)){L=P;var V=Y,v=L.L2(V.Js);v&&v.startTime!==V.startTime?(L.segments=[],L.Ql(V),L=!0):L=!1;L?r=Y.Js:!Y.pending&&E&&(V=P.getDuration(Y.Js),V!==Y.duration&&(T.publish("clienttemp","mfldurUpdate",{itag:T.Y[l].info.itag,seg:Y.Js,od:V,nd:Y.duration},!1),P.Ql(Y),L=!0))}else P.Ql(Y),L=!0}r>=0&&(E={},T.publish("clienttemp","resetMflIndex",(E[c? "v":"a"]=r,E),!1));T=L;Atv(U.Xg,Y,c,T);U.W.VD(Y,A,c,d);if(U.policy.zs&&A){var H;(H=U.qz)!=null&&H.W.set(Y.Js,A)}Y.Js===U.rW.u1&&T&&a7(U.rW)&&Y.startTime>a7(U.rW)&&(U.rW.QJ=Y.startTime+(isNaN(U.timestampOffset)?0:U.timestampOffset),U.Xg.isSeeking()&&U.Xg.Y 5)return U.jX=0,U.iY.gB({initSegStuck:1,as:c.info.jq()}),!0}else U.jX=0,U.R1=c;U.policy.YY&&(A.abort(),(E=Y.X)!=null&&(Eb(E,4),E.flush()));d=T_c(U,A,T,r,d);var l;(l=Y.X)==null||l7X(l,d,r);if(d!==0)return o_E(U,d,c),!0;c.info.pV()?R3V(U.timing):aY8(U.timing);U.logger.debug(function(){return"Appended init for "+c.info.Y.info.id}); Al3(U,c.info.Y.Mc);return A.Zk()}; K9X=function(U,Y,A){if(Y.hD()==null){U=tc(U);if(!(Y=!U||U.Y!==A.info.Y)){a:if(U=U.X,A=A.info.X,U.length!==A.length)A=!1;else{for(Y=0;Y1)return 6;E.eX=new g.IM(function(){var L=yA(E);U.Ky()||L==null||!L.isLocked?U.iY.L().O3()&&U.wW("eosl",{delayA:L==null?void 0:L.info.jq()}):zWc(E)?(U.iY.L().O3()&&U.wW("eosl",{dunlock:L==null?void 0:L.info.jq()}),Ly3(U,E===U.audioTrack)):(U.wW("nue",{ls:L.info.jq()}),L.info.Pw+=1,U.Ov&&U.CA())},1E4,U); U.iY.L().O3()&&U.wW("eosl",{delayS:c.jq()});E.eX.start()}U.policy.Xf&&(c==null?void 0:c.Y)instanceof CI&&c.lN()&&U.wW("poseos",{itag:c.Y.info.itag,seg:c.Js,lseg:c.Y.index.Ea(),es:c.Y.index.W});Y.appendBuffer(A,c,d)}catch(L){if(L instanceof DOMException){if(L.code===11)return 2;if(L.code===12)return 5;if(L.code===22||L.message.indexOf("Not enough storage")===0)return Y=Object.assign({name:"QuotaExceededError",buffered:lM(Y.MU()).replace(/,/g,"_"),vheap:Bw(U.videoTrack),aheap:Bw(U.audioTrack),message:g.YK(L.message, 3),track:U.Ov?Y===U.Ov.T?"v":"a":"u"},aa8(U.policy.TF)),U.handleError("player.exception",Y),1;g.S5(L)}return 4}return U.Ov.oe()?3:0}; gC=function(U,Y,A){U.iY.seekTo(Y,A)}; Al3=function(U,Y){Y&&U.iY.o6(new $L(Y.key,Y.type))}; Ww=function(U,Y){U.iY.RQ(Y)}; QA=function(U,Y){if(U.kE&&!U.GB)return 3;if(U.isSuspended)return 1;var A;if((A=U.Ov)==null?0:A.Ov&&A.Ov.streaming===!1)return 4;A=(Y.Y.info.audio?U.policy.VJ:U.policy.Uv)/(Y.hs*U.policy.K2);if(U.policy.q6>0&&U.Ov&&tx(U.Ov)&&(Y=Y.Y.info.video?U.Ov.T:U.Ov.Y)&&!Y.Zk()){Y=Y.MU();var c=Pd(Y,U.getCurrentTime());c>=0&&(Y=U.getCurrentTime()-Y.start(c),A+=Math.max(0,Math.min(Y-U.policy.q6,U.policy.RU)))}U.policy.ov>0&&(A=Math.min(A,U.policy.ov));return A}; laX=function(U,Y){return(QA(U,Y)+U.policy.eN)*Y.hs}; l3l=function(U){U.Zf&&!U.isSuspended&&tv(U.schedule)&&(rll(U,U.Zf),U.Zf="")}; rll=function(U,Y){Bt(Y,"cms",function(A){U.policy.T&&U.wW("pathprobe",A)},function(A){U.iY.handleError(A)})}; PRV=function(U,Y){if(U.Ov&&U.Ov.j&&!U.Ov.oe()&&(Y.zc=kL(U.videoTrack),Y.T=kL(U.audioTrack),U.policy.T)){var A=Bw(U.videoTrack),c=Bw(U.audioTrack),d=lM(U.Ov.T.MU(),"_",5),T=lM(U.Ov.Y.MU(),"_",5);Object.assign(Y.Y,{lvq:A,laq:c,lvb:d,lab:T})}Y.bandwidthEstimate=kA(U.Z);var E;(E=U.audioTrack.X)==null||E.flush();var L;(L=U.videoTrack.X)==null||L.flush();U.logger.debug(function(){return R9(Y.Y)})}; V44=function(U,Y){U.Pw=Y;U.W&&(U.W.W=Y);U.Pw.o0(U.videoTrack.Y.info.Wu());U.K.T=U.Pw;U.policy.j&&(U.T.T=U.Pw)}; GOV=function(U,Y){if(U.Ov&&U.Ov.T){if(U.policy.Kn){var A=WJX(U.audioTrack);if(A&&A.SI()){var c=U.iY;if(c.kB&&(c.kB.Y=A,A=c.zk(c.kB.videoId),A.qoe)){A=A.qoe;c=c.kB;var d=g.FW(A.provider);$9X(A,d,c)}}}U.policy.Rp&&(A=WJX(U.videoTrack))&&A.pV()&&(c=U.iY,c.qP&&(c.qP.Y=A,A=c.zk(c.qP.videoId),A.qoe&&v_c(A.qoe,c.qP)));Y-=isNaN(U.timestampOffset)?0:U.timestampOffset;U.getCurrentTime()!==Y&&U.resume();U.Xg.isSeeking()&&U.Ov&&!U.Ov.oe()&&(c=U.getCurrentTime()<=Y&&Y=0&&T1?L.T[0]=Y&&xml(U,c.startTime,!1)}); return A&&A.startTimeU.getCurrentTime())return A.start/1E3;return Infinity}; Hkc=function(U){if(U.iY.getVideoData().isLivePlayback)return!1;var Y=U.iY.sH();if(!Y)return!1;Y=Y.getDuration();if(U.Ov&&U.Ov.Y&&U.Ov.T){var A=U.getCurrentTime(),c=U.Ov.Y.MU();U=U.Ov.T.MU();c=c?$e(c,A):A;A=U?$e(U,A):A;A=Math.min(c,A);Y=isNaN(A)?!1:A>=Y-.01}else Y=!1;return Y}; o_E=function(U,Y,A){U.policy.DQ&&ES(U.iY.getVideoData())?(U.iY.vH()||E_S(U,"sepInit",Y,A.info),FyE(U.iY,"sie")):E_S(U,"sepInit",Y,A.info)}; pIl=function(U){return U.iY.Y9()0){var d=c.Y.shift();N_E(c,d.info)}c.Y.length>0&&(d=c.Y[0].time-(0,g.y)(),c.T.start(Math.max(0,d)))}},0); g.Z(this,this.T);Y.subscribe("widevine_set_need_key_info",this.K,this)}; N_E=function(U,Y){a:{var A=Y.cryptoPeriodIndex;if(isNaN(A)&&U.W.size>0)A=!0;else{for(var c=g.J(U.W.values()),d=c.next();!d.done;d=c.next())if(d.value.cryptoPeriodIndex===A){A=!0;break a}A=!1}}U.publish("log_qoe",{wvagt:"reqnews",canskip:A});A||U.publish("rotated_need_key_info_ready",Y)}; t4v=function(){var U={};var Y=U.url;var A=U.interval;U=U.retries;this.url=Y;this.interval=A;this.retries=U}; eW9=function(U,Y){this.statusCode=U;this.message=Y;this.T=this.heartbeatParams=this.errorMessage=null;this.Y={};this.nextFairplayKeyId=null}; B_c=function(U,Y,A){A=A===void 0?"":A;g.p.call(this);this.message=U;this.requestNumber=Y;this.lf=A;this.onError=this.onSuccess=null;this.Y=new g.MU(5E3,2E4,.2)}; XCX=function(U,Y,A){U.onSuccess=Y;U.onError=A}; RWX=function(U,Y,A,c){var d={timeout:3E4,onSuccess:function(T){if(!U.Ky()){Z5("drm_net_r",void 0,U.lf);var E=T.status==="LICENSE_STATUS_OK"?0:9999,L=null;if(T.license)try{L=Ap(T.license)}catch(G){g.S5(G)}if(E!==0||L){L=new eW9(E,L);E!==0&&T.reason&&(L.errorMessage=T.reason);if(T.authorizedFormats){E={};for(var r=[],l={},P=g.J(T.authorizedFormats),V=P.next();!V.done;V=P.next())if(V=V.value,V.trackType&&V.keyId){var v=kO4[V.trackType];if(v){v==="HD"&&T.isHd720&&(v="HD720");V.isHdr&&(v+="HDR");E[v]|| (r.push(v),E[v]=!0);var H=null;try{H=Ap(V.keyId)}catch(G){g.S5(G)}H&&(l[g.U_(H,4)]=v)}}L.T=r;L.Y=l}T.nextFairplayKeyId&&(L.nextFairplayKeyId=T.nextFairplayKeyId);T.sabrLicenseConstraint&&(L.sabrLicenseConstraint=Ap(T.sabrLicenseConstraint));T=L}else T=null;if(T)U.onSuccess(T,U.requestNumber);else U.onError(U,"drm.net","t.p;p.i")}}, onError:function(T){if(!U.Ky())if(T&&T.error)T=T.error,U.onError(U,"drm.net.badstatus","t.r;p.i;c."+T.code+";s."+T.status,T.code);else U.onError(U,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){U.onError(U,"drm.net","rt.req."+U.requestNumber)}}; c&&(d.lm="Bearer "+c);g.AH(A,"player/get_drm_license",Y,d)}; a39=function(U,Y,A,c){g.l6.call(this);this.videoData=U;this.MI=Y;this.Z=A;this.sessionId=c;this.K={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Pw=this.Hw=!1;this.W=null;this.ov=[];this.j=[];this.UO=[];this.G=!1;this.Y={};this.status="";this.J=NaN;this.T=U.K;this.cryptoPeriodIndex=A.cryptoPeriodIndex;U={};Object.assign(U,this.MI.Y);U.cpn=this.videoData.clientPlaybackNonce;this.videoData.eX&&(U.vvt=this.videoData.eX,this.videoData.mdxEnvironment&&(U.mdx_environment=this.videoData.mdxEnvironment)); this.MI.ov&&(U.authuser=this.MI.ov);this.MI.pageId&&(U.pageid=this.MI.pageId);isNaN(this.cryptoPeriodIndex)||(U.cpi=this.cryptoPeriodIndex.toString());var d=(d=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.tF()))?d[1]:"";d==="ATV"&&(U.cdt=d);this.K=U;this.K.session_id=c;this.X=!0;this.T.flavor==="widevine"&&(this.K.hdr="1");this.T.flavor==="playready"&&(Y=Number(Ta(Y.experiments,"playready_first_play_expiration")),!isNaN(Y)&&Y>=0&&(this.K.mfpe=""+Y),this.X=!1);Y="";g.uq(this.T)?I7(this.T)?(c=A.T)&&(Y="https://www.youtube.com/api/drm/fps?ek="+ azc(c)):(Y=A.initData.subarray(4),Y=new Uint16Array(Y.buffer,Y.byteOffset,Y.byteLength/2),Y=String.fromCharCode.apply(null,Y).replace("skd://","https://")):Y=this.T.T;this.baseUrl=Y;this.fairplayKeyId=fC(this.baseUrl,"ek")||"";if(Y=fC(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(Y);this.ov=A.Wu?[g.U_(A.initData,4)]:A.W;Bl(this,{sessioninit:A.cryptoPeriodIndex});this.status="in"}; hWV=function(U,Y){Bl(U,{createkeysession:1});U.status="gr";Z5("drm_gk_s",void 0,U.videoData.Pw);U.url=x9X(U);try{U.W=Y.createSession(U.Z,function(A){Bl(U,{m:A})})}catch(A){Y="t.g"; A instanceof DOMException&&(Y+=";c."+A.code);U.publish("licenseerror","drm.unavailable",1,Y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}U.W&&(srl(U.W,function(A,c){f39(U,A,c)},function(A,c,d){if(!U.Ky()){c=void 0; var T=1;g.uq(U.T)&&g.bo(U.MI)&&U.MI.S("html5_enable_safari_fairplay")&&d===1212433232&&(c="ERROR_HDCP",T=U.MI.S("html5_safari_fairplay_ignore_hdcp")?0:T);U.error("drm.keyerror",T,A,c)}},function(){U.Ky()||(Bl(U,{onkyadd:1}),U.Pw||(U.publish("sessionready"),U.Pw=!0))},function(A){U.EZ(A)}),g.Z(U,U.W))}; x9X=function(U){var Y=U.baseUrl;zu8(Y)||U.error("drm.net",2,"t.x");if(!fC(Y,"fexp")){var A=["23898307","23914062","23916106","23883098"].filter(function(d){return U.MI.experiments.experiments[d]}); A.length>0&&(U.K.fexp=A.join())}A=g.J(Object.keys(U.K));for(var c=A.next();!c.done;c=A.next())c=c.value,Y=Tg3(Y,c,U.K[c]);return Y}; f39=function(U,Y,A){if(!U.Ky())if(Y){Bl(U,{onkmtyp:A});U.status="km";switch(A){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":SWE(U,Y);return;default:U.publish("ctmp","message_type",{t:A,l:Y.byteLength})}U.Hw||(Z5("drm_gk_f",void 0,U.videoData.Pw),U.Hw=!0,U.publish("newsession",U));if(yZ(U.T)&&(Y=M4X(Y),!Y))return;Y=new B_c(Y,++U.requestNumber,U.videoData.Pw);XCX(Y,function(c){bqS(U,c)},function(c,d,T){if(!U.Ky()){var E=0; c.Y.T>=3&&(E=1,d="drm.net.retryexhausted");Bl(U,{onlcsrqerr:d,info:T});U.error(d,E,T);U.shouldRetry(xP(E),c)&&pCV(U,c)}}); g.Z(U,Y);QrE(U,Y)}else U.error("drm.unavailable",1,"km.empty")}; SWE=function(U,Y){Bl(U,{sdpvrq:1});U.J=Date.now();if(U.T.flavor!=="widevine")U.error("drm.provision",1,"e.flavor;f."+U.T.flavor+";l."+Y.byteLength);else{var A={cpn:U.videoData.clientPlaybackNonce};Object.assign(A,U.MI.Y);A=g.xJ("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",A);Y={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, Y)}),responseType:"arraybuffer"};g.kG(A,Y,3,500).then(af(function(c){c=c.xhr;if(!U.Ky()){c=new Uint8Array(c.response);var d=String.fromCharCode.apply(null,c);try{var T=JSON.parse(d)}catch(E){}T&&T.signedResponse?(U.publish("ctmp","drminfo",{provisioning:1}),T=(Date.now()-U.J)/1E3,U.J=NaN,U.publish("ctmp","provs",{et:T.toFixed(3)}),U.W&&U.W.update(c)):(T=T&&T.error&&T.error.message,c="e.parse",T&&(c+=";m."+T),U.error("drm.provision",1,c))}}),af(function(c){U.Ky()||U.error("drm.provision",1,"e."+c.errorCode+ ";c."+(c.xhr&&c.xhr.status))}))}}; XW=function(U){var Y;if(Y=U.X&&U.W!=null)U=U.W,Y=!(!U.Y||!U.Y.keyStatuses);return Y}; QrE=function(U,Y){U.status="km";Z5("drm_net_s",void 0,U.videoData.Pw);var A=new g.YS(U.MI.Hl),c={context:g.P9(A.config_||g.lz())};c.drmSystem=ZqX[U.T.flavor];c.videoId=U.videoData.videoId;c.cpn=U.videoData.clientPlaybackNonce;c.sessionId=U.sessionId;c.licenseRequest=g.U_(Y.message);c.drmParams=U.videoData.drmParams;isNaN(U.cryptoPeriodIndex)||(c.isKeyRotated=!0,c.cryptoPeriodIndex=U.cryptoPeriodIndex);var d,T,E=!!((d=U.videoData.T)==null?0:(T=d.video)==null?0:T.isHdr());c.drmVideoFeature=E?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(c.context&&c.context.client){if(d=U.MI.Y)c.context.client.deviceMake=d.cbrand,c.context.client.deviceModel=d.cmodel,c.context.client.browserName=d.cbr,c.context.client.browserVersion=d.cbrver,c.context.client.osName=d.cos,c.context.client.osVersion=d.cosver;c.context.user=c.context.user||{};c.context.request=c.context.request||{};U.videoData.eX&&(c.context.user.credentialTransferTokens=[{token:U.videoData.eX,scope:"VIDEO"}]);c.context.request.mdxEnvironment=U.videoData.mdxEnvironment|| c.context.request.mdxEnvironment;U.videoData.tb&&(c.context.user.kidsParent={oauthToken:U.videoData.tb});g.uq(U.T)&&(c.fairplayKeyId=g.U_(xV3(U.fairplayKeyId)));g.o$(U.MI,g.Za(U.videoData)).then(function(L){RWX(Y,c,A,L);U.status="rs"})}else U.error("drm.net",2,"t.r;ic.0")}; bqS=function(U,Y){if(!U.Ky())if(Bl(U,{onlcsrsp:1}),U.status="rr",Y.statusCode!==0)U.error("drm.auth",1,"t.f;c."+Y.statusCode,Y.errorMessage||void 0);else{Z5("drm_kr_s",void 0,U.videoData.Pw);if(Y.heartbeatParams&&Y.heartbeatParams.url&&U.videoData.S("outertube_streaming_data_always_use_staging_license_service")){var A=U.T.T.match(/(.*)youtube.com/g);A&&(Y.heartbeatParams.url=A[0]+Y.heartbeatParams.url)}Y.heartbeatParams&&U.publish("newlicense",Y.heartbeatParams);Y.T&&(U.j=Y.T,U.videoData.YB||U.publish("newlicense", new t4v),U.videoData.YB=!0,U.G=Cx(U.j,function(c){return c.includes("HDR")})); Y.Y&&(U.MI.S("html5_enable_vp9_fairplay")&&I7(U.T)?(A=g.U_(xV3(U.fairplayKeyId),4),U.Y[A]={type:Y.Y[A],status:"unknown"}):U.Y=OO(Y.Y,function(c){return{type:c,status:"unknown"}})); D7(U.T)&&(Y.message=xkY(g.U_(Y.message)));U.W&&(Bl(U,{updtks:1}),U.status="ku",U.W.update(Y.message).then(function(){Z5("drm_kr_f",void 0,U.videoData.Pw);XW(U)||(Bl(U,{ksApiUnsup:1}),U.publish("keystatuseschange",U))},function(c){c="msuf.req."+U.requestNumber+";msg."+g.YK(c.message,3); U.error("drm.keyerror",1,c)})); g.uq(U.T)&&U.publish("fairplay_next_need_key_info",U.baseUrl,Y.nextFairplayKeyId);U.MI.S("html5_enable_vp9_fairplay")&&I7(U.T)&&U.publish("qualitychange",Oq8(U.j));Y.sabrLicenseConstraint&&U.publish("sabrlicenseconstraint",Y.sabrLicenseConstraint)}}; pCV=function(U,Y){var A=Y.Y.getValue();A=new g.IM(function(){QrE(U,Y)},A); g.Z(U,A);A.start();g.bY(Y.Y);Bl(U,{rtyrq:1})}; m98=function(U,Y){for(var A=[],c=g.J(Object.keys(U.Y)),d=c.next();!d.done;d=c.next())d=d.value,A.push(d+"_"+U.Y[d].type+"_"+U.Y[d].status);return A.join(Y)}; uFl=function(U){var Y={};Y[U.status]=XW(U)?m98(U,"."):U.j.join(".");return Y}; KVX=function(U){switch(U){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; kw=function(U,Y){for(var A in U.Y)if(U.Y[A].status==="usable"&&U.Y[A].type===Y)return!0;return!1}; qbc=function(U,Y){for(var A in U.Y)if(U.Y[A].type===Y)return U.Y[A].status}; Bl=function(U,Y){var A=A===void 0?!1:A;R9(Y);(A||U.MI.O3())&&U.publish("ctmp","drmlog",Y)}; C98=function(U){var Y=U[0];U[0]=U[3];U[3]=Y;Y=U[1];U[1]=U[2];U[2]=Y;Y=U[4];U[4]=U[5];U[5]=Y;Y=U[6];U[6]=U[7];U[7]=Y}; Oq8=function(U){return g.Go(U,"UHD2")||g.Go(U,"UHD2HDR")?"highres":g.Go(U,"UHD1")||g.Go(U,"UHD1HDR")?"hd2160":g.Go(U,"HD")||g.Go(U,"HDHDR")?"hd1080":g.Go(U,"HD720")||g.Go(U,"HD720HDR")?"hd720":"large"}; M4X=function(U){for(var Y="",A=0;A'.charCodeAt(c);U=U.W.createSession("video/mp4",Y,A);return new RF(null,null,null,null,U)}; owX=function(U,Y){var A=U.J[Y.sessionId];!A&&U.j&&(A=U.j,U.j=null,A.sessionId=Y.sessionId,U.J[Y.sessionId]=A);return A}; djX=function(U,Y){var A=U.subarray(4);A=new Uint16Array(A.buffer,A.byteOffset,A.byteLength/2);A=g.M(String.fromCharCode.apply(null,A).match(/ek=([0-9a-f]+)/))[1];for(var c="",d=0;d19.2999?(U=A.AD,A=A.W2,A>=U&&(A=U* .75),Y=(U-A)*.5,A=new t0(Y,U,U-Y-A,this)):A=null;break a;case "widevine":A=new e9(Y,this,U);break a;default:A=null}if(this.K=A)g.Z(this,this.K),this.K.subscribe("rotated_need_key_info_ready",this.zE,this),this.K.subscribe("log_qoe",this.rF,this);qg(this.MI.experiments);this.rF({cks:this.Y.getInfo()})}; LiS=function(U){var Y=c0V(U.j);Y?Y.then(af(function(){lBX(U)}),af(function(A){if(!U.Ky()){g.S5(A); var c="t.a";A instanceof DOMException&&(c+=";n."+A.name+";m."+A.message);U.publish("licenseerror","drm.unavailable",1,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(U.rF({mdkrdy:1}),U.X=!0); U.Pw&&(Y=c0V(U.Pw))}; V93=function(U,Y,A){U.kE=!0;A=new $L(Y,A);U.MI.S("html5_eme_loader_sync")&&(U.J.get(Y)||U.J.set(Y,A));PG8(U,A)}; PG8=function(U,Y){if(!U.Ky()){U.rF({onInitData:1});if(U.MI.S("html5_eme_loader_sync")&&U.videoData.W&&U.videoData.W.Y){var A=U.G.get(Y.initData);Y=U.J.get(Y.initData);if(!A||!Y)return;Y=A;A=Y.initData;U.J.remove(A);U.G.remove(A)}U.rF({initd:Y.initData.length,ct:Y.contentType});if(U.Y.flavor==="widevine")if(U.QJ&&!U.videoData.isLivePlayback)K4(U);else{if(!(U.MI.S("vp9_drm_live")&&U.videoData.isLivePlayback&&Y.Wu)){U.QJ=!0;A=Y.cryptoPeriodIndex;var c=Y.Y;Jw4(Y);Y.Wu||(c&&Y.Y!==c?U.publish("ctmp","cpsmm", {emsg:c,pssh:Y.Y}):A&&Y.cryptoPeriodIndex!==A&&U.publish("ctmp","cpimm",{emsg:A,pssh:Y.cryptoPeriodIndex}));U.publish("widevine_set_need_key_info",Y)}}else U.zE(Y)}}; lBX=function(U){if(!U.Ky())if(U.MI.S("html5_drm_set_server_cert")||I7(U.Y)){var Y=U.j.setServerCertificate();Y?Y.then(af(function(A){U.MI.O3()&&U.publish("ctmp","ssc",{success:A})}),af(function(A){U.publish("ctmp","ssce",{n:A.name, m:A.message})})).then(af(function(){$j3(U)})):$j3(U)}else $j3(U)}; $j3=function(U){U.Ky()||(U.X=!0,U.rF({onmdkrdy:1}),K4(U))}; vwv=function(U){return U.Y.flavor==="widevine"&&U.videoData.S("html5_drm_cpi_license_key")}; K4=function(U){if(U.kE&&U.X&&!U.jX){for(;U.W.length;){var Y=U.W[0],A=vwv(U)?FH9(Y):g.U_(Y.initData);if(I7(U.Y)&&!Y.T)U.W.shift();else{if(U.T.get(A))if(U.Y.flavor!=="fairplay"||I7(U.Y)){U.W.shift();continue}else U.T.delete(A);Jw4(Y);break}}U.W.length&&U.createSession(U.W[0])}}; H4Y=function(U){var Y;if(Y=g.yB()){var A;Y=!((A=U.j.T)==null||!A.getMetrics)}Y&&(Y=U.j.getMetrics())&&(Y=g.kv(Y),U.publish("ctmp","drm",{metrics:Y}))}; GWV=function(){var U=SAc();return!(!U||U==="visible")}; wlv=function(U){var Y=Wi3();Y&&document.addEventListener(Y,U,!1)}; i4S=function(U){var Y=Wi3();Y&&document.removeEventListener(Y,U,!1)}; Wi3=function(){if(document.visibilityState)var U="visibilitychange";else{if(!document[v5+"VisibilityState"])return"";U=v5+"visibilitychange"}return U}; J0c=function(U){g.p.call(this);var Y=this;this.iY=U;this.UX=0;this.J=this.T=this.K=!1;this.j=0;this.Ww=this.iY.L();this.videoData=this.iY.getVideoData();this.W=g.H_(this.Ww.experiments,"html5_delayed_retry_count");this.Y=new g.IM(function(){Y.iY.QU()},g.H_(this.Ww.experiments,"html5_delayed_retry_delay_ms")); g.Z(this,this.Y)}; ez9=function(U,Y,A){var c=U.videoData.T,d=U.videoData.j;ES(U.iY.getVideoData())&&U.Ww.S("html5_gapless_fallback_on_qoe_restart")&&FyE(U.iY,"pe");if((Y==="progressive.net.retryexhausted"||Y==="fmt.unplayable"||Y==="fmt.decode")&&!U.iY.CJ.K&&c&&c.itag==="22")return U.iY.CJ.K=!0,U.Ne("qoe.restart",{reason:"fmt.unplayable.22"}),U.iY.kf(),!0;var T=!1;if(U.videoData.isExternallyHostedPodcast){if(T=U.videoData.sSv)A.mimeType=T.type,U.wW("3pp",{url:T.url});A.ns="3pp";U.iY.OT(Y,1,"VIDEO_UNAVAILABLE",R9((new a9(Y, A,1)).details));return!0}var E=U.UX+3E4<(0,g.y)()||U.Y.isActive();if(U.Ww.S("html5_empty_src")&&U.videoData.isAd()&&Y==="fmt.unplayable"&&/Empty src/.test(""+A.msg))return A.origin="emptysrc",U.Ne("auth",A),!0;E||qj(U.iY.NA())||(A.nonfg="paused",E=!0,U.iY.pauseVideo());(Y==="fmt.decode"||Y==="fmt.unplayable")&&(d==null?0:Uq(d)||Ye(d))&&(OQc(U.Ww.K,d.Rv),A.acfallexp=d.Rv,T=E=!0);!E&&U.W>0&&(U.Y.start(),E=!0,A.delayed="1",--U.W);d=U.iY.loader;!E&&((c==null?0:Cd(c))||(c==null?0:uu(c)))&&(OQc(U.Ww.K, c.Rv),T=E=!0,A.cfallexp=c.Rv);if(U.Ww.S("html5_ssap_ignore_decode_error_for_next_video")&&g.KD(U.videoData)&&Y==="fmt.unplayable"&&A.cid&&A.ccid&&qj(U.iY.NA())){if(A.cid!==A.ccid)return A.ignerr="1",U.Ne("ssap.transitionfailure",A),!0;U.Ne("ssap.transitionfailure",A);if(FiX(U.iY,Y))return!0}if(!E)return jFv(U,A);if(U.Ww.S("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.KD(U.videoData)&&Y==="fmt.unplayable"&&A.cid&&A.ccid&&A.cid!==A.ccid&&qj(U.iY.NA())&&(U.Ne("ssap.transitionfailure",A), FiX(U.iY,Y)))return!0;E=!1;U.K?U.UX=(0,g.y)():E=U.K=!0;var L=U.videoData;if(L.qI){L=L.qI.Tm();var r=Date.now()/1E3+1800;L=L6048E5&&Rz9(U,"signature");return!1}; Rz9=function(U,Y){try{window.location.reload(),U.Ne("qoe.restart",{detail:"pr."+Y})}catch(A){}}; xjX=function(U,Y){var A=U.Ww.K;A.G=!1;A.T=!0;U.Ne("qoe.restart",{e:Y===void 0?"fmt.noneavailable":Y,detail:"hdr"});U.iY.QU(!0)}; sFv=function(U,Y,A,c,d,T){this.videoData=U;this.Y=Y;this.reason=A;this.T=c;this.token=d;this.videoId=T}; C4=function(U,Y,A){this.MI=U;this.Ol=Y;this.iY=A;this.Z=this.J=this.Y=this.j=this.G=this.T=0;this.K=!1;this.X=g.H_(this.MI.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.W=new Map}; hzX=function(U,Y,A){!U.MI.S("html5_tv_ignore_capable_constraint")&&g.Rd(U.MI)&&(A=A.compose(fBS(U,Y)));return A}; SVc=function(U){if(U.iY.NA().isInline())return y6;var Y;U.S("html5_exponential_memory_for_sticky")?Y=ej(U.MI.mA,"sticky-lifetime")<.5?"auto":GC[If()]:Y=GC[If()];return g.$N("auto",Y,!1,"s")}; b4Y=function(U,Y){var A,c=M9V(U,(A=Y.Y)==null?void 0:A.videoInfos);A=U.iY.getPlaybackRate();return A>1&&c?(U=bQ4(U.MI.K,Y.Y.videoInfos,A),new VP(0,U,!0,"o")):new VP(0,0,!1,"o")}; M9V=function(U,Y){return Y&&g.Rd(U.MI)?Y.some(function(A){return A.video.fps>32}):!1}; pl4=function(U,Y){if(U.S("html5_disable_ustreamer_constraint_for_sabr")&&Lk(Y.videoData))return y6;var A=U.iY.Lg();U.S("html5_use_video_quality_cap_for_ustreamer_constraint")&&A&&A.To>0&&Hz(Y.videoData.O7)&&(U=A.To,Y.videoData.O7=new VP(0,U,!1,"u"));return Y.videoData.O7}; fBS=function(U,Y){if(g.Rd(U.MI)&&Rs(U.MI.K,as.HEIGHT))var A=Y.Y.videoInfos[0].video.qualityOrdinal;else{var c=U.fg(!!Y.Y.Y);op(Y.videoData)||y5(Y.videoData);Y=Y.Y.videoInfos;if(Y.length){var d=g.H_(U.MI.experiments,"html5_override_oversend_fraction")||.85,T=Y[0].video;T.projectionType!=="MESH"&&T.projectionType!=="EQUIRECTANGULAR"&&T.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||fs||(d=.45);U=g.H_(U.MI.experiments,"html5_viewport_undersend_maximum");for(T=0;T0&&(A=Math.min(A,c));if(c=g.H_(U.MI.experiments,"html5_max_vertical_resolution")){U=4320;for(d=0;dc&&(U=Math.min(U,T.video.qualityOrdinal));if(U<4320){for(d=c=0;d32){d=!0;break a}}d=!1}d&&(A=Math.min(A,c));(c=g.H_(U.MI.experiments,"html5_live_quality_cap"))&&Y.videoData.isLivePlayback&&(A=Math.min(A,c));A=Z48(U,Y,A);U=g.H_(U.MI.experiments,"html5_byterate_soft_cap");return new VP(0,A===4320?0:A,!1,"d",U)}; mjY=function(U){var Y,A,c,d;return g.S(function(T){switch(T.T){case 1:return U.Y.Y&&typeof((Y=navigator.mediaCapabilities)==null?void 0:Y.decodingInfo)==="function"?g.x(T,Promise.resolve(),2):T.return(Promise.resolve());case 2:A=g.J(U.Y.videoInfos),c=A.next();case 3:if(c.done){T.uY(0);break}d=c.value;return g.x(T,jNX(d),4);case 4:c=A.next(),T.uY(3)}})}; y0E=function(U,Y){if(!Y.videoData.T||U.S("html5_disable_performance_downgrade"))return!1;Date.now()-U.G>6E4&&(U.T=0);U.T++;U.G=Date.now();if(U.T!==4)return!1;gwS(U,Y.videoData.T);return!0}; Djl=function(U,Y,A,c){if(!Y||!A||!Y.videoData.T)return!1;var d=g.H_(U.MI.experiments,"html5_df_downgrade_thresh"),T=U.S("html5_log_media_perf_info");if(!((0,g.y)()-U.j<5E3?0:T||d>0))return!1;var E=((0,g.y)()-U.j)/1E3;U.j=(0,g.y)();A=A.getVideoPlaybackQuality();if(!A)return!1;var L=A.droppedVideoFrames-U.J,r=A.totalVideoFrames-U.Z;U.J=A.droppedVideoFrames;U.Z=A.totalVideoFrames;var l=A.displayCompositedVideoFrames===0?0:A.displayCompositedVideoFrames||-1;T&&U.MI.O3()&&U.iY.wW("ddf",{dr:A.droppedVideoFrames, de:A.totalVideoFrames,comp:l});if(c)return U.Y=0,!1;if((r-L)/E>U.X||!d||g.Rd(U.MI))return!1;U.Y=(r>60?L/r:0)>d?U.Y+1:0;if(U.Y!==3)return!1;gwS(U,Y.videoData.T);U.iY.wW("dfd",Object.assign({dr:A.droppedVideoFrames,de:A.totalVideoFrames},nwX()));return!0}; gwS=function(U,Y){var A=Y.Rv,c=Y.video.fps,d=Y.video.qualityOrdinal-1,T=U.W;Y=""+A+(c>49?"p60":c>32?"p48":"");A=QZ(A,c,T);d>0&&(A=Math.min(A,d));if(!Uz.has(Y)&&qN().includes(Y)){var E=A;A=KJ();+A[Y]>0&&(E=Math.min(+A[Y],E));A[Y]!==E&&(A[Y]=E,g.fU("yt-player-performance-cap",A,2592E3))}else if(Uz.has(Y)||T==null){a:{E=E===void 0?!0:E;c=qN().slice();if(E){if(c.includes(Y))break a;c.push(Y)}else{if(!c.includes(Y))break a;c.splice(c.indexOf(Y),1)}g.fU("yt-player-performance-cap-active-set",c,2592E3)}p1.set(Y, A)}else Uz.add(Y),T==null||T.set(Y,A);U.iY.Zb()}; YE=function(U,Y){if(!Y.Y.Y)return U.K?new VP(0,360,!1,"b"):y6;for(var A=!1,c=!1,d=g.J(Y.Y.videoInfos),T=d.next();!T.done;T=d.next())Cd(T.value)?A=!0:c=!0;A=A&&c;c=0;d=g.H_(U.MI.experiments,"html5_performance_cap_floor");d=U.MI.T?240:d;Y=g.J(Y.Y.videoInfos);for(T=Y.next();!T.done;T=Y.next()){var E=T.value;if(!A||!Cd(E))if(T=QZ(E.Rv,E.video.fps,U.W),E=E.video.qualityOrdinal,Math.max(T,d)>=E){c=E;break}}return new VP(0,c,!1,"b")}; IB4=function(U,Y){var A=U.iY.NA();return A.isInline()&&!Y.eP?new VP(0,480,!1,"v"):Lk(Y)?y6:A.isBackground()&&kS()/1E3>60&&!g.Rd(U.MI)?new VP(0,360,!1,"v"):y6}; uWX=function(U,Y,A){if(U.MI.experiments.lY("html5_disable_client_autonav_cap_for_onesie")&&Y.fetchType==="onesie"||g.Rd(U.MI)&&(If(-1)>=1080||Y.osid))return y6;var c=g.H_(U.MI.experiments,"html5_autonav_quality_cap"),d=g.H_(U.MI.experiments,"html5_autonav_cap_idle_secs");return c&&Y.isAutonav&&kS()/1E3>d?(A&&(c=Z48(U,A,c)),new VP(0,c,!1,"e")):y6}; Z48=function(U,Y,A){if(U.S("html5_optimality_defaults_chooses_next_higher")&&A)for(U=Y.Y.videoInfos,Y=1;Y=0||(U.provider.iY.getVisibilityState()===3?U.K=!0:(U.Y=g.FW(U.provider),U.delay.start()))}; CGV=function(U){if(!(U.T<0)){var Y=g.FW(U.provider),A=Y-U.j;U.j=Y;U.playerState.state===8?U.playTimeSecs+=A:U.playerState.isBuffering()&&!g.I(U.playerState,16)&&(U.rebufferTimeSecs+=A)}}; UBV=function(U){var Y;switch((Y=U.MI.playerCanaryStage)==null?void 0:Y.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"}}; Yz4=function(U){return window.PressureObserver&&new window.PressureObserver(U)}; Ay3=function(U){U=U===void 0?Yz4:U;g.p.call(this);var Y=this;try{this.W=U(function(c){Y.T=c.at(-1)}); var A;this.j=(A=this.W)==null?void 0:A.observe("cpu",{sampleInterval:2E3}).catch(function(c){c instanceof DOMException&&(Y.Y=c)})}catch(c){c instanceof DOMException&&(this.Y=c)}}; cy3=function(U){var Y={},A=window.h5vcc;Y.hwConcurrency=navigator.hardwareConcurrency;U.Y&&(Y.cpe=U.Y.message);U.T&&(Y.cpt=U.T.time,Y.cps=U.T.state);if(A==null?0:A.cVal)Y.cb2s=A.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),Y.cb5s=A.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),Y.cb30s=A.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return Y}; dBE=function(U){var Y;g.S(function(A){switch(A.T){case 1:return g.J3(A,2),g.x(A,U.j,4);case 4:g.t3(A,3);break;case 2:g.XE(A);case 3:(Y=U.W)==null||Y.disconnect(),g.i8(A)}})}; EE3=function(U,Y){Y?TeV.test(U):(U=g.dF(U),Object.keys(U).includes("cpn"))}; z$X=function(U,Y,A,c,d,T,E){var L={format:"RAW"},r={};if(o4(U)&&zw()){if(E){var l;((l=oE3.uaChPolyfill)==null?void 0:l.state.type)!==2?E=null:(E=oE3.uaChPolyfill.state.data.values,E={"Synth-Sec-CH-UA-Arch":E.architecture,"Synth-Sec-CH-UA-Model":E.model,"Synth-Sec-CH-UA-Platform":E.platform,"Synth-Sec-CH-UA-Platform-Version":E.platformVersion,"Synth-Sec-CH-UA-Full-Version":E.uaFullVersion});r=Object.assign(r,E);L.withCredentials=!0}(E=g.DQ("EOM_VISITOR_DATA"))?r["X-Goog-EOM-Visitor-Id"]=E:c?r["X-Goog-Visitor-Id"]= c:g.DQ("VISITOR_DATA")&&(r["X-Goog-Visitor-Id"]=g.DQ("VISITOR_DATA"));A&&(r["X-Goog-PageId"]=A);(c=Y.ov)&&!UJ(Y)&&(r["X-Goog-AuthUser"]=c);d&&(r.Authorization="Bearer "+d);Y.S("enable_datasync_id_header_in_web_vss_pings")&&Y.xm&&Y.datasyncId&&(r["X-YouTube-DataSync-Id"]=Y.datasyncId);E||r["X-Goog-Visitor-Id"]||d||A||c?L.withCredentials=!0:Y.S("html5_send_cpn_with_options")&&TeV.test(U)&&(L.withCredentials=!0)}Object.keys(r).length>0&&(L.headers=r);T&&(L.onFinish=T);return Object.keys(L).length>1? L:null}; LQl=function(U,Y,A,c,d,T,E,L){zw()&&A.token&&(U=Tw(U,{ctt:A.token,cttype:A.BD,mdx_environment:A.mdxEnvironment}));c.S("net_pings_low_priority")&&(Y||(Y={}),Y.priority="low");T||L&&c.S("nwl_skip_retry")?(Y==null?Y={}:EE3(U,c.S("html5_assert_cpn_with_regex")),E?Cc().sendAndWrite(U,Y):Cc().sendThenWrite(U,Y,L)):Y?(EE3(U,c.S("html5_assert_cpn_with_regex")),EC8(U,Y)):g.OC(U,d)}; ryc=function(U){for(var Y=[],A=0;A0&&A>0&&!U.T&&U.W<1E7)try{U.j=U.K({sampleInterval:Y,maxBufferSize:A});var c;(c=U.j)==null||c.addEventListener("samplebufferfull",function(){return g.S(function(d){if(d.T==1)return g.x(d,U.stop(),2);V_l(U);g.i8(d)})})}catch(d){U.T=Pvv(d.message)}}; de=function(U,Y){var A,c;return!!((A=window.h5vcc)==null?0:(c=A.settings)==null?0:c.set(U,Y))}; vEE=function(){var U,Y,A,c=(U=window.h5vcc)==null?void 0:(Y=U.settings)==null?void 0:(A=Y.getPersistentSettingAsString)==null?void 0:A.call(Y,"cpu_usage_tracker_intervals");if(c!=null){var d;U=(d=JSON.parse(c))!=null?d:[];d=U.filter(function(l){return l.type==="total"}).map(function(l){return l.seconds}); Y=g.J($B3);for(A=Y.next();!A.done;A=Y.next())A=A.value,d.indexOf(A)===-1&&U.push({type:"total",seconds:A});var T,E;(T=window.h5vcc)==null||(E=T.settings)==null||E.set("cpu_usage_tracker_intervals_enabled",1);var L,r;(L=window.h5vcc)==null||(r=L.settings)==null||r.set("cpu_usage_tracker_intervals",JSON.stringify(U))}}; H3c=function(){var U=window.H5vccPlatformService,Y="";if(U&&U.has("dev.cobalt.coat.clientloginfo")&&(U=U.open("dev.cobalt.coat.clientloginfo",function(){}))){var A=U.send(new ArrayBuffer(0)); A&&(Y=String.fromCharCode.apply(String,g.X(new Uint8Array(A))));U.close()}return Y}; g.oe=function(U,Y){g.p.call(this);var A=this;this.provider=U;this.logger=new g.o6("qoe");this.Y=new Map;this.sequenceNumber=1;this.J=NaN;this.g1="N";this.X=this.MB=this.XZ=this.ov=this.T=0;this.qz=this.kE=this.G=this.dW="";this.KU=this.yJ=NaN;this.Me=0;this.tb=-1;this.nU=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Tk=this.isEmbargoed=this.eX=this.isOffline=this.isBuffering=!1;this.Va=[];this.Pw=null;this.ws=this.j=this.i$=this.Z=!1;this.W=-1;this.Ly=!1;this.qe=new g.IM(this.pL,750,this);this.KQ= this.adCpn=this.Hw=this.contentCpn="";this.adFormat=void 0;this.o2=0;this.VJ=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.q5=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.AP=!1;this.Lr=NaN;this.Uv=0;this.R1=!1;this.QJ=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.mH=!1;this.o5={B6:function(d){A.B6(d)}, pNy:function(){return A.K}, fX:function(){return A.contentCpn}, Gdw:function(){return A.Hw}, reportStats:function(){A.reportStats()}, Ksn:function(){return A.Y.get("cat")||[]}, ip:function(d){return A.Y.get(d)||[]}, UNT:function(){return A.Y}, SrY:function(){return A.QJ}, sfE:function(){return{adCpn:A.adCpn,KQ:A.KQ,adFormat:A.adFormat}}}; this.jX=this.provider.MI.S("html5_qoe_relaxed_reporting");var c=g.H_(this.provider.MI.experiments,"html5_qoe_proto_mock_length");c&&!T_.length&&(T_=ryc(c));g.Z(this,this.qe);try{navigator.getBattery().then(function(d){A.Pw=d})}catch(d){}g.Ez(this,0,"vps",["N"]); U.MI.O3()&&(this.Uv=(0,g.y)(),this.Lr=g.Hn(function(){var d=(0,g.y)(),T=d-A.Uv;T>500&&A.wW("vmlock",{diff:T.toFixed()});A.Uv=d},250)); U.iY.OO()&&Y&&(this.QJ=Y-Math.round(g.FW(U)*1E3));this.provider.videoData.IJ&&(this.remoteControlMode=G_X[this.provider.videoData.IJ]||0);this.provider.videoData.P7&&(Y=UxX(this.provider.videoData.P7),Y==null?0:Y.length)&&(this.remoteConnectedDevices=Y);if(U.MI.O3()||U.S("html5_log_cpu_info"))this.qI=new Ay3,g.Z(this,this.qI);Y=g.H_(U.MI.experiments,"html5_js_self_profiler_sample_interval_ms");U=g.H_(U.MI.experiments,"html5_js_self_profiler_max_samples");Y>0&&U>0&&(this.Zf=new c$(Y,U),g.Z(this,this.Zf))}; z_=function(U,Y,A){var c=U.Y.get(Y);c?c.push(A):U.Y.set(Y,[A])}; g.Ez=function(U,Y,A,c){z_(U,A,Y.toFixed(3)+":"+c.join(":"))}; WQc=function(U,Y){var A=U.adCpn||U.provider.videoData.clientPlaybackNonce,c=U.provider.getCurrentTime(A);g.Ez(U,Y,"cmt",[c.toFixed(3)]);c=U.provider.Je(A);if(U.K&&c*1E3>U.K.tH+100&&U.K){var d=U.K;A=d.isAd;c=c*1E3-d.tH;U.Yb=Y*1E3-d.J_E-c-d.Hhv;d=(0,g.y)()-c;Y=U.Yb;c=U.provider.videoData;var T=c.isAd();if(A||T){T=(A?"ad":"video")+"_to_"+(T?"ad":"video");var E={};c.J&&(E.cttAuthInfo={token:c.J,videoId:c.videoId});E.startTime=d-Y;gs(T,E);g.OX({targetVideoId:c.videoId,targetCpn:c.clientPlaybackNonce}, T);Z5("pbs",d,T)}else d=U.provider.iY.K3(),d.J!==c.clientPlaybackNonce?(d.K=c.clientPlaybackNonce,d.T=Y):c.vg()||g.Md(new g.Do("CSI timing logged before gllat",{cpn:c.clientPlaybackNonce}));U.wW("gllat",{l:U.Yb.toFixed(),prev_ad:+A});delete U.K}}; L3=function(U,Y){Y=Y===void 0?NaN:Y;Y=Y>=0?Y:g.FW(U.provider);var A=U.provider.iY.Nc(),c=A.DP-(U.yJ||0);c>0&&g.Ez(U,Y,"bwm",[c,(A.cU-(U.KU||0)).toFixed(3)]);isNaN(U.yJ)&&A.DP&&U.isOffline&&U.B6(!1);U.yJ=A.DP;U.KU=A.cU;isNaN(A.bandwidthEstimate)||g.Ez(U,Y,"bwe",[A.bandwidthEstimate.toFixed(0)]);U.provider.MI.O3()&&Object.keys(A.Y).length!==0&&U.wW("bwinfo",A.Y);if(U.provider.MI.O3()||U.provider.MI.S("html5_log_meminfo"))c=aa8(U.provider.MI.S("html5_enable_chrobalt_memory_apis")),Object.values(c).some(function(T){return T!== void 0})&&U.wW("meminfo",c); if(U.provider.MI.O3()||U.provider.MI.S("html5_log_cpu_info")){var d;(c=(d=U.qI)==null?void 0:cy3(d))&&Object.values(c).some(function(T){return T!=null})&&U.wW("cpuinfo",c)}U.Zf&&U.wW("jsprof",U.Zf.flush()); U.Pw&&g.Ez(U,Y,"bat",[U.Pw.level,U.Pw.charging?"1":"0"]);d=U.provider.iY.getVisibilityState();U.tb!==d&&(g.Ez(U,Y,"vis",[d]),U.tb=d);WQc(U,Y);(d=w$V(U.provider))&&d!==U.Me&&(g.Ez(U,Y,"conn",[d]),U.Me=d);i33(U,Y,A)}; i33=function(U,Y,A){if(!isNaN(A.zc)){var c=A.zc;A.T96E3&&(new g.IM(U.reportStats,0,U)).start()}}; je8=function(U){U.provider.videoData.kC&&re(U,"prefetch");U.provider.videoData.Lr&&U.wW("reload",{r:U.provider.videoData.reloadReason,ct:U.provider.videoData.Lr});U.provider.videoData.i$&&re(U,"monitor");U.provider.videoData.isLivePlayback&&re(U,"live");dI&&re(U,"streaming");U.provider.videoData.IJ&&U.wW("ctrl",{mode:U.provider.videoData.IJ},!0);if(U.provider.videoData.P7){var Y=U.provider.videoData.P7.replace(/,/g,"_");U.wW("ytp",{type:Y},!0)}U.provider.videoData.FL&&(Y=U.provider.videoData.FL.replace(/,/g, "."),U.wW("ytrexp",{ids:Y},!0));var A=U.provider.videoData;Y=U.provider.MI.S("enable_white_noise")||U.provider.MI.S("enable_webgl_noop");A=g.WT(A)||g.ap(A)||g.xp(A)||g.sS(A);(Y||A)&&(Y=(0,g.lv)())&&U.Y.set("gpu",[Y]);y5(U.provider.videoData)&&g.Ez(U,g.FW(U.provider),"dt",["1"]);U.provider.MI.O3()&&(Y=(0,g.y)()-U.provider.MI.fV,U.wW("playerage",{secs:Math.pow(1.6,Math.round(Math.log(Y/1E3)/Math.log(1.6))).toFixed()}));U.j=!0;U.J=g.Hn(function(){U.reportStats()},1E4)}; t_E=function(U,Y,A){var c=g.FW(U.provider);Nel(U,c,Y,0,A);L3(U,c);FQV(U)}; Nel=function(U,Y,A,c,d){var T=U.provider.MI.Y.cbrver;U.provider.MI.Y.cbr==="Chrome"&&/^96[.]/.test(T)&&A==="net.badstatus"&&/rc\.500/.test(d)&&e$8(U,3);U.provider.MI.S("html5_use_ump")&&/b248180278/.test(d)&&e$8(U,4);T=U.provider.getCurrentTime(U.adCpn||U.provider.videoData.clientPlaybackNonce);c=c===1?"fatal":"";A=[A,c,T.toFixed(3)];c&&(d+=";a6s."+PX());d&&A.push(BeX(d));g.Ez(U,Y,"error",A);U.j=!0}; v_c=function(U,Y){var A=g.FW(U.provider);if(!U.provider.MI.experiments.lY("html5_refactor_sabr_video_format_selection_logging")||Y.Y.id!==U.dW){var c=[Y.Y.id,Y.T,U.dW,Y.reason];Y.token&&c.push(Y.token);g.Ez(U,A,"vfs",c);U.dW=Y.Y.id;c=U.provider.iY.getPlayerSize();if(c.width>0&&c.height>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.q0();d>1&&c.push(d);g.Ez(U,A,"view",c)}U.i$||(U.provider.MI.O3()&&re(U,"rqs2"),U.provider.videoData.Y&&Fk(U.provider.videoData.Y)&&U.Y.set("preload",["1"]));U.i$= !0;U.j=!0}Y.reason==="m"&&++U.o2===100&&e$8(U,2);g.Ez(U,A,"vps",[U.g1]);U.jX||U.reportStats(A)}; X$l=function(U){U.W>=0||(U.provider.MI.b1||U.provider.iY.getVisibilityState()!==3?U.W=g.FW(U.provider):U.Ly=!0)}; k_3=function(U,Y,A,c){if(A!==U.g1){U.jX||Y=10&&U.playTimeSecs<=180&&(U.Y.set("qoealert",["1"]),U.Tk=!0)),A!=="B"||U.g1!=="PL"&&U.g1!=="PB"||(U.isBuffering=!0),U.T=Y);U.g1==="PL"&&(A==="B"||A==="S")||U.provider.MI.O3()?L3(U,Y):(U.AP||A!=="PL"||(U.AP=!0,i33(U,Y,U.provider.iY.Nc())),WQc(U,Y));A==="PL"&&g.uQ(U.qe);var d=[A];A==="S"&&c&&d.push("ss."+c);g.Ez(U,Y,"vps", d);U.g1=A;U.ov=Y;U.T=Y;U.j=!0}}; $9X=function(U,Y,A){if(U.provider.MI.experiments.lY("html5_refactor_sabr_audio_format_selection_logging")){Y=A.Y;var c=[Y.audio&&Y.video?Y.k7?Y.k7:"":Y.id];Y.b$&&Y.b$.id&&c.push(Y.b$.id);Y=c.join(";");Y!==U.G&&(c=[Y,U.G,A.reason],A.token&&c.push(A.token),g.Ez(U,g.FW(U.provider),"afs",c),U.G=Y)}else A.Y.id!==U.G&&(c=[A.Y.id,U.G,A.reason],A.token&&c.push(A.token),g.Ez(U,Y,"afs",c),U.G=A.Y.id)}; re=function(U,Y){z_(U,"cat",Y)}; P$=function(U,Y,A,c,d,T){var E=g.FW(U.provider);A!==1&&A!==3&&A!==5||g.Ez(U,E,"vps",[U.g1]);z_(U,"xvt","t."+E.toFixed(3)+";m."+T.toFixed(3)+";g."+Y+";tt."+A+";np.0;c."+c+";d."+d)}; e$8=function(U,Y){U.ws||(z_(U,"fcnz",""+Y),U.ws=!0)}; BeX=function(U){/[^a-zA-Z0-9;.!_-]/.test(U)&&(U=U.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return U}; $E=function(U){this.provider=U;this.G=!1;this.Y=0;this.j=-1;this.f4=NaN;this.W=0;this.segments=[];this.J=this.K=0;this.previouslyEnded=!1;this.X=this.provider.iY.getVolume();this.Z=this.provider.iY.isMuted()?1:0;this.T=Vn(this.provider)}; v$=function(U){U.T.startTime=U.W;U.T.endTime=U.Y;var Y=!1;U.segments.length&&g.PW(U.segments).isEmpty()?(U.segments[U.segments.length-1].previouslyEnded&&(U.T.previouslyEnded=!0),U.segments[U.segments.length-1]=U.T,Y=!0):U.segments.length&&U.T.isEmpty()||(U.segments.push(U.T),Y=!0);Y?U.T.endTime===0&&(U.previouslyEnded=!1):U.T.previouslyEnded&&(U.previouslyEnded=!0);U.K+=U.Y-U.W;U.T=Vn(U.provider);U.T.previouslyEnded=U.previouslyEnded;U.previouslyEnded=!1;U.W=U.Y}; aJ9=function(U){R$c(U);U.J=g.Hn(function(){U.update()},100); U.f4=g.FW(U.provider);U.T=Vn(U.provider)}; R$c=function(U){g.Wn(U.J);U.J=NaN}; xBE=function(U,Y,A){A-=U.f4;return Y===U.Y&&A>.5}; sec=function(U,Y,A,c){this.MI=Y;this.Lr=A;this.segments=[];this.experimentIds=[];this.Zf=this.mH=this.isFinal=this.delayThresholdMet=this.AP=this.nU=this.autoplay=this.autonav=!1;this.qz="yt";this.J=[];this.G=this.X=null;this.sendVisitorIdHeader=this.Ly=!1;this.Z=this.pageId="";this.K=A==="watchtime";this.W=A==="playback";this.jX=A==="atr";this.mA=A==="engage";this.sendVisitorIdHeader=!1;this.uri=this.jX?"/api/stats/"+A:"//"+Y.Sf+"/api/stats/"+A;c&&(this.mH=c.fs,c.rtn&&(this.G=c.rtn),this.K?(this.playerState= c.state,c.rti>0&&(this.X=c.rti)):(this.b1=c.mos,this.Zh=c.volume,c.at&&(this.adType=c.at)),c.autonav&&(this.autonav=c.autonav),c.inview!=null&&(this.KU=c.inview),c.size&&(this.Me=c.size),c.playerwidth&&(this.playerWidth=c.playerwidth),c.playerheight&&(this.playerHeight=c.playerheight));this.q5=g.YR(Y.Y);this.Z=Ta(Y.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Z==="all"||this.Z==="once")this.R1=g.YR(Y.AP);this.zs=Y.qz;this.experimentIds=frc(Y.experiments);this.dW=Y.Va;this.qz=Y.Pw;this.region= Y.region;this.userAge=Y.userAge;this.VJ=Y.s$;this.qe=kS();this.sendVisitorIdHeader=Y.sendVisitorIdHeader;this.QJ=Y.S("vss_pings_using_networkless")||Y.S("kevlar_woffle");this.Bu=Y.S("vss_final_ping_send_and_write");this.eX=Y.S("vss_use_send_and_write");this.pageId=Y.pageId;this.fV=Y.S("vss_playback_use_send_and_write");Y.livingRoomAppMode&&(this.livingRoomAppMode=Y.livingRoomAppMode);this.Ix=Y.j&&Y.S("embeds_append_synth_ch_headers");g.ay(Y)&&(this.kE=Y.jX);g.lH(g.Qp(Y))&&this.J.push(1);this.accessToken= g.Za(U);U.Sf[this.Lr]?this.j=U.Sf[this.Lr]:U.Sf.playback&&(this.j=U.Sf.playback);this.adFormat=U.adFormat;this.adQueryId=U.adQueryId;this.autoplay=Gh4(U);this.W&&(this.nU=U.AU&&Mm(U)==="adunit"?!0:!1);this.autonav=U.isAutonav||this.autonav;this.contentVideoId=pk(U);this.clientPlaybackNonce=U.clientPlaybackNonce;this.AP=U.ET;U.J&&(this.Hw=U.J,this.ws=U.Dp);U.mdxEnvironment&&(this.mdxEnvironment=U.mdxEnvironment);this.Y=U.kE;this.Tk=U.Tk;U.T&&(this.Va=U.T.itag,U.j&&U.j.itag!==this.Va&&(this.i$=U.j.itag)); U.Y&&Fk(U.Y)&&(this.offlineDownloadUserChoice="1");this.eventLabel=Mm(U);this.Zf=U.Zh?!1:U.Ie;this.o2=U.Xf;if(Y=jt(U))this.NU=Y;this.sT=U.H_;this.partnerId=U.partnerId;this.eventId=U.eventId;this.playlistId=U.t2||U.playlistId;this.KD=U.KD;this.IJ=U.IJ;this.P7=U.P7;this.Aj=U.Aj;this.subscribed=U.subscribed;this.videoId=U.videoId;this.videoMetadata=U.videoMetadata;this.visitorData=U.visitorData;this.osid=U.osid;this.cq=U.cq;this.referrer=U.referrer;this.Cc=U.Qy||U.Cc;this.qI=U.xY;this.WR=U.WR;this.userGenderAge= U.userGenderAge;this.Ll=U.Ll;this.embedsRct=U.embedsRct;this.embedsRctn=U.embedsRctn;g.ay(this.MI)&&U.mutedAutoplay&&(U.mutedAutoplayDurationMode===2&&U.limitedPlaybackDurationInSeconds===0&&U.endSeconds===0?this.J.push(7):this.J.push(2));U.isEmbedsShortsMode(new g.xn(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.J.push(3);g.UW(U)&&this.J.push(4);this.yJ=U.Uc;U.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=U.compositeLiveIngestionOffsetToken)}; fJS=function(U,Y){var A=U.sendVisitorIdHeader?U.visitorData:void 0;return g.o$(U.MI,U.accessToken).then(function(c){return z$X(U.uri,U.MI,U.pageId,A,c,Y,U.Ix)})}; M_9=function(U,Y){return function(){U.MI.S("html5_simplify_pings")?(U.Y=U.Uv,U.tb=Y(),U.qe=0,U.send()):fJS(U).then(function(A){var c=h$X(U);c.cmt=c.len;c.lact="0";var d=Y().toFixed(3);c.rt=Number(d).toString();c=g.xJ(U.uri,c);U.MI.S("vss_through_gel_double")&&Szv(c);U.QJ?(A==null&&(A={}),U.eX?Cc().sendAndWrite(c,A):Cc().sendThenWrite(c,A)):A?g.tf(c,A):g.OC(c)})}}; h$X=function(U){var Y={ns:U.qz,el:U.eventLabel,cpn:U.clientPlaybackNonce,ver:2,cmt:U.T(U.Y),fmt:U.Va,fs:U.mH?"1":"0",rt:U.T(U.tb),adformat:U.adFormat,content_v:U.contentVideoId,euri:U.zs,lact:U.qe,live:U.NU,cl:(750409904).toString(),mos:U.b1,state:U.playerState,volume:U.Zh};U.subscribed&&(Y.subscribed="1");Object.assign(Y,U.q5);U.Z==="all"?Object.assign(Y,U.R1):U.Z==="once"&&U.W&&Object.assign(Y,U.R1);U.autoplay&&(Y.autoplay="1");U.nU&&(Y.sautoplay="1");U.AP&&(Y.dni="1");!U.K&&U.kE&&(Y.epm=b3v[U.kE]); U.isFinal&&(Y["final"]="1");U.Zf&&(Y.splay="1");U.Tk&&(Y.delay=U.Tk);U.dW&&(Y.hl=U.dW);U.region&&(Y.cr=U.region);U.userGenderAge&&(Y.uga=U.userGenderAge);U.userAge!==void 0&&U.VJ&&(Y.uga=U.VJ+U.userAge);U.Uv!==void 0&&(Y.len=U.T(U.Uv));!U.K&&U.experimentIds.length>0&&(Y.fexp=U.experimentIds.toString());U.G!==null&&(Y.rtn=U.T(U.G));U.Cc&&(Y.feature=U.Cc);U.IJ&&(Y.ctrl=U.IJ);U.P7&&(Y.ytr=U.P7);U.i$&&(Y.afmt=U.i$);U.offlineDownloadUserChoice&&(Y.ODUC=U.offlineDownloadUserChoice);U.Pw&&(Y.lio=U.T(U.Pw)); U.K?(Y.idpj=U.o2,Y.ldpj=U.sT,U.delayThresholdMet&&(Y.dtm="1"),U.X!=null&&(Y.rti=U.T(U.X)),U.Ll&&(Y.ald=U.Ll),U.compositeLiveIngestionOffsetToken&&(Y.clio=U.compositeLiveIngestionOffsetToken)):U.adType!==void 0&&(Y.at=U.adType);U.Me&&(U.W||U.K)&&(Y.size=U.Me);U.W&&U.J.length&&(Y.pbstyle=U.J.join(","));U.KU!=null&&(U.W||U.K)&&(Y.inview=U.T(U.KU));U.K&&(Y.volume=H$(U,g.mk(U.segments,function(c){return c.volume})),Y.st=H$(U,g.mk(U.segments,function(c){return c.startTime})),Y.et=H$(U,g.mk(U.segments,function(c){return c.endTime})), Cx(U.segments,function(c){return c.playbackRate!==1})&&(Y.rate=H$(U,g.mk(U.segments,function(c){return c.playbackRate}))),Cx(U.segments,function(c){return c.Y!=="-"})&&(Y.als=g.mk(U.segments,function(c){return c.Y}).join(",")),Cx(U.segments,function(c){return c.previouslyEnded})&&(Y.pe=g.mk(U.segments,function(c){return""+ +c.previouslyEnded}).join(","))); Y.muted=H$(U,g.mk(U.segments,function(c){return c.muted?1:0})); Cx(U.segments,function(c){return c.visibilityState!==0})&&(Y.vis=H$(U,g.mk(U.segments,function(c){return c.visibilityState}))); Cx(U.segments,function(c){return c.connectionType!==0})&&(Y.conn=H$(U,g.mk(U.segments,function(c){return c.connectionType}))); Cx(U.segments,function(c){return c.T!==0})&&(Y.blo=H$(U,g.mk(U.segments,function(c){return c.T}))); Cx(U.segments,function(c){return!!c.W})&&(Y.blo=g.mk(U.segments,function(c){return c.W}).join(",")); Cx(U.segments,function(c){return!!c.compositeLiveStatusToken})&&(Y.cbs=g.mk(U.segments,function(c){return c.compositeLiveStatusToken}).join(",")); Cx(U.segments,function(c){return c.j!=="-"})&&(Y.cc=g.mk(U.segments,function(c){return c.j}).join(",")); Cx(U.segments,function(c){return c.clipId!=="-"})&&(Y.clipid=g.mk(U.segments,function(c){return c.clipId}).join(",")); if(Cx(U.segments,function(c){return!!c.audioId})){var A="au"; U.W&&(A="au_d");Y[A]=g.mk(U.segments,function(c){return c.audioId}).join(",")}zw()&&U.Hw&&(Y.ctt=U.Hw,Y.cttype=U.ws,Y.mdx_environment=U.mdxEnvironment); U.mA&&(Y.etype=U.ov!==void 0?U.ov:0);U.qI&&(Y.uoo=U.qI);U.livingRoomAppMode&&U.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(Y.clram=p$S[U.livingRoomAppMode]||U.livingRoomAppMode);U.j?Qe4(U,Y):(Y.docid=U.videoId,Y.referrer=U.referrer,Y.ei=U.eventId,Y.of=U.cq,Y.osid=U.osid,Y.vm=U.videoMetadata,U.adQueryId&&(Y.aqi=U.adQueryId),U.autonav&&(Y.autonav="1"),U.playlistId&&(Y.list=U.playlistId),U.Aj&&(Y.ssrt="1"),U.WR&&(Y.upt=U.WR));U.W&&(U.embedsRct&&(Y.rct=U.embedsRct),U.embedsRctn&&(Y.rctn= U.embedsRctn),U.compositeLiveIngestionOffsetToken&&(Y.clio=U.compositeLiveIngestionOffsetToken));U.yJ&&(Y.host_cpn=U.yJ);return Y}; Qe4=function(U,Y){if(Y&&U.j){var A=new Set(["q","feature","mos"]),c=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),d=new Set(["aqi","autonav","list","ssrt","upt"]);U.j.ns==="3pp"&&(Y.ns="3pp");for(var T=g.J(Object.keys(U.j)),E=T.next();!E.done;E=T.next())E=E.value,c.has(E)||A.has(E)||d.has(E)&&!U.j[E]||(Y[E]=U.j[E])}}; H$=function(U,Y){return g.mk(Y,U.T).join(",")}; Szv=function(U){U.indexOf("watchtime")!==-1&&g.r7("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:U}})}; Z33=function(U,Y){U.attestationResponse&&fJS(U).then(function(A){A=A||{};A.method="POST";A.postParams={atr:U.attestationResponse};U.QJ?U.eX?Cc().sendAndWrite(Y,A):Cc().sendThenWrite(Y,A):g.tf(Y,A)})}; G_=function(U){g.p.call(this);this.provider=U;this.J="paused";this.K=NaN;this.G=[10,10,10,40];this.X=this.Z=0;this.Hw=this.jX=this.ov=this.Pw=this.W=!1;this.T=this.j=NaN;this.logger=new g.o6("vss");this.Y=new $E(U)}; nE9=function(U){if(!U.W){U.provider.videoData.Cj===16623&&g.Md(Error("Playback for EmbedPage"));var Y=W$(U,"playback");U.G=O3v(U);aJ9(U.Y);Y.G=we(U);U.T>0&&(Y.Y-=U.T);Y.send();if(U.provider.videoData.FU){Y=U.provider.MI;var A=U.provider.videoData,c={html5:"1",video_id:A.videoId,cpn:A.clientPlaybackNonce,ei:A.eventId,ptk:A.FU,oid:A.F2,ptchn:A.QY,pltype:A.eb,content_v:pk(A)};A.ob&&Object.assign(c,{m:A.ob});Y=g.xJ(Y.ZG+"ptracking",c);mBV(U,Y)}U.provider.videoData.Tk||(gE9(U),yy8(U),U.jf());U.W=!0;U= U.Y;U.Y=U.Je();U.f4=g.FW(U.provider);!(U.W===0&&U.Y<5)&&U.Y-U.W>2&&(U.W=U.Y);U.G=!0}}; O3v=function(U){var Y=U.provider.videoData.Xf,A=U.provider.videoData.H_,c=[10+Y,10,10,40+A-Y,40],d,T=(d=U.provider.videoData.getPlayerResponse())==null?void 0:d.playbackTracking,E=T==null?void 0:T.videostatsScheduledFlushWalltimeSeconds;d=T==null?void 0:T.videostatsDefaultFlushIntervalSeconds;if(!(E&&E.length>0&&d))return U.logger.info("Missing valid scheduled pings config "+E+" "+d),c;Y=[E[0]+Y].concat(g.X(E.slice(1).map(function(L,r){return L-E[r]})),[d+A-Y, d]);return Y.some(function(L){return L<0})?(U.logger.Y(347111855,"Neg vss scheduled pings "+E+" "+d),c):Y}; we=function(U,Y){Y=Y===void 0?NaN:Y;var A=g.FW(U.provider);Y=isNaN(Y)?A:Y;Y=Math.ceil(Y);var c=U.G[U.Z];U.Z+11E3;!(T.length>1)&&T[0].isEmpty()||L||(E.G=we(U,d));E.send();U.X++}},(d-A)*1E3); return U.j=d}; iv=function(U){g.Gw(U.K);U.K=NaN}; DB4=function(U){U.Y.update();U=U.Y;U.segments.length&&U.Y===U.W||v$(U);var Y=U.segments;U.segments=[];return Y}; W$=function(U,Y){var A=uiX(U.provider);Object.assign(A,{state:U.J});Y=new sec(U.provider.videoData,U.provider.MI,Y,A);Y.Y=U.provider.iY.Je();A=U.provider.videoData.clientPlaybackNonce;Y.Y=U.provider.iY.Vx(A);U.provider.videoData.isLivePlayback||(Y.Uv=U.provider.iY.getDuration(A));U.provider.videoData.Y&&(A=U.provider.videoData.Y.tB(Y.Y))&&(Y.Pw=A-Y.Y,U.provider.MI.S("html5_disable_live_dvr_shrink_for_cdm_vss")&&OS(U.provider.videoData)&&(Y.Y+=U.provider.iY.Zm(),Y.Pw-=U.provider.iY.Zm()));Y.tb=g.FW(U.provider); Y.segments=[Vn(U.provider)];return Y}; IJS=function(U,Y){var A=W$(U,"watchtime");KQl(U)&&(A.delayThresholdMet=!0,U.ov=!0);if(U.T>0){for(var c=g.J(Y),d=c.next();!d.done;d=c.next())d=d.value,d.startTime-=U.T,d.endTime-=U.T;A.Y-=U.T}else A.Y=U.Y.Yy();A.segments=Y;return A}; Jy=function(U,Y){var A=qzE(U,!isNaN(U.j));Y&&(U.j=NaN);return A}; qzE=function(U,Y){var A=IJS(U,DB4(U));!isNaN(U.j)&&Y&&(A.X=U.j);return A}; KQl=function(U){var Y;if(Y=U.provider.videoData.isLoaded()&&U.provider.videoData.Tk&&U.W&&!U.ov)Y=U.Y,Y=Y.K+Y.Je()-Y.W>=U.provider.videoData.Tk;return!!Y}; gE9=function(U){U.provider.videoData.youtubeRemarketingUrl&&!U.jX&&(mBV(U,U.provider.videoData.youtubeRemarketingUrl),U.jX=!0)}; yy8=function(U){U.provider.videoData.googleRemarketingUrl&&!U.Hw&&(mBV(U,U.provider.videoData.googleRemarketingUrl),U.Hw=!0)}; Cv8=function(U){if(!U.Ky()&&U.W){U.J="paused";var Y=Jy(U);Y.isFinal=!0;Y.send();U.dispose()}}; Uf3=function(U,Y){if(!U.Ky())if(g.I(Y.state,2)||g.I(Y.state,512)){if(U.J="paused",g.Gg(Y,2)||g.Gg(Y,512))g.Gg(Y,2)&&(U.Y.previouslyEnded=!0),U.W&&(iv(U),Jy(U).send(),U.j=NaN)}else if(g.I(Y.state,8)){U.J="playing";var A=U.W&&isNaN(U.K)?we(U):NaN;if(!isNaN(A)&&(Hh(Y,64)<0||Hh(Y,512)<0)){var c=qzE(U,!1);c.G=A;c.send()}g.Gg(Y,16)&&Y.state.seekSource===58&&(U.Y.previouslyEnded=!0)}else U.J="paused"}; YtX=function(U,Y,A){if(!U.Pw){A||(A=W$(U,"atr"));A.attestationResponse=Y;try{A.send()}catch(c){if(c.message!=="Unknown Error")throw c;}U.Pw=!0}}; mBV=function(U,Y){var A=U.provider.MI;g.o$(U.provider.MI,g.Za(U.provider.videoData)).then(function(c){var d=U.provider.MI.pageId,T=U.provider.MI.sendVisitorIdHeader?U.provider.videoData.visitorData:void 0,E=U.provider.MI.S("vss_pings_using_networkless")||U.provider.MI.S("kevlar_woffle"),L=U.provider.MI.S("allow_skip_networkless");c=z$X(Y,A,d,T,c);LQl(Y,c,{token:U.provider.videoData.J,BD:U.provider.videoData.Dp,mdxEnvironment:U.provider.videoData.mdxEnvironment},A,void 0,E&&!L,!1,!0)})}; AWE=function(){this.endTime=this.startTime=-1;this.j="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.T=0;this.compositeLiveStatusToken=this.W=void 0;this.volume=this.connectionType=0;this.muted=!1;this.Y=this.clipId="-";this.previouslyEnded=!1}; Fi=function(U,Y,A){this.videoData=U;this.MI=Y;this.iY=A;this.Y=void 0}; g.FW=function(U){return cWX(U)()}; cWX=function(U){if(!U.Y){var Y=g.EO(function(c){var d=(0,g.y)();c&&d<=631152E6&&(U.iY.wW("ytnerror",{issue:28799967,value:""+d}),d=(new Date).getTime()+2);return d},U.MI.S("html5_validate_yt_now")),A=Y(); U.Y=function(){return Math.round(Y()-A)/1E3}; U.iY.z7()}return U.Y}; uiX=function(U){var Y=U.iY.Q8()||{};Y.fs=U.iY.dw();Y.volume=U.iY.getVolume();Y.muted=U.iY.isMuted()?1:0;Y.mos=Y.muted;Y.clipid=U.iY.ow();var A;Y.playerheight=((A=U.iY.getPlayerSize())==null?void 0:A.height)||0;var c;Y.playerwidth=((c=U.iY.getPlayerSize())==null?void 0:c.width)||0;U=U.videoData;A={};U.T&&(A.fmt=U.T.itag,U.j&&(U.Me?U.j.itag!==U.T.itag:U.j.itag!=U.T.itag)&&(A.afmt=U.j.itag));A.ei=U.eventId;A.list=U.playlistId;A.cpn=U.clientPlaybackNonce;U.videoId&&(A.v=U.videoId);U.Aw&&(A.infringe=1); (U.Zh?0:U.Ie)&&(A.splay=1);(c=jt(U))&&(A.live=c);U.AU&&(A.sautoplay=1);U.Vz&&(A.autoplay=1);U.KD&&(A.sdetail=U.KD);U.partnerId&&(A.partnerid=U.partnerId);U.osid&&(A.osid=U.osid);U.Cv&&(A.cc=g.ZhY(U.Cv));return Object.assign(Y,A)}; w$V=function(U){var Y=whS();if(Y)return dfl[Y]||dfl.other;if(g.Rd(U.MI)){U=navigator.userAgent;if(/[Ww]ireless[)]/.test(U))return 3;if(/[Ww]ired[)]/.test(U))return 30}return 0}; Vn=function(U){var Y=new AWE,A;Y.j=((A=uiX(U).cc)==null?void 0:A.toString())||"-";Y.playbackRate=U.iY.getPlaybackRate();A=U.iY.getVisibilityState();A!==0&&(Y.visibilityState=A);U.MI.Ly&&(Y.T=1);Y.W=U.videoData.IT;Y.compositeLiveStatusToken=U.videoData.compositeLiveStatusToken;A=U.iY.getAudioTrack();A.b$&&A.b$.id&&A.b$.id!=="und"&&(Y.audioId=A.b$.id);Y.connectionType=w$V(U);Y.volume=U.iY.getVolume();Y.muted=U.iY.isMuted();Y.clipId=U.iY.ow()||"-";Y.Y=U.videoData.IC||"-";return Y}; g.j_=function(U,Y){g.p.call(this);var A=this;this.provider=U;this.j=!1;this.W=new Map;this.g1=new g.z3;this.o5={HRW:function(){return A.qoe}, eMW:function(){return A.Y}, NzW:function(){return A.T}}; this.provider.videoData.Bp()&&!this.provider.videoData.SL&&(this.Y=new G_(this.provider),this.Y.T=this.provider.videoData.Bu/1E3,g.Z(this,this.Y),this.qoe=new g.oe(this.provider,Y),g.Z(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.M7=this.provider.videoData.clientPlaybackNonce)&&this.W.set(this.M7,this.Y));if(U.MI.playerCanaryState==="canary"||U.MI.playerCanaryState==="holdback")this.T=new Ay(this.provider),g.Z(this,this.T)}; TVE=function(U){return!!U.Y&&!!U.qoe}; NB=function(U){return g.FW(U.provider)}; ty=function(U){U.T&&qV3(U.T);U.qoe&&X$l(U.qoe)}; EI9=function(U){if(U.qoe){U=U.qoe;for(var Y=U.provider.videoData,A=U.provider.MI,c=g.J(A.yP),d=c.next();!d.done;d=c.next())re(U,d.value);if(U.provider.S("html5_enable_qoe_cat_list"))for(c=g.J(Y.RV),d=c.next();!d.done;d=c.next())re(U,d.value);else Y.yP&&re(U,U.provider.videoData.yP);Y.Sc()&&(c=Y.Y,$p(Y)&&re(U,"manifestless"),c&&x2(c)&&re(U,"live-segment-"+x2(c).toFixed(1)));Lk(Y)?re(U,"sabr"):U.eK(Gk(Y));if(m9(Y)||Y.b9())Y.b9()&&re(U,"ssa"),re(U,"lifa");OS(Y)&&re(U,"cdm");Y.gatewayExperimentGroup&& (c=Y.gatewayExperimentGroup,c==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?c="spkadtrt":c==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(c="spkadctrl"),re(U,c));A.Pw!=="yt"&&U.Y.set("len",[Y.lengthSeconds.toFixed(2)]);Y.cotn&&!y5(Y)&&U.B6(!0);A.O3()&&(Y=H3c())&&U.wW("cblt",{m:Y});if(A.S("html5_log_screen_diagonal")){A=U.wW;var T;Y=((T=window.H5vccScreen)==null?0:T.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;A.call(U,"cbltdiag",{v:Y})}}}; oI8=function(U){if(U.provider.iY.OO()){if(U.j)return;U.j=!0}U.Y&&nE9(U.Y);if(U.T){U=U.T;var Y=g.FW(U.provider);U.Y<0&&(U.Y=Y,U.delay.start());U.T=Y;U.j=Y}}; zC9=function(U,Y){U.Y&&(U=U.Y,Y===58?U.Y.update():U.W&&(iv(U),Jy(U).send(),U.j=NaN))}; LeS=function(U,Y){if(g.Gg(Y,1024)||g.Gg(Y,512)||g.Gg(Y,4)){if(U.T){var A=U.T;A.T>=0||(A.Y=-1,A.delay.stop())}U.qoe&&(A=U.qoe,A.Z||(A.W=-1))}if(U.provider.videoData.enableServerStitchedDai&&U.M7){var c;(c=U.W.get(U.M7))==null||Uf3(c,Y)}else U.Y&&Uf3(U.Y,Y);if(U.qoe){c=U.qoe;A=Y.state;var d=g.FW(c.provider),T=c.getPlayerState(A);k_3(c,d,T,A.seekSource||void 0);T=A.Pb;g.I(A,128)&&T&&(T.dU=T.dU||"",Nel(c,d,T.errorCode,T.oH,T.dU));(g.I(A,2)||g.I(A,128))&&c.reportStats(d);A.isPlaying()&&!c.Z&&(c.W>=0&& c.Y.set("user_intent",[c.W.toString()]),c.Z=!0);FQV(c)}U.T&&(c=U.T,CGV(c),c.playerState=Y.state,c.T>=0&&g.Gg(Y,16)&&c.seekCount++,Y.state.isError()&&c.send());U.provider.iY.OO()&&(U.g1=Y.state)}; rWX=function(U){U.T&&U.T.send();if(U.qoe){var Y=U.qoe;if(Y.j){Y.g1==="PL"&&(Y.g1="N");var A=g.FW(Y.provider);g.Ez(Y,A,"vps",[Y.g1]);Y.Z||(Y.W>=0&&Y.Y.set("user_intent",[Y.W.toString()]),Y.Z=!0);Y.provider.MI.O3()&&Y.wW("finalized",{});Y.eX=!0;Y.reportStats(A)}}if(U.provider.videoData.enableServerStitchedDai)for(Y=g.J(U.W.values()),A=Y.next();!A.done;A=Y.next())Cv8(A.value);else U.Y&&Cv8(U.Y);U.dispose()}; llX=function(U,Y){U.Y&&YtX(U.Y,Y)}; PPc=function(U){if(!U.Y)return null;var Y=W$(U.Y,"atr");return function(A){U.Y&&YtX(U.Y,A,Y)}}; VGE=function(U,Y,A,c){A.adFormat=A.mH;var d=Y.iY;Y=new G_(new Fi(A,Y.MI,{getDuration:function(){return A.lengthSeconds}, getCurrentTime:function(){return d.getCurrentTime()}, Je:function(){return d.Je()}, Vx:function(){return d.Vx()}, OO:function(){return d.OO()}, Nc:function(){return d.Nc()}, getPlayerSize:function(){return d.getPlayerSize()}, getAudioTrack:function(){return A.getAudioTrack()}, getPlaybackRate:function(){return d.getPlaybackRate()}, aH:function(){return d.aH()}, getVisibilityState:function(){return d.getVisibilityState()}, K3:function(){return d.K3()}, Q8:function(){return d.Q8()}, getVolume:function(){return d.getVolume()}, isMuted:function(){return d.isMuted()}, dw:function(){return d.dw()}, ow:function(){return d.ow()}, getProximaLatencyPreference:function(){return d.getProximaLatencyPreference()}, z7:function(){d.z7()}, wW:function(T,E){d.wW(T,E)}, Lk:function(){return d.Lk()}, Zm:function(){return d.Zm()}})); Y.T=c;g.Z(U,Y);return Y}; $f3=function(){this.zc=0;this.W=this.cU=this.DP=this.T=NaN;this.Y={};this.bandwidthEstimate=NaN}; e_=function(U,Y,A){g.p.call(this);var c=this;this.MI=U;this.iY=Y;this.T=A;this.Y=new Map;this.M7="";this.o5={C2:function(){return Array.from(c.Y.keys())}}}; vIV=function(U,Y){U.Y.has(Y)&&(rWX(U.Y.get(Y)),U.Y.delete(Y))}; HyS=function(){this.Y=g.oK;this.array=[]}; Wec=function(U,Y,A){var c=[];for(Y=GS9(U,Y);YA)break}return c}; weS=function(U,Y){var A=[];U=g.J(U.array);for(var c=U.next();!c.done&&!(c=c.value,c.contains(Y)&&A.push(c),c.start>Y);c=U.next());return A}; iy4=function(U){return U.array.slice(GS9(U,0x7ffffffffffff),U.array.length)}; GS9=function(U,Y){U=xz(U.array,function(A){return Y-A.start||1}); return U<0?-(U+1):U}; JW4=function(U,Y){var A=NaN;U=g.J(U.array);for(var c=U.next();!c.done;c=U.next())if(c=c.value,c.contains(Y)&&(isNaN(A)||c.endY&&(isNaN(A)||c.startU.mediaTime+U.K&&Y1)U.j=!0;if((d===void 0?0:d)||isNaN(U.T))U.T=Y;if(U.Y)Y!==U.mediaTime&&(U.Y=!1);else if(Y>0&&U.mediaTime===Y){d=1500;if(U.MI.S("html5_buffer_underrun_transition_fix")){d=g.H_(U.MI.experiments,"html5_min_playback_advance_for_steady_state_secs");var T=g.H_(U.MI.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");d=d>0&&T>0&&Math.abs(Y-U.T)(c||!U.j?d:400)}U.mediaTime=Y;U.W=A;return!1}; BVS=function(U,Y){this.videoData=U;this.Y=Y}; XeX=function(U,Y,A){return Y.aC(A).then(function(){return xG(new BVS(Y,Y.W))},function(c){c instanceof Error&&g.Md(c); var d=h5('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),T=Mx('audio/mp4; codecs="mp4a.40.2"'),E=d||T,L=Y.isLivePlayback&&!g.za(U.K,!0);c="fmt.noneavailable";L?c="html5.unsupportedlive":E||(c="html5.missingapi");E=L||!E?2:1;d={buildRej:"1",a:Y.xO(),d:!!Y.KU,drm:Y.h8(),f18:Y.fV.indexOf("itag=18")>=0,c18:d};Y.Y&&(Y.h8()?(d.f142=!!Y.Y.Y["142"],d.f149=!!Y.Y.Y["149"],d.f279=!!Y.Y.Y["279"]):(d.f133=!!Y.Y.Y["133"],d.f140=!!Y.Y.Y["140"],d.f242=!!Y.Y.Y["242"]),d.cAAC=T,d.cAVC=Mx('video/mp4; codecs="avc1.42001E"'), d.cVP9=Mx('video/webm; codecs="vp9"'));Y.K&&(d.drmsys=Y.K.keySystem,T=0,Y.K.Y&&(T=Object.keys(Y.K.Y).length),d.drmst=T);return new a9(c,d,E)})}; kE=function(U){this.data=window.Float32Array?new Float32Array(U):Array(U);this.T=this.Y=U-1}; kSX=function(U){return U.data[U.Y]||0}; RCS=function(U){this.K=U;this.W=this.T=0;this.j=new kE(50)}; ae=function(U,Y,A){g.l6.call(this);this.videoData=U;this.experiments=Y;this.K=A;this.T=[];this.Ga=0;this.W=!0;this.j=!1;this.J=0;A=new al8;U.latencyClass==="ULTRALOW"&&(A.J=!1);U.i$?A.W=3:g.kp(U)&&(A.W=2);U.latencyClass==="NORMAL"&&(A.K=!0);A.Pw=Y.lY("html5_refactor_decouple_liveness");g.H_(Y,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.H_(Y,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||U.latencyClass!=="LOW"&&U.latencyClass!=="ULTRALOW"||(A.K=!0);var c=g.H_(Y, "html5_liveness_drift_proxima_override");if(Gk(U)!==0&&c){A.Y=c;var d;((d=U.Y)==null?0:ugv(d))&&A.Y--}Lk(U)&&Y.lY("html5_sabr_parse_live_metadata_playback_boundaries")&&(A.Hw=!0);if(g.mm("trident/")||g.mm("edge/"))d=g.H_(Y,"html5_platform_minimum_readahead_seconds")||3,A.j=Math.max(A.j,d);g.H_(Y,"html5_minimum_readahead_seconds")&&(A.j=g.H_(Y,"html5_minimum_readahead_seconds"));g.H_(Y,"html5_maximum_readahead_seconds")&&(A.X=g.H_(Y,"html5_maximum_readahead_seconds"));Y.lY("html5_force_adaptive_readahead")&& (A.J=!0);if(d=g.H_(Y,"html5_liveness_drift_chunk_override"))A.Y=d;vT(U)&&(A.Y=(A.Y+1)/5,U.latencyClass==="LOW"&&(A.Y*=2));if(U.latencyClass==="ULTRALOW"||U.latencyClass==="LOW")A.Z=g.H_(Y,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,A.G=g.H_(Y,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=A;this.G=this.policy.W!==1;this.Y=Re(this,xfX(this,isNaN(U.liveChunkReadahead)?3:U.liveChunkReadahead,U))}; sRS=function(U,Y){if(Y)return Y=U.videoData,Y=xfX(U,isNaN(Y.liveChunkReadahead)?3:Y.liveChunkReadahead,Y),Re(U,Y);if(U.T.length){if(Math.min.apply(null,U.T)>1)return Re(U,U.Y-1);if(U.policy.J)return Re(U,U.Y+1)}return U.Y}; flX=function(U,Y){if(!U.T.length)return!1;var A=U.Y;U.Y=sRS(U,Y===void 0?!1:Y);if(Y=A!==U.Y)U.T=[],U.Ga=0;return Y}; xE=function(U,Y){return Y>=U.bN()-hC8(U)}; Stv=function(U,Y,A){Y=xE(U,Y);A||Y?Y&&(U.W=!0):U.W=!1;U.G=U.policy.W===2||U.policy.W===3&&U.W}; MGX=function(U,Y){Y=xE(U,Y);U.j!==Y&&U.publish("livestatusshift",Y);U.j=Y}; hC8=function(U){var Y=U.policy.Y;U.j||(Y=Math.max(Y-1,0));return Y*sz(U)}; xfX=function(U,Y,A){A.i$&&Y--;vT(A)&&(Y=1);if(Gk(A)!==0&&(U=g.H_(U.experiments,"html5_live_chunk_readahead_proxima_override"))){Y=U;var c;((c=A.Y)==null?0:ugv(c))&&Y++}return Y}; sz=function(U){return U.videoData.Y?x2(U.videoData.Y)||5:5}; Re=function(U,Y){Y=Math.max(Math.max(1,Math.ceil(U.policy.j/sz(U))),Y);return Math.min(Math.min(8,Math.floor(U.policy.X/sz(U))),Y)}; al8=function(){this.j=0;this.X=Infinity;this.J=!0;this.T=this.Y=2;this.W=1;this.K=!1;this.G=10;this.Hw=!1;this.Z=1;this.Pw=!1}; S_=function(U){g.p.call(this);this.iY=U;this.Y=0;this.T=null;this.J=this.j=0;this.W={};this.MI=this.iY.L();this.K=new g.IM(this.I2,1E3,this);this.Ly=new f3({delayMs:g.H_(this.MI.experiments,"html5_seek_timeout_delay_ms")});this.jX=new f3({delayMs:g.H_(this.MI.experiments,"html5_long_rebuffer_threshold_ms")});this.qI=hy(this,"html5_seek_set_cmt");this.Uv=hy(this,"html5_seek_jiggle_cmt");this.yJ=hy(this,"html5_seek_new_elem");this.Tk=hy(this,"html5_unreported_seek_reseek");this.Hw=hy(this,"html5_long_rebuffer_jiggle_cmt"); this.ov=new f3({delayMs:2E4});this.kE=hy(this,"html5_seek_new_elem_shorts");this.Zf=hy(this,"html5_seek_new_media_source_shorts_reuse");this.dW=hy(this,"html5_seek_new_media_element_shorts_reuse");this.eX=hy(this,"html5_reseek_after_time_jump");this.Z=hy(this,"html5_gapless_handoff_close_end_long_rebuffer");this.X=hy(this,"html5_gapless_slow_seek");this.Pw=hy(this,"html5_gapless_slow_start");this.G=hy(this,"html5_ads_preroll_lock_timeout");this.VJ=new f3({delayMs:g.H_(this.MI.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,pQ:!this.MI.S("html5_report_slow_ads_as_error")});this.i$=new f3({delayMs:g.H_(this.MI.experiments,"html5_skip_slow_ad_delay_ms")||5E3,pQ:!this.MI.S("html5_skip_slow_buffering_ad")});this.ws=new f3({delayMs:g.H_(this.MI.experiments,"html5_slow_start_timeout_delay_ms")});this.QJ=hy(this,"html5_slow_start_no_media_source");g.Z(this,this.K)}; hy=function(U,Y){var A=g.H_(U.MI.experiments,Y+"_delay_ms");U=U.MI.S(Y+"_cfl");return new f3({delayMs:A,pQ:U})}; by3=function(U,Y){U.Y=Y}; MB=function(U,Y,A,c,d,T,E,L){Y.test(A)?(U.Ne(d,Y,E),Y.pQ||T()):(Y.pG&&Y.T&&!Y.j?(A=(0,g.y)(),c?Y.Y||(Y.Y=A):Y.Y=0,T=!c&&A-Y.T>Y.pG,A=Y.Y&&A-Y.Y>Y.ew||T?Y.j=!0:!1):A=!1,A&&(L=Object.assign({},U.i9(Y),L),L.wn=E,L.we=d,L.wsuc=c,U.iY.wW("workaroundReport",L),c&&(Y.reset(),U.W[d]=!1)))}; f3=function(U){var Y=U===void 0?{}:U;U=Y.delayMs===void 0?0:Y.delayMs;var A=Y.ew===void 0?1E3:Y.ew;var c=Y.pG===void 0?3E4:Y.pG;Y=Y.pQ===void 0?!1:Y.pQ;this.Y=this.T=this.W=this.startTimestamp=0;this.j=!1;this.K=Math.ceil(U/1E3);this.ew=A;this.pG=c;this.pQ=Y}; Oy3=function(U){g.p.call(this);var Y=this;this.iY=U;this.G=this.Y=this.loader=this.mediaElement=this.playbackData=null;this.W=0;this.K=this.Hw=this.j=null;this.ov=!1;this.ws=0;this.Pw=!1;this.timestampOffset=0;this.Z=!0;this.yJ=0;this.Zf=this.AP=!1;this.J=0;this.qI=!1;this.jX=0;this.MI=this.iY.L();this.videoData=this.iY.getVideoData();this.policy=new peS;this.X=new S_(this.iY);this.VJ=this.kE=this.Uv=this.T=NaN;this.eX=new g.IM(function(){QRv(Y,!1)},2E3); this.Tk=new g.IM(function(){bv(Y)}); this.dW=new g.IM(function(){Y.ov=!0;ZyX(Y,{})}); this.i$=NaN;this.QJ=new g.IM(function(){var A=Y.MI.mA;A.Y+=1E4/36E5;A.Y-A.W>1/6&&(CUl(A),A.W=A.Y);Y.QJ.start()},1E4); g.Z(this,this.X);g.Z(this,this.eX);g.Z(this,this.dW);g.Z(this,this.Tk);g.Z(this,this.QJ)}; yWv=function(U,Y){U.playbackData=Y;U.videoData.isLivePlayback&&(U.G=new RCS(function(){a:{if(U.playbackData&&U.playbackData.Y.Y){if($p(U.videoData)&&U.loader){var A=U.loader.bD.Y4()||0;break a}if(U.videoData.Y){A=U.videoData.Y.jX;break a}}A=0}return A}),U.Y=new ae(U.videoData,U.MI.experiments,function(){return U.Sl(!0)})); p3(U.iY)?(Y=mfX(U),Y.M2?(Lk(U.videoData)&&U.hc(Y.M2,Y.startSeconds),U.W=Y.startSeconds):Y.startSeconds>0&&U.seekTo(Y.startSeconds,{Qa:"seektimeline_startPlayback",seekSource:15}),U.Z=!1):gIl(U)||(U.W=U.W||(g.KD(U.videoData)?0:U.videoData.startSeconds)||0)}; DfX=function(U,Y){(U.loader=Y)?nIS(U,!0):Qn(U)}; IlX=function(U,Y){g.uQ(U.X.K);U.S("html5_exponential_memory_for_sticky")&&(Y.state.isPlaying()?g.uQ(U.QJ):U.QJ.stop());if(U.mediaElement)if(Y.oldState.state===8&&vD(Y.state)&&Y.state.isBuffering()){Y=U.mediaElement.getCurrentTime();var A=U.mediaElement.Hb();var c=U.S("manifestless_post_live_ufph")||U.S("manifestless_post_live")?Pd(A,Math.max(Y-3.5,0)):Pd(A,Y-3.5);c>=0&&Y>A.end(c)-1.1&&c+10?(ZJ(U.iY,U.getCurrentTime()+U.videoData.limitedPlaybackDurationInSeconds),U.Zf=!0):U.videoData.isLivePlayback&&U.videoData.endSeconds>0&&(ZJ(U.iY,U.getCurrentTime()+U.videoData.endSeconds),U.Zf=!0))}; Kec=function(U,Y){var A=U.getCurrentTime(),c=U.isAtLiveHead(A);if(U.G&&c){var d=U.G;if(d.Y&&!(A>=d.T&&A50&&d.T.shift())),d=U.Y,Stv(d,A,Y===void 0?!0:Y),MGX(d,A),Y&&QRv(U,!0));c!==U.AP&&(Y=U.getCurrentTime()-U.VJ<=500,A=U.ws>=1E3,Y||A||(Y=U.iY.zk(),Y.qoe&&(Y=Y.qoe,A=g.FW(Y.provider), g.Ez(Y,A,"lh",[c?"1":"0"])),U.AP=c,U.ws++,U.VJ=U.getCurrentTime()))}; QRv=function(U,Y){if(U.Y){var A=U.Y;var c=U.getCurrentTime(),d=A.bN();var T=A.policy.T;A.j||(T=Math.max(T-1,0));T*=sz(A);c>=d-T||!A.mp()?A=c0&&d4(U.mediaElement)>0&&(U.T=Oz(U,U.T,!1)),!U.mediaElement||!ch3(U))U.Tk.start(750);else if(!isNaN(U.T)&&isFinite(U.T)){var Y=U.kE-(U.T-U.timestampOffset);if(!(Y===0||Math.abs(Y)<.005))if(Y=U.mediaElement.getCurrentTime()-U.T,Math.abs(Y)<=U.yJ||Math.abs(Y)<.005)d59(U);else{if(U.videoData.w3)U.videoData.w3=!1;else if(!V5(U.videoData)&&U.T>=U.Sl()-.1){U.T=U.Sl();U.j.resolve(U.Sl()); U.iY.j$();return}try{var A=U.T-U.timestampOffset;U.mediaElement.seekTo(A);U.X.Y=A;U.kE=A;U.W=U.T;U.Pw=!1}catch(c){}}}}; ch3=function(U){if(!U.mediaElement||U.mediaElement.Ux()===0||U.mediaElement.hasError())return!1;var Y=U.mediaElement.getCurrentTime()>0;if(!(U.videoData.W&&U.videoData.W.Y||U.videoData.isLivePlayback)&&U.videoData.h8())return Y;if(U.T>=0){var A=U.mediaElement.K7();if(A.length||!Y)return Vd(A,U.T-U.timestampOffset)}return Y}; d59=function(U){U.j&&(U.j.resolve(U.mediaElement.getCurrentTime()),U.X.T=null)}; YxX=function(U,Y){U.K&&(U.K.resolve(Y),U.iY.tp(),U.MI.O3()||AhX(U))&&(Y=U.i9(),Y["native"]=""+ +U.Pw,Y.otgt=""+(U.T+U.timestampOffset),U.iY.wW("seekEnd",Y));Qn(U)}; Qn=function(U){U.T=NaN;U.kE=NaN;U.j=null;U.Hw=null;U.K=null;U.ov=!1;U.Pw=!1;U.yJ=0;U.eX.stop();U.dW.stop()}; oVl=function(U,Y,A){var c=U.mediaElement,d=Y.type;switch(d){case "seeking":var T=c.getCurrentTime()+U.timestampOffset;if(!U.j||U.Pw&&T!==U.T){var E=!!U.j;U.j=new AX;U.j.then(function(r){YxX(U,r)},function(){Qn(U)}); if(U.videoData.isAd()){var L;UbX({adCpn:U.videoData.clientPlaybackNonce,contentCpn:(L=U.videoData.Uc)!=null?L:""},Y.Y)}U.kE=T;by3(U.X,c.getCurrentTime());U.seekTo(T,{seekSource:104,Qa:"seektimeline_mediaElementEvent"});A&&THc(A,T*1E3,!!E);U.Pw=!0}break;case "seeked":d59(U);break;case "loadedmetadata":p3(U.iY)||EVV(U);bv(U);break;case "progress":bv(U);break;case "pause":U.J=U.getCurrentTime()}U.J&&((d==="play"||d==="playing"||d==="timeupdate"||d==="progress")&&U.getCurrentTime()-U.J>10&&(U.S("html5_enable_new_media_element_puase_jump")? (U.iY.Ne(new a9("qoe.restart",{reason:"pauseJump"})),U.iY.QU(),U.seekTo(U.J,{Qa:"pauseJumpNewElement"})):U.seekTo(U.J,{Qa:"pauseJump"})),d!=="pause"&&d!=="play"&&d!=="playing"&&d!=="progress"&&(U.J=0))}; zic=function(U){return(Rp(U.videoData)||!!U.videoData.liveUtcStartSeconds)&&(!!U.videoData.liveUtcStartSeconds||gIl(U))&&!!U.videoData.Y}; gIl=function(U){return!!U.videoData.startSeconds&&isFinite(U.videoData.startSeconds)&&U.videoData.startSeconds>1E9}; mfX=function(U){var Y=0,A=NaN,c="";if(!U.Z)return{startSeconds:Y,M2:A,source:c};U.videoData.jX?Y=U.videoData.QJ:V5(U.videoData)&&(Y=Infinity);if(g.kp(U.videoData))return{startSeconds:Y,M2:A,source:c};U.videoData.startSeconds?(c="ss",Y=U.videoData.startSeconds):U.videoData.o2&&(c="stss",Y=U.videoData.o2);U.videoData.liveUtcStartSeconds&&(A=U.videoData.liveUtcStartSeconds);if(isFinite(Y)&&(Y>U.Sl()||Y U.Sl()||A0?(c.onesie="0",U.handleError(new a9("html5.missingapi",c)),!1):!0}; Gqv=function(U){var Y=Qj();Z3(Y,U);return g.zL(Y,NDX())}; $5X=function(U,Y){var A,c,d,T,E,L,r,l,P,V,v,H,G,F,N,e,B,f,h,Q,K,D,c3,TV,U9,LY;return g.S(function(q){if(q.T==1)return Y.fetchType="onesie",A=fh3(Y,U.getPlayerSize(),U.getVisibilityState()),c=new lG(U,A),g.x(q,c.fetch(),2);d=q.Y;T={player_response:d};Y.loading=!1;E=U.df.tQ;if(c.Ig){L=g.J(c.Ig.entries());for(r=L.next();!r.done;r=L.next())l=r.value,P=g.J(l),V=P.next().value,v=P.next().value,H=V,G=v,E.Y.set(H,G,180),H===Y.videoId&&(F=G.V$(),Y.Kn=F);E.CD=c}N=g.J(c.Mg.entries());for(e=N.next();!e.done;e= N.next())B=e.value,f=g.J(B),h=f.next().value,Q=f.next().value,K=h,D=Q,E.T.set(K,D,180);g.uN(Y,T,!0);if(Y.loading||De(Y))return q.return(Promise.resolve());E.Y.removeAll();E.T.removeAll();Y.Kn=[];c3={};TV="onesie.response";U9=0;Y.errorCode?(TV="auth",c3.ec=Y.errorCode,c3.ed=Y.errorDetail,c3.es=Y.Zp||"",U9=2):(c3.successButUnplayable="1",c3.disposed=""+ +Y.Ky(),c3.afmts=""+ +/adaptiveFormats/.test(d),c3.cpn=Y.clientPlaybackNonce);LY=new a9(TV,c3,U9);return q.return(Promise.reject(LY))})}; PjS=function(U,Y){var A,c,d,T,E,L,r,l,P,V,v;return g.S(function(H){switch(H.T){case 1:A=Y.isAd(),c=!A,d=A?1:3,T=0;case 2:if(!(T0)){H.uY(5);break}return g.x(H,b7(5E3),6);case 6:E=new g.Do("Retrying OnePlatform request",{attempt:T}),g.Md(E);case 5:return g.J3(H,7),g.x(H,WNS(U,Y),9);case 9:return H.return();case 7:L=g.XE(H);r=s7(L);l=r.errorCode;P=U.L();V=P.S("html5_use_network_error_code_enums")?401:"401";c&&l==="manifest.net.badstatus"&&r.details.rc===V&&(c=!1,T===d-1&&(d+= 1));if(T===d-1)return v=wgv(A,r.details),v.details.backend="op",v.details.originec=l,H.return(Promise.reject(v));if(l==="auth"||l==="manifest.net.retryexhausted")return H.return(Promise.reject(r));U.handleError(r);if(xP(r.severity)){H.uY(4);break}case 3:T++;H.uY(2);break;case 4:return H.return(Promise.reject(wgv(A,{backend:"op"})))}})}; WNS=function(U,Y){function A(TV){TV.readyState===2&&U.pU("ps_c")} var c,d,T,E,L,r,l,P,V,v,H,G,F,N,e,B,f,h,Q,K,D,c3;return g.S(function(TV){switch(TV.T){case 1:Y.fetchType="gp";c=U.L();d=g.o$(c,g.Za(Y));if(!d.Y){T=d.getValue();TV.uY(2);break}return g.x(TV,d.Y,3);case 3:T=TV.Y;case 2:return E=T,L=Gqv(E),r=fh3(Y,U.getPlayerSize(),U.getVisibilityState()),l=g.AL(iOc),P=g.Za(Y),V=(0,g.y)(),v=!1,H="empty",G=0,U.pU("psns"),F={B4:A},g.x(TV,g.KK(L,r,l,void 0,F),4);case 4:N=TV.Y;U.pU("psnr");if(Y.Ky())return TV.return();N?"error"in N&&N.error?(v=!0,H="esf:"+N.error.message, G=N.error.code):N.errorMetadata&&(v=!0,H="its",G=N.errorMetadata.status):v=!0;if(v)return e=0,B=((0,g.y)()-V).toFixed(),f={},f=c.S("html5_use_network_error_code_enums")?{backend:"op",rc:G,rt:B,reason:H,has_kpt:Y.tb?"1":"0",has_mdx_env:Y.mdxEnvironment?"1":"0",has_omit_key_flag:g.DQ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:c.pageId?"1":"0",has_token:P?"1":"0",has_vvt:Y.eX?"1":"0",is_mdx:Y.isMdxPlayback?"1":"0",mdx_ctrl:Y.IJ||"",token_eq:P===g.Za(Y)?"1":"0"}:{backend:"op", rc:""+G,rt:B,reason:H,has_kpt:Y.tb?"1":"0",has_mdx_env:Y.mdxEnvironment?"1":"0",has_omit_key_flag:g.DQ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:c.pageId?"1":"0",has_token:P?"1":"0",has_vvt:Y.eX?"1":"0",is_mdx:Y.isMdxPlayback?"1":"0",mdx_ctrl:Y.IJ||"",token_eq:P===g.Za(Y)?"1":"0"},h="manifest.net.connect",G===429?(h="auth",e=2):G>200&&(h="manifest.net.badstatus",G===400&&(e=2)),TV.return(Promise.reject(new a9(h,f,e)));Y.loading=!1;g.uN(Y,{raw_player_response:N},!0); Q=N;g.M0(Y.L())&&Q&&Q.trackingParams&&pJ(Q.trackingParams);if(Y.errorCode)return K={ec:Y.errorCode,ed:Y.errorDetail,es:Y.Zp||""},TV.return(Promise.reject(new a9("auth",K,2)));if(!Y.loading&&!De(Y))return D=Y.isAd()?"auth":"manifest.net.retryexhausted",c3=Y.isAd()?2:1,TV.return(Promise.reject(new a9(D,{successButUnplayable:"1",hasMedia:g.ti(Y)?"1":"0"},c3)));g.i8(TV)}})}; lxX=function(U,Y,A){function c(G){G=s7(G);if(xP(G.severity))return Promise.reject(G);U.handleError(G);return!1} function d(){return!0} var T,E,L,r,l,P,V,v,H;return g.S(function(G){switch(G.T){case 1:var F=U.L();U.getPlayerSize();U.getVisibilityState();U.isFullscreen();if(Y.partnerId===38&&F.playerStyle==="books")F=Y.videoId.indexOf(":"),F=g.xJ("//play.google.com/books/volumes/"+Y.videoId.slice(0,F)+"/content/media",{aid:Y.videoId.slice(F+1),sig:Y.g8X});else if(Y.partnerId===30&&F.playerStyle==="docs")F=g.xJ("https://docs.google.com/get_video_info",{docid:Y.videoId,authuser:Y.PP,authkey:Y.WYT,eurl:F.qz});else if(Y.partnerId===33&& F.playerStyle==="google-live")F=g.xJ("//google-liveplayer.appspot.com/get_video_info",{key:Y.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+F.Pw);T=F;L=(E=Y.isAd())?1:3;r=0;case 2:if(!(r0)){G.uY(5);break}return g.x(G,b7(5E3),6);case 6:P={playerretry:r,playerretrysrc:A},E||(P.recover="embedded"),l=Es(T,P);case 5:return g.x(G,JhX(Y,l).then(d,c),7);case 7:if(V=G.Y)return G.return();r++;G.uY(2);break;case 4:v=E?"auth":"manifest.net.retryexhausted";H= E?2:1;if(!E&&Math.random()<1E-4)try{g.Md(new g.Do("b/152131571",btoa(T)))}catch(N){}return G.return(Promise.reject(new a9(v,{backend:"gvi"},H)))}})}; JhX=function(U,Y){function A(N){return c(N.xhr)} function c(N){if(!U.Ky()){N=N?N.status:-1;var e=0,B=((0,g.y)()-P).toFixed();B=d.S("html5_use_network_error_code_enums")?{backend:"gvi",rc:N,rt:B}:{backend:"gvi",rc:""+N,rt:B};var f="manifest.net.connect";N===429?(f="auth",e=2):N>200&&(f="manifest.net.badstatus",N===400&&(e=2));return Promise.reject(new a9(f,B,e))}} var d,T,E,L,r,l,P,V,v,H,G,F;return g.S(function(N){if(N.T==1){U.fetchType="gvi";d=U.L();var e={};U.TL&&(e.ytrext=U.TL);(L=g.qF(e)?void 0:e)?(T={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:L},E=Es(Y,{action_display_post:1})):(T={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},E=Y);r={};d.sendVisitorIdHeader&&U.visitorData&&(r["X-Goog-Visitor-Id"]=U.visitorData);(l=Ta(d.experiments,"debug_sherlog_username"))&&(r["X-Youtube-Sherlog-Username"]=l);Object.keys(r).length> 0&&(T.headers=r);P=(0,g.y)();return g.x(N,WM(Xm,E,T).then(void 0,A),2)}V=N.Y;if(!V||!V.responseText)return N.return(c(V));U.loading=!1;v=Af(V.responseText);g.uN(U,v,!0);if(U.errorCode)return H={ec:U.errorCode,ed:U.errorDetail,es:U.Zp||""},N.return(Promise.reject(new a9("auth",H,2)));if(!U.loading&&!De(U))return G=U.isAd()?"auth":"manifest.net.retryexhausted",F=U.isAd()?2:1,N.return(Promise.reject(new a9(G,{successButUnplayable:"1"},F)));g.i8(N)})}; wgv=function(U,Y){return new a9(U?"auth":"manifest.net.retryexhausted",Y,U?2:1)}; DJ=function(U,Y,A){A=A===void 0?!1:A;var c,d,T,E;g.S(function(L){if(L.T==1){c=U.L();if(A&&(!g.YQ(c)||Mm(Y)!=="embedded")||Y.PT||Mm(Y)!=="adunit"&&(g.Rd(c)||gI(c)||g.pV(c)||g.bo(c)||cI(c)==="WEB_CREATOR"))return L.return();d=g.o$(c,g.Za(Y));return d.Y?g.x(L,d.Y,3):(T=d.getValue(),L.uY(2))}L.T!=2&&(T=L.Y);E=T;return L.return(FN8(U,Y,E))})}; FN8=function(U,Y,A){var c,d,T,E,L;return g.S(function(r){if(r.T==1){g.J3(r,2);c=Gqv(A);var l=Y.L();g.Zo();var P={context:g.cC(Y),videoId:Y.videoId,racyCheckOk:Y.racyCheckOk,contentCheckOk:Y.contentCheckOk,autonavState:"STATE_NONE"};Mm(Y)==="adunit"&&(P.isAdPlayback=!0);l.embedConfig&&(P.serializedThirdPartyEmbedConfig=l.embedConfig);l.Ll&&(P.showContentOwnerOnly=!0);Y.J2&&(P.showShortsOnly=!0);g.OI(0,141)&&(P.autonavState=g.OI(0,140)?"STATE_OFF":"STATE_ON");if(g.Cs(l)){var V=g.OI(0,65);V=V!=null? !V:!1;var v=!!g.hu("yt-player-sticky-caption");P.captionsRequested=V&&v}var H;if(l=(H=l.getWebPlayerContextConfig())==null?void 0:H.encryptedHostFlags)P.playbackContext={encryptedHostFlags:l};d=P;T=g.AL(jO3);U.pU("wn_s");return g.x(r,g.KK(c,d,T),4)}if(r.T!=2)return E=r.Y,U.pU("wn_r"),!E||"error"in E&&E.error||(L=E,g.M0(Y.L())&&L.trackingParams&&pJ(L.trackingParams),g.uN(Y,{raw_watch_next_response:E},!1)),g.t3(r,0);g.XE(r);g.i8(r)})}; NHc=function(U){U.pU("vir");U.pU("ps_s");D5("vir",void 0,"video_to_ad");var Y=HOX(U);Y.then(function(){U.pU("virc");D5("virc",void 0,"video_to_ad");U.pU("ps_r");D5("ps_r",void 0,"video_to_ad")},function(){U.pU("virc"); D5("virc",void 0,"video_to_ad")}); return Y}; g.K3=function(U,Y,A,c,d,T,E,L,r,l){r=r===void 0?new g.nD(U):r;l=l===void 0?!0:l;g.l6.call(this);var P=this;this.MI=U;this.playerType=Y;this.FN=A;this.Ol=c;this.getVisibilityState=T;this.visibility=E;this.df=L;this.videoData=r;this.vj=l;this.logger=new g.o6("VideoPlayer");this.Xy=null;this.Ej=new uG;this.oZ=null;this.Eh=!0;this.Ov=this.loader=null;this.hj=[];this.pR=new n3;this.Rx=this.FC=null;this.RZ=new n3;this.Iz=null;this.ML=this.Uw=!1;this.U1=NaN;this.LH=!1;this.playerState=new g.z3;this.Sm=[]; this.LK=new g.Qy;this.m9=new J0c(this);this.mediaElement=null;this.NH=new g.IM(this.uYY,15E3,this);this.ES=this.du=!1;this.Qo=NaN;this.lM=!1;this.jQ=0;this.HJ=!1;this.Eu=NaN;this.Gv=new mQ(new Map([["bufferhealth",function(){return uxc(P.rf)}], ["bandwidth",function(){return P.qm()}], ["networkactivity",function(){return P.MI.schedule.ov}], ["livelatency",function(){return P.isAtLiveHead()&&P.isPlaying()?tDv(P):NaN}], ["rawlivelatency",function(){return tDv(P)}]])); this.UX=0;this.loop=!1;this.playbackRate=1;this.zP=0;this.rf=new Oy3(this);this.Ef=!1;this.KG=[];this.eh=this.q9=0;this.fE=this.MX=!1;this.cU=this.DP=0;this.iV=new g.IM(this.dH,0,this);this.I1=this.BQ=null;this.ImI=[this.LK,this.iV,this.NH,this.Gv];this.qP=this.kB=null;this.Wa=function(){var V=P.zk();V.provider.MI.b1||V.provider.iY.getVisibilityState()===3||(V.provider.MI.b1=!0);V.Et();if(V.T){var v=V.T;v.K&&v.Y<0&&v.provider.iY.getVisibilityState()!==3&&qV3(v)}V.qoe&&(V=V.qoe,V.Ly&&V.W<0&&V.provider.MI.b1&& X$l(V),V.j&&L3(V));P.loader&&Ie(P);P.MI.bH&&!P.videoData.backgroundable&&P.mediaElement&&!P.x4()&&(P.isBackground()&&P.mediaElement.jN()?(P.wW("bgmobile",{suspend:1}),P.iL(!0,!0)):P.isBackground()||uv(P)&&P.wW("bgmobile",{resume:1}))}; this.o5={EZ:function(V){P.EZ(V)}, zwr:function(V){P.Xy=V}, nfY:function(){return P.sj}, ON:function(){return P.j8}, lL:function(){return P.Ov}, FsT:function(){return P.D4}, I_v:function(){return P.uV}, YBI:function(){}, L:function(){return P.MI}, sH:function(){return P.mediaElement}, TbI:function(V){P.g7(V)}, QZT:function(){return P.Ol}}; this.logger.debug(function(){return"creating, type "+Y}); this.g3=new eCS(this.MI);this.CJ=new C4(this.MI,this.Ol,this);this.v5=new g.B$(this,function(V,v){V!==g.zf("endcr")||g.I(P.playerState,32)||P.j$();d(V,v,P.playerType)},function(V,v){g.KD(P.videoData)&&P.wW(V,v)}); g.Z(this,this.v5);g.Z(this,this.rf);eiY(this,r);this.videoData.subscribe("dataupdated",this.ulv,this);this.videoData.subscribe("dataloaded",this.dg,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.wW,this);this.videoData.subscribe("ctmpstr",this.Kd,this);this.Mm();wlv(this.Wa);this.visibility.subscribe("visibilitystatechange",this.Wa);this.D4=new g.IM(this.H3,g.H_(this.MI.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.uV= new g.IM(this.H3,g.H_(this.MI.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.vO=new g.Yc(this.Ay,g.H_(this.MI.experiments,"html5_progress_event_throttle_ms")||350,this);g.Z(this,this.vO)}; eiY=function(U,Y){if(U.playerType===2||U.MI.VK)Y.WV=!0;var A=y4l(Y.mH,Y.E7,U.MI.j,U.MI.Z);A&&(Y.adFormat=A);U.playerType===2&&(Y.Vz=!0);if(U.isFullscreen()||U.MI.j)A=g.hu("yt-player-autonavstate"),Y.autonavState=A||(U.MI.j?2:U.videoData.autonavState);Y.endSeconds&&Y.endSeconds>Y.startSeconds&&ZJ(U,Y.endSeconds)}; BHE=function(U){rWX(U.sj);g.P7(U.sj);for(var Y=U.j8,A=g.J(Y.Y.values()),c=A.next();!c.done;c=A.next())rWX(c.value);Y.Y.clear();g.P7(U.j8)}; XgE=function(U){var Y=U.videoData;NHc(U).then(void 0,function(A){U.videoData!==Y||Y.Ky()||(A=s7(A),A.errorCode==="auth"&&U.videoData.errorDetail?U.OT(A.errorCode,2,unescape(U.videoData.errorReason),R9(A.details),U.videoData.errorDetail,U.videoData.Zp||void 0):U.handleError(A))})}; axX=function(U){if(!g.I(U.playerState,128))if(U.videoData.isLoaded(),U.logger.debug("finished loading playback data"),U.hj=g.FI(U.videoData.Hw),g.ti(U.videoData)){U.FN.tick("bpd_s");qB(U).then(function(){U.FN.tick("bpd_c");if(!U.Ky()){U.Uw&&(U.Ab(lU(lU(U.playerState,512),1)),uv(U));var c=U.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&ZJ(U,c.endSeconds);U.pR.finished=!0;C3(U,"dataloaded");U.RZ.K0()&&kqv(U);KiX(U.CJ,U.Rx)}}); U.S("html5_log_media_perf_info")&&U.wW("loudness",{v:U.videoData.Vt.toFixed(3)},!0);var Y,A=(Y=U.mediaElement)==null?void 0:Y.jc();if(A&&"disablePictureInPicture"in A&&U.MI.yB)try{A.disablePictureInPicture=U.MI.sx&&!U.videoData.backgroundable}catch(c){g.Md(c)}RiS(U)}else C3(U,"dataloaded")}; qB=function(U){Ut(U);U.Rx=null;var Y=XeX(U.MI,U.videoData,U.x4());U.FC=Y;U.FC.then(function(A){x5X(U,A)},function(A){U.Ky()||(A=s7(A),U.visibility.isBackground()?(YI(U,"vp_none_avail"),U.FC=null,U.pR.reset()):(U.pR.finished=!0,U.OT(A.errorCode,A.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",R9(A.details))))}); return Y}; x5X=function(U,Y){if(!U.Ky()&&!Y.videoData.Ky()){U.logger.debug("finished building playback data");U.Rx=Y;yWv(U.rf,U.Rx);if(U.videoData.isLivePlayback){var A=sOv(U.df.tQ,U.videoData.videoId)||U.loader&&!isNaN(U.loader.ov);A=U.S("html5_onesie_live")&&A;p3(U)||U.videoData.AP>0&&!$p(U.videoData)||A||U.seekTo(U.Sl(),{Qa:"videoplayer_playbackData",seekSource:18})}if(U.videoData.W.Y){if(jXc(U.videoData)){U.S("html5_sabr_report_missing_url_as_error_terminal")?U.OT("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", R9({missabrurl:1})):U.handleError(new a9("fmt.missing",{missabrurl:"1"},2));return}U.loader?g.Md(Error("Duplicated Loader")):(A=g.H_(U.MI.experiments,"html5_onesie_defer_content_loader_ms"))&&U.j9()&&sOv(U.df.tQ,U.videoData.VMY)?g.vn(function(){U.Ky()||U.loader||fxE(U)},A):fxE(U)}else!U.videoData.W.Y&&y5(U.videoData)&&U.RQ(new vw(U.videoData.videoId||"",4)); U.rz();mjY(Y).then(function(){var c={};U.Zb(c);U.MI.O3()&&U.S("html5_log_media_perf_info")&&U.wW("av1Info",c);Ie(U)})}}; kqv=function(U){U.Ky();U.logger.debug("try finish readying playback");if(U.RZ.finished)U.logger.debug("already finished readying");else if(U.pR.finished)if(g.I(U.playerState,128))U.logger.debug("cannot finish readying because of error");else if(U.hj.length)U.logger.debug(function(){return"cannot finish readying because of pending preroll: "+U.hj}); else if(U.v5.started||jR3(U.v5),U.mD())U.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{U.loader&&(U.ML=h3X(U.loader.timing));U.RZ.finished||(U.RZ.finished=!0);var Y=U.S("html5_onesie_live")&&U.loader&&!isNaN(U.loader.ov);!U.videoData.isLivePlayback||U.videoData.AP>0&&!$p(U.videoData)||Y||p3(U)||(U.logger.debug("seek to head for live"),U.seekTo(Infinity,{Qa:"videoplayer_readying",seekSource:18}),U.isBackground()&&(U.ES=!0));EI9(U.zk());U.logger.debug("finished readying playback"); U.publish("playbackready");yl("pl_c",U.FN.timerName)||(U.FN.tick("pl_c"),D5("pl_c",void 0,"video_to_ad"));yl("pbr",U.FN.timerName)||(U.FN.tick("pbr"),D5("pbr",void 0,"video_to_ad"))}else U.logger.debug("playback data not loaded")}; ZJ=function(U,Y){U.oZ&&hiX(U);U.oZ=new g.EE(Y*1E3,0x7ffffffffffff);U.oZ.namespace="endcr";U.addCueRange(U.oZ)}; hiX=function(U){U.removeCueRange(U.oZ);U.oZ=null}; Sx4=function(U,Y,A,c,d){var T=U.zk(d),E=g.KD(U.videoData)?T.getVideoData():U.videoData;E.T=A;var L=g.AW(U);A=new sFv(E,A,Y,L?L.itag:"",c);U.MI.experiments.lY("html5_refactor_sabr_video_format_selection_logging")?(A.videoId=d,U.qP=A):T.qoe&&v_c(T.qoe,A);d=U.CJ;d.T=0;d.Y=0;U.publish("internalvideoformatchange",E,Y==="m")}; g.AW=function(U){var Y=ce(U);return Hz(Y)||!U.Rx?null:g.$z(U.Rx.Y.videoInfos,function(A){return Y.j(A)})}; ce=function(U){if(U.Rx){var Y=U.CJ;var A=U.Rx;U=U.MH();var c=SVc(Y);if(Hz(c)){if(c=fBS(Y,A).compose(QF9(Y,A)).compose(O4c(Y,A)).compose(IB4(Y,A.videoData)).compose(uWX(Y,A.videoData,A)).compose(YE(Y,A)).compose(b4Y(Y,A)),Hz(U)||Y.S("html5_apply_pbr_cap_for_drm"))c=c.compose(pl4(Y,A))}else Y.S("html5_perf_cap_override_sticky")&&(c=c.compose(YE(Y,A))),Y.S("html5_ustreamer_cap_override_sticky")&&(c=c.compose(pl4(Y,A)));c=c.compose(b4Y(Y,A));Y=A.videoData.cR.compose(c).compose(A.videoData.g_).compose(U)}else Y= y6;return Y}; ciS=function(U){var Y=U.CJ;U=U.videoData;var A=IB4(Y,U);Y.S("html5_disable_client_autonav_cap_for_onesie")||A.compose(uWX(Y,U));return A}; Ie=function(U){if(U.videoData.W&&U.videoData.W.Y){var Y=ce(U);U.loader&&gp9(U.loader,Y)}}; MDX=function(U){var Y;return!!(U.S("html5_native_audio_track_switching")&&g.iW&&((Y=U.videoData.T)==null?0:cd(Y)))}; bOc=function(U){if(!MDX(U))return!1;var Y;U=(Y=U.mediaElement)==null?void 0:Y.audioTracks();return!!(U&&U.length>1)}; QO8=function(U){var Y=pgc(U);if(Y)return nzV(U.videoData.getAvailableAudioTracks().find(function(A){return A.b$.getName()===Y}))}; pgc=function(U){var Y;if(U=(Y=U.mediaElement)==null?void 0:Y.audioTracks())for(Y=0;Y0&&(Y.VU=c.UB));Y.Re=c.vl;Y.cg=Z7(A,{},c.W||void 0,zk(c));Y.qI=op(c)&&g.pV(A);Lk(c)&&(Y.q5=!0,A.S("html5_sabr_report_partial_segment_estimated_duration")&& (Y.FU=!0),Y.Y=!0,Y.NR=A.S("html5_sabr_enable_live_clock_offset"),Y.VP=A.S("html5_disable_client_resume_policy_for_sabr"),Y.I6=A.S("html5_trigger_loader_when_idle_network"),Y.Aw=A.S("html5_sabr_parse_live_metadata_playback_boundaries"),Y.H2=A.S("html5_enable_platform_backpressure_with_sabr"),Y.RV=A.S("html5_consume_onesie_next_request_policy_for_sabr"),Y.Ib=A.S("html5_sabr_report_next_ad_break_time"),Y.UB=A.S("html5_log_high_res_buffer_timeline")&&A.O3(),Y.Qs=A.S("html5_remove_stuck_slices_beyond_max_buffer_limits"), Y.yB=A.S("html5_gapless_sabr_btl_last_slice")&&ES(c),Y.dk=A.S("html5_reset_last_appended_slice_on_seek")&&ES(c),$p(c)?(Y.DS=!0,Y.Qv=A.S("html5_estimate_partial_segment_duration"),Y.hW=A.S("html5_disable_variability_tracker_for_live"),Y.dW=A.S("html5_sabr_use_accurate_slice_info_params"),A.S("html5_simplified_backup_timeout_sabr_live")&&(Y.DM=!0,Y.Bu=Y.IT)):Y.qz=A.S("html5_probe_request_on_sabr_request_progress"),Y.ob=A.S("html5_serve_start_seconds_seek_for_post_live_sabr"),Y.sT=A.S("html5_flush_index_on_updated_timestamp_offset"), Y.X=WM3(c),Y.xm=A.S("html5_ignore_partial_segment_from_live_readahead"),Y.P_=A.S("html5_use_buffer_health_for_readahead"),Y.Xf=A.S("html5_use_non_active_broadcast_for_post_live"),Y.QJ=A.S("html5_use_centralized_player_time"),Y.s$=A.S("html5_consume_onesie_sabr_seek"),Y.Hw=A.S("html5_enable_sabr_seek_loader_refactor"),Y.Ml=A.S("html5_update_segment_start_time_from_media_header"),c.enableServerStitchedDai&&(Y.j=!0,Y.cR=A.S("html5_reset_server_stitch_state_for_non_sabr_seek"),Y.ju=A.S("html5_remove_ssdai_append_pause")&& !c.b9(),Y.Zf=A.S("html5_consume_ssdai_info_with_streaming"),Y.zs=A.S("html5_ssdai_log_ssevt_in_loader")),Y.PN=A.O3()||c.b9());Y.K=Y.Y&&A.S("html5_sabr_live");Y.i$=g.JKX(c);Rs(A.K,as.BITRATE)&&(Y.hs=NaN);if(L=g.H_(A.experiments,"html5_request_size_max_kb"))Y.kE=L*1024;A.K.W?Y.yz="; "+as.EXPERIMENTAL.name+"=allowed":A.S("html5_enable_cobalt_tunnel_mode")&&(Y.yz="; tunnelmode=true");L=c.serverPlaybackStartConfig;(L==null?0:L.enable)&&(L==null?0:L.playbackStartPolicy)&&(Y.x_=!0,jyV(Y,L.playbackStartPolicy, 2));L=ZOc(U);U.Ej.removeAll();a:{A=U.df.tQ;if(c=U.videoData.videoId)if(d=A.Y.get(c)){A.Y.remove(c);A=d;break a}A=void 0}U.loader=new g.iG(U,U.MI.schedule,Y,U.videoData.Y,U.videoData.W,ce(U),L,U.videoData.enableServerStitchedDai,A,U.videoData.Pw);Y=U.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&U.videoData.isLivePlayback&&U.j9()?!0:U.Uw&&g.Rd(U.MI)&&U.videoData.isLivePlayback;U.loader.initialize(U.getCurrentTime(),ce(U),Y);U.videoData.probeUrl&&(U.loader.Zf=U.videoData.probeUrl);if(U.hj.length|| U.Uw)U.videoData.cotn||dV(U,!1);DfX(U.rf,U.loader);U.BQ&&(V44(U.loader,new g.j9(U.BQ)),U.wW("sdai",{sdl:1}));U.I1&&(U.loader.Fb(U.I1),U.rf.Z=!1);g.Ip(U.videoData)&&(U=U.loader,U.policy.yP=U.policy.iD)}; Ut=function(U){U.loader&&(U.loader.dispose(),U.loader=null,DfX(U.rf,null));U.U_()?OOY(U):U.Yf()}; OOY=function(U){if(U.Ov)if(U.logger.debug("release media source"),U.CQ(),U.Ov.K)try{U.MI.O3()&&U.wW("rms",{l:"vprms",sr:U.U_(),rs:U$(U.Ov)});U.Ov.clear();var Y;(Y=U.mediaElement)!=null&&(Y.T=U.Ov);U.Ov=null}catch(A){Y=new g.Do("Error while clearing Media Source in VideoPlayer: "+A.name+", "+A.message),Y=s7(Y),U.handleError(Y),U.Yf()}else U.Yf()}; m5X=function(U,Y){Y=Y===void 0?!1:Y;if(U.Ov)return U.Ov.W;U.logger.debug("update media source");a:{Y=Y===void 0?!1:Y;try{g.yB()&&U.videoData.xJ()&&sN3(U.mediaElement);var A=U.mediaElement.lL(U.uH(),U.Ck())}catch(d){if(ez9(U.m9,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);U.OT("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}U.Ia(A,!1,!1,Y)}var c;return((c=U.lL())==null?void 0:c.W)||null}; gVE=function(U,Y){Y=Y===void 0?!1:Y;if(U.loader){U.videoData.enableServerStitchedDai&&Jlc(U.loader);var A=U.getCurrentTime()-U.Zm();U.loader.seek(A,{k9:Y}).TX(function(){})}else fxE(U)}; nVX=function(U,Y,A,c){A=A===void 0?!1:A;c=c===void 0?!1:c;if(U.Ov&&(!Y||U.Ov===Y)){U.logger.debug("media source opened");var d=U.getDuration();!d&&$p(U.videoData)&&(d=25200);if(U.Ov.isView){var T=d;U.logger.debug(function(){return"Set media source duration to "+T+", video duration "+d}); T>U.Ov.getDuration()&&yh3(U,T)}else yh3(U,d);ZkV(U.loader,U.Ov,A,c);U.publish("mediasourceattached")}}; yh3=function(U,Y){if(U.Ov){U.Ov.sL(Y);var A;(A=U.loader)!=null&&A.policy.QJ&&(A.J=Y)}}; npl=function(U,Y){Sx4(U,Y.reason,Y.Y.info,Y.token,Y.videoId)}; C3=function(U,Y){U.publish("internalvideodatachange",Y===void 0?"dataupdated":Y,U.videoData)}; D5S=function(U){var Y="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");U.S("html5_remove_progress_event_listener")||(Y.push("progress"),Y.push("suspend"));Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next())U.LK.N(U.mediaElement,A.value,U.g7,U);U.MI.QN&&U.mediaElement.iz()&&(U.LK.N(U.mediaElement,"webkitplaybacktargetavailabilitychanged",U.S3f,U),U.LK.N(U.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",U.kkv, U))}; u_Y=function(U){g.Wn(U.U1);Ixl(U)||(U.U1=g.Hn(function(){return Ixl(U)},100))}; Ixl=function(U){var Y=U.mediaElement;Y&&U.du&&!U.videoData.ov&&!yl("vfp",U.FN.timerName)&&Y.Ux()>=2&&!Y.isEnded()&&Hd(Y.Hb())&&U.FN.tick("vfp");return(Y=U.mediaElement)&&!U.videoData.ov&&Y.getDuration()>0&&(Y.isPaused()&&Y.Ux()>=2&&Hd(Y.Hb())&&(yl("pbp",U.FN.timerName)||U.FN.tick("pbp"),!U.videoData.sx||U.LH||Y.isSeeking()||(U.LH=!0,U.publish("onPlaybackPauseAtStart"))),Y=Y.getCurrentTime(),Xi(U.g3,Y))?(U.EX(),!0):!1}; qxE=function(U){U.zk().ag();if(V5(U.videoData)&&Date.now()>U.zP+6283){if(!(!U.isAtLiveHead()||U.videoData.Y&&k2(U.videoData.Y))){var Y=U.zk();if(Y.qoe){Y=Y.qoe;var A=Y.provider.iY.Nc(),c=g.FW(Y.provider);i33(Y,c,A);A=A.W;isNaN(A)||g.Ez(Y,c,"e2el",[A.toFixed(3)])}}U.S("html5_alc_live_log_rawlat")?(Y=U.videoData,Y=g.XA(Y.L())?!0:g.Ks(Y.L())?Y.drmProduct==="6":!1):Y=g.XA(U.MI);Y&&U.wW("rawlat",{l:yn(U.Gv,"rawlivelatency").toFixed(3)});U.zP=Date.now()}U.videoData.T&&cd(U.videoData.T)&&(Y=U.x9())&&Y.videoHeight!== U.eh&&(U.eh=Y.videoHeight,Sx4(U,"a",KNY(U,U.videoData.qI)))}; KNY=function(U,Y){if(Y.Y.video.quality==="auto"&&cd(Y.getInfo())&&U.videoData.qe)for(var A=g.J(U.videoData.qe),c=A.next();!c.done;c=A.next())if(c=c.value,c.getHeight()===U.eh&&c.Y.video.quality!=="auto")return c.getInfo();return Y.getInfo()}; tDv=function(U){if(!V5(U.videoData))return NaN;var Y=0;U.loader&&U.videoData.Y&&(Y=$p(U.videoData)?U.loader.bD.Y4()||0:U.videoData.Y.jX);return(0,g.y)()/1E3-U.tB()-Y}; UaE=function(U){U.mediaElement&&U.mediaElement.x4()&&(U.Eu=(0,g.y)());U.MI.BN?g.vn(function(){Cjl(U)},0):Cjl(U)}; Cjl=function(U){var Y;if((Y=U.Ov)==null||!Y.lQ()){if(U.mediaElement)try{U.Iz=U.mediaElement.playVideo()}catch(c){YI(U,"err."+c)}if(U.Iz){var A=U.Iz;A.then(void 0,function(c){U.logger.debug(function(){return"playMediaElement failed: "+c}); if(!g.I(U.playerState,4)&&!g.I(U.playerState,256)&&U.Iz===A)if(c&&c.name==="AbortError"&&c.message&&c.message.includes("load"))U.logger.debug(function(){return"ignore play media element failure: "+c.message}); else{var d="promise";c&&c.name&&(d+=";m."+c.name);YI(U,d);U.Ef=!0;U.videoData.Zh=!0}})}}}; YI=function(U,Y){g.I(U.playerState,128)||(U.Ab(VG(U.playerState,1028,9)),U.wW("dompaused",{r:Y}),U.publish("onAutoplayBlocked"))}; uv=function(U,Y){Y=Y===void 0?!1:Y;if(!U.mediaElement||!U.videoData.W)return!1;var A=Y;A=A===void 0?!1:A;var c=null;var d;if((d=U.videoData.W)==null?0:d.Y){c=m5X(U,A);var T;(T=U.loader)==null||T.resume()}else Ut(U),U.videoData.qI&&(c=U.videoData.qI.ZZ());d=U.mediaElement.jN();A=!1;d&&d.equals(c)||(Y0S(U,c),A=!0);g.I(U.playerState,2)||(c=U.rf,Y=Y===void 0?!1:Y,c.K||!(c.W>0)||c.mediaElement&&c.mediaElement.getCurrentTime()>0||(Y={Qa:"seektimeline_resumeTime",k9:Y},c.videoData.ov||(Y.seekSource=15), c.seekTo(c.W,Y)));a:{Y=A;if(Lk(U.videoData)){if(!U.videoData.h8())break a}else if(!g.Ji(U.videoData))break a;if(U.mediaElement)if((c=U.videoData.K)&&U.mediaElement.iz()){d=g.M(U.mediaElement.jc());if(U.Xy)if(d!==U.Xy.element)TS(U);else if(Y&&c.flavor==="fairplay"&&!nl())TS(U);else break a;if(U.S("html5_report_error_for_unsupported_tvos_widevine")&&nl()&&c.flavor==="widevine")U.OT("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{U.Xy=new r0l(d,U.videoData,U.MI); U.Xy.subscribe("licenseerror",U.pW,U);U.Xy.subscribe("qualitychange",U.Den,U);U.Xy.subscribe("heartbeatparams",U.QI,U);U.Xy.subscribe("keystatuseschange",U.EZ,U);U.Xy.subscribe("ctmp",U.wW,U);Y=g.J(U.Ej.keys);for(c=Y.next();!c.done;c=Y.next())c=U.Ej.get(c.value),U.Xy.o6(c);U.S("html5_eme_loader_sync")||U.Ej.removeAll()}}else U.OT("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return A}; Y0S=function(U,Y){U.FN.tick("vta");D5("vta",void 0,"video_to_ad");U.getCurrentTime()>0&&qtV(U.rf,U.getCurrentTime());U.mediaElement.activate(Y);U.Ov&&cA(4);!U.videoData.ov&&U.playerState.isOrWillBePlaying()&&U.NH.start();if(MDX(U)){var A;if(Y=(A=U.mediaElement)==null?void 0:A.audioTracks())Y.onchange=function(){U.publish("internalaudioformatchange",U.videoData,!0)}}}; TS=function(U){U.Xy&&(U.Xy.dispose(),U.Xy=null)}; AVV=function(U){var Y=Y===void 0?!1:Y;U.logger.debug("reattachVideoSource");U.mediaElement&&(U.Ov?(TS(U),U.Yf(),m5X(U,Y)):(U.videoData.qI&&U.videoData.qI.CE(),U.mediaElement.stopVideo()),U.playVideo())}; cVX=function(U,Y){U.MI.S("html5_log_rebuffer_reason")&&(Y={r:Y,lact:kS()},U.mediaElement&&(Y.bh=T3(U.mediaElement)),U.wW("bufreason",Y))}; daY=function(U,Y){if(U.MI.O3()&&U.mediaElement){var A=U.mediaElement.i9();A.omt=(U.mediaElement.getCurrentTime()+U.Zm()).toFixed(3);A.ps=U.playerState.state.toString(16);A.rt=(NB(U.zk())*1E3).toFixed();A.e=Y;U.KG[U.q9++%5]=A}try{if(Y==="timeupdate"||Y==="progress")return}catch(c){}U.logger.debug(function(){return"video element event "+Y})}; TJV=function(U){if(U.MI.O3()){U.KG.sort(function(c,d){return+c.rt-+d.rt}); for(var Y=g.J(U.KG),A=Y.next();!A.done;A=Y.next())A=A.value,U.wW("vpe",Object.assign({t:A.rt},A));U.KG=[];U.q9=0}}; Eo4=function(U){if(g.mm("cobalt")&&g.mm("nintendo switch")){var Y=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;U.wW("nxdock",{d:Y})}}; dV=function(U,Y){var A;(A=U.loader)==null||J0(A,Y)}; FiX=function(U,Y){return g.KD(U.videoData)&&U.I1?U.I1.handleError(Y,void 0):!1}; RiS=function(U){Kk(U.videoData,"html5_set_debugging_opt_in")&&(U=g.Zo(),g.OI(0,183)||(g3(183,!0),U.save()))}; oo8=function(U){return g.KD(U.videoData)&&U.I1?Et(U.I1):U.videoData.Sl()}; FyE=function(U,Y){U.df.KF()||(U.wW("sgap",{f:Y}),U.df.clearQueue(!1,Y==="pe"))}; p3=function(U){return U.S("html5_disable_video_player_initiated_seeks")&&Lk(U.videoData)}; zq9=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);r_(this.api,"isLifaAdPlaying",function(){return Y.api.isLifaAdPlaying()}); this.events.N(U,"serverstitchedvideochange",function(){var A;(A=Y.api.getVideoData())!=null&&A.b9()&&(Y.api.isLifaAdPlaying()?(Y.playbackRate=Y.api.getPlaybackRate(),Y.api.setPlaybackRate(1)):Y.api.setPlaybackRate(Y.playbackRate))}); this.playbackRate=1}; Lrc=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);r_(this.api,"seekToChapterWithAnimation",function(A){Y.seekToChapterWithAnimation(A)}); r_(this.api,"seekToTimeWithAnimation",function(A,c){Y.seekToTimeWithAnimation(A,c)}); r_(this.api,"renderChapterSeekingAnimation",function(A,c,d){Y.api.renderChapterSeekingAnimation(A,c,d)}); r_(this.api,"setMacroMarkers",function(A){Y.setMacroMarkers(U,A)}); r_(this.api,"changeMarkerVisibility",function(A,c,d){Y.changeMarkerVisibility(A,c,d)}); r_(this.api,"isSameMarkerTypeVisible",function(A){return Y.isSameMarkerTypeVisible(A)})}; rV9=function(U,Y,A){var c=U.api.getCurrentTime()*1E30&&d>0&&(A.width+=d,g.MP(Y.element,"width",A.width+"px")));U.size=A}}; g.Fx=function(U,Y){var A=U.Y[U.Y.length-1];A!==Y&&(U.Y.push(Y),S09(U,A,Y))}; g.jG=function(U){if(!(U.Y.length<=1)){var Y=U.Y.pop(),A=U.Y[0];U.Y=[A];S09(U,Y,A,!0)}}; S09=function(U,Y,A,c){Muc(U);Y&&(Y.unsubscribe("size-change",U.Ra,U),Y.unsubscribe("back",U.Qt,U));A.subscribe("size-change",U.Ra,U);A.subscribe("back",U.Qt,U);if(U.Mz){g.ou(A.element,c?"ytp-panel-animate-back":"ytp-panel-animate-forward");A.Df(U.element);A.focus();U.element.scrollLeft=0;U.element.scrollTop=0;var d=U.size;hqE(U);g.DI(U.element,d);U.J=new g.IM(function(){b8V(U,Y,A,c)},20,U); U.J.start()}else A.Df(U.element),Y&&Y.detach()}; b8V=function(U,Y,A,c){U.J.dispose();U.J=null;g.ou(U.element,"ytp-popup-animating");c?(g.ou(Y.element,"ytp-panel-animate-forward"),g.LZ(A.element,"ytp-panel-animate-back")):(g.ou(Y.element,"ytp-panel-animate-back"),g.LZ(A.element,"ytp-panel-animate-forward"));g.DI(U.element,U.size);U.G=new g.IM(function(){g.LZ(U.element,"ytp-popup-animating");Y.detach();g.rK(Y.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);U.G.dispose();U.G=null},250,U); U.G.start()}; Muc=function(U){U.J&&g.CB(U.J);U.G&&g.CB(U.G)}; Nf=function(U){g.JW.call(this,U,"ytp-shopping-product-menu");this.Ts=new g.wV(this.U);g.Z(this,this.Ts);this.hide();g.Fx(this,this.Ts);g.S4(this.U,this.element,4)}; QG3=function(U,Y,A){var c,d=Y==null?void 0:(c=Y.text)==null?void 0:c.simpleText;d&&(A=pSX(U,A,d,Y==null?void 0:Y.icon,Y==null?void 0:Y.secondaryIcon),Y.navigationEndpoint&&A.listen("click",function(){U.U.Ev("innertubeCommand",Y.navigationEndpoint);U.hide()},U))}; Z8c=function(U,Y,A){var c,d=Y==null?void 0:(c=Y.text)==null?void 0:c.simpleText;d&&pSX(U,A,d,Y==null?void 0:Y.icon).listen("click",function(){var T;(Y==null?void 0:(T=Y.icon)==null?void 0:T.iconType)==="HIDE"?U.U.publish("featuredproductdismissed"):Y.serviceEndpoint&&U.U.Ev("innertubeCommand",Y.serviceEndpoint);U.hide()},U)}; pSX=function(U,Y,A,c,d){Y=new g.Ir(g.uR({},[],!1,!!d),Y,A);d&&Y.updateValue("secondaryIcon",O8v(d));Y.setIcon(O8v(c));g.Z(U,Y);U.Ts.gf(Y,!0);return Y}; O8v=function(U){if(!U)return null;switch(U.iconType){case "ACCOUNT_CIRCLE":return{D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{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{D:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{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 wA4();case "HIDE":return{D:"svg",V:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"g",C:[{D:"path",V:{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 Xs()}}; tW=function(U){GS.call(this,U,!1,!0);this.isCounterfactual=this.T=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.n({D:"button",Iv:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.n({D:"img",B:"ytp-suggested-action-badge-img",V:{src:"{{url}}"}}); this.thumbnailImage.hide();g.Z(this,this.thumbnailImage);this.thumbnailIcon=new g.n({D:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.Z(this,this.thumbnailIcon);this.banner=new g.n({D:"a",B:"ytp-suggested-action-container",C:[this.thumbnailImage,this.thumbnailIcon,{D:"div",B:"ytp-suggested-action-details",C:[{D:"text",B:"ytp-suggested-action-title",YE:"{{title}}"},{D:"text",B:"ytp-suggested-action-subtitle",YE:"{{subtitle}}"},{D:"text",B:"ytp-suggested-action-metadata-text", YE:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.Z(this,this.banner);this.banner.Df(this.W.element);this.N(this.U,"videodatachange",this.onVideoDataChange);this.N(this.U,g.zf("suggested_action_view_model"),this.YaX);this.N(this.U,g.LS("suggested_action_view_model"),this.xeW);this.N(this.overflowButton.element,"click",this.Ug);this.N(U,"featuredproductdismissed",this.L0);this.U.createServerVe(this.banner.element,this.banner,!0)}; maS=function(U){U.isInitialized&&(U.enabled=U.isVisible,U.Hw=U.isVisible,He(U),U.o4(),U.thumbnailImage.PQ(U.isVisible),U.shouldHideDismissButton||U.dismissButton.PQ(U.isVisible),U.shouldShowOverflowButton&&U.overflowButton.PQ(U.isVisible))}; eG=function(){tW.apply(this,arguments)}; goE=function(U){Cq.call(this,U);this.Y=new eG(this.api);g.Z(this,this.Y);g.S4(this.api,this.Y.element,4)}; Be=function(U){Cq.call(this,U);var Y=this;this.Y="";this.W=!0;this.T=this.api.S("html5_enable_audio_track_stickiness_phase_two");var A=new g.Qy(U);g.Z(this,A);A.N(U,"internalaudioformatchange",function(c,d){yVY(Y,c,d)}); A.N(U,"videoplayerreset",function(){noX(Y)}); A.N(U,"videodatachange",function(c,d){Y.onVideoDataChange(c,d)})}; yVY=function(U,Y,A){if(A){var c="";if(DaX(U,Y)&&(c=Y,U.T||(U.Y=Y),U.api.S("html5_sabr_enable_server_xtag_selection"))){if(A=U.api.getVideoData(void 0,!0))A.W7=Y;U.api.L().qI=Y}if(U.T&&c&&IqX(U,c)){YGl(U.api,U.Y||c);var d;jc(zr(U.api.L(),(d=U.api.getVideoData())==null?void 0:g.Za(d)),function(T){uo3(U,c,T)})}}}; noX=function(U){if(U.Y)KrV(U);else{var Y;if(U.T&&((Y=Ua())==null?0:Y.size)){var A;jc(zr(U.api.L(),(A=U.api.getVideoData())==null?void 0:g.Za(A)),function(c){if((c=q0V(c))&&IqX(U,c)){var d=U.api.getVideoData(void 0,!0);d&&(d.W7=c);U.api.L().qI=c}})}}}; KrV=function(U){var Y=U.api.getVideoData(void 0,!0);Y&&(Y.W7=U.Y)}; uo3=function(U,Y,A){q0V(A)!==Y&&(C$9([{settingItemId:Xx(A),settingOptionValue:{stringValue:Y}}]),jc(U.E$(),function(c){z7S(c,Xx(A),{stringValue:Y})}))}; UyV=function(U,Y){NN(jc(jc(U.E$(),function(A){return Es3(A,[Xx(Y)])}),function(A){if(A){A=g.J(A); for(var c=A.next();!c.done;c=A.next()){var d=c.value;c=d.key;d=d.value;c&&d&&(C$9([{settingItemId:c,settingOptionValue:d}]),noX(U))}}}),function(){U.W=!0})}; DaX=function(U,Y){U=U.api.getAvailableAudioTracks();U=g.J(U);for(var A=U.next();!A.done;A=U.next())if(A=A.value,A.getLanguageInfo().getId()===Y)return A;return null}; q0V=function(U){U=Xx(U);var Y=Ua();U=Y?Y.get(U):void 0;return U&&U.stringValue?U.stringValue:""}; Xx=function(U){var Y=(484).toString();U&&(Y=(483).toString());return Y}; IqX=function(U,Y){var A;return Y.split(".")[0]!==""&&((A=U.api.getVideoData())==null?void 0:!gS(A))}; C$9=function(U){var Y=Ua();Y||(Y=new Map);U=g.J(U);for(var A=U.next();!A.done;A=U.next())A=A.value,Y.set(A.settingItemId,A.settingOptionValue);Y=JSON.stringify(Object.fromEntries(Y));g.fU("yt-player-user-settings",Y,2592E3)}; g.kI=function(U,Y,A,c,d,T,E){g.Ir.call(this,g.uR({"aria-haspopup":"true"}),Y,U);this.o1=c;this.Z=!1;this.W=null;this.options={};this.T=new g.wV(A,void 0,U,d,T,E);g.Z(this,this.T);this.listen("keydown",this.JR);this.listen("click",this.open)}; Yp9=function(U){if(U.W){var Y=U.options[U.W];Y.element.getAttribute("aria-checked");Y.element.setAttribute("aria-checked","false");U.W=null}}; ACS=function(U,Y){g.kI.call(this,"Temporizador de suspensi\u00f3n",g.Pt.SLEEP_TIMER,U,Y);this.U=U;this.X={};this.J=this.uJ("Off");this.G=this.Y="";U.S("web_settings_menu_icons")&&this.setIcon({D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", fill:"#fff"}}]});this.j=new g.n({D:"div",Iv:["ytp-menuitem-label-wrapper"],C:[{D:"div",YE:"Final del v\u00eddeo"},{D:"div",Iv:["ytp-menuitem-sublabel"],YE:"{{content}}"}]});g.Z(this,this.j);this.listen("click",this.onClick);this.N(U,"videodatachange",this.onVideoDataChange);this.N(U,"presentingplayerstatechange",this.cw);this.N(U,"settingsMenuVisibilityChanged",this.Cff);U.createClientVe(this.element,this,218889);this.cw();this.U.Ev("onSleepTimerFeatureAvailable")}; cCX=function(U){var Y="Off 10 15 20 30 45 60".split(" "),A;((A=U.U.getVideoData())==null?0:A.isLivePlayback)||Y.push("End of video");A=U.U.getPlaylist();var c;A&&((c=A.listId)==null?void 0:c.type)!=="RD"&&Y.push("End of playlist");U.KX(g.mk(Y,U.uJ));U.X=g.bw(Y,U.uJ,U);Y=U.uJ("End of video");U.options[Y]&&g.D3(U.options[Y],U.j)}; dy4=function(U,Y){var A=U.X[Y],c=A==="End of video"||A==="End of playlist";A==="Off"&&(U.Y="");U.U.getPlayerState()!==0&&U.U.getPlayerState()!==5||!c?(U.J=Y,g.kI.prototype.FX.call(U,Y),U.oS(Y),U.U.Ev("onSleepTimerSettingsChanged",A)):U.U.Ev("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El v\u00eddeo ya ha acabado"}}}}})}; RR=function(U){Cq.call(this,U);var Y=this;U.addEventListener("settingsMenuInitialized",function(){Y.menuItem||(Y.menuItem=new ACS(Y.api,Y.api.qF()),g.Z(Y,Y.menuItem))}); U.addEventListener("openSettingsMenuItem",function(A){if(A==="menu_item_sleep_timer"){if(!Y.menuItem){var c;(c=Y.api.qF())==null||c.fU()}Y.menuItem.open()}}); r_(U,"resetSleepTimerMenuSettings",function(){Y.resetSleepTimerMenuSettings()}); r_(U,"setSleepTimerTimeLeft",function(A){Y.setSleepTimerTimeLeft(A)}); r_(U,"setVideoTimeLeft",function(A){Y.setVideoTimeLeft(A)})}; TQv=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"onSnackbarMessage",function(A){switch(A){case 1:A=Y.api.getPlayerStateObject(),A.isBuffering()&&g.I(A,8)&&g.I(A,16)&&Y.api.Ev("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl v\u00eddeo se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Saber por qu\u00e9"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; g.xI=function(U,Y,A,c,d){Y=Y===void 0?!1:Y;c=c===void 0?!1:c;d=d===void 0?!1:d;g.l6.call(this);this.X=d;this.G=!1;this.j=new XC(this);this.K=this.J=null;this.W=this.T=!1;g.Z(this,this.j);this.target=U;this.Y=Y;this.Z=A||U;this.G=c;Y&&(g.DH&&this.target.setAttribute("draggable","true"),d||(this.target.style.touchAction="none"));aR(this)}; fy=function(U){g.Rb(U.j,!U.Y)}; aR=function(U){U.K=null;U.J=null;U.N(hW("over"),U.nZ);U.N("touchstart",U.N2);U.Y&&U.N(hW("down"),U.s1W)}; EuY=function(U,Y){for(var A=0;Ad.start&&A>=5;F+=e}v=F.substr(0,4)+" "+F.substr(4,4)+" "+F.substr(8,4)+" "+(F.substr(12,4)+" "+F.substr(16,4))}else v="";E={video_id_and_cpn:String(Y.videoId)+" / "+v,codecs:"", dims_and_frames:"",bandwidth_kbps:E.toFixed(0)+" Kbps",buffer_health_seconds:r.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:l?"":"display:none",drm:l,debug_info:A,extra_debug_info:"",bandwidth_style:V,network_activity_style:V,network_activity_bytes:L.toFixed(0)+" KB",shader_info:P,shader_info_style:P?"":"display:none",playback_categories:""};L=c.clientWidth+"x"+c.clientHeight+(d>1?"*"+d.toFixed(2):"");r="-";T.totalVideoFrames&&(r=(T.droppedVideoFrames||0)+" dropped of "+T.totalVideoFrames); E.dims_and_frames=L+" / "+r;U=U.getVolume();L=ifc(Y);var f;if((f=Y.j)==null?0:f.audio.T)f="VB";else{var h;f=((h=Y.j)==null?0:h.audio.Y)?"DRC":Math.round(U*L)+"%"}h=Math.round(U)+"% / "+f;f=Y.Vt.toFixed(1);isFinite(Number(f))&&(h+=" (content loudness "+f+"dB)");E.volume=h;E.resolution=c.videoWidth+"x"+c.videoHeight;if(c=Y.T){if(h=c.video)f=h.fps,f>1&&(E.resolution+="@"+f),(f=T.z_)&&f.video&&(E.resolution+=" / "+f.video.width+"x"+f.video.height,f.video.fps>1&&(E.resolution+="@"+f.video.fps)),E.codecs= PbS(c),!Y.j||c.audio&&c.video?c.k7&&(E.codecs+=" / "+c.k7+"A"):E.codecs+=" / "+PbS(Y.j),h.Y||h.primaries?(f=h.Y||"unknown",f==="smpte2084"?f+=" (PQ)":f==="arib-std-b67"&&(f+=" (HLG)"),E.color=f+" / "+(h.primaries||"unknown"),E.color_style=""):E.color_style="display:none";if(c.debugInfo)for(E.fmt_debug_info="",c=g.J(c.debugInfo),h=c.next();!h.done;h=c.next())h=h.value,E.fmt_debug_info+=h.label+":"+h.text+" ";E.fmt_debug_info_style=E.fmt_debug_info&&E.fmt_debug_info.length>0?"":"display:none"}c=Y.isLivePlayback; h=Y.yT;E.live_mode_style=c||h?"":"display:none";E.live_latency_style=c?"":"display:none";if(h)E.live_mode="Post-Live"+($p(Y)?" Manifestless":"");else if(c){h=T.qL;E.live_latency_secs=h.toFixed(2)+"s";c=$p(Y)?"Manifestless, ":"";Y.jX&&(c+="Windowed, ");f="Uncertain";if(h>=0&&h<120)if(Y.latencyClass&&Y.latencyClass!=="UNKNOWN")switch(Y.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency"; break;default:f="Unknown Latency Setting"}else f=Y.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";c+=f;(h=T.RL)&&(c+=", seq "+h.sequence);E.live_mode=c}!T.isGapless||ES(Y)&&T.KF||(E.playback_categories+="Gapless ");E.playback_categories_style=E.playback_categories?"":"display:none";E.bandwidth_samples=T.C8;E.network_activity_samples=T.gr;E.live_latency_samples=T.nx;E.buffer_health_samples=T.Ga;T=g.Ip(Y);if(Y.cotn||T)E.cotn_and_local_media=(Y.cotn?Y.cotn:"null")+ " / "+T;E.cotn_and_local_media_style=E.cotn_and_local_media?"":"display:none";Kk(Y,"web_player_release_debug")?(E.release_name=z[18],E.release_style=""):E.release_style="display:none";E.debug_info&&H.length>0&&E.debug_info.length+H.length<=60?E.debug_info+=" "+H:E.extra_debug_info=H;E.extra_debug_info_style=E.extra_debug_info&&E.extra_debug_info.length>0?"":"display:none";return E}; PbS=function(U){var Y=/codecs="([^"]*)"/.exec(U.mimeType);return Y&&Y[1]?Y[1]+" ("+U.itag+")":U.itag}; Ot=function(U,Y,A,c,d){g.n.call(this,{D:"div",B:"ytp-horizonchart"});this.G=Y;this.sampleCount=A;this.j=c;this.J=d;this.index=0;this.heightPx=-1;this.W=this.T=null;this.Y=Math.round(U/A);this.element.style.width=this.Y*this.sampleCount+"px";this.element.style.height=this.G+"em"}; me=function(U,Y){if(U.heightPx===-1){var A=null;try{A=g.M(g.qs("CANVAS")),U.T=A.getContext("2d")}catch(L){}if(U.T){var c=U.Y*U.sampleCount;U.W=A;U.W.width=c;U.W.style.width=c+"px";U.element.appendChild(U.W)}else for(U.sampleCount=Math.floor(U.sampleCount/4),U.Y*=4,A=0;A1?2:1,U.W.height=U.heightPx*A, U.W.style.height=U.heightPx+"px",U.T.scale(1,A)));Y=g.J(Y);for(c=Y.next();!c.done;c=Y.next()){A=U;var d=U.index,T=c.value;for(c=0;c+20&&g.YJ(Y.W.element);c.classList.add("ytp-timely-actions-overlay");Y.W.element.appendChild(c)}); g.Z(this,this.W);g.S4(this.api,this.W.element,4)}; XEV=function(U){U.timelyActions&&(U.j=U.timelyActions.reduce(function(Y,A){if(A.cueRangeId===void 0)return Y;Y[A.cueRangeId]=0;return Y},{}))}; IR=function(U,Y){if(U.timelyActions){U=g.J(U.timelyActions);for(var A=U.next();!A.done;A=U.next())if(A=A.value,A.cueRangeId===Y)return A}}; kK8=function(U,Y){if((U=IR(U,Y))&&U.onCueRangeExit)return ZS(U.onCueRangeExit)}; Dl=function(U){if(U.Y!==void 0){var Y=(Y=IR(U,U.Y))&&Y.onCueRangeEnter?ZS(Y.onCueRangeEnter):void 0;var A=IR(U,U.Y);a:if(A&&A.additionalTrigger){var c=g.J(A.additionalTrigger);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.type){var T=void 0,E=void 0;if((T=U.X[d.type])==null?0:T((E=d.args)!=null?E:{})){c=!0;break a}}c=!1}else c=!0;Y&&c&&(U.api.Ev("innertubeCommand",Y),U.setTimeout(A),U.j[U.Y]!==void 0&&U.j[U.Y]++,U.J=!0)}}; NQ3=function(U,Y){return U.T===void 0?!1:Y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Y.seekLengthMilliseconds)===5E3?U.T===72:Y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Y.seekLengthMilliseconds)===1E4?U.T===74:Y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Y.seekLengthMilliseconds)===5E3?U.T===71:Y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Y.seekLengthMilliseconds)===1E4?U.T===73:!1}; t6c=function(U){if(U=U.getWatchNextResponse()){var Y,A;U=(Y=U.playerOverlays)==null?void 0:(A=Y.playerOverlayRenderer)==null?void 0:A.timelyActionsOverlayViewModel;Y=g.O(U,RtE);if(Y!=null&&Y.timelyActions)return Y==null?void 0:Y.timelyActions.map(function(c){return g.O(c,an4)}).filter(function(c){return!!c})}}; xyc=function(U){Cq.call(this,U);var Y=this;lR(this.api,"getPlaybackRate",function(){return Y.api.getPlaybackRate()}); lR(this.api,"setPlaybackRate",function(A){typeof A==="number"&&Y.api.setPlaybackRate(A)})}; uP=function(U,Y,A,c){EN.call(this,"VOICE_BOOST",g.Pt.On);this.Y=!1;this.U=U;this.o1=U.qF();this.j=Y;this.W=A;this.hasVoiceBoostAudioTrack=c;this.N(U,"videodatachange",this.T);this.setIcon(e9Y());this.subscribe("select",this.J,this);this.T()}; Ky=function(U){Cq.call(this,U);var Y=this;this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"settingsMenuInitialized",function(){sk9(Y)}); r_(this.api,"getVoiceBoostUserPreference",function(){return Y.getVoiceBoostUserPreference()}); r_(this.api,"setVoiceBoostUserPreference",function(c){Y.setVoiceBoostUserPreference(c)}); r_(this.api,"hasVoiceBoostAudioTrack",function(){return Y.hasVoiceBoostAudioTrack()}); var A;this.Y=(A=nqv())!=null?A:0;this.updateEnvironmentData()}; sk9=function(U){U.menuItem||(U.menuItem=new uP(U.api,function(Y){U.setVoiceBoostUserPreference(Y)},function(){return U.getVoiceBoostUserPreference()},function(){return U.hasVoiceBoostAudioTrack()}),g.Z(U,U.menuItem))}; fnX=function(U){U=U.GN();if(!U)return!1;U=g.dF(U).exp||"";return U.includes("xpv")||U.includes("xpe")}; ht3=function(U){U=g.J(g.qf(U,!0));for(var Y=U.next();!Y.done;Y=U.next())if(fnX(Y.value))return!0;return!1}; SpX=function(U,Y){U=g.J(g.qf(U,!0));for(var A=U.next();!A.done;A=U.next())if(A=A.value,fnX(A)){var c={potc:"1",pot:Y};A.url&&(A.url=Tw(A.url,c))}}; M6S=function(U){return g.S(function(Y){if(Y.T==1)return g.J3(Y,2),g.x(Y,U,4);if(Y.T!=2)return g.t3(Y,0);g.XE(Y);g.i8(Y)})}; Ux=function(U){Cq.call(this,U);var Y=this;this.useLivingRoomPoToken=!1;this.K=new g.VI;this.Y=!1;this.FN=null;this.Z=!1;this.j=null;this.J=!1;var A=U.L().getWebPlayerContextConfig();this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"spsumpreject",function(c,d,T){Y.J=d;c&&Y.Z&&!Y.j&&(Y.S("html5_generate_content_po_token")&&T?Y.pO(T):Y.S("html5_generate_session_po_token")&&boE(Y));Y.j||Y.api.wW("stp",{s:+Y.Z,b:+Y.J})}); this.events.N(U,"poTokenVideoBindingChange",function(c){Y.pO(c)}); this.useLivingRoomPoToken=!(A==null||!A.useLivingRoomPoToken);U.addEventListener("csiinitialized",function(){Y.FN=U.K3();var c=(Y.S("html5_generate_session_po_token")||Y.S("html5_generate_content_po_token"))&&!Y.useLivingRoomPoToken;try{if(Y.S("html5_use_shared_owl_instance"))pEc(Y);else if(c){Y.FN.t_("pot_isc");var d=g.H_(Y.api.L().experiments,"html5_webpo_kaios_defer_timeout_ms");d?(Y.W=QI(),g.vn(function(){Cy(Y)},d)):Y.S("html5_webpo_idle_priority_job")?(Y.W=QI(),g.CU(g.Y6(),function(){Cy(Y)})): Cy(Y)}}catch(T){T instanceof Error&&g.Md(T)}}); U.addEventListener("trackListLoaded",this.CF.bind(this));U.HD(this)}; QkV=function(U){var Y=Ta(U.experiments,"html5_web_po_request_key");return Y?Y:g.Rd(U)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; ZoE=function(U){var Y=new AS8,A={},c=(A["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",A);return new wp(Y,U,function(){return c})}; Ooc=function(U){return new iF(U)}; YV=function(U,Y){U.S("html5_webpo_bge_ctmp")&&U.api.wW(Y,{hwpo:!!U.T,hwpor:U.Y})}; pEc=function(U){var Y,A;g.S(function(c){if(c.T==1)return YV(U,"swpo_i"),U.W=QI(),Ah(U),g.x(c,ET(),2);if(c.T!=3)return Y=c.Y,YV(U,"swpo_co"),g.x(c,fIY(Y),3);A=c.Y;U.S("html5_web_po_token_disable_caching")||A.hI(150);U.T=A;YV(U,"swpo_cc");M6S(A.zO()).then(function(){U.Y=!0;U.K.resolve();YV(U,"swpo_re")}); g.vn(function(){Cy(U);YV(U,"swpo_si")},0); g.i8(c)})}; guc=function(U){var Y=U.api.L(),A=ZoE(QkV(Y)),c=A.OY.bind(A);A.OY=function(L){var r;return g.S(function(l){if(l.T==1)return g.x(l,c(L),2);r=l.Y;U.api.wW("itr",{});return l.return(r)})}; try{var d=Ooc({CD:A,O4:{maxAttempts:5},Jl:{s_:"CLEn",disable:Y.experiments.lY("html5_web_po_disable_remote_logging")||myv.includes(g.tD(Y.ZG)||""),rJ:sh3(Y.experiments),WHY:U.S("wpo_dis_lfdms")?0:1E3},Tfv:g.Md});var T=new bF({CP:d,CD:A,onError:g.Md});M6S(T.zO()).then(function(){U.Y=!0;U.K.resolve()}); U.S("html5_web_po_token_disable_caching")||T.hI(150);g.Z(U,d);g.Z(U,T);U.T=T}catch(L){g.Md(L);var E;(E=d)==null||E.dispose()}}; Cy=function(U){var Y=U.api.L();U.FN.t_("pot_ist");U.T||guc(U);U.S("html5_bandaid_attach_content_po_token")||(U.S("html5_generate_session_po_token")&&(Ah(U),boE(U)),Y=g.H_(Y.experiments,"html5_session_po_token_interval_time_ms")||0,Y>0&&(U.G=g.Hn(function(){Ah(U)},Y)),U.Z=!0)}; Ah=function(U){var Y,A,c,d;g.S(function(T){if(!U.S("html5_generate_session_po_token")||U.useLivingRoomPoToken)return T.return();Y=U.api.L();A=g.DQ("EOM_VISITOR_DATA")||g.DQ("VISITOR_DATA");c=Y.xm?Y.datasyncId:A;d=Ta(Y.experiments,"html5_mock_content_binding_for_session_token")||Y.livingRoomPoTokenId||c;Y.Zh=cg(U,d);g.i8(T)})}; cg=function(U,Y){if(!U.T){if(U.W)try{return U.W(Y)}catch(T){g.Md(T)}return""}try{U.FN.t_(U.Y?"pot_cms":"pot_csms");var A={rr:!0,Gj:!0,Bi:Y};U.S("html5_web_po_token_disable_caching")||(A.mj={JI:Y,Nf:!0,sU:!0});var c=U.T.fn(A);U.FN.t_(U.Y?"pot_cmf":"pot_csmf");if(U.Y){var d;(d=U.j)==null||d.resolve();U.j=null;U.J&&(U.J=!1,U.api.app.bY().qH(!1))}return c}catch(T){return g.Md(T),""}}; boE=function(U){U.T&&(U.j=new AX,U.K.promise.then(function(){U.FN.t_("pot_if");Ah(U)}))}; dH=function(U){Cq.call(this,U);var Y=this,A=new g.Qy(U);g.Z(this,A);A.N(U,"fullscreentoggled",function(c){yCE(Y,c)}); r_(this.api,"setFullscreenQuickActions",function(c){Y.setFullscreenQuickActions(c)}); r_(this.api,"setPlayerOverlayVideoDetailsRenderer",function(c){Y.setPlayerOverlayVideoDetailsRenderer(c)})}; yCE=function(U,Y){U.Y&&g.up(U.Y,Y);U.playerOverlayVideoDetailsRenderer&&g.up(U.playerOverlayVideoDetailsRenderer,Y)}; nuc=function(U){Cq.call(this,U);var Y=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Qy(U);g.Z(this,this.events);this.events.N(U,"heartbeatRequest",function(A){if(Y.freePreviewUsageDetails.length||Y.freePreviewWatchedDuration!==null)A.heartbeatRequestParams||(A.heartbeatRequestParams={}),A.heartbeatRequestParams.unpluggedParams||(A.heartbeatRequestParams.unpluggedParams={}),Y.freePreviewUsageDetails.length>0?A.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= Y.freePreviewUsageDetails:A.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+Y.freePreviewWatchedDuration}}); r_(U,"setFreePreviewWatchedDuration",function(A){Y.freePreviewWatchedDuration=A}); r_(U,"setFreePreviewUsageDetails",function(A){Y.freePreviewUsageDetails=A})}; Tq=function(U){g.p.call(this);this.features=[];var Y=this.Y,A=new em(U),c=new UN(U),d=new rV(U),T=new Ux(U);var E=g.XA(U.L())?void 0:new wC(U);var L=new Ly(U),r=new HoX(U),l=new xyc(U),P=new tk(U);var V=g.XA(U.L())?new nuc(U):void 0;var v=U.S("html5_enable_ssap")?new lnY(U):void 0;var H=U.S("web_cinematic_watch_settings")&&(H=U.L().getWebPlayerContextConfig())!=null&&H.cinematicSettingsAvailable?new vt(U):void 0;var G=new Ne(U);var F=U.S("enable_courses_player_overlay_purchase")?new xNY(U):void 0; var N=g.Cs(U.L())?new XZ8(U):void 0;var e=new iC(U);var B=U.L().j?new FBS(U):void 0;var f=g.ay(U.L())?new J9V(U):void 0;var h=U.S("web_player_move_autonav_toggle")&&U.L().o2?new Vcc(U):void 0;var Q=g.Cs(U.L())?new Lrc(U):void 0;var K=U.S("web_enable_speedmaster")&&g.Cs(U.L())?new bP(U):void 0;var D=U.L().Md?void 0:new jkE(U);var c3=U.S("report_pml_debug_signal")?new LBS(U):void 0;var TV=new Frv(U),U9=new $I(U);var LY=g.pV(U.L())?new xa3(U):void 0;var q=navigator.mediaSession&&window.MediaMetadata&& U.L().VP?new oR(U):void 0;var FE=U.S("html5_enable_drc")&&!U.L().J?new Wt(U):void 0;var B3=new Ak(U);var O9=g.Cs(U.L())?new goE(U):void 0;var tq=U.S("html5_enable_d6de4")?new lP(U):void 0;var Lj=g.Cs(U.L())&&U.S("web_sleep_timer")?new RR(U):void 0;var kl=g.ay(U.L())?new Nuc(U):void 0;var eS=new Be(U),To=new WBX(U),t=new zq9(U);var zV=U.S("enable_sabr_snackbar_message")?new TQv(U):void 0;var Im=U.S("web_enable_timely_actions")?new BQ9(U):void 0;var jL=new Ht(U);var Rm=g.Cs(U.L())?new dH(U):void 0; U=U.S("html5_enable_voice_boost")?new Ky(U):void 0;Y.call(this,A,c,d,T,E,L,r,l,P,V,v,H,G,F,N,e,B,f,h,Q,K,D,c3,TV,U9,LY,void 0,q,FE,B3,void 0,O9,tq,Lj,kl,void 0,eS,To,t,void 0,zV,Im,jL,Rm,U)}; Dy3=function(){this.T=this.Y=NaN}; Inc=function(U,Y){this.MI=U;this.timerName="";this.W=!1;this.T=NaN;this.j=new Dy3;this.Y=Y||null;this.W=!1}; uuV=function(U,Y,A){var c=g.M0(Y.Ww)&&!Y.Ww.J;if(Y.Ww.vl&&(s5(Y.Ww)||Y.Ww.QJ==="shortspage"||dA(Y.Ww)||c)&&!U.W){U.W=!0;U.J=Y.clientPlaybackNonce;g.DQ("TIMING_ACTION")||g5("TIMING_ACTION",U.MI.csiPageType);U.MI.csiServiceName&&g5("CSI_SERVICE_NAME",U.MI.csiServiceName);if(U.Y){c=U.Y.K3();for(var d=g.J(Object.keys(c)),T=d.next();!T.done;T=d.next())T=T.value,Z5(T,c[T],U.timerName);c=g.qY(bcX)(U.Y.W8);g.OX(c,U.timerName);c=U.Y;c.T={};c.W8={}}g.OX({playerInfo:{visibilityState:g.qY(M38)()},playerType:"LATENCY_PLAYER_HTML5"}, U.timerName);U.K!==Y.clientPlaybackNonce||Number.isNaN(U.T)||(yl("_start",U.timerName)?A=g.qY(Ss)("_start",U.timerName)+U.T:g.Md(new g.Do("attempted to log gapless pbs before CSI timeline started",{cpn:Y.clientPlaybackNonce})));A&&!yl("pbs",U.timerName)&&Ex(U,A)}}; Ex=function(U,Y,A){Z5("pbs",Y!=null?Y:(0,g.y)(),A!=null?A:U.timerName)}; K43=function(U,Y,A,c,d,T,E,L){Y=(Y===c?"video":"ad")+"_to_"+(A===c?"video":"ad");if(Y!=="video_to_ad"||E!=null&&E.ov){E=Y==="ad_to_video"?E:d;c=E==null?void 0:E.A3;var r={};if(d==null?0:d.J)r.cttAuthInfo={token:d.J,videoId:d.videoId};T&&(r.startTime=T);gs(Y,r);var l,P,V;d={targetVideoId:(l=d==null?void 0:d.videoId)!=null?l:"empty_video",targetCpn:A,adVideoId:(P=E==null?void 0:E.videoId)!=null?P:"empty_video",adClientPlaybackNonce:(V=c==null?void 0:c.cpn)!=null?V:E==null?void 0:E.clientPlaybackNonce}; c&&(d.adBreakType=c.adBreakType,d.adType=c.adType);g.OX(d,Y);Ex(U,L,Y)}}; oO=function(U){I13();DbX();U.timerName=""}; qpc=function(U){if(U.Y){var Y=U.Y;Y.T={};Y.W8={}}U.W=!1;U.K=void 0;U.T=NaN}; CbY=function(U,Y){g.l6.call(this);this.Ww=U;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.Y=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.X={};this.T=0;if(U=Y.session_data)this.sessionData=Us(U,"&");this.index=Math.max(0,Number(Y.index)||0);this.loop=!!Y.loop;this.startSeconds=Number(Y.startSeconds)||0;this.title=Y.playlist_title||"";this.description=Y.playlist_description||"";this.author= Y.author||Y.playlist_author||"";Y.video_id&&(this.items[this.index]=Y);if(U=Y.api)typeof U==="string"&&U.length===16?Y.list="PL"+U:Y.playlist=U;if(U=Y.list)switch(Y.listType){case "user_uploads":this.listId=new NJ("UU","PLAYER_"+U);break;default:var A=Y.playlist_length;A&&(this.length=Number(A)||0);this.listId=g.tG(U);if(U=Y.video)this.items=U.slice(0),this.loaded=!0}else if(Y.playlist){U=Y.playlist.toString().split(",");this.index>0&&(this.items=[]);U=g.J(U);for(A=U.next();!A.done;A=U.next())(A= A.value)&&this.items.push({video_id:A});this.length=this.items.length;if(U=Y.video)this.items=U.slice(0),this.loaded=!0}this.setShuffle(!!Y.shuffle);if(U=Y.suggestedQuality)this.quality=U;this.X=iN(Y,"playlist_");this.W=(Y=Y.thumbnail_ids)?Y.split(","):[]}; U6c=function(U){return!!(U.playlist||U.list||U.api)}; Y1S=function(U){var Y=U.index+1;return Y>=U.length?0:Y}; AdS=function(U){var Y=U.index-1;return Y<0?U.length-1:Y}; g.zq=function(U,Y,A,c){Y=Y!==void 0?Y:U.index;Y=U.items&&Y in U.items?U.items[U.order[Y]]:null;var d=null;Y&&(A&&(Y.autoplay="1"),c&&(Y.autonav="1"),d=new g.nD(U.Ww,Y),g.Z(U,d),d.QN=!0,d.startSeconds=U.startSeconds||d.clipStart||0,U.listId&&(d.playlistId=U.listId.toString()));return d}; cd8=function(U,Y){U.index=g.Bi(Y,0,U.length-1);U.startSeconds=0}; d6X=function(U,Y){if(Y.video&&Y.video.length){U.title=Y.title||"";U.description=Y.description;U.views=Y.views;U.likes=Y.likes;U.dislikes=Y.dislikes;U.author=Y.author||"";var A=Y.loop;A&&(U.loop=A);A=g.zq(U);U.items=[];for(var c=g.J(Y.video),d=c.next();!d.done;d=c.next())if(d=d.value)d.video_id=d.encrypted_id,U.items.push(d);U.length=U.items.length;(Y=Y.index)?U.index=Y:U.findIndex(A);U.setShuffle(!1);U.loaded=!0;U.T++;U.Y&&U.Y()}}; oj9=function(U,Y){var A,c,d,T,E,L,r;return g.S(function(l){if(l.T==1){A=g.zL();var P=U.L(),V={context:g.cC(U),playbackContext:{contentPlaybackContext:{ancestorOrigins:P.ancestorOrigins}}},v=P.getWebPlayerContextConfig();if(v==null?0:v.encryptedHostFlags)V.playbackContext.contentPlaybackContext.encryptedHostFlags=v.encryptedHostFlags;if(v==null?0:v.hideInfo)V.playerParams={showinfo:!1};P=P.embedConfig;v=Y.docid||Y.video_id||Y.videoId||Y.id;if(!v){v=Y.raw_embedded_player_response;if(!v){var H=Y.embedded_player_response; H&&(v=JSON.parse(H))}if(v){var G,F,N,e,B,f;v=((f=g.O((G=v)==null?void 0:(F=G.embedPreview)==null?void 0:(N=F.thumbnailPreviewRenderer)==null?void 0:(e=N.playButton)==null?void 0:(B=e.buttonRenderer)==null?void 0:B.navigationEndpoint,g.Yp))==null?void 0:f.videoId)||null}else v=null}G=(G=v)?G:void 0;F=U.playlistId?U.playlistId:Y.list;N=Y.listType;if(F){var h;N==="user_uploads"?h={username:F}:h={playlistId:F};TEl(P,G,Y,h);V.playlistRequest=h}else Y.playlist?(h={templistVideoIds:Y.playlist.toString().split(",")}, TEl(P,G,Y,h),V.playlistRequest=h):G&&(h={videoId:G},P&&(h.serializedThirdPartyEmbedConfig=P),V.singleVideoRequest=h);c=V;d=g.AL(Ej3);g.J3(l,2);return g.x(l,g.KK(A,c,d),4)}if(l.T!=2)return T=l.Y,E=U.L(),Y.raw_embedded_player_response=T,E.jX=r3(Y,g.ay(E)),E.W=E.jX==="EMBEDDED_PLAYER_MODE_PFL",T&&(L=T,L.trackingParams&&pJ(L.trackingParams)),l.return(new g.nD(E,Y));r=g.XE(l);r instanceof Error||(r=Error("b259802748"));g.S5(r);return l.return(U)})}; TEl=function(U,Y,A,c){A.index&&(c.playlistIndex=String(Number(A.index)+1));c.videoId=Y?Y:"";U&&(c.serializedThirdPartyEmbedConfig=U)}; g.rH=function(U,Y){LO.get(U);LO.set(U,Y)}; g.lj=function(U){g.l6.call(this);this.loaded=!1;this.player=U}; zXE=function(){this.T=[];this.Y=[]}; g.qf=function(U,Y){return Y?U.Y.concat(U.T):U.Y}; g.Pg=function(U,Y){switch(Y.kind){case "asr":Lx4(Y,U.T);break;default:Lx4(Y,U.Y)}}; Lx4=function(U,Y){g.$z(Y,function(A){return U.equals(A)})||Y.push(U)}; g.VT=function(U){g.p.call(this);this.gW=U;this.T=new zXE;this.j=null;this.K=[];this.Z=[]}; g.$V=function(U,Y,A){g.VT.call(this,U);this.videoData=Y;this.audioTrack=A;this.Y=null;this.W=!1;this.K=Y.P2;this.Z=Y.U5;this.W=g.bI(Y)}; g.rdX=function(U,Y){var A;return U.L().S("safari_live_drm_captions_fix")&&((A=U.getVideoData())==null?0:A.h8())?!1:g.XA(U.L())&&!Y.isManifestless}; g.vg=function(U,Y){return on(U.info.mimeType)?Y?U.info.itag===Y:!0:!1}; g.luc=function(U,Y){if(U.Y!=null&&g.rdX(Y,U.Y)&&U.Y.Y.rawcc!=null)return!0;if(!U.Sc())return!1;Y=!!U.Y&&U.Y.isManifestless&&Object.values(U.Y.Y).some(function(A){return g.vg(A,"386")}); U=!!U.Y&&!U.Y.isManifestless&&g.KUc(U.Y);return Y||U}; g.Hg=function(U,Y,A,c,d,T){g.VT.call(this,U);this.videoId=A;this.WY=d;this.eventId=T;this.J={};this.Y=null;U=c||g.dF(Y).hl||"";U=U.split("_").join("-");this.W=Tw(Y,{hl:U})}; PLX=function(U,Y){return Y?{vu:U.vu&&Y.vu,sync:U.sync&&Y.sync,streaming:U.streaming&&Y.streaming}:U}; $6E=function(U,Y,A){return jc(Vpc(Y,A),t9(function(c){return function T(){return h3(T,function(E){if(E.T==1){g.jS(E,2);try{return E.return(new WebAssembly.Instance(c,U))}catch(L){g.Md(L)}return wX(E,ec(WebAssembly.instantiate(c,U)),4)}if(E.T!=2)return E.return(E.Y);g.Rc(E);return g.xl(E,0)})}()}))}; vj9=function(U,Y){if(!U.Y)return Y=fetch(Y),U.Y=jc(WZ(Y),function(A){return A.arrayBuffer()}),NN(U.Y,function(A){U.Y=void 0; A="wasm module fetch failure: "+A;g.Md(Error(A));throw A;}),Y}; Vpc=function(U,Y){var A=H03;if(A.T)return A.T;var c=PLX(A.capabilities,Y);A.T=J9(function(){return A.W(U,c)}); return A.T}; GvS=function(){}; WxE=function(){var U=this;this.proc_exit=function(){}; this.fd_write=function(Y,A,c){if(!U.exports)return 1;Y=new Uint32Array(U.exports.memory.buffer,A,c*2);A=[];for(var d=0;d=11;U=U.api.L().G&&X_;return!(!Y&&!U)}; pO=function(U,Y){return!U.api.isInline()&&!A$4(U,eh(Y))&&g.Bh(Y)}; Yh4=function(U){U.bB.uX();if(U.B3&&U.Co)U.Co=!1;else if(!U.api.L().Uv&&!U.WK()){var Y=U.api.getPlayerStateObject();g.I(Y,2)&&g.k_(U.api)||U.s4(Y);!U.api.L().VJ||Y.isCued()||g.I(Y,1024)?U.jT():U.mB.isActive()?(U.EW(),U.mB.stop()):U.mB.start()}}; dHX=function(U,Y){var A;if((A=U.api.getVideoData())==null?0:A.mutedAutoplay){var c,d;if((c=Y.target)==null?0:(d=c.className)==null?0:d.includes("ytp-info-panel"))return!1}return g.Bh(Y)&&U.api.isMutedByMutedAutoplay()?(U.api.unMute(),U.api.getPresentingPlayerType()===2&&U.api.playVideo(),Y=U.api.getPlayerStateObject(),!g.I(Y,4)||g.I(Y,8)||g.I(Y,2)||U.jT(),!0):!1}; Tr9=function(U,Y,A){U.api.isFullscreen()?A<1-Y&&U.api.toggleFullscreen():A>1+Y&&U.api.toggleFullscreen()}; UHv=function(U){var Y=gF()&&ZD()>=67&&!U.api.L().G;U=U.api.L().disableOrganicUi;return!g.mm("tizen")&&!Xp&&!Y&&!U}; g.QT=function(U){g.n.call(this,{D:"div",C:[{D:"div",B:"ytp-bezel-text-wrapper",C:[{D:"div",B:"ytp-bezel-text",YE:"{{title}}"}]},{D:"div",B:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},C:[{D:"div",B:"ytp-bezel-icon",YE:"{{icon}}"}]}]});this.U=U;this.T=new g.IM(this.show,10,this);U=this.U.S("delhi_modern_web_player")?1E3:500;this.Y=new g.IM(this.hide,U,this);g.Z(this,this.T);g.Z(this,this.Y);this.hide()}; Ox=function(U,Y,A){if(Y<=0){A=sD();Y="silenciado";var c=0}else A=A?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,V:{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"}}]},c=Math.floor(Y),Y=c+"volumen";Zx(U,A,Y,c+"%")}; Ebl=function(U,Y){Y=Y?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{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"}}]}:WvX();var A=U.U.getPlaybackRate(),c=g.wl("Velocidad: $RATE",{RATE:String(A)});Zx(U,Y,c,A+"x")}; ob8=function(U,Y){Y=Y?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";Zx(U,HJ3(),Y)}; Zx=function(U,Y,A,c){c=c===void 0?"":c;U.updateValue("label",A===void 0?"":A);U.updateValue("icon",Y);g.U4(U.Y);U.T.start();U.updateValue("title",c);g.lg(U.element,"ytp-bezel-text-hide",!c)}; zBY=function(U,Y){g.n.call(this,{D:"button",Iv:["ytp-button","ytp-cards-button"],V:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.ay(U.L()))},C:[{D:"span",B:"ytp-cards-button-icon-default",C:[{D:"div",B:"ytp-cards-button-icon",C:[U.L().S("player_new_info_card_format")?JQc():{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{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"}}]}]}, {D:"div",B:"ytp-cards-button-title",YE:"Informaci\u00f3n"}]},{D:"span",B:"ytp-cards-button-icon-shopping",C:[{D:"div",B:"ytp-cards-button-icon",C:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",B:"ytp-svg-shadow",V:{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"}},{D:"path",B:"ytp-svg-fill",V:{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"}},{D:"path",B:"ytp-svg-shadow-fill",V:{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"}}]}]},{D:"div", B:"ytp-cards-button-title",YE:"Shopping"}]}]});this.U=U;this.T=Y;this.Y=null;this.fade=new g.d1(this,250,!0,100);g.Z(this,this.fade);g.lg(this.T,"ytp-show-cards-title",g.ay(U.L()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.T9(!0)}; Lll=function(U,Y){g.n.call(this,{D:"div",B:"ytp-cards-teaser",C:[{D:"div",B:"ytp-cards-teaser-box"},{D:"div",B:"ytp-cards-teaser-text",C:U.L().S("player_new_info_card_format")?[{D:"button",B:"ytp-cards-teaser-info-icon",V:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},C:[JQc()]},{D:"span",B:"ytp-cards-teaser-label",YE:"{{text}}"},{D:"button",B:"ytp-cards-teaser-close-button",V:{"aria-label":"Cerrar"},C:[g.Nq()]}]:[{D:"span",B:"ytp-cards-teaser-label",YE:"{{text}}"}]}]});var A=this;this.U= U;this.J8=Y;this.fade=new g.d1(this,250,!1,250);this.Y=null;this.G=new g.IM(this.kQv,300,this);this.J=new g.IM(this.Sar,2E3,this);this.j=[];this.T=null;this.Z=new g.IM(function(){A.element.style.margin="0"},250); this.onClickCommand=this.W=null;g.Z(this,this.fade);g.Z(this,this.G);g.Z(this,this.J);g.Z(this,this.Z);U.L().S("player_new_info_card_format")?(g.ou(U.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.As("ytp-cards-teaser-close-button"),"click",this.GC),this.N(this.As("ytp-cards-teaser-info-icon"),"click",this.cD),this.N(this.As("ytp-cards-teaser-label"),"click",this.cD)):this.listen("click",this.cD);this.N(Y.element,"mouseover",this.Zc);this.N(Y.element,"mouseout",this.N8);this.N(U,"cardsteasershow", this.YTX);this.N(U,"cardsteaserhide",this.Kr);this.N(U,"cardstatechange",this.C$);this.N(U,"presentingplayerstatechange",this.C$);this.N(U,"appresize",this.ZJ);this.N(U,"onShowControls",this.ZJ);this.N(U,"onHideControls",this.Ij);this.listen("mouseenter",this.y4)}; r$8=function(U){g.n.call(this,{D:"button",Iv:[mN.BUTTON,mN.TITLE_NOTIFICATIONS],V:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},C:[{D:"div",B:mN.TITLE_NOTIFICATIONS_ON,V:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},C:[g.Ba()]},{D:"div",B:mN.TITLE_NOTIFICATIONS_OFF,V:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"}, C:[{D:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},C:[{D:"path",V:{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=U;this.Y=!1;U.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo")}; lXX=function(U,Y){U.Y=Y;U.element.classList.toggle(mN.NOTIFICATIONS_ENABLED,U.Y);var A=U.api.getVideoData();A?(Y=Y?A.JY:A.IU)?(U=U.api.E$())?u1(U,Y):g.S5(Error("No innertube service available when updating notification preferences.")):g.S5(Error("No update preferences command available.")):g.S5(Error("No video data when updating notification preferences."))}; VM8=function(U,Y,A){var c=c===void 0?800:c;var d=d===void 0?600:d;var T=document.location.protocol;U=Y8l(T+"//"+U+"/signin?context=popup","feature",Y,"next",T+"//"+location.hostname+"/post_login");PKl(U,A,c,d)}; PKl=function(U,Y,A,c){A=A===void 0?800:A;c=c===void 0?600:c;if(U=g.AU(window,U,"loginPopup","width="+A+",height="+c+",resizable=yes,scrollbars=yes"))WmX(function(){Y()}),U.moveTo((screen.width-A)/2,(screen.height-c)/2)}; g.gH=function(U,Y,A,c,d,T,E,L,r,l,P,V){U=U.charAt(0)+U.substring(1).toLowerCase();A=A.charAt(0)+A.substring(1).toLowerCase();if(Y==="0"||Y==="-1")Y=null;if(c==="0"||c==="-1")c=null;var v=P.L(),H=v.userDisplayName&&g.M0(v);g.n.call(this,{D:"div",Iv:["ytp-button","ytp-sb"],C:[{D:"div",B:"ytp-sb-subscribe",V:H?{title:g.wl("Suscribirse como $USER_NAME",{USER_NAME:v.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":Tr(v),"data-tooltip-opaque":String(g.ay(v)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},C:[{D:"div",B:"ytp-sb-text",C:[{D:"div",B:"ytp-sb-icon"},U]},Y?{D:"div",B:"ytp-sb-count",YE:Y}:""]},{D:"div",B:"ytp-sb-unsubscribe",V:H?{title:g.wl("Te has suscrito como $USER_NAME",{USER_NAME:v.userDisplayName}),"aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":Tr(v),"data-tooltip-opaque":String(g.ay(v)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},C:[{D:"div",B:"ytp-sb-text",C:[{D:"div",B:"ytp-sb-icon"},A]}, c?{D:"div",B:"ytp-sb-count",YE:c}:""]}],V:{"aria-live":"polite"}});var G=this;this.channelId=E;this.U=P;this.W=V;var F=this.As("ytp-sb-subscribe"),N=this.As("ytp-sb-unsubscribe");T&&g.ou(this.element,"ytp-sb-classic");if(d){L?this.Y():this.T();var e=function(){if(v.ov){var f=G.channelId;if(r||l){var h={c:f};var Q;g.mB.isInitialized()&&(Q=sd3(h));h=Q||"";if(Q=P.getVideoData())if(Q=Q.subscribeCommand){var K=P.E$();K?(u1(K,Q,{botguardResponse:h,feature:r}),P.Ev("SUBSCRIBE",f)):g.S5(Error("No innertube service available when updating subscriptions."))}else g.S5(Error("No subscribe command in videoData.")); else g.S5(Error("No video data available when updating subscription."))}N.focus();N.removeAttribute("aria-hidden");F.setAttribute("aria-hidden","true")}else VM8(g.D8(G.U.L()),"sb_button",G.j)},B=function(){var f=G.channelId; if(r||l){var h=g.M(P.getVideoData());u1(g.M(P.E$()),h.unsubscribeCommand,{feature:r});P.Ev("UNSUBSCRIBE",f)}F.focus();F.removeAttribute("aria-hidden");N.setAttribute("aria-hidden","true")}; this.N(F,"click",e);this.N(N,"click",B);this.N(F,"keypress",function(f){f.keyCode===13&&e(f)}); this.N(N,"keypress",function(f){f.keyCode===13&&B(f)}); this.N(P,"SUBSCRIBE",this.Y);this.N(P,"UNSUBSCRIBE",this.T);this.W&&H&&(qr9(P),e4(P,F,this),e4(P,N,this))}else g.ou(F,"ytp-sb-disabled"),g.ou(N,"ytp-sb-disabled")}; H9c=function(U){g.n.call(this,{D:"div",B:"ytp-title-channel",C:[{D:"div",B:"ytp-title-beacon"},{D:"a",B:"ytp-title-channel-logo",V:{href:"{{channelLink}}",target:U.L().X,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{D:"div",B:"ytp-title-expanded-overlay",V:{"aria-hidden":"{{flyoutUnfocusable}}"},C:[{D:"div",B:"ytp-title-expanded-heading",C:[{D:"div",B:"ytp-title-expanded-title",C:[{D:"a",YE:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:U.L().X,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{D:"div",B:"ytp-title-expanded-subtitle",YE:"{{expandedSubtitle}}",V:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var Y=this;this.api=U;this.channel=this.As("ytp-title-channel");this.T=this.As("ytp-title-channel-logo");this.channelName=this.As("ytp-title-expanded-title");this.J=this.As("ytp-title-expanded-overlay");this.W=this.Y=this.subscribeButton=null;this.j=!1;U.createClientVe(this.T,this,36925);U.createClientVe(this.channelName,this, 37220);g.ay(this.api.L())&&$HY(this);this.N(U,"videodatachange",this.cw);this.N(U,"videoplayerreset",this.cw);this.N(this.channelName,"click",function(A){Y.api.logClick(Y.channelName);g.AU(window,vb3(Y));A.preventDefault()}); this.N(this.T,"click",this.LHW);this.cw()}; GFc=function(U){if(!U.api.L().R1){var Y=g.M(U.api.getVideoData()),A=new g.gH("Suscribirme",null,"Suscrito",null,!0,!1,Y.DT,Y.subscribed,"channel_avatar",null,U.api,!0);U.api.createServerVe(A.element,U);var c;U.api.setTrackingParams(A.element,((c=Y.subscribeButtonRenderer)==null?void 0:c.trackingParams)||null);U.N(A.element,"click",function(){U.api.logClick(A.element)}); U.subscribeButton=A;g.Z(U,U.subscribeButton);U.subscribeButton.Df(U.J);U.subscribeButton.hide();var d=new r$8(U.api);U.Y=d;g.Z(U,d);d.Df(U.J);d.hide();U.N(U.api,"SUBSCRIBE",function(){Y.eL&&(d.show(),U.api.logVisibility(d.element,!0))}); U.N(U.api,"UNSUBSCRIBE",function(){Y.eL&&(d.hide(),U.api.logVisibility(d.element,!1),lXX(d,!1))})}}; $HY=function(U){var Y=U.api.L();GFc(U);U.updateValue("flyoutUnfocusable","true");U.updateValue("channelTitleFocusable","-1");U.updateValue("shouldHideExpandedTitleForA11y","true");U.updateValue("shouldHideExpandedSubtitleForA11y","true");Y.T||Y.yJ||(U.N(U.channel,"mouseenter",U.yx),U.N(U.channel,"mouseleave",U.Z4),U.N(U.channel,"focusin",U.yx),U.N(U.channel,"focusout",function(A){U.channel.contains(A.relatedTarget)||U.Z4()})); U.W=new g.IM(function(){U.isExpanded()&&(U.api.logVisibility(U.channelName,!1),U.subscribeButton&&(U.subscribeButton.hide(),U.api.logVisibility(U.subscribeButton.element,!1)),U.Y&&(U.Y.hide(),U.api.logVisibility(U.Y.element,!1)),U.channel.classList.remove("ytp-title-expanded"),U.channel.classList.add("ytp-title-show-collapsed"))},500); g.Z(U,U.W);U.N(U.channel,WlY,function(){wkY(U)}); U.N(U.api,"onHideControls",U.OS);U.N(U.api,"appresize",U.OS);U.N(U.api,"fullscreentoggled",U.OS)}; wkY=function(U){U.channel.classList.remove("ytp-title-show-collapsed");U.channel.classList.remove("ytp-title-show-expanded")}; i98=function(U){var Y=U.api.getPlayerSize();return g.ay(U.api.L())&&Y.width>=524}; vb3=function(U){var Y=U.api.L(),A=g.M(U.api.getVideoData()),c=g.EJ(Y)+A.ws;g.UW(A)&&(c="https://music.youtube.com"+A.ws);if(!g.ay(Y))return c;Y={};g.Vj(U.api,"addEmbedsConversionTrackingParams",[Y]);return g.xJ(c,Y)}; yT=function(U){var Y=g.uR({"aria-haspopup":"true"});g.Ir.call(this,Y,U);this.listen("keydown",this.Y)}; nO=function(U,Y){U.element.setAttribute("aria-haspopup",String(Y))}; J$S=function(U,Y){g.n.call(this,{D:"div",B:"ytp-user-info-panel",V:{"aria-label":"Informaci\u00f3n del usuario"},C:U.L().ov&&!U.S("embeds_web_always_enable_signed_out_state")?[{D:"div",B:"ytp-user-info-panel-icon",YE:"{{icon}}"},{D:"div",B:"ytp-user-info-panel-content",C:[{D:"div",B:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable}}",role:"text"},YE:"{{watchingAsUsername}}"},{D:"div",B:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable2}}",role:"text"},YE:"{{watchingAsEmail}}"}]}]: [{D:"div",B:"ytp-user-info-panel-icon",YE:"{{icon}}"},{D:"div",B:"ytp-user-info-panel-content",C:[{D:"div",C:[{D:"text",V:{tabIndex:"{{userInfoFocusable}}"},YE:"Sesi\u00f3n cerrada"}]},{D:"div",B:"ytp-user-info-panel-login",C:[{D:"a",V:{tabIndex:"{{userInfoFocusable2}}",role:"button"},YE:U.L().R1?"":"Inicia sesi\u00f3n en YouTube"}]}]}]});this.gW=U;this.Y=Y;U.L().ov||U.L().R1||this.N(this.As("ytp-user-info-panel-login"),"click",this.cE);this.closeButton=new g.n({D:"button",Iv:["ytp-collapse","ytp-button"], V:{title:"Cerrar"},C:[g.x$()]});this.closeButton.Df(this.element);g.Z(this,this.closeButton);this.N(window,"blur",this.hide);this.N(document,"click",this.gp);this.cw()}; jYc=function(U,Y,A){g.wV.call(this,U);this.o1=Y;this.d1=A;this.getVideoUrl=new yT(6);this.PS=new yT(5);this.Es=new yT(4);this.i9=new yT(3);this.Z3=new g.Ir(g.uR({href:"{{href}}",target:this.U.L().X},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.showVideoInfo=new g.Ir(g.uR(),1,"Estad\u00edsticas para nerds");this.Ee=new g.Ha({D:"div",Iv:["ytp-copytext","ytp-no-contextmenu"],V:{draggable:"false",tabindex:"1"},YE:"{{text}}"});this.KY=new We(this.U,this.Ee);this.Ze=this.u8=null;g.ay(this.U.L())&& (this.closeButton=new g.n({D:"button",Iv:["ytp-collapse","ytp-button"],V:{title:"Cerrar"},C:[g.x$()]}),g.Z(this,this.closeButton),this.closeButton.Df(this.element),this.closeButton.listen("click",this.Ks,this));g.ay(this.U.L())&&(this.Wm=new g.Ir(g.uR(),8,"Cuenta"),g.Z(this,this.Wm),this.gf(this.Wm,!0),this.Wm.listen("click",this.VlX,this),U.createClientVe(this.Wm.element,this.Wm,137682));this.U.L().Us&&(this.VB=new EN("Bucle",7),g.Z(this,this.VB),this.gf(this.VB,!0),this.VB.listen("click",this.FvY, this),U.createClientVe(this.VB.element,this.VB,28661));g.Z(this,this.getVideoUrl);this.gf(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.vsJ,this);U.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.Z(this,this.PS);this.gf(this.PS,!0);this.PS.listen("click",this.s5X,this);U.createClientVe(this.PS.element,this.PS,28660);g.Z(this,this.Es);this.gf(this.Es,!0);this.Es.listen("click",this.AbY,this);U.createClientVe(this.Es.element,this.Es,28658);g.Z(this,this.i9);this.gf(this.i9, !0);this.i9.listen("click",this.WvW,this);g.Z(this,this.Z3);this.gf(this.Z3,!0);this.Z3.listen("click",this.cBI,this);g.Z(this,this.showVideoInfo);this.gf(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.h_Y,this);g.Z(this,this.Ee);this.Ee.listen("click",this.Rys,this);g.Z(this,this.KY);Y=document.queryCommandSupported&&document.queryCommandSupported("copy");uE9("Chromium")>=43&&(Y=!0);uE9("Firefox")<=40&&(Y=!1);Y&&(this.u8=new g.n({D:"textarea",B:"ytp-html5-clipboard",V:{readonly:"", tabindex:"-1"}}),g.Z(this,this.u8),this.u8.Df(this.element));var c;(c=this.Wm)==null||c.setIcon(tAc());var d;(d=this.VB)==null||d.setIcon({D:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.i9.setIcon({D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{"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.Z3.setIcon(wA4());this.showVideoInfo.setIcon(igY());this.N(U,"onLoopChange",this.onLoopChange);this.N(U,"videodatachange",this.onVideoDataChange);Fl8(this);this.ub(g.M(this.U.getVideoData()))}; Dx=function(U,Y){var A=!1;if(U.u8){var c=U.u8.element;c.value=Y;c.select();try{A=document.execCommand("copy")}catch(d){}}A?U.o1.Kr():(U.Ee.CU(Y,"text"),g.Fx(U.o1,U.KY),lC(U.Ee.element),U.u8&&(U.u8=null,Fl8(U)));return A}; Fl8=function(U){var Y=!!U.u8;g.D3(U.i9,Y?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");nO(U.i9,!Y);g.D3(U.Es,Y?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");nO(U.Es,!Y);g.D3(U.getVideoUrl,Y?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");nO(U.getVideoUrl,!Y);g.D3(U.PS,Y?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");nO(U.PS,!Y);U.Es.setIcon(Y?Hg3():null); U.getVideoUrl.setIcon(Y?tA():null);U.PS.setIcon(Y?tA():null)}; NrE=function(U){return g.ay(U.U.L())?U.Wm:U.VB}; eBY=function(U,Y){g.JW.call(this,U);this.d1=Y;this.j=new g.Qy(this);this.Pw=new g.IM(this.v8w,1E3,this);this.Hw=this.W=null;g.Z(this,this.j);g.Z(this,this.Pw);Y=this.U.L();U.createClientVe(this.element,this,28656);g.ou(this.element,"ytp-contextmenu");this.U.L().experiments.lY("delhi_modern_web_player")&&g.Cs(Y)&&g.ou(this.element,"ytp-delhi-modern-contextmenu");tME(this);this.hide()}; tME=function(U){g.Rb(U.j);var Y=U.U.L();Y.playerStyle==="gvn"||Y.T||Y.yJ||(Y=U.U.Cy(),U.j.N(Y,"contextmenu",U.EtJ),U.j.N(Y,"touchstart",U.onTouchStart,null,!0),U.j.N(Y,"touchmove",U.G_,null,!0),U.j.N(Y,"touchend",U.G_,null,!0))}; BrE=function(U){U.U.isFullscreen()?g.S4(U.U,U.element,10):U.Df(g_(U).body)}; IO=function(U,Y,A){A=A===void 0?240:A;g.n.call(this,{D:"button",Iv:["ytp-button","ytp-copylink-button"],V:{title:"{{title-attr}}","data-tooltip-opaque":String(g.ay(U.L()))},C:[{D:"div",B:"ytp-copylink-icon",YE:"{{icon}}"},{D:"div",B:"ytp-copylink-title",YE:"Copiar enlace",V:{"aria-hidden":"true"}}]});this.api=U;this.Y=Y;this.T=A;this.visible=!1;this.tooltip=this.Y.wq();Y=U.L();this.tooltip.element.setAttribute("aria-live","polite");g.lg(this.element,"ytp-show-copylink-title",g.ay(Y));U.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.N(U,"videodatachange",this.cw);this.N(U,"videoplayerreset",this.cw);this.N(U,"appresize",this.cw);this.cw();this.addOnDisposeCallback(g.tl(this.tooltip,this.element))}; XkV=function(U){var Y=U.api.L(),A=g.M(U.api.getVideoData()),c=U.api.Cy().getPlayerSize().width;Y=Y.W;return!!A.videoId&&c>=U.T&&A.Gy&&!g.Ck(A)&&!U.api.isEmbedsShortsMode()&&!Y}; kF9=function(U){U.updateValue("icon",JA());if(U.api.L().T)U.tooltip.jn(U.element,"Se ha copiado el enlace en el portapapeles.");else{U.updateValue("title-attr","Se ha copiado el enlace en el portapapeles.");U.tooltip.Aa();U.tooltip.jn(U.element);var Y=U.listen("mouseleave",function(){U.FY(Y);U.cw();U.tooltip.ye()})}}; RBV=function(U,Y){return g.S(function(A){if(A.T==1)return g.J3(A,2),g.x(A,navigator.clipboard.writeText(Y),4);if(A.T!=2)return A.return(!0);g.XE(A);var c=A.return,d=!1,T=g.qs("TEXTAREA");T.value=Y;T.setAttribute("readonly","");var E=U.api.getRootNode();E.appendChild(T);if(DN){var L=window.getSelection();L.removeAllRanges();var r=g.M(document.createRange());r.selectNodeContents(T);L.addRange(r);T.setSelectionRange(0,Y.length)}else T.select();try{d=document.execCommand("copy")}catch(l){}E.removeChild(T); return c.call(A,d)})}; aXc=function(U){g.n.call(this,{D:"div",B:"ytp-doubletap-ui-legacy",C:[{D:"div",B:"ytp-doubletap-fast-forward-ve"},{D:"div",B:"ytp-doubletap-rewind-ve"},{D:"div",B:"ytp-doubletap-static-circle",C:[{D:"div",B:"ytp-doubletap-ripple"}]},{D:"div",B:"ytp-doubletap-overlay-a11y"},{D:"div",B:"ytp-doubletap-seek-info-container",C:[{D:"div",B:"ytp-doubletap-arrows-container",C:[{D:"span",B:"ytp-doubletap-base-arrow"},{D:"span",B:"ytp-doubletap-base-arrow"},{D:"span",B:"ytp-doubletap-base-arrow"}]},{D:"div", B:"ytp-doubletap-tooltip",C:[{D:"div",B:"ytp-seek-icon-text-container",C:[{D:"div",B:"ytp-seek-icon",YE:"{{seekIcon}}"},{D:"div",B:"ytp-chapter-seek-text-legacy",YE:"{{seekText}}"}]},{D:"div",B:"ytp-doubletap-tooltip-label",YE:"{{seekTime}}"}]}]}]});this.U=U;this.j=new g.IM(this.show,10,this);this.T=new g.IM(this.hide,700,this);this.G=this.W=0;this.Pw=this.J=!1;this.Y=this.As("ytp-doubletap-static-circle");g.Z(this,this.j);g.Z(this,this.T);this.hide();this.Z=this.As("ytp-doubletap-fast-forward-ve"); this.X=this.As("ytp-doubletap-rewind-ve");this.U.createClientVe(this.Z,this,28240);this.U.createClientVe(this.X,this,28239);this.U.logVisibility(this.Z,!0);this.U.logVisibility(this.X,!0);this.J=U.S("web_show_cumulative_seek_time");this.Pw=U.S("web_center_static_circles")}; xHv=function(U,Y){Y=g.wl("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:Y.toString()});U.updateValue("seekTime",Y)}; sYS=function(U){GS.call(this,U,!1,!0);this.jX=[];this.mH=[];this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.QJ=new g.n({D:"div",B:"ytp-featured-product-open-in-new"});g.Z(this,this.QJ);this.countdownTimer=new g.n({D:"text",B:"ytp-featured-product-countdown",YE:"{{content}}"});this.countdownTimer.hide();g.Z(this,this.countdownTimer);this.T=new g.n({D:"div",B:"ytp-featured-product-trending",C:[{D:"div",B:"ytp-featured-product-trending-icon"},{D:"text",B:"ytp-featured-product-trending-text", YE:"{{trendingOffer}}"}]});this.T.hide();g.Z(this,this.T);this.overflowButton=new g.n({D:"button",Iv:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.G=new g.n({D:"text",B:"ytp-featured-product-exclusive-countdown",YE:"{{content}}",V:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.Z(this,this.G);this.J=new g.n({D:"div",B:"ytp-featured-product-exclusive-container",V:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, C:[{D:"div",B:"ytp-featured-product-exclusive-badge-container",C:[{D:"div",B:"ytp-featured-product-exclusive-badge",C:[{D:"text",B:"ytp-featured-product-exclusive-badge-text",YE:"{{exclusive}}",V:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.J.hide();g.Z(this,this.J);this.banner=new g.n({D:"a",B:"ytp-featured-product-container",C:[{D:"div",B:"ytp-featured-product-thumbnail",C:[{D:"img",V:{src:"{{thumbnail}}"}},this.QJ]},{D:"div",B:"ytp-featured-product-details",C:[{D:"text",B:"ytp-featured-product-title", YE:"{{title}}"},this.U.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",B:"ytp-featured-product-price-container",V:{"aria-label":"{{priceA11yText}}"},C:[{D:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",YE:"{{price}}",V:{"aria-hidden":"true"}},{D:"text",B:"ytp-featured-product-promotion-text",YE:"{{promotionText}}",V:{"aria-hidden":"true"}}]}:{D:"div",V:{"aria-label":"{{priceA11yText}}"},C:[{D:"text",B:"ytp-featured-product-price",YE:"{{price}}", V:{"aria-hidden":"true"}},{D:"text",B:"ytp-featured-product-sales-original-price",YE:"{{salesOriginalPrice}}",V:{"aria-hidden":"true"}},{D:"text",B:"ytp-featured-product-price-drop-reference-price",YE:"{{priceDropReferencePrice}}",V:{"aria-hidden":"true"}}]},this.U.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",B:"ytp-featured-product-when-promotion-text-enabled",C:[{D:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",YE:"{{affiliateDisclaimer}}"}, this.T,{D:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",YE:"{{vendor}}"}]}:{D:"div",C:[{D:"text",B:"ytp-featured-product-affiliate-disclaimer",YE:"{{affiliateDisclaimer}}"},this.U.S("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.J:null,this.T,{D:"text",B:"ytp-featured-product-vendor",YE:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.Z(this,this.banner);this.banner.Df(this.W.element);this.N(this.U,g.zf("featured_product"),this.Bvy);this.N(this.U, g.LS("featured_product"),this.bd);this.N(this.U,"videodatachange",this.onVideoDataChange);this.N(this.overflowButton.element,"click",this.zC);this.N(U,"featuredproductdismissed",this.L0)}; fXl=function(U){var Y,A;U=(Y=U.Y)==null?void 0:(A=Y.bannerData)==null?void 0:A.itemData;var c,d,T;return(U==null||!U.affiliateDisclaimer)&&(U==null?0:(c=U.exclusivesData)==null?0:c.exclusiveOfferLabelText)&&(U==null?0:(d=U.exclusivesData)==null?0:d.expirationTimestampMs)&&(U==null?0:(T=U.exclusivesData)==null?0:T.exclusiveOfferCountdownText)?!0:!1}; ShS=function(U){var Y,A,c,d,T=(Y=U.Y)==null?void 0:(A=Y.bannerData)==null?void 0:(c=A.itemData)==null?void 0:(d=c.exclusivesData)==null?void 0:d.expirationTimestampMs;Y=(Number(T)-Date.now())/1E3;if(Y>0){if(Y<604800){var E,L,r,l;A=(E=U.Y)==null?void 0:(L=E.bannerData)==null?void 0:(r=L.itemData)==null?void 0:(l=r.exclusivesData)==null?void 0:l.exclusiveOfferCountdownText;if(A!==void 0)for(E=Date.now(),L=g.J(A),r=L.next();!r.done;r=L.next())if(r=r.value,r!==void 0&&r.text!==void 0&&(l=Number(r.textDisplayStartTimestampMs), !isNaN(l)&&E>=l)){r.insertCountdown?(Y=r.text.replace(/\$0/,String(kk({seconds:Y}))),U.G.CU(Y)):U.G.CU(r.text);U.G.show();break}}var P,V,v,H;U.J.update({exclusive:(P=U.Y)==null?void 0:(V=P.bannerData)==null?void 0:(v=V.itemData)==null?void 0:(H=v.exclusivesData)==null?void 0:H.exclusiveOfferLabelText});U.J.show();uj(U);var G;(G=U.Lr)==null||G.start()}else hBX(U)}; hBX=function(U){var Y;(Y=U.Lr)==null||Y.stop();U.G.hide();U.J.hide();KO(U)}; MMX=function(U){var Y,A,c=(Y=U.Y)==null?void 0:(A=Y.bannerData)==null?void 0:A.itemData;return U.U.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(c==null||!c.priceReplacementText)&&(c==null?0:c.promotionText)?c==null?void 0:c.promotionText.content:null}; b9l=function(U){var Y,A,c=(Y=U.Y)==null?void 0:(A=Y.bannerData)==null?void 0:A.itemData,d,T;if(!(c!=null&&c.priceReplacementText||U.U.S("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(c==null?0:(d=c.dealsData)==null?0:(T=d.sales)==null?0:T.originalPrice)){var E,L;return c==null?void 0:(E=c.dealsData)==null?void 0:(L=E.sales)==null?void 0:L.originalPrice}return null}; pkE=function(U){var Y,A,c=(Y=U.Y)==null?void 0:(A=Y.bannerData)==null?void 0:A.itemData,d,T,E,L;if(!((c==null?0:c.priceReplacementText)||U.U.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(c==null?0:(d=c.dealsData)==null?0:(T=d.sales)==null?0:T.originalPrice))&&(c==null?0:(E=c.dealsData)==null?0:(L=E.priceDrop)==null?0:L.referencePrice)){var r,l;return c==null?void 0:(r=c.dealsData)==null?void 0:(l=r.priceDrop)==null?void 0:l.referencePrice}return null}; QYv=function(U){var Y,A,c=(Y=U.Y)==null?void 0:(A=Y.bannerData)==null?void 0:A.itemData;if(c==null?0:c.priceReplacementText)return c==null?void 0:c.priceReplacementText;if((c==null?0:c.promotionText)&&U.U.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var d;return(c==null?void 0:c.price)+" "+(c==null?void 0:(d=c.promotionText)==null?void 0:d.content)}var T,E;if(c==null?0:(T=c.dealsData)==null?0:(E=T.sales)==null?0:E.originalPrice){var L,r;return c==null?void 0:(L=c.dealsData)== null?void 0:(r=L.sales)==null?void 0:r.salesPriceAccessibilityLabel}var l,P;if(c==null?0:(l=c.dealsData)==null?0:(P=l.priceDrop)==null?0:P.referencePrice){var V,v;return(c==null?void 0:c.price)+" "+(c==null?void 0:(V=c.dealsData)==null?void 0:(v=V.priceDrop)==null?void 0:v.referencePrice)}return c==null?void 0:c.price}; Z9X=function(U){if(U.U.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Y,A,c;return U.T.Mz?null:(Y=U.Y)==null?void 0:(A=Y.bannerData)==null?void 0:(c=A.itemData)==null?void 0:c.vendorName}var d,T,E,L,r,l;return U.T.Mz||U.J.Mz||((d=U.Y)==null?0:(T=d.bannerData)==null?0:(E=T.itemData)==null?0:E.affiliateDisclaimer)?null:(L=U.Y)==null?void 0:(r=L.bannerData)==null?void 0:(l=r.itemData)==null?void 0:l.vendorName}; mHc=function(U,Y){q5(U);if(Y){var A=g.dS.getState().entities;A=cR(A,"featuredProductsEntity",Y);if(A!=null&&A.productsData){Y=[];A=g.J(A.productsData);for(var c=A.next();!c.done;c=A.next()){c=c.value;var d=void 0;if((d=c)!=null&&d.identifier&&c.featuredSegments){U.jX.push(c);var T=void 0;d=g.J((T=c)==null?void 0:T.featuredSegments);for(T=d.next();!T.done;T=d.next()){var E=T.value;T=O9X(E.startTimeSec);T!==void 0&&(E=O9X(E.endTimeSec),Y.push(new g.EE(T*1E3,E===void 0?0x7ffffffffffff:E*1E3,{id:c.identifier, namespace:"featured_product"})))}}}U.U.VT(Y)}}}; KO=function(U){if(U.trendingOfferEntityKey){var Y=g.dS.getState().entities;if(Y=cR(Y,"trendingOfferEntity",U.trendingOfferEntityKey)){var A,c,d;Y.encodedSkuId!==((A=U.Y)==null?void 0:(c=A.bannerData)==null?void 0:(d=c.itemData)==null?void 0:d.encodedOfferSkuId)?uj(U):(U.T.update({trendingOffer:Y.shortLabel+" \u2022 "+Y.countLabel}),U.T.show(),U.banner.update({vendor:Z9X(U)}))}else uj(U)}else uj(U)}; uj=function(U){U.T.hide();U.banner.update({vendor:Z9X(U)})}; q5=function(U){U.jX=[];U.bd();U.U.OH("featured_product")}; gbS=function(U){var Y,A,c,d,T=(Y=U.Y)==null?void 0:(A=Y.bannerData)==null?void 0:(c=A.itemData)==null?void 0:(d=c.hiddenProductOptions)==null?void 0:d.dropTimestampMs;Y=(Number(T)-Date.now())/1E3;U.countdownTimer.CU(kk({seconds:Y}));if(Y>0){var E;(E=U.AP)==null||E.start()}}; y$X=function(U){var Y;(Y=U.AP)==null||Y.stop();U.countdownTimer.hide()}; O9X=function(U){if(U!==void 0&&U.trim()!==""&&(U=Math.trunc(Number(U.trim())),!(isNaN(U)||U<0)))return U}; Kl3=function(U,Y,A){g.n.call(this,{D:"div",Iv:["ytp-info-panel-action-item"],C:[{D:"div",B:"ytp-info-panel-action-item-disclaimer",YE:"{{disclaimer}}"},{D:"a",Iv:["ytp-info-panel-action-item-button","ytp-button"],V:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},C:[{D:"div",B:"ytp-info-panel-action-item-icon",YE:"{{icon}}"},{D:"div",B:"ytp-info-panel-action-item-label",YE:"{{label}}"}]}]});this.U=U;this.Y=A;this.disclaimer=this.As("ytp-info-panel-action-item-disclaimer");this.button= this.As("ytp-info-panel-action-item-button");this.Bp=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);U="";A=g.O(Y==null?void 0:Y.onTap,p$);var c=g.O(A,g.pW);this.Bp=!1;c?(U=c.url||"",U.startsWith("//")&&(U="https:"+U),this.Bp=!0,g.uh(this.button,g.Dz(U))):(c=g.O(A,nb8))&&!this.Y?((U=c.phoneNumbers)&&U.length>0?(U="sms:"+U[0],c.messageText&&(U+="?&body="+encodeURI(c.messageText))):U="",this.Bp=!0,g.uh(this.button,g.Dz(U,[DHY]))):(A=g.O(A,IXc))&&!this.Y&&(U=A.phoneNumber? "tel:"+A.phoneNumber:"",this.Bp=!0,g.uh(this.button,g.Dz(U,[uy4])));var d;if(A=(d=Y.disclaimerText)==null?void 0:d.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var T;this.update({label:(T=Y.bodyText)==null?void 0:T.content,icon:Xs(),disclaimer:A})}else{this.disclaimer.style.display="none";var E;this.update({label:(E=Y.bodyText)==null?void 0:E.content,icon:Xs()})}this.U.setTrackingParams(this.element,Y.trackingParams||null);this.Bp&&(this.T={externalLinkData:{url:U}})}; qhX=function(U,Y){var A=Pa();g.my.call(this,U,{D:"div",B:"ytp-info-panel-detail-skrim",C:[{D:"div",B:"ytp-info-panel-detail",V:{role:"dialog",id:A},C:[{D:"div",B:"ytp-info-panel-detail-header",C:[{D:"div",B:"ytp-info-panel-detail-title",YE:"{{title}}"},{D:"button",Iv:["ytp-info-panel-detail-close","ytp-button"],V:{"aria-label":"Cerrar"},C:[g.Nq()]}]},{D:"div",B:"ytp-info-panel-detail-body",YE:"{{body}}"},{D:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.Y=Y;this.items=this.As("ytp-info-panel-detail-items"); this.W=new g.Qy(this);this.itemData=[];this.j=A;this.N(this.As("ytp-info-panel-detail-close"),"click",this.Kr);this.N(this.As("ytp-info-panel-detail-skrim"),"click",this.Kr);this.N(this.As("ytp-info-panel-detail"),"click",function(c){c.stopPropagation()}); g.Z(this,this.W);this.U.createServerVe(this.element,this,!0);this.N(U,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",U.getVideoData());this.hide()}; CKS=function(U,Y){U=g.J(U.itemData);for(var A=U.next();!A.done;A=U.next())A=A.value,A.U.logVisibility(A.element,Y)}; AnX=function(U,Y){g.n.call(this,{D:"div",B:"ytp-info-panel-preview",V:{"aria-live":"assertive","aria-atomic":"true","aria-owns":Y.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.ay(U.L()))},C:[{D:"div",B:"ytp-info-panel-preview-text",YE:"{{text}}"},{D:"div",B:"ytp-info-panel-preview-chevron",YE:"{{chevron}}"}]});var A=this;this.U=U;this.g1=this.Y=this.videoId=null;this.W=this.showControls=this.T=!1;this.N(this.element,"click",function(){U.logClick(A.element);U.WK();yj(Y)}); this.fade=new g.d1(this,250,!1,100);g.Z(this,this.fade);this.U.createServerVe(this.element,this,!0);this.N(U,"videodatachange",this.onVideoDataChange);this.N(U,"presentingplayerstatechange",this.bF);this.N(this.U,"paidcontentoverlayvisibilitychange",this.nC);this.N(this.U,"infopaneldetailvisibilitychange",this.nC);var c=U.getVideoData()||{};U14(c)&&YLX(this,c);this.N(U,"onShowControls",this.tR);this.N(U,"onHideControls",this.mx)}; YLX=function(U,Y){if(!Y.VU||!U.U.mD()){var A=Y.oO||1E4,c=U14(Y);U.Y?Y.videoId&&Y.videoId!==U.videoId&&(g.U4(U.Y),U.videoId=Y.videoId,c?(cnl(U,A,Y),U.fU()):(U.Kr(),U.Y.dispose(),U.Y=null)):c&&(Y.videoId&&(U.videoId=Y.videoId),cnl(U,A,Y),U.fU())}}; U14=function(U){var Y,A,c,d;return!!((Y=U.mA)==null?0:(A=Y.title)==null?0:A.content)||!!((c=U.mA)==null?0:(d=c.bodyText)==null?0:d.content)}; cnl=function(U,Y,A){U.Y&&U.Y.dispose();U.Y=new g.IM(U.qyJ,Y,U);g.Z(U,U.Y);var c;Y=((c=A.mA)==null?void 0:c.trackingParams)||null;U.U.setTrackingParams(U.element,Y);var d;var T,E;if(A==null?0:(T=A.mA)==null?0:(E=T.title)==null?0:E.content){var L;c=(d=A.mA)==null?void 0:(L=d.title)==null?void 0:L.content;var r,l;if((r=A.mA)==null?0:(l=r.bodyText)==null?0:l.content)c+=" \u2022 ";d=c}else d="";var P,V;A=((P=A.mA)==null?void 0:(V=P.bodyText)==null?void 0:V.content)||"";U.update({text:d+A,chevron:g.jb()})}; d1l=function(U,Y){U.Y&&(g.I(Y,8)?(U.T=!0,U.fU(),U.Y.start()):(g.I(Y,2)||g.I(Y,64))&&U.videoId&&(U.videoId=null))}; CO=function(U){var Y=null;try{Y=U.toLocaleString("es",{style:"percent"})}catch(A){Y=U.toLocaleString(void 0,{style:"percent"})}return Y}; U0=function(U,Y){var A=0;U=g.J(U);for(var c=U.next();!(c.done||c.value.startTime>Y);c=U.next())A++;return A===0?A:A-1}; TGE=function(U,Y){for(var A=0,c=g.J(U),d=c.next();!d.done;d=c.next()){d=d.value;if(Y=d.timeRangeStartMillis&&Y0?Y[0]:null;var A=g.y7("ytp-chrome-bottom"),c=g.y7("ytp-ad-module");U.j=!(A==null||!A.contains(Y));U.Z=!(c==null||!c.contains(Y));U.X=!(Y==null||!Y.hasAttribute("data-tooltip-target-fixed"));return Y}; FgV=function(U,Y,A){if(!U.J){if(Y){U.tooltipRenderer=Y;Y=U.tooltipRenderer.text;var c=!1,d;(Y==null?0:(d=Y.runs)==null?0:d.length)&&Y.runs[0].text&&(U.update({title:Y.runs[0].text.toString()}),c=!0);g.up(U.title,c);Y=U.tooltipRenderer.detailsText;d=!1;var T;if((Y==null?0:(T=Y.runs)==null?0:T.length)&&Y.runs[0].text){c=Y.runs[0].text.toString();T=c.indexOf("$TARGET_ICON");if(T>-1)if(U.tooltipRenderer.targetId){Y=[];c=c.split("$TARGET_ICON");var E=new g.Vu({D:"span",B:"ytp-promotooltip-details-icon", C:[iEc[U.tooltipRenderer.targetId]]});g.Z(U,E);for(var L=[],r=g.J(c),l=r.next();!l.done;l=r.next())l=new g.Vu({D:"span",B:"ytp-promotooltip-details-component",YE:l.value}),g.Z(U,l),L.push(l);c.length===2?(Y.push(L[0].element),Y.push(E.element),Y.push(L[1].element)):c.length===1&&(T===0?(Y.push(E.element),Y.push(L[0].element)):(Y.push(L[0].element),Y.push(E.element)));T=Y.length?Y:null}else T=null;else T=c;if(T){if(typeof T!=="string")for(g.YJ(U.details),d=g.J(T),T=d.next();!T.done;T=d.next())U.details.appendChild(T.value); else U.update({details:T});d=!0}}g.up(U.details,d);d=U.tooltipRenderer.acceptButton;T=!1;var P,V,v;((P=g.O(d,g.ZK))==null?0:(V=P.text)==null?0:(v=V.runs)==null?0:v.length)&&g.O(d,g.ZK).text.runs[0].text&&(U.update({acceptButtonText:g.O(d,g.ZK).text.runs[0].text.toString()}),T=!0);g.up(U.acceptButton,T);P=U.tooltipRenderer.dismissButton;V=!1;var H,G,F;((H=g.O(P,g.ZK))==null?0:(G=H.text)==null?0:(F=G.runs)==null?0:F.length)&&g.O(P,g.ZK).text.runs[0].text&&(U.update({dismissButtonText:g.O(P,g.ZK).text.runs[0].text.toString()}), V=!0);g.up(U.dismissButton,V)}A&&(U.W=A);U.Y=w2l(U);U.G=!1;U.U.L().S("web_player_hide_nitrate_promo_tooltip")||U.PQ(!0);JnX(U);U.Mz&&!U.Pw&&(U.Pw=!0,U.o5.w0(0));U.T&&U.U.logVisibility(U.element,U.Mz)}}; oG=function(U){U.PQ(!1);U.T&&U.U.logVisibility(U.element,U.Mz)}; j23=function(U){var Y,A,c,d=((Y=g.O(U.acceptButton,g.ZK))==null?void 0:(A=Y.text)==null?void 0:(c=A.runs)==null?void 0:c.length)&&!!g.O(U.acceptButton,g.ZK).text.runs[0].text,T,E,L;Y=((T=g.O(U.dismissButton,g.ZK))==null?void 0:(E=T.text)==null?void 0:(L=E.runs)==null?void 0:L.length)&&!!g.O(U.dismissButton,g.ZK).text.runs[0].text;return d||Y}; JnX=function(U){var Y;if(!(Y=!U.Y)){Y=U.Y;var A=window.getComputedStyle(Y);Y=A.display==="none"||A.visibility==="hidden"||Y.getAttribute("aria-hidden")==="true"}if(Y||U.U.isMinimized())U.PQ(!1);else if(Y=g.Ig(U.Y),Y.width&&Y.height){U.U.D0(U.element,U.Y);var c=U.U.Cy().getPlayerSize().height;A=g.Ig(U.As("ytp-promotooltip-container")).height;U.j?U.element.style.top=c-A-Y.height-12+"px":U.X||(c=U.U.aX().height-A-Y.height-12,U.element.style.top=c+"px");c=U.As("ytp-promotooltip-pointer");var d=g.nx(U.Y, U.U.getRootNode()),T=Number(U.element.style.left.replace(/[^\d\.]/g,""));U=U.U.isFullscreen()?18:12;c.style.left=d.x-T+Y.width/2-U+"px";c.style.top=A+"px"}else U.PQ(!1)}; zM=function(U){g.n.call(this,{D:"button",Iv:["ytp-replay-button","ytp-button"],V:{title:"Ver de nuevo"},C:[g.R8()]});this.U=U;this.N(U,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.l9(U.getPlayerStateObject());e4(this.U,this.element,this)}; L8=function(U,Y){Y=Y===void 0?240:Y;g.n.call(this,{D:"button",Iv:["ytp-button","ytp-search-button"],V:{title:"Buscar","data-tooltip-opaque":String(g.ay(U.L()))},C:[{D:"div",B:"ytp-search-icon",YE:"{{icon}}"},{D:"div",B:"ytp-search-title",YE:"Buscar"}]});this.api=U;this.T=Y;this.visible=!1;this.updateValue("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},C:[{D:"path",B:"ytp-svg-fill",V:{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"}}]}); U.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.Y();this.N(U,"appresize",this.Y);this.N(U,"videodatachange",this.Y);e4(U,this.element,this)}; rJ=function(U){g.n.call(this,{D:"div",B:"ytp-seek-overlay",C:[{D:"div",Iv:["ytp-seek-overlay-side-container","ytp-seek-overlay-back"],C:[{D:"div",Iv:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-back"]}]},{D:"div",Iv:["ytp-seek-overlay-side-container","ytp-seek-overlay-forward"],C:[{D:"div",Iv:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-forward"]}]},{D:"div",B:"ytp-seek-overlay-message",C:[{D:"div",B:"ytp-seek-overlay-message-icon",YE:"{{icon}}"}, {D:"div",B:"ytp-seek-overlay-message-text",YE:"{{text}}"}]}]});this.U=U;this.T=0;this.J=!1;this.Y=this.As("ytp-seek-overlay-arrow-container-back");this.W=this.As("ytp-seek-overlay-arrow-container-forward");this.Z=this.As("ytp-seek-overlay-message");this.U.createClientVe(this.W,this,28240);this.U.createClientVe(this.Y,this,28239);this.U.logVisibility(this.W,!0);this.U.logVisibility(this.Y,!0);this.hide()}; e49=function(U,Y,A){U.show();NG9(U,Y);A!==void 0&&tO3(U,Y,A)}; NG9=function(U,Y){var A=new g.Vu({D:"svg",B:"ytp-seek-overlay-arrow",V:{viewBox:"0 0 100 100"},C:[{D:"path",B:"ytp-seek-overlay-arrow-path",V:{d:Y===-1?"M 80 20 L 50 50 L 80 80":"M 20 20 L 50 50 L 20 80",fill:"none",stroke:"white","stroke-width":"10"}}]});g.Z(U,A);Y===-1?A.Df(U.Y):A.Df(U.W);var c=A.element;c.animate([{translate:Y===-1?"30px":"-30px",scale:"1.4 0.4",opacity:0,easing:"ease"},{offset:.15,opacity:"1",easing:"ease"},{offset:.5,translate:"0",scale:"1 1",easing:"ease"}],{duration:800}).addEventListener("finish", function(){c.remove();BGv(U)}); A.As("ytp-seek-overlay-arrow-path").animate([{strokeWidth:"0"},{offset:.5,strokeWidth:"10"},{offset:.7,strokeWidth:"10"},{offset:1,strokeWidth:"0"}],{duration:800,easing:"ease"})}; tO3=function(U,Y,A){U.G!==Y&&(U.T=0,U.G=Y);U.T+=A;A=new g.Vu({D:"div",B:"ytp-seek-overlay-duration",YE:Y===-1?"\u2212"+g.eR(U.T):"+"+g.eR(U.T)});g.Z(U,A);Y===-1?A.Df(U.Y):A.Df(U.W);U.j&&U.j.animate([{offset:0},{offset:1,opacity:0}],{duration:300,easing:"ease",fill:"forwards"});var c=A.element;U.j=c;c.animate([{offset:0,scale:.5,opacity:0,easing:"ease-out"},{offset:.5,scale:1,opacity:1},{offset:.8,scale:1,opacity:1},{offset:1,opacity:0}],{duration:800,easing:"ease"}).addEventListener("finish",function(){c.remove(); U.j===c&&(U.j=void 0);BGv(U)})}; X2X=function(U,Y,A){U.updateValue("text",Y);if(A){a:{switch(A){case "PREMIUM_STANDALONE":Y=XAv();break a;case "PREMIUM_STANDALONE_CAIRO":Y=k13();break a}Y=void 0}U.updateValue("icon",Y)}Y=g.J(U.Z.getAnimations());for(A=Y.next();!A.done;A=Y.next())A.value.cancel();U.J=!0;U.Z.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:800}).addEventListener("finish",function(){U.J=!1;BGv(U);U.updateValue("text","");U.updateValue("icon","")})}; BGv=function(U){U.Y.children.length!==0||U.W.children.length!==0||U.J||U.hide()}; g.l$=function(U,Y,A,c){c=c===void 0?240:c;g.n.call(this,{D:"button",Iv:["ytp-button","ytp-share-button"],V:{title:"Compartir","aria-haspopup":"true","aria-owns":A.element.id,"data-tooltip-opaque":String(g.ay(U.L()))},C:[{D:"div",B:"ytp-share-icon",YE:"{{icon}}"},{D:"div",B:"ytp-share-title",YE:"Compartir"}]});this.api=U;this.Y=Y;this.W=A;this.j=c;this.T=this.visible=!1;this.tooltip=this.Y.wq();U.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.N(U,"videodatachange",this.cw); this.N(U,"videoplayerreset",this.cw);this.N(U,"appresize",this.cw);this.N(U,"presentingplayerstatechange",this.cw);this.cw();this.addOnDisposeCallback(g.tl(this.tooltip,this.element))}; kRX=function(U){var Y=U.api.L(),A=g.M(U.api.getVideoData()),c=g.ay(Y)&&g.x_(U.api)&&g.I(U.api.getPlayerStateObject(),128);Y=Y.W||Y.disableSharing&&U.api.getPresentingPlayerType()!==2||!A.showShareButton||A.Gy||c||g.Ck(A)||U.T;c=U.api.Cy().getPlayerSize().width;return!!A.videoId&&c>=U.j&&!Y}; R44=function(U,Y){Y.name!=="InvalidStateError"&&Y.name!=="AbortError"&&(Y.name==="NotAllowedError"?(U.Y.WK(),yj(U.W,U.element,!1)):g.S5(Y))}; x1S=function(U,Y){var A=Pa(),c=U.L();A={D:"div",B:"ytp-share-panel",V:{id:Pa(),role:"dialog","aria-labelledby":A},C:[{D:"div",B:"ytp-share-panel-inner-content",C:[{D:"div",B:"ytp-share-panel-title",V:{id:A},YE:"Compartir"},{D:"a",Iv:["ytp-share-panel-link","ytp-no-contextmenu"],V:{href:"{{link}}",target:c.X,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},YE:"{{linkText}}"},{D:"label",B:"ytp-share-panel-include-playlist",C:[{D:"input",B:"ytp-share-panel-include-playlist-checkbox", V:{type:"checkbox",checked:"true"}},"Incluir lista de reproducci\u00f3n"]},{D:"div",B:"ytp-share-panel-loading-spinner",C:[rC()]},{D:"div",B:"ytp-share-panel-service-buttons",YE:"{{buttons}}"},{D:"div",B:"ytp-share-panel-error",YE:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{D:"button",Iv:["ytp-share-panel-close","ytp-button"],V:{title:"Cerrar"},C:[g.Nq()]}]};g.my.call(this,U,A,250);var d=this;this.moreButton=null;this.api= U;this.tooltip=Y.wq();this.W=[];this.J=this.As("ytp-share-panel-inner-content");this.closeButton=this.As("ytp-share-panel-close");this.N(this.closeButton,"click",this.Kr);this.addOnDisposeCallback(g.tl(this.tooltip,this.closeButton));this.j=this.As("ytp-share-panel-include-playlist-checkbox");this.N(this.j,"click",this.cw);this.Y=this.As("ytp-share-panel-link");this.addOnDisposeCallback(g.tl(this.tooltip,this.Y));this.api.createClientVe(this.Y,this,164503);this.N(this.Y,"click",function(T){T.preventDefault(); d.api.logClick(d.Y);var E=d.api.getVideoUrl(!0,!0,!1,!1);E=ajv(d,E);g.Lv(E,d.api,T)&&d.api.Ev("SHARE_CLICKED")}); this.listen("click",this.lF);this.N(U,"videoplayerreset",this.hide);this.N(U,"fullscreentoggled",this.onFullscreenToggled);this.N(U,"onLoopRangeChange",this.nEv);this.hide()}; h4X=function(U,Y){s29(U);for(var A=Y.links||Y.shareTargets,c=0,d={},T=0;T0&&!K&&!h?(f.length===2&&(f=["noreferrer"]),g.AU(H,F,v,f[0]),H=U7X()):(N=B.join(","),jF()&&H.navigator&&H.navigator.standalone&&v&&v!="_self"?(N=g.qs("A"),g.uh(N,F),N.target=v,e&&(N.rel="noreferrer"),((G=G.attributionsrc)||G==="")&&N.setAttribute("attributionsrc",G),G=document.createEvent("MouseEvent"), G.initMouseEvent("click",!0,!0,H,1),N.dispatchEvent(G),H=U7X()):e?(H=g.AU(H,"",v,N),G=g.ma(F),H&&(H.opener=null,G===""&&(G="javascript:''"),G='',G=Ca(G),(F=H.document)&&F.write&&(F.write(Yn(G)),F.close()))):((H=g.AU(H,F,v,N))&&G.noopener&&(H.opener=null),H&&G.noreferrer&&(H.opener=null)));H&&(H.opener||(H.opener=window),H.focus());V.preventDefault()}}}(d)); d.Pi.addOnDisposeCallback(g.tl(U.tooltip,d.Pi.element));L==="Facebook"?U.api.createClientVe(d.Pi.element,d.Pi,164504):L==="Twitter"&&U.api.createClientVe(d.Pi.element,d.Pi,164505);U.N(d.Pi.element,"click",function(P){return function(){U.api.logClick(P.Pi.element)}}(d)); U.api.logVisibility(d.Pi.element,!0);U.W.push(d.Pi);c++}}var r=Y.more||Y.moreLink,l=new g.n({D:"a",Iv:["ytp-share-panel-service-button","ytp-button"],C:[{D:"span",B:"ytp-share-panel-service-button-more",C:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},C:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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"}}]}]}],V:{href:r,target:"_blank",title:"M\u00e1s"}});l.listen("click",function(P){var V=r;U.api.logClick(U.moreButton.element);V=ajv(U,V);g.Lv(V,U.api,P)&&U.api.Ev("SHARE_CLICKED")}); l.addOnDisposeCallback(g.tl(U.tooltip,l.element));U.api.createClientVe(l.element,l,164506);U.N(l.element,"click",function(){U.api.logClick(l.element)}); U.api.logVisibility(l.element,!0);U.W.push(l);U.moreButton=l;U.updateValue("buttons",U.W)}; ajv=function(U,Y){var A={};g.ay(U.api.L())&&(g.Vj(U.api,"addEmbedsConversionTrackingParams",[A]),Y=g.xJ(Y,A));return Y}; s29=function(U){for(var Y=g.J(U.W),A=Y.next();!A.done;A=Y.next())A=A.value,A.detach(),g.P7(A);U.W=[]}; PS=function(U){return U===void 0||U.startSec===void 0||U.endSec===void 0?!1:!0}; SLX=function(U,Y){U.startSec+=Y;U.endSec+=Y}; bEc=function(U){GS.call(this,U);this.T=this.Y=this.isContentForward=this.G=!1;MO4(this);this.N(this.U,"changeProductsInVideoVisibility",this.s2v);this.N(this.U,"videodatachange",this.onVideoDataChange)}; p2X=function(U){U.J&&U.eX.element.removeChild(U.J.element);U.J=void 0}; ZEc=function(U,Y){return Y.map(function(A){var c,d;if((A=(c=g.O(A,Q23))==null?void 0:(d=c.thumbnail)==null?void 0:d.thumbnails)&&A.length!==0)return A[0].url}).filter(function(A){return A!==void 0}).map(function(A){A=new g.n({D:"img", B:"ytp-suggested-action-product-thumbnail",V:{alt:"",src:A}});g.Z(U,A);return A})}; OEX=function(U,Y){U.isContentForward=Y;g.lg(U.badge.element,"ytp-suggested-action-badge-content-forward",Y)}; Vh=function(U){var Y=U.isContentForward&&!U.J6();g.lg(U.badge.element,"ytp-suggested-action-badge-preview-collapsed",Y&&U.Y);g.lg(U.badge.element,"ytp-suggested-action-badge-preview-expanded",Y&&U.T)}; $o=function(U,Y,A){return new g.EE(U*1E3,Y*1E3,{priority:9,namespace:A})}; m1S=function(U){U.U.OH("shopping_overlay_visible");U.U.OH("shopping_overlay_preview_collapsed");U.U.OH("shopping_overlay_preview_expanded");U.U.OH("shopping_overlay_expanded")}; MO4=function(U){U.N(U.U,g.zf("shopping_overlay_visible"),function(){U.Wa(!0)}); U.N(U.U,g.LS("shopping_overlay_visible"),function(){U.Wa(!1)}); U.N(U.U,g.zf("shopping_overlay_expanded"),function(){U.Hw=!0;He(U)}); U.N(U.U,g.LS("shopping_overlay_expanded"),function(){U.Hw=!1;He(U)}); U.N(U.U,g.zf("shopping_overlay_preview_collapsed"),function(){U.Y=!0;Vh(U)}); U.N(U.U,g.LS("shopping_overlay_preview_collapsed"),function(){U.Y=!1;Vh(U)}); U.N(U.U,g.zf("shopping_overlay_preview_expanded"),function(){U.T=!0;Vh(U)}); U.N(U.U,g.LS("shopping_overlay_preview_expanded"),function(){U.T=!1;Vh(U)})}; niY=function(U){g.n.call(this,{D:"div",B:"ytp-shorts-title-channel",C:[{D:"a",B:"ytp-shorts-title-channel-logo",V:{href:"{{channelLink}}",target:U.L().X,"aria-label":"{{channelLogoLabel}}"}},{D:"div",B:"ytp-shorts-title-expanded-heading",C:[{D:"div",B:"ytp-shorts-title-expanded-title",C:[{D:"a",YE:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:U.L().X,tabIndex:"0"}}]}]}]});var Y=this;this.api=U;this.Y=this.As("ytp-shorts-title-channel-logo");this.channelName=this.As("ytp-shorts-title-expanded-title"); this.subscribeButton=null;U.createClientVe(this.Y,this,36925);this.N(this.Y,"click",function(A){Y.api.logClick(Y.Y);g.AU(window,giY(Y));A.preventDefault()}); U.createClientVe(this.channelName,this,37220);this.N(this.channelName,"click",function(A){Y.api.logClick(Y.channelName);g.AU(window,giY(Y));A.preventDefault()}); ynX(this);this.N(U,"videodatachange",this.cw);this.N(U,"videoplayerreset",this.cw);this.cw()}; ynX=function(U){if(!U.api.L().R1){var Y=g.M(U.api.getVideoData()),A=new g.gH("Suscribirme",null,"Suscrito",null,!0,!1,Y.DT,Y.subscribed,"channel_avatar",null,U.api,!0);U.api.createServerVe(A.element,U);var c;U.api.setTrackingParams(A.element,((c=Y.subscribeButtonRenderer)==null?void 0:c.trackingParams)||null);U.N(A.element,"click",function(){U.api.logClick(A.element)}); U.subscribeButton=A;g.Z(U,U.subscribeButton);U.subscribeButton.Df(U.element)}}; giY=function(U){var Y=U.api.L(),A=g.M(U.api.getVideoData());A=g.EJ(Y)+A.ws;if(!g.ay(Y))return A;Y={};g.Vj(U.api,"addEmbedsConversionTrackingParams",[Y]);return g.xJ(A,Y)}; vS=function(U){g.my.call(this,U,{D:"button",Iv:["ytp-skip-intro-button","ytp-popup","ytp-button"],C:[{D:"div",B:"ytp-skip-intro-button-text",YE:"Saltar introducci\u00f3n"}]},100);var Y=this;this.W=!1;this.Y=new g.IM(function(){Y.hide()},5E3); this.b1=this.DG=NaN;g.Z(this,this.Y);this.G=function(){Y.show()}; this.J=function(){Y.hide()}; this.j=function(){var A=Y.U.getCurrentTime();A>Y.DG/1E3&&A0?{D:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},C:[{D:"path",Iv:["ytp-circle-arrow","ytp-svg-fill"],V:{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"}}, {D:"text",Iv:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"7.05",y:"15.05"}}]}:{D:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},C:[{D:"path",Iv:["ytp-circle-arrow","ytp-svg-fill"],V:{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"}}, {D:"text",Iv:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"6.5",y:"15"}}]}]});var A=this;this.U=U;this.Y=Y;this.T=new g.IM(function(){A.W?(A.W=!1,A.T.start()):A.element.classList.remove("ytp-jump-spin","backwards")},250); this.W=!1;(Y=Y>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var c=g.wl(Y?"Avanzar $SECONDS segundos. (\u2192)":"Retroceder $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.Y).toString()});this.update({title:c,"data-title-no-tooltip":c,"aria-keyshortcuts":Y?"\u2192":"\u2190"});this.j=this.element.querySelector(".ytp-jump-button-text");this.j.textContent=Math.abs(this.Y).toString();this.listen("click",this.onClick,this);e4(U,this.element,this)}; UE9=function(U,Y){Y?U.element.classList.add("ytp-jump-button-enabled"):U.element.classList.remove("ytp-jump-button-enabled");U.U.logVisibility(U.element,Y);U.U.Aa()}; Fo=function(U,Y){GM.call(this,U,Y,"timedMarkerCueRange","Ver momentos clave");this.N(U,g.LS("timedMarkerCueRange"),this.ya);this.N(U,"updatemarkervisibility",this.updateVideoData)}; Yd9=function(U){var Y,A=(Y=U.U.getVideoData())==null?void 0:Y.VJ;if(A)for(U=U.j.dW,A=g.J(A),Y=A.next();!Y.done;Y=A.next())if(Y=U[Y.value]){var c=void 0,d=void 0,T=void 0;if(((c=Y.onTap)==null?void 0:(d=c.innertubeCommand)==null?void 0:(T=d.changeEngagementPanelVisibilityAction)==null?void 0:T.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return Y}}; ju=function(U){var Y=U.S("web_enable_pip_on_miniplayer");g.n.call(this,{D:"button",Iv:["ytp-miniplayer-button","ytp-button"],V:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},C:[Y?{D:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},C:[{D:"g",V:{transform:"translate(96, -96) scale(0.8)"},C:[{D:"path",xs:!0,V:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}: B7V()]});this.U=U;this.visible=!1;this.listen("click",this.onClick);this.N(U,"fullscreentoggled",this.cw);this.updateValue("title",g.BC(U,"Minirreproductor","i"));this.update({"data-title-no-tooltip":"Minirreproductor"});e4(U,this.element,this);U.createClientVe(this.element,this,62946);this.cw()}; Na=function(U,Y,A){A=A===void 0?!1:A;g.n.call(this,{D:"button",Iv:["ytp-mute-button","ytp-button"],V:U.L().kE?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},YE:"{{icon}}"});this.U=U;this.QJ=A;this.Y=null;this.j=this.X=this.J=this.Hw=NaN;this.ov=this.G=null;this.W=[];this.T=[];this.visible=!1;this.Z=null;U.S("delhi_modern_web_player")&&this.update({"data-priority":4}); A=this.U.L();this.updateValue("icon",sD());this.tooltip=Y.wq();this.Y=new g.Vu({D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"defs",C:[{D:"clipPath",V:{id:"ytp-svg-volume-animation-mask"},C:[{D:"path",V:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",V:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",B:"ytp-svg-volume-animation-mover",V:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",V:{id:"ytp-svg-volume-animation-slash-mask"}, C:[{D:"path",B:"ytp-svg-volume-animation-mover",V:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",xs:!0,Iv:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],V:{"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"}},{D:"path",xs:!0,Iv:["ytp-svg-fill","ytp-svg-volume-animation-hider"],V:{"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.Z(this,this.Y);this.G=this.Y.As("ytp-svg-volume-animation-speaker");this.ov=g.M(this.G.getAttribute("d"));this.W=g.m2("ytp-svg-volume-animation-mover",this.Y.element);this.T=g.m2("ytp-svg-volume-animation-hider",this.Y.element);this.jX=new ye;g.Z(this,this.jX);this.Pw=new ye;g.Z(this,this.Pw);this.listen("click",this.rbI);this.N(U,"appresize",this.l2);this.N(U,"onVolumeChange",this.onVolumeChange);var c=null;A.kE?U.S("delhi_modern_web_player")? this.addOnDisposeCallback(g.tl(Y.wq(),this.element,-120)):this.addOnDisposeCallback(g.tl(Y.wq(),this.element)):(Y="No puedes cambiar el volumen en este navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/),c=new g.my(U,{D:"span",Iv:["ytp-popup","ytp-generic-popup"],V:{tabindex:"0"},C:[Y[0],{D:"a",V:{href:"https://support.google.com/youtube/?p=noaudio",target:A.X},YE:Y[2]},Y[4]]},100,!0),g.Z(this,c),c.hide(),c.subscribe("show",function(d){U.H1(c,d)}),g.S4(U,c.element, 4)); this.message=c;U.createClientVe(this.element,this,28662);this.l2(U.Cy().getPlayerSize());this.setVolume(U.getVolume(),U.isMuted())}; dEl=function(U,Y){U.Hw=Y;var A=U.ov;Y&&(A+=iov(AJ3,cJ3,Y));U.G.setAttribute("d",A)}; TRY=function(U,Y){U.X=Y;for(var A=20*Y,c=0;c=3&&U.U.getPresentingPlayerType()!==2}; rJV=function(U){var Y=ar(U.U.WZ());return Y?U.Y?Y.pX():Y.kD():!1}; o7E=function(U){var Y={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},A=U.playlist!=null&&U.playlist.pX();A=g.x_(U.U)&&(!U.Y||A);var c=U.Y&&g.M9(U.U),d=rJV(U),T=U.Y&&U.U.getPresentingPlayerType()===5,E=g.BC(U.U,"Siguiente","SHIFT+n"),L=g.BC(U.U,"Anterior","SHIFT+p");if(T)Y.title="Iniciar v\u00eddeo";else if(U.W)Y.title="Ver de nuevo";else if(A){var r=null;U.playlist&&(r=g.zq(U.playlist,U.Y?Y1S(U.playlist):AdS(U.playlist)));if(r){if(r.videoId){var l= U.playlist.listId;Y.url=U.U.L().getVideoUrl(r.videoId,l?l.toString():void 0)}Y.text=r.title;Y.duration=r.lengthText?r.lengthText:r.lengthSeconds?g.eR(r.lengthSeconds):null;Y.preview=r.SS("mqdefault.jpg")}U.Y?(Y.title=E,Y["data-title-no-tooltip"]="Siguiente",Y["aria-keyshortcuts"]="SHIFT+n"):(Y.title=L,Y["data-title-no-tooltip"]="Anterior",Y["aria-keyshortcuts"]="SHIFT+p")}else if(c){if(L=(r=U.videoData)==null?void 0:g.Ai(r))Y.url=L.Zl(),Y.text=L.title,Y.duration=L.lengthText?L.lengthText:L.lengthSeconds? g.eR(L.lengthSeconds):null,Y.preview=L.SS("mqdefault.jpg");Y.title=E;Y["data-title-no-tooltip"]="Siguiente";Y["aria-keyshortcuts"]="SHIFT+n"}Y.disabled=!c&&!A&&!d&&!T;U.update(Y);U.G=!!Y.url;c||A||U.W||d||T?U.T||(U.T=g.tl(U.tooltip,U.element),U.J=U.listen("click",U.onClick,U)):U.T&&(U.T(),U.T=null,U.FY(U.J),U.J=null);U.tooltip.Aa();g.lg(U.element,"ytp-playlist-ui",U.Y&&A)}; PX9=function(U,Y){g.n.call(this,{D:"div",B:"ytp-fine-scrubbing",C:[{D:"div",B:"ytp-fine-scrubbing-draggable",C:[{D:"div",B:"ytp-fine-scrubbing-thumbnails",V:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic o despl\u00e1zate por el panel para hacer b\u00fasquedas precisas.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{D:"div",V:{"aria-hidden":"true"},B:"ytp-fine-scrubbing-cursor"},{D:"div",B:"ytp-fine-scrubbing-seek-time", V:{"aria-hidden":"true"},YE:"{{seekTime}}"},{D:"div",B:"ytp-fine-scrubbing-play",C:[k$()],V:{title:"Reproducir desde esta posici\u00f3n",role:"button"}},{D:"div",B:"ytp-fine-scrubbing-dismiss",C:[g.Nq()],V:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var A=this;this.api=U;this.J=this.As("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.As("ytp-fine-scrubbing-dismiss");this.ov=this.As("ytp-fine-scrubbing-draggable");this.playButton=this.As("ytp-fine-scrubbing-play");this.thumbnails= [];this.T=[];this.Uv=this.Y=0;this.eX=void 0;this.Pw=NaN;this.kE=this.X=this.W=this.Z=0;this.j=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.yJ=0;this.isEnabled=this.QJ=!1;lkl(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.tl(Y,this.dismissButton));this.addOnDisposeCallback(g.tl(Y,this.playButton));this.jX=new g.xI(this.ov,!0);this.jX.subscribe("dragstart",this.a9,this);this.jX.subscribe("dragmove",this.q2,this);this.jX.subscribe("dragend",this.qn,this);this.N(U,"SEEK_COMPLETE", this.Eg);U.S("web_fix_fine_scrubbing_false_play")&&this.N(U,"rootnodemousedown",function(c){A.Hw=c}); this.J.addEventListener("keydown",function(){}); g.Z(this,this.jX);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.J,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; lkl=function(U,Y){var A=g.eR(Y),c=g.wl("Ir al momento $PROGRESS",{PROGRESS:g.eR(Y,!0)});U.update({ariamin:0,ariamax:Math.floor(U.api.getDuration()),arianow:Math.floor(Y),arianowtext:c,seekTime:A})}; V28=function(U){U.Pw=NaN;U.X=0;U.Z=U.W}; HMY=function(U){var Y=U.api.IS();if(Y){var A=90*U.scale,c=bN(Y,160*U.scale);if(Y=Y.levels[c]){U.G=Y.width;if(!U.j.length){c=[];for(var d=pD(Y,Y.DC()),T=Y.columns*Y.rows,E=Y.frameCount,L=0;L<=d;L++)for(var r=EU.j.length;)c= void 0,(c=U.thumbnails.pop())==null||c.dispose();for(;U.thumbnails.lengthA.length;)c=void 0,(c=U.T.pop())==null||c.dispose(); for(;U.T.length-A?-Y/A*U.interval*.5:-(Y+A/2)/A*U.interval}; G8E=function(U){return-((U.J.offsetWidth||(U.frameCount-1)*U.G*U.scale)-U.Y/2)}; $EY=function(){g.n.call(this,{D:"div",B:"ytp-fine-scrubbing-thumbnail"})}; v7S=function(){g.n.call(this,{D:"div",B:"ytp-fine-scrubbing-chapter-title",C:[{D:"div",B:"ytp-fine-scrubbing-chapter-title-content",YE:"{{chapterTitle}}"}]})}; wV3=function(U){g.n.call(this,{D:"div",B:"ytp-heat-map-chapter",C:[{D:"svg",B:"ytp-heat-map-svg",V:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},C:[{D:"defs",C:[{D:"clipPath",V:{id:"{{id}}"},C:[{D:"path",B:"ytp-heat-map-path",V:{d:"",fill:"white"}}]},{D:"linearGradient",V:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},C:[{D:"stop",V:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{D:"stop",V:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{D:"rect",B:"ytp-heat-map-graph",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",B:"ytp-heat-map-hover",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",B:"ytp-heat-map-play",V:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{D:"path",B:"ytp-modern-heat-map",V:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=U;this.Z=this.As("ytp-heat-map-svg");this.J=this.As("ytp-heat-map-path");this.j=this.As("ytp-heat-map-graph");this.G=this.As("ytp-heat-map-play");this.Y=this.As("ytp-heat-map-hover");this.W=this.As("ytp-modern-heat-map");this.Bp=!1;this.T=60;U=""+g.cW(this);this.update({id:U});U="url(#"+U+")";this.j.setAttribute("clip-path",U);this.G.setAttribute("clip-path",U);this.Y.setAttribute("clip-path", U)}; iM8=function(U,Y){Y>0&&(U.T=Y,U.Z.style.height=U.T+"px")}; Xo=function(){g.n.call(this,{D:"div",B:"ytp-chapter-hover-container",C:[{D:"div",B:"ytp-progress-bar-padding"},{D:"div",B:"ytp-progress-list",C:[{D:"div",Iv:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",B:"ytp-progress-linear-live-buffer"},{D:"div",B:"ytp-load-progress"},{D:"div",B:"ytp-hover-progress"},{D:"div",B:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.T=this.As("ytp-progress-list");this.J=this.As("ytp-progress-linear-live-buffer"); this.j=this.As("ytp-ad-progress-list");this.G=this.As("ytp-load-progress");this.Z=this.As("ytp-play-progress");this.W=this.As("ytp-hover-progress");this.Y=this.As("ytp-chapter-hover-container")}; ko=function(U,Y){g.MP(U.Y,"width",Y)}; JJc=function(U,Y){g.MP(U.Y,"margin-right",Y+"px")}; Fn3=function(){this.T=this.position=this.W=this.Y=this.j=this.width=NaN}; jPc=function(){g.n.call(this,{D:"div",B:"ytp-timed-marker"});this.Y=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.aG=function(U,Y){g.Ha.call(this,{D:"div",B:"ytp-progress-bar-container",V:{"aria-disabled":"true"},C:[{D:"div",Iv:["ytp-heat-map-container"],C:[{D:"div",B:"ytp-heat-map-edu"}]},{D:"div",Iv:["ytp-progress-bar"],V:{tabindex:"0",role:"slider","aria-label":"Control deslizante","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},C:[{D:"div",B:"ytp-chapters-container"},{D:"div",B:"ytp-timed-markers-container"},{D:"div",B:"ytp-clip-start-exclude"}, {D:"div",B:"ytp-clip-end-exclude"},{D:"div",B:"ytp-scrubber-container",C:[{D:"div",Iv:["ytp-scrubber-button","ytp-swatch-background-color"],C:[{D:"div",B:"ytp-scrubber-pull-indicator"},{D:"img",Iv:["ytp-decorated-scrubber-button"]}]}]}]},{D:"div",Iv:["ytp-fine-scrubbing-container"],C:[{D:"div",B:"ytp-fine-scrubbing-edu"}]},{D:"div",B:"ytp-bound-time-left",YE:"{{boundTimeLeft}}"},{D:"div",B:"ytp-bound-time-right",YE:"{{boundTimeRight}}"},{D:"div",B:"ytp-clip-start",V:{title:"{{clipstarttitle}}"},YE:"{{clipstarticon}}"}, {D:"div",B:"ytp-clip-end",V:{title:"{{clipendtitle}}"},YE:"{{clipendicon}}"}]});this.api=U;this.Ie=!1;this.b1=this.kC=this.Ly=this.J=this.DG=0;this.Bu=null;this.mA=!1;this.yJ={};this.qz={};this.clipEnd=Infinity;this.mH=this.As("ytp-clip-end");this.qe=new g.xI(this.mH,!0);this.tb=this.As("ytp-clip-end-exclude");this.Va=this.As("ytp-clip-start-exclude");this.clipStart=0;this.Lr=this.As("ytp-clip-start");this.q5=new g.xI(this.Lr,!0);this.Pw=this.ws=0;this.progressBar=this.As("ytp-progress-bar");this.AP= {};this.dW={};this.qI=this.As("ytp-chapters-container");this.jo=this.As("ytp-timed-markers-container");this.Y=[];this.G=[];this.Zh={};this.E9=null;this.QJ=-1;this.Tk=this.eX=0;this.Ix=this.Z=null;this.fV=this.As("ytp-scrubber-button");this.ov=this.As("ytp-decorated-scrubber-button");this.yz=this.As("ytp-scrubber-container");this.i$=new g.RH;this.nU=0;this.Re=new Fn3;this.W=new h_(0,0);this.Qd=null;this.X=this.VU=!1;this.s$=null;this.Hw=this.As("ytp-heat-map-container");this.sT=this.As("ytp-heat-map-edu"); this.j=[];this.heatMarkersDecorations=[];this.VJ=this.As("ytp-fine-scrubbing-container");this.o2=this.As("ytp-fine-scrubbing-edu");this.T=void 0;this.Uv=this.zs=this.kE=!1;this.tooltip=Y.wq();this.addOnDisposeCallback(g.tl(this.tooltip,this.mH));g.Z(this,this.qe);this.qe.subscribe("hoverstart",this.E8,this);this.qe.subscribe("hoverend",this.aM,this);this.N(this.mH,"click",this.LG);this.addOnDisposeCallback(g.tl(this.tooltip,this.Lr));g.Z(this,this.q5);this.q5.subscribe("hoverstart",this.E8,this); this.q5.subscribe("hoverend",this.aM,this);this.N(this.Lr,"click",this.LG);NRc(this);this.N(U,"resize",this.hP);this.N(U,"presentingplayerstatechange",this.aI);this.N(U,"videodatachange",this.Ex);this.N(U,"videoplayerreset",this.q$);this.N(U,"cuerangesadded",this.pbr);this.N(U,"cuerangesremoved",this.oHw);this.N(U,"onLoopRangeChange",this.LB);this.N(U,"innertubeCommand",this.onClickCommand);this.N(U,g.zf("timedMarkerCueRange"),this.o8Y);this.N(U,"updatemarkervisibility",this.XS);this.N(U,"serverstitchedvideochange", this.R6Y);this.updateVideoData(U.getVideoData(),!0);this.LB(U.getLoopRange());RG(this)&&!this.T&&(this.T=new PX9(this.api,this.tooltip),U=g.yR(this.element).x||0,this.T.hP(U,this.J),this.T.Df(this.VJ),g.Z(this,this.T),this.N(this.T.dismissButton,"click",this.Vs),this.N(this.T.playButton,"click",this.dO),this.N(this.T.element,"dblclick",this.dO));this.api.createClientVe(this.Hw,this,139609,!0);this.api.createClientVe(this.sT,this,140127,!0);this.api.createClientVe(this.o2,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; NRc=function(U){if(U.Y.length===0){var Y=new Xo;U.Y.push(Y);g.Z(U,Y);Y.Df(U.qI,0)}for(;U.Y.length>1;)U.Y.pop().dispose();ko(U.Y[0],"100%");U.Y[0].startTime=0;U.Y[0].title=""}; t2E=function(U){var Y=Y===void 0?NaN:Y;var A=new wV3(U.api);U.j.push(A);g.Z(U,A);A.Df(U.Hw);Y>=0&&(A.element.style.width=Y+"px")}; ecX=function(U){for(;U.G.length;)U.G.pop().dispose()}; XVc=function(U){var Y,A,c,d,T;return(T=g.O((d=g.O((Y=U.getWatchNextResponse())==null?void 0:(A=Y.playerOverlays)==null?void 0:(c=A.playerOverlayRenderer)==null?void 0:c.decoratedPlayerBarRenderer,XX))==null?void 0:d.playerBar,BR4))==null?void 0:T.chapters}; k84=function(U){for(var Y=U.Y,A=[],c=0;c=E&&F<=P&&T.push(v)}r>0&&(U.Hw.style.height=r+"px");E=U.j[c];P=T;v=d;G=r;F=c===0;F=F===void 0?!1:F;iM8(E,G);V=P;H=E.T;F=F===void 0?!1:F;var N=1E3/V.length,e=[];e.push({x:0,y:100});for(var B=0;B0&&(A=T[T.length-1])}g.xo(U);L=[];Y=g.J(Y.heatMarkersDecorations||[]);for(d=Y.next();!d.done;d=Y.next())if(d=g.O(d.value,SdX))r=d.label,c=A=l=void 0,L.push({visibleTimeRangeStartMillis:(l=d.visibleTimeRangeStartMillis)!=null?l:-1,visibleTimeRangeEndMillis:(A=d.visibleTimeRangeEndMillis)!=null?A:-1,decorationTimeMillis:(c=d.decorationTimeMillis)!=null?c:NaN,label:r?g.wB(r):""});U.heatMarkersDecorations=L}}; xE9=function(U,Y){U.G.push(Y);g.Z(U,Y);Y.Df(U.jo,U.jo.children.length)}; sPl=function(U,Y){Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next()){A=A.value;var c=s0(U,A.timeRangeStartMillis/(U.W.Y*1E3),f8(U));g.MP(A.element,"transform","translateX("+c+"px) scaleX(0.6)")}}; Rc3=function(U,Y){var A=0,c=!1;Y=g.J(Y);for(var d=Y.next();!d.done;d=Y.next()){d=d.value;if(g.O(d,bMX)){d=g.O(d,bMX);var T={startTime:NaN,title:null,onActiveCommand:void 0},E=d.title;T.title=E?g.wB(E):"";E=d.timeRangeStartMillis;E!=null&&(T.startTime=E);T.onActiveCommand=d.onActiveCommand;d=T;A===0&&d.startTime!==0&&(U.Y[A].startTime=0,U.Y[A].title="",U.Y[A].onActiveCommand=d.onActiveCommand,A++,c=!0);U.Y.length<=A&&(T=new Xo,U.Y.push(T),g.Z(U,T),T.Df(U.qI,U.qI.children.length));U.Y[A].startTime= d.startTime;U.Y[A].title=d.title?d.title:"";U.Y[A].onActiveCommand=d.onActiveCommand;U.Y[A].index=c?A-1:A}A++}for(;A=0;c--)if(U.Y[c].width>0){JJc(U.Y[c],0);var d=Math.floor(U.Y[c].width);U.Y[c].width=d;ko(U.Y[c],d+"px");break}U.Y[A].width=0;ko(U.Y[A],"0")}else A===U.Y.length-1?(c=Math.floor(U.Y[A].width+Y),U.Y[A].width=c,ko(U.Y[A],c+"px")):(Y=U.Y[A].width+Y,c=Math.round(Y),Y-=c,U.Y[A].width=c,ko(U.Y[A],c+"px"));A=0;if(U.j.length===U.Y.length)for(Y=0;Y< U.j.length;Y++)c=U.Y[Y].width,U.j[Y].element.style.width=c+"px",U.j[Y].element.style.left=A+"px",A+=c+Su(U);U.api.S("delhi_modern_web_player")&&(U.Y.length===1?U.Y[0].T.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(U.Y[0].T.classList.remove("ytp-progress-bar-end"),U.Y[0].T.classList.add("ytp-progress-bar-start"),U.Y[U.Y.length-1].T.classList.add("ytp-progress-bar-end")))}; pVv=function(U,Y){var A=0,c=!1,d=U.Y.length,T=U.W.Y*1E3;T===0&&(T=U.api.getProgressState().seekableEnd*1E3);if(T>0&&U.J>0){for(var E=U.J-Su(U)*U.eX,L=U.Tk===0?3:E*U.Tk,r=g.J(U.Y),l=r.next();!l.done;l=r.next())l.value.width=0;for(;A1);l=(T===0?0:r/T*E)+U.Y[A].width;if(l>L)U.Y[A].width=l;else{U.Y[A].width=0;var P=U,V=A,v=P.Y[V-1];v!==void 0&&v.width>0? v.width+=l:VU.Tk&&(U.Tk=r/T),c=!0)}A++}}return c}; hV=function(U){if(U.J){var Y=U.api.getProgressState(),A=U.api.getVideoData();if(!(A&&A.enableServerStitchedDai&&A.xn)||isFinite(Y.current)){var c;if(((c=U.api.getVideoData())==null?0:qm(c))&&Y.airingStart&&Y.airingEnd)var d=Ma(U,Y.airingStart,Y.airingEnd);else if(U.api.getPresentingPlayerType()===2){var T,E,L;d=(A=(d=U.api.getVideoData())==null?void 0:(T=d.getPlayerResponse())==null?void 0:(E=T.playerConfig)==null?void 0:(L=E.webPlayerConfig)==null?void 0:L.skippableAdProgressBarDuration)?Ma(U,Y.seekableStart, A/1E3):Ma(U,Y.seekableStart,Y.seekableEnd)}else d=Ma(U,Y.seekableStart,Y.seekableEnd);T=SR(d,Y.loaded,0);Y=SR(d,Y.current,0);E=U.W.T!==d.T||U.W.Y!==d.Y;U.W=d;b$(U,Y,T);E&&QPX(U);ZMX(U)}}}; Ma=function(U,Y,A){return OMX(U)?new h_(Math.max(Y,U.Qd.startTimeMs/1E3),Math.min(A,U.Qd.endTimeMs/1E3)):new h_(Y,A)}; g78=function(U,Y){var A,c,d;Y=g.O((A=Y.getWatchNextResponse())==null?void 0:(c=A.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,XX);if(Y==null?0:Y.progressColor)for(A=0;A1){A=p8(U,Y.W,!0);for(var c=0,d=0;d0&&(c+=U.Y[d].width,c+=Su(U));A=(U.Y[A].startTime+(Y.W-c)/U.Y[A].width*((A===U.Y.length-1?U.W.Y*1E3:U.Y[A+1].startTime)-U.Y[A].startTime))/1E3||0}return A}; Zq=function(U,Y,A,c,d){Y=Y<0?0:Math.floor(Math.min(Y,U.api.getDuration())*1E3);A=A<0?0:Math.floor(Math.min(A,U.api.getDuration())*1E3);U=U.progressBar.visualElement;c={seekData:{startMediaTimeMs:Y,endMediaTimeMs:A,seekSource:c}};(Y=g.X3())&&g.qY(Y$)(void 0,Y,U,d,c,void 0)}; n7X=function(U,Y,A){if(A>=U.Y.length)return!1;var c=U.J-Su(U)*U.eX;return Math.abs(Y-U.Y[A].startTime/1E3)/U.W.Y*c<4}; QPX=function(U){U.fV.style.removeProperty("height");for(var Y=g.J(Object.keys(U.yJ)),A=Y.next();!A.done;A=Y.next())DE8(U,A.value);O0(U);b$(U,U.Pw,U.ws)}; f8=function(U){var Y=U.i$.x;Y=g.Bi(Y,0,U.J);U.Re.update(Y,U.J);return U.Re}; gJ=function(U){return(U.X?135:90)-mr(U)}; mr=function(U){var Y=48,A=U.api.L();U.X?Y=54:g.ay(A)&&!A.T?Y=40:U.api.S("delhi_modern_web_player")&&(Y=U.X?96:68);return Y}; b$=function(U,Y,A){U.Pw=Y;U.ws=A;var c=f8(U),d=U.W.Y;var T=U.W;T=T.T+U.Pw*T.getLength();var E=g.wl("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.eR(T,!0),DURATION:g.eR(d,!0)}),L=U0(U.Y,T*1E3);L=U.Y[L].title;U.update({ariamin:Math.floor(U.W.T),ariamax:Math.floor(d),arianow:Math.floor(T),arianowtext:L?L+" "+E:E});d=U.clipStart;T=U.clipEnd;U.Qd&&U.api.getPresentingPlayerType()!==2&&(d=U.Qd.startTimeMs/1E3,T=U.Qd.endTimeMs/1E3);d=SR(U.W,d,0);L=SR(U.W,T,1);E=U.api.getVideoData();T=g.Bi(Y,d,L);A=(E==null? 0:g.Ip(E))?1:g.Bi(A,d,L);Y=s0(U,Y,c);g.MP(U.yz,"transform","translateX("+Y+"px)");U.api.S("delhi_modern_web_player")&&Ikl(U,Y);yh(U,c,d,T,"PLAY_PROGRESS");(E==null?0:qm(E))?(Y=U.api.getProgressState().seekableEnd)&&yh(U,c,T,SR(U.W,Y),"LIVE_BUFFER"):yh(U,c,d,A,"LOAD_PROGRESS");if(U.api.S("web_player_heat_map_played_bar")){var r;(r=U.j[0])!=null&&r.G.setAttribute("width",(T*100).toFixed(2)+"%")}}; Ikl=function(U,Y){U.api.getPresentingPlayerType()!==1?U.qI.style.removeProperty("clip-path"):(Y||(Y=s0(U,U.Pw,f8(U))),U.qI.style.clipPath='path("'+(U.mA?uOl(U,8,Y,U.X?50:36,0,6):uOl(U,4,Y,U.X?34:24,2,3))+'")')}; uOl=function(U,Y,A,c,d,T){var E=A-c/2;A+=c/2;Y+=d;return"M 0 "+d+" L 0 "+(Y+" L ")+(E+" "+Y+" C ")+(E+T+" "+Y+" "+(E+T)+" "+d+" "+E+" "+d+" L 0 ")+(d+" M ")+(A+" "+d+" L ")+(U.J+" "+d+" L ")+(U.J+" "+Y+" L ")+(A+" "+Y+" C ")+(A-T+" "+Y+" "+(A-T)+" "+d+" "+A+" "+d)}; yh=function(U,Y,A,c,d){var T=U.Y.length,E=Y.Y-U.eX*Su(U),L=A*E;A=p8(U,L);var r=c*E;E=p8(U,r);d==="HOVER_PROGRESS"&&(E=p8(U,Y.Y*c,!0),r=Y.Y*c-KnY(U,Y.Y*c)*Su(U));c=Math.max(L-qdc(U,A),0);for(L=A;L=U.Y.length)return U.J;for(var A=0,c=0;c0||U.tb.clientWidth>0?(T=Y.clientWidth/A,U=-1*U.Va.clientWidth/A):(T/=A,U=-1*U.Y[d].element.offsetLeft/A),g.MP(Y,"background-size",T+"px"),g.MP(Y,"background-position-x",U+"px"))}; n8=function(U,Y,A,c,d){d||U.api.L().T?Y.style.width=A+"px":g.MP(Y,"transform","scalex("+(c?A/c:0)+")")}; p8=function(U,Y,A){var c=0;(A===void 0?0:A)&&(Y-=KnY(U,Y)*Su(U));A=g.J(U.Y);for(var d=A.next();!d.done;d=A.next()){d=d.value;if(Y>d.width)Y-=d.width;else break;c++}return c===U.Y.length?c-1:c}; s0=function(U,Y,A){var c=Y*U.W.Y*1E3;for(var d=-1,T=g.J(U.Y),E=T.next();!E.done;E=T.next())E=E.value,c>E.startTime&&E.width>0&&d++;c=d<0?0:d;d=A.Y-Su(U)*U.eX;return Y*d+Su(U)*c+A.j}; KnY=function(U,Y){for(var A=U.Y.length,c=0,d=g.J(U.Y),T=d.next();!T.done;T=d.next())if(T=T.value,T.width!==0)if(Y>T.width)Y-=T.width,Y-=Su(U),c++;else break;return c===A?A-1:c}; g.Ycc=function(U,Y,A,c){var d=U.J!==A,T=U.X!==c;U.DG=Y;U.J=A;U.X=c;RG(U)&&(Y=U.T)!=null&&(Y.scale=c?1.5:1);QPX(U);U.Y.length===1&&(U.Y[0].width=A||0);d&&g.xo(U);U.T&&T&&RG(U)&&(U.T.isEnabled&&(A=U.X?135:90,c=A-mr(U),U.VJ.style.height=A+"px",g.MP(U.Hw,"transform","translateY("+-c+"px)"),g.MP(U.progressBar,"transform","translateY("+-c+"px)")),HMY(U.T))}; O0=function(U){var Y=!!U.Qd&&U.api.getPresentingPlayerType()!==2,A=U.clipStart,c=U.clipEnd,d=!0,T=!0;Y&&U.Qd?(A=U.Qd.startTimeMs/1E3,c=U.Qd.endTimeMs/1E3):(d=A>U.W.T,T=U.W.Y>0&&cU.Pw);g.lg(U.fV,"ytp-scrubber-button-hover",A===c&&U.Y.length>1);if(U.api.S("web_player_heat_map_played_bar")){var T;(T=U.j[0])!=null&&T.Y.setAttribute("width",(Y.T*100).toFixed(2)+"%")}}}; DE8=function(U,Y){var A=U.yJ[Y];Y=U.qz[Y];var c=f8(U),d=SR(U.W,A.start/1E3,0),T=$qS(A,U.X)/c.width;var E=SR(U.W,A.end/1E3,1);T!==Number.POSITIVE_INFINITY&&(d=g.Bi(d,0,E-T));E=Math.min(E,d+T);A.color&&(Y.style.background=A.color);A=d;Y.style.left=Math.max(A*c.Y+c.j,0)+"px";n8(U,Y,g.Bi((E-A)*c.Y+c.j,0,c.width),c.width,!0)}; A8S=function(U,Y){var A=Y.getId();U.yJ[A]===Y&&(g.c4(U.qz[A]),delete U.yJ[A],delete U.qz[A])}; RG=function(U){var Y=g.Cs(U.api.L())&&(U.api.S("web_shorts_pip")||U.api.S("web_watch_pip")),A;return!((A=U.api.getVideoData())==null?0:A.isLivePlayback)&&!U.api.isMinimized()&&!U.api.isInline()&&(!U.api.LJ()||!Y)}; Dq=function(U){U.T&&(U.T.disable(),U.Ly=0,U.Hw.style.removeProperty("transform"),U.progressBar.style.removeProperty("transform"),U.VJ.style.removeProperty("height"),U.element.parentElement&&U.element.parentElement.style.removeProperty("height"))}; c8X=function(U,Y){var A=Y/gJ(U)*mr(U);g.MP(U.progressBar,"transform","translateY("+-Y+"px)");g.MP(U.Hw,"transform","translateY("+-Y+"px)");g.MP(U.VJ,"transform","translateY("+A+"px)");U.VJ.style.height=Y+A+"px";U.element.parentElement&&(U.element.parentElement.style.height=mr(U)-A+"px")}; dWv=function(U,Y){Y?U.Z||(U.element.removeAttribute("aria-disabled"),U.Z=new g.xI(U.progressBar,!0),U.Z.subscribe("hovermove",U.uyI,U),U.Z.subscribe("hoverend",U.D5X,U),U.Z.subscribe("dragstart",U.j2w,U),U.Z.subscribe("dragmove",U.Fbn,U),U.Z.subscribe("dragend",U.Q2s,U),U.api&&U.api.S("delhi_modern_web_player")&&(U.Ix=new g.xI(U.progressBar,!0),U.Ix.subscribe("hoverstart",function(){U.mA=!0;Ikl(U)},U),U.Ix.subscribe("hoverend",function(){U.mA=!1; Ikl(U)},U)),U.s$=U.listen("keydown",U.pT)):U.Z&&(U.element.setAttribute("aria-disabled","true"),U.FY(U.s$),U.Z.cancel(),U.Z.dispose(),U.Z=null)}; Su=function(U){return U.api.S("delhi_modern_web_player")?4:U.X?3:2}; OMX=function(U){var Y;return!((Y=U.Qd)==null||!Y.postId)&&U.api.getPresentingPlayerType()!==2}; IG=function(U,Y){g.n.call(this,{D:"button",Iv:["ytp-remote-button","ytp-button"],V:{title:"Ver en la televisi\u00f3n","aria-haspopup":"true","data-priority":"10"},YE:"{{icon}}"});this.U=U;this.o1=Y;this.Y=null;this.N(U,"onMdxReceiversChange",this.cw);this.N(U,"presentingplayerstatechange",this.cw);this.N(U,"appresize",this.cw);U.createClientVe(this.element,this,139118);this.cw();this.listen("click",this.T,this);e4(U,this.element,this)}; u$=function(U,Y){g.n.call(this,{D:"button",Iv:["ytp-button","ytp-settings-button"],V:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Pa(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},C:[g.a8()]});this.U=U;this.o1=Y;this.T=!0;this.listen("click",this.W);this.N(U,"onPlaybackQualityChange",this.updateBadge);this.N(U,"videodatachange",this.updateBadge);this.N(U,"webglsettingschanged",this.updateBadge);this.N(U,"appresize",this.Y);e4(U,this.element,this);this.U.createClientVe(this.element, this,28663);this.updateBadge();this.Y(U.Cy().getPlayerSize())}; TMc=function(U,Y){U.T=!!Y;U.Y(U.U.Cy().getPlayerSize())}; K8=function(U,Y){EN.call(this,"Anotaciones",g.Pt.Ke);this.U=U;this.o1=Y;this.Y=!1;U.S("web_settings_menu_icons")&&this.setIcon({D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{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.N(U,"videodatachange",this.cw);this.N(U,"onApiChange",this.cw);this.subscribe("select",this.onSelect,this);this.cw()}; qa=function(U,Y){g.kI.call(this,"Pista de audio",g.Pt.AUDIO,U,Y);this.U=U;this.tracks={};g.ou(this.element,"ytp-audio-menu-item");this.countLabel=new g.n({D:"div",C:[{D:"span",YE:"Pista de audio"},{D:"span",B:"ytp-menuitem-label-count",YE:"{{content}}"}]});U.S("web_settings_menu_icons")&&this.setIcon(e9Y());g.Z(this,this.countLabel);g.D3(this,this.countLabel);this.N(U,"videodatachange",this.cw);this.N(U,"onPlaybackAudioChange",this.cw);this.cw()}; C8=function(U,Y){EN.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Pt.Ge);this.U=U;this.o1=Y;this.Y=!1;this.W=[];this.N(U,"presentingplayerstatechange",this.T);this.subscribe("select",this.onSelect,this);U.createClientVe(this.element,this,113682);this.T()}; ETX=function(U,Y){g.Ir.call(this,g.uR({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.U=U;this.o1=Y;this.N(this.element,"click",this.onClick);this.o1.gf(this)}; oTX=function(U,Y){var A;g.Cs(U.L())&&(A={D:"div",B:"ytp-panel-footer-content",C:[{D:"span",YE:"Ajusta la calidad de descarga desde tu "},{D:"a",B:"ytp-panel-footer-content-link",YE:"Configuraci\u00f3n",V:{href:"/account_downloads"}}]});g.kI.call(this,"Calidad",g.Pt.Q5,U,Y,void 0,void 0,A);this.U=U;this.ov={};this.X={};this.j={};this.jX=new Set;this.Y=this.J=!1;this.G="unknown";this.Pw="";this.Hw=new g.uz;g.Z(this,this.Hw);this.J=this.U.S("web_player_use_new_api_for_quality_pullback");this.Y=this.U.S("web_player_enable_premium_hbr_playback_cap"); U.S("web_settings_menu_icons")&&this.setIcon({D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{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.ou(this.T.element,"ytp-quality-menu");this.N(U,"videodatachange",this.Lv);this.N(U,"videoplayerreset",this.Lv);this.N(U,"onPlaybackQualityChange",this.q8);this.Lv();U.createClientVe(this.element,this,137721)}; LcY=function(U,Y,A){var c=U.ov[Y],d=g.mZ[Y];return zxX(U,c?c.qualityLabel:d?d+"p":"Autom\u00e1tica",Y,A)}; r8Y=function(U,Y,A,c,d){var T=(Y=U.Y?U.j[Y]:U.X[Y])&&Y.quality,E=Y&&Y.qualityLabel;E=E?E:"Autom\u00e1tica";c&&(E="("+E);U=zxX(U,E,T||"",d);c&&U.C.push(")");(c=(c=Y&&Y.paygatedQualityDetails)&&c.paygatedIndicatorText)&&A&&U.C.push({D:"div",B:"ytp-premium-label",YE:c});return U}; zxX=function(U,Y,A,c){Y={D:"span",Iv:c,C:[Y]};var d;c="ytp-swatch-color";if(U.J||U.Y)c="ytp-swatch-color-white";A==="highres"?d="8K":A==="hd2880"?d="5K":A==="hd2160"?d="4K":A.indexOf("hd")===0&&A!=="hd720"&&(d="HD");d&&(Y.C.push(" "),Y.C.push({D:"sup",B:c,YE:d}));return Y}; Up=function(U,Y,A,c,d,T){T=T===void 0?!1:T;var E={D:"div",Iv:["ytp-input-slider-section"],C:[{D:"input",B:"ytp-input-slider",V:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};d&&E.C.unshift(d);T&&E.Iv.push("ytp-vertical-slider");g.n.call(this,E);this.J=U;this.G=Y;this.Z=A;this.initialValue=c;this.header=d;this.T=this.As("ytp-input-slider");this.Y=c?c:U;this.init();this.N(this.T,"input",this.j);this.N(this.T,"keydown", this.W)}; Yu=function(U,Y){U.Y=Y;U.updateValue("slidervalue",U.Y);U.T.valueAsNumber=U.Y;lgV(U,Y)}; lgV=function(U,Y){U.T.style.setProperty("--yt-slider-shape-gradient-percent",(Y-U.J)/(U.G-U.J)*100+"%")}; AC=function(U){Up.call(this,U.getAvailablePlaybackRates()[0],U.getAvailablePlaybackRates()[U.getAvailablePlaybackRates().length-1],.05,U.getPlaybackRate(),{D:"div",B:"ytp-speedslider-indicator-container",C:[{D:"div",B:"ytp-speedslider-badge"},{D:"p",B:"ytp-speedslider-text"}]});this.U=U;this.Pw=H4(this.Hw,50,this);g.ou(this.T,"ytp-speedslider");this.X=this.As("ytp-speedslider-text");this.jX=this.As("ytp-speedslider-badge");P0Y(this);this.N(this.T,"change",this.ov)}; P0Y=function(U){U.X.textContent=U.Y+"x";U.jX.classList.toggle("ytp-speedslider-premium-badge",U.Y>2&&U.U.S("enable_web_premium_varispeed"))}; cE=function(U,Y,A,c,d,T,E){g.n.call(this,{D:"div",B:"ytp-slider-section",V:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},C:[{D:"div",B:"ytp-slider",C:[{D:"div",B:"ytp-slider-handle"}]}]});this.Z=U;this.X=Y;this.T=A;this.W=c;this.Pw=d;this.QJ=T;this.range=this.W-this.T;this.eX=this.As("ytp-slider-section");this.j=this.As("ytp-slider");this.Hw=this.As("ytp-slider-handle");this.G=new g.xI(this.j, !0);this.Y=E?E:A;g.Z(this,this.G);this.G.subscribe("dragmove",this.nT,this);this.N(this.element,"keydown",this.CT);this.N(this.element,"wheel",this.RW);this.init()}; dQ=function(U){cE.call(this,.05,.05,U.getAvailablePlaybackRates()[0],U.getAvailablePlaybackRates()[U.getAvailablePlaybackRates().length-1],150,20,U.getPlaybackRate());this.U=U;this.J=g.qs("P");this.jX=H4(this.ov,50,this);g.ou(this.j,"ytp-speedslider");g.ou(this.J,"ytp-speedslider-text");U=this.J;var Y=this.j;Y.parentNode&&Y.parentNode.insertBefore(U,Y.nextSibling);VVE(this);this.N(this.U,"onPlaybackRateChange",this.updateValues)}; VVE=function(U){U.J.textContent=$Wc(U,U.Y)+"x"}; $Wc=function(U,Y){U=Number(g.Bi(Y,U.T,U.W).toFixed(2));Y=Math.floor((U+.001)*100%5+2E-15);var A=U;Y!==0&&(A=U-Y*.01);return Number(A.toFixed(2))}; vT3=function(U){g.Ha.call(this,{D:"div",B:"ytp-speedslider-component"});U.S("web_settings_use_input_slider")?this.Y=new AC(U):this.Y=new dQ(U);g.Z(this,this.Y);this.element.appendChild(this.Y.element)}; H7X=function(U){var Y=new vT3(U);We.call(this,U,Y,"Personalizada");g.Z(this,Y)}; GQV=function(U,Y){var A=new H7X(U);g.kI.call(this,"Velocidad de reproducci\u00f3n",g.Pt.Un,U,Y,TK(U)?void 0:"Personalizada",TK(U)?void 0:function(){g.Fx(Y,A)}); var c=this;this.j=!1;g.Z(this,A);this.G=new AC(U);g.Z(this,this.G);U.S("web_settings_menu_icons")&&this.setIcon({D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{D:"path",V:{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"}}]});this.U=U;this.j=!1;this.Pw=null;TK(U)?(this.Y=g.wl("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.J=this.U.getPlaybackRate()):this.J=this.Y=null;this.X=this.U.getAvailablePlaybackRates();this.N(U,"presentingplayerstatechange",this.cw);var d;((d=this.U.getVideoData())==null?0:d.b9())&&this.N(U,"serverstitchedvideochange",this.cw);this.N(this.G.T,"change",function(){c.j=!0;c.cw()}); this.cw()}; WcX=function(U,Y){var A=Ep(Y);U.Y&&(U.j||Y===U.J)?(U.oS(U.Y),U.CU(Y.toString())):U.oS(A)}; i7c=function(U){U.KX(U.X.map(Ep));U.Y=null;U.J=null;var Y=U.U.getPlaybackRate();TK(U.U)&&w8c(U,Y);!U.X.includes(Y)||U.j?U.oS(U.Y):U.oS(Ep(Y))}; w8c=function(U,Y){U.J=Y;U.Y=g.wl("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:Y.toString()});Y=U.X.map(Ep);Y.unshift(U.Y);U.KX(Y)}; Ep=function(U){return U.toString()}; TK=function(U){return U.S("web_settings_menu_surface_custom_playback")}; J8X=function(U){return U.S("web_settings_menu_surface_custom_playback")&&U.S("web_settings_use_input_slider")}; jZX=function(U,Y,A,c){var d=new g.wV(Y,void 0,"Anulaci\u00f3n de v\u00eddeo");g.kI.call(this,c.text||"",U,Y,A,"Anulaci\u00f3n de v\u00eddeo",function(){g.Fx(A,d)}); var T=this;g.ou(this.element,"ytp-subtitles-options-menu-item");this.setting=c.option.toString();U=c.options;this.settings=g.bw(U,this.aB,this);this.J=d;g.Z(this,this.J);Y=new g.Ir({D:"div",B:"ytp-menuitemtitle",YE:"Permite un estilo de subt\u00edtulos diferente al del especificado en el v\u00eddeo."},0);g.Z(this,Y);this.J.gf(Y,!0);this.j=new g.Ir({D:"div",B:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},C:[{D:"div",B:"ytp-menuitem-label",YE:"Activado"}]},-1);g.Z(this,this.j);this.J.gf(this.j, !0);this.N(this.j.element,"click",function(){FcV(T,!0)}); this.Y=new g.Ir({D:"div",B:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},C:[{D:"div",B:"ytp-menuitem-label",YE:"No"}]},-2);g.Z(this,this.Y);this.J.gf(this.Y,!0);this.N(this.Y.element,"click",function(){FcV(T,!1)}); this.KX(g.mk(U,this.aB))}; FcV=function(U,Y){U.publish("settingChange",U.setting+"Override",!Y);U.o1.Qt()}; ok=function(U,Y){g.wV.call(this,U,void 0,"Opciones");var A=this;this.b8={};for(var c=0;c=0);if(!(Y<0||Y===U.j)){U.j=Y;Y=243*U.scale;var A=141*U.scale,c=WPc(U.T,U.j,Y);uVX(U.bg,c,Y,A,!0);U.Pw.start()}}; C08=function(U){var Y=U.Y;U.type===3&&U.Hw.stop();U.api.removeEventListener("appresize",U.X);U.G||Y.setAttribute("title",U.W);U.W="";U.Y=null;U.update({text:"",title:"",keyBoardShortcut:"",keyBoardShortcutTitle:"",pillTitle:"",pillTimestamp:"",duration:"",eduText:""});U.wrapper.style.width=""}; YKX=function(U){g.n.call(this,{D:"button",Iv:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.ay(U.L()))},C:[{D:"div",B:"ytp-watch-later-icon",YE:"{{icon}}"},{D:"div",B:"ytp-watch-later-title",YE:"Ver m\u00e1s tarde"}]});this.U=U;this.icon=null;this.visible=this.isRequestPending=this.Y=!1;qr9(U);U.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.N(U,"videoplayerreset",this.onReset);this.N(U, "appresize",this.aU);this.N(U,"videodatachange",this.aU);this.N(U,"presentingplayerstatechange",this.aU);this.aU();U=this.U.L();var Y=g.hu("yt-player-watch-later-pending");U.j&&Y?(m8Y(),U$S(this)):this.cw(2);g.lg(this.element,"ytp-show-watch-later-title",g.ay(U));e4(this.U,this.element,this)}; ANc=function(U){var Y=U.U.getPlayerSize(),A=U.U.L(),c=g.M(U.U.getVideoData()),d=g.ay(A)&&g.x_(U.U)&&g.I(U.U.getPlayerStateObject(),128),T=A.W;return A.q5&&Y.width>=240&&!c.isAd()&&c.q5&&!d&&!g.Ck(c)&&!U.U.isEmbedsShortsMode()&&!T}; cNV=function(U,Y){VM8(g.D8(U.U.L()),"wl_button",function(){m8Y({videoId:Y});window.location.reload()})}; U$S=function(U){if(!U.isRequestPending){U.isRequestPending=!0;U.cw(3);var Y=g.M(U.U.getVideoData());Y=U.Y?Y.removeFromWatchLaterCommand:Y.addToWatchLaterCommand;var A=g.M(U.U.E$()),c=U.Y?function(){U.Y=!1;U.isRequestPending=!1;U.cw(2);U.U.L().Z&&U.U.Ev("WATCH_LATER_VIDEO_REMOVED")}:function(){U.Y=!0; U.isRequestPending=!1;U.cw(1);U.U.L().T&&U.U.jn(U.element);U.U.L().Z&&U.U.Ev("WATCH_LATER_VIDEO_ADDED")}; u1(A,Y).then(c,function(){U.isRequestPending=!1;U.cw(4,"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.");U.U.L().Z&&U.U.Ev("WATCH_LATER_ERROR","Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; d$X=function(U,Y){if(Y!==U.icon){switch(Y){case 3:var A=rC();break;case 1:A=JA();break;case 2:A={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{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:A={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path", xs:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}U.updateValue("icon",A);U.icon=Y}}; g.j6=function(){g.M5.apply(this,arguments);this.t5=(this.Sr=g.ay(this.api.L()))&&(this.api.L().T||Yx()||Cl());this.m8=48;this.tI=69;this.aO=this.qW=null;this.NO=[];this.t6=this.fF=this.bb=this.LI=this.d1=null;this.d0=[];this.contextMenu=this.Rg=this.overflowButton=this.c5=this.J8=this.searchButton=this.copyLinkButton=this.shareButton=this.aV=this.uo=this.title=this.channelAvatar=this.nA=this.tooltip=null;this.Q9=!1;this.G3=this.d4=this.DR=this.uC=null;this.VI=this.Zg=this.Ro=!1}; T0S=function(U){var Y=U.api.L(),A=g.I(U.api.getPlayerStateObject(),128);return Y.j&&A&&!U.api.isFullscreen()}; EaY=function(U){if(U.Wb()&&!U.api.isEmbedsShortsMode()&&U.c5){var Y=U.api.S("web_player_hide_overflow_button_if_empty_menu");!U.aV||Y&&!ANc(U.aV)||$1c(U.c5,U.aV);!U.shareButton||Y&&!kRX(U.shareButton)||$1c(U.c5,U.shareButton);!U.copyLinkButton||Y&&!XkV(U.copyLinkButton)||$1c(U.c5,U.copyLinkButton)}else{Y=U.api.L().getWebPlayerContextConfig();if(U.c5){for(var A=U.c5,c=g.J(A.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();A.actionButtons=[]}U.searchButton&&!g.dv(U.uo.element,U.searchButton.element)&& U.searchButton.Df(U.uo.element);!U.aV||(Y==null?0:Y.hideTopWatchNextButton)||g.dv(U.uo.element,U.aV.element)||U.aV.Df(U.uo.element);!U.shareButton||(Y==null?0:Y.hideTopShareButton)||g.dv(U.uo.element,U.shareButton.element)||U.shareButton.Df(U.uo.element);U.copyLinkButton&&!g.dv(U.uo.element,U.copyLinkButton.element)&&U.copyLinkButton.Df(U.uo.element)}}; oaY=function(U,Y,A){Y=A?Y.lastElementChild:Y.firstElementChild;for(var c=null;Y;){if(QR(Y,"display")!=="none"&&Y.getAttribute("aria-hidden")!=="true"){var d=void 0;Y.tabIndex>=0?d=Y:d=oaY(U,Y,A);d&&(c?A?d.tabIndex>c.tabIndex&&(c=d):d.tabIndexc/1E3+1)return{msg:"in-the-past"};if(T.isLivePlayback&&!isFinite(c))return{msg:"live-infinite"};(c=Y.sH())&&c.isView()&&(c=c.mediaElement);if(c&&c.HR().length>12&&g.Ji(d))return{msg:"played-ranges"};if(!d.W)return null;if(!E)return{msg:"no-pvd-formats"};if(!d.W.Y||!E.Y)return{msg:"non-dash"};c=E.videoInfos[0];var L=d.W.videoInfos[0];U.Z&&ES(T)&&(c=Y.uH(),L= A.uH());if(!c||!L)return{msg:"no-video-info"};if(U.W&&(Cd(c)||Cd(L)))return{msg:"av1"};Y=U.Y&&T.vg()&&Fg();if(L.containerType!==c.containerType)if(Y)T.wW("sgap",{ierr:"container"});else return{msg:"container"};if(U.T&&!Y&&(L.Rv!==c.Rv||L.Rv===""||c.Rv===""))return{msg:"codec"};if(U.j&&L.video&&c.video&&Math.abs(L.video.width/L.video.height-c.video.width/c.video.height)>.01)return{msg:"ratio"};if(g.Ji(T)&&g.Ji(d))return{msg:"content-protection"};E=E.Y[0];d=d.W.Y[0];A=E.audio;var r=d.audio;if(A.sampleRate!== r.sampleRate&&!g.Sf)if(Y)T.wW("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:E.itag,cr:A.sampleRate,ni:d.itag,nr:r.sampleRate};return(A.numChannels||2)!==(r.numChannels||2)?{msg:"channel-count"}:U.J&&T.vg()&&c.video.fps!==L.video.fps?{msg:"fps"}:null}; lv9=function(U,Y,A){var c=U.getVideoData(),d=Y.getVideoData();if(!c.L().supportsGaplessShorts())return{nq:"env"};if(A.G){if(c.Vz&&!c.isAd()||d.Vz&&!d.isAd())return{nq:"autoplay"}}else if(c.Vz||d.Vz)return{nq:"autoplay"};if(A.K&&c.endSeconds>0)return{nq:"endcr"};if(!c.Z)return{nq:"client"};if(!U.KF())return{nq:"no-empty"};U=rN8(A,U,Y,Infinity);return U!=null?{nq:U.msg}:null}; e6=function(U){g.p.call(this);this.app=U;this.K=this.j=this.T=this.Y=null;this.W=1;this.events=new g.Qy(this);this.events.N(this.app.gW,g.LS("gaplessshortslooprange"),this.Z);g.Z(this,this.events)}; P_3=function(){this.K=this.j=this.G=this.W=this.Z=this.J=this.T=this.Y=!1}; Vqv=function(U){var Y=new P_3;Y.Y=U.S("h5_gapless_support_types_diff");Y.J=U.S("h5_gapless_error_on_fps_diff");Y.Z=U.S("html5_gapless_use_format_info_fix");Y.W=U.S("html5_gapless_disable_on_av1")&&!U.S("html5_gapless_enable_on_av1");Y.T=U.S("html5_gapless_check_codec_diff_strictly");Y.G=U.S("html5_gapless_on_ad_autoplay");Y.j=U.S("html5_gapless_disable_diff_aspect_radio");Y.K=U.S("html5_gapless_disable_on_end_cue_range");return Y}; g.BE=function(U,Y,A,c){c=c===void 0?!1:c;cD.call(this);this.mediaElement=U;this.start=Y;this.end=A;this.Y=c}; $$l=function(U,Y,A,c,d,T){T=T===void 0?0:T;g.p.call(this);var E=this;this.policy=U;this.Y=Y;this.T=A;this.df=d;this.K=T;this.j=this.W=null;this.currentVideoDuration=this.J=-1;this.G=!1;this.If=new AX;this.Wi=c-Y.Zm()*1E3;this.If.then(void 0,function(){}); this.timeout=new g.IM(function(){E.DO("timeout")},1E4); g.Z(this,this.timeout);this.Z=isFinite(c)||this.df.L().experiments.lY("html5_pseudogapless_shorts")&&ES(Y.getVideoData());this.status={status:0,error:null}}; GmX=function(U){var Y,A,c,d,T,E,L,r,l,P;return g.S(function(V){if(V.T==1){if(U.Ky())return V.return(Promise.reject(Error(U.status.error||"disposed")));U.timeout.start();Y=g.Xu.mN();return g.x(V,U.If,2)}g.Xu.HG("gtfta",Y);A=U.Y.sH();if(A.isEnded())return U.DO("ended_in_finishTransition"),V.return(Promise.reject(Error(U.status.error||"")));if(!U.j||!tx(U.j))return U.DO("next_mse_closed"),V.return(Promise.reject(Error(U.status.error||"")));if(U.T.lL()!==U.j)return U.DO("next_mse_mismatch"),V.return(Promise.reject(Error(U.status.error|| "")));c=val(U);d=c.mu;T=c.GS;E=c.O8;U.Y.dV(!1,!0);L=HtS(A,d,E,!U.T.getVideoData().isAd());U.T.setMediaElement(L);(r=U.Y.w$())&&U.T.QX(r.XZ,r.MB);U.Z&&(U.T.seekTo(U.T.getCurrentTime()+.001,{Dy:!0,fN:3,Qa:"gapless_pseudo"}),L.play(),xG());l=A.i9();l.cpn=U.Y.getVideoData().clientPlaybackNonce;l.st=""+d;l.et=""+E;U.T.wW("gapless",l);U.Y.wW("gaplessTo",{cpn:U.T.getVideoData().clientPlaybackNonce});P=U.Y.getPlayerType()===U.T.getPlayerType();U.Y.dj(T,!0,!1,P,U.T.getVideoData().clientPlaybackNonce);U.T.dj(U.T.getCurrentTime(), !0,!0,P,U.Y.getVideoData().clientPlaybackNonce);g.jW(function(){!U.T.getVideoData().ov&&U.T.getPlayerState().isOrWillBePlaying()&&U.T.EX()}); ku(U,6);U.dispose();return V.return(Promise.resolve())})}; JN8=function(U){if(U.T.getVideoData().W){var Y=U.df.L().S("html5_gapless_suspend_next_loader")&&U.K===1;U.T.Ia(U.j,Y,WE4(U));ku(U,3);wY3(U);var A=it8(U);Y=A.WD;A=A.hX;Y.subscribe("updateend",U.Q3,U);A.subscribe("updateend",U.Q3,U);U.Q3(Y);U.Q3(A)}}; wY3=function(U){U.Y.unsubscribe("internalvideodatachange",U.m3,U);U.T.unsubscribe("internalvideodatachange",U.m3,U);U.df.L().S("html5_gapless_use_format_info_fix")&&(U.Y.unsubscribe("internalvideoformatchange",U.m3,U),U.T.unsubscribe("internalvideoformatchange",U.m3,U));U.Y.unsubscribe("mediasourceattached",U.m3,U);U.T.unsubscribe("statechange",U.RB,U)}; HtS=function(U,Y,A,c){U=U.isView()?U.mediaElement:U;return new g.BE(U,Y,A,c)}; ku=function(U,Y){Y<=U.status.status||(U.status={status:Y,error:null},Y===5&&U.If.resolve())}; WE4=function(U){return U.df.L().S("html5_gapless_no_clear_buffer_timeline")&&U.K===1&&Lk(U.Y.getVideoData())}; val=function(U){var Y=U.Y.sH();Y=Y.isView()?Y.start:0;var A=U.Y.getVideoData().isLivePlayback?Infinity:U.Y.XB(!0);A=Math.min(U.Wi/1E3,A)+Y;var c=U.Z?100:0;U=A-U.T.Je()+c;return{lI:Y,mu:U,GS:A,O8:Infinity}}; it8=function(U){return{WD:U.W.Y.Pp,hX:U.W.T.Pp}}; Rk=function(U){g.p.call(this);var Y=this;this.app=U;this.K=this.T=this.Y=null;this.Z=!1;this.W=this.j=null;this.G=Vqv(this.app.L());this.J=function(){g.jW(function(){FE3(Y)})}}; jAX=function(U,Y,A,c,d){c=c===void 0?0:c;d=d===void 0?0:d;U.KF()||ak(U);U.j=new AX;U.Y=Y;var T=A,E=d===0;E=E===void 0?!0:E;var L=U.app.bY(),r=L.getVideoData().isLivePlayback?Infinity:L.XB(!0)*1E3;T>r&&(T=r-200,U.Z=!0);E&&L.getCurrentTime()>=T/1E3?U.J():(U.T=L,E&&(E=T,T=U.T,U.app.gW.addEventListener(g.zf("vqueued"),U.J),E=isFinite(E)||E/1E3>T.getDuration()?E:0x8000000000000,U.K=new g.EE(E,0x8000000000000,{namespace:"vqueued"}),T.addCueRange(U.K)));E=c/=1E3;T=Y.getVideoData().Y;c&&T&&U.T&&(L=c,r=0, Y.getVideoData().isLivePlayback&&(E=Math.min(A/1E3,U.T.XB(!0)),r=Math.max(0,E-U.T.getCurrentTime()),L=Math.min(c,Y.XB()+r)),E=Wd3(T,L)||c,E!==c&&U.Y.wW("qvaln",{st:c,at:E,rm:r,ct:L}));Y=E;c=U.Y;c.getVideoData().kC=!0;c.getVideoData().Z=!0;c.AA(!0);T={};U.T&&(T=U.T.ZM(),E=U.T.getVideoData().clientPlaybackNonce,T={crt:(T*1E3).toFixed(),cpn:E});c.wW("queued",T);Y!==0&&c.seekTo(Y+.01,{Dy:!0,fN:3,Qa:"videoqueuer_queued"});U.W=new $$l(U.G,U.app.bY(),U.Y,A,U.app,d);A=U.W;A.status.status!==Infinity&&(ku(A, 1),A.Y.subscribe("internalvideodatachange",A.m3,A),A.T.subscribe("internalvideodatachange",A.m3,A),A.df.L().S("html5_gapless_use_format_info_fix")&&(A.Y.subscribe("internalvideoformatchange",A.m3,A),A.T.subscribe("internalvideoformatchange",A.m3,A)),A.Y.subscribe("mediasourceattached",A.m3,A),A.T.subscribe("statechange",A.RB,A),A.Y.subscribe("newelementrequired",A.M9,A),A.m3());return U.j}; FE3=function(U){var Y,A,c,d,T,E,L,r,l;g.S(function(P){switch(P.T){case 1:if(U.Ky()||!U.j||!U.Y)return P.return();U.Z&&U.app.bY().j$(!0,!1);A=U.app.L().S("html5_force_csdai_gapful_transition")&&((Y=U.app.bY())==null?void 0:Y.getVideoData().isDaiEnabled());c=null;if(!U.W||A){P.uY(2);break}g.J3(P,3);return g.x(P,GmX(U.W),5);case 5:g.t3(P,2);break;case 3:c=d=g.XE(P);case 2:if(!U.Y)return P.return();g.Xu.I8("vqsp",function(){U.app.xw(U.Y)}); if(!U.Y)return P.return();T=U.Y.sH();U.app.L().S("html5_gapless_seek_on_negative_time")&&T&&T.getCurrentTime()<-.01&&U.Y.seekTo(0);g.Xu.I8("vqpv",function(){U.app.playVideo()}); if(c||A)U.Y?(E=c?c.message:"forced",(L=U.T)==null||L.wW("gapfulfbk",{r:E}),U.Y.Uu(E)):(r=U.T)==null||r.wW("gapsp",{});l=U.j;ak(U);l&&l.resolve();return P.return(Promise.resolve())}})}; ak=function(U,Y){Y=Y===void 0?!1:Y;if(U.T){if(U.K){var A=U.T;U.app.gW.removeEventListener(g.zf("vqueued"),U.J);A.removeCueRange(U.K)}U.T=null;U.K=null}U.W&&(U.W.status.status!==6&&(A=U.W,A.status.status!==Infinity&&A.K!==1&&A.DO("Canceled")),U.W=null);U.j=null;U.Y&&!Y&&U.Y!==U.app.Yt()&&U.Y!==U.app.bY()&&U.Y.dispose();U.Y&&Y&&U.Y.Yf();U.Y=null;U.Z=!1}; N0X=function(U){var Y;return((Y=U.W)==null?void 0:Y.currentVideoDuration)||-1}; tqY=function(U,Y,A){if(U.KF())return"qie";if(U.Y==null||U.Y.Ky()||U.Y.getVideoData()==null)return"qpd";if(Y.videoId!==U.Y.SM())return"vinm";if(N0X(U)<=0)return"ivd";if(A!==1)return"upt";if((A=U.W)==null)U=void 0;else if(A.getStatus().status!==5)U="niss";else if(rN8(A.policy,A.Y,A.T,A.Wi)!=null)U="pge";else{Y=it8(A);U=Y.WD;var c=Y.hX;Y=g.H_(A.df.L().experiments,"html5_shorts_gapless_next_buffer_in_seconds");A=A.J+Y;c=Vd(c.MU(),A);U=Vd(U.MU(),A);U=!(Y>0)||c&&U?null:"neb"}return U!=null?U:null}; eQX=function(){g.l6.call(this);var U=this;this.fullscreen=0;this.j=this.W=this.pictureInPicture=this.Y=this.T=this.inline=!1;this.K=function(){U.Wa()}; wlv(this.K);this.J=this.getVisibilityState(this.x4(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.LJ(),this.n7(),this.H4(),this.f5())}; qj=function(U){return!(U.isMinimized()||U.isInline()||U.isBackground()||U.LJ()||U.n7()||U.H4()||U.f5())}; g.xu=function(U){g.p.call(this);this.MI=U;this.videoData=this.playerState=null}; g.sp=function(U,Y){g.p.call(this);this.W={};this.pF=this.G=null;this.K={};this.J=null;this.T=this.Y=new g.xu(U);this.j=Y}; B0X=function(U){for(var Y=g.J(Object.values(U.K)),A=Y.next();!A.done;A=Y.next())A.value.dispose();U.K={};U.J=null}; XYE=function(U,Y){U.K[Y.DA()]=Y;U.J=Y}; sAc=function(U){var Y=U.experiments,A=Y.lY.bind(Y);kmX=A("html5_use_async_stopVideo");RQS=A("html5_pause_for_async_stopVideo");av3=A("html5_not_reset_media_source");A("html5_listen_for_audio_output_changed")&&(MRY=!0);Kw=A("html5_not_reset_media_source");x$3=A("html5_not_reset_media_source");iM=A("html5_retain_source_buffer_appends_for_debugging");zt8(A("web_watch_pip"));A("html5_mediastream_applies_timestamp_offset")&&(Jc=!0);var c=g.H_(Y,"html5_cobalt_override_quic");c&&de("QUIC",+(c>0));(c=g.H_(Y, "html5_cobalt_audio_write_ahead_ms"))&&de("Media.AudioWriteDurationLocal",c);(c=A("html5_cobalt_enable_decode_to_texture"))&&de("Media.PlayerConfiguration.DecodeToTexturePreferred",c?1:0);(U.O3()||A("html5_log_cpu_info"))&&vEE();Error.stackTraceLimit=50;var d=g.H_(Y,"html5_idle_rate_limit_ms");d&&Object.defineProperty(window,"requestIdleCallback",{value:function(T){return window.setTimeout(T,d)}}); Qh9(U.K);JMl(A("html5_use_ump_request_slicer"));h_8(A("html5_record_now"));A("html5_disable_streaming_xhr")&&(dI=!1);A("html5_byterate_constraints")&&(vz=!0);A("html5_use_non_active_broadcast_for_post_live")&&(cM=!0);A("html5_enable_encrypted_av1")&&(qx=!0);p_X(g.H_(U.experiments,"html5_sticky_duration_mos"));U.S("html5_estimate_live_partial_slice_duration")&&(oeY=!0)}; fv3=function(U,Y){return U.slice(Y.length).replace(/_[a-z]/g,function(A){return A.toUpperCase().replace("_","")}).replace("Dot",".")}; hQ8=function(U){for(var Y={},A=g.J(Object.keys(U.experiments.flags)),c=A.next();!c.done;c=A.next())if(c=c.value,c.startsWith("cobalt_h5vcc")){if(c.startsWith("cobalt_h5vcc_string")){A=fv3(c,"cobalt_h5vcc_string");U=Ta(U.experiments,c);A&&U&&(Y[A]=de(A,U));break}if(c.startsWith("cobalt_h5vcc")){A=fv3(c,"cobalt_h5vcc");U=g.H_(U.experiments,c);A&&U&&(Y[A]=de(A,U));break}}return Y}; fo=function(U,Y,A,c,d){d=d===void 0?[]:d;g.p.call(this);this.MI=U;this.cZ=Y;this.j=A;this.segments=d;this.Y=void 0;this.T=new Map;d.length&&(this.Y=d[0])}; SKc=function(U){if(!(U.segments.length<2)){var Y=U.segments.shift();if(Y){var A=Y.Y,c=[];if(A.size){A=g.J(A.values());for(var d=A.next();!d.done;d=A.next()){d=g.J(d.value);for(var T=d.next();!T.done;T=d.next()){T=T.value;for(var E=g.J(T.segments),L=E.next();!L.done;L=E.next())(L=L.value.DA())&&c.push(L);T.removeAll()}}}(A=Y.DA())&&c.push(A);c=g.J(c);for(A=c.next();!A.done;A=c.next())U.T.delete(A.value);Y.dispose()}}}; hC=function(U,Y,A,c){if(!U.Y||Y>A)return!1;Y=new fo(U.MI,Y,A,U.Y,c);c=g.J(c);for(A=c.next();!A.done;A=c.next()){A=A.value;var d=A.DA();d&&d!==U.Y.DA()&&U.T.set(d,[A])}U=U.Y;U.Y.has(Y.KV())?U.Y.get(Y.KV()).push(Y):U.Y.set(Y.KV(),[Y]);return!0}; S6=function(U,Y){return U.T.get(Y)}; Mqv=function(U,Y,A){U.T.set(Y,A)}; My=function(U,Y,A,c,d,T){return new btX(A,A+(c||0),!c,Y,U,d,T)}; btX=function(U,Y,A,c,d,T,E){g.p.call(this);this.cZ=U;this.T=Y;this.W=A;this.type=c;this.j=d;this.videoData=T;this.Tg=E;this.Y=new Map;et(T)}; pY3=function(U){if(U.Y.size)for(var Y=g.J(U.Y.values()),A=Y.next();!A.done;A=Y.next()){A=g.J(A.value);for(var c=A.next();!c.done;c=A.next())c.value.dispose()}U.Y.clear()}; bb=function(U,Y,A){g.OW.call(this,A.rL());this.BQ=U;this.videoData=Y}; QAS=function(U){this.end=this.start=U}; g.po=function(){this.Y=new Map;this.W=new Map;this.T=new Map}; g.Q0=function(U,Y,A,c){g.p.call(this);var d=this;this.api=U;this.MI=Y;this.playback=A;this.app=c;this.Uv=new g.po;this.T=new Map;this.J=[];this.K=[];this.j=new Map;this.qz=new Map;this.G=new Map;this.Zf=null;this.Lr=NaN;this.AP=this.mH=null;this.R1=new g.IM(function(){Zt3(d,d.Lr,d.mH||void 0)}); this.events=new g.Qy(this);this.ws=15E3;this.QJ=new g.IM(function(){d.eX=!0;d.playback.fG(d.ws);Ot4(d);if(d.playback.getVideoData().b9()){var T;d.XT({togab:(T=d.ov)==null?void 0:T.identifier})}d.oy(!1)},this.ws); this.eX=!1;this.X=new Map;this.VJ=[];this.ov=null;this.Tk=new Set;this.kE=[];this.Me=[];this.qe=[];this.tb=[];this.Y=void 0;this.jX=0;this.dW=!0;this.Z=!1;this.yJ=[];this.qI=new Set;this.q5=new Set;this.Va=new Set;this.zx=0;this.Ly=new Set;this.nU=0;this.zG=this.KU=!1;this.s3=this.W="";this.Hw=null;this.logger=new g.o6("dai");this.o5={vfy:function(){return d.T}, rUY:function(){return d.J}, DYW:function(){return d.j}, IqJ:function(){return d.W}, Ds:function(T){d.onCueRangeEnter(d.T.get(T))}, YLJ:function(T){d.onCueRangeExit(d.T.get(T))}, yAf:function(T,E){d.T.set(T,E)}, cAX:function(T){d.s3=T}, aF:function(){return d.aF()}, jfv:function(T){return d.G.get(T)}, FzW:function(){return d.Hw}}; this.playback.getPlayerType();this.playback.D2(this);this.i$=this.MI.O3();g.Z(this,this.R1);g.Z(this,this.events);g.Z(this,this.QJ);this.events.N(this.api,g.zf("serverstitchedcuerange"),this.onCueRangeEnter);this.events.N(this.api,g.LS("serverstitchedcuerange"),this.onCueRangeExit);XYE(this.app.M0(),new bb(this,this.playback.getVideoData(),this.playback))}; naX=function(U,Y,A,c,d,T,E,L,r){if(U.MI.S("html5_ignore_ads_after_noadresponse")&&r&&U.Tk.has(r))return Zn(U,{reason:"addafternoad",cueid:r}),"";r=m$X(U,T,T+d);U.eX&&U.XT({adaftto:1});A||U.XT({missadcon:1,enter:T,len:d,aid:L});U.Pw&&!U.Pw.z4&&(U.Pw.z4=L);U.zG&&U.XT({adfbk:1,enter:T,len:d,aid:L});var l=U.playback;E=E===void 0?T+d:E;T===E&&!d&&U.MI.S("html5_allow_zero_duration_ads_on_timeline")&&U.XT({attl0d:1});T>E&&Zn(U,{reason:"enterTime_greater_than_return",cZ:T,TN:E});var P=l.eq()*1E3;Tl&&Zn(U,{reason:"parent_return_greater_than_content_duration",TN:E,AAY:l});l=null;P=g.kz(U.K,{TN:T},function(V,v){return V.TN-v.TN}); P>=0&&(l=U.K[P],l.TN>T&&gal(U,Y.video_id||"",T,E,l));if(r&&l)for(P=0;P.5&&U.XT({ttdtb:1,delta:E,cpn:d.cpn,enter:Y.adCpn,exit:A.adCpn,seek:c,skip:T});U.api.S("html5_ssdai_enable_media_end_cue_range")&&U.api.JU();if(Y.isAd&&A.isAd){d=!!T;if(Y.adCpn&&A.adCpn){var L=U.j.get(Y.adCpn);var r=U.j.get(A.adCpn)}d?U.XT({igtransskip:1,enter:Y.adCpn,exit:A.adCpn,seek:c,skip:T}):no(U,r,L,A.q7,Y.q7,c,d)}else if(!Y.isAd&&A.isAd){U.s3=d.cpn;gQ(U,d.videoData);U.api.publish("serverstitchedvideochange");L=m4(U, "a2c");U.XT(L);U.zx=0;if(L=A.KP)U.jX=L.end;var l;A.adCpn&&(l=U.j.get(A.adCpn));l&&U.playback.ou(l,d,A.q7,Y.q7,c,!!T)}else if(Y.isAd&&!A.isAd){var P;Y.adCpn&&(P=U.j.get(Y.adCpn));P&&(U.jX=0,U.s3=P.cpn,gQ(U,P.videoData),y0(U,P),l=m4(U,"c2a",P),U.XT(l),U.zx=1,U.playback.ou(d,P,A.q7,Y.q7,c,!!T))}}; Ik=function(U,Y,A){A=A===void 0?0:A;var c=g.kz(U.K,{cZ:(Y+A)*1E3},function(L,r){return L.cZ-r.cZ}); c=c<0?(c+2)*-1:c;if(c>=0)for(var d=Y*1E3,T=c;T<=c+1&&T=E.cZ-A*1E3&&d<=E.TN+A*1E3)return{OR:E,l8:Y}}return{OR:void 0,l8:Y}}; IvE=function(U,Y){var A="";(Y=D$X(U,Y))&&(A=Y.getId());return A?U.j.get(A):void 0}; D$X=function(U,Y){if(U.s3){var A=U.T.get(U.s3);if(A&&A.start-200<=Y&&A.end+200>=Y)return A}U=g.J(U.T.values());for(A=U.next();!A.done;A=U.next())if(A=A.value,A.start<=Y&&A.end>=Y)return A}; Zt3=function(U,Y,A){var c=U.AP||U.app.bY().getPlayerState();ub(U,!0);U.playback.seekTo(Y,A);U=U.app.bY();Y=U.getPlayerState();c.isOrWillBePlaying()&&!Y.isOrWillBePlaying()?U.playVideo():c.isPaused()&&!Y.isPaused()&&U.pauseVideo()}; ub=function(U,Y){U.Lr=NaN;U.mH=null;U.R1.stop();U.Zf&&Y&&U.Zf.Yl();U.AP=null;U.Zf=null}; uU4=function(U){var Y=Y===void 0?-1:Y;var A=A===void 0?Infinity:A;for(var c=[],d=g.J(U.K),T=d.next();!T.done;T=d.next())T=T.value,(T.cZA)&&c.push(T);U.K=c;c=g.J(U.T.values());for(d=c.next();!d.done;d=c.next())d=d.value,d.start>=Y&&d.end<=A&&(U.playback.removeCueRange(d),U.T.delete(d.getId()),U.XT({rmAdCR:1}));c=Ik(U,Y/1E3);Y=c.OR;c=c.l8;if(Y&&(c=c*1E3-Y.cZ,d=Y.cZ+c,Y.durationMs=c,Y.TN=d,c=U.T.get(Y.cpn))){d=g.J(U.J);for(T=d.next();!T.done;T=d.next())T=T.value,T.start===c.end?T.start=Y.cZ+ Y.durationMs:T.end===c.start&&(T.end=Y.cZ);c.start=Y.cZ;c.end=Y.cZ+Y.durationMs}if(Y=Ik(U,A/1E3).OR){var E;c="playback_timelinePlaybackId_"+Y.R5+"_video_id_"+((E=Y.videoData)==null?void 0:E.videoId)+"_durationMs_"+Y.durationMs+"_enterTimeMs_"+Y.cZ+"_parentReturnTimeMs_"+Y.TN;U.a4("Invalid_clearEndTimeMs_"+A+"_that_falls_during_"+c+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; KEE=function(U){U.Uv.clearAll();U.T.clear();U.J=[];U.K=[];U.j.clear();U.qz.clear();U.G.clear();U.X.clear();U.VJ=[];U.ov=null;U.Tk.clear();U.kE=[];U.Me=[];U.qe=[];U.tb=[];U.yJ=[];U.qI.clear();U.q5.clear();U.Va.clear();U.Ly.clear();U.eX=!1;U.Y=void 0;U.jX=0;U.dW=!0;U.Z=!1;U.zx=0;U.nU=0;U.KU=!1;U.zG=!1;U.W="";U.QJ.isActive()&&Op(U)}; C_c=function(U,Y,A,c,d,T){if(!U.zG)if(g.qK9(U,A))U.XT({gdu:"undec",seg:A,itag:d});else if(Y=Ko(U,Y,A,c,T),!(U.playback.getVideoData().b9()&&(Y==null?0:Y.ih)))return Y}; Ko=function(U,Y,A,c,d){var T=U.X.get(A);if(!T){if(T=UuE(U,Y))return T;Y=U.e0(A-1,c!=null?c:2);if(d)return U.XT({misscue:d,sq:A,type:c,prevsstate:Y==null?void 0:Y.Ue,prevrecord:U.X.has(A-1)}),U.X.get(A-1);if((Y==null?void 0:Y.Ue)===2)return U.XT({adnf:1,sq:A,type:c,prevrecord:U.X.has(A-1)}),U.X.get(A-1)}return T}; UuE=function(U,Y){Y+=U.d9();if(U.playback.getVideoData().b9())a:{var A=1;A=A===void 0?0:A;var c=Y*1E3;U=g.J(U.K);for(var d=U.next();!d.done;d=U.next()){d=d.value;var T=d.ge?d.ge*1E3:d.cZ;if(c>=d.cZ-A*1E3&&c<=T+d.durationMs+A*1E3){c={OR:d,l8:Y};break a}}c={OR:void 0,l8:Y}}else c=Ik(U,Y),((A=c)==null?0:A.OR)||(c=Ik(U,Y,1));var E;return(E=c)==null?void 0:E.OR}; Ymc=function(U,Y){Y=Y===void 0?"":Y;var A=rI(Y)||void 0;if(!Y||!A){var c;U.XT({adcfg:(c=Y)==null?void 0:c.length,dcfg:A==null?void 0:A.length})}return A}; AsS=function(U){if(U.yJ.length)for(var Y=g.J(U.yJ),A=Y.next();!A.done;A=Y.next())U.onCueRangeExit(A.value);Y=g.J(U.T.values());for(A=Y.next();!A.done;A=Y.next())U.playback.removeCueRange(A.value);Y=g.J(U.J);for(A=Y.next();!A.done;A=Y.next())U.playback.removeCueRange(A.value);U.T.clear();U.J=[];U.Uv.clearAll();U.Y||(U.dW=!0)}; no=function(U,Y,A,c,d,T,E){if(Y&&A){U.s3=A.cpn;gQ(U,A.videoData);y0(U,A);var L=m4(U,"a2a",A);U.XT(L);U.zx++;U.playback.ou(Y,A,c||0,d||0,!!T,!!E)}else U.XT({misspbkonadtrans:1,enter:(A==null?void 0:A.cpn)||"",exit:(Y==null?void 0:Y.cpn)||"",seek:T,skip:E})}; du8=function(U,Y,A,c){if(c)for(c=0;cA){var T=d.end;d.end=Y;csX(U,A,T)}else if(d.start>=Y&&d.startA)d.start=A;else if(d.end>Y&&d.end<=A&&d.start=Y&&d.end<=A){U.playback.removeCueRange(d);if(U.yJ.includes(d))U.onCueRangeExit(d);U.J.splice(c,1);continue}c++}else csX(U,Y,A)}; csX=function(U,Y,A){Y=U.L1(Y,A);A=!0;g.Sz(U.J,Y,function(E,L){return E.start-L.start}); for(var c=0;c0){var d=U.J[c],T=U.J[c-1];if(Math.round(T.end/1E3)>=Math.round(d.start/1E3)){T.end=d.end;d!==Y?U.playback.removeCueRange(d):A=!1;U.J.splice(c,1);continue}}c++}if(A)for(U.playback.addCueRange(Y),Y=U.playback.vK("serverstitchedcuerange",36E5),Y=g.J(Y),A=Y.next();!A.done;A=Y.next())U.T.delete(A.value.getId())}; qy=function(U,Y,A){if(A===void 0||!A){A=g.J(U.VJ);for(var c=A.next();!c.done;c=A.next()){c=c.value;if(Y>=c.start&&Y<=c.end)return;if(Y===c.end+1){c.end+=1;return}}U.VJ.push(new QAS(Y))}}; g.qK9=function(U,Y){U=g.J(U.VJ);for(var A=U.next();!A.done;A=U.next())if(A=A.value,Y>=A.start&&Y<=A.end)return!0;return!1}; Co=function(U,Y,A){var c;if(c=U.playback.getVideoData().b9()||U.MI.S("html5_ssdai_extent_last_unfinished_ad_cue_range"))c=(c=U.j.get(Y))&&c.Gx?(U=U.G.get(c==null?void 0:c.Gx))&&U.slice(-1)[0].cpn===Y:!1;return c&&A===2?1E3:0}; gal=function(U,Y,A,c,d){var T;Y={reason:"overlapping_playbacks",HIY:Y,cZ:A,TN:c,Pnf:d.R5,Hlv:((T=d.videoData)==null?void 0:T.videoId)||"",MvY:d.durationMs,ils:d.cZ,wNE:d.TN};Zn(U,Y)}; Zn=function(U,Y,A){U.playback.Nh(Y,A)}; Til=function(U,Y){var A=[];U=U.G.get(Y);if(!U)return[];U=g.J(U);for(Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.cpn&&A.push(Y.cpn);return A}; Ed3=function(U,Y,A){var c=0;U=U.G.get(A);if(!U)return-1;U=g.J(U);for(A=U.next();!A.done;A=U.next()){if(A.value.cpn===Y)return c;c++}return-1}; od3=function(U,Y){var A=0;U=U.G.get(Y);if(!U)return 0;U=g.J(U);for(Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.durationMs!==0&&Y.TN!==Y.cZ&&A++;return A}; z1Y=function(U,Y,A){var c=!1;if(A&&(A=U.G.get(A))){A=g.J(A);for(var d=A.next();!d.done;d=A.next())d=d.value,d.durationMs!==0&&d.TN!==d.cZ&&(d=d.cpn,Y===d&&(c=!0),c&&!U.q5.has(d)&&(U.XT({decoratedAd:d}),U.q5.add(d)))}}; Ot4=function(U){U.i$&&U.XT({adf:"0_"+((new Date).getTime()/1E3-U.nU)+"_isTimeout_"+U.eX})}; m$X=function(U,Y,A){if(U.kE.length)for(var c=g.J(U.kE),d=c.next(),T={};!d.done;T={RD:void 0},d=c.next()){T.RD=d.value;d=T.RD.startSecs*1E3;var E=T.RD.LV*1E3+d;if(Y>d&&Yd&&A=Y)return A}}; tZv=function(U){var Y=U.playback.getVideoData();U.s3&&(U=U.xD.get(U.s3))&&(Y=U);return Y}; e1c=function(U,Y,A){A=A===void 0?!1:A;var c=U.timeline.Y;if(c){c=c.Y;var d=Array.from(c.keys());g.sO(d);Y=g.kz(d,Y);Y=c.get(d[Y<0?(Y+2)*-1:Y]);if(!A&&Y){A=g.J(Y);for(Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,Y.KV()!==Y.Wg())return Y;return U.timeline}return Y&&Y.length>0?Y[Y.length-1]:void 0}}; JsX=function(U,Y,A){A=A===void 0?!1:A;var c=e1c(U,Y,A);if(c){if(U=c.segments,U.length){for(var d=g.J(U),T=d.next();!T.done;T=d.next())if(T=T.value,T.KV()<=Y&&T.Wg()>Y)return T;if(A&&c.KV()===c.Wg())return U[0]}}else U.api.wW("ssap",{ctnf:1})}; VZ3=function(U,Y){var A;if(U.fd)for(A=U.UV.shift();A&&A!==U.fd;)A=U.UV.shift();else A=U.UV.shift();if(A){if(U.pm.has(A))BiX(U,A);else if(Y===3||Y===4)U.OD.stop(),U.api.playVideo(1);U.LO.set(U.s3,Y);U.api.wW("ssap",{onvftn:1});wQX(U,A);return!1}U.api.wW("ssap",{onvftv:1});U.OD.stop();return!0}; BiX=function(U,Y){Y=S6(U.timeline,Y);if(Y==null?0:Y.length)U.api.pauseVideo(),U.OD.start(Y[0].Tg)}; wQX=function(U,Y){var A=U.playback.getVideoData(),c=A.clientPlaybackNonce;U.Yc&&(U.events.FY(U.Yc),U.Yc=null);var d=U.s3,T=!1;if(d==="")d=c,T=!0;else if(d===void 0){var E=U.playback.wm();E&&U.timeline.T.has(E)&&(d=E);U.api.wW("ssap",{mcc:d+";"+Y});U.playback.Ne(new a9("ssap.timelineerror",{e:"missing_current_cpn",pcpn:d,ccpn:Y}))}if(d===Y)T&&A&&XQ8(U,A,T);else{E=U.LO.get(d);if(!T&&(!E||E!==3&&E!==5&&E!==6&&E!==7)){var L=U.api.JU(U.s3);U.api.wW("ssap",{nmec:L,cpc:U.s3,ec:Y})}E&&E!==2||U.vr();U.s3= Y;U.vr();Y=S6(U.timeline,U.s3);if(Y==null?0:Y.length){Y=Y[0];L=Y.type;d!==c&&(U.n9=d,A=U.xD.get(d));E?U.LO.delete(d):E=T?1:2;U.api.wW("ssapt",{ostro:E,pcpn:d,ccpn:U.s3});a:{var r=U.s3;if(!U.zT.has(r))for(var l=g.J(U.zT),P=l.next();!P.done;P=l.next()){var V=g.J(P.value);P=V.next().value;V=V.next().value;if(V.getId().includes(r)){r=P;break a}}}l=U.api.L().S("html5_ssap_insert_su_before_nonvideo")&&r!==U.s3;U.playback.qS(r,l);r=Math.max(0,Yj(U,d));l=U.playback.getCurrentTime();l=Math.max(0,l-U1(U,U.s3)/ 1E3);P=Y.getVideoData();V=E===3||E===5||E===6||E===7;if(U.api.S("html5_ssap_skip_illegal_seeking")){var v=U.playback.getPlayerState();v=!g.I(v,8)&&g.I(v,16);V=V||v;v&&U.api.wW("ssap",{iis:1})}U.playback.KH(d,U.s3,r,l,!1,V,U.playback.getPlayerState(),!0);U.api.wW("ssapt",{ostri:E,pcpn:d,ccpn:U.s3});var H;U.playback.Yq(d,U.s3,c,P,(H=U.fz.get(d))!=null?H:(0,g.y)(),A);U.fz.delete(d);T?A=void 0:A||U.api.wW("ssap",{pvdm:d+";"+U.s3,pvdmc:U.s3===c?"1":"0"});U.api.wW("ssap",{tpac:d+";"+U.s3,tpcc:c,tpv:(P== null?0:P.Bp())?"1":"0"},!1,1);U.api.Oe();U.api.publish("videodatachange","newdata",P,L,A,E);Y.W||U.playback.getVideoData().publish("dataupdated");U.pm.delete(d);U.fd="";P&&L===1?XQ8(U,P):U.playback.wW("ssap",{nis:U.s3});L===2?U.zx++:U.zx=0}}}; XQ8=function(U,Y,A){A=A===void 0?!1:A;if(Y.startSeconds&&U.iR){var c=Y.startSeconds;Y=S6(U.timeline,Y.clientPlaybackNonce);if(Y==null?0:Y.length)c+=Y[0].KV()/1E3,U.api.S("htm5_ssap_ignore_initial_seek_if_too_big")&&c>=U.Yy()||(U.playback.seekTo(c,{I0:!0}),U.iR=!1,U.playback.wW("ssap",{is:U.s3,co:A?"1":"0",tse:c.toFixed()}))}}; Wh3=function(U,Y,A){Y=S6(U.timeline,Y);if(Y!=null&&Y.length&&(Y=e1c(U,Y[0].KV()))){Y=g.J(Y.segments);for(var c=Y.next();!c.done;c=Y.next()){c=c.value;if(c.DA()===A)break;if(c=c.DA()){var d=U.zT.get(c);d&&U.playback.removeCueRange(d);U.zT.delete(c)}}}}; THc=function(U,Y,A){JsX(U,Y)||U.playback.wW("ssap",{ilgsk:Y.toFixed(),mep:A?"1":"0",tl:gZ(U)})}; Yj=function(U,Y){Y=Y||U.s3;var A=U.xD.get(Y);return A?A.kE:Y!==U.playback.getVideoData().clientPlaybackNonce?0:U.playback.getVideoData().kE}; gZ=function(U){var Y=U.s3;Y||(Y=U.playback.getVideoData().clientPlaybackNonce);var A,c,d=Array.from((c=(A=U.timeline.Y)==null?void 0:A.Y.values())!=null?c:[]);A=[];if(d==null?0:d.length)for(c=g.J(d),d=c.next();!d.done;d=c.next())if(d=d.value,d.length&&d[0]&&(d=d[0].segments,d.length)){d=g.J(d);for(var T=d.next();!T.done;T=d.next()){var E=T.value;T="st."+E.KV()+";";T+="et."+E.Wg()+";";var L=E.DA();L&&(T+="cpn."+L+";",T+="a."+(Y===L?1:0)+";");if(E=E.getVideoData())L=void 0,T+="vid."+((L=E.videoId)!= null?L:"nvd");A.push(T)}}return(A.length?A.join(","):"empty."+Y)+";cpcpn."+U.jr()}; $uE=function(U){U.playback.WU(Array.from(U.zT.values()));U.zT.clear()}; R13=function(U,Y,A,c){g.p.call(this);var d=this;this.api=U;this.MI=Y;this.Y=A;this.app=c;this.K=new Map;this.T=[];this.W=this.G=null;this.Pw=NaN;this.J=this.j=this.X=null;this.Z=new g.IM(function(){knX(d,d.Pw,d.X||void 0)}); this.Hw=[];this.ov=new g.IM(function(){var T=d.Hw.pop();if(T){var E=T.R5,L=T.playerVars;T=T.playerType;L&&(L.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(L,T,NaN,"",E),d.Hw.length&&g.uQ(d.ov,4500))}}); this.events=new g.Qy(this);this.o5={esJ:function(){return d.T}}; this.Y.getPlayerType();g.Z(this,this.Z);g.Z(this,this.ov);g.Z(this,this.events);this.events.N(this.api,g.zf("childplayback"),this.onCueRangeEnter);this.events.N(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.N(this.api,"presentingplayerstatechange",this.gV)}; f93=function(U,Y,A,c,d,T){var E=Y.cpn,L=Y.docid||Y.video_id||Y.videoId||Y.id,r=U.Y;T=T===void 0?d+c:T;if(d>T)return Ad(U,"enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+T.toFixed(3),E,L),"";var l=r.eq()*1E3;if(dl)return r="returnAfterDuration parentReturnTimeMs="+T.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+ r.Zm(),Ad(U,r,E,L),"";l=null;for(var P=g.J(U.T),V=P.next();!V.done;V=P.next()){V=V.value;if(d>=V.cZ&&dV.cZ)return Ad(U,"overlappingReturn",E,L),"";if(T===V.cZ)return Ad(U,"outOfOrder",E,L),"";d===V.TN&&(l=V)}E="cs_childplayback_"+a9X++;L={KP:cv(c,!0),Wi:Infinity,target:null};var v={R5:E,playerVars:Y,playerType:A,durationMs:c,cZ:d,TN:T,EB:L};U.T=U.T.concat(v).sort(function(F,N){return F.cZ-N.cZ}); l?xu4(U,l,{KP:cv(l.durationMs,!0),Wi:l.EB.Wi,target:v}):(Y={KP:cv(d,!1),Wi:d,target:v},U.K.set(Y.KP,Y),r.addCueRange(Y.KP));Y=!0;if(U.Y===U.app.bY()&&(r=r.getCurrentTime()*1E3,r>=v.cZ&&rY)break;if(T>Y)return{OR:c,l8:Y-d};A=T-c.TN/1E3}return{OR:null,l8:Y-A}}; knX=function(U,Y,A){A=A===void 0?{}:A;var c=U.J||U.app.bY().getPlayerState();E1(U,!0);Y=isFinite(Y)?Y:U.Y.bN();var d=bPX(U,Y);Y=d.l8;var T=(d=d.OR)&&!dE(U,d)||!d&&U.Y!==U.app.bY(),E=Y*1E3;E=U.W&&U.W.start<=E&&E<=U.W.end;!T&&E||Tv(U);d?sIv(U,d,Y,A,c):pQX(U,Y,A,c)}; pQX=function(U,Y,A,c){var d=U.Y;d!==U.app.bY()&&U.app.YZ();d.seekTo(Y,Object.assign({},{Qa:"application_timelinemanager"},A));QIX(U,c)}; sIv=function(U,Y,A,c,d){var T=dE(U,Y);if(!T){Y.playerVars.prefer_gapless=!0;U.MI.S("html5_enable_ssap_entity_id")&&(Y.playerVars.cached_load=!0);var E=new g.nD(U.MI,Y.playerVars);E.R5=Y.R5;U.api.Ow(E,Y.playerType)}E=U.app.bY();T||E.addCueRange(Y.EB.KP);E.seekTo(A,Object.assign({},{Qa:"application_timelinemanager"},c));QIX(U,d)}; QIX=function(U,Y){U=U.app.bY();var A=U.getPlayerState();Y.isOrWillBePlaying()&&!A.isOrWillBePlaying()?U.playVideo():Y.isPaused()&&!A.isPaused()&&U.pauseVideo()}; E1=function(U,Y){U.Pw=NaN;U.X=null;U.Z.stop();U.j&&Y&&U.j.Yl();U.J=null;U.j=null}; dE=function(U,Y){U=U.app.bY();return!!U&&U.getVideoData().R5===Y.R5}; ZPX=function(U){var Y=U.T.find(function(d){return dE(U,d)}); if(Y){var A=U.app.bY();Tv(U);var c=new g.z3(8);Y=MZc(U,Y)/1E3;pQX(U,Y,{},c);A.wW("forceParentTransition",{childPlayback:1});U.Y.wW("forceParentTransition",{parentPlayback:1})}}; muc=function(U,Y,A){Y=Y===void 0?-1:Y;A=A===void 0?Infinity:A;for(var c=Y,d=A,T=g.J(U.K),E=T.next();!E.done;E=T.next()){var L=g.J(E.value);E=L.next().value;L=L.next().value;L.Wi>=c&&L.target&&L.target.TN<=d&&(U.Y.removeCueRange(E),U.K.delete(E))}c=Y;d=A;T=[];E=g.J(U.T);for(L=E.next();!L.done;L=E.next())if(L=L.value,L.cZ>=c&&L.TN<=d){var r=U;r.G===L&&Tv(r);dE(r,L)&&r.app.YZ()}else T.push(L);U.T=T;c=bPX(U,Y/1E3);Y=c.OR;c=c.l8;Y&&(c*=1E3,OPl(U,Y,c,Y.TN===Y.cZ+Y.durationMs?Y.cZ+c:Y.TN));(Y=bPX(U,A/1E3).OR)&& Ad(U,"Invalid clearEndTimeMs="+A+" that falls during playback={timelinePlaybackId="+(Y.R5+" video_id="+Y.playerVars.video_id+" durationMs="+Y.durationMs+" enterTimeMs="+Y.cZ+" parentReturnTimeMs="+Y.TN+"}.Child playbacks can only have duration updated not their start."))}; OPl=function(U,Y,A,c){Y.durationMs=A;Y.TN=c;c={KP:cv(A,!0),Wi:A,target:null};xu4(U,Y,c);dE(U,Y)&&U.app.bY().getCurrentTime()*1E3>A&&(Y=MZc(U,Y)/1E3,A=U.app.bY().getPlayerState(),pQX(U,Y,{},A))}; Ad=function(U,Y,A,c){U.Y.wW("timelineerror",{e:Y,cpn:A?A:void 0,videoId:c?c:void 0})}; ys8=function(U){U&&U!=="web"&&gdY.includes(U)}; L0=function(U,Y){g.p.call(this);var A=this;this.data=[];this.W=U||NaN;this.T=Y||null;this.Y=new g.IM(function(){oL(A);zv(A)}); g.Z(this,this.Y)}; UNE=function(U){oL(U);return U.data.map(function(Y){return Y.value})}; oL=function(U){var Y=(0,g.y)();U.data.forEach(function(A){A.expireT?{width:Y.width,height:Y.width/d,aspectRatio:d}:dd?U.width=U.height*A:Ar;if(Vr(U)){var l=qmX(U);var P=isNaN(l)||g.IE||dZ&&g.iW||r;DN&&!g.eF(601)?l=d.aspectRatio:P=P||T.controlsType==="3";P?r?(P=T.S("place_shrunken_video_on_left_of_player")?16:U.getPlayerSize().width-Y.width-16,l=Math.max((U.getPlayerSize().height-Y.height)/2,0),P=new g.fx(P,l,Y.width, Y.height),U.HQ.style.setProperty("border-radius","12px")):P=new g.fx(0,0,Y.width,Y.height):(A=d.aspectRatio/l,P=new g.fx((Y.width-d.width/A)/2,(Y.height-d.height)/2,d.width/A,d.height),A===1&&g.iW&&(l=P.width-Y.height*l,l>0&&(P.width+=l,P.height+=l)));g.lg(U.element,"ytp-fit-cover-video",Math.max(P.width-d.width,P.height-d.height)<1);if(L||U.Mj)U.HQ.style.display="";U.IK=!0}else{P=-Y.height;DN?P*=window.devicePixelRatio:g.AG&&(P-=window.screen.height);P=new g.fx(0,P,Y.width,Y.height);if(L||U.Mj)U.HQ.style.display= "none";U.IK=!1}hm(U.yE,P)||(U.yE=P,g.bo(T)?(U.HQ.style.setProperty("width",P.width+"px","important"),U.HQ.style.setProperty("height",P.height+"px","important")):g.DI(U.HQ,P.getSize()),c=new g.RH(P.left,P.top),g.mF(U.HQ,Math.round(c.x),Math.round(c.y)),c=!0);Y=new g.fx((Y.width-d.width)/2,(Y.height-d.height)/2,d.width,d.height);hm(U.VF,Y)||(U.VF=Y,c=!0);g.MP(U.HQ,"transform",A===1?"":"scaleX("+A+")");E&&r!==U.kI&&(r&&(U.HQ.addEventListener(VA,U.YI),U.HQ.addEventListener("transitioncancel",U.YI),U.HQ.classList.add(g.YN.VIDEO_CONTAINER_TRANSITIONING)), U.kI=r,U.app.gW.publish("playerUnderlayVisibilityChange",U.kI?"transitioning":"hidden"));return c}; AeY=function(U){U.cS=!U.cS;U.bx=!0;U.element.classList.toggle("ytp-retro-player",U.cS);U.resize();U.bx=!1;U.app.gW.Ev("onRetroModeChanged",U.cS)}; ceV=function(){this.csn=g.X3();this.clientPlaybackNonce=null;this.elements=new Set;this.W=new Set;this.Y=new Set;this.T=new Set}; dh3=function(U){if(U.csn!==g.X3())if(U.csn==="UNDEFINED_CSN")U.csn=g.X3();else{var Y=g.X3(),A=g.Bj();if(Y&&A){U.csn=Y;for(var c=g.J(U.elements),d=c.next();!d.done;d=c.next())(d=d.value.visualElement)&&d.isClientVe()&&Y&&A&&(g.ir("combine_ve_grafts")?bc(Sc(),d,A):g.qY(g.uA)(void 0,Y,A,d))}if(Y)for(U=g.J(U.Y),A=U.next();!A.done;A=U.next())(A=A.value.visualElement)&&A.isClientVe()&&g.T2(Y,A)}}; g.vv=function(U,Y,A,c){g.p.call(this);var d=this;this.logger=new g.o6("App");this.S8=this.mG=!1;this.c6={};this.j7=[];this.QR=!1;this.PH=null;this.intentionalPlayback=!1;this.r4=!0;this.sF=!1;this.Ji=this.BY=this.kJ=null;this.Hv=!0;this.mediaElement=this.Qd=null;this.nw=NaN;this.QO=!1;this.LP=this.Vc=this.I1=this.nP=this.screenLayer=this.playlist=null;this.VZ=[];this.OP=0;this.o5={M0:function(){return d.Sq}, OO:function(){return d.I1}, DNf:function(){return d.nP}, Fb:function(T){d.I1=T}, x6:function(T,E){d.I1&&d.I1.x6(T,E)}}; this.logger.debug("constructor begin");this.config=Dv3(Y||{});this.webPlayerContextConfig=A;ocS();Y=this.config.args||{};this.MI=new yp(Y,A,A?A.canaryState:this.config.assets.player_canary_state,c,this);g.Z(this,this.MI);sAc(this.MI);c=hQ8(this.MI);this.MI.O3()&&this.VZ.push({key:"h5vcc",value:c});this.MI.experiments.lY("jspb_serialize_with_worker")&&Zl3();this.MI.experiments.lY("gzip_gel_with_worker")&&s5S();this.MI.T&&!TmX&&(window.addEventListener(BI?"touchstart":"click",LEX,{capture:!0,passive:!0}), TmX=!0);this.S("html5_onesie")&&(this.sK=new Cr(this.MI),g.Z(this,this.sK));this.Ph=d3(s5(this.MI)&&!0,Y.enablesizebutton);this.Qp=d3(!1,Y.player_wide);this.visibility=new eQX;g.Z(this,this.visibility);this.S("web_log_theater_mode_visibility")&&this.GV(d3(!1,Y.player_wide));this.mG=d3(!1,Y.external_list);this.events=new g.Qy(this);g.Z(this,this.events);this.S("start_client_gcf")&&(si(Mk(),{wl:Lc,Hz:caY()}),this.kQ=Mk().resolve(Lc),E4V(this.kQ));this.RpX=new $_;g.Z(this,this.RpX);this.er=new ceV;c= new vC;this.gW=new g.XT(this,c);g.Z(this,this.gW);this.template=new ucc(this);g.Z(this,this.template);this.appState=1;this.MA=EYc(this);g.Z(this,c);c={};this.s6=(c.internalvideodatachange=this.dzs,c.playbackready=this.gtJ,c.playbackstarted=this.cPn,c.statechange=this.OrY,c);this.cP=new Tq(this.gW);this.Pu=oYv(this);c=this.S("html5_load_wasm");Y=this.S("html5_allow_asmjs");c&&zSl||Y?(this.MI.qe=pv4(this.Pu,Y),NN(jc(this.MI.qe,function(T){d.MI.vu=T;d.bY().wW("wasm",{a:T.Y})}),function(T){g.Md(T); d.bY().wW("wasm",{e:"message"in T&&T.message||T.toString()||""})})):c&&!zSl&&this.bY().wW("wasm",{e:"wasm unavailable"}); this.FN=new Inc(this.MI,this.Pu);this.gW.publish("csiinitialized");c=10;g.Rd(this.MI)&&(c=3);UJ(this.MI)&&(c=g.H_(this.MI.experiments,"tvhtml5_unplugged_preload_cache_size"));c=new L0(c,function(T){T!==d.bf({playerType:T.getPlayerType()})&&T.dispose()}); g.Z(this,c);this.Sq=new g.sp(this.MI,c);c=L_4(this);this.Sq.Tt(c);reX(this);c={};this.Xm=(c.airplayactivechange=this.BfE,c.airplayavailabilitychange=this.f5Y,c.beginseeking=this.l5X,c.sabrCaptionsDataLoaded=this.wpf,c.endseeking=this.qaX,c.internalAbandon=this.Esw,c.internalaudioformatchange=this.Nfs,c.internalvideodatachange=this.orW,c.internalvideoformatchange=this.ABn,c.liveviewshift=this.pQJ,c.playbackstalledatstart=this.x5W,c.progresssync=this.MlT,c.onAbnormalityDetected=this.bUX,c.onSnackbarMessage= this.T1w,c.onLoadProgress=this.RNn,c.SEEK_COMPLETE=this.PfE,c.SEEK_TO=this.HPn,c.onVideoProgress=this.vrY,c.onLoadedMetadata=this.nsn,c.onAutoplayBlocked=this.ZUW,c.onPlaybackPauseAtStart=this.Vqr,c.playbackready=this.hNy,c.statechange=this.oL,c.newelementrequired=this.xe,c.heartbeatparams=this.a5W,c.videoelementevent=this.Wbr,c.drmoutputrestricted=this.Lvr,c.signatureexpired=this.YHI,c.nonfatalerror=this.C9Y,c.reloadplayer=this.iPY,c);this.mZ=new g.Qy(this);g.Z(this,this.mZ);this.tQ=new lL;g.Z(this, this.tQ);this.gO=this.zU=-1;this.VE=new g.IM(this.template.resize,16,this.template);g.Z(this,this.VE);this.BQ=new R13(this.gW,this.MI,this.Yt(),this);this.X7=new fo(this.MI);this.A$=new Rk(this);g.Z(this,this.A$);this.PV=new e6(this);g.Z(this,this.PV);ys8(this.MI.Y.c);this.events.N(this.gW,g.zf("appapi"),this.rPT);this.events.N(this.gW,g.LS("appapi"),this.GkI);this.events.N(this.gW,g.zf("appprogressboundary"),this.IFv);this.events.N(this.gW,g.LS("applooprange"),this.wM);this.events.N(this.gW,"presentingplayerstatechange", this.gV);this.events.N(this.gW,"resize",this.OPE);this.template.Df(g.M(ZH(document,U)));this.events.N(this.gW,"offlineslatestatechange",this.cbw);this.events.N(this.gW,"sabrCaptionsTrackChanged",this.lFJ);this.events.N(this.gW,"sabrCaptionsBufferedRangesUpdated",this.ZPJ);this.Pu.U.L().jo&&ij(this.Pu,"offline");this.MI.Zf&&g.rH("ux",g.Ny);U=g.H_(this.MI.experiments,"html5_defer_fetch_att_ms");this.Zw=new g.IM(this.MIY,U,this);g.Z(this,this.Zw);this.XY().Bp()&&(g.MR()&&this.XY().Hw.push("remote"), l2X(this));this.FN.tick("fs");P4v(this);this.MI.Zf&&ij(this.Pu,"ux",!0);g.ay(this.Pu.U.L())&&ij(this.Pu,"embed");this.S("web_player_sentinel_is_uniplayer")||g.Md(new g.Do("Player experiment flags missing","web_player_sentinel_is_uniplayer"));U=this.S("web_player_sentinel_yt_experiments_sync");c=g.ir("web_player_sentinel_yt_experiments_sync");U!==c&&g.Md(new g.Do("b/195699950",{yt:U,player:c}));A||g.Md(new g.Do("b/179532961"));this.EU=VXl(this);if(A=g.H_(this.MI.experiments,"html5_block_pip_safari_delay"))this.Nm= new g.IM(this.wD,A,this),g.Z(this,this.Nm);fl=this.MI.Lr;A=g.H_(this.MI.experiments,"html5_performance_impact_profiling_timer_ms");A>0&&(this.fH=new g.SW(A),g.Z(this,this.fH),this.events.N(this.fH,"tick",function(){d.N9&&$hE.HG("apit",d.N9);d.N9=$hE.mN()})); this.gW.publish("applicationInitialized");this.logger.debug("constructor end")}; VXl=function(U){function Y(A){A.stack&&A.stack.indexOf("player")!==-1&&U.bY().LW(A)} bA.subscribe("handleError",Y);ue.push(Y);return function(){bA.unsubscribe("handleError",Y);var A=ue.indexOf(Y);A!==-1&&ue.splice(A,1)}}; L_4=function(U){var Y=new g.nD(U.MI,U.config.args);U.gW.publish("initialvideodatacreated",Y);return Hv(U,1,Y,!1)}; reX=function(U){var Y=U.Yt(),A=Y.setPlaybackRate;if(U.MI.j)var c=1;else c=Number(g.hu("yt-player-playback-rate"))||1,c=vYX(U,c);A.call(Y,c);Y.oF(U.s6,U);Y.yc()}; oYv=function(U){var Y="",A=DuE(U);A.indexOf("//")===0&&(A=U.MI.protocol+":"+A);var c=A.lastIndexOf("/base.js");c!==-1&&(Y=A.substring(0,c+1));if(A=Error().stack)if(A=A.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))A=A[1],A.includes(Y)||g.Md(Error("Player module URL mismatch: "+(A+" vs "+Y+".")));Y=new Fxc(U.gW,Y);Hp3(U,Y);return Y}; Hp3=function(U,Y){var A={};A=(A.destroyed=function(){U.onApiChange()},A); Y.W=A}; EYc=function(U){if(U.MI.storeUserVolume){U=g.hu("yt-player-volume")||{};var Y=U.volume;U={volume:isNaN(Y)?100:g.Bi(Math.floor(Y),0,100),muted:!!U.muted}}else U={volume:100,muted:U.MI.mute};return U}; Gv=function(U){U.mediaElement=U.MI.deviceIsAudioOnly?new g.Zl(g.qs("AUDIO")):tC.pop()||new g.Zl(g.qs("VIDEO"));g.Z(U,U.mediaElement);U.bY().setMediaElement(U.mediaElement);try{U.MI.Me?(U.Vc&&U.events.FY(U.Vc),U.Vc=U.events.N(U.mediaElement,"volumechange",U.eNy)):(U.mediaElement.Ul(U.MA.muted),U.mediaElement.setVolume(U.MA.volume/100))}catch(d){U.DO("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d&&typeof d==="object"&&"message"in d&&typeof d.message==="string"&&d.message.replace(/[;:,]/g, "_")));return}g.Rb(U.mZ);G99(U);var Y=U.template,A=U.mediaElement.jc();Y.HQ=A;Y.Gp=!1;Y.HQ.parentNode||AD(Y.aD,Y.HQ,0);Y.yE=new g.fx(0,0,0,0);Yoc(Y);Pv(Y);A=Y.HQ;g.ou(A,"video-stream");g.ou(A,g.YN.MAIN_VIDEO);var c=Y.app.L();c.Vt&&A.setAttribute("data-no-fullscreen","true");c.S("html5_local_playsinline")?"playsInline"in fd()&&(A.playsInline=!0):c.JS&&(A.setAttribute("webkit-playsinline",""),A.setAttribute("playsinline",""));c.UB&&Y.HQ&&Y.N(A,"click",A.play,A);try{U.mediaElement.activate()}catch(d){U.DO("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d&&typeof d==="object"&&"message"in d&&typeof d.message==="string"&&d.message.replace(/[;:,]/g,"_")))}}; w6Y=function(U){if(!W_c(U)){var Y=U.Yt().sH();Y&&(Y=Y.W1(),Y instanceof Promise&&Y.catch(function(){})); Wv(U,HD(U.getPlayerStateObject()))}}; G99=function(U){var Y=U.mediaElement;bu()?U.mZ.N(Y,"webkitpresentationmodechanged",U.qHf):window.document.pictureInPictureEnabled&&(U.mZ.N(Y,"enterpictureinpicture",function(){U.DN(!0)}),U.mZ.N(Y,"leavepictureinpicture",function(){U.DN(!1)})); Kl&&(U.mZ.N(Y,"webkitbeginfullscreen",function(){U.TG(3)}),U.mZ.N(Y,"webkitendfullscreen",function(){U.TG(0)}))}; ipX=function(U,Y){var A=Y.getPlayerType(),c=U.Sq.W[A]||null;Y!==U.Yt()&&Y!==c&&(c==null||c.dispose(),U.Sq.W[A]=Y)}; Jec=function(U,Y){Y=Y===void 0?!0:Y;U.logger.debug("start clear presenting player");var A;if(A=U.LP){A=U.LP;var c=U.mediaElement;A=!!c&&c===A.mediaElement}A&&(U.dV(),Gv(U));A=U.bY();A.dV(!Y);A.zb(U.Xm,U);A.getPlayerType()!==1&&A.dispose();Y=U.Sq;Y.T=Y.Y;U.logger.debug("finish clear presenting player")}; g.F_S=function(U,Y,A,c){var d=U.FN;Y===2&&(d=new Inc(U.MI));return new g.K3(U.MI,Y,d,U.template,function(T,E,L){U.gW.publish(T,E,L)},function(){return U.gW.getVisibilityState()},U.visibility,U,A,c)}; Hv=function(U,Y,A,c,d){U=g.F_S(U,Y,A,d);U=new g.OW(U);c&&U.yc();return U}; wE=function(U,Y){return U.Ha(Y)?U.Yt():Y}; iL=function(U,Y){var A=U.bY();return Y===U.Yt()&&U.Ha(Y)&&U.Ha(A)?A:Y}; tXS=function(U){U.logger.debug("start application playback");if(U.Yt().getPlayerState().isError())U.logger.debug("start application playback done, player in error state");else{var Y=Jd(U);U.XY().isLoaded();Y&&U.vN(6);jiS(U);x69(U.Pu)||NmY(U)}}; NmY=function(U){if(!Jd(U)){var Y=F_(U.Pu);Y&&!Y.created&&jLX(U.Pu)&&(U.logger.debug("reload ad module"),Y.create())}}; jiS=function(U){U.logger.debug("start presenter playback");var Y=U.getVideoData(),A=U.Pu;x69(A)||A.V9();!zSl&&A.U.S("html5_allow_asmjs")&&b08(A);ij(A,"embed");ij(A,"kids");ij(A,"remote");ij(A,"miniplayer");ij(A,"offline");ij(A,"unplugged");ij(A,"ypc",!1,!0);ij(A,"ypc_clickwrap",!1,!0);ij(A,"yto",!1,!0);ij(A,"webgl",!1,!0);sLV(A)||(ij(A,"captions",!0),ij(A,"endscreen"),A.vD()||A.oY(),ij(A,"creatorendscreen",!0));A.eZ();U.gW.publish("videoready",Y)}; Fd=function(U){U=U.XY();U.Bp();return Q5(U)}; P4v=function(U){U.logger.debug("start prepare initial playback");U.Ad();var Y=U.config.args;Gv(U);U.events.N(window,"resize",U.d5v);var A=U.XY();U.gW.gq("onVolumeChange",U.MA);if(Y&&U6c(Y)){var c=uo(U.MI);c&&!U.mG&&(Y.fetch=0);var d=g.ay(U.MI);d&&!U.mG&&(Y.fetch=0);jp(U,Y);g.ay(U.MI)&&U.FN.tick("ep_pr_s");if(!c||U.mG)if(d&&!U.mG)eSX(U);else if(!A.Bp())U.playlist.onReady(function(){N6(U)})}U.xw(U.Yt(),!1,!0); g.I(U.Yt().getPlayerState(),128)||(Y=WtX(!U.MI.deviceIsAudioOnly),Y==="fmt.noneavailable"?U.DO("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):Y==="html5.missingapi"?U.DO(Y,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):A&&A.Bp()&&Fd(U)&&(U.MI.Ie||U.MI.E9)?td(U):A.jP?U.gW.mutedAutoplay({durationMode:A.mutedAutoplayDurationMode}):g.hu("yt-player-playback-on-reload")?(g.r7("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!U.MI.ov}),g.fU("yt-player-playback-on-reload",!1), td(U)):dA(U.MI)||BmX(U),g.Cs(U.MI)||cI(U.MI)==="MWEB"?(g.CU(g.Y6(),function(){ep(U)}),g.CU(g.Y6(),function(){Wq8()})):(ep(U),Wq8()),U.logger.debug("finish prepare initial playback"))}; ep=function(U){if(!U.S("use_rta_for_player"))if(U.S("fetch_att_independently"))g.uQ(U.Zw);else{var Y=U.getVideoData().botguardData;Y&&g.nJ(Y,U.MI,U.getVideoData().iO||"")}}; BmX=function(U){U.logger.debug("start initialize to CUED mode");U.gW.publish("initializingmode");U.vN(2);U.S("embeds_web_enable_defer_loading_remote_js")&&g.YQ(U.MI)?g.CU(g.Y6(),function(){ij(U.Pu,"remote")}):ij(U.Pu,"remote"); ij(U.Pu,"miniplayer");U.logger.debug("initialized to CUED mode")}; td=function(U){U.logger.debug("start initialize application playback");var Y=U.Yt();if(g.I(Y.getPlayerState(),128))return!1;var A=Y.getVideoData();Fd(U)&&U.MI.E9&&(tC.length&&U.S8?(Bv(U,{muted:!1,volume:U.MA.volume},!1),Xd(U,!1)):tC.length||U.MA.muted||(Bv(U,{muted:!0,volume:U.MA.volume},!1),Xd(U,!0)));Fd(U)&&g.ay(U.MI)&&A.mutedAutoplay&&(Bv(U,{muted:!0,volume:U.MA.volume},!1),Xd(U,!0));A.kM&&Bv(U,{muted:!0,volume:U.MA.volume},!1);X6v(U,1,A,!1);U.gW.publish("initializingmode");U.xw(U.Yt());U.vN(3); var c;if(!(c=!U.MI.J1)){if(c=U.LP){c=U.LP;var d=U.mediaElement;c=!!d&&d===c.mediaElement}c=c&&U.QR}c&&(U.dV(),Gv(U),Y.setMediaElement(U.mediaElement));Y.zV();if(g.I(Y.getPlayerState(),128))return!1;A.sx||Wv(U,3);return U.QR=!0}; Jd=function(U){U=ar(U.Pu);return!!U&&U.loaded}; k93=function(U,Y){if(!U.Qd)return!1;var A=U.Qd.startTimeMs*.001-1,c=U.Qd.endTimeMs*.001;U.Qd.type==="repeatChapter"&&c--;return Math.abs(Y-A)<=1E-6||Math.abs(Y-c)<=1E-6||Y>=A&&Y<=c}; RSc=function(U){var Y=U.bY();ES(Y.getVideoData())&&!Y.U7()&&(Y=kj(U)*1E3-U.getVideoData().Uf,U.S("html5_gapless_new_slr")?(U=U.PV,RL(U.app,"gaplessshortslooprange"),Y=new g.EE(0,Y,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(U=U.app.bY())&&U.addCueRange(Y)):U.setLoopRange({startTimeMs:0,endTimeMs:Y,type:"shortsLoop"}))}; a2l=function(U){var Y=U.Yt();if(!(g.I(Y.getPlayerState(),64)&&U.XY().isLivePlayback&&U.Qd.startTimeMs<5E3)){if(U.Qd.type==="repeatChapter"){var A,c=(A=m_3(U.WZ()))==null?void 0:A.aS(),d;A=(d=U.getVideoData())==null?void 0:d.Re;c instanceof g.M5&&A&&(d=A[U0(A,U.Qd.startTimeMs)],c.renderChapterSeekingAnimation(0,d.title));isNaN(Number(U.Qd.loopCount))?U.Qd.loopCount=0:U.Qd.loopCount++;U.Qd.loopCount===1&&U.gW.Ev("innertubeCommand",U.getVideoData().FiJ)}c={Qa:"application_loopRangeStart"};if(U.Qd.type=== "clips"||U.Qd.type==="shortsLoop")c.seekSource=58;Y.seekTo(U.Qd.startTimeMs*.001,c)}}; vYX=function(U,Y){var A=U.gW.getAvailablePlaybackRates();Y=Number(Y.toFixed(2));U=A[0];A=A[A.length-1];Y<=U?Y=U:Y>=A?Y=A:(U=Math.floor(Y*100+.001)%5,Y=U===0?Y:Math.floor((Y-U*.01)*100+.001)/100);return Y}; kj=function(U,Y){Y=U.bf({playerType:Y});if(!Y)return U.Sq.Y.XB();Y=wE(U,Y);return aL(U,Y.XB(),Y)}; aL=function(U,Y,A){if(U.Ha(A)&&(A=A.getVideoData(),!xj(U))){U=U.BQ;for(var c=g.J(U.T),d=c.next();!d.done;d=c.next())if(d=d.value,A.R5===d.R5){Y+=d.cZ/1E3;break}c=Y;U=g.J(U.T);for(d=U.next();!d.done;d=U.next()){d=d.value;if(A.R5===d.R5)break;var T=d.cZ/1E3;if(T1&&(d=!1);if(!U.QO||d!==Y){A=A.lock(d?"portrait":"landscape");if(A!=null)A["catch"](function(){}); U.QO=!0}}else U.QO&&(U.QO=!1,A.unlock())}; bL=function(U,Y,A){U.gW.publish(Y,A);var c=g.Rd(U.MI)||g.bo(U.MI)||g.pV(U.MI);if(A&&c){switch(Y){case "cuerangemarkersupdated":var d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&U.gW.Ev(d,A.map(function(T){return{getId:function(){return this.id}, end:T.end,id:T.getId(),namespace:T.namespace==="ad"?"ad":"",start:T.start,style:T.style,visible:T.visible}}))}}; p0=function(U,Y,A,c,d,T){A=A===void 0?!0:A;var E=U.bf({playerType:d});if(!E||(E.getPlayerType()!==2||U.Ha(E))&&!g.kp(E.getVideoData())){var L=U.Sq.pF;L?L.seekTo(Y,{Cd:!A,E2:c,Qa:"application",seekSource:T}):(E&&E===U.Yt()&&U.Qd&&!k93(U,Y)&&U.setLoopRange(null),U.seekTo(Y,A,c,d,T))}}; I23=function(U,Y,A,c){A&&(U.dV(),Gv(U));A=U.bY();A.Zu(Y);var d=U.getVideoData(),T={};T.video_id=d.videoId;T.adformat=d.adFormat;d.isLivePlayback||(T.start=A.getCurrentTime(),T.resume="1");d.isLivePlayback&&$p(d)&&g.XA(U.MI)&&(T.live_utc_start=A.tB(),T.resume="1");d.eX&&(T.vvt=d.eX);d.J&&(T.vss_credentials_token=d.J,T.vss_credentials_token_type=d.Dp);d.oauthToken&&(T.oauth_token=d.oauthToken);T.autoplay=1;T.reload_count=d.Lr+1;T.reload_reason=Y;d.xY&&(T.unplugged_partner_opt_out=d.xY);d.E9&&(T.ypc_is_premiere_trailer= d.E9);d.playerParams&&(T.player_params=d.playerParams);U.loadVideoByPlayerVars(T,void 0,!0,void 0,void 0,c);Y==="signature"&&U.nP&&NmY(U)}; u5Y=function(U,Y){U.XY().autonavState=Y;g.fU("yt-player-autonavstate",Y);U.gW.publish("autonavchange",Y)}; K_l=function(U){var Y=U.getVideoData().Aw,A=U.MI.Ly,c=U.isInline()&&!U.getVideoData().D$,d=U.mediaElement;Y||A||c?d.sY():(d.F0(),Bv(U,U.MA))}; s1=function(U){var Y=F_(U.WZ());Y&&Y.created&&(U.logger.debug("reset ad module"),Y.destroy())}; xj=function(U){return U.getVideoData().enableServerStitchedDai&&!!U.nP}; qol=function(U,Y){Y.bounds=U.getBoundingClientRect();for(var A=g.J(["display","opacity","visibility","zIndex"]),c=A.next();!c.done;c=A.next())c=c.value,Y[c]=QR(U,c);Y.hidden=!!U.hidden}; DuE=function(U){if(U.webPlayerContextConfig){var Y=U.webPlayerContextConfig.trustedJsUrl;return Y?NY(Y).toString():U.webPlayerContextConfig.jsUrl}return U.config.assets&&U.config.assets.js?U.config.assets.js:""}; C49=function(U,Y){var A=U.bf({playerType:1});if(A){if(A.getVideoData().clientPlaybackNonce===Y)return A;if((U=U.A$.Y)&&U.getVideoData().clientPlaybackNonce===Y)return U}return null}; Utv=function(U){return U.name==="TypeError"&&U.stack.includes("/s/player/")&&ZD()<=105}; Yf3=function(U){return U.isTimeout?"NO_BID":"ERR_BID"}; APl=function(){var U=null;aGc().then(function(Y){return U=Y},function(Y){return U=Yf3(Y)}); return U}; cPV=function(){var U=b7(1E3,"NO_BID");return g.fe(DD3([aGc(),U]).TX(Yf3),function(){U.cancel()})}; Qr=function(U){return U.o2?g.OI(g.Zo(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Zu=function(U){this.player=U;this.W=this.Y=1}; E9V=function(U,Y,A,c,d,T){Y.client||(Y.client={});U.player.L().S("h5_remove_url_for_get_ad_break")||(Y.client.originalUrl=A);var E=o4(A),L=g.tD(A)?!1:!0;(E||L)&&typeof Intl!=="undefined"&&(Y.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);L=g.tD(A)?!1:!0;if(E||L||c!==""){var r={};A=YG(Pn(c)).split("&");var l=new Map;A.forEach(function(P){P=P.split("=");P.length>1&&l.set(P[0].toString(),decodeURIComponent(P[1].toString()))}); l.has("bid")&&(r.bid=l.get("bid"));r.params=[];dtc.forEach(function(P){l.has(P)&&(P={key:P,value:l.get(P)},r.params.push(P))}); TxY(U,r);Y.adSignalsInfo=r}Y.client.unpluggedAppInfo||(Y.client.unpluggedAppInfo={});Y.client.unpluggedAppInfo.enableFilterMode=!1;A=d.Y.cosver;A!=null&&A!=="cosver"&&(Y.client.osVersion=A);A=d.Y.cplatform;A!=null&&A!=="cplatform"&&A!==""&&(Y.client.platform=A);A=d.Y.cmodel;A!=null&&A!=="cmodel"&&(Y.client.deviceModel=A);A=d.Y.cplayer;A!=null&&A!=="cplayer"&&(Y.client.playerType=A);A=d.Y.cbrand;A!=null&&A!=="cbrand"&&(Y.client.deviceMake=A);Y.user||(Y.user={});Y.user.lockedSafetyMode=!1;(d.S("embeds_web_enable_iframe_api_send_full_embed_url")|| d.S("embeds_enable_autoplay_and_visibility_signals"))&&g.M0(d)&&uAY(Y,T,U.player.getPlayerState(1))}; LYl=function(U,Y){var A=!1;if(Y==="")return A;Y.split(",").forEach(function(c){var d={},T={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},E="ACTIVE";c[0]==="!"&&(c=c.substring(1),E="INACTIVE");c=c.split("-");c.length<3||(c[0]in o9X&&(T.clientName=o9X[c[0]]),c[1]in zsc&&(T.platform=zsc[c[1]]),T.applicationState=E,T.clientVersion=c.length>2?c[2]:"",d.remoteClient=T,U.remoteContexts?U.remoteContexts.push(d):U.remoteContexts=[d],A=!0)}); return A}; l6c=function(U){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in rPE))return!1;U=U.split(RegExp("[:&]"));var Y=rPE.FLAG_AUTO_CAPTIONS_DEFAULT_ON,A="f"+(1+Math.floor(Y/31)).toString();Y=1<=2?E[1]:"";var L=VN3.test(Y),r=$tv.exec(Y);r=r!=null&&r.length>=2?r[1]:"";var l=v9l.exec(Y);l=l!=null&&l.length>=2&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var P=HbX.exec(Y);P=P!=null&&P.length>=2?P[1]:"0";var V=O5(U.player.L().ZG),v=U.player.getVideoData(1),H=g.CV(v.Zf,!0),G="BISCOTTI_ID"in A?A.BISCOTTI_ID:"";E9V(U,H,Y,G.toString(),U.player.L(), v);v={splay:!1,lactMilliseconds:A.LACT.toString(),playerHeightPixels:Math.trunc(A.P_H),playerWidthPixels:Math.trunc(A.P_W),vis:Math.trunc(A.VIS),signatureTimestamp:20201,autonavState:Qr(U.player.L())};c&&(c={},LYl(c,A.YT_REMOTE)&&(v.mdxContext=c));if(c=GDV.includes(V)?void 0:g.ML("PREF")){for(var F=c.split(RegExp("[:&]")),N=0,e=F.length;N1&&B[1].toUpperCase()==="TRUE"){H.user.lockedSafetyMode=!0;break}}v.autoCaptionsDefaultOn= l6c(c)}Y=WYE.exec(Y);(Y=Y!=null&&Y.length>=2?Y[1]:"")&&r&&(H.user.credentialTransferTokens=[{token:Y,scope:"VIDEO"}]);Y={contentPlaybackContext:v};E={adBlock:Math.trunc(A.AD_BLOCK),params:E,breakIndex:l,breakPositionMs:P,clientPlaybackNonce:A.CPN,topLevelDomain:V,isProxyAdTagRequest:L,context:H,adSignalsInfoString:YG(Pn(G.toString())),overridePlaybackContext:Y};d!==void 0&&(E.cueProcessedMs=Math.round(d).toString());r&&(E.videoId=r);A.LIVE_TARGETING_CONTEXT&&(E.liveTargetingParams=A.LIVE_TARGETING_CONTEXT); A.AD_BREAK_LENGTH&&(E.breakLengthMs=Math.trunc(A.AD_BREAK_LENGTH*1E3).toString());T&&(E.driftFromHeadMs=T.toString());E.currentMediaTimeMs=Math.round(U.player.getCurrentTime(1)*1E3);(U=U.player.getGetAdBreakContext())&&(E.getAdBreakContext=U);return E}; ibS=function(){Zu.apply(this,arguments)}; JPv=function(U,Y,A,c,d){var T=A.q3;var E=A.KP;var L=U.player.L().kC,r=0;A.cueProcessedMs&&E&&!T&&(A=E.end-E.start,A>0&&(r=Math.floor(A/1E3)));var l={AD_BLOCK:d,AD_BREAK_LENGTH:T?T.LV:r,AUTONAV_STATE:Qr(U.player.L()),CA_TYPE:"image",CPN:U.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:U.player.NF()*1E3,LACT:kS(),LIVE_INDEX:T?U.W++:1,LIVE_TARGETING_CONTEXT:T&&T.context?T.context:"",MIDROLL_POS:E?Math.round(E.start/1E3):0,MIDROLL_POS_MS:E?Math.round(E.start):0,VIS:U.player.getVisibilityState(), P_H:U.player.Cy().U$().height,P_W:U.player.Cy().U$().width,YT_REMOTE:L?L.join(","):""},P=lr(rF);Object.keys(P).forEach(function(V){P[V]!=null&&(l[V.toUpperCase()]=P[V].toString())}); c!==""&&(l.BISCOTTI_ID=c);c={};Ll(Y)&&(c.sts="20201",(U=U.player.L().forcedExperiments)&&(c.forced_experiments=U));return Es(g.kC(Y,l),c)}; FYc=function(U,Y){var A=U.player.L(),c,d=(c=U.player.getVideoData(1))==null?void 0:c.oauthToken;return g.o$(A,d).then(function(T){if(T&&zw()){var E=Qj();Z3(E,T)}return g.KK(g.M(U.player.E$(E)),Y,"/youtubei/v1/player/ad_break").then(function(L){return L})})}; jTX=function(U){this.SX=U}; Nx8=function(U){this.U=U}; tNX=function(U){this.SX=U}; BxS=function(U){g.p.call(this);this.Y=U;this.wE=esX(this)}; esX=function(U){var Y=new WfX(U.Y.a5);g.Z(U,Y);U=[new jTX(U.Y.SX),new Nx8(U.Y.U),new tNX(U.Y.SX),new h2(U.Y.CX,U.Y.Kc),new Ml,new Q8(U.Y.A_,U.Y.bL,U.Y.SX),new Sw,new fz];U=g.J(U);for(var A=U.next();!A.done;A=U.next())wjv(Y,A.value);U=g.J(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(A=U.next();!A.done;A=U.next())bf(Y,A.value,function(){}); return Y}; O1=function(U){var Y=U.Gn,A=U.xE;U=U.Y8;var c=new bmE,d={Tx:new HV8(Y.get(),A),xE:A};return{gs:new PZ(A,U,Y,d),context:d,MW:c}}; mx=function(U,Y,A,c,d){g.p.call(this);this.T=Y;this.FT=A;this.Gn=c;this.EH=d;this.listeners=[];var T=new XC(this);g.Z(this,T);T.N(U,"internalAbandon",this.I_);this.addOnDisposeCallback(function(){g.Rb(T)})}; gE=function(U){this.U=U;this.adVideoId=this.Y=this.videoId=this.adCpn=this.contentCpn=null;this.K=!0;this.T=this.W=!1;this.adFormat=null;this.j="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; XfX=function(U){U.contentCpn=null;U.adCpn=null;U.videoId=null;U.adVideoId=null;U.adFormat=null;U.j="AD_PLACEMENT_KIND_UNKNOWN";U.actionType="unknown_type";U.W=!1;U.T=!1}; kD4=function(U,Y){U=g.J(Y);for(Y=U.next();!Y.done;Y=U.next())if((Y=Y.value.renderer)&&(Y.instreamVideoAdRenderer||Y.linearAdSequenceRenderer||Y.sandwichedLinearAdRenderer||Y.instreamSurveyAdRenderer)){Z5("ad_i");g.OX({isMonetized:!0});break}}; Rs8=function(U){var Y;(Y=U.U.getVideoData(1))!=null&&Y.ov&&(U.T=!1,Y={},U.Y&&U.videoId&&(Y.cttAuthInfo={token:U.Y,videoId:U.videoId}),gs("video_to_ad",Y))}; uU=function(U){U.T=!1;var Y={};U.Y&&U.videoId&&(Y.cttAuthInfo={token:U.Y,videoId:U.videoId});gs("ad_to_video",Y);a69(U)}; a69=function(U){if(U.W)if(U.j==="AD_PLACEMENT_KIND_START"&&U.actionType==="video_to_ad")b1("video_to_ad");else{var Y={adBreakType:eU(U.j),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:U.videoStreamType};U.actionType==="ad_to_video"?(U.contentCpn&&(Y.targetCpn=U.contentCpn),U.videoId&&(Y.targetVideoId=U.videoId)):(U.adCpn&&(Y.targetCpn=U.adCpn),U.adVideoId&&(Y.targetVideoId=U.adVideoId));U.adFormat&&(Y.adType=U.adFormat);U.contentCpn&& (Y.clientPlaybackNonce=U.contentCpn);U.videoId&&(Y.videoId=U.videoId);U.adCpn&&(Y.adClientPlaybackNonce=U.adCpn);U.adVideoId&&(Y.adVideoId=U.adVideoId);g.OX(Y,U.actionType);U.U.L().experiments.lY("html5_ads_csi_qoes")&&(Y=U.U.ZM(U.actionType==="ad_to_video"?1:2),Y=(0,g.y)()-1E3*Y,nK("qoes",Y,U.actionType))}}; yr=function(U){g.p.call(this);this.U=U;this.Y=new Map;this.T=new XC(this);g.Z(this,this.T);this.T.N(this.U,g.zf("ad"),this.onCueRangeEnter,this);this.T.N(this.U,g.LS("ad"),this.onCueRangeExit,this)}; xtv=function(U,Y,A,c,d){g.EE.call(this,Y,A,{id:U,namespace:"ad",priority:d,visible:c})}; n0=function(U){this.U=U}; sTV=function(U,Y){U.U.cueVideoByPlayerVars(Y,2)}; Du=function(U){this.U=U}; IL=function(U){this.U=U;g.H_(this.U.L().experiments,"tv_pacf_logging_sample_rate")}; f6E=function(U){return q8(U,"html5_ssap_play_cached_preroll")}; X6=function(U,Y){Y=Y===void 0?!1:Y;return U.U.L().S("html5_ssap_force_ads_ctmp")?!0:(Y||U.U.L().O3())&&U.U.L().S("html5_ssap_pacf_qoe_ctmp")}; hs9=function(U){return U.U.L().S("dai_layout_log_skip_exit_reason")}; uL=function(U){var Y,A;return(A=(Y=U.U.getVideoData(1))==null?void 0:g.KD(Y))!=null?A:!1}; RjS=function(U){return!U.U.L().S("html5_override_ad_video_length_killswitch")}; q8=function(U,Y){return U.U.L().S(Y)}; SfX=function(U){return U.U.L().S("substitute_ad_cpn_macro_in_ssdai")}; XK=function(U){var Y,A,c;return((Y=U.U.getVideoData(1).getPlayerResponse())==null?void 0:(A=Y.playerConfig)==null?void 0:(c=A.daiConfig)==null?void 0:c.enableServerStitchedDai)||!1}; BY4=function(U){return U.U.L().S("html5_enable_vod_slar_with_notify_pacf")}; R5X=function(U){return U.U.L().S("h5_check_forecasting_renderer_for_throttled_midroll")}; MN4=function(U){return U.U.L().S("html5_recognize_predict_start_cue_point")}; Er=function(U){return U.U.L().experiments.lY("enable_desktop_player_underlay")}; bb3=function(U){return U.U.L().experiments.lY("html5_disable_sodar_for_tvhtml5")}; atY=function(U){return U.U.L().O3()}; pfc=function(U){return U.U.L().experiments.lY("html5_load_empty_player_in_media_break_sub_lra")}; bU=function(U){return U.U.L().experiments.lY("html5_load_ads_instead_of_cue")}; pQ=function(U){return U.U.L().experiments.lY("html5_preload_ads")}; QTE=function(U){return U.U.L().experiments.lY("should_ignore_cuepoints_during_lifa_preroll")}; EG=function(U){return U.U.L().experiments.lY("enable_ads_control_flow_deterministic_id_generation")}; ZbE=function(U){return U.U.L().experiments.lY("enable_desktop_discovery_video_abandon_pings")||g.Ks(U.U.L())}; Obc=function(U){return U.U.L().experiments.lY("enable_progres_commands_lr_feeds")}; ky=function(U){return U.U.L().experiments.lY("html5_cuepoint_identifier_logging")}; fAY=function(U){U=U.U.getVideoData(1);return!!U&&U.S("html5_preload_first_vod_video_ad")&&!U.isDaiEnabled()}; mt8=function(U){switch(U){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}}; g93=function(){g.l6.call(this);var U=this;this.Y={};this.addOnDisposeCallback(function(){for(var Y=g.J(Object.keys(U.Y)),A=Y.next();!A.done;A=Y.next())delete U.Y[A.value]})}; K0=function(){if(yPX===null){yPX=new g93;nC(UT).T="b";var U=nC(UT),Y=ni(U)=="h"||ni(U)=="b",A=!(zU(),!1);Y&&A&&(U.K=!0,U.J=new Pkc)}return yPX}; n99=function(U,Y,A){U.Y[Y]=A}; Dtc=function(U){switch(U){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}}; q6=function(U,Y,A){this.FT=U;this.U=Y;this.xE=A;this.T=new Set;this.Y=new Map;K0().subscribe("adactiveviewmeasurable",this.wP,this);K0().subscribe("adfullyviewableaudiblehalfdurationimpression",this.iE,this);K0().subscribe("adviewableimpression",this.HI,this);K0().subscribe("adaudioaudible",this.XH,this);K0().subscribe("adaudiomeasurable",this.M_,this)}; Uh=function(U,Y,A){var c=A.y$,d=A.E4,T=A.listener,E=A.b5;A=A.uG===void 0?!1:A.uG;if(U.Y.has(Y))$D("Unexpected registration of layout in LidarApi");else{if(E){if(U.T.has(E))return;U.T.add(E)}U.Y.set(Y,T);lh(zU().Jb,"fmd",1);FF4(nC(UT),c);var L=A?Y:void 0;n99(K0(),Y,{i_:function(){if(!d)return{};var r=U.U.getPresentingPlayerType(!0),l;return(l=U.U.getVideoData(r))!=null&&l.isAd()?{currentTime:U.FT.get().getCurrentTimeSec(r,!1,L),duration:d,isPlaying:C0(U.FT.get(),r).isPlaying(),isVpaid:!1,isYouTube:!0, volume:U.FT.get().isMuted()?0:U.FT.get().getVolume()/100}:{}}})}}; Yb=function(U,Y){U.Y.has(Y)?(U.Y.delete(Y),delete K0().Y[Y]):$D("Unexpected unregistration of layout in LidarApi")}; I63=function(U,Y){if(U.U.isLifaAdPlaying()){var A=U.U.aX(!0,!0);U.tv(Y,A.width*.5*1.1,A.height*.25*1.1,A.width*.5*.9,A.height*.5*.9)}}; qfX=function(U,Y,A){var c={};u8V(U,c,Y,A);KY8(c);c.LACT=A$(function(){return kS().toString()}); c.VIS=A$(function(){return U.getVisibilityState().toString()}); c.SDKV="h.3.0";c.VOL=A$(function(){return U.isMuted()?"0":Math.round(U.getVolume()).toString()}); c.VED="";return c}; CJ3=function(U,Y){var A={};if(Y)return A;if(!U.kind)return g.S5(Error("AdPlacementConfig without kind")),A;if(U.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||U.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!U.adTimeOffset||!U.adTimeOffset.offsetStartMilliseconds)return g.S5(Error("malformed AdPlacementConfig")),A;A.MIDROLL_POS=A$(P4(Math.round(il(U.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else A.MIDROLL_POS=A$(P4("0"));return A}; A$=function(U){return{toString:function(){return U()}}}; UX3=function(U,Y,A){function c(L,r){(r=A[r])&&(T[L]=r)} function d(L,r){(r=A[r])&&(T[L]=E(r))} if(!A||g.qF(A))return U;var T=Object.assign({},U),E=Y?encodeURIComponent:function(L){return L}; d("DV_VIEWABILITY","doubleVerifyViewability");d("IAS_VIEWABILITY","integralAdsViewability");d("MOAT_INIT","moatInit");d("MOAT_VIEWABILITY","moatViewability");c("GOOGLE_VIEWABILITY","googleViewability");c("VIEWABILITY","viewability");return T}; u8V=function(U,Y,A,c){Y.CPN=A$(function(){var d;(d=U.getVideoData(1))?d=d.clientPlaybackNonce:(g.Md(Error("Video data is null.")),d=null);return d}); Y.AD_MT=A$(function(){if(c!=null)var d=c;else{var T=A;U.L().S("html5_ssap_use_cpn_to_get_time")||(T=void 0);if(U.L().S("enable_h5_shorts_ad_fill_ad_mt_macro")||U.L().S("enable_desktop_discovery_pings_ad_mt_macro")||g.Ks(U.L())){var E=U.getPresentingPlayerType(!0),L;d=((L=U.getVideoData(E))==null?0:L.isAd())?YQX(U,E,T):0}else d=YQX(U,2,T)}return AOv(d)}); Y.MT=A$(function(){return AOv(U.getCurrentTime(1,!1))}); Y.P_H=A$(function(){return U.Cy().U$().height.toString()}); Y.P_W=A$(function(){return U.Cy().U$().width.toString()}); Y.PV_H=A$(function(){return U.Cy().getVideoContentRect().height.toString()}); Y.PV_W=A$(function(){return U.Cy().getVideoContentRect().width.toString()})}; AOv=function(U){return Math.round(Math.max(0,U*1E3)).toString()}; KY8=function(U){U.CONN=A$(P4("0"));U.WT=A$(function(){return Date.now().toString()})}; YQX=function(U,Y,A){return A!==void 0?U.getCurrentTime(Y,!1,A):U.getCurrentTime(Y,!1)}; cO9=function(){}; dXv=function(U,Y,A,c,d){var T,E,L,r,l,P,V,v,H,G,F,N,e;g.S(function(B){switch(B.T){case 1:T=!!Y.scrubReferrer;E=g.kC(Y.baseUrl,UX3(A,T,c));L={};if(!Y.headers){B.uY(2);break}r=U.j();if(!r.Y){l=r.getValue();B.uY(3);break}return g.x(B,r.Y,4);case 4:l=B.Y;case 3:P=l;V=g.J(Y.headers);for(v=V.next();!v.done;v=V.next())switch(H=v.value,H.headerType){case "VISITOR_ID":g.DQ("VISITOR_DATA")&&(L["X-Goog-Visitor-Id"]=g.DQ("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.DQ("EOM_VISITOR_DATA")&&(L["X-Goog-EOM-Visitor-Id"]= g.DQ("EOM_VISITOR_DATA"));break;case "USER_AUTH":P&&(L.Authorization="Bearer "+P);break;case "PLUS_PAGE_ID":(G=U.K())&&(L["X-Goog-PageId"]=G);break;case "AUTH_USER":F=U.Y();!P&&F&&(L["X-Goog-AuthUser"]=F);break;case "DATASYNC_ID":if(N=void 0,(N=U.W())==null?0:N.lY("enable_datasync_id_header_in_web_vss_pings"))e=U.T(),o4(E)&&g.DQ("LOGGED_IN")&&e&&(L["X-YouTube-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.OC(E,void 0,T,Object.keys(L).length!== 0?L:void 0,"",!0,d),g.i8(B)}})}; Tk9=function(U,Y,A,c,d){this.j=U;this.K=Y;this.Y=A;this.T=c;this.W=d}; Ef9=function(U,Y){this.Y=U;this.xE=Y}; ck=function(U,Y,A,c,d,T,E){var L=L===void 0?new Tk9(function(){var r=U.L(),l=U.getVideoData(1);return g.o$(r,l?g.Za(l):"")},function(){return U.L().pageId},function(){return U.L().ov},function(){var r; return(r=U.L().datasyncId)!=null?r:""},function(){return U.L().experiments}):L; this.U=U;this.T=Y;this.xt=A;this.Gn=c;this.gs=d;this.xE=T;this.MW=E;this.j=L;this.G9=null;this.Y=new Map;this.W=new Ef9(L,this.xE)}; z69=function(U,Y,A,c,d){var T=pf(U.T.get(),A);T?(A=xB(U,ofX(T),T,void 0,void 0,c),Y.hasOwnProperty("baseUrl")?U.j.send(Y,A):U.W.send(Y,A,{},d)):$D("Trying to ping from an unknown layout",void 0,void 0,{layoutId:A})}; tb3=function(U,Y,A,c,d,T){c=c===void 0?[]:c;var E=pf(U.T.get(),Y);if(E){var L=U.xt.get().P5(Y,A),r=xB(U,ofX(E),E,d,T);c.forEach(function(l,P){l.baseUrl&&(U.W.send(l.baseUrl,r,L,l.attributionSrcMode),l.serializedAdPingMetadata&&U.gs.dK("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,E,new dI8(l,P),void 0,void 0,E.adLayoutLoggingData))})}else $D("Trying to track from an unknown layout.",void 0,void 0,{layoutId:Y, trackingType:A})}; tg=function(U,Y){U.U.sendVideoStatsEngageEvent(Y,void 0,2)}; dP=function(U,Y){g.r7("adsClientStateChange",Y)}; LC9=function(U,Y){U.Y.has(Y.Iw())?$D("Trying to register an existing AdErrorInfoSupplier."):U.Y.set(Y.Iw(),Y)}; rOE=function(U,Y){U.Y.delete(Y.Iw())||$D("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; zi=function(U,Y,A){typeof A==="string"?U.U.getVideoData(1).Kd(Y,A):U.U.getVideoData(1).wW(Y,A)}; ofX=function(U){var Y=g.M(LH(U.clientMetadata,"metadata_type_ad_placement_config"));U=LH(U.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:Y,QQ:U}}; xB=function(U,Y,A,c,d,T){var E=A?l4X(U):{},L=A?P2Y(U,A.layoutId):{},r=Va8(U),l,P=d!=null?d:(l=FS(U.Gn.get(),2))==null?void 0:l.clientPlaybackNonce;d=void 0;if(A){var V;if((V=U.MW.Y.get(A.layoutId))==null?0:V.uG)d=A.layoutId}V={};U=Object.assign({},qfX(U.U,d,c),CJ3(Y.adPlacementConfig,(A==null?void 0:A.renderingContent)!==void 0),L,E,r,(V.FINAL=A$(function(){return"1"}),V.AD_CPN=A$(function(){return P||""}),V)); (A==null?void 0:A.renderingContent)!==void 0||(U.SLOT_POS=A$(function(){return(Y.QQ||0).toString()})); A={};T=Object.assign({},U,T);U=g.J(Object.values($Xc));for(c=U.next();!c.done;c=U.next())c=c.value,E=T[c],E!=null&&E.toString()!=null&&(A[c]=E.toString());return A}; l4X=function(U){var Y={},A,c=(A=U.G9)==null?void 0:A.Jr/1E3;c!=null&&(Y.SURVEY_ELAPSED_MS=A$(function(){return Math.round(c*1E3).toString()})); Y.SURVEY_LOCAL_TIME_EPOCH_S=A$(function(){return Math.round(Date.now()/1E3).toString()}); return Y}; P2Y=function(U,Y){U=U.Y.get(Y);if(!U)return{};U=U.ZK();if(!U)return{};Y={};return Y.YT_ERROR_CODE=U.o9.toString(),Y.ERRORCODE=U.lS.toString(),Y.ERROR_MSG=U.errorMessage,Y}; Va8=function(U){var Y={},A=U.U.getVideoData(1);Y.ASR=A$(function(){var c;return(c=A==null?void 0:A.EL)!=null?c:null}); Y.EI=A$(function(){var c;return(c=A==null?void 0:A.eventId)!=null?c:null}); return Y}; dr=function(U,Y,A){g.p.call(this);this.U=U;this.UL=Y;this.xE=A;this.listeners=[];this.gy=null;this.Tu=new Map;Y=new g.Qy(this);g.Z(this,Y);Y.N(U,"videodatachange",this.DUs);Y.N(U,"serverstitchedvideochange",this.ppY);this.o7=FS(this)}; FS=function(U,Y){var A=U.U.getVideoData(Y);return A?U.aC(A,Y||U.U.getPresentingPlayerType(!0)):null}; Ti=function(U){return U.o7}; vfY=function(U,Y,A){var c=U.aC(Y,A);U.o7=c;U.listeners.forEach(function(d){d.Mh(c)})}; HXl=function(U){switch(U){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}}; TF=function(U,Y,A){g.p.call(this);this.U=U;this.Gn=Y;this.xE=A;this.listeners=[];this.Za=[];this.Y=function(){$D("Called 'doUnlockPreroll' before it's initialized.")}; Y=new XC(this);A=new g.Qy(this);g.Z(this,A);g.Z(this,Y);Y.N(U,"progresssync",this.U5w);Y.N(U,"presentingplayerstatechange",this.XQY);Y.N(U,"fullscreentoggled",this.onFullscreenToggled);Y.N(U,"onVolumeChange",this.onVolumeChange);Y.N(U,"minimized",this.zz);Y.N(U,"overlayvisibilitychange",this.pJ);Y.N(U,"shortsadswipe",this.nJ);Y.N(U,"resize",this.hP);A.N(U,g.zf("appad"),this.aJ)}; Eh=function(U){uL(U.xE.get())||U.Y()}; GAX=function(U,Y){U.Za=U.Za.filter(function(A){return A!==Y})}; oY=function(U,Y,A){return U.getCurrentTimeSec(Y,A)}; eQ=function(U){return U.getCurrentTimeSec(1,!1)}; WCc=function(U,Y){var A;Y=(A=U.Gn.get().Tu.get(Y))!=null?A:null;if(Y===null)return $D("Expected ad video start time on playback timeline"),0;U=U.U.getCurrentTime(2,!0);return U0){var T=Y.end.toString();d.forEach(function(E){(E=E.config&&E.config.adPlacementConfig)&&E.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&E.adTimeOffset&&E.adTimeOffset.offsetEndMilliseconds==="-1"&&E.adTimeOffset.offsetEndMilliseconds!==T&&(E.adTimeOffset.offsetEndMilliseconds=T)}); c.map(function(E){return g.O(E,g6)}).forEach(function(E){var L; (E=E==null?void 0:(L=E.slotEntryTrigger)==null?void 0:L.mediaTimeRangeTrigger)&&E.offsetEndMilliseconds==="-1"&&(E.offsetEndMilliseconds=T)})}return{Su:d, adSlots:c,Z6:!1,ssdaiAdsConfig:U.ssdaiAdsConfig}}; Pk=function(U){g.p.call(this);this.U=U;this.listeners=[];this.Y=new XC(this);g.Z(this,this.Y);this.Y.N(this.U,"aduxclicked",this.onAdUxClicked);this.Y.N(this.U,"aduxmouseover",this.wQ);this.Y.N(this.U,"aduxmouseout",this.Mq);this.Y.N(this.U,"muteadaccepted",this.eyJ)}; NkX=function(U,Y,A){Y=g.mk(Y,function(c){return new bg4(c,A,c.id)}); U.U.Ev("onAdUxUpdate",Y)}; Vq=function(U,Y){U=g.J(U.listeners);for(var A=U.next();!A.done;A=U.next())Y(A.value)}; $b=function(U,Y){this.T=U;this.W=Y===void 0?!1:Y;this.Y={}}; tac=function(U,Y){var A=U.startSecs+U.LV;A=A<=0?null:A;if(A===null)return null;switch(U.event){case "start":case "continue":case "stop":break;case "predictStart":if(Y)break;return null;default:return null}Y=Math.max(U.startSecs,0);return{mq:new NQ(Y,A),UIw:new uB(Y,A-Y,U.context,U.identifier,U.event,U.Y)}}; e64=function(){this.Y=[]}; FbV=function(U,Y,A){var c=g.kz(U.Y,Y);if(c>=0)return Y;Y=-c-1;return Y>=U.Y.length||U.Y[Y]>A?null:U.Y[Y]}; vk=function(U,Y,A){g.p.call(this);this.U=U;this.xE=Y;this.SX=A;this.listeners=[];this.K=!1;this.j=[];this.Y=null;this.J=new $b(this,MN4(Y.get()));this.W=new e64;this.T=null}; Bk9=function(U){return U.j}; Xs4=function(U,Y){U.j.push(Y);for(var A=!1,c=g.J(U.listeners),d=c.next();!d.done;d=c.next())A=d.value.cA(Y)||A;U.K=A;ky(U.xE.get())&&zi(U.SX.get(),"onci","cpi."+Y.identifier+";cpe."+Y.event+";cps."+Y.startSecs+";cbi."+A)}; R68=function(U,Y){dP(U.SX.get(),{cuepointTrigger:{event:kAX(Y.event),cuepointId:Y.identifier,totalCueDurationMs:Y.LV*1E3,playheadTimeMs:Y.Y,cueStartTimeMs:Y.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:U.U.getVideoData(1).clientPlaybackNonce}})}; kAX=function(U){switch(U){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 Ka(U,"Unexpected cuepoint event")}}; Hk=function(U){this.U=U}; GF=function(U){this.U=U}; a4X=function(U){switch(U){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;default:Ka(U,"unknown transitionReason")}}; Wk=function(){g.p.apply(this,arguments)}; xXc=function(U){this.U=U}; sa3=function(U,Y,A,c,d){g.p.call(this);var T=this,E=gD(function(){return new TI(T.xE)}); g.Z(this,E);var L=gD(function(){return new of(E,T.xE)}); g.Z(this,L);var r=gD(function(){return new SQ}); g.Z(this,r);var l=gD(function(){return new ff(U)}); g.Z(this,l);var P=gD(function(){return new zI(E,L,T.xE)}); g.Z(this,P);var V=gD(function(){return new VV}); g.Z(this,V);this.TQ=gD(function(){return new Pk(Y)}); g.Z(this,this.TQ);this.U3=gD(function(){return new nH(d)}); g.Z(this,this.U3);this.Ua=gD(function(){return new gE(Y)}); g.Z(this,this.Ua);this.cQ=gD(function(){return new yr(Y)}); g.Z(this,this.cQ);this.vQ=gD(function(){return new n0(Y)}); g.Z(this,this.vQ);this.a5=gD(function(){return new Du(Y)}); g.Z(this,this.a5);this.xE=gD(function(){return new IL(Y)}); g.Z(this,this.xE);var v=gD(function(){return new lK(c)}); g.Z(this,v);var H=gD(function(){return new GG(T.xE)}); g.Z(this,H);this.lB=gD(function(){return new Hk(Y)}); g.Z(this,this.lB);this.Ub=gD(function(){return new uT}); g.Z(this,this.Ub);this.Gn=gD(function(){return new dr(Y,V,T.xE)}); g.Z(this,this.Gn);var G=O1({Gn:this.Gn,xE:this.xE,Y8:H}),F=G.context,N=G.MW;this.gs=G.gs;this.EH=gD(function(){return new vk(Y,T.xE,T.SX)}); g.Z(this,this.EH);this.WQ=gD(function(){return new GF(Y)}); g.Z(this,this.WQ);this.FT=gD(function(){return new TF(Y,T.Gn,T.xE)}); g.Z(this,this.FT);this.yU=gD(function(){return new Wk}); g.Z(this,this.yU);G=gD(function(){return new jQ(E,P,L,T.xE,H,"SLOT_TYPE_ABOVE_FEED",T.FT,T.SD,T.nV)}); g.Z(this,G);this.VV=gD(function(){return new KH(T.xE)}); this.xt=gD(function(){return new q6(T.FT,Y,T.xE)}); g.Z(this,this.xt);this.SX=gD(function(){return new ck(Y,r,T.xt,T.Gn,T.gs,T.xE,N)}); g.Z(this,this.SX);this.VS=new aX(RX,wr,function(B,f,h,Q){return Th(L.get(),B,f,h,Q)},l,P,L,H,this.xE,this.Gn); g.Z(this,this.VS);this.DF=new sr(l,G,A,this.xE,U,this.Gn,this.FT,this.Ua);g.Z(this,this.DF);var e=new mx(Y,this.DF,this.FT,this.Gn,this.EH);this.Ba=gD(function(){return e}); this.Yu=e;this.SD=new BN(l,P,this.Ba,this.EH,this.FT,this.xE,this.SX,this.WQ);g.Z(this,this.SD);this.nh=new hK(l,P,this.cQ,this.Ba,F);g.Z(this,this.nh);this.QT=new mP(this.xE,l,P,G,this.Gn,this.nh,A,this.vQ);g.Z(this,this.QT);this.QS=gD(function(){return new vm(v,L,H,T.xE,T.SX,T.FT,T.WQ)}); g.Z(this,this.QS);this.jM=gD(function(){return new Hm}); g.Z(this,this.jM);this.U9=new gy(U,this.TQ,this.xE);g.Z(this,this.U9);this.E3=new y2(U);g.Z(this,this.E3);this.lz=new nf(U);g.Z(this,this.lz);this.n3=new IX(U,this.Ba,F);g.Z(this,this.n3);this.M1=new uy(U,this.cQ,this.FT,this.Gn,F);g.Z(this,this.M1);this.fZ=new Kf(U,this.Gn);g.Z(this,this.fZ);this.nV=new UG(U,this.EH,this.FT,this.SX,this.Ba);g.Z(this,this.nV);this.QV=new q_(U);g.Z(this,this.QV);this.UH=new du(U);g.Z(this,this.UH);this.n5=new Cf(U);g.Z(this,this.n5);this.q_=new cZ(U);g.Z(this,this.q_); this.UH=new du(U);g.Z(this,this.UH);this.ox=gD(function(){return new Q2}); g.Z(this,this.ox);this.h$=gD(function(){return new Zh(T.FT)}); g.Z(this,this.h$);this.GE=gD(function(){return new yAc(T.TQ,T.SX,U,r,T.xt)}); g.Z(this,this.GE);this.Dk=gD(function(){return new YP(T.QT,l,E)}); g.Z(this,this.Dk);this.yS=gD(function(){return new dt(T.xE,T.SX,T.QV,T.xt)}); g.Z(this,this.yS);this.C5=gD(function(){return new vq(U,T.UH,T.QV,T.Gn,T.WQ,T.FT,T.yU,T.SX,V,T.EH,T.xt,T.VV,T.vQ,T.cQ,T.Ua,T.a5,T.U3,T.lB,T.xE,r,F,N)}); g.Z(this,this.C5);this.T2=gD(function(){return new EDX(T.FT,T.SX,T.U3,T.xE,T.xt,T.Gn)}); g.Z(this,this.T2);this.Qq=gD(function(){return new ngE(T.TQ,T.FT,T.SX,r,T.xt,T.lz,T.q_,T.U3,T.xE,A)}); g.Z(this,this.Qq);this.p$=gD(function(){return new n$v(T.TQ,T.SX,r)}); g.Z(this,this.p$);this.wg=new rr(U,this.Ub,E);g.Z(this,this.wg);this.ZO={LA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QT],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.SD],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.DF],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.nh]]),nI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QS],["SLOT_TYPE_ABOVE_FEED",this.jM],["SLOT_TYPE_FORECASTING",this.jM], ["SLOT_TYPE_IN_PLAYER",this.jM],["SLOT_TYPE_PLAYER_BYTES",this.jM],["SLOT_TYPE_PLAYER_UNDERLAY",this.jM],["SLOT_TYPE_PLAYBACK_TRACKING",this.jM],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.jM]]),A1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.U9],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.U9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.E3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.E3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.E3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.E3],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.E3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.E3],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.E3],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.E3],["TRIGGER_TYPE_CLOSE_REQUESTED",this.lz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n3],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.M1],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.M1],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.M1],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.M1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.M1],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.M1],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.M1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.fZ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.fZ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.QV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.n3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n5],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.q_],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.nV],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.nV],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.nV],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.nV],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.nV]]),e$:new Map([["SLOT_TYPE_ABOVE_FEED",this.ox], ["SLOT_TYPE_AD_BREAK_REQUEST",this.ox],["SLOT_TYPE_FORECASTING",this.ox],["SLOT_TYPE_IN_PLAYER",this.ox],["SLOT_TYPE_PLAYER_BYTES",this.h$],["SLOT_TYPE_PLAYER_UNDERLAY",this.ox],["SLOT_TYPE_PLAYBACK_TRACKING",this.ox],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.ox]]),yq:new Map([["SLOT_TYPE_ABOVE_FEED",this.GE],["SLOT_TYPE_AD_BREAK_REQUEST",this.Dk],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_PLAYER_BYTES",this.C5],["SLOT_TYPE_PLAYBACK_TRACKING",this.T2],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.T2],["SLOT_TYPE_IN_PLAYER",this.Qq],["SLOT_TYPE_PLAYER_UNDERLAY",this.p$]])};this.listeners=[r.get()];this.Al={QT:this.QT,bL:this.xE.get(),Bw:this.U3.get(),Rr:this.FT.get(),DF:this.DF,s7:E.get(),ey:this.Ub.get(),Kc:this.U9,CX:r.get(),A_:this.Gn.get()}}; f4l=function(U,Y,A,c,d){g.p.call(this);var T=this,E=gD(function(){return new TI(T.xE)}); g.Z(this,E);var L=gD(function(){return new of(E,T.xE)}); g.Z(this,L);var r=gD(function(){return new SQ}); g.Z(this,r);var l=gD(function(){return new ff(U)}); g.Z(this,l);var P=gD(function(){return new zI(E,L,T.xE)}); g.Z(this,P);var V=gD(function(){return new VV}); g.Z(this,V);this.TQ=gD(function(){return new Pk(Y)}); g.Z(this,this.TQ);this.U3=gD(function(){return new nH(d)}); g.Z(this,this.U3);this.Ua=gD(function(){return new gE(Y)}); g.Z(this,this.Ua);this.cQ=gD(function(){return new yr(Y)}); g.Z(this,this.cQ);this.vQ=gD(function(){return new n0(Y)}); g.Z(this,this.vQ);this.a5=gD(function(){return new Du(Y)}); g.Z(this,this.a5);this.xE=gD(function(){return new IL(Y)}); g.Z(this,this.xE);var v=gD(function(){return new lK(c)}); g.Z(this,v);var H=gD(function(){return new GG(T.xE)}); g.Z(this,H);var G=gD(function(){return new jQ(E,P,L,T.xE,H,null,null,T.SD,T.nV)}); g.Z(this,G);this.lB=gD(function(){return new Hk(Y)}); g.Z(this,this.lB);this.Ub=gD(function(){return new uT}); g.Z(this,this.Ub);this.Gn=gD(function(){return new dr(Y,V,T.xE)}); g.Z(this,this.Gn);var F=O1({Gn:this.Gn,xE:this.xE,Y8:H}),N=F.context,e=F.MW;this.gs=F.gs;this.EH=gD(function(){return new vk(Y,T.xE,T.SX)}); this.FT=gD(function(){return new TF(Y,T.Gn,T.xE)}); g.Z(this,this.FT);this.yU=gD(function(){return new Wk}); g.Z(this,this.yU);this.xt=gD(function(){return new q6(T.FT,Y,T.xE)}); g.Z(this,this.xt);this.SX=gD(function(){return new ck(Y,r,T.xt,T.Gn,T.gs,T.xE,e)}); g.Z(this,this.SX);this.VV=gD(function(){return new KH(T.xE)}); g.Z(this,this.VV);this.VS=new aX(RX,wr,function(f,h,Q,K){return Th(L.get(),f,h,Q,K)},l,P,L,H,this.xE,this.Gn); g.Z(this,this.VS);this.DF=new sr(l,G,A,this.xE,U,this.Gn,this.FT,this.Ua);g.Z(this,this.DF);var B=new mx(Y,this.DF,this.FT,this.Gn,this.EH);this.Ba=gD(function(){return B}); this.Yu=B;this.SD=new BN(l,P,this.Ba,this.EH,this.FT,this.xE,this.SX);g.Z(this,this.SD);this.nh=new hK(l,P,this.cQ,this.Ba,N);g.Z(this,this.nh);this.QT=new mP(this.xE,l,P,G,this.Gn,this.nh,A,this.vQ);g.Z(this,this.QT);this.QS=gD(function(){return new vm(v,L,H,T.xE,T.SX,T.FT)}); g.Z(this,this.QS);this.jM=gD(function(){return new Hm}); g.Z(this,this.jM);this.U9=new gy(U,this.TQ,this.xE);g.Z(this,this.U9);this.E3=new y2(U);g.Z(this,this.E3);this.lz=new nf(U);g.Z(this,this.lz);this.n3=new IX(U,this.Ba,N);g.Z(this,this.n3);this.M1=new uy(U,this.cQ,this.FT,this.Gn,N);g.Z(this,this.M1);this.QV=new q_(U);g.Z(this,this.QV);this.n5=new Cf(U);g.Z(this,this.n5);this.q_=new cZ(U);g.Z(this,this.q_);this.WQ=gD(function(){return new GF(Y)}); g.Z(this,this.WQ);this.UH=new du(U);g.Z(this,this.UH);this.nV=new UG(U,this.EH,this.FT,this.SX,this.Ba);g.Z(this,this.nV);this.ox=gD(function(){return new Q2}); g.Z(this,this.ox);this.h$=gD(function(){return new Zh(T.FT)}); g.Z(this,this.h$);this.Dk=gD(function(){return new YP(T.QT,l,E)}); g.Z(this,this.Dk);this.yS=gD(function(){return new dt(T.xE,T.SX,T.QV,T.xt)}); g.Z(this,this.yS);this.Qq=gD(function(){return new Di8(T.TQ,T.FT,T.SX,r,T.xt,T.lz,T.q_,T.U3,T.xE,A)}); g.Z(this,this.Qq);this.C5=gD(function(){return new Hq(U,T.UH,T.QV,T.SX,T.xt,T.VV,T.vQ,T.Gn,T.FT,T.yU,T.cQ,T.Ua,T.a5,T.U3,T.lB,T.xE,T.WQ,N,e)}); g.Z(this,this.C5);this.wg=new rr(U,this.Ub,E);g.Z(this,this.wg);this.ZO={LA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QT],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.SD],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.DF],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.nh]]),nI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QS],["SLOT_TYPE_FORECASTING",this.jM],["SLOT_TYPE_IN_PLAYER",this.jM], ["SLOT_TYPE_PLAYER_BYTES",this.jM]]),A1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.U9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.E3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.E3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.E3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.E3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.E3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.E3], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.E3],["TRIGGER_TYPE_CLOSE_REQUESTED",this.lz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n3],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.M1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.M1],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.M1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.QV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.n3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n5],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.q_],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.nV],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.nV],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.nV],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.nV],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.nV]]),e$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ox],["SLOT_TYPE_FORECASTING",this.ox],["SLOT_TYPE_IN_PLAYER",this.ox],["SLOT_TYPE_PLAYER_BYTES",this.h$]]), yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Dk],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_IN_PLAYER",this.Qq],["SLOT_TYPE_PLAYER_BYTES",this.C5]])};this.listeners=[r.get()];this.Al={QT:this.QT,bL:this.xE.get(),Bw:this.U3.get(),Rr:this.FT.get(),DF:this.DF,s7:E.get(),ey:this.Ub.get(),Kc:this.U9,CX:r.get(),A_:this.Gn.get()}}; h68=function(U,Y,A,c,d){g.p.call(this);var T=this,E=gD(function(){return new TI(T.xE)}); g.Z(this,E);var L=gD(function(){return new of(E,T.xE)}); g.Z(this,L);var r=gD(function(){return new SQ}); g.Z(this,r);var l=gD(function(){return new ff(U)}); g.Z(this,l);var P=gD(function(){return new zI(E,L,T.xE)}); g.Z(this,P);var V=gD(function(){return new VV}); g.Z(this,V);this.TQ=gD(function(){return new Pk(Y)}); g.Z(this,this.TQ);this.U3=gD(function(){return new nH(d)}); g.Z(this,this.U3);this.Ua=gD(function(){return new gE(Y)}); g.Z(this,this.Ua);this.cQ=gD(function(){return new yr(Y)}); g.Z(this,this.cQ);this.vQ=gD(function(){return new n0(Y)}); g.Z(this,this.vQ);this.a5=gD(function(){return new Du(Y)}); g.Z(this,this.a5);this.xE=gD(function(){return new IL(Y)}); g.Z(this,this.xE);var v=gD(function(){return new lK(c)}); g.Z(this,v);var H=gD(function(){return new GG(T.xE)}); g.Z(this,H);var G=gD(function(){return new jQ(E,P,L,T.xE,H,null,null,null,null)}); g.Z(this,G);this.lB=gD(function(){return new Hk(Y)}); g.Z(this,this.lB);this.Gn=gD(function(){return new dr(Y,V,T.xE)}); g.Z(this,this.Gn);var F=O1({Gn:this.Gn,xE:this.xE,Y8:H}),N=F.context,e=F.MW;this.gs=F.gs;this.FT=gD(function(){return new TF(Y,T.Gn,T.xE)}); g.Z(this,this.FT);this.yU=gD(function(){return new Wk}); g.Z(this,this.yU);this.xt=gD(function(){return new q6(T.FT,Y,T.xE)}); g.Z(this,this.xt);this.SX=gD(function(){return new ck(Y,r,T.xt,T.Gn,T.gs,T.xE,e)}); g.Z(this,this.SX);this.VV=gD(function(){return new KH(T.xE)}); g.Z(this,this.VV);this.VS=new aX(RX,wr,function(f,h,Q,K){return Th(L.get(),f,h,Q,K)},l,P,L,H,this.xE,this.Gn); g.Z(this,this.VS);this.DF=new sr(l,G,A,this.xE,U,this.Gn,this.FT,this.Ua);g.Z(this,this.DF);var B=new mx(Y,this.DF,this.FT,this.Gn);this.Ba=gD(function(){return B}); this.Yu=B;this.nh=new hK(l,P,this.cQ,this.Ba,N);g.Z(this,this.nh);this.QT=new mP(this.xE,l,P,G,this.Gn,this.nh,A,this.vQ);g.Z(this,this.QT);this.QS=gD(function(){return new vm(v,L,H,T.xE,T.SX,T.FT)}); g.Z(this,this.QS);this.jM=gD(function(){return new Hm}); g.Z(this,this.jM);this.U9=new gy(U,this.TQ,this.xE);g.Z(this,this.U9);this.E3=new y2(U);g.Z(this,this.E3);this.n3=new IX(U,this.Ba,N);g.Z(this,this.n3);this.M1=new uy(U,this.cQ,this.FT,this.Gn,N);g.Z(this,this.M1);this.QV=new q_(U);g.Z(this,this.QV);this.n5=new Cf(U);g.Z(this,this.n5);this.WQ=gD(function(){return new GF(Y)}); g.Z(this,this.WQ);this.UH=new du(U);g.Z(this,this.UH);this.ox=gD(function(){return new Q2}); g.Z(this,this.ox);this.h$=gD(function(){return new Zh(T.FT)}); g.Z(this,this.h$);this.Dk=gD(function(){return new YP(T.QT,l,E)}); g.Z(this,this.Dk);this.yS=gD(function(){return new dt(T.xE,T.SX,T.QV,T.xt)}); g.Z(this,this.yS);this.BO=gD(function(){return new T13(T.TQ,T.FT,T.SX,r,A,T.xE)}); g.Z(this,this.BO);this.C5=gD(function(){return new Hq(U,T.UH,T.QV,T.SX,T.xt,T.VV,T.vQ,T.Gn,T.FT,T.yU,T.cQ,T.Ua,T.a5,T.U3,T.lB,T.xE,T.WQ,N,e)}); g.Z(this,this.C5);this.ZO={LA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QT],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.DF],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.nh]]),nI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QS],["SLOT_TYPE_FORECASTING",this.jM],["SLOT_TYPE_IN_PLAYER",this.jM],["SLOT_TYPE_PLAYER_BYTES",this.jM]]),A1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.U9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.E3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.E3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.E3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.E3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.E3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.E3],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n3],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.M1],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.M1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.QV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.n3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n5],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UH]]),e$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ox],["SLOT_TYPE_ABOVE_FEED",this.ox],["SLOT_TYPE_FORECASTING",this.ox],["SLOT_TYPE_IN_PLAYER",this.ox],["SLOT_TYPE_PLAYER_BYTES",this.h$]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Dk],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_IN_PLAYER", this.BO],["SLOT_TYPE_PLAYER_BYTES",this.C5]])};this.listeners=[r.get()];this.Al={QT:this.QT,bL:this.xE.get(),Bw:this.U3.get(),Rr:this.FT.get(),DF:this.DF,s7:E.get(),ey:null,Kc:this.U9,CX:r.get(),A_:this.Gn.get()}}; SQv=function(U,Y,A,c,d){g.p.call(this);var T=this,E=gD(function(){return new TI(T.xE)}); g.Z(this,E);var L=gD(function(){return new of(E,T.xE)}); g.Z(this,L);var r=gD(function(){return new SQ}); g.Z(this,r);var l=gD(function(){return new ff(U)}); g.Z(this,l);var P=gD(function(){return new zI(E,L,T.xE)}); g.Z(this,P);var V=gD(function(){return new VV}); g.Z(this,V);this.GI=gD(function(){return new xXc(Y)}); g.Z(this,this.GI);this.TQ=gD(function(){return new Pk(Y)}); g.Z(this,this.TQ);this.U3=gD(function(){return new nH(d)}); g.Z(this,this.U3);this.Ua=gD(function(){return new gE(Y)}); g.Z(this,this.Ua);this.cQ=gD(function(){return new yr(Y)}); g.Z(this,this.cQ);this.vQ=gD(function(){return new n0(Y)}); g.Z(this,this.vQ);this.a5=gD(function(){return new Du(Y)}); g.Z(this,this.a5);this.xE=gD(function(){return new IL(Y)}); g.Z(this,this.xE);var v=gD(function(){return new lK(c)}); g.Z(this,v);var H=gD(function(){return new GG(T.xE)}); g.Z(this,H);var G=gD(function(){return new jQ(E,P,L,T.xE,H,null,null,null,null)}); g.Z(this,G);this.lB=gD(function(){return new Hk(Y)}); g.Z(this,this.lB);this.Gn=gD(function(){return new dr(Y,V,T.xE)}); g.Z(this,this.Gn);var F=O1({Gn:this.Gn,xE:this.xE,Y8:H}),N=F.context,e=F.MW;this.gs=F.gs;this.FT=gD(function(){return new TF(Y,T.Gn,T.xE)}); g.Z(this,this.FT);this.yU=gD(function(){return new Wk}); g.Z(this,this.yU);this.xt=gD(function(){return new q6(T.FT,Y,T.xE)}); g.Z(this,this.xt);this.SX=gD(function(){return new ck(Y,r,T.xt,T.Gn,T.gs,T.xE,e)}); g.Z(this,this.SX);this.VV=gD(function(){return new KH(T.xE)}); g.Z(this,this.VV);this.VS=new aX(hjY,wr,function(f,h,Q,K){return d83(L.get(),f,h,Q,K)},l,P,L,H,this.xE,this.Gn); g.Z(this,this.VS);this.DF=new sr(l,G,A,this.xE,U,this.Gn,this.FT,this.Ua);g.Z(this,this.DF);var B=new mx(Y,this.DF,this.FT,this.Gn);this.Ba=gD(function(){return B}); this.Yu=B;this.nh=new hK(l,P,this.cQ,this.Ba,N);g.Z(this,this.nh);this.QT=new mP(this.xE,l,P,G,this.Gn,this.nh,A,this.vQ);g.Z(this,this.QT);this.QS=gD(function(){return new vm(v,L,H,T.xE,T.SX,T.FT)}); g.Z(this,this.QS);this.jM=gD(function(){return new Hm}); g.Z(this,this.jM);this.U9=new gy(U,this.TQ,this.xE);g.Z(this,this.U9);this.E3=new y2(U);g.Z(this,this.E3);this.n3=new IX(U,this.Ba,N);g.Z(this,this.n3);this.M1=new uy(U,this.cQ,this.FT,this.Gn,N);g.Z(this,this.M1);this.QV=new q_(U);g.Z(this,this.QV);this.n5=new Cf(U);g.Z(this,this.n5);this.WQ=gD(function(){return new GF(Y)}); g.Z(this,this.WQ);this.UH=new du(U);g.Z(this,this.UH);this.ox=gD(function(){return new Q2}); g.Z(this,this.ox);this.h$=gD(function(){return new Zh(T.FT)}); g.Z(this,this.h$);this.Dk=gD(function(){return new YP(T.QT,l,E)}); g.Z(this,this.Dk);this.yS=gD(function(){return new dt(T.xE,T.SX,T.QV,T.xt)}); g.Z(this,this.yS);this.C5=gD(function(){return new Hq(U,T.UH,T.QV,T.SX,T.xt,T.VV,T.vQ,T.Gn,T.FT,T.yU,T.cQ,T.Ua,T.a5,T.U3,T.lB,T.xE,T.WQ,N,e)}); g.Z(this,this.C5);this.Dd=gD(function(){return new ub3(T.TQ,T.FT,T.SX,r,T.GI,A,T.Gn)}); g.Z(this,this.Dd);this.ZO={LA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QT],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.DF],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.nh]]),nI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QS],["SLOT_TYPE_FORECASTING",this.jM],["SLOT_TYPE_IN_PLAYER",this.jM],["SLOT_TYPE_PLAYER_BYTES",this.jM]]),A1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.U9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.E3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.E3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.E3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.E3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.E3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.E3],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n3],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.M1],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.M1],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.QV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.n3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n5],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UH]]),e$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ox],["SLOT_TYPE_FORECASTING",this.ox],["SLOT_TYPE_IN_PLAYER",this.ox],["SLOT_TYPE_PLAYER_BYTES",this.h$]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Dk],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_IN_PLAYER",this.Dd],["SLOT_TYPE_PLAYER_BYTES", this.C5]])};this.listeners=[r.get()];this.Al={QT:this.QT,bL:this.xE.get(),Bw:this.U3.get(),Rr:this.FT.get(),DF:this.DF,s7:E.get(),ey:null,Kc:this.U9,CX:r.get(),A_:this.Gn.get()}}; Ma9=function(U,Y,A,c,d){g.p.call(this);var T=this,E=gD(function(){return new TI(T.xE)}); g.Z(this,E);var L=gD(function(){return new of(E,T.xE)}); g.Z(this,L);var r=gD(function(){return new SQ}); g.Z(this,r);var l=gD(function(){return new ff(U)}); g.Z(this,l);var P=gD(function(){return new zI(E,L,T.xE)}); g.Z(this,P);var V=gD(function(){return new VV}); g.Z(this,V);this.GI=gD(function(){return new xXc(Y)}); g.Z(this,this.GI);this.TQ=gD(function(){return new Pk(Y)}); g.Z(this,this.TQ);this.U3=gD(function(){return new nH(d)}); g.Z(this,this.U3);this.Ua=gD(function(){return new gE(Y)}); g.Z(this,this.Ua);this.cQ=gD(function(){return new yr(Y)}); g.Z(this,this.cQ);this.vQ=gD(function(){return new n0(Y)}); g.Z(this,this.vQ);this.a5=gD(function(){return new Du(Y)}); g.Z(this,this.a5);this.xE=gD(function(){return new IL(Y)}); g.Z(this,this.xE);var v=gD(function(){return new lK(c)}); g.Z(this,v);var H=gD(function(){return new GG(T.xE)}); g.Z(this,H);this.lB=gD(function(){return new Hk(Y)}); g.Z(this,this.lB);this.Gn=gD(function(){return new dr(Y,V,T.xE)}); g.Z(this,this.Gn);var G=O1({Gn:this.Gn,xE:this.xE,Y8:H}),F=G.context,N=G.MW;this.gs=G.gs;this.EH=gD(function(){return new vk(Y,T.xE,T.SX)}); g.Z(this,this.EH);this.WQ=gD(function(){return new GF(Y)}); g.Z(this,this.WQ);this.FT=gD(function(){return new TF(Y,T.Gn,T.xE)}); g.Z(this,this.FT);this.yU=gD(function(){return new Wk}); g.Z(this,this.yU);G=gD(function(){return new jQ(E,P,L,T.xE,H,null,T.FT,T.SD,T.nV,3)}); g.Z(this,G);this.VV=gD(function(){return new KH(T.xE)}); this.xt=gD(function(){return new q6(T.FT,Y,T.xE)}); g.Z(this,this.xt);this.SX=gD(function(){return new ck(Y,r,T.xt,T.Gn,T.gs,T.xE,N)}); g.Z(this,this.SX);this.DF=new sr(l,G,A,this.xE,U,this.Gn,this.FT,this.Ua);g.Z(this,this.DF);var e=new mx(Y,this.DF,this.FT,this.Gn,this.EH);this.Ba=gD(function(){return e}); this.Yu=e;this.VS=new aX(SyX,wr,function(B,f,h,Q){return d83(L.get(),B,f,h,Q)},l,P,L,H,this.xE,this.Gn); g.Z(this,this.VS);this.SD=new BN(l,P,this.Ba,this.EH,this.FT,this.xE,this.SX,this.WQ);g.Z(this,this.SD);this.nh=new hK(l,P,this.cQ,this.Ba,F);g.Z(this,this.nh);this.QT=new mP(this.xE,l,P,G,this.Gn,this.nh,A,this.vQ);g.Z(this,this.QT);this.QS=gD(function(){return new vm(v,L,H,T.xE,T.SX,T.FT,T.WQ)}); g.Z(this,this.QS);this.jM=gD(function(){return new Hm}); g.Z(this,this.jM);this.U9=new gy(U,this.TQ,this.xE);g.Z(this,this.U9);this.E3=new y2(U);g.Z(this,this.E3);this.n3=new IX(U,this.Ba,F);g.Z(this,this.n3);this.M1=new uy(U,this.cQ,this.FT,this.Gn,F);g.Z(this,this.M1);this.fZ=new Kf(U,this.Gn);g.Z(this,this.fZ);this.nV=new UG(U,this.EH,this.FT,this.SX,this.Ba);g.Z(this,this.nV);this.QV=new q_(U);g.Z(this,this.QV);this.n5=new Cf(U);g.Z(this,this.n5);this.UH=new du(U);g.Z(this,this.UH);this.ox=gD(function(){return new Q2}); g.Z(this,this.ox);this.h$=gD(function(){return new Zh(T.FT)}); g.Z(this,this.h$);this.Dk=gD(function(){return new YP(T.QT,l,E)}); g.Z(this,this.Dk);this.yS=gD(function(){return new dt(T.xE,T.SX,T.QV,T.xt)}); g.Z(this,this.yS);this.C5=gD(function(){return new vq(U,T.UH,T.QV,T.Gn,T.WQ,T.FT,T.yU,T.SX,V,T.EH,T.xt,T.VV,T.vQ,T.cQ,T.Ua,T.a5,T.U3,T.lB,T.xE,r,F,N)}); g.Z(this,this.C5);this.Qq=gD(function(){return new Kb9(T.TQ,T.FT,T.SX,r,T.GI,A,T.xE,T.Gn)}); g.Z(this,this.Qq);this.ZO={LA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QT],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.SD],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VS],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.DF],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.nh]]),nI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QS],["SLOT_TYPE_FORECASTING",this.jM],["SLOT_TYPE_IN_PLAYER",this.jM],["SLOT_TYPE_PLAYER_BYTES",this.jM]]),A1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.U9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.E3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.E3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.E3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.E3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.E3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.E3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.E3],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.n3],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.M1],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.M1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.fZ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.fZ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.QV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.n3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.n5],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.nV],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.nV],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.nV],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.nV],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.nV]]),e$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ox],["SLOT_TYPE_FORECASTING",this.ox],["SLOT_TYPE_IN_PLAYER",this.ox],["SLOT_TYPE_PLAYER_BYTES",this.h$]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Dk],["SLOT_TYPE_FORECASTING",this.yS],["SLOT_TYPE_PLAYER_BYTES",this.C5],["SLOT_TYPE_IN_PLAYER",this.Qq]])};this.listeners=[r.get()]; this.Al={QT:this.QT,bL:this.xE.get(),Bw:this.U3.get(),Rr:this.FT.get(),DF:this.DF,s7:E.get(),ey:null,Kc:this.U9,CX:r.get(),A_:this.Gn.get()}}; psX=function(U,Y,A,c){function d(){return T.T} g.p.call(this);var T=this;U.L().experiments.lY("html5_dispose_of_manager_before_dependency")?(this.Y=bXY(d,U,Y,A,c),this.T=(new yK(this.Y)).W(),g.Z(this,this.T),g.Z(this,this.Y)):(this.Y=bXY(d,U,Y,A,c),g.Z(this,this.Y),this.T=(new yK(this.Y)).W(),g.Z(this,this.T))}; iK=function(U){return U.Y.Al}; bXY=function(U,Y,A,c,d){try{var T=Y.L();if(g.Cs(T))var E=new sa3(U,Y,A,c,d);else if(g.YQ(T))E=new f4l(U,Y,A,c,d);else if(gI(T))E=new h68(U,Y,A,c,d);else if(g.pV(T))E=new SQv(U,Y,A,c,d);else if(g.bo(T))E=new Ma9(U,Y,A,c,d);else throw new TypeError("Unknown web interface");return E}catch(L){return E=Y.L(),$D("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:E.Y.cplatform,interface:E.Y.c,mNW:E.Y.cver,zME:E.Y.ctheme,dNT:E.Y.cplayer,DGY:E.playerStyle}),new FC4(U,Y,A,c,d)}}; Qa8=function(U){nW.call(this,U)}; ZXE=function(U,Y,A,c,d){YD.call(this,U,{D:"div",B:"ytp-ad-timed-pie-countdown-container",C:[{D:"svg",B:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},C:[{D:"circle",B:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{D:"circle",B:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{D:"circle",B:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",Y,A,c,d);this.j=this.As("ytp-ad-timed-pie-countdown-container");this.W=this.As("ytp-ad-timed-pie-countdown-inner"); this.J=this.As("ytp-ad-timed-pie-countdown-outer");this.T=Math.ceil(2*Math.PI*5);this.hide()}; OXl=function(U,Y,A,c,d,T){G2.call(this,U,{D:"div",B:"ytp-ad-action-interstitial",V:{tabindex:"0"},C:[{D:"div",B:"ytp-ad-action-interstitial-background-container"},{D:"div",B:"ytp-ad-action-interstitial-slot",C:[{D:"div",B:"ytp-ad-action-interstitial-instream-info"},{D:"div",B:"ytp-ad-action-interstitial-card",C:[{D:"div",B:"ytp-ad-action-interstitial-image-container"},{D:"div",B:"ytp-ad-action-interstitial-headline-container"},{D:"div",B:"ytp-ad-action-interstitial-description-container"},{D:"div", B:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",Y,A,c);this.DX=d;this.U2=T;this.navigationEndpoint=this.Y=this.skipButton=this.T=this.actionButton=null;this.kE=this.As("ytp-ad-action-interstitial-instream-info");this.Uv=this.As("ytp-ad-action-interstitial-image-container");this.X=new OD(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,"ytp-ad-action-interstitial-image");g.Z(this,this.X);this.X.Df(this.Uv);this.QJ=this.As("ytp-ad-action-interstitial-headline-container"); this.J=new CW(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,"ytp-ad-action-interstitial-headline");g.Z(this,this.J);this.J.Df(this.QJ);this.Hw=this.As("ytp-ad-action-interstitial-description-container");this.W=new CW(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,"ytp-ad-action-interstitial-description");g.Z(this,this.W);this.W.Df(this.Hw);this.qI=this.As("ytp-ad-action-interstitial-background-container");this.yJ=new OD(this.api,this.layoutId,this.interactionLoggingClientData, this.Bw,"ytp-ad-action-interstitial-background",!0);g.Z(this,this.yJ);this.yJ.Df(this.qI);this.Ly=this.As("ytp-ad-action-interstitial-action-button-container");this.slot=this.As("ytp-ad-action-interstitial-slot");this.Xl=this.As("ytp-ad-action-interstitial-card");this.j=new XC;g.Z(this,this.j);this.hide()}; mXV=function(U){var Y=g.y7("html5-video-player");Y&&g.lg(Y,"ytp-ad-display-override",U)}; DXl=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-ad-overlay-slot",C:[{D:"div",B:"ytp-ad-overlay-container"}]},"invideo-overlay",Y,A,c);this.X=[];this.qI=this.QJ=this.j=this.Ly=this.kE=null;this.yJ=!1;this.J=null;this.Hw=0;U=this.As("ytp-ad-overlay-container");this.Uv=new LV(U,45E3,6E3,.3,.4);g.Z(this,this.Uv);this.W=gf3(this);g.Z(this,this.W);this.W.Df(U);this.T=yO3(this);g.Z(this,this.T);this.T.Df(U);this.Y=nf8(this);g.Z(this,this.Y);this.Y.Df(U);this.hide()}; gf3=function(U){var Y=new g.Ha({D:"div",B:"ytp-ad-text-overlay",C:[{D:"div",B:"ytp-ad-overlay-ad-info-button-container"},{D:"div",B:"ytp-ad-overlay-close-container",C:[{D:"button",B:"ytp-ad-overlay-close-button",C:[fW(I4X)]}]},{D:"div",B:"ytp-ad-overlay-title",YE:"{{title}}"},{D:"div",B:"ytp-ad-overlay-desc",YE:"{{description}}"},{D:"div",Iv:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],YE:"{{displayUrl}}"}]});U.N(Y.As("ytp-ad-overlay-title"),"click",function(A){J$(U,Y.element,A)}); U.N(Y.As("ytp-ad-overlay-link"),"click",function(A){J$(U,Y.element,A)}); U.N(Y.As("ytp-ad-overlay-close-container"),"click",U.E0);Y.hide();return Y}; yO3=function(U){var Y=new g.Ha({D:"div",Iv:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],C:[{D:"div",B:"ytp-ad-overlay-ad-info-button-container"},{D:"div",B:"ytp-ad-overlay-close-container",C:[{D:"button",B:"ytp-ad-overlay-close-button",C:[fW(I4X)]}]},{D:"div",B:"ytp-ad-overlay-text-image",C:[{D:"img",V:{src:"{{imageUrl}}"}}]},{D:"div",B:"ytp-ad-overlay-title",YE:"{{title}}"},{D:"div",B:"ytp-ad-overlay-desc",YE:"{{description}}"},{D:"div",Iv:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], YE:"{{displayUrl}}"}]});U.N(Y.As("ytp-ad-overlay-title"),"click",function(A){J$(U,Y.element,A)}); U.N(Y.As("ytp-ad-overlay-link"),"click",function(A){J$(U,Y.element,A)}); U.N(Y.As("ytp-ad-overlay-close-container"),"click",U.E0);U.N(Y.As("ytp-ad-overlay-text-image"),"click",U.Tqw);Y.hide();return Y}; nf8=function(U){var Y=new g.Ha({D:"div",B:"ytp-ad-image-overlay",C:[{D:"div",B:"ytp-ad-overlay-ad-info-button-container"},{D:"div",B:"ytp-ad-overlay-close-container",C:[{D:"button",B:"ytp-ad-overlay-close-button",C:[fW(I4X)]}]},{D:"div",B:"ytp-ad-overlay-image",C:[{D:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});U.N(Y.As("ytp-ad-overlay-image"),"click",function(A){J$(U,Y.element,A)}); U.N(Y.As("ytp-ad-overlay-close-container"),"click",U.E0);Y.hide();return Y}; uqY=function(U,Y){if(Y){var A=g.O(Y,pA)||null;A==null?g.S5(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(Y=g.y7("video-ads ytp-ad-module")||null,Y==null?g.S5(Error("Could not locate the root ads container element to attach the ad info dialog.")):(U.QJ=new g.Ha({D:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.Z(U,U.QJ),U.QJ.Df(Y),Y=new qq(U.api,U.layoutId,U.interactionLoggingClientData,U.Bw,U.QJ.element,!1),g.Z(U,Y),Y.init(LW("ad-info-hover-text-button"),A,U.macros), U.J?(Y.Df(U.J,0),Y.subscribe("f",U.JPr,U),Y.subscribe("e",U.gQ,U),U.N(U.J,"click",U.KHY),U.N(g.y7("ytp-ad-button",Y.element),"click",function(){var c;if(g.O((c=g.O(A.button,g.ZK))==null?void 0:c.serviceEndpoint,INX))U.yJ=U.api.getPlayerState(1)===2,U.api.pauseVideo();else U.api.onAdUxClicked("ad-info-hover-text-button",U.layoutId)}),U.qI=Y):g.S5(Error("Ad info button container within overlay ad was not present."))))}else g.Md(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; qQX=function(U,Y){if(KCc(U,Fy)||U.api.isMinimized())return!1;var A=Wa(Y.title),c=Wa(Y.description);if(g.HG(A)||g.HG(c))return!1;U.createServerVe(U.W.element,Y.trackingParams||null);U.W.updateValue("title",Wa(Y.title));U.W.updateValue("description",Wa(Y.description));U.W.updateValue("displayUrl",Wa(Y.displayUrl));Y.navigationEndpoint&&g.NF(U.X,Y.navigationEndpoint);U.W.show();U.Uv.start();U.logVisibility(U.W.element,!0);U.N(U.W.element,"mouseover",function(){U.Hw++}); return!0}; C2c=function(U,Y){if(KCc(U,Fy)||U.api.isMinimized())return!1;var A=Wa(Y.title),c=Wa(Y.description);if(g.HG(A)||g.HG(c))return!1;U.createServerVe(U.T.element,Y.trackingParams||null);U.T.updateValue("title",Wa(Y.title));U.T.updateValue("description",Wa(Y.description));U.T.updateValue("displayUrl",Wa(Y.displayUrl));U.T.updateValue("imageUrl",rQS(Y.image));Y.navigationEndpoint&&g.NF(U.X,Y.navigationEndpoint);U.Ly=Y.imageNavigationEndpoint||null;U.T.show();U.Uv.start();U.logVisibility(U.T.element,!0); U.N(U.T.element,"mouseover",function(){U.Hw++}); return!0}; U4w=function(U,Y){if(U.api.isMinimized())return!1;var A=lN8(Y.image),c=A;A.width0?(Y=new MG(U.api,U.Y), Y.Df(U.playerOverlay),g.Z(U,Y)):(U=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(Y)),g.S5(U))}}else g.S5(Error("addCommonComponents() needs to be called before starting countdown."))}; lcL=function(U){function Y(A){return{toString:function(){return A()}}} U.macros.SURVEY_LOCAL_TIME_EPOCH_S=Y(function(){var A=new Date;return(Math.round(A.valueOf()/1E3)+-1*A.getTimezoneOffset()*60).toString()}); U.macros.SURVEY_ELAPSED_MS=Y(function(){return(Date.now()-U.W).toString()})}; P8O=function(U,Y,A,c,d){eM.call(this,U,Y,A,c,"survey-question-multi-select");this.Hw=d;this.noneOfTheAbove=null;this.submitEndpoints=[];this.J=null;this.hide()}; VSI=function(U,Y,A){U.noneOfTheAbove=new Elq(U.api,U.layoutId,U.interactionLoggingClientData,U.Bw);U.noneOfTheAbove.Df(U.answers);U.noneOfTheAbove.init(LW("survey-none-of-the-above"),Y,A)}; vlL=function(U){U.T.forEach(function(Y){Y.Y.toggleButton(!1)}); $4F(U,!0)}; $4F=function(U,Y){var A=U.j;U=HYw(U);Y=Y===void 0?!1:Y;A.Y&&(U?A.Y.hide():A.Y.show(),Y&&A.Y instanceof iE&&!A.Y.j&&dbX(A.Y,!1));A.T&&(U?A.T.show():A.T.hide())}; HYw=function(U){return U.T.some(function(Y){return Y.Y.isToggled()})||U.noneOfTheAbove.button.isToggled()}; Bk=function(U,Y,A,c,d){eM.call(this,U,Y,A,c,"survey-question-single-select",function(E){T.api.L().S("supports_multi_step_on_desktop")&&d([E])}); var T=this;this.hide()}; Xy=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-ad-survey",C:[{D:"div",B:"ytp-ad-survey-questions"}]},"survey",Y,A,c);this.questions=[];this.T=[];this.conditioningRules=[];this.Y=0;this.J=this.As("ytp-ad-survey-questions");this.api.L().S("fix_survey_color_contrast_on_destop")&&this.As("ytp-ad-survey").classList.add("color-contrast-fix");this.api.L().S("web_enable_speedmaster")&&this.As("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; w3F=function(U,Y){var A=U.T[Y],c;(c=U.W)==null||c.dispose();g.O(A,MK)?GVF(U,g.O(A,MK),U.macros):g.O(A,S7)&&WXI(U,g.O(A,S7),U.macros);U.Y=Y}; GVF=function(U,Y,A){var c=new Bk(U.api,U.layoutId,U.interactionLoggingClientData,U.Bw,U.j.bind(U));c.Df(U.J);c.init(LW("survey-question-single-select"),Y,A);U.api.L().S("supports_multi_step_on_desktop")?U.W=c:U.questions.push(c);g.Z(U,c)}; WXI=function(U,Y,A){var c=new P8O(U.api,U.layoutId,U.interactionLoggingClientData,U.Bw,U.j.bind(U));c.Df(U.J);c.init(LW("survey-question-multi-select"),Y,A);U.api.L().S("supports_multi_step_on_desktop")?U.W=c:U.questions.push(c);g.Z(U,c)}; kb=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-ad-survey-interstitial",C:[{D:"div",B:"ytp-ad-survey-interstitial-contents",C:[{D:"div",B:"ytp-ad-survey-interstitial-logo",C:[{D:"div",B:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",B:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",Y,A,c);this.Y=this.actionButton=null;this.interstitial=this.As("ytp-ad-survey-interstitial");this.T=this.As("ytp-ad-survey-interstitial-contents");this.text=this.As("ytp-ad-survey-interstitial-text"); this.logoImage=this.As("ytp-ad-survey-interstitial-logo-image");this.transition=new g.d1(this,500,!1,300);g.Z(this,this.transition)}; iYW=function(U,Y){Y=Y&&ZZ(Y)||"";if(g.HG(Y))g.Md(Error("Found ThumbnailDetails without valid image URL"));else{var A=U.style;U=U.style.cssText;var c=document.implementation.createHTMLDocument("").createElement("DIV");c.style.cssText=U;U=beX(c.style);A.cssText=[U,'background-image:url("'+Y+'");'].join("")}}; J3q=function(U){var Y=g.y7("html5-video-player");Y&&g.lg(Y,"ytp-ad-display-override",U)}; RY=function(U,Y,A,c,d,T){T=T===void 0?0:T;YD.call(this,U,{D:"div",B:"ytp-preview-ad",C:[{D:"div",B:"ytp-preview-ad__text"}]},"preview-ad",Y,A,c,d);var E=this;this.Hw=T;this.T=0;this.j=-1;this.W=this.As("ytp-preview-ad__text");switch(this.Hw){case 1:this.W.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.d1(this,400,!1,100,function(){E.hide()}); g.Z(this,this.transition);this.hide()}; aY=function(U,Y,A,c){G2.call(this,U,{D:"img",B:"ytp-ad-avatar"},"ad-avatar",Y,A,c);this.hide()}; FXz=function(U){switch(U.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}}; xb=function(U,Y,A,c,d,T){d=d===void 0?!1:d;T=T===void 0?!1:T;G2.call(this,U,{D:"button",B:"ytp-ad-button-vm"},"ad-button",Y,A,c);this.buttonText=this.buttonIcon=null;this.hide();this.Y=d;this.T=T}; jcq=function(U,Y,A,c,d){YD.call(this,U,{D:"div",Iv:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],C:[{D:"div",B:"ytp-ad-avatar-lockup-card__avatar_and_text_container",C:[{D:"div",B:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",Y,A,c,d);this.startMilliseconds=0;this.adAvatar=new aY(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,this.adAvatar);AD(this.element,this.adAvatar.element,0);this.headline=new aN(this.api,this.layoutId, this.interactionLoggingClientData,this.Bw);g.Z(this,this.headline);this.headline.Df(this.As("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new aN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,this.description);this.description.Df(this.As("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new xb(this.api, this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,this.adButton);this.adButton.Df(this.element);this.hide()}; sh=function(U,Y,A,c){G2.call(this,U,{D:"button",B:"ytp-skip-ad-button",C:[{D:"div",B:"ytp-skip-ad-button__text"}]},"skip-button",Y,A,c);var d=this;this.T=!1;this.j=this.As("ytp-skip-ad-button__text");this.transition=new g.d1(this,500,!1,100,function(){d.hide()}); g.Z(this,this.transition);this.Y=new LV(this.element,15E3,5E3,.5,.5,!0);g.Z(this,this.Y);this.hide()}; NXI=function(U,Y,A,c,d){YD.call(this,U,{D:"div",B:"ytp-skip-ad"},"skip-ad",Y,A,c,d);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.W=new sh(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,this.W);this.W.Df(this.element);this.hide()}; f9=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-visit-advertiser-link"},"visit-advertiser-link",Y,A,c);this.hide()}; h$=function(U,Y,A,c,d){G2.call(this,U,{D:"div",B:"ytp-ad-player-overlay-layout",C:[{D:"div",B:"ytp-ad-player-overlay-layout__player-card-container"},{D:"div",B:"ytp-ad-player-overlay-layout__ad-info-container"},{D:"div",B:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{D:"div",B:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",Y,A,c);this.T=d;this.QJ=this.As("ytp-ad-player-overlay-layout__player-card-container");this.Y=this.As("ytp-ad-player-overlay-layout__ad-info-container"); this.X=this.As("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Hw=this.As("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; tSz=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-ad-grid-card-text",C:[{D:"div",B:"ytp-ad-grid-card-text__metadata",C:[{D:"div",B:"ytp-ad-grid-card-text__metadata__headline"},{D:"div",B:"ytp-ad-grid-card-text__metadata__description",C:[{D:"div",B:"ytp-ad-grid-card-text__metadata__description__line"},{D:"div",B:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{D:"div",B:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",Y,A,c);this.headline=new aN(this.api,this.layoutId,this.interactionLoggingClientData, this.Bw);g.Z(this,this.headline);this.headline.Df(this.As("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,!0);g.Z(this,this.moreInfoButton);this.moreInfoButton.Df(this.As("ytp-ad-grid-card-text__button"))}; SM=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",Y,A,c);this.Y=[]}; MH=function(U,Y,A,c,d,T,E){YD.call(this,U,T,E,Y,A,c,d);this.playerProgressOffsetMs=0;this.T=!1}; evj=function(U){var Y=g.y7("html5-video-player");Y&&g.lg(Y,"ytp-ad-display-override",U)}; BXj=function(U,Y,A,c,d){MH.call(this,U,Y,A,c,d,{D:"div",B:"ytp-display-underlay-text-grid-cards",C:[{D:"div",B:"ytp-display-underlay-text-grid-cards__content_container",C:[{D:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header",C:[{D:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{D:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{D:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {D:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new SM(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,this.adGridCardCollection);this.adGridCardCollection.Df(this.As("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,this.adButton);this.adButton.Df(this.As("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.W=this.As("ytp-display-underlay-text-grid-cards__content_container");this.j=this.As("ytp-display-underlay-text-grid-cards__content_container__header")}; bK=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-ad-details-line"},"ad-details-line",Y,A,c);this.Y=[];this.hide()}; p9=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-image-background",C:[{D:"img",B:"ytp-image-background-image"}]},"image-background",Y,A,c);this.hide()}; X3T=function(U,Y,A,c,d){YD.call(this,U,{D:"svg",B:"ytp-timed-pie-countdown",V:{viewBox:"0 0 20 20"},C:[{D:"circle",B:"ytp-timed-pie-countdown__background",V:{r:"10",cx:"10",cy:"10"}},{D:"circle",B:"ytp-timed-pie-countdown__inner",V:{r:"5",cx:"10",cy:"10"}},{D:"circle",B:"ytp-timed-pie-countdown__outer",V:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",Y,A,c,d);this.W=this.As("ytp-timed-pie-countdown__inner");this.T=Math.ceil(2*Math.PI*5);this.hide()}; Qq=function(U,Y,A,c){G2.call(this,U,{D:"div",B:"ytp-video-interstitial-buttoned-centered-layout",V:{tabindex:"0"},C:[{D:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content",C:[{D:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{D:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",C:[{D:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{D:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {D:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{D:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{D:"div",B:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",Y,A,c);this.T=null;this.j=this.As("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.W=new XC;g.Z(this,this.W);this.hide()}; kVI=function(U){var Y=g.y7("html5-video-player");Y&&g.lg(Y,"ytp-ad-display-override",U)}; RvW=function(U){if(!U.adAvatar||!g.O(U.adAvatar,ZX))return g.S5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!U.headline)return g.S5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!U.adBadge||!g.O(U.adBadge,Oh))return g.S5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!U.adButton||!g.O(U.adButton,ml))return g.S5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!U.adInfoRenderer|| !g.O(U.adInfoRenderer,pA))return g.S5(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;U=U.durationMilliseconds||0;return typeof U!=="number"||U<=0?(g.S5(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+U)),!1):!0}; gr=function(U,Y){Y=Y===void 0?2:Y;g.l6.call(this);this.api=U;this.Y=null;this.Yr=new XC(this);g.Z(this,this.Yr);this.T=TUS;this.Yr.N(this.api,"presentingplayerstatechange",this.Ce);this.Y=this.Yr.N(this.api,"progresssync",this.ya);this.Lc=Y;this.Lc===1&&this.ya()}; yq=function(U,Y,A){nW.call(this,U);this.api=U;this.Bw=Y;this.T={};U=new g.n({D:"div",Iv:["video-ads","ytp-ad-module"]});g.Z(this,U);Xp&&g.ou(U.element,"ytp-ads-tiny-mode");this.K=new JH(U.element);g.Z(this,this.K);g.S4(this.api,U.element,4);Er(A)&&(A=new g.n({D:"div",Iv:["ytp-ad-underlay"]}),g.Z(this,A),this.W=new JH(A.element),g.Z(this,this.W),g.S4(this.api,A.element,0));g.Z(this,sE3())}; acm=function(U,Y){U=g.Cj(U.T,Y.id,null);U==null&&g.Md(Error("Component not found for element id: "+Y.id));return U||null}; x4Y=function(U){g.lj.call(this,U);var Y=this;this.T=null;this.created=!1;this.W=U.L().S("h5_use_refactored_get_ad_break")?new ibS(this.player):new Zu(this.player);this.j=function(){if(Y.T!=null)return Y.T;var c=new BxS({Kc:iK(Y.Y).Kc,A_:iK(Y.Y).A_,U:Y.player,bL:iK(Y.Y).bL,SX:Y.Y.Y.SX,CX:iK(Y.Y).CX,a5:Y.Y.Y.a5});Y.T=c.wE;return Y.T}; this.Y=new psX(this.player,this,this.W,this.j);g.Z(this,this.Y);var A=U.L();!kq(A)||g.bo(A)||gI(A)||(g.Z(this,new yq(U,iK(this.Y).Bw,iK(this.Y).bL)),g.Z(this,new Qa8(U)))}; scY=function(U){U.created!==U.loaded&&$D("Created and loaded are out of sync")}; S9o=function(U){g.lj.prototype.load.call(U);var Y=iK(U.Y).bL;try{U.player.getRootNode().classList.add("ad-created")}catch(r){$D(r instanceof Error?r:String(r))}var A=U.player.getVideoData(1),c=A&&A.videoId||"",d=A&&A.getPlayerResponse()||{},T=(!U.player.L().experiments.lY("debug_ignore_ad_placements")&&d&&d.adPlacements||[]).map(function(r){return r.adPlacementRenderer}),E=((d==null?void 0:d.adSlots)||[]).map(function(r){return g.O(r,g6)}); d=d.playerConfig&&d.playerConfig.daiConfig&&d.playerConfig.daiConfig.enableDai||!1;A&&A.Sc();T=fcj(T,E,Y,iK(U.Y).s7);E=A&&A.clientPlaybackNonce||"";A=A&&A.Pf||!1;if(X6(Y,!0)&&A){var L;Y={};(L=U.player.getVideoData())==null||L.wW("p_cpb",(Y.cc=E,Y))}L=1E3*U.player.getDuration(1);hvL(U);U.Y.Y.Yu.E_(E,L,A,T.jm,T.dA,T.jm,d,c)}; hvL=function(U){var Y,A;if(A=(Y=U.player.getVideoData(1))==null||!Y.Pf)Y=U.player.L(),A=kq(Y)&&!g.XA(Y)&&Y.playerStyle==="desktop-polymer";A&&(U=U.player.getInternalApi(),U.addEventListener("updateKevlarOrC3Companion",rb4),U.addEventListener("updateEngagementPanelAction",l1l),U.addEventListener("changeEngagementPanelVisibility",PzX),window.addEventListener("yt-navigate-start",$b3))}; n9=function(U,Y){Y===U.GA&&(U.GA=void 0)}; MSo=function(U){var Y=iK(U.Y).DF,A=Y.j().Il("SLOT_TYPE_PLAYER_BYTES",1);Y=FS(Y.Gn.get(),1).clientPlaybackNonce;var c=!1;A=g.J(A);for(var d=A.next();!d.done;d=A.next()){d=d.value;var T=d.slotType==="SLOT_TYPE_PLAYER_BYTES"&&d.slotEntryTrigger instanceof RW?d.slotEntryTrigger.dX:void 0;T&&T===Y&&(c&&$D("More than 1 preroll playerBytes slot detected",d),c=!0)}c||Eh(iK(U.Y).Rr)}; bYL=function(U){if(uL(iK(U.Y).bL))return!0;var Y="";U=g.J(iK(U.Y).CX.QH.keys());for(var A=U.next();!A.done;A=U.next()){A=A.value;if(A.slotType==="SLOT_TYPE_PLAYER_BYTES"&&A.mY==="core")return!0;Y+=A.slotType+" "}Math.random()<.01&&$D("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:Y});return!1}; p3o=function(U){U=g.J(iK(U.Y).CX.QH.values());for(var Y=U.next();!Y.done;Y=U.next())if(Y.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; aA9=function(U,Y,A,c,d,T){A=A===void 0?[]:A;c=c===void 0?"":c;d=d===void 0?"":d;var E=iK(U.Y).bL,L=U.player.getVideoData(1);L&&L.getPlayerResponse();L&&L.Sc();A=fcj(Y,A,E,iK(U.Y).s7);SwE(iK(U.Y).QT,c,A.jm,A.dA,Y,d,T)}; fcj=function(U,Y,A,c){Y={jm:[],dA:Y};U=g.J(U);for(var d=U.next();!d.done;d=U.next())if((d=d.value)&&d.renderer!=null){var T=d.renderer;if(!A.U.L().S("html5_enable_vod_lasr_with_notify_pacf")){var E=void 0,L=void 0,r=void 0,l=void 0,P=c;g.O((l=T.sandwichedLinearAdRenderer)==null?void 0:l.adVideoStart,FK)?(E=g.O((r=T.sandwichedLinearAdRenderer)==null?void 0:r.adVideoStart,FK),E=U83(E,P),g.OZ(T.sandwichedLinearAdRenderer.adVideoStart,FK,E)):g.O((L=T.linearAdSequenceRenderer)==null?void 0:L.adStart,FK)&& (r=g.O((E=T.linearAdSequenceRenderer)==null?void 0:E.adStart,FK),E=U83(r,P),g.OZ(T.linearAdSequenceRenderer.adStart,FK,E))}Y.jm.push(d)}return Y}; g.DX=function(U){if(typeof DOMParser!="undefined")return V7(new DOMParser,f_8(U),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.IY=function(U){g.p.call(this);this.callback=U;this.Y=new F7(0,0,.4,0,.2,1,1,1);this.delay=new g.DG(this.next,window,this);g.Z(this,this.delay)}; g.Qco=function(U){var Y=U.L();return Y.KU&&!Y.W&&g.ay(Y)?U.isEmbedsShortsMode()?(U=U.aX(),Math.min(U.width,U.height)>=315):!U.Wb():!1}; g.uK=function(U){g.n.call(this,{D:"div",B:"ytp-more-videos-view",V:{tabIndex:"-1"}});var Y=this;this.api=U;this.T=!0;this.W=new g.Qy(this);this.Y=[];this.suggestionData=[];this.columns=this.containerWidth=this.Z=this.j=this.scrollPosition=0;this.title=new g.n({D:"h2",B:"ytp-related-title",YE:"{{title}}"});this.previous=new g.n({D:"button",Iv:["ytp-button","ytp-previous"],V:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},C:[g.Fs()]});this.G=new g.IY(function(A){Y.suggestions.element.scrollLeft= -A}); this.next=new g.n({D:"button",Iv:["ytp-button","ytp-next"],V:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},C:[g.jb()]});g.Z(this,this.W);this.J=U.L().j;g.Z(this,this.title);this.title.Df(this.element);this.suggestions=new g.n({D:"div",B:"ytp-suggestions"});g.Z(this,this.suggestions);this.suggestions.Df(this.element);g.Z(this,this.previous);this.previous.Df(this.element);this.previous.listen("click",this.Xd,this);g.Z(this,this.G);ZYm(this);g.Z(this,this.next);this.next.Df(this.element);this.next.listen("click", this.Vi,this);this.W.N(this.api,"appresize",this.hP);this.W.N(this.api,"fullscreentoggled",this.T$);this.W.N(this.api,"videodatachange",this.onVideoDataChange);this.hP(this.api.Cy().getPlayerSize());this.onVideoDataChange()}; ZYm=function(U){for(var Y={f7:0};Y.f7<16;Y={f7:Y.f7},++Y.f7){var A=new g.n({D:"a",B:"ytp-suggestion-link",V:{href:"{{link}}",target:U.api.L().X,"aria-label":"{{aria_label}}"},C:[{D:"div",B:"ytp-suggestion-image"},{D:"div",B:"ytp-suggestion-overlay",V:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},C:[{D:"div",B:"ytp-suggestion-title",YE:"{{title}}"},{D:"div",B:"ytp-suggestion-author",YE:"{{author_and_views}}"},{D:"div",V:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration", YE:"{{duration}}"}]}]});g.Z(U,A);var c=A.As("ytp-suggestion-link");g.MP(c,"transitionDelay",Y.f7/20+"s");U.W.N(c,"click",function(d){return function(T){var E=d.f7;if(U.T){var L=U.suggestionData[E],r=L.sessionData;U.J&&U.api.S("web_player_log_click_before_generating_ve_conversion_params")?(U.api.logClick(U.Y[E].element),E=L.Zl(),L={},g.sW(U.api,L),E=g.xJ(E,L),g.Lv(E,U.api,T)):g.zY(T,U.api,U.J,r||void 0)&&U.api.uP(L.videoId,r,L.playlistId)}else T.preventDefault(),document.activeElement.blur()}}(Y)); A.Df(U.suggestions.element);U.Y.push(A);U.api.createServerVe(A.element,A)}}; OYY=function(U){if(U.api.L().S("web_player_log_click_before_generating_ve_conversion_params"))for(var Y=Math.floor(-U.scrollPosition/(U.j+8)),A=Math.min(Y+U.columns,U.suggestionData.length)-1;Y<=A;Y++)U.api.logVisibility(U.Y[Y].element,!0)}; g.K9=function(U){var Y=U.api.yG()?32:16;Y=U.Z/2+Y;U.next.element.style.bottom=Y+"px";U.previous.element.style.bottom=Y+"px";Y=U.scrollPosition;var A=U.containerWidth-U.suggestionData.length*(U.j+8);g.lg(U.element,"ytp-scroll-min",Y>=0);g.lg(U.element,"ytp-scroll-max",Y<=A)}; glI=function(U){for(var Y=U.suggestionData.length,A=0;A>>0)+"_",d=0;return Y}); l8("Symbol.iterator",function(U){if(U)return U;U=Symbol("Symbol.iterator");for(var Y="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),A=0;A0&&A>0;)if(c[--A]!=Y[--d])return!1;return d<=0}}); l8("Array.prototype.find",function(U){return U?U:function(Y,A){return P89(this,Y,A).iW}}); l8("Array.prototype.entries",function(U){return U?U:function(){return QX(this,function(Y,A){return[Y,A]})}}); l8("Array.prototype.keys",function(U){return U?U:function(){return QX(this,function(Y){return Y})}}); l8("String.prototype.startsWith",function(U){return U?U:function(Y,A){var c=pY(this,Y,"startsWith");Y+="";var d=c.length,T=Y.length;A=Math.max(0,Math.min(A|0,c.length));for(var E=0;E=T}}); l8("Number.isFinite",function(U){return U?U:function(Y){return typeof Y!=="number"?!1:!isNaN(Y)&&Y!==Infinity&&Y!==-Infinity}}); l8("String.prototype.repeat",function(U){return U?U:function(Y){var A=pY(this,null,"repeat");if(Y<0||Y>1342177279)throw new RangeError("Invalid count value");Y|=0;for(var c="";Y;)if(Y&1&&(c+=A),Y>>>=1)A+=A;return c}}); l8("Object.entries",function(U){return U?U:function(Y){var A=[],c;for(c in Y)$l(Y,c)&&A.push([c,Y[c]]);return A}}); l8("Array.from",function(U){return U?U:function(Y,A,c){A=A!=null?A:function(L){return L}; var d=[],T=typeof Symbol!="undefined"&&Symbol.iterator&&Y[Symbol.iterator];if(typeof T=="function"){Y=T.call(Y);for(var E=0;!(T=Y.next()).done;)d.push(A.call(c,T.value,E++))}else for(T=Y.length,E=0;E>>16&65535)*d+c*(A>>>16&65535)<<16>>>0)|0}}); l8("Math.trunc",function(U){return U?U:function(Y){Y=Number(Y);if(isNaN(Y)||Y===Infinity||Y===-Infinity||Y===0)return Y;var A=Math.floor(Math.abs(Y));return Y<0?-A:A}}); l8("Math.clz32",function(U){return U?U:function(Y){Y=Number(Y)>>>0;if(Y===0)return 32;var A=0;(Y&4294901760)===0&&(Y<<=16,A+=16);(Y&4278190080)===0&&(Y<<=8,A+=8);(Y&4026531840)===0&&(Y<<=4,A+=4);(Y&3221225472)===0&&(Y<<=2,A+=2);(Y&2147483648)===0&&A++;return A}}); l8("Number.isNaN",function(U){return U?U:function(Y){return typeof Y==="number"&&isNaN(Y)}}); l8("Array.prototype.values",function(U){return U?U:function(){return QX(this,function(Y,A){return A})}}); l8("Array.prototype.fill",function(U){return U?U:function(Y,A,c){var d=this.length||0;A<0&&(A=Math.max(0,d+A));if(c==null||c>d)c=d;c=Number(c);c<0&&(c=Math.max(0,d+c));for(A=Number(A||0);A0&&A?A.repeat(Math.ceil(Y/A.length)).substring(0,Y):"")+c}}); l8("Array.prototype.findIndex",function(U){return U?U:function(Y,A){return P89(this,Y,A).bJ}}); l8("Promise.prototype.finally",function(U){return U?U:function(Y){return this.then(function(A){return Promise.resolve(Y()).then(function(){return A})},function(A){return Promise.resolve(Y()).then(function(){throw A; })})}}); l8("Math.sign",function(U){return U?U:function(Y){Y=Number(Y);return Y===0||isNaN(Y)?Y:Y>0?1:-1}}); l8("WeakSet",function(U){function Y(A){this.Y=new WeakMap;if(A){A=g.J(A);for(var c;!(c=A.next()).done;)this.add(c.value)}} if(function(){if(!U||!Object.seal)return!1;try{var A=Object.seal({}),c=Object.seal({}),d=new U([A]);if(!d.has(A)||d.has(c))return!1;d.delete(A);d.add(c);return!d.has(A)&&d.has(c)}catch(T){return!1}}())return U; Y.prototype.add=function(A){this.Y.set(A,!0);return this}; Y.prototype.has=function(A){return this.Y.has(A)}; Y.prototype.delete=function(A){return this.Y.delete(A)}; return Y}); l8("Array.prototype.copyWithin",function(U){function Y(A){A=Number(A);return A===Infinity||A===-Infinity?A:A|0} return U?U:function(A,c,d){var T=this.length;A=Y(A);c=Y(c);d=d===void 0?T:Y(d);A=A<0?Math.max(T+A,0):Math.min(A,T);c=c<0?Math.max(T+c,0):Math.min(c,T);d=d<0?Math.max(T+d,0):Math.min(d,T);if(Ac;)--d in this?this[--A]=this[d]:delete this[--A];return this}}); l8("Int8Array.prototype.copyWithin",mX);l8("Uint8Array.prototype.copyWithin",mX);l8("Uint8ClampedArray.prototype.copyWithin",mX);l8("Int16Array.prototype.copyWithin",mX);l8("Uint16Array.prototype.copyWithin",mX);l8("Int32Array.prototype.copyWithin",mX);l8("Uint32Array.prototype.copyWithin",mX);l8("Float32Array.prototype.copyWithin",mX);l8("Float64Array.prototype.copyWithin",mX);l8("Array.prototype.at",function(U){return U?U:gX}); l8("Int8Array.prototype.at",yX);l8("Uint8Array.prototype.at",yX);l8("Uint8ClampedArray.prototype.at",yX);l8("Int16Array.prototype.at",yX);l8("Uint16Array.prototype.at",yX);l8("Int32Array.prototype.at",yX);l8("Uint32Array.prototype.at",yX);l8("Float32Array.prototype.at",yX);l8("Float64Array.prototype.at",yX);l8("String.prototype.at",function(U){return U?U:gX}); l8("Array.prototype.findLastIndex",function(U){return U?U:function(Y,A){return VSE(this,Y,A).bJ}}); l8("Int8Array.prototype.findLastIndex",nY);l8("Uint8Array.prototype.findLastIndex",nY);l8("Uint8ClampedArray.prototype.findLastIndex",nY);l8("Int16Array.prototype.findLastIndex",nY);l8("Uint16Array.prototype.findLastIndex",nY);l8("Int32Array.prototype.findLastIndex",nY);l8("Uint32Array.prototype.findLastIndex",nY);l8("Float32Array.prototype.findLastIndex",nY);l8("Float64Array.prototype.findLastIndex",nY);l8("Number.parseInt",function(U){return U||parseInt});var ne,Aq,$44;ne=ne||{};g.Dc=this||self;Aq="closure_uid_"+(Math.random()*1E9>>>0);$44=0;g.rL(lw,Error);lw.prototype.name="CustomError";var ffS;var NXE,ym,Cx;NXE=Array.prototype.indexOf?function(U,Y){return Array.prototype.indexOf.call(U,Y,void 0)}:function(U,Y){if(typeof U==="string")return typeof Y!=="string"||Y.length!=1?-1:U.indexOf(Y,0); for(var A=0;A=0;A--)if(A in U&&U[A]===Y)return A;return-1}; g.MF=Array.prototype.forEach?function(U,Y,A){Array.prototype.forEach.call(U,Y,A)}:function(U,Y,A){for(var c=U.length,d=typeof U==="string"?U.split(""):U,T=0;T=.3:this.zN>=.5};var $R={alY:0,O5y:1},aRX={NONE:0,F9X:1,fkv:2};var bYX="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");dg.prototype.getValue=function(){return this.T}; g.w(Td,dg);Td.prototype.W=function(U){this.T===null&&g.uw(this.j,U)&&(this.T=U)}; g.w(E8,dg);E8.prototype.W=function(U){this.T===null&&typeof U==="number"&&(this.T=U)}; g.w(ot,dg);ot.prototype.W=function(U){this.T===null&&typeof U==="string"&&(this.T=U)};La.prototype.disable=function(){this.T=!1}; La.prototype.enable=function(){this.T=!0}; La.prototype.isEnabled=function(){return this.T}; La.prototype.reset=function(){this.Y={};this.T=!0;this.W={}};var YW=document,lx=window;var C8o=q4(1,!0),eL=q4(610401301,!1);q4(899588437,!1);q4(725719775,!1);var UFI=q4(513659523,!1),YOw=q4(568333945,!1),fjE=q4(1331761403,!1);q4(651175828,!1);q4(722764542,!1);q4(748402145,!1);var KGY=q4(1981196515,!1);q4(2147483644,!1);q4(2147483645,!1);q4(2147483646,C8o);q4(2147483647,!0);var BG=!!g.u8("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var ih=String.prototype.trim?function(U){return U.trim()}:function(U){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(U)[1]},LTV=/&/g,rq3=//g,Pw8=/"/g,VzX=/'/g,$Fl=/\x00/g,zoS=/[\x00&<>"']/;var Xv,Aqf=g.Dc.navigator;Xv=Aqf?Aqf.userAgentData||null:null;var KX3=globalThis.trustedTypes,MV;pa.prototype.toString=function(){return this.Y+""};O8.prototype.toString=function(){return this.Y}; var UFE=new O8("about:invalid#zClosurez");var uy4=y9("tel"),DHY=y9("sms"),C8V=[y9("data"),y9("http"),y9("https"),y9("mailto"),y9("ftp"),new gg(function(U){return/^[^:]*([/?#]|$)/.test(U)})],YO8=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;qV.prototype.toString=function(){return this.Y+""};df.prototype.toString=function(){return this.Y+""};LR.prototype.toString=function(){return this.Y};var ll={};g.cqw=String.prototype.repeat?function(U,Y){return U.repeat(Y)}:function(U,Y){return Array(Y+1).join(U)};tU[" "]=function(){};var bp,dZ,nYc,dFY,TLO,Ezq,BI,Xp,ozo;g.k1=xR();g.vF=glE();g.IE=Rt("Edge");g.AG=g.IE||g.vF;bp=Rt("Gecko")&&!(wg(g.tF(),"WebKit")&&!Rt("Edge"))&&!(Rt("Trident")||Rt("MSIE"))&&!Rt("Edge");g.DH=wg(g.tF(),"WebKit")&&!Rt("Edge");dZ=Ns();nYc=ijc();g.UI=wWX();dFY=FG();TLO=Rt("iPad");Ezq=Rt("iPod");BI=jF();Xp=wg(g.tF(),"KaiOS"); a:{var zoz="",LTo=function(){var U=g.tF();if(bp)return/rv:([^\);]+)(\)|;)/.exec(U);if(g.IE)return/Edge\/([\d\.]+)/.exec(U);if(g.vF)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(U);if(g.DH)return/WebKit\/(\S+)/.exec(U);if(g.k1)return/(?:Version)[ \/]?(\S+)/.exec(U)}(); LTo&&(zoz=LTo?LTo[1]:"");if(g.vF){var qH,rqW=g.Dc.document;qH=rqW?rqW.documentMode:void 0;if(qH!=null&&qH>parseFloat(zoz)){ozo=String(qH);break a}}ozo=zoz}var NLY=ozo,FTY={};var Kl,qL;g.K1=s8();Kl=FG()||Rt("iPod");qL=Rt("iPad");g.Ry=nlc();g.Sf=hF();g.iW=SL()&&!jF();var s3Y=!g.vF&&!SL();g.W=g.RH.prototype;g.W.clone=function(){return new g.RH(this.x,this.y)}; g.W.equals=function(U){return U instanceof g.RH&&aH(this,U)}; g.W.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.W.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.W.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.W.translate=function(U,Y){U instanceof g.RH?(this.x+=U.x,this.y+=U.y):(this.x+=Number(U),typeof Y==="number"&&(this.y+=Y));return this}; g.W.scale=function(U,Y){this.x*=U;this.y*=typeof Y==="number"?Y:U;return this};g.W=g.xn.prototype;g.W.clone=function(){return new g.xn(this.width,this.height)}; g.W.aspectRatio=function(){return this.width/this.height}; g.W.isEmpty=function(){return!fR(this)}; g.W.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.W.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.W.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.W.scale=function(U,Y){this.width*=U;this.height*=typeof Y==="number"?Y:U;return this};SF.prototype.toString=function(){return this.Y}; var hU={};new SF(hU,"");var BL3=/^[a-z][a-z\d-]*$/i,XWX="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),RoX="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),xF8=["action","formaction","href"];var hoV={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.W=bl.prototype;g.W.jc=function(U){return ZH(this.Y,U)}; g.W.getElementsByTagName=function(U,Y){return(Y||this.Y).getElementsByTagName(String(U))}; g.W.As=function(U){return g.y7(U,this.Y)}; g.W.setProperties=nR;g.W.createElement=function(U){return ul(this.Y,U)}; g.W.appendChild=g.UU;g.W.append=function(U,Y){pWv(pR(U),U,arguments,1)}; g.W.canHaveChildren=function(U){if(U.nodeType!=1)return!1;switch(U.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.W.removeNode=g.c4;g.W.getChildren=function(U){return U.children!=void 0?U.children:Array.prototype.filter.call(U.childNodes,function(Y){return Y.nodeType==1})}; g.W.contains=g.dv;zH.prototype.now=function(){return 0}; zH.prototype.T=function(){return 0}; zH.prototype.W=function(){return 0}; zH.prototype.Y=function(){return 0};g.w(rv,zH);rv.prototype.now=function(){return LC()&&lx.performance.now?lx.performance.now():zH.prototype.now.call(this)}; rv.prototype.T=function(){return LC()&&lx.performance.memory?lx.performance.memory.totalJSHeapSize||0:zH.prototype.T.call(this)}; rv.prototype.W=function(){return LC()&&lx.performance.memory?lx.performance.memory.usedJSHeapSize||0:zH.prototype.W.call(this)}; rv.prototype.Y=function(){return LC()&&lx.performance.memory?lx.performance.memory.jsHeapSizeLimit||0:zH.prototype.Y.call(this)};var gzv=$J(function(){var U=!1;try{var Y=Object.defineProperty({},"passive",{get:function(){U=!0}}); g.Dc.addEventListener("test",null,Y)}catch(A){}return U});yqc.prototype.isVisible=function(){return wv(YW)===1};var UsX=ix(function(U){return typeof U==="number"}),Chc=ix(function(U){return typeof U==="string"}),Ynv=ix(function(U){return typeof U==="boolean"}),GI=ix(function(U){return U!=null&&typeof U==="object"&&typeof U.then==="function"}),HZ=ix(function(U){return!!U&&(typeof U==="object"||typeof U==="function")});var xD3=function(){if(!g.Dc.addEventListener||!Object.defineProperty)return!1;var U=!1,Y=Object.defineProperty({},"passive",{get:function(){U=!0}}); try{var A=function(){}; g.Dc.addEventListener("test",A,Y);g.Dc.removeEventListener("test",A,Y)}catch(c){}return U}();var WlY=DF8("AnimationEnd"),VA=DF8("TransitionEnd");var uIE=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),cF3=/#|$/,dVX=/[?&]($|#)/;var ERX={GhI:"allow-forms",yaJ:"allow-modals",gCs:"allow-orientation-lock",OFv:"allow-pointer-lock",dWr:"allow-popups",zLw:"allow-popups-to-escape-sandbox",mWJ:"allow-presentation",tow:"allow-same-origin",bFJ:"allow-scripts",BVX:"allow-top-navigation",fGY:"allow-top-navigation-by-user-activation"},rFY=$J(function(){return oRY()});var $Vv=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");pC.prototype.GN=function(U,Y,A){U=U+"//"+Y+A;var c=Wa9(this)-A.length;if(c<0)return"";this.Y.sort(function(l,P){return l-P}); A=null;Y="";for(var d=0;d=r.length){c-=r.length;U+=r;Y=this.W;break}A=A==null?T:A}}c="";A!=null&&(c=""+Y+"trn="+A);return U+c};DR.prototype.setInterval=function(U,Y){return lx.setInterval(U,Y)}; DR.prototype.clearInterval=function(U){lx.clearInterval(U)}; DR.prototype.setTimeout=function(U,Y){return lx.setTimeout(U,Y)}; DR.prototype.clearTimeout=function(U){lx.clearTimeout(U)};var Wc=void 0,Ge,IH3=typeof TextDecoder!=="undefined",kdS,XGS=typeof String.prototype.isWellFormed==="function",BgX=typeof TextEncoder!=="undefined";var fzc={},cB=null,hU4=bp||g.DH||typeof g.Dc.btoa=="function";var yF3=typeof Uint8Array!=="undefined",QtV=!g.vF&&typeof btoa==="function",ZaX=/[-_.]/g,baX={"-":"+",_:"/",".":"="},T5={};da.prototype.isEmpty=function(){return this.Y==null}; da.prototype.sizeBytes=function(){var U=o1(this);return U?U.length:0}; var gRV;var nRY=void 0;var lm=typeof Symbol==="function"&&typeof Symbol()==="symbol",lfz=ra("jas",void 0,!0),b3=ra(void 0,"1oa"),YZ=ra(void 0,Symbol()),Pww=ra(void 0,"0ub"),RZE=ra(void 0,"0actk"),qp=ra("m_m","VrY",!0),Nf3=ra(void 0,"vps");Math.max.apply(Math,g.X(Object.values({fMf:1,Boy:2,bXy:4,dky:8,OmE:16,SRy:32,llW:64,VDr:128,tDr:256,Xis:512,B9n:1024,XgT:2048,hXv:4096,qxT:8192})));var uvv={FYv:{value:0,configurable:!0,writable:!0,enumerable:!1}},IzV=Object.defineProperties,PB=lm?lfz:"FYv",XP,VzT=[];$K(VzT,55);XP=Object.freeze(VzT);var C2={},HB={},hZX=Object.freeze({}),wa={};var FL=typeof g.Dc.BigInt==="function"&&typeof g.Dc.BigInt(0)==="bigint";var o3=ix(function(U){return FL?U>=$Fz&&U<=vzw:U[0]==="-"?AUl(U,Hjq):AUl(U,Goo)}),Hjq=Number.MIN_SAFE_INTEGER.toString(),$Fz=FL?BigInt(Number.MIN_SAFE_INTEGER):void 0,Goo=Number.MAX_SAFE_INTEGER.toString(),vzw=FL?BigInt(Number.MAX_SAFE_INTEGER):void 0;var ms3=typeof Uint8Array.prototype.slice==="function",Np=0,tp=0,w4X;var ZW=typeof BigInt==="function"?BigInt.asIntN:void 0,G$X=typeof BigInt==="function"?BigInt.asUintN:void 0,n2=Number.isSafeInteger,hp=Number.isFinite,DW=Math.trunc,onX=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var tF8={};var Tl;var r$,eZY;var MF8=jo(0);g.W=ZR8.prototype;g.W.init=function(U,Y,A,c){var d=c===void 0?{}:c;c=d.BB===void 0?!1:d.BB;d=d.NZ===void 0?!1:d.NZ;this.BB=c;this.NZ=d;U&&(U=cc(U,this.NZ),this.T=U.buffer,this.K=U.J7,this.j=Y||0,this.W=A!==void 0?this.j+A:this.T.length,this.Y=this.j)}; g.W.free=function(){this.clear();Pc.length<100&&Pc.push(this)}; g.W.clear=function(){this.T=null;this.K=!1;this.Y=this.W=this.j=0;this.BB=!1}; g.W.reset=function(){this.Y=this.j}; g.W.AB=function(){var U=this.J;U||(U=this.T,U=this.J=new DataView(U.buffer,U.byteOffset,U.byteLength));return U}; var Pc=[];VJ.prototype.free=function(){this.Y.clear();this.T=this.j=-1;$H.length<100&&$H.push(this)}; VJ.prototype.reset=function(){this.Y.reset();this.W=this.Y.Y;this.T=this.j=-1}; var $H=[];ik.prototype.toJSON=function(){return LG(this)}; ik.prototype.jS=function(U){return JSON.stringify(LG(this,U))}; ik.prototype.clone=function(){var U=this,Y=U.PZ;U=new U.constructor(E2(Y,Y[PB]|0,VW,!0,!0));vB(U.PZ);return U}; ik.prototype.J7=function(){return G5(this)}; ik.prototype[qp]=C2;ik.prototype.toString=function(){return this.PZ.toString()};var qn3,UwV;NA.prototype.length=function(){return this.Y.length}; NA.prototype.end=function(){var U=this.Y;this.Y=[];return U};var xH=ax(),WTI=ax(),wWY=ax(),ijm=ax(),JqW=ax(),FTj=ax(),jmI=ax(),NLj=ax();var Lkc=f6(function(U,Y,A,c,d){if(U.T!==2)return!1;Hc(U,pG(Y,c,A),d);return!0},zV4),rD3=f6(function(U,Y,A,c,d){if(U.T!==2)return!1; Hc(U,pG(Y,c,A),d);return!0},zV4),go=Symbol(),p6=Symbol(),OY=Symbol(),HCl=Symbol(),VIX=Symbol(),h7,SP;var tzj=K6(function(U,Y,A){if(U.T!==1)return!1;C6(Y,A,ro(U.Y));return!0},UF,jmI),eof=K6(function(U,Y,A){if(U.T!==1)return!1; U=ro(U.Y);C6(Y,A,U===0?void 0:U);return!0},UF,jmI),BLW=K6(function(U,Y,A,c){if(U.T!==1)return!1; Sg(Y,A,c,ro(U.Y));return!0},UF,jmI),XWY=K6(function(U,Y,A){if(U.T!==0)return!1; C6(Y,A,EY(U.Y));return!0},YO,JqW),koL=K6(function(U,Y,A){if(U.T!==0)return!1; U=EY(U.Y);C6(Y,A,U===0?void 0:U);return!0},YO,JqW),RoT=K6(function(U,Y,A,c){if(U.T!==0)return!1; Sg(Y,A,c,EY(U.Y));return!0},YO,JqW),afj=K6(function(U,Y,A){if(U.T!==0)return!1; C6(Y,A,ox(U.Y));return!0},Am,ijm),xFw=K6(function(U,Y,A){if(U.T!==0)return!1; U=ox(U.Y);C6(Y,A,U===0?void 0:U);return!0},Am,ijm),smw=K6(function(U,Y,A,c){if(U.T!==0)return!1; Sg(Y,A,c,ox(U.Y));return!0},Am,ijm),ffz=K6(function(U,Y,A){if(U.T!==1)return!1; C6(Y,A,L6(U.Y));return!0},function(U,Y,A){EJv(U,A,W29(Y))},FTj),hoo=qA(function(U,Y,A){if(U.T!==1&&U.T!==2)return!1; Y=a3(Y,Y[PB]|0,A);if(U.T==2)for(A=ox(U.Y)>>>0,A=U.Y.Y+A;U.Y.Y>>0);return!0},function(U,Y,A){Y=p2(Y); Y!=null&&Y!=null&&(kH(U,A,0),eP(U.Y,Y))},ax()),Ojq=K6(function(U,Y,A){if(U.T!==0)return!1; C6(Y,A,ox(U.Y));return!0},function(U,Y,A){Y=bm(Y); Y!=null&&(Y=parseInt(Y,10),kH(U,A,0),ADc(U.Y,Y))},ax());Nvc.prototype.register=function(){tU(this)};g.w(EF,ik);EF.prototype.T=tIY([0,eof,koL,-2,xFw]);var xwl={Xmy:1,gE:2,QiE:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};fRl.prototype.sS=function(U){if(typeof U==="string"&&U.length!=0){var Y=this.Jb;if(Y.T){U=U.split("&");for(var A=U.length-1;A>=0;A--){var c=U[A].split("="),d=decodeURIComponent(c[0]);c.length>1?(c=decodeURIComponent(c[1]),c=/^[0-9]+$/g.exec(c)?parseInt(c,10):c):c=1;(d=Y.Y[d])&&d.W(c)}}}};var dG=null;var Py=g.Dc.performance,mFL=!!(Py&&Py.mark&&Py.measure&&Py.clearMarks),rT=$J(function(){var U;if(U=mFL){var Y=Y===void 0?window:Y;if(dG===null){dG="";try{U="";try{U=Y.top.location.hash}catch(c){U=Y.location.hash}if(U){var A=U.match(/\bdeid=([\d,]+)/);dG=A?A[1]:""}}catch(c){}}Y=dG;U=!!Y.indexOf&&Y.indexOf("1337")>=0}return U}); lp.prototype.disable=function(){this.Y=!1;this.events!==this.T.google_js_reporting_queue&&(rT()&&g.MF(this.events,Qw4),this.events.length=0)}; lp.prototype.start=function(U,Y){if(!this.Y)return null;var A=bC4()||MI8();U=new p43(U,Y,A);Y="goog_"+U.label+"_"+U.uniqueId+"_start";Py&&rT()&&Py.mark(Y);return U}; lp.prototype.end=function(U){if(this.Y&&typeof U.value==="number"){var Y=bC4()||MI8();U.duration=Y-U.value;Y="goog_"+U.label+"_"+U.uniqueId+"_end";Py&&rT()&&Py.mark(Y);!this.Y||this.events.length>2048||this.events.push(U)}};ZC9.prototype.bj=function(U,Y,A,c,d){d=d||this.LY;try{var T=new pC;T.Y.push(1);T.T[1]=Qm("context",U);Y.error&&Y.meta&&Y.id||(Y=new Hy(GU(Y)));if(Y.msg){var E=Y.msg.substring(0,512);T.Y.push(2);T.T[2]=Qm("msg",E)}var L=Y.meta||{};if(this.Wc)try{this.Wc(L)}catch(H){}if(c)try{c(L)}catch(H){}c=[L];T.Y.push(3);T.T[3]=c;var r=Ha8();if(r.T){var l=r.T.url||"";T.Y.push(4);T.T[4]=Qm("top",l)}var P={url:r.Y.url||""};if(r.Y.url){var V=g.Nw(r.Y.url);var v=jI(V[1],null,V[3],V[4])}else v="";l=[P,{url:v}];T.Y.push(5); T.T[5]=l;hVc(this.Y,d,T,A)}catch(H){try{hVc(this.Y,d,{context:"ecmserr",rctx:U,msg:GU(H),url:r&&r.Y.url},A)}catch(G){}}return this.F6}; g.w(Hy,SUc);var $O,vy,VR=new lp;$O=new function(){var U="https:";lx&&lx.location&&lx.location.protocol==="http:"&&(U="http:");this.T=U;this.Y=.01}; vy=new ZC9;lx&&lx.document&&(lx.document.readyState=="complete"?mwX():VR.Y&&W4(lx,"load",function(){mwX()}));var nJ3=Date.now(),NP=-1,FB=-1,zJV,tm=-1,jE=!1;g.W=eE.prototype;g.W.getHeight=function(){return this.bottom-this.top}; g.W.clone=function(){return new eE(this.top,this.right,this.bottom,this.left)}; g.W.contains=function(U){return this&&U?U instanceof eE?U.left>=this.left&&U.right<=this.right&&U.top>=this.top&&U.bottom<=this.bottom:U.x>=this.left&&U.x<=this.right&&U.y>=this.top&&U.y<=this.bottom:!1}; g.W.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.W.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.W.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.W.translate=function(U,Y){U instanceof g.RH?(this.left+=U.x,this.right+=U.x,this.top+=U.y,this.bottom+=U.y):(this.left+=U,this.right+=U,typeof Y==="number"&&(this.top+=Y,this.bottom+=Y));return this}; g.W.scale=function(U,Y){Y=typeof Y==="number"?Y:U;this.left*=U;this.right*=U;this.top*=Y;this.bottom*=Y;return this};kO.prototype.equals=function(U,Y){return!!U&&(!(Y===void 0?0:Y)||this.volume==U.volume)&&this.W==U.W&&XB(this.Y,U.Y)&&!0};Rg.prototype.jc=function(){return this.G}; Rg.prototype.equals=function(U,Y){return this.j.equals(U.j,Y===void 0?!1:Y)&&this.G==U.G&&XB(this.W,U.W)&&XB(this.J,U.J)&&this.Y==U.Y&&this.K==U.K&&this.T==U.T&&this.Z==U.Z};var gzo={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Cu={Kf:"start",Le:"firstquartile",T8:"midpoint",eG:"thirdquartile",COMPLETE:"complete",ERROR:"error",Yk:"metric",PAUSE:"pause",Fe:"resume",In:"skip",y5:"viewable_impression",Wt:"mute",rE:"unmute",qX:"fullscreen",lZ:"exitfullscreen",Oz:"bufferstart",cF:"bufferfinish",Ez:"fully_viewable_audible_half_duration_impression",Ht:"measurable_impression",Uz:"abandon",Zd:"engagedview",Rk:"impression",mM:"creativeview",Pt:"loaded", PPf:"progress",CLOSE:"close",NFX:"collapse",fTy:"overlay_resize",NCy:"overlay_unmeasurable_impression",ZmT:"overlay_unviewable_impression",LFI:"overlay_viewable_immediate_impression",lTJ:"overlay_viewable_end_of_session_impression",bZ:"custom_metric_viewable",SJ:"audio_audible",rh:"audio_measurable",kA:"audio_impression"},wyE="start firstquartile midpoint thirdquartile resume loaded".split(" "),ixX=["start","firstquartile","midpoint","thirdquartile"],r7E=["abandon"],ia={UNKNOWN:-1,Kf:0,Le:1,T8:2, eG:3,COMPLETE:4,Yk:5,PAUSE:6,Fe:7,In:8,y5:9,Wt:10,rE:11,qX:12,lZ:13,Ez:14,Ht:15,Uz:16,Zd:17,Rk:18,mM:19,Pt:20,bZ:21,Oz:22,cF:23,kA:27,rh:28,SJ:29};var IRc={FWw:"addEventListener",Z5v:"getMaxSize",lkE:"getScreenSize",LDw:"getState",qOI:"getVersion",sFr:"removeEventListener",Nov:"isViewable"};g.W=g.fx.prototype;g.W.clone=function(){return new g.fx(this.left,this.top,this.width,this.height)}; g.W.contains=function(U){return U instanceof g.RH?U.x>=this.left&&U.x<=this.left+this.width&&U.y>=this.top&&U.y<=this.top+this.height:this.left<=U.left&&this.left+this.width>=U.left+U.width&&this.top<=U.top&&this.top+this.height>=U.top+U.height}; g.W.getSize=function(){return new g.xn(this.width,this.height)}; g.W.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.W.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.W.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.W.translate=function(U,Y){U instanceof g.RH?(this.left+=U.x,this.top+=U.y):(this.left+=U,typeof Y==="number"&&(this.top+=Y));return this}; g.W.scale=function(U,Y){Y=typeof Y==="number"?Y:U;this.left*=U;this.width*=U;this.top*=Y;this.height*=Y;return this};var Cxv={};zEV.prototype.update=function(U){U&&U.document&&(this.G=sF(!1,U,this.isMobileDevice),this.Y=sF(!0,U,this.isMobileDevice),rpY(this,U),LWl(this,U))};c7.prototype.cancel=function(){Iw().clearTimeout(this.Y);this.Y=null}; c7.prototype.schedule=function(){var U=this,Y=Iw(),A=zU().Y.Y;this.Y=Y.setTimeout(og(A,wT(143,function(){U.T++;U.W.sample()})),DwS())};g.W=d2.prototype;g.W.bk=function(){return!1}; g.W.initialize=function(){return this.isInitialized=!0}; g.W.DL=function(){return this.Y.QJ}; g.W.p6=function(){return this.Y.Pw}; g.W.x5=function(U,Y){if(!this.Pw||(Y===void 0?0:Y))this.Pw=!0,this.QJ=U,this.Z=0,this.Y!=this||E6(this)}; g.W.getName=function(){return this.Y.kE}; g.W.XE=function(){return this.Y.A9()}; g.W.A9=function(){return{}}; g.W.FF=function(){return this.Y.Z}; g.W.u2=function(){var U=U6();U.Y=sF(!0,this.W,U.isMobileDevice)}; g.W.Qw=function(){LWl(U6(),this.W)}; g.W.cn=function(){return this.j.Y}; g.W.sample=function(){}; g.W.isActive=function(){return this.Y.J}; g.W.yj=function(U){var Y=this.Y;this.Y=U.FF()>=this.Z?U:this;Y!==this.Y?(this.J=this.Y.J,E6(this)):this.J!==this.Y.J&&(this.J=this.Y.J,E6(this))}; g.W.AQ=function(U){if(U.T===this.Y){var Y=!this.j.equals(U,this.X);this.j=U;Y&&VoX(this)}}; g.W.WN=function(){return this.X}; g.W.dispose=function(){this.jX=!0}; g.W.Ky=function(){return this.jX};g.W=oJ.prototype;g.W.observe=function(){return!0}; g.W.unobserve=function(){}; g.W.tv=function(U){this.K=U}; g.W.dispose=function(){if(!this.Ky()){var U=this.T;g.wL(U.K,this);U.X&&this.WN()&&PmS(U);this.unobserve();this.ov=!0}}; g.W.Ky=function(){return this.ov}; g.W.XE=function(){return this.T.XE()}; g.W.FF=function(){return this.T.FF()}; g.W.DL=function(){return this.T.DL()}; g.W.p6=function(){return this.T.p6()}; g.W.yj=function(){}; g.W.AQ=function(){this.tA()}; g.W.WN=function(){return this.jX};g.W=zy.prototype;g.W.FF=function(){return this.Y.FF()}; g.W.DL=function(){return this.Y.DL()}; g.W.p6=function(){return this.Y.p6()}; g.W.create=function(U,Y,A){var c=null;this.Y&&(c=this.WB(U,Y,A),Ty(this.Y,c));return c}; g.W.FR=function(){return this.BW()}; g.W.BW=function(){return!1}; g.W.init=function(U){return this.Y.initialize()?(Ty(this.Y,this),this.j=U,!0):!1}; g.W.yj=function(U){U.FF()==0&&this.j(U.DL(),this)}; g.W.AQ=function(){}; g.W.WN=function(){return!1}; g.W.dispose=function(){this.K=!0}; g.W.Ky=function(){return this.K}; g.W.XE=function(){return{}};Lu.prototype.add=function(U,Y,A){++this.W;U=new vKV(U,Y,A);this.Y.push(new vKV(U.T,U.Y,U.W+this.W/4096));this.T=!0;return this};i2E.prototype.toString=function(){var U="//pagead2.googlesyndication.com//pagead/gen_204",Y=lt(this.Y);Y.length>0&&(U+="?"+Y);return U};g.p.prototype.zd=!1;g.p.prototype.Ky=function(){return this.zd}; g.p.prototype.dispose=function(){this.zd||(this.zd=!0,this.Tn())}; g.p.prototype[Symbol.dispose]=function(){this.dispose()}; g.p.prototype.addOnDisposeCallback=function(U,Y){this.zd?Y!==void 0?U.call(Y):U():(this.x_||(this.x_=[]),Y&&(U=U.bind(Y)),this.x_.push(U))}; g.p.prototype.Tn=function(){if(this.x_)for(;this.x_.length;)this.x_.shift()()};$W.prototype.update=function(U,Y,A){U&&(this.Y+=Y,this.T+=Y,this.j+=Y,this.W=Math.max(this.W,this.j));if(A===void 0?!U:A)this.j=0};var to3=[1,.75,.5,.3,0];v7.prototype.update=function(U,Y,A,c,d,T){T=T===void 0?!0:T;Y=d?Math.min(U,Y):Y;for(d=0;d0&&Y>=E;E=!(U>0&&U>=E)||A;this.Y[d].update(T&&L,c,!T||E)}};JB.prototype.update=function(U,Y,A,c){this.G=this.G!=-1?Math.min(this.G,Y.zN):Y.zN;this.Hw=Math.max(this.Hw,Y.zN);this.ov=this.ov!=-1?Math.min(this.ov,Y.Yi):Y.Yi;this.QJ=Math.max(this.QJ,Y.Yi);this.VJ.update(Y.Yi,A.Yi,Y.Y,U,c);this.Uv+=U;Y.zN===0&&(this.kE+=U);this.T.update(Y.zN,A.zN,Y.Y,U,c);A=c||A.KZ!=Y.KZ?A.isVisible()&&Y.isVisible():A.isVisible();Y=!Y.isVisible()||Y.Y;this.dW.update(A,U,Y)}; JB.prototype.cK=function(){return this.dW.W>=this.qI};if(YW&&YW.URL){var yqf=YW.URL,nzo;if(nzo=!!yqf){var DFw;a:{if(yqf){var Ifz=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var TR=Ifz.exec(decodeURIComponent(yqf));if(TR){DFw=TR[1]&&TR[1].length>1?TR[1].substring(1):"true";break a}}catch(U){}}DFw=""}nzo=DFw.length>0}vy.F6=!nzo};var uII=new eE(0,0,0,0);var aVv=new eE(0,0,0,0);g.w(e$,g.p);g.W=e$.prototype; g.W.Tn=function(){if(this.eD.Y){if(this.LD.RK){var U=this.eD.Y;U.removeEventListener&&U.removeEventListener("mouseover",this.LD.RK,GH());this.LD.RK=null}this.LD.pw&&(U=this.eD.Y,U.removeEventListener&&U.removeEventListener("mouseout",this.LD.pw,GH()),this.LD.pw=null)}this.U4&&this.U4.dispose();this.fP&&this.fP.dispose();delete this.sD;delete this.BH;delete this.n$;delete this.eD.d$;delete this.eD.Y;delete this.LD;delete this.U4;delete this.fP;delete this.Jb;g.p.prototype.Tn.call(this)}; g.W.i8=function(){return this.fP?this.fP.Y:this.position}; g.W.sS=function(U){zU().sS(U)}; g.W.WN=function(){return!1}; g.W.M4=function(){return new JB}; g.W.Bg=function(){return this.sD}; g.W.uA=function(U){return hy3(this,U,1E4)}; g.W.cw=function(U,Y,A,c,d,T,E){this.F5||(this.wd&&(U=this.U6(U,A,d,E),c=c&&this.rV.zN>=(this.KZ()?.3:.5),this.Vk(T,U,c),this.f4=Y,U.zN>0&&-1===this.K$&&(this.K$=Y),this.Gw==-1&&this.cK()&&(this.Gw=Y),this.cH==-2&&(this.cH=ND(this.i8())?U.zN:-1),this.rV=U),this.BH(this))}; g.W.Vk=function(U,Y,A){this.Bg().update(U,Y,this.rV,A)}; g.W.Ws=function(){return new pj}; g.W.U6=function(U,Y,A,c){A=this.Ws();A.Y=Y;Y=Iw().T;Y=wv(YW)===0?-1:Y.isVisible()?0:1;A.T=Y;A.zN=this.qJ(U);A.KZ=this.KZ();A.Yi=c;return A}; g.W.qJ=function(U){return this.opacity===0&&PG(this.Jb,"opac")===1?0:U}; g.W.KZ=function(){return!1}; g.W.Kz=function(){return this.knW||this.ysY}; g.W.nZ=function(){Jm()}; g.W.e8=function(){Jm()}; g.W.K4=function(){return 0}; g.W.cK=function(){return this.sD.cK()}; g.W.mO=function(){var U=this.wd;U=(this.hasCompleted||this.Ky())&&!U;var Y=zU().T!==2||this.d7Y;return this.F5||Y&&U?2:this.cK()?4:3}; g.W.B8=function(){return 0};g.kW.prototype.next=function(){return g.EL}; g.EL={done:!0,value:void 0};g.kW.prototype.Km=function(){return this};g.w(ZG3,pj);var o2=mzV([void 0,1,2,3,4,8,16]),zR=mzV([void 0,4,8,16]),KTF={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:s6("p0",zR),p1:s6("p1",zR),p2:s6("p2",zR),p3:s6("p3",zR),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:xW("mtos1",[0,2,4],!1,zR),mtos2:xW("mtos2",[0,2,4],!1,zR),mtos3:xW("mtos3",[0,2,4],!1,zR),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:s6("a0",zR),a1:s6("a1",zR),a2:s6("a2",zR),a3:s6("a3",zR),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:s6("c0",zR),c1:s6("c1",zR),c2:s6("c2",zR),c3:s6("c3",zR),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:s6("qmtos",o2),qnc:s6("qnc",o2),qmv:s6("qmv",o2),qnv:s6("qnv",o2), raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:s6("ss0",zR),ss1:s6("ss1",zR),ss2:s6("ss2",zR),ss3:s6("ss3",zR),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",tm:"tm",tu:"tu"},qOF=Object.assign({},KTF,{avid:P4("audio"),avas:"avas",vs:"vs"}),Cwz={atos:"atos",avt:xW("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(U,Y){return function(A){return A[U]===void 0&&Y!==void 0?Y:A[U]}}("ss",0), t:"t"};MD.prototype.getValue=function(){return this.T}; MD.prototype.update=function(U,Y){U>=32||(this.Y&1<=.5;qP(Y.volume)&&(this.j=this.j!=-1?Math.min(this.j,Y.volume):Y.volume,this.J=Math.max(this.J,Y.volume));T&&(this.jX+=U,this.X+=d?U:0);this.Y.update(Y.zN,A.zN,Y.Y,U,c,d);this.W.update(!0,U);this.K.update(d,U);this.Pw.update(A.fullscreen,U);this.i$.update(d&&!T,U);U=Math.floor(Y.mediaTime/1E3);this.eX.update(U,Y.isVisible());this.Ly.update(U,Y.zN>=1);this.Zf.update(U, aJ(Y))}};uPX.prototype.T=function(U){this.W||(this.Y(U)?(U=oO8(this.X,this.j,U),this.K|=U,U=U==0):U=!1,this.W=U)};g.w(QM,uPX);QM.prototype.Y=function(){return!0}; QM.prototype.J=function(){return!1}; QM.prototype.getId=function(){var U=this,Y=Kj(Cu,function(A){return A==U.j}); return ia[Y].toString()}; QM.prototype.toString=function(){var U="";this.J()&&(U+="c");this.W&&(U+="s");this.K>0&&(U+=":"+this.K);return this.getId()+U};g.w(Zb,QM);Zb.prototype.T=function(U,Y){Y=Y===void 0?null:Y;Y!=null&&this.G.push(Y);QM.prototype.T.call(this,U)};g.w(O6,KA4);O6.prototype.T=function(){return null}; O6.prototype.W=function(){return[]};g.w(g2,oJ);g.W=g2.prototype;g.W.eQ=function(){if(this.element){var U=this.element,Y=this.T.Y.W;try{try{var A=Ta8(U.getBoundingClientRect())}catch(l){A=new eE(0,0,0,0)}var c=A.right-A.left,d=A.bottom-A.top,T=ApX(U,Y),E=T.x,L=T.y;var r=new eE(Math.round(L),Math.round(E+c),Math.round(L+d),Math.round(E))}catch(l){r=uII.clone()}this.W=r;this.Y=$p8(this,this.W)}}; g.W.XL=function(){this.J=this.T.j.Y}; g.W.kT=function(U){var Y=PG(this.Jb,"od")==1;return Ry3(U,this.J,this.element,Y)}; g.W.Mo=function(){this.timestamp=Jm()}; g.W.tA=function(){this.Mo();this.eQ();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var U=this.element;var Y=new g.xn(U.videoWidth,U.videoHeight);U=this.Y;var A=By(U),c=U.getHeight(),d=Y.width;Y=Y.height;d<=0||Y<=0||A<=0||c<=0||(d/=Y,Y=A/c,U=U.clone(),d>Y?(A/=d,c=(c-A)/2,c>0&&(c=U.top+c,U.top=Math.round(c),U.bottom=Math.round(c+A))):(c*=d,A=Math.round((A-c)/2),A>0&&(A=U.left+A,U.left=Math.round(A),U.right=Math.round(A+c))));this.Y=U}this.XL(); U=this.Y;A=this.J;U=U.left<=A.right&&A.left<=U.right&&U.top<=A.bottom&&A.top<=U.bottom?new eE(Math.max(U.top,A.top),Math.min(U.right,A.right),Math.min(U.bottom,A.bottom),Math.max(U.left,A.left)):new eE(0,0,0,0);A=U.top>=U.bottom||U.left>=U.right?new eE(0,0,0,0):U;U=this.T.j;Y=d=c=0;if((this.Y.bottom-this.Y.top)*(this.Y.right-this.Y.left)>0)if(this.kT(A))A=new eE(0,0,0,0);else{c=U6().j;Y=new eE(0,c.height,c.width,0);var T;c=tB(A,(T=this.K)!=null?T:this.Y);d=tB(A,U6().Y);Y=tB(A,Y)}T=A.top>=A.bottom|| A.left>=A.right?new eE(0,0,0,0):A.translate(-this.Y.left,-this.Y.top);AB()||(d=c=0);this.X=new Rg(U,this.element,this.Y,T,c,d,this.timestamp,Y)}; g.W.getName=function(){return this.T.getName()};var UVm=new eE(0,0,0,0);g.w(yM,g2);g.W=yM.prototype;g.W.observe=function(){this.j();return!0}; g.W.AQ=function(){g2.prototype.tA.call(this)}; g.W.Mo=function(){}; g.W.eQ=function(){}; g.W.tA=function(){this.j();g2.prototype.tA.call(this)}; g.W.yj=function(U){U=U.isActive();U!==this.Z&&(U?this.j():(U6().Y=new eE(0,0,0,0),this.Y=new eE(0,0,0,0),this.J=new eE(0,0,0,0),this.timestamp=-1));this.Z=U};var LE={},oH3=(LE.firstquartile=0,LE.midpoint=1,LE.thirdquartile=2,LE.complete=3,LE);g.w(Db,e$);g.W=Db.prototype;g.W.WN=function(){return!0}; g.W.QP=function(){return this.EO==2}; g.W.uA=function(U){return hy3(this,U,Math.max(1E4,this.W/3))}; g.W.cw=function(U,Y,A,c,d,T,E){var L=this,r=this.G(this)||{};g.cG(r,d);this.W=r.duration||this.W;this.X=r.isVpaid||this.X;this.kE=r.isYouTube||this.kE;Iw();this.VJ=!1;d=C3X(this,Y);q2c(this)===1&&(T=d);e$.prototype.cw.call(this,U,Y,A,c,r,T,E);this.zB&&this.zB.W&&g.MF(this.J,function(l){l.T(L)})}; g.W.Vk=function(U,Y,A){e$.prototype.Vk.call(this,U,Y,A);Ku(this).update(U,Y,this.rV,A);this.qI=aJ(this.rV)&&aJ(Y);this.QJ==-1&&this.Ly&&(this.QJ=this.Bg().W.Y);this.h_.W=0;U=this.cK();Y.isVisible()&&S$(this.h_,"vs");U&&S$(this.h_,"vw");qP(Y.volume)&&S$(this.h_,"am");aJ(Y)?S$(this.h_,"a"):S$(this.h_,"mut");this.L7&&S$(this.h_,"f");Y.T!=-1&&(S$(this.h_,"bm"),Y.T==1&&(S$(this.h_,"b"),aJ(Y)&&S$(this.h_,"umutb")));aJ(Y)&&Y.isVisible()&&S$(this.h_,"avs");this.qI&&U&&S$(this.h_,"avw");Y.zN>0&&S$(this.h_, "pv");qD(this,this.Bg().W.Y,!0)&&S$(this.h_,"gdr");w2(this.Bg().T,1)>=2E3&&S$(this.h_,"pmx");this.VJ&&S$(this.h_,"tvoff")}; g.W.M4=function(){return new bt}; g.W.Bg=function(){return this.sD}; g.W.Ws=function(){return new ZG3}; g.W.U6=function(U,Y,A,c){U=e$.prototype.U6.call(this,U,Y,A,c===void 0?-1:c);U.fullscreen=this.L7;U.paused=this.QP();U.volume=A.volume;qP(U.volume)||(this.ws++,Y=this.rV,qP(Y.volume)&&(U.volume=Y.volume));A=A.currentTime;U.mediaTime=A!==void 0&&A>=0?A:-1;return U}; g.W.qJ=function(U){return U6(),this.L7?1:e$.prototype.qJ.call(this,U)}; g.W.K4=function(){return 1}; g.W.getDuration=function(){return this.W}; g.W.mO=function(){return this.F5?2:YYX(this)?5:this.cK()?4:3}; g.W.B8=function(){return this.i$?this.Bg().K.W>=2E3?4:3:2}; g.W.tv=function(U){this.fP&&this.fP.tv(U)};var Y8z=g.om();WSc.prototype.reset=function(){this.Y=[];this.T=[]}; var dd=nC(WSc);g.w(zJ,zy);g.W=zJ.prototype;g.W.getName=function(){return(this.T?this.T:this.Y).getName()}; g.W.XE=function(){return(this.T?this.T:this.Y).XE()}; g.W.FF=function(){return(this.T?this.T:this.Y).FF()}; g.W.init=function(U){var Y=!1;(0,g.MF)(this.W,function(A){A.initialize()&&(Y=!0)}); Y&&(this.j=U,Ty(this.Y,this));return Y}; g.W.dispose=function(){(0,g.MF)(this.W,function(U){U.dispose()}); zy.prototype.dispose.call(this)}; g.W.FR=function(){return Cx(this.W,function(U){return U.bk()})}; g.W.BW=function(){return Cx(this.W,function(U){return U.bk()})}; g.W.WB=function(U,Y,A){return new g2(U,this.Y,Y,A)}; g.W.AQ=function(U){this.T=U.T};var BoY={threshold:[0,.3,.5,.75,1]};g.w(Li,g2);g.W=Li.prototype;g.W.observe=function(){var U=this;this.Hw||(this.Hw=Jm());if(yDY(298,function(){return Xcv(U)}))return!0; this.T.x5("msf");return!1}; g.W.unobserve=function(){if(this.j&&this.element)try{this.j.unobserve(this.element),this.Z?(this.Z.unobserve(this.element),this.Z=null):this.G&&(this.G.disconnect(),this.G=null)}catch(U){}}; g.W.tA=function(){var U=rd(this);U.length>0&&la(this,U);g2.prototype.tA.call(this)}; g.W.eQ=function(){}; g.W.kT=function(){return!1}; g.W.XL=function(){}; g.W.XE=function(){var U={};return Object.assign(this.T.XE(),(U.niot_obs=this.Hw,U.niot_cbk=this.Pw,U))}; g.W.getName=function(){return"nio"};g.w(Po,zy);Po.prototype.getName=function(){return"nio"}; Po.prototype.BW=function(){return!U6().T&&this.Y.Y.W.IntersectionObserver!=null}; Po.prototype.WB=function(U,Y,A){return new Li(U,this.Y,Y,A)};g.w(VN,d2);VN.prototype.cn=function(){return U6().Y}; VN.prototype.bk=function(){var U=RJc();this.Z!==U&&(this.Y!=this&&U>this.Y.Z&&(this.Y=this,E6(this)),this.Z=U);return U==2};$t.prototype.sample=function(){GJ(this,TJ(),!1)}; $t.prototype.j=function(){var U=AB(),Y=Jm();U?(jE||(NP=Y,g.MF(dd.Y,function(A){var c=A.Bg();c.yJ=pu(c,Y,A.EO!=1)})),jE=!0):(this.G=hJY(this,Y),jE=!1,zJV=Y,g.MF(dd.Y,function(A){A.wd&&(A.Bg().Z=Y)})); GJ(this,TJ(),!U)}; var vo=nC($t);var MP9=null,QN="",pi=!1;var Qxv=pcX().Ty,wd=pcX().Wf;var mAX={ddY:"visible",xAs:"audible",wSX:"time",PGY:"timetype"},gHY={visible:function(U){return/^(100|[0-9]{1,2})$/.test(U)}, audible:function(U){return U=="0"||U=="1"}, timetype:function(U){return U=="mtos"||U=="tos"}, time:function(U){return/^(100|[0-9]{1,2})%$/.test(U)||/^([0-9])+ms$/.test(U)}}; O68.prototype.setTime=function(U,Y,A){Y=="ms"?(this.W=U,this.j=-1):(this.W=-1,this.j=U);this.K=A===void 0?"tos":A;return this};g.w(jC,QM);jC.prototype.getId=function(){return this.G}; jC.prototype.J=function(){return!0}; jC.prototype.Y=function(U){var Y=U.Bg(),A=U.getDuration();return Cx(this.Z,function(c){if(c.Y!=void 0)var d=nH8(c,Y);else b:{switch(c.K){case "mtos":d=c.T?Y.K.W:Y.W.Y;break b;case "tos":d=c.T?Y.K.Y:Y.W.Y;break b}d=0}d==0?c=!1:(c=c.W!=-1?c.W:A!==void 0&&A>0?c.j*A:-1,c=c!=-1&&d>=c);return c})};g.w(Nn,y1E);Nn.prototype.Y=function(U){var Y=new gZX;Y.Y=hB(U,KTF);Y.T=hB(U,Cwz);return Y};g.w(t6,QM);t6.prototype.Y=function(U){return YYX(U)};g.w(eC,KA4);g.w(Bo,QM);Bo.prototype.Y=function(U){return U.Bg().cK()};g.w(X$,Zb);X$.prototype.Y=function(U){var Y=g.Go(this.G,PG(zU().Jb,"ovms"));return!U.F5&&(U.EO!=0||Y)};g.w(kt,eC);kt.prototype.T=function(){return new X$(this.Y)}; kt.prototype.W=function(){return[new Bo("viewable_impression",this.Y),new t6(this.Y)]};g.w(Rq,yM);Rq.prototype.j=function(){var U=g.u8("ima.admob.getViewability"),Y=PG(this.Jb,"queryid");typeof U==="function"&&Y&&U(Y)}; Rq.prototype.getName=function(){return"gsv"};g.w(aq,zy);aq.prototype.getName=function(){return"gsv"}; aq.prototype.BW=function(){var U=U6();zU();return U.T&&!1}; aq.prototype.WB=function(U,Y,A){return new Rq(this.Y,Y,A)};g.w(xt,yM);xt.prototype.j=function(){var U=this,Y=g.u8("ima.bridge.getNativeViewability"),A=PG(this.Jb,"queryid");typeof Y==="function"&&A&&Y(A,function(c){g.qF(c)&&U.G++;var d=c.opt_nativeViewVisibleBounds||{},T=c.opt_nativeViewHidden;U.Y=EKc(c.opt_nativeViewBounds||{});var E=U.T.j;E.Y=T?UVm.clone():EKc(d);U.timestamp=c.opt_nativeTime||-1;U6().Y=E.Y;c=c.opt_nativeVolume;c!==void 0&&(E.volume=c)})}; xt.prototype.getName=function(){return"nis"};g.w(sR,zy);sR.prototype.getName=function(){return"nis"}; sR.prototype.BW=function(){var U=U6();zU();return U.T&&!1}; sR.prototype.WB=function(U,Y,A){return new xt(this.Y,Y,A)};g.w(fi,d2);g.W=fi.prototype;g.W.bk=function(){return this.T.JW!=null}; g.W.A9=function(){var U={};this.eX&&(U.mraid=this.eX);this.ov&&(U.mlc=1);U.mtop=this.T.XaY;this.G&&(U.mse=this.G);this.Uv&&(U.msc=1);U.mcp=this.T.compatibility;return U}; g.W.vU=function(U){var Y=g.SS.apply(1,arguments);try{return this.T.JW[U].apply(this.T.JW,Y)}catch(A){ip(538,A,.01,function(c){c.method=U})}}; g.W.initialize=function(){var U=this;if(this.isInitialized)return!this.p6();this.isInitialized=!0;if(this.T.compatibility===2)return this.G="ng",this.x5("w"),!1;if(this.T.compatibility===1)return this.G="mm",this.x5("w"),!1;U6().Z=!0;this.W.document.readyState&&this.W.document.readyState=="complete"?KSc(this):j$(this.W,"load",function(){Iw().setTimeout(wT(292,function(){return KSc(U)}),100)},292); return!0}; g.W.u2=function(){var U=U6(),Y=AmY(this,"getMaxSize");U.Y=new eE(0,Y.width,Y.height,0)}; g.W.Qw=function(){U6().j=AmY(this,"getScreenSize")}; g.W.dispose=function(){Ck8(this);d2.prototype.dispose.call(this)};var kHX=new function(U,Y){this.key=U;this.defaultValue=Y===void 0?!1:Y;this.valueType="boolean"}("45378663");g.W=SC.prototype;g.W.D1=function(U){Xj(U,!1);FSl(U)}; g.W.A5=function(){}; g.W.tZ=function(U,Y,A,c){var d=this;U=new Db(lx,U,A?Y:-1,7,this.ir(),this.SZ());U.FP=c;p3v(U.Jb);lh(U.Jb,"queryid",U.FP);U.sS("");bGc(U,function(){return d.Z8.apply(d,g.X(g.SS.apply(0,arguments)))},function(){return d.h4.apply(d,g.X(g.SS.apply(0,arguments)))}); (c=nC(ER).Y)&&fVv(U,c);this.W&&(U.tv(this.W),this.W=null);U.eD.d$&&nC(ap8);return U}; g.W.yj=function(U){switch(U.FF()){case 0:if(U=nC(ER).Y)U=U.Y,g.wL(U.K,this),U.X&&this.WN()&&PmS(U);ba();break;case 2:Ho()}}; g.W.AQ=function(){}; g.W.WN=function(){return!1}; g.W.h4=function(U,Y){U.F5=!0;switch(U.K4()){case 1:zO9(U,Y);break;case 2:this.Sw(U)}}; g.W.xIw=function(U){var Y=U.G(U);Y&&(Y=Y.volume,U.i$=qP(Y)&&Y>0);dAE(U,0);return UR(U,"start",AB())}; g.W.El=function(U,Y,A){GJ(vo,[U],!AB());return this.e4(U,Y,A)}; g.W.e4=function(U,Y,A){return UR(U,A,AB())}; g.W.wwY=function(U){return Iq(U,"firstquartile",1)}; g.W.HyX=function(U){U.Ly=!0;return Iq(U,"midpoint",2)}; g.W.oEs=function(U){return Iq(U,"thirdquartile",3)}; g.W.XV=function(U){var Y=Iq(U,"complete",4);IJ(U);return Y}; g.W.MXY=function(U){U.EO=3;return UR(U,"error",AB())}; g.W.Sx=function(U,Y,A){Y=AB();if(U.QP()&&!Y){var c=U.Bg(),d=Jm();c.Z=d}GJ(vo,[U],!Y);U.QP()&&(U.EO=1);return UR(U,A,Y)}; g.W.TWE=function(U,Y){Y=this.El(U,Y||{},"skip");IJ(U);return Y}; g.W.PYX=function(U,Y){Xj(U,!0);return this.El(U,Y||{},"fullscreen")}; g.W.iyI=function(U,Y){Xj(U,!1);return this.El(U,Y||{},"exitfullscreen")}; g.W.wI=function(U,Y,A){Y=U.Bg();var c=Jm();Y.yJ=pu(Y,c,U.EO!=1);GJ(vo,[U],!AB());U.EO==1&&(U.EO=2);return UR(U,A,AB())}; g.W.Yvy=function(U){GJ(vo,[U],!AB());return U.T()}; g.W.Np=function(U){GJ(vo,[U],!AB());this.uw(U);IJ(U);return U.T()}; g.W.Z8=function(){}; g.W.Sw=function(){}; g.W.uw=function(){}; g.W.IB=function(){}; g.W.Py=function(){}; g.W.SZ=function(){this.Y||(this.Y=this.Py());return this.Y==null?new O6:new kt(this.Y)}; g.W.ir=function(){return new Nn};g.w(ua,QM);ua.prototype.Y=function(U){return U.B8()==4};g.w(Ki,Zb);Ki.prototype.Y=function(U){U=U.B8();return U==3||U==4};g.w(qn,eC);qn.prototype.T=function(){return new Ki(this.Y)}; qn.prototype.W=function(){return[new ua(this.Y)]};g.w(Ci,y1E);Ci.prototype.Y=function(U){U&&(U.e===28&&(U=Object.assign({},U,{avas:3})),U.vs===4||U.vs===5)&&(U=Object.assign({},U,{vs:3}));var Y=new gZX;Y.Y=hB(U,qOF);Y.T=hB(U,Cwz);return Y};Ppc.prototype.T=function(){return g.u8(this.Y)};g.w(UT,SC);g.W=UT.prototype;g.W.A5=function(U,Y){var A=this,c=nC(ER);if(oq(c))switch(c.Y.getName()){case "nis":var d=HxX(this,U,Y);break;case "gsv":d=vOl(this,U,Y);break;case "exc":d=GUc(this,U)}d||(Y.opt_overlayAdElement?d=void 0:Y.opt_adElement&&(d=rmv(this,U,Y.opt_adElement,Y.opt_osdId)));d&&d.K4()==1&&(d.G==g.Vm&&(d.G=function(T){return A.IB(T)}),$PX(this,d,Y)); return d}; g.W.IB=function(U){U.T=0;U.jX=0;if(U.j=="h"||U.j=="n"){zU();U.Zf&&(zU(),ni(this)!="h"&&ni(this));var Y=g.u8("ima.common.getVideoMetadata");if(typeof Y==="function")try{var A=Y(U.FP)}catch(d){U.T|=4}else U.T|=2}else if(U.j=="b")if(Y=g.u8("ytads.bulleit.getVideoMetadata"),typeof Y==="function")try{A=Y(U.FP)}catch(d){U.T|=4}else U.T|=2;else if(U.j=="ml")if(Y=g.u8("ima.common.getVideoMetadata"),typeof Y==="function")try{A=Y(U.FP)}catch(d){U.T|=4}else U.T|=2;else U.T|=1;U.T||(A===void 0?U.T|=8:A===null? U.T|=16:g.qF(A)?U.T|=32:A.errorCode!=null&&(U.jX=A.errorCode,U.T|=64));A==null&&(A={});Y=A;U.Z=0;for(var c in gzo)Y[c]==null&&(U.Z|=gzo[c]);lIV(Y,"currentTime");lIV(Y,"duration");qP(A.volume)&&qP()&&(A.volume*=NaN);return A}; g.W.Py=function(){zU();ni(this)!="h"&&ni(this);var U=WFX(this);return U!=null?new Ppc(U):null}; g.W.Sw=function(U){!U.Y&&U.F5&&DO(this,U,"overlay_unmeasurable_impression")&&(U.Y=!0)}; g.W.uw=function(U){U.wZ&&(U.cK()?DO(this,U,"overlay_viewable_end_of_session_impression"):DO(this,U,"overlay_unviewable_impression"),U.wZ=!1)}; g.W.Z8=function(){}; g.W.tZ=function(U,Y,A,c){if(RVX()){var d=PG(zU().Jb,"mm"),T={};(d=(T[Lx.eJ]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",T[Lx.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",T)[d])&&FF4(this,d);this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&ip(1044,Error())}U=SC.prototype.tZ.call(this,U,Y,A,c);this.K&&(Y=this.J,U.K==null&&(U.K=new ppX),Y.Y[U.FP]=U.K,U.K.K=Y8z);return U}; g.W.D1=function(U){U&&U.K4()==1&&this.K&&delete this.J.Y[U.FP];return SC.prototype.D1.call(this,U)}; g.W.SZ=function(){this.Y||(this.Y=this.Py());return this.Y==null?new O6:this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new qn(this.Y):new kt(this.Y)}; g.W.ir=function(){return this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Ci:new Nn}; g.W.tv=function(U,Y,A,c,d){Y=new eE(A,Y+c,A+d,Y);(U=co(dd,U))?U.tv(Y):this.W=Y}; var AFW=Wy(193,NTY,void 0,LF4);g.Ic("Goog_AdSense_Lidar_sendVastEvent",AFW);var cFW=wT(194,function(U,Y){Y=Y===void 0?{}:Y;U=Jm8(nC(UT),U,Y);return jgE(U)}); g.Ic("Goog_AdSense_Lidar_getViewability",cFW);var dVT=Wy(195,function(){return Ng9()}); g.Ic("Goog_AdSense_Lidar_getUrlSignalsArray",dVT);var Tgq=wT(196,function(){return JSON.stringify(Ng9())}); g.Ic("Goog_AdSense_Lidar_getUrlSignalsList",Tgq);var BTY=VX(["//ep2.adtrafficquality.google/sodar/",""]),XyS=VX(["//tpc.googlesyndication.com/sodar/",""]);g.w(dc,Error);g.w(oD,g.p);oD.prototype.zO=function(){return this.wpc.f()}; oD.prototype.hI=function(U){this.wpc.c(U)}; oD.prototype.Bx=function(U){return this.wpc.m(xPl(U))}; oD.prototype.fn=function(U){return this.wpc.mws(xPl(U))}; g.w(Tt,g.p);Tt.prototype.snapshot=function(U){return this.CP.s(Object.assign({},U.Bi&&{c:U.Bi},U.Qk&&{s:U.Qk},U.UF!==void 0&&{p:U.UF}))}; Tt.prototype.Du=function(U){this.CP.e(U)}; Tt.prototype.Is=function(){return this.CP.l()};var bxX;g.w(LL,g.p);LL.prototype.share=function(){if(this.Ky())throw Error("E:AD");this.j++;return this}; LL.prototype.dispose=function(){--this.j||g.p.prototype.dispose.call(this)}; bxX=Symbol.dispose;pyY.prototype.Yh=function(U,Y){this.Y.Yh("/client_streamz/bg/frs",U,Y)}; Qg4.prototype.Yh=function(U,Y,A,c,d,T){this.Y.Yh("/client_streamz/bg/wrl",U,Y,A,c,d,T)}; ZxX.prototype.ax=function(U,Y){this.Y.Ii("/client_streamz/bg/ec",U,Y)}; OxV.prototype.Yh=function(U,Y,A){this.Y.Yh("/client_streamz/bg/el",U,Y,A)}; mPl.prototype.ax=function(U,Y){this.Y.Ii("/client_streamz/bg/cec",U,Y)}; gOc.prototype.ax=function(U,Y){this.Y.Ii("/client_streamz/bg/po/csc",U,Y)}; ym4.prototype.ax=function(U,Y){this.Y.Ii("/client_streamz/bg/po/ctav",U,Y)}; nOv.prototype.ax=function(U,Y){this.Y.Ii("/client_streamz/bg/po/cwsc",U,Y)};g.w(DPc,ik);g.w(Pr,ik);var Gt=[1,2,3];var ERT=[0,Gt,pWo,smw,Mzq];var oRj=[0,UL,[0,tzj,XWY]];g.w(Vv,ik);var Hr=[1,2,3];var zUI=[0,Hr,RoT,BLW,An,oRj];g.w($3,ik);var Law=[0,UL,ERT,zUI];var rFj=[0,[1,2,3],An,[0,C9,-1,SOz],An,[0,C9,-1,afj,SOz],An,[0,C9]];g.w(vr,ik);vr.prototype.Dq=function(){var U=Bp(this,3,um,3,!0);WB(U);return U[void 0]};vr.prototype.T=tIY([0,C9,rFj,bjL,UL,Law,ffz,hoo]);g.w(uB3,ik);g.W=Wr.prototype;g.W.isEnabled=function(){if(!g.Dc.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{OX:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.W.set=function(U,Y,A){var c=!1;if(typeof A==="object"){var d=A.etE;c=A.secure||!1;var T=A.domain||void 0;var E=A.path||void 0;var L=A.OX}if(/[;=\s]/.test(U))throw Error('Invalid cookie name "'+U+'"');if(/[;\r\n]/.test(Y))throw Error('Invalid cookie value "'+Y+'"');L===void 0&&(L=-1);A=T?";domain="+T:"";E=E?";path="+E:"";c=c?";secure":"";L=L<0?"":L==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+L*1E3)).toUTCString();this.Y.cookie=U+"="+Y+A+E+L+c+(d!=null?";samesite="+ d:"")}; g.W.get=function(U,Y){for(var A=U+"=",c=(this.Y.cookie||"").split(";"),d=0,T;d=0;Y--)this.remove(U[Y])}; var hf=new Wr(typeof document=="undefined"?null:document);iY.prototype.compress=function(U){var Y,A,c,d;return g.S(function(T){switch(T.T){case 1:return Y=new CompressionStream("gzip"),A=(new Response(Y.readable)).arrayBuffer(),c=Y.writable.getWriter(),g.x(T,c.write((new TextEncoder).encode(U)),2);case 2:return g.x(T,c.close(),3);case 3:return d=Uint8Array,g.x(T,A,4);case 4:return T.return(new d(T.Y))}})}; iY.prototype.isSupported=function(U){return U<1024?!1:typeof CompressionStream!=="undefined"};g.w(JY,ik);FM.prototype.setInterval=function(U){this.intervalMs=U;this.lf&&this.enabled?(this.stop(),this.start()):this.lf&&this.stop()}; FM.prototype.start=function(){var U=this;this.enabled=!0;this.lf||(this.lf=setTimeout(function(){U.tick()},this.intervalMs),this.T=this.Y())}; FM.prototype.stop=function(){this.enabled=!1;this.lf&&(clearTimeout(this.lf),this.lf=void 0)}; FM.prototype.tick=function(){var U=this;if(this.enabled){var Y=Math.max(this.Y()-this.T,0);Y0?A:void 0));A=J1(A,4,Mp(d>0?d:void 0));A=J1(A,5,Mp(T>0?T:void 0));d=A.PZ;T=d[PB]|0;A=G5(A,T)?A:new A.constructor(E2(d,T,VW,!0,!0));mA(E,tY,10,A)}E=this.Y.clone();A=Date.now().toString();E=J1(E,4,yQ(A));U=g$(E,sT,3,U.slice());c&&(E=new jy,c=J1(E,13,Mp(c)),E=new NU,c=mA(E,jy, 2,c),E=new x3,c=mA(E,NU,1,c),c=YH(c,2,9),mA(U,x3,18,c));Y&&qz(U,14,Y);return U};g.MU.prototype.T=0;g.MU.prototype.reset=function(){this.Y=this.W=this.j;this.T=0}; g.MU.prototype.getValue=function(){return this.W};g.w(cy,ik);var lzo=TU(cy);g.w(jwX,ik);var rG=new Nvc;g.w(Zd,g.p);g.W=Zd.prototype;g.W.Tn=function(){Qv(this);this.T.stop();this.eX.stop();g.p.prototype.Tn.call(this)}; g.W.dispatch=function(U){if(U instanceof sT)this.log(U);else try{var Y=new sT,A=U.jS();var c=CG(Y,8,A);this.log(c)}catch(d){OT(this,4,1)}}; g.W.log=function(U){OT(this,2,1);if(this.Uv){U=U.clone();var Y=this.dW++;U=qz(U,21,Y);this.componentId&&CG(U,26,this.componentId);Y=U;var A=w$(Y,1);var c=c===void 0?!1:c;var d=typeof A;c=A==null?A:d==="bigint"?String(ZW(64,A)):So(A)?d==="string"?QQ(A):c?O_(A):mW(A):void 0;c==null&&(c=Date.now(),c=Number.isFinite(c)?c.toString():"0",J1(Y,1,yQ(c)));c=w$(Y,15);c!=null&&(typeof c==="bigint"?o3(c)?c=Number(c):(c=ZW(64,c),c=o3(c)?Number(c):String(c)):c=So(c)?typeof c==="number"?mW(c):QQ(c):void 0);c!=null|| qz(Y,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(c=this.experimentIds.clone(),mA(Y,JY,16,c));OT(this,1,1);Y=this.Y.length-1E3+1;Y>0&&(this.Y.splice(0,Y),this.j+=Y,OT(this,3,Y));this.Y.push(U);this.Vg||this.T.enabled||this.T.start()}}; g.W.flush=function(U,Y){var A=this;if(this.Y.length===0)U&&U();else if(this.QJ&&this.Pw)this.W.T=3,JBY(this);else{var c=Date.now();if(this.yJ>c&&this.jX0&&(A.jX=Date.now(),A.yJ=A.jX+v);var F;v=zo(YZ);lm&&v&&((F=H.PZ[v])==null?void 0:F[175237375])!=null&&DV4(Pww,3);F=rG.Y?rG.T(H,rG.Y,175237375,rG.W):rG.T(H,175237375,null,rG.W);if(F=F===null?void 0:F)F=DV(F,1,-1),F!==-1&&(A.K=new g.MU(F<1?1:F,3E5,.1),A.T.setInterval(A.K.getValue()))}}U&& U();A.J=0},P=function(v,H){var G=ZV(T,sT,3); var F=Number(bR9(T,14));g.bY(A.K);A.T.setInterval(A.K.getValue());v===401&&E&&(A.kE=E);F&&(A.j+=F);H===void 0&&(H=A.isRetryable(v));H&&(A.Y=G.concat(A.Y),A.Vg||A.T.enabled||A.T.start());OT(A,7,1);Y&&Y("net-send-failed",v);++A.J},V=function(){A.network&&A.network.send(r,l,P)}; L?L.then(function(v){OT(A,5,d);r.requestHeaders["Content-Encoding"]="gzip";r.requestHeaders["Content-Type"]="application/binary";r.body=v;r.xQ=2;V()},function(){OT(A,6,d); V()}):V()}}}}; g.W.isRetryable=function(U){return 500<=U&&U<600||U===401||U===0};mu.prototype.send=function(U,Y,A){var c=this,d,T,E,L,r,l,P,V,v,H;return g.S(function(G){switch(G.T){case 1:return T=(d=c.dE?new AbortController:void 0)?setTimeout(function(){d.abort()},U.timeoutMillis):void 0,g.J3(G,2,3),E=Object.assign({},{method:U.requestType, headers:Object.assign({},U.requestHeaders)},U.body&&{body:U.body},U.withCredentials&&{credentials:"include"},{signal:U.timeoutMillis&&d?d.signal:null}),g.x(G,fetch(U.url,E),5);case 5:L=G.Y;if(L.status!==200){(r=A)==null||r(L.status);G.uY(3);break}if((l=Y)==null){G.uY(7);break}return g.x(G,L.text(),8);case 8:l(G.Y);case 7:case 3:g.Rc(G);clearTimeout(T);g.xl(G,0);break;case 2:P=g.XE(G);switch((V=P)==null?void 0:V.name){case "AbortError":(v=A)==null||v(408);break;default:(H=A)==null||H(400)}G.uY(3)}})}; mu.prototype.W9=function(){return 4};g.w(gc,g.p);gc.prototype.dD=function(){this.K=!0;return this}; gc.prototype.build=function(){this.network||(this.network=new mu);var U=new Zd({logSource:this.logSource,xl:this.xl?this.xl:oWl,sessionIndex:this.sessionIndex,Cos:this.lX,y8:this.j,Vg:!1,dD:this.K,Rc:this.Rc,network:this.network});g.Z(this,U);if(this.T){var Y=this.T,A=Sy(U.W);CG(A,7,Y)}U.G=new iY;this.componentId&&(U.componentId=this.componentId);this.uE&&(U.uE=this.uE);this.pageId&&(U.pageId=this.pageId);this.Y&&((A=this.Y)?(U.experimentIds||(U.experimentIds=new JY),Y=U.experimentIds,A=A.jS(),CG(Y, 4,A)):U.experimentIds&&J1(U.experimentIds,4));this.W&&(U.QJ=U.Pw);HuV(U.W);this.network.HC&&this.network.HC(this.logSource);this.network.aAv&&this.network.aAv(U);return U};g.w(yv,g.p);yv.prototype.flush=function(U){U=U||[];if(U.length){for(var Y=new uB3,A=[],c=0;c-1?(Y=U[E],A||(Y.Vl=!1)):(Y=new kyS(Y,this.src,T,!!c,d),Y.Vl=A,U.push(Y));return Y}; g.W.remove=function(U,Y,A,c){U=U.toString();if(!(U in this.listeners))return!1;var d=this.listeners[U];Y=AS(d,Y,A,c);return Y>-1?(CL(d[Y]),g.WW(d,Y),d.length==0&&(delete this.listeners[U],this.Y--),!0):!1}; g.W.removeAll=function(U){U=U&&U.toString();var Y=0,A;for(A in this.listeners)if(!U||A==U){for(var c=this.listeners[A],d=0;d-1?U[d]:null}; g.W.hasListener=function(U,Y){var A=U!==void 0,c=A?U.toString():"",d=Y!==void 0;return g.mT(this.listeners,function(T){for(var E=0;E>>0);g.rL(g.PO,g.p);g.PO.prototype[B2X]=!0;g.W=g.PO.prototype;g.W.addEventListener=function(U,Y,A,c){g.d9(this,U,Y,A,c)}; g.W.removeEventListener=function(U,Y,A,c){S6S(this,U,Y,A,c)}; g.W.dispatchEvent=function(U){var Y=this.XQ;if(Y){var A=[];for(var c=1;Y;Y=Y.XQ)A.push(Y),++c}Y=this.Bt;c=U.type||U;if(typeof U==="string")U=new g.uY(U,Y);else if(U instanceof g.uY)U.target=U.target||Y;else{var d=U;U=new g.uY(c,Y);g.cG(U,d)}d=!0;var T;if(A)for(T=A.length-1;!U.T&&T>=0;T--){var E=U.currentTarget=A[T];d=$M(E,c,!0,U)&&d}U.T||(E=U.currentTarget=Y,d=$M(E,c,!0,U)&&d,U.T||(d=$M(E,c,!1,U)&&d));if(A)for(T=0;!U.T&&T0){this.T--;var U=this.Y;this.Y=U.next;U.next=null}else U=this.W();return U};var Gc;w9.prototype.add=function(U,Y){var A=OuX.get();A.set(U,Y);this.T?this.T.next=A:this.Y=A;this.T=A}; w9.prototype.remove=function(){var U=null;this.Y&&(U=this.Y,this.Y=this.Y.next,this.Y||(this.T=null),U.next=null);return U}; var OuX=new vO(function(){return new i7},function(U){return U.reset()}); i7.prototype.set=function(U,Y){this.Y=U;this.scope=Y;this.next=null}; i7.prototype.reset=function(){this.next=this.scope=this.Y=null};var JS,FD=!1,QJ9=new w9;mDE.prototype.reset=function(){this.context=this.T=this.W=this.Y=null;this.j=!1}; var gWY=new vO(function(){return new mDE},function(U){U.reset()}); g.tS.prototype.then=function(U,Y,A){return UnE(this,HO(typeof U==="function"?U:null),HO(typeof Y==="function"?Y:null),A)}; g.tS.prototype.$goog_Thenable=!0;g.W=g.tS.prototype;g.W.finally=function(U){var Y=this;U=HO(U);return new Promise(function(A,c){IbY(Y,function(d){U();A(d)},function(d){U(); c(d)})})}; g.W.TX=function(U,Y){return UnE(this,null,HO(U),Y)}; g.W.catch=g.tS.prototype.TX;g.W.cancel=function(U){if(this.Y==0){var Y=new hS(U);g.jW(function(){uj8(this,Y)},this)}}; g.W.fOE=function(U){this.Y=0;N3(this,2,U)}; g.W.NYE=function(U){this.Y=0;N3(this,3,U)}; g.W.SB=function(){for(var U;U=K89(this);)q68(this,U,this.Y,this.G);this.J=!1}; var dnX=qw;g.rL(hS,lw);hS.prototype.name="cancel";g.rL(g.SW,g.PO);g.W=g.SW.prototype;g.W.enabled=!1;g.W.Z5=null;g.W.setInterval=function(U){this.Ar=U;this.Z5&&this.enabled?(this.stop(),this.start()):this.Z5&&this.stop()}; g.W.kzs=function(){if(this.enabled){var U=g.om()-this.NL;U>0&&U0&&(this.getStatus(),this.J=setTimeout(this.xW.bind(this), this.Pw)),this.getStatus(),this.X=!0,this.Y.send(U),this.X=!1}catch(E){this.getStatus(),woX(this,E)}}; g.W.xW=function(){typeof ne!="undefined"&&this.Y&&(this.j="Timed out after "+this.Pw+"ms, aborting",this.T=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.W.abort=function(U){this.Y&&this.W&&(this.getStatus(),this.W=!1,this.K=!0,this.Y.abort(),this.K=!1,this.T=U||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),yc(this))}; g.W.Tn=function(){this.Y&&(this.W&&(this.W=!1,this.K=!0,this.Y.abort(),this.K=!1),yc(this,!0));g.g9.sy.Tn.call(this)}; g.W.jp=function(){this.Ky()||(this.ov||this.X||this.K?ii8(this):this.e_v())}; g.W.e_v=function(){ii8(this)}; g.W.isActive=function(){return!!this.Y}; g.W.isComplete=function(){return g.Dm(this)==4}; g.W.getStatus=function(){try{return g.Dm(this)>2?this.Y.status:-1}catch(U){return-1}}; g.W.getResponseHeader=function(U){if(this.Y&&this.isComplete())return U=this.Y.getResponseHeader(U),U===null?void 0:U}; g.W.getLastError=function(){return typeof this.j==="string"?this.j:String(this.j)};Ce.prototype.send=function(U,Y,A){Y=Y===void 0?function(){}:Y; A=A===void 0?function(){}:A; GJ4(U.url,function(c){c=c.target;Iz(c)?Y(g.u7(c)):A(c.getStatus())},U.requestType,U.body,U.requestHeaders,U.timeoutMillis,U.withCredentials)}; Ce.prototype.W9=function(){return 1};YU.prototype.done=function(){this.logger.l6(this.event,Uv()-this.startTime)}; g.w(Aj,LL);g.w(dp,Aj);g.W=dp.prototype;g.W.G5=function(){}; g.W.lH=function(){}; g.W.l6=function(){}; g.W.a4=function(){}; g.W.V8=function(){}; g.W.yW=function(U,Y,A,c){return c}; g.W.Pk=function(){}; g.W.XW=function(){}; g.W.wu=function(){}; g.W.Cz=function(){}; g.w(Tz,Aj);g.W=Tz.prototype;g.W.update=function(U){this.logger.dispose();this.logger=U}; g.W.lH=function(U){this.logger.lH(U)}; g.W.l6=function(U,Y){this.logger.l6(U,Y)}; g.W.a4=function(U){this.logger.a4(U)}; g.W.V8=function(){this.logger.V8()}; g.W.yW=function(U,Y,A,c){return this.logger.yW(U,Y,A,c)}; g.W.Pk=function(U){this.logger.Pk(U)}; g.W.XW=function(U){this.logger.XW(U)}; g.W.wu=function(U){this.logger.wu(U)}; g.W.Cz=function(U){this.logger.Cz(U)}; g.W.G5=function(U){this.logger.G5(U)}; g.w(Ev,g.p);g.w(o_,Aj);g.W=o_.prototype;g.W.G5=function(U){this.metrics.wbY.Yh(U,this.s_)}; g.W.lH=function(U){this.metrics.eventCount.ax(U,this.s_)}; g.W.l6=function(U,Y){this.metrics.eB.Yh(Y,U,this.s_)}; g.W.a4=function(U){this.metrics.errorCount.ax(U,this.s_)}; g.W.yW=function(U,Y,A,c){function d(L){if(!T.Ky()){var r=Uv()-E;T.metrics.TVT.Yh(r,U,A,L,Y,T.s_)}} var T=this,E=Uv();c.then(function(){return void d(0)},function(L){return void d(L instanceof Qc?L.code:-1)}); return c}; g.W.Pk=function(U){this.metrics.oCE.ax(U,this.s_)}; g.W.XW=function(U){this.metrics.AN.ax(U,this.s_)}; g.W.wu=function(U){this.metrics.xWI.ax(U,this.s_)}; g.w(zz,o_);zz.prototype.Cz=function(U){var Y=this;this.Y.dispose();this.T&&this.service.dispose();this.service=this.options.NB("49",this.options.A0.concat(U));this.Y=new Ev(function(){return void Y.service.Qu()},this.options.MV); this.metrics=jq3(this.service);this.W=U}; zz.prototype.V8=function(){tCE(this.Y)};g.w(L_,ik);g.w(rp,ik);g.w(lF,ik);var SRY=TU(lF),BdY=function(U){return ix(function(Y){return Y instanceof U&&!G5(Y)})}(lF); lF.messageId="bfkj";g.w(zt,ik);g.w(PL,ik);var XoV=TU(PL);g.w($U,g.p);$U.prototype.snapshot=function(U){if(this.Ky())throw Error("Already disposed");this.logger.lH("n");var Y=this.logger.share();return this.W.then(function(A){var c=A.iI;return new Promise(function(d){var T=new YU(Y,"n");c(function(E){T.done();Y.G5(E.length);Y.V8();Y.dispose();d(E)},[U.Bi, U.Qk,U.jJ,U.UF])})})}; $U.prototype.KN=function(U){var Y=this;if(this.Ky())throw Error("Already disposed");this.logger.lH("n");var A=cL(this.logger,function(){return Y.j([U.Bi,U.Qk,U.jJ,U.UF])},"n"); this.logger.G5(A.length);this.logger.V8();return A}; $U.prototype.Du=function(U){this.W.then(function(Y){var A;(A=Y.reY)==null||A(U)})}; $U.prototype.Is=function(){return this.logger.share()};g.w(Gz,ik);g.w(WL,ik);wp.prototype.OY=function(U){return Qqv(this,U,new dp,0)};g.w(iF,g.p);iF.prototype.snapshot=function(U){var Y=this;return g.S(function(A){switch(A.T){case 1:if(Y.Ky())throw Error("Already disposed");if(Y.T||Y.G){A.uY(2);break}return g.x(A,Y.K.promise,2);case 2:if(!Y.T){A.uY(4);break}return g.x(A,Y.T.snapshot(U),5);case 5:return A.return(A.Y);case 4:throw Y.G;}})}; iF.prototype.Du=function(U){var Y,A;(Y=this.T)==null||(A=Y.Du)==null||A.call(Y,U)}; iF.prototype.handleError=function(U){if(!this.Ky()){this.G=U;this.K.resolve();var Y,A;(A=(Y=this.options).Tfv)==null||A.call(Y,U)}}; iF.prototype.Is=function(){return this.logger.share()}; var mnE={ihv:432E5,Jz:3E5,rZ:10,Gq:1E4,Ok:3E4,NWT:3E4,RtT:6E4,Uk:1E3,It:6E4,JO:6E5,Kb:.25,FM:2,maxAttempts:10};var $Vo,CaS=($Vo=Math.imul)!=null?$Vo:function(U,Y){return U*Y|0},N7=[196, 200,224,18];tj.prototype.jS=function(){return String(this.Y)+","+this.T.join()}; tj.prototype.VG=function(U,Y){var A=void 0;if(this.T[this.Y]!==U){var c=this.T.indexOf(U);c!==-1?(this.T.splice(c,1),c0;)Y[A++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(U%62),U=Math.floor(U/62);return Y.join("")}};var PYS;g.w(BL,g.p);BL.prototype.fn=function(U,Y){var A=this.Bx(U);Y==null||Y(A);return cL(this.logger,function(){return g.U_(A,2)},this.T)}; PYS=Symbol.dispose;g.w(R_,BL);R_.prototype.Bx=function(U,Y){var A=this;this.logger.lH(this.Y);++this.K>=this.J&&this.W.resolve();var c=U();U=cL(this.logger,function(){return A.j(c)},"C"); if(U===void 0)throw new dc(17,"YNJ:Undefined");if(!(U instanceof Uint8Array))throw new dc(18,"ODM:Invalid");Y==null||Y(U);return U}; g.w(a_,BL);a_.prototype.Bx=function(){return this.j}; g.w(xU,BL);xU.prototype.Bx=function(){var U=this;return cL(this.logger,function(){return Ap(U.j)},"d")}; xU.prototype.fn=function(){return this.j}; g.w(f_,BL);f_.prototype.Bx=function(){if(this.j)return this.j;this.j=VyS(this,function(U){return"_"+ldV(U)}); return VyS(this,function(U){return U})}; g.w(SJ,BL);SJ.prototype.Bx=function(){var U=Math.floor(Date.now()/1E3),Y=[Math.random()*255,Math.random()*255],A=Y.concat([this.j&255,this.clientState],[U>>24&255,U>>16&255,U>>8&255,U&255]);U=new Uint8Array(2+A.length);U[0]=34;U[1]=A.length;U.set(A,2);A=U.subarray(2);for(var c=Y=Y.length;c150))try{this.cache=new E3Y(U,this.logger)}catch(Y){this.reportError(new dc(22,"GBJ:init",Y))}}; g.W.reportError=function(U){this.logger.a4(U.code);this.onError(U);return U}; var HL9=function(U){return ix(function(Y){if(!HZ(Y))return!1;for(var A=g.J(Object.entries(U)),c=A.next();!c.done;c=A.next()){var d=g.J(c.value);c=d.next().value;d=d.next().value;if(!(c in Y)){if(d.fqv===!0)continue;return!1}if(!d(Y[c]))return!1}return!0})}({CP:function(U){return ix(function(Y){return Y instanceof U})}(iF)},"");var qvc=(new Date).getTime();g.w(Z_,ik);var vRO=TU(Z_);tyl.prototype.getMetadata=function(){return this.metadata};Ov.prototype.getMetadata=function(){return this.metadata}; Ov.prototype.getStatus=function(){return this.status};m3.prototype.G=function(U,Y){Y=Y===void 0?{}:Y;return new tyl(U,this,Y)}; m3.prototype.getName=function(){return this.name};var Haw=new m3("/google.internal.waa.v1.Waa/Create",Gz,Z_,function(U){return U.jS()},vRO);g.w(gp,ik);var po4=new m3("/google.internal.waa.v1.Waa/GenerateIT",WL,gp,function(U){return U.jS()},TU(gp));var YgX=new Set(["SAPISIDHASH","APISIDHASH"]);g.w(yI,ik);yI.prototype.getValue=function(){var U=w$(this,2);if(Array.isArray(U)||U instanceof ik)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return kZ(this,2)};g.w(n_,ik);n_.prototype.getMessage=function(){return u3(this,2)}; var adc=TU(n_);D_.prototype.NN=function(U,Y){U=="data"?this.W.push(Y):U=="metadata"?this.K.push(Y):U=="status"?this.J.push(Y):U=="end"?this.j.push(Y):U=="error"&&this.T.push(Y);return this}; D_.prototype.removeListener=function(U,Y){U=="data"?C_(this.W,Y):U=="metadata"?C_(this.K,Y):U=="status"?C_(this.J,Y):U=="end"?C_(this.j,Y):U=="error"&&C_(this.T,Y);return this}; D_.prototype.cancel=function(){this.Y.abort()}; D_.prototype.cancel=D_.prototype.cancel;D_.prototype.removeListener=D_.prototype.removeListener;D_.prototype.on=D_.prototype.NN;g.w(Bcc,Error);g.rL(g.UA,vtc);g.UA.prototype.Y=function(){var U=new YC(this.j,this.W);this.T&&U.setCredentialsMode(this.T);return U}; g.UA.prototype.setCredentialsMode=function(U){this.T=U}; g.rL(YC,g.PO);g.W=YC.prototype;g.W.open=function(U,Y){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Pw=U;this.X=Y;this.readyState=1;AZ(this)}; g.W.send=function(U){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.Y=!0;var Y={headers:this.Z,method:this.Pw,credentials:this.K,cache:void 0};U&&(Y.body=U);(this.Hw||g.Dc).fetch(new Request(this.X,Y)).then(this.CL.bind(this),this.K9.bind(this))}; g.W.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.W&&this.W.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.Y&&this.readyState!=4&&(this.Y=!1,cP(this));this.readyState=0}; g.W.CL=function(U){if(this.Y&&(this.j=U,this.T||(this.status=this.j.status,this.statusText=this.j.statusText,this.T=U.headers,this.readyState=2,AZ(this)),this.Y&&(this.readyState=3,AZ(this),this.Y)))if(this.responseType==="arraybuffer")U.arrayBuffer().then(this.RI.bind(this),this.K9.bind(this));else if(typeof g.Dc.ReadableStream!=="undefined"&&"body"in U){this.W=U.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.G=new TextDecoder;xUX(this)}else U.text().then(this.nL.bind(this),this.K9.bind(this))}; g.W.Bo=function(U){if(this.Y){if(this.J&&U.value)this.response.push(U.value);else if(!this.J){var Y=U.value?U.value:new Uint8Array(0);if(Y=this.G.decode(Y,{stream:!U.done}))this.response=this.responseText+=Y}U.done?cP(this):AZ(this);this.readyState==3&&xUX(this)}}; g.W.nL=function(U){this.Y&&(this.response=this.responseText=U,cP(this))}; g.W.RI=function(U){this.Y&&(this.response=U,cP(this))}; g.W.K9=function(){this.Y&&cP(this)}; g.W.setRequestHeader=function(U,Y){this.Z.append(U,Y)}; g.W.getResponseHeader=function(U){return this.T?this.T.get(U.toLowerCase())||"":""}; g.W.getAllResponseHeaders=function(){if(!this.T)return"";for(var U=[],Y=this.T.entries(),A=Y.next();!A.done;)A=A.value,U.push(A[0]+": "+A[1]),A=Y.next();return U.join("\r\n")}; g.W.setCredentialsMode=function(U){this.K=U}; Object.defineProperty(YC.prototype,"withCredentials",{get:function(){return this.K==="include"}, set:function(U){this.setCredentialsMode(U?"include":"same-origin")}});g.dq.prototype.toString=function(){var U=[],Y=this.K;Y&&U.push(lQ(Y,GdW,!0),":");var A=this.Y;if(A||Y=="file")U.push("//"),(Y=this.Z)&&U.push(lQ(Y,GdW,!0),"@"),U.push(STX(g.$n(A))),A=this.W,A!=null&&U.push(":",String(A));if(A=this.T)this.Y&&A.charAt(0)!="/"&&U.push("/"),U.push(lQ(A,A.charAt(0)=="/"?WaO:wGf,!0));(A=this.j.toString())&&U.push("?",A);(A=this.J)&&U.push("#",lQ(A,iaL));return U.join("")}; g.dq.prototype.resolve=function(U){var Y=this.clone(),A=!!U.K;A?g.T6(Y,U.K):A=!!U.Z;A?Y.Z=U.Z:A=!!U.Y;A?g.EA(Y,U.Y):A=U.W!=null;var c=U.T;if(A)g.oM(Y,U.W);else if(A=!!U.T){if(c.charAt(0)!="/")if(this.Y&&!this.T)c="/"+c;else{var d=Y.T.lastIndexOf("/");d!=-1&&(c=Y.T.slice(0,d+1)+c)}d=c;if(d==".."||d==".")c="";else if(g.Gd(d,"./")||g.Gd(d,"/.")){c=vG(d,"/");d=d.split("/");for(var T=[],E=0;E1||T.length==1&&T[0]!="")&&T.pop(), c&&E==d.length&&T.push("")):(T.push(L),c=!0)}c=T.join("/")}else c=d}A?Y.T=c:A=U.j.toString()!=="";A?z6(Y,U.j.clone()):A=!!U.J;A&&(Y.J=U.J);return Y}; g.dq.prototype.clone=function(){return new g.dq(this)}; var GdW=/[#\/\?@]/g,wGf=/[#\?:]/g,WaO=/[#\?]/g,fdV=/[#\?@]/g,iaL=/#/g;g.W=rq.prototype;g.W.add=function(U,Y){$C(this);this.W=null;U=vP(this,U);var A=this.Y.get(U);A||this.Y.set(U,A=[]);A.push(Y);this.T=this.T+1;return this}; g.W.remove=function(U){$C(this);U=vP(this,U);return this.Y.has(U)?(this.W=null,this.T=this.T-this.Y.get(U).length,this.Y.delete(U)):!1}; g.W.clear=function(){this.Y=this.W=null;this.T=0}; g.W.isEmpty=function(){$C(this);return this.T==0}; g.W.forEach=function(U,Y){$C(this);this.Y.forEach(function(A,c){A.forEach(function(d){U.call(Y,d,c,this)},this)},this)}; g.W.C2=function(){$C(this);for(var U=Array.from(this.Y.values()),Y=Array.from(this.Y.keys()),A=[],c=0;c0?String(U[0]):Y}; g.W.toString=function(){if(this.W)return this.W;if(!this.Y)return"";for(var U=[],Y=Array.from(this.Y.keys()),A=0;A>>3;T.W!=1&&T.W!=2&&T.W!=15&&wq(T,E,L,"unexpected tag");T.Y=1;T.T=0;T.j=0} function A(r){T.j++;T.j==5&&r&240&&wq(T,E,L,"message length too long");T.T|=(r&127)<<(T.j-1)*7;r&128||(T.Y=2,T.Z=0,typeof Uint8Array!=="undefined"?T.K=new Uint8Array(T.T):T.K=Array(T.T),T.T==0&&d())} function c(r){T.K[T.Z++]=r;T.Z==T.T&&d()} function d(){if(T.W<15){var r={};r[T.W]=T.K;T.G.push(r)}T.Y=0} for(var T=this,E=U instanceof Array?U:new Uint8Array(U),L=0;L0?U:null};iQ.prototype.isInputValid=function(){return this.Y===null}; iQ.prototype.uB=function(){return this.Y}; iQ.prototype.d_=function(){return!1}; iQ.prototype.parse=function(U){this.Y!==null&&mU9(this,U,"stream already broken");var Y=null;try{var A=this.W;A.W||OLY(A,U,"stream already broken");A.Y+=U;var c=Math.floor(A.Y.length/4);if(c==0)var d=null;else{try{var T=MLV(A.Y.slice(0,c*4))}catch(E){OLY(A,A.Y,E.message)}A.T+=c*4;A.Y=A.Y.slice(c*4);d=T}Y=d===null?null:this.j.parse(d)}catch(E){mU9(this,U,E.message)}this.T+=U.length;return Y};var Fao={INIT:0,vT:1,Vf:2,Fk:3,PW:4,Ms:5,STRING:6,R9:7,hJ:8,sf:9,jd:10,Dw:11,Iq:12,Ui:13,JV:14,KS:15,wA:16,P0:17,H0:18,jG:19,Cq:20};g.W=F0.prototype;g.W.isInputValid=function(){return this.K!=3}; g.W.uB=function(){return this.X}; g.W.done=function(){return this.K===2}; g.W.d_=function(){return!1}; g.W.parse=function(U){function Y(){for(;v0;)if(G=U[v++], T.Z===4?T.Z=0:T.Z++,!G)break a;if(G==='"'&&!T.G){T.Y=c();break}if(G==="\\"&&!T.G&&(T.G=!0,G=U[v++],!G))break;if(T.G)if(T.G=!1,G==="u"&&(T.Z=1),G=U[v++])continue;else break;L.lastIndex=v;G=L.exec(U);if(!G){v=U.length+1;break}v=G.index+1;G=U[G.index];if(!G)break}T.W+=v-F;continue;case r.sf:if(!G)continue;G==="r"?T.Y=r.jd:jk(T,U,v);continue;case r.jd:if(!G)continue;G==="u"?T.Y=r.Dw:jk(T,U,v);continue;case r.Dw:if(!G)continue;G==="e"?T.Y=c():jk(T,U,v);continue;case r.Iq:if(!G)continue;G==="a"?T.Y=r.Ui: jk(T,U,v);continue;case r.Ui:if(!G)continue;G==="l"?T.Y=r.JV:jk(T,U,v);continue;case r.JV:if(!G)continue;G==="s"?T.Y=r.KS:jk(T,U,v);continue;case r.KS:if(!G)continue;G==="e"?T.Y=c():jk(T,U,v);continue;case r.wA:if(!G)continue;G==="u"?T.Y=r.P0:jk(T,U,v);continue;case r.P0:if(!G)continue;G==="l"?T.Y=r.H0:jk(T,U,v);continue;case r.H0:if(!G)continue;G==="l"?T.Y=c():jk(T,U,v);continue;case r.jG:G==="."?T.Y=r.Cq:jk(T,U,v);continue;case r.Cq:if("0123456789.eE+-".indexOf(G)!==-1)continue;else v--,T.W--,T.Y= c();continue;default:jk(T,U,v)}}} function c(){var G=E.pop();return G!=null?G:r.vT} function d(G){if(!(T.T>1)){G||(G=V===-1?T.j+U.substring(P,v):U.substring(V,v));if(T.Pw)T.J.push(G);else{var F=T.J,N=F.push;G=JSON.parse(G);N.call(F,G)}V=v}} for(var T=this,E=T.Hw,L=T.ov,r=Fao,l=U.length,P=0,V=-1,v=0;v0?(H=T.J,T.J=[],H):null}return null};Nv.prototype.isInputValid=function(){return this.K===null}; Nv.prototype.uB=function(){return this.K}; Nv.prototype.d_=function(){return!1}; Nv.prototype.parse=function(U){function Y(r){T.T=6;T.K="The stream is broken @"+T.Y+"/"+E+". Error: "+r+". With input:\n";throw Error(T.K);} function A(){T.W=new F0({Gyy:!0,Rj:!0})} function c(r){if(r)for(var l=0;l1)&&Y("extra status: "+r);T.J=!0;var l={};l[2]=r[0];T.j.push(l)}} for(var T=this,E=0;E0?(U=T.j,T.j=[],U):null};tZ.prototype.G1=function(){return this.Y}; tZ.prototype.getStatus=function(){return this.K}; tZ.prototype.Pw=function(U){U=U.target;try{if(U==this.Y)a:{var Y=g.Dm(this.Y),A=this.Y.T,c=this.Y.getStatus(),d=g.u7(this.Y);U=[];if(g.Ke(this.Y)instanceof Array){var T=g.Ke(this.Y);T.length>0&&T[0]instanceof Uint8Array&&(this.X=!0,U=T)}if(!(Y<3||Y==3&&!d&&U.length==0))if(c=c==200||c==206,Y==4&&(A==8?ek(this,7):A==7?ek(this,8):c||ek(this,3)),this.T||(this.T=g3S(this.Y),this.T==null&&ek(this,5)),this.K>2)BP(this);else{if(U.length>this.W){var E=U.length;A=[];try{if(this.T.d_())for(var L=0;Lthis.W){L=d.slice(this.W);this.W=d.length;try{var l=this.T.parse(L);l!=null&&this.j&&this.j(l)}catch(P){ek(this,5);BP(this);break a}}Y==4?(d.length!= 0||this.X?ek(this,2):ek(this,4),BP(this)):ek(this,1)}}}catch(P){ek(this,6),BP(this)}};g.W=yYc.prototype;g.W.NN=function(U,Y){var A=this.T[U];A||(A=[],this.T[U]=A);A.push(Y);return this}; g.W.addListener=function(U,Y){this.NN(U,Y);return this}; g.W.removeListener=function(U,Y){var A=this.T[U];A&&g.wL(A,Y);(U=this.Y[U])&&g.wL(U,Y);return this}; g.W.once=function(U,Y){var A=this.Y[U];A||(A=[],this.Y[U]=A);A.push(Y);return this}; g.W.C$v=function(U){var Y=this.T.data;Y&&n3l(U,Y);(Y=this.Y.data)&&n3l(U,Y);this.Y.data=[]}; g.W.P1Y=function(){switch(this.W.getStatus()){case 1:X0(this,"readable");break;case 5:case 6:case 4:case 7:case 3:X0(this,"error");break;case 8:X0(this,"close");break;case 2:X0(this,"end")}};DU3.prototype.serverStreaming=function(U,Y,A,c){var d=this,T=U.substring(0,U.length-c.name.length);return Idl(function(E){var L=E.KC,r=E.getMetadata(),l=qTX(d,!1);r=CY3(d,r,l,T+L.getName());var P=U3Y(l,L.T,!0);E=L.Y(E.Uo);l.send(r,"POST",E);return P},this.j).call(this,c.G(Y,A))};AS8.prototype.create=function(U,Y){return biS(this.Y,this.T+"/$rpc/google.internal.waa.v1.Waa/Create",U,Y||{},Haw)};var cSl="://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(" "),d3X=/\bocr\b/;var EMv=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var wO3=Object.assign({},{attributes:{},handleError:function(U){throw U;}},{aHX:!0, pfv:!0,RYv:UFI,CHT:YOw,No:!1,yjJ:!1,EDJ:!0,qZy:!1});var fB=null,Sk=!1,Gcc=1,vMX=Symbol("SIGNAL"),lS={version:0,LzI:0,TB:!1,O$:void 0,kX:void 0,wz:void 0,Gg:0,qd:void 0,BR:void 0,FJ:!1,IP:!1,kind:"unknown",PX:function(){return!1}, HX:function(){}, UG:function(){}, NwJ:function(){}};var P2=Symbol("UNSET"),Vi=Symbol("COMPUTING"),$i=Symbol("ERRORED");Object.assign({},lS,{value:P2,TB:!0,error:null,x3:sA,kind:"computed",PX:function(U){return U.value===P2||U.value===Vi}, HX:function(U){if(U.value===Vi)throw Error("Detected cycle in computations.");var Y=U.value;U.value=Vi;var A=LGc(U),c=!1;try{var d=U.SY();hZ(null);c=Y!==P2&&Y!==$i&&d!==$i&&U.x3(Y,d)}catch(T){d=$i,U.error=T}finally{rSE(U,A)}c?U.value=Y:(U.value=d,U.version++)}});var $38=Object.assign({},lS,{x3:sA,value:void 0,kind:"signal"});Object.assign({},lS,{value:P2,TB:!0,error:null,x3:sA,kind:"linkedSignal",PX:function(U){return U.value===P2||U.value===Vi}, HX:function(U){if(U.value===Vi)throw Error("Detected cycle in computations.");var Y=U.value;U.value=Vi;var A=LGc(U);try{var c=U.source();var d=U.SY(c,Y===P2||Y===$i?void 0:{source:U.H3v,value:Y});U.H3v=c}catch(T){d=$i,U.error=T}finally{rSE(U,A)}Y!==P2&&d!==$i&&U.x3(Y,d)?U.value=Y:(U.value=d,U.version++)}});Object.assign({},lS,{IP:!0,FJ:!1,UG:function(U){U.schedule!==null&&U.schedule(U.UGv)}, rcE:!1,zYs:function(){}});var ie4=Symbol("updater");g.w(QH,g.PO);QH.prototype.dispose=function(){window.removeEventListener("offline",this.W);window.removeEventListener("online",this.W);this.F8.J$(this.K);delete QH.instance}; QH.prototype.gY=function(){return this.Y}; QH.prototype.I2=function(){var U=this;this.K=this.F8.iN(function(){var Y;return g.S(function(A){if(A.T==1)return U.Y?((Y=window.navigator)==null?0:Y.onLine)?A.uY(3):g.x(A,pB(U),3):g.x(A,pB(U),3);U.I2();g.i8(A)})},3E4)};OA.prototype.set=function(U,Y){Y=Y===void 0?!0:Y;0<=U&&U<52&&Number.isInteger(U)&&this.data[U]!==Y&&(this.data[U]=Y,this.Y=-1)}; OA.prototype.get=function(U){return!!this.data[U]};var gq;g.rL(g.DG,g.p);g.W=g.DG.prototype;g.W.start=function(){this.stop();this.j=!1;var U=N9c(this),Y=tW9(this);U&&!Y&&this.T.mozRequestAnimationFrame?(this.Y=g.d9(this.T,"MozBeforePaint",this.W),this.T.mozRequestAnimationFrame(null),this.j=!0):this.Y=U&&Y?U.call(this.T,this.W):this.T.setTimeout(mFX(this.W),20)}; g.W.stop=function(){if(this.isActive()){var U=N9c(this),Y=tW9(this);U&&!Y&&this.T.mozRequestAnimationFrame?zc(this.Y):U&&Y?Y.call(this.T,this.Y):this.T.clearTimeout(this.Y)}this.Y=null}; g.W.isActive=function(){return this.Y!=null}; g.W.oW=function(){this.j&&this.Y&&zc(this.Y);this.Y=null;this.J.call(this.K,g.om())}; g.W.Tn=function(){this.stop();g.DG.sy.Tn.call(this)};g.rL(g.IM,g.p);g.W=g.IM.prototype;g.W.fv=0;g.W.Tn=function(){g.IM.sy.Tn.call(this);this.stop();delete this.Y;delete this.T}; g.W.start=function(U){this.stop();this.fv=g.M3(this.W,U!==void 0?U:this.Ar)}; g.W.stop=function(){this.isActive()&&g.Dc.clearTimeout(this.fv);this.fv=0}; g.W.isActive=function(){return this.fv!=0}; g.W.JJ=function(){this.fv=0;this.Y&&this.Y.call(this.T)};g.w(g.Yc,g.p);g.W=g.Yc.prototype;g.W.Aq=function(U){this.W=arguments;this.Z5||this.T?this.Y=!0:AT(this)}; g.W.stop=function(){this.Z5&&(g.Dc.clearTimeout(this.Z5),this.Z5=null,this.Y=!1,this.W=null)}; g.W.pause=function(){this.T++}; g.W.resume=function(){this.T--;this.T||!this.Y||this.Z5||(this.Y=!1,AT(this))}; g.W.Tn=function(){g.p.prototype.Tn.call(this);this.stop()};g.cF.prototype[Symbol.iterator]=function(){return this}; g.cF.prototype.next=function(){var U=this.Y.next();return{value:U.done?void 0:this.T.call(void 0,U.value),done:U.done}};g.rL(g.PF,g.PO);g.W=g.PF.prototype;g.W.isPlaying=function(){return this.Y==1}; g.W.isPaused=function(){return this.Y==-1}; g.W.NV=function(){this.Nt("begin")}; g.W.Zq=function(){this.Nt("end")}; g.W.onFinish=function(){this.Nt("finish")}; g.W.onStop=function(){this.Nt("stop")}; g.W.Nt=function(U){this.dispatchEvent(U)};var jtF=$J(function(){var U=g.qs("DIV"),Y=g.DH?"-webkit":bp?"-moz":null,A="transition:opacity 1s linear;";Y&&(A+=Y+"-transition:opacity 1s linear;");Y=afY({style:A});if(U.nodeType===1&&/^(script|style)$/i.test(U.tagName))throw Error("");U.innerHTML=Yn(Y);return g.px(U.firstChild,"transition")!=""});g.rL(Vf,g.PF);g.W=Vf.prototype;g.W.play=function(){if(this.isPlaying())return!1;this.NV();this.Nt("play");this.startTime=g.om();this.Y=1;if(jtF())return g.MP(this.T,this.J),this.W=g.M3(this.mUv,void 0,this),!0;this.dS(!1);return!1}; g.W.mUv=function(){g.Ig(this.T);XOV(this.T,this.G);g.MP(this.T,this.j);this.W=g.M3((0,g.dL)(this.dS,this,!1),this.K*1E3)}; g.W.stop=function(){this.isPlaying()&&this.dS(!0)}; g.W.dS=function(U){g.MP(this.T,"transition","");g.Dc.clearTimeout(this.W);g.MP(this.T,this.j);this.endTime=g.om();this.Y=0;if(U)this.onStop();else this.onFinish();this.Zq()}; g.W.Tn=function(){this.stop();Vf.sy.Tn.call(this)}; g.W.pause=function(){};var RGS={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};$c("Element","attributes")||$c("Node","attributes");$c("Element","innerHTML")||$c("HTMLElement","innerHTML");$c("Node","nodeName");$c("Node","nodeType");$c("Node","parentNode");$c("Node","childNodes");$c("HTMLElement","style")||$c("Element","style");$c("HTMLStyleElement","sheet");var Sgl=x3V("getPropertyValue"),MW9=x3V("setProperty");$c("Element","namespaceURI")||$c("Node","namespaceURI");var hG9={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Ze9,m4W,Qzc,pO4,Oe4;Ze9=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]");m4W=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.NgO=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.HF=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]");Qzc=/^http:\/\/.*/;g.tLw=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");pO4=/\s+/;Oe4=/[\d\u06f0-\u06f9]/;WF.prototype.Km=function(){return new wK(this.T())}; WF.prototype[Symbol.iterator]=function(){return new ig(this.T())}; WF.prototype.Y=function(){return new ig(this.T())}; g.w(wK,g.kW);wK.prototype.next=function(){return this.T.next()}; wK.prototype[Symbol.iterator]=function(){return new ig(this.T)}; wK.prototype.Y=function(){return new ig(this.T)}; g.w(ig,WF);ig.prototype.next=function(){return this.W.next()};F7.prototype.clone=function(){return new F7(this.Y,this.G,this.W,this.K,this.j,this.J,this.T,this.Z)}; F7.prototype.equals=function(U){return this.Y==U.Y&&this.G==U.G&&this.W==U.W&&this.K==U.K&&this.j==U.j&&this.J==U.J&&this.T==U.T&&this.Z==U.Z};NQ.prototype.clone=function(){return new NQ(this.start,this.end)}; NQ.prototype.getLength=function(){return this.end-this.start};(function(){if(nYc){var U=/Windows NT ([0-9.]+)/;return(U=U.exec(g.tF()))?U[1]:"0"}return dZ?(U=/1[0|1][_.][0-9_.]+/,(U=U.exec(g.tF()))?U[0].replace(/_/g,"."):"10"):g.UI?(U=/Android\s+([^\);]+)(\)|;)/,(U=U.exec(g.tF()))?U[1]:""):dFY||TLO||Ezq?(U=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(U=U.exec(g.tF()))?U[1].replace(/_/g,"."):""):""})();var gM8=function(){if(g.K1)return tT(/Firefox\/([0-9.]+)/);if(g.vF||g.IE||g.k1)return NLY;if(g.Sf){if(jF()||Ns()){var U=tT(/CriOS\/([0-9.]+)/);if(U)return U}return tT(/Chrome\/([0-9.]+)/)}if(g.iW&&!jF())return tT(/Version\/([0-9.]+)/);if(Kl||qL){if(U=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.tF()))return U[1]+"."+U[2]}else if(g.Ry)return(U=tT(/Android\s+([0-9.]+)/))?U:tT(/Version\/([0-9.]+)/);return""}();g.rL(g.BF,g.p);g.W=g.BF.prototype;g.W.subscribe=function(U,Y,A){var c=this.T[U];c||(c=this.T[U]=[]);var d=this.J;this.Y[d]=U;this.Y[d+1]=Y;this.Y[d+2]=A;this.J=d+3;c.push(d);return d}; g.W.unsubscribe=function(U,Y,A){if(U=this.T[U]){var c=this.Y;if(U=U.find(function(d){return c[d+1]==Y&&c[d+2]==A}))return this.H5(U)}return!1}; g.W.H5=function(U){var Y=this.Y[U];if(Y){var A=this.T[Y];this.j!=0?(this.W.push(U),this.Y[U+1]=function(){}):(A&&g.wL(A,U),delete this.Y[U],delete this.Y[U+1],delete this.Y[U+2])}return!!Y}; g.W.publish=function(U,Y){var A=this.T[U];if(A){var c=Array(arguments.length-1),d=arguments.length,T;for(T=1;T0&&this.j==0)for(;A=this.W.pop();)this.H5(A)}}return T!=0}return!1}; g.W.clear=function(U){if(U){var Y=this.T[U];Y&&(Y.forEach(this.H5,this),delete this.T[U])}else this.Y.length=0,this.T={}}; g.W.Tn=function(){g.BF.sy.Tn.call(this);this.clear();this.W.length=0};g.X7.prototype.set=function(U,Y){Y===void 0?this.Y.remove(U):this.Y.set(U,g.Zm(Y))}; g.X7.prototype.get=function(U){try{var Y=this.Y.get(U)}catch(A){return}if(Y!==null)try{return JSON.parse(Y)}catch(A){throw"Storage: Invalid value was encountered";}}; g.X7.prototype.remove=function(U){this.Y.remove(U)};g.rL(kc,g.X7);kc.prototype.set=function(U,Y){kc.sy.set.call(this,U,D3c(Y))}; kc.prototype.T=function(U){U=kc.sy.get.call(this,U);if(U===void 0||U instanceof Object)return U;throw"Storage: Invalid value was encountered";}; kc.prototype.get=function(U){if(U=this.T(U)){if(U=U.data,U===void 0)throw"Storage: Invalid value was encountered";}else U=void 0;return U};g.rL(Ru,kc);Ru.prototype.set=function(U,Y,A){if(Y=D3c(Y)){if(A){if(A=A.length)return g.EL;var d=A.key(Y++);if(U)return g.RJ(d);d=A.getItem(d);if(typeof d!=="string")throw"Storage mechanism: Invalid value was encountered";return g.RJ(d)}; return c}; g.W.clear=function(){fZ(this);this.Y.clear()}; g.W.key=function(U){fZ(this);return this.Y.key(U)};g.rL(hT,s4);g.rL(qg9,s4);g.rL(Sn,xc);Sn.prototype.set=function(U,Y){this.T.set(this.Y+U,Y)}; Sn.prototype.get=function(U){return this.T.get(this.Y+U)}; Sn.prototype.remove=function(U){this.T.remove(this.Y+U)}; Sn.prototype.Km=function(U){var Y=this.T[Symbol.iterator](),A=this,c=new g.kW;c.next=function(){var d=Y.next();if(d.done)return d;for(d=d.value;d.slice(0,A.Y.length)!=A.Y;){d=Y.next();if(d.done)return d;d=d.value}return g.RJ(U?d.slice(A.Y.length):A.T.get(d))}; return c};bg.prototype.getValue=function(){return this.T}; bg.prototype.clone=function(){return new bg(this.Y,this.T)};g.W=pZ.prototype;g.W.VG=function(U,Y){var A=this.Y;A.push(new bg(U,Y));U=A.length-1;Y=this.Y;for(A=Y[U];U>0;){var c=U-1>>1;if(Y[c].Y>A.Y)Y[U]=Y[c],U=c;else break}Y[U]=A}; g.W.remove=function(){var U=this.Y,Y=U.length,A=U[0];if(!(Y<=0)){if(Y==1)U.length=0;else{U[0]=U.pop();U=0;Y=this.Y;for(var c=Y.length,d=Y[U];U>1;){var T=U*2+1,E=U*2+2;T=Ed.Y)break;Y[U]=Y[T];U=T}Y[U]=d}return A.getValue()}}; g.W.Bm=function(){for(var U=this.Y,Y=[],A=U.length,c=0;c>>16&65535|0;for(var T;A!==0;){T=A>2E3?2E3:A;A-=T;do d=d+Y[c++]|0,U=U+d|0;while(--T);d%=65521;U%=65521}return d|U<<16|0};for(var vu={},v2,RUq=[],H2=0;H2<256;H2++){v2=H2;for(var azm=0;azm<8;azm++)v2=v2&1?3988292384^v2>>>1:v2>>>1;RUq[H2]=v2}vu=function(U,Y,A,c){A=c+A;for(U^=-1;c>>8^RUq[(U^Y[c])&255];return U^-1};var Tj={};Tj={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 qQ=[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],Y4=[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],j_S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],PFE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],LF=Array(576);mD(LF);var r5=Array(60);mD(r5);var U3=Array(512);mD(U3);var KZ=Array(256);mD(KZ);var CZ=Array(29);mD(CZ);var Aa=Array(30);mD(Aa);var i_V,Jjl,F3V,wLS=!1;var ie;ie=[new w5(0,0,0,0,function(U,Y){var A=65535;for(A>U.Cm-5&&(A=U.Cm-5);;){if(U.Cr<=1){Hu(U);if(U.Cr===0&&Y===0)return 1;if(U.Cr===0)break}U.u$+=U.Cr;U.Cr=0;var c=U.Ox+A;if(U.u$===0||U.u$>=c)if(U.Cr=U.u$-c,U.u$=c,le(U,!1),U.ZF.hB===0)return 1;if(U.u$-U.Ox>=U.Sj-262&&(le(U,!1),U.ZF.hB===0))return 1}U.VG=0;if(Y===4)return le(U,!0),U.ZF.hB===0?3:4;U.u$>U.Ox&&le(U,!1);return 1}), new w5(4,4,8,4,Gj),new w5(4,5,16,8,Gj),new w5(4,6,32,32,Gj),new w5(4,4,16,16,Wu),new w5(8,16,32,32,Wu),new w5(8,16,128,128,Wu),new w5(8,32,128,256,Wu),new w5(32,128,258,1024,Wu),new w5(32,258,258,4096,Wu)];var W33={};W33=function(){this.input=null;this.a6=this.O_=this.h7=0;this.output=null;this.NQ=this.hB=this.Gf=0;this.msg="";this.state=null;this.Wy=2;this.Fy=0};var NpX=Object.prototype.toString; Ja.prototype.push=function(U,Y){var A=this.ZF,c=this.options.chunkSize;if(this.ended)return!1;var d=Y===~~Y?Y:Y===!0?4:0;typeof U==="string"?A.input=YvY(U):NpX.call(U)==="[object ArrayBuffer]"?A.input=new Uint8Array(U):A.input=U;A.h7=0;A.O_=A.input.length;do{A.hB===0&&(A.output=new O4.YP(c),A.Gf=0,A.hB=c);U=GzE(A,d);if(U!==1&&U!==0)return this.Zq(U),this.ended=!0,!1;if(A.hB===0||A.O_===0&&(d===4||d===2))if(this.options.to==="string"){var T=O4.uq(A.output,A.Gf);Y=T;T=T.length;if(T<65537&&(Y.subarray&& kdz||!Y.subarray))Y=String.fromCharCode.apply(null,O4.uq(Y,T));else{for(var E="",L=0;L0||A.hB===0)&&U!==1);if(d===4)return(A=this.ZF)&&A.state?(c=A.state.status,c!==42&&c!==69&&c!==73&&c!==91&&c!==103&&c!==113&&c!==666?U=E3(A,-2):(A.state=null,U=c===113?E3(A,-3):0)):U=-2,this.Zq(U),this.ended=!0,U===0;d===2&&(this.Zq(0),A.hB=0);return!0}; Ja.prototype.Zq=function(U){U===0&&(this.result=this.options.to==="string"?this.chunks.join(""):O4.CY(this.chunks));this.chunks=[];this.err=U;this.msg=this.ZF.msg};var jT="@@redux/INIT"+Fz(),RNV="@@redux/REPLACE"+Fz();var a_X=typeof Symbol==="function"&&Symbol.observable||"@@observable";var xVq=[0,Qmo,-3,c2];g.w(hNY,ik);var i13=function(){var U=[0,Ojq,ZjI,C9,Qmo,C9,-1,c2,Qmo,c2,-1,Ojq,c2,ZjI,UL,xVq,C9,-1,c2];return function(Y,A){var c={NZ:!0};A&&Object.assign(c,A);Y=nnc(Y,void 0,void 0,c);try{var d=new hNY,T=d.PZ;Zp(U)(T,Y);var E=d}finally{Y.free()}return E}}();var Sv3=-1964109900;var INX=new g.eT("adInfoDialogEndpoint");var Jzc=new g.eT("adPingingEndpoint");var OV8=new g.eT("crossDeviceProgressCommand");var El=new g.eT("actionCompanionAdRenderer");var PU=new g.eT("adActionInterstitialRenderer");var stw=new g.eT("adDurationRemainingRenderer");var pA=new g.eT("adHoverTextButtonRenderer");var n6E=new g.eT("adInfoDialogRenderer");var FK=new g.eT("adMessageRenderer");var Qa=new g.eT("adPreviewRenderer");var zE=new g.eT("adsEngagementPanelRenderer");var vv3=new g.eT("dismissablePanelTextPortraitImageRenderer");var VdY=new g.eT("adsEngagementPanelSectionListViewModel");var fzm=new g.eT("flyoutCtaRenderer");var oo=new g.eT("imageCompanionAdRenderer");var rt=new g.eT("instreamAdPlayerOverlayRenderer");var LXL=new g.eT("instreamSurveyAdBackgroundImageRenderer");var bd=new g.eT("instreamSurveyAdPlayerOverlayRenderer");var w6=new g.eT("instreamSurveyAdRenderer"),MK=new g.eT("instreamSurveyAdSingleSelectQuestionRenderer"),S7=new g.eT("instreamSurveyAdMultiSelectQuestionRenderer"),GR=new g.eT("instreamSurveyAdAnswerRenderer"),hUF=new g.eT("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var GE=new g.eT("instreamVideoAdRenderer");var S8F=new g.eT("textOverlayAdContentRenderer"),MLo=new g.eT("enhancedTextOverlayAdContentRenderer"),baT=new g.eT("imageOverlayAdContentRenderer");var lu=new g.eT("playerOverlayLayoutRenderer");var Vy=new g.eT("videoInterstitialButtonedCenteredLayoutRenderer");var i5E=new g.eT("aboveFeedAdLayoutRenderer");var JIV=new g.eT("belowPlayerAdLayoutRenderer");var wXv=new g.eT("inPlayerAdLayoutRenderer");var kr=new g.eT("playerBytesAdLayoutRenderer");var hE=new g.eT("playerBytesSequenceItemAdLayoutRenderer");var fA=new g.eT("playerUnderlayAdLayoutRenderer");var WJ=new g.eT("adIntroRenderer");var vJ=new g.eT("playerBytesSequentialLayoutRenderer");var YkX=new g.eT("slidingTextPlayerOverlayRenderer");var id=new g.eT("surveyTextInterstitialRenderer");var Ro=new g.eT("videoAdTrackingRenderer");var pGf=new g.eT("simpleAdBadgeRenderer");var Pq=new g.eT("skipAdRenderer"),Qto=new g.eT("skipButtonRenderer");var g6=new g.eT("adSlotRenderer");var xr=new g.eT("squeezebackPlayerSidePanelRenderer");var ZaL=new g.eT("timedPieCountdownRenderer");var ZX=new g.eT("adAvatarViewModel");var Oh=new g.eT("adBadgeViewModel");var ml=new g.eT("adButtonViewModel");var Oaj=new g.eT("adDetailsLineViewModel");var mVT=new g.eT("adDisclosureBannerViewModel");var gRo=new g.eT("adPodIndexViewModel");var yFW=new g.eT("imageBackgroundViewModel");var nRj=new g.eT("adGridCardCollectionViewModel");var DVF=new g.eT("adGridCardTextViewModel");var Izo=new g.eT("adPreviewViewModel");var uvo=new g.eT("playerAdAvatarLockupCardButtonedViewModel");var Kaz=new g.eT("skipAdButtonViewModel");var q8m=new g.eT("skipAdViewModel");var Chf=new g.eT("timedPieCountdownViewModel");var UsT=new g.eT("visitAdvertiserLinkViewModel");var LA=new g.eT("bannerImageLayoutViewModel");var r6=new g.eT("topBannerImageTextIconButtonedLayoutViewModel");var ld=new g.eT("adsEngagementPanelLayoutViewModel");var sl=new g.eT("displayUnderlayTextGridCardsLayoutViewModel");g.BT=new g.eT("browseEndpoint");var Yno=new g.eT("confirmDialogEndpoint");var etl=new g.eT("commandContext");var $R3=new g.eT("rawColdConfigGroup");var VhS=new g.eT("rawHotConfigGroup");g.w1=new g.eT("commandExecutorCommand");g.w(b_c,ik);var zI4={krw:0,fbv:1,CGn:32,wfE:61,WpY:67,YZf:103,H4y:86,n_J:42,V9s:60,ZcW:62,i4X:73,XST:76,TwI:88,xRY:90,Ajr:99,pSY:98,oDn:100,M4Y:102,vDf:41,smY:69,jmT:70,DRw:71,kGT:2,rST:27,ANDROID:3,lGv:54,LWE:14,X5T:91,q$E:55,aGf:24,ECY:20,p5v:18,nCv:21,Clf:104,iJv:30,HJw:29,Y_W:28,zZJ:101,TFW:34,Mjw:36,RLy:38,IOS:5,UFT:15,cww:92,JwI:40,ebW:25,SxI:17,kTn:19,rwv:64,GTY:66,ywY:26,dFJ:22,zbW:33,mFW:68,tLY:35,giy:53,OXE:37,K9W:39,v_f:7,sVw:57,jVf:43,u8n:59,D0W:93,PNX:74,QVT:75,FTy:85,Iby:65,JWI:80,KTI:8,WTT:10, Sbf:58,eZy:63,U0w:72,wgr:23,FpT:11,IHs:13,bJJ:12,AWT:16,RZT:56,PHJ:31,KFW:77,akW:84,hZW:87,plI:89,EmY:94,ohn:95};g.w(Bu,ik);Bu.prototype.Cb=function(){return u3(this,3)}; Bu.prototype.Ho=function(){return u3(this,5)}; Bu.prototype.Pr=function(U){return CG(this,5,U)};g.w(Xz,ik);g.w(pLX,ik);g.w(k4,ik);g.W=k4.prototype;g.W.getDeviceId=function(){return u3(this,6)}; g.W.j0=function(U){var Y=Bp(this,9,bm,3,!0);WB(Y,U);return Y[U]}; g.W.getPlayerType=function(){return KG(this,36)}; g.W.setHomeGroupInfo=function(U){return mA(this,pLX,81,U)}; g.W.clearLocationPlayabilityToken=function(){return J1(this,89)};g.w(R5,ik);R5.prototype.getValue=function(){return u3(this,Mz(this,loX,2))}; var loX=[2,3,4,5,6];g.w(a5,ik);a5.prototype.setTrackingParams=function(U){return J1(this,1,Kal(U,!1))};g.w(x4,ik);g.w(s3,ik);s3.prototype.j0=function(U){var Y=Bp(this,5,p2,3,!0);WB(Y,U);return Y[U]};g.w(fF,ik);fF.prototype.getToken=function(){return nG(this,2)}; fF.prototype.setToken=function(U){return CG(this,2,U)};g.w(ha,ik);ha.prototype.setSafetyMode=function(U){return YH(this,5,U)};g.w(ST,ik);ST.prototype.PC=function(U){return mA(this,k4,1,U)};var Ol=new g.eT("thumbnailLandscapePortraitRenderer");g.AUz=new g.eT("changeEngagementPanelVisibilityAction");var w9X=new g.eT("continuationCommand");g.cUo=new g.eT("openPopupAction");g.W2=new g.eT("webCommandMetadata");var bAc=new g.eT("metadataBadgeRenderer");var Wwc=new g.eT("signalServiceEndpoint");var p$=new g.eT("innertubeCommand");var EFV=new g.eT("loggingDirectives");var Nqc={IkE:"EMBEDDED_PLAYER_MODE_UNKNOWN",u9X:"EMBEDDED_PLAYER_MODE_DEFAULT",FDn:"EMBEDDED_PLAYER_MODE_PFP",Q4W:"EMBEDDED_PLAYER_MODE_PFL"};var lhX=new g.eT("channelThumbnailEndpoint");var rKX=new g.eT("embeddedPlayerErrorMessageRenderer");var Eyl=new g.eT("embeddedPlayerOverlayVideoDetailsRenderer"),Pyc=new g.eT("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),VQ3=new g.eT("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var hA4=new g.eT("embedsInfoPanelRenderer");var dsY=new g.eT("feedbackEndpoint");var Tfm=new g.eT("callToActionButtonViewModel");var Enz=new g.eT("interactionLoggingCommandMetadata");var iFS={E_X:"WEB_DISPLAY_MODE_UNKNOWN",lbY:"WEB_DISPLAY_MODE_BROWSER",qbv:"WEB_DISPLAY_MODE_MINIMAL_UI",abY:"WEB_DISPLAY_MODE_STANDALONE",LTn:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(MY,ik);MY.prototype.getPlayerType=function(){return KG(this,7)}; MY.prototype.SM=function(){return u3(this,19)}; MY.prototype.setVideoId=function(U){return CG(this,19,U)};g.w(be,ik);g.w(pF,ik);g.w(Qw,ik); var onL=[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,506,507,509,511,512,513,514,515,516];var zZY=new g.eT("loggingContext");g.w(ZQ,ik);g.w(O3,ik);O3.prototype.SM=function(){return nG(this,Mz(this,V4,1))}; O3.prototype.setVideoId=function(U){return h1(this,1,V4,I1(U))}; O3.prototype.getPlaylistId=function(){return nG(this,Mz(this,V4,2))}; var V4=[1,2];g.w(Q_c,ik);var cT=new g.eT("changeKeyedMarkersVisibilityCommand");var L2o=new g.eT("changeMarkersVisibilityCommand");var Qov=new g.eT("loadMarkersCommand");var rUw=new g.eT("suggestedActionDataViewModel");var an4=new g.eT("timelyActionViewModel");var RtE=new g.eT("timelyActionsOverlayViewModel");var Q23=new g.eT("productListItemRenderer");var lHI=new g.eT("shoppingOverlayRenderer");var oyE=new g.eT("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Plo=new g.eT("adFeedbackEndpoint");var VFT=new g.eT("menuEndpoint");var IXc=new g.eT("phoneDialerEndpoint");var nb8=new g.eT("sendSmsEndpoint");var Ty9=new g.eT("copyTextEndpoint");var $sm=new g.eT("shareEndpoint"),vno=new g.eT("shareEntityEndpoint"),HRL=new g.eT("shareEntityServiceEndpoint"),G$Y=new g.eT("webPlayerShareEntityServiceEndpoint");g.pW=new g.eT("urlEndpoint");g.Yp=new g.eT("watchEndpoint");var W2O=new g.eT("watchPlaylistEndpoint");g.wiz=new g.eT("offlineOrchestrationActionCommand");var WrE=new g.eT("compositeVideoOverlayRenderer");var iRW=new g.eT("miniplayerRenderer");var cKv=new g.eT("paidContentOverlayRenderer");var JUo=new g.eT("playerMutedAutoplayOverlayRenderer"),F2W=new g.eT("playerMutedAutoplayEndScreenRenderer");var KKY=new g.eT("unserializedPlayerResponse"),jHq=new g.eT("unserializedPlayerResponse");var Nfq=new g.eT("playlistEditEndpoint");var wG;g.ZK=new g.eT("buttonRenderer");wG=new g.eT("toggleButtonRenderer");var Psv=new g.eT("counterfactualRenderer");var tFw=new g.eT("resolveUrlCommandMetadata");var eZj=new g.eT("modifyChannelNotificationPreferenceEndpoint");var i$X=new g.eT("pingingEndpoint");var Bfz=new g.eT("unsubscribeEndpoint");g.Xr=new g.eT("subscribeButtonRenderer");var Xiq=new g.eT("subscribeEndpoint");var R_v=new g.eT("buttonViewModel");var $Iv=new g.eT("qrCodeRenderer");var r4l={X7Y:"LIVING_ROOM_APP_MODE_UNSPECIFIED",CLI:"LIVING_ROOM_APP_MODE_MAIN",niy:"LIVING_ROOM_APP_MODE_KIDS",VLr:"LIVING_ROOM_APP_MODE_MUSIC",hbJ:"LIVING_ROOM_APP_MODE_UNPLUGGED",RbY:"LIVING_ROOM_APP_MODE_GAMING"};var xKc=new g.eT("autoplaySwitchButtonRenderer");var XX,BR4,dKV,bMX;XX=new g.eT("decoratedPlayerBarRenderer");BR4=new g.eT("chapteredPlayerBarRenderer");dKV=new g.eT("multiMarkersPlayerBarRenderer");bMX=new g.eT("chapterRenderer");g.akX=new g.eT("markerRenderer");var mE9=new g.eT("decoratedPlayheadRenderer");var Slv=new g.eT("desktopOverlayConfigRenderer");var H58=new g.eT("engagementPanelSectionListRenderer");var fK4=new g.eT("gatedActionsOverlayViewModel");var hcV=new g.eT("heatMarkerRenderer");var fk9=new g.eT("heatmapRenderer");var pJV=new g.eT("watchToWatchTransitionRenderer");var zL3=new g.eT("playlistPanelRenderer");var k$o=new g.eT("productUpsellSuggestedActionViewModel");var RZI=new g.eT("suggestedActionTimeRangeTrigger"),aHz=new g.eT("suggestedActionsRenderer"),xsI=new g.eT("suggestedActionRenderer");var SdX=new g.eT("timedMarkerDecorationRenderer");var Bt4=new g.eT("cipher");var qMv=new g.eT("playerVars");var sHI=new g.eT("playerVars");var iS=g.Dc.window,fHo,hZL,mO=(iS==null?void 0:(fHo=iS.yt)==null?void 0:fHo.config_)||(iS==null?void 0:(hZL=iS.ytcfg)==null?void 0:hZL.data_)||{};g.Ic("yt.config_",mO);var ue=[];var K3S=/^[\w.]*$/,nU9={q:!0,search_query:!0},yjX=String(Us);var rF=new function(){var U=window.document;this.Y=window;this.T=U}; g.Ic("yt.ads_.signals_.getAdSignalsString",function(U){return YG(Pn(U))});g.om();var CF3="XMLHttpRequest"in g.Dc?function(){return new XMLHttpRequest}:null;var SnY="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.X(SnY);var cZX={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-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},$vc="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.X(SnY)),rZE=!1,oCl=NL;g.w(Bn,lw);R4.prototype.then=function(U,Y,A){return this.Y?this.Y.then(U,Y,A):this.T===1&&U?(U=U.call(A,this.W))&&typeof U.then==="function"?U:xG(U):this.T===2&&Y?(U=Y.call(A,this.W))&&typeof U.then==="function"?U:a4(U):this}; R4.prototype.getValue=function(){return this.W}; R4.prototype.jh=function(){return this.T==2}; R4.prototype.$goog_Thenable=!0;var fl=!1;var DN=Kl||qL;var FIc=/^([0-9\.]+):([0-9\.]+)$/;g.w(Vo,lw);Vo.prototype.name="BiscottiError";g.w(P5,lw);P5.prototype.name="BiscottiMissingError";var ep3={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},$x=null;var dFX=VX(["data-"]),hpX={};var MFw=0,v5=g.DH?"webkit":bp?"moz":g.vF?"ms":g.k1?"o":"",bRO=g.u8("ytDomDomGetNextId")||function(){return++MFw}; g.Ic("ytDomDomGetNextId",bRO);var pPX={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};Ju.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Ju.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Ju.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var FC=g.Dc.ytEventsEventsListeners||{};g.Ic("ytEventsEventsListeners",FC);var OBv=g.Dc.ytEventsEventsCounter||{count:0};g.Ic("ytEventsEventsCounter",OBv);var nC9=$J(function(){var U=!1;try{var Y=Object.defineProperty({},"passive",{get:function(){U=!0}}); window.addEventListener("test",null,Y)}catch(A){}return U}),mvX=$J(function(){var U=!1; try{var Y=Object.defineProperty({},"capture",{get:function(){U=!0}}); window.addEventListener("test",null,Y)}catch(A){}return U});var Jn;Jn=window;g.y=Jn.ytcsi&&Jn.ytcsi.now?Jn.ytcsi.now:Jn.performance&&Jn.performance.timing&&Jn.performance.now&&Jn.performance.timing.navigationStart?function(){return Jn.performance.timing.navigationStart+Jn.performance.now()}:function(){return(new Date).getTime()};g.rL(B5,g.p);B5.prototype.X=function(U){U.Y===void 0&&QMS(U);var Y=U.Y;U.T===void 0&&QMS(U);this.Y=new g.RH(Y,U.T)}; B5.prototype.i8=function(){return this.Y||new g.RH}; B5.prototype.Pw=function(){if(this.Y){var U=(0,g.y)();if(this.j!=0){var Y=this.J,A=this.Y,c=Y.x-A.x;Y=Y.y-A.y;c=Math.sqrt(c*c+Y*Y)/(U-this.j);this.T[this.W]=Math.abs((c-this.K)/this.K)>.5?1:0;for(A=Y=0;A<4;A++)Y+=this.T[A]||0;Y>=3&&this.G();this.K=c}this.j=U;this.J=this.Y;this.W=(this.W+1)%4}}; B5.prototype.Tn=function(){g.Wn(this.Z);g.NR(this.Hw)};g.w(XC,g.p);XC.prototype.N=function(U,Y,A,c,d){A=g.M(g.qY((0,g.dL)(A,c||this.AP)));A={target:U,name:Y,callback:A};var T;d&&nC9()&&(T={passive:!0});U.addEventListener(Y,A.callback,T);this.Z.push(A);return A}; XC.prototype.FY=function(U){for(var Y=0;Y=Q.Os)||N.Y.version>=K||N.Y.objectStoreNames.contains(h)||B.push(h)}r=B;if(r.length===0){F.uY(5);break}l=Object.keys(A.options.fR); P=L.objectStoreNames();if(A.KA.options.version+1)throw v.close(),A.W=!1,fUV(A,H);return F.return(v);case 8:throw Y(), V instanceof Error&&!g.ir("ytidb_async_stack_killswitch")&&(V.stack=V.stack+"\n"+E.substring(E.indexOf("\n")+1)),JQ(V,A.name,"",(G=A.options.version)!=null?G:-1);}})} function Y(){A.Y===c&&(A.Y=void 0)} var A=this;if(!this.W)throw fUV(this);if(this.Y)return this.Y;var c,d={blocking:function(T){T.close()}, closed:Y,K6T:Y,upgrade:this.options.upgrade};return this.Y=c=U()};var yb=new mv("YtIdbMeta",{fR:{databases:{Os:1}},upgrade:function(U,Y){Y(1)&&g.k6(U,"databases",{keyPath:"actualName"})}});var Kg,uW=new function(){}(new function(){});new g.VI;g.w(UC,mv);UC.prototype.T=function(U,Y,A){A=A===void 0?{}:A;return(this.options.shared?mQX:OZX)(U,Y,Object.assign({},A))}; UC.prototype.delete=function(U){U=U===void 0?{}:U;return(this.options.shared?DQv:gcY)(this.name,U)};var DsY={},u7Y=g.YF("ytGcfConfig",{fR:(DsY.coldConfigStore={Os:1},DsY.hotConfigStore={Os:1},DsY),shared:!1,upgrade:function(U,Y){Y(1)&&(g.SA(g.k6(U,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.SA(g.k6(U,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.w(c9,g.p);c9.prototype.Tn=function(){for(var U=g.J(this.T),Y=U.next();!Y.done;Y=U.next()){var A=this.Y;Y=A.indexOf(Y.value);Y>=0&&A.splice(Y,1)}this.T.length=0;g.p.prototype.Tn.call(this)};Lc.prototype.Pr=function(U){this.hotHashData=U;g.Ic("yt.gcf.config.hotHashData",this.hotHashData||null)};var IHq=typeof TextEncoder!=="undefined"?new TextEncoder:null,bFX=IHq?function(U){return IHq.encode(U)}:function(U){U=g.CC(U); for(var Y=new Uint8Array(U.length),A=0;A=Y?!1:!0}; g.W.Xx=function(){var U=this;if(!Mb(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.XX.Q2("QUEUED",this.iB).then(function(Y){Y&&!U.nG(Y,U.xK)?U.F8.iN(function(){return g.S(function(A){if(A.T==1)return Y.id===void 0?A.uY(2):g.x(A,U.XX.dI(Y.id,U.iB),2);U.Xx();g.i8(A)})}):U.dY.gY()&&U.lU()})};var Qx;var G0X={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,vrCowatchUserStartOrJoinEvent:504,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, mdeQosEvent:510,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,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,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,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var K2z={},cfc=g.YF("ServiceWorkerLogsDatabase",{fR:(K2z.SWHealthLog={Os:1},K2z),shared:!0,upgrade:function(U,Y){Y(1)&&g.SA(g.k6(U,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var mw={},Lmv=0;var gU;nc.prototype.requestComplete=function(U,Y){Y&&(this.T=!0);U=this.removeParams(U);this.Y.get(U)||this.Y.set(U,Y)}; nc.prototype.isEndpointCFR=function(U){U=this.removeParams(U);return(U=this.Y.get(U))?!1:U===!1&&this.T?!0:null}; nc.prototype.removeParams=function(U){return U.split("?")[0]}; nc.prototype.removeParams=nc.prototype.removeParams;nc.prototype.isEndpointCFR=nc.prototype.isEndpointCFR;nc.prototype.requestComplete=nc.prototype.requestComplete;nc.getInstance=D1;g.w(IU,g.PO);g.W=IU.prototype;g.W.gY=function(){return this.Y.gY()}; g.W.CZ=function(U){this.Y.Y=U}; g.W.GK=function(){var U=window.navigator.onLine;return U===void 0?!0:U}; g.W.TY=function(){this.T=!0}; g.W.listen=function(U,Y){return this.Y.listen(U,Y)}; g.W.Y1=function(U){U=pB(this.Y,U);U.then(function(Y){g.ir("use_cfr_monitor")&&D1().requestComplete("generate_204",Y)}); return U}; IU.prototype.sendNetworkCheckRequest=IU.prototype.Y1;IU.prototype.listen=IU.prototype.listen;IU.prototype.enableErrorFlushing=IU.prototype.TY;IU.prototype.getWindowStatus=IU.prototype.GK;IU.prototype.networkStatusHint=IU.prototype.CZ;IU.prototype.isNetworkAvailable=IU.prototype.gY;IU.getInstance=Pr3;g.w(g.uz,g.PO);g.uz.prototype.gY=function(){var U=g.u8("yt.networkStatusManager.instance.isNetworkAvailable");return U?U.bind(this.T)():!0}; g.uz.prototype.CZ=function(U){var Y=g.u8("yt.networkStatusManager.instance.networkStatusHint").bind(this.T);Y&&Y(U)}; g.uz.prototype.Y1=function(U){var Y=this,A;return g.S(function(c){A=g.u8("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Y.T);return g.ir("skip_network_check_if_cfr")&&D1().isEndpointCFR("generate_204")?c.return(new Promise(function(d){var T;Y.CZ(((T=window.navigator)==null?void 0:T.onLine)||!0);d(Y.gY())})):A?c.return(A(U)):c.return(!0)})};var Kc;g.w(qb,bz);qb.prototype.writeThenSend=function(U,Y){Y||(Y={});Y=Ui(U,Y);g.uH()||(this.Y=!1);bz.prototype.writeThenSend.call(this,U,Y)}; qb.prototype.sendThenWrite=function(U,Y,A){Y||(Y={});Y=Ui(U,Y);g.uH()||(this.Y=!1);bz.prototype.sendThenWrite.call(this,U,Y,A)}; qb.prototype.sendAndWrite=function(U,Y){Y||(Y={});Y=Ui(U,Y);g.uH()||(this.Y=!1);bz.prototype.sendAndWrite.call(this,U,Y)}; qb.prototype.awaitInitialization=function(){return this.W.promise};var GwS=g.Dc.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ic("ytNetworklessLoggingInitializationOptions",GwS);g.YS.prototype.isReady=function(){!this.config_&&VTc()&&(this.config_=g.lz());return!!this.config_};var qnq,dn,Ei;qnq=g.Dc.ytPubsubPubsubInstance||new g.BF;dn=g.Dc.ytPubsubPubsubSubscribedKeys||{};Ei=g.Dc.ytPubsubPubsubTopicToKeys||{};g.T4=g.Dc.ytPubsubPubsubIsSynchronous||{};g.BF.prototype.subscribe=g.BF.prototype.subscribe;g.BF.prototype.unsubscribeByKey=g.BF.prototype.H5;g.BF.prototype.publish=g.BF.prototype.publish;g.BF.prototype.clear=g.BF.prototype.clear;g.Ic("ytPubsubPubsubInstance",qnq);g.Ic("ytPubsubPubsubTopicToKeys",Ei);g.Ic("ytPubsubPubsubIsSynchronous",g.T4); g.Ic("ytPubsubPubsubSubscribedKeys",dn);var j43={};g.w(iV,g.p);iV.prototype.append=function(U){if(!this.T)throw Error("This does not support the append operation");U=U.jc();this.jc().appendChild(U)}; g.w(JH,iV);JH.prototype.jc=function(){return this.Y};g.w(Fa,g.p);Fa.prototype.onTouchStart=function(U){this.G=!0;this.T=U.touches.length;this.Y.isActive()&&(this.Y.stop(),this.K=!0);U=U.touches;this.J=eHE(this,U)||U.length!=1;var Y=U.item(0);this.J||!Y?this.X=this.Z=Infinity:(this.Z=Y.clientX,this.X=Y.clientY);for(Y=this.W.length=0;Y=0)}if(Y||U&&Math.pow(U.clientX-this.Z,2)+Math.pow(U.clientY-this.X,2)>25)this.j=!0}; Fa.prototype.onTouchEnd=function(U){var Y=U.changedTouches;Y&&this.G&&this.T==1&&!this.j&&!this.K&&!this.J&&eHE(this,Y)&&(this.Pw=U,this.Y.start());this.T=U.touches.length;this.T===0&&(this.j=this.G=!1,this.W.length=0);this.K=!1};var jH=Date.now().toString();var Xa={};var fT=Symbol("injectionDeps");RQ.prototype.toString=function(){return"InjectionToken("+this.name+")"}; kw9.prototype.resolve=function(U){return U instanceof aQ?hH(this,U.key,[],!0):hH(this,U,[])};var SH;var bV=window;var Oi=g.ir("web_enable_lifecycle_monitoring")&&pT()!==0,Ss3=g.ir("web_enable_lifecycle_monitoring");s4Y.prototype.cancel=function(){for(var U=g.J(this.Y),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.jobId===void 0||Y.gU||this.scheduler.J$(Y.jobId),Y.gU=!0;this.T.resolve()};g.W=mq.prototype;g.W.install=function(U){this.plugins.push(U);return this}; g.W.uninstall=function(){var U=this;g.SS.apply(0,arguments).forEach(function(Y){Y=U.plugins.indexOf(Y);Y>-1&&U.plugins.splice(Y,1)})}; g.W.transition=function(U,Y){var A=this;Oi&&aDS(this.state);var c=this.transitions.find(function(T){return Array.isArray(T.from)?T.from.find(function(E){return E===A.state&&T.to===U}):T.from===A.state&&T.to===U}); if(c){this.T&&(fD9(this.T),this.T=void 0);Mr4(this,U,Y);this.state=U;Oi&&QO(this.state);c=c.action.bind(this);var d=this.plugins.filter(function(T){return T[U]}).map(function(T){return T[U]}); c(hHX(this,d),Y)}else throw Error("no transition specified from "+this.state+" to "+U);}; g.W.U1I=function(U){var Y=g.SS.apply(1,arguments);g.Y6();for(var A=g.J(U),c=A.next(),d={};!c.done;d={Sy:void 0},c=A.next())d.Sy=c.value,Ecv(function(T){return function(){yO(T.Sy.name);Ds(function(){return T.Sy.callback.apply(T.Sy,g.X(Y))}); nT(T.Sy.name)}}(d))}; g.W.IAT=function(U){var Y=g.SS.apply(1,arguments),A,c,d,T;return g.S(function(E){E.T==1&&(g.Y6(),A=g.J(U),c=A.next(),d={});if(E.T!=3){if(c.done)return E.uY(0);d.g$=c.value;d.ZE=void 0;T=function(L){return function(){yO(L.g$.name);var r=Ds(function(){return L.g$.callback.apply(L.g$,g.X(Y))}); GI(r)?L.ZE=g.ir("web_lifecycle_error_handling_killswitch")?r.then(function(){nT(L.g$.name)}):r.then(function(){nT(L.g$.name)},function(l){xLY(l); nT(L.g$.name)}):nT(L.g$.name)}}(d); Ecv(T);return d.ZE?g.x(E,d.ZE,3):E.uY(3)}d={g$:void 0,ZE:void 0};c=A.next();return E.uY(2)})}; g.W.Rd=function(U){var Y=g.SS.apply(1,arguments),A=this,c=U.map(function(d){return{UP:function(){yO(d.name);Ds(function(){return d.callback.apply(d,g.X(Y))}); nT(d.name)}, priority:gn(A,d)}}); c.length&&(this.T=new s4Y(c))}; g.oc.Object.defineProperties(mq.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var uV;g.w(IQ,mq);IQ.prototype.K=function(U,Y){var A=this;this.Y=g.CU(0,function(){A.currentState==="application_navigating"&&A.transition("none")},5E3); U(Y==null?void 0:Y.event)}; IQ.prototype.J=function(U,Y){this.Y&&(g.ZG.J$(this.Y),this.Y=null);U(Y==null?void 0:Y.event)};var Jz=[];g.Ic("yt.logging.transport.getScrapedGelPayloads",function(){return Jz});KT.prototype.storePayload=function(U,Y){U=qk(U);this.store[U]?this.store[U].push(Y):(this.T={},this.store[U]=[Y]);this.Y++;g.ir("more_accurate_gel_parser")&&(Y=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Y));return U}; KT.prototype.smartExtractMatchingEntries=function(U){if(!U.keys.length)return[];for(var Y=UZ(this,U.keys.splice(0,1)[0]),A=[],c=0;c=0){c=!1;break a}}c=!0}c&&(Y=ZS(Y))&&this.VO(Y)}}; g.W.YK=function(U){return U}; g.W.onTouchStart=function(U){this.ov.onTouchStart(U)}; g.W.onTouchMove=function(U){this.ov.onTouchMove(U)}; g.W.onTouchEnd=function(U){if(this.ov)this.ov.onTouchEnd(U)}; g.W.VO=function(U){this.layoutId?this.Bw.executeCommand(U,this.layoutId):(U=new g.Do("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.S5(U))}; g.W.createServerVe=function(U,Y){this.api.createServerVe(U,this);this.api.setTrackingParams(U,Y)}; g.W.logVisibility=function(U,Y){this.api.hasVe(U)&&this.api.logVisibility(U,Y,this.interactionLoggingClientData)}; g.W.Tn=function(){this.clear(null);this.FY(this.VJ);for(var U=g.J(this.jX),Y=U.next();!Y.done;Y=U.next())this.FY(Y.value);g.Ha.prototype.Tn.call(this)};g.w(hA,G2); hA.prototype.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);this.Y=Y;if(Y.text==null&&Y.icon==null)g.Md(Error("ButtonRenderer did not have text or an icon set."));else{switch(Y.style||null){case "STYLE_UNKNOWN":U="ytp-ad-button-link";break;default:U=null}U!=null&&g.ou(this.element,U);Y.text!=null&&(U=g.wB(Y.text),g.HG(U)||(this.element.setAttribute("aria-label",U),this.W=new g.Ha({D:"span",B:"ytp-ad-button-text",YE:U}),g.Z(this,this.W),this.W.Df(this.element)));Y.accessibilityData&&Y.accessibilityData.accessibilityData&& Y.accessibilityData.accessibilityData.label&&!g.HG(Y.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",Y.accessibilityData.accessibilityData.label);Y.icon!=null&&(Y=fW(Y.icon,this.j),Y!=null&&(this.T=new g.Ha({D:"span",B:"ytp-ad-button-icon",C:[Y]}),g.Z(this,this.T)),this.J?AD(this.element,this.T.element,0):this.T.Df(this.element))}}; hA.prototype.clear=function(){this.hide()}; hA.prototype.onClick=function(U){G2.prototype.onClick.call(this,U);U=g.J(xC8(this));for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,this.layoutId?this.Bw.executeCommand(Y,this.layoutId):g.S5(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(Sb,g.p);Sb.prototype.Tn=function(){this.T&&g.NR(this.T);this.Y.clear();Mq=null;g.p.prototype.Tn.call(this)}; Sb.prototype.register=function(U,Y){Y&&this.Y.set(U,Y)}; var Mq=null;g.w(Qu,G2); Qu.prototype.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);U=Y.hoverText||null;Y=Y.button&&g.O(Y.button,g.ZK)||null;Y==null?g.S5(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new hA(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,void 0,void 0,void 0,void 0,this.W),g.Z(this,this.button),this.button.init(LW("button"),Y,this.macros),U&&this.button.element.setAttribute("aria-label",g.wB(U)),this.button.Df(this.element),this.X&&!g.E4(this.button.element, "ytp-ad-clickable")&&g.ou(this.button.element,"ytp-ad-clickable"),this.W&&g.ou(this.button.element,"ytp-ad-hover-text-button--clean-player"),U&&(this.T=new g.Ha({D:"div",B:"ytp-ad-hover-text-container"}),this.J&&(Y=new g.Ha({D:"div",B:"ytp-ad-hover-text-callout"}),Y.Df(this.T.element),g.Z(this,Y)),g.Z(this,this.T),this.T.Df(this.element),Y=b6(U),AD(this.T.element,Y,0)),this.show())}; Qu.prototype.hide=function(){this.button&&this.button.hide();this.T&&this.T.hide();G2.prototype.hide.call(this)}; Qu.prototype.show=function(){this.button&&this.button.show();G2.prototype.show.call(this)};g.w(OD,G2); OD.prototype.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);A=(U=Y.thumbnail)&&ZZ(U)||"";g.HG(A)?Math.random()<.01&&g.Md(Error("Found AdImage without valid image URL")):(this.Y?g.MP(this.element,"backgroundImage","url("+A+")"):nR(this.element,{src:A}),nR(this.element,{alt:U&&U.accessibility&&U.accessibility.label||""}),Y&&Y.adRendererCommands&&Y.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; OD.prototype.clear=function(){this.hide()};g.w(mj,G2);g.W=mj.prototype;g.W.hide=function(){G2.prototype.hide.call(this);this.W&&this.W.focus()}; g.W.show=function(){this.W=document.activeElement;G2.prototype.show.call(this);this.j.focus()}; g.W.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);this.T=Y;Y.dialogMessages||Y.title!=null?Y.confirmLabel==null?g.S5(Error("ConfirmDialogRenderer.confirmLabel was not set.")):Y.cancelLabel==null?g.S5(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Su8(this,Y):g.S5(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.W.clear=function(){g.Rb(this.Y);this.hide()}; g.W.HA=function(){this.hide()}; g.W.zZ=function(){var U=this.T.cancelEndpoint;U&&(this.layoutId?this.Bw.executeCommand(U,this.layoutId):g.S5(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.W.Yo=function(){var U=this.T.confirmNavigationEndpoint||this.T.confirmEndpoint;U&&(this.layoutId?this.Bw.executeCommand(U,this.layoutId):g.S5(Error("Missing layoutId for confirm dialog.")));this.hide()};g.w(gB,G2);g.W=gB.prototype; g.W.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);this.W=Y;if(Y.defaultText==null&&Y.defaultIcon==null)g.S5(Error("ToggleButtonRenderer must have either text or icon set."));else if(Y.defaultIcon==null&&Y.toggledIcon!=null)g.S5(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(Y.style){switch(Y.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":U="ytp-ad-toggle-button-default-style";break;default:U=null}U!=null&&g.ou(this.j,U)}U={};Y.defaultText? (A=g.wB(Y.defaultText),g.HG(A)||(U.buttonText=A,this.api.L().experiments.lY("a11y_h5_associate_survey_question")||this.Y.setAttribute("aria-label",A),this.api.L().experiments.lY("fix_h5_toggle_button_a11y")&&this.T.setAttribute("aria-label",A))):g.up(this.QJ,!1);Y.defaultTooltip&&(U.tooltipText=Y.defaultTooltip,this.Y.hasAttribute("aria-label")||this.T.setAttribute("aria-label",Y.defaultTooltip));Y.defaultIcon?(A=fW(Y.defaultIcon),this.updateValue("untoggledIconTemplateSpec",A),Y.toggledIcon?(this.Hw= !0,A=fW(Y.toggledIcon),this.updateValue("toggledIconTemplateSpec",A)):(g.up(this.X,!0),g.up(this.J,!1)),g.up(this.Y,!1)):g.up(this.T,!1);g.qF(U)||this.update(U);Y.isToggled&&(g.ou(this.j,"ytp-ad-toggle-button-toggled"),this.toggleButton(Y.isToggled));yu(this);this.N(this.element,"change",this.KB);this.show()}}; g.W.onClick=function(U){this.jX.length>0&&(this.toggleButton(!this.isToggled()),this.KB());G2.prototype.onClick.call(this,U)}; g.W.KB=function(){g.lg(this.j,"ytp-ad-toggle-button-toggled",this.isToggled());for(var U=g.J(MAv(this,this.isToggled())),Y=U.next();!Y.done;Y=U.next())Y=Y.value,this.layoutId?this.Bw.executeCommand(Y,this.layoutId):g.S5(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);yu(this)}; g.W.clear=function(){this.hide()}; g.W.toggleButton=function(U){g.lg(this.j,"ytp-ad-toggle-button-toggled",U);this.Y.checked=U;yu(this)}; g.W.isToggled=function(){return this.Y.checked};g.w(nW,XC);nW.prototype.J=function(U){if(Array.isArray(U)){U=g.J(U);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y instanceof bg4&&this.j(Y)}};g.w(DZ,G2);g.W=DZ.prototype;g.W.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);Y.reasons?Y.confirmLabel==null?g.S5(Error("AdFeedbackRenderer.confirmLabel was not set.")):(Y.cancelLabel==null&&g.Md(Error("AdFeedbackRenderer.cancelLabel was not set.")),Y.title==null&&g.Md(Error("AdFeedbackRenderer.title was not set.")),Ogl(this,Y)):g.S5(Error("AdFeedbackRenderer.reasons were not set."))}; g.W.clear=function(){tu(this.J);tu(this.X);this.j.length=0;this.hide()}; g.W.hide=function(){this.Y&&this.Y.hide();this.T&&this.T.hide();G2.prototype.hide.call(this);this.W&&this.W.focus()}; g.W.show=function(){this.Y&&this.Y.show();this.T&&this.T.show();this.W=document.activeElement;G2.prototype.show.call(this);this.J.focus()}; g.W.pC=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.W.jxY=function(){this.hide()}; I8.prototype.jc=function(){return this.Y.element}; I8.prototype.getCommand=function(){return this.T}; I8.prototype.isChecked=function(){return this.W.checked};g.w(u6,mj);u6.prototype.HA=function(U){mj.prototype.HA.call(this,U);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; u6.prototype.zZ=function(U){mj.prototype.zZ.call(this,U);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; u6.prototype.Yo=function(U){mj.prototype.Yo.call(this,U);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.w(KW,G2);g.W=KW.prototype; g.W.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);this.J=Y;if(Y.dialogMessage==null&&Y.title==null)g.S5(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{Y.confirmLabel==null&&g.Md(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(U=Y.closeOverlayRenderer&&g.O(Y.closeOverlayRenderer,g.ZK)||null)this.Y=new hA(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.Z(this,this.Y),this.Y.init(LW("button"),U,this.macros),this.Y.Df(this.element);Y.title&&(U=g.wB(Y.title),this.updateValue("title",U));if(Y.adReasons)for(U=Y.adReasons,A=0;A=this.Uv?(this.Hw.hide(),this.yJ=!0,this.publish("i")):this.W&&this.W.isTemplated()&&(U=Math.max(0,Math.ceil((this.Uv-U)/1E3)),U!=this.Ly&&(Ue(this.W,{TIME_REMAINING:String(U)}),this.Ly=U)))}};g.w(oN,YD);g.W=oN.prototype; g.W.init=function(U,Y,A){YD.prototype.init.call(this,U,Y,A);if(Y.image&&Y.image.thumbnail)if(Y.headline)if(Y.description)if((U=Y.actionButton&&g.O(Y.actionButton,g.ZK))&&U.navigationEndpoint){var c=this.api.getVideoData(2);if(c!=null)if(Y.image&&Y.image.thumbnail){var d=Y.image.thumbnail.thumbnails;d!=null&&d.length>0&&g.HG(g.Wi(d[0].url))&&(d[0].url=c.profilePicture)}else g.Md(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.W.init(LW("ad-image"),Y.image,A);this.J.init(LW("ad-text"), Y.headline,A);this.j.init(LW("ad-text"),Y.description,A);this.T.init(LW("button"),U,A);A=nB(this.T.element);yH(this.T.element,A+" This link opens in new tab");this.Hw=U.navigationEndpoint;this.api.ME()||this.show();this.api.L().S("enable_larger_flyout_cta_on_desktop")&&(this.As("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.As("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.As("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.As("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.As("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.As("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.T.element.classList.add("ytp-flyout-cta-action-button-large"),this.T.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.As("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Sk.bind(this));this.QJ=Y.startMs||0;A_(this)}else g.S5(Error("FlyoutCtaRenderer has no valid action button."));else g.S5(Error("FlyoutCtaRenderer has no description AdText."));else g.S5(Error("FlyoutCtaRenderer has no headline AdText."));else g.Md(Error("FlyoutCtaRenderer has no image."))}; g.W.onClick=function(U){YD.prototype.onClick.call(this,U);this.api.pauseVideo();!g.dv(this.T.element,U.target)&&this.Hw&&(this.layoutId?this.Bw.executeCommand(this.Hw,this.layoutId):g.S5(Error("Missing layoutId for flyout cta.")))}; g.W.Hm=function(){if(this.Y){var U=this.Y.getProgressState();(U&&U.current||this.Uv)&&1E3*U.current>=this.QJ&&(ch(this),g.LZ(this.element,"ytp-flyout-cta-inactive"),this.T.element.removeAttribute("tabIndex"))}}; g.W.hS=function(){this.clear()}; g.W.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Sk.bind(this))}; g.W.show=function(){this.T&&this.T.show();YD.prototype.show.call(this)}; g.W.hide=function(){this.T&&this.T.hide();YD.prototype.hide.call(this)}; g.W.Sk=function(U){U=="hidden"?this.show():this.hide()};g.w(zg,G2);g.W=zg.prototype; g.W.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);this.Y=Y;if(this.Y.rectangle)for(U=this.Y.likeButton&&g.O(this.Y.likeButton,wG),Y=this.Y.dislikeButton&&g.O(this.Y.dislikeButton,wG),this.W.init(LW("toggle-button"),U,A),this.T.init(LW("toggle-button"),Y,A),this.N(this.element,"change",this.rG),this.j.show(100),this.show(),A=g.J(this.Y&&this.Y.impressionCommands||[]),U=A.next();!U.done;U=A.next())U=U.value,this.layoutId?this.Bw.executeCommand(U,this.layoutId):g.S5(Error("Missing layoutId for instream user sentiment."))}; g.W.clear=function(){this.hide()}; g.W.hide=function(){this.W.hide();this.T.hide();G2.prototype.hide.call(this)}; g.W.show=function(){this.W.show();this.T.show();G2.prototype.show.call(this)}; g.W.rG=function(){B9V(this.element,"ytp-ad-instream-user-sentiment-selected");this.Y.postMessageAction&&this.api.Ev("onYtShowToast",this.Y.postMessageAction);this.j.hide()}; g.W.onClick=function(U){this.jX.length>0&&this.rG();G2.prototype.onClick.call(this,U)};g.w(LV,g.p);g.W=LV.prototype;g.W.Tn=function(){this.reset();g.p.prototype.Tn.call(this)}; g.W.reset=function(){g.Rb(this.j);this.J=!1;this.Y&&this.Y.stop();this.K.stop();this.W&&(this.W=!1,this.G.play())}; g.W.start=function(){this.reset();this.j.N(this.T,"mouseover",this.yw,this);this.j.N(this.T,"mouseout",this.GW,this);this.Pw&&(this.j.N(this.T,"focusin",this.yw,this),this.j.N(this.T,"focusout",this.GW,this));this.Y?this.Y.start():(this.J=this.W=!0,g.MP(this.T,{opacity:this.X}))}; g.W.yw=function(){this.W&&(this.W=!1,this.G.play());this.K.stop();this.Y&&this.Y.stop()}; g.W.GW=function(){this.J?this.K.start():this.Y&&this.Y.start()}; g.W.L8=function(){this.W||(this.W=!0,this.Z.play(),this.J=!0)};var YC9=[new r1("b.f_",!1,0),new r1("j.s_",!1,2),new r1("r.s_",!1,4),new r1("e.h_",!1,6),new r1("i.s_",!0,8),new r1("s.t_",!1,10),new r1("p.h_",!1,12),new r1("s.i_",!1,14),new r1("f.i_",!1,16),new r1("a.b_",!1,18),new r1("a.o_",!1),new r1("g.o_",!1,22),new r1("p.i_",!1,24),new r1("p.m_",!1),new r1("n.k_",!0,20),new r1("i.f_",!1),new r1("a.s_",!0),new r1("m.c_",!1),new r1("n.h_",!1,26),new r1("o.p_",!1)].reduce(function(U,Y){U[Y.T]=Y;return U},{});g.w(Wh,YD);g.W=Wh.prototype; g.W.init=function(U,Y,A){YD.prototype.init.call(this,U,Y,A);this.Hw=Y;(this.QJ=cb3(this))&&g.Md(Error("hasAdControlInClickCommands_ is true."));if(!Y||g.qF(Y))g.S5(Error("SkipButtonRenderer was not specified or empty."));else if(!Y.message||g.qF(Y.message))g.S5(Error("SkipButtonRenderer.message was not specified or empty."));else{U=this.J?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};Y=fW(U);Y==null?g.S5(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+U.iconType+".")): (this.W=new g.Ha({D:"button",Iv:[this.J?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],C:[{D:"span",B:this.J?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",C:[Y]}]}),g.Z(this,this.W),this.W.Df(this.j.element),this.T=new CW(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,"ytp-ad-skip-button-text"),this.J&&this.T.element.classList.add("ytp-ad-skip-button-text-centered"),this.T.init(LW("ad-text"),this.Hw.message,A),g.Z(this,this.T),AD(this.W.element,this.T.element, 0));var c=c===void 0?null:c;A=this.api.L();!(this.jX.length>0)&&A.T&&(Xp?0:"ontouchstart"in document.documentElement&&(IfS()||JD()))&&(this.FY(this.VJ),c&&this.FY(c),this.jX=[this.N(this.element,"touchstart",this.onTouchStart,this),this.N(this.element,"touchmove",this.onTouchMove,this),this.N(this.element,"touchend",this.onTouchEnd,this)])}}; g.W.clear=function(){this.Uv.reset();this.hide()}; g.W.hide=function(){this.j.hide();this.T&&this.T.hide();ch(this);YD.prototype.hide.call(this)}; g.W.onClick=function(U){if(this.W!=null){if(U){var Y=U||window.event;Y.returnValue=!1;Y.preventDefault&&Y.preventDefault()}var A;if(CW3(U,{contentCpn:((A=this.api.getVideoData(1))==null?void 0:A.clientPlaybackNonce)||""})===0)this.api.Ev("onAbnormalityDetected");else if(YD.prototype.onClick.call(this,U),this.publish("j"),this.api.Ev("onAdSkip"),this.yJ||!this.QJ)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.W.YK=function(U){if(!this.yJ)return this.QJ&&$D("SkipButton click commands not pruned while ALC exist"),U;var Y,A=(Y=g.O(U,g.w1))==null?void 0:Y.commands;if(!A)return U;U=[];for(Y=0;Y=this.J&&dbX(this,!0)};g.w(J_,hA);J_.prototype.init=function(U,Y,A){hA.prototype.init.call(this,U,Y,A);U=!1;Y.text!=null&&(U=g.wB(Y.text),U=!g.HG(U));U?Y.navigationEndpoint==null?g.Md(Error("No visit advertiser clickthrough provided in renderer,")):Y.style!=="STYLE_UNKNOWN"?g.Md(Error("Button style was not a link-style type in renderer,")):this.show():g.Md(Error("No visit advertiser text was present in the renderer."))};g.w(FH,G2); FH.prototype.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);U=Y.text;g.HG(Wa(U))?g.Md(Error("SimpleAdBadgeRenderer has invalid or empty text")):(U&&U.text&&(Y=U.text,this.W&&!this.T&&(Y=this.api.L(),Y=U.text+" "+(Y&&Y.T?"\u2022":"\u00b7")),Y={text:Y,isTemplated:U.isTemplated},U.style&&(Y.style=U.style),U.targetId&&(Y.targetId=U.targetId),U=new CW(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),U.init(LW("simple-ad-badge"),Y,A),U.Df(this.element),g.Z(this,U)),this.show())}; FH.prototype.clear=function(){this.hide()};g.w(jR,rB);g.w(NG,g.l6);g.W=NG.prototype;g.W.Nb=function(){return this.durationMs}; g.W.stop=function(){this.Y&&this.Yr.FY(this.Y)}; g.W.ya=function(U){this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:U.current};this.publish("h")}; g.W.getProgressState=function(){return this.T}; g.W.WE=function(U){g.Gg(U,2)&&this.publish("g")};g.w(t_,g.l6);g.W=t_.prototype;g.W.Nb=function(){return this.durationMs}; g.W.start=function(){this.Y||(this.Y=!0,this.lf.start())}; g.W.stop=function(){this.Y&&(this.Y=!1,this.lf.stop())}; g.W.ya=function(){this.Jr+=100;var U=!1;this.Jr>this.durationMs&&(this.Jr=this.durationMs,this.lf.stop(),U=!0);this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Jr/1E3};this.publish("h");U&&this.publish("g")}; g.W.getProgressState=function(){return this.T};g.w(XH,YD);g.W=XH.prototype;g.W.init=function(U,Y,A){YD.prototype.init.call(this,U,Y,A);var c;if(Y==null?0:(c=Y.templatedCountdown)==null?0:c.templatedAdText){U=Y.templatedCountdown.templatedAdText;if(!U.isTemplated){g.Md(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.T=new CW(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);this.T.init(LW("ad-text"),U,{});this.T.Df(this.element);g.Z(this,this.T)}this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){ch(this);YD.prototype.hide.call(this)}; g.W.hS=function(){this.hide()}; g.W.Hm=function(){if(this.Y!=null){var U=this.Y.getProgressState();if(U!=null&&U.current!=null&&this.T){var Y=this.Y instanceof NG?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:U.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Y instanceof t_?U.seekableEnd:this.api.getDuration(2,!1);U=U.current;var A,c,d=((A=this.api.getVideoData())==null?0:(c=A.b9)==null?0:c.call(A))?Math.max(Y-U,0):Y-U;Ue(this.T,{FORMATTED_AD_DURATION_REMAINING:String(g.eR(d)), TIME_REMAINING:String(Math.ceil(d))})}}}; g.W.show=function(){A_(this);YD.prototype.show.call(this)};g.w(kD,CW);kD.prototype.onClick=function(U){CW.prototype.onClick.call(this,U);this.api.onAdUxClicked(this.componentType)};g.w(aN,G2);aN.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});if(U=Y.content){g.TH(this.element,U);var A,c;Y=((A=Y.interaction)==null?void 0:(c=A.accessibility)==null?void 0:c.label)||U;this.element.setAttribute("aria-label",Y)}else g.S5(Error("AdSimpleAttributedString does not have text content"))}; aN.prototype.clear=function(){this.hide()}; aN.prototype.onClick=function(U){G2.prototype.onClick.call(this,U)};g.w(xD,G2); xD.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});(U=Y.label)&&U.content&&!g.HG(U.content)?(this.adBadgeText.init(LW("ad-simple-attributed-string"),new RN(U)),(Y=Y.adPodIndex)&&Y.content&&!g.HG(Y.content)&&(this.Y=new aN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),this.Y.Df(this.element),g.Z(this,this.Y),this.Y.element.classList.add("ytp-ad-badge__pod-index"),this.Y.init(LW("ad-simple-attributed-string"),new RN(Y))),this.element.classList.add(this.T?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.S5(Error("No label is returned in AdBadgeViewModel."))}; xD.prototype.show=function(){this.adBadgeText.show();var U;(U=this.Y)==null||U.show();G2.prototype.show.call(this)}; xD.prototype.hide=function(){this.adBadgeText.hide();var U;(U=this.Y)==null||U.hide();G2.prototype.hide.call(this)};g.w(se,G2);se.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});(U=Y.adPodIndex)&&U.content&&!g.HG(U.content)&&(this.Y=new aN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),this.Y.Df(this.element),g.Z(this,this.Y),this.Y.init(LW("ad-simple-attributed-string"),new RN(U)),Y.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; se.prototype.show=function(){var U;(U=this.Y)==null||U.show();G2.prototype.show.call(this)}; se.prototype.hide=function(){var U;(U=this.Y)==null||U.hide();G2.prototype.hide.call(this)};g.w(fV,G2); fV.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});if(Y!=null&&Y.text){var A;if(((A=Y.text)==null?0:A.content)&&!g.HG(Y.text.content)){this.Y=new g.Ha({D:"div",B:"ytp-ad-disclosure-banner__text",YE:Y.text.content});g.Z(this,this.Y);this.Y.Df(this.element);var c,d;U=((c=Y.interaction)==null?void 0:(d=c.accessibility)==null?void 0:d.label)||Y.text.content;this.element.setAttribute("aria-label",U);var T;if((T=Y.interaction)==null?0:T.onTap)this.T=new g.Ha({D:"div",B:"ytp-ad-disclosure-banner__chevron",C:[g.jb()]}), g.Z(this,this.T),this.T.Df(this.element);this.show()}}else g.S5(Error("No banner text found in AdDisclosureBanner."))}; fV.prototype.clear=function(){this.hide()};h_.prototype.getLength=function(){return this.Y-this.T};g.w(MG,g.Ha);MG.prototype.ya=function(){var U=this.T.getProgressState(),Y=U.seekableEnd;this.api.getPresentingPlayerType()===2&&(Y=this.W?this.W/1E3:U.seekableEnd);U=SR(new h_(U.seekableStart,Y),U.current,0);this.progressBar.style.width=U*100+"%"}; MG.prototype.onStateChange=function(){g.bo(this.api.L())||(this.api.getPresentingPlayerType()===2?this.Y===-1&&(this.show(),this.Y=this.T.subscribe("h",this.ya,this),this.ya()):this.Y!==-1&&(this.hide(),this.T.H5(this.Y),this.Y=-1))};g.w(bE,G2); bE.prototype.init=function(U,Y,A,c){G2.prototype.init.call(this,U,Y,A);if(Y.skipOrPreviewRenderer){if(U=g.O(Y.skipOrPreviewRenderer,Pq))A=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.T,this.X),A.Df(this.kE),A.init(LW("skip-button"),U,this.macros),g.Z(this,A);if(U=g.O(Y.skipOrPreviewRenderer,Pq))var d=U.skipOffsetMilliseconds}Y.brandInteractionRenderer&&(U=Y.brandInteractionRenderer.brandInteractionRenderer,A=new zg(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw), A.Df(this.QJ),A.init(LW("instream-user-sentiment"),U,this.macros),g.Z(this,A));if(U=g.O(Y,fzm))if(U=g.O(U,fzm))A=new oN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.T,!!Y.showWithoutLinkedMediaLayout),g.Z(this,A),A.Df(this.J),A.init(LW("flyout-cta"),U,this.macros);c=c&&c.videoAdDurationSeconds;Y.adBadgeRenderer&&(A=Y.adBadgeRenderer,U=g.O(A,Oh),U!=null?(A=new xD(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,!1),g.Z(this,A),A.Df(this.Y),A.init(LW("ad-badge"), U,this.macros),this.W=A.element):(U=A.simpleAdBadgeRenderer,U==null&&(U={text:{text:"Anuncio",isTemplated:!1}}),A=new FH(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,!0),g.Z(this,A),A.Df(this.Y),A.init(LW("simple-ad-badge"),U,this.macros)));Y.adPodIndex&&(U=g.O(Y.adPodIndex,gRo),U!=null&&(A=new se(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,A),A.Df(this.Y),A.init(LW("ad-pod-index"),U)));Y.adDurationRemaining&&!Y.showWithoutLinkedMediaLayout&&(U=Y.adDurationRemaining.adDurationRemainingRenderer, U==null&&(U={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),c=new XH(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.T,c,!1),g.Z(this,c),c.Df(this.Y),c.init(LW("ad-duration-remaining"),U,this.macros));Y.adInfoRenderer&&(c=g.O(Y.adInfoRenderer,pA))&&(U=new qq(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.element,void 0,!1),g.Z(this,U),this.W!==null?this.Y.insertBefore(U.element,this.W.nextSibling):U.Df(this.Y), U.init(LW("ad-info-hover-text-button"),c,this.macros));Y.visitAdvertiserRenderer&&(c=g.O(Y.visitAdvertiserRenderer,g.ZK))&&(U=this.api.L(),U=g.ay(U)&&U.S("embeds_embc3ds_atb")&&U.S("embeds_embc3ds_atb_no_visinfo"),A=oF3(this)&&this.j&&!U?this.j:this.Y)&&(U=new J_(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,U),U.Df(A),U.init(LW("visit-advertiser"),c,this.macros),mI(U.element),c=nB(U.element),yH(U.element,c+" This link opens in new tab"));!(c=this.api.L())||g.Sj(c)||g.ay(c)|| c.controlsType!="3"&&!c.disableOrganicUi||(d=new MG(this.api,this.T,d,!1),d.Df(this.Uv),g.Z(this,d));Y.adDisclosureBannerRenderer&&(Y=g.O(Y.adDisclosureBannerRenderer,mVT))&&(d=new fV(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),d.Df(this.Hw),d.init(LW("ad-disclosure-banner"),Y),g.Z(this,d));this.api.L().S("enable_updated_html5_player_focus_style")&&g.ou(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; bE.prototype.clear=function(){this.hide()};Oe.prototype.set=function(U,Y,A){A=A!==void 0?Date.now()+A:void 0;this.Y.set(U,Y,A)}; Oe.prototype.get=function(U){return this.Y.get(U)}; Oe.prototype.remove=function(U){this.Y.remove(U)};var nV=null,DP=null,IN=null,V3X=null;g.Ic("yt.www.ads.eventcache.getLastCompanionData",function(){return nV}); g.Ic("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Ic("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return DP}); g.Ic("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return IN}); g.Ic("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return V3X});var vFv=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);uE.prototype.handleResponse=function(U,Y){if(!Y)throw Error("request needs to be passed into ConsistencyService");var A,c;Y=((A=Y.OZ.context)==null?void 0:(c=A.request)==null?void 0:c.consistencyTokenJars)||[];var d;(U=(d=U.responseContext)==null?void 0:d.consistencyTokenJar)&&this.replace(Y,U)}; uE.prototype.replace=function(U,Y){U=g.J(U);for(var A=U.next();!A.done;A=U.next())delete this.Y[A.value.encryptedTokenJarContents];GPv(this,Y)};var dwj=window.location.hostname.split(".").slice(-2).join("."),B2;qG.getInstance=function(){B2=g.u8("yt.clientLocationService.instance");B2||(B2=new qG,g.Ic("yt.clientLocationService.instance",B2));return B2}; g.W=qG.prototype; g.W.setLocationOnInnerTubeContext=function(U){U.client||(U.client={});if(this.Y)U.client.locationInfo||(U.client.locationInfo={}),U.client.locationInfo.latitudeE7=Math.floor(this.Y.coords.latitude*1E7),U.client.locationInfo.longitudeE7=Math.floor(this.Y.coords.longitude*1E7),U.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Y.coords.accuracy),U.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.W||this.locationPlayabilityToken)U.client.locationPlayabilityToken=this.W|| this.locationPlayabilityToken}; g.W.handleResponse=function(U){var Y;U=(Y=U.responseContext)==null?void 0:Y.locationPlayabilityToken;U!==void 0&&(this.locationPlayabilityToken=U,this.Y=void 0,g.DQ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=KV(this))&&this.localStorage.set("yt-location-playability-token",U,15552E3):g.Sr("YT_CL",JSON.stringify({loctok:U}),15552E3,dwj,!0))}; g.W.clearLocationPlayabilityToken=function(U){U==="TVHTML5"?(this.localStorage=KV(this))&&this.localStorage.remove("yt-location-playability-token"):g.br("YT_CL");this.W=void 0;this.T!==-1&&(clearTimeout(this.T),this.T=-1)}; g.W.getCurrentPositionFromGeolocation=function(){var U=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var Y=!1,A=1E4;g.DQ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Y=!0,A=15E3);return new Promise(function(c,d){navigator.geolocation.getCurrentPosition(function(T){U.Y=T;c(T)},function(T){d(T)},{enableHighAccuracy:Y, maximumAge:0,timeout:A})})}; g.W.createUnpluggedLocationInfo=function(U){var Y={};U=U.coords;if(U==null?0:U.latitude)Y.latitudeE7=Math.floor(U.latitude*1E7);if(U==null?0:U.longitude)Y.longitudeE7=Math.floor(U.longitude*1E7);if(U==null?0:U.accuracy)Y.locationRadiusMeters=Math.round(U.accuracy);return Y}; g.W.createLocationInfo=function(U){var Y={};U=U.coords;if(U==null?0:U.latitude)Y.latitudeE7=Math.floor(U.latitude*1E7);if(U==null?0:U.longitude)Y.longitudeE7=Math.floor(U.longitude*1E7);return Y};g.W=FwS.prototype;g.W.contains=function(U){return Object.prototype.hasOwnProperty.call(this.Y,U)}; g.W.get=function(U){if(this.contains(U))return this.Y[U]}; g.W.set=function(U,Y){this.Y[U]=Y}; g.W.C2=function(){return Object.keys(this.Y)}; g.W.remove=function(U){delete this.Y[U]};UX.prototype.getModuleId=function(U){return g.M(U.serviceId.getModuleId())}; UX.prototype.get=function(U){a:{var Y=g.M(this.mappings.get(U.toString()));switch(Y.type){case "mapping":U=Y.value;break a;case "factory":Y=Y.value();this.mappings.set(U.toString(),{type:"mapping",value:Y});U=Y;break a;default:U=Ka(Y)}}return U}; UX.prototype.registerService=function(U,Y){this.mappings.set(U.toString(),{type:"mapping",value:Y});return U}; new UX;var XV={},jUS=(XV.WEB_UNPLUGGED="^unplugged/",XV.WEB_UNPLUGGED_ONBOARDING="^unplugged/",XV.WEB_UNPLUGGED_OPS="^unplugged/",XV.WEB_UNPLUGGED_PUBLIC="^unplugged/",XV.WEB_CREATOR="^creator/",XV.WEB_KIDS="^kids/",XV.WEB_EXPERIMENTS="^experiments/",XV.WEB_MUSIC="^music/",XV.WEB_REMIX="^music/",XV.WEB_MUSIC_EMBEDDED_PLAYER="^music/",XV.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",XV);c0.prototype.K=function(U,Y,A){Y=Y===void 0?{}:Y;A=A===void 0?Vx:A;var c={context:g.CV(U.clickTrackingParams,!1,this.j)};var d=this.T(U);if(d){this.Y(c,d,Y);var T;Y=g.AL(this.W());(d=(T=g.O(U.commandMetadata,g.W2))==null?void 0:T.apiUrl)&&(Y=d);T=G6l(pl(Y));U=Object.assign({},{command:U},void 0);c={input:T,Av:QB(T),OZ:c,config:U};c.config.Gc?c.config.Gc.identity=A:c.config.Gc={identity:A};return c}A=new g.Do("Error: Failed to create Request from Command.",U);g.S5(A)}; g.oc.Object.defineProperties(c0.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.w(ds,c0);g.w(H0,ds);H0.prototype.K=function(){return{input:"/getDatasyncIdsEndpoint",Av:QB("/getDatasyncIdsEndpoint","GET"),OZ:{}}}; H0.prototype.W=function(){return[]}; H0.prototype.T=function(){}; H0.prototype.Y=function(){};var Tvw={},cHX=(Tvw.GET_DATASYNC_IDS=Yg(H0),Tvw);var ki={},EJo=(ki["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",ki["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",ki["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",ki["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",ki["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",ki["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",ki["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", ki["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",ki["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",ki["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",ki["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",ki["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",ki["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",ki["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",ki["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", ki["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",ki["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",ki["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",ki["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",ki["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",ki["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",ki["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", ki["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",ki.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",ki["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",ki["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",ki["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",ki["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",ki["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",ki["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", ki["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",ki["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",ki["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",ki["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",ki["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",ki["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",ki["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",ki["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",ki["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",ki["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",ki.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",ki["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",ki["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",ki["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",ki["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",ki["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",ki["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",ki["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",ki["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",ki["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",ki["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",ki["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ki["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",ki["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",ki["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",ki["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",ki["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",ki["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",ki["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",ki["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",ki["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",ki["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", ki["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",ki["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",ki["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",ki["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",ki["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",ki["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",ki["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",ki["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",ki["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", ki["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",ki["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",ki["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",ki["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",ki["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",ki["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",ki["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",ki["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", ki),R2={},RFv=(R2.auto_search="LATENCY_ACTION_AUTO_SEARCH",R2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",R2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",R2.app_startup="LATENCY_ACTION_APP_STARTUP",R2.browse="LATENCY_ACTION_BROWSE",R2.cast_splash="LATENCY_ACTION_CAST_SPLASH",R2.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",R2.channels="LATENCY_ACTION_CHANNELS",R2.chips="LATENCY_ACTION_CHIPS",R2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",R2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", R2.editor="LATENCY_ACTION_EDITOR",R2.embed="LATENCY_ACTION_EMBED",R2.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",R2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",R2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",R2.explore="LATENCY_ACTION_EXPLORE",R2.favorites="LATENCY_ACTION_FAVORITES",R2.home="LATENCY_ACTION_HOME",R2.inboarding="LATENCY_ACTION_INBOARDING",R2.landing="LATENCY_ACTION_LANDING",R2.library="LATENCY_ACTION_LIBRARY",R2.live= "LATENCY_ACTION_LIVE",R2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",R2.management="LATENCY_ACTION_MANAGEMENT",R2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",R2.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",R2.onboarding="LATENCY_ACTION_ONBOARDING",R2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",R2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",R2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",R2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", R2.prebuffer="LATENCY_ACTION_PREBUFFER",R2.prefetch="LATENCY_ACTION_PREFETCH",R2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",R2.profile_switcher="LATENCY_ACTION_LOGIN",R2.projects="LATENCY_ACTION_PROJECTS",R2.reel_watch="LATENCY_ACTION_REEL_WATCH",R2.results="LATENCY_ACTION_RESULTS",R2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",R2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",R2.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",R2.review="LATENCY_ACTION_REVIEW",R2.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",R2.search_ui="LATENCY_ACTION_SEARCH_UI",R2.search_suggest="LATENCY_ACTION_SUGGEST",R2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",R2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",R2.seek="LATENCY_ACTION_PLAYER_SEEK",R2.settings="LATENCY_ACTION_SETTINGS",R2.store="LATENCY_ACTION_STORE",R2.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",R2.tenx="LATENCY_ACTION_TENX",R2.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",R2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", R2.watch="LATENCY_ACTION_WATCH",R2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",R2["watch,watch7"]="LATENCY_ACTION_WATCH",R2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",R2["watch,watch7ad"]="LATENCY_ACTION_WATCH",R2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",R2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",R2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",R2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",R2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",R2.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",R2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",R2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",R2.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",R2);Object.assign(RFv,EJo);g.w(tL,$F);var gFc=new v9("aft-recorded",tL);var oJz=g.Dc.ytLoggingGelSequenceIdObj_||{};g.Ic("ytLoggingGelSequenceIdObj_",oJz);var Xb=g.Dc.ytLoggingLatencyUsageStats_||{};g.Ic("ytLoggingLatencyUsageStats_",Xb);es.prototype.tick=function(U,Y,A,c){kg(this,"tick_"+U+"_"+Y)||g.r7("latencyActionTicked",{tickName:U,clientActionNonce:Y},{timestamp:A,cttAuthInfo:c})}; es.prototype.info=function(U,Y,A){var c=Object.keys(U).join("");kg(this,"info_"+c+"_"+Y)||(U=Object.assign({},U),U.clientActionNonce=Y,g.r7("latencyActionInfo",U,{cttAuthInfo:A}))}; es.prototype.jspbInfo=function(U,Y,A){for(var c="",d=0;d=d.length?(Y.append(d),U-=d.length):U?(Y.append(new Uint8Array(d.buffer,d.byteOffset,U)),A.append(new Uint8Array(d.buffer,d.byteOffset+U,d.length-U)),U=0):A.append(d);return{SU:Y,AS:A}}; g.W.isFocused=function(U){return U>=this.I4&&U=64&&(this.J.set(U.subarray(0,64-this.T),this.T),Y=64-this.T,this.T=0,yHX(this,this.J,0));for(;Y+64<=A;Y+=64)yHX(this,U,Y);Y=this.start&&(U=2&&A.ssdaiAdsConfig&&$D("Unexpected ad placement renderers length",U.slot,null,{length:c.length});var d;((d=A.adSlots)==null?0:d.some(function(T){var E,L;return((E=g.O(T,g6))==null?void 0:(L=E.adSlotMetadata)==null?void 0:L.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||c.some(function(T){var E,L,r,l; return!!((E=T.renderer)==null?0:(L=E.linearAdSequenceRenderer)==null?0:(r=L.linearAds)==null?0:r.length)||!((l=T.renderer)==null||!l.instreamVideoAdRenderer)})||v$E(U)})}; rl.prototype.k6=function(){Uq3(this.Y)};ln.prototype.v1=function(){var U=this;CAV(this.T,function(){var Y=LH(U.slot.clientMetadata,"metadata_type_ad_break_request_data");return Y.cueProcessedMs?U.Y.get().fetch({w8:Y.getAdBreakUrl,TO:new g.EE(Y.CR,Y.nR),cueProcessedMs:Y.cueProcessedMs}):U.Y.get().fetch({w8:Y.getAdBreakUrl,TO:new g.EE(Y.CR,Y.nR)})})}; ln.prototype.k6=function(){Uq3(this.T)};Pm.prototype.v1=function(){var U=this.slot.clientMetadata,Y,A=(Y=this.slot.fulfilledLayout)!=null?Y:LH(U,"metadata_type_fulfilled_layout");xdE(this.callback,this.slot,A)}; Pm.prototype.k6=function(){FA(this.callback,this.slot,new u("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")};$B.prototype.build=function(U,Y){return Y.fulfilledLayout||VE(Y,{Wp:["metadata_type_fulfilled_layout"]})?new Pm(U,Y):this.W(U,Y)};g.w(vm,$B); vm.prototype.W=function(U,Y){if(VE(Y,{Wp:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new rl(U,Y,this.Y,this.T,this.Y8,this.xE,this.SX,this.FT,this.WQ);if(VE(Y,{Wp:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ln(U,Y,this.Y,this.T,this.Y8,this.xE);throw new u("Unsupported slot with type: "+Y.slotType+" and client metadata: "+rD(Y.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(Hm,$B);Hm.prototype.W=function(U,Y){throw new u("Unsupported slot with type: "+Y.slotType+" and client metadata: "+rD(Y.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.W=HWY.prototype;g.W.Nz=function(){return this.slot}; g.W.zn=function(){return this.layout}; g.W.init=function(){}; g.W.release=function(){}; g.W.startRendering=function(U){if(U.layoutId!==this.layout.layoutId)this.callback.xH(this.slot,U,new od("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 Y=LH(U.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Vd(this.slot,U),sjX(this.W, this.slot,Y)):$D("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,U)}}; g.W.Hp=function(U,Y){U.layoutId!==this.layout.layoutId?this.callback.xH(this.slot,U,new od("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.D5(this.slot,U,Y),Wj3(this),waX(this))};g.w(Ft,g.l6);g.W=Ft.prototype;g.W.Nz=function(){return this.T.slot}; g.W.zn=function(){return this.T.layout}; g.W.init=function(){this.W.get().addListener(this)}; g.W.release=function(){this.W.get().removeListener(this);this.dispose()}; g.W.mw=function(){}; g.W.dL=function(){}; g.W.OW=function(){}; g.W.FW=function(){}; g.W.startRendering=function(U){var Y=this;Jg(this.T,U,function(){return void Y.eF()})}; g.W.eF=function(){this.W.get().eF(this.Y)}; g.W.Hp=function(U,Y){var A=this;Jg(this.T,U,function(){var c=A.W.get();NkX(c,A.Y,3);A.Y=[];A.callback.D5(A.slot,U,Y)})}; g.W.Tn=function(){this.W.Ky()||this.W.get().removeListener(this);g.l6.prototype.Tn.call(this)}; g.oc.Object.defineProperties(Ft.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.T.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.T.layout}}});RK.prototype.P5=function(U,Y){Y=Y===void 0?!1:Y;var A=(this.W.get(U)||[]).concat();if(Y=Y&&j8l(U)){var c=this.W.get(Y);c&&A.push.apply(A,g.X(c))}sE(this,U,A);this.Y.add(U);Y&&this.Y.add(Y)}; RK.prototype.l$=function(U,Y){Y=Y===void 0?!1:Y;if(!this.Y.has(U)){var A=Y&&j8l(U);A&&(Y=!this.Y.has(A));this.P5(U,Y)}};g.w(eul,rB);g.w(bn,Ft);g.W=bn.prototype;g.W.Fg=function(U,Y){e8("ads-engagement-panel-layout",U,M_(this.J.get()),this.SX.get(),this.j,this.K,this.Nz(),this.zn(),Y)}; g.W.startRendering=function(U){Nr(this.NI,this.Nz(),this.zn(),g.O(this.zn().renderingContent,ld),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(Y,A,c,d,T){return new eul(Y,A,c,d,T)},this.Y); Ft.prototype.startRendering.call(this,U)}; g.W.Vd=function(U,Y){this.K===Y.layoutId&&(this.j===null?this.j=this.SX.get().eS():$D("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Tn=function(){iT(this.wf(),this);Ft.prototype.Tn.call(this)};g.w(XaX,rB);g.w(pS,Ft);g.W=pS.prototype;g.W.Fg=function(U,Y){e8("banner-image",U,M_(this.J.get()),this.SX.get(),this.j,this.K,this.Nz(),this.zn(),Y)}; g.W.startRendering=function(U){Nr(this.NI,this.Nz(),this.zn(),g.O(this.zn().renderingContent,LA),this.callback,"metadata_type_banner_image_layout_view_model",function(Y,A,c,d,T){return new XaX(Y,A,c,d,T)},this.Y); Ft.prototype.startRendering.call(this,U)}; g.W.Vd=function(U,Y){this.K===Y.layoutId&&(this.j===null?this.j=this.SX.get().eS():$D("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Tn=function(){iT(this.wf(),this);Ft.prototype.Tn.call(this)};g.w(QE,rB);g.w(Z0,Ft);g.W=Z0.prototype;g.W.Fg=function(U,Y){e8("action-companion",U,M_(this.J.get()),this.SX.get(),this.j,this.K,this.Nz(),this.zn(),Y)}; g.W.startRendering=function(U){Nr(this.NI,this.Nz(),this.zn(),g.O(this.zn().renderingContent,El),this.callback,"metadata_type_action_companion_ad_renderer",function(Y,A,c,d,T){return new QE(Y,A,c,d,T)},this.Y); Ft.prototype.startRendering.call(this,U)}; g.W.Vd=function(U,Y){Y.layoutId===this.layout.layoutId?this.NI.l$("impression"):this.K===Y.layoutId&&(this.j===null?this.j=this.SX.get().eS():$D("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Tn=function(){iT(this.wf(),this);Ft.prototype.Tn.call(this)};g.w(aZ8,rB);g.w(OE,Ft);g.W=OE.prototype;g.W.Fg=function(U,Y){e8("image-companion",U,M_(this.J.get()),this.SX.get(),this.j,this.K,this.Nz(),this.zn(),Y)}; g.W.startRendering=function(U){Nr(this.NI,this.Nz(),this.zn(),g.O(this.zn().renderingContent,oo),this.callback,"metadata_type_image_companion_ad_renderer",function(Y,A,c,d,T){return new aZ8(Y,A,c,d,T)},this.Y); Ft.prototype.startRendering.call(this,U)}; g.W.Vd=function(U,Y){Y.layoutId===this.layout.layoutId?this.NI.l$("impression"):this.K===Y.layoutId&&(this.j===null?this.j=this.SX.get().eS():$D("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Tn=function(){iT(this.wf(),this);Ft.prototype.Tn.call(this)};g.w(s8X,rB);g.w(m1,Ft);g.W=m1.prototype;g.W.Fg=function(U,Y){e8("shopping-companion",U,M_(this.J.get()),this.SX.get(),this.j,this.K,this.Nz(),this.zn(),Y)}; g.W.startRendering=function(U){Nr(this.NI,this.Nz(),this.zn(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(Y,A,c,d,T){return new s8X(Y,A,c,d,T)},this.Y); Ft.prototype.startRendering.call(this,U)}; g.W.Vd=function(U,Y){Y.layoutId===this.layout.layoutId?this.NI.l$("impression"):this.K===Y.layoutId&&(this.j===null?this.j=this.SX.get().eS():$D("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Tn=function(){iT(this.wf(),this);Ft.prototype.Tn.call(this)};g.w(yE,Ft);g.W=yE.prototype;g.W.startRendering=function(U){Nr(this.NI,this.Nz(),this.zn(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(Y,A,c,d,T){return new QE(Y,A,c,d,T)},this.Y); Ft.prototype.startRendering.call(this,U)}; g.W.Vd=function(){}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Tn=function(){iT(this.wf(),this);Ft.prototype.Tn.call(this)}; g.W.Fg=function(){};g.W=pav.prototype;g.W.Nz=function(){return this.slot}; g.W.zn=function(){return this.layout}; g.W.init=function(){this.FT.get().addListener(this);this.FT.get().Za.push(this);var U=LH(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Y=LH(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Bm(this.layout.HZ)&&Uh(this.xt.get(),this.layout.layoutId,{y$:Y,E4:U,listener:this})}; g.W.release=function(){this.FT.get().removeListener(this);GAX(this.FT.get(),this);Bm(this.layout.HZ)&&Yb(this.xt.get(),this.layout.layoutId)}; g.W.startRendering=function(U){this.callback.Vd(this.slot,U)}; g.W.Hp=function(U,Y){ZbE(this.xE.get())&&!this.Y&&(this.NI.l$("abandon"),this.Y=!0);this.callback.D5(this.slot,U,Y)}; g.W.aJ=function(U){switch(U.id){case "part2viewed":this.NI.l$("start");this.NI.l$("impression");break;case "videoplaytime25":this.NI.l$("first_quartile");break;case "videoplaytime50":this.NI.l$("midpoint");break;case "videoplaytime75":this.NI.l$("third_quartile");break;case "videoplaytime100":ZbE(this.xE.get())?this.Y||(this.NI.l$("complete"),this.Y=!0):this.NI.l$("complete");Mr(this.NI)&&hg(this.NI,Infinity,!0);Obc(this.xE.get())&&gl(this.T,Infinity,!0);break;case "engagedview":Mr(this.NI)||this.NI.l$("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:$D("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.W.onVolumeChange=function(){}; g.W.jj=function(){}; g.W.zz=function(){}; g.W.pJ=function(){}; g.W.onFullscreenToggled=function(){}; g.W.q1=function(){}; g.W.RS=function(){}; g.W.T7=function(U){Obc(this.xE.get())&&gl(this.T,U*1E3,!1);Mr(this.NI)&&hg(this.NI,U*1E3,!1)}; g.W.nJ=function(){}; g.W.wP=function(){this.NI.l$("active_view_measurable")}; g.W.HI=function(){this.NI.l$("active_view_viewable")}; g.W.iE=function(){this.NI.l$("active_view_fully_viewable_audible_half_duration")}; g.W.M_=function(){this.NI.l$("audio_measurable")}; g.W.XH=function(){this.NI.l$("audio_audible")};g.w(nS,Ft);g.W=nS.prototype;g.W.init=function(){Ft.prototype.init.call(this);var U=g.M(LH(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),Y={adsClientData:this.layout.Gk};this.Y.push(new jR(U,this.layout.layoutId,LH(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Y,!0))}; g.W.qR=function(){this.j||this.FT.get().resumeVideo(1)}; g.W.startRendering=function(U){Ft.prototype.startRendering.call(this,U);zF(this.FT.get(),"ad-showing");this.callback.Vd(this.slot,U);this.K.GA=this}; g.W.Hp=function(U,Y){Ft.prototype.Hp.call(this,U,Y);L9(this.FT.get(),"ad-showing");n9(this.K,this)}; g.W.Fg=function(U){switch(U){case "ad-info-icon-button":(this.j=this.FT.get().QP(1))||this.FT.get().pauseVideo();break;case "visit-advertiser":this.FT.get().pauseVideo()}}; g.W.Tn=function(){Ft.prototype.Tn.call(this)};g.w(D0,rB);g.w(IK,Ft);g.W=IK.prototype;g.W.startRendering=function(U){Nr(this.NI,this.Nz(),this.zn(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Y,A,c,d,T){return new D0(Y,A,c,d,T)},this.Y); Ft.prototype.startRendering.call(this,U)}; g.W.Vd=function(){}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Tn=function(){iT(this.wf(),this);Ft.prototype.Tn.call(this)}; g.W.Fg=function(){};g.w(un,rB);g.w(KS,Ft);KS.prototype.init=function(){Ft.prototype.init.call(this);this.Y.push(new un(g.O(this.layout.renderingContent,sl),this.layout.layoutId,{adsClientData:this.layout.Gk}))}; KS.prototype.Fg=function(){by(this.j.get(),this.K)&&tg(this.SX.get(),3)}; KS.prototype.startRendering=function(U){Ft.prototype.startRendering.call(this,U);this.callback.Vd(this.slot,U)}; KS.prototype.Tn=function(){Ft.prototype.Tn.call(this)};g.w(qr,rB);g.w(CS,Ft);CS.prototype.init=function(){Ft.prototype.init.call(this);var U=g.O(this.layout.renderingContent,PU)||LH(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),Y=j8(this.NI);this.Y.push(new qr(U,Y,this.layout.layoutId,{adsClientData:this.layout.Gk},!0,!0))}; CS.prototype.startRendering=function(U){Ft.prototype.startRendering.call(this,U);this.callback.Vd(this.slot,U)}; CS.prototype.Fg=function(U,Y){if(Y===this.layout.layoutId)switch(U){case "skip-button":var A;(U=(A=LH(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:A.current)&&U.jz(this.Nz(),this.layout)}}; CS.prototype.Tn=function(){Ft.prototype.Tn.call(this)};YP.prototype.build=function(U,Y,A,c){if(U7(c,{Wp:["metadata_type_ad_break_response_data"],R2:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new HWY(U,A,c,this.T,this.W,this.Y);throw new od("Unsupported layout with type: "+c.layoutType+" and client metadata: "+rD(c.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.w(OWY,rB);g.w(A5,Ft);g.W=A5.prototype;g.W.Fg=function(U,Y){e8("ads-engagement-panel",U,M_(this.J.get()),this.SX.get(),this.j,this.K,this.Nz(),this.zn(),Y)}; g.W.startRendering=function(U){Nr(this.NI,this.Nz(),this.zn(),g.O(this.zn().renderingContent,zE),this.callback,"metadata_type_ads_engagement_panel_renderer",function(Y,A,c,d,T){return new OWY(Y,A,c,d,T)},this.Y); Ft.prototype.startRendering.call(this,U)}; g.W.Vd=function(U,Y){Y.layoutId===this.layout.layoutId?this.NI.l$("impression"):this.K===Y.layoutId&&(this.j===null?this.j=this.SX.get().eS():$D("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Tn=function(){iT(this.wf(),this);Ft.prototype.Tn.call(this)};g.w(cU,Ft);g.W=cU.prototype;g.W.Fg=function(U,Y){e8("top-banner-image-text-icon-buttoned",U,M_(this.J.get()),this.SX.get(),this.j,this.K,this.Nz(),this.zn(),Y)}; g.W.startRendering=function(U){Nr(this.NI,this.Nz(),this.zn(),g.O(this.zn().renderingContent,r6),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Y,A,c,d,T){return new D0(Y,A,c,d,T)},this.Y); Ft.prototype.startRendering.call(this,U)}; g.W.Vd=function(U,Y){this.K===Y.layoutId&&(this.j===null?this.j=this.SX.get().eS():$D("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Tn=function(){iT(this.wf(),this);Ft.prototype.Tn.call(this)};yAc.prototype.build=function(U,Y,A,c){if(U7(c,mql())||g.O(c.renderingContent,zE)!==void 0)return new A5(U,A,c,this.TQ,this.SX,this.wf,this.xt,this.Y);if(U7(c,RuY())||g.O(c.renderingContent,El)!==void 0)return new Z0(U,A,c,this.TQ,this.SX,this.wf,this.xt,this.Y);if(U7(c,xq3())||g.O(c.renderingContent,oo)!==void 0)return new OE(U,A,c,this.TQ,this.SX,this.wf,this.xt,this.Y);if(U7(c,fZV()))return new m1(U,A,c,this.TQ,this.SX,this.wf,this.xt,this.Y);if(U7(c,bW3()))return new yE(U,A,c,this.TQ,this.SX,this.wf, this.xt,this.Y);if(U7(c,k29())||g.O(c.renderingContent,LA)!==void 0)return new pS(U,A,c,this.TQ,this.SX,this.wf,this.xt,this.Y);if(U7(c,g$X())||g.O(c.renderingContent,r6)!==void 0)return new cU(U,A,c,this.TQ,this.SX,this.wf,this.xt,this.Y);if(U7(c,Q88()))return new IK(U,A,c,this.TQ,this.SX,this.wf,this.xt,this.Y);if(U7(c,BBY())||g.O(c.renderingContent,ld)!==void 0)return new bn(U,A,c,this.TQ,this.SX,this.wf,this.xt,this.Y);throw new od("Unsupported layout with type: "+c.layoutType+" and client metadata: "+ rD(c.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};n$v.prototype.build=function(U,Y,A,c){if(U7(c,{Wp:["metadata_type_linked_player_bytes_layout_id"],R2:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new KS(U,A,c,this.TQ,this.SX,this.Y);throw new od("Unsupported layout with type: "+c.layoutType+" and client metadata: "+rD(c.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.W=Dqc.prototype;g.W.Nz=function(){return this.slot}; g.W.zn=function(){return this.layout}; g.W.init=function(){}; g.W.release=function(){}; g.W.startRendering=function(U){U.layoutId!==this.layout.layoutId?this.callback.xH(this.slot,U,new od("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.Vd(this.slot,U),this.NI.l$("impression"),KQ(this.nF,U,"normal"))}; g.W.Hp=function(U,Y){U.layoutId!==this.layout.layoutId?this.callback.xH(this.slot,U,new od("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.D5(this.slot,U,Y)};g.W=usX.prototype;g.W.Nz=function(){return this.slot}; g.W.zn=function(){return this.layout}; g.W.init=function(){}; g.W.release=function(){}; g.W.startRendering=function(U){U.layoutId!==this.layout.layoutId?this.callback.xH(this.slot,U,new od("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.Vd(this.slot,U),this.NI.l$("impression"),KQ(this.nF,U,"normal"))}; g.W.Hp=function(U,Y){U.layoutId!==this.layout.layoutId?this.callback.xH(this.slot,U,new od("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.D5(this.slot,U,Y)};dt.prototype.build=function(U,Y,A,c){if(!this.xE.get().U.L().S("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(U7(c,IZV()))return new Dqc(U,A,c,this.SX,this.nF)}else if(U7(c,{Wp:[],R2:["LAYOUT_TYPE_FORECASTING"]}))return new usX(U,A,c,this.SX,this.nF);throw new od("Unsupported layout with type: "+c.layoutType+" and client metadata: "+rD(c.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(C6S,rB);g.w(TX,Ft);g.W=TX.prototype;g.W.init=function(){Ft.prototype.init.call(this);var U=g.O(this.layout.renderingContent,lu)||g.M(LH(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer")),Y={adsClientData:this.layout.Gk};this.Y.push(new C6S(U,LH(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,Y))}; g.W.qR=function(){this.j||this.FT.get().resumeVideo(2)}; g.W.startRendering=function(U){Ft.prototype.startRendering.call(this,U);this.callback.Vd(this.slot,U);this.K.GA=this}; g.W.Hp=function(U,Y){Ft.prototype.Hp.call(this,U,Y);n9(this.K,this)}; g.W.Fg=function(U,Y){if(!q8(this.xE.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Y===this.layout.layoutId){if(by(this.J.get(),this.G))switch(U){case "visit-advertiser-link":tg(this.SX.get(),3)}switch(U){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.FT.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.FT.get().QP(2))||this.FT.get().pauseVideo();break; case "visit-advertiser-link":this.FT.get().pauseVideo();g.M(UGc(this)).E1();break;case "skip-button":if(U=UGc(this),this.layout.renderingContent&&!dD(this.layout.clientMetadata,"metadata_type_dai")||!U.f9){var A;(U=(A=LH(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:A.current)&&U.jz(this.Nz(),this.layout)}else $D("Requesting to skip by LegacyPlayerBytes when components enabled"),U.AC(this.Nz(),this.layout)}}}; g.W.Tn=function(){Ft.prototype.Tn.call(this)};g.w(E7,Ft);g.W=E7.prototype;g.W.init=function(){Ft.prototype.init.call(this);var U=g.O(this.layout.renderingContent,rt)||g.M(LH(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),Y={adsClientData:this.layout.Gk},A;(A=!!this.layout.renderingContent)||(A=!o9(this).f9);this.Y.push(new jR(U,this.layout.layoutId,LH(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Y,A))}; g.W.qR=function(){this.j||this.FT.get().resumeVideo(2)}; g.W.startRendering=function(U){Ft.prototype.startRendering.call(this,U);this.callback.Vd(this.slot,U);this.K.GA=this}; g.W.Hp=function(U,Y){Ft.prototype.Hp.call(this,U,Y);n9(this.K,this)}; g.W.Fg=function(U,Y){if(!this.xE||!q8(this.xE.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Y===this.layout.layoutId){if(by(this.J.get(),this.G))switch(U){case "visit-advertiser":tg(this.SX.get(),3)}switch(U){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.FT.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.FT.get().QP(2))||this.FT.get().pauseVideo();break; case "visit-advertiser":this.FT.get().pauseVideo();g.M(o9(this)).E1();break;case "skip-button":if(U=o9(this),this.layout.renderingContent&&!dD(this.layout.clientMetadata,"metadata_type_dai")||!U.f9){var A;(U=(A=LH(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:A.current)&&U.jz(this.Nz(),this.layout)}else $D("Requesting to skip by LegacyPlayerBytes"),U.AC(this.Nz(),this.layout)}}}; g.W.Tn=function(){Ft.prototype.Tn.call(this)};g.w(A_X,rB);g.w(zX,Ft);g.W=zX.prototype;g.W.startRendering=function(U){var Y=this;Jg(this.T,U,function(){Y.Y.push(new A_X(LH(Y.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),U.layoutId,U.Gk));Y.eF();Y.callback.Vd(Y.slot,U);g.I(C0(Y.FT.get(),1),512)&&Y.callback.xH(Y.Nz(),Y.zn(),new od("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.W.RS=function(){}; g.W.q1=function(U){if(U.state.isError()){var Y;this.callback.xH(this.Nz(),this.zn(),new od("A player error happened during adNotify",{playerErrorCode:(Y=U.state.Pb)==null?void 0:Y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.W.onFullscreenToggled=function(){}; g.W.zz=function(){}; g.W.pJ=function(){}; g.W.jj=function(){}; g.W.onVolumeChange=function(){}; g.W.aJ=function(){}; g.W.nJ=function(){}; g.W.Fg=function(){};g.w(dGY,rB);g.w(Ld,Ft);Ld.prototype.init=function(){Ft.prototype.init.call(this);var U=g.O(this.layout.renderingContent,Vy),Y=j8(this.NI);this.Y.push(new dGY(U,Y,this.layout.layoutId,{adsClientData:this.layout.Gk}))}; Ld.prototype.startRendering=function(U){Ft.prototype.startRendering.call(this,U);this.callback.Vd(this.slot,U)}; Ld.prototype.Fg=function(U,Y){if(Y===this.layout.layoutId)switch(U){case "skip-button":var A;(U=(A=LH(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:A.current)&&U.jz(this.Nz(),this.layout)}}; Ld.prototype.Tn=function(){Ft.prototype.Tn.call(this)};T13.prototype.build=function(U,Y,A,c){if(U=$P(U,A,c,this.TQ,this.FT,this.SX,this.T,this.Y,this.xE))return U;throw new od("Unsupported layout with type: "+c.layoutType+" and client metadata: "+rD(c.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.W=GX.prototype;g.W.Nz=function(){return this.slot}; g.W.zn=function(){return this.layout}; g.W.init=function(){this.FT.get().addListener(this);this.FT.get().Za.push(this);if(this.layout.renderingContent){var U=this.Gn.get();U=FS(U,1).ly/1E3}else U=LH(this.layout.clientMetadata,"metadata_type_video_length_seconds");var Y=g.O(this.layout.renderingContent,Ro),A=Y?Xt(Y.pings):LH(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Y=Y?FjX(Y.pings):LH(this.layout.clientMetadata,"metadata_type_active_view_identifier");Bm(this.layout.HZ)&&Uh(this.xt.get(),this.layout.layoutId, {y$:A,E4:U,listener:this,b5:Y})}; g.W.release=function(){this.FT.get().removeListener(this);GAX(this.FT.get(),this);Bm(this.layout.HZ)&&Yb(this.xt.get(),this.layout.layoutId)}; g.W.startRendering=function(U){this.callback.Vd(this.slot,U)}; g.W.Hp=function(U,Y){WU(this,"abandon");this.callback.D5(this.slot,U,Y)}; g.W.aJ=function(U){switch(U.id){case "part2viewed":this.NI.l$("start");this.NI.l$("impression");break;case "videoplaytime25":this.NI.l$("first_quartile");break;case "videoplaytime50":this.NI.l$("midpoint");break;case "videoplaytime75":this.NI.l$("third_quartile");break;case "videoplaytime100":WU(this,"complete");Mr(this.NI)&&hg(this.NI,Infinity,!0);break;case "engagedview":Mr(this.NI)||this.NI.l$("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:$D("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.W.onVolumeChange=function(){}; g.W.jj=function(){}; g.W.zz=function(){}; g.W.pJ=function(){}; g.W.onFullscreenToggled=function(){}; g.W.q1=function(U){this.Y||(g.Gg(U,4)&&!g.Gg(U,2)?fS(this.NI,"pause"):Hh(U,4)<0&&!(Hh(U,2)<0)&&fS(this.NI,"resume"))}; g.W.RS=function(){}; g.W.T7=function(U){Mr(this.NI)&&hg(this.NI,U*1E3,!1)}; g.W.nJ=function(){WU(this,"swipe")}; g.W.wP=function(){this.NI.l$("active_view_measurable")}; g.W.HI=function(){this.NI.l$("active_view_viewable")}; g.W.iE=function(){this.NI.l$("active_view_fully_viewable_audible_half_duration")}; g.W.M_=function(){this.NI.l$("audio_measurable")}; g.W.XH=function(){this.NI.l$("audio_audible")};EDX.prototype.build=function(U,Y,A,c){if(A.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.O(c.renderingContent,Ro)!==void 0)return new GX(U,A,c,this.FT,this.SX,this.xE,this.xt,this.Gn);Y=["metadata_type_ad_placement_config"];for(var d=g.J(aK()),T=d.next();!T.done;T=d.next())Y.push(T.value);if(U7(c,{Wp:Y,R2:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return A.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new GX(U,A,c,this.FT,this.SX,this.xE,this.xt,this.Gn):new pav(U,A,c,this.FT,this.SX, this.U3,this.xE,this.xt);throw new od("Unsupported layout with type: "+c.layoutType+" and client metadata: "+rD(c.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Nx={contentCpn:"",ZS:new Map};HV8.prototype.XT=function(U,Y){var A={};Y=Object.assign({},Y,(A.cc=this.A_.fX(),A));this.A_.U.wW(U,Y)};var tIj,hn; tIj={NVf:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",o5v:"AUTHENTICATION_MALFORMED",WGs:"AUTHENTICATION_MISSING",sJT:"BAD_REQUEST",KGy:"CAST_SESSION_DEVICE_MISMATCHED",ePI:"CAST_SESSION_VIDEO_MISMATCHED",S_w:"CAST_TOKEN_EXPIRED",kxT:"CAST_TOKEN_FAILED",rrw:"CAST_TOKEN_MALFORMED",Gxy:"CGI_PARAMS_MALFORMED",yrT:"CGI_PARAMS_MISSING",i5T:"DEVICE_FALLBACK",SOE:"GENERIC_WITH_LINK_AND_CPN",kXw:"ERROR_HDCP",r$Y:"LICENSE",y$J:"VIDEO_UNAVAILABLE",mdv:"FORMAT_UNAVAILABLE",N9v:"GEO_FAILURE", PLW:"HTML5_AUDIO_RENDERER_ERROR",HXE:"GENERIC_WITHOUT_LINK",YxW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Tos:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",xFY:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",oiY:"HTML5_SPS_UMP_STATUS_REJECTED",IME:"INVALID_DRM_MESSAGE",Ysr:"PURCHASE_NOT_FOUND",Ten:"PURCHASE_REFUNDED",jFr:"RENTAL_EXPIRED",J1w:"RETRYABLE_ERROR",gUW:"SERVER_ERROR",Z2v:"SIGNATURE_EXPIRED",RWW:"STOPPED_BY_ANOTHER_PLAYBACK",nUv:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",CPv:"STREAMING_NOT_ALLOWED", Vfs:"STREAM_LICENSE_NOT_FOUND",YbE:"TOO_MANY_REQUESTS",TBY:"TOO_MANY_REQUESTS_WITH_LINK",x0v:"TOO_MANY_STREAMS_PER_ENTITLEMENT",o_T:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",cWJ:"VIDEO_FORBIDDEN",Ocn:"VIDEO_NOT_FOUND",FGY:"BROWSER_OR_EXTENSION_ERROR"};hn={}; g.sx=(hn.ALREADY_PINNED_ON_A_DEVICE="Ya has descargado este v\u00eddeo en el n\u00famero m\u00e1ximo de dispositivos que permite el propietario de los derechos de autor. Tienes que eliminarlo de otro dispositivo para poder verlo en este.",hn.DEVICE_FALLBACK="Este v\u00eddeo no est\u00e1 disponible en este dispositivo.",hn.GENERIC_WITH_LINK_AND_CPN="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde. (ID de reproducci\u00f3n: $CPN) $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",hn.LICENSE= "Se ha producido un error de licencia con este v\u00eddeo.",hn.VIDEO_UNAVAILABLE="El v\u00eddeo no est\u00e1 disponible",hn.FORMAT_UNAVAILABLE="Este v\u00eddeo no est\u00e1 disponible en esa calidad. Vuelve a intentarlo.",hn.GEO_FAILURE="Este v\u00eddeo no est\u00e1 disponible en tu pa\u00eds.",hn.HTML5_AUDIO_RENDERER_ERROR="No se ha podido procesar el audio. Reinicia tu ordenador.",hn.GENERIC_WITHOUT_LINK="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.",hn.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de v\u00eddeo.",hn.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Tu navegador no reconoce ninguno de los formatos de v\u00eddeo disponibles por el momento. $BEGIN_LINKHaz clic aqu\u00ed para consultar las preguntas frecuentes sobre el v\u00eddeo HTML5$END_LINK.",hn.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Este navegador no puede reproducir este v\u00eddeo. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",hn.HTML5_SPS_UMP_STATUS_REJECTED="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", hn.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico del sistema DRM no es v\u00e1lido.",hn.PURCHASE_NOT_FOUND="Este v\u00eddeo es de pago.",hn.PURCHASE_REFUNDED="Te hemos devuelto el importe de este v\u00eddeo.",hn.RENTAL_EXPIRED="El periodo de alquiler de este v\u00eddeo ha finalizado.",hn.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo de la transmisi\u00f3n no coincide con el solicitado.",hn.CAST_SESSION_VIDEO_MISMATCHED="El v\u00eddeo de la transmisi\u00f3n no coincide con el solicitado.",hn.CAST_TOKEN_FAILED= "La transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",hn.CAST_TOKEN_EXPIRED="La transmisi\u00f3n ha caducado. Actualiza la p\u00e1gina.",hn.CAST_TOKEN_MALFORMED="La transmisi\u00f3n no es v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",hn.SERVER_ERROR="Se ha producido un error en el servidor interno. Vuelve a intentarlo m\u00e1s tarde.",hn.STOPPED_BY_ANOTHER_PLAYBACK="Tu cuenta est\u00e1 reproduciendo este v\u00eddeo en otra ubicaci\u00f3n. Vuelve a cargar esta p\u00e1gina para reanudar la reproducci\u00f3n.", hn.STREAM_LICENSE_NOT_FOUND="Se ha interrumpido la reproducci\u00f3n del v\u00eddeo. Vuelve a intentarlo.",hn.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="En un periodo de 24 horas se han utilizado demasiados dispositivos o direcciones IP.",hn.STREAMING_NOT_ALLOWED="No se permite la reproducci\u00f3n porque el v\u00eddeo est\u00e1 fijado a otro dispositivo.",hn.RETRYABLE_ERROR="Se ha producido un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.",hn.TOO_MANY_REQUESTS="Inicia sesi\u00f3n para ver este v\u00eddeo.", hn.TOO_MANY_REQUESTS_WITH_LINK="Haz clic en $BEGIN_LINKeste enlace$END_LINK para ver este v\u00eddeo en YouTube.",hn.TOO_MANY_STREAMS_PER_USER="Se ha detenido la reproducci\u00f3n porque se est\u00e1n viendo demasiados v\u00eddeos de la misma cuenta.",hn.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se ha detenido la reproducci\u00f3n porque el v\u00eddeo se ha visto en demasiados dispositivos.",hn.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.",hn.VIDEO_FORBIDDEN="El acceso a este v\u00eddeo est\u00e1 prohibido.", hn.VIDEO_NOT_FOUND="No es posible encontrar este v\u00eddeo.",hn.BROWSER_OR_EXTENSION_ERROR="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",hn);var eVz;var Bvj=g.tF(),X4W=Bvj.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!X4W||X4W.length<2)eVz=void 0;else{var kHL=Bvj.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);eVz=kHL&&kHL.length===6?Number(kHL[5].replace("_",".")):0}var bj=eVz,X_=bj>=0;g.w(g.Qy,XC);g.Qy.prototype.N=function(U,Y,A,c,d){return XC.prototype.N.call(this,U,Y,A,c,d)};var SO={},Ng=(SO.FAIRPLAY="fairplay",SO.PLAYREADY="playready",SO.WIDEVINE="widevine",SO.CLEARKEY=null,SO.FLASHACCESS=null,SO.UNKNOWN=null,SO.WIDEVINE_CLASSIC=null,SO);ZM.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var M1={},as=(M1.WIDTH={name:"width",video:!0,valid:640,oV:99999},M1.HEIGHT={name:"height",video:!0,valid:360,oV:99999},M1.FRAMERATE={name:"framerate",video:!0,valid:30,oV:9999},M1.BITRATE={name:"bitrate",video:!0,valid:3E5,oV:2E9},M1.EOTF={name:"eotf",video:!0,valid:"bt709",oV:"catavision"},M1.CHANNELS={name:"channels",video:!1,valid:2,oV:99},M1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",oV:"invalidformat"},M1.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", oV:"nope"},M1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",oV:"av99.0.05M.08"},M1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",oV:"invalid"},M1);var RVT=["h","H"],aRT=["9","("],xwz=["9h","(h"],swF=["8","*"],fRz=["a","A"],hVm=["o","O"],SUm=["m","M"],MIw=["mac3","MAC3"],bCF=["meac3","MEAC3"],bS={},jhv=(bS.h=RVT,bS.H=RVT,bS["9"]=aRT,bS["("]=aRT,bS["9h"]=xwz,bS["(h"]=xwz,bS["8"]=swF,bS["*"]=swF,bS.a=fRz,bS.A=fRz,bS.o=hVm,bS.O=hVm,bS.m=SUm,bS.M=SUm,bS.mac3=MIw,bS.MAC3=MIw,bS.meac3=bCF,bS.MEAC3=bCF,bS),p4q=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Vf3=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var C={},DM=(C["0"]="f",C["160"]="h",C["133"]="h",C["134"]="h",C["135"]="h",C["136"]="h",C["137"]="h",C["264"]="h",C["266"]="h",C["138"]="h",C["298"]="h",C["299"]="h",C["304"]="h",C["305"]="h",C["214"]="h",C["216"]="h",C["374"]="h",C["375"]="h",C["140"]="a",C["141"]="a",C["327"]="sa",C["258"]="m",C["380"]="mac3",C["328"]="meac3",C["161"]="H",C["142"]="H",C["143"]="H",C["144"]="H",C["222"]="H",C["223"]="H",C["145"]="H",C["224"]="H",C["225"]="H",C["146"]="H",C["226"]="H",C["227"]="H",C["147"]="H",C["384"]= "H",C["376"]="H",C["385"]="H",C["377"]="H",C["149"]="A",C["261"]="M",C["381"]="MAC3",C["329"]="MEAC3",C["598"]="9",C["278"]="9",C["242"]="9",C["243"]="9",C["244"]="9",C["775"]="9",C["776"]="9",C["777"]="9",C["778"]="9",C["779"]="9",C["780"]="9",C["781"]="9",C["782"]="9",C["783"]="9",C["247"]="9",C["248"]="9",C["353"]="9",C["355"]="9",C["356"]="9",C["271"]="9",C["577"]="9",C["313"]="9",C["579"]="9",C["272"]="9",C["302"]="9",C["303"]="9",C["407"]="9",C["408"]="9",C["308"]="9",C["315"]="9",C["330"]= "9h",C["331"]="9h",C["332"]="9h",C["333"]="9h",C["334"]="9h",C["335"]="9h",C["336"]="9h",C["337"]="9h",C["338"]="so",C["600"]="o",C["250"]="o",C["251"]="o",C["774"]="o",C["194"]="*",C["195"]="*",C["220"]="*",C["221"]="*",C["196"]="*",C["197"]="*",C["279"]="(",C["280"]="(",C["317"]="(",C["318"]="(",C["273"]="(",C["274"]="(",C["357"]="(",C["358"]="(",C["275"]="(",C["359"]="(",C["360"]="(",C["276"]="(",C["583"]="(",C["584"]="(",C["314"]="(",C["585"]="(",C["561"]="(",C["277"]="(",C["361"]="(h",C["362"]= "(h",C["363"]="(h",C["364"]="(h",C["365"]="(h",C["366"]="(h",C["591"]="(h",C["592"]="(h",C["367"]="(h",C["586"]="(h",C["587"]="(h",C["368"]="(h",C["588"]="(h",C["562"]="(h",C["409"]="(",C["410"]="(",C["411"]="(",C["412"]="(",C["557"]="(",C["558"]="(",C["394"]="1",C["395"]="1",C["396"]="1",C["397"]="1",C["398"]="1",C["399"]="1",C["720"]="1",C["721"]="1",C["400"]="1",C["401"]="1",C["571"]="1",C["402"]="1",C["694"]="1h",C["695"]="1h",C["696"]="1h",C["697"]="1h",C["698"]="1h",C["699"]="1h",C["700"]="1h", C["701"]="1h",C["702"]="1h",C["703"]="1h",C["386"]="3",C["387"]="w",C["406"]="6",C["787"]="1",C["788"]="1",C["548"]="1e",C["549"]="1e",C["550"]="1e",C["551"]="1e",C["809"]="1e",C["810"]="1e",C["552"]="1e",C["811"]="1e",C["812"]="1e",C["553"]="1e",C["813"]="1e",C["814"]="1e",C["554"]="1e",C["815"]="1e",C["816"]="1e",C["555"]="1e",C["817"]="1e",C["818"]="1e",C["572"]="1e",C["556"]="1e",C["645"]="(",C["646"]="(",C["647"]="(",C["648"]="(",C["649"]="(",C["650"]="(",C["651"]="(",C["652"]="(",C["653"]="(", C["654"]="(",C["655"]="(",C["656"]="(",C["657"]="(",C["658"]="(",C["659"]="(",C["660"]="(",C["661"]="(",C["662"]="(",C["663"]="(",C["664"]="(",C["665"]="(",C["666"]="(",C["667"]="(",C["668"]="(",C["669"]="(",C["670"]="(",C["671"]="(",C["672"]="(",C["673"]="(",C["674"]="(h",C["675"]="(h",C["676"]="(h",C["677"]="(h",C["678"]="(h",C["679"]="(h",C["680"]="(h",C["681"]="(h",C["682"]="(h",C["683"]="(h",C["684"]="(h",C["685"]="(h",C["686"]="(h",C["687"]="(h",C["688"]="A",C["689"]="A",C["690"]="A",C["691"]= "MEAC3",C["773"]="i",C["806"]="I",C["805"]="I",C["829"]="9",C["830"]="9",C["831"]="9",C["832"]="9",C["833"]="9",C["834"]="9",C["835"]="9",C["836"]="9",C["837"]="9",C["838"]="9",C["839"]="9",C["840"]="9",C["841"]="(",C["842"]="(",C["843"]="(",C["844"]="(",C["845"]="(",C["846"]="(",C["847"]="(",C["848"]="(",C["849"]="(",C["850"]="(",C["851"]="(",C["852"]="(",C["865"]="9",C["866"]="9",C["867"]="9",C["868"]="9",C["869"]="9",C["870"]="9",C["871"]="9",C["872"]="9",C["873"]="9",C["874"]="9",C["875"]="9", C["876"]="9",C["877"]="(",C["878"]="(",C["879"]="(",C["880"]="(",C["881"]="(",C["882"]="(",C["883"]="(",C["884"]="(",C["885"]="(",C["886"]="(",C["887"]="(",C["888"]="(",C);var pE={},dOX=(pE.STEREO_LAYOUT_UNKNOWN=0,pE.STEREO_LAYOUT_LEFT_RIGHT=1,pE.STEREO_LAYOUT_TOP_BOTTOM=2,pE);var Qi,GC;Qi={};g.mZ=(Qi.auto=0,Qi.tiny=144,Qi.light=144,Qi.small=240,Qi.medium=360,Qi.large=480,Qi.hd720=720,Qi.hd1080=1080,Qi.hd1440=1440,Qi.hd2160=2160,Qi.hd2880=2880,Qi.highres=4320,Qi);GC={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var yy="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");gt.prototype.isHdr=function(){return this.Y==="smpte2084"||this.Y==="arib-std-b67"};I9.prototype.Wu=function(){return this.containerType===2}; I9.prototype.isEncrypted=function(){return!!this.JB}; I9.prototype.SI=function(){return!!this.audio}; I9.prototype.pV=function(){return!!this.video}; var qx=!1;g.w(wh,g.l6);g.W=wh.prototype;g.W.appendBuffer=function(U,Y,A){if(this.Pp.FI()!==this.appendWindowStart+this.start||this.Pp.t3()!==this.appendWindowEnd+this.start||this.Pp.Zm()!==this.timestampOffset+this.start)this.Pp.supports(1),this.Pp.hE(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Pp.dB(this.timestampOffset+this.start);this.Pp.appendBuffer(U,Y,A)}; g.W.abort=function(){this.Pp.abort()}; g.W.remove=function(U,Y){this.Pp.remove(U+this.start,Y+this.start)}; g.W.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.W.clear=function(){this.Pp.clear()}; g.W.hE=function(U,Y){this.appendWindowStart=U;this.appendWindowEnd=Y}; g.W.Kp=function(){return this.timestampOffset+this.start}; g.W.FI=function(){return this.appendWindowStart}; g.W.t3=function(){return this.appendWindowEnd}; g.W.dB=function(U){this.timestampOffset=U}; g.W.Zm=function(){return this.timestampOffset}; g.W.MU=function(U){U=this.Pp.MU(U===void 0?!1:U);return Wd(U,this.start,this.end)}; g.W.Zk=function(){return this.Pp.Zk()}; g.W.jU=function(){return this.Pp.jU()}; g.W.lQ=function(){return this.Pp.lQ()}; g.W.YJ=function(){return this.Pp.YJ()}; g.W.tG=function(){this.Pp.tG()}; g.W.yL=function(U){return this.Pp.yL(U)}; g.W.hD=function(){return this.Pp.hD()}; g.W.pg=function(){return this.Pp.pg()}; g.W.pk=function(){return this.Pp.pk()}; g.W.R0=function(U,Y,A){this.Pp.R0(U,Y,A)}; g.W.nN=function(U,Y,A){this.Pp.nN(U,Y,A)}; g.W.EV=function(U,Y){return this.Pp.EV(U,Y)}; g.W.supports=function(U){return this.Pp.supports(U)}; g.W.Cg=function(){return this.Pp.Cg()}; g.W.isView=function(){return!0}; g.W.XG=function(){return this.Pp.XG()?this.isActive:!1}; g.W.isLocked=function(){return this.nK&&!this.isActive}; g.W.i9=function(U){U=this.Pp.i9(U);U.vw=this.start+"-"+this.end;return U}; g.W.RY=function(){return this.Pp.RY()}; g.W.Qj=function(){return this.Pp.Qj()}; g.W.QC=function(){return this.Pp.QC()}; g.W.Tn=function(){this.Pp.zb(this.aR);g.l6.prototype.Tn.call(this)};var Jc=!1;g.w(Jx,g.l6);g.W=Jx.prototype;g.W.appendBuffer=function(U,Y,A){this.d3=!1;A&&(this.FK=A);if(U.length){var c;((c=this.yd)==null?0:c.appendBuffer)?this.yd.appendBuffer(U):this.yd?this.yd.append(U):this.N7&&this.N7.webkitSourceAppend(this.id,U)}Y&&(Y.isEncrypted()&&(this.Sh=this.FK),Y.type===3&&(this.YH=Y),this.QW.push(Y.jq()),this.QW.length>4&&this.QW.shift());this.vM&&(this.vM.length>=2||U.length>1048576?delete this.vM:this.vM.push(U))}; g.W.abort=function(){try{this.yd?this.yd.abort():this.N7&&this.N7.webkitSourceAbort(this.id)}catch(Y){if(x$3){var U=new g.Do("Error while abort the source buffer: "+Y.name+", "+Y.message);g.S5(U)}}this.FK=this.YH=null}; g.W.remove=function(U,Y,A){this.d3=!1;var c;if((c=this.yd)==null?0:c.remove)A&&A({b:lM(this.MU()),s:U,e:Y}),this.yd.remove(U,Y)}; g.W.removeAll=function(){this.remove(this.FI(),this.t3())}; g.W.clear=function(){this.lQ()||(this.abort(),this.removeAll(),this.Sh=this.FK=this.YH=null,this.appendWindowStart=this.timestampOffset=0,this.Ko=rh([],[]),this.d3=!1,this.vM=iM?[]:void 0,this.H8=!0)}; g.W.FI=function(){if(Jc&&this.pV)return this.appendWindowStart;var U;return((U=this.yd)==null?void 0:U.appendWindowStart)||0}; g.W.t3=function(){var U;return((U=this.yd)==null?void 0:U.appendWindowEnd)||0}; g.W.hE=function(U,Y){this.yd&&(Jc&&this.pV?(this.appendWindowStart=U,this.yd.appendWindowEnd=Y):U>this.FI()?(this.yd.appendWindowEnd=Y,this.yd.appendWindowStart=U):(this.yd.appendWindowStart=U,this.yd.appendWindowEnd=Y))}; g.W.Kp=function(){return this.timestampOffset}; g.W.dB=function(U){Jc?this.timestampOffset=U:this.supports(1)&&(this.yd.timestampOffset=U)}; g.W.Zm=function(){return Jc?this.timestampOffset:this.supports(1)?this.yd.timestampOffset:0}; g.W.MU=function(U){if(U===void 0?0:U)return this.d3||this.Zk()||(this.Ko=this.MU(!1),this.d3=!0),this.Ko;try{return this.yd?this.yd.buffered:this.N7?this.N7.webkitSourceBuffered(this.id):rh([0],[Infinity])}catch(Y){return rh([],[])}}; g.W.Zk=function(){var U;return((U=this.yd)==null?void 0:U.updating)||!1}; g.W.lQ=function(){return this.H8}; g.W.YJ=function(){return!this.H8&&this.Zk()}; g.W.tG=function(){this.H8=!1}; g.W.yL=function(U){var Y=U==null?void 0:U.Rv;U=U==null?void 0:U.containerType;return!Y&&!U||Y===this.Rv&&U===this.containerType}; g.W.hD=function(){return this.FK}; g.W.pg=function(){return this.Sh}; g.W.EV=function(U,Y){return this.containerType!==U||this.Rv!==Y}; g.W.R0=function(U,Y,A){if(this.containerType!==U||A&&this.EV(U,A))this.supports(4),Fg()&&this.yd.changeType(Y),A&&(this.Rv=A);this.containerType=U}; g.W.nN=function(U,Y,A){this.containerType&&this.EV(U,Y)&&Fg()&&this.yd.changeType(A);this.containerType=U;this.Rv=Y}; g.W.Cg=function(){return this.YH}; g.W.isView=function(){return!1}; g.W.supports=function(U){switch(U){case 1:var Y;return((Y=this.yd)==null?void 0:Y.timestampOffset)!==void 0;case 0:var A;return!((A=this.yd)==null||!A.appendBuffer);case 2:var c;return!((c=this.yd)==null||!c.remove);case 3:var d,T;return!!(((d=this.yd)==null?0:d.addEventListener)&&((T=this.yd)==null?0:T.removeEventListener));case 4:return!(!this.yd||!this.yd.changeType);default:return!1}}; g.W.XG=function(){return!this.Zk()}; g.W.isLocked=function(){return!1}; g.W.i9=function(U){U.to=this.Zm();U.up=this.Zk();var Y,A=((Y=this.yd)==null?void 0:Y.appendWindowStart)||0,c;Y=((c=this.yd)==null?void 0:c.appendWindowEnd)||Infinity;U.aw=A.toFixed(3)+"-"+Y.toFixed(3);return U}; g.W.jU=function(){var U;return((U=this.yd)==null?void 0:U.writeHead)||0}; g.W.RY=function(){for(var U={},Y=0;Y=7&&Ggv(this,function(){g.vn(function(){fPv(U,U.getCurrentTime(),0)},500)}); return Y}; g.W.seekTo=function(U){this.Ux()>0&&(X_&&bj<4&&(U=Math.max(.1,U)),this.setCurrentTime(U))}; g.W.iL=function(){if(!this.T&&this.Ov)if(this.Ov.K)try{var U;q2(this,{l:"mer",sr:(U=this.iY)==null?void 0:U.U_(),rs:U$(this.Ov)});this.Ov.clear();this.T=this.Ov;this.Ov=void 0}catch(Y){U=new g.Do("Error while clearing Media Source in MediaElement: "+Y.name+", "+Y.message),g.S5(U),this.stopVideo()}else this.stopVideo()}; g.W.stopVideo=function(){var U=this;if(!this.T){var Y;(Y=this.Ov)==null||aP3(Y);if(kmX){if(!this.W){var A=new AX;A.then(void 0,function(){}); this.W=A;RQS&&this.pause();g.vn(function(){U.W===A&&(E$(U),A.resolve())},200)}}else E$(this)}}; g.W.Im=function(){var U=this.Hb();return Hd(U)&&this.getDuration()?$e(U,this.getCurrentTime()):0}; g.W.i6=function(){var U=this.getDuration();return U===Infinity?1:U?this.Im()/U:0}; g.W.i9=function(){try{var U=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:lM(this.HR(),",",3),vbu:lM(this.Hb()),vbs:lM(this.K7()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Ux(),vns:""+this.X1(),vec:""+this.C3(),vemsg:this.uB(),vvol:""+this.getVolume(),vdom:""+ +this.TJ(),vsrc:""+ +!!this.Fj(),vw:""+U.width,vh:""+U.height}}catch(Y){return{}}}; g.W.hasError=function(){return this.C3()>0}; g.W.addEventListener=function(U,Y){this.j.listen(U,Y,!1,this);this.Kk(U)}; g.W.removeEventListener=function(U,Y){this.j.FY(U,Y,!1,this)}; g.W.dispatchEvent=function(U){if(this.W&&U.type==="pause")return!1;if(av3){var Y,A=((Y=U.Y)==null?void 0:Y.timeStamp)||Infinity;Y=A>performance.now()?A-Date.now()+performance.now():A;A=this.T||this.Ov;if((A==null?0:A.lQ())||Y<=((A==null?void 0:A.J)||0)){var c;q2(this,{l:"mede",sr:(c=this.iY)==null?void 0:c.U_(),et:U.type});return!1}if(this.g5)return q2(this,{l:"medes",et:U.type}),A&&U.type==="seeking"&&(A.J=performance.now(),this.g5=!1),!1}return this.j.dispatchEvent(U)}; g.W.F0=function(){this.J=!1}; g.W.sY=function(){this.J=!0;this.Ul(!0)}; g.W.vL=function(){this.J&&!this.h3()&&this.Ul(!0)}; g.W.equals=function(U){return!!U&&U.jc()===this.jc()}; g.W.Tn=function(){this.G&&this.removeEventListener("volumechange",this.vL);kmX&&E$(this);g.p.prototype.Tn.call(this)}; var kmX=!1,RQS=!1,av3=!1,MRY=!1;g.W=g.z3.prototype;g.W.isPaused=function(){return g.I(this,4)}; g.W.isPlaying=function(){return g.I(this,8)&&!g.I(this,512)&&!g.I(this,64)&&!g.I(this,2)}; g.W.isOrWillBePlaying=function(){return g.I(this,8)&&!g.I(this,2)&&!g.I(this,1024)}; g.W.isCued=function(){return g.I(this,64)&&!g.I(this,8)&&!g.I(this,4)}; g.W.isBuffering=function(){return g.I(this,1)&&!g.I(this,2)}; g.W.isError=function(){return g.I(this,128)}; g.W.isSuspended=function(){return g.I(this,512)}; g.W.Iy=function(){return g.I(this,64)&&g.I(this,4)}; g.W.toString=function(){return"PSt."+this.state.toString(16)}; var Zj={},OL=(Zj.BUFFERING="buffering-mode",Zj.CUED="cued-mode",Zj.ENDED="ended-mode",Zj.PAUSED="paused-mode",Zj.PLAYING="playing-mode",Zj.SEEKING="seeking-mode",Zj.UNSTARTED="unstarted-mode",Zj);g.w(WD,g.p);g.W=WD.prototype;g.W.RF=function(){return this.W}; g.W.Nz=function(){return this.slot}; g.W.zn=function(){return this.layout}; g.W.init=function(){var U=LH(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Y=LH(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Bm(this.layout.HZ)&&Uh(this.xt.get(),this.layout.layoutId,{y$:Y,E4:U,listener:this,uG:this.Fl()});LC9(this.SX.get(),this);U=this.MW;Y=this.layout.layoutId;var A={uG:this.Fl()};U.Y.set(Y,A);this.c9()}; g.W.Ed=function(){}; g.W.release=function(){Bm(this.layout.HZ)&&Yb(this.xt.get(),this.layout.layoutId);rOE(this.SX.get(),this);this.MW.Y.delete(this.layout.layoutId);this.SK()}; g.W.Er=function(){}; g.W.MG=function(){}; g.W.startRendering=function(U){BU(w4(this));if(iU(this,U)){var Y=this.Y;X6(Y.params.Tx.xE.get(),!0)&&vDc(Y,"p_sr",{});JX(this);this.N_(U);this.Fl()||this.qK(!1)}}; g.W.Vd=function(U,Y){if(Y.layoutId===this.layout.layoutId){this.XN="rendering";this.T=this.FT.get().isMuted()||this.FT.get().getVolume()===0;this.l$("impression");this.l$("start");if(this.FT.get().isMuted()){BD(this,"mute");var A;U=((A=G3(this))==null?void 0:A.muteCommands)||[];DT(this.U3.get(),U,this.layout.layoutId)}if(this.FT.get().isFullscreen()){this.P5("fullscreen");var c;A=((c=G3(this))==null?void 0:c.fullscreenCommands)||[];DT(this.U3.get(),A,this.layout.layoutId)}this.Fl()||(c=this.Ua.get(), c.W&&!c.T&&(c.K=!1,c.T=!0,c.actionType!=="ad_to_video"&&(D5("pbs",void 0,c.actionType),g.ir("finalize_all_timelines")&&uY8(c.actionType))));this.Xz(1);this.Jp(Y);var d;Y=((d=G3(this))==null?void 0:d.impressionCommands)||[];DT(this.U3.get(),Y,this.layout.layoutId)}}; g.W.md=function(U,Y,A){this.G={o9:3,lS:U==="load_timeout"?402:400,errorMessage:Y.message};this.l$("error");var c;U=((c=G3(this))==null?void 0:c.errorCommands)||[];DT(this.U3.get(),U,this.layout.layoutId);this.Fl()||this.bG.xH(this.slot,this.layout,Y,A)}; g.W.f$=function(){if(this.XN==="rendering"){BD(this,"pause");var U,Y=((U=G3(this))==null?void 0:U.pauseCommands)||[];DT(this.U3.get(),Y,this.layout.layoutId);this.Xz(2)}}; g.W.Nj=function(){if(this.XN==="rendering"){BD(this,"resume");var U,Y=((U=G3(this))==null?void 0:U.resumeCommands)||[];DT(this.U3.get(),Y,this.layout.layoutId)}}; g.W.EK=function(U,Y){Y=Y===void 0?!1:Y;if(this.XN==="rendering"){var A={currentTimeSec:U,flush:Y};kP(this.Y,"p_ip",A);hg(this.NI,U*1E3,Y);this.T||hg(this.NI,U*1E3,Y===void 0?!1:Y);var c=this.Fn();if(c){c/=1E3;if(U>=c*.25||Y)this.l$("first_quartile"),kP(this.Y,"p_fq",A);if(U>=c*.5||Y)this.l$("midpoint"),kP(this.Y,"p_sq",A);if(U>=c*.75||Y)this.l$("third_quartile"),kP(this.Y,"p_tq",A);this.xE.get().U.L().experiments.lY("enable_progress_command_flush_on_kabuki")?gl(this.j,U*1E3,Y):gl(this.j,U*1E3,mG3(this)? Y:!1)}}}; g.W.fX=function(){var U;return((U=FS(this.Gn.get(),1))==null?void 0:U.clientPlaybackNonce)||""}; g.W.hC=function(U,Y){U.layoutId!==this.layout.layoutId?this.bG.xH(this.slot,U,new od("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"):Y()}; g.W.D5=function(U,Y,A){if(Y.layoutId===this.layout.layoutId)switch(this.XN="not_rendering",this.layoutExitReason=void 0,this.Fl()||(U=A!=="normal"||this.position+1===this.J)&&this.qK(U),this.Bh(A),this.Xz(0),A){case "abandoned":if(S8(this.NI,"impression")){var c,d=((c=G3(this))==null?void 0:c.abandonCommands)||[];DT(this.U3.get(),d,this.layout.layoutId)}break;case "normal":c=((d=G3(this))==null?void 0:d.completeCommands)||[];DT(this.U3.get(),c,this.layout.layoutId);break;case "skipped":var T;c=((T= G3(this))==null?void 0:T.skipCommands)||[];DT(this.U3.get(),c,this.layout.layoutId)}}; g.W.Iw=function(){return this.layout.layoutId}; g.W.ZK=function(){return this.G}; g.W.wP=function(){if(this.XN==="rendering"){this.NI.l$("active_view_measurable");var U,Y=((U=G3(this))==null?void 0:U.activeViewMeasurableCommands)||[];DT(this.U3.get(),Y,this.layout.layoutId)}}; g.W.iE=function(){if(this.XN==="rendering"){this.NI.l$("active_view_fully_viewable_audible_half_duration");var U,Y=((U=G3(this))==null?void 0:U.activeViewFullyViewableAudibleHalfDurationCommands)||[];DT(this.U3.get(),Y,this.layout.layoutId)}}; g.W.HI=function(){if(this.XN==="rendering"){this.NI.l$("active_view_viewable");var U,Y=((U=G3(this))==null?void 0:U.activeViewViewableCommands)||[];DT(this.U3.get(),Y,this.layout.layoutId)}}; g.W.XH=function(){if(this.XN==="rendering"){this.NI.l$("audio_audible");var U,Y=((U=G3(this))==null?void 0:U.activeViewAudioAudibleCommands)||[];DT(this.U3.get(),Y,this.layout.layoutId)}}; g.W.M_=function(){if(this.XN==="rendering"){this.NI.l$("audio_measurable");var U,Y=((U=G3(this))==null?void 0:U.activeViewAudioMeasurableCommands)||[];DT(this.U3.get(),Y,this.layout.layoutId)}}; g.W.qK=function(U){this.Ua.get().qK(LH(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,U,this.position,this.J,!1)}; g.W.onFullscreenToggled=function(U){if(this.XN==="rendering")if(U){this.P5("fullscreen");var Y,A=((Y=G3(this))==null?void 0:Y.fullscreenCommands)||[];DT(this.U3.get(),A,this.layout.layoutId)}else this.P5("end_fullscreen"),Y=((A=G3(this))==null?void 0:A.endFullscreenCommands)||[],DT(this.U3.get(),Y,this.layout.layoutId)}; g.W.onVolumeChange=function(){if(this.XN==="rendering")if(this.FT.get().isMuted()){BD(this,"mute");var U,Y=((U=G3(this))==null?void 0:U.muteCommands)||[];DT(this.U3.get(),Y,this.layout.layoutId)}else BD(this,"unmute"),U=((Y=G3(this))==null?void 0:Y.unmuteCommands)||[],DT(this.U3.get(),U,this.layout.layoutId)}; g.W.zz=function(){}; g.W.pJ=function(){}; g.W.jj=function(){}; g.W.aJ=function(){}; g.W.nJ=function(){}; g.W.P5=function(U){this.NI.P5(U,!this.T)}; g.W.l$=function(U){this.NI.l$(U,!this.T)}; g.W.Fl=function(){var U=LH(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return U===void 0?($D("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.xE.get().Fl(U)};g.w(x0,WD);g.W=x0.prototype;g.W.c9=function(){}; g.W.SK=function(){var U=this.SX.get();U.G9===this&&(U.G9=null);this.lf.stop()}; g.W.Er=function(){this.lf.stop();WD.prototype.f$.call(this)}; g.W.MG=function(){fQ(this);WD.prototype.Nj.call(this)}; g.W.Fn=function(){return LH(this.zn().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.W.Hp=function(U,Y){var A=this;this.hC(U,function(){A.XN!=="rendering_stop_requested"&&(A.XN="rendering_stop_requested",A.layoutExitReason=Y,jU(A,Y),A.lf.stop())})}; g.W.ya=function(){var U=Date.now(),Y=U-this.yp;this.yp=U;this.Jr+=Y;this.Jr>=this.Fn()?this.bA():(this.EK(this.Jr/1E3),s$(this,this.Jr))}; g.W.Bh=function(){}; g.W.RS=function(){}; g.w(hX,x0);g.W=hX.prototype;g.W.q1=function(U){if(this.XN!=="not_rendering"){U=NO(this,U);var Y=this.FT.get().getPresentingPlayerType()===2;this.XN==="rendering_start_requested"?Y&&vU(U)&&this.xd():Y?g.Gg(U,2)?$D("Receive player ended event during MediaBreak",this.Nz(),this.zn()):tX(this,U):this.GD()}}; g.W.N_=function(){ZV3(this);iXX(this.FT.get());this.SX.get().G9=this;yl("pbp")||yl("pbs")||D5("pbp");yl("pbp","watch")||yl("pbs","watch")||D5("pbp",void 0,"watch");this.xd()}; g.W.Jp=function(U){this.Ua.get();var Y=LH(U.clientMetadata,"metadata_type_ad_placement_config").kind,A=this.position===0;U=LH(U.clientMetadata,"metadata_type_linked_in_player_layout_type");U={adBreakType:eU(Y),adType:YXv(U)};var c=void 0;A?Y!=="AD_PLACEMENT_KIND_START"&&(c="video_to_ad"):c="ad_to_ad";Z5("ad_mbs",void 0,c);g.OX(U,c);fQ(this)}; g.W.GD=function(){this.f1()}; g.W.bA=function(){y_X(this);this.f1()}; g.w(SU,x0);g.W=SU.prototype;g.W.q1=function(U){this.XN!=="not_rendering"&&(U=NO(this,U),tX(this,U))}; g.W.N_=function(){$D("Not used in SSAP")}; g.W.Jp=function(){fQ(this)}; g.W.GD=function(){$D("Not used in SSAP")}; g.W.bA=function(){y_X(this);this.bG.WM(this.Nz(),this.zn(),"normal")}; g.w(MO,SU);MO.prototype.Hp=function(U,Y){var A=this;this.hC(U,function(){F6(A.W,Y)&&(A.XN="rendering_stop_requested",A.layoutExitReason=Y,jU(A,Y),A.lf.stop())})}; MO.prototype.startRendering=function(U){BU(w4(this));iU(this,U)&&(JX(this),this.SX.get().G9=this)};g.w(QG,WD);g.W=QG.prototype;g.W.GD=function(){this.f1()}; g.W.q1=function(U){if(this.XN!=="not_rendering"){U=NO(this,U);var Y=this.FT.get().getPresentingPlayerType()===2;this.XN==="rendering_start_requested"?Y&&vU(U)&&this.xd():!Y||g.Gg(U,2)?this.f1():tX(this,U)}}; g.W.c9=function(){LH(this.zn().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=LH(this.zn().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.W.SK=function(){LH(this.zn().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.Y$){var U=this.context.Tx,Y=this.Y$,A=this.zn().layoutId;if(X6(U.xE.get(),!0)){var c={};U.XT("mccru",(c.cid=Y,c.p_ac=A,c))}this.cQ.get().removeCueRange(this.Y$)}this.Y$=void 0;var d;(d=this.Dz)==null||d.dispose();this.Uj&&this.Uj.dispose()}; g.W.N_=function(U){var Y=bU(this.xE.get()),A=pQ(this.xE.get());if(Y&&A&&!this.Fl()){A=LH(U.clientMetadata,"metadata_type_preload_player_vars");var c=this.xE.get();c=g.H_(c.U.L().experiments,"html5_preload_wait_time_secs");A&&this.Uj&&this.Uj.start(c*1E3)}IPl(this,U);ZV3(this);Y?(A=this.vQ.get(),U=LH(U.clientMetadata,"metadata_type_player_vars"),A.U.loadVideoByPlayerVars(U,!1,2)):sTV(this.vQ.get(),LH(U.clientMetadata,"metadata_type_player_vars"));var d;(d=this.Dz)==null||d.start();Y||this.vQ.get().U.playVideo(2)}; g.W.Jp=function(){var U;(U=this.Dz)==null||U.stop();this.Y$="adcompletioncuerange:"+this.zn().layoutId;this.cQ.get().addCueRange(this.Y$,0x7ffffffffffff,0x8000000000000,!1,this,2,2);U=this.context.Tx;var Y=this.Y$,A=this.zn().layoutId;if(X6(U.xE.get(),!0)){var c={};U.XT("mccr",(c.cid=Y,c.p_ac=A,c))}(this.adCpn=QNc(this))||$D("Media layout confirmed started, but ad CPN not set.");this.a5.get().wX("onAdStart",this.adCpn);this.Of=Date.now()}; g.W.Fn=function(){var U;return(U=FS(this.Gn.get(),2))==null?void 0:U.ly}; g.W.E1=function(){this.NI.P5("clickthrough")}; g.W.Hp=function(U,Y){var A=this;this.hC(U,function(){if(A.XN!=="rendering_stop_requested"){A.XN="rendering_stop_requested";A.layoutExitReason=Y;jU(A,Y);var c;(c=A.Dz)==null||c.stop();A.Uj&&A.Uj.stop();uHv(A)}})}; g.W.onCueRangeEnter=function(U){if(U!==this.Y$)$D("Received CueRangeEnter signal for unknown layout.",this.Nz(),this.zn(),{cueRangeId:U});else{var Y=this.context.Tx,A=this.zn().layoutId;if(X6(Y.xE.get(),!0)){var c={};Y.XT("mccre",(c.cid=U,c.p_ac=A,c))}this.cQ.get().removeCueRange(this.Y$);this.Y$=void 0;q8(this.context.xE.get(),"html5_ssap_flush_at_stop_rendering")&&this.Fl()||(U=LH(this.zn().clientMetadata,"metadata_type_video_length_seconds"),this.EK(U,!0),this.l$("complete"))}}; g.W.Bh=function(U){U!=="abandoned"&&this.a5.get().wX("onAdComplete");this.a5.get().wX("onAdEnd",this.adCpn)}; g.W.onCueRangeExit=function(){}; g.W.RS=function(U){this.XN==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&U>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.FT.get().D_(!0),this.EK(U))}; g.W.EK=function(U,Y){WD.prototype.EK.call(this,U,Y===void 0?!1:Y);Y=Date.now()-this.Of;var A=U*1E3,c={contentCpn:this.fX(),adCpn:QNc(this)};if(U-this.OC>=5){var d=Y=2||(this.LU.Hp(this.layout,Y),U=q8(this.params.context.xE.get(),"html5_ssap_pass_transition_reason")&&Y==="abandoned",this.mU()&&!U&&(q8(this.params.context.xE.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(Y)||$D("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:Y})),this.WQ.get().finishSegmentByCpn(this.layout.layoutId, FS(this.Gn.get(),1).clientPlaybackNonce,k0(Y,this.params.context.xE))),this.FT.get().removeListener(this),this.Iu()&&jf(this.LU.RF())&&this.sB.D5(this.slot,this.layout,J5(this.LU.RF())))}; g.W.Mv=function(U,Y,A){VRX({cpn:U,A_:this.Gn.get(),gK:!0});this.zn().layoutId!==U||q8(this.params.context.xE.get(),"html5_ssap_pass_transition_reason")&&A===5||(iu(this.LU.RF())<2&&(U=Rh(A,this.params.context.xE),U==="error"?this.sB.xH(this.slot,this.layout,new od("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:A},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):KQ(this.QV,this.layout, U)),q8(this.params.context.xE.get(),"html5_ssap_exit_without_waiting_for_transition")||this.sB.D5(this.slot,this.layout,J5(this.LU.RF())))};g.w(yG,g.p);g.W=yG.prototype;g.W.Nz=function(){return this.slot}; g.W.zn=function(){return this.layout}; g.W.Mh=function(){}; g.W.wv=function(){return this.wV[this.K1]}; g.W.B7=function(){return this.K1}; g.W.Er=function(U,Y){var A=this.wv();Y.layoutId!==Dr(A,U,Y)?$D("pauseLayout for a PlayerBytes layout that is not currently active",U,Y):A.Er()}; g.W.MG=function(U,Y){var A=this.wv();Y.layoutId!==Dr(A,U,Y)?$D("resumeLayout for a PlayerBytes layout that is not currently active",U,Y):A.MG()}; g.W.AC=function(U,Y){var A=this.wv();EgV(this,U,Y);ogl(A,U,Y)&&this.dc(A.Nz(),A.zn(),"skipped")}; g.W.jz=function(U,Y){var A=this.wv();zlX(this);Lb9(A,U,Y)&&(U=rL9(this,A,U,Y),U!==void 0&&(this.Fl()?$D("Should not happen. Should delete"):P18(this,A.Nz(),A.zn(),U)))}; g.W.Sp=function(U,Y){var A=Object.assign({},nQ(this),{layoutId:Y.layoutId}),c=A.layoutId,d=A.gK;if(A.uG){var T={};ef(A.A_,"wrse",(T.ec=c,T.is=d,T.ctp=t5(c),T))}ad(this.tW,U,Y)}; g.W.Vd=function(U,Y){var A;(A=this.wv())==null||A.Vd(U,Y)}; g.W.D5=function(U,Y,A){Y.layoutId===this.zn().layoutId&&(this.u6=!1,iT(this.wf(),this));var c;(c=this.wv())==null||c.D5(U,Y,A)}; g.W.RS=function(U){var Y;(Y=this.wv())==null||Y.RS(U)}; g.W.IN=function(U,Y,A){this.B7()===-1&&(this.callback.Vd(this.slot,this.layout),this.K1++);var c=this.wv();c?(c.md(U,Y,A),this.Fl()&&this.callback.xH(this.slot,this.layout,Y,A)):$D("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.B7()),layoutId:this.zn().layoutId})}; g.W.onFullscreenToggled=function(U){var Y;(Y=this.wv())==null||Y.onFullscreenToggled(U)}; g.W.zz=function(U){var Y;(Y=this.wv())==null||Y.zz(U)}; g.W.jj=function(U){var Y;(Y=this.wv())==null||Y.jj(U)}; g.W.onVolumeChange=function(){var U;(U=this.wv())==null||U.onVolumeChange()}; g.W.ao=function(U,Y,A){xq(this.tW,U,Y,A)}; g.W.kS=function(U){U.startRendering(U.zn())}; g.W.init=function(){var U=LH(this.zn().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");U&&(U.current=this);if(this.wV.length<1)throw new u("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.wV.length)});if(U=LH(this.zn().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))U.current=this;U=g.J(this.wV);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.init(),sB8(this.tW,this.slot,Y.zn()),fSc(this.tW,this.slot,Y.zn()); if(this.Fl())for(this.Gn.get().addListener(this),oDV(TsY(this),this.Gn.get()),U=TsY(this),U=g.J(U),Y=U.next();!Y.done;Y=U.next())this.AI(Y.value)}; g.W.AI=function(U){var Y=LH(U.clientMetadata,"metadata_type_player_vars");Y?(U.layoutType!=="LAYOUT_TYPE_MEDIA"&&$D("Non-video ad contains playerVars",this.slot,U),this.vQ.get().addPlayerResponseForAssociation({playerVars:Y})):(U=ALc(U),this.vQ.get().addPlayerResponseForAssociation({A3:U}))}; g.W.release=function(){var U=LH(this.zn().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");U&&(U.current=null);if(U=LH(this.zn().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))U.current=null;U=g.J(this.wV);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,h7l(this.tW,this.slot,Y.zn()),Y.release();this.Fl()&&(this.Gn.get().removeListener(this),zrE())}; g.W.hC=function(U){return U.layoutId!==this.zn().layoutId?(this.callback.xH(this.Nz(),U,new od("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.zn().layoutId+("and LayoutType: "+this.zn().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.W.bM=function(){this.FT.get().addListener(this);wD(this.wf(),this)}; g.W.q1=function(U){if(U.state.isError()){var Y,A;this.IN((Y=U.state.Pb)==null?void 0:Y.errorCode,new od("There was a player error during this media layout.",{playerErrorCode:(A=U.state.Pb)==null?void 0:A.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(Y=this.wv())&&Y.q1(U)}; g.W.Fl=function(){var U=LH(this.Nz().clientMetadata,"metadata_type_eligible_for_ssap");return U===void 0?($D("Expected SSAP eligibility in PlayerBytes slots",this.Nz(),this.zn()),!1):this.xE.get().Fl(U)}; g.W.pJ=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.aJ=function(){}; g.W.nJ=function(){}; g.w(qO,yG);g.W=qO.prototype;g.W.r7=function(U,Y,A){this.dc(U,Y,A)}; g.W.ke=function(U,Y){this.dc(U,Y,"error")}; g.W.dc=function(U,Y,A){var c=this;l5S(this,U,Y,A,function(){Ih(c,c.B7()+1)})}; g.W.startRendering=function(U){this.hC(U)&&(this.bM(),Rs8(this.Ua.get()),pfc(this.xE.get())||iXX(this.FT.get()),this.B7()===-1&&Ih(this,this.B7()+1))}; g.W.Hp=function(U,Y){var A=this;this.u6=!0;this.B7()===this.wV.length?this.callback.D5(this.slot,this.layout,Y):(U=this.wv(),U.Hp(U.zn(),Y),this.xT=function(){A.callback.D5(A.slot,A.layout,Y)}); JO9(this.FT.get());sTV(this.vQ.get(),{});U=C0(this.FT.get(),1);U.isPaused()&&!g.I(U,2)&&this.FT.get().playVideo();this.FT.get().removeListener(this);this.u6&&Vsc(this)}; g.W.Mv=function(){}; g.W.XK=function(){}; g.W.WM=function(){}; g.w(CQ,yG);g.W=CQ.prototype;g.W.r7=function(U,Y,A){U=Object.assign({},nQ(this),{layoutId:Y.layoutId,layoutExitReason:A});Y=U.layoutId;A=U.layoutExitReason;var c={};ef(U.A_,"prse",(c.xc=Y,c.ler=A,c.ctp=t5(Y),c))}; g.W.ke=function(){$D("onSubLayoutError in SSAP")}; g.W.dc=function(){$D("exitSubLayoutAndPlayNext in SSAP")}; g.W.wv=function(){return this.UT}; g.W.B7=function(){var U=this;return this.wV.findIndex(function(Y){var A;return Y.zn().layoutId===((A=U.UT)==null?void 0:A.zn().layoutId)})}; g.W.kS=function(U){Vz(this.UT===void 0,"replacing another adapter");this.UT=U;U.startRendering(U.zn())}; g.W.ao=function(U,Y,A){xq(this.tW,U,Y,A);var c;Vz(Y.layoutId===((c=this.UT)==null?void 0:c.zn().layoutId),"currentAdapter does not match exiting layout",{slot:U?"slot: "+U.slotType:"",subLayout:Ph(Y)})&&(this.UT=void 0)}; g.W.release=function(){yG.prototype.release.call(this);Vz(this.UT===void 0,"currentAdapter is still active during release");this.UT=void 0}; g.W.mU=function(){return this.FT.get().getPresentingPlayerType()===2}; g.W.Hp=function(U,Y){function A(){UM(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(Y)||$D("Composite stopRendering: Unexpected layout exit reason",this.slot,U,{layoutExitReason:Y}))} function c(){this.UT&&Ym(this,this.UT,Y);if(this.mU()&&(!UM(this)||Y!=="abandoned")){A.call(this);var T;var E=((T=this.Gn.get().U.getVideoData())==null?void 0:T.clientPlaybackNonce)||"";T=FS(this.Gn.get(),1).clientPlaybackNonce;this.WQ.get().finishSegmentByCpn(E,T,k0(Y,this.xE))}$i8(this,Y)} function d(){if(this.UT){var T=this.UT;iu(T.RF())<2&&T.Hp(T.zn(),Y);T=UM(this)&&Y==="abandoned";this.mU()&&!T&&(A.call(this),this.WQ.get().finishSegmentByCpn(this.UT.zn().layoutId,FS(this.Gn.get(),1).clientPlaybackNonce,k0(Y,this.xE)))}} Vz(U.layoutId===this.zn().layoutId,"StopRendering for wrong layout")&&F6(this.Br.T,Y)&&(this.Iu()?c.call(this):d.call(this))}; g.W.D5=function(U,Y,A){yG.prototype.D5.call(this,U,Y,A);Y.layoutId===this.zn().layoutId&&this.FT.get().removeListener(this)}; g.W.fX=function(){return FS(this.Gn.get(),1).clientPlaybackNonce}; g.W.Mv=function(U,Y,A){VRX(Object.assign({},nQ(this),{cpn:U}));if(!UM(this)||A!==5)if(this.Iu()){if(this.UT&&this.UT.zn().layoutId!==Y){var c=this.UT.zn().layoutId;c!==U&&$D("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:c,exitingCpn:U,enteringCpn:Y});U=Rh(A,this.xE);Ym(this,this.UT,U)}else this.UT&&$D("onClipExited: active layout is entering again");Y===this.fX()&&HK3(this,A)}else{if(this.UT&&this.UT.zn().layoutId===U)vg9(this,this.UT,A);else{var d;$D("Exiting cpn does not match active cpn", this.slot,(c=this.UT)==null?void 0:c.zn(),{exitingCpn:U,transitionReason:A,activeCpn:(d=this.UT)==null?void 0:d.zn().layoutId})}Y===this.fX()&&(this.UT!==void 0&&($D("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Ph(this.UT.zn())}),vg9(this,this.UT,A)),HK3(this,A),$i8(this,this.Br.T.Y))}}; g.W.Iu=function(){return q8(this.xE.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.W.startRendering=function(U){this.hC(U)&&(U=this.Br,Vz(U.Y===1,"tickStartRendering: state is not initial"),U.Y=2,this.bM())}; g.W.XK=function(U){PEY(Object.assign({},nQ(this),{cpn:U}));var Y=this.wV.find(function(A){return A.zn().layoutId===U}); Y?(this.Br.Y!==2&&(CDX(this.UH,this.slot.slotId),Vz(this.Br.Y===2,"Expect started"),this.callback.Vd(this.slot,this.layout)),this.kS(Y),ad(this.tW,this.slot,Y.zn())):GNE(this,U)}; g.W.AC=function(U,Y){EgV(this,U,Y);var A=this.wv();A?ogl(A,U,Y)&&Wbv(this,"skipped"):w0V(this,"onSkipRequested")}; g.W.jz=function(U,Y){var A;a:{if(A=this.wv()){if(zlX(this),Lb9(A,U,Y)&&(U=rL9(this,A,U,Y),U!==void 0)){A={z8:A,U7Y:this.wV[U]};break a}}else w0V(this,"SkipWithAdPodSkip");A=void 0}if(U=A)A=U.z8,Y=U.U7Y,U=A.zn().layoutId,this.Iu()?Ym(this,A,"skipped"):A.Hp(A.zn(),"skipped"),A=Y.zn().layoutId,this.WQ.get().finishSegmentByCpn(U,A,k0("skipped",this.xE))}; g.W.Sp=function(){$D("Not used in html5_ssap_fix_layout_exit")}; g.W.q1=function(U){var Y;(Y=this.wv())==null||Y.q1(U)}; g.W.IN=function(){$D("Not used in html5_ssap_fix_layout_exit")}; g.W.WM=function(U,Y,A){var c;if(((c=this.wv())==null?void 0:c.zn().layoutId)!==Y.layoutId)return void $D("requestToExitSubLayout: wrong layout");Wbv(this,A)};g.w(A4,g.p);g.W=A4.prototype;g.W.Nz=function(){return this.LU.Nz()}; g.W.zn=function(){return this.LU.zn()}; g.W.init=function(){var U=LH(this.zn().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");U&&(U.current=this);this.c9()}; g.W.c9=function(){this.LU.init()}; g.W.release=function(){var U=LH(this.zn().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");U&&(U.current=null);this.SK()}; g.W.SK=function(){this.LU.release()}; g.W.Er=function(){this.LU.Er()}; g.W.MG=function(){this.LU.MG()}; g.W.AC=function(U,Y){$D("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Nz(),this.zn(),{requestingSlot:U,requestingLayout:Y})}; g.W.startRendering=function(U){U.layoutId!==this.zn().layoutId?this.callback.xH(this.Nz(),U,new od("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.zn().layoutId+("and LayoutType: "+this.zn().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.FT.get().addListener(this),wD(this.wf(),this),Rs8(this.Ua.get()),pfc(this.xE.get())||iXX(this.FT.get()),this.LU.startRendering(U))}; g.W.Hp=function(U,Y){this.u6=!0;this.LU.Hp(U,Y);JO9(this.FT.get());sTV(this.vQ.get(),{});U=C0(this.FT.get(),1);U.isPaused()&&!g.I(U,2)&&this.FT.get().playVideo();this.FT.get().removeListener(this);this.u6&&this.LU.GD()}; g.W.Vd=function(U,Y){this.LU.Vd(U,Y)}; g.W.D5=function(U,Y,A){Y.layoutId===this.zn().layoutId&&(this.u6=!1,iT(this.wf(),this));this.LU.D5(U,Y,A);Y.layoutId===this.zn().layoutId&&uU(this.Ua.get())}; g.W.RS=function(U){this.LU.RS(U)}; g.W.q1=function(U){if(U.state.isError()){var Y,A;this.IN((Y=U.state.Pb)==null?void 0:Y.errorCode,new od("There was a player error during this media layout.",{playerErrorCode:(A=U.state.Pb)==null?void 0:A.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.LU.q1(U)}; g.W.IN=function(U,Y,A){this.LU.md(U,Y,A)}; g.W.onFullscreenToggled=function(U){this.LU.onFullscreenToggled(U)}; g.W.zz=function(U){this.LU.zz(U)}; g.W.jj=function(U){this.LU.jj(U)}; g.W.onVolumeChange=function(){this.LU.onVolumeChange()}; g.W.pJ=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.aJ=function(){}; g.W.nJ=function(){};g.W=cq.prototype;g.W.Nz=function(){return this.slot}; g.W.zn=function(){return this.layout}; g.W.init=function(){this.EH.get().addListener(this);this.FT.get().addListener(this);var U=LH(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var Y=LH(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.j){var A=Bk9(this.EH.get()).slice(-1)[0];A!==void 0&&(U=A.startSecs*1E3,Y=(A.startSecs+A.LV)*1E3)}this.Ed(U,Y);var c;A=(c=Ti(this.Gn.get()))==null?void 0:c.clientPlaybackNonce;c=this.layout.Gk.adClientDataEntry;dP(this.SX.get(),{daiStateTrigger:{filledAdsDurationMs:Y-U,contentCpn:A, adClientData:c}});var d=this.EH.get();d=FbV(d.W,U,Y);d!==null&&(dP(this.SX.get(),{daiStateTrigger:{filledAdsDurationMs:d-U,contentCpn:A,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.WQ.get().mQ(d,Y))}; g.W.release=function(){this.SK();this.EH.get().removeListener(this);this.FT.get().removeListener(this)}; g.W.startRendering=function(){this.N_();this.callback.Vd(this.slot,this.layout)}; g.W.Hp=function(U,Y){this.Az(Y);if(this.driftRecoveryMs!==null){U=this.driftRecoveryMs.toString();var A=Math.round(jlY(this)-LH(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),c=Math,d=c.round;var T=this.FT.get().U.NF();EM(this,{driftRecoveryMs:U,breakDurationMs:A,driftFromHeadMs:d.call(c,T*1E3).toString()});this.driftRecoveryMs=null}this.callback.D5(this.slot,this.layout,Y)}; g.W.cA=function(){return!1}; g.W.xo=function(U){var Y=LH(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),A=LH(this.layout.clientMetadata,"metadata_type_layout_exit_ms");U*=1E3;if(Y<=U&&U0&&sj(this.Y(),Y)}; g.W.f3=function(U){this.K.delete(U.slotId);for(var Y=[],A=g.J(this.JP.values()),c=A.next();!c.done;c=A.next()){c=c.value;var d=c.trigger;d instanceof Yr&&d.triggeringSlotId===U.slotId&&Y.push(c)}Y.length>0&&sj(this.Y(),Y)}; g.W.m6=function(U){for(var Y=[],A=g.J(this.JP.values()),c=A.next();!c.done;c=A.next()){c=c.value;var d=c.trigger;d instanceof gP&&d.slotType===U.slotType&&d.Y!==U.slotId&&Y.push(c)}Y.length>0&&sj(this.Y(),Y)}; g.W.rq=function(U){this.W.add(U.slotId);for(var Y=[],A=g.J(this.JP.values()),c=A.next();!c.done;c=A.next())c=c.value,c.trigger instanceof ui&&U.slotId===c.trigger.triggeringSlotId&&Y.push(c);Y.length>0&&sj(this.Y(),Y)}; g.W.Gs=function(U){this.W.delete(U.slotId);this.j.add(U.slotId);for(var Y=[],A=g.J(this.JP.values()),c=A.next();!c.done;c=A.next())if(c=c.value,c.trigger instanceof Kh)U.slotId===c.trigger.triggeringSlotId&&Y.push(c);else if(c.trigger instanceof sM){var d=c.trigger;U.slotId===d.slotId&&this.T.has(d.triggeringLayoutId)&&Y.push(c)}Y.length>0&&sj(this.Y(),Y)}; g.W.t8=function(U){for(var Y=[],A=g.J(this.JP.values()),c=A.next();!c.done;c=A.next())c=c.value,c.trigger instanceof qo&&U.slotId===c.trigger.triggeringSlotId&&Y.push(c);Y.length>0&&sj(this.Y(),Y)}; g.W.Bb=function(U){for(var Y=[],A=g.J(this.JP.values()),c=A.next();!c.done;c=A.next())c=c.value,c.trigger instanceof Ch&&U.slotId===c.trigger.triggeringSlotId&&Y.push(c);Y.length>0&&sj(this.Y(),Y)}; g.W.A8=function(U,Y){this.J.add(Y.layoutId)}; g.W.Uy=function(U,Y){this.J.delete(Y.layoutId)}; g.W.Vd=function(U,Y){this.T.add(Y.layoutId);for(var A=[],c=g.J(this.JP.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof fh)Y.layoutId===d.trigger.triggeringLayoutId&&A.push(d);else if(d.trigger instanceof mK){var T=d.trigger;U.slotType===T.slotType&&Y.layoutType===T.layoutType&&Y.layoutId!==T.Y&&A.push(d)}else d.trigger instanceof sM&&(T=d.trigger,Y.layoutId===T.triggeringLayoutId&&this.j.has(T.slotId)&&A.push(d));A.length>0&&sj(this.Y(),A)}; g.W.D5=function(U,Y,A){this.T.delete(Y.layoutId);U=[];for(var c=g.J(this.JP.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof Se&&Y.layoutId===d.trigger.triggeringLayoutId&&U.push(d),d.trigger instanceof h4){var T=d.trigger;Y.layoutId===T.triggeringLayoutId&&T.Y.includes(A)&&U.push(d)}U.length>0&&sj(this.Y(),U)}; g.W.Lh=function(){}; g.W.E_=function(){this.j.clear()}; g.W.Ri=function(){};g.w(nf,g.p);nf.prototype.MF=function(U,Y,A,c){if(this.JP.has(Y.triggerId))throw new u("Tried to register duplicate trigger for slot.");if(!(Y instanceof aW))throw new u("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in CloseRequestedTriggerAdapter");this.JP.set(Y.triggerId,new d6(U,Y,A,c))}; nf.prototype.xi=function(U){this.JP.delete(U.triggerId)};g.w(IX,g.p);IX.prototype.MF=function(U,Y,A,c){if(this.JP.has(Y.triggerId))throw new u("Tried to register duplicate trigger for slot.");if(!(Y instanceof RW||Y instanceof nh))throw new u("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.JP.set(Y.triggerId,new d6(U,Y,A,c))}; IX.prototype.xi=function(U){this.JP.delete(U.triggerId)}; IX.prototype.E_=function(U){for(var Y=[],A=Y.push,c=A.apply,d=[],T=g.J(this.JP.values()),E=T.next();!E.done;E=T.next())E=E.value,E.trigger instanceof RW&&E.trigger.dX===U&&d.push(E);c.call(A,Y,g.X(d));A=Y.push;c=A.apply;d=[];T=g.J(this.JP.values());for(E=T.next();!E.done;E=T.next())E=E.value,E.trigger instanceof nh&&E.trigger.Y!==U&&d.push(E);c.call(A,Y,g.X(d));Y.length&&sj(this.Y(),Y)}; IX.prototype.Ri=function(U){for(var Y=[],A=Y.push,c=A.apply,d=[],T=g.J(this.JP.values()),E=T.next();!E.done;E=T.next()){E=E.value;var L=E.trigger;L instanceof nh&&L.Y===U&&d.push(E)}c.call(A,Y,g.X(d));Y.length&&sj(this.Y(),Y)};g.w(uy,g.p);g.W=uy.prototype;g.W.MF=function(U,Y,A,c){if(this.JP.has(Y.triggerId))throw new u("Tried to register duplicate trigger for slot.");var d="adtriggercuerange:"+Y.triggerId;if(Y instanceof Z$)mTc(this,U,Y,A,c,d,Y.Y.start,Y.Y.end,Y.dX,Y.visible);else if(Y instanceof xm)mTc(this,U,Y,A,c,d,0x7ffffffffffff,0x8000000000000,Y.dX,Y.visible);else throw new u("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in CueRangeTriggerAdapter");}; g.W.xi=function(U){var Y=this.JP.get(U.triggerId);Y&&this.cQ.get().removeCueRange(Y.cueRangeId);this.JP.delete(U.triggerId)}; g.W.onCueRangeEnter=function(U){var Y=g8S(this,U);if(Y&&(Y=this.JP.get(Y)))if(g.I(C0(this.FT.get()),32))this.Y.add(Y.cueRangeId);else{var A=Y==null?void 0:Y.cT.trigger;if(A instanceof Z$||A instanceof xm){if(X6(this.context.xE.get())){var c=Y.cT.slot,d=Y.cT.layout,T={};this.context.Tx.XT("cre",(T.ca=Y.cT.category,T.tt=A.triggerType,T.st=c.slotType,T.lt=d==null?void 0:d.layoutType,T.cid=U,T))}sj(this.T(),[Y.cT])}}}; g.W.onCueRangeExit=function(U){(U=g8S(this,U))&&(U=this.JP.get(U))&&this.Y.delete(U.cueRangeId)}; g.W.q1=function(U){if(Hh(U,16)<0){U=g.J(this.Y);for(var Y=U.next();!Y.done;Y=U.next())this.onCueRangeEnter(Y.value,!0);this.Y.clear()}}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Vd=function(){}; g.W.D5=function(){}; g.W.Lh=function(){}; g.W.RS=function(){}; g.W.onFullscreenToggled=function(){}; g.W.zz=function(){}; g.W.pJ=function(){}; g.W.jj=function(){}; g.W.onVolumeChange=function(){}; g.W.aJ=function(){}; g.W.nJ=function(){};g.w(Kf,g.p);g.W=Kf.prototype; g.W.MF=function(U,Y,A,c){if(this.T.has(Y.triggerId)||this.W.has(Y.triggerId))throw new u("Tried to re-register the trigger.");U=new d6(U,Y,A,c);if(U.trigger instanceof QC)this.T.set(U.trigger.triggerId,U);else if(U.trigger instanceof Mo)this.W.set(U.trigger.triggerId,U);else throw new u("Incorrect TriggerType: Tried to register trigger of type "+U.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.T.has(U.trigger.triggerId)&&U.slot.slotId===this.Y&&sj(this.j(),[U])}; g.W.xi=function(U){this.T.delete(U.triggerId);this.W.delete(U.triggerId)}; g.W.Mh=function(U){U=U.slotId;if(this.Y!==U){var Y=[];this.Y!=null&&Y.push.apply(Y,g.X(yoY(this.W,this.Y)));U!=null&&Y.push.apply(Y,g.X(yoY(this.T,U)));this.Y=U;Y.length&&sj(this.j(),Y)}}; g.W.Mv=function(){}; g.W.XK=function(){};g.w(q_,g.p);g.W=q_.prototype;g.W.MF=function(U,Y,A,c){if(this.JP.has(Y.triggerId))throw new u("Tried to register duplicate trigger for slot.");if(!(Y instanceof yC))throw new u("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.JP.set(Y.triggerId,new d6(U,Y,A,c))}; g.W.xi=function(U){this.JP.delete(U.triggerId)}; g.W.Vd=function(){}; g.W.D5=function(){}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){};g.w(Cf,g.p);g.W=Cf.prototype;g.W.Lh=function(U,Y){for(var A=[],c=g.J(this.JP.values()),d=c.next();!d.done;d=c.next()){d=d.value;var T=d.trigger;T.opportunityType===U&&(T.associatedSlotId&&T.associatedSlotId!==Y||A.push(d))}A.length&&sj(this.Y(),A)}; g.W.MF=function(U,Y,A,c){if(this.JP.has(Y.triggerId))throw new u("Tried to register duplicate trigger for slot.");if(!(Y instanceof qZY))throw new u("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in OpportunityEventTriggerAdapter");this.JP.set(Y.triggerId,new d6(U,Y,A,c))}; g.W.xi=function(U){this.JP.delete(U.triggerId)}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Vd=function(){}; g.W.D5=function(){};g.w(UG,g.p);g.W=UG.prototype;g.W.MF=function(U,Y,A,c){U=new d6(U,Y,A,c);if(Y instanceof bi||Y instanceof OM||Y instanceof ph||Y instanceof D$||Y instanceof qXX){if(this.JP.has(Y.triggerId))throw new u("Tried to register duplicate trigger for slot.");this.JP.set(Y.triggerId,U)}else throw new u("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in PrefetchTriggerAdapter");}; g.W.xi=function(U){this.JP.delete(U.triggerId)}; g.W.Ey=function(U){var Y=U.slotFulfillmentTriggers.find(function(A){return A instanceof bi}); Y&&Yk(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Y.breakDurationMs,new Set([U.slotId]),!0)}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Vd=function(){}; g.W.D5=function(){}; g.W.Lh=function(){}; g.W.cA=function(U){var Y=this;if(!this.Y)return $D("Unexpected cue break before fetch instructions are available"),!1;this.T&&this.T.stop();this.W&&g.uQ(this.W);var A=It4(this,U);if(!A)return!1;(new g.IM(function(){var c=A.trigger,d=A.slot;Yk(Y,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",c.breakDurationMs,new Set,!0);Yk(Y,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",c.breakDurationMs,new Set,!1);Y.j.add(d.slotId)},10)).start(); return!0}; g.W.xo=function(){}; g.W.E_=function(U){this.Y&&this.Y.contentCpn!==U?($D("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:U,fetchInstructionsCpn:this.Y.contentCpn}),A9(this)):DTl(this)}; g.W.Ri=function(U){this.Y&&this.Y.contentCpn!==U&&$D("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:U,fetchInstructionsCpn:this.Y.contentCpn},!0);A9(this)}; g.W.vA=function(U){var Y=this;if(this.Y)$D("Unexpected multiple fetch instructions for the current content");else{this.Y=U;U=K6E(U);this.T=new g.IM(function(){DTl(Y)},U?U:6E5); this.T.start();this.W=new g.IM(function(){Y.Y&&(Y.T&&(Y.T.stop(),Y.T.start()),n8l(Y,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},uwv(this.Y)); U=eQ(this.FT.get());for(var A=g.J(Bk9(this.EH.get())),c=A.next();!c.done;c=A.next())c=c.value,zi(this.SX.get(),"nocache","ct."+Date.now()+";cmt."+U+";d."+c.LV.toFixed(3)+";tw."+(c.startSecs-U)+";cid."+c.identifier+";")}}; g.W.Tn=function(){g.p.prototype.Tn.call(this);A9(this)};g.w(cZ,g.p);g.W=cZ.prototype;g.W.MF=function(U,Y,A,c){if(this.JP.has(Y.triggerId))throw new u("Tried to register duplicate trigger for slot.");if(!(Y instanceof cJ))throw new u("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.JP.set(Y.triggerId,new d6(U,Y,A,c));U=this.Y.has(Y.triggeringLayoutId)?g.M(this.Y.get(Y.triggeringLayoutId)):new Set;U.add(Y);this.Y.set(Y.triggeringLayoutId,U)}; g.W.xi=function(U){this.JP.delete(U.triggerId);if(!(U instanceof cJ))throw new u("Incorrect TriggerType: Tried to unregister trigger of type "+U.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var Y=this.T.get(U.triggerId);Y&&(Y.dispose(),this.T.delete(U.triggerId));if(Y=this.Y.get(U.triggeringLayoutId))Y.delete(U),Y.size===0&&this.Y.delete(U.triggeringLayoutId)}; g.W.Ey=function(){}; g.W.f3=function(){}; g.W.m6=function(){}; g.W.rq=function(){}; g.W.Gs=function(){}; g.W.t8=function(){}; g.W.Bb=function(){}; g.W.A8=function(){}; g.W.Uy=function(){}; g.W.Lh=function(){}; g.W.Vd=function(U,Y){var A=this;if(this.Y.has(Y.layoutId)){U=g.M(this.Y.get(Y.layoutId));U=g.J(U);var c=U.next();for(Y={};!c.done;Y={Z2:void 0},c=U.next())Y.Z2=c.value,c=new g.IM(function(d){return function(){var T=g.M(A.JP.get(d.Z2.triggerId));sj(A.W(),[T])}}(Y),Y.Z2.durationMs),c.start(),this.T.set(Y.Z2.triggerId,c)}}; g.W.D5=function(){};g.w(du,g.p);du.prototype.MF=function(U,Y,A,c){if(this.JP.has(Y.triggerId))throw new u("Tried to register duplicate trigger for slot.");if(!(Y instanceof Xl))throw new u("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in VideoTransitionTriggerAdapter.");this.JP.set(Y.triggerId,new d6(U,Y,A,c))}; du.prototype.xi=function(U){this.JP.delete(U.triggerId)};zI.prototype.JQ=function(U){return U.kind==="AD_PLACEMENT_KIND_START"};g.w(lc,g.p);g.W=lc.prototype;g.W.logEvent=function(U){this.dK(U)}; g.W.jD=function(U,Y,A){this.dK(U,void 0,void 0,void 0,Y,void 0,void 0,void 0,Y.adSlotLoggingData,void 0,void 0,A)}; g.W.xC=function(U,Y,A,c){this.dK(U,void 0,void 0,void 0,Y,A?A:void 0,void 0,void 0,Y.adSlotLoggingData,A?A.adLayoutLoggingData:void 0,void 0,c)}; g.W.tL=function(U,Y,A,c){q8(this.xE.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+U,"trigger:",A,"slot:",Y,"layout:",c);$q(this.Y.get())&&this.dK(U,void 0,void 0,void 0,Y,c?c:void 0,void 0,A,Y.adSlotLoggingData,c?c.adLayoutLoggingData:void 0)}; g.W.uM=function(U,Y,A,c,d){this.dK(U,Y,A,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d)}; g.W.UR=function(U,Y,A,c){this.dK("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,A,c,void 0,void 0,A.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,{errorType:U,errorMessage:Y})}; g.W.dK=function(U,Y,A,c,d,T,E,L,r,l,P,V){var v=this;V=V===void 0?0:V;q8(this.xE.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+U,"slot:",d,"layout:",T,"ping:",E,"Opportunity:",{opportunityType:Y,associatedSlotId:A,CXT:c,i0n:L,adSlotLoggingData:r,adLayoutLoggingData:l});try{var H=function(){if(!v.xE.get().U.L().S("html5_disable_client_tmp_logs")&&U!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){U||$D("Empty PACF event type",d,T);var G=$q(v.Y.get()),F={eventType:U,eventOrder:++v.eventCount},N={}; d&&(N.slotData=VK(G,d));T&&(N.layoutData=Xj8(G,T));E&&(N.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:E.Y.serializedAdPingMetadata,pingIndex:E.index});L&&(N.triggerData=P_(L.trigger,L.category));Y&&(N.opportunityData=kBE(G,Y,A,c));G={organicPlaybackContext:{contentCpn:FS(v.Gn.get(),1).clientPlaybackNonce}};G.organicPlaybackContext.isLivePlayback=FS(v.Gn.get(),1).Sc;var e;G.organicPlaybackContext.isMdxPlayback=(e=FS(v.Gn.get(),1))==null?void 0:e.isMdxPlayback; var B;if((B=FS(v.Gn.get(),1))==null?0:B.daiEnabled)G.organicPlaybackContext.isDaiContent=!0;var f;if(e=(f=FS(v.Gn.get(),2))==null?void 0:f.clientPlaybackNonce)G.adVideoPlaybackContext={adVideoCpn:e};G&&(N.externalContext=G);F.adClientData=N;r&&(F.serializedSlotAdServingData=r.serializedSlotAdServingDataEntry);l&&(F.serializedAdServingData=l.serializedAdServingDataEntry);P&&(F.errorInfo=P);g.r7("adsClientStateChange",{adsClientEvent:F})}}; V&&V>0?g.CU(g.Y6(),function(){return H()},V):H()}catch(G){q8(this.xE.get(),"html5_log_pacf_logging_errors")&&g.CU(g.Y6(),function(){$D(G instanceof Error?G:String(G),d,T,{pacf_message:"exception during pacf logging"})})}};var ZCO=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.w(PZ,lc);g.W=PZ.prototype; g.W.jD=function(U,Y,A){lc.prototype.jD.call(this,U,Y,A);X6(this.xE.get())&&(A={},this.context.Tx.XT("pacf",(A.et=U,A.st=Y.slotType,A.si=Y.slotId,A)))}; g.W.xC=function(U,Y,A,c){var d=ZCO.has(U);lc.prototype.xC.call(this,U,Y,A,c);X6(this.xE.get(),d)&&(c={},this.context.Tx.XT("pacf",(c.et=U,c.st=Y.slotType,c.si=Y.slotId,c.lt=A==null?void 0:A.layoutType,c.li=A==null?void 0:A.layoutId,c.p_ac=A==null?void 0:A.layoutId,c)))}; g.W.uM=function(U,Y,A,c,d){lc.prototype.uM.call(this,U,Y,A,c,d);X6(this.xE.get())&&(A={},this.context.Tx.XT("pacf",(A.et=U,A.ot=Y,A.ss=c==null?void 0:c.length,A)))}; g.W.tL=function(U,Y,A,c){lc.prototype.tL.call(this,U,Y,A,c);if(X6(this.xE.get())){var d={};this.context.Tx.XT("pacf",(d.et=U,d.tt=A.trigger.triggerType,d.tc=A.category,d.st=Y.slotType,d.si=Y.slotId,d.lt=c==null?void 0:c.layoutType,d.li=c==null?void 0:c.layoutId,d.p_ac=c==null?void 0:c.layoutId,d))}}; g.W.UR=function(U,Y,A,c){lc.prototype.UR.call(this,U,Y,A,c);if(X6(this.xE.get(),!0)){var d={};this.context.Tx.XT("perror",(d.ert=U,d.erm=Y,d.st=A.slotType,d.si=A.slotId,d.lt=c==null?void 0:c.layoutType,d.li=c==null?void 0:c.layoutId,d.p_ac=c==null?void 0:c.layoutId,d))}}; g.W.dK=function(U,Y,A,c,d,T,E,L,r,l,P){var V=this.xE.get();g.Rd(V.U.L())?(V=this.xE.get(),V=g.H_(V.U.L().experiments,"H5_async_logging_delay_ms")):V=void 0;lc.prototype.dK.call(this,U,Y,A,c,d,T,E,L,r,l,P,V)};VV.prototype.clear=function(){this.Y.clear()};g.W=vZ.prototype;g.W.resolve=function(U){$k(this,U)}; g.W.reject=function(U){this.qU(U)}; g.W.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.jh()?{state:"fail",error:this.error}:{state:"wait"}}; g.W.jh=function(){return this.currentState==="fail"}; g.W.wait=function(){var U=this;return function A(){return h3(A,function(c){if(c.T==1)return g.jS(c,2),g.x(c,{Ny:U},4);if(c.T!=2)return c.return(c.Y);g.Rc(c);return g.xl(c,0)})}()}; g.W.qU=function(U){this.currentState="fail";this.error=U;F9(this)}; var GCl=ix(function(U){return HZ(U)?U instanceof vZ:!1});Object.freeze({WZr:function(U){var Y=$88(U);return jc(ViV(Y,function(A){return Y[A].jh()}),function(A){return Number.isNaN(A)?Y.map(function(c){return c.state().result}):Y[A]})}, AQs:function(U){var Y=$88(U);return jc(ViV(Y),function(){return Y.map(function(A){return A.state()})})}});var X9=window.JjE||"es";xk.prototype.PC=function(U){this.client=U}; xk.prototype.Y=function(){this.clear();this.csn=g.X3()}; xk.prototype.clear=function(){this.W.clear();this.T.clear();this.j.clear();this.csn=null};fJ.prototype.PC=function(U){g.qY(sG().PC).bind(sG())(U)}; fJ.prototype.clear=function(){g.qY(sG().clear).bind(sG())()};g.W=h9.prototype;g.W.PC=function(U){this.client=U}; g.W.kN=function(U,Y){var A=this;Y=Y===void 0?{}:Y;g.qY(function(){var c,d,T,E=((c=g.O(U==null?void 0:U.commandMetadata,g.W2))==null?void 0:c.rootVe)||((d=g.O(U==null?void 0:U.commandMetadata,Enz))==null?void 0:(T=d.screenVisualElement)==null?void 0:T.uiType);if(E){c=g.O(U==null?void 0:U.commandMetadata,tFw);if(c==null?0:c.parentTrackingParams){var L=g.tz(c.parentTrackingParams);if(c.parentCsn)var r=c.parentCsn}else Y.clickedVisualElement?L=Y.clickedVisualElement:U.clickTrackingParams&&(L=g.tz(U.clickTrackingParams)); a:{c=g.O(U,g.Yp);d=g.O(U,W2O);if(c){if(d=HHV(c,"VIDEO")){c={token:d,videoId:c.videoId};break a}}else if(d&&(c=HHV(d,"PLAYLIST"))){c={token:c,playlistId:d.playlistId};break a}c=void 0}Y=Object.assign({},{cttAuthInfo:c,parentCsn:r},Y);if(g.ir("expectation_logging")){var l;Y.loggingExpectations=((l=g.O(U==null?void 0:U.commandMetadata,Enz))==null?void 0:l.loggingExpectations)||void 0}MN(A,E,L,Y)}else g.Md(new g.Do("Error: Trying to create a new screen without a rootVeType",U))})()}; g.W.clickCommand=function(U,Y,A){U=U.clickTrackingParams;A=A===void 0?0:A;U?(A=g.X3(A===void 0?0:A))?(AA(this.client,A,g.tz(U),Y),Y=!0):Y=!1:Y=!1;return Y}; g.W.stateChanged=function(U,Y,A){this.visualElementStateChanged(g.tz(U),Y,A===void 0?0:A)}; g.W.visualElementStateChanged=function(U,Y,A){A=A===void 0?0:A;A===0&&this.T.has(A)?this.Z.push([U,Y]):F0v(this,U,Y,A)};Zw.prototype.fetch=function(U,Y,A){var c=this,d=tiX(U,Y,A);return new Promise(function(T,E){function L(){if(A==null?0:A.Ac)try{var l=c.handleResponse(U,d.status,d.response,A);T(l)}catch(P){E(P)}else T(c.handleResponse(U,d.status,d.response,A))} d.onerror=L;d.onload=L;var r;d.send((r=Y.body)!=null?r:null)})}; Zw.prototype.handleResponse=function(U,Y,A,c){A=A.replace(")]}'","");try{var d=JSON.parse(A)}catch(T){g.Md(new g.Do("JSON parsing failed after XHR fetch",U,Y,A));if((c==null?0:c.Ac)&&A)throw new g.TL(1,"JSON parsing failed after XHR fetch");d={}}Y!==200&&(g.Md(new g.Do("XHR API fetch failed",U,Y,A)),d=Object.assign({},d,{errorMetadata:{status:Y}}));return d};OG.getInstance=function(){var U=g.u8("ytglobal.storage_");U||(U=new OG,g.Ic("ytglobal.storage_",U));return U}; OG.prototype.estimate=function(){var U,Y,A;return g.S(function(c){U=navigator;return((Y=U.storage)==null?0:Y.estimate)?c.return(U.storage.estimate()):((A=U.webkitTemporaryStorage)==null?0:A.queryUsageAndQuota)?c.return(eh4()):c.return()})}; g.Ic("ytglobal.storageClass_",OG);z1.prototype.a4=function(U){this.handleError(U)}; z1.prototype.logEvent=function(U,Y){switch(U){case "IDB_DATA_CORRUPTED":g.ir("idb_data_corrupted_killswitch")||this.Y("idbDataCorrupted",Y);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Y("idbUnexpectedlyClosed",Y);break;case "IS_SUPPORTED_COMPLETED":g.ir("idb_is_supported_completed_killswitch")||this.Y("idbIsSupportedCompleted",Y);break;case "QUOTA_EXCEEDED":X_X(this,Y);break;case "TRANSACTION_ENDED":this.W&&Math.random()<=.1&&this.Y("idbTransactionEnded",Y);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":U= Object.assign({},Y,{hasWindowUnloaded:this.T}),this.Y("idbTransactionAborted",U)}};var mg={},zAl=g.YF("yt-player-local-media",{fR:(mg.index={Os:2},mg.media={Os:2},mg.captions={Os:5},mg),shared:!1,upgrade:function(U,Y){Y(2)&&(g.k6(U,"index"),g.k6(U,"media"));Y(5)&&g.k6(U,"captions");Y(6)&&(RE(U,"metadata"),RE(U,"playerdata"))}, version:5});var OCo={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},gG;a:{var yi=g.tF();yi=yi.toLowerCase();if(g.Gd(yi,"android")){var mwL=yi.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(mwL){var gJf=parseFloat(mwL[1]);if(gJf<100){gG=gJf;break a}}var yDj=yi.match("("+Object.keys(OCo).join("|")+")");gG=yDj?OCo[yDj[0]]:0}else gG=void 0}var hv=gG,fs=hv>=0;var oE3=window;var kGE=$J(function(){var U,Y;return(Y=(U=window).matchMedia)==null?void 0:Y.call(U,"(prefers-reduced-motion: reduce)").matches});var gu;g.mB=new sk;gu=0;var dI=SjS()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.IE?!0:!1;var Dw={vS:function(U){U[z[14]]()}, tE:function(U,Y){var A=U[0];U[0]=U[Y%U[z[9]]];U[Y%U[z[9]]]=A}, So:function(U,Y){U[z[4]](0,Y)}};var TPS={khY:"adunit",MDJ:"detailpage",s4y:"editpage",DdY:"embedded",aMX:"leanback",MfI:"previewpage",wiE:"profilepage",G8:"unplugged",V2Y:"playlistoverview",piw:"sponsorshipsoffer",tfI:"shortspage",nmT:"handlesclaiming",AwX:"immersivelivepage",n5J:"creatormusic",viW:"immersivelivepreviewpage",IGv:"admintoolyurt",mtY:"shortsaudiopivot",LGf:"consumption"};var bH3=2592E3;var nE,nJq,GK;nE={};g.YN=(nE.STOP_EVENT_PROPAGATION="html5-stop-propagation",nE.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",nE.IV_DRAWER_OPEN="ytp-iv-drawer-open",nE.MAIN_VIDEO="html5-main-video",nE.VIDEO_CONTAINER="html5-video-container",nE.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",nE.HOUSE_BRAND="house-brand",nE);nJq={};GK=(nJq.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",nJq.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",nJq);var D8l={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var qE8={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},Cn4={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"},G_X={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var B6E={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Pz.prototype.getLanguageInfo=function(){return this.b$}; g.Pz.prototype.getXtags=function(){if(!this.xtags){var U=this.id.split(";");U.length>1&&(this.xtags=U[1])}return this.xtags}; g.Pz.prototype.toString=function(){return this.b$.name}; g.Pz.prototype.getLanguageInfo=g.Pz.prototype.getLanguageInfo;VP.prototype.equals=function(U){return this.T===U.T&&this.Y===U.Y&&this.W===U.W&&this.reason===U.reason&&(!vz||this.hs===U.hs)}; VP.prototype.isLocked=function(){return this.W&&!!this.T&&this.T===this.Y}; VP.prototype.compose=function(U){if(U.W&&Hz(U))return y6;if(U.W||Hz(this))return U;if(this.W||Hz(U))return this;var Y=this.T&&U.T?Math.max(this.T,U.T):this.T||U.T,A=this.Y&&U.Y?Math.min(this.Y,U.Y):this.Y||U.Y;Y=Math.min(Y,A);var c=0;vz&&(c=this.hs!==0&&U.hs!==0?Math.min(this.hs,U.hs):this.hs===0?U.hs:this.hs);return vz&&Y===this.T&&A===this.Y&&c===this.hs||!vz&&Y===this.T&&A===this.Y?this:vz?new VP(Y,A,!1,A===this.Y&&c===this.hs?this.reason:U.reason,c):new VP(Y,A,!1,A===this.Y?this.reason:U.reason)}; VP.prototype.j=function(U){return!U.video||vz&&this.hs!==0&&this.hs=0}; g.W.MO=function(){var U=this.segments[this.segments.length-1];return U?U.endTime:NaN}; g.W.eq=function(){return this.segments[0].startTime}; g.W.Ud=function(){return this.segments.length}; g.W.bQ=function(){return 0}; g.W.Qz=function(U){return(U=this.PG(U))?U.Js:-1}; g.W.H9=function(U){return(U=this.L2(U))?U.sourceURL:""}; g.W.getStartTime=function(U){return(U=this.L2(U))?U.startTime:0}; g.W.Mp=function(U){return this.getStartTime(U)+this.getDuration(U)}; g.W.oN=Yl(1);g.W.isLoaded=function(){return this.segments.length>0}; g.W.L2=function(U){if(this.Y&&this.Y.Js===U)return this.Y;U=g.kz(this.segments,new pn(U,0,0,0,""),function(Y,A){return Y.Js-A.Js}); return this.Y=U>=0?this.segments[U]:null}; g.W.PG=function(U){if(this.Y&&this.Y.startTime<=U&&U=0?this.segments[U]:this.segments[Math.max(0,-U-2)]}; g.W.append=function(U){if(U.length)if(U=g.FI(U),this.segments.length){var Y=this.segments.length?g.PW(this.segments).endTime:0,A=U[0].Js-this.Ea();A>1&&tSl(this.segments);for(A=A>0?0:-A+1;AU.Js&&this.index.n2()<=U.Js+1}; g.W.update=function(U,Y,A){this.index.append(U);XUX(this.index,A);U=this.index;U.T=Y;U.W="update"}; g.W.kH=function(){return this.P4()?!0:Sx.prototype.kH.call(this)}; g.W.rb=function(U,Y){var A=this.index.H9(U),c=this.index.getStartTime(U),d=this.index.getDuration(U),T;Y?d=T=0:T=this.info.hs>0?this.info.hs*d:1E3;return new Iv([new ZY(3,this,void 0,"liveCreateRequestInfoForSegment",U,c,d,0,T,!Y)],A)}; g.W.ol=function(){return this.P4()?0:this.initRange.length}; g.W.H$=function(){return!1};Aw.prototype.update=function(U){var Y=void 0;this.T&&(Y=this.T);var A=new Aw,c=Array.from(U.getElementsByTagName("S"));if(c.length){var d=+UH(U,"timescale")||1,T=(+c[0].getAttribute("t")||0)/d,E=+UH(U,"startNumber")||0;A.j=T;var L=Y?Y.startSecs+Y.LV:0,r=Date.parse(jnX(UH(U,"yt:segmentIngestTime")))/1E3;A.K=U.parentElement.tagName==="SegmentTemplate";A.K&&(A.G=UH(U,"media"));U=Y?E-Y.Js:1;A.J=U>0?0:-U+1;U=g.J(c);for(c=U.next();!c.done;c=U.next()){c=c.value;for(var l=+c.getAttribute("d")/d,P=(+c.getAttribute("yt:sid")|| 0)/d,V=+c.getAttribute("r")||0,v=0;v<=V;v++)if(Y&&E<=Y.Js)E++;else{var H=new JxV(E,L,l,r+P,T);A.Y.push(H);var G=c;var F=d,N=H.startSecs;H=G.getAttribute("yt:cuepointTimeOffset");var e=G.getAttribute("yt:cuepointDuration");if(H&&e){H=Number(H);N=-H/F+N;F=Number(e)/F;e=G.getAttribute("yt:cuepointContext")||null;var B=G.getAttribute("yt:cuepointIdentifier")||"";G=G.getAttribute("yt:cuepointEvent")||"";G=new uB(N,F,e,B,IRf[G]||"unknown",H)}else G=null;G&&A.W.push(G);E++;L+=l;T+=l;r+=l+P}}A.Y.length&& (A.T=g.PW(A.Y))}this.J=A.J;this.T=A.T||this.T;g.NF(this.Y,A.Y);g.NF(this.W,A.W);this.K=A.K;this.G=A.G;this.j===-1&&(this.j=A.getStreamTimeOffset())}; Aw.prototype.getStreamTimeOffset=function(){return this.j===-1?0:this.j};g.w(dO,g.QP);g.W=dO.prototype;g.W.lC=function(){return this.zl}; g.W.Y_=function(U,Y){U=Tp(this,U);return U>=0&&(Y||!this.segments[U].pending)}; g.W.n2=function(){return this.zI?this.segments.length?this.PG(this.eq()).Js:-1:g.QP.prototype.n2.call(this)}; g.W.eq=function(){if(this.yT)return 0;if(!this.zI)return g.QP.prototype.eq.call(this);if(!this.segments.length)return 0;var U=Math.max(g.PW(this.segments).endTime-this.x$,0);return this.u1>0&&g.M(this.PG(U)).Js0)return this.ZT/1E3;if(!this.segments.length)return g.QP.prototype.MO.call(this);var U=this.Ea();if(!this.zI||U<=this.segments[this.segments.length-1].Js)U=this.segments[this.segments.length-1];else{var Y=this.segments[this.segments.length-1];U=new pn(U,Math.max(0,Y.startTime-(Y.Js-U)*this.zl),this.zl,0,"sq/"+U,void 0,void 0,!0)}return this.yT?Math.min(this.x$,U.endTime):U.endTime}; g.W.Ud=function(){return this.zI?this.segments.length?this.Ea()-this.n2()+1:0:g.QP.prototype.Ud.call(this)}; g.W.Ea=function(){var U=Math.min(this.Gh,Math.max(g.QP.prototype.Ea.call(this),this.yK)),Y=this.x$*1E3;Y=this.ZT>0&&this.ZT0&&this.yK>0&&!Y&&(Y=this.PG(this.x$))&&(U=Math.min(Y.Js-1,U));return U}; g.W.XU=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.W.Ql=function(U){var Y=Tp(this,U.Js);if(Y>=0)this.segments[Y]=U;else if(this.segments.splice(-(Y+1),0,U),this.FZ&&U.Js%(300/this.zl)===0){var A=this.segments[0].Js,c=Math.floor(this.FZ/this.zl);U=U.Js-c;Y=-(Y+1)-c;Y>0&&U>A&&(this.segments=this.segments.slice(Y))}}; g.W.aY=function(){return this.yK}; g.W.vJ=function(U){return cM?!this.T&&U>=0&&this.Ea()<=U:g.QP.prototype.vJ.call(this,U)}; g.W.PG=function(U){if(!this.zI)return g.QP.prototype.PG.call(this,U);if(!this.segments.length)return null;var Y=this.segments[this.segments.length-1];if(U=Y.endTime)Y=Y.Js+Math.floor((U-Y.endTime)/this.zl+1);else{Y=xz(this.segments,function(c){return U=c.endTime?1:0}); if(Y>=0)return this.segments[Y];var A=-(Y+1);Y=this.segments[A-1];A=this.segments[A];Y=Math.floor((U-Y.endTime)/((A.startTime-Y.endTime)/(A.Js-Y.Js-1))+1)+Y.Js}return this.L2(Y)}; g.W.L2=function(U){if(!this.zI)return g.QP.prototype.L2.call(this,U);if(!this.segments.length)return null;var Y=Tp(this,U);if(Y>=0)return this.segments[Y];var A=-(Y+1);Y=this.zl;if(A===0)var c=Math.max(0,this.segments[0].startTime-(this.segments[0].Js-U)*Y);else A===this.segments.length?(c=this.segments[this.segments.length-1],c=c.endTime+(U-c.Js-1)*Y):(c=this.segments[A-1],Y=this.segments[A],Y=(Y.startTime-c.endTime)/(Y.Js-c.Js-1),c=c.endTime+(U-c.Js-1)*Y);return new pn(U,c,Y,0,"sq/"+U,void 0,void 0, !0)}; var cM=!1;g.w(EH,CI);g.W=EH.prototype;g.W.C7=function(){return!0}; g.W.kH=function(){return!0}; g.W.ST=function(U){return this.Sa()&&U.W&&!U.K||!U.Y.index.vJ(U.Js)}; g.W.w4=function(){}; g.W.Hx=function(U,Y){return typeof U!=="number"||isFinite(U)?CI.prototype.Hx.call(this,U,Y===void 0?!1:Y):new Iv([new ZY(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Pl,void 0,this.Pl*this.info.hs)],"")}; g.W.rb=function(U,Y){var A=A===void 0?!1:A;if(this.index.Y_(U))return CI.prototype.rb.call(this,U,Y);var c=this.index.getStartTime(U),d=Math.round(this.Pl*this.info.hs),T=this.Pl;Y&&(T=d=0);return new Iv([new ZY(A?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",U,c,T,void 0,d,!Y)],U>=0?"sq/"+U:"")};g.w(o7,Sx);g.W=o7.prototype;g.W.Lm=function(){return!1}; g.W.Sa=function(){return!1}; g.W.C7=function(){return!1}; g.W.w4=function(){return new Iv([new ZY(1,this,void 0,"otfInit")],this.K)}; g.W.jH=function(){return null}; g.W.Ns=function(U){this.ST(U);return aFV(this,y_(U),!1)}; g.W.Hx=function(U,Y){Y=Y===void 0?!1:Y;U=this.index.Qz(U);Y&&(U=Math.min(this.index.Ea(),U+1));return aFV(this,U,!0)}; g.W.z1=function(U){U.info.type===1&&(this.Y||(this.Y=tI(U.Y)),U.T&&U.T.uri==="http://youtube.com/streaming/otf/durations/112015"&&x29(this,U.T))}; g.W.ST=function(U){return U.W===0?!0:this.index.Ea()>U.Js&&this.index.n2()<=U.Js+1}; g.W.ol=function(){return 0}; g.W.H$=function(){return!1};zp.prototype.AB=function(){return this.Y.AB()};g.W=g.$2.prototype;g.W.Y_=function(U){return U<=this.Ea()}; g.W.bQ=function(U){return this.offsets[U]}; g.W.getStartTime=function(U){return this.startTicks[U]/this.Y}; g.W.Mp=function(U){return this.getStartTime(U)+this.getDuration(U)}; g.W.oN=Yl(0);g.W.tB=function(){return NaN}; g.W.getDuration=function(U){U=this.Hn(U);return U>=0?U/this.Y:-1}; g.W.Hn=function(U){return U+1=0}; g.W.MO=function(){return this.T?this.startTicks[this.count]/this.Y:NaN}; g.W.eq=function(){return 0}; g.W.Ud=function(){return this.count}; g.W.H9=function(){return""}; g.W.Qz=function(U){U=g.kz(this.startTicks.subarray(0,this.count),U*this.Y);return U>=0?U:Math.max(0,-U-2)}; g.W.isLoaded=function(){return this.Ea()>=0}; g.W.ji=function(U,Y){if(U>=this.Ea())return 0;var A=0;for(Y=this.getStartTime(U)+Y;Uthis.getStartTime(U);U++)A=Math.max(A,ZwV(this,U)/this.getDuration(U));return A}; g.W.resize=function(U){U+=2;var Y=this.offsets;this.offsets=new Float64Array(U+1);var A=this.startTicks;this.startTicks=new Float64Array(U+1);for(U=0;U0&&U&&(A=A.range.end+1,U=Math.min(U,this.info.contentLength-A),U>0&&c.push(new ZY(4,this,pI(A,U),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Y)));return new Iv(c)}; g.W.z1=function(U){if(U.info.type===1){if(this.Y)return;this.Y=tI(U.Y)}else if(U.info.type===2){if(this.K||this.index.Ea()>=0)return;if(g.Ax(this.info)){var Y=this.index,A=U.AB();U=U.info.range.start;var c=g.Y5(A,0,1936286840);A=Q9V(c);Y.Y=A.timescale;var d=A.wJ;Y.offsets[0]=A.m1+U+c.size;Y.startTicks[0]=d;Y.T=!0;U=A.g2.length;for(c=0;c0&&U===T[0].TU)for(U=0;U=Y+A)break}d.length||(U=new g.Do("b189619593",""+U,""+Y,""+A),g.S5(U));return new Iv(d)}; g.W.gG=function(U){for(var Y=this.Ag(U.info),A=U.info.range.start+U.info.T,c=[],d=0;d=this.index.bQ(A+1);)A++;return this.f6(A,Y,U.W).py}; g.W.ST=function(U){U.lN();return this.kH()?!0:U.range.end+1this.info.contentLength&&(Y=new MZ(Y.start,this.info.contentLength-1)),new Iv([new ZY(4,U.Y,Y,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,U.clipId)]);U.type===4&&(U=this.Ag(U),U=U[U.length-1]);var A=0,c=U.range.start+U.T+U.W;U.type===3&&(U.lN(),A=U.Js,c===U.range.end+1&&(A+=1));return this.f6(A,c,Y)}; g.W.Ns=function(){return null}; g.W.Hx=function(U,Y){Y=Y===void 0?!1:Y;U=this.index.Qz(U);Y&&(U=Math.min(this.index.Ea(),U+1));return this.f6(U,this.index.bQ(U),0,void 0)}; g.W.Lm=function(){return!0}; g.W.Sa=function(){return!0}; g.W.C7=function(){return!1}; g.W.ol=function(){return this.indexRange.length+this.initRange.length}; g.W.H$=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var I2={},T4l=(I2.COLOR_PRIMARIES_BT709="bt709",I2.COLOR_PRIMARIES_BT2020="bt2020",I2.COLOR_PRIMARIES_UNKNOWN=null,I2.COLOR_PRIMARIES_UNSPECIFIED=null,I2),uS={},m24=(uS.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",uS.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",uS.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",uS.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",uS.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,uS.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,uS);g.Gp.prototype.getName=function(){return this.name}; g.Gp.prototype.getId=function(){return this.id}; g.Gp.prototype.getIsDefault=function(){return this.isDefault}; g.Gp.prototype.toString=function(){return this.name}; g.Gp.prototype.getName=g.Gp.prototype.getName;g.Gp.prototype.getId=g.Gp.prototype.getId;g.Gp.prototype.getIsDefault=g.Gp.prototype.getIsDefault;var D23=/action_display_post/;var IF9,iq,Jw;g.w(FR,g.l6);g.W=FR.prototype;g.W.isLoading=function(){return this.state===1}; g.W.nX=function(){return this.state===3}; g.W.KAI=function(U){var Y=U.getElementsByTagName("Representation");if(U.getElementsByTagName("SegmentList").length>0||U.getElementsByTagName("SegmentTemplate").length>0){this.Sc=this.T=!0;this.timeline||(this.timeline=new t1S);ku8(this.timeline,U);this.publish("refresh");for(U=0;U=0?P=bO(v):V=V+"?range="+v}r.call(L,new pn(l.Js,l.startSecs,l.LV,l.Y,V,P,l.T))}c=d}A.update(c,this.isLive,this.Zf)}RdV(this.timeline);return!0}this.duration=FUX(UH(U,"mediaPresentationDuration")); a:{for(U=0;U0))return this.Sl()-U}}U=this.Y;for(var Y in U){var A=U[Y].index;if(A.isLoaded()&&!on(U[Y].info.mimeType))return A.eq()}return 0}; g.W.getStreamTimeOffset=function(){return this.G}; g.W.tB=function(U){for(var Y in this.Y){var A=this.Y[Y].index;if(A.isLoaded()){var c=A.Qz(U),d=A.tB(c);if(d)return d+U-A.getStartTime(c)}}return NaN}; var Mg=null,ufo,bq=!((ufo=navigator.mediaCapabilities)==null||!ufo.decodingInfo),lrl={commentary:1,alternate:2,dub:3,main:4};var Uz=new Set,p1=new Map;OH.prototype.clone=function(U){return new OH(this.flavor,U,this.T,this.experiments)}; OH.prototype.i9=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; OH.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 Kkq={},C1=(Kkq.playready=["com.youtube.playready","com.microsoft.playready"],Kkq.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Kkq),KE={},ZqX=(KE.widevine="DRM_SYSTEM_WIDEVINE",KE.fairplay="DRM_SYSTEM_FAIRPLAY",KE.playready="DRM_SYSTEM_PLAYREADY",KE),q1={},qUw=(q1.widevine=1,q1.fairplay=2,q1.playready=3,q1);var Av;g.w(U5,g.p); U5.prototype.initialize=function(U,Y){for(var A=this,c=g.J(Object.keys(U)),d=c.next();!d.done;d=c.next()){d=g.J(U[d.value]);for(var T=d.next();!T.done;T=d.next())if(T=T.value,T.JB)for(var E=g.J(Object.keys(T.JB)),L=E.next();!L.done;L=E.next()){var r=L.value;L=r;r=C1[r];!r&&this.S("html5_enable_vp9_fairplay")&&L==="fairplay"&&(r=["com.youtube.fairplay.sbdl"]);if(r){r=g.J(r);for(var l=r.next();!l.done;l=r.next())l=l.value,this.W[l]=this.W[l]||new OH(L,l,T.JB[L],this.Ww.experiments),this.Y[L]=this.Y[L]|| {},this.Y[L][T.mimeType]=!0}}}nl()&&(this.W["com.youtube.fairplay"]=new OH("fairplay","com.youtube.fairplay","",this.Ww.experiments),this.S("html5_enable_vp9_fairplay")||(this.Y.fairplay=this.Y.fairplay||{},this.Y.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.Y.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.T=N4E(Y,this.useCobaltWidevine,this.S("html5_enable_safari_fairplay")&&!0,this.S("html5_enable_vp9_fairplay")).filter(function(P){return!!A.W[P]})}; U5.prototype.S=function(U){return this.Ww.experiments.lY(U)};var Cxo={"":"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"};ar8.prototype.S=function(U){return this.experiments.lY(U)};var omv={RED:"red",u7y:"white"};xO3.prototype.lY=function(U){U=this.flags[U];JSON.stringify(U);return U==="true"};var hbX=Promise.resolve(),pDX=window.queueMicrotask?window.queueMicrotask.bind(window):S$E;E5.prototype.canPlayType=function(U,Y){U=U.canPlayType?U.canPlayType(Y):!1;DN?U=U||UpW[Y]:hv===2.2?U=U||Y_L[Y]:gF()&&(U=U||ApY[Y]);return!!U}; E5.prototype.isTypeSupported=function(U){return this.X?window.cast.receiver.platform.canDisplayType(U):Mx(U)}; var Y_L={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ApY={"application/x-mpegURL":"maybe"},UpW={"application/x-mpegURL":"maybe"};g.w(Ls,g.l6);Ls.prototype.add=function(U,Y){if(!this.items[U]&&(Y.wc||Y.y9||Y.m0)){var A=this.items,c=Y;Object.isFrozen&&!Object.isFrozen(Y)&&(c=Object.create(Y),Object.freeze(c));A[U]=c;this.publish("vast_info_card_add",U)}}; Ls.prototype.remove=function(U){var Y=this.get(U);delete this.items[U];return Y}; Ls.prototype.get=function(U){return this.items[U]||null}; Ls.prototype.isEmpty=function(){return g.qF(this.items)};var lo;PI.prototype.add=function(U){if(this.pos+20>this.data.length){var Y=new Uint8Array(this.data.length*2);Y.set(this.data);this.data=Y}for(;U>31;)this.data[this.pos++]=lo[(U&31)+32],U>>=5;this.data[this.pos++]=lo[U|0]}; PI.prototype.jS=function(){return g.kv(this.data.subarray(0,this.pos))}; PI.prototype.reset=function(){this.pos=0};$1.prototype.wF=function(U,Y){var A=Math.pow(this.alpha,U);this.Y=Y*(1-A)+A*this.Y;this.T+=U}; $1.prototype.Y4=function(){return this.Y/(1-Math.pow(this.alpha,this.T))};vI.prototype.wF=function(U,Y){for(var A=0;A<10;A++){var c=this.Y[A],d=c+(A===0?U:0),T=1*Math.pow(2,A);if(d<=T)break;c=Math.min(1,(d-T*.5)/c);for(d=0;d<16;d++)T=this.values[A*16+d]*c,this.values[(A+1)*16+d]+=T,this.Y[A+1]+=T,this.values[A*16+d]-=T,this.Y[A]-=T}c=A=0;d=8192;Y>8192&&(A=Math.ceil(Math.log(Y/8192)/Math.log(2)),c=8192*Math.pow(2,A-1),d=c*2);A+2>16?this.values[15]+=U:(Y=(Y-c)/(d-c),this.values[A]+=U*(1-Y),this.values[A+1]+=U*Y);this.Y[0]+=U}; vI.prototype.Y4=function(){var U=U===void 0?this.T:U;var Y=Y===void 0?.02:Y;var A=A===void 0?.98:A;for(var c=this.W,d=0;d<16;d++)c[d]=this.values[d];d=this.Y[0];for(var T=1;T<11;T++){var E=this.Y[T];if(E===0)break;for(var L=Math.min(1,(U-d)/E),r=0;r<16;r++)c[r]+=this.values[T*16+r]*L;d+=E*L;if(L<1)break}for(T=U=E=0;T<16;T++){L=E+c[T]/d;U+=Math.max(0,Math.min(L,A)-Math.max(E,Y))*(T>0?8192*Math.pow(2,T-1):0);if(L>A)break;E=L}return U/(A-Y)};HI.prototype.wF=function(U,Y){U=Math.min(this.Y,Math.max(1,Math.round(U*this.resolution)));U+this.T>=this.Y&&(this.W=!0);for(;U--;)this.values[this.T]=Y,this.T=(this.T+1)%this.Y;this.TB=!0}; HI.prototype.percentile=function(U){var Y=this;if(!this.W&&this.T===0)return 0;this.TB&&(g.sO(this.K,function(A,c){return Y.values[A]-Y.values[c]}),this.TB=!1); return this.values[this.K[Math.round(U*((this.W?this.Y:this.T)-1))]]||0}; HI.prototype.Y4=function(){return this.J?(this.percentile(this.j-this.J)+this.percentile(this.j)+this.percentile(this.j+this.J))/3:this.percentile(this.j)};g.w(Ga,g.p);Ga.prototype.dW=function(){var U;(U=this.kE)==null||U.start();if(tv(this)&&this.policy.Z){var Y;(Y=this.df)==null||Y.ZI()}};q$l.prototype.S=function(U){return this.experiments.lY(U)};g.w(Uo4,g.p);var Em8="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Pic={VoY:"caoe",hLw:"capsv",uPW:"cbrand",QJv:"cbr",IlJ:"cbrver",crT:"cchip",BFy:"ccappver",flJ:"ccrv",zXT:"cfrmver",jXv:"c",QXY:"cver",uOE:"ctheme",DFY:"cplayer",uzY:"cmodel",An:"cnetwork",BCf:"cos",OS_VERSION:"cosver",Ehr:"cplatform",QFv:"crqyear"};g.w(yp,g.p);g.W=yp.prototype;g.W.S=function(U){return this.experiments.lY(U)}; g.W.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.W.getVideoUrl=function(U,Y,A,c,d,T,E){Y={list:Y};A&&(d?Y.time_continue=A:Y.t=A);A=E?"music.youtube.com":g.D8(this);d=A==="www.youtube.com";!T&&c&&d?T="https://youtu.be/"+U:g.bo(this)?(T="https://"+A+"/fire",Y.v=U):(T&&d?(T=this.protocol+"://"+A+"/shorts/"+U,c&&(Y.feature="share")):(T=this.protocol+"://"+A+"/watch",Y.v=U),DN&&(U=Z_c())&&(Y.ebc=U));return g.xJ(T,Y)}; g.W.getVideoEmbedCode=function(U,Y,A,c){Y="https://"+g.D8(this)+"/embed/"+Y;c&&(Y=g.xJ(Y,{list:c}));c=A.width;A=A.height;Y=Hi(Y);U=Hi(U!=null?U:"YouTube video player");return'')}; g.W.supportsGaplessAudio=function(){return g.Sf&&!DN&&ZD()>=74||g.K1&&g.eF(68)?!0:!1}; g.W.supportsGaplessShorts=function(){return!this.S("html5_enable_short_gapless")||this.yJ||g.iW?!1:!0}; g.W.getPlayerType=function(){return this.Y.cplayer}; g.W.O3=function(){return this.Bu}; var Hh9=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],l$S=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],$oY=[19];var CE={},wq8=(CE["140"]={numChannels:2},CE["141"]={numChannels:2},CE["251"]={audioSampleRate:48E3,numChannels:2},CE["774"]={audioSampleRate:48E3,numChannels:2},CE["380"]={numChannels:6},CE["328"]={numChannels:6},CE["773"]={},CE),Ud={},Giv=(Ud["1"]='video/mp4; codecs="av01.0.08M.08"',Ud["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Ud["1e"]='video/mp4; codecs="av01.0.08M.08"',Ud["9"]='video/webm; codecs="vp9"',Ud["("]='video/webm; codecs="vp9"',Ud["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Ud.h='video/mp4; codecs="avc1.64001e"',Ud.H='video/mp4; codecs="avc1.64001e"',Ud.o='audio/webm; codecs="opus"',Ud.a='audio/mp4; codecs="mp4a.40.2"',Ud.ah='audio/mp4; codecs="mp4a.40.2"',Ud.mac3='audio/mp4; codecs="ac-3"; channels=6',Ud.meac3='audio/mp4; codecs="ec-3"; channels=6',Ud.i='audio/mp4; codecs="iamf.001.001.Opus"',Ud),Y7={},WK9=(Y7["337"]={width:3840,height:2160,bitrate:3E7,fps:30},Y7["336"]={width:2560,height:1440,bitrate:15E6,fps:30},Y7["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, Y7["702"]={width:7680,height:4320,bitrate:4E7,fps:60},Y7["701"]={width:3840,height:2160,bitrate:2E7,fps:60},Y7["700"]={width:2560,height:1440,bitrate:1E7,fps:60},Y7["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},Y7["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},Y7["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},Y7["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, Y7["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},Y7["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},Y7["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},Y7["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},Y7["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},Y7["315"]={width:3840,height:2160,bitrate:2E7,fps:60},Y7["308"]={width:2560, height:1440,bitrate:1E7,fps:60},Y7["303"]={width:1920,height:1080,bitrate:5E6,fps:60},Y7["302"]={width:1280,height:720,bitrate:25E5,fps:60},Y7["299"]={width:1920,height:1080,bitrate:75E5,fps:60},Y7["298"]={width:1280,height:720,bitrate:35E5,fps:60},Y7["571"]={width:7680,height:4320,bitrate:3E7,fps:60},Y7["401"]={width:3840,height:2160,bitrate:15E6,fps:60},Y7["400"]={width:2560,height:1440,bitrate:75E5,fps:60},Y7["399"]={width:1920,height:1080,bitrate:2E6,fps:60},Y7["398"]={width:1280,height:720,bitrate:1E6, fps:60},Y7["397"]={width:854,height:480,bitrate:4E5,fps:30},Y7["396"]={width:640,height:360,bitrate:25E4,fps:30},Y7["787"]={width:1080,height:608,bitrate:2E5,fps:30},Y7["788"]={width:1080,height:608,bitrate:4E5,fps:30},Y7["572"]={width:7680,height:4320,bitrate:3E7,fps:60},Y7["555"]={width:3840,height:2160,bitrate:15E6,fps:60},Y7["554"]={width:2560,height:1440,bitrate:75E5,fps:60},Y7["553"]={width:1920,height:1080,bitrate:2E6,fps:60},Y7["552"]={width:1280,height:720,bitrate:1E6,fps:60},Y7["551"]={width:854, height:480,bitrate:4E5,fps:30},Y7["550"]={width:640,height:360,bitrate:25E4,fps:30},Y7["313"]={width:3840,height:2160,bitrate:8E6,fps:30},Y7["271"]={width:2560,height:1440,bitrate:4E6,fps:30},Y7["248"]={width:1920,height:1080,bitrate:2E6,fps:30},Y7["247"]={width:1280,height:720,bitrate:15E5,fps:30},Y7["244"]={width:854,height:480,bitrate:52E4,fps:30},Y7["243"]={width:640,height:360,bitrate:28E4,fps:30},Y7["137"]={width:1920,height:1080,bitrate:4E6,fps:30},Y7["136"]={width:1280,height:720,bitrate:3E6, fps:30},Y7["135"]={width:854,height:480,bitrate:1E6,fps:30},Y7["385"]={width:1920,height:1080,bitrate:6503313,fps:60},Y7["376"]={width:1280,height:720,bitrate:5706960,fps:60},Y7["384"]={width:1280,height:720,bitrate:3660979,fps:60},Y7["225"]={width:1280,height:720,bitrate:5805E3,fps:30},Y7["224"]={width:1280,height:720,bitrate:453E4,fps:30},Y7["145"]={width:1280,height:720,bitrate:2682052,fps:30},Y7);g.W=rA.prototype;g.W.getInfo=function(){return this.Y}; g.W.ZZ=function(){return null}; g.W.Tm=function(){var U=this.ZZ();return U?(U=g.dF(U.Dm),Number(U.expire)):NaN}; g.W.CE=function(){}; g.W.getHeight=function(){return this.Y.video.height};jWX.prototype.build=function(){eIY(this);var U=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],Y={};a:if(this.Y)var A=this.Y;else{A="";for(var c=g.J(this.W),d=c.next();!d.done;d=c.next())if(d=d.value,d.b$){if(d.b$.getIsDefault()){A=d.b$.getId();break a}A||(A=d.b$.getId())}}c=g.J(this.W);for(d=c.next();!d.done;d=c.next())if(d=d.value,this.J||!d.b$||d.b$.getId()===A)Y[d.itag]||(Y[d.itag]=[]),Y[d.itag].push(d);A=g.J(this.T);for(c=A.next();!c.done;c=A.next())if(c=c.value,d=Y[c.Y]){d=g.J(d);for(var T=d.next();!T.done;T= d.next()){var E=U,L=E.push;T=T.value;var r="#EXT-X-MEDIA:TYPE=AUDIO,",l="YES",P="audio";if(T.b$){P=T.b$;var V=P.getId().split(".")[0];V&&(r+='LANGUAGE="'+V+'",');(this.Y?this.Y===P.getId():P.getIsDefault())||(l="NO");P=P.getName()}V="";c!==null&&(V=c.itag.toString());V=Pb(this,T.url,V);r=r+('NAME="'+P+'",DEFAULT='+(l+',AUTOSELECT=YES,GROUP-ID="'))+(te3(T,c)+'",URI="'+(V+'"'));L.call(E,r)}}A=g.J(this.K);for(c=A.next();!c.done;c=A.next())c=c.value,d=cpj,c=(E=c.b$)?'#EXT-X-MEDIA:URI="'+Pb(this,c.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+d+'",LANGUAGE="'+E.getId()+'",NAME="'+E.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,c&&U.push(c);A=this.K.length>0?cpj:void 0;c=g.J(this.T);for(d=c.next();!d.done;d=c.next())d=d.value,L=Y[d.Y],E=void 0,((E=L)==null?void 0:E.length)>0&&(E=d,L=L[0],L="#EXT-X-STREAM-INF:BANDWIDTH="+(E.bitrate+L.bitrate)+',CODECS="'+(E.codecs+","+L.codecs+'",RESOLUTION=')+(E.width+"x"+E.height+',AUDIO="')+(te3(L,E)+'",')+(A?'SUBTITLES="'+A+'",':"")+"CLOSED-CAPTIONS=NONE",E.fps>1&&(L+= ",FRAME-RATE="+E.fps),E.CO&&(L+=",VIDEO-RANGE="+E.CO),U.push(L),U.push(Pb(this,d.url,"")));return U.join("\n")}; var cpj="text";g.w(V6,rA);V6.prototype.Tm=function(){return this.expiration}; V6.prototype.ZZ=function(){if(!this.Dm||this.Dm.Ky()){var U=this.T.build();U="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(U);this.Dm=new j1(U)}return this.Dm};g.w($Q,rA);$Q.prototype.ZZ=function(){return new j1(this.T.GN())}; $Q.prototype.CE=function(){this.T=Mc(this.T)};g.w(vb,rA);vb.prototype.ZZ=function(){return new j1(this.T)};var AJ={},SMX=(AJ.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",AJ.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",AJ.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",AJ);g.W=g.Hb.prototype;g.W.getId=function(){return this.id}; g.W.getName=function(){return this.name}; g.W.isServable=function(){return this.Y}; g.W.GN=function(){return this.url}; g.W.getXtags=function(){return this.xtags}; g.W.toString=function(){return this.languageCode+": "+g.Gr(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.W.equals=function(U){return U?this.toString()===U.toString():!1}; g.W.Bp=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var OhX={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},moc={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},gml=/^(\d*)_((\d*)_?(\d*))$/;var nmE={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Dol={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var cV={},dpY=(cV.ALWAYS=1,cV.BY_REQUEST=3,cV.UNKNOWN=void 0,cV),dR={},Taw=(dR.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",dR.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",dR.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",dR.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",dR);var XxY; XxY=function(U){for(var Y=Object.keys(U),A={},c=0;cc-Y?-1:U}; g.W.DC=function(){return this.T.Ea()}; g.W.bW=function(){return this.T.n2()}; g.W.OE=function(U){this.T=U};g.w(gA,OJ);gA.prototype.T=function(U,Y){return OJ.prototype.T.call(this,"$N|"+U,Y)}; gA.prototype.K=function(U,Y,A){return new mp(U,Y,A,this.isLive)};var aKS=[],qJ=new Set;g.w(g.nD,g.l6);g.W=g.nD.prototype; g.W.setData=function(U){U=U||{};var Y=U.errordetail;Y!=null&&(this.errorDetail=Y);var A=U.errorcode;A!=null?this.errorCode=A:U.status==="fail"&&(this.errorCode="auth");var c=U.reason;c!=null&&(this.errorReason=c);var d=U.subreason;d!=null&&(this.Zp=d);this.S("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=U.cpn||(this.Ww.O3()?"r"+g.tH(15):g.tH(16)));this.i$=d3(this.Ww.i$,U.livemonitor);N69(this,U);var T=U.raw_player_response;if(T)this.DQ=T;else{var E=U.player_response; E&&(T=JSON.parse(E))}if(this.S("html5_enable_ssap_entity_id")){var L=U.cached_load;L&&(this.Pf=d3(this.Pf,L));if(!this.clientPlaybackNonce){var r=U.cpn;r?(this.Kd("ssei","shdc"),this.clientPlaybackNonce=r):this.clientPlaybackNonce=this.Ww.O3()?"r"+g.tH(15):g.tH(16)}}T&&(this.playerResponse=T);if(this.playerResponse){var l=this.playerResponse.annotations;if(l)for(var P=g.J(l),V=P.next();!V.done;V=P.next()){var v=V.value.playerAnnotationsUrlsRenderer;if(v){v.adsOnly&&(this.Li=!0);var H=v.loadPolicy; H&&(this.annotationsLoadPolicy=dpY[H]);var G=v.invideoUrl;G&&(this.yJ=dl(G));break}}var F=this.playerResponse.attestation;F&&ulc(this,F);var N=this.playerResponse.cotn;N&&(this.cotn=N);var e=this.playerResponse.heartbeatParams;if(e){Nyc(this)&&(this.yD=!0);var B=e.heartbeatToken;B&&(this.drmSessionId=e.drmSessionId||"",this.heartbeatToken=B,this.O1=Number(e.intervalMilliseconds),this.MZ=Number(e.maxRetries),this.Fv=!!e.softFailOnError,this.qZ=!!e.useInnertubeHeartbeatsForDrm,this.PN=!0);this.heartbeatServerData= e.heartbeatServerData;var f;this.DM=!((f=e.heartbeatAttestationConfig)==null||!f.requiresAttestation)}var h=this.playerResponse.messages;h&&UK8(this,h);var Q=this.playerResponse.overlay;if(Q){var K=Q.playerControlsOverlayRenderer;if(K)if(AE4(this,K.controlBgHtml),K.mutedAutoplay){var D=g.O(K.mutedAutoplay,JUo);if(D&&D.endScreen){var c3=g.O(D.endScreen,F2W);c3&&c3.text&&(this.u7=g.wB(c3.text))}}else this.mutedAutoplay=!1}var TV=this.playerResponse.playabilityStatus;if(TV){var U9=TV.backgroundability; U9&&U9.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var LY,q;if((LY=TV.offlineability)==null?0:(q=LY.offlineabilityRenderer)==null?0:q.offlineable)this.offlineable=!0;var FE=TV.contextParams;FE&&(this.contextParams=FE);var B3=TV.pictureInPicture;B3&&B3.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);TV.playableInEmbed&&(this.allowEmbed=!0);var O9=TV.ypcClickwrap;if(O9){var tq=O9.playerLegacyDesktopYpcClickwrapRenderer,Lj=O9.ypcRentalActivationRenderer;if(tq)this.bH= tq.durationMessage||"",this.VU=!0;else if(Lj){var kl=Lj.durationMessage;this.bH=kl?g.wB(kl):"";this.VU=!0}}var eS=TV.errorScreen;if(eS){if(eS.playerLegacyDesktopYpcTrailerRenderer){var To=eS.playerLegacyDesktopYpcTrailerRenderer;this.tU=To.trailerVideoId||"";var t=eS.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var zV=t&&t.ypcTrailerRenderer}else if(eS.playerLegacyDesktopYpcOfferRenderer)To=eS.playerLegacyDesktopYpcOfferRenderer;else if(eS.ypcTrailerRenderer){zV=eS.ypcTrailerRenderer;var Im=zV.fullVideoMessage; this.NR=Im?g.wB(Im):"";var jL,Rm;this.tU=((jL=g.O(zV,jHq))==null?void 0:(Rm=jL.videoDetails)==null?void 0:Rm.videoId)||""}To&&(this.VK=To.itemTitle||"",To.itemUrl&&(this.R6=To.itemUrl),To.itemBuyUrl&&(this.I6=To.itemBuyUrl),this.lE=To.itemThumbnail||"",this.P_=To.offerHeadline||"",this.ev=To.offerDescription||"",this.yB=To.offerId||"",this.Ml=To.offerButtonText||"",this.Xq=To.offerButtonFormattedText||null,this.cN=To.overlayDurationMsec||NaN,this.NR=To.fullVideoMessage||"",this.xm=!0);if(zV){var vW= g.O(zV,jHq);if(vW)this.JS={raw_player_response:vW};else{var b8=g.O(zV,sHI);this.JS=b8?Af(b8):null}this.xm=!0}}}var hq=this.playerResponse.playbackTracking;if(hq){var am=U,k=FX(hq.googleRemarketingUrl);k&&(this.googleRemarketingUrl=k);var R=FX(hq.youtubeRemarketingUrl);R&&(this.youtubeRemarketingUrl=R);var a={},b=FX(hq.ptrackingUrl);if(b){var m=jK(b),N4=m.oid;N4&&(this.F2=N4);var A3=m.pltype;A3&&(this.eb=A3);var W3=m.ptchn;W3&&(this.QY=W3);var dX=m.ptk;dX&&(this.FU=encodeURIComponent(dX));var ac=m.m; ac&&(this.ob=ac)}var KY=FX(hq.qoeUrl);if(KY){for(var jz=g.dF(KY),NV=g.J(Object.keys(jz)),fa=NV.next();!fa.done;fa=NV.next()){var n6=fa.value,na=jz[n6];jz[n6]=Array.isArray(na)?na.join(","):na}this.yl=jz;var Dp=jz.cat;Dp&&(this.S("html5_enable_qoe_cat_list")?this.RV=this.RV.concat(Dp.split(",")):this.yP=Dp);var F1=jz.live;F1&&(this.sX=F1);var $Z=jz.drm_product;$Z&&(this.drmProduct=$Z)}var ag=FX(hq.videostatsPlaybackUrl);if(ag){var G$=jK(ag),xO=G$.adformat;if(xO){am.adformat=xO;var OR=this.L(),m$=y4l(xO, this.E7,OR.j,OR.Z);m$&&(this.adFormat=m$)}var B7=G$.aqi;B7&&(am.ad_query_id=B7);var T$=G$.autoplay;T$&&(this.Vz=T$=="1",this.AU=T$=="1");var Ix=G$.autonav;Ix&&(this.isAutonav=Ix=="1");var zd=G$.delay;zd&&(this.Tk=il(zd));var RM=G$.ei;RM&&(this.eventId=RM);if(G$.adcontext||xO)this.Vz=!0;var yw=G$.feature;yw&&(this.Cc=yw);var WG=G$.list;WG&&(this.playlistId=WG);var e1=G$.of;e1&&(this.cq=e1);var Bd=G$.osid;Bd&&(this.osid=Bd);var Xg=G$.referrer;Xg&&(this.referrer=Xg);var TN=G$.sdetail;TN&&(this.KD=TN); var l7=G$.ssrt;l7&&(this.Aj=l7=="1");var EX=G$.subscribed;EX&&(this.subscribed=EX=="1",this.G.subscribed=EX);var ol=G$.uga;ol&&(this.userGenderAge=ol);var ke=G$.upt;ke&&(this.WR=ke);var Rn=G$.vm;Rn&&(this.videoMetadata=Rn);a.playback=G$}var an=FX(hq.videostatsWatchtimeUrl);if(an){var xe=jK(an),sq=xe.ald;sq&&(this.Ll=sq);a.watchtime=xe}var fw=FX(hq.atrUrl);if(fw){var d_=jK(fw);a.atr=d_}var aM=FX(hq.engageUrl);if(aM){var TO=jK(aM);a.engage=TO}this.Sf=a;if(hq.promotedPlaybackTracking){var O2=hq.promotedPlaybackTracking; O2.startUrls&&(this.Ut=O2.startUrls);O2.firstQuartileUrls&&(this.hT=O2.firstQuartileUrls);O2.secondQuartileUrls&&(this.Xs=O2.secondQuartileUrls);O2.thirdQuartileUrls&&(this.HW=O2.thirdQuartileUrls);O2.completeUrls&&(this.Vu=O2.completeUrls);O2.engagedViewUrls&&(O2.engagedViewUrls.length>1&&g.Md(new g.Do("There are more than one engaged_view_urls.")),this.jL=O2.engagedViewUrls[0])}}var zN=this.playerResponse.playerCueRanges;zN&&zN.length>0&&(this.cueRanges=zN);var hx=this.playerResponse.playerCueRangeSet; hx&&g.CD(this,hx);a:{var LK=this.playerResponse.adPlacements;if(LK)for(var S1=g.J(LK),rs=S1.next();!rs.done;rs=S1.next()){var M2=void 0,bM=void 0,pw=(M2=rs.value.adPlacementRenderer)==null?void 0:(bM=M2.renderer)==null?void 0:bM.videoAdTrackingRenderer;if(pw){var Qd=pw;break a}}Qd=null}var l1=Qd;hq&&hq.promotedPlaybackTracking&&l1&&g.Md(new g.Do("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var H9;if(!(H9=l1))a:{for(var ZF=g.J(this.playerResponse.adSlots||[]), P0=ZF.next();!P0.done;P0=ZF.next()){var Vl=g.O(P0.value,g6);if(Vl===void 0||!FLS(Vl))break;var Oq=void 0,EW=(Oq=Vl.fulfillmentContent)==null?void 0:Oq.fulfilledLayout,mU=g.O(EW,hE);if(mU&&ao(mU)){H9=!0;break a}}H9=!1}H9&&(this.uT=!0);var gh=this.playerResponse.playerAds;if(gh)for(var or=U,yd=g.J(gh),GP=yd.next();!GP.done;GP=yd.next()){var nw=GP.value;if(nw){var DF=nw.playerLegacyDesktopWatchAdsRenderer;if(DF){var xC=DF.playerAdParams;if(xC){xC.autoplay=="1"&&(this.AU=this.Vz=!0);this.EL=xC.encodedAdSafetyReason|| null;xC.showContentThumbnail!==void 0&&(this.QB=!!xC.showContentThumbnail);or.enabled_engage_types=xC.enabledEngageTypes;break}}}}var Ff=this.playerResponse.playerConfig;if(Ff){var gd=Ff.manifestlessWindowedLiveConfig;if(gd){var In=Number(gd.minDvrSequence),$g=Number(gd.maxDvrSequence),W9=Number(gd.minDvrMediaTimeMs),wU=Number(gd.maxDvrMediaTimeMs),v0=Number(gd.startWalltimeMs);In&&(this.u1=In);W9&&(this.QJ=W9/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&Lk(this)&&(this.VP=W9/ 1E3));$g&&(this.Gh=$g);wU&&(this.R1=wU/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&Lk(this)&&(this.uL=wU/1E3));v0&&(this.qz=v0/1E3);(In||W9)&&($g||wU)&&(this.allowLiveDvr=this.isLivePlayback=this.jX=!0,this.yT=!1)}var yN=Ff.daiConfig;if(yN){if(yN.enableDai){this.Ha=!0;var iz=yN.enableServerStitchedDai;iz&&(this.enableServerStitchedDai=iz);var uM=yN.enablePreroll;uM&&(this.xn=uM)}var Lq;if(yN.daiType==="DAI_TYPE_SS_DISABLED"||((Lq=yN.debugInfo)==null?0:Lq.isDisabledUnpluggedChannel))this.jE= !0;yN.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.HV=!0)}var Vc=Ff.audioConfig;if(Vc){var nF=Vc.loudnessDb;nF!=null&&(this.Vt=nF);var g_E=Vc.trackAbsoluteLoudnessLkfs;g_E!=null&&(this.q4=g_E);var yl3=Vc.loudnessTargetLkfs;yl3!=null&&(this.loudnessTargetLkfs=yl3);Vc.audioMuted&&(this.Aw=!0);Vc.muteOnStart&&(this.kM=!0);var F2=Vc.loudnessNormalizationConfig;if(F2){F2.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);F2.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var n_X=F2.minimumLoudnessTargetLkfs;n_X!=null&&(this.minimumLoudnessTargetLkfs=n_X);var D99=F2.maxStatefulTimeThresholdSec;D99!=null&&(this.maxStatefulTimeThresholdSec=D99)}Vc.playAudioOnly&&(this.NU=!0)}var XB9=Ff.playbackEndConfig;if(XB9){var I3X=XB9.endSeconds,uT3=XB9.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(I3X&&(this.endSeconds=I3X),uT3&&(this.limitedPlaybackDurationInSeconds=uT3))}var xw=Ff.fairPlayConfig;if(xw){var KyX=xw.certificate;KyX&&(this.dW=rI(KyX));var qWS=Number(xw.keyRotationPeriodMs); qWS>0&&(this.AD=qWS);var CR3=Number(xw.keyPrefetchMarginMs);CR3>0&&(this.W2=CR3)}var zs=Ff.playbackStartConfig;if(zs){this.kU=Number(zs.startSeconds);var UeX=zs.liveUtcStartSeconds,YN3=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;UeX&&!YN3&&(this.liveUtcStartSeconds=Number(UeX));var k53=zs.startPosition;if(k53){var Akv=k53.utcTimeMillis;Akv&&!YN3&&(this.liveUtcStartSeconds=Number(Akv)*.001);var ckX=k53.streamTimeMillis;ckX&&(this.o2=Number(ckX)*.001)}this.progressBarStartPosition=zs.progressBarStartPosition; this.progressBarEndPosition=zs.progressBarEndPosition}else{var RE3=Ff.skippableSegmentsConfig;if(RE3){var de8=RE3.introSkipDurationMs;de8&&(this.Us=Number(de8)/1E3);var TCX=RE3.outroSkipDurationMs;TCX&&(this.Rp=Number(TCX)/1E3)}}var aWX=Ff.skippableIntroConfig;if(aWX){var EAc=Number(aWX.startMs),oAY=Number(aWX.endMs);isNaN(EAc)||isNaN(oAY)||(this.DG=EAc,this.b1=oAY)}var zkS=Ff.streamSelectionConfig;zkS&&(this.nU=Number(zkS.maxBitrate));var L73=Ff.vrConfig;L73&&(this.hK=L73.partialSpherical=="1"); var j7=Ff.webDrmConfig;if(j7){j7.skipWidevine&&(this.K8=!0);var rkX=j7.widevineServiceCert;rkX&&(this.GT=rI(rkX));j7.useCobaltWidevine&&(this.useCobaltWidevine=!0);j7.startWithNoQualityConstraint&&(this.vl=!0)}var KB=Ff.mediaCommonConfig;if(KB){var sV=KB.dynamicReadaheadConfig;if(sV){this.maxReadAheadMediaTimeMs=sV.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=sV.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=sV.readAheadGrowthRateMs||NaN;var li3,PCl=KB==null?void 0:(li3=KB.mediaUstreamerRequestConfig)== null?void 0:li3.videoPlaybackUstreamerConfig;PCl&&(this.NW=rI(PCl));var xp9=KB==null?void 0:KB.sabrContextUpdates;if(xp9&&xp9.length>0)for(var VmY=g.J(xp9),s1X=VmY.next();!s1X.done;s1X=VmY.next()){var $S=s1X.value;if($S.type&&$S.value){var xLj={type:$S.type,scope:$S.scope,value:rI($S.value)||void 0,sendByDefault:$S.sendByDefault};this.sabrContextUpdates.set($S.type,xLj)}}}var $eS=KB.serverPlaybackStartConfig;$eS&&(this.serverPlaybackStartConfig=$eS);KB.useServerDrivenAbr&&(this.Hl=!0);var vAX=KB.requestPipeliningConfig; vAX&&(this.requestPipeliningConfig=vAX)}var Hvc=Ff.inlinePlaybackConfig;Hvc&&(this.D$=!!Hvc.showAudioControls);var f4=Ff.embeddedPlayerConfig;if(f4){this.embeddedPlayerConfig=f4;var fWv=f4.embeddedPlayerMode;if(fWv){var GYc=this.L();GYc.jX=fWv;GYc.W=fWv==="EMBEDDED_PLAYER_MODE_PFL"}var W7S=f4.permissions;W7S&&(this.allowImaMonetization=!!W7S.allowImaMonetization)}var wtV=Ff.ssapConfig;wtV&&(this.r5=wtV.ssapPrerollEnabled||!1);var h0=Ff.webPlayerConfig;h0&&(h0.gatewayExperimentGroup&&(this.gatewayExperimentGroup= h0.gatewayExperimentGroup),h0.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var qv=this.playerResponse.streamingData;if(qv){var hEX=qv.formats;if(hEX){for(var NK=[],ivc=g.J(hEX),S_3=ivc.next();!S_3.done;S_3=ivc.next()){var Mov=S_3.value;NK.push(Mov.itag+"/"+Mov.width+"x"+Mov.height)}this.TF=NK.join(",");NK=[];for(var Jkc=g.J(hEX),b23=Jkc.next();!b23.done;b23=Jkc.next()){var tE=b23.value,e7={itag:tE.itag,type:tE.mimeType,quality:tE.quality},F74=tE.url;F74&&(e7.url=F74);var S9=bB(tE),s4j=S9.m5, fDO=S9.Fs,hHT=S9.s;S9.pM&&(e7.url=s4j,e7.sp=fDO,e7.s=hHT);NK.push(g.aw(e7))}this.fV=NK.join(",")}var pB8=qv.hlsFormats;if(pB8&&!this.S("safari_live_drm_captions_fix")){var jVc=Ff||null,Mj={};if(jVc){var Q19=jVc.audioPairingConfig;if(Q19&&Q19.pairs)for(var NCY=g.J(Q19.pairs),Z29=NCY.next();!Z29.done;Z29=NCY.next()){var tmv=Z29.value,O2Y=tmv.videoItag;Mj[O2Y]||(Mj[O2Y]=[]);Mj[O2Y].push(tmv.audioItag)}}for(var ekY={},BCc=g.J(pB8),mpX=BCc.next();!mpX.done;mpX=BCc.next()){var XtS=mpX.value;ekY[XtS.itag]= XtS.bitrate}for(var kYX=[],Rk3=g.J(pB8),gKY=Rk3.next();!gKY.done;gKY=Rk3.next()){var dT=gKY.value,Rz={itag:dT.itag,type:dT.mimeType,url:dT.url,bitrate:dT.bitrate,width:dT.width,height:dT.height,fps:dT.fps},bG=dT.audioTrack;if(bG){var aiv=bG.displayName;aiv&&(Rz.name=aiv,Rz.audio_track_id=bG.id,bG.audioIsDefault&&(Rz.is_default="1"))}if(dT.drmFamilies){for(var xeX=[],sV3=g.J(dT.drmFamilies),ypV=sV3.next();!ypV.done;ypV=sV3.next())xeX.push(Ng[ypV.value]);Rz.drm_families=xeX.join(",")}var p4=Mj[dT.itag]; if(p4&&p4.length){Rz.audio_itag=p4.join(",");var fi8=ekY[p4[0]];fi8&&(Rz.bitrate+=fi8)}var hkl=geE(dT);hkl&&(Rz.eotf=hkl);dT.audioChannels&&(Rz.audio_channels=dT.audioChannels);kYX.push(g.aw(Rz))}this.hlsFormats=kYX.join(",")}var nK4=qv.licenseInfos;if(nK4&&nK4.length>0){for(var SN8={},Mmc=g.J(nK4),DpV=Mmc.next();!DpV.done;DpV=Mmc.next()){var bvX=DpV.value,ptl=bvX.drmFamily,QVE=bvX.url;ptl&&QVE&&(SN8[Ng[ptl]]=QVE)}this.JB=SN8}var ZvE=qv.drmParams;ZvE&&(this.drmParams=ZvE);var OvX=qv.dashManifestUrl; OvX&&(this.KU=g.xJ(OvX,{cpn:this.clientPlaybackNonce}));var meS=qv.hlsManifestUrl;meS&&(this.hlsvp=meS);var gA4=qv.probeUrl;gA4&&(this.probeUrl=dl(g.xJ(gA4,{cpn:this.clientPlaybackNonce})));var ykX=qv.serverAbrStreamingUrl;ykX&&(this.Md=new g.xN(ykX,!0))}var nA8=this.playerResponse.trackingParams;nA8&&(this.Zf=nA8);var Un=this.playerResponse.videoDetails;if(Un){var az=U,IWc=Un.videoId;IWc&&(this.videoId=IWc,az.video_id||(az.video_id=IWc));var DeV=Un.channelId;DeV&&(this.G.uid=DeV.substring(2));var uLl= Un.title;uLl&&(this.title=uLl,az.title||(az.title=uLl));var KWS=Un.lengthSeconds;KWS&&(this.lengthSeconds=Number(KWS),az.length_seconds||(az.length_seconds=KWS));var IiV=Un.keywords;IiV&&(this.keywords=kE3(IiV));var q_l=Un.channelId;q_l&&(this.DT=q_l,az.ucid||(az.ucid=q_l));var uhE=Un.viewCount;uhE&&(this.rawViewCount=Number(uhE));var Cm4=Un.author;Cm4&&(this.author=Cm4,az.author||(az.author=Cm4));var K74=Un.shortDescription;K74&&(this.shortDescription=K74);var qN3=Un.isCrawlable;qN3&&(this.isListed= qN3);var CCv=Un.musicVideoType;CCv&&(this.musicVideoType=CCv);var Uz8=Un.isLive;Uz8!=null&&(this.isLivePlayback=Uz8);if(Uz8||Un.isUpcoming)this.isPremiere=!Un.isLiveContent;var UM9=Un.thumbnail;UM9&&(this.X=JG(UM9));var YB4=Un.isExternallyHostedPodcast;YB4&&(this.isExternallyHostedPodcast=YB4);var Y2X=Un.viewerLivestreamJoinPosition;if(Y2X==null?0:Y2X.utcTimeMillis)this.Ft=il(Y2X.utcTimeMillis);var ARv=Ff||null,A1c=U;Un.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Un.isUpcoming&&(this.isUpcoming= !0);if(Un.isPostLiveDvr){this.yT=!0;var cRV=Un.latencyClass;cRV&&(this.latencyClass=Taw[cRV]||"UNKNOWN");Un.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var c1c=!1;this.i$?(this.allowLiveDvr=oy()?!0:qL&&bj<5?!1:!0,this.isLivePlayback=!0):Un.isLive?(A1c.livestream="1",this.allowLiveDvr=Un.isLiveDvrEnabled?oy()?!0:qL&&bj<5?!1:!0:!1,this.partnerId=27,c1c=!0):Un.isUpcoming&&(c1c=!0);if(Un.isLive||this.i$){Un.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var dMY=Un.latencyClass; dMY&&(this.latencyClass=Taw[dMY]||"UNKNOWN");var Tjc=Un.liveChunkReadahead;Tjc&&(this.liveChunkReadahead=Tjc);var Lz=ARv&&ARv.livePlayerConfig;if(Lz){Lz.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Lz.hasSubfragmentedWebm&&(this.RH=!0);Lz.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var Ehv=Lz.liveExperimentalContentId;Ehv&&(this.liveExperimentalContentId=Number(Ehv));var ohV=Lz.isLiveHeadPlayable;this.S("html5_live_head_playable")&&ohV!=null&&(this.isLiveHeadPlayable=ohV)}}c1c&& (this.isLivePlayback=!0,A1c.adformat&&A1c.adformat.split("_")[1]!=="8"||this.Hw.push("heartbeat"),this.PN=!0)}var zPS=Un.isPrivate;zPS!==void 0&&(this.isPrivate=d3(this.isPrivate,zPS))}if(TV){var L5X=Un||null,rR3=!1,rb=TV.errorScreen;rR3=rb&&(rb.playerLegacyDesktopYpcOfferRenderer||rb.playerLegacyDesktopYpcTrailerRenderer||rb.ypcTrailerRenderer)?!0:L5X&&L5X.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(TV.status);if(!rR3){this.errorCode=MeS(TV.errorCode)||"auth";var Qk=rb&& rb.playerErrorMessageRenderer;if(Qk){this.playerErrorMessageRenderer=Qk;var lyl=Qk.reason;lyl&&(this.errorReason=g.wB(lyl));var dz3=Qk.subreason;dz3&&(this.Zp=g.wB(dz3),this.v2=dz3)}else this.errorReason=TV.reason||null;var T$V=TV.status;if(T$V==="LOGIN_REQUIRED")this.errorDetail="1";else if(T$V==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(T$V==="AGE_CHECK_REQUIRED"){var PZE=TV.errorScreen,V0S=PZE&&PZE.playerKavRenderer;this.errorDetail=V0S&&V0S.kavUrl?"4":"3"}else this.errorDetail=TV.isBlockedInRestrictedMode? "5":"0"}}var $MV=this.playerResponse.interstitialPods;$MV&&CiV(this,$MV);this.yJ&&this.eventId&&(this.yJ=Es(this.yJ,{ei:this.eventId}));var EZX=this.playerResponse.captions;if(EZX&&EZX.playerCaptionsTracklistRenderer)a:{var xM=EZX.playerCaptionsTracklistRenderer;this.captionTracks=[];if(xM.captionTracks)for(var vhV=g.J(xM.captionTracks),oZE=vhV.next();!oZE.done;oZE=vhV.next()){var sg=oZE.value,HN3=eA3(sg.baseUrl);if(!HN3)break a;var zyc={is_translateable:!!sg.isTranslatable,languageCode:sg.languageCode, languageName:sg.name&&g.wB(sg.name),url:HN3,vss_id:sg.vssId,kind:sg.kind};zyc.name=sg.trackName;zyc.displayName=sg.name&&g.wB(sg.name);this.captionTracks.push(new g.Hb(zyc))}this.Fq=xM.audioTracks||[];this.cB=xM.defaultAudioTrackIndex||0;this.P2=[];if(xM.translationLanguages)for(var G7S=g.J(xM.translationLanguages),LA3=G7S.next();!LA3.done;LA3=G7S.next()){var lf=LA3.value,vx={};vx.languageCode=lf.languageCode;vx.languageName=g.wB(lf.languageName);if(lf.translationSourceTrackIndices){vx.translationSourceTrackIndices= [];for(var W5c=g.J(lf.translationSourceTrackIndices),r1X=W5c.next();!r1X.done;r1X=W5c.next())vx.translationSourceTrackIndices.push(r1X.value)}if(lf.excludeAudioTrackIndices){vx.excludeAudioTrackIndices=[];for(var w1X=g.J(lf.excludeAudioTrackIndices),lV9=w1X.next();!lV9.done;lV9=w1X.next())vx.excludeAudioTrackIndices.push(lV9.value)}this.P2.push(vx)}this.U5=[];if(xM.defaultTranslationSourceTrackIndices)for(var iN8=g.J(xM.defaultTranslationSourceTrackIndices),P3c=iN8.next();!P3c.done;P3c=iN8.next())this.U5.push(P3c.value); this.EA=!!xM.contribute&&!!xM.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.kU=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Yl9(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var JRc;this.compositeLiveIngestionOffsetToken= (JRc=this.playerResponse.playbackTracking)==null?void 0:JRc.compositeLiveIngestionOffsetToken;var F53;this.compositeLiveStatusToken=(F53=this.playerResponse.playbackTracking)==null?void 0:F53.compositeLiveStatusToken}I$(this,U);U.queue_info&&(this.queueInfo=U.queue_info);var j68=U.hlsdvr;j68!=null&&(this.allowLiveDvr=Number(j68)===1?oy()?!0:qL&&bj<5?!1:!0:!1);this.adQueryId=U.ad_query_id||null;this.EL||(this.EL=U.encoded_ad_safety_reason||null);this.Aw=d3(this.Aw,U.infringe||U.muted);this.WYT=U.authkey; this.PP=U.authuser;this.mutedAutoplay=d3(this.mutedAutoplay,U&&U.playmuted);this.mutedAutoplayDurationMode=EI(this.mutedAutoplayDurationMode,U&&U.muted_autoplay_duration_mode);this.jP=d3(this.jP,U&&U.mutedautoplay);var ZB=U.length_seconds;ZB&&(this.lengthSeconds=typeof ZB==="string"?il(ZB):ZB);if(this.isAd()||this.QN||!g.lH(g.Qp(this.Ww)))this.endSeconds=EI(this.endSeconds,this.Rp||U.end||U.endSeconds);else{var SsW=g.Qp(this.Ww),OV=this.lengthSeconds;switch(SsW){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":OV> 30?this.limitedPlaybackDurationInSeconds=30:OV<30&&OV>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=OV*.2}}this.Zf=ob(this.Zf,U.itct);this.uD=d3(this.uD,U.is_live_destination);this.isLivePlayback=d3(this.isLivePlayback,U.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Sc();U.isUpcoming&&(this.isUpcoming=d3(this.isUpcoming,U.isUpcoming));this.yT=d3(this.yT,U.post_live_playback); this.jX&&(this.yT=!1);this.isMdxPlayback=d3(this.isMdxPlayback,U.mdx);var mi=U.mdx_control_mode;mi&&(this.mdxControlMode=typeof mi==="number"?mi:il(mi));this.isInlinePlaybackNoAd=d3(this.isInlinePlaybackNoAd,U.is_inline_playback_no_ad);this.Lr=EI(this.Lr,U.reload_count);this.reloadReason=ob(this.reloadReason,U.reload_reason);this.QB=d3(this.QB,U.show_content_thumbnail);this.cycToken=U.cyc||null;var NjY=iN(U);Object.keys(NjY).length>0&&(this.X=NjY);this.eX=ob(this.eX,U.vvt);this.mdxEnvironment=ob(this.mdxEnvironment, U.mdx_environment);U.source_container_playlist_id&&(this.sourceContainerPlaylistId=U.source_container_playlist_id);U.serialized_mdx_metadata&&(this.serializedMdxMetadata=U.serialized_mdx_metadata);this.g8X=U.osig;this.eventId||(this.eventId=U.eventid);this.osid||(this.osid=U.osid);this.playlistId=ob(this.playlistId,U.list);U.index&&(this.playlistIndex=this.playlistIndex===void 0?EI(0,U.index):EI(this.playlistIndex,U.index));this.YG=U.pyv_view_beacon_url;this.W0=U.pyv_quartile25_beacon_url;this.A2= U.pyv_quartile50_beacon_url;this.v0=U.pyv_quartile75_beacon_url;this.xG=U.pyv_quartile100_beacon_url;var t0X=U.session_data;!this.Qy&&t0X&&(this.Qy=Us(t0X,"&").feature);this.isFling=EI(this.isFling?1:0,U.is_fling)===1;this.vnd=EI(this.vnd,U.vnd);this.forceAdsUrl=ob(this.forceAdsUrl,U.force_ads_url);this.IJ=ob(this.IJ,U.ctrl);this.P7=ob(this.P7,U.ytr);this.BT=U.ytrcc;this.FL=U.ytrexp;this.TL=U.ytrext;this.mH=ob(this.mH,U.adformat);this.E7=ob(this.E7,U.attrib);this.slotPosition=EI(this.slotPosition, U.slot_pos);this.breakType=U.break_type;this.Aj=d3(this.Aj,U.ssrt);this.videoId=LU(U)||this.videoId;this.J=ob(this.J,U.vss_credentials_token);this.Dp=ob(this.Dp,U.vss_credentials_token_type);this.NU=d3(this.NU,U.audio_only);this.Ly=d3(this.Ly,U.aac_high);this.YY=d3(this.YY,U.prefer_low_quality_audio);this.eP=d3(this.eP,U.uncap_inline_quality);this.S("html5_enable_qoe_cat_list")?U.qoe_cat&&(this.RV=this.RV.concat(U.qoe_cat.split(","))):this.yP=ob(this.yP,U.qoe_cat);this.Tc=d3(this.Tc,U.download_media); var eP4=U.prefer_gapless;this.Z=eP4!=null?d3(this.Z,eP4):this.Z?this.Z:this.Ww.preferGapless&&this.Ww.supportsGaplessShorts();Yj3(this.playerResponse)&&this.Hw.push("ad");var BjS=U.adaptive_fmts;BjS&&(this.adaptiveFormats=BjS,this.wW("adpfmts",{},!0));var X14=U.allow_embed;X14&&(this.allowEmbed=Number(X14)===1);var k7X=U.backgroundable;k7X&&(this.backgroundable=Number(k7X)===1);var RP3=U.autonav;RP3&&(this.isAutonav=Number(RP3)===1);var ay3=U.autoplay;ay3&&(this.Vz=this.AU=Number(ay3)===1);var xMS= U.iv_load_policy;xMS&&(this.annotationsLoadPolicy=T0(this.annotationsLoadPolicy,xMS,Z8));var s6l=U.cc_lang_pref;s6l&&(this.captionsLanguagePreference=ob(s6l,this.captionsLanguagePreference));var fyS=U.cc_load_policy;fyS&&(this.hg=T0(this.hg,fyS,Z8));var hPX;this.deviceCaptionsOn=(hPX=U.device_captions_on)!=null?hPX:void 0;var SBl;this.L_=(SBl=U.device_captions_lang_pref)!=null?SBl:"";var M0c;this.VA=(M0c=U.viewer_selected_caption_langs)!=null?M0c:[];if(!this.S("html5_enable_ssap_entity_id")){var bNS= U.cached_load;bNS&&(this.Pf=d3(this.Pf,bNS))}if(U.dash==="0"||U.dash===0||U.dash===!1)this.hY=!0;var p14=U.dashmpd;p14&&(this.KU=g.xJ(p14,{cpn:this.clientPlaybackNonce}));var Q6X=U.delay;Q6X&&(this.Tk=il(Q6X));var Vg4=this.Rp||U.end;if(this.Me?Vg4!=null:Vg4!=void 0)this.clipEnd=EI(this.clipEnd,Vg4);var ZNS=U.fmt_list;ZNS&&(this.TF=ZNS);U.heartbeat_preroll&&this.Hw.push("heartbeat");this.Xf=-Math.floor(Math.random()*10);this.H_=-Math.floor(Math.random()*40);var ONS=U.is_listed;ONS&&(this.isListed= d3(this.isListed,ONS));var mM3=U.is_private;mM3&&(this.isPrivate=d3(this.isPrivate,mM3));var gh3=U.is_dni;gh3&&(this.ET=d3(this.ET,gh3));var yRc=U.dni_color;yRc&&(this.j4=ob(this.j4,yRc));var nhS=U.pipable;nhS&&(this.pipable=d3(this.pipable,nhS));this.Sd=(this.eN=this.pipable&&this.Ww.qY)&&!this.Ww.showMiniplayerButton;var DMX=U.paid_content_overlay_duration_ms;DMX&&(this.paidContentOverlayDurationMs=il(DMX));var Iy9=U.paid_content_overlay_text;Iy9&&(this.paidContentOverlayText=Iy9);var uNV=U.url_encoded_fmt_stream_map; uNV&&(this.fV=uNV);var K5S=U.hls_formats;K5S&&(this.hlsFormats=K5S);var qB3=U.hlsvp;qB3&&(this.hlsvp=qB3);var gN=U.live_start_walltime;gN&&(this.csW=typeof gN==="number"?gN:il(gN));var yk=U.live_manifest_duration;yk&&(this.ju=typeof yk==="number"?yk:il(yk));var CZE=U.player_params;CZE&&(this.playerParams=CZE);var USE=U.partnerid;USE&&(this.partnerId=EI(this.partnerId,USE));var Ybl=U.probe_url;Ybl&&(this.probeUrl=dl(g.xJ(Ybl,{cpn:this.clientPlaybackNonce})));var $zl=U.pyv_billable_url;$zl&&E$v($zl)&& (this.jL=$zl);var vZv=U.pyv_conv_url;vZv&&E$v(vZv)&&(this.TE=vZv);RAX(this,U);this.startSeconds>0?this.S("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.kU||this.Us||U.start||U.startSeconds)&&this.wW("lss",{css:this.startSeconds,pcss:this.kU,iss:this.Us,ps:U.start||void 0,pss:U.startSeconds||void 0}):this.AP=this.startSeconds=EI(this.startSeconds,this.kU||this.Us||U.start||U.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Ac3=U.live_utc_start;if(Ac3!= null)this.liveUtcStartSeconds=Number(Ac3);else{var HGY=this.startSeconds;HGY&&isFinite(HGY)&&HGY>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var cc3=U.utc_start_millis;cc3&&(this.liveUtcStartSeconds=Number(cc3)*.001)}var dSY=U.stream_time_start_millis;dSY&&(this.o2=Number(dSY)*.001);var GlY=this.Us||U.start;(this.Me?GlY==null||Number(U.resume)===1:GlY==void 0||U.resume=="1")||this.isLivePlayback||(this.clipStart=EI(this.clipStart, GlY));var TZX=U.url_encoded_third_party_media;TZX&&(this.SL=cn(TZX));var WAV=U.ypc_offer_button_formatted_text;if(WAV){var ELE=JSON.parse(WAV);this.Xq=ELE!=null?ELE:null;this.OG=WAV}var oLc=U.ypc_offer_button_text;oLc&&(this.Ml=oLc);var zD3=U.ypc_offer_description;zD3&&(this.ev=zD3);var LVE=U.ypc_offer_headline;LVE&&(this.P_=LVE);var rcl=U.ypc_full_video_message;rcl&&(this.NR=rcl);var lCS=U.ypc_offer_id;lCS&&(this.yB=lCS);var P9S=U.ypc_buy_url;P9S&&(this.I6=P9S);var VlS=U.ypc_item_thumbnail;VlS&& (this.lE=VlS);var $Sc=U.ypc_item_title;$Sc&&(this.VK=$Sc);var vLX=U.ypc_item_url;vLX&&(this.R6=vLX);var HrX=U.ypc_vid;HrX&&(this.tU=HrX);U.ypc_overlay_timeout&&(this.cN=Number(U.ypc_overlay_timeout));var GZ8=U.ypc_trailer_player_vars;GZ8&&(this.JS=Af(GZ8));var WVX=U.ypc_original_itct;WVX&&(this.jSw=WVX);this.DT=ob(this.DT,U.ucid);U.baseUrl&&(this.G.baseUrl=U.baseUrl);U.uid&&(this.G.uid=U.uid);U.oeid&&(this.G.oeid=U.oeid);U.ieid&&(this.G.ieid=U.ieid);U.ppe&&(this.G.ppe=U.ppe);U.engaged&&(this.G.engaged= U.engaged);U.subscribed&&(this.G.subscribed=U.subscribed);this.G.focEnabled=d3(this.G.focEnabled,U.focEnabled);this.G.rmktEnabled=d3(this.G.rmktEnabled,U.rmktEnabled);this.nD=U.storyboard_spec||null;this.DS=U.live_storyboard_spec||null;this.jb=U.iv_endscreen_url||null;this.PN=d3(this.PN,U.ypc_license_checker_module);this.xm=d3(this.xm,U.ypc_module);this.VU=d3(this.VU,U.ypc_clickwrap_module);this.xm&&this.Hw.push("ypc");this.VU&&this.Hw.push("ypc_clickwrap");this.kc={video_id:U.video_id,eventid:U.eventid, cbrand:U.cbrand,cbr:U.cbr,cbrver:U.cbrver,c:U.c,cver:U.cver,ctheme:U.ctheme,cplayer:U.cplayer,cmodel:U.cmodel,cnetwork:U.cnetwork,cos:U.cos,cosver:U.cosver,cplatform:U.cplatform,user_age:U.user_age,user_display_image:U.user_display_image,user_display_name:U.user_display_name,user_gender:U.user_gender,csi_page_type:U.csi_page_type,csi_service_name:U.csi_service_name,enablecsi:U.enablecsi,enabled_engage_types:U.enabled_engage_types};t7X(this,U);var wwX=U.cotn;wwX&&(this.cotn=wwX);if(mKv(this))PT(this)&& (this.isLivePlayback&&this.KU&&(this.s$=!0),this.dW&&(this.J1=!0));else if(grc(this))this.s$=!0;else{var irS,JcV,FVS=((irS=this.playerResponse)==null?void 0:(JcV=irS.streamingData)==null?void 0:JcV.adaptiveFormats)||[];if(FVS.length>0)var BJ=OAX(this,FVS);else{var jS3=this.adaptiveFormats;if(jS3&&!PT(this)){this.Ww.K.W&&(bq=!0);var PR=wS(jS3),wpc=this.JB,NZ3=this.lengthSeconds,MrF=this.isLivePlayback,X2=this.yT,V8=this.Ww,blW=E0E(PR);if(MrF||X2){var tlc=V8==null?void 0:V8.experiments,m8=new FR("", tlc,!0);m8.Sc=!0;m8.isManifestless=!0;m8.T=!X2;m8.isLive=!X2;m8.yT=X2;for(var eDV=g.J(PR),iGX=eDV.next();!iGX.done;iGX=eDV.next()){var $X=iGX.value,BZE=ev($X,wpc),Hx=BM($X.url,$X.sp,$X.s),XwS=Hx.get("id");XwS&&XwS.includes("%7E")&&(m8.X=!0);var kZX=void 0,pnw=(kZX=tlc)==null?void 0:kZX.lY("html5_max_known_end_time_rebase"),Q4L=Number($X.target_duration_sec)||5,Zlq=Number($X.max_dvr_duration_sec)||14400,RDX=Number(Hx.get("mindsq")||Hx.get("min_sq")||"0"),aCX=Number(Hx.get("maxdsq")||Hx.get("max_sq")|| "0")||Infinity;m8.u1=m8.u1||RDX;m8.Gh=m8.Gh||aCX;var Olo=!on(BZE.mimeType);Hx&&wO(m8,new EH(Hx,BZE,{Pl:Q4L,zI:Olo,x$:Zlq,u1:RDX,Gh:aCX,FZ:300,yT:X2,NP:pnw}))}var xSS=m8}else{if(blW==="FORMAT_STREAM_TYPE_OTF"){var n4=NZ3;n4=n4===void 0?0:n4;var vR=new FR("",V8==null?void 0:V8.experiments,!1);vR.duration=n4||0;for(var sS9=g.J(PR),J13=sS9.next();!J13.done;J13=sS9.next()){var HR=J13.value,FA9=ev(HR,wpc,vR.duration),j3X=BM(HR.url,HR.sp,HR.s);if(j3X)if(FA9.streamType==="FORMAT_STREAM_TYPE_OTF")wO(vR,new o7(j3X, FA9,"sq/0"));else{var mLz=bO(HR.init),gGL=bO(HR.index);wO(vR,new HM(j3X,FA9,mLz,gGL))}}vR.isOtf=!0;var fC9=vR}else{var DB=NZ3;DB=DB===void 0?0:DB;var IF=new FR("",V8==null?void 0:V8.experiments,!1);IF.duration=DB||0;for(var hDc=g.J(PR),N$9=hDc.next();!N$9.done;N$9=hDc.next()){var Gs=N$9.value,yfj=ev(Gs,wpc,IF.duration),nGT=g.M(bO(Gs.init)),DLo=g.M(bO(Gs.index)),Sbc=BM(Gs.url,Gs.sp,Gs.s);Sbc&&wO(IF,new HM(Sbc,yfj,nGT,DLo))}fC9=IF}xSS=fC9}var MlE=xSS;if(PR.length>0){var brv=PR[0];if(this.L().playerStyle=== "hangouts-meet"&&brv.url){var IDI=g.dF(brv.url);this.tj=this.tj||Number(IDI.expire)}}var umj=this.isLivePlayback&&!this.yT&&!this.jX&&!this.isPremiere;this.S("html5_live_head_playable")&&(!V5(this)&&umj&&this.wW("missingLiveHeadPlayable",{}),this.Ww.Pw==="yt"&&(MlE.dW=!0));BJ=MlE}else BJ=null;this.wW("pafmts",{isManifestFilled:!!BJ})}if(BJ){HT(this,BJ);var pwc=!0}else pwc=!1;pwc?this.enableServerStitchedDai=this.enableServerStitchedDai&&$p(this):this.KU&&(this.Ww.Pw==="yt"&&this.Sc()&&this.S("drm_manifestless_unplugged")&& this.S("html5_deprecate_manifestful_fallback")?this.wW("deprecateMflFallback",{}):this.s$=!0)}var tgE=U.adpings;tgE&&(this.qY=tgE?Af(tgE):null);var QS8=U.feature;QS8&&(this.Cc=QS8);var ZrX=U.referrer;ZrX&&(this.referrer=ZrX);this.clientScreenNonce=ob(this.clientScreenNonce,U.csn);this.Cj=EI(this.Cj,U.root_ve_type);this.Fo=EI(this.Fo,U.kids_age_up_mode);this.Me||U.kids_app_info==void 0||(this.kidsAppInfo=U.kids_app_info);this.Me&&U.kids_app_info!=null&&(this.kidsAppInfo=U.kids_app_info);this.RU=d3(this.RU, U.upg_content_filter_mode);this.unpluggedFilterModeType=EI(this.unpluggedFilterModeType,U.unplugged_filter_mode_type);var Or8=U.unplugged_location_info;Or8&&(this.sT=Or8);var mS4=U.unplugged_partner_opt_out;mS4&&(this.xY=ob("",mS4));this.PT=d3(this.PT,U.disable_watch_next);this.AM=ob(this.AM,U.internal_ip_override);this.Da=!!U.is_yto_interstitial;(this.interstitials.length||this.Da)&&this.Hw.push("yto");var gL3=U.ER;gL3&&(this.ER=gL3);if(this.S("html5_persist_csi_timer"))this.Pw=ob(this.Pw,U.csi_timer); else{var ycl;this.Pw=(ycl=U.csi_timer)!=null?ycl:""}U.watchUrl&&(this.watchUrl=U.watchUrl);var G4=U.watch_endpoint;this.S("html5_attach_watch_endpoint_ustreamer_config")&&G4&&QWv(this,G4);if(G4==null?0:G4.ustreamerConfig)this.q0=rI(G4.ustreamerConfig);var nL3,DS4,ICE=G4==null?void 0:(nL3=G4.loggingContext)==null?void 0:(DS4=nL3.qoeLoggingContext)==null?void 0:DS4.serializedContextData;ICE&&(this.WWW=ICE);g.ay(this.Ww)&&this.Ww.uL&&(this.embedsRct=ob(this.embedsRct,U.rct),this.embedsRctn=ob(this.embedsRctn, U.rctn));this.sx=this.sx||!!U.pause_at_start;U.default_active_source_video_id&&(this.defaultActiveSourceVideoId=U.default_active_source_video_id)}; g.W.L=function(){return this.Ww}; g.W.S=function(U){return this.Ww.S(U)}; g.W.O9=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.W.hasSupportedAudio51Tracks=function(){var U;return!((U=this.zs)==null||!U.qI)}; g.W.getUserAudio51Preference=function(){var U=1;UJ(this.Ww)&&this.S("html5_ytv_surround_toggle_default_off")?U=0:g.Ks(this.Ww)&&this.isLivePlayback&&this.h8()&&(U=0);var Y;return(Y=g.hu("yt-player-audio51"))!=null?Y:U}; g.W.CC=function(){this.Ky()||(this.Y.T||this.Y.unsubscribe("refresh",this.CC,this),this.WL(-1))}; g.W.WL=function(U){if(!this.isLivePlayback||!this.K||this.K.flavor!=="fairplay"){var Y=zbX(this.Y,this.Qv);if(Y.length>0){for(var A=g.J(Y),c=A.next();!c.done;c=A.next())c=c.value,c.startSecs=Math.max(c.startSecs,this.eq()),this.S("html5_cuepoint_identifier_logging")&&c.event==="start"&&this.wW("cuepoint",{pubCue:c.identifier,segNum:U});this.publish("cuepointupdated",Y,U);this.Qv+=Y.length;if($p(this)&&this.Ww.O3())for(Y=g.J(Y),A=Y.next();!A.done;A=Y.next())A=A.value,this.wW("cuepoint",{segNum:U,event:A.event, startSecs:A.startSecs,id:A.identifier.slice(-16)}),A.event==="start"&&(A=A.startSecs,this.WW.start=this.kE,this.WW.end=A+3)}}}; g.W.zf=function(){this.Ky()||(this.loading=!1,this.publish("dataloaded"))}; g.W.h8=function(){return this.au!==void 0?this.au:this.au=!!this.JB||!!this.Y&&tt(this.Y)}; g.W.aC=function(U){var Y=this;if(this.Ky())return a4();this.qe=this.qI=this.W=null;Kk(this,"html5_high_res_logging_always")&&(this.Ww.Bu=!0);return IKl(this,U).then(void 0,function(){return KP9(Y,U)}).then(void 0,function(){return qlE(Y)}).then(void 0,function(){return U_8(Y)})}; g.W.v3=function(U){this.W=U;u23(this,this.W.getAvailableAudioTracks());if(this.W){U=g.J(this.W.videoInfos);for(var Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var A=Y.containerType;A!==0&&(this.Kv[A]=Y.id)}}et(this);if(this.K&&this.W&&this.W.videoInfos&&!(this.W.videoInfos.length<=0)&&(U=cd(this.W.videoInfos[0]),this.K.flavor==="fairplay"!==U))for(Y=g.J(this.pc),A=Y.next();!A.done;A=Y.next())if(A=A.value,U===(A.flavor==="fairplay")){this.K=A;break}}; g.W.IS=function(){if(this.cotn)return null;var U=g.XA(this.Ww)||this.S("web_l3_storyboard");if(!this.oX)if(this.playerResponse&&this.playerResponse.storyboards){var Y=this.playerResponse.storyboards,A=Y.playerStoryboardSpecRenderer;A&&A.spec?this.oX=new OJ(A.spec,this.lengthSeconds,void 0,!1,U):(Y=Y.playerLiveStoryboardSpecRenderer)&&Y.spec&&this.Y&&(A=hvX(this.Y.Y).index)&&(this.oX=new gA(Y.spec,this.Y.isLive,A,U))}else this.nD?this.oX=new OJ(this.nD,this.lengthSeconds,void 0,!1,U):this.DS&&this.Y&& (Y=hvX(this.Y.Y).index)&&(this.oX=new gA(this.DS,this.Y.isLive,Y,U));return this.oX}; g.W.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var U=this.playerResponse.storyboards;return(U=U.playerStoryboardSpecRenderer||U.playerLiveStoryboardSpecRenderer)&&U.spec||null}return this.nD||this.DS}; g.W.Sl=function(){return this.Y&&!isNaN(this.Y.Sl())?this.Y.Sl():$p(this)?0:this.lengthSeconds}; g.W.eq=function(){return this.Y&&!isNaN(this.Y.eq())?this.Y.eq():0}; g.W.getPlaylistSequenceForTime=function(U){if(this.Y&&this.T){var Y=this.Y.Y[this.T.id];if(!Y)return null;var A=Y.index.Qz(U);Y=Y.index.getStartTime(A);return{sequence:A,elapsed:Math.floor((U-Y)*1E3)}}return null}; g.W.Bp=function(){return!this.Ky()&&!(!this.videoId&&!this.SL)}; g.W.xO=function(){var U,Y,A;return!!this.adaptiveFormats||!!((U=this.playerResponse)==null?0:(Y=U.streamingData)==null?0:(A=Y.adaptiveFormats)==null?0:A.length)}; g.W.isLoaded=function(){return De(this)&&!this.s$&&!this.J1}; g.W.SS=function(U){U||(U="hqdefault.jpg");var Y=this.X[U];return Y||this.Ww.Hw||U==="pop1.jpg"||U==="pop2.jpg"||U==="sddefault.jpg"||U==="hq720.jpg"||U==="maxresdefault.jpg"?Y:Iy(this.Ww,this.videoId,U)}; g.W.Sc=function(){return this.isLivePlayback||this.yT||this.jX||!(!this.liveUtcStartSeconds||!this.ju)}; g.W.isOtf=function(){return!!this.Y&&(this.Y.isOtf||!this.yT&&!this.isLivePlayback&&this.Y.T)}; g.W.getAvailableAudioTracks=function(){return this.W?this.W.getAvailableAudioTracks().length>0?this.W.getAvailableAudioTracks():this.sO||[]:[]}; g.W.getAudioTrack=function(){var U=this;if(this.j&&!cd(this.j)){var Y=g.$z(this.getAvailableAudioTracks(),function(d){return d.id===U.j.id}),A; if(this.S("html5_sabr_skip_client_audio_init_selection")&&!Y&&((A=this.j.b$)==null?0:A.id)){var c=this.j.b$.id;Y=g.$z(this.getAvailableAudioTracks(),function(d){return d.b$.id===c}); this.wW("nat",{id:this.j.id,track:!!Y})}return Y||this.jo}if(this.sO){if(!this.hW)for(Y=g.J(this.sO),A=Y.next();!A.done;A=Y.next())if(A=A.value,A.b$.getIsDefault()){this.hW=A;break}return this.hW||this.jo}return this.jo}; g.W.getPlayerResponse=function(){return this.playerResponse}; g.W.getWatchNextResponse=function(){return this.Uv}; g.W.getHeartbeatResponse=function(){return this.xB}; g.W.Zl=function(){return this.watchUrl?this.watchUrl:this.Ww.getVideoUrl(this.videoId)}; g.W.xJ=function(){return!!this.Y&&(qq3(this.Y)||CM8(this.Y)||UO3(this.Y))}; g.W.getEmbeddedPlayerResponse=function(){return this.qW}; g.W.vg=function(){return(this.eventLabel||this.Ww.QJ)==="shortspage"}; g.W.isAd=function(){return this.Qg||!!this.adFormat}; g.W.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.W.b9=function(){var U,Y,A;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((U=this.playerResponse)==null?0:(Y=U.playerConfig)==null?0:(A=Y.daiConfig)==null?0:A.ssaEnabledPlayback)}; g.W.Au=function(){return Nyc(this)?this.yD:this.PN||this.E9}; g.W.AT=function(){return this.xm||this.E9}; g.W.f_=function(){return Kk(this,"html5_samsung_vp9_live")}; g.W.wW=function(U,Y,A){this.publish("ctmp",U,Y,A)}; g.W.Kd=function(U,Y,A){this.publish("ctmpstr",U,Y,A)}; g.W.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.W.getGetAdBreakContext=function(U,Y){U=U===void 0?NaN:U;Y=Y===void 0?NaN:Y;var A={isSabr:Lk(this)},c,d=(c=this.getHeartbeatResponse())==null?void 0:c.adBreakHeartbeatParams;d&&(A.adBreakHeartbeatParams=d);if(this.S("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Y&&!isNaN(U)&&!isNaN(Y)){Y=U-Y;for(var T in this.Y.Y)if(c=this.Y.Y[T],c.info.pV()||c.info.SI())if(c=c.index,c.isLoaded()){T=c.Qz(Y);c=c.tB(T)+Y-c.getStartTime(T);this.wW("gabc",{t:U.toFixed(3),mt:Y.toFixed(3),sg:T,igt:c.toFixed(3)}); A.livePlaybackPosition={utcTimeMillis:""+(c*1E3).toFixed(0)};break}}return A}; g.W.isEmbedsShortsMode=function(U,Y){if(!g.ay(this.Ww)||(this.Ww.jX||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||Y)return!1;var A,c;return!!(((A=this.embeddedPlayerConfig)==null?0:(c=A.embeddedPlayerFlags)==null?0:c.isShortsExperienceEligible)&&U.width<=U.height)}; g.W.Tn=function(){g.l6.prototype.Tn.call(this);this.qY=null;delete this.yr;delete this.accountLinkingConfig;delete this.Y;this.W=this.xB=this.playerResponse=this.Uv=null;this.fV=this.adaptiveFormats="";delete this.botguardData;this.VJ=this.suggestions=this.q6=null;this.sabrContextUpdates.clear()};var ahl={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},x_c={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},khX={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},eLE={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"},XN3={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},By3={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"},RLY={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.w(zO,g.p);g.W=zO.prototype;g.W.handleExternalCall=function(U,Y,A){var c=this.state.G[U],d=this.state.Z[U],T=c;if(d)if(A&&YB(A,Nvf))T=d;else if(!c)throw Error('API call from an untrusted origin: "'+A+'"');this.logApiCall(U,A);if(T){A=!1;c=g.J(Y);for(d=c.next();!d.done;d=c.next())if(String(d.value).includes("javascript:")){A=!0;break}A&&g.Md(Error('Dangerous call to "'+U+'" with ['+Y+"]."));return T.apply(this,Y)}throw Error('Unknown API method: "'+U+'".');}; g.W.logApiCall=function(U,Y,A){var c=this.app.L();c.RV&&!this.state.X.has(U)&&(this.state.X.add(U),g.r7("webPlayerApiCalled",{callerUrl:c.loaderUrl,methodName:U,origin:Y||void 0,playerStyle:c.playerStyle||void 0,embeddedPlayerMode:c.jX,errorCode:A}))}; g.W.publish=function(U){var Y=g.SS.apply(1,arguments);this.state.W.publish.apply(this.state.W,[U].concat(g.X(Y)));if(U==="videodatachange"||U==="resize"||U==="cardstatechange")this.state.T.publish.apply(this.state.T,[U].concat(g.X(Y))),this.state.j.publish.apply(this.state.j,[U].concat(g.X(Y)))}; g.W.Ev=function(U){var Y=g.SS.apply(1,arguments);this.state.W.publish.apply(this.state.W,[U].concat(g.X(Y)));this.state.T.publish.apply(this.state.T,[U].concat(g.X(Y)))}; g.W.M5=function(U){var Y=g.SS.apply(1,arguments);this.state.W.publish.apply(this.state.W,[U].concat(g.X(Y)));this.state.T.publish.apply(this.state.T,[U].concat(g.X(Y)));this.state.j.publish.apply(this.state.j,[U].concat(g.X(Y)))}; g.W.gq=function(U){var Y=g.SS.apply(1,arguments);this.state.W.publish.apply(this.state.W,[U].concat(g.X(Y)));this.state.T.publish.apply(this.state.T,[U].concat(g.X(Y)));this.state.j.publish.apply(this.state.j,[U].concat(g.X(Y)));this.state.K.publish.apply(this.state.K,[U].concat(g.X(Y)))}; g.W.S=function(U){return this.app.L().S(U)}; g.W.Tn=function(){if(this.state.element){var U=this.state.element,Y;for(Y in this.state.Y)this.state.Y.hasOwnProperty(Y)&&(U[Y]=null);this.state.element=null}g.p.prototype.Tn.call(this)};g.w($_,g.BF);$_.prototype.publish=function(U){var Y=g.SS.apply(1,arguments);if(this.K.has(U))return this.K.get(U).push(Y),!0;var A=!1;try{for(Y=[Y],this.K.set(U,Y);Y.length;)A=g.BF.prototype.publish.call.apply(g.BF.prototype.publish,[this,U].concat(g.X(Y.shift())))}finally{this.K.delete(U)}return A};g.w(vC,g.p);vC.prototype.Tn=function(){this.K.dispose();this.j.dispose();this.T.dispose();this.W.dispose();this.X=this.Y=this.Z=this.G=this.J=void 0};var pNY=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.w(GO,zO);g.W=GO.prototype;g.W.getApiInterface=function(){return Array.from(this.state.J)}; g.W.hn=function(U,Y){this.state.K.subscribe(U,Y)}; g.W.TvY=function(U,Y){this.state.K.unsubscribe(U,Y)}; g.W.getPlayerState=function(U){return xhV(this.app,U)}; g.W.A4=function(){return xhV(this.app)}; g.W.gHy=function(U,Y,A){iR(this)&&(Sp(this.app,!0,1),p0(this.app,U,Y,A,1))}; g.W.getCurrentTime=function(U,Y,A){var c=this.getPlayerState(U);if(this.app.getAppState()===2&&c===5){var d;return((d=this.app.getVideoData())==null?void 0:d.startSeconds)||0}return this.S("web_player_max_seekable_on_ended")&&c===0?kj(this.app,U):U?this.app.getCurrentTime(U,Y,A):this.app.getCurrentTime(U)}; g.W.hO=function(){return this.app.getCurrentTime(1)}; g.W.Yg=function(){var U=this.app.tB(1);return isNaN(U)?this.getCurrentTime(1):U}; g.W.wH=function(){return this.app.getDuration(1)}; g.W.Qh=function(U,Y){U=g.Bi(Math.floor(U),0,100);isFinite(U)&&Bv(this.app,{volume:U,muted:this.isMuted()},Y)}; g.W.par=function(U){this.Qh(U,!1)}; g.W.S5=function(U){Bv(this.app,{muted:!0,volume:this.getVolume()},U)}; g.W.Dzf=function(){this.S5(!1)}; g.W.Rs=function(U){w_(this.app)&&!this.S("embeds_enable_emc3ds_muted_autoplay")||Bv(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},U)}; g.W.BYI=function(){w_(this.app)&&this.S("embeds_enable_emc3ds_muted_autoplay")||this.Rs(!1)}; g.W.getPlayerMode=function(){var U={};this.app.getVideoData().ET&&(U.pfp={enableIma:g.Ck(this.app.getVideoData())&&this.app.XY().allowImaMonetization,autoplay:Q5(this.app.XY()),mutedAutoplay:this.app.XY().mutedAutoplay});return U}; g.W.Yz=function(){var U=this.app.getPresentingPlayerType();if(U===2&&!this.app.Ha()){var Y=F_(this.app.WZ());if(!bYL(Y)||p3o(Y))return}(Y=this.app.M0().pF)?Y.playVideo():this.app.L().S("html5_ssap_ignore_play_for_ad")&&g.KD(this.app.XY())&&U===2||this.app.playVideo(U)}; g.W.zps=function(){Sp(this.app,!0,1);this.Yz()}; g.W.pauseVideo=function(U){var Y=this.app.getPresentingPlayerType();if(Y!==2||this.app.Ha()||bYL(F_(this.app.WZ()))){var A=this.app.M0().pF;A?A.pauseVideo():this.app.pauseVideo(Y,U)}}; g.W.sef=function(){var U=this.app,Y=!1;U.MI.mH&&(U.gW.publish("pageTransition"),Y=!0);U.stopVideo(Y)}; g.W.clearVideo=function(){}; g.W.getAvailablePlaybackRates=function(){var U=this.app.L();return U.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(U.j?U.ancestorOrigins[0]:window.location.origin)||U.Cc?Uwo:U.supportsVarispeedExtendedFeatures?YUY:U.S("web_remix_allow_up_to_3x_playback_rate")&&g.pV(U)?ADm:eO:[1]}; g.W.getPlaybackQuality=function(U){return(U=this.app.eM(U))?U.getPlaybackQuality():"unknown"}; g.W.Zhy=function(){}; g.W.getAvailableQualityLevels=function(U){return(U=this.app.eM(U))?(U=g.mk(U.qt(),function(Y){return Y.quality}),U.length&&(U[0]==="auto"&&U.shift(),U=U.concat(["auto"])),U):[]}; g.W.Ek=function(){return this.getAvailableQualityLevels(1)}; g.W.FV=function(){return this.zm()}; g.W.II=function(){return 1}; g.W.getVideoLoadedFraction=function(U){return this.app.getVideoLoadedFraction(U)}; g.W.zm=function(){return this.getVideoLoadedFraction()}; g.W.KL=function(){return 0}; g.W.getSize=function(){var U=this.app.Cy().getPlayerSize();return{width:U.width,height:U.height}}; g.W.setSize=function(){this.app.Cy().resize()}; g.W.loadVideoById=function(U,Y,A,c){if(!U)return!1;U=HC(U,Y,A);return this.app.loadVideoByPlayerVars(U,c)}; g.W.ZyY=function(U,Y,A){U=this.loadVideoById(U,Y,A,1);Sp(this.app,U,1)}; g.W.cueVideoById=function(U,Y,A,c){U=HC(U,Y,A);this.app.cueVideoByPlayerVars(U,c)}; g.W.bI=function(U,Y,A){this.cueVideoById(U,Y,A,1)}; g.W.loadVideoByUrl=function(U,Y,A,c){U=bf8(U,Y,A);return this.app.loadVideoByPlayerVars(U,c)}; g.W.qvv=function(U,Y,A){U=this.loadVideoByUrl(U,Y,A,1);Sp(this.app,U,1)}; g.W.cueVideoByUrl=function(U,Y,A,c){U=bf8(U,Y,A);this.app.cueVideoByPlayerVars(U,c)}; g.W.ZY=function(U,Y,A){this.cueVideoByUrl(U,Y,A,1)}; g.W.Sg=function(){var U=this.app.L();if(U.Hw)return"";var Y=this.app.XY(),A=void 0;Y.isLivePlayback||(A=Math.floor(this.app.getCurrentTime(1)));return U.getVideoUrl(Y.videoId,this.getPlaylistId()||void 0,A)}; g.W.M$=function(){return this.app.getDebugText()}; g.W.getVideoEmbedCode=function(){var U=this.app.L();if(U.Hw)return"";var Y=this.app.XY(),A=U.getVideoEmbedCode;Y=Y.isPrivate?"":Y.title;var c=this.app.XY().videoId;return A.call(U,Y,c,this.app.Cy().getPlayerSize(),this.getPlaylistId()||void 0)}; g.W.Cf=function(U,Y,A){return Qil(this.app,U,Y,A)}; g.W.removeCueRange=function(U){return Op4(this.app,U)}; g.W.loadPlaylist=function(U,Y,A,c){this.app.loadPlaylist(U,Y,A,c)}; g.W.ffX=function(U,Y,A,c){this.loadPlaylist(U,Y,A,c);Sp(this.app,!0,1)}; g.W.cuePlaylist=function(U,Y,A,c){this.app.cuePlaylist(U,Y,A,c)}; g.W.nextVideo=function(U,Y){this.app.nextVideo(U,Y)}; g.W.uNn=function(){this.nextVideo();Sp(this.app,!0,1)}; g.W.previousVideo=function(U){this.app.previousVideo(U)}; g.W.ahE=function(){this.previousVideo();Sp(this.app,!0,1)}; g.W.playVideoAt=function(U){this.app.playVideoAt(U)}; g.W.dUW=function(U){this.playVideoAt(U);Sp(this.app,!0,1)}; g.W.setShuffle=function(U){var Y=this.app.getPlaylist();Y&&Y.setShuffle(U)}; g.W.setLoop=function(U){var Y=this.app.getPlaylist();Y&&(Y.loop=U)}; g.W.jg=function(){var U=this.app.getPlaylist();if(!U)return null;for(var Y=[],A=0;A=400)if(U=g.M(this.XY()),this.U.L().S("client_respect_autoplay_switch_button_renderer"))U=!!U.autoplaySwitchButtonRenderer;else{var Y,A,c,d;U=!!((Y=U.getWatchNextResponse())==null?0:(A=Y.contents)==null?0:(c=A.twoColumnWatchNextResults)==null?0:(d=c.autoplay)==null?0:d.autoplay)!==!1}if(U)this.Y||(this.Y=!0,this.PQ(this.Y),this.U.L().S("web_player_autonav_toggle_always_listen")||r9X(this), Y=g.M(this.XY()),this.dG(Y.autonavState),this.U.logVisibility(this.element,this.Y));else if(this.Y=!1,this.PQ(this.Y),!this.U.L().S("web_player_autonav_toggle_always_listen"))for(this.U.L().S("web_player_autonav_toggle_always_listen"),Y=g.J(this.T),A=Y.next();!A.done;A=Y.next())this.FY(A.value)}; g.W.dG=function(U){PcX(this)?this.isChecked=U!==1:((U=U!==1)||(g.Zo(),U=g.ir("web_autonav_allow_off_by_default")&&!g.OI(0,141)&&g.DQ("AUTONAV_OFF_BY_DEFAULT")?!1:!g.OI(0,140)),this.isChecked=U);lw3(this)}; g.W.onClick=function(){this.isChecked=!this.isChecked;this.U.Rz(this.isChecked?2:1);lw3(this);if(PcX(this)){var U=g.M(this.XY()).autoplaySwitchButtonRenderer;this.isChecked&&(U==null?0:U.onEnabledCommand)?this.U.Ev("innertubeCommand",U.onEnabledCommand):!this.isChecked&&(U==null?0:U.onDisabledCommand)&&this.U.Ev("innertubeCommand",U.onDisabledCommand)}this.U.logClick(this.element)}; g.W.getValue=function(){return this.isChecked}; g.W.XY=function(){return this.U.getVideoData(1)};g.w(Vcc,Cq);g.w(EN,g.Ir);EN.prototype.onClick=function(){this.enabled&&(oV(this,!this.checked),this.publish("select",this.checked))}; EN.prototype.getValue=function(){return this.checked}; EN.prototype.setEnabled=function(U){(this.enabled=U)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var vk9=["en-CA","en","es-MX","fr-CA"];g.w($A,EN);$A.prototype.cw=function(U){U?this.Y||(this.o1.gf(this),this.Y=!0):this.Y&&(this.o1.ph(this),this.Y=!1);this.Y&&oV(this,Rhv())}; $A.prototype.j=function(){g.LZ(this.element,"ytp-menuitem-highlight-transition-enabled")}; $A.prototype.W=function(U){var Y=Rhv();U!==Y&&(Y=g.Zo(),g3(190,U),g3(192,!0),Y.save(),this.U.Ev("cinematicSettingsToggleChange",U))}; $A.prototype.Tn=function(){this.Y&&this.o1.ph(this);EN.prototype.Tn.call(this)};g.w(vt,Cq);vt.prototype.updateCinematicSettings=function(U){this.Y=U;var Y;(Y=this.menuItem)==null||Y.cw(U);this.api.publish("onCinematicSettingsVisibilityChange",U)};g.w(WBX,Cq);g.w(Ht,Cq);Ht.prototype.setCreatorEndscreenVisibility=function(U){var Y;(Y=eD(this.api.WZ()))==null||Y.PQ(U)}; Ht.prototype.Y=function(U){function Y(c){c==="creatorendscreen"&&(c=eD(A.api.WZ()))&&c.fAy(A.hideButton)} var A=this;this.hideButton=U;this.events.N(this.api,"modulecreated",Y);Y("creatorendscreen")};g.w(GY,EN);GY.prototype.j=function(U){this.W(U?1:0)}; GY.prototype.T=function(){var U=this.hasDrcAudioTrack(),Y=this.Y()===1&&U;oV(this,Y);this.setEnabled(U)}; GY.prototype.Tn=function(){this.o1.ph(this);EN.prototype.Tn.call(this)};g.w(Wt,Cq);Wt.prototype.getDrcUserPreference=function(){return this.Y}; Wt.prototype.setDrcUserPreference=function(U){g.fU("yt-player-drc-pref",U,31536E3);U!==this.Y&&(this.Y=U,this.updateEnvironmentData(),this.T()&&this.api.kf())}; Wt.prototype.updateEnvironmentData=function(){this.api.L().NU=this.Y===1}; Wt.prototype.T=function(){var U,Y,A=(U=this.api.getVideoData())==null?void 0:(Y=U.W)==null?void 0:Y.Y;if(!A)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.S("mta_drc_mutual_exclusion_removal")){var c,d,T=(c=this.api.TD())==null?void 0:(d=c.b$)==null?void 0:d.id;return Cx(A,function(E){var L;return E.audio.Y&&((L=E.b$)==null?void 0:L.id)===T})}return Cx(A,function(E){var L; return((L=E.audio)==null?void 0:L.Y)===!0})};g.w(wC,Cq);wC.prototype.onVideoDataChange=function(){var U=this,Y=this.api.getVideoData();this.api.OH("embargo",1);var A=Y==null?void 0:Y.oU.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(A==null?0:A.length)?iJc(this,A.filter(function(c){return wZc(U,c)})):(Y==null?0:Y.cueRanges)&&iJc(this,Y.cueRanges.filter(function(c){return wZc(U,c)}))}; wC.prototype.T=function(U){return U.embargo!==void 0}; wC.prototype.Tn=function(){Cq.prototype.Tn.call(this);this.Y={}};g.w(iC,Cq); iC.prototype.addEmbedsConversionTrackingParams=function(U){var Y=this.api.L(),A=Y.widgetReferrer,c=Y.qz,d=this.Y,T="",E=Y.getWebPlayerContextConfig();E&&(T=E.embedsIframeOriginParam||"");A.length>0&&(U.embeds_widget_referrer=A);c.length>0&&(U.embeds_referring_euri=c);Y.j&&T.length>0&&(U.embeds_referring_origin=T);E&&E.embedsFeature&&(U.feature=E.embedsFeature);d.length>0&&(Y.S("embeds_web_enable_lite_experiment_control_arm_logging")?d.unshift(28572):g.lH(g.Qp(Y))&&d.unshift(159628),Y=d.join(","),Y= g.yB()?Y:g.YK(Y,4),U.source_ve_path=Y);this.Y.length=0};g.w(J9V,Cq);g.w(FBS,Cq);g.w(Jk,g.p);Jk.prototype.Tn=function(){g.p.prototype.Tn.call(this);this.Y=null;this.T&&this.T.disconnect()};g.w(Nuc,Cq);g.w(Fh,g.n);Fh.prototype.show=function(){g.n.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Fh.prototype.stopTimer=function(){this.Y&&(this.Y.dispose(),this.Y=null)}; Fh.prototype.onVideoDataChange=function(U){var Y,A,c=(Y=this.api.getVideoData())==null?void 0:(A=Y.getPlayerResponse())==null?void 0:A.playabilityStatus;c&&(Y=tc3(c),g.I(this.api.getPlayerStateObject(),128)||U==="dataloaderror"||!Y?(this.T=0,this.stopTimer(),this.hide()):(U=(Y.remainingTimeSecs||0)*1E3,U>0&&(this.show(),this.updateValue("label",Rf(Y.label)),BuX(this,U))))}; Fh.prototype.Tn=function(){this.stopTimer();g.n.prototype.Tn.call(this)};g.w(XZ8,Cq);g.w(jm,g.n);jm.prototype.onClick=function(){this.gW.logClick(this.element);this.gW.Ev("onFullerscreenEduClicked")}; jm.prototype.cw=function(){this.gW.isFullscreen()?this.Y?this.fade.hide():this.fade.show():this.hide();this.gW.logVisibility(this.element,this.gW.isFullscreen()&&!this.Y)};g.w(Ne,Cq);Ne.prototype.updateFullerscreenEduButtonSubtleModeState=function(U){var Y;(Y=this.Y)!=null&&(g.lg(Y.element,"ytp-fullerscreen-edu-button-subtle",U),U&&!Y.T&&(Y.element.setAttribute("title","Desliza hacia abajo para ver m\u00e1s detalles"),e4(Y.gW,Y.element,Y),Y.T=!0))}; Ne.prototype.updateFullerscreenEduButtonVisibility=function(U){var Y;(Y=this.Y)!=null&&(Y.Y=U,Y.cw())};g.w(kIY,g.n);g.w(xNY,Cq);g.w(tk,Cq);tk.prototype.getSphericalProperties=function(){var U=g.fq(this.api.WZ());return U?U.getSphericalProperties():{}}; tk.prototype.setSphericalProperties=function(U){if(U){var Y=g.fq(this.api.WZ());Y&&Y.setSphericalProperties(U,!0)}};g.w(em,Cq);g.W=em.prototype;g.W.createClientVe=function(U,Y,A,c){this.api.createClientVe(U,Y,A,c===void 0?!1:c)}; g.W.createServerVe=function(U,Y,A){this.api.createServerVe(U,Y,A===void 0?!1:A)}; g.W.setTrackingParams=function(U,Y){this.api.setTrackingParams(U,Y)}; g.W.logClick=function(U,Y){this.api.logClick(U,Y)}; g.W.logVisibility=function(U,Y,A){this.api.logVisibility(U,Y,A)}; g.W.hasVe=function(U){return this.api.hasVe(U)}; g.W.destroyVe=function(U){this.api.destroyVe(U)};var fwX=!1;Xh.prototype.setPlaybackRate=function(U){this.playbackRate=Math.max(1,U)}; Xh.prototype.getPlaybackRate=function(){return this.playbackRate};sN.prototype.zi=function(U){var Y=g.dh(U.info.Y.info,this.rW.Sc),A=U.info.Js+this.j,c=U.info.startTime*1E3;if(this.policy.dW)try{c=this.policy.dW?g.rO(U)*1E3:U.info.startTime*1E3}catch(E){Math.random()>.99&&this.logger&&(c=tI(U.Y).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:U.info.jq(),encodedDataView:g.U_(c,4)})),c=U.info.startTime*1E3}var d=U.info.clipId,T=this.policy.dW?g.Sqv(U)*1E3:U.info.duration*1E3;this.policy.dW&&(c<0||T<0)&&(this.logger&&(this.logger({missingSegInfo:U.info.jq(), startTimeMs:c,durationMs:T}),this.policy.FB||(c<0&&(c=U.info.startTime*1E3),T<0&&(T=U.info.duration*1E3))),this.policy.FB&&(c<0&&(c=U.info.startTime*1E3),T<0&&(T=U.info.duration*1E3)));return{formatId:Y,Js:A,startTimeMs:c,clipId:d,iK:T}}; sN.prototype.dB=function(U){this.timestampOffset=U};hk.prototype.seek=function(U,Y){U!==this.Y&&(this.seekCount=0);this.Y=U;var A=this.videoTrack.T,c=this.audioTrack.T,d=this.audioTrack.yd,T=Uc3(this,this.videoTrack,U,this.videoTrack.yd,Y);Y=Uc3(this,this.audioTrack,this.policy.q5?U:T,d,Y);U=Math.max(U,T,Y);this.K=!0;this.rW.isManifestless&&(Iw8(this,this.videoTrack,A),Iw8(this,this.audioTrack,c));return U}; hk.prototype.isSeeking=function(){return this.K}; hk.prototype.Tv=function(U){this.W=U}; var CcE=2/24;var ct3=0;g.W=nv.prototype;g.W.X5=function(){this.X=this.now();IrV(this.I5,this.X);this.vZ.X5()}; g.W.qN=function(U,Y){var A=this.policy.T?(0,g.y)():0;Di(this,U,Y);U-this.J<10&&this.T>0||this.wk(U,Y);this.vZ.qN(U,Y);this.policy.T&&(U=(0,g.y)()-A,this.AP+=U,this.VJ=Math.max(U,this.VJ))}; g.W.wk=function(U,Y){var A=(U-this.J)/1E3,c=Y-this.W;this.sZ||(Fp(this.I5,A,c),this.xp(A,c));this.J=U;this.W=Y}; g.W.S9=function(){this.jX&&dcY(this);this.vZ.S9()}; g.W.lO=function(U){this.jX||(this.jX=this.K-this.mH+U,this.qz=this.K,this.Me=this.G)}; g.W.HU=function(U,Y){U=U===void 0?this.G:U;Y=Y===void 0?this.K:Y;this.T>0||(this.Z=U,this.T=Y,this.Pw=this.isActive=!0)}; g.W.V0=function(){return this.zl||2}; g.W.AX=function(){}; g.W.XD=function(){var U,Y={rn:this.requestNumber,rt:(this.G-this.Y).toFixed(),lb:this.K,stall:(1E3*this.j).toFixed(),ht:(this.X-this.Y).toFixed(),elt:(this.Z-this.Y).toFixed(),elb:this.T,d:(U=this.QJ)==null?void 0:U.jS()};this.url&&sfl(Y,this.url);this.policy.T&&(Y.mph=this.VJ.toFixed(),Y.tph=this.AP.toFixed());Y.ulb=this.eX;Y.ult=this.Hw;return Y}; g.W.now=function(){return(0,g.y)()}; g.W.deactivate=function(){this.isActive&&(this.isActive=!1)};g.w(uC,nv);g.W=uC.prototype;g.W.XD=function(){var U=nv.prototype.XD.call(this);U.pb=this.iJ;U.pt=(1E3*this.i$).toFixed();U.se=this.Lr;return U}; g.W.DH=function(){var U=this.vZ;this.Zf||(this.Zf=U.DH?U.DH():1);return this.Zf}; g.W.uj=function(){return this.hw?this.DH()!==1:!1}; g.W.hx=function(U,Y,A){if(!this.R1){this.R1=!0;if(!this.sZ){Di(this,U,Y);this.wk(U,Y);var c=this.DH();this.Lr=A;if(!this.sZ)if(c===2){c=U-this.Z0)||Kv(this,c,Y),this.T>0&&io(this.I5,Y,this.j));U=(U-this.Y)/ 1E3||.01;this.policy.Z&&!(this.T>0)||wI(this.I5,U,this.W,EN8(this),this.bP)}this.deactivate()}}; g.W.n0=function(U,Y,A){A&&(this.Zf=2);U<0&&this.zl&&(U=this.zl);Y?this.dW+=U:this.yJ+=U}; g.W.V0=function(){return this.yJ||this.dW||nv.prototype.V0.call(this)}; g.W.wk=function(U,Y){var A=(U-this.J)/1E3,c=Y-this.W,d=this.DH();this.isActive?d===1&&((c>0||this.policy.K)&&(A>.2||c<1024)?(this.j+=A,c>0&&A>.2&&Kv(this,this.XO?A:.05,c),this.ws=!0):c>0&&(Kv(this,A,c),this.ws=!0)):Y&&Y>=this.policy.Y&&this.HU(U,Y);nv.prototype.wk.call(this,U,Y)}; g.W.bT=function(U){if(!this.sZ){Di(this,U,this.K);var Y=(U-this.Y)/1E3;this.DH()!==2&&this.T>0&&(this.j+=(U-this.J)/1E3,io(this.I5,this.W,this.j));wI(this.I5,Y,this.W,EN8(this),this.bP,!0);U=(U-this.J)/1E3;Fp(this.I5,U,0);this.xp(U,0)}}; g.W.HU=function(U,Y){U=U===void 0?this.G:U;Y=Y===void 0?this.K:Y;if(!(this.T>0)&&(nv.prototype.HU.call(this,U,Y),this.DH()===1)){Y=(this.X-this.Y)/1E3;var A=(U-this.X)/1E3;this.hw&&qe(this,this.now());this.Tk||this.sZ||(this.zl&&(A=Math.max(0,A-this.zl)),U=this.I5,U.Z.wF(1,Y),U.QJ.wF(1,A))}}; g.W.KM=function(){this.hw&&qe(this,this.now());return this.kE}; g.W.kO=function(){var U;if(U=this.W>this.Ca)U=(U=this.W)?U>=this.policy.Y:!1;return U}; g.W.P9=function(){return this.Ly}; g.W.kz=function(U){U=U===void 0?this.now():U;if(this.hw){qe(this,U);if(this.Zf?this.uj():this.ov!==this.Uv){var Y=this.Uv;if(U0?A+U:A+Math.max(U,Y)}; g.W.Z1=function(){return this.now()-this.Z}; g.W.DD=function(){return(this.W-this.T)*1E3/this.Z1()||0}; g.W.Si=function(){return this.Z};Cv.prototype.feed=function(U){JI(this.Y,U);this.I2()}; Cv.prototype.I2=function(){if(this.j){if(!this.Y.getLength())return;var U=this.Y.split(this.W-this.T),Y=U.SU;U=U.AS;if(!this.vZ.lO(this.j,Y,this.T,this.W))return;this.T+=Y.getLength();this.Y=U;this.T===this.W&&(this.j=this.W=this.T=void 0)}for(;;){var A=0;U=g.J(rtS(this.Y,A));Y=U.next().value;A=U.next().value;A=g.J(rtS(this.Y,A));U=A.next().value;A=A.next().value;if(Y<0||U<0)break;if(!this.Y.oA(A,U)){if(!this.vZ.lO||!this.Y.oA(A,1))break;A=this.Y.split(A).AS;this.vZ.lO(Y,A,0,U)&&(this.j=Y,this.T= A.getLength(),this.W=U,this.Y=new is([]));break}U=this.Y.split(A).AS.split(U);A=U.AS;this.vZ.Zr(Y,U.SU);this.Y=A}}; Cv.prototype.dispose=function(){this.Y=new is};g.W=UB.prototype;g.W.EY=function(){return 0}; g.W.aY=function(){return null}; g.W.Wn=function(){return null}; g.W.K0=function(){return this.state>=1}; g.W.isComplete=function(){return this.state>=3}; g.W.nX=function(){return this.state===5}; g.W.onStateChange=function(){}; g.W.l9=function(U){var Y=this.state;this.state=U;this.onStateChange(Y);this.callback&&this.callback(this,Y)}; g.W.yF=function(U){U&&this.state=this.xhr.HEADERS_RECEIVED}; g.W.getResponseHeader=function(U){try{return this.xhr.getResponseHeader(U)}catch(Y){return""}}; g.W.J0=function(){return+this.getResponseHeader("content-length")}; g.W.tS=function(){return this.T}; g.W.UK=function(){return this.status>=200&&this.status<300&&!!this.T}; g.W.RX=function(){return this.Y.getLength()>0}; g.W.bE=function(){var U=this.Y;this.Y=new is;return U}; g.W.Fx=function(){return this.Y}; g.W.abort=function(){this.Ky=!0;this.xhr.abort()}; g.W.Gb=function(){return!0}; g.W.z6=function(){return this.qU}; g.W.uB=function(){return""};c1.prototype.Yh=function(U,Y){Y=Y===void 0?1:Y;this.t1+=Y;this.T+=U;U/=Y;for(var A=0;A0)c+="."+AR[d].toFixed(0)+"_"+A.Y[d].toFixed(0);else break;A=c}A&&(U[Y]=A)}this.Y=new PBX;return U}; g.W.toString=function(){return""};g.W=WoE.prototype;g.W.isActive=function(){return!1}; g.W.zp=function(){}; g.W.p7=function(){}; g.W.mN=function(){}; g.W.HG=function(){}; g.W.I8=function(U,Y){Y()}; g.W.Vn=function(){return{}}; g.W.toString=function(){return""};var Ed,EKm,oKF,zEo,LWz,oP,Wg,T7,$hE;Ed=new WoE;EKm=!!+I5("html5_enable_profiler");oKF=!!+I5("html5_onesie_enable_profiler");zEo=!!+I5("html5_offline_encryption_enable_profiler");LWz=!!+I5("html5_performance_impact_profiling_timer_ms");oP=EKm||oKF||zEo||LWz?new $c8:Ed;g.Xu=EKm?oP:Ed;Wg=oKF?oP:Ed;T7=zEo?oP:Ed;$hE=LWz?oP:Ed;g.W=JtX.prototype;g.W.getResponseHeader=function(U){return U==="content-type"?this.Y.get("type"):""}; g.W.abort=function(){}; g.W.vx=function(){return!0}; g.W.J0=function(){return this.range.length}; g.W.tS=function(){return this.loaded}; g.W.UK=function(){return!!this.loaded}; g.W.RX=function(){return!!this.T.getLength()}; g.W.bE=function(){var U=this.T;this.T=new is;return U}; g.W.Fx=function(){return this.T}; g.W.Gb=function(){return!0}; g.W.z6=function(){return!!this.error}; g.W.uB=function(){return this.error};g.W=js3.prototype;g.W.start=function(U){var Y={credentials:"include",cache:"no-store"};Object.assign(Y,this.J);this.j&&(Y.signal=this.j.signal);U=new Request(U,Y);fetch(U).then(this.Z,this.onError).then(void 0,Lg)}; g.W.onDone=function(){this.Ky()||this.vZ.S9()}; g.W.getResponseHeader=function(U){return this.responseHeaders?this.responseHeaders.get(U):null}; g.W.vx=function(){return!!this.responseHeaders}; g.W.tS=function(){return this.T}; g.W.J0=function(){return+this.getResponseHeader("content-length")}; g.W.UK=function(){return this.status>=200&&this.status<300&&!!this.T}; g.W.RX=function(){return!!this.Y.getLength()}; g.W.bE=function(){this.RX();var U=this.Y;this.Y=new is;return U}; g.W.Fx=function(){this.RX();return this.Y}; g.W.Ky=function(){return this.K}; g.W.abort=function(){this.W&&this.W.cancel().catch(function(){}); this.j&&this.j.abort();this.K=!0}; g.W.Gb=function(){return!0}; g.W.z6=function(){return this.qU}; g.W.uB=function(){return this.errorMessage};g.W=NWE.prototype;g.W.onDone=function(){if(!this.Ky){this.status=this.xhr.status;try{this.response=this.xhr.response,this.T=this.response.byteLength}catch(U){}this.Y=!0;this.vZ.S9()}}; g.W.B4=function(){this.xhr.readyState===2&&this.vZ.X5()}; g.W.ag=function(U){this.Ky||(this.status=this.xhr.status,this.Y||(this.T=U.loaded),this.vZ.qN((0,g.y)(),U.loaded))}; g.W.vx=function(){return this.xhr.readyState>=2}; g.W.getResponseHeader=function(U){try{return this.xhr.getResponseHeader(U)}catch(Y){return g.Md(Error("Could not read XHR header "+U)),""}}; g.W.J0=function(){return+this.getResponseHeader("content-length")}; g.W.tS=function(){return this.T}; g.W.UK=function(){return this.status>=200&&this.status<300&&this.Y&&!!this.T}; g.W.RX=function(){return this.Y&&!!this.response&&!!this.response.byteLength}; g.W.bE=function(){this.RX();var U=this.response;this.response=void 0;return new is([new Uint8Array(U)])}; g.W.Fx=function(){this.RX();return new is([new Uint8Array(this.response)])}; g.W.abort=function(){this.Ky=!0;this.xhr.abort()}; g.W.Gb=function(){return!1}; g.W.z6=function(){return!1}; g.W.uB=function(){return""};g.o6.prototype.info=function(){}; g.o6.prototype.debug=function(){}; g.o6.prototype.Y=function(U){z7.apply(null,[5,this.tag,U].concat(g.X(g.SS.apply(1,arguments))))}; var BWX=new Map,RaX=new Map,XzE=new function(){var U=this;this.Y=new Map;this.o5={UYT:function(){return U.Y}}};g.w(LN,g.p);LN.prototype.oi=function(){if(!this.CV.length)return[];var U=this.CV;this.CV=[];this.W=g.PW(U).info;return U}; LN.prototype.IG=function(){return this.CV}; LN.prototype.Tn=function(){g.p.prototype.Tn.call(this);this.Y=null;this.CV.length=0;this.py.length=0;this.W=null};g.w(lZ,g.p);g.W=lZ.prototype; g.W.vHn=function(){if(!this.Ky()){var U=(0,g.y)(),Y=!1;if(this.policy.DM){U=U-(this.timing.T>0?this.timing.Z:this.timing.Y)-this.timing.V0()*1E3;var A=Xe(P1(this),!1);U>=2E3*A?Y=!0:U>=this.policy.IT*A&&(this.Y=this.policy.vl)}else if(this.timing.T>0){if(this.K){this.policy.qz&&(this.Y=0);return}var c=this.timing.P9();this.timing.kz();var d=this.timing.P9();d-c>=this.policy.Bu*.8?(this.Y++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),Y=this.Y>=5):this.Y=0}else{var T=U-this.timing.KM(); this.policy.vl&&T>0&&(this.Y+=1);Y=Xe(P1(this),!1)*this.policy.QA;(Y=T>Y*1E3)&&this.logger.debug(function(){return"Elbow late by "+T.toFixed(3)})}this.Y>0&&this.vZ.b_(); Y?this.OA():this.T.start()}}; g.W.OA=function(){this.j=!0;this.vZ.ID();this.lastError="net.timeout";$h(this)}; g.W.canRetry=function(U){var Y=P1(this);U=U?this.policy.Ft:this.policy.yP;return Y.timedOut0&&(Y=Y.Y.getUint8(0),U.ubyte=Y,A===1&&Y===0&&(U.b248180278=!0))}this.ZA&&(U.rc=this.policy.JS?this.ZA:this.ZA.toString());this.policy.tb&&this.kx&&(U.tr=this.kx);U.itag=this.info.py[0].Y.info.itag;U.ml=""+ +this.info.py[0].Y.kH();U.sq=""+this.info.py[0].Js;this.uf&&(U.ifi=""+ +SB(this.info.Dm.T));this.ZA!==410&&this.ZA!==500&&this.ZA!==503||(U.fmt_unav="true");var c;(A=this.errorMessage||((c=this.xhr)==null? void 0:c.uB()))&&(U.msg=A);this.JT&&(U.smb="1");this.info.isDecorated()&&(U.sdai="1");return U}; g.W.Pn=function(){return oN4(this.timing)}; g.W.uB=function(){return this.xhr.uB()||""}; g.W.kO=function(){return this.isComplete()||this.timing.kO()}; g.W.qN=function(){!this.Ky()&&this.xhr&&(this.ZA=this.xhr.status,this.policy.Li&&this.J_&&this.fm(!1),this.Ve()?this.yF(2):!this.Xw&&this.kO()&&(this.yF(),this.Xw=!0))}; g.W.X5=function(){if(!this.Ky()&&this.xhr){if(!this.Nl&&this.xhr.vx()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var U=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Nl=((0,g.y)()-U)/1E3}this.xhr.vx()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.O1&&!gq3()&&g.fU("yt-player-headers-readable",!0,2592E3);U=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var Y=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),A;(A=this.f0)==null||A.stop();this.yK=U||this.yK; this.ZT=Y||this.ZT}}; g.W.S9=function(){var U=this.xhr;if(!this.Ky()&&U){this.ZA=U.status;U=this.ZD(U);if(this.policy.tb){var Y;(Y=this.f0)==null||Y.stop()}U===5?$h(this.GQ):this.l9(U);this.GQ.T.stop()}}; g.W.ZD=function(U){var Y=this;rMc(this);if(v1(this.GQ,this.xhr.status,this.aT?this.timing.Pw||this.pz:this.xhr.UK(),!1,this.GM))return 5;var A="";H1(this.GQ,this.xhr)&&(A=Sav(this.GQ,this.xhr));if(A)return BH(P1(this.GQ)),this.info.zX(this.uf,A),3;A=U.tS();if(this.j2){this.fm(!0);rMc(this);if(v1(this.GQ,this.xhr.status,this.timing.Pw||this.pz,!1,this.GM))return 5;if(!this.aE){if(this.pz)return BH(P1(this.GQ)),3;this.GQ.lastError="net.closed";return 5}}else{if(v1(this.GQ,this.xhr.status,this.xhr.UK(), !1,this.GM))return 5;var c=this.info.W;if(c&&c!==A||U.z6())return this.GQ.lastError="net.closed",5;this.fm(!0)}c=lLE(this)?U.getResponseHeader("X-Bandwidth-Est"):0;if(U=lLE(this)?U.getResponseHeader("X-Bandwidth-Est3"):0)this.BX=!0,this.policy.G4&&(c=U);fLv(this.GQ,A,c?Number(c):0,this.info.py[0].type===5);this.logger.debug(function(){var d=Y.timing;return"Succeeded, rtpd="+(d.i$*1E3+d.Y-Date.now()).toFixed(0)}); return 4}; g.W.canRetry=function(){this.Ky();var U=this.info.isDecorated();return this.GQ.canRetry(U)}; g.W.onStateChange=function(){this.isComplete()&&(this.policy.ev?this.ID():this.timing.deactivate())}; g.W.OA=function(){this.GQ.OA()}; g.W.b_=function(){this.callback&&this.callback(this,this.state)}; g.W.uO=function(){return this.GQ.uO()}; g.W.dispose=function(){UB.prototype.dispose.call(this);this.GQ.dispose();var U;(U=this.f0)==null||U.dispose();this.policy.ev||this.ID()}; g.W.ID=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.W.oi=function(){if(!this.IG().length)return[];this.Lp=!0;return this.J_.oi()}; g.W.Ve=function(){if(this.state<1)return!1;if(this.J_&&this.J_.CV.length)return!0;var U;return((U=this.xhr)==null?0:U.RX())?!0:!1}; g.W.IG=function(){this.fm(!1);return this.J_?this.J_.IG():[]}; g.W.fm=function(U){try{if(U||this.xhr.vx()&&this.xhr.RX()&&!H1(this.GQ,this.xhr)&&!this.qE)this.J_||(this.J_=new LN(this.policy,this.info.py)),this.xhr.RX()&&(this.j2?this.j2.feed(this.xhr.bE()):rj(this.J_,this.xhr.bE(),U&&!this.xhr.RX()))}catch(Y){this.j2?o59(this,Y):g.Md(Y)}}; g.W.Zr=function(U,Y){switch(U){case 21:U=Y.split(1).AS;z3Y(this,U);break;case 22:this.aE=!0;rj(this.J_,new is([]),!0);break;case 43:if(U=QF(new f5(Y),1))this.info.zX(this.uf,U),this.pz=!0;break;case 45:Y=lB(new f5(Y));U=Y.qw;Y=Y.a8;U&&Y&&(this.n_=U/Y);break;case 44:this.D6=gBX(new f5(Y));var A,c,d;!this.timing.Pw&&((A=this.D6)==null?void 0:A.action)===4&&((c=this.D6)==null?0:(d=c.y6)==null?0:d.aT)&&(this.aT=this.D6.y6.aT);break;case 53:this.policy.tb&&(U=ZSV(new f5(Y)).L4)&&(this.f0||(this.L4=U,this.f0= new g.IM(this.D9,U,this)),this.f0.start());break;case 60:this.W4=rW(new f5(Y));break;case 58:if(U=wmX(new f5(Y)))this.FD=U,U.FD===3&&(this.GM=!0)}}; g.W.lO=function(U,Y,A,c){A||this.timing.lO(c);if(U!==21)return!1;if(U=this.policy.Li)if(c=Y.getLength()+A===c,U*=this.info.py[0].Y.info.hs,!c&&Y.getLength()0)return!1;if(!this.xhr.vx())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.j2)var U=!this.info.W;else this.xhr.J0()?U=!1:(U=this.xhr.getResponseHeader("content-type"),U=U==="audio/mp4"||U==="video/mp4"||U==="video/webm");if(!U)return!1;if(isNaN(this.info.rY)){U=this.xhr.getResponseHeader("x-head-seqnum");var Y=this.timing.policy.G?1:0;if(!U)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(U)>this.info.py[0].Js+Y)return!1}return!0}; g.W.UW=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.W.aY=function(){this.xhr&&(this.yK=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.yK}; g.W.Wn=function(){this.xhr&&(this.ZT=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.ZT}; g.W.C3=function(){return this.GQ.C3()}; g.W.D9=function(){if(!this.Ky()&&this.xhr){this.kx="heartbeat";var U=this.GQ;U.Y+=2;this.b_()}};g.w(tR,nv);g.W=tR.prototype;g.W.wk=function(U,Y){var A=(U-this.J)/1E3,c=Y-this.W;this.T>0?c>0&&(this.ov&&(A>.2||c<1024?(this.j+=A,A>.2&&lYE(this,.05,c)):lYE(this,A,c)),this.Uv&&(this.kE+=c,this.yJ+=A)):Y>this.policy.Y&&this.HU(U,Y);nv.prototype.wk.call(this,U,Y)}; g.W.hx=function(U,Y){Di(this,U,Y);this.wk(U,Y);this.ov&&(Y=this.W*this.snapshot.stall+this.W/this.snapshot.byterate,this.T>0&&io(this.I5,this.kE,this.j),U=(U-this.Y)/1E3||.01,this.policy.Z&&!(this.T>0)||wI(this.I5,U,this.W,Y,!1))}; g.W.bT=function(U){Di(this,U,this.K);var Y=(U-this.J)/1E3;Fp(this.I5,Y,0);this.xp(Y,0);!this.ov&&this.T>0||(Y=this.W*this.snapshot.stall+this.W/this.snapshot.byterate,this.T>0&&(this.j+=(U-this.J)/1E3,io(this.I5,this.kE,this.j)),wI(this.I5,((U-this.Y)/1E3||.01)*this.policy.Pw,this.W,Y,!1,!0))}; g.W.D3=function(U){U=U.Io||2147483647;(U&2)!==2&&(this.Uv=!1);(U&1)===1&&(this.ov=!0)}; g.W.Pq=function(U){U=U.Io||2147483647;(U&2)===2&&(this.Uv=!1);(U&1)===1&&(this.ov=!1)}; g.W.Si=function(){return this.Z}; g.W.Z1=function(){var U=this.Uv?this.now()-this.J:0;return Math.max(this.yJ*1E3+U,1)}; g.W.DD=function(){return this.kE*1E3/this.Z1()}; g.W.HU=function(U,Y){U=U===void 0?this.G:U;Y=Y===void 0?this.K:Y;this.T>0||(nv.prototype.HU.call(this,U,Y),Y=this.I5,U=(U-this.X)/1E3,Y.Z.wF(1,(this.X-this.Y)/1E3),Y.QJ.wF(1,U))}; g.W.AX=function(U){this.dW=U}; g.W.XD=function(){var U=nv.prototype.XD.call(this);U.rbw=this.DD();U.rbe=+this.Uv;U.gbe=+this.ov;U.ackt=(this.dW-this.Y).toFixed();return U}; g.W.kz=function(){}; g.W.P9=function(){return NaN}; g.W.KM=function(){return this.Y+this.snapshot.delay*1E3};e0.prototype.Zr=function(U,Y){Y.getLength();switch(U){case 20:U=new f5(Y);U={Tr:MI(U,1),videoId:QF(U,2),itag:MI(U,3),lmt:MI(U,4),xtags:QF(U,5),uU:MI(U,6),Db:bs(U,8),Ob:MI(U,9),lHT:MI(U,10),startMs:MI(U,11),durationMs:MI(U,12),wb:MI(U,14),timeRange:ZA(U,15,cgE),w9:MI(U,16),Bk:MI(U,17),clipId:QF(U,1E3)};this.rQ(U);break;case 21:this.Se(Y,!1);break;case 22:this.p4(Y);break;case 31:U=gw(Y,sK3);this.Ew(U);break;case 52:U=gw(Y,OS9);this.fA(U);break;default:this.Ap(U,Y)}}; e0.prototype.rQ=function(){}; e0.prototype.Ap=function(){};g.w(B1,e0);g.W=B1.prototype; g.W.Ap=function(U,Y){Y.getLength();switch(U){case 35:this.Rm(Y);break;case 44:this.Wq(Y);break;case 43:this.mm(Y);break;case 53:this.OI(Y);break;case 55:U=new f5(Y);ZA(U,1,nBc);ZA(U,2,utl);break;case 56:this.xX();break;case 57:this.WI(Y);break;case 42:this.D7(Y);break;case 45:this.n4(Y);break;case 59:this.oG(Y);break;case 51:this.sV(Y);break;case 49:this.D3(Y);break;case 50:this.Pq(Y);break;case 47:this.AZ(Y);break;case 58:this.Vq(Y);break;case 61:this.vZ.xr.AX((0,g.y)());break;case 66:this.LR(Y); break;case 46:this.YX(Y);break;case 67:this.onSnackbarMessage(Y)}}; g.W.sV=function(U){U=new f5(U);U={rAn:mL(U,1,zC),kAW:mL(U,2,zC)};this.vZ.sV(U)}; g.W.oG=function(U){var Y=new f5(U);U=Ow(Y,1);var A=Ow(Y,2);Y=Ow(Y,3);this.vZ.oG(U,A,Y)}; g.W.n4=function(U){U=lB(new f5(U));this.vZ.n4(U)}; g.W.AZ=function(U){U=gw(U,SE9);this.vZ.AZ(U)}; g.W.D7=function(U){U=new f5(U);U={videoId:QF(U,1),formatId:ZA(U,2,zC),endTimeMs:MI(U,3),hYw:MI(U,4),mimeType:QF(U,5),u4:ZA(U,6,Blc),indexRange:ZA(U,7,Blc),By:ZA(U,8,XmY)};this.vZ.D7(U)}; g.W.WI=function(U){U=utl(new f5(U));this.vZ.WI(U)}; g.W.xX=function(){this.vZ.xX()}; g.W.Rm=function(U){U=f0v(new f5(U));this.vZ.Rm(U)}; g.W.OI=function(U){U=ZSV(new f5(U));this.vZ.OI(U)}; g.W.Wq=function(U){U=gBX(new f5(U));this.vZ.Wq(U)}; g.W.mm=function(U){U={redirectUrl:QF(new f5(U),1)};this.vZ.mm(U)}; g.W.Se=function(U){var Y=U.getUint8(0);if(U.getLength()!==1){U=U.split(1).AS;var A=this.T[Y]||null;A&&fN(this.vZ.Tl,Y,A,U)}}; g.W.p4=function(U){U=U.getUint8(0);var Y=this.T[U]||null;Y&&this.vZ.p4(U,Y)}; g.W.fA=function(U){this.vZ.fA(U)}; g.W.rQ=function(U){var Y=U.Tr,A=U.Db,c=U.uU,d=U.Bk,T=U.w9,E=U.Ob,L=U.startMs,r=U.durationMs,l=U.timeRange,P=U.wb,V=U.clipId,v=hM(U);U=p4q.has(DM[""+U.itag]);this.T[Y]=v;this.vZ.n0(v,U,{Tr:Y,Db:!!A,uU:c!=null?c:-1,Ob:E!=null?E:-1,startMs:L!=null?L:-1,durationMs:r!=null?r:-1,wb:P,Bk:d,w9:T,clipId:V,timeRange:l})}; g.W.D3=function(U){U={Io:MI(new f5(U),1)};this.vZ.D3(U)}; g.W.Pq=function(U){U={Io:MI(new f5(U),1)};this.vZ.Pq(U)}; g.W.Ew=function(U){this.vZ.Ew(U)}; g.W.Vq=function(U){U=wmX(new f5(U));this.vZ.Vq(U)}; g.W.LR=function(U){U={PJ:ZA(new f5(U),1,pmE)};this.vZ.LR(U)}; g.W.onSnackbarMessage=function(U){U=MI(new f5(U),1);this.vZ.onSnackbarMessage(U)}; g.W.YX=function(U){U={reloadPlaybackParams:ZA(new f5(U),1,W13)};this.vZ.YX(U)};g.w(XN,g.p);g.W=XN.prototype;g.W.V$=function(){return Array.from(this.zQ.keys())}; g.W.Wr=function(U){U=this.zQ.get(U);var Y=U.CV;U.gt+=Y.getLength();U.CV=new is;return Y}; g.W.oe=function(U){return this.zQ.get(U).oe}; g.W.FH=function(U){return this.zQ.get(U).FH}; g.W.n0=function(U,Y,A,c){this.zQ.get(U)||HIX(this,U,Y);Y=this.zQ.get(U);if(this.rW){U=WR8(this,U,A);if(c)for(var d=g.J(U),T=d.next();!T.done;T=d.next()){T=T.value;var E=c;T.Hw=E;T.startTime+=E;T.j+=E;T.J+=E}Gb3(this,A.Tr,Y,U)}else A.Db?Y.Dv=A.wb:Y.bu.push(A),Y.pE.push(A)}; g.W.Jj=function(U){var Y;return((Y=this.zQ.get(U))==null?void 0:Y.py)||[]}; g.W.yF=function(){for(var U=g.J(this.zQ.values()),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.jw&&(Y.ag&&Y.ag(),Y.jw=!1)}; g.W.p4=function(U,Y){this.logger.debug(function(){return"[onMediaEnd] formatId: "+Y}); var A=this.zQ.get(Y);if(kh){if(A&&!A.oe){if(A.qA.get(U))A.qA.get(U).ea=!0;else{var c;((c=this.vp)==null?0:c.KU)&&A.qA.set(U,{data:new is,RC:0,ea:!0})}A.FH=!0}}else A&&!A.FH&&(A.FH=!0)}; g.W.oi=function(U){if(kh){var Y=this.zQ.get(U);if(Y)for(var A=g.J(Y.qA),c=A.next();!c.done;c=A.next()){var d=g.J(c.value);c=d.next().value;d=d.next().value;var T=Y.uS.get(c);if(OP(T[0])){if(!d.ea)continue;var E=T,L=d.data;L.getLength();T=0;var r=[];E=g.J(E);for(var l=E.next();!l.done;l=E.next()){l=l.value;var P=l.W,V=FZ(L,T,P);T+=P;r.push(new zp(l,V))}Y.pZ.push.apply(Y.pZ,g.X(r))}else if(d.data.getLength()>0||!T[0].range&&d.ea)L=void 0,T=T[0],r=d.RC,E=d.data,T.range||(L=d.ea),l=E.getLength(),L=new zp(HwV(T, T.T+r,l,L),E),d.RC+=L.info.W,Y.pZ.push(L);Y.qA.get(c).data=new is;d.ea&&Y.qA.delete(c)}U=this.zQ.get(U);if(!U)return[];Y=U.pZ;U.pZ=[];A=g.J(Y);for(c=A.next();!c.done;c=A.next())U.gt+=c.value.info.W;return Y||[]}A=(Y=this.zQ.get(U))==null?void 0:Y.J_;if(!A)return[];this.fm(U,A);return A.oi()}; g.W.Ve=function(U){if(kh)return sB(this,U);var Y,A,c;return!!((A=(Y=this.zQ.get(U))==null?void 0:Y.J_)==null?0:(c=A.IG())==null?0:c.length)||sB(this,U)}; g.W.fm=function(U,Y){for(;sB(this,U);){var A=this.Wr(U);var c=U;c=this.zQ.get(c).oe&&!xh(this,c);rj(Y,A,c&&v54(this,U))}}; g.W.Tn=function(){g.p.prototype.Tn.call(this);for(var U=g.J(this.zQ.keys()),Y=U.next();!Y.done;Y=U.next())R6(this,Y.value);var A;if((A=this.vp)==null?0:A.sx)for(U=g.J(this.zQ.values()),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.qA.clear(),Y.uS.clear(),Y.pZ.length=0,Y.py.length=0,Y.pE.length=0,Y.bu.length=0;this.zQ.clear()}; var kh=!1;g.w(hR,g.p);g.W=hR.prototype;g.W.qN=function(){!this.Ky()&&this.xhr&&(this.fm(!1),GW(this.vZ,this))}; g.W.X5=function(){}; g.W.S9=function(){if(!this.Ky()&&this.xhr){var U=this.ZD();U===5?$h(this.GQ):this.l9(U);this.GQ.T.stop();var Y;(Y=this.Lj)==null||Y.stop()}}; g.W.ZD=function(){var U="";H1(this.GQ,this.xhr)&&(U=Sav(this.GQ,this.xhr));if(U)return this.info.Dm.zX(this.uf,U),3;this.fm(!0);if(v1(this.GQ,this.xhr.status,this.xhr.UK(),this.info.rK(),this.GM))return 5;if(this.gi)return 3;fLv(this.GQ,this.xhr.tS(),0,this.rK());this.policy.Me&&F9S(this.vZ);return 4}; g.W.fm=function(U){var Y=this.xhr;if((U||!H1(this.GQ,this.xhr))&&Y.RX()){U=Y.bE();var A=U.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+A}); this.j2.feed(U)}}; g.W.Zr=function(U,Y){this.xhr.Gb()&&U===21&&jvv(this);this.cX.Zr(U,Y)}; g.W.lO=function(U,Y,A,c){A||(this.xr.lO(c),this.policy.nD&&U===21&&jvv(this));if(U!==21)return!1;this.xr.Pw=!0;U=Y.getLength();A||(this.xV=Y.getUint8(0),Y=Y.split(1).AS);var d=this.policy.eP,T=this.cX.T[this.xV],E=this.rW.W.get(T);if(d&&E&&(d*=E.info.hs,U+A!==c&&U0){this.policy.DM&&this.GQ.T.stop();U=this.xr.Z1();Y=this.xr.DD();var A=NzX(this,U);if(!(Y>A.IQ||A.EP>0&&this.info.hd()>A.EP)){this.G2=(0,g.y)();var c;(c=this.Lj)==null||c.stop();this.policy.Me&&(c=this.vZ,U={tD:Math.round(Y*U/1E3),Ld:U},c.policy.Me&&(c.QJ=U,c.xf++));this.OA()}}}}; g.W.OA=function(){this.GQ.OA()}; g.W.Wq=function(U){this.vZ.Wq(U,this.wB())}; g.W.mm=function(U){this.gi=!0;this.info.Dm.zX(this.uf,U.redirectUrl)}; g.W.D3=function(U){this.xr instanceof tR&&this.xr.D3(U)}; g.W.Pq=function(U){this.xr instanceof tR&&this.xr.Pq(U)}; g.W.D7=function(U){var Y=U.formatId,A=hM({itag:Y.itag,lmt:Y.lmt,xtags:Y.xtags}),c,d,T=new MZ(((c=U.u4)==null?void 0:c.first)||0,((d=U.u4)==null?void 0:d.cY)||0),E,L;c=new MZ(((E=U.indexRange)==null?void 0:E.first)||0,((L=U.indexRange)==null?void 0:L.cY)||0);if(!this.rW.W.get(A)){A=U.By||{};if(this.policy.xB){var r,l;U=(r=U.mimeType)!=null?r:"";r=(l=Y.itag)!=null?l:0;l=DM[""+r];A.mimeType=l!=="9"&&l!=="9h"?U:'video/webm; codecs="'+["vp09",l==="9h"?"02":"00","51",l==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else A.mimeType=U.mimeType;A.itag=Y.itag;A.lastModified=""+(Y.lmt||0);A.xtags=Y.xtags;Y=this.rW;l=BM("");r=tw(A,null);wO(Y,new HM(l,r,T,c))}}; g.W.n4=function(U){this.vZ.n4(U)}; g.W.onSnackbarMessage=function(U){if(this.policy.Qg)this.vZ.onSnackbarMessage(U)}; g.W.Ew=function(U){this.ib=U;this.Xi=(0,g.y)();this.vZ.Ew(U)}; g.W.oG=function(U,Y,A){this.vZ.oG(U,Y,A)}; g.W.WI=function(U){U.scope===2&&(this.lx=U);this.vZ.WI(U)}; g.W.xX=function(){this.f8=!0;this.vZ.xX()}; g.W.sV=function(U){this.policy.VK&&this.vZ.sV(U)}; g.W.AZ=function(U){this.vZ.AZ(U,this.wB())}; g.W.Vq=function(U){U.FD===3&&(this.GM=!0);this.vZ.Vq(U)}; g.W.LR=function(U){this.vZ.LR(U)}; g.W.YX=function(U){this.vZ.YX(U)}; g.W.canRetry=function(){this.Ky();return this.GQ.canRetry(!1)}; g.W.dispose=function(){if(!this.Ky()){g.p.prototype.dispose.call(this);this.GQ.dispose();var U;(U=this.Lj)==null||U.dispose();this.l9(-1);this.ID()}}; g.W.l9=function(U){this.state=U;GW(this.vZ,this)}; g.W.rK=function(){return this.info.rK()}; g.W.SQ=function(){return this.f8}; g.W.Fu=function(){return this.lx}; g.W.n0=function(U,Y,A){A.clipId&&(this.clipId=A.clipId);this.policy.j&&!Y&&(this.mW=A.Ob,this.sA=A.startMs);var c=0;this.policy.IF&&this.uv&&this.clipId&&(c=U1(this.uv,this.clipId)/1E3);this.Tl.n0(U,Y,A,c);this.policy.jL&&this.ib&&this.xr instanceof uC&&(c=this.ib.n6,this.xr.n0(A.durationMs/1E3,Y,c>0&&A.Ob+1>=c));this.Tl.zQ.get(U).JM=!0}; g.W.p4=function(U,Y){this.Tl.p4(U,Y)}; g.W.fA=function(U){this.requestIdentifier=U}; g.W.oi=function(U){return this.Tl.oi(U)}; g.W.Jj=function(U){return this.Tl.Jj(U)}; g.W.Ve=function(U){return this.Tl.Ve(U)}; g.W.V$=function(){return this.Tl.V$()}; g.W.DH=function(){return 1}; g.W.wB=function(){return this.xr.requestNumber}; g.W.u_=function(){return this.requestIdentifier}; g.W.GN=function(){return this.uf.GN()}; g.W.fC=function(){this.ID()}; g.W.ID=function(){this.xr.deactivate();var U;(U=this.xhr)==null||U.abort()}; g.W.isComplete=function(){return this.state>=3}; g.W.yR=function(){return this.state===3}; g.W.nX=function(){return this.state===5}; g.W.gT=function(){return this.state===4}; g.W.l_=function(){return this.isComplete()}; g.W.K0=function(){return this.state>=1}; g.W.uO=function(){return this.policy.qz?this.GQ.uO():0}; g.W.b_=function(){this.policy.qz&&GW(this.vZ,this)}; g.W.kF=function(){return cGv(this.info)}; g.W.C3=function(){return this.GQ.C3()}; g.W.QK=function(){var U=MB9(this.GQ);Object.assign(U,TAc(this.info));U.req="sabr";U.rn=this.wB();var Y;if((Y=this.xhr)==null?0:Y.status)U.rc=this.policy.JS?this.xhr.status:this.xhr.status.toString();var A;(Y=(A=this.xhr)==null?void 0:A.uB())&&(U.msg=Y);this.G2&&(A=NzX(this,this.G2-this.xr.Si()),U.letm=A.zrT,U.mrbps=A.IQ,U.mram=A.EP);return U}; g.W.gm=function(){return{mW:this.mW,sA:this.sA,isDecorated:this.info.isDecorated()}};txX.prototype.tick=function(U,Y){this.ticks[U]=Y?window.performance.timing.navigationStart+Y:(0,g.y)()};g.w(MM,g.l6);g.W=MM.prototype; g.W.VD=function(U,Y,A,c){if(this.policy.bH&&this.policy.j){var d=U.l1||null;d?(pHX(this,U.Js,m5(this,U.startTime,U.Js),{l1:d,Js:U.Js,Od:!!Y,pV:A},this.W),c&&this.W&&this.W.C0(U.Js,U.startTime,this.T,(Y==null?void 0:Y.Y)||[],(Y==null?void 0:Y.T)||[],(Y==null?void 0:Y.W)||[],A,(Y==null?void 0:Y.Ue)||0,(Y==null?void 0:Y.j)||void 0)):this.T===1&&pN(this,5,"noad")}else{var T=!1;this.policy.Zf&&(T=A?this.jX===U.Js:this.ov===U.Js);if(this.W&&c&&!T){c=[];T=[];var E=[],L=void 0,r=0;Y&&(c=Y.Y,T=Y.T,E=Y.W,L= Y.j,r=Y.Ue,this.wW("sdai",{sq:U.Js,ssvicpns:c.join("."),ssvid:T.join(".")}));this.policy.Zf&&(A?this.jX=U.Js:this.ov=U.Js);this.W.C0(U.Js,U.startTime,this.T,c,T,E,A,r,L)}this.policy.Zf?A&&(this.T===1&&pN(this,5,"noad"),U.Js!==((d=this.Y)==null?void 0:d.Js)&&(MxX(this,U,Y,A),isNaN(U.startTime)||QU(this,U.Js,m5(this,U.startTime,U.Js),!!Y,this.W))):A&&MxX(this,U,Y)}}; g.W.G7=function(U,Y,A){var c=this.videoTrack.Y.index.Ea()<=Y;this.Y={l1:U,Js:Y,Od:A};c&&bZ(this,U,Y)}; g.W.TM=function(){this.W&&this.W.TM()}; g.W.wW=function(U,Y,A){(U!=="sdai"||this.policy.PN||(A===void 0?0:A))&&this.loader.wW(U,Y)}; g.W.YU=function(U,Y){var A=this.videoTrack.Y.index.Qz(U);if(A>=0){var c;var d=((c=Y.BQ.e0(A,2))==null?void 0:c.pD)||"";if(this.policy.j||d)return Y.Ki(U,A),Zy(this.loader,U,U,A),this.wW("sdai",{cmskpad:1,t:U.toFixed(3),sq:A}),!0}this.wW("sdai",{cmskpad:0,t:U.toFixed(3),sq:A});return!1};g.w(Dy,g.p);Dy.prototype.Zb=function(U,Y,A){A=A===void 0?{}:A;this.policy.cg=Z7(U,A,this.j,Y===void 0?!1:Y)};CN.prototype.ED=function(U){var Y=this;if(this.policy.AM){var A=new Set(U);A.size===this.QJ.size&&[].concat(g.X(A)).every(function(c){return Y.QJ.has(c)})||(this.loader.wW("lwnmow",{itagDenylist:[].concat(g.X(U)).join(",")}),this.loader.G$(!!A.size),this.X=-1,this.QJ=A,Ub(this,this.Y),this.kE=!0)}}; CN.prototype.Zb=function(U,Y,A){A=A===void 0?{}:A;var c=this.policy.cg;this.K.Zb(U,Y===void 0?!1:Y,A);if(c!==this.policy.cg){Ub(this,this.Y);YL(this);var d,T;c>this.policy.cg&&((d=this.W)==null?0:Cd(d.info))&&((T=this.nextVideo)==null||!Cd(T.info))&&(this.Pw=!0)}};TZ.prototype.dB=function(U){this.timestampOffset=U;this.flush()}; TZ.prototype.flush=function(){if(this.Y.pos>0){var U={a:this.track.SI(),u:this.Y.jS(),pd:Math.round(this.j),ad:Math.round(this.W)},Y=this.T;if(Y){var A=Y.Y.info;U.itag=A.itag;A.Y&&(U.xtags=A.Y);U.sq=Y.Js;U.st=Y.startTime;U.sd=Y.duration;this.track.policy.AY&&(U.si=Y.jq());Y.K&&(U.esl=Y.T+Y.W);Y.lN()&&(U.eos=1)}isNaN(this.timestampOffset)||(U.to=this.timestampOffset);var c;if(Y=(c=this.track.yd)==null?void 0:c.i9({})){for(var d in Y)this.J[d]!==Y[d]&&(U["sb_"+d]=Y[d]);this.J=Y}this.track.wW("sbu", U);this.Y.reset();this.buffered=[];this.K=this.W=this.j=0;this.timestampOffset=this.T=void 0}};oS.prototype.dispose=function(){this.Hw=!0}; oS.prototype.Ky=function(){return this.Hw}; g.w(VS,Error);Hw.prototype.skip=function(U){this.offset+=U}; Hw.prototype.bQ=function(){return this.offset};g.W=BOX.prototype;g.W.J9=function(){return this.T}; g.W.rB=function(){return this.T.length?this.T[this.T.length-1]:null}; g.W.LF=function(){this.T=[];i9(this);wZ(this)}; g.W.Wr=function(U){this.yJ=this.T.shift().info;U.info.equals(this.yJ)}; g.W.Jj=function(){return g.mk(this.T,function(U){return U.info})}; g.W.SI=function(){return!!this.J.info.audio}; g.W.getDuration=function(){return this.J.index.MO()};g.w(Sm,UB);g.W=Sm.prototype;g.W.onStateChange=function(){this.Ky()&&(a6(this.Tl,this.formatId),this.Y.dispose())}; g.W.QK=function(){var U=$Zv(this.Tl,this.formatId),Y;var A=((Y=this.Tl.zQ.get(this.formatId))==null?void 0:Y.bytesReceived)||0;var c;Y=((c=this.Tl.zQ.get(this.formatId))==null?void 0:c.gt)||0;return{expected:U,received:A,bytesShifted:Y,sliceLength:xh(this.Tl,this.formatId),isAnyMediaEndReceived:this.Tl.FH(this.formatId)}}; g.W.Pn=function(){return 0}; g.W.kO=function(){return!0}; g.W.oi=function(){return this.Tl.oi(this.formatId)}; g.W.IG=function(){return[]}; g.W.Ve=function(){return this.Tl.Ve(this.formatId)}; g.W.C3=function(){return this.lastError}; g.W.uO=function(){return 0};g.w(jl,g.p);g.W=jl.prototype;g.W.SI=function(){return!!this.Y.info.audio}; g.W.rB=function(){return this.j.rB()}; g.W.Wr=function(U){this.j.Wr(U);var Y;(Y=this.G)!=null&&(Y.K.add(U.info.Js),Y.Y=OJl(Y,Y.BZ,Y.nm,U,Y.Y),Y.W=U,Y.J=(0,g.y)());this.hs=Math.max(this.hs,U.info.Y.info.hs||0)}; g.W.getDuration=function(){return this.Y.index.MO()}; g.W.LF=function(){bC(this);this.j.LF()}; g.W.T1=function(){return this.j}; g.W.isRequestPending=function(U){return this.W.length?U===this.W[this.W.length-1].info.py[0].Js:!1}; g.W.dB=function(U){var Y;(Y=this.G)==null||Y.dB(U);var A;(A=this.X)==null||A.dB(U)}; g.W.wW=function(U,Y){this.loader.wW(U,Y)}; g.W.ZM=function(){return this.loader.ZM()}; g.W.dispose=function(){var U;(U=this.X)==null||U.flush();g.p.prototype.dispose.call(this)};g.w(MS,g.p);MS.prototype.W=function(){this.T++>15||(this.Y=!this.Y,new ewY(this.loader,this.policy,this.I5,this.Dm,this.Y),this.delay.start())}; g.W=ewY.prototype;g.W.X5=function(){}; g.W.qN=function(){}; g.W.S9=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.tS()===this.size)this.loader.wW("rqs",this.getInfo());else{var U="net.connect";this.xhr.status>200?U="net.badstatus":this.xhr.vx()&&(U="net.closed");this.onError(U)}}; g.W.onError=function(U){var Y=this;this.loader.handleError(U,this.getInfo());Bt("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(A){Y.loader.wW("pathprobe",A)},function(A){Y.loader.handleError(A.errorCode,A.details)})}; g.W.getInfo=function(){var U=this.timing.XD();U.shost=fn(this.location.Pg);U.pb=this.size;return U};g.w(b9,g.p); b9.prototype.G=function(U,Y){if(U.Z){this.rW.isLive?(U=this.rW.u1&&this.rW.j?U.Y.rb(this.rW.u1,!1):U.Y.Hx(Infinity),U.rY=this.rY):U=U.Y.rb(0,!1);if(this.Pw){var A=this.Pw;U.rY===0&&(U.K=A.Z)}else U.K=this.X;return U}A=U.T;if(!A.Y.kH())return A.Y.Lm()?(U=RV(this.K,U.Y.info.hs,Y.Y.info.hs,0),U=g.M(A.Y.jH(A,U))):U=g.M(A.Y.Ns(A)),U;var c=A.J-this.loader.getCurrentTime(),d=!A.range||A.W===0&&A.T===0?0:A.range.length-(A.T+A.W),T=A.Y;this.sP(U,c)&&d===0&&(this.rW.isManifestless?T=U.Y:(T=A.startTime+HqE, A.W&&(T+=A.duration),Zi(U,T),A=U.T,T=A.Y));T.Lm()?(d=this.W,Y=RV(this.K,T.info.hs,Y.Y.info.hs,c,d.j.length>0&&d.Z===0&&this.loader.GB),c=sb(U),U=g.M(A.Y.jH(A,Y)),(Y=U.W)&&U.py.length>1&&(c||U.Dm.W||U.py[0].Y!==A.Y?U=g.M(A.Y.jH(A,U.py[0].W)):(c=U.py[U.py.length-1],T=c.W/Y,!c.K&&T<.4&&(U=g.M(A.Y.jH(A,Y-c.W)))))):(A.Js<0&&(Y=nI(A),Y.pr=""+U.W.length,this.loader.isSeeking()&&(Y.sk="1"),Y.snss=A.Z,this.loader.wW("nosq",Y)),U=g.M(T.Ns(A)));if(this.policy.jX)for(A=g.J(U.py),Y=A.next();!Y.done;Y=A.next())Y.value.type= 6;return U}; b9.prototype.sP=function(U,Y){if(!sb(U)||!U.Y.kH())return!1;var A=this.W.kE||zwv(U)||Y<=this.policy.jP||this.W.Pw;this.logger.debug(function(){return"ready to adapt: "+A+", upgrade pending: "+zwv(U)+", health: "+Y}); return A}; b9.prototype.Tn=function(){g.p.prototype.Tn.call(this)}; var HqE=2/24;g.w(Ob,g.p);Ob.prototype.aQ=function(U,Y,A){var c;var d=((c=this.T)==null?void 0:c.reason)==="m"?"m":this.T&&yvX(this,this.T)?this.T.reason:"a";this.loader.aQ(new nN(U,d,A));QS(this.loader,Y,U,!0)}; Ob.prototype.zH=function(U,Y){for(var A=g.J(this.jX),c=A.next();!c.done;c=A.next())if(c=c.value,c.id===U)return this.vp.uL||(this.W=[c]),this.K=this.rW.Y[U],JR(this.vp)&&(this.Pw=!0),U=new nN(this.K,Y?"t":"m"),Y&&(this.Z=!0),U;this.W=[];return null}; Ob.prototype.Zb=function(U,Y,A){A=A===void 0?{}:A;this.Y.Zb(U,Y===void 0?!1:Y,A)};yS.prototype.setData=function(U,Y,A,c){var d=this;c=c===void 0?{}:c;if(A==null?0:A.AP)this.P3=FR4(this,A,c),U.bz=this.Dm.bz();if(this.rK())return!0;this.data=U;this.Y=YJV(U,Y,function(T,E){var L;(L=d.vZ)==null||L.XT(T,E)},A==null?void 0:A.T); if(!this.Y)return!1;this.T=g.C5(this.Y,jKc);return!0}; yS.prototype.rK=function(){return this.requestType===1}; yS.prototype.hd=function(){var U;return((U=this.vZ)==null?void 0:U.hd())||0}; yS.prototype.isDecorated=function(){var U;return!((U=this.data)==null||!U.iP)};nr.prototype.encrypt=function(U){this.vu.exports.AES128CTRCipher_encrypt(this.cipher,U.byteOffset,U.byteLength);return U}; nr.prototype.Ky=function(){return this.cipher===0}; nr.prototype.dispose=function(){this.vu.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};DC.prototype.encrypt=function(U,Y){return WZ(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:Y},this.key,U).catch(function(A){return Promise.reject(A.name+": "+A.message)}).then(function(A){return new Uint8Array(A)}))}; DC.prototype.Ky=function(){return this.Y}; DC.prototype.dispose=function(){this.Y=!0}; IS.prototype.encrypt=function(U,Y){return WZ(this.T(U,Y))}; IS.prototype.T=function(U,Y){Fn(this.W,Y);return this.W.encrypt(U)}; IS.prototype.Ky=function(){return this.Y}; IS.prototype.dispose=function(){this.Y=!0}; u9.prototype.encrypt=function(U,Y){return WZ(this.T(U,Y))}; u9.prototype.T=function(U,Y){Y=this.vu.lD(Y);var A=this.Y;A.vu.exports.AES128CTRCipher_setCounter(A.cipher,Y.byteOffset);this.vu.free(Y.byteOffset);Y=this.vu.lD(U);this.Y.encrypt(Y!=null?Y:U);return Y?this.vu.KW(Y):U}; u9.prototype.Ky=function(){return this.Y.Ky()}; u9.prototype.dispose=function(){this.Y.dispose()}; Wg.p7(DC,{encrypt:oQl("oan2")});Wg.p7(IS,{encrypt:oQl("oap")});Wg.p7(u9,{encrypt:oQl("oalw")});Kr.prototype.encrypt=function(U,Y){var A=this,c=ic("");U.length<=this.CK&&this.Y&&!this.K&&(c=NN(c,function(){return A.Y?A.Y.encrypt(U,Y):ic("wasm unavailable")})); U.length<=this.jy&&(this.Y&&this.K&&(c=NN(c,function(){return A.Y?A.Y.encrypt(U,Y):ic("wasm unavailable")})),c=NN(c,function(){return rGl(A,U,Y)})); return NN(NN(c,function(){return leX(A,U,Y)}),function(){return rGl(A,U,Y)})}; Kr.prototype.T=function(U,Y){if(this.Y)return this.Y.T(U,Y);this.W||(this.W=new IS(this.key));return this.W.T(U,Y)}; Kr.prototype.Ky=function(){return this.J}; Kr.prototype.dispose=function(){this.J=!0;var U;(U=this.j)==null||jc(U,g.P7);g.P7(this.Y);g.P7(this.W)};qS.prototype.encrypt=function(U){(0,g.y)();return(new g.BR(this.Y.Y)).encrypt(U,this.iv)}; qS.prototype.decrypt=function(U,Y){(0,g.y)();return(new g.BR(this.Y.Y)).decrypt(U,Y)}; qS.prototype.Ky=function(){return this.W}; qS.prototype.dispose=function(){this.W=!0;g.P7(this.T)};g.w(Cr,g.p);Cr.prototype.W=function(U,Y){if(Y){Y=Y instanceof g.xN?Y:UV(this,Y);var A;((A=this.Y.get(U))==null?void 0:fn(A.location))!==fn(Y)&&this.Y.set(U,new JG8(Y,U))}else this.Y.delete(U)}; Cr.prototype.load=function(){var U=this,Y,A,c,d,T,E,L,r,l,P;return g.S(function(V){switch(V.T){case 1:Y=U.Y.get(0);g.J3(V,2);var v;if(v=Y&&!U.T)v=fn(Y.location),v=U.T===VU(v);if(v){V.uY(4);break}return g.x(V,wbX(U,U.T?2:0),5);case 5:if(A=V.Y)U.W(0,A),SB(A)&&U.W(1,Mc(A));case 4:g.t3(V,3);break;case 2:c=g.XE(V);g.Md(c);if(!U.T){V.uY(3);break}U.T=!1;return g.x(V,U.load(),7);case 7:return V.return();case 3:if(!U.MI.experiments.lY("html5_onesie_probe_ec_hosts")){V.uY(0);break}g.J3(V,9);d=U;T=d.W;E=3;return g.x(V, wbX(U,1),11);case 11:return T.call(d,E,V.Y),L=U,r=L.W,l=4,g.x(V,wbX(U,2),12);case 12:r.call(L,l,V.Y);g.t3(V,0);break;case 9:P=g.XE(V),g.Md(P),g.i8(V)}})}; Cr.prototype.G=function(){var U=this,Y,A;return g.S(function(c){g.uQ(U.Z);Y=g.H_(U.MI.experiments,"html5_onesie_prewarm_max_lact_ms");if(kS()>=Y)return c.return();(A=U.Y.get(0))&&Wp8(U,A);g.i8(c)})}; var HDE={i2T:0,GIv:1,W3w:2,y1T:3,hPJ:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};NAl.prototype.decrypt=function(U){var Y=this,A,c,d,T,E,L;return g.S(function(r){switch(r.T){case 1:if(FpE(Y))return r.return();Y.T=!0;Y.uN.pU("omd_s");A=new Uint8Array(16);t2()?c=new g.ew(U):d=new g.BR(U);case 2:if(!Y.Y.length||!Y.Y[0].isEncrypted){r.uY(4);break}T=Y.Y.shift();if(!c){E=d.decrypt(T.buffer.fJ(),A);r.uY(5);break}return g.x(r,c.decrypt(T.buffer.fJ(),A),6);case 6:E=r.Y;case 5:L=E;j$8(A);var l=Y.uN,P=T.videoId,V=T.Tr,v=T.formatId,H=new is([L]),G;(G=A0(l.Ys,P))==null||fN(G,V,v,H);r.uY(2); break;case 4:Y.uN.pU("omd_c"),cl(Y),Y.T=!1,Y.uN.nW(),g.i8(r)}})}; NAl.prototype.enqueue=function(U,Y,A,c,d){this.Y.push({videoId:U,Tr:Y,formatId:A,buffer:c,isEncrypted:d});this.T||cl(this)};var feV=!!Uint8Array.prototype.copyWithin,dN=[],tKv=[],XbE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],EV=[],TW=[],oF=[],emX=[];L4.prototype.vY=function(U){return g.s$l(new g.BAS(U))}; L4.prototype.sC=function(U){function Y(E){if(!E.done)return T.append(E.value),d.read().then(function(L){return Y(L)})} if(!("DecompressionStream"in window))return ic("native decompression unavailable");var A=new DecompressionStream("gzip"),c=A.writable.getWriter();c.write(U).then(function(){return c.close()}); var d=A.readable.getReader(),T=new is([]);return NN(jc(jc(WZ(d.read()),Y),function(){return T.fJ()}),function(E){return ic(E.message)})}; L4.prototype.j_=function(U,Y){var A=void 0,c=Y.lD(U);c&&(A=c.byteOffset,U=c);c=Y.exports.getInflatedSize(U.byteOffset,U.length);if(c===0)return ic("bad compressed input");var d=Y.malloc(c);if(Y.exports.inflateGzip(U.byteOffset,U.length,d))return Y.free(d),ic("inflateGzip failed");A&&Y.free(A);return WZ(new Uint8Array(Y.exports.memory.buffer,d,c))}; Wg.p7(L4,{vY:function(U){return{profile:"gzjb",t1:Math.ceil(U.byteLength/16)}}, sC:function(U){return{profile:"gznb",t1:Math.ceil(U.byteLength/16)}}, j_:function(U){return{profile:"gzwb",t1:Math.ceil(U.byteLength/16)}}});g.w(Q$l,e0);g.W=Q$l.prototype;g.W.nW=function(){this.Ys.nW()}; g.W.Ap=function(U,Y){switch(U){case 10:var A=gw(Y,a09);U=A.ksI;var c=!1;switch(U){case 0:this.W=!A.aL.Svw;this.iv=A.aL.iv;break;case 2:break;case 23:var d=this.Ys;A=A.Y3v;d.pU("omp_r");A.videoId&&(d.M6=A.videoId);d.M6!==d.videoData.videoId&&(d.videoData.VMY=d.M6,d.wW("ompp","vid."+d.M6));d.Na=!0;break;case 24:A=this.Ys;A.pU("omp_c");A.Na=!1;A.pj=!1;var T=(d=A.Ig)==null?void 0:d.get(A.M6);A.notifySubscribers(A.M6);T!=null&&(T.Y=!0);Pl(A);break;default:c=!0}this.Ys.Nk&&this.Ys.wW("ombup","id.10;pt."+ U+";len."+Y.getLength()+(c?";ignored.1":""));this.j=U;break;case 11:mJV(this,Y);break;case 12:this.Se(Y,!0);break;case 37:Y=gw(Y,xrY);(Y.Hj||Y.To)&&Y.videoId&&this.Ys.Mg.set(Y.videoId,Y);break;case 60:this.UI(Y);break;case 47:this.S("html5_server_playback_start_policy")&&(Y=gw(Y,SE9),this.Ys.playbackStartPolicy=Y);break;case 35:this.Rm(Y);break;case 45:this.n4(Y);break;case 66:this.LR(Y);break;default:this.Ys.Nk&&this.Ys.wW("ombup","id."+U+";len."+Y.getLength()+";ignored.1")}}; g.W.Ew=function(U){this.Ys.Ew(U)}; g.W.UI=function(U){U=gw(U,rW);this.Ys.UI(U)}; g.W.n4=function(U){U=gw(U,lB);this.Ys.n4(U)}; g.W.rQ=function(U){var Y=U.Tr,A=U.Db,c=U.uU,d=U.w9,T=U.Ob,E=U.startMs,L=U.durationMs,r=U.timeRange,l=U.wb,P=hM(U),V=p4q.has(DM[""+U.itag]);A&&this.pU(V?"oais_r":"ovis_r");var v=this.Y[P]!==void 0;this.Ys.Nk&&this.Ys.wW("ombup","id.20;hid."+Y+";fid."+P);var H=U.videoId||"";this.T[Y]=P;this.K[Y]=H;v||(this.Y[P]={videoId:H,nM:!1,SI:V,headers:[]});this.Y[P].headers.push(U);this.Ys.n0(H,P,V,{Tr:Y,Db:!!A,uU:c!=null?c:-1,Ob:T!=null?T:-1,startMs:E!=null?E:-1,durationMs:L!=null?L:-1,wb:l!=null?l:0,w9:d,timeRange:r})}; g.W.Se=function(U,Y){var A=U.getUint8(0);this.Ys.Nk&&this.Ys.wW("ombup","id."+(Y?12:21)+";len."+U.getLength()+";hid."+A);if(U.getLength()!==1){U=U.split(1).AS;var c=this.T[A]||null,d=this.K[A]||"";c&&(this.t_(this.Y[c].SI?"oafs_r":"ovfs_r"),this.queue.enqueue(d,A,c,U,Y))}}; g.W.p4=function(U){var Y=U.getUint8(0);this.Ys.Nk&&this.Ys.wW("ombup","id.22;len."+U.getLength()+";hid."+Y);U=this.T[Y]||null;var A=this.K[Y]||"";if(U)if(this.S("html5_use_ump_request_slicer")){var c=this.queue;c.Y.push({videoId:A,Tr:Y,formatId:U,isEncrypted:!1,fb:!0});c.T||cl(c)}else this.Ys.p4(A,Y,U)}; g.W.fA=function(U){this.Ys.fA(U)}; g.W.Xh=function(U,Y){var A=this,c,d,T,E,L,r,l,P,V,v;return g.S(function(H){switch(H.T){case 1:A.Ys.Xh();c=U.fJ();if(!Y){T=c;H.uY(2);break}return g.x(H,YSV(A.Ys,c,A.iv),3);case 3:T=H.Y;case 2:d=T;if(!A.Ys.enableCompression){H.uY(4);break}L=(E=performance)==null?void 0:E.now();return g.x(H,hmX(d),5);case 5:d=H.Y,A.Ys.wW("decompression",{ds:"DecompressionStream"in window,rt:((r=performance)==null?NaN:r.now())-L});case 4:try{l=gw(d,GfS)}catch(G){return P=G instanceof Error?{name:G.name,message:G.message}: {},P.webcrypto=""+ +!!t2(),P.enc=""+ +A.W,V=new a9("onesie.response.parse",P),H.return(Promise.reject(V))}pbv(l);v=g.kv(l.body);return H.return(v)}})}; g.W.Rm=function(U){this.S("html5_consume_onesie_next_request_policy_for_sabr")&&(U=gw(U,f0v),this.Ys.Rm(U))}; g.W.LR=function(U){U={PJ:ZA(new f5(U),1,pmE)};this.Ys.LR(U)}; g.W.pU=function(U){this.Ys.pU(U)}; g.W.t_=function(U){return this.Ys.t_(U)}; g.W.S=function(U){return this.Ys.S(U)};g.w(lG,g.p);g.W=lG.prototype;g.W.V$=function(U){var Y,A;return((A=(Y=this.Ig)==null?void 0:Y.get(U))==null?void 0:A.V$())||[]}; g.W.Ve=function(U,Y){var A;return!((A=A0(this,Y))==null||!A.Ve(U))}; g.W.oi=function(U,Y){var A;return((A=A0(this,Y))==null?void 0:A.oi(U))||[]}; g.W.Jj=function(U,Y){var A;return((A=A0(this,Y))==null?void 0:A.Jj(U))||[]}; g.W.l9=function(U){this.state=U;this.notifySubscribers()}; g.W.rK=function(){return!1}; g.W.SQ=function(){return!1}; g.W.Fu=function(){}; g.W.pU=function(U){this.iY.pU(U)}; g.W.t_=function(U){return this.iY.t_(U)}; g.W.lO=function(U,Y,A,c){A||this.xr.lO(c);return!1}; g.W.Zr=function(U,Y){this.uN.Zr(U,Y)}; g.W.sI=function(){this.pU("orfb");this.B9=!0;if(AiX(this)&&this.xhr){var U={rc:this.xhr.status,lb:this.xhr.tS(),rt:(1E3*oN4(this.xr)).toFixed(),shost:g.tD(this.a_),trigger:"o1"};this.wW("pathprobe",R9(U))}}; g.W.Xh=function(){this.pU("opr_r");this.h9=!0}; g.W.n0=function(U,Y,A,c){if(this.Ig){if(!this.Ig.has(U)){var d=new XN(this);this.Ig.set(U,d);g.Z(this,d)}var T;(T=this.Ig.get(U))==null||T.n0(Y,A,c);Pl(this);A||(this.mW=c.Ob,this.sA=c.startMs)}else Pl(this)}; g.W.Ew=function(U){this.Cx=U;U.h5!=null&&this.iY.eK(U.h5)}; g.W.UI=function(U){this.W4=U}; g.W.Rm=function(U){U.videoId&&this.zj.set(U.videoId,U)}; g.W.nW=function(){if(this.Ig)for(var U=g.J(this.Ig.keys()),Y=U.next();!Y.done;Y=U.next()){var A=void 0;(A=this.Ig.get(Y.value))==null||A.yF()}}; g.W.n4=function(U){this.d7=U}; g.W.LR=function(U){if(U==null?0:U.PJ)if(U=U.PJ.XJ){U=g.J(U);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.videoId&&this.td.set(Y.videoId,Y)}}; g.W.wW=function(U,Y,A){this.iY.wW(U,Y,A===void 0?!1:A)}; g.W.p4=function(U,Y,A){var c;(c=A0(this,U))==null||c.p4(Y,A)}; g.W.fA=function(U){this.Id.set(U.videoId,U)}; g.W.fetch=function(){var U=this,Y,A,c,d,T,E,L,r,l,P,V,v,H,G,F,N,e,B,f,h,Q;return g.S(function(K){switch(K.T){case 1:U.logger.debug("Onesie fetch started.");U.fK?U.O6.start():U.ud.start();U.pU("or_i");Y=U.MI.experiments.lY("html5_onesie_verbose_timing");A={};c=(0,g.y)();d=function(D){Y&&(A[D]=(0,g.y)()-c)}; d("loc_s");if(T=yGc(U.videoData,U.tK)){K.uY(2);break}d("loc_async");E=g.H_(U.MI.experiments,"html5_onesie_redirector_timeout_ms");return g.x(K,nQ9(U.videoData,U.tK,E),3);case 3:T=K.Y;case 2:if(!T)return U.logger.info("Onesie URL creation failed."),L={url:"0"},r=new a9("onesie.unavailable.hotconfig",L),U.x5(r),K.return(U.If);U.P3=fn(T);d("loc_e");l=g.o$(U.MI,g.Za(U.videoData));P=!!l.Y;if(!P){V=l.getValue();K.uY(4);break}return g.x(K,l.Y,5);case 5:V=K.Y;case 4:v=V;U.S("html5_log_onesie_empty_oauth")&& !v&&U.wW("no_token",{async:P});d("oauth");H=Ie9(U.playerRequest,U.MI,U.videoData,v,VU(U.P3));g.J3(K,6);if(!Um8(U,H)){d("or_s_sync");U.oz=Kp3(H,U.lh,U.MI,U.iY,U.YV.onesieUstreamerConfig,(G=U.videoData.qq)==null?void 0:G.q0);K.uY(8);break}d("or_s_async");return g.x(K,CN8(H,U.lh,U.MI,U.iY,U.YV.onesieUstreamerConfig,(F=U.videoData.qq)==null?void 0:F.q0),9);case 9:U.oz=K.Y;case 8:g.t3(K,7);break;case 6:return N=g.XE(K),U.logger.info("Failed to create OnesieRequestProto."),U.x5(N),K.return(U.If);case 7:return d("or_e"), Y&&U.wW("oreqvt",A),U.enableCompression=U.oz.wy.I7,U.pU("osor"),e=Jv3(),B=g.C5(U.oz,CT9),f={method:"POST",body:B,headers:{"Content-Type":"text/plain",Referer:location.origin}},h=U.S("html5_onesie_media_capabilities"),DJ9(T,U.videoData,dmE(U),h),U.logger.debug("Starting Onesie network request."),U.Nk&&U.wW("ombrs","1"),Q=U.iY.L().schedule,U.xr=new uC(U,{I5:Q,J3:U.Nk,xp:function(D,c3){U.iY.mL(D,c3)}, bP:!0}),T.set("rn",""+U.xr.requestNumber),U.a_=T.GN(),IV(U.xr,U.a_),U.pU("or_p"),U.xhr=EB(new tM(T),e,U.xr,dI,f),U.cO.start(),K.return(U.If)}})}; g.W.DH=function(){return 2}; g.W.X5=function(){this.pU("orh_r")}; g.W.qN=function(){!this.B9&&this.xhr.tS()&&this.sI();if(this.Rw&&!this.fK){var U;(U=this.xI)==null||U.start()}this.fm()}; g.W.S9=function(U){U=U===void 0?!1:U;this.logger.debug("onXhrDone");this.fm();if(!(this.Ky()||this.state>=4)){var Y=rN(this),A=this.xhr;Y.rc=A.status;U&&(Y.ab=!0);if(A.uB()){var c="onesie.net";Y.msg=A.uB()}else A.status>=400?c="onesie.net.badstatus":A.UK()?this.h9||(c="onesie.response.noplayerresponse"):c=A.status===204?"onesie.net.nocontent":"onesie.net.connect";c?this.x5(new a9(c,Y)):(this.pU("or_fs"),this.xr.hx((0,g.y)(),A.tS(),0),this.l9(4),this.Nk&&this.wW("rqs",Y));this.Nk&&this.wW("ombre", "ok."+ +!c);this.pj=!1;Pl(this);ZDv(this.uN);if(!this.fK){this.ud.stop();var d;(d=this.xI)==null||d.stop()}var T;if(U=(T=this.tK)==null?void 0:iDX(T))for(T=0;T1E3){var U;(U=this.xr)==null||U.bT((0,g.y)());U=rN(this);if(this.MI.O3()&&this.xhr instanceof Yh){var Y=this.xhr;U.xrs=Y.xhr.readyState;U.xpb=Y.Y.getLength();U.xdc=Y.W}this.x5(new a9("net.timeout",U))}}else(0,g.y)()-this.xr.Y>1E4&&((Y=this.xr)==null||Y.bT((0,g.y)()),this.fp());this.isComplete()||this.O6.start()}}; g.W.fp=function(){this.logger.info("Onesie request timed out");this.pj=!1;if(!Pl(this)){var U=rN(this);U.timeout="1";this.x5(new a9("onesie.request",U))}}; g.W.x5=function(U){var Y=this;U=s7(U);this.Rw?this.iY.Ne(U):(this.If.reject(U),this.Rw=!0);ZDv(this.uN);this.fK||this.ud.stop();this.pU("or_fe");var A,c;(A=this.tK)==null||(c=iDX(A))==null||c.forEach(function(d){Y.wW("pathprobe",d)}); this.l9(5);this.dispose()}; g.W.isComplete=function(){return this.state>=3}; g.W.gT=function(){return this.state===4}; g.W.l_=function(U){var Y,A;return this.isComplete()||!!((Y=this.Ig)==null?0:(A=Y.get(U))==null?0:A.Y)}; g.W.yR=function(){return!1}; g.W.nX=function(){return this.state===5}; g.W.notifySubscribers=function(U){for(var Y=0;Y102400&&!this.e_&&(this.pU("or100k"),this.e_=!0);if(U.RX()){var Y=U.bE(),A=Y.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+A}); this.Nk&&this.wW("ombrss","len."+A);this.j2.feed(Y)}if(this.Ig)for(var c=g.J(this.Ig.keys()),d=c.next();!d.done;d=c.next()){var T=d.value;U=void 0;(U=this.Ig.get(T))==null||U.yF();this.notifySubscribers(T)}}catch(E){this.x5(E)}}; g.W.wB=function(){return this.xr.requestNumber}; g.W.u_=function(U){return this.Id.get(U)}; g.W.gm=function(){return{mW:this.mW,sA:this.sA,isDecorated:!1}};g.w(Epv,g.p);g.W=Epv.prototype;g.W.XF=function(U,Y){this.Hw=void 0;F9S(this);Ji3(this,U,Y)}; g.W.Ax=function(U){if(this.Y.length===0)return!1;var Y=this.Y[0];return Y instanceof lG?U===this.loader.getCurrentTime()*1E3:!(Y instanceof hR&&dJS(Y.info))&&Math.abs(Y.kF()-U)<50}; g.W.Rm=function(U){this.W=U;this.Hw=(0,g.y)()+(U.backoffTimeMs||0)}; g.W.Wq=function(U,Y){if(U.action===void 0){var A=this.iY.PR();A!==void 0&&this.loader.zR(A)}else if(U.action!==0||!this.yJ)switch(U.action===0&&this.policy.MD&&(U.action=2),A={},A.reason=U.QZ,A.action=U.action,A.rn=Y,U.action){case 1:this.policy.j&&this.T&&this.T.V3(void 0,void 0,A);break;case 0:this.yJ=!0;this.videoData.b9()&&this.policy.j&&this.T&&this.T.V3(void 0,void 0,A,!1);this.loader.j1(A);break;case 2:this.policy.TL?(bhc(U.QZ)!=="sabr.config"&&delete A.reason,this.loader.handleError(bhc(U.QZ), A,1)):this.loader.handleError("sabr.config",A,1);break;case 3:this.policy.AP&&((U=this.rW.Z)!=null&&(U.Z=!0),this.loader.handleError("sabr.hostfallback",A))}}; g.W.WI=function(U){U&&(this.loader.wW("sabrctxt",{onsbrctxt:U.type,scp:U.scope,dflt:U.sendByDefault}),U.type&&U.sendByDefault&&this.t$.add(U.type),U.scope!==2&&(U.type&&this.videoData.sabrContextUpdates.set(U.type,U),this.iY.WI(U)))}; g.W.xX=function(){}; g.W.n4=function(U){if(U.qw!==void 0&&U.a8){var Y=U.qw/U.a8;this.audioTrack.Z=!1;this.videoTrack.Z=!1;if(this.policy.Hw||this.policy.s$||this.policy.Cc)this.loader.Xg.T=!1;this.loader.GG(Y,1);if(this.iY.getCurrentTime()!==Y){var A={Qa:"sabr_seek",k9:!0,I0:!0};U.seekSource&&(A.seekSource=U.seekSource);gC(this.loader,Y+.1,A)}}}; g.W.onSnackbarMessage=function(U){this.iY.publish("onSnackbarMessage",U)}; g.W.Ew=function(U){U.n6&&U.dn&&hw(this.rW,U.n6,U.dn);this.policy.Aw&&(U.SC&&U.kq&&(this.rW.VP=U.SC/U.kq),U.Wk&&U.At&&(this.rW.uL=U.Wk/U.At));this.policy.V_&&Rp(this.videoData)&&(this.policy.Aw?U.Wk&&U.At&&this.loader.GG(U.Wk,U.At):U.dn&&this.loader.GG(U.dn,1E3));U.h5!=null&&this.iY.eK(U.h5);this.policy.NR&&U.vz&&(U=((0,g.y)()-U.vz)/1E3,this.loader.bD.wF(1,U))}; g.W.Vq=function(U){this.loader.Vq(U)}; g.W.wx=function(U){return this.t$.has(U)}; g.W.oG=function(U,Y,A){this.policy.T&&this.loader.wW("sabrctxtplc",{start:U?U.join("_"):"",stop:Y?Y.join("_"):"",discard:A?A.join("_"):""});if(U){U=g.J(U);for(var c=U.next();!c.done;c=U.next())this.t$.add(c.value)}if(Y)for(Y=g.J(Y),U=Y.next();!U.done;U=Y.next())U=U.value,this.t$.has(U)&&this.t$.delete(U);if(A)for(A=g.J(A),Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,this.videoData.sabrContextUpdates.has(Y)&&(this.videoData.sabrContextUpdates.delete(Y),Y===3&&(this.videoData.dk="")),this.policy.X&&this.Y.length)for(U= g.J(this.Y),c=U.next();!c.done;c=U.next())if(c=c.value,!(c instanceof lG)){var d=void 0;((d=c.lx)==null?void 0:d.type)===Y&&(c.lx=void 0)}}; g.W.sV=function(){}; g.W.nt=function(U){this.J=U}; g.W.Zo=function(U){this.Uv=U}; g.W.AZ=function(U,Y){jyV(this.policy,U,4,Y)}; g.W.LR=function(U){if(U==null?0:U.PJ)if(U=U.PJ.XJ){U=g.J(U);for(var Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,Y.formatId){var A=this.rW.W.get(hM(Y.formatId));A&&A.info&&(A.info.debugInfo=Y.debugInfo)}}}; g.W.YX=function(U){(U=U==null?void 0:U.reloadPlaybackParams)&&this.iY.publish("reloadplayer",U)}; g.W.SM=function(){return this.iY.SM()||""}; g.W.hd=function(){var U=kL(this.audioTrack,!0)*1E3,Y=kL(this.videoTrack,!0)*1E3;return Math.min(U,Y)}; g.W.XT=function(U,Y){this.loader.wW(U,Y)}; g.W.Bn=function(U){mmS(this.loader,YH4(this.Zf,U))}; g.W.Tn=function(){g.p.prototype.Tn.call(this);this.W=void 0;Ji3(this,!0,"i");this.Y=[]};tt9.prototype.I2=function(U,Y){if(this.j)return R29(this,Y);if(Y=yA(U)){var A=Y.T;A&&A.W&&A.Y&&(U=U.W.length?U.W[0]:null)&&U.state>=2&&!U.nX()&&U.info.rY===0&&(this.j=U,this.G=A,this.T=Y.info,this.J=this.startTimeSecs=Date.now()/1E3,this.K=this.T.startTime)}return NaN}; tt9.prototype.clear=function(){this.T=this.G=this.j=null;this.Y=this.K=this.J=this.startTimeSecs=NaN;this.W=!1};g.w(g.iG,g.p);g.W=g.iG.prototype;g.W.initialize=function(U,Y,A){this.logger.debug(function(){return"Initialized, t="+U}); U=U||0;this.policy.Y||(Y=cw3(this.Y),npl(this.iY,new nN(Y.video,Y.reason)),this.iY.xu(new nN(Y.audio,Y.reason)));this.rW.isManifestless&&QyS(this.K);this.G&&BSc(this.G,this.videoTrack.Y);Y=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var c=!this.rW.isManifestless;this.policy.ob&&(c=c||this.rW.yT);this.policy.QJ||(this.currentTime=c?U:Y);this.policy.Hw&&this.seek(this.getCurrentTime(),{}).TX(function(){}); if(this.policy.Y){var d;((d=this.X)==null?0:TS9(d,this.SM()||""))&&h2X(this)&&fa3(this,this.videoTrack)&&fa3(this,this.audioTrack)&&(jp3(this.T,this.X),this.policy.K&&spS(this))}else this.Hw&&(SSE(this,this.videoTrack),SSE(this,this.audioTrack),VxV(this.Hw),delete this.Hw);A?(this.policy.Ie?(this.AP=A,J0(this,A)):J0(this,!1),g.uQ(this.Dr)):(A=this.getCurrentTime()===0,pr(this.K,this.videoTrack,this.videoTrack.Y,A),pr(this.K,this.audioTrack,this.audioTrack.Y,A),this.policy.Y&&L98(this.T,!0),this.policy.Hw|| this.seek(this.getCurrentTime(),{}).TX(function(){}),this.timing.tick("gv")); (this.rW.u1||this.rW.Gh||this.rW.QJ||this.rW.R1||this.rW.qz)&&this.iY.z3(this.rW)}; g.W.resume=function(){if(this.isSuspended||this.GB){this.logger.debug("Resumed.");this.Q0=this.GB=this.isSuspended=!1;try{this.I2()}catch(U){g.S5(U)}}}; g.W.U7=function(){return!this.policy.Va}; g.W.CQ=function(U,Y){U=U===void 0?!1:U;Y=Y===void 0?!1:Y;this.logger.debug("detaching media source");QpS(this);this.iY.U_()&&(this.J=NaN);U?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.eX&&this.wW("loader",{setsmb:1}),this.policy.jX=!0,this.LF()):(this.policy.Ie?J0(this,this.AP):J0(this,!1),Y||this.LF())}; g.W.setAudioTrack=function(U,Y,A){A=A===void 0?!1:A;if(!this.Ky()){var c=!isNaN(Y);A&&c&&(this.audioTrack.Hw=Date.now(),this.policy.Ix&&(this.Ly=!0));if(this.policy.Y){var d=this.j.zH(U.id,c);this.logger.debug(function(){return"Logging new audio format: "+d.Y.info.id}); this.iY.xu(d)}else{var T=Ugl(this.Y,U.id,c);this.logger.debug(function(){return"Logging new audio format: "+T.audio.info.id}); this.iY.xu(new nN(T.audio,T.reason))}if(c&&(A=this.audioTrack.Y.index.Qz(Y),this.wW("setAudio",{id:U.id,cmt:Y,sq:A}),A>=0)){this.policy.Y&&this.XF(!0,"mosaic");o1X(this.audioTrack,A,NaN,NaN);!this.policy.sT&&this.rW.isLive&&f1(this.rW,A,!1);return}this.iY.gB()}}; g.W.setPlaybackRate=function(U){U!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(U)}; g.W.kZ=function(U){var Y=this.T.J;this.T.nt(U);this.wW("scfidc",{curr:hM(Y),"new":hM(U)});U&&hM(U)!==hM(Y)&&(this.XF(!0,"caption change"),this.I2())}; g.W.S7=function(U){this.T.Zo(U)}; g.W.aQ=function(U){var Y=U.Y.info.SI();this.logger.debug(function(){return"New "+(Y?"audio":"video")+" format from SABR: "+Lw(U.Y.info)}); Y?this.iY.xu(U):npl(this.iY,U)}; g.W.Bn=function(U){mR(U.py[U.py.length-1])&&mmS(this,YH4(this.Y,U.py[0].Y))}; g.W.iG=function(){return this.iY.iG()}; g.W.w5=function(){return this.iY.w5()}; g.W.Vq=function(U){this.iY.L().O3()&&this.wW("sps",{status:U.FD||""});if(U.FD===1)this.iY.videoData.AY=0;else if(U.FD===2||U.FD===3){var Y=!1;if(U.FD===3){Y=this.iY.Y9();var A;this.Me=(A=U.PBY)!=null?A:Infinity;this.iY.videoData.AY=Y+1;(Y=pIl(this))&&this.qH(!0)}this.iY.Nq(!0,Y)}}; g.W.JK=function(){return this.iY.JK()}; g.W.ul=function(){return this.iY.ul()}; g.W.La=function(U){this.iY.La(U)}; g.W.BqW=function(){var U,Y=(U=this.iY.sH())==null?void 0:U.getCurrentTime();Y?this.iY.wW("rms",{cta:Y}):g.uQ(this.Lr)}; g.W.I2=function(){OkS(this);if(this.Ov&&tx(this.Ov)&&!this.Ov.Zk()&&(!this.policy.QJ||isFinite(this.getCurrentTime()))){var U=tc(this.videoTrack);U=this.policy.Vu&&U&&U.lN();this.rW.isManifestless&&this.rW.j&&R7(this.rW)?(this.J=R7(this.rW),this.Ov.sL(this.J)):Sv(this.rW)&&!U?isNaN(this.J)?(this.J=this.getCurrentTime()+3600,this.Ov.sL(this.J)):this.J<=this.getCurrentTime()+1800&&(this.J=Math.max(this.J+1800,this.getCurrentTime()+3600),this.Ov.sL(this.J)):this.Ov.isView||(U=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==U)&&U>0&&(this.Ov.sL(U),this.J=U))}if(!this.Ky())if(k2(this.rW)&&this.rW.nX()){var Y=this.rW;this.handleError("manifest.net.retryexhausted",Y.Ly?{rc:Y.ZA}:{rc:Y.ZA.toString()},1)}else if(this.policy.Y)a:{try{W93(this.T);this.rW.isManifestless&&this.policy.K&&ON(this.Xg);var A;((A=this.Ov)==null?0:Cw(A))&&this.CA();L98(this.T)}catch(E){g.Md(E);Y=E;if(Y.message.includes("changeType")){this.wW("ssap",{exp:Y.name,msg:Y.message,s:Y.stack});break a}this.handleError("fmt.unplayable", {exp:Y.name,msg:Y.message,s:Y.stack},1)}l3l(this);g.uQ(this.dW)}else if(!this.rW.T||!l8Y(this.videoTrack)&&!l8Y(this.audioTrack)||(this.videoTrack.K||this.audioTrack.K)&&this.policy.ws?A=!1:(this.LF(),this.iY.seekTo(Infinity,{Qa:"checkLoaderTracksSync",GG:!0}),A=!0),!A){OkS(this);this.rW.isManifestless&&(PoE(this.videoTrack),PoE(this.audioTrack),ON(this.Xg),(A=yA(this.videoTrack))&&A.T&&(A=A.T.W&&!this.policy.r9,this.wW(A===this.policy.G.ej?"strm":"strmbug",{strm:A,sfmp4:this.policy.G.ej,dfs:this.policy.r9}, !0)));if(this.Ov)this.CA();else if(this.policy.W){var c;A=!1;if(this.policy.Fq){var d;U=g.J([this.videoTrack,this.audioTrack]);for(d=U.next();!d.done;d=U.next()){var T=d.value;for(d=yA(T);d&&T.rB()!==tc(T);d=yA(T))T.Wr(d);A=A||!!d}}else(Y=yA(this.videoTrack))&&this.videoTrack.Wr(Y),(c=yA(this.audioTrack))&&this.audioTrack.Wr(c);el(this.videoTrack)&&el(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(Y||c||A)&&Hl(this)}Mtc(this);pr(this.K,this.videoTrack,this.videoTrack.Y, !1);pr(this.K,this.audioTrack,this.audioTrack.Y,!1);this.policy.w3||yiY(this,this.videoTrack,this.audioTrack);a8l(this.K,this.videoTrack,this.audioTrack);a8l(this.K,this.audioTrack,this.videoTrack);l3l(this);this.G&&(Y=this.G,Y.j?(c=Y.J+Y.policy.lE,Y.W||(c=Math.min(c,Y.startTimeSecs+Y.policy.eL)),Y=Math.max(0,c*1E3-Date.now())):Y=NaN,isNaN(Y)||g.uQ(this.KU,Y));g.uQ(this.dW)}}; g.W.j1=function(U){this.iY.j1(U)}; g.W.CA=function(){var U=this;if(this.Ov){var Y=this.Ov.Y,A=this.Ov.T;wC3(this,this.audioTrack);wC3(this,this.videoTrack);var c=Ial(this);if(c){if(this.policy.yH){if(!Y.hD()){var d=yA(this.audioTrack);if(d){if(!wN(this,this.audioTrack,Y,d.info))return;qS9(this,this.audioTrack,Y,d)}}if(!A.hD()&&(d=yA(this.videoTrack))){if(!wN(this,this.videoTrack,A,d.info))return;qS9(this,this.videoTrack,A,d)}}this.iH||(this.iH=(0,g.y)(),this.logger.debug(function(){return"Appends pause start "+U.iH+" reason "+c}), this.policy.T&&this.wW("apdps",{r:c}))}else if(this.iH&&(Dmc(this,this.iH),this.iH=0),urX(this),d=!1,clX(this,this.videoTrack,A)&&(d=!0,XH9(this.timing),xZX(this.timing)),this.Ov&&!this.Ov.oe()&&(clX(this,this.audioTrack,Y)&&(d=!0,kbY(this.timing),svl(this.timing)),!this.Ky()&&this.Ov))!this.policy.Va&&el(this.videoTrack)&&el(this.audioTrack)&&tx(this.Ov)&&!this.Ov.Zk()&&(A=!1,A=tc(this.audioTrack).Y,A=A===this.rW.Y[A.info.id])&&(this.logger.debug("Setting EOS"),kgV(this.Ov),uSY(this.schedule)),d&& !this.Ov.isAsync()&&Hl(this)}}; g.W.j6=function(U){var Y,A=U===((Y=this.Ov)==null?void 0:Y.Y)?this.audioTrack:this.videoTrack,c;if((c=yA(A))==null?0:c.isLocked){if(this.iY.L().O3()){var d;this.wW("eosl",{ounlock:(d=yA(A))==null?void 0:d.info.jq()})}var T;Ly3(this,U===((T=this.Ov)==null?void 0:T.Y))}var E;if(this.policy.Ix&&U===((E=this.Ov)==null?void 0:E.Y)&&this.qI){Y=this.qI-this.getCurrentTime();var L;this.iY.wW("asl",{l:Y,xtag:(L=tc(this.audioTrack))==null?void 0:L.Y.info.Y});this.Ly=!1;this.qI=0}U.lQ()&&U.MU().length===0&& (U.tG(),this.Ov&&!this.Ov.lQ()&&(this.iY.L().O3()&&this.iY.wW("rms",{ld:"seek"}),this.Ov.J=performance.now(),this.iY.m2(),this.iY.L().O3()&&g.uQ(this.Lr)));var r;(r=A.X)!=null&&Eb(r,0);this.policy.Lr?bsY(this):this.I2()}; g.W.yPJ=function(U){if(this.Ov){var Y=tc(U===this.Ov.Y?this.audioTrack:this.videoTrack);if(U=U.QC())for(var A=0;A5&&U.Pw.shift();Y=Y.Js;var c;if((c=this.iY.getVideoData())==null?0:c.enableServerStitchedDai)c=wIc(this.audioTrack,Y),A=wIc(this.videoTrack,Y),c!==0&&A!==0&&c!==A&&this.handleError("ssdai.avsync",{sq:Y,a:c,v:A},0)}}; g.W.G7=function(U,Y,A,c){U.info.video&&this.W.G7(Y,A,c)}; g.W.ED=function(U){this.Y.ED(U)}; g.W.L6=Yl(20); g.W.Fb=function(U){this.I1=U;var Y;(Y=this.audioTrack.G)!=null&&(Y.BQ=U);(Y=this.videoTrack.G)!=null&&(Y.BQ=U);Y=this.T;if(Y.X){for(var A=Y.loader,c=A.wW,d=Y.X.version,T="",E=g.J(Y.X.ZS),L=E.next();!L.done;L=E.next()){L=L.value;T+=".cid."+L.clipId;if(L.Q$){var r=L.Q$;T+=".vid."+r.Ik+(".pst."+r.Em)+(".ps."+r.pH)+(".lst."+r.afy)+(".ld."+r.wr)+(".ls."+r.Pv)}L.Vp&&(T+=".nonv."+L.Vp.Tg)}c.call(A,"ssap",{addcacheclips:1,v:d,tl:T});A=Y.X;U.x6(A.ZS,A.version)?Y.videoData.dk=A.version||"":Y.loader.wW("ssap",{v:A.version, tlnu:1});Y.X=void 0}}; g.W.OO=function(){return this.I1}; g.W.Ai=function(){return this.videoTrack.Z||this.audioTrack.Z}; g.W.seek=function(U,Y){if(this.Ky())return XD();if(this.Ai())return XD("seeking to head");if(this.policy.Hw&&!isFinite(U))return KBv(this.Xg),g.BO(Infinity);OkS(this);this.Bf=(0,g.y)();this.policy.Y||Mtc(this,U);this.Ov&&this.Ov.Y&&this.Ov.T&&!this.iY.getVideoData().SN&&(this.Ov.Y.isLocked()||this.Ov.T.isLocked())&&this.iY.gB({reattachOnLockedBuffer:1,vsb:""+this.Ov.T.isLocked(),asb:""+this.Ov.Y.isLocked()});var A=this.getCurrentTime(),c=this.Xg.seek(U,Y);this.policy.QJ||(this.currentTime=c);gj(this.W, U,A,this.policy.cR&&!Y.k9);Hl(this);return g.BO(c)}; g.W.Ax=function(U){return this.policy.Y&&this.T.Ax(U)}; g.W.wx=function(U){return this.T.wx(U)}; g.W.XF=function(U,Y){this.T.XF(U,Y)}; g.W.getCurrentTime=function(){if(this.policy.QJ){var U=this.Zm()||0;return this.iY.getCurrentTime()-U}return this.currentTime}; g.W.Ck=function(){return this.audioTrack.Y.info}; g.W.uH=function(){return this.videoTrack.Y.info}; g.W.WG=function(){return this.audioTrack.Y.info.Rv}; g.W.AK=function(){return this.videoTrack.Y.info.Rv}; g.W.Tn=function(){try{this.CQ(),bC(this.audioTrack),bC(this.videoTrack),fr(this.audioTrack),fr(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.p.prototype.Tn.call(this)}catch(U){g.S5(U)}}; g.W.handleError=function(U,Y,A){A=A===void 0?0:A;var c=xP(A);U==="fmt.unplayable"&&this.rW.isLive&&(this.policy.yH=!1,sH(this.rW));Y=new a9(U,Y,A);g.cW(this);R9(Y.details);this.iY.handleError(Y);U!=="html5.invalidstate"&&Y.errorCode!=="fmt.unplayable"&&U!=="fmt.unparseable"&&c&&this.dispose()}; g.W.i9=function(){var U=tc(this.audioTrack),Y=tc(this.videoTrack);U={lct:this.getCurrentTime().toFixed(3),lsk:this.Xg.isSeeking(),lmf:this.Y.Y.isLocked(),lbw:jj(this.schedule).toFixed(3),lhd:Jv(this.schedule).toFixed(3),lst:((this.schedule.G.Y4()||0)*1E9).toFixed(3),laa:U?U.jq():"",lva:Y?Y.jq():"",lar:this.audioTrack.T?this.audioTrack.T.jq():"",lvr:this.videoTrack.T?this.videoTrack.T.jq():"",laq:""+Bw(this.audioTrack),lvq:""+Bw(this.videoTrack)};this.Ov&&!this.Ov.oe()&&this.Ov.Y&&this.Ov.T&&(U.lab= lM(this.Ov.Y.MU()),U.lvb=lM(this.Ov.T.MU()));this.iH&&(U.lapt=((0,g.y)()-this.iH).toFixed(0),U.lapr=Ial(this));this.QJ&&(U.lapmabht=((0,g.y)()-this.QJ).toFixed(0),U.lapmabh=QA(this,this.audioTrack).toFixed(0));this.Uv&&(U.lapmvbht=((0,g.y)()-this.Uv).toFixed(0),U.lapmvbh=QA(this,this.videoTrack).toFixed(0));this.eX&&(U.lapsdai=((0,g.y)()-this.eX).toFixed(0));return U}; g.W.LF=function(){try{this.policy.Y&&this.T.XF(!1,"pending"),this.audioTrack.LF(),this.videoTrack.LF()}catch(U){g.S5(U)}this.policy.W=""}; g.W.qm=function(){return kA(this.Z)}; g.W.wW=function(U,Y,A){this.iY.wW(U,Y,A===void 0?!1:A)}; g.W.SM=function(){return this.iY.SM()}; g.W.GG=function(U,Y){U/=Y;isNaN(this.timestampOffset)&&iqY(this,U-Math.min(U,this.policy.JY));return(U-this.timestampOffset)*Y}; g.W.Zm=function(){return this.timestampOffset}; g.W.isSeeking=function(){return this.Xg.isSeeking()}; g.W.TM=function(){this.W.TM()}; g.W.Zb=function(U,Y,A){Y=Y===void 0?!1:Y;A=A===void 0?{}:A;this.policy.Y?this.j.Zb(U,Y,A):this.Y.Zb(U,Y,A)}; g.W.YU=function(U,Y){if(this.Pw&&this.W.YU(U,this.Pw))return iqY(this,this.timestampOffset-Y),Hl(this),this.policy.j&&(sH(this.rW),fr(this.audioTrack),fr(this.videoTrack),this.LF()),!0;Y=this.videoTrack.Y.index.Qz(U);this.handleError("ad.skipfailed",{dec:!!this.Pw,t:U.toFixed(3),sq:Y});return!1}; g.W.getManifest=function(){return this.rW}; g.W.isOffline=function(){return!!this.iY.getVideoData().cotn}; g.W.mL=function(U,Y){this.iY.mL(U,Y)}; g.W.hc=function(U){if(this.policy.Y)this.T.XF(!0,"utc"),this.I2();else{var Y=this.iY.getVideoData().NW;if(Y){var A=this.K;A.L3=U;A.NW=Y;ZC(this)}}}; g.W.zR=function(U){this.videoTrack.Z=!1;this.audioTrack.Z=!1;this.Xg.T=!1;this.iY.zR(U)}; g.W.Tv=function(U){this.Xg.Tv(U-this.Zm())}; g.W.tM=function(){this.iY.tM()}; g.W.qH=function(U){U!==this.policy.E9&&((this.policy.E9=U)||this.I2())}; g.W.TV=function(U,Y){var A=this.audioTrack.yd,c=this.videoTrack.yd;A&&c&&(A.remove(U,Y),c.remove(U,Y))}; g.W.gB=function(U){this.iY.gB(U)}; g.W.G$=function(U){this.iY.G$(U)}; g.W.Y9=function(){return this.iY.Y9()}; g.W.NE=function(){sH(this.rW);this.LF()};g.W=g.j9.prototype;g.W.vG=function(U,Y,A,c,d,T){return this.BQ.vG(U,Y,A,c,d,T)}; g.W.v9=function(U,Y,A,c,d,T){return this.BQ.v9(U,Y,A,c,d,T)}; g.W.Ya=function(U){return this.BQ.Ya(U)}; g.W.Q_=function(U){this.BQ.Q_(U)}; g.W.V3=function(U,Y,A,c){return this.BQ.V3(U,Y,A,c)}; g.W.TM=function(){this.BQ.TM()}; g.W.Ki=function(U,Y){this.BQ.Ki(U,Y)}; g.W.z2=function(){this.BQ.z2()}; g.W.K6=Yl(62);g.W.zX=function(U,Y,A){this.BQ.zX(U,Y,A)}; g.W.m4=Yl(65);g.W.C0=function(U,Y,A,c,d,T,E,L,r){this.BQ.C0(U,Y,A,c,d,T,E,L,r)}; g.W.o0=function(U){this.BQ.o0(U)}; g.W.qO=function(U){return this.BQ.qO(U)}; g.W.Qx=function(U){return this.BQ.Qx(U)};g.w(Nj,g.l6);g.w(t0,Nj);t0.prototype.J=function(U,Y){if(U&&Y){var A=Number(fC(U,"cpi"))*1+1;isNaN(A)||A<=0||Athis.W&&(this.W=A,g.qF(this.Y)||(this.Y={},this.j.stop(),this.T.stop())),this.Y[Y]=U,g.uQ(this.T))}}; t0.prototype.K=function(){for(var U=g.J(Object.keys(this.Y)),Y=U.next();!Y.done;Y=U.next()){var A=Y.value;Y=this.publish;for(var c=this.W,d=g.Nw(this.Y[A]),T=[],E=g.J(d[6].split("&")),L=E.next();!L.done;L=E.next())L=L.value,L.indexOf("cpi=")===0?T.push("cpi="+c.toString()):L.indexOf("ek=")===0?T.push("ek="+g.$n(A)):T.push(L);d[6]="?"+T.join("&");A="skd://"+d.slice(2).join("");d=A.length*2;c=new Uint8Array(d+4);c[0]=d%256;c[1]=(d-c[0])/256;for(d=0;d0)for(var A=g.J(this.Y),c=A.next();!c.done;c=A.next())if(Y===c.value.info.cryptoPeriodIndex){Y=!0;break a}Y=!1}if(!Y){Y=(0,g.y)();a:{A=U.cryptoPeriodIndex;if(!isNaN(A)){c=g.J(this.W.values());for(var d=c.next();!d.done;d=c.next())if(Math.abs(d.value.cryptoPeriodIndex-A)<=1){A=!0;break a}}A=!1}A?(A=U.Y,A=Math.max(0,Math.random()*((isNaN(A)?120:A)-30))*1E3):A=0;this.publish("log_qoe",{wvagt:"delay."+A,cpi:U.cryptoPeriodIndex,reqlen:this.Y.length, ignore:this.j});A<=0?N_E(this,U):this.j||(this.Y.push({time:Y+A,info:U}),g.uQ(this.T,A))}}; e9.prototype.Tn=function(){this.Y=[];Nj.prototype.Tn.call(this)};var vV={},kO4=(vV.DRM_TRACK_TYPE_AUDIO="AUDIO",vV.DRM_TRACK_TYPE_SD="SD",vV.DRM_TRACK_TYPE_HD="HD",vV.DRM_TRACK_TYPE_UHD1="UHD1",vV);g.w(B_c,g.p);g.w(a39,g.l6);g.W=a39.prototype;g.W.EZ=function(U){var Y=this;this.Ky()||U.size<=0||(U.forEach(function(A,c){var d=yZ(Y.T)?c:A;c=new Uint8Array(yZ(Y.T)?A:c);yZ(Y.T)&&C98(c);A=g.U_(c,4);C98(c);c=g.U_(c,4);Y.Y[A]?Y.Y[A].status=d:Y.Y[c]?Y.Y[c].status=d:Y.Y[A]={type:"",status:d};Y.UO=[];kw(Y,Y.Y[A].type)&&Y.UO.push(KVX(Y.Y[A].type))}),m98(this,","),Bl(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.W.error=function(U,Y,A,c){this.Ky()||(this.publish("licenseerror",U,Y,A,c),U==="drm.provision"&&(U=(Date.now()-this.J)/1E3,this.J=NaN,this.publish("ctmp","provf",{et:U.toFixed(3)})));xP(Y)&&this.dispose()}; g.W.shouldRetry=function(U,Y){return!U&&this.requestNumber===Y.requestNumber}; g.W.Tn=function(){this.Y={};g.l6.prototype.Tn.call(this)}; g.W.i9=function(){var U={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.ov,cryptoPeriodIndex:this.cryptoPeriodIndex};this.W&&(U.keyStatuses=this.Y);return U}; g.W.getInfo=function(){var U=this.j.join();if(XW(this)){var Y=new Set,A;for(A in this.Y)this.Y[A].status!=="usable"&&Y.add(this.Y[A].type);U+="/UKS."+Array.from(Y)}return U+="/"+this.cryptoPeriodIndex}; g.W.GN=function(){return this.url};g.w(RF,g.p);g.W=RF.prototype;g.W.Dn=function(U){if(this.K){var Y=U.messageType||"license-request";this.K(new Uint8Array(U.message),Y)}}; g.W.EZ=function(){this.G&&this.G(this.Y.keyStatuses)}; g.W.onClosed=function(){this.Ky()||g.mm("xboxone")&&this.W&&this.W("closedShouldNotRetry")}; g.W.T_=function(U){this.K&&this.K(U.message,"license-request")}; g.W.Ye=function(U){if(this.W){if(this.T){var Y=this.T.error.code;U=this.T.error.systemCode}else Y=U.errorCode,U=U.systemCode;this.W("t.prefixedKeyError;c."+Y+";sc."+U,Y,U)}}; g.W.HO=function(){this.J&&this.J()}; g.W.update=function(U){var Y=this;if(this.Y)return this.Y.update(U).then(null,af(function(A){YVX(Y,"t.update",A)})); this.T?this.T.update(U):this.element.addKey?this.element.addKey(this.Z.keySystem,U,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,U,this.initData,this.sessionId);return xG()}; g.W.Tn=function(){this.Y&&(this.X?this.Y.close().catch(g.Md):this.Y.close());this.element=null;g.p.prototype.Tn.call(this)};g.w(aF,g.p);g.W=aF.prototype;g.W.setServerCertificate=function(){return this.T.setServerCertificate?this.Y.flavor==="widevine"&&this.Y.GT?this.T.setServerCertificate(this.Y.GT):I7(this.Y)&&this.Y.dW?this.T.setServerCertificate(this.Y.dW):null:null}; g.W.createSession=function(U,Y){var A=U.initData;if(this.Y.keySystemAccess){Y&&Y("createsession");var c=this.T.createSession();D7(this.Y)?A=djX(A,this.Y.dW):I7(this.Y)&&(A=jrl(A)||new Uint8Array(0));Y&&Y("genreq");U=c.generateRequest(U.contentType,A);var d=new RF(null,null,null,c,null,this.G);U.then(function(){Y&&Y("genreqsuccess")},af(function(E){YVX(d,"t.generateRequest",E)})); return d}if(gO(this.Y))return EwV(this,A);if(n1(this.Y))return TNc(this,A);if((c=this.element)==null?0:c.generateKeyRequest)this.element.generateKeyRequest(this.Y.keySystem,A);else{var T;(T=this.element)==null||T.webkitGenerateKeyRequest(this.Y.keySystem,A)}return this.j=new RF(this.element,this.Y,A,null,null,this.G)}; g.W.F4=function(U){var Y=owX(this,U);Y&&Y.T_(U)}; g.W.Q4=function(U){var Y=owX(this,U);Y&&Y.Ye(U)}; g.W.uF=function(U){var Y=owX(this,U);Y&&Y.HO(U)}; g.W.getMetrics=function(){if(this.T&&this.T.getMetrics)try{var U=this.T.getMetrics()}catch(Y){}return U}; g.W.Tn=function(){this.W=this.T=null;var U;(U=this.j)==null||U.dispose();U=g.J(Object.values(this.J));for(var Y=U.next();!Y.done;Y=U.next())Y.value.dispose();this.J={};g.p.prototype.Tn.call(this);delete this.element};g.W=uG.prototype;g.W.get=function(U){U=this.findIndex(U);return U!==-1?this.values[U]:null}; g.W.remove=function(U){U=this.findIndex(U);U!==-1&&(this.keys.splice(U,1),this.values.splice(U,1))}; g.W.removeAll=function(){this.keys=[];this.values=[]}; g.W.set=function(U,Y){var A=this.findIndex(U);A!==-1?this.values[A]=Y:(this.keys.push(U),this.values.push(Y))}; g.W.findIndex=function(U){return g.HW(this.keys,function(Y){return g.fj(U,Y)})};g.w(r0l,g.l6);g.W=r0l.prototype;g.W.HUs=function(U){this.rF({onecpt:1});U.initData&&V93(this,new Uint8Array(U.initData),U.initDataType)}; g.W.ybv=function(U){this.rF({onndky:1});V93(this,U.initData,U.contentType)}; g.W.o6=function(U){this.rF({onneedkeyinfo:1});this.MI.S("html5_eme_loader_sync")&&(this.G.get(U.initData)||this.G.set(U.initData,U));PG8(this,U)}; g.W.zE=function(U){this.W.push(U);K4(this)}; g.W.createSession=function(U){var Y=vwv(this)?FH9(U):g.U_(U.initData);this.T.get(Y);this.jX=!0;U=new a39(this.videoData,this.MI,U,this.drmSessionId);this.T.set(Y,U);U.subscribe("ctmp",this.qM,this);U.subscribe("keystatuseschange",this.EZ,this);U.subscribe("licenseerror",this.pW,this);U.subscribe("newlicense",this.iy,this);U.subscribe("newsession",this.w7,this);U.subscribe("sessionready",this.Um,this);U.subscribe("fairplay_next_need_key_info",this.VQ,this);this.MI.S("html5_enable_vp9_fairplay")&&U.subscribe("qualitychange", this.i7,this);U.subscribe("sabrlicenseconstraint",this.Lbv,this);hWV(U,this.j)}; g.W.iy=function(U){this.Ky()||(this.rF({onnelcswhb:1}),U&&!this.heartbeatParams&&(this.heartbeatParams=U,this.publish("heartbeatparams",U)))}; g.W.w7=function(){this.Ky()||(this.rF({newlcssn:1}),this.W.shift(),this.jX=!1,K4(this))}; g.W.Um=function(){if(gO(this.Y)&&(this.rF({onsnrdy:1}),this.Uv--,this.Uv===0)){var U=this.Pw,Y,A;(Y=U.element)==null||(A=Y.msSetMediaKeys)==null||A.call(Y,U.W)}}; g.W.EZ=function(U){if(!this.Ky()){!this.eX&&this.videoData.S("html5_log_drm_metrics_on_key_statuses")&&(H4Y(this),this.eX=!0);this.rF({onksch:1});var Y=this.i7;if(!XW(U)&&g.IE&&U.T.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var A="large";else{A=[];var c=!0;if(XW(U))for(var d=g.J(Object.keys(U.Y)),T=d.next();!T.done;T=d.next())T=T.value,U.Y[T].status==="usable"&&A.push(U.Y[T].type),U.Y[T].status!=="unknown"&&(c=!1);if(!XW(U)||c)A=U.j;A=Oq8(A)}Y.call(this,A);this.publish("keystatuseschange", U)}}; g.W.qM=function(U,Y){this.Ky()||this.publish("ctmp",U,Y)}; g.W.VQ=function(U,Y){this.Ky()||this.publish("fairplay_next_need_key_info",U,Y)}; g.W.pW=function(U,Y,A,c){this.Ky()||(this.videoData.S("html5_log_drm_metrics_on_error")&&H4Y(this),this.publish("licenseerror",U,Y,A,c))}; g.W.MH=function(){return this.Z}; g.W.i7=function(U){var Y=g.$N("auto",U,!1,"l");if(this.videoData.vl){if(this.Z.equals(Y))return}else if(Y74(this.Z,U))return;this.Z=Y;this.publish("qualitychange");this.rF({updtlq:U})}; g.W.Lbv=function(U){this.videoData.sabrLicenseConstraint=U}; g.W.Tn=function(){this.Y.keySystemAccess&&this.element&&(this.ov?this.element.setMediaKeys(null).catch(g.Md):this.element.setMediaKeys(null));this.element=null;this.W=[];for(var U=g.J(this.T.values()),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.unsubscribe("ctmp",this.qM,this),Y.unsubscribe("keystatuseschange",this.EZ,this),Y.unsubscribe("licenseerror",this.pW,this),Y.unsubscribe("newlicense",this.iy,this),Y.unsubscribe("newsession",this.w7,this),Y.unsubscribe("sessionready",this.Um,this),Y.unsubscribe("fairplay_next_need_key_info", this.VQ,this),this.MI.S("html5_enable_vp9_fairplay")&&Y.unsubscribe("qualitychange",this.i7,this),Y.dispose();this.T.clear();this.J.removeAll();this.G.removeAll();this.heartbeatParams=null;g.l6.prototype.Tn.call(this)}; g.W.i9=function(){for(var U={systemInfo:this.Y.i9(),sessions:[]},Y=g.J(this.T.values()),A=Y.next();!A.done;A=Y.next())U.sessions.push(A.value.i9());return U}; g.W.getInfo=function(){return this.T.size<=0?"no session":""+this.T.values().next().value.getInfo()+(this.K?"/KR":"")}; g.W.rF=function(U,Y){Y=Y===void 0?!1:Y;this.Ky()||(R9(U),(this.MI.O3()||Y)&&this.publish("ctmp","drmlog",U))};g.w(J0c,g.p);g.W=J0c.prototype;g.W.Kg=function(){return!!this.UX}; g.W.g4=function(){return this.T}; g.W.handleError=function(U){var Y=this;BNV(this,U);if((U.errorCode!=="html5.invalidstate"&&U.errorCode!=="fmt.unplayable"&&U.errorCode!=="fmt.unparseable"||!ez9(this,U.errorCode,U.details))&&!aBX(this,U)){if(this.Ww.Pw!=="yt"&&kWc(this,U)&&this.videoData.tj&&(0,g.y)()/1E3>this.videoData.tj&&this.Ww.Pw==="hm"){var A=Object.assign({e:U.errorCode},U.details);A.stalesigexp="1";A.expire=this.videoData.tj;A.init=this.videoData.Sb/1E3;A.now=(0,g.y)()/1E3;A.systelapsed=((0,g.y)()-this.videoData.Sb)/1E3;U= new a9(U.errorCode,A,2);this.iY.OT(U.errorCode,2,"SIGNATURE_EXPIRED",R9(U.details))}if(xP(U.severity)){var c;A=(c=this.iY.loader)==null?void 0:c.Y.Y;if(this.Ww.S("html5_use_network_error_code_enums"))if(Xl9(U)&&A&&A.isLocked())var d="FORMAT_UNAVAILABLE";else if(this.Ww.J||U.errorCode!=="auth"||U.details.rc!==429)U.errorCode==="ump.spsrejectfailure"&&(d="HTML5_SPS_UMP_STATUS_REJECTED");else{d="TOO_MANY_REQUESTS";var T="6"}else Xl9(U)&&A&&A.isLocked()?d="FORMAT_UNAVAILABLE":this.Ww.J||U.errorCode!== "auth"||U.details.rc!=="429"?U.errorCode==="ump.spsrejectfailure"&&(d="HTML5_SPS_UMP_STATUS_REJECTED"):(d="TOO_MANY_REQUESTS",T="6");this.iY.OT(U.errorCode,U.severity,d,R9(U.details),T)}else this.iY.publish("nonfatalerror",U),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.Ne(U.errorCode,U.details),c&&U.errorCode==="manifest.net.connect"&&(U="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.y)(),Bt(U,"manifest",function(E){Y.J=!0;Y.wW("pathprobe",E)}, function(E){Y.Ne(E.errorCode,E.details)}))}}; g.W.wW=function(U,Y){this.iY.zk().wW(U,Y)}; g.W.Ne=function(U,Y){Y=R9(Y);this.iY.zk().Ne(U,Y)};C4.prototype.lr=function(U,Y){return(Y===void 0?0:Y)?{ZV:U?YE(this,U):y6,EM:U?O4c(this,U):y6,i3w:U?QF9(this,U):y6,HFw:U?IB4(this,U.videoData):y6,jB:U?uWX(this,U.videoData,U):y6,Y9Y:U?b4Y(this,U):y6,o4Y:SVc(this)}:{ZV:U?YE(this,U):y6}}; C4.prototype.fg=function(U){var Y;g.Sj(this.MI)&&(Y=window.screen&&window.screen.width?new g.xn(window.screen.width,window.screen.height):null);Y||(Y=this.MI.K2?this.MI.K2.clone():this.Ol.U$());(Kl||dZ||U)&&Y.scale(g.q0());return Y}; C4.prototype.S=function(U){return this.MI.S(U)};g.w(Ay,g.p);Ay.prototype.onError=function(U){if(U!=="player.fatalexception"||this.provider.S("html5_exception_to_health"))U==="sabr.fallback"&&(this.encounteredSabrFallback=!0),U.match(rpj)?this.networkErrorCount++:this.nonNetworkErrorCount++}; Ay.prototype.send=function(){if(!(this.W||this.Y<0)){CGV(this);var U=g.FW(this.provider)-this.Y,Y="PLAYER_PLAYBACK_STATE_UNKNOWN",A=this.playerState.Pb;this.playerState.isError()?Y=A&&A.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.I(this.playerState,2)?Y="PLAYER_PLAYBACK_STATE_ENDED":g.I(this.playerState,64)?Y="PLAYER_PLAYBACK_STATE_UNSTARTED":g.I(this.playerState,16)||g.I(this.playerState,32)?Y="PLAYER_PLAYBACK_STATE_SEEKING":g.I(this.playerState,1)&&g.I(this.playerState, 4)?Y="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.I(this.playerState,1)?Y="PLAYER_PLAYBACK_STATE_BUFFERING":g.I(this.playerState,4)?Y="PLAYER_PLAYBACK_STATE_PAUSED":g.I(this.playerState,8)&&(Y="PLAYER_PLAYBACK_STATE_PLAYING");A=Cxo[jt(this.provider.videoData)];a:switch(this.provider.MI.playerCanaryState){case "canary":var c="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":c="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:c="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var d=UBV(this.provider), T=this.T<0?U:this.T-this.Y;U=this.provider.MI.fV+36E5<(0,g.y)();Y={started:this.T>=0,stateAtSend:Y,joinLatencySecs:T,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:c,playerCanaryStage:d,isAd:this.provider.videoData.isAd(),liveMode:A,hasDrm:!!g.Ji(this.provider.videoData),isGapless:this.provider.videoData.Z,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Lk(this.provider.videoData)};U||g.r7("html5PlayerHealthEvent",Y);this.W=!0;this.dispose()}}; Ay.prototype.Tn=function(){this.W||this.send();window.removeEventListener("error",this.Oj);window.removeEventListener("unhandledrejection",this.Oj);g.p.prototype.Tn.call(this)}; var rpj=/\bnet\b/;g.w(Ay3,g.p);Ay3.prototype.Tn=function(){dBE(this);g.p.prototype.Tn.call(this)};var TeV=/[?&]cpn=/;g.w(c$,g.p);c$.prototype.flush=function(){var U={};this.T&&(U.pe=this.T);this.Y.length>0&&(U.pt=this.Y.join("."));this.Y=[];return U}; c$.prototype.stop=function(){var U=this,Y,A,c;return g.S(function(d){if(d.T==1)return g.J3(d,2),g.x(d,(Y=U.j)==null?void 0:Y.stop(),4);if(d.T!=2)return(A=d.Y)&&U.logTrace(A),g.t3(d,0);c=g.XE(d);U.T=Pvv(c.message);g.i8(d)})}; c$.prototype.logTrace=function(U){this.encoder.reset();this.encoder.add(1);this.encoder.add(U.resources.length);for(var Y=g.J(U.resources),A=Y.next();!A.done;A=Y.next()){A=A.value.replace("https://www.youtube.com/s/","");this.encoder.add(A.length);for(var c=0;c=0?U:g.FW(this.provider),this.jX?lWj.has(this.g1)&&(this.Y.size||(this.g1==="PL"?U>=this.T+30:U<=this.ov+30||U>=this.T+1200&&U<=this.ov+86400))&&(g.Ez(this,U,"vps",[this.g1]),this.T=U):["PL","B","S"].indexOf(this.g1)>-1&&(this.Y.size||U>=this.T+30)&&(g.Ez(this,U,"vps",[this.g1]),this.T=U),this.Y.size)){this.sequenceNumber===7E3&&g.Md(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){L3(this,U);var Y=this.provider.iY.Lk(); Y=g.J(Y);for(var A=Y.next();!A.done;A=Y.next())A=A.value,this.wW(A.key,A.value);Y=U;A=this.provider.iY.aH();var c=A.droppedVideoFrames||0,d=A.totalVideoFrames||0,T=c-this.XZ,E=d&&!this.MB;c>A.totalVideoFrames||T>5E3?t_E(this,"html5.badframedropcount","df."+c+";tf."+A.totalVideoFrames):(T>0||E)&&g.Ez(this,Y,"df",[T]);this.XZ=c;this.MB=d;this.X>0&&(g.Ez(this,U,"glf",[this.X]),this.X=0);oP.isActive()&&(U=oP.Vn(),Object.keys(U).length>0&&this.wW("profile",U));this.R1&&re(this,"lwnmow");this.provider.MI.O3()&& this.provider.S("html5_record_now")&&this.wW("now",{wt:(0,g.y)()});U={};this.provider.videoData.T&&(U.fmt=this.provider.videoData.T.itag,(Y=this.provider.videoData.j)&&Y.itag!==U.fmt&&(U.afmt=Y.itag));U.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(U.adcpn=this.adCpn);this.KQ&&(U.addocid=this.KQ);this.contentCpn&&(U.ccpn=this.contentCpn);this.Hw&&(U.cdocid=this.Hw);this.provider.videoData.cotn&&(U.cotn=this.provider.videoData.cotn);U.el=Mm(this.provider.videoData);U.content_v=pk(this.provider.videoData); U.ns=this.provider.MI.Pw;U.fexp=frc(this.provider.MI.experiments).toString();U.cl=(750409904).toString();(Y=this.provider.videoData.adFormat||this.adFormat)&&(U.adformat=Y);(Y=jt(this.provider.videoData))&&(U.live=Y);this.provider.videoData.h8()&&(U.drm=1,this.provider.videoData.K&&(U.drm_system=qUw[this.provider.videoData.K.flavor]||0),this.provider.videoData.drmProduct&&(U.drm_product=this.provider.videoData.drmProduct));zw()&&this.provider.videoData.J&&(U.ctt=this.provider.videoData.J,U.cttype= this.provider.videoData.Dp,this.provider.videoData.mdxEnvironment&&(U.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(U.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.TZ&&(U.dai_fallback="1")):this.provider.videoData.R5?U.dai="cs":this.provider.videoData.jE&&(U.dai="disabled");U.seq=this.sequenceNumber++;if(this.provider.videoData.yl){if(Y=this.provider.videoData.yl,U&&Y)for(Y.ns==="3pp"&&(U.ns="3pp"),this.q5.has(Y.ns)&& re(this,"hbps"),Y.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=Y.shbpslc),this.provider.MI.experiments.lY("html5_use_server_qoe_el_value")&&this.VJ.delete("el"),A=g.J(Object.keys(Y)),c=A.next();!c.done;c=A.next())c=c.value,this.VJ.has(c)||(U[c]=Y[c])}else U.event="streamingstats",U.docid=this.provider.videoData.videoId,U.ei=this.provider.videoData.eventId;this.isEmbargoed&&(U.embargoed="1");Object.assign(U,this.provider.MI.Y);if(Y=U.seq)Y={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+Y,serializedWatchEndpointLoggingContext:this.provider.videoData.WWW},this.serializedHouseBrandPlayerServiceLoggingContext&&(Y.serializedHouseBrandPlayerServiceLoggingContext=Ap(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(Y.playerResponseCpn=this.provider.videoData.playerResponseCpn),T_.length&&(Y.decoderInfo=T_),this.provider.iY.OO()&&(Y.transitionStitchType=4,this.QJ&&(Y.timestampOffsetMsecs=this.QJ)),this.remoteControlMode&& (Y.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(Y.remoteConnectedDevices=this.remoteConnectedDevices),Y=g.C5(Y,eMX),Y=g.U_(Y,4),this.Y.set("qclc",[Y]);U=g.xJ("//"+this.provider.MI.Sf+"/api/stats/qoe",U);A=Y="";c=g.J(this.Y.entries());for(d=c.next();!d.done;d=c.next())T=g.J(d.value),d=T.next().value,T=T.next().value,E=void 0,(E=T)!=null&&E.join&&(d="&"+d+"="+T.join(","),d.length>100?A+=d:Y+=d);Jy4(this,U+Y,A.replace(/ /g,"%20"))}this.Y.clear()}}; g.W.G$=function(U){this.R1=U}; g.W.Eo=function(){if(this.provider.videoData.K){var U=this.provider.videoData.K;re(this,"eme-"+(U.keySystemAccess?"final":gO(U)?"ms":D7(U)?"ytfp":n1(U)?"safarifp":"nonfinal"))}}; g.W.iQ=Yl(59);g.W.X9=function(U){this.isEmbargoed=U}; g.W.s9=Yl(36);g.W.il=Yl(42);g.W.onPlaybackRateChange=function(U){var Y=g.FW(this.provider);U&&U!==this.nU&&(g.Ez(this,Y,"rate",[U]),this.nU=U);this.jX||this.reportStats(Y)}; g.W.Dl=Yl(30);g.W.getPlayerState=function(U){if(g.I(U,128))return"ER";if(g.I(U,2048))return"B";if(g.I(U,512))return"SU";if(g.I(U,16)||g.I(U,32))return"S";if(U.isOrWillBePlaying()&&g.I(U,64))return"B";var Y=Pmz[HD(U)];g.Rd(this.provider.MI)&&Y==="B"&&this.provider.iY.getVisibilityState()===3&&(Y="SU");Y==="B"&&g.I(U,4)&&(Y="PB");return Y}; g.W.Tn=function(){g.p.prototype.Tn.call(this);g.Wn(this.J);g.Wn(this.Lr)}; g.W.B6=function(U){this.isOffline=U;g.Ez(this,g.FW(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.W.wW=function(U,Y,A){var c=this.Va.indexOf(U)!==-1;c||this.Va.push(U);if(!A||!c){var d=typeof Y!=="string"?R9(Y):Y;d=BeX(d);if(!A&&!/^t[.]/.test(d)){var T=g.FW(this.provider)*1E3;d="t."+T.toFixed()+";"+d}z_(this,"ctmp",U+":"+d);this.logger.debug(function(){return"ctmp "+U+" "+d}); FQV(this);return T}}; g.W.Tb=function(U,Y,A){this.K={J_E:Number(this.wW("glrem",{nst:U.toFixed(),rem:Y.toFixed(),ca:+A})),tH:U,Hhv:Y,isAd:A}}; g.W.HN=function(U,Y,A){g.Ez(this,g.FW(this.provider),"ad_playback",[U,Y,A])}; g.W.Yp=function(U,Y){var A=g.FW(this.provider)*1E3;z_(this,"daism","t."+A.toFixed(0)+";smw."+(U*1E3).toFixed(0)+";smo."+(Y*1E3).toFixed(0))}; g.W.resume=function(){var U=this;this.provider.MI.O3()&&this.wW("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.J)?je8(this):this.J=g.Hn(function(){U.reportStats()},1E4)}; var HV={},Pmz=(HV[5]="N",HV[-1]="N",HV[3]="B",HV[0]="EN",HV[2]="PA",HV[1]="PL",HV[-1E3]="ER",HV[1E3]="N",HV),lWj=new Set(["PL","B","S"]),T_=[];$E.prototype.Yy=function(){return this.Y}; $E.prototype.update=function(){if(this.G){var U=this.Je()||0,Y=g.FW(this.provider);U>=this.provider.iY.getDuration()-.1&&(this.previouslyEnded=!0);if(U!==this.Y||xBE(this,U,Y)){var A;if(!(A=UY-this.f4+2||xBE(this,U,Y))){A=this.provider.iY.getVolume();var c=A!==this.X,d=this.provider.iY.isMuted()?1:0;d!==this.Z?(this.Z=d,A=!0):(!c||this.j>=0||(this.X=A,this.j=Y),A=Y-this.j,this.j>=0&&A>2?(this.j=-1,A=!0):A=!1)}A&&(v$(this),this.W=U);this.f4=Y;this.Y=U}}}; $E.prototype.Je=function(){var U=this.provider.iY.Je();return this.provider.MI.S("html5_disable_live_dvr_shrink_for_cdm_vss")&&OS(this.provider.videoData)?U+this.provider.iY.Zm():U};sec.prototype.send=function(U){var Y=this;if(!this.Ly){var A=h$X(this),c=g.xJ(this.uri,A);this.MI.S("vss_through_gel_double")&&Szv(c);this.jX&&!this.MI.S("html5_simplify_pings")?Z33(this,c):fJS(this,U).then(function(d){Y.jX&&(d=d||{},d.method="POST",d.postParams={atr:Y.attestationResponse});LQl(c,d,{token:Y.Hw,BD:Y.ws,mdxEnvironment:Y.mdxEnvironment},Y.MI,U,Y.QJ,Y.isFinal&&Y.Bu||Y.eX||Y.W&&Y.fV)}); this.Ly=!0}}; sec.prototype.T=function(U){U===void 0&&(U=NaN);return Number(U.toFixed(3)).toString()}; var G8={},p$S=(G8.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,G8.LIVING_ROOM_APP_MODE_MAIN=1,G8.LIVING_ROOM_APP_MODE_KIDS=2,G8.LIVING_ROOM_APP_MODE_MUSIC=3,G8.LIVING_ROOM_APP_MODE_UNPLUGGED=4,G8.LIVING_ROOM_APP_MODE_GAMING=5,G8),WV={},b3v=(WV.EMBEDDED_PLAYER_MODE_UNKNOWN=0,WV.EMBEDDED_PLAYER_MODE_DEFAULT=1,WV.EMBEDDED_PLAYER_MODE_PFP=2,WV.EMBEDDED_PLAYER_MODE_PFL=3,WV);g.w(G_,g.p);g.W=G_.prototype;g.W.ag=function(){this.Y.update();KQl(this)&&(gE9(this),yy8(this),this.jf())}; g.W.Tn=function(){g.p.prototype.Tn.call(this);iv(this);R$c(this.Y)}; g.W.i9=function(){return h$X(W$(this,"playback"))}; g.W.jf=function(){this.provider.videoData.G.eventLabel=Mm(this.provider.videoData);this.provider.videoData.G.playerStyle=this.provider.MI.playerStyle;this.provider.videoData.jL&&(this.provider.videoData.G.feature="pyv");this.provider.videoData.G.vid=this.provider.videoData.videoId;var U=this.provider.videoData.G;var Y=this.provider.videoData;Y=Y.isAd()||!!Y.jL;U.isAd=Y}; g.W.eS=function(U){var Y=W$(this,"engage");Y.ov=U;return M_9(Y,cWX(this.provider))};AWE.prototype.isEmpty=function(){return this.endTime===this.startTime};Fi.prototype.S=function(U){return this.MI.S(U)}; Fi.prototype.getCurrentTime=function(U){if(this.S("html5_ssap_current_time_for_logging_refactor")){var Y=this.iY.OO();if(Y&&(U=U||Y.jr()))return Yj(Y,U)}else if(g.KD(this.videoData)){var A=this.iY.OO();if(A)return U=this.iY.getCurrentTime(),A=(((Y=fv(A,U*1E3))==null?void 0:Y.Mk)||0)/1E3,U-A}return this.iY.getCurrentTime()}; Fi.prototype.Je=function(U){if(this.S("html5_ssap_current_time_for_logging_refactor")){var Y=this.iY.OO();if(Y&&(U=U||Y.jr()))return Yj(Y,U)}else if(g.KD(this.videoData)){var A=this.iY.OO();if(A)return U=this.iY.Je(),A=(((Y=fv(A,U*1E3))==null?void 0:Y.Mk)||0)/1E3,U-A}return this.iY.Je()}; var dfl={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.w(g.j_,g.p);g.W=g.j_.prototype;g.W.ag=function(){if(this.provider.videoData.enableServerStitchedDai&&this.M7){var U;(U=this.W.get(this.M7))==null||U.ag()}else this.Y&&this.Y.ag()}; g.W.X9=function(U){this.qoe&&this.qoe.X9(U)}; g.W.s9=Yl(35);g.W.il=Yl(41);g.W.Yp=function(U,Y){this.qoe&&this.qoe.Yp(U,Y)}; g.W.Et=function(){if(this.provider.videoData.enableServerStitchedDai&&this.M7){var U;(U=this.W.get(this.M7))!=null&&v$(U.Y)}else this.Y&&v$(this.Y.Y)}; g.W.Ne=function(U,Y){this.qoe&&t_E(this.qoe,U,Y);if(this.T)this.T.onError(U)}; g.W.onPlaybackRateChange=function(U){if(this.qoe)this.qoe.onPlaybackRateChange(U);this.Y&&v$(this.Y.Y)}; g.W.iQ=Yl(58);g.W.wW=function(U,Y,A){this.qoe&&this.qoe.wW(U,Y,A)}; g.W.Tb=function(U,Y,A){this.qoe&&this.qoe.Tb(U,Y,A)}; g.W.eK=function(U){var Y;(Y=this.qoe)==null||Y.eK(U)}; g.W.z3=function(U){var Y;(Y=this.qoe)==null||Y.z3(U)}; g.W.G$=function(U){this.qoe&&this.qoe.G$(U)}; g.W.HN=function(U,Y,A){this.qoe&&this.qoe.HN(U,Y,A)}; g.W.Dl=Yl(29);g.W.Gi=function(){if(this.qoe)return this.qoe.Gi()}; g.W.i9=function(){if(this.provider.videoData.enableServerStitchedDai&&this.M7){var U,Y;return(Y=(U=this.W.get(this.M7))==null?void 0:U.i9())!=null?Y:{}}return this.Y?this.Y.i9():{}}; g.W.w$=function(){var U;return(U=this.qoe)==null?void 0:U.w$()}; g.W.QX=function(U,Y){var A;(A=this.qoe)==null||A.QX(U,Y)}; g.W.eS=function(U){return this.Y?this.Y.eS(U):function(){}}; g.W.jf=function(){this.Y&&this.Y.jf()}; g.W.getVideoData=function(){return this.provider.videoData}; g.W.resume=function(){this.qoe&&this.qoe.resume()};g.w(e_,g.p); e_.prototype.Mm=function(U,Y,A){if(this.Y.has(U)){var c=this.Y.get(U);if(Y.videoId&&!TVE(c))this.T.wW("ssap",{rlc:U}),vIV(this,U);else return}if(!this.Y.has(U)){c=new Fi(Y,this.MI,this.iY);var d=Math.round(NB(this.T)*1E3);c=new g.j_(c,d);TVE(c)||this.T.wW("nqv",{vv:Y.videoId});d=this.T.getVideoData();this.Y.set(U,c);if(c.qoe){var T=c.qoe,E=d.videoId||"";T.contentCpn=d.clientPlaybackNonce;T.Hw=E}EI9(c);A===2&&(this.MI.S("html5_log_ad_playback_docid")?(A=this.T,A.qoe&&(A=A.qoe,c=Y.mH||"",d=Y.breakType|| 0,Y=Y.videoId||"",T=this.MI.Pw||"yt",g.Ez(A,g.FW(A.provider),"ad_playback",[U,c,d,Y,T]))):this.T.HN(U,Y.mH||"",Y.breakType||0))}}; e_.prototype.Hq=function(U,Y,A,c,d,T,E,L){if(U!==Y){var r=this.zk(U),l=this.zk(Y),P,V=U===((P=r.getVideoData())==null?void 0:P.clientPlaybackNonce),v;P=Y===((v=l.getVideoData())==null?void 0:v.clientPlaybackNonce);var H;v=V?((H=r.getVideoData())==null?void 0:H.videoId)||"":"nvd";var G;H=P?((G=l.getVideoData())==null?void 0:G.videoId)||"":"nvd";V&&(r=r.qoe)!=null&&(P$(r,4,T?4:d?2:0,Y,H,A),r.reportStats());P&&(ty(l),(Y=l.qoe)!=null&&(P$(Y,4,T?5:d?3:1,U,v,c),Y.reportStats()),LeS(l,new g.vh(E,l.g1)), oI8(l));L&&vIV(this,U)}}; e_.prototype.zk=function(U){U=U||this.M7;return this.Y.get(U)||this.T};g.w(g.B$,g.p);g.W=g.B$.prototype; g.W.VT=function(U,Y){this.sync();Y&&this.Y.array.length>=2E3&&this.vK("captions",1E4);Y=this.Y;if(U.length>1&&U.length>Y.array.length)Y.array=Y.array.concat(U),Y.array.sort(Y.Y);else for(var A=g.J(U),c=A.next();!c.done;c=A.next())c=c.value,!Y.array.length||Y.Y(c,Y.array[Y.array.length-1])>0?Y.array.push(c):g.Sz(Y.array,c,Y.Y);U=g.J(U);for(Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.namespace==="ad"&&this.j("ssap",{acrsid:Y.getId(),acrsst:Y.start,acrset:Y.end,acrscpt:Y.playerType});this.W=NaN;this.sync()}; g.W.H7=function(U){U.length>1E4&&g.Md(new g.Do("Over 10k cueRanges removal occurs with a sample: ",U[0]));if(!this.Ky()){for(var Y=g.J(U),A=Y.next();!A.done;A=Y.next())(A=A.value)&&A.namespace==="ad"&&this.j("ssap",{rcrid:A.getId(),rcst:A.start,rcet:A.end,rcpt:A.playerType});var c=new Set(U);this.T=this.T.filter(function(d){return!c.has(d)}); Fe8(this.Y,c);this.sync()}}; g.W.vK=function(U,Y){var A=(isNaN(this.W)?g.I(this.iY.getPlayerState(),2)?0x8000000000000:this.iY.getCurrentTime()*1E3:this.W)-Y;Y=this.ul().filter(function(c){return c.namespace===U&&c.endthis.Y,T=g.I(A,8)&&g.I(A,16),E=this.iY.NA().isBackground()||A.isSuspended();MB(this,this.Ly,T&&!E,d,"qoe.slowseek",function(){},"timeout"); var L=isFinite(this.Y);L=T&&L&&Sec(Y,this.Y);var r=!c||Math.abs(c-this.Y)>10,l=this.MI.S("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),P=c===0&&this.T&&[11,10].includes(this.T);MB(this,this.qI,L&&r&&!E&&(!l||!P),d,"qoe.slowseek",function(){Y.seekTo(U.Y)},"set_cmt"); r=L&&Vd(Y.Hb(),this.Y);var V=this.iY.loader;L=!V||V.U7();var v=function(){Y.seekTo(U.Y+.001)}; MB(this,this.Uv,r&&L&&!E,d,"qoe.slowseek",v,"jiggle_cmt");L=function(){return U.iY.QU()}; MB(this,this.yJ,r&&!E,d,"qoe.slowseek",L,"new_elem");r=vD(A);l=A.isBuffering();var H=Y.Hb(),G=Pd(H,c),F=G>=0&&H.end(G)>c+5,N=r&&l&&F;P=this.iY.getVideoData();MB(this,this.kE,c<.002&&this.Y<.002&&T&&g.Rd(this.MI)&&g.bI(P)&&!E,d,"qoe.slowseek",L,"slow_seek_shorts");MB(this,this.X,P.vg()&&T&&!E&&!P.ov,d,"qoe.slowseek",L,"slow_seek_gapless_shorts");MB(this,this.Hw,N&&!E,r&&!l,"qoe.longrebuffer",v,"jiggle_cmt");MB(this,this.ov,N&&!E,r&&!l,"qoe.longrebuffer",L,"new_elem_nnr");if(V){var e=V.getCurrentTime(); T=Y.HR();T=tRV(T,e);T=!V.isSeeking()&&c===T;MB(this,this.Tk,r&&l&&T&&!E,r&&!l&&!T,"qoe.longrebuffer",function(){Y.seekTo(e)},"seek_to_loader")}T={}; v=Pd(H,Math.max(c-3.5,0));N=v>=0&&c>H.end(v)-1.1;var B=v>=0&&v+1=0&&N&&B<11;T.close2edge=N;T.gapsize=B;T.buflen=H.length;this.T&&(T.seekSour=this.T);MB(this,this.jX,r&&l&&!E,r&&!l,"qoe.longrebuffer",function(){},"timeout",T); T=A.isSuspended();T=this.iY.j9()&&!T;MB(this,this.G,T,!T,"qoe.start15s",function(){U.iY.va("ad")},"ads_preroll_timeout"); T=this.MI.experiments.lY("html5_use_playback_rate_in_skip_slow_ad")?this.iY.getPlaybackRate()*1E3:1E3;G=c-this.j5;MB(this,this.Zf,g.bI(P)&&V,r&&!l,"qoe.longrebuffer",function(){U.iY.gB()},"reset_media_source"); MB(this,this.dW,g.bI(P)&&V,r&&!l,"qoe.longrebuffer",L,"reset_media_element");this.j===0&&(this.J=c);V=l&&this.Y===0&&c>1&&c===this.J;MB(this,this.eX,g.bI(P)&&V,r&&!l,"qoe.slowseek",function(){Y.seekTo(0)},"reseek_after_time_jump"); E=A.isOrWillBePlaying()&&!E;F=this.iY.XB()-c<6&&!F&&this.iY.k$();MB(this,this.Z,P.vg()&&E&&l&&F,r&&!l,"qoe.longrebuffer",function(){U.iY.QU(!1,!0)},"handoff_end_long_buffer_reload"); A=ES(P)&&this.T===104&&E&&(l||g.I(A,8)&&g.I(A,16));MB(this,this.Pw,A,d,"qoe.start15s",L,"gapless_slow_start");this.j=c;this.K.start()}}; S_.prototype.Ne=function(U,Y,A){Y=this.i9(Y);Y.wn=A;Y.wdup=this.W[U]?"1":"0";this.iY.Ne(new a9(U,Y));this.W[U]=!0}; S_.prototype.i9=function(U){U=Object.assign(this.iY.i9(!0),U.i9());this.Y&&(U.stt=this.Y.toFixed(3));this.iY.getVideoData().isLivePlayback&&(U.ct=this.iY.getCurrentTime().toFixed(3),U.to=this.iY.Zm().toFixed(3));delete U.uga;delete U.euri;delete U.referrer;delete U.fexp;delete U.vm;return U}; f3.prototype.reset=function(){this.Y=this.T=this.W=this.startTimestamp=0;this.j=!1}; f3.prototype.test=function(U){if(!this.K||this.T)return!1;if(!U)return this.reset(),!1;U=(0,g.y)();if(!this.startTimestamp)this.startTimestamp=U,this.W=0;else if(this.W>=this.K)return this.T=U,!0;this.W+=1;return!1}; f3.prototype.i9=function(){var U={},Y=(0,g.y)();this.startTimestamp&&(U.wsd=(Y-this.startTimestamp).toFixed());this.T&&(U.wtd=(Y-this.T).toFixed());this.Y&&(U.wssd=(Y-this.Y).toFixed());return U};g.w(Oy3,g.p);g.W=Oy3.prototype;g.W.setMediaElement=function(U){(this.mediaElement=U)?(this.mediaElement&&(this.K||this.W||!this.mediaElement.c$()||this.seekTo(.01,{Qa:"seektimeline_setupMediaElement"})),bv(this)):Qn(this)}; g.W.getCurrentTime=function(){if(p3(this.iY)){if(!isNaN(this.T))return this.T}else if(!isNaN(this.T)&&isFinite(this.T))return this.T;return this.mediaElement&&ch3(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.W||0}; g.W.PR=function(){return this.Ly}; g.W.Je=function(){return this.getCurrentTime()-this.Zm()}; g.W.bN=function(){return this.Y?this.Y.bN():Infinity}; g.W.isAtLiveHead=function(U){if(!this.Y)return!1;U===void 0&&(U=this.getCurrentTime());return xE(this.Y,U)}; g.W.mp=function(){return!!this.Y&&this.Y.mp()}; g.W.seekTo=function(U,Y){var A=Y===void 0?{}:Y;Y=A.Cd===void 0?!1:A.Cd;var c=A.E2===void 0?0:A.E2;var d=A.Dy===void 0?!1:A.Dy;var T=A.fN===void 0?0:A.fN;var E=A.Qa===void 0?"":A.Qa;var L=A.seekSource===void 0?void 0:A.seekSource;var r=A.GG===void 0?!1:A.GG;var l=A.k9===void 0?!1:A.k9;A=A.I0===void 0?!1:A.I0;r&&(U+=this.Zm());Lk(this.videoData)&&L===29&&(this.Ly=void 0);r=U=this.Sl())||!g.kp(this.videoData),P||(F={st:F,mst:this.Sl()},this.Y&&this.S("html5_high_res_seek_logging")&&(F.ht=this.Y.bN(),F.adft=hC8(this.Y)),this.iY.wW("seeknotallowed",F)),F=P));if(!F)return this.j&&(this.j=null,U53(this)),g.BO(this.getCurrentTime());F=.005;l&&this.S("html5_sabr_seek_no_shift_tolerance")&&(F=0);if(Math.abs(U-this.T)<=F&&this.ov)return this.K;E&&(F=U,(this.MI.O3()||this.S("html5_log_seek_reasons"))&&this.iY.wW("seekreason",{reason:E, tgt:F}));L&&(this.X.T=L);this.ov&&Qn(this);this.K||(this.K=new AX);U&&!isFinite(U)&&nIS(this,!1);(E=A||r)||(E=U,E=!(this.videoData.isLivePlayback&&this.videoData.W&&!this.videoData.W.Y&&!(this.mediaElement&&this.mediaElement.Ux()>0&&d4(this.mediaElement)>0)||$p(this.videoData)&&this.eq()===this.Sl(!1)?0:isFinite(E)||!$p(this.videoData)));E||(U=Oz(this,U,d));U&&!isFinite(U)&&nIS(this,!1);this.W=U;this.yJ=T;this.T=U;this.J=0;this.Y&&(d=this.Y,T=U,Stv(d,T,!1),MGX(d,T));d=this.iY;T=U;E={Cd:Y,seekSource:L}; d.rf.W=T;A=d.g3;A.mediaTime=T;A.Y=!0;E.Cd&&d.bU(E);E=T>d.videoData.endSeconds&&T>d.videoData.limitedPlaybackDurationInSeconds;d.oZ&&E&&isFinite(T)&&hiX(d);TY.start&&hiX(this.iY);return this.K}; g.W.Sl=function(U){if(!this.videoData.isLivePlayback)return oo8(this.iY);var Y;return qm(this.videoData)&&((Y=this.mediaElement)==null?0:Y.isPaused())&&this.videoData.Y?(U=this.getCurrentTime(),FM9(this.tB(U)*1E3)+U):this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&Lk(this.videoData)&&this.videoData.Y?U?this.videoData.Y.Hw||0:this.videoData.Y.uL||0:$p(this.videoData)&&this.videoData.jX&&this.videoData.Y?this.videoData.Y.Sl()+this.timestampOffset:this.videoData.W&&this.videoData.W.Y?!U&& this.Y?this.Y.bN():oo8(this.iY)+this.timestampOffset:this.mediaElement?nl()?FM9(g.M(this.mediaElement.DE()).getTime()):d4(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.W.eq=function(){if(g.KD(this.videoData)){var U=this.iY;g.KD(U.videoData);var Y,A;return(A=(Y=U.I1)==null?void 0:Y.eq())!=null?A:U.videoData.eq()}if(this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&Lk(this.videoData)){var c;return((c=this.videoData.Y)==null?void 0:c.VP)||0}Y=this.videoData?this.videoData.eq()+this.timestampOffset:this.timestampOffset;return qm(this.videoData)&&this.videoData.Y&&(A=Number((U=this.videoData.progressBarStartPosition)==null?void 0:U.utcTimeMillis)/1E3,U= this.getCurrentTime(),U=this.tB(U)-U,!isNaN(A)&&!isNaN(U))?Math.max(Y,A-U):Y}; g.W.m2=function(){this.K||this.seekTo(this.W,{Qa:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.W.Ai=function(){return this.ov&&!isFinite(this.T)}; g.W.Tn=function(){DfX(this,null);this.X.dispose();g.p.prototype.Tn.call(this)}; g.W.i9=function(){var U={};this.loader&&Object.assign(U,this.loader.i9());this.mediaElement&&Object.assign(U,this.mediaElement.i9());return U}; g.W.lc=function(U){this.timestampOffset=U}; g.W.getStreamTimeOffset=function(){return $p(this.videoData)?0:this.videoData.Y?this.videoData.Y.getStreamTimeOffset():0}; g.W.Zm=function(){return this.timestampOffset}; g.W.tB=function(U){return this.videoData&&this.videoData.Y?this.videoData.Y.tB(U-this.timestampOffset):NaN}; g.W.i6=function(){if(!this.mediaElement)return 0;if(Rp(this.videoData)){var U=this.mediaElement,Y=U.Hb();U=(Hd(Y)&&U.getDuration()?Y.end(Y.length-1):0)+this.timestampOffset-this.eq();Y=this.Sl()-this.eq();return Math.max(0,Math.min(1,U/Y))}return this.mediaElement.i6()}; g.W.xu=function(U){this.G&&(this.G.Y=U)}; g.W.hc=function(U,Y){this.iY.wW("requestUtcSeek",{time:U});Lk(this.videoData)&&(this.Ly=U);var A;(A=this.loader)==null||A.hc(U);Y&&(this.jX=Y)}; g.W.zR=function(U){Lk(this.videoData)&&(this.Ly=void 0);if(this.jX)this.iY.wW("utcSeekingFallback",{source:"streamTime",timeSeconds:this.jX}),this.iY.seekTo(this.jX,{Qa:"utcSeekingFallback_streamTime"}),this.jX=0;else{var Y=this.getCurrentTime();isNaN(Y)||(U=this.tB(Y)-U,Y-=U,this.iY.wW("utcSeekingFallback",{source:"estimate",timeSeconds:Y}),this.iY.seekTo(Y,{Qa:"utcSeekingFallback_estimate"}))}}; g.W.tM=function(){this.jX=0}; g.W.S=function(U){return this.MI&&this.MI.S(U)};g.w(mQ,g.p);mQ.prototype.start=function(){this.T.start()}; mQ.prototype.stop=function(){this.T.stop()}; mQ.prototype.clear=function(){for(var U=g.J(this.Y.values()),Y=U.next();!Y.done;Y=U.next())Y.value.clear()}; mQ.prototype.sample=function(){for(var U=g.J(this.W),Y=U.next();!Y.done;Y=U.next()){var A=g.J(Y.value);Y=A.next().value;A=A.next().value;this.Y.has(Y)||this.Y.set(Y,new rhv(VoT.has(Y)));this.Y.get(Y).update(A())}this.T.start()}; var VoT=new Set(["networkactivity"]);rhv.prototype.update=function(U){this.T?(this.buffer.add(U-this.Y||0),this.Y=U):this.buffer.add(U)}; rhv.prototype.clear=function(){this.buffer.clear();this.Y=0};n3.prototype.K0=function(){return this.started}; n3.prototype.start=function(){this.started=!0}; n3.prototype.reset=function(){this.finished=this.started=!1};var vVl=!1;g.w(g.K3,g.l6);g.W=g.K3.prototype;g.W.Tn=function(){this.logger.debug("dispose");g.Wn(this.U1);i4S(this.Wa);this.visibility.unsubscribe("visibilitystatechange",this.Wa);BHE(this);Ut(this);g.ZG.J$(this.Qo);this.dV();this.Rx=null;g.P7(this.videoData);g.P7(this.m9);g.P7(this.D4);g.P7(this.uV);g.VM(this.ImI);this.oZ=null;g.l6.prototype.Tn.call(this)}; g.W.HN=function(U,Y,A,c,d){if(this.MI.S("html5_log_ad_playback_docid")){var T=this.zk();if(T.qoe){T=T.qoe;var E=this.MI.Pw||"yt";g.Ez(T,g.FW(T.provider),"ad_playback",[U,Y,A,d,E])}}else this.zk().HN(U,Y,A);this.S("html5_log_media_perf_info")&&this.wW("adloudness",{ld:c.toFixed(3),cpn:U})}; g.W.WG=function(){var U;return(U=this.loader)==null?void 0:U.WG()}; g.W.AK=function(){var U;return(U=this.loader)==null?void 0:U.AK()}; g.W.uH=function(){var U;return(U=this.loader)==null?void 0:U.uH()}; g.W.Ck=function(){var U;return(U=this.loader)==null?void 0:U.Ck()}; g.W.h8=function(){return this.videoData.h8()}; g.W.U_=function(){return this.S("html5_not_reset_media_source")&&!this.h8()&&!this.videoData.isLivePlayback&&g.bI(this.videoData)&&!this.MI.supportsGaplessShorts()}; g.W.yc=function(){this.videoData.Z&&(this.videoData.BN=this.videoData.BN||this.df.bY().WG(),this.videoData.fl=this.videoData.fl||this.df.bY().AK());if(LM9(this.videoData)||!uI(this.videoData)){var U=this.videoData.errorDetail;this.OT(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),U,U,this.videoData.Zp||void 0)}this.S("html5_generate_content_po_token")&&this.pO();this.S("html5_enable_d6de4")&&this.bS()}; g.W.ON=function(){return this.j8}; g.W.Mm=function(){!this.sj||this.sj.Ky();this.sj=new g.j_(new Fi(this.videoData,this.MI,this));this.j8=new e_(this.MI,this,this.sj)}; g.W.getVideoData=function(){return this.videoData}; g.W.L=function(){return this.MI}; g.W.lr=function(U){return this.CJ.lr(this.Rx,U===void 0?!1:U)}; g.W.zk=function(U){if(U)a:{for(var Y=this.j8,A=g.J(Y.Y.values()),c=A.next();!c.done;c=A.next())if(c=c.value,c.getVideoData().videoId===U){U=c;break a}U=Y.T}else U=this.j8.zk();return U}; g.W.NA=function(){return this.visibility}; g.W.x9=function(){return this.mediaElement&&this.mediaElement.iz()?this.mediaElement.jc():null}; g.W.sH=function(){return this.mediaElement}; g.W.N3=function(){if(this.S("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.L().J&&this.L().houseBrandUserStatus&&this.wW("hbut",{status:this.L().houseBrandUserStatus});if(this.videoData.Bp())return!0;this.OT("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.W.AA=function(U){(U=U===void 0?!1:U)||g.KD(this.videoData)||ty(this.zk());this.Uw=U;!this.N3()||this.pR.K0()?g.Rd(this.MI)&&this.videoData.isLivePlayback&&this.pR.K0()&&!this.pR.finished&&!this.Uw&&this.dg():(this.pR.start(),U=this.zk(),NB(U),U.qoe&&je8(U.qoe),this.dg())}; g.W.dg=function(){if(this.videoData.isLoaded()){var U=this.m9;g.H_(U.Ww.experiments,"html5_player_min_build_cl")>0&&g.H_(U.Ww.experiments,"html5_player_min_build_cl")>750409904&&Rz9(U,"oldplayer");axX(this)}else this.videoData.s$||this.videoData.J1?this.Uw&&g.Rd(this.MI)&&this.videoData.isLivePlayback||(this.videoData.s$?nrc(this.videoData):(U=this.zk(),U.qoe&&(U=U.qoe,re(U,"protected"),U.provider.videoData.K?U.Eo():U.provider.videoData.subscribe("dataloaded",U.Eo,U)),ZAE(this.videoData))):!this.videoData.loading&& this.vj&&XgE(this)}; g.W.D2=function(U){this.BQ=U;this.loader&&(V44(this.loader,new g.j9(U)),this.wW("sdai",{sdsstm:1}))}; g.W.Fb=function(U){this.I1=U;this.loader&&this.loader.Fb(U)}; g.W.VN=Yl(16);g.W.isFullscreen=function(){return this.visibility.isFullscreen()}; g.W.isBackground=function(){return this.visibility.isBackground()}; g.W.kf=function(){var U=this;this.logger.debug("Updating for format change");qB(this).then(function(){return uv(U)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.W.zV=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.AA();this.N3()&&!g.I(this.playerState,128)&&(this.RZ.K0()||(this.RZ.start(),this.videoData.sx?this.Ab(lU(this.playerState,4)):this.Ab(lU(lU(this.playerState,8),1))),kqv(this))}; g.W.WJ=function(){return this.pR.finished}; g.W.sendAbandonmentPing=function(){g.I(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.H3(!0),BHE(this),g.ZG.J$(this.Qo))}; g.W.j$=function(U,Y){U=U===void 0?!0:U;(Y===void 0||Y)&&this.mediaElement&&this.mediaElement.pause();this.Ab(U?new g.z3(14):new g.z3)}; g.W.FE=function(){this.zk().Et()}; g.W.OT=function(U,Y,A,c,d,T){this.logger.debug(function(){return"set player error: ec="+U+", detail="+d}); var E,L;g.uw(tIj,A)?E=A:A?L=A:E="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+PX());if(U==="auth"||U==="drm.auth"||U==="heartbeat.stop")A&&(c+=";r."+A.replaceAll(" ","_")),T&&(c+="sr."+T.replaceAll(" ","_"));Y={errorCode:U,errorDetail:d,errorMessage:L||g.sx[E]||"",kV:E,Zp:T||"",dU:c,oH:Y,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=U;C3(this,"dataloaderror");this.Ab(r4(this.playerState,128,Y));g.ZG.J$(this.Qo);Ut(this);this.iL()}; g.W.va=function(U){this.hj=this.hj.filter(function(Y){return U!==Y}); this.logger.debug(function(){return"set preroll ready for "+U}); g.KD(this.videoData)&&!this.mD()&&this.FN.t_("pl_pr");this.RZ.K0()&&kqv(this)}; g.W.mD=function(){var U;(U=!!this.hj.length)||(U=this.v5.Y.array[0],U=!!U&&U.start<=-0x8000000000000);return U}; g.W.mp=function(){return this.rf.mp()}; g.W.isPlaying=function(){return this.playerState.isPlaying()}; g.W.Iy=function(){return this.playerState.Iy()&&this.videoData.sx}; g.W.getPlayerState=function(){return this.playerState}; g.W.kZ=function(U){var Y;(Y=this.loader)==null||Y.kZ(U)}; g.W.S7=function(U){var Y;(Y=this.loader)==null||Y.S7(U)}; g.W.getPlayerType=function(){return this.playerType}; g.W.getPreferredQuality=function(){if(this.Rx){var U=this.Rx;U=U.videoData.cR.compose(U.videoData.g_);U=Wz(U)}else U="auto";return U}; g.W.UZ=Yl(22);g.W.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.W.setMediaElement=function(U){this.logger.debug("set media element");if(this.mediaElement&&U.jc()===this.mediaElement.jc()&&(U.isView()||this.mediaElement.isView())){if(U.isView()||!this.mediaElement.isView())this.xZ(),this.mediaElement=U,this.mediaElement.iY=this,D5S(this),this.rf.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.dV();if(!this.playerState.isError()){var Y=PD(this.playerState,512);g.I(Y,8)&&!g.I(Y,2)&&(Y=lU(Y,1));U.isView()&&(Y=PD(Y,64));this.Ab(Y)}this.mediaElement= U;this.mediaElement.iY=this;!g.Rd(this.MI)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);D5S(this);this.rf.setMediaElement(this.mediaElement);this.S("html5_prewarm_media_source")&&!this.m9.Kg()&&xGX(this.mediaElement)}}; g.W.dV=function(U,Y,A){U=U===void 0?!1:U;Y=Y===void 0?!1:Y;A=A===void 0?!1:A;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();c>0&&(this.rf.W=c);this.rf.setMediaElement(null);!U&&this.U_()?OOY(this):this.Yf(A);this.loader&&(Hl(this.loader),dV(this,Y));this.NH.stop();if(this.mediaElement&&(!this.RZ.K0()&&!this.j9()||this.playerState.isError()||g.I(this.playerState,2)||this.Ab(lU(this.playerState,512)),this.mediaElement)){this.xZ();if(U||!this.mediaElement.isView())this.FN.gX("mesv_s"), this.mediaElement.stopVideo(),TS(this);this.mediaElement=this.mediaElement.iY=null}}}; g.W.playVideo=function(U,Y){U=U===void 0?!1:U;Y=Y===void 0?!1:Y;var A=this,c,d,T,E,L,r;return g.S(function(l){if(l.T==1){A.logger.debug("start play video");var P=window.google_image_requests;P&&P.length>10&&(window.google_image_requests=P.slice(-10));if(g.I(A.playerState,128))return l.return();if(A.m9.g4())return A.publish("signatureexpired"),l.return();A.mediaElement&&ty(A.zk());A.zV();(g.I(A.playerState,64)||U)&&A.Ab(lU(A.playerState,8));return A.RZ.finished&&A.mediaElement?A.Rx||!A.FC?l.uY(2): g.x(l,A.FC,3):l.return()}if(l.T!=2&&g.I(A.playerState,128))return l.return();if(!A.videoData.W)return A.videoData.isLivePlayback&&!g.za(A.MI.K,!0)?(c="html5.unsupportedlive",d=2):(c=A.videoData.h8()?"fmt.unplayable":"fmt.noneavailable",d=1),g.Md(Error("selectableFormats")),A.OT(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(A.x4()&&A.videoData.W.Y)return A.logger.debug("rebuild playbackData for airplay"),l.return(qB(A));if(p3(A))P=A.rf,V5(P.videoData)?!P.isAtLiveHead(P.getCurrentTime())&& P.mp()&&P.iY.seekTo(Infinity,{Qa:"seektimeline_peggedToLive",seekSource:34}):g.KD(P.videoData)&&P.getCurrentTime()E;if(!L||!E){T&&L&&(c=Math.max(c,T));var r;T=M9V(Y,(r=d.Y)==null?void 0:r.videoInfos);r=Y.iY.getPlaybackRate();r>1&&T&&(r=bQ4(Y.MI.K,d.Y.videoInfos,r),U.Y!==0&& r=480;if(Y.S("html5_exponential_memory_for_sticky")){l=Y.MI.mA;P=1;var V=V===void 0?!1:V;YM8(l,"sticky-lifetime");l.values["sticky-lifetime"]&&l.IZ["sticky-lifetime"]||(l.values["sticky-lifetime"]=0,l.IZ["sticky-lifetime"]=0);V&&ej(l,"sticky-lifetime")>.0625&&(P=l.IZ["sticky-lifetime"]*2); l.values["sticky-lifetime"]+=1*Math.pow(2,l.Y/P);l.IZ["sticky-lifetime"]=P;l.j.start()}if(Y.S("html5_perf_cap_override_sticky")){V=Y.W;l=Y.S("html5_perserve_av1_perf_cap");l=l===void 0?!1:l;if(l===void 0?0:l){P=KJ();U=g.J(Object.keys(P));for(Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.indexOf("1")!==0&&delete P[Y];g.fU("yt-player-performance-cap",P,2592E3)}else g.Sh("yt-player-performance-cap");OH9(l);if(l){l=g.J(p1.keys());for(P=l.next();!P.done;P=l.next())P=P.value,P.startsWith("1")||p1.delete(P); l=g.J(Uz.values());for(P=l.next();!P.done;P=l.next())P=P.value,P.startsWith("1")||Uz.delete(P);l=g.J(V.keys());for(P=l.next();!P.done;P=l.next())P=P.value,P.startsWith("1")||V.delete(P)}else p1.clear(),Uz.clear(),V.clear()}}}this.loader&&(V=this.loader,A=A||"",V.policy.Y?KN(V.j.Y,A):KN(V.Y.K,A));this.rz()}; g.W.getUserPlaybackQualityPreference=function(){return this.videoData.W&&!this.videoData.W.Y?Wz(this.videoData.cR):GC[If()]}; g.W.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.W.setUserAudio51Preference=function(U,Y){this.getUserAudio51Preference()!==U&&(this.wW("toggle51",{pref:U}),g.fU("yt-player-audio51",U,Y?31536E3:2592E3),this.kf())}; g.W.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.W.setProximaLatencyPreference=function(U){var Y=this.getProximaLatencyPreference();this.wW("proxima",{pref:U});g.fU("yt-player-proxima-pref",U,31536E3);Y!==U&&(U=this.rf,U.qI=!0,U.iY.seekTo(Infinity,{Qa:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.W.getProximaLatencyPreference=function(){var U;return(U=uc())!=null?U:0}; g.W.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.W.pO=function(){this.videoData.videoId?this.df.pO(this.videoData):this.wW("povid",{})}; g.W.bS=function(){this.videoData.videoId?this.df.bS(this.videoData):this.wW("piavid",{})}; g.W.rz=function(){if(!this.Ky()&&!g.I(this.playerState,128)&&this.videoData.W){if(this.videoData.W.Y)Ie(this);else{var U=ce(this),Y=this.videoData;a:{var A=this.videoData.qe;if(U.Y){for(var c=g.J(A),d=c.next();!d.done;d=c.next()){d=d.value;var T=d.getInfo(),E=g.mZ[T.video.quality];if((!U.W||T.video.quality!=="auto")&&E<=U.Y){A=d;break a}}A=A[A.length-1]}else A=A[0]}Y.qI=A;Sx4(this,U.reason,KNY(this,this.videoData.qI))}if(this.S("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.rf.Z= !1,this.playVideo()}}; g.W.Vo=function(U,Y){if(this.Ky()||g.I(this.playerState,128))return!1;var A,c=!((A=this.videoData.W)==null||!A.Y);A=c&&Y?this.getCurrentTime()-this.Zm():NaN;if(this.MI.experiments.lY("html5_record_audio_format_intent")){var d=this.zk();if(d.qoe){d=d.qoe;var T=[U.b$.id,isNaN(A)?"m":"t"];g.Ez(d,g.FW(d.provider),"afi",T)}}if(c)return Y&&(c=uxc(this.rf),this.wW("aswh",{id:U.id,xtags:U.xtags,bh:c.toFixed(3)})),this.loader.setAudioTrack(U,A,Y),!0;if(bOc(this)){a:{Y=this.mediaElement.audioTracks();for(c= 0;c=0?U:this.getCurrentTime()}; g.W.tB=function(){var U;return((U=this.videoData.Y)==null?0:U.tB)?this.videoData.Y.tB(this.getCurrentTime()-this.Zm()):this.mediaElement&&(U=this.mediaElement.DE())&&(U=U.getTime(),!isNaN(U))?U/1E3+this.getCurrentTime():NaN}; g.W.getDuration=function(U){return g.KD(this.videoData)&&this.I1?U?NiX(this.I1,U):Et(this.I1):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Zm():this.Sl()?this.Sl():0}; g.W.Nc=function(){var U=new $f3;if(this.loader){var Y=this.MI.schedule,A=this.MI.O3();A=A===void 0?!1:A;U.DP=Y.ov;U.cU=Y.yJ;U.bandwidthEstimate=N0(Y);if(A){A=(Y.Z.Y4()*1E3).toFixed();var c=(Y.QJ.Y4()*1E3).toFixed(),d=Jv(Y).toFixed(2),T=((Y.G.Y4()||0)*1E9).toFixed(2),E=Y.W.Y4().toFixed(0),L=Y.eX.Y4().toFixed(0),r=Y.X.percentile(.5).toFixed(2),l=Y.X.percentile(.92).toFixed(2),P=Y.X.percentile(.96).toFixed(2),V=Y.X.percentile(.98).toFixed(2);Y.Y?Y.Y.reset():Y.Y=new PI;Y.Y.add(Y.jX);Y.Y.add(Y.interruptions.length); for(var v=0,H=Y.interruptions.length-1;H>=0;H--){var G=Y.interruptions[H];Y.Y.add(G-v);v=G}v=0;for(H=Y.j.length-1;H>=0;H--){G=Y.j[H];var F=G.stamp/36E5;Y.Y.add(F-v);v=F;Y.Y.add(G.net/1E3);Y.Y.add(G.max)}Y=Y.Y.jS();U.Y={ttr:A,ttm:c,d:d,st:T,bw:E,abw:L,v50:r,v92:l,v96:P,v98:V,"int":Y}}PRV(this.loader,U)}else this.mediaElement&&(U.zc=T3(this.mediaElement));U.DP=this.DP;U.cU=this.cU;U.W=this.isAtLiveHead()&&this.isPlaying()?tDv(this):NaN;return U}; g.W.mL=function(U,Y){this.cU+=U;this.DP+=Y}; g.W.i6=function(){return this.mediaElement?g.kp(this.videoData)?1:Rp(this.videoData)?this.isAtLiveHead()||this.mp()?1:this.rf.i6():this.mediaElement.i6():0}; g.W.S0=function(){var U=this.Gv,Y=yn(U,"bandwidth"),A=yn(U,"bufferhealth"),c=yn(U,"livelatency"),d=yn(U,"networkactivity"),T=ge(U,"bandwidth"),E=ge(U,"bufferhealth"),L=ge(U,"livelatency");U=ge(U,"networkactivity");var r=this.aH(),l=r.droppedVideoFrames;r=r.totalVideoFrames;var P=this.getCurrentTime();if(this.Xy){var V="IT/"+(this.Xy.Y.getInfo()+"/"+Wz(this.MH()));V+="/"+this.Xy.getInfo()}else V="";var v=this.isGapless(),H=this.KF(),G=this.Gi(),F=g.AW(this),N=this.getPlayerState(),e=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var B=0;var f="";if(this.BQ){if(this.BQ.zG){f="D,";break a}B=this.BQ.nk();f=this.BQ.jr().substring(0,4)}else this.I1&&(B=this.I1.nk(),f=this.I1.jr().substring(0,4));B>0?(B="AD"+B+", ",f&&(B+=f+", "),f=B):f=""}return{C8:T,Ga:E,currentTime:P,Mc:V,droppedVideoFrames:l,isGapless:v,KF:H,Yb:G,Zv:Y,l4:A,qL:c,a$:d,nx:L,gr:U,z_:F,playerState:N,RL:e,zv:f,totalVideoFrames:r}}; g.W.i9=function(U){var Y={};if(U===void 0?0:U){Object.assign(Y,this.zk().i9());this.mediaElement&&(Object.assign(Y,this.mediaElement.i9()),U=this.aH(),Y.dvf=U.droppedVideoFrames,Y.tvf=U.totalVideoFrames);this.loader&&Object.assign(Y,this.loader.i9());this.Xy&&(Y.drm=JSON.stringify(this.Xy.i9()));Y.state=this.playerState.state.toString(16);g.I(this.playerState,128)&&(Y.debug_error=JSON.stringify(this.playerState.Pb));this.mD()&&(Y.prerolls=this.hj.join(","));this.videoData.nU&&(Y.ismb=this.videoData.nU); this.videoData.latencyClass!=="UNKNOWN"&&(Y.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(Y.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)Y.is_mosaic=1;this.videoData.cotn&&(Y.is_offline=1,Y.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(Y.playerResponseCpn=this.videoData.playerResponseCpn);this.df.isOrchestrationLeader()&&(Y.leader=1);this.videoData.isLivePlayback&& (this.videoData.Y&&x2(this.videoData.Y)&&(Y.segduration=x2(this.videoData.Y)),U=this.rf,Y.lat=U.G?kSX(U.G.j):0,Y.liveutcstart=this.videoData.liveUtcStartSeconds);Y.relative_loudness=this.videoData.Vt.toFixed(3);if(U=g.AW(this))Y.optimal_format=U.video.qualityLabel;Y.user_qual=If();Y.release_version=z[18];g.KD(this.videoData)&&this.I1&&(Y.ssap=gZ(this.I1))}Y.debug_videoId=this.videoData.videoId;return Y}; g.W.addCueRange=function(U){this.MN([U])}; g.W.removeCueRange=function(U){this.v5.H7([U])}; g.W.wj=function(){this.v5.sync()}; g.W.vK=function(U,Y){return this.v5.vK(U,Y)}; g.W.MN=function(U,Y){this.v5.VT(U,Y)}; g.W.WU=function(U){this.v5.H7(U)}; g.W.NT=function(U){var Y=this.v5;U.length<=0||Y.Ky()||(U=Y.Y,U.array.sort(U.Y))}; g.W.ul=function(){return this.v5.ul()||[]}; g.W.Eq=function(){return this.HJ}; g.W.x4=function(){return this.visibility.x4()}; g.W.zr=function(){this.mediaElement&&this.mediaElement.zr()}; g.W.ulv=function(){C3(this)}; g.W.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.W.xZ=function(){g.Rb(this.LK)}; g.W.Ay=function(){this.ya();this.publish("onLoadProgress",this.i6())}; g.W.g7=function(U){var Y=U.target.Fj();if(this.mediaElement&&this.mediaElement.Fj()&&this.mediaElement.Fj()===Y){daY(this,U.type);switch(U.type){case "error":var A=oh(this.mediaElement)||"",c=this.mediaElement.uB();if(A==="capability.changed"){this.S("html5_restart_on_capability_change")?(this.wW("capchg",{msg:c}),this.QU(!0)):qB(this);return}if(this.mediaElement.hasError()&&(ez9(this.m9,A,{msg:c})||g.KD(this.videoData)&&this.I1&&(c=this.playerState.Pb,this.I1.handleError(A,c==null?void 0:c.oH))))return; if(this.isBackground()&&this.mediaElement.C3()===4){this.iL();YI(this,"unplayable");return}break;case "durationchange":A=this.mediaElement.getDuration();isFinite(A)&&(!this.Ov||A>0)&&A!==1&&this.sL(A);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());jR3(this.v5);this.zk().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Eo4(this);this.publish("onLoadedMetadata");u_Y(this);A=this.tB();this.videoData.Ft&&(this.videoData.Ft= A);break;case "loadstart":u_Y(this);break;case "progress":case "suspend":g.H_(this.MI.experiments,"html5_progress_event_throttle_ms")>0?this.vO.Aq():this.Ay();break;case "playing":this.FN.gX("plev");this.ES&&!p3(this)&&(this.ES=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Qa:"videoplayer_onPlaying"})));break;case "timeupdate":A=this.mediaElement&&!this.mediaElement.getCurrentTime();c=this.mediaElement&&this.mediaElement.Ux()===0;if(A&&(!this.du|| c))return;this.du=this.du||!!this.mediaElement.getCurrentTime();Ixl(this);this.ya();if(!this.mediaElement||this.mediaElement.Fj()!==Y)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.HR().length>0&&this.mediaElement.Hb().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;if(this.S("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Ux()>2||!this.mediaElement.isSeeking()&& Vd(this.mediaElement.Hb(),this.mediaElement.getCurrentTime()))){var d=this.mediaElement.i9();d.bh=T3(this.mediaElement).toFixed(3);this.wW("uwe",d)}if(g.KD(this.videoData)&&this.I1){d=this.I1;var T=this.mediaElement.getCurrentTime();if(!d.pm.has(d.s3)){var E=0,L=0,r=S6(d.timeline,d.s3);if(r==null?0:r.length)for(r=g.J(r),r=r.next();!r.done;r=r.next()){L=r.value;E=L.KV();L=L.Wg();break}if(!(L>0&&L>T*1E3+d.OhW)&&(L=e1c(d,E))){T=!1;E=void 0;L=g.J(L.segments);for(r=L.next();!r.done;r=L.next()){r=r.value; if(T){E=r;break}r.DA()===d.s3&&(T=!0)}L=void 0;E?L=E.DA():T&&(L=(A=d.timeline.Y)==null?void 0:A.DA());L?d.finishSegmentByCpn(d.s3,L,2,void 0):d.api.wW("ssap",{mfnc:1,mfncc:(c=d.timeline.Y)==null?void 0:c.DA()})}}}break;case "resize":Eo4(this);this.videoData.T&&this.videoData.T.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Ef&&g.I(this.playerState,8)&&!g.I(this.playerState,1024)&&this.getCurrentTime()===0&&g.iW){YI(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.Fj()===Y){oVl(this.rf,U,this.I1||void 0);this.publish("videoelementevent",U);Y=this.playerState;c=this.g3;T=this.mediaElement;E=this.MI.experiments;A=this.videoData.clientPlaybackNonce;r=g.KD(this.videoData)&&this.I1?Et(this.I1):void 0;if(!g.I(Y,128)){d=Y.state;T=T?T:U.target;L=T.getCurrentTime();if(!g.I(Y,64)||U.type!=="ended"&&U.type!=="pause"){r=r||T.getDuration();r=T.isEnded()||L>1&&Math.abs(L-r)<1.1;var l=U.type==="pause"&&T.isEnded();L=U.type=== "ended"||U.type==="waiting"||U.type==="timeupdate"&&!g.I(Y,4)&&!Xi(c,L);if(l||r&&L)T.X1()>0&&T.Fj()&&(d=14);else switch(U.type){case "error":oh(T)&&(d|=128);break;case "pause":g.I(Y,256)?(d^=256)||(d=64):g.I(Y,32)||g.I(Y,2)||g.I(Y,4)||(d=4,g.I(Y,1)&&g.I(Y,8)&&(d|=1));break;case "playing":E=d;d=(d|8)&-1093;E&4?(d|=1,LQ(c,T,!0)):Xi(c,T.getCurrentTime())&&(d&=-2);g.I(Y,1)&&LQ(c,T)&&(d|=1);break;case "seeking":d|=16;g.I(Y,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;LQ(c,T,!0);break;case "waiting":g.I(Y, 2)||(d|=1);LQ(c,T);break;case "timeupdate":E=g.I(Y,16);L=g.I(Y,4);(g.I(Y,8)||E)&&!L&&Xi(c,T.getCurrentTime())&&(d=8);LQ(c,T)&&(d|=1);break;case "progress":case "suspend":E.lY("html5_track_underruns_on_progress")&&LQ(c,T)}}c=d;d=null;c&128&&(d=U.target,T=oh(d),E=1,T?(T==="capability.changed"&&(E=2),L="GENERIC_WITHOUT_LINK",r=d.i9(),r.mediaElem="1",/AUDIO_RENDERER/.test(d.uB())&&(L="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:T,errorMessage:g.sx[L]||"",kV:L,dU:R9(r),oH:E,cpn:Y.Pb?Y.Pb.cpn:""}):d=null, d&&(d.cpn=A));Y=r4(Y,c,d)}!g.I(this.playerState,1)&&g.I(Y,1)&&cVX(this,"evt"+U.type);this.Ab(Y)}}}; g.W.S3f=function(U){U=U.Y.availability==="available";U!==this.HJ&&(this.HJ=U,this.publish("airplayavailabilitychange"))}; g.W.kkv=function(){var U=(0,g.y)(),Y=this.mediaElement.x4();this.wW("airplay",{ia:Y});!Y&&!isNaN(this.Eu)&&U-this.Eu<2E3||(this.Eu=U,Y!==this.x4()&&(U=this.visibility,U.Y!==Y&&(U.Y=Y,U.Wa()),this.wW("airplay",{rbld:Y}),this.kf()),this.publish("airplayactivechange"))}; g.W.oy=function(U){if(this.loader){var Y=this.loader,A=Y.W,c=Y.getCurrentTime(),d=Date.now()-A.X;A.X=NaN;A.wW("sdai",{adfetchdone:U,d:d});U&&!isNaN(A.G)&&A.T!==3&&Zy(A.loader,c,A.G,A.J);A.policy.j?A.K=NaN:A.j=NaN;pN(A,4,A.T===3?"adfps":"adf");Hl(Y)}}; g.W.EX=function(){g.Wn(this.U1);this.NH.stop();this.videoData.ov=!0;this.MI.pc=!0;this.MI.Tk=0;var U=this.m9;if(U.videoData.T){var Y=U.Ww.K,A=U.videoData.T.Rv;Y.j.has(A)&&(Y.j.delete(A),Y.T=!0)}U.Y.stop();this.zF();g.I(this.playerState,8)&&this.Ab(PD(this.playerState,65));this.Uw=!1;oI8(this.zk());g.uQ(this.D4);this.publish("playbackstarted");(U=g.u8("yt.scheduler.instance.clearPriorityThreshold"))?U():cA(0)}; g.W.zF=function(){var U=this.df.XY(),Y={},A={};!yl("pbs",this.FN.timerName)&&Rl.measure&&Rl.getEntriesByName&&(Rl.getEntriesByName("mark_nr")[0]?Kw9("mark_nr"):Kw9());U.videoId&&(Y.videoId=U.videoId);U.clientPlaybackNonce&&!this.S("web_player_early_cpn")&&(Y.clientPlaybackNonce=U.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(A.isPausedOnLoad=!0);A.itag=U.T?Number(U.T.itag):-1;U.kC&&(A.preloadType=String(this.ML?2:1));Y.liveStreamMode=Cxo[jt(U)];Y.playerInfo=A;this.FN.infoGel(Y); if(this.loader){U=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(U.W&&(Y=window.performance.getEntriesByName(U.W),Y.length&&(Y=Y[0],U.tick("vri",Y.fetchStart),U.tick("vdns",Y.domainLookupEnd),U.tick("vreq",Y.requestStart),U.tick("vrc",Y.responseEnd))),U.T&&(Y=window.performance.getEntriesByName(U.T),Y.length&&(Y=Y[0],U.tick("ari",Y.fetchStart),U.tick("adns",Y.domainLookupEnd),U.tick("areq",Y.requestStart),U.tick("arc",Y.responseEnd))));U=U.ticks;for(var c in U)U.hasOwnProperty(c)&& this.FN.tick(c,U[c])}}; g.W.ya=function(U){var Y=this;U=U===void 0?!1:U;if(this.mediaElement&&this.videoData){Kec(this.rf,this.isPlaying());var A=this.getCurrentTime();!this.loader||g.I(this.playerState,4)&&g.kp(this.videoData)||g.I(this.playerState,32)&&Lk(this.videoData)||GOV(this.loader,A);A>5&&(this.rf.W=A);var c=g.AQ();c?g.ZG.J$(this.Qo):g.Gw(this.Qo);var d=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!d||qm(this.videoData))&&!g.I(this.playerState,128)){var T=function(){if(Y.mediaElement&&!g.I(Y.playerState, 128)){Y.MI.O3()&&daY(Y,"pfx");var E=Y.getCurrentTime();Y.S("html5_buffer_underrun_transition_fix")&&(E-=Y.Zm());var L=T3(Y.mediaElement),r=g.I(Y.playerState,8),l=Xi(Y.g3,E),P=bV4(Y.g3,E,(0,g.y)(),L);r&&l?Y.Ab(PD(Y.playerState,1)):r&&P?(r=Y.getDuration(),l=V5(Y.videoData),r&&Math.abs(r-E)<1.1?(Y.wW("setended",{ct:E,bh:L,dur:r,live:l}),Y.mediaElement.h1()?(Y.logger.debug("seek to 0 because of looping"),Y.seekTo(0,{Qa:"videoplayer_loop",seekSource:37})):Y.j$()):(Y.playerState.isBuffering()||cVX(Y,"progress_fix"), Y.Ab(lU(Y.playerState,1)))):(r&&!l&&!P&&E>0&&(r=(Date.now()-Y.UX)/1E3,l=Y.getDuration(),E>l-1&&Y.wW("misspg",{t:E.toFixed(2),d:l.toFixed(2),r:r.toFixed(2),bh:L.toFixed(2)})),Y.playerState.isPaused()&&Y.playerState.isBuffering()&&T3(Y.mediaElement)>5&&Y.Ab(PD(Y.playerState,1)));Y.ya()}}; this.mediaElement.HR().length===0?this.Qo=c?g.ZG.iN(T,100):g.vn(T,100):this.Qo=c?g.ZG.iN(T,500):g.vn(T,500)}this.videoData.kE=A;this.I1&&this.I1.vr();!U&&this.isPlaying()&&qxE(this);Djl(this.CJ,this.Rx,this.sH(),this.isBackground())&&Ie(this);this.publish("progresssync",U);d&&qm(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.W.dH=function(){this.OT("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.W.Gi=function(){return this.zk().Gi()}; g.W.qm=function(){return this.loader?this.loader.qm():N0(this.MI.schedule,!0)}; g.W.Ab=function(U){if(!g.$0(this.playerState,U)){this.logger.debug(function(){return"Setting state "+U.toString()}); var Y=new g.vh(U,this.playerState);this.playerState=U;TJV(this);var A=!this.Sm.length;this.Sm.push(Y);var c=this.mediaElement&&this.mediaElement.isSeeking();c=Y.oldState.state===8&&!c;g.Gg(Y,1)&&c&&g.I(this.playerState,8)&&!g.I(this.playerState,64)&&this.loader&&(bk3(this.loader),this.mediaElement&&T3(this.mediaElement)>=5&&y0E(this.CJ,this.Rx)&&Ie(this));(c=g.H_(this.MI.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.I(U,1)&&(g.I(U,8)||g.I(U,16))?this.iV.start(c):this.iV.stop();(Hh(Y, 8)<0||g.Gg(Y,1024))&&this.NH.stop();!g.Gg(Y,8)||this.videoData.ov||g.I(Y.state,1024)||this.NH.start();g.I(Y.state,8)&&Hh(Y,16)<0&&!g.I(Y.state,32)&&!g.I(Y.state,2)&&this.playVideo();g.I(Y.state,2)&&Rp(this.videoData)&&(this.sL(this.getCurrentTime()),this.ya(!0));g.Gg(Y,2)&&(this.H3(!0),this.MI.O3()&&this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&Lk(this.videoData)&&this.videoData.Y&&(c={minst:""+this.videoData.Y.VP,cminst:""+(this.videoData.Y.eq()+this.Zm()),maxst:""+this.videoData.Y.uL, hts:""+this.videoData.Y.Hw,cmaxst:""+(this.videoData.Y.Sl()+this.Zm())},this.wW("sabrSeekableBoundaries",c)));g.Gg(Y,128)&&this.iL();this.videoData.Y&&this.videoData.isLivePlayback&&!this.MX&&(Hh(Y,8)<0?HQ9(this.videoData.Y):g.Gg(Y,8)&&this.videoData.Y.resume());IlX(this.rf,Y);LeS(this.zk(),Y);if(A&&!this.Ky())try{for(var d=g.J(this.Sm),T=d.next();!T.done;T=d.next()){var E=T.value;NVc(this.v5,E);this.publish("statechange",E)}}finally{this.Sm.length=0}}}; g.W.z7=function(){this.FN.tick("qoes")}; g.W.m2=function(){this.rf.m2()}; g.W.pW=function(U,Y,A,c){a:{var d=this.m9;c=c===void 0?"LICENSE":c;A=A.substring(0,256);var T=xP(Y);U==="drm.keyerror"&&this.Xy&&this.Xy.T.keys.length>1&&d.j<96&&(U="drm.sessionlimitexhausted",T=!1);var E=d.Ww.experiments.lY("html5_retry_on_drm_unavailable"),L=d.Ww.experiments.lY("html5_retry_on_drm_key_error"),r=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(E&&U==="drm.unavailable"||L&&U==="drm.keyerror"&&!A.match(r))d.Ne("qoe.restart",{retryOnDrmError:1,e:U,detail:A}),d.iY.QU(!0);else{if(T)if(d.videoData.T&& d.videoData.T.video.isHdr())xjX(d,U);else{if(d.iY.OT(U,Y,c,A),jFv(d,{detail:A}))break a}else d.Ne(U,{detail:A});U==="drm.sessionlimitexhausted"&&(d.wW("retrydrm",{sessionLimitExhausted:1}),d.j++,AVV(d.iY))}}}; g.W.Den=function(){var U=this,Y=g.H_(this.MI.experiments,"html5_license_constraint_delay"),A=Au();Y&&A?(Y=new g.IM(function(){U.rz();C3(U)},Y),g.Z(this,Y),Y.start()):(this.rz(),C3(this))}; g.W.QI=function(U){this.publish("heartbeatparams",U)}; g.W.EZ=function(U){this.wW("keystatuses",uFl(U));var Y="auto",A=!1;this.videoData.T&&(Y=this.videoData.T.video.quality,A=this.videoData.T.video.isHdr());a:{switch(Y){case "highres":case "hd2880":Y="UHD2";break;case "hd2160":case "hd1440":Y="UHD1";break;case "hd1080":case "hd720":Y="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Y="SD";break;default:Y="";break a}A&&(Y+="HDR")}Y=XW(U)?kw(U,Y):U.j.includes(Y);this.videoData.UO=U.UO;if(this.S("html5_enable_vp9_fairplay")){if(A)if(U.G){var c; if((c=this.Xy)==null?0:I7(c.Y))if((A=this.Xy)==null)A=0;else{for(var d=c=void 0,T=g.J(A.T.values()),E=T.next();!E.done;E=T.next())E=E.value,c||(c=qbc(E,"SD")),d||(d=qbc(E,"AUDIO"));A.rF({sd:c,audio:d});A=c==="output-restricted"||d==="output-restricted"}else A=!Y;if(A){this.wW("drm",{dshdr:1});xjX(this.m9);return}}else{this.videoData.MD||(this.videoData.MD=!0,this.wW("drm",{dphdr:1}),this.QU(!0));return}var L;if((L=this.Xy)==null?0:I7(L.Y))return}else if(L=U.G&&Y,A&&!L){xjX(this.m9);return}Y||kw(U, "AUDIO")&&kw(U,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),U=uFl(U),this.fE?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.S("html5_report_fatal_drm_restricted_error_killswitch")||this.OT("drm.keyerror",2,void 0,"info."+U)):(this.fE=!0,this.Ne(new a9("qoe.restart",Object.assign({},{retrydrm:1},U))),Ie(this),AVV(this)))}; g.W.uYY=function(){if(!this.videoData.ov&&this.mediaElement&&!this.isBackground()){var U="0";this.mediaElement.Ux()>0&&T3(this.mediaElement)>=5&&this.videoData.W&&this.videoData.W.Y&&(this.Ab(lU(this.playerState,1)),cVX(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),U="1");TJV(this);var Y=this.videoData.W;U={restartmsg:U,mfmt:!Tk(this.videoData),mdrm:!(!(Y&&Y.videoInfos&&Y.videoInfos.length&&Y.videoInfos[0].JB)||this.Xy),mfmtinfo:!this.videoData.T,prerolls:this.mD()?this.hj.join(","): "0"};if(this.Xy){Y=this.Xy;if(Y.T.size<=0){var A="ns;";Y.X||(A+="nr;");Y=A+="ql."+Y.W.length}else Y=uFl(Y.T.values().next().value),Y=R9(Y);U.drmp=Y}var c;Object.assign(U,((c=this.loader)==null?void 0:c.i9())||{});var d;Object.assign(U,((d=this.mediaElement)==null?void 0:d.i9())||{});this.zk().Ne("qoe.start15s",R9(U));this.publish("loadsofttimeout")}}; g.W.sL=function(U){this.videoData.lengthSeconds!==U&&(this.videoData.lengthSeconds=U,C3(this))}; g.W.H3=function(U,Y){var A=this;U=U===void 0?!1:U;if(!this.lM)if(yl("att_s","player_att")||D5("att_s",void 0,"player_att"),this.S("use_rta_for_player"))(function(){var d,T,E,L;return g.S(function(r){switch(r.T){case 1:if(!(d=U)){r.uY(2);break}return g.x(r,g.tHE(),3);case 3:d=!r.Y;case 2:if(d)return r.return();g.J3(r,4);T=PPc(A.zk());if(!T)throw Error();E={};return g.x(r,g.Nn3((E.cpn=A.videoData.clientPlaybackNonce,E.encryptedVideoId=A.videoData.videoId||"",E),3E4),6);case 6:L=r.Y;if(A.lM)throw Error(); if(!L.challenge)throw g.Md(Error("Not sending attestation ping; no attestation challenge string")),Error();A.lM=!0;var l=[L.challenge];L.error?l.push("r1c="+L.error):L.webResponse&&l.push("r1a="+L.webResponse);var P;((P=L.adblockReporting)==null?void 0:P.reportingStatus)!==void 0&&l.push("r6a="+L.adblockReporting.reportingStatus);var V;((V=L.adblockReporting)==null?void 0:V.broadSpectrumDetectionResult)!==void 0&&l.push("r6b="+L.adblockReporting.broadSpectrumDetectionResult);T(l.join("&"));D5("att_f", void 0,"player_att");g.t3(r,0);break;case 4:g.XE(r),D5("att_e",void 0,"player_att"),g.i8(r)}})})().then(function(){Y==null||Y()}); else{var c=new g.fTY(this.videoData);if("c1a"in c.gC&&!g.mB.isInitialized()){D5("att_wb",void 0,"player_att");this.jQ===2&&Math.random()<.01&&g.Md(Error("Botguard not available after 2 attempts"));if(U)return;if(this.jQ<5){g.uQ(this.uV);this.jQ++;return}}(c=g.hhV(c))?(D5("att_f",void 0,"player_att"),llX(this.zk(),c),this.lM=!0):D5("att_e",void 0,"player_att")}}; g.W.XB=function(U){U=U===void 0?!1:U;if(V5(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.mp()||g.kp(this.videoData)))U=this.getCurrentTime();else if(g.KD(this.videoData)&&this.I1){U=this.I1;var Y=this.getCurrentTime();U=(U=JsX(U,Y*1E3))?(U.Wg()-U.KV())/1E3:0}else U=this.Sl(U);return U}; g.W.mK=function(){return g.KD(this.videoData)?this.videoData.eq():this.eq()}; g.W.Sl=function(U){return this.rf.Sl(U===void 0?!1:U)}; g.W.eq=function(){return this.rf.eq()}; g.W.Zm=function(){return this.rf?this.rf.Zm():0}; g.W.getStreamTimeOffset=function(){return this.rf?this.rf.getStreamTimeOffset():0}; g.W.d9=function(){var U=0;this.MI.S("web_player_ss_media_time_offset")&&(U=this.getStreamTimeOffset()===0?this.Zm():this.getStreamTimeOffset());return U}; g.W.setPlaybackRate=function(U){var Y;this.playbackRate!==U&&M9V(this.CJ,(Y=this.videoData.W)==null?void 0:Y.videoInfos)&&(this.playbackRate=U,Ie(this));this.playbackRate=U;this.mediaElement&&this.mediaElement.setPlaybackRate(U)}; g.W.getPlaybackRate=function(){return this.playbackRate}; g.W.getPlaybackQuality=function(){var U="unknown";if(this.videoData.T&&(U=this.videoData.T.video.quality,U==="auto"&&this.mediaElement)){var Y=this.x9();Y&&Y.videoHeight>0&&(U=O7(Y.videoWidth,Y.videoHeight))}return U}; g.W.isHdr=function(){return!!(this.videoData.T&&this.videoData.T.video&&this.videoData.T.video.isHdr())}; g.W.jf=function(){this.zk().jf()}; g.W.sendVideoStatsEngageEvent=function(U,Y){var A=this.zk();A.Y?(A=W$(A.Y,"engage"),A.ov=U,A.send(Y)):Y&&Y()}; g.W.eS=function(U){return this.zk().eS(U)}; g.W.isAtLiveHead=function(U,Y){Y=Y===void 0?!1:Y;return V5(this.videoData)&&(this.Eh||Y)?this.rf.isAtLiveHead(U):!1}; g.W.NF=function(){var U=this.Sl(),Y=this.getCurrentTime(),A;(A=!V5(this.videoData))||(A=this.rf,A=!(A.Y&&A.Y.W));return A||this.mp()||isNaN(U)||isNaN(Y)?0:Math.max(0,U-Y)}; g.W.h6=function(U){(this.Eh=U)||this.NH.stop();this.videoData.Y&&(U?this.videoData.Y.resume():HQ9(this.videoData.Y));if(this.loader){var Y=this.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&this.j9()&&this.videoData.isLivePlayback;U&&!Y?this.loader.resume():dV(this,!0)}g.I(this.playerState,2)||U?g.I(this.playerState,512)&&U&&this.Ab(PD(this.playerState,512)):this.Ab(lU(this.playerState,512));Y=this.zk();Y.qoe&&(Y=Y.qoe,g.Ez(Y,g.FW(Y.provider),"stream",[U?"A":"I"]))}; g.W.LW=function(U){U={n:U.name,m:U.message};this.zk().Ne("player.exception",R9(U))}; g.W.Dl=Yl(28);g.W.iQ=Yl(57);g.W.X9=function(U){this.zk().X9(U)}; g.W.eK=function(U){this.zk().eK(U)}; g.W.G$=function(U){this.zk().G$(U)}; g.W.s9=Yl(34);g.W.il=Yl(40);g.W.z3=function(U){this.zk().z3(U)}; g.W.Hk=function(){this.wW("hidden",{},!0)}; g.W.aH=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.W.U7=function(){return this.loader?this.loader.U7():!0}; g.W.setLoop=function(U){this.loop=U;this.mediaElement&&!g.Rd(this.MI)&&this.mediaElement.setLoop(U)}; g.W.h1=function(){return this.mediaElement&&!g.Rd(this.MI)?this.mediaElement.h1():this.loop}; g.W.lc=function(U){this.wW("timestamp",{o:U.toString()});this.rf.lc(U)}; g.W.pU=function(U){this.FN.tick(U)}; g.W.t_=function(U){return this.FN.t_(U)}; g.W.gX=function(U){this.FN.gX(U)}; g.W.wW=function(U,Y,A){A=A===void 0?!1:A;this.zk().wW(U,Y,A)}; g.W.Kd=function(U,Y,A){A=A===void 0?!1:A;this.zk().wW(U,Y,A)}; g.W.Ne=function(U){this.zk().Ne(U.errorCode,R9(U.details));U=U.errorCode;if(this.videoData.isLivePlayback&&(U==="qoe.longrebuffer"||U==="qoe.slowseek")||U==="qoe.restart"){U=this.loader?I7l(this.loader.videoTrack):{};var Y,A;this.wW("lasoe",Object.assign(this.loader?I7l(this.loader.audioTrack):{},(Y=this.Ov)==null?void 0:(A=Y.Y)==null?void 0:A.RY()));var c,d;this.wW("lvsoe",Object.assign(U,(c=this.Ov)==null?void 0:(d=c.T)==null?void 0:d.RY()))}}; g.W.Tb=function(U,Y,A){this.zk().Tb(U,Y,A)}; g.W.ou=function(U,Y,A,c,d,T,E,L){var r;if((r=this.videoData.Y)!=null&&r.isLive){var l=Y.playerType===2?Y:U,P=U.videoData.videoId,V=Y.videoData.videoId;if(P&&V){r=this.zk();if(r.qoe){var v=r.qoe,H=U.cpn,G=Y.cpn,F=l.videoData.mH,N=v.provider.videoData.clientPlaybackNonce,e=v.provider.videoData.videoId,B=G!==N&&V!==e;N=H!==N&&P!==e;v.reportStats();v.adCpn&&v.adCpn!==H||(v.adCpn=N?H:"",v.KQ=N?P:"",v.adFormat=N?F:void 0,P$(v,2,T?4:d?2:0,G,V,c),v.reportStats(),v.adCpn=B?G:"",v.KQ=B?V:"",v.adFormat=B?F: void 0,P$(v,2,T?5:d?3:1,H,P,A),v.reportStats())}A=U.cpn;if(r.W.has(A)){if(d=g.M(r.W.get(A)),Jy(d,!0).send(),iv(d),A!==r.provider.videoData.clientPlaybackNonce){Cv8(d);var f;(f=r.Y)==null||DB4(f);r.W.delete(A)}}else r.M7=r.provider.videoData.clientPlaybackNonce,r.M7&&r.Y&&(r.W.set(r.M7,r.Y),Jy(r.Y).send(),iv(r.Y));f=Y.cpn;l=l.videoData;c-=this.d9();if(r.W.has(f)){c=g.M(r.W.get(f));var h=c.W&&isNaN(c.K)?we(c):NaN;c=qzE(c,!1);isNaN(h)||(c.G=h);c.send()}else c=VGE(r,r.provider,l,c),r.W.set(f,c),Uf3(c, new g.vh(lU(new g.z3,8),new g.z3)),nE9(c),(h=r.Y)==null||iv(h);r.M7=f;this.S("html5_unify_csi_server_stitched_transition_logging")?K43(this.FN,U.cpn,Y.cpn,this.videoData.clientPlaybackNonce,Y.videoData,E,void 0,L):(r=this.FN,c=this.videoData.clientPlaybackNonce,h=Y.videoData,U=(U.cpn===c?"video":"ad")+"_to_"+(Y.cpn===c?"video":"ad"),c={},h.J&&(c.cttAuthInfo={token:h.J,videoId:h.videoId}),E&&(c.startTime=E),gs(U,c),g.OX({targetVideoId:h.videoId,targetCpn:Y.cpn,isSsdai:!0},U),r.MI.S("html5_enable_ssdai_transition_with_only_enter_cuerange")? E||Ex(r,L,U):Ex(r,L,U))}}else this.logger.Y(360717806,"SSTEvent for nonSS")}; g.W.Lk=function(){var U=this.df,Y=U.VZ;U.VZ=[];return Y}; g.W.j1=function(U){this.videoData.V_=!0;this.Ne(new a9("sabr.fallback",U));this.QU(!0)}; g.W.F1=function(U,Y){this.videoData.TZ=!0;if(Y===void 0||Y)this.Ne(new a9("qoe.restart",U)),this.QU(!0);this.videoData.b9()&&this.S("html5_reload_caption_on_ssdai_fallback")&&this.df.rP()}; g.W.fG=function(U){this.wW("sdai",{aftimeout:U});this.Ne(new a9("ad.fetchtimeout",{timeout:U}))}; g.W.Nh=function(U,Y){this.wW("timelineerror",U);U=new a9("dai.timelineerror",U);Y?this.OT("dai.timelineerror",1,"RETRYABLE_ERROR",R9(U.details)):this.Ne(U)}; g.W.ZM=function(){return NB(this.zk())}; g.W.getPlayerSize=function(){return this.Ol.getPlayerSize()}; g.W.U$=function(){return this.Ol.U$()}; g.W.K3=function(){return this.FN}; g.W.Q8=function(){return this.df.Q8()}; g.W.getVolume=function(){return this.df.getVolume()}; g.W.dw=function(){return this.df.dw()}; g.W.isMuted=function(){return this.df.isMuted()}; g.W.ow=function(){return this.df.ow()}; g.W.A6=function(){this.MX=!0}; g.W.S=function(U){return this.MI.S(U)}; g.W.dj=function(U,Y,A,c,d){this.wW("xvt",{m:U,g:Y?1:0,tt:A?1:0,np:c?1:0,c:d})}; g.W.hh=function(){var U;(U=this.loader)==null||U.resume()}; g.W.j9=function(){return g.Go(this.hj,"ad")}; g.W.YU=function(){var U=this.getCurrentTime(),Y=U-this.Zm();var A=this.mediaElement?vd(this.mediaElement.Hb()):0;A=Math.floor(Math.max(A-Y,0))+100;var c;return((c=this.loader)==null?0:c.YU(Y,A))?(this.wW("sdai",{skipad:1,ct:Y.toFixed(3),adj:A.toFixed(3)}),Lk(this.videoData)&&this.loader.seek(Y+A,{seekSource:89,Qa:"videoplayer_skipServerStitchedAd"}),LNc(this.rf,U),!0):!1}; g.W.O3=function(){return this.MI.O3()}; g.W.iG=function(){if(this.S("html5_generate_content_po_token"))return this.videoData.Oc||"";this.df.X6();return this.MI.Zh||""}; g.W.w5=function(){if(this.videoData.videoId)return this.videoData.E5}; g.W.SM=function(){return this.videoData.videoId}; g.W.JK=function(){return this.df.sK}; g.W.Xn=function(){return this.Uw}; g.W.k$=function(){return this.df.k$()}; g.W.hc=function(U,Y){this.rf.hc(U,Y)}; g.W.tM=function(){this.rf.tM()}; g.W.Nq=function(U,Y){var A=this.S("html5_generate_content_po_token")?this.videoData:void 0;this.df.Nq(U,Y,A)}; g.W.TV=function(U,Y){var A;(A=this.loader)==null||A.TV(U,Y)}; g.W.c_=function(){var U=this.lL();return!!U&&U.c_()}; g.W.OO=function(){return this.I1}; g.W.QX=function(U,Y){this.zk().QX(U,Y)}; g.W.w$=function(){return this.zk().w$()}; g.W.Y9=function(){return this.videoData.AY}; g.W.KF=function(){return this.df.KF()}; g.W.vH=function(){return this.df.vH(this)}; g.W.qH=function(U){var Y;(Y=this.loader)==null||Y.qH(U)}; g.W.NE=function(){var U;(U=this.loader)==null||U.NE()};g.w(zq9,Cq);g.w(Lrc,Cq);g.W=Lrc.prototype;g.W.seekToChapterWithAnimation=function(U){var Y=this;if(g.WC(this.api)&&!(U<0)){var A=this.api.getVideoData(),c=A.Re;if(c&&U=0)return;Y=~Y;g.BW(this.items,Y,0,U);AD(this.menuItems.element,U.element,Y)}U.subscribe("size-change",this.yI,this);this.menuItems.publish("size-change")}; g.W.ph=function(U){U.unsubscribe("size-change",this.yI,this);this.Ky()||(g.wL(this.items,U),this.menuItems.element.removeChild(U.element),this.menuItems.publish("size-change"))}; g.W.yI=function(){this.menuItems.publish("size-change")}; g.W.focus=function(){for(var U=0,Y=0;Y1&&g.jG(this)}; g.W.Ra=function(){Muc(this);this.Mz&&(hqE(this),g.DI(this.element,this.size))}; g.W.Qt=function(){var U=this.Y.pop();S09(this,U,this.Y[this.Y.length-1],!0)}; g.W.IW=function(U){if(!U.defaultPrevented)switch(U.keyCode){case 27:this.Kr();U.preventDefault();break;case 37:this.Y.length>1&&this.Qt();U.preventDefault();break;case 39:U.preventDefault()}}; g.W.focus=function(){this.Y.length&&this.Y[this.Y.length-1].focus()}; g.W.Tn=function(){g.my.prototype.Tn.call(this);this.J&&this.J.dispose();this.G&&this.G.dispose()};g.w(Nf,g.JW);Nf.prototype.open=function(U,Y){this.initialize(U.items)&&this.fU(Y,!!Y)}; Nf.prototype.initialize=function(U){g.iP(this.Ts);if(U===void 0||U.length===0)return!1;var Y=U.length;U=g.J(U);for(var A=U.next();!A.done;A=U.next())this.gf(A.value,Y--);return!0}; Nf.prototype.gf=function(U,Y){U.menuNavigationItemRenderer?QG3(this,U.menuNavigationItemRenderer,Y):U.menuServiceItemRenderer&&Z8c(this,U.menuServiceItemRenderer,Y)};g.w(tW,GS);g.W=tW.prototype;g.W.Cn=function(U){U.target!==this.dismissButton.element&&U.target!==this.overflowButton.element&&(this.aA(),this.onClickCommand&&this.U.Ev("innertubeCommand",this.onClickCommand))}; g.W.L0=function(){this.enabled=!1;this.X.hide()}; g.W.Jv=function(){return!!this.Y&&this.enabled}; g.W.onVideoDataChange=function(U,Y){this.NS(Y);if(this.Y){this.Lt();a:if(!this.isCounterfactual){var A,c,d;this.banner.update({title:(A=this.Y)==null?void 0:A.title,subtitle:(c=this.Y)==null?void 0:c.subtitle,metadata:(d=this.Y)==null?void 0:d.metadataText});var T;this.onClickCommand=g.O((T=this.Y)==null?void 0:T.onTap,p$);var E;if(U=g.O((E=this.Y)==null?void 0:E.onOverflow,p$))this.G=g.O(U,VFT);var L;if((L=this.Y)==null?0:L.thumbnailImage){var r,l;E=((r=this.Y)==null?void 0:(l=r.thumbnailImage)== null?void 0:l.sources)||[];if(E.length===0)break a;this.thumbnailImage.update({url:E[0].url})}else{var P;if((P=this.Y)==null?0:P.thumbnailIconName){var V;this.thumbnailIcon.update({icon:(V=this.Y)==null?void 0:V.thumbnailIconName})}}var v;this.shouldShowOverflowButton=!((v=this.Y)==null||!v.shouldShowOverflowButton);var H;this.shouldHideDismissButton=!((H=this.Y)==null||!H.shouldHideDismissButton)}var G;this.banner.element.setAttribute("aria-label",((G=this.Y)==null?void 0:G.a11yLabel)||"");var F; this.dW=(F=this.Y)==null?void 0:F.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;maS(this)}}; g.W.YaX=function(){this.isVisible=!0;maS(this)}; g.W.xeW=function(){this.isVisible=!1;maS(this)}; g.W.vk=function(){GS.prototype.vk.call(this);this.T&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.W.aA=function(){GS.prototype.aA.call(this,!1);this.T&&this.U.logClick(this.banner.element)}; g.W.Ug=function(U){this.J||(this.J=new Nf(this.U),g.Z(this,this.J));var Y,A;if((Y=this.G)==null?0:(A=Y.menu)==null?0:A.menuRenderer)this.J.open(this.G.menu.menuRenderer,U.target),U.preventDefault()}; g.W.NS=function(){}; g.W.Lt=function(){}; g.W.Tn=function(){this.U.OH("suggested_action_view_model");GS.prototype.Tn.call(this)};g.w(eG,tW); eG.prototype.NS=function(U){var Y,A,c;this.productUpsellSuggestedActionViewModel=g.O((Y=U.getWatchNextResponse())==null?void 0:(A=Y.playerOverlays)==null?void 0:(c=A.playerOverlayRenderer)==null?void 0:c.suggestedActionViewModel,k$o);var d;if((d=this.productUpsellSuggestedActionViewModel)==null?0:d.content){var T;this.Y=g.O((T=this.productUpsellSuggestedActionViewModel)==null?void 0:T.content,rUw)}var E,L;if(this.T=!!((E=this.productUpsellSuggestedActionViewModel)==null?0:(L=E.loggingDirectives)==null? 0:L.trackingParams)){var r,l;this.U.setTrackingParams(this.banner.element,((r=this.productUpsellSuggestedActionViewModel)==null?void 0:(l=r.loggingDirectives)==null?void 0:l.trackingParams)||null)}var P;this.isCounterfactual=!((P=this.productUpsellSuggestedActionViewModel)==null||!P.isCounterfactualServing)}; eG.prototype.Lt=function(){var U=[],Y,A=g.J(((Y=this.productUpsellSuggestedActionViewModel)==null?void 0:Y.ranges)||[]);for(Y=A.next();!Y.done;Y=A.next()){var c=Y.value;c&&(Y=Number(c.startTimeMilliseconds),c=Number(c.endTimeMilliseconds),isNaN(Y)||isNaN(c)||U.push(new g.EE(Y,c,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.VT(U)};g.w(goE,Cq);g.w(Be,Cq);Be.prototype.onVideoDataChange=function(U,Y){var A=this;if(!gS(Y)&&(U==="newdata"&&noX(this),this.T&&this.W&&U==="dataloaded")){var c;jc(zr(this.api.L(),(c=this.api.getVideoData())==null?void 0:g.Za(c)),function(d){A.W=!1;UyV(A,d)})}}; Be.prototype.E$=function(){var U=this;if(g.Rd(this.api.L())){var Y,A=g.o$(this.api.L(),(Y=this.api.getVideoData())==null?void 0:g.Za(Y));return jc(WZ(A),function(c){var d=Qj();Z3(d,c);return U.api.E$(d)})}return WZ(this.api.E$())};g.w(g.kI,g.Ir);g.W=g.kI.prototype;g.W.open=function(){g.Fx(this.o1,this.T)}; g.W.oS=function(U){Yp9(this);var Y=this.options[U];Y&&(Y.element.setAttribute("aria-checked","true"),this.CU(this.Jw(U)),this.W=U)}; g.W.KX=function(U){g.iP(this.T);for(var Y={},A=!1,c=0;c=0?this.Y.playbackRate:1}catch(U){return 1}}; g.W.setPlaybackRate=function(U){this.getPlaybackRate()!==U&&(this.Y.playbackRate=U);return U}; g.W.h1=function(){return this.Y.loop}; g.W.setLoop=function(U){this.Y.loop=U}; g.W.canPlayType=function(U,Y){return this.Y.canPlayType(U,Y)}; g.W.isPaused=function(){return this.Y.paused}; g.W.isSeeking=function(){return this.Y.seeking}; g.W.isEnded=function(){return this.Y.ended}; g.W.h3=function(){return this.Y.muted}; g.W.Ul=function(U){pd();this.Y.muted=U}; g.W.HR=function(){return this.Y.played||rh([],[])}; g.W.Hb=function(){try{var U=this.Y.buffered}catch(Y){}return U||rh([],[])}; g.W.K7=function(){return this.Y.seekable||rh([],[])}; g.W.DE=function(){var U=this.Y;return U.getStartDate?U.getStartDate():null}; g.W.getCurrentTime=function(){return this.Y.currentTime}; g.W.setCurrentTime=function(U){this.Y.currentTime=U}; g.W.getDuration=function(){return this.Y.duration}; g.W.load=function(){var U=this.Y.playbackRate;try{this.Y.load()}catch(Y){}this.Y.playbackRate=U}; g.W.pause=function(){this.Y.pause()}; g.W.play=function(){var U=this.Y.play();if(!U||!U.then)return null;U.then(void 0,function(){}); return U}; g.W.Ux=function(){return this.Y.readyState}; g.W.X1=function(){return this.Y.networkState}; g.W.C3=function(){return this.Y.error?this.Y.error.code:null}; g.W.uB=function(){return this.Y.error?this.Y.error.message:""}; g.W.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Y instanceof window.HTMLVideoElement&&this.Y.getVideoPlaybackQuality)return this.Y.getVideoPlaybackQuality();if(this.Y){var U=this.Y,Y=U.webkitDroppedFrameCount;if(U=U.webkitDecodedFrameCount)return{droppedVideoFrames:Y||0,totalVideoFrames:U}}return{}}; g.W.x4=function(){return!!this.Y.webkitCurrentPlaybackTargetIsWireless}; g.W.zr=function(){return!!this.Y.webkitShowPlaybackTargetPicker()}; g.W.togglePictureInPicture=function(){var U=this.Y,Y=window.document;window.document.pictureInPictureEnabled?this.Y!==Y.pictureInPictureElement?U.requestPictureInPicture():Y.exitPictureInPicture():bu()&&U.webkitSetPresentationMode(U.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.W.i8=function(){var U=this.Y;return new g.RH(U.offsetLeft,U.offsetTop)}; g.W.getSize=function(){return g.Ig(this.Y)}; g.W.setSize=function(U){g.DI(this.Y,U)}; g.W.getVolume=function(){return this.Y.volume}; g.W.setVolume=function(U){pd();this.Y.volume=U}; g.W.Kk=function(U){this.K[U]||(this.Y.addEventListener(U,this.listener),this.K[U]=this.listener)}; g.W.setAttribute=function(U,Y){this.Y.setAttribute(U,Y)}; g.W.removeAttribute=function(U){this.Y.removeAttribute(U)}; g.W.hasAttribute=function(U){return this.Y.hasAttribute(U)}; g.W.SE=Yl(67);g.W.k0=Yl(69);g.W.r0=Yl(71);g.W.B_=Yl(73);g.W.W1=function(){return iH(this.Y)}; g.W.gb=function(U){g.ou(this.Y,U)}; g.W.ZR=function(U){return g.px(this.Y,U)}; g.W.TJ=function(){return g.dv(document.body,this.Y)}; g.W.audioTracks=function(){var U=this.Y;if("audioTracks"in U)return U.audioTracks}; g.W.Tn=function(){for(var U=g.J(Object.keys(this.K)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,this.Y.removeEventListener(Y,this.K[Y]);cD.prototype.Tn.call(this)}; g.W.MQ=function(U){this.Y.disableRemotePlayback=U};g.w(Ot,g.n);g.w(gV,g.n);gV.prototype.show=function(){g.n.prototype.show.call(this);this.cw();this.gW.S("html5_enable_moving_s4n_window")&&g.Rd(this.gW.L())&&this.Z()}; gV.prototype.hide=function(){g.n.prototype.hide.call(this);this.delay.stop();this.j.stop()}; gV.prototype.cw=function(){var U=(0,g.y)(),Y=V6X(this.gW);me(this.Y,Y.bandwidth_samples);me(this.G,Y.network_activity_samples);me(this.W,Y.live_latency_samples);me(this.T,Y.buffer_health_samples);var A={};Y=g.J(Object.entries(Y));for(var c=Y.next();!c.done;c=Y.next()){var d=g.J(c.value);c=d.next().value;d=d.next().value;this.X[c]!==d&&(A[c]=" "+String(d));this.X[c]=d}this.update(A);U=(0,g.y)()-U>25?5E3:500;this.delay.start(U)}; gV.prototype.Z=function(){this.J?(this.position+=1,this.position>15&&(this.J=!1)):(--this.position,this.position<=0&&(this.J=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.j.start(2E4)};g.w(HoX,Cq);g.w(ye,g.p);ye.prototype.Y=function(){var U=(0,g.y)()-this.startTime;U=Uthis.j[U])&&(this.Y=U,Dl(this))}; g.W.onCueRangeExit=function(U){var Y=kK8(this,U);Y&&this.Y===U&&this.api.Ev("innertubeCommand",Y);this.clearTimeout();this.Y=void 0}; g.W.onTimeout=function(U){this.Y!==void 0&&(U==null?void 0:U.cueRangeId)===this.Y&&(this.J=!1,(U=kK8(this,this.Y))&&this.api.Ev("innertubeCommand",U))}; g.W.BA=function(U){this.T=U}; g.W.tp=function(){Dl(this);this.T=void 0}; g.W.setTimeout=function(U){var Y=this,A=Number(U==null?void 0:U.maxVisibleDurationMilliseconds);A&&(this.clearTimeout(),this.G=setTimeout(function(){Y.onTimeout(U)},A))}; g.W.clearTimeout=function(){this.G&&clearTimeout(this.G);this.G=void 0;this.J=!1}; g.W.Tn=function(){this.timelyActions=this.T=this.Y=this.videoId=void 0;this.j={};this.H7();this.clearTimeout();Cq.prototype.Tn.call(this)};g.w(xyc,Cq);g.w(uP,EN);uP.prototype.J=function(U){this.j(U?2:1)}; uP.prototype.T=function(){var U=this.U.getPresentingPlayerType();U===2||U===3?(this.Y=!1,this.o1.ph(this)):this.Y||(U=this.hasVoiceBoostAudioTrack(),this.setEnabled(U),U=this.W()===2&&U,oV(this,U),this.o1.gf(this),this.Y=!0)}; uP.prototype.Tn=function(){this.o1.ph(this);EN.prototype.Tn.call(this)};g.w(Ky,Cq);Ky.prototype.getVoiceBoostUserPreference=function(){return this.Y}; Ky.prototype.setVoiceBoostUserPreference=function(U){this.api.wW("vb_set",{pref:U});g.fU("yt-player-voice-boost",U);U!==this.Y&&(this.Y=U,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.kf())}; Ky.prototype.hasVoiceBoostAudioTrack=function(){var U,Y,A=(U=this.api.getVideoData())==null?void 0:(Y=U.W)==null?void 0:Y.Y;return A?Cx(A,function(c){var d;return((d=c.audio)==null?void 0:d.T)===!0}):!1}; Ky.prototype.updateEnvironmentData=function(){this.api.L().kU=this.Y};var myv=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.w(Ux,Cq);Ux.prototype.Tn=function(){this.G&&(g.Wn(this.G),this.G=void 0);Cq.prototype.Tn.call(this)}; Ux.prototype.X6=function(){(this.T?!this.Y:this.W)&&Ah(this)}; Ux.prototype.CF=function(U,Y,A){var c=this;if(ht3(U)){var d=A||"";if(this.Y)Y=cg(this,d),SpX(U,Y);else{var T=new g.VI;Y.push(T.promise);this.K.promise.then(function(){var E=cg(c,d);SpX(U,E);T.resolve()})}}}; Ux.prototype.pO=function(U){var Y=this;if(this.T||this.W)U.Oc=cg(this,U.videoId),this.Y||(this.j=new AX,this.K.promise.then(function(){Y.FN.t_("pot_if");U.Oc=cg(Y,U.videoId)}))};g.w(dH,Cq);dH.prototype.setFullscreenQuickActions=function(U){this.Y&&this.api.getRootNode().removeChild(this.Y);U?(g.ou(U,"ytp-fullscreen-quick-actions"),g.ou(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.S4(this.api,U,4)):g.LZ(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.Y=U;yCE(this,this.api.isFullscreen())}; dH.prototype.setPlayerOverlayVideoDetailsRenderer=function(U){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);U?(g.ou(U,"ytp-fullscreen-metadata"),this.api.S("delhi_modern_web_player_fullscreen_metadata_bottom")?g.ou(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.ou(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.S4(this.api,U,4)):(g.LZ(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.LZ(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=U;yCE(this,this.api.isFullscreen())};g.w(nuc,Cq);g.w(Tq,g.p);Tq.prototype.Y=function(){for(var U=g.J(g.SS.apply(0,arguments)),Y=U.next();!Y.done;Y=U.next())(Y=Y.value)&&this.features.push(Y)}; Tq.prototype.Tn=function(){for(var U=this.features.length-1;U>=0;U--)this.features[U].dispose();this.features.length=0;g.p.prototype.Tn.call(this)};Dy3.prototype.reset=function(){this.Y=this.T=NaN};g.W=Inc.prototype;g.W.reset=function(){b1(this.timerName)}; g.W.tick=function(U,Y){Z5(U,Y,this.timerName)}; g.W.t_=function(U){return nK(U,void 0,this.timerName)}; g.W.gX=function(U){ah(U,void 0,this.timerName)}; g.W.infoGel=function(U){g.OX(U,this.timerName)};g.w(CbY,g.l6);g.W=CbY.prototype;g.W.pX=function(U){return this.loop||!!U||this.index+1=0}; g.W.setShuffle=function(U){this.shuffle=U;U=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var Y=0;Y0)||Bg(this,1,!0)}; g.W.Bd=function(){this.J=!0;this.Y.FY(this.K);this.K=this.Y.N(document,"mouseup",this.S6)}; g.W.S6=function(){this.J=!1;Bg(this,8,!1);this.Y.FY(this.K);this.K=this.Y.N(this.target,"mousedown",this.Bd)}; g.W.fB=function(U){if(U=(U=U.changedTouches)&&U[0])this.ov=U.identifier,this.Y.FY(this.Z),this.Z=this.Y.N(this.target,"touchend",this.kW,void 0,!0),Bg(this,1024,!0)}; g.W.kW=function(U){if(U=U.changedTouches)for(var Y=0;Y1280||T>720)if(d=A.SS("maxresdefault.jpg"))break;if(c>640||T>480)if(d=A.SS("maxresdefault.jpg"))break; if(c>320||T>180)if(d=A.SS("sddefault.jpg")||A.SS("hqdefault.jpg")||A.SS("mqdefault.jpg"))break;if(d=A.SS("default.jpg"))break}g.YQ(Y)&&(Y=new Image,Y.addEventListener("load",function(){AHX()}),Y.src=d?d:"",this.api.K3().tick("ftr")); this.j.style.backgroundImage=d?"url("+d+")":""};g.w(g.aO,g.n);g.aO.prototype.resize=function(){}; g.aO.prototype.T=function(U){var Y=this;this.W=!1;D68(this);var A=U.kV,c=this.api.L();A!=="GENERIC_WITHOUT_LINK"||c.J?A==="TOO_MANY_REQUESTS"?(c=g.M(this.api.getVideoData()),this.CU(fO(this,"TOO_MANY_REQUESTS_WITH_LINK",c.Zl(),void 0,void 0,void 0,!1))):A!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||c.J?this.api.L().S("html5_enable_bandaid_error_screen")&&A==="HTML5_SPS_UMP_STATUS_REJECTED"&&!c.J?(c=c.hostLanguage,U="//support.google.com/youtube?p=videoError",c&&(U=g.xJ(U,{hl:c})),this.CU(fO(this,"HTML5_SPS_UMP_STATUS_REJECTED", U))):this.api.L().S("enable_adb_handling_in_sabr")&&A==="BROWSER_OR_EXTENSION_ERROR"&&!c.J?(c=c.hostLanguage,U="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",c&&(U=g.xJ(U,{hl:c})),this.CU(fO(this,"BROWSER_OR_EXTENSION_ERROR",U))):this.CU(g.xV(U.errorMessage)):this.CU(fO(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(U=c.hostLanguage,A="//support.google.com/youtube/?p=player_error1",U&&(A=g.xJ(A, {hl:U})),this.CU(fO(this,"GENERIC_WITH_LINK_AND_CPN",A,!0)),c.mH&&!c.j&&njc(this,function(T){if(g.zY(T,Y.api,!uo(Y.api.L()))){T={as3:!1,html5:!0,player:!0,cpn:g.M(Y.api.getVideoData()).clientPlaybackNonce};var E=Y.api;E.M5("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:T});E.isFullscreen()&&E.toggleFullscreen()}})); if(this.W){var d=this.As("ytp-error-link");d&&(this.api.createClientVe(d,this,216104),this.api.logVisibility(d,!0),njc(this,function(){Y.api.logClick(d)}))}}; var ydV=/([^<>]+)<\/a>/;g.w(Iuc,g.n);g.W=Iuc.prototype;g.W.onClick=function(U){this.innertubeCommand?(this.U.Ev("innertubeCommand",this.innertubeCommand),U.preventDefault()):g.zY(U,this.U,!0);this.U.logClick(this.element)}; g.W.onVideoDataChange=function(U,Y){KxS(this,Y);this.g1&&q1S(this,this.g1)}; g.W.rp=function(U){var Y=g.M(this.U.getVideoData());this.videoId!==Y.videoId&&KxS(this,Y);this.Y&&q1S(this,U.state);this.g1=U.state}; g.W.fU=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.W.Kr=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.w(hh,g.n);hh.prototype.hide=function(){this.Y.stop();this.message.style.display="none";g.n.prototype.hide.call(this)}; hh.prototype.onStateChange=function(U){this.l9(U.state)}; hh.prototype.l9=function(U){if(g.I(U,128)||this.api.Xn())var Y=!1;else{var A;Y=this.api.S("web_watch_enable_multiview_manager")&&((A=this.api.getVideoData())==null?0:gS(A))?!1:g.I(U,16)||g.I(U,1)?!0:!1}Y?this.Y.start():this.hide()}; hh.prototype.T=function(){this.message.style.display="block"};g.w(SD,g.my);SD.prototype.onMutedAutoplayChange=function(U){this.W&&(U?(CL4(this),this.fU()):(this.Y&&this.logClick(),this.Kr()))}; SD.prototype.gV=function(U){this.api.isMutedByMutedAutoplay()&&g.Gg(U,2)&&this.Kr()}; SD.prototype.onClick=function(){this.api.unMute();this.logClick()}; SD.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.w(g.M5,g.Qy);g.W=g.M5.prototype;g.W.init=function(){var U=this.api,Y=U.getPlayerStateObject();this.Ou=U.getPlayerSize();this.Ab(Y);this.Gd();this.hP();this.api.publish("basechromeinitialized",this);this.Jk()&&this.api.publish("standardControlsInitialized")}; g.W.onVideoDataChange=function(U,Y){var A=this.Ip!==Y.videoId;if(A||U==="newdata"){U=this.api;U.isFullscreen()||(this.Ou=U.getPlayerSize());var c;((c=this.api.getVideoData(1))==null?0:g.KD(c))&&this.Sv()}A&&(this.Ip=Y.videoId,A=this.bB,A.jX=3E3,Bg(A,512,!0),this.Gd());this.api.S("web_render_jump_buttons")&&Y.showSeekingControls&&(this.Hh=572)}; g.W.tqy=function(){this.onVideoDataChange("newdata",g.M(this.api.getVideoData()))}; g.W.cM=function(){var U=this.api.F9()&&this.api.ww(),Y=this.api.Vj();return this.Ro||U||this.al||Y}; g.W.Sv=function(){var U=!this.cM();g.lg(this.api.getRootNode(),"ytp-menu-shown",!U);var Y;((Y=this.api.getVideoData(1))==null?0:g.KD(Y))&&g.lg(this.api.getRootNode(),"ytp-hide-controls",!U)}; g.W.Mb=function(U){try{if(!g.dv(this.api.getRootNode(),U))return!1}catch(Y){return!1}for(;U&&!ZjE(U);)U=U===this.api.getRootNode()?null:U.parentElement||null;return!!U}; g.W.gx=function(U){var Y=this.api.getRootNode();g.lg(Y,"ytp-autohide",U);g.lg(Y,"ytp-autohide-active",!0);this.qf.start(U?250:100);U&&(this.B3=!1,g.LZ(Y,"ytp-touch-mode"));this.Co=!U;this.api.W3(!U)}; g.W.PA=function(){var U=this.api.getRootNode();g.lg(U,"ytp-autohide-active",!1)}; g.W.N1n=function(){this.ZX=!0}; g.W.fFI=function(U){if(this.api.L().S("player_doubletap_to_seek")||this.api.L().G)this.ZX=!1,this.lq&&this.FY(this.lq),this.pn===0&&pO(this,U)?(this.EW(),this.IY.start(),this.lq=this.N(this.api.Cy(),"touchmove",this.N1n,void 0,!0)):this.IY.stop();c$Y(this)&&pO(this,U)&&!this.api.L().G&&Yh4(this);var Y=this.EF.Bl();if(!g.ay(this.api.L())&&BI&&dHX(this,U))Y&&U.preventDefault();else if(this.B3=!0,g.ou(this.api.getRootNode(),"ytp-touch-mode"),this.bB.uX(),this.api.L().S("player_doubletap_to_seek")||this.api.L().G)if(Y= this.api.getPlayerStateObject(),!(!this.api.O9()||g.I(Y,2)&&g.k_(this.api)||g.I(Y,64))){Y=Date.now()-this.b4;this.pn+=1;if(Y<=350){this.Xo=!0;Y=this.api.getPlayerSize().width/3;var A=this.api.getRootNode().getBoundingClientRect(),c=U.targetTouches[0].clientX-A.left;A=U.targetTouches[0].clientY-A.top;var d=(this.pn-1)*10;c>0&&cY*2&&c=650,c=U.width<528;this.bB.resize();g.lg(Y,"ytp-fullscreen",this.api.isFullscreen());g.lg(Y,"ytp-large-width-mode",A);g.lg(Y,"ytp-xsmall-width-mode",c);g.lg(Y,"ytp-small-mode",this.Wb());g.lg(Y,"ytp-tiny-mode",this.N4());g.lg(Y,"ytp-big-mode",this.yG());this.fh&&this.fh.resize(U)}; g.W.gV=function(U){this.Ab(U.state);this.Gd()}; g.W.KO=Yl(5);g.W.Ps=function(){var U=!!this.Ip&&!this.api.k8()&&!this.hp,Y=this.api.getPresentingPlayerType()===2,A=this.api.L();if(Y){if(TLO&&A.S("enable_visit_advertiser_support_on_ipad_mweb"))return!1;Y=F_(this.api.WZ());U&&(Y&&Y.player?U=(U=Y.player.getVideoData(2))?U.isListed&&!g.XA(Y.player.L()):!1:($D("showInfoBarDuringAd: this is null"),U=!1));return U}return U&&(A.FB||this.api.isFullscreen()||A.Md)}; g.W.Gd=function(){var U=this.Ps();this.WS!==U&&(this.WS=U,g.lg(this.api.getRootNode(),"ytp-hide-info-bar",!U))}; g.W.Ab=function(U){var Y=U.isCued()||this.api.mD()&&this.api.getPresentingPlayerType()!==3;Y!==this.isCued&&(this.isCued=Y,this.LN&&this.FY(this.LN),this.LN=this.N(this.api.Cy(),"touchstart",this.fFI,void 0,Y));var A=this.bB,c=U.isPlaying()&&!g.I(U,32)||this.api.xL();Bg(A,128,!c);A=this.bB;c=this.api.getPresentingPlayerType()===3;Bg(A,256,c);A=this.api.getRootNode();g.I(U,2)?c=[OL.ENDED]:(c=[],g.I(U,8)?c.push(OL.PLAYING):g.I(U,4)&&c.push(OL.PAUSED),g.I(U,1)&&!g.I(U,32)&&c.push(OL.BUFFERING),g.I(U, 32)&&c.push(OL.SEEKING),g.I(U,64)&&c.push(OL.UNSTARTED));g.fj(this.MJ,c)||(g.rK(A,this.MJ),this.MJ=c,g.zx(A,c));c=this.api.L();var d=g.I(U,2);a:{var T=this.api.L();var E=T.controlsType;switch(E){case "2":case "0":T=!1;break a}T=E==="3"&&!g.I(U,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:p3o(F_(this.api.WZ())))||this.api.Vj()||g.ay(T)&&this.api.getPresentingPlayerType()===2?!1:!0}g.lg(A,"ytp-hide-controls",!T);g.lg(A,"ytp-native-controls",c.controlsType==="3"&&!Y&&!d&&!this.al);g.I(U, 128)&&!g.ay(c)?(this.fh||(this.fh=new g.aO(this.api),g.Z(this,this.fh),g.S4(this.api,this.fh.element,4)),this.fh.T(U.Pb),this.fh.show()):this.fh&&(this.fh.dispose(),this.fh=null)}; g.W.WK=function(){return this.api.F9()&&this.api.ww()?(this.api.Ff(!1,!1),!0):this.api.k8()?(g.Rr(this.api,!0),!0):!1}; g.W.onMutedAutoplayChange=function(U){this.al=U;this.Sv()}; g.W.yG=function(){return!1}; g.W.Wb=function(){return!this.yG()&&(this.api.getPlayerSize().width=0&&Y.left>=0&&Y.bottom>Y.top&&Y.right>Y.left?Y:null;Y=this.size;U=U.clone();Y=Y.clone();c&&(E=Y,d=5,(d&65)==65&&(U.x=c.right)&&(d&=-2),(d&132)==132&&(U.y=c.bottom)&&(d&=-5),U.xc.right&&(E.width=Math.min(c.right-U.x,T+E.width-c.left),E.width=Math.max(E.width,0))),U.x+E.width>c.right&&d&1&&(U.x=Math.max(c.right-E.width,c.left)),U.yc.bottom&&(E.height=Math.min(c.bottom-U.y,T+E.height-c.top),E.height=Math.max(E.height,0))),U.y+E.height>c.bottom&&d&4&&(U.y=Math.max(c.bottom-E.height,c.top)));c=new g.fx(0,0,0,0);c.left=U.x;c.top=U.y;c.width= Y.width;c.height=Y.height;g.mF(this.element,new g.RH(c.left,c.top));g.Rb(this.j);this.j.N(g_(this),"contextmenu",this.Mqr);this.j.N(this.U,"fullscreentoggled",this.onFullscreenToggled);this.j.N(this.U,"pageTransition",this.Og)}; g.W.Mqr=function(U){if(!U.defaultPrevented){var Y=eh(U);g.dv(this.element,Y)||this.Kr();this.U.L().disableNativeContextMenu&&U.preventDefault()}}; g.W.onFullscreenToggled=function(){this.Kr();BrE(this)}; g.W.Og=function(){this.Kr()};g.w(IO,g.n);IO.prototype.onClick=function(){var U=this,Y,A,c,d;return g.S(function(T){if(T.T==1)return Y=U.api.L(),A=g.M(U.api.getVideoData()),c=U.api.getPlaylistId(),d=Y.getVideoUrl(A.videoId,c,void 0,!0),g.x(T,RBV(U,d),2);T.Y&&kF9(U);U.api.logClick(U.element);g.i8(T)})}; IO.prototype.cw=function(){this.updateValue("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar enlace");this.visible=XkV(this);g.lg(this.element,"ytp-copylink-button-visible", this.visible);this.PQ(this.visible);this.tooltip.Aa();this.api.logVisibility(this.element,this.visible&&this.K)}; IO.prototype.tP=function(U){g.n.prototype.tP.call(this,U);this.api.logVisibility(this.element,this.visible&&U)}; IO.prototype.Tn=function(){g.n.prototype.Tn.call(this);g.LZ(this.element,"ytp-copylink-button-visible")};g.w(aXc,g.n);g.W=aXc.prototype;g.W.show=function(){g.n.prototype.show.call(this);g.uQ(this.T)}; g.W.hide=function(){this.j.stop();this.W=0;this.As("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.LZ(this.element,"ytp-chapter-seek");g.LZ(this.element,"ytp-time-seeking");g.n.prototype.hide.call(this)}; g.W.oa=function(U,Y,A,c){this.W=U===this.G?this.W+c:c;this.G=U;var d=U===-1?this.X:this.Z;d&&this.U.logClick(d);this.J?this.T.stop():g.U4(this.T);this.j.start();this.element.setAttribute("data-side",U===-1?"back":"forward");var T=3*this.U.Cy().getPlayerSize().height;d=this.U.Cy().getPlayerSize();d=d.width/3-3*d.height;this.Y.style.width=T+"px";this.Y.style.height=T+"px";U===1?(this.Y.style.left="",this.Y.style.right=d+"px"):U===-1&&(this.Y.style.right="",this.Y.style.left=d+"px");var E=T*2.5;T=E/ 2;var L=this.As("ytp-doubletap-ripple");L.style.width=E+"px";L.style.height=E+"px";U===1?(U=this.U.Cy().getPlayerSize().width-Y+Math.abs(d),L.style.left="",L.style.right=U-T+"px"):U===-1&&(U=Math.abs(d)+Y,L.style.right="",L.style.left=U-T+"px");L.style.top="calc((33% + "+Math.round(A)+"px) - "+T+"px)";if(A=this.As("ytp-doubletap-ripple"))A.classList.remove("ytp-doubletap-ripple"),A.classList.add("ytp-doubletap-ripple");xHv(this,this.J?this.W:c)}; g.W.Td=function(U,Y,A){if(A=A===void 0?null:A){var c=U===-1?this.X.visualElement:this.Z.visualElement;A={seekData:A};var d=g.X3();d&&g.qY(Y$)(void 0,d,c,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",A,void 0)}this.W=U===this.G?this.W+Y:Y;this.G=U;c=this.U.Cy().getPlayerSize();this.J?this.T.stop():g.U4(this.T);this.j.start();this.element.setAttribute("data-side",U===-1?"back":"forward");g.ou(this.element,"ytp-time-seeking");this.Y.style.width="110px";this.Y.style.height="110px";A=c.width*.1-15;U=== 1?this.Pw?(this.Y.style.right=A+"px",this.Y.style.left=""):(this.Y.style.right="",this.Y.style.left=c.width*.8-30+"px"):U===-1&&(this.Pw?(this.Y.style.right="",this.Y.style.left=A+"px"):(this.Y.style.right="",this.Y.style.left=c.width*.1-15+"px"));this.Y.style.top=c.height*.5+15+"px";xHv(this,this.J?this.W:Y)}; g.W.Nv=function(U,Y,A){A=A===void 0?null:A;g.U4(this.T);this.j.start();switch(U){case -1:U="back";break;case 1:U="forward";break;default:U=""}this.element.setAttribute("data-side",U);this.Y.style.width="0";this.Y.style.height="0";g.ou(this.element,"ytp-chapter-seek");this.updateValue("seekText",Y);this.updateValue("seekTime","");Y=this.As("ytp-seek-icon");if(A){a:if(A){switch(A){case "PREMIUM_STANDALONE":A=XAv();break a;case "PREMIUM_STANDALONE_CAIRO":A=k13();break a}A=void 0}else A=null;this.updateValue("seekIcon", A);Y.style.display="inline-block"}else Y.style.display="none"};g.w(sYS,GS);g.W=sYS.prototype;g.W.zC=function(U){this.Uv||(this.Uv=new Nf(this.U),g.Z(this,this.Uv));var Y,A;if((Y=this.ws)==null?0:(A=Y.menu)==null?0:A.menuRenderer)this.Uv.open(this.ws.menu.menuRenderer,U.target),U.preventDefault()}; g.W.Jv=function(){return!!this.Y}; g.W.J6=function(){return!!this.Y}; g.W.Cn=function(U){U.target===this.overflowButton.element?U.preventDefault():(this.Me&&this.U.Ev("innertubeCommand",this.Me),this.aA(!1))}; g.W.L0=function(){this.aA(!0);var U,Y;((U=this.Y)==null?0:(Y=U.bannerData)==null?0:Y.dismissedStatusKey)&&this.mH.push(this.Y.bannerData.dismissedStatusKey);this.bd()}; g.W.zW=function(){this.bd();q5(this)}; g.W.Bvy=function(U){var Y=this,A;if(U.id!==((A=this.Y)==null?void 0:A.identifier)){this.bd();A=g.J(this.jX);for(var c=A.next();!c.done;c=A.next()){var d=c.value,T=void 0,E=void 0;if((c=(T=d)==null?void 0:(E=T.bannerData)==null?void 0:E.itemData)&&d.identifier===U.id){E=T=void 0;var L=((T=d)==null?void 0:(E=T.bannerData)==null?void 0:E.dismissedStatusKey)||"";if(this.mH.includes(L))return;this.Y=d;this.banner.element.setAttribute("aria-label",c.accessibilityLabel||"");c.trackingParams&&(this.j=!0, this.U.setTrackingParams(this.badge.element,c.trackingParams));this.X.show();He(this);this.QJ.PQ(!c.stayInApp);y$X(this);hBX(this);KO(this);this.Me=g.O(c.onTapCommand,p$);if(d=g.O(c.menuOnTap,p$))this.ws=g.O(d,VFT);d=void 0;this.banner.update({thumbnail:(d=(c.thumbnailSources||[])[0])==null?void 0:d.url,title:c.productTitle,price:c.priceReplacementText?c.priceReplacementText:c.price,salesOriginalPrice:b9l(this),priceDropReferencePrice:pkE(this),promotionText:MMX(this),priceA11yText:QYv(this),affiliateDisclaimer:c.affiliateDisclaimer, vendor:Z9X(this)});L=E=T=d=void 0;((d=c)==null?0:(T=d.hiddenProductOptions)==null?0:T.showDropCountdown)&&((E=c)==null?0:(L=E.hiddenProductOptions)==null?0:L.dropTimestampMs)&&(this.AP=new g.IM(function(){gbS(Y)},1E3),this.QJ.hide(),this.countdownTimer.show(),gbS(this)); this.U.S("web_player_enable_featured_product_banner_exclusives_on_desktop")&&fXl(this)&&(this.Lr=new g.IM(function(){ShS(Y)},1E3),ShS(this))}}this.U.getRootNode()&&g.ou(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.W.bd=function(){this.Y&&(this.Y=void 0,this.o4(),this.U.getRootNode()&&g.LZ(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.W.onVideoDataChange=function(U,Y){var A=this;U==="dataloaded"&&q5(this);var c,d,T;U=g.O((c=Y.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(T=d.playerOverlayRenderer)==null?void 0:T.productsInVideoOverlayRenderer,lHI);this.overflowButton.show();this.dismissButton.hide();var E=U==null?void 0:U.featuredProductsEntityKey;this.trendingOfferEntityKey=U==null?void 0:U.trendingOfferEntityKey;this.jX.length||(mHc(this,E),KO(this));var L;(L=this.KU)==null||L.call(this);this.KU=g.dS.subscribe(function(){mHc(A, E);KO(A)})}; g.W.Tn=function(){q5(this);y$X(this);hBX(this);GS.prototype.Tn.call(this)};g.w(Kl3,g.n);Kl3.prototype.onClick=function(){this.U.logClick(this.element,this.T)};g.w(qhX,g.my);g.W=qhX.prototype;g.W.show=function(){g.my.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);CKS(this,!0)}; g.W.hide=function(){g.my.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);CKS(this,!1)}; g.W.getId=function(){return this.j}; g.W.F7=function(){return this.itemData.length}; g.W.onVideoDataChange=function(U,Y){if(Y){var A,c,d,T;this.update({title:((A=Y.v7)==null?void 0:(c=A.title)==null?void 0:c.content)||"",body:((d=Y.v7)==null?void 0:(T=d.bodyText)==null?void 0:T.content)||""});var E;U=((E=Y.v7)==null?void 0:E.trackingParams)||null;this.U.setTrackingParams(this.element,U);E=g.J(this.itemData);for(U=E.next();!U.done;U=E.next())U.value.dispose();this.itemData=[];var L;if((L=Y.v7)==null?0:L.ctaButtons)for(Y=g.J(Y.v7.ctaButtons),L=Y.next();!L.done;L=Y.next())if(L=g.O(L.value, Tfm))L=new Kl3(this.U,L,this.Y),L.Bp&&(this.itemData.push(L),L.Df(this.items))}}; g.W.Tn=function(){this.hide();g.my.prototype.Tn.call(this)};g.w(AnX,g.n);g.W=AnX.prototype;g.W.onVideoDataChange=function(U,Y){YLX(this,Y);this.g1&&d1l(this,this.g1)}; g.W.bF=function(U){var Y=g.M(this.U.getVideoData());this.videoId!==Y.videoId&&YLX(this,Y);d1l(this,U.state);this.g1=U.state}; g.W.nC=function(U){(this.W=U)?this.hide():this.Y&&this.show()}; g.W.tR=function(){this.T||this.fU();this.showControls=!0}; g.W.mx=function(){this.T||this.Kr();this.showControls=!1}; g.W.fU=function(){var U,Y=(U=this.U)==null?void 0:U.getPlayerSize();U=Y.width<380;var A;Y=Y.height<(((A=this.U)==null?0:A.isEmbedsShortsMode())?400:280);var c,d;(((c=this.U)==null?0:c.getPlayerStateObject().isCued())||((d=this.U)==null?0:g.I(d.getPlayerStateObject(),1024)))&&U&&Y||!this.Y||this.W||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.W.Kr=function(){this.Y&&!this.W&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.W.qyJ=function(){this.T=!1;this.showControls||this.Kr()};var G5I={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(G5I).reduce(function(U,Y){U[G5I[Y]]=Y;return U},{}); var WWL={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(WWL).reduce(function(U,Y){U[WWL[Y]]=Y;return U},{}); var wBw={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(wBw).reduce(function(U,Y){U[wBw[Y]]=Y;return U},{});var i2I,Jpz;i2I=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];Jpz=[{option:0,text:CO(0)},{option:.25,text:CO(.25)},{option:.5,text:CO(.5)},{option:.75,text:CO(.75)},{option:1,text:CO(1)}]; g.cS=[{option:"fontFamily",text:"Conjunto de fuentes",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:i2I},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:CO(.5)},{option:-1,text:CO(.75)},{option:0,text:CO(1)},{option:1, text:CO(1.5)},{option:2,text:CO(2)},{option:3,text:CO(3)},{option:4,text:CO(4)}]},{option:"background",text:"Color de fondo",options:i2I},{option:"backgroundOpacity",text:"Opacidad del fondo",options:Jpz},{option:"windowColor",text:"Color de la ventana",options:i2I},{option:"windowOpacity",text:"Opacidad de la ventana",options:Jpz},{option:"charEdgeStyle",text:"Estilo del borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de la fuente",options:[{option:.25,text:CO(.25)},{option:.5,text:CO(.5)},{option:.75,text:CO(.75)},{option:1,text:CO(1)}]}];var FWW=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.w(rn9,g.Qy);g.W=rn9.prototype; g.W.lA=function(U){U.repeat||(this.W.C6=!1);var Y=!1,A=U.keyCode,c=eh(U),d=!U.altKey&&!U.ctrlKey&&!U.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||FWW.includes(A)),T=!1,E=!1,L=this.api.L();U.defaultPrevented?(d=!1,E=!0):L.Ix&&!this.api.isMutedByEmbedsMutedAutoplay()&&(d=!1);if(A===9)Y=!0;else{if(c)switch(A){case 32:case 13:if(c.tagName==="BUTTON"||c.tagName==="A"||c.tagName==="INPUT")Y=!0,d=!1;else if(d){var r=c.getAttribute("role");!r||r!=="option"&&r!=="button"&&r.indexOf("menuitem")!==0|| (Y=!0,c.click(),T=!0)}break;case 37:case 39:case 36:case 35:Y=c.getAttribute("role")==="slider";break;case 38:case 40:r=c.getAttribute("role"),c=A===38?c.previousSibling:c.nextSibling,r==="slider"?Y=!0:d&&(r==="option"?(c&&c.getAttribute("role")==="option"&&c.focus(),T=Y=!0):r&&r.indexOf("menuitem")===0&&(c&&c.hasAttribute("role")&&c.getAttribute("role").indexOf("menuitem")===0&&c.focus(),T=Y=!0))}if(d&&!T)switch(A){case 38:T=Math.min(this.api.getVolume()+5,100);Ox(this.d1,T,!1);this.api.setVolume(T); E=T=!0;break;case 40:T=Math.max(this.api.getVolume()-5,0);Ox(this.d1,T,!0);this.api.setVolume(T);E=T=!0;break;case 36:this.api.O9()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),E=T=!0);break;case 35:this.api.O9()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),E=T=!0)}}Y&&Yo(this,!0);(Y||E)&&this.bB.uX();(T||d&&this.handleGlobalKeyDown(A,U.shiftKey,U.ctrlKey,U.altKey,U.metaKey,U.key,U.code,U.repeat))&&U.preventDefault();L.Z&&(U={keyCode:U.keyCode, altKey:U.altKey,ctrlKey:U.ctrlKey,metaKey:U.metaKey,shiftKey:U.shiftKey,handled:U.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.gq("onKeyPress",U))}; g.W.LM=function(U){var Y=U.keyCode;(!this.api.S("web_player_spacebar_control_bugfix")||this.api.S("web_player_spacebar_control_bugfix")&&!this.W.L9)&&this.handleGlobalKeyUp(Y,U.shiftKey,U.ctrlKey,U.altKey,U.metaKey,U.key,U.code)&&U.preventDefault()}; g.W.handleGlobalKeyUp=function(U,Y,A,c,d,T,E){this.api.publish("keyboardserviceglobalkeyup",{keyCode:U,shiftKey:Y,ctrlKey:A,altKey:c,metaKey:d,key:T,code:E});Y=!1;if(this.W.C6)return Y;(d=g.fq(this.api.WZ()))&&(d=d.S$)&&d.Mz&&(d.Ng(U),Y=!0);switch(U){case 9:Yo(this,!0);Y=!0;break;case 32:if(this.api.S("web_speedmaster_spacebar_control")&&(!this.api.S("web_player_spacebar_control_bugfix")&&!this.W.L9||this.api.S("web_player_spacebar_control_bugfix"))&&!this.api.L().Ix){var L,r;U=(L=this.progressBar)== null?void 0:(r=L.T)==null?void 0:r.isEnabled;Y=this.jT(U)}break;case 39:(dZ?c:A)&&this.api.S("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),L=(L=this.api.getVideoData())?L.Re:[],r=Ei3(L,this.api.getCurrentTime()*1E3),r!==-1&&this.Y!=null&&(this.Y.Nv(1,L[r].title),this.api.seekTo(L[r].startTime/1E3,void 0,void 0,void 0,52),Y=!0))}return Y}; g.W.handleGlobalKeyDown=function(U,Y,A,c,d,T,E,L){L||(this.W.C6=!1);var r=!1,l=this.api.L();if(l.Ix&&!this.api.isMutedByEmbedsMutedAutoplay())return r;var P=g.fq(this.api.WZ());if(P&&(P=P.S$)&&P.Mz)switch(U){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:r=P.fM(U)}l.J||r||(r=T||String.fromCharCode(U).toLowerCase(),this.T+=r,"awesome".indexOf(this.T)===0||this.api.S("web_player_rtr_ctrls")&&"bday".indexOf(this.T)===0?(r=!0,4===this.T.length&&this.T==="bday"&&this.api.S("web_player_rtr_ctrls")&& (AeY(this.K),this.bB.uX()),7===this.T.length&&this.T==="awesome"&&B9V(this.api.getRootNode(),"ytp-color-party")):(this.T=r,r="awesome".indexOf(this.T)===0||"bday".indexOf(this.T)===0));if(!r&&(!this.api.isMutedByEmbedsMutedAutoplay()||FWW.includes(U))){var V=this.api.getVideoData(),v,H;P=(v=this.progressBar)==null?void 0:(H=v.T)==null?void 0:H.isEnabled;v=V?V.Re:[];H=dZ?c:A;switch(U){case 80:Y&&!l.Uv&&(Zx(this.d1,R9Y(),"Anterior"),this.api.previousVideo(),r=!0);break;case 78:Y&&!l.Uv&&(Zx(this.d1, eb(),"Siguiente"),this.api.nextVideo(),r=!0);break;case 74:this.api.O9()&&(this.api.startSeekCsiAction(),this.Y?this.api.S("enable_key_press_seek_logging")?(r=AV(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.Y.Td(-1,10,r)):this.Y.Td(-1,10):Zx(this.d1,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{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),r=!0);break;case 76:this.api.O9()&&(this.api.startSeekCsiAction(),this.Y?this.api.S("enable_key_press_seek_logging")?(r=AV(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.Y.Td(1,10,r)):this.Y.Td(1,10):Zx(this.d1,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{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),r=!0);break;case 37:this.api.O9()&&(this.api.startSeekCsiAction(),H?(H=oi8(v,this.api.getCurrentTime()*1E3),H!==-1&&this.Y!=null&&(this.Y.Nv(-1,v[H].title),this.api.seekTo(v[H].startTime/1E3,void 0,void 0,void 0,53),r=!0)):(this.Y?this.api.S("enable_key_press_seek_logging")?(r=AV(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.Y.Td(-1,5,r)):this.Y.Td(-1,5):Zx(this.d1,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{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),r=!0));break;case 39:this.api.O9()&&(this.api.startSeekCsiAction(),H?this.api.S("web_enable_keyboard_shortcut_for_timely_actions")||(H=Ei3(v,this.api.getCurrentTime()*1E3),H!==-1&&this.Y!=null&&(this.Y.Nv(1,v[H].title),this.api.seekTo(v[H].startTime/1E3,void 0,void 0,void 0,52),r=!0)):(this.Y!=null?this.api.S("enable_key_press_seek_logging")?(r=AV(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.Y.Td(1,5,r)):this.Y.Td(1, 5):Zx(this.d1,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{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),r=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Ox(this.d1,this.api.getVolume(),!1)):(this.api.mute(),Ox(this.d1,0,!0));r=!0;break;case 32:r=this.api.S("web_speedmaster_spacebar_control")?!this.api.L().Uv:this.jT(P);break;case 75:r=this.jT(P);break;case 190:Y?l.enableSpeedOptions&&PSl(this)&&(r=this.api.getPlaybackRate(),this.api.setPlaybackRate(r+.25,!0),Ebl(this.d1,!1),r=!0):this.api.O9()&&(this.step(1),r=!0);break;case 188:Y? l.enableSpeedOptions&&PSl(this)&&(r=this.api.getPlaybackRate(),this.api.setPlaybackRate(r-.25,!0),Ebl(this.d1,!0),r=!0):this.api.O9()&&(this.step(-1),r=!0);break;case 70:$NX(this.api)&&(this.api.toggleFullscreen().catch(function(){}),r=!0); break;case 27:P?(this.progressBar.Vs(),r=!0):this.J()&&(r=!0)}if(l.controlsType!=="3")switch(U){case 67:g.wH(this.api.WZ())&&(l=this.api.getOption("captions","track"),this.api.toggleSubtitles(),ob8(this.d1,!l||l&&!l.displayName),r=!0);break;case 79:dJ(this,"textOpacity");break;case 87:dJ(this,"windowOpacity");break;case 187:case 61:dJ(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:dJ(this,"fontSizeIncrement",!0,!0)}var G;Y||A||c||(U>=48&&U<=57?G=U-48:U>=96&&U<=105&&(G=U-96));G!=null&&this.api.O9()&& (this.api.startSeekCsiAction(),l=this.api.getProgressState(),this.api.seekTo(G/10*(l.seekableEnd-l.seekableStart)+l.seekableStart,void 0,void 0,void 0,81),r=!0);r&&this.bB.uX()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:U,shiftKey:Y,ctrlKey:A,altKey:c,metaKey:d,key:T,code:E,repeat:L},this.W);return r}; g.W.step=function(U){this.api.O9();if(this.api.getPlayerStateObject().isPaused()){var Y=g.M(this.api.getVideoData()).T;Y&&(Y=Y.video)&&this.api.seekBy(U/(Y.fps||30),void 0,void 0,U>0?77:78)}}; g.W.jT=function(U){if(!this.api.L().Uv){var Y;var A,c=(Y=this.api.getVideoData())==null?void 0:(A=Y.getPlayerResponse())==null?void 0:A.playabilityStatus;if(c){var d;Y=((d=g.O(c.miniplayer,iRW))==null?void 0:d.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else Y=!1;Y&&this.api.Ev("onExpandMiniplayer");U?this.progressBar.dO():(U=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.d1.s4(U),U?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.W.Tn=function(){g.U4(this.j);g.Qy.prototype.Tn.call(this)};g.w(g.TM,g.n);g.TM.prototype.Yw=Yl(11); g.TM.prototype.cw=function(){var U=this.U.L(),Y=U.W||this.U.S("web_player_hide_overflow_button_if_empty_menu")&&this.c5.isEmpty();U=g.ay(U)&&g.x_(this.U)&&g.I(this.U.getPlayerStateObject(),128);var A=this.U.getPlayerSize();this.visible=this.U.Wb()&&!U&&A.width>=240&&!g.Ck(g.M(this.U.getVideoData()))&&!Y&&!this.Y&&!this.U.isEmbedsShortsMode();g.lg(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.Aa();this.U.logVisibility(this.element,this.visible&&this.K)}; g.TM.prototype.tP=function(U){g.n.prototype.tP.call(this,U);this.U.logVisibility(this.element,this.visible&&U)}; g.TM.prototype.Tn=function(){g.n.prototype.Tn.call(this);g.LZ(this.element,"ytp-overflow-button-visible")};g.w(VOX,g.my);g.W=VOX.prototype;g.W.BE=function(U){U=eh(U);g.dv(this.element,U)&&(g.dv(this.Y,U)||g.dv(this.closeButton,U)||yj(this))}; g.W.Kr=function(){g.my.prototype.Kr.call(this);this.U.ye(this.element)}; g.W.show=function(){this.Mz&&this.U.publish("OVERFLOW_PANEL_OPENED");g.my.prototype.show.call(this);this.element.setAttribute("aria-modal","true");viX(this,!0)}; g.W.hide=function(){g.my.prototype.hide.call(this);this.element.removeAttribute("aria-modal");viX(this,!1)}; g.W.onFullscreenToggled=function(U){!U&&this.Bl()&&yj(this)}; g.W.isEmpty=function(){return this.actionButtons.length===0}; g.W.focus=function(){for(var U=g.J(this.actionButtons),Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,Y.Mz){Y.focus();break}};g.w(HEX,g.n);HEX.prototype.onClick=function(U){g.zY(U,this.api)&&this.api.playVideoAt(this.index)};g.w(GRc,g.my);g.W=GRc.prototype;g.W.show=function(){g.my.prototype.show.call(this);this.Y.N(this.api,"videodatachange",this.lW);this.Y.N(this.api,"onPlaylistUpdate",this.lW);this.lW()}; g.W.hide=function(){g.my.prototype.hide.call(this);g.Rb(this.Y);this.updatePlaylist(null)}; g.W.lW=function(){this.updatePlaylist(this.api.getPlaylist());this.api.L().W&&(this.As("ytp-playlist-menu-title-name").removeAttribute("href"),this.W&&(this.FY(this.W),this.W=null))}; g.W.CG=function(){var U=this.playlist,Y=U.author,A=Y?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c={CURRENT_POSITION:String(U.index+1),PLAYLIST_LENGTH:String(U.getLength())};Y&&(c.AUTHOR=Y);this.update({title:U.title,subtitle:g.wl(A,c),playlisturl:this.api.getVideoUrl(!0)});Y=U.T;if(Y===this.j)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[U.index];else{A=g.J(this.playlistData);for(c=A.next();!c.done;c=A.next())c.value.dispose(); A=U.getLength();this.playlistData=[];for(c=0;c=this.T&&!U.W&&!Y.isAd()&&!this.api.isEmbedsShortsMode()}else U=!1;this.visible=U;this.PQ(this.visible);g.lg(this.element,"ytp-search-button-visible",this.visible);g.lg(this.element,"ytp-show-search-title",!this.api.Wb());this.api.logVisibility(this.element,this.visible&&this.K)}; L8.prototype.tP=function(U){g.n.prototype.tP.call(this,U);this.api.logVisibility(this.element,this.visible&&U)};g.w(rJ,g.n);rJ.prototype.oa=function(U,Y,A,c){e49(this,U,c)}; rJ.prototype.Td=function(U,Y,A){e49(this,U,Y);A&&(U=U===-1?this.W.visualElement:this.Y.visualElement,A={seekData:A},(Y=g.X3())&&g.qY(Y$)(void 0,Y,U,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",A,void 0))}; rJ.prototype.Nv=function(U,Y,A){e49(this,U);Y&&X2X(this,Y,A)}; rJ.prototype.hide=function(){g.n.prototype.hide.call(this);this.T=0;this.G=void 0};g.w(g.l$,g.n);g.W=g.l$.prototype;g.W.TA=Yl(8); g.W.onClick=function(){var U=this,Y=this.api.L(),A=g.M(this.api.getVideoData(this.api.getPresentingPlayerType())),c=this.api.getPlaylistId();Y=this.api.S("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):Y.getVideoUrl(A.videoId,c,void 0,!0);if(navigator.share)try{var d=navigator.share({title:A.title,url:Y});d instanceof Promise&&d.catch(function(T){R44(U,T)})}catch(T){T instanceof Error&&R44(this,T)}else this.Y.WK(),yj(this.W,this.element,!1); this.api.logClick(this.element)}; g.W.cw=function(){var U=this.api.L(),Y=this.api.isEmbedsShortsMode();g.lg(this.element,"ytp-show-share-title",g.ay(U)&&!Y);this.Y.yG()&&Y?(U=(this.api.Cy().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.MP(this.element,"right",U+"px")):Y&&g.MP(this.element,"right","0px");this.updateValue("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{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=kRX(this);g.lg(this.element,"ytp-share-button-visible",this.visible);this.PQ(this.visible);this.tooltip.Aa();this.api.logVisibility(this.element,kRX(this)&&this.K)}; g.W.tP=function(U){g.n.prototype.tP.call(this,U);this.api.logVisibility(this.element,this.visible&&U)}; g.W.Tn=function(){g.n.prototype.Tn.call(this);g.LZ(this.element,"ytp-share-button-visible")};g.w(x1S,g.my);g.W=x1S.prototype;g.W.lF=function(U){U=eh(U);g.dv(this.J,U)||g.dv(this.closeButton,U)||yj(this)}; g.W.Kr=function(){g.my.prototype.Kr.call(this);this.tooltip.ye(this.element);this.api.logVisibility(this.Y,!1);for(var U=g.J(this.W),Y=U.next();!Y.done;Y=U.next())Y=Y.value,this.api.hasVe(Y.element)&&this.api.logVisibility(Y.element,!1)}; g.W.show=function(){var U=this.Mz;g.my.prototype.show.call(this);this.cw();U||this.api.Ev("onSharePanelOpened")}; g.W.nEv=function(){this.Mz&&this.cw()}; g.W.cw=function(){var U=this;g.ou(this.element,"ytp-share-panel-loading");g.LZ(this.element,"ytp-share-panel-fail");var Y=g.M(this.api.getVideoData()),A=this.api.getPlaylistId()&&this.j.checked;Y.getSharePanelCommand&&u1(g.M(this.api.E$()),Y.getSharePanelCommand,{includeListId:A}).then(function(c){U.Ky()||(g.LZ(U.element,"ytp-share-panel-loading"),h4X(U,c))}); Y=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",Y);this.updateValue("linkText",Y);this.updateValue("shareLinkWithUrl",g.wl("Compartir enlace: $URL",{URL:Y}));lC(this.Y);this.api.logVisibility(this.Y,!0)}; g.W.onFullscreenToggled=function(U){!U&&this.Bl()&&yj(this)}; g.W.focus=function(){this.Y.focus()}; g.W.Tn=function(){g.my.prototype.Tn.call(this);s29(this)};g.w(bEc,GS);g.W=bEc.prototype;g.W.Tn=function(){m1S(this);GS.prototype.Tn.call(this)}; g.W.Cn=function(U){U.target!==this.dismissButton.element&&(this.aA(!1),this.U.Ev("innertubeCommand",this.onClickCommand))}; g.W.L0=function(){this.Zf=!0;this.aA(!0);this.o4()}; g.W.s2v=function(U){this.G=U;this.o4()}; g.W.onVideoDataChange=function(U,Y){if(U=!!Y.videoId&&this.videoId!==Y.videoId)this.videoId=Y.videoId,this.Zf=!1,this.ov=!0,this.Z=this.Hw=!1,m1S(this),OEX(this,!1),this.T=this.Y=!1,Vh(this),p2X(this);if(U||!Y.videoId)this.Pw=this.j=!1;var A,c;if(Y==null?0:(A=Y.getPlayerResponse())==null?0:(c=A.videoDetails)==null?0:c.isLiveContent)this.Wa(!1);else{var d,T,E;Y=g.O((d=Y.getWatchNextResponse())==null?void 0:(T=d.playerOverlays)==null?void 0:(E=T.playerOverlayRenderer)==null?void 0:E.productsInVideoOverlayRenderer, lHI);this.G=this.enabled=!1;if(Y){if(d=Y==null?void 0:Y.featuredProductsEntityKey){T=g.dS.getState().entities;var L;if((L=cR(T,"featuredProductsEntity",d))==null?0:L.productsData){this.Wa(!1);return}}this.enabled=!0;if(!this.j){var r;L=(r=Y.badgeInteractionLogging)==null?void 0:r.trackingParams;(this.j=!!L)&&this.U.setTrackingParams(this.badge.element,L||null)}if(!this.Pw){var l;if(this.Pw=!((l=Y.dismissButton)==null||!l.trackingParams)){var P;this.U.setTrackingParams(this.dismissButton.element,((P= Y.dismissButton)==null?void 0:P.trackingParams)||null)}}Y.isContentForward&&(r=Y.productsData,OEX(this,!0),p2X(this),r=ZEc(this,r),l=[],r.length>0&&l.push(r[0]),r.length>1&&(P=new g.n({D:"div",B:"ytp-suggested-action-more-products-icon"}),g.Z(this,P),l.push(P),l.push.apply(l,g.X(r.slice(1)))),this.J=new g.n({D:"div",C:l,B:"ytp-suggested-action-content-forward-container"}),g.Z(this,this.J),this.eX.element.append(this.J.element));this.text=g.wB(Y.text);var V;if(r=(V=Y.dismissButton)==null?void 0:V.a11yLabel)this.dW= g.wB(r);this.onClickCommand=Y.onClickCommand;this.timing=Y.timing;this.VT()}sG3(this);He(this);this.o4()}}; g.W.Jv=function(){return!this.G&&this.enabled&&!this.Zf&&!this.U.Wb()&&!this.Tk&&(this.Z||this.ov)}; g.W.lT=function(U){GS.prototype.lT.call(this,U);if(this.Y||this.T)this.timing&&PS(this.timing.preview)&&(this.Y=!1,Vh(this),this.T=!1,Vh(this),this.U.OH("shopping_overlay_preview_collapsed"),this.U.OH("shopping_overlay_preview_expanded"),U=$o(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),PS(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.OH("shopping_overlay_expanded"),U.end=this.timing.expanded.endSec*1E3),this.U.VT([U])), this.Hw=!0,He(this);Vh(this)}; g.W.Wa=function(U){(this.Z=U)?(ve(this),He(this,!1)):(m1S(this),this.kE.start());this.o4()}; g.W.VT=function(U){var Y=this.timing;U=(U===void 0?0:U)+this.U.getCurrentTime();var A=[],c=Y.visible,d=Y.preview;Y=Y.expanded;PS(c)&&(SLX(c,U),A.push($o(c.startSec,c.endSec,"shopping_overlay_visible")));PS(d)&&(SLX(d,U),c=d.startSec+1,A.push($o(d.startSec,c,"shopping_overlay_preview_collapsed")),A.push($o(c,d.endSec,"shopping_overlay_preview_expanded")));PS(Y)&&(SLX(Y,U),A.push($o(Y.startSec,Y.endSec,"shopping_overlay_expanded")));this.U.VT(A)}; g.W.o4=function(){GS.prototype.o4.call(this);this.U.getRootNode()&&g.lg(this.U.getRootNode(),"ytp-shopping-pill-shown",this.Jv())};g.w(niY,g.n); niY.prototype.cw=function(){var U=this.api.L();this.PQ(g.ay(U)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Mz);var Y=g.M(this.api.getVideoData()),A=!1;this.api.getPresentingPlayerType()===2?A=!!Y.videoId&&!!Y.isListed&&!!Y.author&&!!Y.ws&&!!Y.profilePicture:g.ay(U)&&(A=!!Y.videoId&&!!Y.ws&&!!Y.profilePicture&&!g.Ck(Y)&&!U.W&&!(U.G&&this.api.getPlayerSize().width<200));var c=Y.profilePicture;U=g.ay(U)?Y.expandedTitle:Y.author;c=c=== void 0?"":c;U=U===void 0?"":U;A?(this.T!==c&&(this.Y.style.backgroundImage="url("+c+")",this.T=c),this.updateValue("channelLogoLabel",g.wl("Foto de $CHANNEL_NAME",{CHANNEL_NAME:U})),g.ou(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.LZ(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Y,A&&this.K);this.api.logVisibility(this.channelName,A&&this.K);this.subscribeButton&&(this.subscribeButton.channelId=Y.DT);this.updateValue("expandedTitle",Y.expandedTitle)};g.w(vS,g.my);vS.prototype.show=function(){g.my.prototype.show.call(this);this.Y.start()}; vS.prototype.hide=function(){g.my.prototype.hide.call(this);this.Y.stop()}; vS.prototype.Ex=function(U,Y){U==="dataloaded"&&((this.DG=Y.DG,this.b1=Y.b1,isNaN(this.DG)||isNaN(this.b1))?this.W&&(this.U.OH("intro"),this.U.removeEventListener(g.zf("intro"),this.G),this.U.removeEventListener(g.LS("intro"),this.J),this.U.removeEventListener("onShowControls",this.j),this.hide(),this.W=!1):(this.U.addEventListener(g.zf("intro"),this.G),this.U.addEventListener(g.LS("intro"),this.J),this.U.addEventListener("onShowControls",this.j),U=new g.EE(this.DG,this.b1,{priority:9,namespace:"intro"}), this.U.VT([U]),this.W=!0))};g.w(HS,g.n);HS.prototype.onClick=function(){this.U.zr()}; HS.prototype.cw=function(){var U=!0;g.ay(this.U.L())&&(U=U&&this.U.Cy().getPlayerSize().width>=480);this.PQ(U);this.updateValue("icon",this.U.x4()?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,V:{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"}}]}: {D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.w(Ij3,g.n);Ij3.prototype.Tn=function(){this.Y=null;g.n.prototype.Tn.call(this)};g.w(GM,g.n);GM.prototype.onClick=function(){this.U.Ev("innertubeCommand",this.T)}; GM.prototype.X=function(U){U!==this.J&&(this.update({title:U,ariaLabel:U}),this.J=U);U?this.show():this.hide()}; GM.prototype.Z=function(){this.Y.disabled=this.T==null;g.lg(this.Y,"ytp-chapter-container-disabled",this.Y.disabled);this.ya()};g.w(WS,GM);WS.prototype.onClickCommand=function(U){g.O(U,cT)&&this.ya()}; WS.prototype.updateVideoData=function(U,Y){var A,c,d;U=g.O((A=Y.getWatchNextResponse())==null?void 0:(c=A.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,XX);A=g.O(U==null?void 0:U.playerBarActionButton,g.ZK);this.U.S("web_player_updated_entrypoint")&&(this.G=Rf(A==null?void 0:A.text));this.T=A==null?void 0:A.command;GM.prototype.Z.call(this)}; WS.prototype.ya=function(){var U=this.U.S("web_player_updated_entrypoint")?this.G:"",Y=this.j.Y,A,c=((A=this.U.getLoopRange())==null?void 0:A.type)==="clips";if(Y.length>1&&!c){U=this.U.getProgressState().current*1E3;A=U0(Y,U);U=Y[A].title||"Cap\u00edtulos";if(A!==this.currentIndex||this.W)this.U.Ev("innertubeCommand",Y[A].onActiveCommand),this.currentIndex=A;this.W=!1}else this.W=!0;GM.prototype.X.call(this,U)};g.w(wJ,g.Ha);wJ.prototype.T=function(){var U;(U=this.element.parentElement)==null||U.classList.contains("ytp-right-controls-left");(this.Y=!this.Y)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; wJ.prototype.isExpanded=function(){return this.Y};g.w(i$,g.n);i$.prototype.W=function(U){g.I(U.state,32)?Kg8(this,this.api.IS()):this.Mz&&(g.I(U.state,16)||g.I(U.state,1))||this.fade.hide()}; i$.prototype.ag=function(){var U=this.api.getPlayerStateObject();(g.I(U,32)||g.I(U,16))&&qL9(this)}; i$.prototype.j=function(){this.frameIndex=NaN;qL9(this)}; i$.prototype.hide=function(){this.Y&&Kg8(this,null);g.n.prototype.hide.call(this)};g.w(CSX,g.n);g.W=CSX.prototype;g.W.onClick=function(){var U=this;if(this.U.L().VJ||this.U.L().G){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(Y){U.EN(Y)})}catch(Y){this.EN(Y)}}else yj(this.message,this.element,!0)}; g.W.EN=function(U){String(U).includes("fullscreen error")?g.Md(U):g.S5(U);this.uc()}; g.W.uc=function(){this.disable();this.message.fU(this.element,!0)}; g.W.T$=function(){w3()===this.U.getRootNode()?this.W.start():(this.W.stop(),this.message&&this.message.hide())}; g.W.DY=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var U=window.screen.width*.9,Y=window.screen.height*.9,A=Math.max(window.outerWidth,window.innerWidth),c=Math.max(window.outerHeight,window.innerHeight);if(A>c!==U>Y){var d=A;A=c;c=d}U>A&&Y>c&&this.uc()}}; g.W.disable=function(){var U=this;if(!this.message){var Y=(H5(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.my(this.U,{D:"div",Iv:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"}, C:[Y[0],{D:"a",V:{href:"https://support.google.com/youtube/answer/6276924",target:this.U.L().X},YE:Y[2]},Y[4]]},100,!0);this.message.hide();g.Z(this,this.message);this.message.subscribe("show",function(A){U.T.H1(U.message,A)}); g.S4(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Y)();this.Y=null}}; g.W.cw=function(){var U=$NX(this.U),Y=this.U.L().G&&this.U.getPlayerSize().width<250;this.PQ(U&&!Y);var A;((A=this.U.L())==null?0:A.S("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.Mz&&this.K):this.U.logVisibility(this.element,this.Mz)}; g.W.TG=function(U){if(U){var Y={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"g",B:"ytp-fullscreen-button-corner-2",C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",B:"ytp-fullscreen-button-corner-3",C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",B:"ytp-fullscreen-button-corner-0",C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g", B:"ytp-fullscreen-button-corner-1",C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};U=g.BC(this.U,"Salir del modo de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir del modo de pantalla completa"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(A){g.Md(A)})}else Y={D:"svg", V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"g",B:"ytp-fullscreen-button-corner-0",C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",B:"ytp-fullscreen-button-corner-1",C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",B:"ytp-fullscreen-button-corner-2",C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",B:"ytp-fullscreen-button-corner-3", C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},U=g.BC(this.U,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"});U=this.message?null:U;this.update({title:U,icon:Y});this.T.wq().Aa()}; g.W.Tn=function(){this.message||((0,this.Y)(),this.Y=null);g.n.prototype.Tn.call(this)}; g.W.tP=function(U){g.n.prototype.tP.call(this,U);var Y;((Y=this.U.L())==null?0:Y.S("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Mz&&U)};g.w(JV,g.n);JV.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.Y,!0);var U=this.Y>0?1:-1,Y=Math.abs(this.Y),A;(A=this.U.aS().LI)&&A.Td(U,Y);this.T.isActive()?this.W=!0:(U=["ytp-jump-spin"],this.Y<0&&U.push("backwards"),this.element.classList.add.apply(this.element.classList,g.X(U)),g.uQ(this.T))};g.w(Fo,GM);Fo.prototype.onClickCommand=function(U){g.O(U,L2o)&&this.ya()}; Fo.prototype.updateVideoData=function(){var U,Y;this.T=(U=Yd9(this))==null?void 0:(Y=U.onTap)==null?void 0:Y.innertubeCommand;GM.prototype.Z.call(this)}; Fo.prototype.ya=function(){var U="",Y=this.j.G,A,c=(A=Yd9(this))==null?void 0:A.headerTitle;A=c?g.wB(c):"";var d;c=((d=this.U.getLoopRange())==null?void 0:d.type)==="clips";Y.length>1&&!c&&(U=this.U.getProgressState().current*1E3,d=TGE(Y,U),U=d!=null?Y[d].title:A,d!=null&&d!==this.currentIndex&&(this.U.Ev("innertubeCommand",Y[d].onActiveCommand),this.currentIndex=d));GM.prototype.X.call(this,U)};g.w(ju,g.n);ju.prototype.onClick=function(){this.U.Ev("onCollapseMiniplayer");this.U.logClick(this.element)}; ju.prototype.cw=function(){this.visible=!this.U.isFullscreen();this.PQ(this.visible);this.U.logVisibility(this.element,this.visible&&this.K)}; ju.prototype.tP=function(U){g.n.prototype.tP.call(this,U);this.U.logVisibility(this.element,this.visible&&U)};g.w(Na,g.n);g.W=Na.prototype;g.W.l2=function(U){this.visible=U.width>=300||this.QJ;this.PQ(this.visible);this.U.logVisibility(this.element,this.visible&&this.K)}; g.W.rbI=function(){this.U.L().kE?this.U.isMuted()?this.U.unMute():this.U.mute():yj(this.message,this.element,!0);this.U.logClick(this.element)}; g.W.onVolumeChange=function(U){this.setVolume(U.volume,U.muted)}; g.W.setVolume=function(U,Y){var A=this,c=Y?0:U/100,d=this.U.L();U=c===0?1:U>50?1:0;if(this.J!==U){var T=this.Hw;isNaN(T)?dEl(this,U):wEv(this.jX,function(L){dEl(A,T+(A.J-T)*L)},250); this.J=U}c=c===0?1:0;if(this.j!==c){var E=this.X;isNaN(E)?TRY(this,c):wEv(this.Pw,function(L){TRY(A,E+(A.j-E)*L)},250); this.j=c}d.kE&&(d=g.BC(this.U,"Silenciar","m"),c=g.BC(this.U,"Activar sonido","m"),this.updateValue("title",Y?c:d),this.update({"data-title-no-tooltip":Y?"Activar sonido":"Silenciar"}),this.tooltip.Aa())}; g.W.tP=function(U){g.n.prototype.tP.call(this,U);this.U.logVisibility(this.element,this.visible&&U)}; var AJ3=["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"],cJ3=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.w(g.tV,g.n);g.W=g.tV.prototype;g.W.onStateChange=function(U){this.l9(U.state);var Y;((Y=this.U.L())==null?0:Y.S("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Mz&&this.K)}; g.W.l9=function(U){var Y=g.kp(g.M(this.U.getVideoData())),A=!1;U.isOrWillBePlaying()?U=Y?4:2:g.I(U,2)?(U=3,A=Y):U=1;this.element.disabled=A;if(this.Y!==U){Y=null;switch(U){case 2:Y=g.BC(this.U,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:Y="Ver de nuevo";this.update({"data-title-no-tooltip":"Ver de nuevo"});break;case 1:Y=g.BC(this.U,"Bot\u00f3n de reproducci\u00f3n","k");this.update({"data-title-no-tooltip":"Bot\u00f3n de reproducci\u00f3n"});break;case 4:Y="Detener reproducci\u00f3n en directo", this.update({"data-title-no-tooltip":"Detener reproducci\u00f3n en directo"})}U===3?this.update({title:Y,icon:E7c(U)}):(this.update({title:Y}),(Y=E7c(U))&&this.Y&&this.Y!==3?JCE(this.transition,this.element,Y):this.updateValue("icon",Y));this.tooltip.Aa();this.Y=U}}; g.W.onVideoDataChange=function(){g.lg(this.element,"ytp-play-button-playlist",g.x_(this.U))}; g.W.jT=function(U){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var Y={},A;if((A=this.U.getVideoData())==null?0:A.J)Y.cttAuthInfo={token:this.U.getVideoData().J,videoId:this.U.getVideoData().videoId};gs("direct_playback",Y);this.U.K3().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(U==null?void 0:U.type)==="click"&&this.element.blur()}; g.W.tP=function(U){g.n.prototype.tP.call(this,U);var Y;((Y=this.U.L())==null?0:Y.S("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.Mz&&U)};g.w(g.eu,g.n);g.W=g.eu.prototype;g.W.onVideoDataChange=function(){zcv(this);this.j&&(this.FY(this.j),this.j=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.j=this.N(this.U,"progresssync",this.LT);this.W=Ln4(this);o7E(this);this.Lq(this.U.Cy().getPlayerSize())}; g.W.Lq=function(U){U=U===void 0?this.U.Cy().getPlayerSize():U;var Y,A=((Y=this.U.getLoopRange())==null?void 0:Y.type)==="clips";U=(g.x_(this.U)||this.Y&&g.M9(this.U)&&!this.U.S("web_hide_next_button")||rJV(this))&&!A&&(this.Y||U.width>=400);this.PQ(U);this.U.logVisibility(this.element,U)}; g.W.onClick=function(U){this.U.logClick(this.element);var Y=!0;this.G?Y=g.zY(U,this.U):U.preventDefault();Y&&(this.Y&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.Y?(oO(this.U.K3()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.W?this.U.seekTo(0):(oO(this.U.K3()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.W.LT=function(){var U=Ln4(this);U!==this.W&&(this.W=U,o7E(this))}; g.W.Tn=function(){this.T&&(this.T(),this.T=null);zcv(this);g.n.prototype.Tn.call(this)};g.w(PX9,g.n);g.W=PX9.prototype;g.W.aW=function(U){this.a9(U.pageX);this.q2(U.pageX+U.deltaX);V28(this)}; g.W.a9=function(U){this.Pw=U-this.Uv}; g.W.q2=function(U){U-=this.Uv;!isNaN(this.Pw)&&this.thumbnails.length>0&&(this.X=U-this.Pw,this.thumbnails.length>0&&this.X!==0&&(this.W=this.Z+this.X,U=Wn9(this,this.W),this.W<=this.Y/2&&this.W>=G8E(this)?(this.api.seekTo(U,!1,void 0,void 0,25),g.MP(this.ov,"transform","translateX("+(this.W-this.Y/2)+"px)"),lkl(this,U)):this.W=this.Z))}; g.W.qn=function(){this.Hw&&(this.Hw.lJ=!0);var U=(0,g.y)()-this.yJ<300;if(Math.abs(this.X)<5&&!U){this.yJ=(0,g.y)();U=this.Pw+this.X;var Y=this.Y/2-U;this.a9(U);this.q2(U+Y);V28(this);this.api.logClick(this.J)}V28(this)}; g.W.Eg=function(){BS(this,this.api.getCurrentTime())}; g.W.play=function(U){this.api.seekTo(Wn9(this,this.W),void 0,void 0,void 0,26);this.api.playVideo();U&&this.api.logClick(this.playButton)}; g.W.onExit=function(U){this.api.seekTo(this.kE,void 0,void 0,void 0,63);this.api.playVideo();U&&this.api.logClick(this.dismissButton)}; g.W.hP=function(U,Y){this.Uv=U;this.Y=Y;BS(this,this.api.getCurrentTime())}; g.W.enable=function(){this.isEnabled||(this.isEnabled=!0,this.kE=this.api.getCurrentTime(),lkl(this,this.kE),g.lg(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.eX=this.N(this.element,"wheel",this.aW),this.logVisibility(this.isEnabled))}; g.W.disable=function(){this.isEnabled=!1;this.hide();g.lg(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.eX&&this.FY(this.eX);this.logVisibility(this.isEnabled)}; g.W.reset=function(){this.disable();this.j=[];this.QJ=!1}; g.W.logVisibility=function(U){this.api.logVisibility(this.element,U);this.api.logVisibility(this.J,U);this.api.logVisibility(this.dismissButton,U);this.api.logVisibility(this.playButton,U)}; g.W.Tn=function(){for(;this.T.length;){var U=void 0;(U=this.T.pop())==null||U.dispose()}g.n.prototype.Tn.call(this)}; g.w($EY,g.n);g.w(v7S,g.n);g.w(wV3,g.n);g.w(Xo,g.n);Xo.prototype.jc=function(U){return U==="PLAY_PROGRESS"?this.Z:U==="LOAD_PROGRESS"?this.G:U==="LIVE_BUFFER"?this.J:this.W};Fn3.prototype.update=function(U,Y,A,c){A=A===void 0?0:A;this.width=Y;this.j=A;this.Y=Y-A-(c===void 0?0:c);this.position=g.Bi(U,A,A+this.Y);this.W=this.position-A;this.T=this.W/this.Y};g.w(jPc,g.n);g.w(g.aG,g.Ha);g.W=g.aG.prototype; g.W.XS=function(){var U=!1,Y=this.api.getVideoData();if(!Y)return U;this.api.OH("timedMarkerCueRange");ecX(this);for(var A=g.J(Y.VJ),c=A.next();!c.done;c=A.next()){c=c.value;var d=void 0,T=(d=this.dW[c])==null?void 0:d.markerType;d=void 0;var E=(d=this.dW[c])==null?void 0:d.markers;if(!E)break;if(T==="MARKER_TYPE_TIMESTAMPS"){U=g.J(E);for(T=U.next();!T.done;T=U.next()){d=T.value;T=new jPc;E=void 0;T.title=((E=d.title)==null?void 0:E.simpleText)||"";T.timeRangeStartMillis=Number(d.startMillis);T.Y= Number(d.durationMillis);var L=E=void 0;T.onActiveCommand=(L=(E=d.onActive)==null?void 0:E.innertubeCommand)!=null?L:void 0;xE9(this,T)}sPl(this,this.G);U=this.G;T=this.Zh;d=[];E=null;for(L=0;Lr&&(E.end=r);r=z49(r,r+P);d.push(r);E=r;T[r.id]=U[L].onActiveCommand}}this.api.VT(d);this.E9=this.dW[c];U=!0}else if(T==="MARKER_TYPE_HEATMAP"){c=this.dW[c];P=l=d=r=L=E=void 0;if(c&& c.markers){T=(d=(P=c.markersMetadata)==null?void 0:(l=P.heatmapMetadata)==null?void 0:l.minHeightDp)!=null?d:0;d=(E=(r=c.markersMetadata)==null?void 0:(L=r.heatmapMetadata)==null?void 0:L.maxHeightDp)!=null?E:60;E=this.Y.length;L=null;for(r=0;r=P&&G<=V&&l.push(H)}d>0&&(this.Hw.style.height= d+"px");P=this.j[r];V=l;H=T;var F=d,N=r===0;N=N===void 0?!1:N;iM8(P,F);v=V;G=P.T;N=N===void 0?!1:N;var e=1E3/v.length,B=[];B.push({x:0,y:100});for(var f=0;f0&&(L=l[l.length-1])}g.xo(this)}d=void 0;T=[];if(c=(d=c.markersDecoration)==null?void 0:d.timedMarkerDecorations)for(c=g.J(c),d=c.next();!d.done;d=c.next())d=d.value,r=L=E=void 0,T.push({visibleTimeRangeStartMillis:(E=d.visibleTimeRangeStartMillis)!=null?E:-1,visibleTimeRangeEndMillis:(L=d.visibleTimeRangeEndMillis)!=null?L:-1,decorationTimeMillis:(r=d.decorationTimeMillis)!= null?r:NaN,label:d.label?g.wB(d.label):""});c=T;this.heatMarkersDecorations=c}}Y.K_=this.G;g.lg(this.element,"ytp-timed-markers-enabled",U);return U}; g.W.hP=function(){g.xo(this);hV(this);sPl(this,this.G);if(this.T){var U=g.yR(this.element).x||0;this.T.hP(U,this.J)}(U=this.api.getVideoData())&&!this.api.S("themed_progress_bar_refresh_on_resize_killswitch")&&g78(this,U)}; g.W.onClickCommand=function(U){if(U=g.O(U,cT)){var Y=U.key;U.isVisible&&Y&&M2X(this,Y)}}; g.W.o8Y=function(U){this.api.Ev("innertubeCommand",this.Zh[U.id])}; g.W.ya=function(){hV(this);var U=this.api.getCurrentTime();(Uthis.clipEnd)&&this.LG()}; g.W.pT=function(U){if(!U.defaultPrevented){var Y=!1;switch(U.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);Y=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);Y=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);Y=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);Y=!0;break;case 38:this.api.S("enable_key_press_seek_logging")&&Zq(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); this.api.seekBy(5,void 0,void 0,72);Y=!0;break;case 40:this.api.S("enable_key_press_seek_logging")&&Zq(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),Y=!0}Y&&U.preventDefault()}}; g.W.Ex=function(U,Y){this.updateVideoData(Y,U==="newdata")}; g.W.q$=function(){this.Ex("newdata",g.M(this.api.getVideoData()))}; g.W.updateVideoData=function(U,Y){Y=Y===void 0?!1:Y;var A=!!U&&U.Bp();A&&(qm(U)||OMX(this)?this.VU=!1:this.VU=U.allowLiveDvr,g.lg(this.api.getRootNode(),"ytp-enable-live-buffer",!(U==null||!qm(U))),this.api.S("enable_custom_playhead_parsing")&&g78(this,U));dWv(this,this.api.O9());if(Y){if(A){Y=U.clipEnd;this.clipStart=U.clipStart;this.clipEnd=Y;O0(this);for(b$(this,this.Pw,this.ws);this.j.length>0;)this.j.pop().dispose();this.heatMarkersDecorations=[];this.AP={};var c;(c=this.T)==null||c.reset(); Dq(this);g.lg(this.api.getRootNode(),"ytp-fine-scrubbing-exp",RG(this))}else this.LG();this.Ja()}if(U){var d;c=((d=this.Qd)==null?void 0:d.type)==="clips";if(d=!U.isLivePlayback){d=g.M(this.api.getVideoData());Y=g.kQ(d);A=XVc(d);var T;d=Y!=null||A!=null&&A.length>0||((T=d.Qs)==null?void 0:T.length)>0}if(d&&!c){T=g.M(this.api.getVideoData());c=g.kQ(T);d=!1;if(c==null?0:c.markersMap){d=g.M(this.api.getVideoData());var E;d.H2=((E=c.visibleOnLoad)==null?void 0:E.key)||d.H2;E=g.J(c.markersMap);for(c=E.next();!c.done;c= E.next())c=c.value,c.key&&c.value&&(this.AP[c.key]=c.value,c.value.onChapterRepeat&&(d.FiJ=c.value.onChapterRepeat));d.H2!=null&&M2X(this,d.H2);d=!0}var L;if(((L=T.Qs)==null?void 0:L.length)>0){L=g.dS.getState().entities;E=g.J(T.Qs);for(c=E.next();!c.done;c=E.next()){c=c.value;A=void 0;Y=(A=cR(L,"macroMarkersListEntity",c))==null?void 0:A.markersList;var r=A=void 0;if(((A=Y)==null?void 0:A.markerType)==="MARKER_TYPE_TIMESTAMPS"||((r=Y)==null?void 0:r.markerType)==="MARKER_TYPE_HEATMAP")this.dW[c]= Y}d=this.XS()||d}!d&&(L=XVc(T))&&(Rc3(this,L),T.Re=this.Y,k84(this));yJX(this,null);U.Di&&this.j.length===0&&(U=U.Di,L=U.key,U.isVisible&&L&&M2X(this,L))}else NRc(this),ecX(this)}hV(this)}; g.W.aI=function(U){this.Z&&!g.I(U.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var Y;((Y=this.T)==null?0:Y.isEnabled)&&g.I(U.state,8)&&this.api.pauseVideo();U=this.api.getPresentingPlayerType()===2||!this.api.O9()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.lg(this.fV,"ytp-hide-scrubber-button",U)}; g.W.LB=function(U){var Y=!!this.Qd!==!!U,A=this.Qd;this.Qd=U;yJX(this,A);(U==null?void 0:U.type)!=="clips"&&U||(U?(this.updateValue("clipstarticon",jEY()),this.updateValue("clipendicon",jEY()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",v6X()),this.updateValue("clipendicon",$C3()),this.updateValue("clipstarttitle","Ver v\u00eddeo completo"),this.updateValue("clipendtitle","Ver v\u00eddeo completo")),Y&&(this.updateVideoData(this.api.getVideoData(), !0),g.xo(this)),O0(this));b$(this,this.Pw,this.ws)}; g.W.uyI=function(U,Y,A){var c=g.yR(this.element),d=f8(this).Y,T=A?A.getAttribute("data-tooltip"):void 0,E=A?A.getAttribute("data-position"):void 0,L=A?A.getAttribute("data-offset-y"):void 0;L=L?Number(L):0;E&&(U=SR(this.W,Number(A.getAttribute("data-position")),0)*d+g.yR(this.progressBar).x);this.i$.x=U-c.x;this.i$.y=Y-c.y;U=f8(this);A=Qh(this,U);Y=0;var r;if((r=this.api.getVideoData())==null?0:qm(r))(r=this.api.getProgressState().seekableEnd)&&A>r&&(A=r,U.position=SR(this.W,r)*f8(this).Y),Y=this.W.T; OMX(this)&&(Y=this.W.T);r=T||g.eR(this.VU?A-this.W.Y:A-Y);Y=U.position+this.DG;A-=this.api.Zm();var l;if((l=this.T)==null||!l.isEnabled)if(this.api.IS()){if(this.Y.length>1){l=p8(this,this.i$.x,!0);if(!this.Qd)for(c=0;c1)for(c=0;c0)for(l=this.i$.x,c=g.J(this.G),d=c.next();!d.done;d=c.next())d=d.value,E=s0(this,d.timeRangeStartMillis/ (this.W.Y*1E3),f8(this)),g.lg(d.element,"ytp-timed-marker-hover",E<=l&&E+6>=l);c=this.tooltip.scale;l=this.api.S("delhi_modern_web_player")?67:45;L=(isNaN(L)?0:L)-l*c;this.api.S("web_key_moments_markers")?this.E9?(l=TGE(this.G,A*1E3),l=l!=null?this.G[l].title:""):(l=U0(this.Y,A*1E3),l=this.Y[l].title):(l=U0(this.Y,A*1E3),l=this.Y[l].title);l||(L+=16*c);this.tooltip.scale===.6&&(g.Cs(this.api.L())?(L=this.api.Cy().getPlayerSize().height-225,L=l?L+110:L+110+16):L=l?110:126);c=U0(this.Y,A*1E3);this.QJ= n7X(this,A,c)?c:n7X(this,A,c+1)?c+1:-1;g.lg(this.api.getRootNode(),"ytp-progress-bar-snap",this.QJ!==-1&&this.Y.length>1);c=!1;d=g.J(this.heatMarkersDecorations);for(E=d.next();!E.done;E=d.next()){E=E.value;var P=A*1E3;P>=E.visibleTimeRangeStartMillis&&P<=E.visibleTimeRangeEndMillis&&(l=E.label,r=g.eR(E.decorationTimeMillis/1E3),c=!0)}this.zs!==c&&(this.zs=c,this.api.logVisibility(this.sT,this.zs));g.lg(this.api.getRootNode(),"ytp-progress-bar-decoration",c);c=160*this.tooltip.scale*2;d=l.length* (this.X?8.55:5.7);d=d<=c?d:c;E=d<160*this.tooltip.scale;c=3;!E&&d/2>U.position&&(c=1);!E&&d/2>this.J-U.position&&(c=2);this.api.L().G&&(L-=10);this.j.length&&this.j[0].Bp&&(L-=14*(this.X?2:1),this.kE||(this.kE=!0,this.api.logVisibility(this.Hw,this.kE)));var V;if(RG(this)&&(((V=this.T)==null?0:V.isEnabled)||this.Ly>0)){var v;L-=((v=this.T)==null?0:v.isEnabled)?gJ(this):this.Ly}V=void 0;RG(this)&&!this.api.S("web_player_hide_fine_scrubbing_edu")&&(V="Arrastra hacia arriba para b\u00fasquedas m\u00e1s precisas", this.Uv||(this.Uv=!0,this.api.logVisibility(this.o2,this.Uv)));this.tooltip.SF(Y,A,r,!!T,L,l,c,V)}else this.tooltip.SF(Y,A,r,!!T,L);g.ou(this.api.getRootNode(),"ytp-progress-bar-hover");ZMX(this)}; g.W.D5X=function(){this.Ja();g.LZ(this.api.getRootNode(),"ytp-progress-bar-hover");this.kE&&(this.kE=!1,this.api.logVisibility(this.Hw,this.kE));this.Uv&&(this.Uv=!1,this.api.logVisibility(this.o2,this.Uv))}; g.W.j2w=function(U,Y){var A=g.yR(this.element);this.nU=U-A.x;RG(this)&&this.T&&(this.T.QJ?BS(this.T,this.api.getCurrentTime()):HMY(this.T),this.T.show(),g.lg(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.T.isEnabled));this.Bu&&(this.Bu.dispose(),this.Bu=null);this.kC=Y;this.b1=this.api.getCurrentTime();this.Y.length>1&&this.QJ!==-1?this.api.seekTo(this.Y[this.QJ].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Qh(this,f8(this)),!1,void 0,void 0,7);g.ou(this.element,"ytp-drag");(this.Ie= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.W.Q2s=function(){if(RG(this)&&this.T){var U=gJ(this);this.Ly>=U*.5?(this.T.enable(),BS(this.T,this.api.getCurrentTime()),c8X(this,U)):Dq(this)}if(g.I(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var Y;if((Y=this.T)==null?0:Y.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Y.length>1&&this.QJ!==-1)this.api.S("html5_enable_progress_bar_slide_seek_logging")&&Zq(this,this.b1,this.Y[this.QJ].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Y[this.QJ].startTime/1E3,void 0,void 0,void 0,7);else{U=Qh(this,f8(this));this.api.S("html5_enable_progress_bar_slide_seek_logging")&&Zq(this,this.b1,U,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(U,void 0,void 0,void 0,7);Y=g.J(this.heatMarkersDecorations);for(var A=Y.next();!A.done;A=Y.next())A=A.value,U*1E3>=A.visibleTimeRangeStartMillis&&U*1E3<=A.visibleTimeRangeEndMillis&& this.api.logClick(this.sT)}g.LZ(this.element,"ytp-drag");this.jX&&(this.ov.src=this.jX);this.Ie&&!g.I(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.W.Fbn=function(U,Y){var A=this,c=f8(this),d=Qh(this,c);this.api.S("enable_custom_playhead_parsing")&&!this.api.Cy().cS&&(c.position>this.nU+2?this.Me&&(this.ov.src=this.Me):c.position1);this.PQ(U&&this.U.Cy().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.Mz);var Y=1;U&&this.isActive()&&(Y=2);if(this.Y!==Y){this.Y=Y;switch(Y){case 1:this.updateValue("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{D:"path",xs:!0,V:{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.PWc())}g.lg(this.element,"ytp-remote-button-active",this.isActive())}}; IG.prototype.T=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var U=this.o1,Y=this.element;if(U.Bl())U.Kr();else{U.initialize();a:{var A=g.J(U.Ts.items);for(var c=A.next();!c.done;c=A.next())if(c=c.value,c.priority===1){A=c;break a}A=null}A&&(A.open(),U.fU(Y));U.fU(Y)}}this.U.logClick(this.element)};g.w(u$,g.n);u$.prototype.Y=function(U){var Y=this.U.L(),A=400;this.U.S("web_player_small_hbp_settings_menu")&&Y.J?A=300:Y.G&&(A=200);U=this.T&&U.width>=A;this.PQ(U);this.U.S("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,U&&this.K):this.U.logVisibility(this.element,U)}; u$.prototype.W=function(){if(this.o1.Mz)this.o1.Kr();else{var U=g.wH(this.U.WZ());U&&!U.loaded&&(U.W5("tracklist",{includeAsr:!0}).length||U.load());this.U.logClick(this.element);this.o1.fU(this.element)}}; u$.prototype.updateBadge=function(){var U=this.U.isHdr(),Y=this.U.getPresentingPlayerType(),A=Y!==2&&Y!==3,c=g.hl(this.U),d=A&&!!g.fq(this.U.WZ());Y=d&&c.displayMode===1;c=d&&c.displayMode===2;A=(d=Y||c)||!A?null:this.U.getPlaybackQuality();g.lg(this.element,"ytp-hdr-quality-badge",U);g.lg(this.element,"ytp-hd-quality-badge",!U&&(A==="hd1080"||A==="hd1440"));g.lg(this.element,"ytp-4k-quality-badge",!U&&A==="hd2160");g.lg(this.element,"ytp-5k-quality-badge",!U&&A==="hd2880");g.lg(this.element,"ytp-8k-quality-badge", !U&&A==="highres");g.lg(this.element,"ytp-3d-badge-grey",!U&&d&&Y);g.lg(this.element,"ytp-3d-badge",!U&&d&&c)};g.w(K8,EN);K8.prototype.isLoaded=function(){var U=g.th(this.U.WZ());return U!==void 0&&U.loaded}; K8.prototype.cw=function(){g.th(this.U.WZ())!==void 0&&this.U.getPresentingPlayerType()!==3?this.Y||(this.o1.gf(this),this.Y=!0):this.Y&&(this.o1.ph(this),this.Y=!1);oV(this,this.isLoaded())}; K8.prototype.onSelect=function(U){this.isLoaded();U?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",U)}; K8.prototype.Tn=function(){this.Y&&this.o1.ph(this);EN.prototype.Tn.call(this)};g.w(qa,g.kI);qa.prototype.cw=function(){var U=this.U.getAvailableAudioTracks();U.length>1?(this.KX(g.mk(U,this.Y)),this.tracks=g.bw(U,this.Y,this),this.countLabel.CU(U.length?" ("+U.length+")":""),this.publish("size-change"),this.oS(this.Y(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; qa.prototype.FX=function(U){g.kI.prototype.FX.call(this,U);this.U.setAudioTrack(this.tracks[U]);this.o1.Qt()}; qa.prototype.Y=function(U){return U.toString()};g.w(C8,EN); C8.prototype.T=function(){var U=this.U.getPresentingPlayerType();if(U!==2&&U!==3&&g.M9(this.U))this.Y||(this.o1.gf(this),this.Y=!0,this.W.push(this.N(this.U,"videodatachange",this.T)),this.W.push(this.N(this.U,"videoplayerreset",this.T)),this.W.push(this.N(this.U,"onPlaylistUpdate",this.T)),this.W.push(this.N(this.U,"autonavchange",this.j)),U=g.M(this.U.getVideoData()),this.j(U.autonavState),this.U.logVisibility(this.element,this.Y));else if(this.Y){this.o1.ph(this);this.Y=!1;U=g.J(this.W);for(var Y= U.next();!Y.done;Y=U.next())this.FY(Y.value)}}; C8.prototype.j=function(U){oV(this,U!==1)}; C8.prototype.onSelect=function(U){this.U.Rz(U?2:1);this.Y&&(this.U.logVisibility(this.element,this.Y),this.U.logClick(this.element))}; C8.prototype.Tn=function(){this.Y&&this.o1.ph(this);EN.prototype.Tn.call(this)};g.w(ETX,g.Ir);ETX.prototype.onClick=function(U){U.preventDefault();var Y,A;(Y=g.WC(this.U))==null||(A=Y.qF())==null||A.Kr();var c,d;(c=g.WC(this.U))==null||(d=c.iA())==null||d.fU(U.target)};g.w(oTX,g.kI);g.W=oTX.prototype; g.W.Lv=function(){var U=this.U.getPresentingPlayerType();if(U!==2&&U!==3){this.ov=this.U.qt();var Y=this.U.getAvailableQualityLevels();if(this.Y){this.j={};U=g.Vj(this.U,"getAvailableQualityData",[]);U=g.J(U);for(var A=U.next();!A.done;A=U.next())A=A.value,this.j[A.qualityLabel]=A;U=Object.keys(this.j);Y[Y.length-1]==="auto"&&U.push("auto");this.jX=new Set(Y)}else if(this.J){A=g.Vj(this.U,"getAvailableQualityData",[]);U=[];A=g.J(A);for(var c=A.next();!c.done;c=A.next())c=c.value,this.X[c.quality]= c,c.quality&&U.push(c.quality);Y[Y.length-1]==="auto"&&U.push("auto")}else U=Y;g.Cy3(this.U)&&this.U.xO()&&U.unshift("missing-qualities");Y=this.U.app.bY();A=Y.getVideoData();if(!A.T||!A.T.video||A.T.video.qualityOrdinal<1080||A.zt)Y=!1;else{c=/^qsa/.test(A.clientPlaybackNonce);var d="r";A.T.id.indexOf(";")>=0&&(c=/^[a-p]/.test(A.clientPlaybackNonce),d="x");c?(Y.wW("iqss",{trigger:d},!0),Y=!0):Y=!1}Y&&U.unshift("inline-survey");this.KX(U);Y=g.M(this.U.getVideoData()).cotn?!0:!1;A=this.Hw.gY();A=!g.Cs(this.U.L())|| !(Y===void 0?0:Y)||!(A===void 0||A);Y=this.T;A=A===void 0?!1:A;Y.CM&&g.lg(Y.As("ytp-panel-footer"),"ytp-panel-hide-footer",A===void 0?!1:A);if(U.length){this.q8();this.enable(!0);return}}this.enable(!1)}; g.W.q8=function(){if(this.Y){var U=this.U.getPreferredQuality();this.jX.has(U)&&(this.G=this.U.getPlaybackQuality(),this.Pw=this.U.getPlaybackQualityLabel(),U==="auto"?(this.oS(U),this.CU(this.Jw(U))):this.oS(this.Pw))}else U=this.U.getPreferredQuality(),this.options[U]&&(this.G=this.U.getPlaybackQuality(),this.oS(U),U==="auto"&&this.CU(this.Jw(U)))}; g.W.FX=function(U){if(U!=="missing-qualities"){g.kI.prototype.FX.call(this,U);var Y=this.Y?this.j[U]:this.X[U];var A=Y==null?void 0:Y.quality,c=Y==null?void 0:Y.formatId,d=Y==null?void 0:Y.paygatedQualityDetails;Y=d==null?void 0:d.endpoint;if(d){var T;d=(T=this.options[U])==null?void 0:T.element;this.U.logClick(d)}if(this.Y){var E,L;if((E=g.O(Y,g.cUo))==null?0:(L=E.popup)==null?0:L.notificationActionRenderer)this.U.Ev("innertubeCommand",Y);else if(Y){this.U.Ev("innertubeCommand",Y);return}c?this.U.setPlaybackQuality(A, c):this.U.setPlaybackQuality(A)}else{if(this.J){var r,l;if((r=g.O(Y,g.cUo))==null?0:(l=r.popup)==null?0:l.notificationActionRenderer)this.U.Ev("innertubeCommand",Y);else if(Y){this.U.Ev("innertubeCommand",Y);return}}this.U.setPlaybackQuality(U)}this.o1.Kr();this.Lv()}}; g.W.open=function(){for(var U=g.J(Object.values(this.options)),Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var A=void 0;this.U.hasVe((A=Y)==null?void 0:A.element)&&(A=void 0,this.U.logVisibility((A=Y)==null?void 0:A.element,!0))}g.kI.prototype.open.call(this);this.U.logClick(this.element)}; g.W.y3=function(U,Y,A){var c=this;if(U==="missing-qualities")return new g.Ir({D:"a",Iv:["ytp-menuitem"],V:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.L().X,tabindex:"0",role:"menuitemradio"},C:[{D:"div",Iv:["ytp-menuitem-label"],YE:"{{label}}"}]},Y,this.Jw(U));if(U!=="inline-survey"){var d,T=(d=this.Y?this.j[U]:this.X[U])==null?void 0:d.paygatedQualityDetails;d=T==null?void 0:T.veType;T=T==null?void 0:T.trackingParams;Y=g.kI.prototype.y3.call(this,U,Y,A);T?(this.U.createServerVe(Y.element, this,!0),this.U.setTrackingParams(Y.element,T)):d&&this.U.createClientVe(Y.element,this,d,!0);return Y}U=[{D:"span",YE:"\u00bfSe ve bien?"}];A=g.J([!0,!1]);T=A.next();for(d={};!T.done;d={Cp:void 0},T=A.next())d.Cp=T.value,T=new g.n({D:"span",B:"ytp-menuitem-inline-survey-response",C:[d.Cp?Fv8():G1X()],V:{tabindex:"0",role:"button"}}),T.listen("click",function(E){return function(){var L=c.U.app.bY();L.wW("iqsr",{tu:E.Cp});L.getVideoData().zt=!0;c.o1.Kr();c.Lv()}}(d)),U.push(T); return new g.Ir({D:"div",B:"ytp-menuitem",V:{"aria-disabled":"true"},C:[{D:"div",Iv:["ytp-menuitem-label"],C:U}]},Y)}; g.W.Jw=function(U,Y){Y=Y===void 0?!1:Y;if(U==="missing-qualities")return{D:"div",YE:"\u00bfFalta alguna opci\u00f3n?"};if(U==="inline-survey")return"";var A=this.J||this.Y?[r8Y(this,U,Y,!1)]:[LcY(this,U)];var c=this.U.getPreferredQuality();Y||c!=="auto"||U!=="auto"||(A.push(" "),this.Y?A.push(r8Y(this,this.Pw,Y,!0,["ytp-menu-label-secondary"])):this.J?A.push(r8Y(this,this.G,Y,!0,["ytp-menu-label-secondary"])):A.push(LcY(this,this.G,["ytp-menu-label-secondary"])));return{D:"div",C:A}};g.w(Up,g.n);Up.prototype.init=function(){this.updateValue("minvalue",this.J);this.updateValue("maxvalue",this.G);this.updateValue("stepvalue",this.Z);this.updateValue("slidervalue",this.Y);lgV(this,this.Y)}; Up.prototype.j=function(){Yu(this,Number(this.T.value));this.T.focus()}; Up.prototype.W=function(U){if(!U.defaultPrevented){switch(U.code){case "ArrowDown":U=-this.Z;break;case "ArrowUp":U=this.Z;break;default:return}Yu(this,Math.min(this.G,Math.max(Number((this.Y+U).toFixed(2)),this.J)))}};g.w(AC,Up);AC.prototype.j=function(){Up.prototype.j.call(this);this.X&&P0Y(this)}; AC.prototype.ov=function(){this.Pw()}; AC.prototype.Hw=function(){this.U.setPlaybackRate(this.Y,!0)}; AC.prototype.W=function(U){Up.prototype.W.call(this,U);this.Pw();P0Y(this);U.preventDefault()};g.w(cE,g.n);g.W=cE.prototype;g.W.init=function(){this.tC(this.Y);this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.W)}; g.W.CT=function(U){if(!U.defaultPrevented){switch(U.keyCode){case 37:case 40:var Y=-this.Z;break;case 39:case 38:Y=this.Z;break;default:return}this.tC(this.Y+Y);U.preventDefault()}}; g.W.RW=function(U){var Y=this.Y;Y+=(U.deltaX||-U.deltaY)<0?-this.X:this.X;this.tC(Y);U.preventDefault()}; g.W.nT=function(U){U=(U-g.yR(this.j).x)/this.Pw*this.range+this.T;this.tC(U)}; g.W.tC=function(U,Y){Y=Y===void 0?"":Y;U=g.Bi(U,this.T,this.W);Y===""&&(Y=U.toString());this.updateValue("valuenow",U);this.updateValue("valuetext",Y);this.Hw.style.left=(U-this.T)/this.range*(this.Pw-this.QJ)+"px";this.Y=U}; g.W.focus=function(){this.eX.focus()};g.w(dQ,cE);dQ.prototype.ov=function(){this.U.setPlaybackRate(this.Y,!0)}; dQ.prototype.tC=function(U){cE.prototype.tC.call(this,U,$Wc(this,U).toString());this.J&&(VVE(this),this.jX())}; dQ.prototype.updateValues=function(){var U=this.U.getPlaybackRate();$Wc(this,this.Y)!==U&&(this.tC(U),VVE(this))};g.w(vT3,g.Ha);vT3.prototype.focus=function(){this.Y.focus()};g.w(H7X,We);g.w(GQV,g.kI);g.W=GQV.prototype;g.W.Jw=function(U){return U==="1"?"Normal":U.toLocaleString()}; g.W.cw=function(){var U,Y=(U=this.U.getVideoData())==null?void 0:U.b9();U=this.U.getPresentingPlayerType(Y);this.enable(U!==2&&U!==3);i7c(this)}; g.W.KX=function(U){g.kI.prototype.KX.call(this,U);this.G&&this.G.T.focus()}; g.W.us=function(U){g.kI.prototype.us.call(this,U);U?(this.Pw=this.N(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),i7c(this),WcX(this,this.U.getPlaybackRate())):(this.FY(this.Pw),this.Pw=null)}; g.W.onPlaybackRateChange=function(U){var Y=this.U.getPlaybackRate();!this.j&&this.X.includes(Y)||w8c(this,Y);WcX(this,U)}; g.W.y3=function(U,Y,A){return U===this.Y&&J8X(this.U)?g.kI.prototype.y3.call(this,U,Y,A,{D:"div",B:"ytp-speed-slider-menu-footer",C:[this.G]}):g.kI.prototype.y3.call(this,U,Y,A)}; g.W.FX=function(U){g.kI.prototype.FX.call(this,U);U===this.Y?this.U.setPlaybackRate(this.J,!0):this.U.setPlaybackRate(Number(U),!0);J8X(this.U)&&U===this.Y||this.o1.Qt()}; g.W.BV=function(U){var Y=U===this.Y;this.j=!1;Y&&TK(this.U)&&!J8X(this.U)?(U=new H7X(this.U),g.Fx(this.o1,U)):g.kI.prototype.BV.call(this,U)};g.w(jZX,g.kI);g.W=jZX.prototype;g.W.oS=function(U){g.kI.prototype.oS.call(this,U)}; g.W.aB=function(U){return U.option.toString()}; g.W.getOption=function(U){return this.settings[U]}; g.W.Jw=function(U){return this.getOption(U).text||""}; g.W.FX=function(U){g.kI.prototype.FX.call(this,U);this.publish("settingChange",this.setting,this.settings[U].option)};g.w(ok,g.wV);ok.prototype.B5=function(U){for(var Y=g.J(Object.keys(U)),A=Y.next();!A.done;A=Y.next()){var c=A.value;if(A=this.b8[c]){var d=U[c].toString();c=!!U[c+"Override"];A.options[d]&&(A.oS(d),A.j.element.setAttribute("aria-checked",String(!c)),A.Y.element.setAttribute("aria-checked",String(c)))}}}; ok.prototype.R4=function(U,Y){this.publish("settingChange",U,Y)};g.w(zK,g.kI);zK.prototype.Y=function(U){return U.languageCode}; zK.prototype.Jw=function(U){return this.languages[U].languageName||""}; zK.prototype.FX=function(U){this.publish("select",U);this.U.logClick(this.element);g.jG(this.o1)};g.w(ex8,g.kI);g.W=ex8.prototype;g.W.qs=function(U){return g.qF(U)?"__off__":U.displayName}; g.W.Jw=function(U){return U==="__off__"?"Desactivados":U==="__translate__"?"Traducir autom\u00e1ticamente":U==="__contribute__"?"A\u00f1adir subt\u00edtulos":U==="__correction__"?"Sugerir correcciones en los subt\u00edtulos":(U==="__off__"?{}:this.tracks[U]).displayName}; g.W.FX=function(U){if(U==="__translate__")this.Y.open();else if(U==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var Y=g.yV(this.U.L(),g.M(this.U.getVideoData()));g.yz(Y)}else if(U==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var A=BM3(this);Lo(this,A);g.kI.prototype.FX.call(this,this.qs(A));var c,d;A=(Y=this.U.getVideoData().getPlayerResponse())==null?void 0:(c=Y.captions)==null?void 0:(d=c.playerCaptionsTracklistRenderer)== null?void 0:d.openTranscriptCommand;this.U.Ev("innertubeCommand",A);this.o1.Qt();this.j&&this.U.logClick(this.j)}else{if(U==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();Y=BM3(this);Lo(this,Y);g.kI.prototype.FX.call(this,this.qs(Y));var T,E;Y=(A=this.U.getVideoData().getPlayerResponse())==null?void 0:(T=A.captions)==null?void 0:(E=T.playerCaptionsTracklistRenderer)==null?void 0:E.openTranscriptCommand;this.U.Ev("innertubeCommand",Y)}else this.U.logClick(this.element), Lo(this,U==="__off__"?{}:this.tracks[U]),g.kI.prototype.FX.call(this,U);this.o1.Qt()}}; g.W.cw=function(){var U=this.U.getOptions();U=U&&U.indexOf("captions")!==-1;var Y=this.U.getVideoData(),A=Y&&Y.EA,c,d=!((c=this.U.getVideoData())==null||!g.Ip(c));c={};if(U||A){var T;if(U){var E=g.M(this.U.getOption("captions","track"));c=J33(this.U.getOption("captions","tracklist",{includeAsr:!0}));var L=d?[]:J33(this.U.getOption("captions","translationLanguages"));this.tracks=g.bw(c,this.qs,this);d=g.mk(c,this.qs);var r,l;BM3(this)&&((T=Y.getPlayerResponse())==null?0:(r=T.captions)==null?0:(l=r.playerCaptionsTracklistRenderer)== null?0:l.openTranscriptCommand)&&d.push("__correction__");if(L.length&&!g.qF(E)){if((T=E.translationLanguage)&&T.languageName){var P=T.languageName;T=L.findIndex(function(V){return V.languageName===P}); x4X(L,T)}NMS(this.Y,L);d.push("__translate__")}T=this.qs(E)}else this.tracks={},d=[],T="__off__";d.unshift("__off__");this.tracks.__off__={};A&&d.unshift("__contribute__");this.tracks[T]||(this.tracks[T]=E,d.push(T));this.KX(d);this.oS(T);E&&E.translationLanguage?this.Y.oS(this.Y.Y(E.translationLanguage)):Yp9(this.Y);U&&this.J.B5(g.M(this.U.getSubtitlesUserSettings()));this.countLabel.CU(c&&c.length?" ("+c.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.W.V4=function(U){var Y=g.M(this.U.getOption("captions","track"));Y=g.YR(Y);Y.translationLanguage=this.Y.languages[U];Lo(this,Y)}; g.W.R4=function(U,Y){if(U==="reset")this.U.resetSubtitlesUserSettings();else{var A={};A[U]=Y;this.U.updateSubtitlesUserSettings(A)}tVv(this,!0);this.G.start();this.J.B5(g.M(this.U.getSubtitlesUserSettings()))}; g.W.nrv=function(U){U||g.U4(this.G)}; g.W.Tn=function(){g.U4(this.G);g.kI.prototype.Tn.call(this)}; g.W.open=function(){g.kI.prototype.open.call(this);this.options.__correction__&&!this.j&&(this.j=this.options.__correction__.element,this.U.createClientVe(this.j,this,167341),this.U.logVisibility(this.j,!0))};g.w(X8l,g.JW);g.W=X8l.prototype; g.W.initialize=function(){if(!this.isInitialized){var U=this.U.L();this.isInitialized=!0;try{this.Fc=new oTX(this.U,this)}catch(A){g.Md(Error("QualityMenuItem creation failed"))}g.Z(this,this.Fc);var Y=new ex8(this.U,this);g.Z(this,Y);U.W||(Y=new K8(this.U,this),g.Z(this,Y));U.enableSpeedOptions&&(Y=new GQV(this.U,this),g.Z(this,Y));(g.ay(U)||U.J)&&(U.T||U.yJ)&&(Y=new ETX(this.U,this),g.Z(this,Y));U.o2&&!U.S("web_player_move_autonav_toggle")&&(U=new C8(this.U,this),g.Z(this,U));U=new qa(this.U,this); g.Z(this,U);this.U.publish("settingsMenuInitialized");TMc(this.settingsButton,this.Ts.F7())}}; g.W.gf=function(U){this.initialize();this.Ts.gf(U);TMc(this.settingsButton,this.Ts.F7())}; g.W.ph=function(U){this.Mz&&this.Ts.F7()<=1&&this.hide();this.Ts.ph(U);TMc(this.settingsButton,this.Ts.F7())}; g.W.fU=function(U){this.initialize();this.Ts.F7()>0&&g.JW.prototype.fU.call(this,U)}; g.W.Kr=function(){this.s1?this.s1=!1:g.JW.prototype.Kr.call(this)}; g.W.show=function(){g.JW.prototype.show.call(this);g.ou(this.U.getRootNode(),"ytp-settings-shown")}; g.W.hide=function(){g.JW.prototype.hide.call(this);g.LZ(this.U.getRootNode(),"ytp-settings-shown")}; g.W.Wa=function(U){this.U.logVisibility(this.element,U);this.U.publish("settingsMenuVisibilityChanged",U)};g.w(RxX,g.n);g.W=RxX.prototype;g.W.onClick=function(){if(agl(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var U=!1,Y=g.OI(g.Zo(),65);g.Cs(this.U.L())&&Y!=null&&(U=!Y);U&&this.U.L().S("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.W.Aey=function(U){var Y,A;(Y=g.WC(this.U))==null||(A=Y.qF())==null||A.fU(U)}; g.W.isEnabled=function(){return!!this.U.getOption("captions","track").displayName}; g.W.cw=function(){var U=agl(this),Y=300;this.U.L().G&&(Y=480);if(this.U.L().J){this.updateValue("title",g.BC(this.U,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var A=U}else{if(U)(A=this.As("ytp-subtitles-button-icon"))==null||A.setAttribute("fill-opacity","1"),this.updateValue("title",g.BC(this.U,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{var c;(c=this.As("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity", "0.3");this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}A=!0}this.tooltip.Aa();A=A&&this.U.Cy().getPlayerSize().width>=Y;this.PQ(A);this.U.S("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,A&&this.K):this.U.logVisibility(this.element,A);U?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.W.tP=function(U){g.n.prototype.tP.call(this,U);this.U.L().S("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.Mz&&U)};g.w(g.rQ,g.n);g.W=g.rQ.prototype; g.W.ya=function(){var U=this.api.Cy().getPlayerSize().width,Y=this.X;this.api.L().G&&(Y=400);Y=U>=Y&&(!lb(this)||!g.I(this.api.getPlayerStateObject(),64));this.PQ(Y);g.lg(this.element,"ytp-time-display-allow-autohide",Y&&U<400);U=this.api.getProgressState();if(Y){var A=this.api.getPresentingPlayerType();Y=this.api.getCurrentTime(A,!1);this.T&&(Y-=U.airingStart);PE(this)&&(Y-=this.Qd.startTimeMs/1E3);PE(this)||lb(this)||!this.W||(Y-=this.api.getDuration(A,!1));var c=g.eR(Y);this.j!==c&&(this.updateValue("currenttime", c),this.j=c);A=PE(this)?(this.Qd.endTimeMs-this.Qd.startTimeMs)/1E3:this.api.getDuration(A,!1);c=g.eR(A);this.J!==c&&(this.updateValue("duration",c),this.J=c,Y&&(Y=g.wl("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.eR(Y,!0),DURATION:g.eR(A,!0)}),this.updateValue("timeDisplayAriaLabel",Y)))}xW4(this,U.isAtLiveHead);sZ8(this,this.api.getLoopRange())}; g.W.onLoopRangeChange=function(U){var Y=this.Qd!==U;this.Qd=U;Y&&(this.ya(),fg3(this))}; g.W.Qxr=function(){this.api.setLoopRange(null)}; g.W.ntE=function(){this.W=!this.W;this.ya()}; g.W.onVideoDataChange=function(U,Y,A){this.updateVideoData((this.api.L().S("enable_topsoil_wta_for_halftime")||this.api.L().S("enable_topsoil_wta_for_halftime_live_infra"))&&A===2?this.api.getVideoData(1):Y);this.ya();fg3(this)}; g.W.updateVideoData=function(U){this.T5=U.isLivePlayback&&!U.i$;this.T=qm(U);this.isPremiere=U.isPremiere;g.lg(this.element,"ytp-live",lb(this))}; g.W.onClick=function(U){U.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.W.Tn=function(){this.Y&&this.Y();g.n.prototype.Tn.call(this)};g.w(ScY,g.n);g.W=ScY.prototype;g.W.T$=function(){var U=this.api.yG();this.W!==U&&(this.W=U,hx9(this,this.api.getVolume(),this.api.isMuted()))}; g.W.EE=function(U){this.PQ(U.width>=350)}; g.W.Mu=function(U){if(!U.defaultPrevented){var Y=U.keyCode,A=null;Y===37?A=this.volume-5:Y===39?A=this.volume+5:Y===36?A=0:Y===35&&(A=100);A!==null&&(A=g.Bi(A,0,100),A===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(A)),U.preventDefault())}}; g.W.hR=function(U){var Y=U.deltaX||-U.deltaY;U.deltaMode?this.api.setVolume(this.volume+(Y<0?-10:10)):this.api.setVolume(this.volume+g.Bi(Y/10,-10,10));U.preventDefault()}; g.W.MMW=function(){V0(this,this.Y,!0,this.T,this.api.qk());this.X=this.volume;this.api.isMuted()&&this.api.unMute()}; g.W.X4=function(U){var Y=this.W?78:52,A=this.W?18:12;U-=g.yR(this.Z).x;this.api.setVolume(g.Bi((U-A/2)/(Y-A),0,1)*100)}; g.W.XpT=function(){V0(this,this.Y,!1,this.T,this.api.qk());this.volume===0&&(this.api.mute(),this.api.setVolume(this.X))}; g.W.onVolumeChange=function(U){hx9(this,U.volume,U.muted)}; g.W.AF=function(){V0(this,this.Y,this.isDragging,this.T,this.api.qk())}; g.W.Tn=function(){g.n.prototype.Tn.call(this);g.LZ(this.G,"ytp-volume-slider-active")};g.w($u,Up);$u.prototype.onVolumeChange=function(U){if(this.X)this.X=!1;else{var Y=U.volume;Y===0||U.muted?Yu(this,0):Yu(this,Y)}}; $u.prototype.j=function(){Up.prototype.j.call(this);this.Pw(this.Y)}; $u.prototype.W=function(U){Up.prototype.W.call(this,U);this.Pw(this.Y)}; $u.prototype.Hw=function(U,Y){this.X=!0;U===0||Y?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(U))};g.w(b74,g.n);g.w(vE,g.n); vE.prototype.onVideoDataChange=function(){var U=this.api.L();this.hP();this.visible=!!g.M(this.api.getVideoData()).videoId&&!g.Ck(g.M(this.api.getVideoData(1)));this.PQ(this.visible);this.api.logVisibility(this.element,this.visible&&this.K);if(this.visible){var Y=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",Y)}U.W&&(this.Y&&(this.FY(this.Y),this.Y=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.ou(this.element,"no-link")); Y=this.api.L();U=g.M(this.api.getVideoData());var A="";Y.W||(Y=g.D8(Y),Y.indexOf("www.")===0&&(Y=Y.substring(4)),A=g.UW(U)?"Ver en YouTube Music":Y==="youtube.com"?"Ver en YouTube":g.wl("Ver en $WEBSITE",{WEBSITE:Y}));this.updateValue("title",A)}; vE.prototype.onClick=function(U){this.api.S("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Y=this.api.L(),A=this.api.getVideoUrl(!g.Bh(U),!1,!0,!0);if(g.ay(Y)){var c={};g.ay(Y)&&g.Vj(this.api,"addEmbedsConversionTrackingParams",[c]);A=g.xJ(A,c)}g.Lv(A,this.api,U);this.api.S("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; vE.prototype.hP=function(){var U={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},C:[{D:"path",xs:!0,B:"ytp-svg-fill",V:{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 "}}]}, Y=28666,A=g.M(this.api.getVideoData());this.api.isEmbedsShortsMode()?U={D:"svg",V:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},C:[{D:"path",V:{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.UW(A)&&(U={D:"svg",V:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},C:[{D:"path",V:{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"}},{D:"path",V:{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"}},{D:"path",V:{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"}},{D:"path",V:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{D:"path",V:{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"}},{D:"path",V:{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"}},{D:"path",V:{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"}},{D:"path",V:{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"}},{D:"path",V:{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"}},{D:"path",V:{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"}},{D:"path",V:{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"}},{D:"path",V:{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"}}]},Y=216163);g.UW(A)?g.ou(this.element,"ytp-youtube-music-button"):g.LZ(this.element,"ytp-youtube-music-button");U.V=Object.assign({},U.V,{"aria-hidden":"true"});this.updateValue("logoSvg",U);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,Y,!0)}; vE.prototype.tP=function(U){g.n.prototype.tP.call(this,U);this.api.logVisibility(this.element,this.visible&&U)};g.w(QZE,g.Qy);g.W=QZE.prototype;g.W.ag=function(){if(this.U.S("web_player_max_seekable_on_ended")||!g.I(this.U.getPlayerStateObject(),2))this.progressBar.ya(),this.Uv.ya()}; g.W.gx=function(){this.Mr();if(this.bB.T)this.ag();else if(this.progressBar.Ja(),this.U.S("delhi_modern_web_player")){var U;(U=this.J)==null||MVE(U,!1)}}; g.W.i5=function(){this.ag();this.Pw.start()}; g.W.Mr=function(){var U;if(U=!this.U.L().T){U=this.progressBar;var Y=2*g.q0()*U.J;U=U.W.getLength()*1E3/U.api.getPlaybackRate()/Y<300}U=U&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;Y=!U;this.bB.T||(U=Y=!1);Y?this.jX||(this.jX=this.N(this.U,"progresssync",this.ag)):this.jX&&(this.FY(this.jX),this.jX=null);U?this.Pw.isActive()||this.Pw.start():this.Pw.stop()}; g.W.hP=function(){var U=this.U.yG(),Y=this.U.Cy().getPlayerSize(),A=this.U.Cy().cS,c=O7c(this),d=mWX(this),T=Math.max(Y.width-c*2,100);if(this.ws!==Y.width||this.i$!==U||this.U.S("web_player_rtr_ctrls")&&this.Ji!==A)this.ws=Y.width,this.i$=U,this.Ji=A,this.j.element.style.width=d+"px",this.j.element.style.left=c+"px",g.Ycc(this.progressBar,c,d,U),this.U.wq().pB=d;A=this.W;T=Math.min(570*(U?1.5:1),T);U=Math.min(413*(U?1.5:1),Math.round((Y.height-gTc(this))*.82));A.maxWidth=T;A.maxHeight=U;A.Ra();this.Mr(); this.U.L().S("html5_player_dynamic_bottom_gradient")&&D1Y(this.VJ,Y.height)}; g.W.onVideoDataChange=function(){var U=g.M(this.U.getVideoData());this.Zf.style.background=U.ET?U.j4:"";this.ov&&UE9(this.ov,U.showSeekingControls);this.Hw&&UE9(this.Hw,U.showSeekingControls)}; g.W.jc=function(){return this.j.element};g.w(y89,GS);g.W=y89.prototype;g.W.Cn=function(U){U.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.Ev("innertubeCommand",this.onClickCommand),this.L0())}; g.W.L0=function(){this.enabled=!1;this.X.hide()}; g.W.onVideoDataChange=function(U,Y){U==="dataloaded"&&nT9(this);U=[];var A,c,d,T;if(Y=(T=g.O((A=Y.getWatchNextResponse())==null?void 0:(c=A.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.suggestedActionsRenderer,aHz))==null?void 0:T.suggestedActions)for(A=g.J(Y),c=A.next();!c.done;c=A.next())(c=g.O(c.value,xsI))&&g.O(c.trigger,RZI)&&U.push(c);if(U.length!==0){A=[];U=g.J(U);for(c=U.next();!c.done;c=U.next())if(c=c.value,d=g.O(c.trigger,RZI))T=(T=c.title)?g.wB(T):"View Chapters", Y=d.timeRangeStartMillis,d=d.timeRangeEndMillis,Y!=null&&d!=null&&c.tapCommand&&(A.push(new g.EE(Y,d,{priority:9,namespace:"suggested_action_button_visible",id:T})),this.suggestedActions[T]=c.tapCommand);this.U.VT(A)}}; g.W.Jv=function(){return this.enabled}; g.W.Wa=function(){this.enabled?this.kE.start():ve(this);this.o4()}; g.W.Tn=function(){nT9(this);GS.prototype.Tn.call(this)};var FO={},wQ=(FO.CHANNEL_NAME="ytp-title-channel-name",FO.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",FO.LINK="ytp-title-link",FO.SESSIONLINK="yt-uix-sessionlink",FO.SUBTEXT="ytp-title-subtext",FO.TEXT="ytp-title-text",FO.TITLE="ytp-title",FO);g.w(ib,g.n);ib.prototype.onClick=function(U){this.api.logClick(this.element);var Y=this.api.L(),A=this.api.getVideoUrl(!g.Bh(U),!1,!0);g.ay(Y)&&(Y={},g.Vj(this.api,"addEmbedsConversionTrackingParams",[Y]),A=g.xJ(A,Y));g.Lv(A,this.api,U)}; ib.prototype.cw=function(){var U=g.M(this.api.getVideoData()),Y=this.api.L();this.updateValue("title",U.title);var A={D:"a",B:wQ.CHANNEL_NAME,V:{href:"{{channelLink}}",target:"_blank"},YE:"{{channelName}}"};this.api.L().W&&(A={D:"span",B:wQ.CHANNEL_NAME,YE:"{{channelName}}",V:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",A);DWV(this);this.api.getPresentingPlayerType()===2&&(A=g.M(this.api.getVideoData()),A.videoId&&A.isListed&&A.author&&A.ws&&A.profilePicture?(this.updateValue("channelLink", A.ws),this.updateValue("channelName",A.author),this.updateValue("channelTitleFocusable","0")):DWV(this));A=Y.externalFullscreen||!this.api.isFullscreen()&&Y.Md;g.lg(this.link,wQ.FULLERSCREEN_LINK,A);Y.Hw||!U.videoId||A||g.Ck(U)||Y.W?this.Y&&(this.updateValue("url",null),this.FY(this.Y),this.Y=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Y||(this.Y=this.N(this.link,"click",this.onClick)));Y.W&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.ay(Y)?U.expandedTitle: U.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.w(g.Fu,g.n);g.W=g.Fu.prototype;g.W.setEnabled=function(U){if(this.type!=null)if(U)switch(this.type){case 3:case 2:uQE(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.J=U}; g.W.SF=function(U,Y,A,c,d,T,E,L){if(!this.ov||this.env.G){this.type===3&&this.Ja();this.type!==1&&(g.Tx(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.J&&this.fade.show(),this.T&&this.T.dispose(),(this.T=this.api.IS())&&this.T.subscribe("l",this.hH,this));if(L){var r=g.Ig(this.bg).height||141;this.jX.style.bottom=r+2+"px"}else this.jX.style.display="none";this.env.S("delhi_modern_web_player")?this.update({pillTimeStamp:A,pillTitle:T!=null?T:"",eduText:L!=null?L:""}):(this.update({text:A, title:T!=null?T:"",eduText:L!=null?L:""}),g.lg(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!T));this.api.isInline()&&g.ou(this.bottomText,"ytp-modern-tooltip-text");g.lg(this.element,"ytp-text-detail",!!c);A=-1;this.T&&(A=bN(this.T,243*this.scale),this.env.S("web_l3_storyboard")&&this.T.levels.length===4&&(A=this.T.levels.length-1),A=FP3(this.T,A,Y));qcS(this,A);if(E)switch(Y=g.Ig(this.element).width,E){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right= Y+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=Y/2+"px",this.title.style.textAlign="center"}KcE(this,!!c,U,d)}}; g.W.pp=function(){this.type===1&&this.Ja()}; g.W.jn=function(U,Y){if(this.type)if(this.type===3)this.Ja();else return;Igc(this,U,3,Y)}; g.W.Aa=function(){this.Y&&!this.G&&this.Y.hasAttribute("title")&&(this.W=this.Y.getAttribute("title")||"",this.Y.removeAttribute("title"),this.J&&uQE(this))}; g.W.hH=function(U,Y){U<=this.j&&this.j<=Y&&(U=this.j,this.j=NaN,qcS(this,U))}; g.W.BWJ=function(){iA9(this.T,this.j,243*this.scale)}; g.W.Ja=function(){switch(this.type){case 2:var U=this.Y;U.removeEventListener("mouseout",this.Z);U.addEventListener("mouseover",this.QJ);U.removeEventListener("blur",this.Z);U.addEventListener("focus",this.QJ);C08(this);break;case 3:C08(this);break;case 1:this.T&&(this.T.unsubscribe("l",this.hH,this),this.T=null),this.api.removeEventListener("videoready",this.X),this.Pw.stop()}this.type=null;this.J&&this.fade.hide()}; g.W.ye=function(){if(this.Y)for(var U=0;U=0;Y--)if(this.NO[Y]===U){this.NO.splice(Y,1);break}Bg(this.bB,64,this.NO.length>0)}; g.W.cM=function(){this.api.F9()&&this.api.ww();return!!this.aO||T0S(this)||g.M5.prototype.cM.call(this)}; g.W.Jg=Yl(3);g.W.TA=Yl(7);g.W.Yw=Yl(10); g.W.Sv=function(){var U=!this.cM(),Y=U&&this.api.F9()&&!g.I(this.api.getPlayerStateObject(),2)&&!g.Ck(g.M(this.api.getVideoData()))&&!this.api.L().W&&!this.api.isEmbedsShortsMode(),A=this.Sr&&g.x_(this.api)&&g.I(this.api.getPlayerStateObject(),128);U||A?(this.t6.show(),this.bb.show()):(this.t6.hide(),this.bb.hide(),this.api.ye(this.fF.element));Y?this.J8.fU():this.J8.Kr();this.Rg&&Z7S(this.Rg,this.VI||!U);this.api.S("web_player_hide_overflow_button_if_empty_menu")&&EaY(this);g.M5.prototype.Sv.call(this)}; g.W.D0=function(U,Y,A,c,d){U.style.left="";U.style.top="";U.style.bottom="";var T=g.Ig(U),E=c||this.Rg&&g.dv(this.Rg.jc(),Y),L=c=null;A!=null&&E||(c=g.Ig(Y),L=g.nx(Y,this.api.getRootNode()),A==null&&(A=L.x+c.width/2));A-=T.width/2;E?(Y=this.Rg,c=O7c(Y),L=mWX(Y),E=this.api.Cy().getPlayerSize().height,A=g.Bi(A,c,c+L-T.width),T=E-gTc(Y)-T.height):g.dv(this.fF.element,Y)?(Y=this.api.Cy().getPlayerSize().width,A=g.Bi(A,12,Y-T.width-12),T=this.yG()?this.tI:this.m8,this.api.L().playerStyle==="gvn"&&(T+= 20),this.Sr&&(T-=this.yG()?26:18)):(Y=this.api.Cy().getPlayerSize(),A=g.Bi(A,12,Y.width-T.width-12),T=L.y>(Y.height-c.height)/2?L.y-T.height-12:L.y+c.height+12);U.style.top=T+(d||0)+"px";U.style.left=A+"px"}; g.W.gx=function(U){U&&(this.api.ye(this.fF.element),this.Rg&&this.api.ye(this.Rg.jc()));this.t5&&(g.lg(this.contextMenu.element,"ytp-autohide",U),g.lg(this.contextMenu.element,"ytp-autohide-active",!0));g.M5.prototype.gx.call(this,U)}; g.W.PA=function(){g.M5.prototype.PA.call(this);this.t5&&(g.lg(this.contextMenu.element,"ytp-autohide-active",!1),this.t5&&(this.contextMenu.hide(),this.c5&&this.c5.hide()))}; g.W.aX=function(U,Y){var A=this.api.Cy().getPlayerSize();A=new g.fx(0,0,A.width,A.height);if(U||this.bB.T&&!this.cM()){if(this.api.L().FB||Y)U=this.yG()?this.tI:this.m8,A.top+=U,A.height-=U;this.Rg&&(A.height-=gTc(this.Rg))}return A}; g.W.T$=function(U){var Y=this.api.getRootNode();U?Y.parentElement?(Y.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.L().externalFullscreen||(Y.parentElement.insertBefore(this.uC.element,Y),Y.parentElement.insertBefore(this.DR.element,Y.nextSibling))):g.S5(Error("Player not in DOM.")):(Y.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"),this.uC.detach(),this.DR.detach());this.hP();this.Gd()}; g.W.yG=function(){var U=this.api.L();return this.api.isFullscreen()&&!U.G||!1}; g.W.showControls=function(U){this.Ro=!U;this.Sv()}; g.W.hP=function(){var U=this.yG();this.tooltip.scale=U?1.5:1;this.contextMenu&&g.lg(this.contextMenu.element,"ytp-big-mode",U);this.Sv();this.api.S("web_player_hide_overflow_button_if_empty_menu")||EaY(this);this.Gd();var Y=this.api.isEmbedsShortsMode();Y&&U?(U=(this.api.Cy().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.MP(this.fF.element,"padding-left",U+"px"),g.MP(this.fF.element,"padding-right",U+"px")):Y&&(g.MP(this.fF.element,"padding-left",""),g.MP(this.fF.element,"padding-right", ""));g.M5.prototype.hP.call(this)}; g.W.Ps=function(){if(T0S(this)&&!g.x_(this.api))return!1;var U=g.M(this.api.getVideoData());return!g.ay(this.api.L())||this.api.getPresentingPlayerType()===2||!this.qW||((U=this.qW||U.qW)?(U=U.embedPreview)?(U=U.thumbnailPreviewRenderer,U=U.videoDetails&&g.O(U.videoDetails,Eyl)||null):U=null:U=null,U&&U.collapsedRenderer&&U.expandedRenderer)?g.M5.prototype.Ps.call(this):!1}; g.W.Gd=function(){g.M5.prototype.Gd.call(this);this.api.logVisibility(this.title.element,!!this.WS);this.nA&&this.nA.tP(!!this.WS);this.channelAvatar.tP(!!this.WS);this.overflowButton&&this.overflowButton.tP(this.Wb()&&!!this.WS);this.shareButton&&this.shareButton.tP(!this.Wb()&&!!this.WS);this.aV&&this.aV.tP(!this.Wb()&&!!this.WS);this.searchButton&&this.searchButton.tP(!this.Wb()&&!!this.WS);this.copyLinkButton&&this.copyLinkButton.tP(!this.Wb()&&!!this.WS);if(!this.WS){this.api.ye(this.fF.element); for(var U=0;U5&&Y.wW("glrs",{cmt:A});Y.seekTo(0,{seekSource:58});Y.wW("glrre",{cmt:A})}}; e6.prototype.Tn=function(){this.Y=null;g.p.prototype.Tn.call(this)};g.w(g.BE,cD);g.W=g.BE.prototype;g.W.isView=function(){return!0}; g.W.c$=function(){var U=this.mediaElement.getCurrentTime();if(U1;Vd(U.MU(),c-.01)&&!d&&(ku(this,4),A.isActive=!1,A.nK=A.nK||A.isActive,(this.K===1?this.Y:this.T).wW("sbh",{}),Y.isActive=!0,Y.nK=Y.nK||Y.isActive,this.K!==0&&(this.Y.getVideoData().SN=!0));U=this.j.T;if(this.j.Y.isActive&&U.isActive&&(ku(this,5),this.K!==0)){U=this.T.uH();A=this.Y.uH(); this.Y.wW("sbs",{citag:A==null?void 0:A.itag,nitag:U==null?void 0:U.itag});this.T.wW("gitags",{pitag:A==null?void 0:A.itag,citag:U==null?void 0:U.itag});var T;(T=this.T)==null||T.zg()}}}; g.W.M9=function(){this.k$()&&this.DO("player-reload-after-handoff")}; g.W.DO=function(U,Y){Y=Y===void 0?{}:Y;if(!this.Ky()&&this.status.status!==6){var A=this.status.status>=4&&U!=="player-reload-after-handoff";this.status={status:Infinity,error:U};if(this.Y&&this.T){var c=this.T.getVideoData().clientPlaybackNonce;this.Y.Ne(new a9("dai.transitionfailure",Object.assign(Y,{cpn:c,transitionTimeMs:this.Wi,msg:U})));this.Y.YO(A)}this.If.reject(U);this.dispose()}}; g.W.k$=function(){return this.status.status>=4&&this.status.status<6}; g.W.Tn=function(){wY3(this);this.Y.unsubscribe("newelementrequired",this.M9,this);if(this.W){var U=this.W.T;this.W.Y.Pp.unsubscribe("updateend",this.Q3,this);U.Pp.unsubscribe("updateend",this.Q3,this)}g.p.prototype.Tn.call(this)}; g.W.RB=function(U){g.Gg(U,128)&&this.DO("player-error-event")};g.w(Rk,g.p);Rk.prototype.clearQueue=function(U,Y){U=U===void 0?!1:U;Y=Y===void 0?!1:Y;this.j&&this.j.reject("Queue cleared");this.app.L().S("html5_gapless_fallback_on_qoe_restart_v2")||Y&&this.T&&this.T.YO(!1);ak(this,U)}; Rk.prototype.KF=function(){return!this.Y}; Rk.prototype.k$=function(){var U;return((U=this.W)==null?void 0:U.k$())||!1}; Rk.prototype.Tn=function(){ak(this);g.p.prototype.Tn.call(this)};g.w(eQX,g.l6);g.W=eQX.prototype;g.W.getVisibilityState=function(U,Y,A,c,d,T,E,L){return U?4:GWV()?3:Y?2:A?1:c?5:d?7:T?8:E?9:L?10:0}; g.W.TG=function(U){this.fullscreen!==U&&(this.fullscreen=U,this.Wa())}; g.W.setMinimized=function(U){this.T!==U&&(this.T=U,this.Wa())}; g.W.setInline=function(U){this.inline!==U&&(this.inline=U,this.Wa())}; g.W.DN=function(U){this.pictureInPicture!==U&&(this.pictureInPicture=U,this.Wa())}; g.W.setSqueezeback=function(U){this.W!==U&&(this.W=U,this.Wa())}; g.W.GV=function(U){this.j!==U&&(this.j=U,this.Wa())}; g.W.x4=function(){return this.Y}; g.W.dw=function(){return this.fullscreen!==0}; g.W.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.W.rd=function(){return this.fullscreen}; g.W.isMinimized=function(){return this.T}; g.W.isInline=function(){return this.inline}; g.W.isBackground=function(){return GWV()}; g.W.LJ=function(){return this.pictureInPicture}; g.W.n7=function(){return!1}; g.W.H4=function(){return this.W}; g.W.f5=function(){return this.j}; g.W.Wa=function(){this.publish("visibilitychange");var U=this.getVisibilityState(this.x4(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.LJ(),this.n7(),this.H4(),this.f5());U!==this.J&&this.publish("visibilitystatechange");this.J=U}; g.W.Tn=function(){i4S(this.K);g.l6.prototype.Tn.call(this)};g.w(g.xu,g.p);g.W=g.xu.prototype;g.W.Tn=function(){this.videoData=this.playerState=null;g.p.prototype.Tn.call(this)}; g.W.addCueRange=function(){}; g.W.MN=function(){}; g.W.zF=function(){}; g.W.c_=function(){return!1}; g.W.N3=function(){return!1}; g.W.JF=function(){return!1}; g.W.wO=function(){}; g.W.Et=function(){}; g.W.F1=function(){}; g.W.vK=function(){return[]}; g.W.Yl=function(){}; g.W.getAudioTrack=function(){return this.getVideoData().jo}; g.W.TD=function(){return null}; g.W.getAvailableAudioTracks=function(){return[]}; g.W.qt=function(){return[]}; g.W.hA=function(){return[]}; g.W.DA=function(){return""}; g.W.ul=function(){return[]}; g.W.WG=function(){}; g.W.Je=function(){return 0}; g.W.wm=function(){return""}; g.W.getCurrentTime=function(){return 0}; g.W.AK=function(){}; g.W.uH=function(){}; g.W.i9=function(){return{}}; g.W.getDuration=function(){return 0}; g.W.bN=function(){return 0}; g.W.tB=function(){return 0}; g.W.Eq=function(){return!1}; g.W.NF=function(){return 0}; g.W.Im=function(){return 0}; g.W.VN=Yl(15);g.W.ZM=function(){return 0}; g.W.h1=function(){return!1}; g.W.XB=function(){return 0}; g.W.sH=function(){return null}; g.W.lL=function(){return null}; g.W.eq=function(){return 0}; g.W.mK=function(){return 0}; g.W.QU=function(){return g.S(function(U){g.i8(U)})}; g.W.UZ=Yl(21);g.W.getPlaybackQuality=function(){return"auto"}; g.W.getPlaybackRate=function(){return 1}; g.W.getPlayerState=function(){this.playerState||(this.playerState=new g.z3);return this.playerState}; g.W.getPlayerType=function(){return 0}; g.W.getPlaylistSequenceForTime=function(){return null}; g.W.eS=function(){return function(){}}; g.W.iG=function(){return""}; g.W.getPreferredQuality=function(){return"unknown"}; g.W.w$=function(){}; g.W.getProximaLatencyPreference=function(){return 0}; g.W.xa=function(){return y6}; g.W.IS=function(){return null}; g.W.getStoryboardFormat=function(){return null}; g.W.getStreamTimeOffset=function(){return 0}; g.W.d9=function(){return 0}; g.W.Zm=function(){return 0}; g.W.S0=function(){return{C8:[],Ga:[],currentTime:0,Mc:"",droppedVideoFrames:0,isGapless:!1,KF:!0,Yb:0,Zv:0,l4:0,qL:0,a$:0,nx:[],gr:[],z_:null,playerState:this.getPlayerState(),RL:null,zv:"",totalVideoFrames:0}}; g.W.getUserAudio51Preference=function(){return 0}; g.W.getUserPlaybackQualityPreference=function(){return""}; g.W.getVideoData=function(){this.videoData||(this.videoData=new g.nD(this.MI),g.Z(this,this.videoData));return this.videoData}; g.W.rL=function(){return null}; g.W.x9=function(){return null}; g.W.SM=function(){}; g.W.getVideoLoadedFraction=function(){return 0}; g.W.oy=function(){}; g.W.handleError=function(){}; g.W.YO=function(){}; g.W.Uu=function(){}; g.W.RR=function(){return!1}; g.W.S4=Yl(46);g.W.mD=function(){return!1}; g.W.hasSupportedAudio51Tracks=function(){return!1}; g.W.j9=function(){return!1}; g.W.x4=function(){return!1}; g.W.isAtLiveHead=function(){return!1}; g.W.U7=function(){return!0}; g.W.isGapless=function(){return!1}; g.W.isHdr=function(){return!1}; g.W.Iy=function(){return!1}; g.W.WJ=function(){return!1}; g.W.Xn=function(){return!1}; g.W.isProximaLatencyEligible=function(){return!1}; g.W.KF=function(){return!0}; g.W.wx=function(){return!1}; g.W.g4=function(){return!1}; g.W.Yq=function(){}; g.W.Hk=function(){}; g.W.qH=function(){}; g.W.NT=function(){}; g.W.zg=function(){}; g.W.ZI=function(){}; g.W.EX=function(){}; g.W.wj=function(){}; g.W.LW=function(){}; g.W.iQ=Yl(56);g.W.Dl=Yl(27);g.W.NE=function(){}; g.W.KH=function(){}; g.W.pauseVideo=function(){}; g.W.playVideo=function(){return g.S(function(U){return U.return()})}; g.W.HN=function(){}; g.W.s9=Yl(33);g.W.il=Yl(39);g.W.dj=function(){}; g.W.wW=function(){}; g.W.X9=function(){}; g.W.Yp=function(){}; g.W.Tb=function(){}; g.W.Ne=function(){}; g.W.fG=function(){}; g.W.Nh=function(){}; g.W.ou=function(){}; g.W.vX=function(){}; g.W.Zu=function(){}; g.W.iL=function(){}; g.W.TV=function(){}; g.W.removeCueRange=function(){}; g.W.WU=function(){}; g.W.OH=function(){return[]}; g.W.Yf=function(){}; g.W.dV=function(){}; g.W.xZ=function(){}; g.W.JX=function(){}; g.W.hh=function(){}; g.W.hc=function(){}; g.W.seekTo=function(){}; g.W.sendAbandonmentPing=function(){}; g.W.sendVideoStatsEngageEvent=function(){}; g.W.qS=function(){}; g.W.j$=function(){}; g.W.setLoop=function(){}; g.W.A6=function(){}; g.W.setMediaElement=function(){}; g.W.Ia=function(){}; g.W.setPlaybackRate=function(){}; g.W.OT=function(){}; g.W.QX=function(){}; g.W.va=function(){}; g.W.setProximaLatencyPreference=function(){}; g.W.S7=function(){}; g.W.kZ=function(){}; g.W.Fb=function(){}; g.W.yc=function(){}; g.W.D2=function(){}; g.W.setUserAudio51Preference=function(){}; g.W.x0=function(){}; g.W.U_=function(){return!1}; g.W.zr=function(){}; g.W.YU=function(){return!1}; g.W.AA=function(){}; g.W.zV=function(){}; g.W.bU=function(){}; g.W.stopVideo=function(){}; g.W.subscribe=function(){return NaN}; g.W.oF=function(){}; g.W.togglePictureInPicture=function(){}; g.W.JU=function(){return 0}; g.W.unsubscribe=function(){return!1}; g.W.zb=function(){}; g.W.Vo=function(){return!1}; g.W.jf=function(){}; g.W.rz=function(){}; g.W.h6=function(){}; g.W.kf=function(){};g.w(g.sp,g.p);g.W=g.sp.prototype;g.W.bf=function(U){var Y=U.cpn;U=U.playerType;if(Y)a:{U=g.J(Object.values(this.W));for(var A=U.next();!A.done;A=U.next())if(A=A.value,A.DA()===Y){Y=A;break a}Y=this.K[Y]||null}else Y=U?this.eM(U):this.T;return Y}; g.W.Yt=function(){return this.G}; g.W.Tt=function(U){this.G=U}; g.W.bY=function(){return this.T}; g.W.xw=function(U){this.T=U}; g.W.Y0=Yl(52);g.W.Bq=Yl(54);g.W.eM=function(U){return U?U===1?this.G:this.T.getVideoData().enableServerStitchedDai&&U===2?this.T.getVideoData().xn?this.W[2]||this.T:this.T:g.KD(this.T.getVideoData())&&U===2?this.W[2]||this.T:this.W[U]||null:this.T}; g.W.Tn=function(){for(var U=g.J(Object.values(this.W)),Y=U.next();!Y.done;Y=U.next())Y.value.dispose();B0X(this);this.Y.dispose();g.p.prototype.Tn.call(this)};g.w(fo,g.p);g.W=fo.prototype;g.W.enqueue=function(U,Y){if(U.j!==this)return!1;if(this.segments.length===0||(Y===void 0?0:Y))this.Y=U;this.segments.push(U);return!0}; g.W.KV=function(){return this.cZ||0}; g.W.Wg=function(){return this.j||0}; g.W.removeAll=function(){for(;this.segments.length;){var U=void 0;(U=this.segments.pop())==null||U.dispose()}this.T.clear();this.W=void 0}; g.W.Tn=function(){this.removeAll();g.p.prototype.Tn.call(this)}; g.w(btX,g.p);g.W=btX.prototype;g.W.KV=function(){return this.cZ}; g.W.Wg=function(){return this.T}; g.W.getVideoData=function(){return this.videoData}; g.W.DA=function(){return this.videoData.clientPlaybackNonce}; g.W.ub=function(U){et(U);this.videoData=U}; g.W.Tn=function(){pY3(this);g.p.prototype.Tn.call(this)};g.w(bb,g.OW);bb.prototype.b0=function(){}; bb.prototype.getVideoData=function(){return this.videoData}; bb.prototype.getCurrentTime=function(){var U=this.BQ,Y=g.OW.prototype.getCurrentTime.call(this);return(U=D$X(U,Y*1E3))?Y-U.start/1E3:Y};g.po.prototype.e0=function(U,Y){if(Y===1)return this.Y.get(U);if(Y===2)return this.W.get(U);if(Y===3)return this.T.get(U)}; g.po.prototype.m4=Yl(64);g.po.prototype.C0=function(U,Y,A,c){A={pD:c,Ue:A};Y?this.W.set(U,A):this.Y.set(U,A)}; g.po.prototype.clearAll=function(){this.Y.clear();this.W.clear();this.T.clear()}; g.w(g.Q0,g.p);g.W=g.Q0.prototype;g.W.L1=function(U,Y,A){return new g.EE(U,Y,{id:A,namespace:"serverstitchedcuerange",priority:9})}; g.W.KE=function(U){var Y=U.ge?U.ge*1E3:U.cZ,A=this.T.get(U.cpn);A&&this.playback.removeCueRange(A);this.T.delete(U.cpn);this.j.delete(U.cpn);A=this.K.indexOf(U);A>=0&&this.K.splice(A,1);A=[];for(var c=g.J(this.J),d=c.next();!d.done;d=c.next())d=d.value,d.end<=Y?this.playback.removeCueRange(d):A.push(d);this.J=A;csX(this,0,Y+U.durationMs)}; g.W.onCueRangeEnter=function(U){this.yJ.push(U);var Y=U.getId();this.XT({oncueEnter:1,cpn:Y,start:U.start,end:U.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Je()||0).toFixed(3)});var A=Y==="";this.Ly.add(U.T);var c=this.j.get(Y);if(A){var d;if(this.playback.getVideoData().b9()&&((d=this.Y)==null?0:d.l5)&&this.W){this.zx=0;this.Y=void 0;this.Hw&&(this.events.FY(this.Hw),this.Hw=null);this.W="";this.dW=!0;return}}else if(this.XT({enterAdCueRange:1}),this.playback.getVideoData().b9()&& (c==null?0:c.ih))return;if(this.dW&&!this.Y)this.dW=!1,!A&&c&&(A=this.playback.getCurrentTime(),Dn(this,{KP:U,isAd:!0,zy:!0,q7:A,adCpn:Y},{isAd:!1,zy:!1,q7:A}),this.s3=c.cpn,gQ(this,c.videoData),y0(this,c),U=m4(this,"midab",c),this.XT(U),this.zx=1),this.Z=!1;else if(this.Y){if(this.Y.zy)this.XT({a_pair_of_same_transition_occurs_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.q7,cpn:Y,currentTime:this.playback.getCurrentTime()}),c=this.playback.getCurrentTime(),U={KP:U,isAd:!A,zy:!0,q7:c,adCpn:Y}, Y={KP:this.Y.KP,isAd:this.Y.isAd,zy:!1,q7:c,adCpn:this.Y.adCpn},this.Y.KP&&this.Ly.delete(this.Y.KP.T),Dn(this,U,Y);else{if(this.Y.KP===U){this.XT({same_cue_range_pair_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.q7,cpn:Y,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:U.start,cueRangeEndTime:U.end});this.Y=void 0;return}if(this.Y.adCpn===Y){Y&&this.XT({dchtsc:Y});this.Y=void 0;return}U={KP:U,isAd:!A,zy:!0,q7:this.playback.getCurrentTime(),adCpn:Y};Dn(this,U,this.Y)}this.Y=void 0; this.Z=!1}else this.Y={KP:U,isAd:!A,zy:!0,q7:this.playback.getCurrentTime(),adCpn:Y}}; g.W.onCueRangeExit=function(U){var Y=U.getId();this.XT({oncueExit:1,cpn:Y,start:U.start,end:U.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Je()||0).toFixed(3)});var A=Y==="",c=this.j.get(Y);if(this.playback.getVideoData().b9()&&!A&&c){if(c.ih)return;c.ih=!0;this.X.clear();if(this.MI.S("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.c_()){var d=c.cZ;this.playback.TV(d/1E3,(d+c.durationMs)/1E3)}else this.playback.wW("lifa",{remove:0})}if(this.Ly.has(U.T))if(this.Ly.delete(U.T), this.yJ=this.yJ.filter(function(T){return T!==U}),this.dW&&(this.Z=this.dW=!1,this.XT({cref:1})),this.Y){if(this.Y.zy){if(this.Y.KP===U){this.XT({same_cue_range_pair_exit:1, acpn:this.Y.adCpn,transitionTime:this.Y.q7,cpn:Y,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:U.start,cueRangeEndTime:U.end});this.Y=void 0;return}if(this.Y.adCpn===Y){Y&&this.XT({dchtsc:Y});this.Y=void 0;return}Y={KP:U,isAd:!A,zy:!1,q7:this.playback.getCurrentTime(),adCpn:Y};Dn(this,this.Y,Y)}else if(this.XT({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.Y.adCpn,transitionTime:this.Y.q7,upcomingCpn:Y,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.Y.adCpn===Y)return;this.Y=void 0;this.Z=!1}else this.Y={KP:U,isAd:!A,zy:!1,q7:this.playback.getCurrentTime(),adCpn:Y};else this.XT({ignore_single_exit:1})}; g.W.aF=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,cZ:0,playerType:1,TN:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.W.sb=function(){if(this.zG)return!1;var U=void 0;this.s3&&(U=this.j.get(this.s3));return this.playback.getVideoData().b9()?!!U&&!U.ih:!!U}; g.W.seekTo=function(U,Y,A,c){U=U===void 0?0:U;Y=Y===void 0?{}:Y;A=A===void 0?!1:A;c=c===void 0?null:c;if(this.playback.getVideoData().b9()&&U<=this.jX/1E3)this.playback.pauseVideo(),this.jX=0,this.Z=!0,this.playback.QU(),this.playback.seekTo(U),this.playback.playVideo();else if(this.Z=!0,A)Zt3(this,U,Y);else{A=this.app.bY();var d=A===this.Zf?this.AP:null;ub(this,!1);this.Lr=U;this.mH=Y;c!=null&&this.R1.start(c);A&&(this.AP=d||A.getPlayerState(),A.bU(Y),this.Zf=A)}}; g.W.Tn=function(){ub(this,!1);uU4(this);KEE(this);g.p.prototype.Tn.call(this)}; g.W.o0=function(U){this.KU=U;this.XT({swebm:U})}; g.W.zX=function(U,Y,A){if(A&&Y){var c=this.X.get(U);if(c){c.locations||(c.locations=new Map);var d=Number(Y.split(";")[0]);A=new g.xN(A);this.XT({hdlredir:1,itag:Y,seg:U,hostport:fn(A)});c.locations.set(d,A)}}}; g.W.v9=function(U,Y,A,c,d,T){var E=c===3,L=C_c(this,U,Y,c,A,T);if(!L){qy(this,Y,E);var r=g.qK9(this,Y)?"undec":"ncp";this.XT({gvprp:r,mt:U,seg:Y,tt:c,itag:A,ce:T});return null}E||this.X.set(Y,L);T=L.Gx;var l;c=((l=this.e0(Y-1,c,d))==null?void 0:l.pD)||"";c===""&&this.XT({eds:1});l=Ymc(this,L.ssdaiAdsConfig);d=this.playback.getVideoData();var P;E=((P=d.T)==null?void 0:P.containerType)||0;P=d.Kv[E];L=L.un&&Y>=L.un?L.un:void 0;P={JG:T?Til(this,T):[],mf:l,pD:c,Ju:L,WF:il(P.split(";")[0]),Ao:P.split(";")[1]|| ""};L={iP:P};this.i$&&(U={gvprpro:"v",sq:Y,mt:U.toFixed(3),itag:A,acpns:((r=P.JG)==null?void 0:r.join("_"))||"none",abid:T},this.XT(U));return L}; g.W.Ya=function(U){a:{if(!this.zG){var Y=UuE(this,U);if(!(this.playback.getVideoData().b9()&&(Y==null?0:Y.ih)))break a}Y=void 0}var A=Y;if(!A)return this.XT({gvprp:"ncp",mt:U}),null;Y=A.Gx;var c=Ymc(this,A.ssdaiAdsConfig);A=A.un&&A.Gt&&U>=A.Gt?A.un:void 0;var d=this.playback.getVideoData(),T,E=((T=d.T)==null?void 0:T.containerType)||0;T=d.Kv[E];T={JG:Y?Til(this,Y):[],mf:c,Ju:A,WF:il(T.split(";")[0]),Ao:T.split(";")[1]||""};var L;U={gvprpro:"v",mt:U.toFixed(3),acpns:((L=T.JG)==null?void 0:L.join("_"))|| "none",abid:Y};this.XT(U);return T}; g.W.vG=function(U,Y,A,c,d,T){var E=Number(A.split(";")[0]),L=c===3;U=C_c(this,U,Y,c,A,T);this.XT({gdu:1,seg:Y,itag:E,pb:""+!!U});if(!U)return qy(this,Y,L),null;U.locations||(U.locations=new Map);if(!U.locations.has(E)){var r,l;T=(r=U.videoData.getPlayerResponse())==null?void 0:(l=r.streamingData)==null?void 0:l.adaptiveFormats;if(!T)return this.XT({gdu:"noadpfmts",seg:Y,itag:E}),qy(this,Y,L),null;r=T.find(function(v){return v.itag===E}); if(!r||!r.url){var P=U.videoData.videoId;U=[];var V=g.J(T);for(c=V.next();!c.done;c=V.next())U.push(c.value.itag);this.XT({gdu:"nofmt",seg:Y,vid:P,itag:E,fullitag:A,itags:U.join(",")});qy(this,Y,L);return null}U.locations.set(E,new g.xN(r.url,!0))}T=U.locations.get(E);if(!T)return this.XT({gdu:"nourl",seg:Y,itag:E}),qy(this,Y,L),null;T=new tM(T);this.KU&&(T.get("dvc")?this.XT({dvc:T.get("dvc")||""}):T.set("dvc","webm"));(c=(V=this.e0(Y-1,c,d))==null?void 0:V.pD)&&T.set("daistate",c);U.un&&Y>=U.un&& T.set("skipsq",""+U.un);(V=this.playback.getVideoData().clientPlaybackNonce)&&T.set("cpn",V);V=[];U.Gx&&(V=Til(this,U.Gx),V.length>0&&T.set("acpns",V.join(",")));L||this.X.set(Y,U);L=null;L=T.get("aids");c=T.GN();(c==null?void 0:c.length)>2048&&this.XT({urltoolong:1,sq:Y,itag:E,len:c.length});this.i$&&(c&&(T=U.cpn,d=U.Gx,z1Y(this,T,d),d&&!this.Va.has(d)&&(T=Ed3(this,T,d),r=od3(this,d),this.XT({iofa:T}),this.XT({noawnzd:r-T}),this.XT({acpns:V.join("."),aids:(P=L)==null?void 0:P.replace(/,/g,".")}), this.Va.add(d))),this.XT({gdu:"v",seg:Y,itag:A,ast:U.cZ.toFixed(3),alen:U.durationMs.toFixed(3),acpn:U.cpn,avid:U.videoData.videoId}));return c}; g.W.Ki=function(U,Y,A){A=A===void 0?!1:A;var c=Ko(this,U,Y);if(c){var d=void 0,T=c.Gx;if(T){this.XT({skipadonsq:Y,sts:A,abid:T,acpn:c.cpn,avid:c.videoData.videoId});A=this.G.get(T);if(!A)return;A=g.J(A);for(T=A.next();!T.done;T=A.next())T=T.value,T.un=Y,T.Gt=U,T.cZ>c.cZ&&(d=T)}this.W=c.cpn;AsS(this);U=this.playback.getCurrentTime();no(this,c,d,U,U,!1,!0)}}; g.W.z2=function(){for(var U=g.J(this.K),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.un=NaN,Y.Gt=NaN;AsS(this);this.XT({rsac:"resetSkipAd",sac:this.W});this.W=""}; g.W.e0=function(U,Y,A){return this.Uv.e0(U,Y,A)}; g.W.m4=Yl(63); g.W.C0=function(U,Y,A,c,d,T,E,L,r){c.length>0&&this.XT({onssinfo:1,sq:U,start:Y.toFixed(3),cpns:c.join(","),ds:d.join(","),isVideo:E?1:0});r&&this.Uv.C0(U,E,L,r);if(E){if(c.length&&d.length)for(this.W&&this.W===c[0]&&this.XT({skipfail:1,sq:U,acpn:this.W}),U=Y+this.d9(),E=0;E0&&(this.zx=0,this.s3="",this.api.publish("serverstitchedvideochange"));this.playback.F1(A,c);return!0}; g.W.TM=function(){this.XT({rstdaist:1});this.Uv.clearAll()}; g.W.Ry=function(U){var Y;if(U!==((Y=this.ov)==null?void 0:Y.identifier))this.XT({ignorenoad:U});else{this.Tk.add(U);this.XT({noadrcv:U});var A;((A=this.ov)==null?void 0:A.identifier)===U&&Op(this)}}; g.W.nk=function(){return this.zx}; g.W.jr=function(){return this.s3}; g.W.qO=function(U){if(this.zG)return this.XT({dai_disabled:U.event}),!1;if(this.playback.getVideoData().b9()&&(this.MI.S("html5_lifa_no_gab_on_predict_start")&&U.event==="predictStart"||U.event==="continue"||U.event==="stop"))return this.XT({cuepoint_skipped:U.event}),!1;var Y=F_(this.api.WZ());if(Y=Y?Y.qO(U):!1)this.Pw={zq:U.identifier,m$:U.startSecs};else if(this.Pw&&this.Pw.zq===U.identifier&&U.startSecs>this.Pw.m$+1){this.XT({cueStChg:U.identifier,oldSt:this.Pw.m$.toFixed(3),newSt:U.startSecs.toFixed(3), abid:this.Pw.z4});if(this.Pw.z4){var A=U.startSecs-this.Pw.m$,c=this.G.get(this.Pw.z4);if(c){c=g.J(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.cZ>=0&&(d.cZ+=A*1E3,this.MI.S("html5_ssdai_update_timeline_on_start_time_change")&&(d.TN+=A*1E3),this.XT({newApEt:d.cZ,newApPrt:d.TN,acpn:d.cpn}))}}this.Pw.m$=U.startSecs}return Y}; g.W.Qx=function(U){return this.zG?!1:!!UuE(this,U)}; g.W.rM=function(U){var Y=this;if(this.MI.S("html5_lifa_ignore_multiple_skips")&&this.Hw)return this.XT({unfinished_skip:this.s3}),!1;this.playback.pauseVideo();var A=this.playback.getCurrentTime(),c=this.MI.S("html5_lifa_reset_segment_index_on_skip"),d=c?A+this.playback.d9():A,T=this.j.get(this.s3),E=this.T.get(this.s3);if(T){this.W=this.s3;this.Z=!1;T.ih=!0;A=this.playback.getCurrentTime();this.Y={KP:E,isAd:!0,zy:!1,q7:A,adCpn:this.s3,l5:T,nwW:U};this.playback.ou(T,this.aF(),A,this.playback.getCurrentTime(), !1,!0,U,(0,g.y)());c&&this.playback.NE();if(E==null?0:E.start)this.jX=A*1E3-E.start;this.X.clear();this.playback.QU();this.s3=this.aF().cpn;gQ(this,this.playback.getVideoData());this.api.publish("serverstitchedvideochange");this.playback.seekTo(d,{seekSource:89,Qa:"lifa_skip"});this.playback.playVideo();this.Hw||(this.Hw=this.events.N(this.api,"progresssync",function(){Y.KE(T)})); return!0}this.XT({skipFail:A},!0);return!1}; g.W.XT=function(U,Y){((Y===void 0?0:Y)||this.i$||this.playback.getVideoData().b9())&&this.playback.wW("sdai",U)}; var yNS=0;g.w(LhY,g.Q0);g.W=LhY.prototype;g.W.onCueRangeEnter=function(U){var Y=U.getId();this.playback.wW("sdai",{oncueEnter:1,cpn:Y,start:U.start,end:U.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Je()||0).toFixed(3)});U=this.j.get(Y);this.playback.wW("sdai",{enterAdCueRange:1});Y=this.s3||this.aF().cpn;var A;Y=(A=this.j.get(Y))!=null?A:this.aF();U&&(A={GO:Y,e1:U,S1:this.playback.getCurrentTime()},this.Hq(A))}; g.W.onCueRangeExit=function(U){var Y=this.playback.getCurrentTime()*1E3;U=U.getId();for(var A=g.J(this.T.values()),c=A.next();!c.done;c=A.next())if(c=c.value,c.getId()!==U&&Y>=c.start&&Y<=c.end)return;if(Y=this.j.get(U))Y={GO:Y,e1:this.aF(),S1:this.playback.getCurrentTime()},this.Hq(Y)}; g.W.Hq=function(U){this.W||this.Z||this.vr(this.s3);var Y=U.GO,A=U.e1;if(A.cpn===this.s3)this.playback.wW("sdai",{igtranssame:1,enter:A.cpn,exit:Y.cpn});else{var c=this.Z,d=!!this.W;this.W="";var T=U.S1,E=Y.playerType===2?Y.cZ/1E3+Y.videoData.kE:this.aF().videoData.kE;if(Y.playerType===2&&A.playerType===2)d?this.playback.wW("sdai",{igtransskip:1,enter:A.cpn,exit:Y.cpn,seek:c,skip:this.W}):no(this,Y,A,E,T,c,d);else{this.s3=A.cpn;gQ(this,A.videoData);U=U.MSr;if(Y.playerType===1&&A.playerType===2){this.jX= 0;y0(this,A);var L=m4(this,"c2a",A);this.playback.wW("sdai",L);this.zx++}else if(Y.playerType===2&&A.playerType===1){L=Y.videoData.kE;this.api.publish("serverstitchedvideochange");var r=m4(this,"a2c");this.playback.wW("sdai",r);this.zx=0;this.jX=L*1E3;this.o2=E;P58(this,Y.Gx)}this.playback.ou(Y,A,E,T,c,d,U)}this.W="";this.Z=!1}}; g.W.seekTo=function(U,Y,A,c){U=U===void 0?0:U;Y=Y===void 0?{}:Y;A=A===void 0?!1:A;c=c===void 0?null:c;this.vr(this.s3);this.playback.getVideoData().b9()&&U<=this.o2?(this.playback.pauseVideo(),this.o2=this.jX=0,rs9(this,U)):g.Q0.prototype.seekTo.call(this,U,Y,A,c)}; g.W.Ki=function(U,Y,A){A=A===void 0?!1:A;var c=Ko(this,U,Y);if(c){var d=void 0,T=c.Gx;if(T){this.playback.wW("sdai",{skipadonsq:Y,sts:A,abid:T,acpn:c.cpn,avid:c.videoData.videoId});A=this.G.get(T);if(!A)return;A=g.J(A);for(T=A.next();!T.done;T=A.next())T=T.value,T.un=Y,T.Gt=U,T.cZ>c.cZ&&(d=T)}this.vr(this.s3);this.W=c.cpn;AsS(this);U=this.playback.getCurrentTime();no(this,c,d,U,U,!1,!0);this.W="";this.Z=!1}}; g.W.C0=function(U,Y,A,c,d,T,E,L,r){c.length>0&&this.playback.wW("sdai",{onssinfo:1,sq:U,start:Y.toFixed(3),cpns:c.join(","),ds:d.join(","),isVideo:E?1:0});r&&this.Uv.C0(U,E,L,r);if(E){if(c.length&&d.length)for(this.W&&this.W===c[0]&&this.playback.wW("sdai",{skipfail:1,sq:U,acpn:this.W}),U=Y+this.d9(),A=0;A=0&&this.K.splice(U,1)}; g.W.vr=function(U){var Y=U||this.s3,A=this.j.get(Y);if(A){U=A.videoData;var c,d;Y=A.ge||((d=(c=this.T.get(Y))==null?void 0:c.start)!=null?d:0)/1E3;c=this.playback.getCurrentTime()-Y;U.kE=c>0?c:0}else this.aF().videoData.kE=this.playback.getCurrentTime()};g.w(HPV,g.p);g.W=HPV.prototype; g.W.x6=function(U,Y){Y=Y===void 0?"":Y;if(this.timeline.W===Y)return!0;var A=this.timeline.Y,c=A==null?void 0:A.getVideoData();if(!A||!c)return this.api.wW("ssap",{htsm:A?0:1}),!1;if(this.api.S("html5_ssap_clear_timeline_before_update")){var d=this.timeline,T;(T=d.Y)==null||pY3(T);d.T.clear()}d=A.DA();var E=!1;T=[];var L=new Map;A=[];var r=[],l=0,P=0,V=0,v=[];U=g.J(U);for(var H=U.next();!H.done;H=U.next())a:{var G=void 0,F=void 0,N=H.value,e=N.clipId;if(e){if(N.Q$){V=N.Q$.wr||0;H=N.Q$.Pv||1;var B= Number(((N.Q$.Em||0)/(N.Q$.pH||1)*1E3).toFixed(0));V=H=B+Number((V/H*1E3).toFixed(0))}else H=B=V,this.De.has(e)||this.pm.add(e);var f=(F=L.get(e))!=null?F:0,h=this.timeline.W;F=!1;if(h&&this.api.S("html5_ssap_clear_timeline_before_update")){if(h=this.zT.get(e))h.start=B,h.end=H,F=!0}else{if(h){var Q=e;h=B;var K=H,D=f,c3=S6(this.timeline,Q);if(c3!=null&&c3.length){D=L){this.LO.set(U,A);Wh3(this,U,Y);this.fz.set(U,(0,g.y)());if(A=this.zT.get(Y))for(A=A.getId().split(","),A=g.J(A),E=A.next();!E.done;E=A.next())E=E.value,E!==Y&&this.pm.has(E)&&(this.pm.delete(E),this.De.add(E));this.vr();this.playback.seekTo(T.KV()/1E3);this.vC?(this.api.wW("ssap",{gpfreload:this.s3}),vdV(this)||(this.vC=!1),this.playback.QU(!1,!1)):c&&this.playback.QU(!1,!1);d&&this.api.playVideo(1); return[U]}}}return[]}; g.W.Yy=function(){var U=this.timeline.Y;if(!U)return 0;var Y=U.Wg();U=g.J(U.Y.values());for(var A=U.next();!A.done;A=U.next()){A=g.J(A.value);for(var c=A.next();!c.done;c=A.next())c=c.value,c.Wg()>Y&&(Y=c.Wg())}return Y/1E3}; g.W.eq=function(){var U=this.playback.getCurrentTime()*1E3;var Y=Fh4(this,U);if(!Y){var A=S6(this.timeline,this.s3);if(A){A=g.J(A);for(var c=A.next();!c.done;c=A.next())c=c.value,c.KV()>U&&(Y=c)}}return Y&&Y.type===1?Y.KV()/1E3:0}; g.W.getVideoData=function(U){if(U===2&&!this.sb()){if(this.n9&&this.xD.has(this.n9))return this.xD.get(this.n9);this.api.wW("ssap",{lpanf:""+this.playback.getVideoData().clientPlaybackNonce});return null}return tZv(this)}; g.W.sb=function(){var U=S6(this.timeline,this.s3);return(U==null?0:U.length)?U[0].type===2:!1}; g.W.Vj=function(){var U=S6(this.timeline,this.s3);return(U==null?0:U.length)?U[0].W:!1}; g.W.seekTo=function(U,Y){Y=Y===void 0?{}:Y;var A=jIX(this,this.playback.getCurrentTime());this.playback.seekTo(U+A/1E3,Y)}; g.W.L1=function(U,Y,A){return new g.EE(U,Y,{id:A,namespace:"ssap",priority:9})}; g.W.onCueRangeEnter=function(U){if(!this.Jh.has(U.getId())){this.api.wW("ssap",{oce:1,cpn:U.getId(),st:U.start,et:U.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Je()||0).toFixed(3)});for(var Y=U.getId().split(","),A=0;AA+1)for(c=A+1;c0?Y:0}; g.W.Tn=function(){this.api.L().O3()&&this.api.wW("ssap",{di:""+this.s3,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.xD.clear();this.pm.clear();this.Jh.clear();this.LO.clear();this.fz.clear();this.De.clear();this.UV=[];$uE(this);this.fd="";g.Rb(this.events);g.p.prototype.Tn.call(this)};g.w(R13,g.p);g.W=R13.prototype;g.W.onCueRangeEnter=function(U){if(this.Y===this.app.bY()){var Y=this.K.get(U);Y?Smv(this,Y.target,Y.Wi,U):this.Ne("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:U.toString()})}else if(Y=this.T.find(function(d){return d.EB.KP===U})){var A=Y.EB,c=A.target; A=A.Wi;c?Smv(this,c,A,U):h18(this,Y.TN,A,U)}}; g.W.onQueuedVideoLoaded=function(){var U=this.G;Tv(this);if(U){if(!dE(this,U)){var Y=this.app.bY();this.Ne("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:Y==null?void 0:Y.getVideoData().clientPlaybackNonce,ccpn:""+U.playerVars.cpn})}this.app.bY().addCueRange(U.EB.KP)}}; g.W.seekTo=function(U,Y,A,c){U=U===void 0?0:U;Y=Y===void 0?{}:Y;c=c===void 0?null:c;if(A===void 0?0:A)knX(this,U,Y);else{A=this.app.bY()||null;var d=A===this.j?this.J:null;E1(this,!1);this.Pw=U;this.X=Y;c!=null&&this.Z.start(c);A&&(this.J=d||A.getPlayerState(),A.bU(),this.j=A)}}; g.W.gV=function(U){g.Gg(U,128)&&ZPX(this)}; g.W.isManifestless=function(){return $p(this.Y.getVideoData())}; g.W.Tn=function(){E1(this,!1);muc(this);g.p.prototype.Tn.call(this)}; g.W.Ne=function(U,Y){this.Y.Ne(new a9(U,Y))}; var a9X=0;var gdY="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(L0,g.p);g.W=L0.prototype;g.W.get=function(U){oL(this);var Y=this.data.find(function(A){return A.key===U}); return Y?Y.value:null}; g.W.set=function(U,Y,A){this.remove(U,!0);oL(this);U={key:U,value:Y,expire:Infinity};A&&isFinite(A)&&(A*=1E3,U.expire=(0,g.y)()+A);for(this.data.push(U);this.data.length>this.W;)(A=this.data.shift())&&rE(this,A,!0);zv(this)}; g.W.remove=function(U,Y){Y=Y===void 0?!1:Y;var A=this.data.find(function(c){return c.key===U}); A&&(rE(this,A,Y),g.iw(this.data,function(c){return c.key===U}),zv(this))}; g.W.removeAll=function(U){if(U=U===void 0?!1:U)for(var Y=g.J(this.data),A=Y.next();!A.done;A=Y.next())rE(this,A.value,U);this.data=[];zv(this)}; g.W.Tn=function(){var U=this;g.p.prototype.Tn.call(this);this.data.forEach(function(Y){rE(U,Y,!0)}); this.data=[]};g.w(lL,g.p);lL.prototype.Lg=function(U){if(U)return this.T.get(U)}; lL.prototype.Tn=function(){this.Y.removeAll();this.T.removeAll();g.p.prototype.Tn.call(this)};g.j1q=$J(function(){var U=window.AudioContext||window.webkitAudioContext;try{return new U}catch(Y){return Y.name}});g.w(ucc,g.n);g.W=ucc.prototype;g.W.gb=function(){g.zx(this.element,g.SS.apply(0,arguments))}; g.W.dV=function(){this.HQ&&(this.HQ.removeEventListener("focus",this.je),g.c4(this.HQ),this.HQ=null)}; g.W.Ad=function(){this.Ky();var U=this.app.L();U.J1||this.gb("tag-pool-enabled");U.J&&this.gb(g.YN.HOUSE_BRAND);U.playerStyle==="gvn"&&(this.gb("ytp-gvn"),this.element.style.backgroundColor="transparent");U.mH&&(this.E6=g.oQ("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)}; g.W.W3=function(U){g.Sj(this.app.L());this.Gp=!U;Pv(this)}; g.W.resize=function(){if(this.HQ){var U=this.U$();if(!U.isEmpty()){var Y=!g.sn(U,this.VF.getSize()),A=Yoc(this);Y&&(this.VF.width=U.width,this.VF.height=U.height);U=this.app.L();(A||Y||this.bx||U.mH)&&this.app.gW.publish("resize",this.getPlayerSize())}}}; g.W.Ex=function(U,Y){this.updateVideoData(Y)}; g.W.updateVideoData=function(U){if(this.HQ){var Y=this.app.L();DN&&(this.HQ.setAttribute("x-webkit-airplay","allow"),U.title?this.HQ.setAttribute("title",U.title):this.HQ.removeAttribute("title"));this.HQ.setAttribute("controlslist","nodownload");Y.EL&&U.videoId&&(this.HQ.poster=U.SS("default.jpg"))}Y=g.Nm(U,"yt:bgcolor");this.aD.style.backgroundColor=Y?Y:"";this.Lw=z0(g.Nm(U,"yt:stretch"));this.qa=z0(g.Nm(U,"yt:crop"),!0);g.lg(this.element,"ytp-dni",U.ET);this.resize()}; g.W.setGlobalCrop=function(U){this.yC=z0(U,!0);this.resize()}; g.W.setCenterCrop=function(U){this.xN=U;this.resize()}; g.W.TG=function(){}; g.W.getPlayerSize=function(){var U=this.app.L(),Y=this.app.gW.isFullscreen(),A=U.externalFullscreen&&g.ay(U);if(Y&&gF()&&!A)return new g.xn(window.outerWidth,window.outerHeight);A=!isNaN(this.j3.width)&&!isNaN(this.j3.height);var c=this.app.L().S("kevlar_player_enable_squeezeback_fullscreen_sizing");if(Y&&!A&&c)return new g.xn(this.element.clientWidth,this.element.clientHeight);if(Y||U.tj){if(window.matchMedia){U="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.cJ&&this.cJ.media=== U||(this.cJ=window.matchMedia(U));var d=this.cJ&&this.cJ.matches}if(d)return new g.xn(window.innerWidth,window.innerHeight)}else if(A)return this.j3.clone();return new g.xn(this.element.clientWidth,this.element.clientHeight)}; g.W.U$=function(){var U=this.app.L().S("enable_desktop_player_underlay"),Y=this.getPlayerSize(),A=g.H_(this.app.L().experiments,"player_underlay_min_player_width");return U&&this.AE&&Y.width>A?(U=g.H_(this.app.L().experiments,"player_underlay_video_width_fraction"),new g.xn(Math.min(Y.height*this.getVideoAspectRatio(),Y.width*U),Math.min(Y.height,Y.width*U/this.getVideoAspectRatio()))):Y}; g.W.getVideoAspectRatio=function(){return isNaN(this.Lw)?qmX(this):this.Lw}; g.W.getVideoContentRect=function(U){var Y=this.U$();U=C5X(this,Y,this.getVideoAspectRatio(),U);return new g.fx((Y.width-U.width)/2,(Y.height-U.height)/2,U.width,U.height)}; g.W.D_=function(U){this.AE=U;this.resize()}; g.W.ME=function(){return this.kI}; g.W.onMutedAutoplayChange=function(){Pv(this)}; g.W.setInternalSize=function(U){g.sn(this.j3,U)||(this.j3=U,this.resize())}; g.W.Tn=function(){this.E6&&g.z4(this.E6);this.dV();g.n.prototype.Tn.call(this)};g.W=ceV.prototype;g.W.click=function(U,Y){this.elements.has(U);this.Y.has(U);var A=g.X3();A&&U.visualElement&&g.z2(A,U.visualElement,Y)}; g.W.createClientVe=function(U,Y,A,c){var d=this;c=c===void 0?!1:c;this.elements.has(U);this.elements.add(U);A=iUY(A);U.visualElement=A;var T=g.X3(),E=g.Bj();T&&E&&(g.ir("combine_ve_grafts")?bc(Sc(),A,E):g.qY(g.uA)(void 0,T,E,A));Y.addOnDisposeCallback(function(){d.elements.has(U)&&d.destroyVe(U)}); c&&this.T.add(U)}; g.W.createServerVe=function(U,Y,A){var c=this;A=A===void 0?!1:A;this.elements.has(U);this.elements.add(U);Y.addOnDisposeCallback(function(){c.destroyVe(U)}); A&&this.T.add(U)}; g.W.destroyVe=function(U){this.elements.has(U);this.elements.delete(U);this.W.delete(U);this.Y.delete(U);this.T.delete(U)}; g.W.kN=function(U,Y){this.clientPlaybackNonce!==Y&&(this.clientPlaybackNonce=Y,MN(Sc(),U),dh3(this))}; g.W.setTrackingParams=function(U,Y){this.elements.has(U);Y&&(U.visualElement=g.tz(Y))}; g.W.PQ=function(U,Y,A){this.elements.has(U);Y?this.Y.add(U):this.Y.delete(U);var c=g.X3(),d=U.visualElement;this.T.has(U)?c&&d&&(Y?g.ED(c,[d]):g.o8(c,[d])):Y&&!this.W.has(U)&&(c&&d&&g.T2(c,d,void 0,A),this.W.add(U))}; g.W.hasVe=function(U){return this.elements.has(U)};g.w(g.vv,g.p);g.vv.create=function(U,Y,A,c){try{var d=typeof U==="string"?U:"player"+g.cW(U),T=j2[d];if(T){try{T.dispose()}catch(L){g.S5(L)}j2[d]=null}var E=new g.vv(U,Y,A,c);E.addOnDisposeCallback(function(){j2[d]=null;E.EU&&E.EU()}); return j2[d]=E}catch(L){throw g.S5(L),(L&&L instanceof Error?L:Error(String(L))).stack;}}; g.W=g.vv.prototype;g.W.NA=function(){return this.visibility}; g.W.Tt=function(U){var Y=this.Yt();if(U!==Y){U.getVideoData().autonavState=Y.getVideoData().autonavState;Y.zb(this.s6,this);var A=Y.getPlaybackRate();Y.dispose();this.Sq.Tt(U);U.setPlaybackRate(A);U.oF(this.s6,this);l2X(this)}}; g.W.E$=function(){this.PH||(this.PH=g.zL(Qj(),NDX()));return this.PH}; g.W.dV=function(U){if(this.mediaElement){this.Vc&&(this.events.FY(this.Vc),this.Vc=null);g.Rb(this.mZ);this.bY().dV(!0,!1,U);this.template.dV();try{this.S("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.qh()}catch(Y){g.Md(Y)}this.mediaElement=null}}; g.W.xw=function(U,Y,A){A=A===void 0?!1:A;if(U!==this.bY()){this.logger.debug(function(){return"start set presenting player, type "+U.getPlayerType()+", vid "+U.getVideoData().videoId}); var c=null;A||(A=this.bY(),c=A.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Jh(this.Pu,3),bL(this,"cuerangesremoved",A.ul()),this.A$&&!U.isGapless()&&A.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),A=U.U_()&&A.U_(),this.FN.gX("iv_s"),Jec(this,A));U.getPlayerType()===1&&this.Tt(U);ipX(this,U);this.Sq.xw(U);this.mediaElement&&U.setMediaElement(this.mediaElement);U.oF(this.Xm,this);U.g4()?I23(this,"setPresenting",!1):(this.Ex("newdata",U,U.getVideoData()), c&&!g.$0(c,U.getPlayerState())&&this.oL(new g.vh(U.getPlayerState(),c)),Y=Y&&this.S("html5_player_preload_ad_fix")&&U.getPlayerType()===1,U.WJ()&&!Y&&this.Ex("dataloaded",U,U.getVideoData()),(Y=(Y=U.getVideoData().T)&&Y.video)&&this.gW.gq("onPlaybackQualityChange",Y.quality),bL(this,"cuerangesadded",U.ul()),Y=U.getPlayerState(),g.I(Y,2)?w6Y(this):g.I(Y,8)?U.playVideo():U.Iy()&&U.pauseVideo(),Y=this.Yt(),U.getPlayerType()===2&&(U.getVideoData().Uc=Y.getVideoData().clientPlaybackNonce),U.getPlayerType()!== 2||this.Ha()||(c=U.getVideoData(),Y.HN(c.clientPlaybackNonce,c.mH||"",c.breakType||0,c.Vt,c.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.W.YZ=function(){if(this.Yt()!==this.bY()){var U=this.bY();this.logger.debug(function(){return"release presenting player, type "+U.getPlayerType()+", vid "+U.getVideoData().videoId}); this.xw(this.Yt())}}; g.W.M0=function(){return this.Sq}; g.W.bf=function(U){return this.Sq.bf(U)}; g.W.eM=function(U){return this.Sq.eM(U)}; g.W.Yt=function(){return this.Sq.Yt()}; g.W.bY=function(){return this.Sq.bY()}; g.W.qD=Yl(50);g.W.gtJ=function(){Jd(this)||(this.logger.debug("application playback ready"),this.vN(5))}; g.W.hNy=function(){if(!Jd(this)){this.logger.debug("playback ready");gY3(this);var U=this.bY(),Y=U.getPlayerState();U.Iy()?this.pauseVideo():Y.isOrWillBePlaying()&&this.playVideo()}}; g.W.canPlayType=function(U){return h5(U)}; g.W.L=function(){return this.MI}; g.W.getVideoData=function(){return this.bY().getVideoData()}; g.W.L6=Yl(19);g.W.XY=function(){return this.Yt().getVideoData()}; g.W.getVideoLoadedFraction=function(U){return(U=this.bf({playerType:U}))?U.getVideoLoadedFraction():this.Sq.Y.getVideoLoadedFraction()}; g.W.Cy=function(){return this.template}; g.W.WZ=function(){return this.Pu}; g.W.K3=function(){return this.FN}; g.W.e7=function(U){var Y=this.bf({playerType:1});Y&&Y.j$(U)}; g.W.Q8=function(){var U=this.Pu.Q8();this.gW.publish("videoStatsPingCreated",U);return U}; g.W.getVolume=function(){return Math.round(this.gW.getVolume())}; g.W.isMuted=function(){return this.gW.isMuted()}; g.W.ow=function(){if(this.Yt()===this.bY()&&this.Qd)return this.Qd.postId}; g.W.MIY=function(){var U=this;this.S("use_rta_for_player")||(g.Rd(this.MI)?g.o$(this.MI,g.Za(this.getVideoData())).then(function(Y){Z3(Qj(),Y);MQ9(U.getVideoData(),U.MI,U.E$())}):MQ9(this.getVideoData(),this.MI,this.E$()))}; g.W.pO=function(U){this.gW.publish("poTokenVideoBindingChange",U)}; g.W.bS=function(U){this.gW.publish("d6de4videobindingchange",U)}; g.W.X6=function(){this.nH&&this.nH.X6()}; g.W.HD=function(U){this.nH=U}; g.W.gj=function(U){if(U===1){this.FN.tick("vr");var Y=this.bY();Y.zF();uuV(this.FN,Y.getVideoData(),mh9(this));ful(this.Pu)}Y=this.MI;if(dA(Y)&&Y.Z||g.bo(Y)){var A;(((A=this.bY().getVideoData())==null?0:A.enableServerStitchedDai)||!this.Ha())&&this.gW.gq("onAdStateChange",U)}}; g.W.setLoopVideo=function(U){var Y=this.bY();Y===this.Yt()&&Y.h1()!==U&&(Y.setLoop(U),this.gW.Ev("onLoopChange",U))}; g.W.getLoopVideo=function(){return this.bY().h1()}; g.W.setLoopRange=function(U){var Y=!1;!!this.Qd!==!!U?Y=!0:this.Qd&&U&&(Y=this.Qd.startTimeMs!==U.startTimeMs||this.Qd.endTimeMs!==U.endTimeMs||this.Qd.postId!==U.postId||this.Qd.type!==U.type);if(Y){Y=this.bY();ES(Y.getVideoData())&&Y.wW("slr",{et:(U==null?void 0:U.endTimeMs)||-1});Y=this.Yt();Y.OH("applooprange");if(U){var A=new g.EE(U.startTimeMs,U.endTimeMs,{id:"looprange",namespace:"applooprange"});Y.addCueRange(A)}else{this.XY().clipConfig=void 0;var c;((A=this.Qd)==null?void 0:A.type)!=="repeatChapter"|| isNaN(Number((c=this.Qd)==null?void 0:c.loopCount))||(A={loopCount:String(this.Qd.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.r7("repeatChapterLoopEvent",A))}this.Qd=U;this.gW.Ev("onLoopRangeChange",U||void 0);this.Yt()===this.bY()&&(this.wM(),Y.Et())}}; g.W.getLoopRange=function(){return this.Qd}; g.W.wM=function(){var U="",Y=this.Yt();this.Qd?Y!==this.bY()?U="pnea":k93(this,Y.getCurrentTime())&&(this.Qd.loopCount=0,U="ilr"):U="nlr";var A=this.bY();if(ES(A.getVideoData()))if(this.S("html5_gapless_log_loop_range_info")){var c,d;A.wW("slrre",{rej:U,ct:Y.getCurrentTime(),lst:(c=this.Qd)==null?void 0:c.startTimeMs,let:(d=this.Qd)==null?void 0:d.endTimeMs})}else A.wW("slrre",{});U||a2l(this)}; g.W.setPlaybackRate=function(U,Y){if(!isNaN(U)){U=vYX(this,U);var A=this.Yt();A.getPlaybackRate()!==U&&(A.setPlaybackRate(U),Y&&!this.MI.j&&g.fU("yt-player-playback-rate",U),this.gW.gq("onPlaybackRateChange",U))}}; g.W.getCurrentTime=function(U,Y,A){Y=Y===void 0?!0:Y;var c=this.Sq.pF;if(c)return c.getCurrentTime();var d=U===2&&this.getVideoData().enableServerStitchedDai,T=g.KD(this.getVideoData());c=null;d||T?c=this.bY():c=this.bf({playerType:U});if(!c)return this.Sq.Y.getCurrentTime();U=this.Sq.J;if(T&&this.I1)return Y=this.I1,c=c.getCurrentTime(),A?A=Yj(Y,A):(A=jIX(Y,c),A=c-A/1E3),A;if(Y){if(d&&this.nP&&(A=this.nP.jX/1E3,A!==0))return A;A=iL(this,c);return aL(this,A.getCurrentTime(),A)}return d&&U?(U.DA(), U.getCurrentTime()):c.getCurrentTime()}; g.W.Im=function(){var U=this.bf({playerType:void 0});if(!U)return this.Sq.Y.Im();U=iL(this,U);return aL(this,U.Im(),U)}; g.W.getDuration=function(U,Y){Y=Y===void 0?!0:Y;var A=this.getVideoData(),c=U===2&&A.enableServerStitchedDai,d=g.KD(A),T=null;c||d?T=this.bY():T=this.bf({playerType:U});if(!T)return this.Sq.Y.getDuration();if(A.hasProgressBarBoundaries()&&!c&&!d){var E,L=Number((E=A.progressBarStartPosition)==null?void 0:E.utcTimeMillis),r;E=Number((r=A.progressBarEndPosition)==null?void 0:r.utcTimeMillis);if(!isNaN(L)&&!isNaN(E))return(E-L)/1E3}if(this.S("html5_gapless_duration_use_max_seekable_time")&&ES(A)&&!A.isLivePlayback)return kj(this, U);if(d&&this.I1)return Y=NiX(this.I1,this.I1.jr()),U===1&&Y===0?T.getDuration():Y;if(Y)return T=wE(this,T),aL(this,T.getDuration(),T);c&&this.nP?(U=this.nP,T=T.getCurrentTime(),T=(T=IvE(U,T*1E3))?T.durationMs/1E3:0):T=T.getDuration();return T}; g.W.tB=function(U){var Y=this.bf({playerType:U});return Y?this.Ha(Y)?(Y=wE(this,Y),Y.tB()-Y.getCurrentTime()+this.getCurrentTime(U)):Y.tB():this.Sq.Y.tB()}; g.W.sW=function(){return this.X7}; g.W.addPlayerResponseForAssociation=function(U){this.I1&&this.I1.addPlayerResponseForAssociation(U)}; g.W.finishSegmentByCpn=function(U,Y,A){return this.I1?this.I1.finishSegmentByCpn(U,Y,A):[]}; g.W.Ad=function(){this.template.Ad();var U=this.gW;U.state.element=this.template.element;var Y=U.state.element,A;for(A in U.state.Y)U.state.Y.hasOwnProperty(A)&&(Y[A]=U.state.Y[A]);(U=Mkv(this.template.element))&&this.events.N(this.template,U,this.onFullscreenChange)}; g.W.getDebugText=function(U){var Y=this.Yt().i9(U),A=this.bY();if(A!==this.Yt()){A=A.i9(U);for(var c=g.J(Object.keys(A)),d=c.next();!d.done;d=c.next())d=d.value,Y["ad"+d]=A[d];if(U){A=Y;c={};if(d=ZH(document,"movie_player"))c.bounds=d.getBoundingClientRect(),c["class"]=d.className;d={};var T=g.y7("video-ads");T?(qol(T,d),d.html=T.outerHTML):d.missing=1;T={};var E=g.y7("videoAdUiSkipContainer"),L=g.y7("ytp-ad-skip-button-container"),r=g.y7("ytp-skip-ad-button"),l=E||L||r;l?(qol(l,T),T.ima=E?1:0,T.bulleit= L?1:0,T.component=r?1:0):T.missing=1;c=JSON.stringify({player:c,videoAds:d,skipButton:T});A.ad_skipBtnDbgInfo=c}}U&&this.mediaElement&&(Y["0sz"]=""+(+fR(this.mediaElement.getSize())===0),Y.op=this.mediaElement.ZR("opacity"),A=this.mediaElement.i8().y+this.mediaElement.getSize().height,Y.yof=""+(+A<=0),Y.dis=this.mediaElement.ZR("display"));U&&((U=(0,g.lv)())&&(Y.gpu=U),(U=this.MI.playerStyle)&&(Y.ps=U),this.MI.yJ&&(Y.webview=1));Y.debug_playbackQuality=this.gW.getPlaybackQuality(1);Y.debug_date=(new Date).toString(); Y.origin=window.origin;Y.timestamp=Date.now();delete Y.uga;delete Y.q;return JSON.stringify(Y,null,2)}; g.W.getFeedbackProductData=function(){var U={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.L().experiments.experimentIds.join(", "),player_release:z[18]},Y;if(Y=this.getPlayerStateObject().Pb)U.player_error_code=Y.errorCode,U.player_error_details=JSON.stringify(Y.errorDetail);return U}; g.W.getPresentingPlayerType=function(U){if(this.appState===1)return 1;if(Jd(this))return 3;var Y;if(U&&((Y=this.nP)==null?0:Y.sb(this.getCurrentTime())))return 2;var A;return g.KD(this.getVideoData())&&((A=this.I1)==null?0:A.sb())?2:this.bY().getPlayerType()}; g.W.Vj=function(){return g.KD(this.getVideoData())&&this.I1?this.I1.Vj():!1}; g.W.getPlayerStateObject=function(U){var Y=this.Sq.pF;return Y?Y.getPlayerState():this.bf({playerType:U}).getPlayerState()}; g.W.getAppState=function(){return this.appState}; g.W.Wbr=function(U){switch(U.type){case "loadedmetadata":this.VE.start();U=g.J(this.j7);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,ZpY(this,Y.id,Y.Mor,Y.XbT,void 0,!1);this.j7=[];break;case "loadstart":this.FN.gX("gv");break;case "progress":case "timeupdate":vd(U.target.Hb())>=2&&this.FN.gX("l2s");break;case "playing":g.AG&&this.VE.start();if(g.Rd(this.MI))U=!1;else{Y=g.fq(this.WZ());U=this.mediaElement.ZR("display")==="none"||fR(this.mediaElement.getSize())===0;var A=Vr(this.template),c=this.bY().getVideoData(), d=g.pV(this.MI);c=op(c);Y=!A||Y||d||c||this.MI.Ly;U=U&&!Y}U&&(U=this.bY(),U.Hk(),this.getVideoData().Lr||(this.getVideoData().Lr=1,this.xe(),U.playVideo()))}}; g.W.RNn=function(U){this.gW.M5("onLoadProgress",U)}; g.W.x5W=function(){this.gW.publish("playbackstalledatstart")}; g.W.wpf=function(U,Y){this.gW.publish("sabrCaptionsDataLoaded",U,Y)}; g.W.lFJ=function(U){this.bY().kZ(U)}; g.W.ZPJ=function(U){this.bY().S7(U)}; g.W.vrY=function(U){U=iL(this,this.bY());U=aL(this,U.getCurrentTime(),U);this.gW.gq("onVideoProgress",U);this.MI.GT&&MXX(this,this.visibility.LJ())&&this.pauseVideo()}; g.W.ZUW=function(){this.gW.gq("onAutoplayBlocked");var U=this.bY().getVideoData();U&&(U.r_=!0);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.ay(this.MI)&&(U={autoplayBrowserPolicy:At(),autoplayIntended:cz(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.r7("embedsAutoplayStatusChanged",U))}; g.W.MlT=function(){this.gW.publish("progresssync")}; g.W.Vqr=function(){this.gW.M5("onPlaybackPauseAtStart")}; g.W.OrY=function(U){if(this.getPresentingPlayerType()===1){g.Gg(U,1)&&!g.I(U.state,64)&&this.XY().isLivePlayback&&this.Yt().isAtLiveHead()&&this.gW.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Gg(U,2)){if(this.Qd&&this.Qd.endTimeMs>=(this.getDuration()-1)*1E3){a2l(this);return}w6Y(this)}if(g.I(U.state,128)){var Y=U.state;this.cancelPlayback(5);Y=Y.Pb;JSON.stringify({errorData:Y,debugInfo:this.getDebugText(!0)});this.gW.gq("onError",uK3(Y.errorCode));this.gW.M5("onDetailedError",{errorCode:Y.errorCode, errorDetail:Y.errorDetail,message:Y.errorMessage,messageKey:Y.kV,cpn:Y.cpn});(0,g.y)()-this.MI.fV>6048E5&&this.gW.M5("onReloadRequired")}Y={};if(U.state.isPlaying()&&!U.state.isBuffering()&&!yl("pbresume","ad_to_video")&&yl("_start","ad_to_video")){var A=this.getVideoData();Y.clientPlaybackNonce=A.clientPlaybackNonce;A.videoId&&(Y.videoId=A.videoId);g.OX(Y,"ad_to_video");Z5("pbresume",void 0,"ad_to_video");ful(this.Pu)}this.gW.publish("applicationplayerstatechange",U)}}; g.W.oL=function(U){this.Sq.pF||this.gW.publish("presentingplayerstatechange",U)}; g.W.gV=function(U){Wv(this,HD(U.state));g.I(U.state,1024)&&this.gW.isMutedByMutedAutoplay()&&(Bv(this,{muted:!1,volume:this.MA.volume},!1),Xd(this,!1))}; g.W.dzs=function(U,Y){U==="newdata"&&l2X(this);this.gW.publish("applicationvideodatachange",U,Y)}; g.W.Nfs=function(U,Y){this.gW.M5("onPlaybackAudioChange",this.gW.getAudioTrack().b$.name);this.gW.publish("internalaudioformatchange",this.gW.getAudioTrack().b$.id,Y)}; g.W.ABn=function(U){var Y=this.bY().getVideoData();U===Y&&this.gW.gq("onPlaybackQualityChange",U.T.video.quality)}; g.W.Oe=function(){var U=this.Sq.W[2]||null;U&&(U=U.getVideoData(),this.bY().wW("ssdai",{cleanaply:1,acpn:U==null?void 0:U.clientPlaybackNonce,avid:U.videoId,isDai:this.XY().enableServerStitchedDai?1:0}),delete this.Sq.W[2])}; g.W.orW=function(U,Y){this.Ex(U,this.bY(),Y)}; g.W.Ex=function(U,Y,A){this.logger.debug(function(){return"on video data change "+U+", player type "+Y.getPlayerType()+", vid "+A.videoId}); this.MI.O3()&&Y.wW("vdc",{type:U,vid:A.videoId||"",cpn:A.clientPlaybackNonce||""});Y===this.Yt()&&(this.MI.DG=A.oauthToken);if(Y===this.Yt()){this.getVideoData().enableServerStitchedDai&&!this.nP?(this.Yt().wW("sdai",{initSstm:1}),this.nP=this.S("html5_enable_ssdai_transition_with_only_enter_cuerange")?new LhY(this.gW,this.MI,this.Yt(),this):new g.Q0(this.gW,this.MI,this.Yt(),this)):!this.getVideoData().enableServerStitchedDai&&this.nP&&(this.nP.dispose(),this.nP=null,B0X(this.Sq));var c,d;!g.KD(this.getVideoData())|| U!=="newdata"&&U!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((c=this.X7.Y)==null?void 0:(d=c.getVideoData())==null?void 0:d.clientPlaybackNonce)?!g.KD(this.getVideoData())&&this.I1&&(this.I1.dispose(),this.I1=null):(SKc(this.X7),this.Oe(),c=My(this.X7,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.X7.enqueue(c,!0),hC(this.X7,0,this.getDuration(1)*1E3,[c]),Mqv(this.X7,this.getVideoData().clientPlaybackNonce,[c]),this.I1&&(this.I1.dispose(),this.I1=null),this.I1=new HPV(this.gW, this.X7,this.Yt()),this.Sq.Yt().Fb(this.I1))}if(U==="newdata")this.logger.debug("new video data, destroy modules"),Jh(this.Pu,2),this.gW.publish("videoplayerreset",Y);else{if(!this.mediaElement)return;U==="dataloaded"&&(this.Yt()===this.bY()?(mJ(A.Ww,A.kc),tXS(this)):jiS(this));Y.getPlayerType()===1&&(this.MI.kE&&K_l(this),this.getVideoData().isLivePlayback&&!this.MI.fl&&this.DO("html5.unsupportedlive",2,"DEVICE_FALLBACK"),A.isLoaded()&&((d_v(A)||this.getVideoData().qY)&&this.gW.publish("legacyadtrackingpingchange", this.getVideoData()),A.hasProgressBarBoundaries()&&siX(this)));this.gW.publish("videodatachange",U,A,Y.getPlayerType())}this.gW.gq("onVideoDataChange",{type:U,playertype:Y.getPlayerType()});this.wM();(c=A.Cj)?this.er.kN(c,A.clientPlaybackNonce):dh3(this.er)}; g.W.Bc=function(){jp(this,null);this.gW.M5("onPlaylistUpdate")}; g.W.IFv=function(U){delete this.c6[U.getId()];this.Yt().removeCueRange(U);a:{U=this.getVideoData();var Y,A,c,d,T,E,L,r,l,P,V=((Y=U.Uv)==null?void 0:(A=Y.contents)==null?void 0:(c=A.singleColumnWatchNextResults)==null?void 0:(d=c.autoplay)==null?void 0:(T=d.autoplay)==null?void 0:T.sets)||((E=U.Uv)==null?void 0:(L=E.contents)==null?void 0:(r=L.twoColumnWatchNextResults)==null?void 0:(l=r.autoplay)==null?void 0:(P=l.autoplay)==null?void 0:P.sets);if(V)for(Y=g.J(V),A=Y.next();!A.done;A=Y.next())if(A= A.value,d=c=void 0,A=A.autoplayVideo||((c=A.autoplayVideoRenderer)==null?void 0:(d=c.autoplayEndpointRenderer)==null?void 0:d.endpoint),c=g.O(A,g.Yp),T=d=void 0,A!=null&&((d=c)==null?void 0:d.videoId)===U.videoId&&((T=c)==null?0:T.continuePlayback)){U=A;break a}U=null}(Y=g.O(U,g.Yp))&&this.gW.Ev("onPlayVideo",{sessionData:{autonav:"1",itct:U==null?void 0:U.clickTrackingParams},videoId:Y.videoId,watchEndpoint:Y})}; g.W.vN=function(U){var Y=this;U!==this.appState&&(this.logger.debug(function(){return"app state change "+Y.appState+" -> "+U}),U===2&&this.getPresentingPlayerType()===1&&(Wv(this,-1),Wv(this,5)),this.appState=U,this.gW.publish("appstatechange",U))}; g.W.DO=function(U,Y,A,c,d){this.Yt().OT(U,Y,A,c,d)}; g.W.oT=function(U,Y){this.Yt().handleError(new a9(U,Y))}; g.W.isAtLiveHead=function(U,Y){Y=Y===void 0?!1:Y;var A=this.bf({playerType:U});if(!A)return this.Sq.Y.isAtLiveHead();U=wE(this,A);A=iL(this,A);return U!==A?U.isAtLiveHead(aL(this,A.getCurrentTime(),A),!0):U.isAtLiveHead(void 0,Y)}; g.W.NF=function(){var U=this.bf({playerType:void 0});return U?wE(this,U).NF():this.Sq.Y.NF()}; g.W.seekTo=function(U,Y,A,c,d){Y=Y!==!1;if(c=this.bf({playerType:c}))this.appState===2&&td(this),this.Ha(c)?xj(this)?this.nP.seekTo(U,{seekSource:d},Y,A):this.BQ.seekTo(U,{seekSource:d},Y,A):g.KD(this.getVideoData())&&this.I1?this.I1.seekTo(U,{Cd:!Y,E2:A,Qa:"application",seekSource:d}):c.seekTo(U,{Cd:!Y,E2:A,Qa:"application",seekSource:d})}; g.W.seekBy=function(U,Y,A,c){this.seekTo(this.getCurrentTime()+U,Y,A,c)}; g.W.PfE=function(){this.gW.gq("SEEK_COMPLETE")}; g.W.bUX=function(){this.gW.Ev("onAbnormalityDetected")}; g.W.T1w=function(U){this.gW.Ev("onSnackbarMessage",U)}; g.W.HPn=function(U){var Y=this.bY(),A=Y.getVideoData();if(this.appState===1||this.appState===2)A.startSeconds=U;this.appState===2?g.I(Y.getPlayerState(),512)||td(this):this.gW.gq("SEEK_TO",U)}; g.W.BfE=function(){this.gW.publish("airplayactivechange");this.MI.S("html5_external_airplay_events")&&this.gW.M5("onAirPlayActiveChange",this.gW.x4())}; g.W.f5Y=function(){this.gW.publish("airplayavailabilitychange");this.MI.S("html5_external_airplay_events")&&this.gW.M5("onAirPlayAvailabilityChange",this.gW.HJ())}; g.W.showAirplayPicker=function(){this.bY().zr()}; g.W.l5X=function(){this.gW.publish("beginseeking")}; g.W.qaX=function(){this.gW.publish("endseeking")}; g.W.getStoryboardFormat=function(U){return(U=this.bf({playerType:U}))?wE(this,U).getStoryboardFormat():this.Sq.Y.getStoryboardFormat()}; g.W.IS=function(U){return(U=this.bf({playerType:U}))?wE(this,U).getVideoData().IS():this.Sq.Y.IS()}; g.W.Ha=function(U){U=(U||this.bY()).getVideoData();if(xj(this))U=U===this.nP.playback.getVideoData();else a:{var Y=this.BQ;if(U===Y.Y.getVideoData()&&Y.T.length)U=!0;else{Y=g.J(Y.T);for(var A=Y.next();!A.done;A=Y.next())if(U.R5===A.value.R5){U=!0;break a}U=!1}}return U}; g.W.eE=function(U,Y,A,c,d,T,E,L){this.logger.debug(function(){return"Adding video to timeline id="+U.video_id+"\n lengthMs="+c+" enterTimeMs="+d}); var r="",l=xj(this);this.bY().wW("appattl",{sstm:this.nP?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});r=l?naX(this.nP,U,Y,A,c,d,T,E,L):f93(this.BQ,U,A,c,d,T);this.logger.debug(function(){return"Video added to timeline id="+U.video_id+" timelinePlaybackId="+r}); return r}; g.W.h0=function(U,Y,A,c,d,T,E,L){if(xj(this)){var r=naX(this.nP,U,Y,A,c,d,T,E,L);this.logger.debug(function(){return"Remaining video added to timeline id="+U.video_id+" timelinePlaybackId="+r})}return""}; g.W.Ry=function(U){var Y;(Y=this.nP)==null||Y.Ry(U)}; g.W.mQ=function(U,Y){U=U===void 0?-1:U;Y=Y===void 0?Infinity:Y;xj(this)||muc(this.BQ,U,Y)}; g.W.BC=function(U,Y,A){if(xj(this)){var c=this.nP,d=c.qz.get(U);d?(A===void 0&&(A=d.TN),d.durationMs=Y,d.TN=A):c.a4("Invalid_timelinePlaybackId_"+U+"_specified")}else{c=this.BQ;d=null;for(var T=g.J(c.T),E=T.next();!E.done;E=T.next())if(E=E.value,E.R5===U){d=E;break}d?(A===void 0&&(A=d.TN),OPl(c,d,Y,A)):Ad(c,"InvalidTimelinePlaybackId timelinePlaybackId="+U)}}; g.W.enqueueVideoByPlayerVars=function(U,Y,A,c){A=A===void 0?Infinity:A;c=c===void 0?"":c;this.Ha();U=new g.nD(this.MI,U);c&&(U.R5=c);f2X(this,U,Y,A)}; g.W.queueNextVideo=function(U,Y,A,c,d){A=A===void 0?NaN:A;U=this.preloadVideoByPlayerVars(U,Y===void 0?1:Y,A,c===void 0?"":c,d===void 0?"":d);Y=this.bY();U&&(this.S("html5_check_queue_on_data_loaded")?this.L().supportsGaplessShorts()&&Y.getVideoData().Z&&(A=this.PV,c=this.A$.G,A.j!==U&&(A.T=Y,A.j=U,A.W=1,A.Y=U.getVideoData(),A.K=c,A.Y.isLoaded()?A.J():A.Y.subscribe("dataloaded",A.J,A))):(A=lv9(Y,U,this.A$.G),A!=null?(Y.wW("sgap",A),Y.getVideoData().Z&&Y.YO(!1)):(U=U.getVideoData(),Y=this.PV,Y.Y!== U&&(Y.Y=U,Y.W=1,U.isLoaded()?Y.G():Y.Y.subscribe("dataloaded",Y.G,Y)))))}; g.W.kd=function(U,Y,A,c){var d=this;A=A===void 0?0:A;c=c===void 0?0:c;wE(this,this.bY()).A6();jAX(this.A$,U,Y,A,c).then(function(){d.gW.M5("onQueuedVideoLoaded")},function(){})}; g.W.KF=function(){return this.A$.KF()}; g.W.vH=function(U){var Y=this.A$.Y;return Y?Y.JF(U):!1}; g.W.clearQueue=function(U,Y){U=U===void 0?!1:U;Y=Y===void 0?!1:Y;this.logger.debug("Clearing queue");this.A$.clearQueue(U,Y)}; g.W.loadVideoByPlayerVars=function(U,Y,A,c,d,T){Y=Y===void 0?1:Y;var E=this.Yt();if(Y===2&&this.XY().enableServerStitchedDai&&E&&!E.j9())return E.wW("lvonss",{vid:(U==null?void 0:U.videoId)||"",ptype:Y}),!1;var L=!1;E=new g.nD(this.MI,U);E.reloadPlaybackParams=T;g.YQ(this.MI)&&!E.Vz&&oO(this.FN);var r;T=this.FN;var l=(r=E.Pw)!=null?r:"";T.timerName=l;this.FN.t_("pl_i");this.S("web_player_early_cpn")&&E.clientPlaybackNonce&&this.FN.infoGel({clientPlaybackNonce:E.clientPlaybackNonce});sX9(E).supportsVp9Encoding=== !1&&this.bY().wW("noVp9enc",{});if(this.L().supportsGaplessShorts()){r=tqY(this.A$,E,Y);if(r==null){Wv(this,-1);U=this.A$;U.app.L().S("html5_gapless_new_slr")?RL(U.app,"gaplessshortslooprange"):U.app.setLoopRange(null);U.app.getVideoData().w3=!0;var P;(P=U.Y)==null||P.hh();var V;(V=U.Y)==null||V.vX();A={Qa:"gapless_to_next_video",seekSource:60};c=g.H_(U.app.L().experiments,"html5_gapless_seek_offset");var v;(v=U.app.bY())==null||v.seekTo(N0X(U)+c,A);if(!U.app.getPlayerStateObject(Y).isPlaying()){var H; (H=U.app.bY())==null||H.playVideo(!0)}if(U.app.L().S("html5_short_gapless_unlisten_after_seek")){var G;(G=U.app.bY())==null||G.xZ()}U.J();return!0}v=this.S("html5_shorts_gapless_preload_fallback");H=this.A$.Y;v&&H&&!H.Ky()&&(G=H.getVideoData(),G=this.MI.S("html5_autonav_autoplay_in_preload_key")?f0(this,Y,G):hd(this,Y,G.videoId,G.R5),this.Sq.j.set(G,H,3600));this.A$.clearQueue(v);this.bY().wW("sgap",{f:r})}if(d){for(;E.ER.length&&E.ER[0].isExpired();)E.ER.shift();L=E.ER.length-1;L=L>0&&d.T(E.ER[L])&& d.T(E.ER[L-1]);E.ER.push(d)}A||(U&&U6c(U)?(uo(this.MI)&&!this.mG&&(U.fetch=0),jp(this,U)):this.playlist&&jp(this,null),U&&(this.mG=d3(!1,U.external_list)));this.gW.publish("loadvideo");Y=this.Ow(E,Y,c);L&&this.DO("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+E.ER.join()).replace(/[;:,]/g,"_"));return Y}; g.W.preloadVideoByPlayerVars=function(U,Y,A,c,d){Y=Y===void 0?1:Y;A=A===void 0?NaN:A;c=c===void 0?"":c;d=d===void 0?"":d;var T="";if(this.MI.S("html5_autonav_autoplay_in_preload_key"))T=SoX(this,Y,U,d);else{var E=LU(U);T=hd(this,Y,E,d)}if(this.Sq.j.get(T))return this.logger.debug(function(){return"already preloaded "+T}),null; U=new g.nD(this.MI,U);d&&(U.R5=d);return hSc(this,U,Y,A,c)}; g.W.setMinimized=function(U){this.visibility.setMinimized(U);(U=Mpc(this.Pu))&&(this.isMinimized()?U.load():U.unload());this.gW.publish("minimized")}; g.W.setInline=function(U){this.visibility.setInline(U)}; g.W.setInlinePreview=function(U){this.visibility.setInline(U)}; g.W.DN=function(U){bpv(this,U)||this.visibility.DN(U)}; g.W.setSqueezeback=function(U){this.visibility.setSqueezeback(U)}; g.W.wD=function(){var U,Y=(U=this.mediaElement)==null?void 0:U.jc();Y&&(this.MI.cN&&NN(J9(function(){return document.exitFullscreen()}),function(){}),NN(J9(function(){return iH(Y)}),function(){}))}; g.W.qHf=function(){this.mediaElement.jc();this.mediaElement.jc().webkitPresentationMode==="picture-in-picture"?this.DN(!0):this.DN(!1)}; g.W.togglePictureInPicture=function(){this.bY().togglePictureInPicture()}; g.W.Ow=function(U,Y,A){Y=Y===void 0?1:Y;this.logger.debug(function(){return"start load video, id "+U.videoId+", type "+Y}); yl("_start",this.FN.timerName)||g.qY(fK)(void 0,this.FN.timerName);var c=!1,d=X6v(this,Y,U,!1);d?(c=!0,U.dispose()):(d=Hv(this,Y,U,!0,A),(this.S("html5_onesie")||this.S("html5_load_before_stop"))&&d.N3()&&d.AA(),this.VE.stop(),Y===1&&Y!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,Y),this.xw(d));d===this.Yt()&&(this.MI.DG=U.oauthToken);if(!d.N3())return!1;if(d===this.Yt())return this.vN(1),A=td(this),c&&this.S("html5_player_preload_ad_fix")&&d.getPlayerType()===1&& d.WJ()&&this.Ex("dataloaded",d,d.getVideoData()),A;d.zV();return!0}; g.W.cueVideoByPlayerVars=function(U,Y){var A=this;Y=Y===void 0?1:Y;var c=this.Yt();if(this.XY().enableServerStitchedDai&&c&&!c.j9()&&U&&Object.keys(U).length>0)c.wW("qvonss",{vid:(U==null?void 0:U.videoId)||"",ptype:Y});else if(U&&U6c(U))if(this.r4=!0,jp(this,U),(U=g.zq(this.playlist))&&U.Bp())M6(this,U,Y);else this.playlist.onReady(function(){N6(A)}); else{Y||(Y=this.getPresentingPlayerType());Y===1&&this.Bc();c=new g.nD(this.MI,U);var d=g.ay(this.MI)&&!this.MI.Hw&&Y===1&&!c.isAd()&&!c.mH;this.gW.publish("cuevideo");d?(this.bY().getVideoData().loading=!0,oj9(c,U?U:{}).then(function(T){M6(A,T,Y)}),c.dispose()):M6(this,c,Y)}}; g.W.uP=function(U,Y,A,c,d,T,E){if(!U&&!A)throw Error("Playback source is invalid");if(s5(this.MI)||g.XA(this.MI))return Y=Y||{},Y.lact=kS(),Y.vis=this.gW.getVisibilityState(),this.gW.Ev("onPlayVideo",{videoId:U,watchEndpoint:T,sessionData:Y,listId:A}),!1;qpc(this.FN);this.FN.reset();U={video_id:U};c&&(U.autoplay="1");c&&(U.autonav="1");T&&(U.player_params=T.playerParams);E&&(U.oauth_token=E);A?(U.list=A,this.loadPlaylist(U)):this.loadVideoByPlayerVars(U,1);return!0}; g.W.cuePlaylist=function(U,Y,A,c){this.r4=!0;p6v(this,U,Y,A,c)}; g.W.loadPlaylist=function(U,Y,A,c){this.r4=!1;p6v(this,U,Y,A,c)}; g.W.UN=function(){return this.gW.isMutedByMutedAutoplay()?!1:this.Sq.pF?!0:!(!this.playlist||!this.playlist.pX())}; g.W.CI=Yl(13); g.W.nextVideo=function(U,Y){var A=g.Ai(this.Yt().getVideoData());g.M9(this.gW)&&A?this.uP(A.videoId,Y?A.Ti:A.sessionData,A.playlistId,Y,void 0,A.ac||void 0):this.mG?this.gW.M5("onPlaylistNext"):this.getPresentingPlayerType()===3?g.M(ar(this.Pu)).nextVideo():!this.playlist||uo(this.MI)&&!this.gW.isFullscreen()||(this.playlist.pX(U)&&cd8(this.playlist,Y1S(this.playlist)),this.playlist.loaded?(U=Y&&this.MI.S("html5_player_autonav_logging"),Y&&this.gW.publish("playlistautonextvideo"),this.Ow(g.M(g.zq(this.playlist,void 0, Y,U)),1)):this.r4=!1)}; g.W.previousVideo=function(U){this.mG?this.gW.M5("onPlaylistPrevious"):this.getPresentingPlayerType()===3?g.M(ar(this.Pu)).G6():!this.playlist||uo(this.MI)&&!this.gW.isFullscreen()||(this.playlist.kD(U)&&cd8(this.playlist,AdS(this.playlist)),this.playlist.loaded?this.Ow(g.M(g.zq(this.playlist)),1):this.r4=!1)}; g.W.playVideoAt=function(U){this.mG?this.gW.M5("onPlaylistIndex",U):this.playlist&&(this.playlist.loaded?this.Ow(g.M(g.zq(this.playlist,U)),1):this.r4=!1,cd8(this.playlist,U))}; g.W.getPlaylist=function(){return this.playlist}; g.W.t0=Yl(25);g.W.rPT=function(U){this.gW.gq("onCueRangeEnter",U.getId())}; g.W.GkI=function(U){this.gW.gq("onCueRangeExit",U.getId())}; g.W.rP=function(){var U=g.wH(this.WZ());U&&U.rP()}; g.W.MN=function(U,Y,A){var c=this.bf({playerType:Y});if(c){var d=this.XY();if(g.KD(d)){if(this.I1)if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&c.getPlayerType()===2&&this.I1.sb()&&(c=this.Yt()),Y===1)for(var T=U1(this.I1,d.clientPlaybackNonce),E=g.J(U),L=E.next();!L.done;L=E.next())L=L.value,L.start+=T,L.end+=T,L.Mk=T,L.W=d.clientPlaybackNonce;else if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&Y===2)for(this.getPresentingPlayerType(),d=g.J(U),T=d.next();!T.done;T=d.next())T.value.W= this.I1.jr();d=g.J(U);for(T=d.next();!T.done;T=d.next())E=void 0,T.value.playerType=(E=Y)!=null?E:1}c.MN(U,A);Y&&this.getPresentingPlayerType()!==Y||bL(this,"cuerangesadded",U)}}; g.W.WU=function(U,Y){var A=this.bf({playerType:Y});A&&(A.WU(U),Y&&this.getPresentingPlayerType()!==Y||bL(this,"cuerangesremoved",U))}; g.W.JU=function(U){var Y=this.bY(),A=this.getPresentingPlayerType();return this.S("html5_ssap_enable_cpn_triggered_media_end")?Y.JU(A,U):Y.JU(A)}; g.W.cPn=function(){function U(){var c=Y.screenLayer||(Y.isMinimized()?3:0),d=g.X3(c);if(d&&d!=="UNDEFINED_CSN"){var T=Y.MI.S("web_player_attach_player_response_ve"),E=Y.MI.S("web_playback_associated_ve");c={cpn:Y.getVideoData().clientPlaybackNonce,csn:d};Y.getVideoData().Zf&&(T||E)&&(T=g.tz(Y.getVideoData().Zf),g.T2(d,T),E&&(c.playbackVe=T.getAsJson()));Y.getVideoData().queueInfo&&(c.queueInfo=Y.getVideoData().queueInfo);d={};Y.S("web_playback_associated_log_ctt")&&Y.getVideoData().J&&(d.cttAuthInfo= {token:Y.getVideoData().J,videoId:Y.getVideoData().videoId});g.r7("playbackAssociated",c,d)}else g.Md(new g.Do("CSN Missing or undefined during playback association"))} var Y=this,A=this.bY();this.getPresentingPlayerType();uuV(this.FN,A.getVideoData(),mh9(this));Fd(this)&&this.MI.j&&Mm(this.XY())==="embedded"&&this.Hv&&Math.random()<.01&&g.r7("autoplayTriggered",{intentional:this.intentionalPlayback});this.Hv=!1;ful(this.Pu);this.S("web_player_defer_ad")&&NmY(this);this.gW.M5("onPlaybackStartExternal");(this.MI.S("mweb_client_log_screen_associated"),gI(this.MI))||U();A={};this.getVideoData().J&&(A.cttAuthInfo={token:this.getVideoData().J,videoId:this.getVideoData().videoId}); A.sampleRate=20;gs("player_att",A);if(this.getVideoData().botguardData||this.S("fetch_att_independently"))g.Cs(this.MI)||cI(this.MI)==="MWEB"?g.CU(g.Y6(),function(){ep(Y)}):ep(this); this.wM();RSc(this);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.ay(this.MI)&&(A={autoplayBrowserPolicy:At(),autoplayIntended:cz(this.getVideoData()),autoplayStatus:ITY(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.r7("embedsAutoplayStatusChanged",A))}; g.W.Esw=function(){this.gW.publish("internalAbandon");s1(this)}; g.W.onApiChange=function(){var U=this.bY();this.MI.Z?this.gW.gq("onApiChange",U.getPlayerType()):this.gW.gq("onApiChange")}; g.W.eNy=function(){var U=this.mediaElement;U={volume:g.Bi(Math.floor(U.getVolume()*100),0,100),muted:U.h3()};U.muted||Xd(this,!1);this.MA=g.YR(U);this.gW.gq("onVolumeChange",U)}; g.W.mutedAutoplay=function(U){var Y=this.getVideoData().videoId;isNaN(this.nw)&&(this.nw=this.getVideoData().startSeconds);if((U==null?0:U.videoId)||Y)this.loadVideoByPlayerVars({video_id:(U==null?0:U.videoId)?U==null?void 0:U.videoId:Y,playmuted:!0,start:this.nw,muted_autoplay_duration_mode:U==null?void 0:U.durationMode}),this.gW.M5("onMutedAutoplayStarts")}; g.W.onFullscreenChange=function(){var U=ye3(this);this.TG(U?1:0);Dh8(this,!!U)}; g.W.TG=function(U){var Y=!!U,A=!!this.rd()!==Y;this.visibility.TG(U);this.template.TG(Y);this.S("html5_media_fullscreen")&&!Y&&this.mediaElement&&ye3(this)===this.mediaElement.jc()&&this.mediaElement.W1();this.template.resize();A&&this.FN.tick("fsc");A&&(this.gW.publish("fullscreentoggled",Y),U=this.XY(),Y={fullscreen:Y,videoId:U.iD||U.videoId,time:this.getCurrentTime()},this.gW.getPlaylistId()&&(Y.listId=this.gW.getPlaylistId()),this.gW.gq("onFullscreenChange",Y))}; g.W.dw=function(){return this.visibility.dw()}; g.W.isFullscreen=function(){return this.visibility.isFullscreen()}; g.W.rd=function(){return this.visibility.rd()}; g.W.d5v=function(){var U=this.rd();U!==0&&U!==1||this.TG(ye3(this)?1:0);U=window.screen.width*window.screen.height;var Y=window.outerHeight*window.outerWidth;this.MI.tU?(this.OP=Math.max(this.OP,U,Y),U=Y/this.OP0&&(r=Math.floor(l/1E3))}r=Y?Y.LV:r;var P={AD_BLOCK:this.Y++,AD_BREAK_LENGTH:r,AUTONAV_STATE:Qr(this.player.L()),CA_TYPE:"image",CPN:L.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.NF()*1E3,LACT:kS(),LIVE_INDEX:Y?this.W++:1,LIVE_TARGETING_CONTEXT:Y&&Y.context?Y.context:"",MIDROLL_POS:T? Math.round(T.start/1E3):0,MIDROLL_POS_MS:T?Math.round(T.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Cy().U$().height,P_W:this.player.Cy().U$().width,YT_REMOTE:d?d.join(","):""},V=lr(rF);Object.keys(V).forEach(function(H){V[H]!=null&&(P[H.toUpperCase()]=V[H].toString())}); A!==""&&(P.BISCOTTI_ID=A);A={};Ll(U)&&(A.sts="20201",(Y=this.player.L().forcedExperiments)&&(A.forced_experiments=Y));var v=Es(g.kC(U,P),A);return v.split("?").length!==2?XD(Error("Invalid AdBreakInfo URL")):g.o$(this.player.L(),L==null?void 0:L.oauthToken).then(function(H){if(H&&zw()){var G=Qj();Z3(G,H)}H=g.M(c.player.E$(G));G=wfl(c,v,P,L.isMdxPlayback,E);return g.KK(H,G,"/youtubei/v1/player/ad_break").then(function(F){return F})})}; Zu.prototype.reset=function(){this.W=this.Y=1};g.w(ibS,Zu); ibS.prototype.T=function(U,Y,A){Y=Y===void 0?{}:Y;var c=Y.q3;var d=Y.KP;var T=Y.cueProcessedMs;A=A===void 0?"":A;Y=this.Y;this.Y++;var E=this.player.L().S("h5_disable_macro_substitution_in_get_ad_break")?U:JPv(this,U,{q3:c,KP:d,cueProcessedMs:T},A,Y);if(E.split("?").length!==2)return Math.random()<.1&&g.Md(Error("Invalid AdBreakInfo URL")),XD(Error("Invalid AdBreakInfo URL"));var L=this.player.getVideoData(1).isMdxPlayback,r=A;A=PJv.exec(E);A=A!=null&&A.length>=2?A[1]:"";U=VN3.test(E);var l=$tv.exec(E); l=l!=null&&l.length>=2?l[1]:"";var P=v9l.exec(E);P=P!=null&&P.length>=2&&!Number.isNaN(Number(P[1]))?Number(P[1]):1;var V=HbX.exec(E);V=V!=null&&V.length>=2?V[1]:"0";var v=O5(this.player.L().ZG),H=g.CV(this.player.getVideoData(1).Zf,!0);E9V(this,H,E,r===""?"":r,this.player.L(),this.player.getVideoData(1));r={splay:!1,lactMilliseconds:String(kS()),playerHeightPixels:Math.trunc(this.player.Cy().U$().height),playerWidthPixels:Math.trunc(this.player.Cy().U$().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20201,autonavState:Qr(this.player.L())};if(L){L={};var G=this.player.L().kC;LYl(L,G?G.join(","):"")&&(r.mdxContext=L)}if(L=GDV.includes(v)?void 0:g.ML("PREF")){G=L.split(RegExp("[:&]"));for(var F=0,N=G.length;F1&&e[1].toUpperCase()==="TRUE"){H.user.lockedSafetyMode=!0;break}}r.autoCaptionsDefaultOn=l6c(L)}E=WYE.exec(E);(E=E!=null&&E.length>=2?E[1]:"")&&l&&(H.user.credentialTransferTokens= [{token:E,scope:"VIDEO"}]);E={contentPlaybackContext:r};r=this.player.getVideoData(1).getGetAdBreakContext();L=this.player.getVideoData(1).clientPlaybackNonce;G=T!==void 0?Math.round(T).toString():void 0;F=(c==null?0:c.context)?c.context:void 0;N=0;T&&d&&!c&&(d=d.end-d.start,d>0&&(N=Math.floor(d/1E3)));c=(c=Math.trunc((c?c.LV:N)*1E3))?String(c):void 0;d=this.player.NF()*1E3;d=Number.isNaN(d)?0:Math.trunc(d);Y={adBlock:Y,params:A,breakIndex:P,breakPositionMs:V,clientPlaybackNonce:L,topLevelDomain:v, isProxyAdTagRequest:U,context:H,overridePlaybackContext:E,cueProcessedMs:G,videoId:l?l:void 0,liveTargetingParams:F,breakLengthMs:c,driftFromHeadMs:d?String(d):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:r?r:void 0};return FYc(this,Y)};var toW={Dtv:"replaceUrlMacros",mkT:"onAboutThisAdPopupClosed",c$y:"executeCommand"};jTX.prototype.Dq=function(){return"adPingingEndpoint"}; jTX.prototype.Wx=function(U,Y,A){z69(this.SX.get(),U,Y,A)};Nx8.prototype.Dq=function(){return"changeEngagementPanelVisibilityAction"}; Nx8.prototype.Wx=function(U){this.U.Ev("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:U})};tNX.prototype.Dq=function(){return"loggingUrls"}; tNX.prototype.Wx=function(U,Y,A){U=g.J(U);for(var c=U.next();!c.done;c=U.next())c=c.value,z69(this.SX.get(),c.baseUrl,Y,A,c.attributionSrcMode)};g.w(BxS,g.p);g.w(mx,g.p);g.W=mx.prototype;g.W.addListener=function(U){this.listeners.push(U)}; g.W.removeListener=function(U){this.listeners=this.listeners.filter(function(Y){return Y!==U})}; g.W.E_=function(U,Y,A,c,d,T,E,L){if(U==="")$D("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(U!==this.Y||A){this.Y=U;this.FT.get().E_(U,Y,A,c,d,T,E,L);this.Gn.get().E_(U,Y,A,c,d,T,E,L);var r;(r=this.EH)==null||r.get().E_(U,Y,A,c,d,T,E,L);this.T.E_(U,Y,A,c,d,T,E,L);r=g.J(this.listeners);for(var l=r.next();!l.done;l=r.next())l.value.E_(U,Y,A,c,d,T,E,L)}else $D("Duplicate content video loaded signal")}; g.W.I_=function(){this.Y&&this.Ri(this.Y)}; g.W.Ri=function(U){this.Y=void 0;for(var Y=g.J(this.listeners),A=Y.next();!A.done;A=Y.next())A.value.Ri(U)};gE.prototype.qK=function(U,Y,A,c,d){XfX(this);this.K=!Y&&A===0;var T=this.U.getVideoData(1),E=this.U.getVideoData(2);T&&(this.contentCpn=T.clientPlaybackNonce,this.videoId=T.videoId,this.Y=T.J);E&&(this.adCpn=E.clientPlaybackNonce,this.adVideoId=E.videoId,this.adFormat=E.adFormat);this.j=U;c<=0?(XfX(this),this.K=!Y&&A===0):(this.actionType=this.K?Y?"unknown_type":"video_to_ad":Y?"ad_to_video":"ad_to_ad",this.videoStreamType=d?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.W=!0,yl("_start",this.actionType)&&a69(this)))}; gE.prototype.reset=function(){return new gE(this.U)};g.w(yr,g.p);yr.prototype.addCueRange=function(U,Y,A,c,d,T,E){T=T===void 0?3:T;E=E===void 0?1:E;this.Y.has(U)?$D("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:U}):(U=new xtv(U,Y,A,c,T),this.Y.set(U.id,{KP:U,listener:d,Lc:E}),this.U.VT([U],E))}; yr.prototype.removeCueRange=function(U){var Y=this.Y.get(U);Y?(this.U.H7([Y.KP],Y.Lc),this.Y.delete(Y.KP.id)):$D("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:U})}; yr.prototype.onCueRangeEnter=function(U){if(this.Y.has(U.id))g.M(this.Y.get(U.id)).listener.onCueRangeEnter(U.id)}; yr.prototype.onCueRangeExit=function(U){if(this.Y.has(U.id))g.M(this.Y.get(U.id)).listener.onCueRangeExit(U.id)}; g.w(xtv,g.EE);n0.prototype.addPlayerResponseForAssociation=function(U){this.U.addPlayerResponseForAssociation(U)};Du.prototype.gj=function(U){this.U.gj(U)}; Du.prototype.wX=function(U){var Y=g.SS.apply(1,arguments);U==="onAdStart"||U==="onAdEnd"?this.U.gq.apply(this.U,[U].concat(g.X(Y))):this.U.Ev.apply(this.U,[U].concat(g.X(Y)))};IL.prototype.Fl=function(U){return U&&uL(this)};var yPX=null;g.w(g93,g.l6);g93.prototype.i_=function(U){return this.Y.hasOwnProperty(U)?this.Y[U].i_():{}}; g.Ic("ytads.bulleit.getVideoMetadata",function(U){return K0().i_(U)}); g.Ic("ytads.bulleit.triggerExternalActivityEvent",function(U,Y,A){var c=K0();A=mt8(A);A!==null&&c.publish(A,{queryId:U,viewabilityString:Y})});g.W=q6.prototype;g.W.P5=function(U,Y){if(!this.Y.has(U))return{};if(Y==="seek"){Y=!1;Y=Y===void 0?!1:Y;var A=nC(UT).A5(U,{});A?IJ(A):Y&&(U=nC(UT).tZ(null,Jm(),!1,U),U.EO=3,Noc([U]));return{}}Y=Dtc(Y);if(Y===null)return{};var c=this.U.x9();if(!c)return{};var d=this.U.getPresentingPlayerType(!0);if((A=this.U.getVideoData(d))==null||!A.isAd())return{};A={opt_adElement:c,opt_fullscreen:this.FT.get().isFullscreen()};return NTY(Y,U,A)}; g.W.tv=function(U,Y,A,c,d){this.Y.has(U)&&(c<=0||d<=0||nC(UT).tv(U,Y,A,c,d))}; g.W.wP=function(U){var Y;(Y=this.Y.get(U.queryId))==null||Y.wP()}; g.W.iE=function(U){var Y;(Y=this.Y.get(U.queryId))==null||Y.iE()}; g.W.HI=function(U){var Y;(Y=this.Y.get(U.queryId))==null||Y.HI()}; g.W.XH=function(U){var Y;(Y=this.Y.get(U.queryId))==null||Y.XH()}; g.W.M_=function(U){var Y;(Y=this.Y.get(U.queryId))==null||Y.M_()};cO9.prototype.send=function(U,Y,A,c){try{dXv(this,U,Y,A,c===void 0?!1:c)}catch(d){}};g.w(Tk9,cO9);Ef9.prototype.send=function(U,Y,A,c){var d=!1;try{if(c==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||c==="ATTRIBUTION_SRC_MODE_XHR_OPTION")d=!0,U=rf8(U);c=d;var T=g.Nw(U);if(T[1]==="https")var E=U;else T[1]="https",E=jI("https",T[2],T[3],T[4],T[5],T[6],T[7]);var L=T99(E);T=[];var r;if(r=uJX(E))r=this.xE.get().U.L().experiments.lY("add_auth_headers_to_remarketing_google_dot_com_ping");if(Ll(E)||r)T.push({headerType:"USER_AUTH"}),T.push({headerType:"PLUS_PAGE_ID"}),T.push({headerType:"VISITOR_ID"}),T.push({headerType:"EOM_VISITOR_ID"}), T.push({headerType:"AUTH_USER"}),T.push({headerType:"DATASYNC_ID"});this.Y.send({baseUrl:E,scrubReferrer:L,headers:T},Y,A,c)}catch(l){}};ck.prototype.eS=function(){return this.U.eS(1)};g.w(dr,g.p);g.W=dr.prototype;g.W.fX=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.W.addListener=function(U){this.listeners.push(U)}; g.W.removeListener=function(U){this.listeners=this.listeners.filter(function(Y){return Y!==U})}; g.W.E_=function(){this.Tu.clear();this.gy=null;this.UL.get().clear()}; g.W.Ri=function(){}; g.W.DUs=function(U,Y,A,c,d){Y.videoId==="nPpU29QrbiU"&&this.U.wW("ads_ssm_vdc_s",{pt:A,dvt:U});XK(this.xE.get())&&U!=="dataloaded"||vfY(this,Y,A);if(uL(this.xE.get())&&U==="newdata"&&d!==void 0){U=this.fX();var T=Y.clientPlaybackNonce,E={};ef(this,"rte",(E.ec=T,E.xc=c==null?void 0:c.clientPlaybackNonce,E.tr=d,E.pt=A,E.ia=T!==U,E.ctp=t5(T),E));Y=Y.clientPlaybackNonce;c=c==null?void 0:c.clientPlaybackNonce;d=HXl(d);if(d!==1)if(c!==void 0)for(A=g.J(this.listeners),U=A.next();!U.done;U=A.next())U.value.Mv(c, Y,d);else $D("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:Y,transitionReason:String(d)});d=g.J(this.listeners);for(c=d.next();!c.done;c=d.next())c.value.XK(Y)}}; g.W.ppY=function(U,Y){U!==void 0&&(this.gy=U,Y===void 0?$D("Expected ad video start time on SS video changed"):this.Tu.set(U,Y));var A=this.U.getPresentingPlayerType(!0),c=this.U.getVideoData(A),d;U===void 0?d=null:d=this.UL.get().Y.get(U)||null;this.U.getVideoData(1).wW("ads_ssvc",{pt:A,cpn:c==null?void 0:c.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:Y,pid:U,slid:d==null?void 0:d.layoutId});c?vfY(this,c,A):$D("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:U})}; g.W.aC=function(U,Y){var A=U.author,c=U.clientPlaybackNonce,d=U.isListed,T=U.R5,E=U.title,L=U.IJ,r=U.P7,l=U.isMdxPlayback,P=U.Dp,V=U.mdxEnvironment,v=U.isAutonav,H=U.AU,G=U.Vz,F=U.Pf,N=U.videoId||"",e=U.profilePicture||"",B=U.DT||"",f=U.vg()||!1,h=U.b9()||!1;U=U.BT||void 0;T=this.UL.get().Y.get(T)||{layoutId:null,slotId:null};var Q=this.U.getVideoData(1),K=Q.Sc();Q=Q.getPlayerResponse();Y=1E3*this.U.getDuration(Y);var D=1E3*this.U.getDuration(1),c3,TV,U9=(Q==null?void 0:(c3=Q.playerConfig)==null? void 0:(TV=c3.daiConfig)==null?void 0:TV.enableDai)||!1,LY,q;c3=(Q==null?void 0:(LY=Q.playerConfig)==null?void 0:(q=LY.daiConfig)==null?void 0:q.enablePreroll)||!1;return Object.assign({},T,{videoId:N,author:A,clientPlaybackNonce:c,ly:Y,Y5:D,daiEnabled:U9,yn:c3,isListed:d,Sc:K,profilePicture:e,title:E,DT:B,IJ:L,P7:r,BT:U,isMdxPlayback:l,Dp:P,mdxEnvironment:V,isAutonav:v,AU:H,Vz:G,Pf:F,vg:f,b9:h})}; g.W.Tn=function(){this.listeners.length=0;this.o7=null;g.p.prototype.Tn.call(this)};g.w(TF,g.p);g.W=TF.prototype;g.W.E_=function(){var U=this;uL(this.xE.get())||(this.Y=v4(function(){U.U.Ky()||U.U.va("ad",1)}))}; g.W.Ri=function(){}; g.W.addListener=function(U){this.listeners.push(U)}; g.W.removeListener=function(U){this.listeners=this.listeners.filter(function(Y){return Y!==U})}; g.W.T7=function(){}; g.W.playVideo=function(){this.U.playVideo()}; g.W.pauseVideo=function(){this.U.pauseVideo()}; g.W.resumeVideo=function(U){this.QP(U)&&this.U.playVideo()}; g.W.QP=function(U){return this.U.getPlayerState(U)===2}; g.W.getCurrentTimeSec=function(U,Y,A){var c=this.Gn.get().gy;if(U===2&&!Y&&c!==null)return WCc(this,c);q8(this.xE.get(),"html5_ssap_use_cpn_to_get_time")||(A=void 0);return A!==void 0?this.U.getCurrentTime(U,Y,A):this.U.getCurrentTime(U,Y)}; g.W.getVolume=function(){return this.U.getVolume()}; g.W.isMuted=function(){return this.U.isMuted()}; g.W.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.W.getPlayerState=function(U){return this.U.getPlayerState(U)}; g.W.isFullscreen=function(){return this.U.isFullscreen()}; g.W.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.W.D_=function(U){this.U.D_(U)}; g.W.U5w=function(){var U=this.U.getPresentingPlayerType(!0),Y=this.getCurrentTimeSec(U,!1);if(U===2){U=g.J(this.listeners);for(var A=U.next();!A.done;A=U.next())A.value.RS(Y)}else if(U===1)for(U=g.J(this.Za),A=U.next();!A.done;A=U.next())A.value.T7(Y)}; g.W.XQY=function(U){for(var Y=g.J(this.listeners),A=Y.next();!A.done;A=Y.next())A.value.q1(U,this.getPresentingPlayerType())}; g.W.onFullscreenToggled=function(U){for(var Y=g.J(this.listeners),A=Y.next();!A.done;A=Y.next())A.value.onFullscreenToggled(U)}; g.W.onVolumeChange=function(){for(var U=g.J(this.listeners),Y=U.next();!Y.done;Y=U.next())Y.value.onVolumeChange()}; g.W.zz=function(){for(var U=this.U.isMinimized(),Y=g.J(this.listeners),A=Y.next();!A.done;A=Y.next())A.value.zz(U)}; g.W.pJ=function(U){for(var Y=g.J(this.listeners),A=Y.next();!A.done;A=Y.next())A.value.pJ(U)}; g.W.hP=function(){for(var U=this.U.Cy().U$(),Y=g.J(this.listeners),A=Y.next();!A.done;A=Y.next())A.value.jj(U)}; g.W.aJ=function(U){for(var Y=g.J(this.listeners),A=Y.next();!A.done;A=Y.next())A.value.aJ(U)}; g.W.nJ=function(){for(var U=g.J(this.listeners),Y=U.next();!Y.done;Y=U.next())Y.value.nJ()};g.w(FC4,g.p);g.w(rr,g.p);rr.prototype.Tn=function(){this.Ub.Ky()||this.Ub.get().removeListener(this);g.p.prototype.Tn.call(this)};lK.prototype.fetch=function(U){var Y=U.TO;return this.Y.fetch(U.w8,{q3:U.q3===void 0?void 0:U.q3,KP:Y,cueProcessedMs:U.cueProcessedMs===void 0?0:U.cueProcessedMs}).then(function(A){return jac(A,Y)})};g.w(Pk,g.p);g.W=Pk.prototype;g.W.addListener=function(U){this.listeners.push(U)}; g.W.removeListener=function(U){this.listeners=this.listeners.filter(function(Y){return Y!==U})}; g.W.eF=function(U){NkX(this,U,1)}; g.W.onAdUxClicked=function(U,Y){Vq(this,function(A){A.Fg(U,Y)})}; g.W.wQ=function(U){Vq(this,function(Y){Y.dL(U)})}; g.W.Mq=function(U){Vq(this,function(Y){Y.OW(U)})}; g.W.eyJ=function(U){Vq(this,function(Y){Y.FW(U)})};$b.prototype.reduce=function(U){switch(U.event){case "unknown":return}var Y=U.identifier;var A=this.Y[Y];A?Y=A:(A={Ep:null,Lx:-Infinity},Y=this.Y[Y]=A);A=U.startSecs+U.Y/1E3;if(!(A=this.Y.startSecs&&A.startSecs<=this.Y.startSecs+this.Y.LV;if(c){c=void 0;if(ky(this.xE.get())&&A.identifier!==((c=this.Y)==null?void 0:c.identifier)){var d=c=void 0,T=void 0,E=void 0;zi(this.SX.get(),"ocud","ccpi."+A.identifier+";ccpe."+A.event+";ccps."+A.startSecs+";\n ccpd."+A.LV+";pcpi."+((c=this.Y)==null?void 0: c.identifier)+";pcpe."+((d=this.Y)==null?void 0:d.event)+";\n pcps."+((T=this.Y)==null?void 0:T.startSecs)+";pcpd."+((E=this.Y)==null?void 0:E.LV)+";")}c=void 0;A.identifier!==((c=this.Y)==null?void 0:c.identifier)&&$D("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.Y=A,Xs4(this,A)}}}; g.W.Tn=function(){this.T!=null&&(this.T.unsubscribe("cuepointupdated",this.o_,this),this.T=null);this.listeners.length=0;this.j.length=0;g.p.prototype.Tn.call(this)};g.W=GF.prototype;g.W.eE=function(U,Y,A,c,d,T,E){return this.U.eE(U,Y,A,c,d,T,E)}; g.W.mQ=function(U,Y){this.U.mQ(U,Y)}; g.W.BC=function(U,Y,A){this.U.BC(U,Y,A)}; g.W.Ry=function(U){this.U.Ry(U)}; g.W.h0=function(U,Y,A,c,d,T,E){return this.U.h0(U,Y,A,c,d,T,E)}; g.W.YU=function(U){return this.U.YU(U)}; g.W.finishSegmentByCpn=function(U,Y,A){A=a4X(A);this.U.finishSegmentByCpn(U,Y,A)};g.w(Wk,g.p);g.w(sa3,g.p);g.w(f4l,g.p);g.w(h68,g.p);g.w(SQv,g.p);g.w(Ma9,g.p);g.w(psX,g.p);psX.prototype.W=function(){return this.T};g.w(Qa8,nW); Qa8.prototype.j=function(U){var Y=U.content;if(Y.componentType==="shopping-companion")switch(U.actionType){case 1:case 2:U=this.Y.getVideoData(1);this.Y.Ev("updateKevlarOrC3Companion",{contentVideoId:U&&U.videoId,shoppingCompanionCarouselRenderer:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.Y,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:this.Y.Ev("updateKevlarOrC3Companion",{})}else if(Y.componentType==="action-companion")switch(U.actionType){case 1:case 2:U=this.Y.getVideoData(1); this.Y.Ev("updateKevlarOrC3Companion",{contentVideoId:U&&U.videoId,actionCompanionAdRenderer:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.Y,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:Y.renderer&&(Y=this.Y.getVideoData(1),this.Y.Ev("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId})),this.Y.Ev("updateKevlarOrC3Companion",{})}else if(Y.componentType==="image-companion")switch(U.actionType){case 1:case 2:U=this.Y.getVideoData(1);this.Y.Ev("updateKevlarOrC3Companion", {contentVideoId:U&&U.videoId,imageCompanionAdRenderer:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.Y,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:Y=this.Y.getVideoData(1),this.Y.Ev("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId}),this.Y.Ev("updateKevlarOrC3Companion",{})}else if(Y.componentType==="top-banner-image-text-icon-buttoned")switch(U.actionType){case 1:case 2:U=this.Y.getVideoData(1);this.Y.Ev("updateKevlarOrC3Companion", {contentVideoId:U&&U.videoId,topBannerImageTextIconButtonedLayoutViewModel:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.Y,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:Y.renderer&&(Y=this.Y.getVideoData(1),this.Y.Ev("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId})),this.Y.Ev("updateKevlarOrC3Companion",{})}else if(Y.componentType==="banner-image")switch(U.actionType){case 1:case 2:U=this.Y.getVideoData(1);this.Y.Ev("updateKevlarOrC3Companion", {contentVideoId:U&&U.videoId,bannerImageLayoutViewModel:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.Y,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:Y=this.Y.getVideoData(1),this.Y.Ev("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId}),this.Y.Ev("updateKevlarOrC3Companion",{})}else if(Y.componentType==="ads-engagement-panel")switch(Y=Y.renderer,U.actionType){case 1:case 2:this.Y.Ev("updateEngagementPanelAction",Y.addAction);this.Y.Ev("changeEngagementPanelVisibility", Y.expandAction);break;case 3:this.Y.Ev("changeEngagementPanelVisibility",Y.hideAction),this.Y.Ev("updateEngagementPanelAction",Y.removeAction)}else if(Y.componentType==="ads-engagement-panel-layout"){var A=Y.renderer;switch(U.actionType){case 1:case 2:this.Y.Ev("updateEngagementPanelAction",{action:ZS(A.addAction),layoutId:Y.layoutId,onLayoutVisibleCallback:Y.Y,interactionLoggingClientData:Y.interactionLoggingClientData});this.Y.Ev("changeEngagementPanelVisibility",ZS(A.expandAction));break;case 3:this.Y.Ev("changeEngagementPanelVisibility", ZS(A.hideAction)),this.Y.Ev("updateEngagementPanelAction",{action:ZS(A.removeAction)})}}};g.w(ZXE,YD);g.W=ZXE.prototype;g.W.init=function(U,Y,A){YD.prototype.init.call(this,U,Y,A);g.MP(this.W,"stroke-dasharray","0 "+this.T);this.W.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.J.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.j.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){ch(this);YD.prototype.hide.call(this)}; g.W.show=function(){A_(this);YD.prototype.show.call(this)}; g.W.hS=function(){this.hide()}; g.W.Hm=function(){if(this.Y){var U=this.Y.getProgressState();U!=null&&U.current!=null&&g.MP(this.W,"stroke-dasharray",U.current/U.seekableEnd*this.T+" "+this.T)}};g.w(OXl,G2);g.W=OXl.prototype; g.W.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);if(Y.image&&Y.image.thumbnail)if(Y.headline)if(Y.description)if(Y.backgroundImage&&Y.backgroundImage.thumbnail)if(Y.actionButton&&g.O(Y.actionButton,g.ZK))if(U=Y.durationMilliseconds||0,typeof U!=="number"||U<=0)g.S5(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+U));else if(Y.navigationEndpoint){var c=this.api.getVideoData(2);if(c!=null){var d=Y.image.thumbnail.thumbnails;d!=null&& d.length>0&&g.HG(g.Wi(d[0].url))&&(d[0].url=c.profilePicture,g.HG(g.Wi(c.profilePicture))&&tBX("VideoPlayer",239976093,"Expected non-empty profile picture."));d=Y.backgroundImage.thumbnail.thumbnails;d!=null&&d.length>0&&g.HG(g.Wi(d[0].url))&&(d[0].url=c.SS());d=Y.headline;d!=null&&g.HG(g.Wi(d.text))&&(d.text=c.author)}this.X.init(LW("ad-image"),Y.image,A);this.J.init(LW("ad-text"),Y.headline,A);this.W.init(LW("ad-text"),Y.description,A);this.yJ.init(LW("ad-image"),Y.backgroundImage,A);c=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.J.element.classList.add("ytp-ad-action-interstitial-headline-light");this.W.element.classList.add("ytp-ad-action-interstitial-description-light");c.push("ytp-ad-action-interstitial-action-button-dark");this.api.L().T&&(c.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),c.push("ytp-ad-action-interstitial-action-button-dark"));this.api.L().S("enable_unified_action_endcap_on_web")&& !this.api.L().T&&(c.push("ytp-ad-action-interstitial-action-button-unified"),this.Ly.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.qI.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Xl.classList.add("ytp-ad-action-interstitial-card-unified"),this.Hw.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.QJ.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.J.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Uv.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.kE.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new hA(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,c);g.Z(this,this.actionButton);this.actionButton.Df(this.Ly); this.actionButton.init(LW("button"),g.O(Y.actionButton,g.ZK),A);mI(this.actionButton.element);c=nB(this.actionButton.element);yH(this.actionButton.element,c+" This link opens in new tab");this.navigationEndpoint=Y.navigationEndpoint;this.j.N(this.Uv,"click",this.rO,this);this.j.N(this.Hw,"click",this.rO,this);!this.api.L().S("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.L().T||this.j.N(this.QJ,"click",this.rO,this);this.Y=this.DX?new NG(this.api,U):new t_(U);g.Z(this,this.Y);if(Y.skipButton){(U= g.O(Y.skipButton,Qto))&&this.Y&&(this.skipButton=new Wh(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.Y,this.U2),g.Z(this,this.skipButton),this.skipButton.Df(this.element),this.skipButton.init(LW("skip-button"),U,A));if(A=Y.adBadgeRenderer)if(A=g.O(A,pGf))U=new FH(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,!0,!0),U.Df(this.kE),U.init(LW("simple-ad-badge"),A,this.macros),g.Z(this,U);if(A=Y.adInfoRenderer)if(A=g.O(A,pA))U=new qq(this.api,this.layoutId,this.interactionLoggingClientData, this.Bw,this.element,void 0,!0),U.Df(this.kE),U.init(LW("ad-info-hover-text-button"),A,this.macros),g.Z(this,U)}else Y.nonskippableOverlayRenderer&&(U=g.O(Y.nonskippableOverlayRenderer,Qa))&&this.Y&&(this.T=new Ee(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.Y,!1),g.Z(this,this.T),this.T.Df(this.element),this.T.init(LW("ad-preview"),U,A));Y.countdownRenderer&&(Y=Y.countdownRenderer,g.O(Y,ZaL)&&this.Y&&(A=new ZXE(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw, this.Y),g.Z(this,A),A.Df(this.element),A.init(LW("timed-pie-countdown"),g.O(Y,ZaL),this.macros)));this.show();this.element.focus()}else g.S5(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.S5(Error("AdActionInterstitialRenderer has no button."));else g.S5(Error("AdActionInterstitialRenderer has no background AdImage."));else g.S5(Error("AdActionInterstitialRenderer has no description AdText."));else g.S5(Error("AdActionInterstitialRenderer has no headline AdText."));else g.S5(Error("AdActionInterstitialRenderer has no image."))}; g.W.clear=function(){g.Rb(this.j);this.hide()}; g.W.show=function(){mXV(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.T&&this.T.show();G2.prototype.show.call(this)}; g.W.hide=function(){mXV(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.T&&this.T.hide();G2.prototype.hide.call(this)}; g.W.rO=function(){this.navigationEndpoint&&(this.layoutId?this.Bw.executeCommand(this.navigationEndpoint,this.layoutId):g.S5(Error("Missing layoutId for ad action interstitial.")))};var I4X={iconType:"CLOSE"},Fy=new g.xn(320,63);g.w(DXl,G2);g.W=DXl.prototype; g.W.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);this.j=Y;this.X=g.FI(this.j.onClickCommands||[]);this.kE=this.j.onErrorCommand||null;if(U=this.j.contentSupportedRenderer)U=this.j.contentSupportedRenderer,Y=this.j.adInfoRenderer||null,g.O(U,S8F)?(this.J=g.y7("ytp-ad-overlay-ad-info-button-container",this.W.element),uqY(this,Y),U=qQX(this,g.O(U,S8F))):g.O(U,MLo)?(this.J=g.y7("ytp-ad-overlay-ad-info-button-container",this.T.element),uqY(this,Y),U=C2c(this,g.O(U,MLo))):g.O(U,baT)?(this.J= g.y7("ytp-ad-overlay-ad-info-button-container",this.Y.element),uqY(this,Y),U=U4w(this,g.O(U,baT))):(g.S5(Error("InvideoOverlayAdRenderer content could not be initialized.")),U=!1);U&&(this.show(),Y9T(this,!0))}; g.W.clear=function(){Y9T(this,!1);this.Uv.reset();this.Hw=0;this.W.hide();this.logVisibility(this.W.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.Y.hide();this.logVisibility(this.Y.element,!1);this.hide();this.dispose()}; g.W.Tqw=function(){this.Ly&&(this.layoutId?this.Bw.executeCommand(this.Ly,this.layoutId):g.S5(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.W.E0=function(){a:{if(this.j&&this.j.closeButton&&this.j.closeButton.buttonRenderer){var U=this.j.closeButton.buttonRenderer;if(U.serviceEndpoint){U=[U.serviceEndpoint];break a}}U=[]}U=g.J(U);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,this.layoutId?this.Bw.executeCommand(Y,this.layoutId):g.S5(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.W.JPr=function(){this.yJ||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.W.gQ=function(){this.yJ||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.gQ("invideo-overlay")}; g.W.KHY=function(U){U.target===this.J&&g.y7("ytp-ad-button",this.qI.element).click()};g.w(A3Y,YD);g.W=A3Y.prototype;g.W.init=function(U,Y,A){YD.prototype.init.call(this,U,Y,A);U=Y.durationMs;this.W=U==null||U===0?0:U+this.Y.getProgressState().current*1E3;if(Y.text)var c=Y.text.templatedAdText;else Y.staticMessage&&(c=Y.staticMessage);this.messageText.init(LW("ad-text"),c,A);this.messageText.Df(this.T.element);this.j.show(100);this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){c3I(this,!1);YD.prototype.hide.call(this);this.T.hide();this.messageText.hide();ch(this)}; g.W.show=function(){c3I(this,!0);YD.prototype.show.call(this);A_(this);this.T.show();this.messageText.show()}; g.W.hS=function(){this.hide()}; g.W.Hm=function(){if(this.Y!=null){var U=this.Y.getProgressState();U!=null&&U.current!=null&&(U=1E3*U.current,!this.Hw&&U>=this.W?(this.j.hide(),this.Hw=!0):this.messageText&&this.messageText.isTemplated()&&(U=Math.max(0,Math.ceil((this.W-U)/1E3)),U!==this.J&&(Ue(this.messageText,{TIME_REMAINING:String(U)}),this.J=U)))}};g.w(d4I,G2);g.W=d4I.prototype; g.W.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,{});Y.image&&Y.image.thumbnail?Y.headline?Y.description?Y.actionButton&&g.O(Y.actionButton,g.ZK)?(this.W.init(LW("ad-image"),Y.image,A),this.T.init(LW("ad-text"),Y.headline,A),this.j.init(LW("ad-text"),Y.description,A),U=["ytp-ad-underlay-action-button"],this.api.L().S("use_blue_buttons_for_desktop_player_underlay")&&U.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new hA(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw, U),Y.backgroundColor&&g.MP(this.element,"background-color",g.ZP(Y.backgroundColor)),g.Z(this,this.actionButton),this.actionButton.Df(this.J),this.actionButton.init(LW("button"),g.O(Y.actionButton,g.ZK),A),Y=g.H_(this.api.L().experiments,"player_underlay_video_width_fraction"),this.api.L().S("place_shrunken_video_on_left_of_player")?(A=this.Y,g.LZ(A,"ytp-ad-underlay-left-container"),g.ou(A,"ytp-ad-underlay-right-container"),g.MP(this.Y,"margin-left",Math.round((Y+.02)*100)+"%")):(A=this.Y,g.LZ(A,"ytp-ad-underlay-right-container"), g.ou(A,"ytp-ad-underlay-left-container")),g.MP(this.Y,"width",Math.round((1-Y-.04)*100)+"%"),this.api.ME()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.CB.bind(this)),this.api.addEventListener("resize",this.nB.bind(this))):g.S5(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.S5(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.S5(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.S5(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.W.show=function(){TXo(!0);this.actionButton&&this.actionButton.show();G2.prototype.show.call(this)}; g.W.hide=function(){TXo(!1);this.actionButton&&this.actionButton.hide();G2.prototype.hide.call(this)}; g.W.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.CB.bind(this));this.api.removeEventListener("resize",this.nB.bind(this));this.hide()}; g.W.onClick=function(U){G2.prototype.onClick.call(this,U);this.actionButton&&g.dv(this.actionButton.element,U.target)&&this.api.pauseVideo()}; g.W.CB=function(U){U==="transitioning"?(this.Y.classList.remove("ytp-ad-underlay-clickable"),this.show()):U==="visible"?this.Y.classList.add("ytp-ad-underlay-clickable"):U==="hidden"&&(this.hide(),this.Y.classList.remove("ytp-ad-underlay-clickable"))}; g.W.nB=function(U){U.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):U.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.MP(this.T.element,"font-size",U.width/40+"px")};g.w(jM,G2); jM.prototype.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);Y.toggledLoggingParams&&(this.toggledLoggingParams=Y.toggledLoggingParams);Y.answer&&g.O(Y.answer,g.ZK)?(U=new hA(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),U.Df(this.answer),U.init(LW("ytp-ad-survey-answer-button"),g.O(Y.answer,g.ZK),A),U.show()):Y.answer&&g.O(Y.answer,wG)&&(this.Y=new gB(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw, ["ytp-ad-survey-answer-toggle-button"]),this.Y.Df(this.answer),g.Z(this,this.Y),this.Y.init(LW("survey-answer-button"),g.O(Y.answer,wG),A));this.show()}; jM.prototype.VO=function(U){this.layoutId?Id(this.Bw,U,this.layoutId,this.macros):(U=new g.Do("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.S5(U))}; jM.prototype.onClick=function(U){G2.prototype.onClick.call(this,U);if(this.api.L().S("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; jM.prototype.clear=function(){this.hide()};g.w(Elq,G2);Elq.prototype.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);Y.answer&&g.O(Y.answer,wG)&&(this.button=new gB(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Df(this.Y),this.button.init(LW("survey-none-of-the-above-button"),g.O(Y.answer,wG),A));this.show()};g.w(NH,hA);NH.prototype.init=function(U,Y,A){hA.prototype.init.call(this,U,Y,A);U=!1;Y.text&&(Y=g.wB(Y.text),U=!g.HG(Y));U||g.Md(Error("No submit text was present in the renderer."))}; NH.prototype.onClick=function(U){this.publish("l");hA.prototype.onClick.call(this,U)};g.w(t$,G2); t$.prototype.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);if(U=Y.skipOrPreviewRenderer)g.O(U,Pq)?(U=g.O(U,Pq),A=new iE(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.j,!0),A.Df(this.skipOrPreview),A.init(LW("skip-button"),U,this.macros),g.Z(this,A),this.Y=A):g.O(U,Qa)&&(U=g.O(U,Qa),A=new Ee(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.j,!1),A.Df(this.skipOrPreview),A.init(LW("ad-preview"),U,this.macros),A.Hw.show(100),A.show(),g.Z(this,A), this.Y=A);this.Y==null&&(U=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(Y)),g.S5(U));Y.submitButton&&(U=Y.submitButton,g.O(U,g.ZK)&&(U=g.O(U,g.ZK),A=new NH(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),A.Df(this.submitButton),A.init(LW("survey-submit"),U,this.macros),g.Z(this,A),this.T=A));if(U=Y.adBadgeRenderer)U=g.O(U,pGf),A=new FH(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,!0,!0,!0),A.Df(this.W),A.init(LW("simple-ad-badge"), U,this.macros),this.adBadge=A.element,g.Z(this,A);if(U=Y.adDurationRemaining)U=g.O(U,stw),A=new XH(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.j,void 0,!0),A.Df(this.W),A.init(LW("ad-duration-remaining"),U,this.macros),g.Z(this,A);(Y=Y.adInfoRenderer)&&g.O(Y,pA)&&(U=new qq(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.element,void 0,!0),g.Z(this,U),this.adBadge!==void 0?this.W.insertBefore(U.element,this.adBadge.nextSibling):U.Df(this.W),U.init(LW("ad-info-hover-text-button"), g.O(Y,pA),this.macros));this.show()}; t$.prototype.clear=function(){this.hide()};g.w(eM,G2);eM.prototype.init=function(U,Y,A){G2.prototype.init.call(this,U,Y,A);lcL(this)}; eM.prototype.show=function(){this.W=Date.now();G2.prototype.show.call(this)}; eM.prototype.Do=function(){};g.w(P8O,eM);g.W=P8O.prototype;g.W.init=function(U,Y,A){var c=this;eM.prototype.init.call(this,U,Y,A);Y.questionText&&olO(this,Y.questionText);Y.answers&&Y.answers.forEach(function(d,T){g.O(d,GR)&&zvz(c,g.O(d,GR),A,T)}); this.J=new Set(this.T.map(function(d){return d.Y.Y})); (U=Y.noneOfTheAbove)&&(U=g.O(U,hUF))&&VSI(this,U,A);Y.surveyAdQuestionCommon&&r3W(this,Y.surveyAdQuestionCommon);Y.submitEndpoints&&(this.submitEndpoints=Y.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()}; g.W.Do=function(){$4F(this,!1);this.j.T.subscribe("l",this.HVY,this)}; g.W.onChange=function(U){U.target===this.noneOfTheAbove.button.Y?vlL(this):this.J.has(U.target)&&(this.noneOfTheAbove.button.toggleButton(!1),$4F(this,!0))}; g.W.HVY=function(){var U=[],Y=this.T.reduce(function(d,T,E){var L=T.toggledLoggingParams;T.Y&&T.Y.isToggled()&&L&&(d.push(L),U.push(E));return d},[]).join("&"),A=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d; d=g.AF(d);d.loggingUrls=d.loggingUrls.map(function(T){T.baseUrl&&(T.baseUrl=sU(T.baseUrl,Y));return T}); return d}); if(A){A=g.J(A);for(var c=A.next();!c.done;c=A.next())c=c.value,this.layoutId?Id(this.Bw,c,this.layoutId,this.macros):g.S5(Error("Missing layoutId for multi_select_question."))}this.api.L().S("supports_multi_step_on_desktop")&&this.Hw(U)}; g.W.clear=function(){this.api.L().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(Bk,eM);Bk.prototype.init=function(U,Y,A){var c=this;eM.prototype.init.call(this,U,Y,A);Y.questionText&&olO(this,Y.questionText);Y.answers&&Y.answers.forEach(function(d,T){g.O(d,GR)&&zvz(c,g.O(d,GR),A,T)}); Y.surveyAdQuestionCommon?r3W(this,Y.surveyAdQuestionCommon):Lg(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(Y)));this.show()}; Bk.prototype.clear=function(){this.api.L().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(Xy,G2);Xy.prototype.init=function(U,Y,A){var c=this;G2.prototype.init.call(this,U,Y,A);if(this.api.L().S("supports_multi_step_on_desktop")){var d;this.conditioningRules=(d=Y.conditioningRules)!=null?d:[];var T;this.T=(T=Y.questions)!=null?T:[];var E;((E=Y.questions)==null?0:E.length)&&w3F(this,0)}else(Y.questions||[]).forEach(function(L){g.O(L,MK)?GVF(c,g.O(L,MK),A):g.O(L,S7)&&WXI(c,g.O(L,S7),A)}); this.show()}; Xy.prototype.clear=function(){this.api.L().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Xy.prototype.j=function(U){var Y=this;if(this.api.L().S("supports_multi_step_on_desktop")){var A;if((A=this.conditioningRules)==null?0:A.length){var c;if(U.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(d){return d.questionIndex===Y.Y})==null)g.S5(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(d){if(d.questionIndex===Y.Y)switch(d.condition){case "CONDITION_ALL_OF":var T;if((T=d.answerIndices)==null?0:T.every(function(L){return U.includes(L)}))c=d.nextQuestionIndex; break;case "CONDITION_ANY_OF":var E;if((E=d.answerIndices)==null?0:E.some(function(L){return U.includes(L)}))c=d.nextQuestionIndex; break;default:g.S5(Error("Expected specified condition in survey conditioning rules."))}}),c!=null)w3F(this,c); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.S5(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.w(kb,G2); kb.prototype.init=function(U,Y,A){var c=this;G2.prototype.init.call(this,U,Y,A);U=Y.timeoutSeconds||0;if(typeof U!=="number"||U<0)g.S5(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+U));else if(Y.timeoutCommands)if(Y.text)if(Y.ctaButton&&g.O(Y.ctaButton,g.ZK))if(Y.brandImage)if(Y.backgroundImage&&g.O(Y.backgroundImage,Ol)&&g.O(Y.backgroundImage,Ol).landscape){this.layoutId||g.S5(Error("Missing layoutId for survey interstitial."));iYW(this.interstitial,g.O(Y.backgroundImage, Ol).landscape);iYW(this.logoImage,Y.brandImage);g.TH(this.text,g.wB(Y.text));var d=["ytp-ad-survey-interstitial-action-button"];d.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new hA(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,d);g.Z(this,this.actionButton);this.actionButton.Df(this.T);this.actionButton.init(LW("button"),g.O(Y.ctaButton,g.ZK),A);this.actionButton.show();this.Y=new NG(this.api,U*1E3);this.Y.subscribe("g",function(){c.transition.hide()}); g.Z(this,this.Y);this.N(this.element,"click",function(T){var E=T.target===c.interstitial;T=c.actionButton.element.contains(T.target);if(E||T)if(c.transition.hide(),E)c.api.onAdUxClicked(c.componentType,c.layoutId)}); this.transition.show(100)}else g.S5(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.S5(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.S5(Error("SurveyTextInterstitialRenderer has no button."));else g.S5(Error("SurveyTextInterstitialRenderer has no text."));else g.S5(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; kb.prototype.clear=function(){this.hide()}; kb.prototype.show=function(){J3q(!0);G2.prototype.show.call(this)}; kb.prototype.hide=function(){J3q(!1);G2.prototype.hide.call(this)};g.w(RY,YD);g.W=RY.prototype; g.W.init=function(U,Y){YD.prototype.init.call(this,U,Y,{});if(Y.durationMilliseconds){if(Y.durationMilliseconds<0){g.S5(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+Y.durationMilliseconds));return}this.T=Y.durationMilliseconds}else this.T=this.Y.Nb();var A;if((A=Y.previewText)==null||!A.text||g.HG(Y.previewText.text))g.S5(Error("No text is returned for AdPreview."));else{this.J=Y.previewText;Y.previewText.isTemplated||g.TH(this.W,Y.previewText.text);var c; if(((c=this.api.getVideoData(1))==null?0:c.QB)&&Y.previewImage){var d,T;(U=((T=RC(((d=Y.previewImage)==null?void 0:d.sources)||[],52,!1))==null?void 0:T.url)||"")&&U.length?(this.previewImage=new g.Ha({D:"img",B:"ytp-preview-ad__image",V:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",U),g.Z(this,this.previewImage),this.previewImage.Df(this.element)):g.S5(Error("Failed to get imageUrl in AdPreview."))}else this.W.classList.add("ytp-preview-ad__text--padding--wide")}}; g.W.clear=function(){this.hide()}; g.W.hide=function(){ch(this);YD.prototype.hide.call(this)}; g.W.show=function(){A_(this);YD.prototype.show.call(this)}; g.W.hS=function(){this.hide()}; g.W.Hm=function(){if(this.Y){var U=this.Y.getProgressState();if(U!=null&&U.current)if(U=1E3*U.current,U>=this.T)this.transition.hide();else{var Y;if((Y=this.J)==null?0:Y.isTemplated)if(Y=Math.max(0,Math.ceil((this.T-U)/1E3)),Y!==this.j){var A,c;(U=(A=this.J)==null?void 0:(c=A.text)==null?void 0:c.replace("{TIME_REMAINING}",String(Y)))&&g.TH(this.W,U);this.j=Y}}}};g.w(aY,G2); aY.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});var A,c;if((U=((c=RC(((A=Y.image)==null?void 0:A.sources)||[],FXz(Y),!0))==null?void 0:c.url)||"")&&U.length){A=this.As("ytp-ad-avatar");A.src=U;var d,T;if(c=(d=Y.interaction)==null?void 0:(T=d.accessibility)==null?void 0:T.label)A.alt=c;switch(Y.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;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(Y.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.S5(Error("Failed to get imageUrl in AdAvatar."))}; aY.prototype.clear=function(){this.hide()}; aY.prototype.onClick=function(U){G2.prototype.onClick.call(this,U)};g.w(xb,G2); xb.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});var A;U=(A=Y.label)==null?void 0:A.content;if((A=U!=null&&!g.HG(U))||Y.iconImage){A&&(this.buttonText=new g.Ha({D:"span",B:"ytp-ad-button-vm__text",YE:U}),g.Z(this,this.buttonText),this.buttonText.Df(this.element));var c,d,T=((c=Y.interaction)==null?0:(d=c.accessibility)==null?0:d.label)||A?U:"";T&&yH(this.element,T+" This link opens in new tab");mI(this.element);if(Y.iconImage){c=void 0;if(Y.iconImage){a:{d=Y.iconImage;if(d.sources)for(d= g.J(d.sources),U=d.next();!U.done;U=d.next())if(U=U.value,T=void 0,(T=U.clientResource)==null?0:T.imageName){d=U;break a}d=void 0}if(d){var E;c={iconType:(E=d.clientResource)==null?void 0:E.imageName}}}E=fW(c,!1,this.T);E!=null&&(this.buttonIcon=new g.Ha({D:"span",B:"ytp-ad-button-vm__icon",C:[E]}),g.Z(this,this.buttonIcon),Y.iconLeading?(AD(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):A?(this.buttonIcon.Df(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Df(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(Y.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.Y?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(Y.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact"); break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.Md(Error("AdButton does not have label or an icon."))}; xb.prototype.clear=function(){this.hide()}; xb.prototype.onClick=function(U){G2.prototype.onClick.call(this,U)};g.w(jcq,YD);g.W=jcq.prototype; g.W.init=function(U,Y){YD.prototype.init.call(this,U,Y,{});this.api.L().S("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.As("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"),AD(this.As("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(U=g.O(Y.avatar,ZX)){var A=Y.headline;if(A){var c=Y.description;if(c){var d=g.O(Y.button,ml);d?(this.adAvatar.init(LW("ad-avatar"),U),this.headline.init(LW("ad-simple-attributed-string"),new RN(A)),this.description.init(LW("ad-simple-attributed-string"),new RN(c)),A.content&&A.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(LW("ad-button"),d),this.startMilliseconds=Y.startMs||0,this.api.ME()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Go.bind(this)),A_(this)):g.S5(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.S5(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.S5(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.S5(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.W.Hm=function(){if(this.Y){var U=this.Y.getProgressState();U&&U.current&&1E3*U.current>=this.startMilliseconds&&(ch(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.W.hS=function(){this.clear()}; g.W.onClick=function(U){this.api.pauseVideo();YD.prototype.onClick.call(this,U)}; g.W.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Go.bind(this))}; g.W.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();YD.prototype.show.call(this)}; g.W.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();YD.prototype.hide.call(this)}; g.W.Go=function(U){U==="hidden"?this.show():this.hide()};g.w(sh,G2);g.W=sh.prototype; g.W.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});if(!Y.label||g.HG(Y.label))g.S5(Error("No label is returned for SkipAdButton."));else if(g.TH(this.j,Y.label),U=fW({iconType:"SKIP_NEXT_NEW"}),U==null)g.S5(Error("Unable to retrieve icon for SkipAdButton"));else if(this.W=new g.Ha({D:"span",B:"ytp-skip-ad-button__icon",C:[U]}),g.Z(this,this.W),this.W.Df(this.element),this.api.L().experiments.lY("enable_skip_to_next_messaging")&&(Y=g.Wi(Y.targetId)))this.T=!0,this.element.setAttribute("data-tooltip-target-id",Y), this.element.setAttribute("data-tooltip-target-fixed","")}; g.W.onClick=function(U){U&&U.preventDefault();var Y,A;CW3(U,{contentCpn:(A=(Y=this.api.getVideoData(1))==null?void 0:Y.clientPlaybackNonce)!=null?A:""})===0?this.api.Ev("onAbnormalityDetected"):(G2.prototype.onClick.call(this,U),this.api.Ev("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.W.clear=function(){this.Y.reset();this.hide()}; g.W.hide=function(){G2.prototype.hide.call(this)}; g.W.show=function(){this.Y.start();G2.prototype.show.call(this);this.T&&this.api.L().experiments.lY("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.w(NXI,YD);g.W=NXI.prototype; g.W.init=function(U,Y){YD.prototype.init.call(this,U,Y,{});U=g.O(Y.preskipState,Izo);var A;if((A=this.api.getVideoData())==null?0:A.isDaiEnabled()){if(!U){g.S5(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.T=new RY(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.Y);g.Z(this,this.T);this.T.Df(this.element);var c;(c=this.T)==null||c.init(LW("preview-ad"),U);(A=this.T)!=null&&(A.transition.show(100),A.show())}(A=g.O(Y.skippableState,Kaz))?(Y.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=Y.skipOffsetMilliseconds:(g.Md(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.W.init(LW("skip-button"),A),this.show()):g.S5(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.W.show=function(){A_(this);YD.prototype.show.call(this)}; g.W.hide=function(){!this.isSkippable&&this.T?this.T.hide():this.W&&this.W.hide();ch(this);YD.prototype.hide.call(this)}; g.W.clear=function(){var U;(U=this.T)==null||U.clear();this.W&&this.W.clear();ch(this);YD.prototype.hide.call(this)}; g.W.hS=function(){this.hide()}; g.W.Hm=function(){if(1E3*this.Y.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var U;(U=this.T)!=null&&U.transition.hide();(U=this.W)!=null&&(U.transition.show(),U.show())}};g.w(f9,G2); f9.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});if(Y.label){var A;((A=Y.label)==null?0:A.content)&&!g.HG(Y.label.content)&&(this.linkText=new g.Ha({D:"span",B:"ytp-visit-advertiser-link__text",YE:Y.label.content}),g.Z(this,this.linkText),this.linkText.Df(this.element));var c,d;if((c=Y.interaction)==null?0:(d=c.accessibility)==null?0:d.label)yH(this.element,Y.interaction.accessibility.label+" This link opens in new tab");else{var T;((T=Y.label)==null?0:T.content)&&!g.HG(Y.label.content)&&yH(this.element, Y.label.content+" This link opens in new tab")}mI(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.S5(Error("No label found in VisitAdvertiserLink."))}; f9.prototype.onClick=function(U){G2.prototype.onClick.call(this,U);this.api.onAdUxClicked(this.componentType,this.layoutId)}; f9.prototype.clear=function(){this.hide()};g.w(h$,G2); h$.prototype.init=function(U,Y,A,c){G2.prototype.init.call(this,U,Y,{});if(Y.skipOrPreview){A=Y.skipOrPreview;U=g.O(A,q8m);A=g.O(A,Izo);if(U)this.Ki=new NXI(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.T),g.Z(this,this.Ki),this.Ki.Df(this.X),this.Ki.init(LW("skip-ad"),U);else{var d;A&&((d=this.api.getVideoData())==null?0:d.isDaiEnabled())&&(this.j=new RY(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.T,1),g.Z(this,this.j),this.j.Df(this.X),this.j.init(LW("ad-preview"), A),d=this.j,d.transition.show(100),d.show())}if(d=g.O(Y.skipOrPreview,q8m))var T=d.skipOffsetMilliseconds}Y.playerAdCard&&(d=g.O(Y.playerAdCard,uvo))&&(this.playerAdCard=new jcq(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.T),g.Z(this,this.playerAdCard),this.playerAdCard.Df(this.QJ),this.playerAdCard.init(LW("ad-avatar-lockup-card"),d));Y.adBadgeRenderer&&((d=g.O(Y.adBadgeRenderer,Oh))?(this.W=new xD(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,!0),g.Z(this, this.W),this.W.Df(this.Y),this.W.init(LW("ad-badge"),d)):g.S5(Error("AdBadgeViewModel is not found in player overlay layout.")));Y.adPodIndex&&(d=g.O(Y.adPodIndex,gRo))&&(this.adPodIndex=new se(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,this.adPodIndex),this.adPodIndex.Df(this.Y),this.adPodIndex.init(LW("ad-pod-index"),d));Y.adInfoRenderer&&((d=g.O(Y.adInfoRenderer,pA))?(this.adInfoButton=new qq(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.element, void 0,!0),g.Z(this,this.adInfoButton),this.W!==void 0?this.Y.insertBefore(this.adInfoButton.element,this.W.element.nextSibling):this.adInfoButton.Df(this.Y),this.adInfoButton.init(LW("ad-info-hover-text-button"),d,this.macros)):g.Md(Error("AdInfoRenderer is not found in player overlay layout.")));var E;d=(E=this.api.getVideoData())==null?void 0:E.isDaiEnabled();Y.adDurationRemaining&&d&&(E=g.O(Y.adDurationRemaining,stw))&&(this.adDurationRemaining=new XH(this.api,this.layoutId,this.interactionLoggingClientData, this.Bw,this.T,c.videoAdDurationSeconds,!0),g.Z(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.Y.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.Df(this.Y),this.adDurationRemaining.init(LW("ad-duration-remaining"),E,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));Y.visitAdvertiserLink&&(c=g.O(Y.visitAdvertiserLink,UsT))&&(this.visitAdvertiserLink=new f9(this.api,this.layoutId, this.interactionLoggingClientData,this.Bw),g.Z(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Df(this.Y),this.visitAdvertiserLink.init(LW("visit-advertiser-link"),c));Y.adDisclosureBanner&&(Y=g.O(Y.adDisclosureBanner,mVT))&&(this.adDisclosureBanner=new fV(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,this.adDisclosureBanner),this.adDisclosureBanner.Df(this.Hw),this.adDisclosureBanner.init(LW("ad-disclosure-banner"),Y));this.J=new MG(this.api,this.T,T,!0);g.Z(this, this.J);g.S4(this.api,this.J.element,4);this.show()}; h$.prototype.clear=function(){this.hide()};g.w(tSz,G2);g.W=tSz.prototype; g.W.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});if(Y!=null&&Y.title)if(U=Y.title)if(this.headline.init(LW("ad-simple-attributed-string"),new RN(U)),U=g.O(Y.moreInfoButton,ml)){if(this.moreInfoButton.init(LW("ad-button"),U),Y.descriptions)Y.descriptions.length>0&&(U=Y.descriptions[0])&&(this.Y=new aN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,this.Y),this.Y.Df(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Y.init(LW("ad-simple-attributed-string"), new RN(U))),Y.descriptions.length>1&&(Y=Y.descriptions[1])&&(this.T=new aN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,this.T),this.T.Df(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.T.init(LW("ad-simple-attributed-string"),new RN(Y)))}else g.S5(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.S5(Error("No headline found in AdGridCardText."));else g.S5(Error("No headline found in AdGridCardText."))}; g.W.onClick=function(U){G2.prototype.onClick.call(this,U);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.W.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var U;(U=this.Y)==null||U.clear();var Y;(Y=this.T)==null||Y.clear()}; g.W.hide=function(){this.headline.hide();this.moreInfoButton.hide();var U;(U=this.Y)==null||U.hide();var Y;(Y=this.T)==null||Y.hide();G2.prototype.hide.call(this)}; g.W.show=function(){G2.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var U;(U=this.Y)==null||U.show();var Y;(Y=this.T)==null||Y.show()};g.w(SM,G2);SM.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});if(Y!=null&&Y.gridCards)if(Y.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.S5(Error("Only single column style is currently supported in AdGridCardCollection."));else for(U=g.J(Y.gridCards),Y=U.next();!Y.done;Y=U.next()){if(Y=g.O(Y.value,DVF)){var A=new tSz(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,A);A.Df(this.element);A.init(LW("ad-grid-card-text"),Y);this.Y.push(A)}}else g.S5(Error("No grid cards found in AdGridCardCollection."))}; SM.prototype.show=function(){for(var U=g.J(this.Y),Y=U.next();!Y.done;Y=U.next())Y.value.show();G2.prototype.show.call(this)}; SM.prototype.clear=function(){this.hide();for(var U=g.J(this.Y),Y=U.next();!Y.done;Y=U.next())Y.value.clear()}; SM.prototype.hide=function(){for(var U=g.J(this.Y),Y=U.next();!Y.done;Y=U.next())Y.value.hide();G2.prototype.hide.call(this)};g.w(MH,YD);g.W=MH.prototype;g.W.init=function(U,Y,A,c,d){d=d===void 0?0:d;YD.prototype.init.call(this,U,Y,A,c);this.playerProgressOffsetMs=d;A_(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.qg.bind(this));this.api.addEventListener("resize",this.yY.bind(this));this.api.ME()?(this.T=!0,this.api.D_(!0),this.show()):this.hide()}; g.W.Hm=function(){if(this.Y){var U=this.Y.getProgressState();U&&U.current&&!this.T&&1E3*U.current>=this.playerProgressOffsetMs&&(this.T=!0,this.api.D_(!0),this.show())}}; g.W.hS=function(){this.T&&this.api.D_(!1);this.hide()}; g.W.clear=function(){this.api.D_(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.qg.bind(this));this.api.removeEventListener("resize",this.yY.bind(this));ch(this);this.hide()}; g.W.hide=function(){evj(!1);YD.prototype.hide.call(this)}; g.W.show=function(){evj(!0);YD.prototype.show.call(this)};g.w(BXj,MH);g.W=BXj.prototype; g.W.init=function(U,Y,A,c){if(Y!=null&&Y.adGridCardCollection)if(Y!=null&&Y.adButton){var d=Number(Y.playerProgressOffsetMs||"0");isNaN(d)?MH.prototype.init.call(this,U,Y,A,c):MH.prototype.init.call(this,U,Y,A,c,d);U=Y.headline;A=g.O(Y.adAvatar,ZX);U&&A?(this.headline=new aN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,this.headline),this.headline.Df(this.As("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(LW("ad-simple-attributed-string"),new RN(U)), this.adAvatar=new aY(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,this.adAvatar),this.adAvatar.Df(this.As("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(LW("ad-avatar"),A)):this.j.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");U=g.O(Y.adGridCardCollection,nRj);this.adGridCardCollection.init(LW("ad-grid-card-collection"),U);Y=g.O(Y.adButton,ml);this.adButton.init(LW("ad-button"),Y); this.hide()}else g.S5(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.S5(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.W.onClick=function(U){(this.adButton&&g.dv(this.adButton.element,U.target)||this.adAvatar&&g.dv(this.adAvatar.element,U.target))&&this.api.pauseVideo();MH.prototype.onClick.call(this,U);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.W.yY=function(){}; g.W.clear=function(){this.hide();var U;(U=this.headline)==null||U.clear();var Y;(Y=this.adAvatar)==null||Y.clear();this.adGridCardCollection.clear();this.adButton.clear();MH.prototype.clear.call(this)}; g.W.show=function(){var U;(U=this.headline)==null||U.show();var Y;(Y=this.adAvatar)==null||Y.show();this.adGridCardCollection.show();this.adButton.show();MH.prototype.show.call(this)}; g.W.hide=function(){var U;(U=this.headline)==null||U.hide();var Y;(Y=this.adAvatar)==null||Y.hide();this.adGridCardCollection.hide();this.adButton.hide();MH.prototype.hide.call(this)}; g.W.qg=function(U){U==="transitioning"?(this.W.classList.remove("ytp-ad-underlay-clickable"),this.show()):U==="visible"?this.W.classList.add("ytp-ad-underlay-clickable"):U==="hidden"&&(this.hide(),this.W.classList.remove("ytp-ad-underlay-clickable"))};g.w(bK,G2); bK.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});if(Y.attributes===void 0)g.S5(Error("No attributes found in AdDetailsLineViewModel."));else if(Y.style===void 0)g.S5(Error("No style found in AdDetailsLineViewModel."));else{U=g.J(Y.attributes);for(var A=U.next();!A.done;A=U.next())if(A=A.value,A.text!==void 0){A=A.text;var c=Y.style,d=new aN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,d);d.Df(this.element);a:switch(c){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":c="ytp-ad-details-line__text--style-responsive"; break a;default:c="ytp-ad-details-line__text--style-standard"}d.element.classList.add(c);d.init(LW("ad-simple-attributed-string"),new RN(A));this.Y.push(d)}this.show()}}; bK.prototype.show=function(){this.Y.forEach(function(U){U.show()}); G2.prototype.show.call(this)}; bK.prototype.clear=function(){this.hide()}; bK.prototype.hide=function(){this.Y.forEach(function(U){U.hide()}); G2.prototype.hide.call(this)};g.w(p9,G2);p9.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});var A,c;(U=((c=RC(((A=Y.image)==null?void 0:A.sources)||[]))==null?void 0:c.url)||"")&&U.length?(A=this.As("ytp-image-background-image"),g.MP(A,"backgroundImage","url("+U+")"),Y.blurLevel!==void 0&&g.MP(A,"filter","blur("+Y.blurLevel+"px)"),Y.gradient!==void 0&&(Y=new g.n({D:"div",Iv:["ytp-image-background--gradient-vertical"]}),g.Z(this,Y),Y.Df(this.element)),this.show()):g.S5(Error("Failed to get imageUrl in ImageBackground."))}; p9.prototype.clear=function(){this.hide()};g.w(X3T,YD);g.W=X3T.prototype;g.W.init=function(U,Y){YD.prototype.init.call(this,U,Y,{});g.MP(this.W,"stroke-dasharray","0 "+this.T);this.show()}; g.W.clear=function(){this.hide()}; g.W.hide=function(){ch(this);YD.prototype.hide.call(this)}; g.W.show=function(){A_(this);YD.prototype.show.call(this)}; g.W.hS=function(){this.hide()}; g.W.Hm=function(){if(this.Y){var U=this.Y.getProgressState();U!=null&&U.current!=null&&g.MP(this.W,"stroke-dasharray",U.current/U.seekableEnd*this.T+" "+this.T)}};g.w(Qq,G2); Qq.prototype.init=function(U,Y){G2.prototype.init.call(this,U,Y,{});if(RvW(Y)){this.adAvatar=new aY(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,this.adAvatar);this.adAvatar.Df(this.As("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(LW("ad-avatar"),g.O(Y.adAvatar,ZX));this.headline=new aN(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw);g.Z(this,this.headline);this.headline.Df(this.As("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); this.headline.init(LW("ad-simple-attributed-string"),new RN(Y.headline));if(U=g.O(Y.adDetailsLine,Oaj))this.detailsLine=new bK(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,this.detailsLine),this.detailsLine.Df(this.As("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(LW("ad-details-line"),U);this.adButton=new xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,!0);g.Z(this,this.adButton); this.adButton.Df(this.As("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(LW("ad-button"),g.O(Y.adButton,ml));this.adBadge=new xD(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,!0);g.Z(this,this.adBadge);this.adBadge.Df(this.j);this.adBadge.init(LW("ad-badge"),g.O(Y.adBadge,Oh));this.adInfoButton=new qq(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.element,void 0,!0);g.Z(this,this.adInfoButton);this.adInfoButton.Df(this.j); this.adInfoButton.init(LW("ad-info-hover-text-button"),g.O(Y.adInfoRenderer,pA),this.macros);if(U=g.O(Y.skipAdButton,Kaz))this.skipAdButton=new sh(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,this.skipAdButton),this.skipAdButton.Df(this.element),this.skipAdButton.init(LW("skip-button"),U);this.T=new t_(Y.durationMilliseconds);g.Z(this,this.T);if(U=g.O(Y.countdownViewModel,Chf))this.Y=new X3T(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw,this.T),g.Z(this, this.Y),this.Y.Df(this.As("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Y.init(LW("timed-pie-countdown"),U);if(Y=g.O(Y.imageBackground,yFW))this.imageBackground=new p9(this.api,this.layoutId,this.interactionLoggingClientData,this.Bw),g.Z(this,this.imageBackground),this.imageBackground.Df(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(LW("image-background"), Y);this.show();this.element.focus()}}; Qq.prototype.clear=function(){g.Rb(this.W);this.hide()}; Qq.prototype.show=function(){kVI(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();G2.prototype.show.call(this)}; Qq.prototype.hide=function(){kVI(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.Y&&this.Y.hide();this.imageBackground&&this.imageBackground.hide();G2.prototype.hide.call(this)};g.w(gr,g.l6);g.W=gr.prototype;g.W.Nb=function(){return 1E3*this.api.getDuration(this.Lc,!1)}; g.W.stop=function(){this.Y&&this.Yr.FY(this.Y)}; g.W.ya=function(){var U=this.api.getProgressState(this.Lc);this.T={seekableStart:U.seekableStart,seekableEnd:U.seekableEnd,current:this.api.getCurrentTime(this.Lc,!1)};this.publish("h")}; g.W.getProgressState=function(){return this.T}; g.W.Ce=function(U){g.Gg(U,2)&&this.publish("g")};var eEF="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.w(yq,nW); yq.prototype.j=function(U){var Y=U.id,A=U.content,c=A.componentType;if(!eEF.includes(c))switch(U.actionType){case 1:U=this.api;var d=this.Bw,T=A.layoutId,E=A.interactionLoggingClientData,L=A instanceof qr?A.DX:!1,r=A instanceof qr||A instanceof jR?A.U2:!1;E=E===void 0?{}:E;L=L===void 0?!1:L;r=r===void 0?!1:r;switch(c){case "invideo-overlay":U=new DXl(U,T,E,d);break;case "player-overlay":U=new bE(U,T,E,d,new gr(U),r);break;case "player-overlay-layout":U=new h$(U,T,E,d,new gr(U));break;case "survey":U= new Xy(U,T,E,d);break;case "ad-action-interstitial":U=new OXl(U,T,E,d,L,r);break;case "video-interstitial-buttoned-centered":U=new Qq(U,T,E,d);break;case "survey-interstitial":U=new kb(U,T,E,d);break;case "ad-message":U=new A3Y(U,T,E,d,new gr(U,1));break;case "player-underlay":U=new d4I(U,T,E,d);break;case "display-underlay-text-grid-cards":U=new BXj(U,T,E,d,new gr(U));break;default:U=null}if(!U){g.Md(Error("No UI component returned from ComponentFactory for type: "+c));break}g.Df(this.T,Y)?g.Md(Error("Ad UI component already registered: "+ Y)):this.T[Y]=U;U.bind(A);A instanceof un?this.W?this.W.append(U.Nw):g.Md(Error("Underlay view was not created but UnderlayRenderer was created")):this.K.append(U.Nw);break;case 2:Y=acm(this,U);if(Y==null)break;Y.bind(A);break;case 3:A=acm(this,U),A!=null&&(g.P7(A),g.Df(this.T,Y)?(A=this.T,Y in A&&delete A[Y]):g.Md(Error("Ad UI component does not exist: "+Y)))}}; yq.prototype.Tn=function(){g.VM(Object.values(this.T));this.T={};nW.prototype.Tn.call(this)};g.w(x4Y,g.lj);g.W=x4Y.prototype;g.W.create=function(){try{scY(this),this.load(),this.created=!0,scY(this)}catch(U){$D(U instanceof Error?U:String(U))}}; g.W.load=function(){try{S9o(this)}finally{uL(iK(this.Y).bL)&&this.player.va("ad",1)}}; g.W.destroy=function(){var U=this.player.getVideoData(1);this.Y.Y.Yu.Ri(U&&U.clientPlaybackNonce||"");this.unload();this.created=!1}; g.W.unload=function(){g.lj.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(Y){$D(Y instanceof Error?Y:String(Y))}if(this.T!=null){var U=this.T;this.T=null;U.dispose()}this.W.reset()}; g.W.Hi=function(){return!1}; g.W.getAdState=function(){return-1}; g.W.getOptions=function(){return Object.values(toW)}; g.W.W5=function(U,Y){Y=Y===void 0?{}:Y;switch(U){case "replaceUrlMacros":return U=Y,U.url?(Y=qfX(this.player),Object.assign(Y,U.kyX),U=g.kC(U.url,Y)):U=null,U;case "onAboutThisAdPopupClosed":this.qR(Y);break;case "executeCommand":U=Y;U.command&&U.layoutId&&this.executeCommand(U);break;default:return null}}; g.W.qO=function(U){var Y;return!((Y=this.Y.Y.EH)==null||!Y.get().qO(U))}; g.W.qR=function(U){U.isMuted&&H$E(iK(this.Y).CX,iK(this.Y).Kc,U.layoutId);this.GA&&this.GA.qR()}; g.W.executeCommand=function(U){iK(this.Y).Bw.executeCommand(U.command,U.layoutId)};g.Ic("yt.player.Application.create",g.vv.create);g.Ic("yt.player.Application.createAlternate",g.vv.create);SI3(xs(),Nao);var BaF=g.u8("ytcsi.tick");BaF&&BaF("pe");g.rH("ad",x4Y);g.w(g.IY,g.p);g.IY.prototype.start=function(U,Y,A){this.config={from:U,to:Y,duration:A,startTime:(0,g.y)()};this.next()}; g.IY.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.IY.prototype.next=function(){if(this.config){var U=this.config,Y=U.from,A=U.to,c=U.duration;U=U.startTime;var d=(0,g.y)()-U;U=this.Y;c=m39(U,d/c);if(c==0)U=U.G;else if(c==1)U=U.Z;else{d=kn(U.G,U.K,c);var T=kn(U.K,U.J,c);U=kn(U.J,U.Z,c);d=kn(d,T,c);T=kn(T,U,c);U=kn(d,T,c)}U=g.Bi(U,0,1);this.callback(Y+(A-Y)*U);U<1&&this.delay.start()}};g.w(g.uK,g.n);g.W=g.uK.prototype;g.W.hasSuggestions=function(){return this.suggestionData.length>0}; g.W.Vi=function(){this.T&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.W.show=function(){g.n.prototype.show.call(this);OYY(this)}; g.W.Xd=function(){this.T&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.W.T$=function(){this.hP(this.api.Cy().getPlayerSize())}; g.W.hP=function(U){var Y=this.api.isEmbedsShortsMode()?.5625:16/9,A=this.api.yG();U=U.width-(A?112:58);A=Math.ceil(U/(A?320:192));var c=(U-A*8)/A;Y=Math.floor(c/Y);for(var d=g.J(this.Y),T=d.next();!T.done;T=d.next())T=T.value.As("ytp-suggestion-image"),T.style.width=c+"px",T.style.height=Y+"px";this.suggestions.element.style.height=Y+"px";this.j=c;this.Z=Y;this.containerWidth=U;this.columns=A;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.K9(this)}; g.W.onVideoDataChange=function(){var U=this.api.L(),Y=g.M(this.api.getVideoData());this.J=Y.ET?!1:U.j;this.suggestionData=Y.suggestions?g.fu(Y.suggestions,function(A){return A&&!A.playlistId}):[]; glI(this);Y.ET?this.title.update({title:g.wl("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:Y.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"})}; g.W.scrollTo=function(U){U=g.Bi(U,this.containerWidth-this.suggestionData.length*(this.j+8),0);this.G.start(this.scrollPosition,U,1E3);this.scrollPosition=U;g.K9(this);OYY(this)};})(_yt_player);