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 q=";redirector.googlevideo.com;set;path;file;1;cmo=pf;=;startsWith;W;1970-01-01T02:30:04.000+02:30;scheme;length;join;Y;prototype;switch;&;/videoplayback;match;splice;split;qn;zL;cmo=;r;://;indexOf;url;reverse;cmo=td;get;n;slice;push;fromCharCode;replace;/;N;clone;)(,,);fallback_count;Xd;QP;unshift;---;/initplayback;O2;1969-12-31T16:01:05.000-08:00;s;https://local;Untrusted URL;signatureCipher;local;toString;,;1970-01-01T02:00:06.000+02:00;,,/,\u222a;Rt;undefined;youtube.player.web_20250811_21_RC00;V;rr?[1-9].*\\.c\\.youtube\\.com$;:;1969-12-31T21:15:43.000-02:45;1970-01-01T11:00:43.000+11:00;rr;/file/index.m3u8;\\.a1\\.googlevideo\\.com$;pow;pop;cmo;1970-01-01T11:29:59.000+11:30;?;http://local;forEach;%3D;/api/manifest;\\.googlevideo\\.com$;1970-01-01T01:15:16.000+01:15;mn;fvip;www.youtube.com;4pGEICYLjwo2J4Bp-H-_w8_;index.m3u8;sp;assign;a1.googlevideo.com;playerfallback;//".split(";"), Gi,XlC,Q0w,kT,RUG,ZVG,HV7,Pl,qCX,sC,Ti,KV,ey,wlU,hUe,VZ,I0,Lwl,dX,kiC,pV,yZ,YCC,DG,Ne,AG,$T,vl,j07,JG,SZ,My7,oTZ,uSV,MS,P7C,s0X,od,TXU,KwC,T3,rGT,aGG,VH,ETZ,DV,xeX,OV7,yH,zUS,cGU,gT0,UeZ,iL,Q2,lGC,BXV,H$,jG,Fwy,Tn,Kz,eG,rg,aB,El,Vyy,x7,Ol,c$,IGC,WwG,Ul,ple,Fm,ti,y2,Nn,Ai,nz,yG0,fGw,$7,v$,bY,Dei,NXS,AGS,nTC,bVe,iY,G9,XH,Qo,R$,Ho,qq,G30,hC,Yi,jS,Mq,m3,uA,Po,Xn0,sr,T9,rZ,Rkl,Svl,ZaX,a$,xi,Or,gZ,Ur,Bo,FH,jd7,MZG,mSe,o4w,CT,uGi,tC,Vo,I$,PLX,dZ,sdG,Koy,fT,Nq,$i,vo,JC,aVU,rOS,cOC,OaV,Se,ZN,Ls,BHS,CLe,Fo7, Yh,MP,tZU,je,sM,Xp,IVC,VZG,OM,xh,Gt,dSV,zt,gy,cq,WoS,lE,pn7,Fp,Cs,tj,V7,IL,dy,Wq,y7,fs,ns,$h,Jj,fVU,NH0,DSe,AOU,n4V,SV,Zr,H1,baw,qB,v47,w1,JOC,hv,Lt,GnC,X$T,SlU,QBX,w$i,jV,qlS,Zze,MB,m8,hsC,oh,LFe,uK,YlC,knX,jBG,MGw,Kt,eV,mnS,o7S,umV,r1,ah,PYy,esZ,Eo,rii,aRw,ciy,c1,zsG,E70,UnS,FFe,Uo,B1,Ct,FD,CYG,tv,Vj,Ih,pt,yj,ft,NB,p$y,Av,yiV,$N,GR,NgC,R7,ZS,qp,AiX,HL,n7w,$ni,wf,SL,hu,Ly,bzV,kw,jL,Jil,Mp,mG,o7,Xoi,rf,Q$T,RVw,Srw,ZTy,eL,Ky,sK,izw,G9C,HTl,woX,hV0,L37,xw,OK,zR,k9G,UK,BL,F0,Cy,YrX,MSU,df,mqT,yf,py, TZZ,DS,fy,eVy,abw,ny,Np,Eil,$w,bu,vL,Au,iu,Ju,XM,G4,HX,xqG,Q$,St,q5,OTi,w8,zVe,h6,LS,M5,mn,oS,ku,jt,Yu,et,cCw,r8,giV,aS,lbw,EJ,BZS,xu,Ze,OJ,z4,cX,CAi,g8,UJ,BX,FM,CS,t6,V$,IS,d8,WX,y$,pS,fS,De,N5,A6,nS,tST,IbV,bN,dqV,W3l,poe,J6,iN,kV,fbC,YV,NZG,jo,niV,Mm,mH,ov,$qy,uZ,bTC,Pb,viX,JCS,sN,iT7,T6,KO,eo,Gte,av,EN,QLG,z6,ZsX,XqT,cb,UN,lZ,wq7,HsS,Fa,t3,hmw,kty,YM7,d7,D8,Nm,A3,$V,bZ,vb,mPT,ohi,upT,sLi,TyC,KlG,iZ,G2,emw,Xb,rjZ,aNl,xPT,ghl,QR,UPl,lN7,ByG,Fl7,CEU,ZW,tel,qE,INw,L0,ka,WlV,Ya,j5,ME,pqV,yjZ,uz,Pi, K0,e5,DPG,NyG,AjU,z2,Ox,xa,nhy,$PX,bsV,ci,ge,Ux,JjT,tN,VR,GXy,X1e,QhC,In,de,Rb7,Sow,Wi,Ztl,Hty,qoT,w1w,DW,yR,NE,AN,n0,hbZ,L8T,kXl,$a,bz,Yo0,vi,jhU,MVS,mBi,JN,oNe,iz,Gs,uD7,PKT,shl,T1l,K8C,ebX,RX,Sl,Zm,qx,EN7,wJ,h5,xBS,ar7,HY,Ote,LA,ko,Yo,Mx,jl,zbX,cvS,gNX,mt,lrT,oX,F8y,CKy,FG7,CuC,tL7,VLU,IST,dpZ,rJ,aX,En,pLZ,WGG,yuG,fSG,On,Dpi,zs,NfG,Auw,cY,gJ,Un,nwX,l_,BY,$p7,Fh,t5,V0,IX,dJ,WY,pA,y0,byl,vwU,Ju7,iye,fA,G4w,QS7,XXS,Nx,A5,SJl,Riy,qJT,Lne,hiX,nA,k4T,YJi,jSl,m5Z,MtG,ouT,$o,uMl,PNy,vY,sSC,T8S,KnV,eiV, J5,r6C,i_,aeS,GH,XC,x5X,Qr,OSC,RY,SD,zi0,c6l,Zi,qZ,U5l,wl,gu0,lew,B8e,Fnl,ttC,hW,Vte,YR,jD,d5C,WnC,fei,D5y,MZ,mz,oY,u8,Pk,sO,TH,K3,eD,rl,aY,EO,xR,$5X,nuG,bSw,J6X,vuU,G6T,A6Z,iSG,N8l,OO,zH,QvG,RPG,SN7,l8,Bk,IY,ck,HOX,dl,XbS,wbw,hPZ,qNl,Wk,p3,yr,f3,LHX,ZOG,k6C,Di,YNl,jvU,MoU,mmy,oVT,svT,T7i,KHw,ePe,NZ,AW,r3l,a8T,OOV,zPy,n3,b8,gVS,vk,$R,l8V,Um7,B7i,FHC,CZS,i8,GQ,tol,Vow,I8Z,dmS,WHw,pbU,y3X,f80,Dm0,N7w,Q3,RV,SW,Zx,Hs,qv,A3Z,bO0,vVT,J3G,G2G,iOG,XiG,LM,kF,QnS,R0e,Sxe,YF,jW,Mv,mK,oV,us,Ps,sZ,Z0C,KM,qxS, rF,wiT,h0l,aV,EZ,xF,zQ,OZ,LN0,YxX,cs,J3,PEV,FJ,jnX,M5e,CM,mEC,Bs,ubG,oaV,ls,tV,V3,Pzw,sn0,Tei,KNV,IV,e00,dF,$mG,nVX,Ws,pM,fM,Dx,EaV,Nv,AV,$F,xEC,O0G,bs,lWV,Xq,cNi,UEC,is,JV,L4,kk,Bew,MJ,FN7,ma,oJ,Czl,V5S,dET,xk,za,fWU,DE7,NeT,cp,b07,Ta,pil,JN7,$EV,AN0,naZ,i0i,vaT,Uy,Fq,XYS,QXw,Rjy,SnZ,ZAS,tJ,HAV,IJ,qnG,LtC,kse,dD,jX0,mxZ,MlS,oo7,p4,D5,$k,vp,JJ,iD,GI,XA,sXC,TJi,Kt7,QV,RC,bD,SY,ZY,Hg,JW,qf,ejC,hl,Eoe,Le,k$,OAZ,xxZ,zjG,c5l,goS,Y$,UxZ,lmy,BJV,jY,Mf,C_G,Ime,dxe,mc,fm7,y5V,Dxw,NJG,A57,oC,noX,WtX,uw,$xS, bA0,Pg,J5i,iAC,GHV,Xki,QYU,Ke,RQy,SOT,Z3G,H30,hQ7,qOe,eY,rh,aC,Ew,x$,Ow,zI,cg,Lze,Uw,gh,kHX,Bg,MDZ,lw,mZi,oRV,Kz0,uCw,P8C,sYy,TlG,FA,Ce,tl,eQZ,VV,IC,dh,Wg,pe,yV,O3U,rWw,Al,xZZ,ne,ERw,Nf,fe,aiU,DY,bw,cWZ,Jl,vg,gRi,UZ0,lil,Rr,Sv,HW,C8i,ZA,hx,tDU,LU,BlG,dZG,Wzi,pkS,jv,MO,mR,yWU,or,uv,PW,Tq,fi7,KU,ev,rv,DZ0,NlS,ar,AWS,Vly,$ZU,b3U,vRC,JWe,GQi,nRV,Xse,SZC,xx,zq,HMV,qZV,wsG,LKy,kQC,h2w,gv,mvZ,MWC,Uu,BW,uJX,lv,PsU,CU,sVl,tx,Ir,dv,TFX,KKV,$x,e27,vW,rVC,axZ,HJ,EFi,OMZ,qA,z2U,cVX,FK0,gFG,kg,Yg,j_,m_,ot,dve, uI,PJ,s_,psX,e_,yVV,fxS,rC,NFy,E_,xg,O_,zk,AVi,cJ,U_,lI,BJ,Fj,nFw,$vG,bMX,tZ,VD,It,dC,WJ,pd,vFU,JVC,iM7,Gay,XpS,QJC,yD,RWX,bI,SyX,Z47,H4V,vJ,iI,G0,Xr,Sp,Zo,HO,wpG,hD,Lc,kr,hWi,La7,Yr,kaG,Yye,MV,TDG,KaT,eWC,my,rJi,a5X,O40,ub,cJl,zWG,gkU,l5y,BDZ,T0,Kc,FaU,ep,ri,aZ,EI,xr,OI,z0,cO,gi,UI,lb,BO,Fr,Cc,CDX,tdZ,VdV,di,pc,I5T,NV,AD,nc,$r,bb,JD,ib,yJw,G_,XB,Q9,DJC,f57,dJy,Zz,Sg,$JG,HT,mW,YD,om,uX,vkC,sh,XgS,i4y,GI0,RyG,wgU,SwS,Hey,qwV,b4V,Ki,T_,LcV,rp,am,Eh,kIV,Uh,Ywe,lX,BT,FB,t8,jCS,Im,dp,MYU,WT,pi,o$y,Dz, A8,ni,$D,bX,vT,J8,iX,GJ,X1,Pw7,Qy,Z$,S8,ThG,aY7,eyZ,rlT,E$U,xfw,zyG,clZ,Oee,Ufl,wo,h7,YL,lYS,BhS,kL,j8,Cwy,tYG,WcX,dfT,ua,PA,s5,TJ,KZ,ylG,fYS,cA,go,Dfw,NhG,All,CZ,t7,Vy,n$U,$fG,v$S,iee,yy,GqU,NM,fZ,$L,ba,J7,XWZ,Z6,HI,qT,wb,Ll,k_,jU,HUG,quZ,m$,wWZ,hSG,uq,LRT,kqU,PI,se,YuS,jrT,mOV,Kl,aq,utT,PvU,eU,srT,Tv7,eSZ,KR0,zB,oxS,aAC,ExG,FE,lq,xOG,OUS,Cl,t$,zST,cxU,db,gxV,UOG,lAV,BvV,D6,FRe,Cv7,tvG,VvV,IAS,dOZ,WR7,pWU,A$,yxS,$_,DOe,NvG,Axy,nxe,$Ol,bq,QB,vx7,Gke,Si,XJG,ReS,bUy,S_l,ZdX,Hd7,Jxi,iUV,vI,J$,XQ,Qti, Gw,iq,q_T,wJ7,he0,L_e,kkC,Y_X,uj7,jte,wW,hs,kQ,TCX,rZS,ee0,LH,M4,aww,uC,Egi,OdG,ei,xAG,t_S,ze7,CIl,xQ,V_T,W_0,O3,E3,Iw7,dAS,pJi,ce,fwZ,DAG,NCV,AZl,ngS,$AV,bdZ,yZS,JZX,idV,G0Z,QZS,XOi,SIl,Be,ZcX,FQ,CH,ts,HcV,qIC,dW,We,h4Z,wOl,pH,LyG,YIG,Mp0,jZZ,mVw,Pby,orX,iC,HR,ZD,sZ7,Sh,qt,wE,hg,L7,TiT,YG,e4C,m5,Mt,u6,PR,sT,TY,rDl,K7,rE,aoy,ET,xVG,OT,zY,Oci,z4C,cDC,gr0,cR,UT,UV0,l6,BR,FV,BiX,C7,tg,FyS,If,p7,WR,dE,y6,f7,Vp0,foG,Niw,yDV,pOe,DVe,Ag,b6,bcw,AD0,nr0,$VU,tpi,Zi7,H8,Shy,wT7,RTS,Nt,qD,Ge,Sk,HiC,Jg,dVw,Ioi, WyZ,$G,QmU,kB,MgU,YB,oDi,uBG,PXC,MD,sm7,Tpi,KWy,r8V,az0,uc,xNV,P8,Oi7,zTZ,gD7,UNS,lzi,Te,BpV,CXS,Kp,tgS,ek,rV,XE,y8C,nDZ,c8,biy,ii7,UL,XAU,Qci,RNi,y_,S5T,ZZX,W8,K_T,IU,pp,dV,lc,bc,Jf,v8,GD,QJ,q5G,Rb,ZT,H5,wAe,hNV,h4,kJe,Y5l,jcG,M1,M8C,mMG,oL0,u1X,Pa7,scZ,ToG,mJ,KXl,ob,P5,eNV,r7S,a$e,ELS,sz,TD,KD,xMy,OZZ,zNi,c7X,gLl,UMC,l$y,BoV,Ez,xC,Oz,FXT,zD,Cay,Uz,V8w,t8S,B5,FX,CD,t4,I$C,VJ,Ib,dMV,WXS,dc,W5,DMX,pAV,f$X,y7G,pD,yJ,fD,No0,A77,nLG,DT,bZC,iZ7,J7e,N1,A4,nD,$C,b5,J4,i5,Go,Xw,Qu,R1,GBi,XIl,QqU,Sz,Zg,HV, qQ,hw,kA,ZlG,SeG,jz,Hl0,MQ,mU,o1,uP,PV,Kw,ez,rA,a1,EX,xA,OX,zo,h_7,cV,gA,UX,L$T,YeG,Cw,jql,tw,Vu,o_S,uEC,PqS,Tbe,e_C,fw,r$7,NQ,Dg,xTX,OlU,z_V,nw,$A,g_S,vV,Jw,iP,GC,l60,Xz,Qz,Ra,BbS,S2,UTC,ZO,Hf,CqS,F$7,qk,wz,hd,LJ,Y5,VUw,I6l,Mk,m7,uj,Pf,dT7,oa,y$Z,f6S,DTT,Nbi,A$e,n_Z,$Ti,TC,sF,pIT,J$y,KJ,Gwy,XeZ,x5,Qsw,rz,aa,RIU,OF,ZHi,q3l,zC,cf,wey,gz,LsS,UF,oQT,Mie,kwC,jsl,Y30,Bf,Fz,CJ,td,Vz,Ia,dz,pJ,PCT,Ksi,DO,c3S,Nk,eIV,EQU,nJ,Jd,$5,vf,bj,zIe,OHC,x4Z,csX,ij,gQC,FsS,GV,Qk,tiw,R8,Sx,Zs,H2,Vii,I3X,q2,w2,hK,d4S,Wsw, kJ,mT,o8,uJ,P2,s9,TV,pey,Kr,ex,r2,a8,E9,xJ,O9,ys7,f3C,zV,c2,g2,pr,yk,fr,D4G,NWS,Ds,$J,$4e,bHG,bJ,v2,RK,JsZ,HS,qG,iHG,L1,GYG,QfG,XRw,R$0,STX,Z7y,H7Z,qTw,wRU,L5w,h$w,kYZ,Mh0,oGC,jfC,uVX,P6w,TET,Yf,j6,e$7,K5y,MG,mp,oK,aDy,um,PS,sf,xtU,O7G,Tj,EG0,K1,gGX,e6,rq,aK,Ef,xf,Of,zj,cS,gq,Uf,lm,BS,FI,C1,tt,Vx,IK,dq,WS,p1,yx,f1,DE,NG,At,n1,$f,bm,vS,Jt,im,GA,X$,Ql,RP,S$,Z_,Hc,qj,wG,hr,L$,kv,Yv,j$,Mj,mj,oP,u2,Pc,si,TA,K$,e$,rG,aP,Ei,xv,Oi,zA,cc,gG,Ui,l2,Bc,F$,C$,tr,Vl,IP,dG,p$,yl,lD7,f$,n,D_,Wc,Nj,Ar,n$,F5G,b2,thU, $v,Vhy,Jr,IDS,G7,vc,Xd,QG,Re,Zy,W5G,pRV,ygC,fDC,M3,m9,L6,oe,NEX,Ag0,nGw,$tU,dtG,b7e,SJ,vGy,JgC,PZ,rs,sD,q3,i70,HZ,uT,T7,ae,X8T,ws,hk,eJ,K6,QUl,ED,xU,OD,z7,RcG,cZ,gs,UD,lT,BZ,SLZ,ZpV,qLC,w80,tk,VG,Ley,Ie,MkU,oBX,PcX,sUw,WZ,Ke0,ecZ,Ak,rf7,n6,$U,bT,vZ,Jk,iT,ac0,xDl,Ope,EB0,zcU,cf0,RQ,SQ,HK,wN,hF,L9,gBX,ky,UDT,Yy,jQ,ZX,oQ,uS,PK,s0,lcX,mM,Fe7,T5,CcS,tkG,K9,VkC,eQ,rN,IcG,dDi,aQ,WeG,p8C,E0,yfV,fcV,DDl,NVG,O0,z5,Afw,nB0,cK,gN,U0,$DG,lS,BK,FT,C9,bpU,tF,VM,vBT,IQ,Jfi,dN,ipX,GDi,X5S,QbC,R7y,SzU,WK,ZDU,HDS,qzS, p9,w5w,yM,h7T,f9,LJU,DX,kDe,Yze,NU,vK,jbT,JF,iS,Gg,XZ,MaC,Qi,RE,S0,m1y,oCT,Hj,qr,P57,wP,sbX,TcG,uXi,KJ7,e7i,r4T,LP,aTT,kE,j0,Mr,EC7,mB,oE,Pj,x1y,sA,Tg,OD7,e0,gCG,lTZ,BcG,U1e,EA,OA,xE,FJC,C5X,Va7,ta0,rP,ITV,d1T,WJw,p5C,aE,NcU,A47,nCC,D1V,fTV,y4T,$10,zg,z7y,bD0,c4y,vCw,J4X,XVG,iDw,cj,GoU,SXC,Q1C,RnG,Hwi,Zwi,qXw,wVl,UA,koX,hny,YXU,LUX,j1G,MzG,mQw,oAV,uwU,PPG,s1X,TAG,KU0,enG,rw0,agT,ln,CP,Bj,dP,Wj,EA0,pP,xQC,fP,DP,Nr,OwX,nP,znV,vj,JR,Gv,Vi,XP,Qp,RT,cwl,Sr,Zt,HH,gAe,qs,wO,hS,LF,kq,Yq,Ms,mL,oT,u9,UQe,lgi, BAy,KF,PH,er,rO,FUZ,CPC,tzV,aT,Ej,xq,Vzw,IgG,Tv,dQl,WUl,Oj,pVU,zv,cH,Uj,l9,BH,FP,CF,Vp,IT,WH,pF,yp,fF,dO,DQU,NAT,Ns,AS,nF,Awy,b9,$Q7,vH,JS,bw0,i9,XO,Rz,vAZ,QI,SN,Zd,Ha,Jwe,hA,GCT,Xfw,Qa7,kW,Lm,Rdi,SFG,ZJe,YW,qFe,$q,HJl,wfT,jN,hdG,M0,L7G,mi,kC7,YFy,jaG,M2w,mkS,oz,uz7,o5C,u0,TZ,Pjy,Km,saG,eN,TzX,K7e,rw,edw,rdX,aOG,E5y,az,xkV,Ed,zdy,Od,zZ,g5S,cd7,UkX,lOU,BzG,gw,Ud,l0,F7e,CjT,t2S,V27,IOC,dkV,W7y,pf0,ydi,fOT,FO,Cm,Dkl,NzX,tA,VI,Ady,Iz,dw,pm,n5Z,yI,fm,Dd,$ki,N0,bJZ,AA,v5e,nm,Jdi,iJ0,$W,GVe,X2X,Q87,b0,va, JA,i0,G8,RzC,S9i,Xl,Qh,Rw,Zrw,Ss,ZQ,HE,qc,wk,HrZ,q9G,hp,LN,w2T,ks,Ys,js,Mc,HpG,hzZ,LTi,ow,kVS,Y9w,j8T,u1,PE,sW,T8,z8,cE,gk,UW,l1,BE,Fl,Mxw,m2e,pN,yh,u5V,fN,vE,Nc,Gl,rKX,zzG,asl,cKU,U2e,lsV,gJG,B2Z,FTV,CJG,Yp,IsX,p2Z,WTS,fsC,D2l,N2w,ok,ue,nJG,$2G,iry,P9,GjG,brU,sH,Tl,Kv,ec,QK7,Z1Z,Raw,wSy,mGl,M6y,haC,ofw,ak,kjU,LpZ,sKG,eay,KpG,xGZ,rty,EH,xp,UG0,c9,lEi,dGV,IEU,V6X,t60,FpS,ytS,pSw,Cme,nf7,AtU,$GG,F2,JtZ,b1i,vfV,BqX,i1G,GAw,g_,le,DGw,fEw,Nq0,XcU,UH,Wp7,Rpy,Z$G,qi7,hpw,YiZ,jP0,mjV,ovV,P2V,u$X,rrl,TGS, sPT,a_Z,O$e,zpG,crS,gvC,Nh,Mh,BGU,UjC,$p,Jo,ie,t$i,V$Z,C2G,GW,I_C,XU,QX,G5,Rg,Vxi,SO,ZM,H3,djX,Wjl,q8,pcX,yrS,f_7,w9,hT,L_,ke,Ye,jO,M8,m6,og,DjT,NGC,uM,Ari,P3,sd,sq,TW,b$0,nvT,K_,vvG,JrC,i$w,eO,$jl,r9,G7y,ag,XZ7,Qee,yK0,RKC,Eq,XT,C6,Cv,SDw,Z6Z,Oq,gfl,OH,H6V,Ao,nv,VO,to,r_,d_,Ljy,M$l,Ik,O1G,Ev0,qDw,uIS,YfG,zW,FjZ,mS,hKX,wZ0,XSS,kAX,L97,xjZ,fv,zaG,ctl,Tql,wc0,H$S,qfw,SfZ,JKZ,vJ0,AKX,QPw,jKG,Kje,aEC,EfC,pv,yO,W9,epl,SiS,YDl,k7X,c3,g9,ErG,Uq,je7,lM,B3,FU,MJe,VX,Ig,d9,p_,yX,m3C,W3,f_,DM,oUZ,N8,AT,n_,bM, PT7,seG,v3,JT,iM,G1,Xy,Qs,R_,S9,rkZ,H_,ayl,Z1,EUw,K9X,eKU,x3i,qg,w$,O67,zKi,hX,ckZ,GB,U3V,gUX,BsV,CTC,tJw,F9y,d3Z,W9l,ykX,mr,o_,fyy,D3G,uF,P_,Nsi,AkU,nUC,$37,T1,b6l,vUG,e9,r$,i6S,G5S,XKT,S0C,E4,z1,g$,Z9w,U4,lF,B_,h5Z,k5l,LMC,jQi,e50,mUC,pR,CR,Y0y,wKZ,q0i,H90,W_,tX,d$,AX,nR,EyT,$m,bF,Ng,cFl,xUZ,O9Z,gyG,v_,JX,lXX,GM,XF,QA,Rj,S4,Z9,Hr,BNi,FMC,q7,wK,Lf,tQG,VQl,hQ,IXG,pKX,yFl,kX,fXT,M7,DUG,mu,uo,NNC,oj,Pr,AFl,TM,$UU,b9T,e4,rK,zM,JFl,EP,cr,UP,i97,Br,OP,gK,GgU,FF,Xj7,Cf,QEC,aj,xX,vyU,lo,tQ,RZS,SAG,VA,ZPZ, Ij,dK,Wr,pf,HPi,ff,yA,D9,N7,qAV,wjU,AQ,nf,$X,bo,vr,hZX,JQ,io,LBy,kgi,Gu,XN,QC,jEV,YAG,RW,M0G,mrZ,oEG,SK,uZi,PnG,sEl,TPy,KBU,Zk,HB,q9,w0,eZV,rRG,Lh,aPG,kl,Yl,EEl,xrV,jK,OPT,zZZ,lP0,BPw,cRi,gEC,UrC,mZ,oW,ul,PB,FBy,Cne,t0w,V0y,Tu,WBZ,Kh,yRG,Drl,fPU,xl,Ep,ARU,nEC,$rU,bPw,Op,vES,cB,g0,JRG,Gvy,XHC,ll,t1,ZFV,TN0,Vs,qjS,wH0,hOV,LLT,kvU,Fy,BB,d0,WB,msl,oqG,uPX,ph,KLl,P9y,sTi,rSS,atV,yC,EqS,eOX,xsS,fh,Dk,N9,OF0,zOC,A1,nh,cST,$l,gql,bl,VC,Gd,Usw,KMC,MQC,X7,QQ,SC,ZC,Hm,qK,wn,RD,kM,BOX,jC,C97,MK,Vrw,tr0,FLy,Ite, dsZ,WLX,Pm,pHX,ySS,DsZ,sY,aX0,Td,AS7,$s0,ys,bFZ,vqV,I_,oyS,PST,sQU,NOT,eC,rn,EY,JSX,iFy,GZ7,Xaw,QzG,RXX,SdX,qd0,waw,Hmw,hXC,Liy,kZZ,YdC,xM,jzl,cm,MNe,m0U,oWT,gn,uOT,l$,Bm,F7,Cj,tn,P0V,VQ,ID,szw,Twe,dn,Wm,pj,yQ,fj,DC,eXl,KiZ,NK,rAi,EWl,An,x00,adG,Yn,LK,jb,mD,oI,oD,OmT,C07,YU,kn,T$,d0i,paU,G$,EB,i$,xn,cM,fdi,hB,gS,nWT,UB,lp,$0i,bmS,vWG,JAC,BM,imX,G8S,Fk,XEi,HNl,ZNy,Qwe,SWS,RuV,CK,qWy,tB,wEU,huC,k8e,YW0,jwZ,Ms0,swe,pK,yT,euT,fK,DK,rpV,xci,ONy,zu7,cpV,Nl,AB,nK,$n,gsw,lQS,BkC,SX,ypi,Vs0,IQG,DcG,ZI,Nkw, nsi,ApZ,$c7,qL,LL,bNy,H4,kP,YP,vsZ,iN7,oA,sc,aA,Oc,jkS,Mc0,lV,Uc,Fu,CL,mhC,u2l,PeU,V1,tP,skC,KSG,eYe,aLw,W4,roX,EpU,xhi,y1,fL,zYG,mP,dx,ZvS,Jpy,hYl,bV,B4,T_0,RM,Ec,Z0,HP,WS0,yoV,p97,xP,zU,fLU,w4,hL,N_S,AoV,k6,Y6,npT,c4,jA,opy,m0,B_0,oM,RYC,Qki,GlV,uG,bvZ,sa,Z_0,SqU,qql,w3e,eA,aM,Ea,r4,Oa,zE,hRZ,cP,kWG,g4,jgS,BP,YqZ,Fe,CC,uUe,T9C,K6S,IM,eRl,EeG,vP,iG,GT,RG,x8Z,Sj,ZJ,hh,LE,kH,YH,jj,O_X,zRT,Mz,md,lMy,oG,uU,B9i,F6S,Pv,CM7,sE,tOl,VOX,IMT,d8G,TT,KE,W6V,p3U,yTT,EE,xH,cv,gU,fMG,D8T,UE,lU,Bv,FK,ATl,$87,CE, b_0,vee,th,i_i,JT7,G1w,Vn,Q_G,X_w,RDZ,IG,dU,S40,HRX,q4X,Wv,pE,DJ,w_U,LrG,Y40,M9i,k1G,hDG,mgS,j_y,Nz,omU,PFS,Ah,s_T,$H,T$i,Kri,nE,bU,vv,Jh,a1y,xgl,eDi,Em7,ORy,rX0,zDl,cX0,iU,gmT,l1T,CFl,V9G,t9S,qI,HQ,LB,dgC,k8,Y8,j3,p_X,MI,yXU,WrS,mv,N$C,oF,uh,AX7,PQ,nmS,tsU,pE0,bRC,$g0,JXw,vmG,iRl,sG,TN,KB,e3,GMV,Rgy,EG,x8,OG,ZfC,SPU,rI,Hf7,qPe,wrw,LuG,zN,sjw,EXS,BQ,x7V,Xs,zgT,cQS,gXy,U7w,l9e,CB,BK0,tH,V8,IF,FuU,pB,CoG,t4U,y8,fB,V4e,I9T,d77,Wul,pry,Dh,WQ,yQG,f9G,NI,NK7,AQG,nX0,AH,$7e,bf7,vXZ,JQG,if0,Gul,XBC,QWU,RqT, SpZ,nB,HhC,$8,wB7,qp0,LZi,hqS,YpC,ih,ZhV,bh,GO,jWw,MKZ,m97,olC,uNi,Xf,Qq,Rl,SR,Zu,Pli,Hz,sWi,wd,akX,OhX,zqC,c10,glS,k3,U9w,x9Z,r1X,lkT,hz,B0Z,ClG,qW,Lo,KZC,eqG,Y3,tKU,VKX,ElG,T0y,IkT,MW,d9V,mO,ol,WZU,uQ,fkC,pB7,y1S,Pz,D9C,sm,TO,Ko,eR,N0w,A1G,nlG,rd,bhG,vlX,al,J1l,Em,x3,ih0,Gdl,XmV,QDw,RlG,SYC,hlG,HjG,B$7,zO,kdy,YYX,qYw,wmX,ZjS,Um,u7V,gd,cz,LAl,sDG,oMS,mKU,MCi,jDT,Bz,Tne,GN,Ff,Co,tz,KAe,Vq,elZ,Il,rnC,hH,aCZ,dd,RF,Zh,UgT,fo,NW,xKG,OjG,zlX,no,Du,yq,$3,Wz,EMU,po,bQ,cnT,gM7,JH,ku7,Q8,vz,UK7,Az,lCy,BnT, FAC,C$C,tCS,VCT,ICS,dKi,WAi,pmS,ynX,FZG,lh,iQ,DKZ,Jz,NnG,f1w,Dg0,Gz,AnZ,nMC,$KT,bjX,X4,ij0,vMw,G$Z,RLV,Jnw,SBT,HKG,ZKl,hLl,Qc,Z4,k$i,LDl,mle,jIZ,onX,ukS,YBe,Mby,PpG,Hd,sIU,KDG,TSC,qa,D7e,eLS,rBX,aKy,EnT,xlU,zLl,cBe,gnl,Ul0,lKX,OKV,wR,Qjl,hY,CpU,LY,FDi,tbl,VbS,Xr0,aF,IKT,dll,YK,ABi,NSU,ui,nnG,Dly,JBV,iKy,GUG,X4l,QAy,Rvl,ScV,ZLX,HLC,qcy,w4X,hvX,LPl,kUG,Tz,kK,jAw,MXw,Pd,oPZ,YcG,s2,uui,PVC,KPC,aIl,evV,eE,EP0,rR,sAG,KY,pY,TxV,fY,zvT,gP7,cPi,ULT,OLV,lIi,Bxy,FPl,CVl,tXy,IIi,dLG,WP0,VXT,yPZ,DLi,fIV,$L0,APT, p4G,Nx7,bLw,nPy,vPZ,JPU,iL7,QMy,XPG,GET,D4,RAw,SaU,ZCC,HCT,qay,hAe,kEG,Yay,jMS,MAU,mYC,Na,o6C,ue0,sMT,T4T,bi,eAl,JY,E6G,a0C,xYi,OCU,zAT,g6y,cLe,B4y,F0U,CGi,tA0,ii,VAw,UYS,l0S,dYU,W0G,pPZ,yLG,f0U,DYX,vQ,N4S,AL0,n6S,bCe,$YZ,v6w,iCX,GTw,JLC,yc,qBG,QGl,Row,SEC,kTi,qE7,wvS,hoi,YEZ,Mjl,P$0,X3,HEZ,ZEG,jGl,wI,Ld7,Om,S3,rPS,sGG,PUG,TUy,KdT,rhU,l4Z,I0y,SE,R2,oHl,BRe,uKG,FqU,QIw,Cii,XMG,xLV,mzi,wMw,Sf,Zn,VET,Hx,I4w,daV,Wq7,pdC,yYG,DaX,NRG,bYX,AY7,$aX,vKi,w6,XxV,iYl,Gc0,S1U,Zqw,HqS,he,q1y,qH,wxl,RrG,JYi,Lq,hrT, nKe,LEX,kc,Y1y,kcS,Mfe,mHG,ocy,jiy,Yc,siX,POV,erG,KES,T6G,rew,ane,jf,EcU,xHU,zrS,cei,Oq7,gcV,COZ,lnV,B6S,FEl,tfe,VfG,In0,WEe,dHZ,pxe,yeG,MH,fnZ,DHV,AeV,N6C,ncZ,$HV,vcw,JeG,GG7,Q5X,iqV,Rf0,S8e,Z50,bqy,H57,Xty,oi,q80,wti,hf0,Lk0,Px,Y8T,kGS,j5e,MPC,mdC,P3G,ozU,KkG,s1,uol,efG,Tc,O5V,rEw,ef,r6,zfG,Kq,cEX,ai,l2Z,Ud0,EzG,xdS,BLl,FkZ,C3X,a2T,tPy,E1,VPy,gzU,rLC,uO,ddw,WkV,ptT,yET,f2Z,Ddw,NLV,AEe,nzi,$dT,b5V,JEi,O1,i5S,vz7,GKV,X6U,Q6w,RBi,SSS,ZbS,w6V,qSC,Hbw,hBw,cx,fgl,LgC,kK7,g6,YSi,j67,lO,o0G,uc0,F3,Pdl, s6T,Bx,m6C,Cq,U1,Mu0,Ii,te,TQU,d6,VE,afV,ObG,c_l,g0S,lfT,eBV,zBV,BQC,r_Z,Fgi,CdZ,tuG,Dn,Wx,d6X,WgT,Vui,yE,y_X,ffy,x6C,E0S,p6U,D67,U60,Ify,Kg7,NH,Ae,nq,NQG,$c,J_T,$6S,iby,bbl,n07,GSC,A_X,RtS,XGy,bO,SRV,HGV,wGG,htG,YRC,GG,jNZ,LYT,fq,o2Z,uiZ,Z2,mLT,vx,PWG,sNl,KY7,Ta7,etT,mFX,QS,r27,aZ7,E2y,OG7,xF7,XvU,Xo,zt7,g2Z,c2y,lZG,UFS,qRX,FY0,Bae,R5,Je,CWG,qd,t1y,V1y,IZi,dFZ,WYS,Ht,kSZ,tE7,pq,pGG,wL,y2i,fZi,DF7,Nai,A2X,hE,L5,bG0,v20,J2C,n2C,$FT,kz,Qpy,Ghe,Xwy,RGy,SU0,Yz,ZIl,HIw,qU7,jP,www,LVS,khw,YUZ,Md,hGC,mk, o5,jpG,MI7,m$w,ob7,u6w,PrG,spy,s8,u3,Pt,T3S,TG,KVZ,eG7,rMG,aBw,x$l,EbT,xz,zGl,cMG,OIZ,gby,O8,U$y,zG,lBX,ct,B37,FVy,VIZ,WVX,Cri,IBe,gL,tIV,d$w,pw0,yMw,fBy,D$X,l3,N30,C5,Bt,AM7,tE,VS,$$T,bIy,dL,Wt,vbG,I5,p5,iIV,JMT,f5,D2,Nd,QRU,GyV,X0V,AE,R80,qQZ,ZuV,SQU,Hui,n5,h8U,jRl,MqU,$z,myU,LCC,o9Z,b3,kyy,sRy,vt,KCG,TB7,e8C,rmU,ap7,E9i,GK,z8T,cmi,g9G,Xc,OuX,BBV,i3,QF,R6,xy0,tqV,CfG,wQ,VqU,dye,p0i,Ip0,h_,H6,k0,q6,WCG,Lb,yme,Y0,fpG,DyG,NBS,ju,M6,AmV,n9C,$yw,buZ,v9T,Jm7,iui,QxU,Gfy,RHG,S6y,q67,wFl,mRX,ES,Pg7,K2y, T5Z,sxX,jxw,MT7,hHw,kfC,oYU,x0,OS,r0T,fC,MOe,aa7,c6,US,EYG,xRw,L2U,ux0,zHG,c0i,gYl,B6,ld,W6,law,B5w,F2l,pb,CgV,VT0,tTC,IaT,yF,fb,dRZ,y0S,faG,A_,pFG,DRl,N50,W2C,bd,A0Z,nY0,$0,$RG,bWl,vYZ,J00,GxV,iWw,R3i,SkV,Xhw,HnX,qkX,Qyy,id,GS,why,jyi,Xi,h3Z,Lf7,Ykw,kxS,MMX,o1Z,mo0,uny,Qm,Pxw,syX,TrC,KfU,e3X,rql,aFi,xow,E1Z,OnV,z3V,cq7,g1G,Uoe,BrS,S1,RN,ZZ,Ff0,CxU,lFZ,Wfw,phV,yqG,NrS,DoT,fFe,AqG,n1l,HG,qF,$oV,bnT,v1w,Jql,GPU,Xyy,h2,Q3G,wa,k2,inC,Y2,RFU,S$S,ZgU,Hgl,q$T,j1,wyS,hFZ,Y$0,MF,j3X,kPX,mY,oN,uW,miG,ojC,uWX, MF7,s3V,PHZ,TtG,PG,K4G,eFy,al7,OgT,rbe,Ejl,sR,zFG,gjG,UiC,Bte,F4i,TS,KG,CHS,cbl,IlZ,VFw,tF7,e1,ra,W4y,diy,aN,ER,x2,pyV,OR,ybC,flZ,Di7,NtU,zS,Abw,cG,njG,UR,$i7,lW,BG,bge,Fi,vjC,CG,t2,igV,Q4X,R67,Jb7,Ssl,qsy,w7X,h67,H8X,Z8G,kFC,L1i,YsU,m_G,da,u8i,odl,j4l,MHl,PRi,s4V,WG,pG,TM0,K1y,e6e,ry0,avl,EdG,O8U,z6C,tHS,U_7,lvC,cyl,IvS,nG,bW,fvG,D_C,iW,NMy,Gh,Ayl,d_U,A2,Rp,QU,vG,$_U,b8i,SI,Jye,GbG,i8y,ZB,J2,NF,vdi,X6,W1G,ndU,QuZ,ym,Hw,REG,S7Z,$2,p7T,q$,w3,Z2C,hM,LI,H2X,kb,q7i,wNT,LmU,kbV,hEw,Yb,Y7e,jI,M$,juw,M7V, mu0,oZS,Pk0,su0,KmG,TYG,eEe,op,mV,uvU,ray,EZZ,aHy,ur,Pw,xue,zEi,caV,sU,O2V,gZX,UuS,BYe,Th,lHS,Fmw,Ck7,t7w,eI,r3,IHG,V7w,du7,ap,EU,pNV,Wmw,yaZ,DuS,fHi,NYT,OU,AaT,nZS,cw,$uS,vZU,b2G,UU,JaG,i2S,Gpi,QoU,R1l,StU,XDe,ZQV,HQC,qti,wDe,h17,LI0,kpe,YtX,joG,F6,MnS,mbU,oSS,Py0,e10,TuG,uLT,VU,soi,tM,KIG,Ip,aUU,rcT,d3,xbZ,OQ0,z1V,UHU,fI,aMy,pI,DB,yU,AM,ccl,nI,FIG,Cyl,tnX,IUC,Vne,dbw,WIU,pDZ,ycT,DbZ,Nu0,Acl,nSX,fUi,XuZ,QO7,GLV,RMi,ZxZ,qb0,wu7,hMe,ir,HxX,SbG,$bl,Gy,YbT,jOG,kL0,LhV,oO7,mCe,uRX,Ptw,sOU,TmX,X9,KhT, Jci,vw,eMX,r9w,aqT,EOS,bQe,vSV,JM,RR,zMT,c9U,gO0,xC7,Qa,Oxi,lqV,tBX,Zp,VBZ,IqZ,Fhe,qy,dC0,Whl,UCV,puZ,CtZ,y9V,wB,H0,fqC,NmV,DCS,Sq,nOU,hm,M1i,$CG,J9i,vOT,GmZ,XUw,ixX,k9,Lu,RCy,SVG,Zki,Hk0,mwX,kmZ,YVw,hC7,wUU,My,sHS,ugU,Tj0,KQT,jq,oR,uf,EtZ,ajU,rU7,sQ,Mm0,rB,Oky,eq,P0,cUi,gtZ,Uwi,otV,x9,zy,ljS,jHG,xwT,Ty,Bjy,mC,FQi,C4C,tmU,UQ,zCC,VmV,IjG,lf,B0,dwV,Ku,P4U,WQG,pUZ,OQ,yUi,aR,fjS,EQ,lG,Dwy,AUT,F9,Cu,ntT,$wZ,bkG,gB,c0,vt0,bxw,JUU,LQT,ikl,GrG,XCw,Q9i,tm,Va,ZXS,wCG,Lxe,SgT,PBw,s90,TTX,Kxy,ex7,rIG,a7V,xX0, EIC,IR,dB,W0,OXT,zxw,cIZ,Pa,gIT,pu,UXl,ya,l7X,fu,Dp,BTV,hR,Ny,Fd,FxG,be,l_l,CBw,zl,twU,q0,ww,VwU,xe,I7T,dXU,v9,d2S,WxS,pCi,yIX,Am,DXT,NTV,nu,bf,v0,AIU,bXV,vIi,Jm,JIi,nIy,Gik,$XG,iXw,Xlv,Q0o,RUO,SCZ,Gf,HVL,BVy,qU,xW,qCH,wlk,ca,ZVO,MU,hUS,Lwn,kiv,Xx,Dt,j0L,MyL,Q5,Rx,meZ,ST,Za,$9,oTH,uSa,iww,HF,qR,P7v,w5,h0,s0H,LW,TXk,kY,YY,Kwv,eUZ,OJT,jT,rG4,ETH,aGV,MR,m2,xeH,ox,OVL,zUG,cGk,gTd,UeH,lGv,FwZ,PF,BXa,C7k,ty4,VyZ,IGv,yGd,deL,WwV,plS,De3,AGG,nTv,$eZ,NXG,s6,bVS,vTn,JGL,iV4,G3d,KW,Xnd,eT,r5,ax,Qdo,Rkn,ZaH, HaL,qvd,wn4,Loo,hk4,k3H,E6,xY,MZV,Yva,jdL,O6,mSS,o4o,zf,cF,uG3,g5,PLH,U6,sdO,lg,BF,THV,Fx,CW,KoZ,eka,t0,V5,rOG,Ix,aVk,E43,y5,fW,xSZ,Oaa,zkZ,USG,g4H,Da,lVv,BHG,FoL,txZ,cOv,tZk,VZO,dSa,GiU,LV;Gi=function(G){return function(){return GiU[G].apply(this,arguments)}}; g.Sy=function(G,X){return GiU[G]=X}; XlC=function(G){var X=0;return function(){return X=this.length))return this[G]}; vl=function(G){return G?G:$T}; j07=function(G,X,Q){G instanceof String&&(G=String(G));for(var R=G.length-1;R>=0;R--){var S=G[R];if(X.call(Q,S,R,G))return{AL:R,N$:S}}return{AL:-1,N$:void 0}}; JG=function(G){return G?G:function(X,Q){return j07(this,X,Q).AL}}; g.G3=function(G,X,Q){G=G.split(".");Q=Q||g.i7;for(var R;G.length&&(R=G.shift());)G.length||X===void 0?Q[R]&&Q[R]!==Object.prototype[R]?Q=Q[R]:Q=Q[R]={}:Q[R]=X}; SZ=function(G,X){var Q=g.QH("CLOSURE_FLAGS");G=Q&&Q[G];return G!=null?G:X}; g.QH=function(G,X){G=G.split(".");X=X||g.i7;for(var Q=0;Q2){var R=Array.prototype.slice.call(arguments,2);return function(){var S=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(S,R);return G.apply(X,S)}}return function(){return G.apply(X,arguments)}}; g.La=function(G,X,Q){g.La=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?oTZ:uSV;return g.La.apply(null,arguments)}; g.k4=function(G,X){var Q=Array.prototype.slice.call(arguments,1);return function(){var R=Q.slice();R.push.apply(R,arguments);return G.apply(this,R)}}; g.jZ=function(){return Date.now()}; MS=function(G){return G}; g.mo=function(G,X){function Q(){} Q.prototype=X.prototype;G.gS=X.prototype;G.prototype=new Q;G.prototype.constructor=G;G.JR=function(R,S,Z){for(var H=Array(arguments.length-2),w=2;w=0;--Q)Q in R&&X.call(void 0,R[Q],Q,G)}; g.Ka=function(G,X,Q){X=T3(G,X,Q);return X<0?null:typeof G==="string"?G.charAt(X):G[X]}; T3=function(G,X,Q){for(var R=G.length,S=typeof G==="string"?G.split(""):G,Z=0;Z=0;R--)if(R in S&&X.call(Q,S[R],R,G))return R;return-1}; g.rH=function(G,X){return eUy(G,X)>=0}; rGT=function(G){if(!Array.isArray(G))for(var X=G.length-1;X>=0;X--)delete G[X];G.length=0}; g.Ev=function(G,X){X=eUy(G,X);var Q;(Q=X>=0)&&g.ad(G,X);return Q}; g.ad=function(G,X){return Array.prototype.splice.call(G,X,1).length==1}; g.gH=function(G,X){X=T3(G,X);X>=0&&g.ad(G,X)}; aGG=function(G,X){var Q=0;KwC(G,function(R,S){X.call(void 0,R,S,G)&&g.ad(G,S)&&Q++})}; g.Uv=function(G){return Array.prototype.concat.apply([],arguments)}; g.lL=function(G){var X=G.length;if(X>0){for(var Q=Array(X),R=0;R>>1),h=void 0;Q?h=X.call(void 0,G[w],w,G):h=X(R,G[w]);h>0?S=w+1:(Z=w,H=!h)}return H?S:-S-1}; g.na=function(G,X){G.sort(X||yH)}; OV7=function(G,X){var Q=yH;g.na(G,function(R,S){return Q(X(R),X(S))})}; g.$4=function(G,X,Q){if(!g.ZV(G)||!g.ZV(X)||G.length!=X.length)return!1;var R=G.length;Q=Q||zUS;for(var S=0;SX?1:G0&&(X[S]=R)},G); return X}; IGC=function(G){G=c$(G);var X=[];g.Gn(G,function(Q,R){R in Object.prototype||typeof Q!="undefined"&&X.push([R,":",Q].join(""))}); return X}; WwG=function(G){El(G,"od",de7);El(G,"opac",gg).N=!0;El(G,"sbeos",gg).N=!0;El(G,"prf",gg).N=!0;El(G,"mwt",gg).N=!0;El(G,"iogeo",gg)}; Ul=function(G,X){return G.lastIndexOf(X,0)==0}; ple=function(G,X){var Q=G.length-X.length;return Q>=0&&G.indexOf(X,Q)==Q}; g.lY=function(G){return/^[\s\xa0]*$/.test(G)}; g.B$=function(G,X){return G.indexOf(X)!=-1}; Fm=function(G,X){return g.B$(G.toLowerCase(),X.toLowerCase())}; g.V2=function(G,X){var Q=0;G=Cz(String(G)).split(".");X=Cz(String(X)).split(".");for(var R=Math.max(G.length,X.length),S=0;Q==0&&SX?1:0}; g.IB=function(){var G=g.i7.navigator;return G&&(G=G.userAgent)?G:""}; y2=function(G){if(!dg&&!W$||!pz)return!1;for(var X=0;X0:!1}; nz=function(){return Ai()?!1:Nn("Opera")}; yG0=function(){return Ai()?!1:Nn("Trident")||Nn("MSIE")}; fGw=function(){return Ai()?y2("Microsoft Edge"):Nn("Edg/")}; $7=function(){return Nn("Firefox")||Nn("FxiOS")}; v$=function(){return Nn("Safari")&&!(bY()||(Ai()?0:Nn("Coast"))||nz()||(Ai()?0:Nn("Edge"))||fGw()||(Ai()?y2("Opera"):Nn("OPR"))||$7()||Nn("Silk")||Nn("Android"))}; bY=function(){return Ai()?y2("Chromium"):(Nn("Chrome")||Nn("CriOS"))&&!(Ai()?0:Nn("Edge"))||Nn("Silk")}; Dei=function(){return Nn("Android")&&!(bY()||$7()||nz()||Nn("Silk"))}; NXS=function(G){var X={};G.forEach(function(Q){X[Q[0]]=Q[1]}); return function(Q){return X[Q.find(function(R){return R in X})]||""}}; AGS=function(G){var X=g.IB();if(G==="Internet Explorer"){if(yG0())if((G=/rv: *([\d\.]*)/.exec(X))&&G[1])X=G[1];else{G="";var Q=/MSIE +([\d\.]+)/.exec(X);if(Q&&Q[1])if(X=/Trident\/(\d.\d)/.exec(X),Q[1]=="7.0")if(X&&X[1])switch(X[1]){case "4.0":G="8.0";break;case "5.0":G="9.0";break;case "6.0":G="10.0";break;case "7.0":G="11.0"}else G="7.0";else G=Q[1];X=G}else X="";return X}var R=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");Q=[];for(var S;S=R.exec(X);)Q.push([S[1],S[2],S[3]||void 0]); X=NXS(Q);switch(G){case "Opera":if(nz())return X(["Version","Opera"]);if(Ai()?y2("Opera"):Nn("OPR"))return X(["OPR"]);break;case "Microsoft Edge":if(Ai()?0:Nn("Edge"))return X(["Edge"]);if(fGw())return X(["Edg"]);break;case "Chromium":if(bY())return X(["Chrome","CriOS","HeadlessChrome"])}return G==="Firefox"&&$7()||G==="Safari"&&v$()||G==="Android Browser"&&Dei()||G==="Silk"&&Nn("Silk")?(X=Q[2])&&X[1]||"":""}; nTC=function(G){if(Ai()&&G!=="Silk"){var X=pz.brands.find(function(Q){return Q.brand===G}); if(!X||!X.version)return NaN;X=X.version.split(".")}else{X=AGS(G);if(X==="")return NaN;X=X.split(".")}return X.length===0?NaN:Number(X[0])}; bVe=function(){var G=null;if(!$ey)return G;try{var X=function(Q){return Q}; G=$ey.createPolicy("goog#html",{createHTML:X,createScript:X,createScriptURL:X})}catch(Q){}return G}; iY=function(){Ji===void 0&&(Ji=bVe());return Ji}; G9=function(G){this.N=G}; XH=function(G){var X=iY();G=X?X.createScriptURL(G):G;return new G9(G)}; Qo=function(G){if(G instanceof G9)return G.N;throw Error("");}; R$=function(G){this.N=G}; g.Zb=function(G){if(G instanceof R$)return G.N;throw Error("");}; Ho=function(G){this.eG=G}; qq=function(G){return new Ho(function(X){return X.substr(0,G.length+1).toLowerCase()===G+":"})}; g.wZ=function(G,X){X=X===void 0?vTl:X;a:if(X=X===void 0?vTl:X,!(G instanceof R$)){for(var Q=0;Q4);S++)X[xi(G[S])]||(Q+="\nInner error "+R++ +": ",G[S].stack&&G[S].stack.indexOf(G[S].toString())==0||(Q+=typeof G[S]==="string"?G[S]:G[S].message+"\n"),Q+=a$(G[S],X));S")!=-1&&(G=G.replace(hkT,">")),G.indexOf('"')!=-1&&(G=G.replace(Low,""")),G.indexOf("'")!=-1&&(G=G.replace(k3X,"'")),G.indexOf("\x00")!=-1&&(G=G.replace(YvV,"�")));return G}; g.lA=function(G){return G==null?"":String(G)}; Bo=function(G){for(var X=0,Q=0;Q>>0;return X}; FH=function(G){var X=Number(G);return X==0&&g.lY(G)?NaN:X}; jd7=function(G){return String(G).replace(/\-([a-z])/g,function(X,Q){return Q.toUpperCase()})}; MZG=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; mSe=function(G){return G.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(X,Q,R){return Q+R.toUpperCase()})}; o4w=function(G){var X=1;G=G.split(":");for(var Q=[];X>0&&G.length;)Q.push(G.shift()),X--;G.length&&Q.push(G.join(":"));return Q}; CT=function(){return dg||W$?!!pz&&!!pz.platform:!1}; uGi=function(){return CT()?pz.platform==="Android":Nn("Android")}; tC=function(){return Nn("iPhone")&&!Nn("iPod")&&!Nn("iPad")}; Vo=function(){return tC()||Nn("iPad")||Nn("iPod")}; I$=function(){return CT()?pz.platform==="macOS":Nn("Macintosh")}; PLX=function(){return CT()?pz.platform==="Windows":Nn("Windows")}; dZ=function(G){dZ[" "](G);return G}; sdG=function(G,X){try{return dZ(G[X]),!0}catch(Q){}return!1}; Koy=function(G,X){var Q=THG;return Object.prototype.hasOwnProperty.call(Q,G)?Q[G]:Q[G]=X(G)}; g.Wo=function(G){return Koy(G,function(){return g.V2(ekV,G)>=0})}; g.pT=function(G,X,Q){return Math.min(Math.max(G,X),Q)}; g.yo=function(G,X){G%=X;return G*X<0?G+X:G}; fT=function(G,X,Q){return G+Q*(X-G)}; g.Db=function(G,X){this.x=G!==void 0?G:0;this.y=X!==void 0?X:0}; Nq=function(G,X){return G==X?!0:G&&X?G.x==X.x&&G.y==X.y:!1}; g.AC=function(G,X){this.width=G;this.height=X}; g.nT=function(G,X){return G==X?!0:G&&X?G.width==X.width&&G.height==X.height:!1}; $i=function(G){return G.width*G.height}; vo=function(G,X){this.N=G===bA&&X||""}; JC=function(G){if(G instanceof jS)return G;G=String(G).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Mq(G)}; aVU=function(G){return rOS(G)}; rOS=function(G){var X=JC("");return Mq(G.map(function(Q){return m3(JC(Q))}).join(m3(X).toString()))}; cOC=function(G){var X;if(!E4i.test("div"))throw Error("");if(xSy.indexOf("DIV")!==-1)throw Error("");var Q="":(G=aVU(X.map(function(R){return R instanceof jS?R:JC(String(R))})),Q+=">"+G.toString()+""); return Mq(Q)}; OaV=function(G){for(var X="",Q=Object.keys(G),R=0;R2&&tZU(S,H,R,2);return H}; tZU=function(G,X,Q,R){function S(w){w&&X.appendChild(typeof w==="string"?G.createTextNode(w):w)} for(;R0)S(Z);else{a:{if(Z&&typeof Z.length=="number"){if(g.Hn(Z)){var H=typeof Z.item=="function"||typeof Z.item=="string";break a}if(typeof Z==="function"){H=typeof Z.item=="function";break a}}H=!1}g.vn(H?g.lL(Z):Z,S)}}}; g.ml=function(G){return je(document,G)}; je=function(G,X){X=String(X);G.contentType==="application/xhtml+xml"&&(X=X.toLowerCase());return G.createElement(X)}; g.oL=function(G){return document.createTextNode(String(G))}; g.uE=function(G,X){G.appendChild(X)}; g.Pq=function(G){for(var X;X=G.firstChild;)G.removeChild(X)}; sM=function(G,X,Q){G.insertBefore(X,G.childNodes[Q]||null)}; g.Tt=function(G){return G&&G.parentNode?G.parentNode.removeChild(G):null}; g.Ks=function(G,X){if(!G||!X)return!1;if(G.contains&&X.nodeType==1)return G==X||G.contains(X);if(typeof G.compareDocumentPosition!="undefined")return G==X||!!(G.compareDocumentPosition(X)&16);for(;X&&G!=X;)X=X.parentNode;return X==G}; Xp=function(G){return G.nodeType==9?G:G.ownerDocument||G.document}; g.ee=function(G,X){if("textContent"in G)G.textContent=X;else if(G.nodeType==3)G.data=String(X);else if(G.firstChild&&G.firstChild.nodeType==3){for(;G.lastChild!=G.firstChild;)G.removeChild(G.lastChild);G.firstChild.data=String(X)}else g.Pq(G),G.appendChild(Xp(G).createTextNode(String(X)))}; IVC=function(G){return G.tagName=="A"&&G.hasAttribute("href")||G.tagName=="INPUT"||G.tagName=="TEXTAREA"||G.tagName=="SELECT"||G.tagName=="BUTTON"?!G.disabled&&(!G.hasAttribute("tabindex")||VZG(G)):G.hasAttribute("tabindex")&&VZG(G)}; VZG=function(G){G=G.tabIndex;return typeof G==="number"&&G>=0&&G<32768}; OM=function(G,X,Q){if(!X&&!Q)return null;var R=X?String(X).toUpperCase():null;return xh(G,function(S){return(!R||S.nodeName==R)&&(!Q||typeof S.className==="string"&&g.rH(S.className.split(/\s+/),Q))},!0)}; xh=function(G,X,Q){G&&!Q&&(G=G.parentNode);for(Q=0;G;){if(X(G))return G;G=G.parentNode;Q++}return null}; Gt=function(G){this.N=G||g.i7.document||document}; dSV=function(){this.N=this.bR=null}; zt=function(){}; gy=function(){if(!cq())throw Error();}; cq=function(){return!(!UM||!UM.performance)}; WoS=function(G){return g.kh?"webkit"+G:G.toLowerCase()}; lE=function(G){return function(){return G}}; g.Bq=function(){}; pn7=function(G){var X=X||0;return function(){return G.apply(this,Array.prototype.slice.call(arguments,0,X))}}; Fp=function(G){var X=!1,Q;return function(){X||(Q=G(),X=!0);return Q}}; Cs=function(G){var X=G;return function(){if(X){var Q=X;X=null;Q()}}}; tj=function(G,X,Q){var R=0;return function(S){g.i7.clearTimeout(R);var Z=arguments;R=g.i7.setTimeout(function(){G.apply(Q,Z)},X)}}; V7=function(G,X,Q,R){this.top=G;this.right=X;this.bottom=Q;this.left=R}; IL=function(G){return G.right-G.left}; dy=function(G,X){return G==X?!0:G&&X?G.top==X.top&&G.right==X.right&&G.bottom==X.bottom&&G.left==X.left:!1}; Wq=function(G,X,Q){X instanceof g.Db?(G.left+=X.x,G.right+=X.x,G.top+=X.y,G.bottom+=X.y):(G.left+=X,G.right+=X,typeof Q==="number"&&(G.top+=Q,G.bottom+=Q));return G}; g.ps=function(G,X,Q,R){this.left=G;this.top=X;this.width=Q;this.height=R}; y7=function(G,X){return G==X?!0:G&&X?G.left==X.left&&G.width==X.width&&G.top==X.top&&G.height==X.height:!1}; g.DN=function(G,X,Q){if(typeof X==="string")(X=fs(G,X))&&(G.style[X]=Q);else for(var R in X){Q=G;var S=X[R],Z=fs(Q,R);Z&&(Q.style[Z]=S)}}; fs=function(G,X){var Q=yOl[X];if(!Q){var R=jd7(X);Q=R;G.style[R]===void 0&&(R=(g.kh?"Webkit":NP?"Moz":null)+mSe(R),G.style[R]!==void 0&&(Q=R));yOl[X]=Q}return Q}; g.Aj=function(G,X){var Q=G.style[jd7(X)];return typeof Q!=="undefined"?Q:G.style[fs(G,X)]||""}; ns=function(G,X){var Q=Xp(G);return Q.defaultView&&Q.defaultView.getComputedStyle&&(G=Q.defaultView.getComputedStyle(G,null))?G[X]||G.getPropertyValue(X)||"":""}; $h=function(G,X){return ns(G,X)||(G.currentStyle?G.currentStyle[X]:null)||G.style&&G.style[X]}; g.vq=function(G,X,Q){if(X instanceof g.Db){var R=X.x;X=X.y}else R=X,X=Q;G.style.left=g.bE(R,!1);G.style.top=g.bE(X,!1)}; Jj=function(G){try{return G.getBoundingClientRect()}catch(X){return{left:0,top:0,right:0,bottom:0}}}; fVU=function(G){var X=Xp(G),Q=$h(G,"position"),R=Q=="fixed"||Q=="absolute";for(G=G.parentNode;G&&G!=X;G=G.parentNode)if(G.nodeType==11&&G.host&&(G=G.host),Q=$h(G,"position"),R=R&&Q=="static"&&G!=X.documentElement&&G!=X.body,!R&&(G.scrollWidth>G.clientWidth||G.scrollHeight>G.clientHeight||Q=="fixed"||Q=="absolute"||Q=="relative"))return G;return null}; g.iE=function(G){var X=Xp(G),Q=new g.Db(0,0);if(G==(X?Xp(X):document).documentElement)return Q;G=Jj(G);X=Se(X);X=CLe(X.N);Q.x=G.left+X.x;Q.y=G.top+X.y;return Q}; NH0=function(G,X){var Q=new g.Db(0,0),R=Yh(Xp(G));if(!sdG(R,"parent"))return Q;do{var S=R==X?g.iE(G):DSe(G);Q.x+=S.x;Q.y+=S.y}while(R&&R!=X&&R!=R.parent&&(G=R.frameElement)&&(R=R.parent));return Q}; g.GX=function(G,X){G=AOU(G);X=AOU(X);return new g.Db(G.x-X.x,G.y-X.y)}; DSe=function(G){G=Jj(G);return new g.Db(G.left,G.top)}; AOU=function(G){if(G.nodeType==1)return DSe(G);G=G.changedTouches?G.changedTouches[0]:G;return new g.Db(G.clientX,G.clientY)}; g.XD=function(G,X,Q){if(X instanceof g.AC)Q=X.height,X=X.width;else if(Q==void 0)throw Error("missing height argument");G.style.width=g.bE(X,!0);G.style.height=g.bE(Q,!0)}; g.bE=function(G,X){typeof G=="number"&&(G=(X?Math.round(G):G)+"px");return G}; g.Qj=function(G){var X=n4V;if($h(G,"display")!="none")return X(G);var Q=G.style,R=Q.display,S=Q.visibility,Z=Q.position;Q.visibility="hidden";Q.position="absolute";Q.display="inline";G=X(G);Q.display=R;Q.position=Z;Q.visibility=S;return G}; n4V=function(G){var X=G.offsetWidth,Q=G.offsetHeight,R=g.kh&&!X&&!Q;return(X===void 0||R)&&G.getBoundingClientRect?(G=Jj(G),new g.AC(G.right-G.left,G.bottom-G.top)):new g.AC(X,Q)}; g.Rh=function(G,X){G.style.display=X?"":"none"}; SV=function(G){return G?G.passive&&$S0()?G:G.capture||!1:!1}; Zr=function(G,X,Q,R){return typeof G.addEventListener==="function"?(G.addEventListener(X,Q,SV(R)),!0):!1}; H1=function(G){if(G.prerendering)return 3;var X;return(X={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[G.visibilityState||G.webkitVisibilityState||G.mozVisibilityState||""])!=null?X:0}; baw=function(){}; qB=function(G){try{return!!G&&G.location.href!=null&&sdG(G,"foo")}catch(X){return!1}}; v47=function(G){for(var X=G;G&&G!=G.parent;)G=G.parent,qB(G)&&(X=G);return X}; w1=function(G){G.Hi_=!0;return G}; JOC=function(){return(dg||W$)&&pz?pz.mobile:!hv()&&(Nn("iPod")||Nn("iPhone")||Nn("Android")||Nn("IEMobile"))}; hv=function(){return(dg||W$)&&pz?!pz.mobile&&(Nn("iPad")||Nn("Android")||Nn("Silk")):Nn("iPad")||Nn("Android")&&!Nn("Mobile")||Nn("Silk")}; Lt=function(G,X){if(G)for(var Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&X(G[Q],Q,G)}; GnC=function(){var G=[];Lt(iaX,function(X){G.push(X)}); return G}; X$T=function(G){var X,Q;return(Q=(X=/https?:\/\/[^\/]+/.exec(G))==null?void 0:X[0])!=null?Q:""}; SlU=function(){var G=QBX("IFRAME"),X={};g.vn(Rs7(),function(Q){G.sandbox&&G.sandbox.supports&&G.sandbox.supports(Q)&&(X[Q]=!0)}); return X}; QBX=function(G,X){X=X===void 0?document:X;return X.createElement(String(G).toLowerCase())}; w$i=function(G){G=G||jV();for(var X=new Zze(g.i7.location.href,!1),Q=null,R=G.length-1,S=R;S>=0;--S){var Z=G[S];!Q&&HzG.test(Z.url)&&(Q=Z);if(Z.url&&!Z.N){X=Z;break}}S=null;Z=G.length&&G[R].url;X.depth!==0&&Z&&(S=G[R]);return new qlS(X,S,Q)}; jV=function(){var G=g.i7,X=[],Q=null;do{var R=G;if(qB(R)){var S=R.location.href;Q=R.document&&R.document.referrer||null}else S=Q,Q=null;X.push(new Zze(S||""));try{G=R.parent}catch(Z){G=null}}while(G&&R!==G);R=0;for(G=X.length-1;R<=G;++R)X[R].depth=G-R;R=g.i7;if(R.location&&R.location.ancestorOrigins&&R.location.ancestorOrigins.length===X.length-1)for(G=1;GX&&(X=Q.length);return 3997-X-G.Y.length-1}; uK=function(G,X){this.N=G;this.depth=X}; YlC=function(){function G(w,h){return w==null?h:w} var X=jV(),Q=Math.max(X.length-1,0),R=w$i(X);X=R.N;var S=R.W,Z=R.Y,H=[];Z&&H.push(new uK([Z.url,Z.N?2:0],G(Z.depth,1)));S&&S!=Z&&H.push(new uK([S.url,2],0));X.url&&X!=Z&&H.push(new uK([X.url,0],G(X.depth,Q)));R=g.P1(H,function(w,h){return H.slice(0,H.length-h)}); !X.url||(Z||S)&&X!=Z||(S=X$T(X.url))&&R.push([new uK([S,1],G(X.depth,Q))]);R.push([]);return g.P1(R,function(w){return knX(Q,w)})}; knX=function(G,X){g.so(X,function(S){return S.depth>=0}); var Q=TX(X,function(S,Z){return Math.max(S,Z.depth)},-1),R=cGU(Q+2); R[0]=G;g.vn(X,function(S){return R[S.depth+1]=S.N}); return R}; jBG=function(){var G=G===void 0?YlC():G;return G.map(function(X){return oh(X)})}; MGw=function(G){var X=!1;X=X===void 0?!1:X;UM.google_image_requests||(UM.google_image_requests=[]);var Q=QBX("IMG",UM.document);X&&(Q.attributionSrc="");Q.src=G;UM.google_image_requests.push(Q)}; Kt=function(G){var X="zj";if(G.zj&&G.hasOwnProperty(X))return G.zj;var Q=new G;G.zj=Q;G.hasOwnProperty(X);return Q}; eV=function(){this.W=new baw;this.N=cq()?new gy:new zt}; mnS=function(){r1();var G=UM.document;return!!(G&&G.body&&G.body.getBoundingClientRect&&typeof UM.setInterval==="function"&&typeof UM.clearInterval==="function"&&typeof UM.setTimeout==="function"&&typeof UM.clearTimeout==="function")}; o7S=function(){r1();return jBG()}; umV=function(){}; r1=function(){var G=Kt(umV);if(!G.N){if(!UM)throw Error("Context has not been set and window is undefined.");G.N=Kt(eV)}return G.N}; ah=function(){throw Error("Invalid UTF8");}; PYy=function(G,X){X=String.fromCharCode.apply(null,X);return G==null?X:G+X}; esZ=function(G){var X=!1;X=X===void 0?!1:X;if(sB7){if(X&&(TgG?!G.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(G)))throw Error("Found an unpaired surrogate");G=(KFX||(KFX=new TextEncoder)).encode(G)}else{for(var Q=0,R=new Uint8Array(3*G.length),S=0;S>6|192;else{if(Z>=55296&&Z<=57343){if(Z<=56319&&S=56320&&H<=57343){Z=(Z-55296)*1024+ H-56320+65536;R[Q++]=Z>>18|240;R[Q++]=Z>>12&63|128;R[Q++]=Z>>6&63|128;R[Q++]=Z&63|128;continue}else S--}if(X)throw Error("Found an unpaired surrogate");Z=65533}R[Q++]=Z>>12|224;R[Q++]=Z>>6&63|128}R[Q++]=Z&63|128}}G=Q===R.length?R:R.subarray(0,Q)}return G}; Eo=function(G){g.i7.setTimeout(function(){throw G;},0)}; rii=function(G){return Array.prototype.map.call(G,function(X){X=X.toString(16);return X.length>1?X:"0"+X}).join("")}; aRw=function(G){for(var X=[],Q=0;Q>6|192:((S&64512)==55296&&R+1>18|240,X[Q++]=S>>12&63|128):X[Q++]=S>>12|224,X[Q++]=S>>6&63|128),X[Q++]=S&63|128)}return X}; g.Oo=function(G,X){X===void 0&&(X=0);E70();X=xnZ[X];for(var Q=Array(Math.floor(G.length/3)),R=X[64]||"",S=0,Z=0;S>2];H=X[(H&3)<<4|w>>4];w=X[(w&15)<<2|h>>6];h=X[h&63];Q[Z++]=""+L+H+w+h}L=0;h=R;switch(G.length-S){case 2:L=G[S+1],h=X[(L&15)<<2]||R;case 1:G=G[S],Q[Z]=""+X[G>>2]+X[(G&3)<<4|L>>4]+h+R}return Q.join("")}; g.zX=function(G,X,Q){if(OzG&&!X)G=g.i7.btoa(G);else{for(var R=[],S=0,Z=0;Z255){var w=Error("go/unicode-to-byte-error");if(Q)throw w;R[S++]=H&255;H>>=8}R[S++]=H}G=g.Oo(R,X)}return G}; ciy=function(G){var X=[];zsG(G,function(Q){X.push(Q)}); return X}; c1=function(G){var X=G.length,Q=X*3/4;Q%3?Q=Math.floor(Q):g.B$("=.",G[X-1])&&(Q=g.B$("=.",G[X-2])?Q-2:Q-1);var R=new Uint8Array(Q),S=0;zsG(G,function(Z){R[S++]=Z}); return S!==Q?R.subarray(0,S):R}; zsG=function(G,X){function Q(h){for(;R>4);H!=64&&(X(Z<<4&240|H>>2),w!=64&&X(H<<6&192|w))}}; E70=function(){if(!g1){g1={};for(var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),X=["+/=","+/","-_=","-_.","-_"],Q=0;Q<5;Q++){var R=G.concat(X[Q].split(""));xnZ[Q]=R;for(var S=0;S=X||(R[G]=Q+1,G=Error(),Svl(G,"incident"),Eo(G))}}; Ih=function(G,X,Q){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(Q===void 0?0:Q)&&Symbol.for&&G?Symbol.for(G):G!=null?Symbol(G):Symbol():X}; pt=function(G,X){d1||W1 in G||dnw(G,WFw);G[W1]|=X}; yj=function(G,X){d1||W1 in G||dnw(G,WFw);G[W1]=X}; ft=function(){return typeof BigInt==="function"}; NB=function(G,X){return X===void 0?G.N!==Dr&&!!(2&(G.fO[W1]|0)):!!(2&X)&&G.N!==Dr}; p$y=function(G,X){if(G!=null)if(typeof G==="string")G=G?new Uo(G,lK):B1();else if(G.constructor!==Uo)if(VGS&&G!=null&&G instanceof Uint8Array)G=G.length?new Uo(new Uint8Array(G),lK):B1();else{if(!X)throw Error();G=void 0}return G}; Av=function(G,X){if(typeof X!=="number"||X<0||X>=G.length)throw Error();}; yiV=function(G,X,Q){var R=X&128?0:-1,S=G.length,Z;if(Z=!!S)Z=G[S-1],Z=Z!=null&&typeof Z==="object"&&Z.constructor===Object;var H=S+(Z?-1:0);for(X=X&128?1:0;XX.length)return!1;if(G.lengthS)return!1;if(R>>0;X0=X;Qf=(G-X)/4294967296>>>0}; ZS=function(G){if(G<0){R7(0-G);var X=g.e(SL(X0,Qf));G=X.next().value;X=X.next().value;X0=G>>>0;Qf=X>>>0}else R7(G)}; qp=function(G,X){var Q=X*4294967296+(G>>>0);return Number.isSafeInteger(Q)?Q:HL(G,X)}; AiX=function(G,X){var Q=X&2147483648;Q&&(G=~G+1>>>0,X=~X>>>0,G==0&&(X=X+1>>>0));G=qp(G,X);return typeof G==="number"?Q?-G:G:Q?"-"+G:G}; HL=function(G,X){X>>>=0;G>>>=0;if(X<=2097151)var Q=""+(4294967296*X+G);else ft()?Q=""+(BigInt(X)<>>24|X<<8)&16777215,X=X>>16&65535,G=(G&16777215)+Q*6777216+X*6710656,Q+=X*8147497,X*=2,G>=1E7&&(Q+=G/1E7>>>0,G%=1E7),Q>=1E7&&(X+=Q/1E7>>>0,Q%=1E7),Q=X+n7w(Q)+n7w(G));return Q}; n7w=function(G){G=String(G);return"0000000".slice(G.length)+G}; $ni=function(){var G=X0,X=Qf;X&2147483648?ft()?G=""+(BigInt(X|0)<>>0)):(X=g.e(SL(G,X)),G=X.next().value,X=X.next().value,G="-"+HL(G,X)):G=HL(G,X);return G}; wf=function(G){if(G.length<16)ZS(Number(G));else if(ft())G=BigInt(G),X0=Number(G&BigInt(4294967295))>>>0,Qf=Number(G>>BigInt(32)&BigInt(4294967295));else{var X=+(G[0]==="-");Qf=X0=0;for(var Q=G.length,R=0+X,S=(Q-X)%6+X;S<=Q;R=S,S+=6)R=Number(G.slice(R,S)),Qf*=1E6,X0=X0*1E6+R,X0>=4294967296&&(Qf+=Math.trunc(X0/4294967296),Qf>>>=0,X0>>>=0);X&&(X=g.e(SL(X0,Qf)),G=X.next().value,X=X.next().value,X0=G,Qf=X)}}; SL=function(G,X){X=~X;G?G=~G+1:X+=1;return[G,X]}; hu=function(G){return Array.prototype.slice.call(G)}; Ly=function(G){if(G!=null&&typeof G!=="number")throw Error("Value of float/double field must be a number, found "+typeof G+": "+G);return G}; bzV=function(G){return G.displayName||G.name||"unknown type name"}; kw=function(G){if(G!=null&&typeof G!=="boolean")throw Error("Expected boolean but got "+My7(G)+": "+G);return G}; jL=function(G){switch(typeof G){case "bigint":return!0;case "number":return Yw(G);case "string":return v7y.test(G);default:return!1}}; Jil=function(G){if(typeof G!=="number")throw tv("int32");if(!Yw(G))throw tv("int32");return G|0}; Mp=function(G){return G==null?G:Jil(G)}; mG=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return Yw(G)?G|0:void 0}; o7=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return Yw(G)?G>>>0:void 0}; Xoi=function(G){var X=0;X=X===void 0?0:X;if(!jL(G))throw tv("int64");var Q=typeof G;switch(X){case 512:switch(Q){case "string":return sK(G);case "bigint":return String(TR(64,G));default:return Ky(G)}case 1024:switch(Q){case "string":return izw(G);case "bigint":return GR(TR(64,G));default:return G9C(G)}case 0:switch(Q){case "string":return sK(G);case "bigint":return GR(TR(64,G));default:return eL(G)}default:return Yi(X,"Unknown format requested type for int64")}}; rf=function(G){return G==null?G:Xoi(G)}; Q$T=function(G){if(G[0]==="-")return!1;var X=G.length;return X<20?!0:X===20&&Number(G.substring(0,6))<184467}; RVw=function(G){var X=G.length;return G[0]==="-"?X<20?!0:X===20&&Number(G.substring(0,7))>-922337:X<19?!0:X===19&&Number(G.substring(0,6))<922337}; Srw=function(G){if(G<0){ZS(G);var X=HL(X0,Qf);G=Number(X);return a7(G)?G:X}X=String(G);if(Q$T(X))return X;ZS(G);return qp(X0,Qf)}; ZTy=function(G){if(RVw(G))return G;wf(G);return $ni()}; eL=function(G){jL(G);G=EK(G);a7(G)||(ZS(G),G=AiX(X0,Qf));return G}; Ky=function(G){jL(G);G=EK(G);if(a7(G))G=String(G);else{var X=String(G);RVw(X)?G=X:(ZS(G),G=$ni())}return G}; sK=function(G){jL(G);var X=EK(Number(G));if(a7(X))return String(X);X=G.indexOf(".");X!==-1&&(G=G.substring(0,X));return ZTy(G)}; izw=function(G){var X=EK(Number(G));if(a7(X))return GR(X);X=G.indexOf(".");X!==-1&&(G=G.substring(0,X));return ft()?GR(TR(64,BigInt(G))):GR(ZTy(G))}; G9C=function(G){return a7(G)?GR(eL(G)):GR(Ky(G))}; HTl=function(G){if(G==null)return G;var X=typeof G;if(X==="bigint")return String(TR(64,G));if(jL(G)){if(X==="string")return sK(G);if(X==="number")return eL(G)}}; woX=function(G){if(G==null)return G;var X=typeof G;if(X==="bigint")return String(qrC(64,G));if(jL(G)){if(X==="string")return jL(G),X=EK(Number(G)),a7(X)&&X>=0?G=String(X):(X=G.indexOf("."),X!==-1&&(G=G.substring(0,X)),Q$T(G)||(wf(G),G=HL(X0,Qf))),G;if(X==="number")return jL(G),G=EK(G),G>=0&&a7(G)?G:Srw(G)}}; hV0=function(G){if(G==null||typeof G=="string"||G instanceof Uo)return G}; L37=function(G){if(typeof G!=="string")throw Error();return G}; xw=function(G){if(G!=null&&typeof G!=="string")throw Error();return G}; OK=function(G){return G==null||typeof G==="string"?G:void 0}; zR=function(G,X){if(!(G instanceof X))throw Error("Expected instanceof "+bzV(X)+" but got "+(G&&bzV(G.constructor)));return G}; k9G=function(G,X,Q){if(G!=null&&G[cL]===gf)return G;if(Array.isArray(G)){var R=G[W1]|0;Q=R|Q&32|Q&2;Q!==R&&yj(G,Q);return new X(G)}}; UK=function(G){return G}; BL=function(G){var X=MS(lu);return X?G[X]:void 0}; F0=function(){}; Cy=function(G,X){for(var Q in G)!isNaN(Q)&&X(G,+Q,G[Q])}; YrX=function(G){var X=new F0;Cy(G,function(Q,R,S){X[R]=hu(S)}); X.Om=G.Om;return X}; MSU=function(G,X){X<100||Vj(j$7,1)}; df=function(G,X,Q,R){var S=R!==void 0;R=!!R;var Z=MS(lu),H;!S&&d1&&Z&&(H=G[Z])&&Cy(H,MSU);Z=[];var w=G.length;H=4294967295;var h=!1,L=!!(X&64),k=L?X&128?0:-1:void 0;if(!(X&1)){var Y=w&&G[w-1];Y!=null&&typeof Y==="object"&&Y.constructor===Object?(w--,H=w):Y=void 0;if(L&&!(X&128)&&!S){h=!0;var M;H=((M=tu)!=null?M:UK)(H-k,k,G,Y,void 0)+k}}X=void 0;for(M=0;M=H){var u=M-k,r=void 0;((r=X)!=null?r:X={})[u]=m}else Z[M]=m}if(Y)for(var x in Y)w=Y[x],w!= null&&(w=Q(w,R))!=null&&(M=+x,m=void 0,L&&!Number.isNaN(M)&&(m=M+k)0?void 0:G===0?s$T||(s$T=[0,void 0]):[-G,void 0];case "string":return[0,G];case "object":return G}}; DS=function(G,X,Q){return G=fy(G,X[0],X[1],Q?1:2)}; fy=function(G,X,Q,R){R=R===void 0?0:R;if(G==null){var S=32;Q?(G=[Q],S|=128):G=[];X&&(S=S&-8380417|(X&1023)<<13)}else{if(!Array.isArray(G))throw Error("narr");S=G[W1]|0;if(K3y&&1&S)throw Error("rfarr");2048&S&&!(2&S)&&eVy();if(S&256)throw Error("farr");if(S&64)return R!==0||S&2048||yj(G,S|2048),G;if(Q&&(S|=128,Q!==G[0]))throw Error("mid");a:{Q=G;S|=64;var Z=Q.length;if(Z){var H=Z-1,w=Q[H];if(w!=null&&typeof w==="object"&&w.constructor===Object){X=S&128?0:-1;H-=X;if(H>=1024)throw Error("pvtlmt");for(var h in w)Z= +h,Z1024)throw Error("spvt");S=S&-8380417|(h&1023)<<13}}}S|=64;R===0&&(S|=2048);yj(G,S);return G}; eVy=function(){if(K3y)throw Error("carr");Vj(rCw,5)}; abw=function(G,X){if(typeof G!=="object")return G;if(Array.isArray(G)){var Q=G[W1]|0;G.length===0&&Q&1?G=void 0:Q&2||(!X||4096&Q||16&Q?G=Np(G,Q,!1,X&&!(Q&16)):(pt(G,34),Q&4&&Object.freeze(G)));return G}if(G!=null&&G[cL]===gf)return X=G.fO,Q=X[W1]|0,NB(G,Q)?G:Au(G,X,Q)?ny(G,X):Np(X,Q);if(G instanceof Uo)return G}; ny=function(G,X,Q){G=new G.constructor(X);Q&&(G.N=Dr);G.W=Dr;return G}; Np=function(G,X,Q,R){R!=null||(R=!!(34&X));G=df(G,X,abw,R);R=32;Q&&(R|=2);X=X&8380609|R;yj(G,X);return G}; Eil=function(G){var X=G.fO,Q=X[W1]|0;return NB(G,Q)?Au(G,X,Q)?ny(G,X,!0):new G.constructor(Np(X,Q,!1)):G}; $w=function(G){if(G.N!==Dr)return!1;var X=G.fO;X=Np(X,X[W1]|0);pt(X,2048);G.fO=X;G.N=void 0;G.W=void 0;return!0}; bu=function(G){if(!$w(G)&&NB(G,G.fO[W1]|0))throw Error();}; vL=function(G,X){X===void 0&&(X=G[W1]|0);X&32&&!(X&4096)&&yj(G,X|4096)}; Au=function(G,X,Q){return Q&2?!0:Q&32&&!(Q&4096)?(yj(X,Q|2),G.N=Dr,!0):!1}; iu=function(G,X,Q,R,S){Object.isExtensible(G);X=Ju(G.fO,X,Q,S);if(X!==null||R&&G.W!==Dr)return X}; Ju=function(G,X,Q,R){if(X===-1)return null;var S=X+(Q?0:-1),Z=G.length-1;if(!(Z<1+(Q?0:-1))){if(S>=Z){var H=G[Z];if(H!=null&&typeof H==="object"&&H.constructor===Object){Q=H[X];var w=!0}else if(S===Z)Q=H;else return}else Q=G[S];if(R&&Q!=null){R=R(Q);if(R==null)return R;if(!Object.is(R,Q))return w?H[X]=R:G[S]=R,R}return Q}}; XM=function(G,X,Q,R){bu(G);var S=G.fO;G4(S,S[W1]|0,X,Q,R);return G}; G4=function(G,X,Q,R,S){var Z=Q+(S?0:-1),H=G.length-1;if(H>=1+(S?0:-1)&&Z>=H){var w=G[H];if(w!=null&&typeof w==="object"&&w.constructor===Object)return w[Q]=R,X}if(Z<=H)return G[Z]=R,X;if(R!==void 0){var h;H=((h=X)!=null?h:X=G[W1]|0)>>13&1023||536870912;Q>=H?R!=null&&(Z={},G[H+(S?0:-1)]=(Z[Q]=R,Z)):G[Z]=R}return X}; HX=function(G,X,Q,R,S){var Z=G.fO,H=Z[W1]|0;R=NB(G,H)?1:R;S=!!S||R===3;R===2&&$w(G)&&(Z=G.fO,H=Z[W1]|0);G=Q$(Z,X);var w=G===RS?7:G[W1]|0,h=St(w,H);var L=4&h?!1:!0;if(L){4&h&&(G=hu(G),w=0,h=Ze(h,H),H=G4(Z,H,X,G));for(var k=0,Y=0;k32)for(Q|=(H&127)>>4,R=3;R<32&&H&128;R+=7)H=S[Z++],Q|=(H&127)<>>0,Q>>>0);throw Error();}; pS=function(G,X){G.N=X;if(X>G.Y)throw Error();}; fS=function(G){var X=G.W,Q=G.N,R=X[Q++],S=R&127;if(R&128&&(R=X[Q++],S|=(R&127)<<7,R&128&&(R=X[Q++],S|=(R&127)<<14,R&128&&(R=X[Q++],S|=(R&127)<<21,R&128&&(R=X[Q++],S|=R<<28,R&128&&X[Q++]&128&&X[Q++]&128&&X[Q++]&128&&X[Q++]&128&&X[Q++]&128)))))throw Error();pS(G,Q);return S}; De=function(G){var X=G.W,Q=G.N,R=X[Q+0],S=X[Q+1],Z=X[Q+2];X=X[Q+3];pS(G,G.N+4);return(R<<0|S<<8|Z<<16|X<<24)>>>0}; N5=function(G){var X=De(G);G=De(G);return qp(X,G)}; A6=function(G){var X=De(G),Q=De(G);G=(Q>>31)*2+1;var R=Q>>>20&2047;X=4294967296*(Q&1048575)+X;return R==2047?X?NaN:G*Infinity:R==0?G*4.9E-324*X:G*Math.pow(2,R-1075)*(X+4503599627370496)}; nS=function(G){for(var X=0,Q=G.N,R=Q+10,S=G.W;QG.Y)throw Error();G.N=X;return Q}; IbV=function(G,X){if(X==0)return B1();var Q=tST(G,X);G.EX&&G.C?Q=G.W.subarray(Q,Q+X):(G=G.W,X=Q+X,Q=Q===X?new Uint8Array(0):VSS?G.slice(Q,X):new Uint8Array(G.subarray(Q,X)));return Q.length==0?B1():new Uo(Q,lK)}; bN=function(G,X,Q,R){if($u.length){var S=$u.pop();S.init(G,X,Q,R);G=S}else G=new WX(G,X,Q,R);this.N=G;this.V=this.N.N;this.W=this.Y=-1;dqV(this,R)}; dqV=function(G,X){X=X===void 0?{}:X;G.s2=X.s2===void 0?!1:X.s2}; W3l=function(G,X,Q,R){if(vX.length){var S=vX.pop();dqV(S,R);S.N.init(G,X,Q,R);return S}return new bN(G,X,Q,R)}; poe=function(G){var X=G.N;if(X.N==X.Y)return!1;G.V=G.N.N;var Q=fS(G.N)>>>0;X=Q>>>3;Q&=7;if(!(Q>=0&&Q<=5))throw Error();if(X<1)throw Error();G.Y=X;G.W=Q;return!0}; J6=function(G){switch(G.W){case 0:G.W!=0?J6(G):nS(G.N);break;case 1:G=G.N;pS(G,G.N+8);break;case 2:if(G.W!=2)J6(G);else{var X=fS(G.N)>>>0;G=G.N;pS(G,G.N+X)}break;case 5:G=G.N;pS(G,G.N+4);break;case 3:X=G.Y;do{if(!poe(G))throw Error();if(G.W==4){if(G.Y!=X)throw Error();break}J6(G)}while(1);break;default:throw Error();}}; iN=function(G,X,Q){var R=G.N.Y,S=fS(G.N)>>>0;S=G.N.N+S;var Z=S-R;Z<=0&&(G.N.Y=S,Q(X,G,void 0,void 0,void 0),Z=S-G.N.N);if(Z)throw Error();G.N.N=S;G.N.Y=R}; kV=function(G){var X=fS(G.N)>>>0;G=G.N;var Q=tST(G,X);G=G.W;if(yCS){var R=G,S;(S=G6)||(S=G6=new TextDecoder("utf-8",{fatal:!0}));X=Q+X;R=Q===0&&X===R.length?R:R.subarray(Q,X);try{var Z=S.decode(R)}catch(L){if(LO===void 0){try{S.decode(new Uint8Array([128]))}catch(k){}try{S.decode(new Uint8Array([97])),LO=!0}catch(k){LO=!1}}!LO&&(G6=void 0);throw L;}}else{Z=Q;X=Z+X;Q=[];for(var H=null,w,h;Z=X?ah():(h=G[Z++],w<194||(h&192)!==128?(Z--,ah()):Q.push((w&31)<<6|h&63)): w<240?Z>=X-1?ah():(h=G[Z++],(h&192)!==128||w===224&&h<160||w===237&&h>=160||((S=G[Z++])&192)!==128?(Z--,ah()):Q.push((w&15)<<12|(h&63)<<6|S&63)):w<=244?Z>=X-2?ah():(h=G[Z++],(h&192)!==128||(w<<28)+(h-144)>>30!==0||((S=G[Z++])&192)!==128||((R=G[Z++])&192)!==128?(Z--,ah()):(w=(w&7)<<18|(h&63)<<12|(S&63)<<6|R&63,w-=65536,Q.push((w>>10&1023)+55296,(w&1023)+56320))):ah(),Q.length>=8192&&(H=PYy(H,Q),Q.length=0);Z=PYy(H,Q)}return Z}; fbC=function(G){var X=fS(G.N)>>>0;return IbV(G.N,X)}; YV=function(G,X){this.W=G>>>0;this.N=X>>>0}; NZG=function(G){if(!G)return Dq0||(Dq0=new YV(0,0));if(!/^\d+$/.test(G))return null;wf(G);return new YV(X0,Qf)}; jo=function(G,X){this.W=G>>>0;this.N=X>>>0}; niV=function(G){if(!G)return ACy||(ACy=new jo(0,0));if(!/^-?\d+$/.test(G))return null;wf(G);return new jo(X0,Qf)}; Mm=function(){this.N=[]}; mH=function(G,X,Q){for(;Q>0||X>127;)G.N.push(X&127|128),X=(X>>>7|Q<<25)>>>0,Q>>>=7;G.N.push(X)}; ov=function(G,X){for(;X>127;)G.N.push(X&127|128),X>>>=7;G.N.push(X)}; $qy=function(G,X){if(X>=0)ov(G,X);else{for(var Q=0;Q<9;Q++)G.N.push(X&127|128),X>>=7;G.N.push(1)}}; uZ=function(G,X){G.N.push(X>>>0&255);G.N.push(X>>>8&255);G.N.push(X>>>16&255);G.N.push(X>>>24&255)}; bTC=function(){this.Y=[];this.W=0;this.N=new Mm}; Pb=function(G,X){X.length!==0&&(G.Y.push(X),G.W+=X.length)}; viX=function(G,X){sN(G,X,2);X=G.N.end();Pb(G,X);X.push(G.W);return X}; JCS=function(G,X){var Q=X.pop();for(Q=G.W+G.N.length()-Q;Q>127;)X.push(Q&127|128),Q>>>=7,G.W++;X.push(Q);G.W++}; sN=function(G,X,Q){ov(G.N,X*8+Q)}; iT7=function(G,X,Q){if(Q!=null){switch(typeof Q){case "string":NZG(Q)}sN(G,X,1);switch(typeof Q){case "number":G=G.N;R7(Q);uZ(G,X0);uZ(G,Qf);break;case "bigint":Q=BigInt.asUintN(64,Q);Q=new YV(Number(Q&BigInt(4294967295)),Number(Q>>BigInt(32)));G=G.N;X=Q.N;uZ(G,Q.W);uZ(G,X);break;default:Q=NZG(Q),G=G.N,X=Q.N,uZ(G,Q.W),uZ(G,X)}}}; T6=function(G,X,Q){sN(G,X,2);ov(G.N,Q.length);Pb(G,G.N.end());Pb(G,Q)}; KO=function(){function G(){throw Error();} Object.setPrototypeOf(G,G.prototype);return G}; eo=function(G,X,Q){this.fO=fy(G,X,Q)}; Gte=function(G,X){if(X==null||X=="")return new G;X=JSON.parse(X);if(!Array.isArray(X))throw Error("dnarr");pt(X,32);return new G(X)}; av=function(G,X,Q){this.xL=G;this.hB=X;G=MS(r7);this.N=!!G&&Q===G||!1}; EN=function(G,X){var Q=Q===void 0?r7:Q;return new av(G,X,Q)}; QLG=function(G,X,Q,R,S){X=XqT(X,R);X!=null&&(Q=viX(G,Q),S(X,G),JCS(G,Q))}; z6=function(G,X,Q,R){var S=R[G];if(S)return S;S={};S.nE=R;S.Ue=TZZ(R[0]);var Z=R[1],H=1;Z&&Z.constructor===Object&&(S.extensions=Z,Z=R[++H],typeof Z==="function"&&(S.dl=!0,xV!=null||(xV=Z),ON!=null||(ON=R[H+1]),Z=R[H+=2]));for(var w={};Z&&Array.isArray(Z)&&Z.length&&typeof Z[0]==="number"&&Z[0]>0;){for(var h=0;h>BigInt(32)));mH(G.N,Q.W,Q.N);break;default:Q=niV(X),mH(G.N,Q.W,Q.N)}}}; vb=function(G,X,Q){X=mG(X);X!=null&&X!=null&&(sN(G,Q,0),$qy(G.N,X))}; mPT=function(G,X,Q){X=X==null||typeof X==="boolean"?X:typeof X==="number"?!!X:void 0;X!=null&&(sN(G,Q,0),G.N.N.push(X?1:0))}; ohi=function(G,X,Q){X=OK(X);X!=null&&T6(G,Q,esZ(X))}; upT=function(G,X,Q,R,S){X=XqT(X,R);X!=null&&(Q=viX(G,Q),S(X,G),JCS(G,Q))}; sLi=function(){var G=J3;this.N=PEV;this.isRepeated=0;this.W=r8;this.defaultValue=void 0;this.Y=G.messageId!=null?nt:void 0}; TyC=function(G,X){return function(Q,R){var S={L0:!0};R&&Object.assign(S,R);Q=W3l(Q,void 0,void 0,S);try{var Z=new G,H=Z.fO;lZ(X)(H,Q);var w=Z}finally{Q.free()}return w}}; KlG=function(G){return function(){var X=new bTC;kty(this.fO,X,z6(CO,Fa,t3,G));Pb(X,X.N.end());for(var Q=new Uint8Array(X.W),R=X.Y,S=R.length,Z=0,H=0;H-1)return X.apply(null,g.o0(Q));try{return G.N=G.Y.N.now(),X.apply(null,g.o0(Q))}finally{G.V+=G.Y.N.now()-G.N,G.N=-1,G.W+=1}}}; rjZ=function(G,X){this.W=G;this.Y=X;this.N=new emw(G)}; aNl=function(){this.N={}}; xPT=function(){var G=QR().flags,X=EhU;G=G.N[X.key];if(X.valueType==="proto"){try{var Q=JSON.parse(G);if(Array.isArray(Q))return Q}catch(R){}return X.defaultValue}return typeof G===typeof X.defaultValue?G:X.defaultValue}; ghl=function(){this.Y=void 0;this.W=this.S=0;this.C=-1;this.hW=new aB;El(this.hW,"mv",OsG).N=!0;El(this.hW,"omid",gg);El(this.hW,"epoh",gg).N=!0;El(this.hW,"epph",gg).N=!0;El(this.hW,"umt",gg).N=!0;El(this.hW,"phel",gg).N=!0;El(this.hW,"phell",gg).N=!0;El(this.hW,"oseid",zmX).N=!0;var G=this.hW;G.N.sloi||(G.N.sloi=new eG);G.N.sloi.N=!0;El(this.hW,"mm",Rn);El(this.hW,"ovms",cj7).N=!0;El(this.hW,"xdi",gg).N=!0;El(this.hW,"amp",gg).N=!0;El(this.hW,"prf",gg).N=!0;El(this.hW,"gtx",gg).N=!0;El(this.hW, "mvp_lv",gg).N=!0;El(this.hW,"ssmol",gg).N=!0;El(this.hW,"fmd",gg).N=!0;El(this.hW,"gen204simple",gg);this.N=new rjZ(r1(),this.hW);this.V=!1;this.flags=new aNl}; QR=function(){return Kt(ghl)}; UPl=function(G,X,Q,R){if(Math.random()<(R||G.N))try{if(Q instanceof MB)var S=Q;else S=new MB,Lt(Q,function(H,w){var h=S,L=h.V++;H=m8(w,H);h.N.push(L);h.W[L]=H}); var Z=S.Rt(G.W,"pagead2.googlesyndication.com","/pagead/gen_204?id="+X+"&");Z&&(r1(),MGw(Z))}catch(H){}}; lN7=function(G,X,Q){Q=Q===void 0?{}:Q;this.error=G;this.meta=Q;this.context=X.context;this.msg=X.message||"";this.id=X.id||"jserror"}; ByG=function(){var G=G===void 0?g.i7:G;return(G=G.performance)&&G.now&&G.timing?Math.floor(G.now()+G.timing.navigationStart):g.jZ()}; Fl7=function(){var G=G===void 0?g.i7:G;return(G=G.performance)&&G.now?G.now():null}; CEU=function(G,X,Q){this.label=G;this.type=X;this.value=Q;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; ZW=function(){var G=window;this.events=[];this.W=G||g.i7;var X=null;G&&(G.google_js_reporting_queue=G.google_js_reporting_queue||[],this.events=G.google_js_reporting_queue,X=G.google_measure_js_timing);this.N=S5()||(X!=null?X:Math.random()<1)}; tel=function(G){G&&Hi&&S5()&&(Hi.clearMarks("goog_"+G.label+"_"+G.uniqueId+"_start"),Hi.clearMarks("goog_"+G.label+"_"+G.uniqueId+"_end"))}; qE=function(G,X,Q,R,S,Z,H){var w="";G&&(w+=G+":");Q&&(w+="//",X&&(w+=X+"@"),w+=Q,R&&(w+=":"+R));S&&(w+=S);Z&&(w+="?"+Z);H&&(w+="#"+H);return w}; g.we=function(G){return G.match(VeC)}; INw=function(G){return G?decodeURI(G):G}; g.hN=function(G){return INw(g.we(G)[3]||null)}; L0=function(G){return INw(g.we(G)[5]||null)}; g.dP7=function(G){G=g.we(G);return qE(G[1],G[2],G[3],G[4])}; ka=function(G){G=g.we(G);return qE(null,null,null,null,G[5],G[6],G[7])}; WlV=function(G){var X=G.indexOf("#");return X<0?G:G.slice(0,X)}; Ya=function(G,X){if(G){G=G.split("&");for(var Q=0;Q=0){var Z=G[Q].substring(0,R);S=G[Q].substring(R+1)}else Z=G[Q];X(Z,S?gZ(S):"")}}}; j5=function(G,X){if(!X)return G;var Q=G.indexOf("#");Q<0&&(Q=G.length);var R=G.indexOf("?");if(R<0||R>Q){R=Q;var S=""}else S=G.substring(R+1,Q);G=[G.slice(0,R),S,G.slice(Q)];Q=G[1];G[1]=X?Q?Q+"&"+X:X:Q;return G[0]+(G[1]?"?"+G[1]:"")+G[2]}; ME=function(G,X,Q){if(Array.isArray(X))for(var R=0;R=0&&XQ)S=Q;R+=X.length+1;return gZ(G.slice(R,S!==-1?S:0))}; e5=function(G,X){for(var Q=G.search(sx),R=0,S,Z=[];(S=Pi(G,R,X,Q))>=0;)Z.push(G.substring(R,S)),R=Math.min(G.indexOf("&",S)+1||Q,Q);Z.push(G.slice(R));return Z.join("").replace(fNT,"$1")}; DPG=function(G,X,Q){return uz(e5(G,X),X,Q)}; NyG=function(){var G=re;this.N=an;this.ph="jserror";this.aQ=!0;this.Vq=null;this.W=this.EJ;this.G1=G===void 0?null:G}; AjU=function(G,X,Q){var R=Ex;return Xb(QR().N.N,function(){try{if(R.G1&&R.G1.N){var S=R.G1.start(G.toString(),3);var Z=X();R.G1.end(S)}else Z=X()}catch(w){var H=R.aQ;try{tel(S),H=R.W(G,new xa(Ox(w)),void 0,Q)}catch(h){R.EJ(217,h)}if(!H)throw w;}return Z})()}; z2=function(G,X,Q,R){return Xb(QR().N.N,function(){var S=g.Wl.apply(0,arguments);return AjU(G,function(){return X.apply(Q,S)},R)})}; Ox=function(G){var X=G.toString();G.name&&X.indexOf(G.name)==-1&&(X+=": "+G.name);G.message&&X.indexOf(G.message)==-1&&(X+=": "+G.message);if(G.stack)a:{G=G.stack;var Q=X;try{G.indexOf(Q)==-1&&(G=Q+"\n"+G);for(var R;G!=R;)R=G,G=G.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");X=G.replace(/\n */g,"\n");break a}catch(S){X=Q;break a}X=void 0}return X}; xa=function(G){lN7.call(this,Error(G),{message:G})}; nhy=function(){UM&&typeof UM.google_measure_js_timing!="undefined"&&(UM.google_measure_js_timing||re.disable())}; $PX=function(G){Ex.Vq=function(X){g.vn(G,function(Q){Q(X)})}}; bsV=function(G,X){return AjU(G,X)}; ci=function(G,X){return z2(G,X)}; ge=function(G,X,Q,R){Ex.EJ(G,X,Q,R)}; Ux=function(){return Date.now()-vhi}; JjT=function(){var G=QR().Y,X=lz>=0?Ux()-lz:-1,Q=Bi?Ux()-Fb:-1,R=C0>=0?Ux()-C0:-1;if(G==947190542)return 100;if(G==79463069)return 200;G=[2E3,4E3];var S=[250,500,1E3];ge(637,Error(),.001);var Z=X;Q!=-1&&Q1500&&R<4E3?500:H}; tN=function(G,X,Q){var R=new V7(0,0,0,0);this.time=G;this.volume=null;this.Y=X;this.N=R;this.W=Q}; VR=function(G,X,Q,R,S,Z,H,w){this.V=G;this.J=X;this.Y=Q;this.S=R;this.N=S;this.C=Z;this.W=H;this.T=w}; GXy=function(G){var X=G!==G.top,Q=G.top===v47(G),R=-1,S=0;if(X&&Q&&G.top.mraid){R=3;var Z=G.top.mraid}else R=(Z=G.mraid)?X?Q?2:1:0:-1;Z&&(Z.IS_GMA_SDK||(S=2),lGC(isl,function(H){return typeof Z[H]==="function"})||(S=1)); return{wB:Z,compatibility:S,ssU:R}}; X1e=function(){var G=window.document;return G&&typeof G.elementFromPoint==="function"}; QhC=function(G,X,Q){if(G&&X!==null&&X!=X.top){if(!X.top)return new g.AC(-12245933,-12245933);X=X.top}try{return(Q===void 0?0:Q)?(new g.AC(X.innerWidth,X.innerHeight)).round():BHS(X||window).round()}catch(R){return new g.AC(-12245933,-12245933)}}; In=function(G,X,Q){try{if(G){if(!X.top)return new V7(-12245933,-12245933,-12245933,-12245933);X=X.top}var R=QhC(G,X,Q),S=R.height,Z=R.width;if(Z===-12245933)return new V7(Z,Z,Z,Z);var H=Se(X.document);var w=CLe(H.N);var h=w.x,L=w.y;return new V7(L,h+Z,L+S,h)}catch(k){return new V7(-12245933,-12245933,-12245933,-12245933)}}; de=function(G,X){X=Math.pow(10,X);return Math.floor(G*X)/X}; Rb7=function(G){return new V7(G.top,G.right,G.bottom,G.left)}; Sow=function(G){var X=G.top||0,Q=G.left||0;return new V7(X,Q+(G.width||0),X+(G.height||0),Q)}; Wi=function(G){return G!=null&&G>=0&&G<=1}; Ztl=function(){var G=g.IB();return G?p0("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;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(X){return Fm(G,X)})||Fm(G,"OMI/")&&!Fm(G,"XiaoMi/")?!0:Fm(G,"Presto")&&Fm(G,"Linux")&&!Fm(G,"X11")&&!Fm(G,"Android")&&!Fm(G,"Mobi"):!1}; Hty=function(){this.Y=!qB(UM.top);this.isMobileDevice=hv()||JOC();var G=jV();this.domain=G.length>0&&G[G.length-1]!=null&&G[G.length-1].url!=null?g.hN(G[G.length-1].url)||"":"";this.N=new V7(0,0,0,0);this.V=new g.AC(0,0);this.C=new g.AC(0,0);this.J=new V7(0,0,0,0);this.frameOffset=new g.Db(0,0);this.S=0;this.T=!1;this.W=!(!UM||!GXy(UM).wB);this.update(UM)}; qoT=function(G,X){X&&X.screen&&(G.V=new g.AC(X.screen.width,X.screen.height))}; w1w=function(G,X){a:{var Q=G.N?new g.AC(IL(G.N),G.N.getHeight()):new g.AC(0,0);X=X===void 0?UM:X;X!==null&&X!=X.top&&(X=X.top);var R=0,S=0;try{var Z=X.document,H=Z.body,w=Z.documentElement;if(Z.compatMode=="CSS1Compat"&&w.scrollHeight)R=w.scrollHeight!=Q.height?w.scrollHeight:w.offsetHeight,S=w.scrollWidth!=Q.width?w.scrollWidth:w.offsetWidth;else{var h=w.scrollHeight,L=w.scrollWidth,k=w.offsetHeight,Y=w.offsetWidth;w.clientHeight!=k&&(h=H.scrollHeight,L=H.scrollWidth,k=H.offsetHeight,Y=H.offsetWidth); h>Q.height?h>k?(R=h,S=L):(R=k,S=Y):h0||G.T)return!0;G=r1().W.isVisible();var X=H1(f0)===0;return G||X}; yR=function(){return Kt(Hty)}; NE=function(G){this.Y=G;this.W=0;this.N=null}; AN=function(G,X,Q){this.Y=G;this.SA=Q===void 0?"na":Q;this.C=[];this.isInitialized=!1;this.V=new tN(-1,!0,this);this.N=this;this.T=X;this.AT=this.j=!1;this.Mi="uk";this.DC=!1;this.S=!0}; n0=function(G,X){g.rH(G.C,X)||(G.C.push(X),X.jU(G.N),X.P_(G.V),X.Ul()&&(G.j=!0))}; hbZ=function(G){G=G.N;G.Gv();G.PN();var X=yR();X.J=In(!1,G.Y,X.isMobileDevice);w1w(yR(),G.Y);G.V.N=G.zD()}; L8T=function(G){G.j=G.C.length?p0(G.C,function(X){return X.Ul()}):!1}; kXl=function(G){var X=g.lL(G.C);g.vn(X,function(Q){Q.P_(G.V)})}; $a=function(G){var X=g.lL(G.C);g.vn(X,function(Q){Q.jU(G.N)}); G.N!=G||kXl(G)}; bz=function(G,X,Q,R){this.element=G;this.N=new V7(0,0,0,0);this.Y=null;this.S=new V7(0,0,0,0);this.W=X;this.hW=Q;this.DC=R;this.Yc=!1;this.timestamp=-1;this.j=new VR(X.V,this.element,this.N,new V7(0,0,0,0),0,0,Ux(),0);this.C=void 0}; Yo0=function(G,X){return G.C?new V7(Math.max(X.top+G.C.top,X.top),Math.min(X.left+G.C.right,X.right),Math.min(X.top+G.C.bottom,X.bottom),Math.max(X.left+G.C.left,X.left)):X.clone()}; vi=function(G){this.C=!1;this.N=G;this.V=function(){}}; jhU=function(G,X,Q){this.Y=Q===void 0?0:Q;this.W=G;this.N=X==null?"":X}; MVS=function(G){switch(Math.trunc(G.Y)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; mBi=function(G,X){return G.YX.Y?!1:G.WX.W?!1:typeof G.Ntypeof X.N?!1:G.N0?R[Q]-R[Q-1]:R[Q]})}; LA=function(){this.W=new Sl;this.SA=this.IU=0;this.wb=new RX;this.yH=this.J=-1;this.BM=1E3;this.KO=new Sl([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Mi=this.Yc=-1}; ko=function(G,X){return EN7(G.W,X===void 0?!0:X)}; Yo=function(G,X,Q,R){var S=S===void 0?!1:S;Q=z2(R,Q);Zr(G,X,Q,{capture:S})}; Mx=function(G,X){X=jl(X);return X===0?0:jl(G)/X}; jl=function(G){return Math.max(G.bottom-G.top,0)*Math.max(G.right-G.left,0)}; zbX=function(G,X){if(!G||!X)return!1;for(var Q=0;G!==null&&Q++<100;){if(G===X)return!0;try{if(G=G.parentElement||G){var R=Xp(G),S=R&&Yh(R),Z=S&&S.frameElement;Z&&(G=Z)}}catch(H){break}}return!1}; cvS=function(G,X,Q){if(!G||!X)return!1;X=Wq(G.clone(),-X.left,-X.top);G=(X.left+X.right)/2;X=(X.top+X.bottom)/2;qB(window.top)&&window.top&&window.top.document&&(window=window.top);if(!X1e())return!1;G=window.document.elementFromPoint(G,X);if(!G)return!1;X=(X=(X=Xp(Q))&&X.defaultView&&X.defaultView.frameElement)&&zbX(X,G);var R=G===Q;G=!R&&G&&xh(G,function(S){return S===Q}); return!(X||R||G)}; gNX=function(G,X,Q,R){return yR().Y?!1:IL(G)<=0||G.getHeight()<=0?!0:Q&&R?bsV(208,function(){return cvS(G,X,Q)}):!1}; mt=function(G,X,Q){g.I.call(this);this.position=UBi.clone();this.Ua=this.hM();this.Fp=-2;this.timeCreated=Date.now();this.Ba=-1;this.rK=X;this.W7=null;this.bM=!1;this.Tn=null;this.opacity=-1;this.requestSource=Q;this.ZLb=!1;this.Bm=function(){}; this.xD=function(){}; this.AX=new dSV;this.AX.bR=G;this.AX.N=G;this.eO=!1;this.d8={rT:null,gT:null};this.Ha=!0;this.Yj=null;this.YW=this.Fj=!1;QR().S++;this.zR=this.W3();this.JO=-1;this.SG=null;this.hasCompleted=this.J6=!1;this.hW=new aB;WwG(this.hW);lrT(this);this.requestSource==1?x7(this.hW,"od",1):x7(this.hW,"od",0)}; lrT=function(G){G=G.AX.bR;var X;if(X=G&&G.getAttribute)X=/-[a-z]/.test("googleAvInapp")?!1:B1T&&G.dataset?"googleAvInapp"in G.dataset:G.hasAttribute?G.hasAttribute("data-"+MZG()):!!G.getAttribute("data-"+MZG());X&&(yR().W=!0)}; oX=function(G,X){X!=G.YW&&(G.YW=X,G=yR(),X?G.S++:G.S>0&&G.S--)}; F8y=function(G,X){if(G.SG){if(X.getName()===G.SG.getName())return;G.SG.dispose();G.SG=null}X=X.create(G.AX.N,G.hW,G.Ul());if(X=X!=null&&X.observe()?X:null)G.SG=X}; CKy=function(G,X,Q){if(!G.W7||G.rK==-1||X.W===-1||G.W7.W===-1)return 0;G=X.W-G.W7.W;return G>Q?0:G}; FG7=function(G,X,Q){if(G.SG){G.SG.tD();var R=G.SG.j,S=R.V,Z=S.N;if(R.S!=null){var H=R.Y;G.Tn=new g.Db(H.left-Z.left,H.top-Z.top)}Z=G.lr()?Math.max(R.N,R.C):R.N;H={};S.volume!==null&&(H.volume=S.volume);S=G.Z$(R);G.W7=R;G.GT(Z,X,Q,!1,H,S,R.T)}}; CuC=function(G){if(G.bM&&G.Yj){var X=Ol(G.hW,"od")==1,Q=yR().N,R=G.Yj,S=G.SG?G.SG.getName():"ns",Z=G.Tn,H=new g.AC(IL(Q),Q.getHeight());Q=G.lr();G={lhb:S,Tn:Z,Ikc:H,lr:Q,QD:G.zR.QD,pFT:X};if(X=R.W){X.tD();S=X.j;Z=S.V.N;var w=H=null;S.S!=null&&Z&&(H=S.Y,H=new g.Db(H.left-Z.left,H.top-Z.top),w=new g.AC(Z.right-Z.left,Z.bottom-Z.top));S=Q?Math.max(S.N,S.C):S.N;Q={lhb:X.getName(),Tn:H,Ikc:w,lr:Q,pFT:!1,QD:S}}else Q=null;Q&&ebX(R,G,Q)}}; tL7=function(G,X,Q){X&&(G.Bm=X);Q&&(G.xD=Q)}; g.u_=function(){}; g.PY=function(G){return{value:G,done:!1}}; VLU=function(){this.V=this.N=this.Y=this.W=this.C=0}; IST=function(G){var X={};var Q=g.jZ()-G.C;X=(X.ptlt=Q,X);(Q=G.W)&&(X.pnk=Q);(Q=G.Y)&&(X.pnc=Q);(Q=G.V)&&(X.pnmm=Q);(G=G.N)&&(X.pns=G);return X}; dpZ=function(){iL.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; rJ=function(G){return Wi(G.volume)&&G.volume>0}; aX=function(G,X,Q,R){Q=Q===void 0?!0:Q;R=R===void 0?function(){return!0}:R; return function(S){var Z=S[G];if(Array.isArray(Z)&&R(S))return WGG(Z,X,Q)}}; En=function(G,X){return function(Q){return X(Q)?Q[G]:void 0}}; pLZ=function(G){return function(X){for(var Q=0;Q0?Z[S-1]+1:0,R+1).reduce(function(H,w){return H+w},0)})}; yuG=function(){this.W=this.N=""}; fSG=function(){}; On=function(G,X){var Q={};if(G!==void 0)if(X!=null)for(var R in X){var S=X[R];R in Object.prototype||S!=null&&(Q[R]=typeof S==="function"?S(G):G[S])}else g.sl(Q,G);return Gs(iz(new JN,Q))}; Dpi=function(){var G={};this.W=(G.vs=[1,0],G.vw=[0,1],G.am=[2,2],G.a=[4,4],G.f=[8,8],G.bm=[16,16],G.b=[32,32],G.avw=[0,64],G.avs=[64,0],G.pv=[256,256],G.gdr=[0,512],G.p=[0,1024],G.r=[0,2048],G.m=[0,4096],G.um=[0,8192],G.ef=[0,16384],G.s=[0,32768],G.pmx=[0,16777216],G.mut=[33554432,33554432],G.umutb=[67108864,67108864],G.tvoff=[134217728,134217728],G);this.N={};for(var X in this.W)this.W[X][1]>0&&(this.N[X]=0);this.Y=0}; zs=function(G,X){var Q=G.W[X],R=Q[1];G.Y+=Q[0];R>0&&G.N[X]==0&&(G.N[X]=1)}; NfG=function(G){var X=g.qn(G.W),Q=0,R;for(R in G.N)g.rH(X,R)&&G.N[R]==1&&(Q+=G.W[R][1],G.N[R]=2);return Q}; Auw=function(G){var X=0,Q;for(Q in G.N){var R=G.N[Q];if(R==1||R==2)X+=G.W[Q][1]}return X}; cY=function(){this.N=this.W=0}; gJ=function(){LA.call(this);this.Y=new RX;this.CO=this.j=this.DC=0;this.T=-1;this.bB=new RX;this.C=new RX;this.N=new Sl;this.S=this.V=-1;this.AT=new RX;this.BM=2E3;this.QH=new cY;this.cM=new cY;this.Xm=new cY}; Un=function(G,X,Q){var R=G.CO;Bi||Q||G.T==-1||(R+=X-G.T);return R}; nwX=function(){this.Y=!1}; l_=function(G,X){this.Y=!1;this.V=G;this.j=X;this.C=0}; BY=function(G,X){l_.call(this,G,X);this.J=[]}; $p7=function(){}; Fh=function(){}; t5=function(G,X,Q,R){bz.call(this,G,X,Q,R)}; V0=function(G,X,Q){bz.call(this,null,G,X,Q);this.T=G.isActive();this.J=0}; IX=function(G){return[G.top,G.left,G.bottom,G.right]}; dJ=function(G,X,Q,R,S,Z){Z=Z===void 0?new Fh:Z;mt.call(this,X,Q,R);this.uw=S;this.xY=0;this.Mu={};this.F8=new Dpi;this.SB={};this.bF="";this.Xm=null;this.N9=!1;this.N=[];this.Bh=Z.W();this.S=Z.Y();this.V=null;this.Y=-1;this.SA=this.j=void 0;this.yH=this.AT=0;this.Mi=-1;this.BM=this.cM=!1;this.DC=this.T=this.W=this.ub=this.As=0;new Sl;this.QH=this.CO=0;this.wb=-1;this.Ih=0;this.J=g.Bq;this.Yc=[this.hM()];this.Ps=2;this.Q9={};this.Q9.pause="p";this.Q9.resume="r";this.Q9.skip="s";this.Q9.mute="m";this.Q9.unmute= "um";this.Q9.exitfullscreen="ef";this.C=null;this.KO=this.bB=!1;this.Hs=Math.floor(Date.now()/1E3-1704067200);this.IU=0}; WY=function(G){G.hasCompleted=!0;G.Ih!=0&&(G.Ih=3)}; pA=function(G){return G===void 0?G:Number(G)?de(G,3):0}; y0=function(G,X){return G.Yc[X!=null&&XMath.max(1E4,G.Y/3)?0:X);var Q=G.J(G)||{};Q=Q.currentTime!==void 0?Q.currentTime:G.AT;var R=Q-G.AT,S=0;R>=0?(G.yH+=X,G.QH+=Math.max(X-R,0),S=Math.min(R,G.yH)):G.CO+=Math.abs(R);R!=0&&(G.yH=0);G.wb==-1&&R>0&&(G.wb=C0>=0?Ux()-C0:-1);G.AT=Q;return S}; Ju7=function(G,X){p0(G.S,function(Q){return Q.V==X.V})||G.S.push(X)}; iye=function(G){var X=qx(G.au().N,1);return fA(G,X)}; fA=function(G,X,Q){return X>=15E3?!0:G.cM?(Q===void 0?0:Q)?!0:G.Y>0?X>=G.Y/2:G.Mi>0?X>=G.Mi:!1:!1}; G4w=function(G){var X=de(G.zR.QD,2),Q=G.F8.Y,R=G.zR,S=y0(G),Z=pA(S.V),H=pA(S.S),w=pA(R.volume),h=de(S.J,2),L=de(S.yH,2),k=de(R.QD,2),Y=de(S.Yc,2),M=de(S.Mi,2);R=de(R.JX,2);var m=G.oD().clone().round();G=G.SG&&G.SG.Y?(G.SG?G.SG.Y:null).clone().round():null;S=ko(S,!1);return{akb:X,BQ:Q,Cn:Z,De:H,o2:w,qy:h,Rb:L,QD:k,Gn:Y,Ib:M,JX:R,position:m,FP:G,ih:S}}; QS7=function(G,X){XXS(G.N,X,function(){return{akb:0,BQ:void 0,Cn:-1,De:-1,o2:-1,qy:-1,Rb:-1,QD:-1,Gn:-1,Ib:-1,JX:-1,position:void 0,FP:void 0,ih:[]}}); G.N[X]=G4w(G)}; XXS=function(G,X,Q){for(var R=G.length;R0?1:0;Y.atos= Zm(L.N);Y.ssb=Zm(L.KO,!1);Y.amtos=EN7(L.N,!1);Y.uac=G.As;Y.vpt=L.Y.N;k=="nio"&&(Y.nio=1,Y.avms="nio");Y.gmm="4";Y.gdr=fA(G,L.Y.N,!0)?1:0;Y.efpf=G.Ps;if(k=="gsv"||k=="nis")k=G.SG,k.J>0&&(Y.nnut=k.J);Y.tcm=byl(G);Y.nmt=G.CO;Y.bt=G.QH;Y.pst=G.wb;Y.vpaid=G.j;Y.dur=G.Y;Y.vmtime=G.AT;Y.is=G.F8.Y;G.N.length>=1&&(Y.i0=G.N[0].BQ,Y.a0=[G.N[0].o2],Y.c0=[G.N[0].QD],Y.ss0=[G.N[0].JX],k=G.N[0].position,Z=G.N[0].FP,Y.p0=k?IX(k):void 0,k&&Z&&!dy(Z,k)&&(Y.cp0=IX(Z)));G.N.length>=2&&(Y.i1=G.N[1].BQ,Y.a1=A5(G.N[1].Cn, G.N[1].o2,G.N[1].De),Y.c1=A5(G.N[1].qy,G.N[1].QD,G.N[1].Rb),Y.ss1=A5(G.N[1].Gn,G.N[1].JX,G.N[1].Ib),k=G.N[1].position,Z=G.N[1].FP,Y.p1=k?IX(k):void 0,k&&Z&&!dy(Z,k)&&(Y.cp1=IX(Z)),Y.mtos1=G.N[1].ih);G.N.length>=3&&(Y.i2=G.N[2].BQ,Y.a2=A5(G.N[2].Cn,G.N[2].o2,G.N[2].De),Y.c2=A5(G.N[2].qy,G.N[2].QD,G.N[2].Rb),Y.ss2=A5(G.N[2].Gn,G.N[2].JX,G.N[2].Ib),k=G.N[2].position,Z=G.N[2].FP,Y.p2=k?IX(k):void 0,k&&Z&&!dy(Z,k)&&(Y.cp2=IX(Z)),Y.mtos2=G.N[2].ih);G.N.length>=4&&(Y.i3=G.N[3].BQ,Y.a3=A5(G.N[3].Cn,G.N[3].o2, G.N[3].De),Y.c3=A5(G.N[3].qy,G.N[3].QD,G.N[3].Rb),Y.ss3=A5(G.N[3].Gn,G.N[3].JX,G.N[3].Ib),k=G.N[3].position,Z=G.N[3].FP,Y.p3=k?IX(k):void 0,k&&Z&&!dy(Z,k)&&(Y.cp3=IX(Z)),Y.mtos3=G.N[3].ih);Y.cs=Auw(G.F8);X&&(Y.ic=NfG(G.F8),Y.dvpt=L.Y.W,Y.dvs=h5(L.W,.5),Y.dfvs=h5(L.W,1),Y.davs=h5(L.N,.5),Y.dafvs=h5(L.N,1),Q&&(L.Y.W=0,xBS(L.W),xBS(L.N)),G.wd()&&(Y.dtos=L.DC,Y.dav=L.j,Y.dtoss=G.xY+1,Q&&(L.DC=0,L.j=0,G.xY++)),Y.dat=L.C.W,Y.dft=L.AT.W,Q&&(L.C.W=0,L.AT.W=0));Y.ps=[w.C.width,w.C.height];Y.bs=[IL(w.N),w.N.getHeight()]; Y.scs=[w.V.width,w.V.height];Y.dom=w.domain;G.ub&&(Y.vds=G.ub);if(G.S.length>0||G.Bh)X=g.lL(G.S),G.Bh&&X.push(G.Bh),Y.pings=g.P1(X,function(M){return M.toString()}); X=g.P1(g.xo(G.S,function(M){return M.S()}),function(M){return M.getId()}); ETZ(X);Y.ces=X;G.W&&(Y.vmer=G.W);G.T&&(Y.vmmk=G.T);G.DC&&(Y.vmiec=G.DC);Y.avms=G.SG?G.SG.getName():"ns";G.SG&&g.sl(Y,G.SG.aD());R?(Y.c=de(G.zR.QD,2),Y.ss=de(G.zR.JX,2)):Y.tth=Ux()-HS0;Y.mc=de(L.yH,2);Y.nc=de(L.J,2);Y.mv=pA(L.S);Y.nv=pA(L.V);Y.lte=de(G.Fp,2);R=y0(G,S);ko(L);Y.qmtos=ko(R);Y.qnc=de(R.J,2);Y.qmv=pA(R.S);Y.qnv=pA(R.V);Y.qas=R.V>0?1:0;Y.qi=G.bF;Y.avms||(Y.avms="geo");Y.psm=L.QH.N;Y.psv=L.QH.getValue();Y.psfv=L.cM.getValue();Y.psa=L.Xm.getValue();h=IGC(h.hW);h.length&&(Y.veid=h);G.C&&g.sl(Y, IST(G.C));Y.avas=G.rH();Y.vs=G.VP();Y.co=qJT(G);Y.tm=L.IU;Y.tu=L.SA;return Y}; Riy=function(G,X){if(g.rH(wXU,X))return!0;var Q=G.Mu[X];return Q!==void 0?(G.Mu[X]=!0,!Q):!1}; qJT=function(G){var X=G.IU.toString(10).padStart(2,"0");X=""+G.Hs+X;G.IU<99&&G.IU++;return X}; Lne=function(){this.N={};var G=Yh();nA(this,G,document);var X=hiX();try{if("1"==X){for(var Q=G.parent;Q!=G.top;Q=Q.parent)nA(this,Q,Q.document);nA(this,G.top,G.top.document)}}catch(R){}}; hiX=function(){var G=document.documentElement;try{if(!qB(Yh().top))return"2";var X=[],Q=Yh(G.ownerDocument);for(G=Q;G!=Q.top;G=G.parent)if(G.frameElement)X.push(G.frameElement);else break;return X&&X.length!=0?"1":"0"}catch(R){return"2"}}; nA=function(G,X,Q){Yo(Q,"mousedown",function(){return k4T(G)},301); Yo(X,"scroll",function(){return YJi(G)},302); Yo(Q,"touchmove",function(){return jSl(G)},303); Yo(Q,"mousemove",function(){return MtG(G)},304); Yo(Q,"keydown",function(){return m5Z(G)},305)}; k4T=function(G){g.Gn(G.N,function(X){X.Y>1E5||++X.Y})}; YJi=function(G){g.Gn(G.N,function(X){X.N>1E5||++X.N})}; jSl=function(G){g.Gn(G.N,function(X){X.N>1E5||++X.N})}; m5Z=function(G){g.Gn(G.N,function(X){X.W>1E5||++X.W})}; MtG=function(G){g.Gn(G.N,function(X){X.V>1E5||++X.V})}; ouT=function(){this.N=[];this.W=[]}; $o=function(G,X){return g.Ka(G.N,function(Q){return Q.bF==X})}; uMl=function(G,X){return X?g.Ka(G.N,function(Q){return Q.AX.bR==X}):null}; PNy=function(G,X){return g.Ka(G.W,function(Q){return Q.OW()==2&&Q.bF==X})}; vY=function(){var G=b_;return G.N.length==0?G.W:G.W.length==0?G.N:g.Uv(G.W,G.N)}; sSC=function(G,X){G=X.OW()==1?G.N:G.W;var Q=T3(G,function(R){return R==X}); return Q!=-1?(G.splice(Q,1),X.SG&&X.SG.unobserve(),X.dispose(),!0):!1}; T8S=function(G){var X=b_;if(sSC(X,G)){switch(G.OW()){case 0:var Q=function(){return null}; case 2:Q=function(){return PNy(X,G.bF)}; break;case 1:Q=function(){return $o(X,G.bF)}}for(var R=Q();R;R=Q())sSC(X,R)}}; KnV=function(G){var X=b_;G=g.xo(G,function(Q){return!uMl(X,Q.AX.bR)}); X.N.push.apply(X.N,g.o0(G))}; eiV=function(G){var X=[];g.vn(G,function(Q){p0(b_.N,function(R){return R.AX.bR===Q.AX.bR&&R.bF===Q.bF})||(b_.N.push(Q),X.push(Q))})}; J5=function(){this.N=this.W=null}; r6C=function(G,X){function Q(R,S){X(R,S)} if(G.W==null)return!1;G.N=g.Ka(G.W,function(R){return R!=null&&R.kK()}); G.N&&(G.N.init(Q)?hbZ(G.N.N):X(G.N.N.F3(),G.N));return G.N!=null}; i_=function(G){G=aeS(G);vi.call(this,G.length?G[G.length-1]:new AN(UM,0));this.Y=G;this.W=null}; aeS=function(G){if(!G.length)return[];G=(0,g.xo)(G,function(Q){return Q!=null&&Q.cP()}); for(var X=1;XQ.time?X:Q},G[0])}; RY=function(G){G=G===void 0?UM:G;vi.call(this,new AN(G,2))}; SD=function(){var G=zi0();AN.call(this,UM.top,G,"geo")}; zi0=function(){QR();var G=yR();return G.Y||G.W?0:2}; c6l=function(){}; Zi=function(){this.done=!1;this.N={yg:0,X1:0,gsp:0,WV:0,KT:-1,TW:0,BS:0,Zo:0,S$m:0};this.C=null;this.S=!1;this.Y=null;this.J=0;this.W=new NE(this)}; qZ=function(){var G=Hk;G.S||(G.S=!0,gu0(G,function(){return G.V.apply(G,g.o0(g.Wl.apply(0,arguments)))}),G.V())}; U5l=function(){Kt(c6l);var G=Kt(J5);G.N!=null&&G.N.N?hbZ(G.N.N):yR().update(UM)}; wl=function(G,X,Q){if(!G.done&&(G.W.cancel(),X.length!=0)){G.Y=null;try{U5l();var R=Ux();QR().C=R;if(Kt(J5).N!=null)for(var S=0;S=0?Ux()-lz:-1,w=Ux();S.N.KT==-1&&(H=w);var h=yR(),L=QR(),k=c$(L.hW),Y=vY();try{if(Y.length>0){var M=h.N;M&&(k.bs=[IL(M),M.getHeight()]);var m=h.C;m&&(k.ps=[m.width,m.height]);UM.screen&&(k.scs=[UM.screen.width,UM.screen.height])}else k.url=encodeURIComponent(UM.location.href.substring(0,512)),Z.referrer&&(k.referrer=encodeURIComponent(Z.referrer.substring(0,512))); k.tt=H;k.pt=lz;k.bin=L.W;UM.google_osd_load_pub_page_exp!==void 0&&(k.olpp=UM.google_osd_load_pub_page_exp);k.deb=[1,S.N.yg,S.N.X1,S.N.WV,S.N.KT,0,S.W.W,S.N.TW,S.N.BS,S.N.Zo,S.N.S$m,-1].join(";");k.tvt=B8e(S,w);h.W&&(k.inapp=1);if(UM!==null&&UM!=UM.top){Y.length>0&&(k.iframe_loc=encodeURIComponent(UM.location.href.substring(0,512)));var u=h.J;k.is=[IL(u),u.getHeight()]}}catch(r){k.error=1}Hk.Y=k}M=g.uY(Hk.Y);m=QR().N;Ol(m.Y,"prf")==1?(u=new G2,S=m.N,Z=0,S.N>-1&&(Z=S.Y.N.now()-S.N),u=h6(u,1,Ly(S.V+ Z),0),S=m.N,u=h6(u,5,Mp(S.N>-1?S.W+1:S.W),0),u=h6(u,2,rf(m.W.N.Y()),"0"),u=h6(u,3,rf(m.W.N.W()),"0"),m=h6(u,4,rf(m.W.N.N()),"0"),u={},m=(u.pf=g.Oo(m.Y()),u)):m={};g.sl(M,m);g.sl(X,R,Q,M,G())}])}; ttC=function(){var G=CN7||UM;if(!G)return"";var X=[];if(!G.location||!G.location.href)return"";X.push("url="+encodeURIComponent(G.location.href.substring(0,512)));G.document&&G.document.referrer&&X.push("referrer="+encodeURIComponent(G.document.referrer.substring(0,512)));return X.join("&")}; hW=function(){var G="youtube.player.web_20250811_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250811_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250811_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250811_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),X;if(((X=G)==null?void 0:X.length)==2)return G[1];G="youtube.player.web_20250811_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var Q;return((Q=G)==null?void 0:Q.length)==3?"20"+G[1]+G[2]:null}; Vte=function(){return"av.default_js".includes("ima_html5_sdk")?{IZ:"ima",UW:null}:"av.default_js".includes("ima_native_sdk")?{IZ:"nima",UW:null}:"av.default_js".includes("admob-native-video-javascript")?{IZ:"an",UW:null}:"youtube.player.web_20250811_21_RC00".includes("cast_js_sdk")?{IZ:"cast",UW:hW()}:"youtube.player.web_20250811_21_RC00".includes("youtube.player.web")?{IZ:"yw",UW:hW()}:"youtube.player.web_20250811_21_RC00".includes("outstream_web_client")?{IZ:"out",UW:hW()}:"youtube.player.web_20250811_21_RC00".includes("drx_rewarded_web")? {IZ:"r",UW:hW()}:"youtube.player.web_20250811_21_RC00".includes("gam_native_web_video")?{IZ:"n",UW:hW()}:"youtube.player.web_20250811_21_RC00".includes("admob_interstitial_video")?{IZ:"int",UW:hW()}:{IZ:"j",UW:null}}; YR=function(G,X){var Q={sv:"968"};L3!==null&&(Q.v=L3);Q.cb=IeC;Q.nas=b_.N.length;Q.msg=G;X!==void 0&&(G=d5C(X))&&(Q.e=kR[G]);return Q}; jD=function(G){return Ul(G,"custom_metric_viewable")}; d5C=function(G){var X=jD(G)?"custom_metric_viewable":G.toLowerCase();return jG(Dm,function(Q){return Q==X})}; WnC=function(){this.N=void 0;this.W=!1;this.Y=0;this.V=-1;this.C="tos"}; fei=function(G){try{var X=G.split(",");return X.length>g.qn(pXX).length?null:TX(X,function(Q,R){R=R.toLowerCase().split("=");if(R.length!=2||y6l[R[0]]===void 0||!y6l[R[0]](R[1]))throw Error("Entry ("+R[0]+", "+R[1]+") is invalid.");Q[R[0]]=R[1];return Q},{})}catch(Q){return null}}; D5y=function(G,X){if(G.N==void 0)return 0;switch(G.C){case "mtos":return G.W?wJ(X.N,G.N):wJ(X.W,G.N);case "tos":return G.W?qx(X.N,G.N):qx(X.W,G.N)}return 0}; MZ=function(G,X,Q,R){l_.call(this,X,R);this.J=G;this.T=Q}; mz=function(){}; oY=function(G){l_.call(this,"fully_viewable_audible_half_duration_impression",G)}; u8=function(G){this.N=G}; Pk=function(G,X){l_.call(this,G,X)}; sO=function(G){BY.call(this,"measurable_impression",G)}; TH=function(){u8.apply(this,arguments)}; K3=function(G,X,Q){V0.call(this,G,X,Q)}; eD=function(G){G=G===void 0?UM:G;vi.call(this,new AN(G,2))}; rl=function(G,X,Q){V0.call(this,G,X,Q)}; aY=function(G){G=G===void 0?UM:G;vi.call(this,new AN(G,2))}; EO=function(){AN.call(this,UM,2,"mraid");this.QH=0;this.yH=this.Yc=!1;this.J=null;this.W=GXy(this.Y);this.V.N=new V7(0,0,0,0);this.IU=!1}; xR=function(G,X,Q){G.Cx("addEventListener",X,Q)}; $5X=function(G){QR().V=!!G.Cx("isViewable");xR(G,"viewableChange",N8l);G.Cx("getState")==="loading"?xR(G,"ready",A6Z):nuG(G)}; nuG=function(G){typeof G.W.wB.AFMA_LIDAR==="string"?(G.Yc=!0,bSw(G)):(G.W.compatibility=3,G.J="nc",G.fail("w"))}; bSw=function(G){G.yH=!1;var X=Ol(QR().hW,"rmmt")==1,Q=!!G.Cx("isViewable");(X?!Q:1)&&r1().setTimeout(ci(524,function(){G.yH||(vuU(G),ge(540,Error()),G.J="mt",G.fail("w"))}),500); J6X(G);xR(G,G.W.wB.AFMA_LIDAR,iSG)}; J6X=function(G){var X=Ol(QR().hW,"sneio")==1,Q=G.W.wB.AFMA_LIDAR_EXP_1!==void 0,R=G.W.wB.AFMA_LIDAR_EXP_2!==void 0;(X=X&&R)&&(G.W.wB.AFMA_LIDAR_EXP_2=!0);Q&&(G.W.wB.AFMA_LIDAR_EXP_1=!X)}; vuU=function(G){G.Cx("removeEventListener",G.W.wB.AFMA_LIDAR,iSG);G.Yc=!1}; G6T=function(G,X){if(G.Cx("getState")==="loading")return new g.AC(-1,-1);X=G.Cx(X);if(!X)return new g.AC(-1,-1);G=parseInt(X.width,10);X=parseInt(X.height,10);return isNaN(G)||isNaN(X)?new g.AC(-1,-1):new g.AC(G,X)}; A6Z=function(){try{var G=Kt(EO);G.Cx("removeEventListener","ready",A6Z);nuG(G)}catch(X){ge(541,X)}}; iSG=function(G,X){try{var Q=Kt(EO);Q.yH=!0;var R=G?new V7(G.y,G.x+G.width,G.y+G.height,G.x):new V7(0,0,0,0);var S=Ux(),Z=DW();var H=new tN(S,Z,Q);H.N=R;H.volume=X;Q.P_(H)}catch(w){ge(542,w)}}; N8l=function(G){var X=QR(),Q=Kt(EO);G&&!X.V&&(X.V=!0,Q.IU=!0,Q.J&&Q.fail("w",!0))}; OO=function(){this.isInitialized=!1;this.N=this.W=null;var G={};this.J=(G.start=this.MZ,G.firstquartile=this.HB,G.midpoint=this.VA,G.thirdquartile=this.p9,G.complete=this.yA,G.error=this.WB,G.pause=this.tK,G.resume=this.O7,G.skip=this.h6,G.viewable_impression=this.wK,G.mute=this.gw,G.unmute=this.gw,G.fullscreen=this.Yo,G.exitfullscreen=this.z3,G.fully_viewable_audible_half_duration_impression=this.wK,G.measurable_impression=this.wK,G.abandon=this.tK,G.engagedview=this.wK,G.impression=this.wK,G.creativeview= this.wK,G.progress=this.gw,G.custom_metric_viewable=this.wK,G.bufferstart=this.tK,G.bufferfinish=this.O7,G.audio_measurable=this.wK,G.audio_audible=this.wK,G);G={};this.T=(G.overlay_resize=this.xo,G.abandon=this.kC,G.close=this.kC,G.collapse=this.kC,G.overlay_unmeasurable_impression=function(X){return Nx(X,"overlay_unmeasurable_impression",DW())},G.overlay_viewable_immediate_impression=function(X){return Nx(X,"overlay_viewable_immediate_impression",DW())},G.overlay_unviewable_impression=function(X){return Nx(X, "overlay_unviewable_impression",DW())},G.overlay_viewable_end_of_session_impression=function(X){return Nx(X,"overlay_viewable_end_of_session_impression",DW())},G); QR().W=3;XbS(this);this.Y=null}; zH=function(G,X,Q,R){G=G.vA(null,R,!0,X);G.V=Q;KnV([G]);return G}; QvG=function(G,X,Q){UeZ(X);var R=G.N;g.vn(X,function(S){var Z=g.P1(S.criteria,function(H){var w=fei(H);if(w==null)H=null;else if(H=new WnC,w.visible!=null&&(H.N=w.visible/100),w.audible!=null&&(H.W=w.audible==1),w.time!=null){var h=w.timetype=="mtos"?"mtos":"tos",L=ple(w.time,"%")?"%":"ms";w=parseInt(w.time,10);L=="%"&&(w/=100);H.setTime(w,L,h)}return H}); p0(Z,function(H){return H==null})||Ju7(Q,new MZ(S.id,S.event,Z,R))})}; RPG=function(){var G=[],X=QR();G.push(Kt(SD));Ol(X.hW,"mvp_lv")&&G.push(Kt(EO));X=[new eD,new aY];X.push(new i_(G));X.push(new RY(UM));return X}; SN7=function(G){if(!G.isInitialized){G.isInitialized=!0;try{var X=Ux(),Q=QR(),R=yR();lz=X;Q.Y=79463069;G.W!=="o"&&(CN7=v47(UM));if(mnS()){Hk.N.X1=0;Hk.N.KT=Ux()-X;var S=RPG(),Z=Kt(J5);Z.W=S;r6C(Z,function(){ck()})?Hk.done||(lew(),n0(Z.N.N,G),qZ()):R.Y?ck():qZ()}else gl=!0}catch(H){throw b_.reset(),H; }}}; l8=function(G){Hk.W.cancel();UO=G;Hk.done=!0}; Bk=function(G){if(G.W)return G.W;var X=Kt(J5).N;if(X)switch(X.getName()){case "nis":G.W="n";break;case "gsv":G.W="m"}G.W||(G.W="h");return G.W}; IY=function(G,X,Q){if(G.N==null)return X.ub|=4,!1;G=ZOG(G.N,Q,X);X.ub|=G;return G==0}; ck=function(){var G=[new RY(UM)],X=Kt(J5);X.W=G;r6C(X,function(){l8("i")})?Hk.done||(lew(),qZ()):l8("i")}; HOX=function(G,X){if(!G.N9){var Q=Nx(G,"start",DW());Q=G.uw.N(Q).N;var R={id:"lidarv"};R.r=X;R.sv="968";L3!==null&&(R.v=L3);Ya(Q,function(S,Z){return R[S]=S=="mtos"||S=="tos"?Z:encodeURIComponent(Z)}); X=ttC();Ya(X,function(S,Z){return R[S]=encodeURIComponent(Z)}); X="//pagead2.googlesyndication.com/pagead/gen_204?"+Gs(iz(new JN,R));T1l(X);G.N9=!0}}; dl=function(G,X,Q){wl(Hk,[G],!DW());QS7(G,Q);Q!=4&&XXS(G.Yc,Q,G.hM);return Nx(G,X,DW())}; XbS=function(G){Fnl(function(){var X=qNl();G.W!=null&&(X.sdk=G.W);var Q=Kt(J5);Q.N!=null&&(X.avms=Q.N.getName());return X})}; wbw=function(G,X,Q,R){var S=uMl(b_,Q);S!==null&&S.bF!==X&&(G.C1(S),S=null);S||(X=G.vA(Q,Ux(),!1,X),b_.W.length==0&&(QR().Y=79463069),eiV([X]),S=X,S.V=Bk(G),R&&(S.Xm=R));return S}; hPZ=function(G,X){var Q=G[X];Q!==void 0&&Q>0&&(G[X]=Math.floor(Q*1E3))}; qNl=function(){var G=yR(),X={},Q={},R={};return Object.assign({},(X.sv="968",X),L3!==null&&(Q.v=L3,Q),(R["if"]=G.Y?"1":"0",R.nas=String(b_.N.length),R))}; Wk=function(G){l_.call(this,"audio_audible",G)}; p3=function(G){BY.call(this,"audio_measurable",G)}; yr=function(){u8.apply(this,arguments)}; f3=function(){}; LHX=function(G){this.N=G}; ZOG=function(G,X,Q){G=G.W();if(typeof G==="function"){var R={};var S={};R=Object.assign({},L3!==null&&(R.v=L3,R),(S.sv="968",S.cb=IeC,S.e=k6C(X),S));S=Nx(Q,X,DW());g.sl(R,S);Q.SB[X]=S;R=Q.OW()==2?shl(R).join("&"):Q.uw.N(R).N;try{return G(Q.bF,R,X),0}catch(Z){return 2}}else return 1}; k6C=function(G){var X=jD(G)?"custom_metric_viewable":G;G=jG(Dm,function(Q){return Q==X}); return kR[G]}; Di=function(){OO.call(this);this.S=null;this.C=!1;this.V="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; YNl=function(G,X,Q){Q=Q.opt_configurable_tracking_events;G.N!=null&&Array.isArray(Q)&&QvG(G,Q,X)}; jvU=function(G,X,Q){var R=$o(b_,X);R||(R=Q.opt_nativeTime||-1,R=zH(G,X,Bk(G),R),Q.opt_osdId&&(R.Xm=Q.opt_osdId));return R}; MoU=function(G,X,Q){var R=$o(b_,X);R||(R=zH(G,X,"n",Q.opt_nativeTime||-1));return R}; mmy=function(G,X){var Q=$o(b_,X);Q||(Q=zH(G,X,"h",-1));return Q}; oVT=function(G){QR();switch(Bk(G)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; svT=function(G,X,Q,R){Q=Q===void 0?{}:Q;var S={};g.sl(S,{opt_adElement:void 0,opt_fullscreen:void 0},Q);var Z=G.UU(X,Q);Q=Z?Z.uw:G.uG();if(S.opt_bounds)return Q.N(YR("ol",R));if(R!==void 0)if(d5C(R)!==void 0)if(gl)G=YR("ue",R);else if(SN7(G),UO=="i")G=YR("i",R),G["if"]=0;else if(X=G.UU(X,S)){b:{UO=="i"&&(X.eO=!0);Z=S.opt_fullscreen;Z!==void 0&&oX(X,!!Z);var H;if(Z=!yR().W)(Z=Fm(g.IB(),"CrKey")&&!(Fm(g.IB(),"CrKey")&&Fm(g.IB(),"SmartSpeaker"))||Fm(g.IB(),"PlayStation")||Fm(g.IB(),"Roku")||Ztl()||Fm(g.IB(), "Xbox"))||(Z=g.IB(),Z=Fm(Z,"AppleTV")||Fm(Z,"Apple TV")||Fm(Z,"CFNetwork")||Fm(Z,"tvOS")),Z||(Z=g.IB(),Z=Fm(Z,"sdk_google_atv_x86")||Fm(Z,"Android TV")),Z=!Z;Z&&(r1(),Z=H1(f0)===0);if(H=Z){switch(X.OW()){case 1:HOX(X,"pv");break;case 2:G.Um(X)}l8("pv")}Z=R.toLowerCase();if(H=!H)H=Ol(QR().hW,"ssmol")&&Z==="loaded"?!1:g.rH(uay,Z);if(H&&X.Ih==0){UO!="i"&&(Hk.done=!1);H=S!==void 0?S.opt_nativeTime:void 0;C0=H=typeof H==="number"?H:Ux();X.bM=!0;var w=DW();X.Ih=1;X.Mu={};X.Mu.start=!1;X.Mu.firstquartile= !1;X.Mu.midpoint=!1;X.Mu.thirdquartile=!1;X.Mu.complete=!1;X.Mu.resume=!1;X.Mu.pause=!1;X.Mu.skip=!1;X.Mu.mute=!1;X.Mu.unmute=!1;X.Mu.viewable_impression=!1;X.Mu.measurable_impression=!1;X.Mu.fully_viewable_audible_half_duration_impression=!1;X.Mu.fullscreen=!1;X.Mu.exitfullscreen=!1;X.xY=0;w||(X.au().T=H);wl(Hk,[X],!w)}(H=X.Q9[Z])&&zs(X.F8,H);Ol(QR().hW,"fmd")||g.rH(PZS,Z)&&X.Bh&&X.Bh.W(X,null);switch(X.OW()){case 1:var h=jD(Z)?G.J.custom_metric_viewable:G.J[Z];break;case 2:h=G.T[Z]}if(h&&(R=h.call(G, X,S,R),Ol(QR().hW,"fmd")&&g.rH(PZS,Z)&&X.Bh&&X.Bh.W(X,null),R!==void 0)){S=YR(void 0,Z);g.sl(S,R);R=S;break b}R=void 0}X.Ih==3&&G.C1(X);G=R}else G=YR("nf",R);else G=void 0;else gl?G=YR("ue"):Z?(G=YR(),g.sl(G,SJl(Z,!0,!1,!1))):G=YR("nf");return typeof G==="string"?Q.N():Q.N(G)}; T7i=function(G,X){X&&(G.V=X)}; KHw=function(G){var X={};return X.viewability=G.N,X.googleViewability=G.W,X}; ePe=function(G,X,Q){Q=Q===void 0?{}:Q;G=svT(Kt(Di),X,Q,G);return KHw(G)}; NZ=function(G){var X=g.Wl.apply(1,arguments).filter(Boolean).join("&");if(!X)return G;var Q=G.match(/[?&]adurl=/);return Q?G.slice(0,Q.index+1)+X+"&"+G.slice(Q.index+1):G+(G.indexOf("?")<0?"?":"&")+X}; AW=function(G,X){return X?"&"+G+"="+encodeURIComponent(X):""}; r3l=function(G){var X=G.url;G=G.CRT;this.W=X;this.V=G;this.Y=(new Date).getTime()-17040672E5;this.N={};for(var Q=/[?&]([^&=]+)=([^&]*)/g;G=Q.exec(X);)this.N[G[1]]=G[2]}; a8T=function(G){G=G.V;if(!G)return"";var X=AW("uap",G.platform)+AW("uapv",G.platformVersion)+AW("uafv",G.uaFullVersion)+AW("uaa",G.architecture)+AW("uam",G.model)+AW("uab",G.bitness);G.fullVersionList&&(X+="&uafvl="+encodeURIComponent(G.fullVersionList.map(function(Q){return encodeURIComponent(Q.brand)+";"+encodeURIComponent(Q.version)}).join("|"))); G.wow64!=null&&(X+="&uaw="+Number(G.wow64));return X.slice(1)}; OOV=function(G,X,Q,R,S){var Z=window;var H=H===void 0?!1:H;var w;Q?w=(H===void 0?0:H)?"//ep1.adtrafficquality.google/bg/"+Ur(Q)+".js":"//pagead2.googlesyndication.com/bg/"+Ur(Q)+".js":w="";H=H===void 0?!1:H;Q=Z.document;var h={};X&&(h._scs_=X);h._bgu_=w;h._bgp_=R;h._li_="v_h.3.0.0.0";S&&(h._upb_=S);(X=Z.GoogleTyFxhY)&&typeof X.push=="function"||(X=Z.GoogleTyFxhY=[]);X.push(h);X=Se(Q).createElement("SCRIPT");X.type="text/javascript";X.async=!0;G=(H===void 0?0:H)?g.iA(EVi,Ur(G)+".js"):g.iA(xmT,Ur(G)+ ".js");g.KT(X,G);(Z=(Z.GoogleTyFxhYEET||{})[X.src])?Z():Q.getElementsByTagName("head")[0].appendChild(X)}; zPy=function(){try{var G,X;return!!((G=window)==null?0:(X=G.top)==null?0:X.location.href)&&!1}catch(Q){return!0}}; n3=function(G,X,Q){Q=Q===void 0?Error():Q;var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=G;X+=":";Q instanceof Error?(this.message=X+Q.message,this.stack=Q.stack||""):(this.message=X+String(Q),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; b8=function(){var G=c3S();G=G===void 0?"bevasrsg":G;return new Promise(function(X){var Q=window===window.top?window:zPy()?window:window.top,R=Q[G],S;((S=R)==null?0:S.bevasrs)?X(new $R(R.bevasrs)):(R||(R={},R=(R.nqfbel=[],R),Q[G]=R),R.nqfbel.push(function(Z){X(new $R(Z))}))})}; gVS=function(G){var X={c:G.oZ,e:G.Iv,mc:G.jf,me:G.bu};G.rk&&(X.co={c:G.rk.Qq,a:G.rk.fH,s:G.rk.QW});return X}; vk=function(G){g.I.call(this);this.wpc=G}; $R=function(G){g.I.call(this);var X=this;this.jG=G;this.Y="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.W=void 0;this.t2=this.jG.p;this.V=this.Im.bind(this);this.addOnDisposeCallback(function(){return void Um7(X)})}; l8V=function(G){var X;return g.F(function(Q){if(Q.W==1){if(!G.jG.wpc)throw new n3(30,"NWA");return G.N?Q.return(G.N):g.l(Q,G.jG.wpc(),2)}X=Q.N;G.N=new vk(X);return Q.return(G.N)})}; Um7=function(G){G.W!==void 0&&(G.Y.forEach(function(X){var Q;(Q=G.W)==null||Q.removeEventListener(X,G.V)}),G.W=void 0)}; B7i=function(G){var X=X===void 0?51:X;var Q=[];aS(G,JW,6).forEach(function(R){z4(R,2)<=X&&Q.push(z4(R,1))}); return Q}; FHC=function(G){var X=X===void 0?51:X;var Q=[];aS(G,JW,6).forEach(function(R){z4(R,2)>X&&Q.push(z4(R,1))}); return Q}; CZS=function(G){G.then(function(){},function(){})}; i8=function(){g.I.apply(this,arguments);this.W=1}; GQ=function(G){return{fieldType:2,fieldName:G}}; g.XJ=function(G){return{fieldType:3,fieldName:G}}; tol=function(G){this.N=G;G.Yd("/client_streamz/bg/frs",g.XJ("mk"))}; Vow=function(G){this.N=G;G.Yd("/client_streamz/bg/wrl",g.XJ("mn"),GQ("ac"),GQ("sc"),g.XJ("rk"),g.XJ("mk"))}; I8Z=function(G){this.N=G;G.fg("/client_streamz/bg/ec",g.XJ("en"),g.XJ("mk"))}; dmS=function(G){this.N=G;G.Yd("/client_streamz/bg/el",g.XJ("en"),g.XJ("mk"))}; WHw=function(G){this.N=G;G.fg("/client_streamz/bg/cec",GQ("ec"),g.XJ("mk"))}; pbU=function(G){this.N=G;G.fg("/client_streamz/bg/po/csc",GQ("cs"),g.XJ("mk"))}; y3X=function(G){this.N=G;G.fg("/client_streamz/bg/po/ctav",g.XJ("av"),g.XJ("mk"))}; f80=function(G){this.N=G;G.fg("/client_streamz/bg/po/cwsc",g.XJ("su"),g.XJ("mk"))}; Dm0=function(G){this.fO=fy(G)}; N7w=function(G,X){return zVe(G,X,Jil)}; Q3=function(G){this.fO=fy(G)}; RV=function(G){this.fO=fy(G)}; SW=function(G){this.fO=fy(G)}; Zx=function(G){this.fO=fy(G)}; Hs=function(G){this.fO=fy(G)}; qv=function(G){this.fO=fy(G)}; A3Z=function(G){this.fO=fy(G)}; bO0=function(G){var X=new qv;X=CS(X,1,G.W);var Q=nVX(G);X=zVe(X,Q,L37);Q=[];for(var R=[],S=g.e(G.N.keys()),Z=S.next();!Z.done;Z=S.next())R.push(Z.value.split(","));for(S=0;S>>31)&4294967295;Y=S[0];var u=S[1],r=S[2],x=S[3],c=S[4];for(m=0;m<80;m++){if(m<40)if(m<20){var z=x^u&(r^x);var B=1518500249}else z=u^r^x,B=1859775393;else m<60?(z=u&r|x&(u|r),B=2400959708):(z=u^r^x,B=3395469782);z=((Y<<5|Y>>>27)&4294967295)+z+c+B+M[m]&4294967295;c=x;x=r;r=(u<<30|u>>>2)&4294967295;u=Y;Y=z}S[0]=S[0]+Y&4294967295;S[1]=S[1]+u&4294967295;S[2]= S[2]+r&4294967295;S[3]=S[3]+x&4294967295;S[4]=S[4]+c&4294967295} function Q(Y,M){if(typeof Y==="string"){Y=unescape(encodeURIComponent(Y));for(var m=[],u=0,r=Y.length;u=56;m--)Z[m]=M&255,M>>>=8;X(Z);for(m=M=0;m<5;m++)for(var u=24;u>=0;u-=8)Y[M++]=S[m]>>u&255;return Y} for(var S=[],Z=[],H=[],w=[128],h=1;h<64;++h)w[h]=0;var L,k;G();return{reset:G,update:Q,digest:R,VL:function(){for(var Y=R(),M="",m=0;m1)));H=H.next)S||(Z=H);S&&(Q.N==0&&R==1?NeT(Q,X):(Z?(R=Z,R.next==Q.V&&(Q.V=R),R.next=R.next.next):AN0(Q),naZ(Q,S,3,X)))}G.Y=null}else Ta(G,3,X)}; cp=function(G,X){G.W||G.N!=2&&G.N!=3||$EV(G);G.V?G.V.next=X:G.W=X;G.V=X}; b07=function(G,X,Q,R){var S=xk(null,null,null);S.N=new g.Ey(function(Z,H){S.Y=X?function(w){try{var h=X.call(R,w);Z(h)}catch(L){H(L)}}:Z; S.W=Q?function(w){try{var h=Q.call(R,w);h===void 0&&w instanceof Uy?H(w):Z(h)}catch(L){H(L)}}:H}); S.N.Y=G;cp(G,S);return S.N}; Ta=function(G,X,Q){G.N==0&&(G===Q&&(X=3,Q=new TypeError("Promise cannot resolve to itself")),G.N=1,pil(Q,G.rEp,G.dGO,G)||(G.J=Q,G.N=X,G.Y=null,$EV(G),X!=3||Q instanceof Uy||vaT(G,Q)))}; pil=function(G,X,Q,R){if(G instanceof g.Ey)return DE7(G,X,Q,R),!0;if(G)try{var S=!!G.$goog_Thenable}catch(H){S=!1}else S=!1;if(S)return G.then(X,Q,R),!0;if(g.Hn(G))try{var Z=G.then;if(typeof Z==="function")return JN7(G,Z,X,Q,R),!0}catch(H){return Q.call(R,H),!0}return!1}; JN7=function(G,X,Q,R,S){function Z(h){w||(w=!0,R.call(S,h))} function H(h){w||(w=!0,Q.call(S,h))} var w=!1;try{X.call(G,H,Z)}catch(h){Z(h)}}; $EV=function(G){G.S||(G.S=!0,g.sy(G.F_,G))}; AN0=function(G){var X=null;G.W&&(X=G.W,G.W=X.next,X.next=null);G.W||(G.V=null);return X}; naZ=function(G,X,Q,R){if(Q==3&&X.W&&!X.V)for(;G&&G.C;G=G.Y)G.C=!1;if(X.N)X.N.Y=null,i0i(X,Q,R);else try{X.V?X.Y.call(X.context):i0i(X,Q,R)}catch(S){Gsy.call(null,S)}Bew(WNy,X)}; i0i=function(G,X,Q){X==2?G.Y.call(G.context,Q):G.W&&G.W.call(G.context,Q)}; vaT=function(G,X){G.C=!0;g.sy(function(){G.C&&Gsy.call(null,X)})}; Uy=function(G){od.call(this,G)}; g.lD=function(G,X){g.hJ.call(this);this.BK=G||1;this.Qa=X||g.i7;this.x5=(0,g.La)(this.OLO,this);this.Y6=g.jZ()}; g.Bp=function(G,X,Q){if(typeof G==="function")Q&&(G=(0,g.La)(G,Q));else if(G&&typeof G.handleEvent=="function")G=(0,g.La)(G.handleEvent,G);else throw Error("Invalid listener argument");return Number(X)>2147483647?-1:g.i7.setTimeout(G,X||0)}; Fq=function(G,X){var Q=null;return(new g.Ey(function(R,S){Q=g.Bp(function(){R(X)},G); Q==-1&&S(Error("Failed to schedule timer."))})).EG(function(R){g.i7.clearTimeout(Q); throw R;})}; g.C4=function(G){g.I.call(this);this.J=G;this.V=0;this.Y=100;this.C=!1;this.W=new Map;this.S=new Set;this.flushInterval=3E4;this.N=new g.lD(this.flushInterval);this.N.listen("tick",this.G5,!1,this);g.d(this,this.N)}; XYS=function(G){G.N.enabled||G.N.start();G.V++;G.V>=G.Y&&G.G5()}; QXw=function(G,X){return G.S.has(X)?void 0:G.W.get(X)}; Rjy=function(G){for(var X=0;X2?G.N.statusText:""}catch(Q){X=""}G.V=X+" ["+G.getStatus()+"]";MlS(G)}}finally{p4(G)}}}; p4=function(G,X){if(G.N){G.S&&(clearTimeout(G.S),G.S=null);var Q=G.N;G.N=null;X||G.dispatchEvent("ready");try{Q.onreadystatechange=null}catch(R){}}}; D5=function(G){var X=G.getStatus();a:switch(X){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var Q=!0;break a;default:Q=!1}if(!Q){if(X=X===0)G=g.we(String(G.T))[1]||null,!G&&g.i7.self&&g.i7.self.location&&(G=g.i7.self.location.protocol.slice(0,-1)),X=!uhS.test(G?G.toLowerCase():"");Q=X}return Q}; g.f4=function(G){return G.N?G.N.readyState:0}; g.NJ=function(G){try{return G.N?G.N.responseText:""}catch(X){return""}}; g.AJ=function(G){try{if(!G.N)return null;if("response"in G.N)return G.N.response;switch(G.DC){case "":case "text":return G.N.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in G.N)return G.N.mozResponseArrayBuffer}return null}catch(X){return null}}; g.P_G=function(G){var X={};G=(G.N&&g.f4(G)>=2?G.N.getAllResponseHeaders()||"":"").split("\r\n");for(var Q=0;Q>1,X),Pg(G,G.length>>1)]}; iAC=function(G){var X=g.e(J5i(G,TI));G=X.next().value;X=X.next().value;return G.toString(16)+X.toString(16)}; GHV=function(G,X){var Q=J5i(X);G=new Uint32Array(G.buffer);X=G[0];var R=g.e(Q);Q=R.next().value;R=R.next().value;for(var S=1;S>>8|H<<24,H+=Z|0,H^=w+38293,Z=Z<<3|Z>>>29,Z^=H,h=h>>>8|h<<24,h+=w|0,h^=L+38293,w=w<<3|w>>>29,w^=h;Z=[Z,H];G[S]^=Z[0];S+1=Q?(globalThis.sessionStorage.removeItem(G),["e"]):["a",new Uint8Array(R.buffer,X+4)]}; Ke=function(G,X,Q){Q=Q===void 0?[]:Q;this.maxItems=G;this.N=X===void 0?0:X;this.W=Q}; RQy=function(G){var X=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!X)return new Ke(G);var Q=X.split(",");if(Q.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ke(G);X=Q.slice(1);X.length===1&&X[0]===""&&(X=[]);Q=Number(Q[0]);return isNaN(Q)||Q<0||Q>X.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ke(G)):new Ke(G,Q,X)}; SOT=function(G,X){this.logger=X;try{var Q=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(R){Q=!1}Q&&(this.index=RQy(G))}; Z3G=function(G,X,Q,R,S){var Z=G.index?iD(G.logger,function(){return Xki(G.index,iAC(X),Q,R,S)},"W"):"u"; G.logger.h_(Z)}; H30=function(G,X,Q){var R=g.e(G.index?iD(G.logger,function(){return QYU(iAC(X),Q)},"R"):["u"]),S=R.next().value; R=R.next().value;G.logger.VK(S);return R}; hQ7=function(G){function X(){Q-=R;Q-=S;Q^=S>>>13;R-=S;R-=Q;R^=Q<<8;S-=Q;S-=R;S^=R>>>13;Q-=R;Q-=S;Q^=S>>>12;R-=S;R-=Q;R^=Q<<16;S-=Q;S-=R;S^=R>>>5;Q-=R;Q-=S;Q^=S>>>3;R-=S;R-=Q;R^=Q<<10;S-=Q;S-=R;S^=R>>>15} G=qOe(G);for(var Q=2654435769,R=2654435769,S=314159265,Z=G.length,H=Z,w=0;H>=12;H-=12,w+=12)Q+=eY(G,w),R+=eY(G,w+4),S+=eY(G,w+8),X();S+=Z;switch(H){case 11:S+=G[w+10]<<24;case 10:S+=G[w+9]<<16;case 9:S+=G[w+8]<<8;case 8:R+=G[w+7]<<24;case 7:R+=G[w+6]<<16;case 6:R+=G[w+5]<<8;case 5:R+=G[w+4];case 4:Q+=G[w+3]<<24;case 3:Q+=G[w+2]<<16;case 2:Q+=G[w+1]<<8;case 1:Q+=G[w+0]}X();return wkV.toString(S)}; qOe=function(G){for(var X=[],Q=0;Q>7,G.error.code]);R.set(Q,4);return R}; Uw=function(G,X,Q){rh.call(this,G);this.V=X;this.clientState=Q;this.N="S";this.W="q"}; gh=function(G){return globalThis.TextEncoder?(new TextEncoder).encode(G):g.xN(G)}; kHX=function(G,X,Q){return G instanceof Mf?Ime(G,Q,X,1):G.qB(Q)}; Bg=function(G){g.I.call(this);var X=this;this.Y=new g.wh;this.V=0;this.W=void 0;this.state=2;this.jG=G.jG;this.h4=G.h4;this.S1=Object.assign({},YO7,G.S1||{});this.logger=G.jG.Q6();var Q;this.onError=(Q=G.onError)!=null?Q:function(){}; this.JP=G.JP||!1;if(jYG(G)){var R=this.jG;this.C=function(){return fm7(R).catch(function(H){H=X.reportError(new n3(X.N?20:32,"TRG:Disposed",H));X.W=H;var w;(w=X.N)==null||w.dispose();X.N=void 0;X.Y.reject(H)})}; Dxw(R,function(){return void lw(X)}); R.T===2&&lw(this)}else this.C=G.JaT,lw(this);var S=this.logger.share();S.Nw("o");var Z=new vp(S,"o");this.Y.promise.then(function(){Z.done();S.V_();S.dispose()},function(){return void S.dispose()}); this.addOnDisposeCallback(function(){X.N?(X.N.dispose(),X.N=void 0):X.W?X.logger.V_():(X.W=X.reportError(new n3(32,"TNP:Disposed")),X.logger.V_(),X.Y.reject(X.W))}); g.d(this,this.logger)}; MDZ=function(G,X){if(!(X instanceof n3))if(X instanceof tJ){var Q=Error(X.toString());Q.stack=X.stack;X=new n3(11,"EBH:Error",Q)}else X=new n3(12,"BSO:Unknown",X);return G.reportError(X)}; lw=function(G){var X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u,r;return g.F(function(x){switch(x.W){case 1:X=void 0;G.V++;Q=new g.wh;G.jG instanceof mc&&G.jG.V.push(Q.promise);if(!G.JP){x.pO(2);break}R=new g.wh;setTimeout(function(){return void R.resolve()}); return g.l(x,R.promise,2);case 2:return S=G.logger.share(),g.a0(x,4,5),G.state=5,Z={},H=[],g.l(x,uw(G.jG.snapshot({oZ:Z,CA:H}),G.S1.ahc,function(){return Promise.reject(new n3(15,"MDA:Timeout"))}),7); case 7:w=x.N;if(G.U_())throw new n3(G.N?20:32,"MDA:Disposed");h=H[0];G.state=6;return g.l(x,uw(kHX(G.h4,S,w),G.S1.LS,function(){return Promise.reject(new n3(10,"BWB:Timeout"))}),8); case 8:L=x.N;if(G.U_())throw new n3(G.N?20:32,"BWB:Disposed");G.state=7;X=iD(S,function(){var z=mZi(G,L,Q,h);z.Y.promise.then(function(){return void G.C()}); return z},"i"); case 5:g.FS(x);S.dispose();g.tG(x,6);break;case 4:k=g.cl(x);(Y=X)==null||Y.dispose();if(!G.W){M=MDZ(G,k);Q.resolve();var c;if(c=G.jG instanceof mc&&G.V<2)a:if(k instanceof n3)c=k.code!==32&&k.code!==20&&k.code!==10;else{if(k instanceof tJ)switch(k.code){case 2:case 13:case 14:case 4:break;default:c=!1;break a}c=!0}if(c)return m=(1+Math.random()*.25)*(G.N?6E4:1E3),u=setTimeout(function(){return void G.C()},m),G.addOnDisposeCallback(function(){return void clearTimeout(u)}),x.return(); G.W=M}S.Rh(G.N?13:14);G.Y.reject(G.W);return x.return();case 6:G.state=8,G.V=0,(r=G.N)==null||r.dispose(),G.N=X,G.Y.resolve(),g.rX(x)}})}; mZi=function(G,X,Q,R){var S=cX(X,2)*1E3;if(S<=0)throw new n3(31,"TTM:Invalid");if(g8(X,4))return new zI(G.logger,g8(X,4),S);if(!cX(X,3))return new Ow(G.logger,Ct(w8(X,1)),S);if(!R)throw new n3(4,"PMD:Undefined");R=R(Ct(w8(X,1)));if(!(R instanceof Function))throw new n3(16,"APF:Failed");G.S=Math.floor((Date.now()+S)/1E3);G=new x$(G.logger,R,cX(X,3),S);G.addOnDisposeCallback(function(){return void Q.resolve()}); return G}; oRV=function(G,X){X=X instanceof n3?X:new n3(5,"TVD:error",X);return G.reportError(X)}; Kz0=function(G,X,Q){try{if(G.U_())throw new n3(21,"BNT:disposed");if(!G.N&&G.W)throw G.W;var R,S;return(S=(R=uCw(G,X,Q))!=null?R:P8C(G,X,Q))!=null?S:sYy(G,X,Q)}catch(Z){if(!X.bu)throw oRV(G,Z);return TlG(G,Q,Z)}}; uCw=function(G,X,Q){var R;return(R=G.N)==null?void 0:Ew(R,function(){return FA(G,X)},Q,function(S){var Z; if(G.N instanceof x$&&((Z=X.rk)==null?0:Z.QW))try{var H;(H=G.cache)==null||Z3G(H,FA(G,X),S,X.rk.Qq,G.S-120)}catch(w){G.reportError(new n3(24,"ELX:write",w))}})}; P8C=function(G,X,Q){var R;if((R=X.rk)!=null&&R.fH)try{var S,Z=(S=G.cache)==null?void 0:H30(S,FA(G,X),X.rk.Qq);return Z?Q?iD(G.logger,function(){return g.Oo(Z,2)},"a"):Z:void 0}catch(H){G.reportError(new n3(23,"RXO:read",H))}}; sYy=function(G,X,Q){var R={stack:[],error:void 0,hasError:!1};try{if(!X.jf)throw new n3(29,"SDF:notready");return Ew(P7C(R,new Uw(G.logger,0,G.state)),function(){return FA(G,X)},Q)}catch(S){R.error=S,R.hasError=!0}finally{s0X(R)}}; TlG=function(G,X,Q){var R={stack:[],error:void 0,hasError:!1};try{var S=oRV(G,Q);return Ew(P7C(R,new cg(G.logger,S)),function(){return[]},X)}catch(Z){R.error=Z,R.hasError=!0}finally{s0X(R)}}; FA=function(G,X){return X.Iv?X.Iv:X.oZ?iD(G.logger,function(){return X.Iv=gh(X.oZ)},"c"):[]}; Ce=function(){var G=0,X;return function(Q){X||(X=new GI);var R=new Uw(X,G,1),S=Ew(R,function(){return gh(Q)},!0); R.dispose();G++;return S}}; tl=function(G){this.fO=fy(G)}; eQZ=function(G,X,Q){this.iU=G;this.LB=X;this.metadata=Q}; VV=function(G,X){X=X===void 0?{}:X;this.J1M=G;this.metadata=X;this.status=null}; IC=function(G,X,Q,R,S){this.name=G;this.methodType="unary";this.requestType=X;this.responseType=Q;this.N=R;this.W=S}; dh=function(G){this.fO=fy(G)}; Wg=function(G){this.fO=fy(G)}; pe=function(G){this.fO=fy(G)}; yV=function(G,X){this.J=G.GTp;this.T=X;this.N=G.xhr;this.Y=[];this.C=[];this.S=[];this.V=[];this.W=[];this.J&&rWw(this)}; O3U=function(G,X){var Q=new aiU;g.vs(G.N,"complete",function(){if(D5(G.N)){var R=g.NJ(G.N);if(X&&G.N.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");R=atob(R)}try{var S=G.T(R)}catch(w){fe(G,DY(new tJ(13,"Error when deserializing response data; error: "+w+(", response: "+R)),Q));return}R=SnZ(G.N.getStatus());Nf(G,Al(G));R==0?ERw(G,S):fe(G,DY(new tJ(R,"Xhr succeeded but the status code is not 200"),Q))}else{R=g.NJ(G.N);S=Al(G);if(R){var Z=xZZ(G, R);R=Z.code;var H=Z.details;Z=Z.metadata}else R=2,H="Rpc failed due to xhr error. uri: "+String(G.N.T)+", error code: "+G.N.W+", error: "+G.N.getLastError(),Z=S;Nf(G,S);fe(G,DY(new tJ(R,H,Z),Q))}})}; rWw=function(G){G.J.jg("data",function(X){if("1"in X){var Q=X["1"];try{var R=G.T(Q)}catch(S){fe(G,new tJ(13,"Error when deserializing response data; error: "+S+(", response: "+Q)))}R&&ERw(G,R)}if("2"in X)for(X=xZZ(G,X["2"]),Q=0;Q-1&&G.splice(X,1)}; ERw=function(G,X){for(var Q=0;Q>4&15).toString(16)+(G&15).toString(16)}; ZA=function(G,X){this.W=this.N=null;this.Y=G||null;this.V=!!X}; hx=function(G){G.N||(G.N=new Map,G.W=0,G.Y&&Ya(G.Y,function(X,Q){G.add(gZ(X),Q)}))}; tDU=function(G,X){hx(G);X=LU(G,X);return G.N.has(X)}; g.VDU=function(G,X,Q){G.remove(X);Q.length>0&&(G.Y=null,G.N.set(LU(G,X),g.lL(Q)),G.W=G.W+Q.length)}; LU=function(G,X){X=String(X);G.V&&(X=X.toLowerCase());return X}; BlG=function(G,X){X&&!G.V&&(hx(G),G.Y=null,G.N.forEach(function(Q,R){var S=R.toLowerCase();R!=S&&(this.remove(R),g.VDU(this,S,Q))},G)); G.V=X}; g.Iii=function(G){var X="";g.Gn(G,function(Q,R){X+=R;X+=":";X+=Q;X+="\r\n"}); return X}; g.kx=function(G,X,Q){if(g.Mn(Q))return G;Q=g.Iii(Q);if(typeof G==="string")return uz(G,g.z9(X),Q);g.qO(G,X,Q);return G}; g.Yx=function(G){g.I.call(this);this.W=G;this.N={}}; dZG=function(G,X,Q,R,S,Z){if(Array.isArray(Q))for(var H=0;H=0)return!0;try{var X=new g.iw(G)}catch(Q){return g.Ka(QVS,function(R){return G.search(R)>0})!=null}return X.S.match(R2C)?!0:g.Ka(QVS,function(Q){return G.match(Q)!=null})!=null}; g.Eu=function(G,X){return G.replace(ZMZ,function(Q,R){try{var S=g.mF(X,R);if(S==null||S.toString()==null)return Q;S=S.toString();if(S==""||!g.lY(g.lA(S)))return encodeURIComponent(S).replace(/%2C/g,",")}catch(Z){}return Q})}; xx=function(G,X){return Object.is(G,X)}; zq=function(G){var X=Ou;Ou=G;return X}; HMV=function(G){if(G.c8!==void 0){var X=cW;cW=!0;try{for(var Q=G.c8;Q!==void 0;Q=Q.A0){var R=Q.FI;R.z6||(G=void 0,R.z6=!0,HMV(R),(G=R.XI)==null||G.call(R,R))}}finally{cW=X}}}; qZV=function(){var G;return((G=Ou)==null?void 0:G.Ot)!==!1}; wsG=function(G){G&&(G.DM=void 0,G.DQ=!0);return zq(G)}; LKy=function(G,X){zq(X);if(G){G.DQ=!1;X=G.DM;var Q=X!==void 0?X.Uh:G.producers;if(Q!==void 0){if(gv(G)){do Q=h2w(Q);while(Q!==void 0)}X!==void 0?X.Uh=void 0:G.producers=void 0}}}; kQC=function(G,X){var Q=G.oy,R=gv(G);Q!==void 0?(X.A0=Q.A0,Q.A0=X):(X.A0=void 0,G.c8=X);X.kM=Q;G.oy=X;if(!R)for(G=G.producers;G!==void 0;G=G.Uh)kQC(G.er,G)}; h2w=function(G){var X=G.er,Q=G.Uh,R=G.A0,S=G.kM;G.A0=void 0;G.kM=void 0;R!==void 0?R.kM=S:X.oy=S;if(S!==void 0)S.A0=R;else if(X.c8=R,!gv(X))for(G=X.producers;G!==void 0;)G=h2w(G);return Q}; gv=function(G){return G.w9||G.c8!==void 0}; mvZ=function(G){function X(){a:{if(cW)throw Error("");if(Ou!==null){var R=Ou.DM;if(R===void 0||R.er!==Q){var S=void 0,Z=Ou.DQ;if(Z&&(S=R!==void 0?R.Uh:Ou.producers,S!==void 0&&S.er===Q)){Ou.DM=S;S.K9=Q.version;break a}var H=Q.oy,w;if(!(w=H===void 0||H.FI!==Ou)){if(Z){b:{w=Ou;Z=w.DM;if(Z!==void 0){w=w.producers;do{if(w===H){Z=!0;break b}if(w===Z)break;w=w.Uh}while(w!==void 0)}Z=!1}Z=!Z}w=Z}w&&(Z=gv(Ou),S={er:Q,FI:Ou,Uh:S,kM:H,K9:Q.version,A0:void 0},Ou.DM=S,R!==void 0?R.Uh=S:Ou.producers=S,Z&&kQC(Q, S))}}}return Q.value} var Q=Object.create(YZG);Q.value=G;X[jVG]=Q;return[X,function(R){return MWC(Q,R)}, function(R){if(!qZV())throw Error();MWC(Q,R(Q.value))}]}; MWC=function(G,X){if(!qZV())throw Error();G.t7(G.value,X)||(G.value=X,G.version++,oFl++,HMV(G))}; Uu=function(G,X){X=X===void 0?"":X;G=mvZ(G)[0][jVG];var Q;X=(Q=X)!=null?Q:"[signal]";G.debugName=X}; BW=function(G){g.hJ.call(this);var X=this;this.C=this.W=0;this.eT=G!=null?G:{GR:function(S,Z){return setTimeout(S,Z)}, tX:function(S){clearTimeout(S)}}; var Q,R;this.N=(R=(Q=window.navigator)==null?void 0:Q.onLine)!=null?R:!0;this.Y=function(){return g.F(function(S){return g.l(S,lv(X),0)})}; window.addEventListener("offline",this.Y);window.addEventListener("online",this.Y);this.C||this.VD()}; uJX=function(){var G=g.Ft;BW.instance||(BW.instance=new BW(G));return BW.instance}; lv=function(G,X){return G.V?G.V:G.V=new Promise(function(Q){var R,S,Z,H;return g.F(function(w){switch(w.W){case 1:return R=window.AbortController?new window.AbortController:void 0,Z=(S=R)==null?void 0:S.signal,H=!1,g.a0(w,2,3),R&&(G.W=G.eT.GR(function(){R.abort()},X||2E4)),g.l(w,fetch("/generate_204",{method:"HEAD", signal:Z}),5);case 5:H=!0;case 3:g.FS(w);G.V=void 0;G.W&&(G.eT.tX(G.W),G.W=0);H!==G.N&&(G.N=H,G.N?G.dispatchEvent("networkstatus-online"):G.dispatchEvent("networkstatus-offline"));Q(H);g.tG(w,0);break;case 2:g.cl(w),H=!1,w.pO(3)}})})}; PsU=function(G){this.fO=fy(G)}; CU=function(){this.data=[];this.N=-1}; sVl=function(G){G.N===-1&&(G.N=G.data.reduce(function(X,Q,R){return X+(Q?Math.pow(2,R):0)},0)); return G.N}; tx=function(G){G.setAttribute("role","link")}; Ir=function(G,X){Array.isArray(X)&&(X=X.join(" "));X===""||X==void 0?(VK||(X={},VK=(X.atomic=!1,X.autocomplete="none",X.dropeffect="none",X.haspopup=!1,X.live="off",X.multiline=!1,X.multiselectable=!1,X.orientation="vertical",X.readonly=!1,X.relevant="additions text",X.required=!1,X.sort="none",X.busy=!1,X.disabled=!1,X.hidden=!1,X.invalid="false",X)),X=VK,"label"in X?G.setAttribute("aria-label",X.label):G.removeAttribute("aria-label")):G.setAttribute("aria-label",X)}; dv=function(G){G=G.getAttribute("aria-label");return G==null||G==void 0?"":String(G)}; g.yK=function(G,X,Q){g.I.call(this);this.N=null;this.V=!1;this.S=G;this.C=Q;this.W=X||window;this.Y=(0,g.La)(this.FC,this)}; TFX=function(G){G=G.W;return G.requestAnimationFrame||G.webkitRequestAnimationFrame||G.mozRequestAnimationFrame||G.oRequestAnimationFrame||G.msRequestAnimationFrame||null}; KKV=function(G){G=G.W;return G.cancelAnimationFrame||G.cancelRequestAnimationFrame||G.webkitCancelRequestAnimationFrame||G.mozCancelRequestAnimationFrame||G.oCancelRequestAnimationFrame||G.msCancelRequestAnimationFrame||null}; g.fU=function(G,X,Q){g.I.call(this);this.N=G;this.BK=X||0;this.W=Q;this.Y=(0,g.La)(this.cN,this)}; g.DA=function(G,X){G.isActive()||G.start(X)}; g.NO=function(G){G.stop();G.cN()}; g.Ax=function(G){G.isActive()&&g.NO(G)}; g.nU=function(G,X,Q){g.I.call(this);this.V=Q!=null?G.bind(Q):G;this.BK=X;this.Y=null;this.N=!1;this.W=0;this.G1=null}; $x=function(G){G.G1=g.Bp(function(){G.G1=null;G.N&&!G.W&&(G.N=!1,$x(G))},G.BK); var X=G.Y;G.Y=null;G.V.apply(null,X)}; g.bv=function(G,X){this.N=G[g.i7.Symbol.iterator]();this.W=X}; e27=function(G){return typeof G.className=="string"?G.className:G.getAttribute&&G.getAttribute("class")||""}; vW=function(G){return G.classList?G.classList:e27(G).match(/\S+/g)||[]}; g.Jx=function(G,X){typeof G.className=="string"?G.className=X:G.setAttribute&&G.setAttribute("class",X)}; g.iv=function(G,X){return G.classList?G.classList.contains(X):g.rH(vW(G),X)}; g.Gk=function(G,X){if(G.classList)G.classList.add(X);else if(!g.iv(G,X)){var Q=e27(G);g.Jx(G,Q+(Q.length>0?" "+X:X))}}; g.Xj=function(G,X){if(G.classList)Array.prototype.forEach.call(X,function(S){g.Gk(G,S)}); else{var Q={};Array.prototype.forEach.call(vW(G),function(S){Q[S]=!0}); Array.prototype.forEach.call(X,function(S){Q[S]=!0}); X="";for(var R in Q)X+=X.length>0?" "+R:R;g.Jx(G,X)}}; g.QD=function(G,X){G.classList?G.classList.remove(X):g.iv(G,X)&&g.Jx(G,Array.prototype.filter.call(vW(G),function(Q){return Q!=X}).join(" "))}; g.Rt=function(G,X){G.classList?Array.prototype.forEach.call(X,function(Q){g.QD(G,Q)}):g.Jx(G,Array.prototype.filter.call(vW(G),function(Q){return!g.rH(X,Q)}).join(" "))}; g.S_=function(G,X,Q){Q?g.Gk(G,X):g.QD(G,X)}; rVC=function(G,X){var Q=!g.iv(G,X);g.S_(G,X,Q)}; g.Zw=function(){g.hJ.call(this);this.N=0;this.endTime=this.startTime=null}; axZ=function(G,X){Array.isArray(X)||(X=[X]);X=X.map(function(Q){return typeof Q==="string"?Q:Q.property+" "+Q.duration+"s "+Q.timing+" "+Q.delay+"s"}); g.DN(G,"transition",X.join(","))}; HJ=function(G,X,Q,R,S){g.Zw.call(this);this.W=G;this.C=X;this.S=Q;this.V=R;this.J=Array.isArray(S)?S:[S]}; EFi=function(G,X,Q,R){return new HJ(G,X,{opacity:Q},{opacity:R},{property:"opacity",duration:X,timing:"ease-in",delay:0})}; OMZ=function(G){G=Cz(G);if(G=="")return null;var X=String(G.slice(0,4)).toLowerCase();if(("url("1||G&&G.split(")"),null;if(G.indexOf("(")>0){if(/"|'/.test(G))return null;X=/([\-\w]+)\(/g;for(var Q;Q=X.exec(G);)if(!(Q[1].toLowerCase()in xvy))return null}return G}; qA=function(G,X){G=g.i7[G];return G&&G.prototype?(X=Object.getOwnPropertyDescriptor(G.prototype,X))&&X.get||null:null}; z2U=function(G){var X=g.i7.CSSStyleDeclaration;return X&&X.prototype&&X.prototype[G]||null}; cVX=function(G,X,Q,R){if(G)return G.apply(X,R);if(g.wC&&document.documentMode<10){if(!X[Q].call)throw Error("IE Clobbering detected");}else if(typeof X[Q]!="function")throw Error("Clobbering detected");return X[Q].apply(X,R)}; FK0=function(G){if(!G)return"";var X=document.createElement("div").style;gFG(G).forEach(function(Q){var R=g.kh&&Q in UvT?Q:Q.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Ul(R,"--")||Ul(R,"var")||(Q=cVX(lxZ,G,G.getPropertyValue?"getPropertyValue":"getAttribute",[Q])||"",Q=OMZ(Q),Q!=null&&cVX(BFV,X,X.setProperty?"setProperty":"setAttribute",[R,Q]))}); return X.cssText||""}; gFG=function(G){g.ZV(G)?G=g.lL(G):(G=g.qn(G),g.Ev(G,"cssText"));return G}; g.Ld=function(G){var X,Q=X=0,R=!1;G=G.split(Cs0);for(var S=0;S.4?-1:1;return(X==0?null:X)==-1?"rtl":"ltr"}; g.MA=function(G){if(G instanceof kg||G instanceof Yg||G instanceof j_)return G;if(typeof G.next=="function")return new kg(function(){return G}); if(typeof G[Symbol.iterator]=="function")return new kg(function(){return G[Symbol.iterator]()}); if(typeof G.Kg=="function")return new kg(function(){return G.Kg()}); throw Error("Not an iterator or iterable.");}; kg=function(G){this.W=G}; Yg=function(G){this.W=G}; j_=function(G){kg.call(this,function(){return G}); this.Y=G}; m_=function(G,X,Q,R,S,Z,H,w){this.N=G;this.J=X;this.Y=Q;this.C=R;this.V=S;this.S=Z;this.W=H;this.T=w}; ot=function(G,X){if(X==0)return G.N;if(X==1)return G.W;var Q=fT(G.N,G.Y,X),R=fT(G.Y,G.V,X);G=fT(G.V,G.W,X);Q=fT(Q,R,X);R=fT(R,G,X);return fT(Q,R,X)}; dve=function(G,X){var Q=(X-G.N)/(G.W-G.N);if(Q<=0)return 0;if(Q>=1)return 1;for(var R=0,S=1,Z=0,H=0;H<8;H++){Z=ot(G,Q);var w=(ot(G,Q+1E-6)-Z)/1E-6;if(Math.abs(Z-X)<1E-6)return Q;if(Math.abs(w)<1E-6)break;else Z1E-6&&H<8;H++)Z=0}; g.Tk=function(G){g.I.call(this);this.S=1;this.Y=[];this.V=0;this.N=[];this.W={};this.J=!!G}; psX=function(G,X,Q){g.sy(function(){G.apply(X,Q)})}; g.Kd=function(G){this.N=G}; e_=function(G){this.N=G}; yVV=function(G){this.data=G}; fxS=function(G){return G===void 0||G instanceof yVV?G:new yVV(G)}; rC=function(G){this.N=G}; g.DvG=function(G){var X=G.creation;G=G.expiration;return!!G&&Gg.jZ()}; g.at=function(G){this.N=G}; NFy=function(){}; E_=function(){}; xg=function(G){this.N=G;this.W=null}; O_=function(G){if(G.N==null)throw Error("Storage mechanism: Storage unavailable");G.isAvailable()||Eo(Error("Storage mechanism: Storage unavailable"))}; zk=function(){var G=null;try{G=g.i7.localStorage||null}catch(X){}xg.call(this,G)}; AVi=function(){var G=null;try{G=g.i7.sessionStorage||null}catch(X){}xg.call(this,G)}; cJ=function(G,X){this.W=G;this.N=X+"::"}; g.gC=function(G){var X=new zk;return X.isAvailable()?G?new cJ(X,G):X:null}; U_=function(G,X){this.N=G;this.W=X}; lI=function(G){this.N=[];if(G)a:{if(G instanceof lI){var X=G.iD();G=G.xw();if(this.N.length<=0){for(var Q=this.N,R=0;R>>6:(Z<65536?w[Q++]=224|Z>>>12:(w[Q++]=240|Z>>>18,w[Q++]=128|Z>>>12&63),w[Q++]=128|Z>>> 6&63),w[Q++]=128|Z&63);return w}; tZ=function(G){for(var X=G.length;--X>=0;)G[X]=0}; VD=function(G,X,Q,R,S){this.oF=G;this.X_=X;this.w6=Q;this.o3=R;this.pMB=S;this.i_=G&&G.length}; It=function(G,X){this.HV=G;this.Oo=0;this.Fh=X}; dC=function(G,X){G.s$[G.pending++]=X&255;G.s$[G.pending++]=X>>>8&255}; WJ=function(G,X,Q){G.I$>16-Q?(G.hN|=X<>16-G.I$,G.I$+=Q-16):(G.hN|=X<>>=1,Q<<=1;while(--X>0);return Q>>>1}; JVC=function(G,X,Q){var R=Array(16),S=0,Z;for(Z=1;Z<=15;Z++)R[Z]=S=S+Q[Z-1]<<1;for(Q=0;Q<=X;Q++)S=G[Q*2+1],S!==0&&(G[Q*2]=vFU(R[S]++,S))}; iM7=function(G){var X;for(X=0;X<286;X++)G.y8[X*2]=0;for(X=0;X<30;X++)G.H4[X*2]=0;for(X=0;X<19;X++)G.cK[X*2]=0;G.y8[512]=1;G.Aa=G.Tk=0;G.a9=G.matches=0}; Gay=function(G){G.I$>8?dC(G,G.hN):G.I$>0&&(G.s$[G.pending++]=G.hN);G.hN=0;G.I$=0}; XpS=function(G,X,Q){Gay(G);dC(G,Q);dC(G,~Q);Cd.rj(G.s$,G.window,X,Q,G.pending);G.pending+=Q}; QJC=function(G,X,Q,R){var S=X*2,Z=Q*2;return G[S]>>7)];pd(G,H,Q);w=nd[H];w!==0&&(S-=$g[H],WJ(G,S,w))}}while(R>1;H>=1;H--)yD(G,Q,H);h=Z;do H=G.SI[1],G.SI[1]=G.SI[G.Ph--],yD(G,Q,1),R=G.SI[1],G.SI[--G.tL]=H,G.SI[--G.tL]=R,Q[h*2]=Q[H*2]+Q[R*2],G.depth[h]=(G.depth[H]>=G.depth[R]?G.depth[H]:G.depth[R])+1,Q[H*2+1]=Q[R*2+1]=h,G.SI[1]=h++,yD(G,Q,1);while(G.Ph>= 2);G.SI[--G.tL]=G.SI[1];H=X.HV;h=X.Oo;R=X.Fh.oF;S=X.Fh.i_;Z=X.Fh.X_;var L=X.Fh.w6,k=X.Fh.pMB,Y,M=0;for(Y=0;Y<=15;Y++)G.yc[Y]=0;H[G.SI[G.tL]*2+1]=0;for(X=G.tL+1;X<573;X++){var m=G.SI[X];Y=H[H[m*2+1]*2+1]+1;Y>k&&(Y=k,M++);H[m*2+1]=Y;if(!(m>h)){G.yc[Y]++;var u=0;m>=L&&(u=Z[m-L]);var r=H[m*2];G.Aa+=r*(Y+u);S&&(G.Tk+=r*(R[m*2+1]+u))}}if(M!==0){do{for(Y=k-1;G.yc[Y]===0;)Y--;G.yc[Y]--;G.yc[Y+1]+=2;G.yc[k]--;M-=2}while(M>0);for(Y=k;Y!==0;Y--)for(m=G.yc[Y];m!==0;)R=G.SI[--X],R>h||(H[R*2+1]!==Y&&(G.Aa+=(Y- H[R*2+1])*H[R*2],H[R*2+1]=Y),m--)}JVC(Q,w,G.yc)}; SyX=function(G,X,Q){var R,S=-1,Z=X[1],H=0,w=7,h=4;Z===0&&(w=138,h=3);X[(Q+1)*2+1]=65535;for(R=0;R<=Q;R++){var L=Z;Z=X[(R+1)*2+1];++H>>=1)if(X&1&&G.y8[Q*2]!==0)return 0;if(G.y8[18]!==0||G.y8[20]!==0||G.y8[26]!==0)return 1;for(Q=32;Q<256;Q++)if(G.y8[Q*2]!==0)return 1;return 0}; vJ=function(G,X,Q){G.s$[G.B8+G.a9*2]=X>>>8&255;G.s$[G.B8+G.a9*2+1]=X&255;G.s$[G.oB+G.a9]=Q&255;G.a9++;X===0?G.y8[Q*2]++:(G.matches++,X--,G.y8[(fd[Q]+256+1)*2]++,G.H4[(X<256?AZ[X]:AZ[256+(X>>>7)])*2]++);return G.a9===G.xQ-1}; iI=function(G,X){G.msg=JZ[X];return X}; G0=function(G){for(var X=G.length;--X>=0;)G[X]=0}; Xr=function(G){var X=G.state,Q=X.pending;Q>G.TF&&(Q=G.TF);Q!==0&&(Cd.rj(G.output,X.s$,X.N3,Q,G.L_),G.L_+=Q,X.N3+=Q,G.L8+=Q,G.TF-=Q,X.pending-=Q,X.pending===0&&(X.N3=0))}; Sp=function(G,X){var Q=G.AC>=0?G.AC:-1,R=G.hs-G.AC,S=0;if(G.level>0){G.Cd.YY===2&&(G.Cd.YY=H4V(G));bI(G,G.Ny);bI(G,G.vH);SyX(G,G.y8,G.Ny.Oo);SyX(G,G.H4,G.vH.Oo);bI(G,G.Vd);for(S=18;S>=3&&G.cK[qyZ[S]*2+1]===0;S--);G.Aa+=3*(S+1)+5+5+4;var Z=G.Aa+3+7>>>3;var H=G.Tk+3+7>>>3;H<=Z&&(Z=H)}else Z=H=R+5;if(R+4<=Z&&Q!==-1)WJ(G,X?1:0,3),XpS(G,Q,R);else if(G.strategy===4||H===Z)WJ(G,2+(X?1:0),3),RWX(G,QP,RZ);else{WJ(G,4+(X?1:0),3);Q=G.Ny.Oo+1;R=G.vH.Oo+1;S+=1;WJ(G,Q-257,5);WJ(G,R-1,5);WJ(G,S-4,4);for(Z=0;Z>>8&255;G.s$[G.pending++]=X&255}; wpG=function(G,X){var Q=G.JQ,R=G.hs,S=G.S8,Z=G.NL,H=G.hs>G.zZ-262?G.hs-(G.zZ-262):0,w=G.window,h=G.gG,L=G.RL,k=G.hs+258,Y=w[R+S-1],M=w[R+S];G.S8>=G.xl&&(Q>>=2);Z>G.wh&&(Z=G.wh);do{var m=X;if(w[m+S]===M&&w[m+S-1]===Y&&w[m]===w[R]&&w[++m]===w[R+1]){R+=2;for(m++;w[++R]===w[++m]&&w[++R]===w[++m]&&w[++R]===w[++m]&&w[++R]===w[++m]&&w[++R]===w[++m]&&w[++R]===w[++m]&&w[++R]===w[++m]&&w[++R]===w[++m]&&RS){G.eP=X;S=m;if(m>=Z)break;Y=w[R+S-1];M=w[R+S]}}}while((X=L[X&h])>H&&--Q!== 0);return S<=G.wh?S:G.wh}; hD=function(G){var X=G.zZ,Q;do{var R=G.P6-G.wh-G.hs;if(G.hs>=X+(X-262)){Cd.rj(G.window,G.window,X,X,0);G.eP-=X;G.hs-=X;G.AC-=X;var S=Q=G.kx;do{var Z=G.head[--S];G.head[S]=Z>=X?Z-X:0}while(--Q);S=Q=X;do Z=G.RL[--S],G.RL[S]=Z>=X?Z-X:0;while(--Q);R+=X}if(G.Cd.xU===0)break;S=G.Cd;Q=G.window;Z=G.hs+G.wh;var H=S.xU;H>R&&(H=R);H===0?Q=0:(S.xU-=H,Cd.rj(Q,S.input,S.Q2,H,Z),S.state.wrap===1?S.HZ=qV(S.HZ,Q,H,Z):S.state.wrap===2&&(S.HZ=wi(S.HZ,Q,H,Z)),S.Q2+=H,S.DS+=H,Q=H);G.wh+=Q;if(G.wh+G.Jo>=3)for(R=G.hs-G.Jo, G.cZ=G.window[R],G.cZ=(G.cZ<=3&&(G.cZ=(G.cZ<=3)if(Q=vJ(G,G.hs-G.eP,G.Nd-3),G.wh-=G.Nd,G.Nd<=G.Xp&&G.wh>=3){G.Nd--;do G.hs++,G.cZ=(G.cZ<=3&&(G.cZ=(G.cZ<4096)&&(G.Nd=2));if(G.S8>=3&&G.Nd<=G.S8){R=G.hs+G.wh-3;Q=vJ(G,G.hs-1-G.Ro,G.S8-3);G.wh-=G.S8-1;G.S8-=2;do++G.hs<=R&&(G.cZ=(G.cZ<=3&&G.hs>0&&(R=G.hs-1,Q=Z[R],Q===Z[++R]&&Q===Z[++R]&&Q===Z[++R])){for(S=G.hs+258;Q===Z[++R]&&Q===Z[++R]&&Q===Z[++R]&&Q===Z[++R]&&Q===Z[++R]&&Q===Z[++R]&&Q===Z[++R]&&Q===Z[++R]&&RG.wh&&(G.Nd=G.wh)}G.Nd>=3?(Q=vJ(G,1,G.Nd-3),G.wh-=G.Nd,G.hs+=G.Nd,G.Nd=0):(Q=vJ(G,0,G.window[G.hs]),G.wh--,G.hs++);if(Q&&(Sp(G,!1),G.Cd.TF===0))return 1}G.Jo=0;return X=== 4?(Sp(G,!0),G.Cd.TF===0?3:4):G.a9&&(Sp(G,!1),G.Cd.TF===0)?1:2}; La7=function(G,X){for(var Q;;){if(G.wh===0&&(hD(G),G.wh===0)){if(X===0)return 1;break}G.Nd=0;Q=vJ(G,0,G.window[G.hs]);G.wh--;G.hs++;if(Q&&(Sp(G,!1),G.Cd.TF===0))return 1}G.Jo=0;return X===4?(Sp(G,!0),G.Cd.TF===0?3:4):G.a9&&(Sp(G,!1),G.Cd.TF===0)?1:2}; Yr=function(G,X,Q,R,S){this.cL=G;this.MAd=X;this.PBp=Q;this.hdC=R;this.func=S}; kaG=function(){this.Cd=null;this.status=0;this.s$=null;this.wrap=this.pending=this.N3=this.QX=0;this.Nj=null;this.qX=0;this.method=8;this.C_=-1;this.gG=this.ME=this.zZ=0;this.window=null;this.P6=0;this.head=this.RL=null;this.NL=this.xl=this.strategy=this.level=this.Xp=this.JQ=this.S8=this.wh=this.eP=this.hs=this.Y4=this.Ro=this.Nd=this.AC=this.qQ=this.l5=this.Fr=this.kx=this.cZ=0;this.y8=new Cd.LD(1146);this.H4=new Cd.LD(122);this.cK=new Cd.LD(78);G0(this.y8);G0(this.H4);G0(this.cK);this.Vd=this.vH= this.Ny=null;this.yc=new Cd.LD(16);this.SI=new Cd.LD(573);G0(this.SI);this.tL=this.Ph=0;this.depth=new Cd.LD(573);G0(this.depth);this.I$=this.hN=this.Jo=this.matches=this.Tk=this.Aa=this.B8=this.a9=this.xQ=this.oB=0}; Yye=function(G,X){if(!G||!G.state||X>5||X<0)return G?iI(G,-2):-2;var Q=G.state;if(!G.output||!G.input&&G.xU!==0||Q.status===666&&X!==4)return iI(G,G.TF===0?-5:-2);Q.Cd=G;var R=Q.C_;Q.C_=X;if(Q.status===42)if(Q.wrap===2)G.HZ=0,Zo(Q,31),Zo(Q,139),Zo(Q,8),Q.Nj?(Zo(Q,(Q.Nj.text?1:0)+(Q.Nj.iR?2:0)+(Q.Nj.extra?4:0)+(Q.Nj.name?8:0)+(Q.Nj.comment?16:0)),Zo(Q,Q.Nj.time&255),Zo(Q,Q.Nj.time>>8&255),Zo(Q,Q.Nj.time>>16&255),Zo(Q,Q.Nj.time>>24&255),Zo(Q,Q.level===9?2:Q.strategy>=2||Q.level<2?4:0),Zo(Q,Q.Nj.os& 255),Q.Nj.extra&&Q.Nj.extra.length&&(Zo(Q,Q.Nj.extra.length&255),Zo(Q,Q.Nj.extra.length>>8&255)),Q.Nj.iR&&(G.HZ=wi(G.HZ,Q.s$,Q.pending,0)),Q.qX=0,Q.status=69):(Zo(Q,0),Zo(Q,0),Zo(Q,0),Zo(Q,0),Zo(Q,0),Zo(Q,Q.level===9?2:Q.strategy>=2||Q.level<2?4:0),Zo(Q,3),Q.status=113);else{var S=8+(Q.ME-8<<4)<<8;S|=(Q.strategy>=2||Q.level<2?0:Q.level<6?1:Q.level===6?2:3)<<6;Q.hs!==0&&(S|=32);Q.status=113;HO(Q,S+(31-S%31));Q.hs!==0&&(HO(Q,G.HZ>>>16),HO(Q,G.HZ&65535));G.HZ=1}if(Q.status===69)if(Q.Nj.extra){for(S= Q.pending;Q.qX<(Q.Nj.extra.length&65535)&&(Q.pending!==Q.QX||(Q.Nj.iR&&Q.pending>S&&(G.HZ=wi(G.HZ,Q.s$,Q.pending-S,S)),Xr(G),S=Q.pending,Q.pending!==Q.QX));)Zo(Q,Q.Nj.extra[Q.qX]&255),Q.qX++;Q.Nj.iR&&Q.pending>S&&(G.HZ=wi(G.HZ,Q.s$,Q.pending-S,S));Q.qX===Q.Nj.extra.length&&(Q.qX=0,Q.status=73)}else Q.status=73;if(Q.status===73)if(Q.Nj.name){S=Q.pending;do{if(Q.pending===Q.QX&&(Q.Nj.iR&&Q.pending>S&&(G.HZ=wi(G.HZ,Q.s$,Q.pending-S,S)),Xr(G),S=Q.pending,Q.pending===Q.QX)){var Z=1;break}Z=Q.qXS&&(G.HZ=wi(G.HZ,Q.s$,Q.pending-S,S));Z===0&&(Q.qX=0,Q.status=91)}else Q.status=91;if(Q.status===91)if(Q.Nj.comment){S=Q.pending;do{if(Q.pending===Q.QX&&(Q.Nj.iR&&Q.pending>S&&(G.HZ=wi(G.HZ,Q.s$,Q.pending-S,S)),Xr(G),S=Q.pending,Q.pending===Q.QX)){Z=1;break}Z=Q.qXS&&(G.HZ=wi(G.HZ,Q.s$,Q.pending-S,S));Z===0&&(Q.status=103)}else Q.status= 103;Q.status===103&&(Q.Nj.iR?(Q.pending+2>Q.QX&&Xr(G),Q.pending+2<=Q.QX&&(Zo(Q,G.HZ&255),Zo(Q,G.HZ>>8&255),G.HZ=0,Q.status=113)):Q.status=113);if(Q.pending!==0){if(Xr(G),G.TF===0)return Q.C_=-1,0}else if(G.xU===0&&(X<<1)-(X>4?9:0)<=(R<<1)-(R>4?9:0)&&X!==4)return iI(G,-5);if(Q.status===666&&G.xU!==0)return iI(G,-5);if(G.xU!==0||Q.wh!==0||X!==0&&Q.status!==666){R=Q.strategy===2?La7(Q,X):Q.strategy===3?hWi(Q,X):jp[Q.level].func(Q,X);if(R===3||R===4)Q.status=666;if(R===1||R===3)return G.TF===0&&(Q.C_= -1),0;if(R===2&&(X===1?(WJ(Q,2,3),pd(Q,256,QP),Q.I$===16?(dC(Q,Q.hN),Q.hN=0,Q.I$=0):Q.I$>=8&&(Q.s$[Q.pending++]=Q.hN&255,Q.hN>>=8,Q.I$-=8)):X!==5&&(WJ(Q,0,3),XpS(Q,0,0),X===3&&(G0(Q.head),Q.wh===0&&(Q.hs=0,Q.AC=0,Q.Jo=0))),Xr(G),G.TF===0))return Q.C_=-1,0}if(X!==4)return 0;if(Q.wrap<=0)return 1;Q.wrap===2?(Zo(Q,G.HZ&255),Zo(Q,G.HZ>>8&255),Zo(Q,G.HZ>>16&255),Zo(Q,G.HZ>>24&255),Zo(Q,G.DS&255),Zo(Q,G.DS>>8&255),Zo(Q,G.DS>>16&255),Zo(Q,G.DS>>24&255)):(HO(Q,G.HZ>>>16),HO(Q,G.HZ&65535));Xr(G);Q.wrap>0&& (Q.wrap=-Q.wrap);return Q.pending!==0?0:1}; MV=function(G){if(!(this instanceof MV))return new MV(G);G=this.options=Cd.assign({level:-1,method:8,chunkSize:16384,rG:15,ICm:8,strategy:0,to:""},G||{});G.raw&&G.rG>0?G.rG=-G.rG:G.FY&&G.rG>0&&G.rG<16&&(G.rG+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Cd=new jJl;this.Cd.TF=0;var X=this.Cd;var Q=G.level,R=G.method,S=G.rG,Z=G.ICm,H=G.strategy;if(X){var w=1;Q===-1&&(Q=6);S<0?(w=0,S=-S):S>15&&(w=2,S-=16);if(Z<1||Z>9||R!==8||S<8||S>15||Q<0||Q>9||H<0||H>4)X=iI(X,-2);else{S===8&&(S=9); var h=new kaG;X.state=h;h.Cd=X;h.wrap=w;h.Nj=null;h.ME=S;h.zZ=1<>=7;Z<30;Z++)for($g[Z]=H<<7,S=0;S<1<=L.zZ&&(X===0&&(G0(L.head),L.hs=0,L.AC=0,L.Jo=0),Q=new Cd.G4(L.zZ),Cd.rj(Q,Z,H-L.zZ,L.zZ,0),Z=Q,H=L.zZ);Q=G.xU;R=G.Q2;S=G.input;G.xU=H;G.Q2=0;G.input=Z;for(hD(L);L.wh>=3;){Z=L.hs;H=L.wh-2;do L.cZ=(L.cZ<=0&&(Q[Math[q[69]](new Date(q[56])/1E3,3)-22236- -22054]<=4||((0,Q[87])(Q[85],Q[10]),0))&&(0,Q[40])(Q[41],Q[71])}catch(R){(0,Q[12])((0,Q[4])(Q[7]),Q[17],Q[53],(0,Q[6])(),Q[64])}try{Q[10]!=3&&(Q[57]<-4&& ((((((((0,Q[12])((0,Q[67])(Q[53],Q[36]),Q[38],Q[16],Q[65]),Q[12])((0,Q[17])(Q[34],(0,Q[6])(),Q[32]),Q[66],Q[59],Q[65]),Q[17])(Q[53],(0,Q[61])(),Q[32]),Q[41])(Q[7]),Q[38])(Q[45],Q[34]),Q[17])(Q[34],(0,Q[6])(),Q[32]),Q[17])(Q[34],(0,Q[42])(),Q[30]),[])||(((0,Q[12])(((0,Q[38])(Q[43],Q[65]),Q[41])(Q[51]),Q[70],Q[34],(0,Q[6])(),Q[55]),(((0,Q[27])(Q[80],Q[20]),Q[49])(Q[29],Q[22]),Q[88])(Q[36],Q[38]),(0,Q[83])(Q[53]),Q[20])(Q[36],Q[65]),Q[88])(Q[36],Q[0])),Q[39]<=7&&(Q[37]===new Date(q[72])/1E3||((0,Q[68])(Q[46], (0,Q[75])((0,Q[15])(Q[17],Q[80]),Q[8],Q[36],Q[41]),(0,Q[80])(Q[72],Q[new Date(q[79])/1E3]),(0,Q[13])(Q[85],Q[72]),Q[26]),NaN))&&(0,Q[84])((0,Q[62])(Q[45],(0,Q[73])(),Q[15])%(0,Q[62])(Q[45],(0,Q[18])(),Q[49]),Q[59],(0,Q[51])((0,Q[80])(Q[14],Q[5]),Q[62],Q[14],(0,Q[73])(),Q[47]),Q[new Date(q[48])/1E3],Q[86]),Q[22]!=-2&&((0,Q[51])((0,Q[40])((((0,Q[67])((0,Q[55])(Q[46],Q[86]),Q[43],Q[86],Q[66]),Q[18])(Q[35],Q[45]),Q[31])(Q[60],Q[19]),Q[new Date(q[64])/1E3],(0,Q[31])(Q[67],Q[4]),Q[19],Q[4],Q[11]),Q[22], Q[15],Q[8]),{})||((0,Q[37])(Q[23],(0,Q[30])((0,Q[66])(Q[2],Q[82]),Q[43],Q[67],Q[75]),Q[4],(0,Q[6])(Q[82],Q[33]),(0,Q[22])(Q[7],Q[82]),(0,Q[66])(Q[81],Q[82]),Q[76],Q[82]),Q[65])(Q[82],Q[13]),Q[13]!=5&&(Q[88]>=-7?((0,Q[22])(Q[56],Q[80]),Q[6])(Q[82],Q[44]):((0,Q[36])(Q[84],Q[8]),Q[36])(Q[85],Q[8])),Q[24]!=-8?((0,Q[1])(Q[29],Q[81]),(0,Q[36])(Q[51],Q[40])):(0,Q[46])((0,Q[57])(Q[40],(0,Q[82])(),Q[42]),Q[36],Q[77],Q[67]),Q[27]<=2&&(Q[43]<3||((0,Q[38])(Q[40],Q[63]),void 0))&&(0,Q[36])(Q[27],Q[40]),(0,Q[57])(Q[40], (0,Q[32])(),Q[65]),(0,Q[38])(Q[67],Q[72]),(0,Q[36])(Q[73],Q[21])}catch(R){Q[2]!==6&&(Q[47]>6&&((((0,Q[62])((0,Q[75])(Q[21],Q[83]),Q[57],Q[8],(0,Q[32])(),Q[-38-Math[q[69]](2,new Date(q[10])/1E3)*-5]),Q[62])((0,Q[1])(Q[new Date(q[65])/1E3],Q[23]),Q[57],Q[40],(0,Q[68])(),Q[42]),Q[62])((0,Q[57])(Q[40],(0,Q[68])(),Q[42]),Q[57],Q[21],(0,Q[32])(),Q[42]),1)||((0,Q[7])(Q[11],Q[21]),Q[70])(Q[40])>((((0,Q[38])(Q[21],Q[2]),Q[38])(Q[21],Q[89]),Q[36])(Q[64],Q[21]),Q[38])(Q[21],Q[74])),Q[31]>=2&&(0,Q[62])(((0,Q[1])(Q[49], Q[21]),Q[33])(Q[21]),Q[57],Q[21],(0,Q[12])(),Q[44])}}catch(R){return q[83]+G}return X[q[13]](q[0])}; g.sI=function(G){this.name=G}; BDZ=function(G){this.fO=fy(G)}; T0=function(G){this.fO=fy(G)}; Kc=function(G){this.fO=fy(G)}; FaU=function(G){this.fO=fy(G)}; ep=function(G){this.fO=fy(G)}; ri=function(G){this.fO=fy(G)}; aZ=function(G){this.fO=fy(G)}; EI=function(G){this.fO=fy(G)}; xr=function(G){this.fO=fy(G)}; OI=function(G){this.fO=fy(G)}; z0=function(G){this.fO=fy(G)}; cO=function(G){this.fO=fy(G)}; gi=function(G){this.fO=fy(G)}; UI=function(G){this.fO=fy(G)}; lb=function(G){this.fO=fy(G)}; BO=function(G){this.fO=fy(G,500)}; Fr=function(G){this.fO=fy(G)}; Cc=function(G){this.fO=fy(G)}; CDX=function(G){this.fO=fy(G)}; tdZ=function(){return g.QH("yt.ads.biscotti.lastId_")||""}; VdV=function(G){g.G3("yt.ads.biscotti.lastId_",G)}; di=function(){var G=arguments,X=tD;G.length>1?X[G[0]]=G[1]:G.length===1&&Object.assign(X,G[0])}; g.WO=function(G,X){return G in tD?tD[G]:X}; pc=function(G){var X=tD.EXPERIMENT_FLAGS;return X?X[G]:void 0}; I5T=function(G){yP.forEach(function(X){return X(G)})}; g.Do=function(G){return G&&window.yterr?function(){try{return G.apply(this,arguments)}catch(X){g.fc(X)}}:G}; g.fc=function(G){var X=g.QH("yt.logging.errors.log");X?X(G,"ERROR",void 0,void 0,void 0,void 0,void 0):(X=g.WO("ERRORS",[]),X.push([G,"ERROR",void 0,void 0,void 0,void 0,void 0]),di("ERRORS",X));I5T(G)}; NV=function(G,X,Q,R,S){var Z=g.QH("yt.logging.errors.log");Z?Z(G,"WARNING",X,Q,R,void 0,S):(Z=g.WO("ERRORS",[]),Z.push([G,"WARNING",X,Q,R,void 0,S]),di("ERRORS",Z))}; AD=function(G,X){X=G.split(X);for(var Q={},R=0,S=X.length;R1?G[1]:G[0])):{}}; JD=function(G,X){return yJw(G,X||{},!0)}; ib=function(G,X){return yJw(G,X||{},!1)}; yJw=function(G,X,Q){var R=G.split("#",2);G=R[0];R=R.length>1?"#"+R[1]:"";var S=G.split("?",2);G=S[0];S=$r(S[1]||"");for(var Z in X)if(Q||!g.k7(S,Z))S[Z]=X[Z];return g.on(G,S)+R}; G_=function(G){if(!X)var X=window.location.href;var Q=g.we(G)[1]||null,R=g.hN(G);Q&&R?(G=g.we(G),X=g.we(X),G=G[3]==X[3]&&G[1]==X[1]&&G[4]==X[4]):G=R?g.hN(X)===R&&(Number(g.we(X)[4]||null)||null)===(Number(g.we(G)[4]||null)||null):!0;return G}; XB=function(G){G||(G=document.location.href);G=g.we(G)[1]||null;return G!==null&&G==="https"}; Q9=function(G){G=f57(G);return G===null?!1:G[0]==="com"&&G[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; DJC=function(G){G=f57(G);return G===null?!1:G[1]==="google"?!0:G[2]==="google"?G[0]==="au"&&G[1]==="com"?!0:G[0]==="uk"&&G[1]==="co"?!0:!1:!1}; f57=function(G){G=g.hN(G);return G!==null?G.split(".").reverse():null}; dJy=function(G){return G&&G.match(NDw)?G:gZ(G)}; Zz=function(G){var X=Rm;G=G===void 0?tdZ():G;var Q=Object,R=Q.assign,S=Sg(X);var Z=X.N;try{var H=Z.screenX;var w=Z.screenY}catch(c){}try{var h=Z.outerWidth;var L=Z.outerHeight}catch(c){}try{var k=Z.innerWidth;var Y=Z.innerHeight}catch(c){}try{var M=Z.screenLeft;var m=Z.screenTop}catch(c){}try{k=Z.innerWidth,Y=Z.innerHeight}catch(c){}try{var u=Z.screen.availWidth;var r=Z.screen.availTop}catch(c){}Z=[M,m,H,w,u,r,h,L,k,Y];H=QhC(!1,X.N.top);w={};var x=x===void 0?g.i7:x;h=new CU;"SVGElement"in x&&"createElementNS"in x.document&&h.set(0);L=SlU();L["allow-top-navigation-by-user-activation"]&&h.set(1);L["allow-popups-to-escape-sandbox"]&&h.set(2);x.crypto&&x.crypto.subtle&&h.set(3);"TextDecoder"in x&&"TextEncoder"in x&&h.set(4);x=sVl(h);X=(w.bc=x,w.bih=H.height,w.biw=H.width,w.brdim=Z.join(),w.vis=H1(X.W),w.wgl=!!UM.WebGLRenderingContext,w);Q=R.call(Q,S,X);Q.ca_type="image";G&&(Q.bid=G);return Q}; Sg=function(G){var X={};X.dt=AJG;X.flash="0";a:{try{var Q=G.N.top.location.href}catch(L){G=2;break a}G=Q?Q===G.W.location.href?0:1:2}X=(X.frm=G,X);try{X.u_tz=-(new Date).getTimezoneOffset();try{var R=UM.history.length}catch(L){R=0}X.u_his=R;var S;X.u_h=(S=UM.screen)==null?void 0:S.height;var Z;X.u_w=(Z=UM.screen)==null?void 0:Z.width;var H;X.u_ah=(H=UM.screen)==null?void 0:H.availHeight;var w;X.u_aw=(w=UM.screen)==null?void 0:w.availWidth;var h;X.u_cd=(h=UM.screen)==null?void 0:h.colorDepth}catch(L){}return X}; $JG=function(){if(!nkX)return null;var G=nkX();return"open"in G?G:null}; g.qN=function(G){switch(HT(G)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; HT=function(G){return G&&"status"in G?G.status:-1}; g.wp=function(G,X){typeof G==="function"&&(G=g.Do(G));return window.setTimeout(G,X)}; g.h8=function(G,X){typeof G==="function"&&(G=g.Do(G));return window.setInterval(G,X)}; g.Li=function(G){window.clearTimeout(G)}; g.kD=function(G){window.clearInterval(G)}; g.jg=function(G){G=YD(G);return typeof G==="string"&&G==="false"?!1:!!G}; g.MN=function(G,X){G=YD(G);return G===void 0&&X!==void 0?X:Number(G||0)}; mW=function(){return g.WO("EXPERIMENTS_TOKEN","")}; YD=function(G){return g.WO("EXPERIMENT_FLAGS",{})[G]}; om=function(){for(var G=[],X=g.WO("EXPERIMENTS_FORCED_FLAGS",{}),Q=g.e(Object.keys(X)),R=Q.next();!R.done;R=Q.next())R=R.value,G.push({key:R,value:String(X[R])});Q=g.WO("EXPERIMENT_FLAGS",{});R=g.e(Object.keys(Q));for(var S=R.next();!S.done;S=R.next())S=S.value,S.startsWith("force_")&&X[S]===void 0&&G.push({key:S,value:String(Q[S])});return G}; uX=function(G,X,Q,R,S,Z,H,w,h){function L(){(k&&"readyState"in k?k.readyState:0)===4&&X&&g.Do(X)(k)} Q=Q===void 0?"GET":Q;R=R===void 0?"":R;w=w===void 0?!1:w;var k=$JG();if(!k)return null;"onloadend"in k?k.addEventListener("loadend",L,!1):k.onreadystatechange=L;g.jg("debug_forward_web_query_parameters")&&(G=b4V(G));k.open(Q,G,!0);Z&&(k.responseType=Z);H&&(k.withCredentials=!0);Q=Q==="POST"&&(window.FormData===void 0||!(R instanceof FormData));if(S=vkC(G,S))for(var Y in S)k.setRequestHeader(Y,S[Y]),"content-type"===Y.toLowerCase()&&(Q=!1);Q&&k.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); h&&"onprogress"in k&&(k.onprogress=function(){h(k.responseText)}); if(w&&"setAttributionReporting"in XMLHttpRequest.prototype){G={eventSourceEligible:!0,triggerEligible:!1};try{k.setAttributionReporting(G)}catch(M){NV(M)}}k.send(R);return k}; vkC=function(G,X){X=X===void 0?{}:X;var Q=G_(G),R=g.WO("INNERTUBE_CLIENT_NAME"),S=g.jg("web_ajax_ignore_global_headers_if_set"),Z;for(Z in JJG){var H=g.WO(JJG[Z]),w=Z==="X-Goog-AuthUser"||Z==="X-Goog-PageId";Z!=="X-Goog-Visitor-Id"||H||(H=g.WO("VISITOR_DATA"));var h;if(!(h=!H)){if(!(h=Q||(g.hN(G)?!1:!0))){h=G;var L;if(L=g.jg("add_auth_headers_to_remarketing_google_dot_com_ping")&&Z==="Authorization"&&(R==="TVHTML5"||R==="TVHTML5_UNPLUGGED"||R==="TVHTML5_SIMPLY")&&DJC(h))h=L0(h)||"",h=h.split("/"), h="/"+(h.length>1?h[1]:""),L=h==="/pagead";h=L?!0:!1}h=!h}h||S&&X[Z]!==void 0||R==="TVHTML5_UNPLUGGED"&&w||(X[Z]=H)}"X-Goog-EOM-Visitor-Id"in X&&"X-Goog-Visitor-Id"in X&&delete X["X-Goog-Visitor-Id"];if(Q||!g.hN(G))X["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(Q||!g.hN(G)){try{var k=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Y){}k&&(X["X-YouTube-Time-Zone"]=k)}document.location.hostname.endsWith("youtubeeducation.com")||!Q&&g.hN(G)||(X["X-YouTube-Ad-Signals"]= nc(Zz()));return X}; sh=function(G,X){X.method="POST";X.postParams||(X.postParams={});return g.PT(G,X)}; XgS=function(G,X){if(window.fetch&&X.format!=="XML"){var Q={method:X.method||"GET",credentials:"same-origin"};X.headers&&(Q.headers=X.headers);X.priority&&(Q.priority=X.priority);G=i4y(G,X);var R=GI0(G,X);R&&(Q.body=R);X.withCredentials&&(Q.credentials="include");var S=X.context||g.i7,Z=!1,H;fetch(G,Q).then(function(w){if(!Z){Z=!0;H&&g.Li(H);var h=w.ok,L=function(k){k=k||{};h?X.onSuccess&&X.onSuccess.call(S,k,w):X.onError&&X.onError.call(S,k,w);X.onFinish&&X.onFinish.call(S,k,w)}; (X.format||"JSON")==="JSON"&&(h||w.status>=400&&w.status<500)?w.json().then(L,function(){L(null)}):L(null)}}).catch(function(){X.onError&&X.onError.call(S,{},{})}); G=X.timeout||0;X.onFetchTimeout&&G>0&&(H=g.wp(function(){Z||(Z=!0,g.Li(H),X.onFetchTimeout.call(X.context||g.i7))},G))}else g.PT(G,X)}; g.PT=function(G,X){var Q=X.format||"JSON";G=i4y(G,X);var R=GI0(G,X),S=!1,Z=QCe(G,function(h){if(!S){S=!0;w&&g.Li(w);var L=g.qN(h),k=null,Y=400<=h.status&&h.status<500,M=500<=h.status&&h.status<600;if(L||Y||M)k=RyG(G,Q,h,X.convertToSafeHtml);L&&(L=SwS(Q,h,k));k=k||{};Y=X.context||g.i7;L?X.onSuccess&&X.onSuccess.call(Y,h,k):X.onError&&X.onError.call(Y,h,k);X.onFinish&&X.onFinish.call(Y,h,k)}},X.method,R,X.headers,X.responseType,X.withCredentials,!1,X.onProgress); R=X.timeout||0;if(X.onTimeout&&R>0){var H=X.onTimeout;var w=g.wp(function(){S||(S=!0,Z.abort(),g.Li(w),H.call(X.context||g.i7,Z))},R)}return Z}; i4y=function(G,X){X.includeDomain&&(G=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+G);var Q=g.WO("XSRF_FIELD_NAME");if(X=X.urlParams)X[Q]&&delete X[Q],G=JD(G,X);return G}; GI0=function(G,X){var Q=g.WO("XSRF_FIELD_NAME"),R=g.WO("XSRF_TOKEN"),S=X.postBody||"",Z=X.postParams,H=g.WO("XSRF_FIELD_NAME"),w;X.headers&&(w=X.headers["Content-Type"]);X.excludeXsrf||g.hN(G)&&!X.withCredentials&&g.hN(G)!==document.location.hostname||X.method!=="POST"||w&&w!=="application/x-www-form-urlencoded"||X.postParams&&X.postParams[H]||(Z||(Z={}),Z[Q]=R);(g.jg("ajax_parse_query_data_only_when_filled")&&Z&&Object.keys(Z).length>0||Z)&&typeof S==="string"&&(S=$r(S),g.sl(S,Z),S=X.postBodyFormat&& X.postBodyFormat==="JSON"?JSON.stringify(S):g.mN(S));Z=S||Z&&!g.Mn(Z);!ZeC&&Z&&X.method!=="POST"&&(ZeC=!0,g.fc(Error("AJAX request with postData should use POST")));return S}; RyG=function(G,X,Q,R){var S=null;switch(X){case "JSON":try{var Z=Q.responseText}catch(H){throw R=Error("Error reading responseText"),R.params=G,NV(R),H;}G=Q.getResponseHeader("Content-Type")||"";Z&&G.indexOf("json")>=0&&(Z.substring(0,5)===")]}'\n"&&(Z=Z.substring(5)),S=JSON.parse(Z));break;case "XML":if(G=(G=Q.responseXML)?Hey(G):null)S={},g.vn(G.getElementsByTagName("*"),function(H){S[H.tagName]=qwV(H)})}R&&wgU(S); return S}; wgU=function(G){if(g.Hn(G))for(var X in G)X==="html_content"||ple(X,"_html")?G[X]=Mq(G[X]):wgU(G[X])}; SwS=function(G,X,Q){if(X&&X.status===204)return!0;switch(G){case "JSON":return!!Q;case "XML":return Number(Q&&Q.return_code)===0;case "RAW":return!0;default:return!!Q}}; Hey=function(G){return G?(G=("responseXML"in G?G.responseXML:G).getElementsByTagName("root"))&&G.length>0?G[0]:null:null}; qwV=function(G){var X="";g.vn(G.childNodes,function(Q){X+=Q.nodeValue}); return X}; b4V=function(G){var X=window.location.search,Q=g.hN(G);g.jg("debug_handle_relative_url_for_query_forward_killswitch")||!Q&&G_(G)&&(Q=document.location.hostname);var R=L0(G);R=(Q=Q&&(Q.endsWith("youtube.com")||Q.endsWith("youtube-nocookie.com")))&&R&&R.startsWith("/api/");if(!Q||R)return G;var S=$r(X),Z={};g.vn(hyG,function(H){S[H]&&(Z[H]=S[H])}); return ib(G,Z)}; Ki=function(G,X){var Q=g.uY(X),R;return(new g.Ey(function(S,Z){Q.onSuccess=function(H){g.qN(H)?S(new LcV(H)):Z(new T_("Request failed, status="+HT(H),"net.badstatus",H))}; Q.onError=function(H){Z(new T_("Unknown request error","net.unknown",H))}; Q.onTimeout=function(H){Z(new T_("Request timed out","net.timeout",H))}; R=g.PT(G,Q)})).EG(function(S){if(S instanceof Uy){var Z; (Z=R)==null||Z.abort()}return za(S)})}; g.eg=function(G,X,Q,R,S,Z){function H(h,L,k){return h.EG(function(Y){if(L<=0||HT(Y.xhr)===403)return za(new T_("Request retried too many times","net.retryexhausted",Y.xhr,Y));var M=Math.pow(2,Q-L+1)*k,m=S>0?Math.min(S,M):M;return w(k).then(function(){Z&&Z(Y,L-1);return H(Ki(G,X),L-1,m)})})} function w(h){return new g.Ey(function(L){setTimeout(L,h)})} S=S===void 0?-1:S;return H(Ki(G,X),Q-1,R)}; T_=function(G,X,Q){od.call(this,G+", errorCode="+X);this.errorCode=X;this.xhr=Q;this.name="PromiseAjaxError"}; LcV=function(G){this.xhr=G}; rp=function(G){this.N=G===void 0?null:G;this.Y=0;this.W=null}; am=function(G){var X=new rp;G=G===void 0?null:G;X.Y=2;X.W=G===void 0?null:G;return X}; Eh=function(G){var X=new rp;G=G===void 0?null:G;X.Y=1;X.W=G===void 0?null:G;return X}; g.z_=function(G,X,Q,R,S){xD||Oh.set(""+G,X,{R1:Q,path:"/",domain:R===void 0?"youtube.com":R,secure:S===void 0?!1:S})}; g.cT=function(G,X){if(!xD)return Oh.get(""+G,X)}; g.gp=function(G,X,Q){xD||Oh.remove(""+G,X===void 0?"/":X,Q===void 0?"youtube.com":Q)}; kIV=function(){if(g.jg("embeds_web_enable_cookie_detection_fix")){if(!g.i7.navigator.cookieEnabled)return!1}else if(!Oh.isEnabled())return!1;if(!Oh.isEmpty())return!0;g.jg("embeds_web_enable_cookie_detection_fix")?Oh.set("TESTCOOKIESENABLED","1",{R1:60,BSC:"none",secure:!0}):Oh.set("TESTCOOKIESENABLED","1",{R1:60});if(Oh.get("TESTCOOKIESENABLED")!=="1")return!1;Oh.remove("TESTCOOKIESENABLED");return!0}; g.y=function(G,X){if(G)return G[X.name]}; Uh=function(G){var X=g.WO("INNERTUBE_HOST_OVERRIDE");X&&(G=String(X)+String(ka(G)));return G}; Ywe=function(G){var X={};g.jg("json_condensed_response")&&(X.prettyPrint="false");return G=ib(G,X)}; lX=function(G,X){var Q=Q===void 0?{}:Q;G={method:X===void 0?"POST":X,mode:G_(G)?"same-origin":"cors",credentials:G_(G)?"same-origin":"include"};X={};for(var R=g.e(Object.keys(Q)),S=R.next();!S.done;S=R.next())S=S.value,Q[S]&&(X[S]=Q[S]);Object.keys(X).length>0&&(G.headers=X);return G}; BT=function(){var G=/Chrome\/(\d+)/.exec(g.IB());return G?parseFloat(G[1]):NaN}; FB=function(){var G=/\sCobalt\/(\S+)\s/.exec(g.IB());if(!G)return NaN;var X=[];G=g.e(G[1].split("."));for(var Q=G.next();!Q.done;Q=G.next())Q=parseInt(Q.value,10),Q>=0&&X.push(Q);return parseFloat(X.join("."))}; t8=function(){return g.Ci("android")&&g.Ci("chrome")&&!(g.Ci("trident/")||g.Ci("edge/"))&&!g.Ci("cobalt")}; jCS=function(){return g.Ci("armv7")||g.Ci("aarch64")||g.Ci("android")}; g.V9=function(){return g.Ci("cobalt")}; Im=function(){return g.Ci("cobalt")&&g.Ci("appletv")}; dp=function(){return g.Ci("(ps3; leanback shell)")||g.Ci("ps3")&&g.V9()}; MYU=function(){return g.Ci("(ps4; leanback shell)")||g.Ci("ps4")&&g.V9()}; g.mfw=function(){return g.V9()&&(g.Ci("ps4 vr")||g.Ci("ps4 pro vr"))}; WT=function(){var G=/WebKit\/([0-9]+)/.exec(g.IB());return!!(G&&parseInt(G[1],10)>=600)}; pi=function(){var G=/WebKit\/([0-9]+)/.exec(g.IB());return!!(G&&parseInt(G[1],10)>=602)}; o$y=function(){return g.Ci("iemobile")||g.Ci("windows phone")&&g.Ci("edge")}; Dz=function(){return(y9||fi)&&g.Ci("applewebkit")&&!g.Ci("version")&&(!g.Ci("safari")||g.Ci("gsa/"))}; A8=function(){return g.NN&&g.Ci("version/")}; ni=function(){return g.Ci("smart-tv")&&g.Ci("samsung")}; g.Ci=function(G){var X=g.IB();return X?X.toLowerCase().indexOf(G)>=0:!1}; $D=function(){return QnS()||Dz()||A8()?!0:g.WO("EOM_VISITOR_DATA")?!1:!0}; bX=function(G,X){return X===void 0||X===null?G:X==="1"||X===!0||X===1||X==="True"?!0:!1}; vT=function(G,X,Q){for(var R in Q)if(Q[R]==X)return Q[R];return G}; J8=function(G,X){return X===void 0||X===null?G:Number(X)}; iX=function(G,X){return X===void 0||X===null?G:X.toString()}; GJ=function(G,X){if(X){if(G==="fullwidth")return Infinity;if(G==="fullheight")return 0}return G&&(X=G.match(uAV))&&(G=Number(X[2]),X=Number(X[1]),!isNaN(G)&&!isNaN(X)&&G>0)?X/G:NaN}; X1=function(G){var X=G.docid||G.video_id||G.videoId||G.id;if(X)return X;X=G.raw_player_response;X||(G=G.player_response)&&(X=JSON.parse(G));return X&&X.videoDetails&&X.videoDetails.videoId||null}; Pw7=function(G){return Qy(G,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.Rc=function(G){return G==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||G==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Qy=function(G,X){X=(X===void 0?0:X)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(X="EMBEDDED_PLAYER_MODE_PFL");var Q=G.raw_embedded_player_response;if(!Q&&(G=G.embedded_player_response))try{Q=JSON.parse(G)}catch(R){return X}return Q?vT(X,Q.embeddedPlayerMode,sCS):X}; Z$=function(G){od.call(this,G.message||G.description||G.name);this.isMissing=G instanceof S8;this.isTimeout=G instanceof T_&&G.errorCode=="net.timeout";this.isCanceled=G instanceof Uy}; S8=function(){od.call(this,"Biscotti ID is missing from server")}; ThG=function(){if(g.jg("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!$D())return Error("User has not consented - not fetching biscotti id.");var G=g.WO("PLAYER_VARS",{});if(g.mF(G,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Pw7(G))return Error("Biscotti id fetching has been disabled for pfl.")}; aY7=function(){var G=ThG();if(G!==void 0)return za(G);HA||(HA=Ki("//googleads.g.doubleclick.net/pagead/id",KcS).then(eyZ).EG(function(X){return rlT(2,X)})); return HA}; eyZ=function(G){G=G.xhr.responseText;if(!Ul(G,")]}'"))throw new S8;G=JSON.parse(G.substr(4));if((G.type||1)>1)throw new S8;G=G.id;VdV(G);HA=Eh(G);E$U(18E5,2);return G}; rlT=function(G,X){X=new Z$(X);VdV("");HA=am(X);G>0&&E$U(12E4,G-1);throw X;}; E$U=function(G,X){g.wp(function(){Ki("//googleads.g.doubleclick.net/pagead/id",KcS).then(eyZ,function(Q){return rlT(X,Q)}).EG(g.Bq)},G)}; xfw=function(){try{var G=g.QH("yt.ads.biscotti.getId_");return G?G():aY7()}catch(X){return za(X)}}; zyG=function(G){G&&(G.dataset?G.dataset[Oee()]="true":Rkl(G))}; clZ=function(G){return G?G.dataset?G.dataset[Oee()]:G.getAttribute("data-loaded"):null}; Oee=function(){return g$w.loaded||(g$w.loaded="loaded".replace(/\-([a-z])/g,function(G,X){return X.toUpperCase()}))}; Ufl=function(){var G=document;if("visibilityState"in G)return G.visibilityState;var X=qM+"VisibilityState";if(X in G)return G[X]}; wo=function(G,X){var Q;p0(G,function(R){Q=X[R];return!!Q}); return Q}; h7=function(G){if(G.requestFullscreen)G=G.requestFullscreen(void 0);else if(G.webkitRequestFullscreen)G=G.webkitRequestFullscreen();else if(G.mozRequestFullScreen)G=G.mozRequestFullScreen();else if(G.msRequestFullscreen)G=G.msRequestFullscreen();else if(G.webkitEnterFullscreen)G=G.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return G instanceof Promise?G:Promise.resolve()}; YL=function(G){var X;g.LZ()?kL()==G&&(X=document):X=G;return X&&(G=wo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],X))?(X=G.call(X),X instanceof Promise?X:Promise.resolve()):Promise.resolve()}; lYS=function(G){return g.Ka(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(X){return"on"+X.toLowerCase()in G})}; BhS=function(){var G=document;return g.Ka(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(X){return"on"+X.toLowerCase()in G})}; g.LZ=function(){return!!wo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; kL=function(G){G=G===void 0?!1:G;var X=wo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(G)for(;X&&X.shadowRoot;)X=X.shadowRoot.fullscreenElement;return X?X:null}; j8=function(G){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(G=G||window.event){this.event=G;for(var X in G)X in Fci||(this[X]=G[X]);this.scale=G.scale;this.rotation=G.rotation;var Q=G.target||G.srcElement;Q&&Q.nodeType==3&&(Q=Q.parentNode);this.target=Q;var R=G.relatedTarget; if(R)try{R=R.nodeName?R:null}catch(S){R=null}else this.type=="mouseover"?R=G.fromElement:this.type=="mouseout"&&(R=G.toElement);this.relatedTarget=R;this.clientX=G.clientX!=void 0?G.clientX:G.pageX;this.clientY=G.clientY!=void 0?G.clientY:G.pageY;this.keyCode=G.keyCode?G.keyCode:G.which;this.charCode=G.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=G.altKey;this.ctrlKey=G.ctrlKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.N=G.pageX;this.W=G.pageY}}catch(S){}}; Cwy=function(G){if(document.body&&document.documentElement){var X=document.body.scrollTop+document.documentElement.scrollTop;G.N=G.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);G.W=G.clientY+X}}; tYG=function(G,X,Q,R){R=R===void 0?{}:R;G.addEventListener&&(X!="mouseenter"||"onmouseenter"in document?X!="mouseleave"||"onmouseenter"in document?X=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(X="MozMousePixelScroll"):X="mouseout":X="mouseover");return jG(MM,function(S){var Z=typeof S[4]==="boolean"&&S[4]==!!R,H=g.Hn(S[4])&&g.Hn(R)&&g.oB(S[4],R);return!!S.length&&S[0]==G&&S[1]==X&&S[2]==Q&&(Z||H)})}; g.mX=function(G,X,Q,R){R=R===void 0?{}:R;if(!G||!G.addEventListener&&!G.attachEvent)return"";var S=tYG(G,X,Q,R);if(S)return S;S=++VY7.count+"";var Z=!(X!="mouseenter"&&X!="mouseleave"||!G.addEventListener||"onmouseenter"in document);var H=Z?function(w){w=new j8(w);if(!xh(w.relatedTarget,function(h){return h==G},!0))return w.currentTarget=G,w.type=X,Q.call(G,w)}:function(w){w=new j8(w); w.currentTarget=G;return Q.call(G,w)}; H=g.Do(H);G.addEventListener?(X=="mouseenter"&&Z?X="mouseover":X=="mouseleave"&&Z?X="mouseout":X=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(X="MozMousePixelScroll"),IYG()||typeof R==="boolean"?G.addEventListener(X,H,R):G.addEventListener(X,H,!!R.capture)):G.attachEvent("on"+X,H);MM[S]=[G,X,Q,H,R];return S}; WcX=function(G){return dfT(G,function(X){return g.iv(X,"ytp-ad-has-logging-urls")})}; dfT=function(G,X){var Q=document.body||document;return g.mX(Q,"click",function(R){var S=xh(R.target,function(Z){return Z===Q||X(Z)},!0); S&&S!==Q&&!S.disabled&&(R.currentTarget=S,G.call(S,R))})}; g.oc=function(G){G&&(typeof G=="string"&&(G=[G]),g.vn(G,function(X){if(X in MM){var Q=MM[X],R=Q[0],S=Q[1],Z=Q[3];Q=Q[4];R.removeEventListener?IYG()||typeof Q==="boolean"?R.removeEventListener(S,Z,Q):R.removeEventListener(S,Z,!!Q.capture):R.detachEvent&&R.detachEvent("on"+S,Z);delete MM[X]}}))}; ua=function(G){for(var X in MM)MM[X][0]==G&&g.oc(X)}; PA=function(G){G=G||window.event;var X;G.composedPath&&typeof G.composedPath==="function"?X=G.composedPath():X=G.path;X&&X.length?G=X[0]:(G=G||window.event,G=G.target||G.srcElement,G.nodeType==3&&(G=G.parentNode));return G}; s5=function(G){this.J=G;this.N=null;this.V=0;this.S=null;this.C=0;this.W=[];for(G=0;G<4;G++)this.W.push(0);this.Y=0;this.yH=g.mX(window,"mousemove",(0,g.La)(this.j,this));this.T=g.h8((0,g.La)(this.AT,this),25)}; TJ=function(G){g.I.call(this);this.J=[];this.Hs=G||this}; KZ=function(G,X,Q,R){for(var S=0;S0?Q:0;Q=R?Date.now()+R*1E3:0;if((R=R?(0,g.ro)():ac())&&window.JSON){typeof X!=="string"&&(X=JSON.stringify(X,void 0));try{R.set(G,X,Q)}catch(S){R.remove(G)}}}; g.xL=function(G){var X=ac(),Q=(0,g.ro)();if(!X&&!Q||!window.JSON)return null;try{var R=X.get(G)}catch(S){}if(typeof R!=="string")try{R=Q.get(G)}catch(S){}if(typeof R!=="string")return null;try{R=JSON.parse(R,void 0)}catch(S){}return R}; ylG=function(){var G=(0,g.ro)();if(G&&(G=G.W("yt-player-quality")))return G.creation}; g.O5=function(G){try{var X=ac(),Q=(0,g.ro)();X&&X.remove(G);Q&&Q.remove(G)}catch(R){}}; g.zJ=function(){return g.xL("yt-remote-session-screen-id")}; fYS=function(G){var X=this;this.W=void 0;this.N=!1;G.addEventListener("beforeinstallprompt",function(Q){Q.preventDefault();X.W=Q}); G.addEventListener("appinstalled",function(){X.N=!0},{once:!0})}; cA=function(){if(!g.i7.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.i7.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.i7.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.i7.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.i7.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(G){return"WEB_DISPLAY_MODE_UNKNOWN"}}; go=function(){this.q6=!0}; Dfw=function(){go.instance||(go.instance=new go);return go.instance}; NhG=function(G){switch(G){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}}; All=function(){this.N=g.WO("ALT_PREF_COOKIE_NAME","PREF");this.W=g.WO("ALT_PREF_COOKIE_DOMAIN","youtube.com");var G=g.cT(this.N);G&&this.parse(G)}; g.la=function(){U5||(U5=new All);return U5}; g.BA=function(G,X){return!!((n$U("f"+(Math.floor(X/31)+1))||0)&1<0;)switch(G=Rq.shift(),G.type){case "ERROR":ia.Rh(G.payload);break;case "EVENT":ia.logEvent(G.eventType,G.payload)}}; Z6=function(G){SU||(ia?ia.Rh(G):(Rq.push({type:"ERROR",payload:G}),Rq.length>10&&Rq.shift()))}; HI=function(G,X){SU||(ia?ia.logEvent(G,X):(Rq.push({type:"EVENT",eventType:G,payload:X}),Rq.length>10&&Rq.shift()))}; qT=function(G){if(G.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; wb=function(G){return G.substr(0,G.indexOf(":"))||G}; g.h$=function(G,X,Q,R,S){X=X===void 0?{}:X;Q=Q===void 0?QrS[G]:Q;R=R===void 0?RS0[G]:R;S=S===void 0?Su7[G]:S;g.Ic.call(this,Q,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:G},X));this.type=G;this.message=Q;this.level=R;this.N=S;Object.setPrototypeOf(this,g.h$.prototype)}; Ll=function(G,X){g.h$.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:X,foundObjectStores:G},QrS.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Ll.prototype)}; k_=function(G,X){var Q=Error.call(this);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.index=G;this.objectStore=X;Object.setPrototypeOf(this,k_.prototype)}; jU=function(G,X,Q,R){X=wb(X);var S=G instanceof Error?G:Error("Unexpected error: "+G);if(S instanceof g.h$)return S;G={objectStoreNames:Q,dbName:X,dbVersion:R};if(S.name==="QuotaExceededError")return new g.h$("QUOTA_EXCEEDED",G);if(g.Y_&&S.name==="UnknownError")return new g.h$("QUOTA_MAYBE_EXCEEDED",G);if(S instanceof k_)return new g.h$("MISSING_INDEX",Object.assign({},G,{objectStore:S.objectStore,index:S.index}));if(S.name==="InvalidStateError"&&ZUX.some(function(Z){return S.message.includes(Z)}))return new g.h$("EXECUTE_TRANSACTION_ON_CLOSED_DB", G); if(S.name==="AbortError")return new g.h$("UNKNOWN_ABORT",G,S.message);S.args=[Object.assign({},G,{name:"IdbError",Me:S.name})];S.level="WARNING";return S}; g.MT=function(G,X,Q){var R=J7();return new g.h$("IDB_NOT_SUPPORTED",{context:{caller:G,publicName:X,version:Q,hasSucceededOnce:R==null?void 0:R.hasSucceededOnce}})}; HUG=function(G){if(!G)throw Error();throw G;}; quZ=function(G){return G}; m$=function(G){this.N=G}; g.oq=function(G){function X(S){if(R.state.status==="PENDING"){R.state={status:"REJECTED",reason:S};S=g.e(R.W);for(var Z=S.next();!Z.done;Z=S.next())Z=Z.value,Z()}} function Q(S){if(R.state.status==="PENDING"){R.state={status:"FULFILLED",value:S};S=g.e(R.N);for(var Z=S.next();!Z.done;Z=S.next())Z=Z.value,Z()}} var R=this;this.state={status:"PENDING"};this.N=[];this.W=[];G=G.N;try{G(Q,X)}catch(S){X(S)}}; wWZ=function(G,X,Q,R,S){try{if(G.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var Z=Q(G.state.value);Z instanceof g.oq?uq(G,X,Z,R,S):R(Z)}catch(H){S(H)}}; hSG=function(G,X,Q,R,S){try{if(G.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var Z=Q(G.state.reason);Z instanceof g.oq?uq(G,X,Z,R,S):R(Z)}catch(H){S(H)}}; uq=function(G,X,Q,R,S){X===Q?S(new TypeError("Circular promise chain detected.")):Q.then(function(Z){Z instanceof g.oq?uq(G,X,Z,R,S):R(Z)},function(Z){S(Z)})}; LRT=function(G,X,Q){function R(){Q(G.error);Z()} function S(){X(G.result);Z()} function Z(){try{G.removeEventListener("success",S),G.removeEventListener("error",R)}catch(H){}} G.addEventListener("success",S);G.addEventListener("error",R)}; kqU=function(G){return new Promise(function(X,Q){LRT(G,X,Q)})}; PI=function(G){return new g.oq(new m$(function(X,Q){LRT(G,X,Q)}))}; se=function(G,X){return new g.oq(new m$(function(Q,R){function S(){var Z=G?X(G):null;Z?Z.then(function(H){G=H;S()},R):Q()} S()}))}; YuS=function(G,X){this.request=G;this.cursor=X}; jrT=function(G){return PI(G).then(function(X){return X?new YuS(G,X):null})}; g.Mvw=function(G){G.cursor.continue(void 0);return jrT(G.request)}; mOV=function(G,X){this.N=G;this.options=X;this.transactionCount=0;this.Y=Math.round((0,g.TB)());this.W=!1}; Kl=function(){return g.jg("idb_immediate_commit")}; g.rb=function(G,X,Q){G=G.N.createObjectStore(X,Q);return new eU(G)}; aq=function(G,X){G.N.objectStoreNames.contains(X)&&G.N.deleteObjectStore(X)}; g.Oe=function(G,X,Q){return g.Ee(G,[X],{mode:"readwrite",oW:!0,commit:Kl()},function(R){return g.x_(R.objectStore(X),Q)})}; g.Ee=function(G,X,Q,R){var S,Z,H,w,h,L,k,Y,M,m,u,r;return g.F(function(x){switch(x.W){case 1:var c={mode:"readonly",oW:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof Q==="string"?c.mode=Q:Object.assign(c,Q);S=c;G.transactionCount++;Z=S.oW?3:1;H=0;case 2:if(w){x.pO(4);break}H++;h=Math.round((0,g.TB)());g.a0(x,5);L=G.N.transaction(X,S.mode);c=!!S.commit;var z=new zB(L);c=oxS(z,R,c);return g.l(x,c,7);case 7:return k=x.N,Y=Math.round((0,g.TB)()),utT(G,h,Y,H,void 0,X.join(),S),x.return(k);case 5:M=g.cl(x); m=Math.round((0,g.TB)());u=jU(M,G.N.name,X.join(),G.N.version);if((r=u instanceof g.h$&&!u.N)||H>=Z)utT(G,h,m,H,u,X.join(),S),w=u;x.pO(2);break;case 4:return x.return(Promise.reject(w))}})}; utT=function(G,X,Q,R,S,Z,H){X=Q-X;S?(S instanceof g.h$&&(S.type==="QUOTA_EXCEEDED"||S.type==="QUOTA_MAYBE_EXCEEDED")&&HI("QUOTA_EXCEEDED",{dbName:wb(G.N.name),objectStoreNames:Z,transactionCount:G.transactionCount,transactionMode:H.mode}),S instanceof g.h$&&S.type==="UNKNOWN_ABORT"&&(Q-=G.Y,Q<0&&Q>=2147483648&&(Q=0),HI("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:Z,transactionDuration:X,transactionCount:G.transactionCount,dbDuration:Q}),G.W=!0),PvU(G,!1,R,Z,X,H.tag),Z6(S)):PvU(G,!0,R,Z,X, H.tag)}; PvU=function(G,X,Q,R,S,Z){HI("TRANSACTION_ENDED",{objectStoreNames:R,connectionHasUnknownAbortedTransaction:G.W,duration:S,isSuccessful:X,tryCount:Q,tag:Z===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":Z})}; eU=function(G){this.N=G}; g.cI=function(G,X,Q){G.N.createIndex(X,Q,{unique:!1})}; srT=function(G,X){return g.gb(G,{query:X},function(Q){return Q.delete().then(function(){return g.Ue(Q)})}).then(function(){})}; Tv7=function(G,X,Q){var R=[];return g.gb(G,{query:X},function(S){if(!(Q!==void 0&&R.length>=Q))return R.push(S.getValue()),g.Ue(S)}).then(function(){return R})}; eSZ=function(G){return"getAllKeys"in IDBObjectStore.prototype?PI(G.N.getAllKeys(void 0,void 0)):KR0(G)}; KR0=function(G){var X=[];return g.rxT(G,{query:void 0},function(Q){X.push(Q.cursor.primaryKey);return g.Mvw(Q)}).then(function(){return X})}; g.x_=function(G,X,Q){return PI(G.N.put(X,Q))}; g.gb=function(G,X,Q){G=G.N.openCursor(X.query,X.direction);return lq(G).then(function(R){return se(R,Q)})}; g.rxT=function(G,X,Q){var R=X.query;X=X.direction;G="openKeyCursor"in IDBObjectStore.prototype?G.N.openKeyCursor(R,X):G.N.openCursor(R,X);return jrT(G).then(function(S){return se(S,Q)})}; zB=function(G){var X=this;this.N=G;this.Y=new Map;this.W=!1;this.done=new Promise(function(Q,R){X.N.addEventListener("complete",function(){Q()}); X.N.addEventListener("error",function(S){S.currentTarget===S.target&&R(X.N.error)}); X.N.addEventListener("abort",function(){var S=X.N.error;if(S)R(S);else if(!X.W){S=g.h$;for(var Z=X.N.objectStoreNames,H=[],w=0;w=Q))return R.push(S.getValue()),g.Ue(S)}).then(function(){return R})}; g.BI=function(G,X,Q){G=G.N.openCursor(X.query===void 0?null:X.query,X.direction===void 0?"next":X.direction);return lq(G).then(function(R){return se(R,Q)})}; FE=function(G,X){this.request=G;this.cursor=X}; lq=function(G){return PI(G).then(function(X){return X?new FE(G,X):null})}; g.Ue=function(G){G.cursor.continue(void 0);return lq(G.request)}; xOG=function(G,X,Q){return new Promise(function(R,S){function Z(){M||(M=new mOV(H.result,{closed:Y}));return M} var H=X!==void 0?self.indexedDB.open(G,X):self.indexedDB.open(G);var w=Q.blocked,h=Q.blocking,L=Q.cEb,k=Q.upgrade,Y=Q.closed,M;H.addEventListener("upgradeneeded",function(m){try{if(m.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(H.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");m.dataLoss&&m.dataLoss!=="none"&&HI("IDB_DATA_CORRUPTED",{reason:m.dataLossMessage||"unknown reason",dbName:wb(G)});var u=Z(),r=new zB(H.transaction); k&&k(u,function(x){return m.oldVersion=x},r); r.done.catch(function(x){S(x)})}catch(x){S(x)}}); H.addEventListener("success",function(){var m=H.result;h&&m.addEventListener("versionchange",function(){h(Z())}); m.addEventListener("close",function(){HI("IDB_UNEXPECTEDLY_CLOSED",{dbName:wb(G),dbVersion:m.version});L&&L()}); R(Z())}); H.addEventListener("error",function(){S(H.error)}); w&&H.addEventListener("blocked",function(){w()})})}; OUS=function(G,X,Q){Q=Q===void 0?{}:Q;return xOG(G,X,Q)}; Cl=function(G,X){X=X===void 0?{}:X;var Q,R,S,Z;return g.F(function(H){if(H.W==1)return g.a0(H,2),Q=self.indexedDB.deleteDatabase(G),R=X,(S=R.blocked)&&Q.addEventListener("blocked",function(){S()}),g.l(H,kqU(Q),4); if(H.W!=2)return g.OC(H,0);Z=g.cl(H);throw jU(Z,G,"",-1);})}; t$=function(G,X){this.name=G;this.options=X;this.Y=!0;this.C=this.V=0}; zST=function(G,X){return new g.h$("INCOMPATIBLE_DB_VERSION",{dbName:G.name,oldVersion:G.options.version,newVersion:X})}; g.VL=function(G,X){if(!X)throw g.MT("openWithToken",wb(G.name));return G.open()}; cxU=function(G,X){var Q;return g.F(function(R){if(R.W==1)return g.l(R,g.VL(Iq,X),2);Q=R.N;return R.return(g.Ee(Q,["databases"],{oW:!0,mode:"readwrite"},function(S){var Z=S.objectStore("databases");return Z.get(G.actualName).then(function(H){if(H?G.actualName!==H.actualName||G.publicName!==H.publicName||G.userIdentifier!==H.userIdentifier:1)return g.x_(Z,G).then(function(){})})}))})}; db=function(G,X){var Q;return g.F(function(R){if(R.W==1)return G?g.l(R,g.VL(Iq,X),2):R.return();Q=R.N;return R.return(Q.delete("databases",G))})}; gxV=function(G,X){var Q,R;return g.F(function(S){return S.W==1?(Q=[],g.l(S,g.VL(Iq,X),2)):S.W!=3?(R=S.N,g.l(S,g.Ee(R,["databases"],{oW:!0,mode:"readonly"},function(Z){Q.length=0;return g.gb(Z.objectStore("databases"),{},function(H){G(H.getValue())&&Q.push(H.getValue());return g.Ue(H)})}),3)):S.return(Q)})}; UOG=function(G,X){return gxV(function(Q){return Q.publicName===G&&Q.userIdentifier!==void 0},X)}; lAV=function(){var G,X,Q,R;return g.F(function(S){switch(S.W){case 1:G=J7();if((X=G)==null?0:X.hasSucceededOnce)return S.return(!0);if(WI&&WT()&&!pi()||g.pl)return S.return(!1);try{if(Q=self,!(Q.indexedDB&&Q.IDBIndex&&Q.IDBKeyRange&&Q.IDBObjectStore))return S.return(!1)}catch(Z){return S.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return S.return(!1);g.a0(S,2);R={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.l(S,cxU(R,yL),4);case 4:return g.l(S,db("yt-idb-test-do-not-use",yL),5);case 5:return S.return(!0);case 2:return g.cl(S),S.return(!1)}})}; BvV=function(){if(fl!==void 0)return fl;SU=!0;return fl=lAV().then(function(G){SU=!1;var X;if((X=vA())!=null&&X.N){var Q;X={hasSucceededOnce:((Q=J7())==null?void 0:Q.hasSucceededOnce)||G};var R;(R=vA())==null||R.set("LAST_RESULT_ENTRY_KEY",X,2592E3,!0)}return G})}; D6=function(){return g.QH("ytglobal.idbToken_")||void 0}; g.NT=function(){var G=D6();return G?Promise.resolve(G):BvV().then(function(X){(X=X?yL:void 0)&&g.G3("ytglobal.idbToken_",X);return X})}; FRe=function(G){if(!g.pZ())throw G=new g.h$("AUTH_INVALID",{dbName:G}),Z6(G),G;var X=g.WA();return{actualName:G+":"+X,publicName:G,userIdentifier:X}}; Cv7=function(G,X,Q,R){var S,Z,H,w,h,L;return g.F(function(k){switch(k.W){case 1:return Z=(S=Error().stack)!=null?S:"",g.l(k,g.NT(),2);case 2:H=k.N;if(!H)throw w=g.MT("openDbImpl",G,X),g.jg("ytidb_async_stack_killswitch")||(w.stack=w.stack+"\n"+Z.substring(Z.indexOf("\n")+1)),Z6(w),w;qT(G);h=Q?{actualName:G,publicName:G,userIdentifier:void 0}:FRe(G);g.a0(k,3);return g.l(k,cxU(h,H),5);case 5:return g.l(k,OUS(h.actualName,X,R),6);case 6:return k.return(k.N);case 3:return L=g.cl(k),g.a0(k,7),g.l(k,db(h.actualName, H),9);case 9:g.OC(k,8);break;case 7:g.cl(k);case 8:throw L;}})}; tvG=function(G,X,Q){Q=Q===void 0?{}:Q;return Cv7(G,X,!1,Q)}; VvV=function(G,X,Q){Q=Q===void 0?{}:Q;return Cv7(G,X,!0,Q)}; IAS=function(G,X){X=X===void 0?{}:X;var Q,R;return g.F(function(S){if(S.W==1)return g.l(S,g.NT(),2);if(S.W!=3){Q=S.N;if(!Q)return S.return();qT(G);R=FRe(G);return g.l(S,Cl(R.actualName,X),3)}return g.l(S,db(R.actualName,Q),0)})}; dOZ=function(G,X,Q){G=G.map(function(R){return g.F(function(S){return S.W==1?g.l(S,Cl(R.actualName,X),2):g.l(S,db(R.actualName,Q),0)})}); return Promise.all(G).then(function(){})}; WR7=function(G){var X=X===void 0?{}:X;var Q,R;return g.F(function(S){if(S.W==1)return g.l(S,g.NT(),2);if(S.W!=3){Q=S.N;if(!Q)return S.return();qT(G);return g.l(S,UOG(G,Q),3)}R=S.N;return g.l(S,dOZ(R,X,Q),0)})}; pWU=function(G,X){X=X===void 0?{}:X;var Q;return g.F(function(R){if(R.W==1)return g.l(R,g.NT(),2);if(R.W!=3){Q=R.N;if(!Q)return R.return();qT(G);return g.l(R,Cl(G,X),3)}return g.l(R,db(G,Q),0)})}; A$=function(G,X){t$.call(this,G,X);this.options=X;qT(G)}; yxS=function(G,X){var Q;return function(){Q||(Q=new A$(G,X));return Q}}; g.nl=function(G,X){return yxS(G,X)}; $_=function(G){return g.VL(fAV(),G)}; DOe=function(G,X,Q,R){var S,Z,H;return g.F(function(w){switch(w.W){case 1:return S={config:G,hashData:X,timestamp:R!==void 0?R:(0,g.TB)()},g.l(w,$_(Q),2);case 2:return Z=w.N,g.l(w,Z.clear("hotConfigStore"),3);case 3:return g.l(w,g.Oe(Z,"hotConfigStore",S),4);case 4:return H=w.N,w.return(H)}})}; NvG=function(G,X,Q,R,S){var Z,H,w;return g.F(function(h){switch(h.W){case 1:return Z={config:G,hashData:X,configData:Q,timestamp:S!==void 0?S:(0,g.TB)()},g.l(h,$_(R),2);case 2:return H=h.N,g.l(h,H.clear("coldConfigStore"),3);case 3:return g.l(h,g.Oe(H,"coldConfigStore",Z),4);case 4:return w=h.N,h.return(w)}})}; Axy=function(G){var X,Q;return g.F(function(R){return R.W==1?g.l(R,$_(G),2):R.W!=3?(X=R.N,Q=void 0,g.l(R,g.Ee(X,["coldConfigStore"],{mode:"readwrite",oW:!0},function(S){return g.BI(S.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(Z){Q=Z.getValue()})}),3)):R.return(Q)})}; nxe=function(G){var X,Q;return g.F(function(R){return R.W==1?g.l(R,$_(G),2):R.W!=3?(X=R.N,Q=void 0,g.l(R,g.Ee(X,["hotConfigStore"],{mode:"readwrite",oW:!0},function(S){return g.BI(S.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(Z){Q=Z.getValue()})}),3)):R.return(Q)})}; $Ol=function(){return g.F(function(G){return g.l(G,WR7("ytGcfConfig"),0)})}; bq=function(){g.I.call(this);this.W=[];this.N=[];var G=g.QH("yt.gcf.config.hotUpdateCallbacks");G?(this.W=[].concat(g.o0(G)),this.N=G):(this.N=[],g.G3("yt.gcf.config.hotUpdateCallbacks",this.N))}; QB=function(){var G=this;this.C=!1;this.Y=this.V=0;this.S=new bq;this.gh={Nkp:function(){G.C=!0}, tgm:function(){return G.N}, Y9p:function(X){vI(G,X)}, a5:function(X){G.a5(X)}, ADU:function(X){J$(G,X)}, Af:function(){return G.coldHashData}, xt:function(){return G.hotHashData}, RsB:function(){return G.W}, Yp_:function(){return iq()}, xQ_:function(){return Gw()}, Vgi:function(){return g.QH("yt.gcf.config.coldHashData")}, hs_:function(){return g.QH("yt.gcf.config.hotHashData")}, v0C:function(){bUy(G)}, j5i:function(){G.a5(void 0);XQ(G);delete QB.instance}, WWb:function(X){G.Y=X}, WXm:function(){return G.Y}}}; vx7=function(){if(!QB.instance){var G=new QB;QB.instance=G}return QB.instance}; Gke=function(G){var X;g.F(function(Q){if(Q.W==1)return g.jg("start_client_gcf")||g.jg("delete_gcf_config_db")?g.jg("start_client_gcf")?g.l(Q,g.NT(),3):Q.pO(2):Q.return();Q.W!=2&&((X=Q.N)&&g.pZ()&&!g.jg("delete_gcf_config_db")?(G.C=!0,bUy(G)):(Jxi(G),iUV(G)));return g.jg("delete_gcf_config_db")?g.l(Q,$Ol(),0):Q.pO(0)})}; Si=function(){var G;return(G=Gw())!=null?G:g.WO("RAW_HOT_CONFIG_GROUP")}; XJG=function(G){var X,Q,R,S,Z,H;return g.F(function(w){switch(w.W){case 1:if(G.W)return w.return(Gw());if(!G.C)return X=g.MT("getHotConfig IDB not initialized"),NV(X),w.return(Promise.reject(X));Q=D6();R=g.WO("TIME_CREATED_MS");if(!Q){S=g.MT("getHotConfig token error");NV(S);w.pO(2);break}return g.l(w,nxe(Q),3);case 3:if((Z=w.N)&&Z.timestamp>R)return vI(G,Z.config),G.a5(Z.hashData),w.return(Gw());case 2:iUV(G);if(!(Q&&G.W&&G.hotHashData)){w.pO(4);break}return g.l(w,DOe(G.W,G.hotHashData,Q,R),4);case 4:return G.W? w.return(Gw()):(H=new g.Ic("Config not available in ytConfig"),NV(H),w.return(Promise.reject(H)))}})}; ReS=function(G){var X,Q,R,S,Z,H;return g.F(function(w){switch(w.W){case 1:if(G.N)return w.return(iq());if(!G.C)return X=g.MT("getColdConfig IDB not initialized"),NV(X),w.return(Promise.reject(X));Q=D6();R=g.WO("TIME_CREATED_MS");if(!Q){S=g.MT("getColdConfig");NV(S);w.pO(2);break}return g.l(w,Axy(Q),3);case 3:if((Z=w.N)&&Z.timestamp>R)return J$(G,Z.config),Qti(G,Z.configData),XQ(G,Z.hashData),w.return(iq());case 2:Jxi(G);if(!(Q&&G.N&&G.coldHashData&&G.configData)){w.pO(4);break}return g.l(w,NvG(G.N, G.coldHashData,G.configData,Q,R),4);case 4:return G.N?w.return(iq()):(H=new g.Ic("Config not available in ytConfig"),NV(H),w.return(Promise.reject(H)))}})}; bUy=function(G){if(!G.W||!G.N){if(!D6()){var X=g.MT("scheduleGetConfigs");NV(X)}G.V||(G.V=g.Ft.GR(function(){return g.F(function(Q){switch(Q.W){case 1:return g.a0(Q,2),g.l(Q,XJG(G),4);case 4:g.OC(Q,3);break;case 2:g.cl(Q);case 3:return g.a0(Q,5),g.l(Q,ReS(G),7);case 7:g.OC(Q,6);break;case 5:g.cl(Q);case 6:G.V&&(G.V=0),g.rX(Q)}})},100))}}; S_l=function(G,X,Q){var R,S,Z;return g.F(function(H){switch(H.W){case 1:if(!g.jg("start_client_gcf")){H.pO(0);break}Q&&vI(G,Q);G.a5(X);R=D6();if(!R){H.pO(3);break}if(Q){H.pO(4);break}return g.l(H,nxe(R),5);case 5:S=H.N,Q=(Z=S)==null?void 0:Z.config;case 4:return g.l(H,DOe(Q,X,R),3);case 3:if(Q)for(var w=Q,h=g.e(G.S.N),L=h.next();!L.done;L=h.next())L=L.value,L(w);g.rX(H)}})}; ZdX=function(G,X,Q){var R,S,Z,H;return g.F(function(w){if(w.W==1){if(!g.jg("start_client_gcf"))return w.pO(0);XQ(G,X);return(R=D6())?Q?w.pO(4):g.l(w,Axy(R),5):w.pO(0)}w.W!=4&&(S=w.N,Q=(Z=S)==null?void 0:Z.config);if(!Q)return w.pO(0);H=Q.configData;return g.l(w,NvG(Q,X,H,R),0)})}; Hd7=function(){var G=vx7(),X=(0,g.TB)()-G.Y;if(!(G.Y!==0&&X0&&(X.request={internalExperimentFlags:Q});wJ7(G,void 0,X);he0(void 0,X);L_e(void 0,X);kkC(G,void 0,X);Y_X(void 0,X);g.jg("start_client_gcf")&&jte(void 0,X);g.WO("DELEGATED_SESSION_ID")&& !g.jg("pageid_as_header_web")&&(X.user={onBehalfOfUser:g.WO("DELEGATED_SESSION_ID")});!g.jg("fill_delegate_context_in_gel_killswitch")&&(G=g.WO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(X.user=Object.assign({},X.user,{serializedDelegationContext:G}));G=g.WO("INNERTUBE_CONTEXT");var R;if(g.jg("enable_persistent_device_token")&&(G==null?0:(R=G.client)==null?0:R.rolloutToken)){var S;X.client.rolloutToken=G==null?void 0:(S=G.client)==null?void 0:S.rolloutToken}R=Object;S=R.assign;G=X.client; Q={};for(var Z=g.e(Object.entries($r(g.WO("DEVICE","")))),H=Z.next();!H.done;H=Z.next()){var w=g.e(H.value);H=w.next().value;w=w.next().value;H==="cbrand"?Q.deviceMake=w:H==="cmodel"?Q.deviceModel=w:H==="cbr"?Q.browserName=w:H==="cbrver"?Q.browserVersion=w:H==="cos"?Q.osName=w:H==="cosver"?Q.osVersion=w:H==="cplatform"&&(Q.platform=w)}X.client=S.call(R,G,Q);return X}; wJ7=function(G,X,Q){G=G.jy;if(G==="WEB"||G==="MWEB"||G===1||G===2)if(X){Q=r8(X,Kc,96)||new Kc;var R=cA();R=Object.keys(M_C).indexOf(R);R=R===-1?null:R;R!==null&&V$(Q,3,R);EJ(X,Kc,96,Q)}else Q&&(Q.client.mainAppWebInfo=(R=Q.client.mainAppWebInfo)!=null?R:{},Q.client.mainAppWebInfo.webDisplayMode=cA())}; he0=function(G,X){var Q=g.QH("yt.embedded_player.embed_url");Q&&(G?(X=r8(G,xr,7)||new xr,CS(X,4,Q),EJ(G,xr,7,X)):X&&(X.thirdParty={embedUrl:Q}))}; L_e=function(G,X){var Q;if(g.jg("web_log_memory_total_kbytes")&&((Q=g.i7.navigator)==null?0:Q.deviceMemory)){var R;Q=(R=g.i7.navigator)==null?void 0:R.deviceMemory;G?XM(G,95,rf(Q*1E6)):X&&(X.client.memoryTotalKbytes=""+Q*1E6)}}; kkC=function(G,X,Q){if(G.appInstallData)if(X){var R;Q=(R=r8(X,T0,62))!=null?R:new T0;CS(Q,6,G.appInstallData);EJ(X,T0,62,Q)}else Q&&(Q.client.configInfo=Q.client.configInfo||{},Q.client.configInfo.appInstallData=G.appInstallData)}; Y_X=function(G,X){var Q=v$S();Q&&(G?V$(G,61,mAw[Q]):X&&(X.client.connectionType=Q));g.jg("web_log_effective_connection_type")&&(Q=iee())&&(G?V$(G,94,ogT[Q]):X&&(X.client.effectiveConnectionType=Q))}; uj7=function(G,X,Q){Q=Q===void 0?{}:Q;var R={};g.WO("EOM_VISITOR_DATA")?R={"X-Goog-EOM-Visitor-Id":g.WO("EOM_VISITOR_DATA")}:R={"X-Goog-Visitor-Id":Q.visitorData||g.WO("VISITOR_DATA","")};if(X&&X.includes("www.youtube-nocookie.com"))return R;X=Q.r0||g.WO("AUTHORIZATION");X||(G?X="Bearer "+g.QH("gapi.auth.getToken")().access_token:(G=Dfw().Vo(q4),g.jg("pageid_as_header_web")||delete G["X-Goog-PageId"],R=Object.assign({},R,G)));X&&(R.Authorization=X);return R}; jte=function(G,X){var Q=Hd7();if(Q){var R=Q.coldConfigData,S=Q.coldHashData;Q=Q.hotHashData;if(G){var Z;X=(Z=r8(G,T0,62))!=null?Z:new T0;R=CS(X,1,R);CS(R,3,S).a5(Q);EJ(G,T0,62,X)}else X&&(X.client.configInfo=X.client.configInfo||{},R&&(X.client.configInfo.coldConfigData=R),S&&(X.client.configInfo.coldHashData=S),Q&&(X.client.configInfo.hotHashData=Q))}}; wW=function(G,X){this.version=G;this.args=X}; hs=function(G,X){this.topic=G;this.N=X}; kQ=function(G,X){var Q=LH();Q&&Q.publish.call(Q,G.toString(),G,X)}; TCX=function(G){var X=PI0,Q=LH();if(!Q)return 0;var R=Q.subscribe(X.toString(),function(S,Z){var H=g.QH("ytPubsub2Pubsub2SkipSubKey");H&&H==R||(H=function(){if(YQ[R])try{if(Z&&X instanceof hs&&X!=S)try{var w=X.N,h=Z;if(!h.args||!h.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!w.bq){var L=new w;w.bq=L.version}var k=w.bq}catch(Y){}if(!k||h.version!=k)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{Z=Reflect.construct(w, g.lL(h.args))}catch(Y){throw Y.message="yt.pubsub2.Data.deserialize(): "+Y.message,Y;}}catch(Y){throw Y.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+X.toString()+": "+Y.message,Y;}G.call(window,Z)}catch(Y){g.fc(Y)}},st7[X.toString()]?g.nZ()?g.Ft.GR(H):g.wp(H,0):H())}); YQ[R]=!0;ji[X.toString()]||(ji[X.toString()]=[]);ji[X.toString()].push(R);return R}; rZS=function(){var G=K_T,X=TCX(function(Q){G.apply(void 0,arguments);ee0(X)}); return X}; ee0=function(G){var X=LH();X&&(typeof G==="number"&&(G=[G]),g.vn(G,function(Q){X.unsubscribeByKey(Q);delete YQ[Q]}))}; LH=function(){return g.QH("ytPubsub2Pubsub2Instance")}; M4=function(G,X,Q){Q=Q===void 0?{sampleRate:.1}:Q;Math.random()cZw||H=BCG&&(as++,g.jg("abandon_compression_after_N_slow_zips")?rW===g.MN("compression_disable_point")&&as>F_y&&(Tw=!1):Tw=!1);CIl(X);R.headers||(R.headers={});R.headers["Content-Encoding"]="gzip";R.postBody=G;R.postParams=void 0;S(Q,R)}; t_S=function(G){var X=X===void 0?!1:X;var Q=Q===void 0?!1:Q;var R=(0,g.TB)(),S={startTime:R,ticks:{},infos:{}},Z=X?g.QH("yt.logging.gzipForFetch",!1):!0;if(Tw&&Z){if(!G.body)return G;try{var H=Q?G.body:typeof G.body==="string"?G.body:JSON.stringify(G.body);Z=H;if(!Q&&typeof H==="string"){var w=ze7(H);if(w!=null&&(w>cZw||w=BCG)if(as++,g.jg("abandon_compression_after_N_slow_zips")||g.jg("abandon_compression_after_N_slow_zips_lr")){X=as/rW;var L=F_y/g.MN("compression_disable_point");rW>0&&rW%g.MN("compression_disable_point")===0&&X>=L&&(Tw=!1)}else Tw=!1;CIl(S)}}G.headers=Object.assign({},{"Content-Encoding":"gzip"},G.headers||{});G.body=Z;return G}catch(k){return NV(k),G}}else return G}; ze7=function(G){try{return(new Blob(G.split(""))).size}catch(X){return NV(X),null}}; CIl=function(G){g.jg("gel_compression_csi_killswitch")||!g.jg("log_gel_compression_latency")&&!g.jg("log_gel_compression_latency_lr")||M4("gel_compression",G,{sampleRate:.1})}; xQ=function(G){var X=this;this.dH=this.N=!1;this.potentialEsfErrorCounter=this.W=0;this.handleError=function(){}; this.bl=function(){}; this.now=Date.now;this.m_=!1;this.gh={yDO:function(k){X.Te=k}, ldT:function(){X.ZM()}, CE:function(){X.qD()}, Xl:function(k){return g.F(function(Y){return g.l(Y,X.Xl(k),0)})}, gP:function(k,Y){return X.gP(k,Y)}, N4:function(){X.N4()}}; var Q;this.kX=(Q=G.kX)!=null?Q:100;var R;this.E7=(R=G.E7)!=null?R:1;var S;this.Pg=(S=G.Pg)!=null?S:2592E6;var Z;this.U7=(Z=G.U7)!=null?Z:12E4;var H;this.XK=(H=G.XK)!=null?H:5E3;var w;this.Te=(w=G.Te)!=null?w:void 0;this.JU=!!G.JU;var h;this.VF=(h=G.VF)!=null?h:.1;var L;this.GN=(L=G.GN)!=null?L:10;G.handleError&&(this.handleError=G.handleError);G.bl&&(this.bl=G.bl);G.m_&&(this.m_=G.m_);G.dH&&(this.dH=G.dH);this.TT=G.TT;this.eT=G.eT;this.cF=G.cF;this.MG=G.MG;this.sendFn=G.sendFn;this.jk=G.jk;this.NJ= G.NJ;E3(this)&&(!this.TT||this.TT("networkless_logging"))&&V_T(this)}; V_T=function(G){E3(G)&&!G.m_&&(G.N=!0,G.JU&&Math.random()<=G.VF&&G.cF.ip(G.Te),G.N4(),G.MG.xu()&&G.ZM(),G.MG.listen(G.jk,G.ZM.bind(G)),G.MG.listen(G.NJ,G.qD.bind(G)))}; W_0=function(G,X){if(!E3(G))throw Error("IndexedDB is not supported: updateRequestHandlers");var Q=X.options.onError?X.options.onError:function(){}; X.options.onError=function(S,Z){var H,w,h,L;return g.F(function(k){switch(k.W){case 1:H=Iw7(Z);(w=dAS(Z))&&G.TT&&G.TT("web_enable_error_204")&&G.handleError(Error("Request failed due to compression"),X.url,Z);if(!(G.TT&&G.TT("nwl_consider_error_code")&&H||G.TT&&!G.TT("nwl_consider_error_code")&&G.potentialEsfErrorCounter<=G.GN)){k.pO(2);break}if(!G.MG.V6){k.pO(3);break}return g.l(k,G.MG.V6(),3);case 3:if(G.MG.xu()){k.pO(2);break}Q(S,Z);if(!G.TT||!G.TT("nwl_consider_error_code")||((h=X)==null?void 0: h.id)===void 0){k.pO(6);break}return g.l(k,G.cF.GX(X.id,G.Te,!1),6);case 6:return k.return();case 2:if(G.TT&&G.TT("nwl_consider_error_code")&&!H&&G.potentialEsfErrorCounter>G.GN)return k.return();G.potentialEsfErrorCounter++;if(((L=X)==null?void 0:L.id)===void 0){k.pO(8);break}return X.sendCount=400&&G<=599?!1:!0}; dAS=function(G){var X;G=G==null?void 0:(X=G.error)==null?void 0:X.code;return!(G!==400&&G!==415)}; pJi=function(){if(zw)return zw();var G={};zw=g.nl("LogsDatabaseV2",{KW:(G.LogsRequestsStore={zO:2},G),shared:!1,upgrade:function(X,Q,R){Q(2)&&g.rb(X,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});Q(3);Q(5)&&(R=R.objectStore("LogsRequestsStore"),R.N.indexNames.contains("newRequest")&&R.N.deleteIndex("newRequest"),g.cI(R,"newRequestV2",["status","interface","timestamp"]));Q(7)&&aq(X,"sapisid");Q(9)&&aq(X,"SWHealthLog")}, version:9});return zw()}; ce=function(G){return g.VL(pJi(),G)}; fwZ=function(G,X){var Q,R,S,Z;return g.F(function(H){if(H.W==1)return Q={startTime:(0,g.TB)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.l(H,ce(X),2);if(H.W!=3)return R=H.N,S=Object.assign({},G,{options:JSON.parse(JSON.stringify(G.options)),interface:g.WO("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.l(H,g.Oe(R,"LogsRequestsStore",S),3);Z=H.N;Q.ticks.tc=(0,g.TB)();yZS(Q);return H.return(Z)})}; DAG=function(G,X){var Q,R,S,Z,H,w,h,L,k;return g.F(function(Y){if(Y.W==1)return Q={startTime:(0,g.TB)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.l(Y,ce(X),2);if(Y.W!=3)return R=Y.N,S=g.WO("INNERTUBE_CONTEXT_CLIENT_NAME",0),Z=[G,S,0],H=[G,S,(0,g.TB)()],w=IDBKeyRange.bound(Z,H),h="prev",g.jg("use_fifo_for_networkless")&&(h="next"),L=void 0,k=G==="NEW"?"readwrite":"readonly",g.jg("use_readonly_for_get_most_recent_by_status_killswitch")&&(k="readwrite"),g.l(Y,g.Ee(R,["LogsRequestsStore"], {mode:k,oW:!0},function(M){return g.BI(M.objectStore("LogsRequestsStore").index("newRequestV2"),{query:w,direction:h},function(m){m.getValue()&&(L=m.getValue(),G==="NEW"&&(L.status="QUEUED",m.update(L)))})}),3); Q.ticks.tc=(0,g.TB)();yZS(Q);return Y.return(L)})}; NCV=function(G,X){var Q;return g.F(function(R){if(R.W==1)return g.l(R,ce(X),2);Q=R.N;return R.return(g.Ee(Q,["LogsRequestsStore"],{mode:"readwrite",oW:!0},function(S){var Z=S.objectStore("LogsRequestsStore");return Z.get(G).then(function(H){if(H)return H.status="QUEUED",g.x_(Z,H).then(function(){return H})})}))})}; AZl=function(G,X,Q,R){Q=Q===void 0?!0:Q;var S;return g.F(function(Z){if(Z.W==1)return g.l(Z,ce(X),2);S=Z.N;return Z.return(g.Ee(S,["LogsRequestsStore"],{mode:"readwrite",oW:!0},function(H){var w=H.objectStore("LogsRequestsStore");return w.get(G).then(function(h){return h?(h.status="NEW",Q&&(h.sendCount+=1),R!==void 0&&(h.options.compress=R),g.x_(w,h).then(function(){return h})):g.oq.resolve(void 0)})}))})}; ngS=function(G,X){var Q;return g.F(function(R){if(R.W==1)return g.l(R,ce(X),2);Q=R.N;return R.return(Q.delete("LogsRequestsStore",G))})}; $AV=function(G){var X,Q;return g.F(function(R){if(R.W==1)return g.l(R,ce(G),2);X=R.N;Q=(0,g.TB)()-2592E6;return g.l(R,g.Ee(X,["LogsRequestsStore"],{mode:"readwrite",oW:!0},function(S){return g.gb(S.objectStore("LogsRequestsStore"),{},function(Z){if(Z.getValue().timestamp<=Q)return Z.delete().then(function(){return g.Ue(Z)})})}),0)})}; bdZ=function(){g.F(function(G){return g.l(G,WR7("LogsDatabaseV2"),0)})}; yZS=function(G){g.jg("nwl_csi_killswitch")||M4("networkless_performance",G,{sampleRate:1})}; JZX=function(G){return g.VL(vgC(),G)}; idV=function(G){var X,Q;g.F(function(R){if(R.W==1)return g.l(R,JZX(G),2);X=R.N;Q=(0,g.TB)()-2592E6;return g.l(R,g.Ee(X,["SWHealthLog"],{mode:"readwrite",oW:!0},function(S){return g.gb(S.objectStore("SWHealthLog"),{},function(Z){if(Z.getValue().timestamp<=Q)return Z.delete().then(function(){return g.Ue(Z)})})}),0)})}; G0Z=function(G){var X;return g.F(function(Q){if(Q.W==1)return g.l(Q,JZX(G),2);X=Q.N;return g.l(Q,X.clear("SWHealthLog"),0)})}; g.gW=function(G,X,Q,R,S,Z,H){S=S===void 0?"":S;Z=Z===void 0?!1:Z;H=H===void 0?!1:H;if(G)if(Q&&!g.V9())NV(new g.Ic("Legacy referrer-scrubbed ping detected")),G&&XOi(G,void 0,{scrubReferrer:!0});else if(S)uX(G,X,"POST",S,R);else if(g.WO("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||R||H)uX(G,X,"GET","",R,void 0,Z,H);else{b:{try{c:{var w=new r3l({url:G});if(w.N.dsh==="1")var h=null;else{var L=w.N.ae;if(L==="1"){var k=w.N.adurl;if(k)try{h={version:3,x9:decodeURIComponent(k),Ri:NZ(w.W,"act=1","ri=1",a8T(w))}; break c}catch(m){}}h=L==="2"?{version:4,x9:NZ(w.W,"dct=1","suid="+w.Y,""),Ri:NZ(w.W,"act=1","ri=1","suid="+w.Y)}:null}}if(h){var Y=L0(G);var M=!(!Y||!Y.endsWith("/aclk")||K0(G,"ri")!=="1");break b}}catch(m){}M=!1}M?QZS(G)?(X&&X(),Q=!0):Q=!1:Q=!1;Q||XOi(G,X)}}; QZS=function(G,X){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(G,X===void 0?"":X))return!0}catch(Q){}return!1}; XOi=function(G,X,Q){Q=Q===void 0?{}:Q;var R=new Image,S=""+R4e++;U3[S]=R;R.onload=R.onerror=function(){X&&U3[S]&&X();delete U3[S]}; Q.scrubReferrer&&(R.referrerPolicy="no-referrer");R.src=G}; SIl=function(G){var X;return((X=document.featurePolicy)==null?0:X.allowedFeatures().includes("attribution-reporting"))?G+"&nis=6":G+"&nis=5"}; Be=function(){lC||(lC=new ba("yt.offline"));return lC}; ZcX=function(G){if(g.jg("offline_error_handling")){var X=Be().get("errors",!0)||{};X[G.message]={name:G.name,stack:G.stack};G.level&&(X[G.message].level=G.level);Be().set("errors",X,2592E3,!0)}}; FQ=function(){this.N=new Map;this.W=!1}; CH=function(){if(!FQ.instance){var G=g.QH("yt.networkRequestMonitor.instance")||new FQ;g.G3("yt.networkRequestMonitor.instance",G);FQ.instance=G}return FQ.instance}; ts=function(){g.hJ.call(this);var G=this;this.W=!1;this.N=uJX();this.N.listen("networkstatus-online",function(){if(G.W&&g.jg("offline_error_handling")){var X=Be().get("errors",!0);if(X){for(var Q in X)if(X[Q]){var R=new g.Ic(Q,"sent via offline_errors");R.name=X[Q].name;R.stack=X[Q].stack;R.level=X[Q].level;g.fc(R)}Be().set("errors",{},2592E3,!0)}}})}; HcV=function(){if(!ts.instance){var G=g.QH("yt.networkStatusManager.instance")||new ts;g.G3("yt.networkStatusManager.instance",G);ts.instance=G}return ts.instance}; g.VB=function(G){G=G===void 0?{}:G;g.hJ.call(this);var X=this;this.N=this.V=0;this.W=HcV();var Q=g.QH("yt.networkStatusManager.instance.listen").bind(this.W);Q&&(G.rateLimit?(this.rateLimit=G.rateLimit,Q("networkstatus-online",function(){qIC(X,"publicytnetworkstatus-online")}),Q("networkstatus-offline",function(){qIC(X,"publicytnetworkstatus-offline")})):(Q("networkstatus-online",function(){X.dispatchEvent("publicytnetworkstatus-online")}),Q("networkstatus-offline",function(){X.dispatchEvent("publicytnetworkstatus-offline")})))}; qIC=function(G,X){G.rateLimit?G.N?(g.Ft.tX(G.V),G.V=g.Ft.GR(function(){G.Y!==X&&(G.dispatchEvent(X),G.Y=X,G.N=(0,g.TB)())},G.rateLimit-((0,g.TB)()-G.N))):(G.dispatchEvent(X),G.Y=X,G.N=(0,g.TB)()):G.dispatchEvent(X)}; dW=function(){var G=xQ.call;Is||(Is=new g.VB({I8H:!0,nBU:!0}));G.call(xQ,this,{cF:{ip:$AV,DY:ngS,Kh:DAG,Y_b:NCV,GX:AZl,set:fwZ},MG:Is,handleError:function(X,Q,R){var S,Z=R==null?void 0:(S=R.error)==null?void 0:S.code;if(Z===400||Z===415){var H;X=new g.Ic(X.message,Q,R==null?void 0:(H=R.error)==null?void 0:H.code);NV(X,void 0,void 0,void 0,!0)}else g.fc(X)}, bl:NV,sendFn:wOl,now:g.TB,Gu:ZcX,eT:g.A7(),jk:"publicytnetworkstatus-online",NJ:"publicytnetworkstatus-offline",JU:!0,VF:.1,GN:g.MN("potential_esf_error_limit",10),TT:g.jg,m_:!(g.pZ()&&g.hN(document.location.toString())!=="www.youtube-nocookie.com")});this.Y=new g.wh;g.jg("networkless_immediately_drop_all_requests")&&bdZ();pWU("LogsDatabaseV2")}; We=function(){var G=g.QH("yt.networklessRequestController.instance");G||(G=new dW,g.G3("yt.networklessRequestController.instance",G),g.jg("networkless_logging")&&g.NT().then(function(X){G.Te=X;V_T(G);G.Y.resolve();G.JU&&Math.random()<=G.VF&&G.Te&&idV(G.Te);g.jg("networkless_immediately_drop_sw_health_store")&&h4Z(G)})); return G}; h4Z=function(G){var X;g.F(function(Q){if(!G.Te)throw X=g.MT("clearSWHealthLogsDb"),X;return Q.return(G0Z(G.Te).catch(function(R){G.handleError(R)}))})}; wOl=function(G,X,Q,R){R=R===void 0?!1:R;X=g.jg("web_fp_via_jspb")?Object.assign({},X):X;g.jg("use_cfr_monitor")&&LyG(G,X);if(g.jg("use_request_time_ms_header"))X.headers&&G_(G)&&(X.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.TB)())));else{var S;if((S=X.postParams)==null?0:S.requestTimeMs)X.postParams.requestTimeMs=Math.round((0,g.TB)())}Q&&Object.keys(X).length===0?g.gW(G):X.compress?X.postBody?(typeof X.postBody!=="string"&&(X.postBody=JSON.stringify(X.postBody)),ei(G,X.postBody, X,g.PT,R)):ei(G,JSON.stringify(X.postParams),X,sh,R):g.PT(G,X)}; pH=function(G,X){g.jg("use_event_time_ms_header")&&G_(G)&&(X.headers||(X.headers={}),X.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.TB)())));return X}; LyG=function(G,X){var Q=X.onError?X.onError:function(){}; X.onError=function(S,Z){CH().requestComplete(G,!1);Q(S,Z)}; var R=X.onSuccess?X.onSuccess:function(){}; X.onSuccess=function(S,Z){CH().requestComplete(G,!0);R(S,Z)}}; g.yB=function(G){this.config_=null;G?this.config_=G:q_T()&&(this.config_=g.Z3())}; g.fH=function(G,X,Q,R){function S(L){try{if((L===void 0?0:L)&&R.retry&&!R.networklessOptions.bypassNetworkless)Z.method="POST",R.networklessOptions.writeThenSend?We().writeThenSend(h,Z):We().sendAndWrite(h,Z);else if(R.compress){var k=!R.networklessOptions.writeThenSend;if(Z.postBody){var Y=Z.postBody;typeof Y!=="string"&&(Y=JSON.stringify(Z.postBody));ei(h,Y,Z,g.PT,k)}else ei(h,JSON.stringify(Z.postParams),Z,sh,k)}else g.jg("web_all_payloads_via_jspb")?g.PT(h,Z):sh(h,Z)}catch(M){if(M.name==="InvalidAccessError")NV(Error("An extension is blocking network request.")); else throw M;}} !g.WO("VISITOR_DATA")&&X!=="visitor_id"&&Math.random()<.01&&NV(new g.Ic("Missing VISITOR_DATA when sending innertube request.",X,Q,R));if(!G.isReady())throw G=new g.Ic("innertube xhrclient not ready",X,Q,R),g.fc(G),G;var Z={headers:R.headers||{},method:"POST",postParams:Q,postBody:R.postBody,postBodyFormat:R.postBodyFormat||"JSON",onTimeout:function(){R.onTimeout()}, onFetchTimeout:R.onTimeout,onSuccess:function(L,k){if(R.onSuccess)R.onSuccess(k)}, onFetchSuccess:function(L){if(R.onSuccess)R.onSuccess(L)}, onProgress:function(L){if(R.onProgress)R.onProgress(L)}, onError:function(L,k){if(R.onError)R.onError(k)}, onFetchError:function(L){if(R.onError)R.onError(L)}, timeout:R.timeout,withCredentials:!0,compress:R.compress};Z.headers["Content-Type"]||(Z.headers["Content-Type"]="application/json");Q="";var H=G.config_.Zf;H&&(Q=H);H=G.config_.KU||!1;var w=uj7(H,Q,R);Object.assign(Z.headers,w);Z.headers.Authorization&&!Q&&H&&(Z.headers["x-origin"]=window.location.origin);var h=JD(""+Q+("/youtubei/"+G.config_.innertubeApiVersion+"/"+X),{alt:"json"});g.QH("ytNetworklessLoggingInitializationOptions")&&k0Z.isNwlInitialized?BvV().then(function(L){S(L)}):S(!1)}; g.$Q=function(G,X,Q){var R=g.D3();if(R&&X){var S=R.subscribe(G,function(){function Z(){N4[S]&&X.apply&&typeof X.apply=="function"&&X.apply(Q||window,H)} var H=arguments;try{g.As[G]?Z():g.wp(Z,0)}catch(w){g.fc(w)}},Q); N4[S]=!0;nH[G]||(nH[G]=[]);nH[G].push(S);return S}return 0}; YIG=function(G){var X=g.$Q("LOGGED_IN",function(Q){G.apply(void 0,arguments);g.bC(X)})}; g.bC=function(G){var X=g.D3();X&&(typeof G==="number"?G=[G]:typeof G==="string"&&(G=[parseInt(G,10)]),g.vn(G,function(Q){X.unsubscribeByKey(Q);delete N4[Q]}))}; g.ve=function(G,X){var Q=g.D3();return Q?Q.publish.apply(Q,arguments):!1}; Mp0=function(G){var X=g.D3();if(X)if(X.clear(G),G)jZZ(G);else for(var Q in nH)jZZ(Q)}; g.D3=function(){return g.i7.ytPubsubPubsubInstance}; jZZ=function(G){nH[G]&&(G=nH[G],g.vn(G,function(X){N4[X]&&delete N4[X]}),G.length=0)}; g.Js=function(G,X,Q){mVw(G,X,Q===void 0?null:Q)}; mVw=function(G,X,Q){Q=Q===void 0?null:Q;var R=orX(typeof G==="string"?G:G.toString()),S=document.getElementById(R),Z=S&&clZ(S),H=S&&!Z;Z?X&&X():(X&&(Z=g.$Q(R,X),X=""+g.wH(X),urZ[X]=Z),H||(S=Pby(G,R,function(){clZ(S)||(zyG(S),g.ve(R),g.wp(function(){Mp0(R)},0))},Q)))}; Pby=function(G,X,Q,R){R=R===void 0?null:R;var S=g.ml("SCRIPT");S.id=X;S.onload=function(){Q&&setTimeout(Q,0)}; S.onreadystatechange=function(){switch(S.readyState){case "loaded":case "complete":S.onload()}}; R&&S.setAttribute("nonce",R);g.KT(S,typeof G==="string"?g.PO(G):G);G=document.getElementsByTagName("head")[0]||document.body;G.insertBefore(S,G.firstChild);return S}; orX=function(G){var X=document.createElement("a");g.ki(X,G);G=X.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Bo(G)}; iC=function(G,X){if(G===X)G=!0;else if(Array.isArray(G)&&Array.isArray(X))G=g.$4(G,X,iC);else if(g.Hn(G)&&g.Hn(X))a:if(g.qn(G).length!=g.qn(X).length)G=!1;else{for(var Q in G)if(!iC(G[Q],X[Q])){G=!1;break a}G=!0}else G=!1;return G}; HR=function(G){var X=g.Wl.apply(1,arguments);if(!Sh(G)||X.some(function(R){return!Sh(R)}))throw Error("Only objects may be merged."); X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())ZD(G,Q.value)}; ZD=function(G,X){for(var Q in X)if(Sh(X[Q])){if(Q in G&&!Sh(G[Q]))throw Error("Cannot merge an object into a non-object.");Q in G||(G[Q]={});ZD(G[Q],X[Q])}else if(qt(X[Q])){if(Q in G&&!qt(G[Q]))throw Error("Cannot merge an array into a non-array.");Q in G||(G[Q]=[]);sZ7(G[Q],X[Q])}else G[Q]=X[Q];return G}; sZ7=function(G,X){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,Sh(Q)?G.push(ZD({},Q)):qt(Q)?G.push(sZ7([],Q)):G.push(Q);return G}; Sh=function(G){return typeof G==="object"&&!Array.isArray(G)}; qt=function(G){return typeof G==="object"&&Array.isArray(G)}; wE=function(G){g.I.call(this);this.W=G}; hg=function(G){wE.call(this,!0);this.N=G}; L7=function(G,X){g.I.call(this);var Q=this;this.Y=[];this.J=!1;this.W=0;this.C=this.S=this.V=!1;this.AT=null;var R=(0,g.La)(G,X);this.N=new g.fU(function(){return R(Q.AT)},300); g.d(this,this.N);this.j=this.T=Infinity}; TiT=function(G,X){if(!X)return!1;for(var Q=0;Q-1)throw Error("Deps cycle for: "+X);if(G.W.has(X))return G.W.get(X);if(!G.N.has(X)){if(R)return;throw Error("No provider for: "+X);}R=G.N.get(X);Q.push(X);if(R.HC!==void 0)var S=R.HC;else if(R.hzH)S=R[eh]?aoy(G,R[eh],Q):[],S=R.hzH.apply(R,g.o0(S));else if(R.u0){S=R.u0;var Z=S[eh]?aoy(G,S[eh],Q):[];S=new (Function.prototype.bind.apply(S,[null].concat(g.o0(Z))))}else throw Error("Could not resolve providers for: "+X);Q.pop();R.n0B||G.W.set(X,S); return S}; aoy=function(G,X,Q){return X?X.map(function(R){return R instanceof sT?rE(G,R.key,Q,!0):rE(G,R,Q)}):[]}; ET=function(){af||(af=new rDl);return af}; xVG=function(){var G=ErG;return function(){var X=ET();X.resolve(TY(G))||K7(X,{LV:G,u0:G});return X.resolve(G)}}; OT=function(){var G,X;return"h5vcc"in xG&&((G=xG.h5vcc.traceEvent)==null?0:G.traceBegin)&&((X=xG.h5vcc.traceEvent)==null?0:X.traceEnd)?1:"performance"in xG&&xG.performance.mark&&xG.performance.measure?2:0}; zY=function(G){var X=OT();switch(X){case 1:xG.h5vcc.traceEvent.traceBegin("YTLR",G);break;case 2:xG.performance.mark(G+"-start");break;case 0:break;default:Yi(X,"unknown trace type")}}; Oci=function(G){var X=OT();switch(X){case 1:xG.h5vcc.traceEvent.traceEnd("YTLR",G);break;case 2:X=G+"-start";var Q=G+"-end";xG.performance.mark(Q);xG.performance.measure(G,X,Q);break;case 0:break;default:Yi(X,"unknown trace type")}}; z4C=function(G){var X,Q;(Q=(X=window).onerror)==null||Q.call(X,G.message,"",0,0,G)}; cDC=function(G){var X=this;var Q=Q===void 0?0:Q;var R=R===void 0?g.A7():R;this.Y=Q;this.scheduler=R;this.W=new g.wh;this.N=G;for(G={GC:0};G.GC=1E3?S():R>=G?i6||(i6=Ge(function(){S();i6=void 0},0)):Z-w>=10&&(AD0(X,Q.tier),H.V=Z)}; pOe=function(G,X){if(G.endpoint==="log_event"){g.jg("more_accurate_gel_parser")&&f7().storePayload({isJspb:!1},G.payload);Nt(G);var Q=Ag(G),R=new Map;R.set(Q,[G.payload]);var S=Ioi(G.payload)||"";X&&(vR=new X);return new g.Ey(function(Z,H){vR&&vR.isReady()?nr0(R,vR,Z,H,{bypassNetworkless:!0},!0,$G(S)):Z()})}}; DVe=function(G,X,Q){if(X.endpoint==="log_event"){Nt(void 0,X);var R=Ag(X,!0),S=new Map;S.set(R,[yf(X.payload)]);Q&&(vR=new Q);return new g.Ey(function(Z){vR&&vR.isReady()?$VU(S,vR,Z,{bypassNetworkless:!0},!0,$G(G)):Z()})}}; Ag=function(G,X){var Q="";if(G.dangerousLogToVisitorSession)Q="visitorOnlyApprovedKey";else if(G.cttAuthInfo){if(X===void 0?0:X){X=G.cttAuthInfo.token;Q=G.cttAuthInfo;var R=new Cc;Q.videoId?R.setVideoId(Q.videoId):Q.playlistId&&M5(R,2,XY,xw(Q.playlistId));Q_[X]=R}else X=G.cttAuthInfo,Q={},X.videoId?Q.videoId=X.videoId:X.playlistId&&(Q.playlistId=X.playlistId),RU[G.cttAuthInfo.token]=Q;Q=G.cttAuthInfo.token}return Q}; b6=function(G,X,Q){G=G===void 0?{}:G;X=X===void 0?!1:X;new g.Ey(function(R,S){var Z=Jg(X,Q),H=Z.Y;Z.Y=!1;Sk(Z.W);Sk(Z.N);Z.N=0;vR&&vR.isReady()?Q===void 0&&g.jg("enable_web_tiered_gel")?bcw(R,S,G,X,300,H):bcw(R,S,G,X,Q,H):(AD0(X,Q),R())})}; bcw=function(G,X,Q,R,S,Z){var H=vR;Q=Q===void 0?{}:Q;R=R===void 0?!1:R;S=S===void 0?200:S;Z=Z===void 0?!1:Z;var w=new Map,h=new Map,L={isJspb:R,cttAuthInfo:void 0,tier:S},k={isJspb:R,cttAuthInfo:void 0};if(R){X=g.e(Object.keys(n7));for(S=X.next();!S.done;S=X.next())S=S.value,h=g.jg("enable_web_tiered_gel")?f7().smartExtractMatchingEntries({keys:[L,k],sizeLimit:1E3}):f7().extractMatchingEntries({isJspb:!0,cttAuthInfo:S}),h.length>0&&w.set(S,h),(g.jg("web_fp_via_jspb_and_json")&&Q.writeThenSend||!g.jg("web_fp_via_jspb_and_json"))&& delete n7[S];$VU(w,H,G,Q,!1,Z)}else{w=g.e(Object.keys(n7));for(L=w.next();!L.done;L=w.next())L=L.value,k=g.jg("enable_web_tiered_gel")?f7().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:L,tier:S},{isJspb:!1,cttAuthInfo:L}],sizeLimit:1E3}):f7().extractMatchingEntries({isJspb:!1,cttAuthInfo:L}),k.length>0&&h.set(L,k),(g.jg("web_fp_via_jspb_and_json")&&Q.writeThenSend||!g.jg("web_fp_via_jspb_and_json"))&&delete n7[L];nr0(h,H,G,X,Q,!1,Z)}}; AD0=function(G,X){function Q(){b6({writeThenSend:!0},G,X)} G=G===void 0?!1:G;X=X===void 0?200:X;var R=Jg(G,X),S=R===vrw||R===JDy?5E3:icX;g.jg("web_gel_timeout_cap")&&!R.N&&(S=Ge(function(){Q()},S),R.N=S); Sk(R.W);S=g.WO("LOGGING_BATCH_TIMEOUT",g.MN("web_gel_debounce_ms",1E4));g.jg("shorten_initial_gel_batch_timeout")&&Zc&&(S=G_X);S=Ge(function(){g.MN("gel_min_batch_size")>0?f7().getSequenceCount({cttAuthInfo:void 0,isJspb:G,tier:X})>=XTT&&Q():Q()},S); R.W=S}; nr0=function(G,X,Q,R,S,Z,H){S=S===void 0?{}:S;var w=Math.round((0,g.TB)()),h=G.size,L=QmU(H);G=g.e(G);var k=G.next();for(H={};!k.done;H={tH:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,LK:void 0,pK:void 0},k=G.next()){var Y=g.e(k.value);k=Y.next().value;Y=Y.next().value;H.batchRequest=g.P$({context:g.He(X.config_||g.Z3())});if(!g.ZV(Y)&&!g.jg("throw_err_when_logevent_malformed_killswitch")){R();break}H.batchRequest.events=Y;(Y=RU[k])&&RTS(H.batchRequest,k,Y);delete RU[k];H.dangerousLogToVisitorSession= k==="visitorOnlyApprovedKey";Shy(H.batchRequest,w,H.dangerousLogToVisitorSession);Zi7(S);H.LK=function(M){g.jg("start_client_gcf")&&g.Ft.GR(function(){return g.F(function(m){return g.l(m,HiC(M),0)})}); h--;h||Q()}; H.tH=0;H.pK=function(M){return function(){M.tH++;if(S.bypassNetworkless&&M.tH===1)try{g.fH(X,L,M.batchRequest,H8({writeThenSend:!0},M.dangerousLogToVisitorSession,M.LK,M.pK,Z)),Zc=!1}catch(m){g.fc(m),R()}h--;h||Q()}}(H); try{g.fH(X,L,H.batchRequest,H8(S,H.dangerousLogToVisitorSession,H.LK,H.pK,Z)),Zc=!1}catch(M){g.fc(M),R()}}}; $VU=function(G,X,Q,R,S,Z){R=R===void 0?{}:R;var H=Math.round((0,g.TB)()),w={value:G.size},h=new Map([].concat(g.o0(G)));h=g.e(h);for(var L=h.next();!L.done;L=h.next()){var k=g.e(L.value).next().value,Y=G.get(k);L=new CDX;var M=X.config_||g.Z3(),m=new cO,u=new ep;CS(u,1,M.fT);CS(u,2,M.bS);V$(u,16,M.ma);CS(u,17,M.innertubeContextClientVersion);if(M.TB){var r=M.TB,x=new T0;r.coldConfigData&&CS(x,1,r.coldConfigData);r.appInstallData&&CS(x,6,r.appInstallData);r.coldHashData&&CS(x,3,r.coldHashData);r.hotHashData&& x.a5(r.hotHashData);EJ(u,T0,62,x)}(r=g.i7.devicePixelRatio)&&r!=1&&XM(u,65,Ly(r));r=mW();r!==""&&CS(u,54,r);r=om();if(r.length>0){x=new EI;for(var c=0;c65535&&(G=1);di("BATCH_CLIENT_COUNTER",G);return G}; RTS=function(G,X,Q){if(Q.videoId)var R="VIDEO";else if(Q.playlistId)R="PLAYLIST";else return;G.credentialTransferTokenTargetId=Q;G.context=G.context||{};G.context.user=G.context.user||{};G.context.user.credentialTransferTokens=[{token:X,scope:R}]}; Nt=function(G,X){var Q=g.QH("yt.logging.transport.enableScrapingForTest"),R=YD("il_payload_scraping");R=(R!==void 0?String(R):"")==="enable_il_payload_scraping";if(!Q)if(R)hf=[],g.G3("yt.logging.transport.enableScrapingForTest",!0),g.G3("yt.logging.transport.scrapedPayloadsForTesting",hf),g.G3("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.G3("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.G3("yt.logging.transport.scrapeClientEvent",!0);else return;Q=g.QH("yt.logging.transport.scrapedPayloadsForTesting");R=g.QH("yt.logging.transport.payloadToScrape");X&&(X=X.payload,(X=g.QH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(X)())&&Q.push(X));X=g.QH("yt.logging.transport.scrapeClientEvent");if(R&&R.length>=1)for(var S=0;S0&&Oi7(G,X,Z)}else Oi7(G,X)}; Oi7=function(G,X,Q){G=zTZ(G);X=X?g.mN(X):"";Q=Q||5;$D()&&g.z_(G,X,Q)}; zTZ=function(G){for(var X=g.e(c8w),Q=X.next();!Q.done;Q=X.next())G=e5(G,Q.value);return"ST-"+Bo(G).toString(36)}; gD7=function(G){if(G.name==="JavaException")return!0;G=G.stack;return G.includes("chrome://")||G.includes("-extension://")||G.includes("webkit-masked-url://")}; UNS=function(G){if(!G.stack)return!0;var X=!G.stack.includes("\n");return X&&G.stack.includes("ErrorType: ")||X&&G.stack.includes("Anonymous function (Unknown script")||G.stack.toLowerCase()==="not available"||G.fileName==="user-script"||G.fileName.startsWith("user-script:")?!0:!1}; lzi=function(){this.Wh=[];this.LW=[]}; Te=function(){if(!sL){var G=sL=new lzi;G.LW.length=0;G.Wh.length=0;BpV(G,FWl)}return sL}; BpV=function(G,X){X.LW&&G.LW.push.apply(G.LW,X.LW);X.Wh&&G.Wh.push.apply(G.Wh,X.Wh)}; CXS=function(G){function X(){return G.charCodeAt(R++)} var Q=G.length,R=0;do{var S=Kp(X);if(S===Infinity)break;var Z=S>>3;switch(S&7){case 0:S=Kp(X);if(Z===2)return S;break;case 1:if(Z===2)return;R+=8;break;case 2:S=Kp(X);if(Z===2)return G.substr(R,S);R+=S;break;case 5:if(Z===2)return;R+=4;break;default:return}}while(R500));R++);R=S}else if(typeof G==="object")for(S in G){if(G[S]){var Z=S;var H=G[S],w=X,h=Q;Z=typeof H!=="string"||Z!=="clickTrackingParams"&&Z!=="trackingParams"?0:(H=CXS(atob(H.replace(/-/g,"+").replace(/_/g,"/"))))?ek(Z+".ve",H,w,h):0;R+=Z;R+=ek(S,G[S],X,Q);if(R>500)break}}else Q[X]=rV(G),R+=Q[X].length;else Q[X]=rV(G),R+=Q[X].length;return R}; ek=function(G,X,Q,R){Q+="."+G;G=rV(X);R[Q]=G;return Q.length+G.length}; rV=function(G){try{return(typeof G==="string"?G:String(JSON.stringify(G))).substr(0,500)}catch(X){return"unable to serialize "+typeof G+" ("+X.message+")"}}; XE=function(G){g.aU(G)}; g.EL=function(G){g.aU(G,"WARNING")}; g.aU=function(G,X){var Q=Q===void 0?{}:Q;Q.name=g.WO("INNERTUBE_CONTEXT_CLIENT_NAME",1);Q.version=g.WO("INNERTUBE_CONTEXT_CLIENT_VERSION");X=X===void 0?"ERROR":X;var R=!1;X=X===void 0?"ERROR":X;R=R===void 0?!1:R;if(G){G.hasOwnProperty("level")&&G.level&&(X=G.level);if(g.jg("console_log_js_exceptions")){var S=[];S.push("Name: "+G.name);S.push("Message: "+G.message);G.hasOwnProperty("params")&&S.push("Error Params: "+JSON.stringify(G.params));G.hasOwnProperty("args")&&S.push("Error args: "+JSON.stringify(G.args)); S.push("File name: "+G.fileName);S.push("Stacktrace: "+G.stack);window.console.log(S.join("\n"),G)}if(!(Vge>=5)){S=[];for(var Z=g.e(Izi),H=Z.next();!H.done;H=Z.next()){H=H.value;try{H()&&S.push(H())}catch(r){}}S=[].concat(g.o0(dNS),g.o0(S));var w=ZaX(G);Z=w.message||"Unknown Error";H=w.name||"UnknownError";var h=w.stack||G.W||"Not available";if(h.startsWith(H+": "+Z)){var L=h.split("\n");L.shift();h=L.join("\n")}L=w.lineNumber||"Not available";w=w.fileName||"Not available";var k=0;if(G.hasOwnProperty("args")&& G.args&&G.args.length)for(var Y=0;Y=500);Y++);else if(G.hasOwnProperty("params")&&G.params){var M=G.params;if(typeof G.params==="object")for(Y in M){if(M[Y]){var m="params."+Y,u=rV(M[Y]);Q[m]=u;k+=m.length+u.length;if(k>500)break}}else Q.params=rV(M)}if(S.length)for(Y=0;Y=500);Y++);navigator.vendor&&!Q.hasOwnProperty("vendor")&&(Q["device.vendor"]=navigator.vendor);Q={message:Z,name:H,lineNumber:L, fileName:w,stack:h,params:Q,sampleWeight:1};Y=Number(G.columnNumber);isNaN(Y)||(Q.lineNumber=Q.lineNumber+":"+Y);if(G.level==="IGNORED")G=0;else a:{G=Te();Y=g.e(G.LW);for(S=Y.next();!S.done;S=Y.next())if(S=S.value,Q.message&&Q.message.match(S.T6)){G=S.weight;break a}G=g.e(G.Wh);for(Y=G.next();!Y.done;Y=G.next())if(Y=Y.value,Y.callback(Q)){G=Y.weight;break a}G=1}Q.sampleWeight=G;G=g.e(WWX);for(Y=G.next();!Y.done;Y=G.next())if(Y=Y.value,Y.n5[Q.name])for(Z=g.e(Y.n5[Q.name]),S=Z.next();!S.done;S=Z.next())if(H= S.value,S=Q.message.match(H.cI)){Q.params["params.error.original"]=S[0];Z=H.groups;H={};for(L=0;L1E3&&g.EL(new g.Ic("IL Attach cache exceeded limit"))}w= IU(Q,X);B8.has(w)?dV(Q,X):Cp.set(w,!0)}}R=R.filter(function(k){k.csn!==X?(k.csn=X,k=!0):k=!1;return k}); Q={csn:X,parentVe:Q.getAsJson(),childVes:g.P1(R,function(k){return k.getAsJson()})}; X==="UNDEFINED_CSN"?W8("visualElementAttached",Z,Q):G?kB("visualElementAttached",Q,G,Z):g.QL("visualElementAttached",Q,Z)}; Qci=function(G,X,Q,R,S){pp(Q,X);R=lc({cttAuthInfo:uc(X)||void 0},X);Q={csn:X,ve:Q.getAsJson(),eventType:1};S&&(Q.clientData=S);X==="UNDEFINED_CSN"?W8("visualElementShown",R,Q):G?kB("visualElementShown",Q,G,R):g.QL("visualElementShown",Q,R)}; RNi=function(G,X,Q,R){var S=(R=R===void 0?!1:R)?16:8;R=lc({cttAuthInfo:uc(X)||void 0,endOfSequence:R},X);Q={csn:X,ve:Q.getAsJson(),eventType:S};X==="UNDEFINED_CSN"?W8("visualElementHidden",R,Q):G?kB("visualElementHidden",Q,G,R):g.QL("visualElementHidden",Q,R)}; y_=function(G,X,Q,R,S){S5T(G,X,Q,void 0,R,S)}; S5T=function(G,X,Q,R,S){pp(Q,X);R=R||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var Z=lc({cttAuthInfo:uc(X)||void 0},X);Q={csn:X,ve:Q.getAsJson(),gestureType:R};S&&(Q.clientData=S);X==="UNDEFINED_CSN"?W8("visualElementGestured",Z,Q):G?kB("visualElementGestured",Q,G,Z):g.QL("visualElementGestured",Q,Z)}; ZZX=function(){var G=YG(16);for(var X=[],Q=0;Q0&&Q.push(g.ml("BR"));Q.push(g.oL(Z))}):Q.push(g.oL(R))}return Q}; Rb=function(G,X,Q,R){if(Q==="child"){g.Pq(X);var S;R===void 0?S=void 0:S=!Array.isArray(R)||R&&typeof R.D==="string"?[R]:R;Q=q5G(G,S);Q=g.e(Q);for(G=Q.next();!G.done;G=Q.next())X.appendChild(G.value)}else Q==="style"?g.DN(X,"cssText",R?R:""):R===null||R===void 0?X.removeAttribute(Q):(G=R.toString(),Q==="href"&&(G=g.Zb(g.wZ(G))),X.setAttribute(Q,G))}; g.f=function(G){g.XX.call(this,G);this.rb=!0;this.C=!1;this.listeners=[]}; g.Sa=function(G){g.f.call(this,G);this.Xm=new g.ic;g.d(this,this.Xm)}; ZT=function(G,X,Q,R,S,Z,H){H=H===void 0?null:H;g.Sa.call(this,X);this.api=G;this.macros={};this.componentType=Q;this.J=this.T=null;this.bB=H;this.layoutId=R;this.interactionLoggingClientData=S;this.Fm=Z;this.wb=null;this.w3=new hg(this.element);g.d(this,this.w3);this.KO=this.B(this.element,"click",this.onClick);this.DC=[];this.Yc=new L7(this.onClick,this);g.d(this,this.Yc);this.As=!1;this.QH=this.AT=null}; H5=function(G,X){G=G===void 0?null:G;X=X===void 0?null:X;if(G==null)return g.EL(Error("Got null or undefined adText object")),"";var Q=g.lA(G.text);if(!G.isTemplated)return Q;if(X==null)return g.EL(Error("Missing required parameters for a templated message")),Q;G=g.e(Object.entries(X));for(X=G.next();!X.done;X=G.next()){var R=g.e(X.value);X=R.next().value;R=R.next().value;Q=Q.replace("{"+X+"}",R)}return Q}; wAe=function(G){G=G===void 0?null:G;return G!=null&&(G=G.thumbnail,G!=null&&G.thumbnails!=null&&G.thumbnails.length!=0&&G.thumbnails[0].url!=null)?g.lA(G.thumbnails[0].url):""}; hNV=function(G){G=G===void 0?null:G;return G!=null&&(G=G.thumbnail,G!=null&&G.thumbnails!=null&&G.thumbnails.length!=0&&G.thumbnails[0].width!=null&&G.thumbnails[0].height!=null)?new g.AC(G.thumbnails[0].width||0,G.thumbnails[0].height||0):new g.AC(0,0)}; g.q1=function(G){if(G.simpleText)return G.simpleText;if(G.runs){var X=[];G=g.e(G.runs);for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value,Q.text&&X.push(Q.text);return X.join("")}return""}; g.wc=function(G){if(G.simpleText)return G=document.createTextNode(G.simpleText),G;var X=[];if(G.runs)for(var Q=0;Q1){for(var X=[G[0]],Q=1;Q0&&(this.N=new g.fU(this.us,X,this),g.d(this,this.N));this.C=new g.fU(this.us,Q,this);g.d(this,this.C);this.T=EFi(this.W,S,1,R);g.d(this,this.T);this.J=EFi(this.W,0,R,1);g.d(this,this.J);this.V=new TJ;g.d(this,this.V)}; R1=function(G,X,Q){this.W=G;this.isAsync=X;this.N=Q}; GBi=function(G){switch(G){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Yi(G,"unknown result type")}}; XIl=function(G,X){var Q=1;G.isTrusted===!1&&(Q=0);di("ISDSTAT",Q);Sz(Q,"i.s_",{triggerContext:"sk",metadata:X});return Q}; QqU=function(G,X){var Q=[];X?X.isTrusted===!0?Q.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):X.isTrusted===!1?Q.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):Q.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):Q.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Sz(0,"a.s_",{metadata:G,states:Q});di("ASDSTAT",0)}; Sz=function(G,X,Q){X=R_U[X];var R,S,Z={detected:G===0,source:""+X.W+((R=Q.triggerContext)!=null?R:"")+((S=Q.HS)!=null?S:""),detectionStates:Q.states,durationMs:Q.zW};Q.metadata&&(Z.contentCpn=Q.metadata.contentCpn,Z.adCpn=Q.metadata.adCpn);g.QL("biscottiBasedDetection",Z);X.N!==void 0&&(Q=Number(g.WO("CATSTAT",0)),X.N!==void 0?(X=X.N,G=GBi(G),G=Q&~(3<0}; kA=function(G,X,Q,R,S,Z){nD.call(this,G,{D:"div",X:"ytp-ad-skip-button-slot"},"skip-button",X,Q,R,S);var H=this;this.yH=null;this.Mi=!1;this.CO=Z;this.S=this.api.Z().experiments.TT("enable_modern_skip_button_on_web");this.cM=!1;this.V=new g.Sa({D:"span",aU:["ytp-ad-skip-button-container"]});this.S&&this.V.element.classList.add("ytp-ad-skip-button-container-detached");g.d(this,this.V);this.V.s_(this.element);this.W=this.Y=null;this.BM=new g.v5(this.V,500,!1,100,function(){return H.hide()}); g.d(this,this.BM);this.IU=new Qu(this.V.element,15E3,5E3,.5,.5,this.S);g.d(this,this.IU);this.hide()}; ZlG=function(G){G=G.yH&&G.yH.adRendererCommands;return(G&&G.clickCommand&&g.y(G.clickCommand,g.YA)&&g.y(G.clickCommand,g.YA).commands||[]).some(function(X){return X.adLifecycleCommand?SeG(X.adLifecycleCommand):!1})}; SeG=function(G){return G.action==="END_LINEAR_AD"||G.action==="END_LINEAR_AD_PLACEMENT"}; jz=function(G,X,Q,R,S,Z){nD.call(this,G,{D:"div",X:"ytp-ad-skip-ad-slot"},"skip-ad",X,Q,R,S);this.yH=Z;this.V=!1;this.S=0;this.Y=this.W=null;this.hide()}; Hl0=function(G,X){G.V||(G.V=!0,G.W&&(X?G.W.yH.hide():G.W.hide()),X?(G=G.Y,G.BM.show(),G.show()):G.Y.show())}; MQ=function(G,X,Q,R){Oz.call(this,G,X,Q,R,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; mU=function(G,X,Q,R,S,Z,H){Z=Z===void 0?!1:Z;H=H===void 0?!1:H;ZT.call(this,G,{D:"span",X:"ytp-ad-simple-ad-badge"},"simple-ad-badge",X,Q,R);this.Y=S;this.N=this.VH("ytp-ad-simple-ad-badge");(this.W=Z)&&this.N.classList.add("ytp-ad-simple-ad-badge--clean-player");H&&this.N.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; o1=function(G,X,Q,R,S){S=S===void 0?!1:S;Jf.call(this,"player-overlay",G,{},X,R);this.videoAdDurationSeconds=Q;this.interactionLoggingClientData=R;this.SJ=S}; uP=function(G,X){g.ic.call(this);this.api=G;this.durationMs=X;this.N=null;this.handler=new TJ(this);g.d(this,this.handler);this.W=qee;this.handler.B(this.api,"presentingplayerstatechange",this.OD);this.N=this.handler.B(this.api,"onAdPlaybackProgress",this.o6)}; PV=function(G){g.ic.call(this);this.N=!1;this.uc=0;this.handler=new TJ(this);g.d(this,this.handler);this.durationMs=G;this.timer=new g.lD(100);g.d(this,this.timer);this.handler.B(this.timer,"tick",this.o6);this.W={seekableStart:0,seekableEnd:G/1E3,current:0};this.start()}; g.sX=function(G,X){var Q=Math.abs(Math.floor(G)),R=Math.floor(Q/86400),S=Math.floor(Q%86400/3600),Z=Math.floor(Q%3600/60);Q=Math.floor(Q%60);if(X){X="";R>0&&(X+=" "+R+" Days");if(R>0||S>0)X+=" "+S+" Hours";X+=" "+Z+" Minutes";X+=" "+Q+" Seconds";R=X.trim()}else{X="";R>0&&(X+=R+":",S<10&&(X+="0"));if(R>0||S>0)X+=S+":",Z<10&&(X+="0");X+=Z+":";Q<10&&(X+="0");R=X+Q}return G>=0?R:"-"+R}; g.To=function(G){return(!("button"in G)||typeof G.button!=="number"||G.button===0)&&!("shiftKey"in G&&G.shiftKey)&&!("altKey"in G&&G.altKey)&&!("metaKey"in G&&G.metaKey)&&!("ctrlKey"in G&&G.ctrlKey)}; Kw=function(G,X,Q,R,S,Z,H){nD.call(this,G,{D:"span",X:H?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",X,Q,R,S);this.videoAdDurationSeconds=Z;this.W=null;H&&this.api.Z().W&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),WI&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; ez=function(G,X,Q,R){N1.call(this,G,X,Q,R,"ytp-video-ad-top-bar-title","ad-title")}; rA=function(G){this.content=G.content;if(G.commandRuns){G=g.e(G.commandRuns);for(var X=G.next();!X.done;X=G.next())X=X.value,this.loggingDirectives=g.y(X,wIG),X.onTap&&(this.interaction={onTap:X.onTap})}}; a1=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ad-simple-attributed-string"},"ad-simple-attributed-string",X,Q,R);this.hide()}; EX=function(G,X,Q,R,S){ZT.call(this,G,{D:"span",X:S?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",X,Q,R);this.W=S;this.adBadgeText=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);this.adBadgeText.s_(this.element);g.d(this,this.adBadgeText);S?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),WI&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; xA=function(G,X,Q,R){ZT.call(this,G,{D:"span",X:"ytp-ad-pod-index"},"ad-pod-index",X,Q,R);this.api.Z().W&&(this.element.classList.add("ytp-ad-pod-index--mweb"),WI&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; OX=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",X,Q,R);this.hide()}; zo=function(G,X){this.W=G;this.N=X}; h_7=function(G,X){return G.W+X*(G.N-G.W)}; cV=function(G,X,Q){return G.N-G.W?g.pT((X-G.W)/(G.N-G.W),0,1):Q!=null?Q:Infinity}; gA=function(G,X,Q,R){R=R===void 0?!1:R;g.Sa.call(this,{D:"div",X:"ytp-ad-persistent-progress-bar-container",K:[{D:"div",X:"ytp-ad-persistent-progress-bar"}]});this.api=G;this.W=X;this.Y=Q;R&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.d(this,this.W);this.progressBar=this.VH("ytp-ad-persistent-progress-bar");this.N=-1;this.B(G,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; UX=function(G,X,Q,R,S,Z){ZT.call(this,G,{D:"div",X:"ytp-ad-player-overlay",K:[{D:"div",X:"ytp-ad-player-overlay-flyout-cta"},{D:"div",X:"ytp-ad-player-overlay-instream-info"},{D:"div",X:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",X:"ytp-ad-player-overlay-progress-bar"},{D:"div",X:"ytp-ad-player-overlay-instream-user-sentiment"},{D:"div",X:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",X,Q,R);this.j=Z;this.S=this.VH("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.N=this.VH("ytp-ad-player-overlay-instream-info");this.V=null;L$T(this)&&(G=MP("div"),g.Gk(G,"ytp-ad-player-overlay-top-bar-gradients"),X=this.N,X.parentNode&&X.parentNode.insertBefore(G,X),(X=this.api.getVideoData(2))&&X.isListed&&X.title&&(Q=new ez(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),Q.s_(G),Q.init(v8("ad-title"),{text:X.title},this.macros),g.d(this,Q)),this.V=G);this.Y=null;this.SA=this.VH("ytp-ad-player-overlay-skip-or-preview");this.IU=this.VH("ytp-ad-player-overlay-progress-bar"); this.Mi=this.VH("ytp-ad-player-overlay-instream-user-sentiment");this.yH=this.VH("ytp-ad-player-overlay-ad-disclosure-banner");this.W=S;g.d(this,this.W);this.hide()}; L$T=function(G){G=G.api.Z();return g.lP(G)&&G.W}; g.BV=function(G){G&=16777215;var X=[(G&16711680)>>16,(G&65280)>>8,G&255];G=X[0];var Q=X[1];X=X[2];G=Number(G);Q=Number(Q);X=Number(X);if(G!=(G&255)||Q!=(Q&255)||X!=(X&255))throw Error('"('+G+","+Q+","+X+'") is not a valid RGB color');Q=G<<16|Q<<8|X;return G<16?"#"+(16777216|Q).toString(16).slice(1):"#"+Q.toString(16)}; g.Fw=function(){}; YeG=function(G){var X=new Hs;var Q=new Zx;Q=CS(Q,1,"botguard");G=CS(Q,2,G);this.N=BZS(X,Zx,1,kBS,G)}; Cw=function(G){this.N=new rC(G)}; jql=function(){var G=!1;try{G=!!window.sessionStorage.getItem("session_logininfo")}catch(X){G=!0}return(g.WO("INNERTUBE_CLIENT_NAME")==="WEB"||g.WO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&G}; tw=function(){var G=G===void 0?!0:G;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");di("LOGIN_INFO","");G&&window.sessionStorage.setItem("from_switch_account","1");G=!0;G=G===void 0?!1:G;var X,Q=MUe;Q||(Q=document.querySelector("#persist_identity"));if(X=Q){var R=X.src?(new URL(X.src)).origin:"*";if(G){var S;(S=X.contentWindow)==null||S.postMessage({action:"clear"},R)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var Z=window.sessionStorage.getItem("session_logininfo");if(Z){var H;(H=X.contentWindow)==null||H.postMessage({loginInfo:Z},R)}}}}catch(w){}}; Vu=function(G){G&&(G.startsWith("https://accounts.google.com/AddSession")?tw():G.startsWith("https://accounts.google.com/ServiceLogin")?tw():G.startsWith("https://myaccount.google.com")&&g.wv(G).W.endsWith("/youtubeoptions")&&tw());if(g.WO("LOGGED_IN",!0)&&jql()){var X=g.WO("VALID_SESSION_TEMPDATA_DOMAINS",[]);var Q=g.hN(window.location.href);Q&&X.push(Q);Q=g.hN(G);g.rH(X,Q)||!Q&&Ul(G,"/")?(X=ka(G),(X=WlV(X))?(X=zTZ(X),X=(X=g.cT(X)||null)?$r(X):{}):X=null):X=null;X==null&&(X={});Q=X;var R=void 0; jql()?(R||(R=g.WO("LOGIN_INFO")),R?(Q.session_logininfo=R,Q=!0):Q=!1):Q=!1;Q&&P8(G,X)}}; g.mT0=function(G){var X=X===void 0?{}:X;var Q=Q===void 0?"":Q;var R=R===void 0?window:R;G=g.on(G,X);Vu(G);Q=g.wZ(G+Q);R=R.location;Q=hC(Q);Q!==void 0&&(R.href=Q)}; g.I1=function(G,X,Q){X=X===void 0?{}:X;Q=Q===void 0?!1:Q;var R=g.WO("EVENT_ID");R&&(X.ei||(X.ei=R));X&&P8(G,X);Q||(Vu(G),g.mT0(G))}; g.dA=function(G,X,Q,R,S){S=S===void 0?!1:S;Q&&P8(G,Q);Q=g.wZ(G);var Z=g.Zb(Q);G!=Z&&NV(Error("Unsafe window.open URL: "+G));G=Z;X=X||Bo(G).toString(36);try{if(S)return S=G,S=SIl(S),Vu(S),g.o$(window,S,X,"attributionsrc")}catch(H){g.fc(H)}Vu(G);return g.o$(window,Q,X,R)}; o_S=function(G){WV=G}; uEC=function(G){pw=G}; PqS=function(G){yu=G}; Tbe=function(){sqy=yu=pw=WV=null}; e_C=function(){var G=G===void 0?window.location.href:G;if(g.jg("kevlar_disable_theme_param"))return null;var X=L0(G);if(g.jg("enable_dark_theme_only_on_shorts")&&X!=null&&X.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var Q=g.vO(G).theme;return K$Z.get(Q)||null}catch(R){}return null}; fw=function(){this.N={};if(this.W=kIV()){var G=g.cT("CONSISTENCY");G&&r$7(this,{encryptedTokenJarContents:G})}}; r$7=function(G,X){if(X.encryptedTokenJarContents&&(G.N[X.encryptedTokenJarContents]=X,typeof X.expirationSeconds==="string")){var Q=Number(X.expirationSeconds);setTimeout(function(){delete G.N[X.encryptedTokenJarContents]},Q*1E3); G.W&&g.z_("CONSISTENCY",X.encryptedTokenJarContents,Q,void 0,!0)}}; NQ=function(){this.W=-1;var G=g.WO("LOCATION_PLAYABILITY_TOKEN");g.WO("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Dg(this))&&(G=this.localStorage.get("yt-location-playability-token"));G&&(this.locationPlayabilityToken=G,this.N=void 0)}; Dg=function(G){return G.localStorage===void 0?new ba("yt-client-location"):G.localStorage}; g.Aw=function(G,X,Q){X=X===void 0?!1:X;Q=Q===void 0?!1:Q;var R=g.WO("INNERTUBE_CONTEXT");if(!R)return g.aU(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};R=g.P$(R);g.jg("web_no_tracking_params_in_shell_killswitch")||delete R.clickTracking;R.client||(R.client={});var S=R.client;S.clientName==="MWEB"&&S.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(S.clientFormFactor=g.WO("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");S.screenWidthPoints=window.innerWidth;S.screenHeightPoints= window.innerHeight;S.screenPixelDensity=Math.round(window.devicePixelRatio||1);S.screenDensityFloat=window.devicePixelRatio||1;S.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var Z=Z===void 0?!1:Z;g.la();var H="USER_INTERFACE_THEME_LIGHT";g.BA(0,165)?H="USER_INTERFACE_THEME_DARK":g.BA(0,174)?H="USER_INTERFACE_THEME_LIGHT":!g.jg("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (H="USER_INTERFACE_THEME_DARK");Z=Z?H:e_C()||H;S.userInterfaceTheme=Z;if(!X){if(Z=v$S())S.connectionType=Z;g.jg("web_log_effective_connection_type")&&(Z=iee())&&(R.client.effectiveConnectionType=Z)}var w;if(g.jg("web_log_memory_total_kbytes")&&((w=g.i7.navigator)==null?0:w.deviceMemory)){var h;w=(h=g.i7.navigator)==null?void 0:h.deviceMemory;R.client.memoryTotalKbytes=""+w*1E6}g.jg("web_gcf_hashes_innertube")&&(Z=Hd7())&&(h=Z.coldConfigData,w=Z.coldHashData,Z=Z.hotHashData,R.client.configInfo=R.client.configInfo|| {},h&&(R.client.configInfo.coldConfigData=h),w&&(R.client.configInfo.coldHashData=w),Z&&(R.client.configInfo.hotHashData=Z));h=g.vO(g.i7.location.href);!g.jg("web_populate_internal_geo_killswitch")&&h.internalcountrycode&&(S.internalGeo=h.internalcountrycode);S.clientName==="MWEB"||S.clientName==="WEB"?(S.mainAppWebInfo||(S.mainAppWebInfo={}),S.mainAppWebInfo.graftUrl=g.i7.location.href,g.jg("kevlar_woffle")&&fYS.instance&&(h=fYS.instance,S.mainAppWebInfo.pwaInstallabilityStatus=!h.N&&h.W?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),S.mainAppWebInfo.webDisplayMode=cA(),S.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):S.clientName==="TVHTML5"&&(!g.jg("web_lr_app_quality_killswitch")&&(h=g.WO("LIVING_ROOM_APP_QUALITY"))&&(S.tvAppInfo=Object.assign(S.tvAppInfo||{},{appQuality:h})),h=g.WO("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(S.tvAppInfo=Object.assign(S.tvAppInfo||{},{certificationScope:h}));if(!g.jg("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var L=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(V){}L=void 0}L&&(S.timeZone=L)}(L=mW())?S.experimentsToken=L:delete S.experimentsToken;L=om();fw.instance||(fw.instance=new fw);R.request=Object.assign({},R.request,{internalExperimentFlags:L,consistencyTokenJars:H$(fw.instance.N)});!g.jg("web_prequest_context_killswitch")&&(L=g.WO("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(R.request.externalPrequestContext=L);S=g.la();L=g.BA(0,58);S=S.get("gsml","");R.user=Object.assign({}, R.user);L&&(R.user.enableSafetyMode=L);S&&(R.user.lockedSafetyMode=!0);g.jg("warm_op_csn_cleanup")?Q&&(X=g.oU())&&(R.clientScreenNonce=X):!X&&(X=g.oU())&&(R.clientScreenNonce=X);G&&(R.clickTracking={clickTrackingParams:G});if(G=g.QH("yt.mdx.remote.remoteClient_"))R.remoteClient=G;NQ.getInstance().setLocationOnInnerTubeContext(R);try{var k=Zz(),Y=k.bid;delete k.bid;R.adSignalsInfo={params:[],bid:Y};for(var M=g.e(Object.entries(k)),m=M.next();!m.done;m=M.next()){var u=g.e(m.value),r=u.next().value, x=u.next().value;k=r;Y=x;G=void 0;(G=R.adSignalsInfo.params)==null||G.push({key:k,value:""+Y})}var c,z;if(((c=R.client)==null?void 0:c.clientName)==="TVHTML5"||((z=R.client)==null?void 0:z.clientName)==="TVHTML5_UNPLUGGED"){var B=g.WO("INNERTUBE_CONTEXT");B.adSignalsInfo&&(R.adSignalsInfo.advertisingId=B.adSignalsInfo.advertisingId,R.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",R.adSignalsInfo.limitAdTracking=B.adSignalsInfo.limitAdTracking)}}catch(V){g.aU(V)}return R}; xTX=function(G,X){if(!G)return!1;var Q,R=(Q=g.y(G,a6C))==null?void 0:Q.signal;if(R&&X.H5)return!!X.H5[R];var S;if((Q=(S=g.y(G,E_y))==null?void 0:S.request)&&X.Ky)return!!X.Ky[Q];for(var Z in G)if(X.Bp[Z])return!0;return!1}; OlU=function(G){var X={"Content-Type":"application/json"};g.WO("EOM_VISITOR_DATA")?X["X-Goog-EOM-Visitor-Id"]=g.WO("EOM_VISITOR_DATA"):g.WO("VISITOR_DATA")&&(X["X-Goog-Visitor-Id"]=g.WO("VISITOR_DATA"));X["X-Youtube-Bootstrap-Logged-In"]=g.WO("LOGGED_IN",!1);g.WO("DEBUG_SETTINGS_METADATA")&&(X["X-Debug-Settings-Metadata"]=g.WO("DEBUG_SETTINGS_METADATA"));G!=="cors"&&((G=g.WO("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(X["X-Youtube-Client-Name"]=G),(G=g.WO("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(X["X-Youtube-Client-Version"]= G),(G=g.WO("CHROME_CONNECTED_HEADER"))&&(X["X-Youtube-Chrome-Connected"]=G),(G=g.WO("DOMAIN_ADMIN_STATE"))&&(X["X-Youtube-Domain-Admin-State"]=G),g.WO("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(G=g.WO("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(X["X-YouTube-Lava-Device-Context"]=G));return X}; z_V=function(){this.N={}}; nw=function(){this.mappings=new z_V}; $A=function(G){return function(){return new G}}; g_S=function(G){var X=X===void 0?"UNKNOWN_INTERFACE":X;if(G.length===1)return G[0];var Q=c$V[X];if(Q){Q=new RegExp(Q);for(var R=g.e(G),S=R.next();!S.done;S=R.next())if(S=S.value,Q.exec(S))return S}var Z=[];Object.entries(c$V).forEach(function(H){var w=g.e(H);H=w.next().value;w=w.next().value;X!==H&&Z.push(w)}); Q=new RegExp(Z.join("|"));G.sort(function(H,w){return H.length-w.length}); R=g.e(G);for(S=R.next();!S.done;S=R.next())if(S=S.value,!Q.exec(S))return S;return G[0]}; g.bP=function(G){return"/youtubei/v1/"+g_S(G)}; vV=function(){}; Jw=function(){}; iP=function(){}; GC=function(G){return g.QH("ytcsi."+(G||"")+"data_")||UTC(G)}; l60=function(){var G=GC();G.info||(G.info={});return G.info}; Xz=function(G){G=GC(G);G.metadata||(G.metadata={});return G.metadata}; Qz=function(G){G=GC(G);G.tick||(G.tick={});return G.tick}; Ra=function(G){G=GC(G);if(G.gel){var X=G.gel;X.gelInfos||(X.gelInfos={});X.gelTicks||(X.gelTicks={})}else G.gel={gelTicks:{},gelInfos:{}};return G.gel}; BbS=function(G){G=Ra(G);G.gelInfos||(G.gelInfos={});return G.gelInfos}; S2=function(G){var X=GC(G).nonce;X||(X=g.jh(16),GC(G).nonce=X);return X}; UTC=function(G){var X={tick:{},info:{}};g.G3("ytcsi."+(G||"")+"data_",X);return X}; ZO=function(){var G=g.QH("ytcsi.debug");G||(G=[],g.G3("ytcsi.debug",G),g.G3("ytcsi.reference",{}));return G}; Hf=function(G){G=G||"";var X=F$7();if(X[G])return X[G];var Q=ZO(),R={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};Q.push(R);return X[G]=R}; CqS=function(G){G=G||"";var X=F$7();X[G]&&delete X[G];var Q=ZO(),R={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};Q.push(R);X[G]=R}; F$7=function(){var G=g.QH("ytcsi.reference");if(G)return G;ZO();return g.QH("ytcsi.reference")}; qk=function(G){return tUS[G]||"LATENCY_ACTION_UNKNOWN"}; wz=function(G,X){wW.call(this,1,arguments);this.timer=X}; hd=function(){this.N=0}; LJ=function(){hd.instance||(hd.instance=new hd);return hd.instance}; Y5=function(G,X){k5[X]=k5[X]||{count:0};var Q=k5[X];Q.count++;Q.time=(0,g.TB)();G.N||(G.N=g.D$(0,function(){var R=(0,g.TB)(),S;for(S in k5)k5[S]&&R-k5[S].time>6E4&&delete k5[S];G&&(G.N=0)},5E3)); return Q.count>5?(Q.count===6&&Math.random()*1E5<1&&(Q=new g.Ic("CSI data exceeded logging limit with key",X.split("_")),X.indexOf("plev")>=0||g.EL(Q)),!0):!1}; VUw=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; I6l=function(){var G;if(g.jg("csi_use_performance_navigation_timing")){var X,Q,R,S=j2==null?void 0:(G=j2.getEntriesByType)==null?void 0:(X=G.call(j2,"navigation"))==null?void 0:(Q=X[0])==null?void 0:(R=Q.toJSON)==null?void 0:R.call(Q);S?(S.requestStart=Mk(S.requestStart),S.responseEnd=Mk(S.responseEnd),S.redirectStart=Mk(S.redirectStart),S.redirectEnd=Mk(S.redirectEnd),S.domainLookupEnd=Mk(S.domainLookupEnd),S.connectStart=Mk(S.connectStart),S.connectEnd=Mk(S.connectEnd),S.responseStart=Mk(S.responseStart), S.secureConnectionStart=Mk(S.secureConnectionStart),S.domainLookupStart=Mk(S.domainLookupStart),S.isPerformanceNavigationTiming=!0,G=S):G=j2.timing}else G=g.jg("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(j2.timing)):j2.timing;return G}; Mk=function(G){return Math.round(m7()+G)}; m7=function(){return(g.jg("csi_use_time_origin")||g.jg("csi_use_time_origin_tvhtml5"))&&j2.timeOrigin?Math.floor(j2.timeOrigin):j2.timing.navigationStart}; uj=function(G,X){oa("_start",G,X)}; Pf=function(G,X){if(!g.jg("web_csi_action_sampling_enabled")||!GC(X).actionDisabled){var Q=Hf(X||"");HR(Q.info,G);G.loadType&&(Q=G.loadType,Xz(X).loadType=Q);HR(BbS(X),G);Q=S2(X);X=GC(X).cttAuthInfo;LJ().info(G,Q,X)}}; dT7=function(){var G,X,Q,R;return((R=ET().resolve(TY(QB))==null?void 0:(G=Si())==null?void 0:(X=G.loggingHotConfig)==null?void 0:(Q=X.csiConfig)==null?void 0:Q.debugTicks)!=null?R:[]).map(function(S){return Object.values(S)[0]})}; oa=function(G,X,Q){if(!g.jg("web_csi_action_sampling_enabled")||!GC(Q).actionDisabled){var R=S2(Q),S;if(S=g.jg("web_csi_debug_sample_enabled")&&R){(ET().resolve(TY(QB))==null?0:Si())&&!W$Z&&(W$Z=!0,oa("gcfl",(0,g.TB)(),Q));var Z,H,w;S=(ET().resolve(TY(QB))==null?void 0:(Z=Si())==null?void 0:(H=Z.loggingHotConfig)==null?void 0:(w=H.csiConfig)==null?void 0:w.debugSampleWeight)||0;if(Z=S!==0)b:{Z=dT7();if(Z.length>0)for(H=0;HQ.duration?R:Q},{duration:0}))&&X.startTime>0&&X.responseEnd>0&&(oa("wffs",Mk(X.startTime)),oa("wffe",Mk(X.responseEnd)))}; n_Z=function(G,X,Q){j2&&j2.measure&&(G.startsWith("measure_")||(G="measure_"+G),Q?j2.measure(G,X,Q):X?j2.measure(G,X):j2.measure(G))}; $Ti=function(G){var X=sF("aft",G);if(X)return X;X=g.WO((G||"")+"TIMING_AFT_KEYS",["ol"]);for(var Q=X.length,R=0;R0&&Pf(X);X={isNavigation:!0,actionType:qk(g.WO("TIMING_ACTION"))};var Q=g.WO("PREVIOUS_ACTION");Q&&(X.previousAction=qk(Q));if(Q=g.WO("CLIENT_PROTOCOL"))X.httpProtocol=Q;if(Q=g.WO("CLIENT_TRANSPORT"))X.transportProtocol=Q;(Q=g.oU())&&Q!=="UNDEFINED_CSN"&&(X.clientScreenNonce=Q);Q=f6S();if(Q===1||Q===-1)X.isVisible= !0;Q=Xz().loadType==="cold";var R=l60();Q||(Q=R.yt_lt==="cold");if(Q){X.loadType="cold";Q=l60();R=I6l();var S=m7(),Z=g.WO("CSI_START_TIMESTAMP_MILLIS",0);Z>0&&!g.jg("embeds_web_enable_csi_start_override_killswitch")&&(S=Z);S&&(oa("srt",R.responseStart),Q.prerender!==1&&uj(S));Q=J$y();Q>0&&oa("fpt",Q);Q=I6l();Q.isPerformanceNavigationTiming&&Pf({performanceNavigationTiming:!0},void 0);oa("nreqs",Q.requestStart,void 0);oa("nress",Q.responseStart,void 0);oa("nrese",Q.responseEnd,void 0);Q.redirectEnd- Q.redirectStart>0&&(oa("nrs",Q.redirectStart,void 0),oa("nre",Q.redirectEnd,void 0));Q.domainLookupEnd-Q.domainLookupStart>0&&(oa("ndnss",Q.domainLookupStart,void 0),oa("ndnse",Q.domainLookupEnd,void 0));Q.connectEnd-Q.connectStart>0&&(oa("ntcps",Q.connectStart,void 0),oa("ntcpe",Q.connectEnd,void 0));Q.secureConnectionStart>=m7()&&Q.connectEnd-Q.secureConnectionStart>0&&(oa("nstcps",Q.secureConnectionStart,void 0),oa("ntcpe",Q.connectEnd,void 0));j2&&"getEntriesByType"in j2&&A$e();Q=[];if(document.querySelector&& j2&&j2.getEntriesByName)for(var H in e2)e2.hasOwnProperty(H)&&(R=e2[H],Nbi(H,R)&&Q.push(R));if(Q.length>0)for(X.resourceInfo=[],H=g.e(Q),Q=H.next();!Q.done;Q=H.next())X.resourceInfo.push({resourceCache:Q.value})}Pf(X);X=Ra();X.preLoggedGelInfos||(X.preLoggedGelInfos=[]);H=X.preLoggedGelInfos;X=BbS();Q=void 0;for(R=0;R-1&&(delete gX["@type"],A=gX);r&&G.W.has(r)&&G.W.delete(r);((XG=X.config)==null?0:XG.c1U)&&aa(X.config.c1U);if(A||(Pn=G.Y)==null||!Pn.dwO(X.input,X.ZI)){l7.pO(15);break}return g.l(l7,G.Y.RkM(X.input,X.ZI),16);case 16:A=l7.N;case 15:return oQT(G, A,X),((hO=X.config)==null?0:hO.Mxp)&&aa(X.config.Mxp),R(),l7.return(A||void 0)}})}; kwC=function(G,X){a:{G=G.nk;var Q,R=(Q=g.y(X,a6C))==null?void 0:Q.signal;if(R&&G.H5&&(Q=G.H5[R])){var S=Q();break a}var Z;if((Q=(Z=g.y(X,E_y))==null?void 0:Z.request)&&G.Ky&&(Z=G.Ky[Q])){S=Z();break a}for(S in X)if(G.Bp[S]&&(X=G.Bp[S])){S=X();break a}S=void 0}if(S!==void 0)return Promise.resolve(S)}; jsl=function(G,X,Q){var R,S,Z,H,w,h,L;return g.F(function(k){if(k.W==1){Z=((R=X)==null?void 0:(S=R.OL)==null?void 0:S.identity)||q4;h=(H=X)==null?void 0:(w=H.OL)==null?void 0:w.sessionIndex;var Y=g.Oy(G.N.Vo(Z,{sessionIndex:h}));return g.l(k,Y,2)}L=k.N;return k.return(Promise.resolve(Object.assign({},OlU(Q),L)))})}; Y30=function(G,X,Q){var R,S=(X==null?void 0:(R=X.OL)==null?void 0:R.identity)||q4,Z;X=X==null?void 0:(Z=X.OL)==null?void 0:Z.sessionIndex;G=G.N.Vo(S,{sessionIndex:X});return Object.assign({},OlU(Q),G)}; Bf=function(){}; Fz=function(){}; CJ=function(G){this.S=G}; td=function(){}; Vz=function(){}; Ia=function(){}; dz=function(){}; g.Wf=function(G,X){var Q=g.Wl.apply(2,arguments);G=G===void 0?0:G;g.Ic.call(this,X,Q);this.errorType=G;Object.setPrototypeOf(this,this.constructor.prototype)}; pJ=function(G,X,Q,R){this.N=G;this.W=X;this.Y=Q;this.V=R}; PCT=function(G,X,Q){if(G.N){var R=L0(e5(X,"key"))||"/UNKNOWN_PATH";G.N.start(R)}R=Q;g.jg("wug_networking_gzip_request")&&(R=t_S(Q));var S;return new ((S=G.V)!=null?S:window.Request)(X,R)}; g.fJ=function(G,X){if(!yz){var Q=ET();K7(Q,{LV:ss0,u0:pJ});var R={Bp:{feedbackEndpoint:$A(td),modifyChannelNotificationPreferenceEndpoint:$A(Vz),playlistEditEndpoint:$A(Ia),shareEntityEndpoint:$A(CJ),subscribeEndpoint:$A(Bf),unsubscribeEndpoint:$A(Fz),webPlayerShareEntityServiceEndpoint:$A(dz)}},S=NQ.getInstance(),Z={};S&&(Z.client_location=S);G===void 0&&(G=Dfw());X===void 0&&(X=Q.resolve(ss0));LsS(R,X,G,Z);K7(Q,{LV:TWT,HC:gz.instance});yz=Q.resolve(TWT)}return yz}; Ksi=function(G){var X=new Hg;if(G.interpreterJavascript){var Q=O40(G.interpreterJavascript);Q=sr(Q).toString();var R=new SY;CS(R,6,Q);EJ(X,SY,1,R,nt)}else G.interpreterUrl&&(Q=ub(G.interpreterUrl),Q=Qo(Q).toString(),R=new ZY,CS(R,4,Q),EJ(X,ZY,2,R,nt));G.interpreterHash&&t6(X,3,G.interpreterHash,nt);G.program&&t6(X,4,G.program,nt);G.globalName&&t6(X,5,G.globalName,nt);G.clientExperimentsStateBlob&&t6(X,7,G.clientExperimentsStateBlob,nt);return X}; DO=function(G){var X={};G=G.split("&");G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value.split("="),Q.length===2&&(X[Q[0]]=Q[1]);return X}; c3S=function(){if(g.jg("bg_st_hr"))return"havuokmhhs-0";var G,X=((G=performance)==null?void 0:G.timeOrigin)||0;return"havuokmhhs-"+Math.floor(X)}; Nk=function(G){this.N=G}; eIV=function(){return new Promise(function(G){var X=window;X.ntpevasrs!==void 0?G(new Nk(X.ntpevasrs)):(X.ntpqfbel===void 0&&(X.ntpqfbel=[]),X.ntpqfbel.push(function(Q){G(new Nk(Q))}))})}; EQU=function(){if($D()){var G=g.WO("PLAYER_VARS",{});if(g.mF(G,"privembed",!1)!="1"&&!Pw7(G)){var X=function(){Ad=!0;"google_ad_status"in window?di("DCLKSTAT",1):di("DCLKSTAT",2)}; try{g.Js(rsC,X)}catch(Q){}a3C.push(g.Ft.GR(function(){if(!(Ad||"google_ad_status"in window)){try{if(rsC.toString()&&X){var Q=""+g.wH(X),R=urZ[Q];R&&g.bC(R)}}catch(S){}Ad=!0;di("DCLKSTAT",3)}},5E3))}}}; nJ=function(){var G=Number(g.WO("DCLKSTAT",0));return isNaN(G)?0:G}; Jd=function(G,X,Q){var R=this;this.network=G;this.options=X;this.W=Q;this.N=null;if(X.q9C){var S=new g.wh;this.N=S.promise;g.i7.ytAtRC&&fZ(function(){var Z,H;return g.F(function(w){if(w.W==1){if(!g.i7.ytAtRC)return w.return();Z=$5(null);return g.l(w,bj(R,Z),2)}H=w.N;g.i7.ytAtRC&&g.i7.ytAtRC(JSON.stringify(H));g.rX(w)})},2); eIV().then(function(Z){var H,w,h,L;return g.F(function(k){if(k.W==1)return Z.bindInnertubeChallengeFetcher(function(Y){return bj(R,$5(Y))}),g.l(k,b8(),2); H=k.N;w=Z.getLatestChallengeResponse();h=w.challenge;if(!h)throw Error("BGE_MACIL");L={challenge:h,Aw:DO(h),jG:H,bgChallenge:new Hg};S.resolve(L);Z.registerChallengeFetchedCallback(function(Y){Y=Y.challenge;if(!Y)throw Error("BGE_MACR");Y={challenge:Y,Aw:DO(Y),jG:H,bgChallenge:new Hg};R.N=Promise.resolve(Y)}); g.rX(k)})})}else X.preload&&x4Z(this,new Promise(function(Z){g.D$(0,function(){Z(vf(R))},0)}))}; $5=function(G){var X={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};G&&(X.interpreterHash=G);return X}; vf=function(G,X){X=X===void 0?0:X;var Q,R,S,Z,H,w,h,L,k,Y,M,m;return g.F(function(u){switch(u.W){case 1:Q=$5(k$().N);if(g.jg("att_fet_ks"))return g.a0(u,7),g.l(u,bj(G,Q),9);g.a0(u,4);return g.l(u,OHC(G,Q),6);case 6:H=u.N;S=H.XZB;Z=H.ErT;R=H;g.OC(u,3);break;case 4:return g.cl(u),g.EL(Error("Failed to fetch attestation challenge after "+(X+" attempts; not retrying for 24h."))),ij(G,864E5),u.return({challenge:"",Aw:{},jG:void 0,bgChallenge:void 0});case 9:R=u.N;if(!R)throw Error("Fetching Attestation challenge returned falsy"); if(!R.challenge)throw Error("Missing Attestation challenge");S=R.challenge;Z=DO(S);if("c1a"in Z&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.OC(u,3);break;case 7:w=g.cl(u);g.EL(w);X++;if(X>=5)return g.EL(Error("Failed to fetch attestation challenge after "+(X+" attempts; not retrying for 24h."))),ij(G,864E5),u.return({challenge:"",Aw:{},jG:void 0,bgChallenge:void 0});h=1E3*Math.pow(2,X-1)+Math.random()*1E3;return u.return(new Promise(function(r){g.D$(0, function(){r(vf(G,X))},h)})); case 3:L=Number(Z.t)||7200;ij(G,L*1E3);k=void 0;if(!("c1a"in Z&&R.bgChallenge)){u.pO(10);break}Y=Ksi(R.bgChallenge);g.a0(u,11);return g.l(u,OAZ(k$(),Y),13);case 13:g.OC(u,12);break;case 11:return M=g.cl(u),g.EL(M),u.return({challenge:S,Aw:Z,jG:k,bgChallenge:Y});case 12:return g.a0(u,14),k=new hl({challenge:Y,Xt:{Lv:"aGIf"}}),g.l(u,k.t2,16);case 16:g.OC(u,10);break;case 14:m=g.cl(u),g.EL(m),k=void 0;case 10:return u.return({challenge:S,Aw:Z,jG:k,bgChallenge:Y})}})}; bj=function(G,X){var Q;return g.F(function(R){Q=G.W;if(!Q||Q.xu())return R.return(bj(G.network,X));cf("att_pna",void 0,"attestation_challenge_fetch");return R.return(new Promise(function(S){Q.VM("publicytnetworkstatus-online",function(){bj(G.network,X).then(S)})}))})}; zIe=function(G){if(!G)throw Error("Fetching Attestation challenge returned falsy");if(!G.challenge)throw Error("Missing Attestation challenge");var X=G.challenge,Q=DO(X);if("c1a"in Q&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},G,{XZB:X,ErT:Q})}; OHC=function(G,X){var Q,R,S,Z,H;return g.F(function(w){switch(w.W){case 1:Q=void 0,R=0,S={};case 2:if(!(R<5)){w.pO(4);break}if(!(R>0)){w.pO(5);break}S.Hv=1E3*Math.pow(2,R-1)+Math.random()*1E3;return g.l(w,new Promise(function(h){return function(L){g.D$(0,function(){L(void 0)},h.Hv)}}(S)),5); case 5:return g.a0(w,7),g.l(w,bj(G,X),9);case 9:return Z=w.N,w.return(zIe(Z));case 7:Q=H=g.cl(w),H instanceof Error&&g.EL(H);case 8:R++;S={Hv:void 0};w.pO(2);break;case 4:throw Q;}})}; x4Z=function(G,X){G.N=X}; csX=function(G){var X,Q,R;return g.F(function(S){if(S.W==1)return g.l(S,Promise.race([G.N,null]),2);X=S.N;var Z=vf(G);G.N=Z;(Q=X)==null||(R=Q.jG)==null||R.dispose();g.rX(S)})}; ij=function(G,X){function Q(){var S;return g.F(function(Z){S=R-Date.now();return S<1E3?g.l(Z,csX(G),0):(fZ(Q,0,Math.min(S,6E4)),Z.pO(0))})} var R=Date.now()+X;Q()}; gQC=function(G,X){return new Promise(function(Q){g.D$(0,function(){Q(X())},G)})}; g.U47=function(G,X){var Q;return g.F(function(R){var S=g.QH("yt.aba.att");return(Q=S?S:Jd.instance!==void 0?Jd.instance.Y.bind(Jd.instance):null)?R.return(Q("ENGAGEMENT_TYPE_PLAYBACK",G,X)):R.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.l3T=function(){var G;return(G=(G=g.QH("yt.aba.att2"))?G:Jd.instance!==void 0?Jd.instance.V.bind(Jd.instance):null)?G():Promise.resolve(!1)}; FsS=function(G,X){var Q=g.QH("ytDebugData.callbacks");Q||(Q={},g.G3("ytDebugData.callbacks",Q));if(g.jg("web_dd_iu")||BWZ.includes(G))Q[G]=X}; GV=function(){var G=CCU;var X=X===void 0?[]:X;var Q=Q===void 0?[]:Q;X=KaT.apply(null,[eWC.apply(null,g.o0(X))].concat(g.o0(Q)));this.store=a5X(G,void 0,X)}; g.X5=function(G,X,Q){for(var R=Object.assign({},G),S=g.e(Object.keys(X)),Z=S.next();!Z.done;Z=S.next()){Z=Z.value;var H=G[Z],w=X[Z];if(w===void 0)delete R[Z];else if(H===void 0)R[Z]=w;else if(Array.isArray(w)&&Array.isArray(H))R[Z]=Q?[].concat(g.o0(H),g.o0(w)):w;else if(!Array.isArray(w)&&g.Hn(w)&&!Array.isArray(H)&&g.Hn(H))R[Z]=g.X5(H,w,Q);else if(typeof w===typeof H)R[Z]=w;else return X=new g.Ic("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:Z,ekO:H,updateValue:w}),g.aU(X), G}return R}; Qk=function(G){var X=this;G=G===void 0?[]:G;this.N=[];this.Y=this.W=0;this.V=void 0;this.totalLength=0;G.forEach(function(Q){X.append(Q)})}; tiw=function(G,X){return G.N.length===0?!1:(G=G.N[G.N.length-1])&&G.buffer===X.buffer&&G.byteOffset+G.length===X.byteOffset}; R8=function(G,X){X=g.e(X.N);for(var Q=X.next();!Q.done;Q=X.next())G.append(Q.value)}; Sx=function(G,X,Q){return G.split(X).JC.split(Q).JM}; Zs=function(G){G.V=void 0;G.W=0;G.Y=0}; H2=function(G,X,Q){G.isFocused(X);return X-G.Y+Q<=G.N[G.W].length}; Vii=function(G){if(!G.V){var X=G.N[G.W];G.V=new DataView(X.buffer,X.byteOffset,X.length)}return G.V}; I3X=function(G,X,Q){X=X===void 0?0:X;Q=Q===void 0?-1:Q;if(!G.totalLength||!Q)return new DataView(new ArrayBuffer(0));Q<0&&(Q=G.totalLength-X);G.focus(X);if(!H2(G,X,Q)){var R=G.W,S=G.Y;G.focus(X+Q-1);S=new Uint8Array(G.Y+G.N[G.W].length-S);for(var Z=0,H=R;H<=G.W;H++)S.set(G.N[H],Z),Z+=G.N[H].length;G.N.splice(R,G.W-R+1,S);Zs(G);G.focus(X)}R=G.N[G.W];return new DataView(R.buffer,R.byteOffset+X-G.Y,Q)}; q2=function(G,X,Q){G=I3X(G,X===void 0?0:X,Q===void 0?-1:Q);return new Uint8Array(G.buffer,G.byteOffset,G.byteLength)}; w2=function(G,X,Q){G=q2(G,X===void 0?0:X,Q===void 0?-1:Q);X=new Uint8Array(G.length);try{X.set(G)}catch(R){for(Q=0;Q>10;Z=56320|Z&1023}YJ[S++]=Z}}Z=String.fromCharCode.apply(String,YJ); S<1024&&(Z=Z.substring(0,S));Q.push(Z)}return Q.join("")}; mT=function(G,X){var Q;if((Q=M2)==null?0:Q.encodeInto)return X=M2.encodeInto(G,X),X.read>6|192:((S&64512)===55296&&R+1>18|240,X[Q++]=S>>12&63|128):X[Q++]=S>>12|224,X[Q++]=S>>6&63|128),X[Q++]=S&63|128)}return Q}; o8=function(G){if(M2)return M2.encode(G);var X=new Uint8Array(Math.ceil(G.length*1.2)),Q=mT(G,X);X.lengthQ&&(X=X.subarray(0,Q));return X}; uJ=function(G){this.N=G;this.pos=0;this.W=-1}; P2=function(G){var X=hK(G.N,G.pos);++G.pos;if(X<128)return X;for(var Q=X&127,R=1;X>=128;)X=hK(G.N,G.pos),++G.pos,R*=128,Q+=(X&127)*R;return Q}; s9=function(G,X){var Q=G.W;for(G.W=-1;G.pos+1<=G.N.totalLength;){Q<0&&(Q=P2(G));var R=Q>>3,S=Q&7;if(R===X)return!0;if(R>X){G.W=Q;break}Q=-1;switch(S){case 0:P2(G);break;case 1:G.pos+=8;break;case 2:R=P2(G);G.pos+=R;break;case 5:G.pos+=4}}return!1}; TV=function(G,X){if(s9(G,X))return P2(G)}; pey=function(G,X){if(s9(G,X))return X=q2(G.N,G.pos,8),G.pos+=8,(new DataView(X.buffer,X.byteOffset,X.byteLength)).getFloat64(0,!0)}; Kr=function(G,X){if(s9(G,X))return!!P2(G)}; ex=function(G,X){if(s9(G,X)){X=P2(G);var Q=q2(G.N,G.pos,X);G.pos+=X;return Q}}; r2=function(G,X){if(G=ex(G,X))return g.jx(G)}; a8=function(G,X,Q){if(G=ex(G,X))return Q(new uJ(new Qk([G])))}; E9=function(G,X){for(var Q=[];s9(G,X);)Q.push(P2(G));return Q.length?Q:void 0}; xJ=function(G,X,Q){for(var R=[],S;S=ex(G,X);)R.push(Q(new uJ(new Qk([S]))));return R.length?R:void 0}; O9=function(G,X){G=G instanceof Uint8Array?new Qk([G]):G;return X(new uJ(G))}; ys7=function(G,X){G=new Uint8Array(G);X&&G.set(X);return G}; f3C=function(G){this.pos=0;this.W=[];this.N=ys7(G===void 0?4096:G);this.view=new DataView(this.N.buffer,this.N.byteOffset,this.N.byteLength)}; zV=function(G,X){X=G.pos+X;if(!(G.N.length>=X)){for(var Q=G.N.length*2;Q268435455){zV(G,4);for(var Q=X&1073741823,R=0;R<4;R++)G.view.setUint8(G.pos,Q&127|128),Q>>=7,G.pos+=1;X=Math.floor(X/268435456)}for(zV(G,4);X>127;)G.view.setUint8(G.pos,X&127|128),X>>=7,G.pos+=1;G.view.setUint8(G.pos,X);G.pos+=1}; g2=function(G,X,Q){Q!==void 0&&(c2(G,X*8),c2(G,Q))}; pr=function(G,X,Q){Q!==void 0&&g2(G,X,Q?1:0)}; yk=function(G,X,Q){Q!==void 0&&(c2(G,X*8+2),X=Q.length,c2(G,X),zV(G,X),G.N.set(Q,G.pos),G.pos+=X)}; fr=function(G,X,Q){Q!==void 0&&(D4G(G,X,Math.ceil(Math.log2(Q.length*4+2)/7)),zV(G,Q.length*1.2),X=mT(Q,G.N.subarray(G.pos)),G.pos+X>G.N.length&&(zV(G,X),X=mT(Q,G.N.subarray(G.pos))),G.pos+=X,NWS(G))}; D4G=function(G,X,Q){Q=Q===void 0?2:Q;c2(G,X*8+2);G.W.push(G.pos);G.W.push(Q);G.pos+=Q}; NWS=function(G){for(var X=G.W.pop(),Q=G.W.pop(),R=G.pos-Q-X;X--;){var S=X?128:0;G.view.setUint8(Q++,R&127|S);R>>=7}}; Ds=function(G,X,Q,R,S){Q&&(D4G(G,X,S===void 0?3:S),R(G,Q),NWS(G))}; g.N2=function(G,X){var Q=new f3C(4096);X(Q,G);return new Uint8Array(Q.N.buffer,Q.N.byteOffset,Q.pos)}; g.AK=function(G){var X=new uJ(new Qk([c1(decodeURIComponent(G))]));G=r2(X,2);X=TV(X,4);var Q=Asy[X];if(typeof Q==="undefined")throw G=new g.Ic("Failed to recognize field number",{name:"EntityKeyHelperError",ej_:X}),g.aU(G),G;return{PU:X,entityType:Q,entityId:G}}; g.nr=function(G,X){var Q=Q===void 0?0:Q;var R=new f3C;yk(R,2,o8(G));G=nQC[X];if(typeof G==="undefined")throw Q=new g.Ic("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:X}),g.aU(Q),Q;g2(R,4,G);g2(R,5,1);X=new Uint8Array(R.N.buffer,R.N.byteOffset,R.pos);return encodeURIComponent(g.Oo(X,Q))}; $J=function(G,X,Q,R){if(R===void 0)return R=Object.assign({},G[X]||{}),Q=(delete R[Q],R),R={},Object.assign({},G,(R[X]=Q,R));var S={},Z={};return Object.assign({},G,(Z[X]=Object.assign({},G[X],(S[Q]=R,S)),Z))}; $4e=function(G,X,Q,R,S){var Z=G[X];if(Z==null||!Z[Q])return G;R=g.X5(Z[Q],R,S==="REPEATED_FIELDS_MERGE_OPTION_APPEND");S={};Z={};return Object.assign({},G,(Z[X]=Object.assign({},G[X],(S[Q]=R,S)),Z))}; bHG=function(G,X){G=G===void 0?{}:G;switch(X.type){case "ENTITY_LOADED":return X.payload.reduce(function(R,S){var Z,H=(Z=S.options)==null?void 0:Z.persistenceOption;if(H&&H!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&H!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return R;if(!S.entityKey)return g.aU(Error("Missing entity key")),R;if(S.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!S.payload)return S=new g.Ic("REPLACE entity mutation is missing a payload",{entityKey:S.entityKey}),g.aU(S),R;var w=g.SG(S.payload); return $J(R,w,S.entityKey,S.payload[w])}if(S.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{S=S.entityKey;try{var h=g.AK(S).entityType;w=$J(R,h,S);break a}catch(Y){if(Y instanceof Error){S=new g.Ic("Failed to deserialize entity key",{entityKey:S,originalMessage:Y.message});g.aU(S);w=R;break a}throw Y;}w=void 0}return w}if(S.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!S.payload)return S=new g.Ic("UPDATE entity mutation is missing a payload",{entityKey:S.entityKey}),g.aU(S),R;w=g.SG(S.payload);var L,k;return $4e(R, w,S.entityKey,S.payload[w],(L=S.fieldMask)==null?void 0:(k=L.mergeOptions)==null?void 0:k.repeatedFieldsMergeOption)}return R},G); case "REPLACE_ENTITY":var Q=X.payload;return $J(G,Q.entityType,Q.key,Q.qA);case "REPLACE_ENTITIES":return Object.keys(X.payload).reduce(function(R,S){var Z=X.payload[S];return Object.keys(Z).reduce(function(H,w){return $J(H,S,w,Z[w])},R)},G); case "UPDATE_ENTITY":return Q=X.payload,$4e(G,Q.entityType,Q.key,Q.qA,Q.URM);default:return G}}; bJ=function(G,X,Q){return G[X]?G[X][Q]||null:null}; v2=function(G){return window.Int32Array?new Int32Array(G):Array(G)}; RK=function(G){g.I.call(this);this.counter=[0,0,0,0];this.W=new Uint8Array(16);this.N=16;if(!vQ0){var X,Q=new Uint8Array(256),R=new Uint8Array(256);var S=1;for(X=0;X<256;X++)Q[S]=X,R[X]=S,S^=S<<1^(S>>7&&283);JK=new Uint8Array(256);iJ=v2(256);Gj=v2(256);XI=v2(256);Qx=v2(256);for(var Z=0;Z<256;Z++){S=Z?R[255^Q[Z]]:0;S^=S<<1^S<<2^S<<3^S<<4;S=S&255^S>>>8^99;JK[Z]=S;X=S<<1^(S>>7&&283);var H=X^S;iJ[Z]=X<<24|S<<16|S<<8|H;Gj[Z]=H<<24|iJ[Z]>>>8;XI[Z]=S<<24|Gj[Z]>>>8;Qx[Z]=S<<24|XI[Z]>>>8}vQ0=!0}S=v2(44);for(Q= 0;Q<4;Q++)S[Q]=G[4*Q]<<24|G[4*Q+1]<<16|G[4*Q+2]<<8|G[4*Q+3];for(R=1;Q<44;Q++)G=S[Q-1],Q%4||(G=(JK[G>>16&255]^R)<<24|JK[G>>8&255]<<16|JK[G&255]<<8|JK[G>>>24],R=R<<1^(R>>7&&283)),S[Q]=S[Q-4]^G;this.key=S}; JsZ=function(G){for(var X=G.key,Q=G.counter[0]^X[0],R=G.counter[1]^X[1],S=G.counter[2]^X[2],Z=G.counter[3]^X[3],H=3;H>=0&&!(G.counter[H]=-~G.counter[H]);H--);for(var w,h,L=4;L<40;)H=iJ[Q>>>24]^Gj[R>>16&255]^XI[S>>8&255]^Qx[Z&255]^X[L++],w=iJ[R>>>24]^Gj[S>>16&255]^XI[Z>>8&255]^Qx[Q&255]^X[L++],h=iJ[S>>>24]^Gj[Z>>16&255]^XI[Q>>8&255]^Qx[R&255]^X[L++],Z=iJ[Z>>>24]^Gj[Q>>16&255]^XI[R>>8&255]^Qx[S&255]^X[L++],Q=H,R=w,S=h;G=G.W;H=X[40];G[0]=JK[Q>>>24]^H>>>24;G[1]=JK[R>>16&255]^H>>16&255;G[2]=JK[S>>8&255]^ H>>8&255;G[3]=JK[Z&255]^H&255;H=X[41];G[4]=JK[R>>>24]^H>>>24;G[5]=JK[S>>16&255]^H>>16&255;G[6]=JK[Z>>8&255]^H>>8&255;G[7]=JK[Q&255]^H&255;H=X[42];G[8]=JK[S>>>24]^H>>>24;G[9]=JK[Z>>16&255]^H>>16&255;G[10]=JK[Q>>8&255]^H>>8&255;G[11]=JK[R&255]^H&255;H=X[43];G[12]=JK[Z>>>24]^H>>>24;G[13]=JK[Q>>16&255]^H>>16&255;G[14]=JK[R>>8&255]^H>>8&255;G[15]=JK[S&255]^H&255}; HS=function(){if(!S6&&!g.pl){if(ZE)return ZE;var G;ZE=(G=window.crypto)==null?void 0:G.subtle;var X,Q,R;if(((X=ZE)==null?0:X.importKey)&&((Q=ZE)==null?0:Q.sign)&&((R=ZE)==null?0:R.encrypt))return ZE;ZE=void 0}}; g.ht=function(G){var X=HS();X&&(this.N=new qG(G,X));this.W=new g.wq(G)}; qG=function(G,X){this.W=G;this.subtleCrypto=X}; iHG=function(G,X,Q){var R,S;return g.F(function(Z){switch(Z.W){case 1:if(G.N){Z.pO(2);break}return g.l(Z,G.subtleCrypto.importKey("raw",G.W,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:G.N=Z.N;case 2:return R={name:"AES-CTR",counter:Q,length:128},g.l(Z,G.subtleCrypto.encrypt(R,G.N,X),4);case 4:return S=Z.N,Z.return(new Uint8Array(S))}})}; g.wq=function(G){this.W=G}; L1=function(G){this.C=new Uint8Array(64);this.Y=new Uint8Array(64);this.V=0;this.S=new Uint8Array(64);this.W=0;this.C.set(G);this.Y.set(G);for(G=0;G<64;G++)this.C[G]^=92,this.Y[G]^=54;this.reset()}; GYG=function(G,X,Q){for(var R=G.J,S=G.N[0],Z=G.N[1],H=G.N[2],w=G.N[3],h=G.N[4],L=G.N[5],k=G.N[6],Y=G.N[7],M,m,u,r=0;r<64;)r<16?(R[r]=u=X[Q]<<24|X[Q+1]<<16|X[Q+2]<<8|X[Q+3],Q+=4):(M=R[r-2],m=R[r-15],u=R[r-7]+R[r-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),R[r]=u),M=Y+kf[r]+u+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&L^~h&k),m=((S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10))+(S&Z^S&H^Z&H),Y=M+m,w+=M,r++,r<16?(R[r]=u=X[Q]<<24|X[Q+1]<<16|X[Q+2]<<8|X[Q+3],Q+=4):(M= R[r-2],m=R[r-15],u=R[r-7]+R[r-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),R[r]=u),M=k+kf[r]+u+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&h^~w&L),m=((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+(Y&S^Y&Z^S&Z),k=M+m,H+=M,r++,r<16?(R[r]=u=X[Q]<<24|X[Q+1]<<16|X[Q+2]<<8|X[Q+3],Q+=4):(M=R[r-2],m=R[r-15],u=R[r-7]+R[r-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),R[r]=u),M=L+kf[r]+u+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&w^ ~H&h),m=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&Y^k&S^Y&S),L=M+m,Z+=M,r++,r<16?(R[r]=u=X[Q]<<24|X[Q+1]<<16|X[Q+2]<<8|X[Q+3],Q+=4):(M=R[r-2],m=R[r-15],u=R[r-7]+R[r-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),R[r]=u),M=h+kf[r]+u+((Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(Z&H^~Z&w),m=((L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10))+(L&k^L&Y^k&Y),u=Y,Y=w,w=u,u=k,k=H,H=u,u=L,L=Z,Z=u,h=S+M,S=M+m,r++;G.N[0]=S+G.N[0]|0;G.N[1]=Z+G.N[1]|0;G.N[2]=H+G.N[2]|0;G.N[3]= w+G.N[3]|0;G.N[4]=h+G.N[4]|0;G.N[5]=L+G.N[5]|0;G.N[6]=k+G.N[6]|0;G.N[7]=Y+G.N[7]|0}; QfG=function(G){var X=new Uint8Array(32),Q=64-G.W;G.W>55&&(Q+=64);var R=new Uint8Array(Q);R[0]=128;for(var S=G.V*8,Z=1;Z<9;Z++){var H=S%256;R[Q-Z]=H;S=(S-H)/256}G.update(R);for(Q=0;Q<8;Q++)X[Q*4]=G.N[Q]>>>24,X[Q*4+1]=G.N[Q]>>>16&255,X[Q*4+2]=G.N[Q]>>>8&255,X[Q*4+3]=G.N[Q]&255;XRw(G);return X}; XRw=function(G){G.N=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];G.J=[];G.J.length=64;G.V=0;G.W=0}; R$0=function(G){this.N=G}; STX=function(G,X,Q){G=new L1(G.N);G.update(X);G.update(Q);X=QfG(G);G.update(G.C);G.update(X);X=QfG(G);G.reset();return X}; Z7y=function(G){this.W=G}; H7Z=function(G,X,Q,R){var S,Z,H;return g.F(function(w){switch(w.W){case 1:if(G.N){w.pO(2);break}return g.l(w,R.importKey("raw",G.W,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:G.N=w.N;case 2:return S=new Uint8Array(X.length+Q.length),S.set(X),S.set(Q,X.length),Z={name:"HMAC",hash:"SHA-256"},g.l(w,R.sign(Z,G.N,S),4);case 4:return H=w.N,w.return(new Uint8Array(H))}})}; qTw=function(G,X,Q){G.Y||(G.Y=new R$0(G.W));return STX(G.Y,X,Q)}; wRU=function(G,X,Q){var R,S;return g.F(function(Z){if(Z.W==1){R=HS();if(!R)return Z.return(qTw(G,X,Q));g.a0(Z,3);return g.l(Z,H7Z(G,X,Q,R),5)}if(Z.W!=3)return Z.return(Z.N);S=g.cl(Z);g.EL(S);S6=!0;return Z.return(qTw(G,X,Q))})}; L5w=function(G){for(var X="",Q=0;Q=0||Pi(G,0,"gad_source",G.search(sx))>=0}; P6w=function(){this.N=new Map}; TET=function(G,X){var Q=ET().resolve(sfT);if(uVX(X)){var R=K0(X,"gclid");X={handleEvent:function(w){G&&!G.closed&&typeof G.postMessage==="function"&&w&&w.origin&&w.source===G&&w.data&&w.data.action==="gcl_setup"&&G.postMessage(Object.assign({},{action:"gcl_transfer"},R&&{gclid:R},{gadSource:2}),w.origin)}}; for(var S=g.e(Q.N),Z=S.next();!Z.done;Z=S.next()){var H=g.e(Z.value);Z=H.next().value;H=H.next().value;if(Z.closed)try{window.removeEventListener("message",H),Q.N.delete(Z)}catch(w){g.aU(w)}}G&&Q.N.size<15&&(Q.N.set(G,X),window.addEventListener("message",X))}}; Yf=function(G,X,Q){if(!X)return G.length>=1?G[G.length-1]:null;for(var R=g.e(G),S=R.next();!S.done;S=R.next())if(S=S.value,S.width&&S.height&&(Q&&S.width>=X||!Q&&S.height>=X))return S;for(X=G.length-1;X>=0;X--)if(Q&&G[X].width||!Q&&G[X].height)return G[X];return G[0]}; j6=function(){this.state=1;this.jG=null;this.a$=void 0}; e$7=function(G,X,Q,R,S,Z){var H=H===void 0?"trayride":H;Q?(G.qx(2),g.Js(g.PO(Q),function(){if(window[H])K5y(G,R,H,S);else{G.qx(3);var w=orX(Q),h=document.getElementById(w);h&&(Mp0(w),h.parentNode.removeChild(h));g.EL(new g.Ic("BL:ULB",""+Q))}},Z)):X?(Z=g.ml("SCRIPT"),X instanceof Po?(Z.textContent=sr(X),T9(Z)):Z.textContent=X,Z.nonce=uA(document),document.head.appendChild(Z),document.head.removeChild(Z),window[H]?K5y(G,R,H,S):(G.qx(4),g.EL(new g.Ic("BL:ULBJ")))):g.EL(new g.Ic("BL:ULV"))}; K5y=function(G,X,Q,R){G.qx(5);var S=!!G.a$&&rgy.includes(g.hN(G.a$)||"");try{var Z=new hl({program:X,globalName:Q,Xt:{disable:!g.jg("att_web_record_metrics")||!g.jg("att_skip_metrics_for_cookieless_domains_ks")&&S,Lv:"aGIf"}});Z.t2.then(function(){G.qx(6);R&&R(X)}); G.zP(Z)}catch(H){G.qx(7),H instanceof Error&&g.EL(H)}}; MG=function(){var G=g.QH("yt.abuse.playerAttLoader");return G&&["bgvma","bgvmb","bgvmc"].every(function(X){return X in G})?G:null}; mp=function(){j6.apply(this,arguments)}; oK=function(){}; aDy=function(G,X,Q){for(var R=!1,S=g.e(G.d$.entries()),Z=S.next();!Z.done;Z=S.next())Z=g.e(Z.value).next().value,Z.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Z.JT==="core"&&(R=!0);if(R){a:if(!Q){G=g.e(G.d$.entries());for(Q=G.next();!Q.done;Q=G.next())if(R=g.e(Q.value),Q=R.next().value,R=R.next().value,Q.slotType==="SLOT_TYPE_IN_PLAYER"&&Q.JT==="core"){Q=R.layoutId;break a}Q=void 0}Q?X.CT(Q):qQ("No triggering layout ID available when attempting to mute.")}}; um=function(G,X){this.RX=G;this.Xe=X}; PS=function(){}; sf=function(){}; xtU=function(G){g.I.call(this);var X=this;this.OY=G;this.N=new Map;Tj(this,"commandExecutorCommand",function(Q,R,S){EG0(X,Q.commands,R,S)}); Tj(this,"clickTrackingParams",function(){})}; O7G=function(G,X){Tj(G,X.pW(),function(Q,R,S){X.q8(Q,R,S)})}; Tj=function(G,X,Q){G.U_();G.N.get(X)&&g.aU(Error("Extension name "+X+" already registered"));G.N.set(X,Q)}; EG0=function(G,X,Q,R){X=X===void 0?[]:X;G.U_();var S=[],Z=[];X=g.e(X);for(var H=X.next();!H.done;H=X.next())H=H.value,g.y(H,z$w)||g.y(H,cgS)?S.push(H):Z.push(H);S=g.e(S);for(X=S.next();!X.done;X=S.next())K1(G,X.value,Q,R);Z=g.e(Z);for(S=Z.next();!S.done;S=Z.next())K1(G,S.value,Q,R)}; K1=function(G,X,Q,R){G.U_();X.loggingUrls&&gGX(G,"loggingUrls",X.loggingUrls,Q,R);X=g.e(Object.entries(X));for(var S=X.next();!S.done;S=X.next()){var Z=g.e(S.value);S=Z.next().value;Z=Z.next().value;S==="openPopupAction"?G.OY.get().Rc("innertubeCommand",{openPopupAction:Z}):S==="confirmDialogEndpoint"?G.OY.get().Rc("innertubeCommand",{confirmDialogEndpoint:Z}):UtU.hasOwnProperty(S)||gGX(G,S,Z,Q,R)}}; gGX=function(G,X,Q,R,S){if((G=G.N.get(X))&&typeof G==="function")try{G(Q,R,S)}catch(Z){g.aU(Z)}else X=new g.Ic("Unhandled field",X),g.EL(X)}; e6=function(G,X,Q){this.bL=G;this.N=X;this.nO=Q;K7(ET(),{LV:sfT,u0:P6w})}; rq=function(G){this.value=G}; aK=function(G){this.value=G}; Ef=function(G){this.value=G}; xf=function(G){this.value=G}; Of=function(G){this.value=G}; zj=function(G){this.value=G}; cS=function(G){this.value=G}; gq=function(){rq.apply(this,arguments)}; Uf=function(G){this.value=G}; lm=function(G){this.value=G}; BS=function(G){this.value=G}; FI=function(G){this.value=G}; C1=function(G){this.value=G}; tt=function(G){this.value=G}; Vx=function(G){this.value=G}; IK=function(G){this.value=G}; dq=function(G){this.value=G}; WS=function(G){this.value=G}; p1=function(){rq.apply(this,arguments)}; yx=function(G){this.value=G}; f1=function(G){this.value=G}; DE=function(G){this.value=G}; NG=function(G){this.value=G}; At=function(G){this.value=G}; n1=function(G){this.value=G}; $f=function(G){this.value=G}; bm=function(G){this.value=G}; vS=function(G){this.value=G}; Jt=function(G){this.value=G}; im=function(G){this.value=G}; GA=function(G){this.value=G}; X$=function(G){this.value=G}; Ql=function(G){this.value=G}; RP=function(G){this.value=G}; S$=function(G){this.value=G}; Z_=function(G){this.value=G}; Hc=function(G){this.value=G}; qj=function(G){this.value=G}; wG=function(G){this.value=G}; hr=function(G){this.value=G}; L$=function(G){this.value=G}; kv=function(G){this.value=G}; Yv=function(G){this.value=G}; j$=function(G){this.value=G}; Mj=function(G){this.value=G}; mj=function(G){this.value=G}; oP=function(G){this.value=G}; u2=function(G){this.value=G}; Pc=function(G){this.value=G}; si=function(G){this.value=G}; TA=function(G){this.value=G}; K$=function(G){this.value=G}; e$=function(G){this.value=G}; rG=function(G){this.value=G}; aP=function(G){this.value=G}; Ei=function(G){this.value=G}; xv=function(G){this.value=G}; Oi=function(G){this.value=G}; zA=function(){rq.apply(this,arguments)}; cc=function(G){this.value=G}; gG=function(){rq.apply(this,arguments)}; Ui=function(){rq.apply(this,arguments)}; l2=function(){rq.apply(this,arguments)}; Bc=function(){rq.apply(this,arguments)}; F$=function(){rq.apply(this,arguments)}; C$=function(G){this.value=G}; tr=function(G){this.value=G}; Vl=function(G){this.value=G}; IP=function(G){this.value=G}; dG=function(G){this.value=G}; p$=function(G,X,Q){if(Q&&!Q.includes(G.layoutType))return!1;X=g.e(X);for(Q=X.next();!Q.done;Q=X.next())if(!Wc(G.clientMetadata,Q.value))return!1;return!0}; yl=function(){return""}; lD7=function(G,X){switch(G){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 X(G),8}}; f$=function(G,X,Q,R){R=R===void 0?!1:R;od.call(this,G);this.uH=Q;this.Fu=R;this.args=[];X&&this.args.push(X)}; n=function(G,X,Q,R){R=R===void 0?!1:R;od.call(this,G);this.uH=Q;this.Fu=R;this.args=[];X&&this.args.push(X)}; D_=function(G){var X=new Map;G.forEach(function(Q){X.set(Q.N(),Q)}); this.N=X}; Wc=function(G,X){return G.N.has(X)}; Nj=function(G,X){G=G.N.get(X);if(G!==void 0)return G.get()}; Ar=function(G){return Array.from(G.N.keys())}; n$=function(G,X,Q){if(Q&&Q!==G.slotType)return!1;X=g.e(X);for(Q=X.next();!Q.done;Q=X.next())if(!Wc(G.clientMetadata,Q.value))return!1;return!0}; F5G=function(G){var X;return((X=BEi.get(G))==null?void 0:X.xa)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; b2=function(G,X){var Q={type:X.slotType,controlFlowManagerLayer:C6y.get(X.JT)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};X.slotEntryTrigger&&(Q.entryTriggerType=X.slotEntryTrigger.triggerType);X.slotPhysicalPosition!==1&&(Q.slotPhysicalPosition=X.slotPhysicalPosition);if(G){Q.debugData={slotId:X.slotId};if(G=X.slotEntryTrigger)Q.debugData.slotEntryTriggerData=$v(G);G=X.slotFulfillmentTriggers;Q.debugData.fulfillmentTriggerData=[];G=g.e(G);for(var R=G.next();!R.done;R=G.next())Q.debugData.fulfillmentTriggerData.push($v(R.value)); X=X.slotExpirationTriggers;Q.debugData.expirationTriggerData=[];X=g.e(X);for(G=X.next();!G.done;G=X.next())Q.debugData.expirationTriggerData.push($v(G.value))}return Q}; thU=function(G,X){var Q={type:X.layoutType,controlFlowManagerLayer:C6y.get(X.JT)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};G&&(Q.debugData={layoutId:X.layoutId});return Q}; $v=function(G,X){var Q={type:G.triggerType};X!=null&&(Q.category=X);G.triggeringSlotId!=null&&(Q.triggerSourceData||(Q.triggerSourceData={}),Q.triggerSourceData.associatedSlotId=G.triggeringSlotId);G.triggeringLayoutId!=null&&(Q.triggerSourceData||(Q.triggerSourceData={}),Q.triggerSourceData.associatedLayoutId=G.triggeringLayoutId);return Q}; Vhy=function(G,X,Q,R){X={opportunityType:X};G&&(R||Q)&&(R=g.P1(R||[],function(S){return b2(G,S)}),X.debugData=Object.assign({},Q&&Q.length>0?{associatedSlotId:Q}:{},R.length>0?{slots:R}:{})); return X}; Jr=function(G,X){return function(Q){return IDS(vc(G),X.slotId,X.slotType,X.slotPhysicalPosition,X.JT,X.slotEntryTrigger,X.slotFulfillmentTriggers,X.slotExpirationTriggers,Q.layoutId,Q.layoutType,Q.JT)}}; IDS=function(G,X,Q,R,S,Z,H,w,h,L,k){return{adClientDataEntry:{slotData:b2(G,{slotId:X,slotType:Q,slotPhysicalPosition:R,JT:S,slotEntryTrigger:Z,slotFulfillmentTriggers:H,slotExpirationTriggers:w,clientMetadata:new D_([])}),layoutData:thU(G,{layoutId:h,layoutType:L,JT:k,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],u6:new Map,clientMetadata:new D_([]),UM:{}})}}}; G7=function(G){this.HM=G;G=Math.random();var X=this.HM.get();X=g.i2(X.U.Z().experiments,"html5_debug_data_log_probability");X=Number.isFinite(X)&&X>=0&&X<=1?X:0;this.N=G1){g.EL(new g.Ic("Exit already started",{current:G.currentState}));var Q=!1}else Q=!0;if(!Q)return!1;G.currentState=2;G.N=X;return!0}; S0=function(G){if(G.currentState!==2)return!1;G.currentState=3;return!0}; m1y=function(G,X){var Q=new Map;G=g.e(G);for(var R=G.next();!R.done;R=G.next()){R=R.value;if(R.layoutType==="LAYOUT_TYPE_MEDIA")var S="v";else R.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(S=Nj(R.clientMetadata,"metadata_type_linked_in_player_layout_type"),S=S==="LAYOUT_TYPE_ENDCAP"||S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":S==="LAYOUT_TYPE_SURVEY"?"s":S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):S="u";Q.set(R.layoutId,S);if(S==="u"){var Z={};S=X;R=(Z.c=R.layoutId,Z);S.U.Ni("uct",R)}}G= X.WO();ZP={contentCpn:G,GE:Q};R={};Q=(R.ct=Q.size,R.c=G,R);X.U.Ni("acc",Q)}; oCT=function(){ZP={contentCpn:"",GE:new Map}}; Hj=function(G){var X;return(X=ZP.GE.get(G))!=null?X:"u"}; qr=function(G,X,Q){G.U.Ni(X,Q);uXi(G)}; P57=function(G){var X=G.layoutId,Q=G.Op;if(G.J8){var R={};qr(G.bL,"slso",(R.ec=X,R.is=Q,R.ctp=Hj(X),R))}}; wP=function(G){var X=G.layoutId,Q=G.Op;if(G.J8){var R={};qr(G.bL,"slse",(R.ec=X,R.is=Q,R.ctp=Hj(X),R))}}; sbX=function(G){var X=G.layoutId,Q=G.Op,R=G.bL;G.J8&&(G={},qr(R,"sleo",(G.xc=X,G.is=Q,G.ctp=Hj(X),G)),uXi(R))}; TcG=function(G){var X=G.cpn,Q=G.bL;G=G.Op;var R=Q.WO(),S={};qr(Q,"ce",(S.ec=X,S.ia=X!==R,S.r=ZP.GE.has(X),S.is=G,S.ctp=Hj(X),S))}; uXi=function(G){if(G.WO()!==ZP.contentCpn){var X={};X=(X.c=ZP.contentCpn,X);G.U.Ni("ccm",X)}}; KJ7=function(G){var X=G.cpn,Q=G.bL;G=G.Op;var R=Q.WO(),S={};qr(Q,"cx",(S.xc=X,S.ia=X!==R,S.r=ZP.GE.has(X),S.is=G,S.ctp=Hj(X),S))}; e7i=function(G){this.params=G;this.N=new Set}; r4T=function(G,X,Q){if(!G.N.has(X)){G.N.add(X);var R={};G.params.w2.Ws(X,Object.assign({},Q,(R.p_ac=G.params.adCpn,R.p_isv=G.params.wg&&G.params.oC,R)))}}; LP=function(G,X,Q){if(hR(G.params.w2.HM.get(),!0)){var R=Q.flush,S={};r4T(G,X,(S.cts=Q.currentTimeSec,S.f=R,S))}}; aTT=function(G,X){this.bL=G;this.HM=X}; kE=function(G){var X=[];if(G){G=g.e(Object.entries(G));for(var Q=G.next();!Q.done;Q=G.next()){var R=g.e(Q.value);Q=R.next().value;R=R.next().value;R!==void 0&&(R=typeof R==="boolean"?""+ +R:(""+R).replace(/[:,=]/g,"_"),X.push(Q+"."+R))}}return X.join(";")}; g.YE=function(G,X,Q){X=X===void 0?{}:X;this.errorCode=G;this.details=X;this.severity=Q===void 0?0:Q}; j0=function(G){return G===1||G===2}; Mr=function(G,X){X=X===void 0?0:X;if(G instanceof g.YE)return G;G=G&&G instanceof Error?G:Error(""+G);j0(X)?g.aU(G):g.EL(G);return new g.YE(X===1?"player.fatalexception":"player.exception",{name:""+G.name,message:""+G.message},X)}; EC7=function(G,X){function Q(){var R=g.Wl.apply(0,arguments);G.removeEventListener("playing",Q);X.apply(null,g.o0(R))} G.addEventListener("playing",Q)}; mB=function(){var G=g.QH("yt.player.utils.videoElement_");G||(G=g.ml("VIDEO"),g.G3("yt.player.utils.videoElement_",G));return G}; oE=function(G){var X=mB();return!!(X&&X.canPlayType&&X.canPlayType(G))}; Pj=function(G){if(/opus/.test(G)&&g.un&&!s_("38")&&!g.V9())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(G);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(G);if(/webm/.test(G)&&!MYU())return!1;G==='audio/mp4; codecs="mp4a.40.2"'&&(G='video/mp4; codecs="avc1.4d401f"');return!!oE(G)}; x1y=function(G){try{var X=Pj('video/mp4; codecs="avc1.42001E"')||Pj('video/webm; codecs="vp9"');return(Pj('audio/mp4; codecs="mp4a.40.2"')||Pj('audio/webm; codecs="opus"'))&&(X||!G)||oE('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(Q){return"html5.missingapi"}}; sA=function(){var G=mB();return!(!G.webkitSupportsPresentationMode||typeof G.webkitSetPresentationMode!=="function")}; Tg=function(){var G=mB();try{var X=G.muted;G.muted=!X;return G.muted!==X}catch(Q){}return!1}; OD7=function(){var G;return((G=navigator.connection)==null?void 0:G.type)||""}; g.KP=function(){TJ.apply(this,arguments)}; e0=function(G,X,Q,R,S,Z,H,w){this.sampleRate=G===void 0?0:G;this.numChannels=X===void 0?0:X;this.spatialAudioType=Q===void 0?"SPATIAL_AUDIO_TYPE_NONE":Q;this.N=R===void 0?!1:R;this.Y=S;this.V=Z;this.audioQuality=H===void 0?"AUDIO_QUALITY_UNKNOWN":H;this.W=w===void 0?!1:w}; gCG=function(G,X){Ds(G,2,X.uR,rP,3);Ds(G,3,X.innertubeRequest,z7y,3);yk(G,4,X.onesieUstreamerConfig);yk(G,9,X.yE);Ds(G,10,X.Va,aE,3);Ds(G,15,X.reloadPlaybackParams,c4y,3)}; lTZ=function(G,X){Ds(G,1,X.formatId,EA,3);g2(G,2,X.startTimeMs);g2(G,3,X.durationMs);g2(G,4,X.tN);g2(G,5,X.tE);Ds(G,9,X.jZH,U1e,3);Ds(G,11,X.XXm,xE,1);Ds(G,12,X.r4,xE,1)}; BcG=function(G,X){fr(G,1,X.videoId);g2(G,2,X.lmt)}; U1e=function(G,X){if(X.Er)for(var Q=0;Q>31));g2(G,16,X.Z0);g2(G,17,X.detailedNetworkType);g2(G,18,X.k5);g2(G,19,X.Gb);g2(G,21,X.UcT);g2(G,23,X.oi);g2(G,28,X.H$);g2(G,29,X.Xzm);g2(G,34,X.visibility);Q=X.playbackRate;if(Q!==void 0){var R=new ArrayBuffer(4);(new Float32Array(R))[0]=Q;Q=(new Uint32Array(R))[0];if(Q!==void 0)for(c2(G,285),zV(G,4),R=0;R<4;)G.view.setUint8(G.pos,Q&255),Q>>=8,G.pos+=1,R+=1}g2(G,36,X.I3); Ds(G,38,X.mediaCapabilities,ITV,3);g2(G,39,X.wzb);g2(G,40,X.r7);g2(G,44,X.playerState);pr(G,46,X.pS);g2(G,48,X.NU);g2(G,50,X.L6);g2(G,51,X.MU);g2(G,54,X.nD);if(X.d9)for(Q=0;Q>31));fr(G,2,X.message)}; nCC=function(G,X){g2(G,1,X.clientState);Ds(G,2,X.l8O,NcU,1)}; D1V=function(G,X){yk(G,1,X.jti);Ds(G,2,X.KeU,A47,3);Ds(G,3,X.coldStartInfo,nCC,3)}; fTV=function(G,X){g2(G,1,X.type);yk(G,2,X.value)}; y4T=function(G,X){fr(G,1,X.hl);fr(G,12,X.deviceMake);fr(G,13,X.deviceModel);g2(G,16,X.clientName);fr(G,17,X.clientVersion);fr(G,18,X.osName);fr(G,19,X.osVersion)}; $10=function(G,X){fr(G,1,X.name);fr(G,2,X.value)}; zg=function(G,X){fr(G,1,X.url);if(X.EO)for(var Q=0;Q55?"60": X>49?"50":X>39?"48":"")));this.qualityLabel=G;this.N=h||"";this.primaries=L||""}; Bj=function(G,X){var Q=Math.max(G,X);G=Math.min(G,X);X=tR[0];for(var R=0;R=Math.floor(Z*16/9)*1.3||G>=Z*1.3)return X;X=S}return"tiny"}; dP=function(G,X,Q){Q=Q===void 0?{}:Q;this.id=G;this.mimeType=X;Q.jA>0||(Q.jA=16E3);Object.assign(this,Q);G=g.e(this.id.split(";"));this.itag=G.next().value;this.N=G.next().value;this.containerType=Vi(X);this.ZC=IE[this.itag]||""}; Wj=function(G){return G.ZC==="9"||G.ZC==="("||G.ZC==="9h"||G.ZC==="(h"}; EA0=function(G){return G.ZC==="H"||G.ZC==="h"}; pP=function(G){return G.ZC==="9h"||G.ZC==="(h"}; xQC=function(G){return!!G.sT&&!!G.sT.fairplay&&(G.ZC==="("||G.ZC==="(h"||G.ZC==="A"||G.ZC==="MEAC3")||yi&&!!G.sT&&G.ZC==="1e"}; fP=function(G){return G.ZC==="1"||G.ZC==="1h"||yi&&G.ZC==="1e"}; DP=function(G){return G.ZC==="mac3"||G.ZC==="meac3"||G.ZC==="m"||G.ZC==="i"}; Nr=function(G){return G.ZC==="MAC3"||G.ZC==="MEAC3"||G.ZC==="M"||G.ZC==="I"}; g.AR=function(G){return G.containerType===1}; OwX=function(G){return G.ZC==="("||G.ZC==="(h"||G.ZC==="H"||yi&&G.ZC==="1e"}; nP=function(G){return G.mimeType==="application/x-mpegURL"}; g.bn=function(G,X){return{itag:+G.itag,lmt:X?0:G.lastModified,xtags:G.N||""}}; znV=function(G){var X=navigator.mediaCapabilities;if(X==null||!X.decodingInfo||G.ZC==="f")return Promise.resolve();var Q={type:G.audio&&G.video?"file":"media-source"};G.video&&(Q.video={contentType:G.mimeType,width:G.video.width||640,height:G.video.height||360,bitrate:G.jA*8||1E6,framerate:G.video.fps||30});G.audio&&(Q.audio={contentType:G.mimeType,channels:""+(G.audio.numChannels||2),bitrate:G.jA*8||128E3,samplerate:G.audio.sampleRate||44100});return X.decodingInfo(Q).then(function(R){G.W=R})}; vj=function(G){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(G)}; JR=function(G){return/(vp9|vp09|vp8|avc1|av01)/.test(G)}; Gv=function(G){return G.includes("vtt")||G.includes("text/mp4")}; Vi=function(G){return G.indexOf("/mp4")>=0?1:G.indexOf("/webm")>=0?2:G.indexOf("/x-flv")>=0?3:G.indexOf("/vtt")>=0?4:0}; XP=function(G,X,Q,R,S,Z,H){var w=new e0;X in g.FZ||(X="small");X==="light"&&(X="tiny");R&&S?(S=Number(S),R=Number(R)):(S=g.FZ[X],R=Math.round(S*16/9));Z=new CP(R,S,0,null,void 0,X,Z,H);G=unescape(G.replace(/"/g,'"'));return new dP(Q,G,{audio:w,video:Z})}; Qp=function(G){var X="id="+G.id;G.video&&(X+=", res="+G.video.qualityLabel);var Q,R;return X+", byterate=("+((Q=G.Xu)==null?void 0:Q.toFixed(0))+", "+((R=G.jA)==null?void 0:R.toFixed(0))+")"}; RT=function(G,X){return{start:function(Q){return G[Q]}, end:function(Q){return X[Q]}, length:G.length}}; cwl=function(G,X,Q){for(var R=[],S=[],Z=0;Z=X)return Q}catch(R){}return-1}; HH=function(G,X){return Zt(G,X)>=0}; gAe=function(G,X){if(!G)return NaN;X=Zt(G,X);return X>=0?G.start(X):NaN}; qs=function(G,X){if(!G)return NaN;X=Zt(G,X);return X>=0?G.end(X):NaN}; wO=function(G){return G&&G.length?G.end(G.length-1):NaN}; hS=function(G){return wO(G)>0}; LF=function(G,X){G=qs(G,X);return G>=0?G-X:0}; kq=function(G,X,Q){for(var R=[],S=[],Z=0;ZQ||(R.push(Math.max(X,G.start(Z))-X),S.push(Math.min(Q,G.end(Z))-X));return RT(R,S)}; Yq=function(G,X,Q,R){g.ic.call(this);var S=this;this.b9=G;this.start=X;this.end=Q;this.isActive=R;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.nU={error:function(){!S.U_()&&S.isActive&&S.publish("error",S)}, updateend:function(){!S.U_()&&S.isActive&&S.publish("updateend",S)}}; this.b9.Ej(this.nU);this.ZB=this.isActive}; Ms=function(G,X,Q,R,S,Z){g.ic.call(this);var H=this;this.l6=G;this.n4=X;this.id=Q;this.containerType=R;this.ZC=S;this.oC=Z;this.SW=this.u1=this.ZJ=null;this.hU=!1;this.appendWindowStart=this.timestampOffset=0;this.SD=RT([],[]);this.lM=!1;this.tJ=[];this.Qe=jr?[]:void 0;this.handler=function(h){return H.publish(h.type,H)}; var w;if((w=this.l6)==null?0:w.addEventListener)this.l6.addEventListener("updateend",this.handler),this.l6.addEventListener("error",this.handler)}; mL=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; oT=function(G,X){this.xP=G;this.N=X===void 0?!1:X;this.W=!1}; u9=function(G,X,Q){Q=Q===void 0?!1:Q;g.I.call(this);this.mediaElement=G;this.kc=X;this.isView=Q;this.S=0;this.V=!1;this.C=!0;this.j=0;this.callback=null;this.T=!1;this.kc||(this.n4=this.mediaElement.V0());this.events=new g.KP(this);g.d(this,this.events);this.Y=new oT(this.kc?window.URL.createObjectURL(this.kc):this.n4.webkitMediaSourceURL,!0);G=this.kc||this.n4;KZ(this.events,G,["sourceopen","webkitsourceopen"],this.RY_);KZ(this.events,G,["sourceclose","webkitsourceclose"],this.Djc);this.J={updateend:this.XC}}; UQe=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; lgi=function(G,X){PH(G)?g.sy(function(){X(G)}):G.callback=X}; BAy=function(G,X,Q){if(sj){var R;Tv(G.mediaElement,{l:"mswssb",sr:(R=G.mediaElement.uB)==null?void 0:R.g2()},!1);X.Ej(G.J,G);Q.Ej(G.J,G)}G.N=X;G.W=Q;g.d(G,X);g.d(G,Q)}; KF=function(G){return!!G.N||!!G.W}; PH=function(G){try{return er(G)==="open"}catch(X){return!1}}; er=function(G){if(G.kc)return G.kc.readyState;switch(G.n4.webkitSourceState){case G.n4.SOURCE_OPEN:return"open";case G.n4.SOURCE_ENDED:return"ended";default:return"closed"}}; rO=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; FUZ=function(G){PH(G)&&(G.kc?G.kc.endOfStream():G.n4.webkitSourceEndOfStream(G.n4.EOS_NO_ERROR))}; CPC=function(G,X,Q,R){if(!G.N||!G.W)return null;var S=G.N.isView()?G.N.b9:G.N,Z=G.W.isView()?G.W.b9:G.W,H=new u9(G.mediaElement,G.kc,!0);H.Y=G.Y;BAy(H,new Yq(S,X,Q,R),new Yq(Z,X,Q,R));PH(G)||G.N.Kj(G.N.q9());return H}; tzV=function(G){var X;(X=G.N)==null||X.Wc();var Q;(Q=G.W)==null||Q.Wc();G.C=!1}; aT=function(){var G=this;this.nP=this.u7=TXU;this.promise=new g.Ey(function(X,Q){G.u7=X;G.nP=Q})}; Ej=function(){g.I.call(this);this.wD=!1;this.xP=null;this.J=this.S=!1;this.V=new g.hJ;this.uB=null;g.d(this,this.V)}; xq=function(G){G=G.Tz();return G.length<1?NaN:G.end(G.length-1)}; Vzw=function(G){!G.W&&UQe()&&(G.Y?G.Y.then(function(){return Vzw(G)}):G.d2()||(G.W=G.Hd()))}; IgG=function(G){G.W&&(G.W.dispose(),G.W=void 0)}; Tv=function(G,X,Q){var R;((R=G.uB)==null?0:R.n7())&&G.uB.Ni("rms",X,Q===void 0?!1:Q)}; dQl=function(G,X,Q){G.isPaused()||G.getCurrentTime()>X||Q>10||(G.play(),g.wp(function(){dQl(G,G.getCurrentTime(),Q+1)},500))}; WUl=function(G,X){G.xP&&G.xP.equals(X)||(G.xP&&G.xP.dispose(),G.xP=X)}; Oj=function(G){return LF(G.wL(),G.getCurrentTime())}; pVU=function(G,X){if(G.fu()===0||G.hasError())return!1;var Q=G.getCurrentTime()>0;return X>=0&&(G=G.Tz(),G.length||!Q)?HH(G,X):Q}; zv=function(G){G.d2()&&(G.uB&&G.uB.Xh("rs_s"),WI&&G.getCurrentTime()>0&&G.seekTo(0),G.jr(),G.load(),WUl(G,null));delete G.Y}; cH=function(G){switch(G.iE()){case 2:return"progressive.net.retryexhausted";case 3:return G=G.uT(),(G==null?0:G.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||yww&&(G==null?0:G.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.gO=function(G,X,Q){this.qG=X===void 0?null:X;this.seekSource=Q===void 0?null:Q;this.state=G||64}; Uj=function(G,X,Q){Q=Q===void 0?!1:Q;return fgl(G,X.getCurrentTime(),(0,g.TB)(),Oj(X),Q)}; l9=function(G,X,Q,R){if(!(X===G.state&&Q===G.qG&&R===G.seekSource||X!==void 0&&(X&128&&!Q||X&2&&X&16))){var S;if(S=X)S=X||G.state,S=!!(S&16||S&32);G=new g.gO(X,Q,S?R?R:G.seekSource:null)}return G}; BH=function(G,X,Q){return l9(G,G.state|X,null,Q===void 0?null:Q)}; FP=function(G,X){return l9(G,G.state&~X,null,null)}; CF=function(G,X,Q,R){return l9(G,(G.state|X)&~Q,null,R===void 0?null:R)}; g.N=function(G,X){return!!(G.state&X)}; g.tS=function(G,X){return X.state===G.state&&X.qG===G.qG}; Vp=function(G){return G.isPlaying()&&!g.N(G,16)&&!g.N(G,32)}; IT=function(G){return g.N(G,128)?-1:g.N(G,2)?0:g.N(G,2048)?3:g.N(G,64)?-1:g.N(G,1)&&!g.N(G,32)?3:g.N(G,8)?1:g.N(G,4)?2:-1}; WH=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u,r,x){g.I.call(this);var c=this;this.rB=G;this.slot=X;this.layout=Q;this.nO=R;this.y0=S;this.lB=Z;this.RU=H;this.xS=w;this.RW=h;this.CQ=L;this.position=Y;this.S=M;this.HM=m;this.E9=u;this.ea=r;this.context=x;this.E$=!0;this.C=!1;this.Bs="not_rendering";this.W=!1;this.Y=new Qi;G=Nj(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.O_=new Yy(Q.u6,this.nO,G,Q.layoutId);var z;G=((z=dO(this))==null?void 0:z.progressCommands)||[];this.V=new NVG(h, G,Q.layoutId,function(){return c.wx()}); this.N=new e7i({adCpn:this.layout.layoutId,w2:x.w2,wg:this.E9,oC:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; pF=function(G){return{layoutId:G.X3(),Op:G.E9,bL:G.lB.get(),J8:G.DJ()}}; yp=function(G,X){return X.layoutId!==G.layout.layoutId?(G.rB.jx(G.slot,X,new f$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+G.layout.layoutId+("and LayoutType: "+G.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; fF=function(G){G.Bs="rendering_start_requested";G.CQ(-1)}; dO=function(G){return Nj(G.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; DQU=function(G){qQ("Received layout exit signal when not in layout exit flow.",G.slot,G.layout)}; NAT=function(G){var X;return((X=Dt(G.lB.get(),2))==null?void 0:X.clientPlaybackNonce)||""}; Ns=function(G,X){switch(X){case "normal":G.i6("complete");break;case "skipped":G.i6("skip");break;case "abandoned":PK(G.O_,"impression")&&G.i6("abandon")}}; AS=function(G,X){G.C||(X=new g.wA(X.state,new g.gO),G.C=!0);return X}; nF=function(G,X){JF(X)?G.CQ(1):g.Lw(X,4)&&!g.Lw(X,2)&&G.gC();hw(X,4)<0&&!(hw(X,2)<0)&&G.rC()}; Awy=function(G){G.position===0&&(G.xS.get(),G=Nj(G.layout.clientMetadata,"metadata_type_ad_placement_config").kind,G={adBreakType:$q(G)},aa("ad_bl"),g.EF(G))}; b9=function(G,X){oQ(G.O_,X,!G.W)}; $Q7=function(G){var X;return(((X=dO(G))==null?void 0:X.progressCommands)||[]).findIndex(function(Q){return!!g.y(Q==null?void 0:Q.command,nA7)})!==-1}; vH=function(G,X){var Q=Nj(G.clientMetadata,"metadata_type_eligible_for_ssap");return Q===void 0?(qQ("Expected SSAP eligibility in PlayerBytes factory",G),!1):X.DJ(Q)}; JS=function(G,X){if(!Fd(X.get(),"html5_ssap_pass_transition_reason"))return 3;switch(G){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return qQ("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return qQ("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:G}),3;default:Yi(G,"unknown layoutExitReason")}}; bw0=function(G){qQ("getExitReason: unexpected reason",void 0,void 0,{reason:G})}; i9=function(G,X){if(Fd(X.get(),"html5_ssap_pass_transition_reason"))switch(G){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return bw0(G),"abandoned";case 3:case 1:return bw0(G),"error";default:Yi(G,"unexpected transition reason")}else switch(G){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return qQ("getExitReason: unexpected reason",void 0,void 0,{reason:G}),"error";default:Yi(G,"unexpected transition reason")}}; g.GZ=function(G,X,Q){OF(G,Q)||cf(G,X,Q);OF(G,"video_to_ad")||cf(G,X,"video_to_ad");OF(G,"ad_to_video")||cf(G,X,"ad_to_video");OF(G,"ad_to_ad")||cf(G,X,"ad_to_ad")}; XO=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u,r,x,c){WH.call(this,G,X,Q,R,S,Z,H,w,L,k,Y,M,m,u,r,x,c);var z=this;this.OY=h;this.m0=Y;this.gD=!0;this.kh=this.uc=0;this.Iy=Cs(function(){P57(pF(z));z.rB.X7(z.slot,z.layout)}); this.Jt=Cs(function(){sbX(pF(z));z.Bs!=="rendering_stop_requested"&&z.m0(z);z.layoutExitReason?z.rB.YS(z.slot,z.layout,z.layoutExitReason):DQU(z)}); this.timer=new g.lD(200);this.timer.listen("tick",function(){z.o6()}); g.d(this,this.timer)}; Rz=function(G){G.kh=Date.now();QI(G,G.uc);G.timer.start()}; vAZ=function(G){G.uc=G.wx();G.R_(G.uc/1E3,!0);QI(G,G.uc)}; QI=function(G,X){X={current:X/1E3,duration:G.wx()/1E3};G.OY.get().Rc("onAdPlaybackProgress",X)}; SN=function(G){XO.call(this,G.rB,G.slot,G.Dh,G.nO,G.y0,G.lB,G.RU,G.xS,G.OY,G.RW,G.CQ,G.m0,G.Oj,G.Cr,G.HM,G.E9,G.ea,G.context)}; Zd=function(G){XO.call(this,G.rB,G.slot,G.Dh,G.nO,G.y0,G.lB,G.RU,G.xS,G.OY,G.RW,G.CQ,G.m0,G.Oj,G.Cr,G.HM,G.E9,G.ea,G.context)}; Ha=function(){Zd.apply(this,arguments)}; Jwe=function(G){return vH(G.slot,G.HM.get())?new Ha(G):new SN(G)}; hA=function(G){WH.call(this,G.callback,G.slot,G.Dh,G.nO,G.y0,G.lB,G.RU,G.xS,G.RW,G.CQ,G.m0,G.Oj,G.Cr,G.HM,G.E9,G.ea,G.context);var X=this;this.adCpn="";this.yk=this.BE=0;this.Iy=Cs(function(){P57(pF(X));X.rB.X7(X.slot,X.layout)}); this.Jt=Cs(function(){sbX(pF(X));X.Bs!=="rendering_stop_requested"&&X.m0(X);X.layoutExitReason?X.rB.YS(X.slot,X.layout,X.layoutExitReason):DQU(X)}); this.wS=G.wS;this.Wn=G.Wn;this.yN=G.yN;this.OY=G.OY;this.qc=G.qc;this.m0=G.m0;if(!this.DJ()){Fd(this.HM.get(),"html5_disable_media_load_timeout")||(this.S9=new g.fU(function(){X.Xy("load_timeout",new f$("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); G=q0(this.HM.get());var Q=ww(this.HM.get());G&&Q&&(this.wv=new g.fU(function(){var R=Nj(X.layout.clientMetadata,"metadata_type_preload_player_vars");R&&X.Wn.get().U.preloadVideoByPlayerVars(R,2,300)}))}}; GCT=function(G,X){var Q=Nj(X.clientMetadata,"metadata_type_ad_video_id"),R=Nj(X.clientMetadata,"metadata_type_legacy_info_card_vast_extension");Q&&R&&G.qc.get().U.Z().IU.add(Q,{HH:R});(X=Nj(X.clientMetadata,"metadata_type_sodar_extension_data"))&&SLZ(G.wS.get(),X);iww(G.RU.get(),!1)}; Xfw=function(G){iww(G.RU.get(),!0);var X;((X=G.shrunkenPlayerBytesConfig)==null?0:X.shouldRequestShrunkenPlayerBytes)&&G.RU.get().ly(!1)}; Qa7=function(G){return new Lm(G)}; kW=function(){hA.apply(this,arguments)}; Lm=function(){kW.apply(this,arguments)}; Rdi=function(G){return Jwe(Object.assign({},G,{rB:G.callback,CQ:function(){}}))}; SFG=function(G){return new hA(Object.assign({},G,{CQ:function(X){G.OY.get().Rc("onAdIntroStateChange",X)}}))}; ZJe=function(G){function X(Q){G.OY.get().xe(Q)} return vH(G.slot,G.HM.get())?Qa7(Object.assign({},G,{CQ:X})):new hA(Object.assign({},G,{CQ:X}))}; YW=function(G){for(var X=G.Dh,Q=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],R=g.e(jQ()),S=R.next();!S.done;S=R.next())Q.push(S.value);if(tF(X,{fY:Q,OT:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Rdi(G);X=G.Dh;Q=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];R=g.e(jQ());for(S=R.next();!S.done;S=R.next())Q.push(S.value);if(tF(X,{fY:Q,OT:["LAYOUT_TYPE_MEDIA"]}))return Wc(G.Dh.clientMetadata,"metadata_type_ad_intro")?SFG(G):ZJe(G)}; qFe=function(G){var X=Nj(G.clientMetadata,"metadata_type_ad_placement_config").kind,Q=Nj(G.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:G.layoutId,adType:HJl(Q),adBreakType:$q(X)}}; $q=function(G){switch(G){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"}}; HJl=function(G){switch(G){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; wfT=function(G){try{return new jN(G.qR,G.slot,G.layout,G.xr,G.h1,G.lB,G.Nx,G.Wn,G.K7,G.RU,G.CT_,G)}catch(X){}}; jN=function(G,X,Q,R,S,Z,H,w,h,L,k,Y){g.I.call(this);this.qR=G;this.slot=X;this.layout=Q;this.xr=R;this.h1=S;this.lB=Z;this.Nx=H;this.Wn=w;this.K7=h;this.RU=L;this.params=Y;this.E$=!0;G=YW(k);if(!G)throw Error("Invalid params for sublayout");this.cn=G}; hdG=function(){this.N=1;this.W=new Qi}; M0=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m){g.I.call(this);this.callback=G;this.lB=X;this.Nx=Q;this.Wn=R;this.RU=S;this.zg=Z;this.xS=H;this.gB=w;this.slot=h;this.layout=L;this.xr=k;this.vK=Y;this.K7=M;this.HM=m;this.E$=!0;this.Oc=!1;this.wZ=[];this.sy=-1;this.rQ=!1;this.N8=new hdG}; L7G=function(G){var X;return(X=G.layout.XJ)!=null?X:Nj(G.layout.clientMetadata,"metadata_type_sub_layouts")}; mi=function(G){return{bL:G.lB.get(),Op:!1,J8:G.DJ()}}; kC7=function(G,X,Q){if(G.Hi()===G.wZ.length-1){var R,S;qQ("Unexpected skip requested during the last sublayout",(R=G.Lo())==null?void 0:R.Ga(),(S=G.Lo())==null?void 0:S.iB(),{requestingSlot:X,requestingLayout:Q})}}; YFy=function(G,X,Q){return Q.layoutId!==oz(G,X,Q)?(qQ("onSkipRequested for a PlayerBytes layout that is not currently active",G.Ga(),G.iB()),!1):!0}; jaG=function(G){G.Hi()===G.wZ.length-1&&qQ("Unexpected skip with target requested during the last sublayout")}; M2w=function(G,X,Q){return Q.renderingContent===void 0&&Q.layoutId!==oz(G,X,Q)?(qQ("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",G.Ga(),G.iB(),{requestingSlot:X,requestingLayout:Q}),!1):!0}; mkS=function(G,X,Q,R){var S=Nj(X.iB().clientMetadata,"metadata_type_ad_pod_skip_target");if(S&&S>0&&S0)){qQ("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",G.slot,G.layout,{indexToPlay:X,layoutId:G.layout.layoutId});break a}G.sy=X;X=G.Lo();if(G.Hi()>0&&!G.DJ()){var Q=G.xS.get();Q.W=!1;var R={};Q.N&&Q.videoId&&(R.cttAuthInfo={token:Q.N,videoId:Q.videoId});x5("ad_to_ad",R)}Q=g.y(X.iB().renderingContent,$y);if(Q==null?0: Q.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var S;Q=!((S=G.zg.get().rSm.get(Q.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&S)}else Q=!1;Q?u0(G,G.Hi()+1):G.C8(X)}}; TZ=function(G){M0.call(this,G.qR,G.lB,G.Nx,G.Wn,G.RU,G.zg,G.xS,G.gB,G.slot,G.layout,G.xr,G.vK,G.K7,G.HM)}; Pjy=function(G){(G=G.Lo())&&G.ZY()}; Km=function(G){M0.call(this,G.qR,G.lB,G.Nx,G.Wn,G.RU,G.zg,G.xS,G.gB,G.slot,G.layout,G.xr,G.vK,G.K7,G.HM);this.aC=void 0}; saG=function(G,X){G.kJ()&&!S0(G.N8.W)||G.callback.YS(G.slot,G.layout,X)}; eN=function(G){return Fd(G.HM.get(),"html5_ssap_pass_transition_reason")}; TzX=function(G,X,Q){X.nj().currentState<2&&(Q=i9(Q,G.HM),X.LY(X.iB(),Q));Q=X.nj().N;G.mq(G.slot,X.iB(),Q)}; K7e=function(G,X){if(G.N8.W.currentState<2){var Q=i9(X,G.HM);Q==="error"?G.callback.jx(G.slot,G.layout,new f$("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:X},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):sd(G.vK,G.layout,Q)}}; rw=function(G,X,Q){X.nj().currentState>=2||(X.LY(X.iB(),Q),S0(X.nj())&&(m9(G.gB,G.slot,X.iB(),Q),G.aC=void 0))}; edw=function(G,X){G.N8.N===2&&X!==G.WO()&&qQ("onClipEntered: unknown cpn",G.slot,G.layout,{cpn:X})}; rdX=function(G,X){var Q=G.Lo();if(Q){var R=Q.iB().layoutId,S=G.Hi()+1;G.kJ()?rw(G,Q,X):Q.LY(Q.iB(),X);S>=0&&SS&&H.GL(k,S-R);return k}; lOU=function(G,X,Q){var R=Nj(X.clientMetadata,"metadata_type_sodar_extension_data");if(R)try{SLZ(Q,R)}catch(S){qQ("Unexpected error when loading Sodar",G,X,{error:S})}}; BzG=function(G,X,Q,R,S,Z,H){gw(G,X,new g.wA(Q,new g.gO),R,S,H,!1,Z)}; gw=function(G,X,Q,R,S,Z,H,w){H=H===void 0?!0:H;JF(Q)&&iS(S,0,null)&&(!PK(G,"impression")&&w&&w(),G.i6("impression"));PK(G,"impression")&&(g.Lw(Q,4)&&!g.Lw(Q,2)&&G.XA("pause"),hw(Q,4)<0&&!(hw(Q,2)<0)&&G.XA("resume"),g.Lw(Q,16)&&S>=.5&&G.XA("seek"),H&&g.Lw(Q,2)&&Ud(G,Q.state,X,R,S,Z))}; Ud=function(G,X,Q,R,S,Z,H,w,h){PK(G,"impression")&&(Z?(Z=S-R,Z=Z>=-1&&Z<=2):Z=Math.abs(R-S)<=1,l0(G,X,Z?R:S,Q,R,H,w&&Z),Z&&!h&&G.i6("complete"))}; l0=function(G,X,Q,R,S,Z,H){uS(G,Q*1E3,H);S<=0||Q<=0||(X==null?0:g.N(X,16))||(X==null?0:g.N(X,32))||(iS(Q,S*.25,R)&&(Z&&!PK(G,"first_quartile")&&Z("first"),G.i6("first_quartile")),iS(Q,S*.5,R)&&(Z&&!PK(G,"midpoint")&&Z("second"),G.i6("midpoint")),iS(Q,S*.75,R)&&(Z&&!PK(G,"third_quartile")&&Z("third"),G.i6("third_quartile")))}; F7e=function(G,X){PK(G,"impression")&&G.XA(X?"fullscreen":"end_fullscreen")}; CjT=function(G){PK(G,"impression")&&G.XA("clickthrough")}; t2S=function(G){G.XA("active_view_measurable")}; V27=function(G){PK(G,"impression")&&!PK(G,"seek")&&G.XA("active_view_fully_viewable_audible_half_duration")}; IOC=function(G){PK(G,"impression")&&!PK(G,"seek")&&G.XA("active_view_viewable")}; dkV=function(G){PK(G,"impression")&&!PK(G,"seek")&&G.XA("audio_audible")}; W7y=function(G){PK(G,"impression")&&!PK(G,"seek")&&G.XA("audio_measurable")}; pf0=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M){this.callback=G;this.slot=X;this.layout=Q;this.Nx=R;this.O_=S;this.RU=Z;this.kB=H;this.y0=w;this.wS=h;this.HM=L;this.nO=k;this.lB=Y;this.yN=M;this.gD=!0;this.sY=this.Bs=null;this.adCpn=void 0;this.N=!1}; ydi=function(G,X,Q){var R;ca(G.nO.get(),"ads_qua","cpn."+Nj(G.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((R=Dt(G.lB.get(),2))==null?void 0:R.clientPlaybackNonce)+";qt."+X+";clr."+Q)}; fOT=function(G,X){var Q,R;ca(G.nO.get(),"ads_imp","cpn."+Nj(G.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Q=Dt(G.lB.get(),2))==null?void 0:Q.clientPlaybackNonce)+";clr."+X+";skp."+!!g.y((R=Nj(G.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:R.skipOrPreviewRenderer,Ba))}; FO=function(G){return{enterMs:Nj(G.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Nj(G.clientMetadata,"metadata_type_layout_exit_ms")}}; Cm=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m){Ed.call(this,G,X,Q,R,S,H,w,h,L,Y);this.kB=Z;this.wS=k;this.y0=M;this.HM=m;this.sY=this.Bs=null}; Dkl=function(G,X){var Q;ca(G.nO.get(),"ads_imp","acpn."+((Q=Dt(G.lB.get(),2))==null?void 0:Q.clientPlaybackNonce)+";clr."+X)}; NzX=function(G,X,Q){var R;ca(G.nO.get(),"ads_qua","cpn."+Nj(G.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((R=Dt(G.lB.get(),2))==null?void 0:R.clientPlaybackNonce)+";qt."+X+";clr."+Q)}; tA=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u,r,x,c,z,B,V,p){this.K7=G;this.xr=X;this.vK=Q;this.lB=R;this.Nx=S;this.RU=Z;this.zg=H;this.nO=w;this.kB=h;this.GF=L;this.y0=k;this.wS=Y;this.Wn=M;this.yN=m;this.xS=u;this.OY=r;this.RW=x;this.qc=c;this.HM=z;this.N=B;this.context=V;this.ea=p}; VI=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u,r,x,c,z){this.K7=G;this.xr=X;this.vK=Q;this.nO=R;this.y0=S;this.wS=Z;this.Wn=H;this.lB=w;this.RU=h;this.zg=L;this.yN=k;this.xS=Y;this.OY=M;this.RW=m;this.qc=u;this.HM=r;this.Nx=x;this.context=c;this.ea=z}; Ady=function(G,X,Q,R){Jf.call(this,"survey-interstitial",G,X,Q,R)}; Iz=function(G,X,Q,R,S){SQ.call(this,Q,G,X,R);this.nO=S;G=Nj(X.clientMetadata,"metadata_type_ad_placement_config");this.O_=new Yy(X.u6,S,G,X.layoutId)}; dw=function(G){return Math.round(G.width)+"x"+Math.round(G.height)}; pm=function(G,X,Q){Q=Q===void 0?Wa:Q;Q.widthG.width*G.height*.2)return{Vz:3,Ek:501,errorMessage:"ad("+dw(Q)+") to container("+dw(G)+") ratio exceeds limit."};if(Q.height>G.height/3-X)return{Vz:3,Ek:501,errorMessage:"ad("+dw(Q)+") covers container("+dw(G)+") center."}}; n5Z=function(G,X){var Q=Nj(G.clientMetadata,"metadata_type_ad_placement_config");return new Yy(G.u6,X,Q,G.layoutId)}; yI=function(G){return Nj(G.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; fm=function(G,X,Q,R){Jf.call(this,"invideo-overlay",G,X,Q,R);this.interactionLoggingClientData=R}; Dd=function(G,X,Q,R,S,Z,H,w,h,L,k,Y){SQ.call(this,Z,G,X,S);this.nO=Q;this.V=H;this.RU=w;this.RW=h;this.HM=L;this.S=k;this.C=Y;this.O_=n5Z(X,Q)}; $ki=function(){var G=["metadata_type_invideo_overlay_ad_renderer"];jQ().forEach(function(X){G.push(X)}); return{fY:G,OT:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; N0=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M){SQ.call(this,Z,G,X,S);this.nO=Q;this.V=H;this.T=w;this.RU=h;this.RW=L;this.HM=k;this.S=Y;this.C=M;this.O_=n5Z(X,Q)}; bJZ=function(){for(var G=["metadata_type_invideo_overlay_ad_renderer"],X=g.e(jQ()),Q=X.next();!Q.done;Q=X.next())G.push(Q.value);return{fY:G,OT:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; AA=function(G){this.RU=G;this.N=!1}; v5e=function(G,X,Q){Jf.call(this,"survey",G,{},X,Q)}; nm=function(G,X,Q,R,S,Z,H){SQ.call(this,Q,G,X,R);this.V=S;this.RU=Z;this.HM=H}; Jdi=function(G,X,Q,R,S,Z,H,w,h,L){this.rh=G;this.RU=X;this.nO=Q;this.V=R;this.y0=S;this.W=Z;this.Y=H;this.RW=w;this.HM=h;this.N=L}; iJ0=function(G,X,Q,R,S,Z,H,w,h,L){this.rh=G;this.RU=X;this.nO=Q;this.V=R;this.y0=S;this.W=Z;this.Y=H;this.RW=w;this.HM=h;this.N=L}; $W=function(G,X,Q,R,S,Z,H,w,h,L){yM.call(this,G,X,Q,R,S,Z,H,h);this.y7=w;this.lB=L}; GVe=function(){var G=h7T();G.fY.push("metadata_type_ad_info_ad_metadata");return G}; X2X=function(G,X,Q,R,S,Z,H){this.rh=G;this.RU=X;this.nO=Q;this.W=R;this.y7=S;this.N=Z;this.lB=H}; Q87=function(G,X,Q,R,S,Z,H,w){this.rh=G;this.RU=X;this.nO=Q;this.W=R;this.y7=S;this.N=Z;this.HM=H;this.lB=w}; b0=function(G,X){this.slotId=X;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=G(this.triggerType)}; va=function(G,X){this.adPodIndex=G;this.N=X.length;this.adBreakLengthSeconds=X.reduce(function(R,S){return R+S},0); var Q=0;for(G+=1;G0}; pN=function(G){return!!(G.qZ&&G.slot&&G.layout)}; yh=function(G){var X,Q=(X=G.config)==null?void 0:X.adPlacementConfig;G=G.renderer;return!(!Q||Q.kind==null||!G)}; u5V=function(G){if(!Fl(G.adLayoutMetadata))return!1;G=G.renderingContent;return g.y(G,$y)||g.y(G,bS)||g.y(G,oJy)||g.y(G,AF)||g.y(G,n9)?!0:!1}; fN=function(G){return G.playerVars!==void 0&&G.pings!==void 0&&G.externalVideoId!==void 0}; vE=function(G){if(!Fl(G.adLayoutMetadata))return!1;G=G.renderingContent;var X=g.y(G,DQ);return X?Nc(X):(X=g.y(G,Ap))?fN(X):(X=g.y(G,nN))?X.playerVars!==void 0:(X=g.y(G,$y))?X.durationMilliseconds!==void 0:g.y(G,$s)||g.y(G,b1)?!0:!1}; Nc=function(G){G=(G.sequentialLayouts||[]).map(function(X){return g.y(X,Jp)}); return G.length>0&&G.every(vE)}; Gl=function(G){return Fl(G.adLayoutMetadata)?(G=g.y(G.renderingContent,i1))&&G.pings?!0:!1:!1}; rKX=function(G){if(!Fl(G.adLayoutMetadata))return!1;if(g.y(G.renderingContent,PJU)||g.y(G.renderingContent,s8X))return!0;var X=g.y(G.renderingContent,X2);return g.y(G.renderingContent,QO)||g.y(X==null?void 0:X.sidePanel,T2X)||g.y(X==null?void 0:X.sidePanel,KTe)||g.y(X==null?void 0:X.sidePanel,ezC)?!0:!1}; zzG=function(G){var X;(X=!G)||(X=G.adSlotMetadata,X=!((X==null?void 0:X.slotId)!==void 0&&(X==null?void 0:X.slotType)!==void 0));if(X||!(asl(G)||G.slotEntryTrigger&&G.slotFulfillmentTriggers&&G.slotExpirationTriggers))return!1;var Q;G=(Q=G.fulfillmentContent)==null?void 0:Q.fulfilledLayout;return(Q=g.y(G,Jp))?vE(Q):(Q=g.y(G,Rk))?rKX(Q):(Q=g.y(G,EJU))?u5V(Q):(Q=g.y(G,x2C))?Mxw(Q):(Q=g.y(G,Or7))?Fl(Q.adLayoutMetadata)?g.y(Q.renderingContent,CN)?!0:!1:!1:(G=g.y(G,Sc))?Gl(G):!1}; asl=function(G){var X;G=g.y((X=G.fulfillmentContent)==null?void 0:X.fulfilledLayout,Rk);var Q;return G&&((Q=G.adLayoutMetadata)==null?void 0:Q.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&G.layoutExitNormalTriggers===void 0}; cKU=function(G){var X;return(G==null?void 0:(X=G.adSlotMetadata)==null?void 0:X.slotType)==="SLOT_TYPE_IN_PLAYER"}; U2e=function(G,X){var Q;if((Q=G.questions)==null||!Q.length||!G.playbackCommands||(X===void 0||!X)&&G.questions.length!==1)return!1;G=g.e(G.questions);for(X=G.next();!X.done;X=G.next()){X=X.value;var R=Q=void 0,S=((Q=g.y(X,ZL))==null?void 0:Q.surveyAdQuestionCommon)||((R=g.y(X,H9))==null?void 0:R.surveyAdQuestionCommon);if(!gJG(S))return!1}return!0}; lsV=function(G){G=((G==null?void 0:G.playerOverlay)||{}).instreamSurveyAdRenderer;var X;if(G)if(G.playbackCommands&&G.questions&&G.questions.length===1){var Q,R=((X=g.y(G.questions[0],ZL))==null?void 0:X.surveyAdQuestionCommon)||((Q=g.y(G.questions[0],H9))==null?void 0:Q.surveyAdQuestionCommon);X=gJG(R)}else X=!1;else X=!1;return X}; gJG=function(G){if(!G)return!1;G=g.y(G.instreamAdPlayerOverlay,qh);var X=g.y(G==null?void 0:G.skipOrPreviewRenderer,Ba),Q=g.y(G==null?void 0:G.adInfoRenderer,w_);return(g.y(G==null?void 0:G.skipOrPreviewRenderer,ho)||X)&&Q?!0:!1}; B2Z=function(G){return G.linearAds!=null&&Fl(G.adLayoutMetadata)}; FTV=function(G){return G.linearAd!=null&&G.adVideoStart!=null}; CJG=function(G){if(isNaN(Number(G.timeoutSeconds))||!G.text||!G.ctaButton||!g.y(G.ctaButton,g.Lv)||!G.brandImage)return!1;var X;return G.backgroundImage&&g.y(G.backgroundImage,kp)&&((X=g.y(G.backgroundImage,kp))==null?0:X.landscape)?!0:!1}; Yp=function(G,X,Q,R,S,Z,H,w){g.I.call(this);this.HM=G;this.N=X;this.W=R;this.lB=S;this.V=Z;this.Y=H;this.Wn=w}; IsX=function(G,X,Q){var R,S=((R=Q.adSlots)!=null?R:[]).map(function(w){return g.y(w,jc)}); if(Q.mU)if(Nj(X.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))G5(G.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},X.slotId); else{if(G.HM.get().U.Z().G("h5_check_forecasting_renderer_for_throttled_midroll")){var Z=Q.e_.filter(function(w){var h;return((h=w.renderer)==null?void 0:h.clientForecastingAdRenderer)!=null}); Z.length!==0?txZ(G.Y,Z,S,X.slotId,Q.ssdaiAdsConfig):G5(G.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},X.slotId)}else G5(G.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},X.slotId); Vxi(G.V,X)}else{var H;R={HX:Math.round(((Z=Nj(X.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:Z.HX)||0),zI:(H=Nj(X.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:H.zI};Z=Nj(X.clientMetadata,"metadata_type_cue_point");txZ(G.Y,Q.e_,S,X.slotId,Q.ssdaiAdsConfig,R,Z)}}; p2Z=function(G,X,Q,R,S,Z,H,w){var h=Dt(G.lB.get(),1);if(d2S(G.HM.get())){var L=Mh(G.W.get(),Q,R,S,h.clientPlaybackNonce,h.Ob,h.daiEnabled,h,Z,H);WTS(G,L);G5(G.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return L},X)}else G5(G.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Mh(G.W.get(),Q,R,S,h.clientPlaybackNonce,h.Ob,h.daiEnabled,h,Z,H,w)},X)}; WTS=function(G,X){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next()){var R=Q.value;if(R.slotType==="SLOT_TYPE_PLAYER_BYTES"&&R.fulfilledLayout)if(Q=void 0,R.fulfilledLayout.renderingContent)Q=Nj(R.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(R.fulfilledLayout.XJ){R=g.e(R.fulfilledLayout.XJ);for(var S=R.next();!S.done&&(S=S.value,!S.renderingContent||!(Q=Nj(S.clientMetadata,"metadata_type_player_vars")));S=R.next());}}else Q=void 0;if(Q){G.Wn.get().U.preloadVideoByPlayerVars(Q, 2,300);break}}}; fsC=function(G,X,Q,R,S,Z,H){X=yK0(X,Z,Number(R.prefetchMilliseconds)||0,H);G=X instanceof n?X:mS(G,R,S,X,Q);return G instanceof n?G:[G]}; D2l=function(G,X,Q,R,S){var Z=XT(G.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");R=[new rG({getAdBreakUrl:R.getAdBreakUrl,HX:0,zI:0}),new Vl(!0)];G=X.pauseDurationMs?X.lactThresholdMs?{slotId:Z,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new cE(G.N,Z),slotFulfillmentTriggers:[new S9i(G.N)],slotExpirationTriggers:[new Mc(G.N,S),new sW(G.N,Z)],JT:"core",clientMetadata:new D_(R),adSlotLoggingData:Q}:new n("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new n("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return G instanceof n?G:[G]}; N2w=function(G){var X,Q;return((X=G.renderer)==null?void 0:(Q=X.adBreakServiceRenderer)==null?void 0:Q.getAdBreakUrl)!==void 0}; ok=function(G,X,Q){if(G.beforeContentVideoIdStartedTrigger)G=G.beforeContentVideoIdStartedTrigger?new JA(yl,X,G.id):new n("Not able to create BeforeContentVideoIdStartedTrigger");else{if(G.layoutIdExitedTrigger){var R;X=(R=G.layoutIdExitedTrigger)!=null&&R.triggeringLayoutId?new Ss(yl,G.layoutIdExitedTrigger.triggeringLayoutId,G.id):new n("Not able to create LayoutIdExitedTrigger")}else{if(G.layoutExitedForReasonTrigger){var S,Z;((S=G.layoutExitedForReasonTrigger)==null?0:S.triggeringLayoutId)&&((Z= G.layoutExitedForReasonTrigger)==null?0:Z.layoutExitReason)?(X=Zrw(G.layoutExitedForReasonTrigger.layoutExitReason),G=X instanceof n?X:new Rw(yl,G.layoutExitedForReasonTrigger.triggeringLayoutId,[X],G.id)):G=new n("Not able to create LayoutIdExitedForReasonTrigger")}else{if(G.onLayoutSelfExitRequestedTrigger){var H;X=(H=G.onLayoutSelfExitRequestedTrigger)!=null&&H.triggeringLayoutId?new js(yl,G.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,G.id):new n("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(G.onNewPlaybackAfterContentVideoIdTrigger)G= G.onNewPlaybackAfterContentVideoIdTrigger?new Mc(yl,X,G.id):new n("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(G.skipRequestedTrigger){var w;X=(w=G.skipRequestedTrigger)!=null&&w.triggeringLayoutId?new u1(yl,G.skipRequestedTrigger.triggeringLayoutId,G.id):new n("Not able to create SkipRequestedTrigger")}else if(G.slotIdEnteredTrigger){var h;X=(h=G.slotIdEnteredTrigger)!=null&&h.triggeringSlotId?new PE(yl,G.slotIdEnteredTrigger.triggeringSlotId,G.id):new n("Not able to create SlotIdEnteredTrigger")}else if(G.slotIdExitedTrigger){var L; X=(L=G.slotIdExitedTrigger)!=null&&L.triggeringSlotId?new sW(yl,G.slotIdExitedTrigger.triggeringSlotId,G.id):new n("Not able to create SkipRequestedTrigger")}else if(G.surveySubmittedTrigger){var k;X=(k=G.surveySubmittedTrigger)!=null&&k.triggeringLayoutId?new UW(yl,G.surveySubmittedTrigger.triggeringLayoutId,G.id):new n("Not able to create SurveySubmittedTrigger")}else{if(G.mediaResumedTrigger)G=G.mediaResumedTrigger&&G.id?new HrZ(G.id):new n("Not able to create MediaResumedTrigger");else{if(G.closeRequestedTrigger){var Y; X=(Y=G.closeRequestedTrigger)!=null&&Y.triggeringLayoutId?new i0(yl,G.closeRequestedTrigger.triggeringLayoutId,G.id):new n("Not able to create CloseRequestedTrigger")}else if(G.slotIdScheduledTrigger){var M;X=(M=G.slotIdScheduledTrigger)!=null&&M.triggeringSlotId?new cE(yl,G.slotIdScheduledTrigger.triggeringSlotId,G.id):new n("Not able to create SlotIdScheduledTrigger")}else{if(G.mediaTimeRangeTrigger){var m;R=Number((m=G.mediaTimeRangeTrigger)==null?void 0:m.offsetStartMilliseconds);var u;H=Number((u= G.mediaTimeRangeTrigger)==null?void 0:u.offsetEndMilliseconds);isFinite(R)&&isFinite(H)?(u=H,u===-1&&(u=Q),Q=R>u?new n("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:R,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===Q&&R-500<=u):new uI(R,u),G=Q instanceof n?Q:new hp(yl,X,Q,!1,G.id)):G=new n("Not able to create MediaTimeRangeTrigger")}else if(G.contentVideoIdEndedTrigger)G=G.contentVideoIdEndedTrigger?new G8(yl,X,!1,G.id):new n("Not able to create ContentVideoIdEndedTrigger"); else{if(G.layoutIdEnteredTrigger){var r;X=(r=G.layoutIdEnteredTrigger)!=null&&r.triggeringLayoutId?new Qh(yl,G.layoutIdEnteredTrigger.triggeringLayoutId,G.id):new n("Not able to create LayoutIdEnteredTrigger")}else if(G.timeRelativeToLayoutEnterTrigger){var x;X=(x=G.timeRelativeToLayoutEnterTrigger)!=null&&x.triggeringLayoutId?new l1(yl,Number(G.timeRelativeToLayoutEnterTrigger.durationMs),G.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,G.id):new n("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(G.onDifferentLayoutIdEnteredTrigger){var c; X=(c=G.onDifferentLayoutIdEnteredTrigger)!=null&&c.triggeringLayoutId&&G.onDifferentLayoutIdEnteredTrigger.slotType&&G.onDifferentLayoutIdEnteredTrigger.layoutType?new ks(yl,G.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,G.onDifferentLayoutIdEnteredTrigger.slotType,G.onDifferentLayoutIdEnteredTrigger.layoutType,G.id):new n("Not able to create CloseRequestedTrigger")}else{if(G.liveStreamBreakStartedTrigger)G=G.liveStreamBreakStartedTrigger&&G.id?new wk(yl,G.id):new n("Not able to create LiveStreamBreakStartedTrigger"); else if(G.liveStreamBreakEndedTrigger)G=G.liveStreamBreakEndedTrigger&&G.id?new ZQ(yl,G.id):new n("Not able to create LiveStreamBreakEndedTrigger");else{if(G.liveStreamBreakScheduledDurationMatchedTrigger){var z;X=(z=G.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&z.breakDurationMs?new HE(Number(G.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,G.id):new n("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(G.liveStreamBreakScheduledDurationNotMatchedTrigger){var B; X=(B=G.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&B.breakDurationMs?new qc(Number(G.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,G.id):new n("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(G.newSlotScheduledWithBreakDurationTrigger){var V;X=(V=G.newSlotScheduledWithBreakDurationTrigger)!=null&&V.breakDurationMs?new LN(Number(G.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,G.id):new n("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else X= G.prefetchCacheExpiredTrigger?new ow(yl,G.id):new n("Not able to convert an AdsControlflowTrigger.");G=X}X=G}G=X}X=G}G=X}X=G}G=X}X=G}G=X}X=G}G=X}return G}; ue=function(G,X){X.N>=2&&(G.slot_pos=X.adPodIndex);G.autoplay="1"}; nJG=function(G,X,Q,R,S,Z,H,w){return X===null?new n("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:X,ActionCompanionAdRenderer:R}):[AKX(G,X,H,Z,function(h){var L=h.slotId;h=w(h);var k=R.adLayoutLoggingData,Y=new D_([new aK(R),new tt(S)]);L=C6(Q.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",L);var M={layoutId:L,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",JT:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",u6:new Map, layoutExitNormalTriggers:[new Mc(Q.N,H)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:Y,UM:h(M),adLayoutLoggingData:k}})]}; $2G=function(G,X,Q,R,S,Z,H,w){return X===null?new n("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:X,TopBannerImageTextIconButtonedLayoutViewModel:R}):[AKX(G,X,H,Z,function(h){var L=h.slotId;h=w(h);var k=R.adLayoutLoggingData,Y=new D_([new Ef(R),new tt(S)]);L=C6(Q.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",L);var M={layoutId:L,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",JT:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", u6:new Map,layoutExitNormalTriggers:[new Mc(Q.N,H)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:Y,UM:h(M),adLayoutLoggingData:k}})]}; iry=function(G,X,Q,R,S,Z){if(!Z)for(X=g.e(X),Z=X.next();!Z.done;Z=X.next())Z=Z.value,P9(G,Z.renderer,Z.config.adPlacementConfig.kind);G=Array.from(G.values()).filter(function(k){return brU(k)}); X=[];Z=g.e(G);for(var H=Z.next(),w={};!H.done;w={j_:void 0},H=Z.next()){w.j_=H.value;H=g.e(w.j_.Wp);for(var h=H.next(),L={};!h.done;L={WD:void 0},h=H.next())L.WD=h.value,h=function(k,Y){return function(M){return k.WD.tp(M,Y.j_.instreamVideoAdRenderer.elementId,k.WD.yq)}}(L,w),L.WD.isContentVideoCompanion?X.push(vJ0(Q,R,S,w.j_.instreamVideoAdRenderer.elementId,L.WD.associatedCompositePlayerBytesLayoutId,L.WD.adSlotLoggingData,h)):G.length>1?X.push(JKZ(Q,R,S,w.j_.instreamVideoAdRenderer.elementId,L.WD.adSlotLoggingData, function(k,Y){return function(M){return k.WD.tp(M,Y.j_.instreamVideoAdRenderer.elementId,k.WD.yq,k.WD.associatedCompositePlayerBytesLayoutId)}}(L,w))):X.push(JKZ(Q,R,S,w.j_.instreamVideoAdRenderer.elementId,L.WD.adSlotLoggingData,h))}return X}; P9=function(G,X,Q){if(X=GjG(X)){X=g.e(X);for(var R=X.next();!R.done;R=X.next())if((R=R.value)&&R.externalVideoId){var S=sH(G,R.externalVideoId);S.instreamVideoAdRenderer||(S.instreamVideoAdRenderer=R,S.Tl=Q)}else qQ("InstreamVideoAdRenderer without externalVideoId")}}; GjG=function(G){var X=[],Q=G.sandwichedLinearAdRenderer&&G.sandwichedLinearAdRenderer.linearAd&&g.y(G.sandwichedLinearAdRenderer.linearAd,Ap);if(Q)return X.push(Q),X;if(G.instreamVideoAdRenderer)return X.push(G.instreamVideoAdRenderer),X;if(G.linearAdSequenceRenderer&&G.linearAdSequenceRenderer.linearAds){G=g.e(G.linearAdSequenceRenderer.linearAds);for(Q=G.next();!Q.done;Q=G.next())Q=Q.value,g.y(Q,Ap)&&X.push(g.y(Q,Ap));return X}return null}; brU=function(G){if(G.instreamVideoAdRenderer===void 0)return qQ("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var X=g.e(G.Wp),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;if(Q.tp===void 0)return!1;if(Q.yq===void 0)return qQ("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(G.Tl===void 0||Q.wA===void 0||G.Tl!==Q.wA&&Q.wA!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(G.instreamVideoAdRenderer.elementId===void 0)return qQ("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:G.Tl,"matching APSR kind":Q.wA}),!1}return!0}; sH=function(G,X){G.has(X)||G.set(X,{instreamVideoAdRenderer:void 0,Tl:void 0,adVideoId:X,Wp:[]});return G.get(X)}; Tl=function(G,X,Q,R,S,Z,H,w,h){S?sH(G,S).Wp.push({mh_:X,wA:Q,isContentVideoCompanion:R,yq:H,associatedCompositePlayerBytesLayoutId:Z,adSlotLoggingData:w,tp:h}):qQ("Companion AdPlacementSupportedRenderer without adVideoId")}; Kv=function(G){var X=0;G=g.e(G.questions);for(var Q=G.next();!Q.done;Q=G.next())if(Q=Q.value,Q=g.y(Q,ZL)||g.y(Q,H9)){var R=void 0;X+=((R=Q.surveyAdQuestionCommon)==null?void 0:R.durationMilliseconds)||0}return X}; ec=function(G){var X,Q,R,S,Z=((Q=g.y((X=G.questions)==null?void 0:X[0],ZL))==null?void 0:Q.surveyAdQuestionCommon)||((S=g.y((R=G.questions)==null?void 0:R[0],H9))==null?void 0:S.surveyAdQuestionCommon),H;X=[].concat(g.o0(((H=G.playbackCommands)==null?void 0:H.instreamAdCompleteCommands)||[]),g.o0((Z==null?void 0:Z.timeoutCommands)||[]));var w,h,L,k,Y,M,m,u,r,x,c,z,B,V,p,b,A,wX,qe,hG;return{impressionCommands:(w=G.playbackCommands)==null?void 0:w.impressionCommands,errorCommands:(h=G.playbackCommands)== null?void 0:h.errorCommands,muteCommands:(L=G.playbackCommands)==null?void 0:L.muteCommands,unmuteCommands:(k=G.playbackCommands)==null?void 0:k.unmuteCommands,pauseCommands:(Y=G.playbackCommands)==null?void 0:Y.pauseCommands,rewindCommands:(M=G.playbackCommands)==null?void 0:M.rewindCommands,resumeCommands:(m=G.playbackCommands)==null?void 0:m.resumeCommands,skipCommands:(u=G.playbackCommands)==null?void 0:u.skipCommands,progressCommands:(r=G.playbackCommands)==null?void 0:r.progressCommands,NyC:(x= G.playbackCommands)==null?void 0:x.clickthroughCommands,fullscreenCommands:(c=G.playbackCommands)==null?void 0:c.fullscreenCommands,activeViewViewableCommands:(z=G.playbackCommands)==null?void 0:z.activeViewViewableCommands,activeViewMeasurableCommands:(B=G.playbackCommands)==null?void 0:B.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(V=G.playbackCommands)==null?void 0:V.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(p=G.playbackCommands)== null?void 0:(b=p.activeViewTracking)==null?void 0:b.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(A=G.playbackCommands)==null?void 0:(wX=A.activeViewTracking)==null?void 0:wX.activeViewAudioMeasurableCommands,endFullscreenCommands:(qe=G.playbackCommands)==null?void 0:qe.endFullscreenCommands,abandonCommands:(hG=G.playbackCommands)==null?void 0:hG.abandonCommands,completeCommands:X}}; QK7=function(G,X,Q,R,S,Z,H){return function(w,h){return XSS(G,h.slotId,w,Z,function(L,k){var Y=h.layoutId;L=H(L);return r_(X,Y,k,S,L,"LAYOUT_TYPE_SURVEY",[new im(Q),R],Q.adLayoutLoggingData)})}}; Z1Z=function(G,X,Q,R,S,Z,H){if(!Raw(G))return new n("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:G});var w=G.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[SfZ(Z,X,Q,R,function(h){var L=h.slotId;h=H(h);L=C6(S.W.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",L);var k={layoutId:L,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",JT:"core"},Y=new Ss(S.N,R);return{layoutId:L,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",u6:new Map,layoutExitNormalTriggers:[Y], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:new D_([new GA(w)]),UM:h(k)}})]}; Raw=function(G){G=g.y(G==null?void 0:G.additionalPlayerOverlay,H10);if(!G)return!1;var X=G.slidingMessages;return G.title&&X&&X.length!==0?!0:!1}; wSy=function(G,X,Q,R,S){var Z;if((Z=G.playerOverlay)==null||!Z.instreamSurveyAdRenderer)return function(){return[]}; if(!lsV(G))return function(){return new n("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:G})}; var H=G.playerOverlay.instreamSurveyAdRenderer,w=Kv(H);return w<=0?function(){return new n("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:H})}:function(h,L){var k=qfw(h,Q,R,function(Y){var M=Y.slotId; Y=L(Y);var m=ec(H);M=C6(S.W.get(),"LAYOUT_TYPE_SURVEY",M);var u={layoutId:M,layoutType:"LAYOUT_TYPE_SURVEY",JT:"core"},r=new Ss(S.N,R),x=new u1(S.N,M),c=new UW(S.N,M),z=new LTi(S.N);return{layoutId:M,layoutType:"LAYOUT_TYPE_SURVEY",u6:new Map,layoutExitNormalTriggers:[r,z],layoutExitSkipTriggers:[x],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[c],vn:[],JT:"core",clientMetadata:new D_([new Jt(H),new tt(X),new xv(w/1E3),new gG(m)]),UM:Y(u),adLayoutLoggingData:H.adLayoutLoggingData}}); h=Z1Z(G,Q,k.slotId,R,S,h,L);return h instanceof n?h:[k].concat(g.o0(h))}}; mGl=function(G,X,Q,R,S,Z,H){H=H===void 0?!1:H;var w=[];try{var h=[];if(Q.renderer.linearAdSequenceRenderer)var L=function(r){r=haC(r.slotId,Q,X,S(r),R,Z,H);h=r.kgT;return r.z_}; else if(Q.renderer.instreamVideoAdRenderer)L=function(r){var x=r.slotId;r=S(r);var c=H,z=Q.config.adPlacementConfig,B=LpZ(z),V=B.MF,p=B.al;B=Q.renderer.instreamVideoAdRenderer;var b;if(B==null?0:(b=B.playerOverlay)==null?0:b.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var A=ak(B,c);b=Math.min(V+A.videoLengthSeconds*1E3,p);c=new va(0,[A.videoLengthSeconds]);p=A.videoLengthSeconds;var wX=A.playerVars,qe=A.instreamAdPlayerOverlayRenderer,hG=A.playerOverlayLayoutRenderer, jy=A.adVideoId,QZ=kjU(Q),gX=A.u6;A=A.Z8;var b7=B==null?void 0:B.adLayoutLoggingData;B=B==null?void 0:B.sodarExtensionData;x=C6(X.W.get(),"LAYOUT_TYPE_MEDIA",x);var XG={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",JT:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",u6:gX,layoutExitNormalTriggers:[new ZQ(X.N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:new D_([new yx(R),new kv(p),new Yv(wX),new mj(V),new oP(b),qe&& new f1(qe),hG&&new DE(hG),new tt(z),new p1(jy),new Vx(c),new K$(QZ),B&&new Mj(B),new Hc({current:null}),new Pc({}),new Bc(A)].filter(YfG)),UM:r(XG),adLayoutLoggingData:b7}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var k=jKG(G,R,Q.adSlotLoggingData,L);w.push(k);for(var Y=g.e(h),M=Y.next();!M.done;M=Y.next()){var m=M.value,u=m(G,S);if(u instanceof n)return u;w.push.apply(w,g.o0(u))}}catch(r){return new n(r,{errorMessage:r.message,AdPlacementRenderer:Q,numberOfSurveyRenderers:M6y(Q)})}return w}; M6y=function(G){G=(G.renderer.linearAdSequenceRenderer||{}).linearAds;return G!=null&&G.length?G.filter(function(X){var Q,R;return((Q=g.y(X,Ap))==null?void 0:(R=Q.playerOverlay)==null?void 0:R.instreamSurveyAdRenderer)!=null}).length:0}; haC=function(G,X,Q,R,S,Z,H){var w=X.config.adPlacementConfig,h=LpZ(w),L=h.MF,k=h.al;h=(X.renderer.linearAdSequenceRenderer||{}).linearAds;if(h==null||!h.length)throw new TypeError("Expected linear ads");var Y=[],M={h2:L,Oj:0,q$c:Y};h=h.map(function(u){return ofw(G,u,M,Q,R,w,S,k,H)}).map(function(u,r){r=new va(r,Y); return u(r)}); var m=h.map(function(u){return u.HU}); return{z_:uIS(Q,G,L,m,w,kjU(X),R,k,Z),kgT:h.map(function(u){return u.Ggd})}}; ofw=function(G,X,Q,R,S,Z,H,w,h){var L=ak(g.y(X,Ap),h),k=Q.h2,Y=Q.Oj,M=Math.min(k+L.videoLengthSeconds*1E3,w);Q.h2=M;Q.Oj++;Q.q$c.push(L.videoLengthSeconds);var m,u,r=(m=g.y(X,Ap))==null?void 0:(u=m.playerOverlay)==null?void 0:u.instreamSurveyAdRenderer;if(L.adVideoId==="nPpU29QrbiU"&&r==null)throw new TypeError("Survey slate media has no survey overlay");return function(x){ue(L.playerVars,x);var c,z,B=L.videoLengthSeconds,V=L.playerVars,p=L.u6,b=L.Z8,A=L.instreamAdPlayerOverlayRenderer,wX=L.playerOverlayLayoutRenderer, qe=L.adVideoId,hG=(c=g.y(X,Ap))==null?void 0:c.adLayoutLoggingData;c=(z=g.y(X,Ap))==null?void 0:z.sodarExtensionData;z=C6(R.W.get(),"LAYOUT_TYPE_MEDIA",G);var jy={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",JT:"adapter"};x={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",u6:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"adapter",clientMetadata:new D_([new yx(H),new kv(B),new Yv(V),new mj(k),new oP(M),new u2(Y),new Hc({current:null}), A&&new f1(A),wX&&new DE(wX),new tt(Z),new p1(qe),new Vx(x),c&&new Mj(c),r&&new l2(r),new Pc({}),new Bc(b)].filter(YfG)),UM:S(jy),adLayoutLoggingData:hG};B=wSy(g.y(X,Ap),Z,H,x.layoutId,R);return{HU:x,Ggd:B}}}; ak=function(G,X){if(!G)throw new TypeError("Expected instream video ad renderer");if(!G.playerVars)throw new TypeError("Expected player vars in url encoded string");var Q=$r(G.playerVars),R=Number(Q.length_seconds);if(isNaN(R))throw new TypeError("Expected valid length seconds in player vars");var S=Number(G.trimmedMaxNonSkippableAdDurationMs);R=isNaN(S)?R:Math.min(R,S/1E3);S=G.playerOverlay||{};S=S.instreamAdPlayerOverlayRenderer===void 0?null:S.instreamAdPlayerOverlayRenderer;var Z=G.playerOverlay|| {};Z=Z.playerOverlayLayoutRenderer===void 0?null:Z.playerOverlayLayoutRenderer;var H=Q.video_id;H||(H=(H=G.externalVideoId)?H:void 0);if(!H)throw new TypeError("Expected valid video id in IVAR");if(X&&R===0){var w;X=(w=Pmy[H])!=null?w:R}else X=R;return{playerVars:Q,videoLengthSeconds:X,instreamAdPlayerOverlayRenderer:S,playerOverlayLayoutRenderer:Z,adVideoId:H,u6:G.pings?ky(G.pings):new Map,Z8:L9(G.pings)}}; kjU=function(G){G=Number(G.driftRecoveryMs);return isNaN(G)||G<=0?null:G}; LpZ=function(G){var X=G.adTimeOffset||{};G=X.offsetEndMilliseconds;X=Number(X.offsetStartMilliseconds);if(isNaN(X))throw new TypeError("Expected valid start offset");G=Number(G);if(isNaN(G))throw new TypeError("Expected valid end offset");return{MF:X,al:G}}; sKG=function(G){var X,Q=(X=Nj(G.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:X.current;if(!Q)return null;X=Nj(G.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var R=G.layoutId,S=Nj(G.clientMetadata,"metadata_type_content_cpn"),Z=Nj(G.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),H=Nj(G.clientMetadata,"metadata_type_player_underlay_renderer"),w=Nj(G.clientMetadata,"metadata_type_ad_placement_config"),h=Nj(G.clientMetadata,"metadata_type_video_length_seconds"); var L=Wc(G.clientMetadata,"metadata_type_layout_enter_ms")&&Wc(G.clientMetadata,"metadata_type_layout_exit_ms")?(Nj(G.clientMetadata,"metadata_type_layout_exit_ms")-Nj(G.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Jz:R,contentCpn:S,W$:Q,zH:X,instreamAdPlayerOverlayRenderer:Z,instreamAdPlayerUnderlayRenderer:H,adPlacementConfig:w,videoLengthSeconds:h,QK:L,inPlayerLayoutId:Nj(G.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Nj(G.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; eay=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u){R=XT(R,"SLOT_TYPE_PLAYER_BYTES");G=Tql(S,G,H,Q,R,h,L);if(G instanceof n)return G;var r;L=(r=Nj(G.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:r.layoutId;if(!L)return new n("Invalid adNotify layout");X=KpG(L,S,Z,Q,w,X,h,k,Y,M,m,u,H);return X instanceof n?X:[G].concat(g.o0(X))}; KpG=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M){Q=rty(X,Q,R,Z,H,w,h,L,k,Y,M);if(Q instanceof n)return Q;G=aEC(X,G,H,S,Q);return G instanceof n?G:[].concat(g.o0(G.Sx),[G.wf])}; xGZ=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m){X=rty(G,X,Q,S,Z,w,h,L,k,Y,M,m);if(X instanceof n)return X;G=EfC(G,Q,Z,H,R,w.IW,X);return G instanceof n?G:G.Sx.concat(G.wf)}; rty=function(G,X,Q,R,S,Z,H,w,h,L,k,Y){var M=EH(R,Q,L);return M instanceof f$?new n(M):L.U.Z().experiments.TT("html5_refactor_in_player_slot_generation")?function(m){var u=new va(0,[M.Mh]);m=O1G(X,M.layoutId,M.Nh,Q,xp(M.playerVars,M.RV,Z,h,u),M.Mh,S,u,H(m),w.get(M.Nh.externalVideoId),Y);u=[];if(M.Nh.playerOverlay.instreamAdPlayerOverlayRenderer){var r=sKG(m);if(!r)return qQ("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,m),{layout:m,Sx:[]}; u=[zaG(G,r.contentCpn,r.Jz,function(c){return OH(X,c.slotId,"core",r,Jr(k,c))},r.inPlayerSlotId)].concat(g.o0(u)); if(r.instreamAdPlayerUnderlayRenderer&&zl(L)){var x=r.instreamAdPlayerUnderlayRenderer;u=[ctl(G,r.contentCpn,r.Jz,function(c){return gfl(X,c.slotId,x,r.adPlacementConfig,r.Jz,Jr(k,c))})].concat(g.o0(u))}}return{layout:m, Sx:u}}:function(m){var u=new va(0,[M.Mh]); return{layout:O1G(X,M.layoutId,M.Nh,Q,xp(M.playerVars,M.RV,Z,h,u),M.Mh,S,u,H(m),w.get(M.Nh.externalVideoId),Y),Sx:[]}}}; EH=function(G,X,Q){if(!G.playerVars)return new f$("No playerVars available in InstreamVideoAdRenderer.");var R,S;if(G.elementId==null||G.playerVars==null||G.playerOverlay==null||((R=G.playerOverlay)==null?void 0:R.instreamAdPlayerOverlayRenderer)==null&&((S=G.playerOverlay)==null?void 0:S.playerOverlayLayoutRenderer)==null||G.pings==null||G.externalVideoId==null)return new f$("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:G});R=$r(G.playerVars);S=Number(R.length_seconds); isNaN(S)&&(S=0,qQ("Expected valid length seconds in player vars but got NaN"));if(Q.DJ(X.kind==="AD_PLACEMENT_KIND_START")){if(G.layoutId===void 0)return new f$("Expected server generated layout ID in instreamVideoAdRenderer");X=G.layoutId}else X=G.elementId;return{layoutId:X,Nh:G,playerVars:R,RV:G.playerVars,Mh:S}}; xp=function(G,X,Q,R,S){G.iv_load_policy=R;X=$r(X);if(X.cta_conversion_urls)try{G.cta_conversion_urls=JSON.parse(X.cta_conversion_urls)}catch(Z){qQ(Z)}Q.fv&&(G.ctrl=Q.fv);Q.i8&&(G.ytr=Q.i8);Q.iM&&(G.ytrcc=Q.iM);Q.isMdxPlayback&&(G.mdx="1");G.vvt&&(G.vss_credentials_token=G.vvt,Q.LQ&&(G.vss_credentials_token_type=Q.LQ),Q.mdxEnvironment&&(G.mdx_environment=Q.mdxEnvironment));ue(G,S);return G}; UG0=function(G){var X=new Map;G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())(Q=Q.value.renderer.remoteSlotsRenderer)&&Q.hostElementId&&X.set(Q.hostElementId,Q);return X}; c9=function(G){return G.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; lEi=function(G){return G!=null}; dGV=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u){for(var r=[],x=g.e(G),c=x.next();!c.done;c=x.next())if(c=c.value,!asl(c)&&!cKU(c)){var z=c9(c)&&!!c.slotEntryTrigger.beforeContentVideoIdStartedTrigger,B=h.DJ(z),V=BqX(c,L,R,Q.Ob,B);if(V instanceof n)return V;var p=void 0,b={slotId:c.adSlotMetadata.slotId,slotType:c.adSlotMetadata.slotType,slotPhysicalPosition:(p=c.adSlotMetadata.slotPhysicalPosition)!=null?p:1,JT:"core",slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers, slotExpirationTriggers:V.slotExpirationTriggers},A=g.y(c.fulfillmentContent.fulfilledLayout,Jp);if(A){if(!vE(A))return new n("Invalid PlayerBytesAdLayoutRenderer");p=Y&&!(c9(c)&&c.slotEntryTrigger.beforeContentVideoIdStartedTrigger);V=V.slotFulfillmentTriggers.some(function(wX){return wX instanceof HE}); B=p?FpS(b,c.adSlotMetadata.triggerEvent,A,Q,R,Z,L,G,B,M,V,m):Cme(b,c.adSlotMetadata.triggerEvent,A,X,Q,R,S,Z,H,w,h,L,G,k,B,c.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof n)return B;V=[];u?V.push(new L$({current:u})):V.push(new L$({current:null}));c9(c)&&V.push(new IP({ws:c9(c)&&!!c.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));p&&V.push(new Pc({}));Q.IW&&V.push(new Ui({}));V.push(new tr(z));c=Object.assign({},b,{clientMetadata:new D_(V),fulfilledLayout:B.layout,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData}); r.push.apply(r,g.o0(B.Sx));r.push(c)}else if(z=g.y(c.fulfillmentContent.fulfilledLayout,Rk)){if(!rKX(z))return new n("Invalid PlayerUnderlayAdLayoutRenderer");z=t60(z,R,Q.Ob,Z,b,c.adSlotMetadata.triggerEvent,c.adSlotMetadata.triggeringSourceLayoutId);if(z instanceof n)return z;c=Object.assign({},b,{clientMetadata:new D_([]),fulfilledLayout:z,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData});r.push(c)}else if(z=g.y(c.fulfillmentContent.fulfilledLayout,x2C)){if(!Mxw(z))return new n("Invalid AboveFeedAdLayoutRenderer"); z=V6X(z,R,Q.Ob,Z,b,c.adSlotMetadata.triggerEvent,c.adSlotMetadata.triggeringSourceLayoutId);if(z instanceof n)return z;c=Object.assign({},b,{clientMetadata:new D_([]),fulfilledLayout:z,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData});r.push(c)}else if(z=g.y(c.fulfillmentContent.fulfilledLayout,Or7)){if(!Fl(z.adLayoutMetadata)||!g.y(z.renderingContent,CN))return new n("Invalid BelowPlayerAdLayoutRenderer");z=V6X(z,R,Q.Ob,Z,b,c.adSlotMetadata.triggerEvent,c.adSlotMetadata.triggeringSourceLayoutId); if(z instanceof n)return z;c=Object.assign({},b,{clientMetadata:new D_([]),fulfilledLayout:z,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData});r.push(c)}else if(z=g.y(c.fulfillmentContent.fulfilledLayout,Sc)){if(!Gl(z))return new n("Invalid PlayerBytesSequenceItemAdLayoutRenderer");z=IEU(z,R,Q.Ob,Z,b,c.adSlotMetadata.triggerEvent);if(z instanceof n)return z;c=Object.assign({},b,{clientMetadata:new D_([]),fulfilledLayout:z,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData});r.push(c)}else return new n("Unable to retrieve a client slot ["+ b.slotType+"] from a given AdSlotRenderer")}return r}; IEU=function(G,X,Q,R,S,Z){var H={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,JT:"core"};X=g_(G,X,Q);return X instanceof n?X:(Q=g.y(G.renderingContent,i1))&&Q.pings?Object.assign({},H,{renderingContent:G.renderingContent,u6:ky(Q.pings)},X,{UM:Jr(R,S)(H),clientMetadata:new D_([new tt(UH(Z))]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData}):new n("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; V6X=function(G,X,Q,R,S,Z,H){var w={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,JT:"core"};X=g_(G,X,Q);if(X instanceof n)return X;Q=[];Q.push(new tt(UH(Z)));Z==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&H!==void 0&&Q.push(new X$(H));return Object.assign({},w,{renderingContent:G.renderingContent,u6:new Map([["impression",Wp7(G)]])},X,{UM:Jr(R,S)(w),clientMetadata:new D_(Q),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData})}; t60=function(G,X,Q,R,S,Z,H){if(G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(H=g.y(G.renderingContent,X2))if(H=g.y(H.sidePanel,KTe)){var w={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,JT:"core"};X=g_(G,X,Q);G=X instanceof n?X:Object.assign({},w,{renderingContent:G.renderingContent,u6:new Map([["impression",H.impressionPings||[]],["resume",H.resumePings||[]]])},X,{UM:Jr(R,S)(w),clientMetadata:new D_([new tt(UH(Z))]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData})}else G= new n("DismissablePanelTextPortraitImageRenderer is missing");else G=new n("SqueezebackPlayerSidePanelRenderer is missing");else G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.y(G.renderingContent,PJU)?(H={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,JT:"core"},X=g_(G,X,Q),G=X instanceof n?X:Object.assign({},H,{renderingContent:G.renderingContent,u6:new Map},X,{UM:Jr(R,S)(H),clientMetadata:new D_([new tt(UH(Z))]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData})): G=new n("CounterfactualRenderer is missing"):G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?G=new n("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?G=new n("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.y(G.renderingContent,QO)?(Z={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType, JT:"core"},X=g_(G,X,Q),G=X instanceof n?X:H?Object.assign({},Z,{renderingContent:G.renderingContent,u6:new Map},X,{UM:Jr(R,S)(Z),clientMetadata:new D_([new X$(H)]),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData}):new n("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):G=new n("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.y(G.renderingContent,s8X)? (Z={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,JT:"core"},X=g_(G,X,Q),G=X instanceof n?X:Object.assign({},Z,{renderingContent:G.renderingContent,u6:new Map([])},X,{UM:Jr(R,S)(Z),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new D_([])})):G=new n("AdsEngagementPanelSectionListViewModel is missing"):G=new n("LayoutType ["+G.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return G}; FpS=function(G,X,Q,R,S,Z,H,w,h,L,k,Y){if((Y==null?void 0:Y.HX)===void 0||(Y==null?void 0:Y.zI)===void 0)return new n("Cached ad break range from cue point is missing");var M=g_(Q,S,R.Ob);if(M instanceof n)return M;M={layoutExitMuteTriggers:[],layoutExitNormalTriggers:M.layoutExitNormalTriggers,layoutExitSkipTriggers:[],vn:[],layoutExitUserInputSubmittedTriggers:[]};if(g.y(Q.renderingContent,Ap))return G=pSw(G,X,Q,M,S,Z,w,h,R.Ob,H,Y.HX,Y.zI),G instanceof n?G:G.vZ===void 0?new n("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:G.layout,Sx:[G.vZ]};var m=g.y(Q.renderingContent,DQ);if(m){if(!Fl(Q.adLayoutMetadata))return new n("Invalid ad layout metadata");if(!Nc(m))return new n("Invalid sequential layout");m=m.sequentialLayouts.map(function(u){return u.playerBytesAdLayoutRenderer}); G=ytS(G,X,Q,M,m,S,R,Z,H,h,w,L,Y.HX,Y.zI,k);return G instanceof n?G:{layout:G.TH,Sx:G.Sx}}return new n("Not able to convert a sequential layout")}; ytS=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u){var r=fEw(S,M,m);if(r instanceof n)return r;var x=[],c=[];r=g.e(r);for(var z=r.next();!z.done;z=r.next()){var B=z.value;z=G;var V=S[B.Oj],p=B,b=X;B=Z;var A=H,wX=w,qe=h,hG=L,jy=k,QZ=le(V);if(QZ instanceof n)z=QZ;else{var gX={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,JT:"adapter"};p=DGw(b,V,p,B);p instanceof n?z=p:(z=Object.assign({},gX,B9,{u6:QZ,renderingContent:V.renderingContent,clientMetadata:new D_(p),UM:Jr(wX,z)(gX), adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData}),z=(V=F2(jy,z,B,A.Ob,wX,qe,hG,void 0,!0))?V instanceof n?V:{layout:z,vZ:V}:new n("Expecting associatedInPlayerSlot"))}if(z instanceof n)return z;x.push(z.layout);c.push(z.vZ)}S={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,JT:"core"};X=[new K$(Number(Q.driftRecoveryMs)),new mj(M),new oP(m),new tt(UH(X)),new C$(Y),new Pc({})];u&&X.push(new dG({}));return{TH:Object.assign({},S,R,{XJ:x,u6:new Map,clientMetadata:new D_(X), UM:Jr(w,G)(S)}),Sx:c}}; pSw=function(G,X,Q,R,S,Z,H,w,h,L,k,Y){if(!vE(Q))return new n("Invalid PlayerBytesAdLayoutRenderer");var M=le(Q);if(M instanceof n)return M;var m={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,JT:"core"},u=g.y(Q.renderingContent,Ap);if(!u)return new n("Invalid rendering content for DAI media layout");u=ak(u,!1);k={lV:u,Oj:0,h2:k,lm:Math.min(k+u.videoLengthSeconds*1E3,Y),hc:new va(0,[u.videoLengthSeconds])};var r;Y=(r=Number(Q.driftRecoveryMs))!=null?r:void 0;X=DGw(X, Q,k,S,Y);if(X instanceof n)return X;G=Object.assign({},m,R,{u6:M,renderingContent:Q.renderingContent,clientMetadata:new D_(X),UM:Jr(Z,G)(m),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData});return(S=F2(H,G,S,h,Z,L,w,void 0,!0))?S instanceof n?S:{layout:G,vZ:S}:new n("Expecting associatedInPlayerSlot")}; Cme=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u,r){var x=g_(Q,Z,S.Ob);if(x instanceof n)return x;if(g.y(Q.renderingContent,Ap)){h=Nq0([Q],S,h);if(h instanceof n)return h;if(h.length!==1)return new n("Only expected one media layout.");G=AtU(G,X,Q,x,h[0],void 0,"core",R,Z,H,w,L,M,m,u,S.Ob,Y,void 0,r);return G instanceof n?G:{layout:G.layout,Sx:G.vZ?[G.vZ]:[]}}var c=g.y(Q.renderingContent,DQ);if(c){if(!Fl(Q.adLayoutMetadata))return new n("Invalid ad layout metadata");if(!Nc(c))return new n("Invalid sequential layout"); c=c.sequentialLayouts.map(function(z){return z.playerBytesAdLayoutRenderer}); G=nf7(G,X,Q.adLayoutMetadata,x,c,R,Z,S,h,H,w,L,k,Y,u,M,m,r);return G instanceof n?G:{layout:G.TH,Sx:G.Sx}}return new n("Not able to convert a sequential layout")}; nf7=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u,r,x,c){var z=new WS({current:null}),B=Nq0(S,w,h);if(B instanceof n)return B;h=[];for(var V=[],p=void 0,b=0;b0&&(b.push(c),b.push(new dq(p.adPodSkipTarget)));(Z=L.get(p.externalVideoId))&&b.push(new Ei(Z));Z=b}else Z=new n("Invalid vod media renderer")}if(Z instanceof n)return Z;G=Object.assign({},H,R,{u6:B,renderingContent:Q.renderingContent,clientMetadata:new D_(Z),UM:Jr(k,G)(H),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData});Q=g.y(Q.renderingContent,Ap);if(!Q||!fN(Q))return new n("Invalid meida renderer");Y=sH(Y,Q.externalVideoId);Y.instreamVideoAdRenderer=Q;Y.Tl="AD_PLACEMENT_KIND_START";return m?(h=F2(M,G,h,r,k,x,u,c,!1),h instanceof n?h:vfV(G.layoutId,M)&&h?{layout:Object.assign({},G,{clientMetadata:new D_(Z.concat(new n1(h)))})}:{layout:G,vZ:h}): {layout:G}}; $GG=function(G,X,Q,R,S){if(!vE(X))return new n("Invalid PlayerBytesAdLayoutRenderer");var Z=g.y(X.renderingContent,$y);if(!Z||Z.durationMilliseconds===void 0)return new n("Invalid endcap renderer");var H={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,JT:"adapter"};R=[new Oi(Z.durationMilliseconds),new gG({impressionCommands:void 0,abandonCommands:Z.abandonCommands?[{commandExecutorCommand:Z.abandonCommands}]:void 0,completeCommands:Z.completionCommands}),new tt(R), new RP("LAYOUT_TYPE_ENDCAP")];if(S){R.push(new IK(S.hc.adPodIndex-1));R.push(new u2(S.hc.adPodIndex));var w;R.push(new dq((w=S.adPodSkipTarget)!=null?w:-1))}return Object.assign({},H,B9,{renderingContent:X.renderingContent,clientMetadata:new D_(R),u6:Z.skipPings?new Map([["skip",Z.skipPings]]):new Map,UM:Jr(Q,G)(H),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData})}; F2=function(G,X,Q,R,S,Z,H,w,h){G=G.filter(function(Y){return Y.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&Y.adSlotMetadata.triggeringSourceLayoutId===X.layoutId}); if(G.length!==0){if(G.length!==1)return new n("Invalid InPlayer slot association for the given PlayerBytes layout");G=G[0];H=BqX(G,Z,Q,R,H);if(H instanceof n)return H;var L;Z={slotId:G.adSlotMetadata.slotId,slotType:G.adSlotMetadata.slotType,slotPhysicalPosition:(L=G.adSlotMetadata.slotPhysicalPosition)!=null?L:1,JT:"core",slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers,slotExpirationTriggers:H.slotExpirationTriggers};L=g.y(G.fulfillmentContent.fulfilledLayout, EJU);if(!L||!u5V(L))return new n("Invalid InPlayerAdLayoutRenderer");H={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,JT:"core"};Q=g_(L,Q,R);if(Q instanceof n)return Q;R=[];var k=L.adLayoutMetadata.layoutType;h&&R.push(new Pc({}));if(k==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")R.push.apply(R,g.o0(JtZ(G.adSlotMetadata.triggerEvent,X)));else if(k==="LAYOUT_TYPE_ENDCAP"||k==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){R.push(new tt(UH(G.adSlotMetadata.triggerEvent))); if(k==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new n("Cannot parse endcap layout since AdUxReadyApi is not provided");w&&R.push(w)}else return new n("Not able to parse an SDF InPlayer layout");S=Object.assign({},H,Q,{renderingContent:L.renderingContent,u6:new Map,UM:Jr(S,Z)(H),clientMetadata:new D_(R),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},Z,{fulfilledLayout:S,clientMetadata:new D_([])})}}; JtZ=function(G,X){var Q=[];Q.push(new tt(UH(G)));Q.push(new X$(X.layoutId));(G=Nj(X.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&Q.push(new Hc(G));(G=Nj(X.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&Q.push(new WS(G));(G=Nj(X.clientMetadata,"metadata_type_remote_slots_data"))&&Q.push(new Ei(G));(G=Nj(X.clientMetadata,"metadata_type_ad_next_params"))&&Q.push(new zj(G));(G=Nj(X.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&Q.push(new cS(G));(G= Nj(X.clientMetadata,"metadata_type_ad_pod_info"))&&Q.push(new Vx(G));(X=Nj(X.clientMetadata,"metadata_type_ad_video_id"))&&Q.push(new p1(X));return Q}; b1i=function(G,X,Q,R,S,Z){function H(L){return Cv(X,L)} var w=R.FN.inPlayerSlotId,h={layoutId:R.FN.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",JT:"core"};Q={slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:new Qh(H,G),slotFulfillmentTriggers:[new PE(H,w)],slotExpirationTriggers:[new sW(H,w),new Mc(H,Q)]};G=Object.assign({},h,{layoutExitNormalTriggers:[new Ss(H,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],u6:new Map,clientMetadata:new D_([new bm(R.FN), new tt(R.adPlacementConfig),S]),UM:Jr(Z,Q)(h),adLayoutLoggingData:R.FN.adLayoutLoggingData});return Object.assign({},Q,{clientMetadata:new D_([new e$(G)])})}; vfV=function(G,X){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var R=g.y(Q.fulfillmentContent.fulfilledLayout,Rk);if(R&&(R=g.y(R.renderingContent,X2))&&R.associatedPlayerBytesLayoutId===G)return Q}}; BqX=function(G,X,Q,R,S){var Z=i1G(ok(G.slotEntryTrigger,Q,R),S,G,X);if(Z instanceof n)return Z;for(var H=[],w=g.e(G.slotFulfillmentTriggers),h=w.next();!h.done;h=w.next()){h=ok(h.value,Q,R);if(h instanceof n)return h;H.push(h)}H=GAw(H,S,G,X);X=[];G=g.e(G.slotExpirationTriggers);for(S=G.next();!S.done;S=G.next()){S=ok(S.value,Q,R);if(S instanceof n)return S;X.push(S)}return{slotEntryTrigger:Z,slotFulfillmentTriggers:H,slotExpirationTriggers:X}}; i1G=function(G,X,Q,R){return X&&Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&G instanceof JA?new b0(function(S){return Cv(R,S)},Q.adSlotMetadata.slotId):G}; GAw=function(G,X,Q,R){return X&&Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?G.map(function(S){return S instanceof PE?new cE(function(Z){return Cv(R,Z)},Q.adSlotMetadata.slotId):S}):G}; g_=function(G,X,Q){for(var R=[],S=g.e(G.layoutExitNormalTriggers||[]),Z=S.next();!Z.done;Z=S.next()){Z=ok(Z.value,X,Q);if(Z instanceof n)return Z;R.push(Z)}S=[];Z=g.e(G.layoutExitSkipTriggers||[]);for(var H=Z.next();!H.done;H=Z.next()){H=ok(H.value,X,Q);if(H instanceof n)return H;S.push(H)}Z=[];H=g.e(G.layoutExitMuteTriggers||[]);for(var w=H.next();!w.done;w=H.next()){w=ok(w.value,X,Q);if(w instanceof n)return w;Z.push(w)}H=[];G=g.e(G.layoutExitUserInputSubmittedTriggers||[]);for(w=G.next();!w.done;w= G.next()){w=ok(w.value,X,Q);if(w instanceof n)return w;H.push(w)}return{layoutExitNormalTriggers:R,layoutExitSkipTriggers:S,layoutExitMuteTriggers:Z,layoutExitUserInputSubmittedTriggers:H,vn:[]}}; le=function(G){var X=g.y(G.renderingContent,Ap);if(X==null?0:X.pings)return ky(X.pings);G=g.y(G.renderingContent,$y);return(G==null?0:G.skipPings)?new Map([["skip",G.skipPings]]):new Map}; DGw=function(G,X,Q,R,S){X=g.y(X.renderingContent,Ap);if(!X)return new n("Invalid rendering content for DAI media layout");G=[new yx(R),new kv(Q.lV.videoLengthSeconds),new Yv(Q.lV.playerVars),new mj(Q.h2),new oP(Q.lm),new u2(Q.Oj),new tt(UH(G)),new p1(Q.lV.adVideoId),new Vx(Q.hc),X.sodarExtensionData&&new Mj(X.sodarExtensionData),new Hc({current:null}),new Pc({}),new Bc(L9(X.pings))].filter(lEi);S!==void 0&&G.push(new K$(S));return G}; fEw=function(G,X,Q){G=G.map(function(h){return ak(g.y(h.renderingContent,Ap),!1)}); var R=G.map(function(h){return h.videoLengthSeconds}),S=R.map(function(h,L){return new va(L,R)}),Z=X,H=Q,w=[]; G.forEach(function(h,L){H=Math.min(Z+h.videoLengthSeconds*1E3,Q);ue(h.playerVars,S[L]);w.push({lV:h,h2:Z,lm:H,Oj:L,hc:S[L]});Z=H}); return w}; Nq0=function(G,X,Q){for(var R=[],S=g.e(G),Z=S.next();!Z.done;Z=S.next())if(Z=g.y(Z.value.renderingContent,Ap)){if(!fN(Z))return new n("Invalid vod media renderer");R.push(XcU(Z))}S=R.map(function(Y){return Y.Mh}); Z=[];for(var H=0,w=0;w0?hG:-1;else if(gX= g.y(QZ,$y)){QZ=YiZ(G,X,Q,gX,Z,r,w,A,hG);if(QZ instanceof n){m=QZ;break a}QZ=QZ(M);x.push(QZ.Dh);c=[].concat(g.o0(QZ.No),g.o0(c));z=[].concat(g.o0(QZ.u8),g.o0(z));QZ.vZ&&(qe=[QZ.vZ].concat(g.o0(qe)))}else if(gX=g.y(QZ,$s)){if(m===void 0){m=new n("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:gX});break a}QZ=mjV(G,X,Q,Z,gX,b,w,m,r,Fd(k,"supports_multi_step_on_desktop"));if(QZ instanceof n){m=QZ;break a}QZ=QZ(M);x.push(QZ.Dh);QZ.vZ&&qe.push(QZ.vZ); c=[].concat(g.o0(QZ.No),g.o0(c));z=[].concat(g.o0(QZ.u8),g.o0(z));B=[].concat(g.o0(QZ.xV),g.o0(B));V=[].concat(g.o0(QZ.VS),g.o0(V));p=[b].concat(g.o0(p))}else if(QZ=g.y(QZ,b1)){QZ=ovV(G,X,Q,Z,QZ,b,w,r);if(QZ instanceof n){m=QZ;break a}QZ=QZ(M);x.push(QZ.Dh);QZ.vZ&&qe.push(QZ.vZ);z=[].concat(g.o0(QZ.u8),g.o0(z))}else{m=new n("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={XJ:x,layoutExitSkipTriggers:c,layoutExitUserInputSubmittedTriggers:B,vn:V,layoutExitMuteTriggers:z,Hc:p,Sx:qe}}}else a:if(r= a_Z(R,Q,k),r instanceof n)m=r;else{x=0;c=[];z=[];B=[];V=[];p=[];b=[];A=new qj({current:null});wX=new WS({current:null});qe=!1;jy=[];hG=-1;u=g.e(R);for(QZ=u.next();!QZ.done;QZ=u.next())if(QZ=QZ.value,g.y(QZ,nN)){QZ=jP0(X,Q,g.y(QZ,nN),w);if(QZ instanceof n){m=QZ;break a}QZ=QZ(M);c.push(QZ.Dh);z=[].concat(g.o0(QZ.No),g.o0(z));B=[].concat(g.o0(QZ.u8),g.o0(B));QZ.vZ&&(jy=[QZ.vZ].concat(g.o0(jy)))}else if(g.y(QZ,Ap)){hG=EH(g.y(QZ,Ap),Q,k);if(hG instanceof f$){m=new n(hG);break a}QZ=new va(x,r);QZ=Ev0(X, hG.layoutId,hG.Nh,Q,xp(hG.playerVars,hG.RV,H,L,QZ),hG.Mh,Z,QZ,w(M),wX,h.get(hG.Nh.externalVideoId),void 0,Y);x++;c.push(QZ.Dh);z=[].concat(g.o0(QZ.No),g.o0(z));B=[].concat(g.o0(QZ.u8),g.o0(B));qe||(b.push(wX),qe=!0);hG=(hG=hG.Nh.adPodSkipTarget)&&hG>0?hG:-1}else if(g.y(QZ,$y)){QZ=YiZ(G,X,Q,g.y(QZ,$y),Z,x,w,wX,hG);if(QZ instanceof n){m=QZ;break a}QZ=QZ(M);c.push(QZ.Dh);z=[].concat(g.o0(QZ.No),g.o0(z));B=[].concat(g.o0(QZ.u8),g.o0(B));QZ.vZ&&(jy=[QZ.vZ].concat(g.o0(jy)))}else if(g.y(QZ,$s)){if(m=== void 0){m=new n("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.y(QZ,$s)});break a}QZ=mjV(G,X,Q,Z,g.y(QZ,$s),A,w,m,x,Fd(k,"supports_multi_step_on_desktop"));if(QZ instanceof n){m=QZ;break a}QZ=QZ(M);c.push(QZ.Dh);QZ.vZ&&jy.push(QZ.vZ);z=[].concat(g.o0(QZ.No),g.o0(z));B=[].concat(g.o0(QZ.u8),g.o0(B));V=[].concat(g.o0(QZ.xV),g.o0(V));p=[].concat(g.o0(QZ.VS),g.o0(p));b=[A].concat(g.o0(b))}else if(g.y(QZ,b1)){QZ=ovV(G,X,Q,Z,g.y(QZ,b1),A,w,x);if(QZ instanceof n){m=QZ;break a}QZ=QZ(M);c.push(QZ.Dh);QZ.vZ&&jy.push(QZ.vZ);B=[].concat(g.o0(QZ.u8),g.o0(B))}else{m=new n("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={XJ:c,layoutExitSkipTriggers:z,layoutExitUserInputSubmittedTriggers:V,vn:p,layoutExitMuteTriggers:B,Hc:b,Sx:jy}}m instanceof n?M=m:(p=M.slotId,r=m.XJ,x=m.layoutExitSkipTriggers,c=m.layoutExitMuteTriggers,z=m.layoutExitUserInputSubmittedTriggers,B=m.Hc,M=w(M),V=S?S.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",p=S?S.layoutId: C6(X.W.get(),V,p),b={layoutId:p,layoutType:V,JT:"core"},M={layout:{layoutId:p,layoutType:V,u6:new Map,layoutExitNormalTriggers:[new js(X.N,p)],layoutExitSkipTriggers:x,layoutExitMuteTriggers:c,layoutExitUserInputSubmittedTriggers:z,vn:[],JT:"core",clientMetadata:new D_([new wG(r)].concat(g.o0(B))),UM:M(b)},Sx:m.Sx});return M}}; a_Z=function(G,X,Q){var R=[];G=g.e(G);for(var S=G.next();!S.done;S=G.next())if(S=S.value,g.y(S,Ap)){S=EH(g.y(S,Ap),X,Q);if(S instanceof f$)return new n(S);R.push(S.Mh)}return R}; O$e=function(G,X,Q,R,S,Z,H,w){if(!U2e(Q,w===void 0?!1:w))return new n("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:Q});var h=Kv(Q);if(h<=0)return new n("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:Q});var L=new qj({current:null}),k=QK7(G,X,Q,L,R,Z,H);return xjZ(G,R,Z,h,S,function(Y,M){var m=Y.slotId,u=ec(Q);Y=H(Y);var r,x=(r=d_(X,R,Q.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?r: C6(X.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",m);m={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",JT:"core"};r=k(x,M);var c=Nj(r.clientMetadata,"metadata_type_fulfilled_layout");c||qQ("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new tt(R),new Oi(h),new gG(u),L];c&&u.push(new RP(c.layoutType));return{RdT:{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",u6:new Map,layoutExitNormalTriggers:[new js(X.N,x)],layoutExitSkipTriggers:[new u1(X.N, M.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new UW(X.N,M.layoutId)],vn:[],JT:"core",clientMetadata:new D_(u),UM:Y(m)},n9:r}})}; zpG=function(G){if(!FTV(G))return!1;var X=g.y(G.adVideoStart,DL);return X?g.y(G.linearAd,Ap)&&pN(X)?!0:(qQ("Invalid Sandwich with notify"),!1):!1}; crS=function(G){if(G.linearAds==null)return!1;G=g.y(G.adStart,DL);return G?pN(G)?!0:(qQ("Invalid LASR with notify"),!1):!1}; gvC=function(G){if(!B2Z(G))return!1;G=g.y(G.adStart,DL);return G?pN(G)?!0:(qQ("Invalid LASR with notify"),!1):!1}; Nh=function(G,X,Q,R,S,Z,H,w,h,L){this.V=G;this.W=X;this.N=Q;this.HM=R;this.ge=S;this.Y=Z;this.RU=H;this.lE=w;this.F9=h;this.loadPolicy=L===void 0?1:L}; Mh=function(G,X,Q,R,S,Z,H,w,h,L,k){var Y=[];if(X.length===0&&R.length===0&&Q.length===0)return Y;X=X.filter(yh);var M=Q.filter(zzG),m=R.filter(yh),u=new Map,r=UG0(X),x=Q.some(function(XG){var Pn;return(XG==null?void 0:(Pn=XG.adSlotMetadata)==null?void 0:Pn.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),c=Q.some(function(XG){var Pn; return(XG==null?void 0:(Pn=XG.adSlotMetadata)==null?void 0:Pn.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),z=Q.some(function(XG){var Pn; return(XG==null?void 0:(Pn=XG.adSlotMetadata)==null?void 0:Pn.slotType)==="SLOT_TYPE_IN_PLAYER"}),B=Q.some(function(XG){var Pn,hO; return(XG==null?void 0:(Pn=XG.adSlotMetadata)==null?void 0:Pn.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(XG==null?void 0:(hO=XG.adSlotMetadata)==null?void 0:hO.slotType)==="SLOT_TYPE_ABOVE_FEED"}); Q=Q.some(function(XG){var Pn;return(XG==null?void 0:(Pn=XG.adSlotMetadata)==null?void 0:Pn.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(x||c||z||B||Q)L=dGV(M,X,w,S,r,G.ge.get(),G.loadPolicy,u,G.HM.get(),G.V.get(),z,H,h,L,k),L instanceof n?qQ(L,void 0,void 0,{contentCpn:S}):Y.push.apply(Y,g.o0(L));L=g.e(X);for(k=L.next();!k.done;k=L.next())k=k.value,Q=UjC(G,u,k,S,Z,H,x,w,r,h,M),Q instanceof n?qQ(Q,void 0,void 0,{renderer:k.renderer,config:k.config.adPlacementConfig,kind:k.config.adPlacementConfig.kind,contentCpn:S,daiEnabled:H}):Y.push.apply(Y,g.o0(Q));l_l(G.HM.get())||(Z=BGU(G,m,S,w,r,u),Y.push.apply(Y,g.o0(Z)));if(G.Y===null|| H&&!w.dW){var V,p,b;G=w.IW&&X.length===1&&((V=X[0].config)==null?void 0:(p=V.adPlacementConfig)==null?void 0:p.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((b=X[0].renderer)==null?void 0:b.adBreakServiceRenderer);if(!Y.length&&!G){var A,wX,qe,hG;qQ("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":X.length,contentCpn:S,"first APR kind":(A=X[0])==null?void 0:(wX=A.config)==null?void 0:(qe=wX.adPlacementConfig)==null?void 0:qe.kind,renderer:(hG= X[0])==null?void 0:hG.renderer})}return Y}V=R.filter(yh);Y.push.apply(Y,g.o0(iry(u,V,G.W.get(),G.Y,S,x)));if(!Y.length){var jy,QZ,gX,b7;qQ("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":X.length,contentCpn:S,daiEnabled:H.toString(),"first APR kind":(jy=X[0])==null?void 0:(QZ=jy.config)==null?void 0:(gX=QZ.adPlacementConfig)==null?void 0:gX.kind,renderer:(b7=X[0])==null?void 0:b7.renderer})}return Y}; BGU=function(G,X,Q,R,S,Z){function H(M){return Jr(G.ge.get(),M)} var w=[];X=g.e(X);for(var h=X.next();!h.done;h=X.next()){h=h.value;var L=h.renderer,k=L.sandwichedLinearAdRenderer,Y=L.linearAdSequenceRenderer;k&&zpG(k)?(qQ("Found AdNotify with SandwichedLinearAdRenderer"),Y=g.y(k.adVideoStart,DL),k=g.y(k.linearAd,Ap),P9(Z,L,h.config.adPlacementConfig.kind),L=void 0,Y=KpG((L=Y)==null?void 0:L.layout.layoutId,G.W.get(),G.N.get(),h.config.adPlacementConfig,h.adSlotLoggingData,k,Q,R,H,S,G.loadPolicy,G.HM.get(),G.ge.get()),Y instanceof n?qQ(Y):w.push.apply(w,g.o0(Y))): Y&&(!Y.adLayoutMetadata&&crS(Y)||Y.adLayoutMetadata&&gvC(Y))&&(qQ("Found AdNotify with LinearAdSequenceRenderer"),P9(Z,L,h.config.adPlacementConfig.kind),L=void 0,k=u$X((L=g.y(Y.adStart,DL))==null?void 0:L.layout.layoutId,G.W.get(),G.N.get(),h.config.adPlacementConfig,h.adSlotLoggingData,Y.linearAds,Fl(Y.adLayoutMetadata)?Y.adLayoutMetadata:void 0,Q,R,H,S,G.loadPolicy,G.HM.get()),k instanceof n?qQ(k):w.push.apply(w,g.o0(k)))}return w}; UjC=function(G,X,Q,R,S,Z,H,w,h,L,k){function Y(c){return Jr(G.ge.get(),c)} var M=Q.renderer,m=Q.config.adPlacementConfig,u=m.kind,r=Q.adSlotLoggingData,x=w.dW&&u==="AD_PLACEMENT_KIND_START";x=Z&&!x;if(M.adsEngagementPanelRenderer!=null)return Tl(X,Q.elementId,u,M.adsEngagementPanelRenderer.isContentVideoEngagementPanel,M.adsEngagementPanelRenderer.adVideoId,M.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,m,r,function(c,z,B,V){var p=G.N.get(),b=c.slotId,A=M.adsEngagementPanelRenderer;c=Jr(G.ge.get(),c);return Ao(p,b,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new xf(A),z,B,A.impressionPings,c,M.adsEngagementPanelRenderer.adLayoutLoggingData,V)}),[]; if(M.adsEngagementPanelLayoutViewModel)return Tl(X,Q.elementId,u,M.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,M.adsEngagementPanelLayoutViewModel.adVideoId,M.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,r,function(c,z,B,V){var p=G.N.get(),b=c.slotId,A=M.adsEngagementPanelLayoutViewModel;c=Jr(G.ge.get(),c);return nv(p,b,"LAYOUT_TYPE_PANEL",new Of(A),z,B,c,M.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,V)}),[]; if(M.actionCompanionAdRenderer!=null){if(M.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return nJG(G.W.get(),G.Y,G.N.get(),M.actionCompanionAdRenderer,m,r,R,Y);Tl(X,Q.elementId,u,M.actionCompanionAdRenderer.isContentVideoCompanion,M.actionCompanionAdRenderer.adVideoId,M.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,r,function(c,z,B,V){var p=G.N.get(),b=c.slotId,A=M.actionCompanionAdRenderer;c=Jr(G.ge.get(),c);return Ao(p,b,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new aK(A),z,B,A.impressionPings,c,M.actionCompanionAdRenderer.adLayoutLoggingData,V)})}else if(M.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(M.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return $2G(G.W.get(),G.Y,G.N.get(),M.topBannerImageTextIconButtonedLayoutViewModel,m,r,R,Y); Tl(X,Q.elementId,u,M.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,M.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,M.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,r,function(c,z,B,V){var p=G.N.get(),b=c.slotId,A=M.topBannerImageTextIconButtonedLayoutViewModel;c=Jr(G.ge.get(),c);return nv(p,b,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new Ef(A),z,B,c,M.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,V)})}else if(M.imageCompanionAdRenderer)Tl(X, Q.elementId,u,M.imageCompanionAdRenderer.isContentVideoCompanion,M.imageCompanionAdRenderer.adVideoId,M.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,r,function(c,z,B,V){var p=G.N.get(),b=c.slotId,A=M.imageCompanionAdRenderer; c=Jr(G.ge.get(),c);return Ao(p,b,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Uf(A),z,B,A.impressionPings,c,M.imageCompanionAdRenderer.adLayoutLoggingData,V)}); else if(M.bannerImageLayoutViewModel)Tl(X,Q.elementId,u,M.bannerImageLayoutViewModel.isContentVideoCompanion,M.bannerImageLayoutViewModel.adVideoId,M.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,r,function(c,z,B,V){var p=G.N.get(),b=c.slotId,A=M.bannerImageLayoutViewModel;c=Jr(G.ge.get(),c);return nv(p,b,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new lm(A),z,B,c,M.bannerImageLayoutViewModel.adLayoutLoggingData,V)}); else if(M.shoppingCompanionCarouselRenderer)Tl(X,Q.elementId,u,M.shoppingCompanionCarouselRenderer.isContentVideoCompanion,M.shoppingCompanionCarouselRenderer.adVideoId,M.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,m,r,function(c,z,B,V){var p=G.N.get(),b=c.slotId,A=M.shoppingCompanionCarouselRenderer;c=Jr(G.ge.get(),c);return Ao(p,b,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new BS(A),z,B,A.impressionPings,c,M.shoppingCompanionCarouselRenderer.adLayoutLoggingData,V)}); else if(M.adBreakServiceRenderer){if(!N2w(Q))return[];if(u==="AD_PLACEMENT_KIND_PAUSE")return D2l(G.W.get(),m,r,Q.renderer.adBreakServiceRenderer,R);if(u!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&u!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return fsC(G.W.get(),m,r,Q.renderer.adBreakServiceRenderer,R,S,Z);w.IW||qQ("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:u,adPlacementConfig:m,daiEnabledForContentVideo:String(Z),isServedFromLiveInfra:String(w.IW),clientPlaybackNonce:w.clientPlaybackNonce}); if(u==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!G.RU)return new n("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!G.F9)return new n("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");G.F9.R7({adPlacementRenderer:Q,contentCpn:R,Ob:S});S=G.RU.get().getCurrentTimeSec(1,!1);return FjZ(G.W.get(),Q.renderer.adBreakServiceRenderer,m,S,R,r,Z)}if(!G.lE)return new n("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); G.lE.R7({adPlacementRenderer:Q,contentCpn:R,Ob:S})}else{if(M.clientForecastingAdRenderer)return Z$G(G.W.get(),G.N.get(),m,r,M.clientForecastingAdRenderer,R,S,Y);if(M.invideoOverlayAdRenderer)return hpw(G.W.get(),G.N.get(),m,r,M.invideoOverlayAdRenderer,R,S,Y);if(M.instreamAdPlayerOverlayRenderer)return qi7(G.W.get(),G.N.get(),m,r,M.instreamAdPlayerOverlayRenderer,R,Y);if((M.linearAdSequenceRenderer||M.instreamVideoAdRenderer)&&x)return mGl(G.W.get(),G.N.get(),Q,R,Y,L,!G.HM.get().U.Z().G("html5_override_ad_video_length_killswitch")); if(M.linearAdSequenceRenderer&&!x){if(H)return[];P9(X,M,u);if(M.linearAdSequenceRenderer.adLayoutMetadata){if(!B2Z(M.linearAdSequenceRenderer))return new n("Received invalid LinearAdSequenceRenderer.")}else if(M.linearAdSequenceRenderer.linearAds==null)return new n("Received invalid LinearAdSequenceRenderer.");if(g.y(M.linearAdSequenceRenderer.adStart,DL)){qQ("Found AdNotify in LinearAdSequenceRenderer");Q=g.y(M.linearAdSequenceRenderer.adStart,DL);if(!m2e(Q))return new n("Invalid AdMessageRenderer."); Z=M.linearAdSequenceRenderer.linearAds;return P2V(G.V.get(),G.W.get(),G.N.get(),G.ge.get(),m,r,Q,Fl(M.linearAdSequenceRenderer.adLayoutMetadata)?M.linearAdSequenceRenderer.adLayoutMetadata:void 0,Z,R,S,w,Y,h,G.loadPolicy,G.HM.get())}return rrl(G.W.get(),G.N.get(),m,r,M.linearAdSequenceRenderer.linearAds,Fl(M.linearAdSequenceRenderer.adLayoutMetadata)?M.linearAdSequenceRenderer.adLayoutMetadata:void 0,R,S,w,Y,h,G.loadPolicy,G.HM.get(),k)}if(!M.remoteSlotsRenderer||Z){if(M.instreamVideoAdRenderer&& !x){if(H)return[];P9(X,M,u);return xGZ(G.W.get(),G.N.get(),m,r,M.instreamVideoAdRenderer,R,S,w,Y,h,G.loadPolicy,G.HM.get(),G.ge.get(),k)}if(M.instreamSurveyAdRenderer)return O$e(G.W.get(),G.N.get(),M.instreamSurveyAdRenderer,m,r,R,Y,Fd(G.HM.get(),"supports_multi_step_on_desktop"));if(M.sandwichedLinearAdRenderer!=null)return FTV(M.sandwichedLinearAdRenderer)?g.y(M.sandwichedLinearAdRenderer.adVideoStart,DL)?(qQ("Found AdNotify in SandwichedLinearAdRenderer"),Q=g.y(M.sandwichedLinearAdRenderer.adVideoStart, DL),m2e(Q)?(Z=g.y(M.sandwichedLinearAdRenderer.linearAd,Ap))?eay(Q,Z,m,G.V.get(),G.W.get(),G.N.get(),G.ge.get(),r,R,S,w,Y,h,G.loadPolicy,G.HM.get()):new n("Missing IVAR from Sandwich"):new n("Invalid AdMessageRenderer.")):rrl(G.W.get(),G.N.get(),m,r,[M.sandwichedLinearAdRenderer.adVideoStart,M.sandwichedLinearAdRenderer.linearAd],void 0,R,S,w,Y,h,G.loadPolicy,G.HM.get()):new n("Received invalid SandwichedLinearAdRenderer.");if(M.videoAdTrackingRenderer!=null)return Rpy(G.W.get(),G.N.get(),M.videoAdTrackingRenderer, m,r,R,S,w.n2,Y)}}return[]}; $p=function(G,X,Q,R,S,Z,H,w){g.I.call(this);var h=this;this.W=G;this.Y=X;this.GF=R;this.RU=S;this.HM=Z;this.nO=H;this.Nx=w;this.N=null;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.U_()||Q.get().removeListener(h)}); R.get().addListener(this);this.addOnDisposeCallback(function(){R.U_()||R.get().removeListener(h)})}; Jo=function(G,X,Q){var R=G.RU.get().getCurrentTimeSec(1,!1);G.HM.get().U.Z().n7()&&ca(G.nO.get(),"sdai","onopp.1;evt."+Q.event+";start."+Q.startSecs.toFixed(3)+";d."+Q.Du.toFixed(3));G5(G.W.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var S=G.Y.get(),Z=X.adPlacementRenderer.renderer.adBreakServiceRenderer,H=X.contentCpn,w=X.adPlacementRenderer.adSlotLoggingData;be(G.HM.get());var h=G.nO;var L=S.HM.get();L=g.i2(L.U.Z().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var k=S.HM.get();var Y=g.i2(k.U.Z().experiments,"min_prefetch_offset_sec_for_livestream_optimization");k=Q.startSecs*1E3;k={Lj:new uI(k,k+Q.Du*1E3),aE:!1,cueProcessedMs:R*1E3};var M=Q.startSecs+Q.Du;if(R===0)k.lD=new uI(0,M*1E3);else{Y=Q.startSecs-Y;var m=Y-R;k.lD=m<=0?new uI(Y*1E3,M*1E3):new uI(Math.floor(R+Math.random()*Math.min(m,L))*1E3,M*1E3)}Z=mS(S,Z,H,k,w,[new hr(Q)]);v9(S.HM.get())&&ca(h.get(),"abrsm","cpi."+Q.identifier+";cps."+Q.startSecs+";cpd."+Q.Du+";cts."+R+";rbf."+k.lD.start);h.get().U.nx(Q.startSecs- R,k.lD.start/1E3-R);return[Z]})}; ie=function(G){var X,Q=(X=Nj(G.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:X.current;if(!Q)return null;X=Nj(G.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var R=G.layoutId,S=Nj(G.clientMetadata,"metadata_type_content_cpn"),Z=Nj(G.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),H=Nj(G.clientMetadata,"metadata_type_player_overlay_layout_renderer"),w=Nj(G.clientMetadata,"metadata_type_player_underlay_renderer"),h=Nj(G.clientMetadata, "metadata_type_ad_placement_config"),L=Nj(G.clientMetadata,"metadata_type_video_length_seconds");var k=Wc(G.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Nj(G.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Wc(G.clientMetadata,"metadata_type_layout_enter_ms")&&Wc(G.clientMetadata,"metadata_type_layout_exit_ms")?(Nj(G.clientMetadata,"metadata_type_layout_exit_ms")-Nj(G.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Jz:R,contentCpn:S,W$:Q,zH:X,instreamAdPlayerOverlayRenderer:Z, playerOverlayLayoutRenderer:H,instreamAdPlayerUnderlayRenderer:w,adPlacementConfig:h,videoLengthSeconds:L,QK:k,inPlayerLayoutId:Nj(G.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Nj(G.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; t$i=function(G,X){return C2G(G,X)}; V$Z=function(G,X){X=C2G(G,X);if(!X)return null;var Q;X.QK=(Q=Nj(G.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:Q.adBreakRemainingLengthSeconds;return X}; C2G=function(G,X){var Q,R=(Q=Nj(G.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!R)return null;Q=HDS(G,X);return{WS:ZDU(G,X),adPlacementConfig:Nj(G.clientMetadata,"metadata_type_ad_placement_config"),Yp:Q,contentCpn:Nj(G.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Nj(G.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Nj(G.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Nj(G.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,QK:void 0,W$:R,Jz:G.layoutId,videoLengthSeconds:Nj(G.clientMetadata,"metadata_type_video_length_seconds")}}; GW=function(G,X,Q,R,S,Z,H,w,h){g.I.call(this);this.V=G;this.S=X;this.C=Q;this.Y=R;this.N=S;this.W=Z;this.ge=H;this.HM=w;this.lB=h;this.E$=!0}; I_C=function(G,X,Q){return ctl(G.N.get(),X.contentCpn,X.Jz,function(R){return gfl(G.W.get(),R.slotId,Q,X.adPlacementConfig,X.Jz,Jr(G.ge.get(),R))})}; XU=function(G,X,Q,R,S,Z,H,w){g.I.call(this);this.W=G;this.N=X;this.Y=Q;this.HM=R;this.V=S;this.lB=Z;this.RU=H;this.xS=w}; QX=function(G){g.I.call(this);this.N=G}; G5=function(G,X,Q,R){G.N().Pz(X,R);Q=Q();G=G.N();G.Sj.RN("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",X,R,Q);X=g.e(Q);for(Q=X.next();!Q.done;Q=X.next())a:{R=G;Q=Q.value;R.Sj.K2("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",Q);R.Sj.K2("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",Q);try{var S=R.N;if(g.lY(Q.slotId))throw new n("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(q3(S,Q))throw new n("Duplicate registration for slot.",{slotId:Q.slotId,slotEntryTriggerType:Q.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!S.Ud.s9.has(Q.slotType))throw new n("No fulfillment adapter factory registered for slot of type: "+Q.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!S.Ud.J0.has(Q.slotType))throw new n("No SlotAdapterFactory registered for slot of type: "+Q.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");ae(S,"TRIGGER_CATEGORY_SLOT_ENTRY",Q.slotEntryTrigger?[Q.slotEntryTrigger]:[]);ae(S,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", Q.slotFulfillmentTriggers);ae(S,"TRIGGER_CATEGORY_SLOT_EXPIRATION",Q.slotExpirationTriggers);var Z=R.N,H=Q.slotType+"_"+Q.slotPhysicalPosition,w=sD(Z,H);if(q3(Z,Q))throw new n("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");w.set(Q.slotId,new JgC(Q));Z.N.set(H,w)}catch(wX){wX instanceof n&&wX.uH?(R.Sj.Tx("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",wX.uH,Q),qQ(wX,Q,void 0,void 0,wX.Fu)):(R.Sj.Tx("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", Q),qQ(wX,Q));break a}q3(R.N,Q).S=!0;try{var h=R.N,L=q3(h,Q),k=Q.slotEntryTrigger,Y=h.Ud.TJ.get(k.triggerType);Y&&(Y.Pi("TRIGGER_CATEGORY_SLOT_ENTRY",k,Q,null),L.Yc.set(k.triggerId,Y));for(var M=g.e(Q.slotFulfillmentTriggers),m=M.next();!m.done;m=M.next()){var u=m.value,r=h.Ud.TJ.get(u.triggerType);r&&(r.Pi("TRIGGER_CATEGORY_SLOT_FULFILLMENT",u,Q,null),L.AT.set(u.triggerId,r))}for(var x=g.e(Q.slotExpirationTriggers),c=x.next();!c.done;c=x.next()){var z=c.value,B=h.Ud.TJ.get(z.triggerType);B&&(B.Pi("TRIGGER_CATEGORY_SLOT_EXPIRATION", z,Q,null),L.j.set(z.triggerId,B))}var V=h.Ud.s9.get(Q.slotType).get().build(h.Y,Q);L.J=V;var p=h.Ud.J0.get(Q.slotType).get().build(h.C,Q);p.init();L.W=p}catch(wX){wX instanceof n&&wX.uH?(R.Sj.Tx("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",wX.uH,Q),qQ(wX,Q,void 0,void 0,wX.Fu)):(R.Sj.Tx("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Q),qQ(wX,Q));SJ(R,Q,!0);break a}R.Sj.K2("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Q);R.N.kF(Q);for(var b=g.e(R.W),A=b.next();!A.done;A= b.next())A.value.kF(Q);L6(R,Q)}}; Rg=function(G,X,Q,R,S){g.I.call(this);var Z=this;this.W=G;this.Y=X;this.yN=Q;this.context=S;this.N=new Map;R.get().addListener(this);this.addOnDisposeCallback(function(){R.U_()||R.get().removeListener(Z)})}; Vxi=function(G,X){var Q=0x8000000000000,R=0,S=0x8000000000000;var Z=g.e(X.slotFulfillmentTriggers);for(var H=Z.next();!H.done;H=Z.next())if(H=H.value,H instanceof hp){var w=H.N.start;Q=Math.min(Q,w);R=Math.max(R,H.N.end);H.visible&&(S=Math.min(S,w))}else qQ("Found unexpected fulfillment trigger for throttled slot.",X,null,{fulfillmentTrigger:H});Z=Q;S=S<0x8000000000000&&Q0&&oe(G.S(),Q)}; K_=function(G,X,Q,R,S){for(var Z=[],H=g.e(G.DW.values()),w=H.next();!w.done;w=H.next()){var h=w=w.value,L=h.trigger;h=h.slot;if(L.triggerType===X){if(L instanceof HE||L instanceof qc||L instanceof LN){if(S&&L.breakDurationMs!==Q)continue;if(!S&&L.breakDurationMs===Q)continue;if(R.has(h.slotId))continue}Z.push(w)}}Z.length>0&&oe(G.S(),Z)}; vvG=function(G,X){X=(X.Du+1)*1E3;var Q=void 0;G=g.e(G.DW.values());for(var R=G.next();!R.done;R=G.next()){var S=R.value;R=S.trigger;S=S.slot;R instanceof HE&&R.breakDurationMs<=X&&(!Q||R.breakDurationMs>Q.trigger.breakDurationMs)&&(Q={slot:S,trigger:R})}return Q}; JrC=function(G){G=G.adPlacementRenderer.config.adPlacementConfig;if(!G.prefetchModeConfig||!G.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;G=Number(G.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(G)||G<=0?0:Math.floor(Math.random()*G)}; i$w=function(G){G=G.adPlacementRenderer.config.adPlacementConfig;if(G.prefetchModeConfig&&G.prefetchModeConfig.cacheFetchRefreshDurationMs&&(G=Number(G.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(G)||G<=0)))return G}; eO=function(G){G.N=null;G.DW.clear();G.W&&G.W.stop();G.C&&G.C.stop();var X;(X=G.Y)==null||X.stop();delete G.Y}; $jl=function(G){var X=[];G=g.e(G.DW.values());for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value.trigger,Q instanceof HE&&X.push(Q.breakDurationMs);return X}; r9=function(G){g.I.call(this);this.Y=G;this.E$=!0;this.DW=new Map;this.N=new Map;this.W=new Map}; G7y=function(G,X){var Q=[];if(X=G.N.get(X.layoutId)){X=g.e(X);for(var R=X.next();!R.done;R=X.next())(R=G.W.get(R.value.triggerId))&&Q.push(R)}return Q}; ag=function(G){g.I.call(this);this.N=G;this.DW=new Map}; XZ7=function(G,X){for(var Q=[],R=g.e(G.DW.values()),S=R.next();!S.done;S=R.next())S=S.value,S.trigger instanceof b0&&S.trigger.slotId===X&&Q.push(S);Q.length>=1&&oe(G.N(),Q)}; Qee=function(G,X){var Q={slotId:XT(X,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],JT:"surface",clientMetadata:new D_([])},R=Object,S=R.assign;X=C6(X,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Q.slotId);X={layoutId:X,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",u6:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"surface", clientMetadata:new D_([]),UM:IDS(!1,Q.slotId,Q.slotType,Q.slotPhysicalPosition,Q.JT,Q.slotEntryTrigger,Q.slotFulfillmentTriggers,Q.slotExpirationTriggers,X,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return S.call(R,{},G,{qZ:!0,slot:Q,layout:X})}; yK0=function(G,X,Q,R){var S=G.kind;R=R?!1:!G.hideCueRangeMarker;switch(S){case "AD_PLACEMENT_KIND_START":return R={Lj:new uI(-0x8000000000000,-0x8000000000000),aE:R},Q!=null&&(R.lD=new uI(-0x8000000000000,-0x8000000000000)),R;case "AD_PLACEMENT_KIND_END":return R={Lj:new uI(0x7ffffffffffff,0x8000000000000),aE:R},Q!=null&&(R.lD=new uI(Math.max(0,X-Q),0x8000000000000)),R;case "AD_PLACEMENT_KIND_MILLISECONDS":S=G.adTimeOffset;S.offsetStartMilliseconds||qQ("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); S.offsetEndMilliseconds||qQ("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");G=Number(S.offsetStartMilliseconds);S=Number(S.offsetEndMilliseconds);S===-1&&(S=X);if(Number.isNaN(G)||Number.isNaN(S)||G>S)return new n("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:G,offsetEndMs:S},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",S===X&&G-500<=S);R={Lj:new uI(G,S),aE:R};if(Q!=null){G=Math.max(0,G-Q);if(G===S)return R;R.lD=new uI(G,S)}return R; default:return new n("AdPlacementKind not supported in convertToRange.",{kind:S,adPlacementConfig:G})}}; RKC=function(G){if(!G||!G.adPlacements&&!G.adSlots)return!1;for(var X=g.e(G.adPlacements||[]),Q=X.next();!Q.done;Q=X.next())if(Q=Q.value)if(Q=Q.adPlacementRenderer,Q!=null&&(Q.config&&Q.config.adPlacementConfig&&Q.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;G=g.e(G.adSlots||[]);for(X=G.next();!X.done;X=G.next()){var R=Q=void 0;if(((Q=g.y(X.value,jc))==null?void 0:(R=Q.adSlotMetadata)==null?void 0:R.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Eq=function(G){this.HM=G;this.W=new Map;this.N=new Map;this.Y=new Map}; XT=function(G,X){if(xe(G.HM.get())){var Q=G.W.get(X)||0;Q++;G.W.set(X,Q);return X+"_"+Q}return g.jh(16)}; C6=function(G,X,Q){if(xe(G.HM.get())){var R=G.N.get(X)||0;R++;G.N.set(X,R);return Q+"_"+X+"_"+R}return g.jh(16)}; Cv=function(G,X){if(xe(G.HM.get())){var Q=G.Y.get(X)||0;Q++;G.Y.set(X,Q);return X+"_"+Q}return g.jh(16)}; SDw=function(G){var X=[new X$(G.Jz),new Z_(G.W$),new tt(G.adPlacementConfig),new kv(G.videoLengthSeconds),new xv(G.QK)];G.instreamAdPlayerOverlayRenderer&&X.push(new f1(G.instreamAdPlayerOverlayRenderer));G.playerOverlayLayoutRenderer&&X.push(new DE(G.playerOverlayLayoutRenderer));G.zH&&X.push(new WS(G.zH));return X}; Z6Z=function(G,X,Q,R,S,Z){G=Q.inPlayerLayoutId?Q.inPlayerLayoutId:C6(Z,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",G);var H,w,h=Q.instreamAdPlayerOverlayRenderer?(H=Q.instreamAdPlayerOverlayRenderer)==null?void 0:H.adLayoutLoggingData:(w=Q.playerOverlayLayoutRenderer)==null?void 0:w.adLayoutLoggingData;H={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",JT:X};return{layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",u6:new Map,layoutExitNormalTriggers:[new Ss(function(L){return Cv(Z, L)},Q.Jz)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:X,clientMetadata:R,UM:S(H),adLayoutLoggingData:h}}; Oq=function(G,X){var Q=this;this.W=G;this.HM=X;this.N=function(R){return Cv(Q.W.get(),R)}}; gfl=function(G,X,Q,R,S,Z){Q=new D_([new NG(Q),new tt(R)]);X=C6(G.W.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",X);R={layoutId:X,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",JT:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",u6:new Map,layoutExitNormalTriggers:[new Ss(function(H){return Cv(G.W.get(),H)},S)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:Q,UM:Z(R),adLayoutLoggingData:void 0}}; OH=function(G,X,Q,R,S){var Z=SDw(R);return Z6Z(X,Q,R,new D_(Z),S,G.W.get())}; H6V=function(G,X,Q,R,S){var Z=SDw(R);Z.push(new FI(R.WS));Z.push(new C1(R.Yp));return Z6Z(X,Q,R,new D_(Z),S,G.W.get())}; Ao=function(G,X,Q,R,S,Z,H,w,h,L){X=C6(G.W.get(),Q,X);var k={layoutId:X,layoutType:Q,JT:"core"},Y=new Map;H&&Y.set("impression",H);H=[new ks(G.N,S,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];L&&H.push(new Rw(G.N,L,["normal"]));return{layoutId:X,layoutType:Q,u6:Y,layoutExitNormalTriggers:H,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:new D_([R,new tt(Z),new X$(S)]),UM:w(k),adLayoutLoggingData:h}}; nv=function(G,X,Q,R,S,Z,H,w,h){X=C6(G.W.get(),Q,X);var L={layoutId:X,layoutType:Q,JT:"core"},k=[new ks(G.N,S,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];h&&k.push(new Rw(G.N,h,["normal"]));return{layoutId:X,layoutType:Q,u6:new Map,layoutExitNormalTriggers:k,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:new D_([R,new tt(Z),new X$(S)]),UM:H(L),adLayoutLoggingData:w}}; VO=function(G,X,Q){var R=[];R.push(new Ys(G.N,Q));X&&R.push(X);return R}; to=function(G,X,Q,R,S,Z,H){var w={layoutId:X,layoutType:Q,JT:"core"};return{layoutId:X,layoutType:Q,u6:new Map,layoutExitNormalTriggers:H,layoutExitSkipTriggers:[new i0(G.N,X)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:new D_([new gq(R),new tt(S)]),UM:Z(w),adLayoutLoggingData:R.adLayoutLoggingData}}; r_=function(G,X,Q,R,S,Z,H,w){var h={layoutId:X,layoutType:Z,JT:"core"};return{layoutId:X,layoutType:Z,u6:new Map,layoutExitNormalTriggers:[new Ss(G.N,Q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:new D_([new tt(R)].concat(g.o0(H))),UM:S(h),adLayoutLoggingData:w}}; d_=function(G,X,Q,R){if(G.HM.get().DJ(X.kind==="AD_PLACEMENT_KIND_START"))if(Q===void 0)qQ("Expected SSAP layout ID in renderer",void 0,void 0,{caller:R});else return Q}; Ljy=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M){G=Ik(G,X,Q,S,Z,H,w,h,Y,d_(G,Q,R.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),M);X=G.Hc;Q=new Ql(G.p5);R=G.layoutExitSkipTriggers;L>0&&(X.push(Q),X.push(new dq(L)),R=[]);X.push(new IK(k));return{Dh:{layoutId:G.layoutId,layoutType:G.layoutType,u6:G.u6,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:G.JT,clientMetadata:new D_(X),UM:G.UM,adLayoutLoggingData:G.adLayoutLoggingData}, No:R,u8:G.layoutExitMuteTriggers,xV:G.layoutExitUserInputSubmittedTriggers,VS:G.vn,vZ:G.vZ}}; M$l=function(G,X,Q,R,S,Z,H,w,h,L){X=Ik(G,X,Q,R,Z,new Map,H,function(k){return w(k,h)},void 0,d_(G,Q,S.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); G=new UW(G.N,X.p5);Q=new Ql(X.p5);L=new IK(L);return{Dh:{layoutId:X.layoutId,layoutType:X.layoutType,u6:X.u6,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:X.JT,clientMetadata:new D_([].concat(g.o0(X.Hc),[Q,L])),UM:X.UM,adLayoutLoggingData:X.adLayoutLoggingData},No:X.layoutExitSkipTriggers,u8:X.layoutExitMuteTriggers,xV:[].concat(g.o0(X.layoutExitUserInputSubmittedTriggers),[G]),VS:X.vn,vZ:X.vZ}}; Ik=function(G,X,Q,R,S,Z,H,w,h,L,k){X=L!=null?L:C6(G.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",X);L={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",JT:"adapter"};w=w(X);var Y=Nj(w.clientMetadata,"metadata_type_fulfilled_layout");Y||qQ("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var M=Y?Y.layoutId:"";Q=[new tt(Q),new Oi(R),new gG(S)];Y&&Q.push(new RP(Y.layoutType));k&&Q.push(new u2(k));return{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", u6:Z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new u1(G.N,M)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"adapter",Hc:Q,UM:H(L),adLayoutLoggingData:h,vZ:w,p5:M}}; O1G=function(G,X,Q,R,S,Z,H,w,h,L,k){G=qDw(G,X,"core",Q,R,S,Z,H,w,h,L,void 0,k);return{layoutId:G.layoutId,layoutType:G.layoutType,u6:G.u6,layoutExitNormalTriggers:G.layoutExitNormalTriggers,layoutExitSkipTriggers:G.layoutExitSkipTriggers,layoutExitMuteTriggers:G.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:G.layoutExitUserInputSubmittedTriggers,vn:G.vn,JT:G.JT,clientMetadata:new D_(G.CG),UM:G.UM,adLayoutLoggingData:G.adLayoutLoggingData}}; Ev0=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M){X=qDw(G,X,"adapter",Q,R,S,Z,H,w,h,k,Y,M);R=X.layoutExitSkipTriggers;S=X.CG;Q.adPodSkipTarget&&Q.adPodSkipTarget>0&&(S.push(L),S.push(new dq(Q.adPodSkipTarget)),R=[]);S.push(new IK(w.adPodIndex));Q.isCritical&&(R=[new Rw(G.N,X.layoutId,["error"])].concat(g.o0(R)));return{Dh:{layoutId:X.layoutId,layoutType:X.layoutType,u6:X.u6,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:X.JT, clientMetadata:new D_(S),UM:X.UM,adLayoutLoggingData:X.adLayoutLoggingData},No:R,u8:X.layoutExitMuteTriggers,xV:X.layoutExitUserInputSubmittedTriggers,VS:X.vn}}; qDw=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M){var m={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",JT:Q};S=[new tt(S),new Vx(h),new p1(R.externalVideoId),new yx(w),new gG({impressionCommands:R.impressionCommands,abandonCommands:R.onAbandonCommands,completeCommands:R.completeCommands,progressCommands:R.adVideoProgressCommands}),new Yv(Z),new Hc({current:null}),new kv(H)];(Z=R.playerOverlay.instreamAdPlayerOverlayRenderer)&&S.push(new f1(Z));(H=R.playerOverlay.playerOverlayLayoutRenderer)&&S.push(new DE(H)); Y&&S.push(new j$(Y));(Y=R.playerUnderlay)&&S.push(new NG(Y));w=XT(G.W.get(),"SLOT_TYPE_IN_PLAYER");Y=(Y=Z?Z.elementId:H==null?void 0:H.layoutId)?Y:C6(G.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w);S.push(new Ql(Y));S.push(new S$(w));S.push(new u2(h.adPodIndex));R.adNextParams&&S.push(new zj(R.adNextParams));R.shrunkenPlayerBytesConfig&&S.push(new $f(R.shrunkenPlayerBytesConfig));R.clickthroughEndpoint&&S.push(new cS(R.clickthroughEndpoint));R.legacyInfoCardVastExtension&&S.push(new zA(R.legacyInfoCardVastExtension)); R.sodarExtensionData&&S.push(new Mj(R.sodarExtensionData));k&&S.push(new Ei(k));S.push(new Bc(L9(R.pings)));h=ky(R.pings);if(M){a:{M=g.e(M);for(k=M.next();!k.done;k=M.next())if(k=k.value,k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(Z=g.y(k.fulfillmentContent.fulfilledLayout,Rk))&&(Z=g.y(Z.renderingContent,X2))&&Z.associatedPlayerBytesLayoutId===X){M=k;break a}M=void 0}M&&S.push(new At(M))}return{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",u6:h,layoutExitNormalTriggers:[new js(G.N,X)],layoutExitSkipTriggers:R.skipOffsetMilliseconds? [new u1(G.N,Y)]:[],layoutExitMuteTriggers:[new u1(G.N,Y)],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:Q,CG:S,UM:L(m),adLayoutLoggingData:R.adLayoutLoggingData}}; uIS=function(G,X,Q,R,S,Z,H,w,h){R.every(function(k){return p$(k,[],["LAYOUT_TYPE_MEDIA"])})||qQ("Unexpect subLayout type for DAI composite layout"); X=C6(G.W.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",X);var L={layoutId:X,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",JT:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",u6:new Map,layoutExitNormalTriggers:[new ZQ(G.N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],vn:[],JT:"core",clientMetadata:new D_([new mj(Q),new oP(w),new wG(R),new tt(S),new K$(Z),new Pc({}),new C$(h)]),UM:H(L)}}; YfG=function(G){return G!=null}; zW=function(G,X,Q){var R=this;this.W=G;this.Y=X;this.HM=Q;this.N=function(S){return Cv(R.W.get(),S)}}; FjZ=function(G,X,Q,R,S,Z,H){if(!Q.prefetchModeConfig)return new n("AdPlacementConfig for Live Prefetch is missing prefetch_config");Q=Q.prefetchModeConfig;R*=1E3;var w=[];if(!Q.breakLengthMs)return new n("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var h=g.e(Q.breakLengthMs),L=h.next();!L.done;L=h.next())if(L=L.value,Number(L)>0){var k=R+Number(Q.startTimeOffsetMs),Y=k+Number(Q.cacheFetchSmearingDurationMs);L={Lj:new uI(Y,Y+Number(L)),aE:!1,lD:new uI(Math.floor(k+Math.random()* Number(Q.cacheFetchSmearingDurationMs)),Y),cueProcessedMs:R?R:k};k=[];k.push(new dG({}));Y=[];Y.push(new ow(G.N));Y.push(new RzC(G.N));H&&k.push(new Pc({}));w.push(mS(G,X,S,L,Z,k,Y))}return w}; mS=function(G,X,Q,R,S,Z,H){Z=Z===void 0?[]:Z;var w=XT(G.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");H||(H=[],R.lD&&R.lD.start!==R.Lj.start&&H.push(new hp(G.N,Q,new uI(R.lD.start,R.Lj.start),!1)),H.push(new hp(G.N,Q,new uI(R.Lj.start,R.Lj.end),R.aE)));R={getAdBreakUrl:X.getAdBreakUrl,HX:R.Lj.start,zI:R.Lj.end,cueProcessedMs:R.cueProcessedMs};X=new z8(G.N,w);Z=[new rG(R)].concat(g.o0(Z));return{slotId:w,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:H, slotExpirationTriggers:[new Mc(G.N,Q),new sW(G.N,w),new T8(G.N,w)],JT:"core",clientMetadata:new D_(Z),adSlotLoggingData:S}}; hKX=function(G,X,Q){var R=[];Q=g.e(Q);for(var S=Q.next();!S.done;S=Q.next())R.push(wZ0(G,X,S.value));return R}; wZ0=function(G,X,Q){return Q.triggeringSlotId!=null&&Q.triggeringSlotId===G?Q.clone(X):Q}; XSS=function(G,X,Q,R,S){return L97(G,X,Q,R,S)}; kAX=function(G,X,Q,R){var S=XT(G.W.get(),"SLOT_TYPE_IN_PLAYER");return L97(G,S,X,Q,R)}; L97=function(G,X,Q,R,S){var Z=new Qh(G.N,Q),H=[new PE(G.N,X)];G=[new sW(G.N,X),new Mc(G.N,R)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:H,slotExpirationTriggers:G,JT:"core",clientMetadata:new D_([new e$(S({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:H,slotExpirationTriggers:G},Q))]),adSlotLoggingData:void 0}}; xjZ=function(G,X,Q,R,S,Z){var H=XT(G.W.get(),"SLOT_TYPE_PLAYER_BYTES"),w=XT(G.W.get(),"SLOT_TYPE_IN_PLAYER"),h=C6(G.W.get(),"LAYOUT_TYPE_SURVEY",w);R=c3(G,X,Q,R);var L=[new PE(G.N,H)];Q=[new sW(G.N,H),new Mc(G.N,Q),new i0(G.N,h)];if(R instanceof n)return R;w=Z({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:R,slotFulfillmentTriggers:L,slotExpirationTriggers:Q},{slotId:w,layoutId:h});Z=w.RdT;w=w.n9;return[{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:pv(G,X,H,R),slotFulfillmentTriggers:yO(G,X,H,L),slotExpirationTriggers:Q,JT:"core",clientMetadata:new D_([new e$(Z),new tr(fv(X)),new IP({ws:G.ws(X)})]),adSlotLoggingData:S},w]}; fv=function(G){return G.kind==="AD_PLACEMENT_KIND_START"}; zaG=function(G,X,Q,R,S){S=S?S:XT(G.W.get(),"SLOT_TYPE_IN_PLAYER");Q=new Qh(G.N,Q);var Z=[new PE(G.N,S)];G=[new Mc(G.N,X),new sW(G.N,S)];return{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:Z,slotExpirationTriggers:G,JT:"core",clientMetadata:new D_([new e$(R({slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:Z,slotExpirationTriggers:G}))])}}; ctl=function(G,X,Q,R){var S=XT(G.W.get(),"SLOT_TYPE_PLAYER_UNDERLAY");Q=new Qh(G.N,Q);var Z=[new PE(G.N,S)];G=[new Mc(G.N,X),new sW(G.N,S)];return{slotId:S,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:Z,slotExpirationTriggers:G,JT:"core",clientMetadata:new D_([new e$(R({slotId:S,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:Z,slotExpirationTriggers:G}))])}}; Tql=function(G,X,Q,R,S,Z,H){var w=XT(G.W.get(),"SLOT_TYPE_IN_PLAYER"),h=C6(G.W.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",w);R=k7X(G,R,Z,H,h);if(R instanceof n)return R;H=[new PE(G.N,w)];S=[new Mc(G.N,Z),new PE(G.N,S),new gk(G.N,S)];Q=Jr(Q,{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:S});G=G.Y.get();Z={layoutId:h,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",JT:"core"};X={layoutId:h,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", u6:new Map,layoutExitNormalTriggers:[new kVS(G.N,h,X.durationMs)],layoutExitSkipTriggers:[new j8T(G.N,h,X.durationMs)],vn:[new Y9w(G.N,h)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],JT:"core",clientMetadata:new D_([new cc(X)]),UM:Q(Z)};return{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:R,slotFulfillmentTriggers:H,slotExpirationTriggers:S,clientMetadata:new D_([new e$(X)])}}; wc0=function(G,X,Q,R,S,Z){X=c3(G,X,Q,R);if(X instanceof n)return X;var H=X instanceof hp?new w2T(G.N,Q,X.N):null;R=XT(G.W.get(),"SLOT_TYPE_IN_PLAYER");var w=[new PE(G.N,R)];G=[new Mc(G.N,Q),new sW(G.N,R)];Z=Z({slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:X,slotFulfillmentTriggers:w,slotExpirationTriggers:G},H);return Z instanceof f$?new n(Z):{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:w,slotExpirationTriggers:G, JT:"core",clientMetadata:new D_([new e$(Z)]),adSlotLoggingData:S}}; H$S=function(G,X,Q,R){var S=XT(G.W.get(),"SLOT_TYPE_IN_PLAYER"),Z=new JA(G.N,X),H=[new cE(G.N,S)];G=[new Mc(G.N,X),new sW(G.N,S)];return{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:H,slotExpirationTriggers:G,JT:"core",clientMetadata:new D_([new e$(R({slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:H,slotExpirationTriggers:G}))]),adSlotLoggingData:Q}}; qfw=function(G,X,Q,R){var S=XT(G.W.get(),"SLOT_TYPE_IN_PLAYER");Q=new Qh(G.N,Q);var Z=[new PE(G.N,S)],H=[new sW(G.N,S),new Mc(G.N,X)];Z={slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:Z,slotExpirationTriggers:H};return{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:[new PE(G.N,S)],slotExpirationTriggers:[new Mc(G.N,X),new sW(G.N,S)],JT:"core",clientMetadata:new D_([new e$(R(Z))])}}; SfZ=function(G,X,Q,R,S){var Z=XT(G.W.get(),"SLOT_TYPE_IN_PLAYER");Q=new Xl(G.N,R,Q);R=[new PE(G.N,Z)];G=[new Mc(G.N,X)];return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:R,slotExpirationTriggers:G,JT:"core",clientMetadata:new D_([new e$(S({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:R,slotExpirationTriggers:G}))])}}; JKZ=function(G,X,Q,R,S,Z){var H=XT(G.W.get(),X);return g9(G,H,X,new Qh(G.N,R),[new Mc(G.N,Q),new sW(G.N,H),new Rw(G.N,R,["error"])],S,Z)}; vJ0=function(G,X,Q,R,S,Z,H){var w=XT(G.W.get(),X);return g9(G,w,X,new Rw(G.N,S,["normal"]),[new Mc(G.N,Q),new sW(G.N,w),new Rw(G.N,R,["error"])],Z,H)}; AKX=function(G,X,Q,R,S){var Z=XT(G.W.get(),X);return g9(G,Z,X,new JA(G.N,Q),[new Mc(G.N,Q),new sW(G.N,Z)],R,S)}; QPw=function(G,X,Q,R,S){Q=Q?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var Z=XT(G.W.get(),Q);X=new JA(G.N,X);var H=[new PE(G.N,Z)];G=[new sW(G.N,Z)];return{slotId:Z,slotType:Q,slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:H,slotExpirationTriggers:G,JT:"core",clientMetadata:new D_([new e$(S({slotId:Z,slotType:Q,slotPhysicalPosition:1,JT:"core",slotEntryTrigger:X,slotFulfillmentTriggers:H,slotExpirationTriggers:G}))]),adSlotLoggingData:R}}; jKG=function(G,X,Q,R){var S=XT(G.W.get(),"SLOT_TYPE_PLAYER_BYTES"),Z=new wk(G.N),H=[new cE(G.N,S)];G=[new Mc(G.N,X)];return{slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:H,slotExpirationTriggers:G,JT:"core",clientMetadata:new D_([new e$(R({slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:H,slotExpirationTriggers:G})),new Pc({})]),adSlotLoggingData:Q}}; Kje=function(G,X){return l_l(G.HM.get())?new Rw(G.N,X,["normal","error","skipped"]):new Rw(G.N,X,["normal"])}; aEC=function(G,X,Q,R,S){X=Kje(G,X);G=W9(G,X,Q);S=S({slotId:G.slotId,slotType:G.slotType,slotPhysicalPosition:G.slotPhysicalPosition,slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:G.slotExpirationTriggers,JT:G.JT});return S instanceof n?S:{wf:Object.assign({},G,{clientMetadata:new D_([new e$(S.layout)]),adSlotLoggingData:R}),Sx:S.Sx}}; EfC=function(G,X,Q,R,S,Z,H){Q=epl(G,X,Q,R);if(Q instanceof n)return Q;H=H({slotId:Q.slotId,slotType:Q.slotType,slotPhysicalPosition:Q.slotPhysicalPosition,slotEntryTrigger:Q.slotEntryTrigger,slotFulfillmentTriggers:Q.slotFulfillmentTriggers,slotExpirationTriggers:Q.slotExpirationTriggers,JT:Q.JT});if(H instanceof n)return H;R=[new tr(fv(X)),new e$(H.layout),new IP({ws:G.ws(X)})];Z&&R.push(new Ui({}));return{wf:{slotId:Q.slotId,slotType:Q.slotType,slotPhysicalPosition:Q.slotPhysicalPosition,slotEntryTrigger:pv(G, X,Q.slotId,Q.slotEntryTrigger),slotFulfillmentTriggers:yO(G,X,Q.slotId,Q.slotFulfillmentTriggers),slotExpirationTriggers:Q.slotExpirationTriggers,JT:Q.JT,clientMetadata:new D_(R),adSlotLoggingData:S},Sx:H.Sx}}; pv=function(G,X,Q,R){return G.HM.get().DJ(fv(X))?new b0(G.N,Q):R}; yO=function(G,X,Q,R){return G.HM.get().DJ(fv(X))?[new cE(G.N,Q)]:R}; W9=function(G,X,Q){var R=XT(G.W.get(),"SLOT_TYPE_PLAYER_BYTES"),S=[new PE(G.N,R)];G=[new sW(G.N,R),new Mc(G.N,Q)];return{slotId:R,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:S,slotExpirationTriggers:G,JT:"core"}}; epl=function(G,X,Q,R){X=c3(G,X,Q,R);return X instanceof n?X:W9(G,X,Q)}; SiS=function(G,X,Q,R,S,Z){var H=XT(G.W.get(),"SLOT_TYPE_FORECASTING");X=c3(G,X,Q,R);if(X instanceof n)return X;R=[new PE(G.N,H)];G=[new sW(G.N,H),new Mc(G.N,Q)];return{slotId:H,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:R,slotExpirationTriggers:G,JT:"core",clientMetadata:new D_([new e$(Z({slotId:H,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,JT:"core",slotEntryTrigger:X,slotFulfillmentTriggers:R,slotExpirationTriggers:G}))]),adSlotLoggingData:S}}; YDl=function(G,X,Q,R,S){var Z=!X.hideCueRangeMarker;switch(X.kind){case "AD_PLACEMENT_KIND_START":return new JA(G.N,Q);case "AD_PLACEMENT_KIND_MILLISECONDS":return G=yK0(X,R),G instanceof n?G:S(G.Lj,Z);case "AD_PLACEMENT_KIND_END":return new G8(G.N,Q,Z);default:return new n("Cannot construct entry trigger",{kind:X.kind})}}; k7X=function(G,X,Q,R,S){return YDl(G,X,Q,R,function(Z,H){return new q9G(G.N,Q,Z,H,S)})}; c3=function(G,X,Q,R){return YDl(G,X,Q,R,function(S,Z){return new hp(G.N,Q,S,Z)})}; g9=function(G,X,Q,R,S,Z,H){G=[new cE(G.N,X)];return{slotId:X,slotType:Q,slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:G,slotExpirationTriggers:S,JT:"core",clientMetadata:new D_([new e$(H({slotId:X,slotType:Q,slotPhysicalPosition:1,JT:"core",slotEntryTrigger:R,slotFulfillmentTriggers:G,slotExpirationTriggers:S}))]),adSlotLoggingData:Z}}; ErG=function(){}; Uq=function(G,X){g.I.call(this);this.HM=G;this.N=X;this.eventCount=0;this.W=xVG()()}; je7=function(G,X,Q){if(X){var R=X.adLayoutLoggingData;g.D$(g.A7(),function(){G.W!=null&&R&&g.QL("adsSeenClientLogging",{serializedAdServingDataEntry:R.serializedAdServingDataEntry})},Q!=null?Q:0)}}; lM=function(G,X,Q,R){Uq.call(this,G,X);this.HM=G;this.lB=Q;this.context=R}; B3=function(){this.N=new Map}; FU=function(G){this.N="pending";this.W=[];this.Y=[];try{G(this.V.bind(this),this.reject.bind(this))}catch(X){this.reject(X)}}; MJe=function(){var G,X;return{f1:new FU(function(Q,R){G=Q;X=R}), resolve:G,reject:X}}; VX=function(G){return C_(G)?G:tT(G)?new FU(function(X,Q){G.then(X,Q)}):new FU(function(X){X(G)})}; Ig=function(G){return new FU(function(X,Q){Q(G)})}; d9=function(G){try{return VX(G())}catch(X){return Ig(X)}}; p_=function(G,X,Q){var R=MJe(),S=R.f1,Z=R.resolve,H=R.reject;G.W.push(function(w){if(X)try{var h=X(w);Z(h)}catch(L){H(L)}else Z(w)}); G.Y.push(function(w){if(Q)try{var h=Q(w);Z(h)}catch(L){H(L)}else H(w)}); W3(G);return S}; yX=function(G,X){return p_(G,void 0,X)}; m3C=function(G,X){p_(G,function(Q){return p_(VX(X()),function(){return Q})},function(Q){return p_(VX(X()),function(){return Ig(Q)})})}; W3=function(G){if(G.N==="fulfilled"){var X=G.W;G.W=[];G.Y=[];X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,Q(G.result)}else if(G.N==="rejected")for(X=G.Y,G.W=[],G.Y=[],X=g.e(X),Q=X.next();!Q.done;Q=X.next())Q=Q.value,Q(G.error)}; f_=function(G,X){return oUZ(X.call(G))}; DM=function(G){return function Q(){return dX(Q,function(R){if(R.W==1)return g.EC(R,2),g.l(R,{f1:VX(G)},4);if(R.W!=2)return R.return(R.N);g.FS(R);return g.tG(R,0)})}()}; oUZ=function(G){return d9(function(){return N8(G,G.next())})}; N8=function(G,X){return X.done?VX(X.value):yX(p_(X.value.f1,function(Q){return N8(G,G.next(Q))}),function(Q){return N8(G,G.throw(Q))})}; AT=function(G,X){if(G.length===0)return VX(NaN);var Q=MJe(),R=Q.f1,S=Q.resolve,Z=G.length;G=g.e(G.entries());var H=G.next();for(Q={};!H.done;Q={Tw:void 0},H=G.next()){var w=g.e(H.value);H=w.next().value;w=w.next().value;Q.Tw=H;m3C(w,function(h){return function(){R.N==="pending"&&(udl(X)&&X(h.Tw)&&R.N==="pending"?S(h.Tw):(--Z,Z===0&&S(NaN)))}}(Q))}return R}; n_=function(G){return G.map(function(X){return VX(X)})}; bM=function(G){var X=G.hours||0;var Q=G.minutes||0,R=G.seconds||0;X=R+Q*60+X*3600+(G.days||0)*86400+(G.weeks||0)*604800+(G.months||0)*2629800+(G.years||0)*31557600;X<=0?X={hours:0,minutes:0,seconds:0}:(G=X,X=Math.floor(G/3600),G%=3600,Q=Math.floor(G/60),R=Math.floor(G%60),X={hours:X,minutes:Q,seconds:R});var S=X.hours===void 0?0:X.hours;Q=X.minutes===void 0?0:X.minutes;G=X.seconds===void 0?0:X.seconds;R=S>0;X=[];if(R){S=(new Intl.NumberFormat("en-u-nu-latn")).format(S);var Z=["fr"],H="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); S="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($e)?S.replace(",","\u00a0"):Z.includes($e)?S.replace(",","\u202f"):H.includes($e)?S.replace(",","."):S;X.push(S)}R=R===void 0?!1:R;Q=(["af","be","lt"].includes($e)||R)&&Q<10?PT7().format(Q):(new Intl.NumberFormat("en-u-nu-latn")).format(Q);X.push(Q);Q=PT7().format(G);X.push(Q);Q=":";"da fi id si sr sr-Latn".split(" ").includes($e)&&(Q=".");return X.join(Q)}; PT7=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; seG=function(G,X){var Q,R;G=((Q=G.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(R=Q.videoAuthorizationToken)==null?void 0:R.credentialTransferTokens)||[];for(Q=0;QX;G=Q}else G=!1;return G}; g.Ym=function(G,X){return G.a$+"timedtext_video?ref=player&v="+X.videoId}; g.VJe=function(G){var X=this;this.videoData=G;G={};this.N=(G.c1a=function(){var Q=[];if(g.LR.isInitialized()){var R="";X.videoData&&X.videoData.Ai&&(R=X.videoData.Ai+("&r1b="+X.videoData.clientPlaybackNonce));var S={};R=(S.atr_challenge=R,S);cf("bg_v",void 0,"player_att");(R=tJw(R))?(cf("bg_s",void 0,"player_att"),Q.push("r1a="+R)):(cf("bg_e",void 0,"player_att"),Q.push("r1c=2"))}else cf("bg_e",void 0,"player_att"),window.trayride||window.botguard?Q.push("r1c=1"):Q.push("r1c=4");Q.push("r1d="+g.LR.getState()); return Q.join("&")},G.c6a=function(Q){return"r6a="+(Number(Q.c)^nJ())},G.c6b=function(Q){return"r6b="+(Number(Q.c)^Number(g.WO("CATSTAT",0)))},G); this.videoData&&this.videoData.Ai?this.Aw=$r(this.videoData.Ai):this.Aw={}}; g.IyC=function(G){if(G.videoData&&G.videoData.Ai){for(var X=[G.videoData.Ai],Q=g.e(Object.keys(G.N)),R=Q.next();!R.done;R=Q.next())R=R.value,G.Aw[R]&&G.N[R]&&(R=G.N[R](G.Aw))&&X.push(R);return X.join("&")}return null}; g.j9=function(G,X){CTC(G,{oOB:g.i2(X.experiments,"bg_vm_reinit_threshold"),cspNonce:X.cspNonce,a$:X.a$||""})}; d3Z=function(){var G=XMLHttpRequest.prototype.fetch;return!!G&&G.length===3}; W9l=function(G){G=G[q[21]](q[0]);Mg[q[42]](G,55);Mg[q[47]](G,63);Mg[q[42]](G,12);Mg[q[42]](G,56);Mg[q[42]](G,44);return G[q[13]](q[0])}; ykX=function(G){pZC=2592E3*(G||1)}; mr=function(G){G=G===void 0?pZC:G;if(G>0&&!(ylG()>(0,g.TB)()-G*1E3))return 0;G=g.xL("yt-player-quality");if(typeof G==="string"){if(G=g.FZ[G],G>0)return G}else if(G instanceof Object)return G.quality;return 0}; o_=function(){var G=g.xL("yt-player-proxima-pref");return G==null?null:G}; fyy=function(){var G=g.xL("yt-player-quality");if(G instanceof Object&&G.quality&&G.previousQuality){if(G.quality>G.previousQuality)return 1;if(G.quality0&&X[0]?G.getAutoplayPolicy(X[0]):G.getAutoplayPolicy("mediaelement");if(Jk0[Q])return Jk0[Q]}}catch(R){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; r$=function(G){return G.hE||G.mD||G.mutedAutoplay}; i6S=function(G,X){return r$(G)?X!==1&&X!==2&&X!==0?"AUTOPLAY_STATUS_UNAVAILABLE":G.Gf?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; G5S=function(G,X,Q){var R=X.Z();G.thirdParty||(G.thirdParty={});R.ancestorOrigins&&(G.thirdParty.embeddedPlayerContext=Object.assign({},G.thirdParty.embeddedPlayerContext,{ancestorOrigins:R.ancestorOrigins}));R.G("embeds_enable_autoplay_and_visibility_signals")&&(R.Z1!=null&&(G.thirdParty.embeddedPlayerContext=Object.assign({},G.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(R.Z1)})),R.Ku&&(G.thirdParty.embeddedPlayerContext=Object.assign({},G.thirdParty.embeddedPlayerContext,{visibilityFractionSource:R.Ku})), G.thirdParty.embeddedPlayerContext=Object.assign({},G.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:e9(),autoplayIntended:r$(X),autoplayStatus:i6S(X,Q)}))}; XKT=function(G){var X=[];G=g.e(G.split(","));for(var Q=G.next();!Q.done;Q=G.next()){var R=Q.value;R&&((Q=R.startsWith("!"))&&(R=R.substring(1)),R=R.split("-"),R.length<3||X.push({M6:R[0],platform:R[1],deviceVersion:R[2],wz:Q}))}return X}; S0C=function(G){return XKT(G).map(function(X){return{deviceInterface:QQG[R5Z[X.M6]]||0,deviceVersion:X.deviceVersion||"",isSleeping:X.wz}})}; g.a_=function(G,X){this.id=G;this.kP=X;this.captionTracks=[];this.Y=this.V=null;this.xtags="";this.C=!1;this.N=null;this.W="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";G=this.kP.id.split(".");G.length>1&&(this.C=G[1]==="2")}; E4=function(G,X,Q,R,S){this.W=G;this.N=X;this.Y=Q;this.reason=R;this.jA=S===void 0?0:S}; g.xm=function(G,X,Q,R){return new E4(g.FZ[G]||0,g.FZ[X]||0,Q,R)}; z1=function(G){if(O4&&G.jA)return!1;var X=g.FZ.auto;return G.W===X&&G.N===X}; g$=function(G){return c_[G.N||G.W]||"auto"}; Z9w=function(G,X){X=g.FZ[X];return G.W<=X&&(!G.N||G.N>=X)}; U4=function(G){return"["+G.W+"-"+G.N+", override: "+(G.Y+", reason: "+G.reason+"]")}; lF=function(G,X,Q,R){this.videoInfos=G;this.N=X;this.audioTracks=[];this.W=R||[];if(this.N){G=new Set;Q==null||Q({ainfolen:this.N.length});X=g.e(this.N);for(R=X.next();!R.done;R=X.next())if(R=R.value,!R.kP||G.has(R.kP.id)){var S=void 0,Z=void 0,H=void 0;(H=Q)==null||H({atkerr:!!R.kP,itag:R.itag,xtag:R.N,lang:((S=R.kP)==null?void 0:S.name)||"",langid:((Z=R.kP)==null?void 0:Z.id)||""})}else S=new g.a_(R.id,R.kP),G.add(R.kP.id),this.audioTracks.push(S);Q==null||Q({atklen:this.audioTracks.length})}}; B_=function(){g.I.apply(this,arguments);this.N=null}; h5Z=function(G,X,Q,R,S,Z,H){if(G.N)return G.N;var w={},h=new Set,L={};if(Fy(R)){for(var k in R.N)R.N.hasOwnProperty(k)&&(G=R.N[k],L[G.info.ZC]=[G.info]);return L}k=H90(X,R,w);Z&&S({aftsrt:CR(k)});for(var Y={},M=g.e(Object.keys(k)),m=M.next();!m.done;m=M.next()){m=m.value;for(var u=g.e(k[m]),r=u.next();!r.done;r=u.next()){r=r.value;var x=r.itag,c=void 0,z=m+"_"+(((c=r.video)==null?void 0:c.fps)||0);Y.hasOwnProperty(z)?Y[z]===!0?L[m].push(r):w[x]=Y[z]:(c=tX(X,r,Q,R.isLive,h),c!==!0?(H.add(m),w[x]=c, c==="disablevp9hfr"&&(Y[z]="disablevp9hfr")):(L[m]=L[m]||[],L[m].push(r),Y[z]=!0))}}Z&&S({bfflt:CR(L)});for(var B in L)L.hasOwnProperty(B)&&(R=B,L[R]&&L[R][0].oC()&&(L[R]=L[R],L[R]=q0i(X,L[R],w),L[R]=wKZ(L[R],w)));Z&&Object.keys(w).length>0&&S({rjr:kE(w)});X=g.e(h.values());for(R=X.next();!R.done;R=X.next())(R=Q.V.get(R.value))&&--R.wp;Z&&S({aftflt:CR(L)});G.N=g.Xm(L,function(V){return!!V.length}); return G.N}; k5l=function(G,X,Q,R,S,Z,H,w){w=w===void 0?!1:w;if(X.Xq&&H&&H.length>1&&!(X.V1>0||X.T)){for(var h=X.W||!!S,L=h&&X.F7?Z:void 0,k=H90(X,R),Y=[],M=[],m={},u=0;u0&&m&&M&&(k=[H,Q],V=M.concat(m).filter(function(p){return p})); if(V.length&&!X.TO){d$(V,k);if(h){h=[];X=g.e(V);for(R=X.next();!R.done;R=X.next())h.push(R.value.itag);Z({hbdfmt:h.join(".")})}return Eh(new lF(V,S,L,G))}V=KMC(X);V=g.Ka(V,w);if(!V){if(Y[H])return Z=Y[H],d$(Z),Eh(new lF(Z,S,L,G));h&&Z({novideo:1});return am()}X.kS&&(V==="1"||V==="1h")&&Y[Q]&&(H=W_(Y[V]),k=W_(Y[Q]),k>H?V=Q:k===H&&e50(Y[Q])&&(V=Q));V==="9"&&Y.h&&W_(Y.h)>W_(Y["9"])&&(V="h");X.N9&&R.isLive&&V==="("&&Y.H&&W_(Y["("])<1440&&(V="H");h&&Z({vfmly:pR(V)});X=Y[V];if(!X.length)return h&&Z({novfmly:pR(V)}), am();d$(X);return Eh(new lF(X,S,L,G))}; jQi=function(G,X){var Q=!(!G.m&&!G.M),R=!(!G.mac3&&!G.MAC3),S=!(!G.meac3&&!G.MEAC3);G=!(!G.i&&!G.I);X.Mj=G;return Q||R||S||G}; e50=function(G){G=g.e(G);for(var X=G.next();!X.done;X=G.next())if(X=X.value,X.itag&&rFV.has(X.itag))return!0;return!1}; mUC=function(G){G=g.e(G);for(var X=G.next();!X.done;X=G.next())if(X.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; pR=function(G){switch(G){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return G}}; CR=function(G){var X=[],Q;for(Q in G)if(G.hasOwnProperty(Q)){var R=Q;X.push(pR(R));R=g.e(G[R]);for(var S=R.next();!S.done;S=R.next())X.push(S.value.itag)}return X.join(".")}; Y0y=function(G,X,Q,R,S,Z){var H={},w={};g.Gn(X,function(h,L){h=h.filter(function(k){var Y=k.itag;if(!k.sT)return w[Y]="noenc",!1;if(Z.C7&&k.ZC==="(h"&&Z.As)return w[Y]="lichdr",!1;if(!G.C&&k.ZC==="1e")return w[Y]="noav1enc",!1;if(k.ZC==="("||k.ZC==="(h"){if(G.Y&&Q&&Q.flavor==="widevine"){var M=k.mimeType+"; experimental=allowed";(M=!!k.sT[Q.flavor]&&!!Q.N[M])||(w[Y]=k.sT[Q.flavor]?"unspt":"noflv");return M}if(!ys(G,fR.CRYPTOBLOCKFORMAT)&&!G.Mi||G.Yc)return w[Y]=G.Yc?"disvp":"vpsub",!1}return Q&&k.sT[Q.flavor]&& Q.N[k.mimeType]?!0:(w[Y]=Q?k.sT[Q.flavor]?"unspt":"noflv":"nosys",!1)}); h.length&&(H[L]=h)}); R&&Object.entries(w).length&&S({rjr:kE(w)});return H}; wKZ=function(G,X){var Q=TX(G,function(R,S){return S.video.fps>32?Math.min(R,S.video.width):R},Infinity); Q32||R.video.widthG.S)return"max"+G.S;if(G.BM&&X.ZC==="h"&&X.video&&X.video.qualityOrdinal>1080)return"blkhigh264";if(X.ZC==="(h"&&!Q.J)return"enchdr";if((R===void 0?0:R)&&Nr(X)&&!G.IU)return"blk51live";if((X.ZC==="MAC3"||X.ZC==="mac3")&&!G.V)return"blkac3";if((X.ZC==="MEAC3"||X.ZC==="meac3")&&!G.C)return"blkeac3";if(X.ZC==="M"||X.ZC==="m")return"blkaac51"; if((X.ZC==="so"||X.ZC==="sa")&&!G.AT)return"blkamb";if(!G.C7&&xQC(X)&&(!Q.C||X.ZC!=="1e"))return"cbc";if(!Q.C&&xQC(X)&&X.ZC==="1e")return"cbcav1";if((X.ZC==="i"||X.ZC==="I")&&!G.Js)return"blkiamf";var Z;if(G.Ps&&((Z=X.audio)==null?void 0:Z.W)===!0)return"blkvbcabr";var H,w;if(G.Xm&&(X.ZC==="1"||X.ZC==="1h"||Q.C&&X.ZC==="1e")&&((H=X.video)==null?0:H.qualityOrdinal)&&((w=X.video)==null?void 0:w.qualityOrdinal)>G.Xm)return"av1cap";R=Q.V.get(X.ZC);if(!G.Hs&&R&&R.wp>0)return S.add(X.ZC),"byerr";var h; if((h=X.video)==null?0:h.fps>32){if(!Q.DC&&!ys(Q,fR.FRAMERATE))return"capHfr";if(G.cM&&X.video.qualityOrdinal>=4320)return"blk8khfr";if(Wj(X)&&G.fd&&X.sT&&X.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(G.jA&&X.jA>G.jA)return"ratecap";if(G.Yc>0&&X.oC()&&X.video.height>G.Yc)return"mvhcap";G=aX0(Q,X);return G!==!0?G:!0}; d$=function(G,X){X=X===void 0?[]:X;g.na(G,function(Q,R){var S=R.jA-Q.jA;if(!Q.oC()||!R.oC())return S;var Z=R.video.height*R.video.width-Q.video.height*Q.video.width;!Z&&X&&X.length>0&&(Q=X.indexOf(Q.ZC)+1,R=X.indexOf(R.ZC)+1,Z=Q===0||R===0?R||-1:Q-R);Z||(Z=S);return Z})}; g.D1=function(G,X){this[q[9]]=G;this[q[61]]=X===void 0?!1:X;this[q[14]]=this[q[3]]=this[q[11]]=q[0];this[q[38]]={};this[q[28]]=q[0]}; AX=function(G){Ng(G);return G[q[14]]}; nR=function(G){return G[q[9]]?G[q[9]][q[8]](q[53]):G[q[11]]===q[53]}; EyT=function(G){Ng(G);return g.RB(G[q[38]],function(X){return X!==null})}; $m=function(G){Ng(G);var X=decodeURIComponent(G[q[31]](q[80])||q[0])[q[21]](q[55]);return G[q[3]]===q[18]&&X[q[12]]>1&&!!X[1]}; bF=function(G,X){X=X===void 0?!1:X;Ng(G);if(G[q[3]]!==q[18]){var Q=G[q[39]]();Q[q[2]](q[88],q[5]);return Q}var R=G[q[58]]();Q=new g.iw(R);var S=G[q[31]](q[81]),Z=decodeURIComponent(G[q[31]](q[80])||q[0])[q[21]](q[55]);if(S&&Z&&Z[q[12]]>1&&Z[1])return R=Q.N,G=R[q[36]](/^[^.]*/,q[0]),g.Xt(Q,(R[q[27]](q[66])===0?q[66]:q[25])+S+q[45]+Z[1]+G),Q=new g.D1(Q[q[54]]()),Q[q[2]](q[41],q[5]),Q;if(X)return Q=G[q[39]](),Q[q[2]](q[41],q[5]),Q;S=Q.N[q[19]](q[68]);Q.N[q[19]](q[78])?(g.Xt(Q,q[1]),R=Q[q[54]]()):Q.N[q[19]](q[62])? (g.Xt(Q,q[82]),R=Q[q[54]]()):(Q=sUw(R),Ie(Q)&&(R=Q));Q=new g.D1(R);Q[q[2]](q[6],q[5]);S&&Q[q[2]](q[30],q[87]);return Q}; Ng=function(G){if(G[q[9]]){if(!(Ie(G[q[9]])||G[q[9]][q[8]](q[53])||G[q[9]][q[8]](q[50])||G[q[9]][q[8]](q[74])))throw new g.Ic(q[51],G[q[9]]);var X=g.wv(G[q[9]]);G[q[11]]=X.C;G[q[14]]=X.N+(X.Y!=null?q[63]+X.Y:q[0]);var Q=X.W;if(Q[q[8]](q[18]))G[q[3]]=q[18],Q=Q[q[33]](14);else if(Q[q[8]](q[46]))G[q[3]]=q[46],Q=Q[q[33]](13);else if(Q[q[8]](q[77])){var R=Q[q[27]](q[37],12),S=Q[q[27]](q[37],R+1);R>0&&S>0?(G[q[3]]=Q[q[33]](0,S),Q=Q[q[33]](S+1)):(G[q[3]]=Q,Q=q[0])}else G[q[3]]=Q,Q=q[0];R=G[q[38]];G[q[38]]= xUZ(Q);Object[q[86]](G[q[38]],O9Z(X.V.toString()));Object[q[86]](G[q[38]],R);G[q[38]][q[4]]===q[84]&&(delete G[q[38]][q[4]],G[q[3]]+=q[67]);G[q[9]]=q[0];G[q[28]]=q[0];G[q[61]]&&(Ng(G),X=G[q[38]][q[32]]||null)&&(X=z5T[0](X),G[q[2]](q[32],X))}}; cFl=function(G){Ng(G);var X=G[q[11]]+(G[q[11]]?q[26]:q[89])+G[q[14]]+G[q[3]];if(EyT(G)){var Q=[];g.Gn(G[q[38]],function(R,S){R!==null&&Q[q[34]](S+q[7]+R)}); X+=q[73]+Q[q[13]](q[17])}return X}; xUZ=function(G){G=G[q[21]](q[37]);var X=0;G[0]||X++;for(var Q={};X0?gyG(X,R[q[33]](0,S),R[q[33]](S+1)):R&&(X[R]=q[0])}return X}; gyG=function(G,X,Q){if(X===q[71]){var R;(R=Q[q[27]](q[7]))>=0?(X=q[24]+Q[q[33]](0,R),Q=Q[q[33]](R+1)):(R=Q[q[27]](q[76]))>=0&&(X=q[24]+Q[q[33]](0,R),Q=Q[q[33]](R+3))}G[X]=Q}; v_=function(G){var X=g.y(G,UUi)||G[q[52]];G={QP:!1,qn:q[0],zL:q[0],s:q[0]};if(!X)return G;X=$r(X);G[q[43]]=!0;G[q[22]]=X[q[28]];G[q[23]]=X[q[85]];G[q[49]]=X[q[49]];return G}; JX=function(G,X,Q,R,S,Z,H,w,h){this.oU=G;this.startTime=X;this.duration=Q;this.ingestionTime=R;this.sourceURL=S;this.AS=h;this.endTime=X+Q;this.N=H||0;this.range=Z||null;this.pending=w||!1;this.AS=h||null}; g.iF=function(){this.segments=[];this.N=null;this.W=!0;this.Y=""}; lXX=function(G,X){if(X>G.i9())G.segments=[];else{var Q=T3(G.segments,function(R){return R.oU>=X},G); Q>0&&G.segments.splice(0,Q)}}; GM=function(G,X,Q,R,S){S=S===void 0?!1:S;this.data=G;this.offset=X;this.size=Q;this.type=R;this.N=(this.W=S)?0:8;this.dataOffset=this.offset+this.N}; XF=function(G){var X=G.data.getUint8(G.offset+G.N);G.N+=1;return X}; QA=function(G){var X=G.data.getUint16(G.offset+G.N);G.N+=2;return X}; Rj=function(G){var X=G.data.getInt32(G.offset+G.N);G.N+=4;return X}; S4=function(G){var X=G.data.getUint32(G.offset+G.N);G.N+=4;return X}; Z9=function(G){var X=G.data;var Q=G.offset+G.N;X=X.getUint32(Q)*4294967296+X.getUint32(Q+4);G.N+=8;return X}; Hr=function(G,X){X=X===void 0?NaN:X;if(isNaN(X))var Q=G.size;else for(Q=G.N;Q1?Math.ceil(S*X):Math.floor(S*X))}G.skip(1);Q=XF(G)<<16|QA(G);if(Q&256){R=Q&1;S=Q&4;var Z=Q&512,H=Q&1024,w=Q&2048;Q=S4(G);R&&G.skip(4);S&&G.skip(4);R=(Z?4:0)+(H?4:0)+(w?4:0);for(S=0;S1?Math.ceil(H*X):Math.floor(H*X)),G.skip(R)}}}; M7=function(G){G=new DataView(G.buffer,G.byteOffset,G.byteLength);return(G=g.YX(G,0,1836476516))?g.j4(G):NaN}; DUG=function(G){var X=g.YX(G,0,1937011556);if(!X)return null;X=mu(G,X.dataOffset+8,1635148593)||mu(G,X.dataOffset+8,1635135537);if(!X)return null;var Q=mu(G,X.dataOffset+78,1936995172),R=mu(G,X.dataOffset+78,1937126244);if(!R)return null;X=null;if(Q)switch(Q.skip(4),XF(Q)){default:X=0;break;case 1:X=2;break;case 2:X=1;break;case 3:X=255}var S=Q=null,Z=null;if(R=mu(G,R.dataOffset,1886547818)){var H=mu(G,R.dataOffset,1886546020),w=mu(G,R.dataOffset,2037673328);if(!w&&(w=mu(G,R.dataOffset,1836279920), !w))return null;H&&(H.skip(4),Q=Rj(H)/65536,Z=Rj(H)/65536,S=Rj(H)/65536);G=BNi(w);G=new DataView(G.buffer,G.byteOffset+8,G.byteLength-8);return new yFl(X,Q,Z,S,G)}return null}; mu=function(G,X,Q){for(;oj(G,X);){var R=uo(G,X);if(R.type===Q)return R;X+=R.size}return null}; g.YX=function(G,X,Q){for(;oj(G,X);){var R=uo(G,X);if(R.type===Q)return R;X=Pr(R.type)?X+8:X+R.size}return null}; g.sP=function(G){if(G.data.getUint8(G.dataOffset)){var X=G.data;G=G.dataOffset+4;X=X.getUint32(G)*4294967296+X.getUint32(G+4)}else X=G.data.getUint32(G.dataOffset+4);return X}; uo=function(G,X){var Q=G.getUint32(X),R=G.getUint32(X+4);return new GM(G,X,Q,R)}; g.j4=function(G){var X=G.data.getUint8(G.dataOffset)?20:12;return G.data.getUint32(G.dataOffset+X)}; NNC=function(G){G=new GM(G.data,G.offset,G.size,G.type,G.W);var X=XF(G);G.skip(7);var Q=S4(G);if(X===0){X=S4(G);var R=S4(G)}else X=Z9(G),R=Z9(G);G.skip(2);for(var S=QA(G),Z=[],H=[],w=0;w122)return!1}return!0}; Pr=function(G){return G===1701082227||G===1836019558||G===1836019574||G===1835297121||G===1835626086||G===1937007212||G===1953653094||G===1953653099||G===1836475768}; AFl=function(G){G.skip(4);return{TS_:Hr(G,0),value:Hr(G,0),timescale:S4(G),mRb:S4(G),eventDuration:S4(G),id:S4(G),Bk:Hr(G),offset:G.offset}}; g.nyC=function(G){var X=mu(G,0,1701671783);if(!X)return null;var Q=AFl(X),R=Q.TS_;Q=kX(Q.Bk);if(G=mu(G,X.offset+X.size,1701671783))if(G=AFl(G),G=kX(G.Bk),Q&&G){X=g.e(Object.keys(G));for(var S=X.next();!S.done;S=X.next())S=S.value,Q[S]=G[S]}return Q?new Lf(Q,R):null}; TM=function(G,X){for(var Q=mu(G,0,X);Q;){var R=Q;R.type=1936419184;R.data.setUint32(R.offset+4,1936419184);Q=mu(G,Q.offset+Q.size,X)}}; g.Kf=function(G,X){for(var Q=0,R=[];oj(G,Q);){var S=uo(G,Q);S.type===X&&R.push(S);Q=Pr(S.type)?Q+8:Q+S.size}return R}; $UU=function(G,X){var Q=g.YX(G,0,1937011556),R=g.YX(G,0,1953654136);if(!Q||!R||G.getUint32(Q.offset+12)>=2)return null;var S=new DataView(X.buffer,X.byteOffset,X.length),Z=g.YX(S,0,1937011556);if(!Z)return null;X=S.getUint32(Z.dataOffset+8);R=S.getUint32(Z.dataOffset+12);if(R!==1701733217&&R!==1701733238)return null;R=new FMC(G.byteLength+X);q7(R,G,0,Q.offset+12);R.data.setInt32(R.offset,2);R.offset+=4;q7(R,G,Q.offset+16,Q.size-16);q7(R,S,S.byteOffset+Z.dataOffset+8,X);q7(R,G,Q.offset+Q.size,G.byteLength- (Q.offset+Q.size));Q=g.e([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(S=Q.next();!S.done;S=Q.next())S=g.YX(G,0,S.value),R.data.setUint32(S.offset,S.size+X);G=g.YX(R.data,0,1953654136);R.data.setUint32(G.offset+16,2);return R.data}; b9T=function(G){var X=g.YX(G,0,1937011556);if(!X)return null;var Q=G.getUint32(X.dataOffset+12);if(Q!==1701733217&&Q!==1701733238)return null;X=mu(G,X.offset+24+(Q===1701733217?28:78),1936289382);if(!X)return null;Q=mu(G,X.offset+8,1935894637);if(!Q||G.getUint32(Q.offset+12)!==1667392371)return null;X=mu(G,X.offset+8,1935894633);if(!X)return null;X=mu(G,X.offset+8,1952804451);if(!X)return null;Q=new Uint8Array(16);for(var R=0;R<16;R++)Q[R]=G.getInt8(X.offset+16+R);return Q}; e4=function(G,X){this.N=G;this.pos=0;this.start=X||0}; rK=function(G){return G.pos>=G.N.byteLength}; zM=function(G,X,Q){var R=new e4(Q);if(!aj(R,G))return!1;R=EP(R);if(!xX(R,X))return!1;for(G=0;X;)X>>>=8,G++;X=R.start+R.pos;var S=OP(R,!0);R=G+(R.start+R.pos-X)+S;R=R>9?vyU(R-9,8):vyU(R-2,1);G=X-G;Q.setUint8(G++,236);for(X=0;XQ;S++)Q=Q*256+Br(G),R*=128;return X?Q-R:Q}; gK=function(G){var X=OP(G,!0);G.pos+=X}; GgU=function(G){if(!xX(G,440786851,!0))return null;var X=G.pos;OP(G,!1);var Q=OP(G,!0)+G.pos-X;G.pos=X+Q;if(!xX(G,408125543,!1))return null;OP(G,!0);if(!xX(G,357149030,!0))return null;var R=G.pos;OP(G,!1);var S=OP(G,!0)+G.pos-R;G.pos=R+S;if(!xX(G,374648427,!0))return null;var Z=G.pos;OP(G,!1);var H=OP(G,!0)+G.pos-Z,w=new Uint8Array(Q+12+S+H),h=new DataView(w.buffer);w.set(new Uint8Array(G.N.buffer,G.N.byteOffset+X,Q));h.setUint32(Q,408125543);h.setUint32(Q+4,33554431);h.setUint32(Q+8,4294967295); w.set(new Uint8Array(G.N.buffer,G.N.byteOffset+R,S),Q+12);w.set(new Uint8Array(G.N.buffer,G.N.byteOffset+Z,H),Q+12+S);return w}; FF=function(G){var X=G.pos;G.pos=0;var Q=1E6;aj(G,[408125543,357149030,2807729])&&(Q=cr(G));G.pos=X;return Q}; Xj7=function(G,X){var Q=G.pos;G.pos=0;if(G.N.getUint8(G.pos)!==160&&!Cf(G)||!xX(G,160))return G.pos=Q,NaN;OP(G,!0);var R=G.pos;if(!xX(G,161))return G.pos=Q,NaN;OP(G,!0);Br(G);var S=Br(G)<<8|Br(G);G.pos=R;if(!xX(G,155))return G.pos=Q,NaN;R=cr(G);G.pos=Q;return(S+R)*X/1E9}; Cf=function(G){if(!QEC(G)||!xX(G,524531317))return!1;OP(G,!0);return!0}; QEC=function(G){if(G.iA()){if(!xX(G,408125543))return!1;OP(G,!0)}return!0}; aj=function(G,X){for(var Q=0;Q0){var R=O9Z(X.substring(Q+1));g.Gn(R,function(S,Z){this.set(Z,S)},G); X=X.substring(0,Q)}X=xUZ(X);g.Gn(X,function(S,Z){this.set(Z,S)},G)}; SAG=function(G){var X=G.JR.Rt(),Q=[];g.Gn(G.N,function(S,Z){Q.push(Z+"="+S)}); if(!Q.length)return X;var R=Q.join("&");G=EyT(G.JR)?"&":"?";return X+G+R}; VA=function(G,X){var Q=new g.D1(X);(X=Q.get("req_id"))&&G.set("req_id",X);g.Gn(G.N,function(R,S){Q["set"](S,null)}); return Q}; ZPZ=function(){this.V=this.Y=this.N=this.timedOut=this.started=this.C=this.W=0}; Ij=function(G){G.C=(0,g.TB)();G.started=0;G.timedOut=0;G.N=0}; dK=function(G,X){var Q=G.started+G.N*4;X&&(Q+=G.Y);Q=Math.max(0,Q-3);return Math.pow(1.6,Q)}; Wr=function(G,X){G[X]||(G[X]=new ZPZ);return G[X]}; pf=function(G){this.j=this.J=this.C=this.Y=0;this.T=this.S=!1;this.N=G;this.W=G.clone()}; HPi=function(G,X,Q){if(nR(G.N))return!1;var R=Wr(Q,AX(G.N));if(R.timedOut<1&&R.N<1)return!1;R=R.timedOut+R.N;G=yA(G,X);Q=Wr(Q,AX(G));return Q.timedOut+Q.N+01?X=X.A_:(Q=Wr(Q,D9(G,G.TZ(X,Q),X)),X=Math.max(G.C,Q.timedOut)+X.j7*(G.Y-G.C)+.25*G.J,X=X>3?1E3*Math.pow(1.6,X-3):0);return X===0?!0:G.j+X<(0,g.TB)()}; qAV=function(G,X,Q){G.N.set(X,Q);G.W.set(X,Q);G.V&&G.V.set(X,Q)}; wjU=function(G,X,Q,R,S){++G.Y;X&&++G.C;AX(Q.JR).startsWith("redirector.")&&(G.N=G.W.clone(),delete G.V,R.J$&&delete S[AX(G.N)])}; AQ=function(G){return G?(G.itag||"")+";"+(G.lmt||0)+";"+(G.xtags||""):""}; nf=function(G,X,Q,R){this.initRange=Q;this.indexRange=R;this.N=null;this.Y=!1;this.S=0;this.V=this.KI=this.W=null;this.info=X;this.xP=new pf(G)}; $X=function(G,X){this.start=G;this.end=X;this.length=X-G+1}; bo=function(G){G=G.split("-");var X=Number(G[0]),Q=Number(G[1]);if(!isNaN(X)&&!isNaN(Q)&&G.length===2&&(G=new $X(X,Q),!isNaN(G.start)&&!isNaN(G.end)&&!isNaN(G.length)&&G.length>0))return G}; vr=function(G,X){return new $X(G,G+X-1)}; hZX=function(G){return G.end==null?{start:String(G.start)}:{start:String(G.start),end:String(G.end)}}; JQ=function(G){if(!G)return new $X(0,0);var X=Number(G.start);G=Number(G.end);if(!isNaN(X)&&!isNaN(G)&&(X=new $X(X,G),X.length>0))return X}; io=function(G,X,Q,R,S,Z,H,w,h,L,k,Y){R=R===void 0?"":R;this.type=G;this.N=X;this.range=Q;this.source=R;this.OG=k;this.clipId=Y===void 0?"":Y;this.j=[];this.J="";this.oU=-1;this.AT=0;this.J=R;this.oU=S>=0?S:-1;this.startTime=Z||0;this.duration=H||0;this.W=w||0;this.Y=h>=0?h:this.range?this.range.length:NaN;this.V=this.range?this.W+this.Y===this.range.length:L===void 0?!!this.Y:L;this.range?(this.C=this.startTime+this.duration*this.W/this.range.length,this.T=this.duration*this.Y/this.range.length,this.S= this.C+this.T):LBy(this)}; LBy=function(G){G.C=G.startTime;G.T=G.duration;G.S=G.C+G.T}; kgi=function(G,X,Q){var R=!(!X||X.N!==G.N||X.type!==G.type||X.oU!==G.oU);return Q?R&&!!X&&(G.range&&X.range?X.range.end===G.range.end:X.range===G.range)&&X.W+X.Y===G.W+G.Y:R}; Gu=function(G){return G.type===1||G.type===2}; XN=function(G){return G.type===3||G.type===6}; QC=function(G,X){return G.N===X.N?G.range&&X.range?G.range.start+G.W+G.Y===X.range.start+X.W:G.oU===X.oU?G.W+G.Y===X.W:G.oU+1===X.oU&&X.W===0&&G.V:!1}; jEV=function(G,X){return G.oU!==X.oU&&X.oU!==G.oU+1||G.type!==X.type?!1:QC(G,X)?!0:Math.abs(G.C-X.C)<=1E-6&&G.oU===X.oU?!1:YAG(G,X)}; YAG=function(G,X){return QC(G,X)||Math.abs(G.S-X.C)<=1E-6||G.oU+1===X.oU&&X.W===0&&G.V?!0:!1}; RW=function(G){return G.oU+(G.V?1:0)}; M0G=function(G){G.length===1||g.so(G,function(Q){return!!Q.range}); for(var X=1;X=X.range.start+X.W&&G.range.start+G.W+G.Y<=X.range.start+X.W+X.Y:G.oU===X.oU&&G.W>=X.W&&(G.W+G.Y<=X.W+X.Y||X.V)}; KBU=function(G,X){return G.N!==X.N?!1:G.type===4&&X.type===3&&G.N.pL()?(G=G.N.UZ(G),p0(G,function(Q){return KBU(Q,X)})):G.oU===X.oU&&!!X.Y&&X.W+X.Y>G.W&&X.W+X.Y<=G.W+G.Y}; Zk=function(G,X){var Q=X.oU;G.J="updateWithSegmentInfo";G.oU=Q;if(G.startTime!==X.startTime||G.duration!==X.duration)G.startTime=X.startTime+0,G.duration=X.duration,LBy(G)}; HB=function(G,X){var Q=this;this.LO=G;this.V=this.N=null;this.C=this.WF=NaN;this.TZ=this.requestId=null;this.gh={JiM:function(){return Q.range}}; this.xP=G[0].N.xP;this.W=X||"";this.LO[0].range&&this.LO[0].Y>0&&(mrZ(G)?(this.range=M0G(G),this.Y=this.range.length):(this.range=this.LO[this.LO.length-1].range,this.Y=oEG(G)))}; q9=function(G){return!Gu(G.LO[G.LO.length-1])}; w0=function(G){return G.LO[G.LO.length-1].type===4}; g.h1=function(G,X,Q){Q=G.TZ===null?G.xP.TZ(X,Q,G.LO[0].type):G.TZ;if(G.N){X=Q?bF(G.N,X.A8):G.N;var R=new tQ(X);R.get("alr")||R.set("alr","yes");G.W&&RZS(R,G.W)}else/http[s]?:\/\//.test(G.W)?R=new tQ(new g.D1(G.W)):(R=ff(G.xP,Q,X),G.W&&RZS(R,G.W));(X=G.range)?R.set("range",X.toString()):G.LO[0].N.Lb()&&G.LO.length===1&&G.LO[0].W&&R.set("range",G.LO[0].W+"-");G.requestId&&R.set("req_id",G.requestId);isNaN(G.WF)||R.set("headm",G.WF.toString());isNaN(G.C)||R.set("mffa",G.C+"ms");G.urlParams&&g.Gn(G.urlParams, function(S,Z){R.set(Z,S)}); return R}; eZV=function(G){if(G.range)return G.Y;G=G.LO[0];return Math.round(G.T*G.N.info.jA)}; rRG=function(G,X){return Math.max(0,G.LO[0].C-X)}; Lh=function(G,X,Q,R,S,Z){Z=Z===void 0?0:Z;nf.call(this,G,X,R,void 0);this.C=Q;this.w$=Z;this.index=S||new g.iF}; aPG=function(G,X,Q,R,S){this.oU=G;this.startSecs=X;this.Du=Q;this.N=R||NaN;this.W=S||NaN}; kl=function(G,X,Q){for(;G;G=G.parentNode)if(G.attributes&&(!Q||G.nodeName===Q)){var R=G.getAttribute(X);if(R)return R}return""}; Yl=function(G,X){for(;G;G=G.parentNode){var Q=G.getElementsByTagName(X);if(Q.length>0)return Q[0]}return null}; EEl=function(G){if(!G)return 0;var X=G.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return X?(Number(X[2])|0)*3600+(Number(X[4])|0)*60+(Number(X[6])|0):Number(G)|0}; xrV=function(G){return G.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?G+"Z":G}; jK=function(){this.N=[];this.W=null;this.S=0;this.Y=[];this.C=!1;this.J="";this.V=-1}; OPT=function(G){var X=G.Y;G.Y=[];return X}; zZZ=function(){this.V=[];this.N=null;this.W={};this.Y={}}; lP0=function(G,X){var Q=[];X=Array.from(X.getElementsByTagName("SegmentTimeline"));X=g.e(X);for(var R=X.next();!R.done;R=X.next()){R=R.value;var S=R.parentNode.parentNode,Z=null;S.nodeName==="Period"?Z=cRi(G):S.nodeName==="AdaptationSet"?(S=S.getAttribute("id")||S.getAttribute("mimetype")||"",Z=gEC(G,S)):S.nodeName==="Representation"&&(S=S.getAttribute("id")||"",Z=UrC(G,S));if(Z==null)return;Z.update(R);g.Bn(Q,OPT(Z))}g.Bn(G.V,Q);OV7(G.V,function(H){return H.startSecs*1E3+H.N})}; BPw=function(G){G.N&&(G.N.N=[]);g.Gn(G.W,function(X){X.N=[]}); g.Gn(G.Y,function(X){X.N=[]})}; cRi=function(G){G.N||(G.N=new jK);return G.N}; gEC=function(G,X){G.W[X]||(G.W[X]=new jK);return G.W[X]}; UrC=function(G,X){G.Y[X]||(G.Y[X]=new jK);return G.Y[X]}; mZ=function(G){var X=G===void 0?{}:G;G=X.w$===void 0?0:X.w$;var Q=X.HD===void 0?!1:X.HD;var R=X.Hh===void 0?0:X.Hh;var S=X.xO===void 0?0:X.xO;var Z=X.HK===void 0?Infinity:X.HK;var H=X.Ft===void 0?0:X.Ft;var w=X.It===void 0?!1:X.It;X=X.FH===void 0?!1:X.FH;g.iF.call(this);this.pQ=this.Tq=-1;this.Rs=G;this.Hh=R;this.HD=Q;this.xO=S;this.HK=Z;this.Ft=H;((this.It=w)||isFinite(Z)&&this.HK>0)&&Q&&M9&&(this.W=!1,this.Y="postLive");this.FH=X}; oW=function(G,X){return DV(G.segments,function(Q){return X-Q.oU})}; ul=function(G,X,Q){Q=Q===void 0?{}:Q;Lh.call(this,G,X,"",void 0,void 0,Q.w$||0);this.index=new mZ(Q)}; PB=function(G,X,Q){nf.call(this,G,X);this.C=Q;G=this.index=new g.iF;G.W=!1;G.Y="d"}; FBy=function(G,X,Q){var R=G.index.DT(X),S=G.index.getStartTime(X),Z=G.index.getDuration(X);Q?Z=Q=0:Q=G.info.jA*Z;return new HB([new io(3,G,void 0,"otfCreateRequestInfoForSegment",X,S,Z,0,Q)],R)}; Cne=function(G,X){if(!G.index.isLoaded()){var Q=[],R=X.V;X=X.C.split(",").filter(function(k){return k.length>0}); for(var S=0,Z=0,H=0,w=/^(\d+)/,h=/r=(\d+)/,L=0;L0&&(S.N=Math.min(S.N+H,10),S.W=Z);S.N>0?(S.N--,S=!0):S=!1;if(S)typeof R==="function"&&(R=R()),console.log("plyr."+X,R);else{var w;R=((w=pjl.get(X))!=null?w:0)+1;pjl.set(X,R);R%100===1&&console.warn("plyr","plyr."+X+" is chatty, dropping logs.")}}}; WBZ=function(){this.N=10;this.W=Date.now()}; Kh=function(G,X){this.info=G;this.W=X;this.N=null;this.V=this.Y=-1;this.timestampOffset=0;this.isLocked=this.S=!1;this.C=this.info.N.Qh()&&!this.info.W}; g.eK=function(G){return I3X(G.W)}; yRG=function(G,X){X=Math.min(X,G.info.Y);var Q=G.W.split(X),R=Q.JC;Q=new Kh(new io(G.info.type,G.info.N,G.info.range,G.info.J,G.info.oU,G.info.startTime,G.info.duration,G.info.W,X,!1,G.info.OG,G.info.clipId),Q.JM);Q.V=G.V;Q.Y=G.Y;X=new Kh(new io(G.info.type,G.info.N,G.info.range,G.info.J,G.info.oU,G.info.startTime,G.info.duration,G.info.W+X,G.info.Y-X,G.info.V,G.info.OG,G.info.clipId),R);X.V=G.V;X.Y=G.Y;return[Q,X]}; g.r0=function(G,X,Q,R){Q=Q===void 0?!1:Q;R=R===void 0?0:R;if(G.isLocked||X.isLocked||!QC(G.info,X.info)||G.info.V)return null;if(R){if(G.W.totalLength+X.W.totalLength>R)return null}else if(Q&&(Q=G.W,R=X.W,Q=!(R.N.length?tiw(Q,R.N[0]):1)),Q)return null;Q=new io(G.info.type,G.info.N,G.info.range,G.info.J,G.info.oU,G.info.startTime,G.info.duration,G.info.W,G.info.Y,G.info.V,G.info.OG,G.info.clipId);R=X.info;Q.Y+=R.Y;Q.range&&(Q.T+=R.T);Q.S=R.S;Q.V=R.V;R=new Qk;R8(R,G.W);R8(R,X.W);Q=new Kh(Q,R);Q.N!= null&&X.N!=null&&(new g.sp("dash")).N(414627957,"merged slice emsg overridden; prev: "+Q.N.k0()+" next: "+X.N.k0());Q.N=X.N||G.N;Q.Y=G.Y!==-1?G.Y:X.Y;Q.V=G.V!==-1?G.V:X.V;return Q}; g.aW=function(G){g.AR(G.info.N.info)||G.info.N.info.A1();if(G.Y!==-1)return G.Y;if(G.N&&VQl(G.N))return G.Y=VQl(G.N),G.Y;if(g.AR(G.info.N.info)){var X=g.eK(G);for(var Q=G.info.N.N,R=NaN,S=NaN,Z=0;oj(X,Z);){var H=uo(X,Z);H.type===1936286840?S=H.data.getUint32(H.dataOffset+8):H.type===1836476516?S=g.j4(H):H.type===1952867444&&isNaN(R)&&(R=g.sP(H));Z=Pr(H.type)?Z+8:Z+H.size}!S&&Q&&(S=M7(Q));X=R/S}else X=new e4(g.eK(G)),Q=G.C?X:new e4(new DataView(G.info.N.N.buffer)),R=FF(Q),Q=X.pos,X.pos=0,Cf(X)?xX(X, 231)?(R=cr(X)*R/1E9,X.pos=Q,X=R):(X.pos=Q,X=NaN):(X.pos=Q,X=NaN);G.Y=X||G.info.C;return G.Y}; Drl=function(G,X){G.timestampOffset>0&&(X-=G.timestampOffset);var Q=g.aW(G)+X;fPU(G,Q);G.timestampOffset=X}; fPU=function(G,X){g.AR(G.info.N.info)||G.info.N.info.A1();G.Y=X;if(g.AR(G.info.N.info)){var Q=g.eK(G);G=G.info.N.N;for(var R=NaN,S=NaN,Z=0;oj(Q,Z);){var H=uo(Q,Z);isNaN(R)&&(H.type===1936286840?R=H.data.getUint32(H.dataOffset+8):H.type===1836476516&&(R=g.j4(H)));if(H.type===1952867444){!R&&G&&(R=M7(G));var w=g.sP(H);isNaN(S)&&(S=Math.round(X*R)-w);var h=H;w+=S;if(h.data.getUint8(h.dataOffset)){var L=h.data;h=h.dataOffset+4;L.setUint32(h,Math.floor(w/4294967296));L.setUint32(h+4,w&4294967295)}else h.data.setUint32(h.dataOffset+ 4,w)}Z=Pr(H.type)?Z+8:Z+H.size}return!0}Q=new e4(g.eK(G));G=G.C?Q:new e4(new DataView(G.info.N.N.buffer));R=FF(G);G=Q.pos;Q.pos=0;if(Cf(Q)&&xX(Q,231))if(S=OP(Q,!0),X=Math.floor(X*1E9/R),Math.ceil(Math.log(X)/Math.log(2)/8)>S)X=!1;else{for(R=S-1;R>=0;R--)Q.N.setUint8(Q.pos+R,X&255),X>>>=8;Q.pos=G;X=!0}else X=!1;return X}; xl=function(G,X){X=X===void 0?!1:X;var Q=Ep(G);G=X?0:G.info.T;return Q||G}; Ep=function(G){g.AR(G.info.N.info)||G.info.N.info.A1();if(G.N&&G.info.type===6)return G.N.w$;if(g.AR(G.info.N.info)){var X=g.eK(G);var Q=0;X=g.Kf(X,1936286840);X=g.e(X);for(var R=X.next();!R.done;R=X.next())R=NNC(R.value),Q+=R.GP[0]/R.timescale;Q=Q||NaN;if(!(Q>=0))a:{Q=g.eK(G);X=G.info.N.N;for(var S=R=0,Z=0;oj(Q,R);){var H=uo(Q,R);if(H.type===1836476516)S=g.j4(H);else if(H.type===1836019558){!S&&X&&(S=M7(X));if(!S){Q=NaN;break a}var w=mu(H.data,H.dataOffset,1953653094),h=w;w=S;var L=mu(h.data,h.dataOffset, 1952868452);h=mu(h.data,h.dataOffset,1953658222);var k=Rj(L);Rj(L);k&2&&Rj(L);L=k&8?Rj(L):0;var Y=Rj(h),M=Y&1;k=Y&4;var m=Y&256,u=Y&512,r=Y&1024;Y&=2048;var x=S4(h);M&&Rj(h);k&&Rj(h);for(var c=M=0;c2048?"":X.indexOf("https://")===0?X:""}; ll=function(G,X,Q){X.match(ROG);return G(X,Q).then(function(R){var S=g.QTS(R.xhr);return S?ll(G,S,Q):R.xhr})}; t1=function(G,X,Q){G=G===void 0?"":G;X=X===void 0?null:X;Q=Q===void 0?!1:Q;g.ic.call(this);var R=this;this.sourceUrl=G;this.isLivePlayback=Q;this.wb=this.duration=0;this.isPremiere=this.It=this.V=this.isLiveHeadPlayable=this.isLive=this.W=!1;this.HK=this.xO=0;this.isOtf=this.IW=!1;this.SA=(0,g.TB)();this.yH=Infinity;this.N={};this.Y=new Map;this.state=this.CL=0;this.S=null;this.isManifestless=!1;this.Mi=[];this.J=null;this.QH=0;this.C="";this.IU=NaN;this.DC=this.Hs=this.timestampOffset=this.T=0;this.Ti= this.Yv=NaN;this.C7=0;this.CO=this.AT=!1;this.Xm=[];this.cM={};this.Yc=NaN;this.gh={ZpO:function(w){BB(R,w)}}; var S;this.BM=(S=X)==null?void 0:S.TT("html5_use_network_error_code_enums");Sjy=!!X&&X.TT("html5_modern_vp9_mime_type");var Z;FN=!((Z=X)==null||!Z.TT("html5_enable_flush_during_seek"))&&g.V9();var H;Ch=!((H=X)==null||!H.TT("html5_enable_reset_audio_decoder"))&&g.V9()}; ZFV=function(G){return g.RB(G.N,function(X){return!!X.info.video&&X.info.video.qualityOrdinal>=2160})}; TN0=function(G){return g.RB(G.N,function(X){return!!X.info.video&&X.info.video.isHdr()})}; Vs=function(G){return g.RB(G.N,function(X){return!!X.info.sT})}; g.HFl=function(G){return g.RB(G.N,function(X){return Gv(X.info.mimeType)})}; qjS=function(G){return g.RB(G.N,function(X){return X.info.video?X.info.video.projectionType==="EQUIRECTANGULAR":!1})}; wH0=function(G){return g.RB(G.N,function(X){return X.info.video?X.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; hOV=function(G){return g.RB(G.N,function(X){return X.info.video?X.info.video.projectionType==="MESH":!1})}; LLT=function(G){return g.RB(G.N,function(X){return X.info.video?X.info.video.stereoLayout===1:!1})}; kvU=function(G){return lGC(G.N,function(X){return X.info.video?X.AK():!0})}; Fy=function(G){return g.RB(G.N,function(X){return nR(X.xP.N)})}; BB=function(G,X){G.N[X.info.id]=X;G.Y.set(AQ(g.bn(X.info,G.IW)),X)}; d0=function(G,X,Q){Q=Q===void 0?0:Q;var R=G.mimeType||"",S=G.itag;var Z=G.xtags;S=S?S.toString():"";Z&&(S+=";"+Z);Z=S;if(JR(R)){var H=G.width||640;S=G.height||360;var w=G.fps,h=G.qualityLabel,L=G.qualityOrdinal,k=G.colorInfo,Y=G.projectionType,M;G.stereoLayout&&(M=Yjl[G.stereoLayout]);var m=Gvy(G)||void 0;if(k==null?0:k.primaries)var u=jTw[k.primaries]||void 0;H=new CP(H,S,w,Y,M,void 0,h,L&&Mre[L],m,u);R=VC(R,H,IE[G.itag||""]);FN&&(R+="; enableflushduringseek=true");Ch&&(R+="; enableresetaudiodecoder=true")}var r; if(vj(R)){var x=G.audioSampleRate;M=G.audioTrack;x=new e0(x?+x:void 0,G.audioChannels,G.spatialAudioType,G.isDrc,G.loudnessDb,G.trackAbsoluteLoudnessLkfs,G.audioQuality||"AUDIO_QUALITY_UNKNOWN",G.isVb);M&&(u=M.displayName,S=M.id,M=M.audioIsDefault,u&&(r=new g.Up(u,S||"",!!M)))}var c;G.captionTrack&&(h=G.captionTrack,M=h.displayName,u=h.vssId,S=h.languageCode,w=h.kind,h=h.id,M&&u&&S&&(c=new JRG(M,u,S,w,G.xtags,h)));M=Number(G.bitrate)/8;u=Number(G.contentLength);S=Number(G.lastModified);h=G.drmFamilies; w=G.type;Q=Q&&u?u/Q:0;G=Number(G.approxDurationMs);if(X&&h){var z={};h=g.e(h);for(L=h.next();!L.done;L=h.next())(L=IW[L.value])&&(z[L]=X[L])}return new dP(Z,R,{audio:x,video:H,kP:r,sT:z,jA:M,Xu:Q,contentLength:u,lastModified:S,captionTrack:c,streamType:w,approxDurationMs:G})}; WB=function(G,X,Q){Q=Q===void 0?0:Q;var R=G.type;var S=G.itag;var Z=G.xtags;Z&&(S=G.itag+";"+Z);if(JR(R)){var H=(G.size||"640x360").split("x");H=new CP(+H[0],+H[1],+G.fps,G.projection_type,+G.stereo_layout,void 0,G.quality_label,+G.quality_ordinal,G.eotf,G.primaries);R=VC(R,H,IE[G.itag]);FN&&(R+="; enableflushduringseek=true");Ch&&(R+="; enableresetaudiodecoder=true")}var w;if(vj(R)){var h=new e0(+G.audio_sample_rate||void 0,+G.audio_channels||0,G.spatial_audio_type,!!G.drc);G.name&&(w=new g.Up(G.name, G.audio_track_id,G.isDefault==="1"))}var L;G.caption_display_name&&G.caption_vss_id&&G.caption_language_code&&(L=new JRG(G.caption_display_name,G.caption_vss_id,G.caption_language_code,G.caption_kind,G.xtags,G.caption_id));Z=Number(G.bitrate)/8;var k=Number(G.clen),Y=Number(G.lmt);Q=Q&&k?k/Q:0;if(X&&G.drm_families){var M={};for(var m=g.e(G.drm_families.split(",")),u=m.next();!u.done;u=m.next())u=u.value,M[u]=X[u]}return new dP(S,R,{audio:h,video:H,kP:w,sT:M,jA:Z,Xu:Q,contentLength:k,lastModified:Y, captionTrack:L,streamType:G.stream_type,approxDurationMs:Number(G.approx_duration_ms)})}; msl=function(G){return p0(G,function(X){return"FORMAT_STREAM_TYPE_OTF"===X.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; oqG=function(G){return p0(G,function(X){return"FORMAT_STREAM_TYPE_OTF"===X.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; uPX=function(G,X){return G.S?VH(G.S.V,X):G.Mi.length?VH(G.Mi,X):[]}; ph=function(G,X,Q){X=X===void 0?"":X;Q=Q===void 0?"":Q;G=new g.D1(G,!0);G.set("alr","yes");Q&&(Q=W9l(decodeURIComponent(Q)),G[q[2]](X,encodeURIComponent(Q)));return G}; KLl=function(G,X){var Q=kl(X,"id");Q=Q.replace(":",";");var R=kl(X,"mimeType"),S=kl(X,"codecs");R=S?R+'; codecs="'+S+'"':R;S=Number(kl(X,"bandwidth"))/8;var Z=Number(Yl(X,"BaseURL").getAttribute(G.C+":contentLength")),H=G.duration&&Z?Z/G.duration:0;if(JR(R)){var w=Number(kl(X,"width"));var h=Number(kl(X,"height")),L=Number(kl(X,"frameRate")),k=P9y(kl(X,G.C+":projectionType"));a:switch(kl(X,G.C+":stereoLayout")){case "layout_left_right":var Y=1;break a;case "layout_top_bottom":Y=2;break a;default:Y= 0}w=new CP(w,h,L,k,Y)}if(vj(R)){var M=Number(kl(X,"audioSamplingRate"));var m=Number(kl(X.getElementsByTagName("AudioChannelConfiguration")[0],"value"));h=sTi(kl(X,G.C+":spatialAudioType"));M=new e0(M,m,h);a:{m=kl(X,"lang")||"und";if(h=Yl(X,"Role"))if(k=kl(h,"value")||"",g.k7(TOC,k)){h=m+"."+TOC[k];L=k==="main";G=kl(X,G.C+":langName")||m+" - "+k;m=new g.Up(G,h,L);break a}m=void 0}}if(X=Yl(X,"ContentProtection"))if(X.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var u={};for(X= X.firstChild;X!=null;X=X.nextSibling)X instanceof Element&&/SystemURL/.test(X.nodeName)&&(G=X.getAttribute("type"),h=X.textContent,G&&h&&(u[G]=h.trim()))}else u=void 0;return new dP(Q,R,{audio:M,video:w,kP:m,sT:u,jA:S,Xu:H,contentLength:Z})}; P9y=function(G){switch(G){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"}}; sTi=function(G){switch(G){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"}}; rSS=function(G,X){X=X===void 0?"":X;G.state=1;G.SA=(0,g.TB)();return XHC(X||G.sourceUrl).then(function(Q){if(!G.U_()){G.CL=Q.status;Q=Q.responseText;var R=new DOMParser;Q=Or(R,cJl(Q),"text/xml").getElementsByTagName("MPD")[0];G.yH=EEl(kl(Q,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(Q.attributes){R=g.e(Q.attributes);for(var S=R.next();!S.done;S=R.next())if(S=S.value,S.value==="http://youtube.com/yt/2012/10/10"){R=S.name.split(":")[1];break b}}R=""}G.C=R;G.isLive=G.yH=G.yH}; EqS=function(G){G.J&&G.J.stop()}; eOX=function(G){var X=G.yH;isFinite(X)&&(yC(G)?G.refresh():(X=Math.max(0,G.SA+X-(0,g.TB)()),G.J||(G.J=new g.fU(G.refresh,X,G),g.d(G,G.J)),G.J.start(X)))}; xsS=function(G){G=G.N;for(var X in G){var Q=G[X].index;if(Q.isLoaded())return Q.i9()+1}return 0}; fh=function(G){return G.Hs?G.Hs-(G.T||G.timestampOffset):0}; Dk=function(G){return G.DC?G.DC-(G.T||G.timestampOffset):0}; N9=function(G){if(!isNaN(G.IU))return G.IU;var X=G.N,Q;for(Q in X){var R=X[Q].index;if(R.isLoaded()&&!Gv(X[Q].info.mimeType)){X=0;for(Q=R.Uu();Q<=R.i9();Q++)X+=R.getDuration(Q);X/=R.E6();X=Math.round(X/.5)*.5;R.E6()>10&&(G.IU=X);return X}if(G.isLive&&(R=X[Q],R.w$))return R.w$}return NaN}; OF0=function(G,X){G=Fwy(G.N,function(R){return R.index.isLoaded()}); if(!G)return NaN;G=G.index;var Q=G.NG(X);return G.getStartTime(Q)===X?X:Q=0&&S.segments.splice(Z,1)}}}; cST=function(G){for(var X in G.N)Gv(G.N[X].info.mimeType)||lXX(G.N[X].index,Infinity)}; $l=function(G,X,Q){for(var R in G.N){var S=G.N[R].index,Z=X,H=Q;S.HD&&(Z&&(S.Tq=Math.max(S.Tq,Z)),H&&(S.pQ=Math.max(S.pQ||0,H)))}Q&&(G.Yc=Q/1E3)}; gql=function(G){G.DC=0;G.Hs=0;G.C7=0}; bl=function(G){return G.CO&&G.isManifestless?G.isLiveHeadPlayable:G.isLive}; VC=function(G,X,Q){vB===null&&(vB=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(Sjy&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return vB||Q!=="9"&&Q!=="("?vB||Q!=="9h"&&Q!=="(h"||(G='video/webm; codecs="vp9.2"'):G='video/webm; codecs="vp9"',G;if(!vB&&!J1||G!=='video/webm; codecs="vp9"'&&G!=='video/webm; codecs="vp9.2"')return G; Q="00";var R="08",S="01",Z="01",H="01";G==='video/webm; codecs="vp9.2"'&&(Q="02",R="10",X.primaries==="bt2020"&&(H=S="09"),X.N==="smpte2084"&&(Z="16"),X.N==="arib-std-b67"&&(Z="18"));return'video/webm; codecs="'+["vp09",Q,"51",R,"01",S,Z,H,"00"].join(".")+'"'}; Gd=function(G,X,Q){G=""+G+(X>49?"p60":X>32?"p48":"");X=uF()[G];if(X!=null&&X>0)return X;X=il.get(G);if(X!=null&&X>0)return X;Q=Q==null?void 0:Q.get(G);return Q!=null&&Q>0?Q:8192}; Usw=function(G){this.hT=G;this.l9=this.TO=this.QH=this.C=this.V=this.wb=this.CO=this.AT=!1;this.J=this.S=0;this.BM=!1;this.yH=!0;this.cM=!1;this.V1=0;this.BT=this.DC=!1;this.kS=!0;this.SA=this.IU=!1;this.N={};this.Hs=this.Ps=this.R6=this.disableAv1=this.As=this.Mj=this.bB=this.N9=this.W=this.T=!1;this.Yc=0;this.KO=!1;this.bf=this.hT.G("html5_disable_aac_preference");this.f7=Infinity;this.Mi=0;this.F7=this.hT.n7();this.C7=this.hT.experiments.TT("html5_enable_vp9_fairplay");this.ze=this.hT.G("html5_force_av1_for_testing"); this.Xm=g.i2(this.hT.experiments,"html5_av1_ordinal_cap");this.fd=this.hT.G("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Xq=this.hT.G("html5_account_onesie_format_selection_during_format_filter");this.jA=g.i2(this.hT.experiments,"html5_max_byterate");this.Js=this.hT.G("html5_enable_iamf_audio");this.hS=this.hT.experiments.TT("html5_allow_capability_merge");this.Fq=this.hT.G("html5_enable_encrypted_av1");this.Yc=g.i2(this.hT.experiments,"html5_hard_cap_max_vertical_resolution");this.KO= this.hT.G("html5_enable_new_audio_settings_menu")}; KMC=function(G){if(G.CO)return["f"];if(g.Ci("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var X=["9h","9","h","8"];G.Fq&&X.push("1e");X=X.concat(["(h","(","H","*"]);G.DC&&(X.unshift("1"),X.unshift("1h"));G.TO&&X.unshift("h");G.j&&(X=(lti[G.j]||[G.j]).concat(X));return X}; MQC=function(G){var X=["o","a","A"];G.Mi===1&&(G.V&&(X=["mac3","MAC3"].concat(X)),G.C&&(X=["meac3","MEAC3"].concat(X)),G.Js&&(X=["i","I"].concat(X)));G.AT&&(X=["so","sa"].concat(X));!G.l9||G.QH||G.Y||G.bf||X.unshift("a");G.Y&&(X=(lti[G.Y]||[G.Y]).concat(X));return X}; X7=function(G,X,Q,R){X=X===void 0?{}:X;if(R===void 0?0:R)return X.disabled=1,0;if(ys(G.C,fR.AV1_CODECS)&&ys(G.C,fR.HEIGHT)&&ys(G.C,fR.BITRATE))return X.isCapabilityUsable=1,8192;try{var S=$37();if(S&&!G.G("disable_av1_setting"))return X.localPref=S}catch(w){}R=1080;S=navigator.hardwareConcurrency;S<=2&&(R=480);X.coreCount=S;if(S=g.i2(G.experiments,"html5_default_av1_threshold"))R=X["default"]=S;!G.G("html5_disable_av1_arm_check")&&jCS()&&(X.isArm=1,R=240);if(G=G.C.yH)X.mcap=G,R=Math.max(R,G);if(Q){var Z, H;if(G=(Z=Q.videoInfos.find(function(w){return fP(w)}))==null?void 0:(H=Z.W)==null?void 0:H.powerEfficient)R=8192,X.isEfficient=1; Q=Q.videoInfos[0].video;Z=Math.min(Gd("1",Q.fps),Gd("1",30));X.perfCap=Z;R=Math.min(R,Z);Q.isHdr()&&!G&&(X.hdr=1,R*=.75)}else Q=Gd("1",30),X.perfCap30=Q,R=Math.min(R,Q),Q=Gd("1",60),X.perfCap60=Q,R=Math.min(R,Q);return X.av1Threshold=R}; QQ=function(G,X,Q,R){this.flavor=G;this.keySystem=X;this.W=Q;this.experiments=R;this.N={};this.CO=this.keySystemAccess=null;this.IP=this.oP=-1;this.jl=null;this.Y=!!R&&R.TT("edge_nonprefixed_eme");R&&R.TT("html5_enable_vp9_fairplay")}; SC=function(G){return G.Y?!1:!G.keySystemAccess&&!!RD()&&G.keySystem==="com.microsoft.playready"}; ZC=function(G){return G.keySystem==="com.microsoft.playready"}; Hm=function(G){return!G.keySystemAccess&&!!RD()&&G.keySystem==="com.apple.fps.1_0"}; qK=function(G){return G.keySystem==="com.youtube.fairplay"}; wn=function(G){return G.keySystem==="com.youtube.fairplay.sbdl"}; g.hn=function(G){return G.flavor==="fairplay"}; RD=function(){var G=window,X=G.MSMediaKeys;WT()&&!X&&(X=G.WebKitMediaKeys);return X&&X.isTypeSupported?X:null}; kM=function(G){return navigator.requestMediaKeySystemAccess?g.un&&!g.V9()?s_("45"):g.pl||g.wC?G.TT("edge_nonprefixed_eme"):g.Lj?s_("47"):g.Y_&&G.TT("html5_enable_safari_fairplay")?!1:!0:!1}; BOX=function(G,X,Q,R){var S=Im(),Z=(Q=S||Q&&WT())?["com.youtube.fairplay"]:["com.widevine.alpha"];X&&Z.unshift("com.youtube.widevine.l3");S&&R&&Z.unshift("com.youtube.fairplay.sbdl");return Q?Z:G?[].concat(g.o0(Z),g.o0(YM.playready)):[].concat(g.o0(YM.playready),g.o0(Z))}; jC=function(G,X,Q,R,S){R=R===void 0?!1:R;g.I.call(this);this.hT=X;this.useCobaltWidevine=R;this.Ni=S;this.W=[];this.Y={};this.N={};this.callback=null;this.C=!1;this.V=[];this.initialize(G,!Q)}; C97=function(G,X){G.callback=X;G.V=[];kM(G.hT.experiments)?MK(G):FLy(G)}; MK=function(G){if(!G.U_())if(G.W.length===0)G.callback(G.V);else{var X=G.W[0],Q=G.Y[X],R=tr0(G,Q);if(mA&&mA.keySystem===X&&mA.keB===JSON.stringify(R))G.Ni("remksa",{re:!0}),Vrw(G,Q,mA.keySystemAccess);else{var S,Z;G.Ni("remksa",{re:!1,ok:(Z=(S=mA)==null?void 0:S.keySystem)!=null?Z:""});mA=void 0;navigator.requestMediaKeySystemAccess(X,R).then(JT(function(H){Vrw(G,Q,H,R)}),JT(function(){G.C=!G.C&&G.Y[G.W[0]].flavor==="widevine"; G.C||G.W.shift();MK(G)}))}}}; Vrw=function(G,X,Q,R){if(!G.U_()){R&&(mA={keySystem:X.keySystem,keySystemAccess:Q,keB:JSON.stringify(R)});X.keySystemAccess=Q;if(ZC(X)){Q=mB();R=g.e(Object.keys(G.N[X.flavor]));for(var S=R.next();!S.done;S=R.next())S=S.value,X.N[S]=!!Q.canPlayType(S)}else{Q=X.keySystemAccess.getConfiguration();if(Q.audioCapabilities)for(R=g.e(Q.audioCapabilities),S=R.next();!S.done;S=R.next())X.N[S.value.contentType]=!0;if(Q.videoCapabilities)for(Q=g.e(Q.videoCapabilities),R=Q.next();!R.done;R=Q.next())X.N[R.value.contentType]= !0}G.V.push(X);G.useCobaltWidevine||G.G("html5_enable_vp9_fairplay")&&wn(X)?(G.W.shift(),MK(G)):G.callback(G.V)}}; tr0=function(G,X){var Q={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(G.G("html5_enable_vp9_fairplay")&&qK(X))return Q.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),Q.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[Q];ZC(X)&&(Q.initDataTypes=["keyids","cenc"]);for(var R=g.e(Object.keys(G.N[X.flavor])),S=R.next();!S.done;S=R.next()){S=S.value;var Z=S.indexOf("audio/")===0,H=Z?Q.audioCapabilities:Q.videoCapabilities;X.flavor!== "widevine"||G.C?H.push({contentType:S}):Z?H.push({contentType:S,robustness:"SW_SECURE_CRYPTO"}):(g.un&&g.Ci("windows nt")&&!G.G("html5_drm_enable_moho")||H.push({contentType:S,robustness:"HW_SECURE_ALL"}),Z=S,G.hT.C.Y&&S.includes("vp09")&&(Z=S+"; experimental=allowed"),H.push({contentType:Z,robustness:"SW_SECURE_DECODE"}),oD(G.hT)==="MWEB"&&(A8()||t8())&&(G.Ni("swcrypto",{}),H.push({contentType:S,robustness:"SW_SECURE_CRYPTO"})))}return[Q]}; FLy=function(G){if(RD()&&(g.Y_||y9))G.V.push(new QQ("fairplay","com.apple.fps.1_0","",G.hT.experiments));else{var X=Ite(),Q=g.Ka(G.W,function(R){var S=G.Y[R],Z=!1,H=!1,w;for(w in G.N[S.flavor])X(w,R)&&(S.N[w]=!0,Z=Z||w.indexOf("audio/")===0,H=H||w.indexOf("video/")===0);return Z&&H}); Q&&G.V.push(G.Y[Q]);G.W=[]}G.callback(G.V)}; Ite=function(){var G=RD();if(G){var X=G.isTypeSupported;return function(R,S){return X(S,R)}}var Q=mB(); return Q&&(Q.addKey||Q.webkitAddKey)?function(R,S){return!!Q.canPlayType(R,S)}:function(){return!1}}; dsZ=function(G){this.experiments=G;this.N=2048;this.V=0;this.AT=(this.J=this.G("html5_streaming_resilience"))?.5:.25;var X=X===void 0?0:X;this.Y=g.i2(this.experiments,"html5_media_time_weight_prop")||X;this.j=(this.C=this.experiments.TT("html5_consider_end_stall"))&&u$;this.W=this.experiments.TT("html5_measure_max_progress_handling");this.T=this.G("html5_treat_requests_pre_elbow_as_metadata");this.S=this.G("html5_media_time_weight")||!!this.Y;this.G("html5_sabr_live_audio_early_return_fix")&&u$&& (this.N=65536)}; WLX=function(G,X){this.N=void 0;this.experimentIds=G?G.split(","):[];this.flags=AD(X||"","&");G={};X=g.e(this.experimentIds);for(var Q=X.next();!Q.done;Q=X.next())G[Q.value]=!0;this.experiments=G}; g.i2=function(G,X){G=G.flags[X];JSON.stringify(G);return Number(G)||0}; Pm=function(G,X){return(G=G.flags[X])?G.toString():""}; pHX=function(G){if(G=G.flags.html5_web_po_experiment_ids)if(G=G.replace(/\[ *(.*?) *\]/,"$1"))return G.split(",").map(Number);return[]}; ySS=function(G){if(G.N)return G.N;if(G.experimentIds.length<=1)return G.N=G.experimentIds,G.N;var X=[].concat(g.o0(G.experimentIds)).map(function(R){return Number(R)}); X.sort();for(var Q=X.length-1;Q>0;--Q)X[Q]-=X[Q-1];G.N=X.map(function(R){return R.toString()}); G.N.unshift("v1");return G.N}; DsZ=function(G){return ftl.then(G)}; sY=function(G,X,Q){this.experiments=G;this.DC=X;this.Mi=Q===void 0?!1:Q;this.j=!!g.QH("cast.receiver.platform.canDisplayType");this.T={};this.AT=!1;this.V=new Map;this.J=!0;this.W=this.Y=!1;this.N=new Map;this.yH=0;this.Yc=this.experiments.TT("html5_disable_vp9_encrypted");this.C=this.experiments.TT("html5_enable_encrypted_av1");G=g.QH("cast.receiver.platform.getValue");this.S=!this.j&&G&&G("max-video-resolution-vpx")||null;NOT(this);this.Y=!!(Im()&&FB()>=21)}; aX0=function(G,X,Q){Q=Q===void 0?1:Q;var R=X.itag;if(R==="0")return!0;var S=X.mimeType;if(X.ZC==="1e"&&!G.C)return"dav1enc";if(fP(X)&&G.AT)return"dav1";if(X.video&&(X.video.isHdr()||X.video.primaries==="bt2020")&&!(ys(G,fR.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(R==="338"&&!(g.un?s_(53):g.Lj&&s_(64)))return"dopus";var Z=Q;Z=Z===void 0?1: Z;Q={};X.video&&(X.video.width&&(Q[fR.WIDTH.name]=X.video.width),X.video.height&&(Q[fR.HEIGHT.name]=X.video.height),X.video.fps&&(Q[fR.FRAMERATE.name]=X.video.fps*Z),X.video.N&&(Q[fR.EOTF.name]=X.video.N),X.jA&&(Q[fR.BITRATE.name]=X.jA*8*Z),X.ZC==="("&&(Q[fR.CRYPTOBLOCKFORMAT.name]="subsample"),X.video.projectionType==="EQUIRECTANGULAR"||X.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||X.video.projectionType==="MESH")&&(Q[fR.DECODETOTEXTURE.name]="true");X.audio&&X.audio.numChannels&& (Q[fR.CHANNELS.name]=X.audio.numChannels);G.Y&&Wj(X)&&(Q[fR.EXPERIMENTAL.name]="allowed");Z=g.e(Object.keys(fR));for(var H=Z.next();!H.done;H=Z.next()){H=fR[H.value];var w;if(w=Q[H.name])if(w=!(H===fR.EOTF&&X.mimeType.indexOf("vp09.02")>0)){w=H;var h=X;w=!(G.experiments.TT("html5_ignore_h264_framerate_cap")&&w===fR.FRAMERATE&&EA0(h))}if(w)if(ys(G,H))if(G.S){if(G.S[H.name] 1080&&X.sT&&(S+="; hdcp=2.2");return R==="227"?"hqcenc":R!=="585"&&R!=="588"&&R!=="583"&&R!=="586"&&R!=="584"&&R!=="587"&&R!=="591"&&R!=="592"||G.experiments.TT("html5_enable_new_hvc_enc")?Im()&&FB()>=21&&g.Ci("appletv5")&&(R==="410"||R==="845")?!0:G.isTypeSupported(S)?!0:"tpus":"newhvc"}; Td=function(){var G=t8()&&!s_(29),X=g.Ci("google tv")&&g.Ci("chrome")&&!s_(30);return G||X?!1:UQe()}; AS7=function(G,X,Q){var R=480;X=g.e(X);for(var S=X.next();!S.done;S=X.next()){S=S.value;var Z=S.video.qualityOrdinal;Z<=1080&&Z>R&&aX0(G,S,Q)===!0&&(R=Z)}return R}; g.Kj=function(G,X){X=X===void 0?!1:X;return Td()&&G.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!X&&G.canPlayType(mB(),"application/x-mpegURL")?!0:!1}; $s0=function(G){nqU(function(){for(var X=g.e(Object.keys(fR)),Q=X.next();!Q.done;Q=X.next())ys(G,fR[Q.value])})}; ys=function(G,X){X.name in G.T||(G.T[X.name]=bFZ(G,X));return G.T[X.name]}; bFZ=function(G,X){if(G.S)return!!G.S[X.name];if(X===fR.BITRATE&&G.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!G.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(X===fR.AV1_CODECS)return G.isTypeSupported("video/mp4; codecs="+X.valid)&&!G.isTypeSupported("video/mp4; codecs="+X.sj);if(X.video){var Q='video/webm; codecs="vp9"';G.isTypeSupported(Q)||(Q='video/mp4; codecs="avc1.4d401e"')}else Q='audio/webm; codecs="opus"', G.isTypeSupported(Q)||(Q='audio/mp4; codecs="mp4a.40.2"');return G.isTypeSupported(Q+"; "+X.name+"="+X.valid)&&!G.isTypeSupported(Q+"; "+X.name+"="+X.sj)}; vqV=function(G,X){var Q=0;G.V.has(X)&&(Q=G.V.get(X).Es);G.V.set(X,{Es:Q+1,wp:Math.pow(2,Q+1)});G.W=!0}; I_=function(G){for(var X=[],Q=g.e(G.N.keys()),R=Q.next();!R.done;R=Q.next()){R=R.value;var S=G.N.get(R);X.push(R+"_"+S.maxWidth+"_"+S.maxHeight)}return X.join(".")}; oyS=function(G,X){for(var Q=new Map,R=g.e(G.N.keys()),S=R.next();!S.done;S=R.next()){S=S.value;var Z=S.split("_")[0];X.has(Z)||Q.set(S,G.N.get(S))}G.N=Q}; PST=function(G,X,Q){var R,S=((R=Q.video)==null?void 0:R.fps)||0;R=X+"_"+S;var Z=!!Q.audio,H={itag:Q.itag,ZC:X,vz:Z};if(Z)H.numChannels=Q.audio.numChannels;else{var w=Q.video;H.maxWidth=w==null?void 0:w.width;H.maxHeight=w==null?void 0:w.height;H.maxFramerate=S;ys(G,fR.BITRATE)&&(H.maxBitrateBps=Q.jA*8);H.mw=w==null?void 0:w.isHdr()}w=G.N.get(R);w?Z||(Q=Math.max(w.maxWidth||0,w.maxHeight||0)>Math.max(H.maxWidth||0,H.maxHeight||0)?w:H,X={itag:Q.itag,ZC:X,vz:Z,maxWidth:Math.max(w.maxWidth||0,H.maxWidth|| 0),maxHeight:Math.max(w.maxHeight||0,H.maxHeight||0),maxFramerate:S,mw:Q.mw},ys(G,fR.BITRATE)&&(X.maxBitrateBps=Q.maxBitrateBps),G.N.set(R,X)):G.N.set(R,H)}; sQU=function(G,X,Q){var R,S=((R=Q.video)==null?void 0:R.fps)||0;R=X+"_"+S;var Z=!!Q.audio,H=G.N.get(R);a:{var w=G.N.get(R),h=!!Q.audio;if(w){if(h){var L=!1;break a}var k;if(!h&&((L=Q.video)==null?0:L.height)&&w.maxHeight&&w.maxHeight>=((k=Q.video)==null?void 0:k.height)){L=!1;break a}}L=!0}L&&(L=Q.itag,X=H?H:{itag:L,ZC:X,vz:Z},Z?X.numChannels=Q.audio.numChannels:(Z=Q.video,X.maxWidth=Z==null?void 0:Z.width,X.maxHeight=Z==null?void 0:Z.height,X.maxFramerate=S,ys(G,fR.BITRATE)&&(X.maxBitrateBps=Q.jA* 8),X.mw=Z==null?void 0:Z.isHdr()),G.N.set(R,X))}; NOT=function(G){var X;(X=navigator.mediaCapabilities)!=null&&X.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(Q){Q.smooth&&Q.powerEfficient&&(G.yH=2160)})}; eC=function(){g.ic.call(this);this.items={}}; rn=function(G,X){this.N=G;this.cipher=this.N.exports.AES128CTRCipher_create(X.byteOffset)}; EY=function(){this.W=this.ZZ=0;this.N=Array.from({length:aD.length}).fill(0)}; JSX=function(){}; iFy=function(){this.startTimeMs=(0,g.TB)();this.N=!1}; GZ7=function(){this.N=new JSX}; Xaw=function(G,X,Q,R){R=R===void 0?1:R;Q>=0&&(X in G.N||(G.N[X]=new EY),G.N[X].lH(Q,R))}; QzG=function(G,X,Q,R,S){var Z=(0,g.TB)(),H=S?S(X):void 0,w;S=(w=H==null?void 0:H.ZZ)!=null?w:1;if(S!==0){var h;w=(h=H==null?void 0:H.profile)!=null?h:Q;Xaw(G,w,Z-R,S)}return X}; RXX=function(G,X,Q,R,S){if(X&&typeof X==="object"){var Z=function(H){return QzG(G,H,Q,R,S)}; if(tT(X))return X.then(Z);if(C_(X))return p_(X,Z)}return QzG(G,X,Q,R,S)}; SdX=function(){}; qd0=function(G,X){return f_(ZmS,function(){var Q=this;return function S(){var Z,H,w;return dX(S,function(h){switch(h.W){case 1:g.EC(h,2);if(!Q.V)throw"wasm.ps.ns";Z=G;H=pV;return ey(h,DM(Hmw(Q,X)),4);case 4:w=H(h.N);if(!w)throw"wasm.ps.um";try{return h.return(new WebAssembly.Instance(w,Z))}catch(L){}return ey(h,DM(WebAssembly.instantiate(w,Z)),5);case 5:return h.return(h.N);case 2:g.FS(h),g.tG(h,0)}})}()})}; waw=function(G,X){G.N||(G.N=p_(d9(function(){return fetch(X)}),function(Q){return Q.arrayBuffer()}),yX(G.N,function(Q){G.N=void 0; throw"wasm.ps.f: "+Q;}))}; Hmw=function(G,X){if(G.W)return G.W;G.W=hXC(G,X);yX(G.W,function(Q){G.W=void 0;throw"wasm.ps.c: "+Q;}); return G.W}; hXC=function(G,X){return f_(G,function(){var Q=this;return function S(){var Z,H,w,h,L,k,Y,M,m,u,r,x,c,z;return dX(S,function(B){switch(B.W){case 1:g.EC(B,2);Z=[];H=window.ywc;if(!H){B.pO(4);break}w=H[X];if(!w){B.pO(4);break}if(w.mod)return B.return(w.mod);if(!w.modP){B.pO(6);break}g.a0(B,7);h=pV;return ey(B,DM(w.modP),9);case 9:return B.return(h(B.N));case 7:g.cl(B),Z.unshift("pcm");case 6:if(w.bin){Q.N=VX(w.bin);B.pO(4);break}if(!w.binP){B.pO(4);break}g.a0(B,12);L=FU;k=VX;Y=pV;return ey(B,DM(w.binP), 14);case 14:Q.N=k.call(L,Y(B.N));g.OC(B,4);break;case 12:g.cl(B),Q.N=void 0,Z.unshift("pfb");case 4:if(!Q.N){B.pO(15);break}g.a0(B,16);M=pV;return ey(B,DM(Q.N),18);case 18:m=M(B.N);if(Q.Y)try{return B.return(new WebAssembly.Module(m))}catch(V){Q.Y=!1,Z.unshift("f0cs")}u=pV;return ey(B,DM(WebAssembly.compile(m)),19);case 19:return B.return(u(B.N));case 16:g.cl(B),Q.N=void 0,Z.unshift("f0ca");case 15:return g.a0(B,20),waw(Q,X),r=pV,ey(B,DM(Q.N),22);case 22:x=r(B.N);if(Q.Y)try{return B.return(new WebAssembly.Module(x))}catch(V){Q.Y= !1,Z.unshift("f1cs")}c=pV;return ey(B,DM(WebAssembly.compile(x)),23);case 23:return B.return(c(B.N));case 20:z=g.cl(B),Q.N=void 0,Q.V=!1,Z.unshift("f1ca: "+z);case 21:throw"["+Z.map(function(V){return'"'+V+'"'}).join(", ")+"]"; case 2:g.FS(B),g.tG(B,0)}})}()})}; Liy=function(){}; kZZ=function(){var G=this;this.proc_exit=function(){}; this.fd_write=function(X,Q,R){if(!G.exports)return 1;X=new Uint32Array(G.exports.memory.buffer,Q,R*2);Q=[];for(var S=0;S0)X=G.byterate,this.AT=!0;else{var R; Q=(((R=navigator.connection)==null?void 0:R.downlink)||0)*64*1024;Q>0&&(X=Q,this.AT=!0)}this.Y.iF(this.policy.S,X);G.delay>0&&this.T.iF(1,Math.min(G.delay,2));G.stall>0&&this.J.iF(1,G.stall);G.init>0&&(this.IU=Math.min(G.init,this.IU));G.interruptions&&(this.V=this.V.concat(G.interruptions),this.V.length>16&&this.V.pop());this.yH=(0,g.TB)();this.policy.J>0&&(this.SA=new g.fU(this.wb,this.policy.J,this),g.d(this,this.SA),this.SA.start())}; ID=function(G,X,Q,R){G.Y.iF(R===void 0?X:R,Q/X);G.S=(0,g.TB)()}; szw=function(G){G.C||(G.C=(0,g.TB)());G.policy.j&&(G.S=(0,g.TB)())}; Twe=function(G,X){if(G.C){var Q=X-G.C;if(Q<6E4){if(Q>1E3){var R=G.interruptions;R.push(Math.ceil(Q));R.sort(function(S,Z){return Z-S}); R.length>16&&R.pop()}G.DC+=Q}}G.C=X}; dn=function(G,X,Q,R,S,Z){Z=Z===void 0?!1:Z;G.QH.iF(X,Q/X);G.S=(0,g.TB)();S||G.j.iF(1,X-R);Z||(G.C=0);G.yH>-1&&(0,g.TB)()-G.yH>3E4&&KiZ(G)}; Wm=function(G,X,Q){X=Math.max(X,G.W.N);G.J.iF(1,Q/X)}; pj=function(G){G=G.T.X8()+G.Mi.X8()||0;G=isNaN(G)?.5:G;return G=Math.min(G,5)}; yQ=function(G,X,Q){isNaN(Q)||(G.Yc+=Q);isNaN(X)||(G.CO+=X)}; fj=function(G){G=G.Y.X8();return G>0?G:1}; DC=function(G,X,Q){X=X===void 0?!1:X;Q=Q===void 0?1048576:Q;var R=fj(G);R=1/((G.J.X8()||0)*G.policy.AT+1/R);var S=G.QH.X8();S=S>0?S:1;var Z=Math.max(R,S);G.policy.C>0&&S=4E3}; rAi=function(G){this.experiments=G;this.N=17;this.Y=13E4;this.S=.5;this.V=this.W=!1;this.yH=this.G("html5_use_histogram_for_bandwidth");this.C=g.i2(this.experiments,"html5_auxiliary_estimate_weight");this.AT=g.i2(this.experiments,"html5_stall_factor")||1;this.J=g.i2(this.experiments,"html5_check_for_idle_network_interval_ms");this.T=this.experiments.TT("html5_trigger_loader_when_idle_network");this.j=this.experiments.TT("html5_sabr_fetch_on_idle_network_preloaded_players")}; EWl=function(G,X){G=G===void 0?{}:G;X=X===void 0?{}:X;g.I.call(this);var Q=this;this.values=G;this.Qc=X;this.W={};this.Y=this.N=0;this.V=new g.fU(function(){adG(Q)},1E4); g.d(this,this.V)}; An=function(G,X){x00(G,X);return G.values[X]&&G.Qc[X]?G.values[X]/Math.pow(2,G.N/G.Qc[X]):0}; x00=function(G,X){G.values[X]||(X=D3G(),G.values=X.values||{},G.Qc=X.halfLives||{},G.W=X.values?Object.assign({},X.values):{})}; adG=function(G){var X=D3G();if(X.values){X=X.values;for(var Q={},R=g.e(Object.keys(G.values)),S=R.next();!S.done;S=R.next())S=S.value,X[S]&&G.W[S]&&(G.values[S]+=X[S]-G.W[S]),Q[S]=An(G,S);G.W=Q}X=G.Qc;Q={};Q.values=G.W;Q.halfLives=X;g.E5("yt-player-memory",Q,2592E3)}; Yn=function(G,X,Q,R,S){g.I.call(this);this.webPlayerContextConfig=X;this.rJ=R;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.WK=this.As=this.Mj=this.bE=this.userDisplayName=this.userDisplayImage=this.Sa="";this.N={};this.Hs={};this.controlsType="0";this.f7=NaN;this.BM=!1;this.qd=(0,g.TB)();this.N9=0;this.dV=this.H1=!1;this.m7=!0;this.preferGapless=this.jl=this.Co=this.Y=this.lL=!1;this.nu=[];this.PR=!1;this.A8=0;G=G?g.uY(G):{};X&&X.csiPageType&&(this.csiPageType=X.csiPageType);X&&X.csiServiceName&& (this.csiServiceName=X.csiServiceName);X&&X.preferGapless&&(this.preferGapless=X.preferGapless);this.experiments=new WLX(X?X.serializedExperimentIds:G.fexp,X?X.serializedExperimentFlags:G.fflags);this.forcedExperiments=X?X.serializedForcedExperimentIds:iX("",G.forced_experiments)||void 0;this.cspNonce=(X==null?0:X.cspNonce)?X.cspNonce:iX("",G.csp_nonce);this.G("web_player_deprecated_uvr_killswitch");try{var Z=document.location.toString()}catch(wX){Z=""}this.fd=Z;this.ancestorOrigins=(R=window.location.ancestorOrigins)? Array.from(R):[];this.V=bX(!1,X?X.isEmbed:G.is_embed);if(X&&X.device){if(R=X.device,R.androidOsExperience&&(this.N.caoe=""+R.androidOsExperience),R.androidPlayServicesVersion&&(this.N.capsv=""+R.androidPlayServicesVersion),R.brand&&(this.N.cbrand=R.brand),R.browser&&(this.N.cbr=R.browser),R.browserVersion&&(this.N.cbrver=R.browserVersion),R.cobaltReleaseVehicle&&(this.N.ccrv=""+R.cobaltReleaseVehicle),this.N.c=R.interfaceName||"WEB",this.N.cver=R.interfaceVersion||"html5",R.interfaceTheme&&(this.N.ctheme= R.interfaceTheme),this.N.cplayer=R.interfacePlayerType||"UNIPLAYER",R.model&&(this.N.cmodel=R.model),R.network&&(this.N.cnetwork=R.network),R.os&&(this.N.cos=R.os),R.osVersion&&(this.N.cosver=R.osVersion),R.platform&&(this.N.cplatform=R.platform),Z=Pm(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),Z==="all"||Z==="once")R.chipset&&(this.Hs.cchip=R.chipset),R.cobaltAppVersion&&(this.Hs.ccappver=R.cobaltAppVersion),R.firmwareVersion&&(this.Hs.cfrmver=R.firmwareVersion),R.deviceYear&&(this.Hs.crqyear= R.deviceYear)}else this.N.c=G.c||"web",this.N.cver=G.cver||"html5",this.N.cplayer="UNIPLAYER";this.loaderUrl=X?this.V||OmT(this)&&X.loaderUrl?X.loaderUrl||"":this.fd:this.V||OmT(this)&&G.loaderUrl?iX("",G.loaderUrl):this.fd;this.V&&g.G3("yt.embedded_player.embed_url",this.loaderUrl);this.T=VG(this.loaderUrl,zXS);R=this.loaderUrl;var H=H===void 0?!1:H;this.uy=tk(VG(R,cAy),R,H,"Trusted Ad Domain URL");this.Js=bX(!1,G.privembed);this.protocol=this.fd.indexOf("http:")===0?"http":"https";this.a$=Ley((X? X.customBaseYoutubeUrl:G.BASE_YT_URL)||"")||Ley(this.fd)||this.protocol+"://www.youtube.com/";H=X?X.eventLabel:G.el;R="detailpage";H==="adunit"?R=this.V?"embedded":"detailpage":H==="embedded"||this.T?R=vT(R,H,gWV):H&&(R="embedded");this.Mi=R;e4C();H=null;R=X?X.playerStyle:G.ps;Z=g.rH(U0l,R);!R||Z&&!this.T||(H=R);this.playerStyle=H;this.S=g.rH(U0l,this.playerStyle);this.houseBrandUserStatus=X==null?void 0:X.houseBrandUserStatus;this.yH=this.S&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.gK=!this.yH;this.SA=bX(!1,G.disableplaybackui);this.disablePaidContentOverlay=bX(!1,X==null?void 0:X.disablePaidContentOverlay);this.disableSeek=bX(!1,X==null?void 0:X.disableSeek);this.enableSpeedOptions=(X==null?void 0:X.enableSpeedOptions)||(mB().defaultPlaybackRate?nj||g.NN||$M?g.Lj&&s_("20")||g.un&&s_("4")||g.b$&&s_("11")||pi():!(g.b$&&!g.Ci("chrome")||nj||g.Ci("android")||g.Ci("silk")):!1);this.VE=bX(!1,G.enable_faster_speeds);var w;this.supportsVarispeedExtendedFeatures=(w=X==null?void 0: X.supportsVarispeedExtendedFeatures)!=null?w:!1;this.W=bX(this.playerStyle==="blazer",G.is_html5_mobile_device||X&&X.isMobileDevice);this.CO=Dz()||A8();this.fp=this.G("mweb_allow_background_playback")?!1:this.W&&!this.S;this.QH=Tg();this.Bf=g.vm;var h;this.tC=!!(X==null?0:(h=X.embedsHostFlags)==null?0:h.optOutApiDeprecation);var L;X?X.hideInfo!==void 0&&(L=!X.hideInfo):L=G.showinfo;this.fQ=g.Jn(this)&&!this.tC||bX(!i$(this)&&!G$(this)&&!this.S,L);this.KQ=X?!!X.mobileIphoneSupportsInlinePlayback:bX(!1, G.playsinline);w=this.W&&Xk&&QT!=null&&QT>0&&QT<=2.3;h=X?X.useNativeControls:G.use_native_controls;this.J=g.Jn(this)&&this.W;L=this.W&&!this.J;h=g.RI(this)||!w&&bX(L,h)?"3":"1";this.disableOrganicUi=!(X==null||!X.disableOrganicUi);L=X?X.controlsType:G.controls;this.controlsType=this.disableOrganicUi||L==="0"||L===0?"0":h;this.Z5=this.W;this.color=vT("red",X?X.progressBarColor:G.color,ldi);this.cf=this.controlsType==="3";this.C7=!this.V;this.gt=(h=!this.C7&&!G$(this)&&!this.yH&&!this.S&&!i$(this))&& !this.cf&&this.controlsType==="1";this.Fq=g.Sb(this)&&h&&this.controlsType==="0"&&!this.gt&&!(X==null?0:X.embedsEnableEmc3ds);this.KD=this.OH=w;this.l9=(this.controlsType==="3"||this.W||bX(!1,G.use_media_volume))&&!this.J;this.dB=y9&&!g.Wo(601)?!1:!0;this.B1=this.V||!1;this.F7=G$(this)?"":(this.loaderUrl||G.post_message_origin||"").substring(0,128);this.widgetReferrer=iX("",X?X.widgetReferrer:G.widget_referrer);var k;X?X.disableCastApi&&(k=!1):k=G.enablecastapi;k=!this.T||bX(!0,k);w=!0;X&&X.disableMdxCast&& (w=!1);this.JN=this.G("enable_cast_for_web_unplugged")&&g.ZK(this)&&w||g.lP(this)&&w||k&&w&&this.controlsType==="1"&&!this.W&&(G$(this)||g.Sb(this)||g.HM(this));this.Za=!!window.document.pictureInPictureEnabled||sA();k=X?!!X.supportsAutoplayOverride:bX(!1,G.autoplayoverride);this.hE=!(this.W&&!g.Jn(this))&&!g.Ci("nintendo wiiu")||k;this.gL=(X?!!X.enableMutedAutoplay:bX(!1,G.mutedautoplay))&&!1;k=(G$(this)||i$(this))&&this.playerStyle==="blazer";this.F0=X?!!X.disableFullscreen:!bX(!0,G.fs);w=g.Rc(g.ql(this))&& g.Jn(this);this.bB=!this.F0&&(k||g.LZ())&&!w;this.cX=this.G("html5_picture_in_picture_logging_onresize");var Y;this.Fo=(Y=g.i2(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?Y:.33;this.Lg=this.G("html5_picture_in_picture_blocking_onresize");this.Zg=this.G("html5_picture_in_picture_blocking_ontimeupdate");this.iX=this.G("html5_picture_in_picture_blocking_document_fullscreen");this.Zz=this.G("html5_picture_in_picture_blocking_standard_api");Y=t8()&&s_(58)&&!A8();k=WI||typeof MediaSource=== "undefined";this.Lu=this.G("uniplayer_block_pip")&&(Y||k)||this.Lg||this.Zg||this.Zz;Y=g.Jn(this)&&!this.tC;var M;X?X.disableRelatedVideos!==void 0&&(M=!X.disableRelatedVideos):M=G.rel;this.kS=Y||bX(!this.S,M);this.m9=bX(!1,X?X.enableContentOwnerRelatedVideos:G.co_rel);this.j=A8()&&QT>0&&QT<=4.4?"_top":"_blank";this.rS=g.HM(this);this.L2=bX(this.playerStyle==="blazer",X?X.enableCsiLogging:G.enablecsi);switch(this.playerStyle){case "blogger":M="bl";break;case "gmail":M="gm";break;case "gac":M="ga"; break;case "ads-preview":M="ap";break;case "books":M="gb";break;case "docs":case "flix":M="gd";break;case "duo":M="gu";break;case "google-live":M="gl";break;case "google-one":M="go";break;case "play":case "play-ads":M="gp";break;case "chat":M="hc";break;case "hangouts-meet":M="hm";break;case "photos-edu":case "picasaweb":M="pw";break;default:M="yt"}this.AT=M;this.Yc=iX("",X?X.authorizedUserIndex:G.authuser);this.Ps=g.Jn(this)&&(this.Js||!kIV()||this.CO);var m;X?X.disableWatchLater!==void 0&&(m=!X.disableWatchLater): m=G.showwatchlater;this.eI=((M=!this.Ps)||!!this.Yc&&M)&&bX(!this.yH,this.T?m:void 0);this.bf=X?X.isMobileDevice||!!X.disableKeyboardControls:bX(!1,G.disablekb);this.loop=bX(!1,G.loop);this.pageId=iX("",X?X.initialDelegatedSessionId:G.pageid);this.T7=bX(!0,G.canplaylive);m=g.i2(this.experiments,"html5_default_audio_quality_setting_lr");var u;this.NQ=(u=Bw0[Bw0[m]])!=null?u:0;this.KO=bX(!1,G.livemonitor);this.disableSharing=bX(this.S,X?X.disableSharing:G.ss);(u=X&&this.G("fill_video_container_size_override_from_wpcc")? X.videoContainerOverride:G.video_container_override)?(m=u.split("x"),m.length!==2?u=null:(u=Number(m[0]),m=Number(m[1]),u=isNaN(u)||isNaN(m)||u*m<=0?null:new g.AC(u,m))):u=null;this.t8=u;this.mute=X?!!X.startMuted:bX(!1,G.mute);this.storeUserVolume=!this.mute&&bX(this.controlsType!=="0",X?X.storeUserVolume:G.store_user_volume);u=X?X.annotationsLoadPolicy:G.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:vT(void 0,u,wS);this.captionsLanguagePreference=X?X.captionsLanguagePreference|| "":iX("",G.cc_lang_pref);u=vT(2,X?X.captionsLanguageLoadPolicy:G.cc_load_policy,wS);this.controlsType==="3"&&u===2&&(u=3);this.Ti=u;this.Xq=X?X.hl||"en_US":iX("en_US",G.hl);this.region=X?X.contentRegion||"US":iX("US",G.cr);this.hostLanguage=X?X.hostLanguage||"en":iX("en",G.host_language);this.Yv=!this.Js&&Math.random()=480;this.schedule=new VQ(Y,new dsZ(this.experiments),S);g.d(this,this.schedule);var r;this.enableSafetyMode=(r=X==null?void 0:X.initialEnableSafetyMode)!=null?r:bX(!1,G.enable_safety_mode);S=this.SA?!1:G$(this)&&this.playerStyle!== "blazer";var x;X?X.disableAutonav!=null&&(x=!X.disableAutonav):x=G.allow_autonav;this.hS=bX(S,!this.yH&&x);this.sendVisitorIdHeader=X?!!X.sendVisitorIdHeader:bX(!1,G.send_visitor_id_header);var c;this.playerStyle==="docs"&&(X?c=X.disableNativeContextMenu:c=G.disable_native_context_menu);this.disableNativeContextMenu=bX(!1,c);this.QE=YU(this)&&this.G("enable_skip_intro_button");this.embedConfig=iX("",X?X.serializedEmbedConfig:G.embed_config);this.DC=Qy(G,g.Jn(this));this.Y=this.DC==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(X==null||!X.embedsErrorLinks);this.Fs=bX(!1,G.full_window);var z;this.Xm=!((z=this.webPlayerContextConfig)==null?0:z.chromeless);var B;this.livingRoomAppMode=vT("LIVING_ROOM_APP_MODE_UNSPECIFIED",G.living_room_app_mode||(X==null?void 0:(B=X.device)==null?void 0:B.livingRoomAppMode),tNZ);var V;x=J8(NaN,X==null?void 0:(V=X.device)==null?void 0:V.deviceYear);isNaN(x)||(this.deviceYear=x);this.transparentBackground=X?!!X.transparentBackground:bX(!1,G.transparent_background);this.showMiniplayerButton= X?!!X.showMiniplayerButton:bX(!1,G.show_miniplayer_button);var p;g.Jn(this)&&!(X==null?0:(p=X.embedsHostFlags)==null?0:p.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=X?!!X.externalFullscreen:bX(!1,G.external_fullscreen);this.showMiniplayerUiWhenMinimized=X?!!X.showMiniplayerUiWhenMinimized:bX(!1,G.use_miniplayer_ui);var b;this.m7=(b=G.show_loop_video_toggle)!=null?b:!0;this.aL=Math.random()<1E-4;if(G.onesie_hot_config||(X==null?0:X.onesieHotConfig))this.R6=new uOT(G.onesie_hot_config, X==null?void 0:X.onesieHotConfig),g.d(this,this.R6);this.isTectonic=X?!!X.isTectonic:!!G.isTectonic;this.playerCanaryState=Q;this.playerCanaryStage=X==null?void 0:X.canaryStage;this.ze=new EWl;g.d(this,this.ze);this.datasyncId=(X==null?void 0:X.datasyncId)||g.WO("DATASYNC_ID");this.Xs=g.WO("LOGGED_IN",!1);this.Nu=(X==null?void 0:X.allowWoffleManagement)||!1;this.ER=Infinity;this.Bi=NaN;this.livingRoomPoTokenId=X==null?void 0:X.livingRoomPoTokenId;this.G("html5_high_res_logging_always")?this.Co=!0: this.Co=Math.random()*100=0&&G0&&G.aL&&(R.sort(),g.EL(new g.Ic("Player client parameters changed after startup",R)));G.userAge=J8(G.userAge,X.user_age);G.Sa=iX(G.Sa,X.user_display_email);G.userDisplayImage=iX(G.userDisplayImage,X.user_display_image);g.ds(G.userDisplayImage)||(G.userDisplayImage= "");G.userDisplayName=iX(G.userDisplayName,X.user_display_name);G.bE=iX(G.bE,X.user_gender);G.csiPageType=iX(G.csiPageType,X.csi_page_type);G.csiServiceName=iX(G.csiServiceName,X.csi_service_name);G.L2=bX(G.L2,X.enablecsi);G.pageId=iX(G.pageId,X.pageid);if(Q=X.enabled_engage_types)G.enabledEngageTypes=new Set(Q.split(","));X.living_room_session_po_token&&(G.Ge=X.living_room_session_po_token.toString())}; jb=function(G,X){return!G.S&&t8()&&s_(55)&&G.controlsType==="3"&&!X}; g.Ml=function(G){G=hB(G.a$);return G==="www.youtube-nocookie.com"?"www.youtube.com":G}; mD=function(G,X,Q){return G.protocol+"://i1.ytimg.com/vi/"+X+"/"+(Q||"hqdefault.jpg")}; oI=function(G){return G$(G)&&!g.ZK(G)}; g.RI=function(G){return G.G("html5_local_playsinline")?y9&&!g.Wo(602)&&!("playsInline"in mB()):y9&&!G.KQ||g.Ci("nintendo wiiu")?!0:!1}; oD=function(G){return G.N.c}; g.jJ=function(G){return/^TVHTML5/.test(oD(G))}; g.up=function(G){return oD(G)==="TVHTML5"}; OmT=function(G){return oD(G)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; C07=function(G){return G.N.cmodel==="CHROMECAST ULTRA/STEAK"||G.N.cmodel==="CHROMECAST/STEAK"}; g.PM=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; YU=function(G){return/web/i.test(oD(G))}; g.sB=function(G){return oD(G).toUpperCase()==="WEB"}; kn=function(G){return oD(G)==="WEB_KIDS"}; g.ZK=function(G){return oD(G)==="WEB_UNPLUGGED"}; T$=function(G){return oD(G)==="TVHTML5_UNPLUGGED"}; g.kU=function(G){return g.ZK(G)||oD(G)==="TV_UNPLUGGED_CAST"||T$(G)}; g.lP=function(G){return oD(G)==="WEB_REMIX"}; g.KK=function(G){return oD(G)==="WEB_MUSIC_INTEGRATIONS"}; g.eb=function(G){return oD(G)==="WEB_EMBEDDED_PLAYER"}; g.aI=function(G){return(G.deviceIsAudioOnly||!g.un||WI||G.controlsType==="3"?!1:g.NN?G.V&&g.Wo(51):!0)||(G.deviceIsAudioOnly||!g.Lj||WI||G.controlsType==="3"?!1:g.NN?G.V&&g.Wo(48):g.Wo(38))||(G.deviceIsAudioOnly||!g.b$||WI||G.controlsType==="3"?!1:g.NN?G.V&&g.Wo(37):g.Wo(27))||!G.deviceIsAudioOnly&&g.rS&&!o$y()&&g.Wo(11)||!G.deviceIsAudioOnly&&g.Y_&&g.Wo("604.4")}; d0i=function(G){if(g.Sb(G)&&Xk)return!1;if(g.Lj){if(!g.Wo(47)||!g.Wo(52)&&g.Wo(51))return!1}else if(g.Y_)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; paU=function(G,X){return G.enabledEngageTypes.has(X.toString())||Wil.includes(X)}; G$=function(G){return G.Mi==="detailpage"}; g.Sb=function(G){return G.Mi==="embedded"}; EB=function(G){return G.Mi==="leanback"}; i$=function(G){return G.Mi==="adunit"||G.playerStyle==="gvn"}; g.HM=function(G){return G.Mi==="profilepage"}; g.Jn=function(G){return G.V&&g.Sb(G)&&!i$(G)&&!G.S}; xn=function(G){if(!G.userDisplayImage)return"";var X=G.userDisplayImage.split("/");if(X.length===5)return G=X[X.length-1].split("="),G[1]="s20-c",X[X.length-1]=G.join("="),X.join("/");if(X.length===8)return X.splice(7,0,"s20-c"),X.join("/");if(X.length===9)return X[7]+="-s20-c",X.join("/");g.EL(new g.Ic("Profile image not a FIFE URL.",G.userDisplayImage));return G.userDisplayImage}; g.OB=function(G){var X=g.Ml(G);yAG.includes(X)&&(X="www.youtube.com");return G.protocol+"://"+X}; g.z$=function(G,X){X=X===void 0?"":X;if(G.rJ){var Q=new aT,R,S=G.rJ();S.signedOut?R="":S.token?R=S.token:S.pendingResult.then(function(Z){S.signedOut?Q.resolve(""):Q.resolve(Z.token)},function(Z){g.EL(new g.Ic("b189348328_oauth_callback_failed",{error:Z})); Q.resolve(X)}); return R!==void 0?Eh(R):new rp(Q)}return Eh(X)}; cM=function(G,X){X=X===void 0?"":X;return G.Xs?VX(!0):yX(p_(VX(g.z$(G,X)),function(Q){return VX(!!Q)}),function(){return VX(!1)})}; fdi=function(G,X){X==null||p_(X,function(Q){G.f4=Q;var R,S;(R=G.R6)!=null&&(S=R.N)!=null&&(S.N=new cm(Q,S.W,S.Y),g.d(S,S.N))})}; hB=function(G){var X=g.hN(G);return(G=Number(g.we(G)[4]||null)||null)?X+":"+G:X}; gS=function(G,X){X=X===void 0?!1:X;var Q=IE[G],R=D0X[Q],S=NwZ[G];if(!S||!R)return null;X=new CP(X?S.height:S.width,X?S.width:S.height,S.fps);R=VC(R,X,Q);return new dP(G,R,{video:X,jA:S.bitrate/8})}; nWT=function(G){var X=D0X[IE[G]],Q=AAw[G];return Q&&X?new dP(G,X,{audio:new e0(Q.audioSampleRate,Q.numChannels)}):null}; UB=function(G){this.N=G}; lp=function(G,X,Q,R){if(Q)return am();Q={};var S=mB();X=g.e(X);for(var Z=X.next();!Z.done;Z=X.next())if(Z=Z.value,G.canPlayType(S,Z.getInfo().mimeType)||R){var H=Z.N.video.quality;if(!Q[H]||Q[H].getInfo().A1())Q[H]=Z}G=[];Q.auto&&G.push(Q.auto);R=g.e(tR);for(S=R.next();!S.done;S=R.next())(S=Q[S.value])&&G.push(S);return G.length?Eh(G):am()}; $0i=function(G){this.itag=G.itag;this.url=G.url;this.codecs=G.codecs;this.width=G.width;this.height=G.height;this.fps=G.fps;this.bitrate=G.bitrate;var X;this.W=((X=G.audioItag)==null?void 0:X.split(","))||[];this.Ad=G.Ad;this.sT=G.sT||"";this.kP=G.kP;this.audioChannels=G.audioChannels;this.N=""}; bmS=function(G,X,Q,R){X=X===void 0?!1:X;Q=Q===void 0?!0:Q;R=R===void 0?{}:R;var S={};G=g.e(G);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;if(X&&MediaSource&&MediaSource.isTypeSupported){var H=Z.type;Z.audio_channels&&(H=H+"; channels="+Z.audio_channels);if(!MediaSource.isTypeSupported(H)){R[Z.itag]="tpus";continue}}if(Q||!Z.drm_families||Z.eotf!=="smpte2084"&&Z.eotf!=="arib-std-b67"){H=void 0;var w={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},h=Z.type.match(/codecs="([^"]*)"/); h=h?h[1]:"";Z.audio_track_id&&(H=new g.Up(Z.name,Z.audio_track_id,!!Z.is_default));var L=Z.eotf;Z=new $0i({itag:Z.itag,url:Z.url,codecs:h,width:Number(Z.width),height:Number(Z.height),fps:Number(Z.fps),bitrate:Number(Z.bitrate),audioItag:Z.audio_itag,Ad:L?w[L]:void 0,sT:Z.drm_families,kP:H,audioChannels:Number(Z.audio_channels)});S[Z.itag]=S[Z.itag]||[];S[Z.itag].push(Z)}else R[Z.itag]="enchdr"}return S}; vWG=function(G,X,Q,R,S){this.Y=G;this.W=X;this.C=Q;this.cpn=R;this.S=S;this.V=0;this.N=""}; JAC=function(G,X){G.Y.some(function(Q){var R;return((R=Q.kP)==null?void 0:R.getId())===X}); G.N=X}; BM=function(G,X,Q){G.cpn&&(X=g.on(X,{cpn:G.cpn}));Q&&(X=g.on(X,{paired:Q}));return X}; imX=function(G,X){G=G.itag.toString();X!==null&&(G+=X.itag.toString());return G}; G8S=function(G){for(var X=[],Q=[],R=g.e(G.W),S=R.next();!S.done;S=R.next())S=S.value,S.bitrate<=G.V?X.push(S):Q.push(S);X.sort(function(Z,H){return H.bitrate-Z.bitrate}); Q.sort(function(Z,H){return Z.bitrate-H.bitrate}); G.W=X.concat(Q)}; Fk=function(G,X,Q){this.N=G;this.W=X;this.expiration=Q;this.xP=null}; XEi=function(G,X){if(!(WI||WT()||Im()))return null;G=bmS(X,G.G("html5_filter_fmp4_in_hls"));if(!G)return null;X=[];for(var Q={},R=g.e(Object.keys(G)),S=R.next();!S.done;S=R.next()){S=g.e(G[S.value]);for(var Z=S.next();!Z.done;Z=S.next()){var H=Z.value;H.kP&&(Z=H.kP.getId(),Q[Z]||(H=new g.a_(Z,H.kP),Q[Z]=H,X.push(H)))}}return X.length>0?X:null}; HNl=function(G,X,Q,R,S,Z,H){if(!(WI||WT()||Im()))return am();var w={},h=Qwe(Q),L=bmS(Q,G.G("html5_filter_fmp4_in_hls"),G.C.J,w);if(!L)return H({noplst:1}),am();RuV(L);Q={};var k=(Q.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Q),Y;Q=[];var M=[],m=[],u=null,r="";R=R&&R.match(/hls_timedtext_playlist/)?new $0i({itag:"0",url:R,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,kP:new g.Up("English","en",!1)}):null;for(var x=g.e(Object.keys(L)),c=x.next();!c.done;c=x.next())if(c=c.value,!G.G("html5_disable_drm_hfr_1080")|| c!=="383"&&c!=="373"){c=g.e(L[c]);for(var z=c.next();!z.done;z=c.next())if(z=z.value,z.width){for(var B=g.e(z.W),V=B.next();!V.done;V=B.next())if(V=V.value,L[V]){z.N=V;break}z.N||(z.N=SWS(L,z));if(B=L[z.N])if(Q.push(z),z.sT==="fairplay"&&(Y=k),V="",z.Ad==="PQ"?V="smpte2084":z.Ad==="HLG"&&(V="arib-std-b67"),V&&(r=V),m.push(ZNy(B,[z],R,Z,z.itag,z.width,z.height,z.fps,h,void 0,void 0,Y,V)),!u||z.width*z.height*z.fps>u.width*u.height*u.fps)u=z}else M.push(z)}else w[c]="disdrmhfr";m.reduce(function(p, b){return b.getInfo().isEncrypted()&&p},!0)&&(Y=k); S=Math.max(S,0);k=u||{};L=k.fps===void 0?0:k.fps;u=k.width===void 0?0:k.width;k=k.height===void 0?0:k.height;x=G.G("html5_native_audio_track_switching");m.push(ZNy(M,Q,R,Z,"93",u,k,L,h,"auto",S,Y,r,x));Object.entries(w).length&&H(w);return lp(G.C,m,jb(G,X),!1)}; ZNy=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m){for(var u=0,r="",x=g.e(G),c=x.next();!c.done;c=x.next())c=c.value,r||(r=c.itag),c.audioChannels&&c.audioChannels>u&&(u=c.audioChannels,r=c.itag);S=new dP(S,"application/x-mpegURL",{audio:new e0(0,u),video:new CP(Z,H,w,null,void 0,L,void 0,void 0,M),sT:Y,c7:r});G=new vWG(G,X,Q?[Q]:[],R,!!m);G.V=k?k:1369843;return new Fk(S,G,h)}; Qwe=function(G){G=g.e(G);for(var X=G.next();!X.done;X=G.next())if(X=X.value,X.url&&(X=X.url.split("expire/"),!(X.length<=1)))return+X[1].split("/")[0];return NaN}; SWS=function(G,X){for(var Q=g.e(Object.keys(G)),R=Q.next();!R.done;R=Q.next()){R=R.value;var S=G[R][0];if(!S.width&&S.sT===X.sT&&!S.audioChannels)return R}return""}; RuV=function(G){for(var X=new Set,Q=g.e(Object.values(G)),R=Q.next();!R.done;R=Q.next())R=R.value,R.length&&(R=R[0],R.height&&R.codecs.startsWith("vp09")&&X.add(R.height));Q=[];if(X.size){R=g.e(Object.keys(G));for(var S=R.next();!S.done;S=R.next())if(S=S.value,G[S].length){var Z=G[S][0];Z.height&&X.has(Z.height)&&!Z.codecs.startsWith("vp09")&&Q.push(S)}}X=g.e(Q);for(Q=X.next();!Q.done;Q=X.next())delete G[Q.value]}; CK=function(G,X){this.N=G;this.W=X}; qWy=function(G,X,Q,R){var S=[];Q=g.e(Q);for(var Z=Q.next();!Z.done;Z=Q.next()){var H=Z.value;if(H.url){Z=new g.D1(H.url,!0);if(H.s){var w=Z,h=H.sp,L=W9l(decodeURIComponent(H.s));w[q[2]](h,encodeURIComponent(L))}w=g.e(Object.keys(R));for(h=w.next();!h.done;h=w.next())h=h.value,Z.set(h,R[h]);H=XP(H.type,H.quality,H.itag,H.width,H.height);S.push(new CK(H,Z))}}return lp(G.C,S,jb(G,X),!1)}; tB=function(G,X){this.N=G;this.W=X}; wEU=function(G,X,Q){var R=[];Q=g.e(Q);for(var S=Q.next();!S.done;S=Q.next())if((S=S.value)&&S.url){var Z=XP(S.type,"medium","0");R.push(new tB(Z,S.url))}return lp(G.C,R,jb(G,X),!1)}; huC=function(G,X){var Q=[],R=XP(X.type,"auto",X.itag);Q.push(new tB(R,X.url));return lp(G.C,Q,!1,!0)}; k8e=function(G){return G&&LbC[G]?LbC[G]:null}; YW0=function(G){switch(G){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":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 G;default:return"sabr.config"}}; jwZ=function(G){if(G=G.commonConfig)this.url=G.url,this.urlQueryOverride=G.urlQueryOverride,G.ustreamerConfig&&(this.yE=gn(G.ustreamerConfig)||void 0)}; Ms0=function(G,X){var Q;if(X=X==null?void 0:(Q=X.watchEndpointSupportedOnesieConfig)==null?void 0:Q.html5PlaybackOnesieConfig)G.hq=new jwZ(X)}; g.VT=function(G){G=G===void 0?{}:G;this.languageCode=G.languageCode||"";this.languageName=G.languageName||null;this.kind=G.kind||"";this.name=G.name===void 0?null:G.name;this.displayName=G.displayName||null;this.id=G.id||null;this.N=G.is_servable||!1;this.isTranslateable=G.is_translateable||!1;this.url=G.url||null;this.vssId=G.vss_id||"";this.isDefault=G.is_default||!1;this.translationLanguage=G.translationLanguage||null;this.xtags=G.xtags||"";this.captionId=G.captionId||""}; g.dS=function(G){var X={languageCode:G.languageCode,languageName:G.languageName,displayName:g.II(G),kind:G.kind,name:G.name,id:G.id,is_servable:G.N,is_default:G.isDefault,is_translateable:G.isTranslateable,vss_id:G.vssId};G.xtags&&(X.xtags=G.xtags);G.captionId&&(X.captionId=G.captionId);G.translationLanguage&&(X.translationLanguage=G.translationLanguage);return X}; g.WM=function(G){return G.translationLanguage?G.translationLanguage.languageCode:G.languageCode}; g.mcX=function(G){var X=G.vssId;G.translationLanguage&&X&&(X="t"+X+"."+g.WM(G));return X}; g.II=function(G){var X=[];if(G.displayName)X.push(G.displayName);else{var Q=G.languageName||"";X.push(Q);G.kind==="asr"&&Q.indexOf("(")===-1&&X.push(" (Automatic Captions)");G.name&&X.push(" - "+G.name)}G.translationLanguage&&X.push(" >> "+G.translationLanguage.languageName);return X.join("")}; swe=function(G,X,Q,R){G||(G=X&&osG.hasOwnProperty(X)&&ul0.hasOwnProperty(X)?ul0[X]+"_"+osG[X]:void 0);X=G;if(!X)return null;G=X.match(P17);if(!G||G.length!==5)return null;if(G=X.match(P17)){var S=Number(G[3]),Z=[7,8,10,5,6];G=!(Number(G[1])===1&&S===8)&&Z.indexOf(S)>=0}else G=!1;return Q||R||G?X:null}; pK=function(G,X){for(var Q={},R=g.e(Object.keys(TkC)),S=R.next();!S.done;S=R.next()){S=S.value;var Z=X?X+S:S;Z=G[Z+"_webp"]||G[Z];g.ds(Z)&&(Q[TkC[S]]=Z)}return Q}; yT=function(G){var X={};if(!G||!G.thumbnails)return X;G=G.thumbnails.filter(function(w){return!!w.url}); G.sort(function(w,h){return w.width-h.width||w.height-h.height}); for(var Q=g.e(Object.keys(KbC)),R=Q.next();!R.done;R=Q.next()){var S=Number(R.value);R=KbC[S];for(var Z=g.e(G),H=Z.next();!H.done;H=Z.next())if(H=H.value,H.width>=S){S=euT(H.url);g.ds(S)&&(X[R]=S);break}}(G=G.pop())&&G.width>=1280&&(G=euT(G.url),g.ds(G)&&(X["maxresdefault.jpg"]=G));return X}; euT=function(G){return G.startsWith("//")?"https:"+G:G}; fK=function(G){return G&&G.baseUrl||""}; DK=function(G){G=g.vO(G);for(var X=g.e(Object.keys(G)),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var R=G[Q];G[Q]=Array.isArray(R)?R[0]:R}return G}; rpV=function(G,X){G.botguardData=X.playerAttestationRenderer.botguardData;X=X.playerAttestationRenderer.challenge;X!=null&&(G.Ai=X)}; xci=function(G,X){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var R=Q.interstitials.map(function(H){var w=g.y(H,aQw);if(w)return{is_yto_interstitial:!0,raw_player_response:w};if(H=g.y(H,Esl))return Object.assign({is_yto_interstitial:!0},$r(H))}); R=g.e(R);for(var S=R.next();!S.done;S=R.next())switch(S=S.value,Q.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":G.interstitials=G.interstitials.concat({time:0,playerVars:S,Of:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":G.interstitials=G.interstitials.concat({time:0x7ffffffffffff,playerVars:S,Of:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var Z=Number(Q.podConfig.timeToInsertAtMillis);G.interstitials=G.interstitials.concat({time:Z,playerVars:S, Of:Z===0?5:7})}}}; ONy=function(G,X){if(X=X.find(function(Q){return!(!Q||!Q.tooltipRenderer)}))G.tooltipRenderer=X.tooltipRenderer}; zu7=function(G,X){X.subscribeCommand&&(G.subscribeCommand=X.subscribeCommand);X.unsubscribeCommand&&(G.unsubscribeCommand=X.unsubscribeCommand);X.addToWatchLaterCommand&&(G.addToWatchLaterCommand=X.addToWatchLaterCommand);X.removeFromWatchLaterCommand&&(G.removeFromWatchLaterCommand=X.removeFromWatchLaterCommand);X.getSharePanelCommand&&(G.getSharePanelCommand=X.getSharePanelCommand)}; cpV=function(G,X){X!=null?(G.v1=X,G.KY=!0):(G.v1="",G.KY=!1)}; Nl=function(G,X){this.type=G||"";this.id=X||""}; AB=function(G){return new Nl(G.substring(0,2),G.substring(2))}; nK=function(G,X){this.hT=G;this.author="";this.dR=null;this.playlistLength=0;this.N=this.sessionData=null;this.T={};this.title="";if(X){this.author=X.author||X.playlist_author||"";this.title=X.playlist_title||"";if(G=X.session_data)this.sessionData=AD(G,"&");var Q;this.N=((Q=X.thumbnail_ids)==null?void 0:Q.split(",")[0])||null;this.T=pK(X,"playlist_");this.videoId=X.video_id||void 0;if(Q=X.list)switch(X.listType){case "user_uploads":this.playlistId=(new Nl("UU","PLAYER_"+Q)).toString();break;default:if(G= X.playlist_length)this.playlistLength=Number(G)||0;this.playlistId=AB(Q).toString();if(X=X.video)this.videoId=(X[0]||null).video_id||void 0}else X.playlist&&(this.playlistLength=X.playlist.toString().split(",").length)}}; $n=function(G,X){this.hT=G;this.bX=this.author="";this.dR=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.uj=this.lengthText="";this.sessionData=null;this.T={};this.title="";if(X){this.ariaLabel=X.aria_label||void 0;this.author=X.author||"";this.bX=X.bX||"";if(G=X.endscreen_autoplay_session_data)this.dR=AD(G,"&");this.QS=X.QS;this.isLivePlayback=X.live_playback==="1";this.isUpcoming=!!X.isUpcoming;if(G=X.length_seconds)this.lengthSeconds=typeof G==="string"?Number(G):G;this.lengthText= X.lengthText||"";this.uj=X.uj||"";this.publishedTimeText=X.publishedTimeText||void 0;if(G=X.session_data)this.sessionData=AD(G,"&");this.shortViewCount=X.short_view_count_text||void 0;this.T=pK(X);this.title=X.title||"";this.videoId=X.docid||X.video_id||X.videoId||X.id||void 0;this.watchUrl=X.watchUrl||void 0}}; gsw=function(G){var X,Q,R=(X=G.getWatchNextResponse())==null?void 0:(Q=X.contents)==null?void 0:Q.twoColumnWatchNextResults,S,Z,H,w,h;G=(S=G.getWatchNextResponse())==null?void 0:(Z=S.playerOverlays)==null?void 0:(H=Z.playerOverlayRenderer)==null?void 0:(w=H.endScreen)==null?void 0:(h=w.watchNextEndScreenRenderer)==null?void 0:h.results;if(!G){var L,k;G=R==null?void 0:(L=R.endScreen)==null?void 0:(k=L.endScreen)==null?void 0:k.results}return G}; g.vM=function(G){var X,Q,R;G=g.y((X=G.getWatchNextResponse())==null?void 0:(Q=X.playerOverlays)==null?void 0:(R=Q.playerOverlayRenderer)==null?void 0:R.decoratedPlayerBarRenderer,bp);return g.y(G==null?void 0:G.playerBar,UcG)}; lQS=function(G){this.N=G.playback_progress_0s_url;this.Y=G.playback_progress_2s_url;this.W=G.playback_progress_10s_url}; BkC=function(){if(JB===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(X){}a:{try{var G=!!self.localStorage}catch(X){G=!1}if(G&&(G=g.gC(g.WA()+"::yt-player"))){JB=new Cw(G);break a}JB=void 0}}return JB}; g.ip=function(){var G=BkC();if(!G)return{};try{var X=G.get("yt-player-lv");return JSON.parse(X||"{}")}catch(Q){return{}}}; g.Fbi=function(G){var X=BkC();X&&(G=JSON.stringify(G),X.set("yt-player-lv",G))}; g.GU=function(G){return g.ip()[G]||0}; g.Xu=function(G,X){var Q=g.ip();X!==Q[G]&&(X!==0?Q[G]=X:delete Q[G],g.Fbi(Q))}; g.Q1=function(G){return g.F(function(X){return X.return(g.VL(C1l(),G))})}; SX=function(G,X,Q,R,S,Z,H,w){var h,L,k,Y,M,m;return g.F(function(u){switch(u.W){case 1:return h=g.GU(G),h===4?u.return(4):g.l(u,g.NT(),2);case 2:L=u.N;if(!L)throw g.MT("wiac");if(!w||H===void 0){u.pO(3);break}return g.l(u,tsU(w,H),4);case 4:H=u.N;case 3:return k=Q.lastModified||"0",g.l(u,g.Q1(L),5);case 5:return Y=u.N,g.a0(u,6),RA++,g.l(u,g.Ee(Y,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",oW:!0},function(r){if(Z!==void 0&&H!==void 0){var x=""+G+"|"+X.id+"|"+k+"|"+String(Z).padStart(10, "0");x=g.x_(r.objectStore("media"),H,x)}else x=g.oq.resolve(void 0);var c=Vs0(G,X.oC()),z=Vs0(G,!X.oC()),B={fmts:IQG(R),format:Q||{}};c=g.x_(r.objectStore("index"),B,c);var V=R.downloadedEndTime===-1;B=V?r.objectStore("index").get(z):g.oq.resolve(void 0);var p={fmts:"music",format:{}};r=V&&S&&!X.oC()?g.x_(r.objectStore("index"),p,z):g.oq.resolve(void 0);return g.oq.all([r,B,x,c]).then(function(b){b=g.e(b);b.next();b=b.next().value;RA--;var A=g.GU(G);if(A!==4&&V&&S||b!==void 0&&g.dcV(b.fmts))A=1,g.Xu(G, A);return A})}),8); case 8:return u.return(u.N);case 6:M=g.cl(u);RA--;m=g.GU(G);if(m===4)return u.return(m);g.Xu(G,4);throw M;}})}; g.WbU=function(G){var X,Q;return g.F(function(R){if(R.W==1)return g.l(R,g.NT(),2);if(R.W!=3){X=R.N;if(!X)throw g.MT("ri");return g.l(R,g.Q1(X),3)}Q=R.N;return R.return(g.Ee(Q,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(S){var Z=IDBKeyRange.bound(G+"|",G+"~");return S.objectStore("index").getAll(Z).then(function(H){return H.map(function(w){return w?w.format:{}})})}))})}; ypi=function(G,X,Q,R,S){var Z,H,w;return g.F(function(h){if(h.W==1)return g.l(h,g.NT(),2);if(h.W!=3){Z=h.N;if(!Z)throw g.MT("rc");return g.l(h,g.Q1(Z),3)}H=h.N;w=g.Ee(H,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(L){var k=""+G+"|"+X+"|"+Q+"|"+String(R).padStart(10,"0");return L.objectStore("media").get(k)}); return S?h.return(w.then(function(L){if(L===void 0)throw Error("No data from indexDb");return pE0(S,L)}).catch(function(L){throw new g.Ic("Error while reading chunk: "+L.name+", "+L.message); })):h.return(w)})}; g.dcV=function(G){return G?G==="music"?!0:G.includes("dlt=-1")||!G.includes("dlt="):!1}; Vs0=function(G,X){return""+G+"|"+(X?"v":"a")}; IQG=function(G){var X={};return nc((X.dlt=G.downloadedEndTime.toString(),X.mket=G.maxKnownEndTime.toString(),X.avbr=G.averageByteRate.toString(),X))}; DcG=function(G){var X={},Q={};G=g.e(G);for(var R=G.next();!R.done;R=G.next()){var S=R.value,Z=S.split("|");S.match(g.fQS)?(R=Number(Z.pop()),isNaN(R)?Q[S]="?":(Z=Z.join("|"),(S=X[Z])?(Z=S[S.length-1],R===Z.end+1?Z.end=R:S.push({start:R,end:R})):X[Z]=[{start:R,end:R}])):Q[S]="?"}G=g.e(Object.keys(X));for(R=G.next();!R.done;R=G.next())R=R.value,Q[R]=X[R].map(function(H){return H.start+"-"+H.end}).join(","); return Q}; ZI=function(G){g.ic.call(this);this.N=null;this.Y=new BJ;this.N=null;this.S=new Set;this.crossOrigin=G||""}; Nkw=function(G,X,Q){for(Q=H4(G,Q);Q>=0;){var R=G.levels[Q];if(R.isLoaded(qL(R,X))&&(R=g.wx(R,X)))return R;Q--}return g.wx(G.levels[0],X)}; nsi=function(G,X,Q){Q=H4(G,Q);for(var R,S;Q>=0;Q--)if(R=G.levels[Q],S=qL(R,X),!R.isLoaded(S)){R=G;var Z=Q,H=Z+"-"+S;R.S.has(H)||(R.S.add(H),R.Y.enqueue(Z,{Dx:Z,fB:S}))}ApZ(G)}; ApZ=function(G){if(!G.N&&!G.Y.isEmpty()){var X=G.Y.remove();G.N=$c7(G,X)}}; $c7=function(G,X){var Q=document.createElement("img");G.crossOrigin&&(Q.crossOrigin=G.crossOrigin);Q.src=G.levels[X.Dx].Rt(X.fB);Q.onload=function(){var R=X.Dx,S=X.fB;G.N!==null&&(G.N.onload=null,G.N=null);R=G.levels[R];R.loaded.add(S);ApZ(G);var Z=R.columns*R.rows;S*=Z;R=Math.min(S+Z-1,R.NO()-1);S=[S,R];G.publish("l",S[0],S[1])}; return Q}; g.hP=function(G,X,Q,R){this.level=G;this.V=X;this.loaded=new Set;this.level=G;this.V=X;G=Q.split("#");this.width=Math.floor(Number(G[0]));this.height=Math.floor(Number(G[1]));this.frameCount=Math.floor(Number(G[2]));this.columns=Math.floor(Number(G[3]));this.rows=Math.floor(Number(G[4]));this.N=Math.floor(Number(G[5]));this.Y=G[6];this.signature=G[7];this.videoLength=R}; qL=function(G,X){return Math.floor(X/(G.columns*G.rows))}; g.wx=function(G,X){X>=G.wN()&&G.m$();var Q=qL(G,X),R=G.columns*G.rows,S=X%R;X=S%G.columns;S=Math.floor(S/G.columns);var Z=G.m$()+1-R*Q;if(Z1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; bNy=function(G,X,Q){return(G=G.levels[X])?G.IN(Q):-1}; H4=function(G,X){var Q=G.V.get(X);if(Q)return Q;Q=G.levels.length;for(var R=0;R=X)return G.V.set(X,R),R;G.V.set(X,Q-1);return Q-1}; kP=function(G,X,Q,R){Q=Q.split("#");Q=[Q[1],Q[2],0,Q[3],Q[4],-1,Q[0],""].join("#");g.hP.call(this,G,X,Q,0);this.W=null;this.C=R?2:0}; YP=function(G,X,Q,R){LL.call(this,G,0,void 0,X,!(R===void 0||!R));for(G=0;G=0?jy.countDownSecsForFullscreen*1E3:-1);G.G("web_autonav_color_transition")&&jy.watchToWatchTransitionRenderer&&(G.watchToWatchTransitionRenderer=g.y(jy.watchToWatchTransitionRenderer, kli))}var T4=gsw(G);if(T4){var YN,h3,sn,Ts=T4==null?void 0:(YN=T4[0])==null?void 0:(h3=YN.endScreenVideoRenderer)==null?void 0:(sn=h3.navigationEndpoint)==null?void 0:sn.clickTrackingParams,FC=g.KL(G);Ts&&FC&&(FC.sessionData={itct:Ts})}G.QH.currentVideoThumbnail&&(G.T=yT(G.QH.currentVideoThumbnail));var Wb,pO,yg,RJ,C3,T2=(Wb=G.QH)==null?void 0:(pO=Wb.contents)==null?void 0:(yg=pO.twoColumnWatchNextResults)==null?void 0:(RJ=yg.results)==null?void 0:(C3=RJ.results)==null?void 0:C3.contents;if(T2&&T2[1]){var tW, Sd,fO,EM,KS=(tW=T2[1].videoSecondaryInfoRenderer)==null?void 0:(Sd=tW.owner)==null?void 0:(fO=Sd.videoOwnerRenderer)==null?void 0:(EM=fO.thumbnail)==null?void 0:EM.thumbnails;KS&&KS.length&&(G.profilePicture=KS[KS.length-1].url)}var VP=X1(X),Z5,KA=(Z5=G.getWatchNextResponse())==null?void 0:Z5.onResponseReceivedEndpoints;if(KA)for(var Hp=g.e(KA),Vr=Hp.next();!Vr.done;Vr=Hp.next()){var el=Vr.value;g.y(el,eX)&&(G.Dy=g.y(el,eX));var Rs=g.y(el,YHe),$E=void 0;if(($E=Rs)==null?0:$E.entityKeys)G.C6=Rs.entityKeys|| [],Rs.visibleOnLoadKeys&&(G.visibleOnLoadKeys=Rs.visibleOnLoadKeys)}if(G.G("web_key_moments_markers")){var LC=g.rx.getState().entities,wD=g.nr("visibility_override","markersVisibilityOverrideEntity");var IZ=bJ(LC,"markersVisibilityOverrideEntity",wD);G.cM=(IZ==null?void 0:IZ.videoId)===(G.videoId||VP)&&(IZ==null?0:IZ.visibilityOverrideMarkersKey)?IZ.visibilityOverrideMarkersKey:G.visibleOnLoadKeys;G.visibleOnLoadKeys=[].concat(g.o0(G.cM))}}}; sc=function(G){var X;return((X=G.autoplaySwitchButtonRenderer)==null?void 0:X.enabled)!==void 0}; aA=function(G){return!!(G.Y&&G.Y.videoInfos&&G.Y.videoInfos.length)}; g.gx=function(G){var X=G.J;G.G("html5_gapless_unlimit_format_selection")&&Ec(G)&&(X=!1);var Q=!!G.N&&G.N.IW,R=G.hT,S=G.yb(),Z=xP(G),H=G.wb,w=X,h=G.isOtf();X=G.BT();var L=G.KO,k=G.getUserAudio51Preference(),Y=Oc(G),M=zU(G),m=new Usw(R);if(R.n7()||R.G("html5_logging_format_selection"))m.W=!0;m.CO=Z;m.wb=H&&R.T;m.Mi=k;g.Ci("windows nt 5.1")&&!g.Lj&&(m.TO=!0);if(Z=S)Z=g.aI(R)?d0i(R):!1;Z&&(m.AT=!0);w&&(m.TO=!0,m.l9=!0);h&&!R.G("html5_otf_prefer_vp9")&&(m.TO=!0);R.playerStyle==="picasaweb"&&(h&&(m.TO= !1),m.yH=!1);L&&(m.TO=!0);ys(R.C,fR.CHANNELS)&&(R.G("html5_enable_ac3")&&(m.V=!0),R.G("html5_enable_eac3")&&(m.C=!0),R.G("html5_enable_ac3_gapless")&&(m.QH=!0));R.G("html5_block_8k_hfr")&&(m.cM=!0);m.S=g.i2(R.experiments,"html5_max_selectable_quality_ordinal");m.J=g.i2(R.experiments,"html5_min_selectable_quality_ordinal");$M&&(m.f7=480);if(Q||S)m.yH=!1;m.BM=!1;m.disableAv1=Y;Q=X7(R,m.N,void 0,m.disableAv1);Q>0&&Q<2160&&(mL()||R.G("html5_format_hybridization"))&&(m.N.supportsChangeType=+mL(),m.V1= Q);Q>=2160&&(m.DC=!0);$37()&&!R.G("disable_av1_setting")&&(m.N.serveVp9OverAv1IfHigherRes=0,m.kS=!1);m.BT=X;m.SA=g.pl||ni()&&!X?!1:!0;m.T=R.G("html5_format_hybridization");m.N9=R.G("html5_disable_encrypted_vp9_live_non_2k_4k");m.Hs=M;c4(G)&&(m.R6=G.G("html5_prefer_language_over_codec"));Im()&&G.playerResponse&&G.playerResponse.playerConfig&&G.playerResponse.playerConfig.webPlayerConfig&&G.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(m.V=!0,m.C=!0);G.J&&G.isAd()&&(G.OH&& (m.j=G.OH),G.Fo&&(m.Y=G.Fo));m.IU=G.isLivePlayback&&G.VJ()&&G.hT.G("html5_drm_live_audio_51");m.As=G.bb;m.Ps=!c4(G);return G.bf=m}; Oc=function(G){return G.hT.G("html5_disable_av1")||G.G("html5_gapless_shorts_disable_av1")&&Ec(G)?!0:!1}; jkS=function(G){aa("drm_pb_s",void 0,G.AT);G.CO||G.N&&Vs(G.N);var X={};G.N&&(X=h5Z(G.p6,g.gx(G),G.hT.C,G.N,function(Q){return G.publish("ctmp","fmtflt",Q)},!0,new Set)); X=new jC(X,G.hT,G.mE,G.useCobaltWidevine?Im()?Uc(G):!1:!1,function(Q,R){G.Ni(Q,R)}); g.d(G,X);G.bZ=!1;G.loading=!0;C97(X,function(Q){aa("drm_pb_f",void 0,G.AT);for(var R=g.e(Q),S=R.next();!S.done;S=R.next())switch(S=S.value,S.flavor){case "fairplay":S.CO=G.CO;S.oP=G.oP;S.IP=G.IP;break;case "widevine":S.jl=G.jl}G.t8=Q;if(G.t8.length>0&&(G.C=G.t8[0],G.hT.n7())){Q={};R=g.e(Object.entries(G.C.N));for(S=R.next();!S.done;S=R.next()){var Z=g.e(S.value);S=Z.next().value;Z=Z.next().value;var H="unk";(S=S.match(/(.*)codecs="(.*)"/))&&(H=S[2]);Q[H]=Z}G.Ni("drmProbe",Q)}G.f_()})}; Mc0=function(G,X){if(X.length===0||lV(G))return null;G.hT.C.Y&&(J1=!0);var Q=G.sT;var R=G.lengthSeconds,S=G.isLivePlayback,Z=G.It,H=G.hT,w=oqG(X);if(S||Z){H=H.experiments;R=new t1("",H,!0);R.W=!Z;R.IW=!0;R.isManifestless=!0;R.isLive=!Z;R.It=Z;X=g.e(X);for(S=X.next();!S.done;S=X.next()){var h=S.value;S=d0(h,Q);w=v_(h);w=ph(w.qn||h.url||"",w.zL,w.s);var L=w.get("id");L&&L.includes("%7E")&&(R.AT=!0);var k=void 0;L=(k=H)==null?void 0:k.TT("html5_max_known_end_time_rebase");k=Number(h.targetDurationSec|| 5);h=Number(h.maxDvrDurationSec||14400);var Y=Number(w.get("mindsq")||w.get("min_sq")||"0"),M=Number(w.get("maxdsq")||w.get("max_sq")||"0")||Infinity;R.xO=R.xO||Y;R.HK=R.HK||M;var m=!Gv(S.mimeType);w&&BB(R,new ul(w,S,{w$:k,HD:m,Hh:h,xO:Y,HK:M,Ft:300,It:Z,FH:L}))}Q=R}else if(w==="FORMAT_STREAM_TYPE_OTF"){R=R===void 0?0:R;Z=new t1("",H.experiments,!1);Z.duration=R||0;H=g.e(X);for(R=H.next();!R.done;R=H.next())R=R.value,X=d0(R,Q,Z.duration),S=v_(R),(S=ph(S.qn||R.url||"",S.zL,S.s))&&(X.streamType==="FORMAT_STREAM_TYPE_OTF"? BB(Z,new PB(S,X,"sq/0")):BB(Z,new g0(S,X,JQ(R.initRange),JQ(R.indexRange))));Z.isOtf=!0;Q=Z}else{R=R===void 0?0:R;Z=new t1("",H.experiments,!1);Z.duration=R||0;H=g.e(X);for(R=H.next();!R.done;R=H.next())w=R.value,R=d0(w,Q,Z.duration),X=JQ(w.initRange),S=JQ(w.indexRange),L=v_(w),(w=ph(L.qn||w.url||"",L.zL,L.s))&&BB(Z,new g0(w,R,X,S));Q=Z}Z=G.isLivePlayback&&!G.It&&!G.Yc&&!G.isPremiere;G.G("html5_live_head_playable")&&(!B4(G)&&Z&&G.Ni("missingLiveHeadPlayable",{}),G.hT.AT==="yt"&&(Q.CO=!0));return Q}; lV=function(G){return Im()?!Uc(G):WT()?!(!G.CO||!G.G("html5_enable_safari_fairplay")&&Td()):!1}; Uc=function(G){return G.G("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.P4=function(G,X){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,Q.cueRangeSetIdentifier){var R=void 0;G.VY.set(Q.cueRangeSetIdentifier,(R=Q.playerCueRanges)!=null?R:[])}}; Fu=function(G){return!(!G.N||!G.N.isManifestless)}; CL=function(G){return G.Js?G.isLowLatencyLiveStream&&G.N!=null&&N9(G.N)>=5:G.isLowLatencyLiveStream&&G.N!=void 0&&N9(G.N)>=5}; mhC=function(G){return Im()&&Uc(G)?!1:lV(G)&&(g.kU(G.hT)?!G.isLivePlayback:G.hlsvp)||!Td()||G.Kz?!0:!1}; u2l=function(G){G.loading=!0;G.Sa=!1;if(opy(G))g.WbU(G.videoId).then(function(R){var S;if((S=G.playerResponse)!=null&&S.streamingData){S=[];R=g.e(R);for(var Z=R.next();!Z.done;Z=R.next())Z=Object.assign({},Z.value),Z.signatureCipher="",S.push(Z);S.length<2&&G.Ni("offmlf",{len:S.length});S=Mc0(G,S);xP(G)&&zOC(S,!1);tP(G,S);G.Ni("dlr",{})}else G.Ni("offsdm",{cotn:G.zQ?G.zQ.cotn:"0",cpn:G.clientPlaybackNonce})}).then(function(){G.f_()}); else{Ie(G.F7)||g.EL(new g.Ic("DASH MPD Origin invalid: ",G.F7));var X=G.F7,Q=g.i2(G.hT.experiments,"dash_manifest_version")||4;X=g.on(X,{mpd_version:Q});G.isLowLatencyLiveStream&&G.latencyClass!=="NORMAL"||(X=g.on(X,{pacing:0}));atV(X,G.hT.experiments,G.isLivePlayback).then(function(R){G.U_()||(tP(G,R,!0),aa("mrc",void 0,G.AT),G.f_())},function(R){G.U_()||(G.loading=!1,G.publish("dataloaderror",new g.YE("manifest.net.retryexhausted",{backend:"manifest", rc:R.status},1)))}); aa("mrs",void 0,G.AT)}}; PeU=function(G){var X;return!((X=G.hT.getWebPlayerContextConfig())==null||!X.enableProximaLowLatency)}; V1=function(G){if(!G.isProximaLatencyEligible)return 0;var X=o_();return PeU(G)?2:X===1?1:G.G("html5_enable_proxima")?2:0}; tP=function(G,X,Q){Q=Q===void 0?!1:Q;G.dX=void 0;G.N=X;g.d(G,X);X.xO=G.xO;X.HK=G.HK;X.DC=G.DC;X.Hs=G.Hs;X.C7=G.C7;G.kU&&(X.j=new pf(G.kU));(G.yb()||g.IA(G))&&G.j.push("webgl");G.N.isLive||(G.isLivePlayback=!1);var R=X.sourceUrl.split("/");if(G.Js?R.indexOf("manifest_duration")!==-1:R.indexOf("manifest_duration")!=-1)G.QV=Number(R[R.indexOf("manifest_duration")+1]);if(X.W||X.isManifestless)X.subscribe("clienttemp",G.Ni,G),Q?X.subscribe("refresh",G.I0,G):X.subscribe("cuepointsadded",G.Ut,G);Vs(X)?G.bZ= !0:mA=void 0;G.Yc&&(X.V=G.Yc,X.isLive=!0,G.isLivePlayback=!0);X.isPremiere=G.isPremiere;X.isLiveHeadPlayable=G.isLiveHeadPlayable}; skC=function(G,X){var Q=X||mhC(G)||G.isExternallyHostedPodcast;if(!G.N||Q)return G.Ni("skipDash",{dm:!!G.N,air:X,dd:G.Kz,mss:Td(),"3pp":G.isExternallyHostedPodcast}),am();xP(G)&&zOC(G.N,G.isLivePlayback);return Eh().then(function(){return k5l(G.p6,g.gx(G),G.hT.C,G.N,G.C,function(R){return G.publish("ctmp","fmtflt",R)},G.GQ,c4(G)&&G.G("html5_enable_server_format_filter")).then(function(R){G.sI(R); G.p6.N=null;/^av/.test(G.clientPlaybackNonce)&&G.bf&&G.Ni("av1",G.bf.N)})})}; KSG=function(G,X){if(X&&G.hlsvp)return am();if(G.hlsFormats){X=dx(G.hlsFormats);var Q;if(((Q=G.bf)==null?0:Q.W)&&X){Q=[];for(var R=g.e(X),S=R.next();!S.done;S=R.next())Q.push(S.value.itag);G.Ni("hlsfmt",{itags:Q.join(".")})}G.Bi=XEi(G.hT,X);G.Bi&&T_0(G,G.Bi);Q=G.clientPlaybackNonce;var Z,H,w,h;return HNl(G.hT,G.isAd(),X,(h=(Z=G.playerResponse)==null?void 0:(H=Z.captions)==null?void 0:(w=H.playerCaptionsRenderer)==null?void 0:w.baseUrl)!=null?h:null,G.f7,Q,function(L){return G.publish("ctmp","hlsflt", L)}).then(function(L){for(var k=0,Y=[],M=g.e(L),m=M.next();!m.done;m=M.next()){m=m.value; var u=void 0;Y.push((u=m.getInfo())==null?void 0:u.itag);var r=u=void 0;((u=m.getInfo())==null?void 0:(r=u.audio)==null?void 0:r.numChannels)>k&&(k=m.getInfo().audio.numChannels)}k>2&&G.Ni("hlschl",{mn:k});var x;((x=G.bf)==null?0:x.W)&&G.Ni("hlsfmtaf",{itags:Y.join(".")});var c;if(G.G("html5_enable_vp9_fairplay")&&((c=G.C)==null?0:wn(c)))for(G.Ni("drm",{sbdlfbk:1}),k=g.e(G.t8),Y=k.next();!Y.done;Y=k.next())if(Y=Y.value,qK(Y)){G.C=Y;break}W4(G,L)})}return am()}; eYe=function(G){if(G.isExternallyHostedPodcast&&G.qd){var X=dx(G.qd);if(!X[0])return am();G.GjC=X[0];return huC(G.hT,X[0]).then(function(Q){W4(G,Q)})}return G.Ku&&G.iP?wEU(G.hT,G.isAd(),G.Ku).then(function(Q){W4(G,Q)}):am()}; aLw=function(G){if(G.isExternallyHostedPodcast)return am();var X=dx(G.qd,G.Nn);if(G.hlsvp){var Q=vsZ(G.hlsvp,G.clientPlaybackNonce,G.f7);X.push(Q)}return qWy(G.hT,G.isAd(),X,roX(G)).then(function(R){W4(G,R)})}; W4=function(G,X){G.l9=X;G.sI(new lF(g.P1(G.l9,function(Q){return Q.getInfo()})))}; roX=function(G){var X={cpn:G.clientPlaybackNonce,c:G.hT.N.c,cver:G.hT.N.cver};G.qz&&(X.ptk=G.qz,X.oid=G.qE,X.ptchn=G.CN,X.pltype=G.PC,G.aP&&(X.m=G.aP));return X}; g.pL=function(G){return lV(G)&&G.CO?(G={},G.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",G):G.W&&G.W.sT||null}; EpU=function(G){var X=y1(G);return X&&X.text?g.q1(X.text):G.paidContentOverlayText}; xhi=function(G){var X=y1(G);return X&&X.durationMs?FH(X.durationMs):G.paidContentOverlayDurationMs}; y1=function(G){var X,Q,R;return G.playerResponse&&G.playerResponse.paidContentOverlay&&G.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.y((X=G.QH)==null?void 0:(Q=X.playerOverlays)==null?void 0:(R=Q.playerOverlayRenderer)==null?void 0:R.playerDisclosure,OvZ)||null}; fL=function(G){var X="";if(G.rR)return G.rR;G.isLivePlayback&&(X=G.allowLiveDvr?"dvr":G.isPremiere?"lp":G.Yc?"window":"live");G.It&&(X="post");return X}; g.DI=function(G,X){return typeof G.keywords[X]!=="string"?null:G.keywords[X]}; zYG=function(G){return!!G.Bo||!!G.Kr||!!G.GV||!!G.iz||G.v7}; g.NL=function(G){return!!(G.F7||G.qd||G.Ku||G.hlsvp||G.qN())}; mP=function(G){if(G.G("html5_onesie")&&G.errorCode)return!1;var X=g.rH(G.j,"ypc");G.ypcPreview&&(X=!1);return G.eG()&&!G.loading&&(g.NL(G)||g.rH(G.j,"heartbeat")||X)}; dx=function(G,X){G=bb(G);var Q={};if(X){X=g.e(X.split(","));for(var R=X.next();!R.done;R=X.next())(R=R.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(Q[R[1]]={width:R[2],height:R[3]})}X=g.e(G);for(R=X.next();!R.done;R=X.next()){R=R.value;var S=Q[R.itag];S&&(R.width=S.width,R.height=S.height)}return G}; ZvS=function(G,X){G.showShareButton=!!X;var Q,R,S=((Q=g.y(X,g.Lv))==null?void 0:Q.navigationEndpoint)||((R=g.y(X,g.Lv))==null?void 0:R.command);S&&(G.QE=!!g.y(S,col))}; Jpy=function(G,X){var Q=X.raw_embedded_player_response;if(!Q){var R=X.embedded_player_response;R&&(Q=JSON.parse(R))}Q&&(G.o$=Q);if(G.o$){G.embeddedPlayerConfig=G.o$.embeddedPlayerConfig||null;if(Q=G.o$.videoFlags)Q.playableInEmbed&&(G.allowEmbed=!0),Q.isPrivate&&(G.isPrivate=!0),Q.userDisplayName&&(X.user_display_name=Q.userDisplayName),Q.userDisplayImage&&(X.user_display_image=Q.userDisplayImage);if(Q=G.o$.embedPreview){Q=Q.thumbnailPreviewRenderer;cpV(G,Q.controlBgHtml);if(R=Q.defaultThumbnail)G.T= yT(R);G.G("embeds_web_enable_search_button")&&Q.searchButton&&(R=g.y(Q.searchButton,g.Lv))&&(G.qdU=g.y(R.navigationEndpoint,g.AP));(R=g.y(Q==null?void 0:Q.videoDetails,gpC))&&hYl(G,X,R);R=g.y(Q==null?void 0:Q.videoDetails,UhZ);G.eI=!!Q.addToWatchLaterButton;ZvS(G,Q.shareButton);if(R==null?0:R.musicVideoType)G.musicVideoType=R.musicVideoType;var S,Z,H,w,h;if(R=g.y((S=G.getEmbeddedPlayerResponse())==null?void 0:(Z=S.embedPreview)==null?void 0:(H=Z.thumbnailPreviewRenderer)==null?void 0:(w=H.playButton)== null?void 0:(h=w.buttonRenderer)==null?void 0:h.navigationEndpoint,g.TU))Ms0(G,R),G.videoId=R.videoId||G.videoId;Q.videoDurationSeconds&&(G.lengthSeconds=FH(Q.videoDurationSeconds));Q.webPlayerActionsPorting&&zu7(G,Q.webPlayerActionsPorting);if(S=g.y(Q==null?void 0:Q.playlist,lLS)){G.Lg=!0;Z=[];H=Number(S.currentIndex);if(S.contents)for(w=0,h=S.contents.length;w0:G.Ge?!1:G.hT.hE||G.hT.gL||!g.Jn(G.hT)?!0:!1:(G.Ge?0:G.hE)&&g.Jn(G.hT)?!0:!1;G.G("html5_log_detailpage_autoplay")&&RM(G)==="detailpage"&&G.Ni("autoplay_info",{autoplay:G.mD,autonav:G.isAutonav,wasDompaused:G.Ge,result:X});return X}; g.qY=function(G){return G.oauthToken||G.hT.WK}; yoV=function(G){if(G.G("html5_stateful_audio_normalization")){var X=1,Q=g.i2(G.hT.experiments,"html5_default_ad_gain");Q&&G.isAd()&&(X=Q);var R,S;Q=(S=(R=G.V)==null?void 0:R.audio.V)!=null?S:G.A_;if(Q==null||isNaN(Q))G=p97(G);else{R=(0,g.TB)();G.fQ=2;S=R-G.hT.Bi<=G.maxStatefulTimeThresholdSec*1E3;G.applyStatefulNormalization&&S?G.fQ=4:S||(G.hT.ER=Infinity,G.hT.Bi=NaN);S=(G.fQ===4?g.pT(G.hT.ER,G.minimumLoudnessTargetLkfs,G.loudnessTargetLkfs):G.loudnessTargetLkfs)-Q;if(G.fQ!==4){var Z,H,w,h,L=((Z= G.playerResponse)==null?void 0:(H=Z.playerConfig)==null?void 0:(w=H.audioConfig)==null?void 0:(h=w.loudnessNormalizationConfig)==null?void 0:h.statelessLoudnessAdjustmentGain)||0;S+=L}S=Math.min(S,0);G.preserveStatefulLoudnessTarget&&(G.hT.ER=Q+S,G.hT.Bi=R);G=Math.min(1,Math.pow(10,S/20))||X}}else G=p97(G);return G}; p97=function(G){var X=1,Q=g.i2(G.hT.experiments,"html5_default_ad_gain");Q&&G.isAd()&&(X=Q);if(G.US){var R,S;Q=((R=G.V)==null?void 0:R.audio.Y)!=null?(S=G.V)==null?void 0:S.audio.Y:G.Co}else{var Z;Q=((Z=G.V)==null?void 0:Z.audio.Y)||G.Co}isNaN(Q)||(G.fQ=1);return Math.min(1,Math.pow(10,-Q/20))||X}; xP=function(G){var X=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],Q=oD(G.hT)==="TVHTML5_SIMPLY"&&G.hT.N.ctheme==="MUSIC";!G.PR&&(g.lP(G.hT)||g.KK(G.hT)||Q)&&(X.includes(G.musicVideoType)||G.isExternallyHostedPodcast)&&(G.PR=!0);if(X=g.V9())X=/Starboard\/([0-9]+)/.exec(g.IB()),X=(X?parseInt(X[1],10):NaN)<10;Q=G.hT;Q=(oD(Q)==="TVHTML5_CAST"||oD(Q)==="TVHTML5"&&(Q.N.cver.startsWith("6.20130725")||Q.N.cver.startsWith("6.20130726")))&&G.hT.N.ctheme==="MUSIC";var R;if(R=!G.PR)Q||(Q= G.hT,Q=oD(Q)==="TVHTML5"&&Q.N.cver.startsWith("7")),R=Q;R&&!X&&(X=G.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",Q=(G.G("cast_prefer_audio_only_for_atv_and_uploads")||G.G("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&G.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",X||Q||G.isExternallyHostedPodcast)&&(G.PR=!0);return G.hT.deviceIsAudioOnly||G.PR&&G.hT.T}; zU=function(G){var X,Q,R;return((X=G.playerResponse)==null?void 0:(Q=X.playerConfig)==null?void 0:(R=Q.compositeVideoConfig)==null?void 0:R.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; fLU=function(G){var X,Q,R,S=(X=G.playerResponse)==null?void 0:(Q=X.playerConfig)==null?void 0:(R=Q.compositeVideoConfig)==null?void 0:R.sourceConfigs,Z,H,w;G=(Z=G.playerResponse)==null?void 0:(H=Z.playerConfig)==null?void 0:(w=H.compositeVideoConfig)==null?void 0:w.defaultActiveSourceVideoId;if(!S||!G)return"";S=g.e(S);for(Z=S.next();!Z.done;Z=S.next())if(Z=Z.value,Z.videoId===G&&Z.audioTracks)for(Z=g.e(Z.audioTracks),H=Z.next();!H.done;H=Z.next())if(H=H.value,H.isDefaultForSource)return H.id||""; return""}; g.Dh7=function(G){return G.IW()&&c4(G)}; w4=function(G){var X,Q,R;return!!((X=G.playerResponse)==null?0:(Q=X.playerConfig)==null?0:(R=Q.mediaCommonConfig)==null?0:R.splitScreenEligible)}; hL=function(G){var X;return!((X=G.playerResponse)==null||!X.compositePlayabilityStatus)}; N_S=function(G){return isNaN(G)?0:Math.max((Date.now()-G)/1E3-30,0)}; AoV=function(G){return G.rS&&!G.V$}; k6=function(G){return!(!G.sL||!G.hT.T)&&G.qN()}; Y6=function(G){return G.RP&&G.enableServerStitchedDai}; npT=function(G){return G.JN&&!G.kU}; c4=function(G){var X=G.G("html5_enable_sabr_on_drive")&&G.hT.AT==="gd";if(G.H7)return G.JN&&G.Ni("fds",{fds:!0},!0),!1;if(G.hT.AT!=="yt"&&!X)return G.JN&&G.Ni("dsvn",{ns:G.hT.AT},!0),!1;if(G.cotn||!G.N||G.N.isOtf&&!G.G("html5_enable_sabr_otf_in_client")||G.Y&&!G.Y.N||G.K0&&!G.G("html5_enable_sabr_csdai"))return!1;if(G.G("html5_use_sabr_requests_for_debugging"))return!0;G.JN&&G.Ni("esfw",{usbc:G.JN,hsu:!!G.kU},!0);if(G.JN&&G.kU)return!0;if(G.G("html5_remove_client_sabr_determination"))return!1;var Q= !G.N.IW&&!G.VJ();X=Q&&u$&&G.G("html5_enable_sabr_vod_streaming_xhr");Q=Q&&!u$&&G.G("html5_enable_sabr_vod_non_streaming_xhr");var R=jA(G),S=G.G("html5_enable_sabr_drm_vod_streaming_xhr")&&u$&&G.VJ()&&!G.N.IW&&(G.drmProduct==="1"?!1:!0);(X=X||Q||R||S)&&!G.kU&&G.Ni("sabr",{loc:"m"},!0);return X&&!!G.kU}; jA=function(G){var X;if(!(X=u$&&G.IW()&&G.VJ()&&(G.drmProduct==="1"?!1:!0)&&G.G("html5_sabr_live_drm_streaming_xhr"))){X=G.IW()&&!G.VJ()&&u$;var Q=G.IW()&&G.latencyClass!=="ULTRALOW"&&!G.isLowLatencyLiveStream&&G.G("html5_sabr_live_normal_latency_streaming_xhr"),R=G.isLowLatencyLiveStream&&G.G("html5_sabr_live_low_latency_streaming_xhr"),S=G.latencyClass==="ULTRALOW"&&G.G("html5_sabr_live_ultra_low_latency_streaming_xhr");X=X&&(Q||R||S)}Q=X;X=G.enableServerStitchedDai&&Q&&G.G("html5_enable_sabr_ssdai_streaming_xhr"); Q=!G.enableServerStitchedDai&&Q;R=G.IW()&&!u$&&G.G("html5_enable_sabr_live_non_streaming_xhr");G=u$&&(G.Yr()||w4(G)&&G.G("html5_enable_sabr_for_lifa_eligible_streams"));return X||Q||R||G}; opy=function(G){var X;if(X=!!G.cotn)X=G.videoId,X=!!X&&g.GU(X)===1;return X&&!G.sL}; g.MY=function(G){if(!G.N||!G.W||!G.V)return!1;var X=G.N.N,Q=!!X[G.W.id]&&nR(X[G.W.id].xP.N);X=!!X[G.V.id]&&nR(X[G.V.id].xP.N);return(G.W.itag==="0"||Q)&&X}; m0=function(G){return G.Po?["OK","LIVE_STREAM_OFFLINE"].includes(G.Po.status):!0}; B_0=function(G){return(G=G.Zz)&&G.showError?G.showError:!1}; oM=function(G,X){return G.G(X)?!0:(G.fflags||"").includes(X+"=true")}; RYC=function(G,X){X.inlineMetricEnabled&&(G.inlineMetricEnabled=!0);X.playback_progress_0s_url&&(G.iz=new lQS(X));if(X=X.video_masthead_ad_quartile_urls)G.Kr=X.quartile_0_url,G.xi=X.quartile_25_url,G.DN=X.quartile_50_url,G.RJ=X.quartile_75_url,G.VZ=X.quartile_100_url,G.GV=X.quartile_0_urls,G.dA=X.quartile_25_urls,G.zp=X.quartile_50_urls,G.HP=X.quartile_75_urls,G.j1=X.quartile_100_urls}; Qki=function(G){var X={};G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next()){Q=Q.value;var R=Q.split("=");R.length===2?X[R[0]]=R[1]:X[Q]=!0}return X}; GlV=function(G){if(G){if(PcX(G))return G;G=sUw(G);if(PcX(G,!0))return G}return""}; g.$hS=function(G){return G.captionsLanguagePreference||G.hT.captionsLanguagePreference||g.DI(G,"yt:cc_default_lang")||G.hT.Xq}; uG=function(G){return!(!G.isLivePlayback||!G.hasProgressBarBoundaries())}; g.KL=function(G){var X;return G.KD||((X=G.suggestions)==null?void 0:X[0])||null}; g.PP=function(G){var X,Q;return!!((X=G.embeddedPlayerConfig)==null?0:(Q=X.embeddedPlayerFlags)==null?0:Q.enableMusicUx)}; bvZ=function(G){return G.J||G.G("web_player_media_session_infinity")&&G.isLivePlayback}; sa=function(G){return G.hT.V&&G.isPrivate}; g.KC=function(G){var X=G.Z(),Q=g.TE(X),R=X.F7;(X.G("embeds_web_enable_iframe_api_send_full_embed_url")||X.G("embeds_web_enable_rcat_validation_in_havs")||X.G("embeds_enable_autoplay_and_visibility_signals"))&&g.Sb(X)&&(R&&(Q.thirdParty=Object.assign({},Q.thirdParty,{embedUrl:R})),G5S(Q,G));if(R=G.IU)Q.clickTracking={clickTrackingParams:R};else if(g.Sb(G.Z())&&g.WO("EVENT_ID"))Q.clickTracking={clickTrackingParams:g.WO("EVENT_ID")};else if(X.G("html5_log_missing_itct")){var S;R=new g.Ic("Missing ITCT in InnerTubeContext", {isAd:G.isAd(),HDm:(S=X.getWebPlayerContextConfig())==null?void 0:S.contextId});g.aU(R)}S=Q.client||{};R="EMBED";var Z=RM(G);Z==="leanback"?R="WATCH":X.G("gvi_channel_client_screen")&&Z==="profilepage"?R="CHANNEL":G.KO?R="LIVE_MONITOR":Z==="detailpage"?R="WATCH_FULL_SCREEN":Z==="adunit"?R="ADUNIT":Z==="sponsorshipsoffer"&&(R="UNKNOWN");S.clientScreen=R;if(X=G.kidsAppInfo)S.kidsAppInfo=JSON.parse(X);(R=G.HQ)&&!X&&(S.kidsAppInfo={contentSettings:{ageUpMode:vpZ[R]}});if(X=G.Lz)S.unpluggedAppInfo={enableFilterMode:!0}; (R=G.unpluggedFilterModeType)&&!X&&(S.unpluggedAppInfo={filterModeType:JoG[R]});if(X=G.Xq)S.unpluggedLocationInfo=X;Q.client=S;S=Q.request||{};G.Nu&&(S.isPrefetch=!0);if(X=G.mdxEnvironment)S.mdxEnvironment=X;if(X=G.mdxControlMode)S.mdxControlMode=ivG[X];Q.request=S;S=Q.user||{};if(X=G.Mi)S.credentialTransferTokens=[{token:X,scope:"VIDEO"}];if(X=G.R6)S.delegatePurchases={oauthToken:X},S.kidsParent={oauthToken:X};Q.user=S;if(S=G.contextParams)Q.activePlayers=[{playerContextParams:S}];if(G=G.clientScreenNonce)Q.clientScreenNonce= G;return Q}; g.TE=function(G){var X=g.Aw(),Q=X.client||{};if(G.forcedExperiments){var R=G.forcedExperiments.split(","),S=[];R=g.e(R);for(var Z=R.next();!Z.done;Z=R.next())S.push(Number(Z.value));Q.experimentIds=S}if(S=G.homeGroupInfo)Q.homeGroupInfo=JSON.parse(S);if(S=G.getPlayerType())Q.playerType=S;if(S=G.N.ctheme)Q.theme=S;if(S=G.livingRoomAppMode)Q.tvAppInfo=Object.assign({},Q.tvAppInfo,{livingRoomAppMode:S});S=G.deviceYear;G.G("html5_propagate_device_year")&&S&&(Q.tvAppInfo=Object.assign({},Q.tvAppInfo,{deviceYear:S})); if(S=G.livingRoomPoTokenId)Q.tvAppInfo=Object.assign({},Q.tvAppInfo,{livingRoomPoTokenId:S});X.client=Q;Q=X.user||{};G.enableSafetyMode&&(Q=Object.assign({},Q,{enableSafetyMode:!0}));G.pageId&&(Q=Object.assign({},Q,{onBehalfOfUser:G.pageId}));X.user=Q;Q=G.F7;G.G("embeds_web_enable_iframe_api_send_full_embed_url")||G.G("embeds_web_enable_rcat_validation_in_havs")||G.G("embeds_enable_autoplay_and_visibility_signals")||!Q||(X.thirdParty={embedUrl:Q});return X}; Z_0=function(G,X,Q){var R=G.videoId,S=g.KC(G),Z=G.Z(),H={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(u6()),referer:document.location.toString(),signatureTimestamp:20312};g.la();G.isAutonav&&(H.autonav=!0);g.BA(0,141)&&(H.autonavState=g.BA(0,140)?"STATE_OFF":"STATE_ON");H.autoCaptionsDefaultOn=g.BA(0,66);WS0(G)&&(H.autoplay=!0);Z.T&&G.cycToken&&(H.cycToken=G.cycToken);Z.enablePrivacyFilter&&(H.enablePrivacyFilter=!0);G.isFling&&(H.fling=!0);var w=G.forceAdsUrl;if(w){var h={},L=[];w= w.split(",");w=g.e(w);for(var k=w.next();!k.done;k=w.next()){k=k.value;var Y=k.split("|");Y.length!==3||k.includes("=")||(Y[0]="breaktype="+Y[0],Y[1]="offset="+Y[1],Y[2]="url="+Y[2]);k={adtype:"video_ad"};Y=g.e(Y);for(var M=Y.next();!M.done;M=Y.next()){var m=g.e(M.value.split("="));M=m.next().value;m=ZVG(m);k[M]=m.join("=")}Y=k.url;M=k.presetad;m=k.viralresponseurl;var u=Number(k.campaignid);if(k.adtype==="in_display_ad")Y&&(h.url=Y),M&&(h.presetAd=M),m&&(h.viralAdResponseUrl=m),u&&(h.viralCampaignId= String(u));else if(k.adtype==="video_ad"){var r={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(k.offset)||0)}};if(k=GWi[k.breaktype])r.breakType=k;Y&&(r.url=Y);M&&(r.presetAd=M);m&&(r.viralAdResponseUrl=m);u&&(r.viralCampaignId=String(u));L.push(r)}}H.forceAdParameters={videoAds:L,inDisplayAd:h}}G.isInlinePlaybackNoAd&&(H.isInlinePlaybackNoAd=!0);G.isLivingRoomDeeplink&&(H.isLivingRoomDeeplink=!0);h=G.sCm;if(h!=null){h={startWalltime:String(h)};if(L=G.QV)h.manifestDuration=String(L||14400); H.liveContext=h}if(G.mutedAutoplay){H.mutedAutoplay=!0;h=Z.getWebPlayerContextConfig();var x,c;(h==null?0:(x=h.embedsHostFlags)==null?0:x.allowMutedAutoplayDurationMode)&&(h==null?0:(c=h.embedsHostFlags)==null?0:c.allowMutedAutoplayDurationMode.includes(X3w[G.mutedAutoplayDurationMode]))&&(H.mutedAutoplayDurationMode=X3w[G.mutedAutoplayDurationMode])}if(G.Ge?0:G.hE)H.splay=!0;x=G.vnd;x===5&&(H.vnd=x);x={};if(c=G.isMdxPlayback)x.triggeredByMdx=c;if(c=G.iM)x.skippableAdsSupported=c.split(",").includes("ska"); if(L=G.i8){c=G.Y7;h=[];L=g.e(XKT(L));for(w=L.next();!w.done;w=L.next()){w=w.value;k=w.platform;w={applicationState:w.wz?"INACTIVE":"ACTIVE",clientFormFactor:Qge[k]||"UNKNOWN_FORM_FACTOR",clientName:R5Z[w.M6]||"UNKNOWN_INTERFACE",clientVersion:w.deviceVersion||"",platform:RRX[k]||"UNKNOWN_PLATFORM"};k={};if(c){Y=void 0;try{Y=JSON.parse(c)}catch(B){g.EL(B)}Y&&(k={params:[{key:"ms",value:Y.ms}]},Y.advertising_id&&(k.advertisingId=Y.advertising_id),Y.limit_ad_tracking!==void 0&&Y.limit_ad_tracking!== null&&(k.limitAdTracking=Y.limit_ad_tracking),w.osName=Y.os_name,w.userAgent=Y.user_agent,w.windowHeightPoints=Y.window_height_points,w.windowWidthPoints=Y.window_width_points)}h.push({adSignalsInfo:k,remoteClient:w})}x.remoteContexts=h}c=G.sourceContainerPlaylistId;h=G.serializedMdxMetadata;if(c||h)L={},c&&(L.mdxPlaybackContainerInfo={sourceContainerPlaylistId:c}),h&&(L.serializedMdxMetadata=h),x.mdxPlaybackSourceContext=L;H.mdxContext=x;x=X.width;x>0&&(H.playerWidthPixels=Math.round(x));if(X=X.height)H.playerHeightPixels= Math.round(X);Q!==0&&(H.vis=Q);if(Q=Z.widgetReferrer)H.widgetReferrer=Q.substring(0,128);g.Jn(Z)&&H&&(H.ancestorOrigins=Z.ancestorOrigins);G.defaultActiveSourceVideoId&&(H.compositeVideoContext={defaultActiveSourceVideoId:G.defaultActiveSourceVideoId});if(Z=Z.getWebPlayerContextConfig())H.encryptedHostFlags=Z.encryptedHostFlags;R={videoId:R,context:S,playbackContext:{contentPlaybackContext:H}};if(G.H1){var z;R.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(z=G.H1)==null?void 0:z.reloadPlaybackParams}}G.contentCheckOk&& (R.contentCheckOk=!0);if(z=G.clientPlaybackNonce)R.cpn=z;if(z=G.playerParams)R.params=z;if(z=G.playlistId)R.playlistId=z;G.racyCheckOk&&(R.racyCheckOk=!0);z=G.Z();S=z.embedConfig;G.DZ&&z.G("embeds_enable_per_video_embed_config")?R.serializedThirdPartyEmbedConfig=G.DZ:S&&(R.serializedThirdPartyEmbedConfig=S);R.captionParams={};S=g.BA(g.la(),65);G.deviceCaptionsOn!=null?R.captionParams.deviceCaptionsOn=G.deviceCaptionsOn:g.sB(z)&&(R.captionParams.deviceCaptionsOn=S!=null?!S:!1);G.qC&&(R.captionParams.deviceCaptionsLangPref= G.qC);G.Zb.length?R.captionParams.viewerSelectedCaptionLangs=G.Zb:g.sB(z)&&(S=g.s4(),S==null?0:S.length)&&(R.captionParams.viewerSelectedCaptionLangs=S);S=G.fetchType==="onesie"&&G.G("html5_onesie_attach_po_token");H=G.fetchType!=="onesie"&&G.G("html5_non_onesie_attach_po_token");if(S||H)S=G.Z(),S.Ge&&(R.serviceIntegrityDimensions={},R.serviceIntegrityDimensions.poToken=S.Ge);z.G("fetch_att_independently")&&(R.attestationRequest={omitBotguardData:!0});R.playbackContext||(R.playbackContext={});R.playbackContext.devicePlaybackCapabilities= SqU(G);R.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&G.Ni("noVp9",{});return R}; SqU=function(G){var X=!(G==null?0:G.BT())&&(G==null?void 0:G.IW())&&ni(),Q;if(!(Q=G==null)){Q=g.gx(G);G=G.Z().C;var R=gS("243");Q=!(R&&tX(Q,R,G,!0)===!0)}return{supportsVp9Encoding:!(Q||X),supportXhr:u$}}; qql=function(G,X){var Q,R,S;return g.F(function(Z){if(Z.W==1)return Q={context:g.TE(G.Z()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:G.videoId,cpn:G.clientPlaybackNonce}}]},R=g.bP(H_y),g.l(Z,g.lj(X,Q,R),2);S=Z.N;return Z.return(S)})}; w3e=function(G,X,Q){var R=g.i2(X.experiments,"bg_vm_reinit_threshold");(!km||(0,g.TB)()-km>R)&&qql(G,Q).then(function(S){S&&(S=S.botguardData)&&g.j9(S,X)},function(S){G.U_()||(S=Mr(S),G.Ni("attf",S.details))})}; eA=function(G,X){g.I.call(this);this.app=G;this.state=X}; aM=function(G,X,Q){G.state.N.hasOwnProperty(X)||r4(G,X,Q);G.state.J[X]=function(){return Q.apply(G,g.Wl.apply(0,arguments))}; G.state.S.add(X)}; Ea=function(G,X,Q){G.state.N.hasOwnProperty(X)||r4(G,X,Q);G.app.Z().T&&(G.state.T[X]=function(){return Q.apply(G,g.Wl.apply(0,arguments))},G.state.S.add(X))}; r4=function(G,X,Q){G.state.N[X]=function(){return Q.apply(G,g.Wl.apply(0,arguments))}}; g.x6=function(G,X,Q){return G.state.N[X].apply(G.state.N,g.o0(Q))}; Oa=function(){g.Tk.call(this);this.C=new Map}; zE=function(){g.I.apply(this,arguments);this.element=null;this.S=new Set;this.J={};this.T={};this.N={};this.j=new Set;this.Y=new Oa;this.W=new Oa;this.V=new Oa;this.C=new Oa}; hRZ=function(G,X,Q){typeof G==="string"&&(G={mediaContentUrl:G,startSeconds:X,suggestedQuality:Q});a:{if((X=G.mediaContentUrl)&&(X=/\/([ve]|embed)\/([^#?]+)/.exec(X))&&X[2]){X=X[2];break a}X=null}G.videoId=X;return cP(G)}; cP=function(G,X,Q){if(typeof G==="string")return{videoId:G,startSeconds:X,suggestedQuality:Q};X={};Q=g.e(L6U);for(var R=Q.next();!R.done;R=Q.next())R=R.value,G[R]&&(X[R]=G[R]);if(G=G.embedConfig||G.embed_config)if(typeof G==="string")X.embed_config=G;else if(g.Hn(G))try{var S=JSON.stringify(G);X.embed_config=S}catch(Z){console.error("Invalid embedConfig JSON",Z)}return X}; kWG=function(G,X,Q,R){if(g.Hn(G)&&!Array.isArray(G)){X="playlist list listType index startSeconds suggestedQuality".split(" ");Q={};for(R=0;R32&&R.push("hfr");X.isHdr()&&R.push("hdr");X.primaries==="bt2020"&&R.push("wcg");Q.video_quality_features=R}}if(G=G.getPlaylistId())Q.list=G;return Q}; Fe=function(){g4.apply(this,arguments)}; CC=function(G,X){var Q={};if(G.app.Z().yH){G=g.e(m8V);for(var R=G.next();!R.done;R=G.next())R=R.value,X.hasOwnProperty(R)&&(Q[R]=X[R]);if(X=Q.qoe_cat)G="",typeof X==="string"&&X.length>0&&(G=X.split(",").filter(function(S){return oeV.includes(S)}).join(",")),Q.qoe_cat=G; uUe(Q)}else for(G=g.e(PMZ),R=G.next();!R.done;R=G.next())R=R.value,X.hasOwnProperty(R)&&(Q[R]=X[R]);return Q}; uUe=function(G){var X=G.raw_player_response;if(!X){var Q=G.player_response;Q&&(X=JSON.parse(Q))}delete G.player_response;delete G.raw_player_response;if(X){G.raw_player_response={streamingData:X.streamingData,playerConfig:X.playerConfig};var R;if((R=X.playbackTracking)==null?0:R.qoeUrl)G.raw_player_response=Object.assign({},G.raw_player_response,{playbackTracking:{qoeUrl:X.playbackTracking.qoeUrl}});X.videoDetails&&(X.videoDetails.videoId||X.videoDetails.lengthSeconds)&&(Q={},X.videoDetails.videoId&& (Q.videoId=X.videoDetails.videoId),X.videoDetails.lengthSeconds&&(Q.lengthSeconds=X.videoDetails.lengthSeconds),G.raw_player_response=Object.assign({},G.raw_player_response,{videoDetails:Q}))}}; T9C=function(G){var X=X===void 0?5:X;return G?sgC[G]||X:X}; g.tL=function(){Fe.apply(this,arguments)}; K6S=function(G){r4(G,"getInternalApiInterface",G.getInternalApiInterface);r4(G,"addEventListener",G.hA);r4(G,"removeEventListener",G.QCi);r4(G,"cueVideoByPlayerVars",G.Ag);r4(G,"loadVideoByPlayerVars",G.umO);r4(G,"preloadVideoByPlayerVars",G.W3M);r4(G,"getAdState",G.getAdState);r4(G,"sendAbandonmentPing",G.sendAbandonmentPing);r4(G,"setLoopRange",G.setLoopRange);r4(G,"getLoopRange",G.getLoopRange);r4(G,"setAutonavState",G.setAutonavState);r4(G,"seekTo",G.Zom);r4(G,"seekBy",G.L3B);r4(G,"seekToLiveHead", G.seekToLiveHead);r4(G,"requestSeekToWallTimeSeconds",G.requestSeekToWallTimeSeconds);r4(G,"seekToStreamTime",G.seekToStreamTime);r4(G,"prefetchKeyPlay",G.prefetchKeyPlay);r4(G,"startSeekCsiAction",G.startSeekCsiAction);r4(G,"getStreamTimeOffset",G.getStreamTimeOffset);r4(G,"getVideoData",G.l$);r4(G,"setInlinePreview",G.setInlinePreview);r4(G,"getAppState",G.getAppState);r4(G,"updateLastActiveTime",G.updateLastActiveTime);r4(G,"setBlackout",G.setBlackout);r4(G,"setUserEngagement",G.setUserEngagement); r4(G,"updateSubtitlesUserSettings",G.updateSubtitlesUserSettings);r4(G,"getPresentingPlayerType",G.u_);r4(G,"canPlayType",G.canPlayType);r4(G,"updatePlaylist",G.updatePlaylist);r4(G,"updateVideoData",G.updateVideoData);r4(G,"updateEnvironmentData",G.updateEnvironmentData);r4(G,"sendVideoStatsEngageEvent",G.fJA);r4(G,"productsInVideoVisibilityUpdated",G.productsInVideoVisibilityUpdated);r4(G,"setSafetyMode",G.setSafetyMode);r4(G,"isAtLiveHead",function(X){return G.isAtLiveHead(void 0,X)}); r4(G,"getVideoAspectRatio",G.getVideoAspectRatio);r4(G,"getPreferredQuality",G.getPreferredQuality);r4(G,"getPlaybackQualityLabel",G.getPlaybackQualityLabel);r4(G,"setPlaybackQualityRange",G.WDU);r4(G,"onAdUxClicked",G.onAdUxClicked);r4(G,"getFeedbackProductData",G.getFeedbackProductData);r4(G,"getStoryboardFrame",G.getStoryboardFrame);r4(G,"getStoryboardFrameIndex",G.getStoryboardFrameIndex);r4(G,"getStoryboardLevel",G.getStoryboardLevel);r4(G,"getNumberOfStoryboardLevels",G.getNumberOfStoryboardLevels); r4(G,"getCaptionWindowContainerId",G.getCaptionWindowContainerId);r4(G,"getAvailableQualityLabels",G.getAvailableQualityLabels);r4(G,"addCueRange",G.addCueRange);r4(G,"addUtcCueRange",G.addUtcCueRange);r4(G,"showAirplayPicker",G.showAirplayPicker);r4(G,"dispatchReduxAction",G.dispatchReduxAction);r4(G,"getPlayerResponse",G.sN);r4(G,"getWatchNextResponse",G.kt);r4(G,"getHeartbeatResponse",G.Vt);r4(G,"getCurrentTime",G.Nl);r4(G,"getDuration",G.Fx);r4(G,"getPlayerState",G.getPlayerState);r4(G,"getPlayerStateObject", G.DG);r4(G,"getVideoLoadedFraction",G.getVideoLoadedFraction);r4(G,"getProgressState",G.getProgressState);r4(G,"getVolume",G.getVolume);r4(G,"setVolume",G.n0);r4(G,"isMuted",G.isMuted);r4(G,"mute",G.J_);r4(G,"unMute",G.f0);r4(G,"loadModule",G.loadModule);r4(G,"unloadModule",G.unloadModule);r4(G,"getOption",G.fh);r4(G,"getOptions",G.getOptions);r4(G,"setOption",G.setOption);r4(G,"loadVideoById",G.UC);r4(G,"loadVideoByUrl",G.Qk);r4(G,"playVideo",G.NK);r4(G,"loadPlaylist",G.loadPlaylist);r4(G,"nextVideo", G.nextVideo);r4(G,"previousVideo",G.previousVideo);r4(G,"playVideoAt",G.playVideoAt);r4(G,"getDebugText",G.getDebugText);r4(G,"getWebPlayerContextConfig",G.getWebPlayerContextConfig);r4(G,"notifyShortsAdSwipeEvent",G.notifyShortsAdSwipeEvent);r4(G,"getVideoContentRect",G.getVideoContentRect);r4(G,"setSqueezeback",G.setSqueezeback);r4(G,"toggleSubtitlesOn",G.toggleSubtitlesOn);r4(G,"isSubtitlesOn",G.isSubtitlesOn);r4(G,"reportPlaybackIssue",G.reportPlaybackIssue);r4(G,"setAutonav",G.setAutonav);r4(G, "isNotServable",G.isNotServable);r4(G,"channelSubscribed",G.channelSubscribed);r4(G,"channelUnsubscribed",G.channelUnsubscribed);r4(G,"togglePictureInPicture",G.togglePictureInPicture);r4(G,"supportsGaplessAudio",G.supportsGaplessAudio);r4(G,"supportsGaplessShorts",G.supportsGaplessShorts);r4(G,"enqueueVideoByPlayerVars",function(X){return void G.enqueueVideoByPlayerVars(X)}); r4(G,"clearQueue",G.clearQueue);r4(G,"getAudioTrack",G.fS);r4(G,"setAudioTrack",G.r1b);r4(G,"getAvailableAudioTracks",G.dY);r4(G,"getMaxPlaybackQuality",G.getMaxPlaybackQuality);r4(G,"getUserPlaybackQualityPreference",G.getUserPlaybackQualityPreference);r4(G,"getSubtitlesUserSettings",G.getSubtitlesUserSettings);r4(G,"resetSubtitlesUserSettings",G.resetSubtitlesUserSettings);r4(G,"setMinimized",G.setMinimized);r4(G,"setOverlayVisibility",G.setOverlayVisibility);r4(G,"confirmYpcRental",G.confirmYpcRental); r4(G,"queueNextVideo",G.queueNextVideo);r4(G,"handleExternalCall",G.handleExternalCall);r4(G,"logApiCall",G.logApiCall);r4(G,"isExternalMethodAvailable",G.isExternalMethodAvailable);r4(G,"setScreenLayer",G.setScreenLayer);r4(G,"getCurrentPlaylistSequence",G.getCurrentPlaylistSequence);r4(G,"getPlaylistSequenceForTime",G.getPlaylistSequenceForTime);r4(G,"shouldSendVisibilityState",G.shouldSendVisibilityState);r4(G,"syncVolume",G.syncVolume);r4(G,"highlightSettingsMenuItem",G.highlightSettingsMenuItem); r4(G,"openSettingsMenuItem",G.openSettingsMenuItem);r4(G,"getEmbeddedPlayerResponse",G.getEmbeddedPlayerResponse);r4(G,"getVisibilityState",G.getVisibilityState);r4(G,"isMutedByMutedAutoplay",G.isMutedByMutedAutoplay);r4(G,"isMutedByEmbedsMutedAutoplay",G.isMutedByEmbedsMutedAutoplay);r4(G,"setGlobalCrop",G.setGlobalCrop);r4(G,"setInternalSize",G.setInternalSize);r4(G,"setFauxFullscreen",G.setFauxFullscreen);r4(G,"setAppFullscreen",G.setAppFullscreen)}; IM=function(G,X,Q){G=g.VY(G.JS(),X);return Q?(Q.addOnDisposeCallback(G),null):G}; g.d4=function(G,X,Q){return G.app.Z().bf?X:g.QM("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:X,SHORTCUT:Q})}; eRl=function(G){G.JS().element.setAttribute("aria-live","polite")}; g.WP=function(G,X){g.tL.call(this,G,X);K6S(this);Ea(this,"addEventListener",this.pE);Ea(this,"removeEventListener",this.vOc);Ea(this,"cueVideoByPlayerVars",this.NA);Ea(this,"loadVideoByPlayerVars",this.ATM);Ea(this,"preloadVideoByPlayerVars",this.zpT);Ea(this,"loadVideoById",this.UC);Ea(this,"loadVideoByUrl",this.Qk);Ea(this,"playVideo",this.NK);Ea(this,"loadPlaylist",this.loadPlaylist);Ea(this,"nextVideo",this.nextVideo);Ea(this,"previousVideo",this.previousVideo);Ea(this,"playVideoAt",this.playVideoAt); Ea(this,"getVideoData",this.Hy);Ea(this,"seekBy",this.md_);Ea(this,"seekTo",this.jCm);Ea(this,"showControls",this.showControls);Ea(this,"hideControls",this.hideControls);Ea(this,"cancelPlayback",this.cancelPlayback);Ea(this,"getProgressState",this.getProgressState);Ea(this,"isInline",this.isInline);Ea(this,"setInline",this.setInline);Ea(this,"setLoopVideo",this.setLoopVideo);Ea(this,"getLoopVideo",this.getLoopVideo);Ea(this,"getVideoContentRect",this.getVideoContentRect);Ea(this,"getVideoStats",this.PL); Ea(this,"getCurrentTime",this.z8);Ea(this,"getDuration",this.Fx);Ea(this,"getPlayerState",this.Ip);Ea(this,"getVideoLoadedFraction",this.C$);Ea(this,"mute",this.J_);Ea(this,"unMute",this.f0);Ea(this,"setVolume",this.n0);Ea(this,"loadModule",this.loadModule);Ea(this,"unloadModule",this.unloadModule);Ea(this,"getOption",this.fh);Ea(this,"getOptions",this.getOptions);Ea(this,"setOption",this.setOption);Ea(this,"addCueRange",this.addCueRange);Ea(this,"getDebugText",this.getDebugText);Ea(this,"getStoryboardFormat", this.getStoryboardFormat);Ea(this,"toggleFullscreen",this.toggleFullscreen);Ea(this,"isFullscreen",this.isFullscreen);Ea(this,"getPlayerSize",this.getPlayerSize);Ea(this,"toggleSubtitles",this.toggleSubtitles);Ea(this,"setCenterCrop",this.setCenterCrop);Ea(this,"setFauxFullscreen",this.setFauxFullscreen);Ea(this,"setSizeStyle",this.setSizeStyle);Ea(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Ea(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);jgS(this)}; g.pC=function(G){G=G.p7();var X=G.Kd.get("endscreen");return X&&X.Jw()?!0:G.A2()}; g.yY=function(G,X){G.getPresentingPlayerType()===3?G.publish("mdxautoplaycancel"):G.E_("onAutonavCancelled",X)}; g.D0=function(G){var X=fC(G.p7());return G.app.Ma&&!G.isFullscreen()||G.getPresentingPlayerType()===3&&X&&X.MW()&&X.EW()||!!G.getPlaylist()}; g.NY=function(G,X){g.x6(G,"addEmbedsConversionTrackingParams",[X])}; g.nC=function(G){return(G=g.AL(G.p7()))?G.Ra():{}}; g.rTZ=function(G){G=(G=G.getVideoData())&&G.W;return!!G&&!(!G.audio||!G.video)&&G.mimeType!=="application/x-mpegURL"}; g.$6=function(G,X,Q){G=G.mp().element;var R=DV(G.children,function(S){S=Number(S.getAttribute("data-layer"));return Q-S||1}); R<0&&(R=-(R+1));sM(G,X,R);X.setAttribute("data-layer",String(Q))}; g.bG=function(G){var X=G.Z();if(!X.hS)return!1;var Q=G.getVideoData();if(!Q||G.getPresentingPlayerType()===3)return!1;var R=(!Q.isLiveDefaultBroadcast||X.G("allow_poltergust_autoplay"))&&!uG(Q);R=Q.isLivePlayback&&(!X.G("allow_live_autoplay")||!R);var S=Q.isLivePlayback&&X.G("allow_live_autoplay_on_mweb");G=G.getPlaylist();G=!!G&&G.MW();var Z=Q.QH&&Q.QH.playerOverlays||null;Z=!!(Z&&Z.playerOverlayRenderer&&Z.playerOverlayRenderer.autoplay);Z=Q.KY&&Z;return!Q.ypcPreview&&(!R||S)&&!g.rH(Q.j,"ypc")&& !G&&(!g.Jn(X)||Z)}; EeG=function(G,X){G=aMy(G.app.Xz().C);G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next()){Q=Q.value;var R=Q.getAvailableAudioTracks(),S=null;R=g.e(R);for(var Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Z.getLanguageInfo().getId()===X){S=Z;break}S&&Q.I_(S,!0)}}; vP=function(){go.apply(this,arguments);this.requestHeaders={}}; iG=function(){JL||(JL=new vP);return JL}; GT=function(G,X){X?G.requestHeaders.Authorization="Bearer "+X:delete G.requestHeaders.Authorization}; g.XK=function(G){g.I.call(this);var X=this;this.uB=G;this.gh={Ig:function(){return X.uB}}}; g.Qn=function(G,X,Q,R){R=R===void 0?!1:R;g.Sa.call(this,X);var S=this;this.U=G;this.yH=R;this.J=new g.KP(this);this.fade=new g.v5(this,Q,!0,void 0,void 0,function(){S.Ch()}); g.d(this,this.J);g.d(this,this.fade)}; RG=function(G){var X=G.U.getRootNode();return G.U.G("web_watch_pip")||G.U.G("web_shorts_pip")?Xp(X):document}; x8Z=function(G){G.W&&(document.activeElement&&g.Ks(G.element,document.activeElement)&&G.W.focus(),G.W.setAttribute("aria-expanded","false"),G.W=void 0);g.e8(G.J);G.T=void 0}; Sj=function(G,X,Q){G.M1()?G.aW():G.Pn(X,Q)}; ZJ=function(G,X,Q,R){R=new g.f({D:"div",aU:["ytp-linked-account-popup-button"],WM:R,L:{role:"button",tabindex:"0"}});X=new g.f({D:"div",X:"ytp-linked-account-popup",L:{role:"dialog","aria-modal":"true",tabindex:"-1"},K:[{D:"div",X:"ytp-linked-account-popup-title",WM:X},{D:"div",X:"ytp-linked-account-popup-description",WM:Q},{D:"div",X:"ytp-linked-account-popup-buttons",K:[R]}]});g.Qn.call(this,G,{D:"div",X:"ytp-linked-account-popup-container",K:[X]},100);var S=this;this.dialog=X;g.d(this,this.dialog); R.listen("click",function(){S.aW()}); g.d(this,R);g.$6(this.U,this.element,4);this.hide()}; g.qz=function(G,X,Q,R){g.Sa.call(this,G);this.priority=X;Q&&g.Hv(this,Q);R&&this.wM(R)}; g.wU=function(G,X,Q,R){G=G===void 0?{}:G;X=X===void 0?[]:X;Q=Q===void 0?!1:Q;R=R===void 0?!1:R;X.push("ytp-menuitem");var S=G;"role"in S||(S.role="menuitem");Q||(S=G,"tabindex"in S||(S.tabindex="0"));G={D:Q?"a":"div",aU:X,L:G,K:[{D:"div",X:"ytp-menuitem-icon",WM:"{{icon}}"},{D:"div",X:"ytp-menuitem-label",WM:"{{label}}"},{D:"div",X:"ytp-menuitem-content",WM:"{{content}}"}]};R&&G.K.push({D:"div",X:"ytp-menuitem-secondary-icon",WM:"{{secondaryIcon}}"});return G}; g.Hv=function(G,X){G.updateValue("label",X)}; hh=function(G){g.qz.call(this,g.wU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var X=this;this.U=G;this.W=this.N=!1;this.gb=G.Eb();G.createServerVe(this.element,this,!0);this.B(this.U,"settingsMenuVisibilityChanged",function(Q){X.ej(Q)}); this.B(this.U,"videodatachange",this.V);this.listen("click",this.onClick);this.V()}; LE=function(G){return G?g.q1(G):""}; kH=function(G){g.I.call(this);this.api=G}; YH=function(G){kH.call(this,G);var X=this;r4(G,"setAccountLinkState",function(Q){X.setAccountLinkState(Q)}); r4(G,"updateAccountLinkingConfig",function(Q){X.updateAccountLinkingConfig(Q)}); G.addEventListener("videodatachange",function(Q,R){X.onVideoDataChange(R)}); G.addEventListener("settingsMenuInitialized",function(){X.menuItem=new hh(X.api);g.d(X,X.menuItem)})}; jj=function(G){kH.call(this,G);var X=this;this.N=null;this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"applicationvideodatachange",function(){X.zs()})}; O_X=function(G){G=G.api.getVideoData();if(!G)return!1;var X=G.adFormat==="17_8",Q,R=((Q=G.lO)==null?void 0:UJ(Q,5))===8;return G.isAd()&&(X||R)}; zRT=function(G){this.api=G;this.N={}}; Mz=function(G,X,Q,R){X in G.N||(Q=new g.yG(Q,R,{id:X,priority:2,namespace:"appad"}),G.api.PZ([Q],1),G.N[X]=Q)}; md=function(G){kH.call(this,G);var X=this;this.events=new g.KP(this);g.d(this,this.events);this.N=new zRT(this.api);this.events.B(this.api,"legacyadtrackingpingreset",function(){X.N.N={}}); this.events.B(this.api,"legacyadtrackingpingchange",function(Q){var R=X.N;Mz(R,"part2viewed",1,0x8000000000000);Mz(R,"engagedview",Math.max(1,Q.As*1E3),0x8000000000000);if(!Q.isLivePlayback){var S=Q.lengthSeconds*1E3;Ec(Q)&&R.api.G("html5_shorts_gapless_ads_duration_fix")&&(S=R.api.getProgressState().seekableEnd*1E3-Q.cE);Mz(R,"videoplaytime25",S*.25,S);Mz(R,"videoplaytime50",S*.5,S);Mz(R,"videoplaytime75",S*.75,S);Mz(R,"videoplaytime100",S,0x8000000000000);Mz(R,"conversionview",S,0x8000000000000); Mz(R,"videoplaybackstart",1,S);Mz(R,"videoplayback2s",2E3,S);Mz(R,"videoplayback10s",1E4,S)}}); this.events.B(this.api,g.Dy("appad"),this.W);this.events.B(this.api,g.N3("appad"),this.W)}; lMy=function(G,X,Q){if(!(Q in X))return!1;X=X[Q];Array.isArray(X)||(X=[X]);X=g.e(X);for(Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var R={CPN:G.api.getVideoData().clientPlaybackNonce};Q=g.Eu(Q,R);R=void 0;R=R===void 0?!1:R;(R=tk(VG(Q,cTT),Q,R,"Active View 3rd Party Integration URL"))||(R=void 0,R=R===void 0?!1:R,R=tk(VG(Q,geS),Q,R,"Google/YouTube Brand Lift URL"));R||(R=void 0,R=R===void 0?!1:R,R=tk(VG(Q,U8l),Q,R,"Nielsen OCR URL"));g.gW(Q,void 0,R)}return!0}; oG=function(G,X){B9i(G,X).then(function(Q){g.gW(X,void 0,void 0,Q)})}; uU=function(G,X){X.forEach(function(Q){oG(G,Q)})}; B9i=function(G,X){return g.jJ(G.api.Z())&&Q9(X)&&XB(X)?g.z$(G.api.Z(),g.qY(G.api.getVideoData())).then(function(Q){var R;Q&&(R={Authorization:"Bearer "+Q});return R},void 0):Eh()}; F6S=function(G){kH.call(this,G);this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"videoready",function(X){if(G.getPresentingPlayerType()===1){var Q,R,S={playerDebugData:{pmlSignal:!!((Q=X.getPlayerResponse())==null?0:(R=Q.adPlacements)==null?0:R.some(function(Z){var H;return Z==null?void 0:(H=Z.adPlacementRenderer)==null?void 0:H.renderer})), contentCpn:X.clientPlaybackNonce}};g.QL("adsClientStateChange",S)}})}; Pv=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);r4(this.api,"getUserAudioQualitySetting",function(){return X.getUserAudioQualitySetting()}); r4(this.api,"setUserAudioQualitySetting",function(Q){X.setUserAudioQualitySetting(Q)}); r4(this.api,"hasHqaAudioTrack",function(){return X.hasHqaAudioTrack()}); this.NQ=vUG();this.updateEnvironmentData()}; CM7=function(G){kH.call(this,G);var X=this;r4(this.api,"getAudioTrackState",function(){return X.api.Cp(0)})}; sE=function(G){g.f.call(this,{D:"button",aU:["ytp-button","ytp-autonav-toggle"],L:{title:G.G("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},K:[{D:"div",X:"ytp-autonav-toggle-button-container",K:[{D:"div",X:"ytp-autonav-toggle-button",L:{"aria-checked":"true"}}]}]});this.U=G;this.W=[];this.N=!1;this.isChecked=!0;G.createClientVe(this.element,this, 113681);this.B(G,"presentingplayerstatechange",this.XT);this.listen("click",this.onClick);this.U.Z().G("web_player_autonav_toggle_always_listen")&&tOl(this);IM(G,this.element,this);this.XT()}; tOl=function(G){G.W.push(G.B(G.U,"videodatachange",G.XT));G.W.push(G.B(G.U,"videoplayerreset",G.XT));G.W.push(G.B(G.U,"onPlaylistUpdate",G.XT));G.W.push(G.B(G.U,"autonavchange",G.Ls))}; VOX=function(G){G.isChecked=G.isChecked;G.VH("ytp-autonav-toggle-button").setAttribute("aria-checked",String(G.isChecked));var X=G.isChecked?"Autoplay is on":"Autoplay is off";G.U.Z().G("player_tooltip_data_title_killswitch")?G.update({title:X,label:X}):G.update({"data-tooltip-title":X,label:X});G.U.dZ()}; IMT=function(G){return G.U.Z().G("web_player_autonav_use_server_provided_state")&&sc(G.gM())}; d8G=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"standardControlsInitialized",function(){var Q=new sE(G);g.d(X,Q);G.gj(Q,"RIGHT_CONTROLS_LEFT")})}; TT=function(G,X){g.qz.call(this,g.wU({role:"menuitemcheckbox","aria-checked":"false"}),X,G,{D:"div",X:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; KE=function(G,X){G.checked=X;G.element.setAttribute("aria-checked",String(G.checked))}; W6V=function(G){var X=!G.Z().F0&&G.getPresentingPlayerType()!==3;return G.isFullscreen()||X}; g.ej=function(G,X,Q,R){var S=G.currentTarget;if((Q===void 0||!Q)&&g.To(G))return G.preventDefault(),!0;X.pauseVideo();G=S.getAttribute("href");g.I1(G,R,!0);return!1}; g.rU=function(G,X,Q){if(oI(X.Z())&&X.getPresentingPlayerType()!==2){if(g.To(Q))return X.isFullscreen()&&!X.Z().externalFullscreen&&X.toggleFullscreen(),Q.preventDefault(),!0}else{var R=g.To(Q);R&&X.pauseVideo();g.I1(G,void 0,!0);R&&(g.dA(G),Q.preventDefault())}return!1}; p3U=function(G){G=aG.includes("en")?G.G("delhi_modern_web_player_icons")?M1():{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,L:{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"}}]}:G.G("delhi_modern_web_player_icons")?BoV():{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,L:{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"}}]};G.X="ytp-subtitles-button-icon"; return G}; yTT=function(G){return aG.includes("en")?G?M1():{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:G?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},K:[{D:"path",L:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; EE=function(){return{D:"div",X:"ytp-spinner-container",K:[{D:"div",X:"ytp-spinner-rotator",K:[{D:"div",X:"ytp-spinner-left",K:[{D:"div",X:"ytp-spinner-circle"}]},{D:"div",X:"ytp-spinner-right",K:[{D:"div",X:"ytp-spinner-circle"}]}]}]}}; xH=function(G){if(document.createRange){var X=document.createRange();X&&(X.selectNodeContents(G),G=window.getSelection())&&(G.removeAllRanges(),G.addRange(X))}}; cv=function(G){var X=G.G("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";TT.call(this,X,g.OE.gr);var Q=this;this.U=G;this.N=!1;this.W=new g.fU(function(){g.QD(Q.element,"ytp-menuitem-highlighted")},0); this.gb=G.Eb();G=G.G("delhi_modern_web_player_icons")?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{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.setIcon(G);this.subscribe("select",this.Y,this);this.listen(zT,this.V);g.d(this,this.W)}; gU=function(G){kH.call(this,G);var X=this;this.N=!1;G.addEventListener("settingsMenuInitialized",function(){fMG(X)}); G.addEventListener("highlightSettingsMenu",function(Q){fMG(X);var R=X.menuItem;Q==="menu_item_cinematic_lighting"&&(g.Gk(R.element,"ytp-menuitem-highlighted"),g.Gk(R.element,"ytp-menuitem-highlight-transition-enabled"),R.W.start())}); r4(G,"updateCinematicSettings",function(Q){X.updateCinematicSettings(Q)})}; fMG=function(G){G.menuItem||(G.menuItem=new cv(G.api),g.d(G,G.menuItem),G.menuItem.GT(G.N))}; D8T=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"applicationvideodatachange",function(Q,R){R=R.clipConfig;Q==="dataloaded"&&R&&R.startTimeMs!=null&&R.endTimeMs!=null&&X.api.setLoopRange({startTimeMs:Math.floor(Number(R.startTimeMs)),endTimeMs:Math.floor(Number(R.endTimeMs)),postId:R.postId,type:"clips"})})}; UE=function(G){kH.call(this,G);this.events=new g.KP(G);g.d(this,this.events);r4(G,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));r4(G,"setCreatorEndscreenHideButton",this.N.bind(this))}; lU=function(G,X,Q,R,S){var Z=G.G("html5_enable_new_audio_settings_menu");TT.call(this,"Stable Volume",Z?N90.rN:g.OE.rN);this.U=G;this.Y=X;this.W=Q;this.hasDrcAudioTrack=R;this.getDrcState=S;this.enableNewAudioSettingsMenu=this.N=!1;g.Gk(this.element,"ytp-drc-menu-item");this.gb=(this.enableNewAudioSettingsMenu=Z)?G.Eb().Kc:G.Eb();G.addEventListener("videodatachange",this.RC.bind(this));G.G("mta_drc_mutual_exclusion_removal")&&this.B(G,"onPlaybackAudioChange",this.RC);this.enableNewAudioSettingsMenu&& this.B(G,"audiopreferencechange",this.RC);X=this.W()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(G=G.G("delhi_modern_web_player_icons")?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{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.setIcon(G));this.subscribe("select",this.V,this);this.enableNewAudioSettingsMenu?this.RC():(this.setEnabled(this.hasDrcAudioTrack()),KE(this,X),this.gb.jj(this))}; Bv=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);G.G("html5_show_drc_toggle")&&G.addEventListener("settingsMenuInitialized",function(){X.menuItem||(X.menuItem=new lU(X.api,X.setDrcUserPreference.bind(X),X.getDrcUserPreference.bind(X),X.JG.bind(X),X.getDrcState.bind(X)),g.d(X,X.menuItem))}); r4(this.api,"setDrcUserPreference",function(R){X.setDrcUserPreference(R)}); r4(this.api,"getDrcUserPreference",function(){return X.getDrcUserPreference()}); r4(this.api,"hasDrcAudioTrack",function(){return X.JG()}); r4(this.api,"getDrcState",function(){return X.getDrcState()}); var Q;this.N=(Q=g.xL("yt-player-drc-pref"))!=null?Q:1;this.updateEnvironmentData()}; FK=function(G){kH.call(this,G);var X=this;this.N={};this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"videodatachange",function(){X.onVideoDataChange()}); this.events.B(G,g.Dy("embargo"),function(Q){X.api.q1(!0);var R,S=(R=X.N[Q.id])!=null?R:[];R=g.e(S);for(S=R.next();!S.done;S=R.next()){var Z=S.value;X.api.hideControls();X.api.WR("auth",2,"This video isn't available in your current playback area",kE({embargoed:1,id:Q.id,idx:Q.W,start:Q.start}));S=void 0;(Z=(S=Z.embargo)==null?void 0:S.onTrigger)&&X.api.E_("innertubeCommand",Z)}})}; ATl=function(G,X){var Q;return(Q=X.onEnter)==null?void 0:Q.some(G.W)}; $87=function(G,X){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var R=void 0,S=Number((R=Q.playbackPosition)==null?void 0:R.utcTimeMillis)/1E3,Z=void 0;R=S+Number((Z=Q.duration)==null?void 0:Z.seconds);Z="embargo_"+S;G.api.addUtcCueRange(Z,S,R,"embargo",!1);Q.onEnter&&(G.N[Z]=Q.onEnter.filter(G.W))}}; CE=function(G){kH.call(this,G);var X=this;this.N=[];this.events=new g.KP(G);g.d(this,this.events);r4(G,"addEmbedsConversionTrackingParams",function(Q){X.addEmbedsConversionTrackingParams(Q)}); this.events.B(G,"veClickLogged",function(Q){X.api.hasVe(Q)&&(Q=Q.visualElement.getAsJspb(),Q=z4(Q,2),X.N.push(Q))})}; b_0=function(G){kH.call(this,G);r4(G,"isEmbedsShortsMode",function(){return G.isEmbedsShortsMode()})}; vee=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"initialvideodatacreated",function(Q){S9(R_(),16623);X.N=g.oU();var R=G.Z().hE&&!Q.Ge;if(HP(Q)&&R){S9(R_(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(Q.getWatchNextResponse()){var S,Z=(S=Q.getWatchNextResponse())==null?void 0:S.trackingParams;Z&&H_(Z)}if(Q.getPlayerResponse()){var H;(Q=(H=Q.getPlayerResponse())==null?void 0:H.trackingParams)&&H_(Q)}}else S9(R_(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),Q.getEmbeddedPlayerResponse()&&(H=(Z=Q.getEmbeddedPlayerResponse())==null?void 0:Z.trackingParams)&&H_(H)}); this.events.B(G,"loadvideo",function(){S9(R_(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:X.N})}); this.events.B(G,"cuevideo",function(){S9(R_(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:X.N})}); this.events.B(G,"largeplaybuttonclicked",function(Q){S9(R_(),27240,Q.visualElement)}); this.events.B(G,"playlistnextbuttonclicked",function(Q){S9(R_(),27240,Q.visualElement)}); this.events.B(G,"playlistprevbuttonclicked",function(Q){S9(R_(),27240,Q.visualElement)}); this.events.B(G,"playlistautonextvideo",function(){S9(R_(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; th=function(G,X){g.I.call(this);var Q=this;this.N=null;this.Y=X;X=[];for(var R=0;R<=100;R++)X.push(R/100);X={threshold:X,trackVisibility:!0,delay:1E3};(this.W=window.IntersectionObserver?new IntersectionObserver(function(S){S=S[S.length-1];var Z=null;typeof S.isVisible==="undefined"?document.visibilityState==="visible"&&S.isIntersecting&&S.intersectionRatio>0?Z=S.intersectionRatio:document.visibilityState==="hidden"?Z=0:Z=null:Z=S.isVisible?S.intersectionRatio:0;Z!=null&&(Z=Math.max(Z,0),Z=Math.min(Z, 1));Q.N=Z;typeof Q.Y==="function"&&Q.Y(Q.N)},X):null)&&this.W.observe(G)}; i_i=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"applicationInitialized",function(){JT7(X)})}; JT7=function(G){var X=G.api.getRootNode(),Q,R=G.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((Q=X.parentElement)==null?void 0:Q.parentElement)||X:X;G.N=new th(R,function(S){S!=null&&(G.api.Z().Z1=S,G.api.Z().Ku="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.d(G,G.N);G.events.B(G.api,"videoStatsPingCreated",function(S){var Z=G.N;Z=Z.N==null?null:Math.round(Z.N*100)/100;S.inview=Z!=null?Z:void 0;Z=G.api.getPlayerSize();if(Z.height>0&&Z.width>0){Z=[Math.round(Z.width),Math.round(Z.height)];var H=g.PM();H>1&&Z.push(H);Z=Z.join(":")}else Z=void 0;S.size=Z})}; G1w=function(G){var X;return((X=((G==null?void 0:G.messageRenderers)||[]).find(function(Q){return!!Q.timeCounterRenderer}))==null?void 0:X.timeCounterRenderer)||null}; Vn=function(G){g.f.call(this,{D:"div",aU:["ytp-player-content","ytp-iv-player-content"],K:[{D:"div",X:"ytp-free-preview-countdown-timer",K:[{D:"span",WM:"{{label}}"},{D:"span",X:"ytp-free-preview-countdown-timer-separator",WM:"\u2022"},{D:"span",WM:"{{duration}}"}]}]});this.api=G;this.N=null;this.Y=this.W=0;this.B(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Q_G=function(G,X){G.N||(G.W=X,G.Y=(0,g.TB)(),G.N=new g.yK(function(){X_w(G)},null),X_w(G))}; X_w=function(G){var X=Math,Q=X.round,R=Math.min((0,g.TB)()-G.Y,G.W);X=Q.call(X,(G.W-R)/1E3);G.updateValue("duration",bM({seconds:X}));X<=0&&G.N?G.stopTimer():G.N&&G.N.start()}; RDZ=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"basechromeinitialized",function(){X.N=new Vn(G);g.d(X,X.N);g.$6(G,X.N.element,4);X.N.hide()})}; IG=function(G){g.f.call(this,{D:"button",aU:["ytp-fullerscreen-edu-button","ytp-button"],K:[{D:"div",aU:["ytp-fullerscreen-edu-text"],WM:"Scroll for details"},{D:"div",aU:["ytp-fullerscreen-edu-chevron"],K:[{D:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",L:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],L:{"data-priority":"2"}});this.PM=G;this.fade=new g.v5(this,250,void 0,100);this.W=this.N=!1;G.createClientVe(this.element,this,61214);g.d(this, this.fade);this.B(G,"fullscreentoggled",this.GT);this.B(G,"presentingplayerstatechange",this.GT);this.listen("click",this.onClick);this.GT()}; dU=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);r4(this.api,"updateFullerscreenEduButtonSubtleModeState",function(R){X.updateFullerscreenEduButtonSubtleModeState(R)}); r4(this.api,"updateFullerscreenEduButtonVisibility",function(R){X.updateFullerscreenEduButtonVisibility(R)}); var Q=G.Z();G.G("external_fullscreen_with_edu")&&Q.externalFullscreen&&oI(Q)&&Q.controlsType==="1"&&this.events.B(G,"standardControlsInitialized",function(){X.N=new IG(G);g.d(X,X.N);G.gj(X.N)})}; S40=function(G){g.f.call(this,{D:"div",X:"ytp-gated-actions-overlay",K:[{D:"div",X:"ytp-gated-actions-overlay-background",K:[{D:"div",X:"ytp-gated-actions-overlay-background-overlay"}]},{D:"button",aU:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],L:{"aria-label":"Close"},K:[g.YC()]},{D:"div",X:"ytp-gated-actions-overlay-bar",K:[{D:"div",X:"ytp-gated-actions-overlay-text-container",K:[{D:"div",X:"ytp-gated-actions-overlay-title",WM:"{{title}}"},{D:"div",X:"ytp-gated-actions-overlay-subtitle", WM:"{{subtitle}}"}]},{D:"div",X:"ytp-gated-actions-overlay-button-container"}]}]});var X=this;this.api=G;this.background=this.VH("ytp-gated-actions-overlay-background");this.W=this.VH("ytp-gated-actions-overlay-button-container");this.N=[];this.B(this.VH("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){X.api.E_("onCloseMiniplayer")}); this.hide()}; HRX=function(G,X){var Q=0;Q=0;for(var R={};Q S&&(S=w.width,Z="url("+w.url+")")}Q.background.style.backgroundImage=Z;HRX(Q,R.actionButtons||[]);Q.show()}else Q.hide()}); g.$6(this.api,this.N.element,4)}; Wv=function(G){kH.call(this,G);var X=this;Ea(this.api,"getSphericalProperties",function(){return X.getSphericalProperties()}); Ea(this.api,"setSphericalProperties",function(){X.setSphericalProperties.apply(X,g.o0(g.Wl.apply(0,arguments)))}); aM(this.api,"getSphericalProperties",function(){return X.api.getPresentingPlayerType()===2?{}:X.getSphericalProperties()}); aM(this.api,"setSphericalProperties",function(){var Q=g.Wl.apply(0,arguments);X.api.getPresentingPlayerType()!==2&&X.setSphericalProperties.apply(X,g.o0(Q))})}; pE=function(G){kH.call(this,G);r4(G,"createClientVe",this.createClientVe.bind(this));r4(G,"createServerVe",this.createServerVe.bind(this));r4(G,"destroyVe",this.destroyVe.bind(this));r4(G,"hasVe",this.hasVe.bind(this));r4(G,"logClick",this.logClick.bind(this));r4(G,"logVisibility",this.logVisibility.bind(this));r4(G,"setTrackingParams",this.setTrackingParams.bind(this))}; DJ=function(G){this.W={};this.N={};this.videoData=G;var X;this.Y=((X=G.Y)==null?void 0:X.W)||[];G=g.e(yn);for(X=G.next();!X.done;X=G.next())X=X.value,this.W[X]=p0(this.Y,fE[X].XH);this.zJ()}; w_U=function(G,X){var Q=X.getAudioTrack();return Q.id!=="und"?g.xo(G,function(R){var S;return((S=R.kP)==null?void 0:S.name)===Q.getLanguageInfo().name}):G}; LrG=function(G,X){return X.getUserAudio51Preference()?g.xo(G,hDG):G}; Y40=function(G){return g.xL("yt-player-drc-pref")?g.xo(G,k1G):G}; M9i=function(G){return b6l()===2?g.xo(G,j_y):G}; k1G=function(G){var X;return((X=G.audio)==null?void 0:X.N)===!0}; hDG=function(G){return DP(G)||Nr(G)}; mgS=function(G){return G.kP!==void 0}; j_y=function(G){var X;return((X=G.audio)==null?void 0:X.W)===!0}; Nz=function(G,X,Q,R){function S(H){var w=!(H.status!==204&&H.status!==200&&!H.response),h;H={succ:""+ +w,rc:H.status,lb:((h=H.response)==null?void 0:h.byteLength)||0,rt:((0,g.TB)()-Z).toFixed(),shost:g.hN(G),trigger:X};omU(H,G);Q&&Q(H);R&&!w&&R(new g.YE("pathprobe.net",H))} var Z=(0,g.TB)();g.PT(G,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:S,onTimeout:S})}; omU=function(G,X){var Q;((Q=window.performance)==null?0:Q.getEntriesByName)&&(X=performance.getEntriesByName(X))&&X.length&&(X=X[0],G.pedns=(X.domainLookupEnd-X.startTime).toFixed(),G.pecon=(X.connectEnd-X.domainLookupEnd).toFixed(),G.perqs=(X.requestStart-X.connectEnd).toFixed(),uye&&(G.perqsa=X.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; PFS=function(G){uye=G}; Ah=function(G,X){this.VN=G;this.policy=X;this.playbackRate=1}; s_T=function(G,X){var Q=Math.min(2.5,pj(G.VN));G=nE(G);return X-Q*G}; $H=function(G,X,Q,R,S){S=S===void 0?!1:S;if(G.policy.Bf)return Math.ceil(G.policy.Bf*X);G.policy.bZ&&(R=Math.abs(R));R/=G.playbackRate;var Z=1/DC(G.VN);Q=Math.max(.9*(R-3),pj(G.VN)+G.VN.W.N*Z)/Z*.8/(X+Q);Q=Math.min(Q,R);G.policy.wJ>0&&S&&(Q=Math.max(Q,G.policy.wJ));return T$i(G,Q,X)}; T$i=function(G,X,Q){return Math.ceil(Math.max(Math.max(G.policy.Ti,G.policy.P4*Q),Math.min(Math.min(G.policy.CO,31*Q),Math.ceil(X*Q))))||G.policy.Ti}; Kri=function(G,X,Q){Q=$H(G,X.N.info.jA,Q.N.info.jA,0);var R=pj(G.VN)+Q/DC(G.VN);return Math.max(R,R+G.policy.Lz-Q/X.N.info.jA)}; nE=function(G){return DC(G.VN,!G.policy.Xs,G.policy.VI)}; bU=function(G){return nE(G)/G.playbackRate}; vv=function(G,X,Q){var R=G.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],S=G.policy.playbackStartPolicy.startMinReadaheadPolicy||[];G=Infinity;X=g.e(X&&R.length>0?R:S);for(R=X.next();!R.done;R=X.next())R=R.value,S=R.minReadaheadMs||0,Q<(R.minBandwidthBytesPerSec||0)||G>S&&(G=S);return G0&&(this.W=Q.aP)}; a1y=function(G,X,Q,R,S){if(!R.info.V){if(Q.length===0)Q.push(R);else{var Z;(G=(Z=Q.pop())==null?void 0:g.r0(Z,R))?Q.push(G):Q.push(R)}return S}var H;(Q=(H=Q.pop())==null?void 0:g.r0(H,R))||(Q=R);if(Q.info.W)return G.logger&&G.logger({incompleteSegment:Q.info.Hn()}),S;R=G.nJ(Q);S=R.oU;R={clipId:R.clipId,formatId:R.formatId,startTimeMs:R.startTimeMs,durationMs:R.D9,tN:S,tE:S};S=eDi(X,R.startTimeMs);if(Z=Q=S>=0?X[S]:null){Z=R;var w=S;H=Q.startTimeMs+Q.durationMs;var h=Z.startTimeMs+Z.durationMs;if(Z.startTimeMs- H>G.W)Z=!1;else if(rX0(G,Q.formatId,Z.formatId))Q.durationMs=Math.max(H,h)-Q.startTimeMs,Q.tE=Math.max(Q.tE,Z.tE),Z=!0;else if(Math.abs(Q.startTimeMs-Z.startTimeMs)<=G.W)if(Q.durationMs>Z.durationMs+G.W){var L=Q.formatId,k=Q.tN;w=Q.tE;Q.formatId=Z.formatId;Q.durationMs=Z.durationMs;Q.tN=Z.tN;Q.tE=Z.tE;Z.formatId=L;Z.startTimeMs=h;Z.durationMs=H-h;Z.tN=k;Z.tE=w;Z=!1}else Q.formatId=Z.formatId,Z=!0;else H>Z.startTimeMs&&(H>h&&(X.splice(w+1,0,{formatId:Q.formatId,startTimeMs:h,durationMs:H-h,tN:Z.tE+ 1,tE:Q.tE}),G.logger&&G.logger({splitOldStart:(L=Q.startTimeMs)==null?void 0:L.toFixed(3),splitOldEnd:H==null?void 0:H.toFixed(3),splitNewStart:(k=Z.startTimeMs)==null?void 0:k.toFixed(3),splitNewEnd:h==null?void 0:h.toFixed(3)})),Q.durationMs=Z.startTimeMs-Q.startTimeMs,Q.tE=Z.tN-1),Z=!1}Z?R=Q:(S+=1,X.splice(S,0,R));L=0;for(k=S+1;k=h+Q.W?Q=!0:w+Q.W=0?G:-G-2}; Em7=function(G,X){if(G.l6){var Q=G.l6.Zu();if(Q.length!==0){if(G.Y&&X){var R=G.Y,S=R.info.C;!HH(Q,S)&&R.info.T>0&&(0,g.TB)()-G.S<5E3&&(G.logger&&G.logger({dend:R.info.Hn()}),Q=cwl(Q,S,S+.01))}G.policy.Lg&&G.logger&&G.logger({cbri:""+G.N});R=[];for(var Z=S=0;S=H){var k=Object.assign({},G.u9[Z]),Y=G.vM.Y.get(AQ(G.u9[Z].formatId)),M=Math.max(h,H);H=Y.index.NG(M+G.W/ 1E3);h=Y.index.getStartTime(H);var m=H+ +(Math.abs(h-M)>G.W/1E3);M=m+G.V;m=Y.index.getStartTime(m)*1E3;Z!==G.N||X?(k.tN=M,k.startTimeMs=m):(G.logger&&G.logger({pEvict:"1",og:k.startTimeMs,adj:h*1E3}),k.tN=H+G.V,k.startTimeMs=h*1E3);H=void 0;h=((H=G.Y)==null?void 0:H.info.duration)||11;Z===G.N&&wG.W/1E3);H=h+G.V;Y=Y.index.ra(h)*1E3;k.tE=H;k.durationMs=Y-k.startTimeMs;k.tN<=k.tE&&R.push(k)}L=0&&RF(G.audioTrack,G.targetTime)>=0&&Z?((G.videoTrack.C||G.audioTrack.C)&&G.loader.Ni("iterativeSeeking",{status:"done",count:G.seekCount}),G.videoTrack.C=!1,G.audioTrack.C=!1):R&&g.sy(function(){if(G.N||!G.policy.N9)HQ(G);else{var H=X.startTime,w=X.duration;if(!G.policy.C){var h=Q?G.videoTrack.C:G.audioTrack.C,L=G.videoTrack.S!==-1&&G.audioTrack.S!==-1,k=G.targetTime>=H&&G.targetTime432E3&&gql(G.vM);G.W&&(S=G.W,G.W=0);g.sy(function(){G.policy.C||qI(G,S,102)}); G.loader.Ni("initManifestlessSync",{st:S,ost:S+G.loader.q9(),a:G.audioTrack.S,v:G.videoTrack.S});G.Y&&(G.Y.resolve(S+.1),G.Y=null);G.policy.C&&qI(G,S,102)}}}; LB=function(G,X){var Q=this;this.YP=G;this.requestNumber=++I1G;this.N=this.now();this.T=this.j=NaN;this.J=this.N;this.Y=this.C7=this.C=0;this.S=this.N;this.BM=this.yH=this.QH=this.f7=this.F7=this.DC=this.W=this.V=0;this.AT=this.isActive=!1;this.Hs=this.KO=0;this.gh={hkc:function(){return Q.xf}}; this.VN=X.VN;this.snapshot=eXl(this.VN);this.policy=this.VN.W;this.S3=!!X.S3;this.S4=X.S4;this.oX=X.oX||0;this.Rs=X.Rs||0;X.cH&&(this.Mi=new l$);var R;this.xf=(R=X.xf)!=null?R:!1;this.S3||szw(this.VN)}; dgC=function(G){G.QH=Math.max(G.QH,G.C-G.F7);G.yH=Math.max(G.yH,G.J-G.f7);G.DC=0}; k8=function(G,X,Q){Twe(G.VN,X);G.Mi&&(G.Mi.add(Math.ceil(X)-Math.ceil(G.J)),G.Mi.add(Math.max(0,Math.ceil(Q/1024)-Math.ceil(G.C/1024))));var R=X-G.J,S=Q-G.C;G.C7=S;G.BM=Math.max(G.BM,S/(R+.01)*1E3);G.J=X;G.C=Q;G.DC&&Q>G.DC&&dgC(G)}; Y8=function(G,X){G.url=X;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; j3=function(G,X){LB.call(this,G,X);this.As=this.Ps=!1;this.IU=this.Yc=Infinity;this.SA=NaN;this.N9=!1;this.cM=NaN;this.Js=this.CO=this.wb=0;this.SU=X.SU||1;this.b4=X.b4||this.SU;this.IX=X.IX;this.oU=X.oU;this.WF=X.WF;WrS(this);this.Qr(this.N);this.bB=(this.cM-this.N)/1E3}; p_X=function(G){var X=G.CO||G.wb;return X?G.snapshot.delay+Math.min(G.Rs,(G.T-G.j)/1E3)+X:G.bB}; MI=function(G,X,Q){if(!G.S3){X=Math.max(X,.01);var R=G.oX?Math.max(X,Q/G.oX):X,S=G.VN.W.Y;S&&(R=X,G.oX&&(R=Math.max(X,Q/G.oX*S)));ID(G.VN,X,Q,R)}}; yXU=function(G){return(G.S-G.N)/1E3}; WrS=function(G){G.SA=G.N+G.snapshot.delay*1E3;G.N9=!1}; mv=function(G,X){if(G.IX&&G.oU!==void 0&&G.WF!==void 0){var Q=Math,R=Q.min,S=G.Yc;var Z=G.IX;var H=G.N;if(f1w(Z,G.oU))Z=X;else{var w=0;Z.Na&&(w=.2);Z=H+(Z.Rs+w)*1E3}G.Yc=R.call(Q,S,Z);Q=Math;R=Q.min;S=G.IU;Z=G.IX;H=G.N;w=Dg0(Z,G.oU,G.WF);w!==2&&(X=w?X:H+Z.Rs*1E3,Z.Na&&(X+=Z.Rs*1E3));G.IU=R.call(Q,S,X);G.Yc<=G.N?WrS(G):(G.SA=G.Yc,G.N9=!0)}}; N$C=function(G,X){if(X+1<=G.totalLength){var Q=hK(G,X);Q=Q<128?1:Q<192?2:Q<224?3:Q<240?4:5}else Q=0;if(Q<1||!(X+Q<=G.totalLength))return[-1,X];if(Q===1)G=hK(G,X++);else if(Q===2)Q=hK(G,X++),G=hK(G,X++),G=(Q&63)+64*G;else if(Q===3){Q=hK(G,X++);var R=hK(G,X++);G=hK(G,X++);G=(Q&31)+32*(R+256*G)}else if(Q===4){Q=hK(G,X++);R=hK(G,X++);var S=hK(G,X++);G=hK(G,X++);G=(Q&15)+16*(R+256*(S+256*G))}else Q=X+1,G.focus(Q),H2(G,Q,4)?G=Vii(G).getUint32(Q-G.Y,!0):(R=hK(G,Q+2)+256*hK(G,Q+3),G=hK(G,Q)+256*(hK(G,Q+1)+ 256*R)),X+=5;return[G,X]}; oF=function(G){this.YP=G;this.N=new Qk}; uh=function(G,X){this.info=G;this.callback=X;this.state=1;this.WW=this.ey=!1;this.YF=null}; AX7=function(G){return g.so(G.info.LO,function(X){return X.type===3})}; PQ=function(G,X,Q,R){var S=this;R=R===void 0?{}:R;this.policy=X;this.YP=Q;this.status=0;this.N=new Qk;this.W=0;this.U_=this.V=this.Y=!1;this.xhr=new XMLHttpRequest;this.xhr.open(R.method||"GET",G);if(R.headers)for(G=R.headers,X=g.e(Object.keys(G)),Q=X.next();!Q.done;Q=X.next())Q=Q.value,this.xhr.setRequestHeader(Q,G[Q]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return S.dw()}; this.xhr.onload=function(){return S.onDone()}; this.xhr.onerror=function(){return S.onError()}; this.xhr.fetch(function(Z){S.N.append(Z);S.W+=Z.length;Z=(0,g.TB)();S.YP.uX(Z,S.W)},function(){},R.body||null)}; nmS=function(G,X){this.W=(new TextEncoder).encode(G);this.N=(new TextEncoder).encode(X)}; tsU=function(G,X){var Q;return g.F(function(R){if(!X)return R.return(X);Q=new g.ht(G.W);return R.return(Q.encrypt(X,G.N))})}; pE0=function(G,X){var Q;return g.F(function(R){if(R.W==1){if(!X)return R.return(X);Q=new g.ht(G.W);return g.l(R,Q.decrypt(X,G.N),2)}return R.return(R.N)})}; bRC=function(G,X){var Q=this;this.N=G;this.YP=X;this.loaded=this.status=0;this.error="";G=bo(this.N.get("range")||"");if(!G)throw Error("bad range");this.range=G;this.W=new Qk;$g0(this).then(function(){Q.YP.BD()},function(R){Q.error=""+R||"unknown_err"; Q.YP.BD()})}; $g0=function(G){var X,Q,R,S,Z,H,w,h,L,k,Y,M,m,u,r;return g.F(function(x){if(x.W==1){G.status=200;X=G.N.get("docid");Q=gZ(G.N.get("fmtid")||"");R=G.N.get("lmt")||"0";S=+(G.N.get("csz")||0);if(!X||!Q||!S)throw Error("Invalid local URL");G.N.get("ck")&&G.N.get("civ")&&(Z=new nmS(G.N.get("ck"),G.N.get("civ")));H=G.range;w=Math.floor(H.start/S);h=Math.floor(H.end/S);L=w}if(x.W!=5)return L<=h?g.l(x,ypi(X,Q,R,L,Z),5):x.pO(0);k=x.N;if(k===void 0)throw Error("invariant: data is undefined");Y=L*S;M=(L+1)*S; m=Math.max(0,H.start-Y);u=Math.min(H.end+1,M)-(m+Y);r=new Uint8Array(k.buffer,m,u);G.W.append(r);G.loaded+=u;G.loaded=400?(G.lastError="net.badstatus",!0):(S===void 0?0:S)?(G.lastError="ump.spsrejectfailure",!0):Q||R!==void 0&&R?!1:(G.lastError=X===204?"net.nocontent":"net.connect",!0)}; OG=function(G,X){if(G.policy.bb)return!1;var Q=X.getResponseHeader("content-type"),R=X.h7();G=!R||R<=G.policy.Mz;return(!X.Oz()||!Q||Q.indexOf("text/plain")!==-1)&&G}; ZfC=function(G,X){var Q="";X=X.Qn();X.totalLength<=G.policy.Mz&&(Q=SPU(G,q2(X)));return Q}; SPU=function(G,X){var Q=kJ(X);return Ie(Q)?(G.logger.debug(function(){return"Redirecting to "+Q}),Q):""}; rI=function(G){return Wr(G.V,AX(G.WZ.JR))}; Hf7=function(G){var X=G.timing.u5();X.shost=AX(G.WZ.JR);return X}; qPe=function(G,X){return(G==null?void 0:G.maxWidth)>(X==null?void 0:X.maxWidth)||(G==null?void 0:G.maxHeight)>(X==null?void 0:X.maxHeight)}; wrw=function(G,X){for(var Q=g.e(X.keys()),R=Q.next();!R.done;R=Q.next())if(R=X.get(R.value),R.length!==0){g.na(R,function(w,h){return h.maxFramerate-w.maxFramerate}); for(var S=[R[0]],Z=0,H=1;HG.N||Q.push(R)}return Q}; zN=function(G,X,Q){var R=kMU[G]||[];Q.G("html5_shorts_onesie_mismatched_fix")&&(R=YPU[G]||[]);X.push.apply(X,g.o0(R));Q.G("html5_early_media_for_drm")&&X.push.apply(X,g.o0(jj7[G]||[]))}; sjw=function(G,X){var Q=g.gx(G),R=G.Z(),S=R.C;R=R.G("html5_shorts_onesie_mismatched_fix");var Z=G.n2();if(R){if(!S.W){if(Z&&cQ)return cQ;if(gI)return gI}}else if(gI&&!S.W)return gI;var H=[],w=[],h={},L=UG.concat(M4w);R&&(L=UG.concat(m70));G.G("html5_early_media_for_drm")&&(L=L.concat(oXS),G.G("allow_vp9_1080p_mq_enc")&&L.push(uFT));var k=[].concat(g.o0(PoS));G.G("html5_iamf_audio_onesie_fmt")&&k.push(["773"]);L=g.e(L);for(var Y=L.next();!Y.done;Y=L.next()){var M=!1;Y=g.e(Y.value);for(var m=Y.next();!m.done;m= Y.next()){m=m.value;var u=gS(m,Z&&R);if(u&&u.video&&!(fP(u)&&!Q.DC&&u.video.qualityOrdinal>Q.V1)){var r=g.i2(G.Z().experiments,"html5_drm_byterate_soft_cap");r>0&&OwX(u)&&u.jA>r||(M?(H.push(m),zN(m,H,G)):(u=tX(Q,u,S),u===!0?(M=!0,H.push(m),zN(m,H,G)):h[m]=u))}}}k=g.e(k);for(L=k.next();!L.done;L=k.next())for(L=g.e(L.value),M=L.next();!M.done;M=L.next())if(M=M.value,(Y=nWT(M))&&Y.audio&&(G.G("html5_onesie_51_audio")||!DP(Y)&&!Nr(Y)))if(Y=tX(Q,Y,S),Y===!0){w.push(M);zN(M,w,G);break}else h[M]=Y;if(!G.G("html5_enable_audio_quality_setting"))for(G= g.e(["141","774"]),k=G.next();!k.done;k=G.next())k=k.value,w.includes(k)&&(g.Ev(w,k),h[k]="blkhqa");Q.W&&X("orfmts",h);if(R)return S.W&&(S.W=!1,cQ=gI=void 0),Z?cQ={video:H,audio:w}:gI={video:H,audio:w};gI={video:H,audio:w};S.W=!1;return gI}; g.egG=function(G,X,Q){var R=Q.C,S=[],Z=[],H=Q.G("html5_shorts_onesie_mismatched_fix");G=G.n2();var w=UG.concat(M4w);H&&(w=UG.concat(m70));Q.G("html5_early_media_for_drm")&&(w=w.concat(oXS),Q.G("allow_vp9_1080p_mq_enc")&&w.push(uFT));var h=[].concat(g.o0(PoS));Q.G("html5_iamf_audio_onesie_fmt")&&h.push(["773"]);w=g.e(w);for(var L=w.next();!L.done;L=w.next()){L=g.e(L.value);for(var k=L.next();!k.done;k=L.next()){k=k.value;var Y=gS(k,G&&H);if(Y&&Y.video){var M=g.i2(Q.experiments,"html5_drm_byterate_soft_cap"); if(!(M>0&&OwX(Y)&&Y.jA>M)&&tX(X,Y,R)===!0){S.push({videoCodec:TKC[IE[k]],maxWidth:Y.video.width,maxHeight:Y.video.height,maxFramerate:Y.video.fps});break}}}}H=g.e(h);for(G=H.next();!G.done;G=H.next())for(G=g.e(G.value),h=G.next();!h.done;h=G.next())if(h=h.value,(w=nWT(h))&&w.audio&&(Q.G("html5_onesie_51_audio")||!DP(w)&&!Nr(w))&&tX(X,w,R)===!0){Z.push({audioCodec:KuZ[IE[h]],numChannels:w.audio.numChannels});break}return{videoFormatCapabilities:S,audioFormatCapabilities:Z}}; EXS=function(G){var X,Q={},R=G.uB,S=G.hT,Z=R.getVideoData(),H=mr(0),w=R.getVisibilityState(),h;if((h=G.XG)==null?0:h.nu)Q.NQ=S.NQ;H&&(Q.Z0=H,Q.lastManualDirection=fyy(),H=ylG()||0,H>0&&(H=(S.G("html5_use_date_now_for_local_storage")?Date.now():(0,g.TB)())-H,S.G("html5_use_date_now_for_local_storage")?H>0&&(Q.timeSinceLastManualFormatSelectionMs=H):Q.timeSinceLastManualFormatSelectionMs=H));H=S.G("html5_use_streamer_bandwidth_for_low_latency_live")&&Z.isLowLatencyLiveStream;if(S.schedule.AT&&!H){var L; H=S.G("html5_disable_bandwidth_cofactors_for_sabr_live")?!((L=G.XG)==null||!L.Xs):!1;Q.oi=DC(S.schedule,!H)}H=g.FZ.medium;h=Math.floor(H*16/9);(L=Z.n2())||(Z.N&&Z.Y&&Z.Y.videoInfos.length!==0?(L=Z.Y.videoInfos[0],L=!!L.video&&L.video.width0?{authorizedFormats:G.authorizedFormats}:{authorizedFormats:X};G.sabrLicenseConstraint&&(Q.RI.sabrLicenseConstraint=G.sabrLicenseConstraint);if(S.G("html5_onesie_media_capabilities")||S.G("html5_enable_server_format_filter"))Q.r7= 3;S.G("html5_onesie_audio_only_playback")&&xP(Z)&&(Q.r7=1);var c;((c=G.XG)==null?0:c.Mj)&&G.G3&&(Q.r7=Q.r7===void 0?7:Q.r7|4);c=Z.bf?Z.bf:g.gx(Z);S.G("html5_onesie_media_capabilities")&&(Q.mediaCapabilities=g.egG(Z,c,S));var z;if((z=G.XG)==null?0:lh(z)){Y=S.C;z=[];X=[];M=new Map;m=Array.from(Y.N.values());m=g.e(m);for(u=m.next();!u.done;u=m.next())r=u.value,r.vz?X.push({audioCodec:KuZ[r.ZC],numChannels:r.numChannels,spatialCapabilityBitmask:rQy[r.ZC]}):(x=TKC[r.ZC],u={videoCodec:x,maxWidth:r.maxWidth|| 0,maxHeight:r.maxHeight||0,maxFramerate:r.maxFramerate||0,is10BitSupported:r.mw||!1},r.maxBitrateBps&&(u.maxBitrateBps=r.maxBitrateBps,w=gS(r.itag),L=void 0,((L=w)==null?0:L.video)&&tX(c,w,Y)===!0&&(w=w.jA*8,w>u.maxBitrateBps&&(u.maxBitrateBps=w))),r=x+"_"+r.mw,x=M.get(r)||[],x.push(u),M.set(r,x));z=wrw(z,M);Y={};S.G("html5_ssff_denylist_opus_low")&&(Y={itagDenylist:[249,350]});Q.mediaCapabilities={videoFormatCapabilities:z,audioFormatCapabilities:X,hdrModeBitmask:3,perPlaybackAttributes:Y}}var B; if((B=G.XG)==null?0:B.N){Q.TO=c.TO;var V;Q.V1=(V=G.XG)==null?void 0:V.V1}S.PR&&(Q.pS=S.PR);Q.H$=G.SH;Q.I1=G.I1;Q.o1=G.o1;Q.NU=G.NU;G.zn&&(Q.Xzm=(0,g.TB)()-G.zn);G.isPrefetch&&S.G("html5_report_prefetch_requests")&&(Q.isPrefetch=!0);u$||(Q.QUM=!0);B=pj(S.schedule)*1E3;B>0&&(Q.Xg=B);var p;((p=G.XG)==null?0:p.Bo)&&G.nV&&G.nV0?b:S.schedule.interruptions[0]||0;var A;if((A=G.XG)==null?0:A.C7)Q.K6=G.K6;S.cM&&(Q.audioTrackId=S.cM);hL(Z)&&!Q.audioTrackId&&(S.G("html5_fill_default_mosaic_audio_track_id")||(G=fLU(Z),Q.audioTrackId=G),Z==null||Z.Ni("misstrkchg",{"default":Q.audioTrackId}));if(Z=OD7())Q.detailedNetworkType=a9X[Z]||a9X.other;S.G("html5_enable_voice_boost")&&(Q.ouc=S.A8);return Q}; BQ=function(G,X,Q,R,S,Z,H){var w={};X&&(w.HW=X);if(!G)return w;w.playbackCookie=Q==null?void 0:Q.playbackCookie;S&&(w.VT=S);w.bW=[];w.An=[];if(H==null?0:H.size)for(X=g.e(H.values()),Q=X.next();!Q.done;Q=X.next())w.An.push(Q.value);if(G.sabrContextUpdates.size>0)for(X=g.e(G.sabrContextUpdates.values()),Q=X.next();!Q.done;Q=X.next())x7V(w,Q.value,R);c4(G)&&Z&&x7V(w,Z,R);R=G.Z().N;w.clientInfo={clientName:OfV[R.c.toUpperCase()]||0};R.cbrand&&(w.clientInfo.deviceMake=R.cbrand);R.cmodel&&(w.clientInfo.deviceModel= R.cmodel);R.cver&&(w.clientInfo.clientVersion=R.cver);R.cos&&(w.clientInfo.osName=R.cos);R.cosver&&(w.clientInfo.osVersion=R.cosver);R=G.Z();R.G("html5_sabr_enable_server_xtag_selection")&&R.Xq&&(w.clientInfo.hl=R.Xq);G.yE&&(w.yE=G.yE);return w}; x7V=function(G,X,Q){var R=X.type||0;(Q==null?0:Q.has(R))?G.An.push(X):G.bW.push(R)}; Xs=function(G,X,Q,R,S,Z){var H=Z===void 0?{}:Z;var w=H.yT===void 0?[]:H.yT;var h=H.xj===void 0?!1:H.xj;var L=H.TV===void 0?0:H.TV;var k=H.poToken===void 0?"":H.poToken;var Y=H.Oh===void 0?void 0:H.Oh;var M=H.RE===void 0?"":H.RE;var m=H.QJ===void 0?0:H.QJ;var u=H.R$===void 0?new Uint8Array(0):H.R$;var r=H.Jk===void 0?!1:H.Jk;Z=H.yC===void 0?0:H.yC;H=H.HW===void 0?void 0:H.HW;uh.call(this,X,S);var x=this;this.policy=G;this.logger=new g.sp("dash/request");this.YV=this.CL=0;this.jV=!1;this.pQ=this.Tq= null;this.qY=!1;this.R$=this.QJ=null;this.jJ=this.yB=!1;this.uV=null;this.yC=this.x0=0;this.Kb=!1;this.gh={qx:function(z){x.qx(z)}, FXc:function(){return x.YF}, hDC:function(z){x.YF=z}, x8H:function(z){x.CL=z}, VOb:function(z){x.pY.lastError=z}, nT:function(){return x.xhr}}; this.timing=new j3(this,Q);this.xj=h;this.QJ=m;this.R$=u;this.WZ=g.h1(this.info,this.policy,R);this.WZ.set("rn",this.V8().toString());this.WZ.set("rbuf",(L*1E3).toFixed().toString());this.xj&&this.WZ.set("smb","1");this.policy.gt&&k&&this.WZ.set("pot",k);M&&this.WZ.set("bbs",M);this.policy.useUmp&&!nR(this.WZ.JR)&&(this.e8=new oF(this),this.WZ.set("ump","1"),this.WZ.set("srfvp","1"));if(G=this.policy.wy?this.policy.Yb&&!isNaN(this.info.WF)&&this.info.WF>this.policy.s0?!1:!0:!1)X=null,this.policy.Kr&& this.policy.N1?X=[1]:r&&(X=[]),X!=null&&(this.policy.k8&&X.push(2),this.WZ.set("defsel",X.join(",")));this.pY=new e3(this,this.policy,this.WZ,this.info.xP,this.timing,this.logger,R,Y);this.yT=w||null;this.WW=zgT(this);GMV(this.pY);R=void 0;if(this.policy.K0||this.e8||this.policy.QH)R={method:"POST"},w=(0,g.Fs)([120,0]),Y={},this.policy.W8&&H&&(H=BQ(void 0,H),Y.Va=H),this.policy.Z6&&this.R$&&(Y.videoPlaybackUstreamerConfig=this.R$),this.policy.QH&&(H=this.info.V)&&Object.assign(Y,H),Object.keys(Y).length> 0?R.body=g.N2(Y,g.gP):R.body=w;if(this.QJ&&this.R$){this.WZ.set("iwts","1");R={method:"POST"};H={NU:this.QJ*1E3};var c;w=(c=this.info.V)==null?void 0:c.qo;c=g.N2({uR:H,qo:w||void 0,videoPlaybackUstreamerConfig:this.R$},g.gP);R.body=c}try{this.xhr=sG(this.WZ,this.policy.J,this.timing,G,R),this.pY.W.start(),Z&&(this.N0=new g.fU(this.OC,Z,this),this.N0.start(Z+(this.timing.VN.T.X8()||0)*1E3)),this.policy.C6&&Y8(this.timing,this.Rt()),this.logger.debug(function(){return"Sent, itag="+x.WZ.get("itag")+ " seg="+x.info.LO[0].oU+" range="+x.WZ.get("range")+" time="+Math.round(x.info.LO[0].C)+"-"+Math.round(g.uL(x.info.LO).S)+" rtp="+(x.timing.sU()-Date.now()).toFixed(0)}),g.sy(function(){})}catch(z){cQS(this,z,!0)}}; zgT=function(G){if(!(w0(G.info)&&G.info.xf()&&G.policy.qd&&G.yT)||G.info.xP.Y>=2||mr()>0||!nUC())return!1;var X=G.WZ.get("aitags");if(!X)return!1;X=gZ(X).split(",");for(var Q=[],R=g.e(G.yT),S=R.next();!S.done;S=R.next())S=S.value,g.rH(X,S)&&Q.push(S);if(!Q.length)return!1;G.WZ.set("altitags",g.z9(Q.join(",")));return!0}; cQS=function(G,X,Q){Q=Q===void 0?!1:Q;g.aU(X);G.pY.lastError="player.exception";G.errorMessage=X.name+"_"+X.message;Q?g.sy(function(){EG(G.pY)}):EG(G.pY)}; gXy=function(G,X){G.timing.AT=!0;G.xhr.Oz()&&G.timing.Ic();if(G.policy.Xq){var Q;(Q=G.N0)==null||Q.stop()}KB(G.YF,X,!1)}; U7w=function(G,X){G.info=X;if(G.YF){var Q=G.YF;X=X.LO;(X.length!==Q.LO.length||X.length0){X=g.e(X.LO);for(var Q=X.next();!Q.done;Q=X.next()){var R=void 0;G+=((R=Q.value.range)==null?void 0:R.length)||0}return G}if(X.nC.length>0)for(Q=g.e(X.nC),R=Q.next();!R.done;R=Q.next())G+=R.value.R5||0;return G+X.By}; y8=function(G,X){if(dI){var Q=0;G=G.CY.get(X);if(G==null||!G.UG)return 0;G=g.e(G.UG.values());for(X=G.next();!X.done;X=G.next())Q+=X.value.data.totalLength;return Q}return((Q=G.CY.get(X))==null?void 0:Q.On.totalLength)||0}; fB=function(G,X){G=G.CY.get(X);if(dI){if(G==null||!G.pI)return!1;X=G.UG.size>0;return G.D6.length>0||X}return!(G==null||!G.pI)&&!(G==null||!G.On.totalLength)}; V4e=function(G,X){var Q=G.CY.get(X),R=t4U(G,X),S=!R&&!!Q.bytesReceived;if(dI){var Z;if((Z=G.vM)==null?0:Z.IW){G=g.e(Q.UG.values());for(X=G.next();!X.done;X=G.next())if(!X.value.TC)return!1;return S}}else if(Z=G.w8(X),S&&G.N&&Z!==void 0)return Z;return(S||Q.bytesReceived===R)&&Q.NV+y8(G,X)===Q.bytesReceived}; I9T=function(G,X,Q){G.CY.set(X,{On:new Qk,NV:0,bytesReceived:0,By:0,hK:!1,Bz:!1,w8:!1,vz:Q,m1:[],LO:[],nC:[],pI:!1,UG:new Map,W2:new Map,D6:[]});G.logger.debug(function(){return"[initStream] formatId: "+X})}; d77=function(G,X,Q,R){Q.LO.push.apply(Q.LO,g.o0(R));if(dI){Q.W2.has(X)||Q.W2.set(X,[]);var S;(S=Q.W2.get(X)).push.apply(S,g.o0(R))}else if(Q.YF)for(G=g.e(R),X=G.next();!X.done;X=G.next())Q.YF.LO.push(X.value);else{Q.YF=new TN(G.XG,[].concat(g.o0(Q.LO)));var Z;((Z=G.XG)==null?0:Z.m4)&&g.d(G,Q.YF)}}; Wul=function(G,X,Q){var R,S=(R=G.vM)==null?void 0:R.Y.get(X);if(!S)return[];if(Q.iA){var Z;return((Z=S.Uc(0,Q.clipId))==null?void 0:Z.LO)||[]}if(S.R9()){var H=Q.startMs,w=Q.durationMs;R=1E3;var h;if(((h=G.XG)==null?0:h.N)&&Q.timeRange){var L;H=(L=Q.timeRange.startTicks)!=null?L:-1;var k;w=(k=Q.timeRange.jn)!=null?k:-1;var Y;R=(Y=Q.timeRange.timescale)!=null?Y:-1}if(Q.lW<0||Q.Cg<0||w<0||H<0||Q.R5<0||R<0)return pB(G,X),[];G=vr(Q.lW,Q.R5);X=Q.B7||0;return[new io(3,S,G,"makeSliceInfosMediaBytes",Q.Cg- 1,H/R,w/R,X,G.length-X,void 0,Q.OG,Q.clipId)]}if(Q.Cg<0)return pB(G,X),[];var M;return((M=G.vM)==null?0:M.IW)?(X=S.w$,h=X*S.info.jA,L=Q.B7,((w=G.XG)==null?0:w.i7)&&Q.timeRange&&!L&&(H=Q.timeRange.startTicks/Q.timeRange.timescale),[new io(3,S,void 0,"makeSliceInfosMediaBytes",Q.Cg,H,X,L,h,!0,Q.OG,Q.clipId)]):[]}; pry=function(G,X,Q){G.vM=X;G.XG=Q;X=g.e(G.CY);for(Q=X.next();!Q.done;Q=X.next()){var R=g.e(Q.value);Q=R.next().value;R=R.next().value;for(var S=g.e(R.m1),Z=S.next();!Z.done;Z=S.next()){Z=Z.value;var H=Wul(G,Q,Z);d77(G,Z.Lp,R,H)}}}; Dh=function(G,X,Q,R){G.logger.debug(function(){return"[addStreamData] formatId: "+Q+",headerId: "+X+" bytes: "+R.totalLength}); (G=G.CY.get(Q))&&!G.Bz&&(dI?(G.UG.has(X)||G.UG.set(X,{data:new Qk,tU:0,TC:!1}),R8(G.UG.get(X).data,R)):R8(G.On,R),G.bytesReceived+=R.totalLength,G.hK=!0)}; WQ=function(G,X){G.logger.debug(function(){return"[closeStream] formatId: "+X}); var Q=G.CY.get(X);if(Q&&!Q.Bz){Q.Bz=!0;if(Q.onProgress)Q.onProgress();yQG(G)&&G.V.Wr()}}; yQG=function(G){G=g.e(G.CY.values());for(var X=G.next();!X.done;X=G.next())if(!X.value.Bz)return!1;return!0}; f9G=function(G){dI=G}; NI=function(G,X,Q,R,S,Z,H){g.I.call(this);this.policy=G;this.info=X;this.vM=Q;this.YP=S;this.logger=new g.sp("sabr");this.e8=new oF(this);this.LX=new V8(this);this.Ko=new IF(this);this.state=1;this.Tc=!1;this.v$=0;this.clipId="";this.qW=-1;this.Gc=0;this.HJ=-1;this.x$=this.Kb=this.KH=!1;this.policy.YH?this.jz=new CB(this,Z):this.jz=new j3(this,Z);this.WZ=this.policy.C7?X.Hx:D7e(X,this.policy,R);this.WZ.set("rn",""+this.V8());this.WZ.set("alr","yes");pry(this.Ko,Q,G);this.pY=new e3(this,this.policy, this.WZ,X.xP,this.jz,this.logger,R,H,this.policy.enableServerDrivenRequestCancellation);GMV(this.pY);var w;if((w=this.policy)==null?0:w.m4)g.d(this,this.Ko),g.d(this,this.pY);G=X.W;X={method:"POST",body:G};G&&(this.Gc=G.length);try{this.xhr=sG(this.WZ,this.policy.J,this.jz,u$,X),this.policy.C6&&Y8(this.jz,this.Rt()),this.pY.W.start()}catch(h){g.EL(h)}}; NK7=function(G){G.policy.pV&&G.Wx&&!G.x$?G.x$=!0:G.jz.Ic()}; AQG=function(G,X){var Q=-1,R=-1,S=-1,Z;if((Z=G.Su)==null?0:Z.items)for(G=g.e(G.Su.items),Z=G.next();!Z.done;Z=G.next())Z=Z.value,X=w,h=G.vM.isManifestless,H){var L;if(((L=G.N)==null?void 0:L.AS.event)==="predictStart"&&G.N.oUG.S&&(G.S=NaN,G.J=NaN);G.N&&G.N.oU===X?hqS(G,X,Q,G.N,S):G.W===1&&bh(G,5,"noad")}; LZi=function(G,X,Q,R,S){R.k0?bh(G,4,"cue"):(G.S=X,G.J=Q,G.Ni("sdai",{joinad:G.W,sg:G.S,st:G.J.toFixed(3)}),G.j=Date.now(),bh(G,2,G.W===3?"staftpred":"join"),S.le(R.AS))}; hqS=function(G,X,Q,R,S){if(S&&R){var Z=R.AS,H=S.z7(Z);Z.event==="predictStart"&&(G.yH=X);G.Ni("sdai",{onqevt:Z.event,sq:X,mt:Q,gab:H,cst:Z.startSecs,cueid:G.policy.Kz&&(H||Z.event==="start")?Z.identifier:void 0},!0);if(H)Z.event!=="predictStart"?(Z.event==="start"&&G.yH===X-1&&G.Ni("sdai",{gabonstart:X}),LZi(G,X,Q,R,S)):G.policy.rS?bh(G,3,"predict"):(X+=Math.max(Math.ceil(-Z.N/5E3),1),Z=Math.floor(Q-Z.N/1E3),G.policy.W?G.C=Z:G.V=X,G.Ni("sdai",{onpred:Q,estsq:X,estmt:Z.toFixed(3)}),vQ(G.loader,Z,Z, X),G.j=Date.now(),bh(G,3,"predict"),S.le(R.AS));else if(G.W===1){var w;((w=G.Y)==null?0:w.D7(Q))?(vQ(G.loader,Q,Q,X),bh(G,4,"sk2head")):bh(G,5,"nogab")}else Z.event==="predictStart"?G.policy.W&&G.C>0?(Q=Math.floor(Q-Z.N/1E3),G.C!==Q&&G.Ni("sdai",{updateSt:Q,old:G.C}),G.C=Q):G.V>0&&(Q=X+Math.max(Math.ceil(-Z.N/5E3),1),G.V!==Q&&(G.Ni("sdai",{updateSt:Q,old:G.V}),G.V=Q)):G.policy.rS&&G.W===3&&LZi(G,X,Q,R,S)}else G.Ni("sdai",{nulldec:1,sq:X,mt:Q.toFixed(3),evt:(R==null?void 0:(Z=R.AS)==null?void 0:Z.event)|| "none"})}; YpC=function(G,X,Q){if(G.policy.uy&&G.policy.W)return!(G.W===1||G.W===2||!G.policy.rS&&G.W===3&&Q>=G.V);if(G.W===1||G.W===2)return!1;if(G.W!==0&&X===G.audioTrack){if(G.policy.W)return ku7(G.videoTrack,Q)||ku7(G.videoTrack,Q+1);G=JH(G.videoTrack);if(Q>(G?G.oU:-1))return!1}return!0}; ih=function(G,X,Q){return(Q<0||Q===G.S)&&!isNaN(G.J)?G.J:X}; ZhV=function(G,X){if(G.N){var Q=G.N.AS.Du-(X.startTime+G.T-G.N.AS.startSecs);Q<=0||(Q=new wK(G.N.AS.startSecs-(isNaN(G.T)?0:G.T),Q,G.N.AS.context,G.N.AS.identifier,"stop",G.N.AS.N+X.duration*1E3),G.Ni("cuepointdiscontinuity",{segNum:X.oU}),$8(G,Q,X.oU))}}; bh=function(G,X,Q){G.W!==X&&(G.Ni("sdai",{setsst:X,old:G.W,r:Q}),G.W=X)}; GO=function(G,X,Q,R){(R===void 0?0:R)?bh(G,1,"seek"):X>0&&Math.abs(X-Q)>=5&&G.W===4&&bh(G,5,"sk2t")}; jWw=function(G,X){this.Y=G;this.Ni=X;this.N="";this.W=new Map}; MKZ=function(G,X,Q,R,S){if(G.W.has(X.identifier)){var Z=G.W.get(X.identifier);R>Z.Wl&&(Z.startTimeSecs=X.startSecs,Z.Du=X.Du,Z.event==="predictStart"&&Z.j8===5&&X.event!=="predictStart"&&(Z.Ry=Date.now()),Z.event=X.event)}else Z={event:X.event,startTimeSecs:X.startSecs,Du:X.Du,hZ:[],Wl:R,j8:0},G.W.set(X.identifier,Z);S&&Z.j8===0&&(S.z7(X)?Z.j8=5:(Z.j8=2,Z.OX=""),Z.Ry=Date.now(),Z.Wl=R);R>Z.Wl&&(S==null||S.z7(X),Z.Wl=R);G.V&&Q>-1&&Q1E4?(G.j8=1,!1):!0:!1}; uNi=function(G){switch(G){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; Xf=function(G,X,Q){this.audio=G;this.video=X;this.reason=Q}; Qq=function(G,X,Q){this.N=G;this.reason=X;this.token=Q;this.videoId=void 0}; Rl=function(G,X,Q){g.I.call(this);this.policy=G;this.V=X;this.Ni=Q;this.Y=new Map;this.C=0;this.S=!1;this.N="";this.W=!1}; SR=function(G,X,Q){if(Q===void 0?0:Q)G.S=!0;++G.C;Q=6E4*Math.pow(2,G.C);Q=(0,g.TB)()+Q;G.Y.set(X.info.id,Q)}; Zu=function(G){for(var X=g.e(G.Y.entries()),Q=X.next();!Q.done;Q=X.next()){var R=g.e(Q.value);Q=R.next().value;R=R.next().value;R<(0,g.TB)()&&G.Y.delete(Q)}return G.Y}; Pli=function(G){return G.S&&Zu(G).size>0}; Hz=function(G,X){G.N!==X&&(G.N=X,G.W=!0)}; sWi=function(G,X){var Q;X&&(Q=g.Ka(G.V.N,function(S){return S.id===X})); if(!Q&&(Q=g.Ka(G.V.N,function(S){var Z;return!((Z=S.kP)==null||!Z.isDefault)}),X)){var R; G.Ni("iaf",{id:X,sid:(R=Q)==null?void 0:R.id})}return Q}; wd=function(G,X,Q,R,S,Z){var H=this;Z=Z===void 0?[]:Z;this.loader=G;this.Yc=X;this.policy=Q;this.vM=R;this.S=S;this.BM=Z;this.logger=new g.sp("dash/abr");this.N=jX;this.Y=this.J=null;this.j=-1;this.IU=!1;this.nextVideo=this.W=null;this.V=[];this.CO=new Set;this.QH={};this.cM=new F7(1);this.T=0;this.wb=this.yH=this.AT=!1;this.DC=0;this.Xm=!1;this.Mi=new Set;this.SA=!1;this.gh={ZK:function(){qW(H)}}; this.C=new Rl(this.policy,S,function(w,h){H.loader.Ni(w,h)})}; akX=function(G,X,Q){hz(G,X);X=sWi(G.C,Q);Q||X||(X=T0y(G));X=X||G.S.N[0];G.W=G.vM.N[X.id];qW(G);G.J=G.W;KZC(G);eqG(G);G.Y=G.nextVideo;G.J=G.W;return r1X(G)}; OhX=function(G,X){if(ElG(G,X))return null;if(X.reason==="m"&&X.isLocked())return G.logger.debug(function(){return"User sets constraint to: "+U4(X)}),hz(G,X),G.T=G.V.length-1,qW(G),Lo(G),G.yH=G.yH||G.Y!==G.nextVideo,G.Y=G.nextVideo,new Xf(G.W,G.Y,X.reason); X.reason==="r"&&(G.j=-1);hz(G,X);Lo(G);if(X.reason==="r"&&G.nextVideo===G.Y)return new Xf(G.W,G.nextVideo,X.reason);x9Z(G);return null}; zqC=function(G,X,Q){G.W=G.vM.N[X];G.J=G.W;return new Xf(G.J,G.Y,Q?"t":"m")}; c10=function(G,X){if(X.info.video){if(G.Y!==X)return G.Y=X,r1X(G)}else G.wb=G.J!==X,G.J=X;return null}; glS=function(G,X){if(X.N.info.video&&X.V){var Q=(X.W+X.Y)/X.duration,R=X.N.info.jA;Q&&R&&(G.cM.iF(1,Q/R),G.policy.Y&&Q/R>1.5&&G.loader.Ni("overshoot",{sq:X.oU,br:Q,max:R}))}}; k3=function(G,X,Q){SR(G.C,X,Q===void 0?!1:Q);G.j=-1;hz(G,G.N)}; U9w=function(G,X){return new Xf(G.J,G.Y,X||G.N.reason)}; x9Z=function(G){if(G.Y&&G.nextVideo&&Y3(G,G.Y.info)G.policy.V1,w=S<=G.policy.V1?fP(R):Wj(R);if(!Z||H||w)Q[S]=R}return Q}; hz=function(G,X){G.N=X;var Q=G.S.videoInfos;if(!G.N.isLocked()){var R=(0,g.TB)();Q=g.xo(Q,function(w){if(w.jA>this.policy.jA)return!1;var h=this.vM.N[w.id];return Zu(this.C).get(w.id)>R?!1:h.xP.Y>4||h.S>4?(this.logger.debug(function(){return"Remove "+Qp(w)+"; 4 load failures"}),!1):this.Mi.has(+w.itag)?!1:!0},G); Pli(G.C)&&(Q=g.xo(Q,function(w){return w.video.width<=854&&w.video.height<=480}))}Q.length||(Q=G.S.videoInfos); var S=Q;G.policy.T7&&(S=B0Z(G,S,X));S=g.xo(S,X.V,X);if(G.N.isLocked()&&G.C.N){var Z=g.Ka(Q,function(w){return w.id===G.C.N}); Z?S=[Z]:Hz(G.C,"")}G.policy.T7||(S=B0Z(G,S,X));S.length||(S=[Q[0]]);S.sort(function(w,h){return Y3(G,w)-Y3(G,h)}); X={};for(Q=1;QX.IS.video.width?(g.ad(S,Q),Q--):Y3(G,X.dU)*G.policy.T>Y3(G,X.IS)&&(g.ad(S,Q-1),Q--);var H=S[S.length-1];G.Xm=!!G.Y&&!!G.Y.info&&G.Y.info.ZC!==H.ZC;G.logger.debug(function(){return"Constraint: "+U4(G.N)+", "+S.length+" fmts selectable, max selectable fmt: "+Qp(H)}); G.V=S;G.CO.clear();X=!1;for(Q=0;Q=1080&&(X=!0);FZG(G.policy,H,G.vM.IW)}; B0Z=function(G,X,Q){var R=Q.reason==="m"||Q.reason==="s";G.policy.HQ&&jR&&g.Y_&&(!R||Q.N<1080)&&(X=X.filter(function(L){return L.video&&(!L.W||L.W.powerEfficient)})); if(X.length>0)if(mL()){var S=lkT(G,X);X=X.filter(function(L){return!!L&&!!L.video&&L.ZC===S[L.video.qualityOrdinal].ZC})}else{var Z,H,w=(Z=X[0])==null?void 0:(H=Z.video)==null?void 0:H.qualityOrdinal; if(w){Q=X.filter(function(L){return!!L&&!!L.video&&L.video.qualityOrdinal===w}); var h=lkT(G,Q)[w].ZC;X=X.filter(function(L){return!!L&&!!L.video&&L.ZC===h})}}return X}; ClG=function(G,X){for(var Q=0;Q+1R}; qW=function(G){if(!G.W||!G.policy.V&&!G.W.info.kP){var X=G.S.N;G.W&&(X=X.filter(function(R){return R.audio.N===G.W.info.audio.N}),X.length||(X=G.S.N)); G.W=G.vM.N[X[0].id];if(X.length>1&&!G.policy.wb){if(!G.policy.nu){var Q=g.Ka(X,function(R){return R.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); Q&&(G.W=G.vM.N[Q.id])}Q=!1;if(Q=G.policy.hS?!0:G.N.isLocked()?G.N.N<240:ClG(G,G.W))G.W=G.vM.N[g.uL(X).id]}}}; Lo=function(G){if(!G.nextVideo||!G.policy.V)if(G.N.isLocked())G.nextVideo=G.N.N<=360?G.vM.N[G.V[0].id]:G.vM.N[g.uL(G.V).id],G.logger.debug(function(){return"Select max fmt: "+Qp(G.nextVideo.info)}); else{for(var X=Math.min(G.T,G.V.length-1),Q=bU(G.Yc),R=Y3(G,G.W.info),S=Q/G.policy.yH-R;X>0&&!(Y3(G,G.V[X])<=S);X--);for(var Z=Q/G.policy.T-R;X=Z);X++);G.nextVideo=G.vM.N[G.V[X].id];G.T!==X&&G.logger.info(function(){return"Adapt to: "+Qp(G.nextVideo.info)+", bandwidth: "+Q.toFixed(0)+", bandwidth to downgrade: "+S.toFixed(0)+", bandwidth to upgrade: "+Z.toFixed(0)+", constraint: "+U4(G.N)}); G.T=X}}; KZC=function(G){var X=G.policy.yH,Q=bU(G.Yc),R=Q/X-Y3(G,G.W.info);X=g.eZ(G.V,function(S){return Y3(this,S)Z?S=0:R[H]>G.buffered[H]&&(H===Z-1?S=2:H===Z-2&&R[H+1]>G.buffered[H+1]&&(S=3))}G.N.add(X<<3|(Q&&4)|S);X=Math.ceil(G.track.HO()*1E3);G.N.add(X-G.C);G.C=X;if(S===1)for(G.N.add(Z),H=X=0;H=2&&G.N.add(R[Z- 1]-G.buffered[Z-1]);Q&&G.N.add(Q);G.buffered=R}; ol=function(G,X,Q){var R=this;this.policy=G;this.N=X;this.DC=Q;this.V=this.W=0;this.ZJ=null;this.AT=new Set;this.j=[];this.indexRange=this.initRange=null;this.T=new aT;this.yH=this.Yc=!1;this.gh={G6c:function(){return R.Y}, dQM:function(){return R.chunkSize}, mwb:function(){return R.J}, L9B:function(){return R.S}}; (X=WZU(this))?(this.chunkSize=X.csz,this.Y=Math.floor(X.clen/X.csz),this.J=X.ck,this.S=X.civ):(this.chunkSize=G.At,this.Y=0,this.J=g.jh(16),this.S=g.jh(16));this.C=new Uint8Array(this.chunkSize);this.J&&this.S&&(this.crypto=new nmS(this.J,this.S))}; WZU=function(G){if(G.policy.Sa&&G.policy.Nn)for(var X=g.e(G.policy.Sa),Q=X.next(),R={};!Q.done;R={XZ:void 0,NB:void 0},Q=X.next())if(Q=g.vO(Q.value),R.XZ=+Q.clen,R.NB=+Q.csz,R.XZ>0&&R.NB>0&&G.policy.V===Q.docid&&G.N.info.id===Q.fmtid&&G.N.info.lastModified===+Q.lmt)return G={},G.clen=R.XZ,G.csz=R.NB,G.ck=Q.ck,G.civ=Q.civ,G}; uQ=function(G){return!!G.ZJ&&G.ZJ.ou()}; fkC=function(G,X){if(!uQ(G)&&!G.U_()){if(!(G.Yc||(G.Yc=!0,G.Y>0))){var Q=Pz(G);Q=SX(G.policy.V,G.N.info,sm(G),Q,G.policy.KO);TO(G,Q)}if(X.info.type===1){if(G.ZJ){Ko(G,Error("Woffle: Expect INIT slices to always start us off"));return}G.initRange=vr(0,X.W.totalLength)}else if(X.info.type===2)G.ZJ&&G.ZJ.type===1||Ko(G,Error("Woffle: Index before init")),G.indexRange=vr(G.initRange.end+1,X.W.totalLength);else if(X.info.type===3){if(!G.ZJ){Ko(G,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(G.ZJ.type===3&&!QC(G.ZJ,X.info)&&(G.j=[],X.info.oU!==RW(G.ZJ)||X.info.W!==0))return;if(X.info.V){Q=g.e(G.j);for(var R=Q.next();!R.done;R=Q.next())pB7(G,R.value);G.j=[]}else{G.j.push(X);G.ZJ=X.info;return}}else{Ko(G,Error("Woffle: Unexpected slice type"));return}G.ZJ=X.info;pB7(G,X);y1S(G)}}; pB7=function(G,X){var Q=0,R=q2(X.W);if(G.V=R.length)return;if(Q<0)throw Error("Missing data");G.V=G.Y;G.W=0}for(S={};Q0){var H=R.getUint32(Q+28);Z+=H*16+4}var w=R.getUint32(Q+Z-4);try{var h=$9Z(X.subarray(Q+Z,Q+Z+w));if(h!==null){var L=h;break a}}catch(k){}}Q+=S}L=null;break a}catch(k){L=null;break a}L=void 0}if(L!=null)for(X=o7(iu(L,7,void 0,lN)),X==null||G.A1||(G.cryptoPeriodIndex=X),X=o7(iu(L,10,void 0,lN)),X!=null&&X>0&& !G.A1&&(G.N=X),L=HX(L,2,OTi,void 0===UqG?2:4),L=g.e(L),R=L.next();!R.done;R=L.next())X=G.Y,Q=X.push,R=Ct(R.value),R=g.Oo(R,4),Q.call(X,R)}; vlX=function(G){return isNaN(G.cryptoPeriodIndex)?g.Oo(G.initData):""+G.cryptoPeriodIndex}; al=function(G,X,Q){var R=Q===void 0?{}:Q;Q=R.videoDuration===void 0?0:R.videoDuration;var S=R.HA===void 0?void 0:R.HA;R=R.OU===void 0?!1:R.OU;this.videoId=G;this.status=X;this.videoDuration=Q;this.HA=S;this.OU=R}; J1l=function(G,X,Q,R,S){this.videoId=G;this.Jp=X;this.W=Q;this.bytesDownloaded=R;this.N=S}; Em=function(G){this.N=G;this.offset=0}; x3=function(G){if(G.offset>=G.N.totalLength)throw Error();return hK(G.N,G.offset++)}; ih0=function(G,X){X=X===void 0?!1:X;var Q=x3(G);if(Q===1){X=-1;for(Q=0;Q<7;Q++){var R=x3(G);X===-1&&R!==255&&(X=0);X>-1&&(X=X*256+R)}return X}R=128;for(var S=0;S<6&&R>Q;S++)Q=Q*256+x3(G),R*=128;return X?Q:Q-R}; Gdl=function(G){try{var X=ih0(G,!0),Q=ih0(G,!1);return{id:X,size:Q}}catch(R){return{id:-1,size:-1}}}; XmV=function(G){for(var X=new Em(G),Q=-1,R=0,S=0;!R||!S;){var Z=Gdl(X),H=Z.id;Z=Z.size;if(H<0)return;if(H===176){if(Z!==2)return;R=X.VX()}else if(H===186){if(Z!==2)return;S=X.VX()}H===374648427?Q=X.VX()+Z:H!==408125543&&H!==174&&H!==224&&X.skip(Z)}X=w2(G,0,Q);Q=new DataView(X.buffer);Q.setUint16(R,3840);Q.setUint16(S,2160);R=new Qk([X]);R8(R,G);return R}; QDw=function(G,X,Q){var R=this;this.loader=G;this.policy=X;this.C=Q;this.logger=new g.sp("dash");this.W=[];this.N=null;this.Yc=-1;this.j=0;this.Mi=NaN;this.AT=0;this.Y=NaN;this.T=this.IU=0;this.Xm=-1;this.QH=this.V=this.S=this.DC=null;this.cM=this.wb=NaN;this.J=this.yH=this.CO=this.BM=null;this.KO=!1;this.SA=this.timestampOffset=0;this.gh={rW:function(){return R.W}}; if(this.policy.V){var S=this.C,Z=this.policy.V;this.policy.KO&&G.Ni("atv",{ap:this.policy.KO});this.J=new ol(this.policy,S,function(H,w,h){Om(G,new al(R.policy.V,2,{HA:new J1l(Z,H,S.info,w,h)}))}); this.J.T.promise.then(function(H){R.J=null;H===1?Om(G,new al(R.policy.V,H)):R.loader.Ni("offlineerr",{status:H.toString()})},function(H){var w=(H.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); H instanceof eR&&!H.N?(R.logger.info(function(){return"Assertion failed: "+w}),R.loader.Ni("offlinenwerr",{em:w}),zO(R),Om(G,new al(R.policy.V,4))):(R.logger.info(function(){return"Failed to write to disk: "+w}),R.loader.Ni("dldbwerr",{em:w}),zO(R),Om(G,new al(R.policy.V,4,{OU:!0})))})}}; RlG=function(G){return G.W.length?G.W[0]:null}; SYC=function(G,X){return G.W.some(function(Q){return Q.info.oU===X})}; hlG=function(G,X,Q,R){R=R===void 0?0:R;if(G.V){var S=G.V.W+G.V.Y;if(Q.info.W>0)if(Q.info.oU===G.V.oU&&Q.info.W=0&&G.V.oU>=0&&!QC(G.V,Q.info))throw new g.Ic("improper_continuation",G.V.Hn(),Q.info.Hn());jEV(G.V,Q.info)||cz(G,"d")}else if(Q.info.W>0)throw new g.Ic("continuation_of_null",Q.info.Hn());G.V=Q.info;G.C=Q.info.N;if(Q.info.W===0){if(G.N)if(!G.loader.isOffline()||G.policy.m7)G.loader.Ni("slice_not_fully_processed", {buffered:G.N.info.Hn(),push:Q.info.Hn()});else throw new g.Ic("slice_not_fully_processed",G.N.info.Hn(),Q.info.Hn());gd(G);G.IU=R}else{if(G.IU&&R&&G.IU!==R)throw G=new g.Ic("lmt_mismatch",Q.info.oU,G.IU,R),G.level="WARNING",G;!Q.info.N.R9()&&G.S&&(R=Q.info,S=G.S.qW,R.J="updateWithEmsg",R.oU=S)}if(G.N){R=g.r0(G.N,Q);if(!R)throw new g.Ic("failed_to_merge",G.N.info.Hn(),Q.info.Hn());G.N=R}else G.N=Q;a:{Q=g.AR(G.N.info.N.info);if(G.N.info.type!==3){if(!G.N.info.V)break a;G.N.info.type===6?ZjS(G,X,G.N): HjG(G,G.N);G.N=null}for(;G.N;){R=G.N.W.totalLength;if(G.Yc<=0&&G.j===0){var Z=G.N.W,H=-1;S=-1;if(Q){for(var w=0;w+80))break;if(Y!==408125543)if(Y===524531317)w=!0,k>=0&&(S=Z.VX()+k,h=!0);else{if(w&&(Y===160||Y===163)&&(H<0&&(H=L),h))break;Y===163&&(H=Math.max(0,H),S=Z.VX()+k);if(Y===160){H<0&&(S=H=Z.VX()+ k);break}Z.skip(k)}}H<0&&(S=-1)}if(H<0)break;G.Yc=H;G.j=S-H}if(G.Yc>R)break;G.Yc?(R=qYw(G,G.Yc),R.C&&wmX(G,R),ZjS(G,X,R),Um(G,R),G.Yc=0):G.j&&(R=qYw(G,G.j<0?Infinity:G.j),G.j-=R.W.totalLength,Um(G,R))}}G.N&&G.N.info.V&&(Um(G,G.N),G.N=null)}; HjG=function(G,X){!X.info.N.R9()&&X.info.W===0&&(g.AR(X.info.N.info)||X.info.N.info.A1())&&$rU(X);if(X.info.type===1)try{wmX(G,X),LAl(G,X)}catch(S){g.aU(S);var Q=SK(X.info);Q.hms="1";G.loader.handleError("fmt.unparseable",Q||{},1)}Q=X.info.N;Q.lS(X);G.J&&fkC(G.J,X);if(Q.pL()&&G.policy.N)a:{G=G.loader.vM;X=X.info.clipId;Q=g.bn(Q.info,G.IW);if(X){var R=AQ({itag:Q.itag,lmt:G.IW?0:Q.lmt||0,xtags:Q.xtags});if(G.cM[R])break a;G.cM[R]=X}G.Xm.push(Q)}}; B$7=function(G,X,Q){if(G.W.length!==0&&(Q||G.W.some(function(Z){return Z.info.C=Bz(H)+w):X=G.getDuration()>=H.getDuration(),X=!X;X&&jDT(Q)&&(X=G.DC,lQ?(w=ARU(Q),H=1/w,w=Bz(G,w),X=Bz(X)+H-w):X=X.getDuration()- G.getDuration(),X=1+X/Q.info.duration,fXT(g.eK(Q),X))}else{H=!1;G.S||($rU(Q),Q.N&&(G.S=Q.N,H=!0,S=Q.info,Z=Q.N.qW,S.J="updateWithEmsg",S.oU=Z,S=Q.N,S.ou&&(Z=G.C.index,Z.W=!S.ou,Z.Y="emsg"),S=Q.info.N.info,Z=g.eK(Q),g.AR(S)?TM(Z,1701671783):S.A1()&&zM([408125543],307544935,Z)));a:if((S=xl(Q,G.policy.f7))&&nEC(Q))w=MCi(G,Q),G.T+=w,S-=w,G.AT+=S,G.Y=G.policy.Lu?G.Y+S:NaN;else{if(G.policy.a_){if(Z=h=G.loader.V7(g.aW(Q),1),G.Y>=0&&Q.info.type!==6){if(G.policy.Lu&&isNaN(G.wb)){g.EL(new g.Ic("Missing duration while processing previous chunk", Q.info.Hn()));G.loader.isOffline()&&!G.policy.m7||mKU(G,Q,Z);cz(G,"m");break a}R=h-G.Y;var L=R-G.T,k=Q.info.oU,Y=G.QH?G.QH.oU:-1,M=G.cM,m=G.wb,u=G.policy.AF&&R>G.policy.AF,r=Math.abs(L)>10,x=Math.abs(G.Y-Z)<1E-7;if(Math.abs(L)>1E-4){G.SA+=1;var c=(w=G.S)==null?void 0:IXG(w);w={audio:""+ +G.vz(),sq:k.toFixed(),sliceStart:h,lastSq:Y.toFixed(),lastSliceStart:M,lastSliceDuration:m,totalDrift:(R*1E3).toFixed(),segDrift:(L*1E3).toFixed(),skipRewrite:""+ +(u||r)};if(c==null?0:c.length)w.adCpn=c[0];G.loader.handleError("qoe.avsync", w);G.Xm=k}u||r||x||(Z=G.Y);w=MCi(G,Q,h);S-=w;G.T=R+w}}else Z=isNaN(G.Y)?Q.info.startTime:G.Y;mKU(G,Q,Z)&&(G.AT+=S,G.Y=Z+S,G.policy.tF&&G.SA>=G.policy.tF&&(G.SA=0,G.loader.mT({resetForRewrites:"count"})))}G.QH=Q.info;G.wb=Ep(Q);Q.Y>=0&&(G.cM=Q.Y);if(H&&G.S){H=oMS(G,!0);Zk(Q.info,H);G.N&&Zk(G.N.info,H);X=g.e(X);for(w=X.next();!w.done;w=X.next())w=w.value,S=void 0,G.policy.C&&w.oU!==((S=G.S)==null?void 0:S.qW)||Zk(w,H);(Q.info.V||G.N&&G.N.info.V)&&Q.info.type!==6||(G.yH=H,G.policy.W?(X=u7V(G.S),G.loader.Aq(G.C, H,X)):(X=G.loader,X.vM.isManifestless&&P$0(X,H,null,!!G.C.info.video)),G.policy.gL||sDG(G))}}LAl(G,Q);G.timestampOffset&&Drl(Q,G.timestampOffset)}; Um=function(G,X){if(X.info.V){G.BM=X.info;if(G.S){var Q=G.S,R=oMS(G,!1);Q=u7V(Q);G.loader.Aq(G.C,R,Q);G.yH||G.policy.gL||sDG(G);G.yH=null}gd(G)}G.J&&fkC(G.J,X);if(R=G.pD())if(R=g.r0(R,X,G.policy.aA,G.policy.eI)){G.W.pop();G.W.push(R);return}G.W.push(X)}; u7V=function(G){if(G.k0()){var X=G.data["Stitched-Video-Id"]?G.data["Stitched-Video-Id"].split(",").slice(0,-1):[],Q=IXG(G),R=[];if(G.data["Stitched-Video-Duration-Us"])for(var S=g.e(G.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),Z=S.next();!Z.done;Z=S.next())R.push((Number(Z.value)||0)/1E6);S=[];if(G.data["Stitched-Video-Start-Frame-Index"]){Z=g.e(G.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var H=Z.next();!H.done;H=Z.next())S.push(Number(H.value)||0)}S=[]; if(G.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(Z=g.e(G.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),H=Z.next();!H.done;H=Z.next())S.push((Number(H.value)||0)/1E6);G=new nlG(X,Q,R,S,g.dUX(G),g.WMl(G))}else G=null;return G}; gd=function(G){G.N=null;G.Yc=-1;G.j=0;G.S=null;G.Mi=NaN;G.AT=0;G.yH=null}; cz=function(G,X){X={rst4disc:X,cd:G.T.toFixed(3),sq:G.QH?G.QH.oU:-1};G.Y=NaN;G.T=0;G.Xm=-1;G.QH=null;G.cM=NaN;G.wb=NaN;G.CO=null;G.loader.Ni("mdstm",X)}; LAl=function(G,X){if(G.isDrm()){if(X.info.N.info.A1()){var Q=new e4(g.eK(X));if(aj(Q,[408125543,374648427,174,28032,25152,20533,18402])){var R=OP(Q,!0);Q=R!==16?null:lo(Q,R)}else Q=null;R="webm"}else X.info.j=N0w(g.eK(X)),Q=A1G(X.info.j),R="cenc";Q&&Q.length&&(Q=new rd(Q,R),G.policy.UX&&g.AR(X.info.N.info)&&(R=b9T(g.eK(X)))&&(Q.W=R),Q.A1=X.info.N.info.A1(),X.N&&X.N.cryptoPeriodIndex&&(Q.cryptoPeriodIndex=X.N.cryptoPeriodIndex),X.N&&X.N.W&&(Q.N=X.N.W),G.loader.Jb(Q))}}; sDG=function(G){var X=G.S,Q=tQG(X);Q&&(Q.startSecs+=G.Mi,G.loader.kG(G.C,Q,X.qW,X.k0()))}; oMS=function(G,X){var Q,R=G.S;if(Q=tQG(R))Q.startSecs+=G.Mi;return new JX(R.qW,G.Mi,X?R.w$:G.AT,R.ingestionTime,"sq/"+R.qW,void 0,void 0,X,Q)}; mKU=function(G,X,Q){if(!fPU(X,Q))return X=SK(X.info),X.smst="1",G.loader.handleError("fmt.unparseable",X||{},1),!1;isNaN(G.Mi)&&(G.Mi=Q);return!0}; MCi=function(G,X,Q){var R=0;if(X.info.N.info.A1()&&!nEC(X))return 0;if(G.DC&&!G.vz()){var S=0;Q&&g.AR(X.info.N.info)?S=Q-G.Y:X.info.N.info.A1()&&(S=G.T);var Z=X.info.oU;Q=xl(X,G.policy.f7);var H=G.DC;var w=H.Xm;H=H.T;var h=Math.abs(H-S)>.02;if((Z===w||Z>w&&Z>G.Xm)&&h){R=Math.max(.95,Math.min(1.05,(Q-(H-S))/Q));if(g.AR(X.info.N.info))fXT(g.eK(X),R);else if(X.info.N.info.A1()&&(Z=S-H,!g.AR(X.info.N.info)&&(X.info.N.info.A1(),R=new e4(g.eK(X)),w=X.C?R:new e4(new DataView(X.info.N.N.buffer)),xl(X,!0)))){var L= Z*1E3,k=FF(w);w=R.pos;R.pos=0;if(R.N.getUint8(R.pos)===160||Cf(R))if(xX(R,160))if(OP(R,!0),xX(R,155)){if(Z=R.pos,h=OP(R,!0),R.pos=Z,L=L*1E9/k,k=cr(R),L=k+Math.max(-k*.7,Math.min(k,L)),L=Math.sign(L)*Math.floor(Math.abs(L)),!(Math.ceil(Math.log(L)/Math.log(2)/8)>h)){R.pos=Z+1;for(Z=h-1;Z>=0;Z--)R.N.setUint8(R.pos+Z,L&255),L>>>=8;R.pos=w}}else R.pos=w;else R.pos=w;else R.pos=w}R=xl(X,G.policy.f7);R=Q-R}R&&X.info.N.info.A1()&&G.loader.Ni("webmDurationAdjustment",{durationAdjustment:R,videoDrift:S+R, audioDrift:H})}return R}; jDT=function(G){return G.info.N.R9()&&G.info.oU===G.info.N.index.i9()}; Bz=function(G,X){X=(X=X===void 0?0:X)?Math.round(G.timestampOffset*X)/X:G.timestampOffset;G.C.V&&X&&(X+=G.C.V.N);return X+G.getDuration()}; Tne=function(G,X){X<0||(G.W.forEach(function(Q){Drl(Q,X)}),G.timestampOffset=X)}; GN=function(G,X,Q,R,S){uh.call(this,Q,S);var Z=this;this.policy=G;this.formatId=X;this.Ko=R;this.lastError=null;this.onProgress=function(){Z.U_()||(Z.Ko.CY.has(Z.formatId)?(Z.isComplete()||Z.N.start(),fB(Z.Ko,Z.formatId)&&Z.Zl(2),Z.Ko.Bz(Z.formatId)&&(V4e(Z.Ko,Z.formatId)?Z.qx(4):(Z.lastError="net.closed",Z.qx(5)))):(Z.lastError="player.exception",Z.qx(5)))}; this.N=new g.fU(function(){Z.isComplete()||(Z.lastError="net.timeout",Z.qx(5))},1E3); this.N.start();FuU(this.Ko,this.formatId,this.onProgress);g.sy(this.onProgress)}; Ff=function(G,X,Q,R){g.I.call(this);var S=this;this.loader=G;this.policy=X;this.N=Q;this.timing=R;this.logger=new g.sp("dash");this.Y=[];this.DC=[];this.W=this.l6=null;this.CO=!1;this.IU=this.SA=0;this.S=-1;this.Yc=!1;this.Mi=-1;this.QH=null;this.yH=NaN;this.AT=[];this.gh={Nv:function(){return S.V}, qpU:function(){return S.Y}, bDU:function(){return S.T}}; this.V=new QDw(G,X,Q);this.policy.N&&(this.T=new Jh(this.V,this.loader.getManifest(),this.policy,function(Z){S.policy.Za&&S.Ni("buftl",Z)})); this.policy.F7&&(this.j=new MW(this));this.jA=Q.info.jA;this.J=this.policy.AT?!1:Q.Dl();this.isManifestless=Q.Dl();this.C=this.J;g.d(this,this.QH)}; Co=function(G,X,Q){Q=Q===void 0?!1:Q;X&&lQ&&Tne(G.V,X.DF());if(!Q){var R;(R=G.T)==null||cX0(R)}G.l6=X;(X=G.T)!=null&&(X.l6=G.l6)}; tz=function(G){var X=G.l6&&G.l6.H0();if(G.policy.Zg){if((G=G.T)==null)G=void 0;else{var Q;G=(Q=G.Y)==null?void 0:Q.info}return G||null}return X}; KAe=function(G){for(var X={},Q=0;Q4&&G.DC.shift()}; elZ=function(G,X){if(X.Ss()){var Q=X.Gx();Q=g.e(Q);for(var R=Q.next();!R.done;R=Q.next())R=R.value,G.policy.Y&&X instanceof GN&&G.Ni("omblss",{s:R.info.Hn()}),Il(G,X.info.LO,R,X.Mv())}}; Il=function(G,X,Q,R){R=R===void 0?0:R;isNaN(G.yH)||(G.Ni("aswm",{sq:X[0].oU,id:X[0].N.info.itag,xtag:X[0].N.info.N,ep:Date.now()-G.yH}),G.yH=NaN);switch(Q.info.type){case 1:case 2:rnC(G,Q);break;case 4:var S=Q.info.N,Z=S.BN(Q),H;((H=G.W)==null?0:H.type===4)&&TPy(Q.info,G.W)&&(G.W=S.UZ(G.W).pop());Q=g.e(Z);for(S=Q.next();!S.done;S=Q.next())Il(G,X,S.value,R);break;case 3:Q.info.N.info.video?(S=G.timing,S.Mi||(S.Mi=(0,g.TB)(),g.GZ("fvb_r",S.Mi,S.N))):(S=G.timing,S.S||(S.S=(0,g.TB)(),g.GZ("fab_r",S.S, S.N)));hlG(G.V,X,Q,R);G.policy.N&&aCZ(G);break;case 6:hlG(G.V,X,Q,R),G.W=Q.info}}; rnC=function(G,X){if(X.info.type===1)if(X.info.N.info.video){var Q=G.timing;Q.IU||(Q.IU=(0,g.TB)(),g.GZ("vis_r",Q.IU,Q.N))}else Q=G.timing,Q.T||(Q.T=(0,g.TB)(),g.GZ("ais_r",Q.T,Q.N));HjG(G.V,X);G=G.loader;G.videoTrack.N.pL()&&G.audioTrack.N.pL()&&G.policy.N&&!G.vM.IW&&(X=G.audioTrack.getDuration(),Q=G.videoTrack.getDuration(),Math.abs(X-Q)>1&&G.Ni("trBug",{af:""+g.bn(G.audioTrack.N.info,!1),vf:""+g.bn(G.videoTrack.N.info,!1),a:""+X,v:""+Q}))}; hH=function(G){return RlG(G.V)}; aCZ=function(G){G.Y.length?G.W=g.uL(g.uL(G.Y).info.LO):G.V.W.length?G.W=G.V.pD().info:G.W=tz(G)}; dd=function(G,X){var Q={u9:[],Q5:[]},R;if((G=G.T)==null)G=void 0;else{zDl(G,G.u9,"og");Em7(G,X);zDl(G,G.u9,"trim");var S=ORy(G);X=S.u9;S=S.Uj;for(var Z=[],H=0;H0){var M=Zt(Y,h);M>=0&&(k=(Y.end(M)-h+.1)*1E3)}Z.push({formatId:g.bn(w.info.N.info,G.vM.IW), OG:w.info.OG,sequenceNumber:w.info.oU+G.V,bV:L,sC:w.info.Y,D$:k})}G={u9:X,Q5:Z}}return(R=G)!=null?R:Q}; RF=function(G,X,Q){Q=Q===void 0?!1:Q;if(G.l6){var R=G.l6.Zu(),S=qs(R,X),Z=NaN,H=tz(G);H&&(Z=qs(R,H.N.index.getStartTime(H.oU)));if(S===Z&&G.W&&G.W.Y&&EMU(Wz(G),0))return X}G=po(G,X,Q);return G>=0?G:NaN}; Zh=function(G,X,Q){G.N.pL();var R=po(G,X);if(R>=0)return R;var S;(S=G.T)==null||xgl(S,X,Q);R=Math;S=R.min;var Z=G.V;if(Z.J)if(Z=Z.J,Z.ZJ&&Z.ZJ.type===3)Z=Z.ZJ.startTime;else if(Z.Y>0){var H=Z.N.index;H=g.fa(H.offsets.subarray(0,H.count),Z.Y*Z.chunkSize);Z=Z.N.index.getStartTime(H>=0?H:Math.max(0,-H-2))}else Z=0;else Z=Infinity;X=S.call(R,X,Z);G.W=G.policy.AT?null:G.N.Q3(X).LO[0];yq(G)&&(G.policy.St&&(Q==null?void 0:Q.seekSource)===60||G.l6&&G.l6.abort(),G.policy.r8&&(Q=G.T)!=null&&(Q.Y=void 0));G.IU= 0;return G.W?G.W.startTime:X}; UgT=function(G){G.J=!0;G.C=!0;G.S=-1;Zh(G,Infinity)}; fo=function(G){for(var X=0,Q=g.e(G.Y),R=Q.next();!R.done;R=Q.next())X+=eZV(R.value.info);return X+=kdy(G.V)}; NW=function(G,X){X=X===void 0?!1:X;var Q=G.loader.getCurrentTime(),R=G.V.pD(),S=(R==null?void 0:R.info.S)||0;if((R==null?0:R.info.N.Dl())&&!R.info.V)if(G.policy.ER)S=R.info.C;else if(G.policy.Fo){var Z=R.info;S=Z.range?Z.S:Math.min(Z.startTime+Math.min(Z.duration*Z.W/Z.N.info.jA,Z.duration)+(Z.range?Z.T:Math.min(Z.duration,Z.duration*Z.Y/Z.N.info.jA)),Z.startTime+Z.duration)}if(!G.l6)return G.policy.N&&X&&!isNaN(Q)&&R?S-Q:0;if((Z=tz(G))&&Du(Z))return Z.S;var H=G.l6.Zu(!0);if(X&&R)return Z=0,G.policy.N&& (Z=LF(H,S+.02)),Z+S-Q;X=LF(H,Q);G.policy.mS&&Z&&(R=Zt(H,Q),H=Zt(H,Z.C-.02),R===H&&(Q=Z.S-Q,G.policy.Y&&Q>X+.02&&G.Ni("abh",{bh:X,bhtls:Q}),X=Math.max(X,Q)));return X}; xKG=function(G){var X=tz(G);return X?X.S-G.loader.getCurrentTime():0}; OjG=function(G,X){if(G.Y.length){if(G.Y[0].info.LO[0].startTime<=X)return;Q8(G)}for(var Q=G.V,R=Q.W.length-1;R>=0;R--)Q.W[R].info.startTime>X&&Q.W.pop();aCZ(G);G.W&&X=0;H--){var w=S.W[H];w.info.oU>=X&&(S.W.pop(),S.Y-=xl(w,S.policy.f7),Z=w.info)}Z&&(S.V=S.W.length>0?S.W[S.W.length-1].info:S.CO,S.W.length!==0||S.V||cz(S,"r"));S.loader.Ni("mdstm",{rollbk:1,itag:Z?Z.N.info.itag:"",popped:Z?Z.oU:-1,sq:X,lastslc:S.V?S.V.oU:-1,lastfraget:S.Y.toFixed(3)});if(G.policy.N)return G.W=null,!0;R>Q?Zh(G,R):G.W=G.N.TI(X-1,!1).LO[0]}catch(h){return X=Mr(h),X.details.reason="rollbkerr", G.loader.handleError(X.errorCode,X.details,X.severity),!1}return!0}; no=function(G,X){var Q;for(Q=0;Q0?Q||X.oU>=G.Mi:Q}; $3=function(G){var X;return yq(G)||Du((X=G.V.pD())==null?void 0:X.info)}; Wz=function(G){var X=[],Q=tz(G);Q&&X.push(Q);X=g.Uv(X,G.V.e3());Q=g.e(G.Y);for(var R=Q.next();!R.done;R=Q.next()){R=R.value;for(var S=g.e(R.info.LO),Z=S.next(),H={};!Z.done;H={cA:void 0},Z=S.next())H.cA=Z.value,R.ey&&(X=g.xo(X,function(w){return function(h){return!TPy(h,w.cA)}}(H))),(XN(H.cA)||H.cA.type===4)&&X.push(H.cA)}G.W&&!kgi(G.W,g.uL(X),G.W.N.R9())&&X.push(G.W); return X}; EMU=function(G,X){if(!G.length)return!1;for(X+=1;X=X){X=Z;break a}}X=S}return X<0?NaN:EMU(G,Q?X:0)?G[X].startTime:NaN}; bQ=function(G){return!(!G.W||G.W.N===G.N)}; cnT=function(G){return bQ(G)&&G.N.pL()&&G.W.N.info.jAX&&G.S1080&&!G.oP&&(G.SA=36700160,G.bB=5242880,G.CO=Math.max(4194304,G.CO),G.oP=!0);X.video.qualityOrdinal>2160&&!G.n6&&(G.SA=104857600,G.jA=13107200,G.n6=!0);g.i2(G.hT.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?X.isEncrypted()&&g.V9()&&g.Ci("samsung")&&(g.Ci("kant")||g.Ci("muse"))&&(G.jA=g.i2(G.hT.experiments,"html5_samsung_kant_limit_max_bitrate")):X.isEncrypted()&&g.V9()&&g.Ci("kant")&&(G.jA=1310720);G.B1!==0&&X.isEncrypted()&& (G.jA=G.B1);G.fp!==0&&X.isEncrypted()&&Q&&(G.jA=G.fp);X.jA&&(G.VI=Math.max(G.Ti,Math.min(G.CO,5*X.jA)))}; lh=function(G){return G.N&&G.iX}; iQ=function(G){return G.N&&G.kU&&G.playbackStartPolicy}; DKZ=function(G,X,Q,R){G.kU&&(G.playbackStartPolicy=X,G.lO=Q,G.vT=R)}; Jz=function(G,X,Q){Q=Q===void 0?0:Q;return g.i2(G.hT.experiments,X)||Q}; NnG=function(G){var X=G===void 0?{}:G;G=X.N1;var Q=X.Na;var R=X.Rs;var S=X.i9;X=X.aG;this.N1=G;this.Na=Q;this.Rs=R;this.i9=S;this.aG=X}; f1w=function(G,X){if(X<0)return!0;var Q=G.i9();return X0)return 2;if(X<0)return 1;Q=G.i9();return X(0,g.TB)()?0:1}; X4=function(G,X,Q,R,S,Z,H,w,h,L,k,Y,M,m){m=m===void 0?null:m;g.I.call(this);var u=this;this.loader=G;this.policy=X;this.videoTrack=Q;this.audioTrack=R;this.V=S;this.N=Z;this.timing=H;this.C=w;this.schedule=h;this.vM=L;this.Y=k;this.AT=Y;this.Jk=M;this.R$=m;this.yH=!1;this.RE="";this.IX=null;this.WF=NaN;this.Yc=!1;this.W=null;this.QJ=this.j=NaN;this.yC=this.S=0;this.logger=new g.sp("dash");this.gh={Vb:function(r,x){return u.Vb(r,x)}}; this.policy.RP>0&&(this.RE=g.jh(this.policy.RP));this.policy.Nu&&(this.T=new Gz(this.loader,this.policy,this.schedule),g.d(this,this.T))}; ij0=function(G,X,Q){var R=X.W?X.W.N.xP:X.N.xP;var S=G.V,Z;(Z=!G.policy.PT)||(Z=AX(R.N)===AX(R.W));Z?R=!1:(S=Wr(S,AX(R.W)),Z=6E4*Math.pow(S.V,1.6),(0,g.TB)()=S.V?(S.Ni("sdai",{haltrq:Z+1,est:S.V}),R=!1):R=S.W!==2;if(!R||!N7(X.W?X.W.N.xP:X.N.xP,G.policy,G.V,G.loader.SO())||G.loader.isSuspended&&(!NK(G.schedule)||G.loader.PH))return!1;if(G.policy.V&&RA>=5)return g.DA(G.loader.iQ),!1;if(G.vM.isManifestless){if(X.Y.length>0&&X.W&&X.W.oU===-1||X.Y.length>=G.policy.dX||!G.policy.Qm&&X.Y.length>0&&!G.policy.J.Na)return!1;if(X.J)return!G.vM.isLive|| !isNaN(G.WF)}if(FAC(X))return G.logger.debug("Pending request with server-selectable format found"),!1;if(!X.W){if(!X.N.pL())return!1;Zh(X,G.loader.getCurrentTime())}if(hH(X)&&(X.pD()!==hH(X)||G.loader.isSuspended))return!1;S=(R=G.policy.oA)&&!X.Y.length&&NW(X,!0)=G.policy.Nz)return!1;R=X.W;if(!R)return!0;R.type===4&&R.N.pL()&&(X.W=g.uL(R.N.UZ(R)),R= X.W);if(!R.ou()&&!R.N.BX(R))return!1;Z=G.vM.It||G.vM.V;if(G.vM.isManifestless&&Z){Z=X.N.index.i9();var H=Q.N.index.i9();Z=Math.min(Z,H);if(X.N.index.RR()>0&&Z>0&&R.oU>=Z)return X.Mi=Z,Q.Mi=Z,!1}if(R.N.info.audio&&R.type===4||R.ou())return!1;Z=!X.C&&!Q.C;if(S=!S)S=R.S,S=!!(Q.W&&!Du(Q.W)&&Q.W.SG$Z(G,X)?(G$Z(G,X),!1):(G=X.l6)&&G.isLocked()?!1:!0}; G$Z=function(G,X){var Q=G.N;Q=Q.N?Q.N.AS:null;if(G.policy.DC&&Q)return Q.startSecs+Q.Du+15;X=S3(G.loader,X);G.policy.Ps>0&&(Q=((0,g.TB)()-G.loader.Pm)/1E3,X=Math.min(X,G.policy.Ps+G.policy.WK*Q));X=G.loader.getCurrentTime()+X;return G.policy.UL&&(Q=XMG(G.loader)+G.policy.UL,Q=0||X.xP.MO("defrag")==="1"||X.xP.MO("otf")==="1"){X=null;break a}S=vr(0,4096)}S=new HB([new io(5,R.N,S,"createProbeRequestInfo"+R.J,R.oU)],X.W);S.TZ=Q;S.N=X.N;X=S}X&&Jnw(G,X)}}; Jnw=function(G,X){G.loader.MY(X);var Q=eZV(X),R=G.loader.pR();Q={VN:G.schedule,SU:Q,b4:s_T(G.C,Q),xf:Gu(X.LO[0]),S3:nR(X.xP.N),cH:G.policy.Y,S4:function(H,w){G.loader.Uv(H,w)}}; if(G.schedule.W.S){var S,Z;Q.oX=(((S=G.videoTrack.N)==null?void 0:S.info.jA)||0)+(((Z=G.audioTrack.N)==null?void 0:Z.info.jA)||0)}G.IX&&(Q.oU=X.LO[0].oU,Q.WF=X.WF,Q.IX=G.IX);R={TV:rRG(X,G.loader.getCurrentTime()),yT:G.policy.qd&&w0(X)&&X.LO[0].N.info.video?VKX(G.Y):void 0,xj:G.policy.DC,poToken:G.loader.lA(),Oh:G.loader.Bc(),RE:G.RE,QJ:isNaN(G.QJ)?null:G.QJ,R$:G.R$,Jk:G.Jk,yC:G.yC,HW:R};return new Xs(G.policy,X,Q,G.V,function(H,w){try{a:{var h=H.info.LO[0].N,L=h.info.video?G.videoTrack:G.audioTrack; if(!(H.state>=2)||H.isComplete()||H.Id()||!(!G.loader.kc||G.loader.isSuspended||NW(L)>3)){var k=$KT(H,G.policy,G.V);k===1&&(G.Yc=!0);RLV(G,H,k);if(H.isComplete()||H.U_()&&w<3){if(G.policy.Y){var Y=H.timing.u5();Y.rst=H.state;Y.strm=H.xhr.Oz();Y.cncl=H.xhr&&H.pY.C?1:0;G.loader.Ni("rqs",Y)}H.jV&&G.loader.Ni("sbwe3",{},!0)}if(!G.U_()&&H.state>=2){RqT(G.timing,H,h);var M=G.loader;G.QJ&&H.uV&&M&&(G.QJ=NaN,G.loader.Wt(H.uV),G.loader.P8(),G.loader.Ni("cabrUtcSeek",{mediaTimeSeconds:H.uV}));H.vW&&G.QJ&&H.vW&& !H.vW.action&&(G.loader.fm(G.QJ),G.QJ=NaN,G.loader.Ni("cabrUtcSeekFallback",{targetUtcTimeSeconds:G.QJ}));H.qw&&G.loader.xJ(H.qw);G.policy.Xq&&(G.yC=H.yC);if(H.state===3){no(L,H);w0(H.info)&&Qc(G,L,h,!0);if(G.W){var m=H.info.J3();m&&G.W.hX(H.info.LO[0].oU,h.info.id,m)}G.loader.VD()}else if(H.isComplete()&&H.info.LO[0].type===5){if(H.state!==4)H.sf()&&G.loader.handleError(H.iE(),H.Gq());else{var u=(H.info.LO[0].N.info.video?G.videoTrack:G.audioTrack).Y[0]||null;u&&u instanceof Xs&&u.Id()&&u.TA()}H.dispose()}else{H.sf()|| SBT(G,H);var r;((r=H.Pe)==null?0:r.itagDenylist)&&G.loader.dP(H.Pe.itagDenylist);if(H.state===4)ZKl(G,H),G.N&&wB7(G.N,H.info,G.W);else if(G.policy.wy&&H.Ss()&&!H.isComplete()&&!ZKl(G,H)&&!H.sf())break a;H.sf()&&(HKG(G,H),isNaN(G.QJ)||(G.loader.fm(G.QJ),G.QJ=NaN));G.policy.R6&&!H.isComplete()?qBG(G.loader):G.loader.VD();var x=bjX(H,G.policy,G.V);RLV(G,H,x)}}}}}catch(c){w=G.yH?1:0,G.yH=!0,H=j0(w),w=Mr(c,w),G.loader.handleError(w.errorCode,w.details,w.severity),H||G.loader.Fz()}},R)}; SBT=function(G,X){if(X.WW&&X.state>=2&&X.state!==3){var Q=X.xhr.getResponseHeader("X-Response-Itag");if(Q){G.logger.debug(function(){return"Applying streamer-selected format "+Q}); var R=tKU(G.Y,Q),S=X.info.Y;S&&(S-=R.yQ(),R.Y=!0,X.info.LO[0].N.Y=!1,U7w(X,R.Uc(S)),R2(G.loader,G.videoTrack,R),C$C(G.videoTrack,R),G.loader.ZV(R.info.video.quality),(S=X.Mv())&&R.info.lastModified&&R.info.lastModified!==+S&&no(G.videoTrack,X))}else X.WW=!1}}; HKG=function(G,X){var Q=X.info.LO[0].N,R=X.iE();if(nR(Q.xP.N)){var S=g.zX(X.uT(),3);G.loader.Ni("dldbrerr",{em:S||"none"})}S=X.info.LO[0].oU;var Z=ih(G.N,X.info.LO[0].C,S);R==="net.badstatus"&&(G.S+=1);if(X.canRetry()&&wMw(G.loader)){if(!(X.info.xP.Y>=G.policy.l7&&G.W&&X.info.isDecorated()&&R==="net.badstatus"&&G.W.I8(Z,S))){S=(Q.info.video&&Q.xP.Y>1||X.CL===410||X.CL===500||X.CL===503)&&!(Zu(G.Y.C).size>0)&&!nR(Q.xP.N);Z=X.Gq();var H=Q.info.video?G.videoTrack:G.audioTrack;S&&(Z.stun="1");G.loader.handleError(R, Z);G.U_()||(S&&(G.logger.debug(function(){return"Stunning format "+Q.info.id}),k3(G.Y,Q)),no(H,X),G.loader.VD())}}else H=1,G.W&&X.info.isDecorated()&&R==="net.badstatus"&&G.W.I8(Z,S)&&(H=0),G.vM.isLive&&X.iE()==="net.badstatus"&&G.S<=G.policy.G7*2?(cST(G.vM),G.vM.It||G.vM.isPremiere?wI(G.loader,0,{nY:"badStatusWorkaround"}):G.vM.V?wI(G.loader,G.vM.DC,{nY:"badStatusWorkaround", V7:!0}):SE(G.loader)):G.loader.handleError(R,X.Gq(),H)}; ZKl=function(G,X){if(G.policy.useUmp&&X.U_())return!1;try{var Q=X.info.LO[0].N,R=Q.info.video?G.videoTrack:G.audioTrack;if(G.vM.isManifestless&&R){G.S=0;R.J&&(X.U_(),X.isComplete()||X.Ss(),R.J=!1);X.Lk()&&G.loader.kH.iF(1,X.Lk());var S=X.RR(),Z=X.Ew();$l(G.vM,S,Z)}if(X.info.xf()&&!q9(X.info))for(var H=g.e(X.Gx()),w=H.next();!w.done;w=H.next())rnC(R,w.value);for(G.loader.getCurrentTime();R.Y.length&&R.Y[0].state===4;){var h=R.Y.shift();elZ(R,h);R.SA=h.cV()}R.Y.length&&elZ(R,R.Y[0]);var L=!!hH(R);L&& X instanceof GN&&(Q.info.vz()?bf7(G.timing):$7e(G.timing));return L}catch(k){X=X.Gq();X.origin="hrhs";a:{G=G.loader;Q=k;if(Q instanceof Error){X.msg||(X.msg=""+Q.message);X.name||(X.name=""+Q.name);if(Q instanceof g.Ic&&Q.args)for(R=g.e(Object.entries(Q.args)),S=R.next();!S.done;S=R.next())Z=g.e(S.value),S=Z.next().value,Z=Z.next().value,X["arg"+S]=""+Z;g.EL(Q);if(Q.level==="WARNING"){G.uB.mT(X);break a}}G.handleError("fmt.unplayable",X,1)}return!1}}; hLl=function(G){var X=G.videoTrack.N.index;G.IX=new NnG({N1:G.policy.N1,Na:G.policy.J.Na,Rs:X.qp(),i9:function(){return X.i9()}, aG:function(){return X.aG()}})}; Qc=function(G,X,Q,R){if(!(Q.pL()||Q.Qh()||Q.Y||!N7(Q.xP,G.policy,G.V,G.loader.SO())||Q.info.ZC==="f"||G.policy.N)){if(R){R=G.C;var S=Q.info;R=T$i(R,S.video?R.policy.c5:R.policy.dB,S.jA)}else R=0;R=Q.Uc(R);G=Jnw(G,R);q9(R)&&Vq(X,G);Q.Y=!0}}; Z4=function(G,X,Q,R,S,Z,H,w){g.I.call(this);var h=this;this.loader=G;this.XG=X;this.videoTrack=Q;this.audioTrack=R;this.vM=S;this.j=Z;this.isAudioOnly=H;this.T=w;this.W=jX;this.Yc=!1;this.logger=new g.sp("sabr");this.J=this.yH=this.AT=!1;this.videoInfos=this.S=this.j.videoInfos;this.Y=this.DC=this.j.N;this.N=new Rl(X,Z,function(L,k){h.loader.Ni(L,k)}); this.isAudioOnly&&LDl(this,this.vM.N["0"])}; k$i=function(G,X){var Q=[];X=g.e(X);for(var R=X.next();!R.done;R=X.next())Q.push(g.bn(R.value,G.vM.IW));return Q}; LDl=function(G,X,Q){X!==G.V&&(G.V&&(G.Yc=!0),G.V=X,G.g1(X,G.videoTrack,Q))}; mle=function(G,X){G.logger.debug("setConstraint: "+U4(X));lh(G.XG)&&(G.yH=X.reason==="m"||X.reason==="l"?!0:!1);X.reason==="m"?X.isLocked()&&YBe(G,X.N):jIZ(G,X)?Mby(G,X.W,X.N):G.videoInfos=G.S;G.W=X}; jIZ=function(G,X){return G.XG.H8&&X.reason==="b"||G.XG.t_&&X.reason==="l"||G.XG.Gf?!1:G.XG.Db?!0:X.reason==="l"||X.reason==="b"||X.reason==="o"}; onX=function(G,X){return X.isLocked()&&G.N.W||G.W===void 0?!1:X.equals(G.W)}; ukS=function(G,X){var Q,R=(Q=G.V)==null?void 0:Q.info.video.qualityOrdinal;return G.Yc?!0:G.V?X!==R?!0:!G.N.W||G.XG.Fs&&G.N.N===G.V.info.itag?!1:!0:!1}; YBe=function(G,X){var Q=G.N.N;if(Q){G.videoInfos=G.S;var R=g.Ka(G.videoInfos,function(S){return S.id===Q}); R&&R.video.qualityOrdinal===X?G.videoInfos=[R]:(R=G.videoInfos.map(function(S){return S.id}),G.loader.Ni("sabrpf",{pfid:""+Q, vfids:""+R.join(".")}),Mby(G,X,X),Hz(G.N,""))}else Mby(G,X,X)}; Mby=function(G,X,Q){G.videoInfos=G.S;G.videoInfos=g.xo(G.videoInfos,function(R){return R.video.qualityOrdinal>=X&&R.video.qualityOrdinal<=Q})}; PpG=function(G,X,Q){if(G.T){var R=g.xo(G.Y,function(S){return S.id===G.T}); return Hd(R,Q).includes(X)}R=g.xo(G.Y,function(S){var Z;return!((Z=S.kP)==null||!Z.isDefault)}); return R.length>0?Hd(R,Q).includes(X):Hd(G.Y,Q).includes(X)}; Hd=function(G,X){return G.map(function(Q){return AQ(g.bn(Q,X))})}; sIU=function(G){var X;if((X=G.W)==null?0:X.isLocked())return G.videoInfos;var Q=Zu(G.N);X=g.xo(G.videoInfos,function(R){return R.jA>G.XG.jA?!1:!Q.has(R.id)}); Pli(G.N)&&(X=g.xo(X,function(R){return R.video.width<=854&&R.video.height<=480})); return X}; KDG=function(G,X,Q){var R=G.vM,S=G.uB.getVideoData(),Z=G.mu,H=EXS({hT:S.Z(),uB:G.uB,SH:G.SH,XG:G.XG,zn:G.zn,nV:G.nV,L6:G.L6,MU:G.MU,nD:G.nD,isPrefetch:G.isPrefetch,qm:G.qm,sabrLicenseConstraint:S.sabrLicenseConstraint,NU:G.NU,K6:G.K6,I1:G.I1,o1:G.o1,G3:!!Z,authorizedFormats:S.authorizedFormats}),w=BQ(S,G.HW,G.nextRequestPolicy,G.LT,G.VT,G.lw,G.KE);Q&&X&&(Q=w.An?w.An.map(function(Y){return Y.type}):[],X("sabr",{stmctxt:Q.join("_"), unsntctxt:w.bW?w.bW.join("_"):""}));X=G.Lf;Q=G.Zq;if(Q===void 0&&X===void 0){var h;Q=TSC(R.IW,(h=G.Qg)==null?void 0:h.video);var L;X=TSC(R.IW,(L=G.Qg)==null?void 0:L.audio)}if(S.R$)var k=S.R$;S={uR:H,Q5:G.Q5,Lf:X,Zq:Q,mu:Z,videoPlaybackUstreamerConfig:k,Va:w};G.qo&&(S.qo=G.qo);S.u9=G.u9;S.hL=R.Xm;return S}; TSC=function(G,X){return X?[g.bn(X.info,G)]:[]}; qa=function(G,X,Q){var R=this;this.requestType=G;this.xP=X;this.YP=Q;this.W=null;this.gh={xRp:function(){var S;return(S=R.data)==null?void 0:S.isPrefetch}, VT:function(){var S;return(S=R.data)==null?void 0:S.VT}}}; D7e=function(G,X,Q){X=ff(G.xP,eLS(G,X,Q),X);G.eg()&&X.set("probe","1");return X}; eLS=function(G,X,Q){G.TZ===void 0&&(G.TZ=G.xP.TZ(X,Q));return G.TZ}; rBX=function(G){var X,Q;return((X=G.N)==null?void 0:(Q=X.uR)==null?void 0:Q.H$)||0}; aKy=function(G){var X,Q;return!!((X=G.N)==null?0:(Q=X.uR)==null?0:Q.NU)}; EnT=function(G){var X={},Q=[],R=[];if(!G.data)return X;for(var S=0;S0;h--)Q.push(w)}Q.length!==H?X.error=!0:(Z=Q.slice(-Z),Q.length=S,ABi(X,Q,Z));break;case 1:ABi(X,jE,WD0);break;case 0:nnG(X, X.N&7);Q=ui(X,16);S=ui(X,16);(Q^S)!==65535&&(X.error=!0);X.output.set(X.data.subarray(X.W,X.W+Q),X.Y);X.W+=Q;X.Y+=Q;break;default:X.error=!0}G.Y>G.output.length&&(G.output=new Uint8Array(G.Y*2),G.Y=0,G.W=0,G.V=!1,G.N=0,G.register=0)}G.output.length!==G.Y&&(G.output=G.output.subarray(0,G.Y));return G.error?new Uint8Array(0):G.output}; ABi=function(G,X,Q){X=Dly(X);Q=Dly(Q);for(var R=G.data,S=G.output,Z=G.Y,H=G.register,w=G.N,h=G.W;;){if(w<15){if(h>R.length){G.error=!0;break}H|=(R[h+1]<<8)+R[h]<>=7;L<0;)L=X[(H&1)-L],H>>=1;else H>>=L&15;w-=L&15;L>>=4;if(L<256)S[Z++]=L;else if(G.register=H,G.N=w,G.W=h,L>256){H=mq[L];H+=ui(G,Ma[L]);h=NSU(G,Q);w=o2[h];w+=ui(G,pM7[h]);if(bKl&&HQ.length&&(G.error=!0);G.register|=(Q[R+1]<<8)+Q[R]<=0)return nnG(G,Q&15),Q>>4;for(nnG(G,7);Q<0;)Q=X[ui(G,1)-Q];return Q>>4}; ui=function(G,X){for(;G.N=G.data.length)return G.error=!0,0;G.register|=G.data[G.W++]<>=X;G.N-=X;return Q}; nnG=function(G,X){G.N-=X;G.register>>=X}; Dly=function(G){for(var X=[],Q=g.e(G),R=Q.next();!R.done;R=Q.next())R=R.value,X[R]||(X[R]=0),X[R]++;var S=X[0]=0;Q=[];var Z=0;R=0;for(var H=1;H7&&(Z+=X[H]);for(S=1;S>h&1;w=Z<<4|H;if(H<=7)for(h=1<<7-H;h--;)R[h<>=7;H--;){R[h]||(R[h]=-X,X+=2);var L=S&1;S>>=1;h=L-R[h]}R[h]=w}}return R}; JBV=function(G){var X,Q,R,S,Z,H,w,h,L;return g.F(function(k){switch(k.W){case 1:if(!vnU)throw Error("DecompressionStream is not supported");X=OY.H2();Q=new DecompressionStream("gzip");R=Q.writable.getWriter();R.write(G);R.close();S=Q.readable.getReader();Z=new Qk([]);case 2:return g.l(k,S.read(),5);case 5:H=k.N;w=H.value;if(h=H.done){k.pO(4);break}Z.append(w);k.pO(2);break;case 4:return L=q2(Z),OY.ll("gznb",X,Math.ceil(L.byteLength/16)),k.return(L)}})}; iKy=function(G){tH.call(this,"onesie");this.QN=G;this.N={};this.V=!0;this.Y=null;this.queue=new dll(this);this.C={}}; GUG=function(G){var X=G.queue;X.N.length&&X.N[0].isEncrypted&&!X.W&&(X.N.length=0);X=g.e(Object.keys(G.N));for(var Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var R=G.N[Q];if(!R.SF){var S=G.queue;S.N.push({videoId:R.videoId,formatId:Q,isEncrypted:!1});S.W||YK(S)}}}; X4l=function(G,X){var Q=X.totalLength,R=!1;switch(G.Y){case 0:G.Fa(X,G.V).then(function(S){var Z=G.QN;Z.ez("oprr");Z.playerResponse=S;Z.Th||(Z.Ov=!1);Pd(Z)},function(S){G.QN.fail(S)}); break;case 2:G.ez("ormk");X=q2(X);G.queue.decrypt(X);break;default:R=!0}G.QN.Mo&&G.QN.Ni("ombup","id.11;pt."+G.Y+";len."+Q+(R?";ignored.1":""));G.Y=null}; QAy=function(G,X){var Q,R,S,Z,H;return g.F(function(w){switch(w.W){case 1:G.QN.ez("oprgz_s");if(!vnU){w.pO(2);break}g.a0(w,3);return g.l(w,JBV(X),5);case 5:return Q=w.N,G.QN.ez("oprgz_n"),w.return(Q);case 3:R=g.cl(w),G.QN.Ni("gzerr",{impl:"native",err:""+R});case 2:if(S=G.QN.Z().f4)try{var h=OY.H2(),L=S.t4(X),k=S,Y=L!=null?L:X,M=Y.byteOffset,m=Y.byteLength,u=k.exports.getInflatedSize(M,m);if(u===0)throw Error("wasm_gz: bad input");var r=k.malloc(u),x=k.exports.inflateGzip(M,m,r);if(x)throw k.free(r), Error("wasm_gz: fail"+x);var c=new Uint8Array(k.exports.memory.buffer,r,u);L&&S.free(L.byteOffset);var z=S.vl(c);OY.ll("gzwb",h,Math.ceil(z.byteLength/16));Z=z;G.QN.ez("oprgz_w");return w.return(Z)}catch(B){G.QN.Ni("gzerr",{impl:"wasm",err:""+B})}h=OY.H2();L=g.$lZ(new g.yBZ(X));OY.ll("gzjb",h,Math.ceil(L.byteLength/16));H=L;G.QN.ez("oprgz_p");return w.return(H)}})}; Rvl=function(G){return new Promise(function(X){setTimeout(X,G)})}; ScV=function(G,X){var Q=G.Z();Q=G.Nu&&Q.G("html5_onesie_preload_use_content_owner");var R=G.hq,S=Pm(X.tT.experiments,"debug_bandaid_hostname");if(S)X=hY(X,S);else if((Q===void 0?0:Q)&&(R==null?0:R.url)&&!X.W){var Z=AX(new g.D1(R.url));X=hY(X,Z)}else X=(Z=X.N.get(0))==null?void 0:Z.location.clone();if(X&&G.videoId){Z=gn(G.videoId);G=[];if(Z)for(Z=g.e(Z),Q=Z.next();!Q.done;Q=Z.next())G.push(Q.value.toString(16).padStart(2,"0"));X.set("id",G.join(""));return X}}; ZLX=function(G,X,Q){Q=Q===void 0?0:Q;var R,S;return g.F(function(Z){if(Z.W==1)return R=[],R.push(X.load()),Q>0&&R.push(Rvl(Q)),g.l(Z,Promise.race(R),2);S=ScV(G,X);return Z.return(S)})}; HLC=function(G,X,Q,R){R=R===void 0?!1:R;G.set("cpn",X.clientPlaybackNonce);G.set("opr","1");var S=X.Z();G.set("por","1");HS()||G.set("onem","1");X.startSeconds>0&&G.set("osts",""+X.startSeconds);R||(S.G("html5_onesie_disable_partial_segments")&&G.set("oses","1"),X=S.G("html5_gapless_onesie_no_media_bytes")&&Ec(X)&&X.Nu,Q&&!X?(X=Q.audio,G.set("pvi",Q.video.join(",")),S.G("html5_onesie_disable_audio_bytes")||G.set("pai",X.join(",")),u$||G.set("osh","1")):(G.set("oad","0"),G.set("ovd","0"),G.set("oaad", "0"),G.set("oavd","0")))}; qcy=function(G,X,Q,R,S){S=S===void 0?!1:S;var Z="https://youtubei.googleapis.com/youtubei/"+X.wJ.innertubeApiVersion+"/player",H=[{name:"Content-Type",value:"application/json"}];R&&H.push({name:"Authorization",value:"Bearer "+R});H.push({name:"User-Agent",value:g.IB()});g.WO("EOM_VISITOR_DATA")?H.push({name:"X-Goog-EOM-Visitor-Id",value:g.WO("EOM_VISITOR_DATA")}):(Q=Q.visitorData||g.WO("VISITOR_DATA"))&&H.push({name:"X-Goog-Visitor-Id",value:Q});(Q=g.WO("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&H.push({name:"X-YouTube-Lava-Device-Context", value:Q});(X=Pm(X.experiments,"debug_sherlog_username"))&&H.push({name:"X-Youtube-Sherlog-Username",value:X});G=o8(JSON.stringify(G));return{url:Z,EO:H,postBody:G,pRO:S,Ya:S}}; w4X=function(G,X,Q,R,S,Z,H){var w=G.ov,h=G.OP;G=G.uAO;var L=w!==void 0&&h!==void 0,k=R.getVideoData(),Y,M=X.N.encryptedClientKey;X=L?X.iv:void 0;L=DC(Q.schedule,!0);S=S||!!HS()&&L>1572864;return{innertubeRequest:{taU:G,vU:w,OP:h,encryptedClientKey:M,iv:X,gOU:!0,nS:!0,Vw:"DecompressionStream"in window||!S,Ma_:Q.experiments.TT("html5_use_jsonformatter_to_parse_player_response")},uR:EXS({hT:Q,uB:R,SH:k.startSeconds*1E3}),onesieUstreamerConfig:Z,yE:H,Va:BQ(k),reloadPlaybackParams:(Y=k.H1)==null?void 0: Y.reloadPlaybackParams}}; hvX=function(G,X,Q,R,S,Z){var H=g.N2(G,zg),w;if(!G.Ya)if(w=cBe(X,H)){var h=w.vv;w=w.signature}else w=h=X.encrypt(H),(0,g.TB)(),w=STX(new R$0(X.N.Y),w,X.iv);return w4X(h&&w?{ov:h,OP:w}:{uAO:H},X,Q,R,!!G.Ya,S,Z)}; LPl=function(G,X,Q,R,S,Z){var H,w,h;return g.F(function(L){if(L.W==1)return H=g.N2(G,zg),g.l(L,zLl(X,H),2);if(L.W!=3)return w=L.N,g.l(L,gnl(X,w),3);h=L.N;return L.return(w4X({ov:w,OP:h},X,Q,R,!!G.Ya,S,Z))})}; kUG=function(G,X,Q,R,S,Z){var H=g.N2(G,zg);if(H=cBe(X,H))return w4X({ov:H.vv,OP:H.signature},X,Q,R,!!G.Ya,S,Z)}; Tz=function(G,X){g.I.call(this);var Q=this;this.uB=G;this.playerRequest=X;this.logger=new g.sp("onesie");this.xhr=null;this.state=1;this.Pf=new aT;this.CU=!1;this.playerResponse="";this.e8=new oF(this);this.nQ=new iKy(this);this.Dt="";this.fR=this.b_=!1;this.KK="";this.enableCompression=this.Th=this.M_=!1;this.Mb=[];this.qW=-1;this.Jh=0;this.tT=this.uB.Z();this.videoData=this.uB.getVideoData();this.Mo=this.tT.n7();this.QF=this.tT.R6;this.g_=new xlU(this.QF.N);this.e1=this.tT.G("html5_onesie_check_timeout"); this.iY=new g.fU(this.kp,500,this);this.r_=new g.fU(this.Gw,1E4,this);this.xM=new g.fU(function(){if(!Q.isComplete()){var R=s2(Q);Q.fail(new g.YE("net.timeout",R))}},1E3); this.b2=new g.fU(this.sUp,2E3,this);this.uQ=this.uB.Bc();this.Ov=this.G("html5_onesie_wait_for_media_availability");g.d(this.videoData,this);g.d(this,this.iY);g.d(this,this.r_);g.d(this,this.b2);G=Td();u$&&G&&(this.yG=new Map);this.PV=new Map;this.u2=new Map;this.kI=new Map;this.iG=new Map}; kK=function(G,X){var Q;return(Q=G.yG)==null?void 0:Q.get(X)}; jAw=function(G,X,Q){var R;return g.F(function(S){if(S.W==1)return G.ez("oprd_s"),YcG(G)?g.l(S,Ul0(G.g_,X,Q),3):(R=G.g_.decrypt(X,Q),S.pO(2));S.W!=2&&(R=S.N);G.ez("oprd_c");return S.return(R)})}; MXw=function(G){return G.G("html5_onesie_host_probing")||G.Mo?u$:!1}; Pd=function(G){if(!G.playerResponse)return!1;if(G.M_)return!0;var X=G.videoData.G("html5_onesie_audio_only_playback")&&xP(G.videoData);if(G.yG&&G.Ov){if(!G.yG.has(G.Dt))return!1;var Q=G.yG.get(G.Dt),R;if(R=Q){R=!1;for(var S=g.e(Q.CY.keys()),Z=S.next();!Z.done;Z=S.next())if(Z=Q.CY.get(Z.value))for(var H=g.e(Z.nC),w=H.next();!w.done;w=H.next())w.value.R5>0&&(Z.vz?R=!0:X=!0);R=!(X&&R)}if(R)return!1}G.ez("ofr");G.Pf.resolve(G.playerResponse);if(!G.e1){var h;(h=G.xM)==null||h.start();G.r_.start()}return G.M_= !0}; oPZ=function(G){if(G.yG&&!G.G("html5_onesie_media_capabilities")){G.ez("ogsf_s");var X=sjw(G.uB.getVideoData(),function(R,S){G.Ni(R,S)}),Q=mLT(G.uB); X.video=LuG(Q,X.video);G.ez("ogsf_c");if(X.video.length)return X;G.Ni("ombspf","l."+Q.W+";u."+Q.N+";o."+Q.Y+";r."+Q.reason)}}; YcG=function(G,X){return G.G("html5_onesie_sync_request_encryption")||(X==null?0:X.Ya)||g.eb(G.tT)&&G.G("html5_embed_onesie_use_sync_encryption")?!1:!!HS()}; s2=function(G){if(!G.jz)return{};var X=G.jz.u5(),Q;X.d=(Q=G.jz.Mi)==null?void 0:Q.Zh();X.shost=G.Hx;X.ty="o";return X}; uui=function(G,X){var Q,R;(R=(G=(Q=G.yG)==null?void 0:Q.get(X))==null)||(X=G.Y?!1:G.Y=!0,R=!X);return!R}; PVC=function(G,X,Q,R,S,Z,H,w,h,L,k,Y){g.I.call(this);var M=this;this.uB=G;this.loader=X;this.policy=Q;this.audioTrack=R;this.videoTrack=S;this.vM=Z;this.VN=H;this.BM=w;this.Y=h;this.timing=L;this.j=k;this.QH=Y;this.N=[];this.C={};this.wb=this.cM=!1;this.V=this.CO=this.AT=this.Xm=this.nD=0;this.T=null;this.Yc={u9:[],Q5:[]};this.DC={u9:[],Q5:[]};this.J=null;this.S=[];this.gh={esH:function(){return M.N}, Ndp:function(){return M.C}, Azp:function(){M.N.length=0}, a3_:function(){return M.videoData.BM}, phO:function(){return M.AT}, Hmp:function(m){M.AT=m}, MOi:function(m){M.V=m}, AO:function(m){M.J=m}, g3:function(m){M.S=m}}; this.videoData=this.uB.getVideoData();this.policy.Nu&&(this.IU=new Gz(this.loader,this.policy,this.VN),g.d(this,this.IU))}; KPC=function(G,X){X=X===void 0?!1:X;if(sAG(G)){G.policy.S&&G.loader.Ni("sabrcrq",{create:1});var Q=new qa(0,G.vM.j,G);G.policy.Ge>0&&G.V++;X=TxV(G,Q,X);G.N.push(X);var R;(R=G.IU)==null||AnZ(R,G.vM.j)}}; aIl=function(G,X){var Q=evV(G);if(G.policy.hE){var R=G.Yc;var S=G.DC}else R=KY(G,G.audioTrack),S=KY(G,G.videoTrack);var Z=[].concat(g.o0(R.u9),g.o0(S.u9));eE(G)&&Z.push.apply(Z,g.o0(G.S));var H=[].concat(g.o0(R.Q5),g.o0(S.Q5)),w=G.loader.pR();if(G.policy.cf&&!G.videoData.isLivePlayback){var h=G.videoData.lengthSeconds*1E3;Q>=h&&G.loader.Ni("invalidSabrCmt",{cmt:Q,vd:h})}var L,k;h=G.uB;var Y=G.vM,M=G.W,m=G.videoData.BM,u=G.policy,r=G.loader.Pm,x=XMG(G.loader)*1E3,c=(L=G.Mi)==null?void 0:L.L6;L=(k= G.Mi)==null?void 0:k.MU;var z;k=Number((z=G.Y.V)==null?void 0:z.info.itag)||0;var B;z=Number((B=G.Y.C)==null?void 0:B.info.itag)||0;X={uB:h,vM:Y,u9:Z,Q5:H,SH:Q,nextRequestPolicy:M,LT:m,XG:u,zn:r,nV:x,L6:c,MU:L,nD:G.nD,isPrefetch:X||G.loader.isSuspended,j$:k,L9:z,HW:w,KE:G.uB.Z7()};Q=G.loader.lA();Z=gn(Q);Q&&(X.VT=Z);if(Q=G.uB.QI())X.NU=Q*1E3;var V;Q=G.Y;Z=Q.AT;if(((V=Q.XG)==null?0:lh(V))&&!Z)for(V=g.e(Q.Y),H=V.next();!H.done;H=V.next())if(H.value.kP){Z=!0;break}V=lh(Q.XG)&&!Z?[]:k$i(Q,Q.Y);X.Lf=V; V=G.Y;lh(V.XG)&&!V.yH?V=[]:(Q=sIU(V),Q.length===0&&(Q=V.S),V=k$i(V,Q));X.Zq=V;X.mu=eE(G)?[G.J]:void 0;G.policy.iO&&(X.I1=rPS(G.loader,G.audioTrack),X.o1=rPS(G.loader,G.videoTrack));if(G.policy.W){V=G.loader.getCurrentTime();R=rR(G,R.u9,V);S=rR(G,S.u9,V);S=Math.min(R,S);eE(G)&&(R=rR(G,G.S,V),G.uB.n7()&&R0&&G.N[0].lY()&&(X.lw=G.N[0].xC());return X}; evV=function(G){var X,Q=G.policy.C&&((X=G.loader)==null?void 0:X.bC());X=G.loader.getCurrentTime()||0;X=EP0(G,X);X=G.policy.Zz&&G.loader.isSeeking()?po(G.videoTrack,X):X;var R=G.loader.q9()||0;X+=R;R=bV(G.videoData)||g.$P(G.videoData);var S=0;Q?(R&&(S=Number.MAX_SAFE_INTEGER),G.videoData.Yc&&(S=Math.ceil(G.videoData.DC*1E3))):S=Math.ceil(X*1E3);return Math.min(Number.MAX_SAFE_INTEGER,S)}; eE=function(G){return G.policy.Mj&&!!G.J}; EP0=function(G,X){if(G.loader.isSeeking())return X;var Q=G.uB.EY();if(!Q)return X;Q=Q.wL();if(Q.length===0||HH(Q,X))return X;if(!tCS(G.videoTrack,X)&&!tCS(G.audioTrack,X))return G.loader.Ni("sundrn",{b:0,lt:X}),X;for(var R=X,S=Infinity,Z=0;ZX)){var H=X-Q.end(Z);H=20)?(G.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),X):R}; rR=function(G,X,Q){G=G.loader.q9()||0;return pY(X,(Q+G)*1E3)/1E3+Q}; sAG=function(G){if(G.policy.Ge>0){var X=Math.floor((0,g.TB)()/1E4);if(X===G.CO){if(G.V>=G.policy.Ge){if(G.V===G.policy.Ge){var Q={reason:"toomanyrequests"};Q.limit=G.V;G.loader.handleError("player.exception",Q);G.V+=1}return!1}}else G.CO=X,G.V=0}if(G.loader.isSuspended&&G.loader.PH)return!1;if(G.yH&&(0,g.TB)()0&&(!G.policy.j||G.N.length!==1||!G.N[0].lY()))return!1;var R;if((R=G.vM.j)==null||!N7(R,G.policy,G.C,G.loader.SO())||$3(G.audioTrack)&&$3(G.videoTrack))return!1; if(G.policy.W)if(G.policy.IU){var S;if((S=G.QH)==null?0:olC(S))return!1}else{X=!1;if(G.j.W===2)X=!0;else if(G.j.W===3){evV(G);G.loader.q9();var Z=dd(G.audioTrack,G.loader.isSeeking()).u9;R=dd(G.videoTrack,G.loader.isSeeking()).u9;S=G.loader.getCurrentTime()||0;Z=rR(G,Z,S);R=rR(G,R,S);R=Math.min(Z,R);S=G.j;R>=S.C?(S.Ni("sdai",{haltrq:R,est:S.C}),R=!0):R=!1;R&&(X=!0)}X&&G.policy.S&&G.loader.Ni("sabrcrq",{waitad:1});if(X)return!1}G.policy.hE&&(G.Yc=KY(G,G.audioTrack),G.DC=KY(G,G.videoTrack));if(!G.W)return G.policy.S&& G.loader.Ni("sabrcrq",{nopolicy:1}),!0;if(G.uB.QI())return G.policy.S&&G.loader.Ni("sabrcrq",{utc:1}),!0;if(G.Y.J)return G.policy.S&&G.loader.Ni("sabrcrq",{audio:1}),!0;if(!G.W.targetAudioReadaheadMs||!G.W.targetVideoReadaheadMs)return G.policy.S&&G.loader.Ni("sabrcrq",{noreadahead:1}),!0;if(G.policy.C&&G.loader.bC())return G.policy.S&&G.loader.Ni("sabrcrq",{seekToHead:1}),!0;X=Math.min(S3(G.loader,G.audioTrack)*1E3,G.W.targetAudioReadaheadMs);R=Math.min(S3(G.loader,G.videoTrack)*1E3,G.W.targetVideoReadaheadMs); var H=Math.min(X,R);S=NW(G.audioTrack,!0)*1E3;Z=NW(G.videoTrack,!0)*1E3;var w=G.uB.getCurrentTime()*1E3;if(G.policy.hE){var h=pY(G.Yc.u9,w);var L=pY(G.DC.u9,w)}else h=S,L=Z;var k=hX||R>=0&&S.tN>R+1)break;Q=Math.max(Q,S.startTimeMs+S.durationMs);R=Math.max(R,S.tE)}return Math.max(0,Q-X)}; TxV=function(G,X,Q){var R={VN:G.VN,S4:function(h,L){G.uB.Uv(h,L)}, xf:G.policy.QE,cH:G.policy.Y};G.VN.W.S&&(R.oX=(G.videoTrack.N.info.jA||0)+(G.audioTrack.N.info.jA||0));G.policy.Ku&&(R.Rs=G.audioTrack.N.index.qp(),R.xf=!1);var S=eLS(X,G.policy,G.C)?2:1;S!==G.AT&&(G.AT=S,OLV(G));Q=aIl(G,Q);if(G.policy.j&&G.policy.Y&&Q.LT){for(var Z=S="",H=g.e(Q.LT),w=H.next();!w.done;w=H.next())w=w.value,G.videoData.sabrContextUpdates.has(w)||G.policy.j&&Q.lw&&Q.lw.type===w?S+="_"+w:Z+="_"+w;G.loader.Ni("sabrbldrqs",{ctxts:S,misctxts:Z})}!X.setData(Q,G.policy,G.C)&&G.policy.j&&G.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);R=new NI(G.policy,X,G.vM,G.C,G,R,G.loader.Bc());AH(G.timing);G.policy.S&&G.loader.Ni("sabrcrq",{rn:R.V8(),probe:X.eg()});return R}; fY=function(G,X){if(X.U_()||G.U_())G.policy.VE||(G.policy.C?yc(G.loader):G.loader.VD());else{if(G.policy.Y&&X.isComplete()&&X instanceof NI){var Q=G.loader,R=Q.Ni,S,Z,H=Object.assign(X.jz.u5(),{rst:X.state,strm:X.xhr.Oz(),d:(S=X.jz.Mi)==null?void 0:S.Zh(),cncl:X.xhr&&X.pY.C?1:0,rqb:X.Gc,cwt:X.pY.Y,swt:(Z=X.Wx)==null?void 0:Z.pN});S=Object.assign(EnT(X.info),H);R.call(Q,"rqs",S)}if(X.isComplete()&&X.eg()&&X instanceof NI)G.policy.l9?X.AQ()?(X.dispose(),G.N.length===0?G.loader.VD():(G=G.N[0],G instanceof NI&&G.Id()&&G.TA())):X.sf()&&G.loader.handleError(X.iE(),X.Gq()):(X.dispose(),G.loader.VD());else{if(X.tQ())X instanceof NI&&RqT(G.timing,X),OLV(G),zvT(G);else if(X.sf())Q=G.uB.QI(),X instanceof NI&&aKy(X.info)&&Q&&G.loader.fm(Q),X instanceof Tz?G.N.pop():(Q=1,X.canRetry()&&wMw(G.loader)&&(cPi(G,X),Q=0),G.loader.handleError(X.iE(),X.Gq(),Q));else{if(G.loader.isSuspended&&!X.isComplete())return;zvT(G)}X.U_()||X instanceof Tz||(X.isComplete()?Q=bjX(X,G.policy,G.C):(Q=$KT(X,G.policy,G.C),Q===1&&(G.cM= !0)),Q!==0&&(R=new qa(1,X.info.xP),R.TZ=Q===2,TxV(G,R)));G.policy.R6&&!X.isComplete()?qBG(G.loader):G.loader.VD()}}}; zvT=function(G){for(;G.N.length&&G.N[0].GD(G.iL());){var X=G.N.shift();gP7(G,X)}G.N.length&&gP7(G,G.N[0])}; gP7=function(G,X){X instanceof NI&&(G.SA=X);var Q=new Set(X.RD(G.iL()));Q=g.e(Q);for(var R=Q.next();!R.done;R=Q.next()){var S=R.value;if(!(R=!(X instanceof Tz))){R=G.Y;var Z=R.vM.IW,H=Hd(R.videoInfos,Z);Z=PpG(R,S,Z);var w=H.includes(S);!R.XG.HP||Z||w||R.loader.Ni("sabrcpf",{fid:""+S,vfids:""+H.join("."),said:R.T||""});R=Z||H.includes(S)}if(R&&(R=X.e3(S,G.iL()),H=G.policy.Mj&&Gv(R[0].N.info.mimeType),X.Ss(S,G.iL())))for(S=X.Gx(S,G.iL()),S=g.e(S),Z=S.next();!Z.done;Z=S.next())if(Z=Z.value,G.policy.Y&& X instanceof Tz&&G.loader.Ni("omblss",{s:Z.info.Hn()}),H)w=G.timing,w.AT||(w.AT=(0,g.TB)(),g.GZ("fcb_r",w.AT,w.N)),w=G,w.videoData.IW()&&w.J&&AQ(w.J)===AQ(g.bn(Z.info.N.info,w.vM.IW))&&w.uB.publish("sabrCaptionsDataLoaded",Z,w.g3.bind(w));else{w=Z.info.N.info.vz();var h=Z.info.N;if(w){var L=void 0;var k=G.Y,Y=(L=X.YC(G.iL()))==null?void 0:L.token;k.J&&h!==k.C?L=!0:(k.J=!1,h!==k.C&&(k.C=h,k.g1(h,k.audioTrack,Y)),L=!1);if(L)continue}else L=void 0,LDl(G.Y,h,(L=X.YC(G.iL()))==null?void 0:L.token);L=w? G.audioTrack:G.videoTrack;X instanceof Tz&&(L.J=!1,X instanceof Tz&&(w?bf7(G.timing):$7e(G.timing)));try{Il(L,R,Z)}catch(M){Z=Mr(M),G.loader.handleError(Z.errorCode,Z.details,Z.severity),L.Fz(),G.MR(!1,"pushSlice"),yc(G.loader)}}}}; cPi=function(G,X){G.policy.j?G.N.splice(G.N.indexOf(X)).forEach(function(Q){Q.dispose()}):(G.N.pop(),X==null||X.dispose())}; ULT=function(G,X,Q){for(var R=[],S=0;S0)for(var X=g.e(G.videoData.sabrContextUpdates.keys()),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var R=void 0;((R=G.videoData.sabrContextUpdates.get(Q))==null?0:R.sendByDefault)&&G.videoData.BM.add(Q)}if(G.policy.j&&G.N.length)for(X=g.e(G.N),Q=X.next();!Q.done;Q=X.next())(Q=Q.value.xC())&&Q.type&&Q.sendByDefault&&G.videoData.BM.add(Q.type)}; lIi=function(G){G.policy.kS&&(G.Mi=void 0,G.nD=0)}; Bxy=function(G,X){if(X.sf()||X.U_()){var Q=G.loader,R=Q.Ni,S=X.state;G=G.iL();var Z,H;if((X=(Z=X.yG)==null?void 0:Z.get(G))==null)X=void 0;else{Z=0;G=X.RD();for(var w=0;w=X.mediaTime?(X.resolve([X.mediaTime,X.id]),G.N.delete(X.id)):(X.delay.dispose(),Q=(X.mediaTime-Q)*1E3/G.uB.getPlaybackRate(),X.delay=new g.fU(function(){VXT(G,X)},Q/2),X.delay.start()))}; yPZ=function(G,X,Q,R){var S=this;this.Y=G;this.cpn=X;this.uB=Q;this.N=R;this.W=new Map;this.C=new Map;this.J=this.T=NaN;this.S=!1;this.K4="";this.isSeeking=!1;this.j=0;this.V=new CVl(Q);this.dL=Q.dL;this.uB.subscribe("statechange",this.AT,this);this.uB.subscribe("SEEK_TO",function(){S.ZU()}); this.uB.subscribe("SEEK_COMPLETE",function(){p4G(S)})}; DLi=function(G,X){if(!G.isSeeking&&G.j!==X&&!isNaN(G.T)){G.j=X;var Q=G.S?G.J:G.Y.NG(X);(Q!==G.J||G.S)&&fIV(G,Q,X)}}; fIV=function(G,X,Q){var R=G.W.get(X),S=G.Y.getStartTime(X),Z=G.Y.getDuration(X);G.S=!1;G.J=X;var H=S,w;((w=R==null?void 0:R.N)!=null?w:[G.cpn]).forEach(function(h,L){var k,Y=(k=R==null?void 0:R.W[L])!=null?k:Z;if(Q>=H&&QS?$L0(G,Z,G.W.get(Z)):Z===S&&$L0(G,Z,G.W.get(Z),R-G.Y.getStartTime(Z))})}; Nx7=function(G,X,Q,R){X!==G.K4&&(G.uB.Ni("ssevt",{tag:G.N===0?"sstd-cr":G.N===1?"sstd-tm":G.N===2?"sstd-poll":G.N===3?"sstd-poll100":"sstd-unknown",ad:G.cpn!==X,cpn:X,st:Q.toFixed(3),late:Math.round(G.isSeeking?0:(R-Q)*1E3)}),G.K4=X,G.uB.publish("playbackstarted",X,Q+G.uB.q9()))}; bLw=function(G){var X=g.e(G.split("."));G=X.next().value;X=X.next().value;return[Number(G),X]}; nPy=function(G,X,Q,R){Q=X+"."+Q;G.C.has(X)?G.C.get(X).push(Q):G.C.set(X,[Q]);G.N===1&&dLG(G.V,R,Q).then(function(S){var Z=g.e(S);S=Z.next().value;Z=Z.next().value;Z=g.e(bLw(Z));Z.next();Z=Z.next().value;Nx7(G,Z,S,tXy(G.V))}); G.N===0&&(G.dL.K5("transitiondetector",Q),X=(R+G.uB.q9())*1E3,G.dL.PZ([new g.yG(X,X+5E3,{id:Q,namespace:"transitiondetector",priority:9})]))}; vPZ=function(G,X,Q,R,S){this.loader=G;this.policy=X;this.schedule=Q;this.YV=R;this.j=S;this.AT=NaN;this.W=this.J=this.V=null;this.N=this.C=this.S=this.startTimeSecs=NaN;this.Y=!1;this.T=NaN}; JPU=function(G,X,Q,R,S,Z){return X.JN&&X.Hs&&Q===3?new vPZ(G,X,R,S,Z):null}; iL7=function(G,X){if(G.policy.v7){var Q=X.info.jA,R=DC(G.schedule);X=X.index.qp();Q=Math.max(1,R/Q);G.T=Math.round(Math.max(((Q-1)*X+G.policy.Fq)/Q,X-G.policy.tC)*1E3)}}; QMy=function(G,X){var Q=Date.now()/1E3,R=Q-G.startTimeSecs,S=Q-G.S,Z=S>=G.policy.qU,H=!1;if(Z){var w=0;!isNaN(X)&&X>G.C&&(w=X-G.C,G.C=X);w/S=G.policy.tC&&!G.Y;if(!Z&&!Q&&GET(G,X))return NaN;Q&&(G.Y=!0);a:{R=H;Q=(0,g.TB)()/1E3-(G.YV.X8()||0)-G.J.N-G.policy.Fq;Z=G.W.startTime;Q=Z+Q;if(R){if(isNaN(X)){D4(G,NaN,"n",X);Z=NaN;break a}R=X-G.policy.dV;R0&&(w.headers=h);Z&&(w.onFinish=Z);return Object.keys(w).length>1? w:null}; Yay=function(G,X,Q,R,S,Z,H,w){XB()&&Q.token&&(G=JD(G,{ctt:Q.token,cttype:Q.Eg,mdx_environment:Q.mdxEnvironment}));R.G("net_pings_low_priority")&&(X||(X={}),X.priority="low");Z||w&&R.G("nwl_skip_retry")?(X==null?X={}:hAe(G,R.G("html5_assert_cpn_with_regex")),H?We().sendAndWrite(G,X):We().sendThenWrite(G,X,w)):X?(hAe(G,R.G("html5_assert_cpn_with_regex")),XgS(G,X)):g.gW(G,S)}; jMS=function(G){for(var X=[],Q=0;Q0&&Q>0&&!G.W&&G.Y<1E7)try{G.V=G.C({sampleInterval:X,maxBufferSize:Q});var R;(R=G.V)==null||R.addEventListener("samplebufferfull",function(){return g.F(function(S){if(S.W==1)return g.l(S,G.stop(),2);o6C(G);g.rX(S)})})}catch(S){G.W=mYC(S.message)}}; ue0=function(G,X){var Q,R;return!!((Q=window.h5vcc)==null?0:(R=Q.settings)==null?0:R.set(G,X))}; sMT=function(){var G,X,Q,R=(G=window.h5vcc)==null?void 0:(X=G.settings)==null?void 0:(Q=X.getPersistentSettingAsString)==null?void 0:Q.call(X,"cpu_usage_tracker_intervals");if(R!=null){var S;G=(S=JSON.parse(R))!=null?S:[];S=G.filter(function(L){return L.type==="total"}).map(function(L){return L.seconds}); X=g.e(PG7);for(Q=X.next();!Q.done;Q=X.next())Q=Q.value,S.indexOf(Q)===-1&&G.push({type:"total",seconds:Q});var Z,H;(Z=window.h5vcc)==null||(H=Z.settings)==null||H.set("cpu_usage_tracker_intervals_enabled",1);var w,h;(w=window.h5vcc)==null||(h=w.settings)==null||h.set("cpu_usage_tracker_intervals",JSON.stringify(G))}}; T4T=function(){var G=window.H5vccPlatformService,X="";if(G&&G.has("dev.cobalt.coat.clientloginfo")&&(G=G.open("dev.cobalt.coat.clientloginfo",function(){}))){var Q=G.send(new ArrayBuffer(0)); Q&&(X=String.fromCharCode.apply(String,g.o0(new Uint8Array(Q))));G.close()}return X}; g.$K=function(G){g.I.call(this);var X=this;this.provider=G;this.logger=new g.sp("qoe");this.N=new Map;this.sequenceNumber=1;this.yH=NaN;this.FG="N";this.T=this.Mr=this.hx=this.AT=this.W=0;this.Js=this.IU=this.S=this.CO="";this.f7=this.SA=NaN;this.F7=0;this.l9=-1;this.R6=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.As=this.isEmbargoed=this.Mi=this.isOffline=this.isBuffering=!1;this.Fq=[];this.j=null;this.bB=this.V=this.KO=this.J=!1;this.Y=-1;this.Xm=!1;this.kS=new g.fU(this.gY,750,this);this.b7= this.adCpn=this.DC=this.contentCpn="";this.adFormat=void 0;this.Mj=0;this.BM=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.hS=new Set(["gd","pw","gp","gm"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.N9=!1;this.C7=NaN;this.QH=0;this.Hs=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Ps=!1;this.Xq=new Set;this.gh={oE:function(Z){X.oE(Z)}, oqC:function(){return X.C}, WO:function(){return X.contentCpn}, ucU:function(){return X.DC}, reportStats:function(){X.reportStats()}, faT:function(){return X.N.get("cat")||[]}, MO:function(Z){return X.N.get(Z)||[]}, ZWp:function(){return X.N}, f3_:function(){return 0}, EBU:function(){return{adCpn:X.adCpn,b7:X.b7,adFormat:X.adFormat}}}; this.Yc=this.provider.tT.G("html5_qoe_relaxed_reporting");var Q=g.i2(this.provider.tT.experiments,"html5_qoe_proto_mock_length");Q&&!AY.length&&(AY=jMS(Q));g.d(this,this.kS);try{var R,S;(S=(R=navigator).getBattery)==null||S.call(R).then(function(Z){X.j=Z})}catch(Z){}g.nY(this,0,"vps",["N"]); G.tT.n7()&&(this.QH=(0,g.TB)(),this.C7=g.h8(function(){var Z=(0,g.TB)(),H=Z-X.QH;H>500&&X.Ni("vmlock",{diff:H.toFixed()});X.QH=Z},250)); this.provider.videoData.fv&&(this.remoteControlMode=K0X[this.provider.videoData.fv]||0);this.provider.videoData.i8&&(Q=S0C(this.provider.videoData.i8),Q==null?0:Q.length)&&(this.remoteConnectedDevices=Q);G.tT.n7()&&(this.cM=new ZCC,g.d(this,this.cM));Q=g.i2(G.tT.experiments,"html5_js_self_profiler_sample_interval_ms");G=g.i2(G.tT.experiments,"html5_js_self_profiler_max_samples");Q>0&&G>0&&(this.wb=new Na(Q,G),g.d(this,this.wb))}; bi=function(G,X,Q){var R=G.N.get(X);R?R.push(Q):G.N.set(X,[Q])}; g.nY=function(G,X,Q,R){bi(G,Q,X.toFixed(3)+":"+R.join(":"))}; eAl=function(G,X){var Q=G.adCpn||G.provider.videoData.clientPlaybackNonce,R=G.provider.getCurrentTime(Q);g.nY(G,X,"cmt",[R.toFixed(3)]);Q=R=G.provider.Mc(Q);if((!G.C||G.provider.tT.G("html5_shorts_gapless_no_gllat")&&Ec(G.provider.videoData)?0:Q*1E3>G.C.Am+100)&&G.C){var S=G.C;Q=S.isAd;R=R*1E3-S.Am;G.lQ=X*1E3-S.XRp-R-S.UdU;S=(0,g.TB)()-R;X=G.lQ;R=G.provider.videoData;var Z=R.isAd();if(Q||Z){Z=(Q?"ad":"video")+"_to_"+(Z?"ad":"video");var H={};R.S&&(H.cttAuthInfo={token:R.S,videoId:R.videoId});H.startTime= S-X;x5(Z,H);g.EF({targetVideoId:R.videoId,targetCpn:R.clientPlaybackNonce},Z);aa("pbs",S,Z)}else S=G.provider.uB.gZ(),S.S!==R.clientPlaybackNonce?(S.C=R.clientPlaybackNonce,S.W=X):R.n2()||g.EL(new g.Ic("CSI timing logged before gllat",{cpn:R.clientPlaybackNonce}));G.Ni("gllat",{l:G.lQ.toFixed(),prev_ad:+Q});delete G.C}}; JY=function(G,X){X=X===void 0?NaN:X;X=X>=0?X:g.vd(G.provider);var Q=G.provider.uB.lC(),R=Q.GI-(G.SA||0);R>0&&g.nY(G,X,"bwm",[R,(Q.Ez-(G.f7||0)).toFixed(3)]);isNaN(G.SA)&&Q.GI&&G.isOffline&&G.oE(!1);G.SA=Q.GI;G.f7=Q.Ez;isNaN(Q.bandwidthEstimate)||g.nY(G,X,"bwe",[Q.bandwidthEstimate.toFixed(0)]);G.provider.tT.n7()&&Object.keys(Q.N).length!==0&&G.Ni("bwinfo",Q.N);if(G.provider.tT.n7()||G.provider.tT.G("html5_log_meminfo"))R=RAw(),Object.values(R).some(function(Z){return Z!==void 0})&&G.Ni("meminfo", R); if(G.provider.tT.n7()){var S;(R=(S=G.cM)==null?void 0:HCT(S))&&Object.values(R).some(function(Z){return Z!=null})&&G.Ni("cpuinfo",R)}G.wb&&G.Ni("jsprof",G.wb.flush()); G.j&&g.nY(G,X,"bat",[G.j.level,G.j.charging?"1":"0"]);S=G.provider.uB.getVisibilityState();G.l9!==S&&(g.nY(G,X,"vis",[S]),G.l9=S);eAl(G,X);(S=rLC(G.provider))&&S!==G.F7&&(g.nY(G,X,"conn",[S]),G.F7=S);a0C(G,X,Q)}; E6G=function(G){var X=G.provider.uB.lC(),Q=g.vd(G.provider);a0C(G,Q,X);var R=X.Y;X=X.V;isNaN(R)||(G.provider.tT.G("html5_unified_live_latency_reporting")&&!isNaN(X)&&X?g.nY(G,Q,"e2el",[R.toFixed(3),X.toFixed(3)]):g.nY(G,Q,"e2el",[R.toFixed(3)]))}; a0C=function(G,X,Q){if(!isNaN(Q.TV)){var R=Q.TV;Q.W96E3&&(new g.fU(G.reportStats,0,G)).start()}}; zAT=function(G){G.provider.videoData.Nu&&ii(G,"prefetch");G.provider.videoData.Ps&&G.Ni("reload",{r:G.provider.videoData.reloadReason,ct:G.provider.videoData.Ps});G.provider.videoData.KO&&ii(G,"monitor");G.provider.videoData.isLivePlayback&&ii(G,"live");u$&&ii(G,"streaming");G.provider.videoData.fv&&G.Ni("ctrl",{mode:G.provider.videoData.fv},!0);if(G.provider.videoData.i8){var X=G.provider.videoData.i8.replace(/,/g,"_");G.Ni("ytp",{type:X},!0)}G.provider.videoData.GM&&(X=G.provider.videoData.GM.replace(/,/g, "."),G.Ni("ytrexp",{ids:X},!0));X=G.provider.videoData;var Q=G.provider.tT.G("enable_white_noise")||G.provider.tT.G("enable_webgl_noop"),R=g.IA(X)||g.v4(X)||g.JP(X)||g.iV(X);(Q||R)&&(Q=(0,g.Gc)())&&G.N.set("gpu",[Q]);k6(G.provider.videoData)&&g.nY(G,g.vd(G.provider),"dt",["1"]);X.cotn&&!k6(X)&&G.oE(!0);G.provider.tT.n7()&&(X=(0,g.TB)()-G.provider.tT.qd,G.Ni("playerage",{secs:Math.pow(1.6,Math.round(Math.log(X/1E3)/Math.log(1.6))).toFixed()}));G.V=!0;G.yH=g.h8(function(){G.reportStats()},1E4)}; g6y=function(G,X,Q){var R=g.vd(G.provider);cLe(G,R,X,0,Q);JY(G,R);OCU(G)}; cLe=function(G,X,Q,R,S){var Z=G.provider.tT.N.cbrver;G.provider.tT.N.cbr==="Chrome"&&/^96[.]/.test(Z)&&Q==="net.badstatus"&&/rc\.500/.test(S)&&UYS(G,3);G.provider.tT.G("html5_use_ump")&&/b248180278/.test(S)&&UYS(G,4);Z=G.provider.getCurrentTime(G.adCpn||G.provider.videoData.clientPlaybackNonce);R=R===1?"fatal":"";Q=[Q,R,Z.toFixed(3)];R&&(S+=";a6s."+nJ());S&&Q.push(l0S(S));g.nY(G,X,"error",Q);G.V=!0}; B4y=function(G,X){var Q=g.vd(G.provider);if(!G.provider.tT.experiments.TT("html5_refactor_sabr_video_format_selection_logging")||X.N.id!==G.CO){var R=[X.N.id,X.W,G.CO,X.reason];X.token&&R.push(X.token);g.nY(G,Q,"vfs",R);G.CO=X.N.id;R=G.provider.uB.getPlayerSize();if(R.width>0&&R.height>0){R=[Math.round(R.width),Math.round(R.height)];var S=g.PM();S>1&&R.push(S);g.nY(G,Q,"view",R)}G.KO||(G.provider.tT.n7()&&ii(G,"rqs2"),G.provider.videoData.N&&Fy(G.provider.videoData.N)&&G.N.set("preload",["1"]));G.KO= !0;G.V=!0}X.reason==="m"&&++G.Mj===100&&UYS(G,2);g.nY(G,Q,"vps",[G.FG]);G.Yc||G.reportStats(Q)}; F0U=function(G){G.Y>=0||(G.provider.tT.lL||G.provider.uB.getVisibilityState()!==3?G.Y=g.vd(G.provider):G.Xm=!0)}; CGi=function(G,X,Q){var R=g.vd(G.provider);g.nY(G,R,"vfi",[X==="A"?"":""+(Q!=null?Q:0),X])}; tA0=function(G,X,Q){if(G.provider.tT.experiments.TT("html5_refactor_sabr_audio_format_selection_logging")){X=Q.N;var R=[X.audio&&X.video?X.c7?X.c7:"":X.id];X.kP&&X.kP.id&&R.push(X.kP.id);X=R.join(";");X!==G.S&&(R=[X,G.S,Q.reason],Q.token&&R.push(Q.token),g.nY(G,g.vd(G.provider),"afs",R),G.S=X)}else Q.N.id!==G.S&&(R=[Q.N.id,G.S,Q.reason],Q.token&&R.push(Q.token),g.nY(G,X,"afs",R),G.S=Q.N.id)}; ii=function(G,X){bi(G,"cat",X)}; VAw=function(G,X,Q,R,S){var Z=g.vd(G.provider);X!==1&&X!==3&&X!==5||g.nY(G,Z,"vps",[G.FG]);bi(G,"xvt","t."+Z.toFixed(3)+";m."+S.toFixed(3)+";g.2;tt."+X+";np.0;c."+Q+";d."+R)}; UYS=function(G,X){G.bB||(bi(G,"fcnz",""+X),G.bB=!0)}; l0S=function(G){/[^a-zA-Z0-9;.!_-]/.test(G)&&(G=G.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return G}; g.QE=function(G,X,Q,R,S,Z,H,w,h,L){w=w===void 0?!1:w;g.I.call(this);var k=this;this.uB=G;this.schedule=X;this.policy=Q;this.vM=R;this.Yc=h;this.hS=L;this.kc=null;this.wb=this.Xm=this.CO=this.yH=0;this.bD=this.PH=this.isSuspended=!1;this.KO="";this.Mj={};this.Ps=NaN;this.Hs=0;this.T=null;this.Js=this.SA=!1;this.Pm=0;this.bB=!1;this.QH=this.As=0;this.R6=null;this.IU=!1;this.HO=function(){return k.uB.HO()}; this.timing=new nX0(this.hS);this.j=new Ah(this.schedule,this.policy);this.f7=new g.fU(this.VD,0,this);this.F7=new g.fU(this.VD,this.policy.R6,this);this.iQ=new g.fU(this.VD,1E3,this);this.Xq=new g.fU(this.VD,void 0,this);this.BM=new g.fU(function(){k.isSuspended||k.VD()},1E4,this); this.kS=new g.fU(this.u9A,250,this);this.S=this.currentTime=NaN;this.kH=new F7(5);this.Mi=this.timestampOffset=NaN;this.logger=new g.sp("dash");this.Fq=Infinity;this.gh={rz_:function(){return k.nL}, Aib:function(){return k.Y}, getAudioTrack:function(){return k.audioTrack}, jdB:function(){return k.videoTrack}, getManifest:function(){return k.vM}, Xhp:function(){return k.W}, VD:function(){k.VD()}, Ve:function(){k.yH=0;k.Ve()}, LdB:function(M){return X3(k,k.videoTrack,k.kc.W,M)}}; G=h&&h.RD();h&&(pry(h,this.vM,this.policy),this.Mi=Date.now());this.N=new wd(this,this.j,Q,this.vM,S,G);Q=akX(this.N,Z,H&&H.id);this.audioTrack=new Ff(this,this.policy,Q.audio,this.timing);this.videoTrack=new Ff(this,this.policy,Q.video,this.timing);this.videoTrack.V.DC=this.audioTrack.Nv();this.cM={updateend:this.BY,error:this.Ecd};g.d(this,this.f7);g.d(this,this.F7);g.d(this,this.iQ);g.d(this,this.Xq);g.d(this,this.BM);Q=this.policy.j1&&this.policy.N1?!EA0(this.videoTrack.N.info):!1;this.l9=IkT({Na:this.policy.J.Na|| Q,N1:this.policy.N1&&!Q,wy:this.policy.wy});this.J=JPU(this,this.policy,this.l9,this.schedule,this.kH,function(M,m){return I0y(k,M,m)}); this.Y=new nB(this,this.vM,this.policy,this.videoTrack,this.audioTrack,w);this.policy.BM&&this.policy.W&&(this.DC=new jWw(this.policy.IU,function(M,m){k.Ni(M,m)})); this.nL=new iU(this,this.vM,this.videoTrack,this.audioTrack,this.policy);w=this.policy.Z6?this.uB.getVideoData().R$:null;this.C=new X4(this,this.policy,this.videoTrack,this.audioTrack,this.Mj,this.Y,this.timing,this.j,this.schedule,this.vM,this.N,this.J,Q,w);g.d(this,this.C);this.V=new Z4(this,this.policy,this.videoTrack,this.audioTrack,this.vM,S,xP(this.uB.getVideoData()),H==null?void 0:H.id);g.d(this,this.V);mle(this.V,Z);this.W=new PVC(this.uB,this,this.policy,this.audioTrack,this.videoTrack,this.vM, this.schedule,this.N,this.V,this.timing,this.Y,this.DC);g.d(this,this.W);this.AT=this.uB.Sz.dG.h4;this.policy.C||dYU(this);if(this.policy.Co){var Y;this.N9=new yPZ(this.videoTrack.N.index,(Y=this.uB.getVideoData().clientPlaybackNonce)!=null?Y:"",this.uB,this.policy.As);this.policy.As===3&&(this.C7=new g.fU(this.PS,200,this),this.C7.start(),g.d(this,this.C7))}this.logger.debug("Created")}; dYU=function(G){var X,Q;if((X=G.AT)==null?0:(Q=X.Pe)==null?0:Q.itagDenylist){var R;G.dP((R=G.AT)==null?void 0:R.Pe.itagDenylist)}var S;if((S=G.AT)==null?0:S.playbackStartPolicy){var Z,H;DKZ(G.policy,(Z=G.AT)==null?void 0:Z.playbackStartPolicy,3,(H=G.AT)==null?void 0:H.V8())}if(G.policy.Yv){X=G.iL();var w;(Q=X?(w=G.AT)==null?void 0:w.u2.get(X):void 0)&&G.W.VC(Q)}if(!G.vM.AT){var h;w=(h=G.AT)==null?void 0:h.II;(w==null?0:w.Fl)&&(w==null?0:w.gx)&&G.vM.IW&&$l(G.vM,w.Fl,w.gx)}var L;((L=G.AT)==null?0:L.iG)&& (h=G.AT.iG.get(G.iL()||""))&&G.vM&&h.formatId&&(G=G.vM.Y.get(AQ(h.formatId)))&&(G.info.debugInfo=h.debugInfo)}; W0G=function(G,X){var Q=AQ(g.bn(X.N.info,G.vM.IW)),R,S=((R=G.Yc)==null?void 0:R.e3(Q))||[];if(S.length===0)return G.Ni("ombmsi",{}),!1;S=new HB(S);if(R=!G.policy.AT||isFinite(G.getCurrentTime())||G.uB.QI()){a:{R=G.getCurrentTime();S=g.e(S.LO);for(var Z=S.next();!Z.done;Z=S.next())if(Z=Z.value,Z.type===3&&R>=Z.C&&R<=Z.S){R=!0;break a}R=!1}R=!R}if(R)return G.Ni("ostmf",{ct:G.getCurrentTime(),a:X.N.info.vz()}),!1;(G=G.Yc)!=null&&(G.CY.get(Q).pI=!0);return!0}; pPZ=function(G){if(!G.vM.IW)return!0;var X=G.uB.getVideoData();if(G.uB.kf())return G.Ni("ombpa",{}),!1;var Q,R;if(!!((Q=G.AT)==null?0:(R=Q.II)==null?0:R.A1C)!==G.vM.It)return G.Ni("ombplmm",{}),!1;Q=X.N9||X.liveUtcStartSeconds||X.Fq;if(G.vM.It&&Q)return G.Ni("ombplst",{}),!1;if(G.vM.AT)return G.Ni("ombab",{}),!1;Q=Date.now();return bl(G.vM)&&!isNaN(G.Mi)&&Q-G.Mi>G.policy.jq*1E3?(G.Ni("ombttl",{}),!1):G.vM.xO&&G.vM.V||!G.policy.UI&&G.vM.isPremiere||V1(X)!==0&&!G.policy.N||X.G("html5_disable_onesie_media_for_mosaic")&& hL(X)||X.Yr()&&!X.G("html5_enable_onesie_media_for_lifa")&&X.isDaiEnabled()&&X.enableServerStitchedDai||X.G("html5_disable_onesie_media_for_lifa_eligible")&&w4(X)?!1:!0}; yLG=function(G,X){var Q=X.N,R=G.vM.IW;if(pPZ(G))if(G.Yc&&G.Yc.CY.has(AQ(g.bn(Q.info,R)))){if(R=AQ(g.bn(Q.info,R)),W0G(G,X)){var S=new HB(G.Yc.e3(R)),Z=function(H){try{if(H.sf())G.handleError(H.iE(),H.Gq()),no(X,H),w0(H.info)&&Qc(G.C,X,Q,!0),G.VD();else if(ZKl(G.C,H)){var w;(w=G.Y)==null||wB7(w,H.info,G.T);G.VD()}}catch(h){H=Mr(h),G.handleError(H.errorCode,H.details,H.severity),G.Fz()}}; Q.Y=!0;q9(S)&&(Vq(X,new GN(G.policy,R,S,G.Yc,Z)),AH(G.timing))}}else G.Ni("ombfmt",{})}; f0U=function(G,X){X=X||G.videoTrack&&G.videoTrack.W&&G.videoTrack.W.startTime||G.getCurrentTime();var Q=R2,R=G.videoTrack,S=G.N;X=S.nextVideo&&S.nextVideo.index.NG(X)||0;S.DC!==X&&(S.QH={},S.DC=X,hz(S,S.N));X=!S.N.isLocked()&&S.j>-1&&(0,g.TB)()-S.jX.N&&X.reason==="b";R||S||Q?(G.uB.mT({reattachOnConstraint:R?"u":S?"drm":"perf",lo:X.W,up:X.N}),G.policy.Fs||(G.V.N.W=!1)):(G.policy.Fs&&(G.V.N.W=!1),yc(G))}}else if(!ElG(G.N,X)&&G.videoTrack){G.logger.debug(function(){return"Setting constraint: r="+X.reason+" u="+X.N}); Q=G.N.N;JLC(G,OhX(G.N,X));f0U(G);R=X.isLocked()&&X.reason==="m"&&G.N.yH;S=G.policy.f4&&X.reason==="l"&&bQ(G.videoTrack);Q=Q.N>X.N&&X.reason==="b";var Z=G.N.Xm&&!mL();R||S||Q||Z?G.uB.mT({reattachOnConstraint:R?"u":S?"drm":Z?"codec":"perf"}):yc(G)}}; GTw=function(G,X,Q){if((!G.kc||PH(G.kc)&&!G.policy.H1)&&!G.nL.isSeeking()&&(G.policy.N||bQ(X)&&X.N.pL()&&G.N.AT)){var R=G.getCurrentTime()+Kri(G.j,X,Q);G.logger.debug(function(){return"Clearing back to "+R.toFixed(3)}); OjG(X,R)}}; JLC=function(G,X){X&&(G.logger.debug(function(){return"Logging new format: "+Qp(X.video.info)}),XvU(G.uB,new Qq(X.video,X.reason))); if(G.N.wb){var Q=U9w(G.N,"a");G.uB.ij(new Qq(Q.audio,Q.reason))}}; yc=function(G){g.DA(G.f7)}; qBG=function(G){G.policy.R6&&G.policy.wy&&Math.min(xKG(G.videoTrack),xKG(G.audioTrack))*1E3>G.policy.fz?g.DA(G.F7):G.VD()}; QGl=function(G,X){var Q=(0,g.TB)()-X,R=NW(G.audioTrack,!0)*1E3,S=NW(G.videoTrack,!0)*1E3;G.logger.debug(function(){return"Appends paused for "+Q}); if(G.policy.Y&&(G.Ni("apdpe",{dur:Q.toFixed(),abuf:R.toFixed(),vbuf:S.toFixed()}),iQ(G.policy))){var Z=bU(G.j);G.Ni("sdps",{ct:X,ah:R.toFixed(),vh:S.toFixed(),mr:vv(G.j,G.bD,Z),bw:Z.toFixed(),js:G.isSeeking(),re:+G.bD,ps:(G.policy.lO||"").toString(),rn:(G.policy.vT||"").toString()})}}; Row=function(G){if(FAC(G.videoTrack))return G.logger.debug("Pausing appends for server-selectable format"),"ssf";if(G.policy.Xm&&VCT(G.videoTrack)&&VCT(G.audioTrack))return"updateEnd";if($3(G.audioTrack)||$3(G.videoTrack)&&G.videoTrack.N.info.ZC!=="f")return"";if(G.nL.isSeeking()){var X=G.j;var Q=G.videoTrack;var R=G.audioTrack;if(X.policy.N){var S=X.policy.L2;iQ(X.policy)&&(S=vv(X,!1,bU(X)));X=S;Q=NW(R,!0)>=X&&NW(Q,!0)>=X}else Q.Y.length||R.Y.length?(S=Q.N.info.jA+R.N.info.jA,S=10*(1-bU(X)/S),X= Math.max(S,X.policy.L2),Q=NW(R,!0)>=X&&NW(Q,!0)>=X):Q=!0;if(!Q)return"abr";Q=G.videoTrack;if(Q.Y.length>0&&Q.V.W.length===1&&RlG(Q.V).info.T360);R=iQ(G.policy)&&G.policy.xv;if(!G.bD||!R&&Q)return"";Q=G.policy.Bi;iQ(G.policy)&&(Q=vv(G.j,G.bD,bU(G.j)));Q=gM7(G.videoTrack,G.getCurrentTime(),Q)||gM7(G.audioTrack,G.getCurrentTime(), Q);return iQ(G.policy)?Q?"mbnm":"":(G.videoTrack.Y.length>0||G.audioTrack.Y.length>0||vMw(G.C,G.videoTrack,G.audioTrack)||vMw(G.C,G.audioTrack,G.videoTrack))&&Q?"nord":""}; SEC=function(G){if(G.J){var X=G.J.VD(G.audioTrack,wO(G.kc.W.Zu()));X&&G.uB.seekTo(X,{F5:!0,nY:"pollSubsegmentReadahead",V7:!0})}}; kTi=function(G,X,Q){if(G.policy.Xm&&VCT(X))return!1;if(Q.dT())return!0;if(!Q.WH())return!1;var R=hH(X);if(!R||R.info.type===6)return!1;var S;if(G.policy.qz||((S=G.Y)==null?0:YpC(S,X,R.info.oU)))G.wb=0;else return G.nL.isSeeking()&&yc(G),G.wb=G.wb||(0,g.TB)(),!1;if(!X3(G,X,Q,R.info))return!1;if(G.vM.W&&R.info.W===0){if(S=ZEG(X,Q,R)){var Z=tz(X);G.Ni("initchg",{it:R.info.N.info.id,sr:!!Z&&Z.N===R.info.N,ty:R.info.type,seg:R.info.oU})}Z=g.AR(R.info.N.info);G.policy.fd&&Z&&!S&&bPw(R)}Z=G.J&&!!G.J.V&& X.N.info.audio;S=G.vM.isManifestless||R.C;if(!(G.vM.W&&R.info.W!==0||S&&!Z)&&HEZ(G,X,Q,R))return!0;if(Z)return!1;Z=S3(G,X);Z=G.getCurrentTime()+Z;if(R.info.C>Z)return G.policy.N&&qE7(G,X),G.policy.GV&&B$7(X.V,Z,!1),!1;wvS(G,X);var H;G.policy.lL&&Q===((H=G.kc)==null?void 0:H.N)&&G.bB&&(Q.SK()===0?(G.bB=!1,G.policy.lL=!1):G.As=Q.SK());if(!hoi(G,Q,R,X))return!1;G.policy.Xm&&R.info.ou()?(G.uB.Z().n7()&&G.Ni("eosl",{ls:R.info.Hn()}),R.isLocked=!0):(X.Q_(R),glS(G.N,R.info),G.logger.debug(function(){return"Appended "+ R.info.Hn()+", buffered: "+Sr(Q.Zu())})); S&&Ld7(G,R.info.N.KI);return!0}; qE7=function(G,X){X===G.videoTrack?G.Xm=G.Xm||(0,g.TB)():G.CO=G.CO||(0,g.TB)()}; wvS=function(G,X){X===G.videoTrack?G.Xm=0:G.CO=0}; hoi=function(G,X,Q,R){var S=G.policy.F7?(0,g.TB)():0,Z=Q.C&&Q.info.N.N||void 0,H=Q.W;Q.C&&(H=YEZ(G,Q,H)||H);var w=q2(H);H=G.policy.F7?(0,g.TB)():0;X=jGl(G,X,w,Q.info,Z);(R=R.j)!=null&&(Z=Q.info,S=H-S,H=(0,g.TB)()-H,!R.W||jEV(R.W,Z)&&R.W.oU===Z.oU||R.flush(),R.V+=S,R.Y+=H,S=1,!R.W&&Z.W&&(S=2),mO(R,S,X),H=Math.ceil(Z.W/1024),S===2&&R.N.add(H),R.N.add(Math.ceil((Z.W+Z.Y)/1024)-H),R.W=Z);G.QH=0;if(X===0)return G.SA&&(G.logger.debug("Retry succeed, back to normal append logic."),G.SA=!1,G.Js=!1),G.Hs= 0,!0;if(X===2||X===5)return Mjl(G,"checked",X,Q.info),!1;if(X===1){if(!G.SA)return G.logger.debug("QuotaExceeded, retrying."),G.SA=!0,!1;if(!G.Js)return G.Js=!0,G.uB.seekTo(G.getCurrentTime(),{nY:"quotaExceeded",V7:!0}),!1;Q.info.oC()?(S=G.policy,S.SA=Math.floor(S.SA*.8),S.Yc=Math.floor(S.Yc*.8)):(S=G.policy,S.bB=Math.floor(S.bB*.8),S.Yc=Math.floor(S.Yc*.8));G.policy.N?SR(G.V.N,Q.info.N,!1):k3(G.N,Q.info.N)}G.uB.mT({reattachOnAppend:X});return!1}; YEZ=function(G,X,Q){var R;if(R=G.policy.v5&&G.kc&&!G.kc.T&&!G.uB.eH())X=X.info.N.info,R=X.A1()&&Wj(X)&&X.video&&X.video.width<3840&&X.video.width>X.video.height;if(R&&(G.kc.T=!0,Pj('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return Q=XmV(Q),G.policy.Y&&G.Ni("sp4k",{s:!!Q}),Q}; Mjl=function(G,X,Q,R){var S="fmt.unplayable",Z=1;Q===5||Q===3?(S="fmt.unparseable",G.policy.N?!R.N.info.video||Zu(G.V.N).size>0||SR(G.V.N,R.N,!1):!R.N.info.video||Zu(G.N.C).size>0||k3(G.N,R.N)):Q===2&&(G.Hs<15?(G.Hs++,S="html5.invalidstate",Z=0):S="fmt.unplayable");R=SK(R);var H;R.mrs=(H=G.kc)==null?void 0:er(H);R.origin=X;R.reason=Q;R.trg="appenderr";G.handleError(S,R,Z)}; P$0=function(G,X,Q,R,S){var Z=G.vM;var H=G.policy.N,w=!1,h=-1,L;for(L in Z.N){var k=Gv(Z.N[L].info.mimeType)||Z.N[L].info.oC();if(R===k)if(k=Z.N[L].index,k.PD(X.oU)){w=k;var Y=X,M=w.DO(Y.oU);M&&M.startTime!==Y.startTime?(w.segments=[],w.aN(Y),w=!0):w=!1;w?h=X.oU:!X.pending&&H&&(Y=k.getDuration(X.oU),Y!==X.duration&&(Z.publish("clienttemp","mfldurUpdate",{itag:Z.N[L].info.itag,seg:X.oU,od:Y,nd:X.duration},!1),k.aN(X),w=!0))}else k.aN(X),w=!0}h>=0&&(H={},Z.publish("clienttemp","resetMflIndex",(H[R? "v":"a"]=h,H),!1));Z=w;V9G(G.nL,X,R,Z);if(G.policy.BM&&G.policy.W&&(h=X.AS||null)){var m;H=(m=G.W)==null?void 0:FPl(m).requestNumber;var u;(u=G.DC)==null||MKZ(u,h,H,X.oU)}G.Y.Aq(X,Q,R,S);X.oU===G.vM.xO&&Z&&Dk(G.vM)&&X.startTime>Dk(G.vM)&&(G.vM.DC=X.startTime+(isNaN(G.timestampOffset)?0:G.timestampOffset),G.nL.isSeeking()&&G.nL.targetTime5)return G.QH= 0,G.uB.mT({initSegStuck:1,as:R.info.Hn()}),!0}else G.QH=0,G.R6=R;G.policy.pz&&(Q.abort(),(H=X.j)!=null&&(mO(H,4),H.flush()));S=jGl(G,Q,Z,h,S);var L;(L=X.j)==null||d9V(L,S,h);if(S!==0)return mzi(G,S,R),!0;R.info.oC()?if0(G.timing):Gul(G.timing);G.logger.debug(function(){return"Appended init for "+R.info.N.info.id}); Ld7(G,R.info.N.KI);return Q.Dg()}; ZEG=function(G,X,Q){if(X.DX()==null){G=tz(G);if(!(X=!G||G.N!==Q.info.N)){a:if(G=G.j,Q=Q.info.j,G.length!==Q.length)Q=!1;else{for(X=0;X1)return 6;H.QH=new g.fU(function(){var w=hH(H);G.U_()||w==null||!w.isLocked?G.uB.Z().n7()&&G.Ni("eosl",{delayA:w==null?void 0:w.info.Hn()}):oHl(H)?(G.uB.Z().n7()&&G.Ni("eosl",{dunlock:w==null?void 0:w.info.Hn()}),uKG(G,H===G.audioTrack)):(G.Ni("nue",{ls:w.info.Hn()}),w.info.AT+=1,G.kc&&G.Ve())},1E4,G); G.uB.Z().n7()&&G.Ni("eosl",{delayS:R.Hn()});H.QH.start()}G.policy.Jn&&(R==null?void 0:R.N)instanceof Lh&&R.ou()&&G.Ni("poseos",{itag:R.N.info.itag,seg:R.oU,lseg:R.N.index.i9(),es:R.N.index.Y});X.appendBuffer(Q,R,S)}catch(w){if(w instanceof DOMException){if(w.code===11)return 2;if(w.code===12)return 5;if(w.code===22||w.message.indexOf("Not enough storage")===0)return X=Object.assign({name:"QuotaExceededError",buffered:Sr(X.Zu()).replace(/,/g,"_"),vheap:fo(G.videoTrack),aheap:fo(G.audioTrack),message:g.zX(w.message, 3),track:G.kc?X===G.kc.W?"v":"a":"u"},RAw()),G.handleError("player.exception",X),1;g.aU(w)}return 4}return G.kc.Bz()?3:0}; wI=function(G,X,Q){N4S(G,Q.nY||"unknown");G.uB.seekTo(X,Q)}; Ld7=function(G,X){X&&G.uB.Jb(new rd(X.key,X.type))}; Om=function(G,X){G.uB.uI(X)}; S3=function(G,X){if(G.policy.AT&&G.SA&&!G.bD)return G.policy.m5;if(G.SA&&!G.bD)return 3;if(G.isSuspended)return 1;var Q;if((Q=G.kc)==null?0:Q.kc&&Q.kc.streaming===!1)return 4;Q=(X.N.info.audio?G.policy.bB:G.policy.SA)/(X.jA*G.policy.t8);if(G.policy.sL>0&&G.kc&&PH(G.kc)&&(X=X.N.info.video?G.kc.W:G.kc.N)&&!X.Dg()){X=X.Zu();var R=Zt(X,G.getCurrentTime());R>=0&&(X=G.getCurrentTime()-X.start(R),Q+=Math.max(0,Math.min(X-G.policy.sL,G.policy.nz)))}G.policy.Yc>0&&(Q=Math.min(Q,G.policy.Yc));return Q}; rPS=function(G,X){return(S3(G,X)+G.policy.S7)*X.jA}; sGG=function(G){G.KO&&!G.isSuspended&&NK(G.schedule)&&(PUG(G,G.KO),G.KO="")}; PUG=function(G,X){Nz(X,"cms",function(Q){G.policy.Y&&G.Ni("pathprobe",Q)},function(Q){G.uB.handleError(Q)})}; TUy=function(G,X){if(G.kc&&G.kc.V&&!G.kc.Bz()&&(X.TV=NW(G.videoTrack),X.W=NW(G.audioTrack),G.policy.Y)){var Q=fo(G.videoTrack),R=fo(G.audioTrack),S=Sr(G.kc.W.Zu(),"_",5),Z=Sr(G.kc.N.Zu(),"_",5);Object.assign(X.N,{lvq:Q,laq:R,lvb:S,lab:Z})}X.bandwidthEstimate=nE(G.j);var H;(H=G.audioTrack.j)==null||H.flush();var w;(w=G.videoTrack.j)==null||w.flush();G.logger.debug(function(){return kE(X.N)})}; KdT=function(G,X){G.T=X;G.Y&&(G.Y.Y=X);G.T.Ht(G.videoTrack.N.info.A1());G.C.W=G.T;G.policy.W&&(G.W.T=G.T)}; rhU=function(G,X){if(G.kc&&G.kc.W){if(G.policy.rR){var Q=dKi(G.audioTrack);if(Q&&Q.vz()){var R=G.uB;if(R.Zv&&(R.Zv.N=Q,Q=R.Q0,Q.qoe)){Q=Q.qoe;R=R.Zv;var S=g.vd(Q.provider);tA0(Q,S,R)}}}G.policy.zQ&&(Q=dKi(G.videoTrack))&&Q.oC()&&(R=G.uB,R.WG&&(R.WG.N=Q,Q=R.Q0,Q.qoe&&B4y(Q.qoe,R.WG)));X-=isNaN(G.timestampOffset)?0:G.timestampOffset;G.getCurrentTime()!==X&&G.resume();G.nL.isSeeking()&&G.kc&&!G.kc.Bz()&&(R=G.getCurrentTime()<=X&&X=X&&I0y(G,R.startTime,!1)}); return Q&&Q.startTimeG.getCurrentTime())return Q.start/1E3;return Infinity}; xLV=function(G){if(G.uB.getVideoData().isLivePlayback)return!1;var X=G.uB.EY();if(!X)return!1;X=X.getDuration();if(G.kc&&G.kc.N&&G.kc.W){var Q=G.getCurrentTime(),R=G.kc.N.Zu();G=G.kc.W.Zu();R=R?qs(R,Q):Q;Q=G?qs(G,Q):Q;Q=Math.min(R,Q);X=isNaN(Q)?!1:Q>=X-.01}else X=!1;return X}; mzi=function(G,X,Q){G.policy.gR&&Ec(G.uB.getVideoData())?(G.uB.Yh()||Mjl(G,"sepInit",X,Q.info),tE7(G.uB,"sie")):Mjl(G,"sepInit",X,Q.info)}; wMw=function(G){return G.uB.SO()0){var R=Q.N.shift();I4w(Q,R.info)}Q.N.length>0&&(R=Q.N[0].time-(0,g.TB)(),Q.W.start(Math.max(0,R)))}},0); g.d(this,this.W);X.subscribe("widevine_set_need_key_info",this.V,this)}; I4w=function(G,X){a:{var Q=X.cryptoPeriodIndex;if(isNaN(Q)&&G.Y.size>0)Q=!0;else{for(var R=g.e(G.Y.values()),S=R.next();!S.done;S=R.next())if(S.value.cryptoPeriodIndex===Q){Q=!0;break a}Q=!1}}G.publish("log_qoe",{wvagt:"reqnews",canskip:Q});Q||G.publish("rotated_need_key_info_ready",X)}; daV=function(){var G={};var X=G.url;var Q=G.interval;G=G.retries;this.url=X;this.interval=Q;this.retries=G}; Wq7=function(G,X){this.statusCode=G;this.message=X;this.W=this.heartbeatParams=this.errorMessage=null;this.N={};this.nextFairplayKeyId=null}; pdC=function(G,X,Q){Q=Q===void 0?"":Q;g.I.call(this);this.message=G;this.requestNumber=X;this.timer=Q;this.onError=this.onSuccess=null;this.N=new g.gF(5E3,2E4,.2)}; yYG=function(G,X,Q){G.onSuccess=X;G.onError=Q}; DaX=function(G,X,Q,R){var S={timeout:3E4,onSuccess:function(Z){if(!G.U_()){aa("drm_net_r",void 0,G.timer);var H=Z.status==="LICENSE_STATUS_OK"?0:9999,w=null;if(Z.license)try{w=c1(Z.license)}catch(u){g.aU(u)}if(H!==0||w){w=new Wq7(H,w);H!==0&&Z.reason&&(w.errorMessage=Z.reason);if(Z.authorizedFormats){H={};for(var h=[],L={},k=g.e(Z.authorizedFormats),Y=k.next();!Y.done;Y=k.next())if(Y=Y.value,Y.trackType&&Y.keyId){var M=f4T[Y.trackType];if(M){M==="HD"&&Z.isHd720&&(M="HD720");Y.isHdr&&(M+="HDR");H[M]|| (h.push(M),H[M]=!0);var m=null;try{m=c1(Y.keyId)}catch(u){g.aU(u)}m&&(L[g.Oo(m,4)]=M)}}w.W=h;w.N=L}Z.nextFairplayKeyId&&(w.nextFairplayKeyId=Z.nextFairplayKeyId);Z.sabrLicenseConstraint&&(w.sabrLicenseConstraint=c1(Z.sabrLicenseConstraint));Z=w}else Z=null;if(Z)G.onSuccess(Z,G.requestNumber);else G.onError(G,"drm.net","t.p;p.i")}}, onError:function(Z){if(!G.U_())if(Z&&Z.error)Z=Z.error,G.onError(G,"drm.net.badstatus","t.r;p.i;c."+Z.code+";s."+Z.status,Z.code);else G.onError(G,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){G.onError(G,"drm.net","rt.req."+G.requestNumber)}}; R&&(S.r0="Bearer "+R);g.fH(Q,"player/get_drm_license",X,S)}; NRG=function(G,X,Q,R){g.ic.call(this);this.videoData=G;this.tT=X;this.T=Q;this.sessionId=R;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.AT=this.yH=!1;this.Y=null;this.Yc=[];this.V=[];this.authorizedFormats=[];this.J=!1;this.N={};this.status="";this.S=NaN;this.W=G.C;this.cryptoPeriodIndex=Q.cryptoPeriodIndex;G={};Object.assign(G,this.tT.N);G.cpn=this.videoData.clientPlaybackNonce;this.videoData.Mi&&(G.vvt=this.videoData.Mi,this.videoData.mdxEnvironment&&(G.mdx_environment= this.videoData.mdxEnvironment));this.tT.Yc&&(G.authuser=this.tT.Yc);this.tT.pageId&&(G.pageid=this.tT.pageId);isNaN(this.cryptoPeriodIndex)||(G.cpi=this.cryptoPeriodIndex.toString());var S=(S=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.IB()))?S[1]:"";S==="ATV"&&(G.cdt=S);this.C=G;this.C.session_id=R;this.j=!0;this.W.flavor==="widevine"&&(this.C.hdr="1");this.W.flavor==="playready"&&(X=Number(Pm(X.experiments,"playready_first_play_expiration")),!isNaN(X)&&X>=0&&(this.C.mfpe=""+X),this.j=!1);X="";g.hn(this.W)? wn(this.W)?(R=Q.W)&&(X="https://www.youtube.com/api/drm/fps?ek="+rii(R)):(X=Q.initData.subarray(4),X=new Uint16Array(X.buffer,X.byteOffset,X.byteLength/2),X=String.fromCharCode.apply(null,X).replace("skd://","https://")):X=this.W.W;this.baseUrl=X;this.fairplayKeyId=K0(this.baseUrl,"ek")||"";if(X=K0(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(X);this.Yc=Q.A1?[g.Oo(Q.initData,4)]:Q.Y;qH(this,{sessioninit:Q.cryptoPeriodIndex});this.status="in"}; bYX=function(G,X){qH(G,{createkeysession:1});G.status="gr";aa("drm_gk_s",void 0,G.videoData.AT);G.url=AY7(G);try{G.Y=X.createSession(G.T,function(Q){qH(G,{m:Q})})}catch(Q){X="t.g"; Q instanceof DOMException&&(X+=";c."+Q.code);G.publish("licenseerror","drm.unavailable",1,X,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}G.Y&&(nKe(G.Y,function(Q,R){$aX(G,Q,R)},function(Q,R,S){if(!G.U_()){R=void 0; var Z=1;g.hn(G.W)&&g.ZK(G.tT)&&G.tT.G("html5_enable_safari_fairplay")&&S===1212433232&&(R="ERROR_HDCP",Z=G.tT.G("html5_safari_fairplay_ignore_hdcp")?0:Z);G.error("drm.keyerror",Z,Q,R)}},function(){G.U_()||(qH(G,{onkyadd:1}),G.AT||(G.publish("sessionready"),G.AT=!0))},function(Q){G.Hf(Q)}),g.d(G,G.Y))}; AY7=function(G){var X=G.baseUrl;oBX(X)||G.error("drm.net",2,"t.x");if(!K0(X,"fexp")){var Q=["23898307","23914062","23916106","23883098"].filter(function(S){return G.tT.experiments.experiments[S]}); Q.length>0&&(G.C.fexp=Q.join())}Q=g.e(Object.keys(G.C));for(var R=Q.next();!R.done;R=Q.next())R=R.value,X=DPG(X,R,G.C[R]);return X}; $aX=function(G,X,Q){if(!G.U_())if(X){qH(G,{onkmtyp:Q});G.status="km";switch(Q){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":vKi(G,X);return;default:G.publish("ctmp","message_type",{t:Q,l:X.byteLength})}G.yH||(aa("drm_gk_f",void 0,G.videoData.AT),G.yH=!0,G.publish("newsession",G));if(ZC(G.W)&&(X=JYi(X),!X))return;X=new pdC(X,++G.requestNumber,G.videoData.AT);yYG(X,function(R){iYl(G,R)},function(R,S,Z){if(!G.U_()){var H=0; R.N.W>=3&&(H=1,S="drm.net.retryexhausted");qH(G,{onlcsrqerr:S,info:Z});G.error(S,H,Z);G.shouldRetry(j0(H),R)&&Gc0(G,R)}}); g.d(G,X);XxV(G,X)}else G.error("drm.unavailable",1,"km.empty")}; vKi=function(G,X){qH(G,{sdpvrq:1});G.S=Date.now();if(G.W.flavor!=="widevine")G.error("drm.provision",1,"e.flavor;f."+G.W.flavor+";l."+X.byteLength);else{var Q={cpn:G.videoData.clientPlaybackNonce};Object.assign(Q,G.tT.N);Q=g.on("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",Q);X={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, X)}),responseType:"arraybuffer"};g.eg(Q,X,3,500).then(JT(function(R){R=R.xhr;if(!G.U_()){R=new Uint8Array(R.response);var S=String.fromCharCode.apply(null,R);try{var Z=JSON.parse(S)}catch(H){}Z&&Z.signedResponse?(G.publish("ctmp","drminfo",{provisioning:1}),Z=(Date.now()-G.S)/1E3,G.S=NaN,G.publish("ctmp","provs",{et:Z.toFixed(3)}),G.Y&&G.Y.update(R)):(Z=Z&&Z.error&&Z.error.message,R="e.parse",Z&&(R+=";m."+Z),G.error("drm.provision",1,R))}}),JT(function(R){G.U_()||G.error("drm.provision",1,"e."+R.errorCode+ ";c."+(R.xhr&&R.xhr.status))}))}}; w6=function(G){var X;if(X=G.j&&G.Y!=null)G=G.Y,X=!(!G.N||!G.N.keyStatuses);return X}; XxV=function(G,X){G.status="km";aa("drm_net_s",void 0,G.videoData.AT);var Q=new g.yB(G.tT.wJ),R={context:g.He(Q.config_||g.Z3())};R.drmSystem=QiT[G.W.flavor];R.videoId=G.videoData.videoId;R.cpn=G.videoData.clientPlaybackNonce;R.sessionId=G.sessionId;R.licenseRequest=g.Oo(X.message);R.drmParams=G.videoData.drmParams;isNaN(G.cryptoPeriodIndex)||(R.isKeyRotated=!0,R.cryptoPeriodIndex=G.cryptoPeriodIndex);var S,Z,H=!!((S=G.videoData.W)==null?0:(Z=S.video)==null?0:Z.isHdr());R.drmVideoFeature=H?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(R.context&&R.context.client){if(S=G.tT.N)R.context.client.deviceMake=S.cbrand,R.context.client.deviceModel=S.cmodel,R.context.client.browserName=S.cbr,R.context.client.browserVersion=S.cbrver,R.context.client.osName=S.cos,R.context.client.osVersion=S.cosver;R.context.user=R.context.user||{};R.context.request=R.context.request||{};G.videoData.Mi&&(R.context.user.credentialTransferTokens=[{token:G.videoData.Mi,scope:"VIDEO"}]);R.context.request.mdxEnvironment=G.videoData.mdxEnvironment|| R.context.request.mdxEnvironment;G.videoData.R6&&(R.context.user.kidsParent={oauthToken:G.videoData.R6});g.hn(G.W)&&(R.fairplayKeyId=g.Oo(aRw(G.fairplayKeyId)));g.z$(G.tT,g.qY(G.videoData)).then(function(w){DaX(X,R,Q,w);G.status="rs"})}else G.error("drm.net",2,"t.r;ic.0")}; iYl=function(G,X){if(!G.U_())if(qH(G,{onlcsrsp:1}),G.status="rr",X.statusCode!==0)G.error("drm.auth",1,"t.f;c."+X.statusCode,X.errorMessage||void 0);else{aa("drm_kr_s",void 0,G.videoData.AT);if(X.heartbeatParams&&X.heartbeatParams.url&&G.videoData.G("outertube_streaming_data_always_use_staging_license_service")){var Q=G.W.W.match(/(.*)youtube.com/g);Q&&(X.heartbeatParams.url=Q[0]+X.heartbeatParams.url)}X.heartbeatParams&&G.publish("newlicense",X.heartbeatParams);X.W&&(G.V=X.W,G.videoData.At||G.publish("newlicense", new daV),G.videoData.At=!0,G.J=p0(G.V,function(R){return R.includes("HDR")})); X.N&&(G.tT.G("html5_enable_vp9_fairplay")&&wn(G.W)?(Q=g.Oo(aRw(G.fairplayKeyId),4),G.N[Q]={type:X.N[Q],status:"unknown"}):G.N=Q2(X.N,function(R){return{type:R,status:"unknown"}})); qK(G.W)&&(X.message=Wsw(g.Oo(X.message)));G.Y&&(qH(G,{updtks:1}),G.status="ku",G.Y.update(X.message).then(function(){aa("drm_kr_f",void 0,G.videoData.AT);w6(G)||(qH(G,{ksApiUnsup:1}),G.publish("keystatuseschange",G))},function(R){R="msuf.req."+G.requestNumber+";msg."+g.zX(R.message,3); G.error("drm.keyerror",1,R)})); g.hn(G.W)&&G.publish("fairplay_next_need_key_info",G.baseUrl,X.nextFairplayKeyId);G.tT.G("html5_enable_vp9_fairplay")&&wn(G.W)&&G.publish("qualitychange",RrG(G.V));X.sabrLicenseConstraint&&G.publish("sabrlicenseconstraint",X.sabrLicenseConstraint)}}; Gc0=function(G,X){var Q=X.N.getValue();Q=new g.fU(function(){XxV(G,X)},Q); g.d(G,Q);Q.start();g.UZ(X.N);qH(G,{rtyrq:1})}; S1U=function(G,X){for(var Q=[],R=g.e(Object.keys(G.N)),S=R.next();!S.done;S=R.next())S=S.value,Q.push(S+"_"+G.N[S].type+"_"+G.N[S].status);return Q.join(X)}; Zqw=function(G){var X={};X[G.status]=w6(G)?S1U(G,"."):G.V.join(".");return X}; HqS=function(G,X,Q){var R={};R.isHdr=X.includes("HDR");switch(X.replace("HDR","").replace("720","")){case "AUDIO":R.trackType=1;break;case "SD":R.trackType=2;break;case "HD":R.trackType=3;break;case "UHD1":R.trackType=4;break;case "UHD2":R.trackType=5;break;default:R.trackType=0}!R.trackType||Q[X]||w6(G)&&!he(G,X)||(G.authorizedFormats.push(R),Q[X]=!0)}; he=function(G,X){for(var Q in G.N)if(G.N[Q].status==="usable"&&G.N[Q].type===X)return!0;return!1}; q1y=function(G,X){for(var Q in G.N)if(G.N[Q].type===X)return G.N[Q].status}; qH=function(G,X){var Q=Q===void 0?!1:Q;kE(X);(Q||G.tT.n7())&&G.publish("ctmp","drmlog",X)}; wxl=function(G){var X=G[0];G[0]=G[3];G[3]=X;X=G[1];G[1]=G[2];G[2]=X;X=G[4];G[4]=G[5];G[5]=X;X=G[6];G[6]=G[7];G[7]=X}; RrG=function(G){return g.rH(G,"UHD2")||g.rH(G,"UHD2HDR")?"highres":g.rH(G,"UHD1")||g.rH(G,"UHD1HDR")?"hd2160":g.rH(G,"HD")||g.rH(G,"HDHDR")?"hd1080":g.rH(G,"HD720")||g.rH(G,"HD720HDR")?"hd720":"large"}; JYi=function(G){for(var X="",Q=0;Q'.charCodeAt(R);G=G.Y.createSession("video/mp4",X,Q);return new Lq(null,null,null,null,G)}; ocy=function(G,X){var Q=G.S[X.sessionId];!Q&&G.V&&(Q=G.V,G.V=null,Q.sessionId=X.sessionId,G.S[X.sessionId]=Q);return Q}; jiy=function(G,X){var Q=G.subarray(4);Q=new Uint16Array(Q.buffer,Q.byteOffset,Q.byteLength/2);Q=String.fromCharCode.apply(null,Q).match(/ek=([0-9a-f]+)/)[1];for(var R="",S=0;S19.2999?(G=Q.oP,Q=Q.IP,Q>=G&&(Q=G* .75),X=(G-Q)*.5,Q=new Zn(X,G,G-X-Q,this)):Q=null;break a;case "widevine":Q=new Hx(X,this,G);break a;default:Q=null}if(this.C=Q)g.d(this,this.C),this.C.subscribe("rotated_need_key_info_ready",this.LH,this),this.C.subscribe("log_qoe",this.YU,this);kM(this.tT.experiments);this.YU({cks:this.N.getInfo()})}; POV=function(G){var X=Y1y(G.V);X?X.then(JT(function(){T6G(G)}),JT(function(Q){if(!G.U_()){g.aU(Q); var R="t.a";Q instanceof DOMException&&(R+=";n."+Q.name+";m."+Q.message);G.publish("licenseerror","drm.unavailable",1,R,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(G.YU({mdkrdy:1}),G.j=!0); G.AT&&(X=Y1y(G.AT))}; erG=function(G,X,Q){G.SA=!0;Q=new rd(X,Q);G.tT.G("html5_eme_loader_sync")&&(G.S.get(X)||G.S.set(X,Q));KES(G,Q)}; KES=function(G,X){if(!G.U_()){G.YU({onInitData:1});if(G.tT.G("html5_eme_loader_sync")&&G.videoData.Y&&G.videoData.Y.N){var Q=G.J.get(X.initData);X=G.S.get(X.initData);if(!Q||!X)return;X=Q;Q=X.initData;G.S.remove(Q);G.J.remove(Q)}G.YU({initd:X.initData.length,ct:X.contentType});if(G.N.flavor==="widevine")if(G.Mi&&!G.videoData.isLivePlayback)jf(G);else{if(!(G.tT.G("vp9_drm_live")&&G.videoData.isLivePlayback&&X.A1)){G.Mi=!0;Q=X.cryptoPeriodIndex;var R=X.N;bhG(X);X.A1||(R&&X.N!==R?G.publish("ctmp","cpsmm", {emsg:R,pssh:X.N}):Q&&X.cryptoPeriodIndex!==Q&&G.publish("ctmp","cpimm",{emsg:Q,pssh:X.cryptoPeriodIndex}));G.publish("widevine_set_need_key_info",X)}}else G.LH(X)}}; T6G=function(G){if(!G.U_())if(G.tT.G("html5_drm_set_server_cert")||wn(G.N)){var X=G.V.setServerCertificate();X?X.then(JT(function(Q){G.tT.n7()&&G.publish("ctmp","ssc",{success:Q})}),JT(function(Q){G.publish("ctmp","ssce",{n:Q.name, m:Q.message})})).then(JT(function(){rew(G)})):rew(G)}else rew(G)}; rew=function(G){G.U_()||(G.j=!0,G.YU({onmdkrdy:1}),jf(G))}; ane=function(G){return G.N.flavor==="widevine"&&G.videoData.G("html5_drm_cpi_license_key")}; jf=function(G){if(G.SA&&G.j&&!G.DC){for(;G.Y.length;){var X=G.Y[0],Q=ane(G)?vlX(X):g.Oo(X.initData);if(wn(G.N)&&!X.W)G.Y.shift();else{if(G.W.get(Q))if(G.N.flavor!=="fairplay"||wn(G.N)){G.Y.shift();continue}else G.W.delete(Q);bhG(X);break}}G.Y.length&&G.createSession(G.Y[0])}}; EcU=function(G){var X,Q;g.F(function(R){if(R.W==1){var S;if(S=g.V9()){var Z;S=!((Z=G.V.W)==null||!Z.getMetrics)}return S?g.l(R,G.V.getMetrics(),2):R.return()}X=R.N;if(!X)return R.return();Jv(X)||(X=g.jx(X));Q=/^[A-Za-z0-9_-]+={0,3}$/;Q.test(X)||(X=g.zX(X,void 0,!0));G.publish("ctmp","drm",{metrics:X});g.rX(R)})}; xHU=function(){var G=Ufl();return!(!G||G==="visible")}; zrS=function(G){var X=Oq7();X&&document.addEventListener(X,G,!1)}; cei=function(G){var X=Oq7();X&&document.removeEventListener(X,G,!1)}; Oq7=function(){if(document.visibilityState)var G="visibilitychange";else{if(!document[qM+"VisibilityState"])return"";G=qM+"visibilitychange"}return G}; gcV=function(G){g.I.call(this);var X=this;this.uB=G;this.Nf=0;this.S=this.W=this.C=!1;this.V=0;this.hT=this.uB.Z();this.videoData=this.uB.getVideoData();this.Y=g.i2(this.hT.experiments,"html5_delayed_retry_count");this.N=new g.fU(function(){X.uB.rZ()},g.i2(this.hT.experiments,"html5_delayed_retry_delay_ms")); g.d(this,this.N)}; COZ=function(G,X,Q){var R=G.videoData.W,S=G.videoData.V,Z=G.hT.G("html5_disable_codec_fallback_for_drm")&&G.videoData.VJ();Ec(G.uB.getVideoData())&&G.hT.G("html5_gapless_fallback_on_qoe_restart")&&tE7(G.uB,"pe");if((X==="progressive.net.retryexhausted"||X==="fmt.unplayable"||X==="fmt.decode")&&!G.uB.Kv.C&&R&&R.itag==="22")return G.uB.Kv.C=!0,G.uf("qoe.restart",{reason:"fmt.unplayable.22"}),G.uB.eC(),!0;var H=!1;if(G.videoData.isExternallyHostedPodcast){if(H=G.videoData.GjC)Q.mimeType=H.type,G.Ni("3pp", {url:H.url});Q.ns="3pp";G.uB.WR(X,1,"VIDEO_UNAVAILABLE",kE((new g.YE(X,Q,1)).details));return!0}var w=G.Nf+3E4<(0,g.TB)()||G.N.isActive();if(G.hT.G("html5_empty_src")&&G.videoData.isAd()&&X==="fmt.unplayable"&&/Empty src/.test(""+Q.msg))return Q.origin="emptysrc",G.uf("auth",Q),!0;w||UHU(G.uB.xg())||(Q.nonfg="paused",w=!0,G.uB.pauseVideo());(X==="fmt.decode"||X==="fmt.unplayable")&&(S==null?0:DP(S)||Nr(S))&&(vqV(G.hT.C,S.ZC),Q.acfallexp=S.ZC,H=w=!0);!w&&G.Y>0&&(G.N.start(),w=!0,Q.delayed="1",--G.Y); S=G.uB.loader;w||!((R==null?0:fP(R))||(R==null?0:Wj(R)))||Z||(vqV(G.hT.C,R.ZC),H=w=!0,Q.cfallexp=R.ZC);if(!w)return lnV(G,Q);Z=!1;G.C?G.Nf=(0,g.TB)():Z=G.C=!0;w=G.videoData;if(w.Xm){w=w.Xm.Ow();var h=Date.now()/1E3+1800;w=w6048E5&&dHZ(G,"signature");return!1}; dHZ=function(G,X){try{X={detail:"pr."+X},g.up(G.hT)&&G.hT.G("html5_reload_by_kabuki_app")?G.uB.WR("qoe.restart",1,void 0,kE(X),"7"):(G.uf("qoe.restart",X),window.location.reload())}catch(Q){}}; pxe=function(G,X){var Q=G.hT.C;Q.J=!1;Q.W=!0;G.uf("qoe.restart",{e:X===void 0?"fmt.noneavailable":X,detail:"hdr"});G.uB.rZ(!0)}; yeG=function(G,X,Q,R,S,Z){this.videoData=G;this.N=X;this.reason=Q;this.W=R;this.token=S;this.videoId=Z}; MH=function(G,X,Q){this.tT=G;this.XR=X;this.uB=Q;this.T=this.S=this.N=this.V=this.J=this.W=0;this.C=!1;this.j=g.i2(this.tT.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Y=new Map}; fnZ=function(G,X,Q){!G.tT.G("html5_tv_ignore_capable_constraint")&&g.jJ(G.tT)&&(Q=Q.compose(G.iC(X)));return Q}; DHV=function(G){if(G.uB.xg().isInline())return jX;var X;G.G("html5_exponential_memory_for_sticky")?X=An(G.tT.ze,"sticky-lifetime")<.5?"auto":c_[mr()]:X=c_[mr()];return g.xm("auto",X,!1,"s")}; AeV=function(G,X){var Q,R=N6C(G,(Q=X.N)==null?void 0:Q.videoInfos);Q=G.uB.getPlaybackRate();return Q>1&&R?(G=AS7(G.tT.C,X.N.videoInfos,Q),new E4(0,G,!0,"o")):new E4(0,0,!1,"o")}; N6C=function(G,X){return X&&g.jJ(G.tT)?X.some(function(Q){return Q.video.fps>32}):!1}; ncZ=function(G,X){if(G.G("html5_disable_ustreamer_constraint_for_sabr")&&c4(X.videoData))return jX;var Q=G.uB.AM();G.G("html5_use_video_quality_cap_for_ustreamer_constraint")&&Q&&Q.xA>0&&z1(X.videoData.m5)&&(G=Q.xA,X.videoData.m5=new E4(0,G,!1,"u"));return X.videoData.m5}; $HV=function(G,X){var Q;a:if((Q=X.N)&&Q.videoInfos.length){for(var R=g.e(Q.videoInfos),S=R.next();!S.done;S=R.next()){S=S.value;var Z=void 0;if((Z=S.W)==null?0:Z.smooth){Q=S.video.qualityOrdinal;break a}}Q=Q.videoInfos[0].video.qualityOrdinal}else Q=0;jCS()&&!g.jJ(G.tT)&&Wj(X.N.videoInfos[0])&&(Q=Math.min(Q,g.FZ.large));R=g.i2(G.tT.experiments,"html5_chipset_soft_cap");R>0&&(Q=Math.min(Q,R));if(R=g.i2(G.tT.experiments,"html5_max_vertical_resolution")){S=4320;for(Z=0;ZR&&(S=Math.min(S,H.video.qualityOrdinal))}if(S<4320){for(H=Z=0;H32){S=!0;break a}}S=!1}S&&(Q=Math.min(Q,R));(R=g.i2(G.tT.experiments,"html5_live_quality_cap"))&&X.videoData.isLivePlayback&&(Q=Math.min(Q,R));Q=bqy(G,X,Q);G=g.i2(G.tT.experiments,"html5_byterate_soft_cap");return new E4(0,Q===4320?0:Q,!1,"d",G)}; JeG=function(G){var X,Q,R,S;return g.F(function(Z){switch(Z.W){case 1:return G.N.N&&typeof((X=navigator.mediaCapabilities)==null?void 0:X.decodingInfo)==="function"?g.l(Z,Promise.resolve(),2):Z.return(Promise.resolve());case 2:Q=g.e(G.N.videoInfos),R=Q.next();case 3:if(R.done){Z.pO(0);break}S=R.value;return g.l(Z,znV(S),4);case 4:R=Q.next(),Z.pO(3)}})}; GG7=function(G,X){if(!X.videoData.W||G.G("html5_disable_performance_downgrade"))return!1;Date.now()-G.J>6E4&&(G.W=0);G.W++;G.J=Date.now();if(G.W!==4)return!1;iqV(G,X.videoData.W);return!0}; Q5X=function(G,X,Q,R){if(!X||!Q||!X.videoData.W)return!1;var S=g.i2(G.tT.experiments,"html5_df_downgrade_thresh"),Z=G.G("html5_log_media_perf_info");if(!((0,g.TB)()-G.V<5E3?0:Z||S>0))return!1;var H=((0,g.TB)()-G.V)/1E3;G.V=(0,g.TB)();Q=Q.getVideoPlaybackQuality();if(!Q)return!1;var w=Q.droppedVideoFrames-G.S,h=Q.totalVideoFrames-G.T;G.S=Q.droppedVideoFrames;G.T=Q.totalVideoFrames;var L=Q.displayCompositedVideoFrames===0?0:Q.displayCompositedVideoFrames||-1;Z&&G.tT.n7()&&G.uB.Ni("ddf",{dr:Q.droppedVideoFrames, de:Q.totalVideoFrames,comp:L});if(R)return G.N=0,!1;if((h-w)/H>G.j||!S||g.jJ(G.tT))return!1;G.N=(h>60?w/h:0)>S?G.N+1:0;if(G.N!==3)return!1;iqV(G,X.videoData.W);G.uB.Ni("dfd",Object.assign({dr:Q.droppedVideoFrames,de:Q.totalVideoFrames},Xty()));return!0}; iqV=function(G,X){var Q=X.ZC,R=X.video.fps,S=X.video.qualityOrdinal-1,Z=G.Y;X=""+Q+(R>49?"p60":R>32?"p48":"");Q=Gd(Q,R,Z);S>0&&(Q=Math.min(Q,S));if(!mE.has(X)&&P_().includes(X)){var H=Q;Q=uF();+Q[X]>0&&(H=Math.min(+Q[X],H));Q[X]!==H&&(Q[X]=H,g.E5("yt-player-performance-cap",Q,2592E3))}else if(mE.has(X)||Z==null){a:{H=H===void 0?!0:H;R=P_().slice();if(H){if(R.includes(X))break a;R.push(X)}else{if(!R.includes(X))break a;R.splice(R.indexOf(X),1)}g.E5("yt-player-performance-cap-active-set",R,2592E3)}il.set(X, Q)}else mE.add(X),Z==null||Z.set(X,Q);G.uB.Ac()}; Rf0=function(G,X){if(!X.N.N)return G.C?new E4(0,360,!1,"b"):jX;for(var Q=!1,R=!1,S=g.e(X.N.videoInfos),Z=S.next();!Z.done;Z=S.next())fP(Z.value)?Q=!0:R=!0;Q=Q&&R;R=0;S=g.i2(G.tT.experiments,"html5_performance_cap_floor");S=G.tT.W?240:S;X=g.e(X.N.videoInfos);for(Z=X.next();!Z.done;Z=X.next()){var H=Z.value;if(!Q||!fP(H))if(Z=Gd(H.ZC,H.video.fps,G.Y),H=H.video.qualityOrdinal,Math.max(Z,S)>=H){R=H;break}}return new E4(0,R,!1,"b")}; S8e=function(G,X){var Q=G.uB.xg();return Q.isInline()&&!X.BP?new E4(0,480,!1,"v"):c4(X)?jX:Q.isBackground()&&u6()/1E3>60&&!g.jJ(G.tT)?new E4(0,360,!1,"v"):jX}; Z50=function(G,X,Q){if(G.tT.experiments.TT("html5_disable_client_autonav_cap_for_onesie")&&X.fetchType==="onesie"||g.jJ(G.tT)&&(mr(-1)>=1080||X.osid))return jX;var R=g.i2(G.tT.experiments,"html5_autonav_quality_cap"),S=g.i2(G.tT.experiments,"html5_autonav_cap_idle_secs");return R&&X.isAutonav&&u6()/1E3>S?(Q&&(R=bqy(G,Q,R)),new E4(0,R,!1,"e")):jX}; bqy=function(G,X,Q){if(G.G("html5_optimality_defaults_chooses_next_higher")&&Q)for(G=X.N.videoInfos,X=1;X=0||(G.provider.uB.getVisibilityState()===3?G.C=!0:(G.N=g.vd(G.provider),G.delay.start()))}; wti=function(G){if(!(G.W<0)){var X=g.vd(G.provider),Q=X-G.V;G.V=X;G.playerState.state===8?G.playTimeSecs+=Q:G.playerState.isBuffering()&&!g.N(G.playerState,16)&&(G.rebufferTimeSecs+=Q)}}; hf0=function(G){var X;switch((X=G.tT.playerCanaryStage)==null?void 0:X.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"}}; Lk0=function(G){this.provider=G;this.J=!1;this.N=0;this.V=-1;this.rK=NaN;this.Y=0;this.segments=[];this.S=this.C=0;this.previouslyEnded=!1;this.j=this.provider.uB.getVolume();this.T=this.provider.uB.isMuted()?1:0;this.W=uO(this.provider)}; Px=function(G){G.W.startTime=G.Y;G.W.endTime=G.N;var X=!1;G.segments.length&&g.uL(G.segments).isEmpty()?(G.segments[G.segments.length-1].previouslyEnded&&(G.W.previouslyEnded=!0),G.segments[G.segments.length-1]=G.W,X=!0):G.segments.length&&G.W.isEmpty()||(G.segments.push(G.W),X=!0);X?G.W.endTime===0&&(G.previouslyEnded=!1):G.W.previouslyEnded&&(G.previouslyEnded=!0);G.C+=G.N-G.Y;G.W=uO(G.provider);G.W.previouslyEnded=G.previouslyEnded;G.previouslyEnded=!1;G.Y=G.N}; Y8T=function(G){kGS(G);G.S=g.h8(function(){G.update()},100); G.rK=g.vd(G.provider);G.W=uO(G.provider)}; kGS=function(G){g.kD(G.S);G.S=NaN}; j5e=function(G,X,Q){Q-=G.rK;return X===G.N&&Q>.5}; MPC=function(G,X,Q,R){this.tT=X;this.Js=Q;this.segments=[];this.experimentIds=[];this.Xm=this.C7=this.isFinal=this.delayThresholdMet=this.Hs=this.l9=this.autoplay=this.autonav=!1;this.F7="yt";this.S=[];this.J=this.j=null;this.sendVisitorIdHeader=this.cM=!1;this.T=this.pageId="";this.C=Q==="watchtime";this.Y=Q==="playback";this.DC=Q==="atr";this.eI=Q==="engage";this.sendVisitorIdHeader=!1;this.uri=this.DC?"/api/stats/"+Q:"//"+X.uA+"/api/stats/"+Q;R&&(this.C7=R.fs,R.rtn&&(this.J=R.rtn),this.C?(this.playerState= R.state,R.rti>0&&(this.j=R.rti)):(this.qd=R.mos,this.hE=R.volume,R.at&&(this.adType=R.at)),R.autonav&&(this.autonav=R.autonav),R.inview!=null&&(this.R6=R.inview),R.size&&(this.f7=R.size),R.playerwidth&&(this.ze=R.playerwidth),R.playerheight&&(this.fd=R.playerheight));this.hS=g.uY(X.N);this.T=Pm(X.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.T==="all"||this.T==="once")this.Ps=g.uY(X.Hs);this.Co=X.F7;this.experimentIds=ySS(X.experiments);this.wb=X.Xq;this.F7=X.AT;this.region=X.region; this.userAge=X.userAge;this.KO=X.bE;this.Fq=u6();this.sendVisitorIdHeader=X.sendVisitorIdHeader;this.Mi=X.G("vss_pings_using_networkless")||X.G("kevlar_woffle");this.PR=X.G("vss_final_ping_send_and_write");this.QH=X.G("vss_use_send_and_write");this.pageId=X.pageId;this.Ge=X.G("vss_playback_use_send_and_write");X.livingRoomAppMode&&(this.livingRoomAppMode=X.livingRoomAppMode);this.lL=X.V&&X.G("embeds_append_synth_ch_headers");g.Jn(X)&&(this.SA=X.DC);g.Rc(g.ql(X))&&this.S.push(1);this.accessToken=g.qY(G); G.gt[this.Js]?this.V=G.gt[this.Js]:G.gt.playback&&(this.V=G.gt.playback);this.adFormat=G.adFormat;this.adQueryId=G.adQueryId;this.autoplay=WS0(G);this.Y&&(this.l9=G.QC&&RM(G)==="adunit"?!0:!1);this.autonav=G.isAutonav||this.autonav;this.contentVideoId=Z0(G);this.clientPlaybackNonce=G.clientPlaybackNonce;this.Hs=G.KY;G.S&&(this.yH=G.S,this.N9=G.LQ);G.mdxEnvironment&&(this.mdxEnvironment=G.mdxEnvironment);this.N=G.hS;this.As=G.As;G.W&&(this.Xq=G.W.itag,G.V&&G.V.itag!==this.Xq&&(this.bB=G.V.itag));G.N&& Fy(G.N)&&(this.offlineDownloadUserChoice="1");this.eventLabel=RM(G);this.Xm=G.Ge?!1:G.hE;this.Mj=G.P5;if(X=fL(G))this.rS=X;this.bf=G.i7;this.partnerId=G.partnerId;this.eventId=G.eventId;this.playlistId=G.Av||G.playlistId;this.VI=G.VI;this.fv=G.fv;this.i8=G.i8;this.xv=G.xv;this.subscribed=G.subscribed;this.videoId=G.videoId;this.videoMetadata=G.videoMetadata;this.visitorData=G.visitorData;this.osid=G.osid;this.qb=G.qb;this.referrer=G.referrer;this.A8=G.PE||G.A8;this.BM=G.c5;this.r8=G.r8;this.userGenderAge= G.userGenderAge;this.Bf=G.Bf;this.embedsRct=G.embedsRct;this.embedsRctn=G.embedsRctn;g.Jn(this.tT)&&G.mutedAutoplay&&(G.mutedAutoplayDurationMode===2&&G.limitedPlaybackDurationInSeconds===0&&G.endSeconds===0?this.S.push(7):this.S.push(2));G.isEmbedsShortsMode(new g.AC(this.ze,this.fd),!!this.playlistId)&&this.S.push(3);g.PP(G)&&this.S.push(4);this.CO=G.Qm;G.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=G.compositeLiveIngestionOffsetToken)}; mdC=function(G,X){var Q=G.sendVisitorIdHeader?G.visitorData:void 0;return g.z$(G.tT,G.accessToken).then(function(R){return kEG(G.uri,G.tT,G.pageId,Q,R,X,G.lL)})}; P3G=function(G,X){return function(){G.tT.G("html5_simplify_pings")?(G.N=G.IU,G.kS=X(),G.Fq=0,G.send()):mdC(G).then(function(Q){var R=ozU(G);R.cmt=R.len;R.lact="0";var S=X().toFixed(3);R.rt=Number(S).toString();R=g.on(G.uri,R);G.tT.G("vss_through_gel_double")&&uol(R);G.Mi?(Q==null&&(Q={}),G.QH?We().sendAndWrite(R,Q):We().sendThenWrite(R,Q)):Q?g.PT(R,Q):g.gW(R)})}}; ozU=function(G){var X={ns:G.F7,el:G.eventLabel,cpn:G.clientPlaybackNonce,ver:2,cmt:G.W(G.N),fmt:G.Xq,fs:G.C7?"1":"0",rt:G.W(G.kS),adformat:G.adFormat,content_v:G.contentVideoId,euri:G.Co,lact:G.Fq,live:G.rS,cl:(793879582).toString(),mos:G.qd,state:G.playerState,volume:G.hE};G.subscribed&&(X.subscribed="1");Object.assign(X,G.hS);G.T==="all"?Object.assign(X,G.Ps):G.T==="once"&&G.Y&&Object.assign(X,G.Ps);G.autoplay&&(X.autoplay="1");G.l9&&(X.sautoplay="1");G.Hs&&(X.dni="1");!G.C&&G.SA&&(X.epm=s5y[G.SA]); G.isFinal&&(X["final"]="1");G.Xm&&(X.splay="1");G.As&&(X.delay=G.As);G.wb&&(X.hl=G.wb);G.region&&(X.cr=G.region);G.userGenderAge&&(X.uga=G.userGenderAge);G.userAge!==void 0&&G.KO&&(X.uga=G.KO+G.userAge);G.IU!==void 0&&(X.len=G.W(G.IU));!G.C&&G.experimentIds.length>0&&(X.fexp=G.experimentIds.toString());G.J!==null&&(X.rtn=G.W(G.J));G.A8&&(X.feature=G.A8);G.fv&&(X.ctrl=G.fv);G.i8&&(X.ytr=G.i8);G.bB&&(X.afmt=G.bB);G.offlineDownloadUserChoice&&(X.ODUC=G.offlineDownloadUserChoice);G.AT&&(X.lio=G.W(G.AT)); G.C?(X.idpj=G.Mj,X.ldpj=G.bf,G.delayThresholdMet&&(X.dtm="1"),G.j!=null&&(X.rti=G.W(G.j)),G.Bf&&(X.ald=G.Bf),G.compositeLiveIngestionOffsetToken&&(X.clio=G.compositeLiveIngestionOffsetToken)):G.adType!==void 0&&(X.at=G.adType);G.f7&&(G.Y||G.C)&&(X.size=G.f7);G.Y&&G.S.length&&(X.pbstyle=G.S.join(","));G.R6!=null&&(G.Y||G.C)&&(X.inview=G.W(G.R6));G.C&&(X.volume=s1(G,g.P1(G.segments,function(R){return R.volume})),X.st=s1(G,g.P1(G.segments,function(R){return R.startTime})),X.et=s1(G,g.P1(G.segments,function(R){return R.endTime})), p0(G.segments,function(R){return R.playbackRate!==1})&&(X.rate=s1(G,g.P1(G.segments,function(R){return R.playbackRate}))),p0(G.segments,function(R){return R.N!=="-"})&&(X.als=g.P1(G.segments,function(R){return R.N}).join(",")),p0(G.segments,function(R){return R.previouslyEnded})&&(X.pe=g.P1(G.segments,function(R){return""+ +R.previouslyEnded}).join(","))); X.muted=s1(G,g.P1(G.segments,function(R){return R.muted?1:0})); p0(G.segments,function(R){return R.visibilityState!==0})&&(X.vis=s1(G,g.P1(G.segments,function(R){return R.visibilityState}))); p0(G.segments,function(R){return R.connectionType!==0})&&(X.conn=s1(G,g.P1(G.segments,function(R){return R.connectionType}))); p0(G.segments,function(R){return R.W!==0})&&(X.blo=s1(G,g.P1(G.segments,function(R){return R.W}))); p0(G.segments,function(R){return!!R.Y})&&(X.blo=g.P1(G.segments,function(R){return R.Y}).join(",")); p0(G.segments,function(R){return!!R.compositeLiveStatusToken})&&(X.cbs=g.P1(G.segments,function(R){return R.compositeLiveStatusToken}).join(",")); p0(G.segments,function(R){return R.V!=="-"})&&(X.cc=g.P1(G.segments,function(R){return R.V}).join(",")); p0(G.segments,function(R){return R.clipId!=="-"})&&(X.clipid=g.P1(G.segments,function(R){return R.clipId}).join(",")); if(p0(G.segments,function(R){return!!R.audioId})){var Q="au"; G.Y&&(Q="au_d");X[Q]=g.P1(G.segments,function(R){return R.audioId}).join(",")}XB()&&G.yH&&(X.ctt=G.yH,X.cttype=G.N9,X.mdx_environment=G.mdxEnvironment); G.eI&&(X.etype=G.Yc!==void 0?G.Yc:0);G.BM&&(X.uoo=G.BM);G.livingRoomAppMode&&G.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(X.clram=TLC[G.livingRoomAppMode]||G.livingRoomAppMode);G.V?KkG(G,X):(X.docid=G.videoId,X.referrer=G.referrer,X.ei=G.eventId,X.of=G.qb,X.osid=G.osid,X.vm=G.videoMetadata,G.adQueryId&&(X.aqi=G.adQueryId),G.autonav&&(X.autonav="1"),G.playlistId&&(X.list=G.playlistId),G.xv&&(X.ssrt="1"),G.r8&&(X.upt=G.r8));G.Y&&(G.embedsRct&&(X.rct=G.embedsRct),G.embedsRctn&&(X.rctn= G.embedsRctn),G.compositeLiveIngestionOffsetToken&&(X.clio=G.compositeLiveIngestionOffsetToken));G.CO&&(X.host_cpn=G.CO);return X}; KkG=function(G,X){if(X&&G.V){var Q=new Set(["q","feature","mos"]),R=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),S=new Set(["aqi","autonav","list","ssrt","upt"]);G.V.ns==="3pp"&&(X.ns="3pp");for(var Z=g.e(Object.keys(G.V)),H=Z.next();!H.done;H=Z.next())H=H.value,R.has(H)||Q.has(H)||S.has(H)&&!G.V[H]||(X[H]=G.V[H])}}; s1=function(G,X){return g.P1(X,G.W).join(",")}; uol=function(G){G.indexOf("watchtime")!==-1&&g.QL("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:G}})}; efG=function(G,X){G.attestationResponse&&mdC(G).then(function(Q){Q=Q||{};Q.method="POST";Q.postParams={atr:G.attestationResponse};G.Mi?G.QH?We().sendAndWrite(X,Q):We().sendThenWrite(X,Q):g.PT(X,Q)})}; Tc=function(G){g.I.call(this);this.provider=G;this.S="paused";this.C=NaN;this.J=[10,10,10,40];this.j=this.T=0;this.yH=this.DC=this.Yc=this.AT=this.Y=!1;this.W=this.V=NaN;this.logger=new g.sp("vss");this.N=new Lk0(G)}; O5V=function(G){if(!G.Y){G.provider.videoData.Ev===16623&&g.EL(Error("Playback for EmbedPage"));var X=Kq(G,"playback");G.J=rEw(G);Y8T(G.N);X.J=ef(G);G.W>0&&(X.N-=G.W);X.send();if(G.provider.videoData.qz){X=G.provider.tT;var Q=G.provider.videoData,R={html5:"1",video_id:Q.videoId,cpn:Q.clientPlaybackNonce,ei:Q.eventId,ptk:Q.qz,oid:Q.qE,ptchn:Q.CN,pltype:Q.PC,content_v:Z0(Q)};Q.aP&&Object.assign(R,{m:Q.aP});X=g.on(X.a$+"ptracking",R);a2T(G,X)}G.provider.videoData.As||(EzG(G),xdS(G));G.Y=!0;G=G.N;G.N= G.Mc();G.rK=g.vd(G.provider);!(G.Y===0&&G.N<5)&&G.N-G.Y>2&&(G.Y=G.N);G.J=!0}}; rEw=function(G){var X=G.provider.videoData.P5,Q=G.provider.videoData.i7,R=[10+X,10,10,40+Q-X,40],S,Z=(S=G.provider.videoData.getPlayerResponse())==null?void 0:S.playbackTracking,H=Z==null?void 0:Z.videostatsScheduledFlushWalltimeSeconds;S=Z==null?void 0:Z.videostatsDefaultFlushIntervalSeconds;if(!(H&&H.length>0&&S))return G.logger.info("Missing valid scheduled pings config "+H+" "+S),R;X=[H[0]+X].concat(g.o0(H.slice(1).map(function(w,h){return w-H[h]})),[S+Q-X, S]);return X.some(function(w){return w<0})?(G.logger.N(347111855,"Neg vss scheduled pings "+H+" "+S),R):X}; ef=function(G,X){X=X===void 0?NaN:X;var Q=g.vd(G.provider);X=isNaN(X)?Q:X;X=Math.ceil(X);var R=G.J[G.T];G.T+11E3;!(Z.length>1)&&Z[0].isEmpty()||w||(H.J=ef(G,S));H.send();G.j++}},(S-Q)*1E3); return G.V=S}; r6=function(G){g.Li(G.C);G.C=NaN}; zfG=function(G){G.N.update();G=G.N;G.segments.length&&G.N===G.Y||Px(G);var X=G.segments;G.segments=[];return X}; Kq=function(G,X){var Q=gzU(G.provider);Object.assign(Q,{state:G.S});X=new MPC(G.provider.videoData,G.provider.tT,X,Q);X.N=G.provider.uB.Mc();Q=G.provider.videoData.clientPlaybackNonce;X.N=G.provider.uB.j2(Q);G.provider.videoData.isLivePlayback||(X.IU=G.provider.uB.getDuration(Q));G.provider.videoData.N&&(Q=G.provider.videoData.N.mY(X.N))&&(X.AT=Q-X.N,G.provider.tT.G("html5_disable_live_dvr_shrink_for_cdm_vss")&&zU(G.provider.videoData)&&(X.N+=G.provider.uB.q9(),X.AT-=G.provider.uB.q9()));X.kS=g.vd(G.provider); X.segments=[uO(G.provider)];return X}; cEX=function(G,X){var Q=Kq(G,"watchtime");Ud0(G)&&(Q.delayThresholdMet=!0,G.Yc=!0);if(G.W>0){for(var R=g.e(X),S=R.next();!S.done;S=R.next())S=S.value,S.startTime-=G.W,S.endTime-=G.W;Q.N-=G.W}else Q.N=G.N.N;Q.segments=X;return Q}; ai=function(G,X){var Q=l2Z(G,!isNaN(G.V));X&&(G.V=NaN);return Q}; l2Z=function(G,X){var Q=cEX(G,zfG(G));!isNaN(G.V)&&X&&(Q.j=G.V);return Q}; Ud0=function(G){var X;if(X=G.provider.videoData.isLoaded()&&G.provider.videoData.As&&G.Y&&!G.Yc)X=G.N,X=X.C+X.Mc()-X.Y>=G.provider.videoData.As;return!!X}; EzG=function(G){G.provider.videoData.youtubeRemarketingUrl&&!G.DC&&(a2T(G,G.provider.videoData.youtubeRemarketingUrl),G.DC=!0)}; xdS=function(G){G.provider.videoData.googleRemarketingUrl&&!G.yH&&(a2T(G,G.provider.videoData.googleRemarketingUrl),G.yH=!0)}; BLl=function(G){if(!G.U_()&&G.Y){G.S="paused";var X=ai(G);X.isFinal=!0;X.send();G.dispose()}}; FkZ=function(G,X){if(!G.U_())if(g.N(X.state,2)||g.N(X.state,512)){if(G.S="paused",g.Lw(X,2)||g.Lw(X,512))g.Lw(X,2)&&(G.N.previouslyEnded=!0),G.Y&&(r6(G),ai(G).send(),G.V=NaN)}else if(g.N(X.state,8)){G.S="playing";var Q=G.Y&&isNaN(G.C)?ef(G):NaN;if(!isNaN(Q)&&(hw(X,64)<0||hw(X,512)<0)){var R=l2Z(G,!1);R.J=Q;R.send()}g.Lw(X,16)&&X.state.seekSource===58&&(G.N.previouslyEnded=!0)}else G.S="paused"}; C3X=function(G,X,Q){if(!G.AT){Q||(Q=Kq(G,"atr"));Q.attestationResponse=X;try{Q.send()}catch(R){if(R.message!=="Unknown Error")throw R;}G.AT=!0}}; a2T=function(G,X){var Q=G.provider.tT;g.z$(G.provider.tT,g.qY(G.provider.videoData)).then(function(R){var S=G.provider.tT.pageId,Z=G.provider.tT.sendVisitorIdHeader?G.provider.videoData.visitorData:void 0,H=G.provider.tT.G("vss_pings_using_networkless")||G.provider.tT.G("kevlar_woffle"),w=G.provider.tT.G("allow_skip_networkless");R=kEG(X,Q,S,Z,R);Yay(X,R,{token:G.provider.videoData.S,Eg:G.provider.videoData.LQ,mdxEnvironment:G.provider.videoData.mdxEnvironment},Q,void 0,H&&!w,!1,!0)})}; tPy=function(){this.endTime=this.startTime=-1;this.V="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.W=0;this.compositeLiveStatusToken=this.Y=void 0;this.volume=this.connectionType=0;this.muted=!1;this.N=this.clipId="-";this.previouslyEnded=!1}; E1=function(G,X,Q){this.videoData=G;this.tT=X;this.uB=Q;this.N=void 0}; g.vd=function(G){return VPy(G)()}; VPy=function(G){if(!G.N){var X=g.k4(function(R){var S=(0,g.TB)();R&&S<=631152E6&&(G.uB.Ni("ytnerror",{issue:28799967,value:""+S}),S=(new Date).getTime()+2);return S},G.tT.G("html5_validate_yt_now")),Q=X(); G.N=function(){return Math.round(X()-Q)/1E3}; G.uB.Xa()}return G.N}; gzU=function(G){var X=G.uB.nW()||{};X.fs=G.uB.Kp();X.volume=G.uB.getVolume();X.muted=G.uB.isMuted()?1:0;X.mos=X.muted;X.clipid=G.uB.Gz();var Q;X.playerheight=((Q=G.uB.getPlayerSize())==null?void 0:Q.height)||0;var R;X.playerwidth=((R=G.uB.getPlayerSize())==null?void 0:R.width)||0;G=G.videoData;Q={};G.W&&(Q.fmt=G.W.itag,G.V&&(G.Js?G.V.itag!==G.W.itag:G.V.itag!=G.W.itag)&&(Q.afmt=G.V.itag));Q.ei=G.eventId;Q.list=G.playlistId;Q.cpn=G.clientPlaybackNonce;G.videoId&&(Q.v=G.videoId);G.Xs&&(Q.infringe=1); (G.Ge?0:G.hE)&&(Q.splay=1);(R=fL(G))&&(Q.live=R);G.QC&&(Q.sautoplay=1);G.mD&&(Q.autoplay=1);G.VI&&(Q.sdetail=G.VI);G.partnerId&&(Q.partnerid=G.partnerId);G.osid&&(Q.osid=G.osid);G.mS&&(Q.cc=g.mcX(G.mS));return Object.assign(X,Q)}; rLC=function(G){var X=OD7();if(X)return I2l[X]||I2l.other;if(g.jJ(G.tT)){G=navigator.userAgent;if(/[Ww]ireless[)]/.test(G))return 3;if(/[Ww]ired[)]/.test(G))return 30}return 0}; uO=function(G){var X=new tPy,Q;X.V=((Q=gzU(G).cc)==null?void 0:Q.toString())||"-";X.playbackRate=G.uB.getPlaybackRate();Q=G.uB.getVisibilityState();Q!==0&&(X.visibilityState=Q);G.tT.BM&&(X.W=1);X.Y=G.videoData.iX;X.compositeLiveStatusToken=G.videoData.compositeLiveStatusToken;Q=G.uB.getAudioTrack();Q.kP&&Q.kP.id&&Q.kP.id!=="und"&&(X.audioId=Q.kP.id);X.connectionType=rLC(G);X.volume=G.uB.getVolume();X.muted=G.uB.isMuted();X.clipId=G.uB.Gz()||"-";X.N=G.videoData.UX||"-";return X}; g.xc=function(G,X){g.I.call(this);var Q=this;this.provider=G;this.Y=new Map;this.FG=new g.gO;this.gh={k6_:function(){return Q.qoe}, bWM:function(){return Q.N}, Mgd:function(){return Q.W}}; this.provider.videoData.eG()&&!this.provider.videoData.Ku&&(this.N=new Tc(this.provider),this.N.W=0,g.d(this,this.N),this.qoe=new g.$K(this.provider,X),g.d(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.K4=this.provider.videoData.clientPlaybackNonce)&&this.Y.set(this.K4,this.N));if(G.tT.playerCanaryState==="canary"||G.tT.playerCanaryState==="holdback")this.W=new oi(this.provider),g.d(this,this.W)}; ddw=function(G){G.W&&q80(G.W);G.qoe&&F0U(G.qoe)}; WkV=function(G){if(G.qoe){G=G.qoe;for(var X=G.provider.videoData,Q=G.provider.tT,R=g.e(Q.nu),S=R.next();!S.done;S=R.next())ii(G,S.value);if(G.provider.G("html5_enable_qoe_cat_list"))for(R=g.e(X.uA),S=R.next();!S.done;S=R.next())ii(G,S.value);else X.nu&&ii(G,G.provider.videoData.nu);X.IW()&&(R=X.N,Fu(X)&&ii(G,"manifestless"),R&&N9(R)&&ii(G,"live-segment-"+N9(R).toFixed(1)));c4(X)?ii(G,"sabr"):G.bj(V1(X));if(w4(X)||X.Yr())X.Yr()&&ii(G,"ssa"),ii(G,"lifa");zU(X)&&ii(G,"cdm");X.gatewayExperimentGroup&& (R=X.gatewayExperimentGroup,R==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?R="spkadtrt":R==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(R="spkadctrl"),ii(G,R));Q.AT!=="yt"&&G.N.set("len",[X.lengthSeconds.toFixed(2)]);X.cotn&&!k6(X)&&G.oE(!0);Q.n7()&&(X=T4T())&&G.Ni("cblt",{m:X});if(Q.G("html5_log_screen_diagonal")){Q=G.Ni;var Z;X=((Z=window.H5vccScreen)==null?0:Z.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;Q.call(G,"cbltdiag",{v:X})}}}; ptT=function(G,X){G.N&&(G=G.N,X===58?G.N.update():G.Y&&(r6(G),ai(G).send(),G.V=NaN))}; yET=function(G,X){if(g.Lw(X,1024)||g.Lw(X,512)||g.Lw(X,4)){if(G.W){var Q=G.W;Q.W>=0||(Q.N=-1,Q.delay.stop())}G.qoe&&(Q=G.qoe,Q.J||(Q.Y=-1))}if(G.provider.videoData.enableServerStitchedDai&&G.K4){var R;(R=G.Y.get(G.K4))==null||FkZ(R,X)}else G.N&&FkZ(G.N,X);if(G.qoe){R=G.qoe;Q=X.state;var S=g.vd(R.provider),Z=R.getPlayerState(Q),H=Q.seekSource||void 0;if(Z!==R.FG){R.Yc||S= 10&&R.playTimeSecs<=180&&(R.N.set("qoealert",["1"]),R.As=!0)),Z!=="B"||R.FG!=="PL"&&R.FG!=="PB"||(R.isBuffering=!0),R.W=S);R.FG==="PL"&&(Z==="B"||Z==="S")||R.provider.tT.n7()?JY(R,S):(R.N9||Z!=="PL"||(R.N9=!0,a0C(R,S,R.provider.uB.lC())),eAl(R,S));Z==="PL"&&g.DA(R.kS);var w=[Z];Z==="S"&&H&&w.push("ss."+H);g.nY(R,S,"vps",w);R.FG=Z;R.AT=S;R.W=S;R.V=!0}Z=Q.qG;g.N(Q,128)&&Z&&(Z.wP=Z.wP||"",cLe(R,S,Z.errorCode,Z.BH,Z.wP));(g.N(Q,2)||g.N(Q,128))&&R.reportStats(S);Q.isPlaying()&&!R.J&&(R.Y>=0&&R.N.set("user_intent", [R.Y.toString()]),R.J=!0);OCU(R)}G.W&&(G=G.W,wti(G),G.playerState=X.state,G.W>=0&&g.Lw(X,16)&&G.seekCount++,X.state.isError()&&G.send())}; f2Z=function(G){G.W&&G.W.send();if(G.qoe){var X=G.qoe;if(X.V){X.FG==="PL"&&(X.FG="N");var Q=g.vd(X.provider);g.nY(X,Q,"vps",[X.FG]);X.J||(X.Y>=0&&X.N.set("user_intent",[X.Y.toString()]),X.J=!0);X.provider.tT.n7()&&X.Ni("finalized",{});X.Mi=!0;X.reportStats(Q)}}if(G.provider.videoData.enableServerStitchedDai)for(X=g.e(G.Y.values()),Q=X.next();!Q.done;Q=X.next())BLl(Q.value);else G.N&&BLl(G.N);G.dispose()}; Ddw=function(G,X,Q){switch(X){case "M":var R;(R=G.qoe)==null||CGi(R,X,Q);break;case "A":var S;(S=G.qoe)==null||CGi(S,X)}}; NLV=function(G,X){G.N&&C3X(G.N,X)}; AEe=function(G){if(!G.N)return null;var X=Kq(G.N,"atr");return function(Q){G.N&&C3X(G.N,Q,X)}}; nzi=function(G,X,Q,R){Q.adFormat=Q.lL;var S=X.uB;X=new Tc(new E1(Q,X.tT,{getDuration:function(){return Q.lengthSeconds}, getCurrentTime:function(){return S.getCurrentTime()}, Mc:function(){return S.Mc()}, j2:function(){return S.j2()}, lC:function(){return S.lC()}, getPlayerSize:function(){return S.getPlayerSize()}, getAudioTrack:function(){return Q.getAudioTrack()}, getPlaybackRate:function(){return S.getPlaybackRate()}, kR:function(){return S.kR()}, getVisibilityState:function(){return S.getVisibilityState()}, gZ:function(){return S.gZ()}, nW:function(){return S.nW()}, getVolume:function(){return S.getVolume()}, isMuted:function(){return S.isMuted()}, Kp:function(){return S.Kp()}, Gz:function(){return S.Gz()}, getProximaLatencyPreference:function(){return S.getProximaLatencyPreference()}, Xa:function(){S.Xa()}, Ni:function(Z,H){S.Ni(Z,H)}, E2:function(){return S.E2()}, q9:function(){return S.q9()}})); X.W=R;g.d(G,X);return X}; $dT=function(){this.TV=0;this.V=this.Y=this.Ez=this.GI=this.W=NaN;this.N={};this.bandwidthEstimate=NaN}; b5V=function(){this.N=g.f6;this.array=[]}; JEi=function(G,X,Q){var R=[];for(X=vz7(G,X);XQ)break}return R}; O1=function(G,X){var Q=[];G=g.e(G.array);for(var R=G.next();!R.done&&!(R=R.value,R.contains(X)&&Q.push(R),R.start>X);R=G.next());return Q}; i5S=function(G){return G.array.slice(vz7(G,0x7ffffffffffff),G.array.length)}; vz7=function(G,X){G=DV(G.array,function(Q){return X-Q.start||1}); return G<0?-(G+1):G}; GKV=function(G,X){var Q=NaN;G=g.e(G.array);for(var R=G.next();!R.done;R=G.next())if(R=R.value,R.contains(X)&&(isNaN(Q)||R.endX&&(isNaN(Q)||R.startG.mediaTime+G.C&&X1)G.V=!0;if((S===void 0?0:S)||isNaN(G.W))G.W=X;if(G.N)X!==G.mediaTime&&(G.N=!1);else if(X>0&&G.mediaTime===X){S=1500;if(G.tT.G("html5_buffer_underrun_transition_fix")){S=g.i2(G.tT.experiments,"html5_min_playback_advance_for_steady_state_secs");var Z=g.i2(G.tT.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");S=S>0&&Z>0&&Math.abs(X-G.W)(R||!G.V?S:400)}G.mediaTime=X;G.Y=Q;return!1}; LgC=function(G,X){this.videoData=G;this.N=X}; kK7=function(G,X,Q){return X.gA(Q).then(function(){return Eh(new LgC(X,X.Y))},function(R){R instanceof Error&&g.EL(R); var S=oE('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Z=Pj('audio/mp4; codecs="mp4a.40.2"'),H=S||Z,w=X.isLivePlayback&&!g.Kj(G.C,!0);R="fmt.noneavailable";w?R="html5.unsupportedlive":H||(R="html5.missingapi");H=w||!H?2:1;S={buildRej:"1",a:X.qN(),d:!!X.F7,drm:X.VJ(),f18:X.qd.indexOf("itag=18")>=0,c18:S};X.N&&(X.VJ()?(S.f142=!!X.N.N["142"],S.f149=!!X.N.N["149"],S.f279=!!X.N.N["279"]):(S.f133=!!X.N.N["133"],S.f140=!!X.N.N["140"],S.f242=!!X.N.N["242"]),S.cAAC=Z,S.cAVC=Pj('video/mp4; codecs="avc1.42001E"'), S.cVP9=Pj('video/webm; codecs="vp9"'));X.C&&(S.drmsys=X.C.keySystem,Z=0,X.C.N&&(Z=Object.keys(X.C.N).length),S.drmst=Z);return new g.YE(R,S,H)})}; g6=function(G){this.data=window.Float32Array?new Float32Array(G):Array(G);this.W=this.N=G-1}; YSi=function(G){return G.data[G.N]||0}; j67=function(G){this.C=G;this.Y=this.W=0;this.V=new g6(50)}; lO=function(G,X,Q){g.ic.call(this);this.videoData=G;this.experiments=X;this.C=Q;this.W=[];this.ul=0;this.Y=!0;this.V=!1;this.S=0;Q=new Mu0;G.latencyClass==="ULTRALOW"&&(Q.S=!1);G.KO?Q.Y=3:g.$P(G)&&(Q.Y=2);G.latencyClass==="NORMAL"&&(Q.C=!0);Q.AT=c4(G)&&X.TT("html5_refactor_decouple_liveness");g.i2(X,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.i2(X,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||G.latencyClass!=="LOW"&&G.latencyClass!=="ULTRALOW"||(Q.C=!0);var R= g.i2(X,"html5_liveness_drift_proxima_override");if(V1(G)!==0&&R){Q.N=R;var S;((S=G.N)==null?0:ZFV(S))&&Q.N--}c4(G)&&X.TT("html5_sabr_parse_live_metadata_playback_boundaries")&&(Q.yH=!0);if(g.Ci("trident/")||g.Ci("edge/"))S=g.i2(X,"html5_platform_minimum_readahead_seconds")||3,Q.V=Math.max(Q.V,S);g.i2(X,"html5_minimum_readahead_seconds")&&(Q.V=g.i2(X,"html5_minimum_readahead_seconds"));g.i2(X,"html5_maximum_readahead_seconds")&&(Q.j=g.i2(X,"html5_maximum_readahead_seconds"));X.TT("html5_force_adaptive_readahead")&& (Q.S=!0);if(S=g.i2(X,"html5_liveness_drift_chunk_override"))Q.N=S;CL(G)&&(Q.N=(Q.N+1)/5,G.latencyClass==="LOW"&&(Q.N*=2));!c4(G)||G.latencyClass!=="ULTRALOW"&&G.latencyClass!=="LOW"||(Q.T=g.i2(X,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,Q.J=g.i2(X,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=Q;this.J=this.policy.Y!==1;this.N=U1(this,m6C(this,isNaN(G.liveChunkReadahead)?3:G.liveChunkReadahead,G))}; o0G=function(G,X){if(X)return X=G.videoData,X=m6C(G,isNaN(X.liveChunkReadahead)?3:X.liveChunkReadahead,X),U1(G,X);if(G.W.length){if(Math.min.apply(null,G.W)>1)return U1(G,G.N-1);if(G.policy.S)return U1(G,G.N+1)}return G.N}; uc0=function(G,X){if(!G.W.length)return!1;var Q=G.N;G.N=o0G(G,X===void 0?!1:X);if(X=Q!==G.N)G.W=[],G.ul=0;return X}; F3=function(G,X){return X>=G.D5()-Bx(G)}; Pdl=function(G,X,Q){X=F3(G,X);Q||X?X&&(G.Y=!0):G.Y=!1;G.J=G.policy.Y===2||G.policy.Y===3&&G.Y}; s6T=function(G,X){X=F3(G,X);G.V!==X&&G.publish("livestatusshift",X);G.V=X}; Bx=function(G){var X=G.policy.N;G.V||(X=Math.max(X-1,0));return X*Cq(G)}; m6C=function(G,X,Q){Q.KO&&X--;CL(Q)&&(X=1);if(V1(Q)!==0&&(G=g.i2(G.experiments,"html5_live_chunk_readahead_proxima_override"))){X=G;var R;((R=Q.N)==null?0:ZFV(R))&&X++}return X}; Cq=function(G){return G.videoData.N?N9(G.videoData.N)||5:5}; U1=function(G,X){X=Math.max(Math.max(1,Math.ceil(G.policy.V/Cq(G))),X);return Math.min(Math.min(8,Math.floor(G.policy.j/Cq(G))),X)}; Mu0=function(){this.V=0;this.j=Infinity;this.S=!0;this.W=this.N=2;this.Y=1;this.C=!1;this.J=10;this.yH=!1;this.T=1;this.AT=!1}; Ii=function(G){g.I.call(this);this.uB=G;this.N=0;this.W=null;this.S=this.V=0;this.Y={};this.tT=this.uB.Z();this.C=new g.fU(this.VD,1E3,this);this.Xm=te(this,"html5_seek_timeout_delay_ms");this.Yc=te(this,"html5_long_rebuffer_threshold_ms");this.cM=te(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.QH=te(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.SA=te(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Hs=te(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.AT=te(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.yH=new VE(2E4);this.IU=te(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.wb=te(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.CO=te(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.Mi=te(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.T=te(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.j=te(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.BM=te(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.KO=te(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.J=te(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.bB=new VE(g.i2(this.tT.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.tT.G("html5_report_slow_ads_as_error"));this.As=new VE(g.i2(this.tT.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.tT.G("html5_skip_slow_buffering_ad"));this.N9=te(this,"html5_slow_start_timeout_delay_ms");this.DC=te(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.d(this,this.C)}; te=function(G,X,Q){Q=Q===void 0?null:Q;var R=R===void 0?0:R;return new VE(g.i2(G.tT.experiments,X)||R,Q?G.tT.G(Q):!1)}; TQU=function(G,X){G.N=X}; d6=function(G,X,Q,R,S,Z,H,w){X?X.test(Q)?(G.uf(S,X,H),X.S||Z()):(!X.W||X.V?Q=!1:(Q=(0,g.TB)(),R?X.N||(X.N=Q):X.N=0,Z=!R&&Q-X.W>3E4,Q=X.N&&Q-X.N>1E3||Z?X.V=!0:!1),Q&&(w=Object.assign({},G.L7(X),w),w.wn=H,w.we=S,w.wsuc=R,G.uB.Ni("workaroundReport",w),R&&(X.reset(),G.Y[S]=!1))):G.uB.WR("auth",2,"BROWSER_OR_EXTENSION_ERROR",kE({source:"watchdog",name:H}))}; VE=function(G,X){this.S=X===void 0?!1:X;this.N=this.W=this.Y=this.startTimestamp=0;this.V=!1;this.C=Math.ceil(G/1E3)}; afV=function(G){g.I.call(this);var X=this;this.uB=G;this.T=this.N=this.loader=this.mediaElement=this.playbackData=null;this.Y=0;this.C=this.Yc=this.V=null;this.Mi=!1;this.N9=0;this.yH=!1;this.timestampOffset=0;this.j=!0;this.wb=0;this.cM=this.Ps=!1;this.J=0;this.KO=!1;this.DC=0;this.gh={ID:function(Q){return X.ID(Q)}}; this.tT=this.uB.Z();this.videoData=this.uB.getVideoData();this.policy=new Kg7;this.AT=new Ii(this.uB);this.bB=this.CO=this.SA=this.S=this.W=NaN;this.IU=new g.fU(function(){eBV(X,!1)},2E3); this.Hs=new g.fU(function(){Wx(X)}); this.Xm=new g.fU(function(){r_Z(X,{})}); this.As=NaN;this.QH=new g.fU(function(){var Q=X.tT.ze;Q.N+=1E4/36E5;Q.N-Q.Y>1/6&&(adG(Q),Q.Y=Q.N);X.QH.start()},1E4); g.d(this,this.AT);g.d(this,this.IU);g.d(this,this.Xm);g.d(this,this.Hs);g.d(this,this.QH)}; ObG=function(G,X){G.playbackData=X;G.videoData.isLivePlayback&&(G.T=new j67(function(){a:{if(G.playbackData&&G.playbackData.N.N){if(Fu(G.videoData)&&G.loader){var R=G.loader.kH.X8()||0;break a}if(G.videoData.N){R=G.videoData.N.QH;break a}}R=0}return R}),G.N=new lO(G.videoData,G.tT.experiments,function(){return G.Zs(!0)})); if(pq(G.uB)){var Q;(Q=G.videoData.H1)!=null&&Q.nA||(X=E0S(G),X.AB?(c4(G.videoData)&&G.xs(X.AB,X.startSeconds),G.Y=X.startSeconds):X.startSeconds>0&&G.seekTo(X.startSeconds,{nY:"seektimeline_startPlayback",seekSource:15}));G.j=!1}else x6C(G)||(G.Y=G.Y||G.videoData.startSeconds||0,G.videoData.isLivePlayback||(X=G.uB.videoData.Zs(),G.Y>X&&(G.G("html5_sabr_log_invalid_sabr_current_time")&&G.uB.Ni("invalidSabrCmtStart",{rt:G.Y,mst:X}),G.G("html5_sabr_vod_invalid_start_time_fallback")&&(G.Y=0))))}; c_l=function(G,X){(G.loader=X)?zBV(G,!0):yE(G)}; g0S=function(G,X){g.DA(G.AT.C);G.G("html5_exponential_memory_for_sticky")&&(X.state.isPlaying()?g.DA(G.QH):G.QH.stop());if(G.mediaElement)if(X.oldState.state===8&&Vp(X.state)&&X.state.isBuffering()){X=G.mediaElement.getCurrentTime();var Q=G.mediaElement.wL();var R=G.G("manifestless_post_live_ufph")||G.G("manifestless_post_live")?Zt(Q,Math.max(X-3.5,0)):Zt(Q,X-3.5);R>=0&&X>Q.end(R)-1.1&&R+10?(fq(G.uB,G.getCurrentTime()+G.videoData.limitedPlaybackDurationInSeconds),G.cM=!0):G.videoData.isLivePlayback&&G.videoData.endSeconds>0&&(fq(G.uB,G.getCurrentTime()+G.videoData.endSeconds),G.cM=!0))}; lfT=function(G,X){var Q=G.getCurrentTime(),R=G.isAtLiveHead(Q);if(G.T&&R){var S=G.T;if(S.N&&!(Q>=S.W&&Q50&&S.W.shift())),S=G.N,Pdl(S,Q,X===void 0?!0:X),s6T(S,Q),X&&eBV(G,!0));R!==G.Ps&&(X=G.getCurrentTime()-G.bB<=500,Q=G.N9>=1E3,X||Q||(X=G.uB.Q0,X.qoe&&(X=X.qoe,Q=g.vd(X.provider), g.nY(X,Q,"lh",[R?"1":"0"])),G.Ps=R,G.N9++,G.bB=G.getCurrentTime()))}; eBV=function(G,X){if(G.N){var Q=G.N;var R=G.getCurrentTime(),S=Q.D5();var Z=Q.policy.W;Q.V||(Z=Math.max(Z-1,0));Z*=Cq(Q);R>=S-Z||!Q.j3()?Q=RQ+1&&X0&&xq(G.mediaElement)>0&&(G.W=Dn(G,G.W,!1)),X=G.G("html5_pseudogapless_shorts_seek_to_next_start")&&(X==null?void 0:X.seekSource)===60,!G.mediaElement||!d6X(G,X))G.Hs.start(750);else if(!isNaN(G.W)&&isFinite(G.W)&&(X=G.CO-(G.W-G.timestampOffset),!(X===0||Math.abs(X)<.005)))if(X=G.mediaElement.getCurrentTime()-G.W,Math.abs(X)<=G.wb||Math.abs(X)<.005)WgT(G);else{if(G.videoData.gm)G.videoData.gm= !1;else if(!B4(G.videoData)&&G.W>=G.Zs()-.1){G.W=G.Zs();G.V.resolve(G.Zs());G.tT.n7()&&G.uB.Ni("setEndedInSeek",{tgt:""+G.W,maxst:""+G.Zs()});G.uB.q0();return}try{var Q=G.W-G.timestampOffset;G.mediaElement.seekTo(Q);G.AT.N=Q;G.CO=Q;G.Y=G.W;G.yH=!1}catch(R){}}}; d6X=function(G,X){X=X===void 0?!1:X;if(!G.mediaElement||G.mediaElement.fu()===0||G.mediaElement.hasError())return!1;var Q=G.mediaElement.getCurrentTime()>0;return G.videoData.Y&&G.videoData.Y.N||G.videoData.isLivePlayback||!G.videoData.VJ()?G.W>=0&&!X&&(X=G.mediaElement.Tz(),X.length||!Q)?HH(X,G.W-G.timestampOffset):Q:Q}; WgT=function(G){G.V&&(G.V.resolve(G.mediaElement.getCurrentTime()),G.AT.W=null)}; Vui=function(G,X){G.C&&(G.C.resolve(X),G.uB.Bw(),G.tT.n7()||Ify(G))&&(X=G.L7(),X["native"]=""+ +G.yH,X.otgt=""+(G.W+G.timestampOffset),G.uB.Ni("seekEnd",X));yE(G)}; yE=function(G){G.W=NaN;G.S=NaN;G.CO=NaN;G.V=null;G.Yc=null;G.C=null;G.Mi=!1;G.yH=!1;G.wb=0;G.IU.stop();G.Xm.stop()}; y_X=function(G,X){var Q=G.mediaElement,R=X.type;switch(R){case "seeking":var S=Q.getCurrentTime()+G.timestampOffset;if(!G.V||G.yH&&S!==G.W){G.V=new aT;G.V.then(function(H){Vui(G,H)},function(){yE(G)}); if(G.videoData.isAd()){var Z;QqU({adCpn:G.videoData.clientPlaybackNonce,contentCpn:(Z=G.videoData.Qm)!=null?Z:""},X.N)}G.CO=S;TQU(G.AT,Q.getCurrentTime());G.seekTo(S,{seekSource:104,nY:"seektimeline_mediaElementEvent"});G.yH=!0}break;case "seeked":WgT(G);break;case "loadedmetadata":pq(G.uB)||p6U(G);Wx(G);break;case "progress":Wx(G);break;case "pause":G.J=G.getCurrentTime()}G.J&&((R==="play"||R==="playing"||R==="timeupdate"||R==="progress")&&G.getCurrentTime()-G.J>10&&(G.G("html5_sky_skip_pause_jump")? G.uB.Ni("skipPauseJump",{evt:R,cmt:G.getCurrentTime(),lpt:G.J}):G.seekTo(G.J,{nY:"pauseJump"})),R!=="pause"&&R!=="play"&&R!=="playing"&&R!=="progress"&&(G.J=0))}; ffy=function(G){return(bV(G.videoData)||!!G.videoData.liveUtcStartSeconds)&&(!!G.videoData.liveUtcStartSeconds||x6C(G))&&!!G.videoData.N}; x6C=function(G){return!!G.videoData.startSeconds&&isFinite(G.videoData.startSeconds)&&G.videoData.startSeconds>1E9}; E0S=function(G){var X=0,Q=NaN,R="";if(!G.j)return{startSeconds:X,AB:Q,source:R};G.videoData.Yc?X=G.videoData.DC:B4(G.videoData)&&(X=Infinity);if(g.$P(G.videoData))return{startSeconds:X,AB:Q,source:R};G.videoData.startSeconds?(R="ss",X=G.videoData.startSeconds):G.videoData.Fq&&(R="stss",X=G.videoData.Fq);G.videoData.liveUtcStartSeconds&&(Q=G.videoData.liveUtcStartSeconds);if(isFinite(X)&&(X>G.Zs()||XG.Zs()||Q 0?(R.onesie="0",G.handleError(new g.YE("html5.missingapi",R)),!1):!0}; iby=function(G){var X=iG();GT(X,G);return g.fJ(X,O67())}; bbl=function(G,X){var Q,R,S,Z,H,w,h,L,k,Y,M,m,u,r,x,c,z,B,V,p,b,A,wX,qe,hG,jy;return g.F(function(QZ){if(QZ.W==1)return X.fetchType="onesie",Q=Z_0(X,G.getPlayerSize(),G.getVisibilityState()),R=new Tz(G,Q),g.l(QZ,R.fetch(),2);S=QZ.N;Z={player_response:S};X.loading=!1;H=G.Sz.dG;if(R.yG){w=g.e(R.yG.entries());for(h=w.next();!h.done;h=w.next())L=h.value,k=g.e(L),Y=k.next().value,M=k.next().value,m=Y,u=M,H.N.set(m,u,180),m===X.videoId&&(r=u.RD(),X.GQ=r);H.h4=R}x=g.e(R.PV.entries());for(c=x.next();!c.done;c= x.next())z=c.value,B=g.e(z),V=B.next().value,p=B.next().value,b=V,A=p,H.W.set(b,A,180);g.uV(X,Z,!0);if(X.loading||mP(X))return QZ.return(Promise.resolve());H.N.removeAll();H.W.removeAll();X.GQ=[];wX={};qe="onesie.response";hG=0;X.errorCode?(qe="auth",wX.ec=X.errorCode,wX.ed=X.errorDetail,wX.es=X.pj||"",hG=2):(wX.successButUnplayable="1",wX.disposed=""+ +X.U_(),wX.afmts=""+ +/adaptiveFormats/.test(S),wX.cpn=X.clientPlaybackNonce);jy=new g.YE(qe,wX,hG);return QZ.return(Promise.reject(jy))})}; n07=function(G,X){var Q,R,S,Z,H,w,h,L,k,Y,M;return g.F(function(m){switch(m.W){case 1:Q=X.isAd(),R=!Q,S=Q?1:3,Z=0;case 2:if(!(Z0)){m.pO(5);break}return g.l(m,Fq(5E3),6);case 6:H=new g.Ic("Retrying OnePlatform request",{attempt:Z}),g.EL(H);case 5:return g.a0(m,7),g.l(m,GSC(G,X),9);case 9:return m.return();case 7:w=g.cl(m);h=Mr(w);L=h.errorCode;k=G.Z();Y=k.G("html5_use_network_error_code_enums")?401:"401";R&&L==="manifest.net.badstatus"&&h.details.rc===Y&&(R=!1,Z===S-1&&(S+= 1));if(Z===S-1)return M=XGy(Q,h.details),M.details.backend="op",M.details.originec=L,m.return(Promise.reject(M));if(L==="auth"||L==="manifest.net.retryexhausted")return m.return(Promise.reject(h));G.handleError(h);if(j0(h.severity)){m.pO(4);break}case 3:Z++;m.pO(2);break;case 4:return m.return(Promise.reject(XGy(Q,{backend:"op"})))}})}; GSC=function(G,X){function Q(qe){qe.readyState===2&&G.ez("ps_c")} var R,S,Z,H,w,h,L,k,Y,M,m,u,r,x,c,z,B,V,p,b,A,wX;return g.F(function(qe){switch(qe.W){case 1:X.fetchType="gp";R=G.Z();S=g.z$(R,g.qY(X));if(!S.N){Z=S.getValue();qe.pO(2);break}return g.l(qe,S.N,3);case 3:Z=qe.N;case 2:return H=Z,w=iby(H),h=Z_0(X,G.getPlayerSize(),G.getVisibilityState()),L=g.bP(QN0),k=g.qY(X),Y=(0,g.TB)(),M=!1,m="empty",u=0,G.ez("psns"),r={dw:Q},g.l(qe,g.lj(w,h,L,void 0,r),4);case 4:x=qe.N;G.ez("psnr");if(X.U_())return qe.return();x?"error"in x&&x.error?(M=!0,m="esf:"+x.error.message, u=x.error.code):x.errorMetadata&&(M=!0,m="its",u=x.errorMetadata.status):M=!0;if(M)return c=0,z=((0,g.TB)()-Y).toFixed(),B={},B=R.G("html5_use_network_error_code_enums")?{backend:"op",rc:u,rt:z,reason:m,has_kpt:X.R6?"1":"0",has_mdx_env:X.mdxEnvironment?"1":"0",has_omit_key_flag:g.WO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:R.pageId?"1":"0",has_token:k?"1":"0",has_vvt:X.Mi?"1":"0",is_mdx:X.isMdxPlayback?"1":"0",mdx_ctrl:X.fv||"",token_eq:k===g.qY(X)?"1":"0"}:{backend:"op", rc:""+u,rt:z,reason:m,has_kpt:X.R6?"1":"0",has_mdx_env:X.mdxEnvironment?"1":"0",has_omit_key_flag:g.WO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:R.pageId?"1":"0",has_token:k?"1":"0",has_vvt:X.Mi?"1":"0",is_mdx:X.isMdxPlayback?"1":"0",mdx_ctrl:X.fv||"",token_eq:k===g.qY(X)?"1":"0"},V="manifest.net.connect",u===429?(V="auth",c=2):u>200&&(V="manifest.net.badstatus",u===400&&(c=2)),qe.return(Promise.reject(new g.YE(V,B,c)));X.loading=!1;g.uV(X,{raw_player_response:x},!0); p=x;g.Sb(X.Z())&&p&&p.trackingParams&&H_(p.trackingParams);if(X.errorCode)return b={ec:X.errorCode,ed:X.errorDetail,es:X.pj||""},qe.return(Promise.reject(new g.YE("auth",b,2)));if(!X.loading&&!mP(X))return A=X.isAd()?"auth":"manifest.net.retryexhausted",wX=X.isAd()?2:1,qe.return(Promise.reject(new g.YE(A,{successButUnplayable:"1",hasMedia:g.NL(X)?"1":"0"},wX)));g.rX(qe)}})}; A_X=function(G,X,Q){function R(u){u=Mr(u);if(j0(u.severity))return Promise.reject(u);G.handleError(u);return!1} function S(){return!0} var Z,H,w,h,L,k,Y,M,m;return g.F(function(u){switch(u.W){case 1:var r=G.Z();G.getPlayerSize();G.getVisibilityState();G.isFullscreen();if(X.partnerId===38&&r.playerStyle==="books")r=X.videoId.indexOf(":"),r=g.on("//play.google.com/books/volumes/"+X.videoId.slice(0,r)+"/content/media",{aid:X.videoId.slice(r+1),sig:X.F3T});else if(X.partnerId===30&&r.playerStyle==="docs")r=g.on("https://docs.google.com/get_video_info",{docid:X.videoId,authuser:X.Jf,authkey:X.Zdb,eurl:r.F7});else if(X.partnerId===33&& r.playerStyle==="google-live")r=g.on("//google-liveplayer.appspot.com/get_video_info",{key:X.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+r.AT);Z=r;w=(H=X.isAd())?1:3;h=0;case 2:if(!(h0)){u.pO(5);break}return g.l(u,Fq(5E3),6);case 6:k={playerretry:h,playerretrysrc:Q},H||(k.recover="embedded"),L=ib(Z,k);case 5:return g.l(u,RtS(X,L).then(S,R),7);case 7:if(Y=u.N)return u.return();h++;u.pO(2);break;case 4:M=H?"auth":"manifest.net.retryexhausted";m= H?2:1;if(!H&&Math.random()<1E-4)try{g.EL(new g.Ic("b/152131571",btoa(Z)))}catch(x){}return u.return(Promise.reject(new g.YE(M,{backend:"gvi"},m)))}})}; RtS=function(G,X){function Q(x){return R(x.xhr)} function R(x){if(!G.U_()){x=x?x.status:-1;var c=0,z=((0,g.TB)()-k).toFixed();z=S.G("html5_use_network_error_code_enums")?{backend:"gvi",rc:x,rt:z}:{backend:"gvi",rc:""+x,rt:z};var B="manifest.net.connect";x===429?(B="auth",c=2):x>200&&(B="manifest.net.badstatus",x===400&&(c=2));return Promise.reject(new g.YE(B,z,c))}} var S,Z,H,w,h,L,k,Y,M,m,u,r;return g.F(function(x){if(x.W==1){G.fetchType="gvi";S=G.Z();var c={};G.Y7&&(c.ytrext=G.Y7);(w=g.Mn(c)?void 0:c)?(Z={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:w},H=ib(X,{action_display_post:1})):(Z={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},H=X);h={};S.sendVisitorIdHeader&&G.visitorData&&(h["X-Goog-Visitor-Id"]=G.visitorData);(L=Pm(S.experiments,"debug_sherlog_username"))&&(h["X-Youtube-Sherlog-Username"]=L);Object.keys(h).length> 0&&(Z.headers=h);k=(0,g.TB)();return g.l(x,ll(Ki,H,Z).then(void 0,Q),2)}Y=x.N;if(!Y||!Y.responseText)return x.return(R(Y));G.loading=!1;M=$r(Y.responseText);g.uV(G,M,!0);if(G.errorCode)return m={ec:G.errorCode,ed:G.errorDetail,es:G.pj||""},x.return(Promise.reject(new g.YE("auth",m,2)));if(!G.loading&&!mP(G))return u=G.isAd()?"auth":"manifest.net.retryexhausted",r=G.isAd()?2:1,x.return(Promise.reject(new g.YE(u,{successButUnplayable:"1"},r)));g.rX(x)})}; XGy=function(G,X){return new g.YE(G?"auth":"manifest.net.retryexhausted",X,G?2:1)}; bO=function(G,X,Q){Q=Q===void 0?!1:Q;var R,S,Z,H;g.F(function(w){if(w.W==1){R=G.Z();if(Q&&(!g.eb(R)||RM(X)!=="embedded")||X.d7||RM(X)!=="adunit"&&(g.jJ(R)||kn(R)||g.lP(R)||g.KK(R)||g.ZK(R)||oD(R)==="WEB_CREATOR"))return w.return();S=g.z$(R,g.qY(X));return S.N?g.l(w,S.N,3):(Z=S.getValue(),w.pO(2))}w.W!=2&&(Z=w.N);H=Z;return w.return(SRV(G,X,H))})}; SRV=function(G,X,Q){var R,S,Z,H,w;return g.F(function(h){if(h.W==1){g.a0(h,2);R=iby(Q);var L=X.Z();g.la();var k={context:g.KC(X),videoId:X.videoId,racyCheckOk:X.racyCheckOk,contentCheckOk:X.contentCheckOk,autonavState:"STATE_NONE"};RM(X)==="adunit"&&(k.isAdPlayback=!0);L.embedConfig&&(k.serializedThirdPartyEmbedConfig=L.embedConfig);L.m9&&(k.showContentOwnerOnly=!0);X.eY&&(k.showShortsOnly=!0);g.BA(0,141)&&(k.autonavState=g.BA(0,140)?"STATE_OFF":"STATE_ON");if(g.sB(L)){var Y=g.BA(0,65);Y=Y!=null? !Y:!1;var M=!!g.xL("yt-player-sticky-caption");k.captionsRequested=Y&&M}var m;if(L=(m=L.getWebPlayerContextConfig())==null?void 0:m.encryptedHostFlags)k.playbackContext={encryptedHostFlags:L};S=k;Z=g.bP(ZGl);G.ez("wn_s");return g.l(h,g.lj(R,S,Z),4)}if(h.W!=2)return H=h.N,G.ez("wn_r"),!H||"error"in H&&H.error||(w=H,g.Sb(X.Z())&&w.trackingParams&&H_(w.trackingParams),g.uV(X,{raw_watch_next_response:H},!1)),g.OC(h,0);g.cl(h);g.rX(h)})}; HGV=function(G){G.ez("vir");G.ez("ps_s");cf("vir",void 0,"video_to_ad");var X=J_T(G);X.then(function(){G.ez("virc");cf("virc",void 0,"video_to_ad");G.ez("ps_r");cf("ps_r",void 0,"video_to_ad")},function(){G.ez("virc"); cf("virc",void 0,"video_to_ad")}); return X}; g.iO=function(G,X,Q,R,S,Z,H,w,h,L){h=h===void 0?new g.ML(G):h;L=L===void 0?!0:L;g.ic.call(this);var k=this;this.tT=G;this.playerType=X;this.M9=Q;this.XR=R;this.getVisibilityState=Z;this.visibility=H;this.Sz=w;this.videoData=h;this.vS=L;this.logger=new g.sp("VideoPlayer");this.Ld=null;this.zk=new Yc;this.Yq=null;this.UE=!0;this.kc=this.loader=null;this.Da=[];this.y_=new $c;this.yU=this.u3=null;this.WX=new $c;this.Sr=null;this.Py=this.O9=!1;this.lI=NaN;this.zc=!1;this.playerState=new g.gO;this.qe=[]; this.B2=new g.KP;this.NW=new gcV(this);this.mediaElement=null;this.W9=new g.fU(this.C6A,15E3,this);this.LP=this.Oa=!1;this.TG=NaN;this.mM=!1;this.s1=0;this.KR=!1;this.yK=NaN;this.qt=new NH(new Map([["bufferhealth",function(){return U60(k.I6)}], ["bandwidth",function(){return k.BJ()}], ["networkactivity",function(){return k.tT.schedule.Yc}], ["livelatency",function(){return k.isAtLiveHead()&&k.isPlaying()?qRX(k):NaN}], ["rawlivelatency",function(){return qRX(k)}]])); this.Nf=0;this.loop=!1;this.playbackRate=1;this.Cl=0;this.I6=new afV(this);this.yd=!1;this.C5=[];this.Qb=this.Hg=0;this.FL=this.Dw=!1;this.Ez=this.GI=0;this.AZ=new g.fU(this.wY,0,this);this.IF=!1;this.UY=null;this.kTT=[this.B2,this.AZ,this.W9,this.qt];this.I2=this.WG=this.Zv=null;this.cR=function(){var Y=k.Q0;Y.provider.tT.lL||Y.provider.uB.getVisibilityState()===3||(Y.provider.tT.lL=!0);Y.W4();if(Y.W){var M=Y.W;M.C&&M.N<0&&M.provider.uB.getVisibilityState()!==3&&q80(M)}Y.qoe&&(Y=Y.qoe,Y.Xm&&Y.Y< 0&&Y.provider.tT.lL&&F0U(Y),Y.V&&JY(Y));k.loader&&vx(k);k.tT.fp&&!k.videoData.backgroundable&&k.mediaElement&&!k.HF()&&(k.isBackground()&&k.mediaElement.sX()?(k.Ni("bgmobile",{suspend:1}),k.Gi(!0,!0)):k.isBackground()||Je(k)&&k.Ni("bgmobile",{resume:1}))}; this.gh={Hf:function(Y){k.Hf(Y)}, zDM:function(Y){k.Ld=Y}, UQi:function(){return k.Q0}, Hd:function(){return k.kc}, ZDd:function(){return k.DD}, K9b:function(){return k.RS}, kIO:function(){}, Z:function(){return k.tT}, EY:function(){return k.mediaElement}, iiB:function(Y){k.j0(Y)}, TdH:function(){return k.XR}}; this.logger.debug(function(){return"creating, type "+X}); this.Q$=new hBw(this.tT);this.Kv=new MH(this.tT,this.XR,this);this.dL=new g.zc(this,function(Y,M){Y!==g.Dy("endcr")||g.N(k.playerState,32)||k.q0();S(Y,M,k.playerType);if(Y===g.Dy("transitiondetector")&&(Y=k.loader)!=null&&(Y=Y.N9)!=null){var m=g.e(bLw(M.id));m.next();m=m.next().value;Nx7(Y,m,M.start/1E3-Y.uB.q9(),tXy(Y.V))}}); g.d(this,this.dL);g.d(this,this.I6);wGG(this,h);this.videoData.subscribe("dataupdated",this.GFU,this);this.videoData.subscribe("dataloaded",this.JZ,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ni,this);this.videoData.subscribe("ctmpstr",this.aY,this);!this.Q0||this.Q0.U_();this.Q0=new g.xc(new E1(this.videoData,this.tT,this));zrS(this.cR);this.visibility.subscribe("visibilitystatechange",this.cR);this.DD=new g.fU(this.Yk,g.i2(this.tT.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.RS=new g.fU(this.Yk,g.i2(this.tT.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Jm=new g.nU(this.JWi,350,this);g.d(this,this.Jm)}; wGG=function(G,X){if(G.playerType===2||G.tT.uy)X.iP=!0;var Q=swe(X.lL,X.Z6,G.tT.V,G.tT.T);Q&&(X.adFormat=Q);G.playerType===2&&(X.mD=!0);if(G.isFullscreen()||G.tT.V)Q=g.xL("yt-player-autonavstate"),X.autonavState=Q||(G.tT.V?2:G.videoData.autonavState);X.endSeconds&&X.endSeconds>X.startSeconds&&fq(G,X.endSeconds)}; htG=function(G){var X=G.videoData;HGV(G).then(void 0,function(Q){G.videoData!==X||X.U_()||(Q=Mr(Q),Q.errorCode==="auth"&&G.videoData.errorDetail?G.WR(Q.errorCode,2,unescape(G.videoData.errorReason),kE(Q.details),G.videoData.errorDetail,G.videoData.pj||void 0):G.handleError(Q))})}; YRC=function(G){if(!g.N(G.playerState,128))if(G.videoData.isLoaded(),G.logger.debug("finished loading playback data"),G.Da=g.lL(G.videoData.j),g.NL(G.videoData)){G.M9.tick("bpd_s");GG(G).then(function(){G.M9.tick("bpd_c");if(!G.U_()){G.O9&&(G.dM(BH(BH(G.playerState,512),1)),Je(G));var R=G.videoData;R.endSeconds&&R.endSeconds>R.startSeconds&&fq(G,R.endSeconds);G.y_.finished=!0;Xo(G,"dataloaded");G.WX.Xk()&&LYT(G);H57(G.Kv,G.yU)}}); G.G("html5_log_media_perf_info")&&G.Ni("loudness",{v:G.videoData.Co.toFixed(3)},!0);var X,Q=(X=G.mediaElement)==null?void 0:X.V0();if(Q&&"disablePictureInPicture"in Q&&G.tT.Zz)try{Q.disablePictureInPicture=G.tT.Lu&&!G.videoData.backgroundable}catch(R){g.EL(R)}kSZ(G);G.G("html5_enable_new_audio_settings_menu")&&(G.I2=new DJ(G.videoData))}else Xo(G,"dataloaded")}; GG=function(G){QS(G);G.yU=null;var X=kK7(G.tT,G.videoData,G.HF());G.u3=X;G.u3.then(function(Q){jNZ(G,Q)},function(Q){G.U_()||(Q=Mr(Q),G.visibility.isBackground()?(R5(G,"vp_none_avail"),G.u3=null,G.y_.reset()):(G.y_.finished=!0,G.WR(Q.errorCode,Q.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",kE(Q.details))))}); return X}; jNZ=function(G,X){if(!G.U_()&&!X.videoData.U_()){G.logger.debug("finished building playback data");G.yU=X;ObG(G.I6,G.yU);if(G.videoData.isLivePlayback){var Q=M1i(G.Sz.dG,G.videoData.videoId)||G.loader&&!isNaN(G.loader.Mi);Q=G.G("html5_onesie_live")&&Q;pq(G)||G.videoData.N9>0&&!Fu(G.videoData)||Q||G.seekTo(G.Zs(),{nY:"videoplayer_playbackData",seekSource:18})}if(G.videoData.Y.N){if(npT(G.videoData)){G.WR("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",kE({missabrurl:1}));return}G.loader?g.EL(Error("Duplicated Loader")): (Q=g.i2(G.tT.experiments,"html5_onesie_defer_content_loader_ms"))&&G.kf()&&M1i(G.Sz.dG,G.videoData.Rz_)?g.wp(function(){G.U_()||G.loader||mFX(G)},Q):mFX(G)}else!G.videoData.Y.N&&k6(G.videoData)&&G.uI(new al(G.videoData.videoId||"",4)); G.Fd();JeG(X).then(function(){var R={};G.Ac(R);G.tT.n7()&&G.G("html5_log_media_perf_info")&&G.Ni("av1Info",R);vx(G)})}}; LYT=function(G){G.U_();G.logger.debug("try finish readying playback");if(G.WX.finished)G.logger.debug("already finished readying");else if(G.y_.finished)if(g.N(G.playerState,128))G.logger.debug("cannot finish readying because of error");else if(G.Da.length)G.logger.debug(function(){return"cannot finish readying because of pending preroll: "+G.Da}); else if(G.dL.started||Q6w(G.dL),G.pg())G.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{G.loader&&(G.Py=SpZ(G.loader.timing));G.WX.finished||(G.WX.finished=!0);var X=G.G("html5_onesie_live")&&G.loader&&!isNaN(G.loader.Mi);!G.videoData.isLivePlayback||G.videoData.N9>0&&!Fu(G.videoData)||X||pq(G)||(G.logger.debug("seek to head for live"),G.seekTo(Infinity,{nY:"videoplayer_readying",seekSource:18}),G.isBackground()&&(G.LP=!0));WkV(G.Q0);G.logger.debug("finished readying playback"); G.publish("playbackready");OF("pl_c",G.M9.timerName)||(G.M9.tick("pl_c"),cf("pl_c",void 0,"video_to_ad"));OF("pbr",G.M9.timerName)||(G.M9.tick("pbr"),cf("pbr",void 0,"video_to_ad"))}else G.logger.debug("playback data not loaded")}; fq=function(G,X){G.Yq&&o2Z(G);G.Yq=new g.yG(X*1E3,0x7ffffffffffff);G.Yq.namespace="endcr";G.addCueRange(G.Yq)}; o2Z=function(G){G.removeCueRange(G.Yq);G.Yq=null}; uiZ=function(G,X,Q,R,S){var Z=G.Q0,H=G.videoData;H.W=Q;var w=g.SP(G);Q=new yeG(H,Q,X,w?w.itag:"",R);G.tT.experiments.TT("html5_refactor_sabr_video_format_selection_logging")?(Q.videoId=S,G.WG=Q):Z.qoe&&B4y(Z.qoe,Q);S=G.Kv;S.W=0;S.N=0;G.publish("internalvideoformatchange",H,X==="m")}; g.SP=function(G){var X=Z2(G);return z1(X)||!G.yU?null:g.Ka(G.yU.N.videoInfos,function(Q){return X.V(Q)})}; Z2=function(G){if(G.yU){var X=G.Kv;var Q=G.yU;G=G.IG();var R=DHV(X);if(z1(R)){if(R=X.iC(Q).compose($HV(X,Q)).compose(vcw(X,Q)).compose(S8e(X,Q.videoData)).compose(Z50(X,Q.videoData,Q)).compose(Rf0(X,Q)).compose(AeV(X,Q)),z1(G)||X.G("html5_apply_pbr_cap_for_drm"))R=R.compose(ncZ(X,Q))}else X.G("html5_perf_cap_override_sticky")&&(R=R.compose(Rf0(X,Q))),X.G("html5_ustreamer_cap_override_sticky")&&(R=R.compose(ncZ(X,Q)));R=R.compose(AeV(X,Q));X=Q.videoData.pV.compose(R).compose(Q.videoData.J$).compose(G)}else X= jX;return X}; mLT=function(G){var X=G.Kv;G=G.videoData;var Q=S8e(X,G);X.G("html5_disable_client_autonav_cap_for_onesie")||Q.compose(Z50(X,G));return Q}; vx=function(G){if(G.videoData.Y&&G.videoData.Y.N){var X=Z2(G);G.loader&&iCX(G.loader,X)}}; PWG=function(G){var X;return!!(G.G("html5_native_audio_track_switching")&&g.Y_&&((X=G.videoData.W)==null?0:nP(X)))}; sNl=function(G){if(!PWG(G))return!1;var X;G=(X=G.mediaElement)==null?void 0:X.audioTracks();return!!(G&&G.length>1)}; KY7=function(G){var X=Ta7(G);if(X)return G.videoData.getAvailableAudioTracks().find(function(Q){return Q.kP.getName()===X})}; Ta7=function(G){var X;if(G=(X=G.mediaElement)==null?void 0:X.audioTracks())for(X=0;X0&&(X.Sa=Q.cX));X.f4=Q.bE;X.V1=X7(R,{},Q.Y||void 0,Oc(Q));X.KO=xP(Q)&&(g.lP(R)||g.KK(R));c4(Q)&&(X.C=!0,X.Fo=R.G("html5_estimate_live_partial_slice_duration"),g.jJ(R)&&!g.V9()&&R.G("html5_force_audio_to_cover_video_keyframe")?X.Hs=!1:X.Hs=!0,R.G("html5_sabr_report_partial_segment_estimated_duration")&& (X.iz=!0),X.N=!0,X.aL=R.G("html5_sabr_enable_live_clock_offset"),X.xv=R.G("html5_disable_client_resume_policy_for_sabr"),X.Cq=R.G("html5_trigger_loader_when_idle_network"),X.IP=R.G("html5_sabr_parse_live_metadata_playback_boundaries"),X.Yv=R.G("html5_consume_onesie_next_request_policy_for_sabr"),X.Bo=R.G("html5_sabr_report_next_ad_break_time"),X.Za=R.G("html5_log_high_res_buffer_timeline")&&R.n7(),X.GV=R.G("html5_remove_stuck_slices_beyond_max_buffer_limits"),X.Zg=R.G("html5_gapless_sabr_btl_last_slice")&& Ec(Q),X.r8=R.G("html5_reset_last_appended_slice_on_seek")&&Ec(Q),Fu(Q)?(X.Po=!0,X.QE=R.G("html5_disable_variability_tracker_for_live"),X.cM=!0,R.G("html5_simplified_backup_timeout_sabr_live")&&(X.rJ=!0,X.PR=X.m9)):X.l9=R.G("html5_probe_request_on_sabr_request_progress"),X.QV=R.G("html5_serve_start_seconds_seek_for_post_live_sabr"),X.ze=R.G("html5_flush_index_on_updated_timestamp_offset"),X.j=c4(Q),X.ER=R.G("html5_ignore_partial_segment_from_live_readahead"),R.G("html5_include_partial_segment_for_jumbo_ll")&& CL(Q)&&(X.ER=!1),X.Jn=R.G("html5_use_non_active_broadcast_for_post_live"),X.Mi=R.G("html5_use_centralized_player_time"),X.Js=R.G("html5_log_centralized_player_time"),X.R4=R.G("html5_consume_onesie_sabr_seek"),X.AT=R.G("html5_enable_sabr_seek_loader_refactor"),X.m5=g.i2(R.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),X.i7=R.G("html5_update_segment_start_time_from_media_header"),Q.enableServerStitchedDai&&(X.W=!0,X.hn=R.G("html5_reset_server_stitch_state_for_non_sabr_seek"),X.qz= R.G("html5_remove_ssdai_append_pause")&&!Q.Yr(),X.Co=R.G("html5_ssdai_log_ssevt_in_loader")||R.G("html5_ssdai_log_ssevt_in_loader_200ms")||R.G("html5_ssdai_log_ssevt_in_loader_timers")||R.G("html5_ssdai_log_ssevt_in_loader_cuerange"),R.G("html5_ssdai_log_ssevt_in_loader_timers")?X.As=1:R.G("html5_ssdai_log_ssevt_in_loader_200ms")?X.As=3:R.G("html5_ssdai_log_ssevt_in_loader_cuerange")&&(X.As=0)),X.cX=R.n7()||Q.Yr());X.Mj=g.Dh7(Q);ys(R.C,fR.BITRATE)&&(X.jA=NaN);if(w=g.i2(R.experiments,"html5_request_size_max_kb"))X.CO= w*1024;R.C.Y?X.F0="; "+fR.EXPERIMENTAL.name+"=allowed":R.G("html5_enable_cobalt_tunnel_mode")&&g.V9()&&(w=fR.TUNNELMODE,X.F0="; "+w.name+"="+w.valid);Q=Q.serverPlaybackStartConfig;(Q==null?0:Q.enable)&&(Q==null?0:Q.playbackStartPolicy)&&(X.kU=!0,DKZ(X,Q.playbackStartPolicy,2));Q=etT(G);G.zk.removeAll();a:{w=G.Sz.dG;if(R=G.videoData.videoId)if(S=w.N.get(R)){w.N.remove(R);w=S;break a}w=void 0}G.loader=new g.QE(G,G.tT.schedule,X,G.videoData.N,G.videoData.Y,Z2(G),Q,G.videoData.enableServerStitchedDai, w,G.videoData.AT);X=G.videoData.G("html5_disable_preload_for_ssdai_with_preroll")&&G.videoData.isLivePlayback&&G.kf()?!0:G.O9&&g.jJ(G.tT)&&G.videoData.isLivePlayback;G.loader.initialize(G.getCurrentTime(),Z2(G),X);G.videoData.probeUrl&&(G.loader.KO=G.videoData.probeUrl);if(G.Da.length||G.O9)G.videoData.cotn||Ht(G,!1);c_l(G.I6,G.loader);G.UY&&(KdT(G.loader,new g.Ri(G.UY)),G.Ni("sdai",{sdl:1}));g.MY(G.videoData)&&(G=G.loader,G.policy.G7=G.policy.Zb)}; QS=function(G){G.loader&&(G.loader.dispose(),G.loader=null,c_l(G.I6,null));G.g2()?r27(G):G.IL()}; r27=function(G){if(G.kc)if(G.logger.debug("release media source"),G.a8(),G.kc.C)try{G.tT.n7()&&G.Ni("rms",{l:"vprms",sr:G.g2(),rs:er(G.kc)});G.kc.clear();var X;(X=G.mediaElement)!=null&&(X.W=G.kc);G.kc=null}catch(Q){X=new g.Ic("Error while clearing Media Source in VideoPlayer: "+Q.name+", "+Q.message),X=Mr(X),G.handleError(X),G.IL()}else G.IL()}; aZ7=function(G,X){X=X===void 0?!1:X;if(G.kc)return G.kc.Y;G.logger.debug("update media source");a:{X=X===void 0?!1:X;try{g.V9()&&G.videoData.yb()&&IgG(G.mediaElement);var Q=G.mediaElement.Hd(G.P1(),G.Kk())}catch(S){if(COZ(G.NW,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",S);G.WR("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}G.PW(Q,!1,!1,X)}var R;return((R=G.Hd())==null?void 0:R.Y)||null}; E2y=function(G,X){X=X===void 0?!1:X;if(G.loader){G.videoData.enableServerStitchedDai&&Cii(G.loader);var Q=G.getCurrentTime()-G.q9();G.loader.seek(Q,{B_:X}).EG(function(){})}else mFX(G)}; OG7=function(G,X,Q,R){Q=Q===void 0?!1:Q;R=R===void 0?!1:R;if(G.kc&&(!X||G.kc===X)){G.logger.debug("media source opened");var S=G.getDuration();!S&&Fu(G.videoData)&&(S=25200);if(G.kc.isView){var Z=S;G.logger.debug(function(){return"Set media source duration to "+Z+", video duration "+S}); Z>G.kc.getDuration()&&xF7(G,Z)}else xF7(G,S);bCe(G.loader,G.kc,Q,R);G.publish("mediasourceattached")}}; xF7=function(G,X){if(G.kc){G.kc.GJ(X);var Q;(Q=G.loader)!=null&&Q.policy.Mi&&(Q.S=X)}}; XvU=function(G,X){uiZ(G,X.reason,X.N.info,X.token,X.videoId)}; Xo=function(G,X){G.publish("internalvideodatachange",X===void 0?"dataupdated":X,G.videoData)}; zt7=function(G){for(var X=g.e("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),Q=X.next();!Q.done;Q=X.next())G.B2.B(G.mediaElement,Q.value,G.j0,G);G.tT.bZ&&G.mediaElement.xm()&&(G.B2.B(G.mediaElement,"webkitplaybacktargetavailabilitychanged",G.Fpm,G),G.B2.B(G.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",G.OOO,G))}; g2Z=function(G){g.kD(G.lI);c2y(G)||(G.lI=g.h8(function(){return c2y(G)},100))}; c2y=function(G){var X=G.mediaElement;X&&G.Oa&&!G.videoData.yH&&!OF("vfp",G.M9.timerName)&&X.fu()>=2&&!X.isEnded()&&hS(X.wL())&&G.M9.tick("vfp");return(X=G.mediaElement)&&!G.videoData.yH&&X.getDuration()>0&&(X.isPaused()&&X.fu()>=2&&hS(X.wL())&&(OF("pbp",G.M9.timerName)||G.M9.tick("pbp"),!G.videoData.m7||G.zc||X.isSeeking()||(G.zc=!0,G.publish("onPlaybackPauseAtStart"))),X=X.getCurrentTime(),cx(G.Q$,X))?(G.qf(),!0):!1}; lZG=function(G){G.Q0.onProgress();if(B4(G.videoData)&&Date.now()>G.Cl+6283){if(G.G("html5_unified_live_latency_reporting")){var X=G.Q0;X.qoe&&E6G(X.qoe)}else!G.isAtLiveHead()||G.videoData.N&&yC(G.videoData.N)||(X=G.Q0,X.qoe&&E6G(X.qoe));X=g.kU(G.tT);var Q=G.G("html5_always_log_rawlat");(X||Q)&&G.Ni("rawlat",{l:nq(G.qt,"rawlivelatency").toFixed(3)});G.Cl=Date.now()}G.videoData.W&&nP(G.videoData.W)&&(X=G.lR())&&X.videoHeight!==G.Qb&&(G.Qb=X.videoHeight,uiZ(G,"a",UFS(G,G.videoData.Xm)))}; UFS=function(G,X){if(X.N.video.quality==="auto"&&nP(X.getInfo())&&G.videoData.l9)for(var Q=g.e(G.videoData.l9),R=Q.next();!R.done;R=Q.next())if(R=R.value,R.getHeight()===G.Qb&&R.N.video.quality!=="auto")return R.getInfo();return X.getInfo()}; qRX=function(G){if(!B4(G.videoData))return NaN;var X=0;G.loader&&G.videoData.N&&(X=Fu(G.videoData)?G.loader.kH.X8()||0:G.videoData.N.QH);return(0,g.TB)()/1E3-G.mY()-X}; FY0=function(G){G.mediaElement&&G.mediaElement.HF()&&(G.yK=(0,g.TB)());G.tT.Bf?g.wp(function(){Bae(G)},0):Bae(G)}; Bae=function(G){var X;if((X=G.kc)==null||!X.Dz()){if(G.mediaElement)try{G.Sr=G.mediaElement.playVideo()}catch(R){R5(G,"err."+R)}if(G.Sr){var Q=G.Sr;Q.then(void 0,function(R){G.logger.debug(function(){return"playMediaElement failed: "+R}); if(!g.N(G.playerState,4)&&!g.N(G.playerState,256)&&G.Sr===Q)if(R&&R.name==="AbortError"&&R.message&&R.message.includes("load"))G.logger.debug(function(){return"ignore play media element failure: "+R.message}); else{var S="promise";R&&R.name&&(S+=";m."+R.name);R5(G,S);G.yd=!0;G.videoData.Ge=!0}})}}}; R5=function(G,X){g.N(G.playerState,128)||(G.dM(CF(G.playerState,1028,9)),G.Ni("dompaused",{r:X}),G.publish("onAutoplayBlocked"))}; Je=function(G,X){X=X===void 0?!1:X;if(!G.mediaElement||!G.videoData.Y)return!1;var Q=X;Q=Q===void 0?!1:Q;var R=null;var S;if((S=G.videoData.Y)==null?0:S.N){R=aZ7(G,Q);var Z;(Z=G.loader)==null||Z.resume()}else QS(G),G.videoData.Xm&&(R=G.videoData.Xm.wm());S=G.mediaElement.sX();Q=!1;S&&S.equals(R)||(CWG(G,R),Q=!0);g.N(G.playerState,2)||(R=G.I6,X=X===void 0?!1:X,R.C||!(R.Y>0)||R.mediaElement&&R.mediaElement.getCurrentTime()>0||(X={nY:"seektimeline_resumeTime",B_:X},R.videoData.yH||(X.seekSource=15), R.seekTo(R.Y,X)));a:{X=Q;if(c4(G.videoData)){if(!G.videoData.VJ())break a}else if(!g.pL(G.videoData))break a;if(G.mediaElement)if((R=G.videoData.C)&&G.mediaElement.xm()){S=G.mediaElement.V0();if(G.Ld)if(S!==G.Ld.element)qd(G);else if(X&&R.flavor==="fairplay"&&!Im())qd(G);else break a;if(G.G("html5_report_error_for_unsupported_tvos_widevine")&&Im()&&R.flavor==="widevine")G.WR("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{G.Ld=new siX(S,G.videoData,G.tT);G.Ld.subscribe("licenseerror", G.tq,G);G.Ld.subscribe("qualitychange",G.lWO,G);G.Ld.subscribe("heartbeatparams",G.UQ,G);G.Ld.subscribe("keystatuseschange",G.Hf,G);G.Ld.subscribe("ctmp",G.Ni,G);X=g.e(G.zk.keys);for(R=X.next();!R.done;R=X.next())R=G.zk.get(R.value),G.Ld.Jb(R);G.G("html5_eme_loader_sync")||G.zk.removeAll()}}else G.WR("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return Q}; CWG=function(G,X){G.M9.tick("vta");cf("vta",void 0,"video_to_ad");G.getCurrentTime()>0&&BQC(G.I6,G.getCurrentTime());G.mediaElement.activate(X);G.kc&&$L(4);!G.videoData.yH&&G.playerState.isOrWillBePlaying()&&G.W9.start();if(PWG(G)){var Q;if(X=(Q=G.mediaElement)==null?void 0:Q.audioTracks())X.onchange=function(){G.publish("internalaudioformatchange",G.videoData,!0)}}}; qd=function(G){G.Ld&&(G.Ld.dispose(),G.Ld=null)}; t1y=function(G){var X=X===void 0?!1:X;G.logger.debug("reattachVideoSource");G.mediaElement&&(G.kc?(qd(G),G.IL(),aZ7(G,X)):(G.videoData.Xm&&G.videoData.Xm.KP(),G.mediaElement.stopVideo()),G.playVideo())}; V1y=function(G,X){G.tT.G("html5_log_rebuffer_reason")&&(X={r:X,lact:u6()},G.mediaElement&&(X.bh=Oj(G.mediaElement)),G.Ni("bufreason",X))}; IZi=function(G,X){if(G.tT.n7()&&G.mediaElement){var Q=G.mediaElement.L7();Q.omt=(G.mediaElement.getCurrentTime()+G.q9()).toFixed(3);Q.ps=G.playerState.state.toString(16);Q.rt=(g.vd(G.Q0.provider)*1E3).toFixed();Q.e=X;G.C5[G.Hg++%5]=Q}try{if(X==="timeupdate"||X==="progress")return}catch(R){}G.logger.debug(function(){return"video element event "+X})}; dFZ=function(G){if(G.tT.n7()){G.C5.sort(function(R,S){return+R.rt-+S.rt}); for(var X=g.e(G.C5),Q=X.next();!Q.done;Q=X.next())Q=Q.value,G.Ni("vpe",Object.assign({t:Q.rt},Q));G.C5=[];G.Hg=0}}; WYS=function(G){if(g.Ci("cobalt")&&g.Ci("nintendo switch")){var X=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;G.Ni("nxdock",{d:X})}}; Ht=function(G,X){var Q;(Q=G.loader)==null||DYX(Q,X)}; kSZ=function(G){oM(G.videoData,"html5_set_debugging_opt_in")&&(G=g.la(),g.BA(0,183)||(CZ(183,!0),G.save()))}; tE7=function(G,X){G.Sz.yu()||(G.Ni("sgap",{f:X}),G.Sz.clearQueue(!1,X==="pe"))}; pq=function(G){return G.G("html5_disable_video_player_initiated_seeks")&&c4(G.videoData)}; pGG=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);r4(this.api,"isLifaAdPlaying",function(){return X.api.isLifaAdPlaying()}); this.events.B(G,"serverstitchedvideochange",function(){var Q;(Q=X.api.getVideoData())!=null&&Q.Yr()&&(X.api.isLifaAdPlaying()?(X.playbackRate=X.api.getPlaybackRate(),X.api.setPlaybackRate(1)):X.api.setPlaybackRate(X.playbackRate))}); this.playbackRate=1}; wL=function(G){TT.call(this,"Loop",g.OE.Qj);this.U=G;var X=G.G("delhi_modern_web_player_icons")?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:c7X();this.setIcon(X);this.subscribe("select",this.W,this);G.createClientVe(this.element,this,28661);this.B(G,"settingsMenuVisibilityChanged",this.N);this.listen("click",this.logClick);this.B(G,"onLoopChange",this.onLoopChange);KE(this,G.getLoopVideo());G.Eb().jj(this)}; y2i=function(G){kH.call(this,G);var X=this;G.addEventListener("settingsMenuInitialized",function(){X.menuItem||(X.menuItem=new wL(X.api),g.d(X,X.menuItem))}); G.addEventListener("videodatachange",function(Q,R){Q=X.api.getPresentingPlayerType()===2;var S;(S=X.menuItem)==null||S.Ta(!R.isLivePlayback&&!Q)})}; fZi=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);r4(this.api,"seekToChapterWithAnimation",function(Q){X.seekToChapterWithAnimation(Q)}); r4(this.api,"seekToTimeWithAnimation",function(Q,R){X.seekToTimeWithAnimation(Q,R)}); r4(this.api,"renderChapterSeekingAnimation",function(Q,R,S){X.api.renderChapterSeekingAnimation(Q,R,S)}); r4(this.api,"setMacroMarkers",function(Q){X.setMacroMarkers(G,Q)}); r4(this.api,"changeMarkerVisibility",function(Q,R,S){X.changeMarkerVisibility(Q,R,S)}); r4(this.api,"isSameMarkerTypeVisible",function(Q){return X.isSameMarkerTypeVisible(Q)})}; DF7=function(G,X,Q){var R=G.api.getCurrentTime()*1E30&&S>0&&(Q.width+=S,g.DN(X.element,"width",Q.width+"px")));G.size=Q}}; g.a5=function(G,X){var Q=G.N[G.N.length-1];Q!==X&&(G.N.push(X),aBw(G,Q,X))}; g.E8=function(G){if(!(G.N.length<=1)){var X=G.N.pop(),Q=G.N[0];G.N=[Q];aBw(G,X,Q,!0)}}; aBw=function(G,X,Q,R){EbT(G);X&&(X.unsubscribe("size-change",G.td,G),X.unsubscribe("back",G.jc,G));Q.subscribe("size-change",G.td,G);Q.subscribe("back",G.jc,G);if(G.rb){g.Gk(Q.element,R?"ytp-panel-animate-back":"ytp-panel-animate-forward");Q.s_(G.content);Q.focus();G.element.scrollLeft=0;G.element.scrollTop=0;var S=G.size;rMG(G);g.XD(G.element,S);G.V=new g.fU(function(){x$l(G,X,Q,R)},20,G); G.V.start()}else Q.s_(G.content),X&&X.detach()}; x$l=function(G,X,Q,R){G.V.dispose();G.V=null;g.Gk(G.element,"ytp-popup-animating");R?(g.Gk(X.element,"ytp-panel-animate-forward"),g.QD(Q.element,"ytp-panel-animate-back")):(g.Gk(X.element,"ytp-panel-animate-back"),g.QD(Q.element,"ytp-panel-animate-forward"));g.XD(G.element,G.size);G.S=new g.fU(function(){g.QD(G.element,"ytp-popup-animating");X.detach();g.Rt(X.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);G.S.dispose();G.S=null},250,G); G.S.start()}; EbT=function(G){G.V&&g.NO(G.V);G.S&&g.NO(G.S)}; xz=function(G){g.rL.call(this,G,"ytp-shopping-product-menu");this.dS=new g.K5(this.U);g.d(this,this.dS);this.hide();g.a5(this,this.dS);g.$6(this.U,this.element,4)}; zGl=function(G,X,Q){var R,S=X==null?void 0:(R=X.text)==null?void 0:R.simpleText;S&&(Q=OIZ(G,Q,S,X==null?void 0:X.icon,X==null?void 0:X.secondaryIcon),X.navigationEndpoint&&Q.listen("click",function(){G.U.E_("innertubeCommand",X.navigationEndpoint);G.hide()},G))}; cMG=function(G,X,Q){var R,S=X==null?void 0:(R=X.text)==null?void 0:R.simpleText;S&&OIZ(G,Q,S,X==null?void 0:X.icon).listen("click",function(){var Z;(X==null?void 0:(Z=X.icon)==null?void 0:Z.iconType)==="HIDE"?G.U.publish("featuredproductdismissed"):X.serviceEndpoint&&G.U.E_("innertubeCommand",X.serviceEndpoint);G.hide()},G)}; OIZ=function(G,X,Q,R,S){X=new g.qz(g.wU({},[],!1,!!S),X,Q);S&&X.updateValue("secondaryIcon",gby(S));X.setIcon(gby(R));g.d(G,X);G.dS.jj(X,!0);return X}; gby=function(G){if(!G)return null;switch(G.iconType){case "ACCOUNT_CIRCLE":return{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{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",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{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 u1X();case "HIDE":return{D:"svg",L:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"g",K:[{D:"path",L:{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 P5()}}; O8=function(G){s8.call(this,G,!1,!0);this.isCounterfactual=this.W=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.T=!0;this.overflowButton=new g.f({D:"button",aU:["ytp-featured-product-overflow-icon","ytp-button"],L:{"aria-haspopup":"true"}});this.overflowButton.hide();g.d(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.f({D:"img",X:"ytp-suggested-action-badge-img",L:{src:"{{url}}"}}); this.thumbnailImage.hide();g.d(this,this.thumbnailImage);this.thumbnailIcon=new g.f({D:"div",X:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.d(this,this.thumbnailIcon);this.banner=new g.f({D:"a",X:"ytp-suggested-action-container",K:[this.thumbnailImage,this.thumbnailIcon,{D:"div",X:"ytp-suggested-action-details",K:[{D:"text",X:"ytp-suggested-action-title",WM:"{{title}}"},{D:"text",X:"ytp-suggested-action-subtitle",WM:"{{subtitle}}"},{D:"text",X:"ytp-suggested-action-metadata-text", WM:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.d(this,this.banner);this.banner.s_(this.Y.element);this.B(this.U,"videodatachange",this.onVideoDataChange);this.B(this.U,g.Dy("suggested_action_view_model"),this.D9_);this.B(this.U,g.N3("suggested_action_view_model"),this.aWb);this.B(this.overflowButton.element,"click",this.Kt);this.B(G,"featuredproductdismissed",this.zA);this.U.createServerVe(this.banner.element,this.banner,!0)}; U$y=function(G){G.isInitialized&&(G.enabled=G.isVisible,G.yH=G.isVisible,Pt(G),G.BI(),G.thumbnailImage.Ta(G.isVisible),G.shouldHideDismissButton||G.dismissButton.Ta(G.isVisible),G.shouldShowOverflowButton&&G.overflowButton.Ta(G.isVisible))}; zG=function(){O8.apply(this,arguments)}; lBX=function(G){kH.call(this,G);this.N=new zG(this.api);g.d(this,this.N);g.$6(this.api,this.N.element,4)}; ct=function(G){kH.call(this,G);var X=this;this.N=!0;var Q=new g.KP(G);g.d(this,Q);Q.B(G,"internalaudioformatchange",function(R,S){B37(X,R,S)}); Q.B(G,"videoplayerreset",function(){FVy(X)}); Q.B(G,"videodatachange",function(R,S){X.onVideoDataChange(R,S)})}; B37=function(G,X,Q){if(Q){var R="";Cri(G,X)&&(R=X,G.api.Z().cM=X);if(R&&tIV(G,R)){EeG(G.api,R);var S;p_(cM(G.api.Z(),(S=G.api.getVideoData())==null?void 0:g.qY(S)),function(Z){VIZ(G,R,Z)})}}}; FVy=function(G){var X;if((X=T1())==null?0:X.size){var Q;p_(cM(G.api.Z(),(Q=G.api.getVideoData())==null?void 0:g.qY(Q)),function(R){(R=IBe(R))&&tIV(G,R)&&(G.api.Z().cM=R)})}}; VIZ=function(G,X,Q){IBe(Q)!==X&&(d$w([{settingItemId:gL(Q),settingOptionValue:{stringValue:X}}]),p_(G.Ub(),function(R){oGC(R,gL(Q),{stringValue:X})}))}; WVX=function(G,X){yX(p_(p_(G.Ub(),function(Q){return Mh0(Q,[gL(X)])}),function(Q){if(Q){Q=g.e(Q); for(var R=Q.next();!R.done;R=Q.next()){var S=R.value;R=S.key;S=S.value;R&&S&&(d$w([{settingItemId:R,settingOptionValue:S}]),FVy(G))}}}),function(){G.N=!0})}; Cri=function(G,X){G=G.api.getAvailableAudioTracks();G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())if(Q=Q.value,Q.getLanguageInfo().getId()===X)return Q;return null}; IBe=function(G){G=gL(G);var X=T1();G=X?X.get(G):void 0;return G&&G.stringValue?G.stringValue:""}; gL=function(G){var X=(484).toString();G&&(X=(483).toString());return X}; tIV=function(G,X){var Q;return X.split(".")[0]!==""&&((Q=G.api.getVideoData())==null?void 0:!hL(Q))}; d$w=function(G){var X=T1();X||(X=new Map);G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value,X.set(Q.settingItemId,Q.settingOptionValue);X=JSON.stringify(Object.fromEntries(X));g.E5("yt-player-user-settings",X,2592E3)}; g.U8=function(G,X,Q,R,S,Z,H){g.qz.call(this,g.wU({"aria-haspopup":"true"}),X,G);this.gb=R;this.T=!1;this.Y=null;this.options={};this.JW=new g.K5(Q,void 0,G,S,Z,H);g.d(this,this.JW);this.listen("keydown",this.vI);this.listen("click",this.open)}; pw0=function(G){if(G.Y){var X=G.options[G.Y];X.element.getAttribute("aria-checked");X.element.setAttribute("aria-checked","false");G.Y=null}}; yMw=function(G,X){g.U8.call(this,"Sleep timer",g.OE.SLEEP_TIMER,G,X);this.U=G;this.J={};this.V=this.O6("Off");this.S=this.N="";G.G("web_settings_menu_icons")&&(X=G.G("delhi_modern_web_player_icons")?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{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.setIcon(X)); this.W=new g.f({D:"div",aU:["ytp-menuitem-label-wrapper"],K:[{D:"div",WM:"End of video"},{D:"div",aU:["ytp-menuitem-sublabel"],WM:"{{content}}"}]});g.d(this,this.W);this.listen("click",this.onClick);this.B(G,"videodatachange",this.onVideoDataChange);this.B(G,"presentingplayerstatechange",this.GT);this.B(G,"settingsMenuVisibilityChanged",this.j5);G.createClientVe(this.element,this,218889);this.GT();this.U.E_("onSleepTimerFeatureAvailable")}; fBy=function(G){var X="Off 10 15 20 30 45 60".split(" "),Q;((Q=G.U.getVideoData())==null?0:Q.isLivePlayback)||X.push("End of video");Q=G.U.getPlaylist();var R;Q&&((R=Q.listId)==null?void 0:R.type)!=="RD"&&X.push("End of playlist");G.gJ(g.P1(X,G.O6));G.J=g.JO(X,G.O6,G);X=G.O6("End of video");G.options[X]&&g.Hv(G.options[X],G.W)}; D$X=function(G,X){var Q=G.J[X],R=Q==="End of video"||Q==="End of playlist";Q==="Off"&&(G.N="");G.U.getPlayerState()!==0&&G.U.getPlayerState()!==5||!R?(G.V=X,g.U8.prototype.fL.call(G,X),G.mI(X),G.U.E_("onSleepTimerSettingsChanged",Q)):G.U.E_("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; l3=function(G){kH.call(this,G);var X=this;G.addEventListener("settingsMenuInitialized",function(){X.menuItem||(X.menuItem=new yMw(X.api,X.api.Eb()),g.d(X,X.menuItem))}); G.addEventListener("openSettingsMenuItem",function(Q){if(Q==="menu_item_sleep_timer"){if(!X.menuItem){var R;(R=X.api.Eb())==null||R.Pn()}X.menuItem.open()}}); r4(G,"resetSleepTimerMenuSettings",function(){X.resetSleepTimerMenuSettings()}); r4(G,"setSleepTimerTimeLeft",function(Q){X.setSleepTimerTimeLeft(Q)}); r4(G,"setVideoTimeLeft",function(Q){X.setVideoTimeLeft(Q)})}; N30=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"onSnackbarMessage",function(Q){switch(Q){case 1:Q=X.api.getPlayerStateObject(),Q.isBuffering()&&(X.api.G("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.N(Q,8)&&g.N(Q,16))&&X.api.E_("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Find out why"}]},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.Fo=function(G,X,Q,R,S){X=X===void 0?!1:X;R=R===void 0?!1:R;S=S===void 0?!1:S;g.ic.call(this);this.j=S;this.J=!1;this.V=new TJ(this);this.C=this.S=null;this.Y=this.W=!1;g.d(this,this.V);this.target=G;this.N=X;this.T=Q||G;this.J=R;X&&(g.kh&&this.target.setAttribute("draggable","true"),S||(this.target.style.touchAction="none"));Bt(this)}; C5=function(G){g.e8(G.V,!G.N)}; Bt=function(G){G.C=null;G.S=null;G.B(tE("over"),G.aq);G.B("touchstart",G.E3);G.N&&G.B(tE("down"),G.vcp)}; AM7=function(G,X){for(var Q=0;Qk.start&&Q>=5;r+=c}S=r.substr(0,4)+" "+r.substr(4,4)+" "+r.substr(8,4)+" "+(r.substr(12,4)+" "+r.substr(16,4))}else S="";H={video_id_and_cpn:String(X.videoId)+" / "+S,codecs:"",dims_and_frames:"",bandwidth_kbps:H.toFixed(0)+" Kbps",buffer_health_seconds:h.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:L?"":"display:none",drm:L,debug_info:Q,extra_debug_info:"",bandwidth_style:M,network_activity_style:M,network_activity_bytes:w.toFixed(0)+" KB",shader_info:Y,shader_info_style:Y?"":"display:none",playback_categories:""};w=R.clientWidth+"x"+R.clientHeight+(k>1?"*"+k.toFixed(2):"");h="-";Z.totalVideoFrames&&(h=(Z.droppedVideoFrames||0)+" dropped of "+Z.totalVideoFrames);H.dims_and_frames=w+" / "+h;G=G.getVolume();w=yoV(X);var B;if((B=X.V)==null?0:B.audio.W)B= "VB";else{var V;B=((V=X.V)==null?0:V.audio.N)?"DRC":Math.round(G*w)+"%"}V=Math.round(G)+"% / "+B;B=X.Co.toFixed(1);isFinite(Number(B))&&(V+=" (content loudness "+B+"dB)");H.volume=V;H.resolution=R.videoWidth+"x"+R.videoHeight;if(R=X.W){if(V=R.video)B=V.fps,B>1&&(H.resolution+="@"+B),(B=Z.rO)&&B.video&&(H.resolution+=" / "+B.video.width+"x"+B.video.height,B.video.fps>1&&(H.resolution+="@"+B.video.fps)),H.codecs=JMT(R),!X.V||R.audio&&R.video?R.c7&&(H.codecs+=" / "+R.c7+"A"):H.codecs+=" / "+JMT(X.V), V.N||V.primaries?(B=V.N||"unknown",B==="smpte2084"?B+=" (PQ)":B==="arib-std-b67"&&(B+=" (HLG)"),H.color=B+" / "+(V.primaries||"unknown"),H.color_style=""):H.color_style="display:none";if(R.debugInfo)for(H.fmt_debug_info="",R=g.e(R.debugInfo),V=R.next();!V.done;V=R.next())V=V.value,H.fmt_debug_info+=V.label+":"+V.text+" ";H.fmt_debug_info_style=H.fmt_debug_info&&H.fmt_debug_info.length>0?"":"display:none"}R=X.isLivePlayback;V=X.It;H.live_mode_style=R||V?"":"display:none";H.live_latency_style=R?"": "display:none";if(V)H.live_mode="Post-Live"+(Fu(X)?" Manifestless":"");else if(R){V=Z.MP;H.live_latency_secs=V.toFixed(2)+"s";R=Fu(X)?"Manifestless, ":"";X.Yc&&(R+="Windowed, ");B="Uncertain";if(V>=0&&V<120)if(X.latencyClass&&X.latencyClass!=="UNKNOWN")switch(X.latencyClass){case "NORMAL":B="Optimized for Normal Latency";break;case "LOW":B="Optimized for Low Latency";break;case "ULTRALOW":B="Optimized for Ultra Low Latency";break;default:B="Unknown Latency Setting"}else B=X.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";R+=B;(V=Z.xI)&&(R+=", seq "+V.sequence);H.live_mode=R}!Z.isGapless||Ec(X)&&Z.yu||(H.playback_categories+="Gapless ");H.playback_categories_style=H.playback_categories?"":"display:none";H.bandwidth_samples=Z.Y5;H.network_activity_samples=Z.rl;H.live_latency_samples=Z.aI;H.buffer_health_samples=Z.ul;Z=g.MY(X);if(X.cotn||Z)H.cotn_and_local_media=(X.cotn?X.cotn:"null")+" / "+Z;H.cotn_and_local_media_style=H.cotn_and_local_media?"":"display:none"; oM(X,"web_player_release_debug")?(H.release_name=q[60],H.release_style=""):H.release_style="display:none";H.debug_info&&m.length>0&&H.debug_info.length+m.length<=60?H.debug_info+=" "+m:H.extra_debug_info=m;H.extra_debug_info_style=H.extra_debug_info&&H.extra_debug_info.length>0?"":"display:none";return H}; JMT=function(G){var X=/codecs="([^"]*)"/.exec(G.mimeType);return X&&X[1]?X[1]+" ("+G.itag+")":G.itag}; f5=function(G,X,Q,R,S){g.f.call(this,{D:"div",X:"ytp-horizonchart"});this.J=X;this.sampleCount=Q;this.V=R;this.S=S;this.index=0;this.heightPx=-1;this.Y=this.W=null;this.N=Math.round(G/Q);this.element.style.width=this.N*this.sampleCount+"px";this.element.style.height=this.J+"em"}; D2=function(G,X){if(G.heightPx===-1){var Q=null;try{Q=g.ml("CANVAS"),G.W=Q.getContext("2d")}catch(w){}if(G.W){var R=G.N*G.sampleCount;G.Y=Q;G.Y.width=R;G.Y.style.width=R+"px";G.element.appendChild(G.Y)}else for(G.sampleCount=Math.floor(G.sampleCount/4),G.N*=4,Q=0;Q1?2:1,G.Y.height=G.heightPx*Q,G.Y.style.height= G.heightPx+"px",G.W.scale(1,Q)));X=g.e(X);for(R=X.next();!R.done;R=X.next()){Q=G;var S=G.index,Z=R.value;for(R=0;R+20&&g.Pq(X.W.element);R.classList.add("ytp-timely-actions-overlay");X.W.element.appendChild(R)}); g.d(this,this.W);this.G("web_player_overlay_positioned_layout")?this.events.B(G,"basechromeinitialized",function(){X.api.k_(X.W.element,4,!0);X.W.element.setAttribute("data-overlay-order","10")}):g.$6(this.api,this.W.element,4)}; MqU=function(G){G.timelyActions&&(G.V=G.timelyActions.reduce(function(X,Q){if(Q.cueRangeId===void 0)return X;X[Q.cueRangeId]=0;return X},{}))}; $z=function(G,X){if(G.timelyActions){G=g.e(G.timelyActions);for(var Q=G.next();!Q.done;Q=G.next())if(Q=Q.value,Q.cueRangeId===X)return Q}}; myU=function(G,X){if((G=$z(G,X))&&G.onCueRangeExit)return c8(G.onCueRangeExit)}; LCC=function(G,X){return G.Y===void 0?!1:X.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(X.seekLengthMilliseconds)===5E3?G.Y===72:X.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(X.seekLengthMilliseconds)===1E4?G.Y===74:X.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(X.seekLengthMilliseconds)===5E3?G.Y===71:X.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(X.seekLengthMilliseconds)===1E4?G.Y===73:!1}; o9Z=function(G,X){var Q=Number(X==null?void 0:X.maxVisibleDurationMilliseconds);Q&&(b3(G),G.yH=setTimeout(function(){if(G.N!==void 0&&(X==null?void 0:X.cueRangeId)===G.N){G.j=!1;var R=myU(G,G.N);R&&G.api.E_("innertubeCommand",R)}},Q))}; b3=function(G){G.yH&&clearTimeout(G.yH);G.yH=void 0;G.j=!1}; kyy=function(G){if(G=G.getWatchNextResponse()){var X,Q;G=(X=G.playerOverlays)==null?void 0:(Q=X.playerOverlayRenderer)==null?void 0:Q.timelyActionsOverlayViewModel;X=g.y(G,u9y);if(X!=null&&X.timelyActions)return X==null?void 0:X.timelyActions.map(function(R){return g.y(R,PfT)}).filter(function(R){return!!R})}}; sRy=function(G){kH.call(this,G);var X=this;aM(this.api,"getPlaybackRate",function(){return X.api.getPlaybackRate()}); aM(this.api,"setPlaybackRate",function(Q){typeof Q==="number"&&X.api.setPlaybackRate(Q)})}; vt=function(G,X,Q,R,S){TT.call(this,"VOICE_BOOST",g.OE.qg);this.U=G;this.Y=X;this.W=Q;this.hasVoiceBoostAudioTrack=R;this.getVoiceBoostState=S;this.N=!1;this.gb=this.U.G("html5_enable_new_audio_settings_menu")?G.Eb().Kc:G.Eb();this.B(G,"videodatachange",this.RC.bind(this));this.B(G,"onPlaybackAudioChange",this.RC);this.B(G,"audiopreferencechange",this.RC);this.U.G("html5_enable_new_audio_settings_menu")||this.setIcon(ELS());this.subscribe("select",this.V,this);this.RC()}; KCG=function(G){kH.call(this,G);var X=this;this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"settingsMenuInitialized",function(){TB7(X)}); r4(this.api,"getVoiceBoostUserPreference",function(){return X.getVoiceBoostUserPreference()}); r4(this.api,"setVoiceBoostUserPreference",function(R){X.setVoiceBoostUserPreference(R)}); r4(this.api,"hasVoiceBoostAudioTrack",function(){return X.hasVoiceBoostAudioTrack()}); r4(this.api,"getVoiceBoostState",function(){return X.getVoiceBoostState()}); var Q;this.N=(Q=b6l())!=null?Q:0;this.updateEnvironmentData()}; TB7=function(G){G.menuItem||(G.menuItem=new vt(G.api,function(X){G.setVoiceBoostUserPreference(X)},function(){return G.getVoiceBoostUserPreference()},function(){return G.hasVoiceBoostAudioTrack()},function(){return G.getVoiceBoostState()}),g.d(G,G.menuItem))}; e8C=function(G){G=G.Rt();if(!G)return!1;G=g.vO(G).exp||"";return G.includes("xpv")||G.includes("xpe")}; rmU=function(G){G=g.e(g.JE(G,!0));for(var X=G.next();!X.done;X=G.next())if(e8C(X.value))return!0;return!1}; ap7=function(G,X){G=g.e(g.JE(G,!0));for(var Q=G.next();!Q.done;Q=G.next())if(Q=Q.value,e8C(Q)){var R={potc:"1",pot:X};Q.url&&(Q.url=JD(Q.url,R))}}; E9i=function(G){return g.F(function(X){if(X.W==1)return g.a0(X,2),g.l(X,G,4);if(X.W!=2)return g.OC(X,0);g.cl(X);g.rX(X)})}; GK=function(G){kH.call(this,G);var X=this;this.useLivingRoomPoToken=!1;this.C=new g.wh;this.N=!1;this.M9=null;this.T=!1;this.V=null;this.S=!1;var Q=G.Z().getWebPlayerContextConfig();this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"spsumpreject",function(R,S,Z){X.S=S;R&&X.T&&!X.V&&(X.G("html5_generate_content_po_token")&&Z?X.o_(Z):X.G("html5_generate_session_po_token")&&xy0(X));X.V||X.api.Ni("stp",{s:+X.T,b:+X.S})}); this.events.B(G,"poTokenVideoBindingChange",function(R){X.o_(R)}); this.useLivingRoomPoToken=!(Q==null||!Q.useLivingRoomPoToken);G.addEventListener("csiinitialized",function(){X.M9=G.gZ();var R=(X.G("html5_generate_session_po_token")||X.G("html5_generate_content_po_token"))&&!X.useLivingRoomPoToken;try{if(X.G("html5_use_shared_owl_instance"))OuX(X);else if(R){X.M9.jI("pot_isc");var S=g.i2(X.api.Z().experiments,"html5_webpo_kaios_defer_timeout_ms");S?(X.Y=Ce(),g.wp(function(){i3(X)},S)):X.G("html5_webpo_idle_priority_job")?(X.Y=Ce(),g.D$(g.A7(),function(){i3(X)})): i3(X)}}catch(Z){Z instanceof Error&&g.EL(Z)}}); G.addEventListener("trackListLoaded",this.lF.bind(this));G.Nt(this)}; z8T=function(G){var X=Pm(G.experiments,"html5_web_po_request_key");return X?X:g.jJ(G)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; cmi=function(G){var X=new Xse,Q={},R=(Q["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",Q);return new Mf(X,G,function(){return R})}; g9G=function(G){return new mc(G)}; Xc=function(G,X){G.G("html5_webpo_bge_ctmp")&&G.api.Ni(X,{hwpo:!!G.W,hwpor:G.N})}; OuX=function(G){var X,Q;g.F(function(R){if(R.W==1)return Xc(G,"swpo_i"),G.Y=Ce(),QF(G),g.l(R,b8(),2);if(R.W!=3)return X=R.N,Xc(G,"swpo_co"),g.l(R,l8V(X),3);Q=R.N;G.G("html5_web_po_token_disable_caching")||Q.rU(150);G.W=Q;Xc(G,"swpo_cc");E9i(Q.G0()).then(function(){G.N=!0;G.C.resolve();Xc(G,"swpo_re")}); g.wp(function(){i3(G);Xc(G,"swpo_si")},0); g.rX(R)})}; BBV=function(G){var X=G.api.Z(),Q=cmi(z8T(X)),R=Q.qB.bind(Q);Q.qB=function(w){var h;return g.F(function(L){if(L.W==1)return g.l(L,R(w),2);h=L.N;G.api.Ni("itr",{});return L.return(h)})}; try{var S=g9G({h4:Q,S1:{maxAttempts:5},Xt:{Lv:"CLEn",disable:X.experiments.TT("html5_web_po_disable_remote_logging")||Uyi.includes(g.hN(X.a$)||""),Os:pHX(X.experiments),Le:X.experiments.TT("wpo_gel_strz")?function(w){var h=lpT.get(w);h||(h=new YeG(w),h=new g.C4(h),lpT.set(w,h));return h}:void 0, Ui_:G.G("wpo_dis_lfdms")?0:1E3},RyT:g.EL});var Z=new Bg({jG:S,h4:Q,onError:g.EL});E9i(Z.G0()).then(function(){G.N=!0;G.C.resolve()}); G.G("html5_web_po_token_disable_caching")||Z.rU(150);g.d(G,S);g.d(G,Z);G.W=Z}catch(w){g.EL(w);var H;(H=S)==null||H.dispose()}}; i3=function(G){var X=G.api.Z();G.M9.jI("pot_ist");G.W||BBV(G);G.G("html5_bandaid_attach_content_po_token")||(G.G("html5_generate_session_po_token")&&(QF(G),xy0(G)),X=g.i2(X.experiments,"html5_session_po_token_interval_time_ms")||0,X>0&&(G.J=g.h8(function(){QF(G)},X)),G.T=!0)}; QF=function(G){var X,Q,R,S;g.F(function(Z){if(!G.G("html5_generate_session_po_token")||G.useLivingRoomPoToken)return Z.return();X=G.api.Z();Q=g.WO("EOM_VISITOR_DATA")||g.WO("VISITOR_DATA");R=X.Xs?X.datasyncId:Q;S=Pm(X.experiments,"html5_mock_content_binding_for_session_token")||X.livingRoomPoTokenId||R;X.Ge=R6(G,S);g.rX(Z)})}; R6=function(G,X){if(!G.W){if(G.Y)try{return G.Y(X)}catch(Z){g.EL(Z)}return""}try{G.M9.jI(G.N?"pot_cms":"pot_csms");var Q={jf:!0,bu:!0,oZ:X};G.G("html5_web_po_token_disable_caching")||(Q.rk={Qq:X,fH:!0,QW:!0});var R=G.W.QM(Q);G.M9.jI(G.N?"pot_cmf":"pot_csmf");if(G.N){var S;(S=G.V)==null||S.resolve();G.V=null;G.S&&(G.S=!1,G.api.app.eA().V2(!1))}return R}catch(Z){return g.EL(Z),""}}; xy0=function(G){G.W&&(G.V=new aT,G.C.promise.then(function(){G.M9.jI("pot_if");QF(G)}))}; g.Su=function(G,X,Q){g.S_(G.element,"ytp-suggestion-set",!!X.videoId);var R=X.playlistId;Q=X.yJ(Q?Q:"mqdefault.jpg");var S=null,Z=null;X instanceof $n&&(X.lengthText?(S=X.lengthText||null,Z=X.uj||null):X.lengthSeconds&&(S=g.sX(X.lengthSeconds),Z=g.sX(X.lengthSeconds,!0)));var H=!!R;R=H&&AB(R).type==="RD";var w=X instanceof $n?X.isLivePlayback:null,h=X instanceof $n?X.isUpcoming:null,L=X.author,k=X.shortViewCount,Y=X.publishedTimeText,M=[],m=[];L&&M.push(L);k&&(M.push(k),m.push(k));Y&&m.push(Y);Q= {title:X.title,author:L,author_and_views:M.join(" \u2022 "),aria_label:X.ariaLabel||g.QM("Watch $TITLE",{TITLE:X.title}),duration:S,timestamp:Z,url:X.Iu(),is_live:w,is_upcoming:h,is_list:H,is_mix:R,background:Q?"background-image: url("+Q+")":"",views_and_publish_time:m.join(" \u2022 "),autoplayAlternativeHeader:X.bX};X instanceof nK&&(Q.playlist_length=X.playlistLength);G.update(Q)}; g.Zf=function(G){var X=G.Z(),Q=g.un||g.b$?{style:"will-change: opacity"}:void 0,R=X.V,S=["ytp-modern-videowall-still"];X.W&&S.push("ytp-videowall-show-text");g.f.call(this,{D:"a",aU:S,L:{href:"{{url}}",target:R?X.j:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},K:[{D:"div",X:"ytp-modern-videowall-still-image",L:{style:"{{background}}"},K:[{D:"span",X:"ytp-modern-videowall-still-info-duration",WM:"{{duration}}"}]},{D:"span",X:"ytp-modern-videowall-still-info", L:{"aria-hidden":"true"},K:[{D:"span",X:"ytp-modern-videowall-still-info-bg",K:[{D:"span",X:"ytp-modern-videowall-still-info-content",L:Q,K:[{D:"span",X:"ytp-modern-videowall-still-info-title",WM:"{{title}}"},{D:"span",X:"ytp-modern-videowall-still-info-author",WM:"{{author_and_views}}"},{D:"span",X:"ytp-modern-videowall-still-info-live",WM:"Live"}]}]}]},{D:"span",aU:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],L:{"aria-hidden":"true"},K:[{D:"span",X:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{D:"span",X:"ytp-modern-videowall-still-listlabel-length",K:[" (",{D:"span",WM:"{{playlist_length}}"},")"]}]},{D:"span",aU:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],L:{"aria-hidden":"true"},K:[{D:"span",X:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{D:"span",X:"ytp-modern-videowall-still-listlabel-length",WM:" (50+)"}]}]});this.suggestion=null;this.W=R;this.api=G;this.N=new g.KP(this);g.d(this,this.N);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.N.B(G,"videodatachange",this.onVideoDataChange);G.createServerVe(this.element,this);this.onVideoDataChange()}; g.FCe=function(G,X){if(G.suggestion!==X){G.suggestion=X;var Q=G.api.Z();g.Su(G,X,"hqdefault.jpg");if(g.Jn(Q)&&!G.api.G("web_player_log_click_before_generating_ve_conversion_params")){Q=X.Iu();var R={};g.x6(G.api,"addEmbedsConversionTrackingParams",[R]);Q=g.on(Q,R);G.updateValue("url",Q)}(X=(X=X.sessionData)&&X.itct)&&G.api.setTrackingParams(G.element,X)}}; tqV=function(G,X){g.f.call(this,{D:"div",aU:["ytp-fullscreen-grid"],K:[{D:"div",X:"ytp-fullscreen-grid-hover-overlay",L:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},K:[{D:"div",X:"ytp-fullscreen-grid-hover-overlay-chevron",K:[{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"g",L:{filter:"url(#filter0_d_3104_799356)"},K:[{D:"path",L:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{D:"defs",K:[{D:"filter",L:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},K:[{D:"feFlood",L:{"flood-opacity":"0",result:"BackgroundImageFix"}},{D:"feColorMatrix",L:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{D:"feOffset"},{D:"feGaussianBlur",L:{stdDeviation:"0.5"}},{D:"feComposite",L:{in2:"hardAlpha",operator:"out"}},{D:"feColorMatrix",L:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {D:"feBlend",L:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{D:"feBlend",L:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{D:"div",X:"ytp-fullscreen-grid-main-content",K:[{D:"div",X:"ytp-fullscreen-grid-header",K:[{D:"div",X:"ytp-fullscreen-grid-header-buttons",K:[{D:"button",aU:["ytp-grid-replay-button","ytp-button"],L:{title:"Replay","aria-keyshortcuts":"k","aria-label":"Replay","data-title-no-tooltip":"Replay"}, K:[gLl()]},{D:"button",X:"ytp-fullscreen-grid-header-button",L:{"aria-label":"{{ariaLabel}}"}}]},{D:"button",aU:["ytp-grid-menu-close","ytp-button"],L:{"aria-label":"Close"},K:[g.YC()]}]},{D:"div",X:"ytp-fullscreen-grid-stills-container"}]}]});var Q=this;this.player=G;this.stills=[];this.videoData=null;this.currentState=0;this.J=this.VH("ytp-fullscreen-grid-main-content");this.S=this.VH("ytp-fullscreen-grid-header");G=this.VH("ytp-fullscreen-grid-header-buttons");this.Y=this.VH("ytp-grid-menu-close"); this.W=this.VH("ytp-grid-replay-button");this.N=this.VH("ytp-fullscreen-grid-header-button");this.j=this.VH("ytp-fullscreen-grid-stills-container");this.V=new g.KP(this);g.d(this,this.V);this.T=X;if(this.S&&this.J&&G&&this.j&&this.N&&this.Y){if(X=this.VH("ytp-fullscreen-grid-hover-overlay"))this.B(X,"click",this.Ka),IM(this.player,X,this);this.W&&(this.B(this.W,"click",function(R){Q.CX(R)}),IM(this.player,this.W,this)); this.N&&this.B(this.N,"click",this.Ka);this.Y&&this.B(this.Y,"click",this.Ka);if(X=this.player.getVideoData(1))this.videoData=X,CfG(this);this.player.createClientVe(this.S,this,223051);this.V.B(this.player,"videodatachange",this.onVideoDataChange);this.V.B(this.player,"presentingplayerstatechange",this.Vu)}}; CfG=function(G){var X=G.player.getPlayerStateObject();g.S_(G.player.getRootNode(),"ytp-grid-ended-state",g.N(X,2))}; wQ=function(G){kH.call(this,G);var X=this;this.J=this.N=this.W=0;this.C=null;this.yH=this.V=0;this.isEnded=!1;this.T=null;var Q=new g.KP(G);g.d(this,Q);this.AT=this.api.G("web_player_grid_natural_scroll");this.Yc=g.i2(this.api.Z().experiments,"web_player_default_peeking_px");this.Mi=this.api.G("web_player_imax_theater_mode");this.Y=this.api.G("web_player_enable_fullscreen_grid_components");this.AT&&g.Gk(this.api.getRootNode(),"ytp-grid-default-scroll");Q.B(G,"fullscreentoggled",function(){H6(X)}); Q.B(G,"autohideupdate",function(R){R&&X.W===2&&q6(X,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED")}); Q.B(G,"videodatachange",function(){if(X.Y){var R=X.api.getVideoData(1);X.videoData!==R&&X.W===2&&q6(X,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");X.videoData=R}},this); Q.B(G,"sizestylechange",function(){X.Y&&H6(X)}); r4(this.api,"setFullscreenQuickActions",function(R){X.setFullscreenQuickActions(R)}); r4(this.api,"setPlayerOverlayVideoDetailsRenderer",function(R){X.setPlayerOverlayVideoDetailsRenderer(R)}); this.Y&&VqU(this,Q,G)}; VqU=function(G,X,Q){X.B(Q,"keyboardserviceglobalkeydown",function(R,S){G.Y&&R.keyCode===86&&!R.repeat&&G.W!==0&&(S&&(S.TP=!0),Ip0(G,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); X.B(G.api.getRootNode(),"wheel",function(R){if(!G.T){var S;if(G.Y&&(S=G.S)!=null&&S.element&&G.W!==0&&h_(G))if(g.Gk(G.api.getRootNode(),"ytp-grid-scrolling"),G.V===0&&(G.V=window.innerHeight),G.W===1)G.V!==0&&(G.N+=R.deltaY/G.V,G.N=Math.min(Math.max(G.N,0),.85),Lb(G),dye(G,Math.abs(G.N)>=.85));else if(G.W===2){S=R.deltaY<0;var Z,H=((Z=G.S)==null?void 0:Z.element.scrollTop)===0;S&&H?G.V!==0&&(G.N+=R.deltaY/G.V,Lb(G),dye(G,Math.abs(G.N)>=.85)):G.N!==0&&(G.N=0,Lb(G))}}},{passive:!0}); X.B(Q,"standardControlsInitialized",function(){if(!G.S){G.S=new tqV(G.api,G.DC.bind(G));g.d(G,G.S);var R=G.api.getRootNode().querySelector(".ytp-chrome-bottom");R&&R.parentNode&&R.parentNode.insertBefore(G.S.element,R.nextSibling)}}); X.B(Q,"presentingplayerstatechange",function(){k0(G)}); X.B(Q,"autonavvisibility",function(){k0(G)}); G.api.xg().subscribe("visibilitystatechange",function(){k0(G)}); WCG(G,G.W)}; dye=function(G,X){G.C&&clearTimeout(G.C);G.N===0&&g.QD(G.api.getRootNode(),"ytp-grid-scrolling");X?p0i(G):G.AT?G.AT&&G.N<.1&&(G.C=window.setTimeout(function(){p0i(G)},1E3)):G.C=window.setTimeout(function(){p0i(G)},150)}; p0i=function(G){G.C&&(clearTimeout(G.C),G.C=null);G.V=0;G.Y&&G.W!==0&&(Math.abs(G.N)>=.15&&Ip0(G,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),G.N=0,Lb(G),g.QD(G.api.getRootNode(),"ytp-grid-scrolling"))}; Ip0=function(G,X){G.Y&&(X==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(G.T&&clearTimeout(G.T),G.T=window.setTimeout(function(){G.T=null},1E3)),G.W===1?q6(G,2,X):q6(G,1,X))}; h_=function(G){return G.api.isFullscreen()||G.Mi&&G.api.Qu()}; H6=function(G){var X=h_(G);g.S_(G.api.getRootNode(),"ytp-full-bleed-player",X);G.j&&g.Rh(G.j,X);G.playerOverlayVideoDetailsRenderer&&g.Rh(G.playerOverlayVideoDetailsRenderer,X);G.Y&&k0(G)}; k0=function(G){if(G.Y){var X;if(G.api.getPresentingPlayerType()===2||G.api.VU()||((X=g.Ua(G.api))==null?0:X.lT())||G.api.isMinimized())q6(G,0);else{if(X=g.N(G.api.getPlayerStateObject(),2))q6(G,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(G.isEnded&&!X){var Q=h_(G)?1:0;G.isEnded=X;q6(G,Q)}else h_(G)?G.W!==2&&q6(G,1):q6(G,0);G.isEnded=X}}}; q6=function(G,X,Q){G.W=X;var R;(R=G.S)==null||R.qx(X,Q);G.N=0;Lb(G);WCG(G,X)}; WCG=function(G,X){var Q=G.api.getRootNode();g.S_(Q,"ytp-fullscreen-grid-peeking",X===1);g.S_(Q,"ytp-fullscreen-grid-active",X===2);X=G.api.getRootNode();G.yH=G.Yc;X.style.setProperty("--ytp-grid-peek-height",G.yH+"px")}; Lb=function(G){requestAnimationFrame(function(){var X=G.N-G.J,Q=X;G.N!==0&&(Q=Math.max(-.01,Math.min(X,.01)));G.J+=Q;G.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+G.J.toString());G.J!==G.N&&Lb(G)})}; yme=function(G){kH.call(this,G);var X=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.KP(G);g.d(this,this.events);this.events.B(G,"heartbeatRequest",function(Q){if(X.freePreviewUsageDetails.length||X.freePreviewWatchedDuration!==null)Q.heartbeatRequestParams||(Q.heartbeatRequestParams={}),Q.heartbeatRequestParams.unpluggedParams||(Q.heartbeatRequestParams.unpluggedParams={}),X.freePreviewUsageDetails.length>0?Q.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= X.freePreviewUsageDetails:Q.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+X.freePreviewWatchedDuration}}); r4(G,"setFreePreviewWatchedDuration",function(Q){X.freePreviewWatchedDuration=Q}); r4(G,"setFreePreviewUsageDetails",function(Q){X.freePreviewUsageDetails=Q})}; Y0=function(G){g.I.call(this);this.features=[];var X=this.N,Q=new pE(G),R=new YH(G),S=new Yz(G),Z=new GK(G);var H=g.kU(G.Z())?void 0:new FK(G);var w=new kz(G),h=new QRU(G),L=new sRy(G),k=new Wv(G);var Y=g.kU(G.Z())?new yme(G):void 0;var M;var m=(M=G.Z().getWebPlayerContextConfig())!=null&&M.cinematicSettingsAvailable?new gU(G):void 0;M=new dU(G);var u=G.G("enable_courses_player_overlay_purchase")?new q4X(G):void 0;var r=g.sB(G.Z())?new RDZ(G):void 0;var x=new CE(G);var c=G.Z().V?new vee(G):void 0; var z=g.Jn(G.Z())?new b_0(G):void 0;var B=G.G("web_player_move_autonav_toggle")&&G.Z().hS?new d8G(G):void 0;var V=g.sB(G.Z())?new fZi(G):void 0;var p=G.G("web_enable_speedmaster")&&g.sB(G.Z())?new dL(G):void 0;var b=G.Z().Fs?void 0:new h8U(G);var A=G.G("report_pml_debug_signal")?new F6S(G):void 0;var wX=new RGy(G),qe=new o5(G);var hG=g.lP(G.Z())?new spy(G):void 0;var jy=navigator.mediaSession&&window.MediaMetadata&&G.Z().xv?new hE(G):void 0;var QZ=G.G("html5_enable_drc")&&!G.Z().S?new Bv(G):void 0; var gX=new md(G);var b7=g.sB(G.Z())?new lBX(G):void 0;var XG=G.G("html5_enable_d6de4")?new jP(G):void 0;var Pn=g.sB(G.Z())&&G.G("web_sleep_timer")?new l3(G):void 0;var hO=g.Jn(G.Z())?new i_i(G):void 0;var l7=new ct(G),wg=new D8T(G),Id=new pGG(G);var NS=G.G("enable_sabr_snackbar_message")?new N30(G):void 0;var hi=G.G("web_enable_timely_actions")?new jRl(G):void 0;var U=new UE(G);var fz=g.sB(G.Z())?new wQ(G):void 0;var FG=G.G("html5_enable_voice_boost")?new KCG(G):void 0;var R0=G.G("web_player_loop_settings_menu")&& G.Z().m7?new y2i(G):void 0;var Ov=g.kU(G.Z())?void 0:new jj(G);var a=G.G("web_player_playable_sequences_refactor")?new MI7(G):void 0;var XS=G.G("html5_enable_audio_quality_setting")&&G.G("html5_enable_audio_quality_setting_feature")?new Pv(G):void 0;var zn=G.G("html5_ypc_clickwrap_module_refactor")?new SU0(G):void 0;X.call(this,Q,R,S,Z,H,w,h,L,k,Y,m,M,u,r,x,c,z,B,V,p,b,A,wX,qe,hG,void 0,jy,QZ,gX,void 0,b7,XG,Pn,hO,void 0,l7,wg,Id,void 0,NS,hi,U,fz,FG,void 0,R0,void 0,Ov,a,XS,zn,new CM7(G))}; fpG=function(){this.W=this.N=NaN}; DyG=function(G,X){this.tT=G;this.timerName="";this.Y=!1;this.W=NaN;this.V=new fpG;this.N=X||null;this.Y=!1}; NBS=function(G,X,Q){var R=g.Sb(X.hT)&&!X.hT.S;if(X.hT.L2&&(G$(X.hT)||X.hT.Mi==="shortspage"||EB(X.hT)||R)&&!G.Y){G.Y=!0;G.S=X.clientPlaybackNonce;g.WO("TIMING_ACTION")||di("TIMING_ACTION",G.tT.csiPageType);G.tT.csiServiceName&&di("CSI_SERVICE_NAME",G.tT.csiServiceName);if(G.N){R=G.N.gZ();for(var S=g.e(Object.keys(R)),Z=S.next();!Z.done;Z=S.next())Z=Z.value,aa(Z,R[Z],G.timerName);R=g.Do(DTT)(G.N.Ui);g.EF(R,G.timerName);R=G.N;R.N={};R.Ui={}}g.EF({playerInfo:{visibilityState:g.Do(f6S)()},playerType:"LATENCY_PLAYER_HTML5"}, G.timerName);G.C!==X.clientPlaybackNonce||Number.isNaN(G.W)||(OF("_start",G.timerName)?Q=g.Do(sF)("_start",G.timerName)+G.W:g.EL(new g.Ic("attempted to log gapless pbs before CSI timeline started",{cpn:X.clientPlaybackNonce})));Q&&!OF("pbs",G.timerName)&&ju(G,Q)}}; ju=function(G,X,Q){aa("pbs",X!=null?X:(0,g.TB)(),Q!=null?Q:G.timerName)}; M6=function(G){XeZ();Gwy();G.timerName=""}; AmV=function(G){if(G.N){var X=G.N;X.N={};X.Ui={}}G.Y=!1;G.C=void 0;G.W=NaN}; n9C=function(G,X){g.ic.call(this);this.hT=G;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.N=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.T={};this.W=0;if(G=X.session_data)this.sessionData=AD(G,"&");this.index=Math.max(0,Number(X.index)||0);this.loop=!!X.loop;this.startSeconds=Number(X.startSeconds)||0;this.title=X.playlist_title||"";this.description=X.playlist_description||"";this.author= X.author||X.playlist_author||"";X.video_id&&(this.items[this.index]=X);if(G=X.api)typeof G==="string"&&G.length===16?X.list="PL"+G:X.playlist=G;if(G=X.list)switch(X.listType){case "user_uploads":this.listId=new Nl("UU","PLAYER_"+G);break;default:var Q=X.playlist_length;Q&&(this.length=Number(Q)||0);this.listId=AB(G);if(G=X.video)this.items=G.slice(0),this.loaded=!0}else if(X.playlist){G=X.playlist.toString().split(",");this.index>0&&(this.items=[]);G=g.e(G);for(Q=G.next();!Q.done;Q=G.next())(Q=Q.value)&& this.items.push({video_id:Q});this.length=this.items.length;if(G=X.video)this.items=G.slice(0),this.loaded=!0}this.setShuffle(!!X.shuffle);if(G=X.suggestedQuality)this.quality=G;this.T=pK(X,"playlist_");this.Y=(X=X.thumbnail_ids)?X.split(","):[]}; $yw=function(G){return!!(G.playlist||G.list||G.api)}; buZ=function(G){var X=G.index+1;return X>=G.length?0:X}; v9T=function(G){var X=G.index-1;return X<0?G.length-1:X}; g.mg=function(G,X,Q,R){X=X!==void 0?X:G.index;X=G.items&&X in G.items?G.items[G.order[X]]:null;var S=null;X&&(Q&&(X.autoplay="1"),R&&(X.autonav="1"),S=new g.ML(G.hT,X),g.d(G,S),S.Lg=!0,S.startSeconds=G.startSeconds||S.clipStart||0,G.listId&&(S.playlistId=G.listId.toString()));return S}; Jm7=function(G,X){G.index=g.pT(X,0,G.length-1);G.startSeconds=0}; iui=function(G,X){if(X.video&&X.video.length){G.title=X.title||"";G.description=X.description;G.views=X.views;G.likes=X.likes;G.dislikes=X.dislikes;G.author=X.author||"";var Q=X.loop;Q&&(G.loop=Q);Q=g.mg(G);G.items=[];for(var R=g.e(X.video),S=R.next();!S.done;S=R.next())if(S=S.value)S.video_id=S.encrypted_id,G.items.push(S);G.length=G.items.length;(X=X.index)?G.index=X:G.findIndex(Q);G.setShuffle(!1);G.loaded=!0;G.W++;G.N&&G.N()}}; QxU=function(G,X){var Q,R,S,Z,H,w,h;return g.F(function(L){if(L.W==1){Q=g.fJ();var k=G.Z(),Y={context:g.KC(G),playbackContext:{contentPlaybackContext:{ancestorOrigins:k.ancestorOrigins}}},M=k.getWebPlayerContextConfig();if(M==null?0:M.encryptedHostFlags)Y.playbackContext.contentPlaybackContext.encryptedHostFlags=M.encryptedHostFlags;if(M==null?0:M.hideInfo)Y.playerParams={showinfo:!1};M=k.embedConfig;var m=G.DZ;var u=X.docid||X.video_id||X.videoId||X.id;if(!u){u=X.raw_embedded_player_response;if(!u){var r= X.embedded_player_response;r&&(u=JSON.parse(r))}if(u){var x,c,z,B,V,p;u=((p=g.y((x=u)==null?void 0:(c=x.embedPreview)==null?void 0:(z=c.thumbnailPreviewRenderer)==null?void 0:(B=z.playButton)==null?void 0:(V=B.buttonRenderer)==null?void 0:V.navigationEndpoint,g.TU))==null?void 0:p.videoId)||null}else u=null}x=(x=u)?x:void 0;c=G.playlistId?G.playlistId:X.list;z=X.listType;if(c){var b;z==="user_uploads"?b={username:c}:b={playlistId:c};Gfy(M,m,x,X,b,k.experiments);Y.playlistRequest=b}else X.playlist? (b={templistVideoIds:X.playlist.toString().split(",")},Gfy(M,m,x,X,b,k.experiments),Y.playlistRequest=b):x&&(b={videoId:x},m&&k.G("embeds_enable_per_video_embed_config")?b.serializedThirdPartyEmbedConfig=m:M&&(b.serializedThirdPartyEmbedConfig=M),Y.singleVideoRequest=b);R=Y;S=g.bP(XFV);g.a0(L,2);return g.l(L,g.lj(Q,R,S),4)}if(L.W!=2)return Z=L.N,H=G.Z(),X.raw_embedded_player_response=Z,H.DC=Qy(X,g.Jn(H)),H.Y=H.DC==="EMBEDDED_PLAYER_MODE_PFL",Z&&(w=Z,w.trackingParams&&H_(w.trackingParams)),L.return(new g.ML(H, X));h=g.cl(L);h instanceof Error||(h=Error("b259802748"));g.aU(h);return L.return(G)})}; Gfy=function(G,X,Q,R,S,Z){R.index&&(S.playlistIndex=String(Number(R.index)+1));S.videoId=Q?Q:"";X&&Z.TT("embeds_enable_per_video_embed_config")?S.serializedThirdPartyEmbedConfig=X:G&&(S.serializedThirdPartyEmbedConfig=G)}; g.ud=function(G,X){o6.get(G);o6.set(G,X)}; g.P6=function(G){g.ic.call(this);this.loaded=!1;this.player=G}; RHG=function(){this.W=[];this.N=[]}; g.JE=function(G,X){return X?G.N.concat(G.W):G.N}; g.sS=function(G,X){switch(X.kind){case "asr":S6y(X,G.W);break;default:S6y(X,G.N)}}; S6y=function(G,X){g.Ka(X,function(Q){return G.equals(Q)})||X.push(G)}; g.TK=function(G){g.I.call(this);this.PM=G;this.W=new RHG;this.Y=null;this.C=[];this.T=[]}; g.Kb=function(G,X,Q){g.TK.call(this,G);this.videoData=X;this.audioTrack=Q;this.N=null;this.V=!1;this.C=X.AF;this.T=X.E0;this.V=g.SA(X)}; g.ZWw=function(G,X){var Q;return G.Z().G("safari_live_drm_captions_fix")&&((Q=G.getVideoData())==null?0:Q.VJ())?!1:g.kU(G.Z())&&!X.isManifestless}; g.eu=function(G,X){return Gv(G.info.mimeType)?X?G.info.itag===X:!0:!1}; g.HWV=function(G,X){if(G.N!=null&&g.ZWw(X,G.N)&&G.N.N.rawcc!=null)return!0;if(!G.IW())return!1;X=!!G.N&&G.N.isManifestless&&Object.values(G.N.N).some(function(Q){return g.eu(Q,"386")}); G=!!G.N&&!G.N.isManifestless&&g.HFl(G.N);return X||G}; g.rQ=function(G,X,Q,R,S,Z){g.TK.call(this,G);this.videoId=Q;this.XQ=S;this.eventId=Z;this.S={};this.N=null;G=R||g.vO(X).hl||"";G=G.split("_").join("-");this.V=JD(X,{hl:G})}; q67=function(G,X){g.I.call(this);var Q=this;this.U=G;this.V=X;this.Ui={};this.N={};this.W=null;this.Y=new Set;this.C=new g.KP(this);this.gh={whA:function(){return Q.V}}; this.S=this.U.G("web_player_defer_modules");this.Kd=new Map;g.d(this,this.C);this.C.B(G,"videodatachange",this.onVideoDataChange)}; wFl=function(G,X){G.W=X}; g.a6=function(G){return G.Kd.get("captions")}; mRX=function(G,X){switch(X){case "ad":return hHw(G);case "annotations_module":return G.U.isEmbedsShortsMode()?G=!1:(X=G.U,G=X.Z(),X=X.getVideoData(),G=G.Y||X.kD||G.controlsType==="3"?!1:G.IU.isEmpty()&&G.playerStyle!=="annotation-editor"&&G.playerStyle!=="live-dashboard"?!!X.SA||!!g.Xe(X)||!!g.QY(X):!0),G;case "asmjs":return L2U(G);case "creatorendscreen":return kfC(G);case "embed":return g.Jn(G.U.Z());case "endscreen":return g.Y6T(G);case "heartbeat":return G.xN();case "kids":return kn(G.U.Z()); case "remote":return G.U.Z().JN;case "miniplayer":return G.U.Z().showMiniplayerUiWhenMinimized;case "offline":return G.U.Z().Nu;case "captions":return jxw(G);case "unplugged":return g.ZK(G.U.Z());case "ux":return G.U.Z().Xm;case "webgl":return MT7(G);case "ypc":return G.A2();case "ypc_clickwrap":return AoV(G.U.getVideoData());case "yto":return G.U.G("web_player_playable_sequences_refactor")?!1:!!G.U.getVideoData().j.includes("yto");default:return g.aU(Error("Module descriptor "+X+" does not match")), !1}}; ES=function(G,X,Q,R,S){var Z;Q=Q===void 0?!1:Q;R=R===void 0?!1:R;var H=G.Kd.get(X);if(!H||R)if(S||(S=function(){ES(G,X,Q,R)}),Z||(Z=function(){G.U.po(X)}),H=H||oYU(G,X,mRX(G,X),S,Z))G.Kd.set(X,H),H.create(),G.U.publish("modulecreated",X),Q&&G.U.vR("onApiChange")}; Pg7=function(G){var X=X===void 0?!1:X;var Q,R,S,Z,H;return g.F(function(w){if(w.W==1)return(Q=G.Kd.get("asmjs"))&&!X?w.return(Q):(R=o6.get("asmjs"))!=null?(S=R,w.pO(2)):g.l(w,new Promise(function(h,L){ux0(G,"asmjs",function(){var k=o6.get("asmjs");k?h(k):L("cannot load module asmjs")},L)}),3); w.W!=2&&(S=w.N);Z=S;if(!Z)return w.return(Promise.reject("cannot load module asmjs"));H=new Z(G.U);G.Kd.set("asmjs",H);H.create();return w.return(H)})}; K2y=function(G){sxX(G)&&G.gU();T5Z(G)&&(ES(G,"captions",!0),ES(G,"endscreen"),G.n1(),ES(G,"creatorendscreen",!0))}; T5Z=function(G){var X=G.U.getVideoData(),Q=G.S&&!X.isInlinePlaybackNoAd;G.U.G("html5_defer_modules_on_ads_only")&&!X.isAd()&&(Q=!1);return Q}; sxX=function(G){G=G.U.getVideoData();var X;if(X=G.G("web_player_defer_ad")){if(g.rH(G.j,"ad")||zYG(G)||G.enableServerStitchedDai)G=!1;else{X=G.playerResponse;G=G.startSeconds;var Q=X==null?void 0:X.adPlacements;if(X=Q){X=Number.MAX_VALUE;Q=g.e(Q);for(var R=Q.next();!R.done;R=Q.next())if(R=R.value.adPlacementRenderer){var S=void 0,Z=(S=R.config)==null?void 0:S.adPlacementConfig;S=void 0;if(((S=Z)==null?void 0:S.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var H=S=void 0;Z=Number((S=Z)==null?void 0:(H= S.adTimeOffset)==null?void 0:H.offsetStartMilliseconds)||0;H=S=void 0;R=Number(((S=R.renderer)==null?void 0:(H=S.adBreakServiceRenderer)==null?void 0:H.prefetchMilliseconds)||0);R=Z-R;R=11;G=G.api.Z().J&&Fc;return!(!X&&!G)}; A_=function(G,X){return!G.api.isInline()&&!y0S(G,PA(X))&&g.To(X)}; pFG=function(G){G.X9.iy();if(G.T5&&G.bY)G.bY=!1;else if(!G.api.Z().SA&&!G.Vc()){var X=G.api.getPlayerStateObject();g.N(X,2)&&g.pC(G.api)||G.Nb(X);!G.api.Z().bB||X.isCued()||g.N(X,1024)?G.PX():G.wF.isActive()?(G.wQ(),G.wF.stop()):G.wF.start()}}; DRl=function(G,X){var Q;if((Q=G.api.getVideoData())==null?0:Q.mutedAutoplay){var R,S;if((R=X.target)==null?0:(S=R.className)==null?0:S.includes("ytp-info-panel"))return!1}return g.To(X)&&G.api.isMutedByMutedAutoplay()?(G.api.unMute(),G.api.getPresentingPlayerType()===2&&G.api.playVideo(),X=G.api.getPlayerStateObject(),!g.N(X,4)||g.N(X,8)||g.N(X,2)||G.PX(),!0):!1}; N50=function(G,X,Q){G.api.isFullscreen()?Q<1-X&&G.api.toggleFullscreen():Q>1+X&&G.api.toggleFullscreen()}; W2C=function(G){var X=t8()&&BT()>=67&&!G.api.Z().J;G=G.api.Z().disableOrganicUi;return!g.Ci("tizen")&&!$M&&!X&&!G}; g.nb=function(G){g.f.call(this,{D:"div",K:[{D:"div",X:"ytp-bezel-text-wrapper",K:[{D:"div",X:"ytp-bezel-text",WM:"{{title}}"}]},{D:"div",X:"ytp-bezel",L:{role:"status","aria-label":"{{label}}"},K:[{D:"div",X:"ytp-bezel-icon",WM:"{{icon}}"}]}]});this.U=G;this.W=new g.fU(this.show,10,this);G=this.U.G("delhi_modern_web_player")?1E3:500;this.N=new g.fU(this.hide,G,this);g.d(this,this.W);g.d(this,this.N);this.hide()}; bd=function(G,X,Q){if(X<=0){Q=Ez();X="muted";var R=0}else Q=Q?{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,L:{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",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,L:{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"}}]},R=Math.floor(X),X=R+"volume";$0(G,Q,X,R+"%")}; A0Z=function(G,X){X=X?{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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"}}]}:oL0();var Q=G.U.getPlaybackRate(),R=g.QM("Speed is $RATE",{RATE:String(Q)});$0(G,X,R,Q+"x")}; nY0=function(G,X){X=X?"Subtitles/closed captions on":"Subtitles/closed captions off";$0(G,p3U(G.U),X)}; $0=function(G,X,Q,R){R=R===void 0?"":R;G.updateValue("label",Q===void 0?"":Q);G.updateValue("icon",X);g.Ax(G.N);G.W.start();G.updateValue("title",R);g.S_(G.element,"ytp-bezel-text-hide",!R)}; $RG=function(G,X){g.f.call(this,{D:"button",aU:["ytp-button","ytp-cards-button"],L:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Jn(G.Z()))},K:[{D:"span",X:"ytp-cards-button-icon-default",K:[{D:"div",X:"ytp-cards-button-icon",K:[G.Z().G("player_new_info_card_format")?scZ():{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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",X:"ytp-cards-button-title",WM:"Info"}]},{D:"span",X:"ytp-cards-button-icon-shopping",K:[{D:"div",X:"ytp-cards-button-icon",K:[{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",X:"ytp-svg-shadow",L:{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",X:"ytp-svg-fill",L:{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",X:"ytp-svg-shadow-fill",L:{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", X:"ytp-cards-button-title",WM:"Shopping"}]}]});this.U=G;this.W=X;this.N=null;this.fade=new g.v5(this,250,!0,100);g.d(this,this.fade);g.S_(this.W,"ytp-show-cards-title",g.Jn(G.Z()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.rI(!0)}; bWl=function(G,X){g.f.call(this,{D:"div",X:"ytp-cards-teaser",K:[{D:"div",X:"ytp-cards-teaser-box"},{D:"div",X:"ytp-cards-teaser-text",K:G.Z().G("player_new_info_card_format")?[{D:"button",X:"ytp-cards-teaser-info-icon",L:{"aria-label":"Show cards","aria-haspopup":"true"},K:[scZ()]},{D:"img",X:"ytp-cards-teaser-channel-avatar",L:{alt:"","aria-hidden":"true"}},{D:"span",X:"ytp-cards-teaser-label",WM:"{{text}}"},{D:"button",X:"ytp-cards-teaser-close-button",L:{"aria-label":"Close"},K:[g.YC()]}]:[{D:"span", X:"ytp-cards-teaser-label",WM:"{{text}}"}]}]});var Q=this;this.U=G;this.O$=X;this.fade=new g.v5(this,250,!1,250);this.N=null;this.J=new g.fU(this.wsT,300,this);this.S=new g.fU(this.O7C,2E3,this);this.V=[];this.W=null;this.T=new g.fU(function(){Q.element.style.margin="0"},250); this.onClickCommand=this.Y=null;g.d(this,this.fade);g.d(this,this.J);g.d(this,this.S);g.d(this,this.T);G.Z().G("player_new_info_card_format")?(g.Gk(G.getRootNode(),"ytp-cards-teaser-dismissible"),this.B(this.VH("ytp-cards-teaser-close-button"),"click",this.N5),this.B(this.VH("ytp-cards-teaser-info-icon"),"click",this.Jj),this.B(this.VH("ytp-cards-teaser-label"),"click",this.Jj)):this.listen("click",this.Jj);this.B(X.element,"mouseover",this.AY);this.B(X.element,"mouseout",this.tY);this.B(G,"cardsteasershow", this.orb);this.B(G,"cardsteaserhide",this.aW);this.B(G,"cardstatechange",this.Mk);this.B(G,"presentingplayerstatechange",this.Mk);this.B(G,"appresize",this.BG);this.B(G,"onShowControls",this.BG);this.B(G,"onHideControls",this.cS);this.listen("mouseenter",this.yj)}; vYZ=function(G){g.f.call(this,{D:"button",aU:[v6.BUTTON,v6.TITLE_NOTIFICATIONS],L:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},K:[{D:"div",X:v6.TITLE_NOTIFICATIONS_ON,L:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},K:[g.u5()]},{D:"div",X:v6.TITLE_NOTIFICATIONS_OFF,L:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},K:[{D:"svg",L:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{D:"path",L:{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=G;this.N=!1;G.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; J00=function(G,X){G.N=X;G.element.classList.toggle(v6.NOTIFICATIONS_ENABLED,G.N);var Q=G.api.getVideoData();Q?(X=X?Q.nz:Q.IA)?(G=G.api.Ub())?UF(G,X):g.aU(Error("No innertube service available when updating notification preferences.")):g.aU(Error("No update preferences command available.")):g.aU(Error("No video data when updating notification preferences."))}; GxV=function(G,X,Q){var R=R===void 0?800:R;var S=S===void 0?600:S;var Z=document.location.protocol;G=yjZ(Z+"//"+G+"/signin?context=popup","feature",X,"next",Z+"//"+location.hostname+"/post_login");iWw(G,Q,R,S)}; iWw=function(G,X,Q,R){Q=Q===void 0?800:Q;R=R===void 0?600:R;if(G=g.o$(window,G,"loginPopup","width="+Q+",height="+R+",resizable=yes,scrollbars=yes"))YIG(function(){X()}),G.moveTo((screen.width-Q)/2,(screen.height-R)/2)}; g.J_=function(G,X,Q,R,S,Z,H,w,h,L,k,Y){G=G.charAt(0)+G.substring(1).toLowerCase();Q=Q.charAt(0)+Q.substring(1).toLowerCase();if(X==="0"||X==="-1")X=null;if(R==="0"||R==="-1")R=null;var M=k.Z(),m=M.userDisplayName&&g.Sb(M);g.f.call(this,{D:"div",aU:["ytp-button","ytp-sb"],K:[{D:"div",X:"ytp-sb-subscribe",L:m?{title:k.Z().G("player_tooltip_data_title_killswitch")?g.QM("Subscribe as $USER_NAME",{USER_NAME:M.userDisplayName}):"","data-tooltip-title":g.QM("Subscribe as $USER_NAME",{USER_NAME:M.userDisplayName}), "aria-label":"Subscribe to channel","data-tooltip-image":xn(M),"data-tooltip-opaque":String(g.Jn(M)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},K:[{D:"div",X:"ytp-sb-text",K:[{D:"div",X:"ytp-sb-icon"},G]},X?{D:"div",X:"ytp-sb-count",WM:X}:""]},{D:"div",X:"ytp-sb-unsubscribe",L:m?{title:k.G("player_tooltip_data_title_killswitch")?g.QM("Subscribed as $USER_NAME",{USER_NAME:M.userDisplayName}):"","data-tooltip-title":g.QM("Subscribed as $USER_NAME",{USER_NAME:M.userDisplayName}), "aria-label":"Unsubscribe to channel","data-tooltip-image":xn(M),"data-tooltip-opaque":String(g.Jn(M)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},K:[{D:"div",X:"ytp-sb-text",K:[{D:"div",X:"ytp-sb-icon"},Q]},R?{D:"div",X:"ytp-sb-count",WM:R}:""]}],L:{"aria-live":"polite"}});var u=this;this.channelId=H;this.U=k;this.Y=Y;var r=this.VH("ytp-sb-subscribe"),x=this.VH("ytp-sb-unsubscribe");Z&&g.Gk(this.element,"ytp-sb-classic");if(S){w?this.N():this.W();var c=function(){if(M.Yc){var B= u.channelId;if(h||L){var V={c:B};var p;g.LR.isInitialized()&&(p=tJw(V));V=p||"";if(p=k.getVideoData())if(p=p.subscribeCommand){var b=k.Ub();b?(UF(b,p,{botguardResponse:V,feature:h}),k.E_("SUBSCRIBE",B)):g.aU(Error("No innertube service available when updating subscriptions."))}else g.aU(Error("No subscribe command in videoData."));else g.aU(Error("No video data available when updating subscription."))}x.focus();x.removeAttribute("aria-hidden");r.setAttribute("aria-hidden","true")}else GxV(g.Ml(u.U.Z()), "sb_button",u.V)},z=function(){var B=u.channelId; if(h||L){var V=k.getVideoData();UF(k.Ub(),V.unsubscribeCommand,{feature:h});k.E_("UNSUBSCRIBE",B)}r.focus();r.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}; this.B(r,"click",c);this.B(x,"click",z);this.B(r,"keypress",function(B){B.keyCode===13&&c(B)}); this.B(x,"keypress",function(B){B.keyCode===13&&z(B)}); this.B(k,"SUBSCRIBE",this.N);this.B(k,"UNSUBSCRIBE",this.W);this.Y&&m&&(eRl(k),IM(k,r,this),IM(k,x,this))}else g.Gk(r,"ytp-sb-disabled"),g.Gk(x,"ytp-sb-disabled")}; R3i=function(G){g.f.call(this,{D:"div",X:"ytp-title-channel",K:[{D:"div",X:"ytp-title-beacon"},{D:"a",X:"ytp-title-channel-logo",L:{href:"{{channelLink}}",target:G.Z().j,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{D:"div",X:"ytp-title-expanded-overlay",L:{"aria-hidden":"{{flyoutUnfocusable}}"},K:[{D:"div",X:"ytp-title-expanded-heading",K:[{D:"div",X:"ytp-title-expanded-title",K:[{D:"a",WM:"{{expandedTitle}}",L:{href:"{{channelTitleLink}}",target:G.Z().j,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{D:"div",X:"ytp-title-expanded-subtitle",WM:"{{expandedSubtitle}}",L:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var X=this;this.api=G;this.channel=this.VH("ytp-title-channel");this.W=this.VH("ytp-title-channel-logo");this.channelName=this.VH("ytp-title-expanded-title");this.S=this.VH("ytp-title-expanded-overlay");this.Y=this.N=this.subscribeButton=null;this.V=!1;G.createClientVe(this.W,this,36925);G.createClientVe(this.channelName,this, 37220);g.Jn(this.api.Z())&&Xhw(this);this.B(G,"videodatachange",this.GT);this.B(G,"videoplayerreset",this.GT);this.B(this.channelName,"click",function(Q){X.api.logClick(X.channelName);g.o$(window,Qyy(X));Q.preventDefault()}); this.B(this.W,"click",this.d9O);this.GT()}; SkV=function(G){if(!G.api.Z().Ps){var X=G.api.getVideoData(),Q=new g.J_("Subscribe",null,"Subscribed",null,!0,!1,X.F6,X.subscribed,"channel_avatar",null,G.api,!0);G.api.createServerVe(Q.element,G);var R;G.api.setTrackingParams(Q.element,((R=X.subscribeButtonRenderer)==null?void 0:R.trackingParams)||null);G.B(Q.element,"click",function(){G.api.logClick(Q.element)}); G.subscribeButton=Q;g.d(G,G.subscribeButton);G.subscribeButton.s_(G.S);G.subscribeButton.hide();var S=new vYZ(G.api);G.N=S;g.d(G,S);S.s_(G.S);S.hide();G.B(G.api,"SUBSCRIBE",function(){X.Z1&&(S.show(),G.api.logVisibility(S.element,!0))}); G.B(G.api,"UNSUBSCRIBE",function(){X.Z1&&(S.hide(),G.api.logVisibility(S.element,!1),J00(S,!1))})}}; Xhw=function(G){var X=G.api.Z();SkV(G);G.updateValue("flyoutUnfocusable","true");G.updateValue("channelTitleFocusable","-1");G.updateValue("shouldHideExpandedTitleForA11y","true");G.updateValue("shouldHideExpandedSubtitleForA11y","true");X.W||X.CO||(G.B(G.channel,"mouseenter",G.vJ),G.B(G.channel,"mouseleave",G.E1),G.B(G.channel,"focusin",G.vJ),G.B(G.channel,"focusout",function(Q){G.channel.contains(Q.relatedTarget)||G.E1()})); G.Y=new g.fU(function(){G.isExpanded()&&(G.api.logVisibility(G.channelName,!1),G.subscribeButton&&(G.subscribeButton.hide(),G.api.logVisibility(G.subscribeButton.element,!1)),G.N&&(G.N.hide(),G.api.logVisibility(G.N.element,!1)),G.channel.classList.remove("ytp-title-expanded"),G.channel.classList.add("ytp-title-show-collapsed"))},500); g.d(G,G.Y);G.B(G.channel,Zne,function(){HnX(G)}); G.B(G.api,"onHideControls",G.P$);G.B(G.api,"appresize",G.P$);G.B(G.api,"fullscreentoggled",G.P$)}; HnX=function(G){G.channel.classList.remove("ytp-title-show-collapsed");G.channel.classList.remove("ytp-title-show-expanded")}; qkX=function(G){var X=G.api.getPlayerSize();return g.Jn(G.api.Z())&&X.width>=524}; Qyy=function(G){var X=G.api.Z(),Q=G.api.getVideoData(),R=g.OB(X)+Q.bB;g.PP(Q)&&(R="https://music.youtube.com"+Q.bB);if(!g.Jn(X))return R;X={};g.x6(G.api,"addEmbedsConversionTrackingParams",[X]);return g.on(R,X)}; id=function(G){var X=g.wU({"aria-haspopup":"true"});g.qz.call(this,X,G);this.listen("keydown",this.vI)}; GS=function(G,X){G.element.setAttribute("aria-haspopup",String(X))}; why=function(G,X){g.f.call(this,{D:"div",X:"ytp-user-info-panel",L:{"aria-label":"User info"},K:G.Z().Yc&&!G.G("embeds_web_always_enable_signed_out_state")?[{D:"div",X:"ytp-user-info-panel-icon",WM:"{{icon}}"},{D:"div",X:"ytp-user-info-panel-content",K:[{D:"div",X:"ytp-user-info-panel-info",L:{tabIndex:"{{userInfoFocusable}}",role:"text"},WM:"{{watchingAsUsername}}"},{D:"div",X:"ytp-user-info-panel-info",L:{tabIndex:"{{userInfoFocusable2}}",role:"text"},WM:"{{watchingAsEmail}}"}]}]:[{D:"div",X:"ytp-user-info-panel-icon", WM:"{{icon}}"},{D:"div",X:"ytp-user-info-panel-content",K:[{D:"div",K:[{D:"text",L:{tabIndex:"{{userInfoFocusable}}"},WM:"Signed out"}]},{D:"div",X:"ytp-user-info-panel-login",K:[{D:"a",L:{tabIndex:"{{userInfoFocusable2}}",role:"button"},WM:G.Z().Ps?"":"Sign in on YouTube"}]}]}]});this.PM=G;this.N=X;G.Z().Yc||G.Z().Ps||this.B(this.VH("ytp-user-info-panel-login"),"click",this.zY);this.closeButton=new g.f({D:"button",aU:["ytp-collapse","ytp-button"],L:{title:"Close"},K:[g.ab()]});this.closeButton.s_(this.element); g.d(this,this.closeButton);this.B(window,"blur",this.hide);this.B(document,"click",this.Wb);this.GT()}; jyi=function(G,X,Q){g.K5.call(this,G);var R=this;this.gb=X;this.UT=Q;this.getVideoUrl=new id(6);this.Cj=new id(5);this.o4=new id(4);this.L7=new id(3);this.G2=new g.qz(g.wU({href:"{{href}}",target:this.U.Z().j},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.qz(g.wU(),1,"Stats for nerds");this.MV=new g.Sa({D:"div",aU:["ytp-copytext","ytp-no-contextmenu"],L:{draggable:"false",tabindex:"1"},WM:"{{text}}"});this.Bv=new TG(this.U,this.MV);this.Ok=this.JD=null;g.Jn(this.U.Z())&&(this.closeButton= new g.f({D:"button",aU:["ytp-collapse","ytp-button"],L:{title:"Close"},K:[g.ab()]}),g.d(this,this.closeButton),this.closeButton.s_(this.element),this.closeButton.listen("click",this.eb,this));g.Jn(this.U.Z())&&(this.iH=new g.qz(g.wU(),8,"Account"),g.d(this,this.iH),this.jj(this.iH,!0),this.iH.listen("click",this.hYM,this),G.createClientVe(this.iH.element,this.iH,137682));this.U.Z().m7&&(this.aX=new TT("Loop",7),g.d(this,this.aX),this.jj(this.aX,!0),this.aX.listen("click",this.P6p,this),G.createClientVe(this.aX.element, this.aX,28661));this.U.G("web_player_miniplayer_in_context_menu")&&(this.mX=new g.qz(g.wU(),6,"Miniplayer"),g.d(this,this.mX),this.jj(this.mX,!0),this.mX.listen("click",this.Fym,this),G.createClientVe(this.mX.element,this.mX,62946));g.d(this,this.getVideoUrl);this.jj(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.U9p,this);G.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.d(this,this.Cj);this.jj(this.Cj,!0);this.Cj.listen("click",this.QWd,this);G.createClientVe(this.Cj.element, this.Cj,28660);g.d(this,this.o4);this.jj(this.o4,!0);this.o4.listen("click",this.nPA,this);G.createClientVe(this.o4.element,this.o4,28658);g.d(this,this.L7);this.jj(this.L7,!0);this.L7.listen("click",this.oPH,this);g.d(this,this.G2);this.jj(this.G2,!0);this.G2.listen("click",this.mxH,this);g.d(this,this.showVideoInfo);this.jj(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.MGp,this);g.d(this,this.MV);this.MV.listen("click",this.ysB,this);g.d(this,this.Bv);h3Z()&&(this.JD=new g.f({D:"textarea", X:"ytp-html5-clipboard",L:{readonly:"",tabindex:"-1"}}),g.d(this,this.JD),this.JD.s_(this.element));var S;(S=this.iH)==null||S.setIcon(a$e());var Z;(Z=this.aX)==null||Z.setIcon(c7X());var H;(H=this.mX)==null||H.setIcon(sz());this.L7.setIcon({D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{"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.G2.setIcon(u1X());this.showVideoInfo.setIcon(Pa7());this.B(G,"onLoopChange",this.onLoopChange);this.B(G,"videodatachange",this.onVideoDataChange);this.B(G,"fullscreentoggled",function(){Lf7(R)}); kxS(this);Ykw(this,this.U.getVideoData())}; Xi=function(G,X){var Q=!1;if(G.JD){var R=G.JD.element;R.value=X;R.select();try{Q=document.execCommand("copy")}catch(S){}}Q?G.gb.aW():(G.MV.wM(X,"text"),g.a5(G.gb,G.Bv),xH(G.MV.element),G.JD&&(G.JD=null,kxS(G)));return Q}; h3Z=function(){var G=document.queryCommandSupported&&document.queryCommandSupported("copy");nTC("Chromium")>=43&&(G=!0);nTC("Firefox")<=40&&(G=!1);return G}; Lf7=function(G){var X;(X=G.mX)==null||X.Ta(!G.U.isFullscreen()&&G.U.getPresentingPlayerType()!==2&&G.U.Z().showMiniplayerButton)}; Ykw=function(G,X){var Q=G.U.Z(),R=G.U.getPresentingPlayerType()===2,S=!R||X.isListed;S=!Q.yH&&!!X.videoId&&S;Q.playerStyle!=="play"?Q="https://support.google.com/youtube/?p=report_playback":(Q={contact_type:"playbackissue",html5:1,ei:X.eventId,v:X.videoId,p:"movies_playback"},X.W&&(Q.fmt=X.W.itag),X.clientPlaybackNonce&&(Q.cpn=X.clientPlaybackNonce),X.partnerId&&(Q.partnerid=X.partnerId),Q=g.on("//support.google.com/googleplay/",Q));G.o4.Ta(S&&X.allowEmbed);G.getVideoUrl.Ta(S);G.Cj.Ta(S&&!X.isLivePlayback); G.G2.wM(Q,"href");var Z;(Z=G.aX)==null||Z.Ta(!X.isLivePlayback&&!R);Lf7(G);var H;(H=G.iH)==null||H.Ta(!R)}; kxS=function(G){var X=!!G.JD;g.Hv(G.L7,X?"Copy debug info":"Get debug info");GS(G.L7,!X);g.Hv(G.o4,X?"Copy embed code":"Get embed code");GS(G.o4,!X);g.Hv(G.getVideoUrl,X?"Copy video URL":"Get video URL");GS(G.getVideoUrl,!X);g.Hv(G.Cj,X?"Copy video URL at current time":"Get video URL at current time");GS(G.Cj,!X);G.o4.setIcon(X?M8C():null);G.getVideoUrl.setIcon(X?mJ():null);G.Cj.setIcon(X?mJ():null)}; MMX=function(G){return g.Jn(G.U.Z())?G.iH:G.aX}; o1Z=function(G,X){g.rL.call(this,G);this.UT=X;this.Y=new g.KP(this);this.j=new g.fU(this.luC,1E3,this);this.AT=this.JW=null;g.d(this,this.Y);g.d(this,this.j);X=this.U.Z();G.createClientVe(this.element,this,28656);g.Gk(this.element,"ytp-contextmenu");this.U.Z().experiments.TT("delhi_modern_web_player")&&g.sB(X)&&g.Gk(this.element,"ytp-delhi-modern-contextmenu");mo0(this);this.hide()}; mo0=function(G){g.e8(G.Y);var X=G.U.Z();X.playerStyle==="gvn"||X.W||X.CO||(X=G.U.mp(),G.Y.B(X,"contextmenu",G.AsA),G.Y.B(X,"touchstart",G.onTouchStart,null,!0),G.Y.B(X,"touchmove",G.Zr,null,!0),G.Y.B(X,"touchend",G.Zr,null,!0))}; uny=function(G){G.U.isFullscreen()?g.$6(G.U,G.element,10):G.s_(RG(G).body)}; Qm=function(G,X,Q){Q=Q===void 0?240:Q;g.f.call(this,{D:"button",aU:["ytp-button","ytp-copylink-button"],L:{title:G.G("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.Jn(G.Z()))},K:[{D:"div",X:"ytp-copylink-icon",WM:"{{icon}}"},{D:"div",X:"ytp-copylink-title",WM:"Copy link",L:{"aria-hidden":"true"}}]});this.api=G;this.N=X;this.W=Q;this.visible=!1;this.tooltip=this.N.JS();X=G.Z();this.tooltip.element.setAttribute("aria-live", "polite");g.S_(this.element,"ytp-show-copylink-title",g.Jn(X));G.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.B(G,"videodatachange",this.GT);this.B(G,"videoplayerreset",this.GT);this.B(G,"appresize",this.GT);this.GT();this.addOnDisposeCallback(g.VY(this.tooltip,this.element))}; Pxw=function(G){var X=G.api.Z(),Q=G.api.getVideoData(),R=G.api.mp().getPlayerSize().width;X=X.Y;return!!Q.videoId&&R>=G.W&&Q.QE&&!Q.KY&&!G.api.isEmbedsShortsMode()&&!X}; syX=function(G){G.updateValue("icon",h4());if(G.api.Z().W)G.tooltip.ya(G.element,"Link copied to clipboard");else{G.updateValue("title-attr","Link copied to clipboard");G.updateValue("tooltip-title","Link copied to clipboard");G.tooltip.dZ();G.tooltip.ya(G.element);var X=G.listen("mouseleave",function(){G.Ds(X);G.GT();G.tooltip.uZ()})}}; TrC=function(G,X){return g.F(function(Q){if(Q.W==1)return g.a0(Q,2),g.l(Q,navigator.clipboard.writeText(X),4);if(Q.W!=2)return Q.return(!0);g.cl(Q);var R=Q.return,S=!1,Z=g.ml("TEXTAREA");Z.value=X;Z.setAttribute("readonly","");var H=G.api.getRootNode();H.appendChild(Z);if(WI){var w=window.getSelection();w.removeAllRanges();var h=document.createRange();h.selectNodeContents(Z);w.addRange(h);Z.setSelectionRange(0,X.length)}else Z.select();try{S=document.execCommand("copy")}catch(L){}H.removeChild(Z); return R.call(Q,S)})}; KfU=function(G){g.f.call(this,{D:"div",X:"ytp-doubletap-ui-legacy",K:[{D:"div",X:"ytp-doubletap-fast-forward-ve"},{D:"div",X:"ytp-doubletap-rewind-ve"},{D:"div",X:"ytp-doubletap-static-circle",K:[{D:"div",X:"ytp-doubletap-ripple"}]},{D:"div",X:"ytp-doubletap-overlay-a11y"},{D:"div",X:"ytp-doubletap-seek-info-container",K:[{D:"div",X:"ytp-doubletap-arrows-container",K:[{D:"span",X:"ytp-doubletap-base-arrow"},{D:"span",X:"ytp-doubletap-base-arrow"},{D:"span",X:"ytp-doubletap-base-arrow"}]},{D:"div", X:"ytp-doubletap-tooltip",K:[{D:"div",X:"ytp-seek-icon-text-container",K:[{D:"div",X:"ytp-seek-icon",WM:"{{seekIcon}}"},{D:"div",X:"ytp-chapter-seek-text-legacy",WM:"{{seekText}}"}]},{D:"div",X:"ytp-doubletap-tooltip-label",WM:"{{seekTime}}"}]}]}]});this.U=G;this.V=new g.fU(this.show,10,this);this.W=new g.fU(this.hide,700,this);this.J=this.Y=0;this.AT=this.S=!1;this.N=this.VH("ytp-doubletap-static-circle");g.d(this,this.V);g.d(this,this.W);this.hide();this.T=this.VH("ytp-doubletap-fast-forward-ve"); this.j=this.VH("ytp-doubletap-rewind-ve");this.U.createClientVe(this.T,this,28240);this.U.createClientVe(this.j,this,28239);this.U.logVisibility(this.T,!0);this.U.logVisibility(this.j,!0);this.S=G.G("web_show_cumulative_seek_time");this.AT=G.G("web_center_static_circles")}; e3X=function(G,X){X=g.QM("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:X.toString()});G.updateValue("seekTime",X)}; rql=function(G){s8.call(this,G,!1,!0);this.DC=[];this.C7=[];this.element.setAttribute("data-overlay-order","9");this.T=!0;this.badge.element.classList.add("ytp-featured-product");this.Mi=new g.f({D:"div",X:"ytp-featured-product-open-in-new"});g.d(this,this.Mi);this.countdownTimer=new g.f({D:"text",X:"ytp-featured-product-countdown",WM:"{{content}}"});this.countdownTimer.hide();g.d(this,this.countdownTimer);this.W=new g.f({D:"div",X:"ytp-featured-product-trending",K:[{D:"div",X:"ytp-featured-product-trending-icon"}, {D:"text",X:"ytp-featured-product-trending-text",WM:"{{trendingOffer}}"}]});this.W.hide();g.d(this,this.W);this.overflowButton=new g.f({D:"button",aU:["ytp-featured-product-overflow-icon","ytp-button"],L:{"aria-haspopup":"true"}});this.overflowButton.hide();g.d(this,this.overflowButton);this.J=new g.f({D:"text",X:"ytp-featured-product-exclusive-countdown",WM:"{{content}}",L:{id:"exclusiveCountdown","aria-hidden":"true"}});this.J.hide();g.d(this,this.J);this.S=new g.f({D:"div",X:"ytp-featured-product-exclusive-container", L:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},K:[{D:"div",X:"ytp-featured-product-exclusive-badge-container",K:[{D:"div",X:"ytp-featured-product-exclusive-badge",K:[{D:"text",X:"ytp-featured-product-exclusive-badge-text",WM:"{{exclusive}}",L:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.J]});this.S.hide();g.d(this,this.S);this.banner=new g.f({D:"a",X:"ytp-featured-product-container",K:[{D:"div",X:"ytp-featured-product-thumbnail",K:[{D:"img",L:{src:"{{thumbnail}}"}},this.Mi]},{D:"div", X:"ytp-featured-product-details",K:[{D:"text",X:"ytp-featured-product-title",WM:"{{title}}"},this.U.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",X:"ytp-featured-product-price-container",L:{"aria-label":"{{priceA11yText}}"},K:[{D:"text",X:"ytp-featured-product-price-when-promotion-text-enabled",WM:"{{price}}",L:{"aria-hidden":"true"}},{D:"text",X:"ytp-featured-product-promotion-text",WM:"{{promotionText}}",L:{"aria-hidden":"true"}}]}:{D:"div",L:{"aria-label":"{{priceA11yText}}"}, K:[{D:"text",X:"ytp-featured-product-price",WM:"{{price}}",L:{"aria-hidden":"true"}},{D:"text",X:"ytp-featured-product-sales-original-price",WM:"{{salesOriginalPrice}}",L:{"aria-hidden":"true"}},{D:"text",X:"ytp-featured-product-price-drop-reference-price",WM:"{{priceDropReferencePrice}}",L:{"aria-hidden":"true"}}]},this.U.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",X:"ytp-featured-product-when-promotion-text-enabled",K:[{D:"text",X:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", WM:"{{affiliateDisclaimer}}"},this.W,{D:"text",X:"ytp-featured-product-vendor-when-promotion-text-enabled",WM:"{{vendor}}"}]}:{D:"div",K:[{D:"text",X:"ytp-featured-product-affiliate-disclaimer",WM:"{{affiliateDisclaimer}}"},this.U.G("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.S:null,this.W,{D:"text",X:"ytp-featured-product-vendor",WM:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.d(this,this.banner);this.banner.s_(this.Y.element);this.B(this.U,g.Dy("featured_product"), this.u8T);this.B(this.U,g.N3("featured_product"),this.l3);this.B(this.U,"videodatachange",this.onVideoDataChange);this.B(this.overflowButton.element,"click",this.Y3);this.B(G,"featuredproductdismissed",this.zA)}; aFi=function(G){var X,Q;G=(X=G.N)==null?void 0:(Q=X.bannerData)==null?void 0:Q.itemData;var R,S,Z;return(G==null||!G.affiliateDisclaimer)&&(G==null?0:(R=G.exclusivesData)==null?0:R.exclusiveOfferLabelText)&&(G==null?0:(S=G.exclusivesData)==null?0:S.expirationTimestampMs)&&(G==null?0:(Z=G.exclusivesData)==null?0:Z.exclusiveOfferCountdownText)?!0:!1}; xow=function(G){var X,Q,R,S,Z=(X=G.N)==null?void 0:(Q=X.bannerData)==null?void 0:(R=Q.itemData)==null?void 0:(S=R.exclusivesData)==null?void 0:S.expirationTimestampMs;X=(Number(Z)-Date.now())/1E3;if(X>0){if(X<604800){var H,w,h,L;Q=(H=G.N)==null?void 0:(w=H.bannerData)==null?void 0:(h=w.itemData)==null?void 0:(L=h.exclusivesData)==null?void 0:L.exclusiveOfferCountdownText;if(Q!==void 0)for(H=Date.now(),w=g.e(Q),h=w.next();!h.done;h=w.next())if(h=h.value,h!==void 0&&h.text!==void 0&&(L=Number(h.textDisplayStartTimestampMs), !isNaN(L)&&H>=L)){h.insertCountdown?(X=h.text.replace(/\$0/,String(bM({seconds:X}))),G.J.wM(X)):G.J.wM(h.text);G.J.show();break}}var k,Y,M,m;G.S.update({exclusive:(k=G.N)==null?void 0:(Y=k.bannerData)==null?void 0:(M=Y.itemData)==null?void 0:(m=M.exclusivesData)==null?void 0:m.exclusiveOfferLabelText});G.S.show();RN(G);var u;(u=G.Js)==null||u.start()}else E1Z(G)}; E1Z=function(G){var X;(X=G.Js)==null||X.stop();G.J.hide();G.S.hide();S1(G)}; OnV=function(G){var X,Q,R=(X=G.N)==null?void 0:(Q=X.bannerData)==null?void 0:Q.itemData;return G.U.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(R==null||!R.priceReplacementText)&&(R==null?0:R.promotionText)?R==null?void 0:R.promotionText.content:null}; z3V=function(G){var X,Q,R=(X=G.N)==null?void 0:(Q=X.bannerData)==null?void 0:Q.itemData,S,Z;if(!(R!=null&&R.priceReplacementText||G.U.G("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(R==null?0:(S=R.dealsData)==null?0:(Z=S.sales)==null?0:Z.originalPrice)){var H,w;return R==null?void 0:(H=R.dealsData)==null?void 0:(w=H.sales)==null?void 0:w.originalPrice}return null}; cq7=function(G){var X,Q,R=(X=G.N)==null?void 0:(Q=X.bannerData)==null?void 0:Q.itemData,S,Z,H,w;if(!((R==null?0:R.priceReplacementText)||G.U.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(R==null?0:(S=R.dealsData)==null?0:(Z=S.sales)==null?0:Z.originalPrice))&&(R==null?0:(H=R.dealsData)==null?0:(w=H.priceDrop)==null?0:w.referencePrice)){var h,L;return R==null?void 0:(h=R.dealsData)==null?void 0:(L=h.priceDrop)==null?void 0:L.referencePrice}return null}; g1G=function(G){var X,Q,R=(X=G.N)==null?void 0:(Q=X.bannerData)==null?void 0:Q.itemData;if(R==null?0:R.priceReplacementText)return R==null?void 0:R.priceReplacementText;if((R==null?0:R.promotionText)&&G.U.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var S;return(R==null?void 0:R.price)+" "+(R==null?void 0:(S=R.promotionText)==null?void 0:S.content)}var Z,H;if(R==null?0:(Z=R.dealsData)==null?0:(H=Z.sales)==null?0:H.originalPrice){var w,h;return R==null?void 0:(w=R.dealsData)== null?void 0:(h=w.sales)==null?void 0:h.salesPriceAccessibilityLabel}var L,k;if(R==null?0:(L=R.dealsData)==null?0:(k=L.priceDrop)==null?0:k.referencePrice){var Y,M;return(R==null?void 0:R.price)+" "+(R==null?void 0:(Y=R.dealsData)==null?void 0:(M=Y.priceDrop)==null?void 0:M.referencePrice)}return R==null?void 0:R.price}; Uoe=function(G){if(G.U.G("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var X,Q,R;return G.W.rb?null:(X=G.N)==null?void 0:(Q=X.bannerData)==null?void 0:(R=Q.itemData)==null?void 0:R.vendorName}var S,Z,H,w,h,L;return G.W.rb||G.S.rb||((S=G.N)==null?0:(Z=S.bannerData)==null?0:(H=Z.itemData)==null?0:H.affiliateDisclaimer)?null:(w=G.N)==null?void 0:(h=w.bannerData)==null?void 0:(L=h.itemData)==null?void 0:L.vendorName}; BrS=function(G,X){ZZ(G);if(X){var Q=g.rx.getState().entities;Q=bJ(Q,"featuredProductsEntity",X);if(Q!=null&&Q.productsData){X=[];Q=g.e(Q.productsData);for(var R=Q.next();!R.done;R=Q.next()){R=R.value;var S=void 0;if((S=R)!=null&&S.identifier&&R.featuredSegments){G.DC.push(R);var Z=void 0;S=g.e((Z=R)==null?void 0:Z.featuredSegments);for(Z=S.next();!Z.done;Z=S.next()){var H=Z.value;Z=lFZ(H.startTimeSec);Z!==void 0&&(H=lFZ(H.endTimeSec),X.push(new g.yG(Z*1E3,H===void 0?0x7ffffffffffff:H*1E3,{id:R.identifier, namespace:"featured_product"})))}}}G.U.PZ(X)}}}; S1=function(G){if(G.trendingOfferEntityKey){var X=g.rx.getState().entities;if(X=bJ(X,"trendingOfferEntity",G.trendingOfferEntityKey)){var Q,R,S;X.encodedSkuId!==((Q=G.N)==null?void 0:(R=Q.bannerData)==null?void 0:(S=R.itemData)==null?void 0:S.encodedOfferSkuId)?RN(G):(G.W.update({trendingOffer:X.shortLabel+" \u2022 "+X.countLabel}),G.W.show(),G.banner.update({vendor:Uoe(G)}))}else RN(G)}else RN(G)}; RN=function(G){G.W.hide();G.banner.update({vendor:Uoe(G)})}; ZZ=function(G){G.DC=[];G.l3();G.U.lf("featured_product")}; Ff0=function(G){var X,Q,R,S,Z=(X=G.N)==null?void 0:(Q=X.bannerData)==null?void 0:(R=Q.itemData)==null?void 0:(S=R.hiddenProductOptions)==null?void 0:S.dropTimestampMs;X=(Number(Z)-Date.now())/1E3;G.countdownTimer.wM(bM({seconds:X}));if(X>0){var H;(H=G.Hs)==null||H.start()}}; CxU=function(G){var X;(X=G.Hs)==null||X.stop();G.countdownTimer.hide()}; lFZ=function(G){if(G!==void 0&&G.trim()!==""&&(G=Math.trunc(Number(G.trim())),!(isNaN(G)||G<0)))return G}; Wfw=function(G,X,Q){g.f.call(this,{D:"div",aU:["ytp-info-panel-action-item"],K:[{D:"div",X:"ytp-info-panel-action-item-disclaimer",WM:"{{disclaimer}}"},{D:"a",aU:["ytp-info-panel-action-item-button","ytp-button"],L:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},K:[{D:"div",X:"ytp-info-panel-action-item-icon",WM:"{{icon}}"},{D:"div",X:"ytp-info-panel-action-item-label",WM:"{{label}}"}]}]});this.U=G;this.N=Q;this.disclaimer=this.VH("ytp-info-panel-action-item-disclaimer");this.button= this.VH("ytp-info-panel-action-item-button");this.eG=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);G="";Q=g.y(X==null?void 0:X.onTap,OL);var R=g.y(Q,g.l5);this.eG=!1;R?(G=R.url||"",G.startsWith("//")&&(G="https:"+G),this.eG=!0,g.ki(this.button,g.wZ(G))):(R=g.y(Q,tMS))&&!this.N?((G=R.phoneNumbers)&&G.length>0?(G="sms:"+G[0],R.messageText&&(G+="?&body="+encodeURI(R.messageText))):G="",this.eG=!0,g.ki(this.button,g.wZ(G,[VM7]))):(Q=g.y(Q,IFC))&&!this.N&&(G=Q.phoneNumber? "tel:"+Q.phoneNumber:"",this.eG=!0,g.ki(this.button,g.wZ(G,[doi])));var S;if(Q=(S=X.disclaimerText)==null?void 0:S.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var Z;this.update({label:(Z=X.bodyText)==null?void 0:Z.content,icon:P5(),disclaimer:Q})}else{this.disclaimer.style.display="none";var H;this.update({label:(H=X.bodyText)==null?void 0:H.content,icon:P5()})}this.U.setTrackingParams(this.element,X.trackingParams||null);this.eG&&(this.W={externalLinkData:{url:G}})}; phV=function(G,X){var Q=GD();g.Qn.call(this,G,{D:"div",X:"ytp-info-panel-detail-skrim",K:[{D:"div",X:"ytp-info-panel-detail",L:{role:"dialog",id:Q},K:[{D:"div",X:"ytp-info-panel-detail-header",K:[{D:"div",X:"ytp-info-panel-detail-title",WM:"{{title}}"},{D:"button",aU:["ytp-info-panel-detail-close","ytp-button"],L:{"aria-label":"Close"},K:[g.YC()]}]},{D:"div",X:"ytp-info-panel-detail-body",WM:"{{body}}"},{D:"div",X:"ytp-info-panel-detail-items"}]}]},250);this.N=X;this.items=this.VH("ytp-info-panel-detail-items"); this.Y=new g.KP(this);this.itemData=[];this.V=Q;this.B(this.VH("ytp-info-panel-detail-close"),"click",this.aW);this.B(this.VH("ytp-info-panel-detail-skrim"),"click",this.aW);this.B(this.VH("ytp-info-panel-detail"),"click",function(R){R.stopPropagation()}); g.d(this,this.Y);this.U.createServerVe(this.element,this,!0);this.B(G,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",G.getVideoData());this.hide()}; yqG=function(G,X){G=g.e(G.itemData);for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value,Q.U.logVisibility(Q.element,X)}; NrS=function(G,X){g.f.call(this,{D:"div",X:"ytp-info-panel-preview",L:{"aria-live":"assertive","aria-atomic":"true","aria-owns":X.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Jn(G.Z()))},K:[{D:"div",X:"ytp-info-panel-preview-text",WM:"{{text}}"},{D:"div",X:"ytp-info-panel-preview-chevron",WM:"{{chevron}}"}]});var Q=this;this.U=G;this.FG=this.N=this.videoId=null;this.Y=this.showControls=this.W=!1;this.B(this.element,"click",function(){G.logClick(Q.element);G.Vc();Sj(X)}); this.fade=new g.v5(this,250,!1,100);g.d(this,this.fade);this.U.createServerVe(this.element,this,!0);this.B(G,"videodatachange",this.onVideoDataChange);this.B(G,"presentingplayerstatechange",this.hI);this.B(this.U,"paidcontentoverlayvisibilitychange",this.R0);this.B(this.U,"infopaneldetailvisibilitychange",this.R0);var R=G.getVideoData()||{};fFe(R)&&DoT(this,R);this.B(G,"onShowControls",this.x3);this.B(G,"onHideControls",this.Vj)}; DoT=function(G,X){if(!X.rS||!G.U.pg()){var Q=X.W8||1E4,R=fFe(X);G.N?X.videoId&&X.videoId!==G.videoId&&(g.Ax(G.N),G.videoId=X.videoId,R?(AqG(G,Q,X),G.Pn()):(G.aW(),G.N.dispose(),G.N=null)):R&&(X.videoId&&(G.videoId=X.videoId),AqG(G,Q,X),G.Pn())}}; fFe=function(G){var X,Q,R,S;return!!((X=G.fd)==null?0:(Q=X.title)==null?0:Q.content)||!!((R=G.fd)==null?0:(S=R.bodyText)==null?0:S.content)}; AqG=function(G,X,Q){G.N&&G.N.dispose();G.N=new g.fU(G.HL_,X,G);g.d(G,G.N);var R;X=((R=Q.fd)==null?void 0:R.trackingParams)||null;G.U.setTrackingParams(G.element,X);var S;var Z,H;if(Q==null?0:(Z=Q.fd)==null?0:(H=Z.title)==null?0:H.content){var w;R=(S=Q.fd)==null?void 0:(w=S.title)==null?void 0:w.content;var h,L;if((h=Q.fd)==null?0:(L=h.bodyText)==null?0:L.content)R+=" \u2022 ";S=R}else S="";var k,Y;Q=((k=Q.fd)==null?void 0:(Y=k.bodyText)==null?void 0:Y.content)||"";G.update({text:S+Q,chevron:g.kC()})}; n1l=function(G,X){G.N&&(g.N(X,8)?(G.W=!0,G.Pn(),G.N.start()):(g.N(X,2)||g.N(X,64))&&G.videoId&&(G.videoId=null))}; HG=function(G){var X=null;try{X=G.toLocaleString("en",{style:"percent"})}catch(Q){X=G.toLocaleString(void 0,{style:"percent"})}return X}; qF=function(G,X){var Q=0;G=g.e(G);for(var R=G.next();!(R.done||R.value.startTime>X);R=G.next())Q++;return Q===0?Q:Q-1}; $oV=function(G,X){for(var Q=0,R=g.e(G),S=R.next();!S.done;S=R.next()){S=S.value;if(X=S.timeRangeStartMillis&&X2147483647?"0":String(G)}; h2=function(G,X,Q){var R=G.api.getCurrentTime(),S=Xyy(G,R);G=Xyy(G,R+X);return{startMediaTimeMs:S,endMediaTimeMs:G,seekSource:Q}}; Q3G=function(G){var X,Q=(X=G.api.getVideoData())==null?void 0:X.Yr();return G.api.getPresentingPlayerType(Q)!==2}; wa=function(G,X){G.Y.uh=X;g.S_(G.api.getRootNode(),"ytp-probably-keyboard-focus",X);g.S_(G.contextMenu.element,"ytp-probably-keyboard-focus",X)}; k2=function(G,X,Q,R){var S=g.a6(G.api.p7());if(S&&S.loaded){var Z=G.api.getSubtitlesUserSettings();S=void 0;for(var H=0;H0?X[0]:null;var Q=g.hj("ytp-chrome-bottom"),R=g.hj("ytp-ad-module");G.V=!(Q==null||!Q.contains(X));G.T=!(R==null||!R.contains(X));G.j=!(X==null||!X.hasAttribute("data-tooltip-target-fixed"));return X}; Y$0=function(G,X,Q){if(!G.S){if(X){G.tooltipRenderer=X;X=G.tooltipRenderer.text;var R=!1,S;(X==null?0:(S=X.runs)==null?0:S.length)&&X.runs[0].text&&(G.update({title:X.runs[0].text.toString()}),R=!0);g.Rh(G.title,R);X=G.tooltipRenderer.detailsText;S=!1;var Z;if((X==null?0:(Z=X.runs)==null?0:Z.length)&&X.runs[0].text){R=X.runs[0].text.toString();Z=R.indexOf("$TARGET_ICON");if(Z>-1)if(G.tooltipRenderer.targetId){X=[];R=R.split("$TARGET_ICON");var H=new g.XX({D:"span",X:"ytp-promotooltip-details-icon", K:[L4l[G.tooltipRenderer.targetId]]});g.d(G,H);for(var w=[],h=g.e(R),L=h.next();!L.done;L=h.next())L=new g.XX({D:"span",X:"ytp-promotooltip-details-component",WM:L.value}),g.d(G,L),w.push(L);R.length===2?(X.push(w[0].element),X.push(H.element),X.push(w[1].element)):R.length===1&&(Z===0?(X.push(H.element),X.push(w[0].element)):(X.push(w[0].element),X.push(H.element)));Z=X.length?X:null}else Z=null;else Z=R;if(Z){if(typeof Z!=="string")for(g.Pq(G.details),S=g.e(Z),Z=S.next();!Z.done;Z=S.next())G.details.appendChild(Z.value); else G.update({details:Z});S=!0}}g.Rh(G.details,S);S=G.tooltipRenderer.acceptButton;Z=!1;var k,Y,M;((k=g.y(S,g.Lv))==null?0:(Y=k.text)==null?0:(M=Y.runs)==null?0:M.length)&&g.y(S,g.Lv).text.runs[0].text&&(G.update({acceptButtonText:g.y(S,g.Lv).text.runs[0].text.toString()}),Z=!0);g.Rh(G.acceptButton,Z);k=G.tooltipRenderer.dismissButton;Y=!1;var m,u,r;((m=g.y(k,g.Lv))==null?0:(u=m.text)==null?0:(r=u.runs)==null?0:r.length)&&g.y(k,g.Lv).text.runs[0].text&&(G.update({dismissButtonText:g.y(k,g.Lv).text.runs[0].text.toString()}), Y=!0);g.Rh(G.dismissButton,Y)}Q&&(G.Y=Q);G.N=hFZ(G);G.J=!1;G.U.Z().G("web_player_hide_nitrate_promo_tooltip")||G.Ta(!0);kPX(G);G.rb&&!G.AT&&(G.AT=!0,G.gh.Kf(0));G.W&&G.U.logVisibility(G.element,G.rb)}}; MF=function(G){G.Ta(!1);G.W&&G.U.logVisibility(G.element,G.rb)}; j3X=function(G){var X,Q,R,S=((X=g.y(G.acceptButton,g.Lv))==null?void 0:(Q=X.text)==null?void 0:(R=Q.runs)==null?void 0:R.length)&&!!g.y(G.acceptButton,g.Lv).text.runs[0].text,Z,H,w;X=((Z=g.y(G.dismissButton,g.Lv))==null?void 0:(H=Z.text)==null?void 0:(w=H.runs)==null?void 0:w.length)&&!!g.y(G.dismissButton,g.Lv).text.runs[0].text;return S||X}; kPX=function(G){var X;if(!(X=!G.N)){X=G.N;var Q=window.getComputedStyle(X);X=Q.display==="none"||Q.visibility==="hidden"||X.getAttribute("aria-hidden")==="true"}if(X||G.U.isMinimized())G.Ta(!1);else if(X=g.Qj(G.N),X.width&&X.height){G.U.Eh(G.element,G.N);var R=G.U.mp().getPlayerSize().height;Q=g.Qj(G.VH("ytp-promotooltip-container")).height;G.V?G.element.style.top=R-Q-X.height-12+"px":G.j||(R=G.U.V5().height-Q-X.height-12,G.element.style.top=R+"px");R=G.VH("ytp-promotooltip-pointer");var S=g.GX(G.N, G.U.getRootNode()),Z=Number(G.element.style.left.replace(/[^\d\.]/g,""));G=G.U.isFullscreen()?18:12;R.style.left=S.x-Z+X.width/2-G+"px";R.style.top=Q+"px"}else G.Ta(!1)}; mY=function(G){g.f.call(this,{D:"button",aU:["ytp-replay-button","ytp-button"],L:{title:G.G("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},K:[g.ea()]});this.U=G;this.B(G,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.qx(G.getPlayerStateObject());IM(this.U,this.element,this)}; oN=function(G,X){X=X===void 0?240:X;g.f.call(this,{D:"button",aU:["ytp-button","ytp-search-button"],L:{title:G.G("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.Jn(G.Z()))},K:[{D:"div",X:"ytp-search-icon",WM:"{{icon}}"},{D:"div",X:"ytp-search-title",WM:"Search"}]});this.api=G;this.W=X;this.visible=!1;this.updateValue("icon",{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",X:"ytp-svg-fill",L:{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"}}]}); G.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.N();this.B(G,"appresize",this.N);this.B(G,"videodatachange",this.N);IM(G,this.element,this)}; uW=function(G){g.f.call(this,{D:"div",X:"ytp-seek-overlay",K:[{D:"div",aU:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],K:[{D:"div",aU:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{D:"svg",L:{viewBox:"0 0 22 32",width:"22",height:"24"},K:[{D:"path",L:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{D:"div",X:"ytp-seek-overlay-duration",WM:"{{durationBack}}"}]},{D:"div",aU:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],K:[{D:"div",X:"ytp-seek-overlay-duration",WM:"{{durationForward}}"},{D:"div",aU:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{D:"svg",L:{viewBox:"0 0 22 32",width:"22",height:"24"},K:[{D:"path",L:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{D:"div",X:"ytp-seek-overlay-message",K:[{D:"div",X:"ytp-seek-overlay-message-icon",WM:"{{icon}}"},{D:"div",X:"ytp-seek-overlay-message-text", WM:"{{text}}"}]}]});var X=this;this.U=G;this.J=0;this.N="hidden";this.T=this.VH("ytp-seek-overlay-animation-back");this.j=this.VH("ytp-seek-overlay-animation-forward");this.AT=this.VH("ytp-seek-overlay-message");this.S=new g.fU(function(){MF7(X)},g.i2(this.U.Z().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.d(this,this.S);this.U.createClientVe(this.j,this,28240);this.U.createClientVe(this.T,this,28239);this.U.logVisibility(this.j,!0);this.U.logVisibility(this.T,!0);this.hide()}; miG=function(G,X){G.Y=G.V.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:X},{offset:1,opacity:1}],{duration:200,fill:"forwards"});G.Y.addEventListener("finish",function(){G.Y=void 0;G.S.start();G.N="lingering"})}; ojC=function(G,X,Q,R){Q=Q===void 0?!1:Q;R=R===void 0?!1:R;var S=[];S.push({offset:0,transform:"translateX("+(G.W===-1?20:-20)+"px)",opacity:Q?"0":"1"});Q&&S.push({offset:.5,opacity:"1"});S.push({offset:1,transform:"translateX(0)"});Q=X.animate(S,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});X=X.querySelector("path");S=[];S.push({offset:0,d:G.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")',filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});R&&S.push({offset:.8, filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});G={offset:1,d:G.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};R&&(G.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");S.push(G);X.animate(S,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return Q}; uWX=function(G){var X=G.V.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);X.classList.add("ytp-seek-overlay-arrow-additional");X.classList.remove("ytp-seek-overlay-arrow-persistent");G.V.appendChild(X);ojC(G,X,!0,!0).addEventListener("finish",function(){X.remove()})}; MF7=function(G,X,Q){Q=Q===void 0?!0:Q;G.Y=G.V.animate([{offset:0,opacity:X===void 0?1:X},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});Q&&(G.Y.addEventListener("finish",function(){G.Y=void 0;PHZ(G);G.hide()}),G.N="fading-out")}; s3V=function(G){var X=Number(getComputedStyle(G.V).opacity),Q;(Q=G.Y)==null||Q.cancel();G.Y=void 0;return X}; PHZ=function(G){G.J=0;G.N="hidden";G.W=void 0;G.V=void 0;G.S.stop();G.Y=void 0}; TtG=function(G,X,Q){G.updateValue("text",X);if(Q){a:{switch(Q){case "PREMIUM_STANDALONE":X=xMy();break a;case "PREMIUM_STANDALONE_CAIRO":X=OZZ();break a}X=void 0}G.updateValue("icon",X)}X=g.e(G.AT.getAnimations());for(Q=X.next();!Q.done;Q=X.next())Q.value.cancel();G.AT.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){G.updateValue("text","");G.updateValue("icon","")})}; PG=function(G,X,Q,R){R=R===void 0?240:R;g.f.call(this,{D:"button",aU:["ytp-button","ytp-share-button"],L:{title:G.G("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":Q.element.id,"data-tooltip-opaque":String(g.Jn(G.Z()))},K:[{D:"div",X:"ytp-share-icon",WM:"{{icon}}"},{D:"div",X:"ytp-share-title",WM:"Share"}]});this.api=G;this.N=X;this.W=Q;this.Y=R;this.visible=!1;this.tooltip=this.N.JS();G.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.B(G,"videodatachange",this.GT);this.B(G,"videoplayerreset",this.GT);this.B(G,"appresize",this.GT);this.B(G,"presentingplayerstatechange",this.GT);this.GT();this.addOnDisposeCallback(g.VY(this.tooltip,this.element))}; K4G=function(G){var X=G.api.Z(),Q=G.api.getVideoData(),R=g.Jn(X)&&g.D0(G.api)&&g.N(G.api.getPlayerStateObject(),128);X=X.Y||X.disableSharing&&G.api.getPresentingPlayerType()!==2||!Q.showShareButton||Q.QE||R||Q.KY||!1;R=G.api.mp().getPlayerSize().width;return!!Q.videoId&&R>=G.Y&&!X}; eFy=function(G,X){X.name!=="InvalidStateError"&&X.name!=="AbortError"&&(X.name==="NotAllowedError"?(G.N.Vc(),Sj(G.W,G.element,!1)):g.aU(X))}; al7=function(G,X){var Q=GD(),R=G.Z();Q={D:"div",X:"ytp-share-panel",L:{id:GD(),role:"dialog","aria-labelledby":Q},K:[{D:"div",X:"ytp-share-panel-inner-content",K:[{D:"div",X:"ytp-share-panel-title",L:{id:Q},WM:"Share"},{D:"a",aU:["ytp-share-panel-link","ytp-no-contextmenu"],L:{href:"{{link}}",target:R.j,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},WM:"{{linkText}}"},{D:"label",X:"ytp-share-panel-include-playlist",K:[{D:"input",X:"ytp-share-panel-include-playlist-checkbox",L:{type:"checkbox", checked:"true"}},"Include playlist"]},{D:"div",X:"ytp-share-panel-loading-spinner",K:[EE()]},{D:"div",X:"ytp-share-panel-service-buttons",WM:"{{buttons}}"},{D:"div",X:"ytp-share-panel-error",WM:"An error occurred while retrieving sharing information. Please try again later."}]},{D:"button",aU:["ytp-share-panel-close","ytp-button"],L:{title:"Close"},K:[g.YC()]}]};g.Qn.call(this,G,Q,250);var S=this;this.moreButton=null;this.api=G;this.tooltip=X.JS();this.Y=[];this.S=this.VH("ytp-share-panel-inner-content"); this.closeButton=this.VH("ytp-share-panel-close");this.B(this.closeButton,"click",this.aW);this.addOnDisposeCallback(g.VY(this.tooltip,this.closeButton));this.V=this.VH("ytp-share-panel-include-playlist-checkbox");this.B(this.V,"click",this.GT);this.N=this.VH("ytp-share-panel-link");this.addOnDisposeCallback(g.VY(this.tooltip,this.N));this.api.createClientVe(this.N,this,164503);this.B(this.N,"click",function(Z){Z.preventDefault();S.api.logClick(S.N);var H=S.api.getVideoUrl(!0,!0,!1,!1);H=rbe(S,H); g.rU(H,S.api,Z)&&S.api.E_("SHARE_CLICKED")}); this.listen("click",this.RO);this.B(G,"videoplayerreset",this.hide);this.B(G,"fullscreentoggled",this.onFullscreenToggled);this.B(G,"onLoopRangeChange",this.HOb);this.hide()}; OgT=function(G,X){Ejl(G);for(var Q=X.links||X.shareTargets,R=0,S={},Z=0;Z0&&!b&&!V?(B.length===2&&(B=["noreferrer"]),g.o$(m,r,M,B[0]),m=$vG()):(x=z.join(","),Vo()&&m.navigator&&m.navigator.standalone&&M&&M!="_self"?(x=g.ml("A"),g.ki(x,r),x.target=M,c&&(x.rel="noreferrer"),((u=u.attributionsrc)||u==="")&&x.setAttribute("attributionsrc",u),u=document.createEvent("MouseEvent"), u.initMouseEvent("click",!0,!0,m,1),x.dispatchEvent(u),m=$vG()):c?(m=g.o$(m,"",M,x),u=g.Zb(r),m&&(m.opener=null,u===""&&(u="javascript:''"),u='',u=Mq(u),(r=m.document)&&r.write&&(r.write(m3(u)),r.close()))):((m=g.o$(m,r,M,x))&&u.noopener&&(m.opener=null),m&&u.noreferrer&&(m.opener=null)));m&&(m.opener||(m.opener=window),m.focus());Y.preventDefault()}}}(S)); S.Pd.addOnDisposeCallback(g.VY(G.tooltip,S.Pd.element));w==="Facebook"?G.api.createClientVe(S.Pd.element,S.Pd,164504):w==="Twitter"&&G.api.createClientVe(S.Pd.element,S.Pd,164505);G.B(S.Pd.element,"click",function(k){return function(){G.api.logClick(k.Pd.element)}}(S)); G.api.logVisibility(S.Pd.element,!0);G.Y.push(S.Pd);R++}}var h=X.more||X.moreLink,L=new g.f({D:"a",aU:["ytp-share-panel-service-button","ytp-button"],K:[{D:"span",X:"ytp-share-panel-service-button-more",K:[{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{D:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",L:{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"}}]}]}],L:{href:h,target:"_blank",title:"More"}});L.listen("click",function(k){var Y=h;G.api.logClick(G.moreButton.element);Y=rbe(G,Y);g.rU(Y,G.api,k)&&G.api.E_("SHARE_CLICKED")}); L.addOnDisposeCallback(g.VY(G.tooltip,L.element));G.api.createClientVe(L.element,L,164506);G.B(L.element,"click",function(){G.api.logClick(L.element)}); G.api.logVisibility(L.element,!0);G.Y.push(L);G.moreButton=L;G.updateValue("buttons",G.Y)}; rbe=function(G,X){var Q={};g.Jn(G.api.Z())&&(g.x6(G.api,"addEmbedsConversionTrackingParams",[Q]),X=g.on(X,Q));return X}; Ejl=function(G){for(var X=g.e(G.Y),Q=X.next();!Q.done;Q=X.next())Q=Q.value,Q.detach(),g.Xh(Q);G.Y=[]}; sR=function(G){return G===void 0||G.startSec===void 0||G.endSec===void 0?!1:!0}; zFG=function(G,X){G.startSec+=X;G.endSec+=X}; gjG=function(G){s8.call(this,G);this.W=this.N=this.isContentForward=this.J=!1;this.element.setAttribute("data-overlay-order","8");cbl(this);this.B(this.U,"changeProductsInVideoVisibility",this.vSO);this.B(this.U,"videodatachange",this.onVideoDataChange)}; UiC=function(G){G.S&&G.QH.element.removeChild(G.S.element);G.S=void 0}; Bte=function(G,X){return X.map(function(Q){var R,S;if((Q=(R=g.y(Q,llX))==null?void 0:(S=R.thumbnail)==null?void 0:S.thumbnails)&&Q.length!==0)return Q[0].url}).filter(function(Q){return Q!==void 0}).map(function(Q){Q=new g.f({D:"img", X:"ytp-suggested-action-product-thumbnail",L:{alt:"",src:Q}});g.d(G,Q);return Q})}; F4i=function(G,X){G.isContentForward=X;g.S_(G.badge.element,"ytp-suggested-action-badge-content-forward",X)}; TS=function(G){var X=G.isContentForward&&!G.vx();g.S_(G.badge.element,"ytp-suggested-action-badge-preview-collapsed",X&&G.N);g.S_(G.badge.element,"ytp-suggested-action-badge-preview-expanded",X&&G.W)}; KG=function(G,X,Q){return new g.yG(G*1E3,X*1E3,{priority:9,namespace:Q})}; CHS=function(G){G.U.lf("shopping_overlay_visible");G.U.lf("shopping_overlay_preview_collapsed");G.U.lf("shopping_overlay_preview_expanded");G.U.lf("shopping_overlay_expanded")}; cbl=function(G){G.B(G.U,g.Dy("shopping_overlay_visible"),function(){G.cR(!0)}); G.B(G.U,g.N3("shopping_overlay_visible"),function(){G.cR(!1)}); G.B(G.U,g.Dy("shopping_overlay_expanded"),function(){G.yH=!0;Pt(G)}); G.B(G.U,g.N3("shopping_overlay_expanded"),function(){G.yH=!1;Pt(G)}); G.B(G.U,g.Dy("shopping_overlay_preview_collapsed"),function(){G.N=!0;TS(G)}); G.B(G.U,g.N3("shopping_overlay_preview_collapsed"),function(){G.N=!1;TS(G)}); G.B(G.U,g.Dy("shopping_overlay_preview_expanded"),function(){G.W=!0;TS(G)}); G.B(G.U,g.N3("shopping_overlay_preview_expanded"),function(){G.W=!1;TS(G)})}; IlZ=function(G){g.f.call(this,{D:"div",X:"ytp-shorts-title-channel",K:[{D:"a",X:"ytp-shorts-title-channel-logo",L:{href:"{{channelLink}}",target:G.Z().j,"aria-label":"{{channelLogoLabel}}"}},{D:"div",X:"ytp-shorts-title-expanded-heading",K:[{D:"div",X:"ytp-shorts-title-expanded-title",K:[{D:"a",WM:"{{expandedTitle}}",L:{href:"{{channelTitleLink}}",target:G.Z().j,tabIndex:"0"}}]}]}]});var X=this;this.api=G;this.N=this.VH("ytp-shorts-title-channel-logo");this.channelName=this.VH("ytp-shorts-title-expanded-title"); this.subscribeButton=null;G.createClientVe(this.N,this,36925);this.B(this.N,"click",function(Q){X.api.logClick(X.N);g.o$(window,tF7(X));Q.preventDefault()}); G.createClientVe(this.channelName,this,37220);this.B(this.channelName,"click",function(Q){X.api.logClick(X.channelName);g.o$(window,tF7(X));Q.preventDefault()}); VFw(this);this.B(G,"videodatachange",this.GT);this.B(G,"videoplayerreset",this.GT);this.GT()}; VFw=function(G){if(!G.api.Z().Ps){var X=G.api.getVideoData(),Q=new g.J_("Subscribe",null,"Subscribed",null,!0,!1,X.F6,X.subscribed,"channel_avatar",null,G.api,!0);G.api.createServerVe(Q.element,G);var R;G.api.setTrackingParams(Q.element,((R=X.subscribeButtonRenderer)==null?void 0:R.trackingParams)||null);G.B(Q.element,"click",function(){G.api.logClick(Q.element)}); G.subscribeButton=Q;g.d(G,G.subscribeButton);G.subscribeButton.s_(G.element)}}; tF7=function(G){var X=G.api.Z(),Q=G.api.getVideoData();Q=g.OB(X)+Q.bB;if(!g.Jn(X))return Q;X={};g.x6(G.api,"addEmbedsConversionTrackingParams",[X]);return g.on(Q,X)}; e1=function(G){g.Qn.call(this,G,{D:"button",aU:["ytp-skip-intro-button","ytp-popup","ytp-button"],K:[{D:"div",X:"ytp-skip-intro-button-text",WM:"Skip Intro"}]},100);var X=this;this.Y=!1;this.N=new g.fU(function(){X.hide()},5E3); this.ze=this.f4=NaN;g.d(this,this.N);this.j=function(){X.show()}; this.S=function(){X.hide()}; this.V=function(){var Q=X.U.getCurrentTime();Q>X.f4/1E3&&Q0?{D:"svg",L:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",aU:["ytp-circle-arrow","ytp-svg-fill"],L:{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",aU:["ytp-jump-button-text","ytp-svg-fill"],L:{x:"7.05",y:"15.05"}}]}:{D:"svg",L:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",aU:["ytp-circle-arrow","ytp-svg-fill"],L:{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",aU:["ytp-jump-button-text","ytp-svg-fill"],L:{x:"6.5",y:"15"}}]}]});var Q=this;this.U=G;this.N=X;this.W=new g.fU(function(){Q.Y?(Q.Y=!1,Q.W.start()):Q.element.classList.remove("ytp-jump-spin","backwards")},250); this.Y=!1;(X=X>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var R=g.QM(X?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.N).toString()});this.U.G("player_tooltip_data_title_killswitch")?this.update({title:R,"data-title-no-tooltip":R,"aria-keyshortcuts":X?"\u2192":"\u2190"}):this.update({"tooltip-title":R,"data-title-no-tooltip":R,"aria-keyshortcuts":X?"\u2192":"\u2190"});this.V=this.element.querySelector(".ytp-jump-button-text"); this.V.textContent=Math.abs(this.N).toString();this.listen("click",this.onClick,this);IM(G,this.element,this)}; Abw=function(G,X){X?G.element.classList.add("ytp-jump-button-enabled"):G.element.classList.remove("ytp-jump-button-enabled");G.U.logVisibility(G.element,X);G.U.dZ()}; cG=function(G,X){aN.call(this,G,X,"timedMarkerCueRange","View key moments");this.B(G,g.N3("timedMarkerCueRange"),this.o6);this.B(G,"updatemarkervisibility",this.updateVideoData)}; njG=function(G){var X,Q=(X=G.U.getVideoData())==null?void 0:X.cM;if(Q)for(G=G.V.wb,Q=g.e(Q),X=Q.next();!X.done;X=Q.next())if(X=G[X.value]){var R=void 0,S=void 0,Z=void 0;if(((R=X.onTap)==null?void 0:(S=R.innertubeCommand)==null?void 0:(Z=S.changeEngagementPanelVisibilityAction)==null?void 0:Z.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return X}}; UR=function(G){var X=G.G("web_enable_pip_on_miniplayer");g.f.call(this,{D:"button",aU:["ytp-miniplayer-button","ytp-button"],L:{title:G.G("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},K:["{{icon}}"]});this.U=G;this.visible=!1;this.listen("click",this.onClick);this.B(G,"fullscreentoggled",this.GT);this.U.G("player_tooltip_data_title_killswitch")? this.update({title:g.d4(G,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:$i7(this,X)}):this.update({"tooltip-title":g.d4(G,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:$i7(this,X)});IM(G,this.element,this);G.createClientVe(this.element,this,62946);this.GT()}; $i7=function(G,X){return G.U.G("delhi_modern_web_player_icons")?{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:X?{D:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},K:[{D:"g",L:{transform:"translate(96, -96) scale(0.8)"},K:[{D:"path",tW:!0,L:{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"}}]}]}:sz()}; lW=function(G,X,Q,R,S,Z){Z=Z===void 0?!1:Z;var H={D:"div",aU:["ytp-input-slider-section"],K:[{D:"input",X:"ytp-input-slider",L:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};S&&H.K.unshift(S);Z&&H.aU.push("ytp-vertical-slider");g.f.call(this,H);this.V=G;this.S=X;this.T=Q;this.initialValue=R;this.header=S;this.W=this.VH("ytp-input-slider");this.N=R?R:G;this.init();this.B(this.W,"input",this.Y);this.B(this.W,"keydown", this.J)}; BG=function(G,X){G.N=X;G.updateValue("slidervalue",G.N);G.W.valueAsNumber=G.N;bge(G,X)}; bge=function(G,X){G.W.style.setProperty("--yt-slider-shape-gradient-percent",(X-G.V)/(G.S-G.V)*100+"%")}; Fi=function(G){var X=G.isMuted()?0:G.getVolume();lW.call(this,0,100,1,X,void 0,!0);this.U=G;this.AT=tj(this.Yc,10,this);this.j=!1;this.B(G,"onVolumeChange",this.onVolumeChange);this.B(this.element,"wheel",this.yH)}; vjC=function(G,X){g.f.call(this,{D:"div",L:{tabindex:"0",title:G.G("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},aU:["ytp-volume-popover"]});var Q=this;this.isVisible=!1;this.tooltip=X.JS();this.W=new Fi(G);g.d(this,this.W);this.W.s_(this.element);this.N=new g.fU(function(){CG(Q,!1)},300); this.listen("mouseenter",function(){Q.N.stop()}); this.listen("mouseleave",function(){Q.N.start()}); this.listen("focus",function(){Q.N.stop()}); this.B(this.W.W,"focus",function(){Q.N.stop()}); this.listen("focusout",function(){Q.N.start();Q.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.VY(X.JS(),this.element));g.d(this,this.N)}; CG=function(G,X){G.element.classList.toggle("ytp-volume-popover-hovering",X);G.isVisible=X;(G=G.element.closest(".ytp-chrome-bottom"))&&G.classList.toggle("ytp-volume-popover-showing",X)}; t2=function(G,X,Q){Q=Q===void 0?!1:Q;var R=G.Z().QH?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:G.G("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};R=G.G("delhi_modern_web_player")?{D:"div",X:"ytp-mute-button",K:[{D:"button",L:R,aU:["ytp-volume-icon", "ytp-button"],WM:"{{icon}}"}]}:{D:"button",aU:["ytp-mute-button","ytp-button"],L:R,K:[{D:"div",X:"ytp-volume-icon",WM:"{{icon}}"}]};g.f.call(this,R);this.U=G;this.IU=Q;this.W=null;this.J=this.Yc=this.j=this.T=NaN;this.Mi=this.AT=null;this.S=[];this.V=[];this.visible=!1;this.Y=this.N=this.yH=null;G.G("delhi_modern_web_player")&&this.update({"data-priority":4});Q=this.U.Z();this.updateValue("icon",Ez());this.tooltip=X.JS();this.updateValue("dataTooltipOffsetY",0);this.Y=g.hj("ytp-volume-icon",this.element); R=this.U.G("delhi_modern_web_player_icons")?{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",aU:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],L:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{D:"path",X:"ytp-svg-volume-animation-small-ripple",L:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{D:"path",X:"ytp-svg-volume-animation-big-ripple",L:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"defs",K:[{D:"clipPath",L:{id:"ytp-svg-volume-animation-mask"},K:[{D:"path",L:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",L:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",X:"ytp-svg-volume-animation-mover",L:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",L:{id:"ytp-svg-volume-animation-slash-mask"},K:[{D:"path",X:"ytp-svg-volume-animation-mover", L:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",tW:!0,aU:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],L:{"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",tW:!0,aU:["ytp-svg-fill","ytp-svg-volume-animation-hider"],L:{"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"}}]};this.W=new g.XX(R);g.d(this,this.W);this.AT=this.W.VH("ytp-svg-volume-animation-speaker");this.Mi=this.AT.getAttribute("d");this.S=g.qP("ytp-svg-volume-animation-mover",this.W.element);this.U.G("delhi_modern_web_player_icons");this.V=g.qP("ytp-svg-volume-animation-hider",this.W.element);this.U.G("delhi_modern_web_player_icons");this.QH=new AE;g.d(this,this.QH);this.DC=new AE;g.d(this,this.DC);this.B(G,"appresize",this.yZ);this.B(G,"onVolumeChange",this.onVolumeChange);G.G("delhi_modern_web_player")? this.listen("click",this.kF_):this.listen("click",this.cw);Q.QH?(G.G("delhi_modern_web_player")&&!G.G("delhi_modern_web_player_horizontal_volume_controls")&&(this.N=new vjC(G,X),this.N.s_(this.element),g.d(this,this.N),this.B(this.Y,"mouseover",this.Ng),this.B(this.Y,"focus",this.Ng),this.B(this.Y,"mouseout",this.JV),this.B(this.Y,"blur",this.JV)),Q=G.G("delhi_modern_web_player")?this.Y:this.element,this.addOnDisposeCallback(g.VY(X.JS(),Q))):Jb7(this);this.message=null;G.createClientVe(this.element, this,28662);this.yZ(G.mp().getPlayerSize());this.setVolume(G.getVolume(),G.isMuted())}; igV=function(G,X){if(G.U.Z().QH){var Q=g.d4(G.U,"Mute","m"),R=g.d4(G.U,"Unmute","m");Q=X?R:Q;G.U.Z().G("player_tooltip_data_title_killswitch")?G.updateValue("title",Q):G.update({"tooltip-title":Q,"aria-label":Q});G.update({"data-title-no-tooltip":X?"Unmute":"Mute"});G.tooltip.dZ()}}; Q4X=function(G,X){G.T=X;var Q=G.Mi;G.U.G("delhi_modern_web_player_icons")?G.W.VH("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(X+") translate(-22,-12)")):X&&(Q+=Hui(GF0,X7w,X));G.AT.setAttribute("d",Q)}; R67=function(G,X){var Q;X===1?Q=G.U.G("delhi_modern_web_player_icons")?{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:Ez():Q=G.W;G.Yc=X;if(G.U.G("delhi_modern_web_player_icons"))G.W.VH("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-X+") translate(-18,-12)")),G.W.VH("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(G.T-X+") translate(-22, -12)"));else{for(var R=20*X,S=0;S=3&&G.U.getPresentingPlayerType()!==2}; h67=function(G){var X=fC(G.U.p7());return X?G.N?X.MW():X.EW():!1}; H8X=function(G){var X={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},Q=G.playlist!=null&&G.playlist.MW();Q=g.D0(G.U)&&(!G.N||Q);var R=G.N&&g.bG(G.U),S=h67(G),Z=G.N&&G.U.getPresentingPlayerType()===5,H=g.d4(G.U,"Next","SHIFT+n"),w=g.d4(G.U,"Previous","SHIFT+p");if(Z)X.title="Start video",X["tooltip-title"]="Start video";else if(G.Y)X.title="Replay",X["tooltip-title"]="Replay";else if(Q){var h=null;G.playlist&&(h= g.mg(G.playlist,G.N?buZ(G.playlist):v9T(G.playlist)));if(h){if(h.videoId){var L=G.playlist.listId;X.url=G.U.Z().getVideoUrl(h.videoId,L?L.toString():void 0)}X.text=h.title;X.duration=h.lengthText?h.lengthText:h.lengthSeconds?g.sX(h.lengthSeconds):null;X.preview=h.yJ("mqdefault.jpg")}G.N?(X.title=H,X["tooltip-title"]=H,X["data-title-no-tooltip"]="Next",X["aria-keyshortcuts"]="SHIFT+n"):(X.title=w,X["tooltip-title"]=w,X["data-title-no-tooltip"]="Previous",X["aria-keyshortcuts"]="SHIFT+p")}else if(R){if(w= (h=G.videoData)==null?void 0:g.KL(h))X.url=w.Iu(),X.text=w.title,X.duration=w.lengthText?w.lengthText:w.lengthSeconds?g.sX(w.lengthSeconds):null,X.preview=w.yJ("mqdefault.jpg");X.title=H;X["tooltip-title"]=H;X["data-title-no-tooltip"]="Next";X["aria-keyshortcuts"]="SHIFT+n"}X.disabled=!R&&!Q&&!S&&!Z;G.update(X);G.J=!!X.url;R||Q||G.Y||S||Z?G.W||(G.W=g.VY(G.tooltip,G.element),G.S=G.listen("click",G.onClick,G)):G.W&&(G.W(),G.W=null,G.Ds(G.S),G.S=null);G.tooltip.dZ();g.S_(G.element,"ytp-playlist-ui", G.N&&(Q||G.U.G("web_hide_next_button")))}; Z8G=function(G,X){return G?X?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:ob():X?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:zNi()}; kFC=function(G,X){g.f.call(this,{D:"div",X:"ytp-fine-scrubbing",K:[{D:"div",X:"ytp-fine-scrubbing-draggable",K:[{D:"div",X:"ytp-fine-scrubbing-thumbnails",L:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{D:"div",L:{"aria-hidden":"true"},X:"ytp-fine-scrubbing-cursor"},{D:"div",X:"ytp-fine-scrubbing-seek-time",L:{"aria-hidden":"true"}, WM:"{{seekTime}}"},{D:"div",X:"ytp-fine-scrubbing-play",K:[G.G("delhi_modern_web_player_icons")?KD():TD()],L:{title:"Play from this position",role:"button"}},{D:"div",X:"ytp-fine-scrubbing-dismiss",K:[g.YC()],L:{title:"Exit precise seeking",role:"button"}}]});var Q=this;this.api=G;this.S=this.VH("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.VH("ytp-fine-scrubbing-dismiss");this.Yc=this.VH("ytp-fine-scrubbing-draggable");this.playButton=this.VH("ytp-fine-scrubbing-play");this.thumbnails= [];this.W=[];this.IU=this.N=0;this.QH=void 0;this.AT=NaN;this.SA=this.j=this.Y=this.T=0;this.V=[];this.interval=this.frameCount=0;this.J=160;this.scale=1;this.CO=0;this.isEnabled=this.Mi=!1;L1i(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.VY(X,this.dismissButton));this.addOnDisposeCallback(g.VY(X,this.playButton));this.DC=new g.Fo(this.Yc,!0);this.DC.subscribe("dragstart",this.Kw,this);this.DC.subscribe("dragmove",this.ZP,this);this.DC.subscribe("dragend",this.oO,this);this.B(G,"SEEK_COMPLETE", this.UB);G.G("web_fix_fine_scrubbing_false_play")&&this.B(G,"rootnodemousedown",function(R){Q.yH=R}); this.S.addEventListener("keydown",function(){}); g.d(this,this.DC);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; L1i=function(G,X){var Q=g.sX(X),R=g.QM("Seek to $PROGRESS",{PROGRESS:g.sX(X,!0)});G.update({ariamin:0,ariamax:Math.floor(G.api.getDuration()),arianow:Math.floor(X),arianowtext:R,seekTime:Q})}; YsU=function(G){G.AT=NaN;G.j=0;G.T=G.Y}; m_G=function(G){var X=G.api.tR();if(X){var Q=90*G.scale,R=H4(X,160*G.scale);if(X=X.levels[R]){G.J=X.width;if(!G.V.length){R=[];for(var S=qL(X,X.m$()),Z=X.columns*X.rows,H=X.frameCount,w=0;w<=S;w++)for(var h=HG.V.length;)R= void 0,(R=G.thumbnails.pop())==null||R.dispose();for(;G.thumbnails.lengthQ.length;)R=void 0,(R=G.W.pop())==null||R.dispose(); for(;G.W.length-Q?-X/Q*G.interval*.5:-(X+Q/2)/Q*G.interval}; odl=function(G){return-((G.S.offsetWidth||(G.frameCount-1)*G.J*G.scale)-G.N/2)}; j4l=function(){g.f.call(this,{D:"div",X:"ytp-fine-scrubbing-thumbnail"})}; MHl=function(){g.f.call(this,{D:"div",X:"ytp-fine-scrubbing-chapter-title",K:[{D:"div",X:"ytp-fine-scrubbing-chapter-title-content",WM:"{{chapterTitle}}"}]})}; PRi=function(G){g.f.call(this,{D:"div",X:"ytp-heat-map-chapter",K:[{D:"svg",X:"ytp-heat-map-svg",L:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},K:[{D:"defs",K:[{D:"clipPath",L:{id:"{{id}}"},K:[{D:"path",X:"ytp-heat-map-path",L:{d:"",fill:"white"}}]},{D:"linearGradient",L:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},K:[{D:"stop",L:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{D:"stop",L:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{D:"rect",X:"ytp-heat-map-graph",L:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",X:"ytp-heat-map-hover",L:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",X:"ytp-heat-map-play",L:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{D:"path",X:"ytp-modern-heat-map",L:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=G;this.T=this.VH("ytp-heat-map-svg");this.S=this.VH("ytp-heat-map-path");this.V=this.VH("ytp-heat-map-graph");this.J=this.VH("ytp-heat-map-play");this.N=this.VH("ytp-heat-map-hover");this.Y=this.VH("ytp-modern-heat-map");this.eG=!1;this.W=60;G=""+g.wH(this);this.update({id:G});G="url(#"+G+")";this.V.setAttribute("clip-path",G);this.J.setAttribute("clip-path",G);this.N.setAttribute("clip-path",G)}; s4V=function(G,X){X>0&&(G.W=X,G.T.style.height=G.W+"px")}; WG=function(){g.f.call(this,{D:"div",X:"ytp-chapter-hover-container",K:[{D:"div",X:"ytp-progress-bar-padding"},{D:"div",X:"ytp-progress-list",K:[{D:"div",aU:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",X:"ytp-progress-linear-live-buffer"},{D:"div",X:"ytp-load-progress"},{D:"div",X:"ytp-hover-progress"},{D:"div",X:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.W=this.VH("ytp-progress-list");this.S=this.VH("ytp-progress-linear-live-buffer"); this.V=this.VH("ytp-ad-progress-list");this.J=this.VH("ytp-load-progress");this.T=this.VH("ytp-play-progress");this.Y=this.VH("ytp-hover-progress");this.N=this.VH("ytp-chapter-hover-container")}; pG=function(G,X){g.DN(G.N,"width",X)}; TM0=function(G,X){g.DN(G.N,"margin-right",X+"px")}; K1y=function(){this.W=this.position=this.Y=this.N=this.V=this.width=NaN}; e6e=function(){g.f.call(this,{D:"div",X:"ytp-timed-marker"});this.N=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.fG=function(G,X){g.Sa.call(this,{D:"div",X:"ytp-progress-bar-container",L:{"aria-disabled":"true"},K:[{D:"div",aU:["ytp-heat-map-container"],K:[{D:"div",X:"ytp-heat-map-edu"}]},{D:"div",aU:["ytp-progress-bar"],L:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},K:[{D:"div",X:"ytp-chapters-container"},{D:"div",X:"ytp-timed-markers-container"},{D:"div",X:"ytp-clip-start-exclude"}, {D:"div",X:"ytp-clip-end-exclude"},{D:"div",X:"ytp-scrubber-container",K:[{D:"div",aU:["ytp-scrubber-button","ytp-swatch-background-color"],K:[{D:"div",X:"ytp-scrubber-pull-indicator"},{D:"img",aU:["ytp-decorated-scrubber-button"]}]}]}]},{D:"div",aU:["ytp-fine-scrubbing-container"],K:[{D:"div",X:"ytp-fine-scrubbing-edu"}]},{D:"div",X:"ytp-bound-time-left",WM:"{{boundTimeLeft}}"},{D:"div",X:"ytp-bound-time-right",WM:"{{boundTimeRight}}"},{D:"div",X:"ytp-clip-start",L:{title:"{{clipstarttitle}}"},WM:"{{clipstarticon}}"}, {D:"div",X:"ytp-clip-end",L:{title:"{{clipendtitle}}"},WM:"{{clipendicon}}"}]});this.api=G;this.hE=!1;this.Co=this.WK=this.cM=this.S=this.Nu=0;this.eI=null;this.lL=!1;this.CO={};this.F7={};this.clipEnd=Infinity;this.C7=this.VH("ytp-clip-end");this.Fq=new g.Fo(this.C7,!0);this.kS=this.VH("ytp-clip-end-exclude");this.Xq=this.VH("ytp-clip-start-exclude");this.clipStart=0;this.Js=this.VH("ytp-clip-start");this.hS=new g.Fo(this.Js,!0);this.AT=this.As=0;this.progressBar=this.VH("ytp-progress-bar");this.Hs= {};this.wb={};this.BM=this.VH("ytp-chapters-container");this.f4=this.VH("ytp-timed-markers-container");this.N=[];this.J=[];this.Ge={};this.gL=null;this.Mi=-1;this.N9=this.QH=0;this.fd=this.T=null;this.qd=this.VH("ytp-scrubber-button");this.Yc=this.VH("ytp-decorated-scrubber-button");this.nu=this.VH("ytp-scrubber-container");this.bB=new g.Db;this.l9=0;this.Sa=new K1y;this.Y=new zo(0,0);this.sM=null;this.j=this.rS=!1;this.bE=null;this.yH=this.VH("ytp-heat-map-container");this.bf=this.VH("ytp-heat-map-edu"); this.V=[];this.heatMarkersDecorations=[];this.KO=this.VH("ytp-fine-scrubbing-container");this.Mj=this.VH("ytp-fine-scrubbing-edu");this.W=void 0;this.IU=this.ze=this.SA=!1;this.tooltip=X.JS();this.addOnDisposeCallback(g.VY(this.tooltip,this.C7));g.d(this,this.Fq);this.Fq.subscribe("hoverstart",this.hm,this);this.Fq.subscribe("hoverend",this.xT,this);this.B(this.C7,"click",this.Z_);this.addOnDisposeCallback(g.VY(this.tooltip,this.Js));g.d(this,this.hS);this.hS.subscribe("hoverstart",this.hm,this); this.hS.subscribe("hoverend",this.xT,this);this.B(this.Js,"click",this.Z_);ry0(this);this.B(G,"resize",this.EM);this.B(G,"presentingplayerstatechange",this.b$);this.B(G,"videodatachange",this.hC);this.B(G,"videoplayerreset",this.je);this.B(G,"cuerangesadded",this.H4O);this.B(G,"cuerangesremoved",this.lJc);this.B(G,"onLoopRangeChange",this.WE);this.B(G,"innertubeCommand",this.onClickCommand);this.B(G,"onRetroModeChanged",this.j6B);this.B(G,g.Dy("timedMarkerCueRange"),this.QtT);this.B(G,"updatemarkervisibility", this.s8);this.B(G,"serverstitchedvideochange",this.Yd_);this.updateVideoData(G.getVideoData(),!0);this.WE(G.getLoopRange());ym(this)&&!this.W&&(this.W=new kFC(this.api,this.tooltip),G=g.iE(this.element).x||0,this.W.EM(G,this.S),this.W.s_(this.KO),g.d(this,this.W),this.B(this.W.dismissButton,"click",this.MN),this.B(this.W.playButton,"click",this.PJ),this.B(this.W.element,"dblclick",this.PJ));this.api.createClientVe(this.yH,this,139609,!0);this.api.createClientVe(this.bf,this,140127,!0);this.api.createClientVe(this.Mj, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; ry0=function(G){if(G.N.length===0){var X=new WG;G.N.push(X);g.d(G,X);X.s_(G.BM,0)}for(;G.N.length>1;)G.N.pop().dispose();pG(G.N[0],"100%");G.N[0].startTime=0;G.N[0].title=""}; avl=function(G){var X=X===void 0?NaN:X;var Q=new PRi(G.api);G.V.push(Q);g.d(G,Q);Q.s_(G.yH);X>=0&&(Q.element.style.width=X+"px")}; EdG=function(G){for(;G.J.length;)G.J.pop().dispose()}; O8U=function(G){var X,Q,R,S,Z;return(Z=g.y((S=g.y((X=G.getWatchNextResponse())==null?void 0:(Q=X.playerOverlays)==null?void 0:(R=Q.playerOverlayRenderer)==null?void 0:R.decoratedPlayerBarRenderer,bp))==null?void 0:S.playerBar,x_0))==null?void 0:Z.chapters}; z6C=function(G){for(var X=G.N,Q=[],R=0;R=H&&r<=k&&Z.push(M)}h>0&&(G.yH.style.height=h+"px");H=G.V[R];k=Z;M=S;u=h;r=R===0;r=r===void 0?!1:r;s4V(H,u);Y=k;m=H.W;r=r===void 0?!1:r;var x=1E3/Y.length,c=[];c.push({x:0,y:100});for(var z=0;z0&&(Q=Z[Z.length-1])}g.DZ(G);w=[];X=g.e(X.heatMarkersDecorations||[]);for(S=X.next();!S.done;S=X.next())if(S=g.y(S.value,CRG))h=S.label,R=Q=L=void 0,w.push({visibleTimeRangeStartMillis:(L=S.visibleTimeRangeStartMillis)!=null?L:-1,visibleTimeRangeEndMillis:(Q=S.visibleTimeRangeEndMillis)!=null?Q:-1,decorationTimeMillis:(R=S.decorationTimeMillis)!=null?R:NaN,label:h?g.q1(h):""});G.heatMarkersDecorations=w}}; U_7=function(G,X){G.J.push(X);g.d(G,X);X.s_(G.f4,G.f4.children.length)}; lvC=function(G,X){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var R=NF(G,Q.timeRangeStartMillis/(G.Y.N*1E3),A2(G)),S=G.api.G("delhi_modern_web_player")?.667:.6;g.DN(Q.element,"transform","translateX("+R+"px) scaleX("+S+")")}}; cyl=function(G,X){var Q=0,R=!1;X=g.e(X);for(var S=X.next();!S.done;S=X.next()){S=S.value;if(g.y(S,VH7)){S=g.y(S,VH7);var Z={startTime:NaN,title:null,onActiveCommand:void 0},H=S.title;Z.title=H?g.q1(H):"";H=S.timeRangeStartMillis;H!=null&&(Z.startTime=H);Z.onActiveCommand=S.onActiveCommand;S=Z;Q===0&&S.startTime!==0&&(G.N[Q].startTime=0,G.N[Q].title="",G.N[Q].onActiveCommand=S.onActiveCommand,Q++,R=!0);G.N.length<=Q&&(Z=new WG,G.N.push(Z),g.d(G,Z),Z.s_(G.BM,G.BM.children.length));G.N[Q].startTime= S.startTime;G.N[Q].title=S.title?S.title:"";G.N[Q].onActiveCommand=S.onActiveCommand;G.N[Q].index=R?Q-1:Q}Q++}for(;Q=0;R--)if(G.N[R].width>0){TM0(G.N[R],0);var S=Math.floor(G.N[R].width);G.N[R].width=S;pG(G.N[R],S+"px");break}G.N[Q].width=0;pG(G.N[Q],"0")}else Q===G.N.length-1?(R=Math.floor(G.N[Q].width+X),G.N[Q].width=R,pG(G.N[Q],R+"px")):(X=G.N[Q].width+X,R=Math.round(X),X-=R,G.N[Q].width=R,pG(G.N[Q],R+"px"));Q=0;if(G.V.length===G.N.length)for(X=0;X< G.V.length;X++)R=G.N[X].width,G.V[X].element.style.width=R+"px",G.V[X].element.style.left=Q+"px",Q+=R+$2(G);G.api.G("delhi_modern_web_player")&&(G.N.length===1?G.N[0].W.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(G.N[0].W.classList.remove("ytp-progress-bar-end"),G.N[0].W.classList.add("ytp-progress-bar-start"),G.N[G.N.length-1].W.classList.add("ytp-progress-bar-end")))}; IvS=function(G,X){var Q=0,R=!1,S=G.N.length,Z=G.Y.N*1E3;Z===0&&(Z=G.api.getProgressState().seekableEnd*1E3);if(Z>0&&G.S>0){for(var H=G.S-$2(G)*G.QH,w=G.N9===0?3:H*G.N9,h=g.e(G.N),L=h.next();!L.done;L=h.next())L.value.width=0;for(;Q1);L=(Z===0?0:h/Z*H)+G.N[Q].width;if(L>w)G.N[Q].width=L;else{G.N[Q].width=0;var k=G,Y=Q,M=k.N[Y-1];M!==void 0&&M.width>0? M.width+=L:YG.N9&&(G.N9=h/Z),R=!0)}Q++}}return R}; nG=function(G){if(G.S){var X=G.api.getProgressState(),Q=G.api.getVideoData();if(!(Q&&Q.enableServerStitchedDai&&Q.RP)||isFinite(X.current)){var R;if(((R=G.api.getVideoData())==null?0:uG(R))&&X.airingStart&&X.airingEnd)var S=bW(G,X.airingStart,X.airingEnd);else if(G.api.getPresentingPlayerType()===2){var Z,H,w;S=(Q=(S=G.api.getVideoData())==null?void 0:(Z=S.getPlayerResponse())==null?void 0:(H=Z.playerConfig)==null?void 0:(w=H.webPlayerConfig)==null?void 0:w.skippableAdProgressBarDuration)?bW(G,X.seekableStart, Q/1E3):bW(G,X.seekableStart,X.seekableEnd)}else S=bW(G,X.seekableStart,X.seekableEnd);Z=cV(S,X.loaded,0);X=cV(S,X.current,0);H=G.Y.W!==S.W||G.Y.N!==S.N;G.Y=S;vG(G,X,Z);H&&d_U(G);W1G(G)}}}; bW=function(G,X,Q){return p7T(G)?new zo(Math.max(X,G.sM.startTimeMs/1E3),Math.min(Q,G.sM.endTimeMs/1E3)):new zo(X,Q)}; fvG=function(G,X){var Q,R,S;X=g.y((Q=X.getWatchNextResponse())==null?void 0:(R=Q.playerOverlays)==null?void 0:(S=R.playerOverlayRenderer)==null?void 0:S.decoratedPlayerBarRenderer,bp);if(X==null?0:X.progressColor)for(Q=0;Q1){Q=J2(G,X.Y,!0);for(var R=0,S=0;S0&&(R+=G.N[S].width,R+=$2(G));Q=(G.N[Q].startTime+(X.Y-R)/G.N[Q].width*((Q===G.N.length-1?G.Y.N*1E3:G.N[Q+1].startTime)-G.N[Q].startTime))/1E3||0}return Q}; NMy=function(G,X){if(X<0)return"0";G=Math.floor(Math.min(X,G.api.getDuration())*1E3);return G>2147483647?"0":String(G)}; Gh=function(G,X,Q,R,S){X=NMy(G,X);Q=NMy(G,Q);G=G.progressBar.visualElement;R={seekData:{startMediaTimeMs:X,endMediaTimeMs:Q,seekSource:R}};(X=g.oU())&&bc(X,G,S,R)}; Ayl=function(G,X,Q){if(Q>=G.N.length)return!1;var R=G.S-$2(G)*G.QH;return Math.abs(X-G.N[Q].startTime/1E3)/G.Y.N*R<4}; d_U=function(G){G.qd.style.removeProperty("height");for(var X=g.e(Object.keys(G.CO)),Q=X.next();!Q.done;Q=X.next())ndU(G,Q.value);X6(G);vG(G,G.AT,G.As)}; A2=function(G){var X=G.bB.x;X=g.pT(X,0,G.S);G.Sa.update(X,G.S);return G.Sa}; Rp=function(G){return(G.j?135:90)-QU(G)}; QU=function(G){var X=48,Q=G.api.Z();G.api.G("delhi_modern_web_player")?X=G.api.getPlayerSize().width<=528?64:G.j?96:72:G.j?X=54:g.Jn(Q)&&!Q.W&&(X=40);return X}; vG=function(G,X,Q){G.AT=X;G.As=Q;var R=A2(G),S=G.Y.N,Z=h_7(G.Y,G.AT),H=g.QM("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.sX(Z,!0),DURATION:g.sX(S,!0)}),w=qF(G.N,Z*1E3);w=G.N[w].title;G.update({ariamin:Math.floor(G.Y.W),ariamax:Math.floor(S),arianow:Math.floor(Z),arianowtext:w?w+" "+H:H});S=G.clipStart;Z=G.clipEnd;G.sM&&G.api.getPresentingPlayerType()!==2&&(S=G.sM.startTimeMs/1E3,Z=G.sM.endTimeMs/1E3);S=cV(G.Y,S,0);w=cV(G.Y,Z,1);H=G.api.getVideoData();Z=g.pT(X,S,w);Q=(H==null?0:g.MY(H))?1:g.pT(Q, S,w);X=NF(G,X,R);g.DN(G.nu,"transform","translateX("+X+"px)");G.api.G("delhi_modern_web_player")&&G.api.G("delhi_modern_web_player_cutout")&&$_U(G,X);SI(G,R,S,Z,"PLAY_PROGRESS");(H==null?0:uG(H))?(X=G.api.getProgressState().seekableEnd)&&SI(G,R,Z,cV(G.Y,X),"LIVE_BUFFER"):SI(G,R,S,Q,"LOAD_PROGRESS");if(G.api.G("web_player_heat_map_played_bar")){var h;(h=G.V[0])!=null&&h.J.setAttribute("width",(Z*100).toFixed(2)+"%")}}; $_U=function(G,X){G.api.getPresentingPlayerType()!==1?G.BM.style.removeProperty("clip-path"):(X||(X=NF(G,G.AT,A2(G))),G.BM.style.clipPath='path("'+(G.lL?b8i(G,8,X,G.j?50:36,0,6):b8i(G,4,X,G.j?34:24,2,3))+'")')}; b8i=function(G,X,Q,R,S,Z){var H=Q-R/2;Q+=R/2;X+=S;return"M 0 "+S+" L 0 "+(X+" L ")+(H+" "+X+" C ")+(H+Z+" "+X+" "+(H+Z)+" "+S+" "+H+" "+S+" L 0 ")+(S+" M ")+(Q+" "+S+" L ")+(G.S+" "+S+" L ")+(G.S+" "+X+" L ")+(Q+" "+X+" C ")+(Q-Z+" "+X+" "+(Q-Z)+" "+S+" "+Q+" "+S)}; SI=function(G,X,Q,R,S){var Z=G.N.length,H=X.N-G.QH*$2(G),w=Q*H;Q=J2(G,w);var h=R*H;H=J2(G,h);S==="HOVER_PROGRESS"&&(H=J2(G,X.N*R,!0),h=X.N*R-vdi(G,X.N*R)*$2(G));R=Math.max(w-Jye(G,Q),0);for(w=Q;w=G.N.length)return G.S;for(var Q=0,R=0;R0||G.kS.clientWidth>0?(Z=X.clientWidth/Q,G=-1*G.Xq.clientWidth/Q):(Z/=Q,G=-1*G.N[S].element.offsetLeft/Q),g.DN(X,"background-size",Z+"px"),g.DN(X,"background-position-x",G+"px"))}; ZB=function(G,X,Q,R,S){S||G.api.Z().W?X.style.width=Q+"px":g.DN(X,"transform","scalex("+(R?Q/R:0)+")")}; J2=function(G,X,Q){var R=0;(Q===void 0?0:Q)&&(X-=vdi(G,X)*$2(G));Q=g.e(G.N);for(var S=Q.next();!S.done;S=Q.next()){S=S.value;if(X>S.width)X-=S.width;else break;R++}return R===G.N.length?R-1:R}; NF=function(G,X,Q){var R=X*G.Y.N*1E3;for(var S=-1,Z=g.e(G.N),H=Z.next();!H.done;H=Z.next())H=H.value,R>H.startTime&&H.width>0&&S++;R=S<0?0:S;S=Q.N-$2(G)*G.QH;return X*S+$2(G)*R+Q.V}; vdi=function(G,X){for(var Q=G.N.length,R=0,S=g.e(G.N),Z=S.next();!Z.done;Z=S.next())if(Z=Z.value,Z.width!==0)if(X>Z.width)X-=Z.width,X-=$2(G),R++;else break;return R===Q?Q-1:R}; g.XNG=function(G,X,Q,R){var S=G.S!==Q,Z=G.j!==R;G.Nu=X;G.S=Q;G.j=R;ym(G)&&(X=G.W)!=null&&(X.scale=R?1.5:1);d_U(G);G.N.length===1&&(G.N[0].width=Q||0);S&&g.DZ(G);G.W&&Z&&ym(G)&&(G.W.isEnabled&&(Q=G.j?135:90,R=Q-QU(G),G.KO.style.height=Q+"px",g.DN(G.yH,"transform","translateY("+-R+"px)"),g.DN(G.progressBar,"transform","translateY("+-R+"px)")),m_G(G.W))}; X6=function(G){var X=!!G.sM&&G.api.getPresentingPlayerType()!==2,Q=G.clipStart,R=G.clipEnd,S=!0,Z=!0;X&&G.sM?(Q=G.sM.startTimeMs/1E3,R=G.sM.endTimeMs/1E3):(S=Q>G.Y.W,Z=G.Y.N>0&&RG.AT);g.S_(G.qd,"ytp-scrubber-button-hover",Q===R&&G.N.length>1);if(G.api.G("web_player_heat_map_played_bar")){var Z;(Z=G.V[0])!=null&&Z.N.setAttribute("width",(X.W*100).toFixed(2)+"%")}}}; ndU=function(G,X){var Q=G.CO[X];X=G.F7[X];var R=A2(G),S=cV(G.Y,Q.start/1E3,0),Z=ecZ(Q,G.j)/R.width;var H=cV(G.Y,Q.end/1E3,1);Z!==Number.POSITIVE_INFINITY&&(S=g.pT(S,0,H-Z));H=Math.min(H,S+Z);Q.color&&(X.style.background=Q.color);Q=S;X.style.left=Math.max(Q*R.N+R.V,0)+"px";ZB(G,X,g.pT((H-Q)*R.N+R.V,0,R.width),R.width,!0)}; QuZ=function(G,X){var Q=X.getId();G.CO[Q]===X&&(g.Tt(G.F7[Q]),delete G.CO[Q],delete G.F7[Q])}; ym=function(G){var X=g.sB(G.api.Z())&&(G.api.G("web_shorts_pip")||G.api.G("web_watch_pip")),Q;return!((Q=G.api.getVideoData())==null?0:Q.isLivePlayback)&&!G.api.isMinimized()&&!G.api.isInline()&&(!G.api.TR()||!X)}; Hw=function(G){G.W&&(G.W.disable(),G.cM=0,G.yH.style.removeProperty("transform"),G.progressBar.style.removeProperty("transform"),G.KO.style.removeProperty("height"),G.element.parentElement&&G.element.parentElement.style.removeProperty("height"))}; REG=function(G,X){var Q=X/Rp(G)*QU(G);g.DN(G.progressBar,"transform","translateY("+-X+"px)");g.DN(G.yH,"transform","translateY("+-X+"px)");g.DN(G.KO,"transform","translateY("+Q+"px)");G.KO.style.height=X+Q+"px";G.element.parentElement&&(G.element.parentElement.style.height=QU(G)-Q+"px")}; S7Z=function(G,X){X?G.T||(G.element.removeAttribute("aria-disabled"),G.T=new g.Fo(G.progressBar,!0),G.api.G("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&G.T.subscribe("hoverstart",G.C9B,G),G.T.subscribe("hovermove",G.P9A,G),G.T.subscribe("hoverend",G.qYp,G),G.T.subscribe("dragstart",G.lsO,G),G.T.subscribe("dragmove",G.k1T,G),G.T.subscribe("dragend",G.G1p,G),G.api&&G.api.G("delhi_modern_web_player")&&G.api.G("delhi_modern_web_player_cutout")&&(G.fd=new g.Fo(G.progressBar, !0),G.fd.subscribe("hoverstart",function(){G.lL=!0;$_U(G)},G),G.fd.subscribe("hoverend",function(){G.lL=!1; $_U(G)},G)),G.bE=G.listen("keydown",G.vI)):G.T&&(G.element.setAttribute("aria-disabled","true"),G.Ds(G.bE),G.T.cancel(),G.T.dispose(),G.T=null)}; $2=function(G){return G.api.G("delhi_modern_web_player")?4:G.j?3:2}; p7T=function(G){var X;return!((X=G.sM)==null||!X.postId)&&G.api.getPresentingPlayerType()!==2}; q$=function(G,X){g.f.call(this,{D:"button",aU:["ytp-remote-button","ytp-button"],L:{title:G.G("player_tooltip_data_title_killswitch")?"Play on TV":"","data-tooltip-title":"Play on TV","aria-haspopup":"true","data-priority":"10"},WM:"{{icon}}"});this.U=G;this.gb=X;this.N=null;this.B(G,"onMdxReceiversChange",this.GT);this.B(G,"presentingplayerstatechange",this.GT);this.B(G,"appresize",this.GT);G.createClientVe(this.element,this,139118);this.GT();this.listen("click",this.W,this);IM(G,this.element,this)}; w3=function(G,X){g.f.call(this,{D:"button",aU:["ytp-button","ytp-settings-button"],L:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":GD(),title:G.G("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},K:[G.G("delhi_modern_web_player_icons")?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.rc()]});this.U=G;this.gb=X;this.W=!0;this.listen("click",this.Y);this.B(G,"onPlaybackQualityChange",this.updateBadge);this.B(G,"videodatachange",this.updateBadge);this.B(G,"webglsettingschanged",this.updateBadge);this.B(G,"appresize",this.N);IM(G,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.N(G.mp().getPlayerSize())}; Z2C=function(G,X){G.W=!!X;G.N(G.U.mp().getPlayerSize())}; hM=function(G,X){TT.call(this,"Annotations",g.OE.O8);this.U=G;this.gb=X;this.N=!1;G.G("web_settings_menu_icons")&&(X=G.G("delhi_modern_web_player_icons")?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{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.setIcon(X));this.B(G,"videodatachange",this.GT);this.B(G,"onApiChange",this.GT);this.subscribe("select",this.onSelect,this);this.GT()}; LI=function(G,X,Q){g.U8.call(this,"Audio track",g.OE.AUDIO,G,X);this.U=G;this.W=Q;this.tracks={};g.Gk(this.element,"ytp-audio-menu-item");this.countLabel=new g.f({D:"div",K:[{D:"span",WM:"Audio track"},{D:"span",X:"ytp-menuitem-label-count",WM:"{{content}}"}]});G.G("web_settings_menu_icons")&&!this.U.G("html5_enable_new_audio_settings_menu")&&(X=G.G("delhi_modern_web_player_icons")?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:ELS(),this.setIcon(X));g.d(this,this.countLabel);g.Hv(this,this.countLabel);this.B(G,"videodatachange",this.GT);this.B(G,"onPlaybackAudioChange",this.GT);this.GT()}; H2X=function(G,X){g.qz.call(this,g.wU({"aria-haspopup":"true"},["ytp-audio-menu-item"]),g.OE.Tu);this.U=G;this.gb=X;g.Gk(this.element,"ytp-audio-menu-item");this.JW=new g.K5(G,void 0,"Audio");this.countLabel=new g.f({D:"div",K:[{D:"span",WM:"Audio"},{D:"span",X:"ytp-menuitem-label-count",WM:"{{content}}"}]});G.G("web_settings_menu_icons")&&this.setIcon({D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.ai=new LI(G,this.gb,this);g.d(this,this.ai);this.B(G,"settingsMenuInitialized",this.RC.bind(this));this.B(G,"videodatachange",this.RC.bind(this));g.d(this,this.countLabel);g.Hv(this,this.countLabel);this.gb.jj(this);this.B(G,"onPlaybackAudioChange",this.zJ);this.B(G,"audiopreferencechange",this.zJ);this.listen("keydown",this.vI);this.listen("click",this.open)}; kb=function(G,X){TT.call(this,"Autoplay",g.OE.LA);this.U=G;this.gb=X;this.N=!1;this.W=[];this.B(G,"presentingplayerstatechange",this.RC);this.subscribe("select",this.onSelect,this);G.createClientVe(this.element,this,113682);this.RC()}; q7i=function(G,X){g.qz.call(this,g.wU({"aria-haspopup":"false"}),0,"More options");this.U=G;this.gb=X;this.B(this.element,"click",this.onClick);this.gb.jj(this)}; wNT=function(G,X){var Q;g.sB(G.Z())&&(Q={D:"div",X:"ytp-panel-footer-content",K:[{D:"span",WM:"Adjust download quality from your "},{D:"a",X:"ytp-panel-footer-content-link",WM:"Settings",L:{href:"/account_downloads"}}]});g.U8.call(this,"Quality",g.OE.EB,G,X,void 0,void 0,Q);this.U=G;this.yH={};this.J={};this.W={};this.Yc=new Set;this.N=this.V=!1;this.S="unknown";this.j="";this.AT=new g.VB;g.d(this,this.AT);this.V=this.U.G("web_player_use_new_api_for_quality_pullback");this.N=this.U.G("web_player_enable_premium_hbr_playback_cap"); G.G("web_settings_menu_icons")&&(X=G.G("delhi_modern_web_player_icons")?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{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"}}]},this.setIcon(X));g.Gk(this.JW.element,"ytp-quality-menu");this.B(G,"videodatachange",this.RC);this.B(G,"videoplayerreset",this.RC);this.B(G,"onPlaybackQualityChange",this.kA);this.RC();G.createClientVe(this.element,this,137721)}; LmU=function(G,X,Q){var R=G.yH[X],S=g.FZ[X];return hEw(G,R?R.qualityLabel:S?S+"p":"Auto",X,Q)}; kbV=function(G,X,Q,R,S){var Z=(X=G.N?G.W[X]:G.J[X])&&X.quality,H=X&&X.qualityLabel;H=H?H:"Auto";R&&(H="("+H);G=hEw(G,H,Z||"",S);R&&G.K.push(")");(R=(R=X&&X.paygatedQualityDetails)&&R.paygatedIndicatorText)&&Q&&G.K.push({D:"div",X:"ytp-premium-label",WM:R});return G}; hEw=function(G,X,Q,R){X={D:"span",aU:R,K:[X]};var S;R="ytp-swatch-color";if(G.V||G.N)R="ytp-swatch-color-white";Q==="highres"?S="8K":Q==="hd2880"?S="5K":Q==="hd2160"?S="4K":Q.indexOf("hd")===0&&Q!=="hd720"&&(S="HD");S&&(X.K.push(" "),X.K.push({D:"sup",X:R,WM:S}));return X}; Yb=function(G){lW.call(this,G.getAvailablePlaybackRates()[0],G.getAvailablePlaybackRates()[G.getAvailablePlaybackRates().length-1],.05,G.getPlaybackRate(),{D:"div",X:"ytp-speedslider-indicator-container",K:[{D:"div",X:"ytp-speedslider-badge"},{D:"p",X:"ytp-speedslider-text"}]});this.U=G;this.AT=tj(this.Yc,50,this);g.Gk(this.W,"ytp-speedslider");this.j=this.VH("ytp-speedslider-text");this.yH=this.VH("ytp-speedslider-badge");Y7e(this);this.B(this.W,"change",this.DC)}; Y7e=function(G){G.j.textContent=G.N.toFixed(2)+"x";var X=G.N>2&&G.U.G("enable_web_premium_varispeed");G.yH.classList.toggle("ytp-speedslider-premium-badge",X);G.yH.setAttribute("aria-label",X?"Premium":"")}; jI=function(G,X,Q,R,S,Z,H){g.f.call(this,{D:"div",X:"ytp-slider-section",L:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{D:"div",X:"ytp-slider",K:[{D:"div",X:"ytp-slider-handle"}]}]});this.T=G;this.j=X;this.W=Q;this.Y=R;this.AT=S;this.Mi=Z;this.range=this.Y-this.W;this.QH=this.VH("ytp-slider-section");this.V=this.VH("ytp-slider");this.yH=this.VH("ytp-slider-handle");this.J=new g.Fo(this.V, !0);this.N=H?H:Q;g.d(this,this.J);this.J.subscribe("dragmove",this.M7,this);this.B(this.element,"keydown",this.pF);this.B(this.element,"wheel",this.V4);this.init()}; M$=function(G){jI.call(this,.05,.05,G.getAvailablePlaybackRates()[0],G.getAvailablePlaybackRates()[G.getAvailablePlaybackRates().length-1],150,20,G.getPlaybackRate());this.U=G;this.S=g.ml("P");this.DC=tj(this.Yc,50,this);g.Gk(this.V,"ytp-speedslider");g.Gk(this.S,"ytp-speedslider-text");G=this.S;var X=this.V;X.parentNode&&X.parentNode.insertBefore(G,X.nextSibling);juw(this);this.B(this.U,"onPlaybackRateChange",this.updateValues)}; juw=function(G){G.S.textContent=M7V(G,G.N)+"x"}; M7V=function(G,X){G=Number(g.pT(X,G.W,G.Y).toFixed(2));X=Math.floor((G+.001)*100%5+2E-15);var Q=G;X!==0&&(Q=G-X*.01);return Number(Q.toFixed(2))}; mu0=function(G){g.Sa.call(this,{D:"div",X:"ytp-speedslider-component"});G.G("web_settings_use_input_slider")?this.N=new Yb(G):this.N=new M$(G);g.d(this,this.N);this.element.appendChild(this.N.element)}; oZS=function(G){var X=new mu0(G);TG.call(this,G,X,"Custom");g.d(this,X)}; Pk0=function(G,X){var Q=new oZS(G);g.U8.call(this,"Playback speed",g.OE.LZ,G,X,mV(G)?void 0:"Custom",mV(G)?void 0:function(){g.a5(X,Q)}); var R=this;this.V=!1;g.d(this,Q);this.J=new Yb(G);g.d(this,this.J);if(G.G("web_settings_menu_icons")){var S=G.G("delhi_modern_web_player_icons")?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{D:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{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.setIcon(S)}this.U=G;this.V=!1;this.AT=null;mV(G)?(this.N=g.QM("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.S=this.U.getPlaybackRate()):this.S=this.N=null;var Z,H,w,h;this.yH=(Z=this.U.getVideoData())==null?void 0:(H=Z.getWatchNextResponse())==null?void 0:(w=H.playerOverlays)==null?void 0:(h=w.playerOverlayRenderer)==null?void 0:h.showPlaybackRateUpsellPanelCommand;uvU(G,this.yH)?this.W=op(4):this.W=null;this.j=this.U.getAvailablePlaybackRates(); this.B(G,"presentingplayerstatechange",this.GT);var L;((L=this.U.getVideoData())==null?0:L.Yr())&&this.B(G,"serverstitchedvideochange",this.GT);this.B(this.J.W,"change",function(){R.V=!0;R.GT()}); this.GT()}; su0=function(G,X){var Q=op(X);G.N&&(G.V||X===G.S)?(G.mI(G.N),G.wM(X.toString())):G.mI(Q)}; KmG=function(G){var X=G.j.map(op);G.W&&X.push(G.W);G.gJ(X);G.N=null;G.S=null;X=G.U.getPlaybackRate();mV(G.U)&&TYG(G,X);!G.j.includes(X)||G.V?G.mI(G.N):G.mI(op(X))}; TYG=function(G,X){G.S=X;G.N=g.QM("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:X.toString()});X=G.j.map(op);X.unshift(G.N);G.W&&X.push(G.W);G.gJ(X)}; eEe=function(G,X,Q,R){Q=new g.qz({D:"div",aU:["ytp-menuitem"],L:{tabindex:"0",role:"menuitemradio","aria-checked":R?"true":"false"},K:[{D:"div",aU:["ytp-menuitem-label"],K:[{D:"div",aU:["ytp-menuitem-container-with-badge"],K:[{D:"div",WM:"{{label}}"},{D:"div",aU:["ytp-menuitem-premium-badge"]}]}]}]},Q,G.jN(X));Q.listen("click",function(){G.oN(X)}); return Q}; op=function(G){return G.toString()}; mV=function(G){return G.G("web_settings_menu_surface_custom_playback")}; uvU=function(G,X){return!!X&&G.getAvailablePlaybackRates()[G.getAvailablePlaybackRates().length-1]<=2}; ray=function(G){return G.G("web_settings_menu_surface_custom_playback")&&G.G("web_settings_use_input_slider")}; EZZ=function(G,X,Q,R){var S=new g.K5(X,void 0,"Video Override");g.U8.call(this,R.text||"",G,X,Q,"Video Override",function(){g.a5(Q,S)}); var Z=this;g.Gk(this.element,"ytp-subtitles-options-menu-item");this.setting=R.option.toString();G=R.options;this.settings=g.JO(G,this.J9,this);this.V=S;g.d(this,this.V);X=new g.qz({D:"div",X:"ytp-menuitemtitle",WM:"Allow for a different caption style if specified by the video."},0);g.d(this,X);this.V.jj(X,!0);this.W=new g.qz({D:"div",X:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},K:[{D:"div",X:"ytp-menuitem-label",WM:"On"}]},-1);g.d(this,this.W);this.V.jj(this.W,!0);this.B(this.W.element, "click",function(){aHy(Z,!0)}); this.N=new g.qz({D:"div",X:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},K:[{D:"div",X:"ytp-menuitem-label",WM:"Off"}]},-2);g.d(this,this.N);this.V.jj(this.N,!0);this.B(this.N.element,"click",function(){aHy(Z,!1)}); this.gJ(g.P1(G,this.J9))}; aHy=function(G,X){G.publish("settingChange",G.setting+"Override",!X);G.gb.jc()}; ur=function(G,X){g.K5.call(this,G,void 0,"Options");var Q=this;this.t0={};for(var R=0;R=0);if(!(X<0||X===G.V)){G.V=X;X=243*G.scale;var Q=141*G.scale,R=Nkw(G.W,G.V,X);pyV(G.bg,R,X,Q,!0);G.yH.start()}}; Gpi=function(G){var X=G.N;G.type===3&&G.Yc.stop();G.api.removeEventListener("appresize",G.AT);G.T||(G.env.G("player_tooltip_data_title_killswitch")?X.setAttribute("title",G.Y):X.setAttribute("data-tooltip-title",G.Y));G.Y="";G.N=null;G.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});G.wrapper.style.width=""}; QoU=function(G){g.f.call(this,{D:"button",aU:["ytp-watch-later-button","ytp-button"],L:{title:G.G("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Jn(G.Z()))},K:[{D:"div",X:"ytp-watch-later-icon",WM:"{{icon}}"},{D:"div",X:"ytp-watch-later-title",WM:"Watch later"}]});this.U=G;this.icon=null;this.visible=this.isRequestPending=this.N=!1;eRl(G);G.createClientVe(this.element,this,28665);this.listen("click", this.onClick,this);this.B(G,"videoplayerreset",this.onReset);this.B(G,"appresize",this.QY);this.B(G,"videodatachange",this.QY);this.B(G,"presentingplayerstatechange",this.QY);this.QY();G=this.U.Z();var X=g.xL("yt-player-watch-later-pending");G.V&&X?(AkU(),XDe(this)):this.GT(2);g.S_(this.element,"ytp-show-watch-later-title",g.Jn(G));IM(this.U,this.element,this)}; R1l=function(G){var X=G.U.getPlayerSize(),Q=G.U.Z(),R=G.U.getVideoData(),S=g.Jn(Q)&&g.D0(G.U)&&g.N(G.U.getPlayerStateObject(),128),Z=Q.Y;return Q.eI&&X.width>=240&&!R.isAd()&&R.eI&&!S&&!R.KY&&!G.U.isEmbedsShortsMode()&&!Z}; StU=function(G,X){GxV(g.Ml(G.U.Z()),"wl_button",function(){AkU({videoId:X});window.location.reload()})}; XDe=function(G){if(!G.isRequestPending){G.isRequestPending=!0;G.GT(3);var X=G.U.getVideoData();X=G.N?X.removeFromWatchLaterCommand:X.addToWatchLaterCommand;var Q=G.U.Ub(),R=G.N?function(){G.N=!1;G.isRequestPending=!1;G.GT(2);G.U.Z().T&&G.U.E_("WATCH_LATER_VIDEO_REMOVED")}:function(){G.N=!0; G.isRequestPending=!1;G.GT(1);G.U.Z().W&&G.U.ya(G.element);G.U.Z().T&&G.U.E_("WATCH_LATER_VIDEO_ADDED")}; UF(Q,X).then(R,function(){G.isRequestPending=!1;G.GT(4,"An error occurred. Please try again later.");G.U.Z().T&&G.U.E_("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; ZQV=function(G,X){if(X!==G.icon){switch(X){case 3:var Q=EE();break;case 1:Q=h4();break;case 2:Q={D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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:Q={D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path", tW:!0,L:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}G.updateValue("icon",Q);G.icon=X}}; HQC=function(){g.Df.apply(this,arguments);this.jK=(this.i5=g.Jn(this.api.Z()))&&(this.api.Z().W||A8()||Dz());this.eD=48;this.FZ=69;this.XP=this.o$=null;this.yO=[];this.XX=this.Dn=this.Bx=this.Y0=this.UT=null;this.v2=[];this.contextMenu=this.iT=this.overflowButton=this.x_=this.O$=this.searchButton=this.copyLinkButton=this.shareButton=this.W1=this.Is=this.title=this.channelAvatar=this.XE=this.tooltip=null;this.aS=!1;this.Ye=this.df=this.WQ=this.zl=null;this.OdC=this.Ll=this.jD=!1}; qti=function(G){var X=G.api.Z(),Q=g.N(G.api.getPlayerStateObject(),128);return X.V&&Q&&!G.api.isFullscreen()}; wDe=function(G){if(G.lT()&&!G.api.isEmbedsShortsMode()&&G.x_){var X=G.api.G("web_player_hide_overflow_button_if_empty_menu");!G.W1||X&&!R1l(G.W1)||S$S(G.x_,G.W1);!G.shareButton||X&&!K4G(G.shareButton)||S$S(G.x_,G.shareButton);!G.copyLinkButton||X&&!Pxw(G.copyLinkButton)||S$S(G.x_,G.copyLinkButton)}else{X=G.api.Z().getWebPlayerContextConfig();if(G.x_){for(var Q=G.x_,R=g.e(Q.actionButtons),S=R.next();!S.done;S=R.next())S.value.detach();Q.actionButtons=[]}G.searchButton&&!g.Ks(G.Is.element,G.searchButton.element)&& G.searchButton.s_(G.Is.element);!G.W1||(X==null?0:X.hideTopWatchNextButton)||g.Ks(G.Is.element,G.W1.element)||G.W1.s_(G.Is.element);!G.shareButton||(X==null?0:X.hideTopShareButton)||g.Ks(G.Is.element,G.shareButton.element)||G.shareButton.s_(G.Is.element);G.copyLinkButton&&!g.Ks(G.Is.element,G.copyLinkButton.element)&&G.copyLinkButton.s_(G.Is.element)}}; h17=function(G,X,Q){X=Q?X.lastElementChild:X.firstElementChild;for(var R=null;X;){if(ns(X,"display")!=="none"&&X.getAttribute("aria-hidden")!=="true"){var S=void 0;X.tabIndex>=0?S=X:S=h17(G,X,Q);S&&(R?Q?S.tabIndex>R.tabIndex&&(R=S):S.tabIndexR/1E3+1)return{msg:"in-the-past"};if(Z.isLivePlayback&&!isFinite(R))return{msg:"live-infinite"};(R=X.EY())&&R.isView()&&(R=R.mediaElement);if(R&&R.SR().length>12&&g.pL(S))return{msg:"played-ranges"};if(!S.Y)return null;if(!H)return{msg:"no-pvd-formats"};if(!S.Y.N||!H.N)return{msg:"non-dash"};R=H.videoInfos[0];var w=S.Y.videoInfos[0];G.AT&&Ec(Z)&&(R=X.P1(), w=Q.P1());if(!R||!w)return{msg:"no-video-info"};if(G.S&&(fP(R)||fP(w)))return{msg:"av1"};X=G.V&&Z.n2()&&mL();if(w.containerType!==R.containerType)if(X)Z.Ni("sgap",{ierr:"container"});else return{msg:"container"};if(G.C&&!X&&(w.ZC!==R.ZC||w.ZC===""||R.ZC===""))return{msg:"codec"};if(G.J&&w.video&&R.video&&Math.abs(w.video.width/w.video.height-R.video.width/R.video.height)>.01)return{msg:"ratio"};if(g.pL(Z)&&g.pL(S))return{msg:"content-protection"};H=H.N[0];S=S.Y.N[0];Q=H.audio;var h=S.audio;if(Q.sampleRate!== h.sampleRate&&!g.un)if(X)Z.Ni("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:H.itag,cr:Q.sampleRate,ni:S.itag,nr:h.sampleRate};return(Q.numChannels||2)!==(h.numChannels||2)?{msg:"channel-count"}:G.T&&Z.n2()&&R.video.fps!==w.video.fps?{msg:"fps"}:null}; joG=function(G,X,Q){var R=G.getVideoData(),S=X.getVideoData();if(!R.Z().supportsGaplessShorts())return{nq:"env"};if((!Q.j||R.mD&&!R.isAd()||S.mD&&!S.isAd())&&(!Q.W||R.mD&&!R.isAd()||S.mD)&&(!Q.Y||S.mD&&!S.isAd()||R.mD)&&(R.mD||S.mD))return{nq:"autoplay"};if(R.endSeconds>0)return{nq:"endcr"};if(!R.J)return{nq:"client"};if(!G.yu())return{nq:"no-empty"};G=YtX(Q,G,X,Infinity);return G!=null?{nq:G.msg}:null}; F6=function(G){g.I.call(this);this.app=G;this.C=this.V=this.W=this.N=null;this.Y=1;this.events=new g.KP(this);this.events.B(this.app.PM,g.N3("gaplessshortslooprange"),this.T);g.d(this,this.events)}; MnS=function(){this.N=this.J=this.Y=this.W=this.j=this.S=this.AT=this.T=this.C=this.V=!1}; mbU=function(G){var X=new MnS;X.V=G.G("h5_gapless_support_types_diff");X.T=!1;X.AT=G.G("html5_gapless_use_format_info_fix");X.S=G.G("html5_gapless_disable_on_av1")&&!G.G("html5_gapless_enable_on_av1");X.C=G.G("html5_gapless_check_codec_diff_strictly");X.j=G.G("html5_gapless_on_ad_autoplay");X.J=G.G("html5_gapless_disable_diff_aspect_radio");X.W=G.G("html5_gapless_ad_autoplay_on_ad_to_video_only");X.N=G.G("html5_pseudogapless_shorts_seek_to_next_start");X.Y=G.G("html5_gapless_ad_autoplay_on_video_to_ad_only"); return X}; g.CI=function(G,X,Q,R){R=R===void 0?!1:R;Ej.call(this);this.mediaElement=G;this.start=X;this.end=Q;this.N=R}; oSS=function(G,X,Q,R,S,Z){Z=Z===void 0?0:Z;g.I.call(this);var H=this;this.policy=G;this.N=X;this.W=Q;this.Sz=S;this.C=Z;this.V=this.Y=null;this.currentVideoDuration=this.S=-1;this.J=!1;this.Pf=new aT;this.Bd=R-X.q9()*1E3;this.Pf.then(void 0,function(){}); this.timeout=new g.fU(function(){H.KL("timeout")},1E4); g.d(this,this.timeout);this.T=isFinite(R)||this.Sz.Z().experiments.TT("html5_pseudogapless_shorts")&&Ec(X.getVideoData());this.status={status:0,error:null}}; Py0=function(G){var X,Q,R,S,Z,H,w,h,L;return g.F(function(k){if(k.W==1){if(G.U_())return k.return(Promise.reject(Error(G.status.error||"disposed")));G.timeout.start();return g.l(k,G.Pf,2)}X=G.N.EY();if(X.isEnded())return G.KL("ended_in_finishTransition"),k.return(Promise.reject(Error(G.status.error||"")));if(!G.V||!PH(G.V))return G.KL("next_mse_closed"),k.return(Promise.reject(Error(G.status.error||"")));if(G.W.Hd()!==G.V)return G.KL("next_mse_mismatch"),k.return(Promise.reject(Error(G.status.error|| "")));Q=tM(G);R=Q.e9;S=Q.g9;Z=Q.dO;G.N.hR(!1,!0);H=uLT(X,R,Z,!G.W.getVideoData().isAd());G.W.setMediaElement(H);(w=G.N.nm())&&G.W.GA(w.hx,w.Mr);G.T&&(G.policy.N||G.W.seekTo(G.W.getCurrentTime()+.001,{F5:!0,Bt:3,nY:"gapless_pseudo"}),H.play(),Eh());h=X.L7();h.cpn=G.N.getVideoData().clientPlaybackNonce;h.st=""+R;h.et=""+Z;G.W.Ni("gapless",h);G.N.Ni("gaplessTo",{cpn:G.W.getVideoData().clientPlaybackNonce});L=G.N.getPlayerType()===G.W.getPlayerType();G.N.IE(S,!0,!1,L,G.W.getVideoData().clientPlaybackNonce); G.W.IE(G.W.getCurrentTime(),!0,!0,L,G.N.getVideoData().clientPlaybackNonce);G.W.Hq();g.sy(function(){!G.W.getVideoData().yH&&G.W.getPlayerState().isOrWillBePlaying()&&G.W.qf()}); VU(G,6);G.dispose();return k.return(Promise.resolve())})}; e10=function(G){if(G.W.getVideoData().Y){var X=G.Sz.Z().G("html5_gapless_suspend_next_loader")&&G.C===1;G.W.PW(G.V,X,soi(G));VU(G,3);TuG(G);var Q=KIG(G);X=Q.YN;Q=Q.Wa;X.subscribe("updateend",G.F4,G);Q.subscribe("updateend",G.F4,G);G.F4(X);G.F4(Q)}}; TuG=function(G){G.N.unsubscribe("internalvideodatachange",G.Yf,G);G.W.unsubscribe("internalvideodatachange",G.Yf,G);G.Sz.Z().G("html5_gapless_use_format_info_fix")&&(G.N.unsubscribe("internalvideoformatchange",G.Yf,G),G.W.unsubscribe("internalvideoformatchange",G.Yf,G));G.N.unsubscribe("mediasourceattached",G.Yf,G);G.W.unsubscribe("statechange",G.Fw,G)}; uLT=function(G,X,Q,R){G=G.isView()?G.mediaElement:G;return new g.CI(G,X,Q,R)}; VU=function(G,X){X<=G.status.status||(G.status={status:X,error:null},X===5&&G.Pf.resolve())}; soi=function(G){return G.Sz.Z().G("html5_gapless_no_clear_buffer_timeline")&&G.C===1&&c4(G.N.getVideoData())}; tM=function(G){var X=G.N.EY();X=X.isView()?X.start:0;var Q=G.N.getVideoData().isLivePlayback?Infinity:G.N.Ru(!0);Q=Math.min(G.Bd/1E3,Q)+X;var R=G.T?100:0;G=Q-G.W.Mc()+R;return{r9:X,e9:G,g9:Q,dO:Infinity}}; KIG=function(G){return{YN:G.Y.N.b9,Wa:G.Y.W.b9}}; Ip=function(G){g.I.call(this);var X=this;this.app=G;this.S=this.W=this.N=null;this.T=!1;this.Y=this.V=null;this.C=mbU(this.app.Z());this.J=function(){g.sy(function(){rcT(X)})}}; aUU=function(G,X,Q,R,S){R=R===void 0?0:R;S=S===void 0?0:S;G.yu()||d3(G);G.V=new aT;G.N=X;var Z=Q,H=S===0;H=H===void 0?!0:H;var w=G.app.eA(),h=w.getVideoData().isLivePlayback?Infinity:w.Ru(!0)*1E3;Z>h&&(Z=h-200,G.T=!0);H&&w.getCurrentTime()>=Z/1E3?G.J():(G.W=w,H&&(H=Z,Z=G.W,G.app.PM.addEventListener(g.Dy("vqueued"),G.J),H=isFinite(H)||H/1E3>Z.getDuration()?H:0x8000000000000,G.S=new g.yG(H,0x8000000000000,{namespace:"vqueued"}),Z.addCueRange(G.S)));H=R/=1E3;Z=X.getVideoData().N;R&&Z&&G.W&&(w=R,h=0, X.getVideoData().isLivePlayback&&(H=Math.min(Q/1E3,G.W.Ru(!0)),h=Math.max(0,H-G.W.getCurrentTime()),w=Math.min(R,X.Ru()+h)),H=OF0(Z,w)||R,H!==R&&G.N.Ni("qvaln",{st:R,at:H,rm:h,ct:w}));X=H;R=G.N;R.getVideoData().Nu=!0;R.getVideoData().J=!0;R.Ci(!0);Z={};G.W&&(Z=G.W.HO(),H=G.W.getVideoData().clientPlaybackNonce,Z={crt:(Z*1E3).toFixed(),cpn:H});R.Ni("queued",Z);X!==0&&R.seekTo(X+.01,{F5:!0,Bt:3,nY:"videoqueuer_queued"});G.Y=new oSS(G.C,G.app.eA(),G.N,Q,G.app,S);Q=G.Y;Q.status.status!==Infinity&&(VU(Q, 1),Q.N.subscribe("internalvideodatachange",Q.Yf,Q),Q.W.subscribe("internalvideodatachange",Q.Yf,Q),Q.Sz.Z().G("html5_gapless_use_format_info_fix")&&(Q.N.subscribe("internalvideoformatchange",Q.Yf,Q),Q.W.subscribe("internalvideoformatchange",Q.Yf,Q)),Q.N.subscribe("mediasourceattached",Q.Yf,Q),Q.W.subscribe("statechange",Q.Fw,Q),Q.N.subscribe("newelementrequired",Q.Uq,Q),Q.Yf());return G.V}; rcT=function(G){var X,Q,R,S,Z,H,w;g.F(function(h){switch(h.W){case 1:if(G.U_()||!G.V||!G.N)return h.return();G.T&&G.app.eA().q0(!0,!1);X=null;if(!G.Y){h.pO(2);break}g.a0(h,3);return g.l(h,Py0(G.Y),5);case 5:g.OC(h,2);break;case 3:X=Q=g.cl(h);case 2:if(!G.N)return h.return();ESZ.RY("vqsp",function(){G.app.o5(G.N)}); if(!G.N)return h.return();R=G.N.EY();G.app.Z().G("html5_gapless_seek_on_negative_time")&&R&&R.getCurrentTime()<-.01&&G.N.seekTo(0);ESZ.RY("vqpv",function(){G.app.playVideo()}); X&&(G.N?(S=X?X.message:"forced",(Z=G.W)==null||Z.Ni("gapfulfbk",{r:S}),G.N.P0(S)):(H=G.W)==null||H.Ni("gapsp",{}));w=G.V;d3(G);w&&w.resolve();return h.return(Promise.resolve())}})}; d3=function(G,X){X=X===void 0?!1:X;if(G.W){if(G.S){var Q=G.W;G.app.PM.removeEventListener(g.Dy("vqueued"),G.J);Q.removeCueRange(G.S)}G.W=null;G.S=null}G.Y&&(G.Y.status.status!==6&&(Q=G.Y,Q.status.status!==Infinity&&Q.C!==1&&Q.KL("Canceled")),G.Y=null);G.V=null;G.N&&!X&&G.N!==G.app.dh()&&G.N!==G.app.eA()&&G.N.dispose();G.N&&X&&G.N.IL();G.N=null;G.T=!1}; xbZ=function(G){var X;return((X=G.Y)==null?void 0:X.currentVideoDuration)||-1}; OQ0=function(G,X,Q){if(G.yu())return"qie";if(G.N==null||G.N.U_()||G.N.getVideoData()==null)return"qpd";if(X.videoId!==G.N.iL())return"vinm";if(xbZ(G)<=0)return"ivd";if(Q!==1)return"upt";if((Q=G.Y)==null)G=void 0;else if(Q.getStatus().status!==5)G="niss";else if(YtX(Q.policy,Q.N,Q.W,Q.Bd)!=null)G="pge";else{X=KIG(Q);G=X.YN;var R=X.Wa;X=g.i2(Q.Sz.Z().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var S=Q.S+X;Q.Sz.Z().experiments.TT("html5_pseudogapless_shorts")&&(S=tM(Q).e9+X);Q=HH(R.Zu(), S);G=HH(G.Zu(),S);G=!(X>0)||Q&&G?null:"neb"}return G!=null?G:null}; z1V=function(){g.ic.call(this);var G=this;this.fullscreen=0;this.V=this.Y=this.pictureInPicture=this.N=this.W=this.inline=!1;this.C=function(){G.cR()}; zrS(this.C);this.S=this.getVisibilityState(this.HF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.TR(),this.p_(),this.SP(),this.Qu())}; UHU=function(G){return!(G.isMinimized()||G.isInline()||G.isBackground()||G.TR()||G.p_()||G.SP()||G.Qu())}; g.Ww=function(G){g.I.call(this);this.tT=G;this.videoData=this.playerState=null}; fI=function(G,X){g.I.call(this);var Q=this;this.data=[];this.Y=G||NaN;this.W=X||null;this.N=new g.fU(function(){pI(Q);yU(Q)}); g.d(this,this.N)}; aMy=function(G){pI(G);return G.data.map(function(X){return X.value})}; pI=function(G){var X=(0,g.TB)();G.data.forEach(function(Q){Q.expire0));G.n7()&& sMT();Error.stackTraceLimit=50;var S=g.i2(X,"html5_idle_rate_limit_ms");S&&Object.defineProperty(window,"requestIdleCallback",{value:function(Z){return window.setTimeout(Z,S)}}); $s0(G.C);f9G(Q("html5_use_ump_request_slicer"));PFS(Q("html5_record_now"));Q("html5_disable_streaming_xhr")&&(u$=!1);Q("html5_byterate_constraints")&&(O4=!0);Q("html5_use_non_active_broadcast_for_post_live")&&(M9=!0);Q("html5_enable_encrypted_av1")&&(yi=!0);ykX(g.i2(G.experiments,"html5_sticky_duration_mos"))}; Cyl=function(G,X){return G.slice(X.length).replace(/_[a-z]/g,function(Q){return Q.toUpperCase().replace("_","")}).replace("Dot",".")}; tnX=function(G){var X={},Q=Object.keys(G.experiments.flags);Q=g.e(Q);for(var R=Q.next();!R.done;R=Q.next())if(R=R.value,R.startsWith("cobalt_h5vcc"))if(R.startsWith("cobalt_h5vcc_string")){var S=Cyl(R,"cobalt_h5vcc_string");R=Pm(G.experiments,R);S&&R&&(X[S]=ue0(S,R))}else R.startsWith("cobalt_h5vcc")&&(S=Cyl(R,"cobalt_h5vcc"),R=g.i2(G.experiments,R),S&&R&&(X[S]=ue0(S,R)));return X}; IUC=function(G,X,Q,R){R=R===void 0?0:R;g.XK.call(this,Q.Ig());var S=this;this.UY=G;this.videoData=X;this.duration=R;this.N=this.startTimeSecs=0;this.W=new Vne(function(Z,H){return void S.Ni(Z,H)})}; Vne=function(G){this.Ni=G;this.N={}}; dbw=function(G,X,Q){G.N[X]||(G.Ni("huli-sdai-err",Q),G.N[X]=!0)}; WIU=function(G){this.end=this.start=G}; g.$b=function(){this.N=new Map;this.Y=new Map;this.W=new Map}; pDZ=function(G){var X=this;this.tT=G;this.W=[];this.Y=new Map;this.V=new Map;this.N=new Map;this.gh={k$:function(){return X.Y}, Ty_:function(){return X.V}, GK:function(){return X.W}}; this.C=this.tT.G("html5_huli_ssdai_deprecate_playback_timeline_id")}; ycT=function(G,X,Q){G=G.W;var R=g.fa(G,{z1:X},function(H,w){return H.z1-w.z1}); R=R<0?(R+2)*-1:R;if(R>=0)for(var S=R;S<=R+1&&S=Z.z1-Q&&X<=Z.rM+Q)return Z}}; DbZ=function(G,X){g.bL(G.W,X,function(Q,R){return Q.z1===R.z1?Q.durationMs-R.durationMs:Q.z1-R.z1}); G.Y.set(X.cpn,X);X.sY&&!G.C&&G.V.set(X.sY,X);X.f2&&fUi(G,X.f2,X)}; Nu0=function(G,X){for(var Q=[],R=g.e(G.W),S=R.next();!S.done;S=R.next())S=S.value,X(S)||Q.push(S);if(G.tT.G("html5_sstm_fixes"))for(R=g.e(G.W),S=R.next();!S.done;S=R.next())S=S.value,X(S)&&(G.Y.delete(S.cpn),S.sY&&G.V.delete(S.sY));G.W=Q}; Acl=function(G,X){X=g.fa(G.W,{rM:X},function(Q,R){return Q.rM-R.rM}); return X>=0?G.W[X]:null}; nSX=function(G,X){var Q=G.W.indexOf(X);Q>=0&&G.W.splice(Q,1);G.Y.delete(X.cpn);X.sY&&G.V.delete(X.sY)}; fUi=function(G,X,Q){var R=G.N.get(X);R?(R.push(Q),g.na(R,function(S,Z){return S.z1-Z.z1})):G.N.set(X,[Q])}; g.br=function(G,X,Q,R){g.I.call(this);var S=this;this.api=G;this.tT=X;this.playback=Q;this.app=R;this.yH=new g.$b;this.W=new Map;this.Mi=new Map;this.DC=null;this.bB=NaN;this.cM=this.KO=null;this.BM=new g.fU(function(){$bl(S,S.bB,S.KO||void 0)}); this.events=new g.KP(this);this.CO=15E3;this.J=new g.fU(function(){S.T=!0;S.playback.Bq(S.CO);bQe(S);if(S.playback.getVideoData().Yr()){var Z;S.Ws({togab:(Z=S.S)==null?void 0:Z.identifier})}S.Cm(!1)},this.CO); this.T=!1;this.C=new Map;this.IU=[];this.S=null;this.f7=new Set;this.j=[];this.wb=[];this.C7=[];this.Hs=[];this.QH=new Set;this.sz=0;this.AT=!1;this.Ps=new Set;this.F7=new Set;this.Js=new Set;this.Xm=new Set;this.N9=this.NN=0;this.yX=this.As=!1;this.BR=this.Y="";this.Yc=null;this.logger=new g.sp("dai");this.gh={Xfp:function(){return S.W}, k$:function(){return S.N.gh.k$()}, mQp:function(){return S.Y}, vBc:function(Z){S.onCueRangeEnter(S.W.get(Z))}, k7b:function(Z){S.onCueRangeExit(S.W.get(Z))}, ukm:function(Z,H){S.W.set(Z,H)}, NsT:function(Z){S.BR=Z}, I4:function(){return S.I4()}, ByT:function(Z){return S.N.N.get(Z)}, LXb:function(){return S.Yc}, GK:function(){return S.N.gh.GK()}}; this.playback.getPlayerType();this.N=new pDZ(this.tT);this.playback.In(this);this.SA=this.tT.n7();g.d(this,this.BM);g.d(this,this.events);g.d(this,this.J);this.tT.G("html5_use_new_ssdai_transition_detector")?this.playback.subscribe("playbackstarted",this.UV,this):(this.events.B(this.api,g.Dy("serverstitchedcuerange"),this.onCueRangeEnter),this.events.B(this.api,g.N3("serverstitchedcuerange"),this.onCueRangeExit));nI(this.app.Xz(),this.playback,!1)}; XuZ=function(G,X,Q,R,S,Z,H,w){var h=vSV(G,Z,Z+S);G.T&&G.Ws({adaftto:1});Q||G.Ws({missadcon:1,enter:Z,len:S,aid:w});G.V&&!G.V.e7&&(G.V.e7=w);G.yX&&G.Ws({adfbk:1,enter:Z,len:S,aid:w});var L=G.playback;Z>H&&vw(G,{reason:"enterTime_greater_than_return",z1:Z,rM:H});var k=L.Bn()*1E3;ZL&&vw(G,{reason:"parent_return_greater_than_content_duration",rM:H,FdM:L});(L=Acl(G.N,Z))&&L.rM>Z&&Jci(G,X.video_id||"", Z,H,L);if(h&&L)for(k=0;k=X)return Q}G=g.e(G.W.values());for(Q=G.next();!Q.done;Q=G.next())if(Q=Q.value,Q.start<=X&&Q.end>=X)return Q}; $bl=function(G,X,Q){var R=G.cM||G.app.eA().getPlayerState();Gy(G,!0);G.playback.seekTo(X,Q);G=G.app.eA();X=G.getPlayerState();R.isOrWillBePlaying()&&!X.isOrWillBePlaying()?G.playVideo():R.isPaused()&&!X.isPaused()&&G.pauseVideo()}; Gy=function(G,X){G.bB=NaN;G.KO=null;G.BM.stop();G.DC&&X&&G.DC.Ca();G.cM=null;G.DC=null}; YbT=function(G){var X=X===void 0?-1:X;var Q=Q===void 0?Infinity:Q;LhV(G,X,Q);for(var R=g.e(G.W.values()),S=R.next();!S.done;S=R.next())S=S.value,S.start>=X&&S.end<=Q&&(G.playback.removeCueRange(S),G.W.delete(S.getId()),G.Ws({rmAdCR:1}));R=ir(G,X/1E3);X=R.aZ;R=R.K_;X&&(R=R*1E3-X.z1,kL0(G,X,R,X.z1+R),R=G.W.get(X.cpn))&&(R.start=X.z1,R.end=X.z1+X.durationMs);if(X=ir(G,Q/1E3).aZ){var Z;R="playback_timelinePlaybackId_"+X.sY+"_video_id_"+((Z=X.videoData)==null?void 0:Z.videoId)+"_durationMs_"+X.durationMs+ "_enterTimeMs_"+X.z1+"_parentReturnTimeMs_"+X.rM;G.Rh("Invalid_clearEndTimeMs_"+Q+"_that_falls_during_"+R+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; jOG=function(G){G.yH.clearAll();G.W.clear();G.N.clear();G.C.clear();G.IU=[];G.S=null;G.f7.clear();G.tT.experiments.TT("html5_ssdai_log_missing_ad_config_reason")&&G.QH.clear();G.j=[];G.wb=[];G.C7=[];G.Hs=[];G.Ps.clear();G.F7.clear();G.Js.clear();G.Xm.clear();G.T=!1;G.sz=0;G.AT=!1;G.NN=0;G.N9=0;G.As=!1;G.yX=!1;G.Y="";ccl(G.app.Xz());nI(G.app.Xz(),G.playback,!1);G.Mi.clear();G.J.isActive()&&JM(G)}; kL0=function(G,X,Q,R){X.durationMs=Q;X.rM=R;(R=G.Mi.get(X.cpn))?R.GJ(Q/1E3):G.Ws({nop_d:X.cpn})}; LhV=function(G,X,Q){Nu0(G.N,function(R){return R.z1>=X&&R.rM<=Q})}; oO7=function(G,X,Q,R,S,Z){if(!G.yX)if(g.MBC(G,Q))G.Ws({gdu:"undec",seg:Q,itag:S});else if(X=mCe(G,X,Q,R,Z),!(G.playback.getVideoData().Yr()&&(X==null?0:X.uu)))return X}; mCe=function(G,X,Q,R,S){var Z=G.C.get(Q);if(!Z){if(Z=uRX(G,X))return Z;X=G.La(Q-1,R!=null?R:2);if(S)return G.Ws({misscue:S,sq:Q,type:R,prevsstate:X==null?void 0:X.jt,prevrecord:G.C.has(Q-1)}),G.C.get(Q-1);if((X==null?void 0:X.jt)===2)return G.Ws({adnf:1,sq:Q,type:R,prevrecord:G.C.has(Q-1)}),G.C.get(Q-1)}return Z}; uRX=function(G,X){X+=G.FS();var Q;if(G.playback.getVideoData().Yr()){a:{var R=X*1E3;G=g.e(G.N.W);for(Q=G.next();!Q.done;Q=G.next()){Q=Q.value;var S=Q.fq?Q.fq*1E3:Q.z1;if(R>=Q.z1-1E3&&R<=S+Q.durationMs+1E3){R=Q;break a}}R=void 0}Q={aZ:R,K_:X}}else Q=ir(G,X),((R=Q)==null?0:R.aZ)||(Q=ir(G,X,1));var Z;return(Z=Q)==null?void 0:Z.aZ}; Ptw=function(G,X){X=X===void 0?"":X;var Q=gn(X)||void 0;if(!X||!Q){var R;G.Ws({adcfg:(R=X)==null?void 0:R.length,dcfg:Q==null?void 0:Q.length})}return Q}; sOU=function(G){for(var X=g.e(G.W.values()),Q=X.next();!Q.done;Q=X.next())G.playback.removeCueRange(Q.value);G.W.clear();G.yH.clearAll()}; TmX=function(G,X,Q,R,S,Z,H){if(X&&Q){G.BR=Q.cpn;G.tT.G("html5_use_new_ssdai_transition_detector")&&H||G.Sg(Q.cpn,Q.startTimeSecs||S);RMi(G,Q);var w=QO7(G,"a2a",Q);G.Ws(w);G.NN++;G.playback.QT(X,Q,R||0,S||0,!!Z,!!H)}else G.Ws({misspbkonadtrans:1,enter:(Q==null?void 0:Q.cpn)||"",exit:(X==null?void 0:X.cpn)||"",seek:Z,skip:H})}; X9=function(G,X,Q){if(Q===void 0||!Q){Q=g.e(G.IU);for(var R=Q.next();!R.done;R=Q.next()){R=R.value;if(X>=R.start&&X<=R.end)return;if(X===R.end+1){R.end+=1;return}}G.IU.push(new WIU(X))}}; g.MBC=function(G,X){G=g.e(G.IU);for(var Q=G.next();!Q.done;Q=G.next())if(Q=Q.value,X>=Q.start&&X<=Q.end)return!0;return!1}; KhT=function(G,X,Q){var R;if(R=G.playback.getVideoData().Yr())R=(R=G.N.a6({cpn:X}))&&R.f2?(G=G.N.N.get(R==null?void 0:R.f2))&&G.slice(-1)[0].cpn===X:!1;return R&&Q===2?1E3:0}; Jci=function(G,X,Q,R,S){var Z;X={reason:"overlapping_playbacks",GIU:X,z1:Q,rM:R,PyU:S.sY,G7A:((Z=S.videoData)==null?void 0:Z.videoId)||"",lap:S.durationMs,CyM:S.z1,qlm:S.rM};vw(G,X)}; vw=function(G,X,Q){G.playback.TN(X,Q)}; eMX=function(G,X){var Q=[];G=G.N.N.get(X);if(!G)return[];G=g.e(G);for(X=G.next();!X.done;X=G.next())X=X.value,X.cpn&&Q.push(X.cpn);return Q}; r9w=function(G,X,Q){var R=0;G=G.N.N.get(Q);if(!G)return-1;G=g.e(G);for(Q=G.next();!Q.done;Q=G.next()){if(Q.value.cpn===X)return R;R++}return-1}; aqT=function(G,X){var Q=0;G=G.N.N.get(X);if(!G)return 0;G=g.e(G);for(X=G.next();!X.done;X=G.next())X=X.value,X.durationMs!==0&&X.rM!==X.z1&&Q++;return Q}; EOS=function(G,X,Q){var R=!1;if(Q=G.N.N.get(Q)){Q=g.e(Q);for(var S=Q.next();!S.done;S=Q.next())S=S.value,S.durationMs!==0&&S.rM!==S.z1&&(S=S.cpn,X===S&&(R=!0),R&&!G.F7.has(S)&&(G.Ws({decoratedAd:S}),G.F7.add(S)))}}; bQe=function(G){G.SA&&G.Ws({adf:"0_"+((new Date).getTime()/1E3-G.N9)+"_isTimeout_"+G.T})}; vSV=function(G,X,Q){if(G.j.length)for(var R=g.e(G.j),S=R.next(),Z={};!S.done;Z={s6:void 0},S=R.next()){Z.s6=S.value;S=Z.s6.startSecs*1E3;var H=Z.s6.Du*1E3+S;if(X>S&&XS&&Q0?G:0}else G.I4().videoData.hS=G.playback.getCurrentTime()}; Oxi=function(G){G.Xm.add(G.Y);G.Y="";G.AT=!1}; lqV=function(G,X,Q,R){g.I.call(this);var S=this;this.api=G;this.tT=X;this.N=Q;this.app=R;this.C=new Map;this.W=[];this.Y=this.J=null;this.AT=NaN;this.S=this.V=this.j=null;this.T=new g.fU(function(){UCV(S,S.AT,S.j||void 0)}); this.yH=[];this.Yc=new g.fU(function(){var Z=S.yH.pop();if(Z){var H=Z.sY,w=Z.playerVars;Z=Z.playerType;w&&(w.prefer_gapless=!0,S.api.preloadVideoByPlayerVars(w,Z,NaN,"",H),S.yH.length&&g.DA(S.Yc,4500))}}); this.events=new g.KP(this);this.gh={gBb:function(){return S.W}}; this.N.getPlayerType();g.d(this,this.T);g.d(this,this.Yc);g.d(this,this.events);this.events.B(this.api,g.Dy("childplayback"),this.onCueRangeEnter);this.events.B(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.B(this.api,"presentingplayerstatechange",this.Vu)}; tBX=function(G,X,Q,R,S,Z){var H=X.cpn,w=X.docid||X.video_id||X.videoId||X.id,h=G.N;Z=Z===void 0?S+R:Z;if(S>Z)return Sq(G,"enterAfterReturn enterTimeMs="+S+" is greater than parentReturnTimeMs="+Z.toFixed(3),H,w),"";var L=h.Bn()*1E3;if(SL)return h="returnAfterDuration parentReturnTimeMs="+Z.toFixed(3)+" is greater than parentDurationMs="+L+". And timestampOffset in seconds is "+ h.q9(),Sq(G,h,H,w),"";L=null;for(var k=g.e(G.W),Y=k.next();!Y.done;Y=k.next()){Y=Y.value;if(S>=Y.z1&&SY.z1)return Sq(G,"overlappingReturn",H,w),"";if(Z===Y.z1)return Sq(G,"outOfOrder",H,w),"";S===Y.rM&&(L=Y)}H="cs_childplayback_"+BmZ++;w={C4:Zp(R,!0),Bd:Infinity,target:null};var M={sY:H,playerVars:X,playerType:Q,durationMs:R,z1:S,rM:Z,hD:w};G.W=G.W.concat(M).sort(function(r,x){return r.z1-x.z1}); L?Fhe(G,L,{C4:Zp(L.durationMs,!0),Bd:L.hD.Bd,target:M}):(X={C4:Zp(S,!1),Bd:S,target:M},G.C.set(X.C4,X),h.addCueRange(X.C4));X=!0;if(G.N===G.app.eA()&&(h=h.getCurrentTime()*1E3,h>=M.z1&&hX)break;if(Z>X)return{aZ:R,K_:X-S};Q=Z-R.rM/1E3}return{aZ:null,K_:X-Q}}; UCV=function(G,X,Q){Q=Q===void 0?{}:Q;var R=G.S||G.app.eA().getPlayerState();wB(G,!0);X=isFinite(X)?X:G.N.D5();var S=Whl(G,X);X=S.K_;var Z=(S=S.aZ)&&!H0(G,S)||!S&&G.N!==G.app.eA(),H=X*1E3;H=G.Y&&G.Y.start<=H&&H<=G.Y.end;!Z&&H||qy(G);S?CtZ(G,S,X,Q,R):puZ(G,X,Q,R,"_execute")}; puZ=function(G,X,Q,R,S){var Z=G.N;Z!==G.app.eA()&&G.app.vu();G.tT.G("html5_sabr_csdai_seek_log")||(S="");var H;Z.seekTo(X,Object.assign({},{nY:"application_timelinemanager"+((H=S)!=null?H:"")},Q));y9V(G,R)}; CtZ=function(G,X,Q,R,S){var Z=H0(G,X);if(!Z){X.playerVars.prefer_gapless=!0;var H=new g.ML(G.tT,X.playerVars);H.sY=X.sY;G.api.jO(H,X.playerType)}H=G.app.eA();Z||H.addCueRange(X.hD.C4);H.seekTo(Q,Object.assign({},{nY:"application_timelinemanager"},R));y9V(G,S)}; y9V=function(G,X){G=G.app.eA();var Q=G.getPlayerState();X.isOrWillBePlaying()&&!Q.isOrWillBePlaying()?G.playVideo():X.isPaused()&&!Q.isPaused()&&G.pauseVideo()}; wB=function(G,X){G.AT=NaN;G.j=null;G.T.stop();G.V&&X&&G.V.Ca();G.S=null;G.V=null}; H0=function(G,X){G=G.app.eA();return!!G&&G.getVideoData().sY===X.sY}; fqC=function(G){var X=G.W.find(function(S){return H0(G,S)}); if(X){var Q=G.app.eA();qy(G);var R=new g.gO(8);X=dC0(G,X)/1E3;puZ(G,X,{},R,"_force");Q.Ni("forceParentTransition",{childPlayback:1});G.N.Ni("forceParentTransition",{parentPlayback:1})}}; NmV=function(G,X,Q){X=X===void 0?-1:X;Q=Q===void 0?Infinity:Q;for(var R=X,S=Q,Z=g.e(G.C),H=Z.next();!H.done;H=Z.next()){var w=g.e(H.value);H=w.next().value;w=w.next().value;w.Bd>=R&&w.target&&w.target.rM<=S&&(G.N.removeCueRange(H),G.C.delete(H))}R=X;S=Q;Z=[];H=g.e(G.W);for(w=H.next();!w.done;w=H.next())if(w=w.value,w.z1>=R&&w.rM<=S){var h=G;h.J===w&&qy(h);H0(h,w)&&h.app.vu()}else Z.push(w);G.W=Z;R=Whl(G,X/1E3);X=R.aZ;R=R.K_;X&&(R*=1E3,DCS(G,X,R,X.rM===X.z1+X.durationMs?X.z1+R:X.rM));(X=Whl(G,Q/1E3).aZ)&& Sq(G,"Invalid clearEndTimeMs="+Q+" that falls during playback={timelinePlaybackId="+(X.sY+" video_id="+X.playerVars.video_id+" durationMs="+X.durationMs+" enterTimeMs="+X.z1+" parentReturnTimeMs="+X.rM+"}.Child playbacks can only have duration updated not their start."))}; DCS=function(G,X,Q,R){X.durationMs=Q;X.rM=R;R={C4:Zp(Q,!0),Bd:Q,target:null};Fhe(G,X,R);H0(G,X)&&G.app.eA().getCurrentTime()*1E3>Q&&(X=dC0(G,X)/1E3,Q=G.app.eA().getPlayerState(),puZ(G,X,{},Q,"_update"))}; Sq=function(G,X,Q,R){G.N.Ni("timelineerror",{e:X,cpn:Q?Q:void 0,videoId:R?R:void 0})}; nOU=function(G){G&&G!=="web"&&A9w.includes(G)}; hm=function(){g.I.call(this);this.N=new fI(5,null);g.d(this,this.N);this.W=new fI(15,null);g.d(this,this.W)}; M1i=function(G,X){return X?!!G.N.get(X):!1}; $CG=function(G,X){G.dataset.version=X}; J9i=function(G){g.f.call(this,{D:"div",aU:["html5-video-player"],L:{tabindex:G.Z().disableOrganicUi?"":"-1",id:G.webPlayerContextConfig.rootElementId},K:[{D:"div",X:g.KR.VIDEO_CONTAINER,L:{"data-layer":"0"}}]});var X=this;this.app=G;this.rX=this.VH(g.KR.VIDEO_CONTAINER);this.xZ=new g.ps(0,0,0,0);this.b6=null;this.Jq=new g.ps(0,0,0,0);this.UO=this.Kl=this.Zi=NaN;this.FV=this.Pq=this.Yn=this.oT=!1;this.ZD=NaN;this.aB=!1;this.DU=null;this.jY=new g.fU(function(){return void X.resize()},100); this.I7=function(){X.element.focus({preventScroll:!0})}; this.YM=function(){X.app.PM.publish("playerUnderlayVisibilityChange","visible");X.b6.classList.remove(g.KR.VIDEO_CONTAINER_TRANSITIONING);X.b6.removeEventListener(zT,X.YM);X.b6.removeEventListener("transitioncancel",X.YM)}; this.JK=this.ZO=!1;var Q=this.element.addEventListener,R=this.element.removeEventListener;this.addEventListener=function(Z,H,w){Q.apply(X.element,[Z,H,w])}; this.removeEventListener=function(Z,H,w){R.apply(X.element,[Z,H,w])}; var S=G.Z();S.transparentBackground&&this.Ki("ytp-transparent");S.controlsType==="0"&&this.Ki("ytp-hide-controls");g.Gk(this.element,"ytp-exp-bottom-control-flexbox");g.Gk(this.element,"ytp-modern-caption");S.G("enable_new_paid_product_placement")&&!g.eb(S)&&g.Gk(this.element,"ytp-exp-ppp-update");g.Gk(this.element,"ytp-livebadge-color");if(S.G("delhi_modern_web_player"))switch(g.Gk(this.element,"ytp-delhi-modern"),S.G("delhi_modern_web_player_icons")&&g.Gk(this.element,"ytp-delhi-modern-icons"), S.G("delhi_modern_web_player_horizontal_volume_controls")&&g.Gk(this.element,"ytp-delhi-horizontal-volume-controls"),Pm(S.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.Gk(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.Gk(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.Gk(this.element,"ytp-delhi-modern-with-exclusion")}$CG(this.element,bxw(G));this.zr=!1;this.Np=new g.AC(NaN,NaN);vOT(this);this.B(G.PM,"onMutedAutoplayChange", this.onMutedAutoplayChange);g.d(this,this.jY)}; vOT=function(G){function X(H){G.b6&&Lu(G);k9(G)!==G.aB&&G.resize();G.app.Z().G("web_enable_smart_zoom")&&G.z0&&(H.state.isPaused()?G.z0.pause():g.Lw(H,8)&&G.z0.playState==="paused"&&G.z0.play())} function Q(H,w){G.hC(H,w)} function R(H){H.getVideoData()&&G.updateVideoData(H.getVideoData())} function S(){G.Jq=new g.ps(0,0,0,0);G.xZ=new g.ps(0,0,0,0)} var Z=G.app.PM;Z.addEventListener("initializingmode",S);Z.addEventListener("videoplayerreset",R);Z.addEventListener("videodatachange",Q);Z.addEventListener("presentingplayerstatechange",X);G.addOnDisposeCallback(function(){Z.removeEventListener("initializingmode",S);Z.removeEventListener("videoplayerreset",R);Z.removeEventListener("videodatachange",Q);Z.removeEventListener("presentingplayerstatechange",X)})}; GmZ=function(G){var X=G.app.eA();if(X=X?X.getVideoData():null){if(g.v4(X)||g.JP(X)||g.iV(X))return 16/9;if(aA(X)&&X.Y.N)return G=X.Y.videoInfos[0].video,ixX(G.width,G.height)}return(G=G.b6)?ixX(G.videoWidth,G.videoHeight):16/9}; XUw=function(G,X,Q,R){var S=Q,Z=ixX(X.width,X.height);G.oT?S=QZ?{width:X.width,height:X.width/S,aspectRatio:S}:SS?G.width=G.height*Q:Qh;if(k9(G)){var L=GmZ(G);var k=isNaN(L)||g.pl||jR&&g.Y_||h;WI&&!g.Wo(601)?L=S.aspectRatio:k=k||Z.controlsType==="3";k?h?(k=Z.G("place_shrunken_video_on_left_of_player")?16:G.getPlayerSize().width-X.width-16,L=Math.max((G.getPlayerSize().height-X.height)/2,0),k=new g.ps(k,L,X.width, X.height),G.b6.style.setProperty("border-radius","12px")):k=new g.ps(0,0,X.width,X.height):(Q=S.aspectRatio/L,k=new g.ps((X.width-S.width/Q)/2,(X.height-S.height)/2,S.width/Q,S.height),Q===1&&g.Y_&&(L=k.width-X.height*L,L>0&&(k.width+=L,k.height+=L)));g.S_(G.element,"ytp-fit-cover-video",Math.max(k.width-S.width,k.height-S.height)<1);if(w||G.zr)G.b6.style.display="";G.aB=!0}else{k=-X.height;WI?k*=window.devicePixelRatio:g.rS&&(k-=window.screen.height);k=new g.ps(0,k,X.width,X.height);if(w||G.zr)G.b6.style.display= "none";G.aB=!1}y7(G.Jq,k)||(G.Jq=k,g.ZK(Z)?(G.b6.style.setProperty("width",k.width+"px","important"),G.b6.style.setProperty("height",k.height+"px","important")):g.XD(G.b6,k.getSize()),R=new g.Db(k.left,k.top),g.vq(G.b6,Math.round(R.x),Math.round(R.y)),R=!0);X=new g.ps((X.width-S.width)/2,(X.height-S.height)/2,S.width,S.height);y7(G.xZ,X)||(G.xZ=X,R=!0);g.DN(G.b6,"transform",Q===1?"":"scaleX("+Q+")");H&&h!==G.Pq&&(h&&(G.b6.addEventListener(zT,G.YM),G.b6.addEventListener("transitioncancel",G.YM),G.b6.classList.add(g.KR.VIDEO_CONTAINER_TRANSITIONING)), G.Pq=h,G.app.PM.publish("playerUnderlayVisibilityChange",G.Pq?"transitioning":"hidden"));return R}; SVG=function(G){G.ZO=!G.ZO;G.JK=!0;G.element.classList.toggle("ytp-retro-player",G.ZO);G.resize();G.JK=!1;G.app.PM.E_("onRetroModeChanged",G.ZO)}; Zki=function(){this.csn=g.oU();this.clientPlaybackNonce=null;this.elements=new Set;this.Y=new Set;this.N=new Set;this.W=new Set}; Hk0=function(G){if(G.csn!==g.oU())if(G.csn==="UNDEFINED_CSN")G.csn=g.oU();else{var X=g.oU(),Q=g.me();if(X&&Q){G.csn=X;for(var R=g.e(G.elements),S=R.next();!S.done;S=R.next())(S=S.value.visualElement)&&S.isClientVe()&&X&&Q&&(g.jg("combine_ve_grafts")?Z1(R_(),S,Q):g.Do(g.V_)(void 0,X,Q,S))}if(X)for(G=g.e(G.N),Q=G.next();!Q.done;Q=G.next())(Q=Q.value.visualElement)&&Q.isClientVe()&&g.ND(X,Q)}}; g.Y9=function(G,X,Q,R){g.I.call(this);var S=this;this.logger=new g.sp("App");this.Tt=this.Ma=!1;this.Fb={};this.S6=[];this.LU=!1;this.gQ=null;this.intentionalPlayback=!1;this.ZX=!0;this.hj=!1;this.yM=this.Hk=this.qM=null;this.Sf=!0;this.mediaElement=this.sM=null;this.d4=NaN;this.dI=!1;this.qj=this.NT=this.BZ=this.screenLayer=this.playlist=null;this.ju=[];this.wT=0;this.gh={Xz:function(){return S.Mx}, BdO:function(){return S.BZ}}; this.logger.debug("constructor begin");if(!Q)throw Error("b/179532961");this.B0=(X==null?void 0:X.args)||{};this.webPlayerContextConfig=Q;XWZ();X=this.B0;this.tT=new Yn(X,Q,Q.canaryState,R,this);g.d(this,this.tT);FIG(this.tT);Q=tnX(this.tT);this.tT.n7()&&this.IY("h5vcc",Q);this.tT.experiments.TT("jspb_serialize_with_worker")&&Vp0();this.tT.experiments.TT("gzip_gel_with_worker")&&OdG();this.tT.W&&!qVl&&(window.addEventListener(nj?"touchstart":"click",kpe,{capture:!0,passive:!0}),qVl=!0);this.G("html5_onesie")&& (this.Oh=new wR(this.tT),g.d(this,this.Oh));this.YX=bX(G$(this.tT)&&!0,X.enablesizebutton);this.Di=bX(!1,X.player_wide);this.visibility=new z1V;g.d(this,this.visibility);this.G("web_log_theater_mode_visibility")&&this.FR(bX(!1,X.player_wide));this.Ma=bX(!1,X.external_list);this.events=new g.KP(this);g.d(this,this.events);this.G("start_client_gcf")&&(K7(ET(),{LV:QB,HC:vx7()}),this.wc=ET().resolve(QB),Gke(this.wc));this.hpp=new Oa;g.d(this,this.hpp);this.G6=new Zki;Q=new zE;this.PM=new g.WP(this,Q); g.d(this,this.PM);this.template=new J9i(this);g.d(this,this.template);this.appState=1;this.PK=wUU(this);g.d(this,Q);Q={};this.py=(Q.internalvideodatachange=this.zs,Q.playbackready=this.Bbm,Q.playbackstarted=this.Tbi,Q.statechange=this.LpH,Q);this.BU=new Y0(this.PM);this.ET=hC7(this);Q=this.tT.S;!1!==Q&&this.IY("badps",{hbp:Q,hostname:window.location.hostname,ps:this.tT.playerStyle});this.M9=new DyG(this.tT,this.ET);this.PM.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||L2U(this.ET))&& LQT(this);Q=10;g.jJ(this.tT)&&(Q=3);T$(this.tT)&&(Q=g.i2(this.tT.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Mx=new g.N$(this.PM,Q);Q=kmZ(this);this.Mx.xk(Q);YVw(this);Q={};this.s7=(Q.airplayactivechange=this.fWd,Q.airplayavailabilitychange=this.gPB,Q.beginseeking=this.tzO,Q.sabrCaptionsDataLoaded=this.s6c,Q.endseeking=this.AWm,Q.internalAbandon=this.yWd,Q.internalaudioformatchange=this.rs_,Q.internalvideodatachange=this.nSb,Q.internalvideoformatchange=this.Q6p,Q.liveviewshift=this.WYm, Q.playbackstalledatstart=this.oSm,Q.progresssync=this.MzT,Q.onAbnormalityDetected=this.b7i,Q.onSnackbarMessage=this.Isb,Q.onLoadProgress=this.zGM,Q.SEEK_COMPLETE=this.Dxp,Q.SEEK_TO=this.RGA,Q.onVideoProgress=this.SY_,Q.onLoadedMetadata=this.HYB,Q.onAutoplayBlocked=this.dxi,Q.onPlaybackPauseAtStart=this.Vzp,Q.playbackready=this.xxH,Q.statechange=this.G$,Q.newelementrequired=this.Pr,Q.heartbeatparams=this.NMA,Q.videoelementevent=this.UxH,Q.drmoutputrestricted=this.uqO,Q.signatureexpired=this.asM,Q.nonfatalerror= this.YYb,Q.reloadplayer=this.pnB,Q);this.gs=new g.KP(this);g.d(this,this.gs);this.dG=new hm;g.d(this,this.dG);this.lG=this.K1=-1;this.dF=new g.fU(this.template.resize,16,this.template);g.d(this,this.dF);this.UY=new lqV(this.PM,this.tT,this.dh(),this);this.WI=new Ip(this);g.d(this,this.WI);this.zU=new F6(this);g.d(this,this.zU);nOU(this.tT.N.c);this.events.B(this.PM,g.Dy("appapi"),this.wMp);this.events.B(this.PM,g.N3("appapi"),this.XMT);this.events.B(this.PM,g.Dy("appprogressboundary"),this.iYM);this.events.B(this.PM, g.N3("applooprange"),this.z5);this.events.B(this.PM,"presentingplayerstatechange",this.Vu);this.events.B(this.PM,"resize",this.ZYU);this.template.s_(ZN(document,G));this.events.B(this.PM,"offlineslatestatechange",this.ThT);this.events.B(this.PM,"sabrCaptionsTrackChanged",this.Nec);this.events.B(this.PM,"sabrCaptionsBufferedRangesUpdated",this.ASB);this.ET.U.Z().Nu&&ES(this.ET,"offline");this.tT.Xm&&g.ud("ux",g.lr);G=g.i2(this.tT.experiments,"html5_defer_fetch_att_ms");this.g0=new g.fU(this.aJ_,G, this);g.d(this,this.g0);this.gM().eG()&&(g.zJ()&&this.gM().j.push("remote"),jHG(this));this.M9.tick("fs");Mm0(this);this.tT.Xm&&ES(this.ET,"ux",!0);g.Jn(this.ET.U.Z())&&ES(this.ET,"embed");this.G("web_player_sentinel_is_uniplayer")||g.EL(new g.Ic("Player experiment flags missing","web_player_sentinel_is_uniplayer"));G=this.G("web_player_sentinel_yt_experiments_sync");Q=g.jg("web_player_sentinel_yt_experiments_sync");G!==Q&&g.EL(new g.Ic("b/195699950",{yt:G,player:Q}));this.H6=mwX(this);if(G=g.i2(this.tT.experiments, "html5_block_pip_safari_delay"))this.e2=new g.fU(this.Dc,G,this),g.d(this,this.e2);xD=this.tT.Js;this.PM.publish("applicationInitialized");this.logger.debug("constructor end")}; mwX=function(G){function X(Q){Q.stack&&Q.stack.indexOf("player")!==-1&&G.eA().j9(Q)} xB.subscribe("handleError",X);yP.push(X);return function(){xB.unsubscribe("handleError",X);var Q=yP.indexOf(X);Q!==-1&&yP.splice(Q,1)}}; kmZ=function(G){var X=new g.ML(G.tT,G.B0);G.PM.publish("initialvideodatacreated",X);return jq(G,1,X,!1)}; YVw=function(G){var X=G.dh();X.setPlaybackRate(G.tT.V?1:otV(G,Number(g.xL("yt-player-playback-rate"))||1));X.Ej(G.py,G);X.OZ()}; hC7=function(G){var X="",Q=bxw(G);Q.indexOf("//")===0&&(Q=G.tT.protocol+":"+Q);var R=Q.lastIndexOf("/base.js");R!==-1&&(X=Q.substring(0,R+1));if(Q=Error().stack)if(Q=Q.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))Q=Q[1],Q.includes(X)||g.EL(Error("Player module URL mismatch: "+(Q+" vs "+X+".")));X=new q67(G.PM,X);Q={};wFl(X,(Q.destroyed=function(){G.onApiChange()},Q)); return X}; wUU=function(G){if(G.tT.storeUserVolume){G=g.xL("yt-player-volume")||{};var X=G.volume;G={volume:isNaN(X)?100:g.pT(Math.floor(X),0,100),muted:!!G.muted}}else G={volume:100,muted:G.tT.mute};return G}; My=function(G){G.mediaElement=G.tT.deviceIsAudioOnly?new g.yS(g.ml("AUDIO")):Bw.pop()||new g.yS(g.ml("VIDEO"));g.d(G,G.mediaElement);G.eA().setMediaElement(G.mediaElement);try{G.tT.l9?(G.NT&&G.events.Ds(G.NT),G.NT=G.events.B(G.mediaElement,"volumechange",G.eyH)):(G.mediaElement.Gk(G.PK.muted),G.mediaElement.setVolume(G.PK.volume/100))}catch(S){G.KL("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(S&&typeof S==="object"&&"message"in S&&typeof S.message==="string"&&S.message.replace(/[;:,]/g, "_")));return}g.e8(G.gs);ugU(G);var X=G.template,Q=G.mediaElement.V0();X.b6=Q;X.FV=!1;X.b6.parentNode||sM(X.rX,X.b6,0);X.Jq=new g.ps(0,0,0,0);RCy(X);Lu(X);Q=X.b6;g.Gk(Q,"video-stream");g.Gk(Q,g.KR.MAIN_VIDEO);var R=X.app.Z();R.F0&&Q.setAttribute("data-no-fullscreen","true");R.G("html5_local_playsinline")?"playsInline"in mB()&&(Q.playsInline=!0):R.KQ&&(Q.setAttribute("webkit-playsinline",""),Q.setAttribute("playsinline",""));R.OH&&X.b6&&X.B(Q,"click",Q.play,Q);try{G.mediaElement.activate()}catch(S){G.KL("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(S&&typeof S==="object"&&"message"in S&&typeof S.message==="string"&&S.message.replace(/[;:,]/g,"_")))}}; sHS=function(G){if(!P4U(G)){var X=G.dh().EY();X&&(X=X.uC(),X instanceof Promise&&X.catch(function(){})); mC(G,IT(G.getPlayerStateObject()))}}; ugU=function(G){var X=G.mediaElement;sA()?G.gs.B(X,"webkitpresentationmodechanged",G.WeC):window.document.pictureInPictureEnabled&&(G.gs.B(X,"enterpictureinpicture",function(){G.Pu(!0)}),G.gs.B(X,"leavepictureinpicture",function(){G.Pu(!1)})); y9&&(G.gs.B(X,"webkitbeginfullscreen",function(){G.PO(3)}),G.gs.B(X,"webkitendfullscreen",function(){G.PO(0)}))}; Tj0=function(G,X){var Q=X.getPlayerType(),R=G.Mx.Y[Q]||null;X!==G.dh()&&X!==R&&(R==null||R.dispose(),G.Mx.Y[Q]=X)}; KQT=function(G,X){X=X===void 0?!0:X;G.logger.debug("start clear presenting player");var Q;if(Q=G.qj){Q=G.qj;var R=G.mediaElement;Q=!!R&&R===Q.mediaElement}Q&&(G.hR(),My(G));Q=G.eA();Q.hR(!X);Q.m6(G.s7,G);Q.getPlayerType()!==1&&Q.dispose();X=G.Mx;X.W=X.N;AM(X);G.logger.debug("finish clear presenting player")}; g.eCy=function(G,X,Q,R){var S=G.M9;X===2&&(S=new DyG(G.tT));return new g.iO(G.tT,X,S,G.template,function(Z,H,w){G.PM.publish(Z,H,w)},function(){return G.PM.getVisibilityState()},G.visibility,G,Q,R)}; jq=function(G,X,Q,R,S){G=g.eCy(G,X,Q,S);G=new g.XK(G);R&&G.OZ();return G}; oR=function(G,X){return G.Nc(X)?G.dh():X}; uf=function(G,X){var Q=G.eA();return X===G.dh()&&G.Nc(X)&&G.Nc(Q)?Q:X}; EtZ=function(G){G.logger.debug("start application playback");if(G.dh().getPlayerState().isError())G.logger.debug("start application playback done, player in error state");else{var X=P0(G);G.gM().isLoaded();X&&G.SC(6);rU7(G);sxX(G.ET)||ajU(G)}}; ajU=function(G){if(!P0(G)){var X=OS(G.ET);X&&!X.created&&hHw(G.ET)&&(G.logger.debug("reload ad module"),X.create())}}; rU7=function(G){G.logger.debug("start presenter playback");var X=G.getVideoData(),Q=G.ET;sxX(Q)||Q.gU();!zd&&Q.U.G("html5_allow_asmjs")&&EYG(Q);ES(Q,"embed");ES(Q,"kids");ES(Q,"remote");ES(Q,"miniplayer");ES(Q,"offline");ES(Q,"unplugged");ES(Q,"ypc",!1,!0);Q.U.G("html5_ypc_clickwrap_module_refactor")||ES(Q,"ypc_clickwrap",!1,!0);ES(Q,"yto",!1,!0);ES(Q,"webgl",!1,!0);T5Z(Q)||(ES(Q,"captions",!0),ES(Q,"endscreen"),Q.n1(),ES(Q,"creatorendscreen",!0));Q.Tb();Q.U.publish("modulesCreated");G.PM.publish("videoready", X)}; sQ=function(G){G=G.gM();G.eG();return HP(G)}; Mm0=function(G){G.logger.debug("start prepare initial playback");G.Vy();var X=G.B0;My(G);G.events.B(window,"resize",G.KYB);var Q=G.gM();G.PM.vR("onVolumeChange",G.PK);if(X&&$yw(X)){var R=oI(G.tT);R&&!G.Ma&&(X.fetch=0);var S=g.Jn(G.tT);S&&!G.Ma&&(X.fetch=0);Ty(G,X);g.Jn(G.tT)&&G.M9.tick("ep_pr_s");if(!R||G.Ma)if(S&&!G.Ma)xwT(G);else if(!Q.eG())G.playlist.onReady(function(){Ku(G)})}G.o5(G.dh(),!1,!0); g.N(G.dh().getPlayerState(),128)||(X=x1y(!G.tT.deviceIsAudioOnly),X==="fmt.noneavailable"?G.KL("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):X==="html5.missingapi"?G.KL(X,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):Q&&Q.eG()&&sQ(G)&&(G.tT.hE||G.tT.gL)?eq(G):Q.s0?G.PM.mutedAutoplay({durationMode:Q.mutedAutoplayDurationMode}):g.xL("yt-player-playback-on-reload")?(g.QL("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!G.tT.Yc}),g.E5("yt-player-playback-on-reload",!1), eq(G)):EB(G.tT)||Oky(G),g.sB(G.tT)||oD(G.tT)==="MWEB"?(g.D$(g.A7(),function(){rB(G)}),g.D$(g.A7(),function(){EQU()})):(rB(G),EQU()),G.logger.debug("finish prepare initial playback"))}; rB=function(G){if(!G.G("use_rta_for_player"))if(G.G("fetch_att_independently"))g.DA(G.g0);else{var X=G.getVideoData().botguardData;X&&g.j9(X,G.tT,G.getVideoData().Ai||"")}}; Oky=function(G){G.logger.debug("start initialize to CUED mode");G.PM.publish("initializingmode");G.SC(2);ES(G.ET,"remote");ES(G.ET,"miniplayer");G.logger.debug("initialized to CUED mode")}; eq=function(G){G.logger.debug("start initialize application playback");var X=G.dh();if(g.N(X.getPlayerState(),128))return!1;X=X.getVideoData();sQ(G)&&G.tT.gL&&(Bw.length&&G.Tt?(aR(G,{muted:!1,volume:G.PK.volume},!1),EQ(G,!1)):Bw.length||G.PK.muted||(aR(G,{muted:!0,volume:G.PK.volume},!1),EQ(G,!0)));sQ(G)&&g.Jn(G.tT)&&X.mutedAutoplay&&(aR(G,{muted:!0,volume:G.PK.volume},!1),EQ(G,!0));X.PT&&aR(G,{muted:!0,volume:G.PK.volume},!1);zCC(G,1,X,!1);var Q=G.dh();G.PM.publish("initializingmode");G.o5(Q);G.SC(3); var R;if(!(R=!G.tT.dB)){if(R=G.qj){R=G.qj;var S=G.mediaElement;R=!!S&&S===R.mediaElement}R=R&&G.LU}R&&(G.hR(),My(G),Q.setMediaElement(G.mediaElement));Q.EZ();if(g.N(Q.getPlayerState(),128))return!1;X.m7||mC(G,3);return G.LU=!0}; P0=function(G){G=fC(G.ET);return!!G&&G.loaded}; cUi=function(G,X){if(!G.sM)return!1;var Q=G.sM.startTimeMs*.001-1,R=G.sM.endTimeMs*.001;G.sM.type==="repeatChapter"&&R--;return Math.abs(X-Q)<=1E-6||Math.abs(X-R)<=1E-6||X>=Q&&X<=R}; gtZ=function(G){var X=G.eA();Ec(X.getVideoData())&&!X.Ec()&&(X=x9(G)*1E3-G.getVideoData().cE,G.G("html5_gapless_new_slr")?(G=G.zU,OQ(G.app,"gaplessshortslooprange"),X=new g.yG(0,X,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(G=G.app.eA())&&G.addCueRange(X)):G.setLoopRange({startTimeMs:0,endTimeMs:X,type:"shortsLoop"}))}; Uwi=function(G){var X=G.dh();if(!(g.N(X.getPlayerState(),64)&&G.gM().isLivePlayback&&G.sM.startTimeMs<5E3)){if(G.sM.type==="repeatChapter"){var Q,R=(Q=MOe(G.p7()))==null?void 0:Q.sG(),S;Q=(S=G.getVideoData())==null?void 0:S.gL;R instanceof g.Df&&Q&&(S=Q[qF(Q,G.sM.startTimeMs)],R.renderChapterSeekingAnimation(0,S.title));isNaN(Number(G.sM.loopCount))?G.sM.loopCount=0:G.sM.loopCount++;G.sM.loopCount===1&&G.PM.E_("innertubeCommand",G.getVideoData().Sdb)}R={nY:"application_loopRangeStart"};if(G.sM.type=== "clips"||G.sM.type==="shortsLoop")R.seekSource=58;X.seekTo(G.sM.startTimeMs*.001,R)}}; otV=function(G,X){var Q=G.PM.getAvailablePlaybackRates();X=Number(X.toFixed(2));G=Q[0];Q=Q[Q.length-1];X<=G?X=G:X>=Q?X=Q:(G=Math.floor(X*100+.001)%5,X=G===0?X:Math.floor((X-G*.01)*100+.001)/100);return X}; x9=function(G,X){X=G.a6({playerType:X});if(!X)return G.Mx.N.Ru();X=oR(G,X);return zy(G,X.Ru(),X)}; zy=function(G,X,Q){if(G.Nc(Q)&&(Q=Q.getVideoData(),!c0(G))){G=G.UY;for(var R=g.e(G.W),S=R.next();!S.done;S=R.next())if(S=S.value,Q.sY===S.sY){X+=S.z1/1E3;break}R=X;G=g.e(G.W);for(S=G.next();!S.done;S=G.next()){S=S.value;if(Q.sY===S.sY)break;var Z=S.z1/1E3;if(Z1&&(S=!1);G.dI&&S===X||(R=R.lock(S?"portrait":"landscape"),R!=null&&R.catch(function(){}),G.dI=!0)}else G.dI&&(G.dI=!1,R.unlock())}; F9=function(G,X,Q){G.PM.publish(X,Q);var R=g.jJ(G.tT)||g.ZK(G.tT)||g.lP(G.tT);if(Q&&R){switch(X){case "cuerangemarkersupdated":var S="onCueRangeMarkersUpdated";break;case "cuerangesadded":S="onCueRangesAdded";break;case "cuerangesremoved":S="onCueRangesRemoved"}S&&G.PM.E_(S,Q.map(function(Z){return{getId:function(){return this.id}, end:Z.end,id:Z.getId(),namespace:Z.namespace==="ad"?"ad":"",start:Z.start,style:Z.style,visible:Z.visible,markerPositionMs:Z.markerPositionMs}}))}}; Cu=function(G,X,Q,R,S,Z){Q=Q===void 0?!0:Q;var H=G.a6({playerType:S});if(!H||(H.getPlayerType()!==2||G.Nc(H))&&!g.$P(H.getVideoData())){var w=G.Mx.Y_;w?w.seekTo(X,{j6:!Q,f8:R,nY:"application",seekSource:Z}):(H&&H===G.dh()&&G.sM&&!cUi(G,X)&&G.setLoopRange(null),G.seekTo(X,Q,R,S,Z,"_request"))}}; ntT=function(G,X,Q,R){Q&&(G.hR(),My(G));Q=G.eA();Q.L5(X);var S=G.getVideoData(),Z={};Z.video_id=S.videoId;Z.adformat=S.adFormat;S.isLivePlayback||(Z.start=Q.getCurrentTime(),Z.resume="1");S.isLivePlayback&&Fu(S)&&g.kU(G.tT)&&(Z.live_utc_start=Q.mY(),Z.resume="1");S.Mi&&(Z.vvt=S.Mi);S.S&&(Z.vss_credentials_token=S.S,Z.vss_credentials_token_type=S.LQ);S.oauthToken&&(Z.oauth_token=S.oauthToken);Z.autoplay=1;Z.reload_count=S.Ps+1;Z.reload_reason=X;S.c5&&(Z.unplugged_partner_opt_out=S.c5);S.Fs&&(Z.ypc_is_premiere_trailer= S.Fs);S.playerParams&&(Z.player_params=S.playerParams);G.loadVideoByPlayerVars(Z,void 0,!0,void 0,void 0,R);X==="signature"&&G.BZ&&ajU(G)}; $wZ=function(G,X){G.gM().autonavState=X;g.E5("yt-player-autonavstate",X);G.PM.publish("autonavchange",X)}; bkG=function(G){var X=G.getVideoData().Xs,Q=G.tT.BM,R=G.isInline()&&!G.getVideoData().eK,S=G.mediaElement;X||Q||R?S.hp():(S.Rv(),aR(G,G.PK))}; gB=function(G){var X=OS(G.p7());X&&X.created&&(G.logger.debug("reset ad module"),X.destroy())}; c0=function(G){return G.getVideoData().enableServerStitchedDai&&!!G.BZ}; vt0=function(G,X){X.bounds=G.getBoundingClientRect();for(var Q=g.e(["display","opacity","visibility","zIndex"]),R=Q.next();!R.done;R=Q.next())R=R.value,X[R]=ns(G,R);X.hidden=!!G.hidden}; bxw=function(G){var X=G.webPlayerContextConfig.trustedJsUrl;return X?ub(X).toString():G.webPlayerContextConfig.jsUrl}; JUU=function(G,X){var Q=G.a6({playerType:1});if(Q){if(Q.getVideoData().clientPlaybackNonce===X)return Q;if((G=G.WI.N)&&G.getVideoData().clientPlaybackNonce===X)return G}return null}; LQT=function(G){function X(R){return p_(xRw(G.ET),function(S){return S.S$(R)})} G.M9.tick("wasm_s");var Q=jzl(G.webPlayerContextConfig.wasmModuleUrl,L2U(G.ET)?X:void 0,G.IY.bind(G));Q==null||p_(Q,function(R){G.M9.tick(R.N?"wasm_fa":"wasm_fw")},function(){G.M9.tick("wasm_ferr")}); fdi(G.tT,Q)}; ikl=function(G){return G.name==="TypeError"&&G.stack.includes("/s/player/")&&BT()<=105}; GrG=function(G){return G.isTimeout?"NO_BID":"ERR_BID"}; XCw=function(){var G=null;xfw().then(function(X){return G=X},function(X){return G=GrG(X)}); return G}; Q9i=function(){var G=Fq(1E3,"NO_BID");return g.gD(fWU([xfw(),G]).EG(GrG),function(){G.cancel()})}; tm=function(G){return G.hS?g.BA(g.la(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Va=function(G){this.player=G;this.Y=this.N=1}; ZXS=function(G,X,Q,R,S,Z){X.client||(X.client={});G.player.Z().G("h5_remove_url_for_get_ad_break")||(X.client.originalUrl=Q);var H=G_(Q),w=g.hN(Q)?!1:!0;(H||w)&&typeof Intl!=="undefined"&&(X.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);w=g.hN(Q)?!1:!0;if(H||w||R!==""){var h={};Q=nc(Zz(R)).split("&");var L=new Map;Q.forEach(function(k){k=k.split("=");k.length>1&&L.set(k[0].toString(),decodeURIComponent(k[1].toString()))}); L.has("bid")&&(h.bid=L.get("bid"));h.params=[];RxZ.forEach(function(k){L.has(k)&&(k={key:k,value:L.get(k)},h.params.push(k))}); SgT(G,h);X.adSignalsInfo=h}X.client.unpluggedAppInfo||(X.client.unpluggedAppInfo={});X.client.unpluggedAppInfo.enableFilterMode=!1;Q=S.N.cosver;Q!=null&&Q!=="cosver"&&(X.client.osVersion=Q);Q=S.N.cplatform;Q!=null&&Q!=="cplatform"&&Q!==""&&(X.client.platform=Q);Q=S.N.cmodel;Q!=null&&Q!=="cmodel"&&(X.client.deviceModel=Q);Q=S.N.cplayer;Q!=null&&Q!=="cplayer"&&(X.client.playerType=Q);Q=S.N.cbrand;Q!=null&&Q!=="cbrand"&&(X.client.deviceMake=Q);X.user||(X.user={});X.user.lockedSafetyMode=!1;(S.G("embeds_web_enable_iframe_api_send_full_embed_url")|| S.G("embeds_enable_autoplay_and_visibility_signals"))&&g.Sb(S)&&G5S(X,Z,G.player.getPlayerState(1))}; wCG=function(G,X){var Q=!1;if(X==="")return Q;X.split(",").forEach(function(R){var S={},Z={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},H="ACTIVE";R[0]==="!"&&(R=R.substring(1),H="INACTIVE");R=R.split("-");R.length<3||(R[0]in HXT&&(Z.clientName=HXT[R[0]]),R[1]in qgC&&(Z.platform=qgC[R[1]]),Z.applicationState=H,Z.clientVersion=R.length>2?R[2]:"",S.remoteClient=Z,G.remoteContexts?G.remoteContexts.push(S):G.remoteContexts=[S],Q=!0)}); return Q}; Lxe=function(G){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in hxC))return!1;G=G.split(RegExp("[:&]"));var X=hxC.FLAG_AUTO_CAPTIONS_DEFAULT_ON,Q="f"+(1+Math.floor(X/31)).toString();X=1<=2?H[1]:"";var w=YgZ.test(X),h=j90.exec(X);h=h!=null&&h.length>=2?h[1]:"";var L=MwS.exec(X);L=L!=null&&L.length>=2&&!Number.isNaN(Number(L[1]))?Number(L[1]):1;var k=mXi.exec(X);k=k!=null&&k.length>=2?k[1]:"0";var Y=hB(G.player.Z().a$),M=G.player.getVideoData(1),m=g.Aw(M.IU,!0),u="BISCOTTI_ID"in Q?Q.BISCOTTI_ID:"";ZXS(G,m,X,u.toString(),G.player.Z(), M);M={splay:!1,lactMilliseconds:Q.LACT.toString(),playerHeightPixels:Math.trunc(Q.P_H),playerWidthPixels:Math.trunc(Q.P_W),vis:Math.trunc(Q.VIS),signatureTimestamp:20312,autonavState:tm(G.player.Z())};R&&(R={},wCG(R,Q.YT_REMOTE)&&(M.mdxContext=R));if(R=oI7.includes(Y)?void 0:g.cT("PREF")){for(var r=R.split(RegExp("[:&]")),x=0,c=r.length;x1&&z[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}M.autoCaptionsDefaultOn= Lxe(R)}X=u_V.exec(X);(X=X!=null&&X.length>=2?X[1]:"")&&h&&(m.user.credentialTransferTokens=[{token:X,scope:"VIDEO"}]);X={contentPlaybackContext:M};H={adBlock:Math.trunc(Q.AD_BLOCK),params:H,breakIndex:L,breakPositionMs:k,clientPlaybackNonce:Q.CPN,topLevelDomain:Y,isProxyAdTagRequest:w,context:m,adSignalsInfoString:nc(Zz(u.toString())),overridePlaybackContext:X};S!==void 0&&(H.cueProcessedMs=Math.round(S).toString());h&&(H.videoId=h);Q.LIVE_TARGETING_CONTEXT&&(H.liveTargetingParams=Q.LIVE_TARGETING_CONTEXT); Q.AD_BREAK_LENGTH&&(H.breakLengthMs=Math.trunc(Q.AD_BREAK_LENGTH*1E3).toString());Z&&(H.driftFromHeadMs=Z.toString());H.currentMediaTimeMs=Math.round(G.player.getCurrentTime(1)*1E3);(G=G.player.getGetAdBreakContext())&&(H.getAdBreakContext=G);return H}; s90=function(){Va.apply(this,arguments)}; TTX=function(G,X,Q,R,S){var Z=Q.A4;var H=Q.C4;var w=G.player.Z().kU,h=0;Q.cueProcessedMs&&H&&!Z&&(Q=H.end-H.start,Q>0&&(h=Math.floor(Q/1E3)));var L={AD_BLOCK:S,AD_BREAK_LENGTH:Z?Z.Du:h,AUTONAV_STATE:tm(G.player.Z()),CA_TYPE:"image",CPN:G.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:G.player.zx()*1E3,LACT:u6(),LIVE_INDEX:Z?G.Y++:1,LIVE_TARGETING_CONTEXT:Z&&Z.context?Z.context:"",MIDROLL_POS:H?Math.round(H.start/1E3):0,MIDROLL_POS_MS:H?Math.round(H.start):0,VIS:G.player.getVisibilityState(), P_H:G.player.mp().uF().height,P_W:G.player.mp().uF().width,YT_REMOTE:w?w.join(","):""},k=Sg(Rm);Object.keys(k).forEach(function(Y){k[Y]!=null&&(L[Y.toUpperCase()]=k[Y].toString())}); R!==""&&(L.BISCOTTI_ID=R);R={};Q9(X)&&(R.sts="20312",(G=G.player.Z().forcedExperiments)&&(R.forced_experiments=G));return ib(g.Eu(X,L),R)}; Kxy=function(G,X){var Q=G.player.Z(),R,S=(R=G.player.getVideoData(1))==null?void 0:R.oauthToken;return g.z$(Q,S).then(function(Z){if(Z&&XB()){var H=iG();GT(H,Z)}return g.lj(G.player.Ub(H),X,"/youtubei/v1/player/ad_break").then(function(w){return w})})}; ex7=function(G){this.nO=G}; rIG=function(G){this.U=G}; a7V=function(G){this.nO=G}; xX0=function(G){g.I.call(this);this.N=G;this.Q4=EIC(this)}; EIC=function(G){var X=new xtU(G.N.OY);g.d(G,X);G=[new ex7(G.N.nO),new rIG(G.N.U),new a7V(G.N.nO),new um(G.N.RX,G.N.Xe),new sf,new e6(G.N.bL,G.N.y5,G.N.nO),new PS,new oK];G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())O7G(X,Q.value);G=g.e(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(Q=G.next();!Q.done;Q=G.next())Tj(X,Q.value,function(){}); return X}; IR=function(G){var X=G.lB,Q=G.HM;G=G.ge;var R=new djX,S={w2:new aTT(X.get(),Q),HM:Q};return{Sj:new lM(Q,G,X,S),context:S,ea:R}}; dB=function(G,X,Q,R,S){g.I.call(this);this.W=X;this.RU=Q;this.lB=R;this.GF=S;this.listeners=[];var Z=new TJ(this);g.d(this,Z);Z.B(G,"internalAbandon",this.SMp);this.addOnDisposeCallback(function(){g.e8(Z)})}; W0=function(G){this.U=G;this.adVideoId=this.N=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.W=this.Y=!1;this.adFormat=null;this.V="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; OXT=function(G){G.contentCpn=null;G.adCpn=null;G.videoId=null;G.adVideoId=null;G.adFormat=null;G.V="AD_PLACEMENT_KIND_UNKNOWN";G.actionType="unknown_type";G.Y=!1;G.W=!1}; zxw=function(G,X){G=g.e(X);for(X=G.next();!X.done;X=G.next())if((X=X.value.renderer)&&(X.instreamVideoAdRenderer||X.linearAdSequenceRenderer||X.sandwichedLinearAdRenderer||X.instreamSurveyAdRenderer)){aa("ad_i");g.EF({isMonetized:!0});break}}; cIZ=function(G){var X;(X=G.U.getVideoData(1))!=null&&X.yH&&(G.W=!1,X={},G.N&&G.videoId&&(X.cttAuthInfo={token:G.N,videoId:G.videoId}),x5("video_to_ad",X))}; Pa=function(G){G.W=!1;var X={};G.N&&G.videoId&&(X.cttAuthInfo={token:G.N,videoId:G.videoId});x5("ad_to_video",X);gIT(G)}; gIT=function(G){if(G.Y)if(G.V==="AD_PLACEMENT_KIND_START"&&G.actionType==="video_to_ad")KJ("video_to_ad");else{var X={adBreakType:$q(G.V),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:G.videoStreamType};G.actionType==="ad_to_video"?(G.contentCpn&&(X.targetCpn=G.contentCpn),G.videoId&&(X.targetVideoId=G.videoId)):(G.adCpn&&(X.targetCpn=G.adCpn),G.adVideoId&&(X.targetVideoId=G.adVideoId));G.adFormat&&(X.adType=G.adFormat);G.contentCpn&& (X.clientPlaybackNonce=G.contentCpn);G.videoId&&(X.videoId=G.videoId);G.adCpn&&(X.adClientPlaybackNonce=G.adCpn);G.adVideoId&&(X.adVideoId=G.adVideoId);g.EF(X,G.actionType);G.U.Z().experiments.TT("html5_ads_csi_qoes")&&(X=G.U.HO(G.actionType==="ad_to_video"?1:2),X=(0,g.TB)()-1E3*X,zC("qoes",X,G.actionType))}}; pu=function(G){g.I.call(this);this.U=G;this.N=new Map;this.W=new TJ(this);g.d(this,this.W);this.W.B(this.U,g.Dy("ad"),this.onCueRangeEnter,this);this.W.B(this.U,g.N3("ad"),this.onCueRangeExit,this)}; UXl=function(G,X,Q,R,S,Z,H){g.yG.call(this,X,Q,{id:G,namespace:"ad",priority:S,visible:R,associatedClipId:Z,markerPositionMs:H})}; ya=function(G){this.U=G}; l7X=function(G,X){G.U.cueVideoByPlayerVars(X,2)}; fu=function(G){this.U=G}; Dp=function(G){this.U=G;g.i2(this.U.Z().experiments,"tv_pacf_logging_sample_rate")}; BTV=function(G){return Fd(G,"html5_ssap_play_cached_preroll")}; hR=function(G,X){X=X===void 0?!1:X;return G.U.Z().G("html5_ssap_force_ads_ctmp")?!0:(X||G.U.Z().n7())&&G.U.Z().G("html5_ssap_pacf_qoe_ctmp")}; Ny=function(G){var X;return(X=G.U.getVideoData(1)==null?void 0:!1)!=null?X:!1}; Fd=function(G,X){return G.U.Z().G(X)}; FxG=function(G){return G.U.Z().G("substitute_ad_cpn_macro_in_ssdai")}; be=function(G){var X,Q,R;return((X=G.U.getVideoData(1).getPlayerResponse())==null?void 0:(Q=X.playerConfig)==null?void 0:(R=Q.daiConfig)==null?void 0:R.enableServerStitchedDai)||!1}; l_l=function(G){return G.U.Z().G("html5_enable_vod_slar_with_notify_pacf")}; CBw=function(G){return G.U.Z().G("html5_recognize_predict_start_cue_point")}; zl=function(G){return G.U.Z().experiments.TT("enable_desktop_player_underlay")}; twU=function(G){return G.U.Z().experiments.TT("html5_load_empty_player_in_media_break_sub_lra")}; q0=function(G){return G.U.Z().experiments.TT("html5_load_ads_instead_of_cue")}; ww=function(G){return G.U.Z().experiments.TT("html5_preload_ads")}; VwU=function(G){return G.U.Z().experiments.TT("should_ignore_cuepoints_during_lifa_preroll")}; xe=function(G){return G.U.Z().experiments.TT("enable_ads_control_flow_deterministic_id_generation")}; I7T=function(G){return G.U.Z().experiments.TT("enable_desktop_discovery_video_abandon_pings")||g.up(G.U.Z())}; dXU=function(G){return G.U.Z().experiments.TT("enable_progres_commands_lr_feeds")}; v9=function(G){return G.U.Z().experiments.TT("html5_cuepoint_identifier_logging")}; d2S=function(G){G=G.U.getVideoData(1);return!!G&&G.G("html5_preload_first_vod_video_ad")&&!G.isDaiEnabled()&&!G.isLivePlayback}; WxS=function(G){return G.U.Z().experiments.TT("html5_ssdai_enable_media_end_cue_range")}; pCi=function(G){switch(G){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}}; yIX=function(){g.ic.call(this);var G=this;this.N={};this.addOnDisposeCallback(function(){for(var X=g.e(Object.keys(G.N)),Q=X.next();!Q.done;Q=X.next())delete G.N[Q.value]})}; Am=function(){if(f77===null){f77=new yIX;Kt(Di).W="b";var G=Kt(Di),X=Bk(G)=="h"||Bk(G)=="b",Q=!(QR(),!1);X&&Q&&(G.C=!0,G.S=new Lne)}return f77}; DXT=function(G,X,Q){G.N[X]=Q}; NTV=function(G){switch(G){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}}; nu=function(G,X,Q){this.RU=G;this.U=X;this.HM=Q;this.W=new Set;this.N=new Map;Am().subscribe("adactiveviewmeasurable",this.CV,this);Am().subscribe("adfullyviewableaudiblehalfdurationimpression",this.lj,this);Am().subscribe("adviewableimpression",this.qI,this);Am().subscribe("adaudioaudible",this.SZ,this);Am().subscribe("adaudiomeasurable",this.v9,this)}; bf=function(G,X,Q){var R=Q.Z8,S=Q.TL,Z=Q.listener,H=Q.AA;Q=Q.J8===void 0?!1:Q.J8;if(G.N.has(X))qQ("Unexpected registration of layout in LidarApi");else{if(H){if(G.W.has(H))return;G.W.add(H)}G.N.set(X,Z);x7(QR().hW,"fmd",1);T7i(Kt(Di),R);var w=Q?X:void 0;DXT(Am(),X,{dQ:function(){if(!S)return{};var h=G.U.getPresentingPlayerType(!0),L;return(L=G.U.getVideoData(h))!=null&&L.isAd()?{currentTime:G.RU.get().getCurrentTimeSec(h,!1,w),duration:S,isPlaying:$9(G.RU.get(),h).isPlaying(),isVpaid:!1,isYouTube:!0, volume:G.RU.get().isMuted()?0:G.RU.get().getVolume()/100}:{}}})}}; v0=function(G,X){G.N.has(X)?(G.N.delete(X),delete Am().N[X]):qQ("Unexpected unregistration of layout in LidarApi")}; AIU=function(G,X){if(G.U.isLifaAdPlaying()){var Q=G.U.V5(!0,!0);G.j4(X,Q.width*.5*1.1,Q.height*.25*1.1,Q.width*.5*.9,Q.height*.5*.9)}}; bXV=function(G,X,Q){var R={};nIy(G,R,X,Q);$XG(R);R.LACT=Jm(function(){return u6().toString()}); R.VIS=Jm(function(){return G.getVisibilityState().toString()}); R.SDKV="h.3.0";R.VOL=Jm(function(){return G.isMuted()?"0":Math.round(G.getVolume()).toString()}); R.VED="";return R}; vIi=function(G,X){var Q={};if(X||!G||!G.kind)return Q;if(G.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||G.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!G.adTimeOffset||!G.adTimeOffset.offsetStartMilliseconds)return g.aU(Error("malformed AdPlacementConfig")),Q;Q.MIDROLL_POS=Jm(lE(Math.round(FH(G.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else Q.MIDROLL_POS=Jm(lE("0"));return Q}; Jm=function(G){return{toString:function(){return G()}}}; JIi=function(G,X,Q){function R(w,h){(h=Q[h])&&(Z[w]=h)} function S(w,h){(h=Q[h])&&(Z[w]=H(h))} if(!Q||g.Mn(Q))return G;var Z=Object.assign({},G),H=X?encodeURIComponent:function(w){return w}; S("DV_VIEWABILITY","doubleVerifyViewability");S("IAS_VIEWABILITY","integralAdsViewability");S("MOAT_INIT","moatInit");S("MOAT_VIEWABILITY","moatViewability");R("GOOGLE_VIEWABILITY","googleViewability");R("VIEWABILITY","viewability");return Z}; nIy=function(G,X,Q,R){X.CPN=Jm(function(){var S;(S=G.getVideoData(1))?S=S.clientPlaybackNonce:(g.EL(Error("Video data is null.")),S=null);return S}); X.AD_MT=Jm(function(){if(R!=null)var S=R;else{var Z=Q;G.Z().G("html5_ssap_use_cpn_to_get_time")||(Z=void 0);if(G.Z().G("enable_h5_shorts_ad_fill_ad_mt_macro")||G.Z().G("enable_desktop_discovery_pings_ad_mt_macro")||g.up(G.Z())){var H=G.getPresentingPlayerType(!0),w;S=((w=G.getVideoData(H))==null?0:w.isAd())?iXw(G,H,Z):0}else S=iXw(G,2,Z)}return Gik(S)}); X.MT=Jm(function(){return Gik(G.getCurrentTime(1,!1))}); X.P_H=Jm(function(){return G.mp().uF().height.toString()}); X.P_W=Jm(function(){return G.mp().uF().width.toString()}); X.PV_H=Jm(function(){return G.mp().getVideoContentRect().height.toString()}); X.PV_W=Jm(function(){return G.mp().getVideoContentRect().width.toString()})}; Gik=function(G){return Math.round(Math.max(0,G*1E3)).toString()}; $XG=function(G){G.CONN=Jm(lE("0"));G.WT=Jm(function(){return Date.now().toString()})}; iXw=function(G,X,Q){return Q!==void 0?G.getCurrentTime(X,!1,Q):G.getCurrentTime(X,!1)}; Xlv=function(){}; Q0o=function(G,X,Q,R,S){var Z,H,w,h,L,k,Y,M,m,u,r,x,c;g.F(function(z){switch(z.W){case 1:Z=!!X.scrubReferrer;H=g.Eu(X.baseUrl,JIi(Q,Z,R));w={};if(!X.headers){z.pO(2);break}h=G.V();if(!h.N){L=h.getValue();z.pO(3);break}return g.l(z,h.N,4);case 4:L=z.N;case 3:k=L;Y=g.e(X.headers);for(M=Y.next();!M.done;M=Y.next())switch(m=M.value,m.headerType){case "VISITOR_ID":g.WO("VISITOR_DATA")&&(w["X-Goog-Visitor-Id"]=g.WO("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.WO("EOM_VISITOR_DATA")&&(w["X-Goog-EOM-Visitor-Id"]= g.WO("EOM_VISITOR_DATA"));break;case "USER_AUTH":k&&(w.Authorization="Bearer "+k);break;case "PLUS_PAGE_ID":(u=G.C())&&(w["X-Goog-PageId"]=u);break;case "AUTH_USER":r=G.N();!k&&r&&(w["X-Goog-AuthUser"]=r);break;case "DATASYNC_ID":if(x=void 0,(x=G.Y())==null?0:x.TT("enable_datasync_id_header_in_web_vss_pings"))c=G.W(),G_(H)&&g.WO("LOGGED_IN")&&c&&(w["X-YouTube-DataSync-Id"]=c)}"X-Goog-EOM-Visitor-Id"in w&&"X-Goog-Visitor-Id"in w&&delete w["X-Goog-Visitor-Id"];case 2:g.gW(H,void 0,Z,Object.keys(w).length!== 0?w:void 0,"",!0,S),g.rX(z)}})}; RUO=function(G,X,Q,R,S){this.V=G;this.C=X;this.N=Q;this.W=R;this.Y=S}; SCZ=function(G,X){this.N=G;this.HM=X}; Gf=function(G,X,Q,R,S,Z,H){var w=w===void 0?new RUO(function(){var h=G.Z(),L=G.getVideoData(1);return g.z$(h,L?g.qY(L):"")},function(){return G.Z().pageId},function(){return G.Z().Yc},function(){var h; return(h=G.Z().datasyncId)!=null?h:""},function(){return G.Z().experiments}):w; this.U=G;this.W=X;this.y0=Q;this.lB=R;this.Sj=S;this.HM=Z;this.ea=H;this.V=w;this.aH=null;this.N=new Map;this.Y=new SCZ(w,this.HM)}; HVL=function(G,X,Q,R,S){var Z=H3(G.W.get(),Q);Z?(Q=MU(G,ZVO(Z),Z,void 0,void 0,R),X.hasOwnProperty("baseUrl")?G.V.send(X,Q):G.Y.send(X,Q,{},S)):qQ("Trying to ping from an unknown layout",void 0,void 0,{layoutId:Q})}; BVy=function(G,X,Q,R,S,Z){R=R===void 0?[]:R;var H=H3(G.W.get(),X);if(H){var w=G.y0.get().XA(X,Q),h=MU(G,ZVO(H),H,S,Z);R.forEach(function(L,k){L.baseUrl&&(G.Y.send(L.baseUrl,h,w,L.attributionSrcMode),L.serializedAdPingMetadata&&G.Sj.Ep("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,H,new hzZ(L,k),void 0,void 0,H.adLayoutLoggingData))})}else qQ("Trying to track from an unknown layout.",void 0,void 0,{layoutId:X, trackingType:Q})}; qU=function(G,X){G.U.sendVideoStatsEngageEvent(X,void 0,2)}; xW=function(G,X){g.QL("adsClientStateChange",X)}; qCH=function(G,X){G.N.has(X.X3())?qQ("Trying to register an existing AdErrorInfoSupplier."):G.N.set(X.X3(),X)}; wlk=function(G,X){G.N.delete(X.X3())||qQ("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; ca=function(G,X,Q){typeof Q==="string"?G.U.getVideoData(1).aY(X,Q):G.U.getVideoData(1).Ni(X,Q)}; ZVO=function(G){var X=Nj(G.clientMetadata,"metadata_type_ad_placement_config");G=Nj(G.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:X,wl:G}}; MU=function(G,X,Q,R,S,Z){var H=Q?hUS(G):{},w=Q?Lwn(G,Q.layoutId):{},h=kiv(G),L,k=S!=null?S:(L=Dt(G.lB.get(),2))==null?void 0:L.clientPlaybackNonce;S=void 0;if(Q){var Y;if((Y=G.ea.N.get(Q.layoutId))==null?0:Y.J8)S=Q.layoutId}Y={};G=Object.assign({},bXV(G.U,S,R),vIi(X.adPlacementConfig,(Q==null?void 0:Q.renderingContent)!==void 0),w,H,h,(Y.FINAL=Jm(function(){return"1"}),Y.AD_CPN=Jm(function(){return k||""}),Y)); (Q==null?void 0:Q.renderingContent)!==void 0||(G.SLOT_POS=Jm(function(){return(X.wl||0).toString()})); Q={};Z=Object.assign({},G,Z);G=g.e(Object.values(YCv));for(R=G.next();!R.done;R=G.next())R=R.value,H=Z[R],H!=null&&H.toString()!=null&&(Q[R]=H.toString());return Q}; hUS=function(G){var X={},Q,R=(Q=G.aH)==null?void 0:Q.uc/1E3;R!=null&&(X.SURVEY_ELAPSED_MS=Jm(function(){return Math.round(R*1E3).toString()})); X.SURVEY_LOCAL_TIME_EPOCH_S=Jm(function(){return Math.round(Date.now()/1E3).toString()}); return X}; Lwn=function(G,X){G=G.N.get(X);if(!G)return{};G=G.F$();if(!G)return{};X={};return X.YT_ERROR_CODE=G.Vz.toString(),X.ERRORCODE=G.Ek.toString(),X.ERROR_MSG=G.errorMessage,X}; kiv=function(G){var X={},Q=G.U.getVideoData(1);X.ASR=Jm(function(){var R;return(R=Q==null?void 0:Q.m9)!=null?R:null}); X.EI=Jm(function(){var R;return(R=Q==null?void 0:Q.eventId)!=null?R:null}); return X}; Xx=function(G,X,Q){g.I.call(this);this.U=G;this.kB=X;this.HM=Q;this.listeners=[];this.Je=null;this.Hp=new Map;X=new g.KP(this);g.d(this,X);X.B(G,"videodatachange",this.Pfc);X.B(G,"serverstitchedvideochange",this.YTA);this.yI=Dt(this)}; Dt=function(G,X){var Q=G.U.getVideoData(X);return Q?G.gA(Q,X||G.U.getPresentingPlayerType(!0)):null}; j0L=function(G,X,Q){var R=G.gA(X,Q);G.yI=R;G.listeners.forEach(function(S){S.Ne(R)})}; MyL=function(G){switch(G){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}}; Q5=function(G,X,Q){g.I.call(this);this.U=G;this.lB=X;this.HM=Q;this.listeners=[];this.Oy=[];this.N=function(){qQ("Called 'doUnlockPreroll' before it's initialized.")}; X=new TJ(this);Q=new g.KP(this);g.d(this,Q);g.d(this,X);X.B(G,"progresssync",this.cWH);X.B(G,"presentingplayerstatechange",this.hG_);X.B(G,"fullscreentoggled",this.onFullscreenToggled);X.B(G,"onVolumeChange",this.onVolumeChange);X.B(G,"minimized",this.Dk);X.B(G,"overlayvisibilitychange",this.lc);X.B(G,"shortsadswipe",this.qa);X.B(G,"resize",this.EM);Q.B(G,g.Dy("appad"),this.Q1)}; Rx=function(G){Ny(G.HM.get())||G.N()}; meZ=function(G,X){G.Oy=G.Oy.filter(function(Q){return Q!==X})}; ST=function(G,X,Q){return G.getCurrentTimeSec(X,Q)}; Za=function(G,X){var Q;X=(Q=G.lB.get().Hp.get(X))!=null?Q:null;if(X===null)return qQ("Expected ad video start time on playback timeline"),0;G=G.U.getCurrentTime(2,!0);return G0){var Z=X.end.toString();S.forEach(function(H){(H=H.config&&H.config.adPlacementConfig)&&H.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&H.adTimeOffset&&H.adTimeOffset.offsetEndMilliseconds==="-1"&&H.adTimeOffset.offsetEndMilliseconds!==Z&&(H.adTimeOffset.offsetEndMilliseconds=Z)}); R.map(function(H){return g.y(H,jc)}).forEach(function(H){var w; (H=H==null?void 0:(w=H.slotEntryTrigger)==null?void 0:w.mediaTimeRangeTrigger)&&H.offsetEndMilliseconds==="-1"&&(H.offsetEndMilliseconds=Z)})}return{e_:S, adSlots:R,mU:!1,ssdaiAdsConfig:G.ssdaiAdsConfig}}; LW=function(G){g.I.call(this);this.U=G;this.listeners=[];this.N=new TJ(this);g.d(this,this.N);this.N.B(this.U,"aduxclicked",this.onAdUxClicked);this.N.B(this.U,"aduxmouseover",this.Ww);this.N.B(this.U,"aduxmouseout",this.yR);this.N.B(this.U,"muteadaccepted",this.edp)}; TXk=function(G,X,Q){X=g.P1(X,function(R){return new WXS(R,Q,R.id)}); G.U.E_("onAdUxUpdate",X)}; kY=function(G,X){G=g.e(G.listeners);for(var Q=G.next();!Q.done;Q=G.next())X(Q.value)}; YY=function(G,X){this.W=G;this.Y=X===void 0?!1:X;this.N={}}; Kwv=function(G,X){var Q=G.startSecs+G.Du;Q=Q<=0?null:Q;if(Q===null)return null;switch(G.event){case "start":case "continue":case "stop":break;case "predictStart":if(X)break;return null;default:return null}X=Math.max(G.startSecs,0);return{fE:new uI(X,Q),C9:new wK(X,Q-X,G.context,G.identifier,G.event,G.N)}}; eUZ=function(){this.N=[]}; OJT=function(G,X,Q){var R=g.fa(G.N,X);if(R>=0)return X;X=-R-1;return X>=G.N.length||G.N[X]>Q?null:G.N[X]}; jT=function(G,X,Q){g.I.call(this);this.U=G;this.HM=X;this.nO=Q;this.listeners=[];this.V=!1;this.Ke=[];this.N=null;this.C=new YY(this,CBw(X.get()));this.Y=new eUZ;this.W=null}; rG4=function(G,X){G.Ke.push(X);for(var Q=!1,R=g.e(G.listeners),S=R.next();!S.done;S=R.next())Q=S.value.ek(X)||Q;G.V=Q;v9(G.HM.get())&&ca(G.nO.get(),"onci","cpi."+X.identifier+";cpe."+X.event+";cps."+X.startSecs+";cbi."+Q)}; ETH=function(G,X){xW(G.nO.get(),{cuepointTrigger:{event:aGV(X.event),cuepointId:X.identifier,totalCueDurationMs:X.Du*1E3,playheadTimeMs:X.N,cueStartTimeMs:X.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:G.U.getVideoData(1).clientPlaybackNonce}})}; aGV=function(G){switch(G){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 Yi(G,"Unexpected cuepoint event")}}; MR=function(G){this.U=G}; m2=function(G){this.U=G}; xeH=function(G){switch(G){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:Yi(G,"unknown transitionReason")}}; ox=function(){g.I.apply(this,arguments);this.rSm=new Map}; OVL=function(G){this.U=G}; zUG=function(G,X,Q,R,S){g.I.call(this);var Z=this,H=OD(function(){return new Eq(Z.HM)}); g.d(this,H);var w=OD(function(){return new Oq(H,Z.HM)}); g.d(this,w);var h=OD(function(){return new SO}); g.d(this,h);var L=OD(function(){return new QX(G)}); g.d(this,L);var k=OD(function(){return new zW(H,w,Z.HM)}); g.d(this,k);var Y=OD(function(){return new B3}); g.d(this,Y);this.rh=OD(function(){return new LW(X)}); g.d(this,this.rh);this.RW=OD(function(){return new cZ(S)}); g.d(this,this.RW);this.xS=OD(function(){return new W0(X)}); g.d(this,this.xS);this.yN=OD(function(){return new pu(X)}); g.d(this,this.yN);this.Wn=OD(function(){return new ya(X)}); g.d(this,this.Wn);this.OY=OD(function(){return new fu(X)}); g.d(this,this.OY);this.HM=OD(function(){return new Dp(X)}); g.d(this,this.HM);var M=OD(function(){return new h0(R)}); g.d(this,M);var m=OD(function(){return new G7(Z.HM)}); g.d(this,m);this.qc=OD(function(){return new MR(X)}); g.d(this,this.qc);this.Ou=OD(function(){return new lT}); g.d(this,this.Ou);this.lB=OD(function(){return new Xx(X,Y,Z.HM)}); g.d(this,this.lB);var u=IR({lB:this.lB,HM:this.HM,ge:m}),r=u.context,x=u.ea;this.Sj=u.Sj;this.GF=OD(function(){return new jT(X,Z.HM,Z.nO)}); g.d(this,this.GF);this.Nx=OD(function(){return new m2(X)}); g.d(this,this.Nx);this.RU=OD(function(){return new Q5(X,Z.lB,Z.HM)}); g.d(this,this.RU);this.zg=OD(function(){return new ox}); g.d(this,this.zg);u=OD(function(){return new Nh(H,k,w,Z.HM,m,"SLOT_TYPE_ABOVE_FEED",Z.RU,Z.lE,Z.F9)}); g.d(this,u);this.wS=OD(function(){return new BZ(Z.HM)}); this.y0=OD(function(){return new nu(Z.RU,X,Z.HM)}); g.d(this,this.y0);this.nO=OD(function(){return new Gf(X,h,Z.y0,Z.lB,Z.Sj,Z.HM,x)}); g.d(this,this.nO);this.l8=new GW(ie,ug,function(z,B,V,p){return OH(w.get(),z,B,V,p)},L,k,w,m,this.HM,this.lB); g.d(this,this.l8);this.yD=new XU(L,u,Q,this.HM,G,this.lB,this.RU,this.xS);g.d(this,this.yD);var c=new dB(X,this.yD,this.RU,this.lB,this.GF);this.U$=OD(function(){return c}); this.P9=c;this.lE=new $p(L,k,this.U$,this.GF,this.RU,this.HM,this.nO,this.Nx);g.d(this,this.lE);this.JE=new Rg(L,k,this.yN,this.U$,r);g.d(this,this.JE);this.zF=new Yp(this.HM,L,k,u,this.lB,this.JE,Q,this.Wn);g.d(this,this.zF);this.r$=OD(function(){return new Jk(M,w,m,Z.HM,Z.nO,Z.RU,Z.Nx)}); g.d(this,this.r$);this.HR=OD(function(){return new iT}); g.d(this,this.HR);this.rL=new ke(G,this.rh,this.HM);g.d(this,this.rL);this.OM=new Ye(G);g.d(this,this.OM);this.gX=new jO(G);g.d(this,this.gX);this.vF=new m6(G,this.U$,r);g.d(this,this.vF);this.En=new og(G,this.yN,this.RU,this.lB,r);g.d(this,this.En);this.NI=new uM(G,this.lB);g.d(this,this.NI);this.F9=new TW(G,this.GF,this.RU,this.nO,this.U$,this.lE);g.d(this,this.F9);this.h1=new P3(G);g.d(this,this.h1);this.xr=new ag(G);g.d(this,this.xr);this.Q8=new sq(G);g.d(this,this.Q8);this.sF=new r9(G);g.d(this, this.sF);this.xr=new ag(G);g.d(this,this.xr);this.uL=OD(function(){return new q8}); g.d(this,this.uL);this.Cu=OD(function(){return new w9(Z.RU)}); g.d(this,this.Cu);this.w0=OD(function(){return new GDi(Z.rh,Z.nO,G,h,Z.y0)}); g.d(this,this.w0);this.g$=OD(function(){return new VM(Z.zF,L,H)}); g.d(this,this.g$);this.Wi=OD(function(){return new WK(Z.HM,Z.nO,Z.h1,Z.y0)}); g.d(this,this.Wi);this.Sl=OD(function(){return new tA(G,Z.xr,Z.h1,Z.lB,Z.Nx,Z.RU,Z.zg,Z.nO,Y,Z.GF,Z.y0,Z.wS,Z.Wn,Z.yN,Z.xS,Z.OY,Z.RW,Z.qc,Z.HM,h,r,x)}); g.d(this,this.Sl);this.yr=OD(function(){return new MaC(Z.RU,Z.nO,Z.RW,Z.HM,Z.y0,Z.lB)}); g.d(this,this.yr);this.c_=OD(function(){return new Jdi(Z.rh,Z.RU,Z.nO,h,Z.y0,Z.gX,Z.sF,Z.RW,Z.HM,Q)}); g.d(this,this.c_);this.YD=OD(function(){return new X5S(Z.rh,Z.nO,h)}); g.d(this,this.YD);this.ND=new w5(G,this.Ou,H);g.d(this,this.ND);this.Ud={ye:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zF],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.lE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JE]]),s9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.r$],["SLOT_TYPE_ABOVE_FEED",this.HR],["SLOT_TYPE_FORECASTING",this.HR], ["SLOT_TYPE_IN_PLAYER",this.HR],["SLOT_TYPE_PLAYER_BYTES",this.HR],["SLOT_TYPE_PLAYER_UNDERLAY",this.HR],["SLOT_TYPE_PLAYBACK_TRACKING",this.HR],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.HR]]),TJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.rL],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.rL],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.OM],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OM],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OM],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OM],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.OM],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OM],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.OM],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.OM],["TRIGGER_TYPE_CLOSE_REQUESTED",this.gX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vF],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.En],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.En],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.En],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.En],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.En],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.En],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.En],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.NI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.NI],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.h1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.vF],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Q8],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.sF],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xr],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.F9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.F9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.F9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.F9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.F9]]),J0:new Map([["SLOT_TYPE_ABOVE_FEED",this.uL], ["SLOT_TYPE_AD_BREAK_REQUEST",this.uL],["SLOT_TYPE_FORECASTING",this.uL],["SLOT_TYPE_IN_PLAYER",this.uL],["SLOT_TYPE_PLAYER_BYTES",this.Cu],["SLOT_TYPE_PLAYER_UNDERLAY",this.uL],["SLOT_TYPE_PLAYBACK_TRACKING",this.uL],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.uL]]),Zd:new Map([["SLOT_TYPE_ABOVE_FEED",this.w0],["SLOT_TYPE_AD_BREAK_REQUEST",this.g$],["SLOT_TYPE_FORECASTING",this.Wi],["SLOT_TYPE_PLAYER_BYTES",this.Sl],["SLOT_TYPE_PLAYBACK_TRACKING",this.yr],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.yr],["SLOT_TYPE_IN_PLAYER",this.c_],["SLOT_TYPE_PLAYER_UNDERLAY",this.YD]])};this.listeners=[h.get()];this.Gt={zF:this.zF,y5:this.HM.get(),Fm:this.RW.get(),YZ:this.RU.get(),yD:this.yD,eR:H.get(),Hl:this.Ou.get(),Xe:this.rL,RX:h.get(),bL:this.lB.get()}}; cGk=function(G,X,Q,R,S){g.I.call(this);var Z=this,H=OD(function(){return new Eq(Z.HM)}); g.d(this,H);var w=OD(function(){return new Oq(H,Z.HM)}); g.d(this,w);var h=OD(function(){return new SO}); g.d(this,h);var L=OD(function(){return new QX(G)}); g.d(this,L);var k=OD(function(){return new zW(H,w,Z.HM)}); g.d(this,k);var Y=OD(function(){return new B3}); g.d(this,Y);this.rh=OD(function(){return new LW(X)}); g.d(this,this.rh);this.RW=OD(function(){return new cZ(S)}); g.d(this,this.RW);this.xS=OD(function(){return new W0(X)}); g.d(this,this.xS);this.yN=OD(function(){return new pu(X)}); g.d(this,this.yN);this.Wn=OD(function(){return new ya(X)}); g.d(this,this.Wn);this.OY=OD(function(){return new fu(X)}); g.d(this,this.OY);this.HM=OD(function(){return new Dp(X)}); g.d(this,this.HM);var M=OD(function(){return new h0(R)}); g.d(this,M);var m=OD(function(){return new G7(Z.HM)}); g.d(this,m);var u=OD(function(){return new Nh(H,k,w,Z.HM,m,null,null,Z.lE,Z.F9)}); g.d(this,u);this.qc=OD(function(){return new MR(X)}); g.d(this,this.qc);this.Ou=OD(function(){return new lT}); g.d(this,this.Ou);this.lB=OD(function(){return new Xx(X,Y,Z.HM)}); g.d(this,this.lB);var r=IR({lB:this.lB,HM:this.HM,ge:m}),x=r.context,c=r.ea;this.Sj=r.Sj;this.GF=OD(function(){return new jT(X,Z.HM,Z.nO)}); this.RU=OD(function(){return new Q5(X,Z.lB,Z.HM)}); g.d(this,this.RU);this.zg=OD(function(){return new ox}); g.d(this,this.zg);this.y0=OD(function(){return new nu(Z.RU,X,Z.HM)}); g.d(this,this.y0);this.nO=OD(function(){return new Gf(X,h,Z.y0,Z.lB,Z.Sj,Z.HM,c)}); g.d(this,this.nO);this.wS=OD(function(){return new BZ(Z.HM)}); g.d(this,this.wS);this.l8=new GW(ie,ug,function(B,V,p,b){return OH(w.get(),B,V,p,b)},L,k,w,m,this.HM,this.lB); g.d(this,this.l8);this.yD=new XU(L,u,Q,this.HM,G,this.lB,this.RU,this.xS);g.d(this,this.yD);var z=new dB(X,this.yD,this.RU,this.lB,this.GF);this.U$=OD(function(){return z}); this.P9=z;this.lE=new $p(L,k,this.U$,this.GF,this.RU,this.HM,this.nO);g.d(this,this.lE);this.JE=new Rg(L,k,this.yN,this.U$,x);g.d(this,this.JE);this.zF=new Yp(this.HM,L,k,u,this.lB,this.JE,Q,this.Wn);g.d(this,this.zF);this.r$=OD(function(){return new Jk(M,w,m,Z.HM,Z.nO,Z.RU)}); g.d(this,this.r$);this.HR=OD(function(){return new iT}); g.d(this,this.HR);this.rL=new ke(G,this.rh,this.HM);g.d(this,this.rL);this.OM=new Ye(G);g.d(this,this.OM);this.gX=new jO(G);g.d(this,this.gX);this.vF=new m6(G,this.U$,x);g.d(this,this.vF);this.En=new og(G,this.yN,this.RU,this.lB,x);g.d(this,this.En);this.h1=new P3(G);g.d(this,this.h1);this.Q8=new sq(G);g.d(this,this.Q8);this.sF=new r9(G);g.d(this,this.sF);this.Nx=OD(function(){return new m2(X)}); g.d(this,this.Nx);this.xr=new ag(G);g.d(this,this.xr);this.F9=new TW(G,this.GF,this.RU,this.nO,this.U$,this.lE);g.d(this,this.F9);this.uL=OD(function(){return new q8}); g.d(this,this.uL);this.Cu=OD(function(){return new w9(Z.RU)}); g.d(this,this.Cu);this.g$=OD(function(){return new VM(Z.zF,L,H)}); g.d(this,this.g$);this.Wi=OD(function(){return new WK(Z.HM,Z.nO,Z.h1,Z.y0)}); g.d(this,this.Wi);this.c_=OD(function(){return new iJ0(Z.rh,Z.RU,Z.nO,h,Z.y0,Z.gX,Z.sF,Z.RW,Z.HM,Q)}); g.d(this,this.c_);this.Sl=OD(function(){return new VI(G,Z.xr,Z.h1,Z.nO,Z.y0,Z.wS,Z.Wn,Z.lB,Z.RU,Z.zg,Z.yN,Z.xS,Z.OY,Z.RW,Z.qc,Z.HM,Z.Nx,x,c)}); g.d(this,this.Sl);this.ND=new w5(G,this.Ou,H);g.d(this,this.ND);this.Ud={ye:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zF],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.lE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JE]]),s9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.r$],["SLOT_TYPE_FORECASTING",this.HR],["SLOT_TYPE_IN_PLAYER",this.HR], ["SLOT_TYPE_PLAYER_BYTES",this.HR]]),TJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.rL],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.OM],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OM],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OM],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OM],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.OM],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OM], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.OM],["TRIGGER_TYPE_CLOSE_REQUESTED",this.gX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vF],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.En],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.En],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.En],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.h1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vF],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Q8],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.sF],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xr],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.F9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.F9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.F9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.F9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.F9]]),J0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.uL],["SLOT_TYPE_FORECASTING",this.uL],["SLOT_TYPE_IN_PLAYER",this.uL],["SLOT_TYPE_PLAYER_BYTES",this.Cu]]), Zd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g$],["SLOT_TYPE_FORECASTING",this.Wi],["SLOT_TYPE_IN_PLAYER",this.c_],["SLOT_TYPE_PLAYER_BYTES",this.Sl]])};this.listeners=[h.get()];this.Gt={zF:this.zF,y5:this.HM.get(),Fm:this.RW.get(),YZ:this.RU.get(),yD:this.yD,eR:H.get(),Hl:this.Ou.get(),Xe:this.rL,RX:h.get(),bL:this.lB.get()}}; gTd=function(G,X,Q,R,S){g.I.call(this);var Z=this,H=OD(function(){return new Eq(Z.HM)}); g.d(this,H);var w=OD(function(){return new Oq(H,Z.HM)}); g.d(this,w);var h=OD(function(){return new SO}); g.d(this,h);var L=OD(function(){return new QX(G)}); g.d(this,L);var k=OD(function(){return new zW(H,w,Z.HM)}); g.d(this,k);var Y=OD(function(){return new B3}); g.d(this,Y);this.rh=OD(function(){return new LW(X)}); g.d(this,this.rh);this.RW=OD(function(){return new cZ(S)}); g.d(this,this.RW);this.xS=OD(function(){return new W0(X)}); g.d(this,this.xS);this.yN=OD(function(){return new pu(X)}); g.d(this,this.yN);this.Wn=OD(function(){return new ya(X)}); g.d(this,this.Wn);this.OY=OD(function(){return new fu(X)}); g.d(this,this.OY);this.HM=OD(function(){return new Dp(X)}); g.d(this,this.HM);var M=OD(function(){return new h0(R)}); g.d(this,M);var m=OD(function(){return new G7(Z.HM)}); g.d(this,m);var u=OD(function(){return new Nh(H,k,w,Z.HM,m,null,null,null,null)}); g.d(this,u);this.qc=OD(function(){return new MR(X)}); g.d(this,this.qc);this.lB=OD(function(){return new Xx(X,Y,Z.HM)}); g.d(this,this.lB);var r=IR({lB:this.lB,HM:this.HM,ge:m}),x=r.context,c=r.ea;this.Sj=r.Sj;this.RU=OD(function(){return new Q5(X,Z.lB,Z.HM)}); g.d(this,this.RU);this.zg=OD(function(){return new ox}); g.d(this,this.zg);this.y0=OD(function(){return new nu(Z.RU,X,Z.HM)}); g.d(this,this.y0);this.nO=OD(function(){return new Gf(X,h,Z.y0,Z.lB,Z.Sj,Z.HM,c)}); g.d(this,this.nO);this.wS=OD(function(){return new BZ(Z.HM)}); g.d(this,this.wS);this.l8=new GW(ie,ug,function(B,V,p,b){return OH(w.get(),B,V,p,b)},L,k,w,m,this.HM,this.lB); g.d(this,this.l8);this.yD=new XU(L,u,Q,this.HM,G,this.lB,this.RU,this.xS);g.d(this,this.yD);var z=new dB(X,this.yD,this.RU,this.lB);this.U$=OD(function(){return z}); this.P9=z;this.JE=new Rg(L,k,this.yN,this.U$,x);g.d(this,this.JE);this.zF=new Yp(this.HM,L,k,u,this.lB,this.JE,Q,this.Wn);g.d(this,this.zF);this.r$=OD(function(){return new Jk(M,w,m,Z.HM,Z.nO,Z.RU)}); g.d(this,this.r$);this.HR=OD(function(){return new iT}); g.d(this,this.HR);this.rL=new ke(G,this.rh,this.HM);g.d(this,this.rL);this.OM=new Ye(G);g.d(this,this.OM);this.vF=new m6(G,this.U$,x);g.d(this,this.vF);this.En=new og(G,this.yN,this.RU,this.lB,x);g.d(this,this.En);this.h1=new P3(G);g.d(this,this.h1);this.Q8=new sq(G);g.d(this,this.Q8);this.Nx=OD(function(){return new m2(X)}); g.d(this,this.Nx);this.xr=new ag(G);g.d(this,this.xr);this.uL=OD(function(){return new q8}); g.d(this,this.uL);this.Cu=OD(function(){return new w9(Z.RU)}); g.d(this,this.Cu);this.g$=OD(function(){return new VM(Z.zF,L,H)}); g.d(this,this.g$);this.Wi=OD(function(){return new WK(Z.HM,Z.nO,Z.h1,Z.y0)}); g.d(this,this.Wi);this.Ah=OD(function(){return new jbT(Z.rh,Z.RU,Z.nO,h,Q,Z.HM)}); g.d(this,this.Ah);this.Sl=OD(function(){return new VI(G,Z.xr,Z.h1,Z.nO,Z.y0,Z.wS,Z.Wn,Z.lB,Z.RU,Z.zg,Z.yN,Z.xS,Z.OY,Z.RW,Z.qc,Z.HM,Z.Nx,x,c)}); g.d(this,this.Sl);this.Ud={ye:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zF],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JE]]),s9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.r$],["SLOT_TYPE_FORECASTING",this.HR],["SLOT_TYPE_IN_PLAYER",this.HR],["SLOT_TYPE_PLAYER_BYTES",this.HR]]),TJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.rL],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.OM],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OM],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OM],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OM],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.OM],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OM],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vF],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.En],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.En],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.h1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vF],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Q8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xr]]),J0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.uL],["SLOT_TYPE_ABOVE_FEED",this.uL],["SLOT_TYPE_FORECASTING",this.uL],["SLOT_TYPE_IN_PLAYER",this.uL],["SLOT_TYPE_PLAYER_BYTES",this.Cu]]),Zd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g$],["SLOT_TYPE_FORECASTING",this.Wi],["SLOT_TYPE_IN_PLAYER", this.Ah],["SLOT_TYPE_PLAYER_BYTES",this.Sl]])};this.listeners=[h.get()];this.Gt={zF:this.zF,y5:this.HM.get(),Fm:this.RW.get(),YZ:this.RU.get(),yD:this.yD,eR:H.get(),Hl:null,Xe:this.rL,RX:h.get(),bL:this.lB.get()}}; UeH=function(G,X,Q,R,S){g.I.call(this);var Z=this,H=OD(function(){return new Eq(Z.HM)}); g.d(this,H);var w=OD(function(){return new Oq(H,Z.HM)}); g.d(this,w);var h=OD(function(){return new SO}); g.d(this,h);var L=OD(function(){return new QX(G)}); g.d(this,L);var k=OD(function(){return new zW(H,w,Z.HM)}); g.d(this,k);var Y=OD(function(){return new B3}); g.d(this,Y);this.y7=OD(function(){return new OVL(X)}); g.d(this,this.y7);this.rh=OD(function(){return new LW(X)}); g.d(this,this.rh);this.RW=OD(function(){return new cZ(S)}); g.d(this,this.RW);this.xS=OD(function(){return new W0(X)}); g.d(this,this.xS);this.yN=OD(function(){return new pu(X)}); g.d(this,this.yN);this.Wn=OD(function(){return new ya(X)}); g.d(this,this.Wn);this.OY=OD(function(){return new fu(X)}); g.d(this,this.OY);this.HM=OD(function(){return new Dp(X)}); g.d(this,this.HM);var M=OD(function(){return new h0(R)}); g.d(this,M);var m=OD(function(){return new G7(Z.HM)}); g.d(this,m);var u=OD(function(){return new Nh(H,k,w,Z.HM,m,null,null,null,null)}); g.d(this,u);this.qc=OD(function(){return new MR(X)}); g.d(this,this.qc);this.lB=OD(function(){return new Xx(X,Y,Z.HM)}); g.d(this,this.lB);var r=IR({lB:this.lB,HM:this.HM,ge:m}),x=r.context,c=r.ea;this.Sj=r.Sj;this.RU=OD(function(){return new Q5(X,Z.lB,Z.HM)}); g.d(this,this.RU);this.zg=OD(function(){return new ox}); g.d(this,this.zg);this.y0=OD(function(){return new nu(Z.RU,X,Z.HM)}); g.d(this,this.y0);this.nO=OD(function(){return new Gf(X,h,Z.y0,Z.lB,Z.Sj,Z.HM,c)}); g.d(this,this.nO);this.wS=OD(function(){return new BZ(Z.HM)}); g.d(this,this.wS);this.l8=new GW(t$i,ug,function(B,V,p,b){return H6V(w.get(),B,V,p,b)},L,k,w,m,this.HM,this.lB); g.d(this,this.l8);this.yD=new XU(L,u,Q,this.HM,G,this.lB,this.RU,this.xS);g.d(this,this.yD);var z=new dB(X,this.yD,this.RU,this.lB);this.U$=OD(function(){return z}); this.P9=z;this.JE=new Rg(L,k,this.yN,this.U$,x);g.d(this,this.JE);this.zF=new Yp(this.HM,L,k,u,this.lB,this.JE,Q,this.Wn);g.d(this,this.zF);this.r$=OD(function(){return new Jk(M,w,m,Z.HM,Z.nO,Z.RU)}); g.d(this,this.r$);this.HR=OD(function(){return new iT}); g.d(this,this.HR);this.rL=new ke(G,this.rh,this.HM);g.d(this,this.rL);this.OM=new Ye(G);g.d(this,this.OM);this.vF=new m6(G,this.U$,x);g.d(this,this.vF);this.En=new og(G,this.yN,this.RU,this.lB,x);g.d(this,this.En);this.h1=new P3(G);g.d(this,this.h1);this.Q8=new sq(G);g.d(this,this.Q8);this.Nx=OD(function(){return new m2(X)}); g.d(this,this.Nx);this.xr=new ag(G);g.d(this,this.xr);this.uL=OD(function(){return new q8}); g.d(this,this.uL);this.Cu=OD(function(){return new w9(Z.RU)}); g.d(this,this.Cu);this.g$=OD(function(){return new VM(Z.zF,L,H)}); g.d(this,this.g$);this.Wi=OD(function(){return new WK(Z.HM,Z.nO,Z.h1,Z.y0)}); g.d(this,this.Wi);this.Sl=OD(function(){return new VI(G,Z.xr,Z.h1,Z.nO,Z.y0,Z.wS,Z.Wn,Z.lB,Z.RU,Z.zg,Z.yN,Z.xS,Z.OY,Z.RW,Z.qc,Z.HM,Z.Nx,x,c)}); g.d(this,this.Sl);this.qk=OD(function(){return new X2X(Z.rh,Z.RU,Z.nO,h,Z.y7,Q,Z.lB)}); g.d(this,this.qk);this.Ud={ye:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zF],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JE]]),s9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.r$],["SLOT_TYPE_FORECASTING",this.HR],["SLOT_TYPE_IN_PLAYER",this.HR],["SLOT_TYPE_PLAYER_BYTES",this.HR]]),TJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.rL],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.OM],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OM],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OM],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OM],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.OM],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OM],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vF],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.En],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.En],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.h1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vF],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Q8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xr]]),J0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.uL],["SLOT_TYPE_FORECASTING",this.uL],["SLOT_TYPE_IN_PLAYER",this.uL],["SLOT_TYPE_PLAYER_BYTES",this.Cu]]),Zd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g$],["SLOT_TYPE_FORECASTING",this.Wi],["SLOT_TYPE_IN_PLAYER",this.qk],["SLOT_TYPE_PLAYER_BYTES", this.Sl]])};this.listeners=[h.get()];this.Gt={zF:this.zF,y5:this.HM.get(),Fm:this.RW.get(),YZ:this.RU.get(),yD:this.yD,eR:H.get(),Hl:null,Xe:this.rL,RX:h.get(),bL:this.lB.get()}}; lGv=function(G,X,Q,R,S){g.I.call(this);var Z=this,H=OD(function(){return new Eq(Z.HM)}); g.d(this,H);var w=OD(function(){return new Oq(H,Z.HM)}); g.d(this,w);var h=OD(function(){return new SO}); g.d(this,h);var L=OD(function(){return new QX(G)}); g.d(this,L);var k=OD(function(){return new zW(H,w,Z.HM)}); g.d(this,k);var Y=OD(function(){return new B3}); g.d(this,Y);this.y7=OD(function(){return new OVL(X)}); g.d(this,this.y7);this.rh=OD(function(){return new LW(X)}); g.d(this,this.rh);this.RW=OD(function(){return new cZ(S)}); g.d(this,this.RW);this.xS=OD(function(){return new W0(X)}); g.d(this,this.xS);this.yN=OD(function(){return new pu(X)}); g.d(this,this.yN);this.Wn=OD(function(){return new ya(X)}); g.d(this,this.Wn);this.OY=OD(function(){return new fu(X)}); g.d(this,this.OY);this.HM=OD(function(){return new Dp(X)}); g.d(this,this.HM);var M=OD(function(){return new h0(R)}); g.d(this,M);var m=OD(function(){return new G7(Z.HM)}); g.d(this,m);this.qc=OD(function(){return new MR(X)}); g.d(this,this.qc);this.lB=OD(function(){return new Xx(X,Y,Z.HM)}); g.d(this,this.lB);var u=IR({lB:this.lB,HM:this.HM,ge:m}),r=u.context,x=u.ea;this.Sj=u.Sj;this.GF=OD(function(){return new jT(X,Z.HM,Z.nO)}); g.d(this,this.GF);this.Nx=OD(function(){return new m2(X)}); g.d(this,this.Nx);this.RU=OD(function(){return new Q5(X,Z.lB,Z.HM)}); g.d(this,this.RU);this.zg=OD(function(){return new ox}); g.d(this,this.zg);u=OD(function(){return new Nh(H,k,w,Z.HM,m,null,Z.RU,Z.lE,Z.F9,3)}); g.d(this,u);this.wS=OD(function(){return new BZ(Z.HM)}); this.y0=OD(function(){return new nu(Z.RU,X,Z.HM)}); g.d(this,this.y0);this.nO=OD(function(){return new Gf(X,h,Z.y0,Z.lB,Z.Sj,Z.HM,x)}); g.d(this,this.nO);this.yD=new XU(L,u,Q,this.HM,G,this.lB,this.RU,this.xS);g.d(this,this.yD);var c=new dB(X,this.yD,this.RU,this.lB,this.GF);this.U$=OD(function(){return c}); this.P9=c;this.l8=new GW(V$Z,ug,function(z,B,V,p){return H6V(w.get(),z,B,V,p)},L,k,w,m,this.HM,this.lB); g.d(this,this.l8);this.lE=new $p(L,k,this.U$,this.GF,this.RU,this.HM,this.nO,this.Nx);g.d(this,this.lE);this.JE=new Rg(L,k,this.yN,this.U$,r);g.d(this,this.JE);this.zF=new Yp(this.HM,L,k,u,this.lB,this.JE,Q,this.Wn);g.d(this,this.zF);this.r$=OD(function(){return new Jk(M,w,m,Z.HM,Z.nO,Z.RU,Z.Nx)}); g.d(this,this.r$);this.HR=OD(function(){return new iT}); g.d(this,this.HR);this.rL=new ke(G,this.rh,this.HM);g.d(this,this.rL);this.OM=new Ye(G);g.d(this,this.OM);this.vF=new m6(G,this.U$,r);g.d(this,this.vF);this.En=new og(G,this.yN,this.RU,this.lB,r);g.d(this,this.En);this.NI=new uM(G,this.lB);g.d(this,this.NI);this.F9=new TW(G,this.GF,this.RU,this.nO,this.U$,this.lE);g.d(this,this.F9);this.h1=new P3(G);g.d(this,this.h1);this.Q8=new sq(G);g.d(this,this.Q8);this.xr=new ag(G);g.d(this,this.xr);this.uL=OD(function(){return new q8}); g.d(this,this.uL);this.Cu=OD(function(){return new w9(Z.RU)}); g.d(this,this.Cu);this.g$=OD(function(){return new VM(Z.zF,L,H)}); g.d(this,this.g$);this.Wi=OD(function(){return new WK(Z.HM,Z.nO,Z.h1,Z.y0)}); g.d(this,this.Wi);this.Sl=OD(function(){return new tA(G,Z.xr,Z.h1,Z.lB,Z.Nx,Z.RU,Z.zg,Z.nO,Y,Z.GF,Z.y0,Z.wS,Z.Wn,Z.yN,Z.xS,Z.OY,Z.RW,Z.qc,Z.HM,h,r,x)}); g.d(this,this.Sl);this.c_=OD(function(){return new Q87(Z.rh,Z.RU,Z.nO,h,Z.y7,Q,Z.HM,Z.lB)}); g.d(this,this.c_);this.Ud={ye:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zF],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.lE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l8],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yD],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JE]]),s9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.r$],["SLOT_TYPE_FORECASTING",this.HR],["SLOT_TYPE_IN_PLAYER",this.HR],["SLOT_TYPE_PLAYER_BYTES",this.HR]]),TJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.rL],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.OM],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.OM],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.OM],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.OM],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.OM],["TRIGGER_TYPE_SLOT_ID_EXITED",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.OM],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.OM],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vF],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.En],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.En],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.NI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.NI],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.h1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vF],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Q8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.xr],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.F9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.F9],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.F9],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.F9],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.F9]]),J0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.uL],["SLOT_TYPE_FORECASTING",this.uL],["SLOT_TYPE_IN_PLAYER",this.uL],["SLOT_TYPE_PLAYER_BYTES",this.Cu]]),Zd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g$],["SLOT_TYPE_FORECASTING",this.Wi],["SLOT_TYPE_PLAYER_BYTES",this.Sl],["SLOT_TYPE_IN_PLAYER",this.c_]])};this.listeners=[h.get()]; this.Gt={zF:this.zF,y5:this.HM.get(),Fm:this.RW.get(),YZ:this.RU.get(),yD:this.yD,eR:H.get(),Hl:null,Xe:this.rL,RX:h.get(),bL:this.lB.get()}}; FwZ=function(G,X,Q,R){function S(){return Z.W} g.I.call(this);var Z=this;G.Z().experiments.TT("html5_dispose_of_manager_before_dependency")?(this.N=BXa(S,G,X,Q,R),this.W=(new z7(this.N)).Y(),g.d(this,this.W),g.d(this,this.N)):(this.N=BXa(S,G,X,Q,R),g.d(this,this.N),this.W=(new z7(this.N)).Y(),g.d(this,this.W))}; PF=function(G){return G.N.Gt}; BXa=function(G,X,Q,R,S){try{var Z=X.Z();if(g.sB(Z))var H=new zUG(G,X,Q,R,S);else if(g.eb(Z))H=new cGk(G,X,Q,R,S);else if(kn(Z))H=new gTd(G,X,Q,R,S);else if(g.lP(Z))H=new UeH(G,X,Q,R,S);else if(g.ZK(Z))H=new lGv(G,X,Q,R,S);else throw new TypeError("Unknown web interface");return H}catch(w){return H=X.Z(),qQ("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:H.N.cplatform,interface:H.N.c,zkA:H.N.cver,WdT:H.N.ctheme,yaH:H.N.cplayer,Bk_:H.playerStyle}),new P7v(G,X,Q,R,S)}}; C7k=function(G){dc.call(this,G)}; ty4=function(G,X,Q,R,S){nD.call(this,G,{D:"div",X:"ytp-ad-timed-pie-countdown-container",K:[{D:"svg",X:"ytp-ad-timed-pie-countdown",L:{viewBox:"0 0 20 20"},K:[{D:"circle",X:"ytp-ad-timed-pie-countdown-background",L:{r:"10",cx:"10",cy:"10"}},{D:"circle",X:"ytp-ad-timed-pie-countdown-inner",L:{r:"5",cx:"10",cy:"10"}},{D:"circle",X:"ytp-ad-timed-pie-countdown-outer",L:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",X,Q,R,S);this.V=this.VH("ytp-ad-timed-pie-countdown-container");this.Y=this.VH("ytp-ad-timed-pie-countdown-inner"); this.S=this.VH("ytp-ad-timed-pie-countdown-outer");this.W=Math.ceil(2*Math.PI*5);this.hide()}; VyZ=function(G,X,Q,R,S,Z){ZT.call(this,G,{D:"div",X:"ytp-ad-action-interstitial",L:{tabindex:"0"},K:[{D:"div",X:"ytp-ad-action-interstitial-background-container"},{D:"div",X:"ytp-ad-action-interstitial-slot",K:[{D:"div",X:"ytp-ad-action-interstitial-instream-info"},{D:"div",X:"ytp-ad-action-interstitial-card",K:[{D:"div",X:"ytp-ad-action-interstitial-image-container"},{D:"div",X:"ytp-ad-action-interstitial-headline-container"},{D:"div",X:"ytp-ad-action-interstitial-description-container"},{D:"div", X:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",X,Q,R);this.p8=S;this.SJ=Z;this.navigationEndpoint=this.N=this.skipButton=this.W=this.actionButton=null;this.SA=this.VH("ytp-ad-action-interstitial-instream-info");this.IU=this.VH("ytp-ad-action-interstitial-image-container");this.j=new CD(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,"ytp-ad-action-interstitial-image");g.d(this,this.j);this.j.s_(this.IU);this.Mi=this.VH("ytp-ad-action-interstitial-headline-container"); this.S=new N1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,"ytp-ad-action-interstitial-headline");g.d(this,this.S);this.S.s_(this.Mi);this.yH=this.VH("ytp-ad-action-interstitial-description-container");this.Y=new N1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,"ytp-ad-action-interstitial-description");g.d(this,this.Y);this.Y.s_(this.yH);this.BM=this.VH("ytp-ad-action-interstitial-background-container");this.CO=new CD(this.api,this.layoutId,this.interactionLoggingClientData, this.Fm,"ytp-ad-action-interstitial-background",!0);g.d(this,this.CO);this.CO.s_(this.BM);this.cM=this.VH("ytp-ad-action-interstitial-action-button-container");this.slot=this.VH("ytp-ad-action-interstitial-slot");this.kO=this.VH("ytp-ad-action-interstitial-card");this.V=new TJ;g.d(this,this.V);this.hide()}; IGv=function(G){var X=g.hj("html5-video-player");X&&g.S_(X,"ytp-ad-display-override",G)}; yGd=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-ad-overlay-slot",K:[{D:"div",X:"ytp-ad-overlay-container"}]},"invideo-overlay",X,Q,R);this.j=[];this.BM=this.Mi=this.V=this.cM=this.SA=null;this.CO=!1;this.S=null;this.yH=0;G=this.VH("ytp-ad-overlay-container");this.IU=new Qu(G,45E3,6E3,.3,.4);g.d(this,this.IU);this.Y=deL(this);g.d(this,this.Y);this.Y.s_(G);this.W=WwV(this);g.d(this,this.W);this.W.s_(G);this.N=plS(this);g.d(this,this.N);this.N.s_(G);this.hide()}; deL=function(G){var X=new g.Sa({D:"div",X:"ytp-ad-text-overlay",K:[{D:"div",X:"ytp-ad-overlay-ad-info-button-container"},{D:"div",X:"ytp-ad-overlay-close-container",K:[{D:"button",X:"ytp-ad-overlay-close-button",K:[xC(fGo)]}]},{D:"div",X:"ytp-ad-overlay-title",WM:"{{title}}"},{D:"div",X:"ytp-ad-overlay-desc",WM:"{{description}}"},{D:"div",aU:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],WM:"{{displayUrl}}"}]});G.B(X.VH("ytp-ad-overlay-title"),"click",function(Q){s6(G,X.element,Q)}); G.B(X.VH("ytp-ad-overlay-link"),"click",function(Q){s6(G,X.element,Q)}); G.B(X.VH("ytp-ad-overlay-close-container"),"click",G.M$);X.hide();return X}; WwV=function(G){var X=new g.Sa({D:"div",aU:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],K:[{D:"div",X:"ytp-ad-overlay-ad-info-button-container"},{D:"div",X:"ytp-ad-overlay-close-container",K:[{D:"button",X:"ytp-ad-overlay-close-button",K:[xC(fGo)]}]},{D:"div",X:"ytp-ad-overlay-text-image",K:[{D:"img",L:{src:"{{imageUrl}}"}}]},{D:"div",X:"ytp-ad-overlay-title",WM:"{{title}}"},{D:"div",X:"ytp-ad-overlay-desc",WM:"{{description}}"},{D:"div",aU:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], WM:"{{displayUrl}}"}]});G.B(X.VH("ytp-ad-overlay-title"),"click",function(Q){s6(G,X.element,Q)}); G.B(X.VH("ytp-ad-overlay-link"),"click",function(Q){s6(G,X.element,Q)}); G.B(X.VH("ytp-ad-overlay-close-container"),"click",G.M$);G.B(X.VH("ytp-ad-overlay-text-image"),"click",G.nrU);X.hide();return X}; plS=function(G){var X=new g.Sa({D:"div",X:"ytp-ad-image-overlay",K:[{D:"div",X:"ytp-ad-overlay-ad-info-button-container"},{D:"div",X:"ytp-ad-overlay-close-container",K:[{D:"button",X:"ytp-ad-overlay-close-button",K:[xC(fGo)]}]},{D:"div",X:"ytp-ad-overlay-image",K:[{D:"img",L:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});G.B(X.VH("ytp-ad-overlay-image"),"click",function(Q){s6(G,X.element,Q)}); G.B(X.VH("ytp-ad-overlay-close-container"),"click",G.M$);X.hide();return X}; De3=function(G,X){if(X){var Q=g.y(X,w_)||null;Q==null?g.aU(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(X=g.hj("video-ads ytp-ad-module")||null,X==null?g.aU(Error("Could not locate the root ads container element to attach the ad info dialog.")):(G.Mi=new g.Sa({D:"div",X:"ytp-ad-overlay-ad-info-dialog-container"}),g.d(G,G.Mi),G.Mi.s_(X),X=new DT(G.api,G.layoutId,G.interactionLoggingClientData,G.Fm,G.Mi.element,!1),g.d(G,X),X.init(v8("ad-info-hover-text-button"),Q,G.macros), G.S?(X.s_(G.S,0),X.subscribe("f",G.JTB,G),X.subscribe("e",G.JH,G),G.B(G.S,"click",G.cTc),G.B(g.hj("ytp-ad-button",X.element),"click",function(){var R;if(g.y((R=g.y(Q.button,g.Lv))==null?void 0:R.serviceEndpoint,vLw))G.CO=G.api.getPlayerState(1)===2,G.api.pauseVideo();else G.api.onAdUxClicked("ad-info-hover-text-button",G.layoutId)}),G.BM=X):g.aU(Error("Ad info button container within overlay ad was not present."))))}else g.EL(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; AGG=function(G,X){if(NXG(G,Tf)||G.api.isMinimized())return!1;var Q=H5(X.title),R=H5(X.description);if(g.lY(Q)||g.lY(R))return!1;G.createServerVe(G.Y.element,X.trackingParams||null);G.Y.updateValue("title",H5(X.title));G.Y.updateValue("description",H5(X.description));G.Y.updateValue("displayUrl",H5(X.displayUrl));X.navigationEndpoint&&g.Bn(G.j,X.navigationEndpoint);G.Y.show();G.IU.start();G.logVisibility(G.Y.element,!0);G.B(G.Y.element,"mouseover",function(){G.yH++}); return!0}; nTv=function(G,X){if(NXG(G,Tf)||G.api.isMinimized())return!1;var Q=H5(X.title),R=H5(X.description);if(g.lY(Q)||g.lY(R))return!1;G.createServerVe(G.W.element,X.trackingParams||null);G.W.updateValue("title",H5(X.title));G.W.updateValue("description",H5(X.description));G.W.updateValue("displayUrl",H5(X.displayUrl));G.W.updateValue("imageUrl",wAe(X.image));X.navigationEndpoint&&g.Bn(G.j,X.navigationEndpoint);G.cM=X.imageNavigationEndpoint||null;G.W.show();G.IU.start();G.logVisibility(G.W.element,!0); G.B(G.W.element,"mouseover",function(){G.yH++}); return!0}; $eZ=function(G,X){if(G.api.isMinimized())return!1;var Q=hNV(X.image),R=Q;Q.width0?(X=new gA(G.api,G.N), X.s_(G.playerOverlay),g.d(G,X)):(G=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(X)),g.aU(G))}}else g.aU(Error("addCommonComponents() needs to be called before starting countdown."))}; HaL=function(G){function X(Q){return{toString:function(){return Q()}}} G.macros.SURVEY_LOCAL_TIME_EPOCH_S=X(function(){var Q=new Date;return(Math.round(Q.valueOf()/1E3)+-1*Q.getTimezoneOffset()*60).toString()}); G.macros.SURVEY_ELAPSED_MS=X(function(){return(Date.now()-G.Y).toString()})}; qvd=function(G,X,Q,R,S){ax.call(this,G,X,Q,R,"survey-question-multi-select");this.yH=S;this.noneOfTheAbove=null;this.submitEndpoints=[];this.S=null;this.hide()}; wn4=function(G,X,Q){G.noneOfTheAbove=new Xnd(G.api,G.layoutId,G.interactionLoggingClientData,G.Fm);G.noneOfTheAbove.s_(G.answers);G.noneOfTheAbove.init(v8("survey-none-of-the-above"),X,Q)}; Loo=function(G){G.W.forEach(function(X){X.N.toggleButton(!1)}); hk4(G,!0)}; hk4=function(G,X){var Q=G.V;G=k3H(G);X=X===void 0?!1:X;Q.N&&(G?Q.N.hide():Q.N.show(),X&&Q.N instanceof jz&&!Q.N.V&&Hl0(Q.N,!1));Q.W&&(G?Q.W.show():Q.W.hide())}; k3H=function(G){return G.W.some(function(X){return X.N.isToggled()})||G.noneOfTheAbove.button.isToggled()}; E6=function(G,X,Q,R,S){ax.call(this,G,X,Q,R,"survey-question-single-select",function(H){Z.api.Z().G("supports_multi_step_on_desktop")&&S([H])}); var Z=this;this.hide()}; xY=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-ad-survey",K:[{D:"div",X:"ytp-ad-survey-questions"}]},"survey",X,Q,R);this.questions=[];this.W=[];this.conditioningRules=[];this.N=0;this.S=this.VH("ytp-ad-survey-questions");this.api.Z().G("fix_survey_color_contrast_on_destop")&&this.VH("ytp-ad-survey").classList.add("color-contrast-fix");this.api.Z().G("web_enable_speedmaster")&&this.VH("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; MZV=function(G,X){var Q=G.W[X],R;(R=G.Y)==null||R.dispose();g.y(Q,H9)?Yva(G,g.y(Q,H9),G.macros):g.y(Q,ZL)&&jdL(G,g.y(Q,ZL),G.macros);G.N=X}; Yva=function(G,X,Q){var R=new E6(G.api,G.layoutId,G.interactionLoggingClientData,G.Fm,G.V.bind(G));R.s_(G.S);R.init(v8("survey-question-single-select"),X,Q);G.api.Z().G("supports_multi_step_on_desktop")?G.Y=R:G.questions.push(R);g.d(G,R)}; jdL=function(G,X,Q){var R=new qvd(G.api,G.layoutId,G.interactionLoggingClientData,G.Fm,G.V.bind(G));R.s_(G.S);R.init(v8("survey-question-multi-select"),X,Q);G.api.Z().G("supports_multi_step_on_desktop")?G.Y=R:G.questions.push(R);g.d(G,R)}; O6=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-ad-survey-interstitial",K:[{D:"div",X:"ytp-ad-survey-interstitial-contents",K:[{D:"div",X:"ytp-ad-survey-interstitial-logo",K:[{D:"div",X:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",X:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",X,Q,R);this.N=this.actionButton=null;this.interstitial=this.VH("ytp-ad-survey-interstitial");this.W=this.VH("ytp-ad-survey-interstitial-contents");this.text=this.VH("ytp-ad-survey-interstitial-text"); this.logoImage=this.VH("ytp-ad-survey-interstitial-logo-image");this.transition=new g.v5(this,500,!1,300);g.d(this,this.transition)}; mSS=function(G,X){X=X&&FX(X)||"";if(g.lY(X))g.EL(Error("Found ThumbnailDetails without valid image URL"));else{var Q=G.style;G=G.style.cssText;var R=document.implementation.createHTMLDocument("").createElement("DIV");R.style.cssText=G;G=FK0(R.style);Q.cssText=[G,'background-image:url("'+X+'");'].join("")}}; o4o=function(G){var X=g.hj("html5-video-player");X&&g.S_(X,"ytp-ad-display-override",G)}; zf=function(G,X,Q,R,S,Z){Z=Z===void 0?0:Z;nD.call(this,G,{D:"div",X:"ytp-preview-ad",K:[{D:"div",X:"ytp-preview-ad__text"}]},"preview-ad",X,Q,R,S);var H=this;this.yH=Z;this.W=0;this.V=-1;this.Y=this.VH("ytp-preview-ad__text");switch(this.yH){case 1:this.Y.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.v5(this,400,!1,100,function(){H.hide()}); g.d(this,this.transition);this.hide()}; cF=function(G,X,Q,R){ZT.call(this,G,{D:"img",X:"ytp-ad-avatar"},"ad-avatar",X,Q,R);this.hide()}; uG3=function(G){switch(G.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}}; g5=function(G,X,Q,R,S,Z){S=S===void 0?!1:S;Z=Z===void 0?!1:Z;ZT.call(this,G,{D:"button",X:"ytp-ad-button-vm"},"ad-button",X,Q,R);this.buttonText=this.buttonIcon=null;this.hide();this.N=S;this.W=Z}; PLH=function(G,X,Q,R,S){nD.call(this,G,{D:"div",aU:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],K:[{D:"div",X:"ytp-ad-avatar-lockup-card__avatar_and_text_container",K:[{D:"div",X:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",X,Q,R,S);this.startMilliseconds=0;this.adAvatar=new cF(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,this.adAvatar);sM(this.element,this.adAvatar.element,0);this.headline=new a1(this.api,this.layoutId, this.interactionLoggingClientData,this.Fm);g.d(this,this.headline);this.headline.s_(this.VH("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,this.description);this.description.s_(this.VH("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new g5(this.api, this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,this.adButton);this.adButton.s_(this.element);this.hide()}; U6=function(G,X,Q,R){ZT.call(this,G,{D:"button",X:"ytp-skip-ad-button",K:[{D:"div",X:"ytp-skip-ad-button__text"}]},"skip-button",X,Q,R);var S=this;this.W=!1;this.V=this.VH("ytp-skip-ad-button__text");this.transition=new g.v5(this,500,!1,100,function(){S.hide()}); g.d(this,this.transition);this.N=new Qu(this.element,15E3,5E3,.5,.5,!0);g.d(this,this.N);this.hide()}; sdO=function(G,X,Q,R,S){nD.call(this,G,{D:"div",X:"ytp-skip-ad"},"skip-ad",X,Q,R,S);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Y=new U6(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,this.Y);this.Y.s_(this.element);this.hide()}; lg=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-visit-advertiser-link"},"visit-advertiser-link",X,Q,R);this.hide()}; BF=function(G,X,Q,R,S){ZT.call(this,G,{D:"div",X:"ytp-ad-player-overlay-layout",K:[{D:"div",X:"ytp-ad-player-overlay-layout__player-card-container"},{D:"div",X:"ytp-ad-player-overlay-layout__ad-info-container"},{D:"div",X:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{D:"div",X:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",X,Q,R);this.W=S;this.Mi=this.VH("ytp-ad-player-overlay-layout__player-card-container");this.N=this.VH("ytp-ad-player-overlay-layout__ad-info-container"); this.j=this.VH("ytp-ad-player-overlay-layout__skip-or-preview-container");this.yH=this.VH("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; THV=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-ad-grid-card-text",K:[{D:"div",X:"ytp-ad-grid-card-text__metadata",K:[{D:"div",X:"ytp-ad-grid-card-text__metadata__headline"},{D:"div",X:"ytp-ad-grid-card-text__metadata__description",K:[{D:"div",X:"ytp-ad-grid-card-text__metadata__description__line"},{D:"div",X:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{D:"div",X:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",X,Q,R);this.headline=new a1(this.api,this.layoutId,this.interactionLoggingClientData, this.Fm);g.d(this,this.headline);this.headline.s_(this.VH("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new g5(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,!0);g.d(this,this.moreInfoButton);this.moreInfoButton.s_(this.VH("ytp-ad-grid-card-text__button"))}; Fx=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",X,Q,R);this.N=[]}; CW=function(G,X,Q,R,S,Z,H){nD.call(this,G,Z,H,X,Q,R,S);this.playerProgressOffsetMs=0;this.W=!1}; KoZ=function(G){var X=g.hj("html5-video-player");X&&g.S_(X,"ytp-ad-display-override",G)}; eka=function(G,X,Q,R,S){CW.call(this,G,X,Q,R,S,{D:"div",X:"ytp-display-underlay-text-grid-cards",K:[{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container",K:[{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header",K:[{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {D:"div",X:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Fx(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,this.adGridCardCollection);this.adGridCardCollection.s_(this.VH("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new g5(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,this.adButton);this.adButton.s_(this.VH("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.Y=this.VH("ytp-display-underlay-text-grid-cards__content_container");this.V=this.VH("ytp-display-underlay-text-grid-cards__content_container__header")}; t0=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-ad-details-line"},"ad-details-line",X,Q,R);this.N=[];this.hide()}; V5=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-image-background",K:[{D:"img",X:"ytp-image-background-image"}]},"image-background",X,Q,R);this.hide()}; rOG=function(G,X,Q,R,S){nD.call(this,G,{D:"svg",X:"ytp-timed-pie-countdown",L:{viewBox:"0 0 20 20"},K:[{D:"circle",X:"ytp-timed-pie-countdown__background",L:{r:"10",cx:"10",cy:"10"}},{D:"circle",X:"ytp-timed-pie-countdown__inner",L:{r:"5",cx:"10",cy:"10"}},{D:"circle",X:"ytp-timed-pie-countdown__outer",L:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",X,Q,R,S);this.Y=this.VH("ytp-timed-pie-countdown__inner");this.W=Math.ceil(2*Math.PI*5);this.hide()}; Ix=function(G,X,Q,R){ZT.call(this,G,{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout",L:{tabindex:"0"},K:[{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content",K:[{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",K:[{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{D:"div",X:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",X,Q,R);this.W=null;this.V=this.VH("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Y=new TJ;g.d(this,this.Y);this.hide()}; aVk=function(G){var X=g.hj("html5-video-player");X&&g.S_(X,"ytp-ad-display-override",G)}; E43=function(G){if(!G.adAvatar||!g.y(G.adAvatar,d5))return g.aU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!G.headline)return g.aU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!G.adBadge||!g.y(G.adBadge,WF))return g.aU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!G.adButton||!g.y(G.adButton,pW))return g.aU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!G.adInfoRenderer|| !g.y(G.adInfoRenderer,w_))return g.aU(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;G=G.durationMilliseconds||0;return typeof G!=="number"||G<=0?(g.aU(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+G)),!1):!0}; y5=function(G,X){X=X===void 0?2:X;g.ic.call(this);this.api=G;this.N=null;this.handler=new TJ(this);g.d(this,this.handler);this.W=qee;this.handler.B(this.api,"presentingplayerstatechange",this.Sw);this.N=this.handler.B(this.api,"progresssync",this.o6);this.Of=X;this.Of===1&&this.o6()}; fW=function(G,X,Q){dc.call(this,G);this.api=G;this.Fm=X;this.components={};G=new g.f({D:"div",aU:["video-ads","ytp-ad-module"]});g.d(this,G);$M&&g.Gk(G.element,"ytp-ads-tiny-mode");this.V=new hg(G.element);g.d(this,this.V);g.$6(this.api,G.element,4);zl(Q)&&(Q=new g.f({D:"div",aU:["ytp-ad-underlay"]}),g.d(this,Q),this.W=new hg(Q.element),g.d(this,this.W),g.$6(this.api,Q.element,0));g.d(this,Cay())}; xSZ=function(G,X){G=g.mF(G.components,X.id,null);G==null&&g.EL(Error("Component not found for element id: "+X.id));return G||null}; Oaa=function(G){g.P6.call(this,G);var X=this;this.W=null;this.created=!1;this.Y=G.Z().G("h5_use_refactored_get_ad_break")?new s90(this.player):new Va(this.player);this.V=function(){if(X.W!=null)return X.W;var R=new xX0({Xe:PF(X.N).Xe,bL:PF(X.N).bL,U:X.player,y5:PF(X.N).y5,nO:X.N.N.nO,RX:PF(X.N).RX,OY:X.N.N.OY});X.W=R.Q4;return X.W}; this.N=new FwZ(this.player,this,this.Y,this.V);g.d(this,this.N);var Q=G.Z();!YU(Q)||g.ZK(Q)||kn(Q)||(g.d(this,new fW(G,PF(this.N).Fm,PF(this.N).y5)),g.d(this,new C7k(G)))}; zkZ=function(G){G.created!==G.loaded&&qQ("Created and loaded are out of sync")}; USG=function(G){g.P6.prototype.load.call(G);var X=PF(G.N).y5;try{G.player.getRootNode().classList.add("ad-created")}catch(h){qQ(h instanceof Error?h:String(h))}var Q=G.player.getVideoData(1),R=Q&&Q.videoId||"",S=Q&&Q.getPlayerResponse()||{},Z=(S&&S.adPlacements||[]).map(function(h){return h.adPlacementRenderer}),H=((S==null?void 0:S.adSlots)||[]).map(function(h){return g.y(h,jc)}); S=S.playerConfig&&S.playerConfig.daiConfig&&S.playerConfig.daiConfig.enableDai||!1;Q&&Q.IW();Z=cOv(Z,H,X,PF(G.N).eR);H=Q&&Q.clientPlaybackNonce||"";Q=Q&&Q.m2||!1;if(hR(X,!0)&&Q){var w;X={};(w=G.player.getVideoData())==null||w.Ni("p_cpb",(X.cc=H,X))}w=1E3*G.player.getDuration(1);g4H(G);G.N.N.P9.SN(H,w,Q,Z.Rm,Z.TM,Z.Rm,S,R)}; g4H=function(G){var X,Q;if(Q=(X=G.player.getVideoData(1))==null||!X.m2)X=G.player.Z(),Q=YU(X)&&!g.kU(X)&&X.playerStyle==="desktop-polymer";Q&&(G=G.player.getInternalApi(),G.addEventListener("updateKevlarOrC3Companion",o_S),G.addEventListener("updateEngagementPanelAction",uEC),G.addEventListener("changeEngagementPanelVisibility",PqS),window.addEventListener("yt-navigate-start",Tbe))}; Da=function(G,X){X===G.md&&(G.md=void 0)}; lVv=function(G){var X=PF(G.N).yD,Q=X.V().hG("SLOT_TYPE_PLAYER_BYTES",1);X=Dt(X.lB.get(),1).clientPlaybackNonce;var R=!1;Q=g.e(Q);for(var S=Q.next();!S.done;S=Q.next()){S=S.value;var Z=S.slotType==="SLOT_TYPE_PLAYER_BYTES"&&S.slotEntryTrigger instanceof JA?S.slotEntryTrigger.Lx:void 0;Z&&Z===X&&(R&&qQ("More than 1 preroll playerBytes slot detected",S),R=!0)}R||Rx(PF(G.N).YZ)}; BHG=function(G){if(Ny(PF(G.N).y5))return!0;var X="";G=g.e(PF(G.N).RX.d$.keys());for(var Q=G.next();!Q.done;Q=G.next()){Q=Q.value;if(Q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Q.JT==="core")return!0;X+=Q.slotType+" "}Math.random()<.01&&qQ("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:X});return!1}; FoL=function(G){G=g.e(PF(G.N).RX.d$.values());for(var X=G.next();!X.done;X=G.next())if(X.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; txZ=function(G,X,Q,R,S,Z,H){Q=Q===void 0?[]:Q;R=R===void 0?"":R;S=S===void 0?"":S;var w=PF(G.N).y5,h=G.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.IW();Q=cOv(X,Q,w,PF(G.N).eR);p2Z(PF(G.N).zF,R,Q.Rm,Q.TM,X,S,Z,H)}; cOv=function(G,X,Q,R){X={Rm:[],TM:X};G=g.e(G);for(var S=G.next();!S.done;S=G.next())if((S=S.value)&&S.renderer!=null){var Z=S.renderer;if(!Q.U.Z().G("html5_enable_vod_lasr_with_notify_pacf")){var H=void 0,w=void 0,h=void 0,L=void 0,k=R;g.y((L=Z.sandwichedLinearAdRenderer)==null?void 0:L.adVideoStart,DL)?(H=g.y((h=Z.sandwichedLinearAdRenderer)==null?void 0:h.adVideoStart,DL),H=Qee(H,k),g.gV(Z.sandwichedLinearAdRenderer.adVideoStart,DL,H)):g.y((w=Z.linearAdSequenceRenderer)==null?void 0:w.adStart,DL)&& (h=g.y((H=Z.linearAdSequenceRenderer)==null?void 0:H.adStart,DL),H=Qee(h,k),g.gV(Z.linearAdSequenceRenderer.adStart,DL,H))}X.Rm.push(S)}return X}; g.NR=function(G){if(typeof DOMParser!="undefined")return Or(new DOMParser,cJl(G),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.A0=function(G){g.I.call(this);this.callback=G;this.N=new m_(0,0,.4,0,.2,1,1,1);this.delay=new g.yK(this.next,window,this);g.d(this,this.delay)}; g.CLS=function(G){var X=G.Z();return X.kS&&!X.Y&&g.Jn(X)?G.isEmbedsShortsMode()?(G=G.V5(),Math.min(G.width,G.height)>=315):!G.lT():!1}; g.nW=function(G){g.f.call(this,{D:"div",X:"ytp-more-videos-view",L:{tabIndex:"-1"}});var X=this;this.api=G;this.W=!0;this.Y=new g.KP(this);this.N=[];this.suggestionData=[];this.columns=this.containerWidth=this.T=this.V=this.scrollPosition=0;this.title=new g.f({D:"h2",X:"ytp-related-title",WM:"{{title}}"});this.previous=new g.f({D:"button",aU:["ytp-button","ytp-previous"],L:{"aria-label":"Show previous suggested videos"},K:[g.LD()]});this.J=new g.A0(function(Q){X.suggestions.element.scrollLeft=-Q}); this.next=new g.f({D:"button",aU:["ytp-button","ytp-next"],L:{"aria-label":"Show more suggested videos"},K:[g.kC()]});g.d(this,this.Y);this.S=G.Z().V;g.d(this,this.title);this.title.s_(this.element);this.suggestions=new g.f({D:"div",X:"ytp-suggestions"});g.d(this,this.suggestions);this.suggestions.s_(this.element);g.d(this,this.previous);this.previous.s_(this.element);this.previous.listen("click",this.CF,this);g.d(this,this.J);tZk(this);g.d(this,this.next);this.next.s_(this.element);this.next.listen("click", this.vj,this);this.Y.B(this.api,"appresize",this.EM);this.Y.B(this.api,"fullscreentoggled",this.GG);this.Y.B(this.api,"videodatachange",this.onVideoDataChange);this.EM(this.api.mp().getPlayerSize());this.onVideoDataChange()}; tZk=function(G){for(var X={yh:0};X.yh<16;X={yh:X.yh},++X.yh){var Q=new g.f({D:"a",X:"ytp-suggestion-link",L:{href:"{{link}}",target:G.api.Z().j,"aria-label":"{{aria_label}}"},K:[{D:"div",X:"ytp-suggestion-image"},{D:"div",X:"ytp-suggestion-overlay",L:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},K:[{D:"div",X:"ytp-suggestion-title",WM:"{{title}}"},{D:"div",X:"ytp-suggestion-author",WM:"{{author_and_views}}"},{D:"div",L:{"data-is-live":"{{is_live}}"},X:"ytp-suggestion-duration", WM:"{{duration}}"}]}]});g.d(G,Q);var R=Q.VH("ytp-suggestion-link");g.DN(R,"transitionDelay",X.yh/20+"s");G.Y.B(R,"click",function(S){return function(Z){var H=S.yh;if(G.W){var w=G.suggestionData[H],h=w.sessionData;G.S&&G.api.G("web_player_log_click_before_generating_ve_conversion_params")?(G.api.logClick(G.N[H].element),H=w.Iu(),w={},g.NY(G.api,w),H=g.on(H,w),g.rU(H,G.api,Z)):g.ej(Z,G.api,G.S,h||void 0)&&G.api.mZ(w.videoId,h,w.playlistId)}else Z.preventDefault(),document.activeElement.blur()}}(X)); Q.s_(G.suggestions.element);G.N.push(Q);G.api.createServerVe(Q.element,Q)}}; VZO=function(G){if(G.api.Z().G("web_player_log_click_before_generating_ve_conversion_params"))for(var X=Math.floor(-G.scrollPosition/(G.V+8)),Q=Math.min(X+G.columns,G.suggestionData.length)-1;X<=Q;X++)G.api.logVisibility(G.N[X].element,!0)}; g.$Y=function(G){var X=G.api.Yu()?32:16;X=G.T/2+X;G.next.element.style.bottom=X+"px";G.previous.element.style.bottom=X+"px";X=G.scrollPosition;var Q=G.containerWidth-G.suggestionData.length*(G.V+8);g.S_(G.element,"ytp-scroll-min",X>=0);g.S_(G.element,"ytp-scroll-max",X<=Q)}; dSa=function(G){for(var X=G.suggestionData.length,Q=0;Q>>0)+"_",S=0;return X}); kT("Symbol.iterator",function(G){if(G)return G;G=Symbol("Symbol.iterator");for(var X="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),Q=0;Q0&&Q>0;)if(R[--Q]!=X[--S])return!1;return S<=0}}); kT("Array.prototype.find",function(G){return G?G:function(X,Q){return YCC(this,X,Q).N$}}); kT("Array.prototype.entries",function(G){return G?G:function(){return DG(this,function(X,Q){return[X,Q]})}}); kT("Array.prototype.keys",function(G){return G?G:function(){return DG(this,function(X){return X})}}); kT("String.prototype.startsWith",function(G){return G?G:function(X,Q){var R=yZ(this,X,"startsWith");X+="";var S=R.length,Z=X.length;Q=Math.max(0,Math.min(Q|0,R.length));for(var H=0;H=Z}}); kT("Number.isFinite",function(G){return G?G:function(X){return typeof X!=="number"?!1:!isNaN(X)&&X!==Infinity&&X!==-Infinity}}); kT("String.prototype.repeat",function(G){return G?G:function(X){var Q=yZ(this,null,"repeat");if(X<0||X>1342177279)throw new RangeError("Invalid count value");X|=0;for(var R="";X;)if(X&1&&(R+=Q),X>>>=1)Q+=Q;return R}}); kT("Object.entries",function(G){return G?G:function(X){var Q=[],R;for(R in X)Pl(X,R)&&Q.push([R,X[R]]);return Q}}); kT("Array.from",function(G){return G?G:function(X,Q,R){Q=Q!=null?Q:function(w){return w}; var S=[],Z=typeof Symbol!="undefined"&&Symbol.iterator&&X[Symbol.iterator];if(typeof Z=="function"){X=Z.call(X);for(var H=0;!(Z=X.next()).done;)S.push(Q.call(R,Z.value,H++))}else for(Z=X.length,H=0;H>>0;if(X===0)return 32;var Q=0;(X&4294901760)===0&&(X<<=16,Q+=16);(X&4278190080)===0&&(X<<=8,Q+=8);(X&4026531840)===0&&(X<<=4,Q+=4);(X&3221225472)===0&&(X<<=2,Q+=2);(X&2147483648)===0&&Q++;return Q}}); kT("Number.isNaN",function(G){return G?G:function(X){return typeof X==="number"&&isNaN(X)}}); kT("Array.prototype.values",function(G){return G?G:function(){return DG(this,function(X,Q){return Q})}}); kT("Array.prototype.fill",function(G){return G?G:function(X,Q,R){var S=this.length||0;Q<0&&(Q=Math.max(0,S+Q));if(R==null||R>S)R=S;R=Number(R);R<0&&(R=Math.max(0,S+R));for(Q=Number(Q||0);Q0&&Q?Q.repeat(Math.ceil(X/Q.length)).substring(0,X):"")+R}}); kT("Array.prototype.findIndex",function(G){return G?G:function(X,Q){return YCC(this,X,Q).AL}}); kT("Promise.prototype.finally",function(G){return G?G:function(X){return this.then(function(Q){return Promise.resolve(X()).then(function(){return Q})},function(Q){return Promise.resolve(X()).then(function(){throw Q; })})}}); kT("Math.imul",function(G){return G?G:function(X,Q){X=Number(X);Q=Number(Q);var R=X&65535,S=Q&65535;return R*S+((X>>>16&65535)*S+R*(Q>>>16&65535)<<16>>>0)|0}}); kT("Math.sign",function(G){return G?G:function(X){X=Number(X);return X===0||isNaN(X)?X:X>0?1:-1}}); kT("WeakSet",function(G){function X(Q){this.N=new WeakMap;if(Q){Q=g.e(Q);for(var R;!(R=Q.next()).done;)this.add(R.value)}} if(function(){if(!G||!Object.seal)return!1;try{var Q=Object.seal({}),R=Object.seal({}),S=new G([Q]);if(!S.has(Q)||S.has(R))return!1;S.delete(Q);S.add(R);return!S.has(Q)&&S.has(R)}catch(Z){return!1}}())return G; X.prototype.add=function(Q){this.N.set(Q,!0);return this}; X.prototype.has=function(Q){return this.N.has(Q)}; X.prototype.delete=function(Q){return this.N.delete(Q)}; return X}); kT("AggregateError",function(G){function X(Q,R){R=Error(R);"stack"in R&&(this.stack=R.stack);this.errors=Q;this.message=R.message} if(G)return G;g.T(X,Error);X.prototype.name="AggregateError";return X}); kT("Array.prototype.copyWithin",function(G){function X(Q){Q=Number(Q);return Q===Infinity||Q===-Infinity?Q:Q|0} return G?G:function(Q,R,S){var Z=this.length;Q=X(Q);R=X(R);S=S===void 0?Z:X(S);Q=Q<0?Math.max(Z+Q,0):Math.min(Q,Z);R=R<0?Math.max(Z+R,0):Math.min(R,Z);S=S<0?Math.max(Z+S,0):Math.min(S,Z);if(QR;)--S in this?this[--Q]=this[S]:delete this[--Q];return this}}); kT("Int8Array.prototype.copyWithin",AG);kT("Uint8Array.prototype.copyWithin",AG);kT("Uint8ClampedArray.prototype.copyWithin",AG);kT("Int16Array.prototype.copyWithin",AG);kT("Uint16Array.prototype.copyWithin",AG);kT("Int32Array.prototype.copyWithin",AG);kT("Uint32Array.prototype.copyWithin",AG);kT("Float32Array.prototype.copyWithin",AG);kT("Float64Array.prototype.copyWithin",AG);kT("Array.prototype.at",function(G){return G?G:$T}); kT("Int8Array.prototype.at",vl);kT("Uint8Array.prototype.at",vl);kT("Uint8ClampedArray.prototype.at",vl);kT("Int16Array.prototype.at",vl);kT("Uint16Array.prototype.at",vl);kT("Int32Array.prototype.at",vl);kT("Uint32Array.prototype.at",vl);kT("Float32Array.prototype.at",vl);kT("Float64Array.prototype.at",vl);kT("String.prototype.at",function(G){return G?G:$T}); kT("Array.prototype.findLastIndex",function(G){return G?G:function(X,Q){return j07(this,X,Q).AL}}); kT("Int8Array.prototype.findLastIndex",JG);kT("Uint8Array.prototype.findLastIndex",JG);kT("Uint8ClampedArray.prototype.findLastIndex",JG);kT("Int16Array.prototype.findLastIndex",JG);kT("Uint16Array.prototype.findLastIndex",JG);kT("Int32Array.prototype.findLastIndex",JG);kT("Uint32Array.prototype.findLastIndex",JG);kT("Float32Array.prototype.findLastIndex",JG);kT("Float64Array.prototype.findLastIndex",JG);kT("Number.parseInt",function(G){return G||parseInt});var yW,qS,mey;yW=yW||{};g.i7=this||self;qS="closure_uid_"+(Math.random()*1E9>>>0);mey=0;g.mo(od,Error);od.prototype.name="CustomError";var USS;var eUy,TX,p0;eUy=Array.prototype.indexOf?function(G,X){return Array.prototype.indexOf.call(G,X,void 0)}:function(G,X){if(typeof G==="string")return typeof X!=="string"||X.length!=1?-1:G.indexOf(X,0); for(var Q=0;Q=0;Q--)if(Q in G&&G[Q]===X)return Q;return-1}; g.vn=Array.prototype.forEach?function(G,X,Q){Array.prototype.forEach.call(G,X,Q)}:function(G,X,Q){for(var R=G.length,S=typeof G==="string"?G.split(""):G,Z=0;Z=.3:this.QD>=.5};var gg={h0M:0,rNB:1},OsG={NONE:0,wic:1,W4A:2};var tyT="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Tn.prototype.getValue=function(){return this.W}; g.T(Kz,Tn);Kz.prototype.Y=function(G){this.W===null&&g.Y7(this.V,G)&&(this.W=G)}; g.T(eG,Tn);eG.prototype.Y=function(G){this.W===null&&typeof G==="number"&&(this.W=G)}; g.T(rg,Tn);rg.prototype.Y=function(G){this.W===null&&typeof G==="string"&&(this.W=G)};aB.prototype.disable=function(){this.W=!1}; aB.prototype.enable=function(){this.W=!0}; aB.prototype.isEnabled=function(){return this.W}; aB.prototype.reset=function(){this.N={};this.W=!0;this.Y={}};var f0=document,UM=window;var n4a=SZ(1,!0),dg=SZ(610401301,!1);SZ(899588437,!1);var $Sd=SZ(772657768,!1),bao=SZ(513659523,!1),v4L=SZ(568333945,n4a),xiU=SZ(1331761403,!1);SZ(651175828,!1);SZ(722764542,!1);SZ(748402145,!1);SZ(748402146,!1);var K3y=SZ(748402147,n4a);SZ(333098724,!1);SZ(2147483644,!1);SZ(2147483645,!1);SZ(2147483646,n4a);SZ(2147483647,!0);var W$=!!g.QH("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Cz=String.prototype.trim?function(G){return G.trim()}:function(G){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(G)[1]},qv0=/&/g,wnT=//g,Low=/"/g,k3X=/'/g,YvV=/\x00/g,Ha7=/[\x00&<>"']/;var pz,JOv=g.i7.navigator;pz=JOv?JOv.userAgentData||null:null;var $ey=globalThis.trustedTypes,Ji;G9.prototype.toString=function(){return this.N+""};R$.prototype.toString=function(){return this.N}; var JG7=new R$("about:invalid#zClosurez");var doi=qq("tel"),VM7=qq("sms"),vTl=[qq("data"),qq("http"),qq("https"),qq("mailto"),qq("ftp"),new Ho(function(G){return/^[^:]*([/?#]|$)/.test(G)})],iVT=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;jS.prototype.toString=function(){return this.N+""};Po.prototype.toString=function(){return this.N+""};rZ.prototype.toString=function(){return this.N};var Er={};g.iaH=String.prototype.repeat?function(G,X){return G.repeat(X)}:function(G,X){return Array(X+1).join(G)};dZ[" "]=function(){};var NP,jR,NjV,Gnv,X$4,QBH,nj,$M,RsL;g.b$=nz();g.wC=yG0();g.pl=Nn("Edge");g.rS=g.pl||g.wC;NP=Nn("Gecko")&&!(Fm(g.IB(),"WebKit")&&!Nn("Edge"))&&!(Nn("Trident")||Nn("MSIE"))&&!Nn("Edge");g.kh=Fm(g.IB(),"WebKit")&&!Nn("Edge");jR=I$();NjV=PLX();g.NN=uGi();Gnv=tC();X$4=Nn("iPad");QBH=Nn("iPod");nj=Vo();$M=Fm(g.IB(),"KaiOS"); a:{var Slk="",ZzS=function(){var G=g.IB();if(NP)return/rv:([^\);]+)(\)|;)/.exec(G);if(g.pl)return/Edge\/([\d\.]+)/.exec(G);if(g.wC)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(G);if(g.kh)return/WebKit\/(\S+)/.exec(G);if(g.b$)return/(?:Version)[ \/]?(\S+)/.exec(G)}(); ZzS&&(Slk=ZzS?ZzS[1]:"");if(g.wC){var bg,HzO=g.i7.document;bg=HzO?HzO.documentMode:void 0;if(bg!=null&&bg>parseFloat(Slk)){RsL=String(bg);break a}}RsL=Slk}var ekV=RsL,THG={};var y9,fi;g.Lj=$7();y9=tC()||Nn("iPod");fi=Nn("iPad");g.vm=Dei();g.un=bY();g.Y_=v$()&&!Vo();var B1T=!g.wC&&!v$();g.P=g.Db.prototype;g.P.clone=function(){return new g.Db(this.x,this.y)}; g.P.equals=function(G){return G instanceof g.Db&&Nq(this,G)}; g.P.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.P.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.P.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.P.scale=function(G,X){this.x*=G;this.y*=typeof X==="number"?X:G;return this};g.P=g.AC.prototype;g.P.clone=function(){return new g.AC(this.width,this.height)}; g.P.aspectRatio=function(){return this.width/this.height}; g.P.isEmpty=function(){return!$i(this)}; g.P.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.P.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.P.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.P.scale=function(G,X){this.width*=G;this.height*=typeof X==="number"?X:G;return this};vo.prototype.toString=function(){return this.N}; var bA={};new vo(bA,"");var E4i=/^[a-z][a-z\d-]*$/i,xSy="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),zky="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),g4Z=["action","formaction","href"];var lVC={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.P=Gt.prototype;g.P.V0=function(G){return ZN(this.N,G)}; g.P.getElementsByTagName=function(G,X){return(X||this.N).getElementsByTagName(String(G))}; g.P.VH=function(G){return g.hj(G,this.N)}; g.P.setProperties=Ls;g.P.createElement=function(G){return je(this.N,G)}; g.P.appendChild=g.uE;g.P.append=function(G,X){tZU(Xp(G),G,arguments,1)}; g.P.canHaveChildren=function(G){if(G.nodeType!=1)return!1;switch(G.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.P.removeNode=g.Tt;g.P.getChildren=function(G){return G.children!=void 0?G.children:Array.prototype.filter.call(G.childNodes,function(X){return X.nodeType==1})}; g.P.contains=g.Ks;zt.prototype.now=function(){return 0}; zt.prototype.W=function(){return 0}; zt.prototype.Y=function(){return 0}; zt.prototype.N=function(){return 0};g.T(gy,zt);gy.prototype.now=function(){return cq()&&UM.performance.now?UM.performance.now():zt.prototype.now.call(this)}; gy.prototype.W=function(){return cq()&&UM.performance.memory?UM.performance.memory.totalJSHeapSize||0:zt.prototype.W.call(this)}; gy.prototype.Y=function(){return cq()&&UM.performance.memory?UM.performance.memory.usedJSHeapSize||0:zt.prototype.Y.call(this)}; gy.prototype.N=function(){return cq()&&UM.performance.memory?UM.performance.memory.jsHeapSizeLimit||0:zt.prototype.N.call(this)};var z0e=function(){if(!g.i7.addEventListener||!Object.defineProperty)return!1;var G=!1,X=Object.defineProperty({},"passive",{get:function(){G=!0}}); try{var Q=function(){}; g.i7.addEventListener("test",Q,X);g.i7.removeEventListener("test",Q,X)}catch(R){}return G}();var Zne=WoS("AnimationEnd"),zT=WoS("TransitionEnd");g.P=V7.prototype;g.P.getHeight=function(){return this.bottom-this.top}; g.P.clone=function(){return new V7(this.top,this.right,this.bottom,this.left)}; g.P.contains=function(G){return this&&G?G instanceof V7?G.left>=this.left&&G.right<=this.right&&G.top>=this.top&&G.bottom<=this.bottom:G.x>=this.left&&G.x<=this.right&&G.y>=this.top&&G.y<=this.bottom:!1}; g.P.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.P.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.P.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.P.scale=function(G,X){X=typeof X==="number"?X:G;this.left*=G;this.right*=G;this.top*=X;this.bottom*=X;return this};g.P=g.ps.prototype;g.P.clone=function(){return new g.ps(this.left,this.top,this.width,this.height)}; g.P.contains=function(G){return G instanceof g.Db?G.x>=this.left&&G.x<=this.left+this.width&&G.y>=this.top&&G.y<=this.top+this.height:this.left<=G.left&&this.left+this.width>=G.left+G.width&&this.top<=G.top&&this.top+this.height>=G.top+G.height}; g.P.getSize=function(){return new g.AC(this.width,this.height)}; g.P.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.P.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.P.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.P.scale=function(G,X){X=typeof X==="number"?X:G;this.left*=G;this.width*=G;this.top*=X;this.height*=X;return this};var yOl={};var $S0=Fp(function(){var G=!1;try{var X=Object.defineProperty({},"passive",{get:function(){G=!0}}); g.i7.addEventListener("test",null,X)}catch(Q){}return G});baw.prototype.isVisible=function(){return H1(f0)===1};var fRT=w1(function(G){return typeof G==="number"}),Jv=w1(function(G){return typeof G==="string"}),DnU=w1(function(G){return typeof G==="boolean"}),tT=w1(function(G){return G!=null&&typeof G==="object"&&typeof G.then==="function"}),udl=w1(function(G){return typeof G==="function"}),qlG=w1(function(G){return!!G&&(typeof G==="object"||typeof G==="function")});var iaX={Z4B:"allow-forms",KIC:"allow-modals",jMm:"allow-orientation-lock",b4O:"allow-pointer-lock",fk_:"allow-popups",guU:"allow-popups-to-escape-sandbox",rob:"allow-presentation",duB:"allow-same-origin",tcT:"allow-scripts",uzB:"allow-top-navigation",ARd:"allow-top-navigation-by-user-activation"},Rs7=Fp(function(){return GnC()});var HzG=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");MB.prototype.Rt=function(G,X,Q){G=G+"//"+X+Q;var R=LFe(this)-Q.length;if(R<0)return"";this.N.sort(function(L,k){return L-k}); Q=null;X="";for(var S=0;S=h.length){R-=h.length;G+=h;X=this.Y;break}Q=Q==null?Z:Q}}R="";Q!=null&&(R=""+X+"trn="+Q);return G+R};eV.prototype.setInterval=function(G,X){return UM.setInterval(G,X)}; eV.prototype.clearInterval=function(G){UM.clearInterval(G)}; eV.prototype.setTimeout=function(G,X){return UM.setTimeout(G,X)}; eV.prototype.clearTimeout=function(G){UM.clearTimeout(G)};var LO=void 0,G6,yCS=typeof TextDecoder!=="undefined",KFX,TgG=typeof String.prototype.isWellFormed==="function",sB7=typeof TextEncoder!=="undefined";var xnZ={},g1=null,OzG=NP||g.kh||typeof g.i7.btoa=="function";var VGS=typeof Uint8Array!=="undefined",lR0=!g.wC&&typeof btoa==="function",BgX=/[-_.]/g,g77={"-":"+",_:"/",".":"="},lK={};Uo.prototype.isEmpty=function(){return this.N==null}; Uo.prototype.sizeBytes=function(){var G=FD(this);return G?G.length:0}; var tGV;var IRG=void 0;var d1=typeof Symbol==="function"&&typeof Symbol()==="symbol",w$3=Ih("jas",void 0,!0),uN=Ih(void 0,"1oa"),lu=Ih(void 0,Symbol()),hsv=Ih(void 0,"0ub"),j$7=Ih(void 0,"0ubs"),jLZ=Ih(void 0,"0ubsb"),rCw=Ih(void 0,"0actk"),cL=Ih("m_m","Q5b",!0),oi7=Ih(void 0,"vps"),LFS=Ih();Math.max.apply(Math,g.o0(Object.values({zbb:1,WkO:2,yCm:4,doT:8,Zjm:16,mWH:32,YGc:64,a1A:128,AXB:256,ofp:512,yXd:1024,I1T:2048,Zgd:4096})));var WFw={vB:{value:0,configurable:!0,writable:!0,enumerable:!1}},dnw=Object.defineProperties,W1=d1?w$3:"vB",RS,knH=[];yj(knH,7);RS=Object.freeze(knH);var gf={},Dr={},UqG=Object.freeze({}),nt={};var iK=typeof g.i7.BigInt==="function"&&typeof g.i7.BigInt(0)==="bigint";var WL=w1(function(G){return iK?G>=Ylv&&G<=jBO:G[0]==="-"?NgC(G,MGo):NgC(G,mnG)}),MGo=Number.MIN_SAFE_INTEGER.toString(),Ylv=iK?BigInt(Number.MIN_SAFE_INTEGER):void 0,mnG=Number.MAX_SAFE_INTEGER.toString(),jBO=iK?BigInt(Number.MAX_SAFE_INTEGER):void 0;var VSS=typeof Uint8Array.prototype.slice==="function",X0=0,Qf=0,Mey;var TR=typeof BigInt==="function"?BigInt.asIntN:void 0,qrC=typeof BigInt==="function"?BigInt.asUintN:void 0,a7=Number.isSafeInteger,Yw=Number.isFinite,EK=Math.trunc,v7y=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var uHU={};var o7G={epM:!0};var tu;var PAU,s$T;var F3i=GR(0),lN={};WX.prototype.init=function(G,X,Q,R){var S=R===void 0?{}:R;R=S.EX===void 0?!1:S.EX;S=S.L0===void 0?!1:S.L0;this.EX=R;this.L0=S;G&&(G=d8(G,this.L0),this.W=G.buffer,this.C=G.N,this.V=X||0,this.Y=Q!==void 0?this.V+Q:this.W.length,this.N=this.V)}; WX.prototype.free=function(){this.clear();$u.length<100&&$u.push(this)}; WX.prototype.clear=function(){this.W=null;this.C=!1;this.N=this.Y=this.V=0;this.EX=!1}; WX.prototype.reset=function(){this.N=this.V}; var $u=[];bN.prototype.free=function(){this.N.clear();this.W=this.Y=-1;vX.length<100&&vX.push(this)}; bN.prototype.reset=function(){this.N.reset();this.V=this.N.N;this.W=this.Y=-1}; var vX=[];var Dq0,ACy;Mm.prototype.length=function(){return this.N.length}; Mm.prototype.end=function(){var G=this.N;this.N=[];return G};var r7=KO(),uma=KO(),PYZ=KO(),sBL=KO(),TgO=KO(),KFH=KO(),esH=KO(),ri3=KO(),aRo=KO(),E7d=KO(),xnH=KO();eo.prototype.toJSON=function(){return yf(this)}; eo.prototype.Zh=function(G){return JSON.stringify(yf(this,G))}; eo.prototype.clone=function(){var G=this.fO,X=G[W1]|0;return Au(this,G,X)?ny(this,G,!0):new this.constructor(Np(G,X,!1))}; eo.prototype[cL]=gf;eo.prototype.toString=function(){return this.fO.toString()};var RmZ=EN(function(G,X,Q,R,S){if(G.W!==2)return!1;iN(G,et(X,R,Q),S);return!0},QLG),SMw=EN(function(G,X,Q,R,S){if(G.W!==2)return!1; iN(G,et(X,R,Q),S);return!0},QLG),CO=Symbol(),g7=Symbol(),Bb=Symbol(),LlT=Symbol(),qMU=Symbol(),xV,ON;var OzO=D8(function(G,X,Q){if(G.W!==1)return!1;A3(X,Q,A6(G.N));return!0},$V,aRo),zsV=D8(function(G,X,Q){if(G.W!==1)return!1; G=A6(G.N);A3(X,Q,G===0?void 0:G);return!0},$V,aRo),ciZ=D8(function(G,X,Q,R){if(G.W!==1)return!1; mn(X,Q,R,A6(G.N));return!0},$V,aRo),g7L=D8(function(G,X,Q){if(G.W!==0)return!1; A3(X,Q,y$(G.N));return!0},bZ,esH),UnG=D8(function(G,X,Q){if(G.W!==0)return!1; G=y$(G.N);A3(X,Q,G===0?void 0:G);return!0},bZ,esH),lRd=D8(function(G,X,Q,R){if(G.W!==0)return!1; mn(X,Q,R,y$(G.N));return!0},bZ,esH),BgH=D8(function(G,X,Q){if(G.W!==0)return!1; A3(X,Q,fS(G.N));return!0},vb,sBL),FFS=D8(function(G,X,Q){if(G.W!==0)return!1; G=fS(G.N);A3(X,Q,G===0?void 0:G);return!0},vb,sBL),CYO=D8(function(G,X,Q,R){if(G.W!==0)return!1; mn(X,Q,R,fS(G.N));return!0},vb,sBL),tGa=D8(function(G,X,Q){if(G.W!==1)return!1; A3(X,Q,N5(G.N));return!0},function(G,X,Q){iT7(G,Q,woX(X))},ri3),VGG=Nm(function(G,X,Q){if(G.W!==1&&G.W!==2)return!1; X=LS(X,X[W1]|0,Q);if(G.W==2)for(Q=fS(G.N)>>>0,Q=G.N.N+Q;G.N.N>>0);return!0},function(G,X,Q){X=o7(X); X!=null&&X!=null&&(sN(G,Q,0),ov(G.N,X))},TgO),Qd=D8(function(G,X,Q){if(G.W!==0)return!1; A3(X,Q,fS(G.N));return!0},function(G,X,Q){X=mG(X); X!=null&&(X=parseInt(X,10),sN(G,Q,0),$qy(G.N,X))},xnH);sLi.prototype.register=function(){dZ(this)};g.T(G2,eo);G2.prototype.Y=KlG([0,zsV,UnG,-2,FFS]);var zmX={owH:1,rE:2,Ogc:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};ghl.prototype.xn=function(G){if(typeof G==="string"&&G.length!=0){var X=this.hW;if(X.W){G=G.split("&");for(var Q=G.length-1;Q>=0;Q--){var R=G[Q].split("="),S=decodeURIComponent(R[0]);R.length>1?(R=decodeURIComponent(R[1]),R=/^[0-9]+$/g.exec(R)?parseInt(R,10):R):R=1;(S=X.N[S])&&S.Y(R)}}}};var Ry=null;var Hi=g.i7.performance,Ngv=!!(Hi&&Hi.mark&&Hi.measure&&Hi.clearMarks),S5=Fp(function(){var G;if(G=Ngv){var X=X===void 0?window:X;if(Ry===null){Ry="";try{G="";try{G=X.top.location.hash}catch(R){G=X.location.hash}if(G){var Q=G.match(/\bdeid=([\d,]+)/);Ry=Q?Q[1]:""}}catch(R){}}X=Ry;G=!!X.indexOf&&X.indexOf("1337")>=0}return G}); ZW.prototype.disable=function(){this.N=!1;this.events!==this.W.google_js_reporting_queue&&(S5()&&g.vn(this.events,tel),this.events.length=0)}; ZW.prototype.start=function(G,X){if(!this.N)return null;var Q=Fl7()||ByG();G=new CEU(G,X,Q);X="goog_"+G.label+"_"+G.uniqueId+"_start";Hi&&S5()&&Hi.mark(X);return G}; ZW.prototype.end=function(G){if(this.N&&typeof G.value==="number"){var X=Fl7()||ByG();G.duration=X-G.value;X="goog_"+G.label+"_"+G.uniqueId+"_end";Hi&&S5()&&Hi.mark(X);!this.N||this.events.length>2048||this.events.push(G)}};var VeC=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),sx=/#|$/,fNT=/[?&]($|#)/;NyG.prototype.EJ=function(G,X,Q,R,S){S=S||this.ph;try{var Z=new MB;Z.N.push(1);Z.W[1]=m8("context",G);X.error&&X.meta&&X.id||(X=new xa(Ox(X)));if(X.msg){var H=X.msg.substring(0,512);Z.N.push(2);Z.W[2]=m8("msg",H)}var w=X.meta||{};if(this.Vq)try{this.Vq(w)}catch(m){}if(R)try{R(w)}catch(m){}R=[w];Z.N.push(3);Z.W[3]=R;var h=w$i();if(h.W){var L=h.W.url||"";Z.N.push(4);Z.W[4]=m8("top",L)}var k={url:h.N.url||""};if(h.N.url){var Y=g.we(h.N.url);var M=qE(Y[1],null,Y[3],Y[4])}else M="";L=[k,{url:M}];Z.N.push(5); Z.W[5]=L;UPl(this.N,S,Z,Q)}catch(m){try{UPl(this.N,S,{context:"ecmserr",rctx:G,msg:Ox(m),url:h&&h.N.url},Q)}catch(u){}}return this.aQ}; g.T(xa,lN7);var an,Ex,re=new ZW;an=new function(){var G="https:";UM&&UM.location&&UM.location.protocol==="http:"&&(G="http:");this.W=G;this.N=.01}; Ex=new NyG;UM&&UM.document&&(UM.document.readyState=="complete"?nhy():re.N&&Zr(UM,"load",function(){nhy()}));var vhi=Date.now(),Fb=-1,lz=-1,HS0,C0=-1,Bi=!1;tN.prototype.equals=function(G,X){return!!G&&(!(X===void 0?0:X)||this.volume==G.volume)&&this.Y==G.Y&&dy(this.N,G.N)&&!0};VR.prototype.V0=function(){return this.J}; VR.prototype.equals=function(G,X){return this.V.equals(G.V,X===void 0?!1:X)&&this.J==G.J&&dy(this.Y,G.Y)&&dy(this.S,G.S)&&this.N==G.N&&this.C==G.C&&this.W==G.W&&this.T==G.T};var AiH={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Dm={Z2:"start",Wj:"firstquartile",q5:"midpoint",KZ:"thirdquartile",COMPLETE:"complete",ERROR:"error",CZ:"metric",PAUSE:"pause",Bb:"resume",TY:"skip",gE:"viewable_impression",GY:"mute",bv:"unmute",zm:"fullscreen",y4:"exitfullscreen",bP:"bufferstart",jB:"bufferfinish",Hj:"fully_viewable_audible_half_duration_impression",Sd:"measurable_impression",eB:"abandon",N7:"engagedview",Y1:"impression",rr:"creativeview",LOADED:"loaded", SjA:"progress",CLOSE:"close",z0i:"collapse",WZd:"overlay_resize",zoA:"overlay_unmeasurable_impression",HQ_:"overlay_unviewable_impression",VsU:"overlay_viewable_immediate_impression",YjM:"overlay_viewable_end_of_session_impression",un:"custom_metric_viewable",XO:"audio_audible",B6:"audio_measurable",E8:"audio_impression"},uay="start firstquartile midpoint thirdquartile resume loaded".split(" "),PZS=["start","firstquartile","midpoint","thirdquartile"],wXU=["abandon"],kR={UNKNOWN:-1,Z2:0,Wj:1,q5:2, KZ:3,COMPLETE:4,CZ:5,PAUSE:6,Bb:7,TY:8,gE:9,GY:10,bv:11,zm:12,y4:13,Hj:14,Sd:15,eB:16,N7:17,Y1:18,rr:19,LOADED:20,un:21,bP:22,jB:23,E8:27,B6:28,XO:29};var isl={FIC:"addEventListener",HuT:"getMaxSize",YR_:"getScreenSize",VlA:"getState",x1A:"getVersion",cwM:"removeEventListener",HgM:"isViewable"};Hty.prototype.update=function(G){G&&G.document&&(this.J=In(!1,G,this.isMobileDevice),this.N=In(!0,G,this.isMobileDevice),w1w(this,G),qoT(this,G))};NE.prototype.cancel=function(){r1().clearTimeout(this.N);this.N=null}; NE.prototype.schedule=function(){var G=this,X=r1(),Q=QR().N.N;this.N=X.setTimeout(Xb(Q,ci(143,function(){G.W++;G.Y.sample()})),JjT())};g.P=AN.prototype;g.P.cP=function(){return!1}; g.P.initialize=function(){return this.isInitialized=!0}; g.P.F3=function(){return this.N.Mi}; g.P.cQ=function(){return this.N.AT}; g.P.fail=function(G,X){if(!this.AT||(X===void 0?0:X))this.AT=!0,this.Mi=G,this.T=0,this.N!=this||$a(this)}; g.P.getName=function(){return this.N.SA}; g.P.aD=function(){return this.N.BV()}; g.P.BV=function(){return{}}; g.P.Up=function(){return this.N.T}; g.P.PN=function(){var G=yR();G.N=In(!0,this.Y,G.isMobileDevice)}; g.P.Gv=function(){qoT(yR(),this.Y)}; g.P.zD=function(){return this.V.N}; g.P.sample=function(){}; g.P.isActive=function(){return this.N.S}; g.P.jU=function(G){var X=this.N;this.N=G.Up()>=this.T?G:this;X!==this.N?(this.S=this.N.S,$a(this)):this.S!==this.N.S&&(this.S=this.N.S,$a(this))}; g.P.P_=function(G){if(G.W===this.N){var X=!this.V.equals(G,this.j);this.V=G;X&&kXl(this)}}; g.P.Ul=function(){return this.j}; g.P.dispose=function(){this.DC=!0}; g.P.U_=function(){return this.DC};g.P=bz.prototype;g.P.observe=function(){return!0}; g.P.unobserve=function(){}; g.P.j4=function(G){this.C=G}; g.P.dispose=function(){if(!this.U_()){var G=this.W;g.Ev(G.C,this);G.j&&this.Ul()&&L8T(G);this.unobserve();this.Yc=!0}}; g.P.U_=function(){return this.Yc}; g.P.aD=function(){return this.W.aD()}; g.P.Up=function(){return this.W.Up()}; g.P.F3=function(){return this.W.F3()}; g.P.cQ=function(){return this.W.cQ()}; g.P.jU=function(){}; g.P.P_=function(){this.tD()}; g.P.Ul=function(){return this.DC};g.P=vi.prototype;g.P.Up=function(){return this.N.Up()}; g.P.F3=function(){return this.N.F3()}; g.P.cQ=function(){return this.N.cQ()}; g.P.create=function(G,X,Q){var R=null;this.N&&(R=this.x8(G,X,Q),n0(this.N,R));return R}; g.P.kK=function(){return this.eq()}; g.P.eq=function(){return!1}; g.P.init=function(G){return this.N.initialize()?(n0(this.N,this),this.V=G,!0):!1}; g.P.jU=function(G){G.Up()==0&&this.V(G.F3(),this)}; g.P.P_=function(){}; g.P.Ul=function(){return!1}; g.P.dispose=function(){this.C=!0}; g.P.U_=function(){return this.C}; g.P.aD=function(){return{}};JN.prototype.add=function(G,X,Q){++this.Y;G=new jhU(G,X,Q);this.N.push(new jhU(G.W,G.N,G.Y+this.Y/4096));this.W=!0;return this};PKT.prototype.toString=function(){var G="//pagead2.googlesyndication.com//pagead/gen_204",X=Gs(this.N);X.length>0&&(G+="?"+X);return G};g.I.prototype.G7=!1;g.I.prototype.U_=function(){return this.G7}; g.I.prototype.dispose=function(){this.G7||(this.G7=!0,this.zT())}; g.I.prototype[Symbol.dispose]=function(){this.dispose()}; g.I.prototype.addOnDisposeCallback=function(G,X){this.G7?X!==void 0?G.call(X):G():(this.R4||(this.R4=[]),X&&(G=G.bind(X)),this.R4.push(G))}; g.I.prototype.zT=function(){if(this.R4)for(;this.R4.length;)this.R4.shift()()};var n7o=[0,g7L,IRV,-1];RX.prototype.update=function(G,X,Q){G&&(this.N+=X,this.W+=X,this.V+=X,this.Y=Math.max(this.Y,this.V));if(Q===void 0?!G:Q)this.V=0};var rvS=[1,.75,.5,.3,0];Sl.prototype.update=function(G,X,Q,R,S,Z){Z=Z===void 0?!0:Z;X=S?Math.min(G,X):X;for(S=0;S0&&X>=H;H=!(G>0&&G>=H)||Q;this.N[S].update(Z&&w,R,!Z||H)}};LA.prototype.update=function(G,X,Q,R){this.J=this.J!=-1?Math.min(this.J,X.QD):X.QD;this.yH=Math.max(this.yH,X.QD);this.Yc=this.Yc!=-1?Math.min(this.Yc,X.JX):X.JX;this.Mi=Math.max(this.Mi,X.JX);this.KO.update(X.JX,Q.JX,X.N,G,R);this.IU+=G;X.QD===0&&(this.SA+=G);this.W.update(X.QD,Q.QD,X.N,G,R);Q=R||Q.B4!=X.B4?Q.isVisible()&&X.isVisible():Q.isVisible();X=!X.isVisible()||X.N;this.wb.update(Q,G,X)}; LA.prototype.wd=function(){return this.wb.Y>=this.BM};if(f0&&f0.URL){var $n3=f0.URL,bza;a:{if($n3){var v7Z=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var SM=v7Z.exec(decodeURIComponent($n3));if(SM){bza=SM[1]&&SM[1].length>1?SM[1].substring(1):"true";break a}}catch(G){}}bza=""}Ex.aQ=!(bza.length>0)};var Jin=new V7(0,0,0,0);var UBi=new V7(0,0,0,0);g.T(mt,g.I);g.P=mt.prototype; g.P.zT=function(){if(this.AX.N){if(this.d8.rT){var G=this.AX.N;typeof G.removeEventListener==="function"&&G.removeEventListener("mouseover",this.d8.rT,SV());this.d8.rT=null}this.d8.gT&&(G=this.AX.N,typeof G.removeEventListener==="function"&&G.removeEventListener("mouseout",this.d8.gT,SV()),this.d8.gT=null)}this.Yj&&this.Yj.dispose();this.SG&&this.SG.dispose();delete this.Ua;delete this.Bm;delete this.xD;delete this.AX.bR;delete this.AX.N;delete this.d8;delete this.Yj;delete this.SG;delete this.hW; g.I.prototype.zT.call(this)}; g.P.oD=function(){return this.SG?this.SG.N:this.position}; g.P.xn=function(G){QR().xn(G)}; g.P.Ul=function(){return!1}; g.P.hM=function(){return new LA}; g.P.au=function(){return this.Ua}; g.P.Z$=function(G){return CKy(this,G,1E4)}; g.P.GT=function(G,X,Q,R,S,Z,H){this.eO||(this.bM&&(G=this.U1(G,Q,S,H),R=R&&this.zR.QD>=(this.B4()?.3:.5),this.A9(Z,G,R),this.rK=X,G.QD>0&&-1===this.JO&&(this.JO=X),this.Ba==-1&&this.wd()&&(this.Ba=X),this.Fp==-2&&(this.Fp=jl(this.oD())?G.QD:-1),this.zR=G),this.Bm(this))}; g.P.A9=function(G,X,Q){this.au().update(G,X,this.zR,Q)}; g.P.W3=function(){return new iL}; g.P.U1=function(G,X,Q,R){Q=this.W3();Q.N=X;X=r1().W;X=H1(f0)===0?-1:X.isVisible()?0:1;Q.W=X;Q.QD=this.Ly(G);Q.B4=this.B4();Q.JX=R;return Q}; g.P.Ly=function(G){return this.opacity===0&&Ol(this.hW,"opac")===1?0:G}; g.P.B4=function(){return!1}; g.P.lr=function(){return this.J6||this.Fj}; g.P.aq=function(){Ux()}; g.P.Be=function(){Ux()}; g.P.OW=function(){return 0}; g.P.wd=function(){return this.Ua.wd()}; g.P.VP=function(){var G=this.bM;G=(this.hasCompleted||this.U_())&&!G;var X=QR().W!==2||this.ZLb;return this.eO||X&&G?2:this.wd()?4:3}; g.P.rH=function(){return 0};g.u_.prototype.next=function(){return g.ZF}; g.ZF={done:!0,value:void 0};g.u_.prototype.Kg=function(){return this};g.T(dpZ,iL);var Hh=pLZ([void 0,1,2,3,4,8,16]),qo=pLZ([void 0,4,8,16]),izo={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:En("p0",qo),p1:En("p1",qo),p2:En("p2",qo),p3:En("p3",qo),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:aX("mtos1",[0,2,4],!1,qo),mtos2:aX("mtos2",[0,2,4],!1,qo),mtos3:aX("mtos3",[0,2,4],!1,qo),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:En("a0",qo),a1:En("a1",qo),a2:En("a2",qo),a3:En("a3",qo),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:En("c0",qo),c1:En("c1",qo),c2:En("c2",qo),c3:En("c3",qo),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:En("qmtos",Hh),qnc:En("qnc",Hh),qmv:En("qmv",Hh),qnv:En("qnv",Hh), 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:En("ss0",qo),ss1:En("ss1",qo),ss2:En("ss2",qo),ss3:En("ss3",qo),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"},G9v=Object.assign({},izo,{avid:lE("audio"),avas:"avas",vs:"vs"}),Xo3={atos:"atos",avt:aX("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(G,X){return function(Q){return Q[G]===void 0&&X!==void 0?X:Q[G]}}("ss",0), t:"t"};cY.prototype.getValue=function(){return this.W}; cY.prototype.update=function(G,X){G>=32||(this.N&1<=.5;Wi(X.volume)&&(this.V=this.V!=-1?Math.min(this.V,X.volume):X.volume,this.S=Math.max(this.S,X.volume));Z&&(this.DC+=G,this.j+=S?G:0);this.N.update(X.QD,Q.QD,X.N,G,R,S);this.Y.update(!0,G);this.C.update(S,G);this.AT.update(Q.fullscreen,G);this.bB.update(S&&!Z,G);G=Math.floor(X.mediaTime/1E3);this.QH.update(G,X.isVisible());this.cM.update(G,X.QD>=1);this.Xm.update(G, rJ(X))}};nwX.prototype.W=function(G){this.Y||(this.N(G)?(G=ZOG(this.j,this.V,G),this.C|=G,G=G==0):G=!1,this.Y=G)};g.T(l_,nwX);l_.prototype.N=function(){return!0}; l_.prototype.S=function(){return!1}; l_.prototype.getId=function(){var G=this,X=jG(Dm,function(Q){return Q==G.V}); return kR[X].toString()}; l_.prototype.toString=function(){var G="";this.S()&&(G+="c");this.Y&&(G+="s");this.C>0&&(G+=":"+this.C);return this.getId()+G};g.T(BY,l_);BY.prototype.W=function(G,X){X=X===void 0?null:X;X!=null&&this.J.push(X);l_.prototype.W.call(this,G)};g.T(Fh,$p7);Fh.prototype.W=function(){return null}; Fh.prototype.Y=function(){return[]};g.T(t5,bz);g.P=t5.prototype;g.P.vp=function(){if(this.element){var G=this.element,X=this.W.N.Y;try{try{var Q=Rb7(G.getBoundingClientRect())}catch(L){Q=new V7(0,0,0,0)}var R=Q.right-Q.left,S=Q.bottom-Q.top,Z=NH0(G,X),H=Z.x,w=Z.y;var h=new V7(Math.round(w),Math.round(H+R),Math.round(w+S),Math.round(H))}catch(L){h=Jin.clone()}this.Y=h;this.N=Yo0(this,this.Y)}}; g.P.Mm=function(){this.S=this.W.V.N}; g.P.gz=function(G){var X=Ol(this.hW,"od")==1;return gNX(G,this.S,this.element,X)}; g.P.pG=function(){this.timestamp=Ux()}; g.P.tD=function(){this.pG();this.vp();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var G=this.element;var X=new g.AC(G.videoWidth,G.videoHeight);G=this.N;var Q=IL(G),R=G.getHeight(),S=X.width;X=X.height;S<=0||X<=0||Q<=0||R<=0||(S/=X,X=Q/R,G=G.clone(),S>X?(Q/=S,R=(R-Q)/2,R>0&&(R=G.top+R,G.top=Math.round(R),G.bottom=Math.round(R+Q))):(R*=S,Q=Math.round((Q-R)/2),Q>0&&(Q=G.left+Q,G.left=Math.round(Q),G.right=Math.round(Q+R))));this.N=G}this.Mm(); G=this.N;Q=this.S;G=G.left<=Q.right&&Q.left<=G.right&&G.top<=Q.bottom&&Q.top<=G.bottom?new V7(Math.max(G.top,Q.top),Math.min(G.right,Q.right),Math.min(G.bottom,Q.bottom),Math.max(G.left,Q.left)):new V7(0,0,0,0);Q=G.top>=G.bottom||G.left>=G.right?new V7(0,0,0,0):G;G=this.W.V;X=S=R=0;if((this.N.bottom-this.N.top)*(this.N.right-this.N.left)>0)if(this.gz(Q))Q=new V7(0,0,0,0);else{R=yR().V;X=new V7(0,R.height,R.width,0);var Z;R=Mx(Q,(Z=this.C)!=null?Z:this.N);S=Mx(Q,yR().N);X=Mx(Q,X)}Z=Q.top>=Q.bottom|| Q.left>=Q.right?new V7(0,0,0,0):Wq(Q,-this.N.left,-this.N.top);DW()||(S=R=0);this.j=new VR(G,this.element,this.N,Z,R,S,this.timestamp,X)}; g.P.getName=function(){return this.W.getName()};var Q$4=new V7(0,0,0,0);g.T(V0,t5);g.P=V0.prototype;g.P.observe=function(){this.V();return!0}; g.P.P_=function(){t5.prototype.tD.call(this)}; g.P.pG=function(){}; g.P.vp=function(){}; g.P.tD=function(){this.V();t5.prototype.tD.call(this)}; g.P.jU=function(G){G=G.isActive();G!==this.T&&(G?this.V():(yR().N=new V7(0,0,0,0),this.N=new V7(0,0,0,0),this.S=new V7(0,0,0,0),this.timestamp=-1));this.T=G};var wr={},ZSi=(wr.firstquartile=0,wr.midpoint=1,wr.thirdquartile=2,wr.complete=3,wr);g.T(dJ,mt);g.P=dJ.prototype;g.P.Ul=function(){return!0}; g.P.cD=function(){return this.Ih==2}; g.P.Z$=function(G){return CKy(this,G,Math.max(1E4,this.Y/3))}; g.P.GT=function(G,X,Q,R,S,Z,H){var w=this,h=this.J(this)||{};g.sl(h,S);this.Y=h.duration||this.Y;this.j=h.isVpaid||this.j;this.SA=h.isYouTube||this.SA;r1();this.KO=!1;S=vwU(this,X);byl(this)===1&&(Z=S);mt.prototype.GT.call(this,G,X,Q,R,h,Z,H);this.Bh&&this.Bh.Y&&g.vn(this.S,function(L){L.W(w)})}; g.P.A9=function(G,X,Q){mt.prototype.A9.call(this,G,X,Q);y0(this).update(G,X,this.zR,Q);this.BM=rJ(this.zR)&&rJ(X);this.Mi==-1&&this.cM&&(this.Mi=this.au().Y.N);this.F8.Y=0;G=this.wd();X.isVisible()&&zs(this.F8,"vs");G&&zs(this.F8,"vw");Wi(X.volume)&&zs(this.F8,"am");rJ(X)?zs(this.F8,"a"):zs(this.F8,"mut");this.YW&&zs(this.F8,"f");X.W!=-1&&(zs(this.F8,"bm"),X.W==1&&(zs(this.F8,"b"),rJ(X)&&zs(this.F8,"umutb")));rJ(X)&&X.isVisible()&&zs(this.F8,"avs");this.BM&&G&&zs(this.F8,"avw");X.QD>0&&zs(this.F8, "pv");fA(this,this.au().Y.N,!0)&&zs(this.F8,"gdr");wJ(this.au().W,1)>=2E3&&zs(this.F8,"pmx");this.KO&&zs(this.F8,"tvoff")}; g.P.hM=function(){return new gJ}; g.P.au=function(){return this.Ua}; g.P.W3=function(){return new dpZ}; g.P.U1=function(G,X,Q,R){G=mt.prototype.U1.call(this,G,X,Q,R===void 0?-1:R);G.fullscreen=this.YW;G.paused=this.cD();G.volume=Q.volume;Wi(G.volume)||(this.As++,X=this.zR,Wi(X.volume)&&(G.volume=X.volume));Q=Q.currentTime;G.mediaTime=Q!==void 0&&Q>=0?Q:-1;return G}; g.P.Ly=function(G){return yR(),this.YW?1:mt.prototype.Ly.call(this,G)}; g.P.OW=function(){return 1}; g.P.getDuration=function(){return this.Y}; g.P.VP=function(){return this.eO?2:iye(this)?5:this.wd()?4:3}; g.P.rH=function(){return this.bB?this.au().C.Y>=2E3?4:3:2}; g.P.j4=function(G){this.SG&&this.SG.j4(G)};var RVo=g.jZ();ouT.prototype.reset=function(){this.N=[];this.W=[]}; var b_=Kt(ouT);g.T(i_,vi);g.P=i_.prototype;g.P.getName=function(){return(this.W?this.W:this.N).getName()}; g.P.aD=function(){return(this.W?this.W:this.N).aD()}; g.P.Up=function(){return(this.W?this.W:this.N).Up()}; g.P.init=function(G){var X=!1;(0,g.vn)(this.Y,function(Q){Q.initialize()&&(X=!0)}); X&&(this.V=G,n0(this.N,this));return X}; g.P.dispose=function(){(0,g.vn)(this.Y,function(G){G.dispose()}); vi.prototype.dispose.call(this)}; g.P.kK=function(){return p0(this.Y,function(G){return G.cP()})}; g.P.eq=function(){return p0(this.Y,function(G){return G.cP()})}; g.P.x8=function(G,X,Q){return new t5(G,this.N,X,Q)}; g.P.P_=function(G){this.W=G.W};var EuV={threshold:[0,.3,.5,.75,1]};g.T(GH,t5);g.P=GH.prototype;g.P.observe=function(){var G=this;this.yH||(this.yH=Ux());if(bsV(298,function(){return x5X(G)}))return!0; this.W.fail("msf");return!1}; g.P.unobserve=function(){if(this.V&&this.element)try{this.V.unobserve(this.element),this.T?(this.T.unobserve(this.element),this.T=null):this.J&&(this.J.disconnect(),this.J=null)}catch(G){}}; g.P.tD=function(){var G=XC(this);G.length>0&&Qr(this,G);t5.prototype.tD.call(this)}; g.P.vp=function(){}; g.P.gz=function(){return!1}; g.P.Mm=function(){}; g.P.aD=function(){var G={};return Object.assign(this.W.aD(),(G.niot_obs=this.yH,G.niot_cbk=this.AT,G))}; g.P.getName=function(){return"nio"};g.T(RY,vi);RY.prototype.getName=function(){return"nio"}; RY.prototype.eq=function(){return!yR().W&&this.N.N.Y.IntersectionObserver!=null}; RY.prototype.x8=function(G,X,Q){return new GH(G,this.N,X,Q)};g.T(SD,AN);SD.prototype.zD=function(){return yR().N}; SD.prototype.cP=function(){var G=zi0();this.T!==G&&(this.N!=this&&G>this.N.T&&(this.N=this,$a(this)),this.T=G);return G==2};Zi.prototype.sample=function(){wl(this,vY(),!1)}; Zi.prototype.V=function(){var G=DW(),X=Ux();G?(Bi||(Fb=X,g.vn(b_.N,function(Q){var R=Q.au();R.CO=Un(R,X,Q.Ih!=1)})),Bi=!0):(this.J=B8e(this,X),Bi=!1,HS0=X,g.vn(b_.N,function(Q){Q.bM&&(Q.au().T=X)})); wl(this,vY(),!G)}; var Hk=Kt(Zi);var CN7=null,UO="",gl=!1;var IeC=Vte().IZ,L3=Vte().UW;var pXX={d1c:"visible",v_C:"audible",Q4b:"time",SuB:"timetype"},y6l={visible:function(G){return/^(100|[0-9]{1,2})$/.test(G)}, audible:function(G){return G=="0"||G=="1"}, timetype:function(G){return G=="mtos"||G=="tos"}, time:function(G){return/^(100|[0-9]{1,2})%$/.test(G)||/^([0-9])+ms$/.test(G)}}; WnC.prototype.setTime=function(G,X,Q){X=="ms"?(this.Y=G,this.V=-1):(this.Y=-1,this.V=G);this.C=Q===void 0?"tos":Q;return this};g.T(MZ,l_);MZ.prototype.getId=function(){return this.J}; MZ.prototype.S=function(){return!0}; MZ.prototype.N=function(G){var X=G.au(),Q=G.getDuration();return p0(this.T,function(R){if(R.N!=void 0)var S=D5y(R,X);else b:{switch(R.C){case "mtos":S=R.W?X.C.Y:X.Y.N;break b;case "tos":S=R.W?X.C.N:X.Y.N;break b}S=0}S==0?R=!1:(R=R.Y!=-1?R.Y:Q!==void 0&&Q>0?R.V*Q:-1,R=R!=-1&&S>=R);return R})};g.T(mz,fSG);mz.prototype.N=function(G){var X=new yuG;X.N=On(G,izo);X.W=On(G,Xo3);return X};g.T(oY,l_);oY.prototype.N=function(G){return iye(G)};g.T(u8,$p7);g.T(Pk,l_);Pk.prototype.N=function(G){return G.au().wd()};g.T(sO,BY);sO.prototype.N=function(G){var X=g.rH(this.J,Ol(QR().hW,"ovms"));return!G.eO&&(G.Ih!=0||X)};g.T(TH,u8);TH.prototype.W=function(){return new sO(this.N)}; TH.prototype.Y=function(){return[new Pk("viewable_impression",this.N),new oY(this.N)]};g.T(K3,V0);K3.prototype.V=function(){var G=g.QH("ima.admob.getViewability"),X=Ol(this.hW,"queryid");typeof G==="function"&&X&&G(X)}; K3.prototype.getName=function(){return"gsv"};g.T(eD,vi);eD.prototype.getName=function(){return"gsv"}; eD.prototype.eq=function(){var G=yR();QR();return G.W&&!1}; eD.prototype.x8=function(G,X,Q){return new K3(this.N,X,Q)};g.T(rl,V0);rl.prototype.V=function(){var G=this,X=g.QH("ima.bridge.getNativeViewability"),Q=Ol(this.hW,"queryid");typeof X==="function"&&Q&&X(Q,function(R){g.Mn(R)&&G.J++;var S=R.opt_nativeViewVisibleBounds||{},Z=R.opt_nativeViewHidden;G.N=Sow(R.opt_nativeViewBounds||{});var H=G.W.V;H.N=Z?Q$4.clone():Sow(S);G.timestamp=R.opt_nativeTime||-1;yR().N=H.N;R=R.opt_nativeVolume;R!==void 0&&(H.volume=R)})}; rl.prototype.getName=function(){return"nis"};g.T(aY,vi);aY.prototype.getName=function(){return"nis"}; aY.prototype.eq=function(){var G=yR();QR();return G.W&&!1}; aY.prototype.x8=function(G,X,Q){return new rl(this.N,X,Q)};g.T(EO,AN);g.P=EO.prototype;g.P.cP=function(){return this.W.wB!=null}; g.P.BV=function(){var G={};this.QH&&(G.mraid=this.QH);this.Yc&&(G.mlc=1);G.mtop=this.W.ssU;this.J&&(G.mse=this.J);this.IU&&(G.msc=1);G.mcp=this.W.compatibility;return G}; g.P.Cx=function(G){var X=g.Wl.apply(1,arguments);try{return this.W.wB[G].apply(this.W.wB,X)}catch(Q){ge(538,Q,.01,function(R){R.method=G})}}; g.P.initialize=function(){var G=this;if(this.isInitialized)return!this.cQ();this.isInitialized=!0;if(this.W.compatibility===2)return this.J="ng",this.fail("w"),!1;if(this.W.compatibility===1)return this.J="mm",this.fail("w"),!1;yR().T=!0;this.Y.document.readyState&&this.Y.document.readyState=="complete"?$5X(this):Yo(this.Y,"load",function(){r1().setTimeout(ci(292,function(){return $5X(G)}),100)},292); return!0}; g.P.PN=function(){var G=yR(),X=G6T(this,"getMaxSize");G.N=new V7(0,X.width,X.height,0)}; g.P.Gv=function(){yR().V=G6T(this,"getScreenSize")}; g.P.dispose=function(){vuU(this);AN.prototype.dispose.call(this)};var EhU=new function(G,X){this.key=G;this.defaultValue=X===void 0?!1:X;this.valueType="boolean"}("45378663");g.P=OO.prototype;g.P.C1=function(G){oX(G,!1);T8S(G)}; g.P.UU=function(){}; g.P.vA=function(G,X,Q,R){var S=this;G=new dJ(UM,G,Q?X:-1,7,this.uG(),this.LG());G.bF=R;Vyy(G.hW);x7(G.hW,"queryid",G.bF);G.xn("");tL7(G,function(){return S.Df.apply(S,g.o0(g.Wl.apply(0,arguments)))},function(){return S.NZ.apply(S,g.o0(g.Wl.apply(0,arguments)))}); (R=Kt(J5).N)&&F8y(G,R);this.Y&&(G.j4(this.Y),this.Y=null);G.AX.bR&&Kt(c6l);return G}; g.P.jU=function(G){switch(G.Up()){case 0:if(G=Kt(J5).N)G=G.N,g.Ev(G.C,this),G.j&&this.Ul()&&L8T(G);ck();break;case 2:qZ()}}; g.P.P_=function(){}; g.P.Ul=function(){return!1}; g.P.NZ=function(G,X){G.eO=!0;switch(G.OW()){case 1:HOX(G,X);break;case 2:this.Um(G)}}; g.P.MZ=function(G){var X=G.J(G);X&&(X=X.volume,G.bB=Wi(X)&&X>0);QS7(G,0);return Nx(G,"start",DW())}; g.P.gw=function(G,X,Q){wl(Hk,[G],!DW());return this.wK(G,X,Q)}; g.P.wK=function(G,X,Q){return Nx(G,Q,DW())}; g.P.HB=function(G){return dl(G,"firstquartile",1)}; g.P.VA=function(G){G.cM=!0;return dl(G,"midpoint",2)}; g.P.p9=function(G){return dl(G,"thirdquartile",3)}; g.P.yA=function(G){var X=dl(G,"complete",4);WY(G);return X}; g.P.WB=function(G){G.Ih=3;return Nx(G,"error",DW())}; g.P.O7=function(G,X,Q){X=DW();if(G.cD()&&!X){var R=G.au(),S=Ux();R.T=S}wl(Hk,[G],!X);G.cD()&&(G.Ih=1);return Nx(G,Q,X)}; g.P.h6=function(G,X){X=this.gw(G,X||{},"skip");WY(G);return X}; g.P.Yo=function(G,X){oX(G,!0);return this.gw(G,X||{},"fullscreen")}; g.P.z3=function(G,X){oX(G,!1);return this.gw(G,X||{},"exitfullscreen")}; g.P.tK=function(G,X,Q){X=G.au();var R=Ux();X.CO=Un(X,R,G.Ih!=1);wl(Hk,[G],!DW());G.Ih==1&&(G.Ih=2);return Nx(G,Q,DW())}; g.P.xo=function(G){wl(Hk,[G],!DW());return G.W()}; g.P.kC=function(G){wl(Hk,[G],!DW());this.qS(G);WY(G);return G.W()}; g.P.Df=function(){}; g.P.Um=function(){}; g.P.qS=function(){}; g.P.iK=function(){}; g.P.Ap=function(){}; g.P.LG=function(){this.N||(this.N=this.Ap());return this.N==null?new Fh:new TH(this.N)}; g.P.uG=function(){return new mz};g.T(Wk,l_);Wk.prototype.N=function(G){return G.rH()==4};g.T(p3,BY);p3.prototype.N=function(G){G=G.rH();return G==3||G==4};g.T(yr,u8);yr.prototype.W=function(){return new p3(this.N)}; yr.prototype.Y=function(){return[new Wk(this.N)]};g.T(f3,fSG);f3.prototype.N=function(G){G&&(G.e===28&&(G=Object.assign({},G,{avas:3})),G.vs===4||G.vs===5)&&(G=Object.assign({},G,{vs:3}));var X=new yuG;X.N=On(G,G9v);X.W=On(G,Xo3);return X};LHX.prototype.W=function(){return g.QH(this.N)};g.T(Di,OO);g.P=Di.prototype;g.P.UU=function(G,X){var Q=this,R=Kt(J5);if(R.N!=null)switch(R.N.getName()){case "nis":var S=MoU(this,G,X);break;case "gsv":S=jvU(this,G,X);break;case "exc":S=mmy(this,G)}S||(X.opt_overlayAdElement?S=void 0:X.opt_adElement&&(S=wbw(this,G,X.opt_adElement,X.opt_osdId)));S&&S.OW()==1&&(S.J==g.Bq&&(S.J=function(Z){return Q.iK(Z)}),YNl(this,S,X)); return S}; g.P.iK=function(G){G.W=0;G.DC=0;if(G.V=="h"||G.V=="n"){QR();G.Xm&&(QR(),Bk(this)!="h"&&Bk(this));var X=g.QH("ima.common.getVideoMetadata");if(typeof X==="function")try{var Q=X(G.bF)}catch(S){G.W|=4}else G.W|=2}else if(G.V=="b")if(X=g.QH("ytads.bulleit.getVideoMetadata"),typeof X==="function")try{Q=X(G.bF)}catch(S){G.W|=4}else G.W|=2;else if(G.V=="ml")if(X=g.QH("ima.common.getVideoMetadata"),typeof X==="function")try{Q=X(G.bF)}catch(S){G.W|=4}else G.W|=2;else G.W|=1;G.W||(Q===void 0?G.W|=8:Q===null? G.W|=16:g.Mn(Q)?G.W|=32:Q.errorCode!=null&&(G.DC=Q.errorCode,G.W|=64));Q==null&&(Q={});X=Q;G.T=0;for(var R in AiH)X[R]==null&&(G.T|=AiH[R]);hPZ(X,"currentTime");hPZ(X,"duration");Wi(Q.volume)&&Wi()&&(Q.volume*=NaN);return Q}; g.P.Ap=function(){QR();Bk(this)!="h"&&Bk(this);var G=oVT(this);return G!=null?new LHX(G):null}; g.P.Um=function(G){!G.N&&G.eO&&IY(this,G,"overlay_unmeasurable_impression")&&(G.N=!0)}; g.P.qS=function(G){G.Ha&&(G.wd()?IY(this,G,"overlay_viewable_end_of_session_impression"):IY(this,G,"overlay_unviewable_impression"),G.Ha=!1)}; g.P.Df=function(){}; g.P.vA=function(G,X,Q,R){if(xPT()){var S=Ol(QR().hW,"mm"),Z={};(S=(Z[Rn.wr]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",Z[Rn.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",Z)[S])&&T7i(this,S);this.V==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&ge(1044,Error())}G=OO.prototype.vA.call(this,G,X,Q,R);this.C&&(X=this.S,G.C==null&&(G.C=new VLU),X.N[G.bF]=G.C,G.C.C=RVo);return G}; g.P.C1=function(G){G&&G.OW()==1&&this.C&&delete this.S.N[G.bF];return OO.prototype.C1.call(this,G)}; g.P.LG=function(){this.N||(this.N=this.Ap());return this.N==null?new Fh:this.V==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new yr(this.N):new TH(this.N)}; g.P.uG=function(){return this.V==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new f3:new mz}; g.P.j4=function(G,X,Q,R,S){X=new V7(Q,X+R,Q+S,X);(G=$o(b_,G))?G.j4(X):this.Y=X}; var Sro=z2(193,ePe,void 0,qNl);g.G3("Goog_AdSense_Lidar_sendVastEvent",Sro);var ZTZ=ci(194,function(G,X){X=X===void 0?{}:X;G=svT(Kt(Di),G,X);return KHw(G)}); g.G3("Goog_AdSense_Lidar_getViewability",ZTZ);var HTn=z2(195,function(){return o7S()}); g.G3("Goog_AdSense_Lidar_getUrlSignalsArray",HTn);var qrv=ci(196,function(){return JSON.stringify(o7S())}); g.G3("Goog_AdSense_Lidar_getUrlSignalsList",qrv);var EVi=g.u7(["//ep2.adtrafficquality.google/sodar/",""]),xmT=g.u7(["//tpc.googlesyndication.com/sodar/",""]);g.T(n3,Error);g.T(vk,g.I);vk.prototype.G0=function(){return this.wpc.f()}; vk.prototype.rU=function(G){this.wpc.c(G)}; vk.prototype.uq=function(G){return this.wpc.m(gVS(G))}; vk.prototype.QM=function(G){return this.wpc.mws(gVS(G))}; g.T($R,g.I);$R.prototype.snapshot=function(G){return this.jG.s(Object.assign({},G.oZ&&{c:G.oZ},G.RQ&&{s:G.RQ},G.oQ!==void 0&&{p:G.oQ}))}; $R.prototype.Im=function(G){this.jG.e(G)}; $R.prototype.Q6=function(){return this.jG.l()};g.T(i8,g.I);i8.prototype.share=function(){if(this.U_())throw Error("E:AD");this.W++;return this}; i8.prototype.dispose=function(){--this.W||g.I.prototype.dispose.call(this)};tol.prototype.lH=function(G,X){this.N.lH("/client_streamz/bg/frs",G,X)}; Vow.prototype.lH=function(G,X,Q,R,S,Z){this.N.lH("/client_streamz/bg/wrl",G,X,Q,R,S,Z)}; I8Z.prototype.J1=function(G,X){this.N.BO("/client_streamz/bg/ec",G,X)}; dmS.prototype.lH=function(G,X,Q){this.N.lH("/client_streamz/bg/el",G,X,Q)}; WHw.prototype.J1=function(G,X){this.N.BO("/client_streamz/bg/cec",G,X)}; pbU.prototype.J1=function(G,X){this.N.BO("/client_streamz/bg/po/csc",G,X)}; y3X.prototype.J1=function(G,X){this.N.BO("/client_streamz/bg/po/ctav",G,X)}; f80.prototype.J1=function(G,X){this.N.BO("/client_streamz/bg/po/cwsc",G,X)};g.T(Dm0,eo);g.T(Q3,eo);var hV=[1,2,3];var woH=[0,hV,yia,CYO,WFo];var hVd=[0,J0,[0,OzO,g7L]];g.T(RV,eo);var wF=[1,2,3];var L3L=[0,wF,lRd,ciZ,Gx,hVd];g.T(SW,eo);var k9O=[0,J0,woH,L3L];var YrH=[0,vF];g.T(Zx,eo);var j$L=[0,vF,-1,dno];var MSk=[0,vF,-1,BgH,dno];g.T(Hs,eo);var kBS=[1,2,3];var mq4=[0,kBS,Gx,j$L,Gx,MSk,Gx,YrH];g.T(qv,eo);qv.prototype.pW=function(){var G=HX(this,3,OK,3,!0);Av(G);return G[void 0]};qv.prototype.Y=KlG([0,vF,mq4,p$Z,J0,k9O,tGa,VGG]);g.T(A3Z,eo);g.P=LM.prototype;g.P.isEnabled=function(){if(!g.i7.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{R1:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.P.set=function(G,X,Q){var R=!1;if(typeof Q==="object"){var S=Q.BSC;R=Q.secure||!1;var Z=Q.domain||void 0;var H=Q.path||void 0;var w=Q.R1}if(/[;=\s]/.test(G))throw Error('Invalid cookie name "'+G+'"');if(/[;\r\n]/.test(X))throw Error('Invalid cookie value "'+X+'"');w===void 0&&(w=-1);Q=Z?";domain="+Z:"";H=H?";path="+H:"";R=R?";secure":"";w=w<0?"":w==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+w*1E3)).toUTCString();this.N.cookie=G+"="+X+Q+H+w+R+(S!=null?";samesite="+ S:"")}; g.P.get=function(G,X){for(var Q=G+"=",R=(this.N.cookie||"").split(";"),S=0,Z;S=0;X--)this.remove(G[X])}; var Oh=new LM(typeof document=="undefined"?null:document);YF.prototype.compress=function(G){var X,Q,R,S;return g.F(function(Z){switch(Z.W){case 1:return X=new CompressionStream("gzip"),Q=(new Response(X.readable)).arrayBuffer(),R=X.writable.getWriter(),g.l(Z,R.write((new TextEncoder).encode(G)),2);case 2:return g.l(Z,R.close(),3);case 3:return S=Uint8Array,g.l(Z,Q,4);case 4:return Z.return(new S(Z.N))}})}; YF.prototype.isSupported=function(G){return G<1024?!1:typeof CompressionStream!=="undefined"};g.T(jW,eo);Mv.prototype.setInterval=function(G){this.intervalMs=G;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; Mv.prototype.start=function(){var G=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){G.tick()},this.intervalMs),this.W=this.N())}; Mv.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; Mv.prototype.tick=function(){var G=this;if(this.enabled){var X=Math.max(this.N()-this.W,0);X0?Q:void 0));Q=XM(Q,4,Mp(S>0?S:void 0));Q=XM(Q,5,Mp(Z>0?Z:void 0));S=Q.fO;Z=S[W1]|0;Q=NB(Q,Z)?Q:Au(Q,S,Z)?ny(Q,S):new Q.constructor(Np(S,Z,!0));EJ(H,us,10,Q)}H=this.N.clone();Q=Date.now().toString();H=XM(H,4,rf(Q));G=xu(H,EZ,3,G.slice());R&&(H=new mK,R=XM(H,13,Mp(R)),H=new oV, R=EJ(H,mK,2,R),H=new aV,R=EJ(H,oV,1,R),R=V$(R,2,9),EJ(G,aV,18,R));X&&FM(G,14,X);return G};g.gF.prototype.W=0;g.gF.prototype.reset=function(){this.N=this.Y=this.V;this.W=0}; g.gF.prototype.getValue=function(){return this.Y};g.T(J3,eo);var oiL=iZ(J3);g.T(PEV,eo);var hq;hq=new sLi;g.T(FJ,g.I);g.P=FJ.prototype;g.P.zT=function(){Bs(this);this.W.stop();this.QH.stop();g.I.prototype.zT.call(this)}; g.P.dispatch=function(G){if(G instanceof EZ)this.log(G);else try{var X=new EZ,Q=G.Zh();var R=CS(X,8,Q);this.log(R)}catch(S){CM(this,4,1)}}; g.P.log=function(G){CM(this,2,1);if(this.IU){G=G.clone();var X=this.wb++;G=FM(G,21,X);this.componentId&&CS(G,26,this.componentId);X=G;var Q=iu(X,1);var R=R===void 0?!1:R;var S=typeof Q;R=Q==null?Q:S==="bigint"?String(TR(64,Q)):jL(Q)?S==="string"?sK(Q):R?Ky(Q):eL(Q):void 0;R==null&&(R=Date.now(),R=Number.isFinite(R)?R.toString():"0",XM(X,1,rf(R)));R=iu(X,15);R!=null&&(typeof R==="bigint"?WL(R)?R=Number(R):(R=TR(64,R),R=WL(R)?Number(R):String(R)):R=jL(R)?typeof R==="number"?eL(R):sK(R):void 0);R!=null|| FM(X,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(R=this.experimentIds.clone(),EJ(X,jW,16,R));CM(this,1,1);X=this.N.length-1E3+1;X>0&&(this.N.splice(0,X),this.V+=X,CM(this,3,X));this.N.push(G);this.LI||this.W.enabled||this.W.start()}}; g.P.flush=function(G,X){var Q=this;if(this.N.length===0)G&&G();else if(this.Mi&&this.AT)this.Y.W=3,ubG(this);else{var R=Date.now();if(this.CO>R&&this.DC0&&(Q.DC=Date.now(),Q.CO=Q.DC+M);M=MS(lu);var r;d1&&M&&((r=m.fO[M])==null?void 0:r[175237375])!=null&&Vj(hsv,3);a:{var x=x===void 0?!1:x;if(MS(LFS)&&MS(lu)&&void 0===LFS){r=m.fO;M=r[lu];if(!M)break a;if(M=M.Om)try{M(r,175237375,o7G);break a}catch(c){Eo(c)}}x&&(x=m.fO, (r=MS(lu))&&r in x&&(x=x[r])&&delete x[175237375])}x=hq.N?hq.W(m,hq.N,175237375,hq.Y):hq.W(m,175237375,null,hq.Y);if(x=x===null?void 0:x)x=z4(x,1,-1),x!==-1&&(Q.C=new g.gF(x<1?1:x,3E5,.1),Q.W.setInterval(Q.C.getValue()))}}G&&G();Q.S=0},k=function(M,m){var u=aS(Z,EZ,3); var r=Number(CAi(Z,14));g.UZ(Q.C);Q.W.setInterval(Q.C.getValue());M===401&&H&&(Q.SA=H);r&&(Q.V+=r);m===void 0&&(m=Q.isRetryable(M));m&&(Q.N=u.concat(Q.N),Q.LI||Q.W.enabled||Q.W.start());CM(Q,7,1);X&&X("net-send-failed",M);++Q.S},Y=function(){Q.network&&Q.network.send(h,L,k)}; w?w.then(function(M){CM(Q,5,S);h.requestHeaders["Content-Encoding"]="gzip";h.requestHeaders["Content-Type"]="application/binary";h.body=M;h.U5=2;Y()},function(){CM(Q,6,S); Y()}):Y()}}}}; g.P.isRetryable=function(G){return 500<=G&&G<600||G===401||G===0};tV.prototype.send=function(G,X,Q){var R=this,S,Z,H,w,h,L,k,Y,M,m;return g.F(function(u){switch(u.W){case 1:return Z=(S=R.dc?new AbortController:void 0)?setTimeout(function(){S.abort()},G.timeoutMillis):void 0,g.a0(u,2,3),H=Object.assign({},{method:G.requestType, headers:Object.assign({},G.requestHeaders)},G.body&&{body:G.body},G.withCredentials&&{credentials:"include"},{signal:G.timeoutMillis&&S?S.signal:null}),g.l(u,fetch(G.url,H),5);case 5:w=u.N;if(w.status!==200){(h=Q)==null||h(w.status);u.pO(3);break}if((L=X)==null){u.pO(7);break}return g.l(u,w.text(),8);case 8:L(u.N);case 7:case 3:g.FS(u);clearTimeout(Z);g.tG(u,0);break;case 2:k=g.cl(u);switch((Y=k)==null?void 0:Y.name){case "AbortError":(M=Q)==null||M(408);break;default:(m=Q)==null||m(400)}u.pO(3)}})}; tV.prototype.nR=function(){return 4};g.T(V3,g.I);V3.prototype.pk=function(){this.C=!0;return this}; V3.prototype.build=function(){this.network||(this.network=new tV);var G=new FJ({logSource:this.logSource,Pc:this.Pc?this.Pc:Sxe,sessionIndex:this.sessionIndex,xGH:this.H_,Fc:this.V,LI:!1,pk:this.C,zb:this.zb,network:this.network});g.d(this,G);if(this.W){var X=this.W,Q=cs(G.Y);CS(Q,7,X)}G.J=new YF;this.componentId&&(G.componentId=this.componentId);this.B9&&(G.B9=this.B9);this.pageId&&(G.pageId=this.pageId);this.N&&((Q=this.N)?(G.experimentIds||(G.experimentIds=new jW),X=G.experimentIds,Q=Q.Zh(),CS(X, 4,Q)):G.experimentIds&&XM(G.experimentIds,4));this.Y&&(G.Mi=G.AT);YxX(G.Y);this.network.b3&&this.network.b3(this.logSource);this.network.Y$U&&this.network.Y$U(G);return G};g.T(IV,g.I);IV.prototype.flush=function(G){G=G||[];if(G.length){for(var X=new A3Z,Q=[],R=0;R-1?(X=G[H],Q||(X.NC=!1)):(X=new EaV(X,this.src,Z,!!R,S),X.NC=Q,G.push(X));return X}; g.P.remove=function(G,X,Q,R){G=G.toString();if(!(G in this.listeners))return!1;var S=this.listeners[G];X=$F(S,X,Q,R);return X>-1?(Nv(S[X]),g.ad(S,X),S.length==0&&(delete this.listeners[G],this.N--),!0):!1}; g.P.removeAll=function(G){G=G&&G.toString();var X=0,Q;for(Q in this.listeners)if(!G||Q==G){for(var R=this.listeners[Q],S=0;S-1?G[S]:null}; g.P.hasListener=function(G,X){var Q=G!==void 0,R=Q?G.toString():"",S=X!==void 0;return g.RB(this.listeners,function(Z){for(var H=0;H>>0);g.mo(g.hJ,g.I);g.hJ.prototype[rN7]=!0;g.P=g.hJ.prototype;g.P.addEventListener=function(G,X,Q,R){g.vs(this,G,X,Q,R)}; g.P.removeEventListener=function(G,X,Q,R){lWV(this,G,X,Q,R)}; g.P.dispatchEvent=function(G){var X=this.g4;if(X){var Q=[];for(var R=1;X;X=X.g4)Q.push(X),++R}X=this.NH;R=G.type||G;if(typeof G==="string")G=new g.y3(G,X);else if(G instanceof g.y3)G.target=G.target||X;else{var S=G;G=new g.y3(R,X);g.sl(G,S)}S=!0;var Z;if(Q)for(Z=Q.length-1;!G.W&&Z>=0;Z--){var H=G.currentTarget=Q[Z];S=L4(H,R,!0,G)&&S}G.W||(H=G.currentTarget=X,S=L4(H,R,!0,G)&&S,G.W||(S=L4(H,R,!1,G)&&S));if(Q)for(Z=0;!G.W&&Z0){this.W--;var G=this.N;this.N=G.next;G.next=null}else G=this.Y();return G};var jd;ma.prototype.add=function(G,X){var Q=IWG.get();Q.set(G,X);this.W?this.W.next=Q:this.N=Q;this.W=Q}; ma.prototype.remove=function(){var G=null;this.N&&(G=this.N,this.N=this.N.next,this.N||(this.W=null),G.next=null);return G}; var IWG=new kk(function(){return new oJ},function(G){return G.reset()}); oJ.prototype.set=function(G,X){this.N=G;this.scope=X;this.next=null}; oJ.prototype.reset=function(){this.next=this.scope=this.N=null};var uD,Pp=!1,t5e=new ma;dET.prototype.reset=function(){this.context=this.W=this.Y=this.N=null;this.V=!1}; var WNy=new kk(function(){return new dET},function(G){G.reset()}); g.Ey.prototype.then=function(G,X,Q){return b07(this,Yk(typeof G==="function"?G:null),Yk(typeof X==="function"?X:null),Q)}; g.Ey.prototype.$goog_Thenable=!0;g.P=g.Ey.prototype;g.P.finally=function(G){var X=this;G=Yk(G);return new g.Ey(function(Q,R){DE7(X,function(S){G();Q(S)},function(S){G(); R(S)})})}; g.P.EG=function(G,X){return b07(this,null,Yk(G),X)}; g.P.catch=g.Ey.prototype.EG;g.P.cancel=function(G){if(this.N==0){var X=new Uy(G);g.sy(function(){NeT(this,X)},this)}}; g.P.rEp=function(G){this.N=0;Ta(this,2,G)}; g.P.dGO=function(G){this.N=0;Ta(this,3,G)}; g.P.F_=function(){for(var G;G=AN0(this);)naZ(this,G,this.N,this.J);this.S=!1}; var Gsy=Eo;g.mo(Uy,od);Uy.prototype.name="cancel";g.mo(g.lD,g.hJ);g.P=g.lD.prototype;g.P.enabled=!1;g.P.G1=null;g.P.setInterval=function(G){this.BK=G;this.G1&&this.enabled?(this.stop(),this.start()):this.G1&&this.stop()}; g.P.OLO=function(){if(this.enabled){var G=g.jZ()-this.Y6;G>0&&G0&&(this.getStatus(),this.S=setTimeout(this.e5.bind(this), this.AT)),this.getStatus(),this.j=!0,this.N.send(G),this.j=!1}catch(H){this.getStatus(),mxZ(this,H)}}; g.P.e5=function(){typeof yW!="undefined"&&this.N&&(this.V="Timed out after "+this.AT+"ms, aborting",this.W=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.P.abort=function(G){this.N&&this.Y&&(this.getStatus(),this.Y=!1,this.C=!0,this.N.abort(),this.C=!1,this.W=G||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),p4(this))}; g.P.zT=function(){this.N&&(this.Y&&(this.Y=!1,this.C=!0,this.N.abort(),this.C=!1),p4(this,!0));g.Wp.gS.zT.call(this)}; g.P.e0=function(){this.U_()||(this.Yc||this.j||this.C?oo7(this):this.OYH())}; g.P.OYH=function(){oo7(this)}; g.P.isActive=function(){return!!this.N}; g.P.isComplete=function(){return g.f4(this)==4}; g.P.getStatus=function(){try{return g.f4(this)>2?this.N.status:-1}catch(G){return-1}}; g.P.getResponseHeader=function(G){if(this.N&&this.isComplete())return G=this.N.getResponseHeader(G),G===null?void 0:G}; g.P.getLastError=function(){return typeof this.V==="string"?this.V:String(this.V)};$k.prototype.send=function(G,X,Q){X=X===void 0?function(){}:X; Q=Q===void 0?function(){}:Q; jX0(G.url,function(R){R=R.target;D5(R)?X(g.NJ(R)):Q(R.getStatus())},G.requestType,G.body,G.requestHeaders,G.timeoutMillis,G.withCredentials)}; $k.prototype.nR=function(){return 1};vp.prototype.done=function(){this.logger.H9(this.event,bD()-this.startTime)}; g.T(JJ,i8);g.T(GI,JJ);g.P=GI.prototype;g.P.hJ=function(){}; g.P.Nw=function(){}; g.P.H9=function(){}; g.P.Rh=function(){}; g.P.V_=function(){}; g.P.Mf=function(G,X,Q,R){return R}; g.P.My=function(){}; g.P.VK=function(){}; g.P.h_=function(){}; g.T(XA,JJ);g.P=XA.prototype;g.P.update=function(G){this.logger.dispose();this.logger=G}; g.P.Nw=function(G){this.logger.Nw(G)}; g.P.H9=function(G,X){this.logger.H9(G,X)}; g.P.Rh=function(G){this.logger.Rh(G)}; g.P.V_=function(){this.logger.V_()}; g.P.Mf=function(G,X,Q,R){return this.logger.Mf(G,X,Q,R)}; g.P.My=function(G){this.logger.My(G)}; g.P.VK=function(G){this.logger.VK(G)}; g.P.h_=function(G){this.logger.h_(G)}; g.P.hJ=function(G){this.logger.hJ(G)}; g.T(TJi,g.I);g.T(QV,JJ);g.P=QV.prototype;g.P.hJ=function(G){this.metrics.RFd.lH(G,this.Lv)}; g.P.Nw=function(G){this.metrics.eventCount.J1(G,this.Lv)}; g.P.H9=function(G,X){this.metrics.eX.lH(X,G,this.Lv)}; g.P.Rh=function(G){this.metrics.errorCount.J1(G,this.Lv)}; g.P.Mf=function(G,X,Q,R){function S(w){if(!Z.U_()){var h=bD()-H;Z.metrics.nuC.lH(h,G,Q,w,X,Z.Lv)}} var Z=this,H=bD();R.then(function(){return void S(0)},function(w){return void S(w instanceof tJ?w.code:-1)}); return R}; g.P.My=function(G){this.metrics.QMA.J1(G,this.Lv)}; g.P.VK=function(G){this.metrics.Sb.J1(G,this.Lv)}; g.P.h_=function(G){this.metrics.UGU.J1(G,this.Lv)}; g.T(RC,QV);RC.prototype.V_=function(){Kt7(this.N)};g.T(SY,eo);g.T(ZY,eo);g.T(Hg,eo);var FtS=iZ(Hg),r57=function(G){return w1(function(X){return X instanceof G&&!NB(X)})}(Hg); Hg.messageId="bfkj";g.T(JW,eo);g.T(qf,eo);var amX=iZ(qf);g.T(hl,g.I);hl.prototype.snapshot=function(G){if(this.U_())throw Error("Already disposed");this.logger.Nw("n");var X=this.logger.share();return this.Y.then(function(Q){var R=Q.Do;return new Promise(function(S){var Z=new vp(X,"n");R(function(H){Z.done();X.hJ(H.length);X.V_();X.dispose();S(H)},[G.oZ, G.RQ,G.CA,G.oQ])})})}; hl.prototype.hO=function(G){var X=this;if(this.U_())throw Error("Already disposed");this.logger.Nw("n");var Q=iD(this.logger,function(){return X.V([G.oZ,G.RQ,G.CA,G.oQ])},"n"); this.logger.hJ(Q.length);this.logger.V_();return Q}; hl.prototype.Im=function(G){this.Y.then(function(X){var Q;(Q=X.TeT)==null||Q(G)})}; hl.prototype.Q6=function(){return this.logger.share()};g.T(Y$,eo);g.T(jY,eo);Mf.prototype.qB=function(G){return Ime(this,G,new GI,0)};g.T(mc,g.I);mc.prototype.snapshot=function(G){var X=this;return g.F(function(Q){switch(Q.W){case 1:if(X.U_())throw Error("Already disposed");if(X.W||X.J){Q.pO(2);break}return g.l(Q,X.C.promise,2);case 2:if(!X.W){Q.pO(4);break}return g.l(Q,X.W.snapshot(G),5);case 5:return Q.return(Q.N);case 4:throw X.J;}})}; mc.prototype.Im=function(G){var X,Q;(X=this.W)==null||(Q=X.Im)==null||Q.call(X,G)}; mc.prototype.handleError=function(G){if(!this.U_()){this.J=G;this.C.resolve();var X,Q;(Q=(X=this.options).RyT)==null||Q.call(X,G)}}; mc.prototype.Q6=function(){return this.logger.share()}; var pYl={IJA:432E5,im:3E5,EA:10,E5:1E4,T_:3E4,diA:3E4,hFH:6E4,iJ:1E3,k9:6E4,Jg:6E5,cU:.25,G_:2,maxAttempts:10};var s$4,voZ=(s$4=Math.imul)!=null?s$4:function(G,X){return G*X|0},TI=[196, 200,224,18];Ke.prototype.Zh=function(){return String(this.N)+","+this.W.join()}; Ke.prototype.Jo=function(G,X){var Q=void 0;if(this.W[this.N]!==G){var R=this.W.indexOf(G);R!==-1?(this.W.splice(R,1),R0;)X[Q++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(G%62),G=Math.floor(G/62);return X.join("")}};g.T(rh,g.I);rh.prototype.QM=function(G,X){var Q=this.uq(G);X==null||X(Q);return iD(this.logger,function(){return g.Oo(Q,2)},this.W)}; g.T(x$,rh);x$.prototype.uq=function(G,X){var Q=this;this.logger.Nw(this.N);++this.C>=this.S&&this.Y.resolve();var R=G();G=iD(this.logger,function(){return Q.V(R)},"C"); if(G===void 0)throw new n3(17,"YNJ:Undefined");if(!(G instanceof Uint8Array))throw new n3(18,"ODM:Invalid");X==null||X(G);return G}; g.T(Ow,rh);Ow.prototype.uq=function(){return this.V}; g.T(zI,rh);zI.prototype.uq=function(){var G=this;return iD(this.logger,function(){return c1(G.V)},"d")}; zI.prototype.QM=function(){return this.V}; g.T(cg,rh);cg.prototype.uq=function(){if(this.V)return this.V;this.V=Lze(this,function(G){return"_"+hQ7(G)}); return Lze(this,function(G){return G})}; g.T(Uw,rh);Uw.prototype.uq=function(){var G=Math.floor(Date.now()/1E3),X=[Math.random()*255,Math.random()*255],Q=X.concat([this.V&255,this.clientState],[G>>24&255,G>>16&255,G>>8&255,G&255]);G=new Uint8Array(2+Q.length);G[0]=34;G[1]=Q.length;G.set(Q,2);Q=G.subarray(2);for(var R=X=X.length;R150))try{this.cache=new SOT(G,this.logger)}catch(X){this.reportError(new n3(22,"GBJ:init",X))}}; g.P.reportError=function(G){this.logger.Rh(G.code);this.onError(G);return G}; var jYG=function(G){return w1(function(X){if(!qlG(X))return!1;for(var Q=g.e(Object.entries(G)),R=Q.next();!R.done;R=Q.next()){var S=g.e(R.value);R=S.next().value;S=S.next().value;if(!(R in X)){if(S.Vop===!0)continue;return!1}if(!S(X[R]))return!1}return!0})}({jG:function(G){return w1(function(X){return X instanceof G})}(mc)},"");var AJG=(new Date).getTime();g.T(tl,eo);var TZH=iZ(tl);eQZ.prototype.getMetadata=function(){return this.metadata};VV.prototype.getMetadata=function(){return this.metadata}; VV.prototype.getStatus=function(){return this.status};IC.prototype.J=function(G,X){X=X===void 0?{}:X;return new eQZ(G,this,X)}; IC.prototype.getName=function(){return this.name};var K3Z=new IC("/google.internal.waa.v1.Waa/Create",Y$,tl,function(G){return G.Zh()},TZH);g.T(dh,eo);var tlG=new IC("/google.internal.waa.v1.Waa/GenerateIT",jY,dh,function(G){return G.Zh()},iZ(dh));var i3l=new Set(["SAPISIDHASH","APISIDHASH"]);g.T(Wg,eo);Wg.prototype.getValue=function(){var G=iu(this,2);if(Array.isArray(G)||G instanceof eo)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return w8(this,2)};g.T(pe,eo);pe.prototype.getMessage=function(){return g8(this,2)}; var zQw=iZ(pe);yV.prototype.jg=function(G,X){G=="data"?this.Y.push(X):G=="metadata"?this.C.push(X):G=="status"?this.S.push(X):G=="end"?this.V.push(X):G=="error"&&this.W.push(X);return this}; yV.prototype.removeListener=function(G,X){G=="data"?ne(this.Y,X):G=="metadata"?ne(this.C,X):G=="status"?ne(this.S,X):G=="end"?ne(this.V,X):G=="error"&&ne(this.W,X);return this}; yV.prototype.cancel=function(){this.N.abort()}; yV.prototype.cancel=yV.prototype.cancel;yV.prototype.removeListener=yV.prototype.removeListener;yV.prototype.on=yV.prototype.jg;g.T(aiU,Error);g.mo(g.$$,kse);g.$$.prototype.N=function(){var G=new bw(this.V,this.Y);this.W&&G.setCredentialsMode(this.W);return G}; g.$$.prototype.setCredentialsMode=function(G){this.W=G}; g.mo(bw,g.hJ);g.P=bw.prototype;g.P.open=function(G,X){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.yH=G;this.AT=X;this.readyState=1;vg(this)}; g.P.send=function(G){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.T.signal.aborted)throw this.abort(),Error("Request was aborted.");this.N=!0;var X={headers:this.j,method:this.yH,credentials:this.C,cache:void 0,signal:this.T.signal};G&&(X.body=G);(this.Yc||g.i7).fetch(new Request(this.AT,X)).then(this.t6.bind(this),this.GB.bind(this))}; g.P.abort=function(){this.response=this.responseText="";this.j=new Headers;this.status=0;this.T.abort();this.Y&&this.Y.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.N&&this.readyState!=4&&(this.N=!1,Jl(this));this.readyState=0}; g.P.t6=function(G){if(this.N&&(this.V=G,this.W||(this.status=this.V.status,this.statusText=this.V.statusText,this.W=G.headers,this.readyState=2,vg(this)),this.N&&(this.readyState=3,vg(this),this.N)))if(this.responseType==="arraybuffer")G.arrayBuffer().then(this.rY.bind(this),this.GB.bind(this));else if(typeof g.i7.ReadableStream!=="undefined"&&"body"in G){this.Y=G.body.getReader();if(this.S){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.J=new TextDecoder;cWZ(this)}else G.text().then(this.dg.bind(this),this.GB.bind(this))}; g.P.T8=function(G){if(this.N){if(this.S&&G.value)this.response.push(G.value);else if(!this.S){var X=G.value?G.value:new Uint8Array(0);if(X=this.J.decode(X,{stream:!G.done}))this.response=this.responseText+=X}G.done?Jl(this):vg(this);this.readyState==3&&cWZ(this)}}; g.P.dg=function(G){this.N&&(this.response=this.responseText=G,Jl(this))}; g.P.rY=function(G){this.N&&(this.response=G,Jl(this))}; g.P.GB=function(){this.N&&Jl(this)}; g.P.setRequestHeader=function(G,X){this.j.append(G,X)}; g.P.getResponseHeader=function(G){return this.W?this.W.get(G.toLowerCase())||"":""}; g.P.getAllResponseHeaders=function(){if(!this.W)return"";for(var G=[],X=this.W.entries(),Q=X.next();!Q.done;)Q=Q.value,G.push(Q[0]+": "+Q[1]),Q=X.next();return G.join("\r\n")}; g.P.setCredentialsMode=function(G){this.C=G}; Object.defineProperty(bw.prototype,"withCredentials",{get:function(){return this.C==="include"}, set:function(G){this.setCredentialsMode(G?"include":"same-origin")}});g.iw.prototype.toString=function(){var G=[],X=this.C;X&&G.push(HW(X,eVZ,!0),":");var Q=this.N;if(Q||X=="file")G.push("//"),(X=this.T)&&G.push(HW(X,eVZ,!0),"@"),G.push(g.z9(Q).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Q=this.Y,Q!=null&&G.push(":",String(Q));if(Q=this.W)this.N&&Q.charAt(0)!="/"&&G.push("/"),G.push(HW(Q,Q.charAt(0)=="/"?rCo:abo,!0));(Q=this.V.toString())&&G.push("?",Q);(Q=this.S)&&G.push("#",HW(Q,Ein));return G.join("")}; g.iw.prototype.resolve=function(G){var X=this.clone(),Q=!!G.C;Q?g.Gq(X,G.C):Q=!!G.T;Q?X.T=G.T:Q=!!G.N;Q?g.Xt(X,G.N):Q=G.Y!=null;var R=G.W;if(Q)g.QK(X,G.Y);else if(Q=!!G.W){if(R.charAt(0)!="/")if(this.N&&!this.W)R="/"+R;else{var S=X.W.lastIndexOf("/");S!=-1&&(R=X.W.slice(0,S+1)+R)}S=R;if(S==".."||S==".")R="";else if(g.B$(S,"./")||g.B$(S,"/.")){R=Ul(S,"/");S=S.split("/");for(var Z=[],H=0;H1||Z.length==1&&Z[0]!="")&&Z.pop(), R&&H==S.length&&Z.push("")):(Z.push(w),R=!0)}R=Z.join("/")}else R=S}Q?X.W=R:Q=G.V.toString()!=="";Q?Rr(X,G.V.clone()):Q=!!G.S;Q&&(X.S=G.S);return X}; g.iw.prototype.clone=function(){return new g.iw(this)}; var eVZ=/[#\/\?@]/g,abo=/[#\?:]/g,rCo=/[#\?]/g,FzX=/[#\?@]/g,Ein=/#/g;g.P=ZA.prototype;g.P.add=function(G,X){hx(this);this.Y=null;G=LU(this,G);var Q=this.N.get(G);Q||this.N.set(G,Q=[]);Q.push(X);this.W=this.W+1;return this}; g.P.remove=function(G){hx(this);G=LU(this,G);return this.N.has(G)?(this.Y=null,this.W=this.W-this.N.get(G).length,this.N.delete(G)):!1}; g.P.clear=function(){this.N=this.Y=null;this.W=0}; g.P.isEmpty=function(){hx(this);return this.W==0}; g.P.forEach=function(G,X){hx(this);this.N.forEach(function(Q,R){Q.forEach(function(S){G.call(X,S,R,this)},this)},this)}; g.P.iD=function(){hx(this);for(var G=Array.from(this.N.values()),X=Array.from(this.N.keys()),Q=[],R=0;R0?String(G[0]):X}; g.P.toString=function(){if(this.Y)return this.Y;if(!this.N)return"";for(var G=[],X=Array.from(this.N.keys()),Q=0;Q>>3;Z.Y!=1&&Z.Y!=2&&Z.Y!=15&&MO(Z,H,w,"unexpected tag");Z.N=1;Z.W=0;Z.V=0} function Q(h){Z.V++;Z.V==5&&h&240&&MO(Z,H,w,"message length too long");Z.W|=(h&127)<<(Z.V-1)*7;h&128||(Z.N=2,Z.T=0,typeof Uint8Array!=="undefined"?Z.C=new Uint8Array(Z.W):Z.C=Array(Z.W),Z.W==0&&S())} function R(h){Z.C[Z.T++]=h;Z.T==Z.W&&S()} function S(){if(Z.Y<15){var h={};h[Z.Y]=Z.C;Z.J.push(h)}Z.N=0} for(var Z=this,H=G instanceof Array?G:new Uint8Array(G),w=0;w0?G:null};mR.prototype.isInputValid=function(){return this.N===null}; mR.prototype.uT=function(){return this.N}; mR.prototype.cT=function(){return!1}; mR.prototype.parse=function(G){this.N!==null&&yWU(this,G,"stream already broken");var X=null;try{var Q=this.Y;Q.Y||pkS(Q,G,"stream already broken");Q.N+=G;var R=Math.floor(Q.N.length/4);if(R==0)var S=null;else{try{var Z=ciy(Q.N.slice(0,R*4))}catch(H){pkS(Q,Q.N,H.message)}Q.W+=R*4;Q.N=Q.N.slice(R*4);S=Z}X=S===null?null:this.V.parse(S)}catch(H){yWU(this,G,H.message)}this.W+=G.length;return X};var OT3={INIT:0,zE:1,gN:2,ZS:3,WP:4,yY:5,STRING:6,jE:7,HE:8,Ur:9,QZ:10,SY:11,Ql:12,Sh:13,vC:14,lk:15,hY:16,Mg:17,pH:18,OB:19,b0:20};g.P=uv.prototype;g.P.isInputValid=function(){return this.C!=3}; g.P.uT=function(){return this.j}; g.P.done=function(){return this.C===2}; g.P.cT=function(){return!1}; g.P.parse=function(G){function X(){for(;M0;)if(u=G[M++], Z.T===4?Z.T=0:Z.T++,!u)break a;if(u==='"'&&!Z.J){Z.N=R();break}if(u==="\\"&&!Z.J&&(Z.J=!0,u=G[M++],!u))break;if(Z.J)if(Z.J=!1,u==="u"&&(Z.T=1),u=G[M++])continue;else break;w.lastIndex=M;u=w.exec(G);if(!u){M=G.length+1;break}M=u.index+1;u=G[u.index];if(!u)break}Z.Y+=M-r;continue;case h.Ur:if(!u)continue;u==="r"?Z.N=h.QZ:PW(Z,G,M);continue;case h.QZ:if(!u)continue;u==="u"?Z.N=h.SY:PW(Z,G,M);continue;case h.SY:if(!u)continue;u==="e"?Z.N=R():PW(Z,G,M);continue;case h.Ql:if(!u)continue;u==="a"?Z.N=h.Sh: PW(Z,G,M);continue;case h.Sh:if(!u)continue;u==="l"?Z.N=h.vC:PW(Z,G,M);continue;case h.vC:if(!u)continue;u==="s"?Z.N=h.lk:PW(Z,G,M);continue;case h.lk:if(!u)continue;u==="e"?Z.N=R():PW(Z,G,M);continue;case h.hY:if(!u)continue;u==="u"?Z.N=h.Mg:PW(Z,G,M);continue;case h.Mg:if(!u)continue;u==="l"?Z.N=h.pH:PW(Z,G,M);continue;case h.pH:if(!u)continue;u==="l"?Z.N=R():PW(Z,G,M);continue;case h.OB:u==="."?Z.N=h.b0:PW(Z,G,M);continue;case h.b0:if("0123456789.eE+-".indexOf(u)!==-1)continue;else M--,Z.Y--,Z.N= R();continue;default:PW(Z,G,M)}}} function R(){var u=H.pop();return u!=null?u:h.zE} function S(u){Z.W>1||(u||(u=Y===-1?Z.V+G.substring(k,M):G.substring(Y,M)),Z.AT?Z.S.push(u):Z.S.push(JSON.parse(u)),Y=M)} for(var Z=this,H=Z.yH,w=Z.Yc,h=OT3,L=G.length,k=0,Y=-1,M=0;M0?(m=Z.S,Z.S=[],m):null}return null};Tq.prototype.isInputValid=function(){return this.C===null}; Tq.prototype.uT=function(){return this.C}; Tq.prototype.cT=function(){return!1}; Tq.prototype.parse=function(G){function X(h){Z.W=6;Z.C="The stream is broken @"+Z.N+"/"+H+". Error: "+h+". With input:\n";throw Error(Z.C);} function Q(){Z.Y=new uv({bpd:!0,Y9:!0})} function R(h){if(h)for(var L=0;L1)&&X("extra status: "+h);Z.S=!0;var L={};L[2]=h[0];Z.V.push(L)}} for(var Z=this,H=0;H0?(G=Z.V,Z.V=[],G):null};KU.prototype.nT=function(){return this.N}; KU.prototype.getStatus=function(){return this.C}; KU.prototype.AT=function(G){G=G.target;try{if(G==this.N)a:{var X=g.f4(this.N),Q=this.N.W,R=this.N.getStatus(),S=g.NJ(this.N);G=[];if(g.AJ(this.N)instanceof Array){var Z=g.AJ(this.N);Z.length>0&&Z[0]instanceof Uint8Array&&(this.j=!0,G=Z)}if(!(X<3||X==3&&!S&&G.length==0))if(R=R==200||R==206,X==4&&(Q==8?ev(this,7):Q==7?ev(this,8):R||ev(this,3)),this.W||(this.W=fi7(this.N),this.W==null&&ev(this,5)),this.C>2)rv(this);else{if(G.length>this.Y){var H=G.length;Q=[];try{if(this.W.cT())for(var w=0;wthis.Y){w=S.slice(this.Y);this.Y=S.length;try{var L=this.W.parse(w);L!=null&&this.V&&this.V(L)}catch(k){ev(this,5);rv(this);break a}}X==4?(S.length!= 0||this.j?ev(this,2):ev(this,4),rv(this)):ev(this,1)}}}catch(k){ev(this,6),rv(this)}};g.P=DZ0.prototype;g.P.jg=function(G,X){var Q=this.W[G];Q||(Q=[],this.W[G]=Q);Q.push(X);return this}; g.P.addListener=function(G,X){this.jg(G,X);return this}; g.P.removeListener=function(G,X){var Q=this.W[G];Q&&g.Ev(Q,X);(G=this.N[G])&&g.Ev(G,X);return this}; g.P.once=function(G,X){var Q=this.N[G];Q||(Q=[],this.N[G]=Q);Q.push(X);return this}; g.P.zyC=function(G){var X=this.W.data;X&&NlS(G,X);(X=this.N.data)&&NlS(G,X);this.N.data=[]}; g.P.auA=function(){switch(this.Y.getStatus()){case 1:ar(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ar(this,"error");break;case 8:ar(this,"close");break;case 2:ar(this,"end")}};AWS.prototype.serverStreaming=function(G,X,Q,R){var S=this,Z=G.substring(0,G.length-R.name.length);return GQi(function(H){var w=H.LB,h=H.getMetadata(),L=b3U(S,!1);h=vRC(S,h,L,Z+w.getName());var k=JWe(L,w.W,!0);H=w.N(H.iU);L.send(h,"POST",H);return k},this.va).call(this,R.J(X,Q))};Xse.prototype.create=function(G,X,Q){var R=this.N,S=this.W+"/$rpc/google.internal.waa.v1.Waa/Create";X=X||{};Q=Q===void 0?{}:Q;return Vly(R,S,G,X,K3Z,Q)};var QVS="://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(" "),R2C=/\bocr\b/;var ZMZ=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(G){throw G;}},{MCT:!0, sLT:!0,DwA:!1,RjA:bao,aaB:v4L,Iac:!1,oBb:!1,fIO:!1,pfU:!0,UwT:$Sd,hjO:!1,F9A:!1,DRM:!1});var Ou=null,cW=!1,oFl=1,jVG=Symbol("SIGNAL"),Ln={version:0,pXb:0,z6:!1,producers:void 0,DM:void 0,c8:void 0,oy:void 0,DQ:!1,Ot:!1,w9:!1,kind:"unknown",ao:function(){return!1}, Io:function(){}, XI:function(){}, zjC:function(){}};var k1=Symbol("UNSET"),Y1=Symbol("COMPUTING"),jM=Symbol("ERRORED");Object.assign({},Ln,{value:k1,z6:!0,error:null,t7:xx,kind:"computed",ao:function(G){return G.value===k1||G.value===Y1}, Io:function(G){if(G.value===Y1)throw Error("");var X=G.value;G.value=Y1;var Q=wsG(G),R=!1;try{var S=G.O5();zq(null);R=X!==k1&&X!==jM&&S!==jM&&G.t7(X,S)}catch(Z){S=jM,G.error=Z}finally{LKy(G,Q)}R?G.value=X:(G.value=S,G.version++)}});var YZG=Object.assign({},Ln,{t7:xx,value:void 0,kind:"signal"});Object.assign({},Ln,{value:k1,z6:!0,error:null,t7:xx,kind:"linkedSignal",ao:function(G){return G.value===k1||G.value===Y1}, Io:function(G){if(G.value===Y1)throw Error("");var X=G.value;G.value=Y1;var Q=wsG(G);try{var R=G.source();var S=G.O5(R,X===k1||X===jM?void 0:{source:G.Ihp,value:X});G.Ihp=R}catch(Z){S=jM,G.error=Z}finally{LKy(G,Q)}X!==k1&&S!==jM&&G.t7(X,S)?G.value=X:(G.value=S,G.version++)}});Object.assign({},Ln,{w9:!0,Ot:!1,XI:function(G){G.schedule!==null&&G.schedule(G.Kdc)}, riT:!1,udM:function(){}});g.T(BW,g.hJ);BW.prototype.dispose=function(){window.removeEventListener("offline",this.Y);window.removeEventListener("online",this.Y);this.eT.tX(this.C);delete BW.instance}; BW.prototype.xu=function(){return this.N}; BW.prototype.VD=function(){var G=this;this.C=this.eT.GR(function(){var X;return g.F(function(Q){if(Q.W==1)return G.N?((X=window.navigator)==null?0:X.onLine)?Q.pO(3):g.l(Q,lv(G),3):g.l(Q,lv(G),3);G.VD();g.rX(Q)})},3E4)};g.T(PsU,eo);var zVS=TyC(PsU,[0,Qd,n7o,BgH,Qd,-2,BgH,g7L]);CU.prototype.set=function(G,X){X=X===void 0?!0:X;0<=G&&G<52&&Number.isInteger(G)&&this.data[G]!==X&&(this.data[G]=X,this.N=-1)}; CU.prototype.get=function(G){return!!this.data[G]};var VK;g.mo(g.yK,g.I);g.P=g.yK.prototype;g.P.start=function(){this.stop();this.V=!1;var G=TFX(this),X=KKV(this);G&&!X&&this.W.mozRequestAnimationFrame?(this.N=g.vs(this.W,"MozBeforePaint",this.Y),this.W.mozRequestAnimationFrame(null),this.V=!0):this.N=G&&X?G.call(this.W,this.Y):this.W.setTimeout(pn7(this.Y),20)}; g.P.stop=function(){if(this.isActive()){var G=TFX(this),X=KKV(this);G&&!X&&this.W.mozRequestAnimationFrame?Xq(this.N):G&&X?X.call(this.W,this.N):this.W.clearTimeout(this.N)}this.N=null}; g.P.isActive=function(){return this.N!=null}; g.P.FC=function(){this.V&&this.N&&Xq(this.N);this.N=null;this.S.call(this.C,g.jZ())}; g.P.zT=function(){this.stop();g.yK.gS.zT.call(this)};g.mo(g.fU,g.I);g.P=g.fU.prototype;g.P.FT=0;g.P.zT=function(){g.fU.gS.zT.call(this);this.stop();delete this.N;delete this.W}; g.P.start=function(G){this.stop();this.FT=g.Bp(this.Y,G!==void 0?G:this.BK)}; g.P.stop=function(){this.isActive()&&g.i7.clearTimeout(this.FT);this.FT=0}; g.P.isActive=function(){return this.FT!=0}; g.P.cN=function(){this.FT=0;this.N&&this.N.call(this.W)};g.T(g.nU,g.I);g.P=g.nU.prototype;g.P.h$=function(G){this.Y=arguments;this.G1||this.W?this.N=!0:$x(this)}; g.P.stop=function(){this.G1&&(g.i7.clearTimeout(this.G1),this.G1=null,this.N=!1,this.Y=null)}; g.P.pause=function(){this.W++}; g.P.resume=function(){this.W--;this.W||!this.N||this.G1||(this.N=!1,$x(this))}; g.P.zT=function(){g.I.prototype.zT.call(this);this.stop()};g.bv.prototype[Symbol.iterator]=function(){return this}; g.bv.prototype.next=function(){var G=this.N.next();return{value:G.done?void 0:this.W.call(void 0,G.value),done:G.done}};g.mo(g.Zw,g.hJ);g.P=g.Zw.prototype;g.P.isPlaying=function(){return this.N==1}; g.P.isPaused=function(){return this.N==-1}; g.P.Ln=function(){this.MX("begin")}; g.P.fW=function(){this.MX("end")}; g.P.onFinish=function(){this.MX("finish")}; g.P.onStop=function(){this.MX("stop")}; g.P.MX=function(G){this.dispatchEvent(G)};var cCo=Fp(function(){var G=g.ml("DIV"),X=g.kh?"-webkit":NP?"-moz":null,Q="transition:opacity 1s linear;";X&&(Q+=X+"-transition:opacity 1s linear;");X=cOC({style:Q});if(G.nodeType===1&&/^(script|style)$/i.test(G.tagName))throw Error("");G.innerHTML=m3(X);return g.Aj(G.firstChild,"transition")!=""});g.mo(HJ,g.Zw);g.P=HJ.prototype;g.P.play=function(){if(this.isPlaying())return!1;this.Ln();this.MX("play");this.startTime=g.jZ();this.N=1;if(cCo())return g.DN(this.W,this.S),this.Y=g.Bp(this.grU,void 0,this),!0;this.cG(!1);return!1}; g.P.grU=function(){g.Qj(this.W);axZ(this.W,this.J);g.DN(this.W,this.V);this.Y=g.Bp((0,g.La)(this.cG,this,!1),this.C*1E3)}; g.P.stop=function(){this.isPlaying()&&this.cG(!0)}; g.P.cG=function(G){g.DN(this.W,"transition","");g.i7.clearTimeout(this.Y);g.DN(this.W,this.V);this.endTime=g.jZ();this.N=0;if(G)this.onStop();else this.onFinish();this.fW()}; g.P.zT=function(){this.stop();HJ.gS.zT.call(this)}; g.P.pause=function(){};var xvy={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,"var":!0};qA("Element","attributes")||qA("Node","attributes");qA("Element","innerHTML")||qA("HTMLElement","innerHTML");qA("Node","nodeName");qA("Node","nodeType");qA("Node","parentNode");qA("Node","childNodes");qA("HTMLElement","style")||qA("Element","style");qA("HTMLStyleElement","sheet");var lxZ=z2U("getPropertyValue"),BFV=z2U("setProperty");qA("Element","namespaceURI")||qA("Node","namespaceURI");var UvT={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var VW7,IVv,tWC,Cs0,IxT;VW7=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]");IVv=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.gia=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.hZ=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]");tWC=/^http:\/\/.*/;g.UqO=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Cs0=/\s+/;IxT=/[\d\u06f0-\u06f9]/;kg.prototype.Kg=function(){return new Yg(this.W())}; kg.prototype[Symbol.iterator]=function(){return new j_(this.W())}; kg.prototype.N=function(){return new j_(this.W())}; g.T(Yg,g.u_);Yg.prototype.next=function(){return this.W.next()}; Yg.prototype[Symbol.iterator]=function(){return new j_(this.W)}; Yg.prototype.N=function(){return new j_(this.W)}; g.T(j_,kg);j_.prototype.next=function(){return this.Y.next()};m_.prototype.clone=function(){return new m_(this.N,this.J,this.Y,this.C,this.V,this.S,this.W,this.T)}; m_.prototype.equals=function(G){return this.N==G.N&&this.J==G.J&&this.Y==G.Y&&this.C==G.C&&this.V==G.V&&this.S==G.S&&this.W==G.W&&this.T==G.T};uI.prototype.clone=function(){return new uI(this.start,this.end)};(function(){if(NjV){var G=/Windows NT ([0-9.]+)/;return(G=G.exec(g.IB()))?G[1]:"0"}return jR?(G=/1[0|1][_.][0-9_.]+/,(G=G.exec(g.IB()))?G[0].replace(/_/g,"."):"10"):g.NN?(G=/Android\s+([^\);]+)(\)|;)/,(G=G.exec(g.IB()))?G[1]:""):Gnv||X$4||QBH?(G=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(G=G.exec(g.IB()))?G[1].replace(/_/g,"."):""):""})();var WKC=function(){if(g.Lj)return PJ(/Firefox\/([0-9.]+)/);if(g.wC||g.pl||g.b$)return ekV;if(g.un){if(Vo()||I$()){var G=PJ(/CriOS\/([0-9.]+)/);if(G)return G}return PJ(/Chrome\/([0-9.]+)/)}if(g.Y_&&!Vo())return PJ(/Version\/([0-9.]+)/);if(y9||fi){if(G=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.IB()))return G[1]+"."+G[2]}else if(g.vm)return(G=PJ(/Android\s+([0-9.]+)/))?G:PJ(/Version\/([0-9.]+)/);return""}();g.mo(g.Tk,g.I);g.P=g.Tk.prototype;g.P.subscribe=function(G,X,Q){var R=this.W[G];R||(R=this.W[G]=[]);var S=this.S;this.N[S]=G;this.N[S+1]=X;this.N[S+2]=Q;this.S=S+3;R.push(S);return S}; g.P.unsubscribe=function(G,X,Q){if(G=this.W[G]){var R=this.N;if(G=G.find(function(S){return R[S+1]==X&&R[S+2]==Q}))return this.Ed(G)}return!1}; g.P.Ed=function(G){var X=this.N[G];if(X){var Q=this.W[X];this.V!=0?(this.Y.push(G),this.N[G+1]=function(){}):(Q&&g.Ev(Q,G),delete this.N[G],delete this.N[G+1],delete this.N[G+2])}return!!X}; g.P.publish=function(G,X){var Q=this.W[G];if(Q){var R=Array(arguments.length-1),S=arguments.length,Z;for(Z=1;Z0&&this.V==0)for(;Q=this.Y.pop();)this.Ed(Q)}}return Z!=0}return!1}; g.P.clear=function(G){if(G){var X=this.W[G];X&&(X.forEach(this.Ed,this),delete this.W[G])}else this.N.length=0,this.W={}}; g.P.zT=function(){g.Tk.gS.zT.call(this);this.clear();this.Y.length=0};g.Kd.prototype.set=function(G,X){X===void 0?this.N.remove(G):this.N.set(G,g.VW(X))}; g.Kd.prototype.get=function(G){try{var X=this.N.get(G)}catch(Q){return}if(X!==null)try{return JSON.parse(X)}catch(Q){throw"Storage: Invalid value was encountered";}}; g.Kd.prototype.remove=function(G){this.N.remove(G)};g.mo(e_,g.Kd);e_.prototype.set=function(G,X){e_.gS.set.call(this,G,fxS(X))}; e_.prototype.W=function(G){G=e_.gS.get.call(this,G);if(G===void 0||G instanceof Object)return G;throw"Storage: Invalid value was encountered";}; e_.prototype.get=function(G){if(G=this.W(G)){if(G=G.data,G===void 0)throw"Storage: Invalid value was encountered";}else G=void 0;return G};g.mo(rC,e_);rC.prototype.set=function(G,X,Q){if(X=fxS(X)){if(Q){if(Q=Q.length)return g.ZF;var S=Q.key(X++);if(G)return g.PY(S);S=Q.getItem(S);if(typeof S!=="string")throw"Storage mechanism: Invalid value was encountered";return g.PY(S)}; return R}; g.P.clear=function(){O_(this);this.N.clear()}; g.P.key=function(G){O_(this);return this.N.key(G)};g.mo(zk,xg);g.mo(AVi,xg);g.mo(cJ,E_);cJ.prototype.set=function(G,X){this.W.set(this.N+G,X)}; cJ.prototype.get=function(G){return this.W.get(this.N+G)}; cJ.prototype.remove=function(G){this.W.remove(this.N+G)}; cJ.prototype.Kg=function(G){var X=this.W[Symbol.iterator](),Q=this,R=new g.u_;R.next=function(){var S=X.next();if(S.done)return S;for(S=S.value;S.slice(0,Q.N.length)!=Q.N;){S=X.next();if(S.done)return S;S=S.value}return g.PY(G?S.slice(Q.N.length):Q.W.get(S))}; return R};U_.prototype.getValue=function(){return this.W}; U_.prototype.clone=function(){return new U_(this.N,this.W)};g.P=lI.prototype;g.P.Jo=function(G,X){var Q=this.N;Q.push(new U_(G,X));G=Q.length-1;X=this.N;for(Q=X[G];G>0;){var R=G-1>>1;if(X[R].N>Q.N)X[G]=X[R],G=R;else break}X[G]=Q}; g.P.remove=function(){var G=this.N,X=G.length,Q=G[0];if(!(X<=0)){if(X==1)G.length=0;else{G[0]=G.pop();G=0;X=this.N;for(var R=X.length,S=X[G];G>1;){var Z=G*2+1,H=G*2+2;Z=HS.N)break;X[G]=X[Z];G=Z}X[G]=S}return Q.getValue()}}; g.P.xw=function(){for(var G=this.N,X=[],Q=G.length,R=0;R>>16&65535|0;for(var Z;Q!==0;){Z=Q>2E3?2E3:Q;Q-=Z;do S=S+X[R++]|0,G=G+S|0;while(--Z);S%=65521;G%=65521}return S|G<<16|0};for(var wi={},Mo,tS4=[],mf=0;mf<256;mf++){Mo=mf;for(var VSG=0;VSG<8;VSG++)Mo=Mo&1?3988292384^Mo>>>1:Mo>>>1;tS4[mf]=Mo}wi=function(G,X,Q,R){Q=R+Q;for(G^=-1;R>>8^tS4[(G^X[R])&255];return G^-1};var JZ={};JZ={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 Dw=[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],nd=[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],PDe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],qyZ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],QP=Array(576);tZ(QP);var RZ=Array(60);tZ(RZ);var AZ=Array(512);tZ(AZ);var fd=Array(256);tZ(fd);var NA=Array(29);tZ(NA);var $g=Array(30);tZ($g);var mJi,okT,uqV,MdZ=!1;var jp;jp=[new Yr(0,0,0,0,function(G,X){var Q=65535;for(Q>G.QX-5&&(Q=G.QX-5);;){if(G.wh<=1){hD(G);if(G.wh===0&&X===0)return 1;if(G.wh===0)break}G.hs+=G.wh;G.wh=0;var R=G.AC+Q;if(G.hs===0||G.hs>=R)if(G.wh=G.hs-R,G.hs=R,Sp(G,!1),G.Cd.TF===0)return 1;if(G.hs-G.AC>=G.zZ-262&&(Sp(G,!1),G.Cd.TF===0))return 1}G.Jo=0;if(X===4)return Sp(G,!0),G.Cd.TF===0?3:4;G.hs>G.AC&&Sp(G,!1);return 1}), new Yr(4,4,8,4,Lc),new Yr(4,5,16,8,Lc),new Yr(4,6,32,32,Lc),new Yr(4,4,16,16,kr),new Yr(8,16,32,32,kr),new Yr(8,16,128,128,kr),new Yr(8,32,128,256,kr),new Yr(32,128,258,1024,kr),new Yr(32,258,258,4096,kr)];var jJl={};jJl=function(){this.input=null;this.DS=this.xU=this.Q2=0;this.output=null;this.L8=this.TF=this.L_=0;this.msg="";this.state=null;this.YY=2;this.HZ=0};var sJS=Object.prototype.toString; MV.prototype.push=function(G,X){var Q=this.Cd,R=this.options.chunkSize;if(this.ended)return!1;var S=X===~~X?X:X===!0?4:0;typeof G==="string"?Q.input=bMX(G):sJS.call(G)==="[object ArrayBuffer]"?Q.input=new Uint8Array(G):Q.input=G;Q.Q2=0;Q.xU=Q.input.length;do{Q.TF===0&&(Q.output=new Cd.G4(R),Q.L_=0,Q.TF=R);G=Yye(Q,S);if(G!==1&&G!==0)return this.fW(G),this.ended=!0,!1;if(Q.TF===0||Q.xU===0&&(S===4||S===2))if(this.options.to==="string"){var Z=Cd.DR(Q.output,Q.L_);X=Z;Z=Z.length;if(Z<65537&&(X.subarray&& CA3||!X.subarray))X=String.fromCharCode.apply(null,Cd.DR(X,Z));else{for(var H="",w=0;w0||Q.TF===0)&&G!==1);if(S===4)return(Q=this.Cd)&&Q.state?(R=Q.state.status,R!==42&&R!==69&&R!==73&&R!==91&&R!==103&&R!==113&&R!==666?G=iI(Q,-2):(Q.state=null,G=R===113?iI(Q,-3):0)):G=-2,this.fW(G),this.ended=!0,G===0;S===2&&(this.fW(0),Q.TF=0);return!0}; MV.prototype.fW=function(G){G===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Cd.Uw(this.chunks));this.chunks=[];this.err=G;this.msg=this.Cd.msg};var oZ="@@redux/INIT"+my(),EkV="@@redux/REPLACE"+my();var xJi=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Iba=[0,fR4,-3,Xn];g.T(gkU,eo);var $9Z=TyC(gkU,[0,Qd,Dnk,vF,fR4,vF,-1,Xn,fR4,Xn,-1,Qd,Xn,Dnk,J0,Iba,vF,-1,Xn]);var UJe=1392740006;var vLw=new g.sI("adInfoDialogEndpoint");var cgS=new g.sI("adPingingEndpoint");var nA7=new g.sI("crossDeviceProgressCommand");var CN=new g.sI("actionCompanionAdRenderer");var $y=new g.sI("adActionInterstitialRenderer");var dqa=new g.sI("adDurationRemainingRenderer");var w_=new g.sI("adHoverTextButtonRenderer");var $Mi=new g.sI("adInfoDialogRenderer");var DL=new g.sI("adMessageRenderer");var ho=new g.sI("adPreviewRenderer");var Vh=new g.sI("adsEngagementPanelRenderer");var KTe=new g.sI("dismissablePanelTextPortraitImageRenderer");var s8X=new g.sI("adsEngagementPanelSectionListViewModel");var W3n=new g.sI("flyoutCtaRenderer");var tp=new g.sI("imageCompanionAdRenderer");var AF=new g.sI("instreamAdPlayerOverlayRenderer");var Svn=new g.sI("instreamSurveyAdBackgroundImageRenderer");var qh=new g.sI("instreamSurveyAdPlayerOverlayRenderer");var $s=new g.sI("instreamSurveyAdRenderer"),H9=new g.sI("instreamSurveyAdSingleSelectQuestionRenderer"),ZL=new g.sI("instreamSurveyAdMultiSelectQuestionRenderer"),oy=new g.sI("instreamSurveyAdAnswerRenderer"),poS=new g.sI("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var Ap=new g.sI("instreamVideoAdRenderer");var yCG=new g.sI("textOverlayAdContentRenderer"),fbv=new g.sI("enhancedTextOverlayAdContentRenderer"),Dqd=new g.sI("imageOverlayAdContentRenderer");var n9=new g.sI("playerOverlayLayoutRenderer");var bS=new g.sI("videoInterstitialButtonedCenteredLayoutRenderer");var x2C=new g.sI("aboveFeedAdLayoutRenderer");var Or7=new g.sI("belowPlayerAdLayoutRenderer");var EJU=new g.sI("inPlayerAdLayoutRenderer");var Jp=new g.sI("playerBytesAdLayoutRenderer");var Sc=new g.sI("playerBytesSequenceItemAdLayoutRenderer");var Rk=new g.sI("playerUnderlayAdLayoutRenderer");var nN=new g.sI("adIntroRenderer");var DQ=new g.sI("playerBytesSequentialLayoutRenderer");var H10=new g.sI("slidingTextPlayerOverlayRenderer");var b1=new g.sI("surveyTextInterstitialRenderer");var i1=new g.sI("videoAdTrackingRenderer");var oJy=new g.sI("videoInterstitialCenteredLayoutViewModel");var NZO=new g.sI("simpleAdBadgeRenderer");var Ba=new g.sI("skipAdRenderer"),ACZ=new g.sI("skipButtonRenderer");var jc=new g.sI("adSlotRenderer");var X2=new g.sI("squeezebackPlayerSidePanelRenderer");var nia=new g.sI("timedPieCountdownRenderer");var d5=new g.sI("adAvatarViewModel");var WF=new g.sI("adBadgeViewModel");var pW=new g.sI("adButtonViewModel");var $qZ=new g.sI("adDetailsLineViewModel");var bTv=new g.sI("adDisclosureBannerViewModel");var viH=new g.sI("adPodIndexViewModel");var JCG=new g.sI("imageBackgroundViewModel");var iTL=new g.sI("adGridCardCollectionViewModel");var GtS=new g.sI("adGridCardTextViewModel");var Xq4=new g.sI("adPreviewViewModel");var QLO=new g.sI("playerAdAvatarLockupCardButtonedViewModel");var RmH=new g.sI("skipAdButtonViewModel");var SMo=new g.sI("skipAdViewModel");var ZsH=new g.sI("timedPieCountdownViewModel");var HsG=new g.sI("visitAdvertiserLinkViewModel");var Iw=new g.sI("bannerImageLayoutViewModel");var dk=new g.sI("topBannerImageTextIconButtonedLayoutViewModel");var WE=new g.sI("adsEngagementPanelLayoutViewModel");var QO=new g.sI("displayUnderlayTextGridCardsLayoutViewModel");g.AP=new g.sI("browseEndpoint");var qMk=new g.sI("confirmDialogEndpoint");var YQZ=new g.sI("commandContext");var LWT=new g.sI("rawColdConfigGroup");var hTw=new g.sI("rawHotConfigGroup");g.YA=new g.sI("commandExecutorCommand");g.T(BDZ,eo);var FiZ={KTi:0,zO_:1,aIM:32,SWm:61,kqd:67,CDb:103,lIT:86,ROC:42,IIT:60,YWU:62,QZm:73,nvc:76,qWA:88,PDi:90,ipb:99,sZB:98,Gqd:100,UhH:102,JcT:41,ccM:69,eOb:70,F0d:71,KkT:2,jXU:27,ANDROID:3,WBH:54,zvc:14,RvM:91,HvC:55,Ybc:24,VcC:20,xui:18,McU:21,pKb:104,InU:30,Uum:29,Q$c:28,uSO:101,SbC:34,ani:36,hvb:38,IOS:5,EgT:15,ggC:92,BJO:40,L4M:25,m1A:17,ZuO:19,K4T:64,jhd:66,buH:26,dWd:22,t8m:33,u6p:68,ACA:35,f1p:53,rXU:37,TJT:39,ijU:7,J8H:57,c8p:43,FTO:59,eJm:93,n_H:74,OjT:75,wDi:85,XDi:65,BBO:80,TBB:8,GOT:10, mXT:58,LTT:63,Ef_:72,o_m:23,X1i:11,EvU:13,N$_:12,kOi:16,DhB:56,vvT:31,TVm:77,hrc:84,ovO:87,piM:89,Mlm:94,PHH:95};g.T(T0,eo);T0.prototype.Af=function(){return g8(this,3)}; T0.prototype.xt=function(){return g8(this,5)}; T0.prototype.a5=function(G){return CS(this,5,G)};g.T(Kc,eo);g.T(FaU,eo);g.T(ep,eo);g.P=ep.prototype;g.P.getDeviceId=function(){return g8(this,6)}; g.P.eU=function(G){var X=HX(this,9,mG,3,!0);Av(X,G);return X[G]}; g.P.getPlayerType=function(){return UJ(this,36)}; g.P.setHomeGroupInfo=function(G){return EJ(this,FaU,81,G)}; g.P.clearLocationPlayabilityToken=function(){return XM(this,89)};g.T(ri,eo);ri.prototype.getValue=function(){return g8(this,oS(this,qhw,2))}; var qhw=[2,3,4,5,6];g.T(aZ,eo);aZ.prototype.setTrackingParams=function(G){return XM(this,1,p$y(G,!1))};g.T(EI,eo);g.T(xr,eo);xr.prototype.eU=function(G){var X=HX(this,5,o7,3,!0);Av(X,G);return X[G]};g.T(OI,eo);OI.prototype.getToken=function(){return BX(this,2)}; OI.prototype.setToken=function(G){return CS(this,2,G)};g.T(z0,eo);z0.prototype.setSafetyMode=function(G){return V$(this,5,G)};g.T(cO,eo);cO.prototype.jp=function(G){return EJ(this,ep,1,G)};var kp=new g.sI("thumbnailLandscapePortraitRenderer");g.wqL=new g.sI("changeEngagementPanelVisibilityAction");var E_y=new g.sI("continuationCommand");g.hmo=new g.sI("openPopupAction");g.ux=new g.sI("webCommandMetadata");var LSG=new g.sI("metadataBadgeRenderer");var a6C=new g.sI("signalServiceEndpoint");var OL=new g.sI("innertubeCommand");var wIG=new g.sI("loggingDirectives");var sCS={XIM:"EMBEDDED_PLAYER_MODE_UNKNOWN",F7i:"EMBEDDED_PLAYER_MODE_DEFAULT",wIC:"EMBEDDED_PLAYER_MODE_PFP",O2O:"EMBEDDED_PLAYER_MODE_PFL"};var Cey=new g.sI("channelThumbnailEndpoint");var FST=new g.sI("embeddedPlayerErrorMessageRenderer");var gpC=new g.sI("embeddedPlayerOverlayVideoDetailsRenderer"),tcG=new g.sI("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),VcG=new g.sI("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var qHG=new g.sI("embedsInfoPanelRenderer");var Ll4=new g.sI("feedbackEndpoint");var ktZ=new g.sI("callToActionButtonViewModel");var YML=new g.sI("interactionLoggingCommandMetadata");var M_C={p1i:"WEB_DISPLAY_MODE_UNKNOWN",V3H:"WEB_DISPLAY_MODE_BROWSER",hOO:"WEB_DISPLAY_MODE_MINIMAL_UI",M3B:"WEB_DISPLAY_MODE_STANDALONE",xhT:"WEB_DISPLAY_MODE_FULLSCREEN"};g.T(gi,eo);gi.prototype.getPlayerType=function(){return UJ(this,7)}; gi.prototype.iL=function(){return g8(this,19)}; gi.prototype.setVideoId=function(G){return CS(this,19,G)};g.T(UI,eo);g.T(lb,eo);g.T(BO,eo); var jLH=[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,517,518,519,520,522,523,524,525,527];var MeZ=new g.sI("loggingContext");g.T(Fr,eo);g.T(Cc,eo);Cc.prototype.iL=function(){return BX(this,oS(this,XY,1))}; Cc.prototype.setVideoId=function(G){return M5(this,1,XY,xw(G))}; Cc.prototype.getPlaylistId=function(){return BX(this,oS(this,XY,2))}; var XY=[1,2];g.T(CDX,eo);var eX=new g.sI("changeKeyedMarkersVisibilityCommand");var mP4=new g.sI("changeMarkersVisibilityCommand");var YHe=new g.sI("loadMarkersCommand");var oh3=new g.sI("suggestedActionDataViewModel");var PfT=new g.sI("timelyActionViewModel");var u9y=new g.sI("timelyActionsOverlayViewModel");var llX=new g.sI("productListItemRenderer");var up4=new g.sI("shoppingOverlayRenderer");var UhZ=new g.sI("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var PEa=new g.sI("adFeedbackEndpoint");var sL3=new g.sI("menuEndpoint");var IFC=new g.sI("phoneDialerEndpoint");var tMS=new g.sI("sendSmsEndpoint");var col=new g.sI("copyTextEndpoint");var Tyv=new g.sI("shareEndpoint"),KlO=new g.sI("shareEntityEndpoint"),emo=new g.sI("shareEntityServiceEndpoint"),rjH=new g.sI("webPlayerShareEntityServiceEndpoint");g.l5=new g.sI("urlEndpoint");g.TU=new g.sI("watchEndpoint");var aNn=new g.sI("watchPlaylistEndpoint");g.Ehk=new g.sI("offlineOrchestrationActionCommand");var iGZ=new g.sI("compositeVideoOverlayRenderer");var xP4=new g.sI("miniplayerRenderer");var OvZ=new g.sI("paidContentOverlayRenderer");var OsO=new g.sI("playerMutedAutoplayOverlayRenderer"),zmH=new g.sI("playerMutedAutoplayEndScreenRenderer");var aQw=new g.sI("unserializedPlayerResponse"),cjL=new g.sI("unserializedPlayerResponse");var ghn=new g.sI("playlistEditEndpoint");var Ph;g.Lv=new g.sI("buttonRenderer");Ph=new g.sI("toggleButtonRenderer");var PJU=new g.sI("counterfactualRenderer");var UPn=new g.sI("resolveUrlCommandMetadata");var lNL=new g.sI("modifyChannelNotificationPreferenceEndpoint");var z$w=new g.sI("pingingEndpoint");var ByO=new g.sI("unsubscribeEndpoint");g.nL=new g.sI("subscribeButtonRenderer");var FlL=new g.sI("subscribeEndpoint");var ZR7=new g.sI("buttonViewModel");var T2X=new g.sI("qrCodeRenderer");var tNZ={o2H:"LIVING_ROOM_APP_MODE_UNSPECIFIED",RbB:"LIVING_ROOM_APP_MODE_MAIN",DWT:"LIVING_ROOM_APP_MODE_KIDS",agc:"LIVING_ROOM_APP_MODE_MUSIC",IgC:"LIVING_ROOM_APP_MODE_UNPLUGGED",sX_:"LIVING_ROOM_APP_MODE_GAMING"};var SHe=new g.sI("autoplaySwitchButtonRenderer");var bp,x_0,UcG,VH7;bp=new g.sI("decoratedPlayerBarRenderer");x_0=new g.sI("chapteredPlayerBarRenderer");UcG=new g.sI("multiMarkersPlayerBarRenderer");VH7=new g.sI("chapterRenderer");g.gdV=new g.sI("markerRenderer");var yy7=new g.sI("decoratedPlayheadRenderer");var w9Z=new g.sI("desktopOverlayConfigRenderer");var ezC=new g.sI("engagementPanelSectionListRenderer");var HvG=new g.sI("gatedActionsOverlayViewModel");var F1C=new g.sI("heatMarkerRenderer");var BMl=new g.sI("heatmapRenderer");var kli=new g.sI("watchToWatchTransitionRenderer");var lLS=new g.sI("playlistPanelRenderer");var CEk=new g.sI("productUpsellSuggestedActionViewModel");var ten=new g.sI("suggestedActionTimeRangeTrigger"),Vev=new g.sI("suggestedActionsRenderer"),INo=new g.sI("suggestedActionRenderer");var CRG=new g.sI("timedMarkerDecorationRenderer");var UUi=new g.sI("cipher");var Esl=new g.sI("playerVars");var dPL=new g.sI("playerVars");var sk=g.i7.window,Wla,pqa,tD=(sk==null?void 0:(Wla=sk.yt)==null?void 0:Wla.config_)||(sk==null?void 0:(pqa=sk.ytcfg)==null?void 0:pqa.data_)||{};g.G3("yt.config_",tD);var yP=[];var NDw=/^[\w.]*$/,ppw={q:!0,search_query:!0},WaC=String(AD);var Rm=new function(){var G=window.document;this.N=window;this.W=G}; g.G3("yt.ads_.signals_.getAdSignalsString",function(G){return nc(Zz(G))});g.jZ();var nkX="XMLHttpRequest"in g.i7?function(){return new XMLHttpRequest}:null;var yjH="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.o0(yjH);var JJG={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"},hyG="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.o0(yjH)),ZeC=!1,QCe=uX;g.T(T_,od);rp.prototype.then=function(G,X,Q){return this.N?this.N.then(G,X,Q):this.Y===1&&G?(G=G.call(Q,this.W))&&typeof G.then==="function"?G:Eh(G):this.Y===2&&X?(G=X.call(Q,this.W))&&typeof G.then==="function"?G:am(G):this}; rp.prototype.getValue=function(){return this.W}; rp.prototype.$goog_Thenable=!0;var xD=!1;var WI=y9||fi;var uAV=/^([0-9\.]+):([0-9\.]+)$/;g.T(Z$,od);Z$.prototype.name="BiscottiError";g.T(S8,od);S8.prototype.name="BiscottiMissingError";var KcS={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},HA=null;var Qdw=g.u7(["data-"]),g$w={};var fN4=0,qM=g.kh?"webkit":NP?"moz":g.wC?"ms":g.b$?"o":"",DPV=g.QH("ytDomDomGetNextId")||function(){return++fN4}; g.G3("ytDomDomGetNextId",DPV);var Fci={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};j8.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; j8.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; j8.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var MM=g.i7.ytEventsEventsListeners||{};g.G3("ytEventsEventsListeners",MM);var VY7=g.i7.ytEventsEventsCounter||{count:0};g.G3("ytEventsEventsCounter",VY7);var pg0=Fp(function(){var G=!1;try{var X=Object.defineProperty({},"passive",{get:function(){G=!0}}); window.addEventListener("test",null,X)}catch(Q){}return G}),IYG=Fp(function(){var G=!1; try{var X=Object.defineProperty({},"capture",{get:function(){G=!0}}); window.addEventListener("test",null,X)}catch(Q){}return G});var Tx;Tx=window;g.TB=Tx.ytcsi&&Tx.ytcsi.now?Tx.ytcsi.now:Tx.performance&&Tx.performance.timing&&Tx.performance.now&&Tx.performance.timing.navigationStart?function(){return Tx.performance.timing.navigationStart+Tx.performance.now()}:function(){return(new Date).getTime()};g.mo(s5,g.I);s5.prototype.j=function(G){G.N===void 0&&Cwy(G);var X=G.N;G.W===void 0&&Cwy(G);this.N=new g.Db(X,G.W)}; s5.prototype.oD=function(){return this.N||new g.Db}; s5.prototype.AT=function(){if(this.N){var G=(0,g.TB)();if(this.V!=0){var X=this.S,Q=this.N,R=X.x-Q.x;X=X.y-Q.y;R=Math.sqrt(R*R+X*X)/(G-this.V);this.W[this.Y]=Math.abs((R-this.C)/this.C)>.5?1:0;for(Q=X=0;Q<4;Q++)X+=this.W[Q]||0;X>=3&&this.J();this.C=R}this.V=G;this.S=this.N;this.Y=(this.Y+1)%4}}; s5.prototype.zT=function(){g.kD(this.T);g.oc(this.yH)};g.T(TJ,g.I);TJ.prototype.B=function(G,X,Q,R,S){Q=g.Do((0,g.La)(Q,R||this.Hs));Q={target:G,name:X,callback:Q};var Z;S&&pg0()&&(Z={passive:!0});G.addEventListener(X,Q.callback,Z);this.J.push(Q);return Q}; TJ.prototype.Ds=function(G){for(var X=0;X=p.zO)||x.N.version>=b||x.N.objectStoreNames.contains(V)||z.push(V)}h=z;if(h.length===0){r.pO(5);break}L=Object.keys(Q.options.KW); k=w.objectStoreNames();if(Q.CQ.options.version+1)throw M.close(),Q.Y=!1,zST(Q,m);return r.return(M);case 8:throw X(), Y instanceof Error&&!g.jg("ytidb_async_stack_killswitch")&&(Y.stack=Y.stack+"\n"+H.substring(H.indexOf("\n")+1)),jU(Y,Q.name,"",(u=Q.options.version)!=null?u:-1);}})} function X(){Q.N===R&&(Q.N=void 0)} var Q=this;if(!this.Y)throw zST(this);if(this.N)return this.N;var R,S={blocking:function(Z){Z.close()}, closed:X,cEb:X,upgrade:this.options.upgrade};return this.N=R=G()};var Iq=new t$("YtIdbMeta",{KW:{databases:{zO:1}},upgrade:function(G,X){X(1)&&g.rb(G,"databases",{keyPath:"actualName"})}});var fl,yL=new function(){}(new function(){});new g.wh;g.T(A$,t$);A$.prototype.W=function(G,X,Q){Q=Q===void 0?{}:Q;return(this.options.shared?VvV:tvG)(G,X,Object.assign({},Q))}; A$.prototype.delete=function(G){G=G===void 0?{}:G;return(this.options.shared?pWU:IAS)(this.name,G)};var GXZ={},fAV=g.nl("ytGcfConfig",{KW:(GXZ.coldConfigStore={zO:1},GXZ.hotConfigStore={zO:1},GXZ),shared:!1,upgrade:function(G,X){X(1)&&(g.cI(g.rb(G,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.cI(g.rb(G,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.T(bq,g.I);bq.prototype.zT=function(){for(var G=g.e(this.W),X=G.next();!X.done;X=G.next()){var Q=this.N;X=Q.indexOf(X.value);X>=0&&Q.splice(X,1)}this.W.length=0;g.I.prototype.zT.call(this)};QB.prototype.a5=function(G){this.hotHashData=G;g.G3("yt.gcf.config.hotHashData",this.hotHashData||null)};var X1S=typeof TextEncoder!=="undefined"?new TextEncoder:null,lwl=X1S?function(G){return X1S.encode(G)}:function(G){G=g.xN(G); for(var X=new Uint8Array(G.length),Q=0;Q=X?!1:!0}; g.P.N4=function(){var G=this;if(!E3(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.cF.Kh("QUEUED",this.Te).then(function(X){X&&!G.gP(X,G.U7)?G.eT.GR(function(){return g.F(function(Q){if(Q.W==1)return X.id===void 0?Q.pO(2):g.l(Q,G.cF.GX(X.id,G.Te),2);G.N4();g.rX(Q)})}):G.MG.xu()&&G.ZM()})};var zw;var jmS={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,producerMediaServicesResetDetails:522,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, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527};var RbL={},vgC=g.nl("ServiceWorkerLogsDatabase",{KW:(RbL.SWHealthLog={zO:1},RbL),shared:!0,upgrade:function(G,X){X(1)&&g.cI(g.rb(G,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var U3={},R4e=0;var lC;FQ.prototype.requestComplete=function(G,X){X&&(this.W=!0);G=this.removeParams(G);this.N.get(G)||this.N.set(G,X)}; FQ.prototype.isEndpointCFR=function(G){G=this.removeParams(G);return(G=this.N.get(G))?!1:G===!1&&this.W?!0:null}; FQ.prototype.removeParams=function(G){return G.split("?")[0]}; FQ.prototype.removeParams=FQ.prototype.removeParams;FQ.prototype.isEndpointCFR=FQ.prototype.isEndpointCFR;FQ.prototype.requestComplete=FQ.prototype.requestComplete;FQ.getInstance=CH;g.T(ts,g.hJ);g.P=ts.prototype;g.P.xu=function(){return this.N.xu()}; g.P.Iq=function(G){this.N.N=G}; g.P.i$=function(){var G=window.navigator.onLine;return G===void 0?!0:G}; g.P.Us=function(){this.W=!0}; g.P.listen=function(G,X){return this.N.listen(G,X)}; g.P.V6=function(G){G=lv(this.N,G);G.then(function(X){g.jg("use_cfr_monitor")&&CH().requestComplete("generate_204",X)}); return G}; ts.prototype.sendNetworkCheckRequest=ts.prototype.V6;ts.prototype.listen=ts.prototype.listen;ts.prototype.enableErrorFlushing=ts.prototype.Us;ts.prototype.getWindowStatus=ts.prototype.i$;ts.prototype.networkStatusHint=ts.prototype.Iq;ts.prototype.isNetworkAvailable=ts.prototype.xu;ts.getInstance=HcV;g.T(g.VB,g.hJ);g.VB.prototype.xu=function(){var G=g.QH("yt.networkStatusManager.instance.isNetworkAvailable");return G?G.bind(this.W)():!0}; g.VB.prototype.Iq=function(G){var X=g.QH("yt.networkStatusManager.instance.networkStatusHint").bind(this.W);X&&X(G)}; g.VB.prototype.V6=function(G){var X=this,Q;return g.F(function(R){Q=g.QH("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(X.W);return g.jg("skip_network_check_if_cfr")&&CH().isEndpointCFR("generate_204")?R.return(new Promise(function(S){var Z;X.Iq(((Z=window.navigator)==null?void 0:Z.onLine)||!0);S(X.xu())})):Q?R.return(Q(G)):R.return(!0)})};var Is;g.T(dW,xQ);dW.prototype.writeThenSend=function(G,X){X||(X={});X=pH(G,X);g.pZ()||(this.N=!1);xQ.prototype.writeThenSend.call(this,G,X)}; dW.prototype.sendThenWrite=function(G,X,Q){X||(X={});X=pH(G,X);g.pZ()||(this.N=!1);xQ.prototype.sendThenWrite.call(this,G,X,Q)}; dW.prototype.sendAndWrite=function(G,X){X||(X={});X=pH(G,X);g.pZ()||(this.N=!1);xQ.prototype.sendAndWrite.call(this,G,X)}; dW.prototype.awaitInitialization=function(){return this.Y.promise};var k0Z=g.i7.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.G3("ytNetworklessLoggingInitializationOptions",k0Z);g.yB.prototype.isReady=function(){!this.config_&&q_T()&&(this.config_=g.Z3());return!!this.config_};var Soo,N4,nH;Soo=g.i7.ytPubsubPubsubInstance||new g.Tk;N4=g.i7.ytPubsubPubsubSubscribedKeys||{};nH=g.i7.ytPubsubPubsubTopicToKeys||{};g.As=g.i7.ytPubsubPubsubIsSynchronous||{};g.Tk.prototype.subscribe=g.Tk.prototype.subscribe;g.Tk.prototype.unsubscribeByKey=g.Tk.prototype.Ed;g.Tk.prototype.publish=g.Tk.prototype.publish;g.Tk.prototype.clear=g.Tk.prototype.clear;g.G3("ytPubsubPubsubInstance",Soo);g.G3("ytPubsubPubsubTopicToKeys",nH);g.G3("ytPubsubPubsubIsSynchronous",g.As); g.G3("ytPubsubPubsubSubscribedKeys",N4);var urZ={};g.T(wE,g.I);wE.prototype.append=function(G){if(!this.W)throw Error("This does not support the append operation");G=G.V0();this.V0().appendChild(G)}; g.T(hg,wE);hg.prototype.V0=function(){return this.N};g.T(L7,g.I);L7.prototype.onTouchStart=function(G){this.J=!0;this.W=G.touches.length;this.N.isActive()&&(this.N.stop(),this.C=!0);G=G.touches;this.S=TiT(this,G)||G.length!=1;var X=G.item(0);this.S||!X?this.j=this.T=Infinity:(this.T=X.clientX,this.j=X.clientY);for(X=this.Y.length=0;X=0)}if(X||G&&Math.pow(G.clientX-this.T,2)+Math.pow(G.clientY-this.j,2)>25)this.V=!0}; L7.prototype.onTouchEnd=function(G){var X=G.changedTouches;X&&this.J&&this.W==1&&!this.V&&!this.C&&!this.S&&TiT(this,X)&&(this.AT=G,this.N.start());this.W=G.touches.length;this.W===0&&(this.V=this.J=!1,this.Y.length=0);this.C=!1};var kG=Date.now().toString();var of={};var eh=Symbol("injectionDeps");PR.prototype.toString=function(){return"InjectionToken("+this.name+")"}; rDl.prototype.resolve=function(G){return G instanceof sT?rE(this,G.key,[],!0):rE(this,G,[])};var af;var xG=window;var gE=g.jg("web_enable_lifecycle_monitoring")&&OT()!==0,loZ=g.jg("web_enable_lifecycle_monitoring");cDC.prototype.cancel=function(){for(var G=g.e(this.N),X=G.next();!X.done;X=G.next())X=X.value,X.jobId===void 0||X.cq||this.scheduler.tX(X.jobId),X.cq=!0;this.W.resolve()};g.P=UT.prototype;g.P.install=function(G){this.plugins.push(G);return this}; g.P.uninstall=function(){var G=this;g.Wl.apply(0,arguments).forEach(function(X){X=G.plugins.indexOf(X);X>-1&&G.plugins.splice(X,1)})}; g.P.transition=function(G,X){var Q=this;gE&&Oci(this.state);var R=this.transitions.find(function(Z){return Array.isArray(Z.from)?Z.from.find(function(H){return H===Q.state&&Z.to===G}):Z.from===Q.state&&Z.to===G}); if(R){this.W&&(gr0(this.W),this.W=void 0);BiX(this,G,X);this.state=G;gE&&zY(this.state);R=R.action.bind(this);var S=this.plugins.filter(function(Z){return Z[G]}).map(function(Z){return Z[G]}); R(UV0(this,S),X)}else throw Error("no transition specified from "+this.state+" to "+G);}; g.P.wRd=function(G){var X=g.Wl.apply(1,arguments);g.A7();for(var Q=g.e(G),R=Q.next(),S={};!R.done;S={YQ:void 0},R=Q.next())S.YQ=R.value,GqU(function(Z){return function(){BR(Z.YQ.name);C7(function(){return Z.YQ.callback.apply(Z.YQ,g.o0(X))}); FV(Z.YQ.name)}}(S))}; g.P.OoU=function(G){var X=g.Wl.apply(1,arguments),Q,R,S,Z;return g.F(function(H){H.W==1&&(g.A7(),Q=g.e(G),R=Q.next(),S={});if(H.W!=3){if(R.done)return H.pO(0);S.Km=R.value;S.Lc=void 0;Z=function(w){return function(){BR(w.Km.name);var h=C7(function(){return w.Km.callback.apply(w.Km,g.o0(X))}); tT(h)?w.Lc=g.jg("web_lifecycle_error_handling_killswitch")?h.then(function(){FV(w.Km.name)}):h.then(function(){FV(w.Km.name)},function(L){z4C(L); FV(w.Km.name)}):FV(w.Km.name)}}(S); GqU(Z);return S.Lc?g.l(H,S.Lc,3):H.pO(3)}S={Km:void 0,Lc:void 0};R=Q.next();return H.pO(2)})}; g.P.tO=function(G){var X=g.Wl.apply(1,arguments),Q=this,R=G.map(function(S){return{IB:function(){BR(S.name);C7(function(){return S.callback.apply(S,g.o0(X))}); FV(S.name)}, priority:l6(Q,S)}}); R.length&&(this.W=new cDC(R))}; g.ZG.Object.defineProperties(UT.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var V6;g.T(tg,UT);tg.prototype.C=function(G,X){var Q=this;this.N=g.D$(0,function(){Q.currentState==="application_navigating"&&Q.transition("none")},5E3); G(X==null?void 0:X.event)}; tg.prototype.S=function(G,X){this.N&&(g.Ft.tX(this.N),this.N=null);G(X==null?void 0:X.event)};var hf=[];g.G3("yt.logging.transport.getScrapedGelPayloads",function(){return hf});If.prototype.storePayload=function(G,X){G=dE(G);this.store[G]?this.store[G].push(X):(this.W={},this.store[G]=[X]);this.N++;g.jg("more_accurate_gel_parser")&&(X=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(X));return G}; If.prototype.smartExtractMatchingEntries=function(G){if(!G.keys.length)return[];for(var X=p7(this,G.keys.splice(0,1)[0]),Q=[],R=0;R=0){R=!1;break a}}R=!0}R&&(X=c8(X))&&this.BA(X)}}; g.P.oo=function(G){return G}; g.P.onTouchStart=function(G){this.Yc.onTouchStart(G)}; g.P.onTouchMove=function(G){this.Yc.onTouchMove(G)}; g.P.onTouchEnd=function(G){if(this.Yc)this.Yc.onTouchEnd(G)}; g.P.BA=function(G){this.layoutId?this.Fm.executeCommand(G,this.layoutId):(G=new g.Ic("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.aU(G))}; g.P.createServerVe=function(G,X){this.api.createServerVe(G,this);this.api.setTrackingParams(G,X)}; g.P.logVisibility=function(G,X){this.api.hasVe(G)&&this.api.logVisibility(G,X,this.interactionLoggingClientData)}; g.P.zT=function(){this.clear(null);this.Ds(this.KO);for(var G=g.e(this.DC),X=G.next();!X.done;X=G.next())this.Ds(X.value);g.Sa.prototype.zT.call(this)};g.T(Oz,ZT); Oz.prototype.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);this.N=X;if(X.text==null&&X.icon==null)g.EL(Error("ButtonRenderer did not have text or an icon set."));else{switch(X.style||null){case "STYLE_UNKNOWN":G="ytp-ad-button-link";break;default:G=null}G!=null&&g.Gk(this.element,G);X.text!=null&&(G=g.q1(X.text),g.lY(G)||(this.element.setAttribute("aria-label",G),this.Y=new g.Sa({D:"span",X:"ytp-ad-button-text",WM:G}),g.d(this,this.Y),this.Y.s_(this.element)));X.accessibilityData&&X.accessibilityData.accessibilityData&& X.accessibilityData.accessibilityData.label&&!g.lY(X.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",X.accessibilityData.accessibilityData.label);X.icon!=null&&(X=xC(X.icon,this.V),X!=null&&(this.W=new g.Sa({D:"span",X:"ytp-ad-button-icon",K:[X]}),g.d(this,this.W)),this.S?sM(this.element,this.W.element,0):this.W.s_(this.element))}}; Oz.prototype.clear=function(){this.hide()}; Oz.prototype.onClick=function(G){ZT.prototype.onClick.call(this,G);G=g.e(FXT(this));for(var X=G.next();!X.done;X=G.next())X=X.value,this.layoutId?this.Fm.executeCommand(X,this.layoutId):g.aU(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.T(zD,g.I);zD.prototype.zT=function(){this.W&&g.oc(this.W);this.N.clear();c5=null;g.I.prototype.zT.call(this)}; zD.prototype.register=function(G,X){X&&this.N.set(G,X)}; var c5=null;g.T(B5,ZT); B5.prototype.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);G=X.hoverText||null;X=X.button&&g.y(X.button,g.Lv)||null;X==null?g.aU(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Oz(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,void 0,void 0,void 0,void 0,this.Y),g.d(this,this.button),this.button.init(v8("button"),X,this.macros),G&&this.button.element.setAttribute("aria-label",g.q1(G)),this.button.s_(this.element),this.j&&!g.iv(this.button.element, "ytp-ad-clickable")&&g.Gk(this.button.element,"ytp-ad-clickable"),this.Y&&g.Gk(this.button.element,"ytp-ad-hover-text-button--clean-player"),G&&(this.W=new g.Sa({D:"div",X:"ytp-ad-hover-text-container"}),this.S&&(X=new g.Sa({D:"div",X:"ytp-ad-hover-text-callout"}),X.s_(this.W.element),g.d(this,X)),g.d(this,this.W),this.W.s_(this.element),X=Uz(G),sM(this.W.element,X,0)),this.show())}; B5.prototype.hide=function(){this.button&&this.button.hide();this.W&&this.W.hide();ZT.prototype.hide.call(this)}; B5.prototype.show=function(){this.button&&this.button.show();ZT.prototype.show.call(this)};g.T(CD,ZT); CD.prototype.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);Q=(G=X.thumbnail)&&FX(G)||"";g.lY(Q)?Math.random()<.01&&g.EL(Error("Found AdImage without valid image URL")):(this.N?g.DN(this.element,"backgroundImage","url("+Q+")"):Ls(this.element,{src:Q}),Ls(this.element,{alt:G&&G.accessibility&&G.accessibility.label||""}),X&&X.adRendererCommands&&X.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; CD.prototype.clear=function(){this.hide()};g.T(t4,ZT);g.P=t4.prototype;g.P.hide=function(){ZT.prototype.hide.call(this);this.Y&&this.Y.focus()}; g.P.show=function(){this.Y=document.activeElement;ZT.prototype.show.call(this);this.V.focus()}; g.P.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);this.W=X;X.dialogMessages||X.title!=null?X.confirmLabel==null?g.aU(Error("ConfirmDialogRenderer.confirmLabel was not set.")):X.cancelLabel==null?g.aU(Error("ConfirmDialogRenderer.cancelLabel was not set.")):I$C(this,X):g.aU(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.P.clear=function(){g.e8(this.N);this.hide()}; g.P.YG=function(){this.hide()}; g.P.eE=function(){var G=this.W.cancelEndpoint;G&&(this.layoutId?this.Fm.executeCommand(G,this.layoutId):g.aU(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.P.VR=function(){var G=this.W.confirmNavigationEndpoint||this.W.confirmEndpoint;G&&(this.layoutId?this.Fm.executeCommand(G,this.layoutId):g.aU(Error("Missing layoutId for confirm dialog.")));this.hide()};g.T(VJ,ZT);g.P=VJ.prototype; g.P.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);this.Y=X;if(X.defaultText==null&&X.defaultIcon==null)g.aU(Error("ToggleButtonRenderer must have either text or icon set."));else if(X.defaultIcon==null&&X.toggledIcon!=null)g.aU(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(X.style){switch(X.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":G="ytp-ad-toggle-button-default-style";break;default:G=null}G!=null&&g.Gk(this.V,G)}G={};X.defaultText? (Q=g.q1(X.defaultText),g.lY(Q)||(G.buttonText=Q,this.api.Z().experiments.TT("a11y_h5_associate_survey_question")||this.N.setAttribute("aria-label",Q),this.api.Z().experiments.TT("fix_h5_toggle_button_a11y")&&this.W.setAttribute("aria-label",Q))):g.Rh(this.Mi,!1);X.defaultTooltip&&(G.tooltipText=X.defaultTooltip,this.N.hasAttribute("aria-label")||this.W.setAttribute("aria-label",X.defaultTooltip));X.defaultIcon?(Q=xC(X.defaultIcon),this.updateValue("untoggledIconTemplateSpec",Q),X.toggledIcon?(this.yH= !0,Q=xC(X.toggledIcon),this.updateValue("toggledIconTemplateSpec",Q)):(g.Rh(this.j,!0),g.Rh(this.S,!1)),g.Rh(this.N,!1)):g.Rh(this.W,!1);g.Mn(G)||this.update(G);X.isToggled&&(g.Gk(this.V,"ytp-ad-toggle-button-toggled"),this.toggleButton(X.isToggled));Ib(this);this.B(this.element,"change",this.eM);this.show()}}; g.P.onClick=function(G){this.DC.length>0&&(this.toggleButton(!this.isToggled()),this.eM());ZT.prototype.onClick.call(this,G)}; g.P.eM=function(){g.S_(this.V,"ytp-ad-toggle-button-toggled",this.isToggled());for(var G=g.e(dMV(this,this.isToggled())),X=G.next();!X.done;X=G.next())X=X.value,this.layoutId?this.Fm.executeCommand(X,this.layoutId):g.aU(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Ib(this)}; g.P.clear=function(){this.hide()}; g.P.toggleButton=function(G){g.S_(this.V,"ytp-ad-toggle-button-toggled",G);this.N.checked=G;Ib(this)}; g.P.isToggled=function(){return this.N.checked};g.T(dc,TJ);dc.prototype.C=function(G){if(Array.isArray(G)){G=g.e(G);for(var X=G.next();!X.done;X=G.next())X=X.value,X instanceof WXS&&this.Y(X)}};g.T(W5,ZT);g.P=W5.prototype;g.P.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);X.reasons?X.confirmLabel==null?g.aU(Error("AdFeedbackRenderer.confirmLabel was not set.")):(X.cancelLabel==null&&g.EL(Error("AdFeedbackRenderer.cancelLabel was not set.")),X.title==null&&g.EL(Error("AdFeedbackRenderer.title was not set.")),DMX(this,X)):g.aU(Error("AdFeedbackRenderer.reasons were not set."))}; g.P.clear=function(){ua(this.S);ua(this.j);this.V.length=0;this.hide()}; g.P.hide=function(){this.N&&this.N.hide();this.W&&this.W.hide();ZT.prototype.hide.call(this);this.Y&&this.Y.focus()}; g.P.show=function(){this.N&&this.N.show();this.W&&this.W.show();this.Y=document.activeElement;ZT.prototype.show.call(this);this.S.focus()}; g.P.ML=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.P.qTp=function(){this.hide()}; pD.prototype.V0=function(){return this.N.element}; pD.prototype.getCommand=function(){return this.W}; pD.prototype.isChecked=function(){return this.Y.checked};g.T(yJ,t4);yJ.prototype.YG=function(G){t4.prototype.YG.call(this,G);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; yJ.prototype.eE=function(G){t4.prototype.eE.call(this,G);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; yJ.prototype.VR=function(G){t4.prototype.VR.call(this,G);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.T(fD,ZT);g.P=fD.prototype; g.P.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);this.S=X;if(X.dialogMessage==null&&X.title==null)g.aU(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{X.confirmLabel==null&&g.EL(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(G=X.closeOverlayRenderer&&g.y(X.closeOverlayRenderer,g.Lv)||null)this.N=new Oz(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.d(this,this.N),this.N.init(v8("button"),G,this.macros),this.N.s_(this.element);X.title&&(G=g.q1(X.title),this.updateValue("title",G));if(X.adReasons)for(G=X.adReasons,Q=0;Q=this.IU?(this.yH.hide(),this.CO=!0,this.publish("i")):this.Y&&this.Y.isTemplated()&&(G=Math.max(0,Math.ceil((this.IU-G)/1E3)),G!=this.cM&&(A4(this.Y,{TIME_REMAINING:String(G)}),this.cM=G)))}};g.T(Go,nD);g.P=Go.prototype; g.P.init=function(G,X,Q){nD.prototype.init.call(this,G,X,Q);if(X.image&&X.image.thumbnail)if(X.headline)if(X.description)if((G=X.actionButton&&g.y(X.actionButton,g.Lv))&&G.navigationEndpoint){var R=this.api.getVideoData(2);if(R!=null)if(X.image&&X.image.thumbnail){var S=X.image.thumbnail.thumbnails;S!=null&&S.length>0&&g.lY(g.lA(S[0].url))&&(S[0].url=R.profilePicture)}else g.EL(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Y.init(v8("ad-image"),X.image,Q);this.S.init(v8("ad-text"), X.headline,Q);this.V.init(v8("ad-text"),X.description,Q);this.W.init(v8("button"),G,Q);Q=dv(this.W.element);Ir(this.W.element,Q+" This link opens in new tab");this.yH=G.navigationEndpoint;this.api.n_()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.Ox.bind(this));this.Mi=X.startMs||0;$C(this)}else g.aU(Error("FlyoutCtaRenderer has no valid action button."));else g.aU(Error("FlyoutCtaRenderer has no description AdText."));else g.aU(Error("FlyoutCtaRenderer has no headline AdText.")); else g.EL(Error("FlyoutCtaRenderer has no image."))}; g.P.onClick=function(G){nD.prototype.onClick.call(this,G);this.api.pauseVideo();!g.Ks(this.W.element,G.target)&&this.yH&&(this.layoutId?this.Fm.executeCommand(this.yH,this.layoutId):g.aU(Error("Missing layoutId for flyout cta.")))}; g.P.vO=function(){if(this.N){var G=this.N.getProgressState();(G&&G.current||this.IU)&&1E3*G.current>=this.Mi&&(b5(this),g.QD(this.element,"ytp-flyout-cta-inactive"),this.W.element.removeAttribute("tabIndex"))}}; g.P.lZ=function(){this.clear()}; g.P.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ox.bind(this))}; g.P.show=function(){this.W&&this.W.show();nD.prototype.show.call(this)}; g.P.hide=function(){this.W&&this.W.hide();nD.prototype.hide.call(this)}; g.P.Ox=function(G){G=="hidden"?this.show():this.hide()};g.T(Xw,ZT);g.P=Xw.prototype; g.P.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);this.N=X;if(this.N.rectangle)for(G=this.N.likeButton&&g.y(this.N.likeButton,Ph),X=this.N.dislikeButton&&g.y(this.N.dislikeButton,Ph),this.Y.init(v8("toggle-button"),G,Q),this.W.init(v8("toggle-button"),X,Q),this.B(this.element,"change",this.wu),this.V.show(100),this.show(),Q=g.e(this.N&&this.N.impressionCommands||[]),G=Q.next();!G.done;G=Q.next())G=G.value,this.layoutId?this.Fm.executeCommand(G,this.layoutId):g.aU(Error("Missing layoutId for instream user sentiment."))}; g.P.clear=function(){this.hide()}; g.P.hide=function(){this.Y.hide();this.W.hide();ZT.prototype.hide.call(this)}; g.P.show=function(){this.Y.show();this.W.show();ZT.prototype.show.call(this)}; g.P.wu=function(){rVC(this.element,"ytp-ad-instream-user-sentiment-selected");this.N.postMessageAction&&this.api.E_("onYtShowToast",this.N.postMessageAction);this.V.hide()}; g.P.onClick=function(G){this.DC.length>0&&this.wu();ZT.prototype.onClick.call(this,G)};g.T(Qu,g.I);g.P=Qu.prototype;g.P.zT=function(){this.reset();g.I.prototype.zT.call(this)}; g.P.reset=function(){g.e8(this.V);this.S=!1;this.N&&this.N.stop();this.C.stop();this.Y&&(this.Y=!1,this.J.play())}; g.P.start=function(){this.reset();this.V.B(this.W,"mouseover",this.Ex,this);this.V.B(this.W,"mouseout",this.XW,this);this.AT&&(this.V.B(this.W,"focusin",this.Ex,this),this.V.B(this.W,"focusout",this.XW,this));this.N?this.N.start():(this.S=this.Y=!0,g.DN(this.W,{opacity:this.j}))}; g.P.Ex=function(){this.Y&&(this.Y=!1,this.J.play());this.C.stop();this.N&&this.N.stop()}; g.P.XW=function(){this.S?this.C.start():this.N&&this.N.start()}; g.P.us=function(){this.Y||(this.Y=!0,this.T.play(),this.S=!0)};var R_U=[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),new R1("m.p_",!0,28),new R1("o.a_",!1),new R1("d.p_",!1),new R1("e.i_",!1)].reduce(function(G,X){G[X.W]= X;return G},{});g.T(kA,nD);g.P=kA.prototype; g.P.init=function(G,X,Q){nD.prototype.init.call(this,G,X,Q);this.yH=X;(this.Mi=ZlG(this))&&g.EL(Error("hasAdControlInClickCommands_ is true."));if(!X||g.Mn(X))g.aU(Error("SkipButtonRenderer was not specified or empty."));else if(!X.message||g.Mn(X.message))g.aU(Error("SkipButtonRenderer.message was not specified or empty."));else if(G=this.S?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},X=xC(G),X==null?g.aU(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+G.iconType+".")): (this.api.Z().G("disable_touch_events_on_skip_button")&&(X.L=Object.assign({},X.L,{"aria-hidden":"true",ODB:"false"})),this.Y=new g.Sa({D:"button",aU:[this.S?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],K:[{D:"span",X:this.S?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",K:[X]}]}),g.d(this,this.Y),this.Y.s_(this.V.element),this.W=new N1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,"ytp-ad-skip-button-text"),this.S&&this.W.element.classList.add("ytp-ad-skip-button-text-centered"), this.W.init(v8("ad-text"),this.yH.message,Q),g.d(this,this.W),sM(this.Y.element,this.W.element,0)),!this.api.Z().G("disable_touch_events_on_skip_button")){var R=R===void 0?null:R;Q=this.api.Z();!(this.DC.length>0)&&Q.W&&($M?0:"ontouchstart"in document.documentElement&&(JOC()||hv()))&&(this.Ds(this.KO),R&&this.Ds(R),this.DC=[this.B(this.element,"touchstart",this.onTouchStart,this),this.B(this.element,"touchmove",this.onTouchMove,this),this.B(this.element,"touchend",this.onTouchEnd,this)])}}; g.P.clear=function(){this.IU.reset();this.hide()}; g.P.hide=function(){this.V.hide();this.W&&this.W.hide();b5(this);nD.prototype.hide.call(this)}; g.P.onClick=function(G){if(this.Y!=null){if(G){var X=G||window.event;X.returnValue=!1;X.preventDefault&&X.preventDefault()}var Q;if(XIl(G,{contentCpn:((Q=this.api.getVideoData(1))==null?void 0:Q.clientPlaybackNonce)||""})===0)this.api.E_("onAbnormalityDetected");else if(nD.prototype.onClick.call(this,G),this.publish("j"),this.api.E_("onAdSkip"),this.CO||!this.Mi)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.P.oo=function(G){if(!this.CO)return this.Mi&&qQ("SkipButton click commands not pruned while ALC exist"),G;var X,Q=(X=g.y(G,g.YA))==null?void 0:X.commands;if(!Q)return G;G=[];for(X=0;X=this.S&&Hl0(this,!0)};g.T(MQ,Oz);MQ.prototype.init=function(G,X,Q){Oz.prototype.init.call(this,G,X,Q);G=!1;X.text!=null&&(G=g.q1(X.text),G=!g.lY(G));G?X.navigationEndpoint==null?g.EL(Error("No visit advertiser clickthrough provided in renderer,")):X.style!=="STYLE_UNKNOWN"?g.EL(Error("Button style was not a link-style type in renderer,")):this.show():g.EL(Error("No visit advertiser text was present in the renderer."))};g.T(mU,ZT); mU.prototype.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);G=X.text;g.lY(H5(G))?g.EL(Error("SimpleAdBadgeRenderer has invalid or empty text")):(G&&G.text&&(X=G.text,this.Y&&!this.W&&(X=this.api.Z(),X=G.text+" "+(X&&X.W?"\u2022":"\u00b7")),X={text:X,isTemplated:G.isTemplated},G.style&&(X.style=G.style),G.targetId&&(X.targetId=G.targetId),G=new N1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),G.init(v8("simple-ad-badge"),X,Q),G.s_(this.element),g.d(this,G)),this.show())}; mU.prototype.clear=function(){this.hide()};g.T(o1,Jf);g.T(uP,g.ic);g.P=uP.prototype;g.P.tM=function(){return this.durationMs}; g.P.stop=function(){this.N&&this.handler.Ds(this.N)}; g.P.o6=function(G){this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:G.current};this.publish("h")}; g.P.getProgressState=function(){return this.W}; g.P.OD=function(G){g.Lw(G,2)&&this.publish("g")};g.T(PV,g.ic);g.P=PV.prototype;g.P.tM=function(){return this.durationMs}; g.P.start=function(){this.N||(this.N=!0,this.timer.start())}; g.P.stop=function(){this.N&&(this.N=!1,this.timer.stop())}; g.P.o6=function(){this.uc+=100;var G=!1;this.uc>this.durationMs&&(this.uc=this.durationMs,this.timer.stop(),G=!0);this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.uc/1E3};this.publish("h");G&&this.publish("g")}; g.P.getProgressState=function(){return this.W};g.T(Kw,nD);g.P=Kw.prototype;g.P.init=function(G,X,Q){nD.prototype.init.call(this,G,X,Q);var R;if(X==null?0:(R=X.templatedCountdown)==null?0:R.templatedAdText){G=X.templatedCountdown.templatedAdText;if(!G.isTemplated){g.EL(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.W=new N1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);this.W.init(v8("ad-text"),G,{});this.W.s_(this.element);g.d(this,this.W)}this.show()}; g.P.clear=function(){this.hide()}; g.P.hide=function(){b5(this);nD.prototype.hide.call(this)}; g.P.lZ=function(){this.hide()}; g.P.vO=function(){if(this.N!=null){var G=this.N.getProgressState();if(G!=null&&G.current!=null&&this.W){var X=this.N instanceof uP?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:G.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.N instanceof PV?G.seekableEnd:this.api.getDuration(2,!1);G=G.current;var Q,R,S=((Q=this.api.getVideoData())==null?0:(R=Q.Yr)==null?0:R.call(Q))?Math.max(X-G,0):X-G;A4(this.W,{FORMATTED_AD_DURATION_REMAINING:String(g.sX(S)), TIME_REMAINING:String(Math.ceil(S))})}}}; g.P.show=function(){$C(this);nD.prototype.show.call(this)};g.T(ez,N1);ez.prototype.onClick=function(G){N1.prototype.onClick.call(this,G);this.api.onAdUxClicked(this.componentType)};g.T(a1,ZT);a1.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});if(G=X.content){g.ee(this.element,G);var Q,R;X=((Q=X.interaction)==null?void 0:(R=Q.accessibility)==null?void 0:R.label)||G;this.element.setAttribute("aria-label",X)}else g.aU(Error("AdSimpleAttributedString does not have text content"))}; a1.prototype.clear=function(){this.hide()}; a1.prototype.onClick=function(G){ZT.prototype.onClick.call(this,G)};g.T(EX,ZT); EX.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});(G=X.label)&&G.content&&!g.lY(G.content)?(this.adBadgeText.init(v8("ad-simple-attributed-string"),new rA(G)),(X=X.adPodIndex)&&X.content&&!g.lY(X.content)&&(this.N=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),this.N.s_(this.element),g.d(this,this.N),this.N.element.classList.add("ytp-ad-badge__pod-index"),this.N.init(v8("ad-simple-attributed-string"),new rA(X))),this.element.classList.add(this.W?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.aU(Error("No label is returned in AdBadgeViewModel."))}; EX.prototype.show=function(){this.adBadgeText.show();var G;(G=this.N)==null||G.show();ZT.prototype.show.call(this)}; EX.prototype.hide=function(){this.adBadgeText.hide();var G;(G=this.N)==null||G.hide();ZT.prototype.hide.call(this)};g.T(xA,ZT);xA.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});(G=X.adPodIndex)&&G.content&&!g.lY(G.content)&&(this.N=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),this.N.s_(this.element),g.d(this,this.N),this.N.init(v8("ad-simple-attributed-string"),new rA(G)),X.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()}; xA.prototype.show=function(){var G;(G=this.N)==null||G.show();ZT.prototype.show.call(this)}; xA.prototype.hide=function(){var G;(G=this.N)==null||G.hide();ZT.prototype.hide.call(this)};g.T(OX,ZT); OX.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});if(X!=null&&X.text){var Q;if(((Q=X.text)==null?0:Q.content)&&!g.lY(X.text.content)){this.N=new g.Sa({D:"div",X:"ytp-ad-disclosure-banner__text",WM:X.text.content});g.d(this,this.N);this.N.s_(this.element);var R,S;G=((R=X.interaction)==null?void 0:(S=R.accessibility)==null?void 0:S.label)||X.text.content;this.element.setAttribute("aria-label",G);var Z;if((Z=X.interaction)==null?0:Z.onTap)this.W=new g.Sa({D:"div",X:"ytp-ad-disclosure-banner__chevron",K:[g.kC()]}), g.d(this,this.W),this.W.s_(this.element),this.api.Z().G("enable_ad_disclosure_banner_a11y_fix")&&(tx(this.element),this.element.setAttribute("tabindex","0"));this.show()}}else g.aU(Error("No banner text found in AdDisclosureBanner."))}; OX.prototype.clear=function(){this.hide()};g.T(gA,g.Sa);gA.prototype.o6=function(){var G=this.W.getProgressState(),X=G.seekableEnd;this.api.getPresentingPlayerType()===2&&(X=this.Y?this.Y/1E3:G.seekableEnd);this.progressBar.style.width=cV(new zo(G.seekableStart,X),G.current,0)*100+"%"}; gA.prototype.onStateChange=function(){g.ZK(this.api.Z())||(this.api.getPresentingPlayerType()===2?this.N===-1&&(this.show(),this.N=this.W.subscribe("h",this.o6,this),this.o6()):this.N!==-1&&(this.hide(),this.W.Ed(this.N),this.N=-1))};g.T(UX,ZT); UX.prototype.init=function(G,X,Q,R){ZT.prototype.init.call(this,G,X,Q);if(X.skipOrPreviewRenderer){if(G=g.y(X.skipOrPreviewRenderer,Ba))Q=new jz(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.W,this.j),Q.s_(this.SA),Q.init(v8("skip-button"),G,this.macros),g.d(this,Q);if(G=g.y(X.skipOrPreviewRenderer,Ba))var S=G.skipOffsetMilliseconds}X.brandInteractionRenderer&&(G=X.brandInteractionRenderer.brandInteractionRenderer,Q=new Xw(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm), Q.s_(this.Mi),Q.init(v8("instream-user-sentiment"),G,this.macros),g.d(this,Q));if(G=g.y(X,W3n))if(G=g.y(G,W3n))Q=new Go(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.W,!!X.showWithoutLinkedMediaLayout),g.d(this,Q),Q.s_(this.S),Q.init(v8("flyout-cta"),G,this.macros);R=R&&R.videoAdDurationSeconds;X.adBadgeRenderer&&(Q=X.adBadgeRenderer,G=g.y(Q,WF),G!=null?(Q=new EX(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,!1),g.d(this,Q),Q.s_(this.N),Q.init(v8("ad-badge"), G,this.macros),this.Y=Q.element):(G=Q.simpleAdBadgeRenderer,G==null&&(G={text:{text:"Ad",isTemplated:!1}}),Q=new mU(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,!0),g.d(this,Q),Q.s_(this.N),Q.init(v8("simple-ad-badge"),G,this.macros)));X.adPodIndex&&(G=g.y(X.adPodIndex,viH),G!=null&&(Q=new xA(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,Q),Q.s_(this.N),Q.init(v8("ad-pod-index"),G)));X.adDurationRemaining&&!X.showWithoutLinkedMediaLayout&&(G=X.adDurationRemaining.adDurationRemainingRenderer, G==null&&(G={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),R=new Kw(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.W,R,!1),g.d(this,R),R.s_(this.N),R.init(v8("ad-duration-remaining"),G,this.macros));X.adInfoRenderer&&(R=g.y(X.adInfoRenderer,w_))&&(G=new DT(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.element,void 0,!1),g.d(this,G),this.Y!==null?this.N.insertBefore(G.element,this.Y.nextSibling):G.s_(this.N), G.init(v8("ad-info-hover-text-button"),R,this.macros));X.visitAdvertiserRenderer&&(G=g.y(X.visitAdvertiserRenderer,g.Lv))&&(Q=L$T(this)&&this.V?this.V:this.N)&&(R=new MQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,R),R.s_(Q),R.init(v8("visit-advertiser"),G,this.macros),tx(R.element),G=dv(R.element),Ir(R.element,G+" This link opens in new tab"));!(R=this.api.Z())||g.RI(R)||g.Jn(R)||R.controlsType!="3"&&!R.disableOrganicUi||(S=new gA(this.api,this.W,S,!1),S.s_(this.IU), g.d(this,S));X.adDisclosureBannerRenderer&&(X=g.y(X.adDisclosureBannerRenderer,bTv))&&(S=new OX(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),S.s_(this.yH),S.init(v8("ad-disclosure-banner"),X),g.d(this,S));this.api.Z().G("enable_updated_html5_player_focus_style")&&g.Gk(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; UX.prototype.clear=function(){this.hide()};g.Fw.prototype.flush=function(G,X){G=G===void 0?[]:G;X=X===void 0?!1:X;if(g.jg("enable_client_streamz_web")){G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())Q=bO0(Q.value),this.N&&EJ(Q,Hs,2,this.N),Q={serializedIncrementBatch:g.Oo(Q.Y())},g.QL("streamzIncremented",Q,{sendIsolatedPayload:X})}}; g.T(YeG,g.Fw);var lpT=new Map;Cw.prototype.set=function(G,X,Q){Q=Q!==void 0?Date.now()+Q:void 0;this.N.set(G,X,Q)}; Cw.prototype.get=function(G){return this.N.get(G)}; Cw.prototype.remove=function(G){this.N.remove(G)};var MUe=null;var WV=null,pw=null,yu=null,sqy=null;g.G3("yt.www.ads.eventcache.getLastCompanionData",function(){return WV}); g.G3("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.G3("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return pw}); g.G3("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return yu}); g.G3("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return sqy});var K$Z=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);fw.prototype.handleResponse=function(G,X){if(!X)throw Error("request needs to be passed into ConsistencyService");var Q,R;X=((Q=X.ZI.context)==null?void 0:(R=Q.request)==null?void 0:R.consistencyTokenJars)||[];var S;(G=(S=G.responseContext)==null?void 0:S.consistencyTokenJar)&&this.replace(X,G)}; fw.prototype.replace=function(G,X){G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())delete this.N[Q.value.encryptedTokenJarContents];r$7(this,X)};var L84=window.location.hostname.split(".").slice(-2).join("."),x1;NQ.getInstance=function(){x1=g.QH("yt.clientLocationService.instance");x1||(x1=new NQ,g.G3("yt.clientLocationService.instance",x1));return x1}; g.P=NQ.prototype; g.P.setLocationOnInnerTubeContext=function(G){G.client||(G.client={});if(this.N)G.client.locationInfo||(G.client.locationInfo={}),G.client.locationInfo.latitudeE7=Math.floor(this.N.coords.latitude*1E7),G.client.locationInfo.longitudeE7=Math.floor(this.N.coords.longitude*1E7),G.client.locationInfo.horizontalAccuracyMeters=Math.round(this.N.coords.accuracy),G.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Y||this.locationPlayabilityToken)G.client.locationPlayabilityToken=this.Y|| this.locationPlayabilityToken}; g.P.handleResponse=function(G){var X;G=(X=G.responseContext)==null?void 0:X.locationPlayabilityToken;G!==void 0&&(this.locationPlayabilityToken=G,this.N=void 0,g.WO("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Dg(this))&&this.localStorage.set("yt-location-playability-token",G,15552E3):g.z_("YT_CL",JSON.stringify({loctok:G}),15552E3,L84,!0))}; g.P.clearLocationPlayabilityToken=function(G){G==="TVHTML5"?(this.localStorage=Dg(this))&&this.localStorage.remove("yt-location-playability-token"):g.gp("YT_CL");this.Y=void 0;this.W!==-1&&(clearTimeout(this.W),this.W=-1)}; g.P.getCurrentPositionFromGeolocation=function(){var G=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var X=!1,Q=1E4;g.WO("INNERTUBE_CLIENT_NAME")==="MWEB"&&(X=!0,Q=15E3);return new Promise(function(R,S){navigator.geolocation.getCurrentPosition(function(Z){G.N=Z;R(Z)},function(Z){S(Z)},{enableHighAccuracy:X, maximumAge:0,timeout:Q})})}; g.P.createUnpluggedLocationInfo=function(G){var X={};G=G.coords;if(G==null?0:G.latitude)X.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)X.longitudeE7=Math.floor(G.longitude*1E7);if(G==null?0:G.accuracy)X.locationRadiusMeters=Math.round(G.accuracy);return X}; g.P.createLocationInfo=function(G){var X={};G=G.coords;if(G==null?0:G.latitude)X.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)X.longitudeE7=Math.floor(G.longitude*1E7);return X};g.P=z_V.prototype;g.P.contains=function(G){return Object.prototype.hasOwnProperty.call(this.N,G)}; g.P.get=function(G){if(this.contains(G))return this.N[G]}; g.P.set=function(G,X){this.N[G]=X}; g.P.iD=function(){return Object.keys(this.N)}; g.P.remove=function(G){delete this.N[G]};nw.prototype.getModuleId=function(G){return G.serviceId.getModuleId()}; nw.prototype.get=function(G){a:{var X=this.mappings.get(G.toString());switch(X.type){case "mapping":G=X.value;break a;case "factory":X=X.value();this.mappings.set(G.toString(),{type:"mapping",value:X});G=X;break a;default:G=Yi(X)}}return G}; nw.prototype.registerService=function(G,X){this.mappings.set(G.toString(),{type:"mapping",value:X});return G}; new nw;var Ok={},c$V=(Ok.WEB_UNPLUGGED="^unplugged/",Ok.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Ok.WEB_UNPLUGGED_OPS="^unplugged/",Ok.WEB_UNPLUGGED_PUBLIC="^unplugged/",Ok.WEB_CREATOR="^creator/",Ok.WEB_KIDS="^kids/",Ok.WEB_EXPERIMENTS="^experiments/",Ok.WEB_MUSIC="^music/",Ok.WEB_REMIX="^music/",Ok.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Ok.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Ok);vV.prototype.C=function(G,X,Q){X=X===void 0?{}:X;Q=Q===void 0?q4:Q;var R={context:g.Aw(G.clickTrackingParams,!1,this.V)};var S=this.W(G);if(S){this.N(R,S,X);var Z;X=g.bP(this.Y());(S=(Z=g.y(G.commandMetadata,g.ux))==null?void 0:Z.apiUrl)&&(X=S);Z=Ywe(Uh(X));G=Object.assign({},{command:G},void 0);R={input:Z,lq:lX(Z),ZI:R,config:G};R.config.OL?R.config.OL.identity=Q:R.config.OL={identity:Q};return R}Q=new g.Ic("Error: Failed to create Request from Command.",G);g.aU(Q)}; g.ZG.Object.defineProperties(vV.prototype,{V:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.T(Jw,vV);g.T(iP,Jw);iP.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",lq:lX("/getDatasyncIdsEndpoint","GET"),ZI:{}}}; iP.prototype.Y=function(){return[]}; iP.prototype.W=function(){}; iP.prototype.N=function(){};var kXn={},hI7=(kXn.GET_DATASYNC_IDS=$A(iP),kXn);var zx={},Yod=(zx["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",zx["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",zx["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",zx["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",zx["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",zx["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",zx["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", zx["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",zx["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",zx["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",zx["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",zx["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",zx["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",zx["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",zx["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", zx["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",zx["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",zx["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",zx["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",zx["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",zx["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",zx["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", zx["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",zx.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",zx["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",zx["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",zx["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",zx["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",zx["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",zx["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", zx["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",zx["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",zx["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",zx["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",zx["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",zx["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",zx["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",zx["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",zx["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",zx["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",zx.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",zx["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",zx["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",zx["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",zx["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",zx["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",zx["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",zx["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",zx["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",zx["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",zx["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",zx["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",zx["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",zx["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",zx["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",zx["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",zx["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",zx["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",zx["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",zx["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",zx["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",zx["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", zx["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",zx["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",zx["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",zx["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",zx["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",zx["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",zx["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",zx["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",zx["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", zx["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",zx["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",zx["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",zx["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",zx["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",zx["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",zx["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",zx["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", zx),ch={},tUS=(ch.auto_search="LATENCY_ACTION_AUTO_SEARCH",ch.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ch.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ch.app_startup="LATENCY_ACTION_APP_STARTUP",ch.browse="LATENCY_ACTION_BROWSE",ch.cast_splash="LATENCY_ACTION_CAST_SPLASH",ch.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ch.channels="LATENCY_ACTION_CHANNELS",ch.chips="LATENCY_ACTION_CHIPS",ch.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ch.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", ch.editor="LATENCY_ACTION_EDITOR",ch.embed="LATENCY_ACTION_EMBED",ch.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ch.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ch.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ch.explore="LATENCY_ACTION_EXPLORE",ch.favorites="LATENCY_ACTION_FAVORITES",ch.home="LATENCY_ACTION_HOME",ch.inboarding="LATENCY_ACTION_INBOARDING",ch.landing="LATENCY_ACTION_LANDING",ch.learning="LATENCY_ACTION_LEARNING", ch.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",ch.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",ch.library="LATENCY_ACTION_LIBRARY",ch.live="LATENCY_ACTION_LIVE",ch.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",ch.management="LATENCY_ACTION_MANAGEMENT",ch.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ch.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ch.onboarding="LATENCY_ACTION_ONBOARDING",ch.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", ch.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ch.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ch.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",ch.prebuffer="LATENCY_ACTION_PREBUFFER",ch.prefetch="LATENCY_ACTION_PREFETCH",ch.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ch.profile_switcher="LATENCY_ACTION_LOGIN",ch.projects="LATENCY_ACTION_PROJECTS",ch.reel_watch="LATENCY_ACTION_REEL_WATCH",ch.results="LATENCY_ACTION_RESULTS",ch.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", ch.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ch.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ch.review="LATENCY_ACTION_REVIEW",ch.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",ch.search_ui="LATENCY_ACTION_SEARCH_UI",ch.search_suggest="LATENCY_ACTION_SUGGEST",ch.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ch.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ch.seek="LATENCY_ACTION_PLAYER_SEEK",ch.settings="LATENCY_ACTION_SETTINGS",ch.store="LATENCY_ACTION_STORE", ch.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ch.tenx="LATENCY_ACTION_TENX",ch.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ch.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",ch.watch="LATENCY_ACTION_WATCH",ch.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ch["watch,watch7"]="LATENCY_ACTION_WATCH",ch["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ch["watch,watch7ad"]="LATENCY_ACTION_WATCH",ch["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ch.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", ch.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ch.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ch.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ch.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",ch.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ch.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ch.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ch);Object.assign(tUS,Yod);g.T(wz,wW);var v_G=new hs("aft-recorded",wz);var jhk=g.i7.ytLoggingGelSequenceIdObj_||{};g.G3("ytLoggingGelSequenceIdObj_",jhk);var k5=g.i7.ytLoggingLatencyUsageStats_||{};g.G3("ytLoggingLatencyUsageStats_",k5);hd.prototype.tick=function(G,X,Q,R){Y5(this,"tick_"+G+"_"+X)||g.QL("latencyActionTicked",{tickName:G,clientActionNonce:X},{timestamp:Q,cttAuthInfo:R})}; hd.prototype.info=function(G,X,Q){var R=Object.keys(G).join("");Y5(this,"info_"+R+"_"+X)||(G=Object.assign({},G),G.clientActionNonce=X,g.QL("latencyActionInfo",G,{cttAuthInfo:Q}))}; hd.prototype.jspbInfo=function(G,X,Q){for(var R="",S=0;S=S.length?(X.append(S),G-=S.length):G?(X.append(new Uint8Array(S.buffer,S.byteOffset,G)),Q.append(new Uint8Array(S.buffer,S.byteOffset+G,S.length-G)),G=0):Q.append(S);return{JM:X,JC:Q}}; Qk.prototype.isFocused=function(G){return G>=this.Y&&G=64&&(this.S.set(G.subarray(0,64-this.W),this.W),X=64-this.W,this.W=0,GYG(this,this.S,0));for(;X+64<=Q;X+=64)GYG(this,G,X);X=this.start&&(G=2&&Q.ssdaiAdsConfig&&qQ("Unexpected ad placement renderers length",G.slot,null,{length:R.length});var S;((S=Q.adSlots)==null?0:S.some(function(Z){var H,w;return((H=g.y(Z,jc))==null?void 0:(w=H.adSlotMetadata)==null?void 0:w.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||R.some(function(Z){var H,w,h,L; return!!((H=Z.renderer)==null?0:(w=H.linearAdSequenceRenderer)==null?0:(h=w.linearAds)==null?0:h.length)||!((L=Z.renderer)==null||!L.instreamVideoAdRenderer)})||rf7(G)})}; Ak.prototype.Cy=function(){w80(this.N)};n6.prototype.A7=function(){var G=this;qLC(this.W,function(){var X=Nj(G.slot.clientMetadata,"metadata_type_ad_break_request_data");return X.cueProcessedMs?G.N.get().fetch({z9:X.getAdBreakUrl,WJ:new g.yG(X.HX,X.zI),cueProcessedMs:X.cueProcessedMs}):G.N.get().fetch({z9:X.getAdBreakUrl,WJ:new g.yG(X.HX,X.zI)})})}; n6.prototype.Cy=function(){w80(this.W)};$U.prototype.A7=function(){var G=this.slot.clientMetadata,X,Q=(X=this.slot.fulfilledLayout)!=null?X:Nj(G,"metadata_type_fulfilled_layout");W5G(this.callback,this.slot,Q)}; $U.prototype.Cy=function(){Zy(this.callback,this.slot,new n("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")};vZ.prototype.build=function(G,X){return X.fulfilledLayout||bT(X,{fY:["metadata_type_fulfilled_layout"]})?new $U(G,X):this.Y(G,X)};g.T(Jk,vZ); Jk.prototype.Y=function(G,X){if(bT(X,{fY:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Ak(G,X,this.N,this.W,this.ge,this.HM,this.nO,this.RU,this.Nx);if(bT(X,{fY:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new n6(G,X,this.N,this.W,this.ge,this.HM);throw new n("Unsupported slot with type: "+X.slotType+" and client metadata: "+Ar(X.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.T(iT,vZ);iT.prototype.Y=function(G,X){throw new n("Unsupported slot with type: "+X.slotType+" and client metadata: "+Ar(X.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.P=ac0.prototype;g.P.Ga=function(){return this.slot}; g.P.iB=function(){return this.layout}; g.P.init=function(){}; g.P.release=function(){}; g.P.startRendering=function(G){if(G.layoutId!==this.layout.layoutId)this.callback.jx(this.slot,G,new f$("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 X=Nj(G.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.X7(this.slot,G),IsX(this.Y, this.slot,X)):qQ("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,G)}}; g.P.LY=function(G,X){G.layoutId!==this.layout.layoutId?this.callback.jx(this.slot,G,new f$("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.YS(this.slot,G,X),xDl(this),Ope(this))};g.T(SQ,g.ic);g.P=SQ.prototype;g.P.Ga=function(){return this.W.slot}; g.P.iB=function(){return this.W.layout}; g.P.init=function(){this.Y.get().addListener(this)}; g.P.release=function(){this.Y.get().removeListener(this);this.dispose()}; g.P.CT=function(){}; g.P.v3=function(){}; g.P.Sy=function(){}; g.P.CR=function(){}; g.P.startRendering=function(G){var X=this;RQ(this.W,G,function(){return void X.C0()})}; g.P.C0=function(){this.Y.get().C0(this.N)}; g.P.LY=function(G,X){var Q=this;RQ(this.W,G,function(){var R=Q.Y.get();TXk(R,Q.N,3);Q.N=[];Q.callback.YS(Q.slot,G,X)})}; g.P.zT=function(){this.Y.U_()||this.Y.get().removeListener(this);g.ic.prototype.zT.call(this)}; g.ZG.Object.defineProperties(SQ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.W.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.W.layout}}});Yy.prototype.XA=function(G,X){X=X===void 0?!1:X;var Q=(this.Y.get(G)||[]).concat();if(X=X&&UDT(G)){var R=this.Y.get(X);R&&Q.push.apply(Q,g.o0(R))}mM(this,G,Q);this.N.add(G);X&&this.N.add(X)}; Yy.prototype.i6=function(G,X){X=X===void 0?!1:X;if(!this.N.has(G)){var Q=X&&UDT(G);Q&&(X=!this.N.has(Q));this.XA(G,X)}};g.T(Fe7,Jf);g.T(T5,SQ);g.P=T5.prototype;g.P.AE=function(G,X){wN("ads-engagement-panel-layout",G,this.S.get().d$,this.nO.get(),this.V,this.C,this.Ga(),this.iB(),X)}; g.P.startRendering=function(G){HK(this.O_,this.Ga(),this.iB(),g.y(this.iB().renderingContent,WE),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(X,Q,R,S,Z){return new Fe7(X,Q,R,S,Z)},this.N); SQ.prototype.startRendering.call(this,G)}; g.P.X7=function(G,X){this.C===X.layoutId&&(this.V===null?this.V=this.nO.get().Ao():qQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.zT=function(){Re(this.K7(),this);SQ.prototype.zT.call(this)};g.T(tkG,Jf);g.T(K9,SQ);g.P=K9.prototype;g.P.AE=function(G,X){wN("banner-image",G,this.S.get().d$,this.nO.get(),this.V,this.C,this.Ga(),this.iB(),X)}; g.P.startRendering=function(G){HK(this.O_,this.Ga(),this.iB(),g.y(this.iB().renderingContent,Iw),this.callback,"metadata_type_banner_image_layout_view_model",function(X,Q,R,S,Z){return new tkG(X,Q,R,S,Z)},this.N); SQ.prototype.startRendering.call(this,G)}; g.P.X7=function(G,X){this.C===X.layoutId&&(this.V===null?this.V=this.nO.get().Ao():qQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.zT=function(){Re(this.K7(),this);SQ.prototype.zT.call(this)};g.T(eQ,Jf);g.T(rN,SQ);g.P=rN.prototype;g.P.AE=function(G,X){wN("action-companion",G,this.S.get().d$,this.nO.get(),this.V,this.C,this.Ga(),this.iB(),X)}; g.P.startRendering=function(G){HK(this.O_,this.Ga(),this.iB(),g.y(this.iB().renderingContent,CN),this.callback,"metadata_type_action_companion_ad_renderer",function(X,Q,R,S,Z){return new eQ(X,Q,R,S,Z)},this.N); SQ.prototype.startRendering.call(this,G)}; g.P.X7=function(G,X){X.layoutId===this.layout.layoutId?this.O_.i6("impression"):this.C===X.layoutId&&(this.V===null?this.V=this.nO.get().Ao():qQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.zT=function(){Re(this.K7(),this);SQ.prototype.zT.call(this)};g.T(dDi,Jf);g.T(aQ,SQ);g.P=aQ.prototype;g.P.AE=function(G,X){wN("image-companion",G,this.S.get().d$,this.nO.get(),this.V,this.C,this.Ga(),this.iB(),X)}; g.P.startRendering=function(G){HK(this.O_,this.Ga(),this.iB(),g.y(this.iB().renderingContent,tp),this.callback,"metadata_type_image_companion_ad_renderer",function(X,Q,R,S,Z){return new dDi(X,Q,R,S,Z)},this.N); SQ.prototype.startRendering.call(this,G)}; g.P.X7=function(G,X){X.layoutId===this.layout.layoutId?this.O_.i6("impression"):this.C===X.layoutId&&(this.V===null?this.V=this.nO.get().Ao():qQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.zT=function(){Re(this.K7(),this);SQ.prototype.zT.call(this)};g.T(p8C,Jf);g.T(E0,SQ);g.P=E0.prototype;g.P.AE=function(G,X){wN("shopping-companion",G,this.S.get().d$,this.nO.get(),this.V,this.C,this.Ga(),this.iB(),X)}; g.P.startRendering=function(G){HK(this.O_,this.Ga(),this.iB(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(X,Q,R,S,Z){return new p8C(X,Q,R,S,Z)},this.N); SQ.prototype.startRendering.call(this,G)}; g.P.X7=function(G,X){X.layoutId===this.layout.layoutId?this.O_.i6("impression"):this.C===X.layoutId&&(this.V===null?this.V=this.nO.get().Ao():qQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.zT=function(){Re(this.K7(),this);SQ.prototype.zT.call(this)};g.T(z5,SQ);g.P=z5.prototype;g.P.startRendering=function(G){HK(this.O_,this.Ga(),this.iB(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(X,Q,R,S,Z){return new eQ(X,Q,R,S,Z)},this.N); SQ.prototype.startRendering.call(this,G)}; g.P.X7=function(){}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.zT=function(){Re(this.K7(),this);SQ.prototype.zT.call(this)}; g.P.AE=function(){};g.P=nB0.prototype;g.P.Ga=function(){return this.slot}; g.P.iB=function(){return this.layout}; g.P.init=function(){this.RU.get().addListener(this);this.RU.get().Oy.push(this);var G=Nj(this.layout.clientMetadata,"metadata_type_video_length_seconds"),X=Nj(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");hF(this.layout.u6)&&bf(this.y0.get(),this.layout.layoutId,{Z8:X,TL:G,listener:this})}; g.P.release=function(){this.RU.get().removeListener(this);meZ(this.RU.get(),this);hF(this.layout.u6)&&v0(this.y0.get(),this.layout.layoutId)}; g.P.startRendering=function(G){this.callback.X7(this.slot,G)}; g.P.LY=function(G,X){I7T(this.HM.get())&&!this.N&&(this.O_.i6("abandon"),this.N=!0);this.callback.YS(this.slot,G,X)}; g.P.Q1=function(G){switch(G.id){case "part2viewed":this.O_.i6("start");this.O_.i6("impression");break;case "videoplaytime25":this.O_.i6("first_quartile");break;case "videoplaytime50":this.O_.i6("midpoint");break;case "videoplaytime75":this.O_.i6("third_quartile");break;case "videoplaytime100":I7T(this.HM.get())?this.N||(this.O_.i6("complete"),this.N=!0):this.O_.i6("complete");s0(this.O_)&&uS(this.O_,Infinity,!0);dXU(this.HM.get())&&O0(this.W,Infinity,!0);break;case "engagedview":s0(this.O_)||this.O_.i6("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:qQ("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.P.onVolumeChange=function(){}; g.P.mB=function(){}; g.P.Dk=function(){}; g.P.lc=function(){}; g.P.onFullscreenToggled=function(){}; g.P.Gg=function(){}; g.P.Sc=function(){}; g.P.xG=function(G){dXU(this.HM.get())&&O0(this.W,G*1E3,!1);s0(this.O_)&&uS(this.O_,G*1E3,!1)}; g.P.qa=function(){}; g.P.CV=function(){this.O_.i6("active_view_measurable")}; g.P.qI=function(){this.O_.i6("active_view_viewable")}; g.P.lj=function(){this.O_.i6("active_view_fully_viewable_audible_half_duration")}; g.P.v9=function(){this.O_.i6("audio_measurable")}; g.P.SZ=function(){this.O_.i6("audio_audible")};g.T(cK,SQ);g.P=cK.prototype;g.P.init=function(){SQ.prototype.init.call(this);var G=Nj(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X={adsClientData:this.layout.UM};this.N.push(new o1(G,this.layout.layoutId,Nj(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),X,!0))}; g.P.Wf=function(){this.V||this.RU.get().resumeVideo(1)}; g.P.startRendering=function(G){SQ.prototype.startRendering.call(this,G);HF(this.RU.get(),"ad-showing");this.callback.X7(this.slot,G);this.C.md=this}; g.P.LY=function(G,X){SQ.prototype.LY.call(this,G,X);qR(this.RU.get(),"ad-showing");Da(this.C,this)}; g.P.AE=function(G){switch(G){case "ad-info-icon-button":(this.V=this.RU.get().cD(1))||this.RU.get().pauseVideo();break;case "visit-advertiser":this.RU.get().pauseVideo()}}; g.P.zT=function(){SQ.prototype.zT.call(this)};g.T(gN,Jf);g.T(U0,SQ);g.P=U0.prototype;g.P.startRendering=function(G){HK(this.O_,this.Ga(),this.iB(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(X,Q,R,S,Z){return new gN(X,Q,R,S,Z)},this.N); SQ.prototype.startRendering.call(this,G)}; g.P.X7=function(){}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.zT=function(){Re(this.K7(),this);SQ.prototype.zT.call(this)}; g.P.AE=function(){};g.T(lS,Jf);g.T(BK,SQ);BK.prototype.init=function(){SQ.prototype.init.call(this);this.N.push(new lS(g.y(this.layout.renderingContent,QO),this.layout.layoutId,{adsClientData:this.layout.UM}))}; BK.prototype.AE=function(){ZM(this.V.get(),this.C)&&qU(this.nO.get(),3)}; BK.prototype.startRendering=function(G){SQ.prototype.startRendering.call(this,G);this.callback.X7(this.slot,G)}; BK.prototype.zT=function(){SQ.prototype.zT.call(this)};g.T(FT,Jf);g.T(C9,SQ);C9.prototype.init=function(){SQ.prototype.init.call(this);var G=g.y(this.layout.renderingContent,$y)||Nj(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),X=ZX(this.O_);this.N.push(new FT(G,X,this.layout.layoutId,{adsClientData:this.layout.UM},!0,!0))}; C9.prototype.startRendering=function(G){SQ.prototype.startRendering.call(this,G);this.callback.X7(this.slot,G)}; C9.prototype.AE=function(G,X){if(X===this.layout.layoutId)switch(G){case "skip-button":var Q;(G=(Q=Nj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&G.b1(this.Ga(),this.layout)}}; C9.prototype.zT=function(){SQ.prototype.zT.call(this)};VM.prototype.build=function(G,X,Q,R){if(tF(R,{fY:["metadata_type_ad_break_response_data"],OT:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new ac0(G,Q,R,this.W,this.Y,this.N);throw new f$("Unsupported layout with type: "+R.layoutType+" and client metadata: "+Ar(R.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.T(vBT,Jf);g.T(IQ,SQ);g.P=IQ.prototype;g.P.AE=function(G,X){wN("ads-engagement-panel",G,this.S.get().d$,this.nO.get(),this.V,this.C,this.Ga(),this.iB(),X)}; g.P.startRendering=function(G){HK(this.O_,this.Ga(),this.iB(),g.y(this.iB().renderingContent,Vh),this.callback,"metadata_type_ads_engagement_panel_renderer",function(X,Q,R,S,Z){return new vBT(X,Q,R,S,Z)},this.N); SQ.prototype.startRendering.call(this,G)}; g.P.X7=function(G,X){X.layoutId===this.layout.layoutId?this.O_.i6("impression"):this.C===X.layoutId&&(this.V===null?this.V=this.nO.get().Ao():qQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.zT=function(){Re(this.K7(),this);SQ.prototype.zT.call(this)};g.T(dN,SQ);g.P=dN.prototype;g.P.AE=function(G,X){wN("top-banner-image-text-icon-buttoned",G,this.S.get().d$,this.nO.get(),this.V,this.C,this.Ga(),this.iB(),X)}; g.P.startRendering=function(G){HK(this.O_,this.Ga(),this.iB(),g.y(this.iB().renderingContent,dk),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(X,Q,R,S,Z){return new gN(X,Q,R,S,Z)},this.N); SQ.prototype.startRendering.call(this,G)}; g.P.X7=function(G,X){this.C===X.layoutId&&(this.V===null?this.V=this.nO.get().Ao():qQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.zT=function(){Re(this.K7(),this);SQ.prototype.zT.call(this)};GDi.prototype.build=function(G,X,Q,R){if(tF(R,Jfi())||g.y(R.renderingContent,Vh)!==void 0)return new IQ(G,Q,R,this.rh,this.nO,this.K7,this.y0,this.N);if(tF(R,IcG())||g.y(R.renderingContent,CN)!==void 0)return new rN(G,Q,R,this.rh,this.nO,this.K7,this.y0,this.N);if(tF(R,WeG())||g.y(R.renderingContent,tp)!==void 0)return new aQ(G,Q,R,this.rh,this.nO,this.K7,this.y0,this.N);if(tF(R,yfV()))return new E0(G,Q,R,this.rh,this.nO,this.K7,this.y0,this.N);if(tF(R,Afw()))return new z5(G,Q,R,this.rh,this.nO,this.K7, this.y0,this.N);if(tF(R,VkC())||g.y(R.renderingContent,Iw)!==void 0)return new K9(G,Q,R,this.rh,this.nO,this.K7,this.y0,this.N);if(tF(R,ipX())||g.y(R.renderingContent,dk)!==void 0)return new dN(G,Q,R,this.rh,this.nO,this.K7,this.y0,this.N);if(tF(R,$DG()))return new U0(G,Q,R,this.rh,this.nO,this.K7,this.y0,this.N);if(tF(R,CcS())||g.y(R.renderingContent,WE)!==void 0)return new T5(G,Q,R,this.rh,this.nO,this.K7,this.y0,this.N);throw new f$("Unsupported layout with type: "+R.layoutType+" and client metadata: "+ Ar(R.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};X5S.prototype.build=function(G,X,Q,R){if(tF(R,{fY:["metadata_type_linked_player_bytes_layout_id"],OT:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new BK(G,Q,R,this.rh,this.nO,this.N);throw new f$("Unsupported layout with type: "+R.layoutType+" and client metadata: "+Ar(R.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.P=QbC.prototype;g.P.Ga=function(){return this.slot}; g.P.iB=function(){return this.layout}; g.P.init=function(){}; g.P.release=function(){}; g.P.startRendering=function(G){G.layoutId!==this.layout.layoutId?this.callback.jx(this.slot,G,new f$("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.X7(this.slot,G),this.O_.i6("impression"),sd(this.vK,G,"normal"))}; g.P.LY=function(G,X){G.layoutId!==this.layout.layoutId?this.callback.jx(this.slot,G,new f$("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.YS(this.slot,G,X)};g.P=SzU.prototype;g.P.Ga=function(){return this.slot}; g.P.iB=function(){return this.layout}; g.P.init=function(){}; g.P.release=function(){}; g.P.startRendering=function(G){G.layoutId!==this.layout.layoutId?this.callback.jx(this.slot,G,new f$("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.X7(this.slot,G),this.O_.i6("impression"),sd(this.vK,G,"normal"))}; g.P.LY=function(G,X){G.layoutId!==this.layout.layoutId?this.callback.jx(this.slot,G,new f$("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.YS(this.slot,G,X)};WK.prototype.build=function(G,X,Q,R){if(!this.HM.get().U.Z().G("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(tF(R,R7y()))return new QbC(G,Q,R,this.nO,this.vK)}else if(tF(R,{fY:[],OT:["LAYOUT_TYPE_FORECASTING"]}))return new SzU(G,Q,R,this.nO,this.vK);throw new f$("Unsupported layout with type: "+R.layoutType+" and client metadata: "+Ar(R.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.T(qzS,Jf);g.T(p9,SQ);g.P=p9.prototype;g.P.init=function(){SQ.prototype.init.call(this);var G=g.y(this.layout.renderingContent,n9)||Nj(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),X={adsClientData:this.layout.UM};this.N.push(new qzS(G,Nj(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,X))}; g.P.Wf=function(){this.V||this.RU.get().resumeVideo(2)}; g.P.startRendering=function(G){SQ.prototype.startRendering.call(this,G);this.callback.X7(this.slot,G);this.C.md=this}; g.P.LY=function(G,X){SQ.prototype.LY.call(this,G,X);Da(this.C,this)}; g.P.AE=function(G,X){if(!Fd(this.HM.get(),"stop_handling_click_for_non_rendering_overlay_layout")||X===this.layout.layoutId){if(ZM(this.S.get(),this.J))switch(G){case "visit-advertiser-link":qU(this.nO.get(),3)}switch(G){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.V||this.RU.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.V=this.RU.get().cD(2))||this.RU.get().pauseVideo();break; case "visit-advertiser-link":this.RU.get().pauseVideo();w5w(this).bI();break;case "skip-button":if(G=w5w(this),this.layout.renderingContent&&!Wc(this.layout.clientMetadata,"metadata_type_dai")||!G||!G.gD){var Q;(G=(Q=Nj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&G.b1(this.Ga(),this.layout)}else qQ("Requesting to skip by LegacyPlayerBytes when components enabled"),G.eZ(this.Ga(),this.layout)}}}; g.P.zT=function(){SQ.prototype.zT.call(this)};g.T(yM,SQ);g.P=yM.prototype;g.P.init=function(){SQ.prototype.init.call(this);var G=g.y(this.layout.renderingContent,AF)||Nj(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X={adsClientData:this.layout.UM},Q;(Q=!!this.layout.renderingContent)||(Q=f9(this),Q=!(Q&&Q.gD));this.N.push(new o1(G,this.layout.layoutId,Nj(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),X,Q))}; g.P.Wf=function(){this.V||this.RU.get().resumeVideo(2)}; g.P.startRendering=function(G){SQ.prototype.startRendering.call(this,G);this.callback.X7(this.slot,G);this.C.md=this}; g.P.LY=function(G,X){SQ.prototype.LY.call(this,G,X);Da(this.C,this)}; g.P.AE=function(G,X){if(!this.HM||!Fd(this.HM.get(),"stop_handling_click_for_non_rendering_overlay_layout")||X===this.layout.layoutId){if(ZM(this.S.get(),this.J))switch(G){case "visit-advertiser":qU(this.nO.get(),3)}switch(G){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.V||this.RU.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.V=this.RU.get().cD(2))||this.RU.get().pauseVideo();break; case "visit-advertiser":this.RU.get().pauseVideo();f9(this).bI();break;case "skip-button":if(G=f9(this),this.layout.renderingContent&&!Wc(this.layout.clientMetadata,"metadata_type_dai")||!G||!G.gD){var Q;(G=(Q=Nj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&G.b1(this.Ga(),this.layout)}else qQ("Requesting to skip by LegacyPlayerBytes"),G.eZ(this.Ga(),this.layout)}}}; g.P.zT=function(){SQ.prototype.zT.call(this)};g.T(LJU,Jf);g.T(DX,SQ);g.P=DX.prototype;g.P.startRendering=function(G){var X=this;RQ(this.W,G,function(){X.N.push(new LJU(Nj(X.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),G.layoutId,G.UM));X.C0();X.callback.X7(X.slot,G);g.N($9(X.RU.get(),1),512)&&X.callback.jx(X.Ga(),X.iB(),new f$("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.P.Sc=function(){}; g.P.Gg=function(G){if(G.state.isError()){var X;this.callback.jx(this.Ga(),this.iB(),new f$("A player error happened during adNotify",{playerErrorCode:(X=G.state.qG)==null?void 0:X.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.P.onFullscreenToggled=function(){}; g.P.Dk=function(){}; g.P.lc=function(){}; g.P.mB=function(){}; g.P.onVolumeChange=function(){}; g.P.Q1=function(){}; g.P.qa=function(){}; g.P.AE=function(){};g.T(Yze,Jf);g.T(NU,SQ);NU.prototype.init=function(){SQ.prototype.init.call(this);var G=g.y(this.layout.renderingContent,bS),X=ZX(this.O_);this.N.push(new Yze(G,X,this.layout.layoutId,{adsClientData:this.layout.UM}))}; NU.prototype.startRendering=function(G){SQ.prototype.startRendering.call(this,G);this.callback.X7(this.slot,G)}; NU.prototype.AE=function(G,X){if(X===this.layout.layoutId)switch(G){case "skip-button":var Q;(G=(Q=Nj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&G.b1(this.Ga(),this.layout)}}; NU.prototype.zT=function(){SQ.prototype.zT.call(this)};jbT.prototype.build=function(G,X,Q,R){if(G=vK(G,Q,R,this.rh,this.RU,this.nO,this.W,this.N,this.HM))return G;throw new f$("Unsupported layout with type: "+R.layoutType+" and client metadata: "+Ar(R.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.P=Gg.prototype;g.P.Ga=function(){return this.slot}; g.P.iB=function(){return this.layout}; g.P.init=function(){this.RU.get().addListener(this);this.RU.get().Oy.push(this);if(this.layout.renderingContent){var G=this.lB.get();G=Dt(G,1).Wg/1E3}else G=Nj(this.layout.clientMetadata,"metadata_type_video_length_seconds");var X=g.y(this.layout.renderingContent,i1),Q=X?L9(X.pings):Nj(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X=X?gBX(X.pings):Nj(this.layout.clientMetadata,"metadata_type_active_view_identifier");hF(this.layout.u6)&&bf(this.y0.get(),this.layout.layoutId, {Z8:Q,TL:G,listener:this,AA:X})}; g.P.release=function(){this.RU.get().removeListener(this);meZ(this.RU.get(),this);hF(this.layout.u6)&&v0(this.y0.get(),this.layout.layoutId)}; g.P.startRendering=function(G){this.callback.X7(this.slot,G)}; g.P.LY=function(G,X){XZ(this,"abandon");this.callback.YS(this.slot,G,X)}; g.P.Q1=function(G){switch(G.id){case "part2viewed":this.O_.i6("start");this.O_.i6("impression");break;case "videoplaytime25":this.O_.i6("first_quartile");break;case "videoplaytime50":this.O_.i6("midpoint");break;case "videoplaytime75":this.O_.i6("third_quartile");break;case "videoplaytime100":XZ(this,"complete");s0(this.O_)&&uS(this.O_,Infinity,!0);break;case "engagedview":s0(this.O_)||this.O_.i6("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:qQ("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.P.onVolumeChange=function(){}; g.P.mB=function(){}; g.P.Dk=function(){}; g.P.lc=function(){}; g.P.onFullscreenToggled=function(){}; g.P.Gg=function(G){this.N||(g.Lw(G,4)&&!g.Lw(G,2)?oQ(this.O_,"pause"):hw(G,4)<0&&!(hw(G,2)<0)&&oQ(this.O_,"resume"))}; g.P.Sc=function(){}; g.P.xG=function(G){s0(this.O_)&&uS(this.O_,G*1E3,!1)}; g.P.qa=function(){XZ(this,"swipe")}; g.P.CV=function(){this.O_.i6("active_view_measurable")}; g.P.qI=function(){this.O_.i6("active_view_viewable")}; g.P.lj=function(){this.O_.i6("active_view_fully_viewable_audible_half_duration")}; g.P.v9=function(){this.O_.i6("audio_measurable")}; g.P.SZ=function(){this.O_.i6("audio_audible")};MaC.prototype.build=function(G,X,Q,R){if(Q.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.y(R.renderingContent,i1)!==void 0)return new Gg(G,Q,R,this.RU,this.nO,this.HM,this.y0,this.lB);X=["metadata_type_ad_placement_config"];for(var S=g.e(jQ()),Z=S.next();!Z.done;Z=S.next())X.push(Z.value);if(tF(R,{fY:X,OT:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return Q.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Gg(G,Q,R,this.RU,this.nO,this.HM,this.y0,this.lB):new nB0(G,Q,R,this.RU,this.nO, this.RW,this.HM,this.y0);throw new f$("Unsupported layout with type: "+R.layoutType+" and client metadata: "+Ar(R.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var ZP={contentCpn:"",GE:new Map};aTT.prototype.Ws=function(G,X){var Q={};X=Object.assign({},X,(Q.cc=this.bL.WO(),Q));this.bL.U.Ni(G,X)};var B14,Fn; B14={N2p:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",GRU:"AUTHENTICATION_MALFORMED",kRp:"AUTHENTICATION_MISSING",cRT:"BAD_REQUEST",T2b:"CAST_SESSION_DEVICE_MISMATCHED",LBA:"CAST_SESSION_VIDEO_MISMATCHED",muU:"CAST_TOKEN_EXPIRED",Zvm:"CAST_TOKEN_FAILED",KBd:"CAST_TOKEN_MALFORMED",j$B:"CGI_PARAMS_MALFORMED",bvH:"CGI_PARAMS_MISSING",nU_:"DEVICE_FALLBACK",maA:"GENERIC_WITH_LINK_AND_CPN",Z2_:"ERROR_HDCP",K7i:"LICENSE",b2T:"VIDEO_UNAVAILABLE",usp:"FORMAT_UNAVAILABLE",zrm:"GEO_FAILURE", SRO:"HTML5_AUDIO_RENDERER_ERROR",vg_:"GENERIC_WITHOUT_LINK",l1c:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",C8T:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",qRb:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",P8_:"HTML5_SPS_UMP_STATUS_REJECTED",XiT:"INVALID_DRM_MESSAGE",CZm:"PURCHASE_NOT_FOUND",qjm:"PURCHASE_REFUNDED",eoC:"RENTAL_EXPIRED",TtT:"RETRYABLE_ERROR",gwA:"SERVER_ERROR",HjT:"SIGNATURE_EXPIRED",s4O:"STOPPED_BY_ANOTHER_PLAYBACK",DXc:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",RJU:"STREAMING_NOT_ALLOWED", aOC:"STREAM_LICENSE_NOT_FOUND",lOd:"TOO_MANY_REQUESTS",CAT:"TOO_MANY_REQUESTS_WITH_LINK",quH:"TOO_MANY_STREAMS_PER_ENTITLEMENT",PAd:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",r8O:"VIDEO_FORBIDDEN",dhM:"VIDEO_NOT_FOUND",XKc:"BROWSER_OR_EXTENSION_ERROR"};Fn={}; g.dQ=(Fn.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",Fn.DEVICE_FALLBACK="Sorry, this video is not available on this device.",Fn.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",Fn.LICENSE="Sorry, there was an error licensing this video.",Fn.VIDEO_UNAVAILABLE= "Video unavailable",Fn.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",Fn.GEO_FAILURE="This video isn't available in your country.",Fn.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",Fn.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",Fn.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",Fn.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", Fn.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",Fn.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",Fn.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",Fn.PURCHASE_NOT_FOUND="This video requires payment.",Fn.PURCHASE_REFUNDED="This video's purchase has been refunded.",Fn.RENTAL_EXPIRED="This video's rental has expired.",Fn.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",Fn.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",Fn.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",Fn.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",Fn.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",Fn.SERVER_ERROR="There was an internal server error. Please try again later.",Fn.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",Fn.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",Fn.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",Fn.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",Fn.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",Fn.TOO_MANY_REQUESTS="Please log in to watch this video.", Fn.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",Fn.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",Fn.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",Fn.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",Fn.VIDEO_FORBIDDEN="Access to this video is forbidden.",Fn.VIDEO_NOT_FOUND="This video can not be found.",Fn.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",Fn);var F8Z;var CKZ=g.IB(),tVk=CKZ.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!tVk||tVk.length<2)F8Z=void 0;else{var VVG=CKZ.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);F8Z=VVG&&VVG.length===6?Number(VVG[5].replace("_",".")):0}var N6=F8Z,Fc=N6>=0;g.T(g.KP,TJ);g.KP.prototype.B=function(G,X,Q,R,S){return TJ.prototype.B.call(this,G,X,Q,R,S)};var Cn={},IW=(Cn.FAIRPLAY="fairplay",Cn.PLAYREADY="playready",Cn.WIDEVINE="widevine",Cn.CLEARKEY=null,Cn.FLASHACCESS=null,Cn.UNKNOWN=null,Cn.WIDEVINE_CLASSIC=null,Cn);e0.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var tq={},fR=(tq.WIDTH={name:"width",video:!0,valid:640,sj:99999},tq.HEIGHT={name:"height",video:!0,valid:360,sj:99999},tq.FRAMERATE={name:"framerate",video:!0,valid:30,sj:9999},tq.BITRATE={name:"bitrate",video:!0,valid:3E5,sj:2E9},tq.EOTF={name:"eotf",video:!0,valid:"bt709",sj:"catavision"},tq.CHANNELS={name:"channels",video:!1,valid:2,sj:99},tq.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",sj:"invalidformat"},tq.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", sj:"nope"},tq.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",sj:"av99.0.05M.08"},tq.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",sj:"invalid"},tq.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",sj:"false"},tq);var Ir3=["h","H"],dBG=["9","("],W8H=["9h","(h"],p1S=["8","*"],yvo=["a","A"],frd=["o","O"],DBS=["m","M"],N13=["mac3","MAC3"],AvH=["meac3","MEAC3"],Vd={},lti=(Vd.h=Ir3,Vd.H=Ir3,Vd["9"]=dBG,Vd["("]=dBG,Vd["9h"]=W8H,Vd["(h"]=W8H,Vd["8"]=p1S,Vd["*"]=p1S,Vd.a=yvo,Vd.A=yvo,Vd.o=frd,Vd.O=frd,Vd.m=DBS,Vd.M=DBS,Vd.mac3=N13,Vd.MAC3=N13,Vd.meac3=AvH,Vd.MEAC3=AvH,Vd),nN4=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),uTG=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var v={},IE=(v["0"]="f",v["160"]="h",v["133"]="h",v["134"]="h",v["135"]="h",v["136"]="h",v["137"]="h",v["264"]="h",v["266"]="h",v["138"]="h",v["298"]="h",v["299"]="h",v["304"]="h",v["305"]="h",v["214"]="h",v["216"]="h",v["374"]="h",v["375"]="h",v["140"]="a",v["141"]="a",v["327"]="sa",v["258"]="m",v["380"]="mac3",v["328"]="meac3",v["161"]="H",v["142"]="H",v["143"]="H",v["144"]="H",v["222"]="H",v["223"]="H",v["145"]="H",v["224"]="H",v["225"]="H",v["146"]="H",v["226"]="H",v["227"]="H",v["147"]="H",v["384"]= "H",v["376"]="H",v["385"]="H",v["377"]="H",v["149"]="A",v["261"]="M",v["381"]="MAC3",v["329"]="MEAC3",v["598"]="9",v["278"]="9",v["242"]="9",v["243"]="9",v["244"]="9",v["775"]="9",v["776"]="9",v["777"]="9",v["778"]="9",v["779"]="9",v["780"]="9",v["781"]="9",v["782"]="9",v["783"]="9",v["247"]="9",v["248"]="9",v["353"]="9",v["355"]="9",v["356"]="9",v["271"]="9",v["577"]="9",v["313"]="9",v["579"]="9",v["272"]="9",v["302"]="9",v["303"]="9",v["407"]="9",v["408"]="9",v["308"]="9",v["315"]="9",v["330"]= "9h",v["331"]="9h",v["332"]="9h",v["333"]="9h",v["334"]="9h",v["335"]="9h",v["336"]="9h",v["337"]="9h",v["338"]="so",v["600"]="o",v["250"]="o",v["251"]="o",v["774"]="o",v["194"]="*",v["195"]="*",v["220"]="*",v["221"]="*",v["196"]="*",v["197"]="*",v["279"]="(",v["280"]="(",v["317"]="(",v["318"]="(",v["273"]="(",v["274"]="(",v["357"]="(",v["358"]="(",v["275"]="(",v["359"]="(",v["360"]="(",v["276"]="(",v["583"]="(",v["584"]="(",v["314"]="(",v["585"]="(",v["561"]="(",v["277"]="(",v["361"]="(h",v["362"]= "(h",v["363"]="(h",v["364"]="(h",v["365"]="(h",v["366"]="(h",v["591"]="(h",v["592"]="(h",v["367"]="(h",v["586"]="(h",v["587"]="(h",v["368"]="(h",v["588"]="(h",v["562"]="(h",v["409"]="(",v["410"]="(",v["411"]="(",v["412"]="(",v["557"]="(",v["558"]="(",v["394"]="1",v["395"]="1",v["396"]="1",v["397"]="1",v["398"]="1",v["399"]="1",v["720"]="1",v["721"]="1",v["400"]="1",v["401"]="1",v["571"]="1",v["402"]="1",v["694"]="1h",v["695"]="1h",v["696"]="1h",v["697"]="1h",v["698"]="1h",v["699"]="1h",v["700"]="1h", v["701"]="1h",v["702"]="1h",v["703"]="1h",v["386"]="3",v["387"]="w",v["406"]="6",v["787"]="1",v["788"]="1",v["548"]="1e",v["549"]="1e",v["550"]="1e",v["551"]="1e",v["809"]="1e",v["810"]="1e",v["552"]="1e",v["811"]="1e",v["812"]="1e",v["553"]="1e",v["813"]="1e",v["814"]="1e",v["554"]="1e",v["815"]="1e",v["816"]="1e",v["555"]="1e",v["817"]="1e",v["818"]="1e",v["572"]="1e",v["556"]="1e",v["645"]="(",v["646"]="(",v["647"]="(",v["648"]="(",v["649"]="(",v["650"]="(",v["651"]="(",v["652"]="(",v["653"]="(", v["654"]="(",v["655"]="(",v["656"]="(",v["657"]="(",v["658"]="(",v["659"]="(",v["660"]="(",v["661"]="(",v["662"]="(",v["663"]="(",v["664"]="(",v["665"]="(",v["666"]="(",v["667"]="(",v["668"]="(",v["669"]="(",v["670"]="(",v["671"]="(",v["672"]="(",v["673"]="(",v["674"]="(h",v["675"]="(h",v["676"]="(h",v["677"]="(h",v["678"]="(h",v["679"]="(h",v["680"]="(h",v["681"]="(h",v["682"]="(h",v["683"]="(h",v["684"]="(h",v["685"]="(h",v["686"]="(h",v["687"]="(h",v["688"]="A",v["689"]="A",v["690"]="A",v["691"]= "MEAC3",v["773"]="i",v["806"]="I",v["805"]="I",v["829"]="9",v["830"]="9",v["831"]="9",v["832"]="9",v["833"]="9",v["834"]="9",v["835"]="9",v["836"]="9",v["892"]="9",v["893"]="9",v["837"]="9",v["838"]="9",v["839"]="9",v["840"]="9",v["841"]="(",v["842"]="(",v["843"]="(",v["844"]="(",v["845"]="(",v["846"]="(",v["847"]="(",v["848"]="(",v["894"]="(",v["895"]="(",v["849"]="(",v["850"]="(",v["851"]="(",v["852"]="(",v["865"]="9",v["866"]="9",v["867"]="9",v["868"]="9",v["869"]="9",v["870"]="9",v["871"]="9", v["872"]="9",v["896"]="9",v["897"]="9",v["873"]="9",v["874"]="9",v["875"]="9",v["876"]="9",v["877"]="(",v["878"]="(",v["879"]="(",v["880"]="(",v["881"]="(",v["882"]="(",v["883"]="(",v["884"]="(",v["898"]="(",v["899"]="(",v["885"]="(",v["886"]="(",v["887"]="(",v["888"]="(",v);var Iy={},Yjl=(Iy.STEREO_LAYOUT_UNKNOWN=0,Iy.STEREO_LAYOUT_LEFT_RIGHT=1,Iy.STEREO_LAYOUT_TOP_BOTTOM=2,Iy);var Bw0={qbU:0,lnO:1,CFM:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var dr,c_,Wh,Mre;dr={};g.FZ=(dr.auto=0,dr.tiny=144,dr.light=144,dr.small=240,dr.medium=360,dr.large=480,dr.hd720=720,dr.hd1080=1080,dr.hd1440=1440,dr.hd2160=2160,dr.hd2880=2880,dr.highres=4320,dr);c_={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Wh={}; Mre=(Wh.QUALITY_ORDINAL_UNKNOWN=0,Wh.QUALITY_ORDINAL_144P_SAVER=124,Wh.QUALITY_ORDINAL_144P=144,Wh.QUALITY_ORDINAL_240P_SAVER=220,Wh.QUALITY_ORDINAL_240P=240,Wh.QUALITY_ORDINAL_360P_SAVER=340,Wh.QUALITY_ORDINAL_360P=360,Wh.QUALITY_ORDINAL_480P=480,Wh.QUALITY_ORDINAL_608P_SAVER=588,Wh.QUALITY_ORDINAL_608P=608,Wh.QUALITY_ORDINAL_720P=720,Wh.QUALITY_ORDINAL_720P_ENHANCED=740,Wh.QUALITY_ORDINAL_1080P=1080,Wh.QUALITY_ORDINAL_1080P_ENHANCED=1100,Wh.QUALITY_ORDINAL_1440P=1440,Wh.QUALITY_ORDINAL_2160P=2160, Wh.QUALITY_ORDINAL_HIGHRES=9999,Wh);var tR="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");CP.prototype.isHdr=function(){return this.N==="smpte2084"||this.N==="arib-std-b67"};dP.prototype.A1=function(){return this.containerType===2}; dP.prototype.isEncrypted=function(){return!!this.sT}; dP.prototype.vz=function(){return!!this.audio}; dP.prototype.oC=function(){return!!this.video}; var yi=!1;g.T(Yq,g.ic);g.P=Yq.prototype;g.P.appendBuffer=function(G,X,Q){if(this.b9.YR()!==this.appendWindowStart+this.start||this.b9.gH()!==this.appendWindowEnd+this.start||this.b9.q9()!==this.timestampOffset+this.start)this.b9.supports(1),this.b9.fP(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.b9.Kj(this.timestampOffset+this.start);this.b9.appendBuffer(G,X,Q)}; g.P.abort=function(){this.b9.abort()}; g.P.remove=function(G,X){this.b9.remove(G+this.start,X+this.start)}; g.P.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.P.clear=function(){this.b9.clear()}; g.P.fP=function(G,X){this.appendWindowStart=G;this.appendWindowEnd=X}; g.P.DF=function(){return this.timestampOffset+this.start}; g.P.YR=function(){return this.appendWindowStart}; g.P.gH=function(){return this.appendWindowEnd}; g.P.Kj=function(G){this.timestampOffset=G}; g.P.q9=function(){return this.timestampOffset}; g.P.Zu=function(G){G=this.b9.Zu(G===void 0?!1:G);return kq(G,this.start,this.end)}; g.P.Dg=function(){return this.b9.Dg()}; g.P.SK=function(){return this.b9.SK()}; g.P.Dz=function(){return this.b9.Dz()}; g.P.dT=function(){return this.b9.dT()}; g.P.Wc=function(){this.b9.Wc()}; g.P.jR=function(G){return this.b9.jR(G)}; g.P.DX=function(){return this.b9.DX()}; g.P.W0=function(){return this.b9.W0()}; g.P.ri=function(G,X,Q){this.b9.ri(G,X,Q)}; g.P.d5=function(G,X,Q){this.b9.d5(G,X,Q)}; g.P.FB=function(G,X){return this.b9.FB(G,X)}; g.P.supports=function(G){return this.b9.supports(G)}; g.P.H0=function(){return this.b9.H0()}; g.P.isView=function(){return!0}; g.P.WH=function(){return this.b9.WH()?this.isActive:!1}; g.P.isLocked=function(){return this.ZB&&!this.isActive}; g.P.L7=function(G){G=this.b9.L7(G);G.vw=this.start+"-"+this.end;return G}; g.P.zB=function(){return this.b9.zB()}; g.P.aR=function(){return this.b9.aR()}; g.P.VQ=function(){return this.b9.VQ()}; g.P.zT=function(){this.b9.m6(this.nU);g.ic.prototype.zT.call(this)};var lQ=!1;g.T(Ms,g.ic);g.P=Ms.prototype;g.P.appendBuffer=function(G,X,Q){this.lM=!1;Q&&(this.u1=Q);if(G.length){var R;((R=this.l6)==null?0:R.appendBuffer)?this.l6.appendBuffer(G):this.l6?this.l6.append(G):this.n4&&this.n4.webkitSourceAppend(this.id,G)}X&&(X.isEncrypted()&&(this.SW=this.u1),X.type===3&&(this.ZJ=X),this.tJ.push(X.Hn()),this.tJ.length>4&&this.tJ.shift());this.Qe&&(this.Qe.length>=2||G.length>1048576?delete this.Qe:this.Qe.push(G))}; g.P.abort=function(){try{this.l6?this.l6.abort():this.n4&&this.n4.webkitSourceAbort(this.id)}catch(X){if(BuZ){var G=new g.Ic("Error while abort the source buffer: "+X.name+", "+X.message);g.aU(G)}}this.u1=this.ZJ=null}; g.P.remove=function(G,X,Q){this.lM=!1;var R;if((R=this.l6)==null?0:R.remove)Q&&Q({b:Sr(this.Zu()),s:G,e:X}),this.l6.remove(G,X)}; g.P.removeAll=function(){this.remove(this.YR(),this.gH())}; g.P.clear=function(){this.Dz()||(this.abort(),this.removeAll(),this.SW=this.u1=this.ZJ=null,this.appendWindowStart=this.timestampOffset=0,this.SD=RT([],[]),this.lM=!1,this.Qe=jr?[]:void 0,this.hU=!0)}; g.P.YR=function(){if(lQ&&this.oC)return this.appendWindowStart;var G;return((G=this.l6)==null?void 0:G.appendWindowStart)||0}; g.P.gH=function(){var G;return((G=this.l6)==null?void 0:G.appendWindowEnd)||0}; g.P.fP=function(G,X){this.l6&&(lQ&&this.oC?(this.appendWindowStart=G,this.l6.appendWindowEnd=X):G>this.YR()?(this.l6.appendWindowEnd=X,this.l6.appendWindowStart=G):(this.l6.appendWindowStart=G,this.l6.appendWindowEnd=X))}; g.P.DF=function(){return this.timestampOffset}; g.P.Kj=function(G){lQ?this.timestampOffset=G:this.supports(1)&&(this.l6.timestampOffset=G)}; g.P.q9=function(){return lQ?this.timestampOffset:this.supports(1)?this.l6.timestampOffset:0}; g.P.Zu=function(G){if(G===void 0?0:G)return this.lM||this.Dg()||(this.SD=this.Zu(!1),this.lM=!0),this.SD;try{return this.l6?this.l6.buffered:this.n4?this.n4.webkitSourceBuffered(this.id):RT([0],[Infinity])}catch(X){return RT([],[])}}; g.P.Dg=function(){var G;return((G=this.l6)==null?void 0:G.updating)||!1}; g.P.Dz=function(){return this.hU}; g.P.dT=function(){return!this.hU&&this.Dg()}; g.P.Wc=function(){this.hU=!1}; g.P.jR=function(G){var X=G==null?void 0:G.ZC;G=G==null?void 0:G.containerType;return!X&&!G||X===this.ZC&&G===this.containerType}; g.P.DX=function(){return this.u1}; g.P.W0=function(){return this.SW}; g.P.FB=function(G,X){return this.containerType!==G||this.ZC!==X}; g.P.ri=function(G,X,Q){if(this.containerType!==G||Q&&this.FB(G,Q))this.supports(4),mL()&&this.l6.changeType(X),Q&&(this.ZC=Q);this.containerType=G}; g.P.d5=function(G,X,Q){this.containerType&&this.FB(G,X)&&mL()&&this.l6.changeType(Q);this.containerType=G;this.ZC=X}; g.P.H0=function(){return this.ZJ}; g.P.isView=function(){return!1}; g.P.supports=function(G){switch(G){case 1:var X;return((X=this.l6)==null?void 0:X.timestampOffset)!==void 0;case 0:var Q;return!((Q=this.l6)==null||!Q.appendBuffer);case 2:var R;return!((R=this.l6)==null||!R.remove);case 3:var S,Z;return!!(((S=this.l6)==null?0:S.addEventListener)&&((Z=this.l6)==null?0:Z.removeEventListener));case 4:return!(!this.l6||!this.l6.changeType);default:return!1}}; g.P.WH=function(){return!this.Dg()}; g.P.isLocked=function(){return!1}; g.P.L7=function(G){G.to=this.q9();G.up=this.Dg();var X,Q=((X=this.l6)==null?void 0:X.appendWindowStart)||0,R;X=((R=this.l6)==null?void 0:R.appendWindowEnd)||Infinity;G.aw=Q.toFixed(3)+"-"+X.toFixed(3);return G}; g.P.SK=function(){var G;return((G=this.l6)==null?void 0:G.writeHead)||0}; g.P.zB=function(){for(var G={},X=0;X=7&&(!X||((R=this.uB)==null?0:R.G("mweb_ios_allow_playback_workaround_when_ready")))&&EC7(this,function(){g.wp(function(){dQl(G,G.getCurrentTime(),0)},500)})}return X}; g.P.seekTo=function(G){this.fu()>0&&(Fc&&N6<4&&(G=Math.max(.1,G)),this.setCurrentTime(G))}; g.P.Gi=function(){if(!this.W&&this.kc)if(this.kc.C)try{var G;Tv(this,{l:"mer",sr:(G=this.uB)==null?void 0:G.g2(),rs:er(this.kc)});this.kc.clear();this.W=this.kc;this.kc=void 0}catch(X){G=new g.Ic("Error while clearing Media Source in MediaElement: "+X.name+", "+X.message),g.aU(G),this.stopVideo()}else this.stopVideo()}; g.P.stopVideo=function(){var G=this;if(!this.W){var X;(X=this.kc)==null||tzV(X);if(gSC){if(!this.Y){var Q=new aT;Q.then(void 0,function(){}); this.Y=Q;Ubw&&this.pause();g.wp(function(){G.Y===Q&&(zv(G),Q.resolve())},200)}}else zv(this)}}; g.P.Yg=function(){var G=this.wL();return hS(G)&&this.getDuration()?qs(G,this.getCurrentTime()):0}; g.P.oG=function(){var G=this.getDuration();return G===Infinity?1:G?this.Yg()/G:0}; g.P.L7=function(){try{var G=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Sr(this.SR(),",",3),vbu:Sr(this.wL()),vbs:Sr(this.Tz()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.fu(),vns:""+this.xx(),vec:""+this.iE(),vemsg:this.uT(),vvol:""+this.getVolume(),vdom:""+ +this.Ae(),vsrc:""+ +!!this.d2(),vw:""+G.width,vh:""+G.height}}catch(X){return{}}}; g.P.hasError=function(){return this.iE()>0}; g.P.addEventListener=function(G,X){this.V.listen(G,X,!1,this);this.U2(G)}; g.P.removeEventListener=function(G,X){this.V.Ds(G,X,!1,this)}; g.P.dispatchEvent=function(G){if(this.Y&&G.type==="pause")return!1;if(lUX){var X,Q=((X=G.N)==null?void 0:X.timeStamp)||Infinity;X=Q>performance.now()?Q-Date.now()+performance.now():Q;Q=this.W||this.kc;if((Q==null?0:Q.Dz())||X<=((Q==null?void 0:Q.S)||0)){var R;Tv(this,{l:"mede",sr:(R=this.uB)==null?void 0:R.g2(),et:G.type});return!1}if(this.wD)return Tv(this,{l:"medes",et:G.type}),Q&&G.type==="seeking"&&(Q.S=performance.now(),this.wD=!1),!1}return this.V.dispatchEvent(G)}; g.P.Rv=function(){this.S=!1}; g.P.hp=function(){this.S=!0;this.Gk(!0)}; g.P.SQ=function(){this.S&&!this.Vs()&&this.Gk(!0)}; g.P.equals=function(G){return!!G&&G.V0()===this.V0()}; g.P.zT=function(){this.J&&this.removeEventListener("volumechange",this.SQ);gSC&&zv(this);g.I.prototype.zT.call(this)}; var gSC=!1,Ubw=!1,lUX=!1,yww=!1;g.P=g.gO.prototype;g.P.isPaused=function(){return g.N(this,4)}; g.P.isPlaying=function(){return g.N(this,8)&&!g.N(this,512)&&!g.N(this,64)&&!g.N(this,2)}; g.P.isOrWillBePlaying=function(){return g.N(this,8)&&!g.N(this,2)&&!g.N(this,1024)}; g.P.isCued=function(){return g.N(this,64)&&!g.N(this,8)&&!g.N(this,4)}; g.P.isBuffering=function(){return g.N(this,1)&&!g.N(this,2)}; g.P.isError=function(){return g.N(this,128)}; g.P.isSuspended=function(){return g.N(this,512)}; g.P.Fk=function(){return g.N(this,64)&&g.N(this,4)}; g.P.toString=function(){return"PSt."+this.state.toString(16)}; var pn={},yd=(pn.BUFFERING="buffering-mode",pn.CUED="cued-mode",pn.ENDED="ended-mode",pn.PAUSED="paused-mode",pn.PLAYING="playing-mode",pn.SEEKING="seeking-mode",pn.UNSTARTED="unstarted-mode",pn);g.T(WH,g.I);g.P=WH.prototype;g.P.nj=function(){return this.Y}; g.P.Ga=function(){return this.slot}; g.P.iB=function(){return this.layout}; g.P.init=function(){var G=Nj(this.layout.clientMetadata,"metadata_type_video_length_seconds"),X=Nj(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");hF(this.layout.u6)&&bf(this.y0.get(),this.layout.layoutId,{Z8:X,TL:G,listener:this,J8:this.DJ()});qCH(this.nO.get(),this);G=this.ea;X=this.layout.layoutId;var Q={J8:this.DJ()};G.N.set(X,Q);this.XV()}; g.P.xW=function(){}; g.P.release=function(){hF(this.layout.u6)&&v0(this.y0.get(),this.layout.layoutId);wlk(this.nO.get(),this);this.ea.N.delete(this.layout.layoutId);this.fV()}; g.P.NR=function(){}; g.P.sH=function(){}; g.P.startRendering=function(G){wP(pF(this));if(yp(this,G)){var X=this.N;hR(X.params.w2.HM.get(),!0)&&r4T(X,"p_sr",{});fF(this);this.V9(G);this.DJ()||this.bO(!1)}}; g.P.X7=function(G,X){if(X.layoutId===this.layout.layoutId){this.Bs="rendering";this.W=this.RU.get().isMuted()||this.RU.get().getVolume()===0;this.i6("impression");this.i6("start");if(this.RU.get().isMuted()){b9(this,"mute");var Q;G=((Q=dO(this))==null?void 0:Q.muteCommands)||[];gs(this.RW.get(),G,this.layout.layoutId)}if(this.RU.get().isFullscreen()){this.XA("fullscreen");var R;Q=((R=dO(this))==null?void 0:R.fullscreenCommands)||[];gs(this.RW.get(),Q,this.layout.layoutId)}this.DJ()||(R=this.xS.get(), R.Y&&!R.W&&(R.C=!1,R.W=!0,R.actionType!=="ad_to_video"&&(cf("pbs",void 0,R.actionType),g.jg("finalize_all_timelines")&&Qsw(R.actionType))));this.CQ(1);this.l4(X);var S;X=((S=dO(this))==null?void 0:S.impressionCommands)||[];gs(this.RW.get(),X,this.layout.layoutId)}}; g.P.Xy=function(G,X,Q){this.J={Vz:3,Ek:G==="load_timeout"?402:400,errorMessage:X.message};this.i6("error");var R;G=((R=dO(this))==null?void 0:R.errorCommands)||[];gs(this.RW.get(),G,this.layout.layoutId);this.DJ()||this.rB.jx(this.slot,this.layout,X,Q)}; g.P.gC=function(){if(this.Bs==="rendering"){b9(this,"pause");var G,X=((G=dO(this))==null?void 0:G.pauseCommands)||[];gs(this.RW.get(),X,this.layout.layoutId);this.CQ(2)}}; g.P.rC=function(){if(this.Bs==="rendering"){b9(this,"resume");var G,X=((G=dO(this))==null?void 0:G.resumeCommands)||[];gs(this.RW.get(),X,this.layout.layoutId)}}; g.P.R_=function(G,X){X=X===void 0?!1:X;if(this.Bs==="rendering"){var Q={currentTimeSec:G,flush:X};LP(this.N,"p_ip",Q);uS(this.O_,G*1E3,X);this.W||uS(this.O_,G*1E3,X===void 0?!1:X);var R=this.wx();if(R){R/=1E3;if(G>=R*.25||X)this.i6("first_quartile"),LP(this.N,"p_fq",Q);if(G>=R*.5||X)this.i6("midpoint"),LP(this.N,"p_sq",Q);if(G>=R*.75||X)this.i6("third_quartile"),LP(this.N,"p_tq",Q);this.HM.get().U.Z().experiments.TT("enable_progress_command_flush_on_kabuki")?O0(this.V,G*1E3,X):O0(this.V,G*1E3,$Q7(this)? X:!1)}}}; g.P.WO=function(){var G;return((G=Dt(this.lB.get(),1))==null?void 0:G.clientPlaybackNonce)||""}; g.P.UF=function(G,X){G.layoutId!==this.layout.layoutId?this.rB.jx(this.slot,G,new f$("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"):X()}; g.P.YS=function(G,X,Q){if(X.layoutId===this.layout.layoutId)switch(this.Bs="not_rendering",this.layoutExitReason=void 0,this.DJ()||(G=Q!=="normal"||this.position+1===this.S)&&this.bO(G),this.fM(Q),this.CQ(0),Q){case "abandoned":if(PK(this.O_,"impression")){var R,S=((R=dO(this))==null?void 0:R.abandonCommands)||[];gs(this.RW.get(),S,this.layout.layoutId)}break;case "normal":R=((S=dO(this))==null?void 0:S.completeCommands)||[];gs(this.RW.get(),R,this.layout.layoutId);break;case "skipped":var Z;R=((Z= dO(this))==null?void 0:Z.skipCommands)||[];gs(this.RW.get(),R,this.layout.layoutId)}}; g.P.X3=function(){return this.layout.layoutId}; g.P.F$=function(){return this.J}; g.P.CV=function(){if(this.Bs==="rendering"){this.O_.i6("active_view_measurable");var G,X=((G=dO(this))==null?void 0:G.activeViewMeasurableCommands)||[];gs(this.RW.get(),X,this.layout.layoutId)}}; g.P.lj=function(){if(this.Bs==="rendering"){this.O_.i6("active_view_fully_viewable_audible_half_duration");var G,X=((G=dO(this))==null?void 0:G.activeViewFullyViewableAudibleHalfDurationCommands)||[];gs(this.RW.get(),X,this.layout.layoutId)}}; g.P.qI=function(){if(this.Bs==="rendering"){this.O_.i6("active_view_viewable");var G,X=((G=dO(this))==null?void 0:G.activeViewViewableCommands)||[];gs(this.RW.get(),X,this.layout.layoutId)}}; g.P.SZ=function(){if(this.Bs==="rendering"){this.O_.i6("audio_audible");var G,X=((G=dO(this))==null?void 0:G.activeViewAudioAudibleCommands)||[];gs(this.RW.get(),X,this.layout.layoutId)}}; g.P.v9=function(){if(this.Bs==="rendering"){this.O_.i6("audio_measurable");var G,X=((G=dO(this))==null?void 0:G.activeViewAudioMeasurableCommands)||[];gs(this.RW.get(),X,this.layout.layoutId)}}; g.P.bO=function(G){this.xS.get().bO(Nj(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,G,this.position,this.S,!1)}; g.P.onFullscreenToggled=function(G){if(this.Bs==="rendering")if(G){this.XA("fullscreen");var X,Q=((X=dO(this))==null?void 0:X.fullscreenCommands)||[];gs(this.RW.get(),Q,this.layout.layoutId)}else this.XA("end_fullscreen"),X=((Q=dO(this))==null?void 0:Q.endFullscreenCommands)||[],gs(this.RW.get(),X,this.layout.layoutId)}; g.P.onVolumeChange=function(){if(this.Bs==="rendering")if(this.RU.get().isMuted()){b9(this,"mute");var G,X=((G=dO(this))==null?void 0:G.muteCommands)||[];gs(this.RW.get(),X,this.layout.layoutId)}else b9(this,"unmute"),G=((X=dO(this))==null?void 0:X.unmuteCommands)||[],gs(this.RW.get(),G,this.layout.layoutId)}; g.P.Dk=function(){}; g.P.lc=function(){}; g.P.mB=function(){}; g.P.Q1=function(){}; g.P.qa=function(){}; g.P.XA=function(G){this.O_.XA(G,!this.W)}; g.P.i6=function(G){this.O_.i6(G,!this.W)}; g.P.DJ=function(){var G=Nj(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return G===void 0?(qQ("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.HM.get().DJ(G)};g.T(XO,WH);g.P=XO.prototype;g.P.XV=function(){}; g.P.fV=function(){var G=this.nO.get();G.aH===this&&(G.aH=null);this.timer.stop()}; g.P.NR=function(){this.timer.stop();WH.prototype.gC.call(this)}; g.P.sH=function(){Rz(this);WH.prototype.rC.call(this)}; g.P.wx=function(){return Nj(this.iB().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.P.LY=function(G,X){var Q=this;this.UF(G,function(){Q.Bs!=="rendering_stop_requested"&&(Q.Bs="rendering_stop_requested",Q.layoutExitReason=X,Ns(Q,X),Q.timer.stop())})}; g.P.o6=function(){var G=Date.now(),X=G-this.kh;this.kh=G;this.uc+=X;this.uc>=this.wx()?this.hV():(this.R_(this.uc/1E3),QI(this,this.uc))}; g.P.fM=function(){}; g.P.Sc=function(){}; g.T(SN,XO);g.P=SN.prototype;g.P.Gg=function(G){if(this.Bs!=="not_rendering"){G=AS(this,G);var X=this.RU.get().getPresentingPlayerType()===2;this.Bs==="rendering_start_requested"?X&&JF(G)&&this.Iy():X?g.Lw(G,2)?qQ("Receive player ended event during MediaBreak",this.Ga(),this.iB()):nF(this,G):this.ZY()}}; g.P.V9=function(){Awy(this);uSa(this.RU.get());this.nO.get().aH=this;OF("pbp")||OF("pbs")||cf("pbp");OF("pbp","watch")||OF("pbs","watch")||cf("pbp",void 0,"watch");this.Iy()}; g.P.l4=function(G){this.xS.get();var X=Nj(G.clientMetadata,"metadata_type_ad_placement_config").kind,Q=this.position===0;G=Nj(G.clientMetadata,"metadata_type_linked_in_player_layout_type");G={adBreakType:$q(X),adType:HJl(G)};var R=void 0;Q?X!=="AD_PLACEMENT_KIND_START"&&(R="video_to_ad"):R="ad_to_ad";aa("ad_mbs",void 0,R);g.EF(G,R);Rz(this)}; g.P.ZY=function(){this.Jt()}; g.P.hV=function(){vAZ(this);this.Jt()}; g.T(Zd,XO);g.P=Zd.prototype;g.P.Gg=function(G){this.Bs!=="not_rendering"&&(G=AS(this,G),nF(this,G))}; g.P.V9=function(){qQ("Not used in SSAP")}; g.P.l4=function(){Rz(this)}; g.P.ZY=function(){qQ("Not used in SSAP")}; g.P.hV=function(){vAZ(this);this.rB.oV(this.Ga(),this.iB(),"normal")}; g.T(Ha,Zd);Ha.prototype.LY=function(G,X){var Q=this;this.UF(G,function(){RE(Q.Y,X)&&(Q.Bs="rendering_stop_requested",Q.layoutExitReason=X,Ns(Q,X),Q.timer.stop())})}; Ha.prototype.startRendering=function(G){wP(pF(this));yp(this,G)&&(fF(this),this.nO.get().aH=this)};g.T(hA,WH);g.P=hA.prototype;g.P.ZY=function(){this.Jt()}; g.P.Gg=function(G){if(this.Bs!=="not_rendering"){G=AS(this,G);var X=this.RU.get().getPresentingPlayerType()===2;this.Bs==="rendering_start_requested"?X&&JF(G)&&this.Iy():!X||g.Lw(G,2)?this.Jt():nF(this,G)}}; g.P.XV=function(){Nj(this.iB().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Nj(this.iB().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.P.fV=function(){Nj(this.iB().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.uE){var G=this.context.w2,X=this.uE,Q=this.iB().layoutId;if(hR(G.HM.get(),!0)){var R={};G.Ws("mccru",(R.cid=X,R.p_ac=Q,R))}this.yN.get().removeCueRange(this.uE)}this.uE=void 0;var S;(S=this.S9)==null||S.dispose();this.wv&&this.wv.dispose()}; g.P.V9=function(G){var X=q0(this.HM.get()),Q=ww(this.HM.get());if(X&&Q&&!this.DJ()){Q=Nj(G.clientMetadata,"metadata_type_preload_player_vars");var R=this.HM.get();R=g.i2(R.U.Z().experiments,"html5_preload_wait_time_secs");Q&&this.wv&&this.wv.start(R*1E3)}GCT(this,G);Awy(this);X?(Q=this.Wn.get(),G=Nj(G.clientMetadata,"metadata_type_player_vars"),Q.U.loadVideoByPlayerVars(G,!1,2)):l7X(this.Wn.get(),Nj(G.clientMetadata,"metadata_type_player_vars"));var S;(S=this.S9)==null||S.start();X||this.Wn.get().U.playVideo(2)}; g.P.l4=function(){var G;(G=this.S9)==null||G.stop();this.eW();(this.adCpn=NAT(this))||qQ("Media layout confirmed started, but ad CPN not set.");this.OY.get().Rc("onAdStart",this.adCpn);this.BE=Date.now()}; g.P.wx=function(){var G;return(G=Dt(this.lB.get(),2))==null?void 0:G.Wg}; g.P.bI=function(){this.O_.XA("clickthrough")}; g.P.LY=function(G,X){var Q=this;this.UF(G,function(){if(Q.Bs!=="rendering_stop_requested"){Q.Bs="rendering_stop_requested";Q.layoutExitReason=X;Ns(Q,X);var R;(R=Q.S9)==null||R.stop();Q.wv&&Q.wv.stop();Xfw(Q)}})}; g.P.onCueRangeEnter=function(G){if(G!==this.uE)qQ("Received CueRangeEnter signal for unknown layout.",this.Ga(),this.iB(),{cueRangeId:G});else{var X=this.context.w2,Q=this.iB().layoutId;if(hR(X.HM.get(),!0)){var R={};X.Ws("mccre",(R.cid=G,R.p_ac=Q,R))}this.yN.get().removeCueRange(this.uE);this.uE=void 0;Fd(this.context.HM.get(),"html5_ssap_flush_at_stop_rendering")&&this.DJ()||(G=Nj(this.iB().clientMetadata,"metadata_type_video_length_seconds"),this.R_(G,!0),this.i6("complete"))}}; g.P.fM=function(G){G!=="abandoned"&&this.OY.get().Rc("onAdComplete");this.OY.get().Rc("onAdEnd",this.adCpn)}; g.P.eW=function(){this.uE="adcompletioncuerange:"+this.iB().layoutId;this.yN.get().addCueRange(this.uE,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var G=this.context.w2,X=this.uE,Q=this.iB().layoutId;if(hR(G.HM.get(),!0)){var R={};G.Ws("mccr",(R.cid=X,R.p_ac=Q,R))}}; g.P.onCueRangeExit=function(){}; g.P.Sc=function(G){this.Bs==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&G>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.RU.get().ly(!0),this.R_(G))}; g.P.R_=function(G,X){WH.prototype.R_.call(this,G,X===void 0?!1:X);X=Date.now()-this.BE;var Q=G*1E3,R={contentCpn:this.WO(),adCpn:NAT(this)};if(G-this.yk>=5){var S=X=2||(this.cn.LY(this.layout,X),G=Fd(this.params.context.HM.get(),"html5_ssap_pass_transition_reason")&&X==="abandoned",this.ZT()&&!G&&(Fd(this.params.context.HM.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(X)||qQ("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:X})),this.Nx.get().finishSegmentByCpn(this.layout.layoutId, Dt(this.lB.get(),1).clientPlaybackNonce,JS(X,this.params.context.HM))),this.RU.get().removeListener(this),this.kJ()&&S0(this.cn.nj())&&this.qR.YS(this.slot,this.layout,this.cn.nj().N))}; g.P.FD=function(G,X,Q){KJ7({cpn:G,bL:this.lB.get(),Op:!0});this.iB().layoutId!==G||Fd(this.params.context.HM.get(),"html5_ssap_pass_transition_reason")&&Q===5||(this.cn.nj().currentState<2&&(G=i9(Q,this.params.context.HM),G==="error"?this.qR.jx(this.slot,this.layout,new f$("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:Q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):sd(this.h1, this.layout,G)),Fd(this.params.context.HM.get(),"html5_ssap_exit_without_waiting_for_transition")||this.qR.YS(this.slot,this.layout,this.cn.nj().N))};g.T(M0,g.I);g.P=M0.prototype;g.P.Ga=function(){return this.slot}; g.P.iB=function(){return this.layout}; g.P.Ne=function(){}; g.P.Lo=function(){return this.wZ[this.sy]}; g.P.Hi=function(){return this.sy}; g.P.NR=function(G,X){var Q=this.Lo();X.layoutId!==oz(Q,G,X)?qQ("pauseLayout for a PlayerBytes layout that is not currently active",G,X):Q.NR()}; g.P.sH=function(G,X){var Q=this.Lo();X.layoutId!==oz(Q,G,X)?qQ("resumeLayout for a PlayerBytes layout that is not currently active",G,X):Q.sH()}; g.P.eZ=function(G,X){var Q=this.Lo();kC7(this,G,X);YFy(Q,G,X)&&this.mO(Q.Ga(),Q.iB(),"skipped")}; g.P.b1=function(G,X){var Q=this.Lo();jaG(this);M2w(Q,G,X)&&(G=mkS(this,Q,G,X),G!==void 0&&(this.DJ()?qQ("Should not happen. Should delete"):uz7(this,Q.Ga(),Q.iB(),G)))}; g.P.T$=function(G,X){var Q=Object.assign({},mi(this),{layoutId:X.layoutId}),R=Q.layoutId,S=Q.Op;if(Q.J8){var Z={};qr(Q.bL,"wrse",(Z.ec=R,Z.is=S,Z.ctp=Hj(R),Z))}M3(this.gB,G,X)}; g.P.X7=function(G,X){var Q;(Q=this.Lo())==null||Q.X7(G,X)}; g.P.YS=function(G,X,Q){X.layoutId===this.iB().layoutId&&(this.Oc=!1,Re(this.K7(),this));var R;(R=this.Lo())==null||R.YS(G,X,Q)}; g.P.Sc=function(G){var X;(X=this.Lo())==null||X.Sc(G)}; g.P.qO=function(G,X,Q){this.Hi()===-1&&(this.callback.X7(this.slot,this.layout),this.sy++);var R=this.Lo();R?(R.Xy(G,X,Q),this.DJ()&&this.callback.jx(this.slot,this.layout,X,Q)):qQ("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Hi()),layoutId:this.iB().layoutId})}; g.P.onFullscreenToggled=function(G){var X;(X=this.Lo())==null||X.onFullscreenToggled(G)}; g.P.Dk=function(G){var X;(X=this.Lo())==null||X.Dk(G)}; g.P.mB=function(G){var X;(X=this.Lo())==null||X.mB(G)}; g.P.onVolumeChange=function(){var G;(G=this.Lo())==null||G.onVolumeChange()}; g.P.mq=function(G,X,Q){m9(this.gB,G,X,Q)}; g.P.C8=function(G){G.startRendering(G.iB())}; g.P.init=function(){var G=Nj(this.iB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");G&&(G.current=this);if(this.wZ.length<1)throw new n("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.wZ.length)});if(G=Nj(this.iB().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))G.current=this;G=g.e(this.wZ);for(var X=G.next();!X.done;X=G.next())X=X.value,X.init(),pRV(this.gB,this.slot,X.iB()),ygC(this.gB,this.slot,X.iB()); if(this.DJ())for(this.lB.get().addListener(this),m1y(L7G(this),this.lB.get()),G=L7G(this),G=g.e(G),X=G.next();!X.done;X=G.next())this.xd(X.value)}; g.P.xd=function(G){var X=Nj(G.clientMetadata,"metadata_type_player_vars");X?(G.layoutType!=="LAYOUT_TYPE_MEDIA"&&qQ("Non-video ad contains playerVars",this.slot,G),this.Wn.get().addPlayerResponseForAssociation({playerVars:X})):(G=qFe(G),this.Wn.get().addPlayerResponseForAssociation({KG:G}))}; g.P.release=function(){var G=Nj(this.iB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");G&&(G.current=null);if(G=Nj(this.iB().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))G.current=null;G=g.e(this.wZ);for(var X=G.next();!X.done;X=G.next())X=X.value,fDC(this.gB,this.slot,X.iB()),X.release();this.DJ()&&(this.lB.get().removeListener(this),oCT())}; g.P.UF=function(G){return G.layoutId!==this.iB().layoutId?(this.callback.jx(this.Ga(),G,new f$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.iB().layoutId+("and LayoutType: "+this.iB().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.P.XU=function(){this.RU.get().addListener(this);QG(this.K7(),this)}; g.P.Gg=function(G){if(G.state.isError()){var X,Q;this.qO((X=G.state.qG)==null?void 0:X.errorCode,new f$("There was a player error during this media layout.",{playerErrorCode:(Q=G.state.qG)==null?void 0:Q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(X=this.Lo())&&X.Gg(G)}; g.P.DJ=function(){var G=Nj(this.Ga().clientMetadata,"metadata_type_eligible_for_ssap");return G===void 0?(qQ("Expected SSAP eligibility in PlayerBytes slots",this.Ga(),this.iB()),!1):this.HM.get().DJ(G)}; g.P.lc=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.Q1=function(){}; g.P.qa=function(){}; g.T(TZ,M0);g.P=TZ.prototype;g.P.mR=function(G,X,Q){this.mO(G,X,Q)}; g.P.L3=function(G,X){this.mO(G,X,"error")}; g.P.mO=function(G,X,Q){var R=this;o5C(this,G,X,Q,function(){u0(R,R.Hi()+1)})}; g.P.startRendering=function(G){this.UF(G)&&(this.XU(),cIZ(this.xS.get()),twU(this.HM.get())||uSa(this.RU.get()),this.Hi()===-1&&u0(this,this.Hi()+1))}; g.P.LY=function(G,X){var Q=this;this.Oc=!0;this.Hi()===this.wZ.length?this.callback.YS(this.slot,this.layout,X):(G=this.Lo(),G.LY(G.iB(),X),this.OE=function(){Q.callback.YS(Q.slot,Q.layout,X)}); this.RU.get().U.vu();l7X(this.Wn.get(),{});G=$9(this.RU.get(),1);G.isPaused()&&!g.N(G,2)&&this.RU.get().playVideo();this.RU.get().removeListener(this);this.Oc&&Pjy(this)}; g.P.FD=function(){}; g.P.ev=function(){}; g.P.oV=function(){}; g.T(Km,M0);g.P=Km.prototype;g.P.mR=function(G,X,Q){G=Object.assign({},mi(this),{layoutId:X.layoutId,layoutExitReason:Q});X=G.layoutId;Q=G.layoutExitReason;var R={};qr(G.bL,"prse",(R.xc=X,R.ler=Q,R.ctp=Hj(X),R))}; g.P.L3=function(){qQ("onSubLayoutError in SSAP")}; g.P.mO=function(){qQ("exitSubLayoutAndPlayNext in SSAP")}; g.P.Lo=function(){return this.aC}; g.P.Hi=function(){var G=this;return this.wZ.findIndex(function(X){var Q;return X.iB().layoutId===((Q=G.aC)==null?void 0:Q.iB().layoutId)})}; g.P.C8=function(G){HV(this.aC===void 0,"replacing another adapter");this.aC=G;G.startRendering(G.iB())}; g.P.mq=function(G,X,Q){m9(this.gB,G,X,Q);var R;HV(X.layoutId===((R=this.aC)==null?void 0:R.iB().layoutId),"currentAdapter does not match exiting layout",{slot:G?"slot: "+G.slotType:"",subLayout:Zg(X)})&&(this.aC=void 0)}; g.P.release=function(){M0.prototype.release.call(this);HV(this.aC===void 0,"currentAdapter is still active during release");this.aC=void 0}; g.P.ZT=function(){return this.RU.get().getPresentingPlayerType()===2}; g.P.LY=function(G,X){function Q(){eN(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(X)||qQ("Composite stopRendering: Unexpected layout exit reason",this.slot,G,{layoutExitReason:X}))} function R(){this.aC&&rw(this,this.aC,X);if(this.ZT()&&(!eN(this)||X!=="abandoned")){Q.call(this);var Z;var H=((Z=this.lB.get().U.getVideoData())==null?void 0:Z.clientPlaybackNonce)||"";Z=Dt(this.lB.get(),1).clientPlaybackNonce;this.Nx.get().finishSegmentByCpn(H,Z,JS(X,this.HM))}saG(this,X)} function S(){if(this.aC){var Z=this.aC;Z.nj().currentState<2&&Z.LY(Z.iB(),X);Z=eN(this)&&X==="abandoned";this.ZT()&&!Z&&(Q.call(this),this.Nx.get().finishSegmentByCpn(this.aC.iB().layoutId,Dt(this.lB.get(),1).clientPlaybackNonce,JS(X,this.HM)))}} HV(G.layoutId===this.iB().layoutId,"StopRendering for wrong layout")&&RE(this.N8.W,X)&&(this.kJ()?R.call(this):S.call(this))}; g.P.YS=function(G,X,Q){M0.prototype.YS.call(this,G,X,Q);X.layoutId===this.iB().layoutId&&this.RU.get().removeListener(this)}; g.P.WO=function(){return Dt(this.lB.get(),1).clientPlaybackNonce}; g.P.FD=function(G,X,Q){KJ7(Object.assign({},mi(this),{cpn:G}));if(!eN(this)||Q!==5)if(this.kJ()){if(this.aC&&this.aC.iB().layoutId!==X){var R=this.aC.iB().layoutId;R!==G&&qQ("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:R,exitingCpn:G,enteringCpn:X});G=i9(Q,this.HM);rw(this,this.aC,G)}else this.aC&&qQ("onClipExited: active layout is entering again");X===this.WO()&&K7e(this,Q)}else{if(this.aC&&this.aC.iB().layoutId===G)TzX(this,this.aC,Q);else{var S;qQ("Exiting cpn does not match active cpn", this.slot,(R=this.aC)==null?void 0:R.iB(),{exitingCpn:G,transitionReason:Q,activeCpn:(S=this.aC)==null?void 0:S.iB().layoutId})}X===this.WO()&&(this.aC!==void 0&&(qQ("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Zg(this.aC.iB())}),TzX(this,this.aC,Q)),K7e(this,Q),saG(this,this.N8.W.N))}}; g.P.kJ=function(){return Fd(this.HM.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.P.startRendering=function(G){this.UF(G)&&(G=this.N8,HV(G.N===1,"tickStartRendering: state is not initial"),G.N=2,this.XU())}; g.P.ev=function(G){TcG(Object.assign({},mi(this),{cpn:G}));var X=this.wZ.find(function(Q){return Q.iB().layoutId===G}); X?(this.N8.N!==2&&(XZ7(this.xr,this.slot.slotId),HV(this.N8.N===2,"Expect started"),this.callback.X7(this.slot,this.layout)),this.C8(X),M3(this.gB,this.slot,X.iB())):edw(this,G)}; g.P.eZ=function(G,X){kC7(this,G,X);var Q=this.Lo();Q?YFy(Q,G,X)&&rdX(this,"skipped"):aOG(this,"onSkipRequested")}; g.P.b1=function(G,X){var Q;a:{if(Q=this.Lo()){if(jaG(this),M2w(Q,G,X)&&(G=mkS(this,Q,G,X),G!==void 0)){Q={tA:Q,iLB:this.wZ[G]};break a}}else aOG(this,"SkipWithAdPodSkip");Q=void 0}if(G=Q)Q=G.tA,X=G.iLB,G=Q.iB().layoutId,this.kJ()?rw(this,Q,"skipped"):Q.LY(Q.iB(),"skipped"),Q=X.iB().layoutId,this.Nx.get().finishSegmentByCpn(G,Q,JS("skipped",this.HM))}; g.P.T$=function(){qQ("Not used in html5_ssap_fix_layout_exit")}; g.P.Gg=function(G){var X;(X=this.Lo())==null||X.Gg(G)}; g.P.qO=function(){qQ("Not used in html5_ssap_fix_layout_exit")}; g.P.oV=function(G,X,Q){var R;if(((R=this.Lo())==null?void 0:R.iB().layoutId)!==X.layoutId)return void qQ("requestToExitSubLayout: wrong layout");rdX(this,Q)};g.T(az,g.I);g.P=az.prototype;g.P.Ga=function(){return this.cn.Ga()}; g.P.iB=function(){return this.cn.iB()}; g.P.init=function(){var G=Nj(this.iB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");G&&(G.current=this);this.XV()}; g.P.XV=function(){this.cn.init()}; g.P.release=function(){var G=Nj(this.iB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");G&&(G.current=null);this.fV()}; g.P.fV=function(){this.cn.release()}; g.P.NR=function(){this.cn.NR()}; g.P.sH=function(){this.cn.sH()}; g.P.eZ=function(G,X){qQ("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Ga(),this.iB(),{requestingSlot:G,requestingLayout:X})}; g.P.startRendering=function(G){G.layoutId!==this.iB().layoutId?this.callback.jx(this.Ga(),G,new f$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.iB().layoutId+("and LayoutType: "+this.iB().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.RU.get().addListener(this),QG(this.K7(),this),cIZ(this.xS.get()),twU(this.HM.get())||uSa(this.RU.get()),this.cn.startRendering(G))}; g.P.LY=function(G,X){this.Oc=!0;this.cn.LY(G,X);this.RU.get().U.vu();l7X(this.Wn.get(),{});G=$9(this.RU.get(),1);G.isPaused()&&!g.N(G,2)&&this.RU.get().playVideo();this.RU.get().removeListener(this);this.Oc&&this.cn.ZY()}; g.P.X7=function(G,X){this.cn.X7(G,X)}; g.P.YS=function(G,X,Q){X.layoutId===this.iB().layoutId&&(this.Oc=!1,Re(this.K7(),this));this.cn.YS(G,X,Q);X.layoutId===this.iB().layoutId&&Pa(this.xS.get())}; g.P.Sc=function(G){this.cn.Sc(G)}; g.P.Gg=function(G){if(G.state.isError()){var X,Q;this.qO((X=G.state.qG)==null?void 0:X.errorCode,new f$("There was a player error during this media layout.",{playerErrorCode:(Q=G.state.qG)==null?void 0:Q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.cn.Gg(G)}; g.P.qO=function(G,X,Q){this.cn.Xy(G,X,Q)}; g.P.onFullscreenToggled=function(G){this.cn.onFullscreenToggled(G)}; g.P.Dk=function(G){this.cn.Dk(G)}; g.P.mB=function(G){this.cn.mB(G)}; g.P.onVolumeChange=function(){this.cn.onVolumeChange()}; g.P.lc=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.Q1=function(){}; g.P.qa=function(){};g.P=Ed.prototype;g.P.Ga=function(){return this.slot}; g.P.iB=function(){return this.layout}; g.P.init=function(){this.GF.get().addListener(this);this.RU.get().addListener(this);var G=Nj(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var X=Nj(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.V){var Q=this.GF.get().Ke.slice(-1)[0];Q!==void 0&&(G=Q.startSecs*1E3,X=(Q.startSecs+Q.Du)*1E3)}this.xW(G,X);var R;Q=(R=this.lB.get().yI)==null?void 0:R.clientPlaybackNonce;R=this.layout.UM.adClientDataEntry;xW(this.nO.get(),{daiStateTrigger:{filledAdsDurationMs:X-G,contentCpn:Q, adClientData:R}});var S=this.GF.get();S=OJT(S.Y,G,X);S!==null&&(xW(this.nO.get(),{daiStateTrigger:{filledAdsDurationMs:S-G,contentCpn:Q,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:R}}),this.Nx.get().yS(S,X))}; g.P.release=function(){this.fV();this.GF.get().removeListener(this);this.RU.get().removeListener(this)}; g.P.startRendering=function(){this.V9();this.callback.X7(this.slot,this.layout)}; g.P.LY=function(G,X){this.UA(X);this.driftRecoveryMs!==null&&(Od(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(zdy(this)-Nj(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.RU.get().U.zx()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.YS(this.slot,this.layout,X)}; g.P.ek=function(){return!1}; g.P.hH=function(G){var X=Nj(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),Q=Nj(this.layout.clientMetadata,"metadata_type_layout_exit_ms");G*=1E3;if(X<=G&&G0&&oe(this.N(),X)}; g.P.oM=function(G){this.C.delete(G.slotId);for(var X=[],Q=g.e(this.DW.values()),R=Q.next();!R.done;R=Q.next()){R=R.value;var S=R.trigger;S instanceof gk&&S.triggeringSlotId===G.slotId&&X.push(R)}X.length>0&&oe(this.N(),X)}; g.P.RM=function(G){for(var X=[],Q=g.e(this.DW.values()),R=Q.next();!R.done;R=Q.next()){R=R.value;var S=R.trigger;S instanceof Ys&&S.slotType===G.slotType&&S.N!==G.slotId&&X.push(R)}X.length>0&&oe(this.N(),X)}; g.P.Un=function(G){this.Y.add(G.slotId);for(var X=[],Q=g.e(this.DW.values()),R=Q.next();!R.done;R=Q.next())R=R.value,R.trigger instanceof PE&&G.slotId===R.trigger.triggeringSlotId&&X.push(R);X.length>0&&oe(this.N(),X)}; g.P.QU=function(G){this.Y.delete(G.slotId);this.V.add(G.slotId);for(var X=[],Q=g.e(this.DW.values()),R=Q.next();!R.done;R=Q.next())if(R=R.value,R.trigger instanceof sW)G.slotId===R.trigger.triggeringSlotId&&X.push(R);else if(R.trigger instanceof Xl){var S=R.trigger;G.slotId===S.slotId&&this.W.has(S.triggeringLayoutId)&&X.push(R)}X.length>0&&oe(this.N(),X)}; g.P.aM=function(G){for(var X=[],Q=g.e(this.DW.values()),R=Q.next();!R.done;R=Q.next())R=R.value,R.trigger instanceof T8&&G.slotId===R.trigger.triggeringSlotId&&X.push(R);X.length>0&&oe(this.N(),X)}; g.P.IM=function(G){for(var X=[],Q=g.e(this.DW.values()),R=Q.next();!R.done;R=Q.next())R=R.value,R.trigger instanceof z8&&G.slotId===R.trigger.triggeringSlotId&&X.push(R);X.length>0&&oe(this.N(),X)}; g.P.LL=function(G,X){this.S.add(X.layoutId)}; g.P.Wz=function(G,X){this.S.delete(X.layoutId)}; g.P.X7=function(G,X){this.W.add(X.layoutId);for(var Q=[],R=g.e(this.DW.values()),S=R.next();!S.done;S=R.next())if(S=S.value,S.trigger instanceof Qh)X.layoutId===S.trigger.triggeringLayoutId&&Q.push(S);else if(S.trigger instanceof ks){var Z=S.trigger;G.slotType===Z.slotType&&X.layoutType===Z.layoutType&&X.layoutId!==Z.N&&Q.push(S)}else S.trigger instanceof Xl&&(Z=S.trigger,X.layoutId===Z.triggeringLayoutId&&this.V.has(Z.slotId)&&Q.push(S));Q.length>0&&oe(this.N(),Q)}; g.P.YS=function(G,X,Q){this.W.delete(X.layoutId);G=[];for(var R=g.e(this.DW.values()),S=R.next();!S.done;S=R.next())if(S=S.value,S.trigger instanceof Ss&&X.layoutId===S.trigger.triggeringLayoutId&&G.push(S),S.trigger instanceof Rw){var Z=S.trigger;X.layoutId===Z.triggeringLayoutId&&Z.N.includes(Q)&&G.push(S)}G.length>0&&oe(this.N(),G)}; g.P.Pz=function(){}; g.P.SN=function(){this.V.clear()}; g.P.o9=function(){};g.T(jO,g.I);jO.prototype.Pi=function(G,X,Q,R){if(this.DW.has(X.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(X instanceof i0))throw new n("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in CloseRequestedTriggerAdapter");this.DW.set(X.triggerId,new BE(G,X,Q,R))}; jO.prototype.OR=function(G){this.DW.delete(G.triggerId)};g.T(m6,g.I);m6.prototype.Pi=function(G,X,Q,R){if(this.DW.has(X.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(X instanceof JA||X instanceof Mc))throw new n("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.DW.set(X.triggerId,new BE(G,X,Q,R))}; m6.prototype.OR=function(G){this.DW.delete(G.triggerId)}; m6.prototype.SN=function(G){for(var X=[],Q=X.push,R=Q.apply,S=[],Z=g.e(this.DW.values()),H=Z.next();!H.done;H=Z.next())H=H.value,H.trigger instanceof JA&&H.trigger.Lx===G&&S.push(H);R.call(Q,X,g.o0(S));Q=X.push;R=Q.apply;S=[];Z=g.e(this.DW.values());for(H=Z.next();!H.done;H=Z.next())H=H.value,H.trigger instanceof Mc&&H.trigger.N!==G&&S.push(H);R.call(Q,X,g.o0(S));X.length&&oe(this.N(),X)}; m6.prototype.o9=function(G){for(var X=[],Q=X.push,R=Q.apply,S=[],Z=g.e(this.DW.values()),H=Z.next();!H.done;H=Z.next()){H=H.value;var w=H.trigger;w instanceof Mc&&w.N===G&&S.push(H)}R.call(Q,X,g.o0(S));X.length&&oe(this.N(),X)};g.T(og,g.I);g.P=og.prototype;g.P.Pi=function(G,X,Q,R){if(this.DW.has(X.triggerId))throw new n("Tried to register duplicate trigger for slot.");var S="adtriggercuerange:"+X.triggerId;if(X instanceof hp)DjT(this,G,X,Q,R,S,X.N.start,X.N.end,X.Lx,X.visible);else if(X instanceof G8)DjT(this,G,X,Q,R,S,0x7ffffffffffff,0x8000000000000,X.Lx,X.visible);else throw new n("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in CueRangeTriggerAdapter");}; g.P.OR=function(G){var X=this.DW.get(G.triggerId);X&&this.yN.get().removeCueRange(X.cueRangeId);this.DW.delete(G.triggerId)}; g.P.onCueRangeEnter=function(G){var X=NGC(this,G);if(X&&(X=this.DW.get(X)))if(g.N($9(this.RU.get()),32))this.N.add(X.cueRangeId);else{var Q=X==null?void 0:X.Sn.trigger;if(Q instanceof hp||Q instanceof G8){if(hR(this.context.HM.get())){var R=X.Sn.slot,S=X.Sn.layout,Z={};this.context.w2.Ws("cre",(Z.ca=X.Sn.category,Z.tt=Q.triggerType,Z.st=R.slotType,Z.lt=S==null?void 0:S.layoutType,Z.cid=G,Z))}oe(this.W(),[X.Sn])}}}; g.P.onCueRangeExit=function(G){(G=NGC(this,G))&&(G=this.DW.get(G))&&this.N.delete(G.cueRangeId)}; g.P.Gg=function(G){if(hw(G,16)<0){G=g.e(this.N);for(var X=G.next();!X.done;X=G.next())this.onCueRangeEnter(X.value,!0);this.N.clear()}}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.X7=function(){}; g.P.YS=function(){}; g.P.Pz=function(){}; g.P.Sc=function(){}; g.P.onFullscreenToggled=function(){}; g.P.Dk=function(){}; g.P.lc=function(){}; g.P.mB=function(){}; g.P.onVolumeChange=function(){}; g.P.Q1=function(){}; g.P.qa=function(){};g.T(uM,g.I);g.P=uM.prototype; g.P.Pi=function(G,X,Q,R){if(this.W.has(X.triggerId)||this.Y.has(X.triggerId))throw new n("Tried to re-register the trigger.");G=new BE(G,X,Q,R);if(G.trigger instanceof wk)this.W.set(G.trigger.triggerId,G);else if(G.trigger instanceof ZQ)this.Y.set(G.trigger.triggerId,G);else throw new n("Incorrect TriggerType: Tried to register trigger of type "+G.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.W.has(G.trigger.triggerId)&&G.slot.slotId===this.N&&oe(this.V(),[G])}; g.P.OR=function(G){this.W.delete(G.triggerId);this.Y.delete(G.triggerId)}; g.P.Ne=function(G){G=G.slotId;if(this.N!==G){var X=[];this.N!=null&&X.push.apply(X,g.o0(Ari(this.Y,this.N)));G!=null&&X.push.apply(X,g.o0(Ari(this.W,G)));this.N=G;X.length&&oe(this.V(),X)}}; g.P.FD=function(){}; g.P.ev=function(){};g.T(P3,g.I);g.P=P3.prototype;g.P.Pi=function(G,X,Q,R){if(this.DW.has(X.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(X instanceof js))throw new n("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.DW.set(X.triggerId,new BE(G,X,Q,R))}; g.P.OR=function(G){this.DW.delete(G.triggerId)}; g.P.X7=function(){}; g.P.YS=function(){}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){};g.T(sq,g.I);g.P=sq.prototype;g.P.Pz=function(G,X){for(var Q=[],R=g.e(this.DW.values()),S=R.next();!S.done;S=R.next()){S=S.value;var Z=S.trigger;Z.opportunityType===G&&(Z.associatedSlotId&&Z.associatedSlotId!==X||Q.push(S))}Q.length&&oe(this.N(),Q)}; g.P.Pi=function(G,X,Q,R){if(this.DW.has(X.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(X instanceof HpG))throw new n("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in OpportunityEventTriggerAdapter");this.DW.set(X.triggerId,new BE(G,X,Q,R))}; g.P.OR=function(G){this.DW.delete(G.triggerId)}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.X7=function(){}; g.P.YS=function(){};g.T(TW,g.I);g.P=TW.prototype;g.P.Pi=function(G,X,Q,R){G=new BE(G,X,Q,R);if(X instanceof HE||X instanceof LN||X instanceof qc||X instanceof ow||X instanceof RzC){if(this.DW.has(X.triggerId))throw new n("Tried to register duplicate trigger for slot.");this.DW.set(X.triggerId,G)}else throw new n("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in PrefetchTriggerAdapter");}; g.P.OR=function(G){this.DW.delete(G.triggerId)}; g.P.kF=function(G){var X=G.slotFulfillmentTriggers.find(function(Q){return Q instanceof HE}); X&&(K_(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",X.breakDurationMs,new Set([G.slotId]),!0),ca(this.nO.get(),"ads_css","sid."+G.slotId+";bd."+X.breakDurationMs))}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.X7=function(){}; g.P.YS=function(){}; g.P.Pz=function(){}; g.P.ek=function(G){var X=this;if(!this.N)return qQ("Unexpected cue break before fetch instructions are available"),!1;this.W&&this.W.stop();this.C&&g.DA(this.C);var Q=vvG(this,G);if(!Q){var R=$jl(this),S=this.J!==void 0&&Date.now()<=this.J+1E4;ca(this.nO.get(),"ads_ncfs","cid."+G.identifier+";cd."+G.Du.toFixed(3)+";ccs."+S+";cfa."+this.V+";bdc."+R.length+";"+R.slice(0,6).map(function(Z){return";bd."+Z}).join("")); return S?(Jo(this.lE,this.N,G),!0):!1}(R=Nj(Q.slot.clientMetadata,"metadata_type_triggering_cue_point"))?R.current=G:qQ("Expected triggering cue point ref to be available",Q.slot);(new g.fU(function(){var Z=Q.trigger,H=Q.slot;K_(X,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",Z.breakDurationMs,new Set,!0);K_(X,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",Z.breakDurationMs,new Set,!1);for(var w=0,h=g.e(X.DW.values()),L=h.next();!L.done;L=h.next()){L=L.value;var k=L.trigger; L.slot.slotId===H.slotId&&(X.DW.delete(k.triggerId),w++)}ca(X.nO.get(),"ads_csf","sid."+H.slotId+";bd."+Z.breakDurationMs+";dt."+w)},10)).start(); return!0}; g.P.hH=function(){}; g.P.SN=function(G){var X=this;this.V=!1;this.J=Date.now();if(this.N&&this.N.contentCpn!==G)qQ("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:G,fetchInstructionsCpn:this.N.contentCpn}),eO(this);else{this.Y=new g.fU(function(){if(X.V)delete X.Y;else{var R=X.RU.get().getGetAdBreakContext(),S;if(Number(R==null?void 0:(S=R.livePlaybackPosition)==null?void 0:S.utcTimeMillis)>0)delete X.Y,b$0(X);else{var Z;(Z=X.Y)==null||Z.start()}}},200); var Q;(Q=this.Y)==null||Q.start()}}; g.P.o9=function(G){this.N&&this.N.contentCpn!==G&&qQ("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:G,fetchInstructionsCpn:this.N.contentCpn},!0);eO(this)}; g.P.R7=function(G){var X=this;if(this.N)qQ("Unexpected multiple fetch instructions for the current content");else{this.N=G;G=i$w(G);this.W=new g.fU(function(){b$0(X)},G?G:6E5); this.W.start();this.C=new g.fU(function(){X.N&&(X.W&&(X.W.stop(),X.W.start()),nvT(X,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},JrC(this.N)); G=this.RU.get().getCurrentTimeSec(1,!1);for(var Q=g.e(this.GF.get().Ke),R=Q.next();!R.done;R=Q.next())R=R.value,ca(this.nO.get(),"nocache","ct."+Date.now()+";cmt."+G+";d."+R.Du.toFixed(3)+";tw."+(R.startSecs-G)+";cid."+R.identifier+";")}}; g.P.zT=function(){g.I.prototype.zT.call(this);eO(this)};g.T(r9,g.I);g.P=r9.prototype;g.P.Pi=function(G,X,Q,R){if(this.DW.has(X.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(X instanceof l1))throw new n("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.DW.set(X.triggerId,new BE(G,X,Q,R));G=this.N.has(X.triggeringLayoutId)?this.N.get(X.triggeringLayoutId):new Set;G.add(X);this.N.set(X.triggeringLayoutId,G)}; g.P.OR=function(G){this.DW.delete(G.triggerId);if(!(G instanceof l1))throw new n("Incorrect TriggerType: Tried to unregister trigger of type "+G.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var X=this.W.get(G.triggerId);X&&(X.dispose(),this.W.delete(G.triggerId));if(X=this.N.get(G.triggeringLayoutId))X.delete(G),X.size===0&&this.N.delete(G.triggeringLayoutId)}; g.P.kF=function(){}; g.P.oM=function(){}; g.P.RM=function(){}; g.P.Un=function(){}; g.P.QU=function(){}; g.P.aM=function(){}; g.P.IM=function(){}; g.P.LL=function(){}; g.P.Wz=function(){}; g.P.Pz=function(){}; g.P.X7=function(G,X){var Q=this;if(this.N.has(X.layoutId)){G=this.N.get(X.layoutId);G=g.e(G);var R=G.next();for(X={};!R.done;X={mG:void 0},R=G.next())X.mG=R.value,R=new g.fU(function(S){return function(){var Z=Q.DW.get(S.mG.triggerId);oe(Q.Y(),[Z])}}(X),X.mG.durationMs),R.start(),this.W.set(X.mG.triggerId,R)}}; g.P.YS=function(){};g.T(ag,g.I);ag.prototype.Pi=function(G,X,Q,R){if(this.DW.has(X.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(X instanceof b0))throw new n("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in VideoTransitionTriggerAdapter.");this.DW.set(X.triggerId,new BE(G,X,Q,R))}; ag.prototype.OR=function(G){this.DW.delete(G.triggerId)};zW.prototype.ws=function(G){return G.kind==="AD_PLACEMENT_KIND_START"};g.T(Uq,g.I);g.P=Uq.prototype;g.P.logEvent=function(G){this.Ep(G)}; g.P.K2=function(G,X,Q){this.Ep(G,void 0,void 0,void 0,X,void 0,void 0,void 0,X.adSlotLoggingData,void 0,void 0,Q)}; g.P.L4=function(G,X,Q,R){this.Ep(G,void 0,void 0,void 0,X,Q?Q:void 0,void 0,void 0,X.adSlotLoggingData,Q?Q.adLayoutLoggingData:void 0,void 0,R);X=ET().resolve(TY(QB))==null?void 0:Si();G=X==null?void 0:X.adsSeenHotConfig;X=X==null?void 0:X.adsHotConfig;(G==null?0:G.logOnAdsSeen)&&(X==null?0:X.webEnablePremiumAdsSeenLogging)&&je7(this,Q?Q:void 0,R)}; g.P.O3=function(G,X,Q,R){Fd(this.HM.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+G,"trigger:",Q,"slot:",X,"layout:",R);vc(this.N.get())&&this.Ep(G,void 0,void 0,void 0,X,R?R:void 0,void 0,Q,X.adSlotLoggingData,R?R.adLayoutLoggingData:void 0)}; g.P.RN=function(G,X,Q,R,S){this.Ep(G,X,Q,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S)}; g.P.Tx=function(G,X,Q,R){this.Ep("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,Q,R,void 0,void 0,Q.adSlotLoggingData,R?R.adLayoutLoggingData:void 0,{errorType:G,errorMessage:X})}; g.P.Ep=function(G,X,Q,R,S,Z,H,w,h,L,k,Y){var M=this;Y=Y===void 0?0:Y;Fd(this.HM.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+G,"slot:",S,"layout:",Z,"ping:",H,"Opportunity:",{opportunityType:X,associatedSlotId:Q,U8M:R,S9T:w,adSlotLoggingData:h,adLayoutLoggingData:L});try{var m=function(){if(!M.HM.get().U.Z().G("html5_disable_client_tmp_logs")&&G!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){G||qQ("Empty PACF event type",S,Z);var u=vc(M.N.get()),r={eventType:G,eventOrder:++M.eventCount},x={}; S&&(x.slotData=b2(u,S));Z&&(x.layoutData=thU(u,Z));H&&(x.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:H.N.serializedAdPingMetadata,pingIndex:H.index});w&&(x.triggerData=$v(w.trigger,w.category));X&&(x.opportunityData=Vhy(u,X,Q,R));u={organicPlaybackContext:{contentCpn:Dt(M.lB.get(),1).clientPlaybackNonce}};u.organicPlaybackContext.isLivePlayback=Dt(M.lB.get(),1).IW;var c;u.organicPlaybackContext.isMdxPlayback=(c=Dt(M.lB.get(),1))==null?void 0:c.isMdxPlayback; var z;if((z=Dt(M.lB.get(),1))==null?0:z.daiEnabled)u.organicPlaybackContext.isDaiContent=!0;var B;if(c=(B=Dt(M.lB.get(),2))==null?void 0:B.clientPlaybackNonce)u.adVideoPlaybackContext={adVideoCpn:c};u&&(x.externalContext=u);r.adClientData=x;h&&(r.serializedSlotAdServingData=h.serializedSlotAdServingDataEntry);L&&(r.serializedAdServingData=L.serializedAdServingDataEntry);k&&(r.errorInfo=k);g.QL("adsClientStateChange",{adsClientEvent:r})}}; Y&&Y>0?g.D$(g.A7(),function(){return m()},Y):m()}catch(u){Fd(this.HM.get(),"html5_log_pacf_logging_errors")&&g.D$(g.A7(),function(){qQ(u instanceof Error?u:String(u),S,Z,{pacf_message:"exception during pacf logging"})})}};var bto=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.T(lM,Uq);g.P=lM.prototype; g.P.K2=function(G,X,Q){Uq.prototype.K2.call(this,G,X,Q);hR(this.HM.get())&&(Q={},this.context.w2.Ws("pacf",(Q.et=G,Q.st=X.slotType,Q.si=X.slotId,Q)))}; g.P.L4=function(G,X,Q,R){var S=bto.has(G);Uq.prototype.L4.call(this,G,X,Q,R);hR(this.HM.get(),S)&&(R={},this.context.w2.Ws("pacf",(R.et=G,R.st=X.slotType,R.si=X.slotId,R.lt=Q==null?void 0:Q.layoutType,R.li=Q==null?void 0:Q.layoutId,R.p_ac=Q==null?void 0:Q.layoutId,R)))}; g.P.RN=function(G,X,Q,R,S){Uq.prototype.RN.call(this,G,X,Q,R,S);hR(this.HM.get())&&(Q={},this.context.w2.Ws("pacf",(Q.et=G,Q.ot=X,Q.ss=R==null?void 0:R.length,Q)))}; g.P.O3=function(G,X,Q,R){Uq.prototype.O3.call(this,G,X,Q,R);if(hR(this.HM.get())){var S={};this.context.w2.Ws("pacf",(S.et=G,S.tt=Q.trigger.triggerType,S.tc=Q.category,S.st=X.slotType,S.si=X.slotId,S.lt=R==null?void 0:R.layoutType,S.li=R==null?void 0:R.layoutId,S.p_ac=R==null?void 0:R.layoutId,S))}}; g.P.Tx=function(G,X,Q,R){Uq.prototype.Tx.call(this,G,X,Q,R);if(hR(this.HM.get(),!0)){var S={};this.context.w2.Ws("perror",(S.ert=G,S.erm=X,S.st=Q.slotType,S.si=Q.slotId,S.lt=R==null?void 0:R.layoutType,S.li=R==null?void 0:R.layoutId,S.p_ac=R==null?void 0:R.layoutId,S))}}; g.P.Ep=function(G,X,Q,R,S,Z,H,w,h,L,k){var Y=this.HM.get();g.jJ(Y.U.Z())?(Y=this.HM.get(),Y=g.i2(Y.U.Z().experiments,"H5_async_logging_delay_ms")):Y=void 0;Uq.prototype.Ep.call(this,G,X,Q,R,S,Z,H,w,h,L,k,Y)};B3.prototype.clear=function(){this.N.clear()};FU.prototype.state=function(){return this.N==="fulfilled"?{state:"fulfilled",value:this.result}:this.N==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; FU.prototype.V=function(G){tT(G)||C_(G)?p_(VX(G),this.V.bind(this),this.reject.bind(this)):(this.N="fulfilled",this.result=G,W3(this))}; FU.prototype.reject=function(G){this.N="rejected";this.error=G;W3(this)}; var C_=w1(function(G){return qlG(G)?G instanceof FU:!1});Object.freeze({kSH:function(G){var X=n_(G);return p_(AT(X,function(Q){return X[Q].N==="rejected"}),function(Q){return Number.isNaN(Q)?X.map(function(R){return R.state().value}):X[Q]})}, imb:function(G){var X=n_(G);return p_(AT(X),function(){return X.map(function(Q){return Q.state()})})}, JDA:function(G){var X=n_(G);return p_(AT(X,function(Q){return X[Q].N==="fulfilled"}),function(Q){return Number.isNaN(Q)?Ig(new AggregateError(X.map(function(R){return R.state().reason}))):X[Q].state().value})}, cD_:function(G){var X=n_(G);return p_(AT(X,function(){return!0}),function(Q){return X[Q]})}});var $e=window.TK_||"en";iM.prototype.jp=function(G){this.client=G}; iM.prototype.N=function(){this.clear();this.csn=g.oU()}; iM.prototype.clear=function(){this.Y.clear();this.W.clear();this.V.clear();this.csn=null};Xy.prototype.jp=function(G){g.Do(G1().jp).bind(G1())(G)}; Xy.prototype.clear=function(){g.Do(G1().clear).bind(G1())()};g.P=Qs.prototype;g.P.jp=function(G){this.client=G}; g.P.Zc=function(G,X){var Q=this;X=X===void 0?{}:X;g.Do(function(){var R,S,Z,H=((R=g.y(G==null?void 0:G.commandMetadata,g.ux))==null?void 0:R.rootVe)||((S=g.y(G==null?void 0:G.commandMetadata,YML))==null?void 0:(Z=S.screenVisualElement)==null?void 0:Z.uiType);if(H){R=g.y(G==null?void 0:G.commandMetadata,UPn);if(R==null?0:R.parentTrackingParams){var w=g.jk(R.parentTrackingParams);if(R.parentCsn)var h=R.parentCsn}else X.clickedVisualElement?w=X.clickedVisualElement:G.clickTrackingParams&&(w=g.jk(G.clickTrackingParams)); a:{R=g.y(G,g.TU);S=g.y(G,aNn);if(R){if(S=seG(R,"VIDEO")){R={token:S,videoId:R.videoId};break a}}else if(S&&(R=seG(S,"PLAYLIST"))){R={token:R,playlistId:S.playlistId};break a}R=void 0}X=Object.assign({},{cttAuthInfo:R,parentCsn:h},X);if(g.jg("expectation_logging")){var L;X.loggingExpectations=((L=g.y(G==null?void 0:G.commandMetadata,YML))==null?void 0:L.loggingExpectations)||void 0}S9(Q,H,w,X)}else g.EL(new g.Ic("Error: Trying to create a new screen without a rootVeType",G))})()}; g.P.clickCommand=function(G,X,Q){G=G.clickTrackingParams;Q=Q===void 0?0:Q;G?(Q=g.oU(Q===void 0?0:Q))?(y_(this.client,Q,g.jk(G),X),X=!0):X=!1:X=!1;return X}; g.P.stateChanged=function(G,X,Q){this.visualElementStateChanged(g.jk(G),X,Q===void 0?0:Q)}; g.P.visualElementStateChanged=function(G,X,Q){Q=Q===void 0?0:Q;Q===0&&this.W.has(Q)?this.T.push([G,X]):EUw(this,G,X,Q)};w$.prototype.fetch=function(G,X,Q){var R=this,S=zKi(G,X,Q);return new Promise(function(Z,H){function w(){if(Q==null?0:Q.xq)try{var L=R.handleResponse(G,S.status,S.response,Q);Z(L)}catch(k){H(k)}else Z(R.handleResponse(G,S.status,S.response,Q))} S.onerror=w;S.onload=w;var h;S.send((h=X.body)!=null?h:null)})}; w$.prototype.handleResponse=function(G,X,Q,R){Q=Q.replace(")]}'","");try{var S=JSON.parse(Q)}catch(Z){g.EL(new g.Ic("JSON parsing failed after XHR fetch",G,X,Q));if((R==null?0:R.xq)&&Q)throw new g.Wf(1,"JSON parsing failed after XHR fetch");S={}}X!==200&&(g.EL(new g.Ic("XHR API fetch failed",G,X,Q)),S=Object.assign({},S,{errorMetadata:{status:X}}));return S};hX.getInstance=function(){var G=g.QH("ytglobal.storage_");G||(G=new hX,g.G3("ytglobal.storage_",G));return G}; hX.prototype.estimate=function(){var G,X,Q;return g.F(function(R){G=navigator;return((X=G.storage)==null?0:X.estimate)?R.return(G.storage.estimate()):((Q=G.webkitTemporaryStorage)==null?0:Q.queryUsageAndQuota)?R.return(ckZ()):R.return()})}; g.G3("ytglobal.storageClass_",hX);GB.prototype.Rh=function(G){this.handleError(G)}; GB.prototype.logEvent=function(G,X){switch(G){case "IDB_DATA_CORRUPTED":g.jg("idb_data_corrupted_killswitch")||this.N("idbDataCorrupted",X);break;case "IDB_UNEXPECTEDLY_CLOSED":this.N("idbUnexpectedlyClosed",X);break;case "IS_SUPPORTED_COMPLETED":g.jg("idb_is_supported_completed_killswitch")||this.N("idbIsSupportedCompleted",X);break;case "QUOTA_EXCEEDED":U3V(this,X);break;case "TRANSACTION_ENDED":this.Y&&Math.random()<=.1&&this.N("idbTransactionEnded",X);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":G= Object.assign({},X,{hasWindowUnloaded:this.W}),this.N("idbTransactionAborted",G)}};var fn={},C1l=g.nl("yt-player-local-media",{KW:(fn.index={zO:2},fn.media={zO:2},fn.captions={zO:5},fn),shared:!1,upgrade:function(G,X){X(2)&&(g.rb(G,"index"),g.rb(G,"media"));X(5)&&g.rb(G,"captions");X(6)&&(aq(G,"metadata"),aq(G,"playerdata"))}, version:5});var vNa={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},DF;a:{var No=g.IB();No=No.toLowerCase();if(g.B$(No,"android")){var Jvn=No.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Jvn){var itL=parseFloat(Jvn[1]);if(itL<100){DF=itL;break a}}var GRd=No.match("("+Object.keys(vNa).join("|")+")");DF=GRd?vNa[GRd[0]]:0}else DF=void 0}var QT=DF,Xk=QT>=0;var L0G=window;var lyT=Fp(function(){var G,X;return(X=(G=window).matchMedia)==null?void 0:X.call(G,"(prefers-reduced-motion: reduce)").matches});var km;g.LR=new mp;km=0;var u$=d3Z()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.pl?!0:!1;var Mg={lz:function(G,X){G[q[20]](0,X)}, Xd:function(G,X){var Q=G[0];G[0]=G[X%G[q[12]]];G[X%G[q[12]]]=Q}, O2:function(G){G[q[29]]()}};var gWV={LIU:"adunit",oUH:"detailpage",JNB:"editpage",e0U:"embedded",hbH:"leanback",nwb:"previewpage",Q9T:"profilepage",fZ:"unplugged",azU:"playlistoverview",pDH:"sponsorshipsoffer",NBm:"shortspage",D1O:"handlesclaiming",ki_:"immersivelivepage",Dab:"creatormusic",iuT:"immersivelivepreviewpage",O4U:"admintoolyurt",A8A:"shortsaudiopivot",VNM:"consumption"};var pZC=2592E3;var Aq,XLo,xb;Aq={};g.KR=(Aq.STOP_EVENT_PROPAGATION="html5-stop-propagation",Aq.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Aq.IV_DRAWER_OPEN="ytp-iv-drawer-open",Aq.MAIN_VIDEO="html5-main-video",Aq.VIDEO_CONTAINER="html5-video-container",Aq.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Aq.HOUSE_BRAND="house-brand",Aq);XLo={};xb=(XLo.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",XLo.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",XLo);var Jk0={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var QQG={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},R5Z={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"},K0X={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var X9y={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.a_.prototype.getLanguageInfo=function(){return this.kP}; g.a_.prototype.getXtags=function(){if(!this.xtags){var G=this.id.split(";");G.length>1&&(this.xtags=G[1])}return this.xtags}; g.a_.prototype.toString=function(){return this.kP.name}; g.a_.prototype.getLanguageInfo=g.a_.prototype.getLanguageInfo;E4.prototype.equals=function(G){return this.W===G.W&&this.N===G.N&&this.Y===G.Y&&this.reason===G.reason&&(!O4||this.jA===G.jA)}; E4.prototype.isLocked=function(){return this.Y&&!!this.W&&this.W===this.N}; E4.prototype.compose=function(G){if(G.Y&&z1(G))return jX;if(G.Y||z1(this))return G;if(this.Y||z1(G))return this;var X=this.W&&G.W?Math.max(this.W,G.W):this.W||G.W,Q=this.N&&G.N?Math.min(this.N,G.N):this.N||G.N;X=Math.min(X,Q);var R=0;O4&&(R=this.jA!==0&&G.jA!==0?Math.min(this.jA,G.jA):this.jA===0?G.jA:this.jA);return O4&&X===this.W&&Q===this.N&&R===this.jA||!O4&&X===this.W&&Q===this.N?this:O4?new E4(X,Q,!1,Q===this.N&&R===this.jA?this.reason:G.reason,R):new E4(X,Q,!1,Q===this.N?this.reason:G.reason)}; E4.prototype.V=function(G){return!G.video||O4&&this.jA!==0&&this.jA=0}; g.P.D3=function(){var G=this.segments[this.segments.length-1];return G?G.endTime:NaN}; g.P.Bn=function(){return this.segments[0].startTime}; g.P.E6=function(){return this.segments.length}; g.P.VX=function(){return 0}; g.P.NG=function(G){return(G=this.vc(G))?G.oU:-1}; g.P.DT=function(G){return(G=this.DO(G))?G.sourceURL:""}; g.P.getStartTime=function(G){return(G=this.DO(G))?G.startTime:0}; g.P.ra=function(G){return this.getStartTime(G)+this.getDuration(G)}; g.P.oa=Gi(1);g.P.isLoaded=function(){return this.segments.length>0}; g.P.DO=function(G){if(this.N&&this.N.oU===G)return this.N;G=g.fa(this.segments,new JX(G,0,0,0,""),function(X,Q){return X.oU-Q.oU}); return this.N=G>=0?this.segments[G]:null}; g.P.vc=function(G){if(this.N&&this.N.startTime<=G&&G=0?this.segments[G]:this.segments[Math.max(0,-G-2)]}; g.P.append=function(G){if(G.length)if(G=g.lL(G),this.segments.length){var X=this.segments.length?g.uL(this.segments).endTime:0,Q=G[0].oU-this.i9();Q>1&&rGT(this.segments);for(Q=Q>0?0:-Q+1;QG.oU&&this.index.Uu()<=G.oU+1}; g.P.update=function(G,X,Q){this.index.append(G);lXX(this.index,Q);G=this.index;G.W=X;G.Y="update"}; g.P.pL=function(){return this.Qh()?!0:nf.prototype.pL.call(this)}; g.P.TI=function(G,X){var Q=this.index.DT(G),R=this.index.getStartTime(G),S=this.index.getDuration(G),Z;X?S=Z=0:Z=this.info.jA>0?this.info.jA*S:1E3;return new HB([new io(3,this,void 0,"liveCreateRequestInfoForSegment",G,R,S,0,Z,!X)],Q)}; g.P.yQ=function(){return this.Qh()?0:this.initRange.length}; g.P.AK=function(){return!1};jK.prototype.update=function(G){var X=void 0;this.W&&(X=this.W);var Q=new jK,R=Array.from(G.getElementsByTagName("S"));if(R.length){var S=+kl(G,"timescale")||1,Z=(+R[0].getAttribute("t")||0)/S,H=+kl(G,"startNumber")||0;Q.V=Z;var w=X?X.startSecs+X.Du:0,h=Date.parse(xrV(kl(G,"yt:segmentIngestTime")))/1E3;Q.C=G.parentElement.tagName==="SegmentTemplate";Q.C&&(Q.J=kl(G,"media"));G=X?H-X.oU:1;Q.S=G>0?0:-G+1;G=g.e(R);for(R=G.next();!R.done;R=G.next()){R=R.value;for(var L=+R.getAttribute("d")/S,k=(+R.getAttribute("yt:sid")|| 0)/S,Y=+R.getAttribute("r")||0,M=0;M<=Y;M++)if(X&&H<=X.oU)H++;else{var m=new aPG(H,w,L,h+k,Z);Q.N.push(m);var u=R;var r=S,x=m.startSecs;m=u.getAttribute("yt:cuepointTimeOffset");var c=u.getAttribute("yt:cuepointDuration");if(m&&c){m=Number(m);x=-m/r+x;r=Number(c)/r;c=u.getAttribute("yt:cuepointContext")||null;var z=u.getAttribute("yt:cuepointIdentifier")||"";u=u.getAttribute("yt:cuepointEvent")||"";u=new wK(x,r,c,z,Rhk[u]||"unknown",m)}else u=null;u&&Q.Y.push(u);H++;w+=L;Z+=L;h+=L+k}}Q.N.length&& (Q.W=g.uL(Q.N))}this.S=Q.S;this.W=Q.W||this.W;g.Bn(this.N,Q.N);g.Bn(this.Y,Q.Y);this.C=Q.C;this.J=Q.J;this.V===-1&&(this.V=Q.getStreamTimeOffset())}; jK.prototype.getStreamTimeOffset=function(){return this.V===-1?0:this.V};g.T(mZ,g.iF);g.P=mZ.prototype;g.P.qp=function(){return this.Rs}; g.P.PD=function(G,X){G=oW(this,G);return G>=0&&(X||!this.segments[G].pending)}; g.P.Uu=function(){return this.HD?this.segments.length?this.vc(this.Bn()).oU:-1:g.iF.prototype.Uu.call(this)}; g.P.Bn=function(){if(this.It)return 0;if(!this.HD)return g.iF.prototype.Bn.call(this);if(!this.segments.length)return 0;var G=Math.max(g.uL(this.segments).endTime-this.Hh,0);return this.xO>0&&this.vc(G).oU0)return this.pQ/1E3;if(!this.segments.length)return g.iF.prototype.D3.call(this);var G=this.i9();if(!this.HD||G<=this.segments[this.segments.length-1].oU)G=this.segments[this.segments.length-1];else{var X=this.segments[this.segments.length-1];G=new JX(G,Math.max(0,X.startTime-(X.oU-G)*this.Rs),this.Rs,0,"sq/"+G,void 0,void 0,!0)}return this.It?Math.min(this.Hh,G.endTime):G.endTime}; g.P.E6=function(){return this.HD?this.segments.length?this.i9()-this.Uu()+1:0:g.iF.prototype.E6.call(this)}; g.P.i9=function(){var G=Math.min(this.HK,Math.max(g.iF.prototype.i9.call(this),this.Tq)),X=this.Hh*1E3;X=this.pQ>0&&this.pQ0&&this.Tq>0&&!X&&(X=this.vc(this.Hh))&&(G=Math.min(X.oU-1,G));return G}; g.P.aG=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.P.aN=function(G){var X=oW(this,G.oU);if(X>=0)this.segments[X]=G;else if(this.segments.splice(-(X+1),0,G),this.Ft&&G.oU%(300/this.Rs)===0){var Q=this.segments[0].oU,R=Math.floor(this.Ft/this.Rs);G=G.oU-R;X=-(X+1)-R;X>0&&G>Q&&(this.segments=this.segments.slice(X))}}; g.P.RR=function(){return this.Tq}; g.P.fJ=function(G){return M9?!this.W&&G>=0&&this.i9()<=G:g.iF.prototype.fJ.call(this,G)}; g.P.vc=function(G){if(!this.HD)return g.iF.prototype.vc.call(this,G);if(!this.segments.length)return null;var X=this.segments[this.segments.length-1];if(G=X.endTime)X=X.oU+Math.floor((G-X.endTime)/this.Rs+1);else{X=DV(this.segments,function(R){return G=R.endTime?1:0}); if(X>=0)return this.segments[X];var Q=-(X+1);X=this.segments[Q-1];Q=this.segments[Q];X=Math.floor((G-X.endTime)/((Q.startTime-X.endTime)/(Q.oU-X.oU-1))+1)+X.oU}return this.DO(X)}; g.P.DO=function(G){if(!this.HD)return g.iF.prototype.DO.call(this,G);if(!this.segments.length)return null;var X=oW(this,G);if(X>=0)return this.segments[X];var Q=-(X+1);X=this.Rs;if(Q===0)var R=Math.max(0,this.segments[0].startTime-(this.segments[0].oU-G)*X);else Q===this.segments.length?(R=this.segments[this.segments.length-1],R=R.endTime+(G-R.oU-1)*X):(R=this.segments[Q-1],X=this.segments[Q],X=(X.startTime-R.endTime)/(X.oU-R.oU-1),R=R.endTime+(G-R.oU-1)*X);return new JX(G,R,X,0,"sq/"+G,void 0,void 0, !0)}; var M9=!1;g.T(ul,Lh);g.P=ul.prototype;g.P.Dl=function(){return!0}; g.P.pL=function(){return!0}; g.P.BX=function(G){return this.Lb()&&G.Y&&!G.V||!G.N.index.fJ(G.oU)}; g.P.Uc=function(){}; g.P.Q3=function(G,X){return typeof G!=="number"||isFinite(G)?Lh.prototype.Q3.call(this,G,X===void 0?!1:X):new HB([new io(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.w$,void 0,this.w$*this.info.jA)],"")}; g.P.TI=function(G,X){var Q=Q===void 0?!1:Q;if(this.index.PD(G))return Lh.prototype.TI.call(this,G,X);var R=this.index.getStartTime(G),S=Math.round(this.w$*this.info.jA),Z=this.w$;X&&(Z=S=0);return new HB([new io(Q?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",G,R,Z,void 0,S,!X)],G>=0?"sq/"+G:"")};g.T(PB,nf);g.P=PB.prototype;g.P.R9=function(){return!1}; g.P.Lb=function(){return!1}; g.P.Dl=function(){return!1}; g.P.Uc=function(){return new HB([new io(1,this,void 0,"otfInit")],this.C)}; g.P.Lq=function(){return null}; g.P.O0=function(G){this.BX(G);return FBy(this,RW(G),!1)}; g.P.Q3=function(G,X){X=X===void 0?!1:X;G=this.index.NG(G);X&&(G=Math.min(this.index.i9(),G+1));return FBy(this,G,!0)}; g.P.lS=function(G){G.info.type===1&&(this.N||(this.N=w2(G.W)),G.N&&G.N.uri==="http://youtube.com/streaming/otf/durations/112015"&&Cne(this,G.N))}; g.P.BX=function(G){return G.Y===0?!0:this.index.i9()>G.oU&&this.index.Uu()<=G.oU+1}; g.P.yQ=function(){return 0}; g.P.AK=function(){return!1};g.sp.prototype.info=function(){}; g.sp.prototype.debug=function(){}; g.sp.prototype.N=function(G){Tu.apply(null,[5,this.tag,G].concat(g.o0(g.Wl.apply(1,arguments))))}; var IPT=new Map,pjl=new Map,drU=new function(){var G=this;this.N=new Map;this.gh={jLH:function(){return G.N}}};g.P=g.zu.prototype;g.P.PD=function(G){return G<=this.i9()}; g.P.VX=function(G){return this.offsets[G]}; g.P.getStartTime=function(G){return this.startTicks[G]/this.N}; g.P.ra=function(G){return this.getStartTime(G)+this.getDuration(G)}; g.P.oa=Gi(0);g.P.mY=function(){return NaN}; g.P.getDuration=function(G){G=this.eS(G);return G>=0?G/this.N:-1}; g.P.eS=function(G){return G+1=0}; g.P.D3=function(){return this.W?this.startTicks[this.count]/this.N:NaN}; g.P.Bn=function(){return 0}; g.P.E6=function(){return this.count}; g.P.DT=function(){return""}; g.P.NG=function(G){G=g.fa(this.startTicks.subarray(0,this.count),G*this.N);return G>=0?G:Math.max(0,-G-2)}; g.P.isLoaded=function(){return this.i9()>=0}; g.P.Lh=function(G,X){if(G>=this.i9())return 0;var Q=0;for(X=this.getStartTime(G)+X;Gthis.getStartTime(G);G++)Q=Math.max(Q,vES(this,G)/this.getDuration(G));return Q}; g.P.resize=function(G){G+=2;var X=this.offsets;this.offsets=new Float64Array(G+1);var Q=this.startTicks;this.startTicks=new Float64Array(G+1);for(G=0;G0&&G&&(Q=Q.range.end+1,G=Math.min(G,this.info.contentLength-Q),G>0&&R.push(new io(4,this,vr(Q,G),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,X)));return new HB(R)}; g.P.lS=function(G){if(G.info.type===1){if(this.N)return;this.N=w2(G.W)}else if(G.info.type===2){if(this.C||this.index.i9()>=0)return;if(g.AR(this.info)){var X=this.index,Q=g.eK(G);G=G.info.range.start;var R=g.YX(Q,0,1936286840);Q=NNC(R);X.N=Q.timescale;var S=Q.R3;X.offsets[0]=Q.mL+G+R.size;X.startTicks[0]=S;X.W=!0;G=Q.GP.length;for(R=0;R0&&G===Z[0].Dj)for(G=0;G=X+Q)break}S.length||(G=new g.Ic("b189619593",""+G,""+X,""+Q),g.aU(G));return new HB(S)}; g.P.BN=function(G){for(var X=this.UZ(G.info),Q=G.info.range.start+G.info.W,R=[],S=0;S=this.index.VX(Q+1);)Q++;return this.vQ(Q,X,G.Y).LO}; g.P.BX=function(G){G.ou();return this.pL()?!0:G.range.end+1this.info.contentLength&&(X=new $X(X.start,this.info.contentLength-1)),new HB([new io(4,G.N,X,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,G.clipId)]);G.type===4&&(G=this.UZ(G),G=G[G.length-1]);var Q=0,R=G.range.start+G.W+G.Y;G.type===3&&(G.ou(),Q=G.oU,R===G.range.end+1&&(Q+=1));return this.vQ(Q,R,X)}; g.P.O0=function(){return null}; g.P.Q3=function(G,X){X=X===void 0?!1:X;G=this.index.NG(G);X&&(G=Math.min(this.index.i9(),G+1));return this.vQ(G,this.index.VX(G),0,void 0)}; g.P.R9=function(){return!0}; g.P.Lb=function(){return!0}; g.P.Dl=function(){return!1}; g.P.yQ=function(){return this.indexRange.length+this.initRange.length}; g.P.AK=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var $1={},jTw=($1.COLOR_PRIMARIES_BT709="bt709",$1.COLOR_PRIMARIES_BT2020="bt2020",$1.COLOR_PRIMARIES_UNKNOWN=null,$1.COLOR_PRIMARIES_UNSPECIFIED=null,$1),bx={},iPw=(bx.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",bx.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",bx.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",bx.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",bx.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,bx.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,bx);g.Up.prototype.getName=function(){return this.name}; g.Up.prototype.getId=function(){return this.id}; g.Up.prototype.getIsDefault=function(){return this.isDefault}; g.Up.prototype.toString=function(){return this.name}; g.Up.prototype.getName=g.Up.prototype.getName;g.Up.prototype.getId=g.Up.prototype.getId;g.Up.prototype.getIsDefault=g.Up.prototype.getIsDefault;var ROG=/action_display_post/;var Sjy,FN,Ch;g.T(t1,g.ic);g.P=t1.prototype;g.P.isLoading=function(){return this.state===1}; g.P.sf=function(){return this.state===3}; g.P.wZU=function(G){var X=G.getElementsByTagName("Representation");if(G.getElementsByTagName("SegmentList").length>0||G.getElementsByTagName("SegmentTemplate").length>0){this.IW=this.W=!0;this.S||(this.S=new zZZ);lP0(this.S,G);this.publish("refresh");for(G=0;G=0?k=bo(M):Y=Y+"?range="+M}h.call(w,new JX(L.oU,L.startSecs,L.Du,L.N,Y,k,L.W))}R=S}Q.update(R,this.isLive,this.wb)}BPw(this.S);return!0}this.duration=EEl(kl(G,"mediaPresentationDuration"));a:{for(G= 0;G0))return this.Zs()-G}}G=this.N;for(var X in G){var Q=G[X].index;if(Q.isLoaded()&&!Gv(G[X].info.mimeType))return Q.Bn()}return 0}; g.P.getStreamTimeOffset=function(){return this.T}; g.P.mY=function(G){for(var X in this.N){var Q=this.N[X].index;if(Q.isLoaded()){var R=Q.NG(G),S=Q.mY(R);if(S)return S+G-Q.getStartTime(R)}}return NaN}; var vB=null,SKd,J1=!((SKd=navigator.mediaCapabilities)==null||!SKd.decodingInfo),TOC={commentary:1,alternate:2,dub:3,main:4};var mE=new Set,il=new Map;QQ.prototype.clone=function(G){return new QQ(this.flavor,G,this.W,this.experiments)}; QQ.prototype.L7=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; QQ.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 Zyo={},YM=(Zyo.playready=["com.youtube.playready","com.microsoft.playready"],Zyo.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Zyo),vh={},QiT=(vh.widevine="DRM_SYSTEM_WIDEVINE",vh.fairplay="DRM_SYSTEM_FAIRPLAY",vh.playready="DRM_SYSTEM_PLAYREADY",vh),Jq={},HyZ=(Jq.widevine=1,Jq.fairplay=2,Jq.playready=3,Jq);var mA;g.T(jC,g.I); jC.prototype.initialize=function(G,X){for(var Q=this,R=g.e(Object.keys(G)),S=R.next();!S.done;S=R.next()){S=g.e(G[S.value]);for(var Z=S.next();!Z.done;Z=S.next())if(Z=Z.value,Z.sT)for(var H=g.e(Object.keys(Z.sT)),w=H.next();!w.done;w=H.next()){var h=w.value;w=h;h=YM[h];!h&&this.G("html5_enable_vp9_fairplay")&&w==="fairplay"&&(h=["com.youtube.fairplay.sbdl"]);if(h){h=g.e(h);for(var L=h.next();!L.done;L=h.next())L=L.value,this.Y[L]=this.Y[L]||new QQ(w,L,Z.sT[w],this.hT.experiments),this.N[w]=this.N[w]|| {},this.N[w][Z.mimeType]=!0}}}Im()&&(this.Y["com.youtube.fairplay"]=new QQ("fairplay","com.youtube.fairplay","",this.hT.experiments),this.G("html5_enable_vp9_fairplay")||(this.N.fairplay=this.N.fairplay||{},this.N.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.N.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.W=BOX(X,this.useCobaltWidevine,this.G("html5_enable_safari_fairplay")&&!0,this.G("html5_enable_vp9_fairplay")).filter(function(k){return!!Q.Y[k]})}; jC.prototype.G=function(G){return this.hT.experiments.TT(G)};var qKv={"":"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"};dsZ.prototype.G=function(G){return this.experiments.TT(G)};var ldi={RED:"red",Opi:"white"};WLX.prototype.TT=function(G){G=this.flags[G];JSON.stringify(G);return G==="true"};var ftl=Promise.resolve(),nqU=window.queueMicrotask?window.queueMicrotask.bind(window):DsZ;sY.prototype.canPlayType=function(G,X){G=G.canPlayType?G.canPlayType(X):!1;WI?G=G||wLZ[X]:QT===2.2?G=G||hh3[X]:t8()&&(G=G||LGV[X]);return!!G}; sY.prototype.isTypeSupported=function(G){return this.j?window.cast.receiver.platform.canDisplayType(G):Pj(G)}; var hh3={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},LGV={"application/x-mpegURL":"maybe"},wLZ={"application/x-mpegURL":"maybe"};g.T(eC,g.ic);eC.prototype.add=function(G,X){if(!this.items[G]&&(X.HH||X.GH||X.KM)){var Q=this.items,R=X;Object.isFrozen&&!Object.isFrozen(X)&&(R=Object.create(X),Object.freeze(R));Q[G]=R;this.publish("vast_info_card_add",G)}}; eC.prototype.remove=function(G){var X=this.get(G);delete this.items[G];return X}; eC.prototype.get=function(G){return this.items[G]||null}; eC.prototype.isEmpty=function(){return g.Mn(this.items)};rn.prototype.encrypt=function(G){this.N.exports.AES128CTRCipher_encrypt(this.cipher,G.byteOffset,G.byteLength);return G}; rn.prototype.U_=function(){return this.cipher===0}; rn.prototype.dispose=function(){this.N.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};EY.prototype.lH=function(G,X){X=X===void 0?1:X;this.ZZ+=X;this.W+=G;G/=X;for(var Q=0;Q0)R+="."+aD[S].toFixed(0)+"_"+Q.N[S].toFixed(0);else break;Q=R}Q&&(G[X]=Q)}this.N=new JSX;return G}; g.P.toString=function(){return""};g.P=SdX.prototype;g.P.isActive=function(){return!1}; g.P.jF=function(){}; g.P.H2=function(){}; g.P.ll=function(){}; g.P.RY=function(G,X){X()}; g.P.Qw=function(){return{}}; g.P.toString=function(){return""};var kRo=new SdX,YKH=!!+pc("html5_enable_profiler"),j7H=!!+pc("html5_onesie_enable_profiler"),ix=YKH||j7H?new GZ7:kRo,ESZ=YKH?ix:kRo,OY=j7H?ix:kRo;Liy.prototype.emscripten_notify_memory_growth=function(){};g.P=xM.prototype;g.P.malloc=function(G){return this.exports.malloc(G)}; g.P.free=function(G){this.exports.free(G)}; g.P.realloc=function(G,X){return this.exports.realloc(G,X)}; g.P.t4=function(G){if(G.buffer!==this.exports.memory.buffer){var X=this.malloc(G.byteLength);X=new Uint8Array(this.exports.memory.buffer,X,G.byteLength);X.set(G);return X}}; g.P.vl=function(G){if(G.buffer===this.exports.memory.buffer){var X=G.slice();this.free(G.byteOffset);return X}}; var ZmS=new function(){this.Y=this.V="WebAssembly"in window},zd="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); OY.jF(xM,{t4:function(G){return{profile:"copyj2w",ZZ:G===void 0?0:Math.ceil(G.byteLength/16)}}, vl:function(G){return{profile:"copyw2j",ZZ:G===void 0?0:Math.ceil(G.byteLength/16)}}});cm.prototype.encrypt=function(G,X){try{return this.N.vl(MNe(this,G,X))}catch(Q){g.EL(Error("ocwce: wasm encrypt failed: "+Q))}}; cm.prototype.U_=function(){return this.Y}; cm.prototype.dispose=function(){this.U_()||(g.Xh(this.W),this.N.free(this.V.byteOffset),this.Y=!0)};g.T(m0U,g.I);g.T(uOT,g.I);var UY;l$.prototype.add=function(G){if(this.pos+20>this.data.length){var X=new Uint8Array(this.data.length*2);X.set(this.data);this.data=X}for(;G>31;)this.data[this.pos++]=UY[(G&31)+32],G>>=5;this.data[this.pos++]=UY[G|0]}; l$.prototype.Zh=function(){return g.jx(this.data.subarray(0,this.pos))}; l$.prototype.reset=function(){this.pos=0};F7.prototype.iF=function(G,X){var Q=Math.pow(this.alpha,G);this.N=X*(1-Q)+Q*this.N;this.W+=G}; F7.prototype.X8=function(){return this.N/(1-Math.pow(this.alpha,this.W))};Cj.prototype.iF=function(G,X){for(var Q=0;Q<10;Q++){var R=this.N[Q],S=R+(Q===0?G:0),Z=1*Math.pow(2,Q);if(S<=Z)break;R=Math.min(1,(S-Z*.5)/R);for(S=0;S<16;S++)Z=this.values[Q*16+S]*R,this.values[(Q+1)*16+S]+=Z,this.N[Q+1]+=Z,this.values[Q*16+S]-=Z,this.N[Q]-=Z}R=Q=0;S=8192;X>8192&&(Q=Math.ceil(Math.log(X/8192)/Math.log(2)),R=8192*Math.pow(2,Q-1),S=R*2);Q+2>16?this.values[15]+=G:(X=(X-R)/(S-R),this.values[Q]+=G*(1-X),this.values[Q+1]+=G*X);this.N[0]+=G}; Cj.prototype.X8=function(){var G=G===void 0?this.W:G;var X=X===void 0?.02:X;var Q=Q===void 0?.98:Q;for(var R=this.Y,S=0;S<16;S++)R[S]=this.values[S];S=this.N[0];for(var Z=1;Z<11;Z++){var H=this.N[Z];if(H===0)break;for(var w=Math.min(1,(G-S)/H),h=0;h<16;h++)R[h]+=this.values[Z*16+h]*w;S+=H*w;if(w<1)break}for(Z=G=H=0;Z<16;Z++){w=H+R[Z]/S;G+=Math.max(0,Math.min(w,Q)-Math.max(H,X))*(Z>0?8192*Math.pow(2,Z-1):0);if(w>Q)break;H=w}return G/(Q-X)};tn.prototype.iF=function(G,X){G=Math.min(this.N,Math.max(1,Math.round(G*this.resolution)));G+this.W>=this.N&&(this.Y=!0);for(;G--;)this.values[this.W]=X,this.W=(this.W+1)%this.N;this.z6=!0}; tn.prototype.percentile=function(G){var X=this;if(!this.Y&&this.W===0)return 0;this.z6&&(g.na(this.C,function(Q,R){return X.values[Q]-X.values[R]}),this.z6=!1); return this.values[this.C[Math.round(G*((this.Y?this.N:this.W)-1))]]||0}; tn.prototype.X8=function(){return this.S?(this.percentile(this.V-this.S)+this.percentile(this.V)+this.percentile(this.V+this.S))/3:this.percentile(this.V)};g.T(VQ,g.I);VQ.prototype.wb=function(){var G;(G=this.SA)==null||G.start();if(NK(this)&&this.policy.T){var X;(X=this.Sz)==null||X.Wu()}};rAi.prototype.G=function(G){return this.experiments.TT(G)};g.T(EWl,g.I);var U0l="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),IdT={s$c:"caoe",Dum:"capsv",OvH:"cbrand",wKH:"cbr",E_A:"cbrver",g_m:"cchip",yNA:"ccappver",W7A:"ccrv",tlC:"cfrmver",cXU:"c",Oub:"cver",F4T:"ctheme",erC:"cplayer",FkH:"cmodel",JI:"cnetwork",ywp:"cos",OS_VERSION:"cosver",MsU:"cplatform",wdC:"crqyear"};g.T(Yn,g.I);g.P=Yn.prototype;g.P.G=function(G){return this.experiments.TT(G)}; g.P.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.P.getVideoUrl=function(G,X,Q,R,S,Z,H){X={list:X};Q&&(S?X.time_continue=Q:X.t=Q);Q=H?"music.youtube.com":g.Ml(this);S=Q==="www.youtube.com";!Z&&R&&S?Z="https://youtu.be/"+G:g.ZK(this)?(Z="https://"+Q+"/fire",X.v=G):(Z&&S?(Z=this.protocol+"://"+Q+"/shorts/"+G,R&&(X.feature="share")):(Z=this.protocol+"://"+Q+"/watch",X.v=G),WI&&(G=tdZ())&&(X.ebc=G));return g.on(Z,X)}; g.P.getVideoEmbedCode=function(G,X,Q,R){X="https://"+g.Ml(this)+"/embed/"+X;R&&(X=g.on(X,{list:R}));R=Q.width;Q=Q.height;X=Ur(X);G=Ur(G!=null?G:"YouTube video player");return'')}; g.P.supportsGaplessAudio=function(){return g.un&&!WI&&BT()>=74||g.Lj&&g.Wo(68)?!0:!1}; g.P.supportsGaplessShorts=function(){return!this.G("html5_enable_short_gapless")||this.CO||g.Y_?!1:!0}; g.P.getPlayerType=function(){return this.N.cplayer}; g.P.n7=function(){return this.Co}; var yAG=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],VNl=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Wil=[19];var GP={},AAw=(GP["140"]={numChannels:2},GP["141"]={numChannels:2},GP["251"]={audioSampleRate:48E3,numChannels:2},GP["774"]={audioSampleRate:48E3,numChannels:2},GP["380"]={numChannels:6},GP["328"]={numChannels:6},GP["773"]={},GP),XW={},D0X=(XW["1"]='video/mp4; codecs="av01.0.08M.08"',XW["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',XW["1e"]='video/mp4; codecs="av01.0.08M.08"',XW["9"]='video/webm; codecs="vp9"',XW["("]='video/webm; codecs="vp9"',XW["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', XW.h='video/mp4; codecs="avc1.64001e"',XW.H='video/mp4; codecs="avc1.64001e"',XW.o='audio/webm; codecs="opus"',XW.a='audio/mp4; codecs="mp4a.40.2"',XW.ah='audio/mp4; codecs="mp4a.40.2"',XW.mac3='audio/mp4; codecs="ac-3"; channels=6',XW.meac3='audio/mp4; codecs="ec-3"; channels=6',XW.i='audio/mp4; codecs="iamf.001.001.Opus"',XW),Qb={},NwZ=(Qb["337"]={width:3840,height:2160,bitrate:3E7,fps:30},Qb["336"]={width:2560,height:1440,bitrate:15E6,fps:30},Qb["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, Qb["702"]={width:7680,height:4320,bitrate:4E7,fps:60},Qb["701"]={width:3840,height:2160,bitrate:2E7,fps:60},Qb["700"]={width:2560,height:1440,bitrate:1E7,fps:60},Qb["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},Qb["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},Qb["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},Qb["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, Qb["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},Qb["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},Qb["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},Qb["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},Qb["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},Qb["315"]={width:3840,height:2160,bitrate:2E7,fps:60},Qb["308"]={width:2560, height:1440,bitrate:1E7,fps:60},Qb["303"]={width:1920,height:1080,bitrate:5E6,fps:60},Qb["302"]={width:1280,height:720,bitrate:25E5,fps:60},Qb["299"]={width:1920,height:1080,bitrate:75E5,fps:60},Qb["298"]={width:1280,height:720,bitrate:35E5,fps:60},Qb["571"]={width:7680,height:4320,bitrate:3E7,fps:60},Qb["401"]={width:3840,height:2160,bitrate:15E6,fps:60},Qb["400"]={width:2560,height:1440,bitrate:75E5,fps:60},Qb["399"]={width:1920,height:1080,bitrate:2E6,fps:60},Qb["398"]={width:1280,height:720,bitrate:1E6, fps:60},Qb["397"]={width:854,height:480,bitrate:4E5,fps:30},Qb["396"]={width:640,height:360,bitrate:25E4,fps:30},Qb["787"]={width:1080,height:608,bitrate:2E5,fps:30},Qb["788"]={width:1080,height:608,bitrate:4E5,fps:30},Qb["572"]={width:7680,height:4320,bitrate:3E7,fps:60},Qb["555"]={width:3840,height:2160,bitrate:15E6,fps:60},Qb["554"]={width:2560,height:1440,bitrate:75E5,fps:60},Qb["553"]={width:1920,height:1080,bitrate:2E6,fps:60},Qb["552"]={width:1280,height:720,bitrate:1E6,fps:60},Qb["551"]={width:854, height:480,bitrate:4E5,fps:30},Qb["550"]={width:640,height:360,bitrate:25E4,fps:30},Qb["313"]={width:3840,height:2160,bitrate:8E6,fps:30},Qb["271"]={width:2560,height:1440,bitrate:4E6,fps:30},Qb["248"]={width:1920,height:1080,bitrate:2E6,fps:30},Qb["247"]={width:1280,height:720,bitrate:15E5,fps:30},Qb["244"]={width:854,height:480,bitrate:52E4,fps:30},Qb["243"]={width:640,height:360,bitrate:28E4,fps:30},Qb["137"]={width:1920,height:1080,bitrate:4E6,fps:30},Qb["136"]={width:1280,height:720,bitrate:3E6, fps:30},Qb["135"]={width:854,height:480,bitrate:1E6,fps:30},Qb["385"]={width:1920,height:1080,bitrate:6503313,fps:60},Qb["376"]={width:1280,height:720,bitrate:5706960,fps:60},Qb["384"]={width:1280,height:720,bitrate:3660979,fps:60},Qb["225"]={width:1280,height:720,bitrate:5805E3,fps:30},Qb["224"]={width:1280,height:720,bitrate:453E4,fps:30},Qb["145"]={width:1280,height:720,bitrate:2682052,fps:30},Qb);g.P=UB.prototype;g.P.getInfo=function(){return this.N}; g.P.wm=function(){return null}; g.P.Ow=function(){var G=this.wm();return G?(G=g.vO(G.xP),Number(G.expire)):NaN}; g.P.KP=function(){}; g.P.getHeight=function(){return this.N.video.height};vWG.prototype.build=function(){G8S(this);var G=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],X={};a:if(this.N)var Q=this.N;else{Q="";for(var R=g.e(this.Y),S=R.next();!S.done;S=R.next())if(S=S.value,S.kP){if(S.kP.getIsDefault()){Q=S.kP.getId();break a}Q||(Q=S.kP.getId())}}R=g.e(this.Y);for(S=R.next();!S.done;S=R.next())if(S=S.value,this.S||!S.kP||S.kP.getId()===Q)X[S.itag]||(X[S.itag]=[]),X[S.itag].push(S);Q=g.e(this.W);for(R=Q.next();!R.done;R=Q.next())if(R=R.value,S=X[R.N]){S=g.e(S);for(var Z=S.next();!Z.done;Z= S.next()){var H=G,w=H.push;Z=Z.value;var h="#EXT-X-MEDIA:TYPE=AUDIO,",L="YES",k="audio";if(Z.kP){k=Z.kP;var Y=k.getId().split(".")[0];Y&&(h+='LANGUAGE="'+Y+'",');(this.N?this.N===k.getId():k.getIsDefault())||(L="NO");k=k.getName()}Y="";R!==null&&(Y=R.itag.toString());Y=BM(this,Z.url,Y);h=h+('NAME="'+k+'",DEFAULT='+(L+',AUTOSELECT=YES,GROUP-ID="'))+(imX(Z,R)+'",URI="'+(Y+'"'));w.call(H,h)}}Q=g.e(this.C);for(R=Q.next();!R.done;R=Q.next())R=R.value,S=ML3,R=(H=R.kP)?'#EXT-X-MEDIA:URI="'+BM(this,R.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+S+'",LANGUAGE="'+H.getId()+'",NAME="'+H.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,R&&G.push(R);Q=this.C.length>0?ML3:void 0;R=g.e(this.W);for(S=R.next();!S.done;S=R.next())S=S.value,w=X[S.N],H=void 0,((H=w)==null?void 0:H.length)>0&&(H=S,w=w[0],w="#EXT-X-STREAM-INF:BANDWIDTH="+(H.bitrate+w.bitrate)+',CODECS="'+(H.codecs+","+w.codecs+'",RESOLUTION=')+(H.width+"x"+H.height+',AUDIO="')+(imX(w,H)+'",')+(Q?'SUBTITLES="'+Q+'",':"")+"CLOSED-CAPTIONS=NONE",H.fps>1&&(w+= ",FRAME-RATE="+H.fps),H.Ad&&(w+=",VIDEO-RANGE="+H.Ad),G.push(w),G.push(BM(this,S.url,"")));return G.join("\n")}; var ML3="text";g.T(Fk,UB);Fk.prototype.Ow=function(){return this.expiration}; Fk.prototype.wm=function(){if(!this.xP||this.xP.U_()){var G=this.W.build();G="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(G);this.xP=new oT(G)}return this.xP};g.T(CK,UB);CK.prototype.wm=function(){return new oT(this.W.Rt())}; CK.prototype.KP=function(){this.W=bF(this.W)};g.T(tB,UB);tB.prototype.wm=function(){return new oT(this.W)};var R3={},LbC=(R3.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",R3.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",R3.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",R3.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",R3);g.P=g.VT.prototype;g.P.getId=function(){return this.id}; g.P.getName=function(){return this.name}; g.P.isServable=function(){return this.N}; g.P.Rt=function(){return this.url}; g.P.getXtags=function(){return this.xtags}; g.P.toString=function(){return this.languageCode+": "+g.II(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.P.equals=function(G){return G?this.toString()===G.toString():!1}; g.P.eG=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var osG={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},ul0={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},P17=/^(\d*)_((\d*)_?(\d*))$/;var TkC={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},KbC={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var SF={},mpH=(SF.ALWAYS=1,SF.BY_REQUEST=3,SF.UNKNOWN=void 0,SF),Zl={},owH=(Zl.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Zl.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Zl.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Zl.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Zl);var CCU; CCU=function(G){for(var X=Object.keys(G),Q={},R=0;RR-X?-1:G}; g.P.m$=function(){return this.W.i9()}; g.P.wN=function(){return this.W.Uu()}; g.P.Tv=function(G){this.W=G};g.T(YP,LL);YP.prototype.W=function(G,X){return LL.prototype.W.call(this,"$N|"+G,X)}; YP.prototype.C=function(G,X,Q){return new kP(G,X,Q,this.isLive)};g.T(g.ML,g.ic);g.P=g.ML.prototype; g.P.setData=function(G){G=G||{};var X=G.errordetail;X!=null&&(this.errorDetail=X);var Q=G.errorcode;Q!=null?this.errorCode=Q:G.status==="fail"&&(this.errorCode="auth");var R=G.reason;R!=null&&(this.errorReason=R);var S=G.subreason;S!=null&&(this.pj=S);this.clientPlaybackNonce||(this.clientPlaybackNonce=G.cpn||(this.hT.n7()?"r"+g.jh(15):g.jh(16)));this.KO=bX(this.hT.KO,G.livemonitor);Jpy(this,G);var Z=G.raw_player_response;if(Z)this.zQ=Z;else{var H=G.player_response;H&&(Z=JSON.parse(H))}Z&&(this.playerResponse= Z);if(this.playerResponse){var w=this.playerResponse.annotations;if(w)for(var h=g.e(w),L=h.next();!L.done;L=h.next()){var k=L.value.playerAnnotationsUrlsRenderer;if(k){k.adsOnly&&(this.Za=!0);var Y=k.loadPolicy;Y&&(this.annotationsLoadPolicy=mpH[Y]);var M=k.invideoUrl;M&&(this.SA=WZ(M));break}}var m=this.playerResponse.attestation;m&&rpV(this,m);var u=this.playerResponse.cotn;u&&(this.cotn=u);var r=this.playerResponse.heartbeatParams;if(r){this.Fy=!0;var x=r.heartbeatToken;x&&(this.drmSessionId=r.drmSessionId|| "",this.heartbeatToken=x,this.UL=Number(r.intervalMilliseconds),this.O4=Number(r.maxRetries),this.y6=!!r.softFailOnError,this.OI=!!r.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=r.heartbeatServerData;var c;this.Z5=!((c=r.heartbeatAttestationConfig)==null||!c.requiresAttestation)}var z=this.playerResponse.messages;z&&ONy(this,z);var B=this.playerResponse.overlay;if(B){var V=B.playerControlsOverlayRenderer;if(V)if(cpV(this,V.controlBgHtml),V.mutedAutoplay){var p=g.y(V.mutedAutoplay,OsO);if(p&& p.endScreen){var b=g.y(p.endScreen,zmH);b&&b.text&&(this.nN=g.q1(b.text))}}else this.mutedAutoplay=!1}var A=this.playerResponse.playabilityStatus;if(A){var wX=A.backgroundability;wX&&wX.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var qe,hG;if((qe=A.offlineability)==null?0:(hG=qe.offlineabilityRenderer)==null?0:hG.offlineable)this.offlineable=!0;var jy=A.contextParams;jy&&(this.contextParams=jy);var QZ=A.pictureInPicture;QZ&&QZ.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);A.playableInEmbed&&(this.allowEmbed=!0);var gX=A.ypcClickwrap;if(gX){var b7=gX.playerLegacyDesktopYpcClickwrapRenderer,XG=gX.ypcRentalActivationRenderer;if(b7)this.rJ=b7.durationMessage||"",this.rS=!0;else if(XG){var Pn=XG.durationMessage;this.rJ=Pn?g.q1(Pn):"";this.rS=!0}}var hO=A.errorScreen;if(hO){if(hO.playerLegacyDesktopYpcTrailerRenderer){var l7=hO.playerLegacyDesktopYpcTrailerRenderer;this.cf=l7.trailerVideoId||"";var wg=hO.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Id=wg&&wg.ypcTrailerRenderer}else if(hO.playerLegacyDesktopYpcOfferRenderer)l7= hO.playerLegacyDesktopYpcOfferRenderer;else if(hO.ypcTrailerRenderer){Id=hO.ypcTrailerRenderer;var NS=Id.fullVideoMessage;this.fp=NS?g.q1(NS):"";var hi,U;this.cf=((hi=g.y(Id,cjL))==null?void 0:(U=hi.videoDetails)==null?void 0:U.videoId)||""}l7&&(this.gK=l7.itemTitle||"",l7.itemUrl&&(this.v5=l7.itemUrl),l7.itemBuyUrl&&(this.a_=l7.itemBuyUrl),this.St=l7.itemThumbnail||"",this.Cq=l7.offerHeadline||"",this.uy=l7.offerDescription||"",this.dV=l7.offerId||"",this.l7=l7.offerButtonText||"",this.jq=l7.offerButtonFormattedText|| null,this.aL=l7.overlayDurationMsec||NaN,this.fp=l7.fullVideoMessage||"",this.F0=!0);if(Id){var fz=g.y(Id,cjL);if(fz)this.tC={raw_player_response:fz};else{var FG=g.y(Id,dPL);this.tC=FG?$r(FG):null}this.F0=!0}}}var R0=this.playerResponse.playbackTracking;if(R0){var Ov=G,a=fK(R0.googleRemarketingUrl);a&&(this.googleRemarketingUrl=a);var XS=fK(R0.youtubeRemarketingUrl);XS&&(this.youtubeRemarketingUrl=XS);var zn={},LT=fK(R0.ptrackingUrl);if(LT){var pa=DK(LT),nV=pa.oid;nV&&(this.qE=nV);var Rd=pa.pltype; Rd&&(this.PC=Rd);var SS=pa.ptchn;SS&&(this.CN=SS);var DR=pa.ptk;DR&&(this.qz=encodeURIComponent(DR));var E=pa.m;E&&(this.aP=E)}var K=fK(R0.qoeUrl);if(K){for(var O=g.vO(K),C=g.e(Object.keys(O)),W=C.next();!W.done;W=C.next()){var Me=W.value,D=O[Me];O[Me]=Array.isArray(D)?D.join(","):D}this.iO=O;var J=O.cat;J&&(this.G("html5_enable_qoe_cat_list")?this.uA=this.uA.concat(J.split(",")):this.nu=J);var t=O.live;t&&(this.rR=t);var CV=O.drm_product;CV&&(this.drmProduct=CV)}var fV=fK(R0.videostatsPlaybackUrl); if(fV){var Hl=DK(fV),Y4=Hl.adformat;if(Y4){Ov.adformat=Y4;var Bl=this.Z(),xT=swe(Y4,this.Z6,Bl.V,Bl.T);xT&&(this.adFormat=xT)}var Q7=Hl.aqi;Q7&&(Ov.ad_query_id=Q7);var x4=Hl.autoplay;x4&&(this.mD=x4=="1",this.QC=x4=="1");var dH=Hl.autonav;dH&&(this.isAutonav=dH=="1");var zi=Hl.delay;zi&&(this.As=FH(zi));var ry=Hl.ei;ry&&(this.eventId=ry);var UC=gn(Hl.adcontext);if(UC)try{var Ca=zVS(UC);Ca&&(this.lO=Ca)}catch(rwd){g.EL(Error("Malformed adContext"))}if(UC||Y4)this.mD=!0;var z3=Hl.feature;z3&&(this.A8= z3);var Lz=Hl.list;Lz&&(this.playlistId=Lz);var cn=Hl.of;cn&&(this.qb=cn);var Xa=Hl.osid;Xa&&(this.osid=Xa);var ZR=Hl.referrer;ZR&&(this.referrer=ZR);var AO=Hl.sdetail;AO&&(this.VI=AO);var tO=Hl.ssrt;tO&&(this.xv=tO=="1");var co=Hl.subscribed;co&&(this.subscribed=co=="1");var bK=Hl.uga;bK&&(this.userGenderAge=bK);var uu=Hl.upt;uu&&(this.r8=uu);var Vf=Hl.vm;Vf&&(this.videoMetadata=Vf);zn.playback=Hl}var Qg=fK(R0.videostatsWatchtimeUrl);if(Qg){var Rv=DK(Qg),kN=Rv.ald;kN&&(this.Bf=kN);zn.watchtime=Rv}var aL= fK(R0.atrUrl);if(aL){var Vg=DK(aL);zn.atr=Vg}var v1=fK(R0.engageUrl);if(v1){var Iv=DK(v1);zn.engage=Iv}this.gt=zn;if(R0.promotedPlaybackTracking){var RL=R0.promotedPlaybackTracking;RL.startUrls&&(this.GV=RL.startUrls);RL.firstQuartileUrls&&(this.dA=RL.firstQuartileUrls);RL.secondQuartileUrls&&(this.zp=RL.secondQuartileUrls);RL.thirdQuartileUrls&&(this.HP=RL.thirdQuartileUrls);RL.completeUrls&&(this.j1=RL.completeUrls);RL.engagedViewUrls&&(RL.engagedViewUrls.length>1&&g.EL(new g.Ic("There are more than one engaged_view_urls.")), this.Bo=RL.engagedViewUrls[0])}}var PL=this.playerResponse.playerCueRanges;PL&&PL.length>0&&(this.cueRanges=PL);var I7=this.playerResponse.playerCueRangeSet;I7&&g.P4(this,I7);a:{var PX=this.playerResponse.adPlacements;if(PX)for(var So=g.e(PX),sJ=So.next();!sJ.done;sJ=So.next()){var Z8=void 0,Hb=void 0,qm=(Z8=sJ.value.adPlacementRenderer)==null?void 0:(Hb=Z8.renderer)==null?void 0:Hb.videoAdTrackingRenderer;if(qm){var w7=qm;break a}}w7=null}var T4=w7;R0&&R0.promotedPlaybackTracking&&T4&&g.EL(new g.Ic("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var YN;if(!(YN=T4))a:{for(var h3=g.e(this.playerResponse.adSlots||[]),sn=h3.next();!sn.done;sn=h3.next()){var Ts=g.y(sn.value,jc);if(Ts===void 0||!zzG(Ts))break;var FC=void 0,Wb=(FC=Ts.fulfillmentContent)==null?void 0:FC.fulfilledLayout,pO=g.y(Wb,Sc);if(pO&&Gl(pO)){YN=!0;break a}}YN=!1}YN&&(this.v7=!0);var yg=this.playerResponse.playerAds;if(yg)for(var RJ=G,C3=g.e(yg),T2=C3.next();!T2.done;T2=C3.next()){var tW=T2.value;if(tW){var Sd=tW.playerLegacyDesktopWatchAdsRenderer;if(Sd){var fO=Sd.playerAdParams; if(fO){fO.autoplay=="1"&&(this.QC=this.mD=!0);this.m9=fO.encodedAdSafetyReason||null;fO.showContentThumbnail!==void 0&&(this.Lu=!!fO.showContentThumbnail);RJ.enabled_engage_types=fO.enabledEngageTypes;break}}}}var EM=this.playerResponse.playerConfig;if(EM){var KS=EM.manifestlessWindowedLiveConfig;if(KS){var VP=Number(KS.minDvrSequence),Z5=Number(KS.maxDvrSequence),KA=Number(KS.minDvrMediaTimeMs),Hp=Number(KS.maxDvrMediaTimeMs),Vr=Number(KS.startWalltimeMs);VP&&(this.xO=VP);KA&&(this.DC=KA/1E3,this.G("html5_sabr_parse_live_metadata_playback_boundaries")&& c4(this)&&(this.Yv=KA/1E3));Z5&&(this.HK=Z5);Hp&&(this.Hs=Hp/1E3,this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&c4(this)&&(this.Ti=Hp/1E3));Vr&&(this.C7=Vr/1E3);(VP||KA)&&(Z5||Hp)&&(this.allowLiveDvr=this.isLivePlayback=this.Yc=!0,this.It=!1)}var el=EM.daiConfig;if(el){if(el.enableDai){this.Nc=!0;var Rs=el.enableServerStitchedDai;Rs&&(this.enableServerStitchedDai=Rs);var $E=el.enablePreroll;$E&&(this.RP=$E)}var LC;if(el.daiType==="DAI_TYPE_SS_DISABLED"||((LC=el.debugInfo)==null?0:LC.isDisabledUnpluggedChannel))this.YH= !0;el.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.K0=!0);el.allowUstreamerRequestAdconfig&&(this.P4=!0)}var wD=EM.audioConfig;if(wD){var IZ=wD.loudnessDb;IZ!=null&&(this.Co=IZ);var aJC=wD.trackAbsoluteLoudnessLkfs;aJC!=null&&(this.A_=aJC);var EHS=wD.loudnessTargetLkfs;EHS!=null&&(this.loudnessTargetLkfs=EHS);wD.audioMuted&&(this.Xs=!0);wD.muteOnStart&&(this.PT=!0);var KN=wD.loudnessNormalizationConfig;if(KN){KN.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);KN.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var xzX=KN.minimumLoudnessTargetLkfs;xzX!=null&&(this.minimumLoudnessTargetLkfs=xzX);var OEX=KN.maxStatefulTimeThresholdSec;OEX!=null&&(this.maxStatefulTimeThresholdSec=OEX)}wD.playAudioOnly&&(this.PR=!0)}var tVU=EM.playbackEndConfig;if(tVU){var zoy=tVU.endSeconds,chG=tVU.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(zoy&&(this.endSeconds=zoy),chG&&(this.limitedPlaybackDurationInSeconds=chG))}var a2=EM.fairPlayConfig;if(a2){var gHV=a2.certificate;gHV&& (this.CO=gn(gHV));var Uz7=Number(a2.keyRotationPeriodMs);Uz7>0&&(this.oP=Uz7);var lJT=Number(a2.keyPrefetchMarginMs);lJT>0&&(this.IP=lJT)}var U9=EM.playbackStartConfig;if(U9){this.dB=Number(U9.startSeconds);var BUX=U9.liveUtcStartSeconds,Fdl=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;BUX&&!Fdl&&(this.liveUtcStartSeconds=Number(BUX));var VVS=U9.startPosition;if(VVS){var CUT=VVS.utcTimeMillis;CUT&&!Fdl&&(this.liveUtcStartSeconds=Number(CUT)*.001);var tjy=VVS.streamTimeMillis;tjy&&(this.Fq= Number(tjy)*.001)}this.progressBarStartPosition=U9.progressBarStartPosition;this.progressBarEndPosition=U9.progressBarEndPosition}else{var Iri=EM.skippableSegmentsConfig;if(Iri){var VjV=Iri.introSkipDurationMs;VjV&&(this.KQ=Number(VjV)/1E3);var IJy=Iri.outroSkipDurationMs;IJy&&(this.M3=Number(IJy)/1E3)}}var dBS=EM.skippableIntroConfig;if(dBS){var dzG=Number(dBS.startMs),WdG=Number(dBS.endMs);isNaN(dzG)||isNaN(WdG)||(this.f4=dzG,this.ze=WdG)}var pve=EM.streamSelectionConfig;pve&&(this.f7=Number(pve.maxBitrate)); var yhG=EM.vrConfig;yhG&&(this.Rk=yhG.partialSpherical=="1");var es=EM.webDrmConfig;if(es){es.skipWidevine&&(this.mE=!0);var fJy=es.widevineServiceCert;fJy&&(this.jl=gn(fJy));es.useCobaltWidevine&&(this.useCobaltWidevine=!0);es.startWithNoQualityConstraint&&(this.bE=!0)}var WW=EM.mediaCommonConfig;if(WW){var E2=WW.dynamicReadaheadConfig;if(E2){this.maxReadAheadMediaTimeMs=E2.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=E2.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=E2.readAheadGrowthRateMs|| NaN;var DzG,NUy=WW==null?void 0:(DzG=WW.mediaUstreamerRequestConfig)==null?void 0:DzG.videoPlaybackUstreamerConfig;NUy&&(this.R$=gn(NUy));var W8X=WW==null?void 0:WW.sabrContextUpdates;if(W8X&&W8X.length>0)for(var AhZ=g.e(W8X),p1e=AhZ.next();!p1e.done;p1e=AhZ.next()){var GY=p1e.value;if(GY.type&&GY.value){var fzd={type:GY.type,scope:GY.scope,value:gn(GY.value)||void 0,sendByDefault:GY.sendByDefault};this.sabrContextUpdates.set(GY.type,fzd)}}}var nH7=WW.serverPlaybackStartConfig;nH7&&(this.serverPlaybackStartConfig= nH7);WW.useServerDrivenAbr&&(this.JN=!0);var $zT=WW.requestPipeliningConfig;$zT&&(this.requestPipeliningConfig=$zT)}var bEG=EM.inlinePlaybackConfig;bEG&&(this.eK=!!bEG.showAudioControls);var xK=EM.embeddedPlayerConfig;if(xK){this.embeddedPlayerConfig=xK;var yvw=xK.embeddedPlayerMode;if(yvw){var vHi=this.Z();vHi.DC=yvw;vHi.Y=yvw==="EMBEDDED_PLAYER_MODE_PFL"}var JhX=xK.permissions;JhX&&(this.allowImaMonetization=!!JhX.allowImaMonetization)}var O2=EM.webPlayerConfig;O2&&(O2.gatewayExperimentGroup&&(this.gatewayExperimentGroup= O2.gatewayExperimentGroup),O2.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var pU=this.playerResponse.streamingData;if(pU){var fr0=pU.formats;if(fr0){for(var rk=[],iE0=g.e(fr0),DBe=iE0.next();!DBe.done;DBe=iE0.next()){var N1i=DBe.value;rk.push(N1i.itag+"/"+N1i.width+"x"+N1i.height)}this.Nn=rk.join(",");rk=[];for(var GNS=g.e(fr0),AvZ=GNS.next();!AvZ.done;AvZ=GNS.next()){var aw=AvZ.value,EW={itag:aw.itag,type:aw.mimeType,quality:aw.quality},XQ7=aw.url;XQ7&&(EW.url=XQ7);var zz=v_(aw),DNV=zz.qn, NpH=zz.zL,A8Z=zz.s;zz.QP&&(EW.url=DNV,EW.sp=NpH,EW.s=A8Z);rk.push(g.mN(EW))}this.qd=rk.join(",")}var nNT=pU.hlsFormats;if(nNT){var QFC=EM||null,cd={};if(QFC){var $BG=QFC.audioPairingConfig;if($BG&&$BG.pairs)for(var Rwe=g.e($BG.pairs),btw=Rwe.next();!btw.done;btw=Rwe.next()){var SGG=btw.value,vNV=SGG.videoItag;cd[vNV]||(cd[vNV]=[]);cd[vNV].push(SGG.audioItag)}}for(var ZBZ={},HBC=g.e(nNT),Jvl=HBC.next();!Jvl.done;Jvl=HBC.next()){var qGy=Jvl.value;ZBZ[qGy.itag]=qGy.bitrate}for(var wQX=[],hwC=g.e(nNT), it7=hwC.next();!it7.done;it7=hwC.next()){var nO=it7.value,K4={itag:nO.itag,type:nO.mimeType,url:nO.url,bitrate:nO.bitrate,width:nO.width,height:nO.height,fps:nO.fps},gR=nO.audioTrack;if(gR){var LvU=gR.displayName;LvU&&(K4.name=LvU,K4.audio_track_id=gR.id,gR.audioIsDefault&&(K4.is_default="1"))}if(nO.drmFamilies){for(var kNZ=[],YGT=g.e(nO.drmFamilies),GR0=YGT.next();!GR0.done;GR0=YGT.next())kNZ.push(IW[GR0.value]);K4.drm_families=kNZ.join(",")}var U2=cd[nO.itag];if(U2&&U2.length){K4.audio_itag=U2.join(","); var jFU=ZBZ[U2[0]];jFU&&(K4.bitrate+=jFU)}var M37=Gvy(nO);M37&&(K4.eotf=M37);nO.audioChannels&&(K4.audio_channels=nO.audioChannels);wQX.push(g.mN(K4))}this.hlsFormats=wQX.join(",")}var XLw=pU.licenseInfos;if(XLw&&XLw.length>0){for(var mIi={},o87=g.e(XLw),Q7T=o87.next();!Q7T.done;Q7T=o87.next()){var usw=Q7T.value,PhZ=usw.drmFamily,sFU=usw.url;PhZ&&sFU&&(mIi[IW[PhZ]]=sFU)}this.sT=mIi}var TIS=pU.drmParams;TIS&&(this.drmParams=TIS);var Kv7=pU.dashManifestUrl;Kv7&&(this.F7=g.on(Kv7,{cpn:this.clientPlaybackNonce})); var ewV=pU.hlsManifestUrl;ewV&&(this.hlsvp=ewV);var rHG=pU.probeUrl;rHG&&(this.probeUrl=WZ(g.on(rHG,{cpn:this.clientPlaybackNonce})));var ahT=pU.serverAbrStreamingUrl;ahT&&(this.kU=new g.D1(ahT,!0))}var E8i=this.playerResponse.trackingParams;E8i&&(this.IU=E8i);var eS=this.playerResponse.videoDetails;if(eS){var ed=G,RhU=eS.videoId;RhU&&(this.videoId=RhU,ed.video_id||(ed.video_id=RhU));var SK0=eS.title;SK0&&(this.title=SK0,ed.title||(ed.title=SK0));var Zyw=eS.lengthSeconds;Zyw&&(this.lengthSeconds= Number(Zyw),ed.length_seconds||(ed.length_seconds=Zyw));var xIl=eS.keywords;xIl&&(this.keywords=Qki(xIl));var Hyy=eS.channelId;Hyy&&(this.F6=Hyy,ed.ucid||(ed.ucid=Hyy));var OBU=eS.viewCount;OBU&&(this.rawViewCount=Number(OBU));var qKC=eS.author;qKC&&(this.author=qKC,ed.author||(ed.author=qKC));var zwU=eS.shortDescription;zwU&&(this.shortDescription=zwU);var cHZ=eS.isCrawlable;cHZ&&(this.isListed=cHZ);var g8y=eS.musicVideoType;g8y&&(this.musicVideoType=g8y);var wLy=eS.isLive;wLy!=null&&(this.isLivePlayback= wLy);if(wLy||eS.isUpcoming)this.isPremiere=!eS.isLiveContent;var UIl=eS.thumbnail;UIl&&(this.T=yT(UIl));var lhX=eS.isExternallyHostedPodcast;lhX&&(this.isExternallyHostedPodcast=lhX);var hhi=eS.viewerLivestreamJoinPosition;if(hhi==null?0:hhi.utcTimeMillis)this.hn=FH(hhi.utcTimeMillis);var BIZ=EM||null,LGG=G;eS.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);eS.isUpcoming&&(this.isUpcoming=!0);if(eS.isPostLiveDvr){this.It=!0;var Fv7=eS.latencyClass;Fv7&&(this.latencyClass=owH[Fv7]||"UNKNOWN"); eS.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var kRw=!1;this.KO?(this.allowLiveDvr=Td()?!0:fi&&N6<5?!1:!0,this.isLivePlayback=!0):eS.isLive?(LGG.livestream="1",this.allowLiveDvr=eS.isLiveDvrEnabled?Td()?!0:fi&&N6<5?!1:!0:!1,this.partnerId=27,kRw=!0):eS.isUpcoming&&(kRw=!0);if(eS.isLive||this.KO){eS.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var ChG=eS.latencyClass;ChG&&(this.latencyClass=owH[ChG]||"UNKNOWN");var t30=eS.liveChunkReadahead;t30&&(this.liveChunkReadahead= t30);var lJ=BIZ&&BIZ.livePlayerConfig;if(lJ){lJ.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);lJ.hasSubfragmentedWebm&&(this.eL=!0);lJ.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var V3Z=lJ.liveExperimentalContentId;V3Z&&(this.liveExperimentalContentId=Number(V3Z));var Ihw=lJ.isLiveHeadPlayable;this.G("html5_live_head_playable")&&Ihw!=null&&(this.isLiveHeadPlayable=Ihw)}}kRw&&(this.isLivePlayback=!0,LGG.adformat&&LGG.adformat.split("_")[1]!=="8"||this.j.push("heartbeat"))}var dI7= eS.isPrivate;dI7!==void 0&&(this.isPrivate=bX(this.isPrivate,dI7))}if(A){var WvX=eS||null,pQZ=!1,B2=A.errorScreen;pQZ=B2&&(B2.playerLegacyDesktopYpcOfferRenderer||B2.playerLegacyDesktopYpcTrailerRenderer||B2.ypcTrailerRenderer)?!0:WvX&&WvX.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(A.status);if(!pQZ){this.errorCode=k8e(A.errorCode)||"auth";var li=B2&&B2.playerErrorMessageRenderer;if(li){this.playerErrorMessageRenderer=li;var yHX=li.reason;yHX&&(this.errorReason=g.q1(yHX)); var YKZ=li.subreason;YKZ&&(this.pj=g.q1(YKZ),this.n6=YKZ)}else this.errorReason=A.reason||null;var j7Z=A.status;if(j7Z==="LOGIN_REQUIRED")this.errorDetail="1";else if(j7Z==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(j7Z==="AGE_CHECK_REQUIRED"){var fhl=A.errorScreen,DIG=fhl&&fhl.playerKavRenderer;this.errorDetail=DIG&&DIG.kavUrl?"4":"3"}else this.errorDetail=A.isBlockedInRestrictedMode?"5":"0"}}var NIZ=this.playerResponse.interstitialPods;NIZ&&xci(this,NIZ);this.SA&&this.eventId&&(this.SA= ib(this.SA,{ei:this.eventId}));var MLi=this.playerResponse.captions;if(MLi&&MLi.playerCaptionsTracklistRenderer)a:{var rD=MLi.playerCaptionsTracklistRenderer;this.captionTracks=[];if(rD.captionTracks)for(var AHw=g.e(rD.captionTracks),mpZ=AHw.next();!mpZ.done;mpZ=AHw.next()){var aJ=mpZ.value,n8T=GlV(aJ.baseUrl);if(!n8T)break a;var owZ={is_translateable:!!aJ.isTranslatable,languageCode:aJ.languageCode,languageName:aJ.name&&g.q1(aJ.name),url:n8T,vss_id:aJ.vssId,kind:aJ.kind};owZ.name=aJ.trackName;owZ.displayName= aJ.name&&g.q1(aJ.name);this.captionTracks.push(new g.VT(owZ))}this.oA=rD.audioTracks||[];this.j7=rD.defaultAudioTrackIndex||0;this.AF=[];if(rD.translationLanguages)for(var $IU=g.e(rD.translationLanguages),u0V=$IU.next();!u0V.done;u0V=$IU.next()){var F5=u0V.value,XV={};XV.languageCode=F5.languageCode;XV.languageName=g.q1(F5.languageName);if(F5.translationSourceTrackIndices){XV.translationSourceTrackIndices=[];for(var bB7=g.e(F5.translationSourceTrackIndices),Pu0=bB7.next();!Pu0.done;Pu0=bB7.next())XV.translationSourceTrackIndices.push(Pu0.value)}if(F5.excludeAudioTrackIndices){XV.excludeAudioTrackIndices= [];for(var v8l=g.e(F5.excludeAudioTrackIndices),s7X=v8l.next();!s7X.done;s7X=v8l.next())XV.excludeAudioTrackIndices.push(s7X.value)}this.AF.push(XV)}this.E0=[];if(rD.defaultTranslationSourceTrackIndices)for(var JHX=g.e(rD.defaultTranslationSourceTrackIndices),Tf0=JHX.next();!Tf0.done;Tf0=JHX.next())this.E0.push(Tf0.value);this.tF=!!rD.contribute&&!!rD.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.dB=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&zu7(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var iBw;this.compositeLiveIngestionOffsetToken=(iBw=this.playerResponse.playbackTracking)==null?void 0:iBw.compositeLiveIngestionOffsetToken;var GOi;this.compositeLiveStatusToken=(GOi=this.playerResponse.playbackTracking)==null?void 0: GOi.compositeLiveStatusToken;this.G("html5_fill_default_mosaic_audio_track_id")&&hL(this)&&(this.hT.cM=fLU(this));if(this.G("html5_enable_player_response_driven_playback_rate_clamping")){var XzS,QlC,R9V=(XzS=this.playerResponse.playerConfig)==null?void 0:(QlC=XzS.granularVariableSpeedConfig)==null?void 0:QlC.minimumPlaybackRate,SmU,ZoS,How=(SmU=this.playerResponse.playerConfig)==null?void 0:(ZoS=SmU.granularVariableSpeedConfig)==null?void 0:ZoS.maximumPlaybackRate;R9V&&How&&(this.Ir=R9V/100,this.Rr= How/100)}}oA(this,G);G.queue_info&&(this.queueInfo=G.queue_info);var qmZ=G.hlsdvr;qmZ!=null&&(this.allowLiveDvr=Number(qmZ)===1?Td()?!0:fi&&N6<5?!1:!0:!1);this.adQueryId=G.ad_query_id||null;this.m9||(this.m9=G.encoded_ad_safety_reason||null);this.Xs=bX(this.Xs,G.infringe||G.muted);this.Zdb=G.authkey;this.Jf=G.authuser;this.mutedAutoplay=bX(this.mutedAutoplay,G&&G.playmuted);this.mutedAutoplayDurationMode=J8(this.mutedAutoplayDurationMode,G&&G.muted_autoplay_duration_mode);this.s0=bX(this.s0,G&&G.mutedautoplay); var Bd=G.length_seconds;Bd&&(this.lengthSeconds=typeof Bd==="string"?FH(Bd):Bd);if(this.isAd()||this.Lg||!g.Rc(g.ql(this.hT)))this.endSeconds=J8(this.endSeconds,this.M3||G.end||G.endSeconds);else{var nDH=g.ql(this.hT),F4=this.lengthSeconds;switch(nDH){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":F4>30?this.limitedPlaybackDurationInSeconds=30:F4<30&&F4>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds= F4*.2}}this.IU=iX(this.IU,G.itct);this.xH=bX(this.xH,G.is_live_destination);this.isLivePlayback=bX(this.isLivePlayback,G.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.IW();G.isUpcoming&&(this.isUpcoming=bX(this.isUpcoming,G.isUpcoming));this.It=bX(this.It,G.post_live_playback);this.Yc&&(this.It=!1);this.isMdxPlayback=bX(this.isMdxPlayback,G.mdx);var CY=G.mdx_control_mode;CY&&(this.mdxControlMode=typeof CY==="number"?CY:FH(CY));this.isInlinePlaybackNoAd=bX(this.isInlinePlaybackNoAd, G.is_inline_playback_no_ad);this.Ps=J8(this.Ps,G.reload_count);this.reloadReason=iX(this.reloadReason,G.reload_reason);this.Lu=bX(this.Lu,G.show_content_thumbnail);this.cycToken=G.cyc||null;var wzX=pK(G);Object.keys(wzX).length>0&&(this.T=wzX);this.Mi=iX(this.Mi,G.vvt);this.mdxEnvironment=iX(this.mdxEnvironment,G.mdx_environment);G.source_container_playlist_id&&(this.sourceContainerPlaylistId=G.source_container_playlist_id);G.serialized_mdx_metadata&&(this.serializedMdxMetadata=G.serialized_mdx_metadata); this.F3T=G.osig;this.eventId||(this.eventId=G.eventid);this.osid||(this.osid=G.osid);this.playlistId=iX(this.playlistId,G.list);G.index&&(this.playlistIndex=this.playlistIndex===void 0?J8(0,G.index):J8(this.playlistIndex,G.index));this.aJ=G.pyv_view_beacon_url;this.nH=G.pyv_quartile25_beacon_url;this.vE=G.pyv_quartile50_beacon_url;this.CH=G.pyv_quartile75_beacon_url;this.oJ=G.pyv_quartile100_beacon_url;var h9T=G.session_data;!this.PE&&h9T&&(this.PE=AD(h9T,"&").feature);this.isFling=J8(this.isFling? 1:0,G.is_fling)===1;this.vnd=J8(this.vnd,G.vnd);this.forceAdsUrl=iX(this.forceAdsUrl,G.force_ads_url);this.fv=iX(this.fv,G.ctrl);this.i8=iX(this.i8,G.ytr);this.iM=G.ytrcc;this.GM=G.ytrexp;this.Y7=G.ytrext;this.lL=iX(this.lL,G.adformat);this.Z6=iX(this.Z6,G.attrib);this.slotPosition=J8(this.slotPosition,G.slot_pos);this.breakType=G.break_type;this.xv=bX(this.xv,G.ssrt);this.videoId=X1(G)||this.videoId;this.S=iX(this.S,G.vss_credentials_token);this.LQ=iX(this.LQ,G.vss_credentials_token_type);this.PR= bX(this.PR,G.audio_only);this.wb=bX(this.wb,G.aac_high);this.Jn=bX(this.Jn,G.prefer_low_quality_audio);this.BP=bX(this.BP,G.uncap_inline_quality);this.G("html5_enable_qoe_cat_list")?G.qoe_cat&&(this.uA=this.uA.concat(G.qoe_cat.split(","))):this.nu=iX(this.nu,G.qoe_cat);this.sL=bX(this.sL,G.download_media);var LOy=G.prefer_gapless;this.J=LOy!=null?bX(this.J,LOy):this.J?this.J:this.hT.preferGapless&&this.hT.supportsGaplessShorts();RKC(this.playerResponse)&&this.j.push("ad");var kOe=G.adaptive_fmts; kOe&&(this.adaptiveFormats=kOe,this.Ni("adpfmts",{},!0));var Ym0=G.allow_embed;Ym0&&(this.allowEmbed=Number(Ym0)===1);var jlV=G.backgroundable;jlV&&(this.backgroundable=Number(jlV)===1);var MRV=G.autonav;MRV&&(this.isAutonav=Number(MRV)===1);var mWZ=G.autoplay;mWZ&&(this.mD=this.QC=Number(mWZ)===1);var o3i=G.iv_load_policy;o3i&&(this.annotationsLoadPolicy=vT(this.annotationsLoadPolicy,o3i,wS));var ufU=G.cc_lang_pref;ufU&&(this.captionsLanguagePreference=iX(ufU,this.captionsLanguagePreference));var PQX= G.cc_load_policy;PQX&&(this.qU=vT(this.qU,PQX,wS));var slT;this.deviceCaptionsOn=(slT=G.device_captions_on)!=null?slT:void 0;var TdZ;this.qC=(TdZ=G.device_captions_lang_pref)!=null?TdZ:"";var KOl;this.Zb=(KOl=G.viewer_selected_caption_langs)!=null?KOl:[];var e9V=G.cached_load;e9V&&(this.m2=bX(this.m2,e9V));if(G.dash==="0"||G.dash===0||G.dash===!1)this.Kz=!0;var rzC=G.dashmpd;rzC&&(this.F7=g.on(rzC,{cpn:this.clientPlaybackNonce}));var auy=G.delay;auy&&(this.As=FH(auy));var KGV=this.M3||G.end;if(this.Js? KGV!=null:KGV!=void 0)this.clipEnd=J8(this.clipEnd,KGV);var E3V=G.fmt_list;E3V&&(this.Nn=E3V);G.heartbeat_preroll&&this.j.push("heartbeat");this.P5=-Math.floor(Math.random()*10);this.i7=-Math.floor(Math.random()*40);var xWe=G.is_listed;xWe&&(this.isListed=bX(this.isListed,xWe));var Oo0=G.is_private;Oo0&&(this.isPrivate=bX(this.isPrivate,Oo0));var z9S=G.is_dni;z9S&&(this.KY=bX(this.KY,z9S));var cz7=G.dni_color;cz7&&(this.v1=iX(this.v1,cz7));var g3y=G.pipable;g3y&&(this.pipable=bX(this.pipable,g3y)); this.nG=(this.Cc=this.pipable&&this.hT.Za)&&!this.hT.showMiniplayerButton;var UWS=G.paid_content_overlay_duration_ms;UWS&&(this.paidContentOverlayDurationMs=FH(UWS));var luG=G.paid_content_overlay_text;luG&&(this.paidContentOverlayText=luG);var BdV=G.url_encoded_fmt_stream_map;BdV&&(this.qd=BdV);var FOV=G.hls_formats;FOV&&(this.hlsFormats=FOV);var CQ0=G.hlsvp;CQ0&&(this.hlsvp=CQ0);var tY=G.live_start_walltime;tY&&(this.sCm=typeof tY==="number"?tY:FH(tY));var Vc=G.live_manifest_duration;Vc&&(this.QV= typeof Vc==="number"?Vc:FH(Vc));var tRi=G.player_params;tRi&&(this.playerParams=tRi);var VRZ=G.partnerid;VRZ&&(this.partnerId=J8(this.partnerId,VRZ));var Iu0=G.probe_url;Iu0&&(this.probeUrl=WZ(g.on(Iu0,{cpn:this.clientPlaybackNonce})));var ehe=G.pyv_billable_url;ehe&&MkU(ehe)&&(this.Bo=ehe);var rue=G.pyv_conv_url;rue&&MkU(rue)&&(this.IJ=rue);RYC(this,G);this.startSeconds>0?this.G("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.dB||this.KQ||G.start||G.startSeconds)&&this.Ni("lss", {css:this.startSeconds,pcss:this.dB,iss:this.KQ,ps:G.start||void 0,pss:G.startSeconds||void 0}):this.N9=this.startSeconds=J8(this.startSeconds,this.dB||this.KQ||G.start||G.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var dWU=G.live_utc_start;if(dWU!=null)this.liveUtcStartSeconds=Number(dWU);else{var aSU=this.startSeconds;aSU&&isFinite(aSU)&&aSU>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var WOU=G.utc_start_millis; WOU&&(this.liveUtcStartSeconds=Number(WOU)*.001)}var pzS=G.stream_time_start_millis;pzS&&(this.Fq=Number(pzS)*.001);var Ewi=this.KQ||G.start;(this.Js?Ewi==null||Number(G.resume)===1:Ewi==void 0||G.resume=="1")||this.isLivePlayback||(this.clipStart=J8(this.clipStart,Ewi));var yzi=G.url_encoded_third_party_media;yzi&&(this.Ku=bb(yzi));var xpC=G.ypc_offer_button_formatted_text;if(xpC){var fuT=JSON.parse(xpC);this.jq=fuT!=null?fuT:null;this.Il=xpC}var DWi=G.ypc_offer_button_text;DWi&&(this.l7=DWi);var Ndw= G.ypc_offer_description;Ndw&&(this.uy=Ndw);var Azw=G.ypc_offer_headline;Azw&&(this.Cq=Azw);var n3T=G.ypc_full_video_message;n3T&&(this.fp=n3T);var $WG=G.ypc_offer_id;$WG&&(this.dV=$WG);var boS=G.ypc_buy_url;boS&&(this.a_=boS);var v3G=G.ypc_item_thumbnail;v3G&&(this.St=v3G);var Jz0=G.ypc_item_title;Jz0&&(this.gK=Jz0);var ioU=G.ypc_item_url;ioU&&(this.v5=ioU);var GzS=G.ypc_vid;GzS&&(this.cf=GzS);G.ypc_overlay_timeout&&(this.aL=Number(G.ypc_overlay_timeout));var XdT=G.ypc_trailer_player_vars;XdT&&(this.tC= $r(XdT));var Q2G=G.ypc_original_itct;Q2G&&(this.Zw=Q2G);this.F6=iX(this.F6,G.ucid);this.g8=G.storyboard_spec||null;this.S_=G.live_storyboard_spec||null;this.c6=G.iv_endscreen_url||null;this.F0=bX(this.F0,G.ypc_module);this.rS=bX(this.rS,G.ypc_clickwrap_module);this.F0&&this.j.push("ypc");this.rS&&this.j.push("ypc_clickwrap");this.zM={video_id:G.video_id,eventid:G.eventid,cbrand:G.cbrand,cbr:G.cbr,cbrver:G.cbrver,c:G.c,cver:G.cver,ctheme:G.ctheme,cplayer:G.cplayer,cmodel:G.cmodel,cnetwork:G.cnetwork, cos:G.cos,cosver:G.cosver,cplatform:G.cplatform,user_age:G.user_age,user_display_image:G.user_display_image,user_display_name:G.user_display_name,user_gender:G.user_gender,csi_page_type:G.csi_page_type,csi_service_name:G.csi_service_name,enablecsi:G.enablecsi,enabled_engage_types:G.enabled_engage_types};iN7(this,G);var RJ0=G.cotn;RJ0&&(this.cotn=RJ0);if(mhC(this))lV(this)&&(this.isLivePlayback&&this.F7&&(this.Sa=!0),this.CO&&(this.bZ=!0));else if(opy(this))this.Sa=!0;else{var S2i,ZY0,HY7=((S2i=this.playerResponse)== null?void 0:(ZY0=S2i.streamingData)==null?void 0:ZY0.adaptiveFormats)||[];if(HY7.length>0)var xs=Mc0(this,HY7);else{this.G("html5_log_pafmtstr_ctmp")&&this.Ni("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var q20=this.adaptiveFormats;if(q20&&!lV(this)){this.hT.C.Y&&(J1=!0);var Cr=dx(q20),Oyl=this.sT,wdG=this.lengthSeconds,$NH=this.isLivePlayback,OW=this.It,tK=this.hT,biZ=msl(Cr);if($NH||OW){var hJV=tK==null?void 0:tK.experiments,CA=new t1("",hJV,!0);CA.IW=!0;CA.isManifestless=!0;CA.W=!OW;CA.isLive= !OW;CA.It=OW;for(var Lq0=g.e(Cr),zhG=Lq0.next();!zhG.done;zhG=Lq0.next()){var Vk=zhG.value,kzG=WB(Vk,Oyl),Q6=ph(Vk.url,Vk.sp,Vk.s),Y2w=Q6.get("id");Y2w&&Y2w.includes("%7E")&&(CA.AT=!0);var j2l=void 0,vDV=(j2l=hJV)==null?void 0:j2l.TT("html5_max_known_end_time_rebase"),J8H=Number(Vk.target_duration_sec)||5,iiL=Number(Vk.max_dvr_duration_sec)||14400,MEC=Number(Q6.get("mindsq")||Q6.get("min_sq")||"0"),may=Number(Q6.get("maxdsq")||Q6.get("max_sq")||"0")||Infinity;CA.xO=CA.xO||MEC;CA.HK=CA.HK||may;var GJS= !Gv(kzG.mimeType);Q6&&BB(CA,new ul(Q6,kzG,{w$:J8H,HD:GJS,Hh:iiL,xO:MEC,HK:may,Ft:300,It:OW,FH:vDV}))}var oKe=CA}else{if(biZ==="FORMAT_STREAM_TYPE_OTF"){var I2=wdG;I2=I2===void 0?0:I2;var I8=new t1("",tK==null?void 0:tK.experiments,!1);I8.duration=I2||0;for(var u4i=g.e(Cr),cu7=u4i.next();!cu7.done;cu7=u4i.next()){var d2=cu7.value,gwy=WB(d2,Oyl,I8.duration),Upl=ph(d2.url,d2.sp,d2.s);if(Upl)if(gwy.streamType==="FORMAT_STREAM_TYPE_OTF")BB(I8,new PB(Upl,gwy,"sq/0"));else{var XAk=bo(d2.init),Qc3=bo(d2.index); BB(I8,new g0(Upl,gwy,XAk,Qc3))}}I8.isOtf=!0;var PiG=I8}else{var dR=wdG;dR=dR===void 0?0:dR;var Wd=new t1("",tK==null?void 0:tK.experiments,!1);Wd.duration=dR||0;for(var s2C=g.e(Cr),lSG=s2C.next();!lSG.done;lSG=s2C.next()){var W2=lSG.value,RN3=WB(W2,Oyl,Wd.duration),S54=bo(W2.init),ZZH=bo(W2.index),TRV=ph(W2.url,W2.sp,W2.s);TRV&&BB(Wd,new g0(TRV,RN3,S54,ZZH))}PiG=Wd}oKe=PiG}var KqX=oKe;if(Cr.length>0){var eJS=Cr[0];if(this.Z().playerStyle==="hangouts-meet"&&eJS.url){var HZG=g.vO(eJS.url);this.B1=this.B1|| Number(HZG.expire)}}var q5V=this.isLivePlayback&&!this.It&&!this.Yc&&!this.isPremiere;this.G("html5_live_head_playable")&&(!B4(this)&&q5V&&this.Ni("missingLiveHeadPlayable",{}),this.hT.AT==="yt"&&(KqX.CO=!0));xs=KqX}else xs=null;this.Ni("pafmts",{isManifestFilled:!!xs})}if(xs){tP(this,xs);var rYX=!0}else rYX=!1;rYX?this.enableServerStitchedDai=this.enableServerStitchedDai&&Fu(this):this.F7&&(this.hT.AT==="yt"&&this.IW()&&this.G("drm_manifestless_unplugged")&&this.G("html5_deprecate_manifestful_fallback")? this.Ni("deprecateMflFallback",{}):this.Sa=!0)}var BfT=G.adpings;BfT&&(this.T7=BfT?$r(BfT):null);var a4Z=G.feature;a4Z&&(this.A8=a4Z);var EK0=G.referrer;EK0&&(this.referrer=EK0);this.clientScreenNonce=iX(this.clientScreenNonce,G.csn);this.Ev=J8(this.Ev,G.root_ve_type);this.HQ=J8(this.HQ,G.kids_age_up_mode);this.Js||G.kids_app_info==void 0||(this.kidsAppInfo=G.kids_app_info);this.Js&&G.kids_app_info!=null&&(this.kidsAppInfo=G.kids_app_info);this.Lz=bX(this.Lz,G.upg_content_filter_mode);this.unpluggedFilterModeType= J8(this.unpluggedFilterModeType,G.unplugged_filter_mode_type);var xaG=G.unplugged_location_info;xaG&&(this.Xq=xaG);var OYZ=G.unplugged_partner_opt_out;OYZ&&(this.c5=iX("",OYZ));this.d7=bX(this.d7,G.disable_watch_next);this.H8=iX(this.H8,G.internal_ip_override);this.V$=!!G.is_yto_interstitial;(this.interstitials.length||this.V$)&&this.j.push("yto");var zJi=G.I9;zJi&&(this.I9=zJi);this.AT=iX(this.AT,G.csi_timer);G.watchUrl&&(this.watchUrl=G.watchUrl);var Rf=G.watch_endpoint;this.G("html5_attach_watch_endpoint_ustreamer_config")&& Rf&&Ms0(this,Rf);if(Rf==null?0:Rf.ustreamerConfig)this.yE=gn(Rf.ustreamerConfig);var cYe,gKV,UaS=Rf==null?void 0:(cYe=Rf.loggingContext)==null?void 0:(gKV=cYe.qoeLoggingContext)==null?void 0:gKV.serializedContextData;UaS&&(this.PEO=UaS);g.Jn(this.hT)&&this.hT.jl&&(this.embedsRct=iX(this.embedsRct,G.rct),this.embedsRctn=iX(this.embedsRctn,G.rctn));G.embed_config&&(this.DZ=G.embed_config);this.m7=this.m7||!!G.pause_at_start;G.default_active_source_video_id&&(this.defaultActiveSourceVideoId=G.default_active_source_video_id)}; g.P.Z=function(){return this.hT}; g.P.G=function(G){return this.hT.G(G)}; g.P.Tg=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.P.hasSupportedAudio51Tracks=function(){var G;return!((G=this.bf)==null||!G.bB)}; g.P.getUserAudio51Preference=function(){var G=1;T$(this.hT)&&this.G("html5_ytv_surround_toggle_default_off")?G=0:g.up(this.hT)&&this.isLivePlayback&&this.VJ()&&(G=0);var X;return(X=g.xL("yt-player-audio51"))!=null?X:G}; g.P.I0=function(){this.U_()||(this.N.W||this.N.unsubscribe("refresh",this.I0,this),this.Ut(-1))}; g.P.Ut=function(G){if(!this.isLivePlayback||!this.C||this.C.flavor!=="fairplay"){var X=uPX(this.N,this.gR);if(X.length>0){for(var Q=g.e(X),R=Q.next();!R.done;R=Q.next())R=R.value,R.startSecs=Math.max(R.startSecs,this.Bn()),this.G("html5_cuepoint_identifier_logging")&&R.event==="start"&&this.Ni("cuepoint",{pubCue:R.identifier,segNum:G});this.publish("cuepointupdated",X,G);this.gR+=X.length;if(Fu(this)&&this.hT.n7())for(X=g.e(X),Q=X.next();!Q.done;Q=X.next())Q=Q.value,this.Ni("cuepoint",{segNum:G,event:Q.event, startSecs:Q.startSecs,id:Q.identifier.slice(-16)}),Q.event==="start"&&(Q=Q.startSecs,this.pz.start=this.hS,this.pz.end=Q+3)}}}; g.P.f_=function(){this.U_()||(this.loading=!1,this.publish("dataloaded"))}; g.P.VJ=function(){return this.dX!==void 0?this.dX:this.dX=!!this.sT||!!this.N&&Vs(this.N)}; g.P.gA=function(G){var X=this;if(this.U_())return am();this.l9=this.Xm=this.Y=null;oM(this,"html5_high_res_logging_always")&&(this.hT.Co=!0);return skC(this,G).then(void 0,function(){return KSG(X,G)}).then(void 0,function(){return eYe(X)}).then(void 0,function(){return aLw(X)})}; g.P.sI=function(G){this.Y=G;T_0(this,this.Y.getAvailableAudioTracks());if(this.Y){G=g.e(this.Y.videoInfos);for(var X=G.next();!X.done;X=G.next()){X=X.value;var Q=X.containerType;Q!==0&&(this.Nz[Q]=X.id)}}G=this.getAvailableAudioTracks();G=G.concat(this.ER);for(X=0;X0?this.Y.getAvailableAudioTracks():this.Bi||[]:[]}; g.P.getAudioTrack=function(){var G=this;if(this.V&&!nP(this.V)){var X=g.Ka(this.getAvailableAudioTracks(),function(S){return S.id===G.V.id}),Q; if(!X&&((Q=this.V.kP)==null?0:Q.id)){var R=this.V.kP.id;X=g.Ka(this.getAvailableAudioTracks(),function(S){return S.kP.id===R}); this.Ni("nat",{id:this.V.id,track:!!X})}return X||this.ER}if(this.Bi){if(!this.VE)for(X=g.e(this.Bi),Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,Q.kP.getIsDefault()){this.VE=Q;break}return this.VE||this.ER}return this.ER}; g.P.getPlayerResponse=function(){return this.playerResponse}; g.P.getWatchNextResponse=function(){return this.QH}; g.P.getHeartbeatResponse=function(){return this.y$}; g.P.Iu=function(){return this.watchUrl?this.watchUrl:this.hT.getVideoUrl(this.videoId)}; g.P.yb=function(){return!!this.N&&(qjS(this.N)||wH0(this.N)||hOV(this.N))}; g.P.getEmbeddedPlayerResponse=function(){return this.o$}; g.P.n2=function(){return(this.eventLabel||this.hT.Mi)==="shortspage"}; g.P.isAd=function(){return!!this.adFormat}; g.P.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.P.Yr=function(){var G,X,Q;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((G=this.playerResponse)==null?0:(X=G.playerConfig)==null?0:(Q=X.daiConfig)==null?0:Q.ssaEnabledPlayback)}; g.P.xN=function(){return this.Fy}; g.P.A2=function(){return this.F0||this.Fs}; g.P.BT=function(){return oM(this,"html5_samsung_vp9_live")}; g.P.Ni=function(G,X,Q){this.publish("ctmp",G,X,Q)}; g.P.aY=function(G,X,Q){this.publish("ctmpstr",G,X,Q)}; g.P.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.P.getGetAdBreakContext=function(G,X){G=G===void 0?NaN:G;X=X===void 0?NaN:X;var Q={isSabr:c4(this)},R,S=(R=this.getHeartbeatResponse())==null?void 0:R.adBreakHeartbeatParams;S&&(Q.adBreakHeartbeatParams=S);if(this.G("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.N&&!isNaN(G)&&!isNaN(X)){X=G-X;for(var Z in this.N.N)if(R=this.N.N[Z],R.info.oC()||R.info.vz())if(R=R.index,R.isLoaded()){Z=R.NG(X);R=R.mY(Z)+X-R.getStartTime(Z);this.Ni("gabc",{t:G.toFixed(3),mt:X.toFixed(3),sg:Z,igt:R.toFixed(3)}); Q.livePlaybackPosition={utcTimeMillis:""+(R*1E3).toFixed(0)};break}}return Q}; g.P.isEmbedsShortsMode=function(G,X){if(!g.Jn(this.hT)||(this.hT.DC||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||X)return!1;var Q,R;return!!(((Q=this.embeddedPlayerConfig)==null?0:(R=Q.embeddedPlayerFlags)==null?0:R.isShortsExperienceEligible)&&G.width<=G.height)}; g.P.zT=function(){g.ic.prototype.zT.call(this);this.T7=null;delete this.Xj;delete this.accountLinkingConfig;delete this.N;this.Y=this.y$=this.playerResponse=this.QH=null;this.qd=this.adaptiveFormats="";delete this.botguardData;this.cM=this.suggestions=this.KD=null;this.sabrContextUpdates.clear()};var Qge={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},RRX={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},GWi={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},vpZ={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"},ivG={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},JoG={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"},X3w={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.T(eA,g.I);g.P=eA.prototype;g.P.handleExternalCall=function(G,X,Q){var R=this.state.J[G],S=this.state.T[G],Z=R;if(S)if(Q&&VG(Q,lr4))Z=S;else if(!R)throw Error('API call from an untrusted origin: "'+Q+'"');this.logApiCall(G,Q);if(Z){Q=!1;R=g.e(X);for(S=R.next();!S.done;S=R.next())if(String(S.value).includes("javascript:")){Q=!0;break}Q&&g.EL(Error('Dangerous call to "'+G+'" with ['+X+"]."));return Z.apply(this,X)}throw Error('Unknown API method: "'+G+'".');}; g.P.logApiCall=function(G,X,Q){var R=this.app.Z();R.Yv&&!this.state.j.has(G)&&(this.state.j.add(G),g.QL("webPlayerApiCalled",{callerUrl:R.loaderUrl,methodName:G,origin:X||void 0,playerStyle:R.playerStyle||void 0,embeddedPlayerMode:R.DC,errorCode:Q}))}; g.P.publish=function(G){var X=g.Wl.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[G].concat(g.o0(X)));if(G==="videodatachange"||G==="resize"||G==="cardstatechange")this.state.W.publish.apply(this.state.W,[G].concat(g.o0(X))),this.state.V.publish.apply(this.state.V,[G].concat(g.o0(X)))}; g.P.E_=function(G){var X=g.Wl.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[G].concat(g.o0(X)));this.state.W.publish.apply(this.state.W,[G].concat(g.o0(X)))}; g.P.tS=function(G){var X=g.Wl.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[G].concat(g.o0(X)));this.state.W.publish.apply(this.state.W,[G].concat(g.o0(X)));this.state.V.publish.apply(this.state.V,[G].concat(g.o0(X)))}; g.P.vR=function(G){var X=g.Wl.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[G].concat(g.o0(X)));this.state.W.publish.apply(this.state.W,[G].concat(g.o0(X)));this.state.V.publish.apply(this.state.V,[G].concat(g.o0(X)));this.state.C.publish.apply(this.state.C,[G].concat(g.o0(X)))}; g.P.G=function(G){return this.app.Z().G(G)}; g.P.zT=function(){if(this.state.element){var G=this.state.element,X;for(X in this.state.N)this.state.N.hasOwnProperty(X)&&(G[X]=null);this.state.element=null}g.I.prototype.zT.call(this)};g.T(Oa,g.Tk);Oa.prototype.publish=function(G){var X=g.Wl.apply(1,arguments);if(this.C.has(G))return this.C.get(G).push(X),!0;var Q=!1;try{for(X=[X],this.C.set(G,X);X.length;)Q=g.Tk.prototype.publish.call.apply(g.Tk.prototype.publish,[this,G].concat(g.o0(X.shift())))}finally{this.C.delete(G)}return Q};g.T(zE,g.I);zE.prototype.zT=function(){this.C.dispose();this.V.dispose();this.W.dispose();this.Y.dispose();this.j=this.N=this.T=this.J=this.S=void 0};var L6U=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.T(g4,eA);g.P=g4.prototype;g.P.getApiInterface=function(){return Array.from(this.state.S)}; g.P.MH=function(G,X){this.state.C.subscribe(G,X)}; g.P.SnH=function(G,X){this.state.C.unsubscribe(G,X)}; g.P.getPlayerState=function(G){return ljS(this.app,G)}; g.P.Rp=function(){return ljS(this.app)}; g.P.K3A=function(G,X,Q){BP(this)&&(lf(this.app,!0,1),Cu(this.app,G,X,Q,1))}; g.P.getCurrentTime=function(G,X,Q){var R=this.getPlayerState(G);if(this.app.getAppState()===2&&R===5){var S;return((S=this.app.getVideoData())==null?void 0:S.startSeconds)||0}return this.G("web_player_max_seekable_on_ended")&&R===0?x9(this.app,G):G?this.app.getCurrentTime(G,X,Q):this.app.getCurrentTime(G)}; g.P.WL=function(){return this.app.getCurrentTime(1)}; g.P.hf=function(){var G=this.app.mY(1);return isNaN(G)?this.getCurrentTime(1):G}; g.P.Yt=function(){return this.app.getDuration(1)}; g.P.n0=function(G,X){G=g.pT(Math.floor(G),0,100);isFinite(G)&&aR(this.app,{volume:G,muted:this.isMuted()},X)}; g.P.xcT=function(G){this.n0(G,!1)}; g.P.J_=function(G){aR(this.app,{muted:!0,volume:this.getVolume()},G)}; g.P.CBp=function(){this.J_(!1)}; g.P.f0=function(G){aR(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},G)}; g.P.gFC=function(){lG(this.app)||this.f0(!1)}; g.P.getPlayerMode=function(){var G={};this.app.getVideoData().KY&&(G.pfp={enableIma:this.app.gM().allowImaMonetization,autoplay:HP(this.app.gM()),mutedAutoplay:this.app.gM().mutedAutoplay});return G}; g.P.NK=function(){var G=this.app.getPresentingPlayerType();if(G===2&&!this.app.Nc()){var X=OS(this.app.p7());if(!(BHG(X)||g.Jn(this.app.Z())&&g.N(this.app.eA().getPlayerState(),1024))||FoL(X))return}(X=this.app.Xz().Y_)?X.playVideo():this.app.playVideo(G)}; g.P.fuc=function(){lf(this.app,!0,1);this.NK()}; g.P.pauseVideo=function(G){var X=this.app.getPresentingPlayerType();if(X!==2||this.app.Nc()||BHG(OS(this.app.p7()))){var Q=this.app.Xz().Y_;Q?Q.pauseVideo():this.app.pauseVideo(X,G)}}; g.P.vFd=function(){var G=this.app,X=!1;G.tT.C7&&(G.PM.publish("pageTransition"),X=!0);G.stopVideo(X)}; g.P.clearVideo=function(){}; g.P.getAvailablePlaybackRates=function(){var G=this.app.Z();if(G.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(G.V?G.ancestorOrigins[0]:window.location.origin)||G.VE)return Ztn;if(G.G("html5_enable_player_response_driven_playback_rate_clamping")){G=this.app.getVideoData();var X=G.Ir,Q=G.Rr;return w1o.filter(function(R){return R>=X&&R<=Q})}return G.supportsVarispeedExtendedFeatures?HtZ:G.G("web_remix_allow_up_to_3x_playback_rate")&& g.lP(G)?qo4:Ek}return[1]}; g.P.getPlaybackQuality=function(G){return(G=this.app.IC(G))?G.getPlaybackQuality():"unknown"}; g.P.yEc=function(){}; g.P.getAvailableQualityLevels=function(G){return(G=this.app.IC(G))?(G=g.P1(G.a4(),function(X){return X.quality}),G.length&&(G[0]==="auto"&&G.shift(),G=G.concat(["auto"])),G):[]}; g.P.tf=function(){return this.getAvailableQualityLevels(1)}; g.P.Se=function(){return this.Yl()}; g.P.vL=function(){return 1}; g.P.getVideoLoadedFraction=function(G){return this.app.getVideoLoadedFraction(G)}; g.P.Yl=function(){return this.getVideoLoadedFraction()}; g.P.ql=function(){return 0}; g.P.getSize=function(){var G=this.app.mp().getPlayerSize();return{width:G.width,height:G.height}}; g.P.setSize=function(){this.app.mp().resize()}; g.P.loadVideoById=function(G,X,Q,R){if(!G)return!1;G=cP(G,X,Q);return this.app.loadVideoByPlayerVars(G,R)}; g.P.tAU=function(G,X,Q){G=this.loadVideoById(G,X,Q,1);lf(this.app,G,1)}; g.P.cueVideoById=function(G,X,Q,R){G=cP(G,X,Q);this.app.cueVideoByPlayerVars(G,R)}; g.P.uJ=function(G,X,Q){this.cueVideoById(G,X,Q,1)}; g.P.loadVideoByUrl=function(G,X,Q,R){G=hRZ(G,X,Q);return this.app.loadVideoByPlayerVars(G,R)}; g.P.NbT=function(G,X,Q){G=this.loadVideoByUrl(G,X,Q,1);lf(this.app,G,1)}; g.P.cueVideoByUrl=function(G,X,Q,R){G=hRZ(G,X,Q);this.app.cueVideoByPlayerVars(G,R)}; g.P.yL=function(G,X,Q){this.cueVideoByUrl(G,X,Q,1)}; g.P.G8=function(){var G=this.app.Z();if(G.yH)return"";var X=this.app.gM(),Q=void 0;X.isLivePlayback||(Q=Math.floor(this.app.getCurrentTime(1)));return G.getVideoUrl(X.videoId,this.getPlaylistId()||void 0,Q)}; g.P.HL=function(){return this.app.getDebugText()}; g.P.getVideoEmbedCode=function(){var G=this.app.Z();if(G.yH)return"";var X=this.app.gM();return G.getVideoEmbedCode(X.isPrivate?"":X.title,this.app.gM().videoId,this.app.mp().getPlayerSize(),this.getPlaylistId()||void 0)}; g.P.xp=function(G,X,Q){return WQG(this.app,G,X,Q)}; g.P.removeCueRange=function(G){return this.app.K5(G)}; g.P.loadPlaylist=function(G,X,Q,R){this.app.loadPlaylist(G,X,Q,R)}; g.P.rg=function(G,X,Q,R){this.loadPlaylist(G,X,Q,R);lf(this.app,!0,1)}; g.P.cuePlaylist=function(G,X,Q,R){this.app.cuePlaylist(G,X,Q,R)}; g.P.nextVideo=function(G,X){this.app.nextVideo(G,X)}; g.P.q_c=function(){this.nextVideo();lf(this.app,!0,1)}; g.P.previousVideo=function(G){this.app.previousVideo(G)}; g.P.Ynd=function(){this.previousVideo();lf(this.app,!0,1)}; g.P.playVideoAt=function(G){this.app.playVideoAt(G)}; g.P.bdH=function(G){this.playVideoAt(G);lf(this.app,!0,1)}; g.P.setShuffle=function(G){var X=this.app.getPlaylist();X&&X.setShuffle(G)}; g.P.setLoop=function(G){var X=this.app.getPlaylist();X&&(X.loop=G)}; g.P.n$=function(){var G=this.app.getPlaylist();if(!G)return null;for(var X=[],Q=0;Q=400)if(G=this.gM(),this.U.Z().G("client_respect_autoplay_switch_button_renderer"))G=!!G.autoplaySwitchButtonRenderer;else{var X,Q,R,S;G=!!((X=G.getWatchNextResponse())==null?0:(Q=X.contents)==null?0:(R=Q.twoColumnWatchNextResults)==null?0:(S=R.autoplay)==null?0:S.autoplay)!==!1}if(G)this.N||(this.N=!0,this.Ta(this.N),this.U.Z().G("web_player_autonav_toggle_always_listen")||tOl(this), X=this.gM(),this.Ls(X.autonavState),this.U.logVisibility(this.element,this.N));else if(this.N=!1,this.Ta(this.N),!this.U.Z().G("web_player_autonav_toggle_always_listen"))for(this.U.Z().G("web_player_autonav_toggle_always_listen"),X=g.e(this.W),Q=X.next();!Q.done;Q=X.next())this.Ds(Q.value)}; g.P.Ls=function(G){IMT(this)?this.isChecked=G!==1:((G=G!==1)||(g.la(),G=g.jg("web_autonav_allow_off_by_default")&&!g.BA(0,141)&&g.WO("AUTONAV_OFF_BY_DEFAULT")?!1:!g.BA(0,140)),this.isChecked=G);VOX(this)}; g.P.onClick=function(){this.isChecked=!this.isChecked;this.U.f5(this.isChecked?2:1);VOX(this);if(IMT(this)){var G=this.gM().autoplaySwitchButtonRenderer;this.isChecked&&(G==null?0:G.onEnabledCommand)?this.U.E_("innertubeCommand",G.onEnabledCommand):!this.isChecked&&(G==null?0:G.onDisabledCommand)&&this.U.E_("innertubeCommand",G.onDisabledCommand)}this.U.logClick(this.element)}; g.P.getValue=function(){return this.isChecked}; g.P.gM=function(){return this.U.getVideoData(1)};g.T(d8G,kH);g.T(TT,g.qz);TT.prototype.onClick=function(){this.enabled&&(KE(this,!this.checked),this.publish("select",this.checked))}; TT.prototype.getValue=function(){return this.checked}; TT.prototype.setEnabled=function(G){(this.enabled=G)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var N90={PFm:2,qg:1,rN:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var aG=["en-CA","en","es-MX","fr-CA"];g.T(cv,TT);cv.prototype.GT=function(G){G?this.N||(this.gb.jj(this),this.N=!0):this.N&&(this.gb.Md(this),this.N=!1);this.N&&KE(this,BsV())}; cv.prototype.V=function(){g.QD(this.element,"ytp-menuitem-highlight-transition-enabled")}; cv.prototype.Y=function(G){var X=BsV();G!==X&&(X=g.la(),CZ(190,G),CZ(192,!0),X.save(),this.U.E_("cinematicSettingsToggleChange",G))}; cv.prototype.zT=function(){this.N&&this.gb.Md(this);TT.prototype.zT.call(this)};g.T(gU,kH);gU.prototype.updateCinematicSettings=function(G){this.N=G;var X;(X=this.menuItem)==null||X.GT(G);this.api.publish("onCinematicSettingsVisibilityChange",G)};g.T(D8T,kH);g.T(UE,kH);UE.prototype.setCreatorEndscreenVisibility=function(G){var X;(X=US(this.api.p7()))==null||X.Ta(G)}; UE.prototype.N=function(G){function X(R){R==="creatorendscreen"&&(R=US(Q.api.p7()))&&R.AEi(Q.hideButton)} var Q=this;this.hideButton=G;this.events.B(this.api,"modulecreated",X);X("creatorendscreen")};g.T(lU,TT);lU.prototype.V=function(G){this.Y(G?1:0);this.U.publish("audiopreferencechange")}; lU.prototype.RC=function(){if(this.enableNewAudioSettingsMenu){var G=this.U.getPresentingPlayerType();G===2||G===3?(this.N=!1,this.gb.Md(this)):(G=this.getDrcState(),G!==1?(G===0?(KE(this,this.W()===1),this.setEnabled(!0)):(KE(this,!1),this.setEnabled(!1)),this.N||(this.gb.jj(this),this.N=!0)):this.N&&(this.gb.Md(this),this.N=!1))}else{G=this.hasDrcAudioTrack();var X=this.W()===1&&G;KE(this,X);this.setEnabled(G)}}; lU.prototype.zT=function(){this.gb.Md(this);TT.prototype.zT.call(this)};g.T(Bv,kH);g.P=Bv.prototype;g.P.getDrcUserPreference=function(){return this.N}; g.P.setDrcUserPreference=function(G){this.api.G("html5_log_drc_pref")&&this.api.Ni("drc_set",{pref:G});g.E5("yt-player-drc-pref",G,31536E3);G!==this.N&&(this.N=G,this.updateEnvironmentData(),this.JG()&&this.api.eC())}; g.P.updateEnvironmentData=function(){this.api.Z().PR=this.N===1}; g.P.JG=function(){var G,X,Q=(G=this.api.getVideoData())==null?void 0:(X=G.Y)==null?void 0:X.N;if(!Q)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.G("mta_drc_mutual_exclusion_removal")){var R,S,Z=(R=this.api.qV())==null?void 0:(S=R.kP)==null?void 0:S.id;return p0(Q,function(H){var w;return H.audio.N&&((w=H.kP)==null?void 0:w.id)===Z})}return p0(Q,function(H){var w; return((w=H.audio)==null?void 0:w.N)===!0})}; g.P.getDrcState=function(){return this.api.Cp(2)};g.T(FK,kH);FK.prototype.onVideoDataChange=function(){var G=this,X=this.api.getVideoData();this.api.lf("embargo",1);var Q=X==null?void 0:X.VY.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(Q==null?0:Q.length)?$87(this,Q.filter(function(R){return ATl(G,R)})):(X==null?0:X.cueRanges)&&$87(this,X.cueRanges.filter(function(R){return ATl(G,R)}))}; FK.prototype.W=function(G){return G.embargo!==void 0}; FK.prototype.zT=function(){kH.prototype.zT.call(this);this.N={}};g.T(CE,kH); CE.prototype.addEmbedsConversionTrackingParams=function(G){var X=this.api.Z(),Q=X.widgetReferrer,R=X.F7,S=this.N,Z="",H=X.getWebPlayerContextConfig();H&&(Z=H.embedsIframeOriginParam||"");Q.length>0&&(G.embeds_widget_referrer=Q);R.length>0&&(G.embeds_referring_euri=R);X.V&&Z.length>0&&(G.embeds_referring_origin=Z);H&&H.embedsFeature&&(G.feature=H.embedsFeature);S.length>0&&(X.G("embeds_web_enable_lite_experiment_control_arm_logging")?S.unshift(28572):g.Rc(g.ql(X))&&S.unshift(159628),X=S.join(","),X= g.V9()?X:g.zX(X,4),G.source_ve_path=X);this.N.length=0};g.T(b_0,kH);g.T(vee,kH);g.T(th,g.I);th.prototype.zT=function(){g.I.prototype.zT.call(this);this.N=null;this.W&&this.W.disconnect()};g.T(i_i,kH);g.T(Vn,g.f);Vn.prototype.show=function(){g.f.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Vn.prototype.stopTimer=function(){this.N&&(this.N.dispose(),this.N=null)}; Vn.prototype.onVideoDataChange=function(G){var X,Q,R=(X=this.api.getVideoData())==null?void 0:(Q=X.getPlayerResponse())==null?void 0:Q.playabilityStatus;R&&(X=G1w(R),g.N(this.api.getPlayerStateObject(),128)||G==="dataloaderror"||!X?(this.W=0,this.stopTimer(),this.hide()):(G=(X.remainingTimeSecs||0)*1E3,G>0&&(this.show(),this.updateValue("label",v3(X.label)),Q_G(this,G))))}; Vn.prototype.zT=function(){this.stopTimer();g.f.prototype.zT.call(this)};g.T(RDZ,kH);g.T(IG,g.f);IG.prototype.onClick=function(){this.PM.logClick(this.element);this.PM.E_("onFullerscreenEduClicked")}; IG.prototype.GT=function(){this.PM.isFullscreen()?this.N?this.fade.hide():this.fade.show():this.hide();this.PM.logVisibility(this.element,this.PM.isFullscreen()&&!this.N)};g.T(dU,kH);dU.prototype.updateFullerscreenEduButtonSubtleModeState=function(G){var X;(X=this.N)!=null&&(g.S_(X.element,"ytp-fullerscreen-edu-button-subtle",G),G&&!X.W&&(X.PM.G("player_tooltip_data_title_killswitch")?X.element.setAttribute("title","Scroll for details"):X.element.setAttribute("data-tooltip-title","Scroll for details"),IM(X.PM,X.element,X),X.W=!0))}; dU.prototype.updateFullerscreenEduButtonVisibility=function(G){var X;(X=this.N)!=null&&(X.N=G,X.GT())};g.T(S40,g.f);g.T(q4X,kH);g.T(Wv,kH);Wv.prototype.getSphericalProperties=function(){var G=g.AL(this.api.p7());return G?G.getSphericalProperties():{}}; Wv.prototype.setSphericalProperties=function(G){if(G){var X=g.AL(this.api.p7());X&&X.setSphericalProperties(G,!0)}};g.T(pE,kH);g.P=pE.prototype;g.P.createClientVe=function(G,X,Q,R){this.api.createClientVe(G,X,Q,R===void 0?!1:R)}; g.P.createServerVe=function(G,X,Q){this.api.createServerVe(G,X,Q===void 0?!1:Q)}; g.P.setTrackingParams=function(G,X){this.api.setTrackingParams(G,X)}; g.P.logClick=function(G,X){this.api.logClick(G,X)}; g.P.logVisibility=function(G,X,Q){this.api.logVisibility(G,X,Q)}; g.P.hasVe=function(G){return this.api.hasVe(G)}; g.P.destroyVe=function(G){this.api.destroyVe(G)};DJ.prototype.Cp=function(G){return this.N[G]}; DJ.prototype.zJ=function(){for(var G=this.Y,X={},Q=g.e(yn),R=Q.next();!R.done;R=Q.next())if(R=R.value,this.W[R]){G=fE[R].jH(G,this.videoData);for(var S=g.e(yn),Z=S.next();!Z.done;Z=S.next())Z=Z.value,X[Z]!==void 0||p0(G,fE[Z].XH)||(X[Z]=fE[R].LR);X[R]===void 0&&(X[R]=0)}else X[R]=1;this.N=X}; var yn=[0,1,3,2],qi={},fE=(qi[0]={LR:2,XH:mgS,jH:w_U},qi[1]={LR:3,XH:hDG,jH:LrG},qi[2]={LR:4,XH:k1G,jH:Y40},qi[3]={LR:5,XH:j_y,jH:M9i},qi);var uye=!1;Ah.prototype.setPlaybackRate=function(G){this.playbackRate=Math.max(1,G)}; Ah.prototype.getPlaybackRate=function(){return this.playbackRate};Jh.prototype.nJ=function(G){var X=g.bn(G.info.N.info,this.vM.IW),Q=G.info.oU+this.V,R=G.info.startTime*1E3;if(this.policy.cM)try{R=this.policy.cM?g.aW(G)*1E3:G.info.startTime*1E3}catch(H){Math.random()>.99&&this.logger&&(R=w2(G.W).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:G.info.Hn(),encodedDataView:g.Oo(R,4)})),R=G.info.startTime*1E3}var S=G.info.clipId,Z=this.policy.cM?g.NPT(G)*1E3:G.info.duration*1E3;this.policy.cM&&(R<0||Z<0)&&(this.logger&&(this.logger({missingSegInfo:G.info.Hn(), startTimeMs:R,durationMs:Z}),this.policy.fQ||(R<0&&(R=G.info.startTime*1E3),Z<0&&(Z=G.info.duration*1E3))),this.policy.fQ&&(R<0&&(R=G.info.startTime*1E3),Z<0&&(Z=G.info.duration*1E3)));return{formatId:X,oU:Q,startTimeMs:R,clipId:S,D9:Z}}; Jh.prototype.Kj=function(G){this.timestampOffset=G};iU.prototype.seek=function(G,X){G!==this.targetTime&&(this.seekCount=0);this.targetTime=G;var Q=this.videoTrack.W,R=this.audioTrack.W,S=this.audioTrack.l6,Z=CFl(this,this.videoTrack,G,this.videoTrack.l6,X);X=CFl(this,this.audioTrack,this.policy.Hs?G:Z,S,X);G=Math.max(G,Z,X);this.V=!0;this.vM.isManifestless&&(gmT(this,this.videoTrack,Q),gmT(this,this.audioTrack,R));return G}; iU.prototype.isSeeking=function(){return this.V}; iU.prototype.Wt=function(G){this.W=G}; var FrU=2/24;var I1G=0;g.P=LB.prototype;g.P.M0=function(){this.j=this.now();Twe(this.VN,this.j);this.YP.M0()}; g.P.uX=function(G,X){var Q=this.policy.W?(0,g.TB)():0;k8(this,G,X);G-this.S<10&&this.W>0||this.hF(G,X);this.YP.uX(G,X);this.policy.W&&(G=(0,g.TB)()-Q,this.Hs+=G,this.KO=Math.max(G,this.KO))}; g.P.hF=function(G,X){var Q=(G-this.S)/1E3,R=X-this.Y;this.S3||(yQ(this.VN,Q,R),this.S4(Q,R));this.S=G;this.Y=X}; g.P.BD=function(){this.DC&&dgC(this);this.YP.BD()}; g.P.rd=function(G){this.DC||(this.DC=this.C-this.C7+G,this.F7=this.C,this.f7=this.J)}; g.P.Ic=function(G,X){G=G===void 0?this.J:G;X=X===void 0?this.C:X;this.W>0||(this.T=G,this.W=X,this.AT=this.isActive=!0)}; g.P.Yx=function(){return this.Rs||2}; g.P.SV=function(){}; g.P.u5=function(){var G,X={rn:this.requestNumber,rt:(this.J-this.N).toFixed(),lb:this.C,stall:(1E3*this.V).toFixed(),ht:(this.j-this.N).toFixed(),elt:(this.T-this.N).toFixed(),elb:this.W,d:(G=this.Mi)==null?void 0:G.Zh()};this.url&&omU(X,this.url);this.policy.W&&(X.mph=this.KO.toFixed(),X.tph=this.Hs.toFixed());X.ulb=this.QH;X.ult=this.yH;return X}; g.P.now=function(){return(0,g.TB)()}; g.P.deactivate=function(){this.isActive&&(this.isActive=!1)};g.T(j3,LB);g.P=j3.prototype;g.P.u5=function(){var G=LB.prototype.u5.call(this);G.pb=this.SU;G.pt=(1E3*this.bB).toFixed();G.se=this.Js;return G}; g.P.qh=function(){var G=this.YP;this.Xm||(this.Xm=G.qh?G.qh():1);return this.Xm}; g.P.sJ=function(){return this.IX?this.qh()!==1:!1}; g.P.u4=function(G,X,Q){if(!this.Ps){this.Ps=!0;if(!this.S3){k8(this,G,X);this.hF(G,X);var R=this.qh();this.Js=Q;if(!this.S3)if(R===2){R=G-this.T0)||MI(this,R,X),this.W>0&&Wm(this.VN,X,this.V));G=(G-this.N)/ 1E3||.01;this.policy.T&&!(this.W>0)||dn(this.VN,G,this.Y,p_X(this),this.xf)}this.deactivate()}}; g.P.VO=function(G,X,Q){Q&&(this.Xm=2);G<0&&this.Rs&&(G=this.Rs);X?this.wb+=G:this.CO+=G}; g.P.Yx=function(){return this.CO||this.wb||LB.prototype.Yx.call(this)}; g.P.hF=function(G,X){var Q=(G-this.S)/1E3,R=X-this.Y,S=this.qh();this.isActive?S===1&&((R>0||this.policy.C)&&(Q>.2||R<1024)?(this.V+=Q,R>0&&Q>.2&&MI(this,this.oX?Q:.05,R),this.As=!0):R>0&&(MI(this,Q,R),this.As=!0)):X&&X>=this.policy.N&&this.Ic(G,X);LB.prototype.hF.call(this,G,X)}; g.P.Ea=function(G){if(!this.S3){k8(this,G,this.C);var X=(G-this.N)/1E3;this.qh()!==2&&this.W>0&&(this.V+=(G-this.S)/1E3,Wm(this.VN,this.Y,this.V));dn(this.VN,X,this.Y,p_X(this),this.xf,!0);G=(G-this.S)/1E3;yQ(this.VN,G,0);this.S4(G,0)}}; g.P.Ic=function(G,X){G=G===void 0?this.J:G;X=X===void 0?this.C:X;if(!(this.W>0)&&(LB.prototype.Ic.call(this,G,X),this.qh()===1)){X=(this.j-this.N)/1E3;var Q=(G-this.j)/1E3;this.IX&&mv(this,this.now());this.N9||this.S3||(this.Rs&&(Q=Math.max(0,Q-this.Rs)),G=this.VN,G.T.iF(1,X),G.Mi.iF(1,Q))}}; g.P.tV=function(){this.IX&&mv(this,this.now());return this.SA}; g.P.mV=function(){var G;if(G=this.Y>this.b4)G=(G=this.Y)?G>=this.policy.N:!1;return G}; g.P.sU=function(){return this.cM}; g.P.Qr=function(G){G=G===void 0?this.now():G;if(this.IX){mv(this,G);if(this.Xm?this.sJ():this.Yc!==this.IU){var X=this.IU;if(G0?Q+G:Q+Math.max(G,X)}; g.P.ue=function(){return this.now()-this.T}; g.P.H3=function(){return(this.Y-this.W)*1E3/this.ue()||0}; g.P.AV=function(){return this.T};oF.prototype.feed=function(G){R8(this.N,G);this.VD()}; oF.prototype.VD=function(){if(this.V){if(!this.N.totalLength)return;var G=this.N.split(this.Y-this.W),X=G.JM;G=G.JC;if(!this.YP.rd(this.V,X,this.W,this.Y))return;this.W+=X.totalLength;this.N=G;this.W===this.Y&&(this.V=this.Y=this.W=void 0)}for(;;){var Q=0;G=g.e(N$C(this.N,Q));X=G.next().value;Q=G.next().value;Q=g.e(N$C(this.N,Q));G=Q.next().value;Q=Q.next().value;if(X<0||G<0)break;if(!(Q+G<=this.N.totalLength)){if(!(this.YP.rd&&Q+1<=this.N.totalLength))break;Q=this.N.split(Q).JC;this.YP.rd(X,Q,0, G)&&(this.V=X,this.W=Q.totalLength,this.Y=G,this.N=new Qk([]));break}G=this.N.split(Q).JC.split(G);Q=G.JC;this.YP.Nr(X,G.JM);this.N=Q}}; oF.prototype.dispose=function(){this.N=new Qk};g.P=uh.prototype;g.P.Lk=function(){return 0}; g.P.RR=function(){return null}; g.P.Ew=function(){return null}; g.P.Xk=function(){return this.state>=1}; g.P.isComplete=function(){return this.state>=3}; g.P.sf=function(){return this.state===5}; g.P.onStateChange=function(){}; g.P.qx=function(G){var X=this.state;this.state=G;this.onStateChange(X);this.callback&&this.callback(this,X)}; g.P.Zl=function(G){G&&this.state=this.xhr.HEADERS_RECEIVED}; g.P.getResponseHeader=function(G){try{return this.xhr.getResponseHeader(G)}catch(X){return""}}; g.P.h7=function(){return+this.getResponseHeader("content-length")}; g.P.Yw=function(){return this.W}; g.P.KV=function(){return this.status>=200&&this.status<300&&!!this.W}; g.P.kq=function(){return this.N.totalLength>0}; g.P.z4=function(){var G=this.N;this.N=new Qk;return G}; g.P.Qn=function(){return this.N}; g.P.abort=function(){this.U_=!0;this.xhr.abort()}; g.P.Oz=function(){return!0}; g.P.Xb=function(){return this.Y}; g.P.uT=function(){return""};g.P=bRC.prototype;g.P.getResponseHeader=function(G){return G==="content-type"?this.N.get("type"):""}; g.P.abort=function(){}; g.P.GS=function(){return!0}; g.P.h7=function(){return this.range.length}; g.P.Yw=function(){return this.loaded}; g.P.KV=function(){return!!this.loaded}; g.P.kq=function(){return!!this.W.totalLength}; g.P.z4=function(){var G=this.W;this.W=new Qk;return G}; g.P.Qn=function(){return this.W}; g.P.Oz=function(){return!0}; g.P.Xb=function(){return!!this.error}; g.P.uT=function(){return this.error};g.P=JXw.prototype;g.P.start=function(G){var X={credentials:"include",cache:"no-store"};Object.assign(X,this.J);this.V&&(X.signal=this.V.signal);G=new Request(G,X);fetch(G).then(this.j,this.onError).then(void 0,XE)}; g.P.onDone=function(){this.U_()||this.YP.BD()}; g.P.getResponseHeader=function(G){return this.responseHeaders?this.responseHeaders.get(G):null}; g.P.GS=function(){return!!this.responseHeaders}; g.P.Yw=function(){return this.W}; g.P.h7=function(){return+this.getResponseHeader("content-length")}; g.P.KV=function(){return this.status>=200&&this.status<300&&!!this.W}; g.P.kq=function(){return!!this.N.totalLength}; g.P.z4=function(){var G=this.N;this.N=new Qk;return G}; g.P.Qn=function(){return this.N}; g.P.U_=function(){return this.C}; g.P.abort=function(){this.Y&&this.Y.cancel().catch(function(){}); this.V&&this.V.abort();this.C=!0}; g.P.Oz=function(){return!0}; g.P.Xb=function(){return this.S}; g.P.uT=function(){return this.errorMessage};g.P=iRl.prototype;g.P.onDone=function(){if(!this.U_){this.status=this.xhr.status;try{this.response=this.xhr.response,this.W=this.response.byteLength}catch(G){}this.N=!0;this.YP.BD()}}; g.P.dw=function(){this.xhr.readyState===2&&this.YP.M0()}; g.P.onProgress=function(G){this.U_||(this.status=this.xhr.status,this.N||(this.W=G.loaded),this.YP.uX((0,g.TB)(),G.loaded))}; g.P.GS=function(){return this.xhr.readyState>=2}; g.P.getResponseHeader=function(G){try{return this.xhr.getResponseHeader(G)}catch(X){return g.EL(Error("Could not read XHR header "+G)),""}}; g.P.h7=function(){return+this.getResponseHeader("content-length")}; g.P.Yw=function(){return this.W}; g.P.KV=function(){return this.status>=200&&this.status<300&&this.N&&!!this.W}; g.P.kq=function(){return this.N&&!!this.response&&!!this.response.byteLength}; g.P.z4=function(){var G=this.response;this.response=void 0;return new Qk([new Uint8Array(G)])}; g.P.Qn=function(){return new Qk([new Uint8Array(this.response)])}; g.P.abort=function(){this.U_=!0;this.xhr.abort()}; g.P.Oz=function(){return!1}; g.P.Xb=function(){return!1}; g.P.uT=function(){return""};g.T(TN,g.I);TN.prototype.Gx=function(){if(!this.On.length)return[];var G=this.On;this.On=[];this.Y=g.uL(G).info;return G}; TN.prototype.Ay=function(){return this.On}; TN.prototype.zT=function(){g.I.prototype.zT.call(this);this.N=null;this.On.length=0;this.LO.length=0;this.Y=null};g.T(e3,g.I);g.P=e3.prototype; g.P.PLb=function(){if(!this.U_()){var G=(0,g.TB)(),X=!1;if(this.policy.rJ){var Q=this.timing.W>0?this.timing.T:this.timing.N;this.policy.dA&&this.Y&&(Q=this.Y);G=G-Q-this.timing.Yx()*1E3;Q=dK(rI(this),!1);G>=2E3*Q?X=!0:G>=this.policy.m9*Q&&(this.N=this.policy.Z5)}else if(this.timing.W>0){if(this.S){this.policy.l9&&(this.N=0);return}var R=this.timing.sU();this.timing.Qr();var S=this.timing.sU();S-R>=this.policy.PR*.8?(this.N++,this.logger.debug(function(){return"Mispredicted by "+(S-R).toFixed(0)}), X=this.N>=5):this.N=0}else{var Z=G-this.timing.tV(); this.policy.Z5&&Z>0&&(this.N+=1);X=dK(rI(this),!1)*this.policy.hd;(X=Z>X*1E3)&&this.logger.debug(function(){return"Elbow late by "+Z.toFixed(3)})}this.N>0&&this.YP.qv(); X?this.TA():this.W.start()}}; g.P.TA=function(){this.C=!0;this.YP.Kq();this.lastError="net.timeout";EG(this)}; g.P.canRetry=function(G){var X=rI(this);G=G?this.policy.l7:this.policy.G7;return X.timedOut0&&(X=hK(X.N,0),G.ubyte=X,Q===1&&X===0&&(G.b248180278=!0))}this.CL&&(G.rc=this.policy.KQ?this.CL:this.CL.toString());this.policy.Xq&&this.Xf&&(G.tr=this.Xf);G.itag=this.info.LO[0].N.info.itag;G.ml=""+ +this.info.LO[0].N.pL();G.sq=""+this.info.LO[0].oU;this.WZ&&(G.ifi=""+ +$m(this.info.xP.W));this.CL!==410&&this.CL!==500&&this.CL!==503||(G.fmt_unav="true");var R;(Q=this.errorMessage||((R=this.xhr)==null?void 0: R.uT()))&&(G.msg=Q);this.xj&&(G.smb="1");this.info.isDecorated()&&(G.sdai="1");return G}; g.P.cV=function(){return yXU(this.timing)}; g.P.uT=function(){return this.xhr.uT()||""}; g.P.mV=function(){return this.isComplete()||this.timing.mV()}; g.P.uX=function(){!this.U_()&&this.xhr&&(this.CL=this.xhr.status,this.policy.p6&&this.YF&&this.hw(!1),this.Ss()?this.Zl(2):!this.qY&&this.mV()&&(this.Zl(),this.qY=!0))}; g.P.M0=function(){if(!this.U_()&&this.xhr){if(!this.YV&&this.xhr.GS()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var G=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.YV=((0,g.TB)()-G)/1E3}this.xhr.GS()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.H7&&!nUC()&&g.E5("yt-player-headers-readable",!0,2592E3);G=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var X=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),Q;(Q=this.N0)==null||Q.stop();this.Tq=G||this.Tq; this.pQ=X||this.pQ}}; g.P.BD=function(){var G=this.xhr;if(!this.U_()&&G){this.CL=G.status;G=this.iS(G);if(this.policy.Xq){var X;(X=this.N0)==null||X.stop()}G===5?EG(this.pY):this.qx(G);this.pY.W.stop()}}; g.P.iS=function(G){var X=this;l9e(this);if(x8(this.pY,this.xhr.status,this.x0?this.timing.AT||this.jJ:this.xhr.KV(),!1,this.Kb))return 5;var Q="";OG(this.pY,this.xhr)&&(Q=ZfC(this.pY,this.xhr));if(Q)return Ij(rI(this.pY)),this.info.hX(this.WZ,Q),3;Q=G.Yw();if(this.e8){this.hw(!0);l9e(this);if(x8(this.pY,this.xhr.status,this.timing.AT||this.jJ,!1,this.Kb))return 5;if(!this.yB){if(this.jJ)return Ij(rI(this.pY)),3;this.pY.lastError="net.closed";return 5}}else{if(x8(this.pY,this.xhr.status,this.xhr.KV(), !1,this.Kb))return 5;var R=this.info.Y;if(R&&R!==Q||G.Xb())return this.pY.lastError="net.closed",5;this.hw(!0)}R=AX7(this)?G.getResponseHeader("X-Bandwidth-Est"):0;if(G=AX7(this)?G.getResponseHeader("X-Bandwidth-Est3"):0)this.jV=!0,this.policy.qs&&(R=G);Rgy(this.pY,Q,R?Number(R):0,this.info.LO[0].type===5);this.logger.debug(function(){var S=X.timing;return"Succeeded, rtpd="+(S.bB*1E3+S.N-Date.now()).toFixed(0)}); return 4}; g.P.canRetry=function(){this.U_();var G=this.info.isDecorated();return this.pY.canRetry(G)}; g.P.onStateChange=function(){this.isComplete()&&(this.policy.OH?this.Kq():this.timing.deactivate())}; g.P.TA=function(){this.pY.TA()}; g.P.qv=function(){this.callback&&this.callback(this,this.state)}; g.P.Id=function(){return this.pY.Id()}; g.P.dispose=function(){uh.prototype.dispose.call(this);this.pY.dispose();var G;(G=this.N0)==null||G.dispose();this.policy.OH||this.Kq()}; g.P.Kq=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.P.Gx=function(){if(!this.Ay().length)return[];this.ey=!0;return this.YF.Gx()}; g.P.Ss=function(){if(this.state<1)return!1;if(this.YF&&this.YF.On.length)return!0;var G;return((G=this.xhr)==null?0:G.kq())?!0:!1}; g.P.Ay=function(){this.hw(!1);return this.YF?this.YF.Ay():[]}; g.P.hw=function(G){try{if(G||this.xhr.GS()&&this.xhr.kq()&&!OG(this.pY,this.xhr)&&!this.WW)this.YF||(this.YF=new TN(this.policy,this.info.LO)),this.xhr.kq()&&(this.e8?this.e8.feed(this.xhr.z4()):KB(this.YF,this.xhr.z4(),G&&!this.xhr.kq()))}catch(X){this.e8?cQS(this,X):g.EL(X)}}; g.P.Nr=function(G,X){switch(G){case 21:G=X.split(1).JC;gXy(this,G);break;case 22:this.yB=!0;KB(this.YF,new Qk([]),!0);break;case 43:if(G=r2(new uJ(X),1))this.info.hX(this.WZ,G),this.jJ=!0;break;case 45:X=ln(new uJ(X));G=X.B$;X=X.TX;G&&X&&(this.uV=G/X);break;case 44:this.vW=agT(new uJ(X));var Q,R,S;!this.timing.AT&&((Q=this.vW)==null?void 0:Q.action)===4&&((R=this.vW)==null?0:(S=R.Bg)==null?0:S.x0)&&(this.x0=this.vW.Bg.x0);break;case 53:this.policy.Xq&&(G=KU0(new uJ(X)).yC)&&(this.N0||(this.yC=G,this.N0= new g.fU(this.OC,G,this)),this.N0.start());break;case 60:this.Pe=UA(new uJ(X));break;case 58:if(G=J4X(new uJ(X)))this.qw=G,G.qw===3&&(this.Kb=!0)}}; g.P.rd=function(G,X,Q,R){Q||this.timing.rd(R);if(G!==21)return!1;if(G=this.policy.p6)if(G*=this.info.LO[0].N.info.jA,X.totalLength+Q!==R&&X.totalLength0)return!1;if(!this.xhr.GS())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.e8)var G=!this.info.Y;else this.xhr.h7()?G=!1:(G=this.xhr.getResponseHeader("content-type"),G=G==="audio/mp4"||G==="video/mp4"||G==="video/webm");if(!G)return!1;if(isNaN(this.info.WF)){G=this.xhr.getResponseHeader("x-head-seqnum");var X=this.timing.policy.J?1:0;if(!G)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(G)>this.info.LO[0].oU+X)return!1}return!0}; g.P.Mv=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.P.RR=function(){this.xhr&&(this.Tq=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Tq}; g.P.Ew=function(){this.xhr&&(this.pQ=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.pQ}; g.P.iE=function(){return this.pY.iE()}; g.P.OC=function(){if(!this.U_()&&this.xhr){this.Xf="heartbeat";var G=this.pY;G.N+=2;this.qv()}};g.T(CB,LB);g.P=CB.prototype;g.P.hF=function(G,X){var Q=(G-this.S)/1E3,R=X-this.Y;this.W>0?R>0&&(this.Yc&&(Q>.2||R<1024?(this.V+=Q,Q>.2&&BK0(this,.05,R)):BK0(this,Q,R)),this.IU&&(this.SA+=R,this.CO+=Q)):X>this.policy.N&&this.Ic(G,X);LB.prototype.hF.call(this,G,X)}; g.P.u4=function(G,X){k8(this,G,X);this.hF(G,X);this.Yc&&(X=this.Y*this.snapshot.stall+this.Y/this.snapshot.byterate,this.W>0&&Wm(this.VN,this.SA,this.V),G=(G-this.N)/1E3||.01,this.policy.T&&!(this.W>0)||dn(this.VN,G,this.Y,X,!1))}; g.P.Ea=function(G){k8(this,G,this.C);var X=(G-this.S)/1E3;yQ(this.VN,X,0);this.S4(X,0);!this.Yc&&this.W>0||(X=this.Y*this.snapshot.stall+this.Y/this.snapshot.byterate,this.W>0&&(this.V+=(G-this.S)/1E3,Wm(this.VN,this.SA,this.V)),dn(this.VN,(G-this.N)/1E3||.01,this.Y,X,!1,!0))}; g.P.fC=function(G){G=G.oS||2147483647;(G&2)!==2&&(this.IU=!1);(G&1)===1&&(this.Yc=!0)}; g.P.Oe=function(G){G=G.oS||2147483647;(G&2)===2&&(this.IU=!1);(G&1)===1&&(this.Yc=!1)}; g.P.AV=function(){return this.T}; g.P.ue=function(){var G=this.IU?this.now()-this.S:0;return Math.max(this.CO*1E3+G,1)}; g.P.H3=function(){return this.SA*1E3/this.ue()}; g.P.Ic=function(G,X){G=G===void 0?this.J:G;X=X===void 0?this.C:X;this.W>0||(LB.prototype.Ic.call(this,G,X),X=this.VN,G=(G-this.j)/1E3,X.T.iF(1,(this.j-this.N)/1E3),X.Mi.iF(1,G))}; g.P.SV=function(G){this.wb=G}; g.P.u5=function(){var G=LB.prototype.u5.call(this);G.rbw=this.H3();G.rbe=+this.IU;G.gbe=+this.Yc;G.ackt=(this.wb-this.N).toFixed();return G}; g.P.Qr=function(){}; g.P.sU=function(){return NaN}; g.P.tV=function(){return this.N+this.snapshot.delay*1E3};tH.prototype.Nr=function(G,X){switch(G){case 20:G=new uJ(X);G={Lp:TV(G,1),videoId:r2(G,2),itag:TV(G,3),lmt:TV(G,4),xtags:r2(G,5),lW:TV(G,6),iA:Kr(G,8),Cg:TV(G,9),VCc:TV(G,10),startMs:TV(G,11),durationMs:TV(G,12),R5:TV(G,14),timeRange:a8(G,15,FJC),OG:TV(G,16),B7:TV(G,17),clipId:r2(G,1E3)};this.Gs(G);break;case 21:this.qJ(X,!1);break;case 22:this.YB(X);break;case 31:G=O9(X,j1G);this.Hu(G);break;case 52:G=O9(X,enG);this.uW(G);break;default:this.sQ(G,X)}}; tH.prototype.Gs=function(){}; tH.prototype.sQ=function(){};g.T(V8,tH);g.P=V8.prototype; g.P.sQ=function(G,X){switch(G){case 35:this.VC(X);break;case 44:this.TQ(X);break;case 43:this.EQ(X);break;case 53:this.OQ(X);break;case 56:this.Ee();break;case 57:this.c9(X);break;case 42:this.o7(X);break;case 45:this.xB(X);break;case 59:this.Bl(X);break;case 51:this.KC(X);break;case 49:this.fC(X);break;case 50:this.Oe(X);break;case 47:this.LC(X);break;case 58:this.xJ(X);break;case 61:this.YP.jz.SV((0,g.TB)());break;case 66:this.dk(X);break;case 46:this.w_(X);break;case 67:this.onSnackbarMessage(X);break; case 69:this.b5(X)}}; g.P.KC=function(G){G=new uJ(G);G={d8T:xJ(G,1,OA),raA:xJ(G,2,OA)};this.YP.KC(G)}; g.P.Bl=function(G){var X=new uJ(G);G=E9(X,1);var Q=E9(X,2);X=E9(X,3);this.YP.Bl(G,Q,X)}; g.P.xB=function(G){G=ln(new uJ(G));this.YP.xB(G)}; g.P.LC=function(G){G=O9(G,oAV);this.YP.LC(G)}; g.P.o7=function(G){G=new uJ(G);G={videoId:r2(G,1),formatId:a8(G,2,OA),endTimeMs:TV(G,3),Sld:TV(G,4),mimeType:r2(G,5),TD:a8(G,6,qXw),indexRange:a8(G,7,qXw),Jp:a8(G,8,wVl)};this.YP.o7(G)}; g.P.c9=function(G){G=new uJ(G);G={type:TV(G,1),scope:TV(G,2),value:ex(G,3),sendByDefault:Kr(G,4),writePolicy:TV(G,5)};this.YP.c9(G)}; g.P.Ee=function(){this.YP.Ee()}; g.P.VC=function(G){G=MzG(new uJ(G));this.YP.VC(G)}; g.P.OQ=function(G){G=KU0(new uJ(G));this.YP.OQ(G)}; g.P.TQ=function(G){G=agT(new uJ(G));this.YP.TQ(G)}; g.P.EQ=function(G){G={redirectUrl:r2(new uJ(G),1)};this.YP.EQ(G)}; g.P.qJ=function(G){var X=hK(G,0);if(G.totalLength!==1){G=G.split(1).JC;var Q=this.W[X]||null;Q&&Dh(this.YP.Ko,X,Q,G)}}; g.P.YB=function(G){G=hK(G,0);var X=this.W[G]||null;X&&this.YP.YB(G,X)}; g.P.uW=function(G){this.YP.uW(G)}; g.P.Gs=function(G){var X=G.Lp,Q=G.iA,R=G.lW,S=G.B7,Z=G.OG,H=G.Cg,w=G.startMs,h=G.durationMs,L=G.timeRange,k=G.R5,Y=G.clipId,M=AQ(G);G=nN4.has(IE[""+G.itag]);this.W[X]=M;this.YP.VO(M,G,{Lp:X,iA:!!Q,lW:R!=null?R:-1,Cg:H!=null?H:-1,startMs:w!=null?w:-1,durationMs:h!=null?h:-1,R5:k,B7:S,OG:Z,clipId:Y,timeRange:L})}; g.P.fC=function(G){G={oS:TV(new uJ(G),1)};this.YP.fC(G)}; g.P.Oe=function(G){G={oS:TV(new uJ(G),1)};this.YP.Oe(G)}; g.P.Hu=function(G){this.YP.Hu(G)}; g.P.xJ=function(G){G=J4X(new uJ(G));this.YP.xJ(G)}; g.P.dk=function(G){G={LJ:a8(new uJ(G),1,s1X)};this.YP.dk(G)}; g.P.onSnackbarMessage=function(G){G=TV(new uJ(G),1);this.YP.onSnackbarMessage(G)}; g.P.b5=function(G){G={fG:xJ(new uJ(G),1,Hwi)};this.YP.b5(G)}; g.P.w_=function(G){G=new uJ(G);G={reloadPlaybackParams:a8(G,1,vCw),nA:Kr(G,2)};this.YP.w_(G)};g.T(IF,g.I);g.P=IF.prototype;g.P.RD=function(){return Array.from(this.CY.keys())}; g.P.Q_=function(G){G=this.CY.get(G);var X=G.On;G.NV+=X.totalLength;G.On=new Qk;return X}; g.P.Bz=function(G){return this.CY.get(G).Bz}; g.P.w8=function(G){return this.CY.get(G).w8}; g.P.VO=function(G,X,Q){this.CY.get(G)||I9T(this,G,X);X=this.CY.get(G);this.vM?(G=Wul(this,G,Q),d77(this,Q.Lp,X,G)):(Q.iA?X.By=Q.R5:X.nC.push(Q),X.m1.push(Q))}; g.P.e3=function(G){var X;return((X=this.CY.get(G))==null?void 0:X.LO)||[]}; g.P.Zl=function(){for(var G=g.e(this.CY.values()),X=G.next();!X.done;X=G.next())if(X=X.value,X.hK){if(X.onProgress)X.onProgress();X.hK=!1}}; g.P.YB=function(G,X){this.logger.debug(function(){return"[onMediaEnd] formatId: "+X}); var Q=this.CY.get(X);dI?Q&&!Q.Bz&&(Q.UG.get(G)?Q.UG.get(G).TC=!0:Q.UG.set(G,{data:new Qk,tU:0,TC:!0}),Q.w8=!0):Q&&!Q.w8&&(Q.w8=!0)}; g.P.Gx=function(G){if(dI){var X=this.CY.get(G);if(X)for(var Q=g.e(X.UG),R=Q.next();!R.done;R=Q.next()){var S=g.e(R.value);R=S.next().value;S=S.next().value;var Z=X.W2.get(R);if(Gu(Z[0])){if(!S.TC)continue;var H=S.data,w=0,h=[];Z=g.e(Z);for(var L=Z.next();!L.done;L=Z.next()){L=L.value;var k=L.Y,Y=Sx(H,w,k);w+=k;h.push(new Kh(L,Y))}X.D6.push.apply(X.D6,g.o0(h))}else if(S.data.totalLength>0||!Z[0].range&&S.TC)H=void 0,w=Z[0],h=S.tU,Z=S.data,w.range||(H=S.TC),H=new Kh(sEl(w,w.W+h,Z.totalLength,H),Z), S.tU+=H.info.Y,X.D6.push(H);X.UG.get(R).data=new Qk;S.TC&&X.UG.delete(R)}G=this.CY.get(G);if(!G)return[];X=G.D6;G.D6=[];Q=g.e(X);for(R=Q.next();!R.done;R=Q.next())G.NV+=R.value.info.Y;return X||[]}Q=(X=this.CY.get(G))==null?void 0:X.YF;if(!Q)return[];this.hw(G,Q);return Q.Gx()}; g.P.Ss=function(G){if(dI)return fB(this,G);var X,Q,R;return!!((Q=(X=this.CY.get(G))==null?void 0:X.YF)==null?0:(R=Q.Ay())==null?0:R.length)||fB(this,G)}; g.P.hw=function(G,X){for(;fB(this,G);){var Q=this.Q_(G);var R=G;R=this.CY.get(R).Bz&&!y8(this,R);KB(X,Q,R&&V4e(this,G))}}; g.P.zT=function(){g.I.prototype.zT.call(this);for(var G=g.e(this.CY.keys()),X=G.next();!X.done;X=G.next())WQ(this,X.value);var Q;if((Q=this.XG)==null?0:Q.m4)for(G=g.e(this.CY.values()),X=G.next();!X.done;X=G.next())X=X.value,X.UG.clear(),X.W2.clear(),X.D6.length=0,X.LO.length=0,X.m1.length=0,X.nC.length=0;this.CY.clear()}; var dI=!1;g.T(NI,g.I);g.P=NI.prototype;g.P.uX=function(){!this.U_()&&this.xhr&&(this.hw(!1),fY(this.YP,this))}; g.P.M0=function(){}; g.P.BD=function(){if(!this.U_()&&this.xhr){var G=this.iS();G===5?EG(this.pY):this.qx(G);this.pY.W.stop();var X;(X=this.ke)==null||X.stop()}}; g.P.iS=function(){var G="";OG(this.pY,this.xhr)&&(G=ZfC(this.pY,this.xhr));if(G)return this.info.xP.hX(this.WZ,G),3;this.hw(!0);if(x8(this.pY,this.xhr.status,this.xhr.KV(),this.info.eg(),this.Kb))return 5;if(this.Tc)return 3;Rgy(this.pY,this.xhr.Yw(),0,this.eg());this.policy.kS&&lIi(this.YP);return 4}; g.P.hw=function(G){var X=this.xhr;if((G||!OG(this.pY,this.xhr))&&X.kq()){G=X.z4();var Q=G.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+Q}); this.e8.feed(G)}}; g.P.Nr=function(G,X){this.xhr.Oz()&&G===21&&NK7(this);this.LX.Nr(G,X)}; g.P.rd=function(G,X,Q,R){Q||(this.jz.rd(R),this.policy.pV&&G===21&&NK7(this));if(G!==21)return!1;this.jz.AT=!0;G=X.totalLength;Q||(this.HJ=hK(X,0),X=X.split(1).JC);var S=this.policy.IA,Z=this.LX.W[this.HJ],H=this.vM.Y.get(Z);if(S&&H&&(S*=H.info.jA,G+Q!==R&&G0){this.policy.rJ&&this.pY.W.stop();G=this.jz.ue();X=this.jz.H3();var Q=AQG(this,G);if(!(X>Q.P7||Q.fl>0&&this.info.bG()>Q.fl)){this.v$=(0,g.TB)();var R;(R=this.ke)==null||R.stop();this.policy.kS&&(R=this.YP,G={L6:Math.round(X*G/1E3),MU:G},R.policy.kS&&(R.Mi=G,R.nD++));this.TA()}}}}; g.P.TA=function(){this.pY.TA()}; g.P.TQ=function(G){this.YP.TQ(G,this.V8())}; g.P.EQ=function(G){this.Tc=!0;this.info.xP.hX(this.WZ,G.redirectUrl)}; g.P.fC=function(G){this.jz instanceof CB&&this.jz.fC(G)}; g.P.Oe=function(G){this.jz instanceof CB&&this.jz.Oe(G)}; g.P.o7=function(G){var X=G.formatId,Q=AQ({itag:X.itag,lmt:X.lmt,xtags:X.xtags}),R,S,Z=new $X(((R=G.TD)==null?void 0:R.first)||0,((S=G.TD)==null?void 0:S.NP)||0),H,w;R=new $X(((H=G.indexRange)==null?void 0:H.first)||0,((w=G.indexRange)==null?void 0:w.NP)||0);this.vM.Y.get(Q)||(Q=G.Jp||{},Q.mimeType=G.mimeType,Q.itag=X.itag,Q.lastModified=""+(X.lmt||0),Q.xtags=X.xtags,G=this.vM,X=ph(""),Q=d0(Q,null),BB(G,new g0(X,Q,Z,R)))}; g.P.xB=function(G){this.YP.xB(G,this.V8())}; g.P.onSnackbarMessage=function(G){if(this.policy.V$)this.YP.onSnackbarMessage(G)}; g.P.b5=function(G){this.policy.IU&&this.YP.b5(G,this.V8())}; g.P.Hu=function(G){this.Wx=G;this.pY.Y=(0,g.TB)();this.YP.Hu(G)}; g.P.Bl=function(G,X,Q){this.YP.Bl(G,X,Q)}; g.P.c9=function(G){G.scope===2&&(this.Em=G);this.YP.c9(G)}; g.P.Ee=function(){this.KH=!0;this.YP.Ee()}; g.P.KC=function(G){this.policy.iX&&this.YP.KC(G)}; g.P.LC=function(G){this.YP.LC(G,this.V8())}; g.P.xJ=function(G){G.qw===3&&(this.Kb=!0);this.YP.xJ(G)}; g.P.dk=function(G){this.YP.dk(G)}; g.P.w_=function(G){this.YP.w_(G)}; g.P.canRetry=function(){this.U_();return this.pY.canRetry(!1)}; g.P.dispose=function(){if(!this.U_()){g.I.prototype.dispose.call(this);this.pY.dispose();var G;(G=this.ke)==null||G.dispose();this.qx(-1);this.Kq()}}; g.P.qx=function(G){this.state=G;fY(this.YP,this)}; g.P.eg=function(){return this.info.eg()}; g.P.lY=function(){return this.KH}; g.P.xC=function(){return this.Em}; g.P.VO=function(G,X,Q){Q.clipId&&(this.clipId=Q.clipId);this.policy.W&&!X&&(this.qW=Q.Cg);this.Ko.VO(G,X,Q);if(this.policy.Ku&&this.Wx&&this.jz instanceof j3){var R=this.Wx.Fl;this.jz.VO(Q.durationMs/1E3,X,R>0&&Q.Cg+1>=R)}this.Ko.CY.get(G).pI=!0}; g.P.YB=function(G,X){this.Ko.YB(G,X)}; g.P.uW=function(G){this.requestIdentifier=G}; g.P.Gx=function(G){return this.Ko.Gx(G)}; g.P.e3=function(G){return this.Ko.e3(G)}; g.P.Ss=function(G){return this.Ko.Ss(G)}; g.P.RD=function(){return this.Ko.RD()}; g.P.qh=function(){return 1}; g.P.V8=function(){return this.jz.requestNumber}; g.P.YC=function(){return this.requestIdentifier}; g.P.Rt=function(){return this.WZ.Rt()}; g.P.Wr=function(){this.Kq()}; g.P.Kq=function(){this.jz.deactivate();var G;(G=this.xhr)==null||G.abort()}; g.P.isComplete=function(){return this.state>=3}; g.P.tQ=function(){return this.state===3}; g.P.sf=function(){return this.state===5}; g.P.AQ=function(){return this.state===4}; g.P.GD=function(){return this.isComplete()}; g.P.Xk=function(){return this.state>=1}; g.P.Id=function(){return this.policy.l9?this.pY.Id():0}; g.P.qv=function(){this.policy.l9&&fY(this.YP,this)}; g.P.yP=function(){return rBX(this.info)}; g.P.iE=function(){return this.pY.iE()}; g.P.Gq=function(){var G=Hf7(this.pY);Object.assign(G,EnT(this.info));G.req="sabr";G.rn=this.V8();var X;if((X=this.xhr)==null?0:X.status)G.rc=this.policy.KQ?this.xhr.status:this.xhr.status.toString();var Q;(X=(Q=this.xhr)==null?void 0:Q.uT())&&(G.msg=X);this.v$&&(Q=AQG(this,this.v$-this.jz.AV()),G.letm=Q.T3,G.mrbps=Q.P7,G.mram=Q.fl);return G};nX0.prototype.tick=function(G,X){this.ticks[G]=X?window.performance.timing.navigationStart+X:(0,g.TB)()};g.T(nB,g.ic);g.P=nB.prototype; g.P.Aq=function(G,X,Q,R){if(this.policy.uy&&this.policy.W){var S=G.AS||null;S?(hqS(this,G.oU,ih(this,G.startTime,G.oU),{AS:S,oU:G.oU,k0:!!X,oC:Q},this.Y),R&&this.Y&&this.Y.Ax(G.oU,G.startTime,this.W,(X==null?void 0:X.N)||[],(X==null?void 0:X.W)||[],(X==null?void 0:X.V)||[],Q,(X==null?void 0:X.jt)||0,(X==null?void 0:X.Y)||void 0)):this.W===1&&bh(this,5,"noad")}else{var Z=!1;this.policy.W&&(Z=Q?this.DC===G.oU:this.Yc===G.oU);if(this.Y&&R&&!Z){R=[];Z=[];var H=[],w=void 0,h=0;X&&(R=X.N,Z=X.W,H=X.V,w= X.Y,h=X.jt,this.Ni("sdai",{sq:G.oU,ssvicpns:R.join("."),ssvid:Z.join(".")}));this.policy.W&&(Q?this.DC=G.oU:this.Yc=G.oU);this.Y.Ax(G.oU,G.startTime,this.W,R,Z,H,Q,h,w)}this.policy.W?Q&&(this.W===1&&bh(this,5,"noad"),G.oU!==((S=this.N)==null?void 0:S.oU)&&(HhC(this,G,X,Q),isNaN(G.startTime)||qp0(this,G.oU,ih(this,G.startTime,G.oU),!!X,this.Y))):Q&&HhC(this,G,X)}}; g.P.kG=function(G,X,Q){var R=this.videoTrack.N.index.i9()<=X;this.N={AS:G,oU:X,k0:Q};R&&$8(this,G,X)}; g.P.Cb=function(){this.Y&&this.Y.Cb()}; g.P.Ni=function(G,X,Q){(G!=="sdai"||this.policy.cX||(Q===void 0?0:Q))&&this.loader.Ni(G,X)}; g.P.FJ=function(G,X){var Q=this.videoTrack.N.index.NG(G);if(Q>=0){var R;var S=((R=X.UY.La(Q,2))==null?void 0:R.zC)||"";if(this.policy.W||S)return X.So(G,Q),vQ(this.loader,G,G,Q),this.Ni("sdai",{cmskpad:1,t:G.toFixed(3),sq:Q}),!0}this.Ni("sdai",{cmskpad:0,t:G.toFixed(3),sq:Q});return!1};g.P=jWw.prototype;g.P.UH=function(G,X,Q){G=G||this.N;this.W.has(G)||(this.Ni("sldai",{setadconfig:"noentry",cid:G}),this.W.set(G,{event:"unknown",startTimeSecs:0,Du:0,hZ:[],Ry:Date.now(),Wl:-1,j8:6}));var R=this.W.get(G);R?X?(R.j8=6,R.hZ.push(Q),R.OX=X):R.j8=2:this.Ni("sldai",{setadconfig:"notfound",cid:G})}; g.P.b5=function(G,X,Q){var R;if(!((((R=G.fG)==null?void 0:R.length)||0)<=0)&&(G=G.fG[0],G.AS)){var S;R=-(((S=G.AS)==null?void 0:S.Vi)||0);G.timeRange&&(R+=(G.timeRange.startTicks||0)/(G.timeRange.timescale||1));var Z,H,w,h,L;S=new wK(R,((Z=G.AS)==null?void 0:Z.BLM)||0,((H=G.AS)==null?void 0:H.WU)||"",((w=G.AS)==null?void 0:w.identifier)||"",uNi(((h=G.AS)==null?void 0:h.event)||0),(((L=G.AS)==null?void 0:L.Vi)||0)*1E3);MKZ(this,S,X,G.Cg||0,Q)}}; g.P.So=function(G,X){this.J2(G);var Q=this.W.get(this.N);Q?(this.Ni("ssskipad",{cid:this.N,sn:X,mt:G.toFixed(3)}),Q.n8=X):this.Ni("ssskipadfail",{cid:this.N,sn:X,mt:G.toFixed(3)})}; g.P.wI=function(){for(var G=g.e(this.W.values()),X=G.next();!X.done;X=G.next())X.value.n8=NaN}; g.P.J2=function(G,X){X&&(this.V=X);if(this.N&&(X=this.W.get(this.N))&&X.startTimeSecs<=G&&G<=X.startTimeSecs+X.Du)return;this.N=m97(this,G)};g.T(Rl,g.I);Rl.prototype.Ac=function(G,X,Q){Q=Q===void 0?{}:Q;this.policy.V1=X7(G,Q,this.V,X===void 0?!1:X)};wd.prototype.dP=function(G){var X=this;if(this.policy.y$){var Q=new Set(G);Q.size===this.Mi.size&&[].concat(g.o0(Q)).every(function(R){return X.Mi.has(R)})||(this.loader.Ni("lwnmow",{itagDenylist:[].concat(g.o0(G)).join(",")}),this.loader.rf(!!Q.size),this.j=-1,this.Mi=Q,hz(this,this.N),this.SA=!0)}}; wd.prototype.Ac=function(G,X,Q){Q=Q===void 0?{}:Q;var R=this.policy.V1;this.C.Ac(G,X===void 0?!1:X,Q);if(R!==this.policy.V1){hz(this,this.N);Lo(this);var S,Z;R>this.policy.V1&&((S=this.Y)==null?0:fP(S.info))&&((Z=this.nextVideo)==null||!fP(Z.info))&&(this.AT=!0)}};MW.prototype.Kj=function(G){this.timestampOffset=G;this.flush()}; MW.prototype.flush=function(){if(this.N.pos>0){var G={a:this.track.vz(),u:this.N.Zh(),pd:Math.round(this.V),ad:Math.round(this.Y)},X=this.W;if(X){var Q=X.N.info;G.itag=Q.itag;Q.N&&(G.xtags=Q.N);G.sq=X.oU;G.st=X.startTime;G.sd=X.duration;this.track.policy.Y7&&(G.si=X.Hn());X.V&&(G.esl=X.W+X.Y);X.ou()&&(G.eos=1)}isNaN(this.timestampOffset)||(G.to=this.timestampOffset);var R;if(X=(R=this.track.l6)==null?void 0:R.L7({})){for(var S in X)this.S[S]!==X[S]&&(G["sb_"+S]=X[S]);this.S=X}this.track.Ni("sbu", G);this.N.reset();this.buffered=[];this.C=this.Y=this.V=0;this.timestampOffset=this.W=void 0}};ol.prototype.dispose=function(){this.yH=!0}; ol.prototype.U_=function(){return this.yH}; g.T(eR,Error);Em.prototype.skip=function(G){this.offset+=G}; Em.prototype.VX=function(){return this.offset};g.P=QDw.prototype;g.P.rW=function(){return this.W}; g.P.pD=function(){return this.W.length?this.W[this.W.length-1]:null}; g.P.Fz=function(){this.W=[];gd(this);zO(this)}; g.P.Q_=function(G){this.CO=this.W.shift().info;G.info.equals(this.CO)}; g.P.e3=function(){return g.P1(this.W,function(G){return G.info})}; g.P.vz=function(){return!!this.C.info.audio}; g.P.isDrm=function(){return!!this.C.info.sT}; g.P.getDuration=function(){return this.C.index.D3()};g.T(GN,uh);g.P=GN.prototype;g.P.onStateChange=function(){this.U_()&&(pB(this.Ko,this.formatId),this.N.dispose())}; g.P.Gq=function(){var G=t4U(this.Ko,this.formatId),X;var Q=((X=this.Ko.CY.get(this.formatId))==null?void 0:X.bytesReceived)||0;var R;X=((R=this.Ko.CY.get(this.formatId))==null?void 0:R.NV)||0;return{expected:G,received:Q,bytesShifted:X,sliceLength:y8(this.Ko,this.formatId),isAnyMediaEndReceived:this.Ko.w8(this.formatId)}}; g.P.cV=function(){return 0}; g.P.mV=function(){return!0}; g.P.Gx=function(){return this.Ko.Gx(this.formatId)}; g.P.Ay=function(){return[]}; g.P.Ss=function(){return this.Ko.Ss(this.formatId)}; g.P.iE=function(){return this.lastError}; g.P.Id=function(){return 0};g.T(Ff,g.I);g.P=Ff.prototype;g.P.vz=function(){return!!this.N.info.audio}; g.P.pD=function(){return this.V.pD()}; g.P.Q_=function(G){this.V.Q_(G);var X;(X=this.T)!=null&&(X.C.add(G.info.oU),X.N=a1y(X,X.u9,X.Uj,G,X.N),X.Y=G,X.S=(0,g.TB)());this.jA=Math.max(this.jA,G.info.N.info.jA||0)}; g.P.getDuration=function(){return this.N.index.D3()}; g.P.Fz=function(){Q8(this);this.V.Fz()}; g.P.Nv=function(){return this.V}; g.P.isRequestPending=function(G){return this.Y.length?G===this.Y[this.Y.length-1].info.LO[0].oU:!1}; g.P.Kj=function(G){var X;(X=this.T)==null||X.Kj(G);var Q;(Q=this.j)==null||Q.Kj(G)}; g.P.Ni=function(G,X){this.loader.Ni(G,X)}; g.P.HO=function(){return this.loader.HO()}; g.P.dispose=function(){var G;(G=this.j)==null||G.flush();g.I.prototype.dispose.call(this)};g.T(Gz,g.I);Gz.prototype.Y=function(){this.W++>15||(this.N=!this.N,new nMC(this.loader,this.policy,this.VN,this.xP,this.N),this.delay.start())}; g.P=nMC.prototype;g.P.M0=function(){}; g.P.uX=function(){}; g.P.BD=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Yw()===this.size)this.loader.Ni("rqs",this.getInfo());else{var G="net.connect";this.xhr.status>200?G="net.badstatus":this.xhr.GS()&&(G="net.closed");this.onError(G)}}; g.P.onError=function(G){var X=this;this.loader.handleError(G,this.getInfo());Nz("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(Q){X.loader.Ni("pathprobe",Q)},function(Q){X.loader.handleError(Q.errorCode,Q.details)})}; g.P.getInfo=function(){var G=this.timing.u5();G.shost=AX(this.location.JR);G.pb=this.size;return G};g.T(X4,g.I); X4.prototype.J=function(G,X){if(G.J){this.vM.isLive?(G=this.vM.xO&&this.vM.V?G.N.TI(this.vM.xO,!1):G.N.Q3(Infinity),G.WF=this.WF):G=G.N.TI(0,!1);if(this.AT){var Q=this.AT;G.WF===0&&(G.C=Q.T)}else G.C=this.j;return G}Q=G.W;if(!Q.N.pL())return Q.N.R9()?(G=$H(this.C,G.N.info.jA,X.N.info.jA,0),G=Q.N.Lq(Q,G)):G=Q.N.O0(Q),G;var R=Q.S-this.loader.getCurrentTime(),S=!Q.range||Q.Y===0&&Q.W===0?0:Q.range.length-(Q.W+Q.Y),Z=Q.N;this.Vb(G,R)&&S===0&&(this.vM.isManifestless?Z=G.N:(Z=Q.startTime+eoG,Q.Y&&(Z+=Q.duration), Zh(G,Z),Q=G.W,Z=Q.N));Z.R9()?(S=this.Y,X=$H(this.C,Z.info.jA,X.N.info.jA,R,S.V.length>0&&S.T===0&&this.loader.bD),R=bQ(G),G=Q.N.Lq(Q,X),(X=G.Y)&&G.LO.length>1&&(R||G.xP.Y||G.LO[0].N!==Q.N?G=Q.N.Lq(Q,G.LO[0].Y):(R=G.LO[G.LO.length-1],Z=R.Y/X,!R.V&&Z<.4&&(G=Q.N.Lq(Q,X-R.Y))))):(Q.oU<0&&(X=SK(Q),X.pr=""+G.Y.length,this.loader.isSeeking()&&(X.sk="1"),X.snss=Q.J,this.loader.Ni("nosq",X)),G=Z.O0(Q));if(this.policy.DC)for(Q=g.e(G.LO),X=Q.next();!X.done;X=Q.next())X.value.type=6;return G}; X4.prototype.Vb=function(G,X){if(!bQ(G)||!G.N.pL())return!1;var Q=this.Y.SA||cnT(G)||X<=this.policy.VY||this.Y.AT;this.logger.debug(function(){return"ready to adapt: "+Q+", upgrade pending: "+cnT(G)+", health: "+X}); return Q}; X4.prototype.zT=function(){g.I.prototype.zT.call(this)}; var eoG=2/24;g.T(Z4,g.I);Z4.prototype.g1=function(G,X,Q){var R;var S=((R=this.W)==null?void 0:R.reason)==="m"?"m":this.W&&jIZ(this,this.W)?this.W.reason:"a";this.loader.g1(new Qq(G,S,Q));R2(this.loader,X,G,!0)}; Z4.prototype.ZK=function(G,X){for(var Q=g.e(this.DC),R=Q.next();!R.done;R=Q.next())if(R.value.id===G)return this.C=this.vM.N[G],lh(this.XG)&&(this.AT=!0),G=new Qq(this.C,X?"t":"m"),X&&(this.J=!0),G;this.Y=[];return null}; Z4.prototype.Ac=function(G,X,Q){Q=Q===void 0?{}:Q;this.N.Ac(G,X===void 0?!1:X,Q)};qa.prototype.setData=function(G,X,Q){var R=this;Q=Q===void 0?{}:Q;if(X==null?0:X.C7)this.Hx=D7e(this,X,Q),G.K6=this.xP.K6();if(this.eg())return!0;this.data=G;this.N=KDG(G,function(S,Z){var H;(H=R.YP)==null||H.Ws(S,Z)},X==null?void 0:X.Y); if(!this.N)return!1;this.W=g.N2(this.N,XVG);return!0}; qa.prototype.eg=function(){return this.requestType===1}; qa.prototype.bG=function(){var G;return((G=this.YP)==null?void 0:G.bG())||0}; qa.prototype.isDecorated=function(){var G;return!((G=this.data)==null||!G.qo)};xlU.prototype.encrypt=function(G){(0,g.TB)();return this.N.N?lKX(this,G,this.iv):(new g.wq(this.N.W)).encrypt(G,this.iv)}; xlU.prototype.decrypt=function(G,X){(0,g.TB)();return this.N.N?lKX(this,G,X):(new g.wq(this.N.W)).decrypt(G,X)};g.T(wR,g.I);wR.prototype.Y=function(G,X){if(X){X=X instanceof g.D1?X:hY(this,X);var Q;((Q=this.N.get(G))==null?void 0:AX(Q.location))!==AX(X)&&this.N.set(G,new IKT(X,G))}else this.N.delete(G)}; wR.prototype.load=function(){var G=this,X,Q,R,S,Z,H,w,h,L,k;return g.F(function(Y){switch(Y.W){case 1:X=G.N.get(0);g.a0(Y,2);var M;if(M=X&&!G.W)M=AX(X.location),M=G.W===aF(M);if(M){Y.pO(4);break}return g.l(Y,tbl(G,G.W?2:0),5);case 5:if(Q=Y.N)G.Y(0,Q),$m(Q)&&G.Y(1,bF(Q));case 4:g.OC(Y,3);break;case 2:R=g.cl(Y);g.EL(R);if(!G.W){Y.pO(3);break}G.W=!1;return g.l(Y,G.load(),7);case 7:return Y.return();case 3:if(!G.tT.experiments.TT("html5_onesie_probe_ec_hosts")){Y.pO(0);break}g.a0(Y,9);S=G;Z=S.Y;H=3;return g.l(Y, tbl(G,1),11);case 11:return Z.call(S,H,Y.N),w=G,h=w.Y,L=4,g.l(Y,tbl(G,2),12);case 12:h.call(w,L,Y.N);g.OC(Y,0);break;case 9:k=g.cl(Y),g.EL(k),g.rX(Y)}})}; wR.prototype.J=function(){var G=this,X,Q;return g.F(function(R){g.DA(G.T);X=g.i2(G.tT.experiments,"html5_onesie_prewarm_max_lact_ms");if(u6()>=X)return R.return();(Q=G.N.get(0))&&CpU(G,Q);g.rX(R)})}; var BSG={Uoi:0,bQi:1,kJi:2,fzU:3,I5c:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};dll.prototype.decrypt=function(G){var X=this,Q,R,S,Z,H,w;return g.F(function(h){switch(h.W){case 1:if(X.N.length&&!X.N[0].isEncrypted)return h.return();X.W=!0;X.nQ.ez("omd_s");Q=new Uint8Array(16);HS()?R=new g.ht(G):S=new g.wq(G);case 2:if(!X.N.length||!X.N[0].isEncrypted){h.pO(4);break}Z=X.N.shift();if(!R){H=S.decrypt(q2(Z.buffer),Q);h.pO(5);break}return g.l(h,R.decrypt(q2(Z.buffer),Q),6);case 6:H=h.N;case 5:w=H;for(var L=0;L=4)){var X=s2(this),Q=this.xhr;X.rc=Q.status;G&&(X.ab=!0);if(Q.uT()){var R="onesie.net";X.msg=Q.uT()}else Q.status>=400?R="onesie.net.badstatus":Q.KV()?this.CU||(R="onesie.response.noplayerresponse"):R=Q.status===204?"onesie.net.nocontent":"onesie.net.connect";R?this.fail(new g.YE(R,X)):(this.ez("or_fs"),this.jz.u4((0,g.TB)(),Q.Yw(),0),this.qx(4),this.Mo&&this.Ni("rqs",X));this.Mo&&this.Ni("ombre", "ok."+ +!R);this.Ov=!1;Pd(this);GUG(this.nQ);if(!this.e1){this.r_.stop();var S;(S=this.xM)==null||S.stop()}var Z;if(G=(Z=this.uQ)==null?void 0:VbS(Z))for(Z=0;Z1E3){var G;(G=this.jz)==null||G.Ea((0,g.TB)());G=s2(this);if(this.tT.n7()&&this.xhr instanceof PQ){var X=this.xhr;G.xrs=X.xhr.readyState;G.xpb=X.N.totalLength;G.xdc=X.V}this.fail(new g.YE("net.timeout",G))}}else(0,g.TB)()-this.jz.N>1E4&&((X=this.jz)==null||X.Ea((0,g.TB)()),this.Gw());this.isComplete()||this.iY.start()}}; g.P.Gw=function(){this.logger.info("Onesie request timed out");this.Ov=!1;if(!Pd(this)){var G=s2(this);G.timeout="1";this.fail(new g.YE("onesie.request",G))}}; g.P.fail=function(G){var X=this;G=Mr(G);this.M_?this.uB.uf(G):(this.Pf.reject(G),this.M_=!0);GUG(this.nQ);this.e1||this.r_.stop();this.ez("or_fe");var Q,R;(Q=this.uQ)==null||(R=VbS(Q))==null||R.forEach(function(S){X.Ni("pathprobe",S)}); this.qx(5);this.dispose()}; g.P.isComplete=function(){return this.state>=3}; g.P.AQ=function(){return this.state===4}; g.P.GD=function(G){var X,Q;return this.isComplete()||!!((X=this.yG)==null?0:(Q=X.get(G))==null?0:Q.N)}; g.P.tQ=function(){return!1}; g.P.sf=function(){return this.state===5}; g.P.notifySubscribers=function(G){for(var X=0;X102400&&!this.b_&&(this.ez("or100k"),this.b_=!0);if(G.kq()){var X=G.z4(),Q=X.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+Q}); this.Mo&&this.Ni("ombrss","len."+Q);this.e8.feed(X)}if(this.yG)for(var R=g.e(this.yG.keys()),S=R.next();!S.done;S=R.next()){var Z=S.value;G=void 0;(G=this.yG.get(Z))==null||G.Zl();this.notifySubscribers(Z)}}catch(H){this.fail(H)}}; g.P.V8=function(){return this.jz.requestNumber}; g.P.YC=function(G){return this.kI.get(G)};g.T(PVC,g.I);g.P=PVC.prototype;g.P.MR=function(G,X){this.yH=void 0;lIi(this);ULT(this,G,X)}; g.P.Hm=function(G){if(this.N.length===0)return!1;var X=this.N[0];return X instanceof Tz?G===this.loader.getCurrentTime()*1E3:!(X instanceof NI&&aKy(X.info))&&Math.abs(X.yP()-G)<50}; g.P.VC=function(G){this.W=G;this.yH=(0,g.TB)()+(G.backoffTimeMs||0)}; g.P.TQ=function(G,X){if(G.action===void 0){var Q=this.uB.QI();Q!==void 0&&this.loader.fm(Q)}else if(G.action!==0||!this.wb)if(G.action===0&&this.policy.d7&&(G.action=2),G.Dq==="sabr.malformed_config"&&this.policy.jl>0&&this.Xm++0&&(G.action=2),Q={},Q.reason=G.Dq,Q.action=G.action,Q.rn=X,G.action){case 1:this.policy.W&&this.T&&this.T.I8(void 0, void 0,Q);break;case 0:this.wb=!0;this.videoData.Yr()&&this.policy.W&&this.T&&this.T.I8(void 0,void 0,Q,!1);this.loader.MB(Q);break;case 2:YW0(G.Dq)!=="sabr.config"&&delete Q.reason;this.loader.handleError(YW0(G.Dq),Q,1);break;case 3:this.policy.C7&&((G=this.vM.j)!=null&&(G.T=!0),this.loader.handleError("sabr.hostfallback",Q))}}; g.P.c9=function(G){G&&(this.loader.Ni("sabrctxt",{onsbrctxt:G.type,scp:G.scope,dflt:G.sendByDefault}),G.type&&G.sendByDefault&&this.videoData.BM.add(G.type),G.scope!==2&&(G.type&&this.videoData.sabrContextUpdates.set(G.type,G),this.uB.c9(G)))}; g.P.Ee=function(){}; g.P.xB=function(G,X){if(G.B$!==void 0&&G.TX){var Q=G.B$/G.TX;this.audioTrack.J=!1;this.videoTrack.J=!1;if(this.policy.AT||this.policy.R4||this.policy.VE)this.loader.nL.N=!1;var R=this.loader.V7(Q,1);this.policy.BM&&this.policy.W&&this.loader.J2(R,X);this.uB.getCurrentTime()!==Q&&(X={nY:"sabr_seek",B_:!0,IQ:!0},G.seekSource&&(X.seekSource=G.seekSource),wI(this.loader,Q+.1,X))}}; g.P.onSnackbarMessage=function(G){this.uB.publish("onSnackbarMessage",G)}; g.P.b5=function(G,X){this.policy.IU&&this.j&&this.loader.b5(G,X)}; g.P.Hu=function(G){G.Fl&&G.gx&&$l(this.vM,G.Fl,G.gx);this.policy.IP&&(G.Zx&&G.KB&&(this.vM.Yv=G.Zx/G.KB),G.Gd&&G.k6&&(this.vM.Ti=G.Gd/G.k6));bV(this.videoData)&&!this.videoData.Yc&&G.gx&&this.loader.V7(G.gx,1E3);G.YE!=null&&this.uB.bj(G.YE);this.policy.aL&&G.pN&&(G=((0,g.TB)()-G.pN)/1E3,this.loader.kH.iF(1,G))}; g.P.xJ=function(G){this.loader.xJ(G)}; g.P.Uo=function(G){return this.videoData.BM.has(G)}; g.P.Bl=function(G,X,Q){this.policy.Y&&this.loader.Ni("sabrctxtplc",{start:G?G.join("_"):"",stop:X?X.join("_"):"",discard:Q?Q.join("_"):""});if(G){G=g.e(G);for(var R=G.next();!R.done;R=G.next())this.videoData.BM.add(R.value)}if(X)for(X=g.e(X),G=X.next();!G.done;G=X.next())G=G.value,this.videoData.BM.has(G)&&this.videoData.BM.delete(G);if(Q)for(Q=g.e(Q),X=Q.next();!X.done;X=Q.next())if(X=X.value,this.videoData.sabrContextUpdates.has(X)&&this.videoData.sabrContextUpdates.delete(X),this.policy.j&&this.N.length)for(G= g.e(this.N),R=G.next();!R.done;R=G.next())if(R=R.value,!(R instanceof Tz)){var S=void 0;((S=R.Em)==null?void 0:S.type)===X&&(R.Em=void 0)}}; g.P.KC=function(){}; g.P.AO=function(G){this.J=G}; g.P.g3=function(G){this.S=G}; g.P.LC=function(G,X){DKZ(this.policy,G,4,X)}; g.P.dk=function(G){if(G==null?0:G.LJ)if(G=G.LJ.qF){G=g.e(G);for(var X=G.next();!X.done;X=G.next())if(X=X.value,X.formatId){var Q=this.vM.Y.get(AQ(X.formatId));Q&&Q.info&&(Q.info.debugInfo=X.debugInfo)}}}; g.P.w_=function(G){this.uB.publish("reloadplayer",G)}; g.P.iL=function(){return this.uB.iL()||""}; g.P.bG=function(){var G=NW(this.audioTrack,!0)*1E3,X=NW(this.videoTrack,!0)*1E3;return Math.min(G,X)}; g.P.Ws=function(G,X){this.loader.Ni(G,X)}; g.P.MY=function(G){JLC(this.loader,c10(this.BM,G))}; g.P.zT=function(){g.I.prototype.zT.call(this);this.W=void 0;ULT(this,!0,"i");this.N=[]};yPZ.prototype.AT=function(G){Vp(G.state)&&IIi(this.V)}; yPZ.prototype.ZU=function(){this.isSeeking=!0;this.N===1&&WP0(this.V);this.N===0&&this.dL.lf("transitiondetector");this.S=!1};vPZ.prototype.VD=function(G,X){if(this.V)return QMy(this,X);if(X=hH(G)){var Q=X.N;Q&&Q.Y&&Q.N&&(G=G.Y.length?G.Y[0]:null)&&G.state>=2&&!G.sf()&&G.info.WF===0&&(this.V=G,this.J=Q,this.W=X.info,this.S=this.startTimeSecs=Date.now()/1E3,this.C=this.W.startTime)}return NaN}; vPZ.prototype.clear=function(){this.W=this.J=this.V=null;this.N=this.C=this.S=this.startTimeSecs=NaN;this.Y=!1};g.T(ZCC,g.I);ZCC.prototype.zT=function(){qay(this);g.I.prototype.zT.call(this)};var wPG=/[?&]cpn=/;g.T(Na,g.I);Na.prototype.flush=function(){var G={};this.W&&(G.pe=this.W);this.N.length>0&&(G.pt=this.N.join("."));this.N=[];return G}; Na.prototype.stop=function(){var G=this,X,Q,R;return g.F(function(S){if(S.W==1)return g.a0(S,2),g.l(S,(X=G.V)==null?void 0:X.stop(),4);if(S.W!=2)return(Q=S.N)&&G.logTrace(Q),g.OC(S,0);R=g.cl(S);G.W=mYC(R.message);g.rX(S)})}; Na.prototype.logTrace=function(G){this.encoder.reset();this.encoder.add(1);this.encoder.add(G.resources.length);for(var X=g.e(G.resources),Q=X.next();!Q.done;Q=X.next()){Q=Q.value.replace("https://www.youtube.com/s/","");this.encoder.add(Q.length);for(var R=0;R=0?G:g.vd(this.provider),this.Yc?u0a.has(this.FG)&&(this.N.size||(this.FG==="PL"?G>=this.W+30:G<=this.AT+30||G>=this.W+1200&&G<=this.AT+86400))&&(g.nY(this,G,"vps",[this.FG]),this.W=G):["PL","B","S"].indexOf(this.FG)>-1&&(this.N.size||G>=this.W+30)&&(g.nY(this,G,"vps",[this.FG]),this.W=G),this.N.size)){this.sequenceNumber===7E3&&g.EL(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){JY(this,G);var X=this.provider.uB.E2(); X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,this.Ni(Q.key,Q.value);X=G;Q=this.provider.uB.kR();var R=Q.droppedVideoFrames||0,S=Q.totalVideoFrames||0,Z=R-this.hx,H=S&&!this.Mr;R>Q.totalVideoFrames||Z>5E3?g6y(this,"html5.badframedropcount","df."+R+";tf."+Q.totalVideoFrames):(Z>0||H)&&g.nY(this,X,"df",[Z]);this.hx=R;this.Mr=S;this.T>0&&(g.nY(this,G,"glf",[this.T]),this.T=0);ix.isActive()&&(G=ix.Qw(),Object.keys(G).length>0&&this.Ni("profile",G));this.Hs&&ii(this,"lwnmow");this.provider.tT.n7()&& this.provider.G("html5_record_now")&&this.Ni("now",{wt:(0,g.TB)()});G={};this.provider.videoData.W&&(G.fmt=this.provider.videoData.W.itag,(X=this.provider.videoData.V)&&X.itag!==G.fmt&&(G.afmt=X.itag));G.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(G.adcpn=this.adCpn);this.b7&&(G.addocid=this.b7);this.contentCpn&&(G.ccpn=this.contentCpn);this.DC&&(G.cdocid=this.DC);this.provider.videoData.cotn&&(G.cotn=this.provider.videoData.cotn);G.el=RM(this.provider.videoData);G.content_v=Z0(this.provider.videoData); G.ns=this.provider.tT.AT;G.fexp=ySS(this.provider.tT.experiments).toString();G.cl=(793879582).toString();(X=this.provider.videoData.adFormat||this.adFormat)&&(G.adformat=X);(X=fL(this.provider.videoData))&&(G.live=X);this.provider.videoData.VJ()&&(G.drm=1,this.provider.videoData.C&&(G.drm_system=HyZ[this.provider.videoData.C.flavor]||0),this.provider.videoData.drmProduct&&(G.drm_product=this.provider.videoData.drmProduct));XB()&&this.provider.videoData.S&&(G.ctt=this.provider.videoData.S,G.cttype= this.provider.videoData.LQ,this.provider.videoData.mdxEnvironment&&(G.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(G.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.HG&&(G.dai_fallback="1")):this.provider.videoData.sY?G.dai="cs":this.provider.videoData.YH&&(G.dai="disabled");G.seq=this.sequenceNumber++;if(this.provider.videoData.iO){if(X=this.provider.videoData.iO,G&&X)for(X.ns==="3pp"&&(G.ns="3pp"),this.hS.has(X.ns)&& ii(this,"hbps"),X.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=X.shbpslc),this.provider.tT.experiments.TT("html5_use_server_qoe_el_value")&&this.BM.delete("el"),Q=g.e(Object.keys(X)),R=Q.next();!R.done;R=Q.next())R=R.value,this.BM.has(R)||(G[R]=X[R])}else G.event="streamingstats",G.docid=this.provider.videoData.videoId,G.ei=this.provider.videoData.eventId;this.isEmbargoed&&(G.embargoed="1");Object.assign(G,this.provider.tT.N);if(X=G.seq)X={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+X,serializedWatchEndpointLoggingContext:this.provider.videoData.PEO},this.serializedHouseBrandPlayerServiceLoggingContext&&(X.serializedHouseBrandPlayerServiceLoggingContext=c1(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(X.playerResponseCpn=this.provider.videoData.playerResponseCpn),AY.length&&(X.decoderInfo=AY),this.remoteControlMode&&(X.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(X.remoteConnectedDevices= this.remoteConnectedDevices),X=g.N2(X,SXC),X=g.Oo(X,4),this.N.set("qclc",[X]);G=g.on("//"+this.provider.tT.uA+"/api/stats/qoe",G);Q=X="";R=g.e(this.N.entries());for(S=R.next();!S.done;S=R.next())Z=g.e(S.value),S=Z.next().value,Z=Z.next().value,H=void 0,(H=Z)!=null&&H.join&&(S="&"+S+"="+Z.join(","),S.length>100?Q+=S:X+=S);xYi(this,G+X,Q.replace(/ /g,"%20"))}this.N.clear()}}; g.P.rf=function(G){this.Hs=G}; g.P.dC=function(){if(this.provider.videoData.C){var G=this.provider.videoData.C;ii(this,"eme-"+(G.keySystemAccess?"final":SC(G)?"ms":qK(G)?"ytfp":Hm(G)?"safarifp":"nonfinal"))}}; g.P.Uf=Gi(53);g.P.q1=function(G){this.isEmbargoed=G}; g.P.FA=Gi(30);g.P.Od=Gi(36);g.P.onPlaybackRateChange=function(G){var X=g.vd(this.provider);G&&G!==this.R6&&(g.nY(this,X,"rate",[G]),this.R6=G);this.Yc||this.reportStats(X)}; g.P.Zn=Gi(24);g.P.getPlayerState=function(G){if(g.N(G,128))return"ER";if(g.N(G,2048))return"B";if(g.N(G,512))return"SU";if(g.N(G,16)||g.N(G,32))return"S";if(G.isOrWillBePlaying()&&g.N(G,64))return"B";var X=Pud[IT(G)];g.jJ(this.provider.tT)&&X==="B"&&this.provider.uB.getVisibilityState()===3&&(X="SU");X==="B"&&g.N(G,4)&&(X="PB");return X}; g.P.Sp=function(G){var X=g.vd(this.provider);g.nY(this,X,"vfi",[G===0?"":""+G,G===0?"A":"M"])}; g.P.zT=function(){g.I.prototype.zT.call(this);g.kD(this.yH);g.kD(this.C7)}; g.P.oE=function(G){this.isOffline=G;g.nY(this,g.vd(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.P.Ni=function(G,X,Q){var R=this.Fq.indexOf(G)!==-1;R||this.Fq.push(G);if(!Q||!R){var S=typeof X!=="string"?kE(X):X;S=l0S(S);if(!Q&&!/^t[.]/.test(S)){var Z=g.vd(this.provider)*1E3;S="t."+Z.toFixed()+";"+S}bi(this,"ctmp",G+":"+S);this.logger.debug(function(){return"ctmp "+G+" "+S}); OCU(this);return Z}}; g.P.Uz=function(G,X,Q){this.C={XRp:Number(this.Ni("glrem",{nst:G.toFixed(),rem:X.toFixed(),ca:+Q})),Am:G,UdU:X,isAd:Q}}; g.P.Ys=function(G,X,Q){g.nY(this,g.vd(this.provider),"ad_playback",[G,X,Q])}; g.P.nx=function(G,X){var Q=g.vd(this.provider)*1E3;bi(this,"daism","t."+Q.toFixed(0)+";smw."+(G*1E3).toFixed(0)+";smo."+(X*1E3).toFixed(0))}; g.P.resume=function(){var G=this;isNaN(this.yH)?zAT(this):this.yH=g.h8(function(){G.reportStats()},1E4)}; var o3={},Pud=(o3[5]="N",o3[-1]="N",o3[3]="B",o3[0]="EN",o3[2]="PA",o3[1]="PL",o3[-1E3]="ER",o3[1E3]="N",o3),u0a=new Set(["PL","B","S"]),AY=[];g.T(g.QE,g.I);g.P=g.QE.prototype;g.P.initialize=function(G,X,Q){this.logger.debug(function(){return"Initialized, t="+G}); G=G||0;this.policy.N||(X=U9w(this.N),XvU(this.uB,new Qq(X.video,X.reason)),this.uB.ij(new Qq(X.audio,X.reason)));this.policy.N&&QIw(this);this.vM.isManifestless&&hLl(this.C);this.J&&iL7(this.J,this.videoTrack.N);X=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var R=!this.vM.isManifestless;this.policy.QV&&(R=R||this.vM.It);if(!this.policy.Mi||this.policy.Js)this.currentTime=R?G:X;this.policy.AT&&this.seek(this.getCurrentTime(),{}).EG(function(){}); if(this.policy.N){var S;((S=this.AT)==null?0:uui(S,this.iL()||""))&&pPZ(this)&&W0G(this,this.videoTrack)&&W0G(this,this.audioTrack)&&(Bxy(this.W,this.AT),this.policy.C&&dYU(this))}else this.Yc&&(yLG(this,this.videoTrack),yLG(this,this.audioTrack),CoG(this.Yc),delete this.Yc);Q?(DYX(this,!1),g.DA(this.iQ)):(Q=this.getCurrentTime()===0,Qc(this.C,this.videoTrack,this.videoTrack.N,Q),Qc(this.C,this.audioTrack,this.audioTrack.N,Q),this.policy.N&&KPC(this.W,!0),this.policy.AT||this.seek(this.getCurrentTime(), {}).EG(function(){}),this.timing.tick("gv")); (this.vM.xO||this.vM.HK||this.vM.DC||this.vM.Hs||this.vM.C7)&&this.uB.nf(this.vM)}; g.P.resume=function(){if(this.isSuspended||this.bD){this.logger.debug("Resumed.");this.PH=this.bD=this.isSuspended=!1;try{this.VD()}catch(G){g.aU(G)}}}; g.P.Ec=function(){return!this.policy.bf}; g.P.a8=function(G,X){G=G===void 0?!1:G;X=X===void 0?!1:X;this.logger.debug("detaching media source");$YZ(this);this.uB.g2()&&(this.S=NaN);G?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.QH&&this.Ni("loader",{setsmb:1}),this.policy.DC=!0,this.Fz()):(DYX(this,!1),X||this.Fz())}; g.P.setAudioTrack=function(G,X,Q){Q=Q===void 0?!1:Q;if(!this.U_()){var R=!isNaN(X);Q&&R&&(this.audioTrack.yH=Date.now(),this.policy.lL&&(this.bB=!0));if(this.policy.N){var S=this.V.ZK(G.id,R);this.logger.debug(function(){return"Logging new audio format: "+S.N.info.id}); this.uB.ij(S)}else{var Z=zqC(this.N,G.id,R);this.logger.debug(function(){return"Logging new audio format: "+Z.audio.info.id}); this.uB.ij(new Qq(Z.audio,Z.reason))}R?(this.Ps=Date.now(),Q=this.audioTrack.N.index.NG(X),this.Ni("setAudio",{id:G.id,cmt:X,sq:Q}),Q>=0&&(G=this.policy.xH?Q+1:Q,this.policy.N&&this.MR(!0,"mosaic"),zlX(this.audioTrack,G,NaN,NaN),!this.policy.ze&&this.vM.isLive&&nh(this.vM,G,!1))):this.uB.mT()}}; g.P.setPlaybackRate=function(G){G!==this.j.getPlaybackRate()&&this.j.setPlaybackRate(G)}; g.P.cW=function(G){var X=this.W.J;this.W.AO(G);this.Ni("scfidc",{curr:AQ(X),"new":AQ(G)});G&&AQ(G)!==AQ(X)&&(this.MR(!0,"caption change"),this.VD())}; g.P.Jx=function(G){this.W.g3(G)}; g.P.g1=function(G){var X=G.N.info.vz();this.logger.debug(function(){return"New "+(X?"audio":"video")+" format from SABR: "+Qp(G.N.info)}); X?this.uB.ij(G):XvU(this.uB,G)}; g.P.MY=function(G){XN(G.LO[G.LO.length-1])&&JLC(this,c10(this.N,G.LO[0].N))}; g.P.lA=function(){return this.uB.lA()}; g.P.pR=function(){return this.uB.pR()}; g.P.xJ=function(G){this.uB.Z().n7()&&this.Ni("sps",{status:G.qw||""});if(G.qw===1)this.uB.videoData.hd=0;else if(G.qw===2||G.qw===3){var X=!1;if(G.qw===3){X=this.uB.SO();var Q;this.Fq=(Q=G.nOd)!=null?Q:Infinity;this.uB.videoData.hd=X+1;(X=wMw(this))&&this.V2(!0)}this.uB.Ts(!0,X)}}; g.P.Bc=function(){return this.uB.Bc()}; g.P.Gj=function(){return this.uB.Gj()}; g.P.ZV=function(G){this.uB.ZV(G)}; g.P.u9A=function(){var G,X=(G=this.uB.EY())==null?void 0:G.getCurrentTime();X?this.uB.Ni("rms",{cta:X}):g.DA(this.kS)}; g.P.VD=function(){v6w(this);if(this.kc&&PH(this.kc)&&!this.kc.Dg()&&(!this.policy.Mi||isFinite(this.getCurrentTime()))){var G=tz(this.videoTrack);G=this.policy.qb&&G&&G.ou();this.vM.isManifestless&&this.vM.V&&fh(this.vM)?(this.S=fh(this.vM),this.kc.GJ(this.S)):bl(this.vM)&&!G?isNaN(this.S)?(this.S=this.getCurrentTime()+3600,this.kc.GJ(this.S)):this.S<=this.getCurrentTime()+1800&&(this.S=Math.max(this.S+1800,this.getCurrentTime()+3600),this.kc.GJ(this.S)):this.kc.isView||(G=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==G)&&G>0&&(this.kc.GJ(G),this.S=G))}if(!this.U_())if(yC(this.vM)&&this.vM.sf()){var X=this.vM;this.handleError("manifest.net.retryexhausted",X.BM?{rc:X.CL}:{rc:X.CL.toString()},1)}else if(this.policy.N)a:{try{zvT(this.W);this.vM.isManifestless&&this.policy.C&&HQ(this.nL);var Q;((Q=this.kc)==null?0:KF(Q))&&this.Ve();KPC(this.W)}catch(H){g.EL(H);X=H;if(X.message.includes("changeType")){this.Ni("ctype",{exp:X.name,msg:X.message,s:X.stack});break a}this.handleError("fmt.unplayable", {exp:X.name,msg:X.message,s:X.stack,trg:"sabrslicerqt"},1)}sGG(this);g.DA(this.BM)}else if(!this.vM.W||!lCy(this.videoTrack)&&!lCy(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.N9?Q=!1:(this.Fz(),this.uB.seekTo(Infinity,{nY:"checkLoaderTracksSync",V7:!0}),Q=!0),!Q){v6w(this);this.vM.isManifestless&&(BnT(this.videoTrack),BnT(this.audioTrack),HQ(this.nL),(Q=hH(this.videoTrack))&&Q.N&&(Q=Q.N.Y&&!this.policy.N1,this.Ni(Q===this.policy.J.Na?"strm":"strmbug",{strm:Q,sfmp4:this.policy.J.Na, dfs:this.policy.N1},!0)));if(this.kc)this.Ve();else if(this.policy.V){var R;Q=!1;if(this.policy.Tp){var S;G=g.e([this.videoTrack,this.audioTrack]);for(S=G.next();!S.done;S=G.next()){var Z=S.value;for(S=hH(Z);S&&Z.pD()!==tz(Z);S=hH(Z))Z.Q_(S);Q=Q||!!S}}else(X=hH(this.videoTrack))&&this.videoTrack.Q_(X),(R=hH(this.audioTrack))&&this.audioTrack.Q_(R);yq(this.videoTrack)&&yq(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(X||R||Q)&&yc(this)}f0U(this);Qc(this.C,this.videoTrack, this.videoTrack.N,!1);Qc(this.C,this.audioTrack,this.audioTrack.N,!1);this.policy.uM||GTw(this,this.videoTrack,this.audioTrack);ij0(this.C,this.videoTrack,this.audioTrack);ij0(this.C,this.audioTrack,this.videoTrack);sGG(this);this.J&&(X=this.J,X.V?(R=X.S+X.policy.qU,X.Y||(R=Math.min(R,X.startTimeSecs+X.policy.tC)),X=Math.max(0,R*1E3-Date.now())):X=NaN,isNaN(X)||g.DA(this.Xq,X));g.DA(this.BM)}}; g.P.MB=function(G){this.uB.MB(G)}; g.P.Ve=function(){var G=this;if(this.kc){var X=this.kc.N,Q=this.kc.W;BRe(this,this.audioTrack);BRe(this,this.videoTrack);var R=Row(this);if(R){if(this.policy.wy){if(!X.DX()){var S=hH(this.audioTrack);if(S){if(!X3(this,this.audioTrack,X,S.info))return;HEZ(this,this.audioTrack,X,S)}}if(!Q.DX()&&(S=hH(this.videoTrack))){if(!X3(this,this.videoTrack,Q,S.info))return;HEZ(this,this.videoTrack,Q,S)}}this.yH||(this.yH=(0,g.TB)(),this.logger.debug(function(){return"Appends pause start "+G.yH+" reason "+R}), this.policy.Y&&this.Ni("apdps",{r:R}))}else if(this.yH&&(QGl(this,this.yH),this.yH=0),SEC(this),S=!1,kTi(this,this.videoTrack,Q)&&(S=!0,vXZ(this.timing),XBC(this.timing)),this.kc&&!this.kc.Bz()&&(kTi(this,this.audioTrack,X)&&(S=!0,JQG(this.timing),QWU(this.timing)),!this.U_()&&this.kc))!this.policy.bf&&yq(this.videoTrack)&&yq(this.audioTrack)&&PH(this.kc)&&!this.kc.Dg()&&(Q=!1,Q=tz(this.audioTrack).N,Q=Q===this.vM.N[Q.info.id])&&(this.logger.debug("Setting EOS"),FUZ(this.kc),KiZ(this.schedule),this.QO("e")), S&&!this.kc.isAsync()&&yc(this)}}; g.P.QO=function(G){if(this.vM.isManifestless){var X=this.videoTrack.N;if(X){var Q=X.index.i9(),R=-1,S=-1;X.index instanceof mZ&&(R=X.index.RR(),S=X.index.D3());this.uB.QO(G,Q,R,S)}}}; g.P.BY=function(G){var X,Q=G===((X=this.kc)==null?void 0:X.N)?this.audioTrack:this.videoTrack,R;if((R=hH(Q))==null?0:R.isLocked){if(this.uB.Z().n7()){var S;this.Ni("eosl",{ounlock:(S=hH(Q))==null?void 0:S.info.Hn()})}var Z;uKG(this,G===((Z=this.kc)==null?void 0:Z.N))}var H;if(this.policy.lL&&G===((H=this.kc)==null?void 0:H.N)&&this.As){X=this.As-this.getCurrentTime();var w;this.uB.Ni("asl",{l:X,xtag:(w=tz(this.audioTrack))==null?void 0:w.N.info.N});this.bB=!1;this.As=0}G.Dz()&&G.Zu().length===0&& (G.Wc(),this.kc&&!this.kc.Dz()&&(this.uB.Z().n7()&&this.uB.Ni("rms",{ld:"seek"}),this.kc.S=performance.now(),this.uB.kY(),this.uB.Z().n7()&&g.DA(this.kS)));var h;(h=Q.j)!=null&&mO(h,0);this.policy.R6?qBG(this):this.VD()}; g.P.Ecd=function(G){if(this.kc){var X=tz(G===this.kc.N?this.audioTrack:this.videoTrack);if(G=G.VQ())for(var Q=0;Q5&&w.AT.shift();X=X.oU;var h;if((h=this.uB.getVideoData())==null?0:h.enableServerStitchedDai)h=WAi(this.audioTrack,X),Q=WAi(this.videoTrack,X),h!==0&&Q!==0&&h!==Q&&this.handleError("ssdai.avsync",{sq:X,a:h,v:Q},0)}}; g.P.kG=function(G,X,Q,R){G.info.video&&this.Y.kG(X,Q,R)}; g.P.dP=function(G){this.N.dP(G)}; g.P.PQ=Gi(12);g.P.PS=function(){if(g.N(this.uB.getPlayerState(),8)){var G,X,Q=(X=(G=this.uB.EY())==null?void 0:G.getCurrentTime())!=null?X:this.uB.getCurrentTime(),R;(R=this.N9)==null||DLi(R,Q)}var S;(S=this.C7)==null||g.DA(S)}; g.P.bC=function(){return this.videoTrack.J||this.audioTrack.J}; g.P.seek=function(G,X){if(this.U_())return za();if(this.bC())return za("seeking to head");if(this.policy.AT&&!isFinite(G))return l1T(this.nL),g.Oy(Infinity);v6w(this);QIw(this);this.policy.N||f0U(this,G);this.kc&&this.kc.N&&this.kc.W&&!this.uB.getVideoData().qs&&(this.kc.N.isLocked()||this.kc.W.isLocked())&&this.uB.mT({reattachOnLockedBuffer:1,vsb:""+this.kc.W.isLocked(),asb:""+this.kc.N.isLocked()});var Q=this.getCurrentTime(),R=this.nL.seek(G,X);if(!this.policy.Mi||this.policy.Js)this.currentTime= R;GO(this.Y,G,Q,this.policy.hn&&!X.B_);yc(this);return g.Oy(R)}; g.P.Hm=function(G){return this.policy.N&&this.W.Hm(G)}; g.P.Uo=function(G){return this.W.Uo(G)}; g.P.MR=function(G,X){this.W.MR(G,X)}; g.P.getCurrentTime=function(){if(this.policy.Mi){var G=this.q9()||0;return this.uB.getCurrentTime(!0)-G}return this.currentTime}; g.P.Kk=function(){return this.audioTrack.N.info}; g.P.P1=function(){return this.videoTrack.N.info}; g.P.kV=function(){return this.audioTrack.N.info.ZC}; g.P.il=function(){return this.videoTrack.N.info.ZC}; g.P.zT=function(){try{this.a8(),Q8(this.audioTrack),Q8(this.videoTrack),vz(this.audioTrack),vz(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.I.prototype.zT.call(this)}catch(G){g.aU(G)}}; g.P.handleError=function(G,X,Q){Q=Q===void 0?0:Q;var R=j0(Q);G==="fmt.unplayable"&&this.vM.isLive&&(this.policy.wy=!1,A1(this.vM));X=new g.YE(G,X,Q);g.wH(this);kE(X.details);this.uB.handleError(X);G!=="html5.invalidstate"&&X.errorCode!=="fmt.unplayable"&&G!=="fmt.unparseable"&&R&&this.dispose()}; g.P.L7=function(){var G=tz(this.audioTrack),X=tz(this.videoTrack);G={lct:this.getCurrentTime().toFixed(3),lsk:this.nL.isSeeking(),lmf:this.N.N.isLocked(),lbw:fj(this.schedule).toFixed(3),lhd:pj(this.schedule).toFixed(3),lst:((this.schedule.J.X8()||0)*1E9).toFixed(3),laa:G?G.Hn():"",lva:X?X.Hn():"",lar:this.audioTrack.W?this.audioTrack.W.Hn():"",lvr:this.videoTrack.W?this.videoTrack.W.Hn():"",laq:""+fo(this.audioTrack),lvq:""+fo(this.videoTrack)};this.kc&&!this.kc.Bz()&&this.kc.N&&this.kc.W&&(G.lab= Sr(this.kc.N.Zu()),G.lvb=Sr(this.kc.W.Zu()));this.yH&&(G.lapt=((0,g.TB)()-this.yH).toFixed(0),G.lapr=Row(this));this.CO&&(G.lapmabht=((0,g.TB)()-this.CO).toFixed(0),G.lapmabh=S3(this,this.audioTrack).toFixed(0));this.Xm&&(G.lapmvbht=((0,g.TB)()-this.Xm).toFixed(0),G.lapmvbh=S3(this,this.videoTrack).toFixed(0));this.wb&&(G.lapsdai=((0,g.TB)()-this.wb).toFixed(0));return G}; g.P.Fz=function(){try{this.policy.N&&this.W.MR(!1,"pending"),this.audioTrack.Fz(),this.videoTrack.Fz()}catch(G){g.aU(G)}this.policy.V=""}; g.P.BJ=function(){return nE(this.j)}; g.P.Ni=function(G,X,Q){this.uB.Ni(G,X,Q===void 0?!1:Q)}; g.P.iL=function(){return this.uB.iL()}; g.P.V7=function(G,X){G/=X;isNaN(this.timestampOffset)&&FqU(this,G-Math.min(G,this.policy.RA));return(G-this.timestampOffset)*X}; g.P.q9=function(){return this.timestampOffset}; g.P.isSeeking=function(){return this.nL.isSeeking()}; g.P.Cb=function(){this.Y.Cb()}; g.P.Ac=function(G,X,Q){X=X===void 0?!1:X;Q=Q===void 0?{}:Q;this.policy.N?this.V.Ac(G,X,Q):this.N.Ac(G,X,Q)}; g.P.FJ=function(G,X){if(this.policy.W&&this.policy.Z1&&(this.IU||this.isSeeking()))return this.Ni("sdai",{ignoreSkip:"1",isSkip:this.IU,isSeek:this.isSeeking(),t:G.toFixed(3)}),!1;if(this.T&&this.Y.FJ(G,this.T)){this.policy.W&&this.policy.Z1&&(this.Ni("sdai",{skipAdStd:"1"}),this.IU=!0);if(this.policy.BM&&this.policy.W){var Q=this.videoTrack.N.index.NG(G),R;(R=this.DC)==null||R.So(G,Q)}FqU(this,this.timestampOffset-X);yc(this);this.policy.W&&(A1(this.vM),vz(this.audioTrack),vz(this.videoTrack),this.Fz()); return!0}X=this.videoTrack.N.index.NG(G);this.handleError("ad.skipfailed",{dec:!!this.T,t:G.toFixed(3),sq:X});return!1}; g.P.getManifest=function(){return this.vM}; g.P.isOffline=function(){return!!this.uB.getVideoData().cotn}; g.P.Uv=function(G,X){this.uB.Uv(G,X)}; g.P.xs=function(G){if(this.policy.N)this.W.MR(!0,"utc"),this.VD();else{var X=this.uB.getVideoData().R$;if(X){var Q=this.C;Q.QJ=G;Q.R$=X;SE(this)}}}; g.P.fm=function(G){this.videoTrack.J=!1;this.audioTrack.J=!1;this.nL.N=!1;this.uB.fm(G)}; g.P.Wt=function(G){this.nL.Wt(G-this.q9())}; g.P.P8=function(){this.uB.P8()}; g.P.V2=function(G){G!==this.policy.bE&&((this.policy.bE=G)||this.VD())}; g.P.mT=function(G){this.uB.mT(G)}; g.P.rf=function(G){this.uB.rf(G)}; g.P.UH=function(G,X,Q){var R;(R=this.DC)==null||R.UH(G,X,Q)}; g.P.J2=function(G,X){var Q;(Q=this.DC)==null||Q.J2(G,X)}; g.P.SO=function(){return this.uB.SO()}; g.P.b5=function(G,X){if(this.policy.IU){var Q;(Q=this.DC)==null||Q.b5(G,X,this.T||void 0)}};g.P=g.Ri.prototype;g.P.J3=function(G,X,Q,R,S,Z){return this.UY.J3(G,X,Q,R,S,Z)}; g.P.Qs=function(G,X,Q,R,S,Z){return this.UY.Qs(G,X,Q,R,S,Z)}; g.P.pT=function(G){return this.UY.pT(G)}; g.P.le=function(G){this.UY.le(G)}; g.P.I8=function(G,X,Q,R){return this.UY.I8(G,X,Q,R)}; g.P.Cb=function(){this.UY.Cb()}; g.P.So=function(G,X){this.UY.So(G,X)}; g.P.wI=function(){this.UY.wI()}; g.P.Mp=Gi(56);g.P.hX=function(G,X,Q){this.UY.hX(G,X,Q)}; g.P.Zt=Gi(59);g.P.Ax=function(G,X,Q,R,S,Z,H,w,h){this.UY.Ax(G,X,Q,R,S,Z,H,w,h)}; g.P.Ht=function(G){this.UY.Ht(G)}; g.P.z7=function(G){return this.UY.z7(G)}; g.P.Rg=function(G){return this.UY.Rg(G)}; g.P.D7=function(G){return this.UY.D7(G)};g.T(Sf,g.ic);g.T(Zn,Sf);Zn.prototype.S=function(G,X){if(G&&X){var Q=Number(K0(G,"cpi"))*1+1;isNaN(Q)||Q<=0||Qthis.Y&&(this.Y=Q,g.Mn(this.N)||(this.N={},this.V.stop(),this.W.stop())),this.N[X]=G,g.DA(this.W))}}; Zn.prototype.C=function(){for(var G=g.e(Object.keys(this.N)),X=G.next();!X.done;X=G.next()){var Q=X.value;X=this.publish;for(var R=this.Y,S=g.we(this.N[Q]),Z=[],H=g.e(S[6].split("&")),w=H.next();!w.done;w=H.next())w=w.value,w.indexOf("cpi=")===0?Z.push("cpi="+R.toString()):w.indexOf("ek=")===0?Z.push("ek="+g.z9(Q)):Z.push(w);S[6]="?"+Z.join("&");Q="skd://"+S.slice(2).join("");S=Q.length*2;R=new Uint8Array(S+4);R[0]=S%256;R[1]=(S-R[0])/256;for(S=0;S0)for(var Q=g.e(this.N),R=Q.next();!R.done;R=Q.next())if(X===R.value.info.cryptoPeriodIndex){X=!0;break a}X=!1}if(!X){X=(0,g.TB)();a:{Q=G.cryptoPeriodIndex;if(!isNaN(Q)){R=g.e(this.Y.values());for(var S=R.next();!S.done;S=R.next())if(Math.abs(S.value.cryptoPeriodIndex-Q)<=1){Q=!0;break a}}Q=!1}Q?(Q=G.N,Q=Math.max(0,Math.random()*((isNaN(Q)?120:Q)-30))*1E3):Q=0;this.publish("log_qoe",{wvagt:"delay."+Q,cpi:G.cryptoPeriodIndex,reqlen:this.N.length}); Q<=0?I4w(this,G):(this.N.push({time:X+Q,info:G}),g.DA(this.W,Q))}}; Hx.prototype.zT=function(){this.N=[];Sf.prototype.zT.call(this)};var uH={},f4T=(uH.DRM_TRACK_TYPE_AUDIO="AUDIO",uH.DRM_TRACK_TYPE_SD="SD",uH.DRM_TRACK_TYPE_HD="HD",uH.DRM_TRACK_TYPE_UHD1="UHD1",uH);g.T(pdC,g.I);g.T(NRG,g.ic);g.P=NRG.prototype;g.P.Hf=function(G){var X=this;if(!(this.U_()||G.size<=0)){var Q={};G.forEach(function(R,S){var Z=ZC(X.W)?S:R;S=new Uint8Array(ZC(X.W)?R:S);ZC(X.W)&&wxl(S);R=g.Oo(S,4);wxl(S);S=g.Oo(S,4);X.N[R]?X.N[R].status=Z:X.N[S]?X.N[S].status=Z:X.N[R]={type:"",status:Z};HqS(X,X.N[R].type,Q)}); S1U(this,",");qH(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.P.error=function(G,X,Q,R){this.U_()||(this.publish("licenseerror",G,X,Q,R),G==="drm.provision"&&(G=(Date.now()-this.S)/1E3,this.S=NaN,this.publish("ctmp","provf",{et:G.toFixed(3)})));j0(X)&&this.dispose()}; g.P.shouldRetry=function(G,X){return!G&&this.requestNumber===X.requestNumber}; g.P.zT=function(){this.N={};g.ic.prototype.zT.call(this)}; g.P.L7=function(){var G={ctype:this.T.contentType||"",length:this.T.initData.length,requestedKeyIds:this.Yc,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Y&&(G.keyStatuses=this.N);return G}; g.P.getInfo=function(){var G=this.V.join();if(w6(this)){var X=new Set,Q;for(Q in this.N)this.N[Q].status!=="usable"&&X.add(this.N[Q].type);G+="/UKS."+Array.from(X)}return G+="/"+this.cryptoPeriodIndex}; g.P.Rt=function(){return this.url};g.T(Lq,g.I);g.P=Lq.prototype;g.P.To=function(G){if(this.C){var X=G.messageType||"license-request";this.C(new Uint8Array(G.message),X)}}; g.P.Hf=function(){this.J&&this.J(this.N.keyStatuses)}; g.P.onClosed=function(){this.U_()||g.Ci("xboxone")&&this.Y&&this.Y("closedShouldNotRetry")}; g.P.qL=function(G){this.C&&this.C(G.message,"license-request")}; g.P.C3=function(G){if(this.Y){if(this.W){var X=this.W.error.code;G=this.W.error.systemCode}else X=G.errorCode,G=G.systemCode;this.Y("t.prefixedKeyError;c."+X+";sc."+G,X,G)}}; g.P.l2=function(){this.S&&this.S()}; g.P.update=function(G){var X=this;if(this.N)return this.N.update(G).then(null,JT(function(Q){LEX(X,"t.update",Q)})); this.W?this.W.update(G):this.element.addKey?this.element.addKey(this.T.keySystem,G,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.T.keySystem,G,this.initData,this.sessionId);return Eh()}; g.P.zT=function(){this.N&&(this.j?this.N.close().catch(g.EL):this.N.close());this.element=null;g.I.prototype.zT.call(this)};g.T(kc,g.I);g.P=kc.prototype;g.P.setServerCertificate=function(){return this.W.setServerCertificate?this.N.flavor==="widevine"&&this.N.jl?this.W.setServerCertificate(this.N.jl):wn(this.N)&&this.N.CO?this.W.setServerCertificate(this.N.CO):null:null}; g.P.createSession=function(G,X){var Q=G.initData;if(this.N.keySystemAccess){X&&X("createsession");var R=this.W.createSession();qK(this.N)?Q=jiy(Q,this.N.CO):wn(this.N)&&(Q=VET(Q)||new Uint8Array(0));X&&X("genreq");G=R.generateRequest(G.contentType,Q);var S=new Lq(null,null,null,R,null,this.J);G.then(function(){X&&X("genreqsuccess")},JT(function(H){LEX(S,"t.generateRequest",H)})); return S}if(SC(this.N))return mHG(this,Q);if(Hm(this.N))return Mfe(this,Q);if((R=this.element)==null?0:R.generateKeyRequest)this.element.generateKeyRequest(this.N.keySystem,Q);else{var Z;(Z=this.element)==null||Z.webkitGenerateKeyRequest(this.N.keySystem,Q)}return this.V=new Lq(this.element,this.N,Q,null,null,this.J)}; g.P.ZH=function(G){var X=ocy(this,G);X&&X.qL(G)}; g.P.mF=function(G){var X=ocy(this,G);X&&X.C3(G)}; g.P.Lt=function(G){var X=ocy(this,G);X&&X.l2(G)}; g.P.getMetrics=function(){var G=null;if(this.W&&this.W.getMetrics)try{G=this.W.getMetrics()}catch(X){}return G}; g.P.zT=function(){this.Y=this.W=null;var G;(G=this.V)==null||G.dispose();G=g.e(Object.values(this.S));for(var X=G.next();!X.done;X=G.next())X.value.dispose();this.S={};g.I.prototype.zT.call(this);delete this.element};g.P=Yc.prototype;g.P.get=function(G){G=this.findIndex(G);return G!==-1?this.values[G]:null}; g.P.remove=function(G){G=this.findIndex(G);G!==-1&&(this.keys.splice(G,1),this.values.splice(G,1))}; g.P.removeAll=function(){this.keys=[];this.values=[]}; g.P.set=function(G,X){var Q=this.findIndex(G);Q!==-1?this.values[Q]=X:(this.keys.push(G),this.values.push(X))}; g.P.findIndex=function(G){return g.eZ(this.keys,function(X){return g.$4(G,X)})};g.T(siX,g.ic);g.P=siX.prototype;g.P.sWT=function(G){this.YU({onecpt:1});G.initData&&erG(this,new Uint8Array(G.initData),G.initDataType)}; g.P.EPU=function(G){this.YU({onndky:1});erG(this,G.initData,G.contentType)}; g.P.Jb=function(G){this.YU({onneedkeyinfo:1});this.tT.G("html5_eme_loader_sync")&&(this.J.get(G.initData)||this.J.set(G.initData,G));KES(this,G)}; g.P.LH=function(G){this.Y.push(G);jf(this)}; g.P.createSession=function(G){var X=ane(this)?vlX(G):g.Oo(G.initData);this.W.get(X);this.DC=!0;G=new NRG(this.videoData,this.tT,G,this.drmSessionId);this.W.set(X,G);G.subscribe("ctmp",this.Vp,this);G.subscribe("keystatuseschange",this.Hf,this);G.subscribe("licenseerror",this.tq,this);G.subscribe("newlicense",this.Qp,this);G.subscribe("newsession",this.S0,this);G.subscribe("sessionready",this.Eq,this);G.subscribe("fairplay_next_need_key_info",this.o0,this);this.tT.G("html5_enable_vp9_fairplay")&&G.subscribe("qualitychange", this.WC,this);G.subscribe("sabrlicenseconstraint",this.ySm,this);bYX(G,this.V)}; g.P.Qp=function(G){this.U_()||(this.YU({onnelcswhb:1}),G&&!this.heartbeatParams&&(this.heartbeatParams=G,this.publish("heartbeatparams",G)))}; g.P.S0=function(){this.U_()||(this.YU({newlcssn:1}),this.Y.shift(),this.DC=!1,jf(this))}; g.P.Eq=function(){if(SC(this.N)&&(this.YU({onsnrdy:1}),this.IU--,this.IU===0)){var G=this.AT,X,Q;(X=G.element)==null||(Q=X.msSetMediaKeys)==null||Q.call(X,G.Y)}}; g.P.Hf=function(G){if(!this.U_()){this.QH||(this.QH=!0,this.tT.n7()&&EcU(this));this.YU({onksch:1});var X=this.WC;if(!w6(G)&&g.pl&&G.W.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var Q="large";else{Q=[];var R=!0;if(w6(G))for(var S=g.e(Object.keys(G.N)),Z=S.next();!Z.done;Z=S.next())Z=Z.value,G.N[Z].status==="usable"&&Q.push(G.N[Z].type),G.N[Z].status!=="unknown"&&(R=!1);if(!w6(G)||R)Q=G.V;Q=RrG(Q)}X.call(this,Q);if(!w6(G))for(X={},Q=g.e(G.V),R=Q.next();!R.done;R=Q.next())HqS(G, R.value,X);this.videoData.authorizedFormats=G.authorizedFormats;this.publish("keystatuseschange",G)}}; g.P.Vp=function(G,X){this.U_()||this.publish("ctmp",G,X)}; g.P.o0=function(G,X){this.U_()||this.publish("fairplay_next_need_key_info",G,X)}; g.P.tq=function(G,X,Q,R){this.U_()||(this.videoData.G("html5_log_drm_metrics_on_error")&&EcU(this),this.publish("licenseerror",G,X,Q,R))}; g.P.IG=function(){return this.T}; g.P.WC=function(G){var X=g.xm("auto",G,!1,"l");if(this.videoData.bE){if(this.T.equals(X))return}else if(Z9w(this.T,G))return;this.T=X;this.publish("qualitychange");this.YU({updtlq:G})}; g.P.ySm=function(G){this.videoData.sabrLicenseConstraint=G}; g.P.zT=function(){this.N.keySystemAccess&&this.element&&(this.Yc?this.element.setMediaKeys(null).catch(g.EL):this.element.setMediaKeys(null));this.element=null;this.Y=[];for(var G=g.e(this.W.values()),X=G.next();!X.done;X=G.next())X=X.value,X.unsubscribe("ctmp",this.Vp,this),X.unsubscribe("keystatuseschange",this.Hf,this),X.unsubscribe("licenseerror",this.tq,this),X.unsubscribe("newlicense",this.Qp,this),X.unsubscribe("newsession",this.S0,this),X.unsubscribe("sessionready",this.Eq,this),X.unsubscribe("fairplay_next_need_key_info", this.o0,this),this.tT.G("html5_enable_vp9_fairplay")&&X.unsubscribe("qualitychange",this.WC,this),X.dispose();this.W.clear();this.S.removeAll();this.J.removeAll();this.heartbeatParams=null;g.ic.prototype.zT.call(this)}; g.P.L7=function(){for(var G={systemInfo:this.N.L7(),sessions:[]},X=g.e(this.W.values()),Q=X.next();!Q.done;Q=X.next())G.sessions.push(Q.value.L7());return G}; g.P.getInfo=function(){return this.W.size<=0?"no session":""+this.W.values().next().value.getInfo()+(this.C?"/KR":"")}; g.P.YU=function(G,X){X=X===void 0?!1:X;this.U_()||(kE(G),(this.tT.n7()||X)&&this.publish("ctmp","drmlog",G))};g.T(gcV,g.I);g.P=gcV.prototype;g.P.eH=function(){return!!this.Nf}; g.P.fb=function(){return this.W}; g.P.handleError=function(G){var X=this;tfe(this,G);if((G.errorCode!=="html5.invalidstate"&&G.errorCode!=="fmt.unplayable"&&G.errorCode!=="fmt.unparseable"||!COZ(this,G.errorCode,G.details))&&!WEe(this,G)){if(this.hT.AT!=="yt"&&In0(this,G)&&this.videoData.B1&&(0,g.TB)()/1E3>this.videoData.B1&&this.hT.AT==="hm"){var Q=Object.assign({e:G.errorCode},G.details);Q.stalesigexp="1";Q.expire=this.videoData.B1;Q.init=this.videoData.G9/1E3;Q.now=(0,g.TB)()/1E3;Q.systelapsed=((0,g.TB)()-this.videoData.G9)/1E3; G=new g.YE(G.errorCode,Q,2);this.uB.WR(G.errorCode,2,"SIGNATURE_EXPIRED",kE(G.details))}if(j0(G.severity)){var R;Q=(R=this.uB.loader)==null?void 0:R.N.N;if(this.hT.G("html5_use_network_error_code_enums"))if(VfG(G)&&Q&&Q.isLocked())var S="FORMAT_UNAVAILABLE";else if(this.hT.S||G.errorCode!=="auth"||G.details.rc!==429)G.errorCode==="ump.spsrejectfailure"&&(S="HTML5_SPS_UMP_STATUS_REJECTED");else{S="TOO_MANY_REQUESTS";var Z="6"}else VfG(G)&&Q&&Q.isLocked()?S="FORMAT_UNAVAILABLE":this.hT.S||G.errorCode!== "auth"||G.details.rc!=="429"?G.errorCode==="ump.spsrejectfailure"&&(S="HTML5_SPS_UMP_STATUS_REJECTED"):(S="TOO_MANY_REQUESTS",Z="6");this.uB.WR(G.errorCode,G.severity,S,kE(G.details),Z)}else this.uB.publish("nonfatalerror",G),R=/^pp/.test(this.videoData.clientPlaybackNonce),this.uf(G.errorCode,G.details),R&&G.errorCode==="manifest.net.connect"&&(G="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.TB)(),Nz(G,"manifest",function(H){X.S=!0;X.Ni("pathprobe",H)}, function(H){X.uf(H.errorCode,H.details)}))}}; g.P.Ni=function(G,X){this.uB.Q0.Ni(G,X)}; g.P.uf=function(G,X){X=kE(X);this.uB.Q0.uf(G,X)};MH.prototype.X$=function(G){var X=DHV(this);if(!G)return{NS:jX,ut:jX,xX:jX,v6:jX,hv:jX,pM:jX,nM:X};var Q=jX;if(z1(X)||this.G("html5_perf_cap_override_sticky"))Q=Rf0(this,G);return{NS:Q,ut:vcw(this,G),xX:$HV(this,G),v6:S8e(this,G.videoData),hv:Z50(this,G.videoData,G),pM:AeV(this,G),nM:X}}; MH.prototype.iC=function(G){if(g.jJ(this.tT)&&ys(this.tT.C,fR.HEIGHT))var X=G.N.videoInfos[0].video.qualityOrdinal;else{var Q=this.dD(!!G.N.N);xP(G.videoData)||k6(G.videoData);G=G.N.videoInfos;if(G.length){var R=g.i2(this.tT.experiments,"html5_override_oversend_fraction")||.85,S=G[0].video;S.projectionType!=="MESH"&&S.projectionType!=="EQUIRECTANGULAR"&&S.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Xk||(R=.45);S=g.i2(this.tT.experiments,"html5_viewport_undersend_maximum");for(var Z=0;Z< G.length;Z++){X=G[Z];var H=X.video;if(Q===null||H.width*R=0,stateAtSend:X,joinLatencySecs:Z,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:R,playerCanaryStage:S,isAd:this.provider.videoData.isAd(),liveMode:Q,hasDrm:!!g.pL(this.provider.videoData),isGapless:this.provider.videoData.J,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:c4(this.provider.videoData)};G||g.QL("html5PlayerHealthEvent",X);this.Y=!0;this.dispose()}}; oi.prototype.zT=function(){this.Y||this.send();window.removeEventListener("error",this.bQ);window.removeEventListener("unhandledrejection",this.bQ);g.I.prototype.zT.call(this)}; var s7H=/\bnet\b/;Lk0.prototype.update=function(){if(this.J){var G=this.Mc()||0,X=g.vd(this.provider);G>=this.provider.uB.getDuration()-.1&&(this.previouslyEnded=!0);if(G!==this.N||j5e(this,G,X)){var Q;if(!(Q=GX-this.rK+2||j5e(this,G,X))){Q=this.provider.uB.getVolume();var R=Q!==this.j,S=this.provider.uB.isMuted()?1:0;S!==this.T?(this.T=S,Q=!0):(!R||this.V>=0||(this.j=Q,this.V=X),Q=X-this.V,this.V>=0&&Q>2?(this.V=-1,Q=!0):Q=!1)}Q&&(Px(this),this.Y=G);this.rK=X;this.N=G}}}; Lk0.prototype.Mc=function(){var G=this.provider.uB.Mc();return this.provider.tT.G("html5_disable_live_dvr_shrink_for_cdm_vss")&&zU(this.provider.videoData)?G+this.provider.uB.q9():G};MPC.prototype.send=function(G){var X=this;if(!this.cM){var Q=ozU(this),R=g.on(this.uri,Q);this.tT.G("vss_through_gel_double")&&uol(R);this.DC&&!this.tT.G("html5_simplify_pings")?efG(this,R):mdC(this,G).then(function(S){X.DC&&(S=S||{},S.method="POST",S.postParams={atr:X.attestationResponse});Yay(R,S,{token:X.yH,Eg:X.N9,mdxEnvironment:X.mdxEnvironment},X.tT,G,X.Mi,X.isFinal&&X.PR||X.QH||X.Y&&X.Ge)}); this.cM=!0}}; MPC.prototype.W=function(G){G===void 0&&(G=NaN);return Number(G.toFixed(3)).toString()}; var Py={},TLC=(Py.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Py.LIVING_ROOM_APP_MODE_MAIN=1,Py.LIVING_ROOM_APP_MODE_KIDS=2,Py.LIVING_ROOM_APP_MODE_MUSIC=3,Py.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Py.LIVING_ROOM_APP_MODE_GAMING=5,Py),s$={},s5y=(s$.EMBEDDED_PLAYER_MODE_UNKNOWN=0,s$.EMBEDDED_PLAYER_MODE_DEFAULT=1,s$.EMBEDDED_PLAYER_MODE_PFP=2,s$.EMBEDDED_PLAYER_MODE_PFL=3,s$);g.T(Tc,g.I);Tc.prototype.onProgress=function(){this.N.update();Ud0(this)&&(EzG(this),xdS(this))}; Tc.prototype.zT=function(){g.I.prototype.zT.call(this);r6(this);kGS(this.N)}; Tc.prototype.L7=function(){return ozU(Kq(this,"playback"))}; Tc.prototype.Ao=function(G){var X=Kq(this,"engage");X.Yc=G;return P3G(X,VPy(this.provider))};tPy.prototype.isEmpty=function(){return this.endTime===this.startTime};E1.prototype.G=function(G){return this.tT.G(G)}; E1.prototype.getCurrentTime=function(){return this.uB.getCurrentTime()}; E1.prototype.Mc=function(){return this.uB.Mc()}; var I2l={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.T(g.xc,g.I);g.P=g.xc.prototype;g.P.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.K4){var G;(G=this.Y.get(this.K4))==null||G.onProgress()}else if(this.N)this.N.onProgress()}; g.P.q1=function(G){this.qoe&&this.qoe.q1(G)}; g.P.FA=Gi(29);g.P.Od=Gi(35);g.P.nx=function(G,X){this.qoe&&this.qoe.nx(G,X)}; g.P.W4=function(){if(this.provider.videoData.enableServerStitchedDai&&this.K4){var G;(G=this.Y.get(this.K4))!=null&&Px(G.N)}else this.N&&Px(this.N.N)}; g.P.uf=function(G,X){this.qoe&&g6y(this.qoe,G,X);if(this.W)this.W.onError(G)}; g.P.Sp=function(G){var X;(X=this.qoe)==null||X.Sp(G)}; g.P.onPlaybackRateChange=function(G){if(this.qoe)this.qoe.onPlaybackRateChange(G);this.N&&Px(this.N.N)}; g.P.Uf=Gi(52);g.P.Ni=function(G,X,Q){this.qoe&&this.qoe.Ni(G,X,Q)}; g.P.Uz=function(G,X,Q){this.qoe&&this.qoe.Uz(G,X,Q)}; g.P.bj=function(G){var X;(X=this.qoe)==null||X.bj(G)}; g.P.nf=function(G){var X;(X=this.qoe)==null||X.nf(G)}; g.P.QO=function(G,X,Q,R){var S;(S=this.qoe)==null||S.QO(G,X,Q,R)}; g.P.rf=function(G){this.qoe&&this.qoe.rf(G)}; g.P.Ys=function(G,X,Q){this.qoe&&this.qoe.Ys(G,X,Q)}; g.P.Zn=Gi(23);g.P.IR=function(){if(this.qoe)return this.qoe.IR()}; g.P.L7=function(){if(this.provider.videoData.enableServerStitchedDai&&this.K4){var G,X;return(X=(G=this.Y.get(this.K4))==null?void 0:G.L7())!=null?X:{}}return this.N?this.N.L7():{}}; g.P.nm=function(){var G;return(G=this.qoe)==null?void 0:G.nm()}; g.P.GA=function(G,X){var Q;(Q=this.qoe)==null||Q.GA(G,X)}; g.P.Ao=function(G){return this.N?this.N.Ao(G):function(){}}; g.P.getVideoData=function(){return this.provider.videoData}; g.P.resume=function(){this.qoe&&this.qoe.resume()};g.T(g.zc,g.I);g.P=g.zc.prototype;g.P.PZ=function(G,X){this.sync();X&&this.N.array.length>=2E3&&this.Yy("captions",1E4);X=this.N;if(G.length>1&&G.length>X.array.length)X.array=X.array.concat(G),X.array.sort(X.N);else{G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value,!X.array.length||X.N(Q,X.array[X.array.length-1])>0?X.array.push(Q):g.bL(X.array,Q,X.N)}this.Y=NaN;this.sync()}; g.P.eN=function(G){G.length>1E4&&g.EL(new g.Ic("Over 10k cueRanges removal occurs with a sample: ",G[0]));if(!this.U_()){var X=new Set(G);this.W=this.W.filter(function(Q){return!X.has(Q)}); X6U(this.N,X);this.sync()}}; g.P.K5=function(G,X){if(!this.U_()){var Q=this.Gj().find(function(R){return R.id===X&&R.namespace===G}); Q&&this.eN([Q])}}; g.P.Yy=function(G,X){var Q=(isNaN(this.Y)?Hbw(this):this.Y)-X;X=this.Gj().filter(function(R){return R.namespace===G&&R.endthis.N,Z=g.N(Q,8)&&g.N(Q,16),H=this.uB.xg().isBackground()||Q.isSuspended();d6(this,this.Xm,Z&&!H,S,"qoe.slowseek",function(){},"timeout"); var w=isFinite(this.N);w=Z&&w&&pVU(X,this.N);var h=!R||Math.abs(R-this.N)>10,L=this.tT.G("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),k=R===0&&this.W&&[11,10].includes(this.W);d6(this,this.cM,w&&h&&!H&&(!L||!k),S,"qoe.slowseek",function(){X.seekTo(G.N)},"set_cmt"); h=w&&HH(X.wL(),this.N);var Y=this.uB.loader;w=!Y||Y.Ec();var M=function(){X.seekTo(G.N+.001)}; d6(this,this.QH,h&&w&&!H,S,"qoe.slowseek",M,"jiggle_cmt");w=function(){return G.uB.rZ()}; d6(this,this.SA,h&&!H,S,"qoe.slowseek",w,"new_elem");var m=Vp(Q);k=Q.isBuffering();var u=X.wL(),r=Zt(u,R),x=r>=0&&u.end(r)>R+5;h=m&&k&&x;L=this.uB.getVideoData();d6(this,this.IU,R<.002&&this.N<.002&&Z&&g.jJ(this.tT)&&g.SA(L)&&!H,S,"qoe.slowseek",w,"slow_seek_shorts");d6(this,this.j,L.n2()&&Z&&!H&&!L.yH,S,"qoe.slowseek",w,"slow_seek_gapless_shorts");d6(this,this.AT,h&&!H,m&&!k,"qoe.longrebuffer",M,"jiggle_cmt");d6(this,this.yH,h&&!H,m&&!k,"qoe.longrebuffer",w,"new_elem_nnr");if(Y){var c=Y.getCurrentTime(); Z=X.SR();Z=gAe(Z,c);Z=!Y.isSeeking()&&R===Z;d6(this,this.Hs,m&&k&&Z&&!H,m&&!k&&!Z,"qoe.longrebuffer",function(){X.seekTo(c)},"seek_to_loader")}Z={}; M=Zt(u,Math.max(R-3.5,0));var z=M>=0&&R>u.end(M)-1.1,B=M>=0&&M+1=0&&z&&B<11;Z.close2edge=z;Z.gapsize=B;Z.buflen=u.length;this.W&&(Z.seekSour=this.W);d6(this,this.Yc,m&&k&&!H,m&&!k,"qoe.longrebuffer",function(){},"timeout",Z); Z=Q.isSuspended();Z=this.uB.kf()&&!Z;d6(this,this.J,Z,!Z,"qoe.start15s",function(){G.uB.po("ad")},"ads_preroll_timeout"); Z=this.tT.experiments.TT("html5_use_playback_rate_in_skip_slow_ad")?this.uB.getPlaybackRate()*1E3:1E3;r=R-this.V5;d6(this,this.wb,g.SA(L)&&Y,m&&!k,"qoe.longrebuffer",function(){G.uB.mT()},"reset_media_source"); d6(this,this.CO,g.SA(L)&&Y,m&&!k,"qoe.longrebuffer",w,"reset_media_element");this.V===0&&(this.S=R);Y=k&&this.N===0&&R>1&&R===this.S;d6(this,this.Mi,g.SA(L)&&Y,m&&!k,"qoe.slowseek",function(){X.seekTo(0)},"reseek_after_time_jump"); H=Q.isOrWillBePlaying()&&!H;x=this.uB.Ru()-R<6&&!x&&this.uB.Ji();d6(this,this.T,L.n2()&&H&&k&&x,m&&!k,"qoe.longrebuffer",function(){G.uB.rZ(!1,!0)},"handoff_end_long_buffer_reload"); H=this.W===104||this.uB.IF;Q=Ec(L)&&L.isAd()&&!L.yH&&H&&(k||g.N(Q,8)&&g.N(Q,16));d6(this,this.BM,Q,S,"qoe.start15s",w,"gapless_ad_slow_start");Q=Ec(L)&&!L.yH&&H&&h;d6(this,this.KO,Q,S,"qoe.longrebuffer",w,"gapless_slow_start");this.V=R;this.C.start()}}; Ii.prototype.uf=function(G,X,Q){X=this.L7(X);X.wn=Q;X.wdup=this.Y[G]?"1":"0";this.uB.uf(new g.YE(G,X));this.Y[G]=!0}; Ii.prototype.L7=function(G){G=Object.assign(this.uB.L7(!0),G.L7());this.N&&(G.stt=this.N.toFixed(3));this.uB.getVideoData().isLivePlayback&&(G.ct=this.uB.getCurrentTime().toFixed(3),G.to=this.uB.q9().toFixed(3));delete G.uga;delete G.euri;delete G.referrer;delete G.fexp;delete G.vm;return G}; VE.prototype.reset=function(){this.N=this.W=this.Y=this.startTimestamp=0;this.V=!1}; VE.prototype.test=function(G){if(!this.C||this.W)return!1;if(!G)return this.reset(),!1;G=(0,g.TB)();if(!this.startTimestamp)this.startTimestamp=G,this.Y=0;else if(this.Y>=this.C)return this.W=G,!0;this.Y+=1;return!1}; VE.prototype.L7=function(){var G={},X=(0,g.TB)();this.startTimestamp&&(G.wsd=(X-this.startTimestamp).toFixed());this.W&&(G.wtd=(X-this.W).toFixed());this.N&&(G.wssd=(X-this.N).toFixed());return G};g.T(afV,g.I);g.P=afV.prototype;g.P.setMediaElement=function(G){(this.mediaElement=G)?(this.mediaElement&&(this.C||this.Y||!this.mediaElement.qK()||this.seekTo(.01,{nY:"seektimeline_setupMediaElement"})),Wx(this)):yE(this)}; g.P.getCurrentTime=function(G){G=G===void 0?!1:G;if(pq(this.uB)){if(this.G("html5_use_centralized_player_time")&&!G&&!isNaN(this.S))return this.S;if(!isNaN(this.W))return this.W}else{if(this.G("html5_use_centralized_player_time")&&!G&&!isNaN(this.S)&&isFinite(this.S))return this.S;if(!isNaN(this.W)&&isFinite(this.W))return this.W}return this.mediaElement&&d6X(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Y||0}; g.P.QI=function(){return this.BM}; g.P.Mc=function(){return this.getCurrentTime()-this.q9()}; g.P.D5=function(){return this.N?this.N.D5():Infinity}; g.P.isAtLiveHead=function(G){if(!this.N)return!1;G===void 0&&(G=this.getCurrentTime());return F3(this.N,G)}; g.P.j3=function(){return!!this.N&&this.N.j3()}; g.P.seekTo=function(G,X){var Q=X===void 0?{}:X;X=Q.j6===void 0?!1:Q.j6;var R=Q.f8===void 0?0:Q.f8;var S=Q.F5===void 0?!1:Q.F5;var Z=Q.Bt===void 0?0:Q.Bt;var H=Q.nY===void 0?"":Q.nY;var w=Q.seekSource===void 0?void 0:Q.seekSource;var h=Q.V7===void 0?!1:Q.V7;var L=Q.B_===void 0?!1:Q.B_;Q=Q.IQ===void 0?!1:Q.IQ;h&&(G+=this.q9());c4(this.videoData)&&w===29&&(this.BM=void 0);h=G=this.Zs())||!g.$P(this.videoData),r||(x={st:x,mst:this.Zs()},this.N&&this.G("html5_high_res_seek_logging")&&(x.ht=this.N.D5(),x.adft=Bx(this.N)),this.uB.Ni("seeknotallowed",x)),x=r));if(!x)return this.V&&(this.V=null,tuG(this)),g.Oy(this.getCurrentTime());x=.005;L&&this.G("html5_sabr_seek_no_shift_tolerance")&&(x=0);if(Math.abs(G-this.W)<=x&&this.Mi)return this.C;H&&(x=G,this.tT.n7()||this.G("html5_log_seek_reasons"))&& (H={reason:H,tgt:x},this.G("html5_sabr_csdai_seek_log")&&(H.source=w),this.uB.Ni("seekreason",H));w&&(this.AT.W=w);this.Mi&&yE(this);this.C||(this.C=new aT);G&&!isFinite(G)&&zBV(this,!1);(H=Q||h)||(H=G,H=!(this.videoData.isLivePlayback&&this.videoData.Y&&!this.videoData.Y.N&&!(this.mediaElement&&this.mediaElement.fu()>0&&xq(this.mediaElement)>0)||Fu(this.videoData)&&this.Bn()===this.Zs(!1)?0:isFinite(H)||!Fu(this.videoData)));H||(G=Dn(this,G,S));G&&!isFinite(G)&&zBV(this,!1);this.G("html5_use_centralized_player_time")? this.S=G:this.W=this.Y=G;this.wb=Z;this.J=0;this.N&&(S=this.N,Z=G,Pdl(S,Z,!1),s6T(S,Z));S=this.uB;Z=G;H={j6:X,seekSource:w};S.I6.Y=Z;Q=S.Q$;Q.mediaTime=Z;Q.N=!0;H.j6&&S.BW(H);H=Z>S.videoData.endSeconds&&Z>S.videoData.limitedPlaybackDurationInSeconds;S.Yq&&H&&isFinite(Z)&&o2Z(S);ZX.start&&o2Z(this.uB);return this.C}; g.P.Zs=function(G){if(!this.videoData.isLivePlayback)return this.uB.videoData.Zs();var X;return uG(this.videoData)&&((X=this.mediaElement)==null?0:X.isPaused())&&this.videoData.N?(G=this.getCurrentTime(),N_S(this.mY(G)*1E3)+G):this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&c4(this.videoData)&&this.videoData.N?G?this.videoData.N.Yc||0:this.videoData.N.Ti||0:Fu(this.videoData)&&this.videoData.Yc&&this.videoData.N?this.videoData.N.Zs()+this.timestampOffset:this.videoData.Y&&this.videoData.Y.N? !G&&this.N?this.N.D5():this.uB.videoData.Zs()+this.timestampOffset:this.mediaElement?Im()?N_S(this.mediaElement.Dv().getTime()):xq(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.P.Bn=function(){if(this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&c4(this.videoData)){var G;return((G=this.videoData.N)==null?void 0:G.Yv)||0}G=this.videoData?this.videoData.Bn()+this.timestampOffset:this.timestampOffset;if(uG(this.videoData)&&this.videoData.N){var X,Q=Number((X=this.videoData.progressBarStartPosition)==null?void 0:X.utcTimeMillis)/1E3;if(this.G("html5_unify_utc_media_time_calculation")){if(!isNaN(Q)&&(Q=this.ID(Q),!isNaN(Q)))return Math.max(G,Q)}else if(X=this.getCurrentTime(), X=this.mY(X)-X,!isNaN(Q)&&!isNaN(X))return Math.max(G,Q-X)}return G}; g.P.kY=function(){this.C||this.seekTo(this.Y,{nY:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.P.bC=function(){return this.Mi&&!isFinite(this.W)}; g.P.zT=function(){c_l(this,null);this.AT.dispose();g.I.prototype.zT.call(this)}; g.P.L7=function(){var G={};this.loader&&Object.assign(G,this.loader.L7());this.mediaElement&&Object.assign(G,this.mediaElement.L7());return G}; g.P.mK=function(G){this.timestampOffset=G}; g.P.getStreamTimeOffset=function(){return Fu(this.videoData)?0:this.videoData.N?this.videoData.N.getStreamTimeOffset():0}; g.P.q9=function(){return this.timestampOffset}; g.P.mY=function(G){return this.videoData&&this.videoData.N?this.videoData.N.mY(G-this.timestampOffset):NaN}; g.P.oG=function(){if(!this.mediaElement)return 0;if(bV(this.videoData)){var G=this.mediaElement,X=G.wL();G=(hS(X)&&G.getDuration()?X.end(X.length-1):0)+this.timestampOffset-this.Bn();X=this.Zs()-this.Bn();return Math.max(0,Math.min(1,G/X))}return this.mediaElement.oG()}; g.P.ij=function(G){this.T&&(this.T.N=G)}; g.P.xs=function(G,X){this.uB.Ni("requestUtcSeek",{time:G});c4(this.videoData)&&(this.BM=G);var Q;(Q=this.loader)==null||Q.xs(G);X&&(this.DC=X)}; g.P.fm=function(G){c4(this.videoData)&&(this.BM=void 0);if(this.DC)this.uB.Ni("utcSeekingFallback",{source:"streamTime",timeSeconds:this.DC}),this.uB.seekTo(this.DC,{nY:"utcSeekingFallback_streamTime"}),this.DC=0;else{if(this.G("html5_unify_utc_media_time_calculation")){var X=this.ID(G);if(isNaN(X))return}else{X=this.getCurrentTime();if(isNaN(X))return;G=this.mY(X)-G;X-=G}this.uB.Ni("utcSeekingFallback",{source:"estimate",timeSeconds:X});this.uB.seekTo(X,{nY:"utcSeekingFallback_estimate"})}}; g.P.P8=function(){this.DC=0}; g.P.ID=function(G){var X=this.getCurrentTime();if(isNaN(X))return NaN;var Q=this.mY(X);return isNaN(Q)?NaN:G-(Q-X)}; g.P.G=function(G){return this.tT&&this.tT.G(G)};g.T(NH,g.I);NH.prototype.start=function(){this.W.start()}; NH.prototype.stop=function(){this.W.stop()}; NH.prototype.clear=function(){for(var G=g.e(this.N.values()),X=G.next();!X.done;X=G.next())X.value.clear()}; NH.prototype.sample=function(){for(var G=g.e(this.Y),X=G.next();!X.done;X=G.next()){var Q=g.e(X.value);X=Q.next().value;Q=Q.next().value;this.N.has(X)||this.N.set(X,new NQG(Tfd.has(X)));this.N.get(X).update(Q())}this.W.start()}; var Tfd=new Set(["networkactivity"]);NQG.prototype.update=function(G){this.W?(this.buffer.add(G-this.N||0),this.N=G):this.buffer.add(G)}; NQG.prototype.clear=function(){this.buffer.clear();this.N=0};$c.prototype.Xk=function(){return this.started}; $c.prototype.start=function(){this.started=!0}; $c.prototype.reset=function(){this.finished=this.started=!1};var v0G=!1;g.T(g.iO,g.ic);g.P=g.iO.prototype;g.P.zT=function(){this.logger.debug("dispose");g.kD(this.lI);cei(this.cR);this.visibility.unsubscribe("visibilitystatechange",this.cR);f2Z(this.Q0);g.Xh(this.Q0);QS(this);g.Ft.tX(this.TG);this.hR();this.yU=null;g.Xh(this.videoData);g.Xh(this.NW);g.Xh(this.DD);g.Xh(this.RS);g.Q0(this.kTT);this.Yq=null;g.ic.prototype.zT.call(this)}; g.P.Ys=function(G,X,Q,R,S){if(this.tT.G("html5_log_ad_playback_docid")){var Z=this.Q0;if(Z.qoe){Z=Z.qoe;var H=this.tT.AT||"yt";g.nY(Z,g.vd(Z.provider),"ad_playback",[G,X,Q,S,H])}}else this.Q0.Ys(G,X,Q);this.G("html5_log_media_perf_info")&&this.Ni("adloudness",{ld:R.toFixed(3),cpn:G})}; g.P.kV=function(){var G;return(G=this.loader)==null?void 0:G.kV()}; g.P.il=function(){var G;return(G=this.loader)==null?void 0:G.il()}; g.P.P1=function(){var G;return(G=this.loader)==null?void 0:G.P1()}; g.P.Kk=function(){var G;return(G=this.loader)==null?void 0:G.Kk()}; g.P.VJ=function(){return this.videoData.VJ()}; g.P.g2=function(){return this.G("html5_not_reset_media_source")&&!this.VJ()&&!this.videoData.isLivePlayback&&g.SA(this.videoData)&&!this.tT.supportsGaplessShorts()}; g.P.OZ=function(){this.videoData.J&&(this.videoData.Fo=this.videoData.Fo||this.Sz.eA().kV(),this.videoData.OH=this.videoData.OH||this.Sz.eA().il());if(B_0(this.videoData)||!m0(this.videoData)){var G=this.videoData.errorDetail;this.WR(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),G,G,this.videoData.pj||void 0)}this.G("html5_generate_content_po_token")&&this.o_();this.G("html5_enable_d6de4")&&this.P2()}; g.P.getVideoData=function(){return this.videoData}; g.P.Z=function(){return this.tT}; g.P.X$=function(){return this.Kv.X$(this.yU)}; g.P.xg=function(){return this.visibility}; g.P.lR=function(){return this.mediaElement&&this.mediaElement.xm()?this.mediaElement.V0():null}; g.P.EY=function(){return this.mediaElement}; g.P.f6=function(){if(this.videoData.errorCode)return!1;this.Z().S&&this.Z().houseBrandUserStatus&&this.Ni("hbut",{status:this.Z().houseBrandUserStatus},!0);if(this.videoData.eG())return!0;this.WR("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.P.Ci=function(G){(G=G===void 0?!1:G)||ddw(this.Q0);this.O9=G;!this.f6()||this.y_.Xk()?g.jJ(this.tT)&&this.videoData.isLivePlayback&&this.y_.Xk()&&!this.y_.finished&&!this.O9&&this.JZ():(this.y_.start(),G=this.Q0,g.vd(G.provider),G.qoe&&zAT(G.qoe),this.JZ())}; g.P.JZ=function(){if(this.videoData.isLoaded()){var G=this.NW;g.i2(G.hT.experiments,"html5_player_min_build_cl")>0&&g.i2(G.hT.experiments,"html5_player_min_build_cl")>793879582&&dHZ(G,"oldplayer");YRC(this)}else this.videoData.Sa||this.videoData.bZ?this.O9&&g.jJ(this.tT)&&this.videoData.isLivePlayback||(this.videoData.Sa?u2l(this.videoData):(G=this.Q0,G.qoe&&(G=G.qoe,ii(G,"protected"),G.provider.videoData.C?G.dC():G.provider.videoData.subscribe("dataloaded",G.dC,G)),jkS(this.videoData))):!this.videoData.loading&& this.vS&&htG(this)}; g.P.In=function(G){this.UY=G;this.loader&&(KdT(this.loader,new g.Ri(G)),this.Ni("sdai",{sdsstm:1}))}; g.P.UH=function(G,X,Q){var R;(R=this.loader)==null||R.UH(G,X,Q)}; g.P.ST=Gi(8);g.P.isFullscreen=function(){return this.visibility.isFullscreen()}; g.P.isBackground=function(){return this.visibility.isBackground()}; g.P.eC=function(){var G=this;this.logger.debug("Updating for format change");GG(this).then(function(){return Je(G)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.P.EZ=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Ci();this.f6()&&!g.N(this.playerState,128)&&(this.WX.Xk()||(this.WX.start(),this.videoData.m7?this.dM(BH(this.playerState,4)):this.dM(BH(BH(this.playerState,8),1))),LYT(this))}; g.P.jL=function(){return this.y_.finished}; g.P.sendAbandonmentPing=function(){g.N(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Yk(!0),f2Z(this.Q0),g.Xh(this.Q0),g.Ft.tX(this.TG))}; g.P.q0=function(G,X,Q){G=G===void 0?!0:G;(X===void 0||X)&&this.mediaElement&&this.mediaElement.pause();G&&Q&&this.loader&&Fu(this.videoData)&&this.loader.QO(Q);this.dM(G?new g.gO(14):new g.gO)}; g.P.Ja=function(){this.Q0.W4()}; g.P.WR=function(G,X,Q,R,S,Z){this.logger.debug(function(){return"set player error: ec="+G+", detail="+S}); var H,w;g.Y7(B14,Q)?H=Q:Q?w=Q:H="GENERIC_WITHOUT_LINK";R=(R||"")+(";a6s."+nJ());if(G==="auth"||G==="drm.auth"||G==="heartbeat.stop")Q&&(R+=";r."+Q.replaceAll(" ","_")),Z&&(R+="sr."+Z.replaceAll(" ","_"));X={errorCode:G,errorDetail:S,errorMessage:w||g.dQ[H]||"",Qy:H,pj:Z||"",wP:R,BH:X,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=G;Xo(this,"dataloaderror");this.dM(l9(this.playerState,128,X));g.Ft.tX(this.TG);QS(this);this.Gi()}; g.P.po=function(G){this.Da=this.Da.filter(function(X){return G!==X}); this.logger.debug(function(){return"set preroll ready for "+G}); this.WX.Xk()&&LYT(this)}; g.P.pg=function(){var G;(G=!!this.Da.length)||(G=this.dL.N.array[0],G=!!G&&G.start<=-0x8000000000000);return G}; g.P.j3=function(){return this.I6.j3()}; g.P.isPlaying=function(){return this.playerState.isPlaying()}; g.P.Fk=function(){return this.playerState.Fk()&&this.videoData.m7}; g.P.getPlayerState=function(){return this.playerState}; g.P.cW=function(G){var X;(X=this.loader)==null||X.cW(G)}; g.P.Jx=function(G){var X;(X=this.loader)==null||X.Jx(G)}; g.P.getPlayerType=function(){return this.playerType}; g.P.getPreferredQuality=function(){if(this.yU){var G=this.yU;G=G.videoData.pV.compose(G.videoData.J$);G=g$(G)}else G="auto";return G}; g.P.Jc=Gi(16);g.P.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.P.setMediaElement=function(G){this.logger.debug("set media element");if(this.mediaElement&&G.V0()===this.mediaElement.V0()&&(G.isView()||this.mediaElement.isView())){if(G.isView()||!this.mediaElement.isView())this.aV(),this.mediaElement=G,this.mediaElement.uB=this,zt7(this),this.I6.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.hR();if(!this.playerState.isError()){var X=FP(this.playerState,512);g.N(X,8)&&!g.N(X,2)&&(X=BH(X,1));G.isView()&&(X=FP(X,64));this.dM(X)}this.mediaElement= G;this.mediaElement.uB=this;!g.jJ(this.tT)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);zt7(this);this.I6.setMediaElement(this.mediaElement);this.G("html5_prewarm_media_source")&&!this.NW.eH()&&Vzw(this.mediaElement)}}; g.P.hR=function(G,X,Q){G=G===void 0?!1:G;X=X===void 0?!1:X;Q=Q===void 0?!1:Q;this.logger.debug("remove media element");if(this.mediaElement){var R=this.getCurrentTime();R>0&&(this.I6.Y=R);this.I6.setMediaElement(null);!G&&this.g2()?r27(this):this.IL(Q);this.loader&&(yc(this.loader),Ht(this,X));this.W9.stop();if(this.mediaElement&&(!this.WX.Xk()&&!this.kf()||this.playerState.isError()||g.N(this.playerState,2)||this.dM(BH(this.playerState,512)),this.mediaElement)){this.aV();if(G||!this.mediaElement.isView())this.M9.Xh("mesv_s"), this.mediaElement.stopVideo(),qd(this);this.mediaElement=this.mediaElement.uB=null}}}; g.P.playVideo=function(G,X){G=G===void 0?!1:G;X=X===void 0?!1:X;var Q=this,R,S,Z,H,w,h;return g.F(function(L){if(L.W==1){Q.logger.debug("start play video");var k=window.google_image_requests;k&&k.length>10&&(window.google_image_requests=k.slice(-10));if(g.N(Q.playerState,128))return L.return();if(Q.NW.fb())return Q.publish("signatureexpired"),L.return();Q.mediaElement&&ddw(Q.Q0);Q.EZ();(g.N(Q.playerState,64)||G)&&Q.dM(BH(Q.playerState,8));return Q.WX.finished&&Q.mediaElement?Q.yU||!Q.u3?L.pO(2):g.l(L, Q.u3,3):L.return()}if(L.W!=2&&g.N(Q.playerState,128))return L.return();if(!Q.videoData.Y)return Q.videoData.isLivePlayback&&!g.Kj(Q.tT.C,!0)?(R="html5.unsupportedlive",S=2):(R=Q.videoData.VJ()?"fmt.unplayable":"fmt.noneavailable",S=1),g.EL(Error("selectableFormats")),Q.WR(R,S,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),L.return();if(Q.HF()&&Q.videoData.Y.N)return Q.logger.debug("rebuild playbackData for airplay"),L.return(GG(Q));if(pq(Q))k=Q.I6,B4(k.videoData)&&!k.isAtLiveHead(k.getCurrentTime())&& k.j3()&&k.uB.seekTo(Infinity,{nY:"seektimeline_peggedToLive",seekSource:34});else if(B4(Q.videoData)&&(Z=Q.getCurrentTime()H;if(!w||!H){S&&w&&(Z=Math.max(Z,S));var h;S=N6C(X,(h=R.N)==null?void 0:h.videoInfos);h=X.uB.getPlaybackRate();h>1&&S&&(h=AS7(X.tT.C,R.N.videoInfos,h),G.N!==0&&h=480;if(X.G("html5_exponential_memory_for_sticky")){L=X.tT.ze;k=1;var Y=Y===void 0?!1:Y;x00(L,"sticky-lifetime");L.values["sticky-lifetime"]&&L.Qc["sticky-lifetime"]||(L.values["sticky-lifetime"]=0,L.Qc["sticky-lifetime"]=0);Y&&An(L,"sticky-lifetime")>.0625&&(k=L.Qc["sticky-lifetime"]*2);L.values["sticky-lifetime"]+=1*Math.pow(2, L.N/k);L.Qc["sticky-lifetime"]=k;L.V.start()}if(X.G("html5_perf_cap_override_sticky")){Y=X.Y;X=X.G("html5_perserve_av1_perf_cap");X=X===void 0?!1:X;if(X===void 0?0:X){L=uF();k=g.e(Object.keys(L));for(G=k.next();!G.done;G=k.next())G=G.value,G.indexOf("1")!==0&&delete L[G];g.E5("yt-player-performance-cap",L,2592E3)}else g.O5("yt-player-performance-cap");Nsi(X);if(X){X=g.e(il.keys());for(L=X.next();!L.done;L=X.next())L=L.value,L.startsWith("1")||il.delete(L);X=g.e(mE.values());for(L=X.next();!L.done;L= X.next())L=L.value,L.startsWith("1")||mE.delete(L);X=g.e(Y.keys());for(L=X.next();!L.done;L=X.next())L=L.value,L.startsWith("1")||Y.delete(L)}else il.clear(),mE.clear(),Y.clear()}}}}this.loader&&(X=this.loader,Q=Q||"",X.policy.N?Hz(X.V.N,Q):Hz(X.N.C,Q));this.Fd()}; g.P.getUserPlaybackQualityPreference=function(){return this.videoData.Y&&!this.videoData.Y.N?g$(this.videoData.pV):c_[mr()]}; g.P.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.P.setUserAudio51Preference=function(G,X){this.getUserAudio51Preference()!==G&&(this.Ni("toggle51",{pref:G}),g.E5("yt-player-audio51",G,X?31536E3:2592E3),this.eC())}; g.P.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.P.setProximaLatencyPreference=function(G){var X=this.getProximaLatencyPreference();this.Ni("proxima",{pref:G});g.E5("yt-player-proxima-pref",G,31536E3);X!==G&&(G=this.I6,G.KO=!0,G.uB.seekTo(Infinity,{nY:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.P.getProximaLatencyPreference=function(){var G;return(G=o_())!=null?G:0}; g.P.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.P.o_=function(){this.videoData.videoId?this.Sz.o_(this.videoData):this.Ni("povid",{})}; g.P.P2=function(){this.videoData.videoId?this.Sz.P2(this.videoData):this.Ni("piavid",{})}; g.P.Fd=function(){if(!this.U_()&&!g.N(this.playerState,128)&&this.videoData.Y){if(this.videoData.Y.N)vx(this);else{var G=Z2(this),X=this.videoData;a:{var Q=this.videoData.l9;if(G.N){for(var R=g.e(Q),S=R.next();!S.done;S=R.next()){S=S.value;var Z=S.getInfo(),H=g.FZ[Z.video.quality];if((!G.Y||Z.video.quality!=="auto")&&H<=G.N){Q=S;break a}}Q=Q[Q.length-1]}else Q=Q[0]}X.Xm=Q;uiZ(this,G.reason,UFS(this,this.videoData.Xm))}if(this.G("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.I6.j= !1,this.playVideo()}}; g.P.I_=function(G,X){if(this.U_()||g.N(this.playerState,128))return!1;var Q,R=!((Q=this.videoData.Y)==null||!Q.N);Q=R&&X?this.getCurrentTime()-this.q9():NaN;if(this.tT.experiments.TT("html5_record_audio_format_intent")){var S=this.Q0;if(S.qoe){S=S.qoe;var Z=[G.kP.id,isNaN(Q)?"m":"t"];g.nY(S,g.vd(S.provider),"afi",Z)}}if(R)return X&&(R=U60(this.I6),this.Ni("aswh",{id:G.id,xtags:G.xtags,bh:R.toFixed(3)})),this.loader.setAudioTrack(G,Q,X),!0;if(sNl(this)){a:{X=this.mediaElement.audioTracks();for(R=0;R< X.length;++R)if(Q=X[R],Q.label===G.kP.getName()){if(Q.enabled){X=!1;break a}X=Q.enabled=!0;break a}X=void 0}X&&this.Ni("hlsaudio",{id:G.id})}else{a:if(X=this.videoData,X.V&&!nP(X.V)||G===X.VE||!X.l9||X.l9.length<=0)X=!1;else{R=g.e(X.l9);for(Q=R.next();!Q.done;Q=R.next()){Q=Q.value;if(!(Q instanceof Fk)){X=!1;break a}S=G.kP.getId();Q.W&&(JAC(Q.W,S),Q.xP=null)}X.VE=G;X=!0}X&&Je(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.Ni("hlsaudio",{id:G.id}))}return!0}; g.P.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.P.getAudioTrack=function(){if(sNl(this)){var G=KY7(this);if(G)return G}return this.videoData.getAudioTrack()}; g.P.qV=function(){return this.videoData.V}; g.P.Cp=function(G){return this.I2?this.I2.Cp(G):1}; g.P.zJ=function(){this.I2&&this.I2.zJ()}; g.P.Wu=function(){if(this.videoData.G("html5_trigger_loader_when_idle_network")&&!this.videoData.IW()&&c4(this.videoData)){var G;(G=this.loader)!=null&&G.VD()}}; g.P.w1=function(){if(Ec(this.videoData)&&this.videoData.G("html5_gapless_append_early")){var G;(G=this.loader)!=null&&G.VD()}}; g.P.onPlayerRequestSent=function(G){this.Sz.onPlayerRequestSent(G)}; g.P.a8=function(G){G=G===void 0?!1:G;if(this.loader){var X=this.loader,Q=X.a8;var R=this.videoData;R=R.G("html5_ssdai_use_post_for_media")&&R.enableServerStitchedDai?!1:Fu(R)&&R.Nc&&!R.isAd();Q.call(X,R,G)}}; g.P.IL=function(G){G=G===void 0?!1:G;this.kc&&(this.logger.debug("remove media source"),tzV(this.kc),this.a8(G),this.kc.dispose(),this.kc=null)}; g.P.Hd=function(){return this.kc}; g.P.PW=function(G,X,Q,R){function S(H){try{OG7(Z,H,X,Q)}catch(w){g.EL(w),Z.handleError(new g.YE("fmt.unplayable",{msi:"1",ename:w&&typeof w==="object"&&"name"in w?String(w.name):void 0,trg:"setmediasrc"},1))}} var Z=this;X=X===void 0?!1:X;Q=Q===void 0?!1:Q;E2y(this,R===void 0?!1:R);this.kc=G;this.g2()&&er(this.kc)==="open"?S(this.kc):lgi(this.kc,S)}; g.P.Jb=function(G){this.logger.debug("onNeedKeyInfo");this.zk.set(G.initData,G);this.Ld&&(this.Ld.Jb(G),this.G("html5_eme_loader_sync")||this.zk.remove(G.initData))}; g.P.ZV=function(G){this.videoData.m5=g.xm("auto",G,!1,"u");vx(this)}; g.P.ij=function(G){var X=G.reason,Q=G.N.info,R=G.token,S=G.videoId,Z=this.Q0,H=this.videoData;if(Q!==H.V){var w=!H.V;H.V=Q;X!=="m"&&X!=="t"&&(X=w?"i":"a");var h=X==="m"||X==="t";this.tT.experiments.TT("html5_refactor_sabr_audio_format_selection_logging")?this.Zv=new yeG(H,Q,X,"",R,S):(X=new yeG(H,Q,X,"",R),Z.qoe&&(Z=Z.qoe,Q=g.vd(Z.provider),tA0(Z,Q,X)));this.publish("internalaudioformatchange",H,!w&&h)}this.I6.ij(G.N.index)}; g.P.uI=function(G){this.publish("localmediachange",G)}; g.P.Ac=function(G){G=G===void 0?{}:G;var X;(X=this.loader)==null||X.Ac(this.tT,Oc(this.videoData),G)}; g.P.fb=function(){return this.NW.fb()}; g.P.L5=function(G){this.uf(new g.YE("staleconfig",{reason:G}))}; g.P.handleError=function(G){this.NW.handleError(G)}; g.P.eH=function(){return this.NW.eH()}; g.P.fm=function(G){this.I6.fm(G)}; g.P.rZ=function(G,X){G=G===void 0?!1:G;X=X===void 0?!1:X;var Q=this,R,S,Z;return g.F(function(H){if(H.W==1){Q.loader&&Q.loader.Cb();Q.loader&&Q.loader.U_()&&QS(Q);if(Q.G("html5_enable_vp9_fairplay")&&Q.VJ()&&(R=Q.videoData.N)!=null)for(var w in R.N)R.N.hasOwnProperty(w)&&(R.N[w].N=null,R.N[w].Y=!1);Q.dM(BH(Q.playerState,2048));Q.publish("newelementrequired");return G?g.l(H,GG(Q),2):H.pO(2)}Q.videoData.IW()&&((S=Q.loader)==null?0:S.Mi)&&!pq(Q)&&((Z=Q.isAtLiveHead())&&B4(Q.videoData)?Q.seekTo(Infinity, {nY:"videoPlayer_getNewElement"}):Q.videoData.It&&Q.loader&&(w=Q.loader,w.vM.IW&&(w.vM.It||w.vM.V||w.vM.isPremiere?(w.seek(0,{nY:"loader_resetSqless"}),w.videoTrack.J=!0,w.audioTrack.J=!0,w.videoTrack.C=!0,w.audioTrack.C=!0):bl(w.vM)&&SE(w))));X&&Q.seekTo(0,{seekSource:105});g.N(Q.playerState,8)&&Q.playVideo();g.rX(H)})}; g.P.v4=function(G){this.Ni("hgte",{ne:+G});this.videoData.J=!1;G&&this.rZ();this.loader&&n6S(this.loader)}; g.P.P0=function(G){this.Ni("newelem",{r:G});this.rZ()}; g.P.pauseVideo=function(G){G=G===void 0?!1:G;if((g.N(this.playerState,64)||g.N(this.playerState,2))&&!G)if(g.N(this.playerState,8))this.dM(CF(this.playerState,4,8));else if(this.Fk())Je(this);else return;g.N(this.playerState,128)||(G?this.dM(BH(this.playerState,256)):this.dM(CF(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.$P(this.videoData)&&this.loader&&Ht(this,!1)}; g.P.stopVideo=function(){this.pauseVideo();this.loader&&(Ht(this,!1),this.loader.Fz())}; g.P.Gi=function(G,X){G=G===void 0?!1:G;X=X===void 0?!1:X;if(this.g2()&&X){var Q;(Q=this.mediaElement)==null||Q.Gi()}else{var R;(R=this.mediaElement)==null||R.stopVideo()}qd(this);QS(this);g.N(this.playerState,128)||(G?this.dM(FP(FP(BH(this.playerState,4),8),16)):this.dM(l9(this.playerState)));this.videoData.videoId&&this.tT.IU.remove(this.videoData.videoId)}; g.P.seekTo=function(G,X){X=X===void 0?{}:X;this.logger.debug(function(){return"SeekTo "+G+", "+JSON.stringify(X)}); g.N(this.playerState,2)&&Je(this);X.nsT&&this.dM(BH(this.playerState,2048));X.seekSource!==58&&X.seekSource!==60||!this.G("html5_update_vss_during_gapless_seeking")||ptT(this.Q0,X.seekSource);this.I6.seekTo(G,X);this.dL.sync()}; g.P.BW=function(G){this.M9.V.W=(0,g.TB)();g.N(this.playerState,32)||(this.dM(BH(this.playerState,32,G==null?void 0:G.seekSource)),g.N(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.o6()}; g.P.Ca=function(G){G=G==null?void 0:G.seekSource;g.N(this.playerState,32)?(this.dM(CF(this.playerState,16,32,G)),this.publish("endseeking")):g.N(this.playerState,2)||this.dM(BH(this.playerState,16,G));G=this.M9.V;var X=this.videoData,Q=this.playerState.isPaused();if(X.clientPlaybackNonce&&!isNaN(G.N)){if(Math.random()<.01){Q=Q?"pbp":"pbs";var R={startTime:G.N};X.S&&(R.cttAuthInfo={token:X.S,videoId:X.videoId});x5("seek",R);g.EF({clientPlaybackNonce:X.clientPlaybackNonce},"seek");isNaN(G.W)||aa("pl_ss", G.W,"seek");aa(Q,(0,g.TB)(),"seek")}G.reset()}}; g.P.ZU=function(G){this.Ca(G)}; g.P.Bw=function(){this.publish("SEEK_COMPLETE")}; g.P.c9=function(G){var X=this.Sz,Q=this.videoData.clientPlaybackNonce,R=this.playerType;if(G.scope===4){var S=G.type;if(S){var Z=X.dh(),H=Z.getVideoData().clientPlaybackNonce;R===1&&(H=Q);if(R=JUU(X,H)){if(Q=R.getVideoData())G.writePolicy===2&&Q.sabrContextUpdates.has(S)||(G.sendByDefault&&Q.BM.add(S),Q.sabrContextUpdates.set(S,G)),X.G("html5_enable_t1_enf_on_sabr")&&(G=S===5,S=RKC(Q.playerResponse),G?(G=S?1:0,Sz(G,"m.p_",{}),di("MBSTAT",G)):G=1,G===0&&X.PM.E_("onAbnormalityDetected"))}else Z.Ni("scuset", {ncpf:"1",ccpn:H,crcpn:Q})}else g.EL(Error("b/380308491: contextUpdateType is undefined"))}}; g.P.Z7=function(){if(this.playerType===2)return this.Sz.Z7("")}; g.P.getCurrentTime=function(G){return this.I6.getCurrentTime(G===void 0?!1:G)}; g.P.QI=function(){return this.I6.QI()}; g.P.Mc=function(){return this.I6.Mc()}; g.P.j2=function(){return this.Mc()}; g.P.D5=function(){return this.I6.D5()}; g.P.getPlaylistSequenceForTime=function(G){return this.videoData.getPlaylistSequenceForTime(G-this.q9())}; g.P.Yg=function(){var G=NaN;this.mediaElement&&(G=this.mediaElement.Yg());return G>=0?G:this.getCurrentTime()}; g.P.mY=function(){var G;return((G=this.videoData.N)==null?0:G.mY)?this.videoData.N.mY(this.getCurrentTime()-this.q9()):this.mediaElement&&(G=this.mediaElement.Dv())&&(G=G.getTime(),!isNaN(G))?G/1E3+this.getCurrentTime():NaN}; g.P.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.q9():this.Zs()?this.Zs():0}; g.P.lC=function(){var G=new $dT;if(this.loader){var X=this.tT.schedule,Q=this.tT.n7();Q=Q===void 0?!1:Q;G.GI=X.Yc;G.Ez=X.CO;G.bandwidthEstimate=DC(X);if(Q){Q=(X.T.X8()*1E3).toFixed();var R=(X.Mi.X8()*1E3).toFixed(),S=pj(X).toFixed(2),Z=((X.J.X8()||0)*1E9).toFixed(2),H=X.Y.X8().toFixed(0),w=X.QH.X8().toFixed(0),h=X.j.percentile(.5).toFixed(2),L=X.j.percentile(.92).toFixed(2),k=X.j.percentile(.96).toFixed(2),Y=X.j.percentile(.98).toFixed(2);X.N?X.N.reset():X.N=new l$;X.N.add(X.DC);X.N.add(X.interruptions.length); for(var M=0,m=X.interruptions.length-1;m>=0;m--){var u=X.interruptions[m];X.N.add(u-M);M=u}M=0;for(m=X.V.length-1;m>=0;m--){u=X.V[m];var r=u.stamp/36E5;X.N.add(r-M);M=r;X.N.add(u.net/1E3);X.N.add(u.max)}X=X.N.Zh();G.N={ttr:Q,ttm:R,d:S,st:Z,bw:H,abw:w,v50:h,v92:L,v96:k,v98:Y,"int":X}}TUy(this.loader,G)}else this.mediaElement&&(G.TV=Oj(this.mediaElement));G.GI=this.GI;G.Ez=this.Ez;G.Y=this.isAtLiveHead()&&this.isPlaying()?qRX(this):NaN;X=this.I6;X=X.N?Bx(X.N):0;G.V=X;return G}; g.P.Uv=function(G,X){this.Ez+=G;this.GI+=X}; g.P.oG=function(){return this.mediaElement?g.$P(this.videoData)?1:bV(this.videoData)?this.isAtLiveHead()||this.j3()?1:this.I6.oG():this.mediaElement.oG():0}; g.P.m8=function(){var G=this.qt,X=nq(G,"bandwidth"),Q=nq(G,"bufferhealth"),R=nq(G,"livelatency"),S=nq(G,"networkactivity"),Z=Ae(G,"bandwidth"),H=Ae(G,"bufferhealth"),w=Ae(G,"livelatency");G=Ae(G,"networkactivity");var h=this.kR(),L=h.droppedVideoFrames;h=h.totalVideoFrames;var k=this.getCurrentTime();if(this.Ld){var Y="IT/"+(this.Ld.N.getInfo()+"/"+g$(this.IG()));Y+="/"+this.Ld.getInfo()}else Y="";var M=this.isGapless(),m=this.yu(),u=this.IR(),r=g.SP(this),x=this.getPlayerState(),c=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var z=0;var B="";if(this.UY){if(this.UY.yX){B="D,";break a}z=this.UY.NN;B=this.UY.BR.substring(0,4)}z>0?(z="AD"+z+", ",B&&(z+=B+", "),B=z):B=""}return{Y5:Z,ul:H,currentTime:k,KI:Y,droppedVideoFrames:L,isGapless:M,yu:m,lQ:u,Vk:X,x6:Q,MP:R,pB:S,aI:w,rl:G,rO:r,playerState:x,xI:c,wC:B,totalVideoFrames:h}}; g.P.L7=function(G){var X={};if(G===void 0?0:G){Object.assign(X,this.Q0.L7());this.mediaElement&&(Object.assign(X,this.mediaElement.L7()),G=this.kR(),X.dvf=G.droppedVideoFrames,X.tvf=G.totalVideoFrames);this.loader&&Object.assign(X,this.loader.L7());this.Ld&&(X.drm=JSON.stringify(this.Ld.L7()));X.state=this.playerState.state.toString(16);g.N(this.playerState,128)&&(X.debug_error=JSON.stringify(this.playerState.qG));this.pg()&&(X.prerolls=this.Da.join(","));this.videoData.f7&&(X.ismb=this.videoData.f7); this.videoData.latencyClass!=="UNKNOWN"&&(X.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(X.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)X.is_mosaic=1;this.videoData.cotn&&(X.is_offline=1,X.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(X.playerResponseCpn=this.videoData.playerResponseCpn);this.Sz.isOrchestrationLeader()&&(X.leader=1);this.videoData.isLivePlayback&& (this.videoData.N&&N9(this.videoData.N)&&(X.segduration=N9(this.videoData.N)),G=this.I6,X.lat=G.T?YSi(G.T.V):0,X.liveutcstart=this.videoData.liveUtcStartSeconds);X.relative_loudness=this.videoData.Co.toFixed(3);if(G=g.SP(this))X.optimal_format=G.video.qualityLabel;X.user_qual=mr();X.release_version=q[60]}X.debug_videoId=this.videoData.videoId;return X}; g.P.addCueRange=function(G){this.jo([G])}; g.P.removeCueRange=function(G){this.dL.eN([G])}; g.P.Kn=function(){var G=this.dL;if(G.uB.Z().G("html5_sort_cueranges_on_update")&&!(G.Gj().length<=0||G.U_())){var X=G.N;X.array.sort(X.N)}G.sync()}; g.P.Yy=function(G,X){return this.dL.Yy(G,X)}; g.P.jo=function(G,X){this.dL.PZ(G,X)}; g.P.gf=function(G){this.dL.eN(G)}; g.P.Gj=function(){return this.dL.Gj()||[]}; g.P.ys=function(){return this.KR}; g.P.HF=function(){return this.visibility.HF()}; g.P.jT=function(){this.mediaElement&&this.mediaElement.jT()}; g.P.GFU=function(){Xo(this)}; g.P.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.P.aV=function(){g.e8(this.B2)}; g.P.JWi=function(){this.o6();this.publish("onLoadProgress",this.oG())}; g.P.j0=function(G){var X=G.target.d2();if(this.mediaElement&&this.mediaElement.d2()&&this.mediaElement.d2()===X){IZi(this,G.type);switch(G.type){case "error":var Q=cH(this.mediaElement)||"",R=this.mediaElement.uT();if(Q==="capability.changed"){this.G("html5_restart_on_capability_change")?(this.Ni("capchg",{msg:R}),this.rZ(!0)):GG(this);return}if(this.mediaElement.hasError()&&COZ(this.NW,Q,{msg:R,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.iE()===4){this.Gi();R5(this,"unplayable"); return}break;case "durationchange":Q=this.mediaElement.getDuration();isFinite(Q)&&(!this.kc||Q>0)&&Q!==1&&this.GJ(Q);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());Q6w(this.dL);this.Q0.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":WYS(this);this.publish("onLoadedMetadata");g2Z(this);Q=this.mY();this.videoData.hn&&(this.videoData.hn=Q);break;case "loadstart":g2Z(this);break;case "progress":case "suspend":this.Jm.h$(); break;case "seeked":this.tT.G("html5_sabr_ignore_skipad_before_completion")&&(Q=this.loader)!=null&&Q.policy.W&&Q.policy.Z1&&Q.IU&&(Q.Ni("sdai",{skipAdSked:"1"}),Q.IU=!1);break;case "playing":this.M9.Xh("plev");this.LP&&!pq(this)&&(this.LP=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{nY:"videoplayer_onPlaying"})));break;case "timeupdate":Q=this.mediaElement&&!this.mediaElement.getCurrentTime();R=this.mediaElement&&this.mediaElement.fu()===0;if(Q&& (!this.Oa||R))return;this.Oa=this.Oa||!!this.mediaElement.getCurrentTime();c2y(this);this.o6();if(!this.mediaElement||this.mediaElement.d2()!==X)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.SR().length>0&&this.mediaElement.wL().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.G("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.fu()>2||!this.mediaElement.isSeeking()&& HH(this.mediaElement.wL(),this.mediaElement.getCurrentTime()))&&(Q=this.mediaElement.L7(),Q.bh=Oj(this.mediaElement).toFixed(3),this.Ni("uwe",Q));break;case "resize":WYS(this);this.videoData.W&&this.videoData.W.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.yd&&g.N(this.playerState,8)&&!g.N(this.playerState,1024)&&this.getCurrentTime()===0&&g.Y_){R5(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.d2()=== X){y_X(this.I6,G);this.publish("videoelementevent",G);X=this.playerState;R=this.Q$;var S=this.mediaElement;Q=this.videoData.clientPlaybackNonce;if(!g.N(X,128)){var Z=X.state;S=S?S:G.target;var H=S.getCurrentTime();if(!g.N(X,64)||G.type!=="ended"&&G.type!=="pause"){var w=S.getDuration();w=S.isEnded()||H>1&&Math.abs(H-w)<1.1;var h=G.type==="pause"&&S.isEnded();H=G.type==="ended"||G.type==="waiting"||G.type==="timeupdate"&&!g.N(X,4)&&!cx(R,H);if(h||w&&H)S.xx()>0&&S.d2()&&(Z=14);else switch(G.type){case "error":cH(S)&& (Z|=128);break;case "pause":g.N(X,256)?(Z^=256)||(Z=64):g.N(X,32)||g.N(X,2)||g.N(X,4)||(Z=4,g.N(X,1)&&g.N(X,8)&&(Z|=1));break;case "playing":H=Z;Z=(Z|8)&-1093;H&4?(Z|=1,Uj(R,S,!0)):cx(R,S.getCurrentTime())&&(Z&=-2);g.N(X,1)&&Uj(R,S)&&(Z|=1);break;case "seeking":Z|=16;g.N(X,8)&&(Z|=1);Z&=-3;break;case "seeked":Z&=-17;Uj(R,S,!0);break;case "waiting":g.N(X,2)||(Z|=1);Uj(R,S);break;case "timeupdate":H=g.N(X,16),w=g.N(X,4),(g.N(X,8)||H)&&!w&&cx(R,S.getCurrentTime())&&(Z=8),Uj(R,S)&&(Z|=1)}}R=Z;Z=null; R&128&&(Z=G.target,S=cH(Z),H=1,S?(S==="capability.changed"&&(H=2),w="GENERIC_WITHOUT_LINK",h=Z.L7(),h.mediaElem="1",h.trg="melem",/AUDIO_RENDERER/.test(Z.uT())&&(w="HTML5_AUDIO_RENDERER_ERROR"),Z={errorCode:S,errorMessage:g.dQ[w]||"",Qy:w,wP:kE(h),BH:H,cpn:X.qG?X.qG.cpn:""}):Z=null,Z&&(Z.cpn=Q));X=l9(X,R,Z)}!g.N(this.playerState,1)&&g.N(X,1)&&V1y(this,"evt"+G.type);this.dM(X)}}}; g.P.Fpm=function(G){G=G.N.availability==="available";G!==this.KR&&(this.KR=G,this.publish("airplayavailabilitychange"))}; g.P.OOO=function(){var G=(0,g.TB)(),X=this.mediaElement.HF();this.Ni("airplay",{ia:X});!X&&!isNaN(this.yK)&&G-this.yK<2E3||(this.yK=G,X!==this.HF()&&(G=this.visibility,G.N!==X&&(G.N=X,G.cR()),this.Ni("airplay",{rbld:X}),this.eC()),this.publish("airplayactivechange"))}; g.P.Cm=function(G){if(this.loader){var X=this.loader,Q=X.Y,R=X.getCurrentTime(),S=Date.now()-Q.j;Q.j=NaN;Q.Ni("sdai",{adfetchdone:G,d:S});G&&!isNaN(Q.J)&&Q.W!==3&&vQ(Q.loader,R,Q.J,Q.S);Q.policy.W?Q.C=NaN:Q.V=NaN;bh(Q,4,Q.W===3?"adfps":"adf");yc(X)}}; g.P.qf=function(){g.kD(this.lI);this.W9.stop();this.videoData.yH=!0;this.tT.H1=!0;this.tT.N9=0;var G=this.NW;if(G.videoData.W){var X=G.hT.C,Q=G.videoData.W.ZC;X.V.has(Q)&&(X.V.delete(Q),X.W=!0)}G.N.stop();this.CI();g.N(this.playerState,8)&&this.dM(FP(this.playerState,65));this.O9=!1;G=this.Q0;G.N&&O5V(G.N);G.W&&(G=G.W,X=g.vd(G.provider),G.N<0&&(G.N=X,G.delay.start()),G.W=X,G.V=X);g.DA(this.DD);this.publish("playbackstarted");(G=g.QH("yt.scheduler.instance.clearPriorityThreshold"))?G():$L(0)}; g.P.CI=function(){var G=this.Sz.gM(),X={},Q={};!OF("pbs",this.M9.timerName)&&j2.measure&&j2.getEntriesByName&&(j2.getEntriesByName("mark_nr")[0]?RIU("mark_nr"):RIU());G.videoId&&(X.videoId=G.videoId);G.clientPlaybackNonce&&!this.G("web_player_early_cpn")&&(X.clientPlaybackNonce=G.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(Q.isPausedOnLoad=!0);Q.itag=G.W?Number(G.W.itag):-1;G.Nu&&(Q.preloadType=String(this.Py?2:1));X.liveStreamMode=qKv[fL(G)];X.playerInfo=Q;this.M9.infoGel(X); if(this.loader){G=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(G.Y&&(X=window.performance.getEntriesByName(G.Y),X.length&&(X=X[0],G.tick("vri",X.fetchStart),G.tick("vdns",X.domainLookupEnd),G.tick("vreq",X.requestStart),G.tick("vrc",X.responseEnd))),G.W&&(X=window.performance.getEntriesByName(G.W),X.length&&(X=X[0],G.tick("ari",X.fetchStart),G.tick("adns",X.domainLookupEnd),G.tick("areq",X.requestStart),G.tick("arc",X.responseEnd))));G=G.ticks;for(var R in G)G.hasOwnProperty(R)&& this.M9.tick(R,G[R])}}; g.P.o6=function(G){var X=this;G=G===void 0?!1:G;if(this.mediaElement&&this.videoData){lfT(this.I6,this.isPlaying());var Q=this.getCurrentTime();if(this.loader&&(g.N(this.playerState,4)&&g.$P(this.videoData)||g.N(this.playerState,32)&&c4(this.videoData)||rhU(this.loader,Q),this.G("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var R;this.Ni("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(R=this.loader)==null?void 0:R.currentTime},!0)}Q> 5&&(this.I6.Y=Q);(R=g.nZ())?g.Ft.tX(this.TG):g.Li(this.TG);var S=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!S||uG(this.videoData))&&!g.N(this.playerState,128)){var Z=function(){if(X.mediaElement&&!g.N(X.playerState,128)){X.tT.n7()&&IZi(X,"pfx");var H=X.getCurrentTime();X.G("html5_buffer_underrun_transition_fix")&&(H-=X.q9());var w=Oj(X.mediaElement),h=g.N(X.playerState,8),L=cx(X.Q$,H),k=fgl(X.Q$,H,(0,g.TB)(),w);h&&L?X.dM(FP(X.playerState,1)):h&&k?(h=X.getDuration(),L=B4(X.videoData), h&&Math.abs(h-H)<1.1?(X.Ni("setended",{ct:H,bh:w,dur:h,live:L}),X.mediaElement.vD()?(X.logger.debug("seek to 0 because of looping"),X.seekTo(0,{nY:"videoplayer_loop",seekSource:37})):X.q0()):(X.playerState.isBuffering()||V1y(X,"progress_fix"),X.dM(BH(X.playerState,1)))):(h&&!L&&!k&&H>0&&(h=(Date.now()-X.Nf)/1E3,L=X.getDuration(),H>L-1&&X.Ni("misspg",{t:H.toFixed(2),d:L.toFixed(2),r:h.toFixed(2),bh:w.toFixed(2)})),X.playerState.isPaused()&&X.playerState.isBuffering()&&Oj(X.mediaElement)>5&&X.dM(FP(X.playerState, 1)));X.o6()}}; this.mediaElement.SR().length===0?this.TG=R?g.Ft.GR(Z,100):g.wp(Z,100):this.TG=R?g.Ft.GR(Z,500):g.wp(Z,500)}this.videoData.hS=Q;!G&&this.isPlaying()&&lZG(this);Q5X(this.Kv,this.yU,this.EY(),this.isBackground())&&vx(this);this.publish("progresssync",G);S&&uG(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.P.wY=function(){this.WR("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.P.IR=function(){return this.Q0.IR()}; g.P.BJ=function(){return this.loader?this.loader.BJ():DC(this.tT.schedule,!0)}; g.P.dM=function(G){if(!g.tS(this.playerState,G)){this.logger.debug(function(){return"Setting state "+G.toString()}); var X=new g.wA(G,this.playerState);this.playerState=G;dFZ(this);var Q=!this.qe.length;this.qe.push(X);var R=this.mediaElement&&this.mediaElement.isSeeking();g.Lw(X,1)&&this.loader&&N4S(this.loader);R=X.oldState.state===8&&!R;g.Lw(X,1)&&R&&g.N(this.playerState,8)&&!g.N(this.playerState,64)&&this.loader&&(AL0(this.loader),this.mediaElement&&Oj(this.mediaElement)>=5&&GG7(this.Kv,this.yU)&&vx(this));(R=g.i2(this.tT.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.N(G,1)&&(g.N(G,8)||g.N(G, 16))?this.AZ.start(R):this.AZ.stop();(hw(X,8)<0||g.Lw(X,1024))&&this.W9.stop();!g.Lw(X,8)||this.videoData.yH||g.N(X.state,1024)||this.W9.start();g.N(X.state,8)&&hw(X,16)<0&&!g.N(X.state,32)&&!g.N(X.state,2)&&this.playVideo();g.N(X.state,2)&&bV(this.videoData)&&(this.GJ(this.getCurrentTime()),this.o6(!0));g.Lw(X,2)&&(this.Yk(!0),this.tT.n7()&&this.G("html5_sabr_parse_live_metadata_playback_boundaries")&&c4(this.videoData)&&this.videoData.N&&(R={minst:""+this.videoData.N.Yv,cminst:""+(this.videoData.N.Bn()+ this.q9()),maxst:""+this.videoData.N.Ti,hts:""+this.videoData.N.Yc,cmaxst:""+(this.videoData.N.Zs()+this.q9())},this.Ni("sabrSeekableBoundaries",R)));g.Lw(X,128)&&this.Gi();this.videoData.N&&this.videoData.isLivePlayback&&!this.Dw&&(hw(X,8)<0?EqS(this.videoData.N):g.Lw(X,8)&&this.videoData.N.resume());g0S(this.I6,X);yET(this.Q0,X);if(Q&&!this.U_())try{for(var S=g.e(this.qe),Z=S.next();!Z.done;Z=S.next()){var H=Z.value;RBi(this.dL,H);this.publish("statechange",H)}}finally{this.qe.length=0}}}; g.P.Xa=function(){this.M9.tick("qoes")}; g.P.kY=function(){this.I6.kY()}; g.P.tq=function(G,X,Q,R){a:{var S=this.NW;R=R===void 0?"LICENSE":R;Q=Q.substring(0,256);var Z=j0(X);G==="drm.keyerror"&&this.Ld&&this.Ld.W.keys.length>1&&S.V<96&&(G="drm.sessionlimitexhausted",Z=!1);var H=S.hT.experiments.TT("html5_retry_on_drm_unavailable"),w=S.hT.experiments.TT("html5_retry_on_drm_key_error"),h=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(H&&G==="drm.unavailable"||w&&G==="drm.keyerror"&&!Q.match(h))S.uf("qoe.restart",{retryOnDrmError:1,e:G,detail:Q}),S.uB.rZ(!0);else{if(Z)if(S.videoData.W&& S.videoData.W.video.isHdr())pxe(S,G);else{if(S.uB.WR(G,X,R,Q),lnV(S,{detail:Q}))break a}else S.uf(G,{detail:Q});G==="drm.sessionlimitexhausted"&&(S.Ni("retrydrm",{sessionLimitExhausted:1}),S.V++,t1y(S.uB))}}}; g.P.lWO=function(){var G=this,X=g.i2(this.tT.experiments,"html5_license_constraint_delay"),Q=ni();X&&Q?(X=new g.fU(function(){G.Fd();Xo(G)},X),g.d(this,X),X.start()):(this.Fd(),Xo(this))}; g.P.UQ=function(G){this.publish("heartbeatparams",G)}; g.P.Hf=function(G){this.Ni("keystatuses",Zqw(G));var X="auto",Q=!1;this.videoData.W&&(X=this.videoData.W.video.quality,Q=this.videoData.W.video.isHdr());a:{switch(X){case "highres":case "hd2880":X="UHD2";break;case "hd2160":case "hd1440":X="UHD1";break;case "hd1080":case "hd720":X="HD";break;case "large":case "medium":case "small":case "light":case "tiny":X="SD";break;default:X="";break a}Q&&(X+="HDR")}X=w6(G)?he(G,X):G.V.includes(X);if(this.G("html5_enable_vp9_fairplay")){if(Q)if(G.J){var R;if((R= this.Ld)==null?0:wn(R.N))if((Q=this.Ld)==null)Q=0;else{for(var S=R=void 0,Z=g.e(Q.W.values()),H=Z.next();!H.done;H=Z.next())H=H.value,R||(R=q1y(H,"SD")),S||(S=q1y(H,"AUDIO"));Q.YU({sd:R,audio:S});Q=R==="output-restricted"||S==="output-restricted"}else Q=!X;if(Q){this.Ni("drm",{dshdr:1});pxe(this.NW);return}}else{this.videoData.bb||(this.videoData.bb=!0,this.Ni("drm",{dphdr:1}),this.rZ(!0));return}var w;if((w=this.Ld)==null?0:wn(w.N))return}else if(w=G.J&&X,Q&&!w){pxe(this.NW);return}X||he(G,"AUDIO")&& he(G,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),G=Zqw(G),this.FL?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.G("html5_report_fatal_drm_restricted_error_killswitch")||this.WR("drm.keyerror",2,void 0,"info."+G)):(this.FL=!0,this.uf(new g.YE("qoe.restart",Object.assign({},{retrydrm:1},G))),vx(this),t1y(this)))}; g.P.C6A=function(){if(!this.videoData.yH&&this.mediaElement&&!this.isBackground()){var G="0";this.mediaElement.fu()>0&&Oj(this.mediaElement)>=5&&this.videoData.Y&&this.videoData.Y.N&&(this.dM(BH(this.playerState,1)),V1y(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),G="1");dFZ(this);var X=this.videoData.Y;G={restartmsg:G,mfmt:!aA(this.videoData),mdrm:!(!(X&&X.videoInfos&&X.videoInfos.length&&X.videoInfos[0].sT)||this.Ld),mfmtinfo:!this.videoData.W,prerolls:this.pg()?this.Da.join(","): "0"};if(this.Ld){X=this.Ld;if(X.W.size<=0){var Q="ns;";X.j||(Q+="nr;");X=Q+="ql."+X.Y.length}else X=Zqw(X.W.values().next().value),X=kE(X);G.drmp=X}var R;Object.assign(G,((R=this.loader)==null?void 0:R.L7())||{});var S;Object.assign(G,((S=this.mediaElement)==null?void 0:S.L7())||{});this.Q0.uf("qoe.start15s",kE(G));this.publish("loadsofttimeout")}}; g.P.GJ=function(G){this.videoData.lengthSeconds!==G&&(this.videoData.lengthSeconds=G,Xo(this))}; g.P.Yk=function(G,X){var Q=this;G=G===void 0?!1:G;if(!this.mM)if(OF("att_s","player_att")||cf("att_s",void 0,"player_att"),this.G("use_rta_for_player"))(function(){var S,Z,H,w;return g.F(function(h){switch(h.W){case 1:if(!(S=G)){h.pO(2);break}return g.l(h,g.l3T(),3);case 3:S=!h.N;case 2:if(S)return h.return();g.a0(h,4);Z=AEe(Q.Q0);if(!Z)throw Error();H={};return g.l(h,g.U47((H.cpn=Q.videoData.clientPlaybackNonce,H.encryptedVideoId=Q.videoData.videoId||"",H),3E4),6);case 6:w=h.N;if(Q.mM)throw Error(); if(!w.challenge)throw g.EL(Error("Not sending attestation ping; no attestation challenge string")),Error();Q.mM=!0;var L=[w.challenge];w.error?L.push("r1c="+w.error):w.webResponse&&L.push("r1a="+w.webResponse);var k;((k=w.adblockReporting)==null?void 0:k.reportingStatus)!==void 0&&L.push("r6a="+w.adblockReporting.reportingStatus);var Y;((Y=w.adblockReporting)==null?void 0:Y.broadSpectrumDetectionResult)!==void 0&&L.push("r6b="+w.adblockReporting.broadSpectrumDetectionResult);Z(L.join("&"));cf("att_f", void 0,"player_att");g.OC(h,0);break;case 4:g.cl(h),cf("att_e",void 0,"player_att"),g.rX(h)}})})().then(function(){X==null||X()}); else{var R=new g.VJe(this.videoData);if("c1a"in R.Aw&&!g.LR.isInitialized()){cf("att_wb",void 0,"player_att");this.s1===2&&Math.random()<.01&&g.EL(Error("Botguard not available after 2 attempts"));if(G)return;if(this.s1<5){g.DA(this.RS);this.s1++;return}}(R=g.IyC(R))?(cf("att_f",void 0,"player_att"),NLV(this.Q0,R),this.mM=!0):cf("att_e",void 0,"player_att")}}; g.P.Ru=function(G){G=G===void 0?!1:G;return B4(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.j3()||g.$P(this.videoData))?this.getCurrentTime():this.Zs(G)}; g.P.Rd=function(){return this.Bn()}; g.P.Zs=function(G){return this.I6.Zs(G===void 0?!1:G)}; g.P.Bn=function(){return this.I6.Bn()}; g.P.q9=function(){return this.I6?this.I6.q9():0}; g.P.getStreamTimeOffset=function(){return this.I6?this.I6.getStreamTimeOffset():0}; g.P.FS=function(){var G=0;this.tT.G("web_player_ss_media_time_offset")&&(G=this.getStreamTimeOffset()===0?this.q9():this.getStreamTimeOffset());return G}; g.P.setPlaybackRate=function(G){var X;this.playbackRate!==G&&N6C(this.Kv,(X=this.videoData.Y)==null?void 0:X.videoInfos)&&(this.playbackRate=G,vx(this));this.playbackRate=G;this.mediaElement&&this.mediaElement.setPlaybackRate(G)}; g.P.getPlaybackRate=function(){return this.playbackRate}; g.P.getPlaybackQuality=function(){var G="unknown";if(this.videoData.W&&(G=this.videoData.W.video.quality,G==="auto"&&this.mediaElement)){var X=this.lR();X&&X.videoHeight>0&&(G=Bj(X.videoWidth,X.videoHeight))}return G}; g.P.isHdr=function(){return!!(this.videoData.W&&this.videoData.W.video&&this.videoData.W.video.isHdr())}; g.P.sendVideoStatsEngageEvent=function(G,X){var Q=this.Q0;Q.N?(Q=Kq(Q.N,"engage"),Q.Yc=G,Q.send(X)):X&&X()}; g.P.Ao=function(G){return this.Q0.Ao(G)}; g.P.isAtLiveHead=function(G,X){X=X===void 0?!1:X;return B4(this.videoData)&&(this.UE||X)?this.I6.isAtLiveHead(G):!1}; g.P.zx=function(){var G=this.Zs(),X=this.getCurrentTime(),Q;(Q=!B4(this.videoData))||(Q=this.I6,Q=!(Q.N&&Q.N.Y));return Q||this.j3()||isNaN(G)||isNaN(X)?0:Math.max(0,G-X)}; g.P.dN=function(G){(this.UE=G)||this.W9.stop();this.videoData.N&&(G?this.videoData.N.resume():EqS(this.videoData.N));if(this.loader){var X=this.videoData.G("html5_disable_preload_for_ssdai_with_preroll")&&this.kf()&&this.videoData.isLivePlayback;G&&!X?this.loader.resume():Ht(this,!0)}g.N(this.playerState,2)||G?g.N(this.playerState,512)&&G&&this.dM(FP(this.playerState,512)):this.dM(BH(this.playerState,512));X=this.Q0;X.qoe&&(X=X.qoe,g.nY(X,g.vd(X.provider),"stream",[G?"A":"I"]))}; g.P.j9=function(G){this.Q0.uf("player.exception",kE({n:G.name,m:G.message}))}; g.P.Zn=Gi(22);g.P.Uf=Gi(51);g.P.q1=function(G){this.Q0.q1(G)}; g.P.bj=function(G){this.Q0.bj(G)}; g.P.rf=function(G){this.Q0.rf(G)}; g.P.FA=Gi(28);g.P.Od=Gi(34);g.P.nf=function(G){this.Q0.nf(G)}; g.P.QO=function(G,X,Q,R){this.Q0.QO(G,X,Q,R)}; g.P.pn=function(){this.Ni("hidden",{},!0)}; g.P.kR=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.P.Ec=function(){return this.loader?this.loader.Ec():!0}; g.P.setLoop=function(G){this.loop=G;this.mediaElement&&!g.jJ(this.tT)&&this.mediaElement.setLoop(G)}; g.P.vD=function(){return this.mediaElement&&!g.jJ(this.tT)?this.mediaElement.vD():this.loop}; g.P.mK=function(G){this.Ni("timestamp",{o:G.toString()});this.I6.mK(G)}; g.P.ez=function(G){this.M9.tick(G)}; g.P.jI=function(G){return this.M9.jI(G)}; g.P.Xh=function(G){this.M9.Xh(G)}; g.P.Ni=function(G,X,Q){this.Q0.Ni(G,X,Q===void 0?!1:Q)}; g.P.aY=function(G,X,Q){this.Q0.Ni(G,X,Q===void 0?!1:Q)}; g.P.uf=function(G){this.Q0.uf(G.errorCode,kE(G.details));G=G.errorCode;if(this.videoData.isLivePlayback&&(G==="qoe.longrebuffer"||G==="qoe.slowseek")||G==="qoe.restart"){G=this.loader?KAe(this.loader.videoTrack):{};var X,Q;this.Ni("lasoe",Object.assign(this.loader?KAe(this.loader.audioTrack):{},(X=this.kc)==null?void 0:(Q=X.N)==null?void 0:Q.zB()));var R,S;this.Ni("lvsoe",Object.assign(G,(R=this.kc)==null?void 0:(S=R.W)==null?void 0:S.zB()))}if(this.G("html5_log_centralized_player_time")){var Z;this.Ni("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(Z=this.loader)==null?void 0:Z.currentTime})}}; g.P.Uz=function(G,X,Q){this.Q0.Uz(G,X,Q)}; g.P.QT=function(G,X,Q,R,S,Z,H,w){var h;if((h=this.videoData.N)!=null&&h.isLive){var L=X.playerType===2?X:G,k=G.videoData.videoId,Y=X.videoData.videoId;if(k&&Y){h=this.Q0;if(h.qoe){var M=h.qoe,m=G.cpn,u=X.cpn,r=L.videoData.lL,x=M.provider.videoData.clientPlaybackNonce,c=M.provider.videoData.videoId,z=u!==x&&Y!==c;x=m!==x&&k!==c;M.reportStats();M.adCpn&&M.adCpn!==m||(M.adCpn=x?m:"",M.b7=x?k:"",M.adFormat=x?r:void 0,VAw(M,Z?4:S?2:0,u,Y,R),M.reportStats(),M.adCpn=z?u:"",M.b7=z?Y:"",M.adFormat=z?r:void 0, VAw(M,Z?5:S?3:1,m,k,Q),M.reportStats())}Q=G.cpn;if(h.Y.has(Q)){if(S=h.Y.get(Q),ai(S,!0).send(),r6(S),Q!==h.provider.videoData.clientPlaybackNonce){BLl(S);var B;(B=h.N)==null||zfG(B);h.Y.delete(Q)}}else h.K4=h.provider.videoData.clientPlaybackNonce,h.K4&&h.N&&(h.Y.set(h.K4,h.N),ai(h.N).send(),r6(h.N));B=X.cpn;L=L.videoData;R-=this.FS();if(h.Y.has(B)){R=h.Y.get(B);var V=R.Y&&isNaN(R.C)?ef(R):NaN;R=l2Z(R,!1);isNaN(V)||(R.J=V);R.send()}else R=nzi(h,h.provider,L,R),h.Y.set(B,R),FkZ(R,new g.wA(BH(new g.gO, 8),new g.gO)),O5V(R),(V=h.N)==null||r6(V);h.K4=B;if(this.G("html5_unify_csi_server_stitched_transition_logging")){if(h=this.M9,V=X.cpn,R=this.videoData.clientPlaybackNonce,X=X.videoData,G=(G.cpn===R?"video":"ad")+"_to_"+(V===R?"video":"ad"),G!=="video_to_ad"){R=G==="ad_to_video"?void 0:X;L=R==null?void 0:R.KG;B={};if(X==null?0:X.S)B.cttAuthInfo={token:X.S,videoId:X.videoId};H&&(B.startTime=H);x5(G,B);var p,b,A;H={targetVideoId:(p=X==null?void 0:X.videoId)!=null?p:"empty_video",targetCpn:V,adVideoId:(b= R==null?void 0:R.videoId)!=null?b:"empty_video",adClientPlaybackNonce:(A=L==null?void 0:L.cpn)!=null?A:R==null?void 0:R.clientPlaybackNonce};L&&(H.adBreakType=L.adBreakType,H.adType=L.adType);g.EF(H,G);ju(h,w,G)}}else p=this.M9,A=this.videoData.clientPlaybackNonce,b=X.videoData,A=(G.cpn===A?"video":"ad")+"_to_"+(X.cpn===A?"video":"ad"),G={},b.S&&(G.cttAuthInfo={token:b.S,videoId:b.videoId}),H&&(G.startTime=H),x5(A,G),g.EF({targetVideoId:b.videoId,targetCpn:X.cpn,isSsdai:!0},A),H||ju(p,w,A)}}else this.logger.N(360717806, "SSTEvent for nonSS")}; g.P.E2=function(){var G=this.Sz,X=G.ju;G.ju=[];return X}; g.P.MB=function(G){this.videoData.H7=!0;this.uf(new g.YE("sabr.fallback",G));this.rZ(!0)}; g.P.Gy=function(G,X){this.videoData.HG=!0;if(X===void 0||X)this.uf(new g.YE("qoe.restart",G)),this.rZ(!0)}; g.P.Bq=function(G){this.Ni("sdai",{aftimeout:G});this.uf(new g.YE("ad.fetchtimeout",{timeout:G}))}; g.P.TN=function(G,X){this.Ni("timelineerror",G);G=new g.YE("dai.timelineerror",G);X?this.WR("dai.timelineerror",1,"RETRYABLE_ERROR",kE(G.details)):this.uf(G)}; g.P.HO=function(){return g.vd(this.Q0.provider)}; g.P.getPlayerSize=function(){return this.XR.getPlayerSize()}; g.P.uF=function(){return this.XR.uF()}; g.P.gZ=function(){return this.M9}; g.P.nW=function(){return this.Sz.nW()}; g.P.getVolume=function(){return this.Sz.getVolume()}; g.P.Kp=function(){return this.Sz.Kp()}; g.P.isMuted=function(){return this.Sz.isMuted()}; g.P.Gz=function(){return this.Sz.Gz()}; g.P.M4=function(){this.Dw=!0}; g.P.G=function(G){return this.tT.G(G)}; g.P.IE=function(G,X,Q,R,S){this.Ni("xvt",{m:G,g:X?1:0,tt:Q?1:0,np:R?1:0,c:S})}; g.P.Ak=function(){var G;(G=this.loader)==null||G.resume()}; g.P.kf=function(){return g.rH(this.Da,"ad")}; g.P.FJ=function(){var G=this.getCurrentTime(),X=G-this.q9();var Q=this.mediaElement?wO(this.mediaElement.wL()):0;Q=Math.floor(Math.max(Q-X,0))+100;var R;return((R=this.loader)==null?0:R.FJ(X,Q))?(this.Ni("sdai",{skipad:1,ct:X.toFixed(3),adj:Q.toFixed(3)}),c4(this.videoData)&&this.loader.seek(X+Q,{seekSource:89,nY:"videoplayer_skipServerStitchedAd"}),D67(this.I6,G),!0):!1}; g.P.n7=function(){return this.tT.n7()}; g.P.lA=function(){if(this.G("html5_generate_content_po_token"))return this.videoData.Yb||"";this.Sz.NE();return this.tT.Ge||""}; g.P.pR=function(){if(this.videoData.videoId)return this.videoData.Tp}; g.P.iL=function(){return this.videoData.videoId}; g.P.Bc=function(){return this.Sz.Oh}; g.P.Ik=function(){return this.O9}; g.P.Ji=function(){return this.Sz.Ji()}; g.P.xs=function(G,X,Q){this.dM(BH(this.playerState,16,Q));this.I6.xs(G,X)}; g.P.prefetchKeyPlay=function(){}; g.P.P8=function(){this.I6.P8()}; g.P.Ts=function(G,X){var Q=this.G("html5_generate_content_po_token")?this.videoData:void 0;this.Sz.Ts(G,X,Q)}; g.P.GA=function(G,X){this.Q0.GA(G,X)}; g.P.nm=function(){return this.Q0.nm()}; g.P.SO=function(){return this.videoData.hd}; g.P.yu=function(){return this.Sz.yu()}; g.P.Yh=function(){return this.Sz.Yh(this)}; g.P.Hq=function(){this.IF=!0}; g.P.V2=function(G){var X;(X=this.loader)==null||X.V2(G)};g.T(pGG,kH);g.T(wL,TT);wL.prototype.N=function(G){G&&KE(this,this.U.getLoopVideo());this.U.logVisibility(this.element,G)}; wL.prototype.logClick=function(){this.U.logClick(this.element)}; wL.prototype.onLoopChange=function(G){KE(this,G)}; wL.prototype.W=function(G){this.U.setLoopVideo(G)};g.T(y2i,kH);g.T(fZi,kH);g.P=fZi.prototype;g.P.seekToChapterWithAnimation=function(G){var X=this;if(g.Ua(this.api)&&!(G<0)){var Q=this.api.getVideoData(),R=Q.gL;if(R&&G=0)return;X=~X;g.Wn(this.items,X,0,G);sM(this.menuItems.element,G.element,X)}G.subscribe("size-change",this.i4,this);this.menuItems.publish("size-change")}; g.P.SS=function(){KVZ(this)||this.items[0].focus();return!0}; g.P.vV=function(){this.items[this.items.length-1].focus();return!0}; g.P.Md=function(G){G.unsubscribe("size-change",this.i4,this);this.U_()||(g.Ev(this.items,G),this.menuItems.element.removeChild(G.element),this.menuItems.publish("size-change"))}; g.P.i4=function(){this.menuItems.publish("size-change")}; g.P.focus=function(){for(var G=0,X=0;X1&&g.E8(this)}; g.P.td=function(){EbT(this);this.rb&&(rMG(this),g.XD(this.element,this.size))}; g.P.jc=function(){var G=this.N.pop();aBw(this,G,this.N[this.N.length-1],!0)}; g.P.vI=function(G){if(!G.defaultPrevented)switch(G.keyCode){case 27:this.aW();G.preventDefault();break;case 37:this.N.length>1&&this.jc();G.preventDefault();break;case 39:G.preventDefault()}}; g.P.focus=function(){this.N.length&&this.N[this.N.length-1].focus()}; g.P.zT=function(){g.Qn.prototype.zT.call(this);this.V&&this.V.dispose();this.S&&this.S.dispose()};g.T(xz,g.rL);xz.prototype.open=function(G,X){this.initialize(G.items)&&this.Pn(X,!!X)}; xz.prototype.initialize=function(G){g.eP(this.dS);if(G===void 0||G.length===0)return!1;var X=G.length;G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())this.jj(Q.value,X--);return!0}; xz.prototype.jj=function(G,X){G.menuNavigationItemRenderer?zGl(this,G.menuNavigationItemRenderer,X):G.menuServiceItemRenderer&&cMG(this,G.menuServiceItemRenderer,X)};g.T(O8,s8);g.P=O8.prototype;g.P.kQ=function(G){G.target!==this.dismissButton.element&&G.target!==this.overflowButton.element&&(this.MI(),this.onClickCommand&&this.U.E_("innertubeCommand",this.onClickCommand))}; g.P.zA=function(){this.enabled=!1;this.j.hide()}; g.P.iq=function(){return!!this.N&&this.enabled}; g.P.onVideoDataChange=function(G,X){this.fX(X);if(this.N){this.rp();a:if(!this.isCounterfactual){var Q,R,S;this.banner.update({title:(Q=this.N)==null?void 0:Q.title,subtitle:(R=this.N)==null?void 0:R.subtitle,metadata:(S=this.N)==null?void 0:S.metadataText});var Z;this.onClickCommand=g.y((Z=this.N)==null?void 0:Z.onTap,OL);var H;if(G=g.y((H=this.N)==null?void 0:H.onOverflow,OL))this.J=g.y(G,sL3);var w;if((w=this.N)==null?0:w.thumbnailImage){var h,L;H=((h=this.N)==null?void 0:(L=h.thumbnailImage)== null?void 0:L.sources)||[];if(H.length===0)break a;this.thumbnailImage.update({url:H[0].url})}else{var k;if((k=this.N)==null?0:k.thumbnailIconName){var Y;this.thumbnailIcon.update({icon:(Y=this.N)==null?void 0:Y.thumbnailIconName})}}var M;this.shouldShowOverflowButton=!((M=this.N)==null||!M.shouldShowOverflowButton);var m;this.shouldHideDismissButton=!((m=this.N)==null||!m.shouldHideDismissButton)}var u;this.banner.element.setAttribute("aria-label",((u=this.N)==null?void 0:u.a11yLabel)||"");var r; this.wb=(r=this.N)==null?void 0:r.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;U$y(this)}}; g.P.D9_=function(){this.isVisible=!0;U$y(this)}; g.P.aWb=function(){this.isVisible=!1;U$y(this)}; g.P.ob=function(){s8.prototype.ob.call(this);this.W&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.P.MI=function(){s8.prototype.MI.call(this,!1);this.W&&this.U.logClick(this.banner.element)}; g.P.Kt=function(G){this.S||(this.S=new xz(this.U),g.d(this,this.S));var X,Q;if((X=this.J)==null?0:(Q=X.menu)==null?0:Q.menuRenderer)this.S.open(this.J.menu.menuRenderer,G.target),G.preventDefault()}; g.P.fX=function(){}; g.P.rp=function(){}; g.P.zT=function(){this.U.lf("suggested_action_view_model");s8.prototype.zT.call(this)};g.T(zG,O8); zG.prototype.fX=function(G){var X,Q,R;this.productUpsellSuggestedActionViewModel=g.y((X=G.getWatchNextResponse())==null?void 0:(Q=X.playerOverlays)==null?void 0:(R=Q.playerOverlayRenderer)==null?void 0:R.suggestedActionViewModel,CEk);var S;if((S=this.productUpsellSuggestedActionViewModel)==null?0:S.content){var Z;this.N=g.y((Z=this.productUpsellSuggestedActionViewModel)==null?void 0:Z.content,oh3)}var H,w;if(this.W=!!((H=this.productUpsellSuggestedActionViewModel)==null?0:(w=H.loggingDirectives)==null? 0:w.trackingParams)){var h,L;this.U.setTrackingParams(this.banner.element,((h=this.productUpsellSuggestedActionViewModel)==null?void 0:(L=h.loggingDirectives)==null?void 0:L.trackingParams)||null)}var k;this.isCounterfactual=!((k=this.productUpsellSuggestedActionViewModel)==null||!k.isCounterfactualServing)}; zG.prototype.rp=function(){var G=[],X,Q=g.e(((X=this.productUpsellSuggestedActionViewModel)==null?void 0:X.ranges)||[]);for(X=Q.next();!X.done;X=Q.next()){var R=X.value;R&&(X=Number(R.startTimeMilliseconds),R=Number(R.endTimeMilliseconds),isNaN(X)||isNaN(R)||G.push(new g.yG(X,R,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.PZ(G)};g.T(lBX,kH);g.T(ct,kH);ct.prototype.onVideoDataChange=function(G,X){var Q=this;if(!hL(X)&&(G==="newdata"&&FVy(this),this.N&&G==="dataloaded")){this.N=!1;var R;yX(p_(cM(this.api.Z(),(R=this.api.getVideoData())==null?void 0:g.qY(R)),function(S){WVX(Q,S)}),function(){Q.N=!0})}}; ct.prototype.Ub=function(){var G=this;if(g.jJ(this.api.Z())){var X,Q=g.z$(this.api.Z(),(X=this.api.getVideoData())==null?void 0:g.qY(X));return p_(VX(Q),function(R){var S=iG();GT(S,R);return G.api.Ub(S)})}return VX(this.api.Ub())};g.T(g.U8,g.qz);g.P=g.U8.prototype;g.P.open=function(){g.a5(this.gb,this.JW)}; g.P.mI=function(G){pw0(this);var X=this.options[G];X&&(X.element.setAttribute("aria-checked","true"),this.wM(this.jN(G)),this.Y=G)}; g.P.gJ=function(G){g.eP(this.JW);for(var X={},Q=!1,R=0;R=0?this.N.playbackRate:1}catch(G){return 1}}; g.P.setPlaybackRate=function(G){this.getPlaybackRate()!==G&&(this.N.playbackRate=G);return G}; g.P.vD=function(){return this.N.loop}; g.P.setLoop=function(G){this.N.loop=G}; g.P.canPlayType=function(G,X){return this.N.canPlayType(G,X)}; g.P.isPaused=function(){return this.N.paused}; g.P.isSeeking=function(){return this.N.seeking}; g.P.isEnded=function(){return this.N.ended}; g.P.Vs=function(){return this.N.muted}; g.P.Gk=function(G){Tg();this.N.muted=G}; g.P.SR=function(){return this.N.played||RT([],[])}; g.P.wL=function(){try{var G=this.N.buffered}catch(X){}return G||RT([],[])}; g.P.Tz=function(){return this.N.seekable||RT([],[])}; g.P.Dv=function(){var G=this.N;return G.getStartDate?G.getStartDate():null}; g.P.getCurrentTime=function(){return this.N.currentTime}; g.P.setCurrentTime=function(G){this.N.currentTime=G}; g.P.getDuration=function(){return this.N.duration}; g.P.load=function(){var G=this.N.playbackRate;try{this.N.load()}catch(X){}this.N.playbackRate=G}; g.P.pause=function(){this.N.pause()}; g.P.play=function(){var G=this.N.play();if(!G||!G.then)return null;G.then(void 0,function(){}); return G}; g.P.fu=function(){return this.N.readyState}; g.P.xx=function(){return this.N.networkState}; g.P.iE=function(){return this.N.error?this.N.error.code:null}; g.P.uT=function(){return this.N.error?this.N.error.message:""}; g.P.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.N instanceof window.HTMLVideoElement&&this.N.getVideoPlaybackQuality)return this.N.getVideoPlaybackQuality();if(this.N){var G=this.N,X=G.webkitDroppedFrameCount;if(G=G.webkitDecodedFrameCount)return{droppedVideoFrames:X||0,totalVideoFrames:G}}return{}}; g.P.HF=function(){return!!this.N.webkitCurrentPlaybackTargetIsWireless}; g.P.jT=function(){return!!this.N.webkitShowPlaybackTargetPicker()}; g.P.togglePictureInPicture=function(){var G=this.N,X=window.document;window.document.pictureInPictureEnabled?this.N!==X.pictureInPictureElement?G.requestPictureInPicture():X.exitPictureInPicture():sA()&&G.webkitSetPresentationMode(G.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.P.oD=function(){var G=this.N;return new g.Db(G.offsetLeft,G.offsetTop)}; g.P.getSize=function(){return g.Qj(this.N)}; g.P.setSize=function(G){g.XD(this.N,G)}; g.P.getVolume=function(){return this.N.volume}; g.P.setVolume=function(G){Tg();this.N.volume=G}; g.P.U2=function(G){this.C[G]||(this.N.addEventListener(G,this.listener),this.C[G]=this.listener)}; g.P.setAttribute=function(G,X){this.N.setAttribute(G,X)}; g.P.removeAttribute=function(G){this.N.removeAttribute(G)}; g.P.hasAttribute=function(G){return this.N.hasAttribute(G)}; g.P.R2=Gi(61);g.P.DB=Gi(63);g.P.RH=Gi(65);g.P.zz=Gi(67);g.P.uC=function(){return YL(this.N)}; g.P.Ki=function(G){g.Gk(this.N,G)}; g.P.CJ=function(G){return g.Aj(this.N,G)}; g.P.Ae=function(){return g.Ks(document.body,this.N)}; g.P.audioTracks=function(){var G=this.N;if("audioTracks"in G)return G.audioTracks}; g.P.zT=function(){for(var G=g.e(Object.keys(this.C)),X=G.next();!X.done;X=G.next())X=X.value,this.N.removeEventListener(X,this.C[X]);Ej.prototype.zT.call(this)}; g.P.di=function(G){this.N.disableRemotePlayback=G};g.T(f5,g.f);g.T(Nd,g.f);Nd.prototype.show=function(){g.f.prototype.show.call(this);this.GT()}; Nd.prototype.hide=function(){g.f.prototype.hide.call(this);this.delay.stop();this.V.stop()}; Nd.prototype.GT=function(){var G=(0,g.TB)(),X=iIV(this.PM);D2(this.N,X.bandwidth_samples);D2(this.J,X.network_activity_samples);D2(this.Y,X.live_latency_samples);D2(this.W,X.buffer_health_samples);var Q={};X=g.e(Object.entries(X));for(var R=X.next();!R.done;R=X.next()){var S=g.e(R.value);R=S.next().value;S=S.next().value;this.T[R]!==S&&(Q[R]=" "+String(S));this.T[R]=S}this.update(Q);G=(0,g.TB)()-G>25?5E3:500;this.delay.start(G)}; Nd.prototype.j=function(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.V.start(2E4)};g.T(QRU,kH);g.T(AE,g.I);AE.prototype.N=function(){var G=(0,g.TB)()-this.startTime;G=Gthis.V[G])&&(this.N=G,this.x4())}; g.P.onCueRangeExit=function(G){var X=myU(this,G);X&&this.N===G&&this.api.E_("innertubeCommand",X);b3(this);this.N=void 0}; g.P.ZU=function(G){this.Y=G}; g.P.Bw=function(){this.x4();this.Y=void 0}; g.P.x4=function(){if(this.N!==void 0){var G=(G=$z(this,this.N))&&G.onCueRangeEnter?c8(G.onCueRangeEnter):void 0;var X=$z(this,this.N);a:if(X&&X.additionalTrigger){var Q=g.e(X.additionalTrigger);for(var R=Q.next();!R.done;R=Q.next())if(R=R.value,R.type){var S=void 0,Z=void 0;if((S=this.DC[R.type])==null?0:S((Z=R.args)!=null?Z:{})){Q=!0;break a}}Q=!1}else Q=!0;G&&Q&&(this.api.E_("innertubeCommand",G),o9Z(this,X),this.V[this.N]!==void 0&&this.V[this.N]++,this.j=!0)}}; g.P.zT=function(){this.timelyActions=this.Y=this.N=this.videoId=void 0;this.V={};this.eN();b3(this);kH.prototype.zT.call(this)};g.T(sRy,kH);g.T(vt,TT);vt.prototype.V=function(G){this.Y(G?2:1);this.U.publish("audiopreferencechange")}; vt.prototype.RC=function(){var G=this.U.getPresentingPlayerType();G===2||G===3?(this.N=!1,this.gb.Md(this)):this.U.G("html5_enable_new_audio_settings_menu")?(G=this.getVoiceBoostState(),G!==1?(G===0?(KE(this,this.W()===2),this.setEnabled(!0)):(KE(this,!1),this.setEnabled(!1)),this.N||(this.gb.jj(this),this.N=!0)):this.N&&(this.gb.Md(this),this.N=!1)):this.N||(G=this.hasVoiceBoostAudioTrack(),this.setEnabled(G),G=this.W()===2&&G,KE(this,G),this.gb.jj(this),this.N=!0)}; vt.prototype.zT=function(){this.gb.Md(this);TT.prototype.zT.call(this)};g.T(KCG,kH);g.P=KCG.prototype;g.P.getVoiceBoostUserPreference=function(){return this.N}; g.P.setVoiceBoostUserPreference=function(G){this.api.Ni("vb_set",{pref:G});g.E5("yt-player-voice-boost",G);G!==this.N&&(this.N=G,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.eC())}; g.P.hasVoiceBoostAudioTrack=function(){var G,X,Q=(G=this.api.getVideoData())==null?void 0:(X=G.Y)==null?void 0:X.N;return Q?p0(Q,function(R){var S;return((S=R.audio)==null?void 0:S.W)===!0}):!1}; g.P.getVoiceBoostState=function(){return this.api.Cp(3)}; g.P.updateEnvironmentData=function(){this.api.Z().A8=this.N};var Uyi=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.T(GK,kH);GK.prototype.zT=function(){this.J&&(g.kD(this.J),this.J=void 0);kH.prototype.zT.call(this)}; GK.prototype.NE=function(){(this.W?!this.N:this.Y)&&QF(this)}; GK.prototype.lF=function(G,X,Q){var R=this;if(rmU(G)){var S=Q||"";if(this.N)X=R6(this,S),ap7(G,X);else{var Z=new g.wh;X.push(Z.promise);this.C.promise.then(function(){var H=R6(R,S);ap7(G,H);Z.resolve()})}}}; GK.prototype.o_=function(G){var X=this;if(this.W||this.Y)G.Yb=R6(this,G.videoId),this.N||(this.V=new aT,this.C.promise.then(function(){X.M9.jI("pot_if");G.Yb=R6(X,G.videoId)}))};g.T(g.Zf,g.f);g.Zf.prototype.select=function(){this.api.mZ(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.QS||void 0)&&this.api.logClick(this.element)}; g.Zf.prototype.onClick=function(G){if(g.Jn(this.api.Z())&&this.api.G("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var X=this.suggestion.Iu(),Q={};g.NY(this.api,Q);X=g.on(X,Q);g.rU(X,this.api,G)}else g.ej(G,this.api,this.W,this.suggestion.sessionData||void 0)&&this.select()}; g.Zf.prototype.onKeyPress=function(G){switch(G.keyCode){case 13:case 32:G.defaultPrevented||(this.select(),G.preventDefault())}}; g.Zf.prototype.onVideoDataChange=function(){var G=this.api.getVideoData(),X=this.api.Z();this.W=G.KY?!1:X.V};g.T(tqV,g.f);g.P=tqV.prototype;g.P.zT=function(){this.hide();g.e8(this.V);g.Q0(this.stills);this.stills.length=0;this.W&&this.W.removeEventListener("click",this.CX);this.Y&&this.Y.removeEventListener("click",this.Ka);this.N&&this.N.removeEventListener("click",this.Ka);g.f.prototype.zT.call(this)}; g.P.Ka=function(G){this.T&&this.T(G)}; g.P.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var G,X,Q,R,S;var Z=(((G=this.videoData)==null?0:(X=G.suggestions)==null?0:X.length)?(Q=this.videoData)==null?void 0:Q.suggestions:((R=this.videoData)==null?0:g.KL(R))?[(S=this.videoData)==null?void 0:g.KL(S)]:[]).slice(0,18);if((G=this.j)&&this.J&&this.S)if(g.Pq(G),Z.length)for(this.stills.length>Z.length&&g.Q0(this.stills.splice(Z.length)),this.stills.length=Z.length,X=0;X=0;G--)this.features[G].dispose();this.features.length=0;g.I.prototype.zT.call(this)};fpG.prototype.reset=function(){this.N=this.W=NaN};g.P=DyG.prototype;g.P.reset=function(){KJ(this.timerName)}; g.P.tick=function(G,X){aa(G,X,this.timerName)}; g.P.jI=function(G){return zC(G,void 0,this.timerName)}; g.P.Xh=function(G){g.GZ(G,void 0,this.timerName)}; g.P.infoGel=function(G){g.EF(G,this.timerName)};g.T(n9C,g.ic);g.P=n9C.prototype;g.P.MW=function(G){return this.loop||!!G||this.index+1=0}; g.P.setShuffle=function(G){this.shuffle=G;G=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var X=0;X0)||ld(this,1,!0)}; g.P.bK=function(){this.S=!0;this.N.Ds(this.C);this.C=this.N.B(document,"mouseup",this.tI)}; g.P.tI=function(){this.S=!1;ld(this,8,!1);this.N.Ds(this.C);this.C=this.N.B(this.target,"mousedown",this.bK)}; g.P.d0=function(G){if(G=(G=G.changedTouches)&&G[0])this.DC=G.identifier,this.N.Ds(this.T),this.T=this.N.B(this.target,"touchend",this.uv,void 0,!0),ld(this,1024,!0)}; g.P.uv=function(G){if(G=G.changedTouches)for(var X=0;X1280||S>720)if(X=R.yJ("maxresdefault.jpg"))break;if(Z>640||S>480)if(X=R.yJ("maxresdefault.jpg"))break;if(Z>320||S>180)if(X=R.yJ("sddefault.jpg")||R.yJ("hqdefault.jpg")||R.yJ("mqdefault.jpg"))break;if(X=R.yJ("default.jpg"))break}g.eb(G)&&(G=new Image,G.addEventListener("load", function(){wey()}),G.src=X?X:"",this.api.gZ().tick("ftr")); this.V.style.backgroundImage=X?"url("+X+")":""};g.T(g.VF,g.f);g.VF.prototype.resize=function(){}; g.VF.prototype.W=function(G){var X=this;this.Y=!1;B5w(this);var Q=G.Qy,R=this.api.Z();Q!=="GENERIC_WITHOUT_LINK"||R.S?Q==="TOO_MANY_REQUESTS"?(R=this.api.getVideoData(),this.wM(W6(this,"TOO_MANY_REQUESTS_WITH_LINK",R.Iu(),void 0,void 0,void 0,!1))):Q!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||R.S?this.api.Z().G("html5_enable_bandaid_error_screen")&&Q==="HTML5_SPS_UMP_STATUS_REJECTED"&&!R.S?(R=R.hostLanguage,G="//support.google.com/youtube?p=videoError",R&&(G=g.on(G,{hl:R})),this.wM(W6(this,"HTML5_SPS_UMP_STATUS_REJECTED", G))):this.api.Z().G("enable_adb_handling_in_sabr")&&Q==="BROWSER_OR_EXTENSION_ERROR"&&!R.S?(R=R.hostLanguage,G="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",R&&(G=g.on(G,{hl:R})),this.wM(W6(this,"BROWSER_OR_EXTENSION_ERROR",G))):this.wM(g.I6(G.errorMessage)):this.wM(W6(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(G=R.hostLanguage,Q="//support.google.com/youtube/?p=player_error1",G&&(Q=g.on(Q, {hl:G})),this.wM(W6(this,"GENERIC_WITH_LINK_AND_CPN",Q,!0)),R.C7&&!R.V&&law(this,function(Z){if(g.ej(Z,X.api,!oI(X.api.Z()))){Z={as3:!1,html5:!0,player:!0,cpn:X.api.getVideoData().clientPlaybackNonce};var H=X.api;H.tS("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:Z});H.isFullscreen()&&H.toggleFullscreen()}})); if(this.Y){var S=this.VH("ytp-error-link");S&&(this.api.createClientVe(S,this,216104),this.api.logVisibility(S,!0),law(this,function(){X.api.logClick(S)}))}}; var URl=/([^<>]+)<\/a>/;g.T(F2l,g.f);F2l.prototype.k_=function(G,X,Q){Q=Q===void 0?!1:Q;switch(X){case 1:pb(this,G,this.Y,Q);break;case 2:pb(this,G,this.V,Q);break;case 3:pb(this,G,this.N,Q);break;case 4:pb(this,G,this.W,Q)}};g.T(CgV,g.f);g.P=CgV.prototype;g.P.onClick=function(G){this.innertubeCommand?(this.U.E_("innertubeCommand",this.innertubeCommand),G.preventDefault()):g.ej(G,this.U,!0);this.U.logClick(this.element)}; g.P.onVideoDataChange=function(G,X){VT0(this,X);this.FG&&IaT(this,this.FG)}; g.P.AI=function(G){var X=this.U.getVideoData();this.videoId!==X.videoId&&VT0(this,X);this.N&&IaT(this,G.state);this.FG=G.state}; g.P.Pn=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.P.aW=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.T(yF,g.f);yF.prototype.hide=function(){this.N.stop();this.message.style.display="none";g.f.prototype.hide.call(this)}; yF.prototype.onStateChange=function(G){this.qx(G.state)}; yF.prototype.qx=function(G){if(g.N(G,128)||this.api.Ik())var X=!1;else{var Q;X=this.api.G("web_watch_enable_multiview_manager")&&((Q=this.api.getVideoData())==null?0:hL(Q))?!1:g.N(G,16)||g.N(G,1)?!0:!1}X?this.N.start():this.hide()}; yF.prototype.W=function(){this.message.style.display="block"};g.T(fb,g.Qn);fb.prototype.onMutedAutoplayChange=function(G){this.Y&&(G?(dRZ(this),this.Pn()):(this.N&&this.logClick(),this.aW()))}; fb.prototype.Vu=function(G){this.api.isMutedByMutedAutoplay()&&g.Lw(G,2)&&this.aW()}; fb.prototype.onClick=function(){this.api.unMute();this.logClick()}; fb.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.T(g.Df,g.KP);g.P=g.Df.prototype;g.P.init=function(){var G=this.api,X=G.getPlayerStateObject();this.EU=G.getPlayerSize();this.dM(X);this.Ol();this.EM();this.api.publish("basechromeinitialized",this);this.sO()&&this.api.publish("standardControlsInitialized")}; g.P.onVideoDataChange=function(G,X){var Q=this.AJ!==X.videoId;if(Q||G==="newdata")G=this.api,G.isFullscreen()||(this.EU=G.getPlayerSize());Q&&(this.AJ=X.videoId,Q=this.X9,Q.Mi=3E3,ld(Q,512,!0),this.Ol());this.api.G("web_render_jump_buttons")&&X.showSeekingControls&&(this.VW=572)}; g.P.jWp=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.P.ww=function(){var G=this.api.dJ()&&this.api.sW(),X=this.api.rD();return this.jD||G||this.OO||X}; g.P.Kx=function(){var G=!this.ww();g.S_(this.api.getRootNode(),"ytp-menu-shown",!G)}; g.P.zy=function(G){try{if(!g.Ks(this.api.getRootNode(),G))return!1}catch(X){return!1}for(;G&&!IVC(G);)G=G===this.api.getRootNode()?null:G.parentElement||null;return!!G}; g.P.jP=function(G){var X=this.api.getRootNode();g.S_(X,"ytp-autohide",G);g.S_(X,"ytp-autohide-active",!0);this.Ar.start(G?250:100);G&&(this.T5=!1,g.QD(X,"ytp-touch-mode"));this.bY=!G;this.api.hk(!G);this.api.G("delhi_modern_web_player")&&this.api.publish("autohideupdate",G)}; g.P.Hw=function(){var G=this.api.getRootNode();g.S_(G,"ytp-autohide-active",!1)}; g.P.uGT=function(){this.ZR=!0}; g.P.tGO=function(G){if(this.api.Z().G("player_doubletap_to_seek")||this.api.Z().J)this.ZR=!1,this.K8&&this.Ds(this.K8),this.Pl===0&&A_(this,G)?(this.wQ(),this.iV.start(),this.K8=this.B(this.api.mp(),"touchmove",this.uGT,void 0,!0)):this.iV.stop();faG(this)&&A_(this,G)&&!this.api.Z().J&&pFG(this);var X=this.gi.M1();if(!g.Jn(this.api.Z())&&nj&&DRl(this,G))X&&G.preventDefault();else if(this.T5=!0,g.Gk(this.api.getRootNode(),"ytp-touch-mode"),this.X9.iy(),this.api.Z().G("player_doubletap_to_seek")||this.api.Z().J)if(X= this.api.getPlayerStateObject(),!(!this.api.Tg()||g.N(X,2)&&g.pC(this.api)||g.N(X,64))){X=Date.now()-this.zd;this.Pl+=1;if(X<=350){this.ZL=!0;X=this.api.getPlayerSize().width/3;var Q=this.api.getRootNode().getBoundingClientRect(),R=G.targetTouches[0].clientX-Q.left;Q=G.targetTouches[0].clientY-Q.top;var S=(this.Pl-1)*10;R>0&&RX*2&&R=650,R=G.width<528;this.X9.resize();if(this.api.G("web_player_use_screen_width_for_big_mode")){var S,Z=G.width>=((S=g.i2(this.api.Z().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?S:2E3);g.S_(X,"ytp-big-mode",Z)}g.S_(X,"ytp-fullscreen",this.api.isFullscreen());g.S_(X,"ytp-large-width-mode",Q);this.api.G("delhi_modern_web_player")?g.S_(X,"ytp-xsmall-width-mode",R):g.S_(X,"ytp-small-mode",this.lT()); g.S_(X,"ytp-tiny-mode",this.d1());g.S_(X,"ytp-big-mode",this.Yu());this.QG&&this.QG.resize(G)}; g.P.Vu=function(G){this.dM(G.state);this.Ol()}; g.P.kZ=Gi(3);g.P.uS=function(){var G=!!this.AJ&&!this.api.VU()&&!this.fK,X=this.api.getPresentingPlayerType()===2,Q=this.api.Z();if(X)return Q=OS(this.api.p7()),G&&(Q&&Q.player?G=(G=Q.player.getVideoData(2))?G.isListed&&!g.kU(Q.player.Z()):!1:(qQ("showInfoBarDuringAd: this is null"),G=!1)),G;X=Q.G("web_player_imax_theater_mode")&&this.api.Qu();return G&&(Q.fQ||X||this.api.isFullscreen()||Q.Fs)}; g.P.Ol=function(){var G=this.uS();this.GO!==G&&(this.GO=G,g.S_(this.api.getRootNode(),"ytp-hide-info-bar",!G))}; g.P.dM=function(G){var X=G.isCued()||this.api.pg()&&this.api.getPresentingPlayerType()!==3;X!==this.isCued&&(this.isCued=X,this.jm&&this.Ds(this.jm),this.jm=this.B(this.api.mp(),"touchstart",this.tGO,void 0,X));var Q=this.X9,R=G.isPlaying()&&!g.N(G,32)||this.api.KJ();ld(Q,128,!R);Q=this.X9;R=this.api.getPresentingPlayerType()===3;ld(Q,256,R);Q=this.api.getRootNode();g.N(G,2)?R=[yd.ENDED]:(R=[],g.N(G,8)?R.push(yd.PLAYING):g.N(G,4)&&R.push(yd.PAUSED),g.N(G,1)&&!g.N(G,32)&&R.push(yd.BUFFERING),g.N(G, 32)&&R.push(yd.SEEKING),g.N(G,64)&&R.push(yd.UNSTARTED));g.$4(this.uY,R)||(g.Rt(Q,this.uY),this.uY=R,g.Xj(Q,R));R=this.api.Z();var S=g.N(G,2);a:{var Z=this.api.Z();var H=Z.controlsType;switch(H){case "2":case "0":Z=!1;break a}Z=H==="3"&&!g.N(G,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:FoL(OS(this.api.p7())))||this.api.rD()||g.Jn(Z)&&this.api.getPresentingPlayerType()===2?!1:!0}g.S_(Q,"ytp-hide-controls",!Z);g.S_(Q,"ytp-native-controls",R.controlsType==="3"&&!X&&!S&&!this.OO);g.N(G, 128)&&!g.Jn(R)?(this.QG||(this.QG=new g.VF(this.api),g.d(this,this.QG),g.$6(this.api,this.QG.element,4)),this.QG.W(G.qG),this.QG.show()):this.QG&&(this.QG.dispose(),this.QG=null)}; g.P.Vc=function(){return this.api.dJ()&&this.api.sW()?(this.api.qr(!1,!1),!0):this.api.VU()?(g.yY(this.api,!0),!0):!1}; g.P.onMutedAutoplayChange=function(G){this.OO=G;this.Kx()}; g.P.Yu=function(){return!1}; g.P.lT=function(){return!this.Yu()&&(this.api.getPlayerSize().width=0&&X.left>=0&&X.bottom>X.top&&X.right>X.left?X:null;X=this.size;G=G.clone();X=X.clone();R&&(H=X,S=5,(S&65)==65&&(G.x=R.right)&&(S&=-2),(S&132)==132&&(G.y=R.bottom)&&(S&=-5),G.xR.right&&(H.width=Math.min(R.right-G.x,Z+H.width-R.left),H.width=Math.max(H.width,0))),G.x+H.width>R.right&&S&1&&(G.x=Math.max(R.right-H.width,R.left)),G.yR.bottom&&(H.height=Math.min(R.bottom-G.y,Z+H.height-R.top),H.height=Math.max(H.height,0))),G.y+H.height>R.bottom&&S&4&&(G.y=Math.max(R.bottom-H.height,R.top)));R=new g.ps(0,0,0,0);R.left=G.x;R.top=G.y;R.width= X.width;R.height=X.height;g.vq(this.element,new g.Db(R.left,R.top));g.e8(this.Y);this.Y.B(RG(this),"contextmenu",this.x9H);this.Y.B(this.U,"fullscreentoggled",this.onFullscreenToggled);this.Y.B(this.U,"pageTransition",this.Hb)}; g.P.x9H=function(G){if(!G.defaultPrevented){var X=PA(G);g.Ks(this.element,X)||this.aW();this.U.Z().disableNativeContextMenu&&G.preventDefault()}}; g.P.onFullscreenToggled=function(){this.aW();uny(this)}; g.P.Hb=function(){this.aW()};g.T(Qm,g.f);Qm.prototype.onClick=function(){var G=this,X,Q,R,S;return g.F(function(Z){if(Z.W==1)return X=G.api.Z(),Q=G.api.getVideoData(),R=G.api.getPlaylistId(),S=X.getVideoUrl(Q.videoId,R,void 0,!0),g.l(Z,TrC(G,S),2);Z.N&&syX(G);G.api.logClick(G.element);g.rX(Z)})}; Qm.prototype.GT=function(){this.updateValue("icon",{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.updateValue("tooltip-title","Copy link");this.visible=Pxw(this);g.S_(this.element, "ytp-copylink-button-visible",this.visible);this.Ta(this.visible);this.tooltip.dZ();this.api.logVisibility(this.element,this.visible&&this.C)}; Qm.prototype.ej=function(G){g.f.prototype.ej.call(this,G);this.api.logVisibility(this.element,this.visible&&G)}; Qm.prototype.zT=function(){g.f.prototype.zT.call(this);g.QD(this.element,"ytp-copylink-button-visible")};g.T(KfU,g.f);g.P=KfU.prototype;g.P.show=function(){g.f.prototype.show.call(this);g.DA(this.W)}; g.P.hide=function(){this.V.stop();this.Y=0;this.VH("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.QD(this.element,"ytp-chapter-seek");g.QD(this.element,"ytp-time-seeking");g.f.prototype.hide.call(this)}; g.P.IV=function(G,X,Q,R){this.Y=G===this.J?this.Y+R:R;this.J=G;var S=G===-1?this.j:this.T;S&&this.U.logClick(S);this.S?this.W.stop():g.Ax(this.W);this.V.start();this.element.setAttribute("data-side",G===-1?"back":"forward");var Z=3*this.U.mp().getPlayerSize().height;S=this.U.mp().getPlayerSize();S=S.width/3-3*S.height;this.N.style.width=Z+"px";this.N.style.height=Z+"px";G===1?(this.N.style.left="",this.N.style.right=S+"px"):G===-1&&(this.N.style.right="",this.N.style.left=S+"px");var H=Z*2.5;Z=H/ 2;var w=this.VH("ytp-doubletap-ripple");w.style.width=H+"px";w.style.height=H+"px";G===1?(G=this.U.mp().getPlayerSize().width-X+Math.abs(S),w.style.left="",w.style.right=G-Z+"px"):G===-1&&(G=Math.abs(S)+X,w.style.right="",w.style.left=G-Z+"px");w.style.top="calc((33% + "+Math.round(Q)+"px) - "+Z+"px)";if(Q=this.VH("ytp-doubletap-ripple"))Q.classList.remove("ytp-doubletap-ripple"),Q.classList.add("ytp-doubletap-ripple");e3X(this,this.S?this.Y:R)}; g.P.oL=function(G,X,Q){if(Q=Q===void 0?null:Q){var R=G===-1?this.j.visualElement:this.T.visualElement;Q={seekData:Q};var S=g.oU();S&&bc(S,R,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",Q)}this.Y=G===this.J?this.Y+X:X;this.J=G;R=this.U.mp().getPlayerSize();this.S?this.W.stop():g.Ax(this.W);this.V.start();this.element.setAttribute("data-side",G===-1?"back":"forward");g.Gk(this.element,"ytp-time-seeking");this.N.style.width="110px";this.N.style.height="110px";Q=R.width*.1-15;G===1?this.AT?(this.N.style.right= Q+"px",this.N.style.left=""):(this.N.style.right="",this.N.style.left=R.width*.8-30+"px"):G===-1&&(this.AT?(this.N.style.right="",this.N.style.left=Q+"px"):(this.N.style.right="",this.N.style.left=R.width*.1-15+"px"));this.N.style.top=R.height*.5+15+"px";e3X(this,this.S?this.Y:X)}; g.P.PA=function(G,X,Q){Q=Q===void 0?null:Q;g.Ax(this.W);this.V.start();switch(G){case -1:G="back";break;case 1:G="forward";break;default:G=""}this.element.setAttribute("data-side",G);this.N.style.width="0";this.N.style.height="0";g.Gk(this.element,"ytp-chapter-seek");this.updateValue("seekText",X);this.updateValue("seekTime","");X=this.VH("ytp-seek-icon");if(Q){a:if(Q){switch(Q){case "PREMIUM_STANDALONE":Q=xMy();break a;case "PREMIUM_STANDALONE_CAIRO":Q=OZZ();break a}Q=void 0}else Q=null;this.updateValue("seekIcon", Q);X.style.display="inline-block"}else X.style.display="none"};g.T(rql,s8);g.P=rql.prototype;g.P.Y3=function(G){this.IU||(this.IU=new xz(this.U),g.d(this,this.IU));var X,Q;if((X=this.As)==null?0:(Q=X.menu)==null?0:Q.menuRenderer)this.IU.open(this.As.menu.menuRenderer,G.target),G.preventDefault()}; g.P.iq=function(){return!!this.N}; g.P.vx=function(){return!!this.N}; g.P.kQ=function(G){G.target===this.overflowButton.element?G.preventDefault():(this.f7&&this.U.E_("innertubeCommand",this.f7),this.MI(!1))}; g.P.zA=function(){this.MI(!0);var G,X;((G=this.N)==null?0:(X=G.bannerData)==null?0:X.dismissedStatusKey)&&this.C7.push(this.N.bannerData.dismissedStatusKey);this.l3()}; g.P.mP=function(){this.l3();ZZ(this)}; g.P.u8T=function(G){var X=this,Q;if(G.id!==((Q=this.N)==null?void 0:Q.identifier)){this.l3();Q=g.e(this.DC);for(var R=Q.next();!R.done;R=Q.next()){var S=R.value,Z=void 0,H=void 0;if((R=(Z=S)==null?void 0:(H=Z.bannerData)==null?void 0:H.itemData)&&S.identifier===G.id){H=Z=void 0;var w=((Z=S)==null?void 0:(H=Z.bannerData)==null?void 0:H.dismissedStatusKey)||"";if(this.C7.includes(w))return;this.N=S;this.banner.element.setAttribute("aria-label",R.accessibilityLabel||"");R.trackingParams&&(this.V=!0, this.U.setTrackingParams(this.badge.element,R.trackingParams));this.show();this.j.show();Pt(this);this.Mi.Ta(!R.stayInApp);CxU(this);E1Z(this);S1(this);this.f7=g.y(R.onTapCommand,OL);if(S=g.y(R.menuOnTap,OL))this.As=g.y(S,sL3);S=void 0;this.banner.update({thumbnail:(S=(R.thumbnailSources||[])[0])==null?void 0:S.url,title:R.productTitle,price:R.priceReplacementText?R.priceReplacementText:R.price,salesOriginalPrice:z3V(this),priceDropReferencePrice:cq7(this),promotionText:OnV(this),priceA11yText:g1G(this), affiliateDisclaimer:R.affiliateDisclaimer,vendor:Uoe(this)});w=H=Z=S=void 0;((S=R)==null?0:(Z=S.hiddenProductOptions)==null?0:Z.showDropCountdown)&&((H=R)==null?0:(w=H.hiddenProductOptions)==null?0:w.dropTimestampMs)&&(this.Hs=new g.fU(function(){Ff0(X)},1E3),this.Mi.hide(),this.countdownTimer.show(),Ff0(this)); this.U.G("web_player_enable_featured_product_banner_exclusives_on_desktop")&&aFi(this)&&(this.Js=new g.fU(function(){xow(X)},1E3),xow(this))}}this.U.getRootNode()&&g.Gk(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.P.l3=function(){this.N&&(this.N=void 0,this.BI(),this.U.getRootNode()&&g.QD(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.P.onVideoDataChange=function(G,X){var Q=this;G==="dataloaded"&&ZZ(this);var R,S,Z;G=g.y((R=X.getWatchNextResponse())==null?void 0:(S=R.playerOverlays)==null?void 0:(Z=S.playerOverlayRenderer)==null?void 0:Z.productsInVideoOverlayRenderer,up4);this.overflowButton.show();this.dismissButton.hide();var H=G==null?void 0:G.featuredProductsEntityKey;this.trendingOfferEntityKey=G==null?void 0:G.trendingOfferEntityKey;this.DC.length||(BrS(this,H),S1(this));var w;(w=this.R6)==null||w.call(this);this.R6=g.rx.subscribe(function(){BrS(Q, H);S1(Q)})}; g.P.zT=function(){ZZ(this);CxU(this);E1Z(this);s8.prototype.zT.call(this)};g.T(Wfw,g.f);Wfw.prototype.onClick=function(){this.U.logClick(this.element,this.W)};g.T(phV,g.Qn);g.P=phV.prototype;g.P.show=function(){g.Qn.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);yqG(this,!0)}; g.P.hide=function(){g.Qn.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);yqG(this,!1)}; g.P.getId=function(){return this.V}; g.P.Q7=function(){return this.itemData.length}; g.P.onVideoDataChange=function(G,X){if(X){var Q,R,S,Z;this.update({title:((Q=X.L2)==null?void 0:(R=Q.title)==null?void 0:R.content)||"",body:((S=X.L2)==null?void 0:(Z=S.bodyText)==null?void 0:Z.content)||""});var H;G=((H=X.L2)==null?void 0:H.trackingParams)||null;this.U.setTrackingParams(this.element,G);H=g.e(this.itemData);for(G=H.next();!G.done;G=H.next())G.value.dispose();this.itemData=[];var w;if((w=X.L2)==null?0:w.ctaButtons)for(X=g.e(X.L2.ctaButtons),w=X.next();!w.done;w=X.next())if(w=g.y(w.value, ktZ))w=new Wfw(this.U,w,this.N),w.eG&&(this.itemData.push(w),w.s_(this.items))}}; g.P.zT=function(){this.hide();g.Qn.prototype.zT.call(this)};g.T(NrS,g.f);g.P=NrS.prototype;g.P.onVideoDataChange=function(G,X){DoT(this,X);this.FG&&n1l(this,this.FG)}; g.P.hI=function(G){var X=this.U.getVideoData();this.videoId!==X.videoId&&DoT(this,X);n1l(this,G.state);this.FG=G.state}; g.P.R0=function(G){(this.Y=G)?this.hide():this.N&&this.show()}; g.P.x3=function(){this.W||this.Pn();this.showControls=!0}; g.P.Vj=function(){this.W||this.aW();this.showControls=!1}; g.P.Pn=function(){var G,X=(G=this.U)==null?void 0:G.getPlayerSize();G=X.width<380;var Q;X=X.height<(((Q=this.U)==null?0:Q.isEmbedsShortsMode())?400:280);var R,S;(((R=this.U)==null?0:R.getPlayerStateObject().isCued())||((S=this.U)==null?0:g.N(S.getPlayerStateObject(),1024)))&&G&&X||!this.N||this.Y||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.P.aW=function(){this.N&&!this.Y&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.P.HL_=function(){this.W=!1;this.showControls||this.aW()};var aSk={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(aSk).reduce(function(G,X){G[aSk[X]]=X;return G},{}); var Ew3={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Ew3).reduce(function(G,X){G[Ew3[X]]=X;return G},{}); var xpv={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(xpv).reduce(function(G,X){G[xpv[X]]=X;return G},{});var Oyn,zhO;Oyn=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];zhO=[{option:0,text:HG(0)},{option:.25,text:HG(.25)},{option:.5,text:HG(.5)},{option:.75,text:HG(.75)},{option:1,text:HG(1)}]; g.LG=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:Oyn},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:HG(.5)},{option:-1,text:HG(.75)},{option:0,text:HG(1)},{option:1,text:HG(1.5)},{option:2, text:HG(2)},{option:3,text:HG(3)},{option:4,text:HG(4)}]},{option:"background",text:"Background color",options:Oyn},{option:"backgroundOpacity",text:"Background opacity",options:zhO},{option:"windowColor",text:"Window color",options:Oyn},{option:"windowOpacity",text:"Window opacity",options:zhO},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:HG(.25)},{option:.5,text:HG(.5)},{option:.75,text:HG(.75)},{option:1,text:HG(1)}]}];var cuL=[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.T(GPU,g.KP);g.P=GPU.prototype; g.P.Rx=function(G){G.repeat||(this.Y.wR=!1);var X=!1,Q=G.keyCode,R=PA(G),S=!G.altKey&&!G.ctrlKey&&!G.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||cuL.includes(Q)),Z=!1,H=!1,w=this.api.Z();G.defaultPrevented?(S=!1,H=!0):w.bf&&!this.api.isMutedByEmbedsMutedAutoplay()&&(S=!1);if(Q===9)X=!0;else{if(R)switch(Q){case 32:case 13:if(R.tagName==="BUTTON"||R.tagName==="A"||R.tagName==="INPUT")X=!0,S=!1;else if(S){var h=R.getAttribute("role");!h||h!=="option"&&h!=="button"&&h.indexOf("menuitem")!==0|| (X=!0,R.click(),Z=!0)}break;case 37:case 39:case 36:case 35:X=R.getAttribute("role")==="slider";break;case 38:case 40:h=R.getAttribute("role"),R=Q===38?R.previousSibling:R.nextSibling,h==="slider"?X=!0:S&&(h==="option"?(R&&R.getAttribute("role")==="option"&&R.focus(),Z=X=!0):h&&h.indexOf("menuitem")===0&&(R&&R.hasAttribute("role")&&R.getAttribute("role").indexOf("menuitem")===0&&R.focus(),Z=X=!0))}if(S&&!Z)switch(Q){case 38:Z=Math.min(this.api.getVolume()+5,100);bd(this.UT,Z,!1);this.api.setVolume(Z); H=Z=!0;break;case 40:Z=Math.max(this.api.getVolume()-5,0);bd(this.UT,Z,!0);this.api.setVolume(Z);H=Z=!0;break;case 36:this.api.Tg()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),H=Z=!0);break;case 35:this.api.Tg()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),H=Z=!0)}}X&&wa(this,!0);(X||H)&&this.X9.iy();(Z||S&&this.handleGlobalKeyDown(Q,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code,G.repeat))&&G.preventDefault();w.T&&(G={keyCode:G.keyCode, altKey:G.altKey,ctrlKey:G.ctrlKey,metaKey:G.metaKey,shiftKey:G.shiftKey,handled:G.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.vR("onKeyPress",G))}; g.P.Ix=function(G){var X=G.keyCode;(!this.api.G("web_player_spacebar_control_bugfix")||this.api.G("web_player_spacebar_control_bugfix")&&!this.Y.uh)&&this.handleGlobalKeyUp(X,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code)&&G.preventDefault()}; g.P.handleGlobalKeyUp=function(G,X,Q,R,S,Z,H){this.api.publish("keyboardserviceglobalkeyup",{keyCode:G,shiftKey:X,ctrlKey:Q,altKey:R,metaKey:S,key:Z,code:H});X=!1;if(this.Y.wR)return X;(Z=g.AL(this.api.p7()))&&(Z=Z.lX)&&Z.rb&&(Z.sE(G),X=!0);switch(G){case 9:wa(this,!0);X=!0;break;case 32:if(this.api.G("web_speedmaster_spacebar_control")&&(!this.api.G("web_player_spacebar_control_bugfix")&&!this.Y.uh||this.api.G("web_player_spacebar_control_bugfix"))&&!this.api.Z().bf){var w,h;G=(w=this.progressBar)== null?void 0:(h=w.W)==null?void 0:h.isEnabled;X=this.PX(G)}break;case 39:(jR?R:Q)&&!S&&this.api.Tg()&&this.api.G("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),w=(w=this.api.getVideoData())?w.gL:[],h=bnT(w,this.api.getCurrentTime()*1E3),h!==-1&&this.N!=null&&(this.N.PA(1,w[h].title),this.api.seekTo(w[h].startTime/1E3,void 0,void 0,void 0,52),X=!0))}return X}; g.P.handleGlobalKeyDown=function(G,X,Q,R,S,Z,H,w){w||(this.Y.wR=!1);var h=!1,L=this.api.Z();if(L.bf&&!this.api.isMutedByEmbedsMutedAutoplay())return h;var k=g.AL(this.api.p7());if(k&&(k=k.lX)&&k.rb)switch(G){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=k.pU(G)}L.S||h||(h=Z||String.fromCharCode(G).toLowerCase(),this.W+=h,"awesome".indexOf(this.W)===0||this.api.G("web_player_rtr_ctrls")&&"bday".indexOf(this.W)===0?(h=!0,4===this.W.length&&this.W==="bday"&&this.api.G("web_player_rtr_ctrls")&& (SVG(this.C),this.X9.iy()),7===this.W.length&&this.W==="awesome"&&rVC(this.api.getRootNode(),"ytp-color-party")):(this.W=h,h="awesome".indexOf(this.W)===0||"bday".indexOf(this.W)===0));if(!h&&(!this.api.isMutedByEmbedsMutedAutoplay()||cuL.includes(G))){var Y=this.api.getVideoData(),M,m;k=(M=this.progressBar)==null?void 0:(m=M.W)==null?void 0:m.isEnabled;M=Y?Y.gL:[];m=jR?R:Q;switch(G){case 80:X&&!L.SA&&($0(this.UT,zNi(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:X&&!L.SA&&($0(this.UT, ob(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.Tg()&&(this.api.startSeekCsiAction(),this.N?this.api.G("enable_key_press_seek_logging")?(h=h2(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.N.oL(-1,10,h)):this.N.oL(-1,10):$0(this.UT,{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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),h=!0);break;case 76:this.api.Tg()&&(this.api.startSeekCsiAction(),this.N?this.api.G("enable_key_press_seek_logging")?(h=h2(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.N.oL(1,10,h)):this.N.oL(1,10):$0(this.UT,{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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),h=!0);break;case 37:this.api.Tg()&&(this.api.startSeekCsiAction(),m?(m=v1w(M,this.api.getCurrentTime()*1E3),m!==-1&&this.N!=null&&(this.N.PA(-1,M[m].title),this.api.seekTo(M[m].startTime/1E3,void 0,void 0,void 0,53),h=!0)):(this.N?this.api.G("enable_key_press_seek_logging")?(h=h2(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.N.oL(-1,5,h)):this.N.oL(-1,5):$0(this.UT,{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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),h=!0));break;case 39:this.api.Tg()&&(this.api.startSeekCsiAction(),m?this.api.G("web_enable_keyboard_shortcut_for_timely_actions")||(m=bnT(M,this.api.getCurrentTime()*1E3),m!==-1&&this.N!=null&&(this.N.PA(1,M[m].title),this.api.seekTo(M[m].startTime/1E3,void 0,void 0,void 0,52),h=!0)):(this.N!=null?this.api.G("enable_key_press_seek_logging")?(h=h2(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.N.oL(1,5,h)):this.N.oL(1, 5):$0(this.UT,{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),bd(this.UT,this.api.getVolume(),!1)):(this.api.mute(),bd(this.UT,0,!0));h=!0;break;case 32:h=this.api.G("web_speedmaster_spacebar_control")?!this.api.Z().SA:this.PX(k);break;case 75:h=this.PX(k);break;case 190:X?L.enableSpeedOptions&&Q3G(this)&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),A0Z(this.UT,!1),h=!0):this.api.Tg()&&(this.step(1),h=!0);break;case 188:X? L.enableSpeedOptions&&Q3G(this)&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h-.25,!0),A0Z(this.UT,!0),h=!0):this.api.Tg()&&(this.step(-1),h=!0);break;case 70:W6V(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0); break;case 27:k?(this.progressBar.MN(),h=!0):this.S()&&(h=!0)}if(L.controlsType!=="3")switch(G){case 67:g.a6(this.api.p7())&&(L=this.api.getOption("captions","track"),this.api.toggleSubtitles(),nY0(this.UT,!L||L&&!L.displayName),h=!0);break;case 79:k2(this,"textOpacity");break;case 87:k2(this,"windowOpacity");break;case 187:case 61:k2(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:k2(this,"fontSizeIncrement",!0,!0)}var u;X||Q||R||(G>=48&&G<=57?u=G-48:G>=96&&G<=105&&(u=G-96));u!=null&&this.api.Tg()&& !this.api.G("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),L=this.api.getProgressState(),this.api.seekTo(u/10*(L.seekableEnd-L.seekableStart)+L.seekableStart,void 0,void 0,void 0,81),h=!0);h&&this.X9.iy()}this.Y.TP=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:G,shiftKey:X,ctrlKey:Q,altKey:R,metaKey:S,key:Z,code:H,repeat:w},this.Y);this.Y.TP&&(h=!0,this.X9.iy());return h}; g.P.step=function(G){this.api.Tg();if(this.api.getPlayerStateObject().isPaused()){var X=this.api.getVideoData().W;X&&(X=X.video)&&this.api.seekBy(G/(X.fps||30),void 0,void 0,G>0?77:78)}}; g.P.PX=function(G){if(!this.api.Z().SA){var X;var Q,R=(X=this.api.getVideoData())==null?void 0:(Q=X.getPlayerResponse())==null?void 0:Q.playabilityStatus;if(R){var S;X=((S=g.y(R.miniplayer,xP4))==null?void 0:S.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else X=!1;X&&this.api.E_("onExpandMiniplayer");G?this.progressBar.PJ():(G=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.UT.Nb(G),G?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.P.zT=function(){g.Ax(this.V);g.KP.prototype.zT.call(this)};g.T(Y2,g.f);Y2.prototype.GT=function(){var G=this.U.Z(),X=G.Y||this.U.G("web_player_hide_overflow_button_if_empty_menu")&&this.x_.isEmpty();G=g.Jn(G)&&g.D0(this.U)&&g.N(this.U.getPlayerStateObject(),128);var Q=this.U.getPlayerSize();this.visible=this.U.lT()&&!G&&Q.width>=240&&!this.U.getVideoData().KY&&!X&&!this.U.isEmbedsShortsMode();g.S_(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.dZ();this.U.logVisibility(this.element,this.visible&&this.C)}; Y2.prototype.ej=function(G){g.f.prototype.ej.call(this,G);this.U.logVisibility(this.element,this.visible&&G)}; Y2.prototype.zT=function(){g.f.prototype.zT.call(this);g.QD(this.element,"ytp-overflow-button-visible")};g.T(RFU,g.Qn);g.P=RFU.prototype;g.P.M5=function(G){G=PA(G);g.Ks(this.element,G)&&(g.Ks(this.N,G)||g.Ks(this.closeButton,G)||Sj(this))}; g.P.aW=function(){g.Qn.prototype.aW.call(this);this.U.uZ(this.element)}; g.P.show=function(){this.rb&&this.U.publish("OVERFLOW_PANEL_OPENED");g.Qn.prototype.show.call(this);this.element.setAttribute("aria-modal","true");ZgU(this,!0)}; g.P.hide=function(){g.Qn.prototype.hide.call(this);this.element.removeAttribute("aria-modal");ZgU(this,!1)}; g.P.onFullscreenToggled=function(G){!G&&this.M1()&&Sj(this)}; g.P.isEmpty=function(){return this.actionButtons.length===0}; g.P.focus=function(){for(var G=g.e(this.actionButtons),X=G.next();!X.done;X=G.next())if(X=X.value,X.rb){X.focus();break}};g.T(Hgl,g.f);Hgl.prototype.onClick=function(G){g.ej(G,this.api)&&this.api.playVideoAt(this.index)};g.T(q$T,g.Qn);g.P=q$T.prototype;g.P.show=function(){g.Qn.prototype.show.call(this);this.N.B(this.api,"videodatachange",this.TU);this.N.B(this.api,"onPlaylistUpdate",this.TU);this.TU()}; g.P.hide=function(){g.Qn.prototype.hide.call(this);g.e8(this.N);this.updatePlaylist(null)}; g.P.TU=function(){this.updatePlaylist(this.api.getPlaylist());this.api.Z().Y&&(this.VH("ytp-playlist-menu-title-name").removeAttribute("href"),this.Y&&(this.Ds(this.Y),this.Y=null))}; g.P.rP=function(){var G=this.playlist,X=G.author,Q=X?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",R={CURRENT_POSITION:String(G.index+1),PLAYLIST_LENGTH:String(G.length)};X&&(R.AUTHOR=X);this.update({title:G.title,subtitle:g.QM(Q,R),playlisturl:this.api.getVideoUrl(!0)});X=G.W;if(X===this.V)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[G.index];else{Q=g.e(this.playlistData);for(R=Q.next();!R.done;R=Q.next())R.value.dispose(); Q=G.length;this.playlistData=[];for(R=0;R=this.W&&!G.Y&&!X.isAd()&&!this.api.isEmbedsShortsMode()}else G=!1;this.visible=G;this.Ta(this.visible);g.S_(this.element,"ytp-search-button-visible",this.visible);g.S_(this.element,"ytp-show-search-title",!this.api.lT());this.api.logVisibility(this.element,this.visible&&this.C)}; oN.prototype.ej=function(G){g.f.prototype.ej.call(this,G);this.api.logVisibility(this.element,this.visible&&G)};g.T(uW,g.f); uW.prototype.trigger=function(G,X,Q,R){this.show();if(this.W&&G!==this.W){var S=1;this.Y&&(S=s3V(this));MF7(this,S,!1);PHZ(this)}this.W=G;this.V=this.W===-1?this.T:this.j;G="";X?(this.J+=X,G=(this.W===-1?"\u2212":"+")+" "+this.J):this.J=0;this.updateValue(this.W===-1?"durationBack":"durationForward",G);if(this.N==="hidden"||this.N==="fading-out")X=0,this.N==="fading-out"&&(X=s3V(this),uWX(this)),miG(this,X),this.N!=="fading-out"&&ojC(this,this.V.querySelector(".ytp-seek-overlay-arrow-persistent")),this.N= "fading-in";else if(this.N==="fading-in"||this.N==="lingering")X=this.V.querySelector(".ytp-seek-overlay-duration"),G=g.i2(this.U.Z().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,X.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+G+")"},{offset:1,transform:"scale(1)"}],{duration:184}),uWX(this),this.N==="lingering"&&(this.S.stop(),this.S.start());Q&&TtG(this,Q,R)}; uW.prototype.IV=function(G,X,Q,R){this.trigger(G,R)}; uW.prototype.oL=function(G,X,Q){this.trigger(G,X);Q&&(G=G===-1?this.j.visualElement:this.T.visualElement,Q={seekData:Q},(X=g.oU())&&bc(X,G,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",Q))}; uW.prototype.PA=function(G,X,Q){this.trigger(G,void 0,X,Q)};g.T(PG,g.f);PG.prototype.onClick=function(){var G=this,X=this.api.Z(),Q=this.api.getVideoData(this.api.getPresentingPlayerType()),R=this.api.getPlaylistId();X=this.api.G("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):X.getVideoUrl(Q.videoId,R,void 0,!0);if(navigator.share)try{var S=navigator.share({title:Q.title,url:X});S instanceof Promise&&S.catch(function(Z){eFy(G,Z)})}catch(Z){Z instanceof Error&&eFy(this,Z)}else this.N.Vc(),Sj(this.W,this.element,!1); this.api.logClick(this.element)}; PG.prototype.GT=function(){var G=this.api.Z(),X=this.api.isEmbedsShortsMode();g.S_(this.element,"ytp-show-share-title",g.Jn(G)&&!X);this.N.Yu()&&X?(G=(this.api.mp().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.DN(this.element,"right",G+"px")):X&&g.DN(this.element,"right","0px");this.updateValue("icon",{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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=K4G(this);g.S_(this.element,"ytp-share-button-visible",this.visible);this.Ta(this.visible);this.tooltip.dZ();this.api.logVisibility(this.element,K4G(this)&&this.C)}; PG.prototype.ej=function(G){g.f.prototype.ej.call(this,G);this.api.logVisibility(this.element,this.visible&&G)}; PG.prototype.zT=function(){g.f.prototype.zT.call(this);g.QD(this.element,"ytp-share-button-visible")};g.T(al7,g.Qn);g.P=al7.prototype;g.P.RO=function(G){G=PA(G);g.Ks(this.S,G)||g.Ks(this.closeButton,G)||Sj(this)}; g.P.aW=function(){g.Qn.prototype.aW.call(this);this.tooltip.uZ(this.element);this.api.logVisibility(this.N,!1);for(var G=g.e(this.Y),X=G.next();!X.done;X=G.next())X=X.value,this.api.hasVe(X.element)&&this.api.logVisibility(X.element,!1)}; g.P.show=function(){var G=this.rb;g.Qn.prototype.show.call(this);this.GT();G||this.api.E_("onSharePanelOpened")}; g.P.HOb=function(){this.rb&&this.GT()}; g.P.GT=function(){var G=this;g.Gk(this.element,"ytp-share-panel-loading");g.QD(this.element,"ytp-share-panel-fail");var X=this.api.getVideoData(),Q=this.api.getPlaylistId()&&this.V.checked;X.getSharePanelCommand&&UF(this.api.Ub(),X.getSharePanelCommand,{includeListId:Q}).then(function(R){G.U_()||(g.QD(G.element,"ytp-share-panel-loading"),OgT(G,R))}); X=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",X);this.updateValue("linkText",X);this.updateValue("shareLinkWithUrl",g.QM("Share link $URL",{URL:X}));xH(this.N);this.api.logVisibility(this.N,!0)}; g.P.onFullscreenToggled=function(G){!G&&this.M1()&&Sj(this)}; g.P.focus=function(){this.N.focus()}; g.P.zT=function(){g.Qn.prototype.zT.call(this);Ejl(this)};g.T(gjG,s8);g.P=gjG.prototype;g.P.zT=function(){CHS(this);s8.prototype.zT.call(this)}; g.P.kQ=function(G){G.target!==this.dismissButton.element&&(this.MI(!1),this.U.E_("innertubeCommand",this.onClickCommand))}; g.P.zA=function(){this.Xm=!0;this.MI(!0);this.BI()}; g.P.vSO=function(G){this.J=G;this.BI()}; g.P.onVideoDataChange=function(G,X){if(G=!!X.videoId&&this.videoId!==X.videoId)this.videoId=X.videoId,this.Xm=!1,this.Yc=!0,this.T=this.yH=!1,CHS(this),F4i(this,!1),this.W=this.N=!1,TS(this),UiC(this);if(G||!X.videoId)this.AT=this.V=!1;var Q,R;if(X==null?0:(Q=X.getPlayerResponse())==null?0:(R=Q.videoDetails)==null?0:R.isLiveContent)this.cR(!1);else{var S,Z,H;X=g.y((S=X.getWatchNextResponse())==null?void 0:(Z=S.playerOverlays)==null?void 0:(H=Z.playerOverlayRenderer)==null?void 0:H.productsInVideoOverlayRenderer, up4);this.J=this.enabled=!1;if(X){if(S=X==null?void 0:X.featuredProductsEntityKey){Z=g.rx.getState().entities;var w;if((w=bJ(Z,"featuredProductsEntity",S))==null?0:w.productsData){this.cR(!1);return}}if(!X.text||!X.onClickCommand||!X.timing){this.cR(!1);return}this.enabled=!0;if(!this.V){var h;w=(h=X.badgeInteractionLogging)==null?void 0:h.trackingParams;(this.V=!!w)&&this.U.setTrackingParams(this.badge.element,w||null)}if(!this.AT){var L;if(this.AT=!((L=X.dismissButton)==null||!L.trackingParams)){var k; this.U.setTrackingParams(this.dismissButton.element,((k=X.dismissButton)==null?void 0:k.trackingParams)||null)}}X.isContentForward&&(h=X.productsData,F4i(this,!0),UiC(this),h=Bte(this,h),L=[],h.length>0&&L.push(h[0]),h.length>1&&(k=new g.f({D:"div",X:"ytp-suggested-action-more-products-icon"}),g.d(this,k),L.push(k),L.push.apply(L,g.o0(h.slice(1)))),this.S=new g.f({D:"div",K:L,X:"ytp-suggested-action-content-forward-container"}),g.d(this,this.S),this.QH.element.append(this.S.element));this.text=g.q1(X.text); var Y;if(h=(Y=X.dismissButton)==null?void 0:Y.a11yLabel)this.wb=g.q1(h);this.onClickCommand=X.onClickCommand;this.timing=X.timing;this.PZ()}T3S(this);Pt(this);this.BI()}}; g.P.iq=function(){return!this.J&&this.enabled&&!this.Xm&&!this.U.lT()&&!this.N9&&(this.T||this.Yc)}; g.P.Ze=function(G){s8.prototype.Ze.call(this,G);if(this.N||this.W)this.timing&&sR(this.timing.preview)&&(this.N=!1,TS(this),this.W=!1,TS(this),this.U.lf("shopping_overlay_preview_collapsed"),this.U.lf("shopping_overlay_preview_expanded"),G=KG(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),sR(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.lf("shopping_overlay_expanded"),G.end=this.timing.expanded.endSec*1E3),this.U.PZ([G])), this.yH=!0,Pt(this);TS(this)}; g.P.cR=function(G){(this.T=G)?(u3(this),Pt(this,!1)):(CHS(this),this.SA.start());this.BI()}; g.P.PZ=function(G){var X=this.timing;G=(G===void 0?0:G)+this.U.getCurrentTime();var Q=[],R=X.visible,S=X.preview;X=X.expanded;sR(R)&&(zFG(R,G),Q.push(KG(R.startSec,R.endSec,"shopping_overlay_visible")));sR(S)&&(zFG(S,G),R=S.startSec+1,Q.push(KG(S.startSec,R,"shopping_overlay_preview_collapsed")),Q.push(KG(R,S.endSec,"shopping_overlay_preview_expanded")));sR(X)&&(zFG(X,G),Q.push(KG(X.startSec,X.endSec,"shopping_overlay_expanded")));this.U.PZ(Q)}; g.P.BI=function(){s8.prototype.BI.call(this);this.U.getRootNode()&&g.S_(this.U.getRootNode(),"ytp-shopping-pill-shown",this.iq())};g.T(IlZ,g.f); IlZ.prototype.GT=function(){var G=this.api.Z();this.Ta(g.Jn(G)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.rb);var X=this.api.getVideoData(),Q=!1;this.api.getPresentingPlayerType()===2?Q=!!X.videoId&&!!X.isListed&&!!X.author&&!!X.bB&&!!X.profilePicture:g.Jn(G)&&(Q=!!X.videoId&&!!X.bB&&!!X.profilePicture&&!X.KY&&!G.Y&&!(G.J&&this.api.getPlayerSize().width<200));var R=X.profilePicture;G=g.Jn(G)?X.expandedTitle:X.author;R=R===void 0? "":R;G=G===void 0?"":G;Q?(this.W!==R&&(this.N.style.backgroundImage="url("+R+")",this.W=R),this.updateValue("channelLogoLabel",g.QM("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:G})),g.Gk(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.QD(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.N,Q&&this.C);this.api.logVisibility(this.channelName,Q&&this.C);this.subscribeButton&&(this.subscribeButton.channelId=X.F6);this.updateValue("expandedTitle",X.expandedTitle)};g.T(e1,g.Qn);e1.prototype.show=function(){g.Qn.prototype.show.call(this);this.N.start()}; e1.prototype.hide=function(){g.Qn.prototype.hide.call(this);this.N.stop()}; e1.prototype.hC=function(G,X){G==="dataloaded"&&((this.f4=X.f4,this.ze=X.ze,isNaN(this.f4)||isNaN(this.ze))?this.Y&&(this.U.lf("intro"),this.U.removeEventListener(g.Dy("intro"),this.j),this.U.removeEventListener(g.N3("intro"),this.S),this.U.removeEventListener("onShowControls",this.V),this.hide(),this.Y=!1):(this.U.addEventListener(g.Dy("intro"),this.j),this.U.addEventListener(g.N3("intro"),this.S),this.U.addEventListener("onShowControls",this.V),G=new g.yG(this.f4,this.ze,{priority:9,namespace:"intro"}), this.U.PZ([G]),this.Y=!0))};g.T(ra,g.f);ra.prototype.onClick=function(){this.U.jT()}; ra.prototype.GT=function(){var G=!0;g.Jn(this.U.Z())&&(G=G&&this.U.mp().getPlayerSize().width>=480);this.Ta(G);G=this.updateValue;var X=this.U.G("delhi_modern_web_player_icons"),Q=X?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,L:{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"}}]};X=X?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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.call(this,"icon",this.U.HF()?Q:X)};g.T(W4y,g.f);W4y.prototype.zT=function(){this.N=null;g.f.prototype.zT.call(this)};g.T(aN,g.f);aN.prototype.onClick=function(){this.U.E_("innertubeCommand",this.W)}; aN.prototype.j=function(){if(this.U.G("delhi_modern_web_player")){var G=this.U.getPlayerSize();G.width&&(this.element.style.maxWidth=G.width*.25+"px")}}; aN.prototype.yH=function(G){G!==this.J&&(this.update({chapterTitle:G,ariaLabel:G}),this.J=G);G?this.show():this.hide()}; aN.prototype.AT=function(){this.N.disabled=this.W==null;g.S_(this.N,"ytp-chapter-container-disabled",this.N.disabled);this.o6()};g.T(ER,aN);ER.prototype.onClickCommand=function(G){g.y(G,eX)&&this.o6()}; ER.prototype.updateVideoData=function(G,X){var Q,R,S;G=g.y((Q=X.getWatchNextResponse())==null?void 0:(R=Q.playerOverlays)==null?void 0:(S=R.playerOverlayRenderer)==null?void 0:S.decoratedPlayerBarRenderer,bp);Q=g.y(G==null?void 0:G.playerBarActionButton,g.Lv);if(this.U.G("web_player_updated_entrypoint")){this.T=v3(Q==null?void 0:Q.text);var Z;R=(Z=Q==null?void 0:Q.tooltip)!=null?Z:"View chapter";this.S.setAttribute("title",R)}this.W=Q==null?void 0:Q.command;aN.prototype.AT.call(this)}; ER.prototype.o6=function(){var G=this.T,X=this.V.N,Q,R=((Q=this.U.getLoopRange())==null?void 0:Q.type)==="clips";if(X.length>1&&!R){G=this.U.getProgressState().current*1E3;Q=qF(X,G);G=X[Q].title||"Chapters";if(Q!==this.currentIndex||this.Y)this.U.E_("innertubeCommand",X[Q].onActiveCommand),this.currentIndex=Q;this.Y=!1}else this.Y=!0;aN.prototype.yH.call(this,G)};g.T(x2,g.Sa);x2.prototype.W=function(){var G;(G=this.element.parentElement)==null||G.classList.contains("ytp-right-controls-left");(this.N=!this.N)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; x2.prototype.isExpanded=function(){return this.N};g.T(OR,g.f);OR.prototype.Y=function(G){g.N(G.state,32)?ybC(this,this.api.tR()):this.rb&&(g.N(G.state,16)||g.N(G.state,1))||this.fade.hide()}; OR.prototype.onProgress=function(){var G=this.api.getPlayerStateObject();(g.N(G,32)||g.N(G,16))&&flZ(this)}; OR.prototype.V=function(){this.frameIndex=NaN;flZ(this)}; OR.prototype.hide=function(){this.N&&ybC(this,null);g.f.prototype.hide.call(this)};g.T(Di7,g.f);g.P=Di7.prototype;g.P.onClick=function(){var G=this;if(this.U.Z().bB||this.U.Z().J){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(X){G.J7(X)})}catch(X){this.J7(X)}}else Sj(this.message,this.element,!0)}; g.P.J7=function(G){String(G).includes("fullscreen error")?g.EL(G):g.aU(G);this.nK()}; g.P.nK=function(){this.disable();this.message.Pn(this.element,!0)}; g.P.GG=function(){kL()===this.U.getRootNode()?this.Y.start():(this.Y.stop(),this.message&&this.message.hide())}; g.P.GW=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var G=window.screen.width*.9,X=window.screen.height*.9,Q=Math.max(window.outerWidth,window.innerWidth),R=Math.max(window.outerHeight,window.innerHeight);if(Q>R!==G>X){var S=Q;Q=R;R=S}G>Q&&X>R&&this.nK()}}; g.P.disable=function(){var G=this;if(!this.message){var X=(wo(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.Qn(this.U,{D:"div",aU:["ytp-popup","ytp-generic-popup"],L:{role:"alert",tabindex:"0"},K:[X[0],{D:"a",L:{href:"https://support.google.com/youtube/answer/6276924", target:this.U.Z().j},WM:X[2]},X[4]]},100,!0);this.message.hide();g.d(this,this.message);this.message.subscribe("show",function(Q){G.W.g7(G.message,Q)}); g.$6(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.N)();this.N=null}}; g.P.GT=function(){var G=W6V(this.U),X=this.U.Z().J&&this.U.getPlayerSize().width<250;this.Ta(G&&!X);var Q;((Q=this.U.Z())==null?0:Q.G("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.rb&&this.C):this.U.logVisibility(this.element,this.rb)}; g.P.PO=function(G){if(G){var X=g.d4(this.U,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(Q){g.EL(Q)})}else X=g.d4(this.U,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); G=NtU(this,G);X=this.message?null:X;this.U.Z().G("player_tooltip_data_title_killswitch")?this.update({title:X,icon:G}):this.update({"tooltip-title":X,"aria-label":X,icon:G});this.W.JS().dZ()}; g.P.zT=function(){this.message||((0,this.N)(),this.N=null);g.f.prototype.zT.call(this)}; g.P.ej=function(G){g.f.prototype.ej.call(this,G);var X;((X=this.U.Z())==null?0:X.G("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.rb&&G)};g.T(zS,g.f);zS.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.N,!0);var G=this.N>0?1:-1,X=Math.abs(this.N),Q=this.U.sG().Y0;Q&&Q.oL(G,X);this.W.isActive()?this.Y=!0:(G=["ytp-jump-spin"],this.N<0&&G.push("backwards"),this.element.classList.add.apply(this.element.classList,g.o0(G)),g.DA(this.W))};g.T(cG,aN);cG.prototype.onClickCommand=function(G){g.y(G,mP4)&&this.o6()}; cG.prototype.updateVideoData=function(){var G,X;this.W=(G=njG(this))==null?void 0:(X=G.onTap)==null?void 0:X.innertubeCommand;aN.prototype.AT.call(this)}; cG.prototype.o6=function(){var G="",X=this.V.J,Q,R=(Q=njG(this))==null?void 0:Q.headerTitle;Q=R?g.q1(R):"";var S;R=((S=this.U.getLoopRange())==null?void 0:S.type)==="clips";X.length>1&&!R&&(G=this.U.getProgressState().current*1E3,S=$oV(X,G),G=S!=null?X[S].title:Q,S!=null&&S!==this.currentIndex&&(this.U.E_("innertubeCommand",X[S].onActiveCommand),this.currentIndex=S));aN.prototype.yH.call(this,G)};g.T(UR,g.f);UR.prototype.onClick=function(){this.U.E_("onCollapseMiniplayer");this.U.logClick(this.element)}; UR.prototype.GT=function(){this.visible=!this.U.isFullscreen();this.Ta(this.visible);this.U.logVisibility(this.element,this.visible&&this.C)}; UR.prototype.ej=function(G){g.f.prototype.ej.call(this,G);this.U.logVisibility(this.element,this.visible&&G)};g.T(lW,g.f);lW.prototype.init=function(){this.updateValue("minvalue",this.V);this.updateValue("maxvalue",this.S);this.updateValue("stepvalue",this.T);this.updateValue("slidervalue",this.N);bge(this,this.N)}; lW.prototype.Y=function(){BG(this,Number(this.W.value));this.W.focus()}; lW.prototype.J=function(G){if(!G.defaultPrevented){switch(G.code){case "ArrowDown":G=-this.T;break;case "ArrowUp":G=this.T;break;default:return}BG(this,Math.min(this.S,Math.max(Number((this.N+G).toFixed(2)),this.V)))}};g.T(Fi,lW);Fi.prototype.onVolumeChange=function(G){if(this.j)this.j=!1;else{var X=G.volume;X===0||G.muted?BG(this,0):BG(this,X)}}; Fi.prototype.Y=function(){lW.prototype.Y.call(this);this.AT(this.N)}; Fi.prototype.yH=function(G){var X=-G.deltaY;X=G.deltaMode===WheelEvent.DOM_DELTA_LINE||G.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.pT(this.N+X,0,100):g.pT(this.N+g.pT(X/10,-10,10),0,100);X===0?BG(this,0):BG(this,X);this.AT(X);G.preventDefault();G.stopPropagation()}; Fi.prototype.Yc=function(G,X){this.j=!0;G===0||X?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(G))};g.T(vjC,g.f);g.T(t2,g.f);g.P=t2.prototype;g.P.Ng=function(){if(!this.U.sR()){this.updateValue("dataTooltipOffsetY",-120);var G;(G=this.N)!=null&&CG(G,!0);var X;(X=this.N)!=null&&X.N.stop()}}; g.P.JV=function(){var G;(G=this.N)!=null&&G.N.start()}; g.P.yZ=function(G){this.visible=G.width>=300||this.IU;this.Ta(this.visible);this.U.logVisibility(this.element,this.visible&&this.C)}; g.P.cw=function(){this.U.Z().QH?this.U.isMuted()?this.U.unMute():this.U.mute():Sj(this.message,this.element,!0);this.U.logClick(this.element)}; g.P.kF_=function(G){if(this.U.Z().QH&&this.N)if(G.target===this.Y){var X;if(!this.U.sR()||((X=this.N)==null?0:X.isVisible))this.cw();else{var Q;(Q=this.N)!=null&&CG(Q,!0)}}else{var R;(R=this.N)!=null&&CG(R,!0)}else this.cw()}; g.P.onVolumeChange=function(G){this.setVolume(G.volume,G.muted)}; g.P.setVolume=function(G,X){var Q=this,R=X?0:G/100;G=R===0?1:G>50?1:0;if(this.j!==G){var S=this.T;isNaN(S)?Q4X(this,G):ZuV(this.QH,function(H){Q4X(Q,S+(Q.j-S)*H)},250); this.j=G}R=R===0?1:0;if(this.J!==R){var Z=this.Yc;isNaN(Z)?R67(this,R):ZuV(this.DC,function(H){R67(Q,Z+(Q.J-Z)*H)},250); this.J=R}igV(this,X)}; g.P.ej=function(G){g.f.prototype.ej.call(this,G);this.U.logVisibility(this.element,this.visible&&G)}; var GF0=["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"],X7w=["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.T(g.Vm,g.f);g.P=g.Vm.prototype;g.P.onStateChange=function(G){this.qx(G.state);var X;((X=this.U.Z())==null?0:X.G("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.rb&&this.C)}; g.P.qx=function(G){var X=g.$P(this.U.getVideoData()),Q=!1;G.isOrWillBePlaying()?G=X?4:2:g.N(G,2)?(G=3,Q=X):G=1;this.element.disabled=Q;if(this.N!==G){X=null;switch(G){case 2:X=g.d4(this.U,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:X="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:X=g.d4(this.U,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:X="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}G=== 3?this.U.Z().G("player_tooltip_data_title_killswitch")?this.update({title:X,icon:Ssl(this,G)}):this.update({"tooltip-title":X,icon:Ssl(this,G)}):(this.U.G("player_tooltip_data_title_killswitch")?this.update({title:X}):this.update({"tooltip-title":X}),(X=Ssl(this,G))&&this.N&&this.N!==3?qQZ(this.transition,this.element,X):this.updateValue("icon",X));this.tooltip.dZ();this.N=G}}; g.P.onVideoDataChange=function(){g.S_(this.element,"ytp-play-button-playlist",g.D0(this.U))}; g.P.PX=function(G){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var X={},Q;if((Q=this.U.getVideoData())==null?0:Q.S)X.cttAuthInfo={token:this.U.getVideoData().S,videoId:this.U.getVideoData().videoId};x5("direct_playback",X);this.U.gZ().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(G==null?void 0:G.type)==="click"&&this.element.blur()}; g.P.ej=function(G){g.f.prototype.ej.call(this,G);var X;((X=this.U.Z())==null?0:X.G("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.rb&&G)};g.T(g.IN,g.f);g.P=g.IN.prototype;g.P.onVideoDataChange=function(){qsy(this);this.V&&(this.Ds(this.V),this.V=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.V=this.B(this.U,"progresssync",this.aO);this.Y=w7X(this);H8X(this);this.Lw(this.U.mp().getPlayerSize())}; g.P.Lw=function(G){G=G===void 0?this.U.mp().getPlayerSize():G;var X,Q=((X=this.U.getLoopRange())==null?void 0:X.type)==="clips";X=g.D0(this.U)||this.N&&g.bG(this.U)&&!this.U.G("web_hide_next_button")||h67(this);var R=!this.N&&G.width<400;G=this.U.G("delhi_modern_web_player_horizontal_volume_controls")&&G.width<640;Q=X&&!Q&&!R&&!G;this.Ta(Q);this.U.logVisibility(this.element,Q)}; g.P.onClick=function(G){this.U.logClick(this.element);var X=!0;this.J?X=g.ej(G,this.U):G.preventDefault();X&&(this.N&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.N?(M6(this.U.gZ()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.Y?this.U.seekTo(0):(M6(this.U.gZ()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.P.aO=function(){var G=w7X(this);G!==this.Y&&(this.Y=G,H8X(this))}; g.P.zT=function(){this.W&&(this.W(),this.W=null);qsy(this);g.f.prototype.zT.call(this)};g.T(kFC,g.f);g.P=kFC.prototype;g.P.nZ=function(G){this.Kw(G.pageX);this.ZP(G.pageX+G.deltaX);YsU(this)}; g.P.Kw=function(G){this.AT=G-this.IU}; g.P.ZP=function(G){G-=this.IU;!isNaN(this.AT)&&this.thumbnails.length>0&&(this.j=G-this.AT,this.thumbnails.length>0&&this.j!==0&&(this.Y=this.T+this.j,G=u8i(this,this.Y),this.Y<=this.N/2&&this.Y>=odl(this)?(this.api.seekTo(G,!1,void 0,void 0,25),g.DN(this.Yc,"transform","translateX("+(this.Y-this.N/2)+"px)"),L1i(this,G)):this.Y=this.T))}; g.P.oO=function(){this.yH&&(this.yH.He=!0);var G=(0,g.TB)()-this.CO<300;if(Math.abs(this.j)<5&&!G){this.CO=(0,g.TB)();G=this.AT+this.j;var X=this.N/2-G;this.Kw(G);this.ZP(G+X);YsU(this);this.api.logClick(this.S)}YsU(this)}; g.P.UB=function(){da(this,this.api.getCurrentTime())}; g.P.play=function(G){this.api.seekTo(u8i(this,this.Y),void 0,void 0,void 0,26);this.api.playVideo();G&&this.api.logClick(this.playButton)}; g.P.onExit=function(G){this.api.seekTo(this.SA,void 0,void 0,void 0,63);this.api.playVideo();G&&this.api.logClick(this.dismissButton)}; g.P.EM=function(G,X){this.IU=G;this.N=X;da(this,this.api.getCurrentTime())}; g.P.enable=function(){this.isEnabled||(this.isEnabled=!0,this.SA=this.api.getCurrentTime(),L1i(this,this.SA),g.S_(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.QH=this.B(this.element,"wheel",this.nZ),this.logVisibility(this.isEnabled))}; g.P.disable=function(){this.isEnabled=!1;this.hide();g.S_(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.QH&&this.Ds(this.QH);this.logVisibility(this.isEnabled)}; g.P.reset=function(){this.disable();this.V=[];this.Mi=!1}; g.P.logVisibility=function(G){this.api.logVisibility(this.element,G);this.api.logVisibility(this.S,G);this.api.logVisibility(this.dismissButton,G);this.api.logVisibility(this.playButton,G)}; g.P.zT=function(){for(;this.W.length;){var G=void 0;(G=this.W.pop())==null||G.dispose()}g.f.prototype.zT.call(this)}; g.T(j4l,g.f);g.T(MHl,g.f);g.T(PRi,g.f);g.T(WG,g.f);WG.prototype.V0=function(G){return G==="PLAY_PROGRESS"?this.T:G==="LOAD_PROGRESS"?this.J:G==="LIVE_BUFFER"?this.S:this.Y};K1y.prototype.update=function(G,X,Q,R){Q=Q===void 0?0:Q;this.width=X;this.V=Q;this.N=X-Q-(R===void 0?0:R);this.position=g.pT(G,Q,Q+this.N);this.Y=this.position-Q;this.W=this.Y/this.N};g.T(e6e,g.f);g.T(g.fG,g.Sa);g.P=g.fG.prototype; g.P.s8=function(){var G=!1,X=this.api.getVideoData();if(!X)return G;this.api.lf("timedMarkerCueRange");EdG(this);for(var Q=g.e(X.cM),R=Q.next();!R.done;R=Q.next()){R=R.value;var S=void 0,Z=(S=this.wb[R])==null?void 0:S.markerType,H=void 0;S=(H=this.wb[R])==null?void 0:H.markers;if(!S)break;if(Z==="MARKER_TYPE_TIMESTAMPS"){G=g.e(S);for(Z=G.next();!Z.done;Z=G.next()){H=Z.value;Z=new e6e;var w=void 0;Z.title=((w=H.title)==null?void 0:w.simpleText)||"";Z.timeRangeStartMillis=Number(H.startMillis);Z.N= Number(H.durationMillis);var h=w=void 0;Z.onActiveCommand=(h=(w=H.onActive)==null?void 0:w.innertubeCommand)!=null?h:void 0;U_7(this,Z)}lvC(this,this.J);G=this.J;Z=this.Ge;H=[];w=null;for(h=0;hL&&(w.end=L);L=Jql(L,L+Y);H.push(L);w=L;Z[L.id]=G[h].onActiveCommand}}this.api.PZ(H);a:{G=g.e(S);for(S=G.next();!S.done;S=G.next())if(S.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){G= !1;break a}G=!0}G&&(this.gL=this.wb[R]);G=!0}else if(Z==="MARKER_TYPE_HEATMAP"){R=this.wb[R];k=L=Z=h=w=H=void 0;if(R&&R.markers){S=(Z=(k=R.markersMetadata)==null?void 0:(L=k.heatmapMetadata)==null?void 0:L.minHeightDp)!=null?Z:0;Z=(H=(h=R.markersMetadata)==null?void 0:(w=h.heatmapMetadata)==null?void 0:w.maxHeightDp)!=null?H:60;H=this.N.length;w=null;for(h=0;h=k&&u<=Y&&L.push(m)}Z>0&&(this.yH.style.height=Z+"px");k=this.V[h];Y=L;m=S;var r=Z,x=h===0;x=x===void 0?!1:x;s4V(k,r);M=Y;u=k.W;x=x===void 0?!1:x;var c=1E3/M.length,z=[];z.push({x:0,y:100});for(var B=0;B0&&(w=L[L.length-1])}g.DZ(this)}Z=void 0;S=[];if(R=(Z=R.markersDecoration)==null?void 0:Z.timedMarkerDecorations)for(R=g.e(R),Z=R.next();!Z.done;Z=R.next())Z=Z.value,h=w=H=void 0,S.push({visibleTimeRangeStartMillis:(H=Z.visibleTimeRangeStartMillis)!= null?H:-1,visibleTimeRangeEndMillis:(w=Z.visibleTimeRangeEndMillis)!=null?w:-1,decorationTimeMillis:(h=Z.decorationTimeMillis)!=null?h:NaN,label:Z.label?g.q1(Z.label):""});R=S;this.heatMarkersDecorations=R}}X.vT=this.J;g.S_(this.element,"ytp-timed-markers-enabled",G);return G}; g.P.EM=function(){g.DZ(this);nG(this);lvC(this,this.J);if(this.W){var G=g.iE(this.element).x||0;this.W.EM(G,this.S)}}; g.P.j6B=function(){var G=this.api.getVideoData();G&&fvG(this,G)}; g.P.onClickCommand=function(G){if(G=g.y(G,eX)){var X=G.key;G.isVisible&&X&&tHS(this,X)}}; g.P.QtT=function(G){this.api.E_("innertubeCommand",this.Ge[G.id])}; g.P.o6=function(){nG(this);var G=this.api.getCurrentTime();(Gthis.clipEnd)&&this.Z_()}; g.P.vI=function(G){if(!G.defaultPrevented){var X=!1;switch(G.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);X=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);X=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);X=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);X=!0;break;case 38:this.api.G("enable_key_press_seek_logging")&&Gh(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);X=!0;break;case 40:this.api.G("enable_key_press_seek_logging")&&Gh(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),X=!0}X&&G.preventDefault()}}; g.P.hC=function(G,X){this.updateVideoData(X,G==="newdata")}; g.P.je=function(){this.hC("newdata",this.api.getVideoData())}; g.P.updateVideoData=function(G,X){X=X===void 0?!1:X;var Q=!!G&&G.eG();Q&&(uG(G)||p7T(this)?this.rS=!1:this.rS=G.allowLiveDvr,g.S_(this.api.getRootNode(),"ytp-enable-live-buffer",!(G==null||!uG(G))),fvG(this,G));S7Z(this,this.api.Tg());if(X){if(Q){X=G.clipEnd;this.clipStart=G.clipStart;this.clipEnd=X;X6(this);for(vG(this,this.AT,this.As);this.V.length>0;)this.V.pop().dispose();this.heatMarkersDecorations=[];this.Hs={};var R;(R=this.W)==null||R.reset();Hw(this);g.S_(this.api.getRootNode(),"ytp-fine-scrubbing-exp", ym(this))}else this.Z_();this.AR()}if(G){var S;R=((S=this.sM)==null?void 0:S.type)==="clips";if(S=!G.isLivePlayback){S=this.api.getVideoData();X=g.vM(S);Q=O8U(S);var Z;S=X!=null||Q!=null&&Q.length>0||((Z=S.C6)==null?void 0:Z.length)>0}if(S&&!R){Z=this.api.getVideoData();R=g.vM(Z);S=!1;if(R==null?0:R.markersMap){S=this.api.getVideoData();var H;S.Mz=((H=R.visibleOnLoad)==null?void 0:H.key)||S.Mz;H=g.e(R.markersMap);for(R=H.next();!R.done;R=H.next())R=R.value,R.key&&R.value&&(this.Hs[R.key]=R.value, R.value.onChapterRepeat&&(S.Sdb=R.value.onChapterRepeat));S.Mz!=null&&tHS(this,S.Mz);S=!0}var w;if(((w=Z.C6)==null?void 0:w.length)>0){w=g.rx.getState().entities;H=g.e(Z.C6);for(R=H.next();!R.done;R=H.next()){R=R.value;Q=void 0;X=(Q=bJ(w,"macroMarkersListEntity",R))==null?void 0:Q.markersList;var h=Q=void 0;if(((Q=X)==null?void 0:Q.markerType)==="MARKER_TYPE_TIMESTAMPS"||((h=X)==null?void 0:h.markerType)==="MARKER_TYPE_HEATMAP")this.wb[R]=X}S=this.s8()||S}!S&&(w=O8U(Z))&&(cyl(this,w),Z.gL=this.N, z6C(this));D_C(this,null);G.Dy&&this.V.length===0&&(G=G.Dy,w=G.key,G.isVisible&&w&&tHS(this,w))}else ry0(this),EdG(this)}nG(this)}; g.P.b$=function(G){this.T&&!g.N(G.state,32)&&this.api.getPresentingPlayerType()!==3&&this.T.cancel();var X;((X=this.W)==null?0:X.isEnabled)&&g.N(G.state,8)&&this.api.pauseVideo();G=this.api.getPresentingPlayerType()===2||!this.api.Tg()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.S_(this.qd,"ytp-hide-scrubber-button",G)}; g.P.WE=function(G){var X=!!this.sM!==!!G,Q=this.sM;this.sM=G;D_C(this,Q);(G==null?void 0:G.type)!=="clips"&&G||(G?(this.updateValue("clipstarticon",KXl()),this.updateValue("clipendicon",KXl()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",jcG()),this.updateValue("clipendicon",Y5l()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),X&&(this.updateVideoData(this.api.getVideoData(), !0),g.DZ(this)),X6(this));vG(this,this.AT,this.As)}; g.P.C9B=function(){this.api.publish("progressBarHoverStart")}; g.P.P9A=function(G,X,Q){var R=g.iE(this.element),S=A2(this).N,Z=Q?Q.getAttribute("data-tooltip"):void 0,H=Q?Q.getAttribute("data-position"):void 0,w=Q?Q.getAttribute("data-offset-y"):void 0;w=w?Number(w):0;H&&(G=cV(this.Y,Number(Q.getAttribute("data-position")),0)*S+g.iE(this.progressBar).x);this.bB.x=G-R.x;this.bB.y=X-R.y;G=A2(this);Q=iW(this,G);X=0;var h;if((h=this.api.getVideoData())==null?0:uG(h))(h=this.api.getProgressState().seekableEnd)&&Q>h&&(Q=h,G.position=cV(this.Y,h)*A2(this).N),X=this.Y.W; p7T(this)&&(X=this.Y.W);h=Z||g.sX(this.rS?Q-this.Y.N:Q-X);X=G.position+this.Nu;Q-=this.api.q9();var L;if((L=this.W)==null||!L.isEnabled)if(this.api.tR()){if(this.N.length>1){L=J2(this,this.bB.x,!0);if(!this.sM)for(R=0;R1)for(R=0;R0)for(L=this.bB.x,R=g.e(this.J),S=R.next();!S.done;S=R.next())S=S.value,H=NF(this,S.timeRangeStartMillis/ (this.Y.N*1E3),A2(this)),g.S_(S.element,"ytp-timed-marker-hover",H<=L&&H+6>=L);R=this.tooltip.scale;L=this.api.G("delhi_modern_web_player")?67:45;w=(isNaN(w)?0:w)-L*R;this.api.G("web_key_moments_markers")?this.gL?(L=$oV(this.J,Q*1E3),L=L!=null?this.J[L].title:""):(L=qF(this.N,Q*1E3),L=this.N[L].title):(L=qF(this.N,Q*1E3),L=this.N[L].title);L||(w+=16*R);this.tooltip.scale===.6&&(g.sB(this.api.Z())?(w=this.api.mp().getPlayerSize().height-225,R=this.api.G("delhi_modern_web_player")?70:110,w=L?w+R:w+ R+16):w=L?110:126);R=qF(this.N,Q*1E3);this.Mi=Ayl(this,Q,R)?R:Ayl(this,Q,R+1)?R+1:-1;g.S_(this.api.getRootNode(),"ytp-progress-bar-snap",this.Mi!==-1&&this.N.length>1);R=!1;S=g.e(this.heatMarkersDecorations);for(H=S.next();!H.done;H=S.next()){H=H.value;var k=Q*1E3;k>=H.visibleTimeRangeStartMillis&&k<=H.visibleTimeRangeEndMillis&&(L=H.label,h=g.sX(H.decorationTimeMillis/1E3),this.api.G("web_heat_marker_use_current_time")&&(h=g.sX(iW(this,G))),R=!0)}this.ze!==R&&(this.ze=R,this.api.logVisibility(this.bf, this.ze));g.S_(this.api.getRootNode(),"ytp-progress-bar-decoration",R);R=160*this.tooltip.scale*2;S=L.length*(this.j?8.55:5.7);S=S<=R?S:R;H=S<160*this.tooltip.scale;R=3;!H&&S/2>G.position&&(R=1);!H&&S/2>this.S-G.position&&(R=2);this.api.Z().J&&(w-=10);this.V.length&&this.V[0].eG&&(w-=14*(this.j?2:1),this.SA||(this.SA=!0,this.api.logVisibility(this.yH,this.SA)));var Y;if(ym(this)&&(((Y=this.W)==null?0:Y.isEnabled)||this.cM>0)){var M;w-=((M=this.W)==null?0:M.isEnabled)?Rp(this):this.cM}Y=void 0;ym(this)&& !this.api.G("web_player_hide_fine_scrubbing_edu")&&(Y="Pull up for precise seeking",this.IU||(this.IU=!0,this.api.logVisibility(this.Mj,this.IU)));this.tooltip.q4(X,Q,h,!!Z,w,L,R,Y)}else this.tooltip.q4(X,Q,h,!!Z,w);g.Gk(this.api.getRootNode(),"ytp-progress-bar-hover");W1G(this)}; g.P.qYp=function(){this.AR();g.QD(this.api.getRootNode(),"ytp-progress-bar-hover");this.SA&&(this.SA=!1,this.api.logVisibility(this.yH,this.SA));this.IU&&(this.IU=!1,this.api.logVisibility(this.Mj,this.IU));this.api.G("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.P.lsO=function(G,X){var Q=g.iE(this.element);this.l9=G-Q.x;ym(this)&&this.W&&(this.W.Mi?da(this.W,this.api.getCurrentTime()):m_G(this.W),this.W.show(),g.S_(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.W.isEnabled));this.eI&&(this.eI.dispose(),this.eI=null);this.WK=X;this.Co=this.api.getCurrentTime();this.N.length>1&&this.Mi!==-1?this.api.seekTo(this.N[this.Mi].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(iW(this,A2(this)),!1,void 0,void 0,7);g.Gk(this.element,"ytp-drag");(this.hE= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.P.G1p=function(){if(ym(this)&&this.W){var G=Rp(this);this.cM>=G*.5?(this.W.enable(),da(this.W,this.api.getCurrentTime()),REG(this,G)):Hw(this)}if(g.N(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var X;if((X=this.W)==null?0:X.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.N.length>1&&this.Mi!==-1)this.api.G("html5_enable_progress_bar_slide_seek_logging")&&Gh(this,this.Co,this.N[this.Mi].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.N[this.Mi].startTime/1E3,void 0,void 0,void 0,7);else{G=iW(this,A2(this));this.api.G("html5_enable_progress_bar_slide_seek_logging")&&Gh(this,this.Co,G,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(G,void 0,void 0,void 0,7);X=g.e(this.heatMarkersDecorations);for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,G*1E3>=Q.visibleTimeRangeStartMillis&&G*1E3<=Q.visibleTimeRangeEndMillis&& this.api.logClick(this.bf)}g.QD(this.element,"ytp-drag");this.DC&&(this.Yc.src=this.DC);this.hE&&!g.N(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.P.k1T=function(G,X){var Q=this,R=A2(this),S=iW(this,R);this.api.mp().ZO||(R.position>this.l9+2?this.f7&&(this.Yc.src=this.f7):R.position1);this.Ta(G&&this.U.mp().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.rb);var X=1;G&&this.isActive()&&(X=2);if(this.N!==X){this.N=X;G=this.U.G("delhi_modern_web_player_icons");switch(X){case 1:this.updateValue("icon",G?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",tW:!0,L:{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?{D:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",L:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.LXX())}g.S_(this.element,"ytp-remote-button-active",this.isActive())}}; q$.prototype.W=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var G=this.gb,X=this.element;if(G.M1())G.aW();else{G.initialize();a:{var Q=g.e(G.dS.items);for(var R=Q.next();!R.done;R=Q.next())if(R=R.value,R.priority===1){Q=R;break a}Q=null}Q&&(Q.open(),G.Pn(X));G.Pn(X)}}this.U.logClick(this.element)};g.T(w3,g.f);w3.prototype.N=function(G){var X=this.U.Z(),Q=400;this.U.G("web_player_small_hbp_settings_menu")&&X.S?Q=300:X.J&&(Q=200);G=this.W&&G.width>=Q;this.Ta(G);this.U.G("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,G&&this.C):this.U.logVisibility(this.element,G)}; w3.prototype.Y=function(){if(this.gb.rb)this.gb.aW();else{var G=g.a6(this.U.p7());G&&!G.loaded&&(G.Zk("tracklist",{includeAsr:!0}).length||G.load());this.U.logClick(this.element);this.gb.Pn(this.element)}}; w3.prototype.updateBadge=function(){var G=this.U.isHdr(),X=this.U.getPresentingPlayerType(),Q=X!==2&&X!==3,R=g.nC(this.U),S=Q&&!!g.AL(this.U.p7());X=S&&R.displayMode===1;R=S&&R.displayMode===2;Q=(S=X||R)||!Q?null:this.U.getPlaybackQuality();g.S_(this.element,"ytp-hdr-quality-badge",G);g.S_(this.element,"ytp-hd-quality-badge",!G&&(Q==="hd1080"||Q==="hd1440"));g.S_(this.element,"ytp-4k-quality-badge",!G&&Q==="hd2160");g.S_(this.element,"ytp-5k-quality-badge",!G&&Q==="hd2880");g.S_(this.element,"ytp-8k-quality-badge", !G&&Q==="highres");g.S_(this.element,"ytp-3d-badge-grey",!G&&S&&X);g.S_(this.element,"ytp-3d-badge",!G&&S&&R)};g.T(hM,TT);hM.prototype.isLoaded=function(){var G=g.gQ(this.U.p7());return G!==void 0&&G.loaded}; hM.prototype.GT=function(){g.gQ(this.U.p7())!==void 0&&this.U.getPresentingPlayerType()!==3?this.N||(this.gb.jj(this),this.N=!0):this.N&&(this.gb.Md(this),this.N=!1);KE(this,this.isLoaded())}; hM.prototype.onSelect=function(G){this.isLoaded();G?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",G)}; hM.prototype.zT=function(){this.N&&this.gb.Md(this);TT.prototype.zT.call(this)};g.T(LI,g.U8);LI.prototype.GT=function(){var G=this.U.getAvailableAudioTracks();G.length>1?(this.gJ(g.P1(G,this.N)),this.tracks=g.JO(G,this.N,this),this.countLabel.wM(G.length?" ("+G.length+")":""),this.publish("size-change"),this.mI(this.N(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; LI.prototype.fL=function(G){g.U8.prototype.fL.call(this,G);this.U.setAudioTrack(this.tracks[G]);this.U.publish("audiopreferencechange");this.gb.jc()}; LI.prototype.N=function(G){return G.toString()}; LI.prototype.Li=function(G){this.U.G("html5_enable_new_audio_settings_menu")?this.W&&(G?this.W.jj(this):this.W.Md(this)):g.U8.prototype.Li.call(this,G)};g.T(H2X,g.qz);g.P=H2X.prototype;g.P.zJ=function(){this.U.zJ()}; g.P.open=function(){g.a5(this.gb,this.JW)}; g.P.RC=function(){this.JW.Q7()>0&&this.U.getPresentingPlayerType()!==2&&this.U.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.P.vI=function(G){G.defaultPrevented||(this.open(),G.preventDefault())}; g.P.jj=function(G){this.JW.jj(G)}; g.P.Md=function(G){this.JW.Md(G)};g.T(kb,TT); kb.prototype.RC=function(){var G=this.U.getPresentingPlayerType();if(G!==2&&G!==3&&g.bG(this.U))this.N||(this.gb.jj(this),this.N=!0,this.W.push(this.B(this.U,"videodatachange",this.RC)),this.W.push(this.B(this.U,"videoplayerreset",this.RC)),this.W.push(this.B(this.U,"onPlaylistUpdate",this.RC)),this.W.push(this.B(this.U,"autonavchange",this.Y)),G=this.U.getVideoData(),this.Y(G.autonavState),this.U.logVisibility(this.element,this.N));else if(this.N){this.gb.Md(this);this.N=!1;G=g.e(this.W);for(var X= G.next();!X.done;X=G.next())this.Ds(X.value)}}; kb.prototype.Y=function(G){KE(this,G!==1)}; kb.prototype.onSelect=function(G){this.U.f5(G?2:1);this.N&&(this.U.logVisibility(this.element,this.N),this.U.logClick(this.element))}; kb.prototype.zT=function(){this.N&&this.gb.Md(this);TT.prototype.zT.call(this)};g.T(q7i,g.qz);q7i.prototype.onClick=function(G){G.preventDefault();var X,Q;(X=g.Ua(this.U))==null||(Q=X.Eb())==null||Q.aW();var R,S;(R=g.Ua(this.U))==null||(S=R.Jv())==null||S.Pn(G.target)};g.T(wNT,g.U8);g.P=wNT.prototype; g.P.RC=function(){var G=this.U.getPresentingPlayerType();if(G!==2&&G!==3){this.yH=this.U.a4();var X=this.U.getAvailableQualityLevels();if(this.N){this.W={};G=g.x6(this.U,"getAvailableQualityData",[]);G=g.e(G);for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value,this.W[Q.qualityLabel]=Q;G=Object.keys(this.W);X[X.length-1]==="auto"&&G.push("auto");this.Yc=new Set(X)}else if(this.V){Q=g.x6(this.U,"getAvailableQualityData",[]);G=[];Q=g.e(Q);for(var R=Q.next();!R.done;R=Q.next())R=R.value,this.J[R.quality]= R,R.quality&&G.push(R.quality);X[X.length-1]==="auto"&&G.push("auto")}else G=X;g.rTZ(this.U)&&this.U.qN()&&G.unshift("missing-qualities");X=this.U.app.eA();Q=X.getVideoData();if(!Q.W||!Q.W.video||Q.W.video.qualityOrdinal<1080||Q.UI)X=!1;else{R=/^qsa/.test(Q.clientPlaybackNonce);var S="r";Q.W.id.indexOf(";")>=0&&(R=/^[a-p]/.test(Q.clientPlaybackNonce),S="x");R?(X.Ni("iqss",{trigger:S},!0),X=!0):X=!1}X&&G.unshift("inline-survey");this.gJ(G);X=this.U.getVideoData().cotn?!0:!1;Q=this.AT.xu();Q=!g.sB(this.U.Z())|| !(X===void 0?0:X)||!(Q===void 0||Q);X=this.JW;Q=Q===void 0?!1:Q;X.vy&&g.S_(X.VH("ytp-panel-footer"),"ytp-panel-hide-footer",Q===void 0?!1:Q);if(G.length){this.kA();this.enable(!0);return}}this.enable(!1)}; g.P.kA=function(){if(this.N){var G=this.U.getPreferredQuality();this.Yc.has(G)&&(this.S=this.U.getPlaybackQuality(),this.j=this.U.getPlaybackQualityLabel(),G==="auto"?(this.mI(G),this.wM(this.jN(G))):this.mI(this.j))}else G=this.U.getPreferredQuality(),this.options[G]&&(this.S=this.U.getPlaybackQuality(),this.mI(G),G==="auto"&&this.wM(this.jN(G)))}; g.P.fL=function(G){if(G!=="missing-qualities"){g.U8.prototype.fL.call(this,G);var X=this.N?this.W[G]:this.J[G];var Q=X==null?void 0:X.quality,R=X==null?void 0:X.formatId,S=X==null?void 0:X.paygatedQualityDetails;X=S==null?void 0:S.endpoint;if(S){var Z;S=(Z=this.options[G])==null?void 0:Z.element;this.U.logClick(S)}if(this.N){var H,w;if((H=g.y(X,g.hmo))==null?0:(w=H.popup)==null?0:w.notificationActionRenderer)this.U.E_("innertubeCommand",X);else if(X){this.U.E_("innertubeCommand",X);return}R?this.U.setPlaybackQuality(Q, R):this.U.setPlaybackQuality(Q)}else{if(this.V){var h,L;if((h=g.y(X,g.hmo))==null?0:(L=h.popup)==null?0:L.notificationActionRenderer)this.U.E_("innertubeCommand",X);else if(X){this.U.E_("innertubeCommand",X);return}}this.U.setPlaybackQuality(G)}this.gb.aW();this.RC()}}; g.P.open=function(){for(var G=g.e(Object.values(this.options)),X=G.next();!X.done;X=G.next()){X=X.value;var Q=void 0;this.U.hasVe((Q=X)==null?void 0:Q.element)&&(Q=void 0,this.U.logVisibility((Q=X)==null?void 0:Q.element,!0))}g.U8.prototype.open.call(this);this.U.logClick(this.element)}; g.P.A3=function(G,X,Q){var R=this;if(G==="missing-qualities")return new g.qz({D:"a",aU:["ytp-menuitem"],L:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.Z().j,tabindex:"0",role:"menuitemradio"},K:[{D:"div",aU:["ytp-menuitem-label"],WM:"{{label}}"}]},X,this.jN(G));if(G!=="inline-survey"){var S,Z=(S=this.N?this.W[G]:this.J[G])==null?void 0:S.paygatedQualityDetails;S=Z==null?void 0:Z.veType;Z=Z==null?void 0:Z.trackingParams;X=g.U8.prototype.A3.call(this,G,X,Q);Z?(this.U.createServerVe(X.element, this,!0),this.U.setTrackingParams(X.element,Z)):S&&this.U.createClientVe(X.element,this,S,!0);return X}G=[{D:"span",WM:"Looks good?"}];Q=g.e([!0,!1]);Z=Q.next();for(S={};!Z.done;S={B3:void 0},Z=Q.next())S.B3=Z.value,Z=new g.f({D:"span",X:"ytp-menuitem-inline-survey-response",K:[S.B3?ToG():mMG()],L:{tabindex:"0",role:"button"}}),Z.listen("click",function(H){return function(){var w=R.U.app.eA();w.Ni("iqsr",{tu:H.B3});w.getVideoData().UI=!0;R.gb.aW();R.RC()}}(S)),G.push(Z); return new g.qz({D:"div",X:"ytp-menuitem",L:{"aria-disabled":"true"},K:[{D:"div",aU:["ytp-menuitem-label"],K:G}]},X)}; g.P.jN=function(G,X){X=X===void 0?!1:X;if(G==="missing-qualities")return{D:"div",WM:"Missing options?"};if(G==="inline-survey")return"";var Q=this.V||this.N?[kbV(this,G,X,!1)]:[LmU(this,G)];var R=this.U.getPreferredQuality();X||R!=="auto"||G!=="auto"||(Q.push(" "),this.N?Q.push(kbV(this,this.j,X,!0,["ytp-menu-label-secondary"])):this.V?Q.push(kbV(this,this.S,X,!0,["ytp-menu-label-secondary"])):Q.push(LmU(this,this.S,["ytp-menu-label-secondary"])));return{D:"div",K:Q}};g.T(Yb,lW);Yb.prototype.Y=function(){lW.prototype.Y.call(this);this.j&&Y7e(this)}; Yb.prototype.DC=function(){this.AT()}; Yb.prototype.Yc=function(){this.U.setPlaybackRate(this.N,!0)}; Yb.prototype.J=function(G){lW.prototype.J.call(this,G);this.AT();Y7e(this);G.preventDefault()};g.T(jI,g.f);g.P=jI.prototype;g.P.init=function(){this.W5(this.N);this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.Y)}; g.P.pF=function(G){if(!G.defaultPrevented){switch(G.keyCode){case 37:case 40:var X=-this.T;break;case 39:case 38:X=this.T;break;default:return}this.W5(this.N+X);G.preventDefault()}}; g.P.V4=function(G){var X=this.N;X+=(G.deltaX||-G.deltaY)<0?-this.j:this.j;this.W5(X);G.preventDefault()}; g.P.M7=function(G){G=(G-g.iE(this.V).x)/this.AT*this.range+this.W;this.W5(G)}; g.P.W5=function(G,X){X=X===void 0?"":X;G=g.pT(G,this.W,this.Y);X===""&&(X=G.toString());this.updateValue("valuenow",G);this.updateValue("valuetext",X);this.yH.style.left=(G-this.W)/this.range*(this.AT-this.Mi)+"px";this.N=G}; g.P.focus=function(){this.QH.focus()};g.T(M$,jI);M$.prototype.Yc=function(){this.U.setPlaybackRate(this.N,!0)}; M$.prototype.W5=function(G){jI.prototype.W5.call(this,G,M7V(this,G).toString());this.S&&(juw(this),this.DC())}; M$.prototype.updateValues=function(){var G=this.U.getPlaybackRate();M7V(this,this.N)!==G&&(this.W5(G),juw(this))};g.T(mu0,g.Sa);mu0.prototype.focus=function(){this.N.focus()};g.T(oZS,TG);g.T(Pk0,g.U8);g.P=Pk0.prototype;g.P.jN=function(G){return G==="1"?"Normal":G.toLocaleString()}; g.P.GT=function(){var G,X=(G=this.U.getVideoData())==null?void 0:G.Yr();G=this.U.getPresentingPlayerType(X);this.enable(G!==2&&G!==3);KmG(this)}; g.P.gJ=function(G){g.U8.prototype.gJ.call(this,G);this.J&&this.J.W.focus()}; g.P.Li=function(G){g.U8.prototype.Li.call(this,G);G?(this.AT=this.B(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),KmG(this),su0(this,this.U.getPlaybackRate())):(this.Ds(this.AT),this.AT=null)}; g.P.onPlaybackRateChange=function(G){var X=this.U.getPlaybackRate();!this.V&&this.j.includes(X)||TYG(this,X);su0(this,G)}; g.P.A3=function(G,X,Q){return G===this.N&&ray(this.U)?g.U8.prototype.A3.call(this,G,X,Q,{D:"div",X:"ytp-speed-slider-menu-footer",K:[this.J]}):G===this.W&&uvU(this.U,this.yH)?eEe(this,G,X,Q):g.U8.prototype.A3.call(this,G,X,Q)}; g.P.fL=function(G){g.U8.prototype.fL.call(this,G);G===this.W?this.U.E_("innertubeCommand",this.yH):G===this.N?this.U.setPlaybackRate(this.S,!0):this.U.setPlaybackRate(Number(G),!0);ray(this.U)&&G===this.N||this.gb.jc()}; g.P.oN=function(G){var X=G===this.N;this.V=!1;X&&mV(this.U)&&!ray(this.U)?(G=new oZS(this.U),g.a5(this.gb,G)):g.U8.prototype.oN.call(this,G)};g.T(EZZ,g.U8);g.P=EZZ.prototype;g.P.mI=function(G){g.U8.prototype.mI.call(this,G)}; g.P.J9=function(G){return G.option.toString()}; g.P.getOption=function(G){return this.settings[G]}; g.P.jN=function(G){return this.getOption(G).text||""}; g.P.fL=function(G){g.U8.prototype.fL.call(this,G);this.publish("settingChange",this.setting,this.settings[G].option)};g.T(ur,g.K5);ur.prototype.sb=function(G){for(var X=g.e(Object.keys(G)),Q=X.next();!Q.done;Q=X.next()){var R=Q.value;if(Q=this.t0[R]){var S=G[R].toString();R=!!G[R+"Override"];Q.options[S]&&(Q.mI(S),Q.W.element.setAttribute("aria-checked",String(!R)),Q.N.element.setAttribute("aria-checked",String(R)))}}}; ur.prototype.UR=function(G,X){this.publish("settingChange",G,X)};g.T(Pw,g.U8);Pw.prototype.N=function(G){return G.languageCode}; Pw.prototype.jN=function(G){return this.languages[G].languageName||""}; Pw.prototype.fL=function(G){this.publish("select",G);this.U.logClick(this.element);g.E8(this.gb)};g.T(zEi,g.U8);g.P=zEi.prototype;g.P.U0=function(G){return g.Mn(G)?"__off__":G.displayName}; g.P.jN=function(G){return G==="__off__"?"Off":G==="__translate__"?"Auto-translate":G==="__contribute__"?"Add subtitles/CC":G==="__correction__"?"Suggest caption corrections":(G==="__off__"?{}:this.tracks[G]).displayName}; g.P.fL=function(G){if(G==="__translate__")this.N.open();else if(G==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var X=g.Ym(this.U.Z(),this.U.getVideoData());g.dA(X)}else if(G==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var Q=caV(this);sU(this,Q);g.U8.prototype.fL.call(this,this.U0(Q));var R,S;Q=(X=this.U.getVideoData().getPlayerResponse())==null?void 0:(R=X.captions)==null?void 0:(S=R.playerCaptionsTracklistRenderer)== null?void 0:S.openTranscriptCommand;this.U.E_("innertubeCommand",Q);this.gb.jc();this.W&&this.U.logClick(this.W)}else{if(G==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();X=caV(this);sU(this,X);g.U8.prototype.fL.call(this,this.U0(X));var Z,H;X=(Q=this.U.getVideoData().getPlayerResponse())==null?void 0:(Z=Q.captions)==null?void 0:(H=Z.playerCaptionsTracklistRenderer)==null?void 0:H.openTranscriptCommand;this.U.E_("innertubeCommand",X)}else this.U.logClick(this.element), sU(this,G==="__off__"?{}:this.tracks[G]),g.U8.prototype.fL.call(this,G);this.gb.jc()}}; g.P.GT=function(){var G=this.U.getOptions();G=G&&G.indexOf("captions")!==-1;var X=this.U.getVideoData(),Q=X&&X.tF,R,S=!((R=this.U.getVideoData())==null||!g.MY(R));R={};if(G||Q){var Z;if(G){var H=this.U.getOption("captions","track");R=this.U.getOption("captions","tracklist",{includeAsr:!0});var w=S?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.JO(R,this.U0,this);S=g.P1(R,this.U0);var h,L;caV(this)&&((Z=X.getPlayerResponse())==null?0:(h=Z.captions)==null?0:(L=h.playerCaptionsTracklistRenderer)== null?0:L.openTranscriptCommand)&&S.push("__correction__");if(w.length&&!g.Mn(H)){if((Z=H.translationLanguage)&&Z.languageName){var k=Z.languageName;Z=w.findIndex(function(Y){return Y.languageName===k}); gT0(w,Z)}xue(this.N,w);S.push("__translate__")}Z=this.U0(H)}else this.tracks={},S=[],Z="__off__";S.unshift("__off__");this.tracks.__off__={};Q&&S.unshift("__contribute__");this.tracks[Z]||(this.tracks[Z]=H,S.push(Z));this.gJ(S);this.mI(Z);H&&H.translationLanguage?this.N.mI(this.N.N(H.translationLanguage)):pw0(this.N);G&&this.V.sb(this.U.getSubtitlesUserSettings());this.countLabel.wM(R&&R.length?" ("+R.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.P.sV=function(G){var X=this.U.getOption("captions","track");X=g.uY(X);X.translationLanguage=this.N.languages[G];sU(this,X)}; g.P.UR=function(G,X){if(G==="reset")this.U.resetSubtitlesUserSettings();else{var Q={};Q[G]=X;this.U.updateSubtitlesUserSettings(Q)}O2V(this,!0);this.S.start();this.V.sb(this.U.getSubtitlesUserSettings())}; g.P.xjH=function(G){G||g.Ax(this.S)}; g.P.zT=function(){g.Ax(this.S);g.U8.prototype.zT.call(this)}; g.P.open=function(){g.U8.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.U.createClientVe(this.W,this,167341),this.U.logVisibility(this.W,!0))};g.T(gZX,g.rL);g.P=gZX.prototype; g.P.initialize=function(){if(!this.isInitialized){var G=this.U.Z();this.isInitialized=!0;try{this.pP=new wNT(this.U,this)}catch(Q){g.EL(Error("QualityMenuItem creation failed"))}g.d(this,this.pP);var X=new zEi(this.U,this);g.d(this,X);G.Y||(X=new hM(this.U,this),g.d(this,X));G.enableSpeedOptions&&(X=new Pk0(this.U,this),g.d(this,X));(g.Jn(G)||G.S)&&(G.W||G.CO)&&(X=new q7i(this.U,this),g.d(this,X));G.hS&&!G.G("web_player_move_autonav_toggle")&&(X=new kb(this.U,this),g.d(this,X));G.G("html5_enable_new_audio_settings_menu")? (this.Kc=new H2X(this.U,this),g.d(this,this.Kc)):(G=new LI(this.U,this),g.d(this,G));this.U.publish("settingsMenuInitialized");Z2C(this.settingsButton,this.dS.Q7())}}; g.P.jj=function(G){this.initialize();this.dS.jj(G);Z2C(this.settingsButton,this.dS.Q7())}; g.P.Md=function(G){this.rb&&this.dS.Q7()<=1&&this.hide();this.dS.Md(G);Z2C(this.settingsButton,this.dS.Q7())}; g.P.Pn=function(G){this.initialize();this.dS.Q7()>0&&g.rL.prototype.Pn.call(this,G)}; g.P.aW=function(){this.D_?this.D_=!1:g.rL.prototype.aW.call(this)}; g.P.show=function(){g.rL.prototype.show.call(this);g.Gk(this.U.getRootNode(),"ytp-settings-shown")}; g.P.hide=function(){g.rL.prototype.hide.call(this);g.QD(this.U.getRootNode(),"ytp-settings-shown")}; g.P.cR=function(G){this.U.logVisibility(this.element,G);this.U.publish("settingsMenuVisibilityChanged",G)};g.T(BYe,g.f);g.P=BYe.prototype;g.P.onClick=function(){if(Th(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var G=!1,X=g.BA(g.la(),65);g.sB(this.U.Z())&&X!=null&&(G=!X);G&&this.U.Z().G("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.P.vrp=function(G){var X,Q;(X=g.Ua(this.U))==null||(Q=X.Eb())==null||Q.Pn(G)}; g.P.isEnabled=function(){var G=this.U.getOption("captions","track");return!(!G||!G.displayName)}; g.P.GT=function(){var G=Th(this),X=300;this.U.Z().J&&(X=480);this.U.G("delhi_modern_web_player_icons")&&this.updateValue("icon",lHS(this));if(this.U.Z().S){this.updateValue("title",g.d4(this.U,"Subtitles/closed captions","c"));this.update({"tooltip-title":g.d4(this.U,"Subtitles/closed captions","c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var Q=G}else{if(G)(Q=this.VH("ytp-subtitles-button-icon"))==null||Q.setAttribute("fill-opacity","1"),this.U.Z().G("player_tooltip_data_title_killswitch")? this.updateValue("title",g.d4(this.U,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.d4(this.U,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{if(this.U.G("delhi_modern_web_player_icons")){var R;(R=this.VH("ytp-subtitles-button-icon"))==null||R.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var S;(S=this.VH("ytp-subtitles-button-icon"))==null||S.setAttribute("fill-opacity","0.3")}this.updateValue("title", "Subtitles/closed captions unavailable");this.update({"tooltip-title":"Subtitles/closed captions unavailable"});this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}Q=!0}this.tooltip.dZ();Q=Q&&this.U.mp().getPlayerSize().width>=X;this.Ta(Q);this.U.G("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,Q&&this.C):this.U.logVisibility(this.element,Q);G?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.P.ej=function(G){g.f.prototype.ej.call(this,G);this.U.Z().G("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.rb&&G)};g.T(g.KI,g.f);g.P=g.KI.prototype;g.P.canShowCountdown=function(){return!r3(this)&&!eI(this)}; g.P.o6=function(){var G=this.api.mp().getPlayerSize().width,X=this.j;this.api.Z().J&&(X=400);X=G>=X&&(!eI(this)||!g.N(this.api.getPlayerStateObject(),64));this.Ta(X);g.S_(this.element,"ytp-time-display-allow-autohide",X&&G<400);G=this.api.getProgressState();if(X){var Q=this.api.getPresentingPlayerType();X=this.api.getCurrentTime(Q,!1);this.W&&(X-=G.airingStart);r3(this)&&(X-=this.sM.startTimeMs/1E3);this.canShowCountdown()&&this.Y&&(X-=this.api.getDuration(Q,!1));var R=g.sX(X);this.V!==R&&(this.updateValue("currenttime", R),this.V=R);Q=r3(this)?(this.sM.endTimeMs-this.sM.startTimeMs)/1E3:this.api.getDuration(Q,!1);R=g.sX(Q);this.S!==R&&(this.updateValue("duration",R),this.S=R,X&&(X=g.QM("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.sX(X,!0),DURATION:g.sX(Q,!0)}),this.updateValue("timeDisplayAriaLabel",X)))}Fmw(this,G.isAtLiveHead);Ck7(this,this.api.getLoopRange())}; g.P.onLoopRangeChange=function(G){var X=this.sM!==G;this.sM=G;X&&(this.o6(),t7w(this))}; g.P.idO=function(){this.api.setLoopRange(null)}; g.P.WyH=function(){this.Y=!this.Y;this.o6()}; g.P.onVideoDataChange=function(G,X,Q){this.updateVideoData((this.api.Z().G("enable_topsoil_wta_for_halftime")||this.api.Z().G("enable_topsoil_wta_for_halftime_live_infra"))&&Q===2?this.api.getVideoData(1):X);this.o6();t7w(this)}; g.P.updateVideoData=function(G){this.Zm=G.isLivePlayback&&!G.KO;this.W=uG(G);this.isPremiere=G.isPremiere;g.S_(this.element,"ytp-live",eI(this));this.api.G("delhi_modern_web_player")&&this.VH("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.P.onClick=function(G){G.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.P.zT=function(){this.N&&this.N();g.f.prototype.zT.call(this)};g.T(IHG,g.f);g.P=IHG.prototype;g.P.GG=function(){var G=this.api.Yu();this.Y!==G&&(this.Y=G,V7w(this,this.api.getVolume(),this.api.isMuted()))}; g.P.cC=function(G){this.Ta(G.width>=350)}; g.P.If=function(G){if(!G.defaultPrevented){var X=G.keyCode,Q=null;X===37?Q=this.volume-5:X===39?Q=this.volume+5:X===36?Q=0:X===35&&(Q=100);Q!==null&&(Q=g.pT(Q,0,100),Q===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(Q)),G.preventDefault())}}; g.P.D4=function(G){var X=G.deltaX||-G.deltaY;G.deltaMode?this.api.setVolume(this.volume+(X<0?-10:10)):this.api.setVolume(this.volume+g.pT(X/10,-10,10));G.preventDefault()}; g.P.stB=function(){ap(this,this.N,!0,this.W,this.api.sR());this.j=this.volume;this.api.isMuted()&&this.api.unMute()}; g.P.Rf=function(G){var X=this.Y?78:52,Q=this.Y?18:12;G-=g.iE(this.T).x;this.api.setVolume(g.pT((G-Q/2)/(X-Q),0,1)*100)}; g.P.pZ_=function(){ap(this,this.N,!1,this.W,this.api.sR());this.volume===0&&(this.api.mute(),this.api.setVolume(this.j))}; g.P.onVolumeChange=function(G){V7w(this,G.volume,G.muted)}; g.P.Qd=function(){ap(this,this.N,this.isDragging,this.W,this.api.sR())}; g.P.zT=function(){g.f.prototype.zT.call(this);g.QD(this.J,"ytp-volume-slider-active")};g.T(EU,g.f); EU.prototype.onVideoDataChange=function(){var G=this.api.Z();this.EM();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).KY;this.Ta(this.visible);this.api.logVisibility(this.element,this.visible&&this.C);if(this.visible){var X=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",X)}G.Y&&(this.N&&(this.Ds(this.N),this.N=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Gk(this.element,"no-link")); X=this.api.Z();G=this.api.getVideoData();var Q="";X.Y||(X=g.Ml(X),X.indexOf("www.")===0&&(X=X.substring(4)),Q=g.PP(G)?"Watch on YouTube Music":X==="youtube.com"?"Watch on YouTube":g.QM("Watch on $WEBSITE",{WEBSITE:X}));this.api.G("player_tooltip_data_title_killswitch")?this.updateValue("title",Q):this.updateValue("tooltip-title",Q)}; EU.prototype.onClick=function(G){this.api.G("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var X=this.api.Z(),Q=this.api.getVideoUrl(!g.To(G),!1,!0,!0);if(g.Jn(X)){var R={};g.Jn(X)&&g.x6(this.api,"addEmbedsConversionTrackingParams",[R]);Q=g.on(Q,R)}g.rU(Q,this.api,G);this.api.G("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; EU.prototype.EM=function(){var G={D:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},K:[{D:"path",tW:!0,X:"ytp-svg-fill",L:{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 "}}]}, X=28666,Q=this.api.getVideoData();this.api.isEmbedsShortsMode()?G={D:"svg",L:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},K:[{D:"path",L:{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.PP(Q)&&(G={D:"svg",L:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},K:[{D:"path",L:{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",L:{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",L:{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",L:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{D:"path",L:{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",L:{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",L:{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",L:{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",L:{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",L:{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",L:{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",L:{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"}}]},X=216163);g.PP(Q)?g.Gk(this.element,"ytp-youtube-music-button"):g.QD(this.element,"ytp-youtube-music-button");G.L=Object.assign({},G.L,{"aria-hidden":"true"});this.updateValue("logoSvg",G);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,X,!0)}; EU.prototype.ej=function(G){g.f.prototype.ej.call(this,G);this.api.logVisibility(this.element,this.visible&&G)};g.T(pNV,g.KP);g.P=pNV.prototype;g.P.onProgress=function(){if(this.U.G("web_player_max_seekable_on_ended")||!g.N(this.U.getPlayerStateObject(),2))B6(this.X9),this.progressBar.o6(),this.QH.o6()}; g.P.jP=function(){this.yl();if(B6(this.X9))this.progressBar.AR();else this.onProgress()}; g.P.nF=function(){this.onProgress();this.j.start()}; g.P.yl=function(){var G;if(G=!this.U.Z().W){G=this.progressBar;var X=2*g.PM()*G.S,Q=G.Y;G=(Q.N-Q.W)*1E3/G.api.getPlaybackRate()/X<300}G=G&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;X=!G;B6(this.X9)&&(G=X=!1);X?this.Yc||(this.Yc=this.B(this.U,"progresssync",this.onProgress)):this.Yc&&(this.Ds(this.Yc),this.Yc=null);G?this.j.isActive()||this.j.start():this.j.stop()}; g.P.EM=function(){var G=this.U.Yu(),X=this.U.mp().getPlayerSize(),Q=this.U.mp().ZO,R=fHi(this),S=DuS(this),Z=Math.max(X.width-R*2,100);if(this.As!==X.width||this.bB!==G||this.U.G("web_player_rtr_ctrls")&&this.yM!==Q)this.As=X.width,this.bB=G,this.yM=Q,this.W.element.style.width=S+"px",this.W.element.style.left=R+"px",g.XNG(this.progressBar,R,S,G),this.U.JS().eh=S;Q=this.V;Z=Math.min(570*(G?1.5:1),Z);G=Math.min(413*(G?1.5:1),Math.round((X.height-NYT(this))*.82));Q.maxWidth=Z;Q.maxHeight=G;Q.td();this.yl(); this.N9&&diy(this.KO,X.height)}; g.P.onVideoDataChange=function(){var G=this.U.getVideoData();this.wb.style.background=G.KY?G.v1:"";this.yH&&Abw(this.yH,G.showSeekingControls);this.AT&&Abw(this.AT,G.showSeekingControls)}; g.P.V0=function(){return this.W.element};g.T(AaT,s8);g.P=AaT.prototype;g.P.kQ=function(G){G.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.E_("innertubeCommand",this.onClickCommand),this.zA())}; g.P.zA=function(){this.enabled=!1;this.j.hide()}; g.P.onVideoDataChange=function(G,X){G==="dataloaded"&&nZS(this);G=[];var Q,R,S,Z;if(X=(Z=g.y((Q=X.getWatchNextResponse())==null?void 0:(R=Q.playerOverlays)==null?void 0:(S=R.playerOverlayRenderer)==null?void 0:S.suggestedActionsRenderer,Vev))==null?void 0:Z.suggestedActions)for(Q=g.e(X),R=Q.next();!R.done;R=Q.next())(R=g.y(R.value,INo))&&g.y(R.trigger,ten)&&G.push(R);if(G.length!==0){Q=[];G=g.e(G);for(R=G.next();!R.done;R=G.next())if(R=R.value,S=g.y(R.trigger,ten))Z=(Z=R.title)?g.q1(Z):"View Chapters", X=S.timeRangeStartMillis,S=S.timeRangeEndMillis,X!=null&&S!=null&&R.tapCommand&&(Q.push(new g.yG(X,S,{priority:9,namespace:"suggested_action_button_visible",id:Z})),this.suggestedActions[Z]=R.tapCommand);this.U.PZ(Q)}}; g.P.iq=function(){return this.enabled}; g.P.cR=function(){this.enabled?this.SA.start():u3(this);this.BI()}; g.P.zT=function(){nZS(this);s8.prototype.zT.call(this)};var rt={},zh=(rt.CHANNEL_NAME="ytp-title-channel-name",rt.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",rt.LINK="ytp-title-link",rt.SESSIONLINK="yt-uix-sessionlink",rt.SUBTEXT="ytp-title-subtext",rt.TEXT="ytp-title-text",rt.TITLE="ytp-title",rt);g.T(cw,g.f);cw.prototype.onClick=function(G){this.api.logClick(this.element);var X=this.api.Z(),Q=this.api.getVideoUrl(!g.To(G),!1,!0);g.Jn(X)&&(X={},g.x6(this.api,"addEmbedsConversionTrackingParams",[X]),Q=g.on(Q,X));g.rU(Q,this.api,G)}; cw.prototype.GT=function(){var G=this.api.getVideoData(),X=this.api.Z();this.updateValue("title",G.title);var Q={D:"a",X:zh.CHANNEL_NAME,L:{href:"{{channelLink}}",target:"_blank"},WM:"{{channelName}}"};this.api.Z().Y&&(Q={D:"span",X:zh.CHANNEL_NAME,WM:"{{channelName}}",L:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",Q);$uS(this);this.api.getPresentingPlayerType()===2&&(Q=this.api.getVideoData(),Q.videoId&&Q.isListed&&Q.author&&Q.bB&&Q.profilePicture?(this.updateValue("channelLink", Q.bB),this.updateValue("channelName",Q.author),this.updateValue("channelTitleFocusable","0")):$uS(this));Q=X.externalFullscreen||!this.api.isFullscreen()&&X.Fs;g.S_(this.link,zh.FULLERSCREEN_LINK,Q);X.yH||!G.videoId||Q||G.KY||X.Y?this.N&&(this.updateValue("url",null),this.Ds(this.N),this.N=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.N||(this.N=this.B(this.link,"click",this.onClick)));X.Y&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Jn(X)?G.expandedTitle: G.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.T(g.g3,g.f);g.P=g.g3.prototype;g.P.setEnabled=function(G){if(this.type!=null)if(G)switch(this.type){case 3:case 2:UU(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.J=G}; g.P.q4=function(G,X,Q,R,S,Z,H,w){if(!this.DC||this.env.J){this.type===3&&this.AR();this.type!==1&&(g.Jx(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.J&&this.fade.show(),this.W&&this.W.dispose(),(this.W=this.api.tR())&&this.W.subscribe("l",this.n3,this));if(w){var h=g.Qj(this.bg).height||141;this.Mi.style.bottom=h+2+"px"}else this.Mi.style.display="none";this.env.G("delhi_modern_web_player")?(this.update({pillTimeStamp:Q,pillTitle:Z!=null?Z:"",eduText:w!=null?w:""}),g.Gk(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:Q,title:Z!=null?Z:"",eduText:w!=null?w:""}),g.S_(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!Z));this.api.isInline()&&g.Gk(this.bottomText,"ytp-modern-tooltip-text");g.S_(this.element,"ytp-text-detail",!!R);Q=-1;this.W&&(Q=H4(this.W,243*this.scale),this.env.G("web_l3_storyboard")&&this.W.levels.length===4&&(Q=this.W.levels.length-1),Q=bNy(this.W,Q,X));i2S(this,Q);if(H)switch(X=g.Qj(this.element).width,H){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=X+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=X/2+"px",this.title.style.textAlign="center"}JaG(this,!!R,G,S)}}; g.P.Xr=function(){this.type===1&&this.AR()}; g.P.ya=function(G,X){if(this.type)if(this.type===3)this.AR();else return;b2G(this,G,3,X)}; g.P.dZ=function(){this.N&&!this.T&&(this.env.G("player_tooltip_data_title_killswitch")?this.N.hasAttribute("title")&&(this.Y=this.N.getAttribute("title")||"",this.N.removeAttribute("title"),this.J&&UU(this)):this.N.hasAttribute("data-tooltip-title")&&(this.Y=this.N.getAttribute("data-tooltip-title")||"",this.N.removeAttribute("data-tooltip-title"),this.J&&UU(this)))}; g.P.n3=function(G,X){G<=this.V&&this.V<=X&&(G=this.V,this.V=NaN,i2S(this,G))}; g.P.gg=function(){nsi(this.W,this.V,243*this.scale)}; g.P.AR=function(){switch(this.type){case 2:var G=this.N;G.removeEventListener("mouseout",this.j);G.addEventListener("mouseover",this.S);G.removeEventListener("blur",this.j);G.addEventListener("focus",this.S);Gpi(this);break;case 3:Gpi(this);break;case 1:this.W&&(this.W.unsubscribe("l",this.n3,this),this.W=null),this.api.removeEventListener("videoready",this.AT),this.yH.stop()}this.type=null;this.J&&this.fade.hide()}; g.P.uZ=function(){if(this.N)for(var G=0;G=0;X--)if(this.yO[X]===G){this.yO.splice(X,1);break}ld(this.X9,64,this.yO.length>0)}; g.P.ww=function(){this.api.dJ()&&this.api.sW();return!!this.XP||qti(this)||g.Df.prototype.ww.call(this)}; g.P.Kx=function(){var G=!this.ww(),X=G&&this.api.dJ()&&!g.N(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().KY&&!this.api.Z().Y&&!this.api.isEmbedsShortsMode(),Q=this.i5&&g.D0(this.api)&&g.N(this.api.getPlayerStateObject(),128);G||Q?(this.XX.show(),this.Bx.show()):(this.XX.hide(),this.Bx.hide(),this.api.uZ(this.Dn.element));X?this.O$.Pn():this.O$.aW();this.iT&&yaZ(this.iT,this.OdC||!G);this.api.G("web_player_hide_overflow_button_if_empty_menu")&&wDe(this);g.Df.prototype.Kx.call(this)}; g.P.Eh=function(G,X,Q,R,S){G.style.left="";G.style.top="";G.style.bottom="";var Z=g.Qj(G),H=R||this.iT&&g.Ks(this.iT.V0(),X),w=R=null;Q!=null&&H||(R=g.Qj(X),w=g.GX(X,this.api.getRootNode()),Q==null&&(Q=w.x+R.width/2));Q-=Z.width/2;H?(X=this.iT,R=fHi(X),w=DuS(X),H=this.api.mp().getPlayerSize().height,Q=g.pT(Q,R,R+w-Z.width),Z=H-NYT(X)-Z.height):g.Ks(this.Dn.element,X)?(X=this.api.mp().getPlayerSize().width,Q=g.pT(Q,12,X-Z.width-12),Z=this.Yu()?this.FZ:this.eD,this.api.Z().playerStyle==="gvn"&&(Z+= 20),this.i5&&(Z-=this.Yu()?26:18)):(X=this.api.mp().getPlayerSize(),Q=g.pT(Q,12,X.width-Z.width-12),Z=w.y>(X.height-R.height)/2?w.y-Z.height-12:w.y+R.height+12);G.style.top=Z+(S||0)+"px";G.style.left=Q+"px"}; g.P.jP=function(G){G&&(this.api.uZ(this.Dn.element),this.iT&&this.api.uZ(this.iT.V0()));this.jK&&(g.S_(this.contextMenu.element,"ytp-autohide",G),g.S_(this.contextMenu.element,"ytp-autohide-active",!0));g.Df.prototype.jP.call(this,G)}; g.P.Hw=function(){g.Df.prototype.Hw.call(this);this.jK&&(g.S_(this.contextMenu.element,"ytp-autohide-active",!1),this.jK&&(this.contextMenu.hide(),this.x_&&this.x_.hide()))}; g.P.V5=function(G,X){var Q=this.api.mp().getPlayerSize();Q=new g.ps(0,0,Q.width,Q.height);if(G||!B6(this.X9)&&!this.ww()){if(this.api.Z().fQ||X)G=this.Yu()?this.FZ:this.eD,Q.top+=G,Q.height-=G;this.iT&&(Q.height-=NYT(this.iT))}return Q}; g.P.GG=function(G){var X=this.api.getRootNode();G?X.parentElement?(X.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.Z().externalFullscreen||(X.parentElement.insertBefore(this.zl.element,X),X.parentElement.insertBefore(this.WQ.element,X.nextSibling))):g.aU(Error("Player not in DOM.")):(X.setAttribute("aria-label","YouTube Video Player"),this.zl.detach(),this.WQ.detach());this.EM();this.Ol()}; g.P.Yu=function(){if(this.api.G("web_player_use_screen_width_for_big_mode")){var G;return this.api.mp().getPlayerSize().width>=((G=g.i2(this.api.Z().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?G:2E3)}G=this.api.Z();return this.api.isFullscreen()&&!G.J||!1}; g.P.showControls=function(G){this.jD=!G;this.Kx()}; g.P.EM=function(){var G=this.Yu();this.tooltip.scale=G?1.5:1;this.contextMenu&&g.S_(this.contextMenu.element,"ytp-big-mode",G);this.Kx();this.api.G("web_player_hide_overflow_button_if_empty_menu")||wDe(this);this.Ol();var X=this.api.isEmbedsShortsMode();X&&G?(G=(this.api.mp().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.DN(this.Dn.element,"padding-left",G+"px"),g.DN(this.Dn.element,"padding-right",G+"px")):X&&(g.DN(this.Dn.element,"padding-left",""),g.DN(this.Dn.element,"padding-right", ""));g.Df.prototype.EM.call(this)}; g.P.uS=function(){if(qti(this)&&!g.D0(this.api))return!1;var G=this.api.getVideoData();return!g.Jn(this.api.Z())||this.api.getPresentingPlayerType()===2||!this.o$||((G=this.o$||G.o$)?(G=G.embedPreview)?(G=G.thumbnailPreviewRenderer,G=G.videoDetails&&g.y(G.videoDetails,gpC)||null):G=null:G=null,G&&G.collapsedRenderer&&G.expandedRenderer)?g.Df.prototype.uS.call(this):!1}; g.P.Ol=function(){g.Df.prototype.Ol.call(this);this.api.logVisibility(this.title.element,!!this.GO);this.XE&&this.XE.ej(!!this.GO);this.channelAvatar.ej(!!this.GO);this.overflowButton&&this.overflowButton.ej(this.lT()&&!!this.GO);this.shareButton&&this.shareButton.ej(!this.lT()&&!!this.GO);this.W1&&this.W1.ej(!this.lT()&&!!this.GO);this.searchButton&&this.searchButton.ej(!this.lT()&&!!this.GO);this.copyLinkButton&&this.copyLinkButton.ej(!this.lT()&&!!this.GO);if(!this.GO){this.api.uZ(this.Dn.element); for(var G=0;G5&&X.Ni("glrs",{cmt:Q});X.seekTo(0,{seekSource:58});X.Ni("glrre",{cmt:Q})}}; F6.prototype.zT=function(){this.N=null;g.I.prototype.zT.call(this)};g.T(g.CI,Ej);g.P=g.CI.prototype;g.P.isView=function(){return!0}; g.P.qK=function(){var G=this.mediaElement.getCurrentTime();if(G1;HH(G.Zu(),R-.01)&&!S&&(VU(this,4),Q.isActive=!1,Q.ZB=Q.ZB||Q.isActive,(this.C===1?this.N:this.W).Ni("sbh",{}),X.isActive=!0,X.ZB=X.ZB||X.isActive,this.C!==0&&(this.N.getVideoData().qs=!0));G=this.V.W;if(this.V.N.isActive&&G.isActive&&(VU(this,5),this.C!==0)){G=this.W.P1();Q=this.N.P1(); this.N.Ni("sbs",{citag:Q==null?void 0:Q.itag,nitag:G==null?void 0:G.itag});this.W.Ni("gitags",{pitag:Q==null?void 0:Q.itag,citag:G==null?void 0:G.itag});var Z;(Z=this.W)==null||Z.w1()}}}; g.P.Uq=function(){this.Ji()&&this.KL("player-reload-after-handoff")}; g.P.KL=function(G,X){X=X===void 0?{}:X;if(!this.U_()&&this.status.status!==6){var Q=this.status.status>=4&&G!=="player-reload-after-handoff";this.status={status:Infinity,error:G};if(this.N&&this.W){var R=this.W.getVideoData().clientPlaybackNonce;this.N.uf(new g.YE("dai.transitionfailure",Object.assign(X,{cpn:R,transitionTimeMs:this.Bd,msg:G})));this.N.v4(Q)}this.Pf.reject(G);this.dispose()}}; g.P.Ji=function(){return this.status.status>=4&&this.status.status<6}; g.P.zT=function(){TuG(this);this.N.unsubscribe("newelementrequired",this.Uq,this);if(this.Y){var G=this.Y.W;this.Y.N.b9.unsubscribe("updateend",this.F4,this);G.b9.unsubscribe("updateend",this.F4,this)}g.I.prototype.zT.call(this)}; g.P.Fw=function(G){g.Lw(G,128)&&this.KL("player-error-event")};g.T(Ip,g.I);Ip.prototype.clearQueue=function(G,X){G=G===void 0?!1:G;X=X===void 0?!1:X;this.V&&this.V.reject("Queue cleared");this.app.Z().G("html5_gapless_fallback_on_qoe_restart_v2")||X&&this.W&&this.W.v4(!1);d3(this,G)}; Ip.prototype.yu=function(){return!this.N}; Ip.prototype.Ji=function(){var G;return((G=this.Y)==null?void 0:G.Ji())||!1}; Ip.prototype.zT=function(){d3(this);g.I.prototype.zT.call(this)};g.T(z1V,g.ic);g.P=z1V.prototype;g.P.getVisibilityState=function(G,X,Q,R,S,Z,H,w){return G?4:xHU()?3:X?2:Q?1:R?5:S?7:Z?8:H?9:w?10:0}; g.P.PO=function(G){this.fullscreen!==G&&(this.fullscreen=G,this.cR())}; g.P.setMinimized=function(G){this.W!==G&&(this.W=G,this.cR())}; g.P.setInline=function(G){this.inline!==G&&(this.inline=G,this.cR())}; g.P.Pu=function(G){this.pictureInPicture!==G&&(this.pictureInPicture=G,this.cR())}; g.P.setSqueezeback=function(G){this.Y!==G&&(this.Y=G,this.cR())}; g.P.FR=function(G){this.V!==G&&(this.V=G,this.cR())}; g.P.HF=function(){return this.N}; g.P.Kp=function(){return this.fullscreen!==0}; g.P.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.P.Dm=function(){return this.fullscreen}; g.P.isMinimized=function(){return this.W}; g.P.isInline=function(){return this.inline}; g.P.isBackground=function(){return xHU()}; g.P.TR=function(){return this.pictureInPicture}; g.P.p_=function(){return!1}; g.P.SP=function(){return this.Y}; g.P.Qu=function(){return this.V}; g.P.cR=function(){this.publish("visibilitychange");var G=this.getVisibilityState(this.HF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.TR(),this.p_(),this.SP(),this.Qu());G!==this.S&&this.publish("visibilitystatechange");this.S=G}; g.P.zT=function(){cei(this.C);g.ic.prototype.zT.call(this)};g.T(g.Ww,g.I);g.P=g.Ww.prototype;g.P.zT=function(){this.videoData=this.playerState=null;g.I.prototype.zT.call(this)}; g.P.addCueRange=function(){}; g.P.jo=function(){}; g.P.CI=function(){}; g.P.f6=function(){return!1}; g.P.Et=function(){return!1}; g.P.W4=function(){}; g.P.Gy=function(){}; g.P.Yy=function(){return[]}; g.P.zJ=function(){}; g.P.Ca=function(){}; g.P.Cp=function(){return 1}; g.P.getAudioTrack=function(){return this.getVideoData().ER}; g.P.qV=function(){return null}; g.P.getAvailableAudioTracks=function(){return[]}; g.P.a4=function(){return[]}; g.P.MQ=function(){return[]}; g.P.PF=function(){return""}; g.P.Gj=function(){return[]}; g.P.kV=function(){}; g.P.Mc=function(){return 0}; g.P.getCurrentTime=function(){return 0}; g.P.il=function(){}; g.P.P1=function(){}; g.P.L7=function(){return{}}; g.P.getDuration=function(){return 0}; g.P.D5=function(){return 0}; g.P.mY=function(){return 0}; g.P.ys=function(){return!1}; g.P.zx=function(){return 0}; g.P.Yg=function(){return 0}; g.P.ST=Gi(7);g.P.HO=function(){return 0}; g.P.vD=function(){return!1}; g.P.Ru=function(){return 0}; g.P.EY=function(){return null}; g.P.Hd=function(){return null}; g.P.Bn=function(){return 0}; g.P.Rd=function(){return 0}; g.P.rZ=function(){return g.F(function(G){g.rX(G)})}; g.P.Jc=Gi(15);g.P.getPlaybackQuality=function(){return"auto"}; g.P.getPlaybackRate=function(){return 1}; g.P.getPlayerState=function(){this.playerState||(this.playerState=new g.gO);return this.playerState}; g.P.getPlayerType=function(){return 0}; g.P.getPlaylistSequenceForTime=function(){return null}; g.P.Ao=function(){return function(){}}; g.P.lA=function(){return""}; g.P.getPreferredQuality=function(){return"unknown"}; g.P.nm=function(){}; g.P.getProximaLatencyPreference=function(){return 0}; g.P.Ia=function(){return jX}; g.P.tR=function(){return null}; g.P.getStoryboardFormat=function(){return null}; g.P.getStreamTimeOffset=function(){return 0}; g.P.FS=function(){return 0}; g.P.q9=function(){return 0}; g.P.m8=function(){return{Y5:[],ul:[],currentTime:0,KI:"",droppedVideoFrames:0,isGapless:!1,yu:!0,lQ:0,Vk:0,x6:0,MP:0,pB:0,aI:[],rl:[],rO:null,playerState:this.getPlayerState(),xI:null,wC:"",totalVideoFrames:0}}; g.P.getUserAudio51Preference=function(){return 0}; g.P.getUserPlaybackQualityPreference=function(){return""}; g.P.getVideoData=function(){this.videoData||(this.videoData=new g.ML(this.tT),g.d(this,this.videoData));return this.videoData}; g.P.Ig=function(){return null}; g.P.lR=function(){return null}; g.P.iL=function(){}; g.P.getVideoLoadedFraction=function(){return 0}; g.P.Cm=function(){}; g.P.handleError=function(){}; g.P.v4=function(){}; g.P.P0=function(){}; g.P.XS=Gi(40);g.P.pg=function(){return!1}; g.P.hasSupportedAudio51Tracks=function(){return!1}; g.P.kf=function(){return!1}; g.P.HF=function(){return!1}; g.P.isAtLiveHead=function(){return!1}; g.P.Ec=function(){return!0}; g.P.isGapless=function(){return!1}; g.P.isHdr=function(){return!1}; g.P.Fk=function(){return!1}; g.P.jL=function(){return!1}; g.P.Ik=function(){return!1}; g.P.isProximaLatencyEligible=function(){return!1}; g.P.yu=function(){return!0}; g.P.Uo=function(){return!1}; g.P.fb=function(){return!1}; g.P.pn=function(){}; g.P.V2=function(){}; g.P.w1=function(){}; g.P.Wu=function(){}; g.P.qf=function(){}; g.P.Kn=function(){}; g.P.j9=function(){}; g.P.Uf=Gi(50);g.P.Zn=Gi(21);g.P.Hq=function(){}; g.P.pauseVideo=function(){}; g.P.prefetchKeyPlay=function(){}; g.P.playVideo=function(){return g.F(function(G){return G.return()})}; g.P.Ys=function(){}; g.P.FA=Gi(27);g.P.Od=Gi(33);g.P.IE=function(){}; g.P.Ni=function(){}; g.P.q1=function(){}; g.P.nx=function(){}; g.P.Uz=function(){}; g.P.uf=function(){}; g.P.Bq=function(){}; g.P.TN=function(){}; g.P.QT=function(){}; g.P.vg=function(){}; g.P.L5=function(){}; g.P.Gi=function(){}; g.P.removeCueRange=function(){}; g.P.gf=function(){}; g.P.lf=function(){return[]}; g.P.IL=function(){}; g.P.hR=function(){}; g.P.aV=function(){}; g.P.cg=function(){}; g.P.Ak=function(){}; g.P.xs=function(){}; g.P.seekTo=function(){}; g.P.sendAbandonmentPing=function(){}; g.P.sendVideoStatsEngageEvent=function(){}; g.P.q0=function(){}; g.P.setLoop=function(){}; g.P.M4=function(){}; g.P.setMediaElement=function(){}; g.P.PW=function(){}; g.P.setPlaybackRate=function(){}; g.P.WR=function(){}; g.P.GA=function(){}; g.P.po=function(){}; g.P.setProximaLatencyPreference=function(){}; g.P.Jx=function(){}; g.P.cW=function(){}; g.P.UH=function(){}; g.P.OZ=function(){}; g.P.In=function(){}; g.P.setUserAudio51Preference=function(){}; g.P.dn=function(){}; g.P.g2=function(){return!1}; g.P.jT=function(){}; g.P.FJ=function(){return!1}; g.P.Ci=function(){}; g.P.EZ=function(){}; g.P.BW=function(){}; g.P.stopVideo=function(){}; g.P.subscribe=function(){return NaN}; g.P.Ej=function(){}; g.P.togglePictureInPicture=function(){}; g.P.Bu=function(){return 0}; g.P.q3=function(){}; g.P.unsubscribe=function(){return!1}; g.P.m6=function(){}; g.P.I_=function(){return!1}; g.P.Fd=function(){}; g.P.dN=function(){}; g.P.eC=function(){};g.T(fI,g.I);g.P=fI.prototype;g.P.get=function(G){pI(this);var X=this.data.find(function(Q){return Q.key===G}); return X?X.value:null}; g.P.set=function(G,X,Q){this.remove(G,!0);pI(this);G={key:G,value:X,expire:Infinity};Q&&isFinite(Q)&&(Q*=1E3,G.expire=(0,g.TB)()+Q);for(this.data.push(G);this.data.length>this.Y;)(Q=this.data.shift())&&DB(this,Q,!0);yU(this)}; g.P.remove=function(G,X){X=X===void 0?!1:X;var Q=this.data.find(function(R){return R.key===G}); Q&&(DB(this,Q,X),g.gH(this.data,function(R){return R.key===G}),yU(this))}; g.P.removeAll=function(G){if(G=G===void 0?!1:G)for(var X=g.e(this.data),Q=X.next();!Q.done;Q=X.next())DB(this,Q.value,G);this.data=[];yU(this)}; g.P.zT=function(){var G=this;g.I.prototype.zT.call(this);this.data.forEach(function(X){DB(G,X,!0)}); this.data=[]};g.T(g.N$,g.I);g.P=g.N$.prototype;g.P.zT=function(){for(var G=g.e(Object.values(this.Y)),X=G.next();!X.done;X=G.next())X.value.dispose();ccl(this);this.N.dispose();g.I.prototype.zT.call(this)}; g.P.IC=function(G){return G?G===1?this.T:this.W.getVideoData().enableServerStitchedDai&&G===2?this.W.getVideoData().RP?this.Y[2]||this.W:this.W:this.Y[G]||null:this.W}; g.P.a6=function(G){var X=G.cpn;G=G.playerType;if(X)a:{G=g.e(Object.values(this.Y));for(var Q=G.next();!Q.done;Q=G.next())if(Q=Q.value,Q.PF()===X){X=Q;break a}X=this.S[X]||null}else X=G?this.IC(G):this.W;return X}; g.P.dh=function(){return this.T}; g.P.xk=function(G){this.T=G}; g.P.eA=function(){return this.W}; g.P.o5=function(G){this.W=G;AM(this)}; g.P.gI=Gi(46);g.P.Cf=Gi(48);g.T(IUC,g.XK);g.P=IUC.prototype;g.P.zK=function(){}; g.P.PF=function(){return this.videoData.clientPlaybackNonce}; g.P.getVideoData=function(){if(g.XK.prototype.getVideoData.call(this).G("html5_huli_ssdai_use_playback_state")){var G=hMe(this.UY,g.XK.prototype.getCurrentTime.call(this))||g.XK.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==G.clientPlaybackNonce&&dbw(this.W,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:G.clientPlaybackNonce});return this.videoData}return hMe(this.UY,g.XK.prototype.getCurrentTime.call(this))||g.XK.prototype.getVideoData.call(this)}; g.P.getCurrentTime=function(G){var X=g.XK.prototype.getCurrentTime.call(this);if(g.XK.prototype.getVideoData.call(this).G("html5_huli_ssdai_use_playback_state")){this.N===0?G||(X-=this.startTimeSecs):G&&(X=this.N);var Q=G?this.UY.sz||g.XK.prototype.getCurrentTime.call(this):ZxZ(this.UY,g.XK.prototype.getCurrentTime.call(this));X!==Q&&dbw(this.W,"time"+(G!=null?G:!1),{time:X,ref:Q,ct:G!=null?G:!1})}else X=G?this.UY.sz||X:ZxZ(this.UY,X);return X}; g.P.getDuration=function(){if(g.XK.prototype.getVideoData.call(this).G("html5_huli_ssdai_use_playback_state")){var G=qb0(this.UY,g.XK.prototype.getCurrentTime.call(this));this.duration!==G&&dbw(this.W,"duration",{dur:this.duration,ref:G});return this.duration}return qb0(this.UY,g.XK.prototype.getCurrentTime.call(this))}; g.P.GJ=function(G){this.duration=G};g.$b.prototype.La=function(G,X){if(X===1)return this.N.get(G);if(X===2)return this.Y.get(G);if(X===3)return this.W.get(G)}; g.$b.prototype.Zt=Gi(58);g.$b.prototype.Ax=function(G,X,Q,R){Q={zC:R,jt:Q};X?this.Y.set(G,Q):this.N.set(G,Q)}; g.$b.prototype.clearAll=function(){this.N.clear();this.Y.clear();this.W.clear()}; pDZ.prototype.clear=function(){this.W=[];this.Y.clear();this.V.clear();this.N.clear()}; pDZ.prototype.a6=function(G){var X=G.cpn;G=G.sY;if(X&&(X=this.Y.get(X))||G&&(X=(this.C?this.Y:this.V).get(G)))return X}; g.T(g.br,g.I);g.P=g.br.prototype;g.P.onCueRangeEnter=function(G){var X=G.getId();this.Ws({oncueEnter:1,cpn:X,start:G.start,end:G.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Mc()||0).toFixed(3)});var Q=this.N.a6({cpn:X});this.Ws({enterAdCueRange:1});var R=this.BR||this.I4().cpn,S;R=(S=this.N.a6({cpn:R}))!=null?S:this.I4();Q&&(S=this.playback.getCurrentTime(),Q.startTimeSecs=G.start/1E3,Q={L1:R,XN:Q,Ei:S},zMT(this,X,G.start/1E3,S),RR(this,Q))}; g.P.UV=function(G,X){if(G&&X){var Q,R=((Q=this.app.Xz().V)==null?void 0:Q.PF())||this.playback.PF(),S;Q=(S=this.N.a6({cpn:R}))!=null?S:this.I4();var Z;G=(Z=this.N.a6({cpn:G}))!=null?Z:this.I4();G.startTimeSecs=X;Z=this.playback.getCurrentTime();zMT(this,R,X,Z);RR(this,{L1:Q,XN:G,Ei:Z})}}; g.P.Sg=function(G,X){if(G===this.playback.PF())nI(this.app.Xz(),this.playback,!1);else{var Q=this.Mi.get(G);Q?(Q.N=0,Q.startTimeSecs=X,nI(this.app.Xz(),Q,!0)):this.Ws({nop_s:G})}}; g.P.onCueRangeExit=function(G){for(var X=this.playback.getCurrentTime()*1E3,Q=G.getId(),R=g.e(this.W.values()),S=R.next();!S.done;S=R.next())if(S=S.value,S.getId()!==Q&&X>=S.start&&X<=S.end)return;if(Q=this.N.a6({cpn:Q}))X=this.playback.getCurrentTime(),R=this.I4(),R.startTimeSecs=G.end/1E3,Q={L1:Q,XN:R,Ei:X},zMT(this,this.playback.PF(),G.end/1E3,X),RR(this,Q)}; g.P.I4=function(){return{cpn:this.playback.PF(),durationMs:0,z1:0,playerType:1,rM:0,videoData:this.playback.getVideoData(),errorCount:0,f2:""}}; g.P.seekTo=function(G,X,Q,R){G=G===void 0?0:G;X=X===void 0?{}:X;Q=Q===void 0?!1:Q;R=R===void 0?null:R;Qa(this,this.BR);if(this.playback.getVideoData().Yr()&&G<=this.sz)this.playback.pauseVideo(),this.sz=0,c9U(this,G);else if(this.AT=!0,Q)$bl(this,G,X);else{Q=this.app.eA();var S=Q===this.DC?this.cM:null;Gy(this,!1);this.bB=G;this.KO=X;R!=null&&this.BM.start(R);Q&&(this.cM=S||Q.getPlayerState(),Q.BW(X),this.DC=Q)}}; g.P.zT=function(){Gy(this,!1);YbT(this);jOG(this);g.I.prototype.zT.call(this)}; g.P.Ht=function(G){this.As=G;this.Ws({swebm:G})}; g.P.hX=function(G,X,Q){if(Q&&X){var R=this.C.get(G);if(R){R.locations||(R.locations=new Map);var S=Number(X.split(";")[0]);Q=new g.D1(Q);this.Ws({hdlredir:1,itag:X,seg:G,hostport:AX(Q)});R.locations.set(S,Q)}}}; g.P.Qs=function(G,X,Q,R,S,Z){var H=R===3,w=oO7(this,G,X,R,Q,Z);if(!w){X9(this,X,H);var h=g.MBC(this,X)?"undec":"ncp";this.Ws({gvprp:h,mt:G,seg:X,tt:R,itag:Q,ce:Z});return null}H||this.C.set(X,w);Z=w.f2;var L;R=((L=this.La(X-1,R,S))==null?void 0:L.zC)||"";R===""&&this.Ws({eds:1});L=Ptw(this,w.ssdaiAdsConfig);S=this.playback.getVideoData();var k;H=((k=S.W)==null?void 0:k.containerType)||0;k=S.Nz[H];w=w.vX&&X>=w.vX?w.vX:void 0;k={JF:Z?eMX(this,Z):[],adsConfig:L,zC:R,Px:w,YA:FH(k.split(";")[0]),Vl:k.split(";")[1]|| ""};w={qo:k};this.SA&&(G={gvprpro:"v",sq:X,mt:G.toFixed(3),itag:Q,acpns:((h=k.JF)==null?void 0:h.join("_"))||"none",abid:Z},this.Ws(G));return w}; g.P.pT=function(G){a:{if(!this.yX){var X=uRX(this,G);if(!(this.playback.getVideoData().Yr()&&(X==null?0:X.uu)))break a}X=void 0}var Q=X;if(!Q)return this.Ws({gvprp:"ncp",mt:G}),null;X=Q.f2;var R=Ptw(this,Q.ssdaiAdsConfig);Q=Q.vX&&Q.Qx&&G>=Q.Qx?Q.vX:void 0;var S=this.playback.getVideoData(),Z,H=((Z=S.W)==null?void 0:Z.containerType)||0;Z=S.Nz[H];Z={JF:X?eMX(this,X):[],adsConfig:R,Px:Q,YA:FH(Z.split(";")[0]),Vl:Z.split(";")[1]||""};var w;G={gvprpro:"v",mt:G.toFixed(3),acpns:((w=Z.JF)==null?void 0:w.join("_"))|| "none",abid:X};this.Ws(G);return Z}; g.P.J3=function(G,X,Q,R,S,Z){var H=Number(Q.split(";")[0]),w=R===3;G=oO7(this,G,X,R,Q,Z);this.Ws({gdu:1,seg:X,itag:H,pb:""+!!G});if(!G)return X9(this,X,w),null;G.locations||(G.locations=new Map);if(!G.locations.has(H)){var h,L;Z=(h=G.videoData.getPlayerResponse())==null?void 0:(L=h.streamingData)==null?void 0:L.adaptiveFormats;if(!Z)return this.Ws({gdu:"noadpfmts",seg:X,itag:H}),X9(this,X,w),null;h=Z.find(function(M){return M.itag===H}); if(!h||!h.url){var k=G.videoData.videoId;G=[];var Y=g.e(Z);for(R=Y.next();!R.done;R=Y.next())G.push(R.value.itag);this.Ws({gdu:"nofmt",seg:X,vid:k,itag:H,fullitag:Q,itags:G.join(",")});X9(this,X,w);return null}G.locations.set(H,new g.D1(h.url,!0))}Z=G.locations.get(H);if(!Z)return this.Ws({gdu:"nourl",seg:X,itag:H}),X9(this,X,w),null;Z=new tQ(Z);this.As&&(Z.get("dvc")?this.Ws({dvc:Z.get("dvc")||""}):Z.set("dvc","webm"));(R=(Y=this.La(X-1,R,S))==null?void 0:Y.zC)&&Z.set("daistate",R);G.vX&&X>=G.vX&& Z.set("skipsq",""+G.vX);(Y=this.playback.getVideoData().clientPlaybackNonce)&&Z.set("cpn",Y);Y=[];G.f2&&(Y=eMX(this,G.f2),Y.length>0&&Z.set("acpns",Y.join(",")));w||this.C.set(X,G);w=null;w=Z.get("aids");R=Z.Rt();(R==null?void 0:R.length)>2048&&this.Ws({urltoolong:1,sq:X,itag:H,len:R.length});this.SA&&(R&&(Z=G.cpn,S=G.f2,EOS(this,Z,S),S&&!this.Js.has(S)&&(Z=r9w(this,Z,S),h=aqT(this,S),this.Ws({iofa:Z}),this.Ws({noawnzd:h-Z}),this.Ws({acpns:Y.join("."),aids:(k=w)==null?void 0:k.replace(/,/g,".")}), this.Js.add(S))),this.Ws({gdu:"v",seg:X,itag:Q,ast:G.z1.toFixed(3),alen:G.durationMs.toFixed(3),acpn:G.cpn,avid:G.videoData.videoId}));return R}; g.P.So=function(G,X,Q){Q=Q===void 0?!1:Q;var R=mCe(this,G,X);if(R){var S=void 0,Z=R.f2;if(Z){this.Ws({skipadonsq:X,sts:Q,abid:Z,acpn:R.cpn,avid:R.videoData.videoId});Q=this.N.N.get(Z);if(!Q)return;Q=g.e(Q);for(Z=Q.next();!Z.done;Z=Q.next())Z=Z.value,Z.vX=X,Z.Qx=G,Z.z1>R.z1&&(S=Z)}Qa(this,this.BR);this.Y=R.cpn;sOU(this);this.api.G("html5_ssdai_enable_media_end_cue_range")&&this.playback.q3(this.Y);G=this.playback.getCurrentTime();this.tT.G("html5_use_new_ssdai_transition_detector")&&this.Sg(this.playback.PF(), G);TmX(this,R,S,G,G,!1,!0);Oxi(this)}}; g.P.wI=function(){for(var G=g.e(this.N.W),X=G.next();!X.done;X=G.next())X=X.value,X.vX=NaN,X.Qx=NaN;sOU(this);this.Ws({rsac:"resetSkipAd",sac:this.Y});this.Xm.delete(this.Y);this.Y=""}; g.P.La=function(G,X,Q){return this.yH.La(G,X,Q)}; g.P.Zt=Gi(57); g.P.Ax=function(G,X,Q,R,S,Z,H,w,h){R.length>0&&this.Ws({onssinfo:1,sq:G,start:X.toFixed(3),cpns:R.join(","),ds:S.join(","),isVideo:H?1:0});h&&this.yH.Ax(G,H,w,h);if(H){if(R.length&&S.length)for(this.Xm.has(R[0])&&this.Ws({skipfail:1,sq:G,acpn:R[0]}),G=X+this.FS(),Q=0;Q0&&(this.NN=0,this.BR="",this.tT.G("html5_huli_ssdai_use_playback_state")&&this.Sg(this.playback.PF(),0),this.api.publish("serverstitchedvideochange"));this.playback.Gy(Q,R);return!0}; g.P.Cb=function(){this.Ws({rstdaist:1});this.yH.clearAll()}; g.P.YJ=function(G){var X;if(G!==((X=this.S)==null?void 0:X.identifier))this.Ws({ignorenoad:G});else{this.f7.add(G);this.Ws({noadrcv:G});var Q;((Q=this.S)==null?void 0:Q.identifier)===G&&JM(this)}}; g.P.z7=function(G){if(this.yX)return this.Ws({dai_disabled:G.event}),!1;if(this.playback.getVideoData().Yr()&&(G.event==="continue"||G.event==="stop"))return!1;var X=OS(this.api.p7());if(X=X?X.z7(G):!1)this.V={yy:G.identifier,FU:G.startSecs};else if(this.V&&this.V.yy===G.identifier&&G.startSecs>this.V.FU+1){this.Ws({cueStChg:G.identifier,oldSt:this.V.FU.toFixed(3),newSt:G.startSecs.toFixed(3),abid:this.V.e7});if(this.V.e7){var Q=G.startSecs-this.V.FU,R=this.N.N.get(this.V.e7);if(R){R=g.e(R);for(var S= R.next();!S.done;S=R.next())S=S.value,S.z1>=0&&(S.z1+=Q*1E3,this.tT.G("html5_ssdai_update_timeline_on_start_time_change")&&(S.rM+=Q*1E3),this.Ws({newApEt:S.z1,newApPrt:S.rM,acpn:S.cpn}))}}this.V.FU=G.startSecs}this.tT.G("html5_ssdai_log_missing_ad_config_reason")&&(X?this.QH.add(G.identifier):this.QH.has(G.identifier)&&this.QH.delete(G.identifier));return X}; g.P.Rg=function(G){var X="";G?G.event==="unknown"?X="unknown":this.QH.has(G.identifier)?this.V&&this.V.yy===G.identifier?this.V.yy===G.identifier?X="pending":p0(this.wb,function(Q){return Q.identifier===G.identifier})||(X="noAdsAdded"):X="wrongAdBreakInfo":X="unscheduled":X="noCuepoint"; return X}; g.P.D7=function(G){return this.yX?!1:!!uRX(this,G)}; g.P.Ug=function(G){var X=this;if(this.tT.G("html5_lifa_ignore_multiple_skips")&&this.Yc)return this.Ws({ufs_ad:this.Y,ufs_cur:this.BR,ufs_cont:this.I4().cpn}),!1;Qa(this,this.BR);this.playback.pauseVideo();var Q=this.playback.getCurrentTime(),R=this.N.a6({cpn:this.BR});if(!R)return this.Ws({skipFail:Q}),!1;this.Y=this.BR;this.AT=!1;this.api.G("html5_ssdai_enable_media_end_cue_range")&&this.playback.q3(this.Y);xC7(this,R.f2);gO0(this,R,this.I4(),G);c9U(this,Q,{seekSource:89,nY:"lifa_skip"});this.Yc|| (this.Yc=this.events.B(this.api,"progresssync",function(){ju(X.api.gZ(),(0,g.TB)(),"ad_to_video");X.Yc&&(X.events.Ds(X.Yc),X.Yc=null)})); return!0}; g.P.Ws=function(G,X){((X===void 0?0:X)||this.SA||this.playback.getVideoData().Yr())&&this.playback.Ni("sdai",G)}; var iQT=0;g.T(lqV,g.I);g.P=lqV.prototype;g.P.onCueRangeEnter=function(G){if(this.N===this.app.eA()){var X=this.C.get(G);X?IqZ(this,X.target,X.Bd,G):this.uf("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:G.toString()})}else if(X=this.W.find(function(S){return S.hD.C4===G})){var Q=X.hD,R=Q.target; Q=Q.Bd;R?IqZ(this,R,Q,G):VBZ(this,X.rM,Q,G)}}; g.P.onQueuedVideoLoaded=function(){var G=this.J;qy(this);if(G){if(!H0(this,G)){var X=this.app.eA();this.uf("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:X==null?void 0:X.getVideoData().clientPlaybackNonce,ccpn:""+G.playerVars.cpn})}this.app.eA().addCueRange(G.hD.C4)}}; g.P.seekTo=function(G,X,Q,R){G=G===void 0?0:G;X=X===void 0?{}:X;R=R===void 0?null:R;if(Q===void 0?0:Q)UCV(this,G,X);else{Q=this.app.eA()||null;var S=Q===this.V?this.S:null;wB(this,!1);this.AT=G;this.j=X;R!=null&&this.T.start(R);Q&&(this.S=S||Q.getPlayerState(),Q.BW(),this.V=Q)}}; g.P.Vu=function(G){g.Lw(G,128)&&fqC(this)}; g.P.isManifestless=function(){return Fu(this.N.getVideoData())}; g.P.zT=function(){wB(this,!1);NmV(this);g.I.prototype.zT.call(this)}; g.P.uf=function(G,X){this.N.uf(new g.YE(G,X))}; var BmZ=0;var A9w="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.T(hm,g.I);hm.prototype.AM=function(G){if(G)return this.W.get(G)}; hm.prototype.zT=function(){this.N.removeAll();this.W.removeAll();g.I.prototype.zT.call(this)};g.gwZ=Fp(function(){var G=window.AudioContext||window.webkitAudioContext;try{return new G}catch(X){return X.name}});g.T(J9i,g.f);g.P=J9i.prototype;g.P.Ki=function(){g.Xj(this.element,g.Wl.apply(0,arguments))}; g.P.hR=function(){this.b6&&(this.b6.removeEventListener("focus",this.I7),g.Tt(this.b6),this.b6=null)}; g.P.Vy=function(){this.U_();var G=this.app.Z();G.dB||this.Ki("tag-pool-enabled");G.S&&this.Ki(g.KR.HOUSE_BRAND);G.playerStyle==="gvn"&&(this.Ki("ytp-gvn"),this.element.style.backgroundColor="transparent");G.C7&&(this.ZD=g.$Q("yt-dom-content-change",this.resize,this));this.B(window,"orientationchange",this.resize,this);this.B(window,"resize",this.resize,this)}; g.P.hk=function(G){g.RI(this.app.Z());this.FV=!G;Lu(this)}; g.P.resize=function(){if(this.b6){var G=this.uF();if(!G.isEmpty()){this.app.PM.isFullscreen()&&t8()&&this.jY.start();var X=!g.nT(G,this.xZ.getSize()),Q=RCy(this);X&&(this.xZ.width=G.width,this.xZ.height=G.height);G=this.app.Z();(Q||X||this.JK||G.C7)&&this.app.PM.publish("resize",this.getPlayerSize())}}}; g.P.hC=function(G,X){this.updateVideoData(X)}; g.P.updateVideoData=function(G){if(this.b6){var X=this.app.Z();WI&&(this.b6.setAttribute("x-webkit-airplay","allow"),G.title?this.b6.setAttribute("title",G.title):this.b6.removeAttribute("title"));this.b6.setAttribute("controlslist","nodownload");X.KD&&G.videoId&&(this.b6.poster=G.yJ("default.jpg"))}X=g.DI(G,"yt:bgcolor");this.rX.style.backgroundColor=X?X:"";this.Zi=GJ(g.DI(G,"yt:stretch"));this.Kl=GJ(g.DI(G,"yt:crop"),!0);g.S_(this.element,"ytp-dni",G.KY);this.app.Z().G("delhi_modern_web_player")&& (G=this.app.PM.isHdr()||this.app.Z().G("delhi_modern_web_player_disable_frosted_glass")?"none":"initial",this.element.style.setProperty("--yt-frosted-glass-backdrop-filter-override",G));this.resize()}; g.P.setGlobalCrop=function(G){this.UO=GJ(G,!0);this.resize()}; g.P.setCenterCrop=function(G){this.oT=G;this.resize()}; g.P.PO=function(){}; g.P.getPlayerSize=function(){var G=this.app.Z(),X=this.app.PM.isFullscreen(),Q=G.externalFullscreen&&g.Jn(G);if(X&&t8()&&!Q)return new g.AC(window.outerWidth,window.outerHeight);Q=!isNaN(this.Np.width)&&!isNaN(this.Np.height);var R=this.app.Z().G("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.Z().G("web_watch_enable_fs_squeezeback_panels");if(X&&!Q&&R)return new g.AC(this.element.clientWidth,this.element.clientHeight);if(X||G.B1){if(window.matchMedia){G="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.DU&&this.DU.media===G||(this.DU=window.matchMedia(G));var S=this.DU&&this.DU.matches}if(S)return new g.AC(window.innerWidth,window.innerHeight)}else if(Q)return this.Np.clone();return new g.AC(this.element.clientWidth,this.element.clientHeight)}; g.P.uF=function(){var G=this.app.Z().G("enable_desktop_player_underlay"),X=this.getPlayerSize(),Q=g.i2(this.app.Z().experiments,"player_underlay_min_player_width");return G&&this.Yn&&X.width>Q?(G=g.i2(this.app.Z().experiments,"player_underlay_video_width_fraction"),new g.AC(Math.min(X.height*this.getVideoAspectRatio(),X.width*G),Math.min(X.height,X.width*G/this.getVideoAspectRatio()))):X}; g.P.getVideoAspectRatio=function(){return isNaN(this.Zi)?GmZ(this):this.Zi}; g.P.getVideoContentRect=function(G){var X=this.uF();G=XUw(this,X,this.getVideoAspectRatio(),G);return new g.ps((X.width-G.width)/2,(X.height-G.height)/2,G.width,G.height)}; g.P.ly=function(G){this.Yn=G;this.resize()}; g.P.n_=function(){return this.Pq}; g.P.onMutedAutoplayChange=function(){Lu(this)}; g.P.setInternalSize=function(G){g.nT(this.Np,G)||(this.Np=G,this.resize())}; g.P.zT=function(){this.ZD&&g.bC(this.ZD);this.hR();g.f.prototype.zT.call(this)};g.P=Zki.prototype;g.P.click=function(G,X){this.elements.has(G);this.N.has(G);var Q=g.oU();Q&&G.visualElement&&g.$B(Q,G.visualElement,X)}; g.P.createClientVe=function(G,X,Q,R){var S=this;R=R===void 0?!1:R;this.elements.has(G);this.elements.add(G);Q=oDi(Q);G.visualElement=Q;var Z=g.oU(),H=g.me();Z&&H&&(g.jg("combine_ve_grafts")?Z1(R_(),Q,H):g.Do(g.V_)(void 0,Z,H,Q));X.addOnDisposeCallback(function(){S.elements.has(G)&&S.destroyVe(G)}); R&&this.W.add(G)}; g.P.createServerVe=function(G,X,Q){var R=this;Q=Q===void 0?!1:Q;this.elements.has(G);this.elements.add(G);X.addOnDisposeCallback(function(){R.destroyVe(G)}); Q&&this.W.add(G)}; g.P.destroyVe=function(G){this.elements.has(G);this.elements.delete(G);this.Y.delete(G);this.N.delete(G);this.W.delete(G)}; g.P.Zc=function(G,X){this.clientPlaybackNonce!==X&&(this.clientPlaybackNonce=X,S9(R_(),G),Hk0(this))}; g.P.setTrackingParams=function(G,X){this.elements.has(G);X&&(G.visualElement=g.jk(X))}; g.P.Ta=function(G,X,Q){this.elements.has(G);X?this.N.add(G):this.N.delete(G);var R=g.oU(),S=G.visualElement;this.W.has(G)?R&&S&&(X?g.Af(R,[S]):g.np(R,[S])):X&&!this.Y.has(G)&&(R&&S&&g.ND(R,S,void 0,Q),this.Y.add(G))}; g.P.hasVe=function(G){return this.elements.has(G)};g.T(g.Y9,g.I);g.Y9.create=function(G,X,Q,R){try{var S=typeof G==="string"?G:"player"+g.wH(G),Z=a3[S];if(Z){try{Z.dispose()}catch(w){g.aU(w)}a3[S]=null}var H=new g.Y9(G,X,Q,R);H.addOnDisposeCallback(function(){a3[S]=null;H.H6&&H.H6()}); return a3[S]=H}catch(w){throw g.aU(w),(w&&w instanceof Error?w:Error(String(w))).stack;}}; g.P=g.Y9.prototype;g.P.xg=function(){return this.visibility}; g.P.xk=function(G){var X=this.dh();if(G!==X){G.getVideoData().autonavState=X.getVideoData().autonavState;X.m6(this.py,this);var Q=X.getPlaybackRate();X.dispose();this.Mx.xk(G);G.setPlaybackRate(Q);G.Ej(this.py,this);jHG(this)}}; g.P.Ub=function(){this.gQ||(this.gQ=g.fJ(iG(),O67()));return this.gQ}; g.P.hR=function(G){if(this.mediaElement){this.NT&&(this.events.Ds(this.NT),this.NT=null);g.e8(this.gs);this.eA().hR(!0,!1,G);this.template.hR();try{this.G("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.jr()}catch(X){g.EL(X)}this.mediaElement=null}}; g.P.o5=function(G,X,Q){Q=Q===void 0?!1:Q;if(G!==this.eA()){this.logger.debug(function(){return"start set presenting player, type "+G.getPlayerType()+", vid "+G.getVideoData().videoId}); var R=null;Q||(Q=this.eA(),R=Q.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),x0(this.ET,3),F9(this,"cuerangesremoved",Q.Gj()),this.WI&&!G.isGapless()&&Q.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),Q=G.g2()&&Q.g2(),this.M9.Xh("iv_s"),KQT(this,Q));G.getPlayerType()===1&&this.xk(G);Tj0(this,G);this.Mx.o5(G);this.mediaElement&&G.setMediaElement(this.mediaElement);G.Ej(this.s7,this);G.fb()?ntT(this,"setPresenting",!1):(this.hC("newdata",G,G.getVideoData()), R&&!g.tS(R,G.getPlayerState())&&this.G$(new g.wA(G.getPlayerState(),R)),X=X&&G.getPlayerType()===1,G.jL()&&!X&&this.hC("dataloaded",G,G.getVideoData()),(X=(X=G.getVideoData().W)&&X.video)&&this.PM.vR("onPlaybackQualityChange",X.quality),F9(this,"cuerangesadded",G.Gj()),X=G.getPlayerState(),g.N(X,2)?sHS(this):g.N(X,8)?G.playVideo():G.Fk()&&G.pauseVideo(),X=this.dh(),G.getPlayerType()===2&&(G.getVideoData().Qm=X.getVideoData().clientPlaybackNonce),G.getPlayerType()!==2||this.Nc()||(R=G.getVideoData(), X.Ys(R.clientPlaybackNonce,R.lL||"",R.breakType||0,R.Co,R.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.P.vu=function(){if(this.dh()!==this.eA()){var G=this.eA();this.logger.debug(function(){return"release presenting player, type "+G.getPlayerType()+", vid "+G.getVideoData().videoId}); this.o5(this.dh())}}; g.P.Xz=function(){return this.Mx}; g.P.a6=function(G){return this.Mx.a6(G)}; g.P.IC=function(G){return this.Mx.IC(G)}; g.P.dh=function(){return this.Mx.dh()}; g.P.eA=function(){return this.Mx.eA()}; g.P.w7=Gi(44);g.P.Bbm=function(){P0(this)||(this.logger.debug("application playback ready"),this.SC(5))}; g.P.xxH=function(){if(!P0(this)){this.logger.debug("playback ready");fjS(this);var G=this.eA(),X=G.getPlayerState();G.Fk()?this.pauseVideo():X.isOrWillBePlaying()&&this.playVideo()}}; g.P.canPlayType=function(G){return oE(G)}; g.P.Z=function(){return this.tT}; g.P.getVideoData=function(){return this.eA().getVideoData()}; g.P.PQ=Gi(11);g.P.gM=function(){return this.dh().getVideoData()}; g.P.getVideoLoadedFraction=function(G){return(G=this.a6({playerType:G}))?G.getVideoLoadedFraction():this.Mx.N.getVideoLoadedFraction()}; g.P.mp=function(){return this.template}; g.P.p7=function(){return this.ET}; g.P.gZ=function(){return this.M9}; g.P.iW=function(G,X,Q){(X=this.a6({playerType:X===void 0?1:X}))&&X.q0(G,void 0,Q)}; g.P.nW=function(){var G=this.ET.nW();this.PM.publish("videoStatsPingCreated",G);return G}; g.P.getVolume=function(){return Math.round(this.PM.getVolume())}; g.P.isMuted=function(){return this.PM.isMuted()}; g.P.Gz=function(){if(this.dh()===this.eA()&&this.sM)return this.sM.postId}; g.P.aJ_=function(){var G=this;this.G("use_rta_for_player")||(g.jJ(this.tT)?g.z$(this.tT,g.qY(this.getVideoData())).then(function(X){GT(iG(),X);w3e(G.getVideoData(),G.tT,G.Ub())}):w3e(this.getVideoData(),this.tT,this.Ub()))}; g.P.o_=function(G){this.PM.publish("poTokenVideoBindingChange",G)}; g.P.P2=function(G){this.PM.publish("d6de4videobindingchange",G)}; g.P.NE=function(){this.hh&&this.hh.NE()}; g.P.Nt=function(G){this.hh=G}; g.P.xe=function(G){if(G===1){this.M9.tick("vr");var X=this.eA();X.CI();NBS(this.M9,X.getVideoData(),yUi(this));K2y(this.ET)}X=this.tT;if(EB(X)&&X.T||g.ZK(X)){var Q;(((Q=this.eA().getVideoData())==null?0:Q.enableServerStitchedDai)||!this.Nc())&&this.PM.vR("onAdStateChange",G)}}; g.P.setLoopVideo=function(G){var X=this.eA();X===this.dh()&&X.vD()!==G&&(X.setLoop(G),this.PM.E_("onLoopChange",G))}; g.P.getLoopVideo=function(){return this.eA().vD()}; g.P.setLoopRange=function(G){var X=!1;!!this.sM!==!!G?X=!0:this.sM&&G&&(X=this.sM.startTimeMs!==G.startTimeMs||this.sM.endTimeMs!==G.endTimeMs||this.sM.postId!==G.postId||this.sM.type!==G.type);if(X){X=this.eA();Ec(X.getVideoData())&&X.Ni("slr",{et:(G==null?void 0:G.endTimeMs)||-1});X=this.dh();X.lf("applooprange");if(G){var Q=new g.yG(G.startTimeMs,G.endTimeMs,{id:"looprange",namespace:"applooprange"});X.addCueRange(Q)}else{this.gM().clipConfig=void 0;var R;((Q=this.sM)==null?void 0:Q.type)!=="repeatChapter"|| isNaN(Number((R=this.sM)==null?void 0:R.loopCount))||(Q={loopCount:String(this.sM.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.QL("repeatChapterLoopEvent",Q))}this.sM=G;this.PM.E_("onLoopRangeChange",G||void 0);this.dh()===this.eA()&&(this.z5(),X.W4())}}; g.P.getLoopRange=function(){return this.sM}; g.P.z5=function(){var G="",X=this.dh();this.sM?X!==this.eA()?G="pnea":cUi(this,X.getCurrentTime())&&(this.sM.loopCount=0,G="ilr"):G="nlr";var Q=this.eA();if(Ec(Q.getVideoData()))if(this.G("html5_gapless_log_loop_range_info")){var R,S;Q.Ni("slrre",{rej:G,ct:X.getCurrentTime(),lst:(R=this.sM)==null?void 0:R.startTimeMs,let:(S=this.sM)==null?void 0:S.endTimeMs})}else Q.Ni("slrre",{});G||Uwi(this)}; g.P.setPlaybackRate=function(G,X){if(!isNaN(G)){G=otV(this,G);var Q=this.dh();Q.getPlaybackRate()!==G&&(Q.setPlaybackRate(G),X&&!this.tT.V&&g.E5("yt-player-playback-rate",G),this.PM.vR("onPlaybackRateChange",G))}}; g.P.getCurrentTime=function(G,X){X=X===void 0?!0:X;var Q=this.Mx.Y_;if(Q)return Q.getCurrentTime();var R=G===2&&this.getVideoData().enableServerStitchedDai;Q=null;R?Q=this.eA():Q=this.a6({playerType:G});return Q?R&&this.BZ?(G=this.Mx.J)?G.getCurrentTime(X):Q.getCurrentTime():X?(X=uf(this,Q),zy(this,X.getCurrentTime(),X)):Q.getCurrentTime():this.Mx.N.getCurrentTime()}; g.P.Yg=function(){var G=this.a6({playerType:void 0});if(!G)return this.Mx.N.Yg();G=uf(this,G);return zy(this,G.Yg(),G)}; g.P.getDuration=function(G,X){X=X===void 0?!0:X;var Q=this.Mx.Y_;if(Q)return Q.getDuration();Q=this.getVideoData();var R=G===2&&Q.enableServerStitchedDai,S=null;R?S=this.eA():S=this.a6({playerType:G});if(!S)return this.Mx.N.getDuration();if(Q.hasProgressBarBoundaries()&&!R){var Z,H=Number((Z=Q.progressBarStartPosition)==null?void 0:Z.utcTimeMillis),w;Z=Number((w=Q.progressBarEndPosition)==null?void 0:w.utcTimeMillis);if(!isNaN(H)&&!isNaN(Z))return(Z-H)/1E3}if(Ec(Q)&&!Q.isLivePlayback)return x9(this, G);if(X)return G=oR(this,S),zy(this,G.getDuration(),G);if(R&&this.BZ){if(this.G("html5_huli_ssdai_use_playback_state"))return G=this.Mx,G=G.V===G.J?G.V:null,(G==null?void 0:G.getDuration())||0;var h;return((h=this.Mx.J)==null?void 0:h.getDuration())||0}return S.getDuration()}; g.P.mY=function(G){var X=this.a6({playerType:G});return X?this.Nc(X)?(X=oR(this,X),X.mY()-X.getCurrentTime()+this.getCurrentTime(G)):X.mY():this.Mx.N.mY()}; g.P.finishSegmentByCpn=function(){return[]}; g.P.Vy=function(){this.template.Vy();var G=this.PM;G.state.element=this.template.element;var X=G.state.element,Q;for(Q in G.state.N)G.state.N.hasOwnProperty(Q)&&(X[Q]=G.state.N[Q]);(G=lYS(this.template.element))&&this.events.B(this.template,G,this.onFullscreenChange)}; g.P.getDebugText=function(G){var X=this.dh().L7(G),Q=this.eA();if(Q!==this.dh()){Q=Q.L7(G);for(var R=g.e(Object.keys(Q)),S=R.next();!S.done;S=R.next())S=S.value,X["ad"+S]=Q[S];if(G){Q=X;R={};if(S=ZN(document,"movie_player"))R.bounds=S.getBoundingClientRect(),R["class"]=S.className;S={};var Z=g.hj("video-ads");Z?(vt0(Z,S),S.html=Z.outerHTML):S.missing=1;Z={};var H=g.hj("videoAdUiSkipContainer"),w=g.hj("ytp-ad-skip-button-container"),h=g.hj("ytp-skip-ad-button"),L=H||w||h;L?(vt0(L,Z),Z.ima=H?1:0,Z.bulleit= w?1:0,Z.component=h?1:0):Z.missing=1;R=JSON.stringify({player:R,videoAds:S,skipButton:Z});Q.ad_skipBtnDbgInfo=R}}G&&this.mediaElement&&(X["0sz"]=""+(+$i(this.mediaElement.getSize())===0),X.op=this.mediaElement.CJ("opacity"),Q=this.mediaElement.oD().y+this.mediaElement.getSize().height,X.yof=""+(+Q<=0),X.dis=this.mediaElement.CJ("display"));G&&((G=(0,g.Gc)())&&(X.gpu=G),(G=this.tT.playerStyle)&&(X.ps=G),this.tT.CO&&(X.webview=1),(G=this.webPlayerContextConfig.jsUrl)&&(X.js=G));X.debug_playbackQuality= this.PM.getPlaybackQuality(1);X.debug_date=(new Date).toString();X.origin=window.origin;X.timestamp=Date.now();delete X.uga;delete X.q;return JSON.stringify(X,null,2)}; g.P.getFeedbackProductData=function(){var G={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.Z().experiments.experimentIds.join(", "),player_release:q[60]},X=this.getPlayerStateObject().qG;X&&(G.player_error_code=X.errorCode,G.player_error_details=JSON.stringify(X.errorDetail));return G}; g.P.getPresentingPlayerType=function(G){if(this.appState===1)return 1;if(P0(this))return 3;var X;return G&&((X=this.BZ)==null?0:wu7(X,this.getCurrentTime()))?2:this.eA().getPlayerType()}; g.P.rD=function(){return!1}; g.P.getPlayerStateObject=function(G){var X=this.Mx.Y_;return X?X.getPlayerState():this.a6({playerType:G}).getPlayerState()}; g.P.getAppState=function(){return this.appState}; g.P.UxH=function(G){switch(G.type){case "loadedmetadata":this.dF.start();G=g.e(this.S6);for(var X=G.next();!X.done;X=G.next())X=X.value,pUZ(this,X.id,X.DGp,X.sMc,void 0,!1);this.S6=[];break;case "loadstart":this.M9.Xh("gv");break;case "progress":case "timeupdate":wO(G.target.wL())>=2&&this.M9.Xh("l2s");break;case "playing":g.rS&&this.dF.start();if(g.jJ(this.tT))G=!1;else{X=g.AL(this.p7());G=this.mediaElement.CJ("display")==="none"||$i(this.mediaElement.getSize())===0;var Q=k9(this.template),R=this.eA().getVideoData(), S=g.lP(this.tT);R=xP(R);X=!Q||X||S||R||this.tT.BM;G=G&&!X}G&&(G=this.eA(),G.pn(),this.getVideoData().Ps||(this.getVideoData().Ps=1,this.Pr(),G.playVideo()))}}; g.P.zGM=function(G){this.PM.tS("onLoadProgress",G)}; g.P.oSm=function(){this.PM.publish("playbackstalledatstart")}; g.P.s6c=function(G,X){this.PM.publish("sabrCaptionsDataLoaded",G,X)}; g.P.Nec=function(G){this.eA().cW(G)}; g.P.ASB=function(G){this.eA().Jx(G)}; g.P.SY_=function(G){G=uf(this,this.eA());G=zy(this,G.getCurrentTime(),G);this.PM.vR("onVideoProgress",G);this.tT.Zg&&VmV(this,this.visibility.TR())&&this.pauseVideo()}; g.P.dxi=function(){this.PM.vR("onAutoplayBlocked");var G=this.eA().getVideoData();G&&(G.Gf=!0);this.G("embeds_enable_autoplay_and_visibility_signals")&&g.Jn(this.tT)&&(G={autoplayBrowserPolicy:e9(),autoplayIntended:r$(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.QL("embedsAutoplayStatusChanged",G))}; g.P.MzT=function(){this.PM.publish("progresssync")}; g.P.Vzp=function(){this.PM.tS("onPlaybackPauseAtStart")}; g.P.LpH=function(G){if(this.getPresentingPlayerType()===1){g.Lw(G,1)&&!g.N(G.state,64)&&this.gM().isLivePlayback&&this.dh().isAtLiveHead()&&this.PM.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Lw(G,2)){if(this.sM&&this.sM.endTimeMs>=(this.getDuration()-1)*1E3){Uwi(this);return}sHS(this)}if(g.N(G.state,128)){var X=G.state;this.cancelPlayback(5);X=X.qG;JSON.stringify({errorData:X,debugInfo:this.getDebugText(!0)});this.PM.vR("onError",T9C(X.errorCode));this.PM.tS("onDetailedError",{errorCode:X.errorCode, errorDetail:X.errorDetail,message:X.errorMessage,messageKey:X.Qy,cpn:X.cpn});(0,g.TB)()-this.tT.qd>6048E5&&this.PM.tS("onReloadRequired")}X={};if(G.state.isPlaying()&&!G.state.isBuffering()&&!OF("pbresume","ad_to_video")&&OF("_start","ad_to_video")){var Q=this.getVideoData();X.clientPlaybackNonce=Q.clientPlaybackNonce;Q.videoId&&(X.videoId=Q.videoId);g.EF(X,"ad_to_video");aa("pbresume",void 0,"ad_to_video");K2y(this.ET)}this.PM.publish("applicationplayerstatechange",G)}}; g.P.G$=function(G){this.Mx.Y_||this.PM.publish("presentingplayerstatechange",G)}; g.P.Vu=function(G){mC(this,IT(G.state));g.N(G.state,1024)&&this.PM.isMutedByMutedAutoplay()&&(aR(this,{muted:!1,volume:this.PK.volume},!1),EQ(this,!1))}; g.P.onPlayerRequestSent=function(G){this.PM.E_("onPlayerRequestSent",G)}; g.P.zs=function(G,X){G==="newdata"&&jHG(this);this.PM.publish("applicationvideodatachange",G,X)}; g.P.rs_=function(G,X){this.G("html5_afmt_change_update_volume")&&fjS(this);this.PM.tS("onPlaybackAudioChange",this.PM.getAudioTrack().kP.name);this.PM.publish("internalaudioformatchange",this.PM.getAudioTrack().kP.id,X)}; g.P.Q6p=function(G){var X=this.eA().getVideoData();G===X&&this.PM.vR("onPlaybackQualityChange",G.W.video.quality)}; g.P.xb=function(){var G=this.Mx.Y[2]||null;G&&(G=G.getVideoData(),this.eA().Ni("ssdai",{cleanaply:1,acpn:G==null?void 0:G.clientPlaybackNonce,avid:G.videoId,isDai:this.gM().enableServerStitchedDai?1:0}),delete this.Mx.Y[2])}; g.P.nSb=function(G,X){this.hC(G,this.eA(),X)}; g.P.hC=function(G,X,Q){this.logger.debug(function(){return"on video data change "+G+", player type "+X.getPlayerType()+", vid "+Q.videoId}); this.tT.n7()&&X.Ni("vdc",{type:G,vid:Q.videoId||"",cpn:Q.clientPlaybackNonce||""});X===this.dh()&&(this.tT.WK=Q.oauthToken);X===this.dh()&&(this.getVideoData().enableServerStitchedDai&&!this.BZ?(this.dh().Ni("sdai",{initSstm:1}),this.BZ=new g.br(this.PM,this.tT,this.dh(),this)):!this.getVideoData().enableServerStitchedDai&&this.BZ&&(this.BZ.dispose(),this.BZ=null));if(G==="newdata")this.logger.debug("new video data, destroy modules"),x0(this.ET,2),this.PM.publish("videoplayerreset",X);else{if(!this.mediaElement)return; G==="dataloaded"&&(this.dh()===this.eA()?(LK(Q.hT,Q.zM),EtZ(this)):rU7(this));X.getPlayerType()===1&&(this.tT.QH&&bkG(this),this.getVideoData().isLivePlayback&&!this.tT.T7&&this.KL("html5.unsupportedlive",2,"DEVICE_FALLBACK"),Q.isLoaded()&&((zYG(Q)||this.getVideoData().T7)&&this.PM.publish("legacyadtrackingpingchange",this.getVideoData()),Q.hasProgressBarBoundaries()&&Bjy(this)));this.PM.publish("videodatachange",G,Q,X.getPlayerType())}this.PM.vR("onVideoDataChange",{type:G,playertype:X.getPlayerType()}); this.z5();var R=Q.Ev;R?this.G6.Zc(R,Q.clientPlaybackNonce):Hk0(this.G6)}; g.P.wU=function(){Ty(this,null);this.PM.tS("onPlaylistUpdate")}; g.P.iYM=function(G){delete this.Fb[G.getId()];this.dh().removeCueRange(G);a:{G=this.getVideoData();var X,Q,R,S,Z,H,w,h,L,k,Y=((X=G.QH)==null?void 0:(Q=X.contents)==null?void 0:(R=Q.singleColumnWatchNextResults)==null?void 0:(S=R.autoplay)==null?void 0:(Z=S.autoplay)==null?void 0:Z.sets)||((H=G.QH)==null?void 0:(w=H.contents)==null?void 0:(h=w.twoColumnWatchNextResults)==null?void 0:(L=h.autoplay)==null?void 0:(k=L.autoplay)==null?void 0:k.sets);if(Y)for(X=g.e(Y),Q=X.next();!Q.done;Q=X.next())if(Q= Q.value,S=R=void 0,Q=Q.autoplayVideo||((R=Q.autoplayVideoRenderer)==null?void 0:(S=R.autoplayEndpointRenderer)==null?void 0:S.endpoint),R=g.y(Q,g.TU),Z=S=void 0,Q!=null&&((S=R)==null?void 0:S.videoId)===G.videoId&&((Z=R)==null?0:Z.continuePlayback)){G=Q;break a}G=null}(X=g.y(G,g.TU))&&this.PM.E_("onPlayVideo",{sessionData:{autonav:"1",itct:G==null?void 0:G.clickTrackingParams},videoId:X.videoId,watchEndpoint:X})}; g.P.SC=function(G){var X=this;G!==this.appState&&(this.logger.debug(function(){return"app state change "+X.appState+" -> "+G}),G===2&&this.getPresentingPlayerType()===1&&(mC(this,-1),mC(this,5)),this.appState=G,this.PM.publish("appstatechange",G))}; g.P.KL=function(G,X,Q,R,S){this.dh().WR(G,X,Q,R,S)}; g.P.CD=Gi(13);g.P.isAtLiveHead=function(G,X){X=X===void 0?!1:X;var Q=this.a6({playerType:G});if(!Q)return this.Mx.N.isAtLiveHead();G=oR(this,Q);Q=uf(this,Q);return G!==Q?G.isAtLiveHead(zy(this,Q.getCurrentTime(),Q),!0):G.isAtLiveHead(void 0,X)}; g.P.zx=function(){var G=this.a6({playerType:void 0});return G?oR(this,G).zx():this.Mx.N.zx()}; g.P.seekTo=function(G,X,Q,R,S,Z){X=X!==!1;if(R=this.a6({playerType:R}))if(this.appState===2&&eq(this),this.Nc(R))c0(this)?this.BZ.seekTo(G,{seekSource:S},X,Q):this.UY.seekTo(G,{seekSource:S},X,Q);else{this.G("html5_sabr_csdai_seek_log")||(Z="");var H;R.seekTo(G,{j6:!X,f8:Q,nY:"application"+((H=Z)!=null?H:""),seekSource:S})}}; g.P.seekBy=function(G,X,Q,R){this.seekTo(this.getCurrentTime()+G,X,Q,R,void 0,"_by")}; g.P.Dxp=function(){this.PM.vR("SEEK_COMPLETE")}; g.P.b7i=function(){this.PM.E_("onAbnormalityDetected")}; g.P.Isb=function(G){this.PM.E_("onSnackbarMessage",G)}; g.P.RGA=function(G){var X=this.eA(),Q=X.getVideoData();if(this.appState===1||this.appState===2)Q.startSeconds=G;this.appState===2?g.N(X.getPlayerState(),512)||eq(this):this.PM.vR("SEEK_TO",G)}; g.P.fWd=function(){this.PM.publish("airplayactivechange")}; g.P.gPB=function(){this.PM.publish("airplayavailabilitychange")}; g.P.showAirplayPicker=function(){this.eA().jT()}; g.P.tzO=function(){this.PM.publish("beginseeking")}; g.P.AWm=function(){this.PM.publish("endseeking")}; g.P.getStoryboardFormat=function(G){return(G=this.a6({playerType:G}))?oR(this,G).getStoryboardFormat():this.Mx.N.getStoryboardFormat()}; g.P.tR=function(G){return(G=this.a6({playerType:G}))?oR(this,G).getVideoData().tR():this.Mx.N.tR()}; g.P.Nc=function(G){G=(G||this.eA()).getVideoData();if(c0(this))G=G===this.BZ.playback.getVideoData();else a:{var X=this.UY;if(G===X.N.getVideoData()&&X.W.length)G=!0;else{X=g.e(X.W);for(var Q=X.next();!Q.done;Q=X.next())if(G.sY===Q.value.sY){G=!0;break a}G=!1}}return G}; g.P.DL=function(G,X,Q,R,S,Z,H,w){this.logger.debug(function(){return"Adding video to timeline id="+G.video_id+"\n lengthMs="+R+" enterTimeMs="+S}); var h="",L=c0(this);this.eA().Ni("appattl",{sstm:this.BZ?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:L});L?(Q=XuZ(this.BZ,G,X,Q,R,S,Z,H),h=(Q==null?void 0:Q.sY)||"",(this.G("html5_ssdai_new_decoration_logic")||this.dh().getVideoData().P4)&&this.dh().UH(w||"",X,(Q==null?void 0:Q.clientPlaybackNonce)||"")):h=tBX(this.UY,G,Q,R,S,Z);this.logger.debug(function(){return"Video added to timeline id="+G.video_id+" timelinePlaybackId="+h}); return h}; g.P.EP=function(G,X,Q,R,S,Z,H){if(c0(this)){var w,h=(w=this.BZ)==null?void 0:XuZ(w,G,X,Q,R,S,Z,H);this.logger.debug(function(){return"Remaining video added to timeline id="+G.video_id+" timelinePlaybackId="+((h==null?void 0:h.sY)||"")})}}; g.P.YJ=function(G){(this.G("html5_ssdai_new_decoration_logic")||this.dh().getVideoData().P4)&&this.dh().UH(G,"","");var X;(X=this.BZ)==null||X.YJ(G)}; g.P.yS=function(G,X){G=G===void 0?-1:G;X=X===void 0?Infinity:X;c0(this)||NmV(this.UY,G,X)}; g.P.GL=function(G,X,Q){if(c0(this)){var R=this.BZ,S=R.N.a6({sY:G});S?(Q===void 0&&(Q=S.rM),kL0(R,S,X,Q)):R.Rh("Invalid_timelinePlaybackId_"+G+"_specified")}else{R=this.UY;S=null;for(var Z=g.e(R.W),H=Z.next();!H.done;H=Z.next())if(H=H.value,H.sY===G){S=H;break}S?(Q===void 0&&(Q=S.rM),DCS(R,S,X,Q)):Sq(R,"InvalidTimelinePlaybackId timelinePlaybackId="+G)}}; g.P.enqueueVideoByPlayerVars=function(G,X,Q,R){Q=Q===void 0?Infinity:Q;R=R===void 0?"":R;this.Nc();G=new g.ML(this.tT,G);R&&(G.sY=R);FQi(this,G,X,Q)}; g.P.queueNextVideo=function(G,X,Q,R,S){Q=Q===void 0?NaN:Q;G=this.preloadVideoByPlayerVars(G,X===void 0?1:X,Q,R===void 0?"":R,S===void 0?"":S);X=this.eA();G&&(this.G("html5_check_queue_on_data_loaded")?this.Z().supportsGaplessShorts()&&X.getVideoData().J&&(Q=this.zU,R=this.WI.C,Q.V!==G&&(Q.W=X,Q.V=G,Q.Y=1,Q.N=G.getVideoData(),Q.C=R,Q.N.isLoaded()?Q.S():Q.N.subscribe("dataloaded",Q.S,Q))):(Q=joG(X,G,this.WI.C),Q!=null?(X.Ni("sgap",Q),X.getVideoData().J&&X.v4(!1)):(G=G.getVideoData(),X=this.zU,X.N!== G&&(X.N=G,X.Y=1,G.isLoaded()?X.J():X.N.subscribe("dataloaded",X.J,X)))))}; g.P.Oi=function(G,X,Q,R){var S=this;Q=Q===void 0?0:Q;R=R===void 0?0:R;oR(this,this.eA()).M4();aUU(this.WI,G,X,Q,R).then(function(){S.PM.tS("onQueuedVideoLoaded")},function(){})}; g.P.yu=function(){return this.WI.yu()}; g.P.Yh=function(G){var X=this.WI.N;return X?X.Et(G):!1}; g.P.clearQueue=function(G,X){G=G===void 0?!1:G;X=X===void 0?!1:X;this.logger.debug("Clearing queue");this.WI.clearQueue(G,X)}; g.P.loadVideoByPlayerVars=function(G,X,Q,R,S,Z){X=X===void 0?1:X;var H=this.dh();if(X===2&&this.gM().enableServerStitchedDai&&H&&!H.kf())return H.Ni("lvonss",{vid:(G==null?void 0:G.videoId)||"",ptype:X}),!1;var w=!1;H=new g.ML(this.tT,G);H.H1=Z;g.eb(this.tT)&&!H.mD&&M6(this.M9);var h;Z=this.M9;var L=(h=H.AT)!=null?h:"";Z.timerName=L;this.M9.jI("pl_i");this.G("web_player_early_cpn")&&H.clientPlaybackNonce&&this.M9.infoGel({clientPlaybackNonce:H.clientPlaybackNonce});SqU(H).supportsVp9Encoding===!1&& this.eA().Ni("noVp9enc",{});if(this.Z().supportsGaplessShorts()){h=OQ0(this.WI,H,X);if(h==null){mC(this,-1);var k;((k=this.WI.N)==null?0:k.getVideoData().isAd())||gB(this);G=this.WI;G.app.Z().G("html5_gapless_new_slr")?OQ(G.app,"gaplessshortslooprange"):G.app.setLoopRange(null);G.app.getVideoData().gm=!0;var Y;(Y=G.N)==null||Y.Ak();var M;(M=G.N)==null||M.vg();Q={nY:"gapless_to_next_video",seekSource:60,IQ:G.C.N};R=g.i2(G.app.Z().experiments,"html5_gapless_seek_offset");S=xbZ(G);if(G.C.N){var m;H= ((m=G.Y)==null?void 0:tM(m))||{};m=H.r9;H=H.e9;H!=null&&m!=null&&(S=H-m+.001)}var u;(u=G.app.eA())==null||u.seekTo(S+R,Q);if(!G.app.getPlayerStateObject(X).isPlaying()){var r;(r=G.app.eA())==null||r.playVideo(!0)}var x;(x=G.app.eA())==null||x.aV();G.J();return!0}u=this.G("html5_shorts_gapless_preload_fallback");r=this.WI.N;u&&r&&!r.U_()&&(x=r.getVideoData(),this.Mx.C.set(UQ(X,x),r,3600));this.WI.clearQueue(u);this.eA().Ni("sgap",{f:h})}if(S){for(;H.I9.length&&H.I9[0].isExpired();)H.I9.shift();u=H.I9.length- 1;w=u>0&&S.W(H.I9[u])&&S.W(H.I9[u-1]);H.I9.push(S)}Q||(G&&$yw(G)?(oI(this.tT)&&!this.Ma&&(G.fetch=0),Ty(this,G)):this.playlist&&Ty(this,null),G&&(this.Ma=bX(!1,G.external_list)));this.PM.publish("loadvideo");u=this.jO(H,X,R);w&&this.KL("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+H.I9.join()).replace(/[;:,]/g,"_"));return u}; g.P.preloadVideoByPlayerVars=function(G,X,Q,R,S){X=X===void 0?1:X;Q=Q===void 0?NaN:Q;R=R===void 0?"":R;S=S===void 0?"":S;var Z=tmU(X,G,S),H=this.Mx.C.get(Z)||null;if(H)return this.logger.debug(function(){return"already preloaded "+Z}),this.G("html5_return_playback_if_already_preloaded")?H:null; G=new g.ML(this.tT,G);S&&(G.sY=S);return C4C(this,G,X,Q,R)}; g.P.setMinimized=function(G){this.visibility.setMinimized(G);(G=aa7(this.ET))&&(this.isMinimized()?G.load():G.unload());this.PM.publish("minimized")}; g.P.setInline=function(G){this.visibility.setInline(G)}; g.P.setInlinePreview=function(G){this.visibility.setInline(G)}; g.P.Pu=function(G){IjG(this,G)||this.visibility.Pu(G)}; g.P.setSqueezeback=function(G){this.visibility.setSqueezeback(G)}; g.P.Dc=function(){var G,X=(G=this.mediaElement)==null?void 0:G.V0();X&&(this.tT.iX&&yX(d9(function(){return document.exitFullscreen()}),function(){}),yX(d9(function(){return YL(X)}),function(){}))}; g.P.WeC=function(){this.mediaElement.V0();this.mediaElement.V0().webkitPresentationMode==="picture-in-picture"?this.Pu(!0):this.Pu(!1)}; g.P.togglePictureInPicture=function(){this.eA().togglePictureInPicture()}; g.P.jO=function(G,X,Q){X=X===void 0?1:X;this.logger.debug(function(){return"start load video, id "+G.videoId+", type "+X}); OF("_start",this.M9.timerName)||g.Do(uj)(void 0,this.M9.timerName);var R=!1,S=zCC(this,X,G,!1);S?(R=!0,G.dispose()):(S=jq(this,X,G,!0,Q),(this.G("html5_onesie")||this.G("html5_load_before_stop"))&&S.f6()&&S.Ci(),this.dF.stop(),X===1&&X!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,X),this.o5(S));S===this.dh()&&(this.tT.WK=G.oauthToken);if(!S.f6())return!1;if(S===this.dh())return this.SC(1),Q=eq(this),R&&this.G("html5_player_preload_ad_fix")&&S.getPlayerType()===1&& S.jL()&&this.hC("dataloaded",S,S.getVideoData()),Q;S.EZ();return!0}; g.P.cueVideoByPlayerVars=function(G,X){var Q=this;X=X===void 0?1:X;var R=this.dh();if(this.gM().enableServerStitchedDai&&R&&!R.kf()&&G&&Object.keys(G).length>0)R.Ni("qvonss",{vid:(G==null?void 0:G.videoId)||"",ptype:X});else if(G&&$yw(G))if(this.ZX=!0,Ty(this,G),(G=g.mg(this.playlist))&&G.eG())B0(this,G,X);else this.playlist.onReady(function(){Ku(Q)}); else{X||(X=this.getPresentingPlayerType());X===1&&this.wU();R=new g.ML(this.tT,G);var S=g.Jn(this.tT)&&!this.tT.yH&&X===1&&!R.isAd()&&!R.lL;this.PM.publish("cuevideo");S?(this.eA().getVideoData().loading=!0,QxU(R,G?G:{}).then(function(Z){B0(Q,Z,X)}),R.dispose()):B0(this,R,X)}}; g.P.mZ=function(G,X,Q,R,S,Z,H){if(!G&&!Q)throw Error("Playback source is invalid");if(G$(this.tT)||g.kU(this.tT))return X=X||{},X.lact=u6(),X.vis=this.PM.getVisibilityState(),this.PM.E_("onPlayVideo",{videoId:G,watchEndpoint:Z,sessionData:X,listId:Q}),!1;AmV(this.M9);this.M9.reset();G={video_id:G};R&&(G.autoplay="1");R&&(G.autonav="1");Z&&(G.player_params=Z.playerParams);H&&(G.oauth_token=H);Q?(G.list=Q,this.loadPlaylist(G)):this.loadVideoByPlayerVars(G,1);return!0}; g.P.cuePlaylist=function(G,X,Q,R){this.ZX=!0;dwV(this,G,X,Q,R)}; g.P.loadPlaylist=function(G,X,Q,R){this.ZX=!1;dwV(this,G,X,Q,R)}; g.P.xR=function(){return this.PM.isMutedByMutedAutoplay()?!1:this.Mx.Y_?!0:!(!this.playlist||!this.playlist.MW())}; g.P.Dd=Gi(5); g.P.nextVideo=function(G,X){var Q=g.KL(this.dh().getVideoData());g.bG(this.PM)&&Q?this.mZ(Q.videoId,X?Q.dR:Q.sessionData,Q.playlistId,X,void 0,Q.Nm||void 0):this.Ma?this.PM.tS("onPlaylistNext"):this.getPresentingPlayerType()===3?fC(this.ET).nextVideo():!this.playlist||oI(this.tT)&&!this.PM.isFullscreen()||(this.playlist.MW(G)&&Jm7(this.playlist,buZ(this.playlist)),this.playlist.loaded?(G=X&&this.tT.G("html5_player_autonav_logging"),X&&this.PM.publish("playlistautonextvideo"),this.jO(g.mg(this.playlist,void 0, X,G),1)):this.ZX=!1)}; g.P.previousVideo=function(G){this.Ma?this.PM.tS("onPlaylistPrevious"):this.getPresentingPlayerType()===3?fC(this.ET).iI():!this.playlist||oI(this.tT)&&!this.PM.isFullscreen()||(this.playlist.EW(G)&&Jm7(this.playlist,v9T(this.playlist)),this.playlist.loaded?this.jO(g.mg(this.playlist),1):this.ZX=!1)}; g.P.playVideoAt=function(G){this.Ma?this.PM.tS("onPlaylistIndex",G):this.playlist&&(this.playlist.loaded?this.jO(g.mg(this.playlist,G),1):this.ZX=!1,Jm7(this.playlist,G))}; g.P.getPlaylist=function(){return this.playlist}; g.P.UP=Gi(19);g.P.K5=function(G){this.S6=g.xo(this.S6,function(Z){return Z.id!==G}); for(var X=this.dh(),Q=X.Gj(),R=0;R0&&(h=Math.floor(L/1E3))}h=X?X.Du:h;var k={AD_BLOCK:this.N++,AD_BREAK_LENGTH:h,AUTONAV_STATE:tm(this.player.Z()),CA_TYPE:"image",CPN:w.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.zx()*1E3,LACT:u6(),LIVE_INDEX:X?this.Y++:1,LIVE_TARGETING_CONTEXT:X&&X.context?X.context:"",MIDROLL_POS:Z? Math.round(Z.start/1E3):0,MIDROLL_POS_MS:Z?Math.round(Z.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.mp().uF().height,P_W:this.player.mp().uF().width,YT_REMOTE:S?S.join(","):""},Y=Sg(Rm);Object.keys(Y).forEach(function(m){Y[m]!=null&&(k[m.toUpperCase()]=Y[m].toString())}); Q!==""&&(k.BISCOTTI_ID=Q);Q={};Q9(G)&&(Q.sts="20312",(X=this.player.Z().forcedExperiments)&&(Q.forced_experiments=X));var M=ib(g.Eu(G,k),Q);return M.split("?").length!==2?za(Error("Invalid AdBreakInfo URL")):g.z$(this.player.Z(),w==null?void 0:w.oauthToken).then(function(m){if(m&&XB()){var u=iG();GT(u,m)}m=R.player.Ub(u);u=PBw(R,M,k,w.isMdxPlayback,H);return g.lj(m,u,"/youtubei/v1/player/ad_break").then(function(r){return r})})}; Va.prototype.reset=function(){this.Y=this.N=1};g.T(s90,Va); s90.prototype.W=function(G,X,Q){X=X===void 0?{}:X;var R=X.A4;var S=X.C4;var Z=X.cueProcessedMs;Q=Q===void 0?"":Q;X=this.N;this.N++;var H=this.player.Z().G("h5_disable_macro_substitution_in_get_ad_break")?G:TTX(this,G,{A4:R,C4:S,cueProcessedMs:Z},Q,X);if(H.split("?").length!==2)return Math.random()<.1&&g.EL(Error("Invalid AdBreakInfo URL")),za(Error("Invalid AdBreakInfo URL"));var w=this.player.getVideoData(1).isMdxPlayback,h=Q;Q=krl.exec(H);Q=Q!=null&&Q.length>=2?Q[1]:"";G=YgZ.test(H);var L=j90.exec(H); L=L!=null&&L.length>=2?L[1]:"";var k=MwS.exec(H);k=k!=null&&k.length>=2&&!Number.isNaN(Number(k[1]))?Number(k[1]):1;var Y=mXi.exec(H);Y=Y!=null&&Y.length>=2?Y[1]:"0";var M=hB(this.player.Z().a$),m=g.Aw(this.player.getVideoData(1).IU,!0);ZXS(this,m,H,h===""?"":h,this.player.Z(),this.player.getVideoData(1));h={splay:!1,lactMilliseconds:String(u6()),playerHeightPixels:Math.trunc(this.player.mp().uF().height),playerWidthPixels:Math.trunc(this.player.mp().uF().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20312,autonavState:tm(this.player.Z())};if(w){w={};var u=this.player.Z().kU;wCG(w,u?u.join(","):"")&&(h.mdxContext=w)}if(w=oI7.includes(M)?void 0:g.cT("PREF")){u=w.split(RegExp("[:&]"));for(var r=0,x=u.length;r1&&c[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}h.autoCaptionsDefaultOn=Lxe(w)}H=u_V.exec(H);(H=H!=null&&H.length>=2?H[1]:"")&&L&&(m.user.credentialTransferTokens= [{token:H,scope:"VIDEO"}]);H={contentPlaybackContext:h};h=this.player.getVideoData(1).getGetAdBreakContext();w=this.player.getVideoData(1).clientPlaybackNonce;u=Z!==void 0?Math.round(Z).toString():void 0;r=(R==null?0:R.context)?R.context:void 0;x=0;Z&&S&&!R&&(S=S.end-S.start,S>0&&(x=Math.floor(S/1E3)));R=(R=Math.trunc((R?R.Du:x)*1E3))?String(R):void 0;S=this.player.zx()*1E3;S=Number.isNaN(S)?0:Math.trunc(S);X={adBlock:X,params:Q,breakIndex:k,breakPositionMs:Y,clientPlaybackNonce:w,topLevelDomain:M, isProxyAdTagRequest:G,context:m,overridePlaybackContext:H,cueProcessedMs:u,videoId:L?L:void 0,liveTargetingParams:r,breakLengthMs:R,driftFromHeadMs:S?String(S):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:h?h:void 0};return Kxy(this,X)};var lSO={FZC:"replaceUrlMacros",uJb:"onAboutThisAdPopupClosed",gUb:"executeCommand"};ex7.prototype.pW=function(){return"adPingingEndpoint"}; ex7.prototype.q8=function(G,X,Q){HVL(this.nO.get(),G,X,Q)};rIG.prototype.pW=function(){return"changeEngagementPanelVisibilityAction"}; rIG.prototype.q8=function(G){this.U.E_("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:G})};a7V.prototype.pW=function(){return"loggingUrls"}; a7V.prototype.q8=function(G,X,Q){G=g.e(G);for(var R=G.next();!R.done;R=G.next())R=R.value,HVL(this.nO.get(),R.baseUrl,X,Q,R.attributionSrcMode)};g.T(xX0,g.I);g.T(dB,g.I);g.P=dB.prototype;g.P.addListener=function(G){this.listeners.push(G)}; g.P.removeListener=function(G){this.listeners=this.listeners.filter(function(X){return X!==G})}; g.P.SN=function(G,X,Q,R,S,Z,H,w){if(G==="")qQ("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(G!==this.N||Q){this.N=G;this.RU.get().SN(G,X,Q,R,S,Z,H,w);this.lB.get().SN(G,X,Q,R,S,Z,H,w);var h;(h=this.GF)==null||h.get().SN(G,X,Q,R,S,Z,H,w);this.W.SN(G,X,Q,R,S,Z,H,w);h=g.e(this.listeners);for(var L=h.next();!L.done;L=h.next())L.value.SN(G,X,Q,R,S,Z,H,w)}else qQ("Duplicate content video loaded signal")}; g.P.SMp=function(){this.N&&this.o9(this.N)}; g.P.o9=function(G){this.N=void 0;for(var X=g.e(this.listeners),Q=X.next();!Q.done;Q=X.next())Q.value.o9(G)};W0.prototype.bO=function(G,X,Q,R,S){OXT(this);this.C=!X&&Q===0;var Z=this.U.getVideoData(1),H=this.U.getVideoData(2);Z&&(this.contentCpn=Z.clientPlaybackNonce,this.videoId=Z.videoId,this.N=Z.S);H&&(this.adCpn=H.clientPlaybackNonce,this.adVideoId=H.videoId,this.adFormat=H.adFormat);this.V=G;R<=0?(OXT(this),this.C=!X&&Q===0):(this.actionType=this.C?X?"unknown_type":"video_to_ad":X?"ad_to_video":"ad_to_ad",this.videoStreamType=S?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Y=!0,OF("_start",this.actionType)&&gIT(this)))}; W0.prototype.reset=function(){return new W0(this.U)};g.T(pu,g.I);pu.prototype.addCueRange=function(G,X,Q,R,S,Z,H,w,h){Z=Z===void 0?3:Z;H=H===void 0?1:H;this.N.has(G)?qQ("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:G}):(G=new UXl(G,X,Q,R,Z,w,h),this.N.set(G.id,{C4:G,listener:S,Of:H}),this.U.PZ([G],H))}; pu.prototype.removeCueRange=function(G){var X=this.N.get(G);X?(this.U.eN([X.C4],X.Of),this.N.delete(X.C4.id)):qQ("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:G})}; pu.prototype.onCueRangeEnter=function(G){if(this.N.has(G.id))this.N.get(G.id).listener.onCueRangeEnter(G.id)}; pu.prototype.onCueRangeExit=function(G){if(this.N.has(G.id))this.N.get(G.id).listener.onCueRangeExit(G.id)}; g.T(UXl,g.yG);ya.prototype.addPlayerResponseForAssociation=function(G){this.U.addPlayerResponseForAssociation(G)};fu.prototype.xe=function(G){this.U.xe(G)}; fu.prototype.Rc=function(G){var X=g.Wl.apply(1,arguments);G==="onAdStart"||G==="onAdEnd"?this.U.vR.apply(this.U,[G].concat(g.o0(X))):this.U.E_.apply(this.U,[G].concat(g.o0(X)))};Dp.prototype.DJ=function(G){return G&&Ny(this)};var f77=null;g.T(yIX,g.ic);yIX.prototype.dQ=function(G){return this.N.hasOwnProperty(G)?this.N[G].dQ():{}}; g.G3("ytads.bulleit.getVideoMetadata",function(G){return Am().dQ(G)}); g.G3("ytads.bulleit.triggerExternalActivityEvent",function(G,X,Q){var R=Am();Q=pCi(Q);Q!==null&&R.publish(Q,{queryId:G,viewabilityString:X})});g.P=nu.prototype;g.P.XA=function(G,X){if(!this.N.has(G))return{};if(X==="seek"){X=!1;X=X===void 0?!1:X;var Q=Kt(Di).UU(G,{});Q?WY(Q):X&&(G=Kt(Di).vA(null,Ux(),!1,G),G.Ih=3,eiV([G]));return{}}X=NTV(X);if(X===null)return{};var R=this.U.lR();if(!R)return{};var S=this.U.getPresentingPlayerType(!0);if((Q=this.U.getVideoData(S))==null||!Q.isAd())return{};Q={opt_adElement:R,opt_fullscreen:this.RU.get().isFullscreen()};return ePe(X,G,Q)}; g.P.j4=function(G,X,Q,R,S){this.N.has(G)&&(R<=0||S<=0||Kt(Di).j4(G,X,Q,R,S))}; g.P.CV=function(G){var X;(X=this.N.get(G.queryId))==null||X.CV()}; g.P.lj=function(G){var X;(X=this.N.get(G.queryId))==null||X.lj()}; g.P.qI=function(G){var X;(X=this.N.get(G.queryId))==null||X.qI()}; g.P.SZ=function(G){var X;(X=this.N.get(G.queryId))==null||X.SZ()}; g.P.v9=function(G){var X;(X=this.N.get(G.queryId))==null||X.v9()};Xlv.prototype.send=function(G,X,Q,R){try{Q0o(this,G,X,Q,R===void 0?!1:R)}catch(S){}};g.T(RUO,Xlv);SCZ.prototype.send=function(G,X,Q,R){var S=!1;try{if(R==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||R==="ATTRIBUTION_SRC_MODE_XHR_OPTION")S=!0,G=SIl(G);R=S;var Z=g.we(G);if(Z[1]==="https")var H=G;else Z[1]="https",H=qE("https",Z[2],Z[3],Z[4],Z[5],Z[6],Z[7]);var w=SZC(H);Z=[];var h=DJC(H)&&this.HM.get().U.Z().experiments.TT("add_auth_headers_to_remarketing_google_dot_com_ping");if(Q9(H)||h)Z.push({headerType:"USER_AUTH"}),Z.push({headerType:"PLUS_PAGE_ID"}),Z.push({headerType:"VISITOR_ID"}),Z.push({headerType:"EOM_VISITOR_ID"}), Z.push({headerType:"AUTH_USER"}),Z.push({headerType:"DATASYNC_ID"});this.N.send({baseUrl:H,scrubReferrer:w,headers:Z},X,Q,R)}catch(L){}};Gf.prototype.Ao=function(){return this.U.Ao(1)};g.T(Xx,g.I);g.P=Xx.prototype;g.P.WO=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.P.addListener=function(G){this.listeners.push(G)}; g.P.removeListener=function(G){this.listeners=this.listeners.filter(function(X){return X!==G})}; g.P.SN=function(){this.Hp.clear();this.Je=null;this.kB.get().clear()}; g.P.o9=function(){}; g.P.Pfc=function(G,X,Q,R,S){X.videoId==="nPpU29QrbiU"&&this.U.Ni("ads_ssm_vdc_s",{pt:Q,dvt:G});be(this.HM.get())&&G!=="dataloaded"||j0L(this,X,Q);if(Ny(this.HM.get())&&G==="newdata"&&S!==void 0){G=this.WO();var Z=X.clientPlaybackNonce,H={};qr(this,"rte",(H.ec=Z,H.xc=R==null?void 0:R.clientPlaybackNonce,H.tr=S,H.pt=Q,H.ia=Z!==G,H.ctp=Hj(Z),H));X=X.clientPlaybackNonce;R=R==null?void 0:R.clientPlaybackNonce;S=MyL(S);if(S!==1)if(R!==void 0)for(Q=g.e(this.listeners),G=Q.next();!G.done;G=Q.next())G.value.FD(R, X,S);else qQ("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:X,transitionReason:String(S)});S=g.e(this.listeners);for(R=S.next();!R.done;R=S.next())R.value.ev(X)}}; g.P.YTA=function(G,X){G!==void 0&&(this.Je=G,X===void 0?qQ("Expected ad video start time on SS video changed"):this.Hp.set(G,X));var Q=this.U.getPresentingPlayerType(!0),R=this.U.getVideoData(Q),S;G===void 0?S=null:S=this.kB.get().N.get(G)||null;this.U.getVideoData(1).Ni("ads_ssvc",{pt:Q,cpn:R==null?void 0:R.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:X,pid:G,slid:S==null?void 0:S.layoutId});R?j0L(this,R,Q):qQ("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:G})}; g.P.gA=function(G,X){var Q=G.author,R=G.clientPlaybackNonce,S=G.isListed,Z=G.sY,H=G.title,w=G.fv,h=G.i8,L=G.isMdxPlayback,k=G.LQ,Y=G.mdxEnvironment,M=G.isAutonav,m=G.QC,u=G.mD,r=G.m2,x=G.videoId||"",c=G.profilePicture||"",z=G.F6||"",B=G.n2()||!1,V=G.Yr()||!1;G=G.iM||void 0;Z=this.kB.get().N.get(Z)||{layoutId:null,slotId:null};var p=this.U.getVideoData(1),b=p.IW();p=p.getPlayerResponse();X=1E3*this.U.getDuration(X);var A=1E3*this.U.getDuration(1),wX,qe,hG=(p==null?void 0:(wX=p.playerConfig)==null? void 0:(qe=wX.daiConfig)==null?void 0:qe.enableDai)||!1,jy,QZ;wX=(p==null?void 0:(jy=p.playerConfig)==null?void 0:(QZ=jy.daiConfig)==null?void 0:QZ.enablePreroll)||!1;return Object.assign({},Z,{videoId:x,author:Q,clientPlaybackNonce:R,Wg:X,Ob:A,daiEnabled:hG,dW:wX,isListed:S,IW:b,profilePicture:c,title:H,F6:z,fv:w,i8:h,iM:G,isMdxPlayback:L,LQ:k,mdxEnvironment:Y,isAutonav:M,QC:m,mD:u,m2:r,n2:B,Yr:V})}; g.P.zT=function(){this.listeners.length=0;this.yI=null;g.I.prototype.zT.call(this)};g.T(Q5,g.I);g.P=Q5.prototype;g.P.SN=function(){var G=this;Ny(this.HM.get())||(this.N=Cs(function(){G.U.U_()||G.U.po("ad",1)}))}; g.P.o9=function(){}; g.P.addListener=function(G){this.listeners.push(G)}; g.P.removeListener=function(G){this.listeners=this.listeners.filter(function(X){return X!==G})}; g.P.xG=function(){}; g.P.playVideo=function(){this.U.playVideo()}; g.P.pauseVideo=function(){this.U.pauseVideo()}; g.P.resumeVideo=function(G){this.cD(G)&&this.U.playVideo()}; g.P.cD=function(G){return this.U.getPlayerState(G)===2}; g.P.getCurrentTimeSec=function(G,X,Q){var R=this.lB.get().Je;if(G===2&&!X&&R!==null)return Za(this,R);Fd(this.HM.get(),"html5_ssap_use_cpn_to_get_time")||(Q=void 0);return Q!==void 0?this.U.getCurrentTime(G,X,Q):this.U.getCurrentTime(G,X)}; g.P.getVolume=function(){return this.U.getVolume()}; g.P.isMuted=function(){return this.U.isMuted()}; g.P.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.P.getPlayerState=function(G){return this.U.getPlayerState(G)}; g.P.getGetAdBreakContext=function(){return this.U.getGetAdBreakContext()}; g.P.isFullscreen=function(){return this.U.isFullscreen()}; g.P.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.P.ly=function(G){this.U.ly(G)}; g.P.cWH=function(){var G=this.U.getPresentingPlayerType(!0),X=this.getCurrentTimeSec(G,!1);if(G===2){G=g.e(this.listeners);for(var Q=G.next();!Q.done;Q=G.next())Q.value.Sc(X)}else if(G===1)for(G=g.e(this.Oy),Q=G.next();!Q.done;Q=G.next())Q.value.xG(X)}; g.P.hG_=function(G){for(var X=g.e(this.listeners),Q=X.next();!Q.done;Q=X.next())Q.value.Gg(G,this.getPresentingPlayerType())}; g.P.onFullscreenToggled=function(G){for(var X=g.e(this.listeners),Q=X.next();!Q.done;Q=X.next())Q.value.onFullscreenToggled(G)}; g.P.onVolumeChange=function(){for(var G=g.e(this.listeners),X=G.next();!X.done;X=G.next())X.value.onVolumeChange()}; g.P.Dk=function(){for(var G=this.U.isMinimized(),X=g.e(this.listeners),Q=X.next();!Q.done;Q=X.next())Q.value.Dk(G)}; g.P.lc=function(G){for(var X=g.e(this.listeners),Q=X.next();!Q.done;Q=X.next())Q.value.lc(G)}; g.P.EM=function(){for(var G=this.U.mp().uF(),X=g.e(this.listeners),Q=X.next();!Q.done;Q=X.next())Q.value.mB(G)}; g.P.Q1=function(G){for(var X=g.e(this.listeners),Q=X.next();!Q.done;Q=X.next())Q.value.Q1(G)}; g.P.qa=function(){for(var G=g.e(this.listeners),X=G.next();!X.done;X=G.next())X.value.qa()};g.T(P7v,g.I);g.T(w5,g.I);w5.prototype.zT=function(){this.Ou.U_()||this.Ou.get().removeListener(this);g.I.prototype.zT.call(this)};h0.prototype.fetch=function(G){var X=G.WJ;return this.N.fetch(G.z9,{A4:G.A4===void 0?void 0:G.A4,C4:X,cueProcessedMs:G.cueProcessedMs===void 0?0:G.cueProcessedMs}).then(function(Q){return s0H(Q,X)})};g.T(LW,g.I);g.P=LW.prototype;g.P.addListener=function(G){this.listeners.push(G)}; g.P.removeListener=function(G){this.listeners=this.listeners.filter(function(X){return X!==G})}; g.P.C0=function(G){TXk(this,G,1)}; g.P.onAdUxClicked=function(G,X){kY(this,function(Q){Q.AE(G,X)})}; g.P.Ww=function(G){kY(this,function(X){X.v3(G)})}; g.P.yR=function(G){kY(this,function(X){X.Sy(G)})}; g.P.edp=function(G){kY(this,function(X){X.CR(G)})};YY.prototype.reduce=function(G){switch(G.event){case "unknown":return}var X=G.identifier;var Q=this.N[X];Q?X=Q:(Q={Ey:null,hQ:-Infinity},X=this.N[X]=Q);Q=G.startSecs+G.N/1E3;if(!(Q=this.N.startSecs&&Q.startSecs<=this.N.startSecs+this.N.Du)){var R=void 0;if(v9(this.HM.get())&&Q.identifier!==((R=this.N)==null?void 0:R.identifier)){var S=R=void 0,Z=void 0,H=void 0;ca(this.nO.get(),"ocud","ccpi."+Q.identifier+";ccpe."+Q.event+";ccps."+Q.startSecs+";\n ccpd."+Q.Du+";pcpi."+((R=this.N)==null?void 0:R.identifier)+ ";pcpe."+((S=this.N)==null?void 0:S.event)+";\n pcps."+((Z=this.N)==null?void 0:Z.startSecs)+";pcpd."+((H=this.N)==null?void 0:H.Du)+";")}R=void 0;Q.identifier!==((R=this.N)==null?void 0:R.identifier)&&qQ("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.N=Q,rG4(this,Q)}}; g.P.zT=function(){this.W!=null&&(this.W.unsubscribe("cuepointupdated",this.MJ,this),this.W=null);this.listeners.length=0;this.Ke.length=0;g.I.prototype.zT.call(this)};g.P=m2.prototype;g.P.DL=function(G,X,Q,R,S,Z,H,w){return this.U.DL(G,X,Q,R,S,Z,H,w)}; g.P.yS=function(G,X){this.U.yS(G,X)}; g.P.GL=function(G,X,Q){this.U.GL(G,X,Q)}; g.P.YJ=function(G){this.U.YJ(G)}; g.P.EP=function(G,X,Q,R,S,Z,H,w){this.U.EP(G,X,Q,R,S,Z,H,w)}; g.P.FJ=function(G){return this.U.FJ(G)}; g.P.finishSegmentByCpn=function(G,X,Q){Q=xeH(Q);this.U.finishSegmentByCpn(G,X,Q)};g.T(ox,g.I);g.T(zUG,g.I);g.T(cGk,g.I);g.T(gTd,g.I);g.T(UeH,g.I);g.T(lGv,g.I);g.T(FwZ,g.I);FwZ.prototype.Y=function(){return this.W};g.T(C7k,dc); C7k.prototype.Y=function(G){var X=G.content;if(X.componentType==="shopping-companion")switch(G.actionType){case 1:case 2:G=this.N.getVideoData(1);this.N.E_("updateKevlarOrC3Companion",{contentVideoId:G&&G.videoId,shoppingCompanionCarouselRenderer:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.N,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:this.N.E_("updateKevlarOrC3Companion",{})}else if(X.componentType==="action-companion")switch(G.actionType){case 1:case 2:G=this.N.getVideoData(1); this.N.E_("updateKevlarOrC3Companion",{contentVideoId:G&&G.videoId,actionCompanionAdRenderer:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.N,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:X.renderer&&(X=this.N.getVideoData(1),this.N.E_("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId})),this.N.E_("updateKevlarOrC3Companion",{})}else if(X.componentType==="image-companion")switch(G.actionType){case 1:case 2:G=this.N.getVideoData(1);this.N.E_("updateKevlarOrC3Companion", {contentVideoId:G&&G.videoId,imageCompanionAdRenderer:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.N,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:X=this.N.getVideoData(1),this.N.E_("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId}),this.N.E_("updateKevlarOrC3Companion",{})}else if(X.componentType==="top-banner-image-text-icon-buttoned")switch(G.actionType){case 1:case 2:G=this.N.getVideoData(1);this.N.E_("updateKevlarOrC3Companion", {contentVideoId:G&&G.videoId,topBannerImageTextIconButtonedLayoutViewModel:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.N,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:X.renderer&&(X=this.N.getVideoData(1),this.N.E_("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId})),this.N.E_("updateKevlarOrC3Companion",{})}else if(X.componentType==="banner-image")switch(G.actionType){case 1:case 2:G=this.N.getVideoData(1);this.N.E_("updateKevlarOrC3Companion", {contentVideoId:G&&G.videoId,bannerImageLayoutViewModel:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.N,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:X=this.N.getVideoData(1),this.N.E_("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId}),this.N.E_("updateKevlarOrC3Companion",{})}else if(X.componentType==="ads-engagement-panel")switch(X=X.renderer,G.actionType){case 1:case 2:this.N.E_("updateEngagementPanelAction",X.addAction);this.N.E_("changeEngagementPanelVisibility", X.expandAction);break;case 3:this.N.E_("changeEngagementPanelVisibility",X.hideAction),this.N.E_("updateEngagementPanelAction",X.removeAction)}else if(X.componentType==="ads-engagement-panel-layout"){var Q=X.renderer;switch(G.actionType){case 1:case 2:this.N.E_("updateEngagementPanelAction",{action:c8(Q.addAction),layoutId:X.layoutId,onLayoutVisibleCallback:X.N,interactionLoggingClientData:X.interactionLoggingClientData});this.N.E_("changeEngagementPanelVisibility",c8(Q.expandAction));break;case 3:this.N.E_("changeEngagementPanelVisibility", c8(Q.hideAction)),this.N.E_("updateEngagementPanelAction",{action:c8(Q.removeAction)})}}};g.T(ty4,nD);g.P=ty4.prototype;g.P.init=function(G,X,Q){nD.prototype.init.call(this,G,X,Q);g.DN(this.Y,"stroke-dasharray","0 "+this.W);this.Y.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.S.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.V.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.P.clear=function(){this.hide()}; g.P.hide=function(){b5(this);nD.prototype.hide.call(this)}; g.P.show=function(){$C(this);nD.prototype.show.call(this)}; g.P.lZ=function(){this.hide()}; g.P.vO=function(){if(this.N){var G=this.N.getProgressState();G!=null&&G.current!=null&&g.DN(this.Y,"stroke-dasharray",G.current/G.seekableEnd*this.W+" "+this.W)}};g.T(VyZ,ZT);g.P=VyZ.prototype; g.P.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);if(X.image&&X.image.thumbnail)if(X.headline)if(X.description)if(X.backgroundImage&&X.backgroundImage.thumbnail)if(X.actionButton&&g.y(X.actionButton,g.Lv))if(G=X.durationMilliseconds||0,typeof G!=="number"||G<=0)g.aU(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+G));else if(X.navigationEndpoint){var R=this.api.getVideoData(2);if(R!=null){var S=X.image.thumbnail.thumbnails;S!=null&& S.length>0&&g.lY(g.lA(S[0].url))&&(S[0].url=R.profilePicture,g.lY(g.lA(R.profilePicture))&&t0w("VideoPlayer",239976093,"Expected non-empty profile picture."));S=X.backgroundImage.thumbnail.thumbnails;S!=null&&S.length>0&&g.lY(g.lA(S[0].url))&&(S[0].url=R.yJ());S=X.headline;S!=null&&g.lY(g.lA(S.text))&&(S.text=R.author)}this.j.init(v8("ad-image"),X.image,Q);this.S.init(v8("ad-text"),X.headline,Q);this.Y.init(v8("ad-text"),X.description,Q);this.CO.init(v8("ad-image"),X.backgroundImage,Q);R=["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.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.Y.element.classList.add("ytp-ad-action-interstitial-description-light");R.push("ytp-ad-action-interstitial-action-button-dark");this.api.Z().W&&(R.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),R.push("ytp-ad-action-interstitial-action-button-dark"));this.api.Z().G("enable_unified_action_endcap_on_web")&& !this.api.Z().W&&(R.push("ytp-ad-action-interstitial-action-button-unified"),this.cM.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.BM.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.kO.classList.add("ytp-ad-action-interstitial-card-unified"),this.yH.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Y.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Mi.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.IU.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.SA.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Oz(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,R);g.d(this,this.actionButton);this.actionButton.s_(this.cM); this.actionButton.init(v8("button"),g.y(X.actionButton,g.Lv),Q);tx(this.actionButton.element);R=dv(this.actionButton.element);Ir(this.actionButton.element,R+" This link opens in new tab");this.navigationEndpoint=X.navigationEndpoint;this.V.B(this.IU,"click",this.S2,this);this.V.B(this.yH,"click",this.S2,this);!this.api.Z().G("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.Z().W||this.V.B(this.Mi,"click",this.S2,this);this.N=this.p8?new uP(this.api,G):new PV(G);g.d(this,this.N);if(X.skipButton){(G= g.y(X.skipButton,ACZ))&&this.N&&(this.skipButton=new kA(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.N,this.SJ),g.d(this,this.skipButton),this.skipButton.s_(this.element),this.skipButton.init(v8("skip-button"),G,Q));if(Q=X.adBadgeRenderer)if(Q=g.y(Q,NZO))G=new mU(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,!0,!0),G.s_(this.SA),G.init(v8("simple-ad-badge"),Q,this.macros),g.d(this,G);if(Q=X.adInfoRenderer)if(Q=g.y(Q,w_))G=new DT(this.api,this.layoutId,this.interactionLoggingClientData, this.Fm,this.element,void 0,!0),G.s_(this.SA),G.init(v8("ad-info-hover-text-button"),Q,this.macros),g.d(this,G)}else X.nonskippableOverlayRenderer&&(G=g.y(X.nonskippableOverlayRenderer,ho))&&this.N&&(this.W=new i5(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.N,!1),g.d(this,this.W),this.W.s_(this.element),this.W.init(v8("ad-preview"),G,Q));X.countdownRenderer&&(X=X.countdownRenderer,g.y(X,nia)&&this.N&&(Q=new ty4(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm, this.N),g.d(this,Q),Q.s_(this.element),Q.init(v8("timed-pie-countdown"),g.y(X,nia),this.macros)));this.show();this.element.focus()}else g.aU(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.aU(Error("AdActionInterstitialRenderer has no button."));else g.aU(Error("AdActionInterstitialRenderer has no background AdImage."));else g.aU(Error("AdActionInterstitialRenderer has no description AdText."));else g.aU(Error("AdActionInterstitialRenderer has no headline AdText."));else g.aU(Error("AdActionInterstitialRenderer has no image."))}; g.P.clear=function(){g.e8(this.V);this.hide()}; g.P.show=function(){IGv(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.W&&this.W.show();ZT.prototype.show.call(this)}; g.P.hide=function(){IGv(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.W&&this.W.hide();ZT.prototype.hide.call(this)}; g.P.S2=function(){this.navigationEndpoint&&(this.layoutId?this.Fm.executeCommand(this.navigationEndpoint,this.layoutId):g.aU(Error("Missing layoutId for ad action interstitial.")))};var fGo={iconType:"CLOSE"},Tf=new g.AC(320,63);g.T(yGd,ZT);g.P=yGd.prototype; g.P.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);this.V=X;this.j=g.lL(this.V.onClickCommands||[]);this.SA=this.V.onErrorCommand||null;if(G=this.V.contentSupportedRenderer)G=this.V.contentSupportedRenderer,X=this.V.adInfoRenderer||null,g.y(G,yCG)?(this.S=g.hj("ytp-ad-overlay-ad-info-button-container",this.Y.element),De3(this,X),G=AGG(this,g.y(G,yCG))):g.y(G,fbv)?(this.S=g.hj("ytp-ad-overlay-ad-info-button-container",this.W.element),De3(this,X),G=nTv(this,g.y(G,fbv))):g.y(G,Dqd)?(this.S= g.hj("ytp-ad-overlay-ad-info-button-container",this.N.element),De3(this,X),G=$eZ(this,g.y(G,Dqd))):(g.aU(Error("InvideoOverlayAdRenderer content could not be initialized.")),G=!1);G&&(this.show(),bVS(this,!0))}; g.P.clear=function(){bVS(this,!1);this.IU.reset();this.yH=0;this.Y.hide();this.logVisibility(this.Y.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.N.hide();this.logVisibility(this.N.element,!1);this.hide();this.dispose()}; g.P.nrU=function(){this.cM&&(this.layoutId?this.Fm.executeCommand(this.cM,this.layoutId):g.aU(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.P.M$=function(){a:{if(this.V&&this.V.closeButton&&this.V.closeButton.buttonRenderer){var G=this.V.closeButton.buttonRenderer;if(G.serviceEndpoint){G=[G.serviceEndpoint];break a}}G=[]}G=g.e(G);for(var X=G.next();!X.done;X=G.next())X=X.value,this.layoutId?this.Fm.executeCommand(X,this.layoutId):g.aU(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.P.JTB=function(){this.CO||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.P.JH=function(){this.CO||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.JH("invideo-overlay")}; g.P.cTc=function(G){G.target===this.S&&g.hj("ytp-ad-button",this.BM.element).click()};g.T(vTn,nD);g.P=vTn.prototype;g.P.init=function(G,X,Q){nD.prototype.init.call(this,G,X,Q);G=X.durationMs;this.Y=G==null||G===0?0:G+this.N.getProgressState().current*1E3;if(X.text)var R=X.text.templatedAdText;else X.staticMessage&&(R=X.staticMessage);this.messageText.init(v8("ad-text"),R,Q);this.messageText.s_(this.W.element);this.V.show(100);this.show()}; g.P.clear=function(){this.hide()}; g.P.hide=function(){JGL(this,!1);nD.prototype.hide.call(this);this.W.hide();this.messageText.hide();b5(this)}; g.P.show=function(){JGL(this,!0);nD.prototype.show.call(this);$C(this);this.W.show();this.messageText.show()}; g.P.lZ=function(){this.hide()}; g.P.vO=function(){if(this.N!=null){var G=this.N.getProgressState();G!=null&&G.current!=null&&(G=1E3*G.current,!this.yH&&G>=this.Y?(this.V.hide(),this.yH=!0):this.messageText&&this.messageText.isTemplated()&&(G=Math.max(0,Math.ceil((this.Y-G)/1E3)),G!==this.S&&(A4(this.messageText,{TIME_REMAINING:String(G)}),this.S=G)))}};g.T(iV4,ZT);g.P=iV4.prototype; g.P.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,{});X.image&&X.image.thumbnail?X.headline?X.description?X.actionButton&&g.y(X.actionButton,g.Lv)?(this.Y.init(v8("ad-image"),X.image,Q),this.W.init(v8("ad-text"),X.headline,Q),this.V.init(v8("ad-text"),X.description,Q),this.actionButton=new Oz(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,["ytp-ad-underlay-action-button"]),X.backgroundColor&&g.DN(this.element,"background-color",g.BV(X.backgroundColor)),g.d(this,this.actionButton), this.actionButton.s_(this.S),this.actionButton.init(v8("button"),g.y(X.actionButton,g.Lv),Q),G=g.i2(this.api.Z().experiments,"player_underlay_video_width_fraction"),this.api.Z().G("place_shrunken_video_on_left_of_player")?(X=this.N,g.QD(X,"ytp-ad-underlay-left-container"),g.Gk(X,"ytp-ad-underlay-right-container"),g.DN(this.N,"margin-left",Math.round((G+.02)*100)+"%")):(X=this.N,g.QD(X,"ytp-ad-underlay-right-container"),g.Gk(X,"ytp-ad-underlay-left-container")),g.DN(this.N,"width",Math.round((1-G- .04)*100)+"%"),this.api.n_()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.w5.bind(this)),this.api.addEventListener("resize",this.OS.bind(this))):g.aU(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.aU(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.aU(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.aU(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.P.show=function(){G3d(!0);this.actionButton&&this.actionButton.show();ZT.prototype.show.call(this)}; g.P.hide=function(){G3d(!1);this.actionButton&&this.actionButton.hide();ZT.prototype.hide.call(this)}; g.P.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.w5.bind(this));this.api.removeEventListener("resize",this.OS.bind(this));this.hide()}; g.P.onClick=function(G){ZT.prototype.onClick.call(this,G);this.actionButton&&g.Ks(this.actionButton.element,G.target)&&this.api.pauseVideo()}; g.P.w5=function(G){G==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):G==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):G==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))}; g.P.OS=function(G){G.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):G.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.DN(this.W.element,"font-size",G.width/40+"px")};g.T(KW,ZT); KW.prototype.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);X.toggledLoggingParams&&(this.toggledLoggingParams=X.toggledLoggingParams);X.answer&&g.y(X.answer,g.Lv)?(G=new Oz(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),G.s_(this.answer),G.init(v8("ytp-ad-survey-answer-button"),g.y(X.answer,g.Lv),Q),G.show()):X.answer&&g.y(X.answer,Ph)&&(this.N=new VJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm, ["ytp-ad-survey-answer-toggle-button"]),this.N.s_(this.answer),g.d(this,this.N),this.N.init(v8("survey-answer-button"),g.y(X.answer,Ph),Q));this.show()}; KW.prototype.BA=function(G){this.layoutId?UD(this.Fm,G,this.layoutId,this.macros):(G=new g.Ic("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.aU(G))}; KW.prototype.onClick=function(G){ZT.prototype.onClick.call(this,G);if(this.api.Z().G("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; KW.prototype.clear=function(){this.hide()};g.T(Xnd,ZT);Xnd.prototype.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);X.answer&&g.y(X.answer,Ph)&&(this.button=new VJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.s_(this.N),this.button.init(v8("survey-none-of-the-above-button"),g.y(X.answer,Ph),Q));this.show()};g.T(eT,Oz);eT.prototype.init=function(G,X,Q){Oz.prototype.init.call(this,G,X,Q);G=!1;X.text&&(X=g.q1(X.text),G=!g.lY(X));G||g.EL(Error("No submit text was present in the renderer."))}; eT.prototype.onClick=function(G){this.publish("l");Oz.prototype.onClick.call(this,G)};g.T(r5,ZT); r5.prototype.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);if(G=X.skipOrPreviewRenderer)g.y(G,Ba)?(G=g.y(G,Ba),Q=new jz(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.V,!0),Q.s_(this.skipOrPreview),Q.init(v8("skip-button"),G,this.macros),g.d(this,Q),this.N=Q):g.y(G,ho)&&(G=g.y(G,ho),Q=new i5(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.V,!1),Q.s_(this.skipOrPreview),Q.init(v8("ad-preview"),G,this.macros),Q.yH.show(100),Q.show(),g.d(this,Q), this.N=Q);this.N==null&&(G=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(X)),g.aU(G));X.submitButton&&(G=X.submitButton,g.y(G,g.Lv)&&(G=g.y(G,g.Lv),Q=new eT(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),Q.s_(this.submitButton),Q.init(v8("survey-submit"),G,this.macros),g.d(this,Q),this.W=Q));if(G=X.adBadgeRenderer)G=g.y(G,NZO),Q=new mU(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,!0,!0,!0),Q.s_(this.Y),Q.init(v8("simple-ad-badge"), G,this.macros),this.adBadge=Q.element,g.d(this,Q);if(G=X.adDurationRemaining)G=g.y(G,dqa),Q=new Kw(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.V,void 0,!0),Q.s_(this.Y),Q.init(v8("ad-duration-remaining"),G,this.macros),g.d(this,Q);(X=X.adInfoRenderer)&&g.y(X,w_)&&(G=new DT(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.element,void 0,!0),g.d(this,G),this.adBadge!==void 0?this.Y.insertBefore(G.element,this.adBadge.nextSibling):G.s_(this.Y),G.init(v8("ad-info-hover-text-button"), g.y(X,w_),this.macros));this.show()}; r5.prototype.clear=function(){this.hide()};g.T(ax,ZT);ax.prototype.init=function(G,X,Q){ZT.prototype.init.call(this,G,X,Q);HaL(this)}; ax.prototype.show=function(){this.Y=Date.now();ZT.prototype.show.call(this)}; ax.prototype.lU=function(){};g.T(qvd,ax);g.P=qvd.prototype;g.P.init=function(G,X,Q){var R=this;ax.prototype.init.call(this,G,X,Q);X.questionText&&Qdo(this,X.questionText);X.answers&&X.answers.forEach(function(S,Z){g.y(S,oy)&&Rkn(R,g.y(S,oy),Q,Z)}); this.S=new Set(this.W.map(function(S){return S.N.N})); (G=X.noneOfTheAbove)&&(G=g.y(G,poS))&&wn4(this,G,Q);X.surveyAdQuestionCommon&&ZaH(this,X.surveyAdQuestionCommon);X.submitEndpoints&&(this.submitEndpoints=X.submitEndpoints);this.B(this.element,"change",this.onChange);this.show()}; g.P.lU=function(){hk4(this,!1);this.V.W.subscribe("l",this.IuU,this)}; g.P.onChange=function(G){G.target===this.noneOfTheAbove.button.N?Loo(this):this.S.has(G.target)&&(this.noneOfTheAbove.button.toggleButton(!1),hk4(this,!0))}; g.P.IuU=function(){var G=[],X=this.W.reduce(function(S,Z,H){var w=Z.toggledLoggingParams;Z.N&&Z.N.isToggled()&&w&&(S.push(w),G.push(H));return S},[]).join("&"),Q=this.submitEndpoints.map(function(S){if(!S.loggingUrls)return S; S=g.P$(S);S.loggingUrls=S.loggingUrls.map(function(Z){Z.baseUrl&&(Z.baseUrl=uz(Z.baseUrl,X));return Z}); return S}); if(Q){Q=g.e(Q);for(var R=Q.next();!R.done;R=Q.next())R=R.value,this.layoutId?UD(this.Fm,R,this.layoutId,this.macros):g.aU(Error("Missing layoutId for multi_select_question."))}this.api.Z().G("supports_multi_step_on_desktop")&&this.yH(G)}; g.P.clear=function(){this.api.Z().G("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.T(E6,ax);E6.prototype.init=function(G,X,Q){var R=this;ax.prototype.init.call(this,G,X,Q);X.questionText&&Qdo(this,X.questionText);X.answers&&X.answers.forEach(function(S,Z){g.y(S,oy)&&Rkn(R,g.y(S,oy),Q,Z)}); X.surveyAdQuestionCommon?ZaH(this,X.surveyAdQuestionCommon):XE(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(X)));this.show()}; E6.prototype.clear=function(){this.api.Z().G("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.T(xY,ZT);xY.prototype.init=function(G,X,Q){var R=this;ZT.prototype.init.call(this,G,X,Q);if(this.api.Z().G("supports_multi_step_on_desktop")){var S;this.conditioningRules=(S=X.conditioningRules)!=null?S:[];var Z;this.W=(Z=X.questions)!=null?Z:[];var H;((H=X.questions)==null?0:H.length)&&MZV(this,0)}else(X.questions||[]).forEach(function(w){g.y(w,H9)?Yva(R,g.y(w,H9),Q):g.y(w,ZL)&&jdL(R,g.y(w,ZL),Q)}); this.show()}; xY.prototype.clear=function(){this.api.Z().G("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; xY.prototype.V=function(G){var X=this;if(this.api.Z().G("supports_multi_step_on_desktop")){var Q;if((Q=this.conditioningRules)==null?0:Q.length){var R;if(G.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(S){return S.questionIndex===X.N})==null)g.aU(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(S){if(S.questionIndex===X.N)switch(S.condition){case "CONDITION_ALL_OF":var Z;if((Z=S.answerIndices)==null?0:Z.every(function(w){return G.includes(w)}))R=S.nextQuestionIndex; break;case "CONDITION_ANY_OF":var H;if((H=S.answerIndices)==null?0:H.some(function(w){return G.includes(w)}))R=S.nextQuestionIndex; break;default:g.aU(Error("Expected specified condition in survey conditioning rules."))}}),R!=null)MZV(this,R); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.aU(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.T(O6,ZT); O6.prototype.init=function(G,X,Q){var R=this;ZT.prototype.init.call(this,G,X,Q);G=X.timeoutSeconds||0;if(typeof G!=="number"||G<0)g.aU(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+G));else if(X.timeoutCommands)if(X.text)if(X.ctaButton&&g.y(X.ctaButton,g.Lv))if(X.brandImage)if(X.backgroundImage&&g.y(X.backgroundImage,kp)&&g.y(X.backgroundImage,kp).landscape){this.layoutId||g.aU(Error("Missing layoutId for survey interstitial."));mSS(this.interstitial,g.y(X.backgroundImage, kp).landscape);mSS(this.logoImage,X.brandImage);g.ee(this.text,g.q1(X.text));var S=["ytp-ad-survey-interstitial-action-button"];S.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Oz(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,S);g.d(this,this.actionButton);this.actionButton.s_(this.W);this.actionButton.init(v8("button"),g.y(X.ctaButton,g.Lv),Q);this.actionButton.show();this.N=new uP(this.api,G*1E3);this.N.subscribe("g",function(){R.transition.hide()}); g.d(this,this.N);this.B(this.element,"click",function(Z){var H=Z.target===R.interstitial;Z=R.actionButton.element.contains(Z.target);if(H||Z)if(R.transition.hide(),H)R.api.onAdUxClicked(R.componentType,R.layoutId)}); this.transition.show(100)}else g.aU(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.aU(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.aU(Error("SurveyTextInterstitialRenderer has no button."));else g.aU(Error("SurveyTextInterstitialRenderer has no text."));else g.aU(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; O6.prototype.clear=function(){this.hide()}; O6.prototype.show=function(){o4o(!0);ZT.prototype.show.call(this)}; O6.prototype.hide=function(){o4o(!1);ZT.prototype.hide.call(this)};g.T(zf,nD);g.P=zf.prototype; g.P.init=function(G,X){nD.prototype.init.call(this,G,X,{});if(X.durationMilliseconds){if(X.durationMilliseconds<0){g.aU(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+X.durationMilliseconds));return}this.W=X.durationMilliseconds}else this.W=this.N.tM();var Q;if((Q=X.previewText)==null||!Q.text||g.lY(X.previewText.text))g.aU(Error("No text is returned for AdPreview."));else{this.S=X.previewText;X.previewText.isTemplated||g.ee(this.Y,X.previewText.text);var R; if(((R=this.api.getVideoData(1))==null?0:R.Lu)&&X.previewImage){var S,Z;(G=((Z=Yf(((S=X.previewImage)==null?void 0:S.sources)||[],52,!1))==null?void 0:Z.url)||"")&&G.length?(this.previewImage=new g.Sa({D:"img",X:"ytp-preview-ad__image",L:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",G),g.d(this,this.previewImage),this.previewImage.s_(this.element)):g.aU(Error("Failed to get imageUrl in AdPreview."))}else this.Y.classList.add("ytp-preview-ad__text--padding--wide")}}; g.P.clear=function(){this.hide()}; g.P.hide=function(){b5(this);nD.prototype.hide.call(this)}; g.P.show=function(){$C(this);nD.prototype.show.call(this)}; g.P.lZ=function(){this.hide()}; g.P.vO=function(){if(this.N){var G=this.N.getProgressState();if(G!=null&&G.current)if(G=1E3*G.current,G>=this.W)this.transition.hide();else{var X;if((X=this.S)==null?0:X.isTemplated)if(X=Math.max(0,Math.ceil((this.W-G)/1E3)),X!==this.V){var Q,R;(G=(Q=this.S)==null?void 0:(R=Q.text)==null?void 0:R.replace("{TIME_REMAINING}",String(X)))&&g.ee(this.Y,G);this.V=X}}}};g.T(cF,ZT); cF.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});var Q,R;if((G=((R=Yf(((Q=X.image)==null?void 0:Q.sources)||[],uG3(X),!0))==null?void 0:R.url)||"")&&G.length){Q=this.VH("ytp-ad-avatar");Q.src=G;var S,Z;if(R=(S=X.interaction)==null?void 0:(Z=S.accessibility)==null?void 0:Z.label)Q.alt=R;switch(X.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(X.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.aU(Error("Failed to get imageUrl in AdAvatar."))}; cF.prototype.clear=function(){this.hide()}; cF.prototype.onClick=function(G){ZT.prototype.onClick.call(this,G)};g.T(g5,ZT); g5.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});var Q;G=(Q=X.label)==null?void 0:Q.content;if((Q=G!=null&&!g.lY(G))||X.iconImage){Q&&(this.buttonText=new g.Sa({D:"span",X:"ytp-ad-button-vm__text",WM:G}),g.d(this,this.buttonText),this.buttonText.s_(this.element));var R,S,Z=((R=X.interaction)==null?0:(S=R.accessibility)==null?0:S.label)||Q?G:"";Z&&Ir(this.element,Z+" This link opens in new tab");tx(this.element);if(X.iconImage){R=void 0;if(X.iconImage){a:{S=X.iconImage;if(S.sources)for(S= g.e(S.sources),G=S.next();!G.done;G=S.next())if(G=G.value,Z=void 0,(Z=G.clientResource)==null?0:Z.imageName){S=G;break a}S=void 0}if(S){var H;R={iconType:(H=S.clientResource)==null?void 0:H.imageName}}}H=xC(R,!1,this.W);H!=null&&(this.buttonIcon=new g.Sa({D:"span",X:"ytp-ad-button-vm__icon",K:[H]}),g.d(this,this.buttonIcon),X.iconLeading?(sM(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):Q?(this.buttonIcon.s_(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.s_(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(X.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.api.G("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.N?"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(X.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.EL(Error("AdButton does not have label or an icon."))}; g5.prototype.clear=function(){this.hide()}; g5.prototype.onClick=function(G){ZT.prototype.onClick.call(this,G)};g.T(PLH,nD);g.P=PLH.prototype; g.P.init=function(G,X){nD.prototype.init.call(this,G,X,{});if(G=g.y(X.avatar,d5)){var Q=X.headline;if(Q){var R=X.description;if(R){var S=g.y(X.button,pW);S?(this.adAvatar.init(v8("ad-avatar"),G),this.headline.init(v8("ad-simple-attributed-string"),new rA(Q)),this.description.init(v8("ad-simple-attributed-string"),new rA(R)),Q.content&&Q.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(v8("ad-button"),S), this.startMilliseconds=X.startMs||0,this.api.n_()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Xw.bind(this)),$C(this)):g.aU(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.aU(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.aU(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.aU(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.P.vO=function(){if(this.N){var G=this.N.getProgressState();G&&G.current&&1E3*G.current>=this.startMilliseconds&&(b5(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.P.lZ=function(){this.clear()}; g.P.onClick=function(G){this.api.pauseVideo();nD.prototype.onClick.call(this,G)}; g.P.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Xw.bind(this))}; g.P.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();nD.prototype.show.call(this)}; g.P.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();nD.prototype.hide.call(this)}; g.P.Xw=function(G){G==="hidden"?this.show():this.hide()};g.T(U6,ZT);g.P=U6.prototype; g.P.init=function(G,X){ZT.prototype.init.call(this,G,X,{});if(!X.label||g.lY(X.label))g.aU(Error("No label is returned for SkipAdButton."));else if(g.ee(this.V,X.label),G=xC({iconType:"SKIP_NEXT_NEW"}),G==null)g.aU(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Y=new g.Sa({D:"span",X:"ytp-skip-ad-button__icon",K:[G]}),g.d(this,this.Y),this.Y.s_(this.element),this.api.Z().experiments.TT("enable_skip_to_next_messaging")&&(X=g.lA(X.targetId)))this.W=!0,this.element.setAttribute("data-tooltip-target-id",X), this.element.setAttribute("data-tooltip-target-fixed","")}; g.P.onClick=function(G){G&&G.preventDefault();var X,Q;XIl(G,{contentCpn:(Q=(X=this.api.getVideoData(1))==null?void 0:X.clientPlaybackNonce)!=null?Q:""})===0?this.api.E_("onAbnormalityDetected"):(ZT.prototype.onClick.call(this,G),this.api.E_("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.P.clear=function(){this.N.reset();this.hide()}; g.P.hide=function(){ZT.prototype.hide.call(this)}; g.P.show=function(){this.N.start();ZT.prototype.show.call(this);this.W&&this.api.Z().experiments.TT("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.T(sdO,nD);g.P=sdO.prototype; g.P.init=function(G,X){nD.prototype.init.call(this,G,X,{});G=g.y(X.preskipState,Xq4);var Q;if((Q=this.api.getVideoData())==null?0:Q.isDaiEnabled()){if(!G){g.aU(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.W=new zf(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.N);g.d(this,this.W);this.W.s_(this.element);var R;(R=this.W)==null||R.init(v8("preview-ad"),G);(Q=this.W)!=null&&(Q.transition.show(100),Q.show())}(Q=g.y(X.skippableState,RmH))?(X.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=X.skipOffsetMilliseconds:(g.EL(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Y.init(v8("skip-button"),Q),this.show()):g.aU(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.P.show=function(){$C(this);nD.prototype.show.call(this)}; g.P.hide=function(){!this.isSkippable&&this.W?this.W.hide():this.Y&&this.Y.hide();b5(this);nD.prototype.hide.call(this)}; g.P.clear=function(){var G;(G=this.W)==null||G.clear();this.Y&&this.Y.clear();b5(this);nD.prototype.hide.call(this)}; g.P.lZ=function(){this.hide()}; g.P.vO=function(){if(1E3*this.N.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var G;(G=this.W)!=null&&G.transition.hide();(G=this.Y)!=null&&(G.transition.show(),G.show())}};g.T(lg,ZT); lg.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});if(X.label){var Q;((Q=X.label)==null?0:Q.content)&&!g.lY(X.label.content)&&(this.linkText=new g.Sa({D:"span",X:"ytp-visit-advertiser-link__text",WM:X.label.content}),g.d(this,this.linkText),this.linkText.s_(this.element));var R,S;if((R=X.interaction)==null?0:(S=R.accessibility)==null?0:S.label)Ir(this.element,X.interaction.accessibility.label+" This link opens in new tab");else{var Z;((Z=X.label)==null?0:Z.content)&&!g.lY(X.label.content)&&Ir(this.element, X.label.content+" This link opens in new tab")}tx(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.aU(Error("No label found in VisitAdvertiserLink."))}; lg.prototype.onClick=function(G){ZT.prototype.onClick.call(this,G);this.api.onAdUxClicked(this.componentType,this.layoutId)}; lg.prototype.clear=function(){this.hide()};g.T(BF,ZT); BF.prototype.init=function(G,X,Q,R){ZT.prototype.init.call(this,G,X,{});if(X.skipOrPreview){Q=X.skipOrPreview;G=g.y(Q,SMo);Q=g.y(Q,Xq4);if(G)this.So=new sdO(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.W),g.d(this,this.So),this.So.s_(this.j),this.So.init(v8("skip-ad"),G);else{var S;Q&&((S=this.api.getVideoData())==null?0:S.isDaiEnabled())&&(this.V=new zf(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.W,1),g.d(this,this.V),this.V.s_(this.j),this.V.init(v8("ad-preview"), Q),S=this.V,S.transition.show(100),S.show())}if(S=g.y(X.skipOrPreview,SMo))var Z=S.skipOffsetMilliseconds}X.playerAdCard&&(S=g.y(X.playerAdCard,QLO))&&(this.playerAdCard=new PLH(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.W),g.d(this,this.playerAdCard),this.playerAdCard.s_(this.Mi),this.playerAdCard.init(v8("ad-avatar-lockup-card"),S));X.adBadgeRenderer&&((S=g.y(X.adBadgeRenderer,WF))?(this.Y=new EX(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,!0),g.d(this, this.Y),this.Y.s_(this.N),this.Y.init(v8("ad-badge"),S)):g.aU(Error("AdBadgeViewModel is not found in player overlay layout.")));X.adPodIndex&&(S=g.y(X.adPodIndex,viH))&&(this.adPodIndex=new xA(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,this.adPodIndex),this.adPodIndex.s_(this.N),this.adPodIndex.init(v8("ad-pod-index"),S));X.adInfoRenderer&&((S=g.y(X.adInfoRenderer,w_))?(this.adInfoButton=new DT(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.element, void 0,!0),g.d(this,this.adInfoButton),this.Y!==void 0?this.N.insertBefore(this.adInfoButton.element,this.Y.element.nextSibling):this.adInfoButton.s_(this.N),this.adInfoButton.init(v8("ad-info-hover-text-button"),S,this.macros)):g.EL(Error("AdInfoRenderer is not found in player overlay layout.")));var H;S=(H=this.api.getVideoData())==null?void 0:H.isDaiEnabled();X.adDurationRemaining&&S&&(H=g.y(X.adDurationRemaining,dqa))&&(this.adDurationRemaining=new Kw(this.api,this.layoutId,this.interactionLoggingClientData, this.Fm,this.W,R.videoAdDurationSeconds,!0),g.d(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.N.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.s_(this.N),this.adDurationRemaining.init(v8("ad-duration-remaining"),H,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));X.visitAdvertiserLink&&(R=g.y(X.visitAdvertiserLink,HsG))&&(this.visitAdvertiserLink=new lg(this.api,this.layoutId, this.interactionLoggingClientData,this.Fm),g.d(this,this.visitAdvertiserLink),this.visitAdvertiserLink.s_(this.N),this.visitAdvertiserLink.init(v8("visit-advertiser-link"),R));X.adDisclosureBanner&&(X=g.y(X.adDisclosureBanner,bTv))&&(this.adDisclosureBanner=new OX(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,this.adDisclosureBanner),this.adDisclosureBanner.s_(this.yH),this.adDisclosureBanner.init(v8("ad-disclosure-banner"),X));this.S=new gA(this.api,this.W,Z,!0);g.d(this, this.S);g.$6(this.api,this.S.element,4);this.show()}; BF.prototype.clear=function(){this.hide()};g.T(THV,ZT);g.P=THV.prototype; g.P.init=function(G,X){ZT.prototype.init.call(this,G,X,{});if(X!=null&&X.title)if(G=X.title)if(this.headline.init(v8("ad-simple-attributed-string"),new rA(G)),G=g.y(X.moreInfoButton,pW)){if(this.moreInfoButton.init(v8("ad-button"),G),X.descriptions)X.descriptions.length>0&&(G=X.descriptions[0])&&(this.N=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,this.N),this.N.s_(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.N.init(v8("ad-simple-attributed-string"), new rA(G))),X.descriptions.length>1&&(X=X.descriptions[1])&&(this.W=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,this.W),this.W.s_(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.W.init(v8("ad-simple-attributed-string"),new rA(X)))}else g.aU(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.aU(Error("No headline found in AdGridCardText."));else g.aU(Error("No headline found in AdGridCardText."))}; g.P.onClick=function(G){ZT.prototype.onClick.call(this,G);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.P.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var G;(G=this.N)==null||G.clear();var X;(X=this.W)==null||X.clear()}; g.P.hide=function(){this.headline.hide();this.moreInfoButton.hide();var G;(G=this.N)==null||G.hide();var X;(X=this.W)==null||X.hide();ZT.prototype.hide.call(this)}; g.P.show=function(){ZT.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var G;(G=this.N)==null||G.show();var X;(X=this.W)==null||X.show()};g.T(Fx,ZT);Fx.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});if(X!=null&&X.gridCards)if(X.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.aU(Error("Only single column style is currently supported in AdGridCardCollection."));else for(G=g.e(X.gridCards),X=G.next();!X.done;X=G.next()){if(X=g.y(X.value,GtS)){var Q=new THV(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,Q);Q.s_(this.element);Q.init(v8("ad-grid-card-text"),X);this.N.push(Q)}}else g.aU(Error("No grid cards found in AdGridCardCollection."))}; Fx.prototype.show=function(){for(var G=g.e(this.N),X=G.next();!X.done;X=G.next())X.value.show();ZT.prototype.show.call(this)}; Fx.prototype.clear=function(){this.hide();for(var G=g.e(this.N),X=G.next();!X.done;X=G.next())X.value.clear()}; Fx.prototype.hide=function(){for(var G=g.e(this.N),X=G.next();!X.done;X=G.next())X.value.hide();ZT.prototype.hide.call(this)};g.T(CW,nD);g.P=CW.prototype;g.P.init=function(G,X,Q,R,S){S=S===void 0?0:S;nD.prototype.init.call(this,G,X,Q,R);this.playerProgressOffsetMs=S;$C(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.ox.bind(this));this.api.addEventListener("resize",this.ES.bind(this));this.api.n_()?(this.W=!0,this.api.ly(!0),this.show()):this.hide()}; g.P.vO=function(){if(this.N){var G=this.N.getProgressState();G&&G.current&&!this.W&&1E3*G.current>=this.playerProgressOffsetMs&&(this.W=!0,this.api.ly(!0),this.show())}}; g.P.lZ=function(){this.W&&this.api.ly(!1);this.hide()}; g.P.clear=function(){this.api.ly(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.ox.bind(this));this.api.removeEventListener("resize",this.ES.bind(this));b5(this);this.hide()}; g.P.hide=function(){KoZ(!1);nD.prototype.hide.call(this)}; g.P.show=function(){KoZ(!0);nD.prototype.show.call(this)};g.T(eka,CW);g.P=eka.prototype; g.P.init=function(G,X,Q,R){if(X!=null&&X.adGridCardCollection)if(X!=null&&X.adButton){var S=Number(X.playerProgressOffsetMs||"0");isNaN(S)?CW.prototype.init.call(this,G,X,Q,R):CW.prototype.init.call(this,G,X,Q,R,S);G=X.headline;Q=g.y(X.adAvatar,d5);G&&Q?(this.headline=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,this.headline),this.headline.s_(this.VH("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(v8("ad-simple-attributed-string"),new rA(G)), this.adAvatar=new cF(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,this.adAvatar),this.adAvatar.s_(this.VH("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(v8("ad-avatar"),Q)):this.V.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");G=g.y(X.adGridCardCollection,iTL);this.adGridCardCollection.init(v8("ad-grid-card-collection"),G);X=g.y(X.adButton,pW);this.adButton.init(v8("ad-button"),X); this.hide()}else g.aU(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.aU(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.P.onClick=function(G){(this.adButton&&g.Ks(this.adButton.element,G.target)||this.adAvatar&&g.Ks(this.adAvatar.element,G.target))&&this.api.pauseVideo();CW.prototype.onClick.call(this,G);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.P.ES=function(){}; g.P.clear=function(){this.hide();var G;(G=this.headline)==null||G.clear();var X;(X=this.adAvatar)==null||X.clear();this.adGridCardCollection.clear();this.adButton.clear();CW.prototype.clear.call(this)}; g.P.show=function(){var G;(G=this.headline)==null||G.show();var X;(X=this.adAvatar)==null||X.show();this.adGridCardCollection.show();this.adButton.show();CW.prototype.show.call(this)}; g.P.hide=function(){var G;(G=this.headline)==null||G.hide();var X;(X=this.adAvatar)==null||X.hide();this.adGridCardCollection.hide();this.adButton.hide();CW.prototype.hide.call(this)}; g.P.ox=function(G){G==="transitioning"?(this.Y.classList.remove("ytp-ad-underlay-clickable"),this.show()):G==="visible"?this.Y.classList.add("ytp-ad-underlay-clickable"):G==="hidden"&&(this.hide(),this.Y.classList.remove("ytp-ad-underlay-clickable"))};g.T(t0,ZT); t0.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});if(X.attributes===void 0)g.aU(Error("No attributes found in AdDetailsLineViewModel."));else if(X.style===void 0)g.aU(Error("No style found in AdDetailsLineViewModel."));else{G=g.e(X.attributes);for(var Q=G.next();!Q.done;Q=G.next())if(Q=Q.value,Q.text!==void 0){Q=Q.text;var R=X.style,S=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,S);S.s_(this.element);a:switch(R){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":R="ytp-ad-details-line__text--style-responsive"; break a;default:R="ytp-ad-details-line__text--style-standard"}S.element.classList.add(R);S.init(v8("ad-simple-attributed-string"),new rA(Q));this.N.push(S)}this.show()}}; t0.prototype.show=function(){this.N.forEach(function(G){G.show()}); ZT.prototype.show.call(this)}; t0.prototype.clear=function(){this.hide()}; t0.prototype.hide=function(){this.N.forEach(function(G){G.hide()}); ZT.prototype.hide.call(this)};g.T(V5,ZT);V5.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});var Q,R;(G=((R=Yf(((Q=X.image)==null?void 0:Q.sources)||[]))==null?void 0:R.url)||"")&&G.length?(Q=this.VH("ytp-image-background-image"),g.DN(Q,"backgroundImage","url("+G+")"),X.blurLevel!==void 0&&g.DN(Q,"filter","blur("+X.blurLevel+"px)"),X.gradient!==void 0&&(X=new g.f({D:"div",aU:["ytp-image-background--gradient-vertical"]}),g.d(this,X),X.s_(this.element)),this.show()):g.aU(Error("Failed to get imageUrl in ImageBackground."))}; V5.prototype.clear=function(){this.hide()};g.T(rOG,nD);g.P=rOG.prototype;g.P.init=function(G,X){nD.prototype.init.call(this,G,X,{});g.DN(this.Y,"stroke-dasharray","0 "+this.W);this.show()}; g.P.clear=function(){this.hide()}; g.P.hide=function(){b5(this);nD.prototype.hide.call(this)}; g.P.show=function(){$C(this);nD.prototype.show.call(this)}; g.P.lZ=function(){this.hide()}; g.P.vO=function(){if(this.N){var G=this.N.getProgressState();G!=null&&G.current!=null&&g.DN(this.Y,"stroke-dasharray",G.current/G.seekableEnd*this.W+" "+this.W)}};g.T(Ix,ZT); Ix.prototype.init=function(G,X){ZT.prototype.init.call(this,G,X,{});if(E43(X)){this.adAvatar=new cF(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,this.adAvatar);this.adAvatar.s_(this.VH("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(v8("ad-avatar"),g.y(X.adAvatar,d5));this.headline=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm);g.d(this,this.headline);this.headline.s_(this.VH("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(v8("ad-simple-attributed-string"),new rA(X.headline));if(G=g.y(X.adDetailsLine,$qZ))this.detailsLine=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,this.detailsLine),this.detailsLine.s_(this.VH("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(v8("ad-details-line"),G);this.adButton=new g5(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,!0);g.d(this,this.adButton); this.adButton.s_(this.VH("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(v8("ad-button"),g.y(X.adButton,pW));this.adBadge=new EX(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,!0);g.d(this,this.adBadge);this.adBadge.s_(this.V);this.adBadge.init(v8("ad-badge"),g.y(X.adBadge,WF));this.adInfoButton=new DT(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.element,void 0,!0);g.d(this,this.adInfoButton);this.adInfoButton.s_(this.V); this.adInfoButton.init(v8("ad-info-hover-text-button"),g.y(X.adInfoRenderer,w_),this.macros);if(G=g.y(X.skipAdButton,RmH))this.skipAdButton=new U6(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,this.skipAdButton),this.skipAdButton.s_(this.element),this.skipAdButton.init(v8("skip-button"),G);this.W=new PV(X.durationMilliseconds);g.d(this,this.W);if(G=g.y(X.countdownViewModel,ZsH))this.N=new rOG(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm,this.W),g.d(this, this.N),this.N.s_(this.VH("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.N.init(v8("timed-pie-countdown"),G);if(X=g.y(X.imageBackground,JCG))this.imageBackground=new V5(this.api,this.layoutId,this.interactionLoggingClientData,this.Fm),g.d(this,this.imageBackground),this.imageBackground.s_(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(v8("image-background"), X);this.show();this.element.focus()}}; Ix.prototype.clear=function(){g.e8(this.Y);this.hide()}; Ix.prototype.show=function(){aVk(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();ZT.prototype.show.call(this)}; Ix.prototype.hide=function(){aVk(!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.N&&this.N.hide();this.imageBackground&&this.imageBackground.hide();ZT.prototype.hide.call(this)};g.T(y5,g.ic);g.P=y5.prototype;g.P.tM=function(){return 1E3*this.api.getDuration(this.Of,!1)}; g.P.stop=function(){this.N&&this.handler.Ds(this.N)}; g.P.o6=function(){var G=this.api.getProgressState(this.Of);this.W={seekableStart:G.seekableStart,seekableEnd:G.seekableEnd,current:this.api.getCurrentTime(this.Of,!1)};this.publish("h")}; g.P.getProgressState=function(){return this.W}; g.P.Sw=function(G){g.Lw(G,2)&&this.publish("g")};var Bf4="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.T(fW,dc); fW.prototype.Y=function(G){var X=G.id,Q=G.content,R=Q.componentType;if(!Bf4.includes(R))switch(G.actionType){case 1:G=this.api;var S=this.Fm,Z=Q.layoutId,H=Q.interactionLoggingClientData,w=Q instanceof FT?Q.p8:!1,h=Q instanceof FT||Q instanceof o1?Q.SJ:!1;H=H===void 0?{}:H;w=w===void 0?!1:w;h=h===void 0?!1:h;switch(R){case "invideo-overlay":G=new yGd(G,Z,H,S);break;case "player-overlay":G=new UX(G,Z,H,S,new y5(G),h);break;case "player-overlay-layout":G=new BF(G,Z,H,S,new y5(G));break;case "survey":G= new xY(G,Z,H,S);break;case "ad-action-interstitial":G=new VyZ(G,Z,H,S,w,h);break;case "video-interstitial-buttoned-centered":G=new Ix(G,Z,H,S);break;case "survey-interstitial":G=new O6(G,Z,H,S);break;case "ad-message":G=new vTn(G,Z,H,S,new y5(G,1));break;case "player-underlay":G=new iV4(G,Z,H,S);break;case "display-underlay-text-grid-cards":G=new eka(G,Z,H,S,new y5(G));break;default:G=null}if(!G){g.EL(Error("No UI component returned from ComponentFactory for type: "+R));break}g.k7(this.components, X)?g.EL(Error("Ad UI component already registered: "+X)):this.components[X]=G;G.bind(Q);Q instanceof lS?this.W?this.W.append(G.w3):g.EL(Error("Underlay view was not created but UnderlayRenderer was created")):this.V.append(G.w3);break;case 2:X=xSZ(this,G);if(X==null)break;X.bind(Q);break;case 3:Q=xSZ(this,G),Q!=null&&(g.Xh(Q),g.k7(this.components,X)?(Q=this.components,X in Q&&delete Q[X]):g.EL(Error("Ad UI component does not exist: "+X)))}}; fW.prototype.zT=function(){g.Q0(Object.values(this.components));this.components={};dc.prototype.zT.call(this)};g.T(Oaa,g.P6);g.P=Oaa.prototype;g.P.create=function(){try{zkZ(this),this.load(),this.created=!0,zkZ(this)}catch(G){qQ(G instanceof Error?G:String(G))}}; g.P.load=function(){try{USG(this)}finally{Ny(PF(this.N).y5)&&this.player.po("ad",1)}}; g.P.destroy=function(){var G=this.player.getVideoData(1);this.N.N.P9.o9(G&&G.clientPlaybackNonce||"");this.unload();this.created=!1}; g.P.unload=function(){g.P6.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(X){qQ(X instanceof Error?X:String(X))}if(this.W!=null){var G=this.W;this.W=null;G.dispose()}this.Y.reset()}; g.P.iZ=function(){return!1}; g.P.getAdState=function(){return-1}; g.P.getOptions=function(){return Object.values(lSO)}; g.P.Zk=function(G,X){X=X===void 0?{}:X;switch(G){case "replaceUrlMacros":return G=X,G.url?(X=bXV(this.player),Object.assign(X,G.K0b),G=g.Eu(G.url,X)):G=null,G;case "onAboutThisAdPopupClosed":this.Wf(X);break;case "executeCommand":G=X;G.command&&G.layoutId&&this.executeCommand(G);break;default:return null}}; g.P.z7=function(G){var X;return!((X=this.N.N.GF)==null||!X.get().z7(G))}; g.P.Wf=function(G){G.isMuted&&aDy(PF(this.N).RX,PF(this.N).Xe,G.layoutId);this.md&&this.md.Wf()}; g.P.executeCommand=function(G){PF(this.N).Fm.executeCommand(G.command,G.layoutId)};g.G3("yt.player.Application.create",g.Y9.create);g.G3("yt.player.Application.createAlternate",g.Y9.create);BpV(Te(),Upn);var FGL=g.QH("ytcsi.tick");FGL&&FGL("pe");g.ud("ad",Oaa);g.T(g.A0,g.I);g.A0.prototype.start=function(G,X,Q){this.config={from:G,to:X,duration:Q,startTime:(0,g.TB)()};this.next()}; g.A0.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.A0.prototype.next=function(){if(this.config){var G=this.config,X=G.from,Q=G.to,R=G.duration;G=G.startTime;var S=(0,g.TB)()-G;G=this.N;R=dve(G,S/R);if(R==0)G=G.J;else if(R==1)G=G.T;else{S=fT(G.J,G.C,R);var Z=fT(G.C,G.S,R);G=fT(G.S,G.T,R);S=fT(S,Z,R);Z=fT(Z,G,R);G=fT(S,Z,R)}G=g.pT(G,0,1);this.callback(X+(Q-X)*G);G<1&&this.delay.start()}};g.T(g.nW,g.f);g.P=g.nW.prototype;g.P.hasSuggestions=function(){return this.suggestionData.length>0}; g.P.vj=function(){this.W&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.P.show=function(){g.f.prototype.show.call(this);VZO(this)}; g.P.CF=function(){this.W&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.P.GG=function(){this.EM(this.api.mp().getPlayerSize())}; g.P.EM=function(G){var X=this.api.isEmbedsShortsMode()?.5625:16/9,Q=this.api.Yu();G=G.width-(Q?112:58);Q=Math.ceil(G/(Q?320:192));var R=(G-Q*8)/Q;X=Math.floor(R/X);for(var S=g.e(this.N),Z=S.next();!Z.done;Z=S.next())Z=Z.value.VH("ytp-suggestion-image"),Z.style.width=R+"px",Z.style.height=X+"px";this.suggestions.element.style.height=X+"px";this.V=R;this.T=X;this.containerWidth=G;this.columns=Q;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.$Y(this)}; g.P.onVideoDataChange=function(){var G=this.api.Z(),X=this.api.getVideoData();this.S=X.KY?!1:G.V;this.suggestionData=X.suggestions?g.xo(X.suggestions,function(Q){return Q&&!Q.playlistId}):[]; dSa(this);X.KY?this.title.update({title:g.QM("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:X.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.P.scrollTo=function(G){G=g.pT(G,this.containerWidth-this.suggestionData.length*(this.V+8),0);this.J.start(this.scrollPosition,G,1E3);this.scrollPosition=G;g.$Y(this);VZO(this)};})(_yt_player);