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 Y="1;rr;&;debugger;sp;L;toString;rr?[1-9].*\\.c\\.youtube\\.com$;VKe9;Untrusted URL;push;,',,;scheme;:;fallback_count;a1.googlevideo.com;;indexOf;T;www.youtube.com;splice;Og;get;clone;assign;path;length;reverse;t4OYh7;,;youtube.player.web_20250819_22_RC00;,\\//)'';join;?;prototype;slice;signatureCipher;1969-12-31T20:45:51.000-03:15;set;fromCharCode;1970-01-01T03:00:50.000+03:00;sz;=;url;https://local;n;split;fvip;/videoplayback;playerfallback;://;V;function;undefined;\\.a1\\.googlevideo\\.com$;1969-12-31T19:29:54.000-04:30;pop;/initplayback;D;\\.googlevideo\\.com$;/;forEach;unshift;http://local;startsWith;M8;IK;mn;cmo=pf;cmo=;1970-01-01T05:01:15.000+05:00;redirector.googlevideo.com;9;//;1970-01-01T11:34:24.000+10:15;cmo=td;replace;GA;local;s;b8PmZsYhGCs4J4Bn-H-_w8_;match;/file/index.m3u8;QI;cmo;qq;file;1969-12-31T16:45:02.000-07:15;8;1970-01-01T07:15:25.000+07:15;---;/[\"u;index.m3u8;r;1969-12-31T20:30:16.000-03:30;/api/manifest;%3D".split(";"), wR,Dkr,MNk,pI,LCJ,kKS,bIN,iS,YJK,dR,IT,UJ,Nk,CSj,laC,Br,fI,ExG,qk,prN,eN,XK,WCa,TK,uS,SN,Qj,Pr,hlG,OJ,MZ,tNj,iII,dkI,WQ,yGT,Iax,tx,UkR,xkI,d3,HIC,jTC,BQ,gxI,ur,RlG,oxK,X7,nxk,FCk,GKI,sTK,Kk,wC,aaS,vxS,ZY,pW,cGl,Ik,U3,xO,Nc,HD,jc,qJx,gC,Rk,nW,rGx,XrT,Gk,TRI,vD,BD,Tk,Qt,J7,zk,uKG,SJr,Vt,KW,PD,QTK,JGS,zlR,VNr,OIj,A7,w2,Dj,MO,L2,bL,Y1,wQR,lL,p2,W5,hv,tv,iL,d2,DZT,yZ,Ig,NO,Lra,ZkK,kDk,H5,g2,Rg,F4,G7,ag,v5,hsJ,tPN,$Zl,ikr,c5,dZa,B5,f2,qO,yxK,r2,IZK,xZj,uL,QZ,VZ,OQ,K2,jSr,HkT,Frl,oBR,LR,ZK,l5,vBx,B3S,cxl, pR,hM,fZK,Wb,yv,wE,rxx,qlK,od,Hb,Av,esj,nR,Gd,Fc,XQS,ad,T3K,cb,Bb,fR,q1,rE,ew,Xc,u5,Sw,Vv,Pb,m5,Sll,JxK,QSS,zsa,VPN,Zu,kC,bo,OkN,YC,KrK,mZK,C6,AxN,LhI,lo,McT,wDk,Ei,hs,kkJ,C1r,bWr,ts,$C,lYK,io,EOK,dl,Whr,pDj,hZR,tcG,xC,NP,$cS,iWC,dcI,HC,ji,y7G,NCI,gl,HWI,jkK,Fhk,FA,nOl,gOT,skJ,c7R,si,vC,BC,cC,BCa,f6,qP,rl,Te,uo,Si,Js,TCR,ze,uhK,K6,wP,J7k,Lp,kD,YD,zZj,b4,Vca,P1S,Cp,Z7,l4,Eh,OWI,pp,hV,mcR,tV,$D,yK,DOk,Hc,Mql,Lxk,Z2J,k7R,N3,xD,I8,A7S,w5C,b2G,CLk,ljK,E1j,R8,o8,np,p5J,sh,vc,cc,Bc,WxK,tqI,ey,$Or,u4,T4, UOG,QK,Sy,N2C,jgK,VK,JV,g1a,Pc,Oh,Kp,z4,AV,mM,D2,wB,bY,R$T,MK,Z2,Ym,o1j,CK,n1r,lY,Er,t9,$m,I0,pK,h9,WW,NK,Fxa,HW,G7N,jr,ajl,gB,v1C,R0,km,o0,nK,FC,B2j,Gl,sr,vW,cW,BW,fK,qK,rB,er,XC,uY,Tl,Sr,QC,J9,zl,VC,fjK,rvK,Or,e$S,X5K,T2R,mv,Ch,ph,SQl,WK,Jvr,hi,Vql,ti,$d,i0,PLR,dD,O2I,yw,KxN,mOI,IX,Avj,Uu,xd,Nn,wbC,j5,gD,MwK,nh,kdN,D1I,Fy,aX,vK,C5R,bRJ,BK,qn,lKR,pbl,W5a,Qw,Ji,z5,PK,Ou,Kh,mF,$1T,iRr,d1x,IKx,U1k,x1N,wh,DA,NER,MM,HRR,jdS,nyJ,ZA,F5G,Gdr,sdG,aKN,vyl,bX,cMa,C3,fKk,p3,W2,rMa,hA,tA,$Q,eII,XbK,yU,IQ,NM, H2,ucT,Sgx,QdC,Fk,n3,oQ,JMx,zIk,Vwl,G1,sR,aQ,ORN,qM,rh,m1N,AMS,wCG,ej,Xk,DPa,Mik,T1,LXR,Z6j,keS,b6r,JA,Sj,z1,VU,P2,Yij,CoG,lua,OR,K3,ECS,ml,pCK,WXK,hRj,AA,tiC,w8,Dk,$PR,i6K,dPS,ysS,IuT,UPr,Zk,kn,bp,Cs,H6I,lp,EB,jJr,NlK,Yn,gCG,ps,We,hI,$n,tI,RRR,oCx,nCJ,ip,Gex,d8,auN,vCC,csR,Bla,cVR,BPC,f7S,qhC,j9,g8,Rx,ejJ,rVJ,Xcl,TPN,ns,uOx,Fi,ShN,Q8S,GF,sB,ax,JVJ,ve,ce,zja,Be,q9,r8,e9,Xi,TF,up,S9,VyN,P4l,Opk,KMJ,QH,m3J,wWj,AVK,zF,VH,Mrk,DKj,klK,CYG,YrR,Pe,l2j,EmS,pWl,hhK,WvR,trT,OB,$Kx,iKN,mS,dKK,y9I,I2r,UKS,AI, xKa,w1,NBK,DU,Mp,j0S,LJ,gmx,ZU,kI,Rhl,oml,bW,CJ,FvS,lW,nmK,GlI,s0R,a2x,c9l,EL,BBI,hk,tk,qrJ,r9C,TBS,uCC,$I,iW,d1,yN,IP,UL,xI,Np,Ht,jk,g1,RP,oP,zhG,J9K,VrC,OKI,PYN,mKl,Q0C,KvS,SrC,nJ,Fe,wKj,Dnl,M5k,vt,ct,Bt,GX,ZhI,Xe,A9C,bha,YuK,k5r,TX,uW,Sk,QN,C0S,LFk,loj,Jk,EdG,pKR,WFC,hzj,t5k,dnC,yiI,IoK,UnK,zX,VN,xnj,NDC,gdI,RzJ,Pt,KJ,ndl,m_,OL,G5K,FFk,sXJ,aoN,vdK,wI,Dz,ciN,BDj,foG,quj,riK,ezJ,XKx,TDa,uyk,SuS,La,Zz,kR,bJ,YR,Ca,QXC,V5K,P0I,OhR,mnK,KFR,AiR,pa,WZ,w2x,DMR,Mjr,hT,tT,$R,iJ,dI,yO,Iq,UM,Llx,Nj,k1G,jO, b3l,YRJ,gI,Rq,oq,Fz,na,CXK,EQl,Gq,Ai,yMC,BZ,p2j,WlI,fa,hoK,cZ,$MK,tjN,vZ,qj,rI,i3r,dMI,yAa,IAK,eO,UMJ,Xz,zzG,Jir,Tq,uJ,QO,JT,H3T,zq,VO,OM,jQK,gQJ,Ka,G1C,YJ,oQx,FlS,wi,AT,pv,Wj,sQl,$J,aAJ,ij,di,vQT,BhK,qRR,oV,FW,ThG,ukK,SRI,Gy,VjI,gi,eoa,O3l,zoN,QQG,JAJ,KlG,PXJ,aV,Bj,AAC,weN,D9J,M9K,LSa,qt,ZsR,e4,kFJ,Cpl,lkx,XW,peN,hvR,WST,t9K,uj,Jh,Oj,mu,Ah,wL,DL,M7,d9I,yIR,Ikx,LS,ZL,Kv,ka,b_,Ya,Ak,CS,U9C,EF,HsK,pS,Wx,gnr,jxC,Rvr,onR,nna,hu,FSx,GFT,sxR,tu,$a,vnl,fkJ,qBG,i_,T8K,Xej,uij,SBx,Qxl,dL,JIK,rIa,yE,zvx,V9G, Ic,OsG,KSa,m9S,AIl,wtK,xa,DpK,Mkl,L_k,ZJk,YLj,kXr,N7,Hx,jD,gL,Rc,oc,nS,Fv,CWG,sF,Gj,lUR,vx,W_T,ac,htG,tka,IUJ,$pS,iJT,dpj,ykR,cx,Bx,fS,Upr,q7,rL,eD,Xv,Tj,u_,gIx,xpJ,zj,jPT,VE,HJr,Ju,SD,N1K,QE,OF,oIS,me,KS,nIN,F_N,GXN,Lo,Zf,bi,vIK,kA,li,ckj,EA,sPx,qLJ,rkj,etx,hB,tB,$A,XtN,ii,dG,yf,I5,T1r,UA,xA,Nh,ueT,SLj,Hf,QPC,B8k,ztS,VkJ,PWa,OJx,mpj,JkT,Akl,wZT,Djx,MOk,LKN,baC,gG,o5,CJG,lzK,ERC,WKJ,hOI,pZJ,Fr,djR,iaR,GC,a5,IzK,sA,UjJ,fo,xjj,qh,e3,Xr,NIj,HaS,Vf,jqr,OA,gRK,ROa,kY,oRI,FKT,bs,Gql,sqN,fzT,azT,Eb,pt,W7, tw,$Y,TIK,is,dF,ym,SMC,xY,Qql,JTS,NC,VOR,jm,gF,RF,oF,PJl,nt,Gr,sb,aF,v7,OaI,KKI,mjI,B7,ft,qC,rF,em,X3,ATr,wjl,DtT,M4C,Lua,ZvK,Tr,kyN,P7,bvj,Yjr,Cjx,Ob,mB,Aw,wy,Lj,ZP,kj,EJl,Cj,l7,ED,pjr,Wur,pj,haJ,t4l,hQ,NiC,Hva,jVa,tQ,gJa,RaC,Ful,dy,sVr,GyI,arS,chG,BiR,UD,xj,frT,Nx,HP,j2,gy,R3,o3,nj,Fg,GQ,sD,a3,vP,cP,qx,qjK,rhl,eaN,e2,TQ,XjS,JQ,zQ,V6,PP,OD,m0,AQ,QVK,wz,DV,M2,zaG,JhR,Tix,kE,ZV,Kuj,bU,$E,Wo,iU,dz,Ahj,I_,LeN,D7k,MDj,kjl,EaI,bSC,C_a,lLK,mtS,xE,UO,Wea,Ho,jJ,gz,h4j,sO,tDl,a_,vo,co,f7,$7k,rz,eJ,iSG,XN, Tu,yuG,Q8,zu,V8,Po,OO,K7,mU,AY,wQ,Dx,U7C,MA,k7,Zx,NLI,R4k,jcG,gax,oaI,naj,Gja,scj,FeS,vax,Ce,lC,Wg,cuS,BLr,pe,ha,qFk,ruk,uvl,TLJ,dQ,y$,Ij,U4,x7,QcK,JuS,FR,G_,z4J,VDl,P_G,cg,Bg,fe,OSJ,KeT,AuC,DhS,T_,M3S,Q$,uC,V$,Pg,Ke,Lpj,ZD,kq,bE,Yq,lE,E6,WT,CiK,lfx,t5,EAT,pfT,iE,WpS,h7x,d_,yX,t3T,$hK,dhr,U6,HT,IfN,Uhj,xq,xhK,NGJ,j5k,HoC,oC,yBj,R7N,oAI,vT,s6,nAS,FpK,cT,BT,GCx,s5N,r_,afI,vAj,cBk,BGl,S$,ffN,qAI,rBR,e7K,XfC,TGK,urj,SAa,J5,Q5R,VX,z7N,V3j,Pia,OoT,KpG,PT,DF,ABK,MmT,Lu,LBN,krr,mhJ,btC,Ybx,CsT,w7R,DCK,O6, Kf,w4,Ztr,A5,mg,l6T,EYa,p7x,WBj,hkx,tml,I6r,$CG,Yo,Cu,En,NFN,gYr,jFl,lZ,hK,Rkr,iZ,oYl,FBN,xo,nYT,rwT,Gra,qbT,g4,ekI,u3S,Rz,jB,X7C,TFR,Sba,nu,Jwk,zkN,VmI,Psl,Otk,KBl,mCk,QFJ,wPa,DxC,M2C,ZjK,L0G,bjR,az,YDr,vA,cA,BA,C7l,lPT,r4,eB,pPj,Ejr,XV,W0a,t2K,ijT,$xK,dxk,Uxj,yQa,my,kr,Ze,xxj,LV,bG,Yr,CV,lG,Nya,pV,j3R,tz,hz,iG,dH,yW,IR,gja,Ua,NY,RpN,jC,nja,RR,oR,F0l,GQK,s3I,aPG,nV,Gh,vjJ,sa,aR,vJ,ByG,cJ,BJ,fPl,qY,XS,eC,rH,Th,uG,epr,JQa,V2S,Q3a,SDC,zpG,Jz,PJ,mxj,P7J,OjG,K0R,rQN,YOS,k9,b7k,EEr,kuS,QW,by,Az,L1,CUx, KV,TyJ,XPG,ugl,VW,Z7N,Ef,i7T,p1,yYa,IVJ,U2k,hn,x2J,NzR,H7j,gEJ,RgN,iy,nEJ,dO,FUj,Gur,aVl,vEK,cYk,ID,BzG,qOk,Uf,rYR,x9,Nm,w_,Q_a,O7a,n1,m2k,DAa,Go,LER,ZeJ,k_G,To,beR,Y4T,en,HtN,qm,XU,rO,sf,PL,K1,Of,An,Dq,lxj,MX,Zq,kb,E7T,pgT,Cb,h6S,tYG,$AI,Wv,iek,dAK,yaj,Ixx,UAK,xAG,NQG,hS,HeN,tS,iI,jjS,g7S,R6S,o7K,ds,y9,I1,n7C,FEr,G_R,sjC,axj,v7N,caI,BQJ,Hv,jG,gs,fxK,R1,q4R,nb,e6k,raN,GL,sW,a1,vv,XgK,cv,Bv,TQl,uRR,fb,qX,z6J,S4T,JaG,Qjr,rs,eG,Xl,VYS,PCx,Oek,TL,mAC,DDr,wTS,uI,SG,Q9,JS,zL,Pv,OW,Kb,mP,AS,wJ,M$r,LgJ,ZfJ, Dg,Mz,Lm,Zg,bQ,Cm,Y6x,bfS,Ex,CEl,pm,Wq,hP,tP,$0,ya,Is,Ux,x0,Nz,Hq,jU,gJ,pTK,Rs,os,nm,Wgx,t$K,as,$Da,vq,cq,y5I,IDK,UDx,N_K,jCK,Xs,gqr,uQ,TN,nql,FgK,GVk,Qa,JP,aDN,Va,Pq,Ox,Km,c5r,mA,AP,ww,B_T,DB,vqI,Mg,LQ,q6S,fDJ,ZB,kK,bA,YK,lA,ePk,XTx,pQ,Wl,t_,$K,T_T,h_,QCk,J5K,zPN,V$j,PEI,OfI,KgS,dw,iA,S6N,wAk,yz,MBJ,LyG,Hl,ZuI,Uo,xK,kGK,jT,Ynl,lFj,gw,RA,Eok,oA,Wyj,nQ,yKT,iuK,heT,$RG,tBR,GJ,so,aA,vl,cl,Bl,fQ,rw,URr,HuK,TJ,odr,uA,jzr,ooS,Qz,Pl,J_,Vz,zJ,GGS,FyK,noR,szC,Oo,aFK,fFk,KQ,A_,rKR,wn,DR,M5,LM,eeT,XAl,ZR,kT, bK,T4x,uVR,lK,h4,t4,$T,iK,dn,y2,Snj,I6,Uk,xT,N5,HU,jW,gn,Qza,JKj,R6,o6,nM,FB,Gg,uK,zeS,VBj,SW,V2,KyR,mRR,PU,Ok,MG,wJS,k6,bB,DYR,lB,MCK,ZVG,LON,khC,bVk,YaN,CGK,leC,ErG,WOl,pJK,h9x,iVx,yzK,$Yj,IeJ,UYK,NHT,p_,Wa,jRr,HVS,hE,tE,$6,R9I,iB,de,yx,nrT,FOI,In,orR,Uv,aeK,x6,NG,Ha,jQ,ge,Rn,on,n_,FH,Gi,an,va,ca,Ba,f_,qG,re,eQ,XH,Ti,uB,SQ,Qx,JE,zi,Vx,Pa,Ov,K_,md,AE,wY,D5,Mw,LB,Z5,k$,bN,Y$,CB,lN,E0,pB,W8,h3,t3,$$,iN,dY,y7,Ir,U0,x$,Nw,H8,jK,gY,Rr,or,nB,FZ,GP,s0,ar,v8,c8,B8,fB,qw,rY,eK,TP,uN,czS,SK,O,Q7,XZ,J3,zP, V7,feK,O0,rzJ,P8,e9I,m3,XJG,w9,KB,DG,Mu,Lc,k_,uSI,Sal,QRl,JzT,tL,$_,ET,ie,VCx,PGS,OVS,KOr,THa,mYJ,ZG,AzC,wLN,yG,HI,I2,Y_,DmT,be,d9,UT,jp,LIT,Cc,le,Nu,x_,Z1j,g9,R2,o2,nc,koR,F8,G8,sT,a2,vI,b1K,YfG,lSG,E9K,fc,qu,WIl,r9,i1G,ynR,UmS,xmx,X8,H1T,jDx,z8,g9G,VG,PI,OT,Kc,mt,AL,RbS,n9J,FIa,o9j,Gol,sDG,Ll,Z1,bH,Cl,lH,Es,aSl,pl,v9x,WS,hN,k3,iH,dA,y_,IH,cnx,$3,fSa,Us,qfC,rnJ,x3,ebR,N0,HS,XLC,TOJ,jH,uUk,Sfj,gA,QDC,JnC,zbR,Vnk,RH,oH,PyT,O1G,nl,Fn,Gx,KIa,aH,vS,cS,BS,mmN,fl,q0,Anj,rA,wvK,eH,DXx,MGC,LPr,ZbK,kLT,bbr, Xn,YWT,CIr,lqI,Tx,Ebx,uH,pvk,SH,WPT,Q_,hxJ,tGI,JN,Kl,$Xa,mY,AN,w5,DT,ibN,M$,LH,ZT,dXl,ySK,bM,YM,UXr,CH,xXT,NsK,Iqj,HbC,j1G,gbN,EU,Rxj,pH,hF,tF,obS,$M,iM,yd,nbS,Iw,UU,FPr,N$,aqx,cSx,BsI,vbG,g5,ow,Rw,fqJ,qWN,exS,rSK,H_,Xvl,TsI,ulT,SWK,jl,VGK,PIT,Oba,zxC,JSR,Q1J,KPJ,nH,GLI,mXK,s1R,ASS,wqS,LAr,Dza,Ft,MUk,bmK,ZmK,kNj,CQT,YxR,lgK,E0K,sU,h_S,pqI,tUK,WAK,$zx,imR,dzG,yPj,Iga,UzS,xzR,NJG,HmC,jsr,g0K,R_l,aw,n0S,B_,v_,el,Xt,FAJ,Tw,GNK,Sl,Qd,JF,ssT,Vd,agx,KH,m$,AF,q$,wk,D0,ML,v0a,L5,Z0,kW,cPK,b$,YW,C5,l$,EP,p5, hd,td,$W,i$,BJI,fgr,qxK,UP,dk,xW,NL,rPK,e_J,Xqx,HF,jV,gk,TJK,usC,IE,Sxk,QsC,RE,JPl,oE,n5,Gb,sP,aE,vF,cF,f5,qL,eV,XF,Tb,u$,rk,PQR,Omx,Q3,Jd,zb,KAk,PF,APx,OP,K5,wll,m4,w6,MJ,DgT,DN,LY,ZN,kw,MTS,CY,ZQI,kJk,bQk,E5,lb,YoT,CAK,lBR,pY,plk,V3,EKT,WaJ,WE,hnN,hr,tTJ,tr,$gT,iQx,dgJ,y_R,IBk,$w,xgr,Ugx,ib,IK,Nwj,U5,HQJ,xw,jAC,gKI,NJ,RnG,oKk,nKk,Fal,HE,GJk,jE,aBC,RK,oK,c_r,vKK,BwT,fBN,qox,FJ,Gv,s5,r_j,enG,XlJ,Twk,uXK,SoC,QAN,J_x,znI,VTT,vE,cE,PAl,OQT,BE,fY,Kax,qJ,r6,XJ,mgK,Tv,ub,SE,A_R,QL,wUl,Jr,D5N,zv,MWJ,LTK, VL,ZMj,kgK,bMR,PE,O5,KY,m8,Ar,YkC,CKN,wV,DJ,MV,lRT,L$,ZJ,kl,bu,Yl,ETj,pUj,C$,lu,WTK,E_,p$,W1,he,Cyr,hEC,tWJ,te,$5R,iMS,d5J,$l,iu,dV,ys,gV,RG,oG,n$,FG,G9,s_,y4x,IRa,rV,e0,x5R,XG,Vs,uu,K$,oTj,aRC,nTJ,vTr,Bnx,fRx,c4N,qkR,r4x,eEk,lO,uBG,J4R,Q6C,VWS,PKx,OMj,hO,tO,m5j,A4S,LdS,$F,Z_T,waC,iO,dN,y0,IY,b_T,lMN,YvI,WdG,IMx,yEx,hNI,UGT,xF,$Ga,tQG,H_N,RNK,g6N,Gil,o6J,N8,HX,BeC,oY,fMa,Svr,uHl,TeK,XaC,rEC,zNK,JEK,eNI,mGr,Kdx,AEk,aY,MKj,w8T,DwN,qvT,L3S,ZBj,nO,GR,PBC,VQr,O_R,kPR,F5,QnK,Y0N,l5N,p8J,h5j,iBC,dwI,I5x, UwK,NYx,xwx,o$N,jrx,HBJ,n$l,srx,a5R,v$K,c3K,Sa,pO,q0K,BYk,zR,OX,KO,X8x,TYG,e5T,mi,uZK,AO,wj,wA,Dm,Tnk,Me,LP,Zm,S0J,QrK,k4,J3G,z5x,VKR,bt,Y4,CP,lt,Ey,pP,Wh,hj,tj,PNN,OBl,$4,K3N,dj,yL,yM,I9,wIa,mwR,Uy,DuK,MpT,LtJ,x4,A3j,Ne,ZcR,Hh,k8k,bcC,zEK,YTN,j6,D1,BI,vX,CeN,lGJ,R9,cER,gN,E_N,Q0,JO,BX,cX,UX,q8,tKl,y3R,fO,snT,F3K,pIx,xGj,i_K,o9,r3r,WX,hmC,WtR,kiJ,$wj,tpK,GPl,TR,aMN,v6C,jnR,W3r,E$l,pal,CBC,MQJ,DGC,KTk,bBS,dGI,g$C,n6K,Fdr,ea,X5,rN,R5j,CNS,icR,$uK,nP,F_,ojJ,Gf,duS,sy,a9,vh,yLa,fP,qe,rj,X_,Tf,IGJ,e6, ut,S6,UuK,QM,Jj,zf,Ph,N9T,HcI,Oy,KP,mQ,Aj,wf,Dt,Ma,LA,o_K,kz,n_j,Zt,FtK,g_K,Rmj,G8K,bh,Yz,s2J,aGa,CA,v_a,Aa,B9K,cLk,qTC,emC,XIr,rLJ,STR,Q2G,zmR,t$,$z,VpT,Pel,ih,df,OcK,KtS,muT,ALT,Ih,wSN,D0R,xz,Na,LYx,ZlG,kxK,CHK,j_,oh,FY,l1x,Ga,sp,ah,hqK,$0K,tHK,d0K,Rqx,I1G,XY,cO,ilG,WYK,pSC,E3I,e_,BO,rf,J$,za,FYT,Vu,PO,Qu,v3G,GxI,sHK,cNK,Op,KA,f1C,A$,wr,DC,MN,Ld,ZC,kZ,qsN,rNS,b2,YZ,l2,XSK,TAa,Cd,unN,JNS,zqJ,EY,VHS,ho,PHj,to,i2,Oll,$Z,dr,KYS,Ib,ANT,w_l,xZ,NN,ob,MlK,jv,nd,Gn,L$x,ab,Rb,Fx,ZHK,vM,kwJ,cM,bHG,HM,gr,D$R, sY,BM,YUj,CMS,fd,lTj,qN,rr,ev,Xx,EMl,u2,Tn,Sv,Ql,p_R,W$j,Jo,zn,Vl,PM,OY,hHC,Kd,m6,tla,$$x,Ao,wg,Dy,d$C,iHG,MH,yFr,ITI,U$N,Lr,x$r,N5T,HHK,jwj,gMS,Zy,kg,bc,Yg,RHG,oMK,lc,nMJ,Ez,pr,F$S,GwN,Wy,swk,aTx,fTI,qUS,vMC,cFr,B5C,tc,$g,ic,dg,rFI,eHK,X_C,T5j,It,Qwk,Uz,zHG,PMj,VlN,gg,jI,K$j,m$C,AFr,wFr,Rt,DLK,nr,FE,MVK,Z5T,kbI,sz,By,l0K,jHG,fA,pFG,W4N,h1S,tVl,$LT,vO,at,rg,eI,I0N,ULx,xLI,XE,gWI,NkC,H5S,oWx,nWx,TH,F4K,R1r,GbG,uc,SI,QI,sEr,a0J,Jc,zH,vWa,VI,cdS,Py,fr,Ac,BkJ,g3N,yNN,wq,DO,Lg,ZO,kt,b3,Yt,Mb,E2,qPk,Wd, e1T,tb,TkJ,XFI,rdR,uFx,SPl,ye,VVK,QEJ,z1I,JdK,Ip,U2,P$T,O5I,mLx,xt,n3x,Nb,DJJ,L8x,Ta,ZYT,kvl,qa,U0r,NAx,HlT,AdN,j1,gq,op,bYR,Y5r,CbI,lNS,EwK,pET,W8R,hLr,tES,$JG,yrK,dJN,INC,UJk,xJK,ng,N6J,s2,HYS,jKa,gwN,ap,RLI,cd,Bd,fg,qb,rq,owj,e1,Xm,nwR,F8N,Tm,u3,S1,Qe,Jb,zm,sKG,GvN,Ve,aNr,crK,Pd,B6K,vwl,t6,Wn,$2,d0,yq,i3,fNx,QKS,WI,h6,Ni,PbN,K8J,Mi,oI,Dp,nN,sK,ArK,pN,aI,LVK,vn,cn,Z$G,k9G,b$T,Y_R,Bn,CuJ,lJx,fN,ElG,$Vl,t0C,p1k,hTC,WVR,qi,i$C,r0,dVC,yeG,UVT,xVG,NVa,H$K,nla,SZ,Qq,sGG,J6,zA,aJJ,BVN,fJN,q_x,reC,Vq,Pn, OK,KN,eTK,TVK,uGK,bf,mVC,zTj,V0N,wXl,Yi,D8x,LiN,MaJ,ZOa,lf,WB,kRC,CL,h0,t0,bOT,COj,Iy,NQ,oy,GB,NNJ,HOR,BB,cB,qQ,rb,jYa,R0k,oFr,X9,eA,nFC,GRT,sYN,vFl,SA,asr,cOJ,BNK,J0,zB,qXC,yQ,uf,taT,YXl,yOr,A0,fL,Fij,bR,nL,CZ,lR,OOI,m8I,Kij,F9,sN,AOl,pZ,hW,DeK,M6N,tW,$s,LQx,ay,iR,gFa,yP,u5I,Io,Wir,pXR,lsI,U9,kfJ,Ny,bPC,$eN,t6T,deS,yjj,gZ,oo,nZ,Ro,G3,s9,Imk,ao,xeR,v$,HPK,fZ,NjI,qy,rZ,o4C,GfN,s9T,T3,amR,BjN,wW,MI,Li,bg,fmS,YV,Ci,WR,hX,tX,$V,ig,qyj,dW,yc,TjT,I4,UH,u_I,SyR,xV,Q9K,NI,Jjx,z2l,V6R,PtC,HR,jg,OPx,KQx,meN, ni,FD,a4,vR,Ajl,wOr,cR,DaR,BR,fi,qI,L2l,ZAK,rW,kaG,bAT,eg,Cha,YpJ,ltK,XD,pOk,EzG,W2J,TU,ug,hDa,$aR,iAJ,Sg,Qc,Vc,daI,Itk,xaG,HAI,UaK,y$j,jhl,NfG,PR,gzl,ozl,OH,nzK,mj,F2r,GaN,Ki,AX,wp,D8,vzS,Bfx,shr,c$I,ftr,atI,qpT,r$S,MU,eDK,TfT,QhJ,zDr,J$N,E$,lz,hg,Phj,tg,$f,iz,K2N,dp,maN,OAj,yi,DNa,IM,U$,MvC,xf,L6l,Jea,KVj,knR,ZdR,YYR,bdj,C2a,NU,Hz,jM,gp,lCN,W6I,nX,Fu,Gp,tvG,hQS,RM,$Nj,idI,dNK,ICK,s$,nZK,cor,fX,BrK,Z8,qYC,roR,eQj,XMG,TrJ,rp,uxT,eM,Xu,Tp,SYJ,Qi,QbJ,Joa,Jg,zp,zQC,VvI,P2I,Oda,K6K,Vi,SM,mNR,AoI,Pz,DHI, MIS,LkT,O$,ZrC,kHR,brl,Yzk,CcK,lyx,EgK,pyI,WkI,hyG,KX,$HI,mc,dHj,irN,IyJ,ycx,xHl,M_,tII,Ag,L9,NgJ,Hrj,jtk,gga,RyG,ZW,ku,bP,Yu,C9,ogx,lP,ngK,p9,vgJ,fyN,qzK,rcx,eyj,t8,XyN,BgR,ayr,TgG,Ws,uEJ,QtK,EI,h8,GHI,stS,$u,JcK,zya,ccr,Fkj,VIj,dv,PcR,yY,If,OrS,UI,Acr,KkG,mHa,xu,wda,N_,Hs,jh,gv,Dbj,M1K,LJl,Rf,kmj,bgk,of,Y2C,n9,F1,C3R,lOl,Etj,pdJ,WJC,hUk,ybJ,$br,uYS,sI,UbC,xbj,igI,dbC,t1N,cs,RUG,vs,af,IOJ,ntx,gtj,jpG,Hgr,NqT,f9,FJJ,LX,q_,rv,eh,Gmj,X1,spN,TO,aOa,Wz,vtT,uP,bz,CX,XOK,J8,VY,fOx,q2T,rbk,OI,zO,QY,K9,Sh, cbr,BqR,mz,eUN,Xdx,DW,UHl,kf,A8,Tqr,Ps,umI,S2K,QpN,JbS,zUK,V1N,P3a,Ogx,KJS,mbl,AbC,Szl,Bz,Dh,DiS,wU,MZa,A$k,wMC,M4,Lwr,ZNN,kAR,bNN,Lq,lpx,YKj,E2N,hVT,CwN,tZl,iNS,$iS,IpT,Zh,YG,xil,UiJ,g2j,HNr,RVC,o2j,N0C,jIj,n2J,Cq,FwN,sIl,GAC,l6,wyK,apS,v2T,c6r,B0j,fpG,r6J,eVN,XnT,T0N,ubG,qKJ,EE,pMS,pq,J6R,Wm,QIC,zVk,VZG,EZj,oM,PwS,ONN,tR,Lml,MAl,Ie,ZLR,DQl,Cfa,lXR,Eir,pBS,WmC,hFj,tAT,$QS,iLS,dQr,y0K,IXa,UQk,xQJ,N4,hR,HLJ,jyK,UE,RFl,NbK,xG,oiS,niI,syR,c0K,aXT,jX,BbK,gU,FmC,Hm,SX,GBK,JR,r0x,XBJ,eFN,Tbk,qNr,u9N,SNS, QyN,J0T,zFG,Pfx,OLI,Kma,VAC,A0j,DyG,w$K,k3R,LHR,mQC,Mfk,bZJ,ZZR,Y9C,CRG,l_r,WHC,p$N,Esr,zT,hWK,tfk,$yC,iZS,dyk,I_J,xyT,NZG,HZK,joG,gsC,VA,RWR,osG,FHJ,G3T,m9,a_j,wo,BZK,cWj,f_S,q9a,rWC,X$x,eWJ,S9K,Qol,JWk,zWa,D3,VfG,TZj,u0I,OZj,KHC,myl,AWK,wRl,DIa,wv,Mgl,LjN,ZiS,biN,kUG,YHk,lir,EVK,CgI,QA,diN,Wjr,hrx,tgK,xIr,dIS,yXl,IiK,NWK,j4r,otI,LU,iiS,$Il,HiJ,pX,UIr,GO,Yf,viR,Fjj,nVR,GUa,s4I,vVx,uIK,PRK,b6,kG,RrG,SEJ,oVx,Qek,Wwa,JRa,pnS,fXx,gVK,y6r,bm,YL,VXx,CU,P6C,OqS,K9R,m4r,ARl,DES,Mol,bUN,LDr,ktN,Y7k,E7,pwT, l3x,ELK,tor,$EI,iUI,pU,dEx,lm,yHR,hYr,Cmk,Ww,I3R,ZUR,UEJ,hH,NoT,xEJ,jOG,gLr,RYJ,HUG,tH,FDK,nLG,a3J,sOl,Gtk,vLC,cHj,$L,BoI,f3J,rHG,eYk,q7K,XwN,JHR,ufl,S7j,QOS,zYG,VoC,PmN,KDa,OUK,mEJ,AHC,im,wpa,D6S,LsK,Mta,Z4S,kzG,Y1N,CkS,EeG,WsC,ldK,hGJ,ttJ,$6K,b4I,i4N,ppC,IO,d6R,yDI,Idx,U6T,xL,NMN,x6J,H4I,j$S,geK,neC,RGN,s$x,NE,oeI,ada,Hw,q1N,vek,go,RO,rDr,jo,eGS,oO,uaN,TMT,BMr,fdK,S1l,Q$x,JDN,cDJ,zGr,nU,Vtk,XpK,vsj,U7,O4T,KsK,m6J,ADT,wVr,Drr,MsT,LbJ,ZTN,kWa,bTJ,CDR,Gt,llR,Yca,EXK,pVl,Wbl,hcK,tsl,$rl,yqa,drl,iTS, Ilj,aO,VUC,UrJ,xrI,vw,NSl,HTr,Bw,RcG,oXK,qE,nXT,FbK,fU,gXN,ro,cw,jZj,Tt,eo,GWK,um,Xf,cqS,qcN,ecj,XVa,u6C,alS,rqr,ScI,vXj,QZK,Jqr,zcl,Vo,So,OTK,KbJ,VsT,JH,Aqa,wNx,flj,BSa,mrj,DvG,TSJ,PDk,sZS,Pw,O7,KU,MxC,mD,Cxl,k2J,l9k,bGT,ZGr,ENS,LfS,hAk,pNI,AH,txj,iGj,yUK,I9x,NuT,L4,HGI,Uvx,zt,RAC,oNk,C4,giI,wM,nNx,FfT,sBS,G2a,a9R,gNR,ke,vNI,cUK,Buj,qqr,f9G,pRI,Zd,rUS,XNG,eAr,uor,Tua,dvk,QBR,Sql,bk,Dd,JUl,E1,zAx,VxK,PxC,OGS,Kfl,lk,xvN,zfG,Qo,mvj,p4,AUx,w4R,DdC,MeN,LNT,Wp,hD,bEa,Y8x,CFr,ZEa,kII,tD,WNN,ESj,p4G,hKR, ter,$e,$dx,iET,ddC,ik,yfI,UdT,xdK,NaK,dM,IbI,yT,I$,HEj,j7j,gSJ,RKJ,oSK,nSR,FNS,N6,U1,xe,GIT,Hp,s7R,abC,vSI,cfT,fbJ,Bak,Fa,rfS,eKl,q8T,X4r,Gz,TaS,s1,u2r,a$,S8k,Q7x,VeJ,KNI,JfK,PFK,vp,zKK,OER,mdJ,AfC,wGa,DFS,Bp,M7I,rM,f4,L1K,et,Xa,k0j,bCk,uk,St,YSK,Tz,QT,lnI,Cnk,zz,VT,Pp,W1G,Ecl,pGa,O1,hCS,dFj,$Fx,t7C,iCR,K4,InT,HCx,jiN,ms,gcI,UFK,RCN,AD,xFS,F1J,wS,siR,G0j,ank,vcC,cyr,B$S,LT,ryT,eCN,XGN,Zl,qSJ,SSK,Mr,kX,bD,fnj,zCJ,Jyk,Pna,V7C,pT,OCl,K1N,w9j,WV,lD,tq,Ec,Ayr,mFR,hq,DSk,$X,MbN,L7G,ZFI,iD,dS,ksk,bFj,YeG, CvS,l$N,EHK,p9S,tbr,W7N,$ST,iFN,I$J,USK,oHr,nT,GsN,vHK,a$k,saG,gHI,R8T,xSN,HFr,nHS,F6,GW,B7K,z3,j9T,f$R,aZ,cV,qek,r2S,N7C,F7k,X9N,T7K,uwl,fT,BV,Ss,QaS,J2J,z8x,Qr,VbK,OFT,Pvl,K7k,Jq,zW,mSk,DfC,MzG,Oc,w3k,LRx,ZDl,A2R,wu,k6J,bDT,Aq,YZa,CTJ,l4j,EUC,WRS,p3l,$fG,iDC,huJ,y1K,I4C,tzI,LG,Z9,Ufr,gUR,kN,xfC,NdC,jvl,HDK,RuI,nUJ,oUj,FRk,bx,G6x,svx,a4j,vUa,c1T,BdI,f4x,r1R,qZI,eux,X3C,Tdj,uMr,SZJ,J1r,CG,YN,lx,zuS,VzC,QvG,A1a,wix,DlN,Zzk,LGa,Mdj,kMl,bzI,Eq,pG,Ywk,Cla,lvJ,E5N,WGG,hSa,hU,tdj,WN,$N,pir,ix,$lj,izC,dlr, ymk,IvK,du,UlT,xll,juC,yy,g5K,HzG,IB,Uq,xN,o5J,n5j,FGS,RST,suT,GMI,avr,Nv,v5k,cmK,fvG,eSj,Btk,qwI,HN,XiG,uqI,SwK,JmS,zSx,jx,gu,VdI,TtG,KGI,OzG,PlK,RB,oB,AmI,mlk,nG,Fo,G2,wYr,sq,DqT,M8J,LqT,Znk,aB,kYj,vN,bnx,cN,YdJ,BN,fG,Cdj,qv,lEK,ru,ex,pYr,t8K,$qN,EkI,inJ,IEl,UqG,xqG,yJC,dqI,HnR,NxS,jNj,okx,ux,Fql,nkR,gkl,RBK,GYa,sNr,Sx,Qy,aEJ,vkJ,cJr,BxN,fEC,qdT,eBI,XYK,Pdr,SdR,QNT,TxI,KqR,KG,AU,MuT,LoC,Md,ZyC,LE,kcK,mqx,Oq,bF,kS,wa,YCJ,C8K,YS,E8K,WoK,pkK,CE,Db,PN,lwr,Zb,AJG,byr,tua,JU,lF,$BG,iyk,mf,wkI,E8,pE,dBK, W4,hf,ypK,tf,IwS,UBK,NTI,HyN,xBK,$S,jmK,iF,da,g8N,Rwk,o8S,n8x,GcT,smS,v8r,awC,cpI,I7,yh,FoS,BTI,qCR,fwj,U8,xS,rpI,XkK,TTR,Nd,ewI,uQK,SCN,JpN,H4,Qml,zwl,VuK,P8J,R7,o7,KoN,Oyr,mBK,nE,F2,wuS,Apj,DWK,LZK,MLK,Z8a,s8,k$K,b8K,v4,YVC,lQK,CaN,B4,EPT,puj,WZl,tLS,$Wa,i8N,hMk,dWl,yCK,IQa,UWK,xWk,NXK,H8R,jLj,gPS,ra,RMK,oPj,nPN,G$j,cCC,aQC,FZa,TI,sLK,X2,vPj,uF,fQK,BXI,Se,rCC,eMR,Xuj,ToG,Vh,cjS,Jf,P4,zI,KE,TXl,mN,zMx,VLl,PaS,KZJ,O8l,mWj,ACN,w0K,Dox,Lnk,Zxj,kSj,bxC,MRI,h3j,tRK,WnJ,$oI,doK,IHG,Uok,xoC,LC,yZK,ixR, YGx,Zn,jUN,gpJ,HxR,Ncl,npx,opN,Fnr,GSJ,sUC,aHN,kc,vpj,Epl,Dn,cZC,Bca,fHK,qGN,CqK,lHK,MF,Yc,X0I,TcG,uLx,rZK,bn,e3R,QUr,PqK,ln,OxK,KnI,z3I,pC,moT,AZr,SGa,w6I,VRj,Dsj,WG,ES,MSl,Z0J,LWx,CC,b0S,hy,jBG,YmT,Ehl,lcR,WWR,hXJ,p6l,$c,ty,$sT,i0K,dsj,ylG,slx,ohK,nhN,ghr,jlI,Ii,Bmj,vhK,fcI,qmj,yD,xc,NF,TmR,X6l,eXr,j7,GEx,nC,Sml,oi,HG,JlT,zXK,VSK,acT,sS,vG,PVJ,FWr,udr,g$,O0G,US,KWN,msr,Alr,fC,QlJ,wHT,DTx,qF,r$,MFS,Ri,clj,LLx,ZwK,ai,kZj,Fp,bwT,G0,B$,YtR,lIK,e7,Xp,EvT,pHR,WLR,BG,cG,hda,CVr,tFS,RXR,$TK,iwC,dTS,ytK, T0,un,xTR,jWC,RdK,UTJ,ctr,BKT,fII,qtK,rtN,edC,XHJ,ujS,TKJ,S7,QD,Jy,Stl,QWl,Jtj,d6,zdN,z0,VFC,VD,P9N,PG,OS,OwR,lM,KC,cI,KLr,V0,f5S,mTT,RY,Atl,bb,Yw,wrr,gj,DkQ,MNZ,PX,SkI,LCl,ZIQ,kKr,m1,YJD,CS1,Ay,D$,MS,lar,WCZ,hlx,LF,tN1,Exx,iIk,prP,$kD,dkk,yGS,IaB,Uk3,Z$,NRZ,BOR,Y3,g6,HIr,jTr,nY,xkk,tN,gxk,Rlx,ox7,kH,SV,FCZ,GKk,bv,YH,sTD,CF,lv,w7,aar,vxr,LaS,Ee,pF,cGs,W9,h2,BRZ,t2,fax,$H,iv,qJB,rGB,sAa,d7,el1,TRk,XrS,yb,Ia,uKx,Ue,SJQ,QT7,JGr,zl3,VNQ,PSB,KCZ,NS,OI1,mk7,AG7,wQ3,DZS,kDZ,MPl,LrZ,ZkD,Yll,lZx,EBS,pQ1,CrD, H9,Wr7,hsl,tPP,$Zs,ikQ,g7,dZZ,Ra,oa,nF,yx7,IZD,xZ1,N3S,HkS,jSQ,Rsr,gB3,oB3,Fw,Gs,GDD,nBS,Frs,se,sSl,aZr,aa,v9,vBB,c9,cxs,B9,B3r,fF,qS,fZD,r7,eb,ql7,rxB,Xw,Ts,es1,uv,XQr,T37,zs,Vb,u7k,Sls,QSr,VPP,zsZ,P9,Prx,OkP,KrD,XUC,JxD,AxP,wDZ,McS,wrC,EJ;wR=function(w){return function(){return wrC[w].apply(this,arguments)}}; g.Za=function(w,D){return wrC[w]=D}; Dkr=function(w){var D=0;return function(){return D=this.length))return this[w]}; Pr=function(w){return w?w:Qj}; hlG=function(w,D,M){w instanceof String&&(w=String(w));for(var L=w.length-1;L>=0;L--){var Z=w[L];if(D.call(M,Z,L,w))return{FJ:L,Pb:Z}}return{FJ:-1,Pb:void 0}}; OJ=function(w){return w?w:function(D,M){return hlG(this,D,M).FJ}}; g.mC=function(w,D,M){w=w.split(".");M=M||g.KI;for(var L;w.length&&(L=w.shift());)w.length||D===void 0?M[L]&&M[L]!==Object.prototype[L]?M=M[L]:M=M[L]={}:M[L]=D}; MZ=function(w,D){var M=g.w3("CLOSURE_FLAGS");w=M&&M[w];return w!=null?w:D}; g.w3=function(w,D){w=w.split(".");D=D||g.KI;for(var M=0;M2){var L=Array.prototype.slice.call(arguments,2);return function(){var Z=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Z,L);return w.apply(D,Z)}}return function(){return w.apply(D,arguments)}}; g.Ck=function(w,D,M){g.Ck=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?iII:dkI;return g.Ck.apply(null,arguments)}; g.El=function(w,D){var M=Array.prototype.slice.call(arguments,1);return function(){var L=M.slice();L.push.apply(L,arguments);return w.apply(this,L)}}; g.pk=function(){return Date.now()}; WQ=function(w){return w}; g.hx=function(w,D){function M(){} M.prototype=D.prototype;w.zk=D.prototype;w.prototype=new M;w.prototype.constructor=w;w.BH=function(L,Z,k){for(var b=Array(arguments.length-2),C=2;C=0;--M)M in L&&D.call(void 0,L[M],M,w)}; g.y1=function(w,D,M){D=d3(w,D,M);return D<0?null:typeof w==="string"?w.charAt(D):w[D]}; d3=function(w,D,M){for(var L=w.length,Z=typeof w==="string"?w.split(""):w,k=0;k=0;L--)if(L in Z&&D.call(M,Z[L],L,w))return L;return-1}; g.xB=function(w,D){return NRa(w,D)>=0}; HIC=function(w){if(!Array.isArray(w))for(var D=w.length-1;D>=0;D--)delete w[D];w.length=0}; g.HQ=function(w,D){D=NRa(w,D);var M;(M=D>=0)&&g.NZ(w,D);return M}; g.NZ=function(w,D){return Array.prototype.splice.call(w,D,1).length==1}; g.nk=function(w,D){D=d3(w,D);D>=0&&g.NZ(w,D)}; jTC=function(w,D){var M=0;xkI(w,function(L,Z){D.call(void 0,L,Z,w)&&g.NZ(w,Z)&&M++})}; g.F7=function(w){return Array.prototype.concat.apply([],arguments)}; g.GD=function(w){var D=w.length;if(D>0){for(var M=Array(D),L=0;L>>1),l=void 0;M?l=D.call(void 0,w[C],C,w):l=D(L,w[C]);l>0?Z=C+1:(k=C,b=!l)}return b?Z:-Z-1}; g.Jx=function(w,D){w.sort(D||X7)}; oxK=function(w,D){var M=X7;g.Jx(w,function(L,Z){return M(D(L),D(Z))})}; g.zD=function(w,D,M){if(!g.Lk(w)||!g.Lk(D)||w.length!=D.length)return!1;var L=w.length;M=M||nxk;for(var Z=0;ZD?1:w0&&(D[Z]=L)},w); return D}; rGx=function(w){w=nW(w);var D=[];g.mr(w,function(M,L){L in Object.prototype||typeof M!="undefined"&&D.push([L,":",M].join(""))}); return D}; XrT=function(w){jc(w,"od",elj);jc(w,"opac",Fh).T=!0;jc(w,"sbeos",Fh).T=!0;jc(w,"prf",Fh).T=!0;jc(w,"mwt",Fh).T=!0;jc(w,"iogeo",Fh)}; Gk=function(w,D){return w.lastIndexOf(D,0)==0}; TRI=function(w,D){var M=w.length-D.length;return M>=0&&w.indexOf(D,M)==M}; g.s3=function(w){return/^[\s\xa0]*$/.test(w)}; g.ak=function(w,D){return w.indexOf(D)!=-1}; vD=function(w,D){return g.ak(w.toLowerCase(),D.toLowerCase())}; g.fW=function(w,D){var M=0;w=cD(String(w)).split(".");D=cD(String(D)).split(".");for(var L=Math.max(w.length,D.length),Z=0;M==0&&ZD?1:0}; g.qc=function(){var w=g.KI.navigator;return w&&(w=w.userAgent)?w:""}; Tk=function(w){if(!rC&&!ec||!Xh)return!1;for(var D=0;D0:!1}; zk=function(){return J7()?!1:Qt("Opera")}; uKG=function(){return J7()?!1:Qt("Trident")||Qt("MSIE")}; SJr=function(){return J7()?Tk("Microsoft Edge"):Qt("Edg/")}; Vt=function(){return Qt("Firefox")||Qt("FxiOS")}; KW=function(){return Qt("Safari")&&!(PD()||(J7()?0:Qt("Coast"))||zk()||(J7()?0:Qt("Edge"))||SJr()||(J7()?Tk("Opera"):Qt("OPR"))||Vt()||Qt("Silk")||Qt("Android"))}; PD=function(){return J7()?Tk("Chromium"):(Qt("Chrome")||Qt("CriOS"))&&!(J7()?0:Qt("Edge"))||Qt("Silk")}; QTK=function(){return Qt("Android")&&!(PD()||Vt()||zk()||Qt("Silk"))}; JGS=function(w){var D={};w.forEach(function(M){D[M[0]]=M[1]}); return function(M){return D[M.find(function(L){return L in D})]||""}}; zlR=function(w){var D=g.qc();if(w==="Internet Explorer"){if(uKG())if((w=/rv: *([\d\.]*)/.exec(D))&&w[1])D=w[1];else{w="";var M=/MSIE +([\d\.]+)/.exec(D);if(M&&M[1])if(D=/Trident\/(\d.\d)/.exec(D),M[1]=="7.0")if(D&&D[1])switch(D[1]){case "4.0":w="8.0";break;case "5.0":w="9.0";break;case "6.0":w="10.0";break;case "7.0":w="11.0"}else w="7.0";else w=M[1];D=w}else D="";return D}var L=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");M=[];for(var Z;Z=L.exec(D);)M.push([Z[1],Z[2],Z[3]||void 0]); D=JGS(M);switch(w){case "Opera":if(zk())return D(["Version","Opera"]);if(J7()?Tk("Opera"):Qt("OPR"))return D(["OPR"]);break;case "Microsoft Edge":if(J7()?0:Qt("Edge"))return D(["Edge"]);if(SJr())return D(["Edg"]);break;case "Chromium":if(PD())return D(["Chrome","CriOS","HeadlessChrome"])}return w==="Firefox"&&Vt()||w==="Safari"&&KW()||w==="Android Browser"&&QTK()||w==="Silk"&&Qt("Silk")?(D=M[2])&&D[1]||"":""}; VNr=function(w){if(J7()&&w!=="Silk"){var D=Xh.brands.find(function(M){return M.brand===w}); if(!D||!D.version)return NaN;D=D.version.split(".")}else{D=zlR(w);if(D==="")return NaN;D=D.split(".")}return D.length===0?NaN:Number(D[0])}; OIj=function(){var w=null;if(!PSx)return w;try{var D=function(M){return M}; w=PSx.createPolicy("goog#html",{createHTML:D,createScript:D,createScriptURL:D})}catch(M){}return w}; A7=function(){mh===void 0&&(mh=OIj());return mh}; w2=function(w){this.T=w}; Dj=function(w){var D=A7();w=D?D.createScriptURL(w):w;return new w2(w)}; MO=function(w){if(w instanceof w2)return w.T;throw Error("");}; L2=function(w){this.T=w}; g.k1=function(w){if(w instanceof L2)return w.T;throw Error("");}; bL=function(w){this.q8=w}; Y1=function(w){return new bL(function(D){return D.substr(0,w.length+1).toLowerCase()===w+":"})}; g.C2=function(w,D){D=D===void 0?KCa:D;a:if(D=D===void 0?KCa:D,!(w instanceof L2)){for(var M=0;M4);Z++)D[g2(w[Z])]||(M+="\nInner error "+L++ +": ",w[Z].stack&&w[Z].stack.indexOf(w[Z].toString())==0||(M+=typeof w[Z]==="string"?w[Z]:w[Z].message+"\n"),M+=H5(w[Z],D));Z")!=-1&&(w=w.replace(lZG,">")),w.indexOf('"')!=-1&&(w=w.replace(EBT,""")),w.indexOf("'")!=-1&&(w=w.replace(pQj,"'")),w.indexOf("\x00")!=-1&&(w=w.replace(WrK,"�")));return w}; g.sQ=function(w){return w==null?"":String(w)}; ag=function(w){for(var D=0,M=0;M>>0;return D}; v5=function(w){var D=Number(w);return D==0&&g.s3(w)?NaN:D}; hsJ=function(w){return String(w).replace(/\-([a-z])/g,function(D,M){return M.toUpperCase()})}; tPN=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; $Zl=function(w){return w.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(D,M,L){return M+L.toUpperCase()})}; ikr=function(w){var D=1;w=w.split(":");for(var M=[];D>0&&w.length;)M.push(w.shift()),D--;w.length&&M.push(w.join(":"));return M}; c5=function(){return rC||ec?!!Xh&&!!Xh.platform:!1}; dZa=function(){return c5()?Xh.platform==="Android":Qt("Android")}; B5=function(){return Qt("iPhone")&&!Qt("iPod")&&!Qt("iPad")}; f2=function(){return B5()||Qt("iPad")||Qt("iPod")}; qO=function(){return c5()?Xh.platform==="macOS":Qt("Macintosh")}; yxK=function(){return c5()?Xh.platform==="Windows":Qt("Windows")}; r2=function(w){r2[" "](w);return w}; IZK=function(w,D){try{return r2(w[D]),!0}catch(M){}return!1}; xZj=function(w,D){var M=UZT;return Object.prototype.hasOwnProperty.call(M,w)?M[w]:M[w]=D(w)}; g.eq=function(w){return xZj(w,function(){return g.fW(N3T,w)>=0})}; g.X4=function(w,D,M){return Math.min(Math.max(w,D),M)}; g.T7=function(w,D){w%=D;return w*D<0?w+D:w}; uL=function(w,D,M){return w+M*(D-w)}; g.Sq=function(w,D){this.x=w!==void 0?w:0;this.y=D!==void 0?D:0}; QZ=function(w,D){return w==D?!0:w&&D?w.x==D.x&&w.y==D.y:!1}; g.Jv=function(w,D){this.width=w;this.height=D}; g.z7=function(w,D){return w==D?!0:w&&D?w.width==D.width&&w.height==D.height:!1}; VZ=function(w){return w.width*w.height}; OQ=function(w,D){this.T=w===P5&&D||""}; K2=function(w){if(w instanceof W5)return w;w=String(w).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return hv(w)}; jSr=function(w){return HkT(w)}; HkT=function(w){var D=K2("");return hv(w.map(function(M){return tv(K2(M))}).join(tv(D).toString()))}; Frl=function(w){var D;if(!gBR.test("div"))throw Error("");if(RsS.indexOf("DIV")!==-1)throw Error("");var M="":(w=jSr(D.map(function(L){return L instanceof W5?L:K2(String(L))})),M+=">"+w.toString()+""); return hv(M)}; oBR=function(w){for(var D="",M=Object.keys(w),L=0;L2&&fZK(Z,b,L,2);return b}; fZK=function(w,D,M,L){function Z(C){C&&D.appendChild(typeof C==="string"?w.createTextNode(C):C)} for(;L0)Z(k);else{a:{if(k&&typeof k.length=="number"){if(g.ZZ(k)){var b=typeof k.item=="function"||typeof k.item=="string";break a}if(typeof k==="function"){b=typeof k.item=="function";break a}}b=!1}g.PQ(b?g.GD(k):k,Z)}}}; g.tM=function(w){return Wb(document,w)}; Wb=function(w,D){D=String(D);w.contentType==="application/xhtml+xml"&&(D=D.toLowerCase());return w.createElement(D)}; g.$y=function(w){return document.createTextNode(String(w))}; g.i5=function(w,D){w.appendChild(D)}; g.dE=function(w){for(var D;D=w.firstChild;)w.removeChild(D)}; yv=function(w,D,M){w.insertBefore(D,w.childNodes[M]||null)}; g.Id=function(w){return w&&w.parentNode?w.parentNode.removeChild(w):null}; g.Ug=function(w,D){if(!w||!D)return!1;if(w.contains&&D.nodeType==1)return w==D||w.contains(D);if(typeof w.compareDocumentPosition!="undefined")return w==D||!!(w.compareDocumentPosition(D)&16);for(;D&&w!=D;)D=D.parentNode;return D==w}; wE=function(w){return w.nodeType==9?w:w.ownerDocument||w.document}; g.N1=function(w,D){if("textContent"in w)w.textContent=D;else if(w.nodeType==3)w.data=String(D);else if(w.firstChild&&w.firstChild.nodeType==3){for(;w.lastChild!=w.firstChild;)w.removeChild(w.lastChild);w.firstChild.data=String(D)}else g.dE(w),w.appendChild(wE(w).createTextNode(String(D)))}; rxx=function(w){return w.tagName=="A"&&w.hasAttribute("href")||w.tagName=="INPUT"||w.tagName=="TEXTAREA"||w.tagName=="SELECT"||w.tagName=="BUTTON"?!w.disabled&&(!w.hasAttribute("tabindex")||qlK(w)):w.hasAttribute("tabindex")&&qlK(w)}; qlK=function(w){w=w.tabIndex;return typeof w==="number"&&w>=0&&w<32768}; od=function(w,D,M){if(!D&&!M)return null;var L=D?String(D).toUpperCase():null;return Hb(w,function(Z){return(!L||Z.nodeName==L)&&(!M||typeof Z.className==="string"&&g.xB(Z.className.split(/\s+/),M))},!0)}; Hb=function(w,D,M){w&&!M&&(w=w.parentNode);for(M=0;w;){if(D(w))return w;w=w.parentNode;M++}return null}; Av=function(w){this.T=w||g.KI.document||document}; esj=function(){this.T=this.xU=null}; nR=function(){}; Gd=function(){if(!Fc())throw Error();}; Fc=function(){return!(!sg||!sg.performance)}; XQS=function(w){return g.Eg?"webkit"+w:w.toLowerCase()}; ad=function(w){return function(){return w}}; g.vb=function(){}; T3K=function(w){var D=D||0;return function(){return w.apply(this,Array.prototype.slice.call(arguments,0,D))}}; cb=function(w){var D=!1,M;return function(){D||(M=w(),D=!0);return M}}; Bb=function(w){var D=w;return function(){if(D){var M=D;D=null;M()}}}; fR=function(w,D,M){var L=0;return function(Z){g.KI.clearTimeout(L);var k=arguments;L=g.KI.setTimeout(function(){w.apply(M,k)},D)}}; q1=function(w,D,M,L){this.top=w;this.right=D;this.bottom=M;this.left=L}; rE=function(w){return w.right-w.left}; ew=function(w,D){return w==D?!0:w&&D?w.top==D.top&&w.right==D.right&&w.bottom==D.bottom&&w.left==D.left:!1}; Xc=function(w,D,M){D instanceof g.Sq?(w.left+=D.x,w.right+=D.x,w.top+=D.y,w.bottom+=D.y):(w.left+=D,w.right+=D,typeof M==="number"&&(w.top+=M,w.bottom+=M));return w}; g.Td=function(w,D,M,L){this.left=w;this.top=D;this.width=M;this.height=L}; u5=function(w,D){return w==D?!0:w&&D?w.left==D.left&&w.width==D.width&&w.top==D.top&&w.height==D.height:!1}; g.Qv=function(w,D,M){if(typeof D==="string")(D=Sw(w,D))&&(w.style[D]=M);else for(var L in D){M=w;var Z=D[L],k=Sw(M,L);k&&(M.style[k]=Z)}}; Sw=function(w,D){var M=u7I[D];if(!M){var L=hsJ(D);M=L;w.style[L]===void 0&&(L=(g.Eg?"Webkit":JM?"Moz":null)+$Zl(L),w.style[L]!==void 0&&(M=L));u7I[D]=M}return M}; g.zd=function(w,D){var M=w.style[hsJ(D)];return typeof M!=="undefined"?M:w.style[Sw(w,D)]||""}; Vv=function(w,D){var M=wE(w);return M.defaultView&&M.defaultView.getComputedStyle&&(w=M.defaultView.getComputedStyle(w,null))?w[D]||w.getPropertyValue(D)||"":""}; Pb=function(w,D){return Vv(w,D)||(w.currentStyle?w.currentStyle[D]:null)||w.style&&w.style[D]}; g.KR=function(w,D,M){if(D instanceof g.Sq){var L=D.x;D=D.y}else L=D,D=M;w.style.left=g.Og(L,!1);w.style.top=g.Og(D,!1)}; m5=function(w){try{return w.getBoundingClientRect()}catch(D){return{left:0,top:0,right:0,bottom:0}}}; Sll=function(w){var D=wE(w),M=Pb(w,"position"),L=M=="fixed"||M=="absolute";for(w=w.parentNode;w&&w!=D;w=w.parentNode)if(w.nodeType==11&&w.host&&(w=w.host),M=Pb(w,"position"),L=L&&M=="static"&&w!=D.documentElement&&w!=D.body,!L&&(w.scrollWidth>w.clientWidth||w.scrollHeight>w.clientHeight||M=="fixed"||M=="absolute"||M=="relative"))return w;return null}; g.AM=function(w){var D=wE(w),M=new g.Sq(0,0);if(w==(D?wE(D):document).documentElement)return M;w=m5(w);D=LR(D);D=B3S(D.T);M.x=w.left+D.x;M.y=w.top+D.y;return M}; JxK=function(w,D){var M=new g.Sq(0,0),L=pR(wE(w));if(!IZK(L,"parent"))return M;do{var Z=L==D?g.AM(w):QSS(w);M.x+=Z.x;M.y+=Z.y}while(L&&L!=D&&L!=L.parent&&(w=L.frameElement)&&(L=L.parent));return M}; g.wl=function(w,D){w=zsa(w);D=zsa(D);return new g.Sq(w.x-D.x,w.y-D.y)}; QSS=function(w){w=m5(w);return new g.Sq(w.left,w.top)}; zsa=function(w){if(w.nodeType==1)return QSS(w);w=w.changedTouches?w.changedTouches[0]:w;return new g.Sq(w.clientX,w.clientY)}; g.Du=function(w,D,M){if(D instanceof g.Jv)M=D.height,D=D.width;else if(M==void 0)throw Error("missing height argument");w.style.width=g.Og(D,!0);w.style.height=g.Og(M,!0)}; g.Og=function(w,D){typeof w=="number"&&(w=(D?Math.round(w):w)+"px");return w}; g.MP=function(w){var D=VPN;if(Pb(w,"display")!="none")return D(w);var M=w.style,L=M.display,Z=M.visibility,k=M.position;M.visibility="hidden";M.position="absolute";M.display="inline";w=D(w);M.display=L;M.position=k;M.visibility=Z;return w}; VPN=function(w){var D=w.offsetWidth,M=w.offsetHeight,L=g.Eg&&!D&&!M;return(D===void 0||L)&&w.getBoundingClientRect?(w=m5(w),new g.Jv(w.right-w.left,w.bottom-w.top)):new g.Jv(D,M)}; g.L6=function(w,D){w.style.display=D?"":"none"}; Zu=function(w){return w?w.passive&&PrG()?w:w.capture||!1:!1}; kC=function(w,D,M,L){return typeof w.addEventListener==="function"?(w.addEventListener(D,M,Zu(L)),!0):!1}; bo=function(w){if(w.prerendering)return 3;var D;return(D={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[w.visibilityState||w.webkitVisibilityState||w.mozVisibilityState||""])!=null?D:0}; OkN=function(){}; YC=function(w){try{return!!w&&w.location.href!=null&&IZK(w,"foo")}catch(D){return!1}}; KrK=function(w){for(var D=w;w&&w!=w.parent;)w=w.parent,YC(w)&&(D=w);return D}; mZK=function(){return(rC||ec)&&Xh?Xh.mobile:!C6()&&(Qt("iPod")||Qt("iPhone")||Qt("Android")||Qt("IEMobile"))}; C6=function(){return(rC||ec)&&Xh?!Xh.mobile&&(Qt("iPad")||Qt("Android")||Qt("Silk")):Qt("iPad")||Qt("Android")&&!Qt("Mobile")||Qt("Silk")}; AxN=function(w){var D,M;return(M=(D=/https?:\/\/[^\/]+/.exec(w))==null?void 0:D[0])!=null?M:""}; LhI=function(w){w=w||lo();for(var D=new wDk(g.KI.location.href,!1),M=null,L=w.length-1,Z=L;Z>=0;--Z){var k=w[Z];!M&&Dca.test(k.url)&&(M=k);if(k.url&&!k.T){D=k;break}}Z=null;k=w.length&&w[L].url;D.depth!==0&&k&&(Z=w[L]);return new McT(D,Z,M)}; lo=function(){var w=g.KI,D=[],M=null;do{var L=w;if(YC(L)){var Z=L.location.href;M=L.document&&L.document.referrer||null}else Z=M,M=null;D.push(new wDk(Z||""));try{w=L.parent}catch(k){w=null}}while(w&&L!==w);L=0;for(w=D.length-1;L<=w;++L)D[L].depth=w-L;L=g.KI;if(L.location&&L.location.ancestorOrigins&&L.location.ancestorOrigins.length===D.length-1)for(w=1;wD&&(D=M.length);return 3997-D-w.L.length-1}; dl=function(w,D){this.T=w;this.depth=D}; Whr=function(){function w(C,l){return C==null?l:C} var D=lo(),M=Math.max(D.length-1,0),L=LhI(D);D=L.T;var Z=L.V,k=L.L,b=[];k&&b.push(new dl([k.url,k.T?2:0],w(k.depth,1)));Z&&Z!=k&&b.push(new dl([Z.url,2],0));D.url&&D!=k&&b.push(new dl([D.url,0],w(D.depth,M)));L=g.yR(b,function(C,l){return b.slice(0,b.length-l)}); !D.url||(k||Z)&&D!=k||(Z=AxN(D.url))&&L.push([new dl([Z,1],w(D.depth,M))]);L.push([]);return g.yR(L,function(C){return pDj(M,C)})}; pDj=function(w,D){g.IJ(D,function(Z){return Z.depth>=0}); var M=Ui(D,function(Z,k){return Math.max(Z,k.depth)},-1),L=FCk(M+2); L[0]=w;g.PQ(D,function(Z){return L[Z.depth+1]=Z.T}); return L}; hZR=function(){var w=w===void 0?Whr():w;return w.map(function(D){return io(D)})}; tcG=function(w){var D=!1;D=D===void 0?!1:D;sg.google_image_requests||(sg.google_image_requests=[]);var M=bWr("IMG",sg.document);D&&(M.attributionSrc="");M.src=w;sg.google_image_requests.push(M)}; xC=function(w){var D="gI";if(w.gI&&w.hasOwnProperty(D))return w.gI;var M=new w;w.gI=M;w.hasOwnProperty(D);return M}; NP=function(){this.V=new OkN;this.T=Fc()?new Gd:new nR}; $cS=function(){HC();var w=sg.document;return!!(w&&w.body&&w.body.getBoundingClientRect&&typeof sg.setInterval==="function"&&typeof sg.clearInterval==="function"&&typeof sg.setTimeout==="function"&&typeof sg.clearTimeout==="function")}; iWC=function(){HC();return hZR()}; dcI=function(){}; HC=function(){var w=xC(dcI);if(!w.T){if(!sg)throw Error("Context has not been set and window is undefined.");w.T=xC(NP)}return w.T}; ji=function(){throw Error("Invalid UTF8");}; y7G=function(w,D){D=String.fromCharCode.apply(null,D);return w==null?D:w+D}; NCI=function(w){var D=!1;D=D===void 0?!1:D;if(IYG){if(D&&(UcG?!w.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(w)))throw Error("Found an unpaired surrogate");w=(xcK||(xcK=new TextEncoder)).encode(w)}else{for(var M=0,L=new Uint8Array(3*w.length),Z=0;Z>6|192;else{if(k>=55296&&k<=57343){if(k<=56319&&Z=56320&&b<=57343){k=(k-55296)*1024+ b-56320+65536;L[M++]=k>>18|240;L[M++]=k>>12&63|128;L[M++]=k>>6&63|128;L[M++]=k&63|128;continue}else Z--}if(D)throw Error("Found an unpaired surrogate");k=65533}L[M++]=k>>12|224;L[M++]=k>>6&63|128}L[M++]=k&63|128}}w=M===L.length?L:L.subarray(0,M)}return w}; gl=function(w){g.KI.setTimeout(function(){throw w;},0)}; HWI=function(w){return Array.prototype.map.call(w,function(D){D=D.toString(16);return D.length>1?D:"0"+D}).join("")}; jkK=function(w){for(var D=[],M=0;M>6|192:((Z&64512)==55296&&L+1>18|240,D[M++]=Z>>12&63|128):D[M++]=Z>>12|224,D[M++]=Z>>6&63|128),D[M++]=Z&63|128)}return D}; g.oJ=function(w,D){D===void 0&&(D=0);gOT();D=RZK[D];for(var M=Array(Math.floor(w.length/3)),L=D[64]||"",Z=0,k=0;Z>2];b=D[(b&3)<<4|C>>4];C=D[(C&15)<<2|l>>6];l=D[l&63];M[k++]=""+E+b+C+l}E=0;l=L;switch(w.length-Z){case 2:E=w[Z+1],l=D[(E&15)<<2]||L;case 1:w=w[Z],M[k]=""+D[w>>2]+D[(w&3)<<4|E>>4]+l+L}return M.join("")}; g.n6=function(w,D,M){if(oOS&&!D)w=g.KI.btoa(w);else{for(var L=[],Z=0,k=0;k255){var C=Error("go/unicode-to-byte-error");if(M)throw C;L[Z++]=b&255;b>>=8}L[Z++]=b}w=g.oJ(L,D)}return w}; Fhk=function(w){var D=[];nOl(w,function(M){D.push(M)}); return D}; FA=function(w){var D=w.length,M=D*3/4;M%3?M=Math.floor(M):g.ak("=.",w[D-1])&&(M=g.ak("=.",w[D-2])?M-2:M-1);var L=new Uint8Array(M),Z=0;nOl(w,function(k){L[Z++]=k}); return Z!==M?L.subarray(0,Z):L}; nOl=function(w,D){function M(l){for(;L>4);b!=64&&(D(k<<4&240|b>>2),C!=64&&D(b<<6&192|C))}}; gOT=function(){if(!Ge){Ge={};for(var w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),D=["+/=","+/","-_=","-_.","-_"],M=0;M<5;M++){var L=w.concat(D[M].split(""));RZK[M]=L;for(var Z=0;Z=D||(L[w]=M+1,w=Error(),ZkK(w,"incident"),gl(w))}}; rl=function(w,D,M){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(M===void 0?0:M)&&Symbol.for&&w?Symbol.for(w):w!=null?Symbol(w):Symbol():D}; Te=function(w,D){ei||XA in w||eZI(w,XDk);w[XA]|=D}; uo=function(w,D){ei||XA in w||eZI(w,XDk);w[XA]=D}; Si=function(){return typeof BigInt==="function"}; Js=function(w,D){return D===void 0?w.T!==QR&&!!(2&(w.B_[XA]|0)):!!(2&D)&&w.T!==QR}; TCR=function(w,D){if(w!=null)if(typeof w==="string")w=w?new si(w,aJ):vC();else if(w.constructor!==si)if(q3r&&w!=null&&w instanceof Uint8Array)w=w.length?new si(new Uint8Array(w),aJ):vC();else{if(!D)throw Error();w=void 0}return w}; ze=function(w,D){if(typeof D!=="number"||D<0||D>=w.length)throw Error();}; uhK=function(w,D,M){var L=D&128?0:-1,Z=w.length,k;if(k=!!Z)k=w[Z-1],k=k!=null&&typeof k==="object"&&k.constructor===Object;var b=Z+(k?-1:0);for(D=D&128?1:0;DD.length)return!1;if(w.lengthZ)return!1;if(L>>0;D7=D;M3=(w-D)/4294967296>>>0}; kD=function(w){if(w<0){Lp(0-w);var D=g.x(Z7(D7,M3));w=D.next().value;D=D.next().value;D7=w>>>0;M3=D>>>0}else Lp(w)}; YD=function(w,D){var M=D*4294967296+(w>>>0);return Number.isSafeInteger(M)?M:b4(w,D)}; zZj=function(w,D){var M=D&2147483648;M&&(w=~w+1>>>0,D=~D>>>0,w==0&&(D=D+1>>>0));w=YD(w,D);return typeof w==="number"?M?-w:w:M?"-"+w:w}; b4=function(w,D){D>>>=0;w>>>=0;if(D<=2097151)var M=""+(4294967296*D+w);else Si()?M=""+(BigInt(D)<>>24|D<<8)&16777215,D=D>>16&65535,w=(w&16777215)+M*6777216+D*6710656,M+=D*8147497,D*=2,w>=1E7&&(M+=w/1E7>>>0,w%=1E7),M>=1E7&&(D+=M/1E7>>>0,M%=1E7),M=D+Vca(M)+Vca(w));return M}; Vca=function(w){w=String(w);return"0000000".slice(w.length)+w}; P1S=function(){var w=D7,D=M3;D&2147483648?Si()?w=""+(BigInt(D|0)<>>0)):(D=g.x(Z7(w,D)),w=D.next().value,D=D.next().value,w="-"+b4(w,D)):w=b4(w,D);return w}; Cp=function(w){if(w.length<16)kD(Number(w));else if(Si())w=BigInt(w),D7=Number(w&BigInt(4294967295))>>>0,M3=Number(w>>BigInt(32)&BigInt(4294967295));else{var D=+(w[0]==="-");M3=D7=0;for(var M=w.length,L=0+D,Z=(M-D)%6+D;Z<=M;L=Z,Z+=6)L=Number(w.slice(L,Z)),M3*=1E6,D7=D7*1E6+L,D7>=4294967296&&(M3+=Math.trunc(D7/4294967296),M3>>>=0,D7>>>=0);D&&(D=g.x(Z7(D7,M3)),w=D.next().value,D=D.next().value,D7=w,M3=D)}}; Z7=function(w,D){D=~D;w?w=~w+1:D+=1;return[w,D]}; l4=function(w){return Array.prototype.slice.call(w)}; Eh=function(w){if(w!=null&&typeof w!=="number")throw Error("Value of float/double field must be a number, found "+typeof w+": "+w);return w}; OWI=function(w){return w.displayName||w.name||"unknown type name"}; pp=function(w){if(w!=null&&typeof w!=="boolean")throw Error("Expected boolean but got "+tNj(w)+": "+w);return w}; hV=function(w){switch(typeof w){case "bigint":return!0;case "number":return Wc(w);case "string":return Khx.test(w);default:return!1}}; mcR=function(w){if(typeof w!=="number")throw f6("int32");if(!Wc(w))throw f6("int32");return w|0}; tV=function(w){return w==null?w:mcR(w)}; $D=function(w){if(w==null)return w;if(typeof w==="string"&&w)w=+w;else if(typeof w!=="number")return;return Wc(w)?w|0:void 0}; yK=function(w){if(w==null)return w;if(typeof w==="string"&&w)w=+w;else if(typeof w!=="number")return;return Wc(w)?w>>>0:void 0}; DOk=function(w){var D=0;D=D===void 0?0:D;if(!hV(w))throw f6("int64");var M=typeof w;switch(D){case 512:switch(M){case "string":return I8(w);case "bigint":return String(Uh(64,w));default:return xD(w)}case 1024:switch(M){case "string":return A7S(w);case "bigint":return wP(Uh(64,w));default:return w5C(w)}case 0:switch(M){case "string":return I8(w);case "bigint":return wP(Uh(64,w));default:return N3(w)}default:return p2(D,"Unknown format requested type for int64")}}; Hc=function(w){return w==null?w:DOk(w)}; Mql=function(w){if(w[0]==="-")return!1;var D=w.length;return D<20?!0:D===20&&Number(w.substring(0,6))<184467}; Lxk=function(w){var D=w.length;return w[0]==="-"?D<20?!0:D===20&&Number(w.substring(0,7))>-922337:D<19?!0:D===19&&Number(w.substring(0,6))<922337}; Z2J=function(w){if(w<0){kD(w);var D=b4(D7,M3);w=Number(D);return jy(w)?w:D}D=String(w);if(Mql(D))return D;kD(w);return YD(D7,M3)}; k7R=function(w){if(Lxk(w))return w;Cp(w);return P1S()}; N3=function(w){hV(w);w=gP(w);jy(w)||(kD(w),w=zZj(D7,M3));return w}; xD=function(w){hV(w);w=gP(w);if(jy(w))w=String(w);else{var D=String(w);Lxk(D)?w=D:(kD(w),w=P1S())}return w}; I8=function(w){hV(w);var D=gP(Number(w));if(jy(D))return String(D);D=w.indexOf(".");D!==-1&&(w=w.substring(0,D));return k7R(w)}; A7S=function(w){var D=gP(Number(w));if(jy(D))return wP(D);D=w.indexOf(".");D!==-1&&(w=w.substring(0,D));return Si()?wP(Uh(64,BigInt(w))):wP(k7R(w))}; w5C=function(w){return jy(w)?wP(N3(w)):wP(xD(w))}; b2G=function(w){if(w==null)return w;var D=typeof w;if(D==="bigint")return String(Uh(64,w));if(hV(w)){if(D==="string")return I8(w);if(D==="number")return N3(w)}}; CLk=function(w){if(w==null)return w;var D=typeof w;if(D==="bigint")return String(YQj(64,w));if(hV(w)){if(D==="string")return hV(w),D=gP(Number(w)),jy(D)&&D>=0?w=String(D):(D=w.indexOf("."),D!==-1&&(w=w.substring(0,D)),Mql(w)||(Cp(w),w=b4(D7,M3))),w;if(D==="number")return hV(w),w=gP(w),w>=0&&jy(w)?w:Z2J(w)}}; ljK=function(w){if(w==null||typeof w=="string"||w instanceof si)return w}; E1j=function(w){if(typeof w!=="string")throw Error();return w}; R8=function(w){if(w!=null&&typeof w!=="string")throw Error();return w}; o8=function(w){return w==null||typeof w==="string"?w:void 0}; np=function(w,D){if(!(w instanceof D))throw Error("Expected instanceof "+OWI(D)+" but got "+(w&&OWI(w.constructor)));return w}; p5J=function(w,D,M){if(w!=null&&w[FO]===G4)return w;if(Array.isArray(w)){var L=w[XA]|0;M=L|M&32|M&2;M!==L&&uo(w,M);return new D(w)}}; sh=function(w){return w}; vc=function(w){var D=WQ(a8);return D?w[D]:void 0}; cc=function(){}; Bc=function(w,D){for(var M in w)!isNaN(M)&&D(w,+M,w[M])}; WxK=function(w){var D=new cc;Bc(w,function(M,L,Z){D[L]=l4(Z)}); D.OX=w.OX;return D}; tqI=function(w,D){D<100||qP(h$C,1)}; ey=function(w,D,M,L){var Z=L!==void 0;L=!!L;var k=WQ(a8),b;!Z&&ei&&k&&(b=w[k])&&Bc(b,tqI);k=[];var C=w.length;b=4294967295;var l=!1,E=!!(D&64),p=E?D&128?0:-1:void 0;if(!(D&1)){var W=C&&w[C-1];W!=null&&typeof W==="object"&&W.constructor===Object?(C--,b=C):W=void 0;if(E&&!(D&128)&&!Z){l=!0;var h;b=((h=rP)!=null?h:sh)(b-p,p,w,W,void 0)+p}}D=void 0;for(h=0;h=b){var d=h-p,N=void 0;((N=D)!=null?N:D={})[d]=t}else k[h]=t}if(W)for(var n in W)C=W[n],C!= null&&(C=M(C,L))!=null&&(h=+n,t=void 0,E&&!Number.isNaN(h)&&(t=h+p)0?void 0:w===0?IjG||(IjG=[0,void 0]):[-w,void 0];case "string":return[0,w];case "object":return w}}; QK=function(w,D,M){return w=Sy(w,D[0],D[1],M?1:2)}; Sy=function(w,D,M,L){L=L===void 0?0:L;if(w==null){var Z=32;M?(w=[M],Z|=128):w=[];D&&(Z=Z&-8380417|(D&1023)<<13)}else{if(!Array.isArray(w))throw Error("narr");Z=w[XA]|0;if(xOG&&1&Z)throw Error("rfarr");2048&Z&&!(2&Z)&&N2C();if(Z&256)throw Error("farr");if(Z&64)return L!==0||Z&2048||uo(w,Z|2048),w;if(M&&(Z|=128,M!==w[0]))throw Error("mid");a:{M=w;Z|=64;var k=M.length;if(k){var b=k-1,C=M[b];if(C!=null&&typeof C==="object"&&C.constructor===Object){D=Z&128?0:-1;b-=D;if(b>=1024)throw Error("pvtlmt");for(var l in C)k= +l,k1024)throw Error("spvt");Z=Z&-8380417|(l&1023)<<13}}}Z|=64;L===0&&(Z|=2048);uo(w,Z);return w}; N2C=function(){if(xOG)throw Error("carr");qP(H2R,5)}; jgK=function(w,D){if(typeof w!=="object")return w;if(Array.isArray(w)){var M=w[XA]|0;w.length===0&&M&1?w=void 0:M&2||(!D||4096&M||16&M?w=JV(w,M,!1,D&&!(M&16)):(Te(w,34),M&4&&Object.freeze(w)));return w}if(w!=null&&w[FO]===G4)return D=w.B_,M=D[XA]|0,Js(w,M)?w:z4(w,D,M)?VK(w,D):JV(D,M);if(w instanceof si)return w}; VK=function(w,D,M){w=new w.constructor(D);M&&(w.T=QR);w.V=QR;return w}; JV=function(w,D,M,L){L!=null||(L=!!(34&D));w=ey(w,D,jgK,L);L=32;M&&(L|=2);D=D&8380609|L;uo(w,D);return w}; g1a=function(w){var D=w.B_,M=D[XA]|0;return Js(w,M)?z4(w,D,M)?VK(w,D,!0):new w.constructor(JV(D,M,!1)):w}; Pc=function(w){if(w.T!==QR)return!1;var D=w.B_;D=JV(D,D[XA]|0);Te(D,2048);w.B_=D;w.T=void 0;w.V=void 0;return!0}; Oh=function(w){if(!Pc(w)&&Js(w,w.B_[XA]|0))throw Error();}; Kp=function(w,D){D===void 0&&(D=w[XA]|0);D&32&&!(D&4096)&&uo(w,D|4096)}; z4=function(w,D,M){return M&2?!0:M&32&&!(M&4096)?(uo(D,M|2),w.T=QR,!0):!1}; AV=function(w,D,M,L,Z){Object.isExtensible(w);D=mM(w.B_,D,M,Z);if(D!==null||L&&w.V!==QR)return D}; mM=function(w,D,M,L){if(D===-1)return null;var Z=D+(M?0:-1),k=w.length-1;if(!(k<1+(M?0:-1))){if(Z>=k){var b=w[k];if(b!=null&&typeof b==="object"&&b.constructor===Object){M=b[D];var C=!0}else if(Z===k)M=b;else return}else M=w[Z];if(L&&M!=null){L=L(M);if(L==null)return L;if(!Object.is(L,M))return C?b[D]=L:w[Z]=L,L}return M}}; D2=function(w,D,M,L){Oh(w);var Z=w.B_;wB(Z,Z[XA]|0,D,M,L);return w}; wB=function(w,D,M,L,Z){var k=M+(Z?0:-1),b=w.length-1;if(b>=1+(Z?0:-1)&&k>=b){var C=w[b];if(C!=null&&typeof C==="object"&&C.constructor===Object)return C[M]=L,D}if(k<=b)return w[k]=L,D;if(L!==void 0){var l;b=((l=D)!=null?l:D=w[XA]|0)>>13&1023||536870912;M>=b?L!=null&&(k={},w[b+(Z?0:-1)]=(k[M]=L,k)):w[k]=L}return D}; bY=function(w,D,M,L,Z){var k=w.B_,b=k[XA]|0;L=Js(w,b)?1:L;Z=!!Z||L===3;L===2&&Pc(w)&&(k=w.B_,b=k[XA]|0);w=MK(k,D);var C=w===LK?7:w[XA]|0,l=Z2(C,b);var E=4&l?!1:!0;if(E){4&l&&(w=l4(w),C=0,l=km(l,b),b=wB(k,b,D,w));for(var p=0,W=0;p32)for(M|=(b&127)>>4,L=3;L<32&&b&128;L+=7)b=Z[k++],M|=(b&127)<>>0,M>>>0);throw Error();}; Tl=function(w,D){w.T=D;if(D>w.L)throw Error();}; Sr=function(w){var D=w.V,M=w.T,L=D[M++],Z=L&127;if(L&128&&(L=D[M++],Z|=(L&127)<<7,L&128&&(L=D[M++],Z|=(L&127)<<14,L&128&&(L=D[M++],Z|=(L&127)<<21,L&128&&(L=D[M++],Z|=L<<28,L&128&&D[M++]&128&&D[M++]&128&&D[M++]&128&&D[M++]&128&&D[M++]&128)))))throw Error();Tl(w,M);return Z}; QC=function(w){var D=w.V,M=w.T,L=D[M+0],Z=D[M+1],k=D[M+2];D=D[M+3];Tl(w,w.T+4);return(L<<0|Z<<8|k<<16|D<<24)>>>0}; J9=function(w){var D=QC(w);w=QC(w);return YD(D,w)}; zl=function(w){var D=QC(w),M=QC(w);w=(M>>31)*2+1;var L=M>>>20&2047;D=4294967296*(M&1048575)+D;return L==2047?D?NaN:w*Infinity:L==0?w*4.9E-324*D:w*Math.pow(2,L-1075)*(D+4503599627370496)}; VC=function(w){for(var D=0,M=w.T,L=M+10,Z=w.V;Mw.L)throw Error();w.T=D;return M}; rvK=function(w,D){if(D==0)return vC();var M=fjK(w,D);w.U5&&w.W?M=w.V.subarray(M,M+D):(w=w.V,D=M+D,M=M===D?new Uint8Array(0):qQj?w.slice(M,D):new Uint8Array(w.subarray(M,D)));return M.length==0?vC():new si(M,aJ)}; Or=function(w,D,M,L){if(PW.length){var Z=PW.pop();Z.init(w,D,M,L);w=Z}else w=new XC(w,D,M,L);this.T=w;this.D=this.T.T;this.V=this.L=-1;e$S(this,L)}; e$S=function(w,D){D=D===void 0?{}:D;w.vG=D.vG===void 0?!1:D.vG}; X5K=function(w,D,M,L){if(KK.length){var Z=KK.pop();e$S(Z,L);Z.T.init(w,D,M,L);return Z}return new Or(w,D,M,L)}; T2R=function(w){var D=w.T;if(D.T==D.L)return!1;w.D=w.T.T;var M=Sr(w.T)>>>0;D=M>>>3;M&=7;if(!(M>=0&&M<=5))throw Error();if(D<1)throw Error();w.L=D;w.V=M;return!0}; mv=function(w){switch(w.V){case 0:w.V!=0?mv(w):VC(w.T);break;case 1:w=w.T;Tl(w,w.T+8);break;case 2:if(w.V!=2)mv(w);else{var D=Sr(w.T)>>>0;w=w.T;Tl(w,w.T+D)}break;case 5:w=w.T;Tl(w,w.T+4);break;case 3:D=w.L;do{if(!T2R(w))throw Error();if(w.V==4){if(w.L!=D)throw Error();break}mv(w)}while(1);break;default:throw Error();}}; Ch=function(w,D,M){var L=w.T.L,Z=Sr(w.T)>>>0;Z=w.T.T+Z;var k=Z-L;k<=0&&(w.T.L=Z,M(D,w,void 0,void 0,void 0),k=Z-w.T.T);if(k)throw Error();w.T.T=Z;w.T.L=L}; ph=function(w){var D=Sr(w.T)>>>0;w=w.T;var M=fjK(w,D);w=w.V;if(u4K){var L=w,Z;(Z=l0)||(Z=l0=new TextDecoder("utf-8",{fatal:!0}));D=M+D;L=M===0&&D===L.length?L:L.subarray(M,D);try{var k=Z.decode(L)}catch(E){if(Eu===void 0){try{Z.decode(new Uint8Array([128]))}catch(p){}try{Z.decode(new Uint8Array([97])),Eu=!0}catch(p){Eu=!1}}!Eu&&(l0=void 0);throw E;}}else{k=M;D=k+D;M=[];for(var b=null,C,l;k=D?ji():(l=w[k++],C<194||(l&192)!==128?(k--,ji()):M.push((C&31)<<6|l&63)): C<240?k>=D-1?ji():(l=w[k++],(l&192)!==128||C===224&&l<160||C===237&&l>=160||((Z=w[k++])&192)!==128?(k--,ji()):M.push((C&15)<<12|(l&63)<<6|Z&63)):C<=244?k>=D-2?ji():(l=w[k++],(l&192)!==128||(C<<28)+(l-144)>>30!==0||((Z=w[k++])&192)!==128||((L=w[k++])&192)!==128?(k--,ji()):(C=(C&7)<<18|(l&63)<<12|(Z&63)<<6|L&63,C-=65536,M.push((C>>10&1023)+55296,(C&1023)+56320))):ji(),M.length>=8192&&(b=y7G(b,M),M.length=0);k=y7G(b,M)}return k}; SQl=function(w){var D=Sr(w.T)>>>0;return rvK(w.T,D)}; WK=function(w,D){this.V=w>>>0;this.T=D>>>0}; Jvr=function(w){if(!w)return Qgk||(Qgk=new WK(0,0));if(!/^\d+$/.test(w))return null;Cp(w);return new WK(D7,M3)}; hi=function(w,D){this.V=w>>>0;this.T=D>>>0}; Vql=function(w){if(!w)return z$C||(z$C=new hi(0,0));if(!/^-?\d+$/.test(w))return null;Cp(w);return new hi(D7,M3)}; ti=function(){this.T=[]}; $d=function(w,D,M){for(;M>0||D>127;)w.T.push(D&127|128),D=(D>>>7|M<<25)>>>0,M>>>=7;w.T.push(D)}; i0=function(w,D){for(;D>127;)w.T.push(D&127|128),D>>>=7;w.T.push(D)}; PLR=function(w,D){if(D>=0)i0(w,D);else{for(var M=0;M<9;M++)w.T.push(D&127|128),D>>=7;w.T.push(1)}}; dD=function(w,D){w.T.push(D>>>0&255);w.T.push(D>>>8&255);w.T.push(D>>>16&255);w.T.push(D>>>24&255)}; O2I=function(){this.L=[];this.V=0;this.T=new ti}; yw=function(w,D){D.length!==0&&(w.L.push(D),w.V+=D.length)}; KxN=function(w,D){IX(w,D,2);D=w.T.end();yw(w,D);D.push(w.V);return D}; mOI=function(w,D){var M=D.pop();for(M=w.V+w.T.length()-M;M>127;)D.push(M&127|128),M>>>=7,w.V++;D.push(M);w.V++}; IX=function(w,D,M){i0(w.T,D*8+M)}; Avj=function(w,D,M){if(M!=null){switch(typeof M){case "string":Jvr(M)}IX(w,D,1);switch(typeof M){case "number":w=w.T;Lp(M);dD(w,D7);dD(w,M3);break;case "bigint":M=BigInt.asUintN(64,M);M=new WK(Number(M&BigInt(4294967295)),Number(M>>BigInt(32)));w=w.T;D=M.T;dD(w,M.V);dD(w,D);break;default:M=Jvr(M),w=w.T,D=M.T,dD(w,M.V),dD(w,D)}}}; Uu=function(w,D,M){IX(w,D,2);i0(w.T,M.length);yw(w,w.T.end());yw(w,M)}; xd=function(){function w(){throw Error();} Object.setPrototypeOf(w,w.prototype);return w}; Nn=function(w,D,M){this.B_=Sy(w,D,M)}; wbC=function(w,D){if(D==null||D=="")return new w;D=JSON.parse(D);if(!Array.isArray(D))throw Error("dnarr");Te(D,32);return new w(D)}; j5=function(w,D,M){this.Fq=w;this.fv=D;w=WQ(HK);this.T=!!w&&M===w||!1}; gD=function(w,D){var M=M===void 0?HK:M;return new j5(w,D,M)}; MwK=function(w,D,M,L,Z){D=D1I(D,L);D!=null&&(M=KxN(w,M),Z(D,w),mOI(w,M))}; nh=function(w,D,M,L){var Z=L[w];if(Z)return Z;Z={};Z.qY=L;Z.qH=UOG(L[0]);var k=L[1],b=1;k&&k.constructor===Object&&(Z.extensions=k,k=L[++b],typeof k==="function"&&(Z.MJ=!0,RX!=null||(RX=k),oX!=null||(oX=L[b+1]),k=L[b+=2]));for(var C={};k&&Array.isArray(k)&&k.length&&typeof k[0]==="number"&&k[0]>0;){for(var l=0;l>BigInt(32)));$d(w.T,M.V,M.T);break;default:M=Vql(D),$d(w.T,M.V,M.T)}}}; mF=function(w,D,M){D=$D(D);D!=null&&D!=null&&(IX(w,M,0),PLR(w.T,D))}; $1T=function(w,D,M){D=D==null||typeof D==="boolean"?D:typeof D==="number"?!!D:void 0;D!=null&&(IX(w,M,0),w.T.T.push(D?1:0))}; iRr=function(w,D,M){D=o8(D);D!=null&&Uu(w,M,NCI(D))}; d1x=function(w,D,M,L,Z){D=D1I(D,L);D!=null&&(M=KxN(w,M),Z(D,w),mOI(w,M))}; IKx=function(){var w=Ai;this.T=yMC;this.isRepeated=0;this.V=HW;this.defaultValue=void 0;this.L=w.messageId!=null?VR:void 0}; U1k=function(w,D){return function(M,L){var Z={OS:!0};L&&Object.assign(Z,L);M=X5K(M,void 0,void 0,Z);try{var k=new w,b=k.B_;vK(D)(b,M);var C=k}finally{M.free()}return C}}; x1N=function(w){return function(){var D=new O2I;pbl(this.B_,D,nh(fh,BK,qn,w));yw(D,D.T.end());for(var M=new Uint8Array(D.V),L=D.L,Z=L.length,k=0,b=0;b-1)return D.apply(null,g.tG(M));try{return w.T=w.L.T.now(),D.apply(null,g.tG(M))}finally{w.D+=w.L.T.now()-w.T,w.T=-1,w.V+=1}}}; HRR=function(w,D){this.V=w;this.L=D;this.T=new NER(w)}; jdS=function(){this.T={}}; nyJ=function(){this.L=void 0;this.V=this.Y=0;this.W=-1;this.tQ=new HD;jc(this.tQ,"mv",gya).T=!0;jc(this.tQ,"omid",Fh);jc(this.tQ,"epoh",Fh).T=!0;jc(this.tQ,"epph",Fh).T=!0;jc(this.tQ,"umt",Fh).T=!0;jc(this.tQ,"phel",Fh).T=!0;jc(this.tQ,"phell",Fh).T=!0;jc(this.tQ,"oseid",RIl).T=!0;var w=this.tQ;w.T.sloi||(w.T.sloi=new xO);w.T.sloi.T=!0;jc(this.tQ,"mm",L3);jc(this.tQ,"ovms",oyK).T=!0;jc(this.tQ,"xdi",Fh).T=!0;jc(this.tQ,"amp",Fh).T=!0;jc(this.tQ,"prf",Fh).T=!0;jc(this.tQ,"gtx",Fh).T=!0;jc(this.tQ, "mvp_lv",Fh).T=!0;jc(this.tQ,"ssmol",Fh).T=!0;jc(this.tQ,"fmd",Fh).T=!0;jc(this.tQ,"gen204simple",Fh);this.T=new HRR(HC(),this.tQ);this.D=!1;this.flags=new jdS}; ZA=function(){return xC(nyJ)}; F5G=function(w,D,M,L){if(Math.random()<(L||w.T))try{if(M instanceof ts)var Z=M;else Z=new ts,hs(M,function(b,C){var l=Z,E=l.D++;b=$C(C,b);l.T.push(E);l.V[E]=b}); var k=Z.M8(w.V,"pagead2.googlesyndication.com","/pagead/gen_204?id="+D+"&");k&&(HC(),tcG(k))}catch(b){}}; Gdr=function(w,D,M){M=M===void 0?{}:M;this.error=w;this.meta=M;this.context=D.context;this.msg=D.message||"";this.id=D.id||"jserror"}; sdG=function(){var w=w===void 0?g.KI:w;return(w=w.performance)&&w.now&&w.timing?Math.floor(w.now()+w.timing.navigationStart):g.pk()}; aKN=function(){var w=w===void 0?g.KI:w;return(w=w.performance)&&w.now?w.now():null}; vyl=function(w,D,M){this.label=w;this.type=D;this.value=M;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; bX=function(){var w=window;this.events=[];this.V=w||g.KI;var D=null;w&&(w.google_js_reporting_queue=w.google_js_reporting_queue||[],this.events=w.google_js_reporting_queue,D=w.google_measure_js_timing);this.T=kQ()||(D!=null?D:Math.random()<1)}; cMa=function(w){w&&YQ&&kQ()&&(YQ.clearMarks("goog_"+w.label+"_"+w.uniqueId+"_start"),YQ.clearMarks("goog_"+w.label+"_"+w.uniqueId+"_end"))}; C3=function(w,D,M,L,Z,k,b){var C="";w&&(C+=w+":");M&&(C+="//",D&&(C+=D+"@"),C+=M,L&&(C+=":"+L));Z&&(C+=Z);k&&(C+="?"+k);b&&(C+="#"+b);return C}; g.lX=function(w){return w.match(BEK)}; fKk=function(w){return w?decodeURI(w):w}; g.ER=function(w){return fKk(g.lX(w)[3]||null)}; p3=function(w){return fKk(g.lX(w)[5]||null)}; g.qgJ=function(w){w=g.lX(w);return C3(w[1],w[2],w[3],w[4])}; W2=function(w){w=g.lX(w);return C3(null,null,null,null,w[5],w[6],w[7])}; rMa=function(w){var D=w.indexOf("#");return D<0?w:w.slice(0,D)}; hA=function(w,D){if(w){w=w.split("&");for(var M=0;M=0){var k=w[M].substring(0,L);Z=w[M].substring(L+1)}else k=w[M];D(k,Z?F4(Z):"")}}}; tA=function(w,D){if(!D)return w;var M=w.indexOf("#");M<0&&(M=w.length);var L=w.indexOf("?");if(L<0||L>M){L=M;var Z=""}else Z=w.substring(L+1,M);w=[w.slice(0,L),Z,w.slice(M)];M=w[1];w[1]=D?M?M+"&"+D:D:M;return w[0]+(w[1]?"?"+w[1]:"")+w[2]}; $Q=function(w,D,M){if(Array.isArray(D))for(var L=0;L=0&&DM)Z=M;L+=D.length+1;return F4(w.slice(L,Z!==-1?Z:0))}; H2=function(w,D){for(var M=w.search(UR),L=0,Z,k=[];(Z=IQ(w,L,D,M))>=0;)k.push(w.substring(L,Z)),L=Math.min(w.indexOf("&",Z)+1||M,M);k.push(w.slice(L));return k.join("").replace(TEx,"$1")}; ucT=function(w,D,M){return yU(H2(w,D),D,M)}; Sgx=function(){var w=jj;this.T=gh;this.hT="jserror";this.vZ=!0;this.MU=null;this.V=this.TY;this.bj=w===void 0?null:w}; QdC=function(w,D,M){var L=RQ;return MM(ZA().T.T,function(){try{if(L.bj&&L.bj.T){var Z=L.bj.start(w.toString(),3);var k=D();L.bj.end(Z)}else k=D()}catch(C){var b=L.vZ;try{cMa(Z),b=L.V(w,new oQ(n3(C)),void 0,M)}catch(l){L.TY(217,l)}if(!b)throw C;}return k})()}; Fk=function(w,D,M,L){return MM(ZA().T.T,function(){var Z=g.rR.apply(0,arguments);return QdC(w,function(){return D.apply(M,Z)},L)})}; n3=function(w){var D=w.toString();w.name&&D.indexOf(w.name)==-1&&(D+=": "+w.name);w.message&&D.indexOf(w.message)==-1&&(D+=": "+w.message);if(w.stack)a:{w=w.stack;var M=D;try{w.indexOf(M)==-1&&(w=M+"\n"+w);for(var L;w!=L;)L=w,w=w.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");D=w.replace(/\n */g,"\n");break a}catch(Z){D=M;break a}D=void 0}return D}; oQ=function(w){Gdr.call(this,Error(w),{message:w})}; JMx=function(){sg&&typeof sg.google_measure_js_timing!="undefined"&&(sg.google_measure_js_timing||jj.disable())}; zIk=function(w){RQ.MU=function(D){g.PQ(w,function(M){M(D)})}}; Vwl=function(w,D){return QdC(w,D)}; G1=function(w,D){return Fk(w,D)}; sR=function(w,D,M,L){RQ.TY(w,D,M,L)}; aQ=function(){return Date.now()-P5S}; ORN=function(){var w=ZA().L,D=v2>=0?aQ()-v2:-1,M=c2?aQ()-B2:-1,L=f3>=0?aQ()-f3:-1;if(w==947190542)return 100;if(w==79463069)return 200;w=[2E3,4E3];var Z=[250,500,1E3];sR(637,Error(),.001);var k=D;M!=-1&&M1500&&L<4E3?500:b}; qM=function(w,D,M){var L=new q1(0,0,0,0);this.time=w;this.volume=null;this.L=D;this.T=L;this.V=M}; rh=function(w,D,M,L,Z,k,b,C){this.D=w;this.G=D;this.L=M;this.Y=L;this.T=Z;this.W=k;this.V=b;this.U=C}; m1N=function(w){var D=w!==w.top,M=w.top===KrK(w),L=-1,Z=0;if(D&&M&&w.top.mraid){L=3;var k=w.top.mraid}else L=(k=w.mraid)?D?M?2:1:0:-1;k&&(k.IS_GMA_SDK||(Z=2),aaS(K5N,function(b){return typeof k[b]==="function"})||(Z=1)); return{Ht:k,compatibility:Z,SHd:L}}; AMS=function(){var w=window.document;return w&&typeof w.elementFromPoint==="function"}; wCG=function(w,D,M){if(w&&D!==null&&D!=D.top){if(!D.top)return new g.Jv(-12245933,-12245933);D=D.top}try{return(M===void 0?0:M)?(new g.Jv(D.innerWidth,D.innerHeight)).round():vBx(D||window).round()}catch(L){return new g.Jv(-12245933,-12245933)}}; ej=function(w,D,M){try{if(w){if(!D.top)return new q1(-12245933,-12245933,-12245933,-12245933);D=D.top}var L=wCG(w,D,M),Z=L.height,k=L.width;if(k===-12245933)return new q1(k,k,k,k);var b=LR(D.document);var C=B3S(b.T);var l=C.x,E=C.y;return new q1(E,l+k,E+Z,l)}catch(p){return new q1(-12245933,-12245933,-12245933,-12245933)}}; Xk=function(w,D){D=Math.pow(10,D);return Math.floor(w*D)/D}; DPa=function(w){return new q1(w.top,w.right,w.bottom,w.left)}; Mik=function(w){var D=w.top||0,M=w.left||0;return new q1(D,M+(w.width||0),D+(w.height||0),M)}; T1=function(w){return w!=null&&w>=0&&w<=1}; LXR=function(){var w=g.qc();return w?uX("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(D){return vD(w,D)})||vD(w,"OMI/")&&!vD(w,"XiaoMi/")?!0:vD(w,"Presto")&&vD(w,"Linux")&&!vD(w,"X11")&&!vD(w,"Android")&&!vD(w,"Mobi"):!1}; Z6j=function(){this.L=!YC(sg.top);this.isMobileDevice=C6()||mZK();var w=lo();this.domain=w.length>0&&w[w.length-1]!=null&&w[w.length-1].url!=null?g.ER(w[w.length-1].url)||"":"";this.T=new q1(0,0,0,0);this.D=new g.Jv(0,0);this.W=new g.Jv(0,0);this.G=new q1(0,0,0,0);this.frameOffset=new g.Sq(0,0);this.Y=0;this.U=!1;this.V=!(!sg||!m1N(sg).Ht);this.update(sg)}; keS=function(w,D){D&&D.screen&&(w.D=new g.Jv(D.screen.width,D.screen.height))}; b6r=function(w,D){a:{var M=w.T?new g.Jv(rE(w.T),w.T.getHeight()):new g.Jv(0,0);D=D===void 0?sg:D;D!==null&&D!=D.top&&(D=D.top);var L=0,Z=0;try{var k=D.document,b=k.body,C=k.documentElement;if(k.compatMode=="CSS1Compat"&&C.scrollHeight)L=C.scrollHeight!=M.height?C.scrollHeight:C.offsetHeight,Z=C.scrollWidth!=M.width?C.scrollWidth:C.offsetWidth;else{var l=C.scrollHeight,E=C.scrollWidth,p=C.offsetHeight,W=C.offsetWidth;C.clientHeight!=p&&(l=b.scrollHeight,E=b.scrollWidth,p=b.offsetHeight,W=b.offsetWidth); l>M.height?l>p?(L=l,Z=E):(L=p,Z=W):l0||w.U)return!0;w=HC().V.isVisible();var D=bo(QU)===0;return w||D}; Sj=function(){return xC(Z6j)}; z1=function(w){this.L=w;this.V=0;this.T=null}; VU=function(w,D,M){this.L=w;this.Md=M===void 0?"na":M;this.W=[];this.isInitialized=!1;this.D=new qM(-1,!0,this);this.T=this;this.U=D;this.y7=this.B=!1;this.W_="uk";this.c_=!1;this.Y=!0}; P2=function(w,D){g.xB(w.W,D)||(w.W.push(D),D.tC(w.T),D.Uo(w.D),D.Xr()&&(w.B=!0))}; Yij=function(w){w=w.T;w.AN();w.Be();var D=Sj();D.G=ej(!1,w.L,D.isMobileDevice);b6r(Sj(),w.L);w.D.T=w.jd()}; CoG=function(w){w.B=w.W.length?uX(w.W,function(D){return D.Xr()}):!1}; lua=function(w){var D=g.GD(w.W);g.PQ(D,function(M){M.Uo(w.D)})}; OR=function(w){var D=g.GD(w.W);g.PQ(D,function(M){M.tC(w.T)}); w.T!=w||lua(w)}; K3=function(w,D,M,L){this.element=w;this.T=new q1(0,0,0,0);this.L=null;this.Y=new q1(0,0,0,0);this.V=D;this.tQ=M;this.c_=L;this.nV=!1;this.timestamp=-1;this.B=new rh(D.D,this.element,this.T,new q1(0,0,0,0),0,0,aQ(),0);this.W=void 0}; ECS=function(w,D){return w.W?new q1(Math.max(D.top+w.W.top,D.top),Math.min(D.left+w.W.right,D.right),Math.min(D.top+w.W.bottom,D.bottom),Math.max(D.left+w.W.left,D.left)):D.clone()}; ml=function(w){this.W=!1;this.T=w;this.D=function(){}}; pCK=function(w,D,M){this.L=M===void 0?0:M;this.V=w;this.T=D==null?"":D}; WXK=function(w){switch(Math.trunc(w.L)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; hRj=function(w,D){return w.LD.L?!1:w.VD.V?!1:typeof w.Ttypeof D.T?!1:w.T0?L[M]-L[M-1]:L[M]})}; ps=function(){this.V=new kn;this.Md=this.Jc=0;this.XE=new Zk;this.V7=this.G=-1;this.EL=1E3;this.pV=new kn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.W_=this.nV=-1}; We=function(w,D){return H6I(w.V,D===void 0?!0:D)}; hI=function(w,D,M,L){var Z=Z===void 0?!1:Z;M=Fk(L,M);kC(w,D,M,{capture:Z})}; $n=function(w,D){D=tI(D);return D===0?0:tI(w)/D}; tI=function(w){return Math.max(w.bottom-w.top,0)*Math.max(w.right-w.left,0)}; RRR=function(w,D){if(!w||!D)return!1;for(var M=0;w!==null&&M++<100;){if(w===D)return!0;try{if(w=w.parentElement||w){var L=wE(w),Z=L&&pR(L),k=Z&&Z.frameElement;k&&(w=k)}}catch(b){break}}return!1}; oCx=function(w,D,M){if(!w||!D)return!1;D=Xc(w.clone(),-D.left,-D.top);w=(D.left+D.right)/2;D=(D.top+D.bottom)/2;YC(window.top)&&window.top&&window.top.document&&(window=window.top);if(!AMS())return!1;w=window.document.elementFromPoint(w,D);if(!w)return!1;D=(D=(D=wE(M))&&D.defaultView&&D.defaultView.frameElement)&&RRR(D,w);var L=w===M;w=!L&&w&&Hb(w,function(Z){return Z===M}); return!(D||L||w)}; nCJ=function(w,D,M,L){return Sj().L?!1:rE(w)<=0||w.getHeight()<=0?!0:M&&L?Vwl(208,function(){return oCx(w,D,M)}):!1}; ip=function(w,D,M){g.X.call(this);this.position=FXx.clone();this.Ir=this.MO();this.AP=-2;this.timeCreated=Date.now();this.Kn=-1;this.KW=D;this.Jh=null;this.oP=!1;this.H8=null;this.opacity=-1;this.requestSource=M;this.z4L=!1;this.y9=function(){}; this.NE=function(){}; this.Fd=new esj;this.Fd.xU=w;this.Fd.T=w;this.Lc=!1;this.dg={W3:null,P3:null};this.vu=!0;this.dO=null;this.jM=this.Uu=!1;ZA().Y++;this.Jt=this.FT();this.zF=-1;this.lT=null;this.hasCompleted=this.Bj=!1;this.tQ=new HD;XrT(this.tQ);Gex(this);this.requestSource==1?gC(this.tQ,"od",1):gC(this.tQ,"od",0)}; Gex=function(w){w=w.Fd.xU;var D;if(D=w&&w.getAttribute)D=/-[a-z]/.test("googleAvInapp")?!1:sJK&&w.dataset?"googleAvInapp"in w.dataset:w.hasAttribute?w.hasAttribute("data-"+tPN()):!!w.getAttribute("data-"+tPN());D&&(Sj().V=!0)}; d8=function(w,D){D!=w.jM&&(w.jM=D,w=Sj(),D?w.Y++:w.Y>0&&w.Y--)}; auN=function(w,D){if(w.lT){if(D.getName()===w.lT.getName())return;w.lT.dispose();w.lT=null}D=D.create(w.Fd.T,w.tQ,w.Xr());if(D=D!=null&&D.observe()?D:null)w.lT=D}; vCC=function(w,D,M){if(!w.Jh||w.KW==-1||D.V===-1||w.Jh.V===-1)return 0;w=D.V-w.Jh.V;return w>M?0:w}; csR=function(w,D,M){if(w.lT){w.lT.YZ();var L=w.lT.B,Z=L.D,k=Z.T;if(L.Y!=null){var b=L.L;w.H8=new g.Sq(b.left-k.left,b.top-k.top)}k=w.Xi()?Math.max(L.T,L.W):L.T;b={};Z.volume!==null&&(b.volume=Z.volume);Z=w.WL(L);w.Jh=L;w.Sk(k,D,M,!1,b,Z,L.U)}}; Bla=function(w){if(w.oP&&w.dO){var D=Rk(w.tQ,"od")==1,M=Sj().T,L=w.dO,Z=w.lT?w.lT.getName():"ns",k=w.H8,b=new g.Jv(rE(M),M.getHeight());M=w.Xi();w={QCd:Z,H8:k,lyt:b,Xi:M,Sv:w.Jt.Sv,juE:D};if(D=L.V){D.YZ();Z=D.B;k=Z.D.T;var C=b=null;Z.Y!=null&&k&&(b=Z.L,b=new g.Sq(b.left-k.left,b.top-k.top),C=new g.Jv(k.right-k.left,k.bottom-k.top));Z=M?Math.max(Z.T,Z.W):Z.T;M={QCd:D.getName(),H8:b,lyt:C,Xi:M,juE:!1,Sv:Z}}else M=null;M&&UPr(L,w,M)}}; cVR=function(w,D,M){D&&(w.y9=D);M&&(w.NE=M)}; g.yH=function(){}; g.Ix=function(w){return{value:w,done:!1}}; BPC=function(){this.D=this.T=this.L=this.V=this.W=0}; f7S=function(w){var D={};var M=g.pk()-w.W;D=(D.ptlt=M,D);(M=w.V)&&(D.pnk=M);(M=w.L)&&(D.pnc=M);(M=w.D)&&(D.pnmm=M);(w=w.T)&&(D.pns=w);return D}; qhC=function(){Kk.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; j9=function(w){return T1(w.volume)&&w.volume>0}; g8=function(w,D,M,L){M=M===void 0?!0:M;L=L===void 0?function(){return!0}:L; return function(Z){var k=Z[w];if(Array.isArray(k)&&L(Z))return rVJ(k,D,M)}}; Rx=function(w,D){return function(M){return D(M)?M[w]:void 0}}; ejJ=function(w){return function(D){for(var M=0;M0?k[Z-1]+1:0,L+1).reduce(function(b,C){return b+C},0)})}; Xcl=function(){this.V=this.T=""}; TPN=function(){}; ns=function(w,D){var M={};if(w!==void 0)if(D!=null)for(var L in D){var Z=D[L];L in Object.prototype||Z!=null&&(M[L]=typeof Z==="function"?Z(w):w[Z])}else g.dC(M,w);return Dk(w8(new AA,M))}; uOx=function(){var w={};this.V=(w.vs=[1,0],w.vw=[0,1],w.am=[2,2],w.a=[4,4],w.f=[8,8],w.bm=[16,16],w.b=[32,32],w.avw=[0,64],w.avs=[64,0],w.pv=[256,256],w.gdr=[0,512],w.p=[0,1024],w.r=[0,2048],w.m=[0,4096],w.um=[0,8192],w.ef=[0,16384],w.s=[0,32768],w.pmx=[0,16777216],w.mut=[33554432,33554432],w.umutb=[67108864,67108864],w.tvoff=[134217728,134217728],w);this.T={};for(var D in this.V)this.V[D][1]>0&&(this.T[D]=0);this.L=0}; Fi=function(w,D){var M=w.V[D],L=M[1];w.L+=M[0];L>0&&w.T[D]==0&&(w.T[D]=1)}; ShN=function(w){var D=g.kO(w.V),M=0,L;for(L in w.T)g.xB(D,L)&&w.T[L]==1&&(M+=w.V[L][1],w.T[L]=2);return M}; Q8S=function(w){var D=0,M;for(M in w.T){var L=w.T[M];if(L==1||L==2)D+=w.V[M][1]}return D}; GF=function(){this.T=this.V=0}; sB=function(){ps.call(this);this.L=new Zk;this.jk=this.B=this.c_=0;this.U=-1;this.iW=new Zk;this.W=new Zk;this.T=new kn;this.Y=this.D=-1;this.y7=new Zk;this.EL=2E3;this.fV=new GF;this.Nd=new GF;this.bW=new GF}; ax=function(w,D,M){var L=w.jk;c2||M||w.U==-1||(L+=D-w.U);return L}; JVJ=function(){this.L=!1}; ve=function(w,D){this.L=!1;this.D=w;this.B=D;this.W=0}; ce=function(w,D){ve.call(this,w,D);this.G=[]}; zja=function(){}; Be=function(){}; q9=function(w,D,M,L){K3.call(this,w,D,M,L)}; r8=function(w,D,M){K3.call(this,null,w,D,M);this.U=w.isActive();this.G=0}; e9=function(w){return[w.top,w.left,w.bottom,w.right]}; Xi=function(w,D,M,L,Z,k){k=k===void 0?new Be:k;ip.call(this,D,M,L);this.Jj=Z;this.G6=0;this.rZ={};this.OH=new uOx;this.m1={};this.Wy="";this.bW=null;this.TU=!1;this.T=[];this.Ve=k.V();this.Y=k.L();this.D=null;this.L=-1;this.Md=this.B=void 0;this.V7=this.y7=0;this.W_=-1;this.EL=this.Nd=!1;this.c_=this.U=this.V=this.cR=this.mu=0;new kn;this.fV=this.jk=0;this.XE=-1;this.k8=0;this.G=g.vb;this.nV=[this.MO()];this.Sb=2;this.uN={};this.uN.pause="p";this.uN.resume="r";this.uN.skip="s";this.uN.mute="m";this.uN.unmute= "um";this.uN.exitfullscreen="ef";this.W=null;this.pV=this.iW=!1;this.oO=Math.floor(Date.now()/1E3-1704067200);this.Jc=0}; TF=function(w){w.hasCompleted=!0;w.k8!=0&&(w.k8=3)}; up=function(w){return w===void 0?w:Number(w)?Xk(w,3):0}; S9=function(w,D){return w.nV[D!=null&&DMath.max(1E4,w.L/3)?0:D);var M=w.G(w)||{};M=M.currentTime!==void 0?M.currentTime:w.y7;var L=M-w.y7,Z=0;L>=0?(w.V7+=D,w.fV+=Math.max(D-L,0),Z=Math.min(L,w.V7)):w.jk+=Math.abs(L);L!=0&&(w.V7=0);w.XE==-1&&L>0&&(w.XE=f3>=0?aQ()-f3:-1);w.y7=M;return Z}; Opk=function(w,D){uX(w.Y,function(M){return M.D==D.D})||w.Y.push(D)}; KMJ=function(w){var D=Cs(w.I4().T,1);return QH(w,D)}; QH=function(w,D,M){return D>=15E3?!0:w.Nd?(M===void 0?0:M)?!0:w.L>0?D>=w.L/2:w.W_>0?D>=w.W_:!1:!1}; m3J=function(w){var D=Xk(w.Jt.Sv,2),M=w.OH.L,L=w.Jt,Z=S9(w),k=up(Z.D),b=up(Z.Y),C=up(L.volume),l=Xk(Z.G,2),E=Xk(Z.V7,2),p=Xk(L.Sv,2),W=Xk(Z.nV,2),h=Xk(Z.W_,2);L=Xk(L.U1,2);var t=w.Qx().clone().round();w=w.lT&&w.lT.L?(w.lT?w.lT.L:null).clone().round():null;Z=We(Z,!1);return{h47:D,Dh:M,kI:k,Sr:b,hm:C,b1:l,vk:E,Sv:p,Et:W,hh:h,U1:L,position:t,sW:w,qx:Z}}; wWj=function(w,D){AVK(w.T,D,function(){return{h47:0,Dh:void 0,kI:-1,Sr:-1,hm:-1,b1:-1,vk:-1,Sv:-1,Et:-1,hh:-1,U1:-1,position:void 0,sW:void 0,qx:[]}}); w.T[D]=m3J(w)}; AVK=function(w,D,M){for(var L=w.length;L0?1:0;W.atos= bp(E.T);W.ssb=bp(E.pV,!1);W.amtos=H6I(E.T,!1);W.uac=w.mu;W.vpt=E.L.T;p=="nio"&&(W.nio=1,W.avms="nio");W.gmm="4";W.gdr=QH(w,E.L.T,!0)?1:0;W.efpf=w.Sb;if(p=="gsv"||p=="nis")p=w.lT,p.G>0&&(W.nnut=p.G);W.tcm=VyN(w);W.nmt=w.jk;W.bt=w.fV;W.pst=w.XE;W.vpaid=w.B;W.dur=w.L;W.vmtime=w.y7;W.is=w.OH.L;w.T.length>=1&&(W.i0=w.T[0].Dh,W.a0=[w.T[0].hm],W.c0=[w.T[0].Sv],W.ss0=[w.T[0].U1],p=w.T[0].position,k=w.T[0].sW,W.p0=p?e9(p):void 0,p&&k&&!ew(k,p)&&(W.cp0=e9(k)));w.T.length>=2&&(W.i1=w.T[1].Dh,W.a1=VH(w.T[1].kI, w.T[1].hm,w.T[1].Sr),W.c1=VH(w.T[1].b1,w.T[1].Sv,w.T[1].vk),W.ss1=VH(w.T[1].Et,w.T[1].U1,w.T[1].hh),p=w.T[1].position,k=w.T[1].sW,W.p1=p?e9(p):void 0,p&&k&&!ew(k,p)&&(W.cp1=e9(k)),W.mtos1=w.T[1].qx);w.T.length>=3&&(W.i2=w.T[2].Dh,W.a2=VH(w.T[2].kI,w.T[2].hm,w.T[2].Sr),W.c2=VH(w.T[2].b1,w.T[2].Sv,w.T[2].vk),W.ss2=VH(w.T[2].Et,w.T[2].U1,w.T[2].hh),p=w.T[2].position,k=w.T[2].sW,W.p2=p?e9(p):void 0,p&&k&&!ew(k,p)&&(W.cp2=e9(k)),W.mtos2=w.T[2].qx);w.T.length>=4&&(W.i3=w.T[3].Dh,W.a3=VH(w.T[3].kI,w.T[3].hm, w.T[3].Sr),W.c3=VH(w.T[3].b1,w.T[3].Sv,w.T[3].vk),W.ss3=VH(w.T[3].Et,w.T[3].U1,w.T[3].hh),p=w.T[3].position,k=w.T[3].sW,W.p3=p?e9(p):void 0,p&&k&&!ew(k,p)&&(W.cp3=e9(k)),W.mtos3=w.T[3].qx);W.cs=Q8S(w.OH);D&&(W.ic=ShN(w.OH),W.dvpt=E.L.V,W.dvs=EB(E.V,.5),W.dfvs=EB(E.V,1),W.davs=EB(E.T,.5),W.dafvs=EB(E.T,1),M&&(E.L.V=0,jJr(E.V),jJr(E.T)),w.TE()&&(W.dtos=E.c_,W.dav=E.B,W.dtoss=w.G6+1,M&&(E.c_=0,E.B=0,w.G6++)),W.dat=E.W.V,W.dft=E.y7.V,M&&(E.W.V=0,E.y7.V=0));W.ps=[C.W.width,C.W.height];W.bs=[rE(C.T),C.T.getHeight()]; W.scs=[C.D.width,C.D.height];W.dom=C.domain;w.cR&&(W.vds=w.cR);if(w.Y.length>0||w.Ve)D=g.GD(w.Y),w.Ve&&D.push(w.Ve),W.pings=g.yR(D,function(h){return h.toString()}); D=g.yR(g.ox(w.Y,function(h){return h.Y()}),function(h){return h.getId()}); gxI(D);W.ces=D;w.V&&(W.vmer=w.V);w.U&&(W.vmmk=w.U);w.c_&&(W.vmiec=w.c_);W.avms=w.lT?w.lT.getName():"ns";w.lT&&g.dC(W,w.lT.kZ());L?(W.c=Xk(w.Jt.Sv,2),W.ss=Xk(w.Jt.U1,2)):W.tth=aQ()-ZKr;W.mc=Xk(E.V7,2);W.nc=Xk(E.G,2);W.mv=up(E.Y);W.nv=up(E.D);W.lte=Xk(w.AP,2);L=S9(w,Z);We(E);W.qmtos=We(L);W.qnc=Xk(L.G,2);W.qmv=up(L.Y);W.qnv=up(L.D);W.qas=L.D>0?1:0;W.qi=w.Wy;W.avms||(W.avms="geo");W.psm=E.fV.T;W.psv=E.fV.getValue();W.psfv=E.Nd.getValue();W.psa=E.bW.getValue();l=rGx(l.tQ);l.length&&(W.veid=l);w.W&&g.dC(W, f7S(w.W));W.avas=w.PD();W.vs=w.vL();W.co=klK(w);W.tm=E.Jc;W.tu=E.Md;return W}; DKj=function(w,D){if(g.xB(bKr,D))return!0;var M=w.rZ[D];return M!==void 0?(w.rZ[D]=!0,!M):!1}; klK=function(w){var D=w.Jc.toString(10).padStart(2,"0");D=""+w.oO+D;w.Jc<99&&w.Jc++;return D}; CYG=function(){this.T={};var w=pR();Pe(this,w,document);var D=YrR();try{if("1"==D){for(var M=w.parent;M!=w.top;M=M.parent)Pe(this,M,M.document);Pe(this,w.top,w.top.document)}}catch(L){}}; YrR=function(){var w=document.documentElement;try{if(!YC(pR().top))return"2";var D=[],M=pR(w.ownerDocument);for(w=M;w!=M.top;w=w.parent)if(w.frameElement)D.push(w.frameElement);else break;return D&&D.length!=0?"1":"0"}catch(L){return"2"}}; Pe=function(w,D,M){hI(M,"mousedown",function(){return l2j(w)},301); hI(D,"scroll",function(){return EmS(w)},302); hI(M,"touchmove",function(){return pWl(w)},303); hI(M,"mousemove",function(){return WvR(w)},304); hI(M,"keydown",function(){return hhK(w)},305)}; l2j=function(w){g.mr(w.T,function(D){D.L>1E5||++D.L})}; EmS=function(w){g.mr(w.T,function(D){D.T>1E5||++D.T})}; pWl=function(w){g.mr(w.T,function(D){D.T>1E5||++D.T})}; hhK=function(w){g.mr(w.T,function(D){D.V>1E5||++D.V})}; WvR=function(w){g.mr(w.T,function(D){D.D>1E5||++D.D})}; trT=function(){this.T=[];this.V=[]}; OB=function(w,D){return g.y1(w.T,function(M){return M.Wy==D})}; $Kx=function(w,D){return D?g.y1(w.T,function(M){return M.Fd.xU==D}):null}; iKN=function(w,D){return g.y1(w.V,function(M){return M.UD()==2&&M.Wy==D})}; mS=function(){var w=Ks;return w.T.length==0?w.V:w.V.length==0?w.T:g.F7(w.V,w.T)}; dKK=function(w,D){w=D.UD()==1?w.T:w.V;var M=d3(w,function(L){return L==D}); return M!=-1?(w.splice(M,1),D.lT&&D.lT.unobserve(),D.dispose(),!0):!1}; y9I=function(w){var D=Ks;if(dKK(D,w)){switch(w.UD()){case 0:var M=function(){return null}; case 2:M=function(){return iKN(D,w.Wy)}; break;case 1:M=function(){return OB(D,w.Wy)}}for(var L=M();L;L=M())dKK(D,L)}}; I2r=function(w){var D=Ks;w=g.ox(w,function(M){return!$Kx(D,M.Fd.xU)}); D.T.push.apply(D.T,g.tG(w))}; UKS=function(w){var D=[];g.PQ(w,function(M){uX(Ks.T,function(L){return L.Fd.xU===M.Fd.xU&&L.Wy===M.Wy})||(Ks.T.push(M),D.push(M))})}; AI=function(){this.T=this.V=null}; xKa=function(w,D){function M(L,Z){D(L,Z)} if(w.V==null)return!1;w.T=g.y1(w.V,function(L){return L!=null&&L.OA()}); w.T&&(w.T.init(M)?Yij(w.T.T):D(w.T.T.Hf(),w.T));return w.T!=null}; w1=function(w){w=NBK(w);ml.call(this,w.length?w[w.length-1]:new VU(sg,0));this.L=w;this.V=null}; NBK=function(w){if(!w.length)return[];w=(0,g.ox)(w,function(M){return M!=null&&M.pU()}); for(var D=1;DM.time?D:M},w[0])}; ZU=function(w){w=w===void 0?sg:w;ml.call(this,new VU(w,2))}; kI=function(){var w=Rhl();VU.call(this,sg.top,w,"geo")}; Rhl=function(){ZA();var w=Sj();return w.L||w.V?0:2}; oml=function(){}; bW=function(){this.done=!1;this.T={MY:0,yX:0,jbt:0,FB:0,K3:-1,ZY:0,nX:0,Pp:0,kkL:0};this.W=null;this.Y=!1;this.L=null;this.G=0;this.V=new z1(this)}; CJ=function(){var w=YI;w.Y||(w.Y=!0,nmK(w,function(){return w.D.apply(w,g.tG(g.rR.apply(0,arguments)))}),w.D())}; FvS=function(){xC(oml);var w=xC(AI);w.T!=null&&w.T.T?Yij(w.T.T):Sj().update(sg)}; lW=function(w,D,M){if(!w.done&&(w.V.cancel(),D.length!=0)){w.L=null;try{FvS();var L=aQ();ZA().W=L;if(xC(AI).T!=null)for(var Z=0;Z=0?aQ()-v2:-1,C=aQ();Z.T.K3==-1&&(b=C);var l=Sj(),E=ZA(),p=nW(E.tQ),W=mS();try{if(W.length>0){var h=l.T;h&&(p.bs=[rE(h),h.getHeight()]);var t=l.W;t&&(p.ps=[t.width,t.height]);sg.screen&&(p.scs=[sg.screen.width,sg.screen.height])}else p.url=encodeURIComponent(sg.location.href.substring(0,512)),k.referrer&&(p.referrer=encodeURIComponent(k.referrer.substring(0,512))); p.tt=b;p.pt=v2;p.bin=E.V;sg.google_osd_load_pub_page_exp!==void 0&&(p.olpp=sg.google_osd_load_pub_page_exp);p.deb=[1,Z.T.MY,Z.T.yX,Z.T.FB,Z.T.K3,0,Z.V.V,Z.T.ZY,Z.T.nX,Z.T.Pp,Z.T.kkL,-1].join(";");p.tvt=s0R(Z,C);l.V&&(p.inapp=1);if(sg!==null&&sg!=sg.top){W.length>0&&(p.iframe_loc=encodeURIComponent(sg.location.href.substring(0,512)));var d=l.G;p.is=[rE(d),d.getHeight()]}}catch(N){p.error=1}YI.L=p}h=g.$O(YI.L);t=ZA().T;Rk(t.L,"prf")==1?(d=new DA,Z=t.T,k=0,Z.T>-1&&(k=Z.L.T.now()-Z.T),d=lY(d,1,Eh(Z.D+ k),0),Z=t.T,d=lY(d,5,tV(Z.T>-1?Z.V+1:Z.V),0),d=lY(d,2,Hc(t.V.T.L()),"0"),d=lY(d,3,Hc(t.V.T.V()),"0"),t=lY(d,4,Hc(t.V.T.T()),"0"),d={},t=(d.pf=g.oJ(t.L()),d)):t={};g.dC(h,t);g.dC(D,L,M,h,w())}])}; c9l=function(){var w=vmG||sg;if(!w)return"";var D=[];if(!w.location||!w.location.href)return"";D.push("url="+encodeURIComponent(w.location.href.substring(0,512)));w.document&&w.document.referrer&&D.push("referrer="+encodeURIComponent(w.document.referrer.substring(0,512)));return D.join("&")}; EL=function(){var w="youtube.player.web_20250819_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250819_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250819_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250819_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),D;if(((D=w)==null?void 0:D.length)==2)return w[1];w="youtube.player.web_20250819_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var M;return((M=w)==null?void 0:M.length)==3?"20"+w[1]+w[2]:null}; BBI=function(){return"av.default_js".includes("ima_html5_sdk")?{Xt:"ima",by:null}:"av.default_js".includes("ima_native_sdk")?{Xt:"nima",by:null}:"av.default_js".includes("admob-native-video-javascript")?{Xt:"an",by:null}:"youtube.player.web_20250819_22_RC00".includes("cast_js_sdk")?{Xt:"cast",by:EL()}:"youtube.player.web_20250819_22_RC00".includes("youtube.player.web")?{Xt:"yw",by:EL()}:"youtube.player.web_20250819_22_RC00".includes("outstream_web_client")?{Xt:"out",by:EL()}:"youtube.player.web_20250819_22_RC00".includes("drx_rewarded_web")? {Xt:"r",by:EL()}:"youtube.player.web_20250819_22_RC00".includes("gam_native_web_video")?{Xt:"n",by:EL()}:"youtube.player.web_20250819_22_RC00".includes("admob_interstitial_video")?{Xt:"int",by:EL()}:{Xt:"j",by:null}}; hk=function(w,D){var M={sv:"968"};pJ!==null&&(M.v=pJ);M.cb=f2j;M.nas=Ks.T.length;M.msg=w;D!==void 0&&(w=qrJ(D))&&(M.e=Wt[w]);return M}; tk=function(w){return Gk(w,"custom_metric_viewable")}; qrJ=function(w){var D=tk(w)?"custom_metric_viewable":w.toLowerCase();return pW(JI,function(M){return M==D})}; r9C=function(){this.T=void 0;this.V=!1;this.L=0;this.D=-1;this.W="tos"}; TBS=function(w){try{var D=w.split(",");return D.length>g.kO(ehk).length?null:Ui(D,function(M,L){L=L.toLowerCase().split("=");if(L.length!=2||XWj[L[0]]===void 0||!XWj[L[0]](L[1]))throw Error("Entry ("+L[0]+", "+L[1]+") is invalid.");M[L[0]]=L[1];return M},{})}catch(M){return null}}; uCC=function(w,D){if(w.T==void 0)return 0;switch(w.W){case "mtos":return w.V?lp(D.T,w.T):lp(D.V,w.T);case "tos":return w.V?Cs(D.T,w.T):Cs(D.V,w.T)}return 0}; $I=function(w,D,M,L){ve.call(this,D,L);this.G=w;this.U=M}; iW=function(){}; d1=function(w){ve.call(this,"fully_viewable_audible_half_duration_impression",w)}; yN=function(w){this.T=w}; IP=function(w,D){ve.call(this,w,D)}; UL=function(w){ce.call(this,"measurable_impression",w)}; xI=function(){yN.apply(this,arguments)}; Np=function(w,D,M){r8.call(this,w,D,M)}; Ht=function(w){w=w===void 0?sg:w;ml.call(this,new VU(w,2))}; jk=function(w,D,M){r8.call(this,w,D,M)}; g1=function(w){w=w===void 0?sg:w;ml.call(this,new VU(w,2))}; RP=function(){VU.call(this,sg,2,"mraid");this.fV=0;this.V7=this.nV=!1;this.G=null;this.V=m1N(this.L);this.D.T=new q1(0,0,0,0);this.Jc=!1}; oP=function(w,D,M){w.TP("addEventListener",D,M)}; zhG=function(w){ZA().D=!!w.TP("isViewable");oP(w,"viewableChange",SrC);w.TP("getState")==="loading"?oP(w,"ready",Q0C):J9K(w)}; J9K=function(w){typeof w.V.Ht.AFMA_LIDAR==="string"?(w.nV=!0,VrC(w)):(w.V.compatibility=3,w.G="nc",w.fail("w"))}; VrC=function(w){w.V7=!1;var D=Rk(ZA().tQ,"rmmt")==1,M=!!w.TP("isViewable");(D?!M:1)&&HC().setTimeout(G1(524,function(){w.V7||(PYN(w),sR(540,Error()),w.G="mt",w.fail("w"))}),500); OKI(w);oP(w,w.V.Ht.AFMA_LIDAR,KvS)}; OKI=function(w){var D=Rk(ZA().tQ,"sneio")==1,M=w.V.Ht.AFMA_LIDAR_EXP_1!==void 0,L=w.V.Ht.AFMA_LIDAR_EXP_2!==void 0;(D=D&&L)&&(w.V.Ht.AFMA_LIDAR_EXP_2=!0);M&&(w.V.Ht.AFMA_LIDAR_EXP_1=!D)}; PYN=function(w){w.TP("removeEventListener",w.V.Ht.AFMA_LIDAR,KvS);w.nV=!1}; mKl=function(w,D){if(w.TP("getState")==="loading")return new g.Jv(-1,-1);D=w.TP(D);if(!D)return new g.Jv(-1,-1);w=parseInt(D.width,10);D=parseInt(D.height,10);return isNaN(w)||isNaN(D)?new g.Jv(-1,-1):new g.Jv(w,D)}; Q0C=function(){try{var w=xC(RP);w.TP("removeEventListener","ready",Q0C);J9K(w)}catch(D){sR(541,D)}}; KvS=function(w,D){try{var M=xC(RP);M.V7=!0;var L=w?new q1(w.y,w.x+w.width,w.y+w.height,w.x):new q1(0,0,0,0);var Z=aQ(),k=JA();var b=new qM(Z,k,M);b.T=L;b.volume=D;M.Uo(b)}catch(C){sR(542,C)}}; SrC=function(w){var D=ZA(),M=xC(RP);w&&!D.D&&(D.D=!0,M.Jc=!0,M.G&&M.fail("w",!0))}; nJ=function(){this.isInitialized=!1;this.T=this.V=null;var w={};this.G=(w.start=this.dY,w.firstquartile=this.x0,w.midpoint=this.rY,w.thirdquartile=this.Sf,w.complete=this.gY,w.error=this.FI,w.pause=this.Yr,w.resume=this.Lj,w.skip=this.jf,w.viewable_impression=this.mf,w.mute=this.WR,w.unmute=this.WR,w.fullscreen=this.M9,w.exitfullscreen=this.f$,w.fully_viewable_audible_half_duration_impression=this.mf,w.measurable_impression=this.mf,w.abandon=this.Yr,w.engagedview=this.mf,w.impression=this.mf,w.creativeview= this.mf,w.progress=this.WR,w.custom_metric_viewable=this.mf,w.bufferstart=this.Yr,w.bufferfinish=this.Lj,w.audio_measurable=this.mf,w.audio_audible=this.mf,w);w={};this.U=(w.overlay_resize=this.Gc,w.abandon=this.UO,w.close=this.UO,w.collapse=this.UO,w.overlay_unmeasurable_impression=function(D){return zF(D,"overlay_unmeasurable_impression",JA())},w.overlay_viewable_immediate_impression=function(D){return zF(D,"overlay_viewable_immediate_impression",JA())},w.overlay_unviewable_impression=function(D){return zF(D, "overlay_unviewable_impression",JA())},w.overlay_viewable_end_of_session_impression=function(D){return zF(D,"overlay_viewable_end_of_session_impression",JA())},w); ZA().V=3;A9C(this);this.L=null}; Fe=function(w,D,M,L){w=w.RE(null,L,!0,D);w.D=M;I2r([w]);return w}; wKj=function(w,D,M){sTK(D);var L=w.T;g.PQ(D,function(Z){var k=g.yR(Z.criteria,function(b){var C=TBS(b);if(C==null)b=null;else if(b=new r9C,C.visible!=null&&(b.T=C.visible/100),C.audible!=null&&(b.V=C.audible==1),C.time!=null){var l=C.timetype=="mtos"?"mtos":"tos",E=TRI(C.time,"%")?"%":"ms";C=parseInt(C.time,10);E=="%"&&(C/=100);b.setTime(C,E,l)}return b}); uX(k,function(b){return b==null})||Opk(M,new $I(Z.id,Z.event,k,L))})}; Dnl=function(){var w=[],D=ZA();w.push(xC(kI));Rk(D.tQ,"mvp_lv")&&w.push(xC(RP));D=[new Ht,new g1];D.push(new w1(w));D.push(new ZU(sg));return D}; M5k=function(w){if(!w.isInitialized){w.isInitialized=!0;try{var D=aQ(),M=ZA(),L=Sj();v2=D;M.L=79463069;w.V!=="o"&&(vmG=KrK(sg));if($cS()){YI.T.yX=0;YI.T.K3=aQ()-D;var Z=Dnl(),k=xC(AI);k.V=Z;xKa(k,function(){GX()})?YI.done||(GlI(),P2(k.T.T,w),CJ()):L.L?GX():CJ()}else sL=!0}catch(b){throw Ks.reset(),b; }}}; vt=function(w){YI.V.cancel();aP=w;YI.done=!0}; ct=function(w){if(w.V)return w.V;var D=xC(AI).T;if(D)switch(D.getName()){case "nis":w.V="n";break;case "gsv":w.V="m"}w.V||(w.V="h");return w.V}; Bt=function(w,D,M){if(w.T==null)return D.cR|=4,!1;w=LFk(w.T,M,D);D.cR|=w;return w==0}; GX=function(){var w=[new ZU(sg)],D=xC(AI);D.V=w;xKa(D,function(){vt("i")})?YI.done||(GlI(),CJ()):vt("i")}; ZhI=function(w,D){if(!w.TU){var M=zF(w,"start",JA());M=w.Jj.T(M).T;var L={id:"lidarv"};L.r=D;L.sv="968";pJ!==null&&(L.v=pJ);hA(M,function(Z,k){return L[Z]=Z=="mtos"||Z=="tos"?k:encodeURIComponent(k)}); D=c9l();hA(D,function(Z,k){return L[Z]=encodeURIComponent(k)}); D="//pagead2.googlesyndication.com/pagead/gen_204?"+Dk(w8(new AA,L));ysS(D);w.TU=!0}}; Xe=function(w,D,M){lW(YI,[w],!JA());wWj(w,M);M!=4&&AVK(w.nV,M,w.MO);return zF(w,D,JA())}; A9C=function(w){a2x(function(){var D=k5r();w.V!=null&&(D.sdk=w.V);var M=xC(AI);M.T!=null&&(D.avms=M.T.getName());return D})}; bha=function(w,D,M,L){var Z=$Kx(Ks,M);Z!==null&&Z.Wy!==D&&(w.kC(Z),Z=null);Z||(D=w.RE(M,aQ(),!1,D),Ks.V.length==0&&(ZA().L=79463069),UKS([D]),Z=D,Z.D=ct(w),L&&(Z.bW=L));return Z}; YuK=function(w,D){var M=w[D];M!==void 0&&M>0&&(w[D]=Math.floor(M*1E3))}; k5r=function(){var w=Sj(),D={},M={},L={};return Object.assign({},(D.sv="968",D),pJ!==null&&(M.v=pJ,M),(L["if"]=w.L?"1":"0",L.nas=String(Ks.T.length),L))}; TX=function(w){ve.call(this,"audio_audible",w)}; uW=function(w){ce.call(this,"audio_measurable",w)}; Sk=function(){yN.apply(this,arguments)}; QN=function(){}; C0S=function(w){this.T=w}; LFk=function(w,D,M){w=w.V();if(typeof w==="function"){var L={};var Z={};L=Object.assign({},pJ!==null&&(L.v=pJ,L),(Z.sv="968",Z.cb=f2j,Z.e=loj(D),Z));Z=zF(M,D,JA());g.dC(L,Z);M.m1[D]=Z;L=M.UD()==2?dPS(L).join("&"):M.Jj.T(L).T;try{return w(M.Wy,L,D),0}catch(k){return 2}}else return 1}; loj=function(w){var D=tk(w)?"custom_metric_viewable":w;w=pW(JI,function(M){return M==D}); return Wt[w]}; Jk=function(){nJ.call(this);this.Y=null;this.W=!1;this.D="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; EdG=function(w,D,M){M=M.opt_configurable_tracking_events;w.T!=null&&Array.isArray(M)&&wKj(w,M,D)}; pKR=function(w,D,M){var L=OB(Ks,D);L||(L=M.opt_nativeTime||-1,L=Fe(w,D,ct(w),L),M.opt_osdId&&(L.bW=M.opt_osdId));return L}; WFC=function(w,D,M){var L=OB(Ks,D);L||(L=Fe(w,D,"n",M.opt_nativeTime||-1));return L}; hzj=function(w,D){var M=OB(Ks,D);M||(M=Fe(w,D,"h",-1));return M}; t5k=function(w){ZA();switch(ct(w)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; dnC=function(w,D,M,L){M=M===void 0?{}:M;var Z={};g.dC(Z,{opt_adElement:void 0,opt_fullscreen:void 0},M);var k=w.Ig(D,M);M=k?k.Jj:w.CF();if(Z.opt_bounds)return M.T(hk("ol",L));if(L!==void 0)if(qrJ(L)!==void 0)if(sL)w=hk("ue",L);else if(M5k(w),aP=="i")w=hk("i",L),w["if"]=0;else if(D=w.Ig(D,Z)){b:{aP=="i"&&(D.Lc=!0);k=Z.opt_fullscreen;k!==void 0&&d8(D,!!k);var b;if(k=!Sj().V)(k=vD(g.qc(),"CrKey")&&!(vD(g.qc(),"CrKey")&&vD(g.qc(),"SmartSpeaker"))||vD(g.qc(),"PlayStation")||vD(g.qc(),"Roku")||LXR()||vD(g.qc(), "Xbox"))||(k=g.qc(),k=vD(k,"AppleTV")||vD(k,"Apple TV")||vD(k,"CFNetwork")||vD(k,"tvOS")),k||(k=g.qc(),k=vD(k,"sdk_google_atv_x86")||vD(k,"Android TV")),k=!k;k&&(HC(),k=bo(QU)===0);if(b=k){switch(D.UD()){case 1:ZhI(D,"pv");break;case 2:w.bM(D)}vt("pv")}k=L.toLowerCase();if(b=!b)b=Rk(ZA().tQ,"ssmol")&&k==="loaded"?!1:g.xB($nK,k);if(b&&D.k8==0){aP!="i"&&(YI.done=!1);b=Z!==void 0?Z.opt_nativeTime:void 0;f3=b=typeof b==="number"?b:aQ();D.oP=!0;var C=JA();D.k8=1;D.rZ={};D.rZ.start=!1;D.rZ.firstquartile= !1;D.rZ.midpoint=!1;D.rZ.thirdquartile=!1;D.rZ.complete=!1;D.rZ.resume=!1;D.rZ.pause=!1;D.rZ.skip=!1;D.rZ.mute=!1;D.rZ.unmute=!1;D.rZ.viewable_impression=!1;D.rZ.measurable_impression=!1;D.rZ.fully_viewable_audible_half_duration_impression=!1;D.rZ.fullscreen=!1;D.rZ.exitfullscreen=!1;D.G6=0;C||(D.I4().U=b);lW(YI,[D],!C)}(b=D.uN[k])&&Fi(D.OH,b);Rk(ZA().tQ,"fmd")||g.xB(ihT,k)&&D.Ve&&D.Ve.V(D,null);switch(D.UD()){case 1:var l=tk(k)?w.G.custom_metric_viewable:w.G[k];break;case 2:l=w.U[k]}if(l&&(L=l.call(w, D,Z,L),Rk(ZA().tQ,"fmd")&&g.xB(ihT,k)&&D.Ve&&D.Ve.V(D,null),L!==void 0)){Z=hk(void 0,k);g.dC(Z,L);L=Z;break b}L=void 0}D.k8==3&&w.kC(D);w=L}else w=hk("nf",L);else w=void 0;else sL?w=hk("ue"):k?(w=hk(),g.dC(w,Mrk(k,!0,!1,!1))):w=hk("nf");return typeof w==="string"?M.T():M.T(w)}; yiI=function(w,D){D&&(w.D=D)}; IoK=function(w){var D={};return D.viewability=w.T,D.googleViewability=w.V,D}; UnK=function(w,D,M){M=M===void 0?{}:M;w=dnC(xC(Jk),D,M,w);return IoK(w)}; zX=function(w){var D=g.rR.apply(1,arguments).filter(Boolean).join("&");if(!D)return w;var M=w.match(/[?&]adurl=/);return M?w.slice(0,M.index+1)+D+"&"+w.slice(M.index+1):w+(w.indexOf("?")<0?"?":"&")+D}; VN=function(w,D){return D?"&"+w+"="+encodeURIComponent(D):""}; xnj=function(w){var D=w.url;w=w.VI7;this.V=D;this.D=w;this.L=(new Date).getTime()-17040672E5;this.T={};for(var M=/[?&]([^&=]+)=([^&]*)/g;w=M.exec(D);)this.T[w[1]]=w[2]}; NDC=function(w){w=w.D;if(!w)return"";var D=VN("uap",w.platform)+VN("uapv",w.platformVersion)+VN("uafv",w.uaFullVersion)+VN("uaa",w.architecture)+VN("uam",w.model)+VN("uab",w.bitness);w.fullVersionList&&(D+="&uafvl="+encodeURIComponent(w.fullVersionList.map(function(M){return encodeURIComponent(M.brand)+";"+encodeURIComponent(M.version)}).join("|"))); w.wow64!=null&&(D+="&uaw="+Number(w.wow64));return D.slice(1)}; gdI=function(w,D,M,L,Z){var k=window;var b=b===void 0?!1:b;var C;M?C=(b===void 0?0:b)?"//ep1.adtrafficquality.google/bg/"+G7(M)+".js":"//pagead2.googlesyndication.com/bg/"+G7(M)+".js":C="";b=b===void 0?!1:b;M=k.document;var l={};D&&(l._scs_=D);l._bgu_=C;l._bgp_=L;l._li_="v_h.3.0.0.0";Z&&(l._upb_=Z);(D=k.GoogleTyFxhY)&&typeof D.push=="function"||(D=k.GoogleTyFxhY=[]);D.push(l);D=LR(M).createElement("SCRIPT");D.type="text/javascript";D.async=!0;w=(b===void 0?0:b)?g.mx(HhJ,G7(w)+".js"):g.mx(jXT,G7(w)+ ".js");g.UQ(D,w);(k=(k.GoogleTyFxhYEET||{})[D.src])?k():M.getElementsByTagName("head")[0].appendChild(D)}; RzJ=function(){try{var w,D;return!!((w=window)==null?0:(D=w.top)==null?0:D.location.href)&&!1}catch(M){return!0}}; Pt=function(w,D,M){M=M===void 0?Error():M;var L=Error.call(this);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.code=w;D+=":";M instanceof Error?(this.message=D+M.message,this.stack=M.stack||""):(this.message=D+String(M),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; KJ=function(){var w=odr();w=w===void 0?"bevasrsg":w;return new Promise(function(D){var M=window===window.top?window:RzJ()?window:window.top,L=M[w],Z;((Z=L)==null?0:Z.bevasrs)?D(new OL(L.bevasrs)):(L||(L={},L=(L.nqfbel=[],L),M[w]=L),L.nqfbel.push(function(k){D(new OL(k))}))})}; ndl=function(w){var D={c:w.k7,e:w.Iy,mc:w.gE,me:w.Fe};w.CD&&(D.co={c:w.CD.bQ,a:w.CD.Pv,s:w.CD.Bu});return D}; m_=function(w){g.X.call(this);this.wpc=w}; OL=function(w){g.X.call(this);var D=this;this.md=w;this.L="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.V=void 0;this.Jq=this.md.p;this.D=this.S6.bind(this);this.addOnDisposeCallback(function(){return void FFk(D)})}; G5K=function(w){var D;return g.B(function(M){if(M.T==1){if(!w.md.wpc)throw new Pt(30,"NWA");return w.T?M.return(w.T):g.c(M,w.md.wpc(),2)}D=M.V;w.T=new m_(D);return M.return(w.T)})}; FFk=function(w){w.V!==void 0&&(w.L.forEach(function(D){var M;(M=w.V)==null||M.removeEventListener(D,w.D)}),w.V=void 0)}; sXJ=function(w){var D=D===void 0?51:D;var M=[];jr(w,Ak,6).forEach(function(L){nK(L,2)<=D&&M.push(nK(L,1))}); return M}; aoN=function(w){var D=D===void 0?51:D;var M=[];jr(w,Ak,6).forEach(function(L){nK(L,2)>D&&M.push(nK(L,1))}); return M}; vdK=function(w){w.then(function(){},function(){})}; wI=function(){g.X.apply(this,arguments);this.V=1}; Dz=function(w){return{fieldType:2,fieldName:w}}; g.Mj=function(w){return{fieldType:3,fieldName:w}}; ciN=function(w){this.T=w;w.xY("/client_streamz/bg/frs",g.Mj("mk"))}; BDj=function(w){this.T=w;w.xY("/client_streamz/bg/wrl",g.Mj("mn"),Dz("ac"),Dz("sc"),g.Mj("rk"),g.Mj("mk"))}; foG=function(w){this.T=w;w.CS("/client_streamz/bg/ec",g.Mj("en"),g.Mj("mk"))}; quj=function(w){this.T=w;w.xY("/client_streamz/bg/el",g.Mj("en"),g.Mj("mk"))}; riK=function(w){this.T=w;w.CS("/client_streamz/bg/cec",Dz("ec"),g.Mj("mk"))}; ezJ=function(w){this.T=w;w.CS("/client_streamz/bg/po/csc",Dz("cs"),g.Mj("mk"))}; XKx=function(w){this.T=w;w.CS("/client_streamz/bg/po/ctav",g.Mj("av"),g.Mj("mk"))}; TDa=function(w){this.T=w;w.CS("/client_streamz/bg/po/cwsc",g.Mj("su"),g.Mj("mk"))}; uyk=function(w){this.B_=Sy(w)}; SuS=function(w,D){return n1r(w,D,mcR)}; La=function(w){this.B_=Sy(w)}; Zz=function(w){this.B_=Sy(w)}; kR=function(w){this.B_=Sy(w)}; bJ=function(w){this.B_=Sy(w)}; YR=function(w){this.B_=Sy(w)}; Ca=function(w){this.B_=Sy(w)}; QXC=function(w){this.B_=Sy(w)}; V5K=function(w){var D=new Ca;D=BW(D,1,w.V);var M=Jir(w);D=n1r(D,M,E1j);M=[];for(var L=[],Z=g.x(w.T.keys()),k=Z.next();!k.done;k=Z.next())L.push(k.value.split(","));for(Z=0;Z>>31)&4294967295;W=Z[0];var d=Z[1],N=Z[2],n=Z[3],v=Z[4];for(t=0;t<80;t++){if(t<40)if(t<20){var G=n^d&(N^n);var f=1518500249}else G=d^N^n,f=1859775393;else t<60?(G=d&N|n&(d|N),f=2400959708):(G=d^N^n,f=3395469782);G=((W<<5|W>>>27)&4294967295)+G+v+f+h[t]&4294967295;v=n;n=N;N=(d<<30|d>>>2)&4294967295;d=W;W=G}Z[0]=Z[0]+W&4294967295;Z[1]=Z[1]+d&4294967295;Z[2]= Z[2]+N&4294967295;Z[3]=Z[3]+n&4294967295;Z[4]=Z[4]+v&4294967295} function M(W,h){if(typeof W==="string"){W=unescape(encodeURIComponent(W));for(var t=[],d=0,N=W.length;d=56;t--)k[t]=h&255,h>>>=8;D(k);for(t=h=0;t<5;t++)for(var d=24;d>=0;d-=8)W[h++]=Z[t]>>d&255;return W} for(var Z=[],k=[],b=[],C=[128],l=1;l<64;++l)C[l]=0;var E,p;w();return{reset:w,update:M,digest:L,jQ:function(){for(var W=L(),h="",t=0;t1)));b=b.next)Z||(k=b);Z&&(M.T==0&&L==1?SRI(M,D):(k?(L=k,L.next==M.D&&(M.D=L),L.next=L.next.next):QQG(M),JAJ(M,Z,3,D)))}w.L=null}else gi(w,3,D)}; Gy=function(w,D){w.V||w.T!=2&&w.T!=3||zoN(w);w.D?w.D.next=D:w.V=D;w.D=D}; VjI=function(w,D,M,L){var Z=oV(null,null,null);Z.T=new g.RV(function(k,b){Z.L=D?function(C){try{var l=D.call(L,C);k(l)}catch(E){b(E)}}:k; Z.V=M?function(C){try{var l=M.call(L,C);l===void 0&&C instanceof aV?b(C):k(l)}catch(E){b(E)}}:b}); Z.T.L=w;Gy(w,Z);return Z.T}; gi=function(w,D,M){w.T==0&&(w===M&&(D=3,M=new TypeError("Promise cannot resolve to itself")),w.T=1,eoa(M,w.W55,w.K5k,w)||(w.G=M,w.T=D,w.L=null,zoN(w),D!=3||M instanceof aV||PXJ(w,M)))}; eoa=function(w,D,M,L){if(w instanceof g.RV)return ukK(w,D,M,L),!0;if(w)try{var Z=!!w.$goog_Thenable}catch(b){Z=!1}else Z=!1;if(Z)return w.then(D,M,L),!0;if(g.ZZ(w))try{var k=w.then;if(typeof k==="function")return O3l(w,k,D,M,L),!0}catch(b){return M.call(L,b),!0}return!1}; O3l=function(w,D,M,L,Z){function k(l){C||(C=!0,L.call(Z,l))} function b(l){C||(C=!0,M.call(Z,l))} var C=!1;try{D.call(w,b,k)}catch(l){k(l)}}; zoN=function(w){w.Y||(w.Y=!0,g.j4(w.mQ,w))}; QQG=function(w){var D=null;w.V&&(D=w.V,w.V=D.next,D.next=null);w.V||(w.D=null);return D}; JAJ=function(w,D,M,L){if(M==3&&D.V&&!D.D)for(;w&&w.W;w=w.L)w.W=!1;if(D.T)D.T.L=null,KlG(D,M,L);else try{D.D?D.L.call(D.context):KlG(D,M,L)}catch(Z){mMG.call(null,Z)}sQl(rAK,D)}; KlG=function(w,D,M){D==2?w.L.call(w.context,M):w.V&&w.V.call(w.context,M)}; PXJ=function(w,D){w.W=!0;g.j4(function(){w.W&&mMG.call(null,D)})}; aV=function(w){tx.call(this,w)}; g.vj=function(w,D){g.Ej.call(this);this.LP=w||1;this.EJ=D||g.KI;this.GS=(0,g.Ck)(this.Oy_,this);this.wy=g.pk()}; g.cj=function(w,D,M){if(typeof w==="function")M&&(w=(0,g.Ck)(w,M));else if(w&&typeof w.handleEvent=="function")w=(0,g.Ck)(w.handleEvent,w);else throw Error("Invalid listener argument");return Number(D)>2147483647?-1:g.KI.setTimeout(w,D||0)}; Bj=function(w,D){var M=null;return(new g.RV(function(L,Z){M=g.cj(function(){L(D)},w); M==-1&&Z(Error("Failed to schedule timer."))})).V8(function(L){g.KI.clearTimeout(M); throw L;})}; g.fv=function(w){g.X.call(this);this.G=w;this.D=0;this.L=100;this.W=!1;this.V=new Map;this.Y=new Set;this.flushInterval=3E4;this.T=new g.vj(this.flushInterval);this.T.listen("tick",this.Qt,!1,this);g.T(this,this.T)}; AAC=function(w){w.T.enabled||w.T.start();w.D++;w.D>=w.L&&w.Qt()}; weN=function(w,D){return w.Y.has(D)?void 0:w.V.get(D)}; D9J=function(w){for(var D=0;D2?w.T.statusText:""}catch(M){D=""}w.D=D+" ["+w.getStatus()+"]";WST(w)}}finally{uj(w)}}}; uj=function(w,D){if(w.T){w.Y&&(clearTimeout(w.Y),w.Y=null);var M=w.T;w.T=null;D||w.dispatchEvent("ready");try{M.onreadystatechange=null}catch(L){}}}; Jh=function(w){var D=w.getStatus();a:switch(D){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var M=!0;break a;default:M=!1}if(!M){if(D=D===0)w=g.lX(String(w.U))[1]||null,!w&&g.KI.self&&g.KI.self.location&&(w=g.KI.self.location.protocol.slice(0,-1)),D=!$9j.test(w?w.toLowerCase():"");M=D}return M}; g.QF=function(w){return w.T?w.T.readyState:0}; g.zy=function(w){try{return w.T?w.T.responseText:""}catch(D){return""}}; g.VF=function(w){try{if(!w.T)return null;if("response"in w.T)return w.T.response;switch(w.c_){case "":case "text":return w.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in w.T)return w.T.mozResponseArrayBuffer}return null}catch(D){return null}}; g.isr=function(w){var D={};w=(w.T&&g.QF(w)>=2?w.T.getAllResponseHeaders()||"":"").split("\r\n");for(var M=0;M>1,D),Ic(w,w.length>>1)]}; KSa=function(w){var D=g.x(OsG(w,UF));w=D.next().value;D=D.next().value;return w.toString(16)+D.toString(16)}; m9S=function(w,D){var M=OsG(D);w=new Uint32Array(w.buffer);D=w[0];var L=g.x(M);M=L.next().value;L=L.next().value;for(var Z=1;Z>>8|b<<24,b+=k|0,b^=C+38293,k=k<<3|k>>>29,k^=b,l=l>>>8|l<<24,l+=C|0,l^=E+38293,C=C<<3|C>>>29,C^=l;k=[k,b];w[Z]^=k[0];Z+1=M?(globalThis.sessionStorage.removeItem(w),["e"]):["a",new Uint8Array(L.buffer,D+4)]}; xa=function(w,D,M){M=M===void 0?[]:M;this.maxItems=w;this.T=D===void 0?0:D;this.V=M}; DpK=function(w){var D=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!D)return new xa(w);var M=D.split(",");if(M.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new xa(w);D=M.slice(1);D.length===1&&D[0]===""&&(D=[]);M=Number(M[0]);return isNaN(M)||M<0||M>D.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new xa(w)):new xa(w,M,D)}; Mkl=function(w,D){this.logger=D;try{var M=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(L){M=!1}M&&(this.index=DpK(w))}; L_k=function(w,D,M,L,Z){var k=w.index?wL(w.logger,function(){return AIl(w.index,KSa(D),M,L,Z)},"W"):"u"; w.logger.GG(k)}; ZJk=function(w,D,M){var L=g.x(w.index?wL(w.logger,function(){return wtK(KSa(D),M)},"R"):["u"]),Z=L.next().value; L=L.next().value;w.logger.Mx(Z);return L}; YLj=function(w){function D(){M-=L;M-=Z;M^=Z>>>13;L-=Z;L-=M;L^=M<<8;Z-=M;Z-=L;Z^=L>>>13;M-=L;M-=Z;M^=Z>>>12;L-=Z;L-=M;L^=M<<16;Z-=M;Z-=L;Z^=L>>>5;M-=L;M-=Z;M^=Z>>>3;L-=Z;L-=M;L^=M<<10;Z-=M;Z-=L;Z^=L>>>15} w=kXr(w);for(var M=2654435769,L=2654435769,Z=314159265,k=w.length,b=k,C=0;b>=12;b-=12,C+=12)M+=N7(w,C),L+=N7(w,C+4),Z+=N7(w,C+8),D();Z+=k;switch(b){case 11:Z+=w[C+10]<<24;case 10:Z+=w[C+9]<<16;case 9:Z+=w[C+8]<<8;case 8:L+=w[C+7]<<24;case 7:L+=w[C+6]<<16;case 6:L+=w[C+5]<<8;case 5:L+=w[C+4];case 4:M+=w[C+3]<<24;case 3:M+=w[C+2]<<16;case 2:M+=w[C+1]<<8;case 1:M+=w[C+0]}D();return bJj.toString(Z)}; kXr=function(w){for(var D=[],M=0;M>7,w.error.code]);L.set(M,4);return L}; sF=function(w,D,M){Hx.call(this,w);this.D=D;this.clientState=M;this.T="S";this.V="q"}; Gj=function(w){return globalThis.TextEncoder?(new TextEncoder).encode(w):g.RJ(w)}; lUR=function(w,D,M){return w instanceof $a?fkJ(w,M,D,1):w.uF(M)}; vx=function(w){g.X.call(this);var D=this;this.L=new g.l_;this.D=0;this.V=void 0;this.state=2;this.md=w.md;this.Qn=w.Qn;this.qc=Object.assign({},EIJ,w.qc||{});this.logger=w.md.IU();var M;this.onError=(M=w.onError)!=null?M:function(){}; this.Z4=w.Z4||!1;if(ptx(w)){var L=this.md;this.W=function(){return T8K(L).catch(function(b){b=D.reportError(new Pt(D.T?20:32,"TRG:Disposed",b));D.V=b;var C;(C=D.T)==null||C.dispose();D.T=void 0;D.L.reject(b)})}; uij(L,function(){return void ac(D)}); L.U===2&&ac(this)}else this.W=w.ZDD,ac(this);var Z=this.logger.share();Z.YO("o");var k=new mu(Z,"o");this.L.promise.then(function(){k.done();Z.GE();Z.dispose()},function(){return void Z.dispose()}); this.addOnDisposeCallback(function(){D.T?(D.T.dispose(),D.T=void 0):D.V?D.logger.GE():(D.V=D.reportError(new Pt(32,"TNP:Disposed")),D.logger.GE(),D.L.reject(D.V))}); g.T(this,this.logger)}; W_T=function(w,D){if(!(D instanceof Pt))if(D instanceof qt){var M=Error(D.toString());M.stack=D.stack;D=new Pt(11,"EBH:Error",M)}else D=new Pt(12,"BSO:Unknown",D);return w.reportError(D)}; ac=function(w){var D,M,L,Z,k,b,C,l,E,p,W,h,t,d,N;return g.B(function(n){switch(n.T){case 1:D=void 0;w.D++;M=new g.l_;w.md instanceof i_&&w.md.D.push(M.promise);if(!w.Z4){n.KV(2);break}L=new g.l_;setTimeout(function(){return void L.resolve()}); return g.c(n,L.promise,2);case 2:return Z=w.logger.share(),g.jN(n,4,5),w.state=5,k={},b=[],g.c(n,yE(w.md.snapshot({k7:k,H6:b}),w.qc.laE,function(){return Promise.reject(new Pt(15,"MDA:Timeout"))}),7); case 7:C=n.V;if(w.xt())throw new Pt(w.T?20:32,"MDA:Disposed");l=b[0];w.state=6;return g.c(n,yE(lUR(w.Qn,Z,C),w.qc.o5,function(){return Promise.reject(new Pt(10,"BWB:Timeout"))}),8); case 8:E=n.V;if(w.xt())throw new Pt(w.T?20:32,"BWB:Disposed");w.state=7;D=wL(Z,function(){var G=htG(w,E,M,l);G.L.promise.then(function(){return void w.W()}); return G},"i"); case 5:g.vr(n);Z.dispose();g.cr(n,6);break;case 4:p=g.FK(n);(W=D)==null||W.dispose();if(!w.V){h=W_T(w,p);M.resolve();var v;if(v=w.md instanceof i_&&w.D<2)a:if(p instanceof Pt)v=p.code!==32&&p.code!==20&&p.code!==10;else{if(p instanceof qt)switch(p.code){case 2:case 13:case 14:case 4:break;default:v=!1;break a}v=!0}if(v)return t=(1+Math.random()*.25)*(w.T?6E4:1E3),d=setTimeout(function(){return void w.W()},t),w.addOnDisposeCallback(function(){return void clearTimeout(d)}),n.return(); w.V=h}Z.Xd(w.T?13:14);w.L.reject(w.V);return n.return();case 6:w.state=8,w.D=0,(N=w.T)==null||N.dispose(),w.T=D,w.L.resolve(),g.Hr(n)}})}; htG=function(w,D,M,L){var Z=FC(D,2)*1E3;if(Z<=0)throw new Pt(31,"TTM:Invalid");if(Gl(D,4))return new nS(w.logger,Gl(D,4),Z);if(!FC(D,3))return new oc(w.logger,BC(CK(D,1)),Z);if(!L)throw new Pt(4,"PMD:Undefined");L=L(BC(CK(D,1)));if(!(L instanceof Function))throw new Pt(16,"APF:Failed");w.Y=Math.floor((Date.now()+Z)/1E3);w=new Rc(w.logger,L,FC(D,3),Z);w.addOnDisposeCallback(function(){return void M.resolve()}); return w}; tka=function(w,D){D=D instanceof Pt?D:new Pt(5,"TVD:error",D);return w.reportError(D)}; IUJ=function(w,D,M){try{if(w.xt())throw new Pt(21,"BNT:disposed");if(!w.T&&w.V)throw w.V;var L,Z;return(Z=(L=$pS(w,D,M))!=null?L:iJT(w,D,M))!=null?Z:dpj(w,D,M)}catch(k){if(!D.Fe)throw tka(w,k);return ykR(w,M,k)}}; $pS=function(w,D,M){var L;return(L=w.T)==null?void 0:gL(L,function(){return cx(w,D)},M,function(Z){var k; if(w.T instanceof Rc&&((k=D.CD)==null?0:k.Bu))try{var b;(b=w.cache)==null||L_k(b,cx(w,D),Z,D.CD.bQ,w.Y-120)}catch(C){w.reportError(new Pt(24,"ELX:write",C))}})}; iJT=function(w,D,M){var L;if((L=D.CD)!=null&&L.Pv)try{var Z,k=(Z=w.cache)==null?void 0:ZJk(Z,cx(w,D),D.CD.bQ);return k?M?wL(w.logger,function(){return g.oJ(k,2)},"a"):k:void 0}catch(b){w.reportError(new Pt(23,"RXO:read",b))}}; dpj=function(w,D,M){var L={stack:[],error:void 0,hasError:!1};try{if(!D.gE)throw new Pt(29,"SDF:notready");return gL(yGT(L,new sF(w.logger,0,w.state)),function(){return cx(w,D)},M)}catch(Z){L.error=Z,L.hasError=!0}finally{Iax(L)}}; ykR=function(w,D,M){var L={stack:[],error:void 0,hasError:!1};try{var Z=tka(w,M);return gL(yGT(L,new Fv(w.logger,Z)),function(){return[]},D)}catch(k){L.error=k,L.hasError=!0}finally{Iax(L)}}; cx=function(w,D){return D.Iy?D.Iy:D.k7?wL(w.logger,function(){return D.Iy=Gj(D.k7)},"c"):[]}; Bx=function(){var w=0,D;return function(M){D||(D=new DL);var L=new sF(D,w,1),Z=gL(L,function(){return Gj(M)},!0); L.dispose();w++;return Z}}; fS=function(w){this.B_=Sy(w)}; Upr=function(w,D,M){this.mT=w;this.Cg=D;this.metadata=M}; q7=function(w,D){D=D===void 0?{}:D;this.iO5=w;this.metadata=D;this.status=null}; rL=function(w,D,M,L,Z){this.name=w;this.methodType="unary";this.requestType=D;this.responseType=M;this.T=L;this.V=Z}; eD=function(w){this.B_=Sy(w)}; Xv=function(w){this.B_=Sy(w)}; Tj=function(w){this.B_=Sy(w)}; u_=function(w,D){this.G=w.RD7;this.U=D;this.T=w.xhr;this.L=[];this.W=[];this.Y=[];this.D=[];this.V=[];this.G&&xpJ(this)}; gIx=function(w,D){var M=new N1K;g.mK(w.T,"complete",function(){if(Jh(w.T)){var L=g.zy(w.T);if(D&&w.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");L=atob(L)}try{var Z=w.U(L)}catch(C){SD(w,QE(new qt(13,"Error when deserializing response data; error: "+C+(", response: "+L)),M));return}L=M9K(w.T.getStatus());Ju(w,zj(w));L==0?HJr(w,Z):SD(w,QE(new qt(L,"Xhr succeeded but the status code is not 200"),M))}else{L=g.zy(w.T);Z=zj(w);if(L){var k=jPT(w, L);L=k.code;var b=k.details;k=k.metadata}else L=2,b="Rpc failed due to xhr error. uri: "+String(w.T.U)+", error code: "+w.T.V+", error: "+w.T.getLastError(),k=Z;Ju(w,Z);SD(w,QE(new qt(L,b,k),M))}})}; xpJ=function(w){w.G.Wm("data",function(D){if("1"in D){var M=D["1"];try{var L=w.U(M)}catch(Z){SD(w,new qt(13,"Error when deserializing response data; error: "+Z+(", response: "+M)))}L&&HJr(w,L)}if("2"in D)for(D=jPT(w,D["2"]),M=0;M-1&&w.splice(D,1)}; HJr=function(w,D){for(var M=0;M>4&15).toString(16)+(w&15).toString(16)}; kA=function(w,D){this.V=this.T=null;this.L=w||null;this.D=!!D}; li=function(w){w.T||(w.T=new Map,w.V=0,w.L&&hA(w.L,function(D,M){w.add(F4(D),M)}))}; ckj=function(w,D){li(w);D=EA(w,D);return w.T.has(D)}; g.B1x=function(w,D,M){w.remove(D);M.length>0&&(w.L=null,w.T.set(EA(w,D),g.GD(M)),w.V=w.V+M.length)}; EA=function(w,D){D=String(D);w.D&&(D=D.toLowerCase());return D}; sPx=function(w,D){D&&!w.D&&(li(w),w.L=null,w.T.forEach(function(M,L){var Z=L.toLowerCase();L!=Z&&(this.remove(L),g.B1x(this,Z,M))},w)); w.D=D}; g.fUK=function(w){var D="";g.mr(w,function(M,L){D+=L;D+=":";D+=M;D+="\r\n"}); return D}; g.po=function(w,D,M){if(g.WD(M))return w;M=g.fUK(M);if(typeof w==="string")return yU(w,g.og(D),M);g.YA(w,D,M);return w}; g.Wf=function(w){g.X.call(this);this.V=w;this.T={}}; qLJ=function(w,D,M,L,Z,k){if(Array.isArray(M))for(var b=0;b=0)return!0;try{var D=new g.Au(w)}catch(M){return g.y1(ZaR,function(L){return w.search(L)>0})!=null}return D.Y.match(kql)?!0:g.y1(ZaR,function(M){return w.match(M)!=null})!=null}; g.j3=function(w,D){return w.replace(YMS,function(M,L){try{var Z=g.h7(D,L);if(Z==null||Z.toString()==null)return M;Z=Z.toString();if(Z==""||!g.s3(g.sQ(Z)))return encodeURIComponent(Z).replace(/%2C/g,",")}catch(k){}return M})}; gG=function(w,D){return Object.is(w,D)}; o5=function(w){var D=R5;R5=w;return D}; CJG=function(w){if(w.pu!==void 0){var D=no;no=!0;try{for(var M=w.pu;M!==void 0;M=M.SI){var L=M.O$;L.gs||(w=void 0,L.gs=!0,CJG(L),(w=L.T7)==null||w.call(L,L))}}finally{no=D}}}; lzK=function(){var w;return((w=R5)==null?void 0:w.U$)!==!1}; ERC=function(w){w&&(w.d_=void 0,w.lM=!0);return o5(w)}; WKJ=function(w,D){o5(D);if(w){w.lM=!1;D=w.d_;var M=D!==void 0?D.qt:w.producers;if(M!==void 0){if(Fr(w)){do M=pZJ(M);while(M!==void 0)}D!==void 0?D.qt=void 0:w.producers=void 0}}}; hOI=function(w,D){var M=w.v1,L=Fr(w);M!==void 0?(D.SI=M.SI,M.SI=D):(D.SI=void 0,w.pu=D);D.Ed=M;w.v1=D;if(!L)for(w=w.producers;w!==void 0;w=w.qt)hOI(w.R6,w)}; pZJ=function(w){var D=w.R6,M=w.qt,L=w.SI,Z=w.Ed;w.SI=void 0;w.Ed=void 0;L!==void 0?L.Ed=Z:D.v1=Z;if(Z!==void 0)Z.SI=L;else if(D.pu=L,!Fr(D))for(w=D.producers;w!==void 0;)w=pZJ(w);return M}; Fr=function(w){return w.m2||w.pu!==void 0}; djR=function(w){function D(){a:{if(no)throw Error("");if(R5!==null){var L=R5.d_;if(L===void 0||L.R6!==M){var Z=void 0,k=R5.lM;if(k&&(Z=L!==void 0?L.qt:R5.producers,Z!==void 0&&Z.R6===M)){R5.d_=Z;Z.otV=M.version;break a}var b=M.v1,C;if(!(C=b===void 0||b.O$!==R5)){if(k){b:{C=R5;k=C.d_;if(k!==void 0){C=C.producers;do{if(C===b){k=!0;break b}if(C===k)break;C=C.qt}while(C!==void 0)}k=!1}k=!k}C=k}C&&(k=Fr(R5),Z={R6:M,O$:R5,qt:Z,Ed:b,otV:M.version,SI:void 0},R5.d_=Z,L!==void 0?L.qt=Z:R5.producers=Z,k&&hOI(M, Z))}}}return M.value} var M=Object.create(tOr);M.value=w;D[$jr]=M;return[D,function(L){return iaR(M,L)}, function(L){if(!lzK())throw Error();iaR(M,L(M.value))}]}; iaR=function(w,D){if(!lzK())throw Error();w.Wo(w.value,D)||(w.value=D,w.version++,yTx++,CJG(w))}; GC=function(w,D){D=D===void 0?"":D;w=djR(w)[0][$jr];var M;D=(M=D)!=null?M:"[signal]";w.debugName=D}; a5=function(w){g.Ej.call(this);var D=this;this.W=this.V=0;this.m4=w!=null?w:{RT:function(Z,k){return setTimeout(Z,k)}, JH:function(Z){clearTimeout(Z)}}; var M,L;this.T=(L=(M=window.navigator)==null?void 0:M.onLine)!=null?L:!0;this.L=function(){return g.B(function(Z){return g.c(Z,sA(D),0)})}; window.addEventListener("offline",this.L);window.addEventListener("online",this.L);this.W||this.Ju()}; IzK=function(){var w=g.vf;a5.instance||(a5.instance=new a5(w));return a5.instance}; sA=function(w,D){return w.D?w.D:w.D=new Promise(function(M){var L,Z,k,b;return g.B(function(C){switch(C.T){case 1:return L=window.AbortController?new window.AbortController:void 0,k=(Z=L)==null?void 0:Z.signal,b=!1,g.jN(C,2,3),L&&(w.V=w.m4.RT(function(){L.abort()},D||2E4)),g.c(C,fetch("/generate_204",{method:"HEAD", signal:k}),5);case 5:b=!0;case 3:g.vr(C);w.D=void 0;w.V&&(w.m4.JH(w.V),w.V=0);b!==w.T&&(w.T=b,w.T?w.dispatchEvent("networkstatus-online"):w.dispatchEvent("networkstatus-offline"));M(b);g.cr(C,0);break;case 2:g.FK(C),b=!1,C.KV(3)}})})}; UjJ=function(w){this.B_=Sy(w)}; fo=function(){this.data=[];this.T=-1}; xjj=function(w){w.T===-1&&(w.T=w.data.reduce(function(D,M,L){return D+(M?Math.pow(2,L):0)},0)); return w.T}; qh=function(w){w.setAttribute("role","link")}; e3=function(w,D){Array.isArray(D)&&(D=D.join(" "));D===""||D==void 0?(rG||(D={},rG=(D.atomic=!1,D.autocomplete="none",D.dropeffect="none",D.haspopup=!1,D.live="off",D.multiline=!1,D.multiselectable=!1,D.orientation="vertical",D.readonly=!1,D.relevant="additions text",D.required=!1,D.sort="none",D.busy=!1,D.disabled=!1,D.hidden=!1,D.invalid="false",D)),D=rG,"label"in D?w.setAttribute("aria-label",D.label):w.removeAttribute("aria-label")):w.setAttribute("aria-label",D)}; Xr=function(w){w=w.getAttribute("aria-label");return w==null||w==void 0?"":String(w)}; g.TC=function(w,D,M){g.X.call(this);this.T=null;this.D=!1;this.Y=w;this.W=M;this.V=D||window;this.L=(0,g.Ck)(this.n8,this)}; NIj=function(w){w=w.V;return w.requestAnimationFrame||w.webkitRequestAnimationFrame||w.mozRequestAnimationFrame||w.oRequestAnimationFrame||w.msRequestAnimationFrame||null}; HaS=function(w){w=w.V;return w.cancelAnimationFrame||w.cancelRequestAnimationFrame||w.webkitCancelRequestAnimationFrame||w.mozCancelRequestAnimationFrame||w.oCancelRequestAnimationFrame||w.msCancelRequestAnimationFrame||null}; g.ui=function(w,D,M){g.X.call(this);this.T=w;this.LP=D||0;this.V=M;this.L=(0,g.Ck)(this.T4,this)}; g.S3=function(w,D){w.isActive()||w.start(D)}; g.Qf=function(w){w.stop();w.T4()}; g.JB=function(w){w.isActive()&&g.Qf(w)}; g.zC=function(w,D,M){g.X.call(this);this.D=M!=null?w.bind(M):w;this.LP=D;this.L=null;this.T=!1;this.V=0;this.bj=null}; Vf=function(w){w.bj=g.cj(function(){w.bj=null;w.T&&!w.V&&(w.T=!1,Vf(w))},w.LP); var D=w.L;w.L=null;w.D.apply(null,D)}; g.Pf=function(w,D){this.T=w[g.KI.Symbol.iterator]();this.V=D}; jqr=function(w){return typeof w.className=="string"?w.className:w.getAttribute&&w.getAttribute("class")||""}; OA=function(w){return w.classList?w.classList:jqr(w).match(/\S+/g)||[]}; g.Ko=function(w,D){typeof w.className=="string"?w.className=D:w.setAttribute&&w.setAttribute("class",D)}; g.mp=function(w,D){return w.classList?w.classList.contains(D):g.xB(OA(w),D)}; g.AB=function(w,D){if(w.classList)w.classList.add(D);else if(!g.mp(w,D)){var M=jqr(w);g.Ko(w,M+(M.length>0?" "+D:D))}}; g.wF=function(w,D){if(w.classList)Array.prototype.forEach.call(D,function(Z){g.AB(w,Z)}); else{var M={};Array.prototype.forEach.call(OA(w),function(Z){M[Z]=!0}); Array.prototype.forEach.call(D,function(Z){M[Z]=!0}); D="";for(var L in M)D+=D.length>0?" "+L:L;g.Ko(w,D)}}; g.D6=function(w,D){w.classList?w.classList.remove(D):g.mp(w,D)&&g.Ko(w,Array.prototype.filter.call(OA(w),function(M){return M!=D}).join(" "))}; g.MC=function(w,D){w.classList?Array.prototype.forEach.call(D,function(M){g.D6(w,M)}):g.Ko(w,Array.prototype.filter.call(OA(w),function(M){return!g.xB(D,M)}).join(" "))}; g.Lt=function(w,D,M){M?g.AB(w,D):g.D6(w,D)}; gRK=function(w,D){var M=!g.mp(w,D);g.Lt(w,D,M)}; g.Z6=function(){g.Ej.call(this);this.T=0;this.endTime=this.startTime=null}; ROa=function(w,D){Array.isArray(D)||(D=[D]);D=D.map(function(M){return typeof M==="string"?M:M.property+" "+M.duration+"s "+M.timing+" "+M.delay+"s"}); g.Qv(w,"transition",D.join(","))}; kY=function(w,D,M,L,Z){g.Z6.call(this);this.V=w;this.W=D;this.Y=M;this.D=L;this.G=Array.isArray(Z)?Z:[Z]}; oRI=function(w,D,M,L){return new kY(w,D,{opacity:M},{opacity:L},{property:"opacity",duration:D,timing:"ease-in",delay:0})}; FKT=function(w){w=cD(w);if(w=="")return null;var D=String(w.slice(0,4)).toLowerCase();if(("url("1||w&&w.split(")"),null;if(w.indexOf("(")>0){if(/"|'/.test(w))return null;D=/([\-\w]+)\(/g;for(var M;M=D.exec(w);)if(!(M[1].toLowerCase()in nRI))return null}return w}; bs=function(w,D){w=g.KI[w];return w&&w.prototype?(D=Object.getOwnPropertyDescriptor(w.prototype,D))&&D.get||null:null}; Gql=function(w){var D=g.KI.CSSStyleDeclaration;return D&&D.prototype&&D.prototype[w]||null}; sqN=function(w,D,M,L){if(w)return w.apply(D,L);if(g.YY&&document.documentMode<10){if(!D[M].call)throw Error("IE Clobbering detected");}else if(typeof D[M]!="function")throw Error("Clobbering detected");return D[M].apply(D,L)}; fzT=function(w){if(!w)return"";var D=document.createElement("div").style;azT(w).forEach(function(M){var L=g.Eg&&M in vRJ?M:M.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Gk(L,"--")||Gk(L,"var")||(M=sqN(cTx,w,w.getPropertyValue?"getPropertyValue":"getAttribute",[M])||"",M=FKT(M),M!=null&&sqN(BIj,D,D.setProperty?"setProperty":"setAttribute",[L,M]))}); return D.cssText||""}; azT=function(w){g.Lk(w)?w=g.GD(w):(w=g.kO(w),g.HQ(w,"cssText"));return w}; g.ls=function(w){var D,M=D=0,L=!1;w=w.split(qMl);for(var Z=0;Z.4?-1:1;return(D==0?null:D)==-1?"rtl":"ltr"}; g.hw=function(w){if(w instanceof Eb||w instanceof pt||w instanceof W7)return w;if(typeof w.next=="function")return new Eb(function(){return w}); if(typeof w[Symbol.iterator]=="function")return new Eb(function(){return w[Symbol.iterator]()}); if(typeof w.KS=="function")return new Eb(function(){return w.KS()}); throw Error("Not an iterator or iterable.");}; Eb=function(w){this.V=w}; pt=function(w){this.V=w}; W7=function(w){Eb.call(this,function(){return w}); this.L=w}; tw=function(w,D,M,L,Z,k,b,C){this.T=w;this.G=D;this.L=M;this.W=L;this.D=Z;this.Y=k;this.V=b;this.U=C}; $Y=function(w,D){if(D==0)return w.T;if(D==1)return w.V;var M=uL(w.T,w.L,D),L=uL(w.L,w.D,D);w=uL(w.D,w.V,D);M=uL(M,L,D);L=uL(L,w,D);return uL(M,L,D)}; TIK=function(w,D){var M=(D-w.T)/(w.V-w.T);if(M<=0)return 0;if(M>=1)return 1;for(var L=0,Z=1,k=0,b=0;b<8;b++){k=$Y(w,M);var C=($Y(w,M+1E-6)-k)/1E-6;if(Math.abs(k-D)<1E-6)return M;if(Math.abs(C)<1E-6)break;else k1E-6&&b<8;b++)k=0}; g.IF=function(w){g.X.call(this);this.Y=1;this.L=[];this.D=0;this.T=[];this.V={};this.G=!!w}; SMC=function(w,D,M){g.j4(function(){w.apply(D,M)})}; g.Ub=function(w){this.T=w}; xY=function(w){this.T=w}; Qql=function(w){this.data=w}; JTS=function(w){return w===void 0||w instanceof Qql?w:new Qql(w)}; NC=function(w){this.T=w}; g.zOJ=function(w){var D=w.creation;w=w.expiration;return!!w&&wg.pk()}; g.H7=function(w){this.T=w}; VOR=function(){}; jm=function(){}; gF=function(w){this.T=w;this.V=null}; RF=function(w){if(w.T==null)throw Error("Storage mechanism: Storage unavailable");w.isAvailable()||gl(Error("Storage mechanism: Storage unavailable"))}; oF=function(){var w=null;try{w=g.KI.localStorage||null}catch(D){}gF.call(this,w)}; PJl=function(){var w=null;try{w=g.KI.sessionStorage||null}catch(D){}gF.call(this,w)}; nt=function(w,D){this.V=w;this.T=D+"::"}; g.F3=function(w){var D=new oF;return D.isAvailable()?w?new nt(D,w):D:null}; Gr=function(w,D){this.T=w;this.V=D}; sb=function(w){this.T=[];if(w)a:{if(w instanceof sb){var D=w.iy();w=w.hV();if(this.T.length<=0){for(var M=this.T,L=0;L>>6:(k<65536?C[M++]=224|k>>>12:(C[M++]=240|k>>>18,C[M++]=128|k>>>12&63),C[M++]=128|k>>> 6&63),C[M++]=128|k&63);return C}; B7=function(w){for(var D=w.length;--D>=0;)w[D]=0}; ft=function(w,D,M,L,Z){this.Ri=w;this.HT=D;this.yG=M;this.wl=L;this.ddE=Z;this.V2=w&&w.length}; qC=function(w,D){this.rJ=w;this.mG=0;this.nh=D}; rF=function(w,D){w.jW[w.pending++]=D&255;w.jW[w.pending++]=D>>>8&255}; em=function(w,D,M){w.IT>16-M?(w.jP|=D<>16-w.IT,w.IT+=M-16):(w.jP|=D<>>=1,M<<=1;while(--D>0);return M>>>1}; wjl=function(w,D,M){var L=Array(16),Z=0,k;for(k=1;k<=15;k++)L[k]=Z=Z+M[k-1]<<1;for(M=0;M<=D;M++)Z=w[M*2+1],Z!==0&&(w[M*2]=ATr(L[Z]++,Z))}; DtT=function(w){var D;for(D=0;D<286;D++)w.Mk[D*2]=0;for(D=0;D<30;D++)w.wg[D*2]=0;for(D=0;D<19;D++)w.At[D*2]=0;w.Mk[512]=1;w.J9=w.LU=0;w.b2=w.matches=0}; M4C=function(w){w.IT>8?rF(w,w.jP):w.IT>0&&(w.jW[w.pending++]=w.jP);w.jP=0;w.IT=0}; Lua=function(w,D,M){M4C(w);rF(w,M);rF(w,~M);c7.J4(w.jW,w.window,D,M,w.pending);w.pending+=M}; ZvK=function(w,D,M,L){var Z=D*2,k=M*2;return w[Z]>>7)];X3(w,b,M);C=zr[b];C!==0&&(Z-=Vm[b],em(w,Z,C))}}while(L>1;b>=1;b--)Tr(w,M,b);l=k;do b=w.wd[1],w.wd[1]=w.wd[w.ud--],Tr(w,M,1),L=w.wd[1],w.wd[--w.JC]=b,w.wd[--w.JC]=L,M[l*2]=M[b*2]+M[L*2],w.depth[l]=(w.depth[b]>=w.depth[L]?w.depth[b]:w.depth[L])+1,M[b*2+1]=M[L*2+1]=l,w.wd[1]=l++,Tr(w,M,1);while(w.ud>= 2);w.wd[--w.JC]=w.wd[1];b=D.rJ;l=D.mG;L=D.nh.Ri;Z=D.nh.V2;k=D.nh.HT;var E=D.nh.yG,p=D.nh.ddE,W,h=0;for(W=0;W<=15;W++)w.Yy[W]=0;b[w.wd[w.JC]*2+1]=0;for(D=w.JC+1;D<573;D++){var t=w.wd[D];W=b[b[t*2+1]*2+1]+1;W>p&&(W=p,h++);b[t*2+1]=W;if(!(t>l)){w.Yy[W]++;var d=0;t>=E&&(d=k[t-E]);var N=b[t*2];w.J9+=N*(W+d);Z&&(w.LU+=N*(L[t*2+1]+d))}}if(h!==0){do{for(W=p-1;w.Yy[W]===0;)W--;w.Yy[W]--;w.Yy[W+1]+=2;w.Yy[p]--;h-=2}while(h>0);for(W=p;W!==0;W--)for(t=w.Yy[W];t!==0;)L=w.wd[--D],L>l||(b[L*2+1]!==W&&(w.J9+=(W- b[L*2+1])*b[L*2],b[L*2+1]=W),t--)}wjl(M,C,w.Yy)}; bvj=function(w,D,M){var L,Z=-1,k=D[1],b=0,C=7,l=4;k===0&&(C=138,l=3);D[(M+1)*2+1]=65535;for(L=0;L<=M;L++){var E=k;k=D[(L+1)*2+1];++b>>=1)if(D&1&&w.Mk[M*2]!==0)return 0;if(w.Mk[18]!==0||w.Mk[20]!==0||w.Mk[26]!==0)return 1;for(M=32;M<256;M++)if(w.Mk[M*2]!==0)return 1;return 0}; Ob=function(w,D,M){w.jW[w.UW+w.b2*2]=D>>>8&255;w.jW[w.UW+w.b2*2+1]=D&255;w.jW[w.NV+w.b2]=M&255;w.b2++;D===0?w.Mk[M*2]++:(w.matches++,D--,w.Mk[(us[M]+256+1)*2]++,w.wg[(D<256?Jw[D]:Jw[256+(D>>>7)])*2]++);return w.b2===w.lL-1}; mB=function(w,D){w.msg=Kt[D];return D}; Aw=function(w){for(var D=w.length;--D>=0;)w[D]=0}; wy=function(w){var D=w.state,M=D.pending;M>w.Br&&(M=w.Br);M!==0&&(c7.J4(w.output,D.jW,D.M1,M,w.oM),w.oM+=M,D.M1+=M,w.o2+=M,w.Br-=M,D.pending-=M,D.pending===0&&(D.M1=0))}; Lj=function(w,D){var M=w.F8>=0?w.F8:-1,L=w.Pz-w.F8,Z=0;if(w.level>0){w.wH.MD===2&&(w.wH.MD=Cjx(w));P7(w,w.Cr);P7(w,w.wL);bvj(w,w.Mk,w.Cr.mG);bvj(w,w.wg,w.wL.mG);P7(w,w.rX);for(Z=18;Z>=3&&w.At[lrx[Z]*2+1]===0;Z--);w.J9+=3*(Z+1)+5+5+4;var k=w.J9+3+7>>>3;var b=w.LU+3+7>>>3;b<=k&&(k=b)}else k=b=L+5;if(L+4<=k&&M!==-1)em(w,D?1:0,3),Lua(w,M,L);else if(w.strategy===4||b===k)em(w,2+(D?1:0),3),kyN(w,DP,Mx);else{em(w,4+(D?1:0),3);M=w.Cr.mG+1;L=w.wL.mG+1;Z+=1;em(w,M-257,5);em(w,L-1,5);em(w,Z-4,4);for(k=0;k>>8&255;w.jW[w.pending++]=D&255}; EJl=function(w,D){var M=w.zm,L=w.Pz,Z=w.R$,k=w.jj,b=w.Pz>w.fP-262?w.Pz-(w.fP-262):0,C=w.window,l=w.xa,E=w.Sy,p=w.Pz+258,W=C[L+Z-1],h=C[L+Z];w.R$>=w.hF&&(M>>=2);k>w.b9&&(k=w.b9);do{var t=D;if(C[t+Z]===h&&C[t+Z-1]===W&&C[t]===C[L]&&C[++t]===C[L+1]){L+=2;for(t++;C[++L]===C[++t]&&C[++L]===C[++t]&&C[++L]===C[++t]&&C[++L]===C[++t]&&C[++L]===C[++t]&&C[++L]===C[++t]&&C[++L]===C[++t]&&C[++L]===C[++t]&&LZ){w.Of=D;Z=t;if(t>=k)break;W=C[L+Z-1];h=C[L+Z]}}}while((D=E[D&l])>b&&--M!== 0);return Z<=w.b9?Z:w.b9}; Cj=function(w){var D=w.fP,M;do{var L=w.LR-w.b9-w.Pz;if(w.Pz>=D+(D-262)){c7.J4(w.window,w.window,D,D,0);w.Of-=D;w.Pz-=D;w.F8-=D;var Z=M=w.qO;do{var k=w.head[--Z];w.head[Z]=k>=D?k-D:0}while(--M);Z=M=D;do k=w.Sy[--Z],w.Sy[Z]=k>=D?k-D:0;while(--M);L+=D}if(w.wH.G$===0)break;Z=w.wH;M=w.window;k=w.Pz+w.b9;var b=Z.G$;b>L&&(b=L);b===0?M=0:(Z.G$-=b,c7.J4(M,Z.input,Z.uf,b,k),Z.state.wrap===1?Z.Y6=b7(Z.Y6,M,b,k):Z.state.wrap===2&&(Z.Y6=Yj(Z.Y6,M,b,k)),Z.uf+=b,Z.kh+=b,M=b);w.b9+=M;if(w.b9+w.uO>=3)for(L=w.Pz-w.uO, w.ev=w.window[L],w.ev=(w.ev<=3&&(w.ev=(w.ev<=3)if(M=Ob(w,w.Pz-w.Of,w.nO-3),w.b9-=w.nO,w.nO<=w.mI&&w.b9>=3){w.nO--;do w.Pz++,w.ev=(w.ev<=3&&(w.ev=(w.ev<4096)&&(w.nO=2));if(w.R$>=3&&w.nO<=w.R$){L=w.Pz+w.b9-3;M=Ob(w,w.Pz-1-w.XR,w.R$-3);w.b9-=w.R$-1;w.R$-=2;do++w.Pz<=L&&(w.ev=(w.ev<=3&&w.Pz>0&&(L=w.Pz-1,M=k[L],M===k[++L]&&M===k[++L]&&M===k[++L])){for(Z=w.Pz+258;M===k[++L]&&M===k[++L]&&M===k[++L]&&M===k[++L]&&M===k[++L]&&M===k[++L]&&M===k[++L]&&M===k[++L]&&Lw.b9&&(w.nO=w.b9)}w.nO>=3?(M=Ob(w,1,w.nO-3),w.b9-=w.nO,w.Pz+=w.nO,w.nO=0):(M=Ob(w,0,w.window[w.Pz]),w.b9--,w.Pz++);if(M&&(Lj(w,!1),w.wH.Br===0))return 1}w.uO=0;return D=== 4?(Lj(w,!0),w.wH.Br===0?3:4):w.b2&&(Lj(w,!1),w.wH.Br===0)?1:2}; Wur=function(w,D){for(var M;;){if(w.b9===0&&(Cj(w),w.b9===0)){if(D===0)return 1;break}w.nO=0;M=Ob(w,0,w.window[w.Pz]);w.b9--;w.Pz++;if(M&&(Lj(w,!1),w.wH.Br===0))return 1}w.uO=0;return D===4?(Lj(w,!0),w.wH.Br===0?3:4):w.b2&&(Lj(w,!1),w.wH.Br===0)?1:2}; pj=function(w,D,M,L,Z){this.Ox=w;this.jJ_=D;this.uEL=M;this.Ghd=L;this.func=Z}; haJ=function(){this.wH=null;this.status=0;this.jW=null;this.wrap=this.pending=this.M1=this.RQ=0;this.Wr=null;this.pm=0;this.method=8;this.qP=-1;this.xa=this.v2=this.fP=0;this.window=null;this.LR=0;this.head=this.Sy=null;this.jj=this.hF=this.strategy=this.level=this.mI=this.zm=this.R$=this.b9=this.Of=this.Pz=this.hD=this.XR=this.nO=this.F8=this.q3=this.eE=this.H5=this.qO=this.ev=0;this.Mk=new c7.VA(1146);this.wg=new c7.VA(122);this.At=new c7.VA(78);Aw(this.Mk);Aw(this.wg);Aw(this.At);this.rX=this.wL= this.Cr=null;this.Yy=new c7.VA(16);this.wd=new c7.VA(573);Aw(this.wd);this.JC=this.ud=0;this.depth=new c7.VA(573);Aw(this.depth);this.IT=this.jP=this.uO=this.matches=this.LU=this.J9=this.UW=this.b2=this.lL=this.NV=0}; t4l=function(w,D){if(!w||!w.state||D>5||D<0)return w?mB(w,-2):-2;var M=w.state;if(!w.output||!w.input&&w.G$!==0||M.status===666&&D!==4)return mB(w,w.Br===0?-5:-2);M.wH=w;var L=M.qP;M.qP=D;if(M.status===42)if(M.wrap===2)w.Y6=0,ZP(M,31),ZP(M,139),ZP(M,8),M.Wr?(ZP(M,(M.Wr.text?1:0)+(M.Wr.yN?2:0)+(M.Wr.extra?4:0)+(M.Wr.name?8:0)+(M.Wr.comment?16:0)),ZP(M,M.Wr.time&255),ZP(M,M.Wr.time>>8&255),ZP(M,M.Wr.time>>16&255),ZP(M,M.Wr.time>>24&255),ZP(M,M.level===9?2:M.strategy>=2||M.level<2?4:0),ZP(M,M.Wr.os& 255),M.Wr.extra&&M.Wr.extra.length&&(ZP(M,M.Wr.extra.length&255),ZP(M,M.Wr.extra.length>>8&255)),M.Wr.yN&&(w.Y6=Yj(w.Y6,M.jW,M.pending,0)),M.pm=0,M.status=69):(ZP(M,0),ZP(M,0),ZP(M,0),ZP(M,0),ZP(M,0),ZP(M,M.level===9?2:M.strategy>=2||M.level<2?4:0),ZP(M,3),M.status=113);else{var Z=8+(M.v2-8<<4)<<8;Z|=(M.strategy>=2||M.level<2?0:M.level<6?1:M.level===6?2:3)<<6;M.Pz!==0&&(Z|=32);M.status=113;kj(M,Z+(31-Z%31));M.Pz!==0&&(kj(M,w.Y6>>>16),kj(M,w.Y6&65535));w.Y6=1}if(M.status===69)if(M.Wr.extra){for(Z= M.pending;M.pm<(M.Wr.extra.length&65535)&&(M.pending!==M.RQ||(M.Wr.yN&&M.pending>Z&&(w.Y6=Yj(w.Y6,M.jW,M.pending-Z,Z)),wy(w),Z=M.pending,M.pending!==M.RQ));)ZP(M,M.Wr.extra[M.pm]&255),M.pm++;M.Wr.yN&&M.pending>Z&&(w.Y6=Yj(w.Y6,M.jW,M.pending-Z,Z));M.pm===M.Wr.extra.length&&(M.pm=0,M.status=73)}else M.status=73;if(M.status===73)if(M.Wr.name){Z=M.pending;do{if(M.pending===M.RQ&&(M.Wr.yN&&M.pending>Z&&(w.Y6=Yj(w.Y6,M.jW,M.pending-Z,Z)),wy(w),Z=M.pending,M.pending===M.RQ)){var k=1;break}k=M.pmZ&&(w.Y6=Yj(w.Y6,M.jW,M.pending-Z,Z));k===0&&(M.pm=0,M.status=91)}else M.status=91;if(M.status===91)if(M.Wr.comment){Z=M.pending;do{if(M.pending===M.RQ&&(M.Wr.yN&&M.pending>Z&&(w.Y6=Yj(w.Y6,M.jW,M.pending-Z,Z)),wy(w),Z=M.pending,M.pending===M.RQ)){k=1;break}k=M.pmZ&&(w.Y6=Yj(w.Y6,M.jW,M.pending-Z,Z));k===0&&(M.status=103)}else M.status= 103;M.status===103&&(M.Wr.yN?(M.pending+2>M.RQ&&wy(w),M.pending+2<=M.RQ&&(ZP(M,w.Y6&255),ZP(M,w.Y6>>8&255),w.Y6=0,M.status=113)):M.status=113);if(M.pending!==0){if(wy(w),w.Br===0)return M.qP=-1,0}else if(w.G$===0&&(D<<1)-(D>4?9:0)<=(L<<1)-(L>4?9:0)&&D!==4)return mB(w,-5);if(M.status===666&&w.G$!==0)return mB(w,-5);if(w.G$!==0||M.b9!==0||D!==0&&M.status!==666){L=M.strategy===2?Wur(M,D):M.strategy===3?pjr(M,D):WP[M.level].func(M,D);if(L===3||L===4)M.status=666;if(L===1||L===3)return w.Br===0&&(M.qP= -1),0;if(L===2&&(D===1?(em(M,2,3),X3(M,256,DP),M.IT===16?(rF(M,M.jP),M.jP=0,M.IT=0):M.IT>=8&&(M.jW[M.pending++]=M.jP&255,M.jP>>=8,M.IT-=8)):D!==5&&(em(M,0,3),Lua(M,0,0),D===3&&(Aw(M.head),M.b9===0&&(M.Pz=0,M.F8=0,M.uO=0))),wy(w),w.Br===0))return M.qP=-1,0}if(D!==4)return 0;if(M.wrap<=0)return 1;M.wrap===2?(ZP(M,w.Y6&255),ZP(M,w.Y6>>8&255),ZP(M,w.Y6>>16&255),ZP(M,w.Y6>>24&255),ZP(M,w.kh&255),ZP(M,w.kh>>8&255),ZP(M,w.kh>>16&255),ZP(M,w.kh>>24&255)):(kj(M,w.Y6>>>16),kj(M,w.Y6&65535));wy(w);M.wrap>0&& (M.wrap=-M.wrap);return M.pending!==0?0:1}; hQ=function(w){if(!(this instanceof hQ))return new hQ(w);w=this.options=c7.assign({level:-1,method:8,chunkSize:16384,Mf:15,I5t:8,strategy:0,to:""},w||{});w.raw&&w.Mf>0?w.Mf=-w.Mf:w.Ux&&w.Mf>0&&w.Mf<16&&(w.Mf+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.wH=new $tl;this.wH.Br=0;var D=this.wH;var M=w.level,L=w.method,Z=w.Mf,k=w.I5t,b=w.strategy;if(D){var C=1;M===-1&&(M=6);Z<0?(C=0,Z=-Z):Z>15&&(C=2,Z-=16);if(k<1||k>9||L!==8||Z<8||Z>15||M<0||M>9||b<0||b>4)D=mB(D,-2);else{Z===8&&(Z=9); var l=new haJ;D.state=l;l.wH=D;l.wrap=C;l.Wr=null;l.v2=Z;l.fP=1<>=7;k<30;k++)for(Vm[k]=b<<7,Z=0;Z<1<=E.fP&&(D===0&&(Aw(E.head),E.Pz=0,E.F8=0,E.uO=0),M=new c7.Op(E.fP),c7.J4(M,k,b-E.fP,E.fP,0),k=M,b=E.fP);M=w.G$;L=w.uf;Z=w.input;w.G$=b;w.uf=0;w.input=k;for(Cj(E);E.b9>=3;){k=E.Pz;b=E.b9-2;do E.ev=(E.ev<-3&&((0,M[78])((0,M[55])(M[19],M[56]),M[69],M[56]),((0,M[69])(M[10]),M[50])((0,M[39])(),M[33],M[10]),1)||(0,M[78])((0,M[4842-new Date(Y[74])/1E3])(((0,M[23])(M[38],M[64]),(0,M[9])(M[85],M[2])),M[9],M[74],M[45]),M[26],M[new Date(Y[94])/1E3]),M[50]!=new Date(Y[55])/1E3&&(M[74]!=-10&&((0,M[64])((0,M[64])((0,M[3])(M[22], M[24]),M[60],M[37],M[12]),M[47],(0,M[17])(),M[30],M[27]),[])||(((0,M[14])(M[new Date(Y[89])/1E3],M[35]),M[52])(M[43],M[27]),M[37])(M[27])),M[new Date(Y[87])/1E3]!=-5&&(M[61]!==-3?(0,M[6])(M[50],M[59]):(0,M[84])(M[55],M[27]))}catch(L){(0,M[new Date(Y[37])/1E3])((0,M[75])((0,M[52])(M[56],M[7]),M[47],(0,M[36])(),M[54],M[39]),M[47],(0,M[47])((0,M[36])(),M[30],M[7]),(0,M[49])(),M[13],M[27])}try{M[32]>-5&&(0,M[6])(M[50],M[82]),M[69]!==8&&((((0,M[new Date(Y[70])/1E3])((0,M[14])(M[67],M[27]),M[14],M[72], M[35]),(0,M[56])(M[38],(0,M[6])((0,M[38])(M[45],M[47]),M[70],M[76],M[57]),(0,M[24])(M[57],M[62]),(0,M[32])(M[58],M[53]),M[4],M[57]),M[72])((0,M[17])(M[47],M[9]),M[74],M[45],M[61]),M[59])(M[29]),(0,M[36])(M[27],M[57]),(((0,M[77])(M[44],M[32]),M[39])(M[51],M[75]),M[4])(M[19],M[18])),(M[67]===-5||((0,M[4])((0,M[22])(),M[59],M[51]),Y[16]))&&(0,M[9])(M[34],M[83]),M[17]>=-1?((((((0,M[4])((0,M[6])(),M[57],M[83]),M[new Date(Y[40])/1E3])(M[83],M[68]),M[9])(M[80],M[83]),M[4])((0,M[22])(),M[59],M[51]),M[4])((0,M[61])(), M[59],M[71]),M[64])(M[10],M[54]):((0,M[64])(M[83],M[40]),(0,M[32])((0,M[64])(M[79],M[46]),M[1],M[61],M[14]),((0,M[7])(M[37],M[57]),M[47])(M[26],M[78]),M[3])((0,M[5])(),M[56],M[70])}catch(L){(0,M[7])((0,M[80])(M[70])*(0,M[3])((0,M[5])(),M[58],M[82]),M[3],(0,M[3])((0,M[21])(),M[58],M[70]),(0,M[43])(),M[10],M[70])}try{M[46]!=5&&(M[36]===3&&((0,M[85])((0,M[57])(M[65],M[82]),M[31],(0,M[40])(M[2],M[70]),M[8],M[64],M[70]),Y[72])||(0,M[31])(((0,M[40])(M[18],M[78]),M[57])(M[0],M[78]),M[52],M[73],M[35])),M[1]< -9&&(M[51]<-8?(0,M[34])((0,M[66])(M[12],M[7]),M[32],(0,M[34])(),M[39],M[23]):(0,M[60])((0,M[32])((0,M[50])(),M[87],M[79]),M[32],(0,M[1])(),M[14],M[23])),M[75]<=5&&((0,M[36])((0,M[86])(M[65],M[35]),M[37],(0,M[69])(M[73],M[19]),M[42],M[11]),Y[88])||((0,M[60])((0,M[78])(M[38],M[49]),M[15],M[48],M[11]),M[86])(M[54],M[79]),M[75]==-5?(0,M[60])((0,M[32])((0,M[34])(),M[87],M[79]),M[37],M[58],M[11]):(0,M[60])((0,M[86])(M[71],M[79]),M[78],M[79],M[53])}catch(L){((0,M[60])((0,M[37])(M[80],M[11]),M[4],M[0],M[81]), (0,M[4])(M[0],M[83]),M[21])(M[38])}}catch(L){return Y[80]+w}return D[Y[32]](Y[16])}; g.I3=function(w){this.name=w}; BiR=function(w){this.B_=Sy(w)}; UD=function(w){this.B_=Sy(w)}; xj=function(w){this.B_=Sy(w)}; frT=function(w){this.B_=Sy(w)}; Nx=function(w){this.B_=Sy(w)}; HP=function(w){this.B_=Sy(w)}; j2=function(w){this.B_=Sy(w)}; gy=function(w){this.B_=Sy(w)}; R3=function(w){this.B_=Sy(w)}; o3=function(w){this.B_=Sy(w)}; nj=function(w){this.B_=Sy(w)}; Fg=function(w){this.B_=Sy(w)}; GQ=function(w){this.B_=Sy(w)}; sD=function(w){this.B_=Sy(w)}; a3=function(w){this.B_=Sy(w)}; vP=function(w){this.B_=Sy(w,500)}; cP=function(w){this.B_=Sy(w)}; qx=function(w){this.B_=Sy(w)}; qjK=function(w){this.B_=Sy(w)}; rhl=function(){return g.w3("yt.ads.biscotti.lastId_")||""}; eaN=function(w){g.mC("yt.ads.biscotti.lastId_",w)}; e2=function(){var w=arguments,D=ry;w.length>1?D[w[0]]=w[1]:w.length===1&&Object.assign(D,w[0])}; g.Xg=function(w,D){return w in ry?ry[w]:D}; TQ=function(w){var D=ry.EXPERIMENT_FLAGS;return D?D[w]:void 0}; XjS=function(w){u7.forEach(function(D){return D(w)})}; g.Q6=function(w){return w&&window.yterr?function(){try{return w.apply(this,arguments)}catch(D){g.S2(D)}}:w}; g.S2=function(w){var D=g.w3("yt.logging.errors.log");D?D(w,"ERROR",void 0,void 0,void 0,void 0,void 0):(D=g.Xg("ERRORS",[]),D.push([w,"ERROR",void 0,void 0,void 0,void 0,void 0]),e2("ERRORS",D));XjS(w)}; JQ=function(w,D,M,L,Z){var k=g.w3("yt.logging.errors.log");k?k(w,"WARNING",D,M,L,void 0,Z):(k=g.Xg("ERRORS",[]),k.push([w,"WARNING",D,M,L,void 0,Z]),e2("ERRORS",k))}; zQ=function(w,D){D=w.split(D);for(var M={},L=0,Z=D.length;L1?w[1]:w[0])):{}}; m0=function(w,D){return QVK(w,D||{},!0)}; AQ=function(w,D){return QVK(w,D||{},!1)}; QVK=function(w,D,M){var L=w.split("#",2);w=L[0];L=L.length>1?"#"+L[1]:"";var Z=w.split("?",2);w=Z[0];Z=PP(Z[1]||"");for(var k in D)if(M||!g.l1(Z,k))Z[k]=D[k];return g.dh(w,Z)+L}; wz=function(w){if(!D)var D=window.location.href;var M=g.lX(w)[1]||null,L=g.ER(w);M&&L?(w=g.lX(w),D=g.lX(D),w=w[3]==D[3]&&w[1]==D[1]&&w[4]==D[4]):w=L?g.ER(D)===L&&(Number(g.lX(D)[4]||null)||null)===(Number(g.lX(w)[4]||null)||null):!0;return w}; DV=function(w){w||(w=document.location.href);w=g.lX(w)[1]||null;return w!==null&&w==="https"}; M2=function(w){w=JhR(w);return w===null?!1:w[0]==="com"&&w[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; zaG=function(w){w=JhR(w);return w===null?!1:w[1]==="google"?!0:w[2]==="google"?w[0]==="au"&&w[1]==="com"?!0:w[0]==="uk"&&w[1]==="co"?!0:!1:!1}; JhR=function(w){w=g.ER(w);return w!==null?w.split(".").reverse():null}; Tix=function(w){return w&&w.match(V4k)?w:F4(w)}; kE=function(w){var D=L7;w=w===void 0?rhl():w;var M=Object,L=M.assign,Z=ZV(D);var k=D.T;try{var b=k.screenX;var C=k.screenY}catch(v){}try{var l=k.outerWidth;var E=k.outerHeight}catch(v){}try{var p=k.innerWidth;var W=k.innerHeight}catch(v){}try{var h=k.screenLeft;var t=k.screenTop}catch(v){}try{p=k.innerWidth,W=k.innerHeight}catch(v){}try{var d=k.screen.availWidth;var N=k.screen.availTop}catch(v){}k=[h,t,b,C,d,N,l,E,p,W];b=wCG(!1,D.T.top);C={};var n=n===void 0?g.KI:n;l=new fo;"SVGElement"in n&&"createElementNS"in n.document&&l.set(0);E=C1r();E["allow-top-navigation-by-user-activation"]&&l.set(1);E["allow-popups-to-escape-sandbox"]&&l.set(2);n.crypto&&n.crypto.subtle&&l.set(3);"TextDecoder"in n&&"TextEncoder"in n&&l.set(4);n=xjj(l);D=(C.bc=n,C.bih=b.height,C.biw=b.width,C.brdim=k.join(),C.vis=bo(D.V),C.wgl=!!sg.WebGLRenderingContext,C);M=L.call(M,Z,D);M.ca_type="image";w&&(M.bid=w);return M}; ZV=function(w){var D={};D.dt=PjN;D.flash="0";a:{try{var M=w.T.top.location.href}catch(E){w=2;break a}w=M?M===w.V.location.href?0:1:2}D=(D.frm=w,D);try{D.u_tz=-(new Date).getTimezoneOffset();try{var L=sg.history.length}catch(E){L=0}D.u_his=L;var Z;D.u_h=(Z=sg.screen)==null?void 0:Z.height;var k;D.u_w=(k=sg.screen)==null?void 0:k.width;var b;D.u_ah=(b=sg.screen)==null?void 0:b.availHeight;var C;D.u_aw=(C=sg.screen)==null?void 0:C.availWidth;var l;D.u_cd=(l=sg.screen)==null?void 0:l.colorDepth}catch(E){}return D}; Kuj=function(){if(!Ovj)return null;var w=Ovj();return"open"in w?w:null}; g.YE=function(w){switch(bU(w)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; bU=function(w){return w&&"status"in w?w.status:-1}; g.C7=function(w,D){typeof w==="function"&&(w=g.Q6(w));return window.setTimeout(w,D)}; g.lU=function(w,D){typeof w==="function"&&(w=g.Q6(w));return window.setInterval(w,D)}; g.EO=function(w){window.clearTimeout(w)}; g.p7=function(w){window.clearInterval(w)}; g.hY=function(w){w=Wo(w);return typeof w==="string"&&w==="false"?!1:!!w}; g.tY=function(w,D){w=Wo(w);return w===void 0&&D!==void 0?D:Number(w||0)}; $E=function(){return g.Xg("EXPERIMENTS_TOKEN","")}; Wo=function(w){return g.Xg("EXPERIMENT_FLAGS",{})[w]}; iU=function(){for(var w=[],D=g.Xg("EXPERIMENTS_FORCED_FLAGS",{}),M=g.x(Object.keys(D)),L=M.next();!L.done;L=M.next())L=L.value,w.push({key:L,value:String(D[L])});M=g.Xg("EXPERIMENT_FLAGS",{});L=g.x(Object.keys(M));for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.startsWith("force_")&&D[Z]===void 0&&w.push({key:Z,value:String(M[Z])});return w}; dz=function(w,D,M,L,Z,k,b,C,l){function E(){(p&&"readyState"in p?p.readyState:0)===4&&D&&g.Q6(D)(p)} M=M===void 0?"GET":M;L=L===void 0?"":L;C=C===void 0?!1:C;var p=Kuj();if(!p)return null;"onloadend"in p?p.addEventListener("loadend",E,!1):p.onreadystatechange=E;g.hY("debug_forward_web_query_parameters")&&(w=mtS(w));p.open(M,w,!0);k&&(p.responseType=k);b&&(p.withCredentials=!0);M=M==="POST"&&(window.FormData===void 0||!(L instanceof FormData));if(Z=Ahj(w,Z))for(var W in Z)p.setRequestHeader(W,Z[W]),"content-type"===W.toLowerCase()&&(M=!1);M&&p.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); l&&"onprogress"in p&&(p.onprogress=function(){l(p.responseText)}); if(C&&"setAttributionReporting"in XMLHttpRequest.prototype){w={eventSourceEligible:!0,triggerEligible:!1};try{p.setAttributionReporting(w)}catch(h){JQ(h)}}p.send(L);return p}; Ahj=function(w,D){D=D===void 0?{}:D;var M=wz(w),L=g.Xg("INNERTUBE_CLIENT_NAME"),Z=g.hY("web_ajax_ignore_global_headers_if_set"),k;for(k in wxr){var b=g.Xg(wxr[k]),C=k==="X-Goog-AuthUser"||k==="X-Goog-PageId";k!=="X-Goog-Visitor-Id"||b||(b=g.Xg("VISITOR_DATA"));var l;if(!(l=!b)){if(!(l=M||(g.ER(w)?!1:!0))){l=w;var E;if(E=g.hY("add_auth_headers_to_remarketing_google_dot_com_ping")&&k==="Authorization"&&(L==="TVHTML5"||L==="TVHTML5_UNPLUGGED"||L==="TVHTML5_SIMPLY")&&zaG(l))l=p3(l)||"",l=l.split("/"), l="/"+(l.length>1?l[1]:""),E=l==="/pagead";l=E?!0:!1}l=!l}l||Z&&D[k]!==void 0||L==="TVHTML5_UNPLUGGED"&&C||(D[k]=b)}"X-Goog-EOM-Visitor-Id"in D&&"X-Goog-Visitor-Id"in D&&delete D["X-Goog-Visitor-Id"];if(M||!g.ER(w))D["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(M||!g.ER(w)){try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(W){}p&&(D["X-YouTube-Time-Zone"]=p)}document.location.hostname.endsWith("youtubeeducation.com")||!M&&g.ER(w)||(D["X-YouTube-Ad-Signals"]= V6(kE()));return D}; I_=function(w,D){D.method="POST";D.postParams||(D.postParams={});return g.y8(w,D)}; LeN=function(w,D){if(window.fetch&&D.format!=="XML"){var M={method:D.method||"GET",credentials:"same-origin"};D.headers&&(M.headers=D.headers);D.priority&&(M.priority=D.priority);w=D7k(w,D);var L=MDj(w,D);L&&(M.body=L);D.withCredentials&&(M.credentials="include");var Z=D.context||g.KI,k=!1,b;fetch(w,M).then(function(C){if(!k){k=!0;b&&g.EO(b);var l=C.ok,E=function(p){p=p||{};l?D.onSuccess&&D.onSuccess.call(Z,p,C):D.onError&&D.onError.call(Z,p,C);D.onFinish&&D.onFinish.call(Z,p,C)}; (D.format||"JSON")==="JSON"&&(l||C.status>=400&&C.status<500)?C.json().then(E,function(){E(null)}):E(null)}}).catch(function(){D.onError&&D.onError.call(Z,{},{})}); w=D.timeout||0;D.onFetchTimeout&&w>0&&(b=g.C7(function(){k||(k=!0,g.EO(b),D.onFetchTimeout.call(D.context||g.KI))},w))}else g.y8(w,D)}; g.y8=function(w,D){var M=D.format||"JSON";w=D7k(w,D);var L=MDj(w,D),Z=!1,k=ZSK(w,function(l){if(!Z){Z=!0;C&&g.EO(C);var E=g.YE(l),p=null,W=400<=l.status&&l.status<500,h=500<=l.status&&l.status<600;if(E||W||h)p=kjl(w,M,l,D.convertToSafeHtml);E&&(E=bSC(M,l,p));p=p||{};W=D.context||g.KI;E?D.onSuccess&&D.onSuccess.call(W,l,p):D.onError&&D.onError.call(W,l,p);D.onFinish&&D.onFinish.call(W,l,p)}},D.method,L,D.headers,D.responseType,D.withCredentials,!1,D.onProgress); L=D.timeout||0;if(D.onTimeout&&L>0){var b=D.onTimeout;var C=g.C7(function(){Z||(Z=!0,k.abort(),g.EO(C),b.call(D.context||g.KI,k))},L)}return k}; D7k=function(w,D){D.includeDomain&&(w=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+w);var M=g.Xg("XSRF_FIELD_NAME");if(D=D.urlParams)D[M]&&delete D[M],w=m0(w,D);return w}; MDj=function(w,D){var M=g.Xg("XSRF_FIELD_NAME"),L=g.Xg("XSRF_TOKEN"),Z=D.postBody||"",k=D.postParams,b=g.Xg("XSRF_FIELD_NAME"),C;D.headers&&(C=D.headers["Content-Type"]);D.excludeXsrf||g.ER(w)&&!D.withCredentials&&g.ER(w)!==document.location.hostname||D.method!=="POST"||C&&C!=="application/x-www-form-urlencoded"||D.postParams&&D.postParams[b]||(k||(k={}),k[M]=L);(g.hY("ajax_parse_query_data_only_when_filled")&&k&&Object.keys(k).length>0||k)&&typeof Z==="string"&&(Z=PP(Z),g.dC(Z,k),Z=D.postBodyFormat&& D.postBodyFormat==="JSON"?JSON.stringify(Z):g.iX(Z));k=Z||k&&!g.WD(k);!YFN&&k&&D.method!=="POST"&&(YFN=!0,g.S2(Error("AJAX request with postData should use POST")));return Z}; kjl=function(w,D,M,L){var Z=null;switch(D){case "JSON":try{var k=M.responseText}catch(b){throw L=Error("Error reading responseText"),L.params=w,JQ(L),b;}w=M.getResponseHeader("Content-Type")||"";k&&w.indexOf("json")>=0&&(k.substring(0,5)===")]}'\n"&&(k=k.substring(5)),Z=JSON.parse(k));break;case "XML":if(w=(w=M.responseXML)?C_a(w):null)Z={},g.PQ(w.getElementsByTagName("*"),function(b){Z[b.tagName]=lLK(b)})}L&&EaI(Z); return Z}; EaI=function(w){if(g.ZZ(w))for(var D in w)D==="html_content"||TRI(D,"_html")?w[D]=hv(w[D]):EaI(w[D])}; bSC=function(w,D,M){if(D&&D.status===204)return!0;switch(w){case "JSON":return!!M;case "XML":return Number(M&&M.return_code)===0;case "RAW":return!0;default:return!!M}}; C_a=function(w){return w?(w=("responseXML"in w?w.responseXML:w).getElementsByTagName("root"))&&w.length>0?w[0]:null:null}; lLK=function(w){var D="";g.PQ(w.childNodes,function(M){D+=M.nodeValue}); return D}; mtS=function(w){var D=window.location.search,M=g.ER(w);g.hY("debug_handle_relative_url_for_query_forward_killswitch")||!M&&wz(w)&&(M=document.location.hostname);var L=p3(w);L=(M=M&&(M.endsWith("youtube.com")||M.endsWith("youtube-nocookie.com")))&&L&&L.startsWith("/api/");if(!M||L)return w;var Z=PP(D),k={};g.PQ(pxk,function(b){Z[b]&&(k[b]=Z[b])}); return AQ(w,k)}; xE=function(w,D){var M=g.$O(D),L;return(new g.RV(function(Z,k){M.onSuccess=function(b){g.YE(b)?Z(new Wea(b)):k(new UO("Request failed, status="+bU(b),"net.badstatus",b))}; M.onError=function(b){k(new UO("Unknown request error","net.unknown",b))}; M.onTimeout=function(b){k(new UO("Request timed out","net.timeout",b))}; L=g.y8(w,M)})).V8(function(Z){if(Z instanceof aV){var k; (k=L)==null||k.abort()}return FW(Z)})}; g.N2=function(w,D,M,L,Z,k){function b(l,E,p){return l.V8(function(W){if(E<=0||bU(W.xhr)===403)return FW(new UO("Request retried too many times","net.retryexhausted",W.xhr,W));var h=Math.pow(2,M-E+1)*p,t=Z>0?Math.min(Z,h):h;return C(p).then(function(){k&&k(W,E-1);return b(xE(w,D),E-1,t)})})} function C(l){return new g.RV(function(E){setTimeout(E,l)})} Z=Z===void 0?-1:Z;return b(xE(w,D),M-1,L)}; UO=function(w,D,M){tx.call(this,w+", errorCode="+D);this.errorCode=D;this.xhr=M;this.name="PromiseAjaxError"}; Wea=function(w){this.xhr=w}; Ho=function(w){this.T=w===void 0?null:w;this.L=0;this.V=null}; jJ=function(w){var D=new Ho;w=w===void 0?null:w;D.L=2;D.V=w===void 0?null:w;return D}; gz=function(w){var D=new Ho;w=w===void 0?null:w;D.L=1;D.V=w===void 0?null:w;return D}; g.n7=function(w,D,M,L,Z){R_||o_.set(""+w,D,{bL:M,path:"/",domain:L===void 0?"youtube.com":L,secure:Z===void 0?!1:Z})}; g.FN=function(w,D){if(!R_)return o_.get(""+w,D)}; g.Gu=function(w,D,M){R_||o_.remove(""+w,D===void 0?"/":D,M===void 0?"youtube.com":M)}; h4j=function(){if(g.hY("embeds_web_enable_cookie_detection_fix")){if(!g.KI.navigator.cookieEnabled)return!1}else if(!o_.isEnabled())return!1;if(!o_.isEmpty())return!0;g.hY("embeds_web_enable_cookie_detection_fix")?o_.set("TESTCOOKIESENABLED","1",{bL:60,Hyk:"none",secure:!0}):o_.set("TESTCOOKIESENABLED","1",{bL:60});if(o_.get("TESTCOOKIESENABLED")!=="1")return!1;o_.remove("TESTCOOKIESENABLED");return!0}; g.Q=function(w,D){if(w)return w[D.name]}; sO=function(w){var D=g.Xg("INNERTUBE_HOST_OVERRIDE");D&&(w=String(D)+String(W2(w)));return w}; tDl=function(w){var D={};g.hY("json_condensed_response")&&(D.prettyPrint="false");return w=AQ(w,D)}; a_=function(w,D){var M=M===void 0?{}:M;w={method:D===void 0?"POST":D,mode:wz(w)?"same-origin":"cors",credentials:wz(w)?"same-origin":"include"};D={};for(var L=g.x(Object.keys(M)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,M[Z]&&(D[Z]=M[Z]);Object.keys(D).length>0&&(w.headers=D);return w}; vo=function(){var w=/Chrome\/(\d+)/.exec(g.qc());return w?parseFloat(w[1]):NaN}; co=function(){var w=/\sCobalt\/(\S+)\s/.exec(g.qc());if(!w)return NaN;var D=[];w=g.x(w[1].split("."));for(var M=w.next();!M.done;M=w.next())M=parseInt(M.value,10),M>=0&&D.push(M);return parseFloat(D.join("."))}; f7=function(){return g.Bo("android")&&g.Bo("chrome")&&!(g.Bo("trident/")||g.Bo("edge/"))&&!g.Bo("cobalt")}; $7k=function(){return g.Bo("armv7")||g.Bo("aarch64")||g.Bo("android")}; g.q2=function(){return g.Bo("cobalt")}; rz=function(){return g.Bo("cobalt")&&g.Bo("appletv")}; eJ=function(){return g.Bo("(ps3; leanback shell)")||g.Bo("ps3")&&g.q2()}; iSG=function(){return g.Bo("(ps4; leanback shell)")||g.Bo("ps4")&&g.q2()}; g.d7S=function(){return g.q2()&&(g.Bo("ps4 vr")||g.Bo("ps4 pro vr"))}; XN=function(){var w=/WebKit\/([0-9]+)/.exec(g.qc());return!!(w&&parseInt(w[1],10)>=600)}; Tu=function(){var w=/WebKit\/([0-9]+)/.exec(g.qc());return!!(w&&parseInt(w[1],10)>=602)}; yuG=function(){return g.Bo("iemobile")||g.Bo("windows phone")&&g.Bo("edge")}; Q8=function(){return(uU||SJ)&&g.Bo("applewebkit")&&!g.Bo("version")&&(!g.Bo("safari")||g.Bo("gsa/"))}; zu=function(){return g.JY&&g.Bo("version/")}; V8=function(){return g.Bo("smart-tv")&&g.Bo("samsung")}; g.Bo=function(w){var D=g.qc();return D?D.toLowerCase().indexOf(w)>=0:!1}; Po=function(){return w2x()||Q8()||zu()?!0:g.Xg("EOM_VISITOR_DATA")?!1:!0}; OO=function(w,D){return D===void 0||D===null?w:D==="1"||D===!0||D===1||D==="True"?!0:!1}; K7=function(w,D,M){for(var L in M)if(M[L]==D)return M[L];return w}; mU=function(w,D){return D===void 0||D===null?w:Number(D)}; AY=function(w,D){return D===void 0||D===null?w:D.toString()}; wQ=function(w,D){if(D){if(w==="fullwidth")return Infinity;if(w==="fullheight")return 0}return w&&(D=w.match(ILk))&&(w=Number(D[2]),D=Number(D[1]),!isNaN(w)&&!isNaN(D)&&w>0)?D/w:NaN}; Dx=function(w){var D=w.docid||w.video_id||w.videoId||w.id;if(D)return D;D=w.raw_player_response;D||(w=w.player_response)&&(D=JSON.parse(w));return D&&D.videoDetails&&D.videoDetails.videoId||null}; U7C=function(w){return MA(w,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.Le=function(w){return w==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||w==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; MA=function(w,D){D=(D===void 0?0:D)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(D="EMBEDDED_PLAYER_MODE_PFL");var M=w.raw_embedded_player_response;if(!M&&(w=w.embedded_player_response))try{M=JSON.parse(w)}catch(L){return D}return M?K7(D,M.embeddedPlayerMode,x7I):D}; k7=function(w){tx.call(this,w.message||w.description||w.name);this.isMissing=w instanceof Zx;this.isTimeout=w instanceof UO&&w.errorCode=="net.timeout";this.isCanceled=w instanceof aV}; Zx=function(){tx.call(this,"Biscotti ID is missing from server")}; NLI=function(){if(g.hY("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Po())return Error("User has not consented - not fetching biscotti id.");var w=g.Xg("PLAYER_VARS",{});if(g.h7(w,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(U7C(w))return Error("Biscotti id fetching has been disabled for pfl.")}; R4k=function(){var w=NLI();if(w!==void 0)return FW(w);bC||(bC=xE("//googleads.g.doubleclick.net/pagead/id",HST).then(jcG).V8(function(D){return gax(2,D)})); return bC}; jcG=function(w){w=w.xhr.responseText;if(!Gk(w,")]}'"))throw new Zx;w=JSON.parse(w.substr(4));if((w.type||1)>1)throw new Zx;w=w.id;eaN(w);bC=gz(w);oaI(18E5,2);return w}; gax=function(w,D){D=new k7(D);eaN("");bC=jJ(D);w>0&&oaI(12E4,w-1);throw D;}; oaI=function(w,D){g.C7(function(){xE("//googleads.g.doubleclick.net/pagead/id",HST).then(jcG,function(M){return gax(D,M)}).V8(g.vb)},w)}; naj=function(){try{var w=g.w3("yt.ads.biscotti.getId_");return w?w():R4k()}catch(D){return FW(D)}}; Gja=function(w){w&&(w.dataset?w.dataset[FeS()]="true":Lra(w))}; scj=function(w){return w?w.dataset?w.dataset[FeS()]:w.getAttribute("data-loaded"):null}; FeS=function(){return aLC.loaded||(aLC.loaded="loaded".replace(/\-([a-z])/g,function(w,D){return D.toUpperCase()}))}; vax=function(){var w=document;if("visibilityState"in w)return w.visibilityState;var D=Y7+"VisibilityState";if(D in w)return w[D]}; Ce=function(w,D){var M;uX(w,function(L){M=D[L];return!!M}); return M}; lC=function(w){if(w.requestFullscreen)w=w.requestFullscreen(void 0);else if(w.webkitRequestFullscreen)w=w.webkitRequestFullscreen();else if(w.mozRequestFullScreen)w=w.mozRequestFullScreen();else if(w.msRequestFullscreen)w=w.msRequestFullscreen();else if(w.webkitEnterFullscreen)w=w.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return w instanceof Promise?w:Promise.resolve()}; Wg=function(w){var D;g.E4()?pe()==w&&(D=document):D=w;return D&&(w=Ce(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],D))?(D=w.call(D),D instanceof Promise?D:Promise.resolve()):Promise.resolve()}; cuS=function(w){return g.y1(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(D){return"on"+D.toLowerCase()in w})}; BLr=function(){var w=document;return g.y1(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(D){return"on"+D.toLowerCase()in w})}; g.E4=function(){return!!Ce(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; pe=function(w){w=w===void 0?!1:w;var D=Ce(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(w)for(;D&&D.shadowRoot;)D=D.shadowRoot.fullscreenElement;return D?D:null}; ha=function(w){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(w=w||window.event){this.event=w;for(var D in w)D in fLl||(this[D]=w[D]);this.scale=w.scale;this.rotation=w.rotation;var M=w.target||w.srcElement;M&&M.nodeType==3&&(M=M.parentNode);this.target=M;var L=w.relatedTarget; if(L)try{L=L.nodeName?L:null}catch(Z){L=null}else this.type=="mouseover"?L=w.fromElement:this.type=="mouseout"&&(L=w.toElement);this.relatedTarget=L;this.clientX=w.clientX!=void 0?w.clientX:w.pageX;this.clientY=w.clientY!=void 0?w.clientY:w.pageY;this.keyCode=w.keyCode?w.keyCode:w.which;this.charCode=w.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=w.altKey;this.ctrlKey=w.ctrlKey;this.shiftKey=w.shiftKey;this.metaKey=w.metaKey;this.T=w.pageX;this.V=w.pageY}}catch(Z){}}; qFk=function(w){if(document.body&&document.documentElement){var D=document.body.scrollTop+document.documentElement.scrollTop;w.T=w.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);w.V=w.clientY+D}}; ruk=function(w,D,M,L){L=L===void 0?{}:L;w.addEventListener&&(D!="mouseenter"||"onmouseenter"in document?D!="mouseleave"||"onmouseenter"in document?D=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(D="MozMousePixelScroll"):D="mouseout":D="mouseover");return pW(ta,function(Z){var k=typeof Z[4]==="boolean"&&Z[4]==!!L,b=g.ZZ(Z[4])&&g.ZZ(L)&&g.t7(Z[4],L);return!!Z.length&&Z[0]==w&&Z[1]==D&&Z[2]==M&&(k||b)})}; g.$7=function(w,D,M,L){L=L===void 0?{}:L;if(!w||!w.addEventListener&&!w.attachEvent)return"";var Z=ruk(w,D,M,L);if(Z)return Z;Z=++e4J.count+"";var k=!(D!="mouseenter"&&D!="mouseleave"||!w.addEventListener||"onmouseenter"in document);var b=k?function(C){C=new ha(C);if(!Hb(C.relatedTarget,function(l){return l==w},!0))return C.currentTarget=w,C.type=D,M.call(w,C)}:function(C){C=new ha(C); C.currentTarget=w;return M.call(w,C)}; b=g.Q6(b);w.addEventListener?(D=="mouseenter"&&k?D="mouseover":D=="mouseleave"&&k?D="mouseout":D=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(D="MozMousePixelScroll"),XxI()||typeof L==="boolean"?w.addEventListener(D,b,L):w.addEventListener(D,b,!!L.capture)):w.attachEvent("on"+D,b);ta[Z]=[w,D,M,b,L];return Z}; uvl=function(w){return TLJ(w,function(D){return g.mp(D,"ytp-ad-has-logging-urls")})}; TLJ=function(w,D){var M=document.body||document;return g.$7(M,"click",function(L){var Z=Hb(L.target,function(k){return k===M||D(k)},!0); Z&&Z!==M&&!Z.disabled&&(L.currentTarget=Z,w.call(Z,L))})}; g.iC=function(w){w&&(typeof w=="string"&&(w=[w]),g.PQ(w,function(D){if(D in ta){var M=ta[D],L=M[0],Z=M[1],k=M[3];M=M[4];L.removeEventListener?XxI()||typeof M==="boolean"?L.removeEventListener(Z,k,M):L.removeEventListener(Z,k,!!M.capture):L.detachEvent&&L.detachEvent("on"+Z,k);delete ta[D]}}))}; dQ=function(w){for(var D in ta)ta[D][0]==w&&g.iC(D)}; y$=function(w){w=w||window.event;var D;w.composedPath&&typeof w.composedPath==="function"?D=w.composedPath():D=w.path;D&&D.length?w=D[0]:(w=w||window.event,w=w.target||w.srcElement,w.nodeType==3&&(w=w.parentNode));return w}; Ij=function(w){this.G=w;this.T=null;this.D=0;this.Y=null;this.W=0;this.V=[];for(w=0;w<4;w++)this.V.push(0);this.L=0;this.V7=g.$7(window,"mousemove",(0,g.Ck)(this.B,this));this.U=g.lU((0,g.Ck)(this.y7,this),25)}; U4=function(w){g.X.call(this);this.G=[];this.TU=w||this}; x7=function(w,D,M,L){for(var Z=0;Z0?M:0;M=L?Date.now()+L*1E3:0;if((L=L?(0,g.Hg)():jY())&&window.JSON){typeof D!=="string"&&(D=JSON.stringify(D,void 0));try{L.set(w,D,M)}catch(Z){L.remove(w)}}}; g.Rj=function(w){var D=jY(),M=(0,g.Hg)();if(!D&&!M||!window.JSON)return null;try{var L=D.get(w)}catch(Z){}if(typeof L!=="string")try{L=M.get(w)}catch(Z){}if(typeof L!=="string")return null;try{L=JSON.parse(L,void 0)}catch(Z){}return L}; QcK=function(){var w=(0,g.Hg)();if(w&&(w=w.V("yt-player-quality")))return w.creation}; g.oj=function(w){try{var D=jY(),M=(0,g.Hg)();D&&D.remove(w);M&&M.remove(w)}catch(L){}}; g.ne=function(){return g.Rj("yt-remote-session-screen-id")}; JuS=function(w){var D=this;this.V=void 0;this.T=!1;w.addEventListener("beforeinstallprompt",function(M){M.preventDefault();D.V=M}); w.addEventListener("appinstalled",function(){D.T=!0},{once:!0})}; FR=function(){if(!g.KI.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.KI.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.KI.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.KI.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.KI.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(w){return"WEB_DISPLAY_MODE_UNKNOWN"}}; G_=function(){this.TF=!0}; z4J=function(){G_.instance||(G_.instance=new G_);return G_.instance}; VDl=function(w){switch(w){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}}; P_G=function(){this.T=g.Xg("ALT_PREF_COOKIE_NAME","PREF");this.V=g.Xg("ALT_PREF_COOKIE_DOMAIN","youtube.com");var w=g.FN(this.T);w&&this.parse(w)}; g.aj=function(){s4||(s4=new P_G);return s4}; cg=function(w,D){var M="f"+(Math.floor(w/31)+1);w=1<0;)switch(w=MD.shift(),w.type){case "ERROR":mE.Xd(w.payload);break;case "EVENT":mE.logEvent(w.eventType,w.payload)}}; ZD=function(w){Lf||(mE?mE.Xd(w):(MD.push({type:"ERROR",payload:w}),MD.length>10&&MD.shift()))}; kq=function(w,D){Lf||(mE?mE.logEvent(w,D):(MD.push({type:"EVENT",eventType:w,payload:D}),MD.length>10&&MD.shift()))}; bE=function(w){if(w.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; Yq=function(w){return w.substr(0,w.indexOf(":"))||w}; g.Cf=function(w,D,M,L,Z){D=D===void 0?{}:D;M=M===void 0?ZoK[w]:M;L=L===void 0?kCS[w]:L;Z=Z===void 0?boK[w]:Z;g.qA.call(this,M,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:w},D));this.type=w;this.message=M;this.level=L;this.T=Z;Object.setPrototypeOf(this,g.Cf.prototype)}; lE=function(w,D){g.Cf.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:D,foundObjectStores:w},ZoK.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,lE.prototype)}; E6=function(w,D){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.index=w;this.objectStore=D;Object.setPrototypeOf(this,E6.prototype)}; WT=function(w,D,M,L){D=Yq(D);var Z=w instanceof Error?w:Error("Unexpected error: "+w);if(Z instanceof g.Cf)return Z;w={objectStoreNames:M,dbName:D,dbVersion:L};if(Z.name==="QuotaExceededError")return new g.Cf("QUOTA_EXCEEDED",w);if(g.pf&&Z.name==="UnknownError")return new g.Cf("QUOTA_MAYBE_EXCEEDED",w);if(Z instanceof E6)return new g.Cf("MISSING_INDEX",Object.assign({},w,{objectStore:Z.objectStore,index:Z.index}));if(Z.name==="InvalidStateError"&&YAa.some(function(k){return Z.message.includes(k)}))return new g.Cf("EXECUTE_TRANSACTION_ON_CLOSED_DB", w); if(Z.name==="AbortError")return new g.Cf("UNKNOWN_ABORT",w,Z.message);Z.args=[Object.assign({},w,{name:"IdbError",Mz:Z.name})];Z.level="WARNING";return Z}; g.h5=function(w,D,M){var L=Ke();return new g.Cf("IDB_NOT_SUPPORTED",{context:{caller:w,publicName:D,version:M,hasSucceededOnce:L==null?void 0:L.hasSucceededOnce}})}; CiK=function(w){if(!w)throw Error();throw w;}; lfx=function(w){return w}; t5=function(w){this.T=w}; g.$q=function(w){function D(Z){if(L.state.status==="PENDING"){L.state={status:"REJECTED",reason:Z};Z=g.x(L.V);for(var k=Z.next();!k.done;k=Z.next())k=k.value,k()}} function M(Z){if(L.state.status==="PENDING"){L.state={status:"FULFILLED",value:Z};Z=g.x(L.T);for(var k=Z.next();!k.done;k=Z.next())k=k.value,k()}} var L=this;this.state={status:"PENDING"};this.T=[];this.V=[];w=w.T;try{w(M,D)}catch(Z){D(Z)}}; EAT=function(w,D,M,L,Z){try{if(w.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var k=M(w.state.value);k instanceof g.$q?iE(w,D,k,L,Z):L(k)}catch(b){Z(b)}}; pfT=function(w,D,M,L,Z){try{if(w.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var k=M(w.state.reason);k instanceof g.$q?iE(w,D,k,L,Z):L(k)}catch(b){Z(b)}}; iE=function(w,D,M,L,Z){D===M?Z(new TypeError("Circular promise chain detected.")):M.then(function(k){k instanceof g.$q?iE(w,D,k,L,Z):L(k)},function(k){Z(k)})}; WpS=function(w,D,M){function L(){M(w.error);k()} function Z(){D(w.result);k()} function k(){try{w.removeEventListener("success",Z),w.removeEventListener("error",L)}catch(b){}} w.addEventListener("success",Z);w.addEventListener("error",L)}; h7x=function(w){return new Promise(function(D,M){WpS(w,D,M)})}; d_=function(w){return new g.$q(new t5(function(D,M){WpS(w,D,M)}))}; yX=function(w,D){return new g.$q(new t5(function(M,L){function Z(){var k=w?D(w):null;k?k.then(function(b){w=b;Z()},L):M()} Z()}))}; t3T=function(w,D){this.request=w;this.cursor=D}; $hK=function(w){return d_(w).then(function(D){return D?new t3T(w,D):null})}; g.iol=function(w){w.cursor.continue(void 0);return $hK(w.request)}; dhr=function(w,D){this.T=w;this.options=D;this.transactionCount=0;this.L=Math.round((0,g.IC)());this.V=!1}; U6=function(){return g.hY("idb_immediate_commit")}; g.ND=function(w,D,M){w=w.T.createObjectStore(D,M);return new xq(w)}; HT=function(w,D){w.T.objectStoreNames.contains(D)&&w.T.deleteObjectStore(D)}; g.RC=function(w,D,M){return g.j$(w,[D],{mode:"readwrite",J1:!0,commit:U6()},function(L){return g.g_(L.objectStore(D),M)})}; g.j$=function(w,D,M,L){var Z,k,b,C,l,E,p,W,h,t,d,N;return g.B(function(n){switch(n.T){case 1:var v={mode:"readonly",J1:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof M==="string"?v.mode=M:Object.assign(v,M);Z=v;w.transactionCount++;k=Z.J1?3:1;b=0;case 2:if(C){n.KV(4);break}b++;l=Math.round((0,g.IC)());g.jN(n,5);E=w.T.transaction(D,Z.mode);v=!!Z.commit;var G=new oC(E);v=yBj(G,L,v);return g.c(n,v,7);case 7:return p=n.V,W=Math.round((0,g.IC)()),IfN(w,l,W,b,void 0,D.join(),Z),n.return(p);case 5:h=g.FK(n); t=Math.round((0,g.IC)());d=WT(h,w.T.name,D.join(),w.T.version);if((N=d instanceof g.Cf&&!d.T)||b>=k)IfN(w,l,t,b,d,D.join(),Z),C=d;n.KV(2);break;case 4:return n.return(Promise.reject(C))}})}; IfN=function(w,D,M,L,Z,k,b){D=M-D;Z?(Z instanceof g.Cf&&(Z.type==="QUOTA_EXCEEDED"||Z.type==="QUOTA_MAYBE_EXCEEDED")&&kq("QUOTA_EXCEEDED",{dbName:Yq(w.T.name),objectStoreNames:k,transactionCount:w.transactionCount,transactionMode:b.mode}),Z instanceof g.Cf&&Z.type==="UNKNOWN_ABORT"&&(M-=w.L,M<0&&M>=2147483648&&(M=0),kq("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:k,transactionDuration:D,transactionCount:w.transactionCount,dbDuration:M}),w.V=!0),Uhj(w,!1,L,k,D,b.tag),ZD(Z)):Uhj(w,!0,L,k,D, b.tag)}; Uhj=function(w,D,M,L,Z,k){kq("TRANSACTION_ENDED",{objectStoreNames:L,connectionHasUnknownAbortedTransaction:w.V,duration:Z,isSuccessful:D,tryCount:M,tag:k===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":k})}; xq=function(w){this.T=w}; g.nf=function(w,D,M){w.T.createIndex(D,M,{unique:!1})}; xhK=function(w,D){return g.FT(w,{query:D},function(M){return M.delete().then(function(){return g.GV(M)})}).then(function(){})}; NGJ=function(w,D,M){var L=[];return g.FT(w,{query:D},function(Z){if(!(M!==void 0&&L.length>=M))return L.push(Z.getValue()),g.GV(Z)}).then(function(){return L})}; j5k=function(w){return"getAllKeys"in IDBObjectStore.prototype?d_(w.T.getAllKeys(void 0,void 0)):HoC(w)}; HoC=function(w){var D=[];return g.gAk(w,{query:void 0},function(M){D.push(M.cursor.primaryKey);return g.iol(M)}).then(function(){return D})}; g.g_=function(w,D,M){return d_(w.T.put(D,M))}; g.FT=function(w,D,M){w=w.T.openCursor(D.query,D.direction);return s6(w).then(function(L){return yX(L,M)})}; g.gAk=function(w,D,M){var L=D.query;D=D.direction;w="openKeyCursor"in IDBObjectStore.prototype?w.T.openKeyCursor(L,D):w.T.openCursor(L,D);return $hK(w).then(function(Z){return yX(Z,M)})}; oC=function(w){var D=this;this.T=w;this.L=new Map;this.V=!1;this.done=new Promise(function(M,L){D.T.addEventListener("complete",function(){M()}); D.T.addEventListener("error",function(Z){Z.currentTarget===Z.target&&L(D.T.error)}); D.T.addEventListener("abort",function(){var Z=D.T.error;if(Z)L(Z);else if(!D.V){Z=g.Cf;for(var k=D.T.objectStoreNames,b=[],C=0;C=M))return L.push(Z.getValue()),g.GV(Z)}).then(function(){return L})}; g.aC=function(w,D,M){w=w.T.openCursor(D.query===void 0?null:D.query,D.direction===void 0?"next":D.direction);return s6(w).then(function(L){return yX(L,M)})}; vT=function(w,D){this.request=w;this.cursor=D}; s6=function(w){return d_(w).then(function(D){return D?new vT(w,D):null})}; g.GV=function(w){w.cursor.continue(void 0);return s6(w.request)}; nAS=function(w,D,M){return new Promise(function(L,Z){function k(){h||(h=new dhr(b.result,{closed:W}));return h} var b=D!==void 0?self.indexedDB.open(w,D):self.indexedDB.open(w);var C=M.blocked,l=M.blocking,E=M.iyd,p=M.upgrade,W=M.closed,h;b.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(b.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&kq("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:Yq(w)});var d=k(),N=new oC(b.transaction); p&&p(d,function(n){return t.oldVersion=n},N); N.done.catch(function(n){Z(n)})}catch(n){Z(n)}}); b.addEventListener("success",function(){var t=b.result;l&&t.addEventListener("versionchange",function(){l(k())}); t.addEventListener("close",function(){kq("IDB_UNEXPECTEDLY_CLOSED",{dbName:Yq(w),dbVersion:t.version});E&&E()}); L(k())}); b.addEventListener("error",function(){Z(b.error)}); C&&b.addEventListener("blocked",function(){C()})})}; FpK=function(w,D,M){M=M===void 0?{}:M;return nAS(w,D,M)}; cT=function(w,D){D=D===void 0?{}:D;var M,L,Z,k;return g.B(function(b){if(b.T==1)return g.jN(b,2),M=self.indexedDB.deleteDatabase(w),L=D,(Z=L.blocked)&&M.addEventListener("blocked",function(){Z()}),g.c(b,h7x(M),4); if(b.T!=2)return g.oT(b,0);k=g.FK(b);throw WT(k,w,"",-1);})}; BT=function(w,D){this.name=w;this.options=D;this.L=!0;this.W=this.D=0}; GCx=function(w,D){return new g.Cf("INCOMPATIBLE_DB_VERSION",{dbName:w.name,oldVersion:w.options.version,newVersion:D})}; g.ff=function(w,D){if(!D)throw g.h5("openWithToken",Yq(w.name));return w.open()}; s5N=function(w,D){var M;return g.B(function(L){if(L.T==1)return g.c(L,g.ff(qD,D),2);M=L.V;return L.return(g.j$(M,["databases"],{J1:!0,mode:"readwrite"},function(Z){var k=Z.objectStore("databases");return k.get(w.actualName).then(function(b){if(b?w.actualName!==b.actualName||w.publicName!==b.publicName||w.userIdentifier!==b.userIdentifier:1)return g.g_(k,w).then(function(){})})}))})}; r_=function(w,D){var M;return g.B(function(L){if(L.T==1)return w?g.c(L,g.ff(qD,D),2):L.return();M=L.V;return L.return(M.delete("databases",w))})}; afI=function(w,D){var M,L;return g.B(function(Z){return Z.T==1?(M=[],g.c(Z,g.ff(qD,D),2)):Z.T!=3?(L=Z.V,g.c(Z,g.j$(L,["databases"],{J1:!0,mode:"readonly"},function(k){M.length=0;return g.FT(k.objectStore("databases"),{},function(b){w(b.getValue())&&M.push(b.getValue());return g.GV(b)})}),3)):Z.return(M)})}; vAj=function(w,D){return afI(function(M){return M.publicName===w&&M.userIdentifier!==void 0},D)}; cBk=function(){var w,D,M,L;return g.B(function(Z){switch(Z.T){case 1:w=Ke();if((D=w)==null?0:D.hasSucceededOnce)return Z.return(!0);if(e$&&XN()&&!Tu()||g.XT)return Z.return(!1);try{if(M=self,!(M.indexedDB&&M.IDBIndex&&M.IDBKeyRange&&M.IDBObjectStore))return Z.return(!1)}catch(k){return Z.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Z.return(!1);g.jN(Z,2);L={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.c(Z,s5N(L,TV),4);case 4:return g.c(Z,r_("yt-idb-test-do-not-use",TV),5);case 5:return Z.return(!0);case 2:return g.FK(Z),Z.return(!1)}})}; BGl=function(){if(uE!==void 0)return uE;Lf=!0;return uE=cBk().then(function(w){Lf=!1;var D;if((D=O4())!=null&&D.T){var M;D={hasSucceededOnce:((M=Ke())==null?void 0:M.hasSucceededOnce)||w};var L;(L=O4())==null||L.set("LAST_RESULT_ENTRY_KEY",D,2592E3,!0)}return w})}; S$=function(){return g.w3("ytglobal.idbToken_")||void 0}; g.QX=function(){var w=S$();return w?Promise.resolve(w):BGl().then(function(D){(D=D?TV:void 0)&&g.mC("ytglobal.idbToken_",D);return D})}; ffN=function(w){if(!g.eY())throw w=new g.Cf("AUTH_INVALID",{dbName:w}),ZD(w),w;var D=g.rQ();return{actualName:w+":"+D,publicName:w,userIdentifier:D}}; qAI=function(w,D,M,L){var Z,k,b,C,l,E;return g.B(function(p){switch(p.T){case 1:return k=(Z=Error().stack)!=null?Z:"",g.c(p,g.QX(),2);case 2:b=p.V;if(!b)throw C=g.h5("openDbImpl",w,D),g.hY("ytidb_async_stack_killswitch")||(C.stack=C.stack+"\n"+k.substring(k.indexOf("\n")+1)),ZD(C),C;bE(w);l=M?{actualName:w,publicName:w,userIdentifier:void 0}:ffN(w);g.jN(p,3);return g.c(p,s5N(l,b),5);case 5:return g.c(p,FpK(l.actualName,D,L),6);case 6:return p.return(p.V);case 3:return E=g.FK(p),g.jN(p,7),g.c(p,r_(l.actualName, b),9);case 9:g.oT(p,8);break;case 7:g.FK(p);case 8:throw E;}})}; rBR=function(w,D,M){M=M===void 0?{}:M;return qAI(w,D,!1,M)}; e7K=function(w,D,M){M=M===void 0?{}:M;return qAI(w,D,!0,M)}; XfC=function(w,D){D=D===void 0?{}:D;var M,L;return g.B(function(Z){if(Z.T==1)return g.c(Z,g.QX(),2);if(Z.T!=3){M=Z.V;if(!M)return Z.return();bE(w);L=ffN(w);return g.c(Z,cT(L.actualName,D),3)}return g.c(Z,r_(L.actualName,M),0)})}; TGK=function(w,D,M){w=w.map(function(L){return g.B(function(Z){return Z.T==1?g.c(Z,cT(L.actualName,D),2):g.c(Z,r_(L.actualName,M),0)})}); return Promise.all(w).then(function(){})}; urj=function(w){var D=D===void 0?{}:D;var M,L;return g.B(function(Z){if(Z.T==1)return g.c(Z,g.QX(),2);if(Z.T!=3){M=Z.V;if(!M)return Z.return();bE(w);return g.c(Z,vAj(w,M),3)}L=Z.V;return g.c(Z,TGK(L,D,M),0)})}; SAa=function(w,D){D=D===void 0?{}:D;var M;return g.B(function(L){if(L.T==1)return g.c(L,g.QX(),2);if(L.T!=3){M=L.V;if(!M)return L.return();bE(w);return g.c(L,cT(w,D),3)}return g.c(L,r_(w,M),0)})}; J5=function(w,D){BT.call(this,w,D);this.options=D;bE(w)}; Q5R=function(w,D){var M;return function(){M||(M=new J5(w,D));return M}}; g.zV=function(w,D){return Q5R(w,D)}; VX=function(w){return g.ff(JBI(),w)}; z7N=function(w,D,M,L){var Z,k,b;return g.B(function(C){switch(C.T){case 1:return Z={config:w,hashData:D,timestamp:L!==void 0?L:(0,g.IC)()},g.c(C,VX(M),2);case 2:return k=C.V,g.c(C,k.clear("hotConfigStore"),3);case 3:return g.c(C,g.RC(k,"hotConfigStore",Z),4);case 4:return b=C.V,C.return(b)}})}; V3j=function(w,D,M,L,Z){var k,b,C;return g.B(function(l){switch(l.T){case 1:return k={config:w,hashData:D,configData:M,timestamp:Z!==void 0?Z:(0,g.IC)()},g.c(l,VX(L),2);case 2:return b=l.V,g.c(l,b.clear("coldConfigStore"),3);case 3:return g.c(l,g.RC(b,"coldConfigStore",k),4);case 4:return C=l.V,l.return(C)}})}; Pia=function(w){var D,M;return g.B(function(L){return L.T==1?g.c(L,VX(w),2):L.T!=3?(D=L.V,M=void 0,g.c(L,g.j$(D,["coldConfigStore"],{mode:"readwrite",J1:!0},function(Z){return g.aC(Z.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(k){M=k.getValue()})}),3)):L.return(M)})}; OoT=function(w){var D,M;return g.B(function(L){return L.T==1?g.c(L,VX(w),2):L.T!=3?(D=L.V,M=void 0,g.c(L,g.j$(D,["hotConfigStore"],{mode:"readwrite",J1:!0},function(Z){return g.aC(Z.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(k){M=k.getValue()})}),3)):L.return(M)})}; KpG=function(){return g.B(function(w){return g.c(w,urj("ytGcfConfig"),0)})}; PT=function(){g.X.call(this);this.V=[];this.T=[];var w=g.w3("yt.gcf.config.hotUpdateCallbacks");w?(this.V=[].concat(g.tG(w)),this.T=w):(this.T=[],g.mC("yt.gcf.config.hotUpdateCallbacks",this.T))}; DF=function(){var w=this;this.W=!1;this.L=this.D=0;this.Y=new PT;this.Bz={IED:function(){w.W=!0}, vyD:function(){return w.T}, bDJ:function(D){O6(w,D)}, wp:function(D){w.wp(D)}, l1t:function(D){Kf(w,D)}, gb:function(){return w.coldHashData}, jm:function(){return w.hotHashData}, swd:function(){return w.V}, bLE:function(){return mg()}, Eyt:function(){return A5()}, Qwd:function(){return g.w3("yt.gcf.config.coldHashData")}, eWL:function(){return g.w3("yt.gcf.config.hotHashData")}, ygL:function(){mhJ(w)}, MuJ:function(){w.wp(void 0);w4(w);delete DF.instance}, wit:function(D){w.L=D}, wwE:function(){return w.L}}}; ABK=function(){if(!DF.instance){var w=new DF;DF.instance=w}return DF.instance}; MmT=function(w){var D;g.B(function(M){if(M.T==1)return g.hY("start_client_gcf")||g.hY("delete_gcf_config_db")?g.hY("start_client_gcf")?g.c(M,g.QX(),3):M.KV(2):M.return();M.T!=2&&((D=M.V)&&g.eY()&&!g.hY("delete_gcf_config_db")?(w.W=!0,mhJ(w)):(w7R(w),DCK(w)));return g.hY("delete_gcf_config_db")?g.c(M,KpG(),0):M.KV(0)})}; Lu=function(){var w;return(w=A5())!=null?w:g.Xg("RAW_HOT_CONFIG_GROUP")}; LBN=function(w){var D,M,L,Z,k,b;return g.B(function(C){switch(C.T){case 1:if(w.V)return C.return(A5());if(!w.W)return D=g.h5("getHotConfig IDB not initialized"),JQ(D),C.return(Promise.reject(D));M=S$();L=g.Xg("TIME_CREATED_MS");if(!M){Z=g.h5("getHotConfig token error");JQ(Z);C.KV(2);break}return g.c(C,OoT(M),3);case 3:if((k=C.V)&&k.timestamp>L)return O6(w,k.config),w.wp(k.hashData),C.return(A5());case 2:DCK(w);if(!(M&&w.V&&w.hotHashData)){C.KV(4);break}return g.c(C,z7N(w.V,w.hotHashData,M,L),4);case 4:return w.V? C.return(A5()):(b=new g.qA("Config not available in ytConfig"),JQ(b),C.return(Promise.reject(b)))}})}; krr=function(w){var D,M,L,Z,k,b;return g.B(function(C){switch(C.T){case 1:if(w.T)return C.return(mg());if(!w.W)return D=g.h5("getColdConfig IDB not initialized"),JQ(D),C.return(Promise.reject(D));M=S$();L=g.Xg("TIME_CREATED_MS");if(!M){Z=g.h5("getColdConfig");JQ(Z);C.KV(2);break}return g.c(C,Pia(M),3);case 3:if((k=C.V)&&k.timestamp>L)return Kf(w,k.config),Ztr(w,k.configData),w4(w,k.hashData),C.return(mg());case 2:w7R(w);if(!(M&&w.T&&w.coldHashData&&w.configData)){C.KV(4);break}return g.c(C,V3j(w.T, w.coldHashData,w.configData,M,L),4);case 4:return w.T?C.return(mg()):(b=new g.qA("Config not available in ytConfig"),JQ(b),C.return(Promise.reject(b)))}})}; mhJ=function(w){if(!w.V||!w.T){if(!S$()){var D=g.h5("scheduleGetConfigs");JQ(D)}w.D||(w.D=g.vf.RT(function(){return g.B(function(M){switch(M.T){case 1:return g.jN(M,2),g.c(M,LBN(w),4);case 4:g.oT(M,3);break;case 2:g.FK(M);case 3:return g.jN(M,5),g.c(M,krr(w),7);case 7:g.oT(M,6);break;case 5:g.FK(M);case 6:w.D&&(w.D=0),g.Hr(M)}})},100))}}; btC=function(w,D,M){var L,Z,k;return g.B(function(b){switch(b.T){case 1:if(!g.hY("start_client_gcf")){b.KV(0);break}M&&O6(w,M);w.wp(D);L=S$();if(!L){b.KV(3);break}if(M){b.KV(4);break}return g.c(b,OoT(L),5);case 5:Z=b.V,M=(k=Z)==null?void 0:k.config;case 4:return g.c(b,z7N(M,D,L),3);case 3:if(M)for(var C=M,l=g.x(w.Y.T),E=l.next();!E.done;E=l.next())E=E.value,E(C);g.Hr(b)}})}; Ybx=function(w,D,M){var L,Z,k,b;return g.B(function(C){if(C.T==1){if(!g.hY("start_client_gcf"))return C.KV(0);w4(w,D);return(L=S$())?M?C.KV(4):g.c(C,Pia(L),5):C.KV(0)}C.T!=4&&(Z=C.V,M=(k=Z)==null?void 0:k.config);if(!M)return C.KV(0);b=M.configData;return g.c(C,V3j(M,D,b,L),0)})}; CsT=function(){var w=ABK(),D=(0,g.IC)()-w.L;if(!(w.L!==0&&D0&&(D.request={internalExperimentFlags:M});EYa(w,void 0,D);p7x(void 0,D);WBj(void 0,D);hkx(w,void 0,D);tml(void 0,D);g.hY("start_client_gcf")&&$CG(void 0,D);g.Xg("DELEGATED_SESSION_ID")&& !g.hY("pageid_as_header_web")&&(D.user={onBehalfOfUser:g.Xg("DELEGATED_SESSION_ID")});!g.hY("fill_delegate_context_in_gel_killswitch")&&(w=g.Xg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(D.user=Object.assign({},D.user,{serializedDelegationContext:w}));w=g.Xg("INNERTUBE_CONTEXT");var L;if(g.hY("enable_persistent_device_token")&&(w==null?0:(L=w.client)==null?0:L.rolloutToken)){var Z;D.client.rolloutToken=w==null?void 0:(Z=w.client)==null?void 0:Z.rolloutToken}L=Object;Z=L.assign;w=D.client; M={};for(var k=g.x(Object.entries(PP(g.Xg("DEVICE","")))),b=k.next();!b.done;b=k.next()){var C=g.x(b.value);b=C.next().value;C=C.next().value;b==="cbrand"?M.deviceMake=C:b==="cmodel"?M.deviceModel=C:b==="cbr"?M.browserName=C:b==="cbrver"?M.browserVersion=C:b==="cos"?M.osName=C:b==="cosver"?M.osVersion=C:b==="cplatform"&&(M.platform=C)}D.client=Z.call(L,w,M);return D}; EYa=function(w,D,M){w=w.c5;if(w==="WEB"||w==="MWEB"||w===1||w===2)if(D){M=HW(D,xj,96)||new xj;var L=FR();L=Object.keys(itS).indexOf(L);L=L===-1?null:L;L!==null&&qK(M,3,L);gB(D,xj,96,M)}else M&&(M.client.mainAppWebInfo=(L=M.client.mainAppWebInfo)!=null?L:{},M.client.mainAppWebInfo.webDisplayMode=FR())}; p7x=function(w,D){var M=g.w3("yt.embedded_player.embed_url");M&&(w?(D=HW(w,R3,7)||new R3,BW(D,4,M),gB(w,R3,7,D)):D&&(D.thirdParty={embedUrl:M}))}; WBj=function(w,D){var M;if(g.hY("web_log_memory_total_kbytes")&&((M=g.KI.navigator)==null?0:M.deviceMemory)){var L;M=(L=g.KI.navigator)==null?void 0:L.deviceMemory;w?D2(w,95,Hc(M*1E6)):D&&(D.client.memoryTotalKbytes=""+M*1E6)}}; hkx=function(w,D,M){if(w.appInstallData)if(D){var L;M=(L=HW(D,UD,62))!=null?L:new UD;BW(M,6,w.appInstallData);gB(D,UD,62,M)}else M&&(M.client.configInfo=M.client.configInfo||{},M.client.configInfo.appInstallData=w.appInstallData)}; tml=function(w,D){var M=AuC();M&&(w?qK(w,61,dCT[M]):D&&(D.client.connectionType=M));g.hY("web_log_effective_connection_type")&&(M=DhS())&&(w?qK(w,94,ywC[M]):D&&(D.client.effectiveConnectionType=M))}; I6r=function(w,D,M){M=M===void 0?{}:M;var L={};g.Xg("EOM_VISITOR_DATA")?L={"X-Goog-EOM-Visitor-Id":g.Xg("EOM_VISITOR_DATA")}:L={"X-Goog-Visitor-Id":M.visitorData||g.Xg("VISITOR_DATA","")};if(D&&D.includes("www.youtube-nocookie.com"))return L;D=M.K2||g.Xg("AUTHORIZATION");D||(w?D="Bearer "+g.w3("gapi.auth.getToken")().access_token:(w=z4J().Fj(bZ),g.hY("pageid_as_header_web")||delete w["X-Goog-PageId"],L=Object.assign({},L,w)));D&&(L.Authorization=D);return L}; $CG=function(w,D){var M=CsT();if(M){var L=M.coldConfigData,Z=M.coldHashData;M=M.hotHashData;if(w){var k;D=(k=HW(w,UD,62))!=null?k:new UD;L=BW(D,1,L);BW(L,3,Z).wp(M);gB(w,UD,62,D)}else D&&(D.client.configInfo=D.client.configInfo||{},L&&(D.client.configInfo.coldConfigData=L),Z&&(D.client.configInfo.coldHashData=Z),M&&(D.client.configInfo.hotHashData=M))}}; Yo=function(w,D){this.version=w;this.args=D}; Cu=function(w,D){this.topic=w;this.T=D}; En=function(w,D){var M=lZ();M&&M.publish.call(M,w.toString(),w,D)}; NFN=function(w){var D=UCI,M=lZ();if(!M)return 0;var L=M.subscribe(D.toString(),function(Z,k){var b=g.w3("ytPubsub2Pubsub2SkipSubKey");b&&b==L||(b=function(){if(pu[L])try{if(k&&D instanceof Cu&&D!=Z)try{var C=D.T,l=k;if(!l.args||!l.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!C.fh){var E=new C;C.fh=E.version}var p=C.fh}catch(W){}if(!p||l.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(C, g.GD(l.args))}catch(W){throw W.message="yt.pubsub2.Data.deserialize(): "+W.message,W;}}catch(W){throw W.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+D.toString()+": "+W.message,W;}w.call(window,k)}catch(W){g.S2(W)}},xCS[D.toString()]?g.z_()?g.vf.RT(b):g.C7(b,0):b())}); pu[L]=!0;WA[D.toString()]||(WA[D.toString()]=[]);WA[D.toString()].push(L);return L}; gYr=function(){var w=HtN,D=NFN(function(M){w.apply(void 0,arguments);jFl(D)}); return D}; jFl=function(w){var D=lZ();D&&(typeof w==="number"&&(w=[w]),g.PQ(w,function(M){D.unsubscribeByKey(M);delete pu[M]}))}; lZ=function(){return g.w3("ytPubsub2Pubsub2Instance")}; hK=function(w,D,M){M=M===void 0?{sampleRate:.1}:M;Math.random()sFl||b=BFI&&(HA++,g.hY("abandon_compression_after_N_slow_zips")?NR===g.tY("compression_disable_point")&&HA>f6K&&(Iz=!1):Iz=!1);qbT(D);L.headers||(L.headers={});L.headers["Content-Encoding"]="gzip";L.postBody=w;L.postParams=void 0;Z(M,L)}; rwT=function(w){var D=D===void 0?!1:D;var M=M===void 0?!1:M;var L=(0,g.IC)(),Z={startTime:L,ticks:{},infos:{}},k=D?g.w3("yt.logging.gzipForFetch",!1):!0;if(Iz&&k){if(!w.body)return w;try{var b=M?w.body:typeof w.body==="string"?w.body:JSON.stringify(w.body);k=b;if(!M&&typeof b==="string"){var C=Gra(b);if(C!=null&&(C>sFl||C=BFI)if(HA++,g.hY("abandon_compression_after_N_slow_zips")||g.hY("abandon_compression_after_N_slow_zips_lr")){D=HA/NR;var E=f6K/g.tY("compression_disable_point");NR>0&&NR%g.tY("compression_disable_point")===0&&D>=E&&(Iz=!1)}else Iz=!1;qbT(Z)}}w.headers=Object.assign({},{"Content-Encoding":"gzip"},w.headers||{});w.body=k;return w}catch(p){return JQ(p),w}}else return w}; Gra=function(w){try{return(new Blob(w.split(""))).size}catch(D){return JQ(D),null}}; qbT=function(w){g.hY("gel_compression_csi_killswitch")||!g.hY("log_gel_compression_latency")&&!g.hY("log_gel_compression_latency_lr")||hK("gel_compression",w,{sampleRate:.1})}; g4=function(w){var D=this;this.P1=this.T=!1;this.potentialEsfErrorCounter=this.V=0;this.handleError=function(){}; this.Cp=function(){}; this.now=Date.now;this.Ho=!1;this.Bz={NNL:function(p){D.UT=p}, HcV:function(){D.Dc()}, i_:function(){D.uQ()}, zt:function(p){return g.B(function(W){return g.c(W,D.zt(p),0)})}, Zj:function(p,W){return D.Zj(p,W)}, cg:function(){D.cg()}}; var M;this.Vs=(M=w.Vs)!=null?M:100;var L;this.DD=(L=w.DD)!=null?L:1;var Z;this.A$=(Z=w.A$)!=null?Z:2592E6;var k;this.e_=(k=w.e_)!=null?k:12E4;var b;this.oi=(b=w.oi)!=null?b:5E3;var C;this.UT=(C=w.UT)!=null?C:void 0;this.q_=!!w.q_;var l;this.xC=(l=w.xC)!=null?l:.1;var E;this.bK=(E=w.bK)!=null?E:10;w.handleError&&(this.handleError=w.handleError);w.Cp&&(this.Cp=w.Cp);w.Ho&&(this.Ho=w.Ho);w.P1&&(this.P1=w.P1);this.ek=w.ek;this.m4=w.m4;this.Ru=w.Ru;this.Gd=w.Gd;this.sendFn=w.sendFn;this.WU=w.WU;this.YN= w.YN;jB(this)&&(!this.ek||this.ek("networkless_logging"))&&ekI(this)}; ekI=function(w){jB(w)&&!w.Ho&&(w.T=!0,w.q_&&Math.random()<=w.xC&&w.Ru.mJ(w.UT),w.cg(),w.Gd.rI()&&w.Dc(),w.Gd.listen(w.WU,w.Dc.bind(w)),w.Gd.listen(w.YN,w.uQ.bind(w)))}; u3S=function(w,D){if(!jB(w))throw Error("IndexedDB is not supported: updateRequestHandlers");var M=D.options.onError?D.options.onError:function(){}; D.options.onError=function(Z,k){var b,C,l,E;return g.B(function(p){switch(p.T){case 1:b=X7C(k);(C=TFR(k))&&w.ek&&w.ek("web_enable_error_204")&&w.handleError(Error("Request failed due to compression"),D.url,k);if(!(w.ek&&w.ek("nwl_consider_error_code")&&b||w.ek&&!w.ek("nwl_consider_error_code")&&w.potentialEsfErrorCounter<=w.bK)){p.KV(2);break}if(!w.Gd.fH){p.KV(3);break}return g.c(p,w.Gd.fH(),3);case 3:if(w.Gd.rI()){p.KV(2);break}M(Z,k);if(!w.ek||!w.ek("nwl_consider_error_code")||((l=D)==null?void 0: l.id)===void 0){p.KV(6);break}return g.c(p,w.Ru.sX(D.id,w.UT,!1),6);case 6:return p.return();case 2:if(w.ek&&w.ek("nwl_consider_error_code")&&!b&&w.potentialEsfErrorCounter>w.bK)return p.return();w.potentialEsfErrorCounter++;if(((E=D)==null?void 0:E.id)===void 0){p.KV(8);break}return D.sendCount=400&&w<=599?!1:!0}; TFR=function(w){var D;w=w==null?void 0:(D=w.error)==null?void 0:D.code;return!(w!==400&&w!==415)}; Sba=function(){if(oz)return oz();var w={};oz=g.zV("LogsDatabaseV2",{Pm:(w.LogsRequestsStore={xV:2},w),shared:!1,upgrade:function(D,M,L){M(2)&&g.ND(D,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});M(3);M(5)&&(L=L.objectStore("LogsRequestsStore"),L.T.indexNames.contains("newRequest")&&L.T.deleteIndex("newRequest"),g.nf(L,"newRequestV2",["status","interface","timestamp"]));M(7)&&HT(D,"sapisid");M(9)&&HT(D,"SWHealthLog")}, version:9});return oz()}; nu=function(w){return g.ff(Sba(),w)}; Jwk=function(w,D){var M,L,Z,k;return g.B(function(b){if(b.T==1)return M={startTime:(0,g.IC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.c(b,nu(D),2);if(b.T!=3)return L=b.V,Z=Object.assign({},w,{options:JSON.parse(JSON.stringify(w.options)),interface:g.Xg("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.c(b,g.RC(L,"LogsRequestsStore",Z),3);k=b.V;M.ticks.tc=(0,g.IC)();QFJ(M);return b.return(k)})}; zkN=function(w,D){var M,L,Z,k,b,C,l,E,p;return g.B(function(W){if(W.T==1)return M={startTime:(0,g.IC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.c(W,nu(D),2);if(W.T!=3)return L=W.V,Z=g.Xg("INNERTUBE_CONTEXT_CLIENT_NAME",0),k=[w,Z,0],b=[w,Z,(0,g.IC)()],C=IDBKeyRange.bound(k,b),l="prev",g.hY("use_fifo_for_networkless")&&(l="next"),E=void 0,p=w==="NEW"?"readwrite":"readonly",g.hY("use_readonly_for_get_most_recent_by_status_killswitch")&&(p="readwrite"),g.c(W,g.j$(L,["LogsRequestsStore"], {mode:p,J1:!0},function(h){return g.aC(h.objectStore("LogsRequestsStore").index("newRequestV2"),{query:C,direction:l},function(t){t.getValue()&&(E=t.getValue(),w==="NEW"&&(E.status="QUEUED",t.update(E)))})}),3); M.ticks.tc=(0,g.IC)();QFJ(M);return W.return(E)})}; VmI=function(w,D){var M;return g.B(function(L){if(L.T==1)return g.c(L,nu(D),2);M=L.V;return L.return(g.j$(M,["LogsRequestsStore"],{mode:"readwrite",J1:!0},function(Z){var k=Z.objectStore("LogsRequestsStore");return k.get(w).then(function(b){if(b)return b.status="QUEUED",g.g_(k,b).then(function(){return b})})}))})}; Psl=function(w,D,M,L){M=M===void 0?!0:M;var Z;return g.B(function(k){if(k.T==1)return g.c(k,nu(D),2);Z=k.V;return k.return(g.j$(Z,["LogsRequestsStore"],{mode:"readwrite",J1:!0},function(b){var C=b.objectStore("LogsRequestsStore");return C.get(w).then(function(l){return l?(l.status="NEW",M&&(l.sendCount+=1),L!==void 0&&(l.options.compress=L),g.g_(C,l).then(function(){return l})):g.$q.resolve(void 0)})}))})}; Otk=function(w,D){var M;return g.B(function(L){if(L.T==1)return g.c(L,nu(D),2);M=L.V;return L.return(M.delete("LogsRequestsStore",w))})}; KBl=function(w){var D,M;return g.B(function(L){if(L.T==1)return g.c(L,nu(w),2);D=L.V;M=(0,g.IC)()-2592E6;return g.c(L,g.j$(D,["LogsRequestsStore"],{mode:"readwrite",J1:!0},function(Z){return g.FT(Z.objectStore("LogsRequestsStore"),{},function(k){if(k.getValue().timestamp<=M)return k.delete().then(function(){return g.GV(k)})})}),0)})}; mCk=function(){g.B(function(w){return g.c(w,urj("LogsDatabaseV2"),0)})}; QFJ=function(w){g.hY("nwl_csi_killswitch")||hK("networkless_performance",w,{sampleRate:1})}; wPa=function(w){return g.ff(AwN(),w)}; DxC=function(w){var D,M;g.B(function(L){if(L.T==1)return g.c(L,wPa(w),2);D=L.V;M=(0,g.IC)()-2592E6;return g.c(L,g.j$(D,["SWHealthLog"],{mode:"readwrite",J1:!0},function(Z){return g.FT(Z.objectStore("SWHealthLog"),{},function(k){if(k.getValue().timestamp<=M)return k.delete().then(function(){return g.GV(k)})})}),0)})}; M2C=function(w){var D;return g.B(function(M){if(M.T==1)return g.c(M,wPa(w),2);D=M.V;return g.c(M,D.clear("SWHealthLog"),0)})}; g.FV=function(w,D,M,L,Z,k,b){Z=Z===void 0?"":Z;k=k===void 0?!1:k;b=b===void 0?!1:b;if(w)if(M&&!g.q2())JQ(new g.qA("Legacy referrer-scrubbed ping detected")),w&&L0G(w,void 0,{scrubReferrer:!0});else if(Z)dz(w,D,"POST",Z,L);else if(g.Xg("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||L||b)dz(w,D,"GET","",L,void 0,k,b);else{b:{try{c:{var C=new xnj({url:w});if(C.T.dsh==="1")var l=null;else{var E=C.T.ae;if(E==="1"){var p=C.T.adurl;if(p)try{l={version:3,dl:decodeURIComponent(p),kB:zX(C.V,"act=1","ri=1",NDC(C))}; break c}catch(t){}}l=E==="2"?{version:4,dl:zX(C.V,"dct=1","suid="+C.L,""),kB:zX(C.V,"act=1","ri=1","suid="+C.L)}:null}}if(l){var W=p3(w);var h=!(!W||!W.endsWith("/aclk")||NM(w,"ri")!=="1");break b}}catch(t){}h=!1}h?ZjK(w)?(D&&D(),M=!0):M=!1:M=!1;M||L0G(w,D)}}; ZjK=function(w,D){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(w,D===void 0?"":D))return!0}catch(M){}return!1}; L0G=function(w,D,M){M=M===void 0?{}:M;var L=new Image,Z=""+kQJ++;GG[Z]=L;L.onload=L.onerror=function(){D&&GG[Z]&&D();delete GG[Z]}; M.scrubReferrer&&(L.referrerPolicy="no-referrer");L.src=w}; bjR=function(w){var D;return((D=document.featurePolicy)==null?0:D.allowedFeatures().includes("attribution-reporting"))?w+"&nis=6":w+"&nis=5"}; az=function(){sn||(sn=new Pg("yt.offline"));return sn}; YDr=function(w){if(g.hY("offline_error_handling")){var D=az().get("errors",!0)||{};D[w.message]={name:w.name,stack:w.stack};w.level&&(D[w.message].level=w.level);az().set("errors",D,2592E3,!0)}}; vA=function(){this.T=new Map;this.V=!1}; cA=function(){if(!vA.instance){var w=g.w3("yt.networkRequestMonitor.instance")||new vA;g.mC("yt.networkRequestMonitor.instance",w);vA.instance=w}return vA.instance}; BA=function(){g.Ej.call(this);var w=this;this.V=!1;this.T=IzK();this.T.listen("networkstatus-online",function(){if(w.V&&g.hY("offline_error_handling")){var D=az().get("errors",!0);if(D){for(var M in D)if(D[M]){var L=new g.qA(M,"sent via offline_errors");L.name=D[M].name;L.stack=D[M].stack;L.level=D[M].level;g.S2(L)}az().set("errors",{},2592E3,!0)}}})}; C7l=function(){if(!BA.instance){var w=g.w3("yt.networkStatusManager.instance")||new BA;g.mC("yt.networkStatusManager.instance",w);BA.instance=w}return BA.instance}; g.fu=function(w){w=w===void 0?{}:w;g.Ej.call(this);var D=this;this.T=this.D=0;this.V=C7l();var M=g.w3("yt.networkStatusManager.instance.listen").bind(this.V);M&&(w.rateLimit?(this.rateLimit=w.rateLimit,M("networkstatus-online",function(){lPT(D,"publicytnetworkstatus-online")}),M("networkstatus-offline",function(){lPT(D,"publicytnetworkstatus-offline")})):(M("networkstatus-online",function(){D.dispatchEvent("publicytnetworkstatus-online")}),M("networkstatus-offline",function(){D.dispatchEvent("publicytnetworkstatus-offline")})))}; lPT=function(w,D){w.rateLimit?w.T?(g.vf.JH(w.D),w.D=g.vf.RT(function(){w.L!==D&&(w.dispatchEvent(D),w.L=D,w.T=(0,g.IC)())},w.rateLimit-((0,g.IC)()-w.T))):(w.dispatchEvent(D),w.L=D,w.T=(0,g.IC)()):w.dispatchEvent(D)}; r4=function(){var w=g4.call;qR||(qR=new g.fu({BpV:!0,UnE:!0}));w.call(g4,this,{Ru:{mJ:KBl,wU:Otk,Kt:zkN,f5W:VmI,sX:Psl,set:Jwk},Gd:qR,handleError:function(D,M,L){var Z,k=L==null?void 0:(Z=L.error)==null?void 0:Z.code;if(k===400||k===415){var b;D=new g.qA(D.message,M,L==null?void 0:(b=L.error)==null?void 0:b.code);JQ(D,void 0,void 0,void 0,!0)}else g.S2(D)}, Cp:JQ,sendFn:Ejr,now:g.IC,zX:YDr,m4:g.Ja(),WU:"publicytnetworkstatus-online",YN:"publicytnetworkstatus-offline",q_:!0,xC:.1,bK:g.tY("potential_esf_error_limit",10),ek:g.hY,Ho:!(g.eY()&&g.ER(document.location.toString())!=="www.youtube-nocookie.com")});this.L=new g.l_;g.hY("networkless_immediately_drop_all_requests")&&mCk();SAa("LogsDatabaseV2")}; eB=function(){var w=g.w3("yt.networklessRequestController.instance");w||(w=new r4,g.mC("yt.networklessRequestController.instance",w),g.hY("networkless_logging")&&g.QX().then(function(D){w.UT=D;ekI(w);w.L.resolve();w.q_&&Math.random()<=w.xC&&w.UT&&DxC(w.UT);g.hY("networkless_immediately_drop_sw_health_store")&&pPj(w)})); return w}; pPj=function(w){var D;g.B(function(M){if(!w.UT)throw D=g.h5("clearSWHealthLogsDb"),D;return M.return(M2C(w.UT).catch(function(L){w.handleError(L)}))})}; Ejr=function(w,D,M,L){L=L===void 0?!1:L;D=g.hY("web_fp_via_jspb")?Object.assign({},D):D;g.hY("use_cfr_monitor")&&W0a(w,D);if(g.hY("use_request_time_ms_header"))D.headers&&wz(w)&&(D.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.IC)())));else{var Z;if((Z=D.postParams)==null?0:Z.requestTimeMs)D.postParams.requestTimeMs=Math.round((0,g.IC)())}M&&Object.keys(D).length===0?g.FV(w):D.compress?D.postBody?(typeof D.postBody!=="string"&&(D.postBody=JSON.stringify(D.postBody)),xo(w,D.postBody, D,g.y8,L)):xo(w,JSON.stringify(D.postParams),D,I_,L):g.y8(w,D)}; XV=function(w,D){g.hY("use_event_time_ms_header")&&wz(w)&&(D.headers||(D.headers={}),D.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.IC)())));return D}; W0a=function(w,D){var M=D.onError?D.onError:function(){}; D.onError=function(Z,k){cA().requestComplete(w,!1);M(Z,k)}; var L=D.onSuccess?D.onSuccess:function(){}; D.onSuccess=function(Z,k){cA().requestComplete(w,!0);L(Z,k)}}; g.TG=function(w){this.config_=null;w?this.config_=w:l6T()&&(this.config_=g.ZF())}; g.uZ=function(w,D,M,L){function Z(E){try{if((E===void 0?0:E)&&L.retry&&!L.networklessOptions.bypassNetworkless)k.method="POST",L.networklessOptions.writeThenSend?eB().writeThenSend(l,k):eB().sendAndWrite(l,k);else if(L.compress){var p=!L.networklessOptions.writeThenSend;if(k.postBody){var W=k.postBody;typeof W!=="string"&&(W=JSON.stringify(k.postBody));xo(l,W,k,g.y8,p)}else xo(l,JSON.stringify(k.postParams),k,I_,p)}else g.hY("web_all_payloads_via_jspb")?g.y8(l,k):I_(l,k)}catch(h){if(h.name==="InvalidAccessError")JQ(Error("An extension is blocking network request.")); else throw h;}} !g.Xg("VISITOR_DATA")&&D!=="visitor_id"&&Math.random()<.01&&JQ(new g.qA("Missing VISITOR_DATA when sending innertube request.",D,M,L));if(!w.isReady())throw w=new g.qA("innertube xhrclient not ready",D,M,L),g.S2(w),w;var k={headers:L.headers||{},method:"POST",postParams:M,postBody:L.postBody,postBodyFormat:L.postBodyFormat||"JSON",onTimeout:function(){L.onTimeout()}, onFetchTimeout:L.onTimeout,onSuccess:function(E,p){if(L.onSuccess)L.onSuccess(p)}, onFetchSuccess:function(E){if(L.onSuccess)L.onSuccess(E)}, onProgress:function(E){if(L.onProgress)L.onProgress(E)}, onError:function(E,p){if(L.onError)L.onError(p)}, onFetchError:function(E){if(L.onError)L.onError(E)}, timeout:L.timeout,withCredentials:!0,compress:L.compress};k.headers["Content-Type"]||(k.headers["Content-Type"]="application/json");M="";var b=w.config_.aR;b&&(M=b);b=w.config_.Y3||!1;var C=I6r(b,M,L);Object.assign(k.headers,C);k.headers.Authorization&&!M&&b&&(k.headers["x-origin"]=window.location.origin);var l=m0(""+M+("/youtubei/"+w.config_.innertubeApiVersion+"/"+D),{alt:"json"});g.w3("ytNetworklessLoggingInitializationOptions")&&hpC.isNwlInitialized?BGl().then(function(E){Z(E)}):Z(!1)}; g.Vn=function(w,D,M){var L=g.SB();if(L&&D){var Z=L.subscribe(w,function(){function k(){Qn[Z]&&D.apply&&typeof D.apply=="function"&&D.apply(M||window,b)} var b=arguments;try{g.JK[w]?k():g.C7(k,0)}catch(C){g.S2(C)}},M); Qn[Z]=!0;zG[w]||(zG[w]=[]);zG[w].push(Z);return Z}return 0}; t2K=function(w){var D=g.Vn("LOGGED_IN",function(M){w.apply(void 0,arguments);g.PA(D)})}; g.PA=function(w){var D=g.SB();D&&(typeof w==="number"?w=[w]:typeof w==="string"&&(w=[parseInt(w,10)]),g.PQ(w,function(M){D.unsubscribeByKey(M);delete Qn[M]}))}; g.On=function(w,D){var M=g.SB();return M?M.publish.apply(M,arguments):!1}; ijT=function(w){var D=g.SB();if(D)if(D.clear(w),w)$xK(w);else for(var M in zG)$xK(M)}; g.SB=function(){return g.KI.ytPubsubPubsubInstance}; $xK=function(w){zG[w]&&(w=zG[w],g.PQ(w,function(D){Qn[D]&&delete Qn[D]}),w.length=0)}; g.Ku=function(w,D,M){dxk(w,D,M===void 0?null:M)}; dxk=function(w,D,M){M=M===void 0?null:M;var L=yQa(typeof w==="string"?w:w.toString()),Z=document.getElementById(L),k=Z&&scj(Z),b=Z&&!k;k?D&&D():(D&&(k=g.Vn(L,D),D=""+g.br(D),IPx[D]=k),b||(Z=Uxj(w,L,function(){scj(Z)||(Gja(Z),g.On(L),g.C7(function(){ijT(L)},0))},M)))}; Uxj=function(w,D,M,L){L=L===void 0?null:L;var Z=g.tM("SCRIPT");Z.id=D;Z.onload=function(){M&&setTimeout(M,0)}; Z.onreadystatechange=function(){switch(Z.readyState){case "loaded":case "complete":Z.onload()}}; L&&Z.setAttribute("nonce",L);g.UQ(Z,typeof w==="string"?g.y6(w):w);w=document.getElementsByTagName("head")[0]||document.body;w.insertBefore(Z,w.firstChild);return Z}; yQa=function(w){var D=document.createElement("a");g.EQ(D,w);w=D.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+ag(w)}; my=function(w,D){if(w===D)w=!0;else if(Array.isArray(w)&&Array.isArray(D))w=g.zD(w,D,my);else if(g.ZZ(w)&&g.ZZ(D))a:if(g.kO(w).length!=g.kO(D).length)w=!1;else{for(var M in w)if(!my(w[M],D[M])){w=!1;break a}w=!0}else w=!1;return w}; kr=function(w){var D=g.rR.apply(1,arguments);if(!LV(w)||D.some(function(L){return!LV(L)}))throw Error("Only objects may be merged."); D=g.x(D);for(var M=D.next();!M.done;M=D.next())Ze(w,M.value)}; Ze=function(w,D){for(var M in D)if(LV(D[M])){if(M in w&&!LV(w[M]))throw Error("Cannot merge an object into a non-object.");M in w||(w[M]={});Ze(w[M],D[M])}else if(bG(D[M])){if(M in w&&!bG(w[M]))throw Error("Cannot merge an array into a non-array.");M in w||(w[M]=[]);xxj(w[M],D[M])}else w[M]=D[M];return w}; xxj=function(w,D){D=g.x(D);for(var M=D.next();!M.done;M=D.next())M=M.value,LV(M)?w.push(Ze({},M)):bG(M)?w.push(xxj([],M)):w.push(M);return w}; LV=function(w){return typeof w==="object"&&!Array.isArray(w)}; bG=function(w){return typeof w==="object"&&Array.isArray(w)}; Yr=function(w){g.X.call(this);this.V=w}; CV=function(w){Yr.call(this,!0);this.T=w}; lG=function(w,D){g.X.call(this);var M=this;this.L=[];this.G=!1;this.V=0;this.W=this.Y=this.D=!1;this.y7=null;var L=(0,g.Ck)(w,D);this.T=new g.ui(function(){return L(M.y7)},300); g.T(this,this.T);this.B=this.U=Infinity}; Nya=function(w,D){if(!D)return!1;for(var M=0;M-1)throw Error("Deps cycle for: "+D);if(w.V.has(D))return w.V.get(D);if(!w.T.has(D)){if(L)return;throw Error("No provider for: "+D);}L=w.T.get(D);M.push(D);if(L.M6!==void 0)var Z=L.M6;else if(L.rY9)Z=L[xr]?RpN(w,L[xr],M):[],Z=L.rY9.apply(L,g.tG(Z));else if(L.DA){Z=L.DA;var k=Z[xr]?RpN(w,Z[xr],M):[];Z=new (Function.prototype.bind.apply(Z,[null].concat(g.tG(k))))}else throw Error("Could not resolve providers for: "+D);M.pop();L.ODW||w.V.set(D,Z); return Z}; RpN=function(w,D,M){return D?D.map(function(L){return L instanceof yW?NY(w,L.key,M,!0):NY(w,L,M)}):[]}; jC=function(){HJ||(HJ=new gja);return HJ}; nja=function(){var w=ojJ;return function(){var D=jC();D.resolve(IR(w))||Ua(D,{Pn:w,DA:w});return D.resolve(w)}}; RR=function(){var w,D;return"h5vcc"in gH&&((w=gH.h5vcc.traceEvent)==null?0:w.traceBegin)&&((D=gH.h5vcc.traceEvent)==null?0:D.traceEnd)?1:"performance"in gH&&gH.performance.mark&&gH.performance.measure?2:0}; oR=function(w){var D=RR();switch(D){case 1:gH.h5vcc.traceEvent.traceBegin("YTLR",w);break;case 2:gH.performance.mark(w+"-start");break;case 0:break;default:p2(D,"unknown trace type")}}; F0l=function(w){var D=RR();switch(D){case 1:gH.h5vcc.traceEvent.traceEnd("YTLR",w);break;case 2:D=w+"-start";var M=w+"-end";gH.performance.mark(M);gH.performance.measure(w,D,M);break;case 0:break;default:p2(D,"unknown trace type")}}; GQK=function(w){var D,M;(M=(D=window).onerror)==null||M.call(D,w.message,"",0,0,w)}; s3I=function(w){var D=this;var M=M===void 0?0:M;var L=L===void 0?g.Ja():L;this.L=M;this.scheduler=L;this.V=new g.l_;this.T=w;for(w={HM:0};w.HM=1E3?Z():L>=w?mO||(mO=Az(function(){Z();mO=void 0},0)):k-C>=10&&(P7J(D,M.tier),b.D=k)}; SDC=function(w,D){if(w.endpoint==="log_event"){g.hY("more_accurate_gel_parser")&&uG().storePayload({isJspb:!1},w.payload);QW(w);var M=Jz(w),L=new Map;L.set(M,[w.payload]);var Z=XPG(w.payload)||"";D&&(Oa=new D);return new g.RV(function(k,b){Oa&&Oa.isReady()?OjG(L,Oa,k,b,{bypassNetworkless:!0},!0,VW(Z)):k()})}}; zpG=function(w,D,M){if(D.endpoint==="log_event"){QW(void 0,D);var L=Jz(D,!0),Z=new Map;Z.set(L,[u4(D.payload)]);M&&(Oa=new M);return new g.RV(function(k){Oa&&Oa.isReady()?K0R(Z,Oa,k,{bypassNetworkless:!0},!0,VW(w)):k()})}}; Jz=function(w,D){var M="";if(w.dangerousLogToVisitorSession)M="visitorOnlyApprovedKey";else if(w.cttAuthInfo){if(D===void 0?0:D){D=w.cttAuthInfo.token;M=w.cttAuthInfo;var L=new qx;M.videoId?L.setVideoId(M.videoId):M.playlistId&&t9(L,2,wO,R8(M.playlistId));DS[D]=L}else D=w.cttAuthInfo,M={},D.videoId?M.videoId=D.videoId:D.playlistId&&(M.playlistId=D.playlistId),Mm[w.cttAuthInfo.token]=M;M=w.cttAuthInfo.token}return M}; PJ=function(w,D,M){w=w===void 0?{}:w;D=D===void 0?!1:D;new g.RV(function(L,Z){var k=KV(D,M),b=k.L;k.L=!1;L1(k.V);L1(k.T);k.T=0;Oa&&Oa.isReady()?M===void 0&&g.hY("enable_web_tiered_gel")?mxj(L,Z,w,D,300,b):mxj(L,Z,w,D,M,b):(P7J(D,M),L())})}; mxj=function(w,D,M,L,Z,k){var b=Oa;M=M===void 0?{}:M;L=L===void 0?!1:L;Z=Z===void 0?200:Z;k=k===void 0?!1:k;var C=new Map,l=new Map,E={isJspb:L,cttAuthInfo:void 0,tier:Z},p={isJspb:L,cttAuthInfo:void 0};if(L){D=g.x(Object.keys(zh));for(Z=D.next();!Z.done;Z=D.next())Z=Z.value,l=g.hY("enable_web_tiered_gel")?uG().smartExtractMatchingEntries({keys:[E,p],sizeLimit:1E3}):uG().extractMatchingEntries({isJspb:!0,cttAuthInfo:Z}),l.length>0&&C.set(Z,l),(g.hY("web_fp_via_jspb_and_json")&&M.writeThenSend||!g.hY("web_fp_via_jspb_and_json"))&& delete zh[Z];K0R(C,b,w,M,!1,k)}else{C=g.x(Object.keys(zh));for(E=C.next();!E.done;E=C.next())E=E.value,p=g.hY("enable_web_tiered_gel")?uG().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:E,tier:Z},{isJspb:!1,cttAuthInfo:E}],sizeLimit:1E3}):uG().extractMatchingEntries({isJspb:!1,cttAuthInfo:E}),p.length>0&&l.set(E,p),(g.hY("web_fp_via_jspb_and_json")&&M.writeThenSend||!g.hY("web_fp_via_jspb_and_json"))&&delete zh[E];OjG(l,b,w,D,M,!1,k)}}; P7J=function(w,D){function M(){PJ({writeThenSend:!0},w,D)} w=w===void 0?!1:w;D=D===void 0?200:D;var L=KV(w,D),Z=L===AQG||L===woR?5E3:D2r;g.hY("web_gel_timeout_cap")&&!L.T&&(Z=Az(function(){M()},Z),L.T=Z); L1(L.V);Z=g.Xg("LOGGING_BATCH_TIMEOUT",g.tY("web_gel_debounce_ms",1E4));g.hY("shorten_initial_gel_batch_timeout")&&ZS&&(Z=MJk);Z=Az(function(){g.tY("gel_min_batch_size")>0?uG().getSequenceCount({cttAuthInfo:void 0,isJspb:w,tier:D})>=LUR&&M():M()},Z); L.V=Z}; OjG=function(w,D,M,L,Z,k,b){Z=Z===void 0?{}:Z;var C=Math.round((0,g.IC)()),l=w.size,E=Z7N(b);w=g.x(w);var p=w.next();for(b={};!p.done;b={tA:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,D8:void 0,d5:void 0},p=w.next()){var W=g.x(p.value);p=W.next().value;W=W.next().value;b.batchRequest=g.i1({context:g.ko(D.config_||g.ZF())});if(!g.Lk(W)&&!g.hY("throw_err_when_logevent_malformed_killswitch")){L();break}b.batchRequest.events=W;(W=Mm[p])&&kuS(b.batchRequest,p,W);delete Mm[p];b.dangerousLogToVisitorSession= p==="visitorOnlyApprovedKey";b7k(b.batchRequest,C,b.dangerousLogToVisitorSession);YOS(Z);b.D8=function(h){g.hY("start_client_gcf")&&g.vf.RT(function(){return g.B(function(t){return g.c(t,CUx(h),0)})}); l--;l||M()}; b.tA=0;b.d5=function(h){return function(){h.tA++;if(Z.bypassNetworkless&&h.tA===1)try{g.uZ(D,E,h.batchRequest,k9({writeThenSend:!0},h.dangerousLogToVisitorSession,h.D8,h.d5,k)),ZS=!1}catch(t){g.S2(t),L()}l--;l||M()}}(b); try{g.uZ(D,E,b.batchRequest,k9(Z,b.dangerousLogToVisitorSession,b.D8,b.d5,k)),ZS=!1}catch(h){g.S2(h),L()}}}; K0R=function(w,D,M,L,Z,k){L=L===void 0?{}:L;var b=Math.round((0,g.IC)()),C={value:w.size},l=new Map([].concat(g.tG(w)));l=g.x(l);for(var E=l.next();!E.done;E=l.next()){var p=g.x(E.value).next().value,W=w.get(p);E=new qjK;var h=D.config_||g.ZF(),t=new Fg,d=new Nx;BW(d,1,h.C3);BW(d,2,h.tP);qK(d,16,h.C5);BW(d,17,h.innertubeContextClientVersion);if(h.mC){var N=h.mC,n=new UD;N.coldConfigData&&BW(n,1,N.coldConfigData);N.appInstallData&&BW(n,6,N.appInstallData);N.coldHashData&&BW(n,3,N.coldHashData);N.hotHashData&& n.wp(N.hotHashData);gB(d,UD,62,n)}(N=g.KI.devicePixelRatio)&&N!=1&&D2(d,65,Eh(N));N=$E();N!==""&&BW(d,54,N);N=iU();if(N.length>0){n=new gy;for(var v=0;v65535&&(w=1);e2("BATCH_CLIENT_COUNTER",w);return w}; kuS=function(w,D,M){if(M.videoId)var L="VIDEO";else if(M.playlistId)L="PLAYLIST";else return;w.credentialTransferTokenTargetId=M;w.context=w.context||{};w.context.user=w.context.user||{};w.context.user.credentialTransferTokens=[{token:D,scope:L}]}; QW=function(w,D){var M=g.w3("yt.logging.transport.enableScrapingForTest"),L=Wo("il_payload_scraping");L=(L!==void 0?String(L):"")==="enable_il_payload_scraping";if(!M)if(L)C1=[],g.mC("yt.logging.transport.enableScrapingForTest",!0),g.mC("yt.logging.transport.scrapedPayloadsForTesting",C1),g.mC("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.mC("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.mC("yt.logging.transport.scrapeClientEvent",!0);else return;M=g.w3("yt.logging.transport.scrapedPayloadsForTesting");L=g.w3("yt.logging.transport.payloadToScrape");D&&(D=D.payload,(D=g.w3("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(D)())&&M.push(D));D=g.w3("yt.logging.transport.scrapeClientEvent");if(L&&L.length>=1)for(var Z=0;Z0&&FUj(w,D,k)}else FUj(w,D)}; FUj=function(w,D,M){w=Gur(w);D=D?g.iX(D):"";M=M||5;Po()&&g.n7(w,D,M)}; Gur=function(w){for(var D=g.x(s_x),M=D.next();!M.done;M=D.next())w=H2(w,M.value);return"ST-"+ag(w).toString(36)}; aVl=function(w){if(w.name==="JavaException")return!0;w=w.stack;return w.includes("chrome://")||w.includes("-extension://")||w.includes("webkit-masked-url://")}; vEK=function(w){if(!w.stack)return!0;var D=!w.stack.includes("\n");return D&&w.stack.includes("ErrorType: ")||D&&w.stack.includes("Anonymous function (Unknown script")||w.stack.toLowerCase()==="not available"||w.fileName==="user-script"||w.fileName.startsWith("user-script:")?!0:!1}; cYk=function(){this.Jr=[];this.zE=[]}; ID=function(){if(!yJ){var w=yJ=new cYk;w.zE.length=0;w.Jr.length=0;BzG(w,fVl)}return yJ}; BzG=function(w,D){D.zE&&w.zE.push.apply(w.zE,D.zE);D.Jr&&w.Jr.push.apply(w.Jr,D.Jr)}; qOk=function(w){function D(){return w.charCodeAt(L++)} var M=w.length,L=0;do{var Z=Uf(D);if(Z===Infinity)break;var k=Z>>3;switch(Z&7){case 0:Z=Uf(D);if(k===2)return Z;break;case 1:if(k===2)return;L+=8;break;case 2:Z=Uf(D);if(k===2)return w.substr(L,Z);L+=Z;break;case 5:if(k===2)return;L+=4;break;default:return}}while(L500));L++);L=Z}else if(typeof w==="object")for(Z in w){if(w[Z]){var k=Z;var b=w[Z],C=D,l=M;k=typeof b!=="string"||k!=="clickTrackingParams"&&k!=="trackingParams"?0:(b=qOk(atob(b.replace(/-/g,"+").replace(/_/g,"/"))))?x9(k+".ve",b,C,l):0;L+=k;L+=x9(Z,w[Z],D,M);if(L>500)break}}else M[D]=Nm(w),L+=M[D].length;else M[D]=Nm(w),L+=M[D].length;return L}; x9=function(w,D,M,L){M+="."+w;w=Nm(D);L[M]=w;return M.length+w.length}; Nm=function(w){try{return(typeof w==="string"?w:String(JSON.stringify(w))).substr(0,500)}catch(D){return"unable to serialize "+typeof w+" ("+D.message+")"}}; w_=function(w){g.HL(w)}; g.jn=function(w){g.HL(w,"WARNING")}; g.HL=function(w,D){var M=M===void 0?{}:M;M.name=g.Xg("INNERTUBE_CONTEXT_CLIENT_NAME",1);M.version=g.Xg("INNERTUBE_CONTEXT_CLIENT_VERSION");D=D===void 0?"ERROR":D;var L=!1;D=D===void 0?"ERROR":D;L=L===void 0?!1:L;if(w){w.hasOwnProperty("level")&&w.level&&(D=w.level);if(g.hY("console_log_js_exceptions")){var Z=[];Z.push("Name: "+w.name);Z.push("Message: "+w.message);w.hasOwnProperty("params")&&Z.push("Error Params: "+JSON.stringify(w.params));w.hasOwnProperty("args")&&Z.push("Error args: "+JSON.stringify(w.args)); Z.push("File name: "+w.fileName);Z.push("Stacktrace: "+w.stack);window.console.log(Z.join("\n"),w)}if(!(ega>=5)){Z=[];for(var k=g.x(XoK),b=k.next();!b.done;b=k.next()){b=b.value;try{b()&&Z.push(b())}catch(N){}}Z=[].concat(g.tG(TzR),g.tG(Z));var C=kDk(w);k=C.message||"Unknown Error";b=C.name||"UnknownError";var l=C.stack||w.V||"Not available";if(l.startsWith(b+": "+k)){var E=l.split("\n");E.shift();l=E.join("\n")}E=C.lineNumber||"Not available";C=C.fileName||"Not available";var p=0;if(w.hasOwnProperty("args")&& w.args&&w.args.length)for(var W=0;W=500);W++);else if(w.hasOwnProperty("params")&&w.params){var h=w.params;if(typeof w.params==="object")for(W in h){if(h[W]){var t="params."+W,d=Nm(h[W]);M[t]=d;p+=t.length+d.length;if(p>500)break}}else M.params=Nm(h)}if(Z.length)for(W=0;W=500);W++);navigator.vendor&&!M.hasOwnProperty("vendor")&&(M["device.vendor"]=navigator.vendor);M={message:k,name:b,lineNumber:E, fileName:C,stack:l,params:M,sampleWeight:1};W=Number(w.columnNumber);isNaN(W)||(M.lineNumber=M.lineNumber+":"+W);if(w.level==="IGNORED")w=0;else a:{w=ID();W=g.x(w.zE);for(Z=W.next();!Z.done;Z=W.next())if(Z=Z.value,M.message&&M.message.match(Z.Lb)){w=Z.weight;break a}w=g.x(w.Jr);for(W=w.next();!W.done;W=w.next())if(W=W.value,W.callback(M)){w=W.weight;break a}w=1}M.sampleWeight=w;w=g.x(uNK);for(W=w.next();!W.done;W=w.next())if(W=W.value,W.v8[M.name])for(k=g.x(W.v8[M.name]),Z=k.next();!Z.done;Z=k.next())if(b= Z.value,Z=M.message.match(b.Af)){M.params["params.error.original"]=Z[0];k=b.groups;b={};for(E=0;E1E3&&g.jn(new g.qA("IL Attach cache exceeded limit"))}C= qm(M,D);aD.has(C)?rO(M,D):cL.set(C,!0)}}L=L.filter(function(p){p.csn!==D?(p.csn=D,p=!0):p=!1;return p}); M={csn:D,parentVe:M.getAsJson(),childVes:g.yR(L,function(p){return p.getAsJson()})}; D==="UNDEFINED_CSN"?en("visualElementAttached",k,M):w?Ef("visualElementAttached",M,w,k):g.DD("visualElementAttached",M,k)}; ZeJ=function(w,D,M,L,Z){XU(M,D);L=sf({cttAuthInfo:iy(D)||void 0},D);M={csn:D,ve:M.getAsJson(),eventType:1};Z&&(M.clientData=Z);D==="UNDEFINED_CSN"?en("visualElementShown",L,M):w?Ef("visualElementShown",M,w,L):g.DD("visualElementShown",M,L)}; k_G=function(w,D,M,L){var Z=(L=L===void 0?!1:L)?16:8;L=sf({cttAuthInfo:iy(D)||void 0,endOfSequence:L},D);M={csn:D,ve:M.getAsJson(),eventType:Z};D==="UNDEFINED_CSN"?en("visualElementHidden",L,M):w?Ef("visualElementHidden",M,w,L):g.DD("visualElementHidden",M,L)}; To=function(w,D,M,L,Z){beR(w,D,M,void 0,L,Z)}; beR=function(w,D,M,L,Z){XU(M,D);L=L||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var k=sf({cttAuthInfo:iy(D)||void 0},D);M={csn:D,ve:M.getAsJson(),gestureType:L};Z&&(M.clientData=Z);D==="UNDEFINED_CSN"?en("visualElementGestured",k,M):w?Ef("visualElementGestured",M,w,k):g.DD("visualElementGestured",M,k)}; Y4T=function(){var w=pV(16);for(var D=[],M=0;M0&&M.push(g.tM("BR"));M.push(g.$y(k))}):M.push(g.$y(L))}return M}; MX=function(w,D,M,L){if(M==="child"){g.dE(D);var Z;L===void 0?Z=void 0:Z=!Array.isArray(L)||L&&typeof L.Z==="string"?[L]:L;M=lxj(w,Z);M=g.x(M);for(w=M.next();!w.done;w=M.next())D.appendChild(w.value)}else M==="style"?g.Qv(D,"cssText",L?L:""):L===null||L===void 0?D.removeAttribute(M):(w=L.toString(),M==="href"&&(w=g.k1(g.C2(w))),D.setAttribute(M,w))}; g.J=function(w){g.ws.call(this,w);this.y$=!0;this.U=!1;this.listeners=[]}; g.Lb=function(w){g.J.call(this,w);this.bW=new g.mI;g.T(this,this.bW)}; Zq=function(w,D,M,L,Z,k,b){b=b===void 0?null:b;g.Lb.call(this,D);this.api=w;this.macros={};this.componentType=M;this.Y=this.G=null;this.iW=b;this.layoutId=L;this.interactionLoggingClientData=Z;this.w9=k;this.XE=null;this.UX=new CV(this.element);g.T(this,this.UX);this.pV=this.j(this.element,"click",this.onClick);this.c_=[];this.nV=new lG(this.onClick,this);g.T(this,this.nV);this.mu=!1;this.fV=this.y7=null}; kb=function(w,D){w=w===void 0?null:w;D=D===void 0?null:D;if(w==null)return g.jn(Error("Got null or undefined adText object")),"";var M=g.sQ(w.text);if(!w.isTemplated)return M;if(D==null)return g.jn(Error("Missing required parameters for a templated message")),M;w=g.x(Object.entries(D));for(D=w.next();!D.done;D=w.next()){var L=g.x(D.value);D=L.next().value;L=L.next().value;M=M.replace("{"+D+"}",L)}return M}; E7T=function(w){w=w===void 0?null:w;return w!=null&&(w=w.thumbnail,w!=null&&w.thumbnails!=null&&w.thumbnails.length!=0&&w.thumbnails[0].url!=null)?g.sQ(w.thumbnails[0].url):""}; pgT=function(w){w=w===void 0?null:w;return w!=null&&(w=w.thumbnail,w!=null&&w.thumbnails!=null&&w.thumbnails.length!=0&&w.thumbnails[0].width!=null&&w.thumbnails[0].height!=null)?new g.Jv(w.thumbnails[0].width||0,w.thumbnails[0].height||0):new g.Jv(0,0)}; g.bI=function(w){if(w.simpleText)return w.simpleText;if(w.runs){var D=[];w=g.x(w.runs);for(var M=w.next();!M.done;M=w.next())M=M.value,M.text&&D.push(M.text);return D.join("")}return""}; g.Yb=function(w){if(w.simpleText)return w=document.createTextNode(w.simpleText),w;var D=[];if(w.runs)for(var M=0;M1){for(var D=[w[0]],M=1;M0&&(this.T=new g.ui(this.C2,D,this),g.T(this,this.T));this.W=new g.ui(this.C2,M,this);g.T(this,this.W);this.U=oRI(this.V,Z,1,L);g.T(this,this.U);this.G=oRI(this.V,0,L,1);g.T(this,this.G);this.D=new U4;g.T(this,this.D)}; wJ=function(w,D,M){this.V=w;this.isAsync=D;this.T=M}; M$r=function(w){switch(w){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:p2(w,"unknown result type")}}; LgJ=function(w,D){var M=1;w.isTrusted===!1&&(M=0);e2("ISDSTAT",M);Dg(M,"i.s_",{triggerContext:"sk",metadata:D});return M}; ZfJ=function(w,D){var M=[];D?D.isTrusted===!0?M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):D.isTrusted===!1?M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Dg(0,"a.s_",{metadata:w,states:M});e2("ASDSTAT",0)}; Dg=function(w,D,M){D=kVK[D];var L,Z,k={detected:w===0,source:""+D.V+((L=M.triggerContext)!=null?L:"")+((Z=M.j9)!=null?Z:""),detectionStates:M.states,durationMs:M.Ge};M.metadata&&(k.contentCpn=M.metadata.contentCpn,k.adCpn=M.metadata.adCpn);g.DD("biscottiBasedDetection",k);D.T!==void 0&&(M=Number(g.Xg("CATSTAT",0)),D.T!==void 0?(D=D.T,w=M$r(w),w=M&~(3<0}; Cm=function(w,D,M,L,Z,k){Q9.call(this,w,{Z:"div",J:"ytp-ad-skip-button-slot"},"skip-button",D,M,L,Z);var b=this;this.V7=null;this.W_=!1;this.jk=k;this.W=this.api.X().experiments.ek("enable_modern_skip_button_on_web");this.Nd=!1;this.D=new g.Lb({Z:"span",Yt:["ytp-ad-skip-button-container"]});this.W&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.T(this,this.D);this.D.CV(this.element);this.V=this.L=null;this.EL=new g.V9(this.D,500,!1,100,function(){return b.hide()}); g.T(this,this.EL);this.Jc=new AS(this.D.element,15E3,5E3,.5,.5,this.W);g.T(this,this.Jc);this.hide()}; Y6x=function(w){w=w.V7&&w.V7.adRendererCommands;return(w&&w.clickCommand&&g.Q(w.clickCommand,g.lQ)&&g.Q(w.clickCommand,g.lQ).commands||[]).some(function(D){return D.adLifecycleCommand?bfS(D.adLifecycleCommand):!1})}; bfS=function(w){return w.action==="END_LINEAR_AD"||w.action==="END_LINEAR_AD_PLACEMENT"}; Ex=function(w,D,M,L,Z,k){Q9.call(this,w,{Z:"div",J:"ytp-ad-skip-ad-slot"},"skip-ad",D,M,L,Z);this.V7=k;this.D=!1;this.W=0;this.L=this.V=null;this.hide()}; CEl=function(w,D){w.D||(w.D=!0,w.V&&(D?w.V.V7.hide():w.V.hide()),D?(w=w.L,w.EL.show(),w.show()):w.L.show())}; pm=function(w,D,M,L){gs.call(this,w,D,M,L,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Wq=function(w,D,M,L,Z,k,b){k=k===void 0?!1:k;b=b===void 0?!1:b;Zq.call(this,w,{Z:"span",J:"ytp-ad-simple-ad-badge"},"simple-ad-badge",D,M,L);this.L=Z;this.T=this.Z5("ytp-ad-simple-ad-badge");(this.V=k)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");b&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; hP=function(w,D,M,L,Z){Z=Z===void 0?!1:Z;K1.call(this,"player-overlay",w,{},D,L);this.videoAdDurationSeconds=M;this.interactionLoggingClientData=L;this.Nl=Z}; tP=function(w,D){g.mI.call(this);this.api=w;this.durationMs=D;this.T=null;this.handler=new U4(this);g.T(this,this.handler);this.V=lDS;this.handler.j(this.api,"presentingplayerstatechange",this.Zw);this.T=this.handler.j(this.api,"onAdPlaybackProgress",this.M$)}; $0=function(w){g.mI.call(this);this.T=!1;this.Yk=0;this.handler=new U4(this);g.T(this,this.handler);this.durationMs=w;this.timer=new g.vj(100);g.T(this,this.timer);this.handler.j(this.timer,"tick",this.M$);this.V={seekableStart:0,seekableEnd:w/1E3,current:0};this.start()}; g.iQ=function(w,D){var M=Math.abs(Math.floor(w)),L=Math.floor(M/86400),Z=Math.floor(M%86400/3600),k=Math.floor(M%3600/60);M=Math.floor(M%60);if(D){D="";L>0&&(D+=" "+L+" Days");if(L>0||Z>0)D+=" "+Z+" Hours";D+=" "+k+" Minutes";D+=" "+M+" Seconds";L=D.trim()}else{D="";L>0&&(D+=L+":",Z<10&&(D+="0"));if(L>0||Z>0)D+=Z+":",k<10&&(D+="0");D+=k+":";M<10&&(D+="0");L=D+M}return w>=0?L:"-"+L}; g.dJ=function(w){return(!("button"in w)||typeof w.button!=="number"||w.button===0)&&!("shiftKey"in w&&w.shiftKey)&&!("altKey"in w&&w.altKey)&&!("metaKey"in w&&w.metaKey)&&!("ctrlKey"in w&&w.ctrlKey)}; ya=function(w,D,M,L,Z,k,b){Q9.call(this,w,{Z:"span",J:b?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",D,M,L,Z);this.videoAdDurationSeconds=k;this.V=null;b&&this.api.X().V&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),e$&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Is=function(w,D,M,L){uI.call(this,w,D,M,L,"ytp-video-ad-top-bar-title","ad-title")}; Ux=function(w){this.content=w.content;if(w.commandRuns){w=g.x(w.commandRuns);for(var D=w.next();!D.done;D=w.next())D=D.value,this.loggingDirectives=g.Q(D,EqK),D.onTap&&(this.interaction={onTap:D.onTap})}}; x0=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ad-simple-attributed-string"},"ad-simple-attributed-string",D,M,L);this.hide()}; Nz=function(w,D,M,L,Z){Zq.call(this,w,{Z:"span",J:Z?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",D,M,L);this.V=Z;this.adBadgeText=new x0(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);this.adBadgeText.CV(this.element);g.T(this,this.adBadgeText);Z?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),e$&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Hq=function(w,D,M,L){Zq.call(this,w,{Z:"span",J:"ytp-ad-pod-index"},"ad-pod-index",D,M,L);this.api.X().V&&(this.element.classList.add("ytp-ad-pod-index--mweb"),e$&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; jU=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",D,M,L);this.hide()}; gJ=function(w,D){this.V=w;this.T=D}; pTK=function(w,D){return w.V+D*(w.T-w.V)}; Rs=function(w,D,M){return w.T-w.V?g.X4((D-w.V)/(w.T-w.V),0,1):M!=null?M:Infinity}; os=function(w,D,M,L){L=L===void 0?!1:L;g.Lb.call(this,{Z:"div",J:"ytp-ad-persistent-progress-bar-container",N:[{Z:"div",J:"ytp-ad-persistent-progress-bar"}]});this.api=w;this.V=D;this.L=M;L&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.T(this,this.V);this.progressBar=this.Z5("ytp-ad-persistent-progress-bar");this.T=-1;this.j(w,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; nm=function(w,D,M,L,Z,k){Zq.call(this,w,{Z:"div",J:"ytp-ad-player-overlay",N:[{Z:"div",J:"ytp-ad-player-overlay-flyout-cta"},{Z:"div",J:"ytp-ad-player-overlay-instream-info"},{Z:"div",J:"ytp-ad-player-overlay-skip-or-preview"},{Z:"div",J:"ytp-ad-player-overlay-progress-bar"},{Z:"div",J:"ytp-ad-player-overlay-instream-user-sentiment"},{Z:"div",J:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",D,M,L);this.B=k;this.W=this.Z5("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.T=this.Z5("ytp-ad-player-overlay-instream-info");this.D=null;Wgx(this)&&(w=hM("div"),g.AB(w,"ytp-ad-player-overlay-top-bar-gradients"),D=this.T,D.parentNode&&D.parentNode.insertBefore(w,D),(D=this.api.getVideoData(2))&&D.isListed&&D.title&&(M=new Is(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),M.CV(w),M.init(Of("ad-title"),{text:D.title},this.macros),g.T(this,M)),this.D=w);this.L=null;this.Md=this.Z5("ytp-ad-player-overlay-skip-or-preview");this.Jc=this.Z5("ytp-ad-player-overlay-progress-bar"); this.W_=this.Z5("ytp-ad-player-overlay-instream-user-sentiment");this.V7=this.Z5("ytp-ad-player-overlay-ad-disclosure-banner");this.V=Z;g.T(this,this.V);this.hide()}; Wgx=function(w){w=w.api.X();return g.Fs(w)&&w.V}; g.GN=function(w){w&=16777215;var D=[(w&16711680)>>16,(w&65280)>>8,w&255];w=D[0];var M=D[1];D=D[2];w=Number(w);M=Number(M);D=Number(D);if(w!=(w&255)||M!=(M&255)||D!=(D&255))throw Error('"('+w+","+M+","+D+'") is not a valid RGB color');M=w<<16|M<<8|D;return w<16?"#"+(16777216|M).toString(16).slice(1):"#"+M.toString(16)}; g.sx=function(){}; t$K=function(w){var D=new YR;var M=new bJ;M=BW(M,1,"botguard");w=BW(M,2,w);this.T=v1C(D,bJ,1,hPj,w)}; as=function(w){this.T=new NC(w)}; $Da=function(){var w=!1;try{w=!!window.sessionStorage.getItem("session_logininfo")}catch(D){w=!0}return(g.Xg("INNERTUBE_CLIENT_NAME")==="WEB"||g.Xg("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&w}; vq=function(){var w=w===void 0?!0:w;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");e2("LOGIN_INFO","");w&&window.sessionStorage.setItem("from_switch_account","1");w=!0;w=w===void 0?!1:w;var D,M=ifT;M||(M=document.querySelector("#persist_identity"));if(D=M){var L=D.src?(new URL(D.src)).origin:"*";if(w){var Z;(Z=D.contentWindow)==null||Z.postMessage({action:"clear"},L)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var k=window.sessionStorage.getItem("session_logininfo");if(k){var b;(b=D.contentWindow)==null||b.postMessage({loginInfo:k},L)}}}}catch(C){}}; cq=function(w){w&&(w.startsWith("https://accounts.google.com/AddSession")?vq():w.startsWith("https://accounts.google.com/ServiceLogin")?vq():w.startsWith("https://myaccount.google.com")&&g.Co(w).V.endsWith("/youtubeoptions")&&vq());if(g.Xg("LOGGED_IN",!0)&&$Da()){var D=g.Xg("VALID_SESSION_TEMPDATA_DOMAINS",[]);var M=g.ER(window.location.href);M&&D.push(M);M=g.ER(w);g.xB(D,M)||!M&&Gk(w,"/")?(D=W2(w),(D=rMa(D))?(D=Gur(D),D=(D=g.FN(D)||null)?PP(D):{}):D=null):D=null;D==null&&(D={});M=D;var L=void 0; $Da()?(L||(L=g.Xg("LOGIN_INFO")),L?(M.session_logininfo=L,M=!0):M=!1):M=!1;M&&dO(w,D)}}; g.dDK=function(w){var D=D===void 0?{}:D;var M=M===void 0?"":M;var L=L===void 0?window:L;w=g.dh(w,D);cq(w);M=g.C2(w+M);L=L.location;M=lL(M);M!==void 0&&(L.href=M)}; g.Bq=function(w,D,M){D=D===void 0?{}:D;M=M===void 0?!1:M;var L=g.Xg("EVENT_ID");L&&(D.ei||(D.ei=L));D&&dO(w,D);M||(cq(w),g.dDK(w))}; g.fm=function(w,D,M,L,Z){Z=Z===void 0?!1:Z;M&&dO(w,M);M=g.C2(w);var k=g.k1(M);w!=k&&JQ(Error("Unsafe window.open URL: "+w));w=k;D=D||ag(w).toString(36);try{if(Z)return Z=w,Z=bjR(Z),cq(Z),g.$1(window,Z,D,"attributionsrc")}catch(b){g.S2(b)}cq(w);return g.$1(window,M,D,L)}; y5I=function(w){qz=w}; IDK=function(w){rJ=w}; UDx=function(w){eU=w}; N_K=function(){xDr=eU=rJ=qz=null}; jCK=function(){var w=w===void 0?window.location.href:w;if(g.hY("kevlar_disable_theme_param"))return null;var D=p3(w);if(g.hY("enable_dark_theme_only_on_shorts")&&D!=null&&D.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var M=g.Kj(w).theme;return HfS.get(M)||null}catch(L){}return null}; Xs=function(){this.T={};if(this.V=h4j()){var w=g.FN("CONSISTENCY");w&&gqr(this,{encryptedTokenJarContents:w})}}; gqr=function(w,D){if(D.encryptedTokenJarContents&&(w.T[D.encryptedTokenJarContents]=D,typeof D.expirationSeconds==="string")){var M=Number(D.expirationSeconds);setTimeout(function(){delete w.T[D.encryptedTokenJarContents]},M*1E3); w.V&&g.n7("CONSISTENCY",D.encryptedTokenJarContents,M,void 0,!0)}}; uQ=function(){this.V=-1;var w=g.Xg("LOCATION_PLAYABILITY_TOKEN");g.Xg("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=TN(this))&&(w=this.localStorage.get("yt-location-playability-token"));w&&(this.locationPlayabilityToken=w,this.T=void 0)}; TN=function(w){return w.localStorage===void 0?new Pg("yt-client-location"):w.localStorage}; g.SU=function(w,D,M){D=D===void 0?!1:D;M=M===void 0?!1:M;var L=g.Xg("INNERTUBE_CONTEXT");if(!L)return g.HL(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};L=g.i1(L);g.hY("web_no_tracking_params_in_shell_killswitch")||delete L.clickTracking;L.client||(L.client={});var Z=L.client;Z.clientName==="MWEB"&&Z.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Z.clientFormFactor=g.Xg("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Z.screenWidthPoints=window.innerWidth;Z.screenHeightPoints= window.innerHeight;Z.screenPixelDensity=Math.round(window.devicePixelRatio||1);Z.screenDensityFloat=window.devicePixelRatio||1;Z.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var k=k===void 0?!1:k;var b=g.aj(),C="USER_INTERFACE_THEME_LIGHT";b.vr(165)?C="USER_INTERFACE_THEME_DARK":b.vr(174)?C="USER_INTERFACE_THEME_LIGHT":!g.hY("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (C="USER_INTERFACE_THEME_DARK");k=k?C:jCK()||C;Z.userInterfaceTheme=k;if(!D){if(k=AuC())Z.connectionType=k;g.hY("web_log_effective_connection_type")&&(k=DhS())&&(L.client.effectiveConnectionType=k)}var l;if(g.hY("web_log_memory_total_kbytes")&&((l=g.KI.navigator)==null?0:l.deviceMemory)){var E;l=(E=g.KI.navigator)==null?void 0:E.deviceMemory;L.client.memoryTotalKbytes=""+l*1E6}g.hY("web_gcf_hashes_innertube")&&(k=CsT())&&(E=k.coldConfigData,l=k.coldHashData,k=k.hotHashData,L.client.configInfo=L.client.configInfo|| {},E&&(L.client.configInfo.coldConfigData=E),l&&(L.client.configInfo.coldHashData=l),k&&(L.client.configInfo.hotHashData=k));E=g.Kj(g.KI.location.href);!g.hY("web_populate_internal_geo_killswitch")&&E.internalcountrycode&&(Z.internalGeo=E.internalcountrycode);Z.clientName==="MWEB"||Z.clientName==="WEB"?(Z.mainAppWebInfo||(Z.mainAppWebInfo={}),Z.mainAppWebInfo.graftUrl=g.KI.location.href,g.hY("kevlar_woffle")&&JuS.instance&&(E=JuS.instance,Z.mainAppWebInfo.pwaInstallabilityStatus=!E.T&&E.V?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),Z.mainAppWebInfo.webDisplayMode=FR(),Z.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Z.clientName==="TVHTML5"&&(!g.hY("web_lr_app_quality_killswitch")&&(E=g.Xg("LIVING_ROOM_APP_QUALITY"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{appQuality:E})),E=g.Xg("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{certificationScope:E}));if(!g.hY("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(S){}p=void 0}p&&(Z.timeZone=p)}(p=$E())?Z.experimentsToken=p:delete Z.experimentsToken;p=iU();Xs.instance||(Xs.instance=new Xs);L.request=Object.assign({},L.request,{internalExperimentFlags:p,consistencyTokenJars:ZY(Xs.instance.T)});!g.hY("web_prequest_context_killswitch")&&(p=g.Xg("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(L.request.externalPrequestContext=p);Z=g.aj();p=Z.vr(58);Z=Z.get("gsml","");L.user=Object.assign({}, L.user);p&&(L.user.enableSafetyMode=p);Z&&(L.user.lockedSafetyMode=!0);g.hY("warm_op_csn_cleanup")?M&&(D=g.$9())&&(L.clientScreenNonce=D):!D&&(D=g.$9())&&(L.clientScreenNonce=D);w&&(L.clickTracking={clickTrackingParams:w});if(w=g.w3("yt.mdx.remote.remoteClient_"))L.remoteClient=w;uQ.getInstance().setLocationOnInnerTubeContext(L);try{var W=kE(),h=W.bid;delete W.bid;L.adSignalsInfo={params:[],bid:h};for(var t=g.x(Object.entries(W)),d=t.next();!d.done;d=t.next()){var N=g.x(d.value),n=N.next().value, v=N.next().value;W=n;h=v;w=void 0;(w=L.adSignalsInfo.params)==null||w.push({key:W,value:""+h})}var G,f;if(((G=L.client)==null?void 0:G.clientName)==="TVHTML5"||((f=L.client)==null?void 0:f.clientName)==="TVHTML5_UNPLUGGED"){var e=g.Xg("INNERTUBE_CONTEXT");e.adSignalsInfo&&(L.adSignalsInfo.advertisingId=e.adSignalsInfo.advertisingId,L.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",L.adSignalsInfo.limitAdTracking=e.adSignalsInfo.limitAdTracking)}}catch(S){g.HL(S)}return L}; nql=function(w,D){if(!w)return!1;var M,L=(M=g.Q(w,RPG))==null?void 0:M.signal;if(L&&D.vn)return!!D.vn[L];var Z;if((M=(Z=g.Q(w,oqa))==null?void 0:Z.request)&&D.ZV)return!!D.ZV[M];for(var k in w)if(D.Vb[k])return!0;return!1}; FgK=function(w){var D={"Content-Type":"application/json"};g.Xg("EOM_VISITOR_DATA")?D["X-Goog-EOM-Visitor-Id"]=g.Xg("EOM_VISITOR_DATA"):g.Xg("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=g.Xg("VISITOR_DATA"));D["X-Youtube-Bootstrap-Logged-In"]=g.Xg("LOGGED_IN",!1);g.Xg("DEBUG_SETTINGS_METADATA")&&(D["X-Debug-Settings-Metadata"]=g.Xg("DEBUG_SETTINGS_METADATA"));w!=="cors"&&((w=g.Xg("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(D["X-Youtube-Client-Name"]=w),(w=g.Xg("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(D["X-Youtube-Client-Version"]= w),(w=g.Xg("CHROME_CONNECTED_HEADER"))&&(D["X-Youtube-Chrome-Connected"]=w),(w=g.Xg("DOMAIN_ADMIN_STATE"))&&(D["X-Youtube-Domain-Admin-State"]=w),g.Xg("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(w=g.Xg("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(D["X-YouTube-Lava-Device-Context"]=w));return D}; GVk=function(){this.T={}}; Qa=function(){this.mappings=new GVk}; JP=function(w){return function(){return new w}}; aDN=function(w){var D=D===void 0?"UNKNOWN_INTERFACE":D;if(w.length===1)return w[0];var M=sCK[D];if(M){M=new RegExp(M);for(var L=g.x(w),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,M.exec(Z))return Z}var k=[];Object.entries(sCK).forEach(function(b){var C=g.x(b);b=C.next().value;C=C.next().value;D!==b&&k.push(C)}); M=new RegExp(k.join("|"));w.sort(function(b,C){return b.length-C.length}); L=g.x(w);for(Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,!M.exec(Z))return Z;return w[0]}; g.zN=function(w){return"/youtubei/v1/"+aDN(w)}; Va=function(){}; Pq=function(){}; Ox=function(){}; Km=function(w){return g.w3("ytcsi."+(w||"")+"data_")||vqI(w)}; c5r=function(){var w=Km();w.info||(w.info={});return w.info}; mA=function(w){w=Km(w);w.metadata||(w.metadata={});return w.metadata}; AP=function(w){w=Km(w);w.tick||(w.tick={});return w.tick}; ww=function(w){w=Km(w);if(w.gel){var D=w.gel;D.gelInfos||(D.gelInfos={});D.gelTicks||(D.gelTicks={})}else w.gel={gelTicks:{},gelInfos:{}};return w.gel}; B_T=function(w){w=ww(w);w.gelInfos||(w.gelInfos={});return w.gelInfos}; DB=function(w){var D=Km(w).nonce;D||(D=g.WJ(16),Km(w).nonce=D);return D}; vqI=function(w){var D={tick:{},info:{}};g.mC("ytcsi."+(w||"")+"data_",D);return D}; Mg=function(){var w=g.w3("ytcsi.debug");w||(w=[],g.mC("ytcsi.debug",w),g.mC("ytcsi.reference",{}));return w}; LQ=function(w){w=w||"";var D=fDJ();if(D[w])return D[w];var M=Mg(),L={timerName:w,info:{},tick:{},span:{},jspbInfo:[]};M.push(L);return D[w]=L}; q6S=function(w){w=w||"";var D=fDJ();D[w]&&delete D[w];var M=Mg(),L={timerName:w,info:{},tick:{},span:{},jspbInfo:[]};M.push(L);D[w]=L}; fDJ=function(){var w=g.w3("ytcsi.reference");if(w)return w;Mg();return g.w3("ytcsi.reference")}; ZB=function(w){return r5S[w]||"LATENCY_ACTION_UNKNOWN"}; kK=function(w,D){Yo.call(this,1,arguments);this.timer=D}; bA=function(){this.T=0}; YK=function(){bA.instance||(bA.instance=new bA);return bA.instance}; lA=function(w,D){CQ[D]=CQ[D]||{count:0};var M=CQ[D];M.count++;M.time=(0,g.IC)();w.T||(w.T=g.SY(0,function(){var L=(0,g.IC)(),Z;for(Z in CQ)CQ[Z]&&L-CQ[Z].time>6E4&&delete CQ[Z];w&&(w.T=0)},5E3)); return M.count>5?(M.count===6&&Math.random()*1E5<1&&(M=new g.qA("CSI data exceeded logging limit with key",D.split("_")),D.indexOf("plev")>=0||g.jn(M)),!0):!1}; ePk=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; XTx=function(){var w;if(g.hY("csi_use_performance_navigation_timing")){var D,M,L,Z=Eo==null?void 0:(w=Eo.getEntriesByType)==null?void 0:(D=w.call(Eo,"navigation"))==null?void 0:(M=D[0])==null?void 0:(L=M.toJSON)==null?void 0:L.call(M);Z?(Z.requestStart=pQ(Z.requestStart),Z.responseEnd=pQ(Z.responseEnd),Z.redirectStart=pQ(Z.redirectStart),Z.redirectEnd=pQ(Z.redirectEnd),Z.domainLookupEnd=pQ(Z.domainLookupEnd),Z.connectStart=pQ(Z.connectStart),Z.connectEnd=pQ(Z.connectEnd),Z.responseStart=pQ(Z.responseStart), Z.secureConnectionStart=pQ(Z.secureConnectionStart),Z.domainLookupStart=pQ(Z.domainLookupStart),Z.isPerformanceNavigationTiming=!0,w=Z):w=Eo.timing}else w=g.hY("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Eo.timing)):Eo.timing;return w}; pQ=function(w){return Math.round(Wl()+w)}; Wl=function(){return(g.hY("csi_use_time_origin")||g.hY("csi_use_time_origin_tvhtml5"))&&Eo.timeOrigin?Math.floor(Eo.timeOrigin):Eo.timing.navigationStart}; t_=function(w,D){h_("_start",w,D)}; $K=function(w,D){if(!g.hY("web_csi_action_sampling_enabled")||!Km(D).actionDisabled){var M=LQ(D||"");kr(M.info,w);w.loadType&&(M=w.loadType,mA(D).loadType=M);kr(B_T(D),w);M=DB(D);D=Km(D).cttAuthInfo;YK().info(w,M,D)}}; T_T=function(){var w,D,M,L;return((L=jC().resolve(IR(DF))==null?void 0:(w=Lu())==null?void 0:(D=w.loggingHotConfig)==null?void 0:(M=D.csiConfig)==null?void 0:M.debugTicks)!=null?L:[]).map(function(Z){return Object.values(Z)[0]})}; h_=function(w,D,M){if(!g.hY("web_csi_action_sampling_enabled")||!Km(M).actionDisabled){var L=DB(M),Z;if(Z=g.hY("web_csi_debug_sample_enabled")&&L){(jC().resolve(IR(DF))==null?0:Lu())&&!uTG&&(uTG=!0,h_("gcfl",(0,g.IC)(),M));var k,b,C;Z=(jC().resolve(IR(DF))==null?void 0:(k=Lu())==null?void 0:(b=k.loggingHotConfig)==null?void 0:(C=b.csiConfig)==null?void 0:C.debugSampleWeight)||0;if(k=Z!==0)b:{k=T_T();if(k.length>0)for(b=0;bM.duration?L:M},{duration:0}))&&D.startTime>0&&D.responseEnd>0&&(h_("wffs",pQ(D.startTime)),h_("wffe",pQ(D.responseEnd)))}; OfI=function(w,D,M){Eo&&Eo.measure&&(w.startsWith("measure_")||(w="measure_"+w),M?Eo.measure(w,D,M):D?Eo.measure(w,D):Eo.measure(w))}; KgS=function(w){var D=iA("aft",w);if(D)return D;D=g.Xg((w||"")+"TIMING_AFT_KEYS",["ol"]);for(var M=D.length,L=0;L0&&$K(D);D={isNavigation:!0,actionType:ZB(g.Xg("TIMING_ACTION"))};var M=g.Xg("PREVIOUS_ACTION");M&&(D.previousAction=ZB(M));if(M=g.Xg("CLIENT_PROTOCOL"))D.httpProtocol=M;if(M=g.Xg("CLIENT_TRANSPORT"))D.transportProtocol=M;(M=g.$9())&&M!=="UNDEFINED_CSN"&&(D.clientScreenNonce=M);M=J5K();if(M===1||M===-1)D.isVisible= !0;M=mA().loadType==="cold";var L=c5r();M||(M=L.yt_lt==="cold");if(M){D.loadType="cold";M=c5r();L=XTx();var Z=Wl(),k=g.Xg("CSI_START_TIMESTAMP_MILLIS",0);k>0&&!g.hY("embeds_web_enable_csi_start_override_killswitch")&&(Z=k);Z&&(h_("srt",L.responseStart),M.prerender!==1&&t_(Z));M=wAk();M>0&&h_("fpt",M);M=XTx();M.isPerformanceNavigationTiming&&$K({performanceNavigationTiming:!0},void 0);h_("nreqs",M.requestStart,void 0);h_("nress",M.responseStart,void 0);h_("nrese",M.responseEnd,void 0);M.redirectEnd- M.redirectStart>0&&(h_("nrs",M.redirectStart,void 0),h_("nre",M.redirectEnd,void 0));M.domainLookupEnd-M.domainLookupStart>0&&(h_("ndnss",M.domainLookupStart,void 0),h_("ndnse",M.domainLookupEnd,void 0));M.connectEnd-M.connectStart>0&&(h_("ntcps",M.connectStart,void 0),h_("ntcpe",M.connectEnd,void 0));M.secureConnectionStart>=Wl()&&M.connectEnd-M.secureConnectionStart>0&&(h_("nstcps",M.secureConnectionStart,void 0),h_("ntcpe",M.connectEnd,void 0));Eo&&"getEntriesByType"in Eo&&PEI();M=[];if(document.querySelector&& Eo&&Eo.getEntriesByName)for(var b in IA)IA.hasOwnProperty(b)&&(L=IA[b],V$j(b,L)&&M.push(L));if(M.length>0)for(D.resourceInfo=[],b=g.x(M),M=b.next();!M.done;M=b.next())D.resourceInfo.push({resourceCache:M.value})}$K(D);D=ww();D.preLoggedGelInfos||(D.preLoggedGelInfos=[]);b=D.preLoggedGelInfos;D=B_T();M=void 0;for(L=0;L-1&&(delete GK["@type"],V=GK);N&&w.V.has(N)&&w.V.delete(N);((AG=D.config)==null?0:AG.Bzc)&&xK(D.config.Bzc);if(V||(ir=w.L)==null||!ir.vOt(D.input,D.oK)){aT.KV(15);break}return g.c(aT,w.L.s9J(D.input,D.oK),16);case 16:V=aT.V;case 15:return yKT(w, V,D),((YB=D.config)==null?0:YB.jmE)&&xK(D.config.jmE),L(),aT.return(V||void 0)}})}; heT=function(w,D){a:{w=w.wk;var M,L=(M=g.Q(D,RPG))==null?void 0:M.signal;if(L&&w.vn&&(M=w.vn[L])){var Z=M();break a}var k;if((M=(k=g.Q(D,oqa))==null?void 0:k.request)&&w.ZV&&(k=w.ZV[M])){Z=k();break a}for(Z in D)if(w.Vb[Z]&&(D=w.Vb[Z])){Z=D();break a}Z=void 0}if(Z!==void 0)return Promise.resolve(Z)}; $RG=function(w,D,M){var L,Z,k,b,C,l,E;return g.B(function(p){if(p.T==1){k=((L=D)==null?void 0:(Z=L.WB)==null?void 0:Z.identity)||bZ;l=(b=D)==null?void 0:(C=b.WB)==null?void 0:C.sessionIndex;var W=g.nv(w.T.Fj(k,{sessionIndex:l}));return g.c(p,W,2)}E=p.V;return p.return(Promise.resolve(Object.assign({},FgK(M),E)))})}; tBR=function(w,D,M){var L,Z=(D==null?void 0:(L=D.WB)==null?void 0:L.identity)||bZ,k;D=D==null?void 0:(k=D.WB)==null?void 0:k.sessionIndex;w=w.T.Fj(Z,{sessionIndex:D});return Object.assign({},FgK(M),w)}; GJ=function(){}; so=function(){}; aA=function(w){this.Y=w}; vl=function(){}; cl=function(){}; Bl=function(){}; fQ=function(){}; g.qg=function(w,D){var M=g.rR.apply(2,arguments);w=w===void 0?0:w;g.qA.call(this,D,M);this.errorType=w;Object.setPrototypeOf(this,this.constructor.prototype)}; rw=function(w,D,M,L){this.T=w;this.V=D;this.L=M;this.D=L}; URr=function(w,D,M){if(w.T){var L=p3(H2(D,"key"))||"/UNKNOWN_PATH";w.T.start(L)}L=M;g.hY("wug_networking_gzip_request")&&(L=rwT(M));var Z;return new ((Z=w.D)!=null?Z:window.Request)(D,L)}; g.XX=function(w,D){if(!eT){var M=jC();Ua(M,{Pn:xRC,DA:rw});var L={Vb:{feedbackEndpoint:JP(vl),modifyChannelNotificationPreferenceEndpoint:JP(cl),playlistEditEndpoint:JP(Bl),shareEntityEndpoint:JP(aA),subscribeEndpoint:JP(GJ),unsubscribeEndpoint:JP(so),webPlayerShareEntityServiceEndpoint:JP(fQ)}},Z=uQ.getInstance(),k={};Z&&(k.client_location=Z);w===void 0&&(w=z4J());D===void 0&&(D=M.resolve(xRC));Wyj(L,D,w,k);Ua(M,{Pn:N4K,M6:oA.instance});eT=M.resolve(N4K)}return eT}; HuK=function(w){var D=new Ya;if(w.interpreterJavascript){var M=Ful(w.interpreterJavascript);M=yZ(M).toString();var L=new ka;BW(L,6,M);gB(D,ka,1,L,VR)}else w.interpreterUrl&&(M=dy(w.interpreterUrl),M=MO(M).toString(),L=new b_,BW(L,4,M),gB(D,b_,2,L,VR));w.interpreterHash&&fK(D,3,w.interpreterHash,VR);w.program&&fK(D,4,w.program,VR);w.globalName&&fK(D,5,w.globalName,VR);w.clientExperimentsStateBlob&&fK(D,7,w.clientExperimentsStateBlob,VR);return D}; TJ=function(w){var D={};w=w.split("&");w=g.x(w);for(var M=w.next();!M.done;M=w.next())M=M.value.split("="),M.length===2&&(D[M[0]]=M[1]);return D}; odr=function(){if(g.hY("bg_st_hr"))return"havuokmhhs-0";var w,D=((w=performance)==null?void 0:w.timeOrigin)||0;return"havuokmhhs-"+Math.floor(D)}; uA=function(w){this.T=w}; jzr=function(){return new Promise(function(w){var D=window;D.ntpevasrs!==void 0?w(new uA(D.ntpevasrs)):(D.ntpqfbel===void 0&&(D.ntpqfbel=[]),D.ntpqfbel.push(function(M){w(new uA(M))}))})}; ooS=function(){if(Po()){var w=g.Xg("PLAYER_VARS",{});if(g.h7(w,"privembed",!1)!="1"&&!U7C(w)){var D=function(){ST=!0;"google_ad_status"in window?e2("DCLKSTAT",1):e2("DCLKSTAT",2)}; try{g.Ku(goK,D)}catch(M){}ReK.push(g.vf.RT(function(){if(!(ST||"google_ad_status"in window)){try{if(goK.toString()&&D){var M=""+g.br(D),L=IPx[M];L&&g.PA(L)}}catch(Z){}ST=!0;e2("DCLKSTAT",3)}},5E3))}}}; Qz=function(){var w=Number(g.Xg("DCLKSTAT",0));return isNaN(w)?0:w}; Pl=function(w,D,M){var L=this;this.network=w;this.options=D;this.V=M;this.T=null;if(D.L3W){var Z=new g.l_;this.T=Z.promise;g.KI.ytAtRC&&uC(function(){var k,b;return g.B(function(C){if(C.T==1){if(!g.KI.ytAtRC)return C.return();k=J_(null);return g.c(C,zJ(L,k),2)}b=C.V;g.KI.ytAtRC&&g.KI.ytAtRC(JSON.stringify(b));g.Hr(C)})},2); jzr().then(function(k){var b,C,l,E;return g.B(function(p){if(p.T==1)return k.bindInnertubeChallengeFetcher(function(W){return zJ(L,J_(W))}),g.c(p,KJ(),2); b=p.V;C=k.getLatestChallengeResponse();l=C.challenge;if(!l)throw Error("BGE_MACIL");E={challenge:l,g2:TJ(l),md:b,bgChallenge:new Ya};Z.resolve(E);k.registerChallengeFetchedCallback(function(W){W=W.challenge;if(!W)throw Error("BGE_MACR");W={challenge:W,g2:TJ(W),md:b,bgChallenge:new Ya};L.T=Promise.resolve(W)}); g.Hr(p)})})}else D.preload&&noR(this,new Promise(function(k){g.SY(0,function(){k(Vz(L))},0)}))}; J_=function(w){var D={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};w&&(D.interpreterHash=w);return D}; Vz=function(w,D){D=D===void 0?0:D;var M,L,Z,k,b,C,l,E,p,W,h,t;return g.B(function(d){switch(d.T){case 1:M=J_(Wx().T);if(g.hY("att_fet_ks"))return g.jN(d,7),g.c(d,zJ(w,M),9);g.jN(d,4);return g.c(d,FyK(w,M),6);case 6:b=d.V;Z=b.Tz9;k=b.y8L;L=b;g.oT(d,3);break;case 4:return g.FK(d),g.jn(Error("Failed to fetch attestation challenge after "+(D+" attempts; not retrying for 24h."))),Oo(w,864E5),d.return({challenge:"",g2:{},md:void 0,bgChallenge:void 0});case 9:L=d.V;if(!L)throw Error("Fetching Attestation challenge returned falsy"); if(!L.challenge)throw Error("Missing Attestation challenge");Z=L.challenge;k=TJ(Z);if("c1a"in k&&(!L.bgChallenge||!L.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.oT(d,3);break;case 7:C=g.FK(d);g.jn(C);D++;if(D>=5)return g.jn(Error("Failed to fetch attestation challenge after "+(D+" attempts; not retrying for 24h."))),Oo(w,864E5),d.return({challenge:"",g2:{},md:void 0,bgChallenge:void 0});l=1E3*Math.pow(2,D-1)+Math.random()*1E3;return d.return(new Promise(function(N){g.SY(0, function(){N(Vz(w,D))},l)})); case 3:E=Number(k.t)||7200;Oo(w,E*1E3);p=void 0;if(!("c1a"in k&&L.bgChallenge)){d.KV(10);break}W=HuK(L.bgChallenge);g.jN(d,11);return g.c(d,gnr(Wx(),W),13);case 13:g.oT(d,12);break;case 11:return h=g.FK(d),g.jn(h),d.return({challenge:Z,g2:k,md:p,bgChallenge:W});case 12:return g.jN(d,14),p=new EF({challenge:W,yD:{o4:"aGIf"}}),g.c(d,p.Jq,16);case 16:g.oT(d,10);break;case 14:t=g.FK(d),g.jn(t),p=void 0;case 10:return d.return({challenge:Z,g2:k,md:p,bgChallenge:W})}})}; zJ=function(w,D){var M;return g.B(function(L){M=w.V;if(!M||M.rI())return L.return(zJ(w.network,D));RA("att_pna",void 0,"attestation_challenge_fetch");return L.return(new Promise(function(Z){M.vS("publicytnetworkstatus-online",function(){zJ(w.network,D).then(Z)})}))})}; GGS=function(w){if(!w)throw Error("Fetching Attestation challenge returned falsy");if(!w.challenge)throw Error("Missing Attestation challenge");var D=w.challenge,M=TJ(D);if("c1a"in M&&(!w.bgChallenge||!w.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},w,{Tz9:D,y8L:M})}; FyK=function(w,D){var M,L,Z,k,b;return g.B(function(C){switch(C.T){case 1:M=void 0,L=0,Z={};case 2:if(!(L<5)){C.KV(4);break}if(!(L>0)){C.KV(5);break}Z.xX=1E3*Math.pow(2,L-1)+Math.random()*1E3;return g.c(C,new Promise(function(l){return function(E){g.SY(0,function(){E(void 0)},l.xX)}}(Z)),5); case 5:return g.jN(C,7),g.c(C,zJ(w,D),9);case 9:return k=C.V,C.return(GGS(k));case 7:M=b=g.FK(C),b instanceof Error&&g.jn(b);case 8:L++;Z={xX:void 0};C.KV(2);break;case 4:throw M;}})}; noR=function(w,D){w.T=D}; szC=function(w){var D,M,L;return g.B(function(Z){if(Z.T==1)return g.c(Z,Promise.race([w.T,null]),2);D=Z.V;var k=Vz(w);w.T=k;(M=D)==null||(L=M.md)==null||L.dispose();g.Hr(Z)})}; Oo=function(w,D){function M(){var Z;return g.B(function(k){Z=L-Date.now();return Z<1E3?g.c(k,szC(w),0):(uC(M,0,Math.min(Z,6E4)),k.KV(0))})} var L=Date.now()+D;M()}; aFK=function(w,D){return new Promise(function(M){g.SY(0,function(){M(D())},w)})}; g.voj=function(w,D){var M;return g.B(function(L){var Z=g.w3("yt.aba.att");return(M=Z?Z:Pl.instance!==void 0?Pl.instance.L.bind(Pl.instance):null)?L.return(M("ENGAGEMENT_TYPE_PLAYBACK",w,D)):L.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.cKl=function(){var w;return(w=(w=g.w3("yt.aba.att2"))?w:Pl.instance!==void 0?Pl.instance.D.bind(Pl.instance):null)?w():Promise.resolve(!1)}; fFk=function(w,D){var M=g.w3("ytDebugData.callbacks");M||(M={},g.mC("ytDebugData.callbacks",M));if(g.hY("web_dd_iu")||B4N.includes(w))M[w]=D}; KQ=function(){var w=qnG;var D=D===void 0?[]:D;var M=M===void 0?[]:M;D=Hva.apply(null,[jVa.apply(null,g.tG(D))].concat(g.tG(M)));this.store=RaC(w,void 0,D)}; g.ma=function(w,D,M){for(var L=Object.assign({},w),Z=g.x(Object.keys(D)),k=Z.next();!k.done;k=Z.next()){k=k.value;var b=w[k],C=D[k];if(C===void 0)delete L[k];else if(b===void 0)L[k]=C;else if(Array.isArray(C)&&Array.isArray(b))L[k]=M?[].concat(g.tG(b),g.tG(C)):C;else if(!Array.isArray(C)&&g.ZZ(C)&&!Array.isArray(b)&&g.ZZ(b))L[k]=g.ma(b,C,M);else if(typeof C===typeof b)L[k]=C;else return D=new g.qA("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:k,WW9:b,updateValue:C}),g.HL(D), w}return L}; A_=function(w){var D=this;w=w===void 0?[]:w;this.T=[];this.L=this.V=0;this.D=void 0;this.totalLength=0;w.forEach(function(M){D.append(M)})}; rKR=function(w,D){return w.T.length===0?!1:(w=w.T[w.T.length-1])&&w.buffer===D.buffer&&w.byteOffset+w.length===D.byteOffset}; wn=function(w,D){D=g.x(D.T);for(var M=D.next();!M.done;M=D.next())w.append(M.value)}; DR=function(w,D,M){return w.split(D).Tg.split(M).u7}; M5=function(w){w.D=void 0;w.V=0;w.L=0}; LM=function(w,D,M){w.isFocused(D);return D-w.L+M<=w.T[w.V].length}; eeT=function(w){if(!w.D){var D=w.T[w.V];w.D=new DataView(D.buffer,D.byteOffset,D.length)}return w.D}; XAl=function(w,D,M){D=D===void 0?0:D;M=M===void 0?-1:M;if(!w.totalLength||!M)return new DataView(new ArrayBuffer(0));M<0&&(M=w.totalLength-D);w.focus(D);if(!LM(w,D,M)){var L=w.V,Z=w.L;w.focus(D+M-1);Z=new Uint8Array(w.L+w.T[w.V].length-Z);for(var k=0,b=L;b<=w.V;b++)Z.set(w.T[b],k),k+=w.T[b].length;w.T.splice(L,w.V-L+1,Z);M5(w);w.focus(D)}L=w.T[w.V];return new DataView(L.buffer,L.byteOffset+D-w.L,M)}; ZR=function(w,D,M){w=XAl(w,D===void 0?0:D,M===void 0?-1:M);return new Uint8Array(w.buffer,w.byteOffset,w.byteLength)}; kT=function(w,D,M){w=ZR(w,D===void 0?0:D,M===void 0?-1:M);D=new Uint8Array(w.length);try{D.set(w)}catch(L){for(M=0;M>10;k=56320|k&1023}Ek[Z++]=k}}k=String.fromCharCode.apply(String,Ek); Z<1024&&(k=k.substring(0,Z));M.push(k)}return M.join("")}; h4=function(w,D){var M;if((M=WU)==null?0:M.encodeInto)return D=WU.encodeInto(w,D),D.read>6|192:((Z&64512)===55296&&L+1>18|240,D[M++]=Z>>12&63|128):D[M++]=Z>>12|224,D[M++]=Z>>6&63|128),D[M++]=Z&63|128)}return M}; t4=function(w){if(WU)return WU.encode(w);var D=new Uint8Array(Math.ceil(w.length*1.2)),M=h4(w,D);D.lengthM&&(D=D.subarray(0,M));return D}; $T=function(w){this.T=w;this.pos=0;this.V=-1}; iK=function(w){var D=bK(w.T,w.pos);++w.pos;if(D<128)return D;for(var M=D&127,L=1;D>=128;)D=bK(w.T,w.pos),++w.pos,L*=128,M+=(D&127)*L;return M}; dn=function(w,D){var M=w.V;for(w.V=-1;w.pos+1<=w.T.totalLength;){M<0&&(M=iK(w));var L=M>>3,Z=M&7;if(L===D)return!0;if(L>D){w.V=M;break}M=-1;switch(Z){case 0:iK(w);break;case 1:w.pos+=8;break;case 2:L=iK(w);w.pos+=L;break;case 5:w.pos+=4}}return!1}; y2=function(w,D){if(dn(w,D))return iK(w)}; Snj=function(w,D){if(dn(w,D))return D=ZR(w.T,w.pos,8),w.pos+=8,(new DataView(D.buffer,D.byteOffset,D.byteLength)).getFloat64(0,!0)}; I6=function(w,D){if(dn(w,D))return!!iK(w)}; Uk=function(w,D){if(dn(w,D)){D=iK(w);var M=ZR(w.T,w.pos,D);w.pos+=D;return M}}; xT=function(w,D){if(w=Uk(w,D))return g.pM(w)}; N5=function(w,D,M){if(w=Uk(w,D))return M(new $T(new A_([w])))}; HU=function(w,D){for(var M=[];dn(w,D);)M.push(iK(w));return M.length?M:void 0}; jW=function(w,D,M){for(var L=[],Z;Z=Uk(w,D);)L.push(M(new $T(new A_([Z]))));return L.length?L:void 0}; gn=function(w,D){w=w instanceof Uint8Array?new A_([w]):w;return D(new $T(w))}; Qza=function(w,D){w=new Uint8Array(w);D&&w.set(D);return w}; JKj=function(w){this.pos=0;this.V=[];this.T=Qza(w===void 0?4096:w);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; R6=function(w,D){D=w.pos+D;if(!(w.T.length>=D)){for(var M=w.T.length*2;M268435455){R6(w,4);for(var M=D&1073741823,L=0;L<4;L++)w.view.setUint8(w.pos,M&127|128),M>>=7,w.pos+=1;D=Math.floor(D/268435456)}for(R6(w,4);D>127;)w.view.setUint8(w.pos,D&127|128),D>>=7,w.pos+=1;w.view.setUint8(w.pos,D);w.pos+=1}; nM=function(w,D,M){M!==void 0&&(o6(w,D*8),o6(w,M))}; FB=function(w,D,M){M!==void 0&&nM(w,D,M?1:0)}; Gg=function(w,D,M){M!==void 0&&(o6(w,D*8+2),D=M.length,o6(w,D),R6(w,D),w.T.set(M,w.pos),w.pos+=D)}; uK=function(w,D,M){M!==void 0&&(zeS(w,D,Math.ceil(Math.log2(M.length*4+2)/7)),R6(w,M.length*1.2),D=h4(M,w.T.subarray(w.pos)),w.pos+D>w.T.length&&(R6(w,D),D=h4(M,w.T.subarray(w.pos))),w.pos+=D,VBj(w))}; zeS=function(w,D,M){M=M===void 0?2:M;o6(w,D*8+2);w.V.push(w.pos);w.V.push(M);w.pos+=M}; VBj=function(w){for(var D=w.V.pop(),M=w.V.pop(),L=w.pos-M-D;D--;){var Z=D?128:0;w.view.setUint8(M++,L&127|Z);L>>=7}}; SW=function(w,D,M,L,Z){M&&(zeS(w,D,Z===void 0?3:Z),L(w,M),VBj(w))}; g.Q2=function(w,D){var M=new JKj(4096);D(M,w);return new Uint8Array(M.T.buffer,M.T.byteOffset,M.pos)}; g.J4=function(w){var D=new $T(new A_([FA(decodeURIComponent(w))]));w=xT(D,2);D=y2(D,4);var M=PZK[D];if(typeof M==="undefined")throw w=new g.qA("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:D}),g.HL(w),w;return{pX:D,entityType:M,entityId:w}}; g.zg=function(w,D){var M=M===void 0?0:M;var L=new JKj;Gg(L,2,t4(w));w=OuR[D];if(typeof w==="undefined")throw M=new g.qA("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:D}),g.HL(M),M;nM(L,4,w);nM(L,5,1);D=new Uint8Array(L.T.buffer,L.T.byteOffset,L.pos);return encodeURIComponent(g.oJ(D,M))}; V2=function(w,D,M,L){if(L===void 0)return L=Object.assign({},w[D]||{}),M=(delete L[M],L),L={},Object.assign({},w,(L[D]=M,L));var Z={},k={};return Object.assign({},w,(k[D]=Object.assign({},w[D],(Z[M]=L,Z)),k))}; KyR=function(w,D,M,L,Z){var k=w[D];if(k==null||!k[M])return w;L=g.ma(k[M],L,Z==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Z={};k={};return Object.assign({},w,(k[D]=Object.assign({},w[D],(Z[M]=L,Z)),k))}; mRR=function(w,D){w=w===void 0?{}:w;switch(D.type){case "ENTITY_LOADED":return D.payload.reduce(function(L,Z){var k,b=(k=Z.options)==null?void 0:k.persistenceOption;if(b&&b!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&b!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return L;if(!Z.entityKey)return g.HL(Error("Missing entity key")),L;if(Z.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Z.payload)return Z=new g.qA("REPLACE entity mutation is missing a payload",{entityKey:Z.entityKey}),g.HL(Z),L;var C=g.Mc(Z.payload); return V2(L,C,Z.entityKey,Z.payload[C])}if(Z.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Z=Z.entityKey;try{var l=g.J4(Z).entityType;C=V2(L,l,Z);break a}catch(W){if(W instanceof Error){Z=new g.qA("Failed to deserialize entity key",{entityKey:Z,originalMessage:W.message});g.HL(Z);C=L;break a}throw W;}C=void 0}return C}if(Z.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Z.payload)return Z=new g.qA("UPDATE entity mutation is missing a payload",{entityKey:Z.entityKey}),g.HL(Z),L;C=g.Mc(Z.payload);var E,p;return KyR(L, C,Z.entityKey,Z.payload[C],(E=Z.fieldMask)==null?void 0:(p=E.mergeOptions)==null?void 0:p.repeatedFieldsMergeOption)}return L},w); case "REPLACE_ENTITY":var M=D.payload;return V2(w,M.entityType,M.key,M.Re);case "REPLACE_ENTITIES":return Object.keys(D.payload).reduce(function(L,Z){var k=D.payload[Z];return Object.keys(k).reduce(function(b,C){return V2(b,Z,C,k[C])},L)},w); case "UPDATE_ENTITY":return M=D.payload,KyR(w,M.entityType,M.key,M.Re,M.UbE);default:return w}}; PU=function(w,D,M){return w[D]?w[D][M]||null:null}; Ok=function(w){return window.Int32Array?new Int32Array(w):Array(w)}; MG=function(w){g.X.call(this);this.counter=[0,0,0,0];this.V=new Uint8Array(16);this.T=16;if(!AKR){var D,M=new Uint8Array(256),L=new Uint8Array(256);var Z=1;for(D=0;D<256;D++)M[Z]=D,L[D]=Z,Z^=Z<<1^(Z>>7&&283);KM=new Uint8Array(256);mT=Ok(256);A4=Ok(256);we=Ok(256);DM=Ok(256);for(var k=0;k<256;k++){Z=k?L[255^M[k]]:0;Z^=Z<<1^Z<<2^Z<<3^Z<<4;Z=Z&255^Z>>>8^99;KM[k]=Z;D=Z<<1^(Z>>7&&283);var b=D^Z;mT[k]=D<<24|Z<<16|Z<<8|b;A4[k]=b<<24|mT[k]>>>8;we[k]=Z<<24|A4[k]>>>8;DM[k]=Z<<24|we[k]>>>8}AKR=!0}Z=Ok(44);for(M= 0;M<4;M++)Z[M]=w[4*M]<<24|w[4*M+1]<<16|w[4*M+2]<<8|w[4*M+3];for(L=1;M<44;M++)w=Z[M-1],M%4||(w=(KM[w>>16&255]^L)<<24|KM[w>>8&255]<<16|KM[w&255]<<8|KM[w>>>24],L=L<<1^(L>>7&&283)),Z[M]=Z[M-4]^w;this.key=Z}; wJS=function(w){for(var D=w.key,M=w.counter[0]^D[0],L=w.counter[1]^D[1],Z=w.counter[2]^D[2],k=w.counter[3]^D[3],b=3;b>=0&&!(w.counter[b]=-~w.counter[b]);b--);for(var C,l,E=4;E<40;)b=mT[M>>>24]^A4[L>>16&255]^we[Z>>8&255]^DM[k&255]^D[E++],C=mT[L>>>24]^A4[Z>>16&255]^we[k>>8&255]^DM[M&255]^D[E++],l=mT[Z>>>24]^A4[k>>16&255]^we[M>>8&255]^DM[L&255]^D[E++],k=mT[k>>>24]^A4[M>>16&255]^we[L>>8&255]^DM[Z&255]^D[E++],M=b,L=C,Z=l;w=w.V;b=D[40];w[0]=KM[M>>>24]^b>>>24;w[1]=KM[L>>16&255]^b>>16&255;w[2]=KM[Z>>8&255]^ b>>8&255;w[3]=KM[k&255]^b&255;b=D[41];w[4]=KM[L>>>24]^b>>>24;w[5]=KM[Z>>16&255]^b>>16&255;w[6]=KM[k>>8&255]^b>>8&255;w[7]=KM[M&255]^b&255;b=D[42];w[8]=KM[Z>>>24]^b>>>24;w[9]=KM[k>>16&255]^b>>16&255;w[10]=KM[M>>8&255]^b>>8&255;w[11]=KM[L&255]^b&255;b=D[43];w[12]=KM[k>>>24]^b>>>24;w[13]=KM[M>>16&255]^b>>16&255;w[14]=KM[L>>8&255]^b>>8&255;w[15]=KM[Z&255]^b&255}; k6=function(){if(!L_&&!g.XT){if(ZM)return ZM;var w;ZM=(w=window.crypto)==null?void 0:w.subtle;var D,M,L;if(((D=ZM)==null?0:D.importKey)&&((M=ZM)==null?0:M.sign)&&((L=ZM)==null?0:L.encrypt))return ZM;ZM=void 0}}; g.C_=function(w){var D=k6();D&&(this.T=new bB(w,D));this.V=new g.Y6(w)}; bB=function(w,D){this.V=w;this.subtleCrypto=D}; DYR=function(w,D,M){var L,Z;return g.B(function(k){switch(k.T){case 1:if(w.T){k.KV(2);break}return g.c(k,w.subtleCrypto.importKey("raw",w.V,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:w.T=k.V;case 2:return L={name:"AES-CTR",counter:M,length:128},g.c(k,w.subtleCrypto.encrypt(L,w.T,D),4);case 4:return Z=k.V,k.return(new Uint8Array(Z))}})}; g.Y6=function(w){this.V=w}; lB=function(w){this.W=new Uint8Array(64);this.L=new Uint8Array(64);this.D=0;this.Y=new Uint8Array(64);this.V=0;this.W.set(w);this.L.set(w);for(w=0;w<64;w++)this.W[w]^=92,this.L[w]^=54;this.reset()}; MCK=function(w,D,M){for(var L=w.G,Z=w.T[0],k=w.T[1],b=w.T[2],C=w.T[3],l=w.T[4],E=w.T[5],p=w.T[6],W=w.T[7],h,t,d,N=0;N<64;)N<16?(L[N]=d=D[M]<<24|D[M+1]<<16|D[M+2]<<8|D[M+3],M+=4):(h=L[N-2],t=L[N-15],d=L[N-7]+L[N-16]+((h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),L[N]=d),h=W+Ev[N]+d+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&E^~l&p),t=((Z>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10))+(Z&k^Z&b^k&b),W=h+t,C+=h,N++,N<16?(L[N]=d=D[M]<<24|D[M+1]<<16|D[M+2]<<8|D[M+3],M+=4):(h= L[N-2],t=L[N-15],d=L[N-7]+L[N-16]+((h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),L[N]=d),h=p+Ev[N]+d+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&l^~C&E),t=((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+(W&Z^W&k^Z&k),p=h+t,b+=h,N++,N<16?(L[N]=d=D[M]<<24|D[M+1]<<16|D[M+2]<<8|D[M+3],M+=4):(h=L[N-2],t=L[N-15],d=L[N-7]+L[N-16]+((h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),L[N]=d),h=E+Ev[N]+d+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&C^ ~b&l),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&W^p&Z^W&Z),E=h+t,k+=h,N++,N<16?(L[N]=d=D[M]<<24|D[M+1]<<16|D[M+2]<<8|D[M+3],M+=4):(h=L[N-2],t=L[N-15],d=L[N-7]+L[N-16]+((h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),L[N]=d),h=l+Ev[N]+d+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&b^~k&C),t=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&p^E&W^p&W),d=W,W=C,C=d,d=p,p=b,b=d,d=E,E=k,k=d,l=Z+h,Z=h+t,N++;w.T[0]=Z+w.T[0]|0;w.T[1]=k+w.T[1]|0;w.T[2]=b+w.T[2]|0;w.T[3]= C+w.T[3]|0;w.T[4]=l+w.T[4]|0;w.T[5]=E+w.T[5]|0;w.T[6]=p+w.T[6]|0;w.T[7]=W+w.T[7]|0}; ZVG=function(w){var D=new Uint8Array(32),M=64-w.V;w.V>55&&(M+=64);var L=new Uint8Array(M);L[0]=128;for(var Z=w.D*8,k=1;k<9;k++){var b=Z%256;L[M-k]=b;Z=(Z-b)/256}w.update(L);for(M=0;M<8;M++)D[M*4]=w.T[M]>>>24,D[M*4+1]=w.T[M]>>>16&255,D[M*4+2]=w.T[M]>>>8&255,D[M*4+3]=w.T[M]&255;LON(w);return D}; LON=function(w){w.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];w.G=[];w.G.length=64;w.D=0;w.V=0}; khC=function(w){this.T=w}; bVk=function(w,D,M){w=new lB(w.T);w.update(D);w.update(M);D=ZVG(w);w.update(w.W);w.update(D);D=ZVG(w);w.reset();return D}; YaN=function(w){this.V=w}; CGK=function(w,D,M,L){var Z,k,b;return g.B(function(C){switch(C.T){case 1:if(w.T){C.KV(2);break}return g.c(C,L.importKey("raw",w.V,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:w.T=C.V;case 2:return Z=new Uint8Array(D.length+M.length),Z.set(D),Z.set(M,D.length),k={name:"HMAC",hash:"SHA-256"},g.c(C,L.sign(k,w.T,Z),4);case 4:return b=C.V,C.return(new Uint8Array(b))}})}; leC=function(w,D,M){w.L||(w.L=new khC(w.V));return bVk(w.L,D,M)}; ErG=function(w,D,M){var L,Z;return g.B(function(k){if(k.T==1){L=k6();if(!L)return k.return(leC(w,D,M));g.jN(k,3);return g.c(k,CGK(w,D,M,L),5)}if(k.T!=3)return k.return(k.V);Z=g.FK(k);g.jn(Z);L_=!0;return k.return(leC(w,D,M))})}; WOl=function(w){for(var D="",M=0;M=0||IQ(w,0,"gad_source",w.search(UR))>=0}; UYK=function(){this.T=new Map}; NHT=function(w,D){var M=jC().resolve(xYK);if(IeJ(D)){var L=NM(D,"gclid");D={handleEvent:function(C){w&&!w.closed&&typeof w.postMessage==="function"&&C&&C.origin&&C.source===w&&C.data&&C.data.action==="gcl_setup"&&w.postMessage(Object.assign({},{action:"gcl_transfer"},L&&{gclid:L},{gadSource:2}),C.origin)}}; for(var Z=g.x(M.T),k=Z.next();!k.done;k=Z.next()){var b=g.x(k.value);k=b.next().value;b=b.next().value;if(k.closed)try{window.removeEventListener("message",b),M.T.delete(k)}catch(C){g.HL(C)}}w&&M.T.size<15&&(M.T.set(w,D),window.addEventListener("message",D))}}; p_=function(w,D,M){if(!D)return w.length>=1?w[w.length-1]:null;for(var L=g.x(w),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.width&&Z.height&&(M&&Z.width>=D||!M&&Z.height>=D))return Z;for(D=w.length-1;D>=0;D--)if(M&&w[D].width||!M&&w[D].height)return w[D];return w[0]}; Wa=function(){this.state=1;this.md=null;this.le=void 0}; jRr=function(w,D,M,L,Z,k){var b=b===void 0?"trayride":b;M?(w.lj(2),g.Ku(g.y6(M),function(){if(window[b])HVS(w,L,b,Z);else{w.lj(3);var C=yQa(M),l=document.getElementById(C);l&&(ijT(C),l.parentNode.removeChild(l));g.jn(new g.qA("BL:ULB",""+M))}},k)):D?(k=g.tM("SCRIPT"),D instanceof d2?(k.textContent=yZ(D),Ig(k)):k.textContent=D,k.nonce=iL(document),document.head.appendChild(k),document.head.removeChild(k),window[b]?HVS(w,L,b,Z):(w.lj(4),g.jn(new g.qA("BL:ULBJ")))):g.jn(new g.qA("BL:ULV"))}; HVS=function(w,D,M,L){w.lj(5);var Z=!!w.le&&grT.includes(g.ER(w.le)||"");try{var k=new EF({program:D,globalName:M,yD:{disable:!g.hY("att_web_record_metrics")||!g.hY("att_skip_metrics_for_cookieless_domains_ks")&&Z,o4:"aGIf"}});k.Jq.then(function(){w.lj(6);L&&L(D)}); w.JS(k)}catch(b){w.lj(7),b instanceof Error&&g.jn(b)}}; hE=function(){var w=g.w3("yt.abuse.playerAttLoader");return w&&["bgvma","bgvmb","bgvmc"].every(function(D){return D in w})?w:null}; tE=function(){Wa.apply(this,arguments)}; $6=function(){}; R9I=function(w,D,M){for(var L=!1,Z=g.x(w.CP.entries()),k=Z.next();!k.done;k=Z.next())k=g.x(k.value).next().value,k.slotType==="SLOT_TYPE_PLAYER_BYTES"&&k.lW==="core"&&(L=!0);if(L){a:if(!M){w=g.x(w.CP.entries());for(M=w.next();!M.done;M=w.next())if(L=g.x(M.value),M=L.next().value,L=L.next().value,M.slotType==="SLOT_TYPE_IN_PLAYER"&&M.lW==="core"){M=L.layoutId;break a}M=void 0}M?D.sO(M):Zg("No triggering layout ID available when attempting to mute.")}}; iB=function(w,D){this.X8=w;this.VW=D}; de=function(){}; yx=function(){}; nrT=function(w){g.X.call(this);var D=this;this.Rs=w;this.T=new Map;In(this,"commandExecutorCommand",function(M,L,Z){orR(D,M.commands,L,Z)}); In(this,"clickTrackingParams",function(){})}; FOI=function(w,D){In(w,D.SE(),function(M,L,Z){D.Oo(M,L,Z)})}; In=function(w,D,M){w.xt();w.T.get(D)&&g.HL(Error("Extension name "+D+" already registered"));w.T.set(D,M)}; orR=function(w,D,M,L){D=D===void 0?[]:D;w.xt();var Z=[],k=[];D=g.x(D);for(var b=D.next();!b.done;b=D.next())b=b.value,g.Q(b,Ghk)||g.Q(b,sRN)?Z.push(b):k.push(b);Z=g.x(Z);for(D=Z.next();!D.done;D=Z.next())Uv(w,D.value,M,L);k=g.x(k);for(Z=k.next();!Z.done;Z=k.next())Uv(w,Z.value,M,L)}; Uv=function(w,D,M,L){w.xt();D.loggingUrls&&aeK(w,"loggingUrls",D.loggingUrls,M,L);D=g.x(Object.entries(D));for(var Z=D.next();!Z.done;Z=D.next()){var k=g.x(Z.value);Z=k.next().value;k=k.next().value;Z==="openPopupAction"?w.Rs.get().uB("innertubeCommand",{openPopupAction:k}):Z==="confirmDialogEndpoint"?w.Rs.get().uB("innertubeCommand",{confirmDialogEndpoint:k}):vrC.hasOwnProperty(Z)||aeK(w,Z,k,M,L)}}; aeK=function(w,D,M,L,Z){if((w=w.T.get(D))&&typeof w==="function")try{w(M,L,Z)}catch(k){g.HL(k)}else D=new g.qA("Unhandled field",D),g.jn(D)}; x6=function(w,D,M){this.Ly=w;this.T=D;this.FE=M;Ua(jC(),{Pn:xYK,DA:UYK})}; NG=function(w){this.value=w}; Ha=function(w){this.value=w}; jQ=function(w){this.value=w}; ge=function(w){this.value=w}; Rn=function(w){this.value=w}; on=function(w){this.value=w}; n_=function(w){this.value=w}; FH=function(){NG.apply(this,arguments)}; Gi=function(w){this.value=w}; an=function(w){this.value=w}; va=function(w){this.value=w}; ca=function(w){this.value=w}; Ba=function(w){this.value=w}; f_=function(w){this.value=w}; qG=function(w){this.value=w}; re=function(w){this.value=w}; eQ=function(w){this.value=w}; XH=function(w){this.value=w}; Ti=function(){NG.apply(this,arguments)}; uB=function(w){this.value=w}; SQ=function(w){this.value=w}; Qx=function(w){this.value=w}; JE=function(w){this.value=w}; zi=function(w){this.value=w}; Vx=function(w){this.value=w}; Pa=function(w){this.value=w}; Ov=function(w){this.value=w}; K_=function(w){this.value=w}; md=function(w){this.value=w}; AE=function(w){this.value=w}; wY=function(w){this.value=w}; D5=function(w){this.value=w}; Mw=function(w){this.value=w}; LB=function(w){this.value=w}; Z5=function(w){this.value=w}; k$=function(w){this.value=w}; bN=function(w){this.value=w}; Y$=function(w){this.value=w}; CB=function(w){this.value=w}; lN=function(w){this.value=w}; E0=function(w){this.value=w}; pB=function(w){this.value=w}; W8=function(w){this.value=w}; h3=function(w){this.value=w}; t3=function(w){this.value=w}; $$=function(w){this.value=w}; iN=function(w){this.value=w}; dY=function(w){this.value=w}; y7=function(w){this.value=w}; Ir=function(w){this.value=w}; U0=function(w){this.value=w}; x$=function(w){this.value=w}; Nw=function(w){this.value=w}; H8=function(w){this.value=w}; jK=function(w){this.value=w}; gY=function(w){this.value=w}; Rr=function(w){this.value=w}; or=function(w){this.value=w}; nB=function(){NG.apply(this,arguments)}; FZ=function(w){this.value=w}; GP=function(){NG.apply(this,arguments)}; s0=function(){NG.apply(this,arguments)}; ar=function(){NG.apply(this,arguments)}; v8=function(){NG.apply(this,arguments)}; c8=function(){NG.apply(this,arguments)}; B8=function(w){this.value=w}; fB=function(w){this.value=w}; qw=function(w){this.value=w}; rY=function(w){this.value=w}; eK=function(w){this.value=w}; TP=function(w,D,M){if(M&&!M.includes(w.layoutType))return!1;D=g.x(D);for(M=D.next();!M.done;M=D.next())if(!XZ(w.clientMetadata,M.value))return!1;return!0}; uN=function(){return""}; czS=function(w,D){switch(w){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 D(w),8}}; SK=function(w,D,M,L){L=L===void 0?!1:L;tx.call(this,w);this.gV=M;this.PB=L;this.args=[];D&&this.args.push(D)}; O=function(w,D,M,L){L=L===void 0?!1:L;tx.call(this,w);this.gV=M;this.PB=L;this.args=[];D&&this.args.push(D)}; Q7=function(w){var D=new Map;w.forEach(function(M){D.set(M.T(),M)}); this.T=D}; XZ=function(w,D){return w.T.has(D)}; J3=function(w,D){w=w.T.get(D);if(w!==void 0)return w.get()}; zP=function(w){return Array.from(w.T.keys())}; V7=function(w,D,M){if(M&&M!==w.slotType)return!1;D=g.x(D);for(M=D.next();!M.done;M=D.next())if(!XZ(w.clientMetadata,M.value))return!1;return!0}; feK=function(w){var D;return((D=BHK.get(w))==null?void 0:D.IZ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; O0=function(w,D){var M={type:D.slotType,controlFlowManagerLayer:qaN.get(D.lW)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};D.slotEntryTrigger&&(M.entryTriggerType=D.slotEntryTrigger.triggerType);D.slotPhysicalPosition!==1&&(M.slotPhysicalPosition=D.slotPhysicalPosition);if(w){M.debugData={slotId:D.slotId};if(w=D.slotEntryTrigger)M.debugData.slotEntryTriggerData=P8(w);w=D.slotFulfillmentTriggers;M.debugData.fulfillmentTriggerData=[];w=g.x(w);for(var L=w.next();!L.done;L=w.next())M.debugData.fulfillmentTriggerData.push(P8(L.value)); D=D.slotExpirationTriggers;M.debugData.expirationTriggerData=[];D=g.x(D);for(w=D.next();!w.done;w=D.next())M.debugData.expirationTriggerData.push(P8(w.value))}return M}; rzJ=function(w,D){var M={type:D.layoutType,controlFlowManagerLayer:qaN.get(D.lW)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};w&&(M.debugData={layoutId:D.layoutId});return M}; P8=function(w,D){var M={type:w.triggerType};D!=null&&(M.category=D);w.triggeringSlotId!=null&&(M.triggerSourceData||(M.triggerSourceData={}),M.triggerSourceData.associatedSlotId=w.triggeringSlotId);w.triggeringLayoutId!=null&&(M.triggerSourceData||(M.triggerSourceData={}),M.triggerSourceData.associatedLayoutId=w.triggeringLayoutId);return M}; e9I=function(w,D,M,L){D={opportunityType:D};w&&(L||M)&&(L=g.yR(L||[],function(Z){return O0(w,Z)}),D.debugData=Object.assign({},M&&M.length>0?{associatedSlotId:M}:{},L.length>0?{slots:L}:{})); return D}; m3=function(w,D){return function(M){return XJG(KB(w),D.slotId,D.slotType,D.slotPhysicalPosition,D.lW,D.slotEntryTrigger,D.slotFulfillmentTriggers,D.slotExpirationTriggers,M.layoutId,M.layoutType,M.lW)}}; XJG=function(w,D,M,L,Z,k,b,C,l,E,p){return{adClientDataEntry:{slotData:O0(w,{slotId:D,slotType:M,slotPhysicalPosition:L,lW:Z,slotEntryTrigger:k,slotFulfillmentTriggers:b,slotExpirationTriggers:C,clientMetadata:new Q7([])}),layoutData:rzJ(w,{layoutId:l,layoutType:E,lW:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],UL:new Map,clientMetadata:new Q7([]),F_:{}})}}}; w9=function(w){this.D5=w;w=Math.random();var D=this.D5.get();D=g.A3(D.K.X().experiments,"html5_debug_data_log_probability");D=Number.isFinite(D)&&D>=0&&D<=1?D:0;this.T=w1){g.jn(new g.qA("Exit already started",{current:w.currentState}));var M=!1}else M=!0;if(!M)return!1;w.currentState=2;w.T=D;return!0}; ZT=function(w){if(w.currentState!==2)return!1;w.currentState=3;return!0}; dXl=function(w,D){var M=new Map;w=g.x(w);for(var L=w.next();!L.done;L=w.next()){L=L.value;if(L.layoutType==="LAYOUT_TYPE_MEDIA")var Z="v";else L.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(Z=J3(L.clientMetadata,"metadata_type_linked_in_player_layout_type"),Z=Z==="LAYOUT_TYPE_ENDCAP"||Z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":Z==="LAYOUT_TYPE_SURVEY"?"s":Z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):Z="u";M.set(L.layoutId,Z);if(Z==="u"){var k={};Z=D;L=(k.c=L.layoutId,k);Z.K.H_("uct",L)}}w= D.MR();kM={contentCpn:w,e5:M};L={};M=(L.ct=M.size,L.c=w,L);D.K.H_("acc",M)}; ySK=function(){kM={contentCpn:"",e5:new Map}}; bM=function(w){var D;return(D=kM.e5.get(w))!=null?D:"u"}; YM=function(w,D,M){w.K.H_(D,M);Iqj(w)}; UXr=function(w){var D=w.layoutId,M=w.UR;if(w.O3){var L={};YM(w.Ly,"slso",(L.ec=D,L.is=M,L.ctp=bM(D),L))}}; CH=function(w){var D=w.layoutId,M=w.UR;if(w.O3){var L={};YM(w.Ly,"slse",(L.ec=D,L.is=M,L.ctp=bM(D),L))}}; xXT=function(w){var D=w.layoutId,M=w.UR,L=w.Ly;w.O3&&(w={},YM(L,"sleo",(w.xc=D,w.is=M,w.ctp=bM(D),w)),Iqj(L))}; NsK=function(w){var D=w.cpn,M=w.Ly;w=w.UR;var L=M.MR(),Z={};YM(M,"ce",(Z.ec=D,Z.ia=D!==L,Z.r=kM.e5.has(D),Z.is=w,Z.ctp=bM(D),Z))}; Iqj=function(w){if(w.MR()!==kM.contentCpn){var D={};D=(D.c=kM.contentCpn,D);w.K.H_("ccm",D)}}; HbC=function(w){var D=w.cpn,M=w.Ly;w=w.UR;var L=M.MR(),Z={};YM(M,"cx",(Z.xc=D,Z.ia=D!==L,Z.r=kM.e5.has(D),Z.is=w,Z.ctp=bM(D),Z))}; j1G=function(w){this.params=w;this.T=new Set}; gbN=function(w,D,M){if(!w.T.has(D)){w.T.add(D);var L={};w.params.yg.La(D,Object.assign({},M,(L.p_ac=w.params.adCpn,L.p_isv=w.params.mdL&&w.params.GC,L)))}}; EU=function(w,D,M){if(lM(w.params.yg.D5.get(),!0)){var L=M.flush,Z={};gbN(w,D,(Z.cts=M.currentTimeSec,Z.f=L,Z))}}; Rxj=function(w,D){this.Ly=w;this.D5=D}; pH=function(w){var D=[];if(w){w=g.x(Object.entries(w));for(var M=w.next();!M.done;M=w.next()){var L=g.x(M.value);M=L.next().value;L=L.next().value;L!==void 0&&(L=typeof L==="boolean"?""+ +L:(""+L).replace(/[:,=]/g,"_"),D.push(M+"."+L))}}return D.join(";")}; g.W_=function(w,D,M){D=D===void 0?{}:D;this.errorCode=w;this.details=D;this.severity=M===void 0?0:M}; hF=function(w){return w===1||w===2}; tF=function(w,D){D=D===void 0?0:D;if(w instanceof g.W_)return w;w=w&&w instanceof Error?w:Error(""+w);hF(D)?g.HL(w):g.jn(w);return new g.W_(D===1?"player.fatalexception":"player.exception",{name:""+w.name,message:""+w.message},D)}; obS=function(w,D){function M(){var L=g.rR.apply(0,arguments);w.removeEventListener("playing",M);D.apply(null,g.tG(L))} w.addEventListener("playing",M)}; $M=function(){var w=g.w3("yt.player.utils.videoElement_");w||(w=g.tM("VIDEO"),g.mC("yt.player.utils.videoElement_",w));return w}; iM=function(w){var D=$M();return!!(D&&D.canPlayType&&D.canPlayType(w))}; yd=function(w){if(/opus/.test(w)&&g.d5&&!ym("38")&&!g.q2())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(w);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(w);if(/webm/.test(w)&&!iSG())return!1;w==='audio/mp4; codecs="mp4a.40.2"'&&(w='video/mp4; codecs="avc1.4d401f"');return!!iM(w)}; nbS=function(w){try{var D=yd('video/mp4; codecs="avc1.42001E"')||yd('video/webm; codecs="vp9"');return(yd('audio/mp4; codecs="mp4a.40.2"')||yd('audio/webm; codecs="opus"'))&&(D||!w)||iM('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(M){return"html5.missingapi"}}; Iw=function(){var w=$M();return!(!w.webkitSupportsPresentationMode||typeof w.webkitSetPresentationMode!=="function")}; UU=function(){var w=$M();try{var D=w.muted;w.muted=!D;return w.muted!==D}catch(M){}return!1}; FPr=function(){var w;return((w=navigator.connection)==null?void 0:w.type)||""}; g.xM=function(){U4.apply(this,arguments)}; N$=function(w,D,M,L,Z,k,b,C){this.sampleRate=w===void 0?0:w;this.numChannels=D===void 0?0:D;this.spatialAudioType=M===void 0?"SPATIAL_AUDIO_TYPE_NONE":M;this.T=L===void 0?!1:L;this.L=Z;this.D=k;this.audioQuality=b===void 0?"AUDIO_QUALITY_UNKNOWN":b;this.V=C===void 0?!1:C}; aqx=function(w,D){SW(w,2,D.Jz,H_,3);SW(w,3,D.innertubeRequest,GLI,3);Gg(w,4,D.onesieUstreamerConfig);Gg(w,9,D.Ft);SW(w,10,D.Sn,jl,3);SW(w,15,D.reloadPlaybackParams,s1R,3)}; cSx=function(w,D){SW(w,1,D.formatId,g5,3);nM(w,2,D.startTimeMs);nM(w,3,D.durationMs);nM(w,4,D.a4);nM(w,5,D.Za);SW(w,9,D.r2W,vbG,3);SW(w,11,D.C39,Rw,1);SW(w,12,D.CC,Rw,1)}; BsI=function(w,D){uK(w,1,D.videoId);nM(w,2,D.lmt)}; vbG=function(w,D){if(D.Hv)for(var M=0;M>31));nM(w,16,D.zD_);nM(w,17,D.detailedNetworkType);nM(w,18,D.s$);nM(w,19,D.Rz);nM(w,21,D.wI5);nM(w,23,D.e9);nM(w,28,D.r4);nM(w,29,D.ms_);nM(w,34,D.visibility);M=D.playbackRate;if(M!==void 0){var L=new ArrayBuffer(4);(new Float32Array(L))[0]=M;M=(new Uint32Array(L))[0];if(M!==void 0)for(o6(w,285),R6(w,4),L=0;L<4;)w.view.setUint8(w.pos,M&255),M>>=8,w.pos+=1,L+=1}nM(w,36,D.Ng); SW(w,38,D.mediaCapabilities,Xvl,3);nM(w,39,D.U5_);nM(w,40,D.ZC);nM(w,44,D.playerState);FB(w,46,D.hE);nM(w,48,D.G1);nM(w,50,D.Js);nM(w,51,D.wu);nM(w,54,D.wf);if(D.t6)for(M=0;M>31));uK(w,2,D.message)}; Oba=function(w,D){nM(w,1,D.clientState);SW(w,2,D.HDE,VGK,1)}; zxC=function(w,D){Gg(w,1,D.nPk);SW(w,2,D.Dr_,PIT,3);SW(w,3,D.coldStartInfo,Oba,3)}; JSR=function(w,D){nM(w,1,D.type);Gg(w,2,D.value)}; Q1J=function(w,D){uK(w,1,D.hl);uK(w,12,D.deviceMake);uK(w,13,D.deviceModel);nM(w,16,D.clientName);uK(w,17,D.clientVersion);uK(w,18,D.osName);uK(w,19,D.osVersion)}; KPJ=function(w,D){uK(w,1,D.name);uK(w,2,D.value)}; nH=function(w,D){uK(w,1,D.url);if(D.DU)for(var M=0;M55?"60": D>49?"50":D>39?"48":"")));this.qualityLabel=w;this.T=l||"";this.primaries=E||""}; v_=function(w,D){var M=Math.max(w,D);w=Math.min(w,D);D=fH[0];for(var L=0;L=Math.floor(k*16/9)*1.3||w>=k*1.3)return D;D=Z}return"tiny"}; el=function(w,D,M){M=M===void 0?{}:M;this.id=w;this.mimeType=D;M.sL>0||(M.sL=16E3);Object.assign(this,M);w=g.x(this.id.split(";"));this.itag=w.next().value;this.T=w.next().value;this.containerType=q$(D);this.RJ=r5[this.itag]||""}; Xt=function(w){return w.RJ==="9"||w.RJ==="("||w.RJ==="9h"||w.RJ==="(h"}; FAJ=function(w){return w.RJ==="H"||w.RJ==="h"}; Tw=function(w){return w.RJ==="9h"||w.RJ==="(h"}; GNK=function(w){return!!w.f6&&!!w.f6.fairplay&&(w.RJ==="("||w.RJ==="(h"||w.RJ==="A"||w.RJ==="MEAC3")||uM&&!!w.f6&&w.RJ==="1e"}; Sl=function(w){return w.RJ==="1"||w.RJ==="1h"||uM&&w.RJ==="1e"}; Qd=function(w){return w.RJ==="mac3"||w.RJ==="meac3"||w.RJ==="m"||w.RJ==="i"}; JF=function(w){return w.RJ==="MAC3"||w.RJ==="MEAC3"||w.RJ==="M"||w.RJ==="I"}; g.zw=function(w){return w.containerType===1}; ssT=function(w){return w.RJ==="("||w.RJ==="(h"||w.RJ==="H"||uM&&w.RJ==="1e"}; Vd=function(w){return w.mimeType==="application/x-mpegURL"}; g.P_=function(w,D){return{itag:+w.itag,lmt:D?0:w.lastModified,xtags:w.T||""}}; agx=function(w){var D=navigator.mediaCapabilities;if(D==null||!D.decodingInfo||w.RJ==="f")return Promise.resolve();var M={type:w.audio&&w.video?"file":"media-source"};w.video&&(M.video={contentType:w.mimeType,width:w.video.width||640,height:w.video.height||360,bitrate:w.sL*8||1E6,framerate:w.video.fps||30});w.audio&&(M.audio={contentType:w.mimeType,channels:""+(w.audio.numChannels||2),bitrate:w.sL*8||128E3,samplerate:w.audio.sampleRate||44100});return D.decodingInfo(M).then(function(L){w.V=L})}; KH=function(w){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(w)}; m$=function(w){return/(vp9|vp09|vp8|avc1|av01)/.test(w)}; AF=function(w){return w.includes("vtt")||w.includes("text/mp4")}; q$=function(w){return w.indexOf("/mp4")>=0?1:w.indexOf("/webm")>=0?2:w.indexOf("/x-flv")>=0?3:w.indexOf("/vtt")>=0?4:0}; wk=function(w,D,M,L,Z,k,b){var C=new N$;D in g.c_||(D="small");D==="light"&&(D="tiny");L&&Z?(Z=Number(Z),L=Number(L)):(Z=g.c_[D],L=Math.round(Z*16/9));k=new B_(L,Z,0,null,void 0,D,k,b);w=unescape(w.replace(/"/g,'"'));return new el(M,w,{audio:C,video:k})}; D0=function(w){var D="id="+w.id;w.video&&(D+=", res="+w.video.qualityLabel);var M,L;return D+", byterate=("+((M=w.cB)==null?void 0:M.toFixed(0))+", "+((L=w.sL)==null?void 0:L.toFixed(0))+")"}; ML=function(w,D){return{start:function(M){return w[M]}, end:function(M){return D[M]}, length:w.length}}; v0a=function(w,D,M){for(var L=[],Z=[],k=0;k=D)return M}catch(L){}return-1}; kW=function(w,D){return Z0(w,D)>=0}; cPK=function(w,D){if(!w)return NaN;D=Z0(w,D);return D>=0?w.start(D):NaN}; b$=function(w,D){if(!w)return NaN;D=Z0(w,D);return D>=0?w.end(D):NaN}; YW=function(w){return w&&w.length?w.end(w.length-1):NaN}; C5=function(w){return YW(w)>0}; l$=function(w,D){w=b$(w,D);return w>=0?w-D:0}; EP=function(w,D,M){for(var L=[],Z=[],k=0;kM||(L.push(Math.max(D,w.start(k))-D),Z.push(Math.min(M,w.end(k))-D));return ML(L,Z)}; p5=function(w,D,M,L){g.mI.call(this);var Z=this;this.VZ=w;this.start=D;this.end=M;this.isActive=L;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.uG={error:function(){!Z.xt()&&Z.isActive&&Z.publish("error",Z)}, updateend:function(){!Z.xt()&&Z.isActive&&Z.publish("updateend",Z)}}; this.VZ.zH(this.uG);this.zN=this.isActive}; hd=function(w,D,M,L,Z,k){g.mI.call(this);var b=this;this.rW=w;this.lO=D;this.id=M;this.containerType=L;this.RJ=Z;this.GC=k;this.kD=this.fE=this.yy=null;this.rL=!1;this.appendWindowStart=this.timestampOffset=0;this.QJ=ML([],[]);this.kH=!1;this.FC=[];this.NZ=WF?[]:void 0;this.handler=function(l){return b.publish(l.type,b)}; var C;if((C=this.rW)==null?0:C.addEventListener)this.rW.addEventListener("updateend",this.handler),this.rW.addEventListener("error",this.handler)}; td=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; $W=function(w,D){this.Zv=w;this.T=D===void 0?!1:D;this.V=!1}; i$=function(w,D,M){M=M===void 0?!1:M;g.X.call(this);this.mediaElement=w;this.v_=D;this.isView=M;this.Y=0;this.D=!1;this.W=!0;this.B=0;this.callback=null;this.U=!1;this.v_||(this.lO=this.mediaElement.Dv());this.events=new g.xM(this);g.T(this,this.events);this.L=new $W(this.v_?window.URL.createObjectURL(this.v_):this.lO.webkitMediaSourceURL,!0);w=this.v_||this.lO;x7(this.events,w,["sourceopen","webkitsourceopen"],this.hHE);x7(this.events,w,["sourceclose","webkitsourceclose"],this.v6E);this.G={updateend:this.PQ}}; BJI=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; fgr=function(w,D){dk(w)?g.j4(function(){D(w)}):w.callback=D}; qxK=function(w,D,M){if(y3){var L;IE(w.mediaElement,{l:"mswssb",sr:(L=w.mediaElement.Th)==null?void 0:L.tf()},!1);D.zH(w.G,w);M.zH(w.G,w)}w.T=D;w.V=M;g.T(w,D);g.T(w,M)}; UP=function(w){return!!w.T||!!w.V}; dk=function(w){try{return xW(w)==="open"}catch(D){return!1}}; xW=function(w){if(w.v_)return w.v_.readyState;switch(w.lO.webkitSourceState){case w.lO.SOURCE_OPEN:return"open";case w.lO.SOURCE_ENDED:return"ended";default:return"closed"}}; NL=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; rPK=function(w){dk(w)&&(w.v_?w.v_.endOfStream():w.lO.webkitSourceEndOfStream(w.lO.EOS_NO_ERROR))}; e_J=function(w,D,M,L){if(!w.T||!w.V)return null;var Z=w.T.isView()?w.T.VZ:w.T,k=w.V.isView()?w.V.VZ:w.V,b=new i$(w.mediaElement,w.v_,!0);b.L=w.L;qxK(b,new p5(Z,D,M,L),new p5(k,D,M,L));dk(w)||w.T.Pt(w.T.jb());return b}; Xqx=function(w){var D;(D=w.T)==null||D.rU();var M;(M=w.V)==null||M.rU();w.W=!1}; HF=function(){var w=this;this.XH=this.fk=UkR;this.promise=new g.RV(function(D,M){w.fk=D;w.XH=M})}; jV=function(){g.X.call(this);this.BD=!1;this.Zv=null;this.G=this.Y=!1;this.D=new g.Ej;this.Th=null;g.T(this,this.D)}; gk=function(w){w=w.Ze();return w.length<1?NaN:w.end(w.length-1)}; TJK=function(w){!w.V&&BJI()&&(w.L?w.L.then(function(){return TJK(w)}):w.PH()||(w.V=w.d2()))}; usC=function(w){w.V&&(w.V.dispose(),w.V=void 0)}; IE=function(w,D,M){var L;((L=w.Th)==null?0:L.gW())&&w.Th.H_("rms",D,M===void 0?!1:M)}; Sxk=function(w,D,M){w.isPaused()||w.getCurrentTime()>D||M>10||(w.play(),g.C7(function(){Sxk(w,w.getCurrentTime(),M+1)},500))}; QsC=function(w,D){w.Zv&&w.Zv.equals(D)||(w.Zv&&w.Zv.dispose(),w.Zv=D)}; RE=function(w){return l$(w.m5(),w.getCurrentTime())}; JPl=function(w,D){if(w.K7()===0||w.hasError())return!1;var M=w.getCurrentTime()>0;return D>=0&&(w=w.Ze(),w.length||!M)?kW(w,D):M}; oE=function(w){w.PH()&&(w.Th&&w.Th.WV("rs_s"),e$&&w.getCurrentTime()>0&&w.seekTo(0),w.oU(),w.load(),QsC(w,null));delete w.L}; n5=function(w){switch(w.qs()){case 2:return"progressive.net.retryexhausted";case 3:return w=w.WI(),(w==null?0:w.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||z_I&&(w==null?0:w.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.FF=function(w,D,M){this.QL=D===void 0?null:D;this.seekSource=M===void 0?null:M;this.state=w||64}; Gb=function(w,D,M){M=M===void 0?!1:M;return VUC(w,D.getCurrentTime(),(0,g.IC)(),RE(D),M)}; sP=function(w,D,M,L){if(!(D===w.state&&M===w.QL&&L===w.seekSource||D!==void 0&&(D&128&&!M||D&2&&D&16))){var Z;if(Z=D)Z=D||w.state,Z=!!(Z&16||Z&32);w=new g.FF(D,M,Z?L?L:w.seekSource:null)}return w}; aE=function(w,D,M){return sP(w,w.state|D,null,M===void 0?null:M)}; vF=function(w,D){return sP(w,w.state&~D,null,null)}; cF=function(w,D,M,L){return sP(w,(w.state|D)&~M,null,L===void 0?null:L)}; g.z=function(w,D){return!!(w.state&D)}; g.BF=function(w,D){return D.state===w.state&&D.QL===w.QL}; f5=function(w){return w.isPlaying()&&!g.z(w,16)&&!g.z(w,32)}; qL=function(w){return g.z(w,128)?-1:g.z(w,2)?0:g.z(w,2048)?3:g.z(w,64)?-1:g.z(w,1)&&!g.z(w,32)?3:g.z(w,8)?1:g.z(w,4)?2:-1}; eV=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t,d,N,n){g.X.call(this);var v=this;this.CG=w;this.slot=D;this.layout=M;this.FE=L;this.V$=Z;this.Gh=k;this.aJ=b;this.cA=C;this.Ca=l;this.BO=E;this.position=W;this.Y=h;this.D5=t;this.Kc=d;this.iO=N;this.context=n;this.H9=!0;this.W=!1;this.eb="not_rendering";this.V=!1;this.L=new M$;w=J3(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.kt=new WS(M.UL,this.FE,w,M.layoutId);var G;w=((G=rk(this))==null?void 0:G.progressCommands)||[];this.D=new Vnk(l, w,M.layoutId,function(){return v.Lp()}); this.T=new j1G({adCpn:this.layout.layoutId,yg:n.yg,mdL:this.Kc,GC:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; XF=function(w){return{layoutId:w.zz(),UR:w.Kc,Ly:w.Gh.get(),O3:w.fO()}}; Tb=function(w,D){return D.layoutId!==w.layout.layoutId?(w.CG.Vy(w.slot,D,new SK("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+w.layout.layoutId+("and LayoutType: "+w.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; u$=function(w){w.eb="rendering_start_requested";w.BO(-1)}; rk=function(w){return J3(w.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; PQR=function(w){Zg("Received layout exit signal when not in layout exit flow.",w.slot,w.layout)}; Omx=function(w){var D;return((D=SV(w.Gh.get(),2))==null?void 0:D.clientPlaybackNonce)||""}; Q3=function(w,D){switch(D){case "normal":w.l9("complete");break;case "skipped":w.l9("skip");break;case "abandoned":y_(w.kt,"impression")&&w.l9("abandon")}}; Jd=function(w,D){w.W||(D=new g.k0(D.state,new g.FF),w.W=!0);return D}; zb=function(w,D){mY(D)?w.BO(1):g.Y0(D,4)&&!g.Y0(D,2)&&w.fn();bQ(D,4)<0&&!(bQ(D,2)<0)&&w.xw()}; KAk=function(w){w.position===0&&(w.cA.get(),w=J3(w.layout.clientMetadata,"metadata_type_ad_placement_config").kind,w={adBreakType:V3(w)},xK("ad_bl"),g.Ng(w))}; PF=function(w,D){iH(w.kt,D,!w.V)}; APx=function(w){var D;return(((D=rk(w))==null?void 0:D.progressCommands)||[]).findIndex(function(M){return!!g.Q(M==null?void 0:M.command,mzK)})!==-1}; OP=function(w,D){var M=J3(w.clientMetadata,"metadata_type_eligible_for_ssap");return M===void 0?(Zg("Expected SSAP eligibility in PlayerBytes factory",w),!1):D.fO(M)}; K5=function(w,D){if(!cI(D.get(),"html5_ssap_pass_transition_reason"))return 3;switch(w){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Zg("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Zg("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:w}),3;default:p2(w,"unknown layoutExitReason")}}; wll=function(w){Zg("getExitReason: unexpected reason",void 0,void 0,{reason:w})}; m4=function(w,D){if(cI(D.get(),"html5_ssap_pass_transition_reason"))switch(w){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return wll(w),"abandoned";case 3:case 1:return wll(w),"error";default:p2(w,"unexpected transition reason")}else switch(w){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Zg("getExitReason: unexpected reason",void 0,void 0,{reason:w}),"error";default:p2(w,"unexpected transition reason")}}; g.Ad=function(w,D,M){jT(w,M)||RA(w,D,M);jT(w,"video_to_ad")||RA(w,D,"video_to_ad");jT(w,"ad_to_video")||RA(w,D,"ad_to_video");jT(w,"ad_to_ad")||RA(w,D,"ad_to_ad")}; w6=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t,d,N,n,v){eV.call(this,w,D,M,L,Z,k,b,C,E,p,W,h,t,d,N,n,v);var G=this;this.Rs=l;this.zf=W;this.zG=!0;this.Rf=this.Yk=0;this.SG=Bb(function(){UXr(XF(G));G.CG.Q$(G.slot,G.layout)}); this.Rh=Bb(function(){xXT(XF(G));G.eb!=="rendering_stop_requested"&&G.zf(G);G.layoutExitReason?G.CG.WA(G.slot,G.layout,G.layoutExitReason):PQR(G)}); this.timer=new g.vj(200);this.timer.listen("tick",function(){G.M$()}); g.T(this,this.timer)}; MJ=function(w){w.Rf=Date.now();DN(w,w.Yk);w.timer.start()}; DgT=function(w){w.Yk=w.Lp();w.bN(w.Yk/1E3,!0);DN(w,w.Yk)}; DN=function(w,D){D={current:D/1E3,duration:w.Lp()/1E3};w.Rs.get().uB("onAdPlaybackProgress",D)}; LY=function(w){w6.call(this,w.CG,w.slot,w.SW,w.FE,w.V$,w.Gh,w.aJ,w.cA,w.Rs,w.Ca,w.BO,w.zf,w.Vo,w.RH,w.D5,w.Kc,w.iO,w.context)}; ZN=function(w){w6.call(this,w.CG,w.slot,w.SW,w.FE,w.V$,w.Gh,w.aJ,w.cA,w.Rs,w.Ca,w.BO,w.zf,w.Vo,w.RH,w.D5,w.Kc,w.iO,w.context)}; kw=function(){ZN.apply(this,arguments)}; MTS=function(w){return OP(w.slot,w.D5.get())?new kw(w):new LY(w)}; CY=function(w){eV.call(this,w.callback,w.slot,w.SW,w.FE,w.V$,w.Gh,w.aJ,w.cA,w.Ca,w.BO,w.zf,w.Vo,w.RH,w.D5,w.Kc,w.iO,w.context);var D=this;this.adCpn="";this.h0=this.VX=0;this.SG=Bb(function(){UXr(XF(D));D.CG.Q$(D.slot,D.layout)}); this.Rh=Bb(function(){xXT(XF(D));D.eb!=="rendering_stop_requested"&&D.zf(D);D.layoutExitReason?D.CG.WA(D.slot,D.layout,D.layoutExitReason):PQR(D)}); this.sT=w.sT;this.DO=w.DO;this.zD=w.zD;this.Rs=w.Rs;this.EH=w.EH;this.zf=w.zf;if(!this.fO()){cI(this.D5.get(),"html5_disable_media_load_timeout")||(this.wM=new g.ui(function(){D.mN("load_timeout",new SK("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); w=bb(this.D5.get());var M=Yw(this.D5.get());w&&M&&(this.Ta=new g.ui(function(){var L=J3(D.layout.clientMetadata,"metadata_type_preload_player_vars");L&&D.DO.get().K.preloadVideoByPlayerVars(L,2,300)}))}}; ZQI=function(w,D){var M=J3(D.clientMetadata,"metadata_type_ad_video_id"),L=J3(D.clientMetadata,"metadata_type_legacy_info_card_vast_extension");M&&L&&w.EH.get().K.X().Jc.add(M,{Fv:L});(D=J3(D.clientMetadata,"metadata_type_sodar_extension_data"))&&b1K(w.sT.get(),D);LaS(w.aJ.get(),!1)}; kJk=function(w){LaS(w.aJ.get(),!0);var D;((D=w.shrunkenPlayerBytesConfig)==null?0:D.shouldRequestShrunkenPlayerBytes)&&w.aJ.get().Qm(!1)}; bQk=function(w){return new lb(w)}; E5=function(){CY.apply(this,arguments)}; lb=function(){E5.apply(this,arguments)}; YoT=function(w){return MTS(Object.assign({},w,{CG:w.callback,BO:function(){}}))}; CAK=function(w){return new CY(Object.assign({},w,{BO:function(D){w.Rs.get().uB("onAdIntroStateChange",D)}}))}; lBR=function(w){function D(M){w.Rs.get().lq(M)} return OP(w.slot,w.D5.get())?bQk(Object.assign({},w,{BO:D})):new CY(Object.assign({},w,{BO:D}))}; pY=function(w){for(var D=w.SW,M=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],L=g.x(hN()),Z=L.next();!Z.done;Z=L.next())M.push(Z.value);if(fl(D,{L6:M,Rc:["LAYOUT_TYPE_MEDIA_BREAK"]}))return YoT(w);D=w.SW;M=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];L=g.x(hN());for(Z=L.next();!Z.done;Z=L.next())M.push(Z.value);if(fl(D,{L6:M,Rc:["LAYOUT_TYPE_MEDIA"]}))return XZ(w.SW.clientMetadata,"metadata_type_ad_intro")?CAK(w):lBR(w)}; plk=function(w){var D=J3(w.clientMetadata,"metadata_type_ad_placement_config").kind,M=J3(w.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:w.layoutId,adType:EKT(M),adBreakType:V3(D)}}; V3=function(w){switch(w){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"}}; EKT=function(w){switch(w){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; WaJ=function(w){try{return new WE(w.sQ,w.slot,w.layout,w.gH,w.J8,w.Gh,w.Ll,w.DO,w.RO,w.aJ,w.EcD,w)}catch(D){}}; WE=function(w,D,M,L,Z,k,b,C,l,E,p,W){g.X.call(this);this.sQ=w;this.slot=D;this.layout=M;this.gH=L;this.J8=Z;this.Gh=k;this.Ll=b;this.DO=C;this.RO=l;this.aJ=E;this.params=W;this.H9=!0;w=pY(p);if(!w)throw Error("Invalid params for sublayout");this.e2=w}; hnN=function(){this.T=1;this.V=new M$}; hr=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t){g.X.call(this);this.callback=w;this.Gh=D;this.Ll=M;this.DO=L;this.aJ=Z;this.aC=k;this.cA=b;this.t3=C;this.slot=l;this.layout=E;this.gH=p;this.Q4=W;this.RO=h;this.D5=t;this.H9=!0;this.Dz=!1;this.Oi=[];this.j5=-1;this.JP=!1;this.Fw=new hnN}; tTJ=function(w){var D;return(D=w.layout.Lm)!=null?D:J3(w.layout.clientMetadata,"metadata_type_sub_layouts")}; tr=function(w){return{Ly:w.Gh.get(),UR:!1,O3:w.fO()}}; $gT=function(w,D,M){if(w.jV()===w.Oi.length-1){var L,Z;Zg("Unexpected skip requested during the last sublayout",(L=w.mK())==null?void 0:L.vz(),(Z=w.mK())==null?void 0:Z.hc(),{requestingSlot:D,requestingLayout:M})}}; iQx=function(w,D,M){return M.layoutId!==$w(w,D,M)?(Zg("onSkipRequested for a PlayerBytes layout that is not currently active",w.vz(),w.hc()),!1):!0}; dgJ=function(w){w.jV()===w.Oi.length-1&&Zg("Unexpected skip with target requested during the last sublayout")}; y_R=function(w,D,M){return M.renderingContent===void 0&&M.layoutId!==$w(w,D,M)?(Zg("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",w.vz(),w.hc(),{requestingSlot:D,requestingLayout:M}),!1):!0}; IBk=function(w,D,M,L){var Z=J3(D.hc().clientMetadata,"metadata_type_ad_pod_skip_target");if(Z&&Z>0&&Z0)){Zg("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",w.slot,w.layout,{indexToPlay:D,layoutId:w.layout.layoutId});break a}w.j5=D;D=w.mK();if(w.jV()>0&&!w.fO()){var M=w.cA.get();M.V=!1;var L={};M.T&&M.videoId&&(L.cttAuthInfo={token:M.T,videoId:M.videoId});Hl("ad_to_ad",L)}M=g.Q(D.hc().renderingContent,PS);if(M==null?0: M.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var Z;M=!((Z=w.aC.get().Kdt.get(M.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&Z)}else M=!1;M?ib(w,w.jV()+1):w.E9(D)}}; IK=function(w){hr.call(this,w.sQ,w.Gh,w.Ll,w.DO,w.aJ,w.aC,w.cA,w.t3,w.slot,w.layout,w.gH,w.Q4,w.RO,w.D5)}; Nwj=function(w){(w=w.mK())&&w.Kp()}; U5=function(w){hr.call(this,w.sQ,w.Gh,w.Ll,w.DO,w.aJ,w.aC,w.cA,w.t3,w.slot,w.layout,w.gH,w.Q4,w.RO,w.D5);this.Mr=void 0}; HQJ=function(w,D){w.Lh()&&!ZT(w.Fw.V)||w.callback.WA(w.slot,w.layout,D)}; xw=function(w){return cI(w.D5.get(),"html5_ssap_pass_transition_reason")}; jAC=function(w,D,M){D.b8().currentState<2&&(M=m4(M,w.D5),D.OV(D.hc(),M));M=D.b8().T;w.oy(w.slot,D.hc(),M)}; gKI=function(w,D){if(w.Fw.V.currentState<2){var M=m4(D,w.D5);M==="error"?w.callback.Vy(w.slot,w.layout,new SK("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:D},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):yL(w.Q4,w.layout,M)}}; NJ=function(w,D,M){D.b8().currentState>=2||(D.OV(D.hc(),M),ZT(D.b8())&&($_(w.t3,w.slot,D.hc(),M),w.Mr=void 0))}; RnG=function(w,D){w.Fw.T===2&&D!==w.MR()&&Zg("onClipEntered: unknown cpn",w.slot,w.layout,{cpn:D})}; oKk=function(w,D){var M=w.mK();if(M){var L=M.hc().layoutId,Z=w.jV()+1;w.Lh()?NJ(w,M,D):M.OV(M.hc(),D);Z>=0&&ZZ&&b.iC(p,Z-L);return p}; fBN=function(w,D,M){var L=J3(D.clientMetadata,"metadata_type_sodar_extension_data");if(L)try{b1K(M,L)}catch(Z){Zg("Unexpected error when loading Sodar",w,D,{error:Z})}}; qox=function(w,D,M,L,Z,k,b){FJ(w,D,new g.k0(M,new g.FF),L,Z,b,!1,k)}; FJ=function(w,D,M,L,Z,k,b,C){b=b===void 0?!0:b;mY(M)&&AN(Z,0,null)&&(!y_(w,"impression")&&C&&C(),w.l9("impression"));y_(w,"impression")&&(g.Y0(M,4)&&!g.Y0(M,2)&&w.Ui("pause"),bQ(M,4)<0&&!(bQ(M,2)<0)&&w.Ui("resume"),g.Y0(M,16)&&Z>=.5&&w.Ui("seek"),b&&g.Y0(M,2)&&Gv(w,M.state,D,L,Z,k))}; Gv=function(w,D,M,L,Z,k,b,C,l){y_(w,"impression")&&(k?(k=Z-L,k=k>=-1&&k<=2):k=Math.abs(L-Z)<=1,s5(w,D,k?L:Z,M,L,b,C&&k),k&&!l&&w.l9("complete"))}; s5=function(w,D,M,L,Z,k,b){dA(w,M*1E3,b);Z<=0||M<=0||(D==null?0:g.z(D,16))||(D==null?0:g.z(D,32))||(AN(M,Z*.25,L)&&(k&&!y_(w,"first_quartile")&&k("first"),w.l9("first_quartile")),AN(M,Z*.5,L)&&(k&&!y_(w,"midpoint")&&k("second"),w.l9("midpoint")),AN(M,Z*.75,L)&&(k&&!y_(w,"third_quartile")&&k("third"),w.l9("third_quartile")))}; r_j=function(w,D){y_(w,"impression")&&w.Ui(D?"fullscreen":"end_fullscreen")}; enG=function(w){y_(w,"impression")&&w.Ui("clickthrough")}; XlJ=function(w){w.Ui("active_view_measurable")}; Twk=function(w){y_(w,"impression")&&!y_(w,"seek")&&w.Ui("active_view_fully_viewable_audible_half_duration")}; uXK=function(w){y_(w,"impression")&&!y_(w,"seek")&&w.Ui("active_view_viewable")}; SoC=function(w){y_(w,"impression")&&!y_(w,"seek")&&w.Ui("audio_audible")}; QAN=function(w){y_(w,"impression")&&!y_(w,"seek")&&w.Ui("audio_measurable")}; J_x=function(w,D,M,L,Z,k,b,C,l,E,p,W,h){this.callback=w;this.slot=D;this.layout=M;this.Ll=L;this.kt=Z;this.aJ=k;this.RK=b;this.V$=C;this.sT=l;this.D5=E;this.FE=p;this.Gh=W;this.zD=h;this.zG=!0;this.JQ=this.eb=null;this.adCpn=void 0;this.T=!1}; znI=function(w,D,M){var L;nY(w.FE.get(),"ads_qua","cpn."+J3(w.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((L=SV(w.Gh.get(),2))==null?void 0:L.clientPlaybackNonce)+";qt."+D+";clr."+M)}; VTT=function(w,D){var M,L;nY(w.FE.get(),"ads_imp","cpn."+J3(w.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((M=SV(w.Gh.get(),2))==null?void 0:M.clientPlaybackNonce)+";clr."+D+";skp."+!!g.Q((L=J3(w.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:L.skipOrPreviewRenderer,aK))}; vE=function(w){return{enterMs:J3(w.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:J3(w.clientMetadata,"metadata_type_layout_exit_ms")}}; cE=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t){jE.call(this,w,D,M,L,Z,b,C,l,E,W);this.RK=k;this.sT=p;this.V$=h;this.D5=t;this.JQ=this.eb=null}; PAl=function(w,D){var M;nY(w.FE.get(),"ads_imp","acpn."+((M=SV(w.Gh.get(),2))==null?void 0:M.clientPlaybackNonce)+";clr."+D)}; OQT=function(w,D,M){var L;nY(w.FE.get(),"ads_qua","cpn."+J3(w.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((L=SV(w.Gh.get(),2))==null?void 0:L.clientPlaybackNonce)+";qt."+D+";clr."+M)}; BE=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t,d,N,n,v,G,f,e,S){this.RO=w;this.gH=D;this.Q4=M;this.Gh=L;this.Ll=Z;this.aJ=k;this.aC=b;this.FE=C;this.RK=l;this.QZ=E;this.V$=p;this.sT=W;this.DO=h;this.zD=t;this.cA=d;this.Rs=N;this.Ca=n;this.EH=v;this.D5=G;this.T=f;this.context=e;this.iO=S}; fY=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t,d,N,n,v,G){this.RO=w;this.gH=D;this.Q4=M;this.FE=L;this.V$=Z;this.sT=k;this.DO=b;this.Gh=C;this.aJ=l;this.aC=E;this.zD=p;this.cA=W;this.Rs=h;this.Ca=t;this.EH=d;this.D5=N;this.Ll=n;this.context=v;this.iO=G}; Kax=function(w,D,M,L){K1.call(this,"survey-interstitial",w,D,M,L)}; qJ=function(w,D,M,L,Z){Z1.call(this,M,w,D,L);this.FE=Z;w=J3(D.clientMetadata,"metadata_type_ad_placement_config");this.kt=new WS(D.UL,Z,w,D.layoutId)}; r6=function(w){return Math.round(w.width)+"x"+Math.round(w.height)}; XJ=function(w,D,M){M=M===void 0?eE:M;M.widthw.width*w.height*.2)return{Jw:3,TN:501,errorMessage:"ad("+r6(M)+") to container("+r6(w)+") ratio exceeds limit."};if(M.height>w.height/3-D)return{Jw:3,TN:501,errorMessage:"ad("+r6(M)+") covers container("+r6(w)+") center."}}; mgK=function(w,D){var M=J3(w.clientMetadata,"metadata_type_ad_placement_config");return new WS(w.UL,D,M,w.layoutId)}; Tv=function(w){return J3(w.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; ub=function(w,D,M,L){K1.call(this,"invideo-overlay",w,D,M,L);this.interactionLoggingClientData=L}; SE=function(w,D,M,L,Z,k,b,C,l,E,p,W){Z1.call(this,k,w,D,Z);this.FE=M;this.D=b;this.aJ=C;this.Ca=l;this.D5=E;this.Y=p;this.W=W;this.kt=mgK(D,M)}; A_R=function(){var w=["metadata_type_invideo_overlay_ad_renderer"];hN().forEach(function(D){w.push(D)}); return{L6:w,Rc:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; QL=function(w,D,M,L,Z,k,b,C,l,E,p,W,h){Z1.call(this,k,w,D,Z);this.FE=M;this.D=b;this.U=C;this.aJ=l;this.Ca=E;this.D5=p;this.Y=W;this.W=h;this.kt=mgK(D,M)}; wUl=function(){for(var w=["metadata_type_invideo_overlay_ad_renderer"],D=g.x(hN()),M=D.next();!M.done;M=D.next())w.push(M.value);return{L6:w,Rc:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Jr=function(w){this.aJ=w;this.T=!1}; D5N=function(w,D,M){K1.call(this,"survey",w,{},D,M)}; zv=function(w,D,M,L,Z,k,b){Z1.call(this,M,w,D,L);this.D=Z;this.aJ=k;this.D5=b}; MWJ=function(w,D,M,L,Z,k,b,C,l,E){this.OB=w;this.aJ=D;this.FE=M;this.D=L;this.V$=Z;this.V=k;this.L=b;this.Ca=C;this.D5=l;this.T=E}; LTK=function(w,D,M,L,Z,k,b,C,l,E){this.OB=w;this.aJ=D;this.FE=M;this.D=L;this.V$=Z;this.V=k;this.L=b;this.Ca=C;this.D5=l;this.T=E}; VL=function(w,D,M,L,Z,k,b,C,l,E){uH.call(this,w,D,M,L,Z,k,b,l);this.Fm=C;this.Gh=E}; ZMj=function(){var w=pvk();w.L6.push("metadata_type_ad_info_ad_metadata");return w}; kgK=function(w,D,M,L,Z,k,b){this.OB=w;this.aJ=D;this.FE=M;this.V=L;this.Fm=Z;this.T=k;this.Gh=b}; bMR=function(w,D,M,L,Z,k,b,C){this.OB=w;this.aJ=D;this.FE=M;this.V=L;this.Fm=Z;this.T=k;this.D5=b;this.Gh=C}; PE=function(w,D){this.slotId=D;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=w(this.triggerType)}; O5=function(w,D){this.adPodIndex=w;this.T=D.length;this.adBreakLengthSeconds=D.reduce(function(L,Z){return L+Z},0); var M=0;for(w+=1;w0}; rV=function(w){return!!(w.uI&&w.slot&&w.layout)}; e0=function(w){var D,M=(D=w.config)==null?void 0:D.adPlacementConfig;w=w.renderer;return!(!M||M.kind==null||!w)}; x5R=function(w){if(!s_(w.adLayoutMetadata))return!1;w=w.renderingContent;return g.Q(w,PS)||g.Q(w,Os)||g.Q(w,U5r)||g.Q(w,zx)||g.Q(w,V_)?!0:!1}; XG=function(w){return w.playerVars!==void 0&&w.pings!==void 0&&w.externalVideoId!==void 0}; Vs=function(w){if(!s_(w.adLayoutMetadata))return!1;w=w.renderingContent;var D=g.Q(w,T9);return D?uu(D):(D=g.Q(w,S0))?XG(D):(D=g.Q(w,Qs))?D.playerVars!==void 0:(D=g.Q(w,PS))?D.durationMilliseconds!==void 0:g.Q(w,Je)||g.Q(w,z9)?!0:!1}; uu=function(w){w=(w.sequentialLayouts||[]).map(function(D){return g.Q(D,P1)}); return w.length>0&&w.every(Vs)}; K$=function(w){return s_(w.adLayoutMetadata)?(w=g.Q(w.renderingContent,O_))&&w.pings?!0:!1:!1}; oTj=function(w){if(!s_(w.adLayoutMetadata))return!1;if(g.Q(w.renderingContent,NnG)||g.Q(w.renderingContent,HMI))return!0;var D=g.Q(w.renderingContent,mV);return g.Q(w.renderingContent,Ae)||g.Q(D==null?void 0:D.sidePanel,j6S)||g.Q(D==null?void 0:D.sidePanel,gTT)||g.Q(D==null?void 0:D.sidePanel,REG)?!0:!1}; aRC=function(w){var D;(D=!w)||(D=w.adSlotMetadata,D=!((D==null?void 0:D.slotId)!==void 0&&(D==null?void 0:D.slotType)!==void 0));if(D||!(nTJ(w)||w.slotEntryTrigger&&w.slotFulfillmentTriggers&&w.slotExpirationTriggers))return!1;var M;w=(M=w.fulfillmentContent)==null?void 0:M.fulfilledLayout;return(M=g.Q(w,P1))?Vs(M):(M=g.Q(w,wN))?oTj(M):(M=g.Q(w,FTI))?x5R(M):(M=g.Q(w,Ggl))?y4x(M):(M=g.Q(w,s6x))?s_(M.adLayoutMetadata)?g.Q(M.renderingContent,aG)?!0:!1:!1:(w=g.Q(w,Ds))?K$(w):!1}; nTJ=function(w){var D;w=g.Q((D=w.fulfillmentContent)==null?void 0:D.fulfilledLayout,wN);var M;return w&&((M=w.adLayoutMetadata)==null?void 0:M.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&w.layoutExitNormalTriggers===void 0}; vTr=function(w){var D;return(w==null?void 0:(D=w.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_IN_PLAYER"}; Bnx=function(w,D){var M;if((M=w.questions)==null||!M.length||!w.playbackCommands||(D===void 0||!D)&&w.questions.length!==1)return!1;w=g.x(w.questions);for(D=w.next();!D.done;D=w.next()){D=D.value;var L=M=void 0,Z=((M=g.Q(D,M8))==null?void 0:M.surveyAdQuestionCommon)||((L=g.Q(D,LO))==null?void 0:L.surveyAdQuestionCommon);if(!c4N(Z))return!1}return!0}; fRx=function(w){w=((w==null?void 0:w.playerOverlay)||{}).instreamSurveyAdRenderer;var D;if(w)if(w.playbackCommands&&w.questions&&w.questions.length===1){var M,L=((D=g.Q(w.questions[0],M8))==null?void 0:D.surveyAdQuestionCommon)||((M=g.Q(w.questions[0],LO))==null?void 0:M.surveyAdQuestionCommon);D=c4N(L)}else D=!1;else D=!1;return D}; c4N=function(w){if(!w)return!1;w=g.Q(w.instreamAdPlayerOverlay,Zs);var D=g.Q(w==null?void 0:w.skipOrPreviewRenderer,aK),M=g.Q(w==null?void 0:w.adInfoRenderer,kF);return(g.Q(w==null?void 0:w.skipOrPreviewRenderer,bO)||D)&&M?!0:!1}; qkR=function(w){return w.linearAds!=null&&s_(w.adLayoutMetadata)}; r4x=function(w){return w.linearAd!=null&&w.adVideoStart!=null}; eEk=function(w){if(isNaN(Number(w.timeoutSeconds))||!w.text||!w.ctaButton||!g.Q(w.ctaButton,g.YF)||!w.brandImage)return!1;var D;return w.backgroundImage&&g.Q(w.backgroundImage,CO)&&((D=g.Q(w.backgroundImage,CO))==null?0:D.landscape)?!0:!1}; lO=function(w,D,M,L,Z,k,b,C){g.X.call(this);this.D5=w;this.T=D;this.V=L;this.Gh=Z;this.D=k;this.L=b;this.DO=C}; uBG=function(w,D,M){var L,Z=((L=M.adSlots)!=null?L:[]).map(function(C){return g.Q(C,EX)}); if(M.o_)if(J3(D.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))wA(w.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},D.slotId); else{if(w.D5.get().K.X().C("h5_check_forecasting_renderer_for_throttled_midroll")){var k=M.Z0.filter(function(C){var l;return((l=C.renderer)==null?void 0:l.clientForecastingAdRenderer)!=null}); k.length!==0?XUC(w.L,k,Z,D.slotId,M.ssdaiAdsConfig):wA(w.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},D.slotId)}else wA(w.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},D.slotId); Tnk(w.D,D)}else{var b;L={Mb:Math.round(((k=J3(D.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:k.Mb)||0),xQ:(b=J3(D.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:b.xQ};k=J3(D.clientMetadata,"metadata_type_cue_point");XUC(w.L,M.Z0,Z,D.slotId,M.ssdaiAdsConfig,L,k)}}; J4R=function(w,D,M,L,Z,k,b,C){var l=SV(w.Gh.get(),1);if(SkI(w.D5.get())){var E=pO(w.V.get(),M,L,Z,l.clientPlaybackNonce,l.T$,l.daiEnabled,l,k,b);Q6C(w,E);wA(w.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return E},D)}else wA(w.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return pO(w.V.get(),M,L,Z,l.clientPlaybackNonce,l.T$,l.daiEnabled,l,k,b,C)},D)}; Q6C=function(w,D){D=g.x(D);for(var M=D.next();!M.done;M=D.next()){var L=M.value;if(L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.fulfilledLayout)if(M=void 0,L.fulfilledLayout.renderingContent)M=J3(L.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(L.fulfilledLayout.Lm){L=g.x(L.fulfilledLayout.Lm);for(var Z=L.next();!Z.done&&(Z=Z.value,!Z.renderingContent||!(M=J3(Z.clientMetadata,"metadata_type_player_vars")));Z=L.next());}}else M=void 0;if(M){w.DO.get().K.preloadVideoByPlayerVars(M, 2,300);break}}}; VWS=function(w,D,M,L,Z,k,b){D=zEK(D,k,Number(L.prefetchMilliseconds)||0,b);w=D instanceof O?D:WX(w,L,Z,D,M);return w instanceof O?w:[w]}; PKx=function(w,D,M,L,Z){var k=D1(w.V.get(),"SLOT_TYPE_AD_BREAK_REQUEST");L=[new H8({getAdBreakUrl:L.getAdBreakUrl,Mb:0,xQ:0}),new qw(!0)];w=D.pauseDurationMs?D.lactThresholdMs?{slotId:k,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new RG(w.T,k),slotFulfillmentTriggers:[new CKN(w.T)],slotExpirationTriggers:[new he(w.T,Z),new dV(w.T,k)],lW:"core",clientMetadata:new Q7(L),adSlotLoggingData:M}:new O("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new O("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return w instanceof O?w:[w]}; OMj=function(w){var D,M;return((D=w.renderer)==null?void 0:(M=D.adBreakServiceRenderer)==null?void 0:M.getAdBreakUrl)!==void 0}; hO=function(w,D,M){if(w.beforeContentVideoIdStartedTrigger)w=w.beforeContentVideoIdStartedTrigger?new KY(uN,D,w.id):new O("Not able to create BeforeContentVideoIdStartedTrigger");else{if(w.layoutIdExitedTrigger){var L;D=(L=w.layoutIdExitedTrigger)!=null&&L.triggeringLayoutId?new L$(uN,w.layoutIdExitedTrigger.triggeringLayoutId,w.id):new O("Not able to create LayoutIdExitedTrigger")}else{if(w.layoutExitedForReasonTrigger){var Z,k;((Z=w.layoutExitedForReasonTrigger)==null?0:Z.triggeringLayoutId)&&((k= w.layoutExitedForReasonTrigger)==null?0:k.layoutExitReason)?(D=lRT(w.layoutExitedForReasonTrigger.layoutExitReason),w=D instanceof O?D:new MV(uN,w.layoutExitedForReasonTrigger.triggeringLayoutId,[D],w.id)):w=new O("Not able to create LayoutIdExitedForReasonTrigger")}else{if(w.onLayoutSelfExitRequestedTrigger){var b;D=(b=w.onLayoutSelfExitRequestedTrigger)!=null&&b.triggeringLayoutId?new W1(uN,w.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,w.id):new O("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(w.onNewPlaybackAfterContentVideoIdTrigger)w= w.onNewPlaybackAfterContentVideoIdTrigger?new he(uN,D,w.id):new O("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(w.skipRequestedTrigger){var C;D=(C=w.skipRequestedTrigger)!=null&&C.triggeringLayoutId?new $l(uN,w.skipRequestedTrigger.triggeringLayoutId,w.id):new O("Not able to create SkipRequestedTrigger")}else if(w.slotIdEnteredTrigger){var l;D=(l=w.slotIdEnteredTrigger)!=null&&l.triggeringSlotId?new iu(uN,w.slotIdEnteredTrigger.triggeringSlotId,w.id):new O("Not able to create SlotIdEnteredTrigger")}else if(w.slotIdExitedTrigger){var E; D=(E=w.slotIdExitedTrigger)!=null&&E.triggeringSlotId?new dV(uN,w.slotIdExitedTrigger.triggeringSlotId,w.id):new O("Not able to create SkipRequestedTrigger")}else if(w.surveySubmittedTrigger){var p;D=(p=w.surveySubmittedTrigger)!=null&&p.triggeringLayoutId?new n$(uN,w.surveySubmittedTrigger.triggeringLayoutId,w.id):new O("Not able to create SurveySubmittedTrigger")}else{if(w.mediaResumedTrigger)w=w.mediaResumedTrigger&&w.id?new ETj(w.id):new O("Not able to create MediaResumedTrigger");else{if(w.closeRequestedTrigger){var W; D=(W=w.closeRequestedTrigger)!=null&&W.triggeringLayoutId?new m8(uN,w.closeRequestedTrigger.triggeringLayoutId,w.id):new O("Not able to create CloseRequestedTrigger")}else if(w.slotIdScheduledTrigger){var h;D=(h=w.slotIdScheduledTrigger)!=null&&h.triggeringSlotId?new RG(uN,w.slotIdScheduledTrigger.triggeringSlotId,w.id):new O("Not able to create SlotIdScheduledTrigger")}else{if(w.mediaTimeRangeTrigger){var t;L=Number((t=w.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var d;b=Number((d= w.mediaTimeRangeTrigger)==null?void 0:d.offsetEndMilliseconds);isFinite(L)&&isFinite(b)?(d=b,d===-1&&(d=M),M=L>d?new O("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:L,offsetEndMs:d},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",d===M&&L-500<=d):new is(L,d),w=M instanceof O?M:new C$(uN,D,M,!1,w.id)):w=new O("Not able to create MediaTimeRangeTrigger")}else if(w.contentVideoIdEndedTrigger)w=w.contentVideoIdEndedTrigger?new Ar(uN,D,!1,w.id):new O("Not able to create ContentVideoIdEndedTrigger"); else{if(w.layoutIdEnteredTrigger){var N;D=(N=w.layoutIdEnteredTrigger)!=null&&N.triggeringLayoutId?new DJ(uN,w.layoutIdEnteredTrigger.triggeringLayoutId,w.id):new O("Not able to create LayoutIdEnteredTrigger")}else if(w.timeRelativeToLayoutEnterTrigger){var n;D=(n=w.timeRelativeToLayoutEnterTrigger)!=null&&n.triggeringLayoutId?new FG(uN,Number(w.timeRelativeToLayoutEnterTrigger.durationMs),w.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,w.id):new O("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(w.onDifferentLayoutIdEnteredTrigger){var v; D=(v=w.onDifferentLayoutIdEnteredTrigger)!=null&&v.triggeringLayoutId&&w.onDifferentLayoutIdEnteredTrigger.slotType&&w.onDifferentLayoutIdEnteredTrigger.layoutType?new E_(uN,w.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,w.onDifferentLayoutIdEnteredTrigger.slotType,w.onDifferentLayoutIdEnteredTrigger.layoutType,w.id):new O("Not able to create CloseRequestedTrigger")}else{if(w.liveStreamBreakStartedTrigger)w=w.liveStreamBreakStartedTrigger&&w.id?new Yl(uN,w.id):new O("Not able to create LiveStreamBreakStartedTrigger"); else if(w.liveStreamBreakEndedTrigger)w=w.liveStreamBreakEndedTrigger&&w.id?new ZJ(uN,w.id):new O("Not able to create LiveStreamBreakEndedTrigger");else{if(w.liveStreamBreakScheduledDurationMatchedTrigger){var G;D=(G=w.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&G.breakDurationMs?new kl(Number(w.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,w.id):new O("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(w.liveStreamBreakScheduledDurationNotMatchedTrigger){var f; D=(f=w.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&f.breakDurationMs?new bu(Number(w.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,w.id):new O("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(w.newSlotScheduledWithBreakDurationTrigger){var e;D=(e=w.newSlotScheduledWithBreakDurationTrigger)!=null&&e.breakDurationMs?new lu(Number(w.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,w.id):new O("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else D= w.prefetchCacheExpiredTrigger?new te(uN,w.id):new O("Not able to convert an AdsControlflowTrigger.");w=D}D=w}w=D}D=w}w=D}D=w}w=D}D=w}w=D}D=w}w=D}return w}; tO=function(w,D){D.T>=2&&(w.slot_pos=D.adPodIndex);w.autoplay="1"}; m5j=function(w,D,M,L,Z,k,b,C){return D===null?new O("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:D,ActionCompanionAdRenderer:L}):[KTk(w,D,b,k,function(l){var E=l.slotId;l=C(l);var p=L.adLayoutLoggingData,W=new Q7([new Ha(L),new f_(Z)]);E=BI(M.V.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",E);var h={layoutId:E,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",lW:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",UL:new Map, layoutExitNormalTriggers:[new he(M.T,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:W,F_:l(h),adLayoutLoggingData:p}})]}; A4S=function(w,D,M,L,Z,k,b,C){return D===null?new O("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:D,TopBannerImageTextIconButtonedLayoutViewModel:L}):[KTk(w,D,b,k,function(l){var E=l.slotId;l=C(l);var p=L.adLayoutLoggingData,W=new Q7([new jQ(L),new f_(Z)]);E=BI(M.V.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",E);var h={layoutId:E,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",lW:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", UL:new Map,layoutExitNormalTriggers:[new he(M.T,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:W,F_:l(h),adLayoutLoggingData:p}})]}; LdS=function(w,D,M,L,Z,k){if(!k)for(D=g.x(D),k=D.next();!k.done;k=D.next())k=k.value,$F(w,k.renderer,k.config.adPlacementConfig.kind);w=Array.from(w.values()).filter(function(p){return waC(p)}); D=[];k=g.x(w);for(var b=k.next(),C={};!b.done;C={xb:void 0},b=k.next()){C.xb=b.value;b=g.x(C.xb.JZ);for(var l=b.next(),E={};!l.done;E={fm:void 0},l=b.next())E.fm=l.value,l=function(p,W){return function(h){return p.fm.tR(h,W.xb.instreamVideoAdRenderer.elementId,p.fm.YY)}}(E,C),E.fm.isContentVideoCompanion?D.push(DGC(M,L,Z,C.xb.instreamVideoAdRenderer.elementId,E.fm.associatedCompositePlayerBytesLayoutId,E.fm.adSlotLoggingData,l)):w.length>1?D.push(MQJ(M,L,Z,C.xb.instreamVideoAdRenderer.elementId,E.fm.adSlotLoggingData, function(p,W){return function(h){return p.fm.tR(h,W.xb.instreamVideoAdRenderer.elementId,p.fm.YY,p.fm.associatedCompositePlayerBytesLayoutId)}}(E,C))):D.push(MQJ(M,L,Z,C.xb.instreamVideoAdRenderer.elementId,E.fm.adSlotLoggingData,l))}return D}; $F=function(w,D,M){if(D=Z_T(D)){D=g.x(D);for(var L=D.next();!L.done;L=D.next())if((L=L.value)&&L.externalVideoId){var Z=iO(w,L.externalVideoId);Z.instreamVideoAdRenderer||(Z.instreamVideoAdRenderer=L,Z.nE=M)}else Zg("InstreamVideoAdRenderer without externalVideoId")}}; Z_T=function(w){var D=[],M=w.sandwichedLinearAdRenderer&&w.sandwichedLinearAdRenderer.linearAd&&g.Q(w.sandwichedLinearAdRenderer.linearAd,S0);if(M)return D.push(M),D;if(w.instreamVideoAdRenderer)return D.push(w.instreamVideoAdRenderer),D;if(w.linearAdSequenceRenderer&&w.linearAdSequenceRenderer.linearAds){w=g.x(w.linearAdSequenceRenderer.linearAds);for(M=w.next();!M.done;M=w.next())M=M.value,g.Q(M,S0)&&D.push(g.Q(M,S0));return D}return null}; waC=function(w){if(w.instreamVideoAdRenderer===void 0)return Zg("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var D=g.x(w.JZ),M=D.next();!M.done;M=D.next()){M=M.value;if(M.tR===void 0)return!1;if(M.YY===void 0)return Zg("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(w.nE===void 0||M.A7===void 0||w.nE!==M.A7&&M.A7!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(w.instreamVideoAdRenderer.elementId===void 0)return Zg("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:w.nE,"matching APSR kind":M.A7}),!1}return!0}; iO=function(w,D){w.has(D)||w.set(D,{instreamVideoAdRenderer:void 0,nE:void 0,adVideoId:D,JZ:[]});return w.get(D)}; dN=function(w,D,M,L,Z,k,b,C,l){Z?iO(w,Z).JZ.push({fQE:D,A7:M,isContentVideoCompanion:L,YY:b,associatedCompositePlayerBytesLayoutId:k,adSlotLoggingData:C,tR:l}):Zg("Companion AdPlacementSupportedRenderer without adVideoId")}; y0=function(w){var D=0;w=g.x(w.questions);for(var M=w.next();!M.done;M=w.next())if(M=M.value,M=g.Q(M,M8)||g.Q(M,LO)){var L=void 0;D+=((L=M.surveyAdQuestionCommon)==null?void 0:L.durationMilliseconds)||0}return D}; IY=function(w){var D,M,L,Z,k=((M=g.Q((D=w.questions)==null?void 0:D[0],M8))==null?void 0:M.surveyAdQuestionCommon)||((Z=g.Q((L=w.questions)==null?void 0:L[0],LO))==null?void 0:Z.surveyAdQuestionCommon),b;D=[].concat(g.tG(((b=w.playbackCommands)==null?void 0:b.instreamAdCompleteCommands)||[]),g.tG((k==null?void 0:k.timeoutCommands)||[]));var C,l,E,p,W,h,t,d,N,n,v,G,f,e,S,K,V,CI,Yx,lS;return{impressionCommands:(C=w.playbackCommands)==null?void 0:C.impressionCommands,errorCommands:(l=w.playbackCommands)== null?void 0:l.errorCommands,muteCommands:(E=w.playbackCommands)==null?void 0:E.muteCommands,unmuteCommands:(p=w.playbackCommands)==null?void 0:p.unmuteCommands,pauseCommands:(W=w.playbackCommands)==null?void 0:W.pauseCommands,rewindCommands:(h=w.playbackCommands)==null?void 0:h.rewindCommands,resumeCommands:(t=w.playbackCommands)==null?void 0:t.resumeCommands,skipCommands:(d=w.playbackCommands)==null?void 0:d.skipCommands,progressCommands:(N=w.playbackCommands)==null?void 0:N.progressCommands,Nfc:(n= w.playbackCommands)==null?void 0:n.clickthroughCommands,fullscreenCommands:(v=w.playbackCommands)==null?void 0:v.fullscreenCommands,activeViewViewableCommands:(G=w.playbackCommands)==null?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:(f=w.playbackCommands)==null?void 0:f.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(e=w.playbackCommands)==null?void 0:e.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(S=w.playbackCommands)== null?void 0:(K=S.activeViewTracking)==null?void 0:K.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(V=w.playbackCommands)==null?void 0:(CI=V.activeViewTracking)==null?void 0:CI.activeViewAudioMeasurableCommands,endFullscreenCommands:(Yx=w.playbackCommands)==null?void 0:Yx.endFullscreenCommands,abandonCommands:(lS=w.playbackCommands)==null?void 0:lS.abandonCommands,completeCommands:D}}; b_T=function(w,D,M,L,Z,k,b){return function(C,l){return kiJ(w,l.slotId,C,k,function(E,p){var W=l.layoutId;E=b(E);return UX(D,W,p,Z,E,"LAYOUT_TYPE_SURVEY",[new AE(M),L],M.adLayoutLoggingData)})}}; lMN=function(w,D,M,L,Z,k,b){if(!YvI(w))return new O("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:w});var C=w.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[CBC(k,D,M,L,function(l){var E=l.slotId;l=b(l);E=BI(Z.V.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",E);var p={layoutId:E,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",lW:"core"},W=new L$(Z.T,L);return{layoutId:E,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",UL:new Map,layoutExitNormalTriggers:[W], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:new Q7([new wY(C)]),F_:l(p)}})]}; YvI=function(w){w=g.Q(w==null?void 0:w.additionalPlayerOverlay,E6G);if(!w)return!1;var D=w.slidingMessages;return w.title&&D&&D.length!==0?!0:!1}; WdG=function(w,D,M,L,Z){var k;if((k=w.playerOverlay)==null||!k.instreamSurveyAdRenderer)return function(){return[]}; if(!fRx(w))return function(){return new O("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:w})}; var b=w.playerOverlay.instreamSurveyAdRenderer,C=y0(b);return C<=0?function(){return new O("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b})}:function(l,E){var p=pal(l,M,L,function(W){var h=W.slotId; W=E(W);var t=IY(b);h=BI(Z.V.get(),"LAYOUT_TYPE_SURVEY",h);var d={layoutId:h,layoutType:"LAYOUT_TYPE_SURVEY",lW:"core"},N=new L$(Z.T,L),n=new $l(Z.T,h),v=new n$(Z.T,h),G=new tWJ(Z.T);return{layoutId:h,layoutType:"LAYOUT_TYPE_SURVEY",UL:new Map,layoutExitNormalTriggers:[N,G],layoutExitSkipTriggers:[n],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[v],hQ:[],lW:"core",clientMetadata:new Q7([new md(b),new f_(D),new Rr(C/1E3),new GP(t)]),F_:W(d),adLayoutLoggingData:b.adLayoutLoggingData}}); l=lMN(w,M,p.slotId,L,Z,l,E);return l instanceof O?l:[p].concat(g.tG(l))}}; IMx=function(w,D,M,L,Z,k,b){b=b===void 0?!1:b;var C=[];try{var l=[];if(M.renderer.linearAdSequenceRenderer)var E=function(N){N=hNI(N.slotId,M,D,Z(N),L,k,b);l=N.RR9;return N.Mg}; else if(M.renderer.instreamVideoAdRenderer)E=function(N){var n=N.slotId;N=Z(N);var v=b,G=M.config.adPlacementConfig,f=tQG(G),e=f.vN,S=f.wJ;f=M.renderer.instreamVideoAdRenderer;var K;if(f==null?0:(K=f.playerOverlay)==null?0:K.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var V=xF(f,v);K=Math.min(e+V.videoLengthSeconds*1E3,S);v=new O5(0,[V.videoLengthSeconds]);S=V.videoLengthSeconds;var CI=V.playerVars,Yx=V.instreamAdPlayerOverlayRenderer,lS=V.playerOverlayLayoutRenderer, Wr=V.adVideoId,Mk=$Ga(M),GK=V.UL;V=V.nD;var Vj=f==null?void 0:f.adLayoutLoggingData;f=f==null?void 0:f.sodarExtensionData;n=BI(D.V.get(),"LAYOUT_TYPE_MEDIA",n);var AG={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",lW:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",UL:GK,layoutExitNormalTriggers:[new ZJ(D.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:new Q7([new uB(L),new pB(S),new W8(CI),new $$(e),new iN(K),Yx&& new SQ(Yx),lS&&new Qx(lS),new f_(G),new Ti(Wr),new qG(v),new x$(Mk),f&&new t3(f),new bN({current:null}),new y7({}),new v8(V)].filter(i_K)),F_:N(AG),adLayoutLoggingData:Vj}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=dGI(w,L,M.adSlotLoggingData,E);C.push(p);for(var W=g.x(l),h=W.next();!h.done;h=W.next()){var t=h.value,d=t(w,Z);if(d instanceof O)return d;C.push.apply(C,g.tG(d))}}catch(N){return new O(N,{errorMessage:N.message,AdPlacementRenderer:M,numberOfSurveyRenderers:yEx(M)})}return C}; yEx=function(w){w=(w.renderer.linearAdSequenceRenderer||{}).linearAds;return w!=null&&w.length?w.filter(function(D){var M,L;return((M=g.Q(D,S0))==null?void 0:(L=M.playerOverlay)==null?void 0:L.instreamSurveyAdRenderer)!=null}).length:0}; hNI=function(w,D,M,L,Z,k,b){var C=D.config.adPlacementConfig,l=tQG(C),E=l.vN,p=l.wJ;l=(D.renderer.linearAdSequenceRenderer||{}).linearAds;if(l==null||!l.length)throw new TypeError("Expected linear ads");var W=[],h={lC:E,Vo:0,eR_:W};l=l.map(function(d){return UGT(w,d,h,M,L,C,Z,p,b)}).map(function(d,N){N=new O5(N,W); return d(N)}); var t=l.map(function(d){return d.rl}); return{Mg:xGj(M,w,E,t,C,$Ga(D),L,p,k),RR9:l.map(function(d){return d.uXh})}}; UGT=function(w,D,M,L,Z,k,b,C,l){var E=xF(g.Q(D,S0),l),p=M.lC,W=M.Vo,h=Math.min(p+E.videoLengthSeconds*1E3,C);M.lC=h;M.Vo++;M.eR_.push(E.videoLengthSeconds);var t,d,N=(t=g.Q(D,S0))==null?void 0:(d=t.playerOverlay)==null?void 0:d.instreamSurveyAdRenderer;if(E.adVideoId==="nPpU29QrbiU"&&N==null)throw new TypeError("Survey slate media has no survey overlay");return function(n){tO(E.playerVars,n);var v,G,f=E.videoLengthSeconds,e=E.playerVars,S=E.UL,K=E.nD,V=E.instreamAdPlayerOverlayRenderer,CI=E.playerOverlayLayoutRenderer, Yx=E.adVideoId,lS=(v=g.Q(D,S0))==null?void 0:v.adLayoutLoggingData;v=(G=g.Q(D,S0))==null?void 0:G.sodarExtensionData;G=BI(L.V.get(),"LAYOUT_TYPE_MEDIA",w);var Wr={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",lW:"adapter"};n={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",UL:S,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"adapter",clientMetadata:new Q7([new uB(b),new pB(f),new W8(e),new $$(p),new iN(h),new dY(W),new bN({current:null}), V&&new SQ(V),CI&&new Qx(CI),new f_(k),new Ti(Yx),new qG(n),v&&new t3(v),N&&new ar(N),new y7({}),new v8(K)].filter(i_K)),F_:Z(Wr),adLayoutLoggingData:lS};f=WdG(g.Q(D,S0),k,b,n.layoutId,L);return{rl:n,uXh:f}}}; xF=function(w,D){if(!w)throw new TypeError("Expected instream video ad renderer");if(!w.playerVars)throw new TypeError("Expected player vars in url encoded string");var M=PP(w.playerVars),L=Number(M.length_seconds);if(isNaN(L))throw new TypeError("Expected valid length seconds in player vars");var Z=Number(w.trimmedMaxNonSkippableAdDurationMs);L=isNaN(Z)?L:Math.min(L,Z/1E3);Z=w.playerOverlay||{};Z=Z.instreamAdPlayerOverlayRenderer===void 0?null:Z.instreamAdPlayerOverlayRenderer;var k=w.playerOverlay|| {};k=k.playerOverlayLayoutRenderer===void 0?null:k.playerOverlayLayoutRenderer;var b=M.video_id;b||(b=(b=w.externalVideoId)?b:void 0);if(!b)throw new TypeError("Expected valid video id in IVAR");if(D&&L===0){var C;D=(C=Nex[b])!=null?C:L}else D=L;return{playerVars:M,videoLengthSeconds:D,instreamAdPlayerOverlayRenderer:Z,playerOverlayLayoutRenderer:k,adVideoId:b,UL:w.pings?pl(w.pings):new Map,nD:Es(w.pings)}}; $Ga=function(w){w=Number(w.driftRecoveryMs);return isNaN(w)||w<=0?null:w}; tQG=function(w){var D=w.adTimeOffset||{};w=D.offsetEndMilliseconds;D=Number(D.offsetStartMilliseconds);if(isNaN(D))throw new TypeError("Expected valid start offset");w=Number(w);if(isNaN(w))throw new TypeError("Expected valid end offset");return{vN:D,wJ:w}}; H_N=function(w){var D,M=(D=J3(w.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:D.current;if(!M)return null;D=J3(w.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var L=w.layoutId,Z=J3(w.clientMetadata,"metadata_type_content_cpn"),k=J3(w.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=J3(w.clientMetadata,"metadata_type_player_underlay_renderer"),C=J3(w.clientMetadata,"metadata_type_ad_placement_config"),l=J3(w.clientMetadata,"metadata_type_video_length_seconds"); var E=XZ(w.clientMetadata,"metadata_type_layout_enter_ms")&&XZ(w.clientMetadata,"metadata_type_layout_exit_ms")?(J3(w.clientMetadata,"metadata_type_layout_exit_ms")-J3(w.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{sZ:L,contentCpn:Z,xr:M,FD:D,instreamAdPlayerOverlayRenderer:k,instreamAdPlayerUnderlayRenderer:b,adPlacementConfig:C,videoLengthSeconds:l,Nx:E,inPlayerLayoutId:J3(w.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:J3(w.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; RNK=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t,d){L=D1(L,"SLOT_TYPE_PLAYER_BYTES");w=jnR(Z,w,b,M,L,l,E);if(w instanceof O)return w;var N;E=(N=J3(w.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:N.layoutId;if(!E)return new O("Invalid adNotify layout");D=g6N(E,Z,k,M,C,D,l,p,W,h,t,d,b);return D instanceof O?D:[w].concat(g.tG(D))}; g6N=function(w,D,M,L,Z,k,b,C,l,E,p,W,h){M=o6J(D,M,L,k,b,C,l,E,p,W,h);if(M instanceof O)return M;w=n6K(D,w,b,Z,M);return w instanceof O?w:[].concat(g.tG(w.h8),[w.z1])}; Gil=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t){D=o6J(w,D,M,Z,k,C,l,E,p,W,h,t);if(D instanceof O)return D;w=Fdr(w,M,k,b,L,C.Yl,D);return w instanceof O?w:w.h8.concat(w.z1)}; o6J=function(w,D,M,L,Z,k,b,C,l,E,p,W){var h=N8(L,M,E);return h instanceof SK?new O(h):E.K.X().experiments.ek("html5_refactor_in_player_slot_generation")?function(t){var d=new O5(0,[h.vt]);t=snT(D,h.layoutId,h.ge,M,HX(h.playerVars,h.S4,k,l,d),h.vt,Z,d,b(t),C.get(h.ge.externalVideoId),W);d=[];if(h.ge.playerOverlay.instreamAdPlayerOverlayRenderer){var N=H_N(t);if(!N)return Zg("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,h8:[]}; d=[aMN(w,N.contentCpn,N.sZ,function(v){return gN(D,v.slotId,"core",N,m3(p,v))},N.inPlayerSlotId)].concat(g.tG(d)); if(N.instreamAdPlayerUnderlayRenderer&&RY(E)){var n=N.instreamAdPlayerUnderlayRenderer;d=[v6C(w,N.contentCpn,N.sZ,function(v){return cER(D,v.slotId,n,N.adPlacementConfig,N.sZ,m3(p,v))})].concat(g.tG(d))}}return{layout:t, h8:d}}:function(t){var d=new O5(0,[h.vt]); return{layout:snT(D,h.layoutId,h.ge,M,HX(h.playerVars,h.S4,k,l,d),h.vt,Z,d,b(t),C.get(h.ge.externalVideoId),W),h8:[]}}}; N8=function(w,D,M){if(!w.playerVars)return new SK("No playerVars available in InstreamVideoAdRenderer.");var L,Z;if(w.elementId==null||w.playerVars==null||w.playerOverlay==null||((L=w.playerOverlay)==null?void 0:L.instreamAdPlayerOverlayRenderer)==null&&((Z=w.playerOverlay)==null?void 0:Z.playerOverlayLayoutRenderer)==null||w.pings==null||w.externalVideoId==null)return new SK("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:w});L=PP(w.playerVars);Z=Number(L.length_seconds); isNaN(Z)&&(Z=0,Zg("Expected valid length seconds in player vars but got NaN"));if(M.fO(D.kind==="AD_PLACEMENT_KIND_START")){if(w.layoutId===void 0)return new SK("Expected server generated layout ID in instreamVideoAdRenderer");D=w.layoutId}else D=w.elementId;return{layoutId:D,ge:w,playerVars:L,S4:w.playerVars,vt:Z}}; HX=function(w,D,M,L,Z){w.iv_load_policy=L;D=PP(D);if(D.cta_conversion_urls)try{w.cta_conversion_urls=JSON.parse(D.cta_conversion_urls)}catch(k){Zg(k)}M.KP&&(w.ctrl=M.KP);M.O1&&(w.ytr=M.O1);M.uY&&(w.ytrcc=M.uY);M.isMdxPlayback&&(w.mdx="1");w.vvt&&(w.vss_credentials_token=w.vvt,M.nm&&(w.vss_credentials_token_type=M.nm),M.mdxEnvironment&&(w.mdx_environment=M.mdxEnvironment));tO(w,Z);return w}; BeC=function(w){var D=new Map;w=g.x(w);for(var M=w.next();!M.done;M=w.next())(M=M.value.renderer.remoteSlotsRenderer)&&M.hostElementId&&D.set(M.hostElementId,M);return D}; oY=function(w){return w.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; fMa=function(w){return w!=null}; Svr=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t,d){for(var N=[],n=g.x(w),v=n.next();!v.done;v=n.next())if(v=v.value,!nTJ(v)&&!vTr(v)){var G=oY(v)&&!!v.slotEntryTrigger.beforeContentVideoIdStartedTrigger,f=l.fO(G),e=qvT(v,E,L,M.T$,f);if(e instanceof O)return e;var S=void 0,K={slotId:v.adSlotMetadata.slotId,slotType:v.adSlotMetadata.slotType,slotPhysicalPosition:(S=v.adSlotMetadata.slotPhysicalPosition)!=null?S:1,lW:"core",slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers, slotExpirationTriggers:e.slotExpirationTriggers},V=g.Q(v.fulfillmentContent.fulfilledLayout,P1);if(V){if(!Vs(V))return new O("Invalid PlayerBytesAdLayoutRenderer");S=W&&!(oY(v)&&v.slotEntryTrigger.beforeContentVideoIdStartedTrigger);e=e.slotFulfillmentTriggers.some(function(CI){return CI instanceof kl}); f=S?rEC(K,v.adSlotMetadata.triggerEvent,V,M,L,k,E,w,f,h,e,t):eNI(K,v.adSlotMetadata.triggerEvent,V,D,M,L,Z,k,b,C,l,E,w,p,f,v.adSlotMetadata.triggeringSourceLayoutId);if(f instanceof O)return f;e=[];d?e.push(new E0({current:d})):e.push(new E0({current:null}));oY(v)&&e.push(new rY({ZP:oY(v)&&!!v.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));S&&e.push(new y7({}));M.Yl&&e.push(new s0({}));e.push(new fB(G));v=Object.assign({},K,{clientMetadata:new Q7(e),fulfilledLayout:f.layout,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData}); N.push.apply(N,g.tG(f.h8));N.push(v)}else if(G=g.Q(v.fulfillmentContent.fulfilledLayout,wN)){if(!oTj(G))return new O("Invalid PlayerUnderlayAdLayoutRenderer");G=XaC(G,L,M.T$,k,K,v.adSlotMetadata.triggerEvent,v.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof O)return G;v=Object.assign({},K,{clientMetadata:new Q7([]),fulfilledLayout:G,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});N.push(v)}else if(G=g.Q(v.fulfillmentContent.fulfilledLayout,Ggl)){if(!y4x(G))return new O("Invalid AboveFeedAdLayoutRenderer"); G=TeK(G,L,M.T$,k,K,v.adSlotMetadata.triggerEvent,v.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof O)return G;v=Object.assign({},K,{clientMetadata:new Q7([]),fulfilledLayout:G,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});N.push(v)}else if(G=g.Q(v.fulfillmentContent.fulfilledLayout,s6x)){if(!s_(G.adLayoutMetadata)||!g.Q(G.renderingContent,aG))return new O("Invalid BelowPlayerAdLayoutRenderer");G=TeK(G,L,M.T$,k,K,v.adSlotMetadata.triggerEvent,v.adSlotMetadata.triggeringSourceLayoutId); if(G instanceof O)return G;v=Object.assign({},K,{clientMetadata:new Q7([]),fulfilledLayout:G,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});N.push(v)}else if(G=g.Q(v.fulfillmentContent.fulfilledLayout,Ds)){if(!K$(G))return new O("Invalid PlayerBytesSequenceItemAdLayoutRenderer");G=uHl(G,L,M.T$,k,K,v.adSlotMetadata.triggerEvent);if(G instanceof O)return G;v=Object.assign({},K,{clientMetadata:new Q7([]),fulfilledLayout:G,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});N.push(v)}else return new O("Unable to retrieve a client slot ["+ K.slotType+"] from a given AdSlotRenderer")}return N}; uHl=function(w,D,M,L,Z,k){var b={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,lW:"core"};D=nO(w,D,M);return D instanceof O?D:(M=g.Q(w.renderingContent,O_))&&M.pings?Object.assign({},b,{renderingContent:w.renderingContent,UL:pl(M.pings)},D,{F_:m3(L,Z)(b),clientMetadata:new Q7([new f_(F5(k))]),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData}):new O("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; TeK=function(w,D,M,L,Z,k,b){var C={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,lW:"core"};D=nO(w,D,M);if(D instanceof O)return D;M=[];M.push(new f_(F5(k)));k==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&b!==void 0&&M.push(new D5(b));return Object.assign({},C,{renderingContent:w.renderingContent,UL:new Map([["impression",QnK(w)]])},D,{F_:m3(L,Z)(C),clientMetadata:new Q7(M),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData})}; XaC=function(w,D,M,L,Z,k,b){if(w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(b=g.Q(w.renderingContent,mV))if(b=g.Q(b.sidePanel,gTT)){var C={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,lW:"core"};D=nO(w,D,M);w=D instanceof O?D:Object.assign({},C,{renderingContent:w.renderingContent,UL:new Map([["impression",b.impressionPings||[]],["resume",b.resumePings||[]]])},D,{F_:m3(L,Z)(C),clientMetadata:new Q7([new f_(F5(k))]),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData})}else w= new O("DismissablePanelTextPortraitImageRenderer is missing");else w=new O("SqueezebackPlayerSidePanelRenderer is missing");else w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.Q(w.renderingContent,NnG)?(b={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,lW:"core"},D=nO(w,D,M),w=D instanceof O?D:Object.assign({},b,{renderingContent:w.renderingContent,UL:new Map},D,{F_:m3(L,Z)(b),clientMetadata:new Q7([new f_(F5(k))]),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData})): w=new O("CounterfactualRenderer is missing"):w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?w=new O("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?w=new O("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.Q(w.renderingContent,Ae)?(k={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType, lW:"core"},D=nO(w,D,M),w=D instanceof O?D:b?Object.assign({},k,{renderingContent:w.renderingContent,UL:new Map},D,{F_:m3(L,Z)(k),clientMetadata:new Q7([new D5(b)]),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData}):new O("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):w=new O("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):w.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.Q(w.renderingContent,HMI)? (k={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,lW:"core"},D=nO(w,D,M),w=D instanceof O?D:Object.assign({},k,{renderingContent:w.renderingContent,UL:new Map([])},D,{F_:m3(L,Z)(k),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Q7([])})):w=new O("AdsEngagementPanelSectionListViewModel is missing"):w=new O("LayoutType ["+w.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return w}; rEC=function(w,D,M,L,Z,k,b,C,l,E,p,W){if((W==null?void 0:W.Mb)===void 0||(W==null?void 0:W.xQ)===void 0)return new O("Cached ad break range from cue point is missing");var h=nO(M,Z,L.T$);if(h instanceof O)return h;h={layoutExitMuteTriggers:[],layoutExitNormalTriggers:h.layoutExitNormalTriggers,layoutExitSkipTriggers:[],hQ:[],layoutExitUserInputSubmittedTriggers:[]};if(g.Q(M.renderingContent,S0))return w=JEK(w,D,M,h,Z,k,C,l,L.T$,b,W.Mb,W.xQ),w instanceof O?w:w.Ic===void 0?new O("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:w.layout,h8:[w.Ic]};var t=g.Q(M.renderingContent,T9);if(t){if(!s_(M.adLayoutMetadata))return new O("Invalid ad layout metadata");if(!uu(t))return new O("Invalid sequential layout");t=t.sequentialLayouts.map(function(d){return d.playerBytesAdLayoutRenderer}); w=zNK(w,D,M,h,t,Z,L,k,b,l,C,E,W.Mb,W.xQ,p);return w instanceof O?w:{layout:w.LF,h8:w.h8}}return new O("Not able to convert a sequential layout")}; zNK=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t,d){var N=VQr(Z,h,t);if(N instanceof O)return N;var n=[],v=[];N=g.x(N);for(var G=N.next();!G.done;G=N.next()){var f=G.value;G=w;var e=Z[f.Vo],S=f,K=D;f=k;var V=b,CI=C,Yx=l,lS=E,Wr=p,Mk=GR(e);if(Mk instanceof O)G=Mk;else{var GK={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,lW:"adapter"};S=PBC(K,e,S,f);S instanceof O?G=S:(G=Object.assign({},GK,sX,{UL:Mk,renderingContent:e.renderingContent,clientMetadata:new Q7(S),F_:m3(CI,G)(GK), adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData}),G=(e=aY(Wr,G,f,V.T$,CI,Yx,lS,void 0,!0))?e instanceof O?e:{layout:G,Ic:e}:new O("Expecting associatedInPlayerSlot"))}if(G instanceof O)return G;n.push(G.layout);v.push(G.Ic)}Z={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,lW:"core"};D=[new x$(Number(M.driftRecoveryMs)),new $$(h),new iN(t),new f_(F5(D)),new B8(W),new y7({})];d&&D.push(new eK({}));return{LF:Object.assign({},Z,L,{Lm:n,UL:new Map,clientMetadata:new Q7(D), F_:m3(C,w)(Z)}),h8:v}}; JEK=function(w,D,M,L,Z,k,b,C,l,E,p,W){if(!Vs(M))return new O("Invalid PlayerBytesAdLayoutRenderer");var h=GR(M);if(h instanceof O)return h;var t={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,lW:"core"},d=g.Q(M.renderingContent,S0);if(!d)return new O("Invalid rendering content for DAI media layout");d=xF(d,!1);p={Xv:d,Vo:0,lC:p,Un:Math.min(p+d.videoLengthSeconds*1E3,W),SZ:new O5(0,[d.videoLengthSeconds])};var N;W=(N=Number(M.driftRecoveryMs))!=null?N:void 0;D=PBC(D, M,p,Z,W);if(D instanceof O)return D;w=Object.assign({},t,L,{UL:h,renderingContent:M.renderingContent,clientMetadata:new Q7(D),F_:m3(k,w)(t),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData});return(Z=aY(b,w,Z,l,k,E,C,void 0,!0))?Z instanceof O?Z:{layout:w,Ic:Z}:new O("Expecting associatedInPlayerSlot")}; eNI=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t,d,N){var n=nO(M,k,Z.T$);if(n instanceof O)return n;if(g.Q(M.renderingContent,S0)){l=O_R([M],Z,l);if(l instanceof O)return l;if(l.length!==1)return new O("Only expected one media layout.");w=Kdx(w,D,M,n,l[0],void 0,"core",L,k,b,C,E,h,t,d,Z.T$,W,void 0,N);return w instanceof O?w:{layout:w.layout,h8:w.Ic?[w.Ic]:[]}}var v=g.Q(M.renderingContent,T9);if(v){if(!s_(M.adLayoutMetadata))return new O("Invalid ad layout metadata");if(!uu(v))return new O("Invalid sequential layout"); v=v.sequentialLayouts.map(function(G){return G.playerBytesAdLayoutRenderer}); w=mGr(w,D,M.adLayoutMetadata,n,v,L,k,Z,l,b,C,E,p,W,d,h,t,N);return w instanceof O?w:{layout:w.LF,h8:w.h8}}return new O("Not able to convert a sequential layout")}; mGr=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t,d,N,n,v){var G=new XH({current:null}),f=O_R(Z,C,l);if(f instanceof O)return f;l=[];for(var e=[],S=void 0,K=0;K0&&(K.push(v),K.push(new eQ(S.adPodSkipTarget)));(k=E.get(S.externalVideoId))&&K.push(new gY(k));k=K}else k=new O("Invalid vod media renderer")}if(k instanceof O)return k;w=Object.assign({},b,L,{UL:f,renderingContent:M.renderingContent,clientMetadata:new Q7(k),F_:m3(p,w)(b),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData});M=g.Q(M.renderingContent,S0);if(!M||!XG(M))return new O("Invalid meida renderer");W=iO(W,M.externalVideoId);W.instreamVideoAdRenderer=M;W.nE="AD_PLACEMENT_KIND_START";return t?(l=aY(h,w,l,N,p,n,d,v,!1),l instanceof O?l:DwN(w.layoutId,h)&&l?{layout:Object.assign({},w,{clientMetadata:new Q7(k.concat(new Vx(l)))})}:{layout:w,Ic:l}): {layout:w}}; AEk=function(w,D,M,L,Z){if(!Vs(D))return new O("Invalid PlayerBytesAdLayoutRenderer");var k=g.Q(D.renderingContent,PS);if(!k||k.durationMilliseconds===void 0)return new O("Invalid endcap renderer");var b={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,lW:"adapter"};L=[new or(k.durationMilliseconds),new GP({impressionCommands:void 0,abandonCommands:k.abandonCommands?[{commandExecutorCommand:k.abandonCommands}]:void 0,completeCommands:k.completionCommands}),new f_(L), new LB("LAYOUT_TYPE_ENDCAP")];if(Z){L.push(new re(Z.SZ.adPodIndex-1));L.push(new dY(Z.SZ.adPodIndex));var C;L.push(new eQ((C=Z.adPodSkipTarget)!=null?C:-1))}return Object.assign({},b,sX,{renderingContent:D.renderingContent,clientMetadata:new Q7(L),UL:k.skipPings?new Map([["skip",k.skipPings]]):new Map,F_:m3(M,w)(b),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData})}; aY=function(w,D,M,L,Z,k,b,C,l){w=w.filter(function(W){return W.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&W.adSlotMetadata.triggeringSourceLayoutId===D.layoutId}); if(w.length!==0){if(w.length!==1)return new O("Invalid InPlayer slot association for the given PlayerBytes layout");w=w[0];b=qvT(w,k,M,L,b);if(b instanceof O)return b;var E;k={slotId:w.adSlotMetadata.slotId,slotType:w.adSlotMetadata.slotType,slotPhysicalPosition:(E=w.adSlotMetadata.slotPhysicalPosition)!=null?E:1,lW:"core",slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers};E=g.Q(w.fulfillmentContent.fulfilledLayout, FTI);if(!E||!x5R(E))return new O("Invalid InPlayerAdLayoutRenderer");b={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,lW:"core"};M=nO(E,M,L);if(M instanceof O)return M;L=[];var p=E.adLayoutMetadata.layoutType;l&&L.push(new y7({}));if(p==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")L.push.apply(L,g.tG(MKj(w.adSlotMetadata.triggerEvent,D)));else if(p==="LAYOUT_TYPE_ENDCAP"||p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){L.push(new f_(F5(w.adSlotMetadata.triggerEvent))); if(p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new O("Cannot parse endcap layout since AdUxReadyApi is not provided");C&&L.push(C)}else return new O("Not able to parse an SDF InPlayer layout");Z=Object.assign({},b,M,{renderingContent:E.renderingContent,UL:new Map,F_:m3(Z,k)(b),clientMetadata:new Q7(L),adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},k,{fulfilledLayout:Z,clientMetadata:new Q7([])})}}; MKj=function(w,D){var M=[];M.push(new f_(F5(w)));M.push(new D5(D.layoutId));(w=J3(D.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&M.push(new bN(w));(w=J3(D.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&M.push(new XH(w));(w=J3(D.clientMetadata,"metadata_type_remote_slots_data"))&&M.push(new gY(w));(w=J3(D.clientMetadata,"metadata_type_ad_next_params"))&&M.push(new on(w));(w=J3(D.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&M.push(new n_(w));(w= J3(D.clientMetadata,"metadata_type_ad_pod_info"))&&M.push(new qG(w));(D=J3(D.clientMetadata,"metadata_type_ad_video_id"))&&M.push(new Ti(D));return M}; w8T=function(w,D,M,L,Z,k){function b(E){return vX(D,E)} var C=L.s8.inPlayerSlotId,l={layoutId:L.s8.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",lW:"core"};M={slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:new DJ(b,w),slotFulfillmentTriggers:[new iu(b,C)],slotExpirationTriggers:[new dV(b,C),new he(b,M)]};w=Object.assign({},l,{layoutExitNormalTriggers:[new L$(b,w)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],UL:new Map,clientMetadata:new Q7([new Ov(L.s8), new f_(L.adPlacementConfig),Z]),F_:m3(k,M)(l),adLayoutLoggingData:L.s8.adLayoutLoggingData});return Object.assign({},M,{clientMetadata:new Q7([new Nw(w)])})}; DwN=function(w,D){D=g.x(D);for(var M=D.next();!M.done;M=D.next())if(M=M.value,M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var L=g.Q(M.fulfillmentContent.fulfilledLayout,wN);if(L&&(L=g.Q(L.renderingContent,mV))&&L.associatedPlayerBytesLayoutId===w)return M}}; qvT=function(w,D,M,L,Z){var k=L3S(hO(w.slotEntryTrigger,M,L),Z,w,D);if(k instanceof O)return k;for(var b=[],C=g.x(w.slotFulfillmentTriggers),l=C.next();!l.done;l=C.next()){l=hO(l.value,M,L);if(l instanceof O)return l;b.push(l)}b=ZBj(b,Z,w,D);D=[];w=g.x(w.slotExpirationTriggers);for(Z=w.next();!Z.done;Z=w.next()){Z=hO(Z.value,M,L);if(Z instanceof O)return Z;D.push(Z)}return{slotEntryTrigger:k,slotFulfillmentTriggers:b,slotExpirationTriggers:D}}; L3S=function(w,D,M,L){return D&&M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&w instanceof KY?new PE(function(Z){return vX(L,Z)},M.adSlotMetadata.slotId):w}; ZBj=function(w,D,M,L){return D&&M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?w.map(function(Z){return Z instanceof iu?new RG(function(k){return vX(L,k)},M.adSlotMetadata.slotId):Z}):w}; nO=function(w,D,M){for(var L=[],Z=g.x(w.layoutExitNormalTriggers||[]),k=Z.next();!k.done;k=Z.next()){k=hO(k.value,D,M);if(k instanceof O)return k;L.push(k)}Z=[];k=g.x(w.layoutExitSkipTriggers||[]);for(var b=k.next();!b.done;b=k.next()){b=hO(b.value,D,M);if(b instanceof O)return b;Z.push(b)}k=[];b=g.x(w.layoutExitMuteTriggers||[]);for(var C=b.next();!C.done;C=b.next()){C=hO(C.value,D,M);if(C instanceof O)return C;k.push(C)}b=[];w=g.x(w.layoutExitUserInputSubmittedTriggers||[]);for(C=w.next();!C.done;C= w.next()){C=hO(C.value,D,M);if(C instanceof O)return C;b.push(C)}return{layoutExitNormalTriggers:L,layoutExitSkipTriggers:Z,layoutExitMuteTriggers:k,layoutExitUserInputSubmittedTriggers:b,hQ:[]}}; GR=function(w){var D=g.Q(w.renderingContent,S0);if(D==null?0:D.pings)return pl(D.pings);w=g.Q(w.renderingContent,PS);return(w==null?0:w.skipPings)?new Map([["skip",w.skipPings]]):new Map}; PBC=function(w,D,M,L,Z){D=g.Q(D.renderingContent,S0);if(!D)return new O("Invalid rendering content for DAI media layout");w=[new uB(L),new pB(M.Xv.videoLengthSeconds),new W8(M.Xv.playerVars),new $$(M.lC),new iN(M.Un),new dY(M.Vo),new f_(F5(w)),new Ti(M.Xv.adVideoId),new qG(M.SZ),D.sodarExtensionData&&new t3(D.sodarExtensionData),new bN({current:null}),new y7({}),new v8(Es(D.pings))].filter(fMa);Z!==void 0&&w.push(new x$(Z));return w}; VQr=function(w,D,M){w=w.map(function(l){return xF(g.Q(l.renderingContent,S0),!1)}); var L=w.map(function(l){return l.videoLengthSeconds}),Z=L.map(function(l,E){return new O5(E,L)}),k=D,b=M,C=[]; w.forEach(function(l,E){b=Math.min(k+l.videoLengthSeconds*1E3,M);tO(l.playerVars,Z[E]);C.push({Xv:l,lC:k,Un:b,Vo:E,SZ:Z[E]});k=b}); return C}; O_R=function(w,D,M){for(var L=[],Z=g.x(w),k=Z.next();!k.done;k=Z.next())if(k=g.Q(k.value.renderingContent,S0)){if(!XG(k))return new O("Invalid vod media renderer");L.push(kPR(k))}Z=L.map(function(W){return W.vt}); k=[];for(var b=0,C=0;C0?lS:-1;else if(GK= g.Q(Mk,PS)){Mk=iBC(w,D,M,GK,k,N,C,V,lS);if(Mk instanceof O){t=Mk;break a}Mk=Mk(h);n.push(Mk.SW);v=[].concat(g.tG(Mk.F$),g.tG(v));G=[].concat(g.tG(Mk.gC),g.tG(G));Mk.Ic&&(Yx=[Mk.Ic].concat(g.tG(Yx)))}else if(GK=g.Q(Mk,Je)){if(t===void 0){t=new O("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:GK});break a}Mk=I5x(w,D,M,k,GK,K,C,t,N,cI(p,"supports_multi_step_on_desktop"));if(Mk instanceof O){t=Mk;break a}Mk=Mk(h);n.push(Mk.SW);Mk.Ic&&Yx.push(Mk.Ic); v=[].concat(g.tG(Mk.F$),g.tG(v));G=[].concat(g.tG(Mk.gC),g.tG(G));f=[].concat(g.tG(Mk.vK),g.tG(f));e=[].concat(g.tG(Mk.SS),g.tG(e));S=[K].concat(g.tG(S))}else if(Mk=g.Q(Mk,z9)){Mk=UwK(w,D,M,k,Mk,K,C,N);if(Mk instanceof O){t=Mk;break a}Mk=Mk(h);n.push(Mk.SW);Mk.Ic&&Yx.push(Mk.Ic);G=[].concat(g.tG(Mk.gC),g.tG(G))}else{t=new O("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Lm:n,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:f,hQ:e,layoutExitMuteTriggers:G,jS:S,h8:Yx}}}else a:if(N= n$l(L,M,p),N instanceof O)t=N;else{n=0;v=[];G=[];f=[];e=[];S=[];K=[];V=new Y$({current:null});CI=new XH({current:null});Yx=!1;Wr=[];lS=-1;d=g.x(L);for(Mk=d.next();!Mk.done;Mk=d.next())if(Mk=Mk.value,g.Q(Mk,Qs)){Mk=dwI(D,M,g.Q(Mk,Qs),C);if(Mk instanceof O){t=Mk;break a}Mk=Mk(h);v.push(Mk.SW);G=[].concat(g.tG(Mk.F$),g.tG(G));f=[].concat(g.tG(Mk.gC),g.tG(f));Mk.Ic&&(Wr=[Mk.Ic].concat(g.tG(Wr)))}else if(g.Q(Mk,S0)){lS=N8(g.Q(Mk,S0),M,p);if(lS instanceof SK){t=new O(lS);break a}Mk=new O5(n,N);Mk=F3K(D, lS.layoutId,lS.ge,M,HX(lS.playerVars,lS.S4,b,E,Mk),lS.vt,k,Mk,C(h),CI,l.get(lS.ge.externalVideoId),void 0,W);n++;v.push(Mk.SW);G=[].concat(g.tG(Mk.F$),g.tG(G));f=[].concat(g.tG(Mk.gC),g.tG(f));Yx||(K.push(CI),Yx=!0);lS=(lS=lS.ge.adPodSkipTarget)&&lS>0?lS:-1}else if(g.Q(Mk,PS)){Mk=iBC(w,D,M,g.Q(Mk,PS),k,n,C,CI,lS);if(Mk instanceof O){t=Mk;break a}Mk=Mk(h);v.push(Mk.SW);G=[].concat(g.tG(Mk.F$),g.tG(G));f=[].concat(g.tG(Mk.gC),g.tG(f));Mk.Ic&&(Wr=[Mk.Ic].concat(g.tG(Wr)))}else if(g.Q(Mk,Je)){if(t=== void 0){t=new O("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.Q(Mk,Je)});break a}Mk=I5x(w,D,M,k,g.Q(Mk,Je),V,C,t,n,cI(p,"supports_multi_step_on_desktop"));if(Mk instanceof O){t=Mk;break a}Mk=Mk(h);v.push(Mk.SW);Mk.Ic&&Wr.push(Mk.Ic);G=[].concat(g.tG(Mk.F$),g.tG(G));f=[].concat(g.tG(Mk.gC),g.tG(f));e=[].concat(g.tG(Mk.vK),g.tG(e));S=[].concat(g.tG(Mk.SS),g.tG(S));K=[V].concat(g.tG(K))}else if(g.Q(Mk,z9)){Mk=UwK(w,D,M,k,g.Q(Mk,z9),V,C,n);if(Mk instanceof O){t=Mk;break a}Mk=Mk(h);v.push(Mk.SW);Mk.Ic&&Wr.push(Mk.Ic);f=[].concat(g.tG(Mk.gC),g.tG(f))}else{t=new O("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Lm:v,layoutExitSkipTriggers:G,layoutExitUserInputSubmittedTriggers:e,hQ:S,layoutExitMuteTriggers:f,jS:K,h8:Wr}}t instanceof O?h=t:(S=h.slotId,N=t.Lm,n=t.layoutExitSkipTriggers,v=t.layoutExitMuteTriggers,G=t.layoutExitUserInputSubmittedTriggers,f=t.jS,h=C(h),e=Z?Z.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",S=Z?Z.layoutId: BI(D.V.get(),e,S),K={layoutId:S,layoutType:e,lW:"core"},h={layout:{layoutId:S,layoutType:e,UL:new Map,layoutExitNormalTriggers:[new W1(D.T,S)],layoutExitSkipTriggers:n,layoutExitMuteTriggers:v,layoutExitUserInputSubmittedTriggers:G,hQ:[],lW:"core",clientMetadata:new Q7([new CB(N)].concat(g.tG(f))),F_:h(K)},h8:t.h8});return h}}; n$l=function(w,D,M){var L=[];w=g.x(w);for(var Z=w.next();!Z.done;Z=w.next())if(Z=Z.value,g.Q(Z,S0)){Z=N8(g.Q(Z,S0),D,M);if(Z instanceof SK)return new O(Z);L.push(Z.vt)}return L}; srx=function(w,D,M,L,Z,k,b,C){if(!Bnx(M,C===void 0?!1:C))return new O("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:M});var l=y0(M);if(l<=0)return new O("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:M});var E=new Y$({current:null}),p=b_T(w,D,M,E,L,k,b);return GPl(w,L,k,l,Z,function(W,h){var t=W.slotId,d=IY(M);W=b(W);var N,n=(N=q8(D,L,M.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?N: BI(D.V.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",lW:"core"};N=p(n,h);var v=J3(N.clientMetadata,"metadata_type_fulfilled_layout");v||Zg("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");d=[new f_(L),new or(l),new GP(d),E];v&&d.push(new LB(v.layoutType));return{hD5:{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",UL:new Map,layoutExitNormalTriggers:[new W1(D.T,n)],layoutExitSkipTriggers:[new $l(D.T, h.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new n$(D.T,h.layoutId)],hQ:[],lW:"core",clientMetadata:new Q7(d),F_:W(t)},wY:N}})}; a5R=function(w){if(!r4x(w))return!1;var D=g.Q(w.adVideoStart,uO);return D?g.Q(w.linearAd,S0)&&rV(D)?!0:(Zg("Invalid Sandwich with notify"),!1):!1}; v$K=function(w){if(w.linearAds==null)return!1;w=g.Q(w.adStart,uO);return w?rV(w)?!0:(Zg("Invalid LASR with notify"),!1):!1}; c3K=function(w){if(!qkR(w))return!1;w=g.Q(w.adStart,uO);return w?rV(w)?!0:(Zg("Invalid LASR with notify"),!1):!1}; Sa=function(w,D,M,L,Z,k,b,C,l,E){this.D=w;this.V=D;this.T=M;this.D5=L;this.Hd=Z;this.L=k;this.aJ=b;this.k9=C;this.Rm=l;this.loadPolicy=E===void 0?1:E}; pO=function(w,D,M,L,Z,k,b,C,l,E,p){var W=[];if(D.length===0&&L.length===0&&M.length===0)return W;D=D.filter(e0);var h=M.filter(aRC),t=L.filter(e0),d=new Map,N=BeC(D),n=M.some(function(AG){var ir;return(AG==null?void 0:(ir=AG.adSlotMetadata)==null?void 0:ir.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),v=M.some(function(AG){var ir; return(AG==null?void 0:(ir=AG.adSlotMetadata)==null?void 0:ir.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),G=M.some(function(AG){var ir; return(AG==null?void 0:(ir=AG.adSlotMetadata)==null?void 0:ir.slotType)==="SLOT_TYPE_IN_PLAYER"}),f=M.some(function(AG){var ir,YB; return(AG==null?void 0:(ir=AG.adSlotMetadata)==null?void 0:ir.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(AG==null?void 0:(YB=AG.adSlotMetadata)==null?void 0:YB.slotType)==="SLOT_TYPE_ABOVE_FEED"}); M=M.some(function(AG){var ir;return(AG==null?void 0:(ir=AG.adSlotMetadata)==null?void 0:ir.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(n||v||G||f||M)E=Svr(h,D,C,Z,N,w.Hd.get(),w.loadPolicy,d,w.D5.get(),w.D.get(),G,b,l,E,p),E instanceof O?Zg(E,void 0,void 0,{contentCpn:Z}):W.push.apply(W,g.tG(E));E=g.x(D);for(p=E.next();!p.done;p=E.next())p=p.value,M=BYk(w,d,p,Z,k,b,n,C,N,l,h),M instanceof O?Zg(M,void 0,void 0,{renderer:p.renderer,config:p.config.adPlacementConfig,kind:p.config.adPlacementConfig.kind,contentCpn:Z,daiEnabled:b}):W.push.apply(W,g.tG(M));f5S(w.D5.get())||(k=q0K(w,t,Z,C,N,d),W.push.apply(W,g.tG(k)));if(w.L===null|| b&&!C.cN){var e,S,K;w=C.Yl&&D.length===1&&((e=D[0].config)==null?void 0:(S=e.adPlacementConfig)==null?void 0:S.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((K=D[0].renderer)==null?void 0:K.adBreakServiceRenderer);if(!W.length&&!w){var V,CI,Yx,lS;Zg("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":D.length,contentCpn:Z,"first APR kind":(V=D[0])==null?void 0:(CI=V.config)==null?void 0:(Yx=CI.adPlacementConfig)==null?void 0:Yx.kind,renderer:(lS= D[0])==null?void 0:lS.renderer})}return W}e=L.filter(e0);W.push.apply(W,g.tG(LdS(d,e,w.V.get(),w.L,Z,n)));if(!W.length){var Wr,Mk,GK,Vj;Zg("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":D.length,contentCpn:Z,daiEnabled:b.toString(),"first APR kind":(Wr=D[0])==null?void 0:(Mk=Wr.config)==null?void 0:(GK=Mk.adPlacementConfig)==null?void 0:GK.kind,renderer:(Vj=D[0])==null?void 0:Vj.renderer})}return W}; q0K=function(w,D,M,L,Z,k){function b(h){return m3(w.Hd.get(),h)} var C=[];D=g.x(D);for(var l=D.next();!l.done;l=D.next()){l=l.value;var E=l.renderer,p=E.sandwichedLinearAdRenderer,W=E.linearAdSequenceRenderer;p&&a5R(p)?(Zg("Found AdNotify with SandwichedLinearAdRenderer"),W=g.Q(p.adVideoStart,uO),p=g.Q(p.linearAd,S0),$F(k,E,l.config.adPlacementConfig.kind),E=void 0,W=g6N((E=W)==null?void 0:E.layout.layoutId,w.V.get(),w.T.get(),l.config.adPlacementConfig,l.adSlotLoggingData,p,M,L,b,Z,w.loadPolicy,w.D5.get(),w.Hd.get()),W instanceof O?Zg(W):C.push.apply(C,g.tG(W))): W&&(!W.adLayoutMetadata&&v$K(W)||W.adLayoutMetadata&&c3K(W))&&(Zg("Found AdNotify with LinearAdSequenceRenderer"),$F(k,E,l.config.adPlacementConfig.kind),E=void 0,p=xwx((E=g.Q(W.adStart,uO))==null?void 0:E.layout.layoutId,w.V.get(),w.T.get(),l.config.adPlacementConfig,l.adSlotLoggingData,W.linearAds,s_(W.adLayoutMetadata)?W.adLayoutMetadata:void 0,M,L,b,Z,w.loadPolicy,w.D5.get()),p instanceof O?Zg(p):C.push.apply(C,g.tG(p)))}return C}; BYk=function(w,D,M,L,Z,k,b,C,l,E,p){function W(v){return m3(w.Hd.get(),v)} var h=M.renderer,t=M.config.adPlacementConfig,d=t.kind,N=M.adSlotLoggingData,n=C.cN&&d==="AD_PLACEMENT_KIND_START";n=k&&!n;if(h.adsEngagementPanelRenderer!=null)return dN(D,M.elementId,d,h.adsEngagementPanelRenderer.isContentVideoEngagementPanel,h.adsEngagementPanelRenderer.adVideoId,h.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,N,function(v,G,f,e){var S=w.T.get(),K=v.slotId,V=h.adsEngagementPanelRenderer;v=m3(w.Hd.get(),v);return Q0(S,K,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new ge(V),G,f,V.impressionPings,v,h.adsEngagementPanelRenderer.adLayoutLoggingData,e)}),[]; if(h.adsEngagementPanelLayoutViewModel)return dN(D,M.elementId,d,h.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,h.adsEngagementPanelLayoutViewModel.adVideoId,h.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,N,function(v,G,f,e){var S=w.T.get(),K=v.slotId,V=h.adsEngagementPanelLayoutViewModel;v=m3(w.Hd.get(),v);return JO(S,K,"LAYOUT_TYPE_PANEL",new Rn(V),G,f,v,h.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,e)}),[]; if(h.actionCompanionAdRenderer!=null){if(h.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return m5j(w.V.get(),w.L,w.T.get(),h.actionCompanionAdRenderer,t,N,L,W);dN(D,M.elementId,d,h.actionCompanionAdRenderer.isContentVideoCompanion,h.actionCompanionAdRenderer.adVideoId,h.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,N,function(v,G,f,e){var S=w.T.get(),K=v.slotId,V=h.actionCompanionAdRenderer;v=m3(w.Hd.get(),v);return Q0(S,K,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Ha(V),G,f,V.impressionPings,v,h.actionCompanionAdRenderer.adLayoutLoggingData,e)})}else if(h.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(h.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return A4S(w.V.get(),w.L,w.T.get(),h.topBannerImageTextIconButtonedLayoutViewModel,t,N,L,W); dN(D,M.elementId,d,h.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,h.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,h.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,N,function(v,G,f,e){var S=w.T.get(),K=v.slotId,V=h.topBannerImageTextIconButtonedLayoutViewModel;v=m3(w.Hd.get(),v);return JO(S,K,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new jQ(V),G,f,v,h.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,e)})}else if(h.imageCompanionAdRenderer)dN(D, M.elementId,d,h.imageCompanionAdRenderer.isContentVideoCompanion,h.imageCompanionAdRenderer.adVideoId,h.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,N,function(v,G,f,e){var S=w.T.get(),K=v.slotId,V=h.imageCompanionAdRenderer; v=m3(w.Hd.get(),v);return Q0(S,K,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Gi(V),G,f,V.impressionPings,v,h.imageCompanionAdRenderer.adLayoutLoggingData,e)}); else if(h.bannerImageLayoutViewModel)dN(D,M.elementId,d,h.bannerImageLayoutViewModel.isContentVideoCompanion,h.bannerImageLayoutViewModel.adVideoId,h.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,N,function(v,G,f,e){var S=w.T.get(),K=v.slotId,V=h.bannerImageLayoutViewModel;v=m3(w.Hd.get(),v);return JO(S,K,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new an(V),G,f,v,h.bannerImageLayoutViewModel.adLayoutLoggingData,e)}); else if(h.shoppingCompanionCarouselRenderer)dN(D,M.elementId,d,h.shoppingCompanionCarouselRenderer.isContentVideoCompanion,h.shoppingCompanionCarouselRenderer.adVideoId,h.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,N,function(v,G,f,e){var S=w.T.get(),K=v.slotId,V=h.shoppingCompanionCarouselRenderer;v=m3(w.Hd.get(),v);return Q0(S,K,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new va(V),G,f,V.impressionPings,v,h.shoppingCompanionCarouselRenderer.adLayoutLoggingData,e)}); else if(h.adBreakServiceRenderer){if(!OMj(M))return[];if(d==="AD_PLACEMENT_KIND_PAUSE")return PKx(w.V.get(),t,N,M.renderer.adBreakServiceRenderer,L);if(d!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&d!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return VWS(w.V.get(),t,N,M.renderer.adBreakServiceRenderer,L,Z,k);C.Yl||Zg("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:d,adPlacementConfig:t,daiEnabledForContentVideo:String(k),isServedFromLiveInfra:String(C.Yl),clientPlaybackNonce:C.clientPlaybackNonce}); if(d==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!w.aJ)return new O("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!w.Rm)return new O("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");w.Rm.v3({adPlacementRenderer:M,contentCpn:L,T$:Z});Z=w.aJ.get().getCurrentTimeSec(1,!1);return r3r(w.V.get(),M.renderer.adBreakServiceRenderer,t,Z,L,N,k)}if(!w.k9)return new O("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); w.k9.v3({adPlacementRenderer:M,contentCpn:L,T$:Z})}else{if(h.clientForecastingAdRenderer)return l5N(w.V.get(),w.T.get(),t,N,h.clientForecastingAdRenderer,L,Z,W);if(h.invideoOverlayAdRenderer)return h5j(w.V.get(),w.T.get(),t,N,h.invideoOverlayAdRenderer,L,Z,W);if(h.instreamAdPlayerOverlayRenderer)return p8J(w.V.get(),w.T.get(),t,N,h.instreamAdPlayerOverlayRenderer,L,W);if((h.linearAdSequenceRenderer||h.instreamVideoAdRenderer)&&n)return IMx(w.V.get(),w.T.get(),M,L,W,E,!w.D5.get().K.X().C("html5_override_ad_video_length_killswitch")); if(h.linearAdSequenceRenderer&&!n){if(b)return[];$F(D,h,d);if(h.linearAdSequenceRenderer.adLayoutMetadata){if(!qkR(h.linearAdSequenceRenderer))return new O("Received invalid LinearAdSequenceRenderer.")}else if(h.linearAdSequenceRenderer.linearAds==null)return new O("Received invalid LinearAdSequenceRenderer.");if(g.Q(h.linearAdSequenceRenderer.adStart,uO)){Zg("Found AdNotify in LinearAdSequenceRenderer");M=g.Q(h.linearAdSequenceRenderer.adStart,uO);if(!IRa(M))return new O("Invalid AdMessageRenderer."); k=h.linearAdSequenceRenderer.linearAds;return NYx(w.D.get(),w.V.get(),w.T.get(),w.Hd.get(),t,N,M,s_(h.linearAdSequenceRenderer.adLayoutMetadata)?h.linearAdSequenceRenderer.adLayoutMetadata:void 0,k,L,Z,C,W,l,w.loadPolicy,w.D5.get())}return o$N(w.V.get(),w.T.get(),t,N,h.linearAdSequenceRenderer.linearAds,s_(h.linearAdSequenceRenderer.adLayoutMetadata)?h.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,Z,C,W,l,w.loadPolicy,w.D5.get(),p)}if(!h.remoteSlotsRenderer||k){if(h.instreamVideoAdRenderer&& !n){if(b)return[];$F(D,h,d);return Gil(w.V.get(),w.T.get(),t,N,h.instreamVideoAdRenderer,L,Z,C,W,l,w.loadPolicy,w.D5.get(),w.Hd.get(),p)}if(h.instreamSurveyAdRenderer)return srx(w.V.get(),w.T.get(),h.instreamSurveyAdRenderer,t,N,L,W,cI(w.D5.get(),"supports_multi_step_on_desktop"));if(h.sandwichedLinearAdRenderer!=null)return r4x(h.sandwichedLinearAdRenderer)?g.Q(h.sandwichedLinearAdRenderer.adVideoStart,uO)?(Zg("Found AdNotify in SandwichedLinearAdRenderer"),M=g.Q(h.sandwichedLinearAdRenderer.adVideoStart, uO),IRa(M)?(k=g.Q(h.sandwichedLinearAdRenderer.linearAd,S0))?RNK(M,k,t,w.D.get(),w.V.get(),w.T.get(),w.Hd.get(),N,L,Z,C,W,l,w.loadPolicy,w.D5.get()):new O("Missing IVAR from Sandwich"):new O("Invalid AdMessageRenderer.")):o$N(w.V.get(),w.T.get(),t,N,[h.sandwichedLinearAdRenderer.adVideoStart,h.sandwichedLinearAdRenderer.linearAd],void 0,L,Z,C,W,l,w.loadPolicy,w.D5.get()):new O("Received invalid SandwichedLinearAdRenderer.");if(h.videoAdTrackingRenderer!=null)return Y0N(w.V.get(),w.T.get(),h.videoAdTrackingRenderer, t,N,L,Z,C.Xz,W)}}return[]}; zR=function(w,D,M,L,Z,k,b,C){g.X.call(this);var l=this;this.V=w;this.L=D;this.QZ=L;this.aJ=Z;this.D5=k;this.FE=b;this.Ll=C;this.T=null;M.get().addListener(this);this.addOnDisposeCallback(function(){M.xt()||M.get().removeListener(l)}); L.get().addListener(this);this.addOnDisposeCallback(function(){L.xt()||L.get().removeListener(l)})}; OX=function(w,D,M){var L=w.aJ.get().getCurrentTimeSec(1,!1);w.D5.get().K.X().gW()&&nY(w.FE.get(),"sdai","onopp.1;evt."+M.event+";start."+M.startSecs.toFixed(3)+";d."+M.x6.toFixed(3));wA(w.V.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var Z=w.L.get(),k=D.adPlacementRenderer.renderer.adBreakServiceRenderer,b=D.contentCpn,C=D.adPlacementRenderer.adSlotLoggingData;V0(w.D5.get());var l=w.FE;var E=Z.D5.get();E=g.A3(E.K.X().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var p=Z.D5.get();var W=g.A3(p.K.X().experiments,"min_prefetch_offset_sec_for_livestream_optimization");p=M.startSecs*1E3;p={DI:new is(p,p+M.x6*1E3),k$:!1,cueProcessedMs:L*1E3};var h=M.startSecs+M.x6;if(L===0)p.qN=new is(0,h*1E3);else{W=M.startSecs-W;var t=W-L;p.qN=t<=0?new is(W*1E3,h*1E3):new is(Math.floor(L+Math.random()*Math.min(t,E))*1E3,h*1E3)}k=WX(Z,k,b,p,C,[new lN(M)]);PX(Z.D5.get())&&nY(l.get(),"abrsm","cpi."+M.identifier+";cps."+M.startSecs+";cpd."+M.x6+";cts."+L+";rbf."+p.qN.start);l.get().K.iB(M.startSecs- L,p.qN.start/1E3-L);return[k]})}; KO=function(w){var D,M=(D=J3(w.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:D.current;if(!M)return null;D=J3(w.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var L=w.layoutId,Z=J3(w.clientMetadata,"metadata_type_content_cpn"),k=J3(w.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=J3(w.clientMetadata,"metadata_type_player_overlay_layout_renderer"),C=J3(w.clientMetadata,"metadata_type_player_underlay_renderer"),l=J3(w.clientMetadata, "metadata_type_ad_placement_config"),E=J3(w.clientMetadata,"metadata_type_video_length_seconds");var p=XZ(w.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?J3(w.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):XZ(w.clientMetadata,"metadata_type_layout_enter_ms")&&XZ(w.clientMetadata,"metadata_type_layout_exit_ms")?(J3(w.clientMetadata,"metadata_type_layout_exit_ms")-J3(w.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{sZ:L,contentCpn:Z,xr:M,FD:D,instreamAdPlayerOverlayRenderer:k, playerOverlayLayoutRenderer:b,instreamAdPlayerUnderlayRenderer:C,adPlacementConfig:l,videoLengthSeconds:E,Nx:p,inPlayerLayoutId:J3(w.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:J3(w.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; X8x=function(w,D){return e5T(w,D)}; TYG=function(w,D){D=e5T(w,D);if(!D)return null;var M;D.Nx=(M=J3(w.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:M.adBreakRemainingLengthSeconds;return D}; e5T=function(w,D){var M,L=(M=J3(w.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:M.current;if(!L)return null;M=CIr(w,D);return{rP:YWT(w,D),adPlacementConfig:J3(w.clientMetadata,"metadata_type_ad_placement_config"),dP:M,contentCpn:J3(w.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:J3(w.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:J3(w.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:J3(w.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Nx:void 0,xr:L,sZ:w.layoutId,videoLengthSeconds:J3(w.clientMetadata,"metadata_type_video_length_seconds")}}; mi=function(w,D,M,L,Z,k,b,C,l){g.X.call(this);this.D=w;this.Y=D;this.W=M;this.L=L;this.T=Z;this.V=k;this.Hd=b;this.D5=C;this.Gh=l;this.H9=!0}; uZK=function(w,D,M){return v6C(w.T.get(),D.contentCpn,D.sZ,function(L){return cER(w.V.get(),L.slotId,M,D.adPlacementConfig,D.sZ,m3(w.Hd.get(),L))})}; AO=function(w,D,M,L,Z,k,b,C){g.X.call(this);this.V=w;this.T=D;this.L=M;this.D5=L;this.D=Z;this.Gh=k;this.aJ=b;this.cA=C}; wj=function(w){g.X.call(this);this.T=w}; wA=function(w,D,M,L){w.T().eW(D,L);M=M();w=w.T();w.MC.ML("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",D,L,M);D=g.x(M);for(M=D.next();!M.done;M=D.next())a:{L=w;M=M.value;L.MC.Wx("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",M);L.MC.Wx("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",M);try{var Z=L.T;if(g.s3(M.slotId))throw new O("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Y_(Z,M))throw new O("Duplicate registration for slot.",{slotId:M.slotId,slotEntryTriggerType:M.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!Z.Iu.N0.has(M.slotType))throw new O("No fulfillment adapter factory registered for slot of type: "+M.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!Z.Iu.oG.has(M.slotType))throw new O("No SlotAdapterFactory registered for slot of type: "+M.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");jp(Z,"TRIGGER_CATEGORY_SLOT_ENTRY",M.slotEntryTrigger?[M.slotEntryTrigger]:[]);jp(Z,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", M.slotFulfillmentTriggers);jp(Z,"TRIGGER_CATEGORY_SLOT_EXPIRATION",M.slotExpirationTriggers);var k=L.T,b=M.slotType+"_"+M.slotPhysicalPosition,C=I2(k,b);if(Y_(k,M))throw new O("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");C.set(M.slotId,new wLN(M));k.T.set(b,C)}catch(CI){CI instanceof O&&CI.gV?(L.MC.Zf("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",CI.gV,M),Zg(CI,M,void 0,void 0,CI.PB)):(L.MC.Zf("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", M),Zg(CI,M));break a}Y_(L.T,M).Y=!0;try{var l=L.T,E=Y_(l,M),p=M.slotEntryTrigger,W=l.Iu.DS.get(p.triggerType);W&&(W.iZ("TRIGGER_CATEGORY_SLOT_ENTRY",p,M,null),E.nV.set(p.triggerId,W));for(var h=g.x(M.slotFulfillmentTriggers),t=h.next();!t.done;t=h.next()){var d=t.value,N=l.Iu.DS.get(d.triggerType);N&&(N.iZ("TRIGGER_CATEGORY_SLOT_FULFILLMENT",d,M,null),E.y7.set(d.triggerId,N))}for(var n=g.x(M.slotExpirationTriggers),v=n.next();!v.done;v=n.next()){var G=v.value,f=l.Iu.DS.get(G.triggerType);f&&(f.iZ("TRIGGER_CATEGORY_SLOT_EXPIRATION", G,M,null),E.B.set(G.triggerId,f))}var e=l.Iu.N0.get(M.slotType).get().build(l.L,M);E.G=e;var S=l.Iu.oG.get(M.slotType).get().build(l.W,M);S.init();E.V=S}catch(CI){CI instanceof O&&CI.gV?(L.MC.Zf("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",CI.gV,M),Zg(CI,M,void 0,void 0,CI.PB)):(L.MC.Zf("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",M),Zg(CI,M));ZG(L,M,!0);break a}L.MC.Wx("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",M);L.T.RC(M);for(var K=g.x(L.V),V=K.next();!V.done;V= K.next())V.value.RC(M);ET(L,M)}}; Dm=function(w,D,M,L,Z){g.X.call(this);var k=this;this.V=w;this.L=D;this.zD=M;this.context=Z;this.T=new Map;L.get().addListener(this);this.addOnDisposeCallback(function(){L.xt()||L.get().removeListener(k)})}; Tnk=function(w,D){var M=0x8000000000000,L=0,Z=0x8000000000000;var k=g.x(D.slotFulfillmentTriggers);for(var b=k.next();!b.done;b=k.next())if(b=b.value,b instanceof C$){var C=b.T.start;M=Math.min(M,C);L=Math.max(L,b.T.end);b.visible&&(Z=Math.min(Z,C))}else Zg("Found unexpected fulfillment trigger for throttled slot.",D,null,{fulfillmentTrigger:b});k=M;Z=Z<0x8000000000000&&M0&&ie(w.Y(),M)}; Uy=function(w,D,M,L,Z){for(var k=[],b=g.x(w.t1.values()),C=b.next();!C.done;C=b.next()){var l=C=C.value,E=l.trigger;l=l.slot;if(E.triggerType===D){if(E instanceof kl||E instanceof bu||E instanceof lu){if(Z&&E.breakDurationMs!==M)continue;if(!Z&&E.breakDurationMs===M)continue;if(L.has(l.slotId))continue}k.push(C)}}k.length>0&&ie(w.Y(),k)}; DuK=function(w,D){D=(D.x6+1)*1E3;var M=void 0;w=g.x(w.t1.values());for(var L=w.next();!L.done;L=w.next()){var Z=L.value;L=Z.trigger;Z=Z.slot;L instanceof kl&&L.breakDurationMs<=D&&(!M||L.breakDurationMs>M.trigger.breakDurationMs)&&(M={slot:Z,trigger:L})}return M}; MpT=function(w){w=w.adPlacementRenderer.config.adPlacementConfig;if(!w.prefetchModeConfig||!w.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;w=Number(w.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(w)||w<=0?0:Math.floor(Math.random()*w)}; LtJ=function(w){w=w.adPlacementRenderer.config.adPlacementConfig;if(w.prefetchModeConfig&&w.prefetchModeConfig.cacheFetchRefreshDurationMs&&(w=Number(w.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(w)||w<=0)))return w}; x4=function(w){w.T=null;w.t1.clear();w.V&&w.V.stop();w.W&&w.W.stop();var D;(D=w.L)==null||D.stop();delete w.L}; A3j=function(w){var D=[];w=g.x(w.t1.values());for(var M=w.next();!M.done;M=w.next())M=M.value.trigger,M instanceof kl&&D.push(M.breakDurationMs);return D}; Ne=function(w){g.X.call(this);this.L=w;this.H9=!0;this.t1=new Map;this.T=new Map;this.V=new Map}; ZcR=function(w,D){var M=[];if(D=w.T.get(D.layoutId)){D=g.x(D);for(var L=D.next();!L.done;L=D.next())(L=w.V.get(L.value.triggerId))&&M.push(L)}return M}; Hh=function(w){g.X.call(this);this.T=w;this.t1=new Map}; k8k=function(w,D){for(var M=[],L=g.x(w.t1.values()),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.trigger instanceof PE&&Z.trigger.slotId===D&&M.push(Z);M.length>=1&&ie(w.T(),M)}; bcC=function(w,D){var M={slotId:D1(D,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],lW:"surface",clientMetadata:new Q7([])},L=Object,Z=L.assign;D=BI(D,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",M.slotId);D={layoutId:D,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",UL:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"surface", clientMetadata:new Q7([]),F_:XJG(!1,M.slotId,M.slotType,M.slotPhysicalPosition,M.lW,M.slotEntryTrigger,M.slotFulfillmentTriggers,M.slotExpirationTriggers,D,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return Z.call(L,{},w,{uI:!0,slot:M,layout:D})}; zEK=function(w,D,M,L){var Z=w.kind;L=L?!1:!w.hideCueRangeMarker;switch(Z){case "AD_PLACEMENT_KIND_START":return L={DI:new is(-0x8000000000000,-0x8000000000000),k$:L},M!=null&&(L.qN=new is(-0x8000000000000,-0x8000000000000)),L;case "AD_PLACEMENT_KIND_END":return L={DI:new is(0x7ffffffffffff,0x8000000000000),k$:L},M!=null&&(L.qN=new is(Math.max(0,D-M),0x8000000000000)),L;case "AD_PLACEMENT_KIND_MILLISECONDS":Z=w.adTimeOffset;Z.offsetStartMilliseconds||Zg("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); Z.offsetEndMilliseconds||Zg("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");w=Number(Z.offsetStartMilliseconds);Z=Number(Z.offsetEndMilliseconds);Z===-1&&(Z=D);if(Number.isNaN(w)||Number.isNaN(Z)||w>Z)return new O("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:w,offsetEndMs:Z},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",Z===D&&w-500<=Z);L={DI:new is(w,Z),k$:L};if(M!=null){w=Math.max(0,w-M);if(w===Z)return L;L.qN=new is(w,Z)}return L; default:return new O("AdPlacementKind not supported in convertToRange.",{kind:Z,adPlacementConfig:w})}}; YTN=function(w){if(!w||!w.adPlacements&&!w.adSlots)return!1;for(var D=g.x(w.adPlacements||[]),M=D.next();!M.done;M=D.next())if(M=M.value)if(M=M.adPlacementRenderer,M!=null&&(M.config&&M.config.adPlacementConfig&&M.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;w=g.x(w.adSlots||[]);for(D=w.next();!D.done;D=w.next()){var L=M=void 0;if(((M=g.Q(D.value,EX))==null?void 0:(L=M.adSlotMetadata)==null?void 0:L.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; j6=function(w){this.D5=w;this.V=new Map;this.T=new Map;this.L=new Map}; D1=function(w,D){if(gj(w.D5.get())){var M=w.V.get(D)||0;M++;w.V.set(D,M);return D+"_"+M}return g.WJ(16)}; BI=function(w,D,M){if(gj(w.D5.get())){var L=w.T.get(D)||0;L++;w.T.set(D,L);return M+"_"+D+"_"+L}return g.WJ(16)}; vX=function(w,D){if(gj(w.D5.get())){var M=w.L.get(D)||0;M++;w.L.set(D,M);return D+"_"+M}return g.WJ(16)}; CeN=function(w){var D=[new D5(w.sZ),new k$(w.xr),new f_(w.adPlacementConfig),new pB(w.videoLengthSeconds),new Rr(w.Nx)];w.instreamAdPlayerOverlayRenderer&&D.push(new SQ(w.instreamAdPlayerOverlayRenderer));w.playerOverlayLayoutRenderer&&D.push(new Qx(w.playerOverlayLayoutRenderer));w.FD&&D.push(new XH(w.FD));return D}; lGJ=function(w,D,M,L,Z,k){w=M.inPlayerLayoutId?M.inPlayerLayoutId:BI(k,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w);var b,C,l=M.instreamAdPlayerOverlayRenderer?(b=M.instreamAdPlayerOverlayRenderer)==null?void 0:b.adLayoutLoggingData:(C=M.playerOverlayLayoutRenderer)==null?void 0:C.adLayoutLoggingData;b={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",lW:D};return{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",UL:new Map,layoutExitNormalTriggers:[new L$(function(E){return vX(k, E)},M.sZ)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:D,clientMetadata:L,F_:Z(b),adLayoutLoggingData:l}}; R9=function(w,D){var M=this;this.V=w;this.D5=D;this.T=function(L){return vX(M.V.get(),L)}}; cER=function(w,D,M,L,Z,k){M=new Q7([new JE(M),new f_(L)]);D=BI(w.V.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",D);L={layoutId:D,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",lW:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",UL:new Map,layoutExitNormalTriggers:[new L$(function(b){return vX(w.V.get(),b)},Z)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:M,F_:k(L),adLayoutLoggingData:void 0}}; gN=function(w,D,M,L,Z){var k=CeN(L);return lGJ(D,M,L,new Q7(k),Z,w.V.get())}; E_N=function(w,D,M,L,Z){var k=CeN(L);k.push(new ca(L.rP));k.push(new Ba(L.dP));return lGJ(D,M,L,new Q7(k),Z,w.V.get())}; Q0=function(w,D,M,L,Z,k,b,C,l,E){D=BI(w.V.get(),M,D);var p={layoutId:D,layoutType:M,lW:"core"},W=new Map;b&&W.set("impression",b);b=[new E_(w.T,Z,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];E&&b.push(new MV(w.T,E,["normal"]));return{layoutId:D,layoutType:M,UL:W,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:new Q7([L,new f_(k),new D5(Z)]),F_:C(p),adLayoutLoggingData:l}}; JO=function(w,D,M,L,Z,k,b,C,l){D=BI(w.V.get(),M,D);var E={layoutId:D,layoutType:M,lW:"core"},p=[new E_(w.T,Z,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];l&&p.push(new MV(w.T,l,["normal"]));return{layoutId:D,layoutType:M,UL:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:new Q7([L,new f_(k),new D5(Z)]),F_:b(E),adLayoutLoggingData:C}}; BX=function(w,D,M){var L=[];L.push(new p$(w.T,M));D&&L.push(D);return L}; cX=function(w,D,M,L,Z,k,b){var C={layoutId:D,layoutType:M,lW:"core"};return{layoutId:D,layoutType:M,UL:new Map,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[new m8(w.T,D)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:new Q7([new FH(L),new f_(Z)]),F_:k(C),adLayoutLoggingData:L.adLayoutLoggingData}}; UX=function(w,D,M,L,Z,k,b,C){var l={layoutId:D,layoutType:k,lW:"core"};return{layoutId:D,layoutType:k,UL:new Map,layoutExitNormalTriggers:[new L$(w.T,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:new Q7([new f_(L)].concat(g.tG(b))),F_:Z(l),adLayoutLoggingData:C}}; q8=function(w,D,M,L){if(w.D5.get().fO(D.kind==="AD_PLACEMENT_KIND_START"))if(M===void 0)Zg("Expected SSAP layout ID in renderer",void 0,void 0,{caller:L});else return M}; tKl=function(w,D,M,L,Z,k,b,C,l,E,p,W,h){w=fO(w,D,M,Z,k,b,C,l,W,q8(w,M,L.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),h);D=w.jS;M=new Mw(w.rR);L=w.layoutExitSkipTriggers;E>0&&(D.push(M),D.push(new eQ(E)),L=[]);D.push(new re(p));return{SW:{layoutId:w.layoutId,layoutType:w.layoutType,UL:w.UL,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:w.lW,clientMetadata:new Q7(D),F_:w.F_,adLayoutLoggingData:w.adLayoutLoggingData}, F$:L,gC:w.layoutExitMuteTriggers,vK:w.layoutExitUserInputSubmittedTriggers,SS:w.hQ,Ic:w.Ic}}; y3R=function(w,D,M,L,Z,k,b,C,l,E){D=fO(w,D,M,L,k,new Map,b,function(p){return C(p,l)},void 0,q8(w,M,Z.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); w=new n$(w.T,D.rR);M=new Mw(D.rR);E=new re(E);return{SW:{layoutId:D.layoutId,layoutType:D.layoutType,UL:D.UL,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:D.lW,clientMetadata:new Q7([].concat(g.tG(D.jS),[M,E])),F_:D.F_,adLayoutLoggingData:D.adLayoutLoggingData},F$:D.layoutExitSkipTriggers,gC:D.layoutExitMuteTriggers,vK:[].concat(g.tG(D.layoutExitUserInputSubmittedTriggers),[w]),SS:D.hQ,Ic:D.Ic}}; fO=function(w,D,M,L,Z,k,b,C,l,E,p){D=E!=null?E:BI(w.V.get(),"LAYOUT_TYPE_MEDIA_BREAK",D);E={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",lW:"adapter"};C=C(D);var W=J3(C.clientMetadata,"metadata_type_fulfilled_layout");W||Zg("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var h=W?W.layoutId:"";M=[new f_(M),new or(L),new GP(Z)];W&&M.push(new LB(W.layoutType));p&&M.push(new dY(p));return{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", UL:k,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new $l(w.T,h)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"adapter",jS:M,F_:b(E),adLayoutLoggingData:l,Ic:C,rR:h}}; snT=function(w,D,M,L,Z,k,b,C,l,E,p){w=pIx(w,D,"core",M,L,Z,k,b,C,l,E,void 0,p);return{layoutId:w.layoutId,layoutType:w.layoutType,UL:w.UL,layoutExitNormalTriggers:w.layoutExitNormalTriggers,layoutExitSkipTriggers:w.layoutExitSkipTriggers,layoutExitMuteTriggers:w.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:w.layoutExitUserInputSubmittedTriggers,hQ:w.hQ,lW:w.lW,clientMetadata:new Q7(w.E$),F_:w.F_,adLayoutLoggingData:w.adLayoutLoggingData}}; F3K=function(w,D,M,L,Z,k,b,C,l,E,p,W,h){D=pIx(w,D,"adapter",M,L,Z,k,b,C,l,p,W,h);L=D.layoutExitSkipTriggers;Z=D.E$;M.adPodSkipTarget&&M.adPodSkipTarget>0&&(Z.push(E),Z.push(new eQ(M.adPodSkipTarget)),L=[]);Z.push(new re(C.adPodIndex));M.isCritical&&(L=[new MV(w.T,D.layoutId,["error"])].concat(g.tG(L)));return{SW:{layoutId:D.layoutId,layoutType:D.layoutType,UL:D.UL,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:D.lW, clientMetadata:new Q7(Z),F_:D.F_,adLayoutLoggingData:D.adLayoutLoggingData},F$:L,gC:D.layoutExitMuteTriggers,vK:D.layoutExitUserInputSubmittedTriggers,SS:D.hQ}}; pIx=function(w,D,M,L,Z,k,b,C,l,E,p,W,h){var t={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",lW:M};Z=[new f_(Z),new qG(l),new Ti(L.externalVideoId),new uB(C),new GP({impressionCommands:L.impressionCommands,abandonCommands:L.onAbandonCommands,completeCommands:L.completeCommands,progressCommands:L.adVideoProgressCommands}),new W8(k),new bN({current:null}),new pB(b)];(k=L.playerOverlay.instreamAdPlayerOverlayRenderer)&&Z.push(new SQ(k));(b=L.playerOverlay.playerOverlayLayoutRenderer)&&Z.push(new Qx(b)); W&&Z.push(new h3(W));(W=L.playerUnderlay)&&Z.push(new JE(W));C=D1(w.V.get(),"SLOT_TYPE_IN_PLAYER");W=(W=k?k.elementId:b==null?void 0:b.layoutId)?W:BI(w.V.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",C);Z.push(new Mw(W));Z.push(new Z5(C));Z.push(new dY(l.adPodIndex));L.adNextParams&&Z.push(new on(L.adNextParams));L.shrunkenPlayerBytesConfig&&Z.push(new Pa(L.shrunkenPlayerBytesConfig));L.clickthroughEndpoint&&Z.push(new n_(L.clickthroughEndpoint));L.legacyInfoCardVastExtension&&Z.push(new nB(L.legacyInfoCardVastExtension)); L.sodarExtensionData&&Z.push(new t3(L.sodarExtensionData));p&&Z.push(new gY(p));Z.push(new v8(Es(L.pings)));l=pl(L.pings);if(h){a:{h=g.x(h);for(p=h.next();!p.done;p=h.next())if(p=p.value,p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(k=g.Q(p.fulfillmentContent.fulfilledLayout,wN))&&(k=g.Q(k.renderingContent,mV))&&k.associatedPlayerBytesLayoutId===D){h=p;break a}h=void 0}h&&Z.push(new zi(h))}return{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",UL:l,layoutExitNormalTriggers:[new W1(w.T,D)],layoutExitSkipTriggers:L.skipOffsetMilliseconds? [new $l(w.T,W)]:[],layoutExitMuteTriggers:[new $l(w.T,W)],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:M,E$:Z,F_:E(t),adLayoutLoggingData:L.adLayoutLoggingData}}; xGj=function(w,D,M,L,Z,k,b,C,l){L.every(function(p){return TP(p,[],["LAYOUT_TYPE_MEDIA"])})||Zg("Unexpect subLayout type for DAI composite layout"); D=BI(w.V.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",D);var E={layoutId:D,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",lW:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",UL:new Map,layoutExitNormalTriggers:[new ZJ(w.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hQ:[],lW:"core",clientMetadata:new Q7([new $$(M),new iN(C),new CB(L),new f_(Z),new x$(k),new y7({}),new B8(l)]),F_:b(E)}}; i_K=function(w){return w!=null}; o9=function(w,D,M){var L=this;this.V=w;this.L=D;this.D5=M;this.T=function(Z){return vX(L.V.get(),Z)}}; r3r=function(w,D,M,L,Z,k,b){if(!M.prefetchModeConfig)return new O("AdPlacementConfig for Live Prefetch is missing prefetch_config");M=M.prefetchModeConfig;L*=1E3;var C=[];if(!M.breakLengthMs)return new O("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var l=g.x(M.breakLengthMs),E=l.next();!E.done;E=l.next())if(E=E.value,Number(E)>0){var p=L+Number(M.startTimeOffsetMs),W=p+Number(M.cacheFetchSmearingDurationMs);E={DI:new is(W,W+Number(E)),k$:!1,qN:new is(Math.floor(p+Math.random()* Number(M.cacheFetchSmearingDurationMs)),W),cueProcessedMs:L?L:p};p=[];p.push(new eK({}));W=[];W.push(new te(w.T));W.push(new YkC(w.T));b&&p.push(new y7({}));C.push(WX(w,D,Z,E,k,p,W))}return C}; WX=function(w,D,M,L,Z,k,b){k=k===void 0?[]:k;var C=D1(w.V.get(),"SLOT_TYPE_AD_BREAK_REQUEST");b||(b=[],L.qN&&L.qN.start!==L.DI.start&&b.push(new C$(w.T,M,new is(L.qN.start,L.DI.start),!1)),b.push(new C$(w.T,M,new is(L.DI.start,L.DI.end),L.k$)));L={getAdBreakUrl:D.getAdBreakUrl,Mb:L.DI.start,xQ:L.DI.end,cueProcessedMs:L.cueProcessedMs};D=new gV(w.T,C);k=[new H8(L)].concat(g.tG(k));return{slotId:C,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:b, slotExpirationTriggers:[new he(w.T,M),new dV(w.T,C),new ys(w.T,C)],lW:"core",clientMetadata:new Q7(k),adSlotLoggingData:Z}}; hmC=function(w,D,M){var L=[];M=g.x(M);for(var Z=M.next();!Z.done;Z=M.next())L.push(WtR(w,D,Z.value));return L}; WtR=function(w,D,M){return M.triggeringSlotId!=null&&M.triggeringSlotId===w?M.clone(D):M}; kiJ=function(w,D,M,L,Z){return tpK(w,D,M,L,Z)}; $wj=function(w,D,M,L){var Z=D1(w.V.get(),"SLOT_TYPE_IN_PLAYER");return tpK(w,Z,D,M,L)}; tpK=function(w,D,M,L,Z){var k=new DJ(w.T,M),b=[new iu(w.T,D)];w=[new dV(w.T,D),new he(w.T,L)];return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:b,slotExpirationTriggers:w,lW:"core",clientMetadata:new Q7([new Nw(Z({slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:k,slotFulfillmentTriggers:b,slotExpirationTriggers:w},M))]),adSlotLoggingData:void 0}}; GPl=function(w,D,M,L,Z,k){var b=D1(w.V.get(),"SLOT_TYPE_PLAYER_BYTES"),C=D1(w.V.get(),"SLOT_TYPE_IN_PLAYER"),l=BI(w.V.get(),"LAYOUT_TYPE_SURVEY",C);L=nP(w,D,M,L);var E=[new iu(w.T,b)];M=[new dV(w.T,b),new he(w.T,M),new m8(w.T,l)];if(L instanceof O)return L;C=k({slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:L,slotFulfillmentTriggers:E,slotExpirationTriggers:M},{slotId:C,layoutId:l});k=C.hD5;C=C.wY;return[{slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:ea(w,D,b,L),slotFulfillmentTriggers:X5(w,D,b,E),slotExpirationTriggers:M,lW:"core",clientMetadata:new Q7([new Nw(k),new fB(TR(D)),new rY({ZP:w.ZP(D)})]),adSlotLoggingData:Z},C]}; TR=function(w){return w.kind==="AD_PLACEMENT_KIND_START"}; aMN=function(w,D,M,L,Z){Z=Z?Z:D1(w.V.get(),"SLOT_TYPE_IN_PLAYER");M=new DJ(w.T,M);var k=[new iu(w.T,Z)];w=[new he(w.T,D),new dV(w.T,Z)];return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:k,slotExpirationTriggers:w,lW:"core",clientMetadata:new Q7([new Nw(L({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:M,slotFulfillmentTriggers:k,slotExpirationTriggers:w}))])}}; v6C=function(w,D,M,L){var Z=D1(w.V.get(),"SLOT_TYPE_PLAYER_UNDERLAY");M=new DJ(w.T,M);var k=[new iu(w.T,Z)];w=[new he(w.T,D),new dV(w.T,Z)];return{slotId:Z,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:k,slotExpirationTriggers:w,lW:"core",clientMetadata:new Q7([new Nw(L({slotId:Z,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:M,slotFulfillmentTriggers:k,slotExpirationTriggers:w}))])}}; jnR=function(w,D,M,L,Z,k,b){var C=D1(w.V.get(),"SLOT_TYPE_IN_PLAYER"),l=BI(w.V.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",C);L=$uK(w,L,k,b,l);if(L instanceof O)return L;b=[new iu(w.T,C)];Z=[new he(w.T,k),new iu(w.T,Z),new oG(w.T,Z)];M=m3(M,{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:L,slotFulfillmentTriggers:b,slotExpirationTriggers:Z});w=w.L.get();k={layoutId:l,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",lW:"core"};D={layoutId:l,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", UL:new Map,layoutExitNormalTriggers:[new $5R(w.T,l,D.durationMs)],layoutExitSkipTriggers:[new d5J(w.T,l,D.durationMs)],hQ:[new iMS(w.T,l)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lW:"core",clientMetadata:new Q7([new FZ(D)]),F_:M(k)};return{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:L,slotFulfillmentTriggers:b,slotExpirationTriggers:Z,clientMetadata:new Q7([new Nw(D)])}}; W3r=function(w,D,M,L,Z,k){D=nP(w,D,M,L);if(D instanceof O)return D;var b=D instanceof C$?new WTK(w.T,M,D.T):null;L=D1(w.V.get(),"SLOT_TYPE_IN_PLAYER");var C=[new iu(w.T,L)];w=[new he(w.T,M),new dV(w.T,L)];k=k({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:D,slotFulfillmentTriggers:C,slotExpirationTriggers:w},b);return k instanceof SK?new O(k):{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:C,slotExpirationTriggers:w, lW:"core",clientMetadata:new Q7([new Nw(k)]),adSlotLoggingData:Z}}; E$l=function(w,D,M,L){var Z=D1(w.V.get(),"SLOT_TYPE_IN_PLAYER"),k=new KY(w.T,D),b=[new RG(w.T,Z)];w=[new he(w.T,D),new dV(w.T,Z)];return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:b,slotExpirationTriggers:w,lW:"core",clientMetadata:new Q7([new Nw(L({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:k,slotFulfillmentTriggers:b,slotExpirationTriggers:w}))]),adSlotLoggingData:M}}; pal=function(w,D,M,L){var Z=D1(w.V.get(),"SLOT_TYPE_IN_PLAYER");M=new DJ(w.T,M);var k=[new iu(w.T,Z)],b=[new dV(w.T,Z),new he(w.T,D)];k={slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:M,slotFulfillmentTriggers:k,slotExpirationTriggers:b};return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:[new iu(w.T,Z)],slotExpirationTriggers:[new he(w.T,D),new dV(w.T,Z)],lW:"core",clientMetadata:new Q7([new Nw(L(k))])}}; CBC=function(w,D,M,L,Z){var k=D1(w.V.get(),"SLOT_TYPE_IN_PLAYER");M=new wV(w.T,L,M);L=[new iu(w.T,k)];w=[new he(w.T,D)];return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:L,slotExpirationTriggers:w,lW:"core",clientMetadata:new Q7([new Nw(Z({slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:M,slotFulfillmentTriggers:L,slotExpirationTriggers:w}))])}}; MQJ=function(w,D,M,L,Z,k){var b=D1(w.V.get(),D);return F_(w,b,D,new DJ(w.T,L),[new he(w.T,M),new dV(w.T,b),new MV(w.T,L,["error"])],Z,k)}; DGC=function(w,D,M,L,Z,k,b){var C=D1(w.V.get(),D);return F_(w,C,D,new MV(w.T,Z,["normal"]),[new he(w.T,M),new dV(w.T,C),new MV(w.T,L,["error"])],k,b)}; KTk=function(w,D,M,L,Z){var k=D1(w.V.get(),D);return F_(w,k,D,new KY(w.T,M),[new he(w.T,M),new dV(w.T,k)],L,Z)}; bBS=function(w,D,M,L,Z){M=M?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var k=D1(w.V.get(),M);D=new KY(w.T,D);var b=[new iu(w.T,k)];w=[new dV(w.T,k)];return{slotId:k,slotType:M,slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:b,slotExpirationTriggers:w,lW:"core",clientMetadata:new Q7([new Nw(Z({slotId:k,slotType:M,slotPhysicalPosition:1,lW:"core",slotEntryTrigger:D,slotFulfillmentTriggers:b,slotExpirationTriggers:w}))]),adSlotLoggingData:L}}; dGI=function(w,D,M,L){var Z=D1(w.V.get(),"SLOT_TYPE_PLAYER_BYTES"),k=new Yl(w.T),b=[new RG(w.T,Z)];w=[new he(w.T,D)];return{slotId:Z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:b,slotExpirationTriggers:w,lW:"core",clientMetadata:new Q7([new Nw(L({slotId:Z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:k,slotFulfillmentTriggers:b,slotExpirationTriggers:w})),new y7({})]),adSlotLoggingData:M}}; g$C=function(w,D){return f5S(w.D5.get())?new MV(w.T,D,["normal","error","skipped"]):new MV(w.T,D,["normal"])}; n6K=function(w,D,M,L,Z){D=g$C(w,D);w=rN(w,D,M);Z=Z({slotId:w.slotId,slotType:w.slotType,slotPhysicalPosition:w.slotPhysicalPosition,slotEntryTrigger:w.slotEntryTrigger,slotFulfillmentTriggers:w.slotFulfillmentTriggers,slotExpirationTriggers:w.slotExpirationTriggers,lW:w.lW});return Z instanceof O?Z:{z1:Object.assign({},w,{clientMetadata:new Q7([new Nw(Z.layout)]),adSlotLoggingData:L}),h8:Z.h8}}; Fdr=function(w,D,M,L,Z,k,b){M=R5j(w,D,M,L);if(M instanceof O)return M;b=b({slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers,lW:M.lW});if(b instanceof O)return b;L=[new fB(TR(D)),new Nw(b.layout),new rY({ZP:w.ZP(D)})];k&&L.push(new s0({}));return{z1:{slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:ea(w, D,M.slotId,M.slotEntryTrigger),slotFulfillmentTriggers:X5(w,D,M.slotId,M.slotFulfillmentTriggers),slotExpirationTriggers:M.slotExpirationTriggers,lW:M.lW,clientMetadata:new Q7(L),adSlotLoggingData:Z},h8:b.h8}}; ea=function(w,D,M,L){return w.D5.get().fO(TR(D))?new PE(w.T,M):L}; X5=function(w,D,M,L){return w.D5.get().fO(TR(D))?[new RG(w.T,M)]:L}; rN=function(w,D,M){var L=D1(w.V.get(),"SLOT_TYPE_PLAYER_BYTES"),Z=[new iu(w.T,L)];w=[new dV(w.T,L),new he(w.T,M)];return{slotId:L,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:Z,slotExpirationTriggers:w,lW:"core"}}; R5j=function(w,D,M,L){D=nP(w,D,M,L);return D instanceof O?D:rN(w,D,M)}; CNS=function(w,D,M,L,Z,k){var b=D1(w.V.get(),"SLOT_TYPE_FORECASTING");D=nP(w,D,M,L);if(D instanceof O)return D;L=[new iu(w.T,b)];w=[new dV(w.T,b),new he(w.T,M)];return{slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:L,slotExpirationTriggers:w,lW:"core",clientMetadata:new Q7([new Nw(k({slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,lW:"core",slotEntryTrigger:D,slotFulfillmentTriggers:L,slotExpirationTriggers:w}))]),adSlotLoggingData:Z}}; icR=function(w,D,M,L,Z){var k=!D.hideCueRangeMarker;switch(D.kind){case "AD_PLACEMENT_KIND_START":return new KY(w.T,M);case "AD_PLACEMENT_KIND_MILLISECONDS":return w=zEK(D,L),w instanceof O?w:Z(w.DI,k);case "AD_PLACEMENT_KIND_END":return new Ar(w.T,M,k);default:return new O("Cannot construct entry trigger",{kind:D.kind})}}; $uK=function(w,D,M,L,Z){return icR(w,D,M,L,function(k,b){return new pUj(w.T,M,k,b,Z)})}; nP=function(w,D,M,L){return icR(w,D,M,L,function(Z,k){return new C$(w.T,M,Z,k)})}; F_=function(w,D,M,L,Z,k,b){w=[new RG(w.T,D)];return{slotId:D,slotType:M,slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:w,slotExpirationTriggers:Z,lW:"core",clientMetadata:new Q7([new Nw(b({slotId:D,slotType:M,slotPhysicalPosition:1,lW:"core",slotEntryTrigger:L,slotFulfillmentTriggers:w,slotExpirationTriggers:Z}))]),adSlotLoggingData:k}}; ojJ=function(){}; Gf=function(w,D){g.X.call(this);this.D5=w;this.T=D;this.eventCount=0;this.V=nja()()}; duS=function(w,D,M){if(D){var L=D.adLayoutLoggingData;g.SY(g.Ja(),function(){w.V!=null&&L&&g.DD("adsSeenClientLogging",{serializedAdServingDataEntry:L.serializedAdServingDataEntry})},M!=null?M:0)}}; sy=function(w,D,M,L){Gf.call(this,w,D);this.D5=w;this.Gh=M;this.context=L}; a9=function(){this.T=new Map}; vh=function(w){this.T="pending";this.V=[];this.L=[];try{w(this.D.bind(this),this.reject.bind(this))}catch(D){this.reject(D)}}; yLa=function(){var w,D;return{nK:new vh(function(M,L){w=M;D=L}), resolve:w,reject:D}}; fP=function(w){return ch(w)?w:Bh(w)?new vh(function(D,M){w.then(D,M)}):new vh(function(D){D(w)})}; qe=function(w){return new vh(function(D,M){M(w)})}; rj=function(w){try{return fP(w())}catch(D){return qe(D)}}; X_=function(w,D,M){var L=yLa(),Z=L.nK,k=L.resolve,b=L.reject;w.V.push(function(C){if(D)try{var l=D(C);k(l)}catch(E){b(E)}else k(C)}); w.L.push(function(C){if(M)try{var l=M(C);k(l)}catch(E){b(E)}else b(C)}); e6(w);return Z}; Tf=function(w,D){return X_(w,void 0,D)}; IGJ=function(w,D){X_(w,function(M){return X_(fP(D()),function(){return M})},function(M){return X_(fP(D()),function(){return qe(M)})})}; e6=function(w){if(w.T==="fulfilled"){var D=w.V;w.V=[];w.L=[];D=g.x(D);for(var M=D.next();!M.done;M=D.next())M=M.value,M(w.result)}else if(w.T==="rejected")for(D=w.L,w.V=[],w.L=[],D=g.x(D),M=D.next();!M.done;M=D.next())M=M.value,M(w.error)}; ut=function(w,D){return UuK(D.call(w))}; S6=function(w){return function M(){return qk(M,function(L){if(L.T==1)return g.gR(L,2),g.c(L,{nK:fP(w)},4);if(L.T!=2)return L.return(L.V);g.vr(L);return g.cr(L,0)})}()}; UuK=function(w){return rj(function(){return QM(w,w.next())})}; QM=function(w,D){return D.done?fP(D.value):Tf(X_(D.value.nK,function(M){return QM(w,w.next(M))}),function(M){return QM(w,w.throw(M))})}; Jj=function(w,D){if(w.length===0)return fP(NaN);var M=yLa(),L=M.nK,Z=M.resolve,k=w.length;w=g.x(w.entries());var b=w.next();for(M={};!b.done;M={ZU:void 0},b=w.next()){var C=g.x(b.value);b=C.next().value;C=C.next().value;M.ZU=b;IGJ(C,function(l){return function(){L.T==="pending"&&(xuk(D)&&D(l.ZU)&&L.T==="pending"?Z(l.ZU):(--k,k===0&&Z(NaN)))}}(M))}return L}; zf=function(w){return w.map(function(D){return fP(D)})}; Ph=function(w){var D=w.hours||0;var M=w.minutes||0,L=w.seconds||0;D=L+M*60+D*3600+(w.days||0)*86400+(w.weeks||0)*604800+(w.months||0)*2629800+(w.years||0)*31557600;D<=0?D={hours:0,minutes:0,seconds:0}:(w=D,D=Math.floor(w/3600),w%=3600,M=Math.floor(w/60),L=Math.floor(w%60),D={hours:D,minutes:M,seconds:L});var Z=D.hours===void 0?0:D.hours;M=D.minutes===void 0?0:D.minutes;w=D.seconds===void 0?0:D.seconds;L=Z>0;D=[];if(L){Z=(new Intl.NumberFormat("en-u-nu-latn")).format(Z);var k=["fr"],b="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(" "); Z="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(VM)?Z.replace(",","\u00a0"):k.includes(VM)?Z.replace(",","\u202f"):b.includes(VM)?Z.replace(",","."):Z;D.push(Z)}L=L===void 0?!1:L;M=(["af","be","lt"].includes(VM)||L)&&M<10?N9T().format(M):(new Intl.NumberFormat("en-u-nu-latn")).format(M);D.push(M);M=N9T().format(w);D.push(M);M=":";"da fi id si sr sr-Latn".split(" ").includes(VM)&&(M=".");return D.join(M)}; N9T=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; HcI=function(w,D){var M,L;w=((M=w.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(L=M.videoAuthorizationToken)==null?void 0:L.credentialTransferTokens)||[];for(M=0;MD;w=M}else w=!1;return w}; g.pA=function(w,D){return w.le+"timedtext_video?ref=player&v="+D.videoId}; g.T9J=function(w){var D=this;this.videoData=w;w={};this.T=(w.c1a=function(){var M=[];if(g.lh.isInitialized()){var L="";D.videoData&&D.videoData.cw&&(L=D.videoData.cw+("&r1b="+D.videoData.clientPlaybackNonce));var Z={};L=(Z.atr_challenge=L,Z);RA("bg_v",void 0,"player_att");(L=XIr(L))?(RA("bg_s",void 0,"player_att"),M.push("r1a="+L)):(RA("bg_e",void 0,"player_att"),M.push("r1c=2"))}else RA("bg_e",void 0,"player_att"),window.trayride||window.botguard?M.push("r1c=1"):M.push("r1c=4");M.push("r1d="+g.lh.getState()); return M.join("&")},w.c6a=function(M){return"r6a="+(Number(M.c)^Qz())},w.c6b=function(M){return"r6b="+(Number(M.c)^Number(g.Xg("CATSTAT",0)))},w); this.videoData&&this.videoData.cw?this.g2=PP(this.videoData.cw):this.g2={}}; g.u8K=function(w){if(w.videoData&&w.videoData.cw){for(var D=[w.videoData.cw],M=g.x(Object.keys(w.T)),L=M.next();!L.done;L=M.next())L=L.value,w.g2[L]&&w.T[L]&&(L=w.T[L](w.g2))&&D.push(L);return D.join("&")}return null}; g.WO=function(w,D){emC(w,{Nz9:g.A3(D.experiments,"bg_vm_reinit_threshold"),cspNonce:D.cspNonce,le:D.le||""})}; STR=function(){var w=XMLHttpRequest.prototype.fetch;return!!w&&w.length===3}; Q2G=function(w){w=w[Y[46]](Y[16]);h$[Y[66]](w,40);h$[Y[85]](w,68);h$[Y[66]](w,38);h$[Y[21]](w,1);h$[Y[66]](w,18);h$[Y[85]](w,41);h$[Y[66]](w,62);h$[Y[21]](w,2);return w[Y[32]](Y[16])}; zmR=function(w){JLJ=2592E3*(w||1)}; t$=function(w){w=w===void 0?JLJ:w;if(w>0&&!(QcK()>(0,g.IC)()-w*1E3))return 0;w=g.Rj("yt-player-quality");if(typeof w==="string"){if(w=g.c_[w],w>0)return w}else if(w instanceof Object)return w.quality;return 0}; $z=function(){var w=g.Rj("yt-player-proxima-pref");return w==null?null:w}; VpT=function(){var w=g.Rj("yt-player-quality");if(w instanceof Object&&w.quality&&w.previousQuality){if(w.quality>w.previousQuality)return 1;if(w.quality0&&D[0]?w.getAutoplayPolicy(D[0]):w.getAutoplayPolicy("mediaelement");if(MHr[M])return MHr[M]}}catch(L){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Na=function(w){return w.M5||w.ou||w.mutedAutoplay}; LYx=function(w,D){return Na(w)?D!==1&&D!==2&&D!==0?"AUTOPLAY_STATUS_UNAVAILABLE":w.E5?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; ZlG=function(w,D,M){var L=D.X();w.thirdParty||(w.thirdParty={});L.ancestorOrigins&&(w.thirdParty.embeddedPlayerContext=Object.assign({},w.thirdParty.embeddedPlayerContext,{ancestorOrigins:L.ancestorOrigins}));L.C("embeds_enable_autoplay_and_visibility_signals")&&(L.Z9!=null&&(w.thirdParty.embeddedPlayerContext=Object.assign({},w.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(L.Z9)})),L.PX&&(w.thirdParty.embeddedPlayerContext=Object.assign({},w.thirdParty.embeddedPlayerContext,{visibilityFractionSource:L.PX})), w.thirdParty.embeddedPlayerContext=Object.assign({},w.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:xz(),autoplayIntended:Na(D),autoplayStatus:LYx(D,M)}))}; kxK=function(w){var D=[];w=g.x(w.split(","));for(var M=w.next();!M.done;M=w.next()){var L=M.value;L&&((M=L.startsWith("!"))&&(L=L.substring(1)),L=L.split("-"),L.length<3||D.push({XY:L[0],platform:L[1],deviceVersion:L[2],Zn:M}))}return D}; CHK=function(w){return kxK(w).map(function(D){return{deviceInterface:blr[Ysl[D.XY]]||0,deviceVersion:D.deviceVersion||"",isSleeping:D.Zn}})}; g.HO=function(w,D){this.id=w;this.dW=D;this.captionTracks=[];this.L=this.D=null;this.xtags="";this.W=!1;this.T=null;this.V="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";w=this.dW.id.split(".");w.length>1&&(this.W=w[1]==="2")}; j_=function(w,D,M,L,Z){this.V=w;this.T=D;this.L=M;this.reason=L;this.sL=Z===void 0?0:Z}; g.gf=function(w,D,M,L){return new j_(g.c_[w]||0,g.c_[D]||0,M,L)}; oh=function(w){if(Rh&&w.sL)return!1;var D=g.c_.auto;return w.V===D&&w.T===D}; FY=function(w){return nA[w.T||w.V]||"auto"}; l1x=function(w,D){D=g.c_[D];return w.V<=D&&(!w.T||w.T>=D)}; Ga=function(w){return"["+w.V+"-"+w.T+", override: "+(w.L+", reason: "+w.reason+"]")}; sp=function(w,D,M,L){this.videoInfos=w;this.T=D;this.audioTracks=[];this.V=L||[];if(this.T){w=new Set;M==null||M({ainfolen:this.T.length});D=g.x(this.T);for(L=D.next();!L.done;L=D.next())if(L=L.value,!L.dW||w.has(L.dW.id)){var Z=void 0,k=void 0,b=void 0;(b=M)==null||b({atkerr:!!L.dW,itag:L.itag,xtag:L.T,lang:((Z=L.dW)==null?void 0:Z.name)||"",langid:((k=L.dW)==null?void 0:k.id)||""})}else Z=new g.HO(L.id,L.dW),w.add(L.dW.id),this.audioTracks.push(Z);M==null||M({atklen:this.audioTracks.length})}}; ah=function(){g.X.apply(this,arguments);this.T=null}; hqK=function(w,D,M,L,Z,k,b){if(w.T)return w.T;var C={},l=new Set,E={};if(vO(L)){for(var p in L.T)L.T.hasOwnProperty(p)&&(w=L.T[p],E[w.info.RJ]=[w.info]);return E}p=E3I(D,L,C);k&&Z({aftsrt:cO(p)});for(var W={},h=g.x(Object.keys(p)),t=h.next();!t.done;t=h.next()){t=t.value;for(var d=g.x(p[t]),N=d.next();!N.done;N=d.next()){N=N.value;var n=N.itag,v=void 0,G=t+"_"+(((v=N.video)==null?void 0:v.fps)||0);W.hasOwnProperty(G)?W[G]===!0?E[t].push(N):C[n]=W[G]:(v=BO(D,N,M,L.isLive,l),v!==!0?(b.add(t),C[n]=v, v==="disablevp9hfr"&&(W[G]="disablevp9hfr")):(E[t]=E[t]||[],E[t].push(N),W[G]=!0))}}k&&Z({bfflt:cO(E)});for(var f in E)E.hasOwnProperty(f)&&(L=f,E[L]&&E[L][0].GC()&&(E[L]=E[L],E[L]=pSC(D,E[L],C),E[L]=WYK(E[L],C)));k&&Object.keys(C).length>0&&Z({rjr:pH(C)});D=g.x(l.values());for(L=D.next();!L.done;L=D.next())(L=M.D.get(L.value))&&--L.z2;k&&Z({aftflt:cO(E)});w.T=g.Ax(E,function(e){return!!e.length}); return w.T}; $0K=function(w,D,M,L,Z,k,b,C){C=C===void 0?!1:C;if(D.UV&&b&&b.length>1&&!(D.rK>0||D.U)){for(var l=D.V||!!Z,E=l&&D.wW?k:void 0,p=E3I(D,L),W=[],h=[],t={},d=0;d0&&t&&h&&(p=[b,M],e=h.concat(t).filter(function(S){return S})); if(e.length&&!D.oV){rf(e,p);if(l){l=[];D=g.x(e);for(L=D.next();!L.done;L=D.next())l.push(L.value.itag);k({hbdfmt:l.join(".")})}return gz(new sp(e,Z,E,w))}e=g3N(D);e=g.y1(e,C);if(!e){if(W[b])return k=W[b],rf(k),gz(new sp(k,Z,E,w));l&&k({novideo:1});return jJ()}D.Qi&&(e==="1"||e==="1h")&&W[M]&&(b=e_(W[e]),p=e_(W[M]),p>b?e=M:p===b&&Rqx(W[M])&&(e=M));e==="9"&&W.h&&e_(W.h)>e_(W["9"])&&(e="h");D.TU&&L.isLive&&e==="("&&W.H&&e_(W["("])<1440&&(e="H");l&&k({vfmly:XY(e)});D=W[e];if(!D.length)return l&&k({novfmly:XY(e)}), jJ();rf(D);return gz(new sp(D,Z,E,w))}; d0K=function(w,D){var M=!(!w.m&&!w.M),L=!(!w.mac3&&!w.MAC3),Z=!(!w.meac3&&!w.MEAC3);w=!(!w.i&&!w.I);D.k6=w;return M||L||Z||w}; Rqx=function(w){w=g.x(w);for(var D=w.next();!D.done;D=w.next())if(D=D.value,D.itag&&o3K.has(D.itag))return!0;return!1}; I1G=function(w){w=g.x(w);for(var D=w.next();!D.done;D=w.next())if(D.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; XY=function(w){switch(w){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return w}}; cO=function(w){var D=[],M;for(M in w)if(w.hasOwnProperty(M)){var L=M;D.push(XY(L));L=g.x(w[L]);for(var Z=L.next();!Z.done;Z=L.next())D.push(Z.value.itag)}return D.join(".")}; ilG=function(w,D,M,L,Z,k){var b={},C={};g.mr(D,function(l,E){l=l.filter(function(p){var W=p.itag;if(!p.f6)return C[W]="noenc",!1;if(k.GU&&p.RJ==="(h"&&k.mu)return C[W]="lichdr",!1;if(!w.W&&p.RJ==="1e")return C[W]="noav1enc",!1;if(p.RJ==="("||p.RJ==="(h"){if(w.L&&M&&M.flavor==="widevine"){var h=p.mimeType+"; experimental=allowed";(h=!!p.f6[M.flavor]&&!!M.T[h])||(C[W]=p.f6[M.flavor]?"unspt":"noflv");return h}if(!Ta(w,uh.CRYPTOBLOCKFORMAT)&&!w.W_||w.nV)return C[W]=w.nV?"disvp":"vpsub",!1}return M&&p.f6[M.flavor]&& M.T[p.mimeType]?!0:(C[W]=M?p.f6[M.flavor]?"unspt":"noflv":"nosys",!1)}); l.length&&(b[E]=l)}); L&&Object.entries(C).length&&Z({rjr:pH(C)});return b}; WYK=function(w,D){var M=Ui(w,function(L,Z){return Z.video.fps>32?Math.min(L,Z.video.width):L},Infinity); M32||L.video.widthw.Y)return"max"+w.Y;if(w.EL&&D.RJ==="h"&&D.video&&D.video.qualityOrdinal>1080)return"blkhigh264";if(D.RJ==="(h"&&!M.G)return"enchdr";if((L===void 0?0:L)&&JF(D)&&!w.Jc)return"blk51live";if((D.RJ==="MAC3"||D.RJ==="mac3")&&!w.D)return"blkac3";if((D.RJ==="MEAC3"||D.RJ==="meac3")&&!w.W)return"blkeac3";if(D.RJ==="M"||D.RJ==="m")return"blkaac51"; if((D.RJ==="so"||D.RJ==="sa")&&!w.y7)return"blkamb";if(!w.GU&&GNK(D)&&(!M.W||D.RJ!=="1e"))return"cbc";if(!M.W&&GNK(D)&&D.RJ==="1e")return"cbcav1";if((D.RJ==="i"||D.RJ==="I")&&!w.NC)return"blkiamf";var k;if(w.Sb&&((k=D.audio)==null?void 0:k.V)===!0)return"blkvbcabr";var b,C;if(w.bW&&(D.RJ==="1"||D.RJ==="1h"||M.W&&D.RJ==="1e")&&((b=D.video)==null?0:b.qualityOrdinal)&&((C=D.video)==null?void 0:C.qualityOrdinal)>w.bW)return"av1cap";L=M.D.get(D.RJ);if(!w.oO&&L&&L.z2>0)return Z.add(D.RJ),"byerr";var l; if((l=D.video)==null?0:l.fps>32){if(!M.c_&&!Ta(M,uh.FRAMERATE))return"capHfr";if(w.Nd&&D.video.qualityOrdinal>=4320)return"blk8khfr";if(Xt(D)&&w.yF&&D.f6&&D.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(w.sL&&D.sL>w.sL)return"ratecap";if(w.nV>0&&D.GC()&&D.video.height>w.nV)return"mvhcap";w=n3x(M,D);return w!==!0?w:!0}; rf=function(w,D){D=D===void 0?[]:D;g.Jx(w,function(M,L){var Z=L.sL-M.sL;if(!M.GC()||!L.GC())return Z;var k=L.video.height*L.video.width-M.video.height*M.video.width;!k&&D&&D.length>0&&(M=D.indexOf(M.RJ)+1,L=D.indexOf(L.RJ)+1,k=M===0||L===0?L||-1:M-L);k||(k=Z);return k})}; g.S_=function(w,D){this[Y[51]]=w;this[Y[58]]=D===void 0?!1:D;this[Y[5]]=this[Y[25]]=this[Y[12]]=Y[16];this[Y[18]]={};this[Y[43]]=Y[16]}; J$=function(w){Qu(w);return w[Y[5]]}; za=function(w){return w[Y[51]]?w[Y[51]][Y[64]](Y[78]):w[Y[12]]===Y[78]}; FYT=function(w){Qu(w);return g.DY(w[Y[18]],function(D){return D!==null})}; Vu=function(w){Qu(w);var D=decodeURIComponent(w[Y[22]](Y[67])||Y[16])[Y[46]](Y[29]);return w[Y[25]]===Y[48]&&D[Y[26]]>1&&!!D[1]}; PO=function(w,D){D=D===void 0?!1:D;Qu(w);if(w[Y[25]]!==Y[48]){var M=w[Y[23]]();M[Y[38]](Y[49],Y[0]);return M}var L=w[Y[65]]();M=new g.Au(L);var Z=w[Y[22]](Y[47]),k=decodeURIComponent(w[Y[22]](Y[67])||Y[16])[Y[46]](Y[29]);if(Z&&k&&k[Y[26]]>1&&k[1])return L=M.T,w=L[Y[76]](/^[^.]*/,Y[16]),g.Df(M,(L[Y[17]](Y[1])===0?Y[1]:Y[93])+Z+Y[90]+k[1]+w),M=new g.S_(M[Y[6]]()),M[Y[38]](Y[14],Y[0]),M;if(D)return M=w[Y[23]](),M[Y[38]](Y[14],Y[0]),M;Z=M.T[Y[81]](Y[54]);M.T[Y[81]](Y[59])?(g.Df(M,Y[71]),L=M[Y[6]]()): M.T[Y[81]](Y[7])?(g.Df(M,Y[19]),L=M[Y[6]]()):(M=xmx(L),r9(M)&&(L=M));M=new g.S_(L);M[Y[38]](Y[68],Y[0]);Z&&M[Y[38]](Y[75],Y[15]);return M}; Qu=function(w){if(w[Y[51]]){if(!(r9(w[Y[51]])||w[Y[51]][Y[64]](Y[78])||w[Y[51]][Y[64]](Y[44])||w[Y[51]][Y[64]](Y[63])))throw new g.qA(Y[9],w[Y[51]]);var D=g.Co(w[Y[51]]);w[Y[12]]=D.W;w[Y[5]]=D.T+(D.L!=null?Y[13]+D.L:Y[16]);var M=D.V;if(M[Y[64]](Y[48]))w[Y[25]]=Y[48],M=M[Y[35]](14);else if(M[Y[64]](Y[57]))w[Y[25]]=Y[57],M=M[Y[35]](13);else if(M[Y[64]](Y[95])){var L=M[Y[17]](Y[60],12),Z=M[Y[17]](Y[60],L+1);L>0&&Z>0?(w[Y[25]]=M[Y[35]](0,Z),M=M[Y[35]](Z+1)):(w[Y[25]]=M,M=Y[16])}else w[Y[25]]=M,M=Y[16]; L=w[Y[18]];w[Y[18]]=GxI(M);Object[Y[24]](w[Y[18]],sHK(D.D.toString()));Object[Y[24]](w[Y[18]],L);w[Y[18]][Y[86]]===Y[92]&&(delete w[Y[18]][Y[86]],w[Y[25]]+=Y[82]);w[Y[51]]=Y[16];w[Y[43]]=Y[16];w[Y[58]]&&(Qu(w),D=w[Y[18]][Y[45]]||null)&&(D=a1N[0](D),w[Y[38]](Y[45],D))}}; v3G=function(w){Qu(w);var D=w[Y[12]]+(w[Y[12]]?Y[50]:Y[73])+w[Y[5]]+w[Y[25]];if(FYT(w)){var M=[];g.mr(w[Y[18]],function(L,Z){L!==null&&M[Y[10]](Z+Y[42]+L)}); D+=Y[33]+M[Y[32]](Y[2])}return D}; GxI=function(w){w=w[Y[46]](Y[60]);var D=0;w[0]||D++;for(var M={};D0?cNK(D,L[Y[35]](0,Z),L[Y[35]](Z+1)):L&&(D[L]=Y[16])}return D}; cNK=function(w,D,M){if(D===Y[84]){var L;(L=M[Y[17]](Y[42]))>=0?(D=Y[69]+M[Y[35]](0,L),M=M[Y[35]](L+1)):(L=M[Y[17]](Y[96]))>=0&&(D=Y[69]+M[Y[35]](0,L),M=M[Y[35]](L+3))}w[D]=M}; Op=function(w){var D=g.Q(w,BAN)||w[Y[36]];w={sz:!1,QI:Y[16],GA:Y[16],s:Y[16]};if(!D)return w;D=PP(D);w[Y[41]]=!0;w[Y[83]]=D[Y[43]];w[Y[77]]=D[Y[4]];w[Y[79]]=D[Y[79]];return w}; KA=function(w,D,M,L,Z,k,b,C,l){this.g9=w;this.startTime=D;this.duration=M;this.ingestionTime=L;this.sourceURL=Z;this.Pr=l;this.endTime=D+M;this.T=b||0;this.range=k||null;this.pending=C||!1;this.Pr=l||null}; g.m2=function(){this.segments=[];this.T=null;this.V=!0;this.L=""}; f1C=function(w,D){if(D>w.EV())w.segments=[];else{var M=d3(w.segments,function(L){return L.g9>=D},w); M>0&&w.segments.splice(0,M)}}; A$=function(w,D,M,L,Z){Z=Z===void 0?!1:Z;this.data=w;this.offset=D;this.size=M;this.type=L;this.T=(this.V=Z)?0:8;this.dataOffset=this.offset+this.T}; wr=function(w){var D=w.data.getUint8(w.offset+w.T);w.T+=1;return D}; DC=function(w){var D=w.data.getUint16(w.offset+w.T);w.T+=2;return D}; MN=function(w){var D=w.data.getInt32(w.offset+w.T);w.T+=4;return D}; Ld=function(w){var D=w.data.getUint32(w.offset+w.T);w.T+=4;return D}; ZC=function(w){var D=w.data;var M=w.offset+w.T;D=D.getUint32(M)*4294967296+D.getUint32(M+4);w.T+=8;return D}; kZ=function(w,D){D=D===void 0?NaN:D;if(isNaN(D))var M=w.size;else for(M=w.T;M1?Math.ceil(Z*D):Math.floor(Z*D))}w.skip(1);M=wr(w)<<16|DC(w);if(M&256){L=M&1;Z=M&4;var k=M&512,b=M&1024,C=M&2048;M=Ld(w);L&&w.skip(4);Z&&w.skip(4);L=(k?4:0)+(b?4:0)+(C?4:0);for(Z=0;Z1?Math.ceil(b*D):Math.floor(b*D)),w.skip(L)}}}; ho=function(w){w=new DataView(w.buffer,w.byteOffset,w.byteLength);return(w=g.pd(w,0,1836476516))?g.WM(w):NaN}; PHj=function(w){var D=g.pd(w,0,1937011556);if(!D)return null;D=to(w,D.dataOffset+8,1635148593)||to(w,D.dataOffset+8,1635135537);if(!D)return null;var M=to(w,D.dataOffset+78,1936995172),L=to(w,D.dataOffset+78,1937126244);if(!L)return null;D=null;if(M)switch(M.skip(4),wr(M)){default:D=0;break;case 1:D=2;break;case 2:D=1;break;case 3:D=255}var Z=M=null,k=null;if(L=to(w,L.dataOffset,1886547818)){var b=to(w,L.dataOffset,1886546020),C=to(w,L.dataOffset,2037673328);if(!C&&(C=to(w,L.dataOffset,1836279920), !C))return null;b&&(b.skip(4),M=MN(b)/65536,k=MN(b)/65536,Z=MN(b)/65536);w=qsN(C);w=new DataView(w.buffer,w.byteOffset+8,w.byteLength-8);return new zqJ(D,M,k,Z,w)}return null}; to=function(w,D,M){for(;$Z(w,D);){var L=i2(w,D);if(L.type===M)return L;D+=L.size}return null}; g.pd=function(w,D,M){for(;$Z(w,D);){var L=i2(w,D);if(L.type===M)return L;D=dr(L.type)?D+8:D+L.size}return null}; g.yl=function(w){if(w.data.getUint8(w.dataOffset)){var D=w.data;w=w.dataOffset+4;D=D.getUint32(w)*4294967296+D.getUint32(w+4)}else D=w.data.getUint32(w.dataOffset+4);return D}; i2=function(w,D){var M=w.getUint32(D),L=w.getUint32(D+4);return new A$(w,D,M,L)}; g.WM=function(w){var D=w.data.getUint8(w.dataOffset)?20:12;return w.data.getUint32(w.dataOffset+D)}; Oll=function(w){w=new A$(w.data,w.offset,w.size,w.type,w.V);var D=wr(w);w.skip(7);var M=Ld(w);if(D===0){D=Ld(w);var L=Ld(w)}else D=ZC(w),L=ZC(w);w.skip(2);for(var Z=DC(w),k=[],b=[],C=0;C122)return!1}return!0}; dr=function(w){return w===1701082227||w===1836019558||w===1836019574||w===1835297121||w===1835626086||w===1937007212||w===1953653094||w===1953653099||w===1836475768}; KYS=function(w){w.skip(4);return{VWW:kZ(w,0),value:kZ(w,0),timescale:Ld(w),FW_:Ld(w),eventDuration:Ld(w),id:Ld(w),Kg:kZ(w),offset:w.offset}}; g.m0l=function(w){var D=to(w,0,1701671783);if(!D)return null;var M=KYS(D),L=M.VWW;M=EY(M.Kg);if(w=to(w,D.offset+D.size,1701671783))if(w=KYS(w),w=EY(w.Kg),M&&w){D=g.x(Object.keys(w));for(var Z=D.next();!Z.done;Z=D.next())Z=Z.value,M[Z]=w[Z]}return M?new l2(M,L):null}; Ib=function(w,D){for(var M=to(w,0,D);M;){var L=M;L.type=1936419184;L.data.setUint32(L.offset+4,1936419184);M=to(w,M.offset+M.size,D)}}; g.UY=function(w,D){for(var M=0,L=[];$Z(w,M);){var Z=i2(w,M);Z.type===D&&L.push(Z);M=dr(Z.type)?M+8:M+Z.size}return L}; ANT=function(w,D){var M=g.pd(w,0,1937011556),L=g.pd(w,0,1953654136);if(!M||!L||w.getUint32(M.offset+12)>=2)return null;var Z=new DataView(D.buffer,D.byteOffset,D.length),k=g.pd(Z,0,1937011556);if(!k)return null;D=Z.getUint32(k.dataOffset+8);L=Z.getUint32(k.dataOffset+12);if(L!==1701733217&&L!==1701733238)return null;L=new rNS(w.byteLength+D);b2(L,w,0,M.offset+12);L.data.setInt32(L.offset,2);L.offset+=4;b2(L,w,M.offset+16,M.size-16);b2(L,Z,Z.byteOffset+k.dataOffset+8,D);b2(L,w,M.offset+M.size,w.byteLength- (M.offset+M.size));M=g.x([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(Z=M.next();!Z.done;Z=M.next())Z=g.pd(w,0,Z.value),L.data.setUint32(Z.offset,Z.size+D);w=g.pd(L.data,0,1953654136);L.data.setUint32(w.offset+16,2);return L.data}; w_l=function(w){var D=g.pd(w,0,1937011556);if(!D)return null;var M=w.getUint32(D.dataOffset+12);if(M!==1701733217&&M!==1701733238)return null;D=to(w,D.offset+24+(M===1701733217?28:78),1936289382);if(!D)return null;M=to(w,D.offset+8,1935894637);if(!M||w.getUint32(M.offset+12)!==1667392371)return null;D=to(w,D.offset+8,1935894633);if(!D)return null;D=to(w,D.offset+8,1952804451);if(!D)return null;M=new Uint8Array(16);for(var L=0;L<16;L++)M[L]=w.getInt8(D.offset+16+L);return M}; xZ=function(w,D){this.T=w;this.pos=0;this.start=D||0}; NN=function(w){return w.pos>=w.T.byteLength}; ob=function(w,D,M){var L=new xZ(M);if(!HM(L,w))return!1;L=jv(L);if(!gr(L,D))return!1;for(w=0;D;)D>>>=8,w++;D=L.start+L.pos;var Z=Rb(L,!0);L=w+(L.start+L.pos-D)+Z;L=L>9?D$R(L-9,8):D$R(L-2,1);w=D-w;M.setUint8(w++,236);for(D=0;DM;Z++)M=M*256+ab(w),L*=128;return D?M-L:M}; Fx=function(w){var D=Rb(w,!0);w.pos+=D}; ZHK=function(w){if(!gr(w,440786851,!0))return null;var D=w.pos;Rb(w,!1);var M=Rb(w,!0)+w.pos-D;w.pos=D+M;if(!gr(w,408125543,!1))return null;Rb(w,!0);if(!gr(w,357149030,!0))return null;var L=w.pos;Rb(w,!1);var Z=Rb(w,!0)+w.pos-L;w.pos=L+Z;if(!gr(w,374648427,!0))return null;var k=w.pos;Rb(w,!1);var b=Rb(w,!0)+w.pos-k,C=new Uint8Array(M+12+Z+b),l=new DataView(C.buffer);C.set(new Uint8Array(w.T.buffer,w.T.byteOffset+D,M));l.setUint32(M,408125543);l.setUint32(M+4,33554431);l.setUint32(M+8,4294967295); C.set(new Uint8Array(w.T.buffer,w.T.byteOffset+L,Z),M+12);C.set(new Uint8Array(w.T.buffer,w.T.byteOffset+k,b),M+12+Z);return C}; vM=function(w){var D=w.pos;w.pos=0;var M=1E6;HM(w,[408125543,357149030,2807729])&&(M=nd(w));w.pos=D;return M}; kwJ=function(w,D){var M=w.pos;w.pos=0;if(w.T.getUint8(w.pos)!==160&&!cM(w)||!gr(w,160))return w.pos=M,NaN;Rb(w,!0);var L=w.pos;if(!gr(w,161))return w.pos=M,NaN;Rb(w,!0);ab(w);var Z=ab(w)<<8|ab(w);w.pos=L;if(!gr(w,155))return w.pos=M,NaN;L=nd(w);w.pos=M;return(Z+L)*D/1E9}; cM=function(w){if(!bHG(w)||!gr(w,524531317))return!1;Rb(w,!0);return!0}; bHG=function(w){if(w.Ad()){if(!gr(w,408125543))return!1;Rb(w,!0)}return!0}; HM=function(w,D){for(var M=0;M0){var L=sHK(D.substring(M+1));g.mr(L,function(Z,k){this.set(k,Z)},w); D=D.substring(0,M)}D=GxI(D);g.mr(D,function(Z,k){this.set(k,Z)},w)}; CMS=function(w){var D=w.BH.M8(),M=[];g.mr(w.T,function(Z,k){M.push(k+"="+Z)}); if(!M.length)return D;var L=M.join("&");w=FYT(w.BH)?"&":"?";return D+w+L}; fd=function(w,D){var M=new g.S_(D);(D=M.get("req_id"))&&w.set("req_id",D);g.mr(w.T,function(L,Z){M["set"](Z,null)}); return M}; lTj=function(){this.D=this.L=this.T=this.timedOut=this.started=this.W=this.V=0}; qN=function(w){w.W=(0,g.IC)();w.started=0;w.timedOut=0;w.T=0}; rr=function(w,D){var M=w.started+w.T*4;D&&(M+=w.L);M=Math.max(0,M-3);return Math.pow(1.6,M)}; ev=function(w,D){w[D]||(w[D]=new lTj);return w[D]}; Xx=function(w){this.B=this.G=this.W=this.L=0;this.U=this.Y=!1;this.T=w;this.V=w.clone()}; EMl=function(w,D,M){if(za(w.T))return!1;var L=ev(M,J$(w.T));if(L.timedOut<1&&L.T<1)return!1;L=L.timedOut+L.T;w=Tn(w,D);M=ev(M,J$(w));return M.timedOut+M.T+01?D=D.Kr:(M=ev(M,Sv(w,w.zV(D,M),D)),D=Math.max(w.W,M.timedOut)+D.oY*(w.L-w.W)+.25*w.G,D=D>3?1E3*Math.pow(1.6,D-3):0);return D===0?!0:w.B+D<(0,g.IC)()}; p_R=function(w,D,M){w.T.set(D,M);w.V.set(D,M);w.D&&w.D.set(D,M)}; W$j=function(w,D,M,L,Z){++w.L;D&&++w.W;J$(M.BH).startsWith("redirector.")&&(w.T=w.V.clone(),delete w.D,L.uw&&delete Z[J$(w.T)])}; Jo=function(w){return w?(w.itag||"")+";"+(w.lmt||0)+";"+(w.xtags||""):""}; zn=function(w,D,M,L){this.initRange=M;this.indexRange=L;this.T=null;this.L=!1;this.Y=0;this.D=this.LZ=this.V=null;this.info=D;this.Zv=new Xx(w)}; Vl=function(w,D){this.start=w;this.end=D;this.length=D-w+1}; PM=function(w){w=w.split("-");var D=Number(w[0]),M=Number(w[1]);if(!isNaN(D)&&!isNaN(M)&&w.length===2&&(w=new Vl(D,M),!isNaN(w.start)&&!isNaN(w.end)&&!isNaN(w.length)&&w.length>0))return w}; OY=function(w,D){return new Vl(w,w+D-1)}; hHC=function(w){return w.end==null?{start:String(w.start)}:{start:String(w.start),end:String(w.end)}}; Kd=function(w){if(!w)return new Vl(0,0);var D=Number(w.start);w=Number(w.end);if(!isNaN(D)&&!isNaN(w)&&(D=new Vl(D,w),D.length>0))return D}; m6=function(w,D,M,L,Z,k,b,C,l,E,p,W){L=L===void 0?"":L;this.type=w;this.T=D;this.range=M;this.source=L;this.mw=p;this.clipId=W===void 0?"":W;this.B=[];this.G="";this.g9=-1;this.y7=0;this.G=L;this.g9=Z>=0?Z:-1;this.startTime=k||0;this.duration=b||0;this.V=C||0;this.L=l>=0?l:this.range?this.range.length:NaN;this.D=this.range?this.V+this.L===this.range.length:E===void 0?!!this.L:E;this.range?(this.W=this.startTime+this.duration*this.V/this.range.length,this.U=this.duration*this.L/this.range.length,this.Y= this.W+this.U):tla(this)}; tla=function(w){w.W=w.startTime;w.U=w.duration;w.Y=w.W+w.U}; $$x=function(w,D,M){var L=!(!D||D.T!==w.T||D.type!==w.type||D.g9!==w.g9);return M?L&&!!D&&(w.range&&D.range?D.range.end===w.range.end:D.range===w.range)&&D.V+D.L===w.V+w.L:L}; Ao=function(w){return w.type===1||w.type===2}; wg=function(w){return w.type===3||w.type===6}; Dy=function(w,D){return w.T===D.T?w.range&&D.range?w.range.start+w.V+w.L===D.range.start+D.V:w.g9===D.g9?w.V+w.L===D.V:w.g9+1===D.g9&&D.V===0&&w.D:!1}; d$C=function(w,D){return w.g9!==D.g9&&D.g9!==w.g9+1||w.type!==D.type?!1:Dy(w,D)?!0:Math.abs(w.W-D.W)<=1E-6&&w.g9===D.g9?!1:iHG(w,D)}; iHG=function(w,D){return Dy(w,D)||Math.abs(w.Y-D.W)<=1E-6||w.g9+1===D.g9&&D.V===0&&w.D?!0:!1}; MH=function(w){return w.g9+(w.D?1:0)}; yFr=function(w){w.length===1||g.IJ(w,function(M){return!!M.range}); for(var D=1;D=D.range.start+D.V&&w.range.start+w.V+w.L<=D.range.start+D.V+D.L:w.g9===D.g9&&w.V>=D.V&&(w.V+w.L<=D.V+D.L||D.D)}; gMS=function(w,D){return w.T!==D.T?!1:w.type===4&&D.type===3&&w.T.Gk()?(w=w.T.IM(w),uX(w,function(M){return gMS(M,D)})):w.g9===D.g9&&!!D.L&&D.V+D.L>w.V&&D.V+D.L<=w.V+w.L}; Zy=function(w,D){var M=D.g9;w.G="updateWithSegmentInfo";w.g9=M;if(w.startTime!==D.startTime||w.duration!==D.duration)w.startTime=D.startTime+0,w.duration=D.duration,tla(w)}; kg=function(w,D){var M=this;this.uW=w;this.D=this.T=null;this.W=this.JY=NaN;this.zV=this.requestId=null;this.Bz={ZbE:function(){return M.range}}; this.Zv=w[0].T.Zv;this.V=D||"";this.uW[0].range&&this.uW[0].L>0&&(ITI(w)?(this.range=yFr(w),this.L=this.range.length):(this.range=this.uW[this.uW.length-1].range,this.L=U$N(w)))}; bc=function(w){return!Ao(w.uW[w.uW.length-1])}; Yg=function(w){return w.uW[w.uW.length-1].type===4}; g.Cr=function(w,D,M){M=w.zV===null?w.Zv.zV(D,M,w.uW[0].type):w.zV;if(w.T){D=M?PO(w.T,D.Jd):w.T;var L=new BM(D);L.get("alr")||L.set("alr","yes");w.V&&YUj(L,w.V)}else/http[s]?:\/\//.test(w.V)?L=new BM(new g.S_(w.V)):(L=u2(w.Zv,M,D),w.V&&YUj(L,w.V));(D=w.range)?L.set("range",D.toString()):w.uW[0].T.cM()&&w.uW.length===1&&w.uW[0].V&&L.set("range",w.uW[0].V+"-");w.requestId&&L.set("req_id",w.requestId);isNaN(w.JY)||L.set("headm",w.JY.toString());isNaN(w.W)||L.set("mffa",w.W+"ms");w.urlParams&&g.mr(w.urlParams, function(Z,k){L.set(k,Z)}); return L}; RHG=function(w){if(w.range)return w.L;w=w.uW[0];return Math.round(w.U*w.T.info.sL)}; oMK=function(w,D){return Math.max(0,w.uW[0].W-D)}; lc=function(w,D,M,L,Z,k){k=k===void 0?0:k;zn.call(this,w,D,L,void 0);this.W=M;this.y8=k;this.index=Z||new g.m2}; nMJ=function(w,D,M,L,Z){this.g9=w;this.startSecs=D;this.x6=M;this.T=L||NaN;this.V=Z||NaN}; Ez=function(w,D,M){for(;w;w=w.parentNode)if(w.attributes&&(!M||w.nodeName===M)){var L=w.getAttribute(D);if(L)return L}return""}; pr=function(w,D){for(;w;w=w.parentNode){var M=w.getElementsByTagName(D);if(M.length>0)return M[0]}return null}; F$S=function(w){if(!w)return 0;var D=w.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return D?(Number(D[2])|0)*3600+(Number(D[4])|0)*60+(Number(D[6])|0):Number(w)|0}; GwN=function(w){return w.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?w+"Z":w}; Wy=function(){this.T=[];this.V=null;this.Y=0;this.L=[];this.W=!1;this.G="";this.D=-1}; swk=function(w){var D=w.L;w.L=[];return D}; aTx=function(){this.D=[];this.T=null;this.V={};this.L={}}; fTI=function(w,D){var M=[];D=Array.from(D.getElementsByTagName("SegmentTimeline"));D=g.x(D);for(var L=D.next();!L.done;L=D.next()){L=L.value;var Z=L.parentNode.parentNode,k=null;Z.nodeName==="Period"?k=vMC(w):Z.nodeName==="AdaptationSet"?(Z=Z.getAttribute("id")||Z.getAttribute("mimetype")||"",k=cFr(w,Z)):Z.nodeName==="Representation"&&(Z=Z.getAttribute("id")||"",k=B5C(w,Z));if(k==null)return;k.update(L);g.sl(M,swk(k))}g.sl(w.D,M);oxK(w.D,function(b){return b.startSecs*1E3+b.T})}; qUS=function(w){w.T&&(w.T.T=[]);g.mr(w.V,function(D){D.T=[]}); g.mr(w.L,function(D){D.T=[]})}; vMC=function(w){w.T||(w.T=new Wy);return w.T}; cFr=function(w,D){w.V[D]||(w.V[D]=new Wy);return w.V[D]}; B5C=function(w,D){w.L[D]||(w.L[D]=new Wy);return w.L[D]}; tc=function(w){var D=w===void 0?{}:w;w=D.y8===void 0?0:D.y8;var M=D.MQ===void 0?!1:D.MQ;var L=D.FZ===void 0?0:D.FZ;var Z=D.YP===void 0?0:D.YP;var k=D.gZ===void 0?Infinity:D.gZ;var b=D.Uf===void 0?0:D.Uf;var C=D.G3===void 0?!1:D.G3;D=D.OJ===void 0?!1:D.OJ;g.m2.call(this);this.NT=this.Vm=-1;this.vI=w;this.FZ=L;this.MQ=M;this.YP=Z;this.gZ=k;this.Uf=b;((this.G3=C)||isFinite(k)&&this.gZ>0)&&M&&hc&&(this.V=!1,this.L="postLive");this.OJ=D}; $g=function(w,D){return ur(w.segments,function(M){return D-M.g9})}; ic=function(w,D,M){M=M===void 0?{}:M;lc.call(this,w,D,"",void 0,void 0,M.y8||0);this.index=new tc(M)}; dg=function(w,D,M){zn.call(this,w,D);this.W=M;w=this.index=new g.m2;w.V=!1;w.L="d"}; rFI=function(w,D,M){var L=w.index.dA(D),Z=w.index.getStartTime(D),k=w.index.getDuration(D);M?k=M=0:M=w.info.sL*k;return new kg([new m6(3,w,void 0,"otfCreateRequestInfoForSegment",D,Z,k,0,M)],L)}; eHK=function(w,D){if(!w.index.isLoaded()){var M=[],L=D.D;D=D.W.split(",").filter(function(p){return p.length>0}); for(var Z=0,k=0,b=0,C=/^(\d+)/,l=/r=(\d+)/,E=0;E0&&(Z.T=Math.min(Z.T+b,10),Z.V=k);Z.T>0?(Z.T--,Z=!0):Z=!1;if(Z)typeof L==="function"&&(L=L()),console.log("plyr."+D,L);else{var C;L=((C=JFr.get(D))!=null?C:0)+1;JFr.set(D,L);L%100===1&&console.warn("plyr","plyr."+D+" is chatty, dropping logs.")}}}; Qwk=function(){this.T=10;this.V=Date.now()}; Uz=function(w,D){this.info=w;this.V=D;this.T=null;this.D=this.L=-1;this.timestampOffset=0;this.isLocked=this.Y=!1;this.W=this.info.T.Q_()&&!this.info.V}; g.xg=function(w){return XAl(w.V)}; zHG=function(w,D){D=Math.min(D,w.info.L);var M=w.V.split(D),L=M.Tg;M=new Uz(new m6(w.info.type,w.info.T,w.info.range,w.info.G,w.info.g9,w.info.startTime,w.info.duration,w.info.V,D,!1,w.info.mw,w.info.clipId),M.u7);M.D=w.D;M.L=w.L;D=new Uz(new m6(w.info.type,w.info.T,w.info.range,w.info.G,w.info.g9,w.info.startTime,w.info.duration,w.info.V+D,w.info.L-D,w.info.D,w.info.mw,w.info.clipId),L);D.D=w.D;D.L=w.L;return[M,D]}; g.NH=function(w,D,M,L){M=M===void 0?!1:M;L=L===void 0?0:L;if(w.isLocked||D.isLocked||!Dy(w.info,D.info)||w.info.D)return null;if(L){if(w.V.totalLength+D.V.totalLength>L)return null}else if(M&&(M=w.V,L=D.V,M=!(L.T.length?rKR(M,L.T[0]):1)),M)return null;M=new m6(w.info.type,w.info.T,w.info.range,w.info.G,w.info.g9,w.info.startTime,w.info.duration,w.info.V,w.info.L,w.info.D,w.info.mw,w.info.clipId);L=D.info;M.L+=L.L;M.range&&(M.U+=L.U);M.Y=L.Y;M.D=L.D;L=new A_;wn(L,w.V);wn(L,D.V);M=new Uz(M,L);M.T!= null&&D.T!=null&&(new g.yI("dash")).T(414627957,"merged slice emsg overridden; prev: "+M.T.TZ()+" next: "+D.T.TZ());M.T=D.T||w.T;M.L=w.L!==-1?w.L:D.L;M.D=w.D!==-1?w.D:D.D;return M}; g.Hy=function(w){g.zw(w.info.T.info)||w.info.T.info.Dr();if(w.L!==-1)return w.L;if(w.T&&TAa(w.T))return w.L=TAa(w.T),w.L;if(g.zw(w.info.T.info)){var D=g.xg(w);for(var M=w.info.T.T,L=NaN,Z=NaN,k=0;$Z(D,k);){var b=i2(D,k);b.type===1936286840?Z=b.data.getUint32(b.dataOffset+8):b.type===1836476516?Z=g.WM(b):b.type===1952867444&&isNaN(L)&&(L=g.yl(b));k=dr(b.type)?k+8:k+b.size}!Z&&M&&(Z=ho(M));D=L/Z}else D=new xZ(g.xg(w)),M=w.W?D:new xZ(new DataView(w.info.T.T.buffer)),L=vM(M),M=D.pos,D.pos=0,cM(D)?gr(D, 231)?(L=nd(D)*L/1E9,D.pos=M,D=L):(D.pos=M,D=NaN):(D.pos=M,D=NaN);w.L=D||w.info.W;return w.L}; PMj=function(w,D){w.timestampOffset>0&&(D-=w.timestampOffset);var M=g.Hy(w)+D;VlN(w,M);w.timestampOffset=D}; VlN=function(w,D){g.zw(w.info.T.info)||w.info.T.info.Dr();w.L=D;if(g.zw(w.info.T.info)){var M=g.xg(w);w=w.info.T.T;for(var L=NaN,Z=NaN,k=0;$Z(M,k);){var b=i2(M,k);isNaN(L)&&(b.type===1936286840?L=b.data.getUint32(b.dataOffset+8):b.type===1836476516&&(L=g.WM(b)));if(b.type===1952867444){!L&&w&&(L=ho(w));var C=g.yl(b);isNaN(Z)&&(Z=Math.round(D*L)-C);var l=b;C+=Z;if(l.data.getUint8(l.dataOffset)){var E=l.data;l=l.dataOffset+4;E.setUint32(l,Math.floor(C/4294967296));E.setUint32(l+4,C&4294967295)}else l.data.setUint32(l.dataOffset+ 4,C)}k=dr(b.type)?k+8:k+b.size}return!0}M=new xZ(g.xg(w));w=w.W?M:new xZ(new DataView(w.info.T.T.buffer));L=vM(w);w=M.pos;M.pos=0;if(cM(M)&&gr(M,231))if(Z=Rb(M,!0),D=Math.floor(D*1E9/L),Math.ceil(Math.log(D)/Math.log(2)/8)>Z)D=!1;else{for(L=Z-1;L>=0;L--)M.T.setUint8(M.pos+L,D&255),D>>>=8;M.pos=w;D=!0}else D=!1;return D}; gg=function(w,D){D=D===void 0?!1:D;var M=jI(w);w=D?0:w.info.U;return M||w}; jI=function(w){g.zw(w.info.T.info)||w.info.T.info.Dr();if(w.T&&w.info.type===6)return w.T.y8;if(g.zw(w.info.T.info)){var D=g.xg(w);var M=0;D=g.UY(D,1936286840);D=g.x(D);for(var L=D.next();!L.done;L=D.next())L=Oll(L.value),M+=L.BZ[0]/L.timescale;M=M||NaN;if(!(M>=0))a:{M=g.xg(w);D=w.info.T.T;for(var Z=L=0,k=0;$Z(M,L);){var b=i2(M,L);if(b.type===1836476516)Z=g.WM(b);else if(b.type===1836019558){!Z&&D&&(Z=ho(D));if(!Z){M=NaN;break a}var C=to(b.data,b.dataOffset,1953653094),l=C;C=Z;var E=to(l.data,l.dataOffset, 1952868452);l=to(l.data,l.dataOffset,1953658222);var p=MN(E);MN(E);p&2&&MN(E);E=p&8?MN(E):0;var W=MN(l),h=W&1;p=W&4;var t=W&256,d=W&512,N=W&1024;W&=2048;var n=Ld(l);h&&MN(l);p&&MN(l);for(var v=h=0;v2048?"":D.indexOf("https://")===0?D:""}; sz=function(w,D,M){D.match(YPl);return w(D,M).then(function(L){var Z=g.b5I(L.xhr);return Z?sz(w,Z,M):L.xhr})}; By=function(w,D,M){w=w===void 0?"":w;D=D===void 0?null:D;M=M===void 0?!1:M;g.mI.call(this);var L=this;this.sourceUrl=w;this.isLivePlayback=M;this.XE=this.duration=0;this.isPremiere=this.G3=this.D=this.isLiveHeadPlayable=this.isLive=this.V=!1;this.gZ=this.YP=0;this.isOtf=this.Yl=!1;this.Md=(0,g.IC)();this.V7=Infinity;this.T={};this.L=new Map;this.state=this.Qy=0;this.Y=null;this.isManifestless=!1;this.W_=[];this.G=null;this.fV=0;this.W="";this.Jc=NaN;this.c_=this.oO=this.timestampOffset=this.U=0;this.o$= this.GR=NaN;this.GU=0;this.jk=this.y7=!1;this.bW=[];this.Nd={};this.nV=NaN;this.Bz={xn7:function(C){at(L,C)}}; var Z;this.EL=(Z=D)==null?void 0:Z.ek("html5_use_network_error_code_enums");C$J=!!D&&D.ek("html5_modern_vp9_mime_type");var k;vy=!((k=D)==null||!k.ek("html5_enable_flush_during_seek"))&&g.q2();var b;cy=!((b=D)==null||!b.ek("html5_enable_reset_audio_decoder"))&&g.q2()}; l0K=function(w){return g.DY(w.T,function(D){return!!D.info.video&&D.info.video.qualityOrdinal>=2160})}; jHG=function(w){return g.DY(w.T,function(D){return!!D.info.video&&D.info.video.isHdr()})}; fA=function(w){return g.DY(w.T,function(D){return!!D.info.f6})}; g.EWr=function(w){return g.DY(w.T,function(D){return AF(D.info.mimeType)})}; pFG=function(w){return g.DY(w.T,function(D){return D.info.video?D.info.video.projectionType==="EQUIRECTANGULAR":!1})}; W4N=function(w){return g.DY(w.T,function(D){return D.info.video?D.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; h1S=function(w){return g.DY(w.T,function(D){return D.info.video?D.info.video.projectionType==="MESH":!1})}; tVl=function(w){return g.DY(w.T,function(D){return D.info.video?D.info.video.stereoLayout===1:!1})}; $LT=function(w){return aaS(w.T,function(D){return D.info.video?D.g4():!0})}; vO=function(w){return g.DY(w.T,function(D){return za(D.Zv.T)})}; at=function(w,D){w.T[D.info.id]=D;w.L.set(Jo(g.P_(D.info,w.Yl)),D)}; rg=function(w,D,M){M=M===void 0?0:M;var L=w.mimeType||"",Z=w.itag;var k=w.xtags;Z=Z?Z.toString():"";k&&(Z+=";"+k);k=Z;if(m$(L)){var b=w.width||640;Z=w.height||360;var C=w.fps,l=w.qualityLabel,E=w.qualityOrdinal,p=w.colorInfo,W=w.projectionType,h;w.stereoLayout&&(h=i5K[w.stereoLayout]);var t=Z5T(w)||void 0;if(p==null?0:p.primaries)var d=dLG[p.primaries]||void 0;b=new B_(b,Z,C,W,h,void 0,l,E&&ydK[E],t,d);L=fr(L,b,r5[w.itag||""]);vy&&(L+="; enableflushduringseek=true");cy&&(L+="; enableresetaudiodecoder=true")}var N; if(KH(L)){var n=w.audioSampleRate;h=w.audioTrack;n=new N$(n?+n:void 0,w.audioChannels,w.spatialAudioType,w.isDrc,w.loudnessDb,w.trackAbsoluteLoudnessLkfs,w.audioQuality||"AUDIO_QUALITY_UNKNOWN",w.isVb);h&&(d=h.displayName,Z=h.id,h=h.audioIsDefault,d&&(N=new g.GH(d,Z||"",!!h)))}var v;w.captionTrack&&(l=w.captionTrack,h=l.displayName,d=l.vssId,Z=l.languageCode,C=l.kind,l=l.id,h&&d&&Z&&(v=new MVK(h,d,Z,C,w.xtags,l)));h=Number(w.bitrate)/8;d=Number(w.contentLength);Z=Number(w.lastModified);l=w.drmFamilies; C=w.type;M=M&&d?d/M:0;w=Number(w.approxDurationMs);if(D&&l){var G={};l=g.x(l);for(E=l.next();!E.done;E=l.next())(E=qH[E.value])&&(G[E]=D[E])}return new el(k,L,{audio:n,video:b,dW:N,f6:G,sL:h,cB:M,contentLength:d,lastModified:Z,captionTrack:v,streamType:C,approxDurationMs:w})}; eI=function(w,D,M){M=M===void 0?0:M;var L=w.type;var Z=w.itag;var k=w.xtags;k&&(Z=w.itag+";"+k);if(m$(L)){var b=(w.size||"640x360").split("x");b=new B_(+b[0],+b[1],+w.fps,w.projection_type,+w.stereo_layout,void 0,w.quality_label,+w.quality_ordinal,w.eotf,w.primaries);L=fr(L,b,r5[w.itag]);vy&&(L+="; enableflushduringseek=true");cy&&(L+="; enableresetaudiodecoder=true")}var C;if(KH(L)){var l=new N$(+w.audio_sample_rate||void 0,+w.audio_channels||0,w.spatial_audio_type,!!w.drc);w.name&&(C=new g.GH(w.name, w.audio_track_id,w.isDefault==="1"))}var E;w.caption_display_name&&w.caption_vss_id&&w.caption_language_code&&(E=new MVK(w.caption_display_name,w.caption_vss_id,w.caption_language_code,w.caption_kind,w.xtags,w.caption_id));k=Number(w.bitrate)/8;var p=Number(w.clen),W=Number(w.lmt);M=M&&p?p/M:0;if(D&&w.drm_families){var h={};for(var t=g.x(w.drm_families.split(",")),d=t.next();!d.done;d=t.next())d=d.value,h[d]=D[d]}return new el(Z,L,{audio:l,video:b,dW:C,f6:h,sL:k,cB:M,contentLength:p,lastModified:W, captionTrack:E,streamType:w.stream_type,approxDurationMs:Number(w.approx_duration_ms)})}; I0N=function(w){return uX(w,function(D){return"FORMAT_STREAM_TYPE_OTF"===D.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; ULx=function(w){return uX(w,function(D){return"FORMAT_STREAM_TYPE_OTF"===D.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; xLI=function(w,D){return w.Y?BQ(w.Y.D,D):w.W_.length?BQ(w.W_,D):[]}; XE=function(w,D,M){D=D===void 0?"":D;M=M===void 0?"":M;w=new g.S_(w,!0);w.set("alr","yes");M&&(M=Q2G(decodeURIComponent(M)),w[Y[38]](D,encodeURIComponent(M)));return w}; gWI=function(w,D){var M=Ez(D,"id");M=M.replace(":",";");var L=Ez(D,"mimeType"),Z=Ez(D,"codecs");L=Z?L+'; codecs="'+Z+'"':L;Z=Number(Ez(D,"bandwidth"))/8;var k=Number(pr(D,"BaseURL").getAttribute(w.W+":contentLength")),b=w.duration&&k?k/w.duration:0;if(m$(L)){var C=Number(Ez(D,"width"));var l=Number(Ez(D,"height")),E=Number(Ez(D,"frameRate")),p=NkC(Ez(D,w.W+":projectionType"));a:switch(Ez(D,w.W+":stereoLayout")){case "layout_left_right":var W=1;break a;case "layout_top_bottom":W=2;break a;default:W= 0}C=new B_(C,l,E,p,W)}if(KH(L)){var h=Number(Ez(D,"audioSamplingRate"));var t=Number(Ez(D.getElementsByTagName("AudioChannelConfiguration")[0],"value"));l=H5S(Ez(D,w.W+":spatialAudioType"));h=new N$(h,t,l);a:{t=Ez(D,"lang")||"und";if(l=pr(D,"Role"))if(p=Ez(l,"value")||"",g.l1(jEI,p)){l=t+"."+jEI[p];E=p==="main";w=Ez(D,w.W+":langName")||t+" - "+p;t=new g.GH(w,l,E);break a}t=void 0}}if(D=pr(D,"ContentProtection"))if(D.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var d={};for(D= D.firstChild;D!=null;D=D.nextSibling)D instanceof Element&&/SystemURL/.test(D.nodeName)&&(w=D.getAttribute("type"),l=D.textContent,w&&l&&(d[w]=l.trim()))}else d=void 0;return new el(M,L,{audio:h,video:C,dW:t,f6:d,sL:Z,cB:b,contentLength:k})}; NkC=function(w){switch(w){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"}}; H5S=function(w){switch(w){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"}}; oWx=function(w,D){D=D===void 0?"":D;w.state=1;w.Md=(0,g.IC)();return kbI(D||w.sourceUrl).then(function(M){if(!w.xt()){w.Qy=M.status;M=M.responseText;var L=new DOMParser;M=Rg(L,sVr(M),"text/xml").getElementsByTagName("MPD")[0];w.V7=F$S(Ez(M,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(M.attributes){L=g.x(M.attributes);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.value==="http://youtube.com/yt/2012/10/10"){L=Z.name.split(":")[1];break b}}L=""}w.W=L;w.isLive=w.V7=w.V7}; F4K=function(w){w.G&&w.G.stop()}; R1r=function(w){var D=w.V7;isFinite(D)&&(TH(w)?w.refresh():(D=Math.max(0,w.Md+D-(0,g.IC)()),w.G||(w.G=new g.ui(w.refresh,D,w),g.T(w,w.G)),w.G.start(D)))}; GbG=function(w){w=w.T;for(var D in w){var M=w[D].index;if(M.isLoaded())return M.EV()+1}return 0}; uc=function(w){return w.oO?w.oO-(w.U||w.timestampOffset):0}; SI=function(w){return w.c_?w.c_-(w.U||w.timestampOffset):0}; QI=function(w){if(!isNaN(w.Jc))return w.Jc;var D=w.T,M;for(M in D){var L=D[M].index;if(L.isLoaded()&&!AF(D[M].info.mimeType)){D=0;for(M=L.Qo();M<=L.EV();M++)D+=L.getDuration(M);D/=L.oa();D=Math.round(D/.5)*.5;L.oa()>10&&(w.Jc=D);return D}if(w.isLive&&(L=D[M],L.y8))return L.y8}return NaN}; sEr=function(w,D){w=cGl(w.T,function(L){return L.index.isLoaded()}); if(!w)return NaN;w=w.index;var M=w.Y9(D);return w.getStartTime(M)===D?D:M=0&&Z.segments.splice(k,1)}}}; vWa=function(w){for(var D in w.T)AF(w.T[D].info.mimeType)||f1C(w.T[D].index,Infinity)}; VI=function(w,D,M){for(var L in w.T){var Z=w.T[L].index,k=D,b=M;Z.MQ&&(k&&(Z.Vm=Math.max(Z.Vm,k)),b&&(Z.NT=Math.max(Z.NT||0,b)))}M&&(w.nV=M/1E3)}; cdS=function(w){w.c_=0;w.oO=0;w.GU=0}; Py=function(w){return w.jk&&w.isManifestless?w.isLiveHeadPlayable:w.isLive}; fr=function(w,D,M){Oz===null&&(Oz=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(C$J&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Oz||M!=="9"&&M!=="("?Oz||M!=="9h"&&M!=="(h"||(w='video/webm; codecs="vp9.2"'):w='video/webm; codecs="vp9"',w;if(!Oz&&!Kr||w!=='video/webm; codecs="vp9"'&&w!=='video/webm; codecs="vp9.2"')return w; M="00";var L="08",Z="01",k="01",b="01";w==='video/webm; codecs="vp9.2"'&&(M="02",L="10",D.primaries==="bt2020"&&(b=Z="09"),D.T==="smpte2084"&&(k="16"),D.T==="arib-std-b67"&&(k="18"));return'video/webm; codecs="'+["vp09",M,"51",L,"01",Z,k,b,"00"].join(".")+'"'}; Ac=function(w,D,M){w=""+w+(D>49?"p60":D>32?"p48":"");D=ih()[w];if(D!=null&&D>0)return D;D=mk.get(w);if(D!=null&&D>0)return D;M=M==null?void 0:M.get(w);return M!=null&&M>0?M:8192}; BkJ=function(w){this.P_=w;this.Is=this.oV=this.fV=this.W=this.D=this.XE=this.jk=this.y7=!1;this.G=this.Y=0;this.EL=!1;this.V7=!0;this.Nd=!1;this.rK=0;this.Tn=this.c_=!1;this.Qi=!0;this.Md=this.Jc=!1;this.T={};this.oO=this.Sb=this.FQ=this.disableAv1=this.mu=this.k6=this.iW=this.TU=this.V=this.U=!1;this.nV=0;this.pV=!1;this.TC=this.P_.C("html5_disable_aac_preference");this.HA=Infinity;this.W_=0;this.wW=this.P_.gW();this.GU=this.P_.experiments.ek("html5_enable_vp9_fairplay");this.Wd=this.P_.C("html5_force_av1_for_testing"); this.bW=g.A3(this.P_.experiments,"html5_av1_ordinal_cap");this.yF=this.P_.C("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.UV=this.P_.C("html5_account_onesie_format_selection_during_format_filter");this.sL=g.A3(this.P_.experiments,"html5_max_byterate");this.NC=this.P_.C("html5_enable_iamf_audio");this.FK=this.P_.experiments.ek("html5_allow_capability_merge");this.uj=this.P_.C("html5_enable_encrypted_av1");this.nV=g.A3(this.P_.experiments,"html5_hard_cap_max_vertical_resolution");this.pV= this.P_.C("html5_enable_audio_feature_manager")}; g3N=function(w){if(w.jk)return["f"];if(g.Bo("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var D=["9h","9","h","8"];w.uj&&D.push("1e");D=D.concat(["(h","(","H","*"]);w.c_&&(D.unshift("1"),D.unshift("1h"));w.oV&&D.unshift("h");w.B&&(D=(f0l[w.B]||[w.B]).concat(D));return D}; yNN=function(w){var D=["o","a","A"];w.W_===1&&(w.D&&(D=["mac3","MAC3"].concat(D)),w.W&&(D=["meac3","MEAC3"].concat(D)),w.NC&&(D=["i","I"].concat(D)));w.y7&&(D=["so","sa"].concat(D));!w.Is||w.fV||w.L||w.TC||D.unshift("a");w.L&&(D=(f0l[w.L]||[w.L]).concat(D));return D}; wq=function(w,D,M,L){D=D===void 0?{}:D;if(L===void 0?0:L)return D.disabled=1,0;if(Ta(w.W,uh.AV1_CODECS)&&Ta(w.W,uh.HEIGHT)&&Ta(w.W,uh.BITRATE))return D.isCapabilityUsable=1,8192;try{var Z=ALT();if(Z&&!w.C("disable_av1_setting"))return D.localPref=Z}catch(C){}L=1080;Z=navigator.hardwareConcurrency;Z<=2&&(L=480);D.coreCount=Z;if(Z=g.A3(w.experiments,"html5_default_av1_threshold"))L=D["default"]=Z;!w.C("html5_disable_av1_arm_check")&&$7k()&&(D.isArm=1,L=240);if(w=w.W.V7)D.mcap=w,L=Math.max(L,w);if(M){var k, b;if(w=(k=M.videoInfos.find(function(C){return Sl(C)}))==null?void 0:(b=k.V)==null?void 0:b.powerEfficient)L=8192,D.isEfficient=1; M=M.videoInfos[0].video;k=Math.min(Ac("1",M.fps),Ac("1",30));D.perfCap=k;L=Math.min(L,k);M.isHdr()&&!w&&(D.hdr=1,L*=.75)}else M=Ac("1",30),D.perfCap30=M,L=Math.min(L,M),M=Ac("1",60),D.perfCap60=M,L=Math.min(L,M);return D.av1Threshold=L}; DO=function(w,D,M,L){this.flavor=w;this.keySystem=D;this.V=M;this.experiments=L;this.T={};this.jk=this.keySystemAccess=null;this.Oe=this.Ue=-1;this.C7=null;this.L=!!L&&L.ek("edge_nonprefixed_eme");L&&L.ek("html5_enable_vp9_fairplay")}; Lg=function(w){return w.L?!1:!w.keySystemAccess&&!!Mb()&&w.keySystem==="com.microsoft.playready"}; ZO=function(w){return w.keySystem==="com.microsoft.playready"}; kt=function(w){return!w.keySystemAccess&&!!Mb()&&w.keySystem==="com.apple.fps.1_0"}; b3=function(w){return w.keySystem==="com.youtube.fairplay"}; Yt=function(w){return w.keySystem==="com.youtube.fairplay.sbdl"}; g.Cg=function(w){return w.flavor==="fairplay"}; Mb=function(){var w=window,D=w.MSMediaKeys;XN()&&!D&&(D=w.WebKitMediaKeys);return D&&D.isTypeSupported?D:null}; E2=function(w){return navigator.requestMediaKeySystemAccess?g.d5&&!g.q2()?ym("45"):g.XT||g.YY?w.ek("edge_nonprefixed_eme"):g.l3?ym("47"):g.pf&&w.ek("html5_enable_safari_fairplay")?!1:!0:!1}; qPk=function(w,D,M,L){var Z=rz(),k=(M=Z||M&&XN())?["com.youtube.fairplay"]:["com.widevine.alpha"];D&&k.unshift("com.youtube.widevine.l3");Z&&L&&k.unshift("com.youtube.fairplay.sbdl");return M?k:w?[].concat(g.tG(k),g.tG(pg.playready)):[].concat(g.tG(pg.playready),g.tG(k))}; Wd=function(w,D,M,L,Z){L=L===void 0?!1:L;g.X.call(this);this.P_=D;this.useCobaltWidevine=L;this.H_=Z;this.V=[];this.L={};this.T={};this.callback=null;this.W=!1;this.D=[];this.initialize(w,!M)}; e1T=function(w,D){w.callback=D;w.D=[];E2(w.P_.experiments)?tb(w):rdR(w)}; tb=function(w){if(!w.xt())if(w.V.length===0)w.callback(w.D);else{var D=w.V[0],M=w.L[D],L=XFI(w,M);if($t&&$t.keySystem===D&&$t.pdL===JSON.stringify(L))w.H_("remksa",{re:!0}),TkJ(w,M,$t.keySystemAccess);else{var Z,k;w.H_("remksa",{re:!1,ok:(k=(Z=$t)==null?void 0:Z.keySystem)!=null?k:""});$t=void 0;navigator.requestMediaKeySystemAccess(D,L).then(KP(function(b){TkJ(w,M,b,L)}),KP(function(){w.W=!w.W&&w.L[w.V[0]].flavor==="widevine"; w.W||w.V.shift();tb(w)}))}}}; TkJ=function(w,D,M,L){if(!w.xt()){L&&($t={keySystem:D.keySystem,keySystemAccess:M,pdL:JSON.stringify(L)});D.keySystemAccess=M;if(ZO(D)){M=$M();L=g.x(Object.keys(w.T[D.flavor]));for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,D.T[Z]=!!M.canPlayType(Z)}else{M=D.keySystemAccess.getConfiguration();if(M.audioCapabilities)for(L=g.x(M.audioCapabilities),Z=L.next();!Z.done;Z=L.next())D.T[Z.value.contentType]=!0;if(M.videoCapabilities)for(M=g.x(M.videoCapabilities),L=M.next();!L.done;L=M.next())D.T[L.value.contentType]= !0}w.D.push(D);w.useCobaltWidevine||w.C("html5_enable_vp9_fairplay")&&Yt(D)?(w.V.shift(),tb(w)):w.callback(w.D)}}; XFI=function(w,D){var M={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(w.C("html5_enable_vp9_fairplay")&&b3(D))return M.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),M.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[M];ZO(D)&&(M.initDataTypes=["keyids","cenc"]);for(var L=g.x(Object.keys(w.T[D.flavor])),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var k=Z.indexOf("audio/")===0,b=k?M.audioCapabilities:M.videoCapabilities;D.flavor!== "widevine"||w.W?b.push({contentType:Z}):k?b.push({contentType:Z,robustness:"SW_SECURE_CRYPTO"}):(g.d5&&g.Bo("windows nt")&&!w.C("html5_drm_enable_moho")||b.push({contentType:Z,robustness:"HW_SECURE_ALL"}),k=Z,w.P_.W.L&&Z.includes("vp09")&&(k=Z+"; experimental=allowed"),b.push({contentType:k,robustness:"SW_SECURE_DECODE"}),i3(w.P_)==="MWEB"&&(zu()||f7())&&(w.H_("swcrypto",{}),b.push({contentType:Z,robustness:"SW_SECURE_CRYPTO"})))}return[M]}; rdR=function(w){if(Mb()&&(g.pf||uU))w.D.push(new DO("fairplay","com.apple.fps.1_0","",w.P_.experiments));else{var D=uFx(),M=g.y1(w.V,function(L){var Z=w.L[L],k=!1,b=!1,C;for(C in w.T[Z.flavor])D(C,L)&&(Z.T[C]=!0,k=k||C.indexOf("audio/")===0,b=b||C.indexOf("video/")===0);return k&&b}); M&&w.D.push(w.L[M]);w.V=[]}w.callback(w.D)}; uFx=function(){var w=Mb();if(w){var D=w.isTypeSupported;return function(L,Z){return D(Z,L)}}var M=$M(); return M&&(M.addKey||M.webkitAddKey)?function(L,Z){return!!M.canPlayType(L,Z)}:function(){return!1}}; SPl=function(w){this.experiments=w;this.T=2048;this.D=0;this.y7=(this.G=this.C("html5_streaming_resilience"))?.5:.25;var D=D===void 0?0:D;this.L=g.A3(this.experiments,"html5_media_time_weight_prop")||D;this.B=(this.W=this.experiments.ek("html5_consider_end_stall"))&&dq;this.V=this.experiments.ek("html5_measure_max_progress_handling");this.U=this.C("html5_treat_requests_pre_elbow_as_metadata");this.Y=this.C("html5_media_time_weight")||!!this.L;this.C("html5_sabr_live_audio_early_return_fix")&&dq&& (this.T=65536)}; ye=function(w){var D;w=zQ((D=w.serializedClientExperimentFlags)!=null?D:"","&");this.flags=new Map(Object.entries(w).map(function(M){var L=g.x(M);M=L.next().value;L=L.next().value;return typeof L==="string"?[M,L]:[M,L[0]]}))}; VVK=function(w,D){switch(D.eK){case "bool":return w.ek(D.qy);case "int":return w=QEJ(w,D.qy),wP(w);case "double":return QEJ(w,D.qy);case "string":return JdK(w,D.qy);case "int32_list":return z1I(w,D.qy);case "int64_list":return z1I(w,D.qy).map(function(M){return wP(M)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; QEJ=function(w,D){w=w.flags.get(""+D);return Number(w)||0}; z1I=function(w,D){if(w=w.flags.get(""+D))if(w=w.replace(/\[ *(.*?) *\]/,"$1"))return w.split(",").map(Number);return[]}; JdK=function(w,D){return(w=w.flags.get(""+D))?w.toString():""}; Ip=function(w,D,M){this.T=void 0;this.experimentIds=w?w.split(","):[];this.flags=zQ(D||"","&");w={};D=g.x(this.experimentIds);for(var L=D.next();!L.done;L=D.next())w[L.value]=!0;this.experiments=w;this.ek("html5_player_intkey")&&(M=new ye(M),this.L=new LKN(M),this.V=new MOk(M))}; g.A3=function(w,D){w=w.vr(D);JSON.stringify(w);return Number(w)||0}; U2=function(w,D){return(w=w.vr(D))?w.toString():""}; P$T=function(w){if(w=w.vr("html5_web_po_experiment_ids"))if(w=w.replace(/\[ *(.*?) *\]/,"$1"))return w.split(",").map(Number);return[]}; O5I=function(w){if(w.T)return w.T;if(w.experimentIds.length<=1)return w.T=w.experimentIds,w.T;var D=[].concat(g.tG(w.experimentIds)).map(function(L){return Number(L)}); D.sort();for(var M=D.length-1;M>0;--M)D[M]-=D[M-1];w.T=D.map(function(L){return L.toString()}); w.T.unshift("v1");return w.T}; mLx=function(w){return K4G.then(w)}; xt=function(w,D,M){this.experiments=w;this.c_=D;this.W_=M===void 0?!1:M;this.B=!!g.w3("cast.receiver.platform.canDisplayType");this.U={};this.y7=!1;this.D=new Map;this.G=!0;this.V=this.L=!1;this.T=new Map;this.V7=0;this.nV=this.experiments.ek("html5_disable_vp9_encrypted");this.W=this.experiments.ek("html5_enable_encrypted_av1");w=g.w3("cast.receiver.platform.getValue");this.Y=!this.B&&w&&w("max-video-resolution-vpx")||null;AdN(this);this.L=!!(rz()&&co()>=21)}; n3x=function(w,D,M){M=M===void 0?1:M;var L=D.itag;if(L==="0")return!0;var Z=D.mimeType;if(D.RJ==="1e"&&!w.W)return"dav1enc";if(Sl(D)&&w.y7)return"dav1";if(D.video&&(D.video.isHdr()||D.video.primaries==="bt2020")&&!(Ta(w,uh.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(L==="338"&&!(g.d5?ym(53):g.l3&&ym(64)))return"dopus";var k=M;k=k===void 0?1: k;M={};D.video&&(D.video.width&&(M[uh.WIDTH.name]=D.video.width),D.video.height&&(M[uh.HEIGHT.name]=D.video.height),D.video.fps&&(M[uh.FRAMERATE.name]=D.video.fps*k),D.video.T&&(M[uh.EOTF.name]=D.video.T),D.sL&&(M[uh.BITRATE.name]=D.sL*8*k),D.RJ==="("&&(M[uh.CRYPTOBLOCKFORMAT.name]="subsample"),D.video.projectionType==="EQUIRECTANGULAR"||D.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||D.video.projectionType==="MESH")&&(M[uh.DECODETOTEXTURE.name]="true");var b;((b=D.audio)==null?0:b.numChannels)&& (D.RJ!=="i"&&D.RJ!=="I"||!wEl)&&(M[uh.CHANNELS.name]=D.audio.numChannels);w.L&&Xt(D)&&(M[uh.EXPERIMENTAL.name]="allowed");b=g.x(Object.keys(uh));for(k=b.next();!k.done;k=b.next()){k=uh[k.value];var C;if(C=M[k.name])if(C=!(k===uh.EOTF&&D.mimeType.indexOf("vp09.02")>0)){C=k;var l=D;C=!(w.experiments.ek("html5_ignore_h264_framerate_cap")&&C===uh.FRAMERATE&&FAJ(l))}if(C)if(Ta(w,k))if(w.Y){if(w.Y[k.name]1080&&D.f6&&(Z+="; hdcp=2.2");return L==="227"?"hqcenc":L!=="585"&&L!=="588"&&L!=="583"&&L!=="586"&&L!=="584"&&L!=="587"&&L!=="591"&&L!=="592"||w.experiments.ek("html5_enable_new_hvc_enc")?rz()&&co()>=21&&g.Bo("appletv5")&&(L==="410"||L==="845")?!0:w.isTypeSupported(Z)?!0:"tpus":"newhvc"}; Nb=function(){var w=f7()&&!ym(29),D=g.Bo("google tv")&&g.Bo("chrome")&&!ym(30);return w||D?!1:BJI()}; DJJ=function(w,D,M){var L=480;D=g.x(D);for(var Z=D.next();!Z.done;Z=D.next()){Z=Z.value;var k=Z.video.qualityOrdinal;k<=1080&&k>L&&n3x(w,Z,M)===!0&&(L=k)}return L}; g.Hd=function(w,D){D=D===void 0?!1:D;return Nb()&&w.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!D&&w.canPlayType($M(),"application/x-mpegURL")?!0:!1}; L8x=function(w){MEJ(function(){for(var D=g.x(Object.keys(uh)),M=D.next();!M.done;M=D.next())Ta(w,uh[M.value])})}; Ta=function(w,D){D.name in w.U||(w.U[D.name]=ZYT(w,D));return w.U[D.name]}; ZYT=function(w,D){if(w.Y)return!!w.Y[D.name];if(D===uh.BITRATE&&w.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!w.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(D===uh.AV1_CODECS)return w.isTypeSupported("video/mp4; codecs="+D.valid)&&!w.isTypeSupported("video/mp4; codecs="+D.w2);if(D.video){var M='video/webm; codecs="vp9"';w.isTypeSupported(M)||(M='video/mp4; codecs="avc1.4d401e"')}else M='audio/webm; codecs="opus"', w.isTypeSupported(M)||(M='audio/mp4; codecs="mp4a.40.2"');return w.isTypeSupported(M+"; "+D.name+"="+D.valid)&&!w.isTypeSupported(M+"; "+D.name+"="+D.w2)}; kvl=function(w,D){var M=0;w.D.has(D)&&(M=w.D.get(D).VG);w.D.set(D,{VG:M+1,z2:Math.pow(2,M+1)});w.V=!0}; qa=function(w){for(var D=[],M=g.x(w.T.keys()),L=M.next();!L.done;L=M.next()){L=L.value;var Z=w.T.get(L);D.push(L+"_"+Z.maxWidth+"_"+Z.maxHeight)}return D.join(".")}; U0r=function(w,D){for(var M=new Map,L=g.x(w.T.keys()),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var k=Z.split("_")[0];D.has(k)||M.set(Z,w.T.get(Z))}w.T=M}; NAx=function(w,D,M){var L,Z=((L=M.video)==null?void 0:L.fps)||0;L=D+"_"+Z;var k=!!M.audio,b={itag:M.itag,RJ:D,XX:k};if(k)b.numChannels=M.audio.numChannels;else{var C=M.video;b.maxWidth=C==null?void 0:C.width;b.maxHeight=C==null?void 0:C.height;b.maxFramerate=Z;Ta(w,uh.BITRATE)&&(b.maxBitrateBps=M.sL*8);b.PS=C==null?void 0:C.isHdr()}C=w.T.get(L);C?k||(M=Math.max(C.maxWidth||0,C.maxHeight||0)>Math.max(b.maxWidth||0,b.maxHeight||0)?C:b,D={itag:M.itag,RJ:D,XX:k,maxWidth:Math.max(C.maxWidth||0,b.maxWidth|| 0),maxHeight:Math.max(C.maxHeight||0,b.maxHeight||0),maxFramerate:Z,PS:M.PS},Ta(w,uh.BITRATE)&&(D.maxBitrateBps=M.maxBitrateBps),w.T.set(L,D)):w.T.set(L,b)}; HlT=function(w,D,M){var L,Z=((L=M.video)==null?void 0:L.fps)||0;L=D+"_"+Z;var k=!!M.audio,b=w.T.get(L);a:{var C=w.T.get(L),l=!!M.audio;if(C){if(l){var E=!1;break a}var p;if(!l&&((E=M.video)==null?0:E.height)&&C.maxHeight&&C.maxHeight>=((p=M.video)==null?void 0:p.height)){E=!1;break a}}E=!0}E&&(E=M.itag,D=b?b:{itag:E,RJ:D,XX:k},k?D.numChannels=M.audio.numChannels:(k=M.video,D.maxWidth=k==null?void 0:k.width,D.maxHeight=k==null?void 0:k.height,D.maxFramerate=Z,Ta(w,uh.BITRATE)&&(D.maxBitrateBps=M.sL* 8),D.PS=k==null?void 0:k.isHdr()),w.T.set(L,D))}; AdN=function(w){var D;(D=navigator.mediaCapabilities)!=null&&D.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(M){M.smooth&&M.powerEfficient&&(w.V7=2160)})}; j1=function(){g.mI.call(this);this.items={}}; gq=function(w,D){this.T=w;this.cipher=this.T.exports.AES128CTRCipher_create(D.byteOffset)}; op=function(){this.V=this.Fo=0;this.T=Array.from({length:Rp.length}).fill(0)}; bYR=function(){}; Y5r=function(){this.startTimeMs=(0,g.IC)();this.T=!1}; CbI=function(){this.T=new bYR}; lNS=function(w,D,M,L){L=L===void 0?1:L;M>=0&&(D in w.T||(w.T[D]=new op),w.T[D].iz(M,L))}; EwK=function(w,D,M,L,Z){var k=(0,g.IC)(),b=Z?Z(D):void 0,C;Z=(C=b==null?void 0:b.Fo)!=null?C:1;if(Z!==0){var l;C=(l=b==null?void 0:b.profile)!=null?l:M;lNS(w,C,k-L,Z)}return D}; pET=function(w,D,M,L,Z){if(D&&typeof D==="object"){var k=function(b){return EwK(w,b,M,L,Z)}; if(Bh(D))return D.then(k);if(ch(D))return X_(D,k)}return EwK(w,D,M,L,Z)}; W8R=function(){}; hLr=function(w){var D=window;D.ywc||(D.ywc={});var M=D.ywc[w];if(M)return M;M={};return D.ywc[w]=M}; tES=function(w){var D=window;D.ywc&&delete D.ywc[w]}; $JG=function(w){var D=hLr(w);if(D.binP)return D.binP;D.binP=Promise.resolve().then(function(){return fetch(w)}).then(function(M){if(!M.ok)throw Error("HTTP"+M.statusText); return M.arrayBuffer()}); D.binP.then(function(M){D.bin=M},function(){tES(w)}); return D.binP}; yrK=function(w,D){return ut(iYr,function(){var M=this;return function Z(){var k,b,C;return qk(Z,function(l){switch(l.T){case 1:g.gR(l,2);if(!M.V)throw"wasm.ps.ns";k=w;b=eN;return Nk(l,S6(dJN(M,D)),4);case 4:C=b(l.V);if(!C)throw"wasm.ps.um";if(M.T)try{return l.return(new WebAssembly.Instance(C,k))}catch(E){M.T=!1}return Nk(l,S6(WebAssembly.instantiate(C,k)),5);case 5:return l.return(l.V);case 2:g.vr(l),g.cr(l,0)}})}()})}; dJN=function(w,D){return ut(w,function(){var M=this;return function Z(){var k,b,C,l,E,p,W,h,t;return qk(Z,function(d){switch(d.T){case 1:g.gR(d,2);k=[];b=function(){return"wasm.ps.c: ["+k.map(function(N){return'"'+N+'"'}).join(", ")+"]"}; C=hLr(D);if(C.mod)return d.return(C.mod);if(!C.modP){d.KV(4);break}g.jN(d,5);l=eN;return Nk(d,S6(C.modP),7);case 7:return d.return(l(d.V));case 5:g.FK(d),k.unshift("pcm");case 4:if((E=C.bin)||!C.binP){d.KV(8);break}g.jN(d,9);p=eN;return Nk(d,S6(C.binP),11);case 11:E=p(d.V);g.oT(d,8);break;case 9:g.FK(d),k.unshift("pfb");case 8:if(E){d.KV(12);break}g.jN(d,13);W=eN;return Nk(d,S6($JG(D)),15);case 15:E=W(d.V);g.oT(d,12);break;case 13:throw g.FK(d),M.V=!1,k.unshift("fb"),b();case 12:if(M.T)try{return d.return(new WebAssembly.Module(E))}catch(N){M.T= !1,k.unshift("cs")}g.jN(d,16);h=eN;return Nk(d,S6(WebAssembly.compile(E)),18);case 18:return d.return(h(d.V));case 16:t=g.FK(d),tES(D),k.unshift("ca: "+t);case 17:throw b();case 2:g.vr(d),g.cr(d,0)}})}()})}; INC=function(){}; UJk=function(){var w=this;this.proc_exit=function(){}; this.fd_write=function(D,M,L){if(!w.exports)return 1;D=new Uint32Array(w.exports.memory.buffer,M,L*2);M=[];for(var Z=0;Z0)D=w.byterate,this.y7=!0;else{var L; M=(((L=navigator.connection)==null?void 0:L.downlink)||0)*64*1024;M>0&&(D=M,this.y7=!0)}this.L.pJ(this.policy.Y,D);w.delay>0&&this.U.pJ(1,Math.min(w.delay,2));w.stall>0&&this.G.pJ(1,w.stall);w.init>0&&(this.Jc=Math.min(w.init,this.Jc));w.interruptions&&(this.D=this.D.concat(w.interruptions),this.D.length>16&&this.D.pop());this.V7=(0,g.IC)();this.policy.G>0&&(this.Md=new g.ui(this.XE,this.policy.G,this),g.T(this,this.Md),this.Md.start())}; Xm=function(w,D,M,L){w.L.pJ(L===void 0?D:L,M/D);w.Y=(0,g.IC)()}; nwR=function(w){w.W||(w.W=(0,g.IC)());w.policy.B&&(w.Y=(0,g.IC)())}; F8N=function(w,D){if(w.W){var M=D-w.W;if(M<6E4){if(M>1E3){var L=w.interruptions;L.push(Math.ceil(M));L.sort(function(Z,k){return k-Z}); L.length>16&&L.pop()}w.c_+=M}}w.W=D}; Tm=function(w,D,M,L,Z,k){k=k===void 0?!1:k;w.fV.pJ(D,M/D);w.Y=(0,g.IC)();Z||w.B.pJ(1,D-L);k||(w.W=0);w.V7>-1&&(0,g.IC)()-w.V7>3E4&&GvN(w)}; u3=function(w,D,M){D=Math.max(D,w.V.T);w.G.pJ(1,M/D)}; S1=function(w){w=w.U.Td()+w.W_.Td()||0;w=isNaN(w)?.5:w;return w=Math.min(w,5)}; Qe=function(w,D,M){isNaN(M)||(w.nV+=M);isNaN(D)||(w.jk+=D)}; Jb=function(w){w=w.L.Td();return w>0?w:1}; zm=function(w,D,M){D=D===void 0?!1:D;M=M===void 0?1048576:M;var L=Jb(w);L=1/((w.G.Td()||0)*w.policy.y7+1/L);var Z=w.fV.Td();Z=Z>0?Z:1;var k=Math.max(L,Z);w.policy.W>0&&Z=4E3}; aNr=function(w){this.experiments=w;this.T=17;this.L=13E4;this.Y=.5;this.D=this.V=!1;this.V7=this.C("html5_use_histogram_for_bandwidth");this.W=g.A3(this.experiments,"html5_auxiliary_estimate_weight");this.y7=g.A3(this.experiments,"html5_stall_factor")||1;this.G=g.A3(this.experiments,"html5_check_for_idle_network_interval_ms");this.U=this.experiments.ek("html5_trigger_loader_when_idle_network");this.B=this.experiments.ek("html5_sabr_fetch_on_idle_network_preloaded_players")}; crK=function(w,D){w=w===void 0?{}:w;D=D===void 0?{}:D;g.X.call(this);var M=this;this.values=w;this.QA=D;this.V={};this.L=this.T=0;this.D=new g.ui(function(){vwl(M)},1E4); g.T(this,this.D)}; Pd=function(w,D){B6K(w,D);return w.values[D]&&w.QA[D]?w.values[D]/Math.pow(2,w.T/w.QA[D]):0}; B6K=function(w,D){w.values[D]||(D=Pel(),w.values=D.values||{},w.QA=D.halfLives||{},w.V=D.values?Object.assign({},D.values):{})}; vwl=function(w){var D=Pel();if(D.values){D=D.values;for(var M={},L=g.x(Object.keys(w.values)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,D[Z]&&w.V[Z]&&(w.values[Z]+=D[Z]-w.V[Z]),M[Z]=Pd(w,Z);w.V=M}D=w.QA;M={};M.values=w.V;M.halfLives=D;g.gQ("yt-player-memory",M,2592E3)}; t6=function(w,D,M,L,Z){g.X.call(this);this.webPlayerContextConfig=D;this.a$=L;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Yx=this.mu=this.k6=this.oT=this.userDisplayName=this.userDisplayImage=this.wI="";this.T={};this.oO={};this.controlsType="0";this.HA=NaN;this.EL=!1;this.X6=(0,g.IC)();this.TU=0;this.Yu=this.MN=!1;this.ZB=!0;this.preferGapless=this.C7=this.wz=this.L=this.Nr=!1;this.Q8=[];this.kP=!1;this.Jd=0;w=w?g.$O(w):{};D&&D.csiPageType&&(this.csiPageType=D.csiPageType);D&&D.csiServiceName&& (this.csiServiceName=D.csiServiceName);D&&D.preferGapless&&(this.preferGapless=D.preferGapless);this.experiments=new Ip(D?D.serializedExperimentIds:w.fexp,D?D.serializedExperimentFlags:w.fflags,D!=null?D:{});this.forcedExperiments=D?D.serializedForcedExperimentIds:AY("",w.forced_experiments)||void 0;this.cspNonce=(D==null?0:D.cspNonce)?D.cspNonce:AY("",w.csp_nonce);this.C("web_player_deprecated_uvr_killswitch");try{var k=document.location.toString()}catch(CI){k=""}this.yF=k;this.ancestorOrigins=(L= window.location.ancestorOrigins)?Array.from(L):[];this.D=OO(!1,D?D.isEmbed:w.is_embed);if(D&&D.device){if(L=D.device,L.androidOsExperience&&(this.T.caoe=""+L.androidOsExperience),L.androidPlayServicesVersion&&(this.T.capsv=""+L.androidPlayServicesVersion),L.brand&&(this.T.cbrand=L.brand),L.browser&&(this.T.cbr=L.browser),L.browserVersion&&(this.T.cbrver=L.browserVersion),L.cobaltReleaseVehicle&&(this.T.ccrv=""+L.cobaltReleaseVehicle),this.T.c=L.interfaceName||"WEB",this.T.cver=L.interfaceVersion|| "html5",L.interfaceTheme&&(this.T.ctheme=L.interfaceTheme),this.T.cplayer=L.interfacePlayerType||"UNIPLAYER",L.model&&(this.T.cmodel=L.model),L.network&&(this.T.cnetwork=L.network),L.os&&(this.T.cos=L.os),L.osVersion&&(this.T.cosver=L.osVersion),L.platform&&(this.T.cplatform=L.platform),k=U2(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),k==="all"||k==="once")L.chipset&&(this.oO.cchip=L.chipset),L.cobaltAppVersion&&(this.oO.ccappver=L.cobaltAppVersion),L.firmwareVersion&&(this.oO.cfrmver= L.firmwareVersion),L.deviceYear&&(this.oO.crqyear=L.deviceYear)}else this.T.c=w.c||"web",this.T.cver=w.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=D?this.D||fNx(this)&&D.loaderUrl?D.loaderUrl||"":this.yF:this.D||fNx(this)&&w.loaderUrl?AY("",w.loaderUrl):this.yF;this.D&&g.mC("yt.embedded_player.embed_url",this.loaderUrl);this.U=qu(this.loaderUrl,q5a);L=this.loaderUrl;var b=b===void 0?!1:b;this.h2=fc(qu(L,rrr),L,b,"Trusted Ad Domain URL");this.NC=OO(!1,w.privembed);this.protocol=this.yF.indexOf("http:")=== 0?"http":"https";this.le=WIl((D?D.customBaseYoutubeUrl:w.BASE_YT_URL)||"")||WIl(this.yF)||this.protocol+"://www.youtube.com/";b=D?D.eventLabel:w.el;L="detailpage";b==="adunit"?L=this.D?"embedded":"detailpage":b==="embedded"||this.U?L=K7(L,b,eLK):b&&(L="embedded");this.W_=L;j3R();b=null;L=D?D.playerStyle:w.ps;k=g.xB(XEK,L);!L||k&&!this.U||(b=L);this.playerStyle=b;this.Y=g.xB(XEK,this.playerStyle);this.houseBrandUserStatus=D==null?void 0:D.houseBrandUserStatus;this.V7=this.Y&&this.playerStyle!=="play"&& this.playerStyle!=="jamboard";this.t2=!this.V7;this.Md=OO(!1,w.disableplaybackui);this.disablePaidContentOverlay=OO(!1,D==null?void 0:D.disablePaidContentOverlay);this.disableSeek=OO(!1,D==null?void 0:D.disableSeek);this.enableSpeedOptions=(D==null?void 0:D.enableSpeedOptions)||($M().defaultPlaybackRate?O2||g.JY||Kg?g.l3&&ym("20")||g.d5&&ym("4")||g.mJ&&ym("11")||Tu():!(g.mJ&&!g.Bo("chrome")||O2||g.Bo("android")||g.Bo("silk")):!1);this.jZ=OO(!1,w.enable_faster_speeds);var C;this.supportsVarispeedExtendedFeatures= (C=D==null?void 0:D.supportsVarispeedExtendedFeatures)!=null?C:!1;this.V=OO(this.playerStyle==="blazer",w.is_html5_mobile_device||D&&D.isMobileDevice);this.jk=Q8()||zu();this.Ws=this.C("mweb_allow_background_playback")?!1:this.V&&!this.Y;this.fV=UU();this.Hw=g.Ab;var l;this.Ji=!!(D==null?0:(l=D.embedsHostFlags)==null?0:l.optOutApiDeprecation);var E;D?D.hideInfo!==void 0&&(E=!D.hideInfo):E=w.showinfo;this.cC=g.w0(this)&&!this.Ji||OO(!Dp(this)&&!Mi(this)&&!this.Y,E);this.WC=D?!!D.mobileIphoneSupportsInlinePlayback: OO(!1,w.playsinline);C=this.V&&LN&&Zp!=null&&Zp>0&&Zp<=2.3;l=D?D.useNativeControls:w.use_native_controls;this.G=g.w0(this)&&this.V;E=this.V&&!this.G;l=g.k2(this)||!C&&OO(E,l)?"3":"1";this.disableOrganicUi=!(D==null||!D.disableOrganicUi);E=D?D.controlsType:w.controls;this.controlsType=this.disableOrganicUi||E==="0"||E===0?"0":l;this.Px=this.V;this.color=K7("red",D?D.progressBarColor:w.color,T6a);this.m_=this.controlsType==="3";this.GU=!this.D;this.td=(l=!this.GU&&!Mi(this)&&!this.V7&&!this.Y&&!Dp(this))&& !this.m_&&this.controlsType==="1";this.uj=g.bw(this)&&l&&this.controlsType==="0"&&!this.td&&!(D==null?0:D.embedsEnableEmc3ds);this.DH=this.yA=C;this.Is=(this.controlsType==="3"||this.V||OO(!1,w.use_media_volume))&&!this.G;this.Cm=uU&&!g.eq(601)?!1:!0;this.Ps=this.D||!1;this.wW=Mi(this)?"":(this.loaderUrl||w.post_message_origin||"").substring(0,128);this.widgetReferrer=AY("",D?D.widgetReferrer:w.widget_referrer);var p;D?D.disableCastApi&&(p=!1):p=w.enablecastapi;p=!this.U||OO(!0,p);C=!0;D&&D.disableMdxCast&& (C=!1);this.By=this.C("enable_cast_for_web_unplugged")&&g.Y2(this)&&C||g.Fs(this)&&C||p&&C&&this.controlsType==="1"&&!this.V&&(Mi(this)||g.bw(this)||g.CN(this));this.ow=!!window.document.pictureInPictureEnabled||Iw();p=D?!!D.supportsAutoplayOverride:OO(!1,w.autoplayoverride);this.M5=!(this.V&&!g.w0(this))&&!g.Bo("nintendo wiiu")||p;this.Kx=(D?!!D.enableMutedAutoplay:OO(!1,w.mutedautoplay))&&!1;p=(Mi(this)||Dp(this))&&this.playerStyle==="blazer";this.U0=D?!!D.disableFullscreen:!OO(!0,w.fs);C=g.Le(g.lw(this))&& g.w0(this);this.iW=!this.U0&&(p||g.E4())&&!C;this.mW=this.C("html5_picture_in_picture_logging_onresize");var W;this.Ts=(W=g.A3(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?W:.33;this.PO=this.C("html5_picture_in_picture_blocking_onresize");this.WO=this.C("html5_picture_in_picture_blocking_ontimeupdate");this.UQ=this.C("html5_picture_in_picture_blocking_document_fullscreen");this.PC=this.C("html5_picture_in_picture_blocking_standard_api");W=f7()&&ym(58)&&!zu();p=e$||typeof MediaSource=== "undefined";this.D9=this.C("uniplayer_block_pip")&&(W||p)||this.PO||this.WO||this.PC;W=g.w0(this)&&!this.Ji;var h;D?D.disableRelatedVideos!==void 0&&(h=!D.disableRelatedVideos):h=w.rel;this.Qi=W||OO(!this.Y,h);this.zQ=OO(!1,D?D.enableContentOwnerRelatedVideos:w.co_rel);this.B=zu()&&Zp>0&&Zp<=4.4?"_top":"_blank";this.oC=g.CN(this);this.nf=OO(this.playerStyle==="blazer",D?D.enableCsiLogging:w.enablecsi);switch(this.playerStyle){case "blogger":h="bl";break;case "gmail":h="gm";break;case "gac":h="ga"; break;case "ads-preview":h="ap";break;case "books":h="gb";break;case "docs":case "flix":h="gd";break;case "duo":h="gu";break;case "google-live":h="gl";break;case "google-one":h="go";break;case "play":case "play-ads":h="gp";break;case "chat":h="hc";break;case "hangouts-meet":h="hm";break;case "photos-edu":case "picasaweb":h="pw";break;default:h="yt"}this.y7=h;this.nV=AY("",D?D.authorizedUserIndex:w.authuser);this.Sb=g.w0(this)&&(this.NC||!h4j()||this.jk);var t;D?D.disableWatchLater!==void 0&&(t=!D.disableWatchLater): t=w.showwatchlater;this.BI=((h=!this.Sb)||!!this.nV&&h)&&OO(!this.V7,this.U?t:void 0);this.TC=D?D.isMobileDevice||!!D.disableKeyboardControls:OO(!1,w.disablekb);this.loop=OO(!1,w.loop);this.pageId=AY("",D?D.initialDelegatedSessionId:w.pageid);this.LL=OO(!0,w.canplaylive);t=g.A3(this.experiments,"html5_default_audio_quality_setting_lr");var d;this.CL=(d=uJR[uJR[t]])!=null?d:0;this.pV=OO(!1,w.livemonitor);this.disableSharing=OO(this.Y,D?D.disableSharing:w.ss);(d=D&&this.C("fill_video_container_size_override_from_wpcc")? D.videoContainerOverride:w.video_container_override)?(t=d.split("x"),t.length!==2?d=null:(d=Number(t[0]),t=Number(t[1]),d=isNaN(d)||isNaN(t)||d*t<=0?null:new g.Jv(d,t))):d=null;this.ao=d;this.mute=D?!!D.startMuted:OO(!1,w.mute);this.storeUserVolume=!this.mute&&OO(this.controlsType!=="0",D?D.storeUserVolume:w.store_user_volume);d=D?D.annotationsLoadPolicy:w.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:K7(void 0,d,EK);this.captionsLanguagePreference=D?D.captionsLanguagePreference|| "":AY("",w.cc_lang_pref);d=K7(2,D?D.captionsLanguageLoadPolicy:w.cc_load_policy,EK);this.controlsType==="3"&&d===2&&(d=3);this.o$=d;this.UV=D?D.hl||"en_US":AY("en_US",w.hl);this.region=D?D.contentRegion||"US":AY("US",w.cr);this.hostLanguage=D?D.hostLanguage||"en":AY("en",w.host_language);this.GR=!this.NC&&Math.random()=480;this.schedule=new e1(W,new SPl(this.experiments),Z);g.T(this,this.schedule);var N;this.enableSafetyMode=(N=D==null?void 0:D.initialEnableSafetyMode)!=null?N:OO(!1,w.enable_safety_mode);Z=this.Md?!1:Mi(this)&&this.playerStyle!== "blazer";var n;D?D.disableAutonav!=null&&(n=!D.disableAutonav):n=w.allow_autonav;this.FK=OO(Z,!this.V7&&n);this.sendVisitorIdHeader=D?!!D.sendVisitorIdHeader:OO(!1,w.send_visitor_id_header);var v;this.playerStyle==="docs"&&(D?v=D.disableNativeContextMenu:v=w.disable_native_context_menu);this.disableNativeContextMenu=OO(!1,v);this.Hs=WI(this)&&this.C("enable_skip_intro_button");this.embedConfig=AY("",D?D.serializedEmbedConfig:w.embed_config);this.c_=MA(w,g.w0(this));this.L=this.c_==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(D==null||!D.embedsErrorLinks);this.HX=OO(!1,w.full_window);var G;this.bW=!((G=this.webPlayerContextConfig)==null?0:G.chromeless);var f;this.livingRoomAppMode=K7("LIVING_ROOM_APP_MODE_UNSPECIFIED",w.living_room_app_mode||(D==null?void 0:(f=D.device)==null?void 0:f.livingRoomAppMode),JrJ);var e;n=mU(NaN,D==null?void 0:(e=D.device)==null?void 0:e.deviceYear);isNaN(n)||(this.deviceYear=n);this.transparentBackground=D?!!D.transparentBackground:OO(!1,w.transparent_background);this.showMiniplayerButton= D?!!D.showMiniplayerButton:OO(!1,w.show_miniplayer_button);var S;g.w0(this)&&!(D==null?0:(S=D.embedsHostFlags)==null?0:S.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=D?!!D.externalFullscreen:OO(!1,w.external_fullscreen);this.showMiniplayerUiWhenMinimized=D?!!D.showMiniplayerUiWhenMinimized:OO(!1,w.use_miniplayer_ui);var K;this.ZB=(K=w.show_loop_video_toggle)!=null?K:!0;this.iA=Math.random()<1E-4;if(w.onesie_hot_config||(D==null?0:D.onesieHotConfig))this.FQ=new RLI(w.onesie_hot_config, D==null?void 0:D.onesieHotConfig),g.T(this,this.FQ);this.isTectonic=D?!!D.isTectonic:!!w.isTectonic;this.playerCanaryState=M;this.playerCanaryStage=D==null?void 0:D.canaryStage;this.Wd=new crK;g.T(this,this.Wd);this.datasyncId=(D==null?void 0:D.datasyncId)||g.Xg("DATASYNC_ID");this.L7=g.Xg("LOGGED_IN",!1);this.CJ=(D==null?void 0:D.allowWoffleManagement)||!1;this.zK=Infinity;this.DB=NaN;this.livingRoomPoTokenId=D==null?void 0:D.livingRoomPoTokenId;this.C("html5_high_res_logging_always")?this.wz=!0: this.wz=Math.random()*100=0&&w0&&w.iA&&(L.sort(),g.jn(new g.qA("Player client parameters changed after startup",L)));w.userAge=mU(w.userAge,D.user_age);w.wI=AY(w.wI,D.user_display_email);w.userDisplayImage=AY(w.userDisplayImage,D.user_display_image);g.ep(w.userDisplayImage)||(w.userDisplayImage= "");w.userDisplayName=AY(w.userDisplayName,D.user_display_name);w.oT=AY(w.oT,D.user_gender);w.csiPageType=AY(w.csiPageType,D.csi_page_type);w.csiServiceName=AY(w.csiServiceName,D.csi_service_name);w.nf=OO(w.nf,D.enablecsi);w.pageId=AY(w.pageId,D.pageid);if(M=D.enabled_engage_types)w.enabledEngageTypes=new Set(M.split(","));D.living_room_session_po_token&&(w.QF=D.living_room_session_po_token.toString())}; $2=function(w,D){return!w.Y&&f7()&&ym(55)&&w.controlsType==="3"&&!D}; g.iw=function(w){w=pN(w.le);return w==="www.youtube-nocookie.com"?"www.youtube.com":w}; d0=function(w,D,M){return w.protocol+"://i1.ytimg.com/vi/"+D+"/"+(M||"hqdefault.jpg")}; yq=function(w){return Mi(w)&&!g.Y2(w)}; g.k2=function(w){return w.C("html5_local_playsinline")?uU&&!g.eq(602)&&!("playsInline"in $M()):uU&&!w.WC||g.Bo("nintendo wiiu")?!0:!1}; i3=function(w){return w.T.c}; g.hL=function(w){return/^TVHTML5/.test(i3(w))}; g.II=function(w){return i3(w)==="TVHTML5"}; fNx=function(w){return i3(w)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; QKS=function(w){return w.T.cmodel==="CHROMECAST ULTRA/STEAK"||w.T.cmodel==="CHROMECAST/STEAK"}; g.UK=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; WI=function(w){return/web/i.test(i3(w))}; g.x2=function(w){return i3(w).toUpperCase()==="WEB"}; h6=function(w){return i3(w)==="WEB_KIDS"}; g.Y2=function(w){return i3(w)==="WEB_UNPLUGGED"}; Ni=function(w){return i3(w)==="TVHTML5_UNPLUGGED"}; g.pc=function(w){return g.Y2(w)||i3(w)==="TV_UNPLUGGED_CAST"||Ni(w)}; g.Fs=function(w){return i3(w)==="WEB_REMIX"}; g.Hn=function(w){return i3(w)==="WEB_MUSIC_INTEGRATIONS"}; g.jZ=function(w){return i3(w)==="WEB_EMBEDDED_PLAYER"}; g.RI=function(w){return(w.deviceIsAudioOnly||!g.d5||e$||w.controlsType==="3"?!1:g.JY?w.D&&g.eq(51):!0)||(w.deviceIsAudioOnly||!g.l3||e$||w.controlsType==="3"?!1:g.JY?w.D&&g.eq(48):g.eq(38))||(w.deviceIsAudioOnly||!g.mJ||e$||w.controlsType==="3"?!1:g.JY?w.D&&g.eq(37):g.eq(27))||!w.deviceIsAudioOnly&&g.g0&&!yuG()&&g.eq(11)||!w.deviceIsAudioOnly&&g.pf&&g.eq("604.4")}; PbN=function(w){if(g.bw(w)&&LN)return!1;if(g.l3){if(!g.eq(47)||!g.eq(52)&&g.eq(51))return!1}else if(g.pf)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; K8J=function(w,D){return w.enabledEngageTypes.has(D.toString())||OYj.includes(D)}; Mi=function(w){return w.W_==="detailpage"}; g.bw=function(w){return w.W_==="embedded"}; oI=function(w){return w.W_==="leanback"}; Dp=function(w){return w.W_==="adunit"||w.playerStyle==="gvn"}; g.CN=function(w){return w.W_==="profilepage"}; g.w0=function(w){return w.D&&g.bw(w)&&!Dp(w)&&!w.Y}; nN=function(w){if(!w.userDisplayImage)return"";var D=w.userDisplayImage.split("/");if(D.length===5)return w=D[D.length-1].split("="),w[1]="s20-c",D[D.length-1]=w.join("="),D.join("/");if(D.length===8)return D.splice(7,0,"s20-c"),D.join("/");if(D.length===9)return D[7]+="-s20-c",D.join("/");g.jn(new g.qA("Profile image not a FIFE URL.",w.userDisplayImage));return w.userDisplayImage}; g.Fb=function(w){var D=g.iw(w);mJK.includes(D)&&(D="www.youtube.com");return w.protocol+"://"+D}; g.GA=function(w,D){D=D===void 0?"":D;if(w.a$){var M=new HF,L,Z=w.a$();Z.signedOut?L="":Z.token?L=Z.token:Z.pendingResult.then(function(k){Z.signedOut?M.resolve(""):M.resolve(k.token)},function(k){g.jn(new g.qA("b189348328_oauth_callback_failed",{error:k})); M.resolve(D)}); return L!==void 0?gz(L):new Ho(M)}return gz(D)}; sK=function(w,D){D=D===void 0?"":D;return w.L7?fP(!0):Tf(X_(fP(g.GA(w,D)),function(M){return fP(!!M)}),function(){return fP(!1)})}; ArK=function(w,D){D==null||X_(D,function(M){w.DJ=M;var L,Z;(L=w.FQ)!=null&&(Z=L.T)!=null&&(Z.T=new s2(M,Z.V,Z.L),g.T(Z,Z.T))})}; pN=function(w){var D=g.ER(w);return(w=Number(g.lX(w)[4]||null)||null)?D+":"+w:D}; aI=function(w,D){D=D===void 0?!1:D;var M=r5[w],L=w1C[M],Z=DVk[w];if(!Z||!L)return null;D=new B_(D?Z.height:Z.width,D?Z.width:Z.height,Z.fps);L=fr(L,D,M);return new el(w,L,{video:D,sL:Z.bitrate/8})}; LVK=function(w){var D=w1C[r5[w]],M=M0a[w];return M&&D?new el(w,D,{audio:new N$(M.audioSampleRate,M.numChannels)}):null}; vn=function(w){this.T=w}; cn=function(w,D,M,L){if(M)return jJ();M={};var Z=$M();D=g.x(D);for(var k=D.next();!k.done;k=D.next())if(k=k.value,w.canPlayType(Z,k.getInfo().mimeType)||L){var b=k.T.video.quality;if(!M[b]||M[b].getInfo().Dr())M[b]=k}w=[];M.auto&&w.push(M.auto);L=g.x(fH);for(Z=L.next();!Z.done;Z=L.next())(Z=M[Z.value])&&w.push(Z);return w.length?gz(w):jJ()}; Z$G=function(w){this.itag=w.itag;this.url=w.url;this.codecs=w.codecs;this.width=w.width;this.height=w.height;this.fps=w.fps;this.bitrate=w.bitrate;var D;this.V=((D=w.audioItag)==null?void 0:D.split(","))||[];this.tp=w.tp;this.f6=w.f6||"";this.dW=w.dW;this.audioChannels=w.audioChannels;this.T=""}; k9G=function(w,D,M,L){D=D===void 0?!1:D;M=M===void 0?!0:M;L=L===void 0?{}:L;var Z={};w=g.x(w);for(var k=w.next();!k.done;k=w.next()){k=k.value;if(D&&MediaSource&&MediaSource.isTypeSupported){var b=k.type;k.audio_channels&&(b=b+"; channels="+k.audio_channels);if(!MediaSource.isTypeSupported(b)){L[k.itag]="tpus";continue}}if(M||!k.drm_families||k.eotf!=="smpte2084"&&k.eotf!=="arib-std-b67"){b=void 0;var C={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},l=k.type.match(/codecs="([^"]*)"/); l=l?l[1]:"";k.audio_track_id&&(b=new g.GH(k.name,k.audio_track_id,!!k.is_default));var E=k.eotf;k=new Z$G({itag:k.itag,url:k.url,codecs:l,width:Number(k.width),height:Number(k.height),fps:Number(k.fps),bitrate:Number(k.bitrate),audioItag:k.audio_itag,tp:E?C[E]:void 0,f6:k.drm_families,dW:b,audioChannels:Number(k.audio_channels)});Z[k.itag]=Z[k.itag]||[];Z[k.itag].push(k)}else L[k.itag]="enchdr"}return Z}; b$T=function(w,D,M,L,Z){this.L=w;this.V=D;this.W=M;this.cpn=L;this.Y=Z;this.D=0;this.T=""}; Y_R=function(w,D){w.L.some(function(M){var L;return((L=M.dW)==null?void 0:L.getId())===D}); w.T=D}; Bn=function(w,D,M){w.cpn&&(D=g.dh(D,{cpn:w.cpn}));M&&(D=g.dh(D,{paired:M}));return D}; CuJ=function(w,D){w=w.itag.toString();D!==null&&(w+=D.itag.toString());return w}; lJx=function(w){for(var D=[],M=[],L=g.x(w.V),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.bitrate<=w.D?D.push(Z):M.push(Z);D.sort(function(k,b){return b.bitrate-k.bitrate}); M.sort(function(k,b){return k.bitrate-b.bitrate}); w.V=D.concat(M)}; fN=function(w,D,M){this.T=w;this.V=D;this.expiration=M;this.Zv=null}; ElG=function(w,D){if(!(e$||XN()||rz()))return null;w=k9G(D,w.C("html5_filter_fmp4_in_hls"));if(!w)return null;D=[];for(var M={},L=g.x(Object.keys(w)),Z=L.next();!Z.done;Z=L.next()){Z=g.x(w[Z.value]);for(var k=Z.next();!k.done;k=Z.next()){var b=k.value;b.dW&&(k=b.dW.getId(),M[k]||(b=new g.HO(k,b.dW),M[k]=b,D.push(b)))}}return D.length>0?D:null}; $Vl=function(w,D,M,L,Z,k,b){if(!(e$||XN()||rz()))return jJ();var C={},l=p1k(M),E=k9G(M,w.C("html5_filter_fmp4_in_hls"),w.W.G,C);if(!E)return b({noplst:1}),jJ();WVR(E);M={};var p=(M.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",M),W;M=[];var h=[],t=[],d=null,N="";L=L&&L.match(/hls_timedtext_playlist/)?new Z$G({itag:"0",url:L,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,dW:new g.GH("English","en",!1)}):null;for(var n=g.x(Object.keys(E)),v=n.next();!v.done;v=n.next())if(v=v.value,!w.C("html5_disable_drm_hfr_1080")|| v!=="383"&&v!=="373"){v=g.x(E[v]);for(var G=v.next();!G.done;G=v.next())if(G=G.value,G.width){for(var f=g.x(G.V),e=f.next();!e.done;e=f.next())if(e=e.value,E[e]){G.T=e;break}G.T||(G.T=hTC(E,G));if(f=E[G.T])if(M.push(G),G.f6==="fairplay"&&(W=p),e="",G.tp==="PQ"?e="smpte2084":G.tp==="HLG"&&(e="arib-std-b67"),e&&(N=e),t.push(t0C(f,[G],L,k,G.itag,G.width,G.height,G.fps,l,void 0,void 0,W,e)),!d||G.width*G.height*G.fps>d.width*d.height*d.fps)d=G}else h.push(G)}else C[v]="disdrmhfr";t.reduce(function(S, K){return K.getInfo().isEncrypted()&&S},!0)&&(W=p); Z=Math.max(Z,0);p=d||{};E=p.fps===void 0?0:p.fps;d=p.width===void 0?0:p.width;p=p.height===void 0?0:p.height;n=w.C("html5_native_audio_track_switching");t.push(t0C(h,M,L,k,"93",d,p,E,l,"auto",Z,W,N,n));Object.entries(C).length&&b(C);return cn(w.W,t,$2(w,D),!1)}; t0C=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t){for(var d=0,N="",n=g.x(w),v=n.next();!v.done;v=n.next())v=v.value,N||(N=v.itag),v.audioChannels&&v.audioChannels>d&&(d=v.audioChannels,N=v.itag);Z=new el(Z,"application/x-mpegURL",{audio:new N$(0,d),video:new B_(k,b,C,null,void 0,E,void 0,void 0,h),f6:W,Rr:N});w=new b$T(w,D,M?[M]:[],L,!!t);w.D=p?p:1369843;return new fN(Z,w,l)}; p1k=function(w){w=g.x(w);for(var D=w.next();!D.done;D=w.next())if(D=D.value,D.url&&(D=D.url.split("expire/"),!(D.length<=1)))return+D[1].split("/")[0];return NaN}; hTC=function(w,D){for(var M=g.x(Object.keys(w)),L=M.next();!L.done;L=M.next()){L=L.value;var Z=w[L][0];if(!Z.width&&Z.f6===D.f6&&!Z.audioChannels)return L}return""}; WVR=function(w){for(var D=new Set,M=g.x(Object.values(w)),L=M.next();!L.done;L=M.next())L=L.value,L.length&&(L=L[0],L.height&&L.codecs.startsWith("vp09")&&D.add(L.height));M=[];if(D.size){L=g.x(Object.keys(w));for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,w[Z].length){var k=w[Z][0];k.height&&D.has(k.height)&&!k.codecs.startsWith("vp09")&&M.push(Z)}}D=g.x(M);for(M=D.next();!M.done;M=D.next())delete w[M.value]}; qi=function(w,D){this.T=w;this.V=D}; i$C=function(w,D,M,L){var Z=[];M=g.x(M);for(var k=M.next();!k.done;k=M.next()){var b=k.value;if(b.url){k=new g.S_(b.url,!0);if(b.s){var C=k,l=b.sp,E=Q2G(decodeURIComponent(b.s));C[Y[38]](l,encodeURIComponent(E))}C=g.x(Object.keys(L));for(l=C.next();!l.done;l=C.next())l=l.value,k.set(l,L[l]);b=wk(b.type,b.quality,b.itag,b.width,b.height);Z.push(new qi(b,k))}}return cn(w.W,Z,$2(w,D),!1)}; r0=function(w,D){this.T=w;this.V=D}; dVC=function(w,D,M){var L=[];M=g.x(M);for(var Z=M.next();!Z.done;Z=M.next())if((Z=Z.value)&&Z.url){var k=wk(Z.type,"medium","0");L.push(new r0(k,Z.url))}return cn(w.W,L,$2(w,D),!1)}; yeG=function(w,D){var M=[],L=wk(D.type,"auto",D.itag);M.push(new r0(L,D.url));return cn(w.W,M,!1,!0)}; UVT=function(w){return w&&IJN[w]?IJN[w]:null}; xVG=function(w){switch(w){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":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 w;default:return"sabr.config"}}; NVa=function(w){if(w=w.commonConfig)this.url=w.url,this.urlQueryOverride=w.urlQueryOverride,w.ustreamerConfig&&(this.Ft=ap(w.ustreamerConfig)||void 0)}; H$K=function(w,D){var M;if(D=D==null?void 0:(M=D.watchEndpointSupportedOnesieConfig)==null?void 0:M.html5PlaybackOnesieConfig)w.xE=new NVa(D)}; g.eZ=function(w){w=w===void 0?{}:w;this.languageCode=w.languageCode||"";this.languageName=w.languageName||null;this.kind=w.kind||"";this.name=w.name===void 0?null:w.name;this.displayName=w.displayName||null;this.id=w.id||null;this.T=w.is_servable||!1;this.isTranslateable=w.is_translateable||!1;this.url=w.url||null;this.vssId=w.vss_id||"";this.isDefault=w.is_default||!1;this.translationLanguage=w.translationLanguage||null;this.xtags=w.xtags||"";this.captionId=w.captionId||""}; g.TA=function(w){var D={languageCode:w.languageCode,languageName:w.languageName,displayName:g.Xb(w),kind:w.kind,name:w.name,id:w.id,is_servable:w.T,is_default:w.isDefault,is_translateable:w.isTranslateable,vss_id:w.vssId};w.xtags&&(D.xtags=w.xtags);w.captionId&&(D.captionId=w.captionId);w.translationLanguage&&(D.translationLanguage=w.translationLanguage);return D}; g.uw=function(w){return w.translationLanguage?w.translationLanguage.languageCode:w.languageCode}; g.jGr=function(w){var D=w.vssId;w.translationLanguage&&D&&(D="t"+D+"."+g.uw(w));return D}; g.Xb=function(w){var D=[];if(w.displayName)D.push(w.displayName);else{var M=w.languageName||"";D.push(M);w.kind==="asr"&&M.indexOf("(")===-1&&D.push(" (Automatic Captions)");w.name&&D.push(" - "+w.name)}w.translationLanguage&&D.push(" >> "+w.translationLanguage.languageName);return D.join("")}; nla=function(w,D,M,L){w||(w=D&&glK.hasOwnProperty(D)&&RTK.hasOwnProperty(D)?RTK[D]+"_"+glK[D]:void 0);D=w;if(!D)return null;w=D.match(olJ);if(!w||w.length!==5)return null;if(w=D.match(olJ)){var Z=Number(w[3]),k=[7,8,10,5,6];w=!(Number(w[1])===1&&Z===8)&&k.indexOf(Z)>=0}else w=!1;return M||L||w?D:null}; SZ=function(w,D){for(var M={},L=g.x(Object.keys(FVN)),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var k=D?D+Z:Z;k=w[k+"_webp"]||w[k];g.ep(k)&&(M[FVN[Z]]=k)}return M}; Qq=function(w){var D={};if(!w||!w.thumbnails)return D;w=w.thumbnails.filter(function(C){return!!C.url}); w.sort(function(C,l){return C.width-l.width||C.height-l.height}); for(var M=g.x(Object.keys(G9J)),L=M.next();!L.done;L=M.next()){var Z=Number(L.value);L=G9J[Z];for(var k=g.x(w),b=k.next();!b.done;b=k.next())if(b=b.value,b.width>=Z){Z=sGG(b.url);g.ep(Z)&&(D[L]=Z);break}}(w=w.pop())&&w.width>=1280&&(w=sGG(w.url),g.ep(w)&&(D["maxresdefault.jpg"]=w));return D}; sGG=function(w){return w.startsWith("//")?"https:"+w:w}; J6=function(w){return w&&w.baseUrl||""}; zA=function(w){w=g.Kj(w);for(var D=g.x(Object.keys(w)),M=D.next();!M.done;M=D.next()){M=M.value;var L=w[M];w[M]=Array.isArray(L)?L[0]:L}return w}; aJJ=function(w,D){w.botguardData=D.playerAttestationRenderer.botguardData;D=D.playerAttestationRenderer.challenge;D!=null&&(w.cw=D)}; BVN=function(w,D){D=g.x(D);for(var M=D.next();!M.done;M=D.next()){M=M.value;var L=M.interstitials.map(function(b){var C=g.Q(b,vlR);if(C)return{is_yto_interstitial:!0,raw_player_response:C};if(b=g.Q(b,ceK))return Object.assign({is_yto_interstitial:!0},PP(b))}); L=g.x(L);for(var Z=L.next();!Z.done;Z=L.next())switch(Z=Z.value,M.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":w.interstitials=w.interstitials.concat({time:0,playerVars:Z,LS:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":w.interstitials=w.interstitials.concat({time:0x7ffffffffffff,playerVars:Z,LS:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var k=Number(M.podConfig.timeToInsertAtMillis);w.interstitials=w.interstitials.concat({time:k,playerVars:Z, LS:k===0?5:7})}}}; fJN=function(w,D){if(D=D.find(function(M){return!(!M||!M.tooltipRenderer)}))w.tooltipRenderer=D.tooltipRenderer}; q_x=function(w,D){D.subscribeCommand&&(w.subscribeCommand=D.subscribeCommand);D.unsubscribeCommand&&(w.unsubscribeCommand=D.unsubscribeCommand);D.addToWatchLaterCommand&&(w.addToWatchLaterCommand=D.addToWatchLaterCommand);D.removeFromWatchLaterCommand&&(w.removeFromWatchLaterCommand=D.removeFromWatchLaterCommand);D.getSharePanelCommand&&(w.getSharePanelCommand=D.getSharePanelCommand)}; reC=function(w,D){D!=null?(w.eZ=D,w.yZ=!0):(w.eZ="",w.yZ=!1)}; Vq=function(w,D){this.type=w||"";this.id=D||""}; Pn=function(w){return new Vq(w.substring(0,2),w.substring(2))}; OK=function(w,D){this.P_=w;this.author="";this.Po=null;this.playlistLength=0;this.T=this.sessionData=null;this.U={};this.title="";if(D){this.author=D.author||D.playlist_author||"";this.title=D.playlist_title||"";if(w=D.session_data)this.sessionData=zQ(w,"&");var M;this.T=((M=D.thumbnail_ids)==null?void 0:M.split(",")[0])||null;this.U=SZ(D,"playlist_");this.videoId=D.video_id||void 0;if(M=D.list)switch(D.listType){case "user_uploads":this.playlistId=(new Vq("UU","PLAYER_"+M)).toString();break;default:if(w= D.playlist_length)this.playlistLength=Number(w)||0;this.playlistId=Pn(M).toString();if(D=D.video)this.videoId=(D[0]||null).video_id||void 0}else D.playlist&&(this.playlistLength=D.playlist.toString().split(",").length)}}; KN=function(w,D){this.P_=w;this.Wi=this.author="";this.Po=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.r6=this.lengthText="";this.sessionData=null;this.U={};this.title="";if(D){this.ariaLabel=D.aria_label||void 0;this.author=D.author||"";this.Wi=D.Wi||"";if(w=D.endscreen_autoplay_session_data)this.Po=zQ(w,"&");this.El=D.El;this.isLivePlayback=D.live_playback==="1";this.isUpcoming=!!D.isUpcoming;if(w=D.length_seconds)this.lengthSeconds=typeof w==="string"?Number(w):w;this.lengthText= D.lengthText||"";this.r6=D.r6||"";this.publishedTimeText=D.publishedTimeText||void 0;if(w=D.session_data)this.sessionData=zQ(w,"&");this.shortViewCount=D.short_view_count_text||void 0;this.U=SZ(D);this.title=D.title||"";this.videoId=D.docid||D.video_id||D.videoId||D.id||void 0;this.watchUrl=D.watchUrl||void 0}}; eTK=function(w){var D,M,L=(D=w.getWatchNextResponse())==null?void 0:(M=D.contents)==null?void 0:M.twoColumnWatchNextResults,Z,k,b,C,l;w=(Z=w.getWatchNextResponse())==null?void 0:(k=Z.playerOverlays)==null?void 0:(b=k.playerOverlayRenderer)==null?void 0:(C=b.endScreen)==null?void 0:(l=C.watchNextEndScreenRenderer)==null?void 0:l.results;if(!w){var E,p;w=L==null?void 0:(E=L.endScreen)==null?void 0:(p=E.endScreen)==null?void 0:p.results}return w}; g.A6=function(w){var D,M,L;w=g.Q((D=w.getWatchNextResponse())==null?void 0:(M=D.playerOverlays)==null?void 0:(L=M.playerOverlayRenderer)==null?void 0:L.decoratedPlayerBarRenderer,mw);return g.Q(w==null?void 0:w.playerBar,X1k)}; TVK=function(w){this.T=w.playback_progress_0s_url;this.L=w.playback_progress_2s_url;this.V=w.playback_progress_10s_url}; uGK=function(){if(wb===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(D){}a:{try{var w=!!self.localStorage}catch(D){w=!1}if(w&&(w=g.F3(g.rQ()+"::yt-player"))){wb=new as(w);break a}wb=void 0}}return wb}; g.DX=function(){var w=uGK();if(!w)return{};try{var D=w.get("yt-player-lv");return JSON.parse(D||"{}")}catch(M){return{}}}; g.S_r=function(w){var D=uGK();D&&(w=JSON.stringify(w),D.set("yt-player-lv",w))}; g.MQ=function(w){return g.DX()[w]||0}; g.LL=function(w,D){var M=g.DX();D!==M[w]&&(D!==0?M[w]=D:delete M[w],g.S_r(M))}; g.ZX=function(w){return g.B(function(D){return D.return(g.ff(QGr(),w))})}; bf=function(w,D,M,L,Z,k,b,C){var l,E,p,W,h,t;return g.B(function(d){switch(d.T){case 1:return l=g.MQ(w),l===4?d.return(4):g.c(d,g.QX(),2);case 2:E=d.V;if(!E)throw g.h5("wiac");if(!C||b===void 0){d.KV(3);break}return g.c(d,Jea(C,b),4);case 4:b=d.V;case 3:return p=M.lastModified||"0",g.c(d,g.ZX(E),5);case 5:return W=d.V,g.jN(d,6),ki++,g.c(d,g.j$(W,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",J1:!0},function(N){if(k!==void 0&&b!==void 0){var n=""+w+"|"+D.id+"|"+p+"|"+String(k).padStart(10, "0");n=g.g_(N.objectStore("media"),b,n)}else n=g.$q.resolve(void 0);var v=zTj(w,D.GC()),G=zTj(w,!D.GC()),f={fmts:V0N(L),format:M||{}};v=g.g_(N.objectStore("index"),f,v);var e=L.downloadedEndTime===-1;f=e?N.objectStore("index").get(G):g.$q.resolve(void 0);var S={fmts:"music",format:{}};N=e&&Z&&!D.GC()?g.g_(N.objectStore("index"),S,G):g.$q.resolve(void 0);return g.$q.all([N,f,n,v]).then(function(K){K=g.x(K);K.next();K=K.next().value;ki--;var V=g.MQ(w);if(V!==4&&e&&Z||K!==void 0&&g.PuT(K.fmts))V=1,g.LL(w, V);return V})}),8); case 8:return d.return(d.V);case 6:h=g.FK(d);ki--;t=g.MQ(w);if(t===4)return d.return(t);g.LL(w,4);throw h;}})}; g.O$k=function(w){var D,M;return g.B(function(L){if(L.T==1)return g.c(L,g.QX(),2);if(L.T!=3){D=L.V;if(!D)throw g.h5("ri");return g.c(L,g.ZX(D),3)}M=L.V;return L.return(g.j$(M,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(Z){var k=IDBKeyRange.bound(w+"|",w+"~");return Z.objectStore("index").getAll(k).then(function(b){return b.map(function(C){return C?C.format:{}})})}))})}; mVC=function(w,D,M,L,Z){var k,b,C;return g.B(function(l){if(l.T==1)return g.c(l,g.QX(),2);if(l.T!=3){k=l.V;if(!k)throw g.h5("rc");return g.c(l,g.ZX(k),3)}b=l.V;C=g.j$(b,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(E){var p=""+w+"|"+D+"|"+M+"|"+String(L).padStart(10,"0");return E.objectStore("media").get(p)}); return Z?l.return(C.then(function(E){if(E===void 0)throw Error("No data from indexDb");return KVj(Z,E)}).catch(function(E){throw new g.qA("Error while reading chunk: "+E.name+", "+E.message); })):l.return(C)})}; g.PuT=function(w){return w?w==="music"?!0:w.includes("dlt=-1")||!w.includes("dlt="):!1}; zTj=function(w,D){return""+w+"|"+(D?"v":"a")}; V0N=function(w){var D={};return V6((D.dlt=w.downloadedEndTime.toString(),D.mket=w.maxKnownEndTime.toString(),D.avbr=w.averageByteRate.toString(),D))}; wXl=function(w){var D={},M={};w=g.x(w);for(var L=w.next();!L.done;L=w.next()){var Z=L.value,k=Z.split("|");Z.match(g.AeI)?(L=Number(k.pop()),isNaN(L)?M[Z]="?":(k=k.join("|"),(Z=D[k])?(k=Z[Z.length-1],L===k.end+1?k.end=L:Z.push({start:L,end:L})):D[k]=[{start:L,end:L}])):M[Z]="?"}w=g.x(Object.keys(D));for(L=w.next();!L.done;L=w.next())L=L.value,M[L]=D[L].map(function(b){return b.start+"-"+b.end}).join(","); return M}; Yi=function(w){g.mI.call(this);this.T=null;this.L=new aF;this.T=null;this.Y=new Set;this.crossOrigin=w||""}; D8x=function(w,D,M){for(M=CL(w,M);M>=0;){var L=w.levels[M];if(L.isLoaded(lf(L,D))&&(L=g.EN(L,D)))return L;M--}return g.EN(w.levels[0],D)}; LiN=function(w,D,M){M=CL(w,M);for(var L,Z;M>=0;M--)if(L=w.levels[M],Z=lf(L,D),!L.isLoaded(Z)){L=w;var k=M,b=k+"-"+Z;L.Y.has(b)||(L.Y.add(b),L.L.enqueue(k,{uP:k,fg:Z}))}MaJ(w)}; MaJ=function(w){if(!w.T&&!w.L.isEmpty()){var D=w.L.remove();w.T=ZOa(w,D)}}; ZOa=function(w,D){var M=document.createElement("img");w.crossOrigin&&(M.crossOrigin=w.crossOrigin);M.src=w.levels[D.uP].M8(D.fg);M.onload=function(){var L=D.uP,Z=D.fg;w.T!==null&&(w.T.onload=null,w.T=null);L=w.levels[L];L.loaded.add(Z);MaJ(w);var k=L.columns*L.rows;Z*=k;L=Math.min(Z+k-1,L.CK()-1);Z=[Z,L];w.publish("l",Z[0],Z[1])}; return M}; g.pL=function(w,D,M,L){this.level=w;this.D=D;this.loaded=new Set;this.level=w;this.D=D;w=M.split("#");this.width=Math.floor(Number(w[0]));this.height=Math.floor(Number(w[1]));this.frameCount=Math.floor(Number(w[2]));this.columns=Math.floor(Number(w[3]));this.rows=Math.floor(Number(w[4]));this.T=Math.floor(Number(w[5]));this.L=w[6];this.signature=w[7];this.videoLength=L}; lf=function(w,D){return Math.floor(D/(w.columns*w.rows))}; g.EN=function(w,D){D>=w.UE()&&w.PK();var M=lf(w,D),L=w.columns*w.rows,Z=D%L;D=Z%w.columns;Z=Math.floor(Z/w.columns);var k=w.PK()+1-L*M;if(k1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; kRC=function(w,D,M){return(w=w.levels[D])?w.jz(M):-1}; CL=function(w,D){var M=w.D.get(D);if(M)return M;M=w.levels.length;for(var L=0;L=D)return w.D.set(D,L),L;w.D.set(D,M-1);return M-1}; h0=function(w,D,M,L){M=M.split("#");M=[M[1],M[2],0,M[3],M[4],-1,M[0],""].join("#");g.pL.call(this,w,D,M,0);this.V=null;this.W=L?2:0}; t0=function(w,D,M,L){WB.call(this,w,0,void 0,D,!(L===void 0||!L));for(w=0;w=0?Wr.countDownSecsForFullscreen*1E3:-1);w.C("web_autonav_color_transition")&&Wr.watchToWatchTransitionRenderer&&(w.watchToWatchTransitionRenderer=g.Q(Wr.watchToWatchTransitionRenderer, U8r))}var yC=eTK(w);if(yC){var WC,Yd,UB,xn=yC==null?void 0:(WC=yC[0])==null?void 0:(Yd=WC.endScreenVideoRenderer)==null?void 0:(UB=Yd.navigationEndpoint)==null?void 0:UB.clickTrackingParams,fJ=g.jA(w);xn&&fJ&&(fJ.sessionData={itct:xn})}w.fV.currentVideoThumbnail&&(w.U=Qq(w.fV.currentVideoThumbnail));var Xy,T5,u0,Dr,qp,xQ=(Xy=w.fV)==null?void 0:(T5=Xy.contents)==null?void 0:(u0=T5.twoColumnWatchNextResults)==null?void 0:(Dr=u0.results)==null?void 0:(qp=Dr.results)==null?void 0:qp.contents;if(xQ&&xQ[1]){var r1, Mt,S5,Rd,Ur=(r1=xQ[1].videoSecondaryInfoRenderer)==null?void 0:(Mt=r1.owner)==null?void 0:(S5=Mt.videoOwnerRenderer)==null?void 0:(Rd=S5.thumbnail)==null?void 0:Rd.thumbnails;Ur&&Ur.length&&(w.profilePicture=Ur[Ur.length-1].url)}var BP=Dx(D),Lv,N9=(Lv=w.getWatchNextResponse())==null?void 0:Lv.onResponseReceivedEndpoints;if(N9)for(var Zr=g.x(N9),ek=Zr.next();!ek.done;ek=Zr.next()){var He=ek.value;g.Q(He,gb)&&(w.N6=g.Q(He,gb));var MR=g.Q(He,x8j),OU=void 0;if((OU=MR)==null?0:OU.entityKeys)w.LT=MR.entityKeys|| [],MR.visibleOnLoadKeys&&(w.visibleOnLoadKeys=MR.visibleOnLoadKeys)}if(w.C("web_key_moments_markers")){var W$=g.Ry.getState().entities,bj=g.zg("visibility_override","markersVisibilityOverrideEntity");var fj=PU(W$,"markersVisibilityOverrideEntity",bj);w.Nd=(fj==null?void 0:fj.videoId)===(w.videoId||BP)&&(fj==null?0:fj.visibilityOverrideMarkersKey)?fj.visibilityOverrideMarkersKey:w.visibleOnLoadKeys;w.visibleOnLoadKeys=[].concat(g.tG(w.Nd))}}}; NQ=function(w){var D;return((D=w.autoplaySwitchButtonRenderer)==null?void 0:D.enabled)!==void 0}; oy=function(w){return!!(w.L&&w.L.videoInfos&&w.L.videoInfos.length)}; g.vB=function(w){var D=w.G;w.C("html5_gapless_unlimit_format_selection")&&nL(w)&&(D=!1);var M=!!w.T&&w.T.Yl,L=w.P_,Z=w.f3(),k=F9(w),b=w.XE,C=D,l=w.isOtf();D=w.Tn();var E=w.pV,p=w.getUserAudio51Preference(),W=GB(w),h=sN(w),t=new BkJ(L);if(L.gW()||L.C("html5_logging_format_selection"))t.V=!0;t.jk=k;t.XE=b&&L.U;t.W_=p;g.Bo("windows nt 5.1")&&!g.l3&&(t.oV=!0);if(k=Z)k=g.RI(L)?PbN(L):!1;k&&(t.y7=!0);C&&(t.oV=!0,t.Is=!0);l&&!L.C("html5_otf_prefer_vp9")&&(t.oV=!0);L.playerStyle==="picasaweb"&&(l&&(t.oV= !1),t.V7=!1);E&&(t.oV=!0);Ta(L.W,uh.CHANNELS)&&(L.C("html5_enable_ac3")&&(t.D=!0),L.C("html5_enable_eac3")&&(t.W=!0),L.C("html5_enable_ac3_gapless")&&(t.fV=!0));L.C("html5_block_8k_hfr")&&(t.Nd=!0);t.Y=g.A3(L.experiments,"html5_max_selectable_quality_ordinal");t.G=g.A3(L.experiments,"html5_min_selectable_quality_ordinal");Kg&&(t.HA=480);if(M||Z)t.V7=!1;t.EL=!1;t.disableAv1=W;M=wq(L,t.T,void 0,t.disableAv1);M>0&&M<2160&&(td()||L.C("html5_format_hybridization"))&&(t.T.supportsChangeType=+td(),t.rK= M);M>=2160&&(t.c_=!0);ALT()&&!L.C("disable_av1_setting")&&(t.T.serveVp9OverAv1IfHigherRes=0,t.Qi=!1);t.Tn=D;t.Md=g.XT||V8()&&!D?!1:!0;t.U=L.C("html5_format_hybridization");t.TU=L.C("html5_disable_encrypted_vp9_live_non_2k_4k");t.oO=h;ay(w)&&(t.FQ=w.C("html5_prefer_language_over_codec"));rz()&&w.playerResponse&&w.playerResponse.playerConfig&&w.playerResponse.playerConfig.webPlayerConfig&&w.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(t.D=!0,t.W=!0);w.G&&w.isAd()&&(w.yA&& (t.B=w.yA),w.Ts&&(t.L=w.Ts));t.Jc=w.isLivePlayback&&w.Ms()&&w.P_.C("html5_drm_live_audio_51");t.mu=w.Z6;t.Sb=!ay(w);return w.TC=t}; GB=function(w){return w.P_.C("html5_disable_av1")?!0:!1}; NNJ=function(w){xK("drm_pb_s",void 0,w.y7);w.jk||w.T&&fA(w.T);var D={};w.T&&(D=hqK(w.qf,g.vB(w),w.P_.W,w.T,function(M){return w.publish("ctmp","fmtflt",M)},!0,new Set)); D=new Wd(D,w.P_,w.oz,w.useCobaltWidevine?rz()?cB(w):!1:!1,function(M,L){w.H_(M,L)}); g.T(w,D);w.Km=!1;w.loading=!0;e1T(D,function(M){xK("drm_pb_f",void 0,w.y7);for(var L=g.x(M),Z=L.next();!Z.done;Z=L.next())switch(Z=Z.value,Z.flavor){case "fairplay":Z.jk=w.jk;Z.Ue=w.Ue;Z.Oe=w.Oe;break;case "widevine":Z.C7=w.C7}w.ao=M;if(w.ao.length>0&&(w.W=w.ao[0],w.P_.gW())){M={};L=g.x(Object.entries(w.W.T));for(Z=L.next();!Z.done;Z=L.next()){var k=g.x(Z.value);Z=k.next().value;k=k.next().value;var b="unk";(Z=Z.match(/(.*)codecs="(.*)"/))&&(b=Z[2]);M[b]=k}w.H_("drmProbe",M)}w.Wc()})}; HOR=function(w,D){if(D.length===0||BB(w))return null;w.P_.W.L&&(Kr=!0);var M=w.f6;var L=w.lengthSeconds,Z=w.isLivePlayback,k=w.G3,b=w.P_,C=ULx(D);if(Z||k){b=b.experiments;L=new By("",b,!0);L.V=!k;L.Yl=!0;L.isManifestless=!0;L.isLive=!k;L.G3=k;D=g.x(D);for(Z=D.next();!Z.done;Z=D.next()){var l=Z.value;Z=rg(l,M);C=Op(l);C=XE(C.QI||l.url||"",C.GA,C.s);var E=C.get("id");E&&E.includes("%7E")&&(L.y7=!0);var p=void 0;E=(p=b)==null?void 0:p.ek("html5_max_known_end_time_rebase");p=Number(l.targetDurationSec|| 5);l=Number(l.maxDvrDurationSec||14400);var W=Number(C.get("mindsq")||C.get("min_sq")||"0"),h=Number(C.get("maxdsq")||C.get("max_sq")||"0")||Infinity;L.YP=L.YP||W;L.gZ=L.gZ||h;var t=!AF(Z.mimeType);C&&at(L,new ic(C,Z,{y8:p,MQ:t,FZ:l,YP:W,gZ:h,Uf:300,G3:k,OJ:E}))}M=L}else if(C==="FORMAT_STREAM_TYPE_OTF"){L=L===void 0?0:L;k=new By("",b.experiments,!1);k.duration=L||0;b=g.x(D);for(L=b.next();!L.done;L=b.next())L=L.value,D=rg(L,M,k.duration),Z=Op(L),(Z=XE(Z.QI||L.url||"",Z.GA,Z.s))&&(D.streamType==="FORMAT_STREAM_TYPE_OTF"? at(k,new dg(Z,D,"sq/0")):at(k,new FE(Z,D,Kd(L.initRange),Kd(L.indexRange))));k.isOtf=!0;M=k}else{L=L===void 0?0:L;k=new By("",b.experiments,!1);k.duration=L||0;b=g.x(D);for(L=b.next();!L.done;L=b.next())C=L.value,L=rg(C,M,k.duration),D=Kd(C.initRange),Z=Kd(C.indexRange),E=Op(C),(C=XE(E.QI||C.url||"",E.GA,E.s))&&at(k,new FE(C,L,D,Z));M=k}k=w.isLivePlayback&&!w.G3&&!w.nV&&!w.isPremiere;w.C("html5_live_head_playable")&&(!fL(w)&&k&&w.H_("missingLiveHeadPlayable",{}),w.P_.y7==="yt"&&(M.jk=!0));return M}; BB=function(w){return rz()?!cB(w):XN()?!(!w.jk||!w.C("html5_enable_safari_fairplay")&&Nb()):!1}; cB=function(w){return w.C("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.xi=function(w,D){D=g.x(D);for(var M=D.next();!M.done;M=D.next())if(M=M.value,M.cueRangeSetIdentifier){var L=void 0;w.fU.set(M.cueRangeSetIdentifier,(L=M.playerCueRanges)!=null?L:[])}}; qQ=function(w){return!(!w.T||!w.T.isManifestless)}; rb=function(w){return w.NC?w.isLowLatencyLiveStream&&w.T!=null&&QI(w.T)>=5:w.isLowLatencyLiveStream&&w.T!=void 0&&QI(w.T)>=5}; jYa=function(w){return rz()&&cB(w)?!1:BB(w)&&(g.pc(w.P_)?!w.isLivePlayback:w.hlsvp)||!Nb()||w.D6?!0:!1}; R0k=function(w){w.loading=!0;w.wI=!1;if(gFa(w))g.O$k(w.videoId).then(function(L){var Z;if((Z=w.playerResponse)!=null&&Z.streamingData){Z=[];L=g.x(L);for(var k=L.next();!k.done;k=L.next())k=Object.assign({},k.value),k.signatureCipher="",Z.push(k);Z.length<2&&w.H_("offmlf",{len:Z.length});Z=HOR(w,Z);F9(w)&&a0J(Z,!1);eA(w,Z);w.H_("dlr",{})}else w.H_("offsdm",{cotn:w.jD?w.jD.cotn:"0",cpn:w.clientPlaybackNonce})}).then(function(){w.Wc()}); else{r9(w.wW)||g.jn(new g.qA("DASH MPD Origin invalid: ",w.wW));var D=w.wW,M=g.A3(w.P_.experiments,"dash_manifest_version")||4;D=g.dh(D,{mpd_version:M});w.isLowLatencyLiveStream&&w.latencyClass!=="NORMAL"||(D=g.dh(D,{pacing:0}));nWx(D,w.P_.experiments,w.isLivePlayback).then(function(L){w.xt()||(eA(w,L,!0),xK("mrc",void 0,w.y7),w.Wc())},function(L){w.xt()||(w.loading=!1,w.publish("dataloaderror",new g.W_("manifest.net.retryexhausted",{backend:"manifest", rc:L.status},1)))}); xK("mrs",void 0,w.y7)}}; oFr=function(w){var D;return!((D=w.P_.getWebPlayerContextConfig())==null||!D.enableProximaLowLatency)}; X9=function(w){if(!w.isProximaLatencyEligible)return 0;var D=$z();return oFr(w)?2:D===1?1:w.C("html5_enable_proxima")?2:0}; eA=function(w,D,M){M=M===void 0?!1:M;w.GP=void 0;w.T=D;g.T(w,D);D.YP=w.YP;D.gZ=w.gZ;D.c_=w.c_;D.oO=w.oO;D.GU=w.GU;w.ib&&(D.B=new Xx(w.ib));(w.f3()||g.TB(w))&&w.B.push("webgl");w.T.isLive||(w.isLivePlayback=!1);var L=D.sourceUrl.split("/");if(w.NC?L.indexOf("manifest_duration")!==-1:L.indexOf("manifest_duration")!=-1)w.HB=Number(L[L.indexOf("manifest_duration")+1]);if(D.V||D.isManifestless)D.subscribe("clienttemp",w.H_,w),M?D.subscribe("refresh",w.bk,w):D.subscribe("cuepointsadded",w.wX,w);fA(D)?w.Km= !0:$t=void 0;w.nV&&(D.D=w.nV,D.isLive=!0,w.isLivePlayback=!0);D.isPremiere=w.isPremiere;D.isLiveHeadPlayable=w.isLiveHeadPlayable}; nFC=function(w,D){var M=D||jYa(w)||w.isExternallyHostedPodcast;if(!w.T||M)return w.H_("skipDash",{dm:!!w.T,air:D,dd:w.D6,mss:Nb(),"3pp":w.isExternallyHostedPodcast}),jJ();F9(w)&&a0J(w.T,w.isLivePlayback);return gz().then(function(){return $0K(w.qf,g.vB(w),w.P_.W,w.T,w.W,function(L){return w.publish("ctmp","fmtflt",L)},w.Uw,ay(w)&&w.C("html5_enable_server_format_filter")).then(function(L){w.jc(L); w.qf.T=null;/^av/.test(w.clientPlaybackNonce)&&w.TC&&w.H_("av1",w.TC.T)})})}; GRT=function(w,D){if(D&&w.hlsvp)return jJ();if(w.hlsFormats){D=uf(w.hlsFormats);var M;if(((M=w.TC)==null?0:M.V)&&D){M=[];for(var L=g.x(D),Z=L.next();!Z.done;Z=L.next())M.push(Z.value.itag);w.H_("hlsfmt",{itags:M.join(".")})}w.DB=ElG(w.P_,D);w.DB&&Fij(w,w.DB);M=w.clientPlaybackNonce;var k,b,C,l;return $Vl(w.P_,w.isAd(),D,(l=(k=w.playerResponse)==null?void 0:(b=k.captions)==null?void 0:(C=b.playerCaptionsRenderer)==null?void 0:C.baseUrl)!=null?l:null,w.HA,M,function(E){return w.publish("ctmp","hlsflt", E)}).then(function(E){for(var p=0,W=[],h=g.x(E),t=h.next();!t.done;t=h.next()){t=t.value; var d=void 0;W.push((d=t.getInfo())==null?void 0:d.itag);var N=d=void 0;((d=t.getInfo())==null?void 0:(N=d.audio)==null?void 0:N.numChannels)>p&&(p=t.getInfo().audio.numChannels)}p>2&&w.H_("hlschl",{mn:p});var n;((n=w.TC)==null?0:n.V)&&w.H_("hlsfmtaf",{itags:W.join(".")});var v;if(w.C("html5_enable_vp9_fairplay")&&((v=w.W)==null?0:Yt(v)))for(w.H_("drm",{sbdlfbk:1}),p=g.x(w.ao),W=p.next();!W.done;W=p.next())if(W=W.value,b3(W)){w.W=W;break}SA(w,E)})}return jJ()}; sYN=function(w){if(w.isExternallyHostedPodcast&&w.X6){var D=uf(w.X6);if(!D[0])return jJ();w.ulJ=D[0];return yeG(w.P_,D[0]).then(function(M){SA(w,M)})}return w.PX&&w.nR?dVC(w.P_,w.isAd(),w.PX).then(function(M){SA(w,M)}):jJ()}; vFl=function(w){if(w.isExternallyHostedPodcast)return jJ();var D=uf(w.X6,w.Cu);if(w.hlsvp){var M=bOT(w.hlsvp,w.clientPlaybackNonce,w.HA);D.push(M)}return i$C(w.P_,w.isAd(),D,asr(w)).then(function(L){SA(w,L)})}; SA=function(w,D){w.Is=D;w.jc(new sp(g.yR(w.Is,function(M){return M.getInfo()})))}; asr=function(w){var D={cpn:w.clientPlaybackNonce,c:w.P_.T.c,cver:w.P_.T.cver};w.z0&&(D.ptk=w.z0,D.oid=w.B2,D.ptchn=w.pM,D.pltype=w.AI,w.Ao&&(D.m=w.Ao));return D}; g.QQ=function(w){return BB(w)&&w.jk?(w={},w.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",w):w.V&&w.V.f6||null}; cOJ=function(w){var D=J0(w);return D&&D.text?g.bI(D.text):w.paidContentOverlayText}; BNK=function(w){var D=J0(w);return D&&D.durationMs?v5(D.durationMs):w.paidContentOverlayDurationMs}; J0=function(w){var D,M,L;return w.playerResponse&&w.playerResponse.paidContentOverlay&&w.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.Q((D=w.fV)==null?void 0:(M=D.playerOverlays)==null?void 0:(L=M.playerOverlayRenderer)==null?void 0:L.playerDisclosure,fsJ)||null}; zB=function(w){var D="";if(w.Jy)return w.Jy;w.isLivePlayback&&(D=w.allowLiveDvr?"dvr":w.isPremiere?"lp":w.nV?"window":"live");w.G3&&(D="post");return D}; g.VQ=function(w,D){return typeof w.keywords[D]!=="string"?null:w.keywords[D]}; qXC=function(w){return!!w.bH||!!w.oI||!!w.D0||!!w.aN||w.Xb}; g.PB=function(w){return!!(w.wW||w.X6||w.PX||w.hlsvp||w.TO())}; yQ=function(w){if(w.C("html5_onesie")&&w.errorCode)return!1;var D=g.xB(w.B,"ypc");w.ypcPreview&&(D=!1);return w.q8()&&!w.loading&&(g.PB(w)||g.xB(w.B,"heartbeat")||D)}; uf=function(w,D){w=OD(w);var M={};if(D){D=g.x(D.split(","));for(var L=D.next();!L.done;L=D.next())(L=L.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(M[L[1]]={width:L[2],height:L[3]})}D=g.x(w);for(L=D.next();!L.done;L=D.next()){L=L.value;var Z=M[L.itag];Z&&(L.width=Z.width,L.height=Z.height)}return w}; taT=function(w,D){w.showShareButton=!!D;var M,L,Z=((M=g.Q(D,g.YF))==null?void 0:M.navigationEndpoint)||((L=g.Q(D,g.YF))==null?void 0:L.command);Z&&(w.Hs=!!g.Q(Z,rOK))}; YXl=function(w,D){var M=D.raw_embedded_player_response;if(!M){var L=D.embedded_player_response;L&&(M=JSON.parse(L))}M&&(w.Nm=M);if(w.Nm){w.embeddedPlayerConfig=w.Nm.embeddedPlayerConfig||null;if(M=w.Nm.videoFlags)M.playableInEmbed&&(w.allowEmbed=!0),M.isPrivate&&(w.isPrivate=!0),M.userDisplayName&&(D.user_display_name=M.userDisplayName),M.userDisplayImage&&(D.user_display_image=M.userDisplayImage);if(M=w.Nm.embedPreview){M=M.thumbnailPreviewRenderer;reC(w,M.controlBgHtml);if(L=M.defaultThumbnail)w.U= Qq(L);w.C("embeds_web_enable_search_button")&&M.searchButton&&(L=g.Q(M.searchButton,g.YF))&&(w.e4L=g.Q(L.navigationEndpoint,g.ON));(L=g.Q(M==null?void 0:M.videoDetails,e0T))&&yOr(w,D,L);L=g.Q(M==null?void 0:M.videoDetails,XXK);w.BI=!!M.addToWatchLaterButton;taT(w,M.shareButton);if(L==null?0:L.musicVideoType)w.musicVideoType=L.musicVideoType;var Z,k,b,C,l;if(L=g.Q((Z=w.getEmbeddedPlayerResponse())==null?void 0:(k=Z.embedPreview)==null?void 0:(b=k.thumbnailPreviewRenderer)==null?void 0:(C=b.playButton)== null?void 0:(l=C.buttonRenderer)==null?void 0:l.navigationEndpoint,g.HB))H$K(w,L),w.videoId=L.videoId||w.videoId;M.videoDurationSeconds&&(w.lengthSeconds=v5(M.videoDurationSeconds));M.webPlayerActionsPorting&&q_x(w,M.webPlayerActionsPorting);if(Z=g.Q(M==null?void 0:M.playlist,TNT)){w.PO=!0;k=[];b=Number(Z.currentIndex);if(Z.contents)for(C=0,l=Z.contents.length;C0:w.QF?!1:w.P_.M5||w.P_.Kx||!g.w0(w.P_)?!0:!1:(w.QF?0:w.M5)&&g.w0(w.P_)?!0:!1;w.C("html5_log_detailpage_autoplay")&&bR(w)==="detailpage"&&w.H_("autoplay_info",{autoplay:w.ou,autonav:w.isAutonav,wasDompaused:w.QF,result:D});return D}; g.E9=function(w){return w.oauthToken||w.P_.Yx}; m8I=function(w){if(w.C("html5_stateful_audio_normalization")){var D=1,M=g.A3(w.P_.experiments,"html5_default_ad_gain");M&&w.isAd()&&(D=M);var L,Z;M=(Z=(L=w.D)==null?void 0:L.audio.D)!=null?Z:w.Kr;if(M==null||isNaN(M))w=Kij(w);else{L=(0,g.IC)();w.cC=2;Z=L-w.P_.DB<=w.maxStatefulTimeThresholdSec*1E3;w.applyStatefulNormalization&&Z?w.cC=4:Z||(w.P_.zK=Infinity,w.P_.DB=NaN);Z=(w.cC===4?g.X4(w.P_.zK,w.minimumLoudnessTargetLkfs,w.loudnessTargetLkfs):w.loudnessTargetLkfs)-M;if(w.cC!==4){var k,b,C,l,E=((k= w.playerResponse)==null?void 0:(b=k.playerConfig)==null?void 0:(C=b.audioConfig)==null?void 0:(l=C.loudnessNormalizationConfig)==null?void 0:l.statelessLoudnessAdjustmentGain)||0;Z+=E}Z=Math.min(Z,0);w.preserveStatefulLoudnessTarget&&(w.P_.zK=M+Z,w.P_.DB=L);w=Math.min(1,Math.pow(10,Z/20))||D}}else w=Kij(w);return w}; Kij=function(w){var D=1,M=g.A3(w.P_.experiments,"html5_default_ad_gain");M&&w.isAd()&&(D=M);if(w.Qp){var L,Z;M=((L=w.D)==null?void 0:L.audio.L)!=null?(Z=w.D)==null?void 0:Z.audio.L:w.wz}else{var k;M=((k=w.D)==null?void 0:k.audio.L)||w.wz}isNaN(M)||(w.cC=1);return Math.min(1,Math.pow(10,-M/20))||D}; F9=function(w){var D=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],M=i3(w.P_)==="TVHTML5_SIMPLY"&&w.P_.T.ctheme==="MUSIC";!w.kP&&(g.Fs(w.P_)||g.Hn(w.P_)||M)&&(D.includes(w.musicVideoType)||w.isExternallyHostedPodcast)&&(w.kP=!0);if(D=g.q2())D=/Starboard\/([0-9]+)/.exec(g.qc()),D=(D?parseInt(D[1],10):NaN)<10;M=w.P_;M=(i3(M)==="TVHTML5_CAST"||i3(M)==="TVHTML5"&&(M.T.cver.startsWith("6.20130725")||M.T.cver.startsWith("6.20130726")))&&w.P_.T.ctheme==="MUSIC";var L;if(L=!w.kP)M||(M= w.P_,M=i3(M)==="TVHTML5"&&M.T.cver.startsWith("7")),L=M;L&&!D&&(D=w.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",M=(w.C("cast_prefer_audio_only_for_atv_and_uploads")||w.C("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&w.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",D||M||w.isExternallyHostedPodcast)&&(w.kP=!0);return w.P_.deviceIsAudioOnly||w.kP&&w.P_.U}; sN=function(w){var D,M,L;return((D=w.playerResponse)==null?void 0:(M=D.playerConfig)==null?void 0:(L=M.compositeVideoConfig)==null?void 0:L.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; AOl=function(w){var D,M,L,Z=(D=w.playerResponse)==null?void 0:(M=D.playerConfig)==null?void 0:(L=M.compositeVideoConfig)==null?void 0:L.sourceConfigs,k,b,C;w=(k=w.playerResponse)==null?void 0:(b=k.playerConfig)==null?void 0:(C=b.compositeVideoConfig)==null?void 0:C.defaultActiveSourceVideoId;if(!Z||!w)return"";Z=g.x(Z);for(k=Z.next();!k.done;k=Z.next())if(k=k.value,k.videoId===w&&k.audioTracks)for(k=g.x(k.audioTracks),b=k.next();!b.done;b=k.next())if(b=b.value,b.isDefaultForSource)return b.id||""; return""}; g.whN=function(w){return w.Yl()&&ay(w)}; pZ=function(w){var D,M,L;return!!((D=w.playerResponse)==null?0:(M=D.playerConfig)==null?0:(L=M.mediaCommonConfig)==null?0:L.splitScreenEligible)}; hW=function(w){var D;return!((D=w.playerResponse)==null||!D.compositePlayabilityStatus)}; DeK=function(w){return isNaN(w)?0:Math.max((Date.now()-w)/1E3-30,0)}; M6N=function(w){return w.oC&&!w.xH}; tW=function(w){return!(!w.uv||!w.P_.U)&&w.TO()}; $s=function(w){return w.BV&&w.enableServerStitchedDai}; LQx=function(w){return w.By&&!w.ib}; ay=function(w){var D=w.C("html5_enable_sabr_on_drive")&&w.P_.y7==="gd";if(w.Fb)return w.By&&w.H_("fds",{fds:!0},!0),!1;if(w.P_.y7!=="yt"&&!D)return w.By&&w.H_("dsvn",{ns:w.P_.y7},!0),!1;if(w.cotn||!w.T||w.T.isOtf&&!w.C("html5_enable_sabr_otf_in_client")||w.L&&!w.L.T||w.T8&&!w.C("html5_enable_sabr_csdai"))return!1;if(w.C("html5_use_sabr_requests_for_debugging"))return!0;w.By&&w.H_("esfw",{usbc:w.By,hsu:!!w.ib},!0);if(w.By&&w.ib)return!0;if(w.C("html5_remove_client_sabr_determination"))return!1;var M= !w.T.Yl&&!w.Ms();D=M&&dq&&w.C("html5_enable_sabr_vod_streaming_xhr");M=M&&!dq&&w.C("html5_enable_sabr_vod_non_streaming_xhr");var L=iR(w),Z=w.C("html5_enable_sabr_drm_vod_streaming_xhr")&&dq&&w.Ms()&&!w.T.Yl&&(w.drmProduct==="1"?!1:!0);(D=D||M||L||Z)&&!w.ib&&w.H_("sabr",{loc:"m"},!0);return D&&!!w.ib}; iR=function(w){var D;if(!(D=dq&&w.Yl()&&w.Ms()&&(w.drmProduct==="1"?!1:!0)&&w.C("html5_sabr_live_drm_streaming_xhr"))){D=w.Yl()&&!w.Ms()&&dq;var M=w.Yl()&&w.latencyClass!=="ULTRALOW"&&!w.isLowLatencyLiveStream&&w.C("html5_sabr_live_normal_latency_streaming_xhr"),L=w.isLowLatencyLiveStream&&w.C("html5_sabr_live_low_latency_streaming_xhr"),Z=w.latencyClass==="ULTRALOW"&&w.C("html5_sabr_live_ultra_low_latency_streaming_xhr");D=D&&(M||L||Z)}M=D;D=w.enableServerStitchedDai&&M&&w.C("html5_enable_sabr_ssdai_streaming_xhr"); M=!w.enableServerStitchedDai&&M;L=w.Yl()&&!dq&&w.C("html5_enable_sabr_live_non_streaming_xhr");w=dq&&(w.rH()||pZ(w)&&w.C("html5_enable_sabr_for_lifa_eligible_streams"));return D||M||L||w}; gFa=function(w){var D;if(D=!!w.cotn)D=w.videoId,D=!!D&&g.MQ(D)===1;return D&&!w.uv}; g.dZ=function(w){if(!w.T||!w.V||!w.D)return!1;var D=w.T.T,M=!!D[w.V.id]&&za(D[w.V.id].Zv.T);D=!!D[w.D.id]&&za(D[w.D.id].Zv.T);return(w.V.itag==="0"||M)&&D}; yP=function(w){return w.oN?["OK","LIVE_STREAM_OFFLINE"].includes(w.oN.status):!0}; u5I=function(w){return(w=w.PC)&&w.showError?w.showError:!1}; Io=function(w,D){return w.C(D)?!0:(w.fflags||"").includes(D+"=true")}; Wir=function(w,D){D.inlineMetricEnabled&&(w.inlineMetricEnabled=!0);D.playback_progress_0s_url&&(w.aN=new TVK(D));if(D=D.video_masthead_ad_quartile_urls)w.oI=D.quartile_0_url,w.d1=D.quartile_25_url,w.lJ=D.quartile_50_url,w.IA=D.quartile_75_url,w.ji=D.quartile_100_url,w.D0=D.quartile_0_urls,w.nB=D.quartile_25_urls,w.Jp=D.quartile_50_urls,w.gF=D.quartile_75_urls,w.DW=D.quartile_100_urls}; pXR=function(w){var D={};w=g.x(w);for(var M=w.next();!M.done;M=w.next()){M=M.value;var L=M.split("=");L.length===2?D[L[0]]=L[1]:D[M]=!0}return D}; lsI=function(w){if(w){if(UmS(w))return w;w=xmx(w);if(UmS(w,!0))return w}return""}; g.ZPj=function(w){return w.captionsLanguagePreference||w.P_.captionsLanguagePreference||g.VQ(w,"yt:cc_default_lang")||w.P_.UV}; U9=function(w){return!(!w.isLivePlayback||!w.hasProgressBarBoundaries())}; g.jA=function(w){var D;return w.DH||((D=w.suggestions)==null?void 0:D[0])||null}; g.xs=function(w){var D,M;return!!((D=w.embeddedPlayerConfig)==null?0:(M=D.embeddedPlayerFlags)==null?0:M.enableMusicUx)}; kfJ=function(w){return w.G||w.C("web_player_media_session_infinity")&&w.isLivePlayback}; Ny=function(w){return w.P_.D&&w.isPrivate}; bPC=function(w){var D,M;return!!((D=w.playerResponse)==null?0:(M=D.playerConfig)==null?0:M.granularVariableSpeedConfig)}; g.jf=function(w){var D=w.X(),M=g.H$(D),L=D.wW;(D.C("embeds_web_enable_iframe_api_send_full_embed_url")||D.C("embeds_web_enable_rcat_validation_in_havs")||D.C("embeds_enable_autoplay_and_visibility_signals"))&&g.bw(D)&&(L&&(M.thirdParty=Object.assign({},M.thirdParty,{embedUrl:L})),ZlG(M,w));if(L=w.Jc)M.clickTracking={clickTrackingParams:L};else if(g.bw(w.X())&&g.Xg("EVENT_ID"))M.clickTracking={clickTrackingParams:g.Xg("EVENT_ID")};else if(D.C("html5_log_missing_itct")){var Z;L=new g.qA("Missing ITCT in InnerTubeContext", {isAd:w.isAd(),bW_:(Z=D.getWebPlayerContextConfig())==null?void 0:Z.contextId});g.HL(L)}Z=M.client||{};L="EMBED";var k=bR(w);k==="leanback"?L="WATCH":D.C("gvi_channel_client_screen")&&k==="profilepage"?L="CHANNEL":w.pV?L="LIVE_MONITOR":k==="detailpage"?L="WATCH_FULL_SCREEN":k==="adunit"?L="ADUNIT":k==="sponsorshipsoffer"&&(L="UNKNOWN");Z.clientScreen=L;if(D=w.kidsAppInfo)Z.kidsAppInfo=JSON.parse(D);(L=w.JU)&&!D&&(Z.kidsAppInfo={contentSettings:{ageUpMode:Yyk[L]}});if(D=w.HE)Z.unpluggedAppInfo={enableFilterMode:!0}; (L=w.unpluggedFilterModeType)&&!D&&(Z.unpluggedAppInfo={filterModeType:Ctj[L]});if(D=w.UV)Z.unpluggedLocationInfo=D;M.client=Z;Z=M.request||{};w.CJ&&(Z.isPrefetch=!0);if(D=w.mdxEnvironment)Z.mdxEnvironment=D;if(D=w.mdxControlMode)Z.mdxControlMode=lmN[D];M.request=Z;Z=M.user||{};if(D=w.W_)Z.credentialTransferTokens=[{token:D,scope:"VIDEO"}];if(D=w.FQ)Z.delegatePurchases={oauthToken:D},Z.kidsParent={oauthToken:D};M.user=Z;if(Z=w.contextParams)M.activePlayers=[{playerContextParams:Z}];if(w=w.clientScreenNonce)M.clientScreenNonce= w;return M}; g.H$=function(w){var D=g.SU(),M=D.client||{};if(w.forcedExperiments){var L=w.forcedExperiments.split(","),Z=[];L=g.x(L);for(var k=L.next();!k.done;k=L.next())Z.push(Number(k.value));M.experimentIds=Z}if(Z=w.homeGroupInfo)M.homeGroupInfo=JSON.parse(Z);if(Z=w.getPlayerType())M.playerType=Z;if(Z=w.T.ctheme)M.theme=Z;if(Z=w.livingRoomAppMode)M.tvAppInfo=Object.assign({},M.tvAppInfo,{livingRoomAppMode:Z});Z=w.deviceYear;w.C("html5_propagate_device_year")&&Z&&(M.tvAppInfo=Object.assign({},M.tvAppInfo,{deviceYear:Z})); if(Z=w.livingRoomPoTokenId)M.tvAppInfo=Object.assign({},M.tvAppInfo,{livingRoomPoTokenId:Z});D.client=M;M=D.user||{};w.enableSafetyMode&&(M=Object.assign({},M,{enableSafetyMode:!0}));w.pageId&&(M=Object.assign({},M,{onBehalfOfUser:w.pageId}));D.user=M;M=w.wW;w.C("embeds_web_enable_iframe_api_send_full_embed_url")||w.C("embeds_web_enable_rcat_validation_in_havs")||w.C("embeds_enable_autoplay_and_visibility_signals")||!M||(D.thirdParty={embedUrl:M});return D}; $eN=function(w,D,M){var L=w.videoId,Z=g.jf(w),k=w.X(),b={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(iG()),referer:document.location.toString(),signatureTimestamp:20320},C=g.aj();w.isAutonav&&(b.autonav=!0);C.vr(141)&&(b.autonavState=C.vr(140)?"STATE_OFF":"STATE_ON");b.autoCaptionsDefaultOn=C.vr(66);OOI(w)&&(b.autoplay=!0);k.U&&w.cycToken&&(b.cycToken=w.cycToken);k.enablePrivacyFilter&&(b.enablePrivacyFilter=!0);w.isFling&&(b.fling=!0);var l=w.forceAdsUrl;if(l){C={};var E=[];l=l.split(","); l=g.x(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var W=p.split("|");W.length!==3||p.includes("=")||(W[0]="breaktype="+W[0],W[1]="offset="+W[1],W[2]="url="+W[2]);p={adtype:"video_ad"};W=g.x(W);for(var h=W.next();!h.done;h=W.next()){var t=g.x(h.value.split("="));h=t.next().value;t=kKS(t);p[h]=t.join("=")}W=p.url;h=p.presetad;t=p.viralresponseurl;var d=Number(p.campaignid);if(p.adtype==="in_display_ad")W&&(C.url=W),h&&(C.presetAd=h),t&&(C.viralAdResponseUrl=t),d&&(C.viralCampaignId=String(d)); else if(p.adtype==="video_ad"){var N={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=E4K[p.breaktype])N.breakType=p;W&&(N.url=W);h&&(N.presetAd=h);t&&(N.viralAdResponseUrl=t);d&&(N.viralCampaignId=String(d));E.push(N)}}b.forceAdParameters={videoAds:E,inDisplayAd:C}}w.isInlinePlaybackNoAd&&(b.isInlinePlaybackNoAd=!0);w.isLivingRoomDeeplink&&(b.isLivingRoomDeeplink=!0);C=w.ST9;if(C!=null){C={startWalltime:String(C)};if(E=w.HB)C.manifestDuration=String(E||14400);b.liveContext= C}if(w.mutedAutoplay){b.mutedAutoplay=!0;C=k.getWebPlayerContextConfig();var n,v;(C==null?0:(n=C.embedsHostFlags)==null?0:n.allowMutedAutoplayDurationMode)&&(C==null?0:(v=C.embedsHostFlags)==null?0:v.allowMutedAutoplayDurationMode.includes(phI[w.mutedAutoplayDurationMode]))&&(b.mutedAutoplayDurationMode=phI[w.mutedAutoplayDurationMode])}if(w.QF?0:w.M5)b.splay=!0;n=w.vnd;n===5&&(b.vnd=n);n={};if(v=w.isMdxPlayback)n.triggeredByMdx=v;if(v=w.uY)n.skippableAdsSupported=v.split(",").includes("ska");if(E= w.O1){v=w.F2;C=[];E=g.x(kxK(E));for(l=E.next();!l.done;l=E.next()){l=l.value;p=l.platform;l={applicationState:l.Zn?"INACTIVE":"ACTIVE",clientFormFactor:WQa[p]||"UNKNOWN_FORM_FACTOR",clientName:Ysl[l.XY]||"UNKNOWN_INTERFACE",clientVersion:l.deviceVersion||"",platform:h2C[p]||"UNKNOWN_PLATFORM"};p={};if(v){W=void 0;try{W=JSON.parse(v)}catch(f){g.jn(f)}W&&(p={params:[{key:"ms",value:W.ms}]},W.advertising_id&&(p.advertisingId=W.advertising_id),W.limit_ad_tracking!==void 0&&W.limit_ad_tracking!==null&& (p.limitAdTracking=W.limit_ad_tracking),l.osName=W.os_name,l.userAgent=W.user_agent,l.windowHeightPoints=W.window_height_points,l.windowWidthPoints=W.window_width_points)}C.push({adSignalsInfo:p,remoteClient:l})}n.remoteContexts=C}v=w.sourceContainerPlaylistId;C=w.serializedMdxMetadata;if(v||C)E={},v&&(E.mdxPlaybackContainerInfo={sourceContainerPlaylistId:v}),C&&(E.serializedMdxMetadata=C),n.mdxPlaybackSourceContext=E;b.mdxContext=n;n=D.width;n>0&&(b.playerWidthPixels=Math.round(n));if(D=D.height)b.playerHeightPixels= Math.round(D);M!==0&&(b.vis=M);if(M=k.widgetReferrer)b.widgetReferrer=M.substring(0,128);g.w0(k)&&b&&(b.ancestorOrigins=k.ancestorOrigins);w.defaultActiveSourceVideoId&&(b.compositeVideoContext={defaultActiveSourceVideoId:w.defaultActiveSourceVideoId});if(k=k.getWebPlayerContextConfig())b.encryptedHostFlags=k.encryptedHostFlags;L={videoId:L,context:Z,playbackContext:{contentPlaybackContext:b}};if(w.MN){var G;L.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(G=w.MN)==null?void 0:G.reloadPlaybackParams}}w.contentCheckOk&& (L.contentCheckOk=!0);if(G=w.clientPlaybackNonce)L.cpn=G;if(G=w.playerParams)L.params=G;if(G=w.playlistId)L.playlistId=G;w.racyCheckOk&&(L.racyCheckOk=!0);G=w.X();Z=G.embedConfig;w.ph&&G.C("embeds_enable_per_video_embed_config")?L.serializedThirdPartyEmbedConfig=w.ph:Z&&(L.serializedThirdPartyEmbedConfig=Z);L.captionParams={};Z=g.aj().vr(65);w.deviceCaptionsOn!=null?L.captionParams.deviceCaptionsOn=w.deviceCaptionsOn:g.x2(G)&&(L.captionParams.deviceCaptionsOn=Z!=null?!Z:!1);w.b0&&(L.captionParams.deviceCaptionsLangPref= w.b0);w.Lu.length?L.captionParams.viewerSelectedCaptionLangs=w.Lu:g.x2(G)&&(Z=g.yu(),Z==null?0:Z.length)&&(L.captionParams.viewerSelectedCaptionLangs=Z);Z=w.fetchType==="onesie"&&w.C("html5_onesie_attach_po_token");b=w.fetchType!=="onesie"&&w.C("html5_non_onesie_attach_po_token");if(Z||b)Z=w.X(),Z.QF&&(L.serviceIntegrityDimensions={},L.serviceIntegrityDimensions.poToken=Z.QF);G.C("fetch_att_independently")&&(L.attestationRequest={omitBotguardData:!0});L.playbackContext||(L.playbackContext={});L.playbackContext.devicePlaybackCapabilities= t6T(w);L.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&w.H_("noVp9",{});return L}; t6T=function(w){var D=!(w==null?0:w.Tn())&&(w==null?void 0:w.Yl())&&V8(),M;if(!(M=w==null)){M=g.vB(w);w=w.X().W;var L=aI("243");M=!(L&&BO(M,L,w,!0)===!0)}return{supportsVp9Encoding:!(M||D),supportXhr:dq}}; deS=function(w,D){var M,L,Z;return g.B(function(k){if(k.T==1)return M={context:g.H$(w.X()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:w.videoId,cpn:w.clientPlaybackNonce}}]},L=g.zN(iPC),g.c(k,g.FX(D,M,L),2);Z=k.V;return k.return(Z)})}; yjj=function(w,D,M){var L=g.A3(D.experiments,"bg_vm_reinit_threshold");(!Ep||(0,g.IC)()-Ep>L)&&deS(w,M).then(function(Z){Z&&(Z=Z.botguardData)&&g.WO(Z,D)},function(Z){w.xt()||(Z=tF(Z),w.H_("attf",Z.details))})}; gZ=function(w,D){g.X.call(this);this.app=w;this.state=D}; oo=function(w,D,M){w.state.T.hasOwnProperty(D)||Ro(w,D,M);w.state.G[D]=function(){return M.apply(w,g.rR.apply(0,arguments))}; w.state.Y.add(D)}; nZ=function(w,D,M){w.state.T.hasOwnProperty(D)||Ro(w,D,M);w.app.X().U&&(w.state.U[D]=function(){return M.apply(w,g.rR.apply(0,arguments))},w.state.Y.add(D))}; Ro=function(w,D,M){w.state.T[D]=function(){return M.apply(w,g.rR.apply(0,arguments))}}; g.F0=function(w,D,M){return w.state.T[D].apply(w.state.T,g.tG(M))}; G3=function(){g.IF.call(this);this.W=new Map}; s9=function(){g.X.apply(this,arguments);this.element=null;this.Y=new Set;this.G={};this.U={};this.T={};this.B=new Set;this.L=new G3;this.V=new G3;this.D=new G3;this.W=new G3}; Imk=function(w,D,M){typeof w==="string"&&(w={mediaContentUrl:w,startSeconds:D,suggestedQuality:M});a:{if((D=w.mediaContentUrl)&&(D=/\/([ve]|embed)\/([^#?]+)/.exec(D))&&D[2]){D=D[2];break a}D=null}w.videoId=D;return ao(w)}; ao=function(w,D,M){if(typeof w==="string")return{videoId:w,startSeconds:D,suggestedQuality:M};D={};M=g.x(Uej);for(var L=M.next();!L.done;L=M.next())L=L.value,w[L]&&(D[L]=w[L]);if(w=w.embedConfig||w.embed_config)if(typeof w==="string")D.embed_config=w;else if(g.ZZ(w))try{var Z=JSON.stringify(w);D.embed_config=Z}catch(k){console.error("Invalid embedConfig JSON",k)}return D}; xeR=function(w,D,M,L){if(g.ZZ(w)&&!Array.isArray(w)){D="playlist list listType index startSeconds suggestedQuality".split(" ");M={};for(L=0;L32&&L.push("hfr");D.isHdr()&&L.push("hdr");D.primaries==="bt2020"&&L.push("wcg");M.video_quality_features=L}}if(w=w.getPlaylistId())M.list=w;return M}; qy=function(){v$.apply(this,arguments)}; rZ=function(w,D){var M={};if(w.app.X().V7){w=g.x(g4j);for(var L=w.next();!L.done;L=w.next())L=L.value,D.hasOwnProperty(L)&&(M[L]=D[L]);if(D=M.qoe_cat)w="",typeof D==="string"&&D.length>0&&(w=D.split(",").filter(function(Z){return R2J.includes(Z)}).join(",")),M.qoe_cat=w; o4C(M)}else for(w=g.x(n4I),L=w.next();!L.done;L=w.next())L=L.value,D.hasOwnProperty(L)&&(M[L]=D[L]);return M}; o4C=function(w){var D=w.raw_player_response;if(!D){var M=w.player_response;M&&(D=JSON.parse(M))}delete w.player_response;delete w.raw_player_response;if(D){w.raw_player_response={streamingData:D.streamingData,playerConfig:D.playerConfig};var L;if((L=D.playbackTracking)==null?0:L.qoeUrl)w.raw_player_response=Object.assign({},w.raw_player_response,{playbackTracking:{qoeUrl:D.playbackTracking.qoeUrl}});D.videoDetails&&(D.videoDetails.videoId||D.videoDetails.lengthSeconds)&&(M={},D.videoDetails.videoId&& (M.videoId=D.videoDetails.videoId),D.videoDetails.lengthSeconds&&(M.lengthSeconds=D.videoDetails.lengthSeconds),w.raw_player_response=Object.assign({},w.raw_player_response,{videoDetails:M}))}}; GfN=function(w){var D=D===void 0?5:D;return w?FQK[w]||D:D}; g.ef=function(){qy.apply(this,arguments)}; s9T=function(w){Ro(w,"getInternalApiInterface",w.getInternalApiInterface);Ro(w,"addEventListener",w.hG);Ro(w,"removeEventListener",w.kCW);Ro(w,"cueVideoByPlayerVars",w.JE);Ro(w,"loadVideoByPlayerVars",w.tk5);Ro(w,"preloadVideoByPlayerVars",w.gPW);Ro(w,"getAdState",w.getAdState);Ro(w,"sendAbandonmentPing",w.sendAbandonmentPing);Ro(w,"setLoopRange",w.setLoopRange);Ro(w,"getLoopRange",w.getLoopRange);Ro(w,"setAutonavState",w.setAutonavState);Ro(w,"seekTo",w.ock);Ro(w,"seekBy",w.LKk);Ro(w,"seekToLiveHead", w.seekToLiveHead);Ro(w,"requestSeekToWallTimeSeconds",w.requestSeekToWallTimeSeconds);Ro(w,"seekToStreamTime",w.seekToStreamTime);Ro(w,"prefetchKeyPlay",w.prefetchKeyPlay);Ro(w,"startSeekCsiAction",w.startSeekCsiAction);Ro(w,"getStreamTimeOffset",w.getStreamTimeOffset);Ro(w,"getVideoData",w.qo);Ro(w,"setInlinePreview",w.setInlinePreview);Ro(w,"getAppState",w.getAppState);Ro(w,"updateLastActiveTime",w.updateLastActiveTime);Ro(w,"setBlackout",w.setBlackout);Ro(w,"setUserEngagement",w.setUserEngagement); Ro(w,"updateSubtitlesUserSettings",w.updateSubtitlesUserSettings);Ro(w,"getPresentingPlayerType",w.JF);Ro(w,"canPlayType",w.canPlayType);Ro(w,"updatePlaylist",w.updatePlaylist);Ro(w,"updateVideoData",w.updateVideoData);Ro(w,"updateEnvironmentData",w.updateEnvironmentData);Ro(w,"sendVideoStatsEngageEvent",w.Prc);Ro(w,"productsInVideoVisibilityUpdated",w.productsInVideoVisibilityUpdated);Ro(w,"setSafetyMode",w.setSafetyMode);Ro(w,"isAtLiveHead",function(D){return w.isAtLiveHead(void 0,D)}); Ro(w,"getVideoAspectRatio",w.getVideoAspectRatio);Ro(w,"getPreferredQuality",w.getPreferredQuality);Ro(w,"getPlaybackQualityLabel",w.getPlaybackQualityLabel);Ro(w,"setPlaybackQualityRange",w.gcV);Ro(w,"onAdUxClicked",w.onAdUxClicked);Ro(w,"getFeedbackProductData",w.getFeedbackProductData);Ro(w,"getStoryboardFrame",w.getStoryboardFrame);Ro(w,"getStoryboardFrameIndex",w.getStoryboardFrameIndex);Ro(w,"getStoryboardLevel",w.getStoryboardLevel);Ro(w,"getNumberOfStoryboardLevels",w.getNumberOfStoryboardLevels); Ro(w,"getCaptionWindowContainerId",w.getCaptionWindowContainerId);Ro(w,"getAvailableQualityLabels",w.getAvailableQualityLabels);Ro(w,"addCueRange",w.addCueRange);Ro(w,"addUtcCueRange",w.addUtcCueRange);Ro(w,"showAirplayPicker",w.showAirplayPicker);Ro(w,"dispatchReduxAction",w.dispatchReduxAction);Ro(w,"getPlayerResponse",w.lD);Ro(w,"getWatchNextResponse",w.iD);Ro(w,"getHeartbeatResponse",w.Gv);Ro(w,"getCurrentTime",w.Fu);Ro(w,"getDuration",w.HL);Ro(w,"getPlayerState",w.getPlayerState);Ro(w,"getPlayerStateObject", w.I5);Ro(w,"getVideoLoadedFraction",w.getVideoLoadedFraction);Ro(w,"getProgressState",w.getProgressState);Ro(w,"getVolume",w.getVolume);Ro(w,"setVolume",w.hx);Ro(w,"isMuted",w.isMuted);Ro(w,"mute",w.u1);Ro(w,"unMute",w.Hb);Ro(w,"loadModule",w.loadModule);Ro(w,"unloadModule",w.unloadModule);Ro(w,"getOption",w.tF);Ro(w,"getOptions",w.getOptions);Ro(w,"setOption",w.setOption);Ro(w,"loadVideoById",w.A0);Ro(w,"loadVideoByUrl",w.OP);Ro(w,"playVideo",w.FH);Ro(w,"loadPlaylist",w.loadPlaylist);Ro(w,"nextVideo", w.nextVideo);Ro(w,"previousVideo",w.previousVideo);Ro(w,"playVideoAt",w.playVideoAt);Ro(w,"getDebugText",w.getDebugText);Ro(w,"getWebPlayerContextConfig",w.getWebPlayerContextConfig);Ro(w,"notifyShortsAdSwipeEvent",w.notifyShortsAdSwipeEvent);Ro(w,"getVideoContentRect",w.getVideoContentRect);Ro(w,"setSqueezeback",w.setSqueezeback);Ro(w,"toggleSubtitlesOn",w.toggleSubtitlesOn);Ro(w,"isSubtitlesOn",w.isSubtitlesOn);Ro(w,"reportPlaybackIssue",w.reportPlaybackIssue);Ro(w,"setAutonav",w.setAutonav);Ro(w, "isNotServable",w.isNotServable);Ro(w,"channelSubscribed",w.channelSubscribed);Ro(w,"channelUnsubscribed",w.channelUnsubscribed);Ro(w,"togglePictureInPicture",w.togglePictureInPicture);Ro(w,"supportsGaplessAudio",w.supportsGaplessAudio);Ro(w,"supportsGaplessShorts",w.supportsGaplessShorts);Ro(w,"enqueueVideoByPlayerVars",function(D){return void w.enqueueVideoByPlayerVars(D)}); Ro(w,"clearQueue",w.clearQueue);Ro(w,"getAudioTrack",w.cT);Ro(w,"setAudioTrack",w.KKV);Ro(w,"getAvailableAudioTracks",w.a5);Ro(w,"getMaxPlaybackQuality",w.getMaxPlaybackQuality);Ro(w,"getUserPlaybackQualityPreference",w.getUserPlaybackQualityPreference);Ro(w,"getSubtitlesUserSettings",w.getSubtitlesUserSettings);Ro(w,"resetSubtitlesUserSettings",w.resetSubtitlesUserSettings);Ro(w,"setMinimized",w.setMinimized);Ro(w,"setOverlayVisibility",w.setOverlayVisibility);Ro(w,"confirmYpcRental",w.confirmYpcRental); Ro(w,"queueNextVideo",w.queueNextVideo);Ro(w,"handleExternalCall",w.handleExternalCall);Ro(w,"logApiCall",w.logApiCall);Ro(w,"isExternalMethodAvailable",w.isExternalMethodAvailable);Ro(w,"setScreenLayer",w.setScreenLayer);Ro(w,"getCurrentPlaylistSequence",w.getCurrentPlaylistSequence);Ro(w,"getPlaylistSequenceForTime",w.getPlaylistSequenceForTime);Ro(w,"shouldSendVisibilityState",w.shouldSendVisibilityState);Ro(w,"syncVolume",w.syncVolume);Ro(w,"highlightSettingsMenuItem",w.highlightSettingsMenuItem); Ro(w,"openSettingsMenuItem",w.openSettingsMenuItem);Ro(w,"getEmbeddedPlayerResponse",w.getEmbeddedPlayerResponse);Ro(w,"getVisibilityState",w.getVisibilityState);Ro(w,"isMutedByMutedAutoplay",w.isMutedByMutedAutoplay);Ro(w,"isMutedByEmbedsMutedAutoplay",w.isMutedByEmbedsMutedAutoplay);Ro(w,"setGlobalCrop",w.setGlobalCrop);Ro(w,"setInternalSize",w.setInternalSize);Ro(w,"setFauxFullscreen",w.setFauxFullscreen);Ro(w,"setAppFullscreen",w.setAppFullscreen)}; T3=function(w,D,M){w=g.X0(w.E4(),D);return M?(M.addOnDisposeCallback(w),null):w}; g.uR=function(w,D,M){return w.app.X().TC?D:g.M0("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:D,SHORTCUT:M})}; amR=function(w){w.E4().element.setAttribute("aria-live","polite")}; g.Sf=function(w,D){g.ef.call(this,w,D);s9T(this);nZ(this,"addEventListener",this.IW);nZ(this,"removeEventListener",this.QmD);nZ(this,"cueVideoByPlayerVars",this.Fp);nZ(this,"loadVideoByPlayerVars",this.CWc);nZ(this,"preloadVideoByPlayerVars",this.Fd_);nZ(this,"loadVideoById",this.A0);nZ(this,"loadVideoByUrl",this.OP);nZ(this,"playVideo",this.FH);nZ(this,"loadPlaylist",this.loadPlaylist);nZ(this,"nextVideo",this.nextVideo);nZ(this,"previousVideo",this.previousVideo);nZ(this,"playVideoAt",this.playVideoAt); nZ(this,"getVideoData",this.dc);nZ(this,"seekBy",this.zRt);nZ(this,"seekTo",this.nc7);nZ(this,"showControls",this.showControls);nZ(this,"hideControls",this.hideControls);nZ(this,"cancelPlayback",this.cancelPlayback);nZ(this,"getProgressState",this.getProgressState);nZ(this,"isInline",this.isInline);nZ(this,"setInline",this.setInline);nZ(this,"setLoopVideo",this.setLoopVideo);nZ(this,"getLoopVideo",this.getLoopVideo);nZ(this,"getVideoContentRect",this.getVideoContentRect);nZ(this,"getVideoStats",this.pI); nZ(this,"getCurrentTime",this.xW);nZ(this,"getDuration",this.HL);nZ(this,"getPlayerState",this.wb);nZ(this,"getVideoLoadedFraction",this.uD);nZ(this,"mute",this.u1);nZ(this,"unMute",this.Hb);nZ(this,"setVolume",this.hx);nZ(this,"loadModule",this.loadModule);nZ(this,"unloadModule",this.unloadModule);nZ(this,"getOption",this.tF);nZ(this,"getOptions",this.getOptions);nZ(this,"setOption",this.setOption);nZ(this,"addCueRange",this.addCueRange);nZ(this,"getDebugText",this.getDebugText);nZ(this,"getStoryboardFormat", this.getStoryboardFormat);nZ(this,"toggleFullscreen",this.toggleFullscreen);nZ(this,"isFullscreen",this.isFullscreen);nZ(this,"getPlayerSize",this.getPlayerSize);nZ(this,"toggleSubtitles",this.toggleSubtitles);nZ(this,"setCenterCrop",this.setCenterCrop);nZ(this,"setFauxFullscreen",this.setFauxFullscreen);nZ(this,"setSizeStyle",this.setSizeStyle);nZ(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);nZ(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);HPK(this)}; g.QP=function(w){w=w.Ka();var D=w.U4.get("endscreen");return D&&D.TH()?!0:w.FS()}; g.JW=function(w,D){w.getPresentingPlayerType()===3?w.publish("mdxautoplaycancel"):w.Q7("onAutonavCancelled",D)}; g.VP=function(w){var D=z3(w.Ka());return w.app.dK&&!w.isFullscreen()||w.getPresentingPlayerType()===3&&D&&D.lz()&&D.ym()||!!w.getPlaylist()}; g.P$=function(w,D){g.F0(w,"addEmbedsConversionTrackingParams",[D])}; g.KZ=function(w){return(w=g.O9(w.Ka()))?w.Sq():{}}; g.v4S=function(w){w=(w=w.getVideoData())&&w.V;return!!w&&!(!w.audio||!w.video)&&w.mimeType!=="application/x-mpegURL"}; g.mH=function(w,D,M){w=w.qd().element;var L=ur(w.children,function(Z){Z=Number(Z.getAttribute("data-layer"));return M-Z||1}); L<0&&(L=-(L+1));yv(w,D,L);D.setAttribute("data-layer",String(M))}; g.AW=function(w){var D=w.X();if(!D.FK)return!1;var M=w.getVideoData();if(!M||w.getPresentingPlayerType()===3)return!1;var L=(!M.isLiveDefaultBroadcast||D.C("allow_poltergust_autoplay"))&&!U9(M);L=M.isLivePlayback&&(!D.C("allow_live_autoplay")||!L);var Z=M.isLivePlayback&&D.C("allow_live_autoplay_on_mweb");w=w.getPlaylist();w=!!w&&w.lz();var k=M.fV&&M.fV.playerOverlays||null;k=!!(k&&k.playerOverlayRenderer&&k.playerOverlayRenderer.autoplay);k=M.yZ&&k;return!M.ypcPreview&&(!L||Z)&&!g.xB(M.B,"ypc")&& !w&&(!g.w0(D)||k)}; BjN=function(w,D){w=cjS(w.app.Hy().W);w=g.x(w);for(var M=w.next();!M.done;M=w.next()){M=M.value;var L=M.getAvailableAudioTracks(),Z=null;L=g.x(L);for(var k=L.next();!k.done;k=L.next())if(k=k.value,k.getLanguageInfo().getId()===D){Z=k;break}Z&&M.Ep(Z,!0)}}; wW=function(){G_.apply(this,arguments);this.requestHeaders={}}; MI=function(){Di||(Di=new wW);return Di}; Li=function(w,D){D?w.requestHeaders.Authorization="Bearer "+D:delete w.requestHeaders.Authorization}; g.Zi=function(w){g.X.call(this);var D=this;this.Th=w;this.Bz={XT:function(){return D.Th}}}; g.kV=function(w,D,M,L){L=L===void 0?!1:L;g.Lb.call(this,D);var Z=this;this.K=w;this.V7=L;this.Y=new g.xM(this);this.fade=new g.V9(this,M,!0,void 0,void 0,function(){Z.ih()}); g.T(this,this.Y);g.T(this,this.fade)}; bg=function(w){var D=w.K.getRootNode();return w.K.C("web_watch_pip")||w.K.C("web_shorts_pip")?wE(D):document}; fmS=function(w){w.V&&(document.activeElement&&g.Ug(w.element,document.activeElement)&&w.V.focus(),w.V.setAttribute("aria-expanded","false"),w.V=void 0);g.NA(w.Y);w.G=void 0}; YV=function(w,D,M){w.lZ()?w.aO():w.XQ(D,M)}; Ci=function(w,D,M,L){L=new g.J({Z:"div",Yt:["ytp-linked-account-popup-button"],LV:L,S:{role:"button",tabindex:"0"}});D=new g.J({Z:"div",J:"ytp-linked-account-popup",S:{role:"dialog","aria-modal":"true",tabindex:"-1"},N:[{Z:"div",J:"ytp-linked-account-popup-title",LV:D},{Z:"div",J:"ytp-linked-account-popup-description",LV:M},{Z:"div",J:"ytp-linked-account-popup-buttons",N:[L]}]});g.kV.call(this,w,{Z:"div",J:"ytp-linked-account-popup-container",N:[D]},100);var Z=this;this.dialog=D;g.T(this,this.dialog); L.listen("click",function(){Z.aO()}); g.T(this,L);g.mH(this.K,this.element,4);this.hide()}; g.EH=function(w,D,M,L){g.Lb.call(this,w);this.priority=D;M&&g.lg(this,M);L&&this.sV(L)}; g.pi=function(w,D,M,L){w=w===void 0?{}:w;D=D===void 0?[]:D;M=M===void 0?!1:M;L=L===void 0?!1:L;D.push("ytp-menuitem");var Z=w;"role"in Z||(Z.role="menuitem");M||(Z=w,"tabindex"in Z||(Z.tabindex="0"));w={Z:M?"a":"div",Yt:D,S:w,N:[{Z:"div",J:"ytp-menuitem-icon",LV:"{{icon}}"},{Z:"div",J:"ytp-menuitem-label",LV:"{{label}}"},{Z:"div",J:"ytp-menuitem-content",LV:"{{content}}"}]};L&&w.N.push({Z:"div",J:"ytp-menuitem-secondary-icon",LV:"{{secondaryIcon}}"});return w}; g.lg=function(w,D){w.updateValue("label",D)}; WR=function(w){g.EH.call(this,g.pi({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var D=this;this.K=w;this.V=this.T=!1;this.Ac=w.Vg();w.createServerVe(this.element,this,!0);this.j(this.K,"settingsMenuVisibilityChanged",function(M){D.A1(M)}); this.j(this.K,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; hX=function(w){return w?g.bI(w):""}; tX=function(w){g.X.call(this);this.api=w}; $V=function(w){tX.call(this,w);var D=this;Ro(w,"setAccountLinkState",function(M){D.setAccountLinkState(M)}); Ro(w,"updateAccountLinkingConfig",function(M){D.updateAccountLinkingConfig(M)}); w.addEventListener("videodatachange",function(M,L){D.onVideoDataChange(L)}); w.addEventListener("settingsMenuInitialized",function(){D.menuItem=new WR(D.api);g.T(D,D.menuItem)})}; ig=function(w){tX.call(this,w);var D=this;this.T=null;this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"applicationvideodatachange",function(){D.FA()})}; qyj=function(w){this.api=w;this.T={}}; dW=function(w,D,M,L){D in w.T||(M=new g.ue(M,L,{id:D,priority:2,namespace:"appad"}),w.api.bT([M],1),w.T[D]=M)}; yc=function(w){tX.call(this,w);var D=this;this.events=new g.xM(this);g.T(this,this.events);this.T=new qyj(this.api);this.events.j(this.api,"legacyadtrackingpingreset",function(){D.T.T={}}); this.events.j(this.api,"legacyadtrackingpingchange",function(M){var L=D.T;dW(L,"part2viewed",1,0x8000000000000);dW(L,"engagedview",Math.max(1,M.mu*1E3),0x8000000000000);if(!M.isLivePlayback){var Z=M.lengthSeconds*1E3;nL(M)&&L.api.C("html5_shorts_gapless_ads_duration_fix")&&(Z=L.api.getProgressState().seekableEnd*1E3-M.BY);dW(L,"videoplaytime25",Z*.25,Z);dW(L,"videoplaytime50",Z*.5,Z);dW(L,"videoplaytime75",Z*.75,Z);dW(L,"videoplaytime100",Z,0x8000000000000);dW(L,"conversionview",Z,0x8000000000000); dW(L,"videoplaybackstart",1,Z);dW(L,"videoplayback2s",2E3,Z);dW(L,"videoplayback10s",1E4,Z)}}); this.events.j(this.api,g.QG("appad"),this.V);this.events.j(this.api,g.JL("appad"),this.V)}; TjT=function(w,D,M){if(!(M in D))return!1;D=D[M];Array.isArray(D)||(D=[D]);D=g.x(D);for(M=D.next();!M.done;M=D.next()){M=M.value;var L={CPN:w.api.getVideoData().clientPlaybackNonce};M=g.j3(M,L);L=void 0;L=L===void 0?!1:L;(L=fc(qu(M,rjj),M,L,"Active View 3rd Party Integration URL"))||(L=void 0,L=L===void 0?!1:L,L=fc(qu(M,e2S),M,L,"Google/YouTube Brand Lift URL"));L||(L=void 0,L=L===void 0?!1:L,L=fc(qu(M,XhC),M,L,"Nielsen OCR URL"));g.FV(M,void 0,L)}return!0}; I4=function(w,D){u_I(w,D).then(function(M){g.FV(D,void 0,void 0,M)})}; UH=function(w,D){D.forEach(function(M){I4(w,M)})}; u_I=function(w,D){return g.hL(w.api.X())&&M2(D)&&DV(D)?g.GA(w.api.X(),g.E9(w.api.getVideoData())).then(function(M){var L;M&&(L={Authorization:"Bearer "+M});return L},void 0):gz()}; SyR=function(w){tX.call(this,w);this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"videoready",function(D){if(w.getPresentingPlayerType()===1){var M,L,Z={playerDebugData:{pmlSignal:!!((M=D.getPlayerResponse())==null?0:(L=M.adPlacements)==null?0:L.some(function(k){var b;return k==null?void 0:(b=k.adPlacementRenderer)==null?void 0:b.renderer})), contentCpn:D.clientPlaybackNonce}};g.DD("adsClientStateChange",Z)}})}; xV=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);Ro(this.api,"getUserAudioQualitySetting",function(){return D.getUserAudioQualitySetting()}); Ro(this.api,"setUserAudioQualitySetting",function(M){D.setUserAudioQualitySetting(M)}); Ro(this.api,"hasHqaAudioTrack",function(){return D.hasHqaAudioTrack()}); this.CL=D0R();this.updateEnvironmentData()}; Q9K=function(w){tX.call(this,w);var D=this;Ro(this.api,"getAudioTrackState",function(){return D.api.uy(0)})}; NI=function(w){g.J.call(this,{Z:"button",Yt:["ytp-button","ytp-autonav-toggle"],S:{title:w.C("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"},N:[{Z:"div",J:"ytp-autonav-toggle-button-container",N:[{Z:"div",J:"ytp-autonav-toggle-button",S:{"aria-checked":"true"}}]}]});this.K=w;this.V=[];this.T=!1;this.isChecked=!0;w.createClientVe(this.element,this, 113681);this.j(w,"presentingplayerstatechange",this.Us);this.listen("click",this.onClick);this.K.X().C("web_player_autonav_toggle_always_listen")&&Jjx(this);T3(w,this.element,this);this.Us()}; Jjx=function(w){w.V.push(w.j(w.K,"videodatachange",w.Us));w.V.push(w.j(w.K,"videoplayerreset",w.Us));w.V.push(w.j(w.K,"onPlaylistUpdate",w.Us));w.V.push(w.j(w.K,"autonavchange",w.Zp))}; z2l=function(w){w.isChecked=w.isChecked;w.Z5("ytp-autonav-toggle-button").setAttribute("aria-checked",String(w.isChecked));var D=w.isChecked?"Autoplay is on":"Autoplay is off";w.K.X().C("player_tooltip_data_title_killswitch")?w.update({title:D,label:D}):w.update({"data-tooltip-title":D,label:D});w.K.tY()}; V6R=function(w){return w.K.X().C("web_player_autonav_use_server_provided_state")&&NQ(w.z3())}; PtC=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"standardControlsInitialized",function(){var M=new NI(w);g.T(D,M);w.Ye(M,"RIGHT_CONTROLS_LEFT")})}; HR=function(w,D){g.EH.call(this,g.pi({role:"menuitemcheckbox","aria-checked":"false"}),D,w,{Z:"div",J:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; jg=function(w,D){w.checked=D;w.element.setAttribute("aria-checked",String(w.checked))}; OPx=function(w){var D=!w.X().U0&&w.getPresentingPlayerType()!==3;return w.isFullscreen()||D}; g.gW=function(w,D,M,L){var Z=w.currentTarget;if((M===void 0||!M)&&g.dJ(w))return w.preventDefault(),!0;D.pauseVideo();w=Z.getAttribute("href");g.Bq(w,L,!0);return!1}; g.R4=function(w,D,M){if(yq(D.X())&&D.getPresentingPlayerType()!==2){if(g.dJ(M))return D.isFullscreen()&&!D.X().externalFullscreen&&D.toggleFullscreen(),M.preventDefault(),!0}else{var L=g.dJ(M);L&&D.pauseVideo();g.Bq(w,void 0,!0);L&&(g.fm(w),M.preventDefault())}return!1}; KQx=function(w){w=o4.includes("en")?w.C("delhi_modern_web_player_icons")?Wv():{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,S:{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"}}]}:w.C("delhi_modern_web_player_icons")?BQJ():{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,S:{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"}}]};w.J="ytp-subtitles-button-icon"; return w}; meN=function(w){return o4.includes("en")?w?Wv():{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:w?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; ni=function(){return{Z:"div",J:"ytp-spinner-container",N:[{Z:"div",J:"ytp-spinner-rotator",N:[{Z:"div",J:"ytp-spinner-left",N:[{Z:"div",J:"ytp-spinner-circle"}]},{Z:"div",J:"ytp-spinner-right",N:[{Z:"div",J:"ytp-spinner-circle"}]}]}]}}; FD=function(w){if(document.createRange){var D=document.createRange();D&&(D.selectNodeContents(w),w=window.getSelection())&&(w.removeAllRanges(),w.addRange(D))}}; a4=function(w){var D=w.C("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";HR.call(this,D,g.GU.jU);var M=this;this.K=w;this.T=!1;this.V=new g.ui(function(){g.D6(M.element,"ytp-menuitem-highlighted")},0); this.Ac=w.Vg();w=w.C("delhi_modern_web_player_icons")?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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(w);this.subscribe("select",this.L,this);this.listen(sH,this.D);g.T(this,this.V)}; vR=function(w){tX.call(this,w);var D=this;this.T=!1;w.addEventListener("settingsMenuInitialized",function(){Ajl(D)}); w.addEventListener("highlightSettingsMenu",function(M){Ajl(D);var L=D.menuItem;M==="menu_item_cinematic_lighting"&&(g.AB(L.element,"ytp-menuitem-highlighted"),g.AB(L.element,"ytp-menuitem-highlight-transition-enabled"),L.V.start())}); Ro(w,"updateCinematicSettings",function(M){D.updateCinematicSettings(M)})}; Ajl=function(w){w.menuItem||(w.menuItem=new a4(w.api),g.T(w,w.menuItem),w.menuItem.Sk(w.T))}; wOr=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"applicationvideodatachange",function(M,L){L=L.clipConfig;M==="dataloaded"&&L&&L.startTimeMs!=null&&L.endTimeMs!=null&&D.api.setLoopRange({startTimeMs:Math.floor(Number(L.startTimeMs)),endTimeMs:Math.floor(Number(L.endTimeMs)),postId:L.postId,type:"clips"})})}; cR=function(w){tX.call(this,w);this.events=new g.xM(w);g.T(this,this.events);Ro(w,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Ro(w,"setCreatorEndscreenHideButton",this.T.bind(this))}; DaR=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"videodatachange",function(){var M=D.api.isHdr()||D.api.C("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";D.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",M)})}; BR=function(w,D,M,L,Z){var k=w.C("html5_enable_new_audio_settings_menu");HR.call(this,"Stable Volume",k?M_J.PJ:g.GU.PJ);this.K=w;this.L=D;this.V=M;this.hasDrcAudioTrack=L;this.getDrcState=Z;this.enableNewAudioSettingsMenu=this.T=!1;g.AB(this.element,"ytp-drc-menu-item");this.Ac=(this.enableNewAudioSettingsMenu=k)?w.Vg().zn:w.Vg();w.addEventListener("videodatachange",this.xP.bind(this));w.C("mta_drc_mutual_exclusion_removal")&&this.j(w,"onPlaybackAudioChange",this.xP);this.enableNewAudioSettingsMenu&& this.j(w,"audiopreferencechange",this.xP);D=this.V()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(w=w.C("delhi_modern_web_player_icons")?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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(w));this.subscribe("select",this.D,this);this.enableNewAudioSettingsMenu?this.xP():(this.setEnabled(this.hasDrcAudioTrack()),jg(this,D),this.Ac.sB(this))}; fi=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);w.C("html5_show_drc_toggle")&&w.addEventListener("settingsMenuInitialized",function(){D.menuItem||(D.menuItem=new BR(D.api,D.setDrcUserPreference.bind(D),D.getDrcUserPreference.bind(D),D.Tj.bind(D),D.getDrcState.bind(D)),g.T(D,D.menuItem))}); Ro(this.api,"setDrcUserPreference",function(L){D.setDrcUserPreference(L)}); Ro(this.api,"getDrcUserPreference",function(){return D.getDrcUserPreference()}); Ro(this.api,"hasDrcAudioTrack",function(){return D.Tj()}); Ro(this.api,"getDrcState",function(){return D.getDrcState()}); var M;this.T=(M=g.Rj("yt-player-drc-pref"))!=null?M:1;this.updateEnvironmentData()}; qI=function(w){tX.call(this,w);var D=this;this.T={};this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"videodatachange",function(){D.onVideoDataChange()}); this.events.j(w,g.QG("embargo"),function(M){D.api.s1(!0);var L,Z=(L=D.T[M.id])!=null?L:[];L=g.x(Z);for(Z=L.next();!Z.done;Z=L.next()){var k=Z.value;D.api.hideControls();D.api.Pd("auth",2,"This video isn't available in your current playback area",pH({embargoed:1,id:M.id,idx:M.V,start:M.start}));Z=void 0;(k=(Z=k.embargo)==null?void 0:Z.onTrigger)&&D.api.Q7("innertubeCommand",k)}})}; L2l=function(w,D){var M;return(M=D.onEnter)==null?void 0:M.some(w.V)}; ZAK=function(w,D){D=g.x(D);for(var M=D.next();!M.done;M=D.next()){M=M.value;var L=void 0,Z=Number((L=M.playbackPosition)==null?void 0:L.utcTimeMillis)/1E3,k=void 0;L=Z+Number((k=M.duration)==null?void 0:k.seconds);k="embargo_"+Z;w.api.addUtcCueRange(k,Z,L,"embargo",!1);M.onEnter&&(w.T[k]=M.onEnter.filter(w.V))}}; rW=function(w){tX.call(this,w);var D=this;this.T=[];this.events=new g.xM(w);g.T(this,this.events);Ro(w,"addEmbedsConversionTrackingParams",function(M){D.addEmbedsConversionTrackingParams(M)}); this.events.j(w,"veClickLogged",function(M){D.api.hasVe(M)&&(M=M.visualElement.getAsJspb(),M=nK(M,2),D.T.push(M))})}; kaG=function(w){tX.call(this,w);Ro(w,"isEmbedsShortsMode",function(){return w.isEmbedsShortsMode()})}; bAT=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"initialvideodatacreated",function(M){LA(Ma(),16623);D.T=g.$9();var L=w.X().M5&&!M.QF;if(lR(M)&&L){LA(Ma(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(M.getWatchNextResponse()){var Z,k=(Z=M.getWatchNextResponse())==null?void 0:Z.trackingParams;k&&kz(k)}if(M.getPlayerResponse()){var b;(M=(b=M.getPlayerResponse())==null?void 0:b.trackingParams)&&kz(M)}}else LA(Ma(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),M.getEmbeddedPlayerResponse()&&(b=(k=M.getEmbeddedPlayerResponse())==null?void 0:k.trackingParams)&&kz(b)}); this.events.j(w,"loadvideo",function(){LA(Ma(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:D.T})}); this.events.j(w,"cuevideo",function(){LA(Ma(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:D.T})}); this.events.j(w,"largeplaybuttonclicked",function(M){LA(Ma(),27240,M.visualElement)}); this.events.j(w,"playlistnextbuttonclicked",function(M){LA(Ma(),27240,M.visualElement)}); this.events.j(w,"playlistprevbuttonclicked",function(M){LA(Ma(),27240,M.visualElement)}); this.events.j(w,"playlistautonextvideo",function(){LA(Ma(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; eg=function(w,D){g.X.call(this);var M=this;this.T=null;this.L=D;D=[];for(var L=0;L<=100;L++)D.push(L/100);D={threshold:D,trackVisibility:!0,delay:1E3};(this.V=window.IntersectionObserver?new IntersectionObserver(function(Z){Z=Z[Z.length-1];var k=null;typeof Z.isVisible==="undefined"?document.visibilityState==="visible"&&Z.isIntersecting&&Z.intersectionRatio>0?k=Z.intersectionRatio:document.visibilityState==="hidden"?k=0:k=null:k=Z.isVisible?Z.intersectionRatio:0;k!=null&&(k=Math.max(k,0),k=Math.min(k, 1));M.T=k;typeof M.L==="function"&&M.L(M.T)},D):null)&&this.V.observe(w)}; Cha=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"applicationInitialized",function(){YpJ(D)})}; YpJ=function(w){var D=w.api.getRootNode(),M,L=w.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((M=D.parentElement)==null?void 0:M.parentElement)||D:D;w.T=new eg(L,function(Z){Z!=null&&(w.api.X().Z9=Z,w.api.X().PX="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.T(w,w.T);w.events.j(w.api,"videoStatsPingCreated",function(Z){var k=w.T;k=k.T==null?null:Math.round(k.T*100)/100;Z.inview=k!=null?k:void 0;k=w.api.getPlayerSize();if(k.height>0&&k.width>0){k=[Math.round(k.width),Math.round(k.height)];var b=g.UK();b>1&&k.push(b);k=k.join(":")}else k=void 0;Z.size=k})}; ltK=function(w){var D;return((D=((w==null?void 0:w.messageRenderers)||[]).find(function(M){return!!M.timeCounterRenderer}))==null?void 0:D.timeCounterRenderer)||null}; XD=function(w){g.J.call(this,{Z:"div",Yt:["ytp-player-content","ytp-iv-player-content"],N:[{Z:"div",J:"ytp-free-preview-countdown-timer",N:[{Z:"span",LV:"{{label}}"},{Z:"span",J:"ytp-free-preview-countdown-timer-separator",LV:"\u2022"},{Z:"span",LV:"{{duration}}"}]}]});this.api=w;this.T=null;this.L=this.V=0;this.j(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; pOk=function(w,D){w.T||(w.V=D,w.L=(0,g.IC)(),w.T=new g.TC(function(){EzG(w)},null),EzG(w))}; EzG=function(w){var D=Math,M=D.round,L=Math.min((0,g.IC)()-w.L,w.V);D=M.call(D,(w.V-L)/1E3);w.updateValue("duration",Ph({seconds:D}));D<=0&&w.T?w.stopTimer():w.T&&w.T.start()}; W2J=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"basechromeinitialized",function(){D.T=new XD(w);g.T(D,D.T);g.mH(w,D.T.element,4);D.T.hide()})}; TU=function(w){g.J.call(this,{Z:"button",Yt:["ytp-fullerscreen-edu-button","ytp-button"],N:[{Z:"div",Yt:["ytp-fullerscreen-edu-text"],LV:"Scroll for details"},{Z:"div",Yt:["ytp-fullerscreen-edu-chevron"],N:[{Z:"svg",S:{height:"100%",viewBox:"0 0 24 24",width:"100%"},N:[{Z:"path",S:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],S:{"data-priority":"2"}});this.d9=w;this.fade=new g.V9(this,250,void 0,100);this.V=this.T=!1;w.createClientVe(this.element,this,61214);g.T(this, this.fade);this.j(w,"fullscreentoggled",this.Sk);this.j(w,"presentingplayerstatechange",this.Sk);this.listen("click",this.onClick);this.Sk()}; ug=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);Ro(this.api,"updateFullerscreenEduButtonSubtleModeState",function(L){D.updateFullerscreenEduButtonSubtleModeState(L)}); Ro(this.api,"updateFullerscreenEduButtonVisibility",function(L){D.updateFullerscreenEduButtonVisibility(L)}); var M=w.X();w.C("external_fullscreen_with_edu")&&M.externalFullscreen&&yq(M)&&M.controlsType==="1"&&this.events.j(w,"standardControlsInitialized",function(){D.T=new TU(w);g.T(D,D.T);w.Ye(D.T)})}; hDa=function(w){g.J.call(this,{Z:"div",J:"ytp-gated-actions-overlay",N:[{Z:"div",J:"ytp-gated-actions-overlay-background",N:[{Z:"div",J:"ytp-gated-actions-overlay-background-overlay"}]},{Z:"button",Yt:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],S:{"aria-label":"Close"},N:[g.pb()]},{Z:"div",J:"ytp-gated-actions-overlay-bar",N:[{Z:"div",J:"ytp-gated-actions-overlay-text-container",N:[{Z:"div",J:"ytp-gated-actions-overlay-title",LV:"{{title}}"},{Z:"div",J:"ytp-gated-actions-overlay-subtitle", LV:"{{subtitle}}"}]},{Z:"div",J:"ytp-gated-actions-overlay-button-container"}]}]});var D=this;this.api=w;this.background=this.Z5("ytp-gated-actions-overlay-background");this.V=this.Z5("ytp-gated-actions-overlay-button-container");this.T=[];this.j(this.Z5("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){D.api.Q7("onCloseMiniplayer")}); this.hide()}; $aR=function(w,D){var M=0;M=0;for(var L={};M Z&&(Z=C.width,k="url("+C.url+")")}M.background.style.backgroundImage=k;$aR(M,L.actionButtons||[]);M.show()}else M.hide()}); g.mH(this.api,this.T.element,4)}; Sg=function(w){tX.call(this,w);var D=this;nZ(this.api,"getSphericalProperties",function(){return D.getSphericalProperties()}); nZ(this.api,"setSphericalProperties",function(){D.setSphericalProperties.apply(D,g.tG(g.rR.apply(0,arguments)))}); oo(this.api,"getSphericalProperties",function(){return D.api.getPresentingPlayerType()===2?{}:D.getSphericalProperties()}); oo(this.api,"setSphericalProperties",function(){var M=g.rR.apply(0,arguments);D.api.getPresentingPlayerType()!==2&&D.setSphericalProperties.apply(D,g.tG(M))})}; Qc=function(w){tX.call(this,w);Ro(w,"createClientVe",this.createClientVe.bind(this));Ro(w,"createServerVe",this.createServerVe.bind(this));Ro(w,"destroyVe",this.destroyVe.bind(this));Ro(w,"hasVe",this.hasVe.bind(this));Ro(w,"logClick",this.logClick.bind(this));Ro(w,"logVisibility",this.logVisibility.bind(this));Ro(w,"setTrackingParams",this.setTrackingParams.bind(this))}; Vc=function(w){this.V={};this.T={};this.videoData=w;var D;this.L=((D=w.L)==null?void 0:D.V)||[];w=g.x(JX);for(D=w.next();!D.done;D=w.next())D=D.value,this.V[D]=uX(this.L,zU[D].ma);this.Gg()}; daI=function(w,D){var M=D.getAudioTrack();return M.id!=="und"?g.ox(w,function(L){var Z;return((Z=L.dW)==null?void 0:Z.name)===M.getLanguageInfo().name}):w}; Itk=function(w,D){return D.getUserAudio51Preference()?g.ox(w,y$j):w}; xaG=function(w){return g.Rj("yt-player-drc-pref")?g.ox(w,UaK):w}; HAI=function(w){return wSN()===2?g.ox(w,NfG):w}; UaK=function(w){var D;return((D=w.audio)==null?void 0:D.T)===!0}; y$j=function(w){return Qd(w)||JF(w)}; jhl=function(w){return w.dW!==void 0}; NfG=function(w){var D;return((D=w.audio)==null?void 0:D.V)===!0}; PR=function(w,D,M,L){function Z(b){var C=!(b.status!==204&&b.status!==200&&!b.response),l;b={succ:""+ +C,rc:b.status,lb:((l=b.response)==null?void 0:l.byteLength)||0,rt:((0,g.IC)()-k).toFixed(),shost:g.ER(w),trigger:D};gzl(b,w);M&&M(b);L&&!C&&L(new g.W_("pathprobe.net",b))} var k=(0,g.IC)();g.y8(w,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:Z,onTimeout:Z})}; gzl=function(w,D){var M;((M=window.performance)==null?0:M.getEntriesByName)&&(D=performance.getEntriesByName(D))&&D.length&&(D=D[0],w.pedns=(D.domainLookupEnd-D.startTime).toFixed(),w.pecon=(D.connectEnd-D.domainLookupEnd).toFixed(),w.perqs=(D.requestStart-D.connectEnd).toFixed(),RDj&&(w.perqsa=D.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; ozl=function(w){RDj=w}; OH=function(w,D){this.Kl=w;this.policy=D;this.playbackRate=1}; nzK=function(w,D){var M=Math.min(2.5,S1(w.Kl));w=Ki(w);return D-M*w}; mj=function(w,D,M,L,Z){Z=Z===void 0?!1:Z;if(w.policy.yA)return Math.ceil(w.policy.yA*D);w.policy.Km&&(L=Math.abs(L));L/=w.playbackRate;var k=1/zm(w.Kl);M=Math.max(.9*(L-3),S1(w.Kl)+w.Kl.V.T*k)/k*.8/(D+M);M=Math.min(M,L);w.policy.VV>0&&Z&&(M=Math.max(M,w.policy.VV));return F2r(w,M,D)}; F2r=function(w,D,M){return Math.ceil(Math.max(Math.max(w.policy.D9,w.policy.yC*M),Math.min(Math.min(w.policy.jk,31*M),Math.ceil(D*M))))||w.policy.D9}; GaN=function(w,D,M){M=mj(w,D.T.info.sL,M.T.info.sL,0);var L=S1(w.Kl)+M/zm(w.Kl);return Math.max(L,L+w.policy.HE-M/D.T.info.sL)}; Ki=function(w){return zm(w.Kl,!w.policy.L7,w.policy.bH)}; AX=function(w){return Ki(w)/w.playbackRate}; wp=function(w,D,M){var L=w.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],Z=w.policy.playbackStartPolicy.startMinReadaheadPolicy||[];w=Infinity;D=g.x(D&&L.length>0?L:Z);for(L=D.next();!L.done;L=D.next())L=L.value,Z=L.minReadaheadMs||0,M<(L.minBandwidthBytesPerSec||0)||w>Z&&(w=Z);return w0&&(this.V=M.BV)}; vzS=function(w,D,M,L,Z){if(!L.info.D){if(M.length===0)M.push(L);else{var k;(w=(k=M.pop())==null?void 0:g.NH(k,L))?M.push(w):M.push(L)}return Z}var b;(M=(b=M.pop())==null?void 0:g.NH(b,L))||(M=L);if(M.info.V)return w.logger&&w.logger({incompleteSegment:M.info.PA()}),Z;L=w.NS(M);Z=L.g9;L={clipId:L.clipId,formatId:L.formatId,startTimeMs:L.startTimeMs,durationMs:L.l5,a4:Z,Za:Z};Z=shr(D,L.startTimeMs);if(k=M=Z>=0?D[Z]:null){k=L;var C=Z;b=M.startTimeMs+M.durationMs;var l=k.startTimeMs+k.durationMs;if(k.startTimeMs- b>w.V)k=!1;else if(atI(w,M.formatId,k.formatId))M.durationMs=Math.max(b,l)-M.startTimeMs,M.Za=Math.max(M.Za,k.Za),k=!0;else if(Math.abs(M.startTimeMs-k.startTimeMs)<=w.V)if(M.durationMs>k.durationMs+w.V){var E=M.formatId,p=M.a4;C=M.Za;M.formatId=k.formatId;M.durationMs=k.durationMs;M.a4=k.a4;M.Za=k.Za;k.formatId=E;k.startTimeMs=l;k.durationMs=b-l;k.a4=p;k.Za=C;k=!1}else M.formatId=k.formatId,k=!0;else b>k.startTimeMs&&(b>l&&(D.splice(C+1,0,{formatId:M.formatId,startTimeMs:l,durationMs:b-l,a4:k.Za+ 1,Za:M.Za}),w.logger&&w.logger({splitOldStart:(E=M.startTimeMs)==null?void 0:E.toFixed(3),splitOldEnd:b==null?void 0:b.toFixed(3),splitNewStart:(p=k.startTimeMs)==null?void 0:p.toFixed(3),splitNewEnd:l==null?void 0:l.toFixed(3)})),M.durationMs=k.startTimeMs-M.startTimeMs,M.Za=k.a4-1),k=!1}k?L=M:(Z+=1,D.splice(Z,0,L));E=0;for(p=Z+1;p=l+M.V?M=!0:C+M.V=0?w:-w-2}; c$I=function(w,D){if(w.rW){var M=w.rW.O4();if(M.length!==0){if(w.L&&D){var L=w.L,Z=L.info.W;!kW(M,Z)&&L.info.U>0&&(0,g.IC)()-w.Y<5E3&&(w.logger&&w.logger({dend:L.info.PA()}),M=v0a(M,Z,Z+.01))}w.policy.PO&&w.logger&&w.logger({cbri:""+w.T});L=[];for(var k=Z=0;Z=b){var p=Object.assign({},w.Vi[k]),W=w.r9.L.get(Jo(w.Vi[k].formatId)),h=Math.max(l,b);b=W.index.Y9(h+w.V/ 1E3);l=W.index.getStartTime(b);var t=b+ +(Math.abs(l-h)>w.V/1E3);h=t+w.D;t=W.index.getStartTime(t)*1E3;k!==w.T||D?(p.a4=h,p.startTimeMs=t):(w.logger&&w.logger({pEvict:"1",og:p.startTimeMs,adj:l*1E3}),p.a4=b+w.D,p.startTimeMs=l*1E3);b=void 0;l=((b=w.L)==null?void 0:b.info.duration)||11;k===w.T&&Cw.V/1E3);b=l+w.D;W=W.index.Wl(l)*1E3;p.Za=b;p.durationMs=W-p.startTimeMs;p.a4<=p.Za&&L.push(p)}E=0&&bz(w.audioTrack,w.targetTime)>=0&&k?((w.videoTrack.W||w.audioTrack.W)&&w.loader.H_("iterativeSeeking",{status:"done",count:w.seekCount}),w.videoTrack.W=!1,w.audioTrack.W=!1):L&&g.j4(function(){if(w.T||!w.policy.TU)lz(w);else{var b=D.startTime,C=D.duration;if(!w.policy.W){var l=M?w.videoTrack.W:w.audioTrack.W,E=w.videoTrack.Y!==-1&&w.audioTrack.Y!==-1,p=w.targetTime>=b&&w.targetTime432E3&&cdS(w.r9);w.V&&(Z=w.V,w.V=0);g.j4(function(){w.policy.W||E$(w,Z,102)}); w.loader.H_("initManifestlessSync",{st:Z,ost:Z+w.loader.jb(),a:w.audioTrack.Y,v:w.videoTrack.Y});w.L&&(w.L.resolve(Z+.1),w.L=null);w.policy.W&&E$(w,Z,102)}}}; hg=function(w,D){var M=this;this.zU=w;this.requestNumber=++V_x;this.T=this.now();this.U=this.B=NaN;this.G=this.T;this.L=this.GU=this.W=0;this.Y=this.T;this.EL=this.V7=this.fV=this.HA=this.wW=this.c_=this.V=this.D=0;this.y7=this.isActive=!1;this.oO=this.pV=0;this.Bz={eb9:function(){return M.jt}}; this.Kl=D.Kl;this.snapshot=sKG(this.Kl);this.policy=this.Kl.V;this.ED=!!D.ED;this.OF=D.OF;this.Ek=D.Ek||0;this.vI=D.vI||0;D.u0&&(this.W_=new cd);var L;this.jt=(L=D.jt)!=null?L:!1;this.ED||nwR(this.Kl)}; Phj=function(w){w.fV=Math.max(w.fV,w.W-w.wW);w.V7=Math.max(w.V7,w.G-w.HA);w.c_=0}; tg=function(w,D,M){F8N(w.Kl,D);w.W_&&(w.W_.add(Math.ceil(D)-Math.ceil(w.G)),w.W_.add(Math.max(0,Math.ceil(M/1024)-Math.ceil(w.W/1024))));var L=D-w.G,Z=M-w.W;w.GU=Z;w.EL=Math.max(w.EL,Z/(L+.01)*1E3);w.G=D;w.W=M;w.c_&&M>w.c_&&Phj(w)}; $f=function(w,D){w.url=D;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; iz=function(w,D){hg.call(this,w,D);this.mu=this.Sb=!1;this.Jc=this.nV=Infinity;this.Md=NaN;this.TU=!1;this.Nd=NaN;this.NC=this.jk=this.XE=0;this.eS=D.eS||1;this.KC=D.KC||this.eS;this.QV=D.QV;this.g9=D.g9;this.JY=D.JY;OAj(this);this.Qz(this.T);this.iW=(this.Nd-this.T)/1E3}; K2N=function(w){var D=w.jk||w.XE;return D?w.snapshot.delay+Math.min(w.vI,(w.U-w.B)/1E3)+D:w.iW}; dp=function(w,D,M){if(!w.ED){D=Math.max(D,.01);var L=w.Ek?Math.max(D,M/w.Ek):D,Z=w.Kl.V.L;Z&&(L=D,w.Ek&&(L=Math.max(D,M/w.Ek*Z)));Xm(w.Kl,D,M,L)}}; maN=function(w){return(w.Y-w.T)/1E3}; OAj=function(w){w.Md=w.T+w.snapshot.delay*1E3;w.TU=!1}; yi=function(w,D){if(w.QV&&w.g9!==void 0&&w.JY!==void 0){var M=Math,L=M.min,Z=w.nV;var k=w.QV;var b=w.T;if(A$k(k,w.g9))k=D;else{var C=0;k.gK&&(C=.2);k=b+(k.vI+C)*1E3}w.nV=L.call(M,Z,k);M=Math;L=M.min;Z=w.Jc;k=w.QV;b=w.T;C=wMC(k,w.g9,w.JY);C!==2&&(D=C?D:b+k.vI*1E3,k.gK&&(D+=k.vI*1E3));w.Jc=L.call(M,Z,D);w.nV<=w.T?OAj(w):(w.Md=w.nV,w.TU=!0)}}; DNa=function(w,D){if(D+1<=w.totalLength){var M=bK(w,D);M=M<128?1:M<192?2:M<224?3:M<240?4:5}else M=0;if(M<1||!(D+M<=w.totalLength))return[-1,D];if(M===1)w=bK(w,D++);else if(M===2)M=bK(w,D++),w=bK(w,D++),w=(M&63)+64*w;else if(M===3){M=bK(w,D++);var L=bK(w,D++);w=bK(w,D++);w=(M&31)+32*(L+256*w)}else if(M===4){M=bK(w,D++);L=bK(w,D++);var Z=bK(w,D++);w=bK(w,D++);w=(M&15)+16*(L+256*(Z+256*w))}else M=D+1,w.focus(M),LM(w,M,4)?w=eeT(w).getUint32(M-w.L,!0):(L=bK(w,M+2)+256*bK(w,M+3),w=bK(w,M)+256*(bK(w,M+1)+ 256*L)),D+=5;return[w,D]}; IM=function(w){this.zU=w;this.T=new A_}; U$=function(w,D){this.info=w;this.callback=D;this.state=1;this.J5=this.y0=!1;this.Yc=null}; MvC=function(w){return g.IJ(w.info.uW,function(D){return D.type===3})}; xf=function(w,D,M,L){var Z=this;L=L===void 0?{}:L;this.policy=D;this.zU=M;this.status=0;this.T=new A_;this.V=0;this.xt=this.D=this.L=!1;this.xhr=new XMLHttpRequest;this.xhr.open(L.method||"GET",w);if(L.headers)for(w=L.headers,D=g.x(Object.keys(w)),M=D.next();!M.done;M=D.next())M=M.value,this.xhr.setRequestHeader(M,w[M]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return Z.KY()}; this.xhr.onload=function(){return Z.onDone()}; this.xhr.onerror=function(){return Z.onError()}; this.xhr.fetch(function(k){Z.T.append(k);Z.V+=k.length;k=(0,g.IC)();Z.zU.YQ(k,Z.V)},function(){},L.body||null)}; L6l=function(w,D){this.V=(new TextEncoder).encode(w);this.T=(new TextEncoder).encode(D)}; Jea=function(w,D){var M;return g.B(function(L){if(!D)return L.return(D);M=new g.C_(w.V);return L.return(M.encrypt(D,w.T))})}; KVj=function(w,D){var M;return g.B(function(L){if(L.T==1){if(!D)return L.return(D);M=new g.C_(w.V);return g.c(L,M.decrypt(D,w.T),2)}return L.return(L.V)})}; knR=function(w,D){var M=this;this.T=w;this.zU=D;this.loaded=this.status=0;this.error="";w=PM(this.T.get("range")||"");if(!w)throw Error("bad range");this.range=w;this.V=new A_;ZdR(this).then(function(){M.zU.zR()},function(L){M.error=""+L||"unknown_err"; M.zU.zR()})}; ZdR=function(w){var D,M,L,Z,k,b,C,l,E,p,W,h,t,d,N;return g.B(function(n){if(n.T==1){w.status=200;D=w.T.get("docid");M=F4(w.T.get("fmtid")||"");L=w.T.get("lmt")||"0";Z=+(w.T.get("csz")||0);if(!D||!M||!Z)throw Error("Invalid local URL");w.T.get("ck")&&w.T.get("civ")&&(k=new L6l(w.T.get("ck"),w.T.get("civ")));b=w.range;C=Math.floor(b.start/Z);l=Math.floor(b.end/Z);E=C}if(n.T!=5)return E<=l?g.c(n,mVC(D,M,L,E,k),5):n.KV(0);p=n.V;if(p===void 0)throw Error("invariant: data is undefined");W=E*Z;h=(E+1)*Z; t=Math.max(0,b.start-W);d=Math.min(b.end+1,h)-(t+W);N=new Uint8Array(p.buffer,t,d);w.V.append(N);w.loaded+=d;w.loaded=400?(w.lastError="net.badstatus",!0):(Z===void 0?0:Z)?(w.lastError="ump.spsrejectfailure",!0):M||L!==void 0&&L?!1:(w.lastError=D===204?"net.nocontent":"net.connect",!0)}; Gp=function(w,D){if(w.policy.D6)return!1;var M=D.getResponseHeader("content-type"),L=D.xK();w=!L||L<=w.policy.Ee;return(!D.Zq()||!M||M.indexOf("text/plain")!==-1)&&w}; tvG=function(w,D){var M="";D=D.lK();D.totalLength<=w.policy.Ee&&(M=hQS(w,ZR(D)));return M}; hQS=function(w,D){var M=lK(D);return r9(M)?(w.logger.debug(function(){return"Redirecting to "+M}),M):""}; RM=function(w){return ev(w.D,J$(w.C6.BH))}; $Nj=function(w){var D=w.timing.KL();D.shost=J$(w.C6.BH);return D}; idI=function(w,D){return(w==null?void 0:w.maxWidth)>(D==null?void 0:D.maxWidth)||(w==null?void 0:w.maxHeight)>(D==null?void 0:D.maxHeight)}; dNK=function(w,D){for(var M=g.x(D.keys()),L=M.next();!L.done;L=M.next())if(L=D.get(L.value),L.length!==0){g.Jx(L,function(C,l){return l.maxFramerate-C.maxFramerate}); for(var Z=[L[0]],k=0,b=1;bw.T||M.push(L)}return M}; s$=function(w,D,M){var L=UNK[w]||[];M.C("html5_shorts_onesie_mismatched_fix")&&(L=xNI[w]||[]);D.push.apply(D,g.tG(L));M.C("html5_early_media_for_drm")&&D.push.apply(D,g.tG(NrK[w]||[]))}; nZK=function(w,D){var M=g.vB(w),L=w.X(),Z=L.W;L=L.C("html5_shorts_onesie_mismatched_fix");var k=w.Xz();if(L){if(!Z.V){if(k&&aM)return aM;if(vz)return vz}}else if(vz&&!Z.V)return vz;var b=[],C=[],l={},E=cz.concat(HdS);L&&(E=cz.concat(jbx));w.C("html5_early_media_for_drm")&&(E=E.concat(gZR),w.C("allow_vp9_1080p_mq_enc")&&E.push(RQN));var p=[].concat(g.tG(oZK));w.C("html5_iamf_audio_onesie_fmt")&&p.push(["773"]);E=g.x(E);for(var W=E.next();!W.done;W=E.next()){var h=!1;W=g.x(W.value);for(var t=W.next();!t.done;t= W.next()){t=t.value;var d=aI(t,k&&L);if(d&&d.video&&!(Sl(d)&&!M.c_&&d.video.qualityOrdinal>M.rK)){var N=g.A3(w.X().experiments,"html5_drm_byterate_soft_cap");N>0&&ssT(d)&&d.sL>N||(h?(b.push(t),s$(t,b,w)):(d=BO(M,d,Z),d===!0?(h=!0,b.push(t),s$(t,b,w)):l[t]=d))}}}p=g.x(p);for(E=p.next();!E.done;E=p.next())for(E=g.x(E.value),h=E.next();!h.done;h=E.next())if(h=h.value,(W=LVK(h))&&W.audio&&(w.C("html5_onesie_51_audio")||!Qd(W)&&!JF(W)))if(W=BO(M,W,Z),W===!0){C.push(h);s$(h,C,w);break}else l[h]=W;if(!w.C("html5_enable_audio_quality_setting"))for(w= g.x(["141","774"]),p=w.next();!p.done;p=w.next())p=p.value,C.includes(p)&&(g.HQ(C,p),l[p]="blkhqa");M.V&&D("orfmts",l);if(L)return Z.V&&(Z.V=!1,aM=vz=void 0),k?aM={video:b,audio:C}:vz={video:b,audio:C};vz={video:b,audio:C};Z.V=!1;return vz}; g.sbR=function(w,D,M){var L=M.W,Z=[],k=[],b=M.C("html5_shorts_onesie_mismatched_fix");w=w.Xz();var C=cz.concat(HdS);b&&(C=cz.concat(jbx));M.C("html5_early_media_for_drm")&&(C=C.concat(gZR),M.C("allow_vp9_1080p_mq_enc")&&C.push(RQN));var l=[].concat(g.tG(oZK));M.C("html5_iamf_audio_onesie_fmt")&&l.push(["773"]);C=g.x(C);for(var E=C.next();!E.done;E=C.next()){E=g.x(E.value);for(var p=E.next();!p.done;p=E.next()){p=p.value;var W=aI(p,w&&b);if(W&&W.video){var h=g.A3(M.experiments,"html5_drm_byterate_soft_cap"); if(!(h>0&&ssT(W)&&W.sL>h)&&BO(D,W,L)===!0){Z.push({videoCodec:F6K[r5[p]],maxWidth:W.video.width,maxHeight:W.video.height,maxFramerate:W.video.fps});break}}}}b=g.x(l);for(w=b.next();!w.done;w=b.next())for(w=g.x(w.value),l=w.next();!l.done;l=w.next())if(l=l.value,(C=LVK(l))&&C.audio&&(M.C("html5_onesie_51_audio")||!Qd(C)&&!JF(C))&&BO(D,C,L)===!0){k.push({audioCodec:GnJ[r5[l]],numChannels:C.audio.numChannels});break}return{videoFormatCapabilities:Z,audioFormatCapabilities:k}}; cor=function(w){var D,M={},L=w.Th,Z=w.P_,k=L.getVideoData(),b=t$(0),C=L.getVisibilityState(),l;if((l=w.p6)==null?0:l.Q8)M.CL=Z.CL;b&&(M.zD_=b,M.lastManualDirection=VpT(),b=QcK()||0,b>0&&(b=(Z.C("html5_use_date_now_for_local_storage")?Date.now():(0,g.IC)())-b,Z.C("html5_use_date_now_for_local_storage")?b>0&&(M.timeSinceLastManualFormatSelectionMs=b):M.timeSinceLastManualFormatSelectionMs=b));b=Z.C("html5_use_streamer_bandwidth_for_low_latency_live")&&k.isLowLatencyLiveStream;if(Z.schedule.y7&&!b){var E; b=Z.C("html5_disable_bandwidth_cofactors_for_sabr_live")?!((E=w.p6)==null||!E.L7):!1;M.e9=zm(Z.schedule,!b)}b=g.c_.medium;l=Math.floor(b*16/9);(E=k.Xz())||(k.T&&k.L&&k.L.videoInfos.length!==0?(E=k.L.videoInfos[0],E=!!E.video&&E.video.width0?{authorizedFormats:w.authorizedFormats}:{authorizedFormats:D};w.sabrLicenseConstraint&&(M.RR.sabrLicenseConstraint=w.sabrLicenseConstraint);if(Z.C("html5_onesie_media_capabilities")||Z.C("html5_enable_server_format_filter"))M.ZC= 3;Z.C("html5_onesie_audio_only_playback")&&F9(k)&&(M.ZC=1);var v;((v=w.p6)==null?0:v.k6)&&w.p$&&(M.ZC=M.ZC===void 0?7:M.ZC|4);v=k.TC?k.TC:g.vB(k);Z.C("html5_onesie_media_capabilities")&&(M.mediaCapabilities=g.sbR(k,v,Z));var G;if((G=w.p6)==null?0:Bz(G)){W=Z.W;G=[];D=[];h=new Map;t=Array.from(W.T.values());t=g.x(t);for(d=t.next();!d.done;d=t.next())N=d.value,N.XX?D.push({audioCodec:GnJ[N.RJ],numChannels:N.numChannels,spatialCapabilityBitmask:aCj[N.RJ]}):(n=F6K[N.RJ],d={videoCodec:n,maxWidth:N.maxWidth|| 0,maxHeight:N.maxHeight||0,maxFramerate:N.maxFramerate||0,is10BitSupported:N.PS||!1},N.maxBitrateBps&&(d.maxBitrateBps=N.maxBitrateBps,C=aI(N.itag),E=void 0,((E=C)==null?0:E.video)&&BO(v,C,W)===!0&&(C=C.sL*8,C>d.maxBitrateBps&&(d.maxBitrateBps=C))),N=n+"_"+N.PS,n=h.get(N)||[],n.push(d),h.set(N,n));G=dNK(G,h);W={};Z.C("html5_ssff_denylist_opus_low")&&(W={itagDenylist:[249,350]});M.mediaCapabilities={videoFormatCapabilities:G,audioFormatCapabilities:D,hdrModeBitmask:3,perPlaybackAttributes:W}}var f; if((f=w.p6)==null?0:f.T){M.oV=v.oV;var e;M.rK=(e=w.p6)==null?void 0:e.rK}Z.kP&&(M.hE=Z.kP);M.r4=w.N_;M.Qa=w.Qa;M.Ew=w.Ew;M.G1=w.G1;w.gM&&(M.ms_=(0,g.IC)()-w.gM);w.isPrefetch&&Z.C("html5_report_prefetch_requests")&&(M.isPrefetch=!0);dq||(M.khE=!0);f=S1(Z.schedule)*1E3;f>0&&(M.oe=f);var S;((S=w.p6)==null?0:S.aN)&&w.eg&&w.eg0?K:Z.schedule.interruptions[0]||0;var V;if((V=w.p6)==null?0:V.GU)M.fT=w.fT;Z.Nd&&(M.audioTrackId=Z.Nd);hW(k)&&!M.audioTrackId&&(Z.C("html5_fill_default_mosaic_audio_track_id")||(w=AOl(k),M.audioTrackId=w),k==null||k.H_("misstrkchg",{"default":M.audioTrackId}));if(k=FPr())M.detailedNetworkType=vZl[k]||vZl.other;Z.C("html5_enable_voice_boost")&&(M.IyL=Z.Jd);return M}; fX=function(w,D,M,L,Z,k,b){var C={};D&&(C.F9=D);if(!w)return C;C.playbackCookie=M==null?void 0:M.playbackCookie;Z&&(C.hO=Z);C.PR=[];C.MI=[];if(b==null?0:b.size)for(D=g.x(b.values()),M=D.next();!M.done;M=D.next())C.MI.push(M.value);if(w.sabrContextUpdates.size>0)for(D=g.x(w.sabrContextUpdates.values()),M=D.next();!M.done;M=D.next())BrK(C,M.value,L);ay(w)&&k&&BrK(C,k,L);L=w.X().T;C.clientInfo={clientName:fCJ[L.c.toUpperCase()]||0};L.cbrand&&(C.clientInfo.deviceMake=L.cbrand);L.cmodel&&(C.clientInfo.deviceModel= L.cmodel);L.cver&&(C.clientInfo.clientVersion=L.cver);L.cos&&(C.clientInfo.osName=L.cos);L.cosver&&(C.clientInfo.osVersion=L.cosver);L=w.X();L.C("html5_sabr_enable_server_xtag_selection")&&L.UV&&(C.clientInfo.hl=L.UV);w.Ft&&(C.Ft=w.Ft);return C}; BrK=function(w,D,M){var L=D.type||0;(M==null?0:M.has(L))?w.MI.push(D):w.PR.push(L)}; Z8=function(w,D,M,L,Z,k){var b=k===void 0?{}:k;var C=b.Gy===void 0?[]:b.Gy;var l=b.hq===void 0?!1:b.hq;var E=b.Yb===void 0?0:b.Yb;var p=b.poToken===void 0?"":b.poToken;var W=b.Lk===void 0?void 0:b.Lk;var h=b.Xk===void 0?"":b.Xk;var t=b.Ns===void 0?0:b.Ns;var d=b.Ss===void 0?new Uint8Array(0):b.Ss;var N=b.ql===void 0?!1:b.ql;k=b.J2===void 0?0:b.J2;b=b.F9===void 0?void 0:b.F9;U$.call(this,D,Z);var n=this;this.policy=w;this.logger=new g.yI("dash/request");this.dU=this.Qy=0;this.ai=!1;this.NT=this.Vm= null;this.Uz=!1;this.Ss=this.Ns=null;this.yu=this.dQ=!1;this.K0=null;this.J2=this.dN=0;this.Yg=!1;this.Bz={lj:function(G){n.lj(G)}, Klc:function(){return n.Yc}, el7:function(G){n.Yc=G}, EZ7:function(G){n.Qy=G}, QbL:function(G){n.YA.lastError=G}, k_:function(){return n.xhr}}; this.timing=new iz(this,M);this.hq=l;this.Ns=t;this.Ss=d;this.C6=g.Cr(this.info,this.policy,L);this.C6.set("rn",this.SV().toString());this.C6.set("rbuf",(E*1E3).toFixed().toString());this.hq&&this.C6.set("smb","1");this.policy.td&&p&&this.C6.set("pot",p);h&&this.C6.set("bbs",h);this.policy.useUmp&&!za(this.C6.BH)&&(this.HO=new IM(this),this.C6.set("ump","1"),this.C6.set("srfvp","1"));if(w=this.policy.UZ?this.policy.f0&&!isNaN(this.info.JY)&&this.info.JY>this.policy.G5?!1:!0:!1)D=null,this.policy.pw&& this.policy.x8?D=[1]:N&&(D=[]),D!=null&&(this.policy.ez&&D.push(2),this.C6.set("defsel",D.join(",")));this.YA=new gp(this,this.policy,this.C6,this.info.Zv,this.timing,this.logger,L,W);this.Gy=C||null;this.J5=qYC(this);lCN(this.YA);L=void 0;if(this.policy.T8||this.HO||this.policy.fV)L={method:"POST"},C=(0,g.qU)([120,0]),W={},this.policy.YH&&b&&(b=fX(void 0,b),W.Sn=b),this.policy.Kk&&this.Ss&&(W.videoPlaybackUstreamerConfig=this.Ss),this.policy.fV&&(b=this.info.D)&&Object.assign(W,b),Object.keys(W).length> 0?L.body=g.Q2(W,g.Gw):L.body=C;if(this.Ns&&this.Ss){this.C6.set("iwts","1");L={method:"POST"};b={G1:this.Ns*1E3};var v;C=(v=this.info.D)==null?void 0:v.TK;v=g.Q2({Jz:b,TK:C||void 0,videoPlaybackUstreamerConfig:this.Ss},g.Gw);L.body=v}try{this.xhr=NU(this.C6,this.policy.G,this.timing,w,L),this.YA.V.start(),k&&(this.hg=new g.ui(this.Dt,k,this),this.hg.start(k+(this.timing.Kl.U.Td()||0)*1E3)),this.policy.Vn&&$f(this.timing,this.M8()),this.logger.debug(function(){return"Sent, itag="+n.C6.get("itag")+ " seg="+n.info.uW[0].g9+" range="+n.C6.get("range")+" time="+Math.round(n.info.uW[0].W)+"-"+Math.round(g.$B(n.info.uW).Y)+" rtp="+(n.timing.jq()-Date.now()).toFixed(0)}),g.j4(function(){})}catch(G){roR(this,G,!0)}}; qYC=function(w){if(!(Yg(w.info)&&w.info.jt()&&w.policy.X6&&w.Gy)||w.info.Zv.L>=2||t$()>0||!muT())return!1;var D=w.C6.get("aitags");if(!D)return!1;D=F4(D).split(",");for(var M=[],L=g.x(w.Gy),Z=L.next();!Z.done;Z=L.next())Z=Z.value,g.xB(D,Z)&&M.push(Z);if(!M.length)return!1;w.C6.set("altitags",g.og(M.join(",")));return!0}; roR=function(w,D,M){M=M===void 0?!1:M;g.HL(D);w.YA.lastError="player.exception";w.errorMessage=D.name+"_"+D.message;M?g.j4(function(){nX(w.YA)}):nX(w.YA)}; eQj=function(w,D){w.timing.y7=!0;w.xhr.Zq()&&w.timing.sF();if(w.policy.UV){var M;(M=w.hg)==null||M.stop()}jM(w.Yc,D,!1)}; XMG=function(w,D){w.info=D;if(w.Yc){var M=w.Yc;D=D.uW;(D.length!==M.uW.length||D.length0){D=g.x(D.uW);for(var M=D.next();!M.done;M=D.next()){var L=void 0;w+=((L=M.value.range)==null?void 0:L.length)||0}return w}if(D.eD.length>0)for(M=g.x(D.eD),L=M.next();!L.done;L=M.next())w+=L.value.Nb||0;return w+D.K5}; Jg=function(w,D){if(uz){var M=0;w=w.N$.get(D);if(w==null||!w.bb)return 0;w=g.x(w.bb.values());for(D=w.next();!D.done;D=w.next())M+=D.value.data.totalLength;return M}return((M=w.N$.get(D))==null?void 0:M.pO.totalLength)||0}; zp=function(w,D){w=w.N$.get(D);if(uz){if(w==null||!w.GJ)return!1;D=w.bb.size>0;return w.Xs.length>0||D}return!(w==null||!w.GJ)&&!(w==null||!w.pO.totalLength)}; zQC=function(w,D){var M=w.N$.get(D),L=Joa(w,D),Z=!L&&!!M.bytesReceived;if(uz){var k;if((k=w.r9)==null?0:k.Yl){w=g.x(M.bb.values());for(D=w.next();!D.done;D=w.next())if(!D.value.Kz)return!1;return Z}}else if(k=w.nz(D),Z&&w.T&&k!==void 0)return k;return(Z||M.bytesReceived===L)&&M.xe+Jg(w,D)===M.bytesReceived}; VvI=function(w,D,M){w.N$.set(D,{pO:new A_,xe:0,bytesReceived:0,K5:0,S1:!1,VL:!1,nz:!1,XX:M,VO:[],uW:[],eD:[],GJ:!1,bb:new Map,rO:new Map,Xs:[]});w.logger.debug(function(){return"[initStream] formatId: "+D})}; P2I=function(w,D,M,L){M.uW.push.apply(M.uW,g.tG(L));if(uz){M.rO.has(D)||M.rO.set(D,[]);var Z;(Z=M.rO.get(D)).push.apply(Z,g.tG(L))}else if(M.Yc)for(w=g.x(L),D=w.next();!D.done;D=w.next())M.Yc.uW.push(D.value);else{M.Yc=new Hz(w.p6,[].concat(g.tG(M.uW)));var k;((k=w.p6)==null?0:k.Z9)&&g.T(w,M.Yc)}}; Oda=function(w,D,M){var L,Z=(L=w.r9)==null?void 0:L.L.get(D);if(!Z)return[];if(M.Ad){var k;return((k=Z.iH(0,M.clipId))==null?void 0:k.uW)||[]}if(Z.kL()){var b=M.startMs,C=M.durationMs;L=1E3;var l;if(((l=w.p6)==null?0:l.T)&&M.timeRange){var E;b=(E=M.timeRange.startTicks)!=null?E:-1;var p;C=(p=M.timeRange.zM)!=null?p:-1;var W;L=(W=M.timeRange.timescale)!=null?W:-1}if(M.kG<0||M.TV<0||C<0||b<0||M.Nb<0||L<0)return Qi(w,D),[];w=OY(M.kG,M.Nb);D=M.yT||0;return[new m6(3,Z,w,"makeSliceInfosMediaBytes",M.TV- 1,b/L,C/L,D,w.length-D,void 0,M.mw,M.clipId)]}if(M.TV<0)return Qi(w,D),[];var h;return((h=w.r9)==null?0:h.Yl)?(D=Z.y8,l=D*Z.info.sL,E=M.yT,((C=w.p6)==null?0:C.Up)&&M.timeRange&&!E&&(b=M.timeRange.startTicks/M.timeRange.timescale),[new m6(3,Z,void 0,"makeSliceInfosMediaBytes",M.TV,b,D,E,l,!0,M.mw,M.clipId)]):[]}; K6K=function(w,D,M){w.r9=D;w.p6=M;D=g.x(w.N$);for(M=D.next();!M.done;M=D.next()){var L=g.x(M.value);M=L.next().value;L=L.next().value;for(var Z=g.x(L.VO),k=Z.next();!k.done;k=Z.next()){k=k.value;var b=Oda(w,M,k);P2I(w,k.LW,L,b)}}}; Vi=function(w,D,M,L){w.logger.debug(function(){return"[addStreamData] formatId: "+M+",headerId: "+D+" bytes: "+L.totalLength}); (w=w.N$.get(M))&&!w.VL&&(uz?(w.bb.has(D)||w.bb.set(D,{data:new A_,W1:0,Kz:!1}),wn(w.bb.get(D).data,L)):wn(w.pO,L),w.bytesReceived+=L.totalLength,w.S1=!0)}; SM=function(w,D){w.logger.debug(function(){return"[closeStream] formatId: "+D}); var M=w.N$.get(D);if(M&&!M.VL){M.VL=!0;if(M.onProgress)M.onProgress();mNR(w)&&w.D.Sj()}}; mNR=function(w){w=g.x(w.N$.values());for(var D=w.next();!D.done;D=w.next())if(!D.value.VL)return!1;return!0}; AoI=function(w){uz=w}; Pz=function(w,D,M,L,Z,k,b){g.X.call(this);this.policy=w;this.info=D;this.r9=M;this.zU=Z;this.logger=new g.yI("sabr");this.HO=new IM(this);this.Pu=new Xu(this);this.HI=new Tp(this);this.state=1;this.ZD=!1;this.e1=0;this.clipId="";this.BX=-1;this.Oh=0;this.xv=-1;this.dJ=this.Yg=this.n2=!1;this.policy.FO?this.Hr=new rp(this,k):this.Hr=new iz(this,k);this.C6=this.policy.GU?D.gw:wyK(D,this.policy,L);this.C6.set("rn",""+this.SV());this.C6.set("alr","yes");K6K(this.HI,M,w);this.YA=new gp(this,this.policy, this.C6,D.Zv,this.Hr,this.logger,L,b,this.policy.enableServerDrivenRequestCancellation);lCN(this.YA);var C;if((C=this.policy)==null?0:C.Z9)g.T(this,this.HI),g.T(this,this.YA);w=D.V;D={method:"POST",body:w};w&&(this.Oh=w.length);try{this.xhr=NU(this.C6,this.policy.G,this.Hr,dq,D),this.policy.Vn&&$f(this.Hr,this.M8()),this.YA.V.start()}catch(l){g.jn(l)}}; DHI=function(w){w.policy.w6&&w.aU&&!w.dJ?w.dJ=!0:w.Hr.sF()}; MIS=function(w,D){var M=-1,L=-1,Z=-1,k;if((k=w.EX)==null?0:k.items)for(w=g.x(w.EX.items),k=w.next();!k.done;k=w.next())k=k.value,D=C,l=w.r9.isManifestless,b){var E;if(((E=w.T)==null?void 0:E.Pr.event)==="predictStart"&&w.T.g9w.Y&&(w.Y=NaN,w.G=NaN);w.T&&w.T.g9===D?ycx(w,D,M,w.T,Z):w.V===1&&Ag(w,5,"noad")}; IyJ=function(w,D,M,L,Z){L.TZ?Ag(w,4,"cue"):(w.Y=D,w.G=M,w.H_("sdai",{joinad:w.V,sg:w.Y,st:w.G.toFixed(3)}),w.B=Date.now(),Ag(w,2,w.V===3?"staftpred":"join"),Z.kf(L.Pr))}; ycx=function(w,D,M,L,Z){if(Z&&L){var k=L.Pr,b=Z.Fr(k);k.event==="predictStart"&&(w.V7=D);w.H_("sdai",{onqevt:k.event,sq:D,mt:M,gab:b,cst:k.startSecs,cueid:w.policy.zJ&&(b||k.event==="start")?k.identifier:void 0},!0);if(b)k.event!=="predictStart"?(k.event==="start"&&w.V7===D-1&&w.H_("sdai",{gabonstart:D}),IyJ(w,D,M,L,Z)):w.policy.oC?Ag(w,3,"predict"):(D+=Math.max(Math.ceil(-k.T/5E3),1),k=Math.floor(M-k.T/1E3),w.policy.V?w.W=k:w.D=D,w.H_("sdai",{onpred:M,estsq:D,estmt:k.toFixed(3)}),wv(w.loader,k,k, D),w.B=Date.now(),Ag(w,3,"predict"),Z.kf(L.Pr));else if(w.V===1){var C;((C=w.L)==null?0:C.hR(M))?(wv(w.loader,M,M,D),Ag(w,4,"sk2head")):Ag(w,5,"nogab")}else k.event==="predictStart"?w.policy.V&&w.W>0?(M=Math.floor(M-k.T/1E3),w.W!==M&&w.H_("sdai",{updateSt:M,old:w.W}),w.W=M):w.D>0&&(M=D+Math.max(Math.ceil(-k.T/5E3),1),w.D!==M&&(w.H_("sdai",{updateSt:M,old:w.D}),w.D=M)):w.policy.oC&&w.V===3&&IyJ(w,D,M,L,Z)}else w.H_("sdai",{nulldec:1,sq:D,mt:M.toFixed(3),evt:(L==null?void 0:(k=L.Pr)==null?void 0:k.event)|| "none"})}; xHl=function(w,D,M){if(w.policy.h2&&w.policy.V)return!(w.V===1||w.V===2||!w.policy.oC&&w.V===3&&M>=w.D);if(w.V===1||w.V===2)return!1;if(w.V!==0&&D===w.audioTrack){if(w.policy.V)return UHl(w.videoTrack,M)||UHl(w.videoTrack,M+1);w=DW(w.videoTrack);if(M>(w?w.g9:-1))return!1}return!0}; M_=function(w,D,M){return(M<0||M===w.Y)&&!isNaN(w.G)?w.G:D}; tII=function(w,D){if(w.T){var M=w.T.Pr.x6-(D.startTime+w.U-w.T.Pr.startSecs);M<=0||(M=new YZ(w.T.Pr.startSecs-(isNaN(w.U)?0:w.U),M,w.T.Pr.context,w.T.Pr.identifier,"stop",w.T.Pr.T+D.duration*1E3),w.H_("cuepointdiscontinuity",{segNum:D.g9}),mc(w,M,D.g9))}}; Ag=function(w,D,M){w.V!==D&&(w.H_("sdai",{setsst:D,old:w.V,r:M}),w.V=D)}; L9=function(w,D,M,L){(L===void 0?0:L)?Ag(w,1,"seek"):D>0&&Math.abs(D-M)>=5&&w.V===4&&Ag(w,5,"sk2t")}; NgJ=function(w,D){this.L=w;this.H_=D;this.T="";this.V=new Map}; Hrj=function(w,D,M,L,Z){if(w.V.has(D.identifier)){var k=w.V.get(D.identifier);L>k.Gt&&(k.startTimeSecs=D.startSecs,k.x6=D.x6,k.event==="predictStart"&&k.cO===5&&D.event!=="predictStart"&&(k.dL=Date.now()),k.event=D.event)}else k={event:D.event,startTimeSecs:D.startSecs,x6:D.x6,jN:[],Gt:L,cO:0},w.V.set(D.identifier,k);Z&&k.cO===0&&(Z.Fr(D)?k.cO=5:(k.cO=2,k.B7=""),k.dL=Date.now(),k.Gt=L);L>k.Gt&&(Z==null||Z.Fr(D),k.Gt=L);w.D&&M>-1&&M1E4?(w.cO=1,!1):!0:!1}; RyG=function(w){switch(w){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; ZW=function(w,D,M){this.audio=w;this.video=D;this.reason=M}; ku=function(w,D,M){this.T=w;this.reason=D;this.token=M;this.videoId=void 0}; bP=function(w,D,M){g.X.call(this);this.policy=w;this.D=D;this.H_=M;this.L=new Map;this.W=0;this.Y=!1;this.T="";this.V=!1}; Yu=function(w,D,M){if(M===void 0?0:M)w.Y=!0;++w.W;M=6E4*Math.pow(2,w.W);M=(0,g.IC)()+M;w.L.set(D.info.id,M)}; C9=function(w){for(var D=g.x(w.L.entries()),M=D.next();!M.done;M=D.next()){var L=g.x(M.value);M=L.next().value;L=L.next().value;L<(0,g.IC)()&&w.L.delete(M)}return w.L}; ogx=function(w){return w.Y&&C9(w).size>0}; lP=function(w,D){w.T!==D&&(w.T=D,w.V=!0)}; ngK=function(w,D){var M;D&&(M=g.y1(w.D.T,function(Z){return Z.id===D})); if(!M&&(M=g.y1(w.D.T,function(Z){var k;return!((k=Z.dW)==null||!k.isDefault)}),D)){var L; w.H_("iaf",{id:D,sid:(L=M)==null?void 0:L.id})}return M}; p9=function(w,D,M,L,Z,k){var b=this;k=k===void 0?[]:k;this.loader=w;this.nV=D;this.policy=M;this.r9=L;this.Y=Z;this.EL=k;this.logger=new g.yI("dash/abr");this.T=$i;this.L=this.G=null;this.B=-1;this.Jc=!1;this.nextVideo=this.V=null;this.D=[];this.jk=new Set;this.fV={};this.Nd=new fg(1);this.U=0;this.XE=this.V7=this.y7=!1;this.c_=0;this.bW=!1;this.W_=new Set;this.Md=!1;this.Bz={Kj:function(){EI(b)}}; this.W=new bP(this.policy,Z,function(C,l){b.loader.H_(C,l)})}; vgJ=function(w,D,M){Ws(w,D);D=ngK(w.W,M);M||D||(D=Fkj(w));D=D||w.Y.T[0];w.V=w.r9.T[D.id];EI(w);w.G=w.V;GHI(w);stS(w);w.L=w.nextVideo;w.G=w.V;return ayr(w)}; fyN=function(w,D){if(ccr(w,D))return null;if(D.reason==="m"&&D.isLocked())return w.logger.debug(function(){return"User sets constraint to: "+Ga(D)}),Ws(w,D),w.U=w.D.length-1,EI(w),h8(w),w.V7=w.V7||w.L!==w.nextVideo,w.L=w.nextVideo,new ZW(w.V,w.L,D.reason); D.reason==="r"&&(w.B=-1);Ws(w,D);h8(w);if(D.reason==="r"&&w.nextVideo===w.L)return new ZW(w.V,w.nextVideo,D.reason);BgR(w);return null}; qzK=function(w,D,M){w.V=w.r9.T[D];w.G=w.V;return new ZW(w.G,w.L,M?"t":"m")}; rcx=function(w,D){if(D.info.video){if(w.L!==D)return w.L=D,ayr(w)}else w.XE=w.G!==D,w.G=D;return null}; eyj=function(w,D){if(D.T.info.video&&D.D){var M=(D.V+D.L)/D.duration,L=D.T.info.sL;M&&L&&(w.Nd.pJ(1,M/L),w.policy.L&&M/L>1.5&&w.loader.H_("overshoot",{sq:D.g9,br:M,max:L}))}}; t8=function(w,D,M){Yu(w.W,D,M===void 0?!1:M);w.B=-1;Ws(w,w.T)}; XyN=function(w,D){return new ZW(w.G,w.L,D||w.T.reason)}; BgR=function(w){if(w.L&&w.nextVideo&&$u(w,w.L.info)<$u(w,w.nextVideo.info)){var D=w.T.reason;w.y7=w.y7||D==="r"||D==="u"||D==="v"}}; ayr=function(w){w.Jc?w.Jc=!1:w.B=(0,g.IC)();w.y7=!1;w.Md=!1;return new ZW(w.G,w.L,w.T.reason)}; TgG=function(w,D){var M={};D=g.x(D);for(var L=D.next();!L.done;L=D.next())if((L=L.value)&&L.video){var Z=L.video.qualityOrdinal,k=M[Z],b=k&&Sl(k)&&k.video.qualityOrdinal>w.policy.rK,C=Z<=w.policy.rK?Sl(L):Xt(L);if(!k||b||C)M[Z]=L}return M}; Ws=function(w,D){w.T=D;var M=w.Y.videoInfos;if(!w.T.isLocked()){var L=(0,g.IC)();M=g.ox(M,function(C){if(C.sL>this.policy.sL)return!1;var l=this.r9.T[C.id];return C9(this.W).get(C.id)>L?!1:l.Zv.L>4||l.Y>4?(this.logger.debug(function(){return"Remove "+D0(C)+"; 4 load failures"}),!1):this.W_.has(+C.itag)?!1:!0},w); ogx(w.W)&&(M=g.ox(M,function(C){return C.video.width<=854&&C.video.height<=480}))}M.length||(M=w.Y.videoInfos); var Z=M;w.policy.Hw&&(Z=uEJ(w,Z,D));Z=g.ox(Z,D.D,D);if(w.T.isLocked()&&w.W.T){var k=g.y1(M,function(C){return C.id===w.W.T}); k?Z=[k]:lP(w.W,"")}w.policy.Hw||(Z=uEJ(w,Z,D));Z.length||(Z=[M[0]]);Z.sort(function(C,l){return $u(w,C)-$u(w,l)}); D={};for(M=1;MD.wv.video.width?(g.NZ(Z,M),M--):$u(w,D.WJ)*w.policy.U>$u(w,D.wv)&&(g.NZ(Z,M-1),M--);var b=Z[Z.length-1];w.bW=!!w.L&&!!w.L.info&&w.L.info.RJ!==b.RJ;w.logger.debug(function(){return"Constraint: "+Ga(w.T)+", "+Z.length+" fmts selectable, max selectable fmt: "+D0(b)}); w.D=Z;w.jk.clear();D=!1;for(M=0;M=1080&&(D=!0);Szl(w.policy,b,w.r9.Yl)}; uEJ=function(w,D,M){var L=M.reason==="m"||M.reason==="s";w.policy.Mv&&iP&&g.pf&&(!L||M.T<1080)&&(D=D.filter(function(E){return E.video&&(!E.V||E.V.powerEfficient)})); if(D.length>0)if(td()){var Z=TgG(w,D);D=D.filter(function(E){return!!E&&!!E.video&&E.RJ===Z[E.video.qualityOrdinal].RJ})}else{var k,b,C=(k=D[0])==null?void 0:(b=k.video)==null?void 0:b.qualityOrdinal; if(C){M=D.filter(function(E){return!!E&&!!E.video&&E.video.qualityOrdinal===C}); var l=TgG(w,M)[C].RJ;D=D.filter(function(E){return!!E&&!!E.video&&E.RJ===l})}}return D}; QtK=function(w,D){for(var M=0;M+1L}; EI=function(w){if(!w.V||!w.policy.D&&!w.V.info.dW){var D=w.Y.T;w.V&&(D=D.filter(function(L){return L.audio.T===w.V.info.audio.T}),D.length||(D=w.Y.T)); w.V=w.r9.T[D[0].id];if(D.length>1&&!w.policy.XE){if(!w.policy.Q8){var M=g.y1(D,function(L){return L.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); M&&(w.V=w.r9.T[M.id])}M=!1;if(M=w.policy.FK?!0:w.T.isLocked()?w.T.T<240:QtK(w,w.V))w.V=w.r9.T[g.$B(D).id]}}}; h8=function(w){if(!w.nextVideo||!w.policy.D)if(w.T.isLocked())w.nextVideo=w.T.T<=360?w.r9.T[w.D[0].id]:w.r9.T[g.$B(w.D).id],w.logger.debug(function(){return"Select max fmt: "+D0(w.nextVideo.info)}); else{for(var D=Math.min(w.U,w.D.length-1),M=AX(w.nV),L=$u(w,w.V.info),Z=M/w.policy.V7-L;D>0&&!($u(w,w.D[D])<=Z);D--);for(var k=M/w.policy.U-L;D=k);D++);w.nextVideo=w.r9.T[w.D[D].id];w.U!==D&&w.logger.info(function(){return"Adapt to: "+D0(w.nextVideo.info)+", bandwidth: "+M.toFixed(0)+", bandwidth to downgrade: "+Z.toFixed(0)+", bandwidth to upgrade: "+k.toFixed(0)+", constraint: "+Ga(w.T)}); w.U=D}}; GHI=function(w){var D=w.policy.V7,M=AX(w.nV),L=M/D-$u(w,w.V.info);D=g.IS(w.D,function(Z){return $u(this,Z)k?Z=0:L[b]>w.buffered[b]&&(b===k-1?Z=2:b===k-2&&L[b+1]>w.buffered[b+1]&&(Z=3))}w.T.add(D<<3|(M&&4)|Z);D=Math.ceil(w.track.GK()*1E3);w.T.add(D-w.W);w.W=D;if(Z===1)for(w.T.add(k),b=D=0;b=2&&w.T.add(L[k- 1]-w.buffered[k-1]);M&&w.T.add(M);w.buffered=L}; If=function(w,D,M){var L=this;this.policy=w;this.T=D;this.c_=M;this.D=this.V=0;this.yy=null;this.y7=new Set;this.B=[];this.indexRange=this.initRange=null;this.U=new HF;this.V7=this.nV=!1;this.Bz={oQt:function(){return L.L}, SRV:function(){return L.chunkSize}, F_k:function(){return L.G}, gy5:function(){return L.Y}}; (D=OrS(this))?(this.chunkSize=D.csz,this.L=Math.floor(D.clen/D.csz),this.G=D.ck,this.Y=D.civ):(this.chunkSize=w.Ku,this.L=0,this.G=g.WJ(16),this.Y=g.WJ(16));this.W=new Uint8Array(this.chunkSize);this.G&&this.Y&&(this.crypto=new L6l(this.G,this.Y))}; OrS=function(w){if(w.policy.wI&&w.policy.cE)for(var D=g.x(w.policy.wI),M=D.next(),L={};!M.done;L={yb:void 0,JR:void 0},M=D.next())if(M=g.Kj(M.value),L.yb=+M.clen,L.JR=+M.csz,L.yb>0&&L.JR>0&&w.policy.D===M.docid&&w.T.info.id===M.fmtid&&w.T.info.lastModified===+M.lmt)return w={},w.clen=L.yb,w.csz=L.JR,w.ck=M.ck,w.civ=M.civ,w}; UI=function(w){return!!w.yy&&w.yy.wK()}; Acr=function(w,D){if(!UI(w)&&!w.xt()){if(!(w.nV||(w.nV=!0,w.L>0))){var M=xu(w);M=bf(w.policy.D,w.T.info,N_(w),M,w.policy.pV);Hs(w,M)}if(D.info.type===1){if(w.yy){jh(w,Error("Woffle: Expect INIT slices to always start us off"));return}w.initRange=OY(0,D.V.totalLength)}else if(D.info.type===2)w.yy&&w.yy.type===1||jh(w,Error("Woffle: Index before init")),w.indexRange=OY(w.initRange.end+1,D.V.totalLength);else if(D.info.type===3){if(!w.yy){jh(w,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(w.yy.type===3&&!Dy(w.yy,D.info)&&(w.B=[],D.info.g9!==MH(w.yy)||D.info.V!==0))return;if(D.info.D){M=g.x(w.B);for(var L=M.next();!L.done;L=M.next())KkG(w,L.value);w.B=[]}else{w.B.push(D);w.yy=D.info;return}}else{jh(w,Error("Woffle: Unexpected slice type"));return}w.yy=D.info;KkG(w,D);mHa(w)}}; KkG=function(w,D){var M=0,L=ZR(D.V);if(w.D=L.length)return;if(M<0)throw Error("Missing data");w.D=w.L;w.V=0}for(Z={};M0){var b=L.getUint32(M+28);k+=b*16+4}var C=L.getUint32(M+k-4);try{var l=Zgl(D.subarray(M+k,M+k+C));if(l!==null){var E=l;break a}}catch(p){}}M+=Z}E=null;break a}catch(p){E=null;break a}E=void 0}if(E!=null)for(D=yK(AV(E,7,void 0,a0)),D==null||w.Dr||(w.cryptoPeriodIndex=D),D=yK(AV(E,10,void 0,a0)),D!=null&&D>0&& !w.Dr&&(w.T=D),E=bY(E,2,o1j,void 0===sgJ?2:4),E=g.x(E),L=E.next();!L.done;L=E.next())D=w.L,M=D.push,L=BC(L.value),L=g.oJ(L,4),M.call(D,L)}; bgk=function(w){return isNaN(w.cryptoPeriodIndex)?g.oJ(w.initData):""+w.cryptoPeriodIndex}; of=function(w,D,M){var L=M===void 0?{}:M;M=L.videoDuration===void 0?0:L.videoDuration;var Z=L.S0===void 0?void 0:L.S0;L=L.i7===void 0?!1:L.i7;this.videoId=w;this.status=D;this.videoDuration=M;this.S0=Z;this.i7=L}; Y2C=function(w,D,M,L,Z){this.videoId=w;this.BG=D;this.V=M;this.bytesDownloaded=L;this.T=Z}; n9=function(w){this.T=w;this.offset=0}; F1=function(w){if(w.offset>=w.T.totalLength)throw Error();return bK(w.T,w.offset++)}; C3R=function(w,D){D=D===void 0?!1:D;var M=F1(w);if(M===1){D=-1;for(M=0;M<7;M++){var L=F1(w);D===-1&&L!==255&&(D=0);D>-1&&(D=D*256+L)}return D}L=128;for(var Z=0;Z<6&&L>M;Z++)M=M*256+F1(w),L*=128;return D?M:M-L}; lOl=function(w){try{var D=C3R(w,!0),M=C3R(w,!1);return{id:D,size:M}}catch(L){return{id:-1,size:-1}}}; Etj=function(w){for(var D=new n9(w),M=-1,L=0,Z=0;!L||!Z;){var k=lOl(D),b=k.id;k=k.size;if(b<0)return;if(b===176){if(k!==2)return;L=D.vO()}else if(b===186){if(k!==2)return;Z=D.vO()}b===374648427?M=D.vO()+k:b!==408125543&&b!==174&&b!==224&&D.skip(k)}D=kT(w,0,M);M=new DataView(D.buffer);M.setUint16(L,3840);M.setUint16(Z,2160);L=new A_([D]);wn(L,w);return L}; pdJ=function(w,D,M){var L=this;this.loader=w;this.policy=D;this.W=M;this.logger=new g.yI("dash");this.V=[];this.T=null;this.nV=-1;this.B=0;this.W_=NaN;this.y7=0;this.L=NaN;this.U=this.Jc=0;this.bW=-1;this.fV=this.D=this.Y=this.c_=null;this.Nd=this.XE=NaN;this.G=this.V7=this.jk=this.EL=null;this.pV=!1;this.Md=this.timestampOffset=0;this.Bz={aF:function(){return L.V}}; if(this.policy.D){var Z=this.W,k=this.policy.D;this.policy.pV&&w.H_("atv",{ap:this.policy.pV});this.G=new If(this.policy,Z,function(b,C,l){GO(w,new of(L.policy.D,2,{S0:new Y2C(k,b,Z.info,C,l)}))}); this.G.U.promise.then(function(b){L.G=null;b===1?GO(w,new of(L.policy.D,b)):L.loader.H_("offlineerr",{status:b.toString()})},function(b){var C=(b.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); b instanceof gv&&!b.T?(L.logger.info(function(){return"Assertion failed: "+C}),L.loader.H_("offlinenwerr",{em:C}),sI(L),GO(w,new of(L.policy.D,4))):(L.logger.info(function(){return"Failed to write to disk: "+C}),L.loader.H_("dldbwerr",{em:C}),sI(L),GO(w,new of(L.policy.D,4,{i7:!0})))})}}; WJC=function(w){return w.V.length?w.V[0]:null}; hUk=function(w,D){return w.V.some(function(M){return M.info.g9===D})}; ybJ=function(w,D,M,L){L=L===void 0?0:L;if(w.D){var Z=w.D.V+w.D.L;if(M.info.V>0)if(M.info.g9===w.D.g9&&M.info.V=0&&w.D.g9>=0&&!Dy(w.D,M.info))throw new g.qA("improper_continuation",w.D.PA(),M.info.PA());d$C(w.D,M.info)||af(w,"d")}else if(M.info.V>0)throw new g.qA("continuation_of_null",M.info.PA());w.D=M.info;w.W=M.info.T;if(M.info.V===0){if(w.T)if(!w.loader.isOffline()||w.policy.Px)w.loader.H_("slice_not_fully_processed", {buffered:w.T.info.PA(),push:M.info.PA()});else throw new g.qA("slice_not_fully_processed",w.T.info.PA(),M.info.PA());vs(w);w.Jc=L}else{if(w.Jc&&L&&w.Jc!==L)throw w=new g.qA("lmt_mismatch",M.info.g9,w.Jc,L),w.level="WARNING",w;!M.info.T.kL()&&w.Y&&(L=M.info,Z=w.Y.BX,L.G="updateWithEmsg",L.g9=Z)}if(w.T){L=g.NH(w.T,M);if(!L)throw new g.qA("failed_to_merge",w.T.info.PA(),M.info.PA());w.T=L}else w.T=M;a:{M=g.zw(w.T.info.T.info);if(w.T.info.type!==3){if(!w.T.info.D)break a;w.T.info.type===6?t1N(w,D,w.T): $br(w,w.T);w.T=null}for(;w.T;){L=w.T.V.totalLength;if(w.nV<=0&&w.B===0){var k=w.T.V,b=-1;Z=-1;if(M){for(var C=0;C+80))break;if(W!==408125543)if(W===524531317)C=!0,p>=0&&(Z=k.vO()+p,l=!0);else{if(C&&(W===160||W===163)&&(b<0&&(b=E),l))break;W===163&&(b=Math.max(0,b),Z=k.vO()+p);if(W===160){b<0&&(Z=b=k.vO()+ p);break}k.skip(p)}}b<0&&(Z=-1)}if(b<0)break;w.nV=b;w.B=Z-b}if(w.nV>L)break;w.nV?(L=igI(w,w.nV),L.W&&dbC(w,L),t1N(w,D,L),cs(w,L),w.nV=0):w.B&&(L=igI(w,w.B<0?Infinity:w.B),w.B-=L.V.totalLength,cs(w,L))}}w.T&&w.T.info.D&&(cs(w,w.T),w.T=null)}; $br=function(w,D){!D.info.T.kL()&&D.info.V===0&&(g.zw(D.info.T.info)||D.info.T.info.Dr())&&AFr(D);if(D.info.type===1)try{dbC(w,D),IOJ(w,D)}catch(Z){g.HL(Z);var M=Lr(D.info);M.hms="1";w.loader.handleError("fmt.unparseable",M||{},1)}M=D.info.T;M.Rj(D);w.G&&Acr(w.G,D);if(M.Gk()&&w.policy.T)a:{w=w.loader.r9;D=D.info.clipId;M=g.P_(M.info,w.Yl);if(D){var L=Jo({itag:M.itag,lmt:w.Yl?0:M.lmt||0,xtags:M.xtags});if(w.Nd[L])break a;w.Nd[L]=D}w.bW.push(M)}}; uYS=function(w,D,M){if(w.V.length!==0&&(M||w.V.some(function(k){return k.info.W=f9(b)+C):D=w.getDuration()>=b.getDuration(),D=!D;D&&NqT(M)&&(D=w.c_,Bs?(C=K$j(M),b=1/C,C=f9(w,C),D=f9(D)+b-C):D=D.getDuration()- w.getDuration(),D=1+D/M.info.duration,VHS(g.xg(M),D))}else{b=!1;w.Y||(AFr(M),M.T&&(w.Y=M.T,b=!0,Z=M.info,k=M.T.BX,Z.G="updateWithEmsg",Z.g9=k,Z=M.T,Z.wK&&(k=w.W.index,k.V=!Z.wK,k.L="emsg"),Z=M.info.T.info,k=g.xg(M),g.zw(Z)?Ib(k,1701671783):Z.Dr()&&ob([408125543],307544935,k)));a:if((Z=gg(M,w.policy.HA))&&m$C(M))C=Hgr(w,M),w.U+=C,Z-=C,w.y7+=Z,w.L=w.policy.n7?w.L+Z:NaN;else{if(w.policy.Q5){if(k=l=w.loader.GH(g.Hy(M),1),w.L>=0&&M.info.type!==6){if(w.policy.n7&&isNaN(w.XE)){g.jn(new g.qA("Missing duration while processing previous chunk", M.info.PA()));w.loader.isOffline()&&!w.policy.Px||jpG(w,M,k);af(w,"m");break a}L=l-w.L;var E=L-w.U,p=M.info.g9,W=w.fV?w.fV.g9:-1,h=w.Nd,t=w.XE,d=w.policy.jF&&L>w.policy.jF,N=Math.abs(E)>10,n=Math.abs(w.L-k)<1E-7;if(Math.abs(E)>1E-4){w.Md+=1;var v=(C=w.Y)==null?void 0:unN(C);C={audio:""+ +w.XX(),sq:p.toFixed(),sliceStart:l,lastSq:W.toFixed(),lastSliceStart:h,lastSliceDuration:t,totalDrift:(L*1E3).toFixed(),segDrift:(E*1E3).toFixed(),skipRewrite:""+ +(d||N)};if(v==null?0:v.length)C.adCpn=v[0];w.loader.handleError("qoe.avsync", C);w.bW=p}d||N||n||(k=w.L);C=Hgr(w,M,l);Z-=C;w.U=L+C}}else k=isNaN(w.L)?M.info.startTime:w.L;jpG(w,M,k)&&(w.y7+=Z,w.L=k+Z,w.policy.GP&&w.Md>=w.policy.GP&&(w.Md=0,w.loader.nG({resetForRewrites:"count"})))}w.fV=M.info;w.XE=jI(M);M.L>=0&&(w.Nd=M.L);if(b&&w.Y){b=gtj(w,!0);Zy(M.info,b);w.T&&Zy(w.T.info,b);D=g.x(D);for(C=D.next();!C.done;C=D.next())C=C.value,Z=void 0,w.policy.W&&C.g9!==((Z=w.Y)==null?void 0:Z.BX)||Zy(C,b);(M.info.D||w.T&&w.T.info.D)&&M.info.type!==6||(w.V7=b,w.policy.V?(D=RUG(w.Y),w.loader.c8(w.W, b,D)):(D=w.loader,D.r9.isManifestless&&otI(D,b,null,!!w.W.info.video)),w.policy.Kx||ntx(w))}}IOJ(w,M);w.timestampOffset&&PMj(M,w.timestampOffset)}; cs=function(w,D){if(D.info.D){w.EL=D.info;if(w.Y){var M=w.Y,L=gtj(w,!1);M=RUG(M);w.loader.c8(w.W,L,M);w.V7||w.policy.Kx||ntx(w);w.V7=null}vs(w)}w.G&&Acr(w.G,D);if(L=w.jy())if(L=g.NH(L,D,w.policy.SX,w.policy.BI)){w.V.pop();w.V.push(L);return}w.V.push(D)}; RUG=function(w){if(w.TZ()){var D=w.data["Stitched-Video-Id"]?w.data["Stitched-Video-Id"].split(",").slice(0,-1):[],M=unN(w),L=[];if(w.data["Stitched-Video-Duration-Us"])for(var Z=g.x(w.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),k=Z.next();!k.done;k=Z.next())L.push((Number(k.value)||0)/1E6);Z=[];if(w.data["Stitched-Video-Start-Frame-Index"]){k=g.x(w.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var b=k.next();!b.done;b=k.next())Z.push(Number(b.value)||0)}Z=[]; if(w.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(k=g.x(w.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),b=k.next();!b.done;b=k.next())Z.push((Number(b.value)||0)/1E6);w=new LJl(D,M,L,Z,g.Ssr(w),g.QHK(w))}else w=null;return w}; vs=function(w){w.T=null;w.nV=-1;w.B=0;w.Y=null;w.W_=NaN;w.y7=0;w.V7=null}; af=function(w,D){D={rst4disc:D,cd:w.U.toFixed(3),sq:w.fV?w.fV.g9:-1};w.L=NaN;w.U=0;w.bW=-1;w.fV=null;w.Nd=NaN;w.XE=NaN;w.jk=null;w.loader.H_("mdstm",D)}; IOJ=function(w,D){if(w.isDrm()){if(D.info.T.info.Dr()){var M=new xZ(g.xg(D));if(HM(M,[408125543,374648427,174,28032,25152,20533,18402])){var L=Rb(M,!0);M=L!==16?null:sY(M,L)}else M=null;L="webm"}else D.info.B=Dbj(g.xg(D)),M=M1K(D.info.B),L="cenc";M&&M.length&&(M=new Rf(M,L),w.policy.v7&&g.zw(D.info.T.info)&&(L=w_l(g.xg(D)))&&(M.V=L),M.Dr=D.info.T.info.Dr(),D.T&&D.T.cryptoPeriodIndex&&(M.cryptoPeriodIndex=D.T.cryptoPeriodIndex),D.T&&D.T.V&&(M.T=D.T.V),w.loader.T1(M))}}; ntx=function(w){var D=w.Y,M=XSK(D);M&&(M.startSecs+=w.W_,w.loader.B3(w.W,M,D.BX,D.TZ()))}; gtj=function(w,D){var M,L=w.Y;if(M=XSK(L))M.startSecs+=w.W_;return new KA(L.BX,w.W_,D?L.y8:w.y7,L.ingestionTime,"sq/"+L.BX,void 0,void 0,D,M)}; jpG=function(w,D,M){if(!VlN(D,M))return D=Lr(D.info),D.smst="1",w.loader.handleError("fmt.unparseable",D||{},1),!1;isNaN(w.W_)&&(w.W_=M);return!0}; Hgr=function(w,D,M){var L=0;if(D.info.T.info.Dr()&&!m$C(D))return 0;if(w.c_&&!w.XX()){var Z=0;M&&g.zw(D.info.T.info)?Z=M-w.L:D.info.T.info.Dr()&&(Z=w.U);var k=D.info.g9;M=gg(D,w.policy.HA);var b=w.c_;var C=b.bW;b=b.U;var l=Math.abs(b-Z)>.02;if((k===C||k>C&&k>w.bW)&&l){L=Math.max(.95,Math.min(1.05,(M-(b-Z))/M));if(g.zw(D.info.T.info))VHS(g.xg(D),L);else if(D.info.T.info.Dr()&&(k=Z-b,!g.zw(D.info.T.info)&&(D.info.T.info.Dr(),L=new xZ(g.xg(D)),C=D.W?L:new xZ(new DataView(D.info.T.T.buffer)),gg(D,!0)))){var E= k*1E3,p=vM(C);C=L.pos;L.pos=0;if(L.T.getUint8(L.pos)===160||cM(L))if(gr(L,160))if(Rb(L,!0),gr(L,155)){if(k=L.pos,l=Rb(L,!0),L.pos=k,E=E*1E9/p,p=nd(L),E=p+Math.max(-p*.7,Math.min(p,E)),E=Math.sign(E)*Math.floor(Math.abs(E)),!(Math.ceil(Math.log(E)/Math.log(2)/8)>l)){L.pos=k+1;for(k=l-1;k>=0;k--)L.T.setUint8(L.pos+k,E&255),E>>>=8;L.pos=C}}else L.pos=C;else L.pos=C;else L.pos=C}L=gg(D,w.policy.HA);L=M-L}L&&D.info.T.info.Dr()&&w.loader.H_("webmDurationAdjustment",{durationAdjustment:L,videoDrift:Z+L, audioDrift:b})}return L}; NqT=function(w){return w.info.T.kL()&&w.info.g9===w.info.T.index.EV()}; f9=function(w,D){D=(D=D===void 0?0:D)?Math.round(w.timestampOffset*D)/D:w.timestampOffset;w.W.D&&D&&(D+=w.W.D.T);return D+w.getDuration()}; FJJ=function(w,D){D<0||(w.V.forEach(function(M){PMj(M,D)}),w.timestampOffset=D)}; LX=function(w,D,M,L,Z){U$.call(this,M,Z);var k=this;this.policy=w;this.formatId=D;this.HI=L;this.lastError=null;this.onProgress=function(){k.xt()||(k.HI.N$.has(k.formatId)?(k.isComplete()||k.T.start(),zp(k.HI,k.formatId)&&k.Dl(2),k.HI.VL(k.formatId)&&(zQC(k.HI,k.formatId)?k.lj(4):(k.lastError="net.closed",k.lj(5)))):(k.lastError="player.exception",k.lj(5)))}; this.T=new g.ui(function(){k.isComplete()||(k.lastError="net.timeout",k.lj(5))},1E3); this.T.start();SYJ(this.HI,this.formatId,this.onProgress);g.j4(this.onProgress)}; q_=function(w,D,M,L){g.X.call(this);var Z=this;this.loader=w;this.policy=D;this.T=M;this.timing=L;this.logger=new g.yI("dash");this.L=[];this.c_=[];this.V=this.rW=null;this.jk=!1;this.Jc=this.Md=0;this.Y=-1;this.nV=!1;this.W_=-1;this.fV=null;this.V7=NaN;this.y7=[];this.Bz={Jl:function(){return Z.D}, Llt:function(){return Z.L}, rr_:function(){return Z.U}}; this.D=new pdJ(w,D,M);this.policy.T&&(this.U=new D8(this.D,this.loader.getManifest(),this.policy,function(k){Z.policy.zQ&&Z.H_("buftl",k)})); this.policy.wW&&(this.B=new dv(this));this.sL=M.info.sL;this.G=this.policy.y7?!1:M.NP();this.isManifestless=M.NP();this.W=this.G;g.T(this,this.fV)}; rv=function(w,D,M){M=M===void 0?!1:M;D&&Bs&&FJJ(w.D,D.Ij());if(!M){var L;(L=w.U)==null||r$S(L)}w.rW=D;(D=w.U)!=null&&(D.rW=w.rW)}; eh=function(w){var D=w.rW&&w.rW.gA();if(w.policy.WO){if((w=w.U)==null)w=void 0;else{var M;w=(M=w.L)==null?void 0:M.info}return w||null}return D}; Gmj=function(w){for(var D={},M=0;M4&&w.c_.shift()}; spN=function(w,D){if(D.pS()){var M=D.Ok();M=g.x(M);for(var L=M.next();!L.done;L=M.next())L=L.value,w.policy.L&&D instanceof LX&&w.H_("omblss",{s:L.info.PA()}),TO(w,D.info.uW,L,D.d8())}}; TO=function(w,D,M,L){L=L===void 0?0:L;isNaN(w.V7)||(w.H_("aswm",{sq:D[0].g9,id:D[0].T.info.itag,xtag:D[0].T.info.T,ep:Date.now()-w.V7}),w.V7=NaN);switch(M.info.type){case 1:case 2:aOa(w,M);break;case 4:var Z=M.info.T,k=Z.Dp(M),b;((b=w.V)==null?0:b.type===4)&&jwj(M.info,w.V)&&(w.V=Z.IM(w.V).pop());M=g.x(k);for(Z=M.next();!Z.done;Z=M.next())TO(w,D,Z.value,L);break;case 3:M.info.T.info.video?(Z=w.timing,Z.W_||(Z.W_=(0,g.IC)(),g.Ad("fvb_r",Z.W_,Z.T))):(Z=w.timing,Z.Y||(Z.Y=(0,g.IC)(),g.Ad("fab_r",Z.Y, Z.T)));ybJ(w.D,D,M,L);w.policy.T&&vtT(w);break;case 6:ybJ(w.D,D,M,L),w.V=M.info}}; aOa=function(w,D){if(D.info.type===1)if(D.info.T.info.video){var M=w.timing;M.Jc||(M.Jc=(0,g.IC)(),g.Ad("vis_r",M.Jc,M.T))}else M=w.timing,M.U||(M.U=(0,g.IC)(),g.Ad("ais_r",M.U,M.T));$br(w.D,D);w=w.loader;w.videoTrack.T.Gk()&&w.audioTrack.T.Gk()&&w.policy.T&&!w.r9.Yl&&(D=w.audioTrack.getDuration(),M=w.videoTrack.getDuration(),Math.abs(D-M)>1&&w.H_("trBug",{af:""+g.P_(w.audioTrack.T.info,!1),vf:""+g.P_(w.videoTrack.T.info,!1),a:""+D,v:""+M}))}; Wz=function(w){return WJC(w.D)}; vtT=function(w){w.L.length?w.V=g.$B(g.$B(w.L).info.uW):w.D.V.length?w.V=w.D.jy().info:w.V=eh(w)}; uP=function(w,D){var M={Vi:[],qR:[]},L;if((w=w.U)==null)w=void 0;else{qpT(w,w.Vi,"og");c$I(w,D);qpT(w,w.Vi,"trim");var Z=ftr(w);D=Z.Vi;Z=Z.u2;for(var k=[],b=0;b0){var h=Z0(W,l);h>=0&&(p=(W.end(h)-l+.1)*1E3)}k.push({formatId:g.P_(C.info.T.info,w.r9.Yl), mw:C.info.mw,sequenceNumber:C.info.g9+w.D,DZ:E,qJ:C.info.L,In:p})}w={Vi:D,qR:k}}return(L=w)!=null?L:M}; bz=function(w,D,M){M=M===void 0?!1:M;if(w.rW){var L=w.rW.O4(),Z=b$(L,D),k=NaN,b=eh(w);b&&(k=b$(L,b.T.index.getStartTime(b.g9)));if(Z===k&&w.V&&w.V.L&&cbr(Sh(w),0))return D}w=BqR(w,D,M);return w>=0?w:NaN}; CX=function(w,D,M){w.T.Gk();var L=BqR(w,D);if(L>=0)return L;var Z;(Z=w.U)==null||Bfx(Z,D,M);L=Math;Z=L.min;var k=w.D;if(k.G)if(k=k.G,k.yy&&k.yy.type===3)k=k.yy.startTime;else if(k.L>0){var b=k.T.index;b=g.TD(b.offsets.subarray(0,b.count),k.L*k.chunkSize);k=k.T.index.getStartTime(b>=0?b:Math.max(0,-b-2))}else k=0;else k=Infinity;D=Z.call(L,D,k);w.V=w.policy.y7?null:w.T.u3(D).uW[0];QY(w)&&(w.policy.RZ&&(M==null?void 0:M.seekSource)===60||w.rW&&w.rW.abort(),w.policy.fz&&(M=w.U)!=null&&(M.L=void 0)); w.Jc=0;return w.V?w.V.startTime:D}; XOK=function(w){w.G=!0;w.W=!0;w.Y=-1;CX(w,Infinity)}; J8=function(w){for(var D=0,M=g.x(w.L),L=M.next();!L.done;L=M.next())D+=RHG(L.value.info);return D+=UbC(w.D)}; VY=function(w,D){D=D===void 0?!1:D;var M=w.loader.getCurrentTime(),L=w.D.jy(),Z=(L==null?void 0:L.info.Y)||0;if((L==null?0:L.info.T.NP())&&!L.info.D)if(w.policy.zK)Z=L.info.W;else if(w.policy.mW){var k=L.info;Z=k.range?k.Y:Math.min(k.startTime+Math.min(k.duration*k.V/k.T.info.sL,k.duration)+(k.range?k.U:Math.min(k.duration,k.duration*k.L/k.T.info.sL)),k.startTime+k.duration)}if(!w.rW)return w.policy.T&&D&&!isNaN(M)&&L?Z-M:0;if((k=eh(w))&&zO(k))return k.Y;var b=w.rW.O4(!0);if(D&&L)return k=0,w.policy.T&& (k=l$(b,Z+.02)),k+Z-M;D=l$(b,M);w.policy.VI&&k&&(L=Z0(b,M),b=Z0(b,k.W-.02),L===b&&(M=k.Y-M,w.policy.L&&M>D+.02&&w.H_("abh",{bh:D,bhtls:M}),D=Math.max(D,M)));return D}; fOx=function(w){var D=eh(w);return D?D.Y-w.loader.getCurrentTime():0}; q2T=function(w,D){if(w.L.length){if(w.L[0].info.uW[0].startTime<=D)return;kf(w)}for(var M=w.D,L=M.V.length-1;L>=0;L--)M.V[L].info.startTime>D&&M.V.pop();vtT(w);w.V&&D=0;b--){var C=Z.V[b];C.info.g9>=D&&(Z.V.pop(),Z.L-=gg(C,Z.policy.HA),k=C.info)}k&&(Z.D=Z.V.length>0?Z.V[Z.V.length-1].info:Z.jk,Z.V.length!==0||Z.D||af(Z,"r"));Z.loader.H_("mdstm",{rollbk:1,itag:k?k.T.info.itag:"",popped:k?k.g9:-1,sq:D,lastslc:Z.D?Z.D.g9:-1,lastfraget:Z.L.toFixed(3)});if(w.policy.T)return w.V=null,!0;L>M?CX(w,L):w.V=w.T.zs(D-1,!1).uW[0]}catch(l){return D=tF(l),D.details.reason="rollbkerr", w.loader.handleError(D.errorCode,D.details,D.severity),!1}return!0}; OI=function(w,D){var M;for(M=0;M0?M||D.g9>=w.W_:M}; K9=function(w){var D;return QY(w)||zO((D=w.D.jy())==null?void 0:D.info)}; Sh=function(w){var D=[],M=eh(w);M&&D.push(M);D=g.F7(D,w.D.A3());M=g.x(w.L);for(var L=M.next();!L.done;L=M.next()){L=L.value;for(var Z=g.x(L.info.uW),k=Z.next(),b={};!k.done;b={TA:void 0},k=Z.next())b.TA=k.value,L.y0&&(D=g.ox(D,function(C){return function(l){return!jwj(l,C.TA)}}(b))),(wg(b.TA)||b.TA.type===4)&&D.push(b.TA)}w.V&&!$$x(w.V,g.$B(D),w.V.T.kL())&&D.push(w.V); return D}; cbr=function(w,D){if(!w.length)return!1;for(D+=1;D=D){D=k;break a}}D=Z}return D<0?NaN:cbr(w,M?D:0)?w[D].startTime:NaN}; mz=function(w){return!(!w.V||w.V.T===w.T)}; eUN=function(w){return mz(w)&&w.T.Gk()&&w.V.T.info.sLD&&w.Y1080&&!w.Oe&&(w.Md=36700160,w.iW=5242880,w.jk=Math.max(4194304,w.jk),w.Oe=!0);D.video.qualityOrdinal>2160&&!w.Ue&&(w.Md=104857600,w.sL=13107200,w.Ue=!0);g.A3(w.P_.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?D.isEncrypted()&&g.q2()&&g.Bo("samsung")&&(g.Bo("kant")||g.Bo("muse"))&&(w.sL=g.A3(w.P_.experiments,"html5_samsung_kant_limit_max_bitrate")):D.isEncrypted()&&g.q2()&&g.Bo("kant")&&(w.sL=1310720);w.Ps!==0&&D.isEncrypted()&& (w.sL=w.Ps);w.Ws!==0&&D.isEncrypted()&&M&&(w.sL=w.Ws);D.sL&&(w.bH=Math.max(w.D9,Math.min(w.jk,5*D.sL)))}; Bz=function(w){return w.T&&w.m_}; Dh=function(w){return w.T&&w.ib&&w.playbackStartPolicy}; DiS=function(w,D,M,L){w.ib&&(w.playbackStartPolicy=D,w.NL=M,w.II=L)}; wU=function(w,D,M){M=M===void 0?0:M;return g.A3(w.P_.experiments,D)||M}; MZa=function(w){var D=w===void 0?{}:w;w=D.x8;var M=D.gK;var L=D.vI;var Z=D.EV;D=D.RN;this.x8=w;this.gK=M;this.vI=L;this.EV=Z;this.RN=D}; A$k=function(w,D){if(D<0)return!0;var M=w.EV();return D0)return 2;if(D<0)return 1;M=w.EV();return D(0,g.IC)()?0:1}; Lq=function(w,D,M,L,Z,k,b,C,l,E,p,W,h,t){t=t===void 0?null:t;g.X.call(this);var d=this;this.loader=w;this.policy=D;this.videoTrack=M;this.audioTrack=L;this.D=Z;this.T=k;this.timing=b;this.W=C;this.schedule=l;this.r9=E;this.L=p;this.y7=W;this.ql=h;this.Ss=t;this.V7=!1;this.Xk="";this.QV=null;this.JY=NaN;this.nV=!1;this.V=null;this.Ns=this.B=NaN;this.J2=this.Y=0;this.logger=new g.yI("dash");this.Bz={Gj:function(N,n){return d.Gj(N,n)}}; this.policy.ph>0&&(this.Xk=g.WJ(this.policy.ph));this.policy.CJ&&(this.U=new M4(this.loader,this.policy,this.schedule),g.T(this,this.U))}; lpx=function(w,D,M){var L=D.V?D.V.T.Zv:D.T.Zv;var Z=w.D,k;(k=!w.policy.Qq)||(k=J$(L.T)===J$(L.V));k?L=!1:(Z=ev(Z,J$(L.V)),k=6E4*Math.pow(Z.D,1.6),(0,g.IC)()=Z.D?(Z.H_("sdai",{haltrq:k+1,est:Z.D}),L=!1):L=Z.V!==2;if(!L||!Ql(D.V?D.V.T.Zv:D.T.Zv,w.policy,w.D,w.loader.Rb())||w.loader.isSuspended&&(!Ve(w.schedule)||w.loader.QH))return!1;if(w.policy.D&&ki>=5)return g.S3(w.loader.Bf),!1;if(w.r9.isManifestless){if(D.L.length>0&&D.V&&D.V.g9===-1||D.L.length>=w.policy.DH||!w.policy.h7&&D.L.length>0&&!w.policy.G.gK)return!1;if(D.G)return!w.r9.isLive|| !isNaN(w.JY)}if(QpN(D))return w.logger.debug("Pending request with server-selectable format found"),!1;if(!D.V){if(!D.T.Gk())return!1;CX(D,w.loader.getCurrentTime())}if(Wz(D)&&(D.jy()!==Wz(D)||w.loader.isSuspended))return!1;Z=(L=w.policy.hp)&&!D.L.length&&VY(D,!0)=w.policy.d0)return!1;L=D.V;if(!L)return!0;L.type===4&&L.T.Gk()&&(D.V=g.$B(L.T.IM(L)),L= D.V);if(!L.wK()&&!L.T.LD(L))return!1;k=w.r9.G3||w.r9.D;if(w.r9.isManifestless&&k){k=D.T.index.EV();var b=M.T.index.EV();k=Math.min(k,b);if(D.T.index.dB()>0&&k>0&&L.g9>=k)return D.W_=k,M.W_=k,!1}if(L.T.info.audio&&L.type===4||L.wK())return!1;k=!D.W&&!M.W;if(Z=!Z)Z=L.Y,Z=!!(M.V&&!zO(M.V)&&M.V.YE2N(w,D)?(E2N(w,D),!1):(w=D.rW)&&w.isLocked()?!1:!0}; E2N=function(w,D){var M=w.T;M=M.T?M.T.Pr:null;if(w.policy.c_&&M)return M.startSecs+M.x6+15;D=Yf(w.loader,D);w.policy.Sb>0&&(M=((0,g.IC)()-w.loader.e$)/1E3,D=Math.min(D,w.policy.Sb+w.policy.Yx*M));D=w.loader.getCurrentTime()+D;return w.policy.T0&&(M=pnS(w.loader)+w.policy.T0,M=0||D.Zv.rA("defrag")==="1"||D.Zv.rA("otf")==="1"){D=null;break a}Z=OY(0,4096)}Z=new kg([new m6(5,L.T,Z,"createProbeRequestInfo"+L.G,L.g9)],D.V);Z.zV=M;Z.T=D.T;D=Z}D&&CwN(w,D)}}; CwN=function(w,D){w.loader.IF(D);var M=RHG(D),L=w.loader.Gi();M={Kl:w.schedule,eS:M,KC:nzK(w.W,M),jt:Ao(D.uW[0]),ED:za(D.Zv.T),u0:w.policy.L,OF:function(b,C){w.loader.e0(b,C)}}; if(w.schedule.V.Y){var Z,k;M.Ek=(((Z=w.videoTrack.T)==null?void 0:Z.info.sL)||0)+(((k=w.audioTrack.T)==null?void 0:k.info.sL)||0)}w.QV&&(M.g9=D.uW[0].g9,M.JY=D.JY,M.QV=w.QV);L={Yb:oMK(D,w.loader.getCurrentTime()),Gy:w.policy.X6&&Yg(D)&&D.uW[0].T.info.video?zya(w.L):void 0,hq:w.policy.c_,poToken:w.loader.u8(),Lk:w.loader.De(),Xk:w.Xk,Ns:isNaN(w.Ns)?null:w.Ns,Ss:w.Ss,ql:w.ql,J2:w.J2,F9:L};return new Z8(w.policy,D,M,w.D,function(b,C){try{a:{var l=b.info.uW[0].T,E=l.info.video?w.videoTrack:w.audioTrack; if(!(b.state>=2)||b.isComplete()||b.ws()||!(!w.loader.v_||w.loader.isSuspended||VY(E)>3)){var p=kAR(b,w.policy,w.D);p===1&&(w.nV=!0);hVT(w,b,p);if(b.isComplete()||b.xt()&&C<3){if(w.policy.L){var W=b.timing.KL();W.rst=b.state;W.strm=b.xhr.Zq();W.cncl=b.xhr&&b.YA.W?1:0;w.loader.H_("rqs",W)}b.ai&&w.loader.H_("sbwe3",{},!0)}if(!w.xt()&&b.state>=2){WkI(w.timing,b,l);var h=w.loader;w.Ns&&b.K0&&h&&(w.Ns=NaN,w.loader.YM(b.K0),w.loader.EW(),w.loader.H_("cabrUtcSeek",{mediaTimeSeconds:b.K0}));b.X9&&w.Ns&&b.X9&& !b.X9.action&&(w.loader.Mh(w.Ns),w.Ns=NaN,w.loader.H_("cabrUtcSeekFallback",{targetUtcTimeSeconds:w.Ns}));b.ey&&w.loader.bB(b.ey);w.policy.UV&&(w.J2=b.J2);if(b.state===3){OI(E,b);Yg(b.info)&&Zh(w,E,l,!0);if(w.V){var t=b.info.Tz();t&&w.V.hH(b.info.uW[0].g9,l.info.id,t)}w.loader.Ju()}else if(b.isComplete()&&b.info.uW[0].type===5){if(b.state!==4)b.NR()&&w.loader.handleError(b.qs(),b.sD());else{var d=(b.info.uW[0].T.info.video?w.videoTrack:w.audioTrack).L[0]||null;d&&d instanceof Z8&&d.ws()&&d.Ch()}b.dispose()}else{b.NR()|| tZl(w,b);var N;((N=b.Ra)==null?0:N.itagDenylist)&&w.loader.P8(b.Ra.itagDenylist);if(b.state===4)$iS(w,b),w.T&&dHj(w.T,b.info,w.V);else if(w.policy.UZ&&b.pS()&&!b.isComplete()&&!$iS(w,b)&&!b.NR())break a;b.NR()&&(iNS(w,b),isNaN(w.Ns)||(w.loader.Mh(w.Ns),w.Ns=NaN));w.policy.FQ&&!b.isComplete()?diN(w.loader):w.loader.Ju();var n=bNN(b,w.policy,w.D);hVT(w,b,n)}}}}}catch(v){C=w.V7?1:0,w.V7=!0,b=hF(C),C=tF(v,C),w.loader.handleError(C.errorCode,C.details,C.severity),b||w.loader.Ug()}},L)}; tZl=function(w,D){if(D.J5&&D.state>=2&&D.state!==3){var M=D.xhr.getResponseHeader("X-Response-Itag");if(M){w.logger.debug(function(){return"Applying streamer-selected format "+M}); var L=JcK(w.L,M),Z=D.info.L;Z&&(Z-=L.g8(),L.L=!0,D.info.uW[0].T.L=!1,XMG(D,L.iH(Z)),kG(w.loader,w.videoTrack,L),JbS(w.videoTrack,L),w.loader.Z8(L.info.video.quality),(Z=D.d8())&&L.info.lastModified&&L.info.lastModified!==+Z&&OI(w.videoTrack,D))}else D.J5=!1}}; iNS=function(w,D){var M=D.info.uW[0].T,L=D.qs();if(za(M.Zv.T)){var Z=g.n6(D.WI(),3);w.loader.H_("dldbrerr",{em:Z||"none"})}Z=D.info.uW[0].g9;var k=M_(w.T,D.info.uW[0].W,Z);L==="net.badstatus"&&(w.Y+=1);if(D.canRetry()&&y6r(w.loader)){if(!(D.info.Zv.L>=w.policy.iN&&w.V&&D.info.isDecorated()&&L==="net.badstatus"&&w.V.ke(k,Z))){Z=(M.info.video&&M.Zv.L>1||D.Qy===410||D.Qy===500||D.Qy===503)&&!(C9(w.L.W).size>0)&&!za(M.Zv.T);k=D.sD();var b=M.info.video?w.videoTrack:w.audioTrack;Z&&(k.stun="1");w.loader.handleError(L, k);w.xt()||(Z&&(w.logger.debug(function(){return"Stunning format "+M.info.id}),t8(w.L,M)),OI(b,D),w.loader.Ju())}}else b=1,w.V&&D.info.isDecorated()&&L==="net.badstatus"&&w.V.ke(k,Z)&&(b=0),w.r9.isLive&&D.qs()==="net.badstatus"&&w.Y<=w.policy.uA*2?(vWa(w.r9),w.r9.G3||w.r9.isPremiere?pX(w.loader,0,{GD:"badStatusWorkaround"}):w.r9.D?pX(w.loader,w.r9.c_,{GD:"badStatusWorkaround", GH:!0}):b6(w.loader)):w.loader.handleError(L,D.sD(),b)}; $iS=function(w,D){if(w.policy.useUmp&&D.xt())return!1;try{var M=D.info.uW[0].T,L=M.info.video?w.videoTrack:w.audioTrack;if(w.r9.isManifestless&&L){w.Y=0;L.G&&(D.xt(),D.isComplete()||D.pS(),L.G=!1);D.Vr()&&w.loader.qv.pJ(1,D.Vr());var Z=D.dB(),k=D.oF();VI(w.r9,Z,k)}if(D.info.jt()&&!bc(D.info))for(var b=g.x(D.Ok()),C=b.next();!C.done;C=b.next())aOa(L,C.value);for(w.loader.getCurrentTime();L.L.length&&L.L[0].state===4;){var l=L.L.shift();spN(L,l);L.Md=l.To()}L.L.length&&spN(L,L.L[0]);var E=!!Wz(L);E&& D instanceof LX&&(M.info.XX()?kHR(w.timing):ZrC(w.timing));return E}catch(p){D=D.sD();D.origin="hrhs";a:{w=w.loader;M=p;if(M instanceof Error){D.msg||(D.msg=""+M.message);D.name||(D.name=""+M.name);if(M instanceof g.qA&&M.args)for(L=g.x(Object.entries(M.args)),Z=L.next();!Z.done;Z=L.next())k=g.x(Z.value),Z=k.next().value,k=k.next().value,D["arg"+Z]=""+k;g.jn(M);if(M.level==="WARNING"){w.Th.nG(D);break a}}w.handleError("fmt.unplayable",D,1)}return!1}}; IpT=function(w){var D=w.videoTrack.T.index;w.QV=new MZa({x8:w.policy.x8,gK:w.policy.G.gK,vI:D.RP(),EV:function(){return D.EV()}, RN:function(){return D.RN()}})}; Zh=function(w,D,M,L){if(!(M.Gk()||M.Q_()||M.L||!Ql(M.Zv,w.policy,w.D,w.loader.Rb())||M.info.RJ==="f"||w.policy.T)){if(L){L=w.W;var Z=M.info;L=F2r(L,Z.video?L.policy.yh:L.policy.Cm,Z.sL)}else L=0;L=M.iH(L);w=CwN(w,L);bc(L)&&X1(D,w);M.L=!0}}; YG=function(w,D,M,L,Z,k,b,C){g.X.call(this);var l=this;this.loader=w;this.p6=D;this.videoTrack=M;this.audioTrack=L;this.r9=Z;this.B=k;this.isAudioOnly=b;this.U=C;this.V=$i;this.nV=!1;this.logger=new g.yI("sabr");this.G=this.V7=this.y7=!1;this.videoInfos=this.Y=this.B.videoInfos;this.L=this.c_=this.B.T;this.T=new bP(D,k,function(E,p){l.loader.H_(E,p)}); this.isAudioOnly&&UiJ(this,this.r9.T["0"])}; xil=function(w,D){var M=[];D=g.x(D);for(var L=D.next();!L.done;L=D.next())M.push(g.P_(L.value,w.r9.Yl));return M}; UiJ=function(w,D,M){D!==w.D&&(w.D&&(w.nV=!0),w.D=D,w.ZR(D,w.videoTrack,M))}; g2j=function(w,D){w.logger.debug("setConstraint: "+Ga(D));Bz(w.p6)&&(w.V7=D.reason==="m"||D.reason==="l"?!0:!1);D.reason==="m"?D.isLocked()&&N0C(w,D.T):HNr(w,D)?jIj(w,D.V,D.T):w.videoInfos=w.Y;w.V=D}; HNr=function(w,D){return w.p6.gj&&D.reason==="b"||w.p6.Pk&&D.reason==="l"||w.p6.E5?!1:w.p6.jX?!0:D.reason==="l"||D.reason==="b"||D.reason==="o"}; RVC=function(w,D){return D.isLocked()&&w.T.V||w.V===void 0?!1:D.equals(w.V)}; o2j=function(w,D){var M,L=(M=w.D)==null?void 0:M.info.video.qualityOrdinal;return w.nV?!0:w.D?D!==L?!0:!w.T.V||w.p6.HX&&w.T.T===w.D.info.itag?!1:!0:!1}; N0C=function(w,D){var M=w.T.T;if(M){w.videoInfos=w.Y;var L=g.y1(w.videoInfos,function(Z){return Z.id===M}); L&&L.video.qualityOrdinal===D?w.videoInfos=[L]:(L=w.videoInfos.map(function(Z){return Z.id}),w.loader.H_("sabrpf",{pfid:""+M, vfids:""+L.join(".")}),jIj(w,D,D),lP(w.T,""))}else jIj(w,D,D)}; jIj=function(w,D,M){w.videoInfos=w.Y;w.videoInfos=g.ox(w.videoInfos,function(L){return L.video.qualityOrdinal>=D&&L.video.qualityOrdinal<=M})}; n2J=function(w,D,M){if(w.U){var L=g.ox(w.L,function(Z){return Z.id===w.U}); return Cq(L,M).includes(D)}L=g.ox(w.L,function(Z){var k;return!((k=Z.dW)==null||!k.isDefault)}); return L.length>0?Cq(L,M).includes(D):Cq(w.L,M).includes(D)}; Cq=function(w,D){return w.map(function(M){return Jo(g.P_(M,D))})}; FwN=function(w){var D;if((D=w.V)==null?0:D.isLocked())return w.videoInfos;var M=C9(w.T);D=g.ox(w.videoInfos,function(L){return L.sL>w.p6.sL?!1:!M.has(L.id)}); ogx(w.T)&&(D=g.ox(D,function(L){return L.video.width<=854&&L.video.height<=480})); return D}; sIl=function(w,D,M){var L=w.r9,Z=w.Th.getVideoData(),k=w.ZL,b=cor({P_:Z.X(),Th:w.Th,N_:w.N_,p6:w.p6,gM:w.gM,eg:w.eg,Js:w.Js,wu:w.wu,wf:w.wf,isPrefetch:w.isPrefetch,eh:w.eh,sabrLicenseConstraint:Z.sabrLicenseConstraint,G1:w.G1,fT:w.fT,Qa:w.Qa,Ew:w.Ew,p$:!!k,authorizedFormats:Z.authorizedFormats}),C=fX(Z,w.F9,w.nextRequestPolicy,w.P5,w.hO,w.qW,w.Wp);M&&D&&(M=C.MI?C.MI.map(function(W){return W.type}):[],D("sabr",{stmctxt:M.join("_"), unsntctxt:C.PR?C.PR.join("_"):""}));D=w.nw;M=w.Ph;if(M===void 0&&D===void 0){var l;M=GAC(L.Yl,(l=w.RW)==null?void 0:l.video);var E;D=GAC(L.Yl,(E=w.RW)==null?void 0:E.audio)}if(Z.Ss)var p=Z.Ss;Z={Jz:b,qR:w.qR,nw:D,Ph:M,ZL:k,videoPlaybackUstreamerConfig:p,Sn:C};w.TK&&(Z.TK=w.TK);Z.Vi=w.Vi;Z.hC=L.bW;return Z}; GAC=function(w,D){return D?[g.P_(D.info,w)]:[]}; l6=function(w,D,M){var L=this;this.requestType=w;this.Zv=D;this.zU=M;this.V=null;this.Bz={EQD:function(){var Z;return(Z=L.data)==null?void 0:Z.isPrefetch}, hO:function(){var Z;return(Z=L.data)==null?void 0:Z.hO}}}; wyK=function(w,D,M){D=u2(w.Zv,apS(w,D,M),D);w.Ar()&&D.set("probe","1");return D}; apS=function(w,D,M){w.zV===void 0&&(w.zV=w.Zv.zV(D,M));return w.zV}; v2T=function(w){var D,M;return((D=w.T)==null?void 0:(M=D.Jz)==null?void 0:M.r4)||0}; c6r=function(w){var D,M;return!!((D=w.T)==null?0:(M=D.Jz)==null?0:M.G1)}; B0j=function(w){var D={},M=[],L=[];if(!w.data)return D;for(var Z=0;Z0;l--)M.push(C)}M.length!==b?D.error=!0:(k=M.slice(-k),M.length=Z,Lml(D,M,k));break;case 1:Lml(D,$G,KwJ);break;case 0:ZLR(D, D.T&7);M=Ie(D,16);Z=Ie(D,16);(M^Z)!==65535&&(D.error=!0);D.output.set(D.data.subarray(D.V,D.V+M),D.L);D.V+=M;D.L+=M;break;default:D.error=!0}w.L>w.output.length&&(w.output=new Uint8Array(w.L*2),w.L=0,w.V=0,w.D=!1,w.T=0,w.register=0)}w.output.length!==w.L&&(w.output=w.output.subarray(0,w.L));return w.error?new Uint8Array(0):w.output}; Lml=function(w,D,M){D=DQl(D);M=DQl(M);for(var L=w.data,Z=w.output,k=w.L,b=w.register,C=w.T,l=w.V;;){if(C<15){if(l>L.length){w.error=!0;break}b|=(L[l+1]<<8)+L[l]<>=7;E<0;)E=D[(b&1)-E],b>>=1;else b>>=E&15;C-=E&15;E>>=4;if(E<256)Z[k++]=E;else if(w.register=b,w.T=C,w.V=l,E>256){b=dU[E];b+=Ie(w,i6[E]);l=MAl(w,M);C=yA[l];C+=Ie(w,mia[l]);if(bLC&&bM.length&&(w.error=!0);w.register|=(M[L+1]<<8)+M[L]<=0)return ZLR(w,M&15),M>>4;for(ZLR(w,7);M<0;)M=D[Ie(w,1)-M];return M>>4}; Ie=function(w,D){for(;w.T=w.data.length)return w.error=!0,0;w.register|=w.data[w.V++]<>=D;w.T-=D;return M}; ZLR=function(w,D){w.T-=D;w.register>>=D}; DQl=function(w){for(var D=[],M=g.x(w),L=M.next();!L.done;L=M.next())L=L.value,D[L]||(D[L]=0),D[L]++;var Z=D[0]=0;M=[];var k=0;L=0;for(var b=1;b7&&(k+=D[b]);for(Z=1;Z>l&1;C=k<<4|b;if(b<=7)for(l=1<<7-b;l--;)L[l<>=7;b--;){L[l]||(L[l]=-D,D+=2);var E=Z&1;Z>>=1;l=E-L[l]}L[l]=C}}return L}; Cfa=function(w){var D,M,L,Z,k,b,C,l,E;return g.B(function(p){switch(p.T){case 1:if(!YNr)throw Error("DecompressionStream is not supported");D=Fm.jn();M=new DecompressionStream("gzip");L=M.writable.getWriter();L.write(w);L.close();Z=M.readable.getReader();k=new A_([]);case 2:return g.c(p,Z.read(),5);case 5:b=p.V;C=b.value;if(l=b.done){p.KV(4);break}k.append(C);p.KV(2);break;case 4:return E=ZR(k),Fm.R3("gznb",D,Math.ceil(E.byteLength/16)),p.return(E)}})}; lXR=function(w){eM.call(this,"onesie");this.S2=w;this.T={};this.D=!0;this.L=null;this.queue=new ONN(this);this.W={}}; Eir=function(w){var D=w.queue;D.T.length&&D.T[0].isEncrypted&&!D.V&&(D.T.length=0);D=g.x(Object.keys(w.T));for(var M=D.next();!M.done;M=D.next()){M=M.value;var L=w.T[M];if(!L.iG){var Z=w.queue;Z.T.push({videoId:L.videoId,formatId:M,isEncrypted:!1});Z.V||tR(Z)}}}; pBS=function(w,D){var M=D.totalLength,L=!1;switch(w.L){case 0:w.TB(D,w.D).then(function(Z){var k=w.S2;k.q$("oprr");k.playerResponse=Z;k.H3||(k.Hh=!1);UE(k)},function(Z){w.S2.fail(Z)}); break;case 2:w.q$("ormk");D=ZR(D);w.queue.decrypt(D);break;default:L=!0}w.S2.IQ&&w.S2.H_("ombup","id.11;pt."+w.L+";len."+M+(L?";ignored.1":""));w.L=null}; WmC=function(w,D){var M,L,Z,k,b;return g.B(function(C){switch(C.T){case 1:w.S2.q$("oprgz_s");if(!YNr){C.KV(2);break}g.jN(C,3);return g.c(C,Cfa(D),5);case 5:return M=C.V,w.S2.q$("oprgz_n"),C.return(M);case 3:L=g.FK(C),w.S2.H_("gzerr",{impl:"native",err:""+L});case 2:if(Z=w.S2.X().DJ)try{var l=Fm.jn(),E=Z.So(D),p=Z,W=E!=null?E:D,h=W.byteOffset,t=W.byteLength,d=p.exports.getInflatedSize(h,t);if(d===0)throw Error("wasm_gz: bad input");var N=p.malloc(d),n=p.exports.inflateGzip(h,t,N);if(n)throw p.free(N), Error("wasm_gz: fail"+n);var v=new Uint8Array(p.exports.memory.buffer,N,d);E&&Z.free(E.byteOffset);var G=Z.pE(v);Fm.R3("gzwb",l,Math.ceil(G.byteLength/16));k=G;w.S2.q$("oprgz_w");return C.return(k)}catch(f){w.S2.H_("gzerr",{impl:"wasm",err:""+f})}l=Fm.jn();E=g.kBK(new g.A6j(D));Fm.R3("gzjb",l,Math.ceil(E.byteLength/16));b=E;w.S2.q$("oprgz_p");return C.return(b)}})}; hFj=function(w){return new Promise(function(D){setTimeout(D,w)})}; tAT=function(w,D){var M=w.X();M=w.CJ&&M.C("html5_onesie_preload_use_content_owner");var L=w.xE;M=M===void 0?!1:M;var Z=U2(D.mE.experiments,"debug_bandaid_hostname");if(Z)D=pq(D,Z);else if(M&&(L==null?0:L.url)&&!D.V){var k=J$(new g.S_(L.url));D=pq(D,k)}else D=(k=D.T.get(0))==null?void 0:k.location.clone();if(D&&w.videoId){k=ap(w.videoId);w=[];if(k)for(k=g.x(k),M=k.next();!M.done;M=k.next())w.push(M.value.toString(16).padStart(2,"0"));D.set("id",w.join(""));return D}}; $QS=function(w,D,M){M=M===void 0?0:M;var L,Z;return g.B(function(k){if(k.T==1)return L=[],L.push(D.load()),M>0&&L.push(hFj(M)),g.c(k,Promise.race(L),2);Z=tAT(w,D);return k.return(Z)})}; iLS=function(w,D,M,L){L=L===void 0?!1:L;w.set("cpn",D.clientPlaybackNonce);w.set("opr","1");var Z=D.X();w.set("por","1");k6()||w.set("onem","1");D.startSeconds>0&&w.set("osts",""+D.startSeconds);L||(Z.C("html5_onesie_disable_partial_segments")&&w.set("oses","1"),D=Z.C("html5_gapless_onesie_no_media_bytes")&&nL(D)&&D.CJ,M&&!D?(D=M.audio,w.set("pvi",M.video.join(",")),Z.C("html5_onesie_disable_audio_bytes")||w.set("pai",D.join(",")),dq||w.set("osh","1")):(w.set("oad","0"),w.set("ovd","0"),w.set("oaad", "0"),w.set("oavd","0")))}; dQr=function(w,D,M,L,Z){Z=Z===void 0?!1:Z;var k="https://youtubei.googleapis.com/youtubei/"+D.VV.innertubeApiVersion+"/player",b=[{name:"Content-Type",value:"application/json"}];L&&b.push({name:"Authorization",value:"Bearer "+L});b.push({name:"User-Agent",value:g.qc()});g.Xg("EOM_VISITOR_DATA")?b.push({name:"X-Goog-EOM-Visitor-Id",value:g.Xg("EOM_VISITOR_DATA")}):(M=M.visitorData||g.Xg("VISITOR_DATA"))&&b.push({name:"X-Goog-Visitor-Id",value:M});(M=g.Xg("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&b.push({name:"X-YouTube-Lava-Device-Context", value:M});(D=U2(D.experiments,"debug_sherlog_username"))&&b.push({name:"X-Youtube-Sherlog-Username",value:D});w=t4(JSON.stringify(w));return{url:k,DU:b,postBody:w,drD:Z,hB:Z}}; y0K=function(w,D,M,L,Z,k,b){var C=w.ND,l=w.HS;w=w.twD;var E=C!==void 0&&l!==void 0,p=L.getVideoData(),W,h=D.T.encryptedClientKey;D=E?D.iv:void 0;E=zm(M.schedule,!0);Z=Z||!!k6()&&E>1572864;return{innertubeRequest:{cYd:w,eQ:C,HS:l,encryptedClientKey:h,iv:D,WKL:!0,Xp:!0,jK:"DecompressionStream"in window||!Z,Gd_:M.experiments.ek("html5_use_jsonformatter_to_parse_player_response")},Jz:cor({P_:M,Th:L,N_:p.startSeconds*1E3}),onesieUstreamerConfig:k,Ft:b,Sn:fX(p),reloadPlaybackParams:(W=p.MN)==null?void 0: W.reloadPlaybackParams}}; IXa=function(w,D,M,L,Z,k){var b=g.Q2(w,nH),C;if(!w.hB)if(C=eVN(D,b)){var l=C.QX;C=C.signature}else C=l=D.encrypt(b),(0,g.IC)(),C=bVk(new khC(D.T.L),C,D.iv);return y0K(l&&C?{ND:l,HS:C}:{twD:b},D,M,L,!!w.hB,Z,k)}; UQk=function(w,D,M,L,Z,k){var b,C,l;return g.B(function(E){if(E.T==1)return b=g.Q2(w,nH),g.c(E,r6J(D,b),2);if(E.T!=3)return C=E.V,g.c(E,XnT(D,C),3);l=E.V;return E.return(y0K({ND:C,HS:l},D,M,L,!!w.hB,Z,k))})}; xQJ=function(w,D,M,L,Z,k){var b=g.Q2(w,nH);if(b=eVN(D,b))return y0K({ND:b.QX,HS:b.signature},D,M,L,!!w.hB,Z,k)}; N4=function(w,D){g.X.call(this);var M=this;this.Th=w;this.playerRequest=D;this.logger=new g.yI("onesie");this.xhr=null;this.state=1;this.qn=new HF;this.Oz=!1;this.playerResponse="";this.HO=new IM(this);this.qT=new lXR(this);this.qh="";this.Lr=this.gy=!1;this.PU="";this.enableCompression=this.H3=this.lX=!1;this.IH=[];this.BX=-1;this.T2=0;this.mE=this.Th.X();this.videoData=this.Th.getVideoData();this.IQ=this.mE.gW();this.IY=this.mE.FQ;this.aE=new fpG(this.IY.T);this.Aq=this.mE.C("html5_onesie_check_timeout"); this.iQ=new g.ui(this.UI,500,this);this.Y$=new g.ui(this.OO,1E4,this);this.fA=new g.ui(function(){if(!M.isComplete()){var L=xG(M);M.fail(new g.W_("net.timeout",L))}},1E3); this.a7=new g.ui(this.SL7,2E3,this);this.g7=this.Th.De();this.Hh=this.C("html5_onesie_wait_for_media_availability");g.T(this.videoData,this);g.T(this,this.iQ);g.T(this,this.Y$);g.T(this,this.a7);w=Nb();dq&&w&&(this.tW=new Map);this.AT=new Map;this.rE=new Map;this.Uh=new Map;this.iF=new Map}; hR=function(w,D){var M;return(M=w.tW)==null?void 0:M.get(D)}; HLJ=function(w,D,M){var L;return g.B(function(Z){if(Z.T==1)return w.q$("oprd_s"),NbK(w)?g.c(Z,T0N(w.aE,D,M),3):(L=w.aE.decrypt(D,M),Z.KV(2));Z.T!=2&&(L=Z.V);w.q$("oprd_c");return Z.return(L)})}; jyK=function(w){return w.C("html5_onesie_host_probing")||w.IQ?dq:!1}; UE=function(w){if(!w.playerResponse)return!1;if(w.lX)return!0;var D=w.videoData.C("html5_onesie_audio_only_playback")&&F9(w.videoData);if(w.tW&&w.Hh){if(!w.tW.has(w.qh))return!1;var M=w.tW.get(w.qh),L;if(L=M){L=!1;for(var Z=g.x(M.N$.keys()),k=Z.next();!k.done;k=Z.next())if(k=M.N$.get(k.value))for(var b=g.x(k.eD),C=b.next();!C.done;C=b.next())C.value.Nb>0&&(k.XX?L=!0:D=!0);L=!(D&&L)}if(L)return!1}w.q$("ofr");w.qn.resolve(w.playerResponse);if(!w.Aq){var l;(l=w.fA)==null||l.start();w.Y$.start()}return w.lX= !0}; RFl=function(w){if(w.tW&&!w.C("html5_onesie_media_capabilities")){w.q$("ogsf_s");var D=nZK(w.Th.getVideoData(),function(L,Z){w.H_(L,Z)}),M=giI(w.Th); D.video=ICK(M,D.video);w.q$("ogsf_c");if(D.video.length)return D;w.H_("ombspf","l."+M.V+";u."+M.T+";o."+M.L+";r."+M.reason)}}; NbK=function(w,D){return w.C("html5_onesie_sync_request_encryption")||(D==null?0:D.hB)||g.jZ(w.mE)&&w.C("html5_embed_onesie_use_sync_encryption")?!1:!!k6()}; xG=function(w){if(!w.Hr)return{};var D=w.Hr.KL(),M;D.d=(M=w.Hr.W_)==null?void 0:M.Dy();D.shost=w.gw;D.ty="o";return D}; oiS=function(w,D){var M,L;(L=(w=(M=w.tW)==null?void 0:M.get(D))==null)||(D=w.L?!1:w.L=!0,L=!D);return!L}; niI=function(w,D,M,L,Z,k,b,C,l,E,p,W){g.X.call(this);var h=this;this.Th=w;this.loader=D;this.policy=M;this.audioTrack=L;this.videoTrack=Z;this.r9=k;this.Kl=b;this.EL=C;this.L=l;this.timing=E;this.B=p;this.fV=W;this.T=[];this.W={};this.XE=this.Nd=!1;this.D=this.jk=this.y7=this.bW=this.wf=0;this.U=null;this.nV={Vi:[],qR:[]};this.c_={Vi:[],qR:[]};this.G=null;this.Y=[];this.Bz={WlV:function(){return h.T}, IHc:function(){return h.W}, IQ5:function(){h.T.length=0}, iLW:function(){return h.videoData.EL}, uZh:function(){return h.y7}, ksd:function(t){h.y7=t}, qot:function(t){h.D=t}, rG:function(t){h.G=t}, Zu:function(t){h.Y=t}}; this.videoData=this.Th.getVideoData();this.policy.CJ&&(this.Jc=new M4(this.loader,this.policy,this.Kl),g.T(this,this.Jc))}; syR=function(w,D){D=D===void 0?!1:D;if(FmC(w)){w.policy.Y&&w.loader.H_("sabrcrq",{create:1});var M=new l6(0,w.r9.B,w);w.policy.QF>0&&w.D++;D=GBK(w,M,D);w.T.push(D);var L;(L=w.Jc)==null||Lwr(L,w.r9.B)}}; c0K=function(w,D){var M=aXT(w);if(w.policy.M5){var L=w.nV;var Z=w.c_}else L=Hm(w,w.audioTrack),Z=Hm(w,w.videoTrack);var k=[].concat(g.tG(L.Vi),g.tG(Z.Vi));jX(w)&&k.push.apply(k,g.tG(w.Y));var b=[].concat(g.tG(L.qR),g.tG(Z.qR)),C=w.loader.Gi();if(w.policy.iA&&!w.videoData.isLivePlayback){var l=w.videoData.lengthSeconds*1E3;M>=l&&w.loader.H_("invalidSabrCmt",{cmt:M,vd:l})}var E,p;l=w.Th;var W=w.r9,h=w.V,t=w.videoData.EL,d=w.policy,N=w.loader.e$,n=pnS(w.loader)*1E3,v=(E=w.W_)==null?void 0:E.Js;E=(p= w.W_)==null?void 0:p.wu;var G;p=Number((G=w.L.D)==null?void 0:G.info.itag)||0;var f;G=Number((f=w.L.W)==null?void 0:f.info.itag)||0;D={Th:l,r9:W,Vi:k,qR:b,N_:M,nextRequestPolicy:h,P5:t,p6:d,gM:N,eg:n,Js:v,wu:E,wf:w.wf,isPrefetch:D||w.loader.isSuspended,DdE:p,LE9:G,F9:C,Wp:w.Th.Lq()};M=w.loader.u8();k=ap(M);M&&(D.hO=k);if(M=w.Th.BB())D.G1=M*1E3;var e;M=w.L;k=M.y7;if(((e=M.p6)==null?0:Bz(e))&&!k)for(e=g.x(M.L),b=e.next();!b.done;b=e.next())if(b.value.dW){k=!0;break}e=Bz(M.p6)&&!k?[]:xil(M,M.L);D.nw= e;e=w.L;Bz(e.p6)&&!e.V7?e=[]:(M=FwN(e),M.length===0&&(M=e.Y),e=xil(e,M));D.Ph=e;D.ZL=jX(w)?[w.G]:void 0;w.policy.qL&&(D.Qa=viR(w.loader,w.audioTrack),D.Ew=viR(w.loader,w.videoTrack));if(w.policy.V){e=w.loader.getCurrentTime();L=gU(w,L.Vi,e);Z=gU(w,Z.Vi,e);Z=Math.min(L,Z);jX(w)&&(L=gU(w,w.Y,e),w.Th.gW()&&L0&&w.T[0].eN()&&(D.qW=w.T[0].Gx());return D}; aXT=function(w){var D,M=w.policy.W&&((D=w.loader)==null?void 0:D.CE());D=w.loader.getCurrentTime()||0;D=BbK(w,D);D=w.policy.PC&&w.loader.isSeeking()?BqR(w.videoTrack,D):D;var L=w.loader.jb()||0;D+=L;L=A0(w.videoData)||g.mm(w.videoData);var Z=0;M?(L&&(Z=Number.MAX_SAFE_INTEGER),w.videoData.nV&&(Z=Math.ceil(w.videoData.c_*1E3))):Z=Math.ceil(D*1E3);return Math.min(Number.MAX_SAFE_INTEGER,Z)}; jX=function(w){return w.policy.k6&&!!w.G}; BbK=function(w,D){if(w.loader.isSeeking())return D;var M=w.Th.ij();if(!M)return D;M=M.m5();if(M.length===0||kW(M,D))return D;if(!zUK(w.videoTrack,D)&&!zUK(w.audioTrack,D))return w.loader.H_("sundrn",{b:0,lt:D}),D;for(var L=D,Z=Infinity,k=0;kD)){var b=D-M.end(k);b=20)?(w.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),D):L}; gU=function(w,D,M){w=w.loader.jb()||0;return SX(D,(M+w)*1E3)/1E3+M}; FmC=function(w){if(w.policy.QF>0){var D=Math.floor((0,g.IC)()/1E4);if(D===w.jk){if(w.D>=w.policy.QF){if(w.D===w.policy.QF){var M={reason:"toomanyrequests"};M.limit=w.D;w.loader.handleError("player.exception",M);w.D+=1}return!1}}else w.jk=D,w.D=0}if(w.loader.isSuspended&&w.loader.QH)return!1;if(w.V7&&(0,g.IC)()0&&(!w.policy.B||w.T.length!==1||!w.T[0].eN()))return!1;var L;if((L=w.r9.B)==null||!Ql(L,w.policy,w.W,w.loader.Rb())||K9(w.audioTrack)&&K9(w.videoTrack))return!1; if(w.policy.V)if(w.policy.Jc){var Z;if((Z=w.fV)==null?0:gga(Z))return!1}else{D=!1;if(w.B.V===2)D=!0;else if(w.B.V===3){aXT(w);w.loader.jb();var k=uP(w.audioTrack,w.loader.isSeeking()).Vi;L=uP(w.videoTrack,w.loader.isSeeking()).Vi;Z=w.loader.getCurrentTime()||0;k=gU(w,k,Z);L=gU(w,L,Z);L=Math.min(k,L);Z=w.B;L>=Z.W?(Z.H_("sdai",{haltrq:L,est:Z.W}),L=!0):L=!1;L&&(D=!0)}D&&w.policy.Y&&w.loader.H_("sabrcrq",{waitad:1});if(D)return!1}w.policy.M5&&(w.nV=Hm(w,w.audioTrack),w.c_=Hm(w,w.videoTrack));if(!w.V)return w.policy.Y&& w.loader.H_("sabrcrq",{nopolicy:1}),!0;if(w.Th.BB())return w.policy.Y&&w.loader.H_("sabrcrq",{utc:1}),!0;if(w.L.G)return w.policy.Y&&w.loader.H_("sabrcrq",{audio:1}),!0;if(!w.V.targetAudioReadaheadMs||!w.V.targetVideoReadaheadMs)return w.policy.Y&&w.loader.H_("sabrcrq",{noreadahead:1}),!0;if(w.policy.W&&w.loader.CE())return w.policy.Y&&w.loader.H_("sabrcrq",{seekToHead:1}),!0;D=Math.min(Yf(w.loader,w.audioTrack)*1E3,w.V.targetAudioReadaheadMs);L=Math.min(Yf(w.loader,w.videoTrack)*1E3,w.V.targetVideoReadaheadMs); var b=Math.min(D,L);Z=VY(w.audioTrack,!0)*1E3;k=VY(w.videoTrack,!0)*1E3;var C=w.Th.getCurrentTime()*1E3;if(w.policy.M5){var l=SX(w.nV.Vi,C);var E=SX(w.c_.Vi,C)}else l=Z,E=k;var p=lD||L>=0&&Z.a4>L+1)break;M=Math.max(M,Z.startTimeMs+Z.durationMs);L=Math.max(L,Z.Za)}return Math.max(0,M-D)}; GBK=function(w,D,M){var L={Kl:w.Kl,OF:function(l,E){w.Th.e0(l,E)}, jt:w.policy.Hs,u0:w.policy.L};w.Kl.V.Y&&(L.Ek=(w.videoTrack.T.info.sL||0)+(w.audioTrack.T.info.sL||0));w.policy.C7&&(L.vI=w.audioTrack.T.index.RP(),L.jt=!1);var Z=apS(D,w.policy,w.W)?2:1;Z!==w.y7&&(w.y7=Z,qNr(w));M=c0K(w,M);if(w.policy.B&&w.policy.L&&M.P5){for(var k=Z="",b=g.x(M.P5),C=b.next();!C.done;C=b.next())C=C.value,w.videoData.sabrContextUpdates.has(C)||w.policy.B&&M.qW&&M.qW.type===C?Z+="_"+C:k+="_"+C;w.loader.H_("sabrbldrqs",{ctxts:Z,misctxts:k})}!D.setData(M,w.policy,w.W)&&w.policy.B&&w.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);L=new Pz(w.policy,D,w.r9,w.W,w,L,w.loader.De());O$(w.timing);w.policy.Y&&w.loader.H_("sabrcrq",{rn:L.SV(),probe:D.Ar()});return L}; JR=function(w,D){if(D.xt()||w.xt())w.policy.jZ||(w.policy.W?QA(w.loader):w.loader.Ju());else{if(w.policy.L&&D.isComplete()&&D instanceof Pz){var M=w.loader,L=M.H_,Z,k,b=Object.assign(D.Hr.KL(),{rst:D.state,strm:D.xhr.Zq(),d:(Z=D.Hr.W_)==null?void 0:Z.Dy(),cncl:D.xhr&&D.YA.W?1:0,rqb:D.Oh,cwt:D.YA.L,swt:(k=D.aU)==null?void 0:k.hI});Z=Object.assign(B0j(D.info),b);L.call(M,"rqs",Z)}if(D.isComplete()&&D.Ar()&&D instanceof Pz)w.policy.Is?D.S8()?(D.dispose(),w.T.length===0?w.loader.Ju():(w=w.T[0],w instanceof Pz&&w.ws()&&w.Ch())):D.NR()&&w.loader.handleError(D.qs(),D.sD()):(D.dispose(),w.loader.Ju());else{if(D.Gu())D instanceof Pz&&WkI(w.timing,D),qNr(w),r0x(w);else if(D.NR())M=w.Th.BB(),D instanceof Pz&&c6r(D.info)&&M&&w.loader.Mh(M),D instanceof N4?w.T.pop():(M=1,D.canRetry()&&y6r(w.loader)&&(eFN(w,D),M=0),w.loader.handleError(D.qs(),D.sD(),M));else{if(w.loader.isSuspended&&!D.isComplete())return;r0x(w)}D.xt()||D instanceof N4||(D.isComplete()?M=bNN(D,w.policy,w.W):(M=kAR(D,w.policy,w.W),M===1&&(w.Nd= !0)),M!==0&&(L=new l6(1,D.info.Zv),L.zV=M===2,GBK(w,L)));w.policy.FQ&&!D.isComplete()?diN(w.loader):w.loader.Ju()}}}; r0x=function(w){for(;w.T.length&&w.T[0].HF(w.eJ());){var D=w.T.shift();XBJ(w,D)}w.T.length&&XBJ(w,w.T[0])}; XBJ=function(w,D){D instanceof Pz&&(w.Md=D);var M=new Set(D.Xw(w.eJ()));M=g.x(M);for(var L=M.next();!L.done;L=M.next()){var Z=L.value;if(!(L=!(D instanceof N4))){L=w.L;var k=L.r9.Yl,b=Cq(L.videoInfos,k);k=n2J(L,Z,k);var C=b.includes(Z);!L.p6.Jp||k||C||L.loader.H_("sabrcpf",{fid:""+Z,vfids:""+b.join("."),said:L.U||""});L=k||b.includes(Z)}if(L&&(L=D.A3(Z,w.eJ()),b=w.policy.k6&&AF(L[0].T.info.mimeType),D.pS(Z,w.eJ())))for(Z=D.Ok(Z,w.eJ()),Z=g.x(Z),k=Z.next();!k.done;k=Z.next())if(k=k.value,w.policy.L&& D instanceof N4&&w.loader.H_("omblss",{s:k.info.PA()}),b)C=w.timing,C.y7||(C.y7=(0,g.IC)(),g.Ad("fcb_r",C.y7,C.T)),C=w,C.videoData.Yl()&&C.G&&Jo(C.G)===Jo(g.P_(k.info.T.info,C.r9.Yl))&&C.Th.publish("sabrCaptionsDataLoaded",k,C.Zu.bind(C));else{C=k.info.T.info.XX();var l=k.info.T;if(C){var E=void 0;var p=w.L,W=(E=D.Mp(w.eJ()))==null?void 0:E.token;p.G&&l!==p.W?E=!0:(p.G=!1,l!==p.W&&(p.W=l,p.ZR(l,p.audioTrack,W)),E=!1);if(E)continue}else E=void 0,UiJ(w.L,l,(E=D.Mp(w.eJ()))==null?void 0:E.token);E=C? w.audioTrack:w.videoTrack;D instanceof N4&&(E.G=!1,D instanceof N4&&(C?kHR(w.timing):ZrC(w.timing)));try{TO(E,L,k)}catch(h){k=tF(h),w.loader.handleError(k.errorCode,k.details,k.severity),E.Ug(),w.SL(!1,"pushSlice"),QA(w.loader)}}}}; eFN=function(w,D){w.policy.B?w.T.splice(w.T.indexOf(D)).forEach(function(M){M.dispose()}):(w.T.pop(),D==null||D.dispose())}; Tbk=function(w,D,M){for(var L=[],Z=0;Z0)for(var D=g.x(w.videoData.sabrContextUpdates.keys()),M=D.next();!M.done;M=D.next()){M=M.value;var L=void 0;((L=w.videoData.sabrContextUpdates.get(M))==null?0:L.sendByDefault)&&w.videoData.EL.add(M)}if(w.policy.B&&w.T.length)for(D=g.x(w.T),M=D.next();!M.done;M=D.next())(M=M.value.Gx())&&M.type&&M.sendByDefault&&w.videoData.EL.add(M.type)}; u9N=function(w){w.policy.Qi&&(w.W_=void 0,w.wf=0)}; SNS=function(w,D){if(D.NR()||D.xt()){var M=w.loader,L=M.H_,Z=D.state;w=w.eJ();var k,b;if((D=(k=D.tW)==null?void 0:k.get(w))==null)D=void 0;else{k=0;w=D.Xw();for(var C=0;C=D.mediaTime?(D.resolve([D.mediaTime,D.id]),w.T.delete(D.id)):(D.delay.dispose(),M=(D.mediaTime-M)*1E3/w.Th.getPlaybackRate(),D.delay=new g.ui(function(){VAC(w,D)},M/2),D.delay.start()))}; A0j=function(w,D,M,L){var Z=this;this.L=w;this.cpn=D;this.Th=M;this.T=L;this.V=new Map;this.W=new Map;this.G=this.U=NaN;this.Y=!1;this.zr="";this.isSeeking=!1;this.B=0;this.D=new J0T(M);this.Da=M.Da;this.Th.subscribe("statechange",this.y7,this);this.Th.subscribe("SEEK_TO",function(){Z.Ko()}); this.Th.subscribe("SEEK_COMPLETE",function(){mQC(Z)})}; DyG=function(w,D){if(!w.isSeeking&&w.B!==D&&!isNaN(w.U)){w.B=D;var M=w.Y?w.G:w.L.Y9(D);(M!==w.G||w.Y)&&w$K(w,M,D)}}; w$K=function(w,D,M){var L=w.V.get(D),Z=w.L.getStartTime(D),k=w.L.getDuration(D);w.Y=!1;w.G=D;var b=Z,C;((C=L==null?void 0:L.T)!=null?C:[w.cpn]).forEach(function(l,E){var p,W=(p=L==null?void 0:L.V[E])!=null?p:k;if(M>=b&&MZ?k3R(w,k,w.V.get(k)):k===Z&&k3R(w,k,w.V.get(k),L-w.L.getStartTime(k))})}; Mfk=function(w,D,M,L){D!==w.zr&&(w.Th.H_("ssevt",{tag:w.T===0?"sstd-cr":w.T===1?"sstd-tm":w.T===2?"sstd-poll":w.T===3?"sstd-poll100":"sstd-unknown",ad:w.cpn!==D,cpn:D,st:M.toFixed(3),late:Math.round(w.isSeeking?0:(L-M)*1E3)}),w.zr=D,w.Th.publish("playbackstarted",D,M+w.Th.jb()))}; bZJ=function(w){var D=g.x(w.split("."));w=D.next().value;D=D.next().value;return[Number(w),D]}; ZZR=function(w,D,M,L){M=D+"."+M;w.W.has(D)?w.W.get(D).push(M):w.W.set(D,[M]);w.T===1&&OLI(w.D,L,M).then(function(Z){var k=g.x(Z);Z=k.next().value;k=k.next().value;k=g.x(bZJ(k));k.next();k=k.next().value;Mfk(w,k,Z,zFG(w.D))}); w.T===0&&(w.Da.z_("transitiondetector",M),D=(L+w.Th.jb())*1E3,w.Da.bT([new g.ue(D,D+5E3,{id:M,namespace:"transitiondetector",priority:9})]))}; Y9C=function(w,D,M,L,Z){this.loader=w;this.policy=D;this.schedule=M;this.dU=L;this.B=Z;this.y7=NaN;this.V=this.G=this.D=null;this.T=this.W=this.Y=this.startTimeSecs=NaN;this.L=!1;this.U=NaN}; CRG=function(w,D,M,L,Z,k){return D.By&&D.oO&&M===3?new Y9C(w,D,L,Z,k):null}; l_r=function(w,D){if(w.policy.Xb){var M=D.info.sL,L=zm(w.schedule);D=D.index.RP();M=Math.max(1,L/M);w.U=Math.round(Math.max(((M-1)*D+w.policy.uj)/M,D-w.policy.Ji)*1E3)}}; WHC=function(w,D){var M=Date.now()/1E3,L=M-w.startTimeSecs,Z=M-w.Y,k=Z>=w.policy.r0,b=!1;if(k){var C=0;!isNaN(D)&&D>w.W&&(C=D-w.W,w.W=D);C/Z=w.policy.Ji&&!w.L;if(!k&&!M&&Esr(w,D))return NaN;M&&(w.L=!0);a:{L=b;M=(0,g.IC)()/1E3-(w.dU.Td()||0)-w.G.T-w.policy.uj;k=w.V.startTime;M=k+M;if(L){if(isNaN(D)){zT(w,NaN,"n",D);k=NaN;break a}L=D-w.policy.Yu;L0&&(C.headers=l);k&&(C.onFinish=k);return Object.keys(C).length>1? C:null}; NZG=function(w,D,M,L,Z,k,b,C){DV()&&M.token&&(w=m0(w,{ctt:M.token,cttype:M.Vp,mdx_environment:M.mdxEnvironment}));L.C("net_pings_low_priority")&&(D||(D={}),D.priority="low");k||C&&L.C("nwl_skip_retry")?(D==null?D={}:I_J(w,L.C("html5_assert_cpn_with_regex")),b?eB().sendAndWrite(w,D):eB().sendThenWrite(w,D,C)):D?(I_J(w,L.C("html5_assert_cpn_with_regex")),LeN(w,D)):g.FV(w,Z)}; HZK=function(w){for(var D=[],M=0;M0&&M>0&&!w.V&&w.L<1E7)try{w.D=w.W({sampleInterval:D,maxBufferSize:M});var L;(L=w.D)==null||L.addEventListener("samplebufferfull",function(){return g.B(function(Z){if(Z.T==1)return g.c(Z,w.stop(),2);RWR(w);g.Hr(Z)})})}catch(Z){w.V=gsC(Z.message)}}; osG=function(w,D){var M,L;return!!((M=window.h5vcc)==null?0:(L=M.settings)==null?0:L.set(w,D))}; FHJ=function(){var w,D,M,L=(w=window.h5vcc)==null?void 0:(D=w.settings)==null?void 0:(M=D.getPersistentSettingAsString)==null?void 0:M.call(D,"cpu_usage_tracker_intervals");if(L!=null){var Z;w=(Z=JSON.parse(L))!=null?Z:[];Z=w.filter(function(E){return E.type==="total"}).map(function(E){return E.seconds}); D=g.x(nsK);for(M=D.next();!M.done;M=D.next())M=M.value,Z.indexOf(M)===-1&&w.push({type:"total",seconds:M});var k,b;(k=window.h5vcc)==null||(b=k.settings)==null||b.set("cpu_usage_tracker_intervals_enabled",1);var C,l;(C=window.h5vcc)==null||(l=C.settings)==null||l.set("cpu_usage_tracker_intervals",JSON.stringify(w))}}; G3T=function(){var w=window.H5vccPlatformService,D="";if(w&&w.has("dev.cobalt.coat.clientloginfo")&&(w=w.open("dev.cobalt.coat.clientloginfo",function(){}))){var M=w.send(new ArrayBuffer(0)); M&&(D=String.fromCharCode.apply(String,g.tG(new Uint8Array(M))));w.close()}return D}; g.Kq=function(w){g.X.call(this);var D=this;this.provider=w;this.logger=new g.yI("qoe");this.T=new Map;this.sequenceNumber=1;this.V7=NaN;this.uT="N";this.U=this.Ga=this.r_=this.y7=this.V=0;this.NC=this.Jc=this.Y=this.jk="";this.HA=this.Md=NaN;this.wW=0;this.Is=-1;this.FQ=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.mu=this.isEmbargoed=this.W_=this.isOffline=this.isBuffering=!1;this.uj=[];this.B=null;this.iW=this.D=this.pV=this.G=!1;this.L=-1;this.bW=!1;this.Qi=new g.ui(this.K$,750,this);this.t4= this.adCpn=this.c_=this.contentCpn="";this.adFormat=void 0;this.k6=0;this.EL=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.FK=new Set(["gd","pw","gp","gm"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.TU=!1;this.GU=NaN;this.fV=0;this.oO=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Sb=!1;this.UV=new Set;this.Bz={QR:function(k){D.QR(k)}, Arh:function(){return D.W}, MR:function(){return D.contentCpn}, hWh:function(){return D.c_}, reportStats:function(){D.reportStats()}, GQh:function(){return D.T.get("cat")||[]}, rA:function(k){return D.T.get(k)||[]}, fEE:function(){return D.T}, GEt:function(){return 0}, aHk:function(){return{adCpn:D.adCpn,t4:D.t4,adFormat:D.adFormat}}}; this.nV=this.provider.mE.C("html5_qoe_relaxed_reporting");var M=g.A3(this.provider.mE.experiments,"html5_qoe_proto_mock_length");M&&!Pm.length&&(Pm=HZK(M));g.T(this,this.Qi);try{var L,Z;(Z=(L=navigator).getBattery)==null||Z.call(L).then(function(k){D.B=k})}catch(k){}g.OE(this,0,"vps",["N"]); w.mE.gW()&&(this.fV=(0,g.IC)(),this.GU=g.lU(function(){var k=(0,g.IC)(),b=k-D.fV;b>500&&D.H_("vmlock",{diff:b.toFixed()});D.fV=k},250)); this.provider.videoData.KP&&(this.remoteControlMode=soK[this.provider.videoData.KP]||0);this.provider.videoData.O1&&(M=CHK(this.provider.videoData.O1),M==null?0:M.length)&&(this.remoteConnectedDevices=M);w.mE.gW()&&(this.Nd=new $yC,g.T(this,this.Nd));M=g.A3(w.mE.experiments,"html5_js_self_profiler_sample_interval_ms");w=g.A3(w.mE.experiments,"html5_js_self_profiler_max_samples");M>0&&w>0&&(this.XE=new VA(M,w),g.T(this,this.XE))}; m9=function(w,D,M){var L=w.T.get(D);L?L.push(M):w.T.set(D,[M])}; g.OE=function(w,D,M,L){m9(w,M,D.toFixed(3)+":"+L.join(":"))}; a_j=function(w,D){var M=w.adCpn||w.provider.videoData.clientPlaybackNonce,L=w.provider.getCurrentTime(M);g.OE(w,D,"cmt",[L.toFixed(3)]);M=L=w.provider.rd(M);if((!w.W||w.provider.mE.C("html5_shorts_gapless_no_gllat")&&nL(w.provider.videoData)?0:M*1E3>w.W.Gm+100)&&w.W){var Z=w.W;M=Z.isAd;L=L*1E3-Z.Gm;w.eM=D*1E3-Z.Td7-L-Z.Xdt;Z=(0,g.IC)()-L;D=w.eM;L=w.provider.videoData;var k=L.isAd();if(M||k){k=(M?"ad":"video")+"_to_"+(k?"ad":"video");var b={};L.Y&&(b.cttAuthInfo={token:L.Y,videoId:L.videoId});b.startTime= Z-D;Hl(k,b);g.Ng({targetVideoId:L.videoId,targetCpn:L.clientPlaybackNonce},k);xK("pbs",Z,k)}else Z=w.provider.Th.nJ(),Z.Y!==L.clientPlaybackNonce?(Z.W=L.clientPlaybackNonce,Z.V=D):L.Xz()||g.jn(new g.qA("CSI timing logged before gllat",{cpn:L.clientPlaybackNonce}));w.H_("gllat",{l:w.eM.toFixed(),prev_ad:+M});delete w.W}}; wo=function(w,D){D=D===void 0?NaN:D;D=D>=0?D:g.AR(w.provider);var M=w.provider.Th.qS(),L=M.A9-(w.Md||0);L>0&&g.OE(w,D,"bwm",[L,(M.Kh-(w.HA||0)).toFixed(3)]);isNaN(w.Md)&&M.A9&&w.isOffline&&w.QR(!1);w.Md=M.A9;w.HA=M.Kh;isNaN(M.bandwidthEstimate)||g.OE(w,D,"bwe",[M.bandwidthEstimate.toFixed(0)]);w.provider.mE.gW()&&Object.keys(M.T).length!==0&&w.H_("bwinfo",M.T);if(w.provider.mE.gW()||w.provider.mE.C("html5_log_meminfo"))L=hWK(),Object.values(L).some(function(k){return k!==void 0})&&w.H_("meminfo", L); if(w.provider.mE.gW()){var Z;(L=(Z=w.Nd)==null?void 0:iZS(Z))&&Object.values(L).some(function(k){return k!=null})&&w.H_("cpuinfo",L)}w.XE&&w.H_("jsprof",w.XE.flush()); w.B&&g.OE(w,D,"bat",[w.B.level,w.B.charging?"1":"0"]);Z=w.provider.Th.getVisibilityState();w.Is!==Z&&(g.OE(w,D,"vis",[Z]),w.Is=Z);a_j(w,D);(Z=vsj(w.provider))&&Z!==w.wW&&(g.OE(w,D,"conn",[Z]),w.wW=Z);cWj(w,D,M)}; BZK=function(w){var D=w.provider.Th.qS(),M=g.AR(w.provider);cWj(w,M,D);var L=D.L;D=D.D;isNaN(L)||(w.provider.mE.C("html5_unified_live_latency_reporting")&&!isNaN(D)&&D?g.OE(w,M,"e2el",[L.toFixed(3),D.toFixed(3)]):g.OE(w,M,"e2el",[L.toFixed(3)]))}; cWj=function(w,D,M){if(!isNaN(M.Yb)){var L=M.Yb;M.V96E3&&(new g.ui(w.reportStats,0,w)).start()}}; rWC=function(w){w.provider.videoData.CJ&&D3(w,"prefetch");w.provider.videoData.Sb&&w.H_("reload",{r:w.provider.videoData.reloadReason,ct:w.provider.videoData.Sb});w.provider.videoData.pV&&D3(w,"monitor");w.provider.videoData.isLivePlayback&&D3(w,"live");dq&&D3(w,"streaming");w.provider.videoData.KP&&w.H_("ctrl",{mode:w.provider.videoData.KP},!0);if(w.provider.videoData.O1){var D=w.provider.videoData.O1.replace(/,/g,"_");w.H_("ytp",{type:D},!0)}w.provider.videoData.sU&&(D=w.provider.videoData.sU.replace(/,/g, "."),w.H_("ytrexp",{ids:D},!0));D=w.provider.videoData;var M=w.provider.mE.C("enable_white_noise")||w.provider.mE.C("enable_webgl_noop"),L=g.TB(D)||g.wZ(D)||g.D_(D)||g.My(D);(M||L)&&(M=(0,g.ME)())&&w.T.set("gpu",[M]);tW(w.provider.videoData)&&g.OE(w,g.AR(w.provider),"dt",["1"]);D.cotn&&!tW(D)&&w.QR(!0);w.provider.mE.gW()&&(D=(0,g.IC)()-w.provider.mE.X6,w.H_("playerage",{secs:Math.pow(1.6,Math.round(Math.log(D/1E3)/Math.log(1.6))).toFixed()}));w.D=!0;w.V7=g.lU(function(){w.reportStats()},1E4)}; X$x=function(w,D,M){var L=g.AR(w.provider);eWJ(w,L,D,0,M);wo(w,L);q9a(w)}; eWJ=function(w,D,M,L,Z){var k=w.provider.mE.T.cbrver;w.provider.mE.T.cbr==="Chrome"&&/^96[.]/.test(k)&&M==="net.badstatus"&&/rc\.500/.test(Z)&&TZj(w,3);w.provider.mE.C("html5_use_ump")&&/b248180278/.test(Z)&&TZj(w,4);k=w.provider.getCurrentTime(w.adCpn||w.provider.videoData.clientPlaybackNonce);L=L===1?"fatal":"";M=[M,L,k.toFixed(3)];L&&(Z+=";a6s."+Qz());Z&&M.push(u0I(Z));g.OE(w,D,"error",M);w.D=!0}; S9K=function(w,D){var M=g.AR(w.provider);if(!w.provider.mE.experiments.ek("html5_refactor_sabr_video_format_selection_logging")||D.T.id!==w.jk){var L=[D.T.id,D.V,w.jk,D.reason];D.token&&L.push(D.token);g.OE(w,M,"vfs",L);w.jk=D.T.id;L=w.provider.Th.getPlayerSize();if(L.width>0&&L.height>0){L=[Math.round(L.width),Math.round(L.height)];var Z=g.UK();Z>1&&L.push(Z);g.OE(w,M,"view",L)}w.pV||(w.provider.mE.gW()&&D3(w,"rqs2"),w.provider.videoData.T&&vO(w.provider.videoData.T)&&w.T.set("preload",["1"]));w.pV= !0;w.D=!0}D.reason==="m"&&++w.k6===100&&TZj(w,2);g.OE(w,M,"vps",[w.uT]);w.nV||w.reportStats(M)}; Qol=function(w){w.L>=0||(w.provider.mE.Nr||w.provider.Th.getVisibilityState()!==3?w.L=g.AR(w.provider):w.bW=!0)}; JWk=function(w,D,M){var L=g.AR(w.provider);g.OE(w,L,"vfi",[D==="A"?"":""+(M!=null?M:0),D])}; zWa=function(w,D,M){if(w.provider.mE.experiments.ek("html5_refactor_sabr_audio_format_selection_logging")){D=M.T;var L=[D.audio&&D.video?D.Rr?D.Rr:"":D.id];D.dW&&D.dW.id&&L.push(D.dW.id);D=L.join(";");D!==w.Y&&(L=[D,w.Y,M.reason],M.token&&L.push(M.token),g.OE(w,g.AR(w.provider),"afs",L),w.Y=D)}else M.T.id!==w.Y&&(L=[M.T.id,w.Y,M.reason],M.token&&L.push(M.token),g.OE(w,D,"afs",L),w.Y=M.T.id)}; D3=function(w,D){m9(w,"cat",D)}; VfG=function(w,D,M,L,Z){var k=g.AR(w.provider);D!==1&&D!==3&&D!==5||g.OE(w,k,"vps",[w.uT]);m9(w,"xvt","t."+k.toFixed(3)+";m."+Z.toFixed(3)+";g.2;tt."+D+";np.0;c."+M+";d."+L)}; TZj=function(w,D){w.iW||(m9(w,"fcnz",""+D),w.iW=!0)}; u0I=function(w){/[^a-zA-Z0-9;.!_-]/.test(w)&&(w=w.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return w}; g.Z3=function(w,D,M,L,Z,k,b,C,l,E){C=C===void 0?!1:C;g.X.call(this);var p=this;this.Th=w;this.schedule=D;this.policy=M;this.r9=L;this.nV=l;this.UV=E;this.v_=null;this.jk=this.XE=this.Md=this.V7=0;this.ZQ=this.QH=this.isSuspended=!1;this.EL="";this.FK={};this.oO=NaN;this.TU=0;this.U=null;this.GU=this.Jc=!1;this.e$=0;this.pV=!1;this.fV=this.iW=0;this.HA=null;this.Pq=!1;this.GK=function(){return p.Th.GK()}; this.timing=new LkT(this.UV);this.B=new OH(this.schedule,this.policy);this.wW=new g.ui(this.Ju,0,this);this.NC=new g.ui(this.Ju,this.policy.FQ,this);this.Bf=new g.ui(this.Ju,1E3,this);this.uj=new g.ui(this.Ju,void 0,this);this.Nd=new g.ui(function(){p.isSuspended||p.Ju()},1E4,this); this.Is=new g.ui(this.Coc,250,this);this.Y=this.currentTime=NaN;this.qv=new fg(5);this.W_=this.timestampOffset=NaN;this.logger=new g.yI("dash");this.Qi=Infinity;this.Bz={d37:function(){return p.lr}, lHE:function(){return p.L}, getAudioTrack:function(){return p.audioTrack}, MLh:function(){return p.videoTrack}, getManifest:function(){return p.r9}, CuL:function(){return p.V}, Ju:function(){p.Ju()}, xG:function(){p.V7=0;p.xG()}, gZ9:function(h){return LU(p,p.videoTrack,p.v_.V,h)}}; w=l&&l.Xw();l&&(K6K(l,this.r9,this.policy),this.W_=Date.now());this.T=new p9(this,this.B,M,this.r9,Z,w);M=vgJ(this.T,k,b&&b.id);this.audioTrack=new q_(this,this.policy,M.audio,this.timing);this.videoTrack=new q_(this,this.policy,M.video,this.timing);this.videoTrack.D.c_=this.audioTrack.Jl();this.bW={updateend:this.K8,error:this.y1E};g.T(this,this.wW);g.T(this,this.NC);g.T(this,this.Bf);g.T(this,this.uj);g.T(this,this.Nd);M=this.policy.oI&&this.policy.x8?!FAJ(this.videoTrack.T.info):!1;this.FQ=VIj({gK:this.policy.G.gK|| M,x8:this.policy.x8&&!M,UZ:this.policy.UZ});this.G=CRG(this,this.policy,this.FQ,this.schedule,this.qv,function(h,t){return PRK(p,h,t)}); this.L=new KX(this,this.r9,this.policy,this.videoTrack,this.audioTrack,C);this.policy.EL&&this.policy.V&&(this.c_=new NgJ(this.policy.Jc,function(h,t){p.H_(h,t)})); this.lr=new MU(this,this.r9,this.videoTrack,this.audioTrack,this.policy);C=this.policy.Kk?this.Th.getVideoData().Ss:null;this.W=new Lq(this,this.policy,this.videoTrack,this.audioTrack,this.FK,this.L,this.timing,this.B,this.schedule,this.r9,this.T,this.G,M,C);g.T(this,this.W);this.D=new YG(this,this.policy,this.videoTrack,this.audioTrack,this.r9,Z,F9(this.Th.getVideoData()),b==null?void 0:b.id);g.T(this,this.D);g2j(this.D,k);this.V=new niI(this.Th,this,this.policy,this.audioTrack,this.videoTrack,this.r9, this.schedule,this.T,this.D,this.timing,this.L,this.c_);g.T(this,this.V);this.y7=this.Th.vA.GZ.Qn;this.policy.W||OZj(this);if(this.policy.wz){var W;this.mu=new A0j(this.videoTrack.T.index,(W=this.Th.getVideoData().clientPlaybackNonce)!=null?W:"",this.Th,this.policy.mu);this.policy.mu===3&&(this.Sb=new g.ui(this.AG,200,this),this.Sb.start(),g.T(this,this.Sb))}this.logger.debug("Created")}; OZj=function(w){var D,M;if((D=w.y7)==null?0:(M=D.Ra)==null?0:M.itagDenylist){var L;w.P8((L=w.y7)==null?void 0:L.Ra.itagDenylist)}var Z;if((Z=w.y7)==null?0:Z.playbackStartPolicy){var k,b;DiS(w.policy,(k=w.y7)==null?void 0:k.playbackStartPolicy,3,(b=w.y7)==null?void 0:b.SV())}if(w.policy.GR){D=w.eJ();var C;(M=D?(C=w.y7)==null?void 0:C.rE.get(D):void 0)&&w.V.Mn(M)}if(!w.r9.y7){var l;C=(l=w.y7)==null?void 0:l.sP;(C==null?0:C.ya)&&(C==null?0:C.Yd)&&w.r9.Yl&&VI(w.r9,C.ya,C.Yd)}var E;((E=w.y7)==null?0:E.iF)&& (l=w.y7.iF.get(w.eJ()||""))&&w.r9&&l.formatId&&(w=w.r9.L.get(Jo(l.formatId)))&&(w.info.debugInfo=l.debugInfo)}; KHC=function(w,D){var M=Jo(g.P_(D.T.info,w.r9.Yl)),L,Z=((L=w.nV)==null?void 0:L.A3(M))||[];if(Z.length===0)return w.H_("ombmsi",{}),!1;Z=new kg(Z);if(L=!w.policy.y7||isFinite(w.getCurrentTime())||w.Th.BB()){a:{L=w.getCurrentTime();Z=g.x(Z.uW);for(var k=Z.next();!k.done;k=Z.next())if(k=k.value,k.type===3&&L>=k.W&&L<=k.Y){L=!0;break a}L=!1}L=!L}if(L)return w.H_("ostmf",{ct:w.getCurrentTime(),a:D.T.info.XX()}),!1;(w=w.nV)!=null&&(w.N$.get(M).GJ=!0);return!0}; myl=function(w){if(!w.r9.Yl)return!0;var D=w.Th.getVideoData();if(w.Th.BC())return w.H_("ombpa",{}),!1;var M,L;if(!!((M=w.y7)==null?0:(L=M.sP)==null?0:L.arW)!==w.r9.G3)return w.H_("ombplmm",{}),!1;M=D.TU||D.liveUtcStartSeconds||D.uj;if(w.r9.G3&&M)return w.H_("ombplst",{}),!1;if(w.r9.y7)return w.H_("ombab",{}),!1;M=Date.now();return Py(w.r9)&&!isNaN(w.W_)&&M-w.W_>w.policy.oh*1E3?(w.H_("ombttl",{}),!1):w.r9.YP&&w.r9.D||!w.policy.lE&&w.r9.isPremiere||X9(D)!==0&&!w.policy.T||D.C("html5_disable_onesie_media_for_mosaic")&& hW(D)||D.C("html5_disable_onesie_media_for_lifa_eligible")&&pZ(D)?!1:!0}; AWK=function(w,D){var M=D.T,L=w.r9.Yl;if(myl(w))if(w.nV&&w.nV.N$.has(Jo(g.P_(M.info,L)))){if(L=Jo(g.P_(M.info,L)),KHC(w,D)){var Z=new kg(w.nV.A3(L)),k=function(b){try{if(b.NR())w.handleError(b.qs(),b.sD()),OI(D,b),Yg(b.info)&&Zh(w.W,D,M,!0),w.Ju();else if($iS(w.W,b)){var C;(C=w.L)==null||dHj(C,b.info,w.U);w.Ju()}}catch(l){b=tF(l),w.handleError(b.errorCode,b.details,b.severity),w.Ug()}}; M.L=!0;bc(Z)&&(X1(D,new LX(w.policy,L,Z,w.nV,k)),O$(w.timing))}}else w.H_("ombfmt",{})}; wRl=function(w,D){D=D||w.videoTrack&&w.videoTrack.V&&w.videoTrack.V.startTime||w.getCurrentTime();var M=kG,L=w.videoTrack,Z=w.T;D=Z.nextVideo&&Z.nextVideo.index.Y9(D)||0;Z.c_!==D&&(Z.fV={},Z.c_=D,Ws(Z,Z.T));D=!Z.T.isLocked()&&Z.B>-1&&(0,g.IC)()-Z.BD.T&&D.reason==="b";L||Z||M?(w.Th.nG({reattachOnConstraint:L?"u":Z?"drm":"perf",lo:D.V,up:D.T}),w.policy.HX||(w.D.T.V=!1)):(w.policy.HX&&(w.D.T.V=!1),QA(w))}}else if(!ccr(w.T,D)&&w.videoTrack){w.logger.debug(function(){return"Setting constraint: r="+D.reason+" u="+D.T}); M=w.T.T;CgI(w,fyN(w.T,D));wRl(w);L=D.isLocked()&&D.reason==="m"&&w.T.V7;Z=w.policy.DJ&&D.reason==="l"&&mz(w.videoTrack);M=M.T>D.T&&D.reason==="b";var k=w.T.bW&&!td();L||Z||M||k?w.Th.nG({reattachOnConstraint:L?"u":Z?"drm":k?"codec":"perf"}):QA(w)}}; EVK=function(w,D,M){if((!w.v_||dk(w.v_)&&!w.policy.MN)&&!w.lr.isSeeking()&&(w.policy.T||mz(D)&&D.T.Gk()&&w.T.y7)){var L=w.getCurrentTime()+GaN(w.B,D,M);w.logger.debug(function(){return"Clearing back to "+L.toFixed(3)}); q2T(D,L)}}; CgI=function(w,D){D&&(w.logger.debug(function(){return"Logging new format: "+D0(D.video.info)}),pRI(w.Th,new ku(D.video,D.reason))); if(w.T.XE){var M=XyN(w.T,"a");w.Th.mV(new ku(M.audio,M.reason))}}; QA=function(w){g.S3(w.wW)}; diN=function(w){w.policy.FQ&&w.policy.UZ&&Math.min(fOx(w.videoTrack),fOx(w.audioTrack))*1E3>w.policy.nu?g.S3(w.NC):w.Ju()}; Wjr=function(w,D){var M=(0,g.IC)()-D,L=VY(w.audioTrack,!0)*1E3,Z=VY(w.videoTrack,!0)*1E3;w.logger.debug(function(){return"Appends paused for "+M}); if(w.policy.L&&(w.H_("apdpe",{dur:M.toFixed(),abuf:L.toFixed(),vbuf:Z.toFixed()}),Dh(w.policy))){var k=AX(w.B);w.H_("sdps",{ct:D,ah:L.toFixed(),vh:Z.toFixed(),mr:wp(w.B,w.ZQ,k),bw:k.toFixed(),js:w.isSeeking(),re:+w.ZQ,ps:(w.policy.NL||"").toString(),rn:(w.policy.II||"").toString()})}}; hrx=function(w){if(QpN(w.videoTrack))return w.logger.debug("Pausing appends for server-selectable format"),"ssf";if(w.policy.bW&&V1N(w.videoTrack)&&V1N(w.audioTrack))return"updateEnd";if(K9(w.audioTrack)||K9(w.videoTrack)&&w.videoTrack.T.info.RJ!=="f")return"";if(w.lr.isSeeking()){var D=w.B;var M=w.videoTrack;var L=w.audioTrack;if(D.policy.T){var Z=D.policy.ZB;Dh(D.policy)&&(Z=wp(D,!1,AX(D)));D=Z;M=VY(L,!0)>=D&&VY(M,!0)>=D}else M.L.length||L.L.length?(Z=M.T.info.sL+L.T.info.sL,Z=10*(1-AX(D)/Z),D= Math.max(Z,D.policy.ZB),M=VY(L,!0)>=D&&VY(M,!0)>=D):M=!0;if(!M)return"abr";M=w.videoTrack;if(M.L.length>0&&M.D.V.length===1&&WJC(M.D).info.U360);L=Dh(w.policy)&&w.policy.QW;if(!w.ZQ||!L&&M)return"";M=w.policy.nf;Dh(w.policy)&&(M=wp(w.B,w.ZQ,AX(w.B)));M=Xdx(w.videoTrack,w.getCurrentTime(),M)||Xdx(w.audioTrack,w.getCurrentTime(), M);return Dh(w.policy)?M?"mbnm":"":(w.videoTrack.L.length>0||w.audioTrack.L.length>0||YKj(w.W,w.videoTrack,w.audioTrack)||YKj(w.W,w.audioTrack,w.videoTrack))&&M?"nord":""}; tgK=function(w){if(w.G){var D=w.G.Ju(w.audioTrack,YW(w.v_.V.O4()));D&&w.Th.seekTo(D,{zO:!0,GD:"pollSubsegmentReadahead",GH:!0})}}; xIr=function(w,D,M){if(w.policy.bW&&V1N(D))return!1;if(M.gT())return!0;if(!M.Jn())return!1;var L=Wz(D);if(!L||L.info.type===6)return!1;var Z;if(w.policy.LT||((Z=w.L)==null?0:xHl(Z,D,L.info.g9)))w.jk=0;else return w.lr.isSeeking()&&QA(w),w.jk=w.jk||(0,g.IC)(),!1;if(!LU(w,D,M,L.info))return!1;if(w.r9.V&&L.info.V===0){if(Z=$Il(D,M,L)){var k=eh(D);w.H_("initchg",{it:L.info.T.info.id,sr:!!k&&k.T===L.info.T,ty:L.info.type,seg:L.info.g9})}k=g.zw(L.info.T.info);w.policy.yF&&k&&!Z&&wFr(L)}k=w.G&&!!w.G.D&& D.T.info.audio;Z=w.r9.isManifestless||L.W;if(!(w.r9.V&&L.info.V!==0||Z&&!k)&&iiS(w,D,M,L))return!0;if(k)return!1;k=Yf(w,D);k=w.getCurrentTime()+k;if(L.info.W>k)return w.policy.T&&dIS(w,D),w.policy.oN&&uYS(D.D,k,!1),!1;yXl(w,D);var b;w.policy.Nr&&M===((b=w.v_)==null?void 0:b.T)&&w.pV&&(M.wA()===0?(w.pV=!1,w.policy.Nr=!1):w.iW=M.wA());if(!IiK(w,M,L,D))return!1;w.policy.bW&&L.info.wK()?(w.Th.X().gW()&&w.H_("eosl",{ls:L.info.PA()}),L.isLocked=!0):(D.Qe(L),eyj(w.T,L.info),w.logger.debug(function(){return"Appended "+ L.info.PA()+", buffered: "+L5(M.O4())})); Z&&UIr(w,L.info.T.LZ);return!0}; dIS=function(w,D){D===w.videoTrack?w.XE=w.XE||(0,g.IC)():w.Md=w.Md||(0,g.IC)()}; yXl=function(w,D){D===w.videoTrack?w.XE=0:w.Md=0}; IiK=function(w,D,M,L){var Z=w.policy.wW?(0,g.IC)():0,k=M.W&&M.info.T.T||void 0,b=M.V;M.W&&(b=NWK(w,M,b)||b);var C=ZR(b);b=w.policy.wW?(0,g.IC)():0;D=HiJ(w,D,C,M.info,k);(L=L.B)!=null&&(k=M.info,Z=b-Z,b=(0,g.IC)()-b,!L.V||d$C(L.V,k)&&L.V.g9===k.g9||L.flush(),L.D+=Z,L.L+=b,Z=1,!L.V&&k.V&&(Z=2),yY(L,Z,D),b=Math.ceil(k.V/1024),Z===2&&L.T.add(b),L.T.add(Math.ceil((k.V+k.L)/1024)-b),L.V=k);w.fV=0;if(D===0)return w.Jc&&(w.logger.debug("Retry succeed, back to normal append logic."),w.Jc=!1,w.GU=!1),w.TU= 0,!0;if(D===2||D===5)return j4r(w,"checked",D,M.info),!1;if(D===1){if(!w.Jc)return w.logger.debug("QuotaExceeded, retrying."),w.Jc=!0,!1;if(!w.GU)return w.GU=!0,w.Th.seekTo(w.getCurrentTime(),{GD:"quotaExceeded",GH:!0}),!1;M.info.GC()?(Z=w.policy,Z.Md=Math.floor(Z.Md*.8),Z.nV=Math.floor(Z.nV*.8)):(Z=w.policy,Z.iW=Math.floor(Z.iW*.8),Z.nV=Math.floor(Z.nV*.8));w.policy.T?Yu(w.D.T,M.info.T,!1):t8(w.T,M.info.T)}w.Th.nG({reattachOnAppend:D});return!1}; NWK=function(w,D,M){var L;if(L=w.policy.pk&&w.v_&&!w.v_.U&&!w.Th.RY())D=D.info.T.info,L=D.Dr()&&Xt(D)&&D.video&&D.video.width<3840&&D.video.width>D.video.height;if(L&&(w.v_.U=!0,yd('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return M=Etj(M),w.policy.L&&w.H_("sp4k",{s:!!M}),M}; j4r=function(w,D,M,L){var Z="fmt.unplayable",k=1;M===5||M===3?(Z="fmt.unparseable",w.policy.T?!L.T.info.video||C9(w.D.T).size>0||Yu(w.D.T,L.T,!1):!L.T.info.video||C9(w.T.W).size>0||t8(w.T,L.T)):M===2&&(w.TU<15?(w.TU++,Z="html5.invalidstate",k=0):Z="fmt.unplayable");L=Lr(L);var b;L.mrs=(b=w.v_)==null?void 0:xW(b);L.origin=D;L.reason=M;L.trg="appenderr";w.handleError(Z,L,k)}; otI=function(w,D,M,L,Z){var k=w.r9;var b=w.policy.T,C=!1,l=-1,E;for(E in k.T){var p=AF(k.T[E].info.mimeType)||k.T[E].info.GC();if(L===p)if(p=k.T[E].index,p.s3(D.g9)){C=p;var W=D,h=C.l8(W.g9);h&&h.startTime!==W.startTime?(C.segments=[],C.GN(W),C=!0):C=!1;C?l=D.g9:!D.pending&&b&&(W=p.getDuration(D.g9),W!==D.duration&&(k.publish("clienttemp","mfldurUpdate",{itag:k.T[E].info.itag,seg:D.g9,od:W,nd:D.duration},!1),p.GN(D),C=!0))}else p.GN(D),C=!0}l>=0&&(b={},k.publish("clienttemp","resetMflIndex",(b[L? "v":"a"]=l,b),!1));k=C;zDr(w.lr,D,L,k);if(w.policy.EL&&w.policy.V&&(l=D.Pr||null)){var t;b=(t=w.V)==null?void 0:QyN(t).requestNumber;var d;(d=w.c_)==null||Hrj(d,l,b,D.g9)}w.L.c8(D,M,L,Z);D.g9===w.r9.YP&&k&&SI(w.r9)&&D.startTime>SI(w.r9)&&(w.r9.c_=D.startTime+(isNaN(w.timestampOffset)?0:w.timestampOffset),w.lr.isSeeking()&&w.lr.targetTime5)return w.fV= 0,w.Th.nG({initSegStuck:1,as:L.info.PA()}),!0}else w.fV=0,w.HA=L;w.policy.rF&&(M.abort(),(b=D.B)!=null&&(yY(b,4),b.flush()));Z=HiJ(w,M,k,l,Z);var E;(E=D.B)==null||PcR(E,Z,l);if(Z!==0)return gVK(w,Z,L),!0;L.info.GC()?CcK(w.timing):lyx(w.timing);w.logger.debug(function(){return"Appended init for "+L.info.T.info.id}); UIr(w,L.info.T.LZ);return M.wV()}; $Il=function(w,D,M){if(D.uH()==null){w=eh(w);if(!(D=!w||w.T!==M.info.T)){a:if(w=w.B,M=M.info.B,w.length!==M.length)M=!1;else{for(D=0;D1)return 6;b.fV=new g.ui(function(){var C=Wz(b);w.xt()||C==null||!C.isLocked?w.Th.X().gW()&&w.H_("eosl",{delayA:C==null?void 0:C.info.PA()}):RrG(b)?(w.Th.X().gW()&&w.H_("eosl",{dunlock:C==null?void 0:C.info.PA()}),oVx(w,b===w.audioTrack)):(w.H_("nue",{ls:C.info.PA()}),C.info.y7+=1,w.v_&&w.xG())},1E4,w); w.Th.X().gW()&&w.H_("eosl",{delayS:L.PA()});b.fV.start()}w.policy.TW&&(L==null?void 0:L.T)instanceof lc&&L.wK()&&w.H_("poseos",{itag:L.T.info.itag,seg:L.g9,lseg:L.T.index.EV(),es:L.T.index.L});D.appendBuffer(M,L,Z)}catch(C){if(C instanceof DOMException){if(C.code===11)return 2;if(C.code===12)return 5;if(C.code===22||C.message.indexOf("Not enough storage")===0)return D=Object.assign({name:"QuotaExceededError",buffered:L5(D.O4()).replace(/,/g,"_"),vheap:J8(w.videoTrack),aheap:J8(w.audioTrack),message:g.n6(C.message, 3),track:w.v_?D===w.v_.V?"v":"a":"u"},hWK()),w.handleError("player.exception",D),1;g.HL(C)}return 4}return w.v_.VL()?3:0}; pX=function(w,D,M){Mgl(w,M.GD||"unknown");w.Th.seekTo(D,M)}; UIr=function(w,D){D&&w.Th.T1(new Rf(D.key,D.type))}; GO=function(w,D){w.Th.KA(D)}; Yf=function(w,D){if(w.policy.y7&&w.Jc&&!w.ZQ)return w.policy.Wn;if(w.Jc&&!w.ZQ)return 3;if(w.isSuspended)return 1;var M;if((M=w.v_)==null?0:M.v_&&M.v_.streaming===!1)return 4;M=(D.T.info.audio?w.policy.iW:w.policy.Md)/(D.sL*w.policy.ao);if(w.policy.qf>0&&w.v_&&dk(w.v_)&&(D=D.T.info.video?w.v_.V:w.v_.T)&&!D.wV()){D=D.O4();var L=Z0(D,w.getCurrentTime());L>=0&&(D=w.getCurrentTime()-D.start(L),M+=Math.max(0,Math.min(D-w.policy.qf,w.policy.ll)))}w.policy.nV>0&&(M=Math.min(M,w.policy.nV));return M}; viR=function(w,D){return(Yf(w,D)+w.policy.lw)*D.sL}; Fjj=function(w){w.EL&&!w.isSuspended&&Ve(w.schedule)&&(nVR(w,w.EL),w.EL="")}; nVR=function(w,D){PR(D,"cms",function(M){w.policy.L&&w.H_("pathprobe",M)},function(M){w.Th.handleError(M)})}; GUa=function(w,D){if(w.v_&&w.v_.D&&!w.v_.VL()&&(D.Yb=VY(w.videoTrack),D.V=VY(w.audioTrack),w.policy.L)){var M=J8(w.videoTrack),L=J8(w.audioTrack),Z=L5(w.v_.V.O4(),"_",5),k=L5(w.v_.T.O4(),"_",5);Object.assign(D.T,{lvq:M,laq:L,lvb:Z,lab:k})}D.bandwidthEstimate=Ki(w.B);var b;(b=w.audioTrack.B)==null||b.flush();var C;(C=w.videoTrack.B)==null||C.flush();w.logger.debug(function(){return pH(D.T)})}; s4I=function(w,D){w.U=D;w.L&&(w.L.L=D);w.U.gD(w.videoTrack.T.info.Dr());w.W.V=w.U;w.policy.V&&(w.V.U=w.U)}; vVx=function(w,D){if(w.v_&&w.v_.V){if(w.policy.Ym){var M=Ogx(w.audioTrack);if(M&&M.XX()){var L=w.Th;if(L.L0&&(L.L0.T=M,M=L.xl,M.qoe)){M=M.qoe;L=L.L0;var Z=g.AR(M.provider);zWa(M,Z,L)}}}w.policy.Jy&&(M=Ogx(w.videoTrack))&&M.GC()&&(L=w.Th,L.Kv&&(L.Kv.T=M,M=L.xl,M.qoe&&S9K(M.qoe,L.Kv)));D-=isNaN(w.timestampOffset)?0:w.timestampOffset;w.getCurrentTime()!==D&&w.resume();w.lr.isSeeking()&&w.v_&&!w.v_.VL()&&(L=w.getCurrentTime()<=D&&D=D&&PRK(w,L.startTime,!1)}); return M&&M.startTimew.getCurrentTime())return M.start/1E3;return Infinity}; fXx=function(w){if(w.Th.getVideoData().isLivePlayback)return!1;var D=w.Th.ij();if(!D)return!1;D=D.getDuration();if(w.v_&&w.v_.T&&w.v_.V){var M=w.getCurrentTime(),L=w.v_.T.O4();w=w.v_.V.O4();L=L?b$(L,M):M;M=w?b$(w,M):M;M=Math.min(L,M);D=isNaN(M)?!1:M>=D-.01}else D=!1;return D}; gVK=function(w,D,M){w.policy.JU&&nL(w.Th.getVideoData())?(w.Th.rT()||j4r(w,"sepInit",D,M.info),zfG(w.Th,"sie")):j4r(w,"sepInit",D,M.info)}; y6r=function(w){return w.Th.Rb()0){var L=M.T.shift();P6C(M,L.info)}M.T.length>0&&(L=M.T[0].time-(0,g.IC)(),M.V.start(Math.max(0,L)))}},0); g.T(this,this.V);D.subscribe("widevine_set_need_key_info",this.D,this)}; P6C=function(w,D){a:{var M=D.cryptoPeriodIndex;if(isNaN(M)&&w.L.size>0)M=!0;else{for(var L=g.x(w.L.values()),Z=L.next();!Z.done;Z=L.next())if(Z.value.cryptoPeriodIndex===M){M=!0;break a}M=!1}}w.publish("log_qoe",{wvagt:"reqnews",canskip:M});M||w.publish("rotated_need_key_info_ready",D)}; OqS=function(){var w={};var D=w.url;var M=w.interval;w=w.retries;this.url=D;this.interval=M;this.retries=w}; K9R=function(w,D){this.statusCode=w;this.message=D;this.V=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; m4r=function(w,D,M){M=M===void 0?"":M;g.X.call(this);this.message=w;this.requestNumber=D;this.timer=M;this.onError=this.onSuccess=null;this.T=new g.sM(5E3,2E4,.2)}; ARl=function(w,D,M){w.onSuccess=D;w.onError=M}; DES=function(w,D,M,L){var Z={timeout:3E4,onSuccess:function(k){if(!w.xt()){xK("drm_net_r",void 0,w.timer);var b=k.status==="LICENSE_STATUS_OK"?0:9999,C=null;if(k.license)try{C=FA(k.license)}catch(d){g.HL(d)}if(b!==0||C){C=new K9R(b,C);b!==0&&k.reason&&(C.errorMessage=k.reason);if(k.authorizedFormats){b={};for(var l=[],E={},p=g.x(k.authorizedFormats),W=p.next();!W.done;W=p.next())if(W=W.value,W.trackType&&W.keyId){var h=wwC[W.trackType];if(h){h==="HD"&&k.isHd720&&(h="HD720");W.isHdr&&(h+="HDR");b[h]|| (l.push(h),b[h]=!0);var t=null;try{t=FA(W.keyId)}catch(d){g.HL(d)}t&&(E[g.oJ(t,4)]=h)}}C.V=l;C.T=E}k.nextFairplayKeyId&&(C.nextFairplayKeyId=k.nextFairplayKeyId);k.sabrLicenseConstraint&&(C.sabrLicenseConstraint=FA(k.sabrLicenseConstraint));k=C}else k=null;if(k)w.onSuccess(k,w.requestNumber);else w.onError(w,"drm.net","t.p;p.i")}}, onError:function(k){if(!w.xt())if(k&&k.error)k=k.error,w.onError(w,"drm.net.badstatus","t.r;p.i;c."+k.code+";s."+k.status,k.code);else w.onError(w,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){w.onError(w,"drm.net","rt.req."+w.requestNumber)}}; L&&(Z.K2="Bearer "+L);g.uZ(M,"player/get_drm_license",D,Z)}; Mol=function(w,D,M,L){g.mI.call(this);this.videoData=w;this.mE=D;this.U=M;this.sessionId=L;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.y7=this.V7=!1;this.L=null;this.nV=[];this.D=[];this.authorizedFormats=[];this.G=!1;this.T={};this.status="";this.Y=NaN;this.V=w.W;this.cryptoPeriodIndex=M.cryptoPeriodIndex;w={};Object.assign(w,this.mE.T);w.cpn=this.videoData.clientPlaybackNonce;this.videoData.W_&&(w.vvt=this.videoData.W_,this.videoData.mdxEnvironment&&(w.mdx_environment= this.videoData.mdxEnvironment));this.mE.nV&&(w.authuser=this.mE.nV);this.mE.pageId&&(w.pageid=this.mE.pageId);isNaN(this.cryptoPeriodIndex)||(w.cpi=this.cryptoPeriodIndex.toString());var Z=(Z=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.qc()))?Z[1]:"";Z==="ATV"&&(w.cdt=Z);this.W=w;this.W.session_id=L;this.B=!0;this.V.flavor==="widevine"&&(this.W.hdr="1");this.V.flavor==="playready"&&(D=Number(U2(D.experiments,"playready_first_play_expiration")),!isNaN(D)&&D>=0&&(this.W.mfpe=""+D),this.B=!1);D="";g.Cg(this.V)? Yt(this.V)?(L=M.V)&&(D="https://www.youtube.com/api/drm/fps?ek="+HWI(L)):(D=M.initData.subarray(4),D=new Uint16Array(D.buffer,D.byteOffset,D.byteLength/2),D=String.fromCharCode.apply(null,D).replace("skd://","https://")):D=this.V.V;this.baseUrl=D;this.fairplayKeyId=NM(this.baseUrl,"ek")||"";if(D=NM(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(D);this.nV=M.Dr?[g.oJ(M.initData,4)]:M.L;lm(this,{sessioninit:M.cryptoPeriodIndex});this.status="in"}; bUN=function(w,D){lm(w,{createkeysession:1});w.status="gr";xK("drm_gk_s",void 0,w.videoData.y7);w.url=LDr(w);try{w.L=D.createSession(w.U,function(M){lm(w,{m:M})})}catch(M){D="t.g"; M instanceof DOMException&&(D+=";c."+M.code);w.publish("licenseerror","drm.unavailable",1,D,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}w.L&&(ZUR(w.L,function(M,L){ktN(w,M,L)},function(M,L,Z){if(!w.xt()){L=void 0; var k=1;g.Cg(w.V)&&g.Y2(w.mE)&&w.mE.C("html5_enable_safari_fairplay")&&Z===1212433232&&(L="ERROR_HDCP",k=w.mE.C("html5_safari_fairplay_ignore_hdcp")?0:k);w.error("drm.keyerror",k,M,L)}},function(){w.xt()||(lm(w,{onkyadd:1}),w.y7||(w.publish("sessionready"),w.y7=!0))},function(M){w.fW(M)}),g.T(w,w.L))}; LDr=function(w){var D=w.baseUrl;ynR(D)||w.error("drm.net",2,"t.x");if(!NM(D,"fexp")){var M=["23898307","23914062","23916106","23883098"].filter(function(Z){return w.mE.experiments.experiments[Z]}); M.length>0&&(w.W.fexp=M.join())}M=g.x(Object.keys(w.W));for(var L=M.next();!L.done;L=M.next())L=L.value,D=ucT(D,L,w.W[L]);return D}; ktN=function(w,D,M){if(!w.xt())if(D){lm(w,{onkmtyp:M});w.status="km";switch(M){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Y7k(w,D);return;default:w.publish("ctmp","message_type",{t:M,l:D.byteLength})}w.V7||(xK("drm_gk_f",void 0,w.videoData.y7),w.V7=!0,w.publish("newsession",w));if(ZO(w.V)&&(D=Cmk(D),!D))return;D=new m4r(D,++w.requestNumber,w.videoData.y7);ARl(D,function(L){l3x(w,L)},function(L,Z,k){if(!w.xt()){var b=0; L.T.V>=3&&(b=1,Z="drm.net.retryexhausted");lm(w,{onlcsrqerr:Z,info:k});w.error(Z,b,k);w.shouldRetry(hF(b),L)&&ELK(w,L)}}); g.T(w,D);pwT(w,D)}else w.error("drm.unavailable",1,"km.empty")}; Y7k=function(w,D){lm(w,{sdpvrq:1});w.Y=Date.now();if(w.V.flavor!=="widevine")w.error("drm.provision",1,"e.flavor;f."+w.V.flavor+";l."+D.byteLength);else{var M={cpn:w.videoData.clientPlaybackNonce};Object.assign(M,w.mE.T);M=g.dh("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",M);D={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, D)}),responseType:"arraybuffer"};g.N2(M,D,3,500).then(KP(function(L){L=L.xhr;if(!w.xt()){L=new Uint8Array(L.response);var Z=String.fromCharCode.apply(null,L);try{var k=JSON.parse(Z)}catch(b){}k&&k.signedResponse?(w.publish("ctmp","drminfo",{provisioning:1}),k=(Date.now()-w.Y)/1E3,w.Y=NaN,w.publish("ctmp","provs",{et:k.toFixed(3)}),w.L&&w.L.update(L)):(k=k&&k.error&&k.error.message,L="e.parse",k&&(L+=";m."+k),w.error("drm.provision",1,L))}}),KP(function(L){w.xt()||w.error("drm.provision",1,"e."+L.errorCode+ ";c."+(L.xhr&&L.xhr.status))}))}}; E7=function(w){var D;if(D=w.B&&w.L!=null)w=w.L,D=!(!w.T||!w.T.keyStatuses);return D}; pwT=function(w,D){w.status="km";xK("drm_net_s",void 0,w.videoData.y7);var M=new g.TG(w.mE.VV),L={context:g.ko(M.config_||g.ZF())};L.drmSystem=WDT[w.V.flavor];L.videoId=w.videoData.videoId;L.cpn=w.videoData.clientPlaybackNonce;L.sessionId=w.sessionId;L.licenseRequest=g.oJ(D.message);L.drmParams=w.videoData.drmParams;isNaN(w.cryptoPeriodIndex)||(L.isKeyRotated=!0,L.cryptoPeriodIndex=w.cryptoPeriodIndex);var Z,k,b=!!((Z=w.videoData.V)==null?0:(k=Z.video)==null?0:k.isHdr());L.drmVideoFeature=b?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(L.context&&L.context.client){if(Z=w.mE.T)L.context.client.deviceMake=Z.cbrand,L.context.client.deviceModel=Z.cmodel,L.context.client.browserName=Z.cbr,L.context.client.browserVersion=Z.cbrver,L.context.client.osName=Z.cos,L.context.client.osVersion=Z.cosver;L.context.user=L.context.user||{};L.context.request=L.context.request||{};w.videoData.W_&&(L.context.user.credentialTransferTokens=[{token:w.videoData.W_,scope:"VIDEO"}]);L.context.request.mdxEnvironment=w.videoData.mdxEnvironment|| L.context.request.mdxEnvironment;w.videoData.FQ&&(L.context.user.kidsParent={oauthToken:w.videoData.FQ});g.Cg(w.V)&&(L.fairplayKeyId=g.oJ(jkK(w.fairplayKeyId)));g.GA(w.mE,g.E9(w.videoData)).then(function(C){DES(D,L,M,C);w.status="rs"})}else w.error("drm.net",2,"t.r;ic.0")}; l3x=function(w,D){if(!w.xt())if(lm(w,{onlcsrsp:1}),w.status="rr",D.statusCode!==0)w.error("drm.auth",1,"t.f;c."+D.statusCode,D.errorMessage||void 0);else{xK("drm_kr_s",void 0,w.videoData.y7);if(D.heartbeatParams&&D.heartbeatParams.url&&w.videoData.C("outertube_streaming_data_always_use_staging_license_service")){var M=w.V.V.match(/(.*)youtube.com/g);M&&(D.heartbeatParams.url=M[0]+D.heartbeatParams.url)}D.heartbeatParams&&w.publish("newlicense",D.heartbeatParams);D.V&&(w.D=D.V,w.videoData.cE||w.publish("newlicense", new OqS),w.videoData.cE=!0,w.G=uX(w.D,function(L){return L.includes("HDR")})); D.T&&(w.mE.C("html5_enable_vp9_fairplay")&&Yt(w.V)?(M=g.oJ(jkK(w.fairplayKeyId),4),w.T[M]={type:D.T[M],status:"unknown"}):w.T=wC(D.T,function(L){return{type:L,status:"unknown"}})); b3(w.V)&&(D.message=uVR(g.oJ(D.message)));w.L&&(lm(w,{updtks:1}),w.status="ku",w.L.update(D.message).then(function(){xK("drm_kr_f",void 0,w.videoData.y7);E7(w)||(lm(w,{ksApiUnsup:1}),w.publish("keystatuseschange",w))},function(L){L="msuf.req."+w.requestNumber+";msg."+g.n6(L.message,3); w.error("drm.keyerror",1,L)})); g.Cg(w.V)&&w.publish("fairplay_next_need_key_info",w.baseUrl,D.nextFairplayKeyId);w.mE.C("html5_enable_vp9_fairplay")&&Yt(w.V)&&w.publish("qualitychange",hYr(w.D));D.sabrLicenseConstraint&&w.publish("sabrlicenseconstraint",D.sabrLicenseConstraint)}}; ELK=function(w,D){var M=D.T.getValue();M=new g.ui(function(){pwT(w,D)},M); g.T(w,M);M.start();g.aq(D.T);lm(w,{rtyrq:1})}; tor=function(w,D){for(var M=[],L=g.x(Object.keys(w.T)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,M.push(Z+"_"+w.T[Z].type+"_"+w.T[Z].status);return M.join(D)}; $EI=function(w){var D={};D[w.status]=E7(w)?tor(w,"."):w.D.join(".");return D}; iUI=function(w,D,M){var L={};L.isHdr=D.includes("HDR");switch(D.replace("HDR","").replace("720","")){case "AUDIO":L.trackType=1;break;case "SD":L.trackType=2;break;case "HD":L.trackType=3;break;case "UHD1":L.trackType=4;break;case "UHD2":L.trackType=5;break;default:L.trackType=0}!L.trackType||M[D]||E7(w)&&!pU(w,D)||(w.authorizedFormats.push(L),M[D]=!0)}; pU=function(w,D){for(var M in w.T)if(w.T[M].status==="usable"&&w.T[M].type===D)return!0;return!1}; dEx=function(w,D){for(var M in w.T)if(w.T[M].type===D)return w.T[M].status}; lm=function(w,D){var M=M===void 0?!1:M;pH(D);(M||w.mE.gW())&&w.publish("ctmp","drmlog",D)}; yHR=function(w){var D=w[0];w[0]=w[3];w[3]=D;D=w[1];w[1]=w[2];w[2]=D;D=w[4];w[4]=w[5];w[5]=D;D=w[6];w[6]=w[7];w[7]=D}; hYr=function(w){return g.xB(w,"UHD2")||g.xB(w,"UHD2HDR")?"highres":g.xB(w,"UHD1")||g.xB(w,"UHD1HDR")?"hd2160":g.xB(w,"HD")||g.xB(w,"HDHDR")?"hd1080":g.xB(w,"HD720")||g.xB(w,"HD720HDR")?"hd720":"large"}; Cmk=function(w){for(var D="",M=0;M'.charCodeAt(L);w=w.L.createSession("video/mp4",D,M);return new Ww(null,null,null,null,w)}; RYJ=function(w,D){var M=w.Y[D.sessionId];!M&&w.D&&(M=w.D,w.D=null,M.sessionId=D.sessionId,w.Y[D.sessionId]=M);return M}; HUG=function(w,D){var M=w.subarray(4);M=new Uint16Array(M.buffer,M.byteOffset,M.byteLength/2);M=String.fromCharCode.apply(null,M).match(/ek=([0-9a-f]+)/)[1];for(var L="",Z=0;Z19.2999?(w=M.Ue,M=M.Oe,M>=w&&(M=w* .75),D=(w-M)*.5,M=new YL(D,w,w-D-M,this)):M=null;break a;case "widevine":M=new CU(D,this,w);break a;default:M=null}if(this.W=M)g.T(this,this.W),this.W.subscribe("rotated_need_key_info_ready",this.zS,this),this.W.subscribe("log_qoe",this.M2,this);E2(this.mE.experiments);this.M2({cks:this.T.getInfo()})}; nLG=function(w){var D=NoT(w.D);D?D.then(KP(function(){Gtk(w)}),KP(function(M){if(!w.xt()){g.HL(M); var L="t.a";M instanceof DOMException&&(L+=";n."+M.name+";m."+M.message);w.publish("licenseerror","drm.unavailable",1,L,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(w.M2({mdkrdy:1}),w.B=!0); w.y7&&(D=NoT(w.y7))}; a3J=function(w,D,M){w.Md=!0;M=new Rf(D,M);w.mE.C("html5_eme_loader_sync")&&(w.Y.get(D)||w.Y.set(D,M));sOl(w,M)}; sOl=function(w,D){if(!w.xt()){w.M2({onInitData:1});if(w.mE.C("html5_eme_loader_sync")&&w.videoData.L&&w.videoData.L.T){var M=w.G.get(D.initData);D=w.Y.get(D.initData);if(!M||!D)return;D=M;M=D.initData;w.Y.remove(M);w.G.remove(M)}w.M2({initd:D.initData.length,ct:D.contentType});if(w.T.flavor==="widevine")if(w.W_&&!w.videoData.isLivePlayback)$L(w);else{if(!(w.mE.C("vp9_drm_live")&&w.videoData.isLivePlayback&&D.Dr)){w.W_=!0;M=D.cryptoPeriodIndex;var L=D.T;kmj(D);D.Dr||(L&&D.T!==L?w.publish("ctmp","cpsmm", {emsg:L,pssh:D.T}):M&&D.cryptoPeriodIndex!==M&&w.publish("ctmp","cpimm",{emsg:M,pssh:D.cryptoPeriodIndex}));w.publish("widevine_set_need_key_info",D)}}else w.zS(D)}}; Gtk=function(w){if(!w.xt())if(w.mE.C("html5_drm_set_server_cert")||Yt(w.T)){var D=w.D.setServerCertificate();D?D.then(KP(function(M){w.mE.gW()&&w.publish("ctmp","ssc",{success:M})}),KP(function(M){w.publish("ctmp","ssce",{n:M.name, m:M.message})})).then(KP(function(){vLC(w)})):vLC(w)}else vLC(w)}; vLC=function(w){w.xt()||(w.B=!0,w.M2({onmdkrdy:1}),$L(w))}; cHj=function(w){return w.T.flavor==="widevine"&&w.videoData.C("html5_drm_cpi_license_key")}; $L=function(w){if(w.Md&&w.B&&!w.c_){for(;w.L.length;){var D=w.L[0],M=cHj(w)?bgk(D):g.oJ(D.initData);if(Yt(w.T)&&!D.V)w.L.shift();else{if(w.V.get(M))if(w.T.flavor!=="fairplay"||Yt(w.T)){w.L.shift();continue}else w.V.delete(M);kmj(D);break}}w.L.length&&w.createSession(w.L[0])}}; BoI=function(w){var D,M;g.B(function(L){if(L.T==1){var Z;if(Z=g.q2()){var k;Z=!((k=w.D.V)==null||!k.getMetrics)}return Z?g.c(L,w.D.getMetrics(),2):L.return()}D=L.V;if(!D)return L.return();mX(D)||(D=g.pM(D));M=/^[A-Za-z0-9_-]+={0,3}$/;M.test(D)||(D=g.n6(D,void 0,!0));w.publish("ctmp","drm",{metrics:D});g.Hr(L)})}; f3J=function(){var w=vax();return!(!w||w==="visible")}; rHG=function(w){var D=q7K();D&&document.addEventListener(D,w,!1)}; eYk=function(w){var D=q7K();D&&document.removeEventListener(D,w,!1)}; q7K=function(){if(document.visibilityState)var w="visibilitychange";else{if(!document[Y7+"VisibilityState"])return"";w=Y7+"visibilitychange"}return w}; XwN=function(w){g.X.call(this);var D=this;this.Th=w;this.MH=0;this.Y=this.V=this.W=!1;this.D=0;this.P_=this.Th.X();this.videoData=this.Th.getVideoData();this.L=g.A3(this.P_.experiments,"html5_delayed_retry_count");this.T=new g.ui(function(){D.Th.ZJ()},g.A3(this.P_.experiments,"html5_delayed_retry_delay_ms")); g.T(this,this.T)}; JHR=function(w,D,M){var L=w.videoData.V,Z=w.videoData.D,k=w.P_.C("html5_disable_codec_fallback_for_drm")&&w.videoData.Ms();nL(w.Th.getVideoData())&&w.P_.C("html5_gapless_fallback_on_qoe_restart")&&zfG(w.Th,"pe");if((D==="progressive.net.retryexhausted"||D==="fmt.unplayable"||D==="fmt.decode")&&!w.Th.ZK.W&&L&&L.itag==="22")return w.Th.ZK.W=!0,w.ZX("qoe.restart",{reason:"fmt.unplayable.22"}),w.Th.Bs(),!0;var b=!1;if(w.videoData.isExternallyHostedPodcast){if(b=w.videoData.ulJ)M.mimeType=b.type,w.H_("3pp", {url:b.url});M.ns="3pp";w.Th.Pd(D,1,"VIDEO_UNAVAILABLE",pH((new g.W_(D,M,1)).details));return!0}var C=w.MH+3E4<(0,g.IC)()||w.T.isActive();if(w.P_.C("html5_empty_src")&&w.videoData.isAd()&&D==="fmt.unplayable"&&/Empty src/.test(""+M.msg))return M.origin="emptysrc",w.ZX("auth",M),!0;C||ToG(w.Th.vx())||(M.nonfg="paused",C=!0,w.Th.pauseVideo());(D==="fmt.decode"||D==="fmt.unplayable")&&(Z==null?0:Qd(Z)||JF(Z))&&(kvl(w.P_.W,Z.RJ),M.acfallexp=Z.RJ,b=C=!0);!C&&w.L>0&&(w.T.start(),C=!0,M.delayed="1",--w.L); Z=w.Th.loader;C||!((L==null?0:Sl(L))||(L==null?0:Xt(L)))||k||(kvl(w.P_.W,L.RJ),b=C=!0,M.cfallexp=L.RJ);if(!C)return ufl(w,M);k=!1;w.W?w.MH=(0,g.IC)():k=w.W=!0;C=w.videoData;if(C.bW){C=C.bW.Vk();var l=Date.now()/1E3+1800;C=C6048E5&&OUK(w,"signature");return!1}; OUK=function(w,D){try{D={detail:"pr."+D},g.II(w.P_)&&w.P_.C("html5_reload_by_kabuki_app")?w.Th.Pd("qoe.restart",1,void 0,pH(D),"7"):(w.ZX("qoe.restart",D),window.location.reload())}catch(M){}}; mEJ=function(w,D){var M=w.P_.W;M.G=!1;M.V=!0;w.ZX("qoe.restart",{e:D===void 0?"fmt.noneavailable":D,detail:"hdr"});w.Th.ZJ(!0)}; AHC=function(w,D,M,L,Z,k){this.videoData=w;this.T=D;this.reason=M;this.V=L;this.token=Z;this.videoId=k}; im=function(w,D,M){this.mE=w;this.T5=D;this.Th=M;this.U=this.Y=this.T=this.D=this.G=this.V=0;this.W=!1;this.B=g.A3(this.mE.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.L=new Map}; wpa=function(w,D,M){!w.mE.C("html5_tv_ignore_capable_constraint")&&g.hL(w.mE)&&(M=M.compose(w.AU(D)));return M}; D6S=function(w){if(w.Th.vx().isInline())return $i;var D;w.C("html5_exponential_memory_for_sticky")?D=Pd(w.mE.Wd,"sticky-lifetime")<.5?"auto":nA[t$()]:D=nA[t$()];return g.gf("auto",D,!1,"s")}; LsK=function(w,D){var M,L=Mta(w,(M=D.T)==null?void 0:M.videoInfos);M=w.Th.getPlaybackRate();return M>1&&L?(w=DJJ(w.mE.W,D.T.videoInfos,M),new j_(0,w,!0,"o")):new j_(0,0,!1,"o")}; Mta=function(w,D){return D&&g.hL(w.mE)?D.some(function(M){return M.video.fps>32}):!1}; Z4S=function(w,D){if(w.C("html5_disable_ustreamer_constraint_for_sabr")&&ay(D.videoData))return $i;var M=w.Th.tv();w.C("html5_use_video_quality_cap_for_ustreamer_constraint")&&M&&M.jl>0&&oh(D.videoData.Kk)&&(w=M.jl,D.videoData.Kk=new j_(0,w,!1,"u"));return D.videoData.Kk}; kzG=function(w,D){var M;a:if((M=D.T)&&M.videoInfos.length){for(var L=g.x(M.videoInfos),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var k=void 0;if((k=Z.V)==null?0:k.smooth){M=Z.video.qualityOrdinal;break a}}M=M.videoInfos[0].video.qualityOrdinal}else M=0;$7k()&&!g.hL(w.mE)&&Xt(D.T.videoInfos[0])&&(M=Math.min(M,g.c_.large));L=g.A3(w.mE.experiments,"html5_chipset_soft_cap");L>0&&(M=Math.min(M,L));if(L=g.A3(w.mE.experiments,"html5_max_vertical_resolution")){Z=4320;for(k=0;kL&&(Z=Math.min(Z,b.video.qualityOrdinal))}if(Z<4320){for(b=k=0;b32){Z=!0;break a}}Z=!1}Z&&(M=Math.min(M,L));(L=g.A3(w.mE.experiments,"html5_live_quality_cap"))&&D.videoData.isLivePlayback&&(M=Math.min(M,L));M=b4I(w,D,M);w=g.A3(w.mE.experiments,"html5_byterate_soft_cap");return new j_(0,M===4320?0:M,!1,"d",w)}; CkS=function(w){var D,M,L,Z;return g.B(function(k){switch(k.T){case 1:return w.T.T&&typeof((D=navigator.mediaCapabilities)==null?void 0:D.decodingInfo)==="function"?g.c(k,Promise.resolve(),2):k.return(Promise.resolve());case 2:M=g.x(w.T.videoInfos),L=M.next();case 3:if(L.done){k.KV(0);break}Z=L.value;return g.c(k,agx(Z),4);case 4:L=M.next(),k.KV(3)}})}; EeG=function(w,D){if(!D.videoData.V||w.C("html5_disable_performance_downgrade"))return!1;Date.now()-w.G>6E4&&(w.V=0);w.V++;w.G=Date.now();if(w.V!==4)return!1;ldK(w,D.videoData.V);return!0}; WsC=function(w,D,M,L){if(!D||!M||!D.videoData.V)return!1;var Z=g.A3(w.mE.experiments,"html5_df_downgrade_thresh"),k=w.C("html5_log_media_perf_info");if(!((0,g.IC)()-w.D<5E3?0:k||Z>0))return!1;var b=((0,g.IC)()-w.D)/1E3;w.D=(0,g.IC)();M=M.getVideoPlaybackQuality();if(!M)return!1;var C=M.droppedVideoFrames-w.Y,l=M.totalVideoFrames-w.U;w.Y=M.droppedVideoFrames;w.U=M.totalVideoFrames;var E=M.displayCompositedVideoFrames===0?0:M.displayCompositedVideoFrames||-1;k&&w.mE.gW()&&w.Th.H_("ddf",{dr:M.droppedVideoFrames, de:M.totalVideoFrames,comp:E});if(L)return w.T=0,!1;if((l-C)/b>w.B||!Z||g.hL(w.mE))return!1;w.T=(l>60?C/l:0)>Z?w.T+1:0;if(w.T!==3)return!1;ldK(w,D.videoData.V);w.Th.H_("dfd",Object.assign({dr:M.droppedVideoFrames,de:M.totalVideoFrames},ppC()));return!0}; ldK=function(w,D){var M=D.RJ,L=D.video.fps,Z=D.video.qualityOrdinal-1,k=w.L;D=""+M+(L>49?"p60":L>32?"p48":"");M=Ac(M,L,k);Z>0&&(M=Math.min(M,Z));if(!yo.has(D)&&df().includes(D)){var b=M;M=ih();+M[D]>0&&(b=Math.min(+M[D],b));M[D]!==b&&(M[D]=b,g.gQ("yt-player-performance-cap",M,2592E3))}else if(yo.has(D)||k==null){a:{b=b===void 0?!0:b;L=df().slice();if(b){if(L.includes(D))break a;L.push(D)}else{if(!L.includes(D))break a;L.splice(L.indexOf(D),1)}g.gQ("yt-player-performance-cap-active-set",L,2592E3)}mk.set(D, M)}else yo.add(D),k==null||k.set(D,M);w.Th.J3()}; hGJ=function(w,D){if(!D.T.T)return w.W?new j_(0,360,!1,"b"):$i;for(var M=!1,L=!1,Z=g.x(D.T.videoInfos),k=Z.next();!k.done;k=Z.next())Sl(k.value)?M=!0:L=!0;M=M&&L;L=0;Z=g.A3(w.mE.experiments,"html5_performance_cap_floor");Z=w.mE.V?240:Z;D=g.x(D.T.videoInfos);for(k=D.next();!k.done;k=D.next()){var b=k.value;if(!M||!Sl(b))if(k=Ac(b.RJ,b.video.fps,w.L),b=b.video.qualityOrdinal,Math.max(k,Z)>=b){L=b;break}}return new j_(0,L,!1,"b")}; ttJ=function(w,D){var M=w.Th.vx();return M.isInline()&&!D.TJ?new j_(0,480,!1,"v"):ay(D)?$i:M.isBackground()&&iG()/1E3>60&&!g.hL(w.mE)?new j_(0,360,!1,"v"):$i}; $6K=function(w,D,M){if(w.mE.experiments.ek("html5_disable_client_autonav_cap_for_onesie")&&D.fetchType==="onesie"||g.hL(w.mE)&&(t$(-1)>=1080||D.osid))return $i;var L=g.A3(w.mE.experiments,"html5_autonav_quality_cap"),Z=g.A3(w.mE.experiments,"html5_autonav_cap_idle_secs");return L&&D.isAutonav&&iG()/1E3>Z?(M&&(L=b4I(w,M,L)),new j_(0,L,!1,"e")):$i}; b4I=function(w,D,M){if(w.C("html5_optimality_defaults_chooses_next_higher")&&M)for(w=D.T.videoInfos,D=1;D=0||(w.provider.Th.getVisibilityState()===3?w.W=!0:(w.T=g.AR(w.provider),w.delay.start()))}; yDI=function(w){if(!(w.V<0)){var D=g.AR(w.provider),M=D-w.D;w.D=D;w.playerState.state===8?w.playTimeSecs+=M:w.playerState.isBuffering()&&!g.z(w.playerState,16)&&(w.rebufferTimeSecs+=M)}}; Idx=function(w){var D;switch((D=w.mE.playerCanaryStage)==null?void 0:D.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"}}; U6T=function(w){this.provider=w;this.G=!1;this.T=0;this.D=-1;this.KW=NaN;this.L=0;this.segments=[];this.Y=this.W=0;this.previouslyEnded=!1;this.B=this.provider.Th.getVolume();this.U=this.provider.Th.isMuted()?1:0;this.V=U7(this.provider)}; xL=function(w){w.V.startTime=w.L;w.V.endTime=w.T;var D=!1;w.segments.length&&g.$B(w.segments).isEmpty()?(w.segments[w.segments.length-1].previouslyEnded&&(w.V.previouslyEnded=!0),w.segments[w.segments.length-1]=w.V,D=!0):w.segments.length&&w.V.isEmpty()||(w.segments.push(w.V),D=!0);D?w.V.endTime===0&&(w.previouslyEnded=!1):w.V.previouslyEnded&&(w.previouslyEnded=!0);w.W+=w.T-w.L;w.V=U7(w.provider);w.V.previouslyEnded=w.previouslyEnded;w.previouslyEnded=!1;w.L=w.T}; NMN=function(w){x6J(w);w.Y=g.lU(function(){w.update()},100); w.KW=g.AR(w.provider);w.V=U7(w.provider)}; x6J=function(w){g.p7(w.Y);w.Y=NaN}; H4I=function(w,D,M){M-=w.KW;return D===w.T&&M>.5}; j$S=function(w,D,M,L){this.mE=D;this.NC=M;this.segments=[];this.experimentIds=[];this.bW=this.GU=this.isFinal=this.delayThresholdMet=this.oO=this.Is=this.autoplay=this.autonav=!1;this.wW="yt";this.Y=[];this.G=this.B=null;this.sendVisitorIdHeader=this.Nd=!1;this.U=this.pageId="";this.W=M==="watchtime";this.L=M==="playback";this.c_=M==="atr";this.BI=M==="engage";this.sendVisitorIdHeader=!1;this.uri=this.c_?"/api/stats/"+M:"//"+D.YV+"/api/stats/"+M;L&&(this.GU=L.fs,L.rtn&&(this.G=L.rtn),this.W?(this.playerState= L.state,L.rti>0&&(this.B=L.rti)):(this.X6=L.mos,this.M5=L.volume,L.at&&(this.adType=L.at)),L.autonav&&(this.autonav=L.autonav),L.inview!=null&&(this.FQ=L.inview),L.size&&(this.HA=L.size),L.playerwidth&&(this.Wd=L.playerwidth),L.playerheight&&(this.yF=L.playerheight));this.FK=g.$O(D.T);this.U=U2(D.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.U==="all"||this.U==="once")this.Sb=g.$O(D.oO);this.wz=D.wW;this.experimentIds=O5I(D.experiments);this.XE=D.UV;this.wW=D.y7;this.region=D.region; this.userAge=D.userAge;this.pV=D.oT;this.uj=iG();this.sendVisitorIdHeader=D.sendVisitorIdHeader;this.W_=D.C("vss_pings_using_networkless")||D.C("kevlar_woffle");this.kP=D.C("vss_final_ping_send_and_write");this.fV=D.C("vss_use_send_and_write");this.pageId=D.pageId;this.QF=D.C("vss_playback_use_send_and_write");D.livingRoomAppMode&&(this.livingRoomAppMode=D.livingRoomAppMode);this.Nr=D.D&&D.C("embeds_append_synth_ch_headers");g.w0(D)&&(this.Md=D.c_);g.Le(g.lw(D))&&this.Y.push(1);this.accessToken=g.E9(w); w.td[this.NC]?this.D=w.td[this.NC]:w.td.playback&&(this.D=w.td.playback);this.adFormat=w.adFormat;this.adQueryId=w.adQueryId;this.autoplay=OOI(w);this.L&&(this.Is=w.kO&&bR(w)==="adunit"?!0:!1);this.autonav=w.isAutonav||this.autonav;this.contentVideoId=CZ(w);this.clientPlaybackNonce=w.clientPlaybackNonce;this.oO=w.yZ;w.Y&&(this.V7=w.Y,this.TU=w.nm);w.mdxEnvironment&&(this.mdxEnvironment=w.mdxEnvironment);this.T=w.FK;this.mu=w.mu;w.V&&(this.UV=w.V.itag,w.D&&w.D.itag!==this.UV&&(this.iW=w.D.itag));w.T&& vO(w.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=bR(w);this.bW=w.QF?!1:w.M5;this.k6=w.Up;if(D=zB(w))this.oC=D;this.TC=w.TW;this.partnerId=w.partnerId;this.eventId=w.eventId;this.playlistId=w.Y1||w.playlistId;this.yC=w.yC;this.KP=w.KP;this.O1=w.O1;this.QW=w.QW;this.subscribed=w.subscribed;this.videoId=w.videoId;this.videoMetadata=w.videoMetadata;this.visitorData=w.visitorData;this.osid=w.osid;this.pw=w.pw;this.referrer=w.referrer;this.Jd=w.pQ||w.Jd;this.EL=w.rF;this.w6=w.w6;this.userGenderAge= w.userGenderAge;this.Hw=w.Hw;this.embedsRct=w.embedsRct;this.embedsRctn=w.embedsRctn;g.w0(this.mE)&&w.mutedAutoplay&&(w.mutedAutoplayDurationMode===2&&w.limitedPlaybackDurationInSeconds===0&&w.endSeconds===0?this.Y.push(7):this.Y.push(2));w.isEmbedsShortsMode(new g.Jv(this.Wd,this.yF),!!this.playlistId)&&this.Y.push(3);g.xs(w)&&this.Y.push(4);this.jk=w.h7;w.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=w.compositeLiveIngestionOffsetToken)}; geK=function(w,D){var M=w.sendVisitorIdHeader?w.visitorData:void 0;return g.GA(w.mE,w.accessToken).then(function(L){return xyT(w.uri,w.mE,w.pageId,M,L,D,w.Nr)})}; neC=function(w,D){return function(){w.mE.C("html5_simplify_pings")?(w.T=w.Jc,w.Qi=D(),w.uj=0,w.send()):geK(w).then(function(M){var L=RGN(w);L.cmt=L.len;L.lact="0";var Z=D().toFixed(3);L.rt=Number(Z).toString();L=g.dh(w.uri,L);w.mE.C("vss_through_gel_double")&&oeI(L);w.W_?(M==null&&(M={}),w.fV?eB().sendAndWrite(L,M):eB().sendThenWrite(L,M)):M?g.y8(L,M):g.FV(L)})}}; RGN=function(w){var D={ns:w.wW,el:w.eventLabel,cpn:w.clientPlaybackNonce,ver:2,cmt:w.V(w.T),fmt:w.UV,fs:w.GU?"1":"0",rt:w.V(w.Qi),adformat:w.adFormat,content_v:w.contentVideoId,euri:w.wz,lact:w.uj,live:w.oC,cl:(797107798).toString(),mos:w.X6,state:w.playerState,volume:w.M5};w.subscribed&&(D.subscribed="1");Object.assign(D,w.FK);w.U==="all"?Object.assign(D,w.Sb):w.U==="once"&&w.L&&Object.assign(D,w.Sb);w.autoplay&&(D.autoplay="1");w.Is&&(D.sautoplay="1");w.oO&&(D.dni="1");!w.W&&w.Md&&(D.epm=FsK[w.Md]); w.isFinal&&(D["final"]="1");w.bW&&(D.splay="1");w.mu&&(D.delay=w.mu);w.XE&&(D.hl=w.XE);w.region&&(D.cr=w.region);w.userGenderAge&&(D.uga=w.userGenderAge);w.userAge!==void 0&&w.pV&&(D.uga=w.pV+w.userAge);w.Jc!==void 0&&(D.len=w.V(w.Jc));!w.W&&w.experimentIds.length>0&&(D.fexp=w.experimentIds.toString());w.G!==null&&(D.rtn=w.V(w.G));w.Jd&&(D.feature=w.Jd);w.KP&&(D.ctrl=w.KP);w.O1&&(D.ytr=w.O1);w.iW&&(D.afmt=w.iW);w.offlineDownloadUserChoice&&(D.ODUC=w.offlineDownloadUserChoice);w.y7&&(D.lio=w.V(w.y7)); w.W?(D.idpj=w.k6,D.ldpj=w.TC,w.delayThresholdMet&&(D.dtm="1"),w.B!=null&&(D.rti=w.V(w.B)),w.Hw&&(D.ald=w.Hw),w.compositeLiveIngestionOffsetToken&&(D.clio=w.compositeLiveIngestionOffsetToken)):w.adType!==void 0&&(D.at=w.adType);w.HA&&(w.L||w.W)&&(D.size=w.HA);w.L&&w.Y.length&&(D.pbstyle=w.Y.join(","));w.FQ!=null&&(w.L||w.W)&&(D.inview=w.V(w.FQ));w.W&&(D.volume=NE(w,g.yR(w.segments,function(L){return L.volume})),D.st=NE(w,g.yR(w.segments,function(L){return L.startTime})),D.et=NE(w,g.yR(w.segments,function(L){return L.endTime})), uX(w.segments,function(L){return L.playbackRate!==1})&&(D.rate=NE(w,g.yR(w.segments,function(L){return L.playbackRate}))),uX(w.segments,function(L){return L.T!=="-"})&&(D.als=g.yR(w.segments,function(L){return L.T}).join(",")),uX(w.segments,function(L){return L.previouslyEnded})&&(D.pe=g.yR(w.segments,function(L){return""+ +L.previouslyEnded}).join(","))); D.muted=NE(w,g.yR(w.segments,function(L){return L.muted?1:0})); uX(w.segments,function(L){return L.visibilityState!==0})&&(D.vis=NE(w,g.yR(w.segments,function(L){return L.visibilityState}))); uX(w.segments,function(L){return L.connectionType!==0})&&(D.conn=NE(w,g.yR(w.segments,function(L){return L.connectionType}))); uX(w.segments,function(L){return L.V!==0})&&(D.blo=NE(w,g.yR(w.segments,function(L){return L.V}))); uX(w.segments,function(L){return!!L.L})&&(D.blo=g.yR(w.segments,function(L){return L.L}).join(",")); uX(w.segments,function(L){return!!L.compositeLiveStatusToken})&&(D.cbs=g.yR(w.segments,function(L){return L.compositeLiveStatusToken}).join(",")); uX(w.segments,function(L){return L.D!=="-"})&&(D.cc=g.yR(w.segments,function(L){return L.D}).join(",")); uX(w.segments,function(L){return L.clipId!=="-"})&&(D.clipid=g.yR(w.segments,function(L){return L.clipId}).join(",")); if(uX(w.segments,function(L){return!!L.audioId})){var M="au"; w.L&&(M="au_d");D[M]=g.yR(w.segments,function(L){return L.audioId}).join(",")}DV()&&w.V7&&(D.ctt=w.V7,D.cttype=w.TU,D.mdx_environment=w.mdxEnvironment); w.BI&&(D.etype=w.nV!==void 0?w.nV:0);w.EL&&(D.uoo=w.EL);w.livingRoomAppMode&&w.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(D.clram=GzK[w.livingRoomAppMode]||w.livingRoomAppMode);w.D?s$x(w,D):(D.docid=w.videoId,D.referrer=w.referrer,D.ei=w.eventId,D.of=w.pw,D.osid=w.osid,D.vm=w.videoMetadata,w.adQueryId&&(D.aqi=w.adQueryId),w.autonav&&(D.autonav="1"),w.playlistId&&(D.list=w.playlistId),w.QW&&(D.ssrt="1"),w.w6&&(D.upt=w.w6));w.L&&(w.embedsRct&&(D.rct=w.embedsRct),w.embedsRctn&&(D.rctn= w.embedsRctn),w.compositeLiveIngestionOffsetToken&&(D.clio=w.compositeLiveIngestionOffsetToken));w.jk&&(D.host_cpn=w.jk);return D}; s$x=function(w,D){if(D&&w.D){var M=new Set(["q","feature","mos"]),L=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),Z=new Set(["aqi","autonav","list","ssrt","upt"]);w.D.ns==="3pp"&&(D.ns="3pp");for(var k=g.x(Object.keys(w.D)),b=k.next();!b.done;b=k.next())b=b.value,L.has(b)||M.has(b)||Z.has(b)&&!w.D[b]||(D[b]=w.D[b])}}; NE=function(w,D){return g.yR(D,w.V).join(",")}; oeI=function(w){w.indexOf("watchtime")!==-1&&g.DD("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:w}})}; ada=function(w,D){w.attestationResponse&&geK(w).then(function(M){M=M||{};M.method="POST";M.postParams={atr:w.attestationResponse};w.W_?w.fV?eB().sendAndWrite(D,M):eB().sendThenWrite(D,M):g.y8(D,M)})}; Hw=function(w){g.X.call(this);this.provider=w;this.Y="paused";this.W=NaN;this.G=[10,10,10,40];this.B=this.U=0;this.V7=this.c_=this.nV=this.y7=this.L=!1;this.V=this.D=NaN;this.logger=new g.yI("vss");this.T=new U6T(w)}; q1N=function(w){if(!w.L){w.provider.videoData.zA===16623&&g.jn(Error("Playback for EmbedPage"));var D=jo(w,"playback");w.G=vek(w);NMN(w.T);D.G=go(w);w.V>0&&(D.T-=w.V);D.send();if(w.provider.videoData.z0){D=w.provider.mE;var M=w.provider.videoData,L={html5:"1",video_id:M.videoId,cpn:M.clientPlaybackNonce,ei:M.eventId,ptk:M.z0,oid:M.B2,ptchn:M.pM,pltype:M.AI,content_v:CZ(M)};M.Ao&&Object.assign(L,{m:M.Ao});D=g.dh(D.le+"ptracking",L);cDJ(w,D)}w.provider.videoData.mu||(BMr(w),fdK(w));w.L=!0;w=w.T;w.T= w.rd();w.KW=g.AR(w.provider);!(w.L===0&&w.T<5)&&w.T-w.L>2&&(w.L=w.T);w.G=!0}}; vek=function(w){var D=w.provider.videoData.Up,M=w.provider.videoData.TW,L=[10+D,10,10,40+M-D,40],Z,k=(Z=w.provider.videoData.getPlayerResponse())==null?void 0:Z.playbackTracking,b=k==null?void 0:k.videostatsScheduledFlushWalltimeSeconds;Z=k==null?void 0:k.videostatsDefaultFlushIntervalSeconds;if(!(b&&b.length>0&&Z))return w.logger.info("Missing valid scheduled pings config "+b+" "+Z),L;D=[b[0]+D].concat(g.tG(b.slice(1).map(function(C,l){return C-b[l]})),[Z+M-D, Z]);return D.some(function(C){return C<0})?(w.logger.T(347111855,"Neg vss scheduled pings "+b+" "+Z),L):D}; go=function(w,D){D=D===void 0?NaN:D;var M=g.AR(w.provider);D=isNaN(D)?M:D;D=Math.ceil(D);var L=w.G[w.U];w.U+11E3;!(k.length>1)&&k[0].isEmpty()||C||(b.G=go(w,Z));b.send();w.B++}},(Z-M)*1E3); return w.D=Z}; RO=function(w){g.EO(w.W);w.W=NaN}; rDr=function(w){w.T.update();w=w.T;w.segments.length&&w.T===w.L||xL(w);var D=w.segments;w.segments=[];return D}; jo=function(w,D){var M=XpK(w.provider);Object.assign(M,{state:w.Y});D=new j$S(w.provider.videoData,w.provider.mE,D,M);D.T=w.provider.Th.rd();M=w.provider.videoData.clientPlaybackNonce;D.T=w.provider.Th.DG(M);w.provider.videoData.isLivePlayback||(D.Jc=w.provider.Th.getDuration(M));w.provider.videoData.T&&(M=w.provider.videoData.T.mj(D.T))&&(D.y7=M-D.T,w.provider.mE.C("html5_disable_live_dvr_shrink_for_cdm_vss")&&sN(w.provider.videoData)&&(D.T+=w.provider.Th.jb(),D.y7-=w.provider.Th.jb()));D.Qi=g.AR(w.provider); D.segments=[U7(w.provider)];return D}; eGS=function(w,D){var M=jo(w,"watchtime");TMT(w)&&(M.delayThresholdMet=!0,w.nV=!0);if(w.V>0){for(var L=g.x(D),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.startTime-=w.V,Z.endTime-=w.V;M.T-=w.V}else M.T=w.T.T;M.segments=D;return M}; oO=function(w,D){var M=uaN(w,!isNaN(w.D));D&&(w.D=NaN);return M}; uaN=function(w,D){var M=eGS(w,rDr(w));!isNaN(w.D)&&D&&(M.B=w.D);return M}; TMT=function(w){var D;if(D=w.provider.videoData.isLoaded()&&w.provider.videoData.mu&&w.L&&!w.nV)D=w.T,D=D.W+D.rd()-D.L>=w.provider.videoData.mu;return!!D}; BMr=function(w){w.provider.videoData.youtubeRemarketingUrl&&!w.c_&&(cDJ(w,w.provider.videoData.youtubeRemarketingUrl),w.c_=!0)}; fdK=function(w){w.provider.videoData.googleRemarketingUrl&&!w.V7&&(cDJ(w,w.provider.videoData.googleRemarketingUrl),w.V7=!0)}; S1l=function(w){if(!w.xt()&&w.L){w.Y="paused";var D=oO(w);D.isFinal=!0;D.send();w.dispose()}}; Q$x=function(w,D){if(!w.xt())if(g.z(D.state,2)||g.z(D.state,512)){if(w.Y="paused",g.Y0(D,2)||g.Y0(D,512))g.Y0(D,2)&&(w.T.previouslyEnded=!0),w.L&&(RO(w),oO(w).send(),w.D=NaN)}else if(g.z(D.state,8)){w.Y="playing";var M=w.L&&isNaN(w.W)?go(w):NaN;if(!isNaN(M)&&(bQ(D,64)<0||bQ(D,512)<0)){var L=uaN(w,!1);L.G=M;L.send()}g.Y0(D,16)&&D.state.seekSource===58&&(w.T.previouslyEnded=!0)}else w.Y="paused"}; JDN=function(w,D,M){if(!w.y7){M||(M=jo(w,"atr"));M.attestationResponse=D;try{M.send()}catch(L){if(L.message!=="Unknown Error")throw L;}w.y7=!0}}; cDJ=function(w,D){var M=w.provider.mE;g.GA(w.provider.mE,g.E9(w.provider.videoData)).then(function(L){var Z=w.provider.mE.pageId,k=w.provider.mE.sendVisitorIdHeader?w.provider.videoData.visitorData:void 0,b=w.provider.mE.C("vss_pings_using_networkless")||w.provider.mE.C("kevlar_woffle"),C=w.provider.mE.C("allow_skip_networkless");L=xyT(D,M,Z,k,L);NZG(D,L,{token:w.provider.videoData.Y,Vp:w.provider.videoData.nm,mdxEnvironment:w.provider.videoData.mdxEnvironment},M,void 0,b&&!C,!1,!0)})}; zGr=function(){this.endTime=this.startTime=-1;this.D="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.V=0;this.compositeLiveStatusToken=this.L=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1}; nU=function(w,D,M){this.videoData=w;this.mE=D;this.Th=M;this.T=void 0}; g.AR=function(w){return Vtk(w)()}; Vtk=function(w){if(!w.T){var D=g.El(function(L){var Z=(0,g.IC)();L&&Z<=631152E6&&(w.Th.H_("ytnerror",{issue:28799967,value:""+Z}),Z=(new Date).getTime()+2);return Z},w.mE.C("html5_validate_yt_now")),M=D(); w.T=function(){return Math.round(D()-M)/1E3}; w.Th.Vz()}return w.T}; XpK=function(w){var D=w.Th.XZ()||{};D.fs=w.Th.DQ();D.volume=w.Th.getVolume();D.muted=w.Th.isMuted()?1:0;D.mos=D.muted;D.clipid=w.Th.Ol();var M;D.playerheight=((M=w.Th.getPlayerSize())==null?void 0:M.height)||0;var L;D.playerwidth=((L=w.Th.getPlayerSize())==null?void 0:L.width)||0;w=w.videoData;M={};w.V&&(M.fmt=w.V.itag,w.D&&(w.NC?w.D.itag!==w.V.itag:w.D.itag!=w.V.itag)&&(M.afmt=w.D.itag));M.ei=w.eventId;M.list=w.playlistId;M.cpn=w.clientPlaybackNonce;w.videoId&&(M.v=w.videoId);w.L7&&(M.infringe=1); (w.QF?0:w.M5)&&(M.splay=1);(L=zB(w))&&(M.live=L);w.kO&&(M.sautoplay=1);w.ou&&(M.autoplay=1);w.yC&&(M.sdetail=w.yC);w.partnerId&&(M.partnerid=w.partnerId);w.osid&&(M.osid=w.osid);w.zJ&&(M.cc=g.jGr(w.zJ));return Object.assign(D,M)}; vsj=function(w){var D=FPr();if(D)return PkT[D]||PkT.other;if(g.hL(w.mE)){w=navigator.userAgent;if(/[Ww]ireless[)]/.test(w))return 3;if(/[Ww]ired[)]/.test(w))return 30}return 0}; U7=function(w){var D=new zGr,M;D.D=((M=XpK(w).cc)==null?void 0:M.toString())||"-";D.playbackRate=w.Th.getPlaybackRate();M=w.Th.getVisibilityState();M!==0&&(D.visibilityState=M);w.mE.EL&&(D.V=1);D.L=w.videoData.UQ;D.compositeLiveStatusToken=w.videoData.compositeLiveStatusToken;M=w.Th.getAudioTrack();M.dW&&M.dW.id&&M.dW.id!=="und"&&(D.audioId=M.dW.id);D.connectionType=vsj(w);D.volume=w.Th.getVolume();D.muted=w.Th.isMuted();D.clipId=w.Th.Ol()||"-";D.T=w.videoData.v7||"-";return D}; g.Ff=function(w,D){g.X.call(this);var M=this;this.provider=w;this.L=new Map;this.uT=new g.FF;this.Bz={Db7:function(){return M.qoe}, r9E:function(){return M.T}, qR9:function(){return M.V}}; this.provider.videoData.q8()&&!this.provider.videoData.PX&&(this.T=new Hw(this.provider),this.T.V=0,g.T(this,this.T),this.qoe=new g.Kq(this.provider,D),g.T(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.zr=this.provider.videoData.clientPlaybackNonce)&&this.L.set(this.zr,this.T));if(w.mE.playerCanaryState==="canary"||w.mE.playerCanaryState==="holdback")this.V=new IO(this.provider),g.T(this,this.V)}; O4T=function(w){w.V&&d6R(w.V);w.qoe&&Qol(w.qoe)}; KsK=function(w){if(w.qoe){w=w.qoe;for(var D=w.provider.videoData,M=w.provider.mE,L=g.x(M.Q8),Z=L.next();!Z.done;Z=L.next())D3(w,Z.value);if(w.provider.C("html5_enable_qoe_cat_list"))for(L=g.x(D.YV),Z=L.next();!Z.done;Z=L.next())D3(w,Z.value);else D.Q8&&D3(w,w.provider.videoData.Q8);D.Yl()&&(L=D.T,qQ(D)&&D3(w,"manifestless"),L&&QI(L)&&D3(w,"live-segment-"+QI(L).toFixed(1)));ay(D)?D3(w,"sabr"):w.Ck(X9(D));if(pZ(D)||D.rH())D.rH()&&D3(w,"ssa"),D3(w,"lifa");sN(D)&&D3(w,"cdm");D.gatewayExperimentGroup&& (L=D.gatewayExperimentGroup,L==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?L="spkadtrt":L==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(L="spkadctrl"),D3(w,L));M.y7!=="yt"&&w.T.set("len",[D.lengthSeconds.toFixed(2)]);D.cotn&&!tW(D)&&w.QR(!0);M.gW()&&(D=G3T())&&w.H_("cblt",{m:D});if(M.C("html5_log_screen_diagonal")){M=w.H_;var k;D=((k=window.H5vccScreen)==null?0:k.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;M.call(w,"cbltdiag",{v:D})}}}; m6J=function(w,D){w.T&&(w=w.T,D===58?w.T.update():w.L&&(RO(w),oO(w).send(),w.D=NaN))}; ADT=function(w,D){if(g.Y0(D,1024)||g.Y0(D,512)||g.Y0(D,4)){if(w.V){var M=w.V;M.V>=0||(M.T=-1,M.delay.stop())}w.qoe&&(M=w.qoe,M.G||(M.L=-1))}if(w.provider.videoData.enableServerStitchedDai&&w.zr){var L;(L=w.L.get(w.zr))==null||Q$x(L,D)}else w.T&&Q$x(w.T,D);if(w.qoe){L=w.qoe;M=D.state;var Z=g.AR(L.provider),k=L.getPlayerState(M),b=M.seekSource||void 0;if(k!==L.uT){L.nV||Z= 10&&L.playTimeSecs<=180&&(L.T.set("qoealert",["1"]),L.mu=!0)),k!=="B"||L.uT!=="PL"&&L.uT!=="PB"||(L.isBuffering=!0),L.V=Z);L.uT==="PL"&&(k==="B"||k==="S")||L.provider.mE.gW()?wo(L,Z):(L.TU||k!=="PL"||(L.TU=!0,cWj(L,Z,L.provider.Th.qS())),a_j(L,Z));k==="PL"&&g.S3(L.Qi);var C=[k];k==="S"&&b&&C.push("ss."+b);g.OE(L,Z,"vps",C);L.uT=k;L.y7=Z;L.V=Z;L.D=!0}k=M.QL;g.z(M,128)&&k&&(k.B8=k.B8||"",eWJ(L,Z,k.errorCode,k.mq,k.B8));(g.z(M,2)||g.z(M,128))&&L.reportStats(Z);M.isPlaying()&&!L.G&&(L.L>=0&&L.T.set("user_intent", [L.L.toString()]),L.G=!0);q9a(L)}w.V&&(w=w.V,yDI(w),w.playerState=D.state,w.V>=0&&g.Y0(D,16)&&w.seekCount++,D.state.isError()&&w.send())}; wVr=function(w){w.V&&w.V.send();if(w.qoe){var D=w.qoe;if(D.D){D.uT==="PL"&&(D.uT="N");var M=g.AR(D.provider);g.OE(D,M,"vps",[D.uT]);D.G||(D.L>=0&&D.T.set("user_intent",[D.L.toString()]),D.G=!0);D.provider.mE.gW()&&D.H_("finalized",{});D.W_=!0;D.reportStats(M)}}if(w.provider.videoData.enableServerStitchedDai)for(D=g.x(w.L.values()),M=D.next();!M.done;M=D.next())S1l(M.value);else w.T&&S1l(w.T);w.dispose()}; Drr=function(w,D,M){switch(D){case "M":var L;(L=w.qoe)==null||JWk(L,D,M);break;case "A":var Z;(Z=w.qoe)==null||JWk(Z,D)}}; MsT=function(w,D){w.T&&JDN(w.T,D)}; LbJ=function(w){if(!w.T)return null;var D=jo(w.T,"atr");return function(M){w.T&&JDN(w.T,M,D)}}; ZTN=function(w,D,M,L){M.adFormat=M.Nr;var Z=D.Th;D=new Hw(new nU(M,D.mE,{getDuration:function(){return M.lengthSeconds}, getCurrentTime:function(){return Z.getCurrentTime()}, rd:function(){return Z.rd()}, DG:function(){return Z.DG()}, qS:function(){return Z.qS()}, getPlayerSize:function(){return Z.getPlayerSize()}, getAudioTrack:function(){return M.getAudioTrack()}, getPlaybackRate:function(){return Z.getPlaybackRate()}, Bo:function(){return Z.Bo()}, getVisibilityState:function(){return Z.getVisibilityState()}, nJ:function(){return Z.nJ()}, XZ:function(){return Z.XZ()}, getVolume:function(){return Z.getVolume()}, isMuted:function(){return Z.isMuted()}, DQ:function(){return Z.DQ()}, Ol:function(){return Z.Ol()}, getProximaLatencyPreference:function(){return Z.getProximaLatencyPreference()}, Vz:function(){Z.Vz()}, H_:function(k,b){Z.H_(k,b)}, Tx:function(){return Z.Tx()}, jb:function(){return Z.jb()}})); D.V=L;g.T(w,D);return D}; kWa=function(){this.Yb=0;this.D=this.L=this.Kh=this.A9=this.V=NaN;this.T={};this.bandwidthEstimate=NaN}; bTJ=function(){this.T=g.Sp;this.array=[]}; CDR=function(w,D,M){var L=[];for(D=Yca(w,D);DM)break}return L}; Gt=function(w,D){var M=[];w=g.x(w.array);for(var L=w.next();!L.done&&!(L=L.value,L.contains(D)&&M.push(L),L.start>D);L=w.next());return M}; llR=function(w){return w.array.slice(Yca(w,0x7ffffffffffff),w.array.length)}; Yca=function(w,D){w=ur(w.array,function(M){return D-M.start||1}); return w<0?-(w+1):w}; EXK=function(w,D){var M=NaN;w=g.x(w.array);for(var L=w.next();!L.done;L=w.next())if(L=L.value,L.contains(D)&&(isNaN(M)||L.endD&&(isNaN(M)||L.startw.mediaTime+w.W&&D1)w.D=!0;if((Z===void 0?0:Z)||isNaN(w.V))w.V=D;if(w.T)D!==w.mediaTime&&(w.T=!1);else if(D>0&&w.mediaTime===D){Z=1500;if(w.mE.C("html5_buffer_underrun_transition_fix")){Z=g.A3(w.mE.experiments,"html5_min_playback_advance_for_steady_state_secs");var k=g.A3(w.mE.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");Z=Z>0&&k>0&&Math.abs(D-w.V)(L||!w.D?Z:400)}w.mediaTime=D;w.L=M;return!1}; UrJ=function(w,D){this.videoData=w;this.T=D}; xrI=function(w,D,M){return D.n0(M).then(function(){return gz(new UrJ(D,D.L))},function(L){L instanceof Error&&g.jn(L); var Z=iM('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),k=yd('audio/mp4; codecs="mp4a.40.2"'),b=Z||k,C=D.isLivePlayback&&!g.Hd(w.W,!0);L="fmt.noneavailable";C?L="html5.unsupportedlive":b||(L="html5.missingapi");b=C||!b?2:1;Z={buildRej:"1",a:D.TO(),d:!!D.wW,drm:D.Ms(),f18:D.X6.indexOf("itag=18")>=0,c18:Z};D.T&&(D.Ms()?(Z.f142=!!D.T.T["142"],Z.f149=!!D.T.T["149"],Z.f279=!!D.T.T["279"]):(Z.f133=!!D.T.T["133"],Z.f140=!!D.T.T["140"],Z.f242=!!D.T.T["242"]),Z.cAAC=k,Z.cAVC=yd('video/mp4; codecs="avc1.42001E"'), Z.cVP9=yd('video/webm; codecs="vp9"'));D.W&&(Z.drmsys=D.W.keySystem,k=0,D.W.T&&(k=Object.keys(D.W.T).length),Z.drmst=k);return new g.W_(L,Z,b)})}; vw=function(w){this.data=window.Float32Array?new Float32Array(w):Array(w);this.V=this.T=w-1}; NSl=function(w){return w.data[w.T]||0}; HTr=function(w){this.W=w;this.L=this.V=0;this.D=new vw(50)}; Bw=function(w,D,M){g.mI.call(this);this.videoData=w;this.experiments=D;this.W=M;this.V=[];this.FG=0;this.L=!0;this.D=!1;this.Y=0;M=new jZj;w.latencyClass==="ULTRALOW"&&(M.U=!1);w.pV?M.L=3:g.mm(w)&&(M.L=2);w.latencyClass==="NORMAL"&&(M.W=!0);M.y7=ay(w)&&D.ek("html5_refactor_decouple_liveness");g.A3(D,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.A3(D,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||w.latencyClass!=="LOW"&&w.latencyClass!=="ULTRALOW"||(M.W=!0);var L= g.A3(D,"html5_liveness_drift_proxima_override");if(X9(w)!==0&&L){M.T=L;var Z;((Z=w.T)==null?0:l0K(Z))&&M.T--}ay(w)&&D.ek("html5_sabr_parse_live_metadata_playback_boundaries")&&(M.V7=!0);if(g.Bo("trident/")||g.Bo("edge/"))Z=g.A3(D,"html5_platform_minimum_readahead_seconds")||3,M.D=Math.max(M.D,Z);g.A3(D,"html5_minimum_readahead_seconds")&&(M.D=g.A3(D,"html5_minimum_readahead_seconds"));g.A3(D,"html5_maximum_readahead_seconds")&&(M.B=g.A3(D,"html5_maximum_readahead_seconds"));if(Z=g.A3(D,"html5_liveness_drift_chunk_override"))M.T= Z;rb(w)&&(M.T=(M.T+1)/5,w.latencyClass==="LOW"&&(M.T*=2));!ay(w)||w.latencyClass!=="ULTRALOW"&&w.latencyClass!=="LOW"||(M.G=g.A3(D,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,M.Y=g.A3(D,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=M;this.G=this.policy.L!==1;this.T=cw(this,gXN(this,isNaN(w.liveChunkReadahead)?3:w.liveChunkReadahead,w))}; RcG=function(w,D){if(D)return D=w.videoData,D=gXN(w,isNaN(D.liveChunkReadahead)?3:D.liveChunkReadahead,D),cw(w,D);if(w.V.length){if(Math.min.apply(null,w.V)>1)return cw(w,w.T-1);if(w.policy.U)return cw(w,w.T+1)}return w.T}; oXK=function(w,D){if(!w.V.length)return!1;var M=w.T;w.T=RcG(w,D===void 0?!1:D);if(D=M!==w.T)w.V=[],w.FG=0;return D}; qE=function(w,D){return D>=w.vy()-fU(w)}; nXT=function(w,D,M){D=qE(w,D);M||D?D&&(w.L=!0):w.L=!1;w.G=w.policy.L===2||w.policy.L===3&&w.L}; FbK=function(w,D){D=qE(w,D);w.D!==D&&w.publish("livestatusshift",D);w.D=D}; fU=function(w){var D=w.policy.T;w.D||(D=Math.max(D-1,0));return D*ro(w)}; gXN=function(w,D,M){M.pV&&D--;rb(M)&&(D=1);if(X9(M)!==0&&(w=g.A3(w.experiments,"html5_live_chunk_readahead_proxima_override"))){D=w;var L;((L=M.T)==null?0:l0K(L))&&D++}return D}; ro=function(w){return w.videoData.T?QI(w.videoData.T)||5:5}; cw=function(w,D){D=Math.max(Math.max(1,Math.ceil(w.policy.D/ro(w))),D);return Math.min(Math.min(8,Math.floor(w.policy.B/ro(w))),D)}; jZj=function(){this.D=0;this.B=Infinity;this.U=!0;this.V=this.T=2;this.L=1;this.W=!1;this.Y=10;this.V7=!1;this.G=1;this.y7=!1}; Tt=function(w){g.X.call(this);this.Th=w;this.T=0;this.V=null;this.Y=this.D=0;this.L={};this.mE=this.Th.X();this.W=new g.ui(this.Ju,1E3,this);this.bW=eo(this,"html5_seek_timeout_delay_ms");this.nV=eo(this,"html5_long_rebuffer_threshold_ms");this.Nd=eo(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.fV=eo(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.Md=eo(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.oO=eo(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.y7=eo(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.V7=new Xf(2E4);this.Jc=eo(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.XE=eo(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.jk=eo(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.W_=eo(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.U=eo(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.B=eo(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.EL=eo(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.pV=eo(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.G=eo(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.iW=new Xf(g.A3(this.mE.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.mE.C("html5_report_slow_ads_as_error"));this.mu=new Xf(g.A3(this.mE.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.mE.C("html5_skip_slow_buffering_ad"));this.TU=eo(this,"html5_slow_start_timeout_delay_ms");this.c_=eo(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.T(this,this.W)}; eo=function(w,D,M){M=M===void 0?null:M;var L=L===void 0?0:L;return new Xf(g.A3(w.mE.experiments,D)||L,M?w.mE.C(M):!1)}; GWK=function(w,D){w.T=D}; um=function(w,D,M,L,Z,k,b,C){D?D.test(M)?(w.ZX(Z,D,b),D.Y||k()):(!D.V||D.D?M=!1:(M=(0,g.IC)(),L?D.T||(D.T=M):D.T=0,k=!L&&M-D.V>3E4,M=D.T&&M-D.T>1E3||k?D.D=!0:!1),M&&(C=Object.assign({},w.qC(D),C),C.wn=b,C.we=Z,C.wsuc=L,w.Th.H_("workaroundReport",C),L&&(D.reset(),w.L[Z]=!1))):w.Th.Pd("auth",2,"BROWSER_OR_EXTENSION_ERROR",pH({source:"watchdog",name:b}))}; Xf=function(w,D){this.Y=D===void 0?!1:D;this.T=this.V=this.L=this.startTimestamp=0;this.D=!1;this.W=Math.ceil(w/1E3)}; cqS=function(w){g.X.call(this);var D=this;this.Th=w;this.U=this.T=this.loader=this.mediaElement=this.playbackData=null;this.L=0;this.W=this.nV=this.D=null;this.W_=!1;this.TU=0;this.V7=!1;this.timestampOffset=0;this.B=!0;this.XE=0;this.Nd=this.Sb=!1;this.G=0;this.pV=!1;this.c_=0;this.Bz={b3:function(M){return D.b3(M)}}; this.mE=this.Th.X();this.videoData=this.Th.getVideoData();this.policy=new sZS;this.y7=new Tt(this.Th);this.iW=this.jk=this.Md=this.Y=this.V=NaN;this.Jc=new g.ui(function(){alS(D,!1)},2E3); this.oO=new g.ui(function(){So(D)}); this.bW=new g.ui(function(){vXj(D,{})}); this.mu=NaN;this.fV=new g.ui(function(){var M=D.mE.Wd;M.T+=1E4/36E5;M.T-M.L>1/6&&(vwl(M),M.L=M.T);D.fV.start()},1E4); g.T(this,this.y7);g.T(this,this.Jc);g.T(this,this.bW);g.T(this,this.oO);g.T(this,this.fV)}; qcN=function(w,D){w.playbackData=D;w.videoData.isLivePlayback&&(w.U=new HTr(function(){a:{if(w.playbackData&&w.playbackData.T.T){if(qQ(w.videoData)&&w.loader){var L=w.loader.qv.Td()||0;break a}if(w.videoData.T){L=w.videoData.T.fV;break a}}L=0}return L}),w.T=new Bw(w.videoData,w.mE.experiments,function(){return w.T3(!0)})); if(Qo(w.Th)){var M;(M=w.videoData.MN)!=null&&M.Ak||(D=BSa(w),D.ZA?(ay(w.videoData)&&w.jL(D.ZA,D.startSeconds),w.L=D.startSeconds):D.startSeconds>0&&w.seekTo(D.startSeconds,{GD:"seektimeline_startPlayback",seekSource:15}));w.B=!1}else flj(w)||(w.L=w.L||w.videoData.startSeconds||0,w.videoData.isLivePlayback||(D=w.Th.videoData.T3(),w.L>D&&(w.C("html5_sabr_log_invalid_sabr_current_time")&&w.Th.H_("invalidSabrCmtStart",{rt:w.L,mst:D}),w.C("html5_sabr_vod_invalid_start_time_fallback")&&(w.L=0))))}; ecj=function(w,D){(w.loader=D)?rqr(w,!0):JH(w)}; XVa=function(w,D){g.S3(w.y7.W);w.C("html5_exponential_memory_for_sticky")&&(D.state.isPlaying()?g.S3(w.fV):w.fV.stop());if(w.mediaElement)if(D.oldState.state===8&&f5(D.state)&&D.state.isBuffering()){D=w.mediaElement.getCurrentTime();var M=w.mediaElement.m5();var L=w.C("manifestless_post_live_ufph")||w.C("manifestless_post_live")?Z0(M,Math.max(D-3.5,0)):Z0(M,D-3.5);L>=0&&D>M.end(L)-1.1&&L+10?(zt(w.Th,w.getCurrentTime()+w.videoData.limitedPlaybackDurationInSeconds),w.Nd=!0):w.videoData.isLivePlayback&&w.videoData.endSeconds>0&&(zt(w.Th,w.getCurrentTime()+w.videoData.endSeconds),w.Nd=!0))}; u6C=function(w,D){var M=w.getCurrentTime(),L=w.isAtLiveHead(M);if(w.U&&L){var Z=w.U;if(Z.T&&!(M>=Z.V&&M50&&Z.V.shift())),Z=w.T,nXT(Z,M,D===void 0?!0:D),FbK(Z,M),D&&alS(w,!0));L!==w.Sb&&(D=w.getCurrentTime()-w.iW<=500,M=w.TU>=1E3,D||M||(D=w.Th.xl,D.qoe&&(D=D.qoe,M=g.AR(D.provider), g.OE(D,M,"lh",[L?"1":"0"])),w.Sb=L,w.TU++,w.iW=w.getCurrentTime()))}; alS=function(w,D){if(w.T){var M=w.T;var L=w.getCurrentTime(),Z=M.vy();var k=M.policy.V;M.D||(k=Math.max(k-1,0));k*=ro(M);L>=Z-k||!M.nW()?M=LM+1&&D0&&gk(w.mediaElement)>0&&(w.V=Vo(w,w.V,!1)),D=w.C("html5_pseudogapless_shorts_seek_to_next_start")&&(D==null?void 0:D.seekSource)===60,!w.mediaElement||!OTK(w,D))w.oO.start(750);else if(!isNaN(w.V)&&isFinite(w.V)&&(D=w.jk-(w.V-w.timestampOffset),!(D===0||Math.abs(D)<.005)))if(D=w.mediaElement.getCurrentTime()-w.V,Math.abs(D)<=w.XE||Math.abs(D)<.005)KbJ(w);else{if(w.videoData.PE)w.videoData.PE= !1;else if(!fL(w.videoData)&&w.V>=w.T3()-.1){w.V=w.T3();w.D.resolve(w.T3());w.mE.gW()&&w.Th.H_("setEndedInSeek",{tgt:""+w.V,maxst:""+w.T3()});w.Th.yP();return}try{var M=w.V-w.timestampOffset;w.mediaElement.seekTo(M);w.y7.T=M;w.jk=M;w.L=w.V;w.V7=!1}catch(L){}}}; OTK=function(w,D){D=D===void 0?!1:D;if(!w.mediaElement||w.mediaElement.K7()===0||w.mediaElement.hasError())return!1;var M=w.mediaElement.getCurrentTime()>0;return w.videoData.L&&w.videoData.L.T||w.videoData.isLivePlayback||!w.videoData.Ms()?w.V>=0&&!D&&(D=w.mediaElement.Ze(),D.length||!M)?kW(D,w.V-w.timestampOffset):M:M}; KbJ=function(w){w.D&&(w.D.resolve(w.mediaElement.getCurrentTime()),w.y7.V=null)}; VsT=function(w,D){w.W&&(w.W.resolve(D),w.Th.zB(),w.mE.gW()||PDk(w))&&(D=w.qC(),D["native"]=""+ +w.V7,D.otgt=""+(w.V+w.timestampOffset),w.Th.H_("seekEnd",D));JH(w)}; JH=function(w){w.V=NaN;w.Y=NaN;w.jk=NaN;w.D=null;w.nV=null;w.W=null;w.W_=!1;w.V7=!1;w.XE=0;w.Jc.stop();w.bW.stop()}; Aqa=function(w,D){var M=w.mediaElement,L=D.type;switch(L){case "seeking":var Z=M.getCurrentTime()+w.timestampOffset;if(!w.D||w.V7&&Z!==w.V){w.D=new HF;w.D.then(function(b){VsT(w,b)},function(){JH(w)}); if(w.videoData.isAd()){var k;ZfJ({adCpn:w.videoData.clientPlaybackNonce,contentCpn:(k=w.videoData.h7)!=null?k:""},D.T)}w.jk=Z;GWK(w.y7,M.getCurrentTime());w.seekTo(Z,{seekSource:104,GD:"seektimeline_mediaElementEvent"});w.V7=!0}break;case "seeked":KbJ(w);break;case "loadedmetadata":Qo(w.Th)||mrj(w);So(w);break;case "progress":So(w);break;case "pause":w.G=w.getCurrentTime()}w.G&&((L==="play"||L==="playing"||L==="timeupdate"||L==="progress")&&w.getCurrentTime()-w.G>10&&(w.C("html5_sky_skip_pause_jump")? w.Th.H_("skipPauseJump",{evt:L,cmt:w.getCurrentTime(),lpt:w.G}):w.seekTo(w.G,{GD:"pauseJump"})),L!=="pause"&&L!=="play"&&L!=="playing"&&L!=="progress"&&(w.G=0))}; wNx=function(w){return(A0(w.videoData)||!!w.videoData.liveUtcStartSeconds)&&(!!w.videoData.liveUtcStartSeconds||flj(w))&&!!w.videoData.T}; flj=function(w){return!!w.videoData.startSeconds&&isFinite(w.videoData.startSeconds)&&w.videoData.startSeconds>1E9}; BSa=function(w){var D=0,M=NaN,L="";if(!w.B)return{startSeconds:D,ZA:M,source:L};w.videoData.nV?D=w.videoData.c_:fL(w.videoData)&&(D=Infinity);if(g.mm(w.videoData))return{startSeconds:D,ZA:M,source:L};w.videoData.startSeconds?(L="ss",D=w.videoData.startSeconds):w.videoData.uj&&(L="stss",D=w.videoData.uj);w.videoData.liveUtcStartSeconds&&(M=w.videoData.liveUtcStartSeconds);if(isFinite(D)&&(D>w.T3()||Dw.T3()||M 0?(L.onesie="0",w.handleError(new g.W_("html5.missingapi",L)),!1):!0}; l9k=function(w){var D=MI();Li(D,w);return g.XX(D,s2J())}; bGT=function(w,D){var M,L,Z,k,b,C,l,E,p,W,h,t,d,N,n,v,G,f,e,S,K,V,CI,Yx,lS,Wr;return g.B(function(Mk){if(Mk.T==1)return D.fetchType="onesie",M=$eN(D,w.getPlayerSize(),w.getVisibilityState()),L=new N4(w,M),g.c(Mk,L.fetch(),2);Z=Mk.V;k={player_response:Z};D.loading=!1;b=w.vA.GZ;if(L.tW){C=g.x(L.tW.entries());for(l=C.next();!l.done;l=C.next())E=l.value,p=g.x(E),W=p.next().value,h=p.next().value,t=W,d=h,b.T.set(t,d,180),t===D.videoId&&(N=d.Xw(),D.Uw=N);b.Qn=L}n=g.x(L.AT.entries());for(v=n.next();!v.done;v= n.next())G=v.value,f=g.x(G),e=f.next().value,S=f.next().value,K=e,V=S,b.V.set(K,V,180);g.UN(D,k,!0);if(D.loading||yQ(D))return Mk.return(Promise.resolve());b.T.removeAll();b.V.removeAll();D.Uw=[];CI={};Yx="onesie.response";lS=0;D.errorCode?(Yx="auth",CI.ec=D.errorCode,CI.ed=D.errorDetail,CI.es=D.hd||"",lS=2):(CI.successButUnplayable="1",CI.disposed=""+ +D.xt(),CI.afmts=""+ +/adaptiveFormats/.test(Z),CI.cpn=D.clientPlaybackNonce);Wr=new g.W_(Yx,CI,lS);return Mk.return(Promise.reject(Wr))})}; ZGr=function(w,D){var M,L,Z,k,b,C,l,E,p,W,h;return g.B(function(t){switch(t.T){case 1:M=D.isAd(),L=!M,Z=M?1:3,k=0;case 2:if(!(k0)){t.KV(5);break}return g.c(t,Bj(5E3),6);case 6:b=new g.qA("Retrying OnePlatform request",{attempt:k}),g.jn(b);case 5:return g.jN(t,7),g.c(t,ENS(w,D),9);case 9:return t.return();case 7:C=g.FK(t);l=tF(C);E=l.errorCode;p=w.X();W=p.C("html5_use_network_error_code_enums")?401:"401";L&&E==="manifest.net.badstatus"&&l.details.rc===W&&(L=!1,k===Z-1&&(Z+= 1));if(k===Z-1)return h=pNI(M,l.details),h.details.backend="op",h.details.originec=E,t.return(Promise.reject(h));if(E==="auth"||E==="manifest.net.retryexhausted")return t.return(Promise.reject(l));w.handleError(l);if(hF(l.severity)){t.KV(4);break}case 3:k++;t.KV(2);break;case 4:return t.return(Promise.reject(pNI(M,{backend:"op"})))}})}; ENS=function(w,D){function M(Yx){Yx.readyState===2&&w.q$("ps_c")} var L,Z,k,b,C,l,E,p,W,h,t,d,N,n,v,G,f,e,S,K,V,CI;return g.B(function(Yx){switch(Yx.T){case 1:D.fetchType="gp";L=w.X();Z=g.GA(L,g.E9(D));if(!Z.T){k=Z.getValue();Yx.KV(2);break}return g.c(Yx,Z.T,3);case 3:k=Yx.V;case 2:return b=k,C=l9k(b),l=$eN(D,w.getPlayerSize(),w.getVisibilityState()),E=g.zN(WfC),p=g.E9(D),W=(0,g.IC)(),h=!1,t="empty",d=0,w.q$("psns"),N={KY:M},g.c(Yx,g.FX(C,l,E,void 0,N),4);case 4:n=Yx.V;w.q$("psnr");if(D.xt())return Yx.return();n?"error"in n&&n.error?(h=!0,t="esf:"+n.error.message, d=n.error.code):n.errorMetadata&&(h=!0,t="its",d=n.errorMetadata.status):h=!0;if(h)return v=0,G=((0,g.IC)()-W).toFixed(),f={},f=L.C("html5_use_network_error_code_enums")?{backend:"op",rc:d,rt:G,reason:t,has_kpt:D.FQ?"1":"0",has_mdx_env:D.mdxEnvironment?"1":"0",has_omit_key_flag:g.Xg("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:L.pageId?"1":"0",has_token:p?"1":"0",has_vvt:D.W_?"1":"0",is_mdx:D.isMdxPlayback?"1":"0",mdx_ctrl:D.KP||"",token_eq:p===g.E9(D)?"1":"0"}:{backend:"op", rc:""+d,rt:G,reason:t,has_kpt:D.FQ?"1":"0",has_mdx_env:D.mdxEnvironment?"1":"0",has_omit_key_flag:g.Xg("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:L.pageId?"1":"0",has_token:p?"1":"0",has_vvt:D.W_?"1":"0",is_mdx:D.isMdxPlayback?"1":"0",mdx_ctrl:D.KP||"",token_eq:p===g.E9(D)?"1":"0"},e="manifest.net.connect",d===429?(e="auth",v=2):d>200&&(e="manifest.net.badstatus",d===400&&(v=2)),Yx.return(Promise.reject(new g.W_(e,f,v)));D.loading=!1;g.UN(D,{raw_player_response:n},!0); S=n;g.bw(D.X())&&S&&S.trackingParams&&kz(S.trackingParams);if(D.errorCode)return K={ec:D.errorCode,ed:D.errorDetail,es:D.hd||""},Yx.return(Promise.reject(new g.W_("auth",K,2)));if(!D.loading&&!yQ(D))return V=D.isAd()?"auth":"manifest.net.retryexhausted",CI=D.isAd()?2:1,Yx.return(Promise.reject(new g.W_(V,{successButUnplayable:"1",hasMedia:g.PB(D)?"1":"0"},CI)));g.Hr(Yx)}})}; LfS=function(w,D,M){function L(d){d=tF(d);if(hF(d.severity))return Promise.reject(d);w.handleError(d);return!1} function Z(){return!0} var k,b,C,l,E,p,W,h,t;return g.B(function(d){switch(d.T){case 1:var N=w.X();w.getPlayerSize();w.getVisibilityState();w.isFullscreen();if(D.partnerId===38&&N.playerStyle==="books")N=D.videoId.indexOf(":"),N=g.dh("//play.google.com/books/volumes/"+D.videoId.slice(0,N)+"/content/media",{aid:D.videoId.slice(N+1),sig:D.OOV});else if(D.partnerId===30&&N.playerStyle==="docs")N=g.dh("https://docs.google.com/get_video_info",{docid:D.videoId,authuser:D.AM,authkey:D.oP7,eurl:N.wW});else if(D.partnerId===33&& N.playerStyle==="google-live")N=g.dh("//google-liveplayer.appspot.com/get_video_info",{key:D.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+N.y7);k=N;C=(b=D.isAd())?1:3;l=0;case 2:if(!(l0)){d.KV(5);break}return g.c(d,Bj(5E3),6);case 6:p={playerretry:l,playerretrysrc:M},b||(p.recover="embedded"),E=AQ(k,p);case 5:return g.c(d,hAk(D,E).then(Z,L),7);case 7:if(W=d.V)return d.return();l++;d.KV(2);break;case 4:h=b?"auth":"manifest.net.retryexhausted";t= b?2:1;if(!b&&Math.random()<1E-4)try{g.jn(new g.qA("b/152131571",btoa(k)))}catch(n){}return d.return(Promise.reject(new g.W_(h,{backend:"gvi"},t)))}})}; hAk=function(w,D){function M(n){return L(n.xhr)} function L(n){if(!w.xt()){n=n?n.status:-1;var v=0,G=((0,g.IC)()-p).toFixed();G=Z.C("html5_use_network_error_code_enums")?{backend:"gvi",rc:n,rt:G}:{backend:"gvi",rc:""+n,rt:G};var f="manifest.net.connect";n===429?(f="auth",v=2):n>200&&(f="manifest.net.badstatus",n===400&&(v=2));return Promise.reject(new g.W_(f,G,v))}} var Z,k,b,C,l,E,p,W,h,t,d,N;return g.B(function(n){if(n.T==1){w.fetchType="gvi";Z=w.X();var v={};w.F2&&(v.ytrext=w.F2);(C=g.WD(v)?void 0:v)?(k={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:C},b=AQ(D,{action_display_post:1})):(k={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},b=D);l={};Z.sendVisitorIdHeader&&w.visitorData&&(l["X-Goog-Visitor-Id"]=w.visitorData);(E=U2(Z.experiments,"debug_sherlog_username"))&&(l["X-Youtube-Sherlog-Username"]=E);Object.keys(l).length> 0&&(k.headers=l);p=(0,g.IC)();return g.c(n,sz(xE,b,k).then(void 0,M),2)}W=n.V;if(!W||!W.responseText)return n.return(L(W));w.loading=!1;h=PP(W.responseText);g.UN(w,h,!0);if(w.errorCode)return t={ec:w.errorCode,ed:w.errorDetail,es:w.hd||""},n.return(Promise.reject(new g.W_("auth",t,2)));if(!w.loading&&!yQ(w))return d=w.isAd()?"auth":"manifest.net.retryexhausted",N=w.isAd()?2:1,n.return(Promise.reject(new g.W_(d,{successButUnplayable:"1"},N)));g.Hr(n)})}; pNI=function(w,D){return new g.W_(w?"auth":"manifest.net.retryexhausted",D,w?2:1)}; AH=function(w,D,M){M=M===void 0?!1:M;var L,Z,k,b;g.B(function(C){if(C.T==1){L=w.X();if(M&&(!g.jZ(L)||bR(D)!=="embedded")||D.WE||bR(D)!=="adunit"&&(g.hL(L)||h6(L)||g.Fs(L)||g.Hn(L)||g.Y2(L)||i3(L)==="WEB_CREATOR"))return C.return();Z=g.GA(L,g.E9(D));return Z.T?g.c(C,Z.T,3):(k=Z.getValue(),C.KV(2))}C.T!=2&&(k=C.V);b=k;return C.return(txj(w,D,b))})}; txj=function(w,D,M){var L,Z,k,b,C;return g.B(function(l){if(l.T==1){g.jN(l,2);L=l9k(M);var E=D.X(),p=g.aj(),W={context:g.jf(D),videoId:D.videoId,racyCheckOk:D.racyCheckOk,contentCheckOk:D.contentCheckOk,autonavState:"STATE_NONE"};bR(D)==="adunit"&&(W.isAdPlayback=!0);E.embedConfig&&(W.serializedThirdPartyEmbedConfig=E.embedConfig);E.zQ&&(W.showContentOwnerOnly=!0);D.AJ&&(W.showShortsOnly=!0);p.vr(141)&&(W.autonavState=p.vr(140)?"STATE_OFF":"STATE_ON");if(g.x2(E)){p=p.vr(65);p=p!=null?!p:!1;var h= !!g.Rj("yt-player-sticky-caption");W.captionsRequested=p&&h}var t;if(E=(t=E.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags)W.playbackContext={encryptedHostFlags:E};Z=W;k=g.zN($va);w.q$("wn_s");return g.c(l,g.FX(L,Z,k),4)}if(l.T!=2)return b=l.V,w.q$("wn_r"),!b||"error"in b&&b.error||(C=b,g.bw(D.X())&&C.trackingParams&&kz(C.trackingParams),g.UN(D,{raw_watch_next_response:b},!1)),g.oT(l,0);g.FK(l);g.Hr(l)})}; iGj=function(w){w.q$("vir");w.q$("ps_s");RA("vir",void 0,"video_to_ad");var D=Cxl(w);D.then(function(){w.q$("virc");RA("virc",void 0,"video_to_ad");w.q$("ps_r");RA("ps_r",void 0,"video_to_ad")},function(){w.q$("virc"); RA("virc",void 0,"video_to_ad")}); return D}; g.M6=function(w,D,M,L,Z,k,b,C,l,E){l=l===void 0?new g.db(w):l;E=E===void 0?!0:E;g.mI.call(this);var p=this;this.mE=w;this.playerType=D;this.Wz=M;this.T5=L;this.getVisibilityState=k;this.visibility=b;this.vA=C;this.videoData=l;this.sI=E;this.logger=new g.yI("VideoPlayer");this.Au=null;this.g_=new tH;this.fL=null;this.RF=!0;this.v_=this.loader=null;this.df=[];this.FN=new mD;this.Zr=this.Fk=null;this.fb=new mD;this.I6=null;this.Tu=this.DP=!1;this.Nz=NaN;this.rh=!1;this.playerState=new g.FF;this.XP=[]; this.yq=new g.xM;this.mediaElement=null;this.HZ=this.Ot=!1;this.Z3=NaN;this.VH=!1;this.hZ=0;this.Hk=!1;this.YI=NaN;this.MH=0;this.loop=!1;this.playbackRate=1;this.Q0=0;this.gX=!1;this.wR=[];this.XU=this.GI=0;this.Aj=this.eH=!1;this.Kh=this.A9=0;this.u6=!1;this.vE=this.Kv=this.L0=this.j2=null;this.uo=function(){var W=p.xl;W.provider.mE.Nr||W.provider.Th.getVisibilityState()===3||(W.provider.mE.Nr=!0);W.IN();if(W.V){var h=W.V;h.W&&h.T<0&&h.provider.Th.getVisibilityState()!==3&&d6R(h)}W.qoe&&(W=W.qoe, W.bW&&W.L<0&&W.provider.mE.Nr&&Qol(W),W.D&&wo(W));p.loader&&wM(p);p.mE.Ws&&!p.videoData.backgroundable&&p.mediaElement&&!p.Fl()&&(p.isBackground()&&p.mediaElement.fB()?(p.H_("bgmobile",{suspend:1}),p.Bx(!0,!0)):p.isBackground()||Dd(p)&&p.H_("bgmobile",{resume:1}))}; this.Bz={fW:function(W){p.fW(W)}, Xic:function(W){p.Au=W}, U3V:function(){return p.xl}, d2:function(){return p.v_}, fHh:function(){return p.lQ}, x3h:function(){return p.Iv}, D09:function(){}, X:function(){return p.mE}, ij:function(){return p.mediaElement}, nZE:function(W){p.C_(W)}, J9h:function(){return p.T5}}; this.f7=new XwN(this);this.d6=new g.ui(this.ezL,15E3,this);this.eO=new Pw(new Map([["bufferhealth",function(){return TSJ(p.xA)}], ["bandwidth",function(){return p.yr()}], ["networkactivity",function(){return p.mE.schedule.nV}], ["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?dvk(p):NaN}], ["rawlivelatency",function(){return dvk(p)}]])); this.xA=new cqS(this);this.tZ=new g.ui(this.mR,0,this);this.p_9=[this.yq,this.tZ,this.d6,this.eO];this.logger.debug(function(){return"creating, type "+D}); this.Nv=new Ilj(this.mE);this.ZK=new im(this.mE,this.T5,this);this.Da=new g.s7(this,function(W,h){W!==g.QG("endcr")||g.z(p.playerState,32)||p.yP();Z(W,h,p.playerType);if(W===g.QG("transitiondetector")&&(W=p.loader)!=null&&(W=W.mu)!=null){var t=g.x(bZJ(h.id));t.next();t=t.next().value;Mfk(W,t,h.start/1E3-W.Th.jb(),zFG(W.D))}}); g.T(this,this.Da);g.T(this,this.xA);yUK(this,l);this.videoData.subscribe("dataupdated",this.RHc,this);this.videoData.subscribe("dataloaded",this.BJ,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.H_,this);this.videoData.subscribe("ctmpstr",this.NW,this);!this.xl||this.xl.xt();this.xl=new g.Ff(new nU(this.videoData,this.mE,this));rHG(this.uo);this.visibility.subscribe("visibilitystatechange",this.uo);this.lQ=new g.ui(this.Fi,g.A3(this.mE.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Iv=new g.ui(this.Fi,g.A3(this.mE.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.yE=new g.zC(this.ssJ,350,this);g.T(this,this.yE)}; yUK=function(w,D){if(w.playerType===2||w.mE.h2)D.nR=!0;var M=nla(D.Nr,D.NI,w.mE.D,w.mE.U);M&&(D.adFormat=M);w.playerType===2&&(D.ou=!0);if(w.isFullscreen()||w.mE.D)M=g.Rj("yt-player-autonavstate"),D.autonavState=M||(w.mE.D?2:w.videoData.autonavState);D.endSeconds&&D.endSeconds>D.startSeconds&&zt(w,D.endSeconds)}; I9x=function(w){var D=w.videoData;iGj(w).then(void 0,function(M){w.videoData!==D||D.xt()||(M=tF(M),M.errorCode==="auth"&&w.videoData.errorDetail?w.Pd(M.errorCode,2,unescape(w.videoData.errorReason),pH(M.details),w.videoData.errorDetail,w.videoData.hd||void 0):w.handleError(M))})}; NuT=function(w){if(!g.z(w.playerState,128))if(w.videoData.isLoaded(),w.logger.debug("finished loading playback data"),w.df=g.GD(w.videoData.B),g.PB(w.videoData)){w.Wz.tick("bpd_s");L4(w).then(function(){w.Wz.tick("bpd_c");if(!w.xt()){w.DP&&(w.UB(aE(aE(w.playerState,512),1)),Dd(w));var L=w.videoData;L.endSeconds&&L.endSeconds>L.startSeconds&&zt(w,L.endSeconds);w.FN.finished=!0;Zd(w,"dataloaded");w.fb.Wq()&&Uvx(w);i4N(w.ZK,w.Zr)}}); w.C("html5_log_media_perf_info")&&w.H_("loudness",{v:w.videoData.wz.toFixed(3)},!0);var D,M=(D=w.mediaElement)==null?void 0:D.Dv();if(M&&"disablePictureInPicture"in M&&w.mE.PC)try{M.disablePictureInPicture=w.mE.D9&&!w.videoData.backgroundable}catch(L){g.jn(L)}xvN(w);w.C("html5_enable_audio_feature_manager")&&(w.vE=new Vc(w.videoData))}else Zd(w,"dataloaded")}; L4=function(w){ke(w);w.Zr=null;var D=xrI(w.mE,w.videoData,w.Fl());w.Fk=D;w.Fk.then(function(M){HGI(w,M)},function(M){w.xt()||(M=tF(M),w.visibility.isBackground()?(bk(w,"vp_none_avail"),w.Fk=null,w.FN.reset()):(w.FN.finished=!0,w.Pd(M.errorCode,M.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",pH(M.details))))}); return D}; HGI=function(w,D){if(!w.xt()&&!D.videoData.xt()){w.logger.debug("finished building playback data");w.Zr=D;qcN(w.xA,w.Zr);if(w.videoData.isLivePlayback){var M=jBG(w.vA.GZ,w.videoData.videoId)||w.loader&&!isNaN(w.loader.W_);M=w.C("html5_onesie_live")&&M;Qo(w)||w.videoData.TU>0&&!qQ(w.videoData)||M||w.seekTo(w.T3(),{GD:"videoplayer_playbackData",seekSource:18})}if(w.videoData.L.T){if(LQx(w.videoData)){w.Pd("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",pH({missabrurl:1}));return}w.loader?g.jn(Error("Duplicated Loader")): (M=g.A3(w.mE.experiments,"html5_onesie_defer_content_loader_ms"))&&w.BC()&&jBG(w.vA.GZ,w.videoData.v9t)?g.C7(function(){w.xt()||w.loader||gNR(w)},M):gNR(w)}else!w.videoData.L.T&&tW(w.videoData)&&w.KA(new of(w.videoData.videoId||"",4)); w.A2();CkS(D).then(function(){var L={};w.J3(L);w.mE.gW()&&w.C("html5_log_media_perf_info")&&w.H_("av1Info",L);wM(w)})}}; Uvx=function(w){w.xt();w.logger.debug("try finish readying playback");if(w.fb.finished)w.logger.debug("already finished readying");else if(w.FN.finished)if(g.z(w.playerState,128))w.logger.debug("cannot finish readying because of error");else if(w.df.length)w.logger.debug(function(){return"cannot finish readying because of pending preroll: "+w.df}); else if(w.Da.started||Wbl(w.Da),w.I$())w.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{w.loader&&(w.Tu=hyG(w.loader.timing));w.fb.finished||(w.fb.finished=!0);var D=w.C("html5_onesie_live")&&w.loader&&!isNaN(w.loader.W_);!w.videoData.isLivePlayback||w.videoData.TU>0&&!qQ(w.videoData)||D||Qo(w)||(w.logger.debug("seek to head for live"),w.seekTo(Infinity,{GD:"videoplayer_readying",seekSource:18}),w.isBackground()&&(w.HZ=!0));KsK(w.xl);w.logger.debug("finished readying playback"); w.publish("playbackready");jT("pl_c",w.Wz.timerName)||(w.Wz.tick("pl_c"),RA("pl_c",void 0,"video_to_ad"));jT("pbr",w.Wz.timerName)||(w.Wz.tick("pbr"),RA("pbr",void 0,"video_to_ad"))}else w.logger.debug("playback data not loaded")}; zt=function(w,D){w.fL&&RAC(w);w.fL=new g.ue(D*1E3,0x7ffffffffffff);w.fL.namespace="endcr";w.addCueRange(w.fL)}; RAC=function(w){w.removeCueRange(w.fL);w.fL=null}; oNk=function(w,D,M,L,Z){var k=w.xl,b=w.videoData;b.V=M;var C=g.Ye(w);M=new AHC(b,M,D,C?C.itag:"",L);w.mE.experiments.ek("html5_refactor_sabr_video_format_selection_logging")?(M.videoId=Z,w.Kv=M):k.qoe&&S9K(k.qoe,M);Z=w.ZK;Z.V=0;Z.T=0;w.publish("internalvideoformatchange",b,D==="m")}; g.Ye=function(w){var D=C4(w);return oh(D)||!w.Zr?null:g.y1(w.Zr.T.videoInfos,function(M){return D.D(M)})}; C4=function(w){if(w.Zr){var D=w.ZK;var M=w.Zr;w=w.pT();var L=D6S(D);if(oh(L)){if(L=D.AU(M).compose(kzG(D,M)).compose(Y1N(D,M)).compose(ttJ(D,M.videoData)).compose($6K(D,M.videoData,M)).compose(hGJ(D,M)).compose(LsK(D,M)),oh(w)||D.C("html5_apply_pbr_cap_for_drm"))L=L.compose(Z4S(D,M))}else D.C("html5_perf_cap_override_sticky")&&(L=L.compose(hGJ(D,M))),D.C("html5_ustreamer_cap_override_sticky")&&(L=L.compose(Z4S(D,M)));L=L.compose(LsK(D,M));D=M.videoData.Wn.compose(L).compose(M.videoData.uw).compose(w)}else D= $i;return D}; giI=function(w){var D=w.ZK;w=w.videoData;var M=ttJ(D,w);D.C("html5_disable_client_autonav_cap_for_onesie")||M.compose($6K(D,w));return M}; wM=function(w){if(w.videoData.L&&w.videoData.L.T){var D=C4(w);w.loader&&lir(w.loader,D)}}; nNx=function(w){var D;return!!(w.C("html5_native_audio_track_switching")&&g.pf&&((D=w.videoData.V)==null?0:Vd(D)))}; FfT=function(w){if(!nNx(w))return!1;var D;w=(D=w.mediaElement)==null?void 0:D.audioTracks();return!!(w&&w.length>1)}; sBS=function(w){var D=G2a(w);if(D)return w.videoData.getAvailableAudioTracks().find(function(M){return M.dW.getName()===D})}; G2a=function(w){var D;if(w=(D=w.mediaElement)==null?void 0:D.audioTracks())for(D=0;D0&&(D.wI=M.mW));D.DJ=M.oT;D.rK=wq(L,{},M.L||void 0,GB(M));D.pV=F9(M)&&(g.Fs(L)||g.Hn(L));ay(M)&&(D.W=!0,D.mW=L.C("html5_estimate_live_partial_slice_duration"),g.hL(L)&&!g.q2()&&L.C("html5_force_audio_to_cover_video_keyframe")?D.oO=!1:D.oO=!0,L.C("html5_sabr_report_partial_segment_estimated_duration")&& (D.D0=!0),D.T=!0,D.QW=L.C("html5_disable_client_resume_policy_for_sabr"),D.Bn=L.C("html5_trigger_loader_when_idle_network"),D.Ao=L.C("html5_sabr_parse_live_metadata_playback_boundaries"),D.GR=L.C("html5_consume_onesie_next_request_policy_for_sabr"),D.aN=L.C("html5_sabr_report_next_ad_break_time"),D.zQ=L.C("html5_log_high_res_buffer_timeline")&&L.gW(),D.oN=L.C("html5_remove_stuck_slices_beyond_max_buffer_limits"),D.WO=L.C("html5_gapless_sabr_btl_last_slice")&&nL(M),D.fz=L.C("html5_reset_last_appended_slice_on_seek")&& nL(M),qQ(M)?(D.z0=!0,D.Hs=L.C("html5_disable_variability_tracker_for_live"),D.Nd=!0,L.C("html5_simplified_backup_timeout_sabr_live")&&(D.a$=!0,D.kP=D.LL)):D.Is=L.C("html5_probe_request_on_sabr_request_progress"),D.yn=L.C("html5_serve_start_seconds_seek_for_post_live_sabr"),D.Wd=L.C("html5_flush_index_on_updated_timestamp_offset"),D.B=ay(M),D.zK=L.C("html5_ignore_partial_segment_from_live_readahead"),L.C("html5_include_partial_segment_for_jumbo_ll")&&rb(M)&&(D.zK=!1),D.TW=L.C("html5_use_non_active_broadcast_for_post_live"), D.W_=L.C("html5_use_centralized_player_time"),D.NC=L.C("html5_log_centralized_player_time"),D.Io=L.C("html5_consume_onesie_sabr_seek"),D.y7=L.C("html5_enable_sabr_seek_loader_refactor"),D.Wn=g.A3(L.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),D.Up=L.C("html5_update_segment_start_time_from_media_header"),M.enableServerStitchedDai&&(D.V=!0,D.NI=L.C("html5_reset_server_stitch_state_for_non_sabr_seek"),D.LT=L.C("html5_remove_ssdai_append_pause")&&!M.rH(),D.wz=L.C("html5_ssdai_log_ssevt_in_loader")|| L.C("html5_ssdai_log_ssevt_in_loader_200ms")||L.C("html5_ssdai_log_ssevt_in_loader_timers")||L.C("html5_ssdai_log_ssevt_in_loader_cuerange"),L.C("html5_ssdai_log_ssevt_in_loader_timers")?D.mu=1:L.C("html5_ssdai_log_ssevt_in_loader_200ms")?D.mu=3:L.C("html5_ssdai_log_ssevt_in_loader_cuerange")&&(D.mu=0)),D.UQ=L.gW()||M.rH());D.k6=g.whN(M);Ta(L.W,uh.BITRATE)&&(D.sL=NaN);if(C=g.A3(L.experiments,"html5_request_size_max_kb"))D.jk=C*1024;L.W.L?D.U0="; "+uh.EXPERIMENTAL.name+"=allowed":L.C("html5_enable_cobalt_tunnel_mode")&& g.q2()&&(C=uh.TUNNELMODE,D.U0="; "+C.name+"="+C.valid);M=M.serverPlaybackStartConfig;(M==null?0:M.enable)&&(M==null?0:M.playbackStartPolicy)&&(D.ib=!0,DiS(D,M.playbackStartPolicy,2));M=a9R(w);w.g_.removeAll();a:{C=w.vA.GZ;if(L=w.videoData.videoId)if(Z=C.T.get(L)){C.T.remove(L);C=Z;break a}C=void 0}w.loader=new g.Z3(w,w.mE.schedule,D,w.videoData.T,w.videoData.L,C4(w),M,w.videoData.enableServerStitchedDai,C,w.videoData.y7);D=w.videoData.C("html5_disable_preload_for_ssdai_with_preroll")&&w.videoData.isLivePlayback&& w.BC()?!0:w.DP&&g.hL(w.mE)&&w.videoData.isLivePlayback;w.loader.initialize(w.getCurrentTime(),C4(w),D);w.videoData.probeUrl&&(w.loader.EL=w.videoData.probeUrl);if(w.df.length||w.DP)w.videoData.cotn||lk(w,!1);ecj(w.xA,w.loader);w.j2&&(s4I(w.loader,new g.kL(w.j2)),w.H_("sdai",{sdl:1}));g.dZ(w.videoData)&&(w=w.loader,w.policy.uA=w.policy.Lu)}; ke=function(w){w.loader&&(w.loader.dispose(),w.loader=null,ecj(w.xA,null));w.tf()?vNI(w):w.lA()}; vNI=function(w){if(w.v_)if(w.logger.debug("release media source"),w.XG(),w.v_.W)try{w.mE.gW()&&w.H_("rms",{l:"vprms",sr:w.tf(),rs:xW(w.v_)});w.v_.clear();var D;(D=w.mediaElement)!=null&&(D.V=w.v_);w.v_=null}catch(M){D=new g.qA("Error while clearing Media Source in VideoPlayer: "+M.name+", "+M.message),D=tF(D),w.handleError(D),w.lA()}else w.lA()}; cUK=function(w,D){D=D===void 0?!1:D;if(w.v_)return w.v_.L;w.logger.debug("update media source");a:{D=D===void 0?!1:D;try{g.q2()&&w.videoData.f3()&&usC(w.mediaElement);var M=w.mediaElement.d2(w.pG(),w.zx())}catch(Z){if(JHR(w.f7,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",Z);w.Pd("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}w.e4(M,!1,!1,D)}var L;return((L=w.d2())==null?void 0:L.L)||null}; Buj=function(w,D){D=D===void 0?!1:D;if(w.loader){w.videoData.enableServerStitchedDai&&JRa(w.loader);var M=w.getCurrentTime()-w.jb();w.loader.seek(M,{cq:D}).V8(function(){})}else gNR(w)}; qqr=function(w,D,M,L){M=M===void 0?!1:M;L=L===void 0?!1:L;if(w.v_&&(!D||w.v_===D)){w.logger.debug("media source opened");var Z=w.getDuration();!Z&&qQ(w.videoData)&&(Z=25200);if(w.v_.isView){var k=Z;w.logger.debug(function(){return"Set media source duration to "+k+", video duration "+Z}); k>w.v_.getDuration()&&f9G(w,k)}else f9G(w,Z);biN(w.loader,w.v_,M,L);w.publish("mediasourceattached")}}; f9G=function(w,D){if(w.v_){w.v_.OM(D);var M;(M=w.loader)!=null&&M.policy.W_&&(M.Y=D)}}; pRI=function(w,D){oNk(w,D.reason,D.T.info,D.token,D.videoId)}; Zd=function(w,D){w.publish("internalvideodatachange",D===void 0?"dataupdated":D,w.videoData)}; rUS=function(w){for(var D=g.x("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),M=D.next();!M.done;M=D.next())w.yq.j(w.mediaElement,M.value,w.C_,w);w.mE.Km&&w.mediaElement.bv()&&(w.yq.j(w.mediaElement,"webkitplaybacktargetavailabilitychanged",w.OVW,w),w.yq.j(w.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",w.UdJ,w))}; XNG=function(w){g.p7(w.Nz);eAr(w)||(w.Nz=g.lU(function(){return eAr(w)},100))}; eAr=function(w){var D=w.mediaElement;D&&w.Ot&&!w.videoData.V7&&!jT("vfp",w.Wz.timerName)&&D.K7()>=2&&!D.isEnded()&&C5(D.m5())&&w.Wz.tick("vfp");return(D=w.mediaElement)&&!w.videoData.V7&&D.getDuration()>0&&(D.isPaused()&&D.K7()>=2&&C5(D.m5())&&(jT("pbp",w.Wz.timerName)||w.Wz.tick("pbp"),!w.videoData.ZB||w.rh||D.isSeeking()||(w.rh=!0,w.publish("onPlaybackPauseAtStart"))),D=D.getCurrentTime(),aO(w.Nv,D))?(w.Ay(),!0):!1}; uor=function(w){w.xl.onProgress();if(fL(w.videoData)&&Date.now()>w.Q0+6283){if(w.C("html5_unified_live_latency_reporting")){var D=w.xl;D.qoe&&BZK(D.qoe)}else!w.isAtLiveHead()||w.videoData.T&&TH(w.videoData.T)||(D=w.xl,D.qoe&&BZK(D.qoe));D=g.pc(w.mE);var M=w.C("html5_always_log_rawlat");(D||M)&&w.H_("rawlat",{l:KU(w.eO,"rawlivelatency").toFixed(3)});w.Q0=Date.now()}w.videoData.V&&Vd(w.videoData.V)&&(D=w.Bi())&&D.videoHeight!==w.XU&&(w.XU=D.videoHeight,oNk(w,"a",Tua(w,w.videoData.bW)))}; Tua=function(w,D){if(D.T.video.quality==="auto"&&Vd(D.getInfo())&&w.videoData.Is)for(var M=g.x(w.videoData.Is),L=M.next();!L.done;L=M.next())if(L=L.value,L.getHeight()===w.XU&&L.T.video.quality!=="auto")return L.getInfo();return D.getInfo()}; dvk=function(w){if(!fL(w.videoData))return NaN;var D=0;w.loader&&w.videoData.T&&(D=qQ(w.videoData)?w.loader.qv.Td()||0:w.videoData.T.fV);return(0,g.IC)()/1E3-w.mj()-D}; QBR=function(w){w.mediaElement&&w.mediaElement.Fl()&&(w.YI=(0,g.IC)());w.mE.Hw?g.C7(function(){Sql(w)},0):Sql(w)}; Sql=function(w){var D;if((D=w.v_)==null||!D.X$()){if(w.mediaElement)try{w.I6=w.mediaElement.playVideo()}catch(L){bk(w,"err."+L)}if(w.I6){var M=w.I6;M.then(void 0,function(L){w.logger.debug(function(){return"playMediaElement failed: "+L}); if(!g.z(w.playerState,4)&&!g.z(w.playerState,256)&&w.I6===M)if(L&&L.name==="AbortError"&&L.message&&L.message.includes("load"))w.logger.debug(function(){return"ignore play media element failure: "+L.message}); else{var Z="promise";L&&L.name&&(Z+=";m."+L.name);bk(w,Z);w.gX=!0;w.videoData.QF=!0}})}}}; bk=function(w,D){g.z(w.playerState,128)||(w.UB(cF(w.playerState,1028,9)),w.H_("dompaused",{r:D}),w.publish("onAutoplayBlocked"))}; Dd=function(w,D){D=D===void 0?!1:D;if(!w.mediaElement||!w.videoData.L)return!1;var M=D;M=M===void 0?!1:M;var L=null;var Z;if((Z=w.videoData.L)==null?0:Z.T){L=cUK(w,M);var k;(k=w.loader)==null||k.resume()}else ke(w),w.videoData.bW&&(L=w.videoData.bW.Os());Z=w.mediaElement.fB();M=!1;Z&&Z.equals(L)||(JUl(w,L),M=!0);g.z(w.playerState,2)||(L=w.xA,D=D===void 0?!1:D,L.W||!(L.L>0)||L.mediaElement&&L.mediaElement.getCurrentTime()>0||(D={GD:"seektimeline_resumeTime",cq:D},L.videoData.V7||(D.seekSource=15), L.seekTo(L.L,D)));a:{D=M;if(ay(w.videoData)){if(!w.videoData.Ms())break a}else if(!g.QQ(w.videoData))break a;if(w.mediaElement)if((L=w.videoData.W)&&w.mediaElement.bv()){Z=w.mediaElement.Dv();if(w.Au)if(Z!==w.Au.element)E1(w);else if(D&&L.flavor==="fairplay"&&!rz())E1(w);else break a;if(w.C("html5_report_error_for_unsupported_tvos_widevine")&&rz()&&L.flavor==="widevine")w.Pd("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{w.Au=new FDK(Z,w.videoData,w.mE);w.Au.subscribe("licenseerror", w.W8,w);w.Au.subscribe("qualitychange",w.Elc,w);w.Au.subscribe("heartbeatparams",w.XA,w);w.Au.subscribe("keystatuseschange",w.fW,w);w.Au.subscribe("ctmp",w.H_,w);D=g.x(w.g_.keys);for(L=D.next();!L.done;L=D.next())L=w.g_.get(L.value),w.Au.T1(L);w.C("html5_eme_loader_sync")||w.g_.removeAll()}}else w.Pd("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return M}; JUl=function(w,D){w.Wz.tick("vta");RA("vta",void 0,"video_to_ad");w.getCurrentTime()>0&&ScI(w.xA,w.getCurrentTime());w.mediaElement.activate(D);w.v_&&V$(4);!w.videoData.V7&&w.playerState.isOrWillBePlaying()&&w.d6.start();if(nNx(w)){var M;if(D=(M=w.mediaElement)==null?void 0:M.audioTracks())D.onchange=function(){w.publish("internalaudioformatchange",w.videoData,!0)}}}; E1=function(w){w.Au&&(w.Au.dispose(),w.Au=null)}; zAx=function(w){var D=D===void 0?!1:D;w.logger.debug("reattachVideoSource");w.mediaElement&&(w.v_?(E1(w),w.lA(),cUK(w,D)):(w.videoData.bW&&w.videoData.bW.zl(),w.mediaElement.stopVideo()),w.playVideo())}; VxK=function(w,D){w.mE.C("html5_log_rebuffer_reason")&&(D={r:D,lact:iG()},w.mediaElement&&(D.bh=RE(w.mediaElement)),w.H_("bufreason",D))}; PxC=function(w,D){if(w.mE.gW()&&w.mediaElement){var M=w.mediaElement.qC();M.omt=(w.mediaElement.getCurrentTime()+w.jb()).toFixed(3);M.ps=w.playerState.state.toString(16);M.rt=(g.AR(w.xl.provider)*1E3).toFixed();M.e=D;w.wR[w.GI++%5]=M}try{if(D==="timeupdate"||D==="progress")return}catch(L){}w.logger.debug(function(){return"video element event "+D})}; OGS=function(w){if(w.mE.gW()){w.wR.sort(function(L,Z){return+L.rt-+Z.rt}); for(var D=g.x(w.wR),M=D.next();!M.done;M=D.next())M=M.value,w.H_("vpe",Object.assign({t:M.rt},M));w.wR=[];w.GI=0}}; Kfl=function(w){if(g.Bo("cobalt")&&g.Bo("nintendo switch")){var D=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;w.H_("nxdock",{d:D})}}; lk=function(w,D){var M;(M=w.loader)==null||DIa(M,D)}; xvN=function(w){Io(w.videoData,"html5_set_debugging_opt_in")&&(w=g.aj(),w.vr(183)||(cg(183,!0),w.save()))}; zfG=function(w,D){w.vA.aT()||(w.H_("sgap",{f:D}),w.vA.clearQueue(!1,D==="pe"))}; Qo=function(w){return w.C("html5_disable_video_player_initiated_seeks")&&ay(w.videoData)}; mvj=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);Ro(this.api,"isLifaAdPlaying",function(){return D.api.isLifaAdPlaying()}); this.events.j(w,"serverstitchedvideochange",function(){var M;(M=D.api.getVideoData())!=null&&M.rH()&&(D.api.isLifaAdPlaying()?(D.playbackRate=D.api.getPlaybackRate(),D.api.setPlaybackRate(1)):D.api.setPlaybackRate(D.playbackRate))}); this.playbackRate=1}; p4=function(w){HR.call(this,"Loop",g.GU.Om);this.K=w;var D=w.C("delhi_modern_web_player_icons")?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:sjC();this.setIcon(D);this.subscribe("select",this.V,this);w.createClientVe(this.element,this,28661);this.j(w,"settingsMenuVisibilityChanged",this.T);this.listen("click",this.logClick);this.j(w,"onLoopChange",this.onLoopChange);jg(this,w.getLoopVideo());w.Vg().sB(this)}; AUx=function(w){tX.call(this,w);var D=this;w.addEventListener("settingsMenuInitialized",function(){D.menuItem||(D.menuItem=new p4(D.api),g.T(D,D.menuItem))}); w.addEventListener("videodatachange",function(M,L){M=D.api.getPresentingPlayerType()===2;var Z;(Z=D.menuItem)==null||Z.h1(!L.isLivePlayback&&!M)})}; w4R=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);Ro(this.api,"seekToChapterWithAnimation",function(M){D.seekToChapterWithAnimation(M)}); Ro(this.api,"seekToTimeWithAnimation",function(M,L){D.seekToTimeWithAnimation(M,L)}); Ro(this.api,"renderChapterSeekingAnimation",function(M,L,Z){D.api.renderChapterSeekingAnimation(M,L,Z)}); Ro(this.api,"setMacroMarkers",function(M){D.setMacroMarkers(w,M)}); Ro(this.api,"changeMarkerVisibility",function(M,L,Z){D.changeMarkerVisibility(M,L,Z)}); Ro(this.api,"isSameMarkerTypeVisible",function(M){return D.isSameMarkerTypeVisible(M)})}; DdC=function(w,D,M){var L=w.api.getCurrentTime()*1E30&&Z>0&&(M.width+=Z,g.Qv(D.element,"width",M.width+"px")));w.size=M}}; g.o$=function(w,D){var M=w.T[w.T.length-1];M!==D&&(w.T.push(D),cfT(w,M,D))}; g.n4=function(w){if(!(w.T.length<=1)){var D=w.T.pop(),M=w.T[0];w.T=[M];cfT(w,D,M,!0)}}; cfT=function(w,D,M,L){Bak(w);D&&(D.unsubscribe("size-change",w.KU,w),D.unsubscribe("back",w.Py,w));M.subscribe("size-change",w.KU,w);M.subscribe("back",w.Py,w);if(w.y$){g.AB(M.element,L?"ytp-panel-animate-back":"ytp-panel-animate-forward");M.CV(w.content);M.focus();w.element.scrollLeft=0;w.element.scrollTop=0;var Z=w.size;vSI(w);g.Du(w.element,Z);w.D=new g.ui(function(){fbJ(w,D,M,L)},20,w); w.D.start()}else M.CV(w.content),D&&D.detach()}; fbJ=function(w,D,M,L){w.D.dispose();w.D=null;g.AB(w.element,"ytp-popup-animating");L?(g.AB(D.element,"ytp-panel-animate-forward"),g.D6(M.element,"ytp-panel-animate-back")):(g.AB(D.element,"ytp-panel-animate-back"),g.D6(M.element,"ytp-panel-animate-forward"));g.Du(w.element,w.size);w.W=new g.ui(function(){g.D6(w.element,"ytp-popup-animating");D.detach();g.MC(D.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);w.W.dispose();w.W=null},250,w); w.W.start()}; Bak=function(w){w.D&&g.Qf(w.D);w.W&&g.Qf(w.W)}; Fa=function(w){g.R$.call(this,w,"ytp-shopping-product-menu");this.VF=new g.jt(this.K);g.T(this,this.VF);this.hide();g.o$(this,this.VF);g.mH(this.K,this.element,4)}; rfS=function(w,D,M){var L,Z=D==null?void 0:(L=D.text)==null?void 0:L.simpleText;Z&&(M=q8T(w,M,Z,D==null?void 0:D.icon,D==null?void 0:D.secondaryIcon),D.navigationEndpoint&&M.listen("click",function(){w.K.Q7("innertubeCommand",D.navigationEndpoint);w.hide()},w))}; eKl=function(w,D,M){var L,Z=D==null?void 0:(L=D.text)==null?void 0:L.simpleText;Z&&q8T(w,M,Z,D==null?void 0:D.icon).listen("click",function(){var k;(D==null?void 0:(k=D.icon)==null?void 0:k.iconType)==="HIDE"?w.K.publish("featuredproductdismissed"):D.serviceEndpoint&&w.K.Q7("innertubeCommand",D.serviceEndpoint);w.hide()},w)}; q8T=function(w,D,M,L,Z){D=new g.EH(g.pi({},[],!1,!!Z),D,M);Z&&D.updateValue("secondaryIcon",X4r(Z));D.setIcon(X4r(L));g.T(w,D);w.VF.sB(D,!0);return D}; X4r=function(w){if(!w)return null;switch(w.iconType){case "ACCOUNT_CIRCLE":return{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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 Ixx();case "HIDE":return{Z:"svg",S:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"g",N:[{Z:"path",S:{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 iI()}}; Gz=function(w){N6.call(this,w,!1,!0);this.isCounterfactual=this.V=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.G=!0;this.overflowButton=new g.J({Z:"button",Yt:["ytp-featured-product-overflow-icon","ytp-button"],S:{"aria-haspopup":"true"}});this.overflowButton.hide();g.T(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.J({Z:"img",J:"ytp-suggested-action-badge-img",S:{src:"{{url}}"}}); this.thumbnailImage.hide();g.T(this,this.thumbnailImage);this.thumbnailIcon=new g.J({Z:"div",J:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.T(this,this.thumbnailIcon);this.banner=new g.J({Z:"a",J:"ytp-suggested-action-container",N:[this.thumbnailImage,this.thumbnailIcon,{Z:"div",J:"ytp-suggested-action-details",N:[{Z:"text",J:"ytp-suggested-action-title",LV:"{{title}}"},{Z:"text",J:"ytp-suggested-action-subtitle",LV:"{{subtitle}}"},{Z:"text",J:"ytp-suggested-action-metadata-text", LV:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.T(this,this.banner);this.banner.CV(this.L.element);this.j(this.K,"videodatachange",this.onVideoDataChange);this.j(this.K,g.QG("suggested_action_view_model"),this.vl9);this.j(this.K,g.JL("suggested_action_view_model"),this.lvL);this.j(this.overflowButton.element,"click",this.Ja);this.j(w,"featuredproductdismissed",this.Nh);this.K.createServerVe(this.banner.element,this.banner,!0)}; TaS=function(w){w.isInitialized&&(w.enabled=w.isVisible,w.V7=w.isVisible,xe(w),w.Lf(),w.thumbnailImage.h1(w.isVisible),w.shouldHideDismissButton||w.dismissButton.h1(w.isVisible),w.shouldShowOverflowButton&&w.overflowButton.h1(w.isVisible))}; s1=function(){Gz.apply(this,arguments)}; u2r=function(w){tX.call(this,w);this.T=new s1(this.api);g.T(this,this.T);g.mH(this.api,this.T.element,4)}; a$=function(w){tX.call(this,w);var D=this;this.T=!0;var M=new g.xM(w);g.T(this,M);M.j(w,"internalaudioformatchange",function(L,Z){S8k(D,L,Z)}); M.j(w,"videoplayerreset",function(){Q7x(D)}); M.j(w,"videodatachange",function(L,Z){D.onVideoDataChange(L,Z)})}; S8k=function(w,D,M){if(M){var L="";JfK(w,D)&&(L=D,w.api.X().Nd=D);if(L&&zKK(w,L)){BjN(w.api,L);var Z;X_(sK(w.api.X(),(Z=w.api.getVideoData())==null?void 0:g.E9(Z)),function(k){VeJ(w,L,k)})}}}; Q7x=function(w){var D;if((D=Ih())==null?0:D.size){var M;X_(sK(w.api.X(),(M=w.api.getVideoData())==null?void 0:g.E9(M)),function(L){(L=PFK(L))&&zKK(w,L)&&(w.api.X().Nd=L)})}}; VeJ=function(w,D,M){PFK(M)!==D&&(OER([{settingItemId:vp(M),settingOptionValue:{stringValue:D}}]),X_(w.wZ(),function(L){yzK(L,vp(M),{stringValue:D})}))}; KNI=function(w,D){Tf(X_(X_(w.wZ(),function(M){return iVx(M,[vp(D)])}),function(M){if(M){M=g.x(M); for(var L=M.next();!L.done;L=M.next()){var Z=L.value;L=Z.key;Z=Z.value;L&&Z&&(OER([{settingItemId:L,settingOptionValue:Z}]),Q7x(w))}}}),function(){w.T=!0})}; JfK=function(w,D){w=w.api.getAvailableAudioTracks();w=g.x(w);for(var M=w.next();!M.done;M=w.next())if(M=M.value,M.getLanguageInfo().getId()===D)return M;return null}; PFK=function(w){w=vp(w);var D=Ih();w=D?D.get(w):void 0;return w&&w.stringValue?w.stringValue:""}; vp=function(w){var D=(484).toString();w&&(D=(483).toString());return D}; zKK=function(w,D){var M;return D.split(".")[0]!==""&&((M=w.api.getVideoData())==null?void 0:!hW(M))}; OER=function(w){var D=Ih();D||(D=new Map);w=g.x(w);for(var M=w.next();!M.done;M=w.next())M=M.value,D.set(M.settingItemId,M.settingOptionValue);D=JSON.stringify(Object.fromEntries(D));g.gQ("yt-player-user-settings",D,2592E3)}; g.cp=function(w,D,M,L,Z,k,b){g.EH.call(this,g.pi({"aria-haspopup":"true"}),D,w);this.Ac=L;this.B=!1;this.L=null;this.options={};this.kA=new g.jt(M,void 0,w,Z,k,b);g.T(this,this.kA);this.listen("keydown",this.eP);this.listen("click",this.open)}; mdJ=function(w){if(w.L){var D=w.options[w.L];D.element.getAttribute("aria-checked");D.element.setAttribute("aria-checked","false");w.L=null}}; AfC=function(w,D){g.cp.call(this,"Sleep timer",g.GU.SLEEP_TIMER,w,D);this.K=w;this.Y={};this.D=this.V_("Off");this.W=this.T="";w.C("web_settings_menu_icons")&&(D=w.C("delhi_modern_web_player_icons")?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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(D)); this.V=new g.J({Z:"div",Yt:["ytp-menuitem-label-wrapper"],N:[{Z:"div",LV:"End of video"},{Z:"div",Yt:["ytp-menuitem-sublabel"],LV:"{{content}}"}]});g.T(this,this.V);this.listen("click",this.onClick);this.j(w,"videodatachange",this.onVideoDataChange);this.j(w,"presentingplayerstatechange",this.Sk);this.j(w,"settingsMenuVisibilityChanged",this.gm);w.createClientVe(this.element,this,218889);this.Sk();this.K.Q7("onSleepTimerFeatureAvailable")}; wGa=function(w){var D="Off 10 15 20 30 45 60".split(" "),M;((M=w.K.getVideoData())==null?0:M.isLivePlayback)||D.push("End of video");M=w.K.getPlaylist();var L;M&&((L=M.listId)==null?void 0:L.type)!=="RD"&&D.push("End of playlist");w.cX(g.yR(D,w.V_));w.Y=g.Ol(D,w.V_,w);D=w.V_("End of video");w.options[D]&&g.lg(w.options[D],w.V)}; DFS=function(w,D){var M=w.Y[D],L=M==="End of video"||M==="End of playlist";M==="Off"&&(w.T="");w.K.getPlayerState()!==0&&w.K.getPlayerState()!==5||!L?(w.D=D,g.cp.prototype.W9.call(w,D),w.V4(D),w.K.Q7("onSleepTimerSettingsChanged",M)):w.K.Q7("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; Bp=function(w){tX.call(this,w);var D=this;w.addEventListener("settingsMenuInitialized",function(){D.menuItem||(D.menuItem=new AfC(D.api,D.api.Vg()),g.T(D,D.menuItem))}); w.addEventListener("openSettingsMenuItem",function(M){if(M==="menu_item_sleep_timer"){if(!D.menuItem){var L;(L=D.api.Vg())==null||L.XQ()}D.menuItem.open()}}); Ro(w,"resetSleepTimerMenuSettings",function(){D.resetSleepTimerMenuSettings()}); Ro(w,"setSleepTimerTimeLeft",function(M){D.setSleepTimerTimeLeft(M)}); Ro(w,"setVideoTimeLeft",function(M){D.setVideoTimeLeft(M)})}; M7I=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"onSnackbarMessage",function(M){switch(M){case 1:M=D.api.getPlayerStateObject(),M.isBuffering()&&(D.api.C("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.z(M,8)&&g.z(M,16))&&D.api.Q7("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.q6=function(w,D,M,L,Z){D=D===void 0?!1:D;L=L===void 0?!1:L;Z=Z===void 0?!1:Z;g.mI.call(this);this.B=Z;this.G=!1;this.D=new U4(this);this.W=this.Y=null;this.L=this.V=!1;g.T(this,this.D);this.target=w;this.T=D;this.U=M||w;this.G=L;D&&(g.Eg&&this.target.setAttribute("draggable","true"),Z||(this.target.style.touchAction="none"));f4(this)}; rM=function(w){g.NA(w.D,!w.T)}; f4=function(w){w.W=null;w.Y=null;w.j(et("over"),w.QC);w.j("touchstart",w.Tp);w.T&&w.j(et("down"),w.QJL)}; L1K=function(w,D){for(var M=0;Mp.start&&M>=5;N+=v}Z=N.substr(0,4)+" "+N.substr(4,4)+" "+N.substr(8,4)+" "+(N.substr(12,4)+" "+N.substr(16,4))}else Z="";b={video_id_and_cpn:String(D.videoId)+" / "+Z,codecs:"",dims_and_frames:"",bandwidth_kbps:b.toFixed(0)+" Kbps",buffer_health_seconds:l.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:E?"":"display:none",drm:E,debug_info:M,extra_debug_info:"",bandwidth_style:h,network_activity_style:h,network_activity_bytes:C.toFixed(0)+" KB",shader_info:W,shader_info_style:W?"":"display:none",playback_categories:""};C=L.clientWidth+"x"+L.clientHeight+(p>1?"*"+p.toFixed(2):"");l="-";k.totalVideoFrames&&(l=(k.droppedVideoFrames||0)+" dropped of "+k.totalVideoFrames);b.dims_and_frames=C+" / "+l;w=w.getVolume();C=m8I(D);var f;if((f=D.D)==null?0:f.audio.V)f= "VB";else{var e;f=((e=D.D)==null?0:e.audio.T)?"DRC":Math.round(w*C)+"%"}e=Math.round(w)+"% / "+f;f=D.wz.toFixed(1);isFinite(Number(f))&&(e+=" (content loudness "+f+"dB)");b.volume=e;b.resolution=L.videoWidth+"x"+L.videoHeight;if(L=D.V){if(e=L.video)f=e.fps,f>1&&(b.resolution+="@"+f),(f=k.gh)&&f.video&&(b.resolution+=" / "+f.video.width+"x"+f.video.height,f.video.fps>1&&(b.resolution+="@"+f.video.fps)),b.codecs=Cnk(L),!D.D||L.audio&&L.video?L.Rr&&(b.codecs+=" / "+L.Rr+"A"):b.codecs+=" / "+Cnk(D.D), e.T||e.primaries?(f=e.T||"unknown",f==="smpte2084"?f+=" (PQ)":f==="arib-std-b67"&&(f+=" (HLG)"),b.color=f+" / "+(e.primaries||"unknown"),b.color_style=""):b.color_style="display:none";if(L.debugInfo)for(b.fmt_debug_info="",L=g.x(L.debugInfo),e=L.next();!e.done;e=L.next())e=e.value,b.fmt_debug_info+=e.label+":"+e.text+" ";b.fmt_debug_info_style=b.fmt_debug_info&&b.fmt_debug_info.length>0?"":"display:none"}L=D.isLivePlayback;e=D.G3;b.live_mode_style=L||e?"":"display:none";b.live_latency_style=L?"": "display:none";if(e)b.live_mode="Post-Live"+(qQ(D)?" Manifestless":"");else if(L){e=k.EP;b.live_latency_secs=e.toFixed(2)+"s";L=qQ(D)?"Manifestless, ":"";D.nV&&(L+="Windowed, ");f="Uncertain";if(e>=0&&e<120)if(D.latencyClass&&D.latencyClass!=="UNKNOWN")switch(D.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=D.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";L+=f;(e=k.S_)&&(L+=", seq "+e.sequence);b.live_mode=L}!k.isGapless||nL(D)&&k.aT||(b.playback_categories+="Gapless ");b.playback_categories_style=b.playback_categories?"":"display:none";b.bandwidth_samples=k.Mj;b.network_activity_samples=k.xp;b.live_latency_samples=k.p5;b.buffer_health_samples=k.FG;k=g.dZ(D);if(D.cotn||k)b.cotn_and_local_media=(D.cotn?D.cotn:"null")+" / "+k;b.cotn_and_local_media_style=b.cotn_and_local_media?"":"display:none"; Io(D,"web_player_release_debug")?(b.release_name=Y[30],b.release_style=""):b.release_style="display:none";b.debug_info&&t.length>0&&b.debug_info.length+t.length<=60?b.debug_info+=" "+t:b.extra_debug_info=t;b.extra_debug_info_style=b.extra_debug_info&&b.extra_debug_info.length>0?"":"display:none";return b}; Cnk=function(w){var D=/codecs="([^"]*)"/.exec(w.mimeType);return D&&D[1]?D[1]+" ("+w.itag+")":w.itag}; zz=function(w,D,M,L,Z){g.J.call(this,{Z:"div",J:"ytp-horizonchart"});this.Y=D;this.sampleCount=M;this.D=L;this.W=Z;this.index=0;this.heightPx=-1;this.L=this.V=null;this.T=Math.round(w/M);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.Y+"em"}; VT=function(w,D){if(w.heightPx===-1){var M=null;try{M=g.tM("CANVAS"),w.V=M.getContext("2d")}catch(C){}if(w.V){var L=w.T*w.sampleCount;w.L=M;w.L.width=L;w.L.style.width=L+"px";w.element.appendChild(w.L)}else for(w.sampleCount=Math.floor(w.sampleCount/4),w.T*=4,M=0;M1?2:1,w.L.height=w.heightPx*M,w.L.style.height= w.heightPx+"px",w.V.scale(1,M)));D=g.x(D);for(L=D.next();!L.done;L=D.next()){M=w;var Z=w.index,k=L.value;for(L=0;L+20&&g.dE(D.V.element);L.classList.add("ytp-timely-actions-overlay");D.V.element.appendChild(L)}); g.T(this,this.V);this.C("web_player_overlay_positioned_layout")?this.events.j(w,"basechromeinitialized",function(){D.api.vH(D.V.element,4,!0);D.V.element.setAttribute("data-overlay-order","10")}):g.mH(this.api,this.V.element,4)}; jiN=function(w){w.timelyActions&&(w.D=w.timelyActions.reduce(function(D,M){if(M.cueRangeId===void 0)return D;D[M.cueRangeId]=0;return D},{}))}; ms=function(w,D){if(w.timelyActions){w=g.x(w.timelyActions);for(var M=w.next();!M.done;M=w.next())if(M=M.value,M.cueRangeId===D)return M}}; gcI=function(w,D){if((w=ms(w,D))&&w.onCueRangeExit)return n1(w.onCueRangeExit)}; UFK=function(w,D){return w.L===void 0?!1:D.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(D.seekLengthMilliseconds)===5E3?w.L===72:D.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(D.seekLengthMilliseconds)===1E4?w.L===74:D.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(D.seekLengthMilliseconds)===5E3?w.L===71:D.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(D.seekLengthMilliseconds)===1E4?w.L===73:!1}; RCN=function(w,D){var M=Number(D==null?void 0:D.maxVisibleDurationMilliseconds);M&&(AD(w),w.V7=setTimeout(function(){if(w.T!==void 0&&(D==null?void 0:D.cueRangeId)===w.T){w.B=!1;var L=gcI(w,w.T);L&&w.api.Q7("innertubeCommand",L)}},M))}; AD=function(w){w.V7&&clearTimeout(w.V7);w.V7=void 0;w.B=!1}; xFS=function(w){if(w=w.getWatchNextResponse()){var D,M;w=(D=w.playerOverlays)==null?void 0:(M=D.playerOverlayRenderer)==null?void 0:M.timelyActionsOverlayViewModel;D=g.Q(w,ocN);if(D!=null&&D.timelyActions)return D==null?void 0:D.timelyActions.map(function(L){return g.Q(L,ncj)}).filter(function(L){return!!L})}}; F1J=function(w){tX.call(this,w);var D=this;oo(this.api,"getPlaybackRate",function(){return D.api.getPlaybackRate()}); oo(this.api,"setPlaybackRate",function(M){typeof M==="number"&&D.api.setPlaybackRate(M)})}; wS=function(w,D,M,L,Z){HR.call(this,"VOICE_BOOST",g.GU.RA);this.K=w;this.L=D;this.V=M;this.hasVoiceBoostAudioTrack=L;this.getVoiceBoostState=Z;this.T=!1;this.Ac=this.K.C("html5_enable_new_audio_settings_menu")?w.Vg().zn:w.Vg();this.j(w,"videodatachange",this.xP.bind(this));this.j(w,"onPlaybackAudioChange",this.xP);this.j(w,"audiopreferencechange",this.xP);this.K.C("html5_enable_new_audio_settings_menu")||this.setIcon(o7K());this.subscribe("select",this.D,this);this.xP()}; siR=function(w){tX.call(this,w);var D=this;this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"settingsMenuInitialized",function(){G0j(D)}); Ro(this.api,"getVoiceBoostUserPreference",function(){return D.getVoiceBoostUserPreference()}); Ro(this.api,"setVoiceBoostUserPreference",function(L){D.setVoiceBoostUserPreference(L)}); Ro(this.api,"hasVoiceBoostAudioTrack",function(){return D.hasVoiceBoostAudioTrack()}); Ro(this.api,"getVoiceBoostState",function(){return D.getVoiceBoostState()}); var M;this.T=(M=wSN())!=null?M:0;this.updateEnvironmentData()}; G0j=function(w){w.menuItem||(w.menuItem=new wS(w.api,function(D){w.setVoiceBoostUserPreference(D)},function(){return w.getVoiceBoostUserPreference()},function(){return w.hasVoiceBoostAudioTrack()},function(){return w.getVoiceBoostState()}),g.T(w,w.menuItem))}; ank=function(w){w=w.M8();if(!w)return!1;w=g.Kj(w).exp||"";return w.includes("xpv")||w.includes("xpe")}; vcC=function(w){w=g.x(g.Dl(w,!0));for(var D=w.next();!D.done;D=w.next())if(ank(D.value))return!0;return!1}; cyr=function(w,D){w=g.x(g.Dl(w,!0));for(var M=w.next();!M.done;M=w.next())if(M=M.value,ank(M)){var L={potc:"1",pot:D};M.url&&(M.url=m0(M.url,L))}}; B$S=function(w){return g.B(function(D){if(D.T==1)return g.jN(D,2),g.c(D,w,4);if(D.T!=2)return g.oT(D,0);g.FK(D);g.Hr(D)})}; LT=function(w){tX.call(this,w);var D=this;this.useLivingRoomPoToken=!1;this.W=new g.l_;this.T=!1;this.Wz=null;this.U=!1;this.D=null;this.Y=!1;var M=w.X().getWebPlayerContextConfig();this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"spsumpreject",function(L,Z,k){D.Y=Z;L&&D.U&&!D.D&&(D.C("html5_generate_content_po_token")&&k?D.eC(k):D.C("html5_generate_session_po_token")&&fnj(D));D.D||D.api.H_("stp",{s:+D.U,b:+D.Y})}); this.events.j(w,"poTokenVideoBindingChange",function(L){D.eC(L)}); this.useLivingRoomPoToken=!(M==null||!M.useLivingRoomPoToken);w.addEventListener("csiinitialized",function(){D.Wz=w.nJ();var L=(D.C("html5_generate_session_po_token")||D.C("html5_generate_content_po_token"))&&!D.useLivingRoomPoToken;try{if(D.C("html5_use_shared_owl_instance"))qSJ(D);else if(L){D.Wz.Zy("pot_isc");var Z=g.A3(D.api.X().experiments,"html5_webpo_kaios_defer_timeout_ms");Z?(D.L=Bx(),g.C7(function(){Mr(D)},Z)):D.C("html5_webpo_idle_priority_job")?(D.L=Bx(),g.SY(g.Ja(),function(){Mr(D)})): Mr(D)}}catch(k){k instanceof Error&&g.jn(k)}}); w.addEventListener("trackListLoaded",this.Eg.bind(this));w.Ce(this)}; ryT=function(w){var D=U2(w.experiments,"html5_web_po_request_key");return D?D:g.hL(w)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; eCN=function(w){var D=new Akl,M={},L=(M["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",M);return new $a(D,w,function(){return L})}; XGN=function(w){return new i_(w)}; Zl=function(w,D){w.C("html5_webpo_bge_ctmp")&&w.api.H_(D,{hwpo:!!w.V,hwpor:w.T})}; qSJ=function(w){var D,M;g.B(function(L){if(L.T==1)return Zl(w,"swpo_i"),w.L=Bx(),kX(w),g.c(L,KJ(),2);if(L.T!=3)return D=L.V,Zl(w,"swpo_co"),g.c(L,G5K(D),3);M=L.V;w.C("html5_web_po_token_disable_caching")||M.cG(150);w.V=M;Zl(w,"swpo_cc");B$S(M.pF()).then(function(){w.T=!0;w.W.resolve();Zl(w,"swpo_re")}); g.C7(function(){Mr(w);Zl(w,"swpo_si")},0); g.Hr(L)})}; SSK=function(w){var D=w.api.X(),M=ryT(D);M=eCN(M);var L=M.uF.bind(M);M.uF=function(C){var l;return g.B(function(E){if(E.T==1)return g.c(E,L(C),2);l=E.V;w.api.H_("itr",{});return E.return(l)})}; try{var Z=XGN({Qn:M,qc:{maxAttempts:5},yD:{o4:"CLEn",disable:D.experiments.ek("html5_web_po_disable_remote_logging")||T$K.includes(g.ER(D.le)||""),Tv:P$T(D.experiments),z5:D.experiments.ek("wpo_gel_strz")?function(C){var l=upx.get(C);l||(l=new t$K(C),l=new g.fv(l),upx.set(C,l));return l}:void 0, X_E:w.C("wpo_dis_lfdms")?0:1E3},hz7:g.jn});var k=new vx({md:Z,Qn:M,onError:g.jn});B$S(k.pF()).then(function(){w.T=!0;w.W.resolve()}); w.C("html5_web_po_token_disable_caching")||k.cG(150);g.T(w,Z);g.T(w,k);w.V=k}catch(C){g.jn(C);var b;(b=Z)==null||b.dispose()}}; Mr=function(w){var D=w.api.X();w.Wz.Zy("pot_ist");w.V||SSK(w);w.C("html5_bandaid_attach_content_po_token")||(w.C("html5_generate_session_po_token")&&(kX(w),fnj(w)),D=g.A3(D.experiments,"html5_session_po_token_interval_time_ms")||0,D>0&&(w.G=g.lU(function(){kX(w)},D)),w.U=!0)}; kX=function(w){var D,M,L,Z;g.B(function(k){if(!w.C("html5_generate_session_po_token")||w.useLivingRoomPoToken)return k.return();D=w.api.X();M=g.Xg("EOM_VISITOR_DATA")||g.Xg("VISITOR_DATA");L=D.L7?D.datasyncId:M;Z=U2(D.experiments,"html5_mock_content_binding_for_session_token")||D.livingRoomPoTokenId||L;D.QF=bD(w,Z);g.Hr(k)})}; bD=function(w,D){if(!w.V){if(w.L)try{return w.L(D)}catch(k){g.jn(k)}return""}try{w.Wz.Zy(w.T?"pot_cms":"pot_csms");var M={gE:!0,Fe:!0,k7:D};w.C("html5_web_po_token_disable_caching")||(M.CD={bQ:D,Pv:!0,Bu:!0});var L=w.V.uL(M);w.Wz.Zy(w.T?"pot_cmf":"pot_csmf");if(w.T){var Z;(Z=w.D)==null||Z.resolve();w.D=null;w.Y&&(w.Y=!1,w.api.app.IJ().lf(!1))}return L}catch(k){return g.jn(k),""}}; fnj=function(w){w.V&&(w.D=new HF,w.W.promise.then(function(){w.Wz.Zy("pot_if");kX(w)}))}; g.YX=function(w,D,M){g.Lt(w.element,"ytp-suggestion-set",!!D.videoId);var L=D.playlistId;M=D.yL(M?M:"mqdefault.jpg");var Z=null,k=null;D instanceof KN&&(D.lengthText?(Z=D.lengthText||null,k=D.r6||null):D.lengthSeconds&&(Z=g.iQ(D.lengthSeconds),k=g.iQ(D.lengthSeconds,!0)));var b=!!L;L=b&&Pn(L).type==="RD";var C=D instanceof KN?D.isLivePlayback:null,l=D instanceof KN?D.isUpcoming:null,E=D.author,p=D.shortViewCount,W=D.publishedTimeText,h=[],t=[];E&&h.push(E);p&&(h.push(p),t.push(p));W&&t.push(W);M= {title:D.title,author:E,author_and_views:h.join(" \u2022 "),aria_label:D.ariaLabel||g.M0("Watch $TITLE",{TITLE:D.title}),duration:Z,timestamp:k,url:D.N2(),is_live:C,is_upcoming:l,is_list:b,is_mix:L,background:M?"background-image: url("+M+")":"",views_and_publish_time:t.join(" \u2022 "),autoplayAlternativeHeader:D.Wi};D instanceof OK&&(M.playlist_length=D.playlistLength);w.update(M)}; g.CT=function(w){var D=w.X(),M=g.d5||g.mJ?{style:"will-change: opacity"}:void 0,L=D.D,Z=["ytp-modern-videowall-still"];D.V&&Z.push("ytp-videowall-show-text");g.J.call(this,{Z:"a",Yt:Z,S:{href:"{{url}}",target:L?D.B:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},N:[{Z:"div",J:"ytp-modern-videowall-still-image",S:{style:"{{background}}"},N:[{Z:"span",J:"ytp-modern-videowall-still-info-duration",LV:"{{duration}}"}]},{Z:"span",J:"ytp-modern-videowall-still-info", S:{"aria-hidden":"true"},N:[{Z:"span",J:"ytp-modern-videowall-still-info-bg",N:[{Z:"span",J:"ytp-modern-videowall-still-info-content",S:M,N:[{Z:"span",J:"ytp-modern-videowall-still-info-title",LV:"{{title}}"},{Z:"span",J:"ytp-modern-videowall-still-info-author",LV:"{{author_and_views}}"},{Z:"span",J:"ytp-modern-videowall-still-info-live",LV:"Live"}]}]}]},{Z:"span",Yt:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],S:{"aria-hidden":"true"},N:[{Z:"span",J:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{Z:"span",J:"ytp-modern-videowall-still-listlabel-length",N:[" (",{Z:"span",LV:"{{playlist_length}}"},")"]}]},{Z:"span",Yt:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],S:{"aria-hidden":"true"},N:[{Z:"span",J:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{Z:"span",J:"ytp-modern-videowall-still-listlabel-length",LV:" (50+)"}]}]});this.suggestion=null;this.V=L;this.api=w;this.T=new g.xM(this);g.T(this,this.T);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.T.j(w,"videodatachange",this.onVideoDataChange);w.createServerVe(this.element,this);this.onVideoDataChange()}; g.Qix=function(w,D){if(w.suggestion!==D){w.suggestion=D;var M=w.api.X();g.YX(w,D,"hqdefault.jpg");if(g.w0(M)&&!w.api.C("web_player_log_click_before_generating_ve_conversion_params")){M=D.N2();var L={};g.F0(w.api,"addEmbedsConversionTrackingParams",[L]);M=g.dh(M,L);w.updateValue("url",M)}(D=(D=D.sessionData)&&D.itct)&&w.api.setTrackingParams(w.element,D)}}; zCJ=function(w,D){g.J.call(this,{Z:"div",Yt:["ytp-fullscreen-grid"],N:[{Z:"div",J:"ytp-fullscreen-grid-hover-overlay",S:{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"},N:[{Z:"div",J:"ytp-fullscreen-grid-hover-overlay-chevron",N:[{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"g",S:{filter:"url(#filter0_d_3104_799356)"},N:[{Z:"path",S:{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"}}]},{Z:"defs",N:[{Z:"filter",S:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},N:[{Z:"feFlood",S:{"flood-opacity":"0",result:"BackgroundImageFix"}},{Z:"feColorMatrix",S:{"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"}},{Z:"feOffset"},{Z:"feGaussianBlur",S:{stdDeviation:"0.5"}},{Z:"feComposite",S:{in2:"hardAlpha",operator:"out"}},{Z:"feColorMatrix",S:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {Z:"feBlend",S:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{Z:"feBlend",S:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{Z:"div",J:"ytp-fullscreen-grid-main-content",N:[{Z:"div",J:"ytp-fullscreen-grid-header",N:[{Z:"div",J:"ytp-fullscreen-grid-header-buttons",N:[{Z:"button",Yt:["ytp-grid-replay-button","ytp-button"],S:{title:"Replay","aria-keyshortcuts":"k","aria-label":"Replay","data-title-no-tooltip":"Replay"}, N:[axj()]},{Z:"button",J:"ytp-fullscreen-grid-header-button",S:{"aria-label":"{{ariaLabel}}"}}]},{Z:"button",Yt:["ytp-grid-menu-close","ytp-button"],S:{"aria-label":"Close"},N:[g.pb()]}]},{Z:"div",J:"ytp-fullscreen-grid-stills-container"}]}]});var M=this;this.player=w;this.stills=[];this.videoData=null;this.currentState=0;this.Y=this.Z5("ytp-fullscreen-grid-main-content");this.W=this.Z5("ytp-fullscreen-grid-header");w=this.Z5("ytp-fullscreen-grid-header-buttons");this.L=this.Z5("ytp-grid-menu-close"); this.V=this.Z5("ytp-grid-replay-button");this.T=this.Z5("ytp-fullscreen-grid-header-button");this.B=this.Z5("ytp-fullscreen-grid-stills-container");this.D=new g.xM(this);g.T(this,this.D);this.G=D;if(this.W&&this.Y&&w&&this.B&&this.T&&this.L){if(D=this.Z5("ytp-fullscreen-grid-hover-overlay"))this.j(D,"click",this.cf),T3(this.player,D,this);this.V&&(this.j(this.V,"click",function(L){M.iU(L)}),T3(this.player,this.V,this)); this.T&&this.j(this.T,"click",this.cf);this.L&&this.j(this.L,"click",this.cf);if(D=this.player.getVideoData(1))this.videoData=D,Jyk(this);this.player.createClientVe(this.W,this,223051);this.D.j(this.player,"videodatachange",this.onVideoDataChange);this.D.j(this.player,"presentingplayerstatechange",this.fJ)}}; Jyk=function(w){var D=w.player.getPlayerStateObject();g.Lt(w.player.getRootNode(),"ytp-grid-ended-state",g.z(D,2))}; Pna=function(w){g.J.call(this,{Z:"div",Yt:["ytp-more-videos-button","ytp-button"],S:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},N:[{Z:"div",J:"ytp-more-videos-button-thumbnail"},{Z:"span",J:"ytp-more-videos-button-title",LV:"{{title}}"}]});this.K=w;this.V=this.Z5("ytp-more-videos-button-thumbnail");this.L=this.Z5("ytp-more-videos-button-title");this.T=new g.xM(this);g.T(this,this.T);this.T.j(this.K,"videodatachange",this.yJ);this.yJ();this.listen("click",this.onClick);V7C(this, 0);this.hide()}; V7C=function(w,D){switch(D){case 2:D="Hide videos";var M="Hide recommendations grid";break;default:D="More videos",M="Show recommendations grid"}w.updateValue("title",D);w.element.ariaLabel=M;w.L.textContent=D}; pT=function(w){tX.call(this,w);var D=this;this.G=this.T=this.V=0;this.Y=null;this.nV=this.D=0;this.isEnded=!1;this.U=null;var M=new g.xM(w);g.T(this,M);this.c_=this.api.C("web_player_grid_natural_scroll");this.W_=g.A3(this.api.X().experiments,"web_player_default_peeking_px");this.Jc=this.api.C("delhi_modern_player_enable_pause_peeking");this.Md=g.A3(this.api.X().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.XE=this.api.C("web_player_imax_theater_mode");this.L=this.api.C("web_player_enable_fullscreen_grid_components"); this.fV=this.api.C("web_player_enable_more_videos_button");this.c_&&g.AB(this.api.getRootNode(),"ytp-grid-default-scroll");M.j(w,"fullscreentoggled",function(){lD(D)}); M.j(w,"autohideupdate",function(L){L&&D.V===2&&Ec(D,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED")}); M.j(w,"videodatachange",function(){if(D.L){var L=D.api.getVideoData(1);D.videoData!==L&&D.V===2&&(g.D6(D.api.getRootNode(),"ytp-grid-scrolling"),Ec(D,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));D.videoData=L}},this); M.j(w,"sizestylechange",function(){D.L&&lD(D)}); Ro(this.api,"setFullscreenQuickActions",function(L){D.setFullscreenQuickActions(L)}); Ro(this.api,"setPlayerOverlayVideoDetailsRenderer",function(L){D.setPlayerOverlayVideoDetailsRenderer(L)}); this.L&&OCl(this,M,w)}; OCl=function(w,D,M){D.j(M,"keyboardserviceglobalkeydown",function(L,Z){w.L&&L.keyCode===86&&!L.repeat&&w.V!==0&&(Z&&(Z.zq=!0),w.y7("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); D.j(w.api.getRootNode(),"wheel",function(L){if(!w.U){var Z;if(w.L&&(Z=w.W)!=null&&Z.element&&w.V!==0&&WV(w))if(g.AB(w.api.getRootNode(),"ytp-grid-scrolling"),w.D===0&&(w.D=window.innerHeight),w.V===1)w.D!==0&&(w.T+=L.deltaY/w.D,w.T=Math.min(Math.max(w.T,0),.85),hq(w),K1N(w,Math.abs(w.T)>=.85));else if(w.V===2){Z=L.deltaY<0;var k,b=((k=w.W)==null?void 0:k.element.scrollTop)===0;Z&&b?w.D!==0&&(w.T+=L.deltaY/w.D,hq(w),K1N(w,Math.abs(w.T)>=.85)):w.T!==0&&(w.T=0,hq(w))}}},w,!0); D.j(M,"standardControlsInitialized",function(){if(!w.W){w.W=new zCJ(w.api,w.jk.bind(w));w.fV&&(w.B=new Pna(w.api),g.T(w,w.B),w.B.element.setAttribute("data-overlay-order","12"),w.api.vH(w.B.element,4),w.B.listen("click",w.y7,w));g.T(w,w.W);var L=w.api.getRootNode().querySelector(".ytp-chrome-bottom");L&&L.parentNode&&L.parentNode.insertBefore(w.W.element,L.nextSibling);mFR(w)}}); D.j(M,"presentingplayerstatechange",function(){tq(w)}); D.j(M,"autonavvisibility",function(){tq(w)}); w.api.vx().subscribe("visibilitystatechange",function(){tq(w)}); Ayr(w,w.V)}; K1N=function(w,D){w.Y&&clearTimeout(w.Y);w.T===0&&g.D6(w.api.getRootNode(),"ytp-grid-scrolling");D?w9j(w):w.c_?w.c_&&w.T<.1&&(w.Y=window.setTimeout(function(){w9j(w)},1E3)):w.Y=window.setTimeout(function(){w9j(w)},150)}; w9j=function(w){w.Y&&(clearTimeout(w.Y),w.Y=null);w.D=0;w.L&&w.V!==0&&(Math.abs(w.T)>=.15&&w.y7("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),w.T=0,hq(w),g.D6(w.api.getRootNode(),"ytp-grid-scrolling"))}; WV=function(w){return w.api.isFullscreen()||w.XE&&w.api.X1()}; lD=function(w){var D=WV(w);g.Lt(w.api.getRootNode(),"ytp-full-bleed-player",D);w.V7&&g.L6(w.V7,D);w.playerOverlayVideoDetailsRenderer&&g.L6(w.playerOverlayVideoDetailsRenderer,D);w.L&&tq(w)}; tq=function(w){if(w.L){var D;if(w.api.getPresentingPlayerType()===2||w.api.CO()||((D=g.c$(w.api))==null?0:D.kc())||w.api.isMinimized())Ec(w,0);else{if(D=g.z(w.api.getPlayerStateObject(),2))Ec(w,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(w.isEnded&&!D){var M=WV(w)?1:0;w.isEnded=D;Ec(w,M)}else WV(w)?w.V!==2&&Ec(w,1):Ec(w,0);w.isEnded=D}}}; Ec=function(w,D,M){w.V=D;var L;(L=w.W)==null||L.lj(D,M);var Z;(Z=w.B)==null||Z.lj(D);w.T=0;hq(w);Ayr(w,D)}; Ayr=function(w,D){var M=w.api.getRootNode();g.Lt(M,"ytp-fullscreen-grid-peeking",D===1);g.Lt(M,"ytp-fullscreen-grid-active",D===2);D===1&&mFR(w)}; mFR=function(w){var D=w.api.getRootNode();if(w.Jc&&w.api.getPlayerStateObject().isPaused()){var M;var L=(((M=w.W)==null?void 0:M.element.clientWidth)||0)*.5625/3*w.Md||w.W_}else L=w.W_;w.nV=L;D.style.setProperty("--ytp-grid-peek-height",w.nV+"px");g.Lt(D,"ytp-disable-bottom-gradient",w.nV<=12)}; hq=function(w){requestAnimationFrame(function(){var D=w.T-w.G,M=D;w.T!==0&&(M=Math.max(-.01,Math.min(D,.01)));w.G+=M;w.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+w.G.toString());w.G!==w.T&&hq(w)})}; DSk=function(w){tX.call(this,w);var D=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.xM(w);g.T(this,this.events);this.events.j(w,"heartbeatRequest",function(M){if(D.freePreviewUsageDetails.length||D.freePreviewWatchedDuration!==null)M.heartbeatRequestParams||(M.heartbeatRequestParams={}),M.heartbeatRequestParams.unpluggedParams||(M.heartbeatRequestParams.unpluggedParams={}),D.freePreviewUsageDetails.length>0?M.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= D.freePreviewUsageDetails:M.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+D.freePreviewWatchedDuration}}); Ro(w,"setFreePreviewWatchedDuration",function(M){D.freePreviewWatchedDuration=M}); Ro(w,"setFreePreviewUsageDetails",function(M){D.freePreviewUsageDetails=M})}; $X=function(w){g.X.call(this);this.features=[];var D=this.T,M=new Qc(w),L=new $V(w),Z=new $e(w),k=new LT(w);var b=g.pc(w.X())?void 0:new qI(w);var C=new tD(w),l=new W1G(w),E=new F1J(w),p=new Sg(w);var W=g.pc(w.X())?new DSk(w):void 0;var h;var t=(h=w.X().getWebPlayerContextConfig())!=null&&h.cinematicSettingsAvailable?new vR(w):void 0;h=new ug(w);var d=w.C("enable_courses_player_overlay_purchase")?new iAJ(w):void 0;var N=g.x2(w.X())?new W2J(w):void 0;var n=new rW(w);var v=w.X().D?new bAT(w):void 0; var G=g.w0(w.X())?new kaG(w):void 0;var f=w.C("web_player_move_autonav_toggle")&&w.X().FK?new PtC(w):void 0;var e=g.x2(w.X())?new w4R(w):void 0;var S=w.C("web_enable_speedmaster")&&g.x2(w.X())?new uk(w):void 0;var K=w.X().HX?void 0:new InT(w);var V=w.C("report_pml_debug_signal")?new SyR(w):void 0;var CI=new hKR(w),Yx=new I$(w);var lS=g.Fs(w.X())?new FNS(w):void 0;var Wr=navigator.mediaSession&&window.MediaMetadata&&w.X().QW?new Wp(w):void 0;var Mk=w.C("html5_enable_drc")&&!w.X().Y?new fi(w):void 0; var GK=new yc(w);var Vj=g.x2(w.X())?new u2r(w):void 0;var AG=w.C("html5_enable_d6de4")?new ik(w):void 0;var ir=g.x2(w.X())&&w.C("web_sleep_timer")?new Bp(w):void 0;var YB=g.w0(w.X())?new Cha(w):void 0;var aT=new a$(w),b1=new wOr(w),fk=new mvj(w);var SP=w.C("enable_sabr_snackbar_message")?new M7I(w):void 0;var YO=w.C("web_enable_timely_actions")?new HCx(w):void 0;var a=new cR(w);var u1=g.x2(w.X())?new pT(w):void 0;var aS=w.C("html5_enable_voice_boost")?new siR(w):void 0;var LI=w.C("web_player_loop_settings_menu")&& w.X().ZB?new AUx(w):void 0;var g3=g.pc(w.X())?void 0:new ig(w);var H=w.C("web_player_playable_sequences_refactor")?new j7j(w):void 0;var Da=w.C("html5_enable_audio_quality_setting")&&w.C("html5_enable_audio_quality_setting_feature")?new xV(w):void 0;var ok=w.C("html5_ypc_clickwrap_module_refactor")?new ter(w):void 0;var O3=new Q9K(w);w=w.X().C("delhi_modern_web_player")?new DaR(w):void 0;D.call(this,M,L,Z,k,b,C,l,E,p,W,t,h,d,N,n,v,G,f,e,S,K,V,CI,Yx,lS,void 0,Wr,Mk,GK,void 0,Vj,AG,ir,YB,void 0,aT, b1,fk,void 0,SP,YO,a,u1,aS,void 0,LI,void 0,g3,H,Da,ok,O3,w)}; MbN=function(){this.V=this.T=NaN}; L7G=function(w,D){this.mE=w;this.timerName="";this.L=!1;this.V=NaN;this.D=new MbN;this.T=D||null;this.L=!1}; ZFI=function(w,D,M){var L=g.bw(D.P_)&&!D.P_.Y;if(D.P_.nf&&(Mi(D.P_)||D.P_.W_==="shortspage"||oI(D.P_)||L)&&!w.L){w.L=!0;w.Y=D.clientPlaybackNonce;g.Xg("TIMING_ACTION")||e2("TIMING_ACTION",w.mE.csiPageType);w.mE.csiServiceName&&e2("CSI_SERVICE_NAME",w.mE.csiServiceName);if(w.T){L=w.T.nJ();for(var Z=g.x(Object.keys(L)),k=Z.next();!k.done;k=Z.next())k=k.value,xK(k,L[k],w.timerName);L=g.Q6(zPN)(w.T.l0);g.Ng(L,w.timerName);L=w.T;L.T={};L.l0={}}g.Ng({playerInfo:{visibilityState:g.Q6(J5K)()},playerType:"LATENCY_PLAYER_HTML5"}, w.timerName);w.W!==D.clientPlaybackNonce||Number.isNaN(w.V)||(jT("_start",w.timerName)?M=g.Q6(iA)("_start",w.timerName)+w.V:g.jn(new g.qA("attempted to log gapless pbs before CSI timeline started",{cpn:D.clientPlaybackNonce})));M&&!jT("pbs",w.timerName)&&iD(w,M)}}; iD=function(w,D,M){xK("pbs",D!=null?D:(0,g.IC)(),M!=null?M:w.timerName)}; dS=function(w){LyG();MBJ();w.timerName=""}; ksk=function(w){if(w.T){var D=w.T;D.T={};D.l0={}}w.L=!1;w.W=void 0;w.V=NaN}; bFj=function(w,D){g.mI.call(this);this.P_=w;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.U={};this.V=0;if(w=D.session_data)this.sessionData=zQ(w,"&");this.index=Math.max(0,Number(D.index)||0);this.loop=!!D.loop;this.startSeconds=Number(D.startSeconds)||0;this.title=D.playlist_title||"";this.description=D.playlist_description||"";this.author= D.author||D.playlist_author||"";D.video_id&&(this.items[this.index]=D);if(w=D.api)typeof w==="string"&&w.length===16?D.list="PL"+w:D.playlist=w;if(w=D.list)switch(D.listType){case "user_uploads":this.listId=new Vq("UU","PLAYER_"+w);break;default:var M=D.playlist_length;M&&(this.length=Number(M)||0);this.listId=Pn(w);if(w=D.video)this.items=w.slice(0),this.loaded=!0}else if(D.playlist){w=D.playlist.toString().split(",");this.index>0&&(this.items=[]);w=g.x(w);for(M=w.next();!M.done;M=w.next())(M=M.value)&& this.items.push({video_id:M});this.length=this.items.length;if(w=D.video)this.items=w.slice(0),this.loaded=!0}this.setShuffle(!!D.shuffle);if(w=D.suggestedQuality)this.quality=w;this.U=SZ(D,"playlist_");this.L=(D=D.thumbnail_ids)?D.split(","):[]}; YeG=function(w){return!!(w.playlist||w.list||w.api)}; CvS=function(w){var D=w.index+1;return D>=w.length?0:D}; l$N=function(w){var D=w.index-1;return D<0?w.length-1:D}; g.yr=function(w,D,M,L){D=D!==void 0?D:w.index;D=w.items&&D in w.items?w.items[w.order[D]]:null;var Z=null;D&&(M&&(D.autoplay="1"),L&&(D.autonav="1"),Z=new g.db(w.P_,D),g.T(w,Z),Z.PO=!0,Z.startSeconds=w.startSeconds||Z.clipStart||0,w.listId&&(Z.playlistId=w.listId.toString()));return Z}; EHK=function(w,D){w.index=g.X4(D,0,w.length-1);w.startSeconds=0}; p9S=function(w,D){if(D.video&&D.video.length){w.title=D.title||"";w.description=D.description;w.views=D.views;w.likes=D.likes;w.dislikes=D.dislikes;w.author=D.author||"";var M=D.loop;M&&(w.loop=M);M=g.yr(w);w.items=[];for(var L=g.x(D.video),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value)Z.video_id=Z.encrypted_id,w.items.push(Z);w.length=w.items.length;(D=D.index)?w.index=D:w.findIndex(M);w.setShuffle(!1);w.loaded=!0;w.V++;w.T&&w.T()}}; tbr=function(w,D){var M,L,Z,k,b,C,l;return g.B(function(E){if(E.T==1){M=g.XX();var p=w.X(),W={context:g.jf(w),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}},h=p.getWebPlayerContextConfig();if(h==null?0:h.encryptedHostFlags)W.playbackContext.contentPlaybackContext.encryptedHostFlags=h.encryptedHostFlags;if(h==null?0:h.hideInfo)W.playerParams={showinfo:!1};h=p.embedConfig;var t=w.ph;var d=D.docid||D.video_id||D.videoId||D.id;if(!d){d=D.raw_embedded_player_response;if(!d){var N= D.embedded_player_response;N&&(d=JSON.parse(N))}if(d){var n,v,G,f,e,S;d=((S=g.Q((n=d)==null?void 0:(v=n.embedPreview)==null?void 0:(G=v.thumbnailPreviewRenderer)==null?void 0:(f=G.playButton)==null?void 0:(e=f.buttonRenderer)==null?void 0:e.navigationEndpoint,g.HB))==null?void 0:S.videoId)||null}else d=null}n=(n=d)?n:void 0;v=w.playlistId?w.playlistId:D.list;G=D.listType;if(v){var K;G==="user_uploads"?K={username:v}:K={playlistId:v};W7N(h,t,n,D,K,p.experiments);W.playlistRequest=K}else D.playlist? (K={templistVideoIds:D.playlist.toString().split(",")},W7N(h,t,n,D,K,p.experiments),W.playlistRequest=K):n&&(K={videoId:n},t&&p.C("embeds_enable_per_video_embed_config")?K.serializedThirdPartyEmbedConfig=t:h&&(K.serializedThirdPartyEmbedConfig=h),W.singleVideoRequest=K);L=W;Z=g.zN(h8l);g.jN(E,2);return g.c(E,g.FX(M,L,Z),4)}if(E.T!=2)return k=E.V,b=w.X(),D.raw_embedded_player_response=k,b.c_=MA(D,g.w0(b)),b.L=b.c_==="EMBEDDED_PLAYER_MODE_PFL",k&&(C=k,C.trackingParams&&kz(C.trackingParams)),E.return(new g.db(b, D));l=g.FK(E);l instanceof Error||(l=Error("b259802748"));g.HL(l);return E.return(w)})}; W7N=function(w,D,M,L,Z,k){L.index&&(Z.playlistIndex=String(Number(L.index)+1));Z.videoId=M?M:"";D&&k.ek("embeds_enable_per_video_embed_config")?Z.serializedThirdPartyEmbedConfig=D:w&&(Z.serializedThirdPartyEmbedConfig=w)}; g.Uc=function(w,D){IZ.get(w);IZ.set(w,D)}; g.xX=function(w){g.mI.call(this);this.loaded=!1;this.player=w}; $ST=function(){this.V=[];this.T=[]}; g.Dl=function(w,D){return D?w.T.concat(w.V):w.T}; g.Nr=function(w,D){switch(D.kind){case "asr":iFN(D,w.V);break;default:iFN(D,w.T)}}; iFN=function(w,D){g.y1(D,function(M){return w.equals(M)})||D.push(w)}; g.HV=function(w){g.X.call(this);this.d9=w;this.V=new $ST;this.L=null;this.W=[];this.U=[]}; g.js=function(w,D,M){g.HV.call(this,w);this.videoData=D;this.audioTrack=M;this.T=null;this.D=!1;this.W=D.d0;this.U=D.yI;this.D=g.Ys(D)}; g.dSI=function(w,D){var M;return w.X().C("safari_live_drm_captions_fix")&&((M=w.getVideoData())==null?0:M.Ms())?!1:g.pc(w.X())&&!D.isManifestless}; g.gS=function(w,D){return AF(w.info.mimeType)?D?w.info.itag===D:!0:!1}; g.y2K=function(w,D){if(w.T!=null&&g.dSI(D,w.T)&&w.T.T.rawcc!=null)return!0;if(!w.Yl())return!1;D=!!w.T&&w.T.isManifestless&&Object.values(w.T.T).some(function(M){return g.gS(M,"386")}); w=!!w.T&&!w.T.isManifestless&&g.EWr(w.T);return D||w}; g.RZ=function(w,D,M,L,Z,k){g.HV.call(this,w);this.videoId=M;this.PF=Z;this.eventId=k;this.Y={};this.T=null;w=L||g.Kj(D).hl||"";w=w.split("_").join("-");this.D=m0(D,{hl:w})}; I$J=function(w,D){g.X.call(this);var M=this;this.K=w;this.D=D;this.l0={};this.T={};this.V=null;this.L=new Set;this.W=new g.xM(this);this.Bz={tLW:function(){return M.D}}; this.Y=this.K.C("web_player_defer_modules");this.U4=new Map;g.T(this,this.W);this.W.j(w,"videodatachange",this.onVideoDataChange)}; USK=function(w,D){w.V=D}; g.oZ=function(w){return w.U4.get("captions")}; oHr=function(w,D){switch(D){case "ad":return xSN(w);case "annotations_module":return w.K.isEmbedsShortsMode()?w=!1:(D=w.K,w=D.X(),D=D.getVideoData(),w=w.L||D.D4||w.controlsType==="3"?!1:w.Jc.isEmpty()&&w.playerStyle!=="annotation-editor"&&w.playerStyle!=="live-dashboard"?!!D.Md||!!g.Z_(D)||!!g.ks(D):!0),w;case "asmjs":return N7C(w);case "creatorendscreen":return HFr(w);case "embed":return g.w0(w.K.X());case "endscreen":return g.jaa(w);case "heartbeat":return w.Mq();case "kids":return h6(w.K.X()); case "remote":return w.K.X().By;case "miniplayer":return w.K.X().showMiniplayerUiWhenMinimized;case "offline":return w.K.X().CJ;case "captions":return gHI(w);case "unplugged":return g.Y2(w.K.X());case "ux":return w.K.X().bW;case "webgl":return R8T(w);case "ypc":return w.FS();case "ypc_clickwrap":return M6N(w.K.getVideoData());case "yto":return w.K.C("web_player_playable_sequences_refactor")?!1:!!w.K.getVideoData().B.includes("yto");default:return g.HL(Error("Module descriptor "+D+" does not match")), !1}}; nT=function(w,D,M,L,Z){var k;M=M===void 0?!1:M;L=L===void 0?!1:L;var b=w.U4.get(D);if(!b||L)if(Z||(Z=function(){nT(w,D,M,L)}),k||(k=function(){w.K.F6(D)}),b=b||nHS(w,D,oHr(w,D),Z,k))w.U4.set(D,b),b.create(),w.K.publish("modulecreated",D),M&&w.K.Im("onApiChange")}; GsN=function(w){var D=D===void 0?!1:D;var M,L,Z,k,b;return g.B(function(C){if(C.T==1)return(M=w.U4.get("asmjs"))&&!D?C.return(M):(L=IZ.get("asmjs"))!=null?(Z=L,C.KV(2)):g.c(C,new Promise(function(l,E){F7k(w,"asmjs",function(){var p=IZ.get("asmjs");p?l(p):E("cannot load module asmjs")},E)}),3); C.T!=2&&(Z=C.V);k=Z;if(!k)return C.return(Promise.reject("cannot load module asmjs"));b=new k(w.K);w.U4.set("asmjs",b);b.create();return C.return(b)})}; vHK=function(w){saG(w)&&w.KF();a$k(w)&&(nT(w,"captions",!0),nT(w,"endscreen"),w.hn(),nT(w,"creatorendscreen",!0))}; a$k=function(w){var D=w.K.getVideoData(),M=w.Y&&!D.isInlinePlaybackNoAd;w.K.C("html5_defer_modules_on_ads_only")&&!D.isAd()&&(M=!1);return M}; saG=function(w){w=w.K.getVideoData();var D;if(D=w.C("web_player_defer_ad")){if(g.xB(w.B,"ad")||qXC(w)||w.enableServerStitchedDai)w=!1;else{D=w.playerResponse;w=w.startSeconds;var M=D==null?void 0:D.adPlacements;if(D=M){D=Number.MAX_VALUE;M=g.x(M);for(var L=M.next();!L.done;L=M.next())if(L=L.value.adPlacementRenderer){var Z=void 0,k=(Z=L.config)==null?void 0:Z.adPlacementConfig;Z=void 0;if(((Z=k)==null?void 0:Z.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var b=Z=void 0;k=Number((Z=k)==null?void 0:(b= Z.adTimeOffset)==null?void 0:b.offsetStartMilliseconds)||0;b=Z=void 0;L=Number(((Z=L.renderer)==null?void 0:(b=Z.adBreakServiceRenderer)==null?void 0:b.prefetchMilliseconds)||0);L=k-L;L=11;w=w.api.X().G&&qr;return!(!D&&!w)}; Oc=function(w,D){return!w.api.isInline()&&!DfC(w,y$(D))&&g.dJ(D)}; w3k=function(w){w.Bd.pW();if(w.Ax&&w.WG)w.WG=!1;else if(!w.api.X().Md&&!w.M3()){var D=w.api.getPlayerStateObject();g.z(D,2)&&g.QP(w.api)||w.xF(D);!w.api.X().iW||D.isCued()||g.z(D,1024)?w.Bm():w.sS.isActive()?(w.L3(),w.sS.stop()):w.sS.start()}}; LRx=function(w,D){var M;if((M=w.api.getVideoData())==null?0:M.mutedAutoplay){var L,Z;if((L=D.target)==null?0:(Z=L.className)==null?0:Z.includes("ytp-info-panel"))return!1}return g.dJ(D)&&w.api.isMutedByMutedAutoplay()?(w.api.unMute(),w.api.getPresentingPlayerType()===2&&w.api.playVideo(),D=w.api.getPlayerStateObject(),!g.z(D,4)||g.z(D,8)||g.z(D,2)||w.Bm(),!0):!1}; ZDl=function(w,D,M){w.api.isFullscreen()?M<1-D&&w.api.toggleFullscreen():M>1+D&&w.api.toggleFullscreen()}; A2R=function(w){var D=f7()&&vo()>=67&&!w.api.X().G;w=w.api.X().disableOrganicUi;return!g.Bo("tizen")&&!Kg&&!D&&!w}; g.KT=function(w){g.J.call(this,{Z:"div",N:[{Z:"div",J:"ytp-bezel-text-wrapper",N:[{Z:"div",J:"ytp-bezel-text",LV:"{{title}}"}]},{Z:"div",J:"ytp-bezel",S:{role:"status","aria-label":"{{label}}"},N:[{Z:"div",J:"ytp-bezel-icon",LV:"{{icon}}"}]}]});this.K=w;this.V=new g.ui(this.show,10,this);w=this.K.C("delhi_modern_web_player")?1E3:500;this.T=new g.ui(this.hide,w,this);g.T(this,this.V);g.T(this,this.T);this.hide()}; wu=function(w,D,M){if(D<=0){M=Hv();D="muted";var L=0}else M=M?{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,S:{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"}}]}:{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,S:{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"}}]},L=Math.floor(D),D=L+"volume";Aq(w,M,D,L+"%")}; k6J=function(w,D){D=D?{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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"}}]}:yaj();var M=w.K.getPlaybackRate(),L=g.M0("Speed is $RATE",{RATE:String(M)});Aq(w,D,L,M+"x")}; bDT=function(w,D){D=D?"Subtitles/closed captions on":"Subtitles/closed captions off";Aq(w,KQx(w.K),D)}; Aq=function(w,D,M,L){L=L===void 0?"":L;w.updateValue("label",M===void 0?"":M);w.updateValue("icon",D);g.JB(w.T);w.V.start();w.updateValue("title",L);g.Lt(w.element,"ytp-bezel-text-hide",!L)}; YZa=function(w,D){g.J.call(this,{Z:"button",Yt:["ytp-button","ytp-cards-button"],S:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.w0(w.X()))},N:[{Z:"span",J:"ytp-cards-button-icon-default",N:[{Z:"div",J:"ytp-cards-button-icon",N:[w.X().C("player_new_info_card_format")?xAG():{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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"}}]}]}, {Z:"div",J:"ytp-cards-button-title",LV:"Info"}]},{Z:"span",J:"ytp-cards-button-icon-shopping",N:[{Z:"div",J:"ytp-cards-button-icon",N:[{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",J:"ytp-svg-shadow",S:{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"}},{Z:"path",J:"ytp-svg-fill",S:{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"}},{Z:"path",J:"ytp-svg-shadow-fill",S:{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"}}]}]},{Z:"div", J:"ytp-cards-button-title",LV:"Shopping"}]}]});this.K=w;this.V=D;this.T=null;this.fade=new g.V9(this,250,!0,100);g.T(this,this.fade);g.Lt(this.V,"ytp-show-cards-title",g.w0(w.X()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.aH(!0)}; CTJ=function(w,D){g.J.call(this,{Z:"div",J:"ytp-cards-teaser",N:[{Z:"div",J:"ytp-cards-teaser-box"},{Z:"div",J:"ytp-cards-teaser-text",N:w.X().C("player_new_info_card_format")?[{Z:"button",J:"ytp-cards-teaser-info-icon",S:{"aria-label":"Show cards","aria-haspopup":"true"},N:[xAG()]},{Z:"img",J:"ytp-cards-teaser-channel-avatar",S:{alt:"","aria-hidden":"true"}},{Z:"span",J:"ytp-cards-teaser-label",LV:"{{text}}"},{Z:"button",J:"ytp-cards-teaser-close-button",S:{"aria-label":"Close"},N:[g.pb()]}]:[{Z:"span", J:"ytp-cards-teaser-label",LV:"{{text}}"}]}]});var M=this;this.K=w;this.UH=D;this.fade=new g.V9(this,250,!1,250);this.T=null;this.Y=new g.ui(this.UCV,300,this);this.W=new g.ui(this.OaV,2E3,this);this.D=[];this.V=null;this.G=new g.ui(function(){M.element.style.margin="0"},250); this.onClickCommand=this.L=null;g.T(this,this.fade);g.T(this,this.Y);g.T(this,this.W);g.T(this,this.G);w.X().C("player_new_info_card_format")?(g.AB(w.getRootNode(),"ytp-cards-teaser-dismissible"),this.j(this.Z5("ytp-cards-teaser-close-button"),"click",this.j3),this.j(this.Z5("ytp-cards-teaser-info-icon"),"click",this.O9),this.j(this.Z5("ytp-cards-teaser-label"),"click",this.O9)):this.listen("click",this.O9);this.j(D.element,"mouseover",this.JJ);this.j(D.element,"mouseout",this.aA);this.j(w,"cardsteasershow", this.NHJ);this.j(w,"cardsteaserhide",this.aO);this.j(w,"cardstatechange",this.XW);this.j(w,"presentingplayerstatechange",this.XW);this.j(w,"appresize",this.HJ);this.j(w,"onShowControls",this.HJ);this.j(w,"onHideControls",this.yU);this.listen("mouseenter",this.S3)}; l4j=function(w){g.J.call(this,{Z:"button",Yt:[D9.BUTTON,D9.TITLE_NOTIFICATIONS],S:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},N:[{Z:"div",J:D9.TITLE_NOTIFICATIONS_ON,S:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},N:[g.$b()]},{Z:"div",J:D9.TITLE_NOTIFICATIONS_OFF,S:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},N:[{Z:"svg",S:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},N:[{Z:"path",S:{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=w;this.T=!1;w.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; EUC=function(w,D){w.T=D;w.element.classList.toggle(D9.NOTIFICATIONS_ENABLED,w.T);var M=w.api.getVideoData();M?(D=D?M.ll:M.vR)?(w=w.api.wZ())?nQ(w,D):g.HL(Error("No innertube service available when updating notification preferences.")):g.HL(Error("No update preferences command available.")):g.HL(Error("No video data when updating notification preferences."))}; WRS=function(w,D,M){var L=L===void 0?800:L;var Z=Z===void 0?600:Z;var k=document.location.protocol;w=XbK(k+"//"+w+"/signin?context=popup","feature",D,"next",k+"//"+location.hostname+"/post_login");p3l(w,M,L,Z)}; p3l=function(w,D,M,L){M=M===void 0?800:M;L=L===void 0?600:L;if(w=g.$1(window,w,"loginPopup","width="+M+",height="+L+",resizable=yes,scrollbars=yes"))t2K(function(){D()}),w.moveTo((screen.width-M)/2,(screen.height-L)/2)}; g.Mv=function(w,D,M,L,Z,k,b,C,l,E,p,W){w=w.charAt(0)+w.substring(1).toLowerCase();M=M.charAt(0)+M.substring(1).toLowerCase();if(D==="0"||D==="-1")D=null;if(L==="0"||L==="-1")L=null;var h=p.X(),t=h.userDisplayName&&g.bw(h);g.J.call(this,{Z:"div",Yt:["ytp-button","ytp-sb"],N:[{Z:"div",J:"ytp-sb-subscribe",S:t?{title:p.X().C("player_tooltip_data_title_killswitch")?g.M0("Subscribe as $USER_NAME",{USER_NAME:h.userDisplayName}):"","data-tooltip-title":g.M0("Subscribe as $USER_NAME",{USER_NAME:h.userDisplayName}), "aria-label":"Subscribe to channel","data-tooltip-image":nN(h),"data-tooltip-opaque":String(g.w0(h)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},N:[{Z:"div",J:"ytp-sb-text",N:[{Z:"div",J:"ytp-sb-icon"},w]},D?{Z:"div",J:"ytp-sb-count",LV:D}:""]},{Z:"div",J:"ytp-sb-unsubscribe",S:t?{title:p.C("player_tooltip_data_title_killswitch")?g.M0("Subscribed as $USER_NAME",{USER_NAME:h.userDisplayName}):"","data-tooltip-title":g.M0("Subscribed as $USER_NAME",{USER_NAME:h.userDisplayName}), "aria-label":"Unsubscribe to channel","data-tooltip-image":nN(h),"data-tooltip-opaque":String(g.w0(h)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},N:[{Z:"div",J:"ytp-sb-text",N:[{Z:"div",J:"ytp-sb-icon"},M]},L?{Z:"div",J:"ytp-sb-count",LV:L}:""]}],S:{"aria-live":"polite"}});var d=this;this.channelId=b;this.K=p;this.L=W;var N=this.Z5("ytp-sb-subscribe"),n=this.Z5("ytp-sb-unsubscribe");k&&g.AB(this.element,"ytp-sb-classic");if(Z){C?this.T():this.V();var v=function(){if(h.nV){var f= d.channelId;if(l||E){var e={c:f};var S;g.lh.isInitialized()&&(S=XIr(e));e=S||"";if(S=p.getVideoData())if(S=S.subscribeCommand){var K=p.wZ();K?(nQ(K,S,{botguardResponse:e,feature:l}),p.Q7("SUBSCRIBE",f)):g.HL(Error("No innertube service available when updating subscriptions."))}else g.HL(Error("No subscribe command in videoData."));else g.HL(Error("No video data available when updating subscription."))}n.focus();n.removeAttribute("aria-hidden");N.setAttribute("aria-hidden","true")}else WRS(g.iw(d.K.X()), "sb_button",d.D)},G=function(){var f=d.channelId; if(l||E){var e=p.getVideoData();nQ(p.wZ(),e.unsubscribeCommand,{feature:l});p.Q7("UNSUBSCRIBE",f)}N.focus();N.removeAttribute("aria-hidden");n.setAttribute("aria-hidden","true")}; this.j(N,"click",v);this.j(n,"click",G);this.j(N,"keypress",function(f){f.keyCode===13&&v(f)}); this.j(n,"keypress",function(f){f.keyCode===13&&G(f)}); this.j(p,"SUBSCRIBE",this.T);this.j(p,"UNSUBSCRIBE",this.V);this.L&&t&&(amR(p),T3(p,N,this),T3(p,n,this))}else g.AB(N,"ytp-sb-disabled"),g.AB(n,"ytp-sb-disabled")}; $fG=function(w){g.J.call(this,{Z:"div",J:"ytp-title-channel",N:[{Z:"div",J:"ytp-title-beacon"},{Z:"a",J:"ytp-title-channel-logo",S:{href:"{{channelLink}}",target:w.X().B,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Z:"div",J:"ytp-title-expanded-overlay",S:{"aria-hidden":"{{flyoutUnfocusable}}"},N:[{Z:"div",J:"ytp-title-expanded-heading",N:[{Z:"div",J:"ytp-title-expanded-title",N:[{Z:"a",LV:"{{expandedTitle}}",S:{href:"{{channelTitleLink}}",target:w.X().B,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{Z:"div",J:"ytp-title-expanded-subtitle",LV:"{{expandedSubtitle}}",S:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var D=this;this.api=w;this.channel=this.Z5("ytp-title-channel");this.V=this.Z5("ytp-title-channel-logo");this.channelName=this.Z5("ytp-title-expanded-title");this.W=this.Z5("ytp-title-expanded-overlay");this.L=this.T=this.subscribeButton=null;this.D=!1;w.createClientVe(this.V,this,36925);w.createClientVe(this.channelName,this, 37220);g.w0(this.api.X())&&huJ(this);this.j(w,"videodatachange",this.Sk);this.j(w,"videoplayerreset",this.Sk);this.j(this.channelName,"click",function(M){D.api.logClick(D.channelName);g.$1(window,tzI(D));M.preventDefault()}); this.j(this.V,"click",this.c1J);this.Sk()}; iDC=function(w){if(!w.api.X().Sb){var D=w.api.getVideoData(),M=new g.Mv("Subscribe",null,"Subscribed",null,!0,!1,D.Vf,D.subscribed,"channel_avatar",null,w.api,!0);w.api.createServerVe(M.element,w);var L;w.api.setTrackingParams(M.element,((L=D.subscribeButtonRenderer)==null?void 0:L.trackingParams)||null);w.j(M.element,"click",function(){w.api.logClick(M.element)}); w.subscribeButton=M;g.T(w,w.subscribeButton);w.subscribeButton.CV(w.W);w.subscribeButton.hide();var Z=new l4j(w.api);w.T=Z;g.T(w,Z);Z.CV(w.W);Z.hide();w.j(w.api,"SUBSCRIBE",function(){D.Z9&&(Z.show(),w.api.logVisibility(Z.element,!0))}); w.j(w.api,"UNSUBSCRIBE",function(){D.Z9&&(Z.hide(),w.api.logVisibility(Z.element,!1),EUC(Z,!1))})}}; huJ=function(w){var D=w.api.X();iDC(w);w.updateValue("flyoutUnfocusable","true");w.updateValue("channelTitleFocusable","-1");w.updateValue("shouldHideExpandedTitleForA11y","true");w.updateValue("shouldHideExpandedSubtitleForA11y","true");D.V||D.jk||(w.j(w.channel,"mouseenter",w.EG),w.j(w.channel,"mouseleave",w.HG),w.j(w.channel,"focusin",w.EG),w.j(w.channel,"focusout",function(M){w.channel.contains(M.relatedTarget)||w.HG()})); w.L=new g.ui(function(){w.isExpanded()&&(w.api.logVisibility(w.channelName,!1),w.subscribeButton&&(w.subscribeButton.hide(),w.api.logVisibility(w.subscribeButton.element,!1)),w.T&&(w.T.hide(),w.api.logVisibility(w.T.element,!1)),w.channel.classList.remove("ytp-title-expanded"),w.channel.classList.add("ytp-title-show-collapsed"))},500); g.T(w,w.L);w.j(w.channel,dfx,function(){y1K(w)}); w.j(w.api,"onHideControls",w.pC);w.j(w.api,"appresize",w.pC);w.j(w.api,"fullscreentoggled",w.pC)}; y1K=function(w){w.channel.classList.remove("ytp-title-show-collapsed");w.channel.classList.remove("ytp-title-show-expanded")}; I4C=function(w){var D=w.api.getPlayerSize();return g.w0(w.api.X())&&D.width>=524}; tzI=function(w){var D=w.api.X(),M=w.api.getVideoData(),L=g.Fb(D)+M.iW;g.xs(M)&&(L="https://music.youtube.com"+M.iW);if(!g.w0(D))return L;D={};g.F0(w.api,"addEmbedsConversionTrackingParams",[D]);return g.dh(L,D)}; LG=function(w){var D=g.pi({"aria-haspopup":"true"});g.EH.call(this,D,w);this.listen("keydown",this.eP)}; Z9=function(w,D){w.element.setAttribute("aria-haspopup",String(D))}; Ufr=function(w,D){g.J.call(this,{Z:"div",J:"ytp-user-info-panel",S:{"aria-label":"User info"},N:w.X().nV&&!w.C("embeds_web_always_enable_signed_out_state")?[{Z:"div",J:"ytp-user-info-panel-icon",LV:"{{icon}}"},{Z:"div",J:"ytp-user-info-panel-content",N:[{Z:"div",J:"ytp-user-info-panel-info",S:{tabIndex:"{{userInfoFocusable}}",role:"text"},LV:"{{watchingAsUsername}}"},{Z:"div",J:"ytp-user-info-panel-info",S:{tabIndex:"{{userInfoFocusable2}}",role:"text"},LV:"{{watchingAsEmail}}"}]}]:[{Z:"div",J:"ytp-user-info-panel-icon", LV:"{{icon}}"},{Z:"div",J:"ytp-user-info-panel-content",N:[{Z:"div",N:[{Z:"text",S:{tabIndex:"{{userInfoFocusable}}"},LV:"Signed out"}]},{Z:"div",J:"ytp-user-info-panel-login",N:[{Z:"a",S:{tabIndex:"{{userInfoFocusable2}}",role:"button"},LV:w.X().Sb?"":"Sign in on YouTube"}]}]}]});this.d9=w;this.T=D;w.X().nV||w.X().Sb||this.j(this.Z5("ytp-user-info-panel-login"),"click",this.lS);this.closeButton=new g.J({Z:"button",Yt:["ytp-collapse","ytp-button"],S:{title:"Close"},N:[g.NX()]});this.closeButton.CV(this.element); g.T(this,this.closeButton);this.j(window,"blur",this.hide);this.j(document,"click",this.vQ);this.Sk()}; gUR=function(w,D,M){g.jt.call(this,w);var L=this;this.Ac=D;this.dH=M;this.getVideoUrl=new LG(6);this.Ro=new LG(5);this.kV=new LG(4);this.qC=new LG(3);this.Or=new g.EH(g.pi({href:"{{href}}",target:this.K.X().B},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.EH(g.pi(),1,"Stats for nerds");this.lx=new g.Lb({Z:"div",Yt:["ytp-copytext","ytp-no-contextmenu"],S:{draggable:"false",tabindex:"1"},LV:"{{text}}"});this.HN=new Hp(this.K,this.lx);this.UJ=this.Hq=null;g.w0(this.K.X())&&(this.closeButton= new g.J({Z:"button",Yt:["ytp-collapse","ytp-button"],S:{title:"Close"},N:[g.NX()]}),g.T(this,this.closeButton),this.closeButton.CV(this.element),this.closeButton.listen("click",this.Hp,this));g.w0(this.K.X())&&(this.Uk=new g.EH(g.pi(),8,"Account"),g.T(this,this.Uk),this.sB(this.Uk,!0),this.Uk.listen("click",this.G3J,this),w.createClientVe(this.Uk.element,this.Uk,137682));this.K.X().ZB&&(this.bz=new HR("Loop",7),g.T(this,this.bz),this.sB(this.bz,!0),this.bz.listen("click",this.u_V,this),w.createClientVe(this.bz.element, this.bz,28661));this.K.C("web_player_miniplayer_in_context_menu")&&(this.DE=new g.EH(g.pi(),6,"Miniplayer"),g.T(this,this.DE),this.sB(this.DE,!0),this.DE.listen("click",this.A15,this),w.createClientVe(this.DE.element,this.DE,62946));g.T(this,this.getVideoUrl);this.sB(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.XzE,this);w.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.T(this,this.Ro);this.sB(this.Ro,!0);this.Ro.listen("click",this.kUc,this);w.createClientVe(this.Ro.element, this.Ro,28660);g.T(this,this.kV);this.sB(this.kV,!0);this.kV.listen("click",this.wz9,this);w.createClientVe(this.kV.element,this.kV,28658);g.T(this,this.qC);this.sB(this.qC,!0);this.qC.listen("click",this.NWE,this);g.T(this,this.Or);this.sB(this.Or,!0);this.Or.listen("click",this.Ljk,this);g.T(this,this.showVideoInfo);this.sB(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.jcc,this);g.T(this,this.lx);this.lx.listen("click",this.J1_,this);g.T(this,this.HN);xfC()&&(this.Hq=new g.J({Z:"textarea", J:"ytp-html5-clipboard",S:{readonly:"",tabindex:"-1"}}),g.T(this,this.Hq),this.Hq.CV(this.element));var Z;(Z=this.Uk)==null||Z.setIcon(R6S());var k;(k=this.bz)==null||k.setIcon(sjC());var b;(b=this.DE)==null||b.setIcon(ds());this.qC.setIcon({Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{"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.Or.setIcon(Ixx());this.showVideoInfo.setIcon(UAK());this.j(w,"onLoopChange",this.onLoopChange);this.j(w,"videodatachange",this.onVideoDataChange);this.j(w,"fullscreentoggled",function(){NdC(L)}); HDK(this);jvl(this,this.K.getVideoData())}; kN=function(w,D){var M=!1;if(w.Hq){var L=w.Hq.element;L.value=D;L.select();try{M=document.execCommand("copy")}catch(Z){}}M?w.Ac.aO():(w.lx.sV(D,"text"),g.o$(w.Ac,w.HN),FD(w.lx.element),w.Hq&&(w.Hq=null,HDK(w)));return M}; xfC=function(){var w=document.queryCommandSupported&&document.queryCommandSupported("copy");VNr("Chromium")>=43&&(w=!0);VNr("Firefox")<=40&&(w=!1);return w}; NdC=function(w){var D;(D=w.DE)==null||D.h1(!w.K.isFullscreen()&&w.K.getPresentingPlayerType()!==2&&w.K.X().showMiniplayerButton)}; jvl=function(w,D){var M=w.K.X(),L=w.K.getPresentingPlayerType()===2,Z=!L||D.isListed;Z=!M.V7&&!!D.videoId&&Z;M.playerStyle!=="play"?M="https://support.google.com/youtube/?p=report_playback":(M={contact_type:"playbackissue",html5:1,ei:D.eventId,v:D.videoId,p:"movies_playback"},D.V&&(M.fmt=D.V.itag),D.clientPlaybackNonce&&(M.cpn=D.clientPlaybackNonce),D.partnerId&&(M.partnerid=D.partnerId),M=g.dh("//support.google.com/googleplay/",M));w.kV.h1(Z&&D.allowEmbed);w.getVideoUrl.h1(Z);w.Ro.h1(Z&&!D.isLivePlayback); w.Or.sV(M,"href");var k;(k=w.bz)==null||k.h1(!D.isLivePlayback&&!L);NdC(w);var b;(b=w.Uk)==null||b.h1(!L)}; HDK=function(w){var D=!!w.Hq;g.lg(w.qC,D?"Copy debug info":"Get debug info");Z9(w.qC,!D);g.lg(w.kV,D?"Copy embed code":"Get embed code");Z9(w.kV,!D);g.lg(w.getVideoUrl,D?"Copy video URL":"Get video URL");Z9(w.getVideoUrl,!D);g.lg(w.Ro,D?"Copy video URL at current time":"Get video URL at current time");Z9(w.Ro,!D);w.kV.setIcon(D?iek():null);w.getVideoUrl.setIcon(D?hS():null);w.Ro.setIcon(D?hS():null)}; RuI=function(w){return g.w0(w.K.X())?w.Uk:w.bz}; nUJ=function(w,D){g.R$.call(this,w);this.dH=D;this.L=new g.xM(this);this.B=new g.ui(this.E6c,1E3,this);this.y7=this.kA=null;g.T(this,this.L);g.T(this,this.B);D=this.K.X();w.createClientVe(this.element,this,28656);g.AB(this.element,"ytp-contextmenu");this.K.X().experiments.ek("delhi_modern_web_player")&&g.x2(D)&&g.AB(this.element,"ytp-delhi-modern-contextmenu");oUj(this);this.hide()}; oUj=function(w){g.NA(w.L);var D=w.K.X();D.playerStyle==="gvn"||D.V||D.jk||(D=w.K.qd(),w.L.j(D,"contextmenu",w.av_),w.L.j(D,"touchstart",w.onTouchStart,null,!0),w.L.j(D,"touchmove",w.K_,null,!0),w.L.j(D,"touchend",w.K_,null,!0))}; FRk=function(w){w.K.isFullscreen()?g.mH(w.K,w.element,10):w.CV(bg(w).body)}; bx=function(w,D,M){M=M===void 0?240:M;g.J.call(this,{Z:"button",Yt:["ytp-button","ytp-copylink-button"],S:{title:w.C("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.w0(w.X()))},N:[{Z:"div",J:"ytp-copylink-icon",LV:"{{icon}}"},{Z:"div",J:"ytp-copylink-title",LV:"Copy link",S:{"aria-hidden":"true"}}]});this.api=w;this.T=D;this.V=M;this.visible=!1;this.tooltip=this.T.E4();D=w.X();this.tooltip.element.setAttribute("aria-live", "polite");g.Lt(this.element,"ytp-show-copylink-title",g.w0(D));w.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.j(w,"videodatachange",this.Sk);this.j(w,"videoplayerreset",this.Sk);this.j(w,"appresize",this.Sk);this.Sk();this.addOnDisposeCallback(g.X0(this.tooltip,this.element))}; G6x=function(w){var D=w.api.X(),M=w.api.getVideoData(),L=w.api.qd().getPlayerSize().width;D=D.L;return!!M.videoId&&L>=w.V&&M.Hs&&!M.yZ&&!w.api.isEmbedsShortsMode()&&!D}; svx=function(w){w.updateValue("icon",Cb());if(w.api.X().V)w.tooltip.Mc(w.element,"Link copied to clipboard");else{w.updateValue("title-attr","Link copied to clipboard");w.updateValue("tooltip-title","Link copied to clipboard");w.tooltip.tY();w.tooltip.Mc(w.element);var D=w.listen("mouseleave",function(){w.gt(D);w.Sk();w.tooltip.JV()})}}; a4j=function(w,D){return g.B(function(M){if(M.T==1)return g.jN(M,2),g.c(M,navigator.clipboard.writeText(D),4);if(M.T!=2)return M.return(!0);g.FK(M);var L=M.return,Z=!1,k=g.tM("TEXTAREA");k.value=D;k.setAttribute("readonly","");var b=w.api.getRootNode();b.appendChild(k);if(e$){var C=window.getSelection();C.removeAllRanges();var l=document.createRange();l.selectNodeContents(k);C.addRange(l);k.setSelectionRange(0,D.length)}else k.select();try{Z=document.execCommand("copy")}catch(E){}b.removeChild(k); return L.call(M,Z)})}; vUa=function(w){g.J.call(this,{Z:"div",J:"ytp-doubletap-ui-legacy",N:[{Z:"div",J:"ytp-doubletap-fast-forward-ve"},{Z:"div",J:"ytp-doubletap-rewind-ve"},{Z:"div",J:"ytp-doubletap-static-circle",N:[{Z:"div",J:"ytp-doubletap-ripple"}]},{Z:"div",J:"ytp-doubletap-overlay-a11y"},{Z:"div",J:"ytp-doubletap-seek-info-container",N:[{Z:"div",J:"ytp-doubletap-arrows-container",N:[{Z:"span",J:"ytp-doubletap-base-arrow"},{Z:"span",J:"ytp-doubletap-base-arrow"},{Z:"span",J:"ytp-doubletap-base-arrow"}]},{Z:"div", J:"ytp-doubletap-tooltip",N:[{Z:"div",J:"ytp-seek-icon-text-container",N:[{Z:"div",J:"ytp-seek-icon",LV:"{{seekIcon}}"},{Z:"div",J:"ytp-chapter-seek-text-legacy",LV:"{{seekText}}"}]},{Z:"div",J:"ytp-doubletap-tooltip-label",LV:"{{seekTime}}"}]}]}]});this.K=w;this.D=new g.ui(this.show,10,this);this.V=new g.ui(this.hide,700,this);this.Y=this.L=0;this.y7=this.W=!1;this.T=this.Z5("ytp-doubletap-static-circle");g.T(this,this.D);g.T(this,this.V);this.hide();this.G=this.Z5("ytp-doubletap-fast-forward-ve"); this.B=this.Z5("ytp-doubletap-rewind-ve");this.K.createClientVe(this.G,this,28240);this.K.createClientVe(this.B,this,28239);this.K.logVisibility(this.G,!0);this.K.logVisibility(this.B,!0);this.W=w.C("web_show_cumulative_seek_time");this.y7=w.C("web_center_static_circles")}; c1T=function(w,D){D=g.M0("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:D.toString()});w.updateValue("seekTime",D)}; BdI=function(w){N6.call(this,w,!1,!0);this.c_=[];this.GU=[];this.element.setAttribute("data-overlay-order","9");this.G=!0;this.badge.element.classList.add("ytp-featured-product");this.W_=new g.J({Z:"div",J:"ytp-featured-product-open-in-new"});g.T(this,this.W_);this.countdownTimer=new g.J({Z:"text",J:"ytp-featured-product-countdown",LV:"{{content}}"});this.countdownTimer.hide();g.T(this,this.countdownTimer);this.V=new g.J({Z:"div",J:"ytp-featured-product-trending",N:[{Z:"div",J:"ytp-featured-product-trending-icon"}, {Z:"text",J:"ytp-featured-product-trending-text",LV:"{{trendingOffer}}"}]});this.V.hide();g.T(this,this.V);this.overflowButton=new g.J({Z:"button",Yt:["ytp-featured-product-overflow-icon","ytp-button"],S:{"aria-haspopup":"true"}});this.overflowButton.hide();g.T(this,this.overflowButton);this.Y=new g.J({Z:"text",J:"ytp-featured-product-exclusive-countdown",LV:"{{content}}",S:{id:"exclusiveCountdown","aria-hidden":"true"}});this.Y.hide();g.T(this,this.Y);this.W=new g.J({Z:"div",J:"ytp-featured-product-exclusive-container", S:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},N:[{Z:"div",J:"ytp-featured-product-exclusive-badge-container",N:[{Z:"div",J:"ytp-featured-product-exclusive-badge",N:[{Z:"text",J:"ytp-featured-product-exclusive-badge-text",LV:"{{exclusive}}",S:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.Y]});this.W.hide();g.T(this,this.W);this.banner=new g.J({Z:"a",J:"ytp-featured-product-container",N:[{Z:"div",J:"ytp-featured-product-thumbnail",N:[{Z:"img",S:{src:"{{thumbnail}}"}},this.W_]},{Z:"div", J:"ytp-featured-product-details",N:[{Z:"text",J:"ytp-featured-product-title",LV:"{{title}}"},this.K.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",J:"ytp-featured-product-price-container",S:{"aria-label":"{{priceA11yText}}"},N:[{Z:"text",J:"ytp-featured-product-price-when-promotion-text-enabled",LV:"{{price}}",S:{"aria-hidden":"true"}},{Z:"text",J:"ytp-featured-product-promotion-text",LV:"{{promotionText}}",S:{"aria-hidden":"true"}}]}:{Z:"div",S:{"aria-label":"{{priceA11yText}}"}, N:[{Z:"text",J:"ytp-featured-product-price",LV:"{{price}}",S:{"aria-hidden":"true"}},{Z:"text",J:"ytp-featured-product-sales-original-price",LV:"{{salesOriginalPrice}}",S:{"aria-hidden":"true"}},{Z:"text",J:"ytp-featured-product-price-drop-reference-price",LV:"{{priceDropReferencePrice}}",S:{"aria-hidden":"true"}}]},this.K.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",J:"ytp-featured-product-when-promotion-text-enabled",N:[{Z:"text",J:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", LV:"{{affiliateDisclaimer}}"},this.V,{Z:"text",J:"ytp-featured-product-vendor-when-promotion-text-enabled",LV:"{{vendor}}"}]}:{Z:"div",N:[{Z:"text",J:"ytp-featured-product-affiliate-disclaimer",LV:"{{affiliateDisclaimer}}"},this.K.C("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.W:null,this.V,{Z:"text",J:"ytp-featured-product-vendor",LV:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.T(this,this.banner);this.banner.CV(this.L.element);this.j(this.K,g.QG("featured_product"), this.Crh);this.j(this.K,g.JL("featured_product"),this.po);this.j(this.K,"videodatachange",this.onVideoDataChange);this.j(this.overflowButton.element,"click",this.Ni);this.j(w,"featuredproductdismissed",this.Nh)}; f4x=function(w){var D,M;w=(D=w.T)==null?void 0:(M=D.bannerData)==null?void 0:M.itemData;var L,Z,k;return(w==null||!w.affiliateDisclaimer)&&(w==null?0:(L=w.exclusivesData)==null?0:L.exclusiveOfferLabelText)&&(w==null?0:(Z=w.exclusivesData)==null?0:Z.expirationTimestampMs)&&(w==null?0:(k=w.exclusivesData)==null?0:k.exclusiveOfferCountdownText)?!0:!1}; r1R=function(w){var D,M,L,Z,k=(D=w.T)==null?void 0:(M=D.bannerData)==null?void 0:(L=M.itemData)==null?void 0:(Z=L.exclusivesData)==null?void 0:Z.expirationTimestampMs;D=(Number(k)-Date.now())/1E3;if(D>0){if(D<604800){var b,C,l,E;M=(b=w.T)==null?void 0:(C=b.bannerData)==null?void 0:(l=C.itemData)==null?void 0:(E=l.exclusivesData)==null?void 0:E.exclusiveOfferCountdownText;if(M!==void 0)for(b=Date.now(),C=g.x(M),l=C.next();!l.done;l=C.next())if(l=l.value,l!==void 0&&l.text!==void 0&&(E=Number(l.textDisplayStartTimestampMs), !isNaN(E)&&b>=E)){l.insertCountdown?(D=l.text.replace(/\$0/,String(Ph({seconds:D}))),w.Y.sV(D)):w.Y.sV(l.text);w.Y.show();break}}var p,W,h,t;w.W.update({exclusive:(p=w.T)==null?void 0:(W=p.bannerData)==null?void 0:(h=W.itemData)==null?void 0:(t=h.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});w.W.show();YN(w);var d;(d=w.NC)==null||d.start()}else qZI(w)}; qZI=function(w){var D;(D=w.NC)==null||D.stop();w.Y.hide();w.W.hide();CG(w)}; eux=function(w){var D,M,L=(D=w.T)==null?void 0:(M=D.bannerData)==null?void 0:M.itemData;return w.K.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(L==null||!L.priceReplacementText)&&(L==null?0:L.promotionText)?L==null?void 0:L.promotionText.content:null}; X3C=function(w){var D,M,L=(D=w.T)==null?void 0:(M=D.bannerData)==null?void 0:M.itemData,Z,k;if(!(L!=null&&L.priceReplacementText||w.K.C("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(L==null?0:(Z=L.dealsData)==null?0:(k=Z.sales)==null?0:k.originalPrice)){var b,C;return L==null?void 0:(b=L.dealsData)==null?void 0:(C=b.sales)==null?void 0:C.originalPrice}return null}; Tdj=function(w){var D,M,L=(D=w.T)==null?void 0:(M=D.bannerData)==null?void 0:M.itemData,Z,k,b,C;if(!((L==null?0:L.priceReplacementText)||w.K.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(L==null?0:(Z=L.dealsData)==null?0:(k=Z.sales)==null?0:k.originalPrice))&&(L==null?0:(b=L.dealsData)==null?0:(C=b.priceDrop)==null?0:C.referencePrice)){var l,E;return L==null?void 0:(l=L.dealsData)==null?void 0:(E=l.priceDrop)==null?void 0:E.referencePrice}return null}; uMr=function(w){var D,M,L=(D=w.T)==null?void 0:(M=D.bannerData)==null?void 0:M.itemData;if(L==null?0:L.priceReplacementText)return L==null?void 0:L.priceReplacementText;if((L==null?0:L.promotionText)&&w.K.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Z;return(L==null?void 0:L.price)+" "+(L==null?void 0:(Z=L.promotionText)==null?void 0:Z.content)}var k,b;if(L==null?0:(k=L.dealsData)==null?0:(b=k.sales)==null?0:b.originalPrice){var C,l;return L==null?void 0:(C=L.dealsData)== null?void 0:(l=C.sales)==null?void 0:l.salesPriceAccessibilityLabel}var E,p;if(L==null?0:(E=L.dealsData)==null?0:(p=E.priceDrop)==null?0:p.referencePrice){var W,h;return(L==null?void 0:L.price)+" "+(L==null?void 0:(W=L.dealsData)==null?void 0:(h=W.priceDrop)==null?void 0:h.referencePrice)}return L==null?void 0:L.price}; SZJ=function(w){if(w.K.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var D,M,L;return w.V.y$?null:(D=w.T)==null?void 0:(M=D.bannerData)==null?void 0:(L=M.itemData)==null?void 0:L.vendorName}var Z,k,b,C,l,E;return w.V.y$||w.W.y$||((Z=w.T)==null?0:(k=Z.bannerData)==null?0:(b=k.itemData)==null?0:b.affiliateDisclaimer)?null:(C=w.T)==null?void 0:(l=C.bannerData)==null?void 0:(E=l.itemData)==null?void 0:E.vendorName}; J1r=function(w,D){lx(w);if(D){var M=g.Ry.getState().entities;M=PU(M,"featuredProductsEntity",D);if(M!=null&&M.productsData){D=[];M=g.x(M.productsData);for(var L=M.next();!L.done;L=M.next()){L=L.value;var Z=void 0;if((Z=L)!=null&&Z.identifier&&L.featuredSegments){w.c_.push(L);var k=void 0;Z=g.x((k=L)==null?void 0:k.featuredSegments);for(k=Z.next();!k.done;k=Z.next()){var b=k.value;k=QvG(b.startTimeSec);k!==void 0&&(b=QvG(b.endTimeSec),D.push(new g.ue(k*1E3,b===void 0?0x7ffffffffffff:b*1E3,{id:L.identifier, namespace:"featured_product"})))}}}w.K.bT(D)}}}; CG=function(w){if(w.trendingOfferEntityKey){var D=g.Ry.getState().entities;if(D=PU(D,"trendingOfferEntity",w.trendingOfferEntityKey)){var M,L,Z;D.encodedSkuId!==((M=w.T)==null?void 0:(L=M.bannerData)==null?void 0:(Z=L.itemData)==null?void 0:Z.encodedOfferSkuId)?YN(w):(w.V.update({trendingOffer:D.shortLabel+" \u2022 "+D.countLabel}),w.V.show(),w.banner.update({vendor:SZJ(w)}))}else YN(w)}else YN(w)}; YN=function(w){w.V.hide();w.banner.update({vendor:SZJ(w)})}; lx=function(w){w.c_=[];w.po();w.K.N8("featured_product")}; zuS=function(w){var D,M,L,Z,k=(D=w.T)==null?void 0:(M=D.bannerData)==null?void 0:(L=M.itemData)==null?void 0:(Z=L.hiddenProductOptions)==null?void 0:Z.dropTimestampMs;D=(Number(k)-Date.now())/1E3;w.countdownTimer.sV(Ph({seconds:D}));if(D>0){var b;(b=w.oO)==null||b.start()}}; VzC=function(w){var D;(D=w.oO)==null||D.stop();w.countdownTimer.hide()}; QvG=function(w){if(w!==void 0&&w.trim()!==""&&(w=Math.trunc(Number(w.trim())),!(isNaN(w)||w<0)))return w}; A1a=function(w,D,M){g.J.call(this,{Z:"div",Yt:["ytp-info-panel-action-item"],N:[{Z:"div",J:"ytp-info-panel-action-item-disclaimer",LV:"{{disclaimer}}"},{Z:"a",Yt:["ytp-info-panel-action-item-button","ytp-button"],S:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},N:[{Z:"div",J:"ytp-info-panel-action-item-icon",LV:"{{icon}}"},{Z:"div",J:"ytp-info-panel-action-item-label",LV:"{{label}}"}]}]});this.K=w;this.T=M;this.disclaimer=this.Z5("ytp-info-panel-action-item-disclaimer");this.button= this.Z5("ytp-info-panel-action-item-button");this.q8=!1;this.K.createServerVe(this.element,this,!0);this.listen("click",this.onClick);w="";M=g.Q(D==null?void 0:D.onTap,RD);var L=g.Q(M,g.Fl);this.q8=!1;L?(w=L.url||"",w.startsWith("//")&&(w="https:"+w),this.q8=!0,g.EQ(this.button,g.C2(w))):(L=g.Q(M,PTS))&&!this.T?((w=L.phoneNumbers)&&w.length>0?(w="sms:"+w[0],L.messageText&&(w+="?&body="+encodeURI(L.messageText))):w="",this.q8=!0,g.EQ(this.button,g.C2(w,[ODS]))):(M=g.Q(M,KRT))&&!this.T&&(w=M.phoneNumber? "tel:"+M.phoneNumber:"",this.q8=!0,g.EQ(this.button,g.C2(w,[mfC])));var Z;if(M=(Z=D.disclaimerText)==null?void 0:Z.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var k;this.update({label:(k=D.bodyText)==null?void 0:k.content,icon:iI(),disclaimer:M})}else{this.disclaimer.style.display="none";var b;this.update({label:(b=D.bodyText)==null?void 0:b.content,icon:iI()})}this.K.setTrackingParams(this.element,D.trackingParams||null);this.q8&&(this.V={externalLinkData:{url:w}})}; wix=function(w,D){var M=An();g.kV.call(this,w,{Z:"div",J:"ytp-info-panel-detail-skrim",N:[{Z:"div",J:"ytp-info-panel-detail",S:{role:"dialog",id:M},N:[{Z:"div",J:"ytp-info-panel-detail-header",N:[{Z:"div",J:"ytp-info-panel-detail-title",LV:"{{title}}"},{Z:"button",Yt:["ytp-info-panel-detail-close","ytp-button"],S:{"aria-label":"Close"},N:[g.pb()]}]},{Z:"div",J:"ytp-info-panel-detail-body",LV:"{{body}}"},{Z:"div",J:"ytp-info-panel-detail-items"}]}]},250);this.T=D;this.items=this.Z5("ytp-info-panel-detail-items"); this.L=new g.xM(this);this.itemData=[];this.D=M;this.j(this.Z5("ytp-info-panel-detail-close"),"click",this.aO);this.j(this.Z5("ytp-info-panel-detail-skrim"),"click",this.aO);this.j(this.Z5("ytp-info-panel-detail"),"click",function(L){L.stopPropagation()}); g.T(this,this.L);this.K.createServerVe(this.element,this,!0);this.j(w,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",w.getVideoData());this.hide()}; DlN=function(w,D){w=g.x(w.itemData);for(var M=w.next();!M.done;M=w.next())M=M.value,M.K.logVisibility(M.element,D)}; Zzk=function(w,D){g.J.call(this,{Z:"div",J:"ytp-info-panel-preview",S:{"aria-live":"assertive","aria-atomic":"true","aria-owns":D.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.w0(w.X()))},N:[{Z:"div",J:"ytp-info-panel-preview-text",LV:"{{text}}"},{Z:"div",J:"ytp-info-panel-preview-chevron",LV:"{{chevron}}"}]});var M=this;this.K=w;this.uT=this.T=this.videoId=null;this.L=this.showControls=this.V=!1;this.j(this.element,"click",function(){w.logClick(M.element);w.M3();YV(D)}); this.fade=new g.V9(this,250,!1,100);g.T(this,this.fade);this.K.createServerVe(this.element,this,!0);this.j(w,"videodatachange",this.onVideoDataChange);this.j(w,"presentingplayerstatechange",this.bS);this.j(this.K,"paidcontentoverlayvisibilitychange",this.kp);this.j(this.K,"infopaneldetailvisibilitychange",this.kp);var L=w.getVideoData()||{};Mdj(L)&&LGa(this,L);this.j(w,"onShowControls",this.Xy);this.j(w,"onHideControls",this.wm)}; LGa=function(w,D){if(!D.oC||!w.K.I$()){var M=D.gj||1E4,L=Mdj(D);w.T?D.videoId&&D.videoId!==w.videoId&&(g.JB(w.T),w.videoId=D.videoId,L?(kMl(w,M,D),w.XQ()):(w.aO(),w.T.dispose(),w.T=null)):L&&(D.videoId&&(w.videoId=D.videoId),kMl(w,M,D),w.XQ())}}; Mdj=function(w){var D,M,L,Z;return!!((D=w.yF)==null?0:(M=D.title)==null?0:M.content)||!!((L=w.yF)==null?0:(Z=L.bodyText)==null?0:Z.content)}; kMl=function(w,D,M){w.T&&w.T.dispose();w.T=new g.ui(w.fac,D,w);g.T(w,w.T);var L;D=((L=M.yF)==null?void 0:L.trackingParams)||null;w.K.setTrackingParams(w.element,D);var Z;var k,b;if(M==null?0:(k=M.yF)==null?0:(b=k.title)==null?0:b.content){var C;L=(Z=M.yF)==null?void 0:(C=Z.title)==null?void 0:C.content;var l,E;if((l=M.yF)==null?0:(E=l.bodyText)==null?0:E.content)L+=" \u2022 ";Z=L}else Z="";var p,W;M=((p=M.yF)==null?void 0:(W=p.bodyText)==null?void 0:W.content)||"";w.update({text:Z+M,chevron:g.EW()})}; bzI=function(w,D){w.T&&(g.z(D,8)?(w.V=!0,w.XQ(),w.T.start()):(g.z(D,2)||g.z(D,64))&&w.videoId&&(w.videoId=null))}; Eq=function(w){var D=null;try{D=w.toLocaleString("en",{style:"percent"})}catch(M){D=w.toLocaleString(void 0,{style:"percent"})}return D}; pG=function(w,D){var M=0;w=g.x(w);for(var L=w.next();!(L.done||L.value.startTime>D);L=w.next())M++;return M===0?M:M-1}; Ywk=function(w,D){for(var M=0,L=g.x(w),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;if(D=Z.timeRangeStartMillis&&D2147483647?"0":String(w)}; hU=function(w,D,M){var L=w.api.getCurrentTime(),Z=hSa(w,L);w=hSa(w,L+D);return{startMediaTimeMs:Z,endMediaTimeMs:w,seekSource:M}}; tdj=function(w){var D,M=(D=w.api.getVideoData())==null?void 0:D.rH();return w.api.getPresentingPlayerType(M)!==2}; WN=function(w,D){w.L.Wk=D;g.Lt(w.api.getRootNode(),"ytp-probably-keyboard-focus",D);g.Lt(w.contextMenu.element,"ytp-probably-keyboard-focus",D)}; $N=function(w,D,M,L){var Z=g.oZ(w.api.Ka());if(Z&&Z.loaded){var k=w.api.getSubtitlesUserSettings();Z=void 0;for(var b=0;b0?D[0]:null;var M=g.CR("ytp-chrome-bottom"),L=g.CR("ytp-ad-module");w.D=!(M==null||!M.contains(D));w.G=!(L==null||!L.contains(D));w.B=!(D==null||!D.hasAttribute("data-tooltip-target-fixed"));return D}; juC=function(w,D,M){if(!w.W){if(D){w.tooltipRenderer=D;D=w.tooltipRenderer.text;var L=!1,Z;(D==null?0:(Z=D.runs)==null?0:Z.length)&&D.runs[0].text&&(w.update({title:D.runs[0].text.toString()}),L=!0);g.L6(w.title,L);D=w.tooltipRenderer.detailsText;Z=!1;var k;if((D==null?0:(k=D.runs)==null?0:k.length)&&D.runs[0].text){L=D.runs[0].text.toString();k=L.indexOf("$TARGET_ICON");if(k>-1)if(w.tooltipRenderer.targetId){D=[];L=L.split("$TARGET_ICON");var b=new g.ws({Z:"span",J:"ytp-promotooltip-details-icon", N:[Ntl[w.tooltipRenderer.targetId]]});g.T(w,b);for(var C=[],l=g.x(L),E=l.next();!E.done;E=l.next())E=new g.ws({Z:"span",J:"ytp-promotooltip-details-component",LV:E.value}),g.T(w,E),C.push(E);L.length===2?(D.push(C[0].element),D.push(b.element),D.push(C[1].element)):L.length===1&&(k===0?(D.push(b.element),D.push(C[0].element)):(D.push(C[0].element),D.push(b.element)));k=D.length?D:null}else k=null;else k=L;if(k){if(typeof k!=="string")for(g.dE(w.details),Z=g.x(k),k=Z.next();!k.done;k=Z.next())w.details.appendChild(k.value); else w.update({details:k});Z=!0}}g.L6(w.details,Z);Z=w.tooltipRenderer.acceptButton;k=!1;var p,W,h;((p=g.Q(Z,g.YF))==null?0:(W=p.text)==null?0:(h=W.runs)==null?0:h.length)&&g.Q(Z,g.YF).text.runs[0].text&&(w.update({acceptButtonText:g.Q(Z,g.YF).text.runs[0].text.toString()}),k=!0);g.L6(w.acceptButton,k);p=w.tooltipRenderer.dismissButton;W=!1;var t,d,N;((t=g.Q(p,g.YF))==null?0:(d=t.text)==null?0:(N=d.runs)==null?0:N.length)&&g.Q(p,g.YF).text.runs[0].text&&(w.update({dismissButtonText:g.Q(p,g.YF).text.runs[0].text.toString()}), W=!0);g.L6(w.dismissButton,W)}M&&(w.L=M);w.T=xll(w);w.Y=!1;w.K.X().C("web_player_hide_nitrate_promo_tooltip")||w.h1(!0);HzG(w);w.y$&&!w.y7&&(w.y7=!0,w.Bz.Wh(0));w.V&&w.K.logVisibility(w.element,w.y$)}}; yy=function(w){w.h1(!1);w.V&&w.K.logVisibility(w.element,w.y$)}; g5K=function(w){var D,M,L,Z=((D=g.Q(w.acceptButton,g.YF))==null?void 0:(M=D.text)==null?void 0:(L=M.runs)==null?void 0:L.length)&&!!g.Q(w.acceptButton,g.YF).text.runs[0].text,k,b,C;D=((k=g.Q(w.dismissButton,g.YF))==null?void 0:(b=k.text)==null?void 0:(C=b.runs)==null?void 0:C.length)&&!!g.Q(w.dismissButton,g.YF).text.runs[0].text;return Z||D}; HzG=function(w){var D;if(!(D=!w.T)){D=w.T;var M=window.getComputedStyle(D);D=M.display==="none"||M.visibility==="hidden"||D.getAttribute("aria-hidden")==="true"}if(D||w.K.isMinimized())w.h1(!1);else if(D=g.MP(w.T),D.width&&D.height){w.K.D3(w.element,w.T);var L=w.K.qd().getPlayerSize().height;M=g.MP(w.Z5("ytp-promotooltip-container")).height;w.D?w.element.style.top=L-M-D.height-12+"px":w.B||(L=w.K.Sa().height-M-D.height-12,w.element.style.top=L+"px");L=w.Z5("ytp-promotooltip-pointer");var Z=g.wl(w.T, w.K.getRootNode()),k=Number(w.element.style.left.replace(/[^\d\.]/g,""));w=w.K.isFullscreen()?18:12;L.style.left=Z.x-k+D.width/2-w+"px";L.style.top=M+"px"}else w.h1(!1)}; IB=function(w){g.J.call(this,{Z:"button",Yt:["ytp-replay-button","ytp-button"],S:{title:w.C("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},N:[g.UW()]});this.K=w;this.j(w,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.lj(w.getPlayerStateObject());T3(this.K,this.element,this)}; Uq=function(w,D){D=D===void 0?240:D;g.J.call(this,{Z:"button",Yt:["ytp-button","ytp-search-button"],S:{title:w.C("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.w0(w.X()))},N:[{Z:"div",J:"ytp-search-icon",LV:"{{icon}}"},{Z:"div",J:"ytp-search-title",LV:"Search"}]});this.api=w;this.V=D;this.visible=!1;this.updateValue("icon",{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},N:[{Z:"path",J:"ytp-svg-fill",S:{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"}}]}); w.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.j(w,"appresize",this.T);this.j(w,"videodatachange",this.T);T3(w,this.element,this)}; xN=function(w){g.J.call(this,{Z:"div",J:"ytp-seek-overlay",N:[{Z:"div",Yt:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],N:[{Z:"div",Yt:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],N:[{Z:"svg",S:{viewBox:"0 0 22 32",width:"22",height:"24"},N:[{Z:"path",S:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{Z:"div",J:"ytp-seek-overlay-duration",LV:"{{durationBack}}"}]},{Z:"div",Yt:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],N:[{Z:"div",J:"ytp-seek-overlay-duration",LV:"{{durationForward}}"},{Z:"div",Yt:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],N:[{Z:"svg",S:{viewBox:"0 0 22 32",width:"22",height:"24"},N:[{Z:"path",S:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{Z:"div",J:"ytp-seek-overlay-message",N:[{Z:"div",J:"ytp-seek-overlay-message-icon",LV:"{{icon}}"},{Z:"div",J:"ytp-seek-overlay-message-text", LV:"{{text}}"}]}]});var D=this;this.K=w;this.Y=0;this.T="hidden";this.G=this.Z5("ytp-seek-overlay-animation-back");this.B=this.Z5("ytp-seek-overlay-animation-forward");this.y7=this.Z5("ytp-seek-overlay-message");this.W=new g.ui(function(){RST(D)},g.A3(this.K.X().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.T(this,this.W);this.K.createClientVe(this.B,this,28240);this.K.createClientVe(this.G,this,28239);this.K.logVisibility(this.B,!0);this.K.logVisibility(this.G,!0);this.hide()}; o5J=function(w,D){w.L=w.D.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:D},{offset:1,opacity:1}],{duration:200,fill:"forwards"});w.L.addEventListener("finish",function(){w.L=void 0;w.W.start();w.T="lingering"})}; n5j=function(w,D,M,L){M=M===void 0?!1:M;L=L===void 0?!1:L;var Z=[];Z.push({offset:0,transform:"translateX("+(w.V===-1?20:-20)+"px)",opacity:M?"0":"1"});M&&Z.push({offset:.5,opacity:"1"});Z.push({offset:1,transform:"translateX(0)",opacity:"1"});M=D.animate(Z,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});D=D.querySelector("path");Z=[];var k={offset:0,d:w.V===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};L&&(k.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");Z.push(k); L&&Z.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});w={offset:1,d:w.V===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};L&&(w.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");Z.push(w);D.animate(Z,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return M}; FGS=function(w){var D=w.D.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);D.classList.add("ytp-seek-overlay-arrow-additional");D.classList.remove("ytp-seek-overlay-arrow-persistent");w.D.appendChild(D);n5j(w,D,!0,!0).addEventListener("finish",function(){D.remove()})}; RST=function(w,D,M){M=M===void 0?!0:M;w.L=w.D.animate([{offset:0,opacity:D===void 0?1:D},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});M&&(w.L.addEventListener("finish",function(){w.L=void 0;GMI(w);w.hide()}),w.T="fading-out")}; suT=function(w){var D=Number(getComputedStyle(w.D).opacity),M;(M=w.L)==null||M.cancel();w.L=void 0;return D}; GMI=function(w){w.Y=0;w.T="hidden";w.V=void 0;w.D=void 0;w.W.stop();w.L=void 0}; avr=function(w,D,M){w.updateValue("text",D);if(M){a:{switch(M){case "PREMIUM_STANDALONE":D=n7C();break a;case "PREMIUM_STANDALONE_CAIRO":D=FEr();break a}D=void 0}w.updateValue("icon",D)}D=g.x(w.y7.getAnimations());for(M=D.next();!M.done;M=D.next())M.value.cancel();w.y7.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){w.updateValue("text","");w.updateValue("icon","")})}; Nv=function(w,D,M,L){L=L===void 0?240:L;g.J.call(this,{Z:"button",Yt:["ytp-button","ytp-share-button"],S:{title:w.C("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":M.element.id,"data-tooltip-opaque":String(g.w0(w.X()))},N:[{Z:"div",J:"ytp-share-icon",LV:"{{icon}}"},{Z:"div",J:"ytp-share-title",LV:"Share"}]});this.api=w;this.T=D;this.V=M;this.L=L;this.visible=!1;this.tooltip=this.T.E4();w.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.j(w,"videodatachange",this.Sk);this.j(w,"videoplayerreset",this.Sk);this.j(w,"appresize",this.Sk);this.j(w,"presentingplayerstatechange",this.Sk);this.Sk();this.addOnDisposeCallback(g.X0(this.tooltip,this.element))}; v5k=function(w){var D=w.api.X(),M=w.api.getVideoData(),L=g.w0(D)&&g.VP(w.api)&&g.z(w.api.getPlayerStateObject(),128);D=D.L||D.disableSharing&&w.api.getPresentingPlayerType()!==2||!M.showShareButton||M.Hs||L||M.yZ||!1;L=w.api.qd().getPlayerSize().width;return!!M.videoId&&L>=w.L&&!D}; cmK=function(w,D){D.name!=="InvalidStateError"&&D.name!=="AbortError"&&(D.name==="NotAllowedError"?(w.T.M3(),YV(w.V,w.element,!1)):g.HL(D))}; fvG=function(w,D){var M=An(),L=w.X();M={Z:"div",J:"ytp-share-panel",S:{id:An(),role:"dialog","aria-labelledby":M},N:[{Z:"div",J:"ytp-share-panel-inner-content",N:[{Z:"div",J:"ytp-share-panel-title",S:{id:M},LV:"Share"},{Z:"a",Yt:["ytp-share-panel-link","ytp-no-contextmenu"],S:{href:"{{link}}",target:L.B,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},LV:"{{linkText}}"},{Z:"label",J:"ytp-share-panel-include-playlist",N:[{Z:"input",J:"ytp-share-panel-include-playlist-checkbox",S:{type:"checkbox", checked:"true"}},"Include playlist"]},{Z:"div",J:"ytp-share-panel-loading-spinner",N:[ni()]},{Z:"div",J:"ytp-share-panel-service-buttons",LV:"{{buttons}}"},{Z:"div",J:"ytp-share-panel-error",LV:"An error occurred while retrieving sharing information. Please try again later."}]},{Z:"button",Yt:["ytp-share-panel-close","ytp-button"],S:{title:"Close"},N:[g.pb()]}]};g.kV.call(this,w,M,250);var Z=this;this.moreButton=null;this.api=w;this.tooltip=D.E4();this.L=[];this.W=this.Z5("ytp-share-panel-inner-content"); this.closeButton=this.Z5("ytp-share-panel-close");this.j(this.closeButton,"click",this.aO);this.addOnDisposeCallback(g.X0(this.tooltip,this.closeButton));this.D=this.Z5("ytp-share-panel-include-playlist-checkbox");this.j(this.D,"click",this.Sk);this.T=this.Z5("ytp-share-panel-link");this.addOnDisposeCallback(g.X0(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.j(this.T,"click",function(k){k.preventDefault();Z.api.logClick(Z.T);var b=Z.api.getVideoUrl(!0,!0,!1,!1);b=Btk(Z,b); g.R4(b,Z.api,k)&&Z.api.Q7("SHARE_CLICKED")}); this.listen("click",this.RD);this.j(w,"videoplayerreset",this.hide);this.j(w,"fullscreentoggled",this.onFullscreenToggled);this.j(w,"onLoopRangeChange",this.FE_);this.hide()}; eSj=function(w,D){qwI(w);for(var M=D.links||D.shareTargets,L=0,Z={},k=0;k0&&!K&&!e?(f.length===2&&(f=["noreferrer"]),g.$1(t,N,h,f[0]),t=KKI()):(n=G.join(","),f2()&&t.navigator&&t.navigator.standalone&&h&&h!="_self"?(n=g.tM("A"),g.EQ(n,N),n.target=h,v&&(n.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&n.setAttribute("attributionsrc",d),d=document.createEvent("MouseEvent"), d.initMouseEvent("click",!0,!0,t,1),n.dispatchEvent(d),t=KKI()):v?(t=g.$1(t,"",h,n),d=g.k1(N),t&&(t.opener=null,d===""&&(d="javascript:''"),d='',d=hv(d),(N=t.document)&&N.write&&(N.write(tv(d)),N.close()))):((t=g.$1(t,N,h,n))&&d.noopener&&(t.opener=null),t&&d.noreferrer&&(t.opener=null)));t&&(t.opener||(t.opener=window),t.focus());W.preventDefault()}}}(Z)); Z.AV.addOnDisposeCallback(g.X0(w.tooltip,Z.AV.element));C==="Facebook"?w.api.createClientVe(Z.AV.element,Z.AV,164504):C==="Twitter"&&w.api.createClientVe(Z.AV.element,Z.AV,164505);w.j(Z.AV.element,"click",function(p){return function(){w.api.logClick(p.AV.element)}}(Z)); w.api.logVisibility(Z.AV.element,!0);w.L.push(Z.AV);L++}}var l=D.more||D.moreLink,E=new g.J({Z:"a",Yt:["ytp-share-panel-service-button","ytp-button"],N:[{Z:"span",J:"ytp-share-panel-service-button-more",N:[{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},N:[{Z:"rect",S:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Z:"path",S:{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"}}]}]}],S:{href:l,target:"_blank",title:"More"}});E.listen("click",function(p){var W=l;w.api.logClick(w.moreButton.element);W=Btk(w,W);g.R4(W,w.api,p)&&w.api.Q7("SHARE_CLICKED")}); E.addOnDisposeCallback(g.X0(w.tooltip,E.element));w.api.createClientVe(E.element,E,164506);w.j(E.element,"click",function(){w.api.logClick(E.element)}); w.api.logVisibility(E.element,!0);w.L.push(E);w.moreButton=E;w.updateValue("buttons",w.L)}; Btk=function(w,D){var M={};g.w0(w.api.X())&&(g.F0(w.api,"addEmbedsConversionTrackingParams",[M]),D=g.dh(D,M));return D}; qwI=function(w){for(var D=g.x(w.L),M=D.next();!M.done;M=D.next())M=M.value,M.detach(),g.M9(M);w.L=[]}; HN=function(w){return w===void 0||w.startSec===void 0||w.endSec===void 0?!1:!0}; XiG=function(w,D){w.startSec+=D;w.endSec+=D}; uqI=function(w){N6.call(this,w);this.V=this.T=this.isContentForward=this.Y=!1;this.element.setAttribute("data-overlay-order","8");TtG(this);this.j(this.K,"changeProductsInVideoVisibility",this.bl_);this.j(this.K,"videodatachange",this.onVideoDataChange)}; SwK=function(w){w.W&&w.fV.element.removeChild(w.W.element);w.W=void 0}; JmS=function(w,D){return D.map(function(M){var L,Z;if((M=(L=g.Q(M,Quj))==null?void 0:(Z=L.thumbnail)==null?void 0:Z.thumbnails)&&M.length!==0)return M[0].url}).filter(function(M){return M!==void 0}).map(function(M){M=new g.J({Z:"img", J:"ytp-suggested-action-product-thumbnail",S:{alt:"",src:M}});g.T(w,M);return M})}; zSx=function(w,D){w.isContentForward=D;g.Lt(w.badge.element,"ytp-suggested-action-badge-content-forward",D)}; jx=function(w){var D=w.isContentForward&&!w.ww();g.Lt(w.badge.element,"ytp-suggested-action-badge-preview-collapsed",D&&w.T);g.Lt(w.badge.element,"ytp-suggested-action-badge-preview-expanded",D&&w.V)}; gu=function(w,D,M){return new g.ue(w*1E3,D*1E3,{priority:9,namespace:M})}; VdI=function(w){w.K.N8("shopping_overlay_visible");w.K.N8("shopping_overlay_preview_collapsed");w.K.N8("shopping_overlay_preview_expanded");w.K.N8("shopping_overlay_expanded")}; TtG=function(w){w.j(w.K,g.QG("shopping_overlay_visible"),function(){w.uo(!0)}); w.j(w.K,g.JL("shopping_overlay_visible"),function(){w.uo(!1)}); w.j(w.K,g.QG("shopping_overlay_expanded"),function(){w.V7=!0;xe(w)}); w.j(w.K,g.JL("shopping_overlay_expanded"),function(){w.V7=!1;xe(w)}); w.j(w.K,g.QG("shopping_overlay_preview_collapsed"),function(){w.T=!0;jx(w)}); w.j(w.K,g.JL("shopping_overlay_preview_collapsed"),function(){w.T=!1;jx(w)}); w.j(w.K,g.QG("shopping_overlay_preview_expanded"),function(){w.V=!0;jx(w)}); w.j(w.K,g.JL("shopping_overlay_preview_expanded"),function(){w.V=!1;jx(w)})}; KGI=function(w){g.J.call(this,{Z:"div",J:"ytp-shorts-title-channel",N:[{Z:"a",J:"ytp-shorts-title-channel-logo",S:{href:"{{channelLink}}",target:w.X().B,"aria-label":"{{channelLogoLabel}}"}},{Z:"div",J:"ytp-shorts-title-expanded-heading",N:[{Z:"div",J:"ytp-shorts-title-expanded-title",N:[{Z:"a",LV:"{{expandedTitle}}",S:{href:"{{channelTitleLink}}",target:w.X().B,tabIndex:"0"}}]}]}]});var D=this;this.api=w;this.T=this.Z5("ytp-shorts-title-channel-logo");this.channelName=this.Z5("ytp-shorts-title-expanded-title"); this.subscribeButton=null;w.createClientVe(this.T,this,36925);this.j(this.T,"click",function(M){D.api.logClick(D.T);g.$1(window,PlK(D));M.preventDefault()}); w.createClientVe(this.channelName,this,37220);this.j(this.channelName,"click",function(M){D.api.logClick(D.channelName);g.$1(window,PlK(D));M.preventDefault()}); OzG(this);this.j(w,"videodatachange",this.Sk);this.j(w,"videoplayerreset",this.Sk);this.Sk()}; OzG=function(w){if(!w.api.X().Sb){var D=w.api.getVideoData(),M=new g.Mv("Subscribe",null,"Subscribed",null,!0,!1,D.Vf,D.subscribed,"channel_avatar",null,w.api,!0);w.api.createServerVe(M.element,w);var L;w.api.setTrackingParams(M.element,((L=D.subscribeButtonRenderer)==null?void 0:L.trackingParams)||null);w.j(M.element,"click",function(){w.api.logClick(M.element)}); w.subscribeButton=M;g.T(w,w.subscribeButton);w.subscribeButton.CV(w.element)}}; PlK=function(w){var D=w.api.X(),M=w.api.getVideoData();M=g.Fb(D)+M.iW;if(!g.w0(D))return M;D={};g.F0(w.api,"addEmbedsConversionTrackingParams",[D]);return g.dh(M,D)}; RB=function(w){g.kV.call(this,w,{Z:"button",Yt:["ytp-skip-intro-button","ytp-popup","ytp-button"],N:[{Z:"div",J:"ytp-skip-intro-button-text",LV:"Skip Intro"}]},100);var D=this;this.L=!1;this.T=new g.ui(function(){D.hide()},5E3); this.Wd=this.DJ=NaN;g.T(this,this.T);this.B=function(){D.show()}; this.W=function(){D.hide()}; this.D=function(){var M=D.K.getCurrentTime();M>D.DJ/1E3&&M0?{Z:"svg",S:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},N:[{Z:"path",Yt:["ytp-circle-arrow","ytp-svg-fill"],S:{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"}}, {Z:"text",Yt:["ytp-jump-button-text","ytp-svg-fill"],S:{x:"7.05",y:"15.05"}}]}:{Z:"svg",S:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},N:[{Z:"path",Yt:["ytp-circle-arrow","ytp-svg-fill"],S:{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"}}, {Z:"text",Yt:["ytp-jump-button-text","ytp-svg-fill"],S:{x:"6.5",y:"15"}}]}]});var M=this;this.K=w;this.T=D;this.V=new g.ui(function(){M.L?(M.L=!1,M.V.start()):M.element.classList.remove("ytp-jump-spin","backwards")},250); this.L=!1;(D=D>0)?this.K.createClientVe(this.element,this,36843):this.K.createClientVe(this.element,this,36844);var L=g.M0(D?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.K.C("player_tooltip_data_title_killswitch")?this.update({title:L,"data-title-no-tooltip":L,"aria-keyshortcuts":D?"\u2192":"\u2190"}):this.update({"tooltip-title":L,"data-title-no-tooltip":L,"aria-keyshortcuts":D?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text"); this.D.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);T3(w,this.element,this)}; kYj=function(w,D){D?w.element.classList.add("ytp-jump-button-enabled"):w.element.classList.remove("ytp-jump-button-enabled");w.K.logVisibility(w.element,D);w.K.tY()}; vN=function(w,D){nG.call(this,w,D,"timedMarkerCueRange","View key moments");this.j(w,g.JL("timedMarkerCueRange"),this.M$);this.j(w,"updatemarkervisibility",this.updateVideoData)}; bnx=function(w){var D,M=(D=w.K.getVideoData())==null?void 0:D.Nd;if(M)for(w=w.D.XE,M=g.x(M),D=M.next();!D.done;D=M.next())if(D=w[D.value]){var L=void 0,Z=void 0,k=void 0;if(((L=D.onTap)==null?void 0:(Z=L.innertubeCommand)==null?void 0:(k=Z.changeEngagementPanelVisibilityAction)==null?void 0:k.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return D}}; cN=function(w){var D=w.C("web_enable_pip_on_miniplayer");g.J.call(this,{Z:"button",Yt:["ytp-miniplayer-button","ytp-button"],S:{title:w.C("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"},N:["{{icon}}"]});this.K=w;this.visible=!1;this.listen("click",this.onClick);this.j(w,"fullscreentoggled",this.Sk);this.K.C("player_tooltip_data_title_killswitch")? this.update({title:g.uR(w,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:YdJ(this,D)}):this.update({"tooltip-title":g.uR(w,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:YdJ(this,D)});T3(w,this.element,this);w.createClientVe(this.element,this,62946);this.Sk()}; YdJ=function(w,D){return w.K.C("delhi_modern_web_player_icons")?{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:D?{Z:"svg",S:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},N:[{Z:"g",S:{transform:"translate(96, -96) scale(0.8)"},N:[{Z:"path",TD:!0,S:{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"}}]}]}:ds()}; BN=function(w,D,M,L,Z,k){k=k===void 0?!1:k;var b={Z:"div",Yt:["ytp-input-slider-section"],N:[{Z:"input",J:"ytp-input-slider",S:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};Z&&b.N.unshift(Z);k&&b.Yt.push("ytp-vertical-slider");g.J.call(this,b);this.D=w;this.W=D;this.G=M;this.initialValue=L;this.header=Z;this.V=this.Z5("ytp-input-slider");this.T=L?L:w;this.init();this.j(this.V,"input",this.L);this.j(this.V,"keydown", this.Y)}; fG=function(w,D){w.T=D;w.updateValue("slidervalue",w.T);w.V.valueAsNumber=w.T;Cdj(w,D)}; Cdj=function(w,D){w.V.style.setProperty("--yt-slider-shape-gradient-percent",(D-w.D)/(w.W-w.D)*100+"%")}; qv=function(w){var D=w.isMuted()?0:w.getVolume();BN.call(this,0,100,1,D,void 0,!0);this.K=w;this.y7=fR(this.nV,10,this);this.B=!1;this.j(w,"onVolumeChange",this.onVolumeChange);this.j(this.element,"wheel",this.V7)}; lEK=function(w,D){g.J.call(this,{Z:"div",S:{tabindex:"0",title:w.C("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},Yt:["ytp-volume-popover"]});var M=this;this.isVisible=!1;this.tooltip=D.E4();this.V=new qv(w);g.T(this,this.V);this.V.CV(this.element);this.T=new g.ui(function(){ru(M,!1)},300); this.listen("mouseenter",function(){M.T.stop()}); this.listen("mouseleave",function(){M.T.start()}); this.listen("focus",function(){M.T.stop()}); this.j(this.V.V,"focus",function(){M.T.stop()}); this.listen("focusout",function(){M.T.start();M.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.X0(D.E4(),this.element));g.T(this,this.T)}; ru=function(w,D){w.element.classList.toggle("ytp-volume-popover-hovering",D);w.isVisible=D;(w=w.element.closest(".ytp-chrome-bottom"))&&w.classList.toggle("ytp-volume-popover-showing",D)}; ex=function(w,D,M){M=M===void 0?!1:M;var L=w.X().fV?{"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:w.C("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};L=w.C("delhi_modern_web_player")?{Z:"div",J:"ytp-mute-button",N:[{Z:"button",S:L,Yt:["ytp-volume-icon", "ytp-button"],LV:"{{icon}}"}]}:{Z:"button",Yt:["ytp-mute-button","ytp-button"],S:L,N:[{Z:"div",J:"ytp-volume-icon",LV:"{{icon}}"}]};g.J.call(this,L);this.K=w;this.Jc=M;this.V=null;this.Y=this.nV=this.B=this.G=NaN;this.W_=this.y7=null;this.W=[];this.D=[];this.visible=!1;this.L=this.T=this.V7=null;w.C("delhi_modern_web_player")&&this.update({"data-priority":4});M=this.K.X();this.updateValue("icon",Hv());this.tooltip=D.E4();this.updateValue("dataTooltipOffsetY",0);this.L=g.CR("ytp-volume-icon",this.element); L=this.K.C("delhi_modern_web_player_icons")?{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",Yt:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],S:{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"}},{Z:"path",J:"ytp-svg-volume-animation-small-ripple",S:{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"}},{Z:"path",J:"ytp-svg-volume-animation-big-ripple",S:{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"}}]}:{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"defs",N:[{Z:"clipPath",S:{id:"ytp-svg-volume-animation-mask"},N:[{Z:"path",S:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Z:"path",S:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Z:"path",J:"ytp-svg-volume-animation-mover",S:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Z:"clipPath",S:{id:"ytp-svg-volume-animation-slash-mask"},N:[{Z:"path",J:"ytp-svg-volume-animation-mover", S:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{Z:"path",TD:!0,Yt:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],S:{"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"}},{Z:"path",TD:!0,Yt:["ytp-svg-fill","ytp-svg-volume-animation-hider"],S:{"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.V=new g.ws(L);g.T(this,this.V);this.y7=this.V.Z5("ytp-svg-volume-animation-speaker");this.W_=this.y7.getAttribute("d");this.W=g.b5("ytp-svg-volume-animation-mover",this.V.element);this.K.C("delhi_modern_web_player_icons");this.D=g.b5("ytp-svg-volume-animation-hider",this.V.element);this.K.C("delhi_modern_web_player_icons");this.fV=new O1;g.T(this,this.fV);this.c_=new O1;g.T(this,this.c_);this.j(w,"appresize",this.F0);this.j(w,"onVolumeChange",this.onVolumeChange);w.C("delhi_modern_web_player")? this.listen("click",this.prk):this.listen("click",this.Ub);M.fV?(w.C("delhi_modern_web_player")&&!w.C("delhi_modern_web_player_horizontal_volume_controls")&&(this.T=new lEK(w,D),this.T.CV(this.element),g.T(this,this.T),this.j(this.L,"mouseover",this.g1),this.j(this.L,"focus",this.g1),this.j(this.L,"mouseout",this.L5),this.j(this.L,"blur",this.L5)),M=w.C("delhi_modern_web_player")?this.L:this.element,this.addOnDisposeCallback(g.X0(D.E4(),M))):EkI(this);this.message=null;w.createClientVe(this.element, this,28662);this.F0(w.qd().getPlayerSize());this.setVolume(w.getVolume(),w.isMuted())}; pYr=function(w,D){if(w.K.X().fV){var M=g.uR(w.K,"Mute","m"),L=g.uR(w.K,"Unmute","m");M=D?L:M;w.K.X().C("player_tooltip_data_title_killswitch")?w.updateValue("title",M):w.update({"tooltip-title":M,"aria-label":M});w.update({"data-title-no-tooltip":D?"Unmute":"Mute"});w.tooltip.tY()}}; t8K=function(w,D){w.G=D;var M=w.W_;w.K.C("delhi_modern_web_player_icons")?w.V.Z5("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(D+") translate(-22,-12)")):D&&(M+=iCR(WqS,hBC,D));w.y7.setAttribute("d",M)}; $qN=function(w,D){var M;D===1?M=w.K.C("delhi_modern_web_player_icons")?{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:Hv():M=w.V;w.nV=D;if(w.K.C("delhi_modern_web_player_icons"))w.V.Z5("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-D+") translate(-18,-12)")),w.V.Z5("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(w.G-D+") translate(-22, -12)"));else{for(var L=20*D,Z=0;Z=3&&w.K.getPresentingPlayerType()!==2}; xqG=function(w){var D=z3(w.K.Ka());return D?w.T?D.lz():D.ym():!1}; yJC=function(w){var D={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},M=w.playlist!=null&&w.playlist.lz();M=g.VP(w.K)&&(!w.T||M);var L=w.T&&g.AW(w.K),Z=xqG(w),k=w.T&&w.K.getPresentingPlayerType()===5,b=g.uR(w.K,"Next","SHIFT+n"),C=g.uR(w.K,"Previous","SHIFT+p");if(k)D.title="Start video",D["tooltip-title"]="Start video";else if(w.L)D.title="Replay",D["tooltip-title"]="Replay";else if(M){var l=null;w.playlist&&(l= g.yr(w.playlist,w.T?CvS(w.playlist):l$N(w.playlist)));if(l){if(l.videoId){var E=w.playlist.listId;D.url=w.K.X().getVideoUrl(l.videoId,E?E.toString():void 0)}D.text=l.title;D.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.iQ(l.lengthSeconds):null;D.preview=l.yL("mqdefault.jpg")}w.T?(D.title=b,D["tooltip-title"]=b,D["data-title-no-tooltip"]="Next",D["aria-keyshortcuts"]="SHIFT+n"):(D.title=C,D["tooltip-title"]=C,D["data-title-no-tooltip"]="Previous",D["aria-keyshortcuts"]="SHIFT+p")}else if(L){if(C= (l=w.videoData)==null?void 0:g.jA(l))D.url=C.N2(),D.text=C.title,D.duration=C.lengthText?C.lengthText:C.lengthSeconds?g.iQ(C.lengthSeconds):null,D.preview=C.yL("mqdefault.jpg");D.title=b;D["tooltip-title"]=b;D["data-title-no-tooltip"]="Next";D["aria-keyshortcuts"]="SHIFT+n"}D.disabled=!L&&!M&&!Z&&!k;w.update(D);w.Y=!!D.url;L||M||w.L||Z||k?w.V||(w.V=g.X0(w.tooltip,w.element),w.W=w.listen("click",w.onClick,w)):w.V&&(w.V(),w.V=null,w.gt(w.W),w.W=null);w.tooltip.tY();g.Lt(w.element,"ytp-playlist-ui", w.T&&(M||w.K.C("web_hide_next_button")))}; dqI=function(w,D){return w?D?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:tS():D?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:G_R()}; HnR=function(w,D){g.J.call(this,{Z:"div",J:"ytp-fine-scrubbing",N:[{Z:"div",J:"ytp-fine-scrubbing-draggable",N:[{Z:"div",J:"ytp-fine-scrubbing-thumbnails",S:{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}}"}}]},{Z:"div",S:{"aria-hidden":"true"},J:"ytp-fine-scrubbing-cursor"},{Z:"div",J:"ytp-fine-scrubbing-seek-time",S:{"aria-hidden":"true"}, LV:"{{seekTime}}"},{Z:"div",J:"ytp-fine-scrubbing-play",N:[w.C("delhi_modern_web_player_icons")?I1():y9()],S:{title:"Play from this position",role:"button"}},{Z:"div",J:"ytp-fine-scrubbing-dismiss",N:[g.pb()],S:{title:"Exit precise seeking",role:"button"}}]});var M=this;this.api=w;this.W=this.Z5("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Z5("ytp-fine-scrubbing-dismiss");this.nV=this.Z5("ytp-fine-scrubbing-draggable");this.playButton=this.Z5("ytp-fine-scrubbing-play");this.thumbnails= [];this.V=[];this.Jc=this.T=0;this.fV=void 0;this.y7=NaN;this.Md=this.B=this.L=this.G=0;this.D=[];this.interval=this.frameCount=0;this.Y=160;this.scale=1;this.jk=0;this.isEnabled=this.W_=!1;NxS(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.X0(D,this.dismissButton));this.addOnDisposeCallback(g.X0(D,this.playButton));this.c_=new g.q6(this.nV,!0);this.c_.subscribe("dragstart",this.ov,this);this.c_.subscribe("dragmove",this.zp,this);this.c_.subscribe("dragend",this.iS,this);this.j(w,"SEEK_COMPLETE", this.Aa);w.C("web_fix_fine_scrubbing_false_play")&&this.j(w,"rootnodemousedown",function(L){M.V7=L}); this.W.addEventListener("keydown",function(){}); g.T(this,this.c_);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; NxS=function(w,D){var M=g.iQ(D),L=g.M0("Seek to $PROGRESS",{PROGRESS:g.iQ(D,!0)});w.update({ariamin:0,ariamax:Math.floor(w.api.getDuration()),arianow:Math.floor(D),arianowtext:L,seekTime:M})}; jNj=function(w){w.y7=NaN;w.B=0;w.G=w.L}; okx=function(w){var D=w.api.WH();if(D){var M=90*w.scale,L=CL(D,160*w.scale);if(D=D.levels[L]){w.Y=D.width;if(!w.D.length){L=[];for(var Z=lf(D,D.PK()),k=D.columns*D.rows,b=D.frameCount,C=0;C<=Z;C++)for(var l=bw.D.length;)L= void 0,(L=w.thumbnails.pop())==null||L.dispose();for(;w.thumbnails.lengthM.length;)L=void 0,(L=w.V.pop())==null||L.dispose(); for(;w.V.length-M?-D/M*w.interval*.5:-(D+M/2)/M*w.interval}; nkR=function(w){return-((w.W.offsetWidth||(w.frameCount-1)*w.Y*w.scale)-w.T/2)}; gkl=function(){g.J.call(this,{Z:"div",J:"ytp-fine-scrubbing-thumbnail"})}; RBK=function(){g.J.call(this,{Z:"div",J:"ytp-fine-scrubbing-chapter-title",N:[{Z:"div",J:"ytp-fine-scrubbing-chapter-title-content",LV:"{{chapterTitle}}"}]})}; GYa=function(w){g.J.call(this,{Z:"div",J:"ytp-heat-map-chapter",N:[{Z:"svg",J:"ytp-heat-map-svg",S:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},N:[{Z:"defs",N:[{Z:"clipPath",S:{id:"{{id}}"},N:[{Z:"path",J:"ytp-heat-map-path",S:{d:"",fill:"white"}}]},{Z:"linearGradient",S:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},N:[{Z:"stop",S:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Z:"stop",S:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{Z:"rect",J:"ytp-heat-map-graph",S:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Z:"rect",J:"ytp-heat-map-hover",S:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Z:"rect",J:"ytp-heat-map-play",S:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Z:"path",J:"ytp-modern-heat-map",S:{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=w;this.G=this.Z5("ytp-heat-map-svg");this.W=this.Z5("ytp-heat-map-path");this.D=this.Z5("ytp-heat-map-graph");this.Y=this.Z5("ytp-heat-map-play");this.T=this.Z5("ytp-heat-map-hover");this.L=this.Z5("ytp-modern-heat-map");this.q8=!1;this.V=60;w=""+g.br(this);this.update({id:w});w="url(#"+w+")";this.D.setAttribute("clip-path",w);this.Y.setAttribute("clip-path",w);this.T.setAttribute("clip-path",w)}; sNr=function(w,D){D>0&&(w.V=D,w.G.style.height=w.V+"px")}; Sx=function(){g.J.call(this,{Z:"div",J:"ytp-chapter-hover-container",N:[{Z:"div",J:"ytp-progress-bar-padding"},{Z:"div",J:"ytp-progress-list",N:[{Z:"div",Yt:["ytp-play-progress","ytp-swatch-background-color"]},{Z:"div",J:"ytp-progress-linear-live-buffer"},{Z:"div",J:"ytp-load-progress"},{Z:"div",J:"ytp-hover-progress"},{Z:"div",J:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.V=this.Z5("ytp-progress-list");this.W=this.Z5("ytp-progress-linear-live-buffer"); this.D=this.Z5("ytp-ad-progress-list");this.Y=this.Z5("ytp-load-progress");this.G=this.Z5("ytp-play-progress");this.L=this.Z5("ytp-hover-progress");this.T=this.Z5("ytp-chapter-hover-container")}; Qy=function(w,D){g.Qv(w.T,"width",D)}; aEJ=function(w,D){g.Qv(w.T,"margin-right",D+"px")}; vkJ=function(){this.V=this.position=this.L=this.T=this.D=this.width=NaN}; cJr=function(){g.J.call(this,{Z:"div",J:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.z2=function(w,D){g.Lb.call(this,{Z:"div",J:"ytp-progress-bar-container",S:{"aria-disabled":"true"},N:[{Z:"div",Yt:["ytp-heat-map-container"],N:[{Z:"div",J:"ytp-heat-map-edu"}]},{Z:"div",Yt:["ytp-progress-bar"],S:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},N:[{Z:"div",J:"ytp-chapters-container"},{Z:"div",J:"ytp-timed-markers-container"},{Z:"div",J:"ytp-clip-start-exclude"}, {Z:"div",J:"ytp-clip-end-exclude"},{Z:"div",J:"ytp-scrubber-container",N:[{Z:"div",Yt:["ytp-scrubber-button","ytp-swatch-background-color"],N:[{Z:"div",J:"ytp-scrubber-pull-indicator"},{Z:"img",Yt:["ytp-decorated-scrubber-button"]}]}]}]},{Z:"div",Yt:["ytp-fine-scrubbing-container"],N:[{Z:"div",J:"ytp-fine-scrubbing-edu"}]},{Z:"div",J:"ytp-bound-time-left",LV:"{{boundTimeLeft}}"},{Z:"div",J:"ytp-bound-time-right",LV:"{{boundTimeRight}}"},{Z:"div",J:"ytp-clip-start",S:{title:"{{clipstarttitle}}"},LV:"{{clipstarticon}}"}, {Z:"div",J:"ytp-clip-end",S:{title:"{{clipendtitle}}"},LV:"{{clipendicon}}"}]});this.api=w;this.M5=!1;this.wz=this.Yx=this.Nd=this.W=this.CJ=0;this.BI=null;this.Nr=!1;this.jk={};this.wW={};this.clipEnd=Infinity;this.GU=this.Z5("ytp-clip-end");this.uj=new g.q6(this.GU,!0);this.Qi=this.Z5("ytp-clip-end-exclude");this.UV=this.Z5("ytp-clip-start-exclude");this.clipStart=0;this.NC=this.Z5("ytp-clip-start");this.FK=new g.q6(this.NC,!0);this.y7=this.mu=0;this.progressBar=this.Z5("ytp-progress-bar");this.oO= {};this.XE={};this.EL=this.Z5("ytp-chapters-container");this.DJ=this.Z5("ytp-timed-markers-container");this.T=[];this.Y=[];this.QF={};this.Kx=null;this.W_=-1;this.TU=this.fV=0;this.yF=this.G=null;this.X6=this.Z5("ytp-scrubber-button");this.nV=this.Z5("ytp-decorated-scrubber-button");this.Q8=this.Z5("ytp-scrubber-container");this.iW=new g.Sq;this.Is=0;this.wI=new vkJ;this.L=new gJ(0,0);this.cz=null;this.B=this.oC=!1;this.oT=null;this.V7=this.Z5("ytp-heat-map-container");this.TC=this.Z5("ytp-heat-map-edu"); this.D=[];this.heatMarkersDecorations=[];this.pV=this.Z5("ytp-fine-scrubbing-container");this.k6=this.Z5("ytp-fine-scrubbing-edu");this.V=void 0;this.Jc=this.Wd=this.Md=!1;this.tooltip=D.E4();this.addOnDisposeCallback(g.X0(this.tooltip,this.GU));g.T(this,this.uj);this.uj.subscribe("hoverstart",this.NF,this);this.uj.subscribe("hoverend",this.IB,this);this.j(this.GU,"click",this.LH);this.addOnDisposeCallback(g.X0(this.tooltip,this.NC));g.T(this,this.FK);this.FK.subscribe("hoverstart",this.NF,this); this.FK.subscribe("hoverend",this.IB,this);this.j(this.NC,"click",this.LH);BxN(this);this.j(w,"resize",this.EB);this.j(w,"presentingplayerstatechange",this.Pj);this.j(w,"videodatachange",this.vX);this.j(w,"videoplayerreset",this.Z_);this.j(w,"cuerangesadded",this.F5c);this.j(w,"cuerangesremoved",this.EPJ);this.j(w,"onLoopRangeChange",this.fQ);this.j(w,"innertubeCommand",this.onClickCommand);this.j(w,"onRetroModeChanged",this.D8t);this.j(w,g.QG("timedMarkerCueRange"),this.k39);this.j(w,"updatemarkervisibility", this.Eq);this.j(w,"serverstitchedvideochange",this.fyk);this.updateVideoData(w.getVideoData(),!0);this.fQ(w.getLoopRange());JU(this)&&!this.V&&(this.V=new HnR(this.api,this.tooltip),w=g.AM(this.element).x||0,this.V.EB(w,this.W),this.V.CV(this.pV),g.T(this,this.V),this.j(this.V.dismissButton,"click",this.Ey),this.j(this.V.playButton,"click",this.Ry),this.j(this.V.element,"dblclick",this.Ry));this.api.createClientVe(this.V7,this,139609,!0);this.api.createClientVe(this.TC,this,140127,!0);this.api.createClientVe(this.k6, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; BxN=function(w){if(w.T.length===0){var D=new Sx;w.T.push(D);g.T(w,D);D.CV(w.EL,0)}for(;w.T.length>1;)w.T.pop().dispose();Qy(w.T[0],"100%");w.T[0].startTime=0;w.T[0].title=""}; fEC=function(w){var D=D===void 0?NaN:D;var M=new GYa(w.api);w.D.push(M);g.T(w,M);M.CV(w.V7);D>=0&&(M.element.style.width=D+"px")}; qdT=function(w){for(;w.Y.length;)w.Y.pop().dispose()}; eBI=function(w){var D,M,L,Z,k;return(k=g.Q((Z=g.Q((D=w.getWatchNextResponse())==null?void 0:(M=D.playerOverlays)==null?void 0:(L=M.playerOverlayRenderer)==null?void 0:L.decoratedPlayerBarRenderer,mw))==null?void 0:Z.playerBar,rJK))==null?void 0:k.chapters}; XYK=function(w){for(var D=w.T,M=[],L=0;L=b&&N<=p&&k.push(h)}l>0&&(w.V7.style.height=l+"px");b=w.D[L];p=k;h=Z;d=l;N=L===0;N=N===void 0?!1:N;sNr(b,d);W=p;t=b.V;N=N===void 0?!1:N;var n=1E3/W.length,v=[];v.push({x:0,y:100});for(var G=0;G0&&(M=k[k.length-1])}g.Vy(w);C=[];D=g.x(D.heatMarkersDecorations||[]);for(Z=D.next();!Z.done;Z=D.next())if(Z=g.Q(Z.value,V8C))l=Z.label,L=M=E=void 0,C.push({visibleTimeRangeStartMillis:(E=Z.visibleTimeRangeStartMillis)!=null?E:-1,visibleTimeRangeEndMillis:(M=Z.visibleTimeRangeEndMillis)!=null?M:-1,decorationTimeMillis:(L=Z.decorationTimeMillis)!=null?L:NaN,label:l?g.bI(l):""});w.heatMarkersDecorations=C}}; SdR=function(w,D){w.Y.push(D);g.T(w,D);D.CV(w.DJ,w.DJ.children.length)}; QNT=function(w,D){D=g.x(D);for(var M=D.next();!M.done;M=D.next()){M=M.value;var L=PN(w,M.timeRangeStartMillis/(w.L.T*1E3),Oq(w)),Z=w.api.C("delhi_modern_web_player")?.667:.6;g.Qv(M.element,"transform","translateX("+L+"px) scaleX("+Z+")")}}; TxI=function(w,D){var M=0,L=!1;D=g.x(D);for(var Z=D.next();!Z.done;Z=D.next()){Z=Z.value;if(g.Q(Z,OnI)){Z=g.Q(Z,OnI);var k={startTime:NaN,title:null,onActiveCommand:void 0},b=Z.title;k.title=b?g.bI(b):"";b=Z.timeRangeStartMillis;b!=null&&(k.startTime=b);k.onActiveCommand=Z.onActiveCommand;Z=k;M===0&&Z.startTime!==0&&(w.T[M].startTime=0,w.T[M].title="",w.T[M].onActiveCommand=Z.onActiveCommand,M++,L=!0);w.T.length<=M&&(k=new Sx,w.T.push(k),g.T(w,k),k.CV(w.EL,w.EL.children.length));w.T[M].startTime= Z.startTime;w.T[M].title=Z.title?Z.title:"";w.T[M].onActiveCommand=Z.onActiveCommand;w.T[M].index=L?M-1:M}M++}for(;M=0;L--)if(w.T[L].width>0){aEJ(w.T[L],0);var Z=Math.floor(w.T[L].width);w.T[L].width=Z;Qy(w.T[L],Z+"px");break}w.T[M].width=0;Qy(w.T[M],"0")}else M===w.T.length-1?(L=Math.floor(w.T[M].width+D),w.T[M].width=L,Qy(w.T[M],L+"px")):(D=w.T[M].width+D,L=Math.round(D),D-=L,w.T[M].width=L,Qy(w.T[M],L+"px"));M=0;if(w.D.length===w.T.length)for(D=0;D< w.D.length;D++)L=w.T[D].width,w.D[D].element.style.width=L+"px",w.D[D].element.style.left=M+"px",M+=L+mf(w);w.api.C("delhi_modern_web_player")&&(w.T.length===1?w.T[0].V.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(w.T[0].V.classList.remove("ytp-progress-bar-end"),w.T[0].V.classList.add("ytp-progress-bar-start"),w.T[w.T.length-1].V.classList.add("ytp-progress-bar-end")))}; KqR=function(w,D){var M=0,L=!1,Z=w.T.length,k=w.L.T*1E3;k===0&&(k=w.api.getProgressState().seekableEnd*1E3);if(k>0&&w.W>0){for(var b=w.W-mf(w)*w.fV,C=w.TU===0?3:b*w.TU,l=g.x(w.T),E=l.next();!E.done;E=l.next())E.value.width=0;for(;M1);E=(k===0?0:l/k*b)+w.T[M].width;if(E>C)w.T[M].width=E;else{w.T[M].width=0;var p=w,W=M,h=p.T[W-1];h!==void 0&&h.width>0? h.width+=E:Ww.TU&&(w.TU=l/k),L=!0)}M++}}return L}; KG=function(w){if(w.W){var D=w.api.getProgressState(),M=w.api.getVideoData();if(!(M&&M.enableServerStitchedDai&&M.BV)||isFinite(D.current)){var L;if(((L=w.api.getVideoData())==null?0:U9(L))&&D.airingStart&&D.airingEnd)var Z=AU(w,D.airingStart,D.airingEnd);else if(w.api.getPresentingPlayerType()===2){var k,b,C;Z=(M=(Z=w.api.getVideoData())==null?void 0:(k=Z.getPlayerResponse())==null?void 0:(b=k.playerConfig)==null?void 0:(C=b.webPlayerConfig)==null?void 0:C.skippableAdProgressBarDuration)?AU(w,D.seekableStart, M/1E3):AU(w,D.seekableStart,D.seekableEnd)}else Z=AU(w,D.seekableStart,D.seekableEnd);k=Rs(Z,D.loaded,0);D=Rs(Z,D.current,0);b=w.L.V!==Z.V||w.L.T!==Z.T;w.L=Z;wa(w,D,k);b&&mqx(w);AJG(w)}}}; AU=function(w,D,M){return wkI(w)?new gJ(Math.max(D,w.cz.startTimeMs/1E3),Math.min(M,w.cz.endTimeMs/1E3)):new gJ(D,M)}; MuT=function(w,D){var M,L,Z;D=g.Q((M=D.getWatchNextResponse())==null?void 0:(L=M.playerOverlays)==null?void 0:(Z=L.playerOverlayRenderer)==null?void 0:Z.decoratedPlayerBarRenderer,mw);if(D==null?0:D.progressColor)for(M=0;M1){M=Db(w,D.L,!0);for(var L=0,Z=0;Z0&&(L+=w.T[Z].width,L+=mf(w));M=(w.T[M].startTime+(D.L-L)/w.T[M].width*((M===w.T.length-1?w.L.T*1E3:w.T[M+1].startTime)-w.T[M].startTime))/1E3||0}return M}; ZyC=function(w,D){if(D<0)return"0";w=Math.floor(Math.min(D,w.api.getDuration())*1E3);return w>2147483647?"0":String(w)}; LE=function(w,D,M,L,Z){D=ZyC(w,D);M=ZyC(w,M);w=w.progressBar.visualElement;L={seekData:{startMediaTimeMs:D,endMediaTimeMs:M,seekSource:L}};(D=g.$9())&&PL(D,w,Z,L)}; kcK=function(w,D,M){if(M>=w.T.length)return!1;var L=w.W-mf(w)*w.fV;return Math.abs(D-w.T[M].startTime/1E3)/w.L.T*L<4}; mqx=function(w){w.X6.style.removeProperty("height");for(var D=g.x(Object.keys(w.jk)),M=D.next();!M.done;M=D.next())byr(w,M.value);Zb(w);wa(w,w.y7,w.mu)}; Oq=function(w){var D=w.iW.x;D=g.X4(D,0,w.W);w.wI.update(D,w.W);return w.wI}; bF=function(w){return(w.B?135:90)-kS(w)}; kS=function(w){var D=48,M=w.api.X();w.api.C("delhi_modern_web_player")?D=w.api.getPlayerSize().width<=528?64:w.B?96:72:w.B?D=54:g.w0(M)&&!M.V&&(D=40);return D}; wa=function(w,D,M){w.y7=D;w.mu=M;var L=Oq(w),Z=w.L.T,k=pTK(w.L,w.y7),b=g.M0("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.iQ(k,!0),DURATION:g.iQ(Z,!0)}),C=pG(w.T,k*1E3);C=w.T[C].title;w.update({ariamin:Math.floor(w.L.V),ariamax:Math.floor(Z),arianow:Math.floor(k),arianowtext:C?C+" "+b:b});Z=w.clipStart;k=w.clipEnd;w.cz&&w.api.getPresentingPlayerType()!==2&&(Z=w.cz.startTimeMs/1E3,k=w.cz.endTimeMs/1E3);Z=Rs(w.L,Z,0);C=Rs(w.L,k,1);b=w.api.getVideoData();k=g.X4(D,Z,C);M=(b==null?0:g.dZ(b))?1:g.X4(M, Z,C);D=PN(w,D,L);g.Qv(w.Q8,"transform","translateX("+D+"px)");w.api.C("delhi_modern_web_player")&&w.api.C("delhi_modern_web_player_cutout")&&YCJ(w,D);YS(w,L,Z,k,"PLAY_PROGRESS");(b==null?0:U9(b))?(D=w.api.getProgressState().seekableEnd)&&YS(w,L,k,Rs(w.L,D),"LIVE_BUFFER"):YS(w,L,Z,M,"LOAD_PROGRESS");if(w.api.C("web_player_heat_map_played_bar")){var l;(l=w.D[0])!=null&&l.Y.setAttribute("width",(k*100).toFixed(2)+"%")}}; YCJ=function(w,D){w.api.getPresentingPlayerType()!==1?w.EL.style.removeProperty("clip-path"):(D||(D=PN(w,w.y7,Oq(w))),w.EL.style.clipPath='path("'+(w.Nr?C8K(w,8,D,w.B?50:36,0,6):C8K(w,4,D,w.B?34:24,2,3))+'")')}; C8K=function(w,D,M,L,Z,k){var b=M-L/2;M+=L/2;D+=Z;return"M 0 "+Z+" L 0 "+(D+" L ")+(b+" "+D+" C ")+(b+k+" "+D+" "+(b+k)+" "+Z+" "+b+" "+Z+" L 0 ")+(Z+" M ")+(M+" "+Z+" L ")+(w.W+" "+Z+" L ")+(w.W+" "+D+" L ")+(M+" "+D+" C ")+(M-k+" "+D+" "+(M-k)+" "+Z+" "+M+" "+Z)}; YS=function(w,D,M,L,Z){var k=w.T.length,b=D.T-w.fV*mf(w),C=M*b;M=Db(w,C);var l=L*b;b=Db(w,l);Z==="HOVER_PROGRESS"&&(b=Db(w,D.T*L,!0),l=D.T*L-lwr(w,D.T*L)*mf(w));L=Math.max(C-E8K(w,M),0);for(C=M;C=w.T.length)return w.W;for(var M=0,L=0;L0||w.Qi.clientWidth>0?(k=D.clientWidth/M,w=-1*w.UV.clientWidth/M):(k/=M,w=-1*w.T[Z].element.offsetLeft/M),g.Qv(D,"background-size",k+"px"),g.Qv(D,"background-position-x",w+"px"))}; CE=function(w,D,M,L,Z){Z||w.api.X().V?D.style.width=M+"px":g.Qv(D,"transform","scalex("+(L?M/L:0)+")")}; Db=function(w,D,M){var L=0;(M===void 0?0:M)&&(D-=lwr(w,D)*mf(w));M=g.x(w.T);for(var Z=M.next();!Z.done;Z=M.next()){Z=Z.value;if(D>Z.width)D-=Z.width;else break;L++}return L===w.T.length?L-1:L}; PN=function(w,D,M){var L=D*w.L.T*1E3;for(var Z=-1,k=g.x(w.T),b=k.next();!b.done;b=k.next())b=b.value,L>b.startTime&&b.width>0&&Z++;L=Z<0?0:Z;Z=M.T-mf(w)*w.fV;return D*Z+mf(w)*L+M.D}; lwr=function(w,D){for(var M=w.T.length,L=0,Z=g.x(w.T),k=Z.next();!k.done;k=Z.next())if(k=k.value,k.width!==0)if(D>k.width)D-=k.width,D-=mf(w),L++;else break;return L===M?M-1:L}; g.hwJ=function(w,D,M,L){var Z=w.W!==M,k=w.B!==L;w.CJ=D;w.W=M;w.B=L;JU(w)&&(D=w.V)!=null&&(D.scale=L?1.5:1);mqx(w);w.T.length===1&&(w.T[0].width=M||0);Z&&g.Vy(w);w.V&&k&&JU(w)&&(w.V.isEnabled&&(M=w.B?135:90,L=M-kS(w),w.pV.style.height=M+"px",g.Qv(w.V7,"transform","translateY("+-L+"px)"),g.Qv(w.progressBar,"transform","translateY("+-L+"px)")),okx(w.V))}; Zb=function(w){var D=!!w.cz&&w.api.getPresentingPlayerType()!==2,M=w.clipStart,L=w.clipEnd,Z=!0,k=!0;D&&w.cz?(M=w.cz.startTimeMs/1E3,L=w.cz.endTimeMs/1E3):(Z=M>w.L.V,k=w.L.T>0&&Lw.y7);g.Lt(w.X6,"ytp-scrubber-button-hover",M===L&&w.T.length>1);if(w.api.C("web_player_heat_map_played_bar")){var k;(k=w.D[0])!=null&&k.T.setAttribute("width",(D.V*100).toFixed(2)+"%")}}}; byr=function(w,D){var M=w.jk[D];D=w.wW[D];var L=Oq(w),Z=Rs(w.L,M.start/1E3,0),k=jDx(M,w.B)/L.width;var b=Rs(w.L,M.end/1E3,1);k!==Number.POSITIVE_INFINITY&&(Z=g.X4(Z,0,b-k));b=Math.min(b,Z+k);M.color&&(D.style.background=M.color);M=Z;D.style.left=Math.max(M*L.T+L.D,0)+"px";CE(w,D,g.X4((b-M)*L.T+L.D,0,L.width),L.width,!0)}; tua=function(w,D){var M=D.getId();w.jk[M]===D&&(g.Id(w.wW[M]),delete w.jk[M],delete w.wW[M])}; JU=function(w){var D=g.x2(w.api.X())&&(w.api.C("web_shorts_pip")||w.api.C("web_watch_pip")),M;return!((M=w.api.getVideoData())==null?0:M.isLivePlayback)&&!w.api.isMinimized()&&!w.api.isInline()&&(!w.api.z$()||!D)}; lF=function(w){w.V&&(w.V.disable(),w.Nd=0,w.V7.style.removeProperty("transform"),w.progressBar.style.removeProperty("transform"),w.pV.style.removeProperty("height"),w.element.parentElement&&w.element.parentElement.style.removeProperty("height"))}; $BG=function(w,D){var M=D/bF(w)*kS(w);g.Qv(w.progressBar,"transform","translateY("+-D+"px)");g.Qv(w.V7,"transform","translateY("+-D+"px)");g.Qv(w.pV,"transform","translateY("+M+"px)");w.pV.style.height=D+M+"px";w.element.parentElement&&(w.element.parentElement.style.height=kS(w)-M+"px")}; iyk=function(w,D){D?w.G||(w.element.removeAttribute("aria-disabled"),w.G=new g.q6(w.progressBar,!0),w.api.C("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&w.G.subscribe("hoverstart",w.EAJ,w),w.G.subscribe("hovermove",w.qV_,w),w.G.subscribe("hoverend",w.eX_,w),w.G.subscribe("dragstart",w.QsE,w),w.G.subscribe("dragmove",w.RX9,w),w.G.subscribe("dragend",w.uQE,w),w.api&&w.api.C("delhi_modern_web_player")&&w.api.C("delhi_modern_web_player_cutout")&&(w.yF=new g.q6(w.progressBar, !0),w.yF.subscribe("hoverstart",function(){w.Nr=!0;YCJ(w)},w),w.yF.subscribe("hoverend",function(){w.Nr=!1; YCJ(w)},w)),w.oT=w.listen("keydown",w.eP)):w.G&&(w.element.setAttribute("aria-disabled","true"),w.gt(w.oT),w.G.cancel(),w.G.dispose(),w.G=null)}; mf=function(w){return w.api.C("delhi_modern_web_player")?4:w.B?3:2}; wkI=function(w){var D;return!((D=w.cz)==null||!D.postId)&&w.api.getPresentingPlayerType()!==2}; E8=function(w,D){g.J.call(this,{Z:"button",Yt:["ytp-remote-button","ytp-button"],S:{title:w.C("player_tooltip_data_title_killswitch")?"Play on TV":"","data-tooltip-title":"Play on TV","aria-haspopup":"true","data-priority":"10"},LV:"{{icon}}"});this.K=w;this.Ac=D;this.T=null;this.j(w,"onMdxReceiversChange",this.Sk);this.j(w,"presentingplayerstatechange",this.Sk);this.j(w,"appresize",this.Sk);w.createClientVe(this.element,this,139118);this.Sk();this.listen("click",this.V,this);T3(w,this.element,this)}; pE=function(w,D){g.J.call(this,{Z:"button",Yt:["ytp-button","ytp-settings-button"],S:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":An(),title:w.C("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},N:[w.C("delhi_modern_web_player_icons")?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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.xb()]});this.K=w;this.Ac=D;this.V=!0;this.listen("click",this.L);this.j(w,"onPlaybackQualityChange",this.updateBadge);this.j(w,"videodatachange",this.updateBadge);this.j(w,"webglsettingschanged",this.updateBadge);this.j(w,"appresize",this.T);T3(w,this.element,this);this.K.createClientVe(this.element,this,28663);this.updateBadge();this.T(w.qd().getPlayerSize())}; dBK=function(w,D){w.V=!!D;w.T(w.K.qd().getPlayerSize())}; W4=function(w,D){HR.call(this,"Annotations",g.GU.c6);this.K=w;this.Ac=D;this.T=!1;w.C("web_settings_menu_icons")&&(D=w.C("delhi_modern_web_player_icons")?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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(D));this.j(w,"videodatachange",this.Sk);this.j(w,"onApiChange",this.Sk);this.subscribe("select",this.onSelect,this);this.Sk()}; hf=function(w,D,M){g.cp.call(this,"Audio track",g.GU.AUDIO,w,D);this.K=w;this.V=M;this.tracks={};g.AB(this.element,"ytp-audio-menu-item");this.countLabel=new g.J({Z:"div",N:[{Z:"span",LV:"Audio track"},{Z:"span",J:"ytp-menuitem-label-count",LV:"{{content}}"}]});w.C("web_settings_menu_icons")&&!this.K.C("html5_enable_new_audio_settings_menu")&&(D=w.C("delhi_modern_web_player_icons")?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:o7K(),this.setIcon(D));g.T(this,this.countLabel);g.lg(this,this.countLabel);this.j(w,"videodatachange",this.Sk);this.j(w,"onPlaybackAudioChange",this.Sk);this.Sk()}; ypK=function(w,D){g.EH.call(this,g.pi({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.GU.g3);this.K=w;this.Ac=D;g.AB(this.element,"ytp-audio-settings-menu-item");this.kA=new g.jt(w,void 0,"Audio");this.countLabel=new g.J({Z:"div",N:[{Z:"span",LV:"Audio"},{Z:"span",J:"ytp-menuitem-label-count",LV:"{{content}}"}]});w.C("web_settings_menu_icons")&&this.setIcon({Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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.b_=new hf(w,this.Ac,this);g.T(this,this.b_);this.j(w,"settingsMenuInitialized",this.xP.bind(this));this.j(w,"videodatachange",this.xP.bind(this));g.T(this,this.countLabel);g.lg(this,this.countLabel);this.Ac.sB(this);this.j(w,"onPlaybackAudioChange",this.Gg);this.j(w,"audiopreferencechange",this.Gg);this.listen("keydown",this.eP);this.listen("click",this.open)}; tf=function(w,D){HR.call(this,"Autoplay",g.GU.Fh);this.K=w;this.Ac=D;this.T=!1;this.V=[];this.j(w,"presentingplayerstatechange",this.xP);this.subscribe("select",this.onSelect,this);w.createClientVe(this.element,this,113682);this.xP()}; IwS=function(w,D){g.EH.call(this,g.pi({"aria-haspopup":"false"}),0,"More options");this.K=w;this.Ac=D;this.j(this.element,"click",this.onClick);this.Ac.sB(this)}; UBK=function(w,D){var M;g.x2(w.X())&&(M={Z:"div",J:"ytp-panel-footer-content",N:[{Z:"span",LV:"Adjust download quality from your "},{Z:"a",J:"ytp-panel-footer-content-link",LV:"Settings",S:{href:"/account_downloads"}}]});g.cp.call(this,"Quality",g.GU.n9,w,D,void 0,void 0,M);this.K=w;this.V7={};this.Y={};this.V={};this.nV=new Set;this.T=this.D=!1;this.W="unknown";this.G="";this.y7=new g.fu;g.T(this,this.y7);this.D=this.K.C("web_player_use_new_api_for_quality_pullback");this.T=this.K.C("web_player_enable_premium_hbr_playback_cap"); w.C("web_settings_menu_icons")&&(D=w.C("delhi_modern_web_player_icons")?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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(D));g.AB(this.kA.element,"ytp-quality-menu");this.j(w,"videodatachange",this.xP);this.j(w,"videoplayerreset",this.xP);this.j(w,"onPlaybackQualityChange",this.Ua);this.xP();w.createClientVe(this.element,this,137721)}; NTI=function(w,D,M){var L=w.V7[D],Z=g.c_[D];return xBK(w,L?L.qualityLabel:Z?Z+"p":"Auto",D,M)}; HyN=function(w,D,M,L,Z){var k=(D=w.T?w.V[D]:w.Y[D])&&D.quality,b=D&&D.qualityLabel;b=b?b:"Auto";L&&(b="("+b);w=xBK(w,b,k||"",Z);L&&w.N.push(")");(L=(L=D&&D.paygatedQualityDetails)&&L.paygatedIndicatorText)&&M&&w.N.push({Z:"div",J:"ytp-premium-label",LV:L});return w}; xBK=function(w,D,M,L){D={Z:"span",Yt:L,N:[D]};var Z;L="ytp-swatch-color";if(w.D||w.T)L="ytp-swatch-color-white";M==="highres"?Z="8K":M==="hd2880"?Z="5K":M==="hd2160"?Z="4K":M.indexOf("hd")===0&&M!=="hd720"&&(Z="HD");Z&&(D.N.push(" "),D.N.push({Z:"sup",J:L,LV:Z}));return D}; $S=function(w){BN.call(this,w.getAvailablePlaybackRates()[0],w.getAvailablePlaybackRates()[w.getAvailablePlaybackRates().length-1],.05,w.getPlaybackRate(),{Z:"div",J:"ytp-speedslider-indicator-container",N:[{Z:"div",J:"ytp-speedslider-badge"},{Z:"p",J:"ytp-speedslider-text"}]});this.K=w;this.y7=fR(this.nV,50,this);g.AB(this.V,"ytp-speedslider");this.B=this.Z5("ytp-speedslider-text");this.V7=this.Z5("ytp-speedslider-badge");jmK(this);this.j(this.V,"change",this.c_)}; jmK=function(w){w.B.textContent=w.T.toFixed(2)+"x";var D=w.T>2&&w.K.C("enable_web_premium_varispeed");w.V7.classList.toggle("ytp-speedslider-premium-badge",D);w.V7.setAttribute("aria-label",D?"Premium":"")}; iF=function(w,D,M,L,Z,k,b){g.J.call(this,{Z:"div",J:"ytp-slider-section",S:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},N:[{Z:"div",J:"ytp-slider",N:[{Z:"div",J:"ytp-slider-handle"}]}]});this.G=w;this.B=D;this.V=M;this.L=L;this.y7=Z;this.W_=k;this.range=this.L-this.V;this.fV=this.Z5("ytp-slider-section");this.D=this.Z5("ytp-slider");this.V7=this.Z5("ytp-slider-handle");this.Y=new g.q6(this.D, !0);this.T=b?b:M;g.T(this,this.Y);this.Y.subscribe("dragmove",this.QM,this);this.j(this.element,"keydown",this.EC);this.j(this.element,"wheel",this.b$);this.init()}; da=function(w){iF.call(this,.05,.05,w.getAvailablePlaybackRates()[0],w.getAvailablePlaybackRates()[w.getAvailablePlaybackRates().length-1],150,20,w.getPlaybackRate());this.K=w;this.W=g.tM("P");this.c_=fR(this.nV,50,this);g.AB(this.D,"ytp-speedslider");g.AB(this.W,"ytp-speedslider-text");w=this.W;var D=this.D;D.parentNode&&D.parentNode.insertBefore(w,D.nextSibling);g8N(this);this.j(this.K,"onPlaybackRateChange",this.updateValues)}; g8N=function(w){w.W.textContent=Rwk(w,w.T)+"x"}; Rwk=function(w,D){w=Number(g.X4(D,w.V,w.L).toFixed(2));D=Math.floor((w+.001)*100%5+2E-15);var M=w;D!==0&&(M=w-D*.01);return Number(M.toFixed(2))}; o8S=function(w){g.Lb.call(this,{Z:"div",J:"ytp-speedslider-component"});w.C("web_settings_use_input_slider")?this.T=new $S(w):this.T=new da(w);g.T(this,this.T);this.element.appendChild(this.T.element)}; n8x=function(w){var D=new o8S(w);Hp.call(this,w,D,"Custom");g.T(this,D)}; GcT=function(w,D){var M=new n8x(w);g.cp.call(this,"Playback speed",g.GU.WP,w,D,yh(w)?void 0:"Custom",yh(w)?void 0:function(){g.o$(D,M)}); var L=this;this.Y=new g.J({Z:"div",J:"ytp-menuitem-premium-badge"});this.D=!1;g.T(this,M);this.G=new $S(w);g.T(this,this.G);if(w.C("web_settings_menu_icons")){var Z=w.C("delhi_modern_web_player_icons")?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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(Z)}this.K=w;this.D=!1;this.V7=null;yh(w)?(this.T=g.M0("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.K.getPlaybackRate().toString()}),this.W=this.K.getPlaybackRate()):this.W=this.T=null;g.T(this,this.Y);var k,b,C,l;this.nV=(k=this.K.getVideoData())==null?void 0:(b=k.getWatchNextResponse())==null?void 0:(C=b.playerOverlays)==null?void 0:(l=C.playerOverlayRenderer)==null?void 0:l.showPlaybackRateUpsellPanelCommand;FoS(w,this.nV)?(this.V=I7(4),this.K.createClientVe(this.Y.element, this,273508)):this.V=null;this.y7=this.K.getAvailablePlaybackRates();this.j(w,"presentingplayerstatechange",this.Sk);var E;((E=this.K.getVideoData())==null?0:E.rH())&&this.j(w,"serverstitchedvideochange",this.Sk);this.j(this.G.V,"change",function(){L.D=!0;L.Sk()}); this.Sk()}; smS=function(w,D){var M=I7(D);w.T&&(w.D||D===w.W)?(w.V4(w.T),w.sV(D.toString())):w.V4(M)}; v8r=function(w){var D=w.y7.map(I7);w.V&&D.push(w.V);w.cX(D);w.T=null;w.W=null;D=w.K.getPlaybackRate();yh(w.K)&&awC(w,D);!w.y7.includes(D)||w.D?w.V4(w.T):w.V4(I7(D))}; awC=function(w,D){w.W=D;w.T=g.M0("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:D.toString()});D=w.y7.map(I7);D.unshift(w.T);w.V&&D.push(w.V);w.cX(D)}; cpI=function(w,D,M,L){M=new g.EH({Z:"div",Yt:["ytp-menuitem"],S:{tabindex:"0",role:"menuitemradio","aria-checked":L?"true":"false"},N:[{Z:"div",Yt:["ytp-menuitem-label"],N:[{Z:"div",Yt:["ytp-menuitem-container-with-badge"],N:[{Z:"div",LV:"{{label}}"},w.Y]}]}]},M,w.Kf(D));M.listen("click",function(){w.Sz(D)}); w.K.logVisibility(w.Y.element,!0);return M}; I7=function(w){return w.toString()}; yh=function(w){return w.C("web_settings_menu_surface_custom_playback")}; FoS=function(w,D){return!!D&&w.getAvailablePlaybackRates()[w.getAvailablePlaybackRates().length-1]<=2}; BTI=function(w){return w.C("web_settings_menu_surface_custom_playback")&&w.C("web_settings_use_input_slider")}; qCR=function(w,D,M,L){var Z=new g.jt(D,void 0,"Video Override");g.cp.call(this,L.text||"",w,D,M,"Video Override",function(){g.o$(M,Z)}); var k=this;g.AB(this.element,"ytp-subtitles-options-menu-item");this.setting=L.option.toString();w=L.options;this.settings=g.Ol(w,this.mL,this);this.D=Z;g.T(this,this.D);D=new g.EH({Z:"div",J:"ytp-menuitemtitle",LV:"Allow for a different caption style if specified by the video."},0);g.T(this,D);this.D.sB(D,!0);this.V=new g.EH({Z:"div",J:"ytp-menuitem",S:{role:"menuitemradio",tabindex:"0"},N:[{Z:"div",J:"ytp-menuitem-label",LV:"On"}]},-1);g.T(this,this.V);this.D.sB(this.V,!0);this.j(this.V.element, "click",function(){fwj(k,!0)}); this.T=new g.EH({Z:"div",J:"ytp-menuitem",S:{role:"menuitemradio",tabindex:"0"},N:[{Z:"div",J:"ytp-menuitem-label",LV:"Off"}]},-2);g.T(this,this.T);this.D.sB(this.T,!0);this.j(this.T.element,"click",function(){fwj(k,!1)}); this.cX(g.yR(w,this.mL))}; fwj=function(w,D){w.publish("settingChange",w.setting+"Override",!D);w.Ac.Py()}; U8=function(w,D){g.jt.call(this,w,void 0,"Options");var M=this;this.jI={};for(var L=0;L=0);if(!(D<0||D===w.D)){w.D=D;D=243*w.scale;var M=141*w.scale,L=D8x(w.V,w.D,D);wYr(w.bg,L,D,M,!0);w.V7.start()}}; WZl=function(w){var D=w.T;w.type===3&&w.nV.stop();w.api.removeEventListener("appresize",w.y7);w.G||(w.env.C("player_tooltip_data_title_killswitch")?D.setAttribute("title",w.L):D.setAttribute("data-tooltip-title",w.L));w.L="";w.T=null;w.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});w.wrapper.style.width=""}; tLS=function(w){g.J.call(this,{Z:"button",Yt:["ytp-watch-later-button","ytp-button"],S:{title:w.C("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.w0(w.X()))},N:[{Z:"div",J:"ytp-watch-later-icon",LV:"{{icon}}"},{Z:"div",J:"ytp-watch-later-title",LV:"Watch later"}]});this.K=w;this.icon=null;this.visible=this.isRequestPending=this.T=!1;amR(w);w.createClientVe(this.element,this,28665);this.listen("click", this.onClick,this);this.j(w,"videoplayerreset",this.onReset);this.j(w,"appresize",this.N7);this.j(w,"videodatachange",this.N7);this.j(w,"presentingplayerstatechange",this.N7);this.N7();w=this.K.X();var D=g.Rj("yt-player-watch-later-pending");w.D&&D?(KtS(),hMk(this)):this.Sk(2);g.Lt(this.element,"ytp-show-watch-later-title",g.w0(w));T3(this.K,this.element,this)}; $Wa=function(w){var D=w.K.getPlayerSize(),M=w.K.X(),L=w.K.getVideoData(),Z=g.w0(M)&&g.VP(w.K)&&g.z(w.K.getPlayerStateObject(),128),k=M.L;return M.BI&&D.width>=240&&!L.isAd()&&L.BI&&!Z&&!L.yZ&&!w.K.isEmbedsShortsMode()&&!k}; i8N=function(w,D){WRS(g.iw(w.K.X()),"wl_button",function(){KtS({videoId:D});window.location.reload()})}; hMk=function(w){if(!w.isRequestPending){w.isRequestPending=!0;w.Sk(3);var D=w.K.getVideoData();D=w.T?D.removeFromWatchLaterCommand:D.addToWatchLaterCommand;var M=w.K.wZ(),L=w.T?function(){w.T=!1;w.isRequestPending=!1;w.Sk(2);w.K.X().U&&w.K.Q7("WATCH_LATER_VIDEO_REMOVED")}:function(){w.T=!0; w.isRequestPending=!1;w.Sk(1);w.K.X().V&&w.K.Mc(w.element);w.K.X().U&&w.K.Q7("WATCH_LATER_VIDEO_ADDED")}; nQ(M,D).then(L,function(){w.isRequestPending=!1;w.Sk(4,"An error occurred. Please try again later.");w.K.X().U&&w.K.Q7("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; dWl=function(w,D){if(D!==w.icon){switch(D){case 3:var M=ni();break;case 1:M=Cb();break;case 2:M={Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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:M={Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path", TD:!0,S:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}w.updateValue("icon",M);w.icon=D}}; yCK=function(){g.Vr.apply(this,arguments);this.Vj=(this.sR=g.w0(this.api.X()))&&(this.api.X().V||zu()||Q8());this.AZ=48;this.Oj=69;this.Am=this.Nm=null;this.lB=[];this.iE=this.dZ=this.Bg=this.Gs=this.dH=null;this.uC=[];this.contextMenu=this.py=this.overflowButton=this.xx=this.UH=this.searchButton=this.copyLinkButton=this.shareButton=this.fG=this.hW=this.title=this.channelAvatar=this.oZ=this.tooltip=null;this.NU=!1;this.vW=this.xg=this.aP=this.YK=null;this.U8_=this.V9=this.PG=!1}; IQa=function(w){var D=w.api.X(),M=g.z(w.api.getPlayerStateObject(),128);return D.D&&M&&!w.api.isFullscreen()}; UWK=function(w){if(w.kc()&&!w.api.isEmbedsShortsMode()&&w.xx){var D=w.api.C("web_player_hide_overflow_button_if_empty_menu");!w.fG||D&&!$Wa(w.fG)||izC(w.xx,w.fG);!w.shareButton||D&&!v5k(w.shareButton)||izC(w.xx,w.shareButton);!w.copyLinkButton||D&&!G6x(w.copyLinkButton)||izC(w.xx,w.copyLinkButton)}else{D=w.api.X().getWebPlayerContextConfig();if(w.xx){for(var M=w.xx,L=g.x(M.actionButtons),Z=L.next();!Z.done;Z=L.next())Z.value.detach();M.actionButtons=[]}w.searchButton&&!g.Ug(w.hW.element,w.searchButton.element)&& w.searchButton.CV(w.hW.element);!w.fG||(D==null?0:D.hideTopWatchNextButton)||g.Ug(w.hW.element,w.fG.element)||w.fG.CV(w.hW.element);!w.shareButton||(D==null?0:D.hideTopShareButton)||g.Ug(w.hW.element,w.shareButton.element)||w.shareButton.CV(w.hW.element);w.copyLinkButton&&!g.Ug(w.hW.element,w.copyLinkButton.element)&&w.copyLinkButton.CV(w.hW.element)}}; xWk=function(w,D,M){D=M?D.lastElementChild:D.firstElementChild;for(var L=null;D;){if(Vv(D,"display")!=="none"&&D.getAttribute("aria-hidden")!=="true"){var Z=void 0;D.tabIndex>=0?Z=D:Z=xWk(w,D,M);Z&&(L?M?Z.tabIndex>L.tabIndex&&(L=Z):Z.tabIndexL/1E3+1)return{msg:"in-the-past"};if(k.isLivePlayback&&!isFinite(L))return{msg:"live-infinite"};(L=D.ij())&&L.isView()&&(L=L.mediaElement);if(L&&L.As().length>12&&g.QQ(Z))return{msg:"played-ranges"};if(!Z.L)return null;if(!b)return{msg:"no-pvd-formats"};if(!Z.L.T||!b.T)return{msg:"non-dash"};L=b.videoInfos[0];var C=Z.L.videoInfos[0];w.y7&&nL(k)&&(L=D.pG(), C=M.pG());if(!L||!C)return{msg:"no-video-info"};if(w.Y&&(Sl(L)||Sl(C)))return{msg:"av1"};D=w.D&&k.Xz()&&td();if(C.containerType!==L.containerType)if(D)k.H_("sgap",{ierr:"container"});else return{msg:"container"};if(w.W&&!D&&(C.RJ!==L.RJ||C.RJ===""||L.RJ===""))return{msg:"codec"};if(w.G&&C.video&&L.video&&Math.abs(C.video.width/C.video.height-L.video.width/L.video.height)>.01)return{msg:"ratio"};if(g.QQ(k)&&g.QQ(Z))return{msg:"content-protection"};b=b.T[0];Z=Z.L.T[0];M=b.audio;var l=Z.audio;if(M.sampleRate!== l.sampleRate&&!g.d5)if(D)k.H_("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:b.itag,cr:M.sampleRate,ni:Z.itag,nr:l.sampleRate};return(M.numChannels||2)!==(l.numChannels||2)?{msg:"channel-count"}:w.U&&k.Xz()&&L.video.fps!==C.video.fps?{msg:"fps"}:null}; gPS=function(w,D,M){var L=w.getVideoData(),Z=D.getVideoData();if(!L.X().supportsGaplessShorts())return{nq:"env"};if((!M.B||L.ou&&!L.isAd()||Z.ou&&!Z.isAd())&&(!M.V||L.ou&&!L.isAd()||Z.ou)&&(!M.L||Z.ou&&!Z.isAd()||L.ou)&&(L.ou||Z.ou))return{nq:"autoplay"};if(L.endSeconds>0)return{nq:"endcr"};if(!L.G)return{nq:"client"};if(!w.aT())return{nq:"no-empty"};w=jLj(M,w,D,Infinity);return w!=null?{nq:w.msg}:null}; ra=function(w){g.X.call(this);this.app=w;this.W=this.D=this.V=this.T=null;this.L=1;this.events=new g.xM(this);this.events.j(this.app.d9,g.JL("gaplessshortslooprange"),this.U);g.T(this,this.events)}; RMK=function(){this.T=this.G=this.L=this.V=this.B=this.Y=this.y7=this.U=this.W=this.D=!1}; oPj=function(w){var D=new RMK;D.D=w.C("h5_gapless_support_types_diff");D.U=!1;D.y7=w.C("html5_gapless_use_format_info_fix");D.Y=w.C("html5_gapless_disable_on_av1")&&!w.C("html5_gapless_enable_on_av1");D.W=w.C("html5_gapless_check_codec_diff_strictly");D.B=w.C("html5_gapless_on_ad_autoplay");D.G=w.C("html5_gapless_disable_diff_aspect_radio");D.V=w.C("html5_gapless_ad_autoplay_on_ad_to_video_only");D.T=w.C("html5_pseudogapless_shorts_seek_to_next_start");D.L=w.C("html5_gapless_ad_autoplay_on_video_to_ad_only"); return D}; g.ee=function(w,D,M,L){L=L===void 0?!1:L;jV.call(this);this.mediaElement=w;this.start=D;this.end=M;this.T=L}; nPN=function(w,D,M,L,Z,k){k=k===void 0?0:k;g.X.call(this);var b=this;this.policy=w;this.T=D;this.V=M;this.vA=Z;this.W=k;this.D=this.L=null;this.currentVideoDuration=this.Y=-1;this.G=!1;this.qn=new HF;this.oo=L-D.jb()*1E3;this.qn.then(void 0,function(){}); this.timeout=new g.ui(function(){b.nx("timeout")},1E4); g.T(this,this.timeout);this.U=isFinite(L)||this.vA.X().experiments.ek("html5_pseudogapless_shorts")&&nL(D.getVideoData());this.status={status:0,error:null}}; G$j=function(w){var D,M,L,Z,k,b,C,l,E;return g.B(function(p){if(p.T==1){if(w.xt())return p.return(Promise.reject(Error(w.status.error||"disposed")));w.timeout.start();return g.c(p,w.qn,2)}D=w.T.ij();if(D.isEnded())return w.nx("ended_in_finishTransition"),p.return(Promise.reject(Error(w.status.error||"")));if(!w.D||!dk(w.D))return w.nx("next_mse_closed"),p.return(Promise.reject(Error(w.status.error||"")));if(w.V.d2()!==w.D)return w.nx("next_mse_mismatch"),p.return(Promise.reject(Error(w.status.error|| "")));M=X2(w);L=M.Bk;Z=M.WN;k=M.MF;w.T.Mm(!1,!0);b=FZa(D,L,k,!w.V.getVideoData().isAd());w.V.setMediaElement(b);(C=w.T.Eo())&&w.V.VP(C.r_,C.Ga);w.U&&(w.policy.T||w.V.seekTo(w.V.getCurrentTime()+.001,{zO:!0,LM:3,GD:"gapless_pseudo"}),b.play());l=D.qC();l.cpn=w.T.getVideoData().clientPlaybackNonce;l.st=""+L;l.et=""+k;w.V.H_("gapless",l);w.T.H_("gaplessTo",{cpn:w.V.getVideoData().clientPlaybackNonce});E=w.T.getPlayerType()===w.V.getPlayerType();w.T.bq(Z,!0,!1,E,w.V.getVideoData().clientPlaybackNonce); w.V.bq(w.V.getCurrentTime(),!0,!0,E,w.T.getVideoData().clientPlaybackNonce);w.V.J_();g.j4(function(){!w.V.getVideoData().V7&&w.V.getPlayerState().isOrWillBePlaying()&&w.V.Ay()}); TI(w,6);w.dispose();return p.return(Promise.resolve())})}; cCC=function(w){if(w.V.getVideoData().L){var D=w.vA.X().C("html5_gapless_suspend_next_loader")&&w.W===1;w.V.e4(w.D,D,sLK(w));TI(w,3);aQC(w);var M=vPj(w);D=M.F3;M=M.dG;D.subscribe("updateend",w.HK,w);M.subscribe("updateend",w.HK,w);w.HK(D);w.HK(M)}}; aQC=function(w){w.T.unsubscribe("internalvideodatachange",w.ra,w);w.V.unsubscribe("internalvideodatachange",w.ra,w);w.vA.X().C("html5_gapless_use_format_info_fix")&&(w.T.unsubscribe("internalvideoformatchange",w.ra,w),w.V.unsubscribe("internalvideoformatchange",w.ra,w));w.T.unsubscribe("mediasourceattached",w.ra,w);w.V.unsubscribe("statechange",w.He,w)}; FZa=function(w,D,M,L){w=w.isView()?w.mediaElement:w;return new g.ee(w,D,M,L)}; TI=function(w,D){D<=w.status.status||(w.status={status:D,error:null},D===5&&w.qn.resolve())}; sLK=function(w){return w.vA.X().C("html5_gapless_no_clear_buffer_timeline")&&w.W===1&&ay(w.T.getVideoData())}; X2=function(w){var D=w.T.ij();D=D.isView()?D.start:0;var M=w.T.getVideoData().isLivePlayback?Infinity:w.T.hf(!0);M=Math.min(w.oo/1E3,M)+D;var L=w.U?100:0;w=M-w.V.rd()+L;return{Ks:D,Bk:w,WN:M,MF:Infinity}}; vPj=function(w){return{F3:w.L.T.VZ,dG:w.L.V.VZ}}; uF=function(w){g.X.call(this);var D=this;this.app=w;this.Y=this.V=this.T=null;this.U=!1;this.L=this.D=null;this.W=oPj(this.app.X());this.G=function(){g.j4(function(){BXI(D)})}}; fQK=function(w,D,M,L,Z){L=L===void 0?0:L;Z=Z===void 0?0:Z;w.aT()||Se(w);w.D=new HF;w.T=D;var k=M,b=Z===0;b=b===void 0?!0:b;var C=w.app.IJ(),l=C.getVideoData().isLivePlayback?Infinity:C.hf(!0)*1E3;k>l&&(k=l-200,w.U=!0);b&&C.getCurrentTime()>=k/1E3?w.G():(w.V=C,b&&(b=k,k=w.V,w.app.d9.addEventListener(g.QG("vqueued"),w.G),b=isFinite(b)||b/1E3>k.getDuration()?b:0x8000000000000,w.Y=new g.ue(b,0x8000000000000,{namespace:"vqueued"}),k.addCueRange(w.Y)));b=L/=1E3;k=D.getVideoData().T;L&&k&&w.V&&(C=L,l=0, D.getVideoData().isLivePlayback&&(b=Math.min(M/1E3,w.V.hf(!0)),l=Math.max(0,b-w.V.getCurrentTime()),C=Math.min(L,D.hf()+l)),b=sEr(k,C)||L,b!==L&&w.T.H_("qvaln",{st:L,at:b,rm:l,ct:C}));D=b;L=w.T;L.getVideoData().CJ=!0;L.getVideoData().G=!0;L.uu(!0);k={};w.V&&(k=w.V.GK(),b=w.V.getVideoData().clientPlaybackNonce,k={crt:(k*1E3).toFixed(),cpn:b});L.H_("queued",k);D!==0&&L.seekTo(D+.01,{zO:!0,LM:3,GD:"videoqueuer_queued"});w.L=new nPN(w.W,w.app.IJ(),w.T,M,w.app,Z);M=w.L;M.status.status!==Infinity&&(TI(M, 1),M.T.subscribe("internalvideodatachange",M.ra,M),M.V.subscribe("internalvideodatachange",M.ra,M),M.vA.X().C("html5_gapless_use_format_info_fix")&&(M.T.subscribe("internalvideoformatchange",M.ra,M),M.V.subscribe("internalvideoformatchange",M.ra,M)),M.T.subscribe("mediasourceattached",M.ra,M),M.V.subscribe("statechange",M.He,M),M.T.subscribe("newelementrequired",M.ej,M),M.ra());return w.D}; BXI=function(w){var D,M,L,Z,k,b,C;g.B(function(l){switch(l.T){case 1:if(w.xt()||!w.D||!w.T)return l.return();w.U&&w.app.IJ().yP(!0,!1);D=null;if(!w.L){l.KV(2);break}g.jN(l,3);return g.c(l,G$j(w.L),5);case 5:g.oT(l,2);break;case 3:D=M=g.FK(l);case 2:if(!w.T)return l.return();qVr.IS("vqsp",function(){w.app.kQ(w.T)}); if(!w.T)return l.return();L=w.T.ij();w.app.X().C("html5_gapless_seek_on_negative_time")&&L&&L.getCurrentTime()<-.01&&w.T.seekTo(0);qVr.IS("vqpv",function(){w.app.playVideo()}); D&&(w.T?(Z=D?D.message:"forced",(k=w.V)==null||k.H_("gapfulfbk",{r:Z}),w.T.Ec(Z)):(b=w.V)==null||b.H_("gapsp",{}));C=w.D;Se(w);C&&C.resolve();return l.return(Promise.resolve())}})}; Se=function(w,D){D=D===void 0?!1:D;if(w.V){if(w.Y){var M=w.V;w.app.d9.removeEventListener(g.QG("vqueued"),w.G);M.removeCueRange(w.Y)}w.V=null;w.Y=null}w.L&&(w.L.status.status!==6&&(M=w.L,M.status.status!==Infinity&&M.W!==1&&M.nx("Canceled")),w.L=null);w.D=null;w.T&&!D&&w.T!==w.app.OL()&&w.T!==w.app.IJ()&&w.T.dispose();w.T&&D&&w.T.lA();w.T=null;w.U=!1}; rCC=function(w){var D;return((D=w.L)==null?void 0:D.currentVideoDuration)||-1}; eMR=function(w,D,M){if(w.aT())return"qie";if(w.T==null||w.T.xt()||w.T.getVideoData()==null)return"qpd";if(D.videoId!==w.T.eJ())return"vinm";if(rCC(w)<=0)return"ivd";if(M!==1)return"upt";if((M=w.L)==null)w=void 0;else if(M.getStatus().status!==5)w="niss";else if(jLj(M.policy,M.T,M.V,M.oo)!=null)w="pge";else{D=vPj(M);w=D.F3;var L=D.dG;D=g.A3(M.vA.X().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var Z=M.Y+D;M.vA.X().experiments.ek("html5_pseudogapless_shorts")&&(Z=X2(M).Bk+D);M=kW(L.O4(), Z);w=kW(w.O4(),Z);w=!(D>0)||M&&w?null:"neb"}return w!=null?w:null}; Xuj=function(){g.mI.call(this);var w=this;this.fullscreen=0;this.D=this.L=this.pictureInPicture=this.T=this.V=this.inline=!1;this.W=function(){w.uo()}; rHG(this.W);this.Y=this.getVisibilityState(this.Fl(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.z$(),this.Ia(),this.Ef(),this.X1())}; ToG=function(w){return!(w.isMinimized()||w.isInline()||w.isBackground()||w.z$()||w.Ia()||w.Ef()||w.X1())}; g.Qh=function(w){g.X.call(this);this.mE=w;this.videoData=this.playerState=null}; Vh=function(w,D){g.X.call(this);var M=this;this.data=[];this.L=w||NaN;this.V=D||null;this.T=new g.ui(function(){Jf(M);zI(M)}); g.T(this,this.T)}; cjS=function(w){Jf(w);return w.data.map(function(D){return D.value})}; Jf=function(w){var D=(0,g.IC)();w.data.forEach(function(M){M.expire0));w.gW()&& FHJ();Error.stackTraceLimit=50;var Z=g.A3(D,"html5_idle_rate_limit_ms");Z&&Object.defineProperty(window,"requestIdleCallback",{value:function(k){return window.setTimeout(k,Z)}}); L8x(w.W);AoI(M("html5_use_ump_request_slicer"));ozl(M("html5_record_now"));M("html5_disable_streaming_xhr")&&(dq=!1);M("html5_byterate_constraints")&&(Rh=!0);M("html5_use_non_active_broadcast_for_post_live")&&(hc=!0);M("html5_enable_encrypted_av1")&&(uM=!0);M("html5_skip_num_channels_for_iamf")&&(wEl=!0);zmR(g.A3(w.experiments,"html5_sticky_duration_mos"))}; VLl=function(w,D){return w.slice(D.length).replace(/_[a-z]/g,function(M){return M.toUpperCase().replace("_","")}).replace("Dot",".")}; PaS=function(w){var D={},M=Object.keys(w.experiments.flags);M=g.x(M);for(var L=M.next();!L.done;L=M.next())if(L=L.value,L.startsWith("cobalt_h5vcc"))if(L.startsWith("cobalt_h5vcc_string")){var Z=VLl(L,"cobalt_h5vcc_string");L=U2(w.experiments,L);Z&&L&&(D[Z]=osG(Z,L))}else L.startsWith("cobalt_h5vcc")&&(Z=VLl(L,"cobalt_h5vcc"),L=g.A3(w.experiments,L),Z&&L&&(D[Z]=osG(Z,L)));return D}; KZJ=function(w,D,M,L){L=L===void 0?0:L;g.Zi.call(this,M.XT());var Z=this;this.j2=w;this.videoData=D;this.duration=L;this.T=this.startTimeSecs=0;this.V=new O8l(function(k,b){return void Z.H_(k,b)})}; O8l=function(w){this.H_=w;this.T={}}; mWj=function(w,D,M){w.T[D]||(w.H_("huli-sdai-err",M),w.T[D]=!0)}; ACN=function(w){this.end=this.start=w}; g.Af=function(){this.T=new Map;this.L=new Map;this.V=new Map}; w0K=function(w){var D=this;this.mE=w;this.V=[];this.L=new Map;this.D=new Map;this.T=new Map;this.Bz={U6:function(){return D.L}, JrL:function(){return D.D}, O6:function(){return D.V}}; this.W=this.mE.C("html5_huli_ssdai_deprecate_playback_timeline_id")}; Dox=function(w,D,M){w=w.V;var L=g.TD(w,{ZO:D},function(b,C){return b.ZO-C.ZO}); L=L<0?(L+2)*-1:L;if(L>=0)for(var Z=L;Z<=L+1&&Z=k.ZO-M&&D<=k.DX+M)return k}}; Lnk=function(w,D){g.V1(w.V,D,function(M,L){return M.ZO===L.ZO?M.durationMs-L.durationMs:M.ZO-L.ZO}); w.L.set(D.cpn,D);D.JQ&&!w.W&&w.D.set(D.JQ,D);D.tH&&MRI(w,D.tH,D)}; Zxj=function(w,D){for(var M=[],L=g.x(w.V),Z=L.next();!Z.done;Z=L.next())Z=Z.value,D(Z)||M.push(Z);if(w.mE.C("html5_sstm_fixes"))for(L=g.x(w.V),Z=L.next();!Z.done;Z=L.next())Z=Z.value,D(Z)&&(w.L.delete(Z.cpn),Z.JQ&&w.D.delete(Z.JQ));w.V=M}; kSj=function(w,D){D=g.TD(w.V,{DX:D},function(M,L){return M.DX-L.DX}); return D>=0?w.V[D]:null}; bxC=function(w,D){var M=w.V.indexOf(D);M>=0&&w.V.splice(M,1);w.L.delete(D.cpn);D.JQ&&w.D.delete(D.JQ)}; MRI=function(w,D,M){var L=w.T.get(D);L?(L.push(M),g.Jx(L,function(Z,k){return Z.ZO-k.ZO})):w.T.set(D,[M])}; g.w$=function(w,D,M,L){g.X.call(this);var Z=this;this.api=w;this.mE=D;this.playback=M;this.app=L;this.V7=new g.Af;this.V=new Map;this.W_=new Map;this.c_=null;this.iW=NaN;this.Nd=this.pV=null;this.EL=new g.ui(function(){YGx(Z,Z.iW,Z.pV||void 0)}); this.events=new g.xM(this);this.jk=15E3;this.G=new g.ui(function(){Z.U=!0;Z.playback.Ud(Z.jk);CqK(Z);if(Z.playback.getVideoData().rH()){var k;Z.La({togab:(k=Z.Y)==null?void 0:k.identifier})}Z.Az(!1)},this.jk); this.U=!1;this.W=new Map;this.Jc=[];this.Y=null;this.HA=new Set;this.B=[];this.XE=[];this.GU=[];this.oO=[];this.fV=new Set;this.eI=0;this.y7=!1;this.Sb=new Set;this.wW=new Set;this.NC=new Set;this.bW=new Set;this.TU=this.hs=0;this.fS=this.mu=!1;this.OT=this.L="";this.nV=null;this.logger=new g.yI("dai");this.Bz={Cd7:function(){return Z.V}, U6:function(){return Z.T.Bz.U6()}, FlW:function(){return Z.L}, HLL:function(k){Z.onCueRangeEnter(Z.V.get(k))}, nyL:function(k){Z.onCueRangeExit(Z.V.get(k))}, hlc:function(k,b){Z.V.set(k,b)}, I1c:function(k){Z.OT=k}, Xm:function(){return Z.Xm()}, YRL:function(k){return Z.T.T.get(k)}, gQL:function(){return Z.nV}, O6:function(){return Z.T.Bz.O6()}}; this.playback.getPlayerType();this.T=new w0K(this.mE);this.playback.vg(this);this.Md=this.mE.gW();g.T(this,this.EL);g.T(this,this.events);g.T(this,this.G);this.mE.C("html5_use_new_ssdai_transition_detector")?this.playback.subscribe("playbackstarted",this.sC,this):(this.events.j(this.api,g.QG("serverstitchedcuerange"),this.onCueRangeEnter),this.events.j(this.api,g.JL("serverstitchedcuerange"),this.onCueRangeExit));mN(this.app.Hy(),this.playback,!1)}; h3j=function(w,D,M,L,Z,k,b,C){var l=lHK(w,k,k+Z);w.U&&w.La({adaftto:1});M||w.La({missadcon:1,enter:k,len:Z,aid:C});w.D&&!w.D.pB&&(w.D.pB=C);w.fS&&w.La({adfbk:1,enter:k,len:Z,aid:C});var E=w.playback;k>b&&Dn(w,{reason:"enterTime_greater_than_return",ZO:k,DX:b});var p=E.BA()*1E3;kE&&Dn(w,{reason:"parent_return_greater_than_content_duration",DX:b,KWk:E});(E=kSj(w.T,k))&&E.DX>k&&Epl(w,D.video_id||"", k,b,E);if(l&&E)for(p=0;p=D)return M}w=g.x(w.V.values());for(M=w.next();!M.done;M=w.next())if(M=M.value,M.start<=D&&M.end>=D)return M}; YGx=function(w,D,M){var L=w.Nd||w.app.IJ().getPlayerState();Zn(w,!0);w.playback.seekTo(D,M);w=w.app.IJ();D=w.getPlayerState();L.isOrWillBePlaying()&&!D.isOrWillBePlaying()?w.playVideo():L.isPaused()&&!D.isPaused()&&w.pauseVideo()}; Zn=function(w,D){w.iW=NaN;w.pV=null;w.EL.stop();w.c_&&D&&w.c_.ix();w.Nd=null;w.c_=null}; jUN=function(w){var D=D===void 0?-1:D;var M=M===void 0?Infinity:M;Ncl(w,D,M);for(var L=g.x(w.V.values()),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.start>=D&&Z.end<=M&&(w.playback.removeCueRange(Z),w.V.delete(Z.getId()),w.La({rmAdCR:1}));L=LC(w,D/1E3);D=L.NN;L=L.nY;D&&(L=L*1E3-D.ZO,HxR(w,D,L,D.ZO+L),L=w.V.get(D.cpn))&&(L.start=D.ZO,L.end=D.ZO+D.durationMs);if(D=LC(w,M/1E3).NN){var k;L="playback_timelinePlaybackId_"+D.JQ+"_video_id_"+((k=D.videoData)==null?void 0:k.videoId)+"_durationMs_"+D.durationMs+ "_enterTimeMs_"+D.ZO+"_parentReturnTimeMs_"+D.DX;w.Xd("Invalid_clearEndTimeMs_"+M+"_that_falls_during_"+L+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; gpJ=function(w){w.V7.clearAll();w.V.clear();w.T.clear();w.W.clear();w.Jc=[];w.Y=null;w.HA.clear();w.mE.experiments.ek("html5_ssdai_log_missing_ad_config_reason")&&w.fV.clear();w.B=[];w.XE=[];w.GU=[];w.oO=[];w.Sb.clear();w.wW.clear();w.NC.clear();w.bW.clear();w.U=!1;w.eI=0;w.y7=!1;w.hs=0;w.TU=0;w.mu=!1;w.fS=!1;w.L="";TXl(w.app.Hy());mN(w.app.Hy(),w.playback,!1);w.W_.clear();w.G.isActive()&&MF(w)}; HxR=function(w,D,M,L){D.durationMs=M;D.DX=L;(L=w.W_.get(D.cpn))?L.OM(M/1E3):w.La({nop_d:D.cpn})}; Ncl=function(w,D,M){Zxj(w.T,function(L){return L.ZO>=D&&L.DX<=M})}; npx=function(w,D,M,L,Z,k){if(!w.fS)if(g.R3K(w,M))w.La({gdu:"undec",seg:M,itag:Z});else if(D=opN(w,D,M,L,k),!(w.playback.getVideoData().rH()&&(D==null?0:D.j8)))return D}; opN=function(w,D,M,L,Z){var k=w.W.get(M);if(!k){if(k=Fnr(w,D))return k;D=w.Pf(M-1,L!=null?L:2);if(Z)return w.La({misscue:Z,sq:M,type:L,prevsstate:D==null?void 0:D.cK,prevrecord:w.W.has(M-1)}),w.W.get(M-1);if((D==null?void 0:D.cK)===2)return w.La({adnf:1,sq:M,type:L,prevrecord:w.W.has(M-1)}),w.W.get(M-1)}return k}; Fnr=function(w,D){D+=w.OD();var M;if(w.playback.getVideoData().rH()){a:{var L=D*1E3;w=g.x(w.T.V);for(M=w.next();!M.done;M=w.next()){M=M.value;var Z=M.C1?M.C1*1E3:M.ZO;if(L>=M.ZO-1E3&&L<=Z+M.durationMs+1E3){L=M;break a}}L=void 0}M={NN:L,nY:D}}else M=LC(w,D),((L=M)==null?0:L.NN)||(M=LC(w,D,1));var k;return(k=M)==null?void 0:k.NN}; GSJ=function(w,D){D=D===void 0?"":D;var M=ap(D)||void 0;if(!D||!M){var L;w.La({adcfg:(L=D)==null?void 0:L.length,dcfg:M==null?void 0:M.length})}return M}; sUC=function(w){for(var D=g.x(w.V.values()),M=D.next();!M.done;M=D.next())w.playback.removeCueRange(M.value);w.V.clear();w.V7.clearAll()}; aHN=function(w,D,M,L,Z,k,b){if(D&&M){w.OT=M.cpn;w.mE.C("html5_use_new_ssdai_transition_detector")&&b||w.ER(M.cpn,M.startTimeSecs||Z);$oI(w,M);var C=tRK(w,"a2a",M);w.La(C);w.hs++;w.playback.q1(D,M,L||0,Z||0,!!k,!!b)}else w.La({misspbkonadtrans:1,enter:(M==null?void 0:M.cpn)||"",exit:(D==null?void 0:D.cpn)||"",seek:k,skip:b})}; kc=function(w,D,M){if(M===void 0||!M){M=g.x(w.Jc);for(var L=M.next();!L.done;L=M.next()){L=L.value;if(D>=L.start&&D<=L.end)return;if(D===L.end+1){L.end+=1;return}}w.Jc.push(new ACN(D))}}; g.R3K=function(w,D){w=g.x(w.Jc);for(var M=w.next();!M.done;M=w.next())if(M=M.value,D>=M.start&&D<=M.end)return!0;return!1}; vpj=function(w,D,M){var L;if(L=w.playback.getVideoData().rH())L=(L=w.T.fl({cpn:D}))&&L.tH?(w=w.T.T.get(L==null?void 0:L.tH))&&w.slice(-1)[0].cpn===D:!1;return L&&M===2?1E3:0}; Epl=function(w,D,M,L,Z){var k;D={reason:"overlapping_playbacks",oZE:D,ZO:M,DX:L,oyE:Z.JQ,D35:((k=Z.videoData)==null?void 0:k.videoId)||"",VEt:Z.durationMs,L_d:Z.ZO,zW5:Z.DX};Dn(w,D)}; Dn=function(w,D,M){w.playback.mA(D,M)}; cZC=function(w,D){var M=[];w=w.T.T.get(D);if(!w)return[];w=g.x(w);for(D=w.next();!D.done;D=w.next())D=D.value,D.cpn&&M.push(D.cpn);return M}; Bca=function(w,D,M){var L=0;w=w.T.T.get(M);if(!w)return-1;w=g.x(w);for(M=w.next();!M.done;M=w.next()){if(M.value.cpn===D)return L;L++}return-1}; fHK=function(w,D){var M=0;w=w.T.T.get(D);if(!w)return 0;w=g.x(w);for(D=w.next();!D.done;D=w.next())D=D.value,D.durationMs!==0&&D.DX!==D.ZO&&M++;return M}; qGN=function(w,D,M){var L=!1;if(M=w.T.T.get(M)){M=g.x(M);for(var Z=M.next();!Z.done;Z=M.next())Z=Z.value,Z.durationMs!==0&&Z.DX!==Z.ZO&&(Z=Z.cpn,D===Z&&(L=!0),L&&!w.wW.has(Z)&&(w.La({decoratedAd:Z}),w.wW.add(Z)))}}; CqK=function(w){w.Md&&w.La({adf:"0_"+((new Date).getTime()/1E3-w.TU)+"_isTimeout_"+w.U})}; lHK=function(w,D,M){if(w.B.length)for(var L=g.x(w.B),Z=L.next(),k={};!Z.done;k={I3:void 0},Z=L.next()){k.I3=Z.value;Z=k.I3.startSecs*1E3;var b=k.I3.x6*1E3+Z;if(D>Z&&DZ&&M0?w:0}else w.Xm().videoData.FK=w.playback.getCurrentTime()}; e3R=function(w){w.bW.add(w.L);w.L="";w.y7=!1}; QUr=function(w,D,M,L){g.X.call(this);var Z=this;this.api=w;this.mE=D;this.T=M;this.app=L;this.W=new Map;this.V=[];this.L=this.G=null;this.y7=NaN;this.Y=this.D=this.B=null;this.U=new g.ui(function(){SGa(Z,Z.y7,Z.B||void 0)}); this.V7=[];this.nV=new g.ui(function(){var k=Z.V7.pop();if(k){var b=k.JQ,C=k.playerVars;k=k.playerType;C&&(C.prefer_gapless=!0,Z.api.preloadVideoByPlayerVars(C,k,NaN,"",b),Z.V7.length&&g.S3(Z.nV,4500))}}); this.events=new g.xM(this);this.Bz={jw7:function(){return Z.V}}; this.T.getPlayerType();g.T(this,this.U);g.T(this,this.nV);g.T(this,this.events);this.events.j(this.api,g.QG("childplayback"),this.onCueRangeEnter);this.events.j(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.j(this.api,"presentingplayerstatechange",this.fJ)}; PqK=function(w,D,M,L,Z,k){var b=D.cpn,C=D.docid||D.video_id||D.videoId||D.id,l=w.T;k=k===void 0?Z+L:k;if(Z>k)return CC(w,"enterAfterReturn enterTimeMs="+Z+" is greater than parentReturnTimeMs="+k.toFixed(3),b,C),"";var E=l.BA()*1E3;if(ZE)return l="returnAfterDuration parentReturnTimeMs="+k.toFixed(3)+" is greater than parentDurationMs="+E+". And timestampOffset in seconds is "+ l.jb(),CC(w,l,b,C),"";E=null;for(var p=g.x(w.V),W=p.next();!W.done;W=p.next()){W=W.value;if(Z>=W.ZO&&ZW.ZO)return CC(w,"overlappingReturn",b,C),"";if(k===W.ZO)return CC(w,"outOfOrder",b,C),"";Z===W.DX&&(E=W)}b="cs_childplayback_"+JZR++;C={bO:ln(L,!0),oo:Infinity,target:null};var h={JQ:b,playerVars:D,playerType:M,durationMs:L,ZO:Z,DX:k,Su:C};w.V=w.V.concat(h).sort(function(N,n){return N.ZO-n.ZO}); E?z3I(w,E,{bO:ln(E.durationMs,!0),oo:E.Su.oo,target:h}):(D={bO:ln(Z,!1),oo:Z,target:h},w.W.set(D.bO,D),l.addCueRange(D.bO));D=!0;if(w.T===w.app.IJ()&&(l=l.getCurrentTime()*1E3,l>=h.ZO&&lD)break;if(k>D)return{NN:L,nY:D-Z};M=k-L.DX/1E3}return{NN:null,nY:D-M}}; SGa=function(w,D,M){M=M===void 0?{}:M;var L=w.Y||w.app.IJ().getPlayerState();WG(w,!0);D=isFinite(D)?D:w.T.vy();var Z=AZr(w,D);D=Z.nY;var k=(Z=Z.NN)&&!ES(w,Z)||!Z&&w.T!==w.app.IJ(),b=D*1E3;b=w.L&&w.L.start<=b&&b<=w.L.end;!k&&b||pC(w);Z?VRj(w,Z,D,M,L):w6I(w,D,M,L,"_execute")}; w6I=function(w,D,M,L,Z){var k=w.T;k!==w.app.IJ()&&w.app.UF();w.mE.C("html5_sabr_csdai_seek_log")||(Z="");var b;k.seekTo(D,Object.assign({},{GD:"application_timelinemanager"+((b=Z)!=null?b:"")},M));Dsj(w,L)}; VRj=function(w,D,M,L,Z){var k=ES(w,D);if(!k){D.playerVars.prefer_gapless=!0;var b=new g.db(w.mE,D.playerVars);b.JQ=D.JQ;w.api.Fa(b,D.playerType)}b=w.app.IJ();k||b.addCueRange(D.Su.bO);b.seekTo(M,Object.assign({},{GD:"application_timelinemanager"},L));Dsj(w,Z)}; Dsj=function(w,D){w=w.app.IJ();var M=w.getPlayerState();D.isOrWillBePlaying()&&!M.isOrWillBePlaying()?w.playVideo():D.isPaused()&&!M.isPaused()&&w.pauseVideo()}; WG=function(w,D){w.y7=NaN;w.B=null;w.U.stop();w.D&&D&&w.D.ix();w.Y=null;w.D=null}; ES=function(w,D){w=w.app.IJ();return!!w&&w.getVideoData().JQ===D.JQ}; MSl=function(w){var D=w.V.find(function(Z){return ES(w,Z)}); if(D){var M=w.app.IJ();pC(w);var L=new g.FF(8);D=moT(w,D)/1E3;w6I(w,D,{},L,"_force");M.H_("forceParentTransition",{childPlayback:1});w.T.H_("forceParentTransition",{parentPlayback:1})}}; Z0J=function(w,D,M){D=D===void 0?-1:D;M=M===void 0?Infinity:M;for(var L=D,Z=M,k=g.x(w.W),b=k.next();!b.done;b=k.next()){var C=g.x(b.value);b=C.next().value;C=C.next().value;C.oo>=L&&C.target&&C.target.DX<=Z&&(w.T.removeCueRange(b),w.W.delete(b))}L=D;Z=M;k=[];b=g.x(w.V);for(C=b.next();!C.done;C=b.next())if(C=C.value,C.ZO>=L&&C.DX<=Z){var l=w;l.G===C&&pC(l);ES(l,C)&&l.app.UF()}else k.push(C);w.V=k;L=AZr(w,D/1E3);D=L.NN;L=L.nY;D&&(L*=1E3,LWx(w,D,L,D.DX===D.ZO+D.durationMs?D.ZO+L:D.DX));(D=AZr(w,M/1E3).NN)&& CC(w,"Invalid clearEndTimeMs="+M+" that falls during playback={timelinePlaybackId="+(D.JQ+" video_id="+D.playerVars.video_id+" durationMs="+D.durationMs+" enterTimeMs="+D.ZO+" parentReturnTimeMs="+D.DX+"}.Child playbacks can only have duration updated not their start."))}; LWx=function(w,D,M,L){D.durationMs=M;D.DX=L;L={bO:ln(M,!0),oo:M,target:null};z3I(w,D,L);ES(w,D)&&w.app.IJ().getCurrentTime()*1E3>M&&(D=moT(w,D)/1E3,M=w.app.IJ().getPlayerState(),w6I(w,D,{},M,"_update"))}; CC=function(w,D,M,L){w.T.H_("timelineerror",{e:D,cpn:M?M:void 0,videoId:L?L:void 0})}; b0S=function(w){w&&w!=="web"&&kEG.includes(w)}; hy=function(){g.X.call(this);this.T=new Vh(5,null);g.T(this,this.T);this.V=new Vh(15,null);g.T(this,this.V)}; jBG=function(w,D){return D?!!w.T.get(D):!1}; YmT=function(w,D){w.dataset.version=D}; Ehl=function(w){g.J.call(this,{Z:"div",Yt:["html5-video-player"],S:{tabindex:w.X().disableOrganicUi?"":"-1",id:w.webPlayerContextConfig.rootElementId},N:[{Z:"div",J:g.Up.VIDEO_CONTAINER,S:{"data-layer":"0"}}]});var D=this;this.app=w;this.jo=this.Z5(g.Up.VIDEO_CONTAINER);this.MZ=new g.Td(0,0,0,0);this.i9=null;this.qz=new g.Td(0,0,0,0);this.Qr=this.o0=this.zY=NaN;this.pK=this.kE=this.GB=this.Iz=!1;this.nF=NaN;this.hP=!1;this.XC=null;this.Zi=new g.ui(function(){return void D.resize()},100); this.I0=function(){D.element.focus({preventScroll:!0})}; this.gR=function(){D.app.d9.publish("playerUnderlayVisibilityChange","visible");D.i9.classList.remove(g.Up.VIDEO_CONTAINER_TRANSITIONING);D.i9.removeEventListener(sH,D.gR);D.i9.removeEventListener("transitioncancel",D.gR)}; this.iM=this.ZI=!1;var M=this.element.addEventListener,L=this.element.removeEventListener;this.addEventListener=function(k,b,C){M.apply(D.element,[k,b,C])}; this.removeEventListener=function(k,b,C){L.apply(D.element,[k,b,C])}; var Z=w.X();Z.transparentBackground&&this.Z1("ytp-transparent");Z.controlsType==="0"&&this.Z1("ytp-hide-controls");g.AB(this.element,"ytp-exp-bottom-control-flexbox");g.AB(this.element,"ytp-modern-caption");Z.C("enable_new_paid_product_placement")&&!g.jZ(Z)&&g.AB(this.element,"ytp-exp-ppp-update");g.AB(this.element,"ytp-livebadge-color");if(Z.C("delhi_modern_web_player"))switch(g.AB(this.element,"ytp-delhi-modern"),Z.C("delhi_modern_web_player_icons")&&g.AB(this.element,"ytp-delhi-modern-icons"), Z.C("delhi_modern_web_player_horizontal_volume_controls")&&g.AB(this.element,"ytp-delhi-horizontal-volume-controls"),U2(Z.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.AB(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.AB(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.AB(this.element,"ytp-delhi-modern-with-exclusion")}YmT(this.element,CVr(w));this.ST=!1;this.CZ=new g.Jv(NaN,NaN);lcR(this);this.j(w.d9,"onMutedAutoplayChange", this.onMutedAutoplayChange);g.T(this,this.Zi)}; lcR=function(w){function D(b){w.i9&&ty(w);$c(w)!==w.hP&&w.resize();w.app.X().C("web_enable_smart_zoom")&&w.fF&&(b.state.isPaused()?w.fF.pause():g.Y0(b,8)&&w.fF.playState==="paused"&&w.fF.play())} function M(b,C){w.vX(b,C)} function L(b){b.getVideoData()&&w.updateVideoData(b.getVideoData())} function Z(){w.qz=new g.Td(0,0,0,0);w.MZ=new g.Td(0,0,0,0)} var k=w.app.d9;k.addEventListener("initializingmode",Z);k.addEventListener("videoplayerreset",L);k.addEventListener("videodatachange",M);k.addEventListener("presentingplayerstatechange",D);w.addOnDisposeCallback(function(){k.removeEventListener("initializingmode",Z);k.removeEventListener("videoplayerreset",L);k.removeEventListener("videodatachange",M);k.removeEventListener("presentingplayerstatechange",D)})}; WWR=function(w){var D=w.app.IJ();if(D=D?D.getVideoData():null){if(g.wZ(D)||g.D_(D)||g.My(D))return 16/9;if(oy(D)&&D.L.T)return w=D.L.videoInfos[0].video,p6l(w.width,w.height)}return(w=w.i9)?p6l(w.videoWidth,w.videoHeight):16/9}; hXJ=function(w,D,M,L){var Z=M,k=p6l(D.width,D.height);w.Iz?Z=Mk?{width:D.width,height:D.width/Z,aspectRatio:Z}:ZZ?w.width=w.height*M:Ml;if($c(w)){var E=WWR(w);var p=isNaN(E)||g.XT||iP&&g.pf||l;e$&&!g.eq(601)?E=Z.aspectRatio:p=p||k.controlsType==="3";p?l?(p=k.C("place_shrunken_video_on_left_of_player")?16:w.getPlayerSize().width-D.width-16,E=Math.max((w.getPlayerSize().height-D.height)/2,0),p=new g.Td(p,E,D.width, D.height),w.i9.style.setProperty("border-radius","12px")):p=new g.Td(0,0,D.width,D.height):(M=Z.aspectRatio/E,p=new g.Td((D.width-Z.width/M)/2,(D.height-Z.height)/2,Z.width/M,Z.height),M===1&&g.pf&&(E=p.width-D.height*E,E>0&&(p.width+=E,p.height+=E)));g.Lt(w.element,"ytp-fit-cover-video",Math.max(p.width-Z.width,p.height-Z.height)<1);if(C||w.ST)w.i9.style.display="";w.hP=!0}else{p=-D.height;e$?p*=window.devicePixelRatio:g.g0&&(p-=window.screen.height);p=new g.Td(0,p,D.width,D.height);if(C||w.ST)w.i9.style.display= "none";w.hP=!1}u5(w.qz,p)||(w.qz=p,g.Y2(k)?(w.i9.style.setProperty("width",p.width+"px","important"),w.i9.style.setProperty("height",p.height+"px","important")):g.Du(w.i9,p.getSize()),L=new g.Sq(p.left,p.top),g.KR(w.i9,Math.round(L.x),Math.round(L.y)),L=!0);D=new g.Td((D.width-Z.width)/2,(D.height-Z.height)/2,Z.width,Z.height);u5(w.MZ,D)||(w.MZ=D,L=!0);g.Qv(w.i9,"transform",M===1?"":"scaleX("+M+")");b&&l!==w.kE&&(l&&(w.i9.addEventListener(sH,w.gR),w.i9.addEventListener("transitioncancel",w.gR),w.i9.classList.add(g.Up.VIDEO_CONTAINER_TRANSITIONING)), w.kE=l,w.app.d9.publish("playerUnderlayVisibilityChange",w.kE?"transitioning":"hidden"));return L}; i0K=function(w){w.ZI=!w.ZI;w.iM=!0;w.element.classList.toggle("ytp-retro-player",w.ZI);w.resize();w.iM=!1;w.app.d9.Q7("onRetroModeChanged",w.ZI)}; dsj=function(){this.csn=g.$9();this.clientPlaybackNonce=null;this.elements=new Set;this.L=new Set;this.T=new Set;this.V=new Set}; ylG=function(w){if(w.csn!==g.$9())if(w.csn==="UNDEFINED_CSN")w.csn=g.$9();else{var D=g.$9(),M=g.tn();if(D&&M){w.csn=D;for(var L=g.x(w.elements),Z=L.next();!Z.done;Z=L.next())(Z=Z.value.visualElement)&&Z.isClientVe()&&D&&M&&(g.hY("combine_ve_grafts")?Zt(Ma(),Z,M):g.Q6(g.f1)(void 0,D,M,Z))}if(D)for(w=g.x(w.T),M=w.next();!M.done;M=w.next())(M=M.value.visualElement)&&M.isClientVe()&&g.QJ(D,M)}}; g.d$=function(w,D,M,L){g.X.call(this);var Z=this;this.logger=new g.yI("App");this.LY=this.dK=!1;this.pA={};this.w_=[];this.t0=!1;this.YD=null;this.intentionalPlayback=!1;this.Cz=!0;this.rD=!1;this.rS=this.NJ=this.E2=null;this.UP=!0;this.mediaElement=this.cz=null;this.Kd=NaN;this.JO=!1;this.XK=this.CU=this.iT=this.screenLayer=this.playlist=null;this.oX=[];this.U2=0;this.Bz={Hy:function(){return Z.Cl}, YQ7:function(){return Z.iT}}; this.logger.debug("constructor begin");if(!M)throw Error("b/179532961");this.Uc=(D==null?void 0:D.args)||{};this.webPlayerContextConfig=M;Lpj();D=this.Uc;this.mE=new t6(D,M,M.canaryState,L,this);g.T(this,this.mE);if(this.C("html5_player_intkey")){var k=this.kK(),b=this.Xj();L=k==null?void 0:k.T.vr(IcG);k=k==null?void 0:k.T.vr(UsC);var C=b==null?void 0:b.T.vr(xsK);b=b==null?void 0:b.T.vr(NmI);this.T_("intkey",{input:M.serializedClientExperimentFlags,ub:""+L,ui:""+k,cb:""+C,ci:""+b})}zMx(this.mE);M= PaS(this.mE);this.mE.gW()&&this.T_("h5vcc",M);this.mE.experiments.ek("jspb_serialize_with_worker")&&epr();this.mE.experiments.ek("gzip_gel_with_worker")&&FBN();this.mE.V&&!H0G&&(window.addEventListener(O2?"touchstart":"click",H8R,{capture:!0,passive:!0}),H0G=!0);this.C("html5_onesie")&&(this.Lk=new EE(this.mE),g.T(this,this.Lk));this.l6=OO(Mi(this.mE)&&!0,D.enablesizebutton);this.S$=OO(!1,D.player_wide);this.visibility=new Xuj;g.T(this,this.visibility);this.C("web_log_theater_mode_visibility")&&this.A5(OO(!1, D.player_wide));this.dK=OO(!1,D.external_list);this.events=new g.xM(this);g.T(this,this.events);this.C("start_client_gcf")&&(Ua(jC(),{Pn:DF,M6:ABK()}),this.zL=jC().resolve(DF),MmT(this.zL));this.GCt=new G3;g.T(this,this.GCt);this.Rw=new dsj;M=new s9;this.d9=new g.Sf(this,M);g.T(this,this.d9);this.template=new Ehl(this);g.T(this,this.template);this.appState=1;this.ue=jlI(this);g.T(this,M);M={};this.vJ=(M.internalvideodatachange=this.FA,M.playbackready=this.HaW,M.playbackstarted=this.VbE,M.statechange= this.Lu5,M);this.LI=new $X(this.d9);this.s4=ghr(this);M=this.mE.Y;!1!==M&&this.T_("badps",{hbp:M,hostname:window.location.hostname,ps:this.mE.playerStyle});this.Wz=new L7G(this.mE,this.s4);this.d9.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||N7C(this.s4))&&RXR(this);M=10;g.hL(this.mE)&&(M=3);Ni(this.mE)&&(M=g.A3(this.mE.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Cl=new g.O8(this.d9,M);M=ohK(this);this.Cl.xq(M);nhN(this);M={};this.I7=(M.airplayactivechange=this.Zlc, M.airplayavailabilitychange=this.Pjk,M.beginseeking=this.cQE,M.sabrCaptionsDataLoaded=this.d$E,M.endseeking=this.Cjt,M.internalAbandon=this.YVE,M.internalaudioformatchange=this.Wv9,M.internalvideodatachange=this.NtD,M.internalvideoformatchange=this.XAD,M.liveviewshift=this.JQ5,M.playbackstalledatstart=this.IOL,M.progresssync=this.GDh,M.onAbnormalityDetected=this.nAW,M.onSnackbarMessage=this.lOD,M.onLoadProgress=this.gAd,M.SEEK_COMPLETE=this.SV5,M.SEEK_TO=this.vA7,M.onVideoProgress=this.kDd,M.onLoadedMetadata= this.FvW,M.onAutoplayBlocked=this.KvW,M.onPlaybackPauseAtStart=this.x$_,M.playbackready=this.M2E,M.statechange=this.m7,M.newelementrequired=this.UN,M.heartbeatparams=this.aO5,M.videoelementevent=this.wAd,M.drmoutputrestricted=this.t2E,M.signatureexpired=this.hXL,M.nonfatalerror=this.fOt,M.reloadplayer=this.js_,M);this.ri=new g.xM(this);g.T(this,this.ri);this.GZ=new hy;g.T(this,this.GZ);this.eA=this.LK=-1;this.Wg=new g.ui(this.template.resize,16,this.template);g.T(this,this.Wg);this.j2=new QUr(this.d9, this.mE,this.OL(),this);this.Fz=new uF(this);g.T(this,this.Fz);this.Cv=new ra(this);g.T(this,this.Cv);b0S(this.mE.T.c);this.events.j(this.d9,g.QG("appapi"),this.mCd);this.events.j(this.d9,g.JL("appapi"),this.TWt);this.events.j(this.d9,g.QG("appprogressboundary"),this.pAV);this.events.j(this.d9,g.JL("applooprange"),this.Jx);this.events.j(this.d9,"presentingplayerstatechange",this.fJ);this.events.j(this.d9,"resize",this.zHc);this.template.CV(ZK(document,w));this.events.j(this.d9,"offlineslatestatechange", this.HlJ);this.events.j(this.d9,"sabrCaptionsTrackChanged",this.Y4J);this.events.j(this.d9,"sabrCaptionsBufferedRangesUpdated",this.aXJ);this.s4.K.X().CJ&&nT(this.s4,"offline");this.mE.bW&&g.Uc("ux",g.fE);w=g.A3(this.mE.experiments,"html5_defer_fetch_att_ms");this.Wv=new g.ui(this.lrt,w,this);g.T(this,this.Wv);this.z3().q8()&&(g.ne()&&this.z3().B.push("remote"),FWr(this));this.Wz.tick("fs");GEx(this);this.mE.bW&&nT(this.s4,"ux",!0);g.w0(this.s4.K.X())&&nT(this.s4,"embed");this.C("web_player_sentinel_is_uniplayer")|| g.jn(new g.qA("Player experiment flags missing","web_player_sentinel_is_uniplayer"));w=this.C("web_player_sentinel_yt_experiments_sync");M=g.hY("web_player_sentinel_yt_experiments_sync");w!==M&&g.jn(new g.qA("b/195699950",{yt:w,player:M}));this.v$=slx(this);if(w=g.A3(this.mE.experiments,"html5_block_pip_safari_delay"))this.OG=new g.ui(this.Sh,w,this),g.T(this,this.OG);R_=this.mE.NC;this.d9.publish("applicationInitialized");this.logger.debug("constructor end")}; slx=function(w){function D(M){M.stack&&M.stack.indexOf("player")!==-1&&w.IJ().DR(M)} gO.subscribe("handleError",D);u7.push(D);return function(){gO.unsubscribe("handleError",D);var M=u7.indexOf(D);M!==-1&&u7.splice(M,1)}}; ohK=function(w){var D=new g.db(w.mE,w.Uc);w.d9.publish("initialvideodatacreated",D);return yD(w,1,D,!1)}; nhN=function(w){var D=w.OL();D.setPlaybackRate(w.mE.D?1:acT(w,Number(g.Rj("yt-player-playback-rate"))||1));D.zH(w.vJ,w);D.UK()}; ghr=function(w){var D="",M=CVr(w);M.indexOf("//")===0&&(M=w.mE.protocol+":"+M);var L=M.lastIndexOf("/base.js");L!==-1&&(D=M.substring(0,L+1));if(M=Error().stack)if(M=M.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))M=M[1],M.includes(D)||g.jn(Error("Player module URL mismatch: "+(M+" vs "+D+".")));D=new I$J(w.d9,D);M={};USK(D,(M.destroyed=function(){w.onApiChange()},M)); return D}; jlI=function(w){if(w.mE.storeUserVolume){w=g.Rj("yt-player-volume")||{};var D=w.volume;w={volume:isNaN(D)?100:g.X4(Math.floor(D),0,100),muted:!!w.muted}}else w={volume:100,muted:w.mE.mute};return w}; Ii=function(w){w.mediaElement=w.mE.deviceIsAudioOnly?new g.JD(g.tM("AUDIO")):qd.pop()||new g.JD(g.tM("VIDEO"));g.T(w,w.mediaElement);w.IJ().setMediaElement(w.mediaElement);try{w.mE.Is?(w.CU&&w.events.gt(w.CU),w.CU=w.events.j(w.mediaElement,"volumechange",w.BW7)):(w.mediaElement.qZ(w.ue.muted),w.mediaElement.setVolume(w.ue.volume/100))}catch(Z){w.nx("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(Z&&typeof Z==="object"&&"message"in Z&&typeof Z.message==="string"&&Z.message.replace(/[;:,]/g, "_")));return}g.NA(w.ri);vhK(w);var D=w.template,M=w.mediaElement.Dv();D.i9=M;D.pK=!1;D.i9.parentNode||yv(D.jo,D.i9,0);D.qz=new g.Td(0,0,0,0);$sT(D);ty(D);M=D.i9;g.AB(M,"video-stream");g.AB(M,g.Up.MAIN_VIDEO);var L=D.app.X();L.U0&&M.setAttribute("data-no-fullscreen","true");L.C("html5_local_playsinline")?"playsInline"in $M()&&(M.playsInline=!0):L.WC&&(M.setAttribute("webkit-playsinline",""),M.setAttribute("playsinline",""));L.yA&&D.i9&&D.j(M,"click",M.play,M);try{w.mediaElement.activate()}catch(Z){w.nx("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(Z&&typeof Z==="object"&&"message"in Z&&typeof Z.message==="string"&&Z.message.replace(/[;:,]/g,"_")))}}; Bmj=function(w){if(!clj(w)){var D=w.OL().ij();D&&(D=D.KZ(),D instanceof Promise&&D.catch(function(){})); US(w,qL(w.getPlayerStateObject()))}}; vhK=function(w){var D=w.mediaElement;Iw()?w.ri.j(D,"webkitpresentationmodechanged",w.g6k):window.document.pictureInPictureEnabled&&(w.ri.j(D,"enterpictureinpicture",function(){w.HV(!0)}),w.ri.j(D,"leavepictureinpicture",function(){w.HV(!1)})); uU&&(w.ri.j(D,"webkitbeginfullscreen",function(){w.Ai(3)}),w.ri.j(D,"webkitendfullscreen",function(){w.Ai(0)}))}; fcI=function(w,D){var M=D.getPlayerType(),L=w.Cl.L[M]||null;D!==w.OL()&&D!==L&&(L==null||L.dispose(),w.Cl.L[M]=D)}; qmj=function(w,D){D=D===void 0?!0:D;w.logger.debug("start clear presenting player");var M;if(M=w.XK){M=w.XK;var L=w.mediaElement;M=!!L&&L===M.mediaElement}M&&(w.Mm(),Ii(w));M=w.IJ();M.Mm(!D);M.Ya(w.I7,w);M.getPlayerType()!==1&&M.dispose();D=w.Cl;D.V=D.T;KE(D);w.logger.debug("finish clear presenting player")}; g.rlx=function(w,D,M,L){var Z=w.Wz;D===2&&(Z=new L7G(w.mE));return new g.M6(w.mE,D,Z,w.template,function(k,b,C){w.d9.publish(k,b,C)},function(){return w.d9.getVisibilityState()},w.visibility,w,M,L)}; yD=function(w,D,M,L,Z){w=g.rlx(w,D,M,Z);w=new g.Zi(w);L&&w.UK();return w}; xc=function(w,D){return w.cI(D)?w.OL():D}; NF=function(w,D){var M=w.IJ();return D===w.OL()&&w.cI(D)&&w.cI(M)?M:D}; TmR=function(w){w.logger.debug("start application playback");if(w.OL().getPlayerState().isError())w.logger.debug("start application playback done, player in error state");else{var D=HG(w);w.z3().isLoaded();D&&w.bA(6);eXr(w);saG(w.s4)||X6l(w)}}; X6l=function(w){if(!HG(w)){var D=GW(w.s4);D&&!D.created&&xSN(w.s4)&&(w.logger.debug("reload ad module"),D.create())}}; eXr=function(w){w.logger.debug("start presenter playback");var D=w.getVideoData(),M=w.s4;saG(M)||M.KF();!Gm&&M.K.C("html5_allow_asmjs")&&qek(M);nT(M,"embed");nT(M,"kids");nT(M,"remote");nT(M,"miniplayer");nT(M,"offline");nT(M,"unplugged");nT(M,"ypc",!1,!0);M.K.C("html5_ypc_clickwrap_module_refactor")||nT(M,"ypc_clickwrap",!1,!0);nT(M,"yto",!1,!0);nT(M,"webgl",!1,!0);a$k(M)||(nT(M,"captions",!0),nT(M,"endscreen"),M.hn(),nT(M,"creatorendscreen",!0));M.VB();M.K.publish("modulesCreated");w.d9.publish("videoready", D)}; j7=function(w){w=w.z3();w.q8();return lR(w)}; GEx=function(w){w.logger.debug("start prepare initial playback");w.rk();var D=w.Uc;Ii(w);w.events.j(window,"resize",w.o6L);var M=w.z3();w.d9.Im("onVolumeChange",w.ue);if(D&&YeG(D)){var L=yq(w.mE);L&&!w.dK&&(D.fetch=0);var Z=g.w0(w.mE);Z&&!w.dK&&(D.fetch=0);g$(w,D);g.w0(w.mE)&&w.Wz.tick("ep_pr_s");if(!L||w.dK)if(Z&&!w.dK)udr(w);else if(!M.q8())w.playlist.onReady(function(){Ri(w)})}w.kQ(w.OL(),!1,!0); g.z(w.OL().getPlayerState(),128)||(D=nbS(!w.mE.deviceIsAudioOnly),D==="fmt.noneavailable"?w.nx("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):D==="html5.missingapi"?w.nx(D,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):M&&M.q8()&&j7(w)&&(w.mE.M5||w.mE.Kx)?oi(w):M.G5?w.d9.mutedAutoplay({durationMode:M.mutedAutoplayDurationMode}):g.Rj("yt-player-playback-on-reload")?(g.DD("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!w.mE.nV}),g.gQ("yt-player-playback-on-reload",!1), oi(w)):oI(w.mE)||Sml(w),g.x2(w.mE)||i3(w.mE)==="MWEB"?(g.SY(g.Ja(),function(){nC(w)}),g.SY(g.Ja(),function(){ooS()})):(nC(w),ooS()),w.logger.debug("finish prepare initial playback"))}; nC=function(w){if(!w.C("use_rta_for_player"))if(w.C("fetch_att_independently"))g.S3(w.Wv);else{var D=w.getVideoData().botguardData;D&&g.WO(D,w.mE,w.getVideoData().cw||"")}}; Sml=function(w){w.logger.debug("start initialize to CUED mode");w.d9.publish("initializingmode");w.bA(2);nT(w.s4,"remote");nT(w.s4,"miniplayer");w.logger.debug("initialized to CUED mode")}; oi=function(w){w.logger.debug("start initialize application playback");var D=w.OL();if(g.z(D.getPlayerState(),128))return!1;D=D.getVideoData();j7(w)&&w.mE.Kx&&(qd.length&&w.LY?(Fp(w,{muted:!1,volume:w.ue.volume},!1),G0(w,!1)):qd.length||w.ue.muted||(Fp(w,{muted:!0,volume:w.ue.volume},!1),G0(w,!0)));j7(w)&&g.w0(w.mE)&&D.mutedAutoplay&&(Fp(w,{muted:!0,volume:w.ue.volume},!1),G0(w,!0));D.Qq&&Fp(w,{muted:!0,volume:w.ue.volume},!1);QlJ(w,1,D,!1);var M=w.OL();w.d9.publish("initializingmode");w.kQ(M);w.bA(3); var L;if(!(L=!w.mE.Cm)){if(L=w.XK){L=w.XK;var Z=w.mediaElement;L=!!Z&&Z===L.mediaElement}L=L&&w.t0}L&&(w.Mm(),Ii(w),M.setMediaElement(w.mediaElement));M.HR();if(g.z(M.getPlayerState(),128))return!1;D.ZB||US(w,3);return w.t0=!0}; HG=function(w){w=z3(w.s4);return!!w&&w.loaded}; JlT=function(w,D){if(!w.cz)return!1;var M=w.cz.startTimeMs*.001-1,L=w.cz.endTimeMs*.001;w.cz.type==="repeatChapter"&&L--;return Math.abs(D-M)<=1E-6||Math.abs(D-L)<=1E-6||D>=M&&D<=L}; zXK=function(w){var D=w.IJ();nL(D.getVideoData())&&!D.PM()&&(D=sS(w)*1E3-w.getVideoData().BY,w.C("html5_gapless_new_slr")?(w=w.Cv,ai(w.app,"gaplessshortslooprange"),D=new g.ue(0,D,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(w=w.app.IJ())&&w.addCueRange(D)):w.setLoopRange({startTimeMs:0,endTimeMs:D,type:"shortsLoop"}))}; VSK=function(w){var D=w.OL();if(!(g.z(D.getPlayerState(),64)&&w.z3().isLivePlayback&&w.cz.startTimeMs<5E3)){if(w.cz.type==="repeatChapter"){var M,L=(M=j9T(w.Ka()))==null?void 0:M.SP(),Z;M=(Z=w.getVideoData())==null?void 0:Z.Kx;L instanceof g.Vr&&M&&(Z=M[pG(M,w.cz.startTimeMs)],L.renderChapterSeekingAnimation(0,Z.title));isNaN(Number(w.cz.loopCount))?w.cz.loopCount=0:w.cz.loopCount++;w.cz.loopCount===1&&w.d9.Q7("innertubeCommand",w.getVideoData().kdk)}L={GD:"application_loopRangeStart"};if(w.cz.type=== "clips"||w.cz.type==="shortsLoop")L.seekSource=58;D.seekTo(w.cz.startTimeMs*.001,L)}}; acT=function(w,D){var M=w.d9.getAvailablePlaybackRates();D=Number(D.toFixed(2));w=M[0];M=M[M.length-1];D<=w?D=w:D>=M?D=M:(w=Math.floor(D*100+.001)%5,D=w===0?D:Math.floor((D-w*.01)*100+.001)/100);return D}; sS=function(w,D){D=w.fl({playerType:D});if(!D)return w.Cl.T.hf();D=xc(w,D);return vG(w,D.hf(),D)}; vG=function(w,D,M){if(w.cI(M)&&(M=M.getVideoData(),!cG(w))){w=w.j2;for(var L=g.x(w.V),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,M.JQ===Z.JQ){D+=Z.ZO/1E3;break}L=D;w=g.x(w.V);for(Z=w.next();!Z.done;Z=w.next()){Z=Z.value;if(M.JQ===Z.JQ)break;var k=Z.ZO/1E3;if(k1&&(Z=!1);w.JO&&Z===D||(L=L.lock(Z?"portrait":"landscape"),L!=null&&L.catch(function(){}),w.JO=!0)}else w.JO&&(w.JO=!1,L.unlock())}; e7=function(w,D,M){w.d9.publish(D,M);var L=g.hL(w.mE)||g.Y2(w.mE)||g.Fs(w.mE);if(M&&L){switch(D){case "cuerangemarkersupdated":var Z="onCueRangeMarkersUpdated";break;case "cuerangesadded":Z="onCueRangesAdded";break;case "cuerangesremoved":Z="onCueRangesRemoved"}Z&&w.d9.Q7(Z,M.map(function(k){return{getId:function(){return this.id}, end:k.end,id:k.getId(),namespace:k.namespace==="ad"?"ad":"",start:k.start,style:k.style,visible:k.visible,markerPositionMs:k.markerPositionMs}}))}}; Xp=function(w,D,M,L,Z,k){M=M===void 0?!0:M;var b=w.fl({playerType:Z});if(!b||(b.getPlayerType()!==2||w.cI(b))&&!g.mm(b.getVideoData())){var C=w.Cl.F1;C?C.seekTo(D,{Zc:!M,W2:L,GD:"application",seekSource:k}):(b&&b===w.OL()&&w.cz&&!JlT(w,D)&&w.setLoopRange(null),w.seekTo(D,M,L,Z,k,"_request"))}}; EvT=function(w,D,M,L){M&&(w.Mm(),Ii(w));M=w.IJ();M.Hg(D);var Z=w.getVideoData(),k={};k.video_id=Z.videoId;k.adformat=Z.adFormat;Z.isLivePlayback||(k.start=M.getCurrentTime(),k.resume="1");Z.isLivePlayback&&qQ(Z)&&g.pc(w.mE)&&(k.live_utc_start=M.mj(),k.resume="1");Z.W_&&(k.vvt=Z.W_);Z.Y&&(k.vss_credentials_token=Z.Y,k.vss_credentials_token_type=Z.nm);Z.oauthToken&&(k.oauth_token=Z.oauthToken);k.autoplay=1;k.reload_count=Z.Sb+1;k.reload_reason=D;Z.rF&&(k.unplugged_partner_opt_out=Z.rF);Z.HX&&(k.ypc_is_premiere_trailer= Z.HX);Z.playerParams&&(k.player_params=Z.playerParams);w.loadVideoByPlayerVars(k,void 0,!0,void 0,void 0,L);D==="signature"&&w.iT&&X6l(w)}; pHR=function(w,D){w.z3().autonavState=D;g.gQ("yt-player-autonavstate",D);w.d9.publish("autonavchange",D)}; WLR=function(w){var D=w.getVideoData().L7,M=w.mE.EL,L=w.isInline()&&!w.getVideoData().Rg,Z=w.mediaElement;D||M||L?Z.jA():(Z.lF(),Fp(w,w.ue))}; BG=function(w){var D=GW(w.Ka());D&&D.created&&(w.logger.debug("reset ad module"),D.destroy())}; cG=function(w){return w.getVideoData().enableServerStitchedDai&&!!w.iT}; hda=function(w,D){D.bounds=w.getBoundingClientRect();for(var M=g.x(["display","opacity","visibility","zIndex"]),L=M.next();!L.done;L=M.next())L=L.value,D[L]=Vv(w,L);D.hidden=!!w.hidden}; CVr=function(w){var D=w.webPlayerContextConfig.trustedJsUrl;return D?dy(D).toString():w.webPlayerContextConfig.jsUrl}; tFS=function(w,D){var M=w.fl({playerType:1});if(M){if(M.getVideoData().clientPlaybackNonce===D)return M;if((w=w.Fz.T)&&w.getVideoData().clientPlaybackNonce===D)return w}return null}; RXR=function(w){function D(L){return X_(r2S(w.s4),function(Z){return Z.bI(L)})} w.Wz.tick("wasm_s");var M=N6J(w.webPlayerContextConfig.wasmModuleUrl,N7C(w.s4)?D:void 0,w.T_.bind(w));M==null||X_(M,function(L){w.Wz.tick(L.T?"wasm_fa":"wasm_fw")},function(){w.Wz.tick("wasm_ferr")}); ArK(w.mE,M)}; $TK=function(w){return w.name==="TypeError"&&w.stack.includes("/s/player/")&&vo()<=105}; iwC=function(w){return w.isTimeout?"NO_BID":"ERR_BID"}; dTS=function(){var w=null;naj().then(function(D){return w=D},function(D){return w=iwC(D)}); return w}; ytK=function(){var w=Bj(1E3,"NO_BID");return g.sj(ThG([naj(),w]).V8(iwC),function(){w.cancel()})}; T0=function(w){return w.FK?g.aj().vr(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; un=function(w){this.player=w;this.L=this.T=1}; xTR=function(w,D,M,L,Z,k){D.client||(D.client={});w.player.X().C("h5_remove_url_for_get_ad_break")||(D.client.originalUrl=M);var b=wz(M),C=g.ER(M)?!1:!0;(b||C)&&typeof Intl!=="undefined"&&(D.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);C=g.ER(M)?!1:!0;if(b||C||L!==""){var l={};M=V6(kE(L)).split("&");var E=new Map;M.forEach(function(p){p=p.split("=");p.length>1&&E.set(p[0].toString(),decodeURIComponent(p[1].toString()))}); E.has("bid")&&(l.bid=E.get("bid"));l.params=[];IIK.forEach(function(p){E.has(p)&&(p={key:p,value:E.get(p)},l.params.push(p))}); UTJ(w,l);D.adSignalsInfo=l}D.client.unpluggedAppInfo||(D.client.unpluggedAppInfo={});D.client.unpluggedAppInfo.enableFilterMode=!1;M=Z.T.cosver;M!=null&&M!=="cosver"&&(D.client.osVersion=M);M=Z.T.cplatform;M!=null&&M!=="cplatform"&&M!==""&&(D.client.platform=M);M=Z.T.cmodel;M!=null&&M!=="cmodel"&&(D.client.deviceModel=M);M=Z.T.cplayer;M!=null&&M!=="cplayer"&&(D.client.playerType=M);M=Z.T.cbrand;M!=null&&M!=="cbrand"&&(D.client.deviceMake=M);D.user||(D.user={});D.user.lockedSafetyMode=!1;(Z.C("embeds_web_enable_iframe_api_send_full_embed_url")|| Z.C("embeds_enable_autoplay_and_visibility_signals"))&&g.bw(Z)&&ZlG(D,k,w.player.getPlayerState(1))}; jWC=function(w,D){var M=!1;if(D==="")return M;D.split(",").forEach(function(L){var Z={},k={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},b="ACTIVE";L[0]==="!"&&(L=L.substring(1),b="INACTIVE");L=L.split("-");L.length<3||(L[0]in NKS&&(k.clientName=NKS[L[0]]),L[1]in HwK&&(k.platform=HwK[L[1]]),k.applicationState=b,k.clientVersion=L.length>2?L[2]:"",Z.remoteClient=k,w.remoteContexts?w.remoteContexts.push(Z):w.remoteContexts=[Z],M=!0)}); return M}; RdK=function(w){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in gvJ))return!1;w=w.split(RegExp("[:&]"));var D=gvJ.FLAG_AUTO_CAPTIONS_DEFAULT_ON,M="f"+(1+Math.floor(D/31)).toString();D=1<=2?b[1]:"";var C=nvx.test(D),l=FLN.exec(D);l=l!=null&&l.length>=2?l[1]:"";var E=GZS.exec(D);E=E!=null&&E.length>=2&&!Number.isNaN(Number(E[1]))?Number(E[1]):1;var p=sWK.exec(D);p=p!=null&&p.length>=2?p[1]:"0";var W=pN(w.player.X().le),h=w.player.getVideoData(1),t=g.SU(h.Jc,!0),d="BISCOTTI_ID"in M?M.BISCOTTI_ID:"";xTR(w,t,D,d.toString(),w.player.X(), h);h={splay:!1,lactMilliseconds:M.LACT.toString(),playerHeightPixels:Math.trunc(M.P_H),playerWidthPixels:Math.trunc(M.P_W),vis:Math.trunc(M.VIS),signatureTimestamp:20320,autonavState:T0(w.player.X())};L&&(L={},jWC(L,M.YT_REMOTE)&&(h.mdxContext=L));if(L=aIr.includes(W)?void 0:g.FN("PREF")){for(var N=L.split(RegExp("[:&]")),n=0,v=N.length;n1&&G[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}h.autoCaptionsDefaultOn= RdK(L)}D=vvG.exec(D);(D=D!=null&&D.length>=2?D[1]:"")&&l&&(t.user.credentialTransferTokens=[{token:D,scope:"VIDEO"}]);D={contentPlaybackContext:h};b={adBlock:Math.trunc(M.AD_BLOCK),params:b,breakIndex:E,breakPositionMs:p,clientPlaybackNonce:M.CPN,topLevelDomain:W,isProxyAdTagRequest:C,context:t,adSignalsInfoString:V6(kE(d.toString())),overridePlaybackContext:D};Z!==void 0&&(b.cueProcessedMs=Math.round(Z).toString());l&&(b.videoId=l);M.LIVE_TARGETING_CONTEXT&&(b.liveTargetingParams=M.LIVE_TARGETING_CONTEXT); M.AD_BREAK_LENGTH&&(b.breakLengthMs=Math.trunc(M.AD_BREAK_LENGTH*1E3).toString());k&&(b.driftFromHeadMs=k.toString());b.currentMediaTimeMs=Math.round(w.player.getCurrentTime(1)*1E3);(w=w.player.getGetAdBreakContext())&&(b.getAdBreakContext=w);return b}; BKT=function(){un.apply(this,arguments)}; fII=function(w,D,M,L,Z){var k=M.vB;var b=M.bO;var C=w.player.X().ib,l=0;M.cueProcessedMs&&b&&!k&&(M=b.end-b.start,M>0&&(l=Math.floor(M/1E3)));var E={AD_BLOCK:Z,AD_BREAK_LENGTH:k?k.x6:l,AUTONAV_STATE:T0(w.player.X()),CA_TYPE:"image",CPN:w.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:w.player.rV()*1E3,LACT:iG(),LIVE_INDEX:k?w.L++:1,LIVE_TARGETING_CONTEXT:k&&k.context?k.context:"",MIDROLL_POS:b?Math.round(b.start/1E3):0,MIDROLL_POS_MS:b?Math.round(b.start):0,VIS:w.player.getVisibilityState(), P_H:w.player.qd().KJ().height,P_W:w.player.qd().KJ().width,YT_REMOTE:C?C.join(","):""},p=ZV(L7);Object.keys(p).forEach(function(W){p[W]!=null&&(E[W.toUpperCase()]=p[W].toString())}); L!==""&&(E.BISCOTTI_ID=L);L={};M2(D)&&(L.sts="20320",(w=w.player.X().forcedExperiments)&&(L.forced_experiments=w));return AQ(g.j3(D,E),L)}; qtK=function(w,D){var M=w.player.X(),L,Z=(L=w.player.getVideoData(1))==null?void 0:L.oauthToken;return g.GA(M,Z).then(function(k){if(k&&DV()){var b=MI();Li(b,k)}return g.FX(w.player.wZ(b),D,"/youtubei/v1/player/ad_break").then(function(C){return C})})}; rtN=function(w){this.FE=w}; edC=function(w){this.K=w}; XHJ=function(w){this.FE=w}; ujS=function(w){g.X.call(this);this.T=w;this.i$=TKJ(this)}; TKJ=function(w){var D=new nrT(w.T.Rs);g.T(w,D);w=[new rtN(w.T.FE),new edC(w.T.K),new XHJ(w.T.FE),new iB(w.T.X8,w.T.VW),new yx,new x6(w.T.Ly,w.T.xu,w.T.FE),new de,new $6];w=g.x(w);for(var M=w.next();!M.done;M=w.next())FOI(D,M.value);w=g.x(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(M=w.next();!M.done;M=w.next())In(D,M.value,function(){}); return D}; S7=function(w){var D=w.Gh,M=w.D5;w=w.Hd;var L=new S0J,Z={yg:new Rxj(D.get(),M),D5:M};return{MC:new sy(M,w,D,Z),context:Z,iO:L}}; QD=function(w,D,M,L,Z){g.X.call(this);this.V=D;this.aJ=M;this.Gh=L;this.QZ=Z;this.listeners=[];var k=new U4(this);g.T(this,k);k.j(w,"internalAbandon",this.baE);this.addOnDisposeCallback(function(){g.NA(k)})}; Jy=function(w){this.K=w;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.V=this.L=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; Stl=function(w){w.contentCpn=null;w.adCpn=null;w.videoId=null;w.adVideoId=null;w.adFormat=null;w.D="AD_PLACEMENT_KIND_UNKNOWN";w.actionType="unknown_type";w.L=!1;w.V=!1}; QWl=function(w,D){w=g.x(D);for(D=w.next();!D.done;D=w.next())if((D=D.value.renderer)&&(D.instreamVideoAdRenderer||D.linearAdSequenceRenderer||D.sandwichedLinearAdRenderer||D.instreamSurveyAdRenderer)){xK("ad_i");g.Ng({isMonetized:!0});break}}; Jtj=function(w){var D;(D=w.K.getVideoData(1))!=null&&D.V7&&(w.V=!1,D={},w.T&&w.videoId&&(D.cttAuthInfo={token:w.T,videoId:w.videoId}),Hl("video_to_ad",D))}; d6=function(w){w.V=!1;var D={};w.T&&w.videoId&&(D.cttAuthInfo={token:w.T,videoId:w.videoId});Hl("ad_to_video",D);zdN(w)}; zdN=function(w){if(w.L)if(w.D==="AD_PLACEMENT_KIND_START"&&w.actionType==="video_to_ad")yz("video_to_ad");else{var D={adBreakType:V3(w.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:w.videoStreamType};w.actionType==="ad_to_video"?(w.contentCpn&&(D.targetCpn=w.contentCpn),w.videoId&&(D.targetVideoId=w.videoId)):(w.adCpn&&(D.targetCpn=w.adCpn),w.adVideoId&&(D.targetVideoId=w.adVideoId));w.adFormat&&(D.adType=w.adFormat);w.contentCpn&& (D.clientPlaybackNonce=w.contentCpn);w.videoId&&(D.videoId=w.videoId);w.adCpn&&(D.adClientPlaybackNonce=w.adCpn);w.adVideoId&&(D.adVideoId=w.adVideoId);g.Ng(D,w.actionType);w.K.X().experiments.ek("html5_ads_csi_qoes")&&(D=w.K.GK(w.actionType==="ad_to_video"?1:2),D=(0,g.IC)()-1E3*D,gw("qoes",D,w.actionType))}}; z0=function(w){g.X.call(this);this.K=w;this.T=new Map;this.V=new U4(this);g.T(this,this.V);this.V.j(this.K,g.QG("ad"),this.onCueRangeEnter,this);this.V.j(this.K,g.JL("ad"),this.onCueRangeExit,this)}; VFC=function(w,D,M,L,Z,k,b){g.ue.call(this,D,M,{id:w,namespace:"ad",priority:Z,visible:L,associatedClipId:k,markerPositionMs:b})}; VD=function(w){this.K=w}; P9N=function(w,D){w.K.cueVideoByPlayerVars(D,2)}; PG=function(w){this.K=w}; OS=function(w){this.K=w;g.A3(this.K.X().experiments,"tv_pacf_logging_sample_rate")}; OwR=function(w){return cI(w,"html5_ssap_play_cached_preroll")}; lM=function(w,D){D=D===void 0?!1:D;return w.K.X().C("html5_ssap_force_ads_ctmp")?!0:(D||w.K.X().gW())&&w.K.X().C("html5_ssap_pacf_qoe_ctmp")}; KC=function(w){var D;return(D=w.K.getVideoData(1)==null?void 0:!1)!=null?D:!1}; cI=function(w,D){return w.K.X().C(D)}; KLr=function(w){return w.K.X().C("substitute_ad_cpn_macro_in_ssdai")}; V0=function(w){var D,M,L;return((D=w.K.getVideoData(1).getPlayerResponse())==null?void 0:(M=D.playerConfig)==null?void 0:(L=M.daiConfig)==null?void 0:L.enableServerStitchedDai)||!1}; f5S=function(w){return w.K.X().C("html5_enable_vod_slar_with_notify_pacf")}; mTT=function(w){return w.K.X().C("html5_recognize_predict_start_cue_point")}; RY=function(w){return w.K.X().experiments.ek("enable_desktop_player_underlay")}; Atl=function(w){return w.K.X().experiments.ek("html5_load_empty_player_in_media_break_sub_lra")}; bb=function(w){return w.K.X().experiments.ek("html5_load_ads_instead_of_cue")}; Yw=function(w){return w.K.X().experiments.ek("html5_preload_ads")}; wrr=function(w){return w.K.X().experiments.ek("should_ignore_cuepoints_during_lifa_preroll")}; gj=function(w){return w.K.X().experiments.ek("enable_ads_control_flow_deterministic_id_generation")}; DkQ=function(w){return w.K.X().experiments.ek("enable_desktop_discovery_video_abandon_pings")||g.II(w.K.X())}; MNZ=function(w){return w.K.X().experiments.ek("enable_progres_commands_lr_feeds")}; PX=function(w){return w.K.X().experiments.ek("html5_cuepoint_identifier_logging")}; SkI=function(w){w=w.K.getVideoData(1);return!!w&&w.C("html5_preload_first_vod_video_ad")&&!w.isDaiEnabled()&&!w.isLivePlayback}; LCl=function(w){return w.K.X().experiments.ek("html5_ssdai_enable_media_end_cue_range")}; ZIQ=function(w){switch(w){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}}; kKr=function(){g.mI.call(this);var w=this;this.T={};this.addOnDisposeCallback(function(){for(var D=g.x(Object.keys(w.T)),M=D.next();!M.done;M=D.next())delete w.T[M.value]})}; m1=function(){if(bIP===null){bIP=new kKr;xC(Jk).V="b";var w=xC(Jk),D=ct(w)=="h"||ct(w)=="b",M=!(ZA(),!1);D&&M&&(w.W=!0,w.Y=new CYG)}return bIP}; YJD=function(w,D,M){w.T[D]=M}; CS1=function(w){switch(w){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}}; Ay=function(w,D,M){this.aJ=w;this.K=D;this.D5=M;this.V=new Set;this.T=new Map;m1().subscribe("adactiveviewmeasurable",this.BM,this);m1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.s_,this);m1().subscribe("adviewableimpression",this.AD,this);m1().subscribe("adaudioaudible",this.Rt,this);m1().subscribe("adaudiomeasurable",this.pz,this)}; D$=function(w,D,M){var L=M.nD,Z=M.H7,k=M.listener,b=M.f9;M=M.O3===void 0?!1:M.O3;if(w.T.has(D))Zg("Unexpected registration of layout in LidarApi");else{if(b){if(w.V.has(b))return;w.V.add(b)}w.T.set(D,k);gC(ZA().tQ,"fmd",1);yiI(xC(Jk),L);var C=M?D:void 0;YJD(m1(),D,{Kq:function(){if(!Z)return{};var l=w.K.getPresentingPlayerType(!0),E;return(E=w.K.getVideoData(l))!=null&&E.isAd()?{currentTime:w.aJ.get().getCurrentTimeSec(l,!1,C),duration:Z,isPlaying:w7(w.aJ.get(),l).isPlaying(),isVpaid:!1,isYouTube:!0, volume:w.aJ.get().isMuted()?0:w.aJ.get().getVolume()/100}:{}}})}}; MS=function(w,D){w.T.has(D)?(w.T.delete(D),delete m1().T[D]):Zg("Unexpected unregistration of layout in LidarApi")}; lar=function(w,D){if(w.K.isLifaAdPlaying()){var M=w.K.Sa(!0,!0);w.Ff(D,M.width*.5*1.1,M.height*.25*1.1,M.width*.5*.9,M.height*.5*.9)}}; WCZ=function(w,D,M){var L={};Exx(w,L,D,M);prP(L);L.LACT=LF(function(){return iG().toString()}); L.VIS=LF(function(){return w.getVisibilityState().toString()}); L.SDKV="h.3.0";L.VOL=LF(function(){return w.isMuted()?"0":Math.round(w.getVolume()).toString()}); L.VED="";return L}; hlx=function(w,D){var M={};if(D||!w||!w.kind)return M;if(w.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||w.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!w.adTimeOffset||!w.adTimeOffset.offsetStartMilliseconds)return g.HL(Error("malformed AdPlacementConfig")),M;M.MIDROLL_POS=LF(ad(Math.round(v5(w.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else M.MIDROLL_POS=LF(ad("0"));return M}; LF=function(w){return{toString:function(){return w()}}}; tN1=function(w,D,M){function L(C,l){(l=M[l])&&(k[C]=l)} function Z(C,l){(l=M[l])&&(k[C]=b(l))} if(!M||g.WD(M))return w;var k=Object.assign({},w),b=D?encodeURIComponent:function(C){return C}; Z("DV_VIEWABILITY","doubleVerifyViewability");Z("IAS_VIEWABILITY","integralAdsViewability");Z("MOAT_INIT","moatInit");Z("MOAT_VIEWABILITY","moatViewability");L("GOOGLE_VIEWABILITY","googleViewability");L("VIEWABILITY","viewability");return k}; Exx=function(w,D,M,L){D.CPN=LF(function(){var Z;(Z=w.getVideoData(1))?Z=Z.clientPlaybackNonce:(g.jn(Error("Video data is null.")),Z=null);return Z}); D.AD_MT=LF(function(){if(L!=null)var Z=L;else{var k=M;w.X().C("html5_ssap_use_cpn_to_get_time")||(k=void 0);if(w.X().C("enable_h5_shorts_ad_fill_ad_mt_macro")||w.X().C("enable_desktop_discovery_pings_ad_mt_macro")||g.II(w.X())){var b=w.getPresentingPlayerType(!0),C;Z=((C=w.getVideoData(b))==null?0:C.isAd())?$kD(w,b,k):0}else Z=$kD(w,2,k)}return iIk(Z)}); D.MT=LF(function(){return iIk(w.getCurrentTime(1,!1))}); D.P_H=LF(function(){return w.qd().KJ().height.toString()}); D.P_W=LF(function(){return w.qd().KJ().width.toString()}); D.PV_H=LF(function(){return w.qd().getVideoContentRect().height.toString()}); D.PV_W=LF(function(){return w.qd().getVideoContentRect().width.toString()})}; iIk=function(w){return Math.round(Math.max(0,w*1E3)).toString()}; prP=function(w){w.CONN=LF(ad("0"));w.WT=LF(function(){return Date.now().toString()})}; $kD=function(w,D,M){return M!==void 0?w.getCurrentTime(D,!1,M):w.getCurrentTime(D,!1)}; dkk=function(){}; yGS=function(w,D,M,L,Z){var k,b,C,l,E,p,W,h,t,d,N,n,v;g.B(function(G){switch(G.T){case 1:k=!!D.scrubReferrer;b=g.j3(D.baseUrl,tN1(M,k,L));C={};if(!D.headers){G.KV(2);break}l=w.D();if(!l.T){E=l.getValue();G.KV(3);break}return g.c(G,l.T,4);case 4:E=G.V;case 3:p=E;W=g.x(D.headers);for(h=W.next();!h.done;h=W.next())switch(t=h.value,t.headerType){case "VISITOR_ID":g.Xg("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=g.Xg("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Xg("EOM_VISITOR_DATA")&&(C["X-Goog-EOM-Visitor-Id"]= g.Xg("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(C.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(d=w.W())&&(C["X-Goog-PageId"]=d);break;case "AUTH_USER":N=w.T();!p&&N&&(C["X-Goog-AuthUser"]=N);break;case "DATASYNC_ID":if(n=void 0,(n=w.L())==null?0:n.ek("enable_datasync_id_header_in_web_vss_pings"))v=w.V(),wz(b)&&g.Xg("LOGGED_IN")&&v&&(C["X-YouTube-DataSync-Id"]=v)}"X-Goog-EOM-Visitor-Id"in C&&"X-Goog-Visitor-Id"in C&&delete C["X-Goog-Visitor-Id"];case 2:g.FV(b,void 0,k,Object.keys(C).length!== 0?C:void 0,"",!0,Z),g.Hr(G)}})}; IaB=function(w,D,M,L,Z){this.D=w;this.W=D;this.T=M;this.V=L;this.L=Z}; Uk3=function(w,D){this.T=w;this.D5=D}; Z$=function(w,D,M,L,Z,k,b){var C=C===void 0?new IaB(function(){var l=w.X(),E=w.getVideoData(1);return g.GA(l,E?g.E9(E):"")},function(){return w.X().pageId},function(){return w.X().nV},function(){var l; return(l=w.X().datasyncId)!=null?l:""},function(){return w.X().experiments}):C; this.K=w;this.V=D;this.V$=M;this.Gh=L;this.MC=Z;this.D5=k;this.iO=b;this.D=C;this.XS=null;this.T=new Map;this.L=new Uk3(C,this.D5)}; NRZ=function(w,D,M,L,Z){var k=Zm(w.V.get(),M);k?(M=tN(w,xkk(k),k,void 0,void 0,L),D.hasOwnProperty("baseUrl")?w.D.send(D,M):w.L.send(D,M,{},Z)):Zg("Trying to ping from an unknown layout",void 0,void 0,{layoutId:M})}; BOR=function(w,D,M,L,Z,k){L=L===void 0?[]:L;var b=Zm(w.V.get(),D);if(b){var C=w.V$.get().Ui(D,M),l=tN(w,xkk(b),b,Z,k);L.forEach(function(E,p){E.baseUrl&&(w.L.send(E.baseUrl,l,C,E.attributionSrcMode),E.serializedAdPingMetadata&&w.MC.Hm("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,b,new hEC(E,p),void 0,void 0,b.adLayoutLoggingData))})}else Zg("Trying to track from an unknown layout.",void 0,void 0,{layoutId:D, trackingType:M})}; Y3=function(w,D){w.K.sendVideoStatsEngageEvent(D,void 0,2)}; g6=function(w,D){g.DD("adsClientStateChange",D)}; HIr=function(w,D){w.T.has(D.zz())?Zg("Trying to register an existing AdErrorInfoSupplier."):w.T.set(D.zz(),D)}; jTr=function(w,D){w.T.delete(D.zz())||Zg("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; nY=function(w,D,M){typeof M==="string"?w.K.getVideoData(1).NW(D,M):w.K.getVideoData(1).H_(D,M)}; xkk=function(w){var D=J3(w.clientMetadata,"metadata_type_ad_placement_config");w=J3(w.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:D,Zt:w}}; tN=function(w,D,M,L,Z,k){var b=M?gxk(w):{},C=M?Rlx(w,M.layoutId):{},l=ox7(w),E,p=Z!=null?Z:(E=SV(w.Gh.get(),2))==null?void 0:E.clientPlaybackNonce;Z=void 0;if(M){var W;if((W=w.iO.T.get(M.layoutId))==null?0:W.O3)Z=M.layoutId}W={};w=Object.assign({},WCZ(w.K,Z,L),hlx(D.adPlacementConfig,(M==null?void 0:M.renderingContent)!==void 0),C,b,l,(W.FINAL=LF(function(){return"1"}),W.AD_CPN=LF(function(){return p||""}),W)); (M==null?void 0:M.renderingContent)!==void 0||(w.SLOT_POS=LF(function(){return(D.Zt||0).toString()})); M={};k=Object.assign({},w,k);w=g.x(Object.values(nxZ));for(L=w.next();!L.done;L=w.next())L=L.value,b=k[L],b!=null&&b.toString()!=null&&(M[L]=b.toString());return M}; gxk=function(w){var D={},M,L=(M=w.XS)==null?void 0:M.Yk/1E3;L!=null&&(D.SURVEY_ELAPSED_MS=LF(function(){return Math.round(L*1E3).toString()})); D.SURVEY_LOCAL_TIME_EPOCH_S=LF(function(){return Math.round(Date.now()/1E3).toString()}); return D}; Rlx=function(w,D){w=w.T.get(D);if(!w)return{};w=w.UG();if(!w)return{};D={};return D.YT_ERROR_CODE=w.Jw.toString(),D.ERRORCODE=w.TN.toString(),D.ERROR_MSG=w.errorMessage,D}; ox7=function(w){var D={},M=w.K.getVideoData(1);D.ASR=LF(function(){var L;return(L=M==null?void 0:M.zQ)!=null?L:null}); D.EI=LF(function(){var L;return(L=M==null?void 0:M.eventId)!=null?L:null}); return D}; kH=function(w,D,M){g.X.call(this);this.K=w;this.RK=D;this.D5=M;this.listeners=[];this.s2=null;this.fN=new Map;D=new g.xM(this);g.T(this,D);D.j(w,"videodatachange",this.uKc);D.j(w,"serverstitchedvideochange",this.x87);this.lH=SV(this)}; SV=function(w,D){var M=w.K.getVideoData(D);return M?w.n0(M,D||w.K.getPresentingPlayerType(!0)):null}; FCZ=function(w,D,M){var L=w.n0(D,M);w.lH=L;w.listeners.forEach(function(Z){Z.t_(L)})}; GKk=function(w){switch(w){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}}; bv=function(w,D,M){g.X.call(this);this.K=w;this.Gh=D;this.D5=M;this.listeners=[];this.iY=[];this.T=function(){Zg("Called 'doUnlockPreroll' before it's initialized.")}; D=new U4(this);M=new g.xM(this);g.T(this,M);g.T(this,D);D.j(w,"progresssync",this.ilc);D.j(w,"presentingplayerstatechange",this.rQk);D.j(w,"fullscreentoggled",this.onFullscreenToggled);D.j(w,"onVolumeChange",this.onVolumeChange);D.j(w,"minimized",this.jw);D.j(w,"overlayvisibilitychange",this.q2);D.j(w,"shortsadswipe",this.pP);D.j(w,"resize",this.EB);M.j(w,g.QG("appad"),this.Qg)}; YH=function(w){KC(w.D5.get())||w.T()}; sTD=function(w,D){w.iY=w.iY.filter(function(M){return M!==D})}; CF=function(w,D,M){return w.getCurrentTimeSec(D,M)}; lv=function(w,D){var M;D=(M=w.Gh.get().fN.get(D))!=null?M:null;if(D===null)return Zg("Expected ad video start time on playback timeline"),0;w=w.K.getCurrentTime(2,!0);return w0){var k=D.end.toString();Z.forEach(function(b){(b=b.config&&b.config.adPlacementConfig)&&b.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&b.adTimeOffset&&b.adTimeOffset.offsetEndMilliseconds==="-1"&&b.adTimeOffset.offsetEndMilliseconds!==k&&(b.adTimeOffset.offsetEndMilliseconds=k)}); L.map(function(b){return g.Q(b,EX)}).forEach(function(b){var C; (b=b==null?void 0:(C=b.slotEntryTrigger)==null?void 0:C.mediaTimeRangeTrigger)&&b.offsetEndMilliseconds==="-1"&&(b.offsetEndMilliseconds=k)})}return{Z0:Z, adSlots:L,o_:!1,ssdaiAdsConfig:w.ssdaiAdsConfig}}; t2=function(w){g.X.call(this);this.K=w;this.listeners=[];this.T=new U4(this);g.T(this,this.T);this.T.j(this.K,"aduxclicked",this.onAdUxClicked);this.T.j(this.K,"aduxmouseover",this.g5);this.T.j(this.K,"aduxmouseout",this.JA);this.T.j(this.K,"muteadaccepted",this.Ac_)}; fax=function(w,D,M){D=g.yR(D,function(L){return new uRR(L,M,L.id)}); w.K.Q7("onAdUxUpdate",D)}; $H=function(w,D){w=g.x(w.listeners);for(var M=w.next();!M.done;M=w.next())D(M.value)}; iv=function(w,D){this.V=w;this.L=D===void 0?!1:D;this.T={}}; qJB=function(w,D){var M=w.startSecs+w.x6;M=M<=0?null:M;if(M===null)return null;switch(w.event){case "start":case "continue":case "stop":break;case "predictStart":if(D)break;return null;default:return null}D=Math.max(w.startSecs,0);return{tE:new is(D,M),q9:new YZ(D,M-D,w.context,w.identifier,w.event,w.T)}}; rGB=function(){this.T=[]}; sAa=function(w,D,M){var L=g.TD(w.T,D);if(L>=0)return D;D=-L-1;return D>=w.T.length||w.T[D]>M?null:w.T[D]}; d7=function(w,D,M){g.X.call(this);this.K=w;this.D5=D;this.FE=M;this.listeners=[];this.D=!1;this.nU=[];this.T=null;this.W=new iv(this,mTT(D.get()));this.L=new rGB;this.V=null}; el1=function(w,D){w.nU.push(D);for(var M=!1,L=g.x(w.listeners),Z=L.next();!Z.done;Z=L.next())M=Z.value.mz(D)||M;w.D=M;PX(w.D5.get())&&nY(w.FE.get(),"onci","cpi."+D.identifier+";cpe."+D.event+";cps."+D.startSecs+";cbi."+M)}; TRk=function(w,D){g6(w.FE.get(),{cuepointTrigger:{event:XrS(D.event),cuepointId:D.identifier,totalCueDurationMs:D.x6*1E3,playheadTimeMs:D.T,cueStartTimeMs:D.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:w.K.getVideoData(1).clientPlaybackNonce}})}; XrS=function(w){switch(w){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 p2(w,"Unexpected cuepoint event")}}; yb=function(w){this.K=w}; Ia=function(w){this.K=w}; uKx=function(w){switch(w){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:p2(w,"unknown transitionReason")}}; Ue=function(){g.X.apply(this,arguments);this.Kdt=new Map}; SJQ=function(w){this.K=w}; QT7=function(w,D,M,L,Z){g.X.call(this);var k=this,b=o2(function(){return new j6(k.D5)}); g.T(this,b);var C=o2(function(){return new R9(b,k.D5)}); g.T(this,C);var l=o2(function(){return new Me}); g.T(this,l);var E=o2(function(){return new wj(w)}); g.T(this,E);var p=o2(function(){return new o9(b,C,k.D5)}); g.T(this,p);var W=o2(function(){return new a9}); g.T(this,W);this.OB=o2(function(){return new t2(D)}); g.T(this,this.OB);this.Ca=o2(function(){return new F8(Z)}); g.T(this,this.Ca);this.cA=o2(function(){return new Jy(D)}); g.T(this,this.cA);this.zD=o2(function(){return new z0(D)}); g.T(this,this.zD);this.DO=o2(function(){return new VD(D)}); g.T(this,this.DO);this.Rs=o2(function(){return new PG(D)}); g.T(this,this.Rs);this.D5=o2(function(){return new OS(D)}); g.T(this,this.D5);var h=o2(function(){return new h2(L)}); g.T(this,h);var t=o2(function(){return new w9(k.D5)}); g.T(this,t);this.EH=o2(function(){return new yb(D)}); g.T(this,this.EH);this.yW=o2(function(){return new a2}); g.T(this,this.yW);this.Gh=o2(function(){return new kH(D,W,k.D5)}); g.T(this,this.Gh);var d=S7({Gh:this.Gh,D5:this.D5,Hd:t}),N=d.context,n=d.iO;this.MC=d.MC;this.QZ=o2(function(){return new d7(D,k.D5,k.FE)}); g.T(this,this.QZ);this.Ll=o2(function(){return new Ia(D)}); g.T(this,this.Ll);this.aJ=o2(function(){return new bv(D,k.Gh,k.D5)}); g.T(this,this.aJ);this.aC=o2(function(){return new Ue}); g.T(this,this.aC);d=o2(function(){return new Sa(b,p,C,k.D5,t,"SLOT_TYPE_ABOVE_FEED",k.aJ,k.k9,k.Rm)}); g.T(this,d);this.sT=o2(function(){return new vI(k.D5)}); this.V$=o2(function(){return new Ay(k.aJ,D,k.D5)}); g.T(this,this.V$);this.FE=o2(function(){return new Z$(D,l,k.V$,k.Gh,k.MC,k.D5,n)}); g.T(this,this.FE);this.uZ=new mi(KO,xH,function(G,f,e,S){return gN(C.get(),G,f,e,S)},E,p,C,t,this.D5,this.Gh); g.T(this,this.uZ);this.K6=new AO(E,d,M,this.D5,w,this.Gh,this.aJ,this.cA);g.T(this,this.K6);var v=new QD(D,this.K6,this.aJ,this.Gh,this.QZ);this.IC=o2(function(){return v}); this.O_=v;this.k9=new zR(E,p,this.IC,this.QZ,this.aJ,this.D5,this.FE,this.Ll);g.T(this,this.k9);this.sH=new Dm(E,p,this.zD,this.IC,N);g.T(this,this.sH);this.ac=new lO(this.D5,E,p,d,this.Gh,this.sH,M,this.DO);g.T(this,this.ac);this.aq=o2(function(){return new mt(h,C,t,k.D5,k.FE,k.aJ,k.Ll)}); g.T(this,this.aq);this.KO=o2(function(){return new AL}); g.T(this,this.KO);this.c9=new lt(w,this.OB,this.D5);g.T(this,this.c9);this.X_=new Ey(w);g.T(this,this.X_);this.G0=new pP(w);g.T(this,this.G0);this.Xl=new hj(w,this.IC,N);g.T(this,this.Xl);this.A8=new tj(w,this.zD,this.aJ,this.Gh,N);g.T(this,this.A8);this.jg=new $4(w,this.Gh);g.T(this,this.jg);this.Rm=new I9(w,this.QZ,this.aJ,this.FE,this.IC,this.k9);g.T(this,this.Rm);this.J8=new dj(w);g.T(this,this.J8);this.gH=new Hh(w);g.T(this,this.gH);this.eV=new yM(w);g.T(this,this.eV);this.XV=new Ne(w);g.T(this, this.XV);this.gH=new Hh(w);g.T(this,this.gH);this.zC=o2(function(){return new k4}); g.T(this,this.zC);this.Rq=o2(function(){return new bt(k.aJ)}); g.T(this,this.Rq);this.m$=o2(function(){return new MGC(k.OB,k.FE,w,l,k.V$)}); g.T(this,this.m$);this.Cf=o2(function(){return new q0(k.ac,E,b)}); g.T(this,this.Cf);this.rC=o2(function(){return new Xn(k.D5,k.FE,k.J8,k.V$)}); g.T(this,this.rC);this.qk=o2(function(){return new BE(w,k.gH,k.J8,k.Gh,k.Ll,k.aJ,k.aC,k.FE,W,k.QZ,k.V$,k.sT,k.DO,k.zD,k.cA,k.Rs,k.Ca,k.EH,k.D5,l,N,n)}); g.T(this,this.qk);this.fC=o2(function(){return new ibN(k.aJ,k.FE,k.Ca,k.D5,k.V$,k.Gh)}); g.T(this,this.fC);this.VN=o2(function(){return new MWJ(k.OB,k.aJ,k.FE,l,k.V$,k.G0,k.XV,k.Ca,k.D5,M)}); g.T(this,this.VN);this.hk=o2(function(){return new LPr(k.OB,k.FE,l)}); g.T(this,this.hk);this.CN=new W9(w,this.yW,b);g.T(this,this.CN);this.Iu={YG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.ac],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.k9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.K6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sH]]),N0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aq],["SLOT_TYPE_ABOVE_FEED",this.KO],["SLOT_TYPE_FORECASTING",this.KO], ["SLOT_TYPE_IN_PLAYER",this.KO],["SLOT_TYPE_PLAYER_BYTES",this.KO],["SLOT_TYPE_PLAYER_UNDERLAY",this.KO],["SLOT_TYPE_PLAYBACK_TRACKING",this.KO],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.KO]]),DS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.c9],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.c9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.X_],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.X_],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.X_],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.X_],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.X_],["TRIGGER_TYPE_SLOT_ID_EXITED",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.X_],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.X_],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.X_],["TRIGGER_TYPE_CLOSE_REQUESTED",this.G0],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xl],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.A8],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.A8],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.A8],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.A8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.A8],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.A8],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.A8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.jg],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.jg],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Xl],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eV],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.XV],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Rm],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Rm],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Rm],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Rm],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Rm]]),oG:new Map([["SLOT_TYPE_ABOVE_FEED",this.zC], ["SLOT_TYPE_AD_BREAK_REQUEST",this.zC],["SLOT_TYPE_FORECASTING",this.zC],["SLOT_TYPE_IN_PLAYER",this.zC],["SLOT_TYPE_PLAYER_BYTES",this.Rq],["SLOT_TYPE_PLAYER_UNDERLAY",this.zC],["SLOT_TYPE_PLAYBACK_TRACKING",this.zC],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.zC]]),Jg:new Map([["SLOT_TYPE_ABOVE_FEED",this.m$],["SLOT_TYPE_AD_BREAK_REQUEST",this.Cf],["SLOT_TYPE_FORECASTING",this.rC],["SLOT_TYPE_PLAYER_BYTES",this.qk],["SLOT_TYPE_PLAYBACK_TRACKING",this.fC],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.fC],["SLOT_TYPE_IN_PLAYER",this.VN],["SLOT_TYPE_PLAYER_UNDERLAY",this.hk]])};this.listeners=[l.get()];this.sf={ac:this.ac,xu:this.D5.get(),w9:this.Ca.get(),fY:this.aJ.get(),K6:this.K6,Lz:b.get(),dS:this.yW.get(),VW:this.c9,X8:l.get(),Ly:this.Gh.get()}}; JGr=function(w,D,M,L,Z){g.X.call(this);var k=this,b=o2(function(){return new j6(k.D5)}); g.T(this,b);var C=o2(function(){return new R9(b,k.D5)}); g.T(this,C);var l=o2(function(){return new Me}); g.T(this,l);var E=o2(function(){return new wj(w)}); g.T(this,E);var p=o2(function(){return new o9(b,C,k.D5)}); g.T(this,p);var W=o2(function(){return new a9}); g.T(this,W);this.OB=o2(function(){return new t2(D)}); g.T(this,this.OB);this.Ca=o2(function(){return new F8(Z)}); g.T(this,this.Ca);this.cA=o2(function(){return new Jy(D)}); g.T(this,this.cA);this.zD=o2(function(){return new z0(D)}); g.T(this,this.zD);this.DO=o2(function(){return new VD(D)}); g.T(this,this.DO);this.Rs=o2(function(){return new PG(D)}); g.T(this,this.Rs);this.D5=o2(function(){return new OS(D)}); g.T(this,this.D5);var h=o2(function(){return new h2(L)}); g.T(this,h);var t=o2(function(){return new w9(k.D5)}); g.T(this,t);var d=o2(function(){return new Sa(b,p,C,k.D5,t,null,null,k.k9,k.Rm)}); g.T(this,d);this.EH=o2(function(){return new yb(D)}); g.T(this,this.EH);this.yW=o2(function(){return new a2}); g.T(this,this.yW);this.Gh=o2(function(){return new kH(D,W,k.D5)}); g.T(this,this.Gh);var N=S7({Gh:this.Gh,D5:this.D5,Hd:t}),n=N.context,v=N.iO;this.MC=N.MC;this.QZ=o2(function(){return new d7(D,k.D5,k.FE)}); this.aJ=o2(function(){return new bv(D,k.Gh,k.D5)}); g.T(this,this.aJ);this.aC=o2(function(){return new Ue}); g.T(this,this.aC);this.V$=o2(function(){return new Ay(k.aJ,D,k.D5)}); g.T(this,this.V$);this.FE=o2(function(){return new Z$(D,l,k.V$,k.Gh,k.MC,k.D5,v)}); g.T(this,this.FE);this.sT=o2(function(){return new vI(k.D5)}); g.T(this,this.sT);this.uZ=new mi(KO,xH,function(f,e,S,K){return gN(C.get(),f,e,S,K)},E,p,C,t,this.D5,this.Gh); g.T(this,this.uZ);this.K6=new AO(E,d,M,this.D5,w,this.Gh,this.aJ,this.cA);g.T(this,this.K6);var G=new QD(D,this.K6,this.aJ,this.Gh,this.QZ);this.IC=o2(function(){return G}); this.O_=G;this.k9=new zR(E,p,this.IC,this.QZ,this.aJ,this.D5,this.FE);g.T(this,this.k9);this.sH=new Dm(E,p,this.zD,this.IC,n);g.T(this,this.sH);this.ac=new lO(this.D5,E,p,d,this.Gh,this.sH,M,this.DO);g.T(this,this.ac);this.aq=o2(function(){return new mt(h,C,t,k.D5,k.FE,k.aJ)}); g.T(this,this.aq);this.KO=o2(function(){return new AL}); g.T(this,this.KO);this.c9=new lt(w,this.OB,this.D5);g.T(this,this.c9);this.X_=new Ey(w);g.T(this,this.X_);this.G0=new pP(w);g.T(this,this.G0);this.Xl=new hj(w,this.IC,n);g.T(this,this.Xl);this.A8=new tj(w,this.zD,this.aJ,this.Gh,n);g.T(this,this.A8);this.J8=new dj(w);g.T(this,this.J8);this.eV=new yM(w);g.T(this,this.eV);this.XV=new Ne(w);g.T(this,this.XV);this.Ll=o2(function(){return new Ia(D)}); g.T(this,this.Ll);this.gH=new Hh(w);g.T(this,this.gH);this.Rm=new I9(w,this.QZ,this.aJ,this.FE,this.IC,this.k9);g.T(this,this.Rm);this.zC=o2(function(){return new k4}); g.T(this,this.zC);this.Rq=o2(function(){return new bt(k.aJ)}); g.T(this,this.Rq);this.Cf=o2(function(){return new q0(k.ac,E,b)}); g.T(this,this.Cf);this.rC=o2(function(){return new Xn(k.D5,k.FE,k.J8,k.V$)}); g.T(this,this.rC);this.VN=o2(function(){return new LTK(k.OB,k.aJ,k.FE,l,k.V$,k.G0,k.XV,k.Ca,k.D5,M)}); g.T(this,this.VN);this.qk=o2(function(){return new fY(w,k.gH,k.J8,k.FE,k.V$,k.sT,k.DO,k.Gh,k.aJ,k.aC,k.zD,k.cA,k.Rs,k.Ca,k.EH,k.D5,k.Ll,n,v)}); g.T(this,this.qk);this.CN=new W9(w,this.yW,b);g.T(this,this.CN);this.Iu={YG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.ac],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.k9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.K6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sH]]),N0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aq],["SLOT_TYPE_FORECASTING",this.KO],["SLOT_TYPE_IN_PLAYER",this.KO], ["SLOT_TYPE_PLAYER_BYTES",this.KO]]),DS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.c9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.X_],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.X_],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.X_],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.X_],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.X_],["TRIGGER_TYPE_SLOT_ID_EXITED",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.X_], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.X_],["TRIGGER_TYPE_CLOSE_REQUESTED",this.G0],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xl],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.A8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.A8],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.A8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xl],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eV],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.XV],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Rm],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Rm],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Rm],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Rm],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Rm]]),oG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zC],["SLOT_TYPE_FORECASTING",this.zC],["SLOT_TYPE_IN_PLAYER",this.zC],["SLOT_TYPE_PLAYER_BYTES",this.Rq]]), Jg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cf],["SLOT_TYPE_FORECASTING",this.rC],["SLOT_TYPE_IN_PLAYER",this.VN],["SLOT_TYPE_PLAYER_BYTES",this.qk]])};this.listeners=[l.get()];this.sf={ac:this.ac,xu:this.D5.get(),w9:this.Ca.get(),fY:this.aJ.get(),K6:this.K6,Lz:b.get(),dS:this.yW.get(),VW:this.c9,X8:l.get(),Ly:this.Gh.get()}}; zl3=function(w,D,M,L,Z){g.X.call(this);var k=this,b=o2(function(){return new j6(k.D5)}); g.T(this,b);var C=o2(function(){return new R9(b,k.D5)}); g.T(this,C);var l=o2(function(){return new Me}); g.T(this,l);var E=o2(function(){return new wj(w)}); g.T(this,E);var p=o2(function(){return new o9(b,C,k.D5)}); g.T(this,p);var W=o2(function(){return new a9}); g.T(this,W);this.OB=o2(function(){return new t2(D)}); g.T(this,this.OB);this.Ca=o2(function(){return new F8(Z)}); g.T(this,this.Ca);this.cA=o2(function(){return new Jy(D)}); g.T(this,this.cA);this.zD=o2(function(){return new z0(D)}); g.T(this,this.zD);this.DO=o2(function(){return new VD(D)}); g.T(this,this.DO);this.Rs=o2(function(){return new PG(D)}); g.T(this,this.Rs);this.D5=o2(function(){return new OS(D)}); g.T(this,this.D5);var h=o2(function(){return new h2(L)}); g.T(this,h);var t=o2(function(){return new w9(k.D5)}); g.T(this,t);var d=o2(function(){return new Sa(b,p,C,k.D5,t,null,null,null,null)}); g.T(this,d);this.EH=o2(function(){return new yb(D)}); g.T(this,this.EH);this.Gh=o2(function(){return new kH(D,W,k.D5)}); g.T(this,this.Gh);var N=S7({Gh:this.Gh,D5:this.D5,Hd:t}),n=N.context,v=N.iO;this.MC=N.MC;this.aJ=o2(function(){return new bv(D,k.Gh,k.D5)}); g.T(this,this.aJ);this.aC=o2(function(){return new Ue}); g.T(this,this.aC);this.V$=o2(function(){return new Ay(k.aJ,D,k.D5)}); g.T(this,this.V$);this.FE=o2(function(){return new Z$(D,l,k.V$,k.Gh,k.MC,k.D5,v)}); g.T(this,this.FE);this.sT=o2(function(){return new vI(k.D5)}); g.T(this,this.sT);this.uZ=new mi(KO,xH,function(f,e,S,K){return gN(C.get(),f,e,S,K)},E,p,C,t,this.D5,this.Gh); g.T(this,this.uZ);this.K6=new AO(E,d,M,this.D5,w,this.Gh,this.aJ,this.cA);g.T(this,this.K6);var G=new QD(D,this.K6,this.aJ,this.Gh);this.IC=o2(function(){return G}); this.O_=G;this.sH=new Dm(E,p,this.zD,this.IC,n);g.T(this,this.sH);this.ac=new lO(this.D5,E,p,d,this.Gh,this.sH,M,this.DO);g.T(this,this.ac);this.aq=o2(function(){return new mt(h,C,t,k.D5,k.FE,k.aJ)}); g.T(this,this.aq);this.KO=o2(function(){return new AL}); g.T(this,this.KO);this.c9=new lt(w,this.OB,this.D5);g.T(this,this.c9);this.X_=new Ey(w);g.T(this,this.X_);this.Xl=new hj(w,this.IC,n);g.T(this,this.Xl);this.A8=new tj(w,this.zD,this.aJ,this.Gh,n);g.T(this,this.A8);this.J8=new dj(w);g.T(this,this.J8);this.eV=new yM(w);g.T(this,this.eV);this.Ll=o2(function(){return new Ia(D)}); g.T(this,this.Ll);this.gH=new Hh(w);g.T(this,this.gH);this.zC=o2(function(){return new k4}); g.T(this,this.zC);this.Rq=o2(function(){return new bt(k.aJ)}); g.T(this,this.Rq);this.Cf=o2(function(){return new q0(k.ac,E,b)}); g.T(this,this.Cf);this.rC=o2(function(){return new Xn(k.D5,k.FE,k.J8,k.V$)}); g.T(this,this.rC);this.f_=o2(function(){return new $Xa(k.OB,k.aJ,k.FE,l,M,k.D5)}); g.T(this,this.f_);this.qk=o2(function(){return new fY(w,k.gH,k.J8,k.FE,k.V$,k.sT,k.DO,k.Gh,k.aJ,k.aC,k.zD,k.cA,k.Rs,k.Ca,k.EH,k.D5,k.Ll,n,v)}); g.T(this,this.qk);this.Iu={YG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.ac],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.K6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sH]]),N0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aq],["SLOT_TYPE_FORECASTING",this.KO],["SLOT_TYPE_IN_PLAYER",this.KO],["SLOT_TYPE_PLAYER_BYTES",this.KO]]),DS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.c9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.X_],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.X_],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.X_],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.X_],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.X_],["TRIGGER_TYPE_SLOT_ID_EXITED",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.X_],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xl],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.A8],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.A8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xl],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eV],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gH]]),oG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zC],["SLOT_TYPE_ABOVE_FEED",this.zC],["SLOT_TYPE_FORECASTING",this.zC],["SLOT_TYPE_IN_PLAYER",this.zC],["SLOT_TYPE_PLAYER_BYTES",this.Rq]]),Jg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cf],["SLOT_TYPE_FORECASTING",this.rC],["SLOT_TYPE_IN_PLAYER", this.f_],["SLOT_TYPE_PLAYER_BYTES",this.qk]])};this.listeners=[l.get()];this.sf={ac:this.ac,xu:this.D5.get(),w9:this.Ca.get(),fY:this.aJ.get(),K6:this.K6,Lz:b.get(),dS:null,VW:this.c9,X8:l.get(),Ly:this.Gh.get()}}; VNQ=function(w,D,M,L,Z){g.X.call(this);var k=this,b=o2(function(){return new j6(k.D5)}); g.T(this,b);var C=o2(function(){return new R9(b,k.D5)}); g.T(this,C);var l=o2(function(){return new Me}); g.T(this,l);var E=o2(function(){return new wj(w)}); g.T(this,E);var p=o2(function(){return new o9(b,C,k.D5)}); g.T(this,p);var W=o2(function(){return new a9}); g.T(this,W);this.Fm=o2(function(){return new SJQ(D)}); g.T(this,this.Fm);this.OB=o2(function(){return new t2(D)}); g.T(this,this.OB);this.Ca=o2(function(){return new F8(Z)}); g.T(this,this.Ca);this.cA=o2(function(){return new Jy(D)}); g.T(this,this.cA);this.zD=o2(function(){return new z0(D)}); g.T(this,this.zD);this.DO=o2(function(){return new VD(D)}); g.T(this,this.DO);this.Rs=o2(function(){return new PG(D)}); g.T(this,this.Rs);this.D5=o2(function(){return new OS(D)}); g.T(this,this.D5);var h=o2(function(){return new h2(L)}); g.T(this,h);var t=o2(function(){return new w9(k.D5)}); g.T(this,t);var d=o2(function(){return new Sa(b,p,C,k.D5,t,null,null,null,null)}); g.T(this,d);this.EH=o2(function(){return new yb(D)}); g.T(this,this.EH);this.Gh=o2(function(){return new kH(D,W,k.D5)}); g.T(this,this.Gh);var N=S7({Gh:this.Gh,D5:this.D5,Hd:t}),n=N.context,v=N.iO;this.MC=N.MC;this.aJ=o2(function(){return new bv(D,k.Gh,k.D5)}); g.T(this,this.aJ);this.aC=o2(function(){return new Ue}); g.T(this,this.aC);this.V$=o2(function(){return new Ay(k.aJ,D,k.D5)}); g.T(this,this.V$);this.FE=o2(function(){return new Z$(D,l,k.V$,k.Gh,k.MC,k.D5,v)}); g.T(this,this.FE);this.sT=o2(function(){return new vI(k.D5)}); g.T(this,this.sT);this.uZ=new mi(X8x,xH,function(f,e,S,K){return E_N(C.get(),f,e,S,K)},E,p,C,t,this.D5,this.Gh); g.T(this,this.uZ);this.K6=new AO(E,d,M,this.D5,w,this.Gh,this.aJ,this.cA);g.T(this,this.K6);var G=new QD(D,this.K6,this.aJ,this.Gh);this.IC=o2(function(){return G}); this.O_=G;this.sH=new Dm(E,p,this.zD,this.IC,n);g.T(this,this.sH);this.ac=new lO(this.D5,E,p,d,this.Gh,this.sH,M,this.DO);g.T(this,this.ac);this.aq=o2(function(){return new mt(h,C,t,k.D5,k.FE,k.aJ)}); g.T(this,this.aq);this.KO=o2(function(){return new AL}); g.T(this,this.KO);this.c9=new lt(w,this.OB,this.D5);g.T(this,this.c9);this.X_=new Ey(w);g.T(this,this.X_);this.Xl=new hj(w,this.IC,n);g.T(this,this.Xl);this.A8=new tj(w,this.zD,this.aJ,this.Gh,n);g.T(this,this.A8);this.J8=new dj(w);g.T(this,this.J8);this.eV=new yM(w);g.T(this,this.eV);this.Ll=o2(function(){return new Ia(D)}); g.T(this,this.Ll);this.gH=new Hh(w);g.T(this,this.gH);this.zC=o2(function(){return new k4}); g.T(this,this.zC);this.Rq=o2(function(){return new bt(k.aJ)}); g.T(this,this.Rq);this.Cf=o2(function(){return new q0(k.ac,E,b)}); g.T(this,this.Cf);this.rC=o2(function(){return new Xn(k.D5,k.FE,k.J8,k.V$)}); g.T(this,this.rC);this.qk=o2(function(){return new fY(w,k.gH,k.J8,k.FE,k.V$,k.sT,k.DO,k.Gh,k.aJ,k.aC,k.zD,k.cA,k.Rs,k.Ca,k.EH,k.D5,k.Ll,n,v)}); g.T(this,this.qk);this.VM=o2(function(){return new kgK(k.OB,k.aJ,k.FE,l,k.Fm,M,k.Gh)}); g.T(this,this.VM);this.Iu={YG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.ac],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.K6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sH]]),N0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aq],["SLOT_TYPE_FORECASTING",this.KO],["SLOT_TYPE_IN_PLAYER",this.KO],["SLOT_TYPE_PLAYER_BYTES",this.KO]]),DS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.c9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.X_],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.X_],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.X_],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.X_],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.X_],["TRIGGER_TYPE_SLOT_ID_EXITED",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.X_],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xl],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.A8],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.A8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xl],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eV],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gH]]),oG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zC],["SLOT_TYPE_FORECASTING",this.zC],["SLOT_TYPE_IN_PLAYER",this.zC],["SLOT_TYPE_PLAYER_BYTES",this.Rq]]),Jg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cf],["SLOT_TYPE_FORECASTING",this.rC],["SLOT_TYPE_IN_PLAYER",this.VM],["SLOT_TYPE_PLAYER_BYTES", this.qk]])};this.listeners=[l.get()];this.sf={ac:this.ac,xu:this.D5.get(),w9:this.Ca.get(),fY:this.aJ.get(),K6:this.K6,Lz:b.get(),dS:null,VW:this.c9,X8:l.get(),Ly:this.Gh.get()}}; PSB=function(w,D,M,L,Z){g.X.call(this);var k=this,b=o2(function(){return new j6(k.D5)}); g.T(this,b);var C=o2(function(){return new R9(b,k.D5)}); g.T(this,C);var l=o2(function(){return new Me}); g.T(this,l);var E=o2(function(){return new wj(w)}); g.T(this,E);var p=o2(function(){return new o9(b,C,k.D5)}); g.T(this,p);var W=o2(function(){return new a9}); g.T(this,W);this.Fm=o2(function(){return new SJQ(D)}); g.T(this,this.Fm);this.OB=o2(function(){return new t2(D)}); g.T(this,this.OB);this.Ca=o2(function(){return new F8(Z)}); g.T(this,this.Ca);this.cA=o2(function(){return new Jy(D)}); g.T(this,this.cA);this.zD=o2(function(){return new z0(D)}); g.T(this,this.zD);this.DO=o2(function(){return new VD(D)}); g.T(this,this.DO);this.Rs=o2(function(){return new PG(D)}); g.T(this,this.Rs);this.D5=o2(function(){return new OS(D)}); g.T(this,this.D5);var h=o2(function(){return new h2(L)}); g.T(this,h);var t=o2(function(){return new w9(k.D5)}); g.T(this,t);this.EH=o2(function(){return new yb(D)}); g.T(this,this.EH);this.Gh=o2(function(){return new kH(D,W,k.D5)}); g.T(this,this.Gh);var d=S7({Gh:this.Gh,D5:this.D5,Hd:t}),N=d.context,n=d.iO;this.MC=d.MC;this.QZ=o2(function(){return new d7(D,k.D5,k.FE)}); g.T(this,this.QZ);this.Ll=o2(function(){return new Ia(D)}); g.T(this,this.Ll);this.aJ=o2(function(){return new bv(D,k.Gh,k.D5)}); g.T(this,this.aJ);this.aC=o2(function(){return new Ue}); g.T(this,this.aC);d=o2(function(){return new Sa(b,p,C,k.D5,t,null,k.aJ,k.k9,k.Rm,3)}); g.T(this,d);this.sT=o2(function(){return new vI(k.D5)}); this.V$=o2(function(){return new Ay(k.aJ,D,k.D5)}); g.T(this,this.V$);this.FE=o2(function(){return new Z$(D,l,k.V$,k.Gh,k.MC,k.D5,n)}); g.T(this,this.FE);this.K6=new AO(E,d,M,this.D5,w,this.Gh,this.aJ,this.cA);g.T(this,this.K6);var v=new QD(D,this.K6,this.aJ,this.Gh,this.QZ);this.IC=o2(function(){return v}); this.O_=v;this.uZ=new mi(TYG,xH,function(G,f,e,S){return E_N(C.get(),G,f,e,S)},E,p,C,t,this.D5,this.Gh); g.T(this,this.uZ);this.k9=new zR(E,p,this.IC,this.QZ,this.aJ,this.D5,this.FE,this.Ll);g.T(this,this.k9);this.sH=new Dm(E,p,this.zD,this.IC,N);g.T(this,this.sH);this.ac=new lO(this.D5,E,p,d,this.Gh,this.sH,M,this.DO);g.T(this,this.ac);this.aq=o2(function(){return new mt(h,C,t,k.D5,k.FE,k.aJ,k.Ll)}); g.T(this,this.aq);this.KO=o2(function(){return new AL}); g.T(this,this.KO);this.c9=new lt(w,this.OB,this.D5);g.T(this,this.c9);this.X_=new Ey(w);g.T(this,this.X_);this.Xl=new hj(w,this.IC,N);g.T(this,this.Xl);this.A8=new tj(w,this.zD,this.aJ,this.Gh,N);g.T(this,this.A8);this.jg=new $4(w,this.Gh);g.T(this,this.jg);this.Rm=new I9(w,this.QZ,this.aJ,this.FE,this.IC,this.k9);g.T(this,this.Rm);this.J8=new dj(w);g.T(this,this.J8);this.eV=new yM(w);g.T(this,this.eV);this.gH=new Hh(w);g.T(this,this.gH);this.zC=o2(function(){return new k4}); g.T(this,this.zC);this.Rq=o2(function(){return new bt(k.aJ)}); g.T(this,this.Rq);this.Cf=o2(function(){return new q0(k.ac,E,b)}); g.T(this,this.Cf);this.rC=o2(function(){return new Xn(k.D5,k.FE,k.J8,k.V$)}); g.T(this,this.rC);this.qk=o2(function(){return new BE(w,k.gH,k.J8,k.Gh,k.Ll,k.aJ,k.aC,k.FE,W,k.QZ,k.V$,k.sT,k.DO,k.zD,k.cA,k.Rs,k.Ca,k.EH,k.D5,l,N,n)}); g.T(this,this.qk);this.VN=o2(function(){return new bMR(k.OB,k.aJ,k.FE,l,k.Fm,M,k.D5,k.Gh)}); g.T(this,this.VN);this.Iu={YG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.ac],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.k9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.uZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.K6],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sH]]),N0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.aq],["SLOT_TYPE_FORECASTING",this.KO],["SLOT_TYPE_IN_PLAYER",this.KO],["SLOT_TYPE_PLAYER_BYTES",this.KO]]),DS:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.c9],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.X_],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.X_],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.X_],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.X_],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.X_],["TRIGGER_TYPE_SLOT_ID_EXITED",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.X_],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.X_],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xl],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.A8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.A8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.jg],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.jg],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xl],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eV],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Rm],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Rm],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Rm],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Rm],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Rm]]),oG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zC],["SLOT_TYPE_FORECASTING",this.zC],["SLOT_TYPE_IN_PLAYER",this.zC],["SLOT_TYPE_PLAYER_BYTES",this.Rq]]),Jg:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cf],["SLOT_TYPE_FORECASTING",this.rC],["SLOT_TYPE_PLAYER_BYTES",this.qk],["SLOT_TYPE_IN_PLAYER",this.VN]])};this.listeners=[l.get()]; this.sf={ac:this.ac,xu:this.D5.get(),w9:this.Ca.get(),fY:this.aJ.get(),K6:this.K6,Lz:b.get(),dS:null,VW:this.c9,X8:l.get(),Ly:this.Gh.get()}}; KCZ=function(w,D,M,L){function Z(){return k.V} g.X.call(this);var k=this;w.X().experiments.ek("html5_dispose_of_manager_before_dependency")?(this.T=OI1(Z,w,D,M,L),this.V=(new nc(this.T)).L(),g.T(this,this.V),g.T(this,this.T)):(this.T=OI1(Z,w,D,M,L),g.T(this,this.T),this.V=(new nc(this.T)).L(),g.T(this,this.V))}; NS=function(w){return w.T.sf}; OI1=function(w,D,M,L,Z){try{var k=D.X();if(g.x2(k))var b=new QT7(w,D,M,L,Z);else if(g.jZ(k))b=new JGr(w,D,M,L,Z);else if(h6(k))b=new zl3(w,D,M,L,Z);else if(g.Fs(k))b=new VNQ(w,D,M,L,Z);else if(g.Y2(k))b=new PSB(w,D,M,L,Z);else throw new TypeError("Unknown web interface");return b}catch(C){return b=D.X(),Zg("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:b.T.cplatform,interface:b.T.c,XmV:b.T.cver,wm9:b.T.ctheme,Np7:b.T.cplayer,YoJ:b.playerStyle}),new cGs(w,D,M,L,Z)}}; mk7=function(w){fb.call(this,w)}; AG7=function(w,D,M,L,Z){Q9.call(this,w,{Z:"div",J:"ytp-ad-timed-pie-countdown-container",N:[{Z:"svg",J:"ytp-ad-timed-pie-countdown",S:{viewBox:"0 0 20 20"},N:[{Z:"circle",J:"ytp-ad-timed-pie-countdown-background",S:{r:"10",cx:"10",cy:"10"}},{Z:"circle",J:"ytp-ad-timed-pie-countdown-inner",S:{r:"5",cx:"10",cy:"10"}},{Z:"circle",J:"ytp-ad-timed-pie-countdown-outer",S:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",D,M,L,Z);this.D=this.Z5("ytp-ad-timed-pie-countdown-container");this.L=this.Z5("ytp-ad-timed-pie-countdown-inner"); this.W=this.Z5("ytp-ad-timed-pie-countdown-outer");this.V=Math.ceil(2*Math.PI*5);this.hide()}; wQ3=function(w,D,M,L,Z,k){Zq.call(this,w,{Z:"div",J:"ytp-ad-action-interstitial",S:{tabindex:"0"},N:[{Z:"div",J:"ytp-ad-action-interstitial-background-container"},{Z:"div",J:"ytp-ad-action-interstitial-slot",N:[{Z:"div",J:"ytp-ad-action-interstitial-instream-info"},{Z:"div",J:"ytp-ad-action-interstitial-card",N:[{Z:"div",J:"ytp-ad-action-interstitial-image-container"},{Z:"div",J:"ytp-ad-action-interstitial-headline-container"},{Z:"div",J:"ytp-ad-action-interstitial-description-container"},{Z:"div", J:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",D,M,L);this.jO=Z;this.Nl=k;this.navigationEndpoint=this.T=this.skipButton=this.V=this.actionButton=null;this.Md=this.Z5("ytp-ad-action-interstitial-instream-info");this.Jc=this.Z5("ytp-ad-action-interstitial-image-container");this.B=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,"ytp-ad-action-interstitial-image");g.T(this,this.B);this.B.CV(this.Jc);this.W_=this.Z5("ytp-ad-action-interstitial-headline-container"); this.W=new uI(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,"ytp-ad-action-interstitial-headline");g.T(this,this.W);this.W.CV(this.W_);this.V7=this.Z5("ytp-ad-action-interstitial-description-container");this.L=new uI(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,"ytp-ad-action-interstitial-description");g.T(this,this.L);this.L.CV(this.V7);this.EL=this.Z5("ytp-ad-action-interstitial-background-container");this.jk=new a1(this.api,this.layoutId,this.interactionLoggingClientData, this.w9,"ytp-ad-action-interstitial-background",!0);g.T(this,this.jk);this.jk.CV(this.EL);this.Nd=this.Z5("ytp-ad-action-interstitial-action-button-container");this.slot=this.Z5("ytp-ad-action-interstitial-slot");this.ET=this.Z5("ytp-ad-action-interstitial-card");this.D=new U4;g.T(this,this.D);this.hide()}; DZS=function(w){var D=g.CR("html5-video-player");D&&g.Lt(D,"ytp-ad-display-override",w)}; kDZ=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-ad-overlay-slot",N:[{Z:"div",J:"ytp-ad-overlay-container"}]},"invideo-overlay",D,M,L);this.B=[];this.EL=this.W_=this.D=this.Nd=this.Md=null;this.jk=!1;this.W=null;this.V7=0;w=this.Z5("ytp-ad-overlay-container");this.Jc=new AS(w,45E3,6E3,.3,.4);g.T(this,this.Jc);this.L=MPl(this);g.T(this,this.L);this.L.CV(w);this.V=LrZ(this);g.T(this,this.V);this.V.CV(w);this.T=ZkD(this);g.T(this,this.T);this.T.CV(w);this.hide()}; MPl=function(w){var D=new g.Lb({Z:"div",J:"ytp-ad-text-overlay",N:[{Z:"div",J:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",J:"ytp-ad-overlay-close-container",N:[{Z:"button",J:"ytp-ad-overlay-close-button",N:[jG(bkx)]}]},{Z:"div",J:"ytp-ad-overlay-title",LV:"{{title}}"},{Z:"div",J:"ytp-ad-overlay-desc",LV:"{{description}}"},{Z:"div",Yt:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],LV:"{{displayUrl}}"}]});w.j(D.Z5("ytp-ad-overlay-title"),"click",function(M){H9(w,D.element,M)}); w.j(D.Z5("ytp-ad-overlay-link"),"click",function(M){H9(w,D.element,M)}); w.j(D.Z5("ytp-ad-overlay-close-container"),"click",w.x5);D.hide();return D}; LrZ=function(w){var D=new g.Lb({Z:"div",Yt:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],N:[{Z:"div",J:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",J:"ytp-ad-overlay-close-container",N:[{Z:"button",J:"ytp-ad-overlay-close-button",N:[jG(bkx)]}]},{Z:"div",J:"ytp-ad-overlay-text-image",N:[{Z:"img",S:{src:"{{imageUrl}}"}}]},{Z:"div",J:"ytp-ad-overlay-title",LV:"{{title}}"},{Z:"div",J:"ytp-ad-overlay-desc",LV:"{{description}}"},{Z:"div",Yt:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], LV:"{{displayUrl}}"}]});w.j(D.Z5("ytp-ad-overlay-title"),"click",function(M){H9(w,D.element,M)}); w.j(D.Z5("ytp-ad-overlay-link"),"click",function(M){H9(w,D.element,M)}); w.j(D.Z5("ytp-ad-overlay-close-container"),"click",w.x5);w.j(D.Z5("ytp-ad-overlay-text-image"),"click",w.wrE);D.hide();return D}; ZkD=function(w){var D=new g.Lb({Z:"div",J:"ytp-ad-image-overlay",N:[{Z:"div",J:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",J:"ytp-ad-overlay-close-container",N:[{Z:"button",J:"ytp-ad-overlay-close-button",N:[jG(bkx)]}]},{Z:"div",J:"ytp-ad-overlay-image",N:[{Z:"img",S:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});w.j(D.Z5("ytp-ad-overlay-image"),"click",function(M){H9(w,D.element,M)}); w.j(D.Z5("ytp-ad-overlay-close-container"),"click",w.x5);D.hide();return D}; Yll=function(w,D){if(D){var M=g.Q(D,kF)||null;M==null?g.HL(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(D=g.CR("video-ads ytp-ad-module")||null,D==null?g.HL(Error("Could not locate the root ads container element to attach the ad info dialog.")):(w.W_=new g.Lb({Z:"div",J:"ytp-ad-overlay-ad-info-dialog-container"}),g.T(w,w.W_),w.W_.CV(D),D=new TL(w.api,w.layoutId,w.interactionLoggingClientData,w.w9,w.W_.element,!1),g.T(w,D),D.init(Of("ad-info-hover-text-button"),M,w.macros), w.W?(D.CV(w.W,0),D.subscribe("f",w.iVt,w),D.subscribe("e",w.Ob,w),w.j(w.W,"click",w.B9h),w.j(g.CR("ytp-ad-button",D.element),"click",function(){var L;if(g.Q((L=g.Q(M.button,g.YF))==null?void 0:L.serviceEndpoint,Aax))w.jk=w.api.getPlayerState(1)===2,w.api.pauseVideo();else w.api.onAdUxClicked("ad-info-hover-text-button",w.layoutId)}),w.EL=D):g.HL(Error("Ad info button container within overlay ad was not present."))))}else g.jn(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; lZx=function(w,D){if(CrD(w,jb)||w.api.isMinimized())return!1;var M=kb(D.title),L=kb(D.description);if(g.s3(M)||g.s3(L))return!1;w.createServerVe(w.L.element,D.trackingParams||null);w.L.updateValue("title",kb(D.title));w.L.updateValue("description",kb(D.description));w.L.updateValue("displayUrl",kb(D.displayUrl));D.navigationEndpoint&&g.sl(w.B,D.navigationEndpoint);w.L.show();w.Jc.start();w.logVisibility(w.L.element,!0);w.j(w.L.element,"mouseover",function(){w.V7++}); return!0}; EBS=function(w,D){if(CrD(w,jb)||w.api.isMinimized())return!1;var M=kb(D.title),L=kb(D.description);if(g.s3(M)||g.s3(L))return!1;w.createServerVe(w.V.element,D.trackingParams||null);w.V.updateValue("title",kb(D.title));w.V.updateValue("description",kb(D.description));w.V.updateValue("displayUrl",kb(D.displayUrl));w.V.updateValue("imageUrl",E7T(D.image));D.navigationEndpoint&&g.sl(w.B,D.navigationEndpoint);w.Nd=D.imageNavigationEndpoint||null;w.V.show();w.Jc.start();w.logVisibility(w.V.element,!0); w.j(w.V.element,"mouseover",function(){w.V7++}); return!0}; pQ1=function(w,D){if(w.api.isMinimized())return!1;var M=pgT(D.image),L=M;M.width0?(D=new os(w.api,w.T), D.CV(w.playerOverlay),g.T(w,D)):(w=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(D)),g.HL(w))}}else g.HL(Error("addCommonComponents() needs to be called before starting countdown."))}; N3S=function(w){function D(M){return{toString:function(){return M()}}} w.macros.SURVEY_LOCAL_TIME_EPOCH_S=D(function(){var M=new Date;return(Math.round(M.valueOf()/1E3)+-1*M.getTimezoneOffset()*60).toString()}); w.macros.SURVEY_ELAPSED_MS=D(function(){return(Date.now()-w.L).toString()})}; HkS=function(w,D,M,L,Z){nF.call(this,w,D,M,L,"survey-question-multi-select");this.V7=Z;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; jSQ=function(w,D,M){w.noneOfTheAbove=new dZZ(w.api,w.layoutId,w.interactionLoggingClientData,w.w9);w.noneOfTheAbove.CV(w.answers);w.noneOfTheAbove.init(Of("survey-none-of-the-above"),D,M)}; Rsr=function(w){w.V.forEach(function(D){D.T.toggleButton(!1)}); gB3(w,!0)}; gB3=function(w,D){var M=w.D;w=oB3(w);D=D===void 0?!1:D;M.T&&(w?M.T.hide():M.T.show(),D&&M.T instanceof Ex&&!M.T.D&&CEl(M.T,!1));M.V&&(w?M.V.show():M.V.hide())}; oB3=function(w){return w.V.some(function(D){return D.T.isToggled()})||w.noneOfTheAbove.button.isToggled()}; Fw=function(w,D,M,L,Z){nF.call(this,w,D,M,L,"survey-question-single-select",function(b){k.api.X().C("supports_multi_step_on_desktop")&&Z([b])}); var k=this;this.hide()}; Gs=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-ad-survey",N:[{Z:"div",J:"ytp-ad-survey-questions"}]},"survey",D,M,L);this.questions=[];this.V=[];this.conditioningRules=[];this.T=0;this.W=this.Z5("ytp-ad-survey-questions");this.api.X().C("fix_survey_color_contrast_on_destop")&&this.Z5("ytp-ad-survey").classList.add("color-contrast-fix");this.api.X().C("web_enable_speedmaster")&&this.Z5("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; GDD=function(w,D){var M=w.V[D],L;(L=w.L)==null||L.dispose();g.Q(M,LO)?nBS(w,g.Q(M,LO),w.macros):g.Q(M,M8)&&Frs(w,g.Q(M,M8),w.macros);w.T=D}; nBS=function(w,D,M){var L=new Fw(w.api,w.layoutId,w.interactionLoggingClientData,w.w9,w.D.bind(w));L.CV(w.W);L.init(Of("survey-question-single-select"),D,M);w.api.X().C("supports_multi_step_on_desktop")?w.L=L:w.questions.push(L);g.T(w,L)}; Frs=function(w,D,M){var L=new HkS(w.api,w.layoutId,w.interactionLoggingClientData,w.w9,w.D.bind(w));L.CV(w.W);L.init(Of("survey-question-multi-select"),D,M);w.api.X().C("supports_multi_step_on_desktop")?w.L=L:w.questions.push(L);g.T(w,L)}; se=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-ad-survey-interstitial",N:[{Z:"div",J:"ytp-ad-survey-interstitial-contents",N:[{Z:"div",J:"ytp-ad-survey-interstitial-logo",N:[{Z:"div",J:"ytp-ad-survey-interstitial-logo-image"}]},{Z:"div",J:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",D,M,L);this.T=this.actionButton=null;this.interstitial=this.Z5("ytp-ad-survey-interstitial");this.V=this.Z5("ytp-ad-survey-interstitial-contents");this.text=this.Z5("ytp-ad-survey-interstitial-text"); this.logoImage=this.Z5("ytp-ad-survey-interstitial-logo-image");this.transition=new g.V9(this,500,!1,300);g.T(this,this.transition)}; sSl=function(w,D){D=D&&sW(D)||"";if(g.s3(D))g.jn(Error("Found ThumbnailDetails without valid image URL"));else{var M=w.style;w=w.style.cssText;var L=document.implementation.createHTMLDocument("").createElement("DIV");L.style.cssText=w;w=fzT(L.style);M.cssText=[w,'background-image:url("'+D+'");'].join("")}}; aZr=function(w){var D=g.CR("html5-video-player");D&&g.Lt(D,"ytp-ad-display-override",w)}; aa=function(w,D,M,L,Z,k){k=k===void 0?0:k;Q9.call(this,w,{Z:"div",J:"ytp-preview-ad",N:[{Z:"div",J:"ytp-preview-ad__text"}]},"preview-ad",D,M,L,Z);var b=this;this.V7=k;this.V=0;this.D=-1;this.L=this.Z5("ytp-preview-ad__text");switch(this.V7){case 1:this.L.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.V9(this,400,!1,100,function(){b.hide()}); g.T(this,this.transition);this.hide()}; v9=function(w,D,M,L){Zq.call(this,w,{Z:"img",J:"ytp-ad-avatar"},"ad-avatar",D,M,L);this.hide()}; vBB=function(w){switch(w.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}}; c9=function(w,D,M,L,Z,k){Z=Z===void 0?!1:Z;k=k===void 0?!1:k;Zq.call(this,w,{Z:"button",J:"ytp-ad-button-vm"},"ad-button",D,M,L);this.buttonText=this.buttonIcon=null;this.hide();this.T=Z;this.V=k}; cxs=function(w,D,M,L,Z){Q9.call(this,w,{Z:"div",Yt:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],N:[{Z:"div",J:"ytp-ad-avatar-lockup-card__avatar_and_text_container",N:[{Z:"div",J:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",D,M,L,Z);this.startMilliseconds=0;this.adAvatar=new v9(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,this.adAvatar);yv(this.element,this.adAvatar.element,0);this.headline=new x0(this.api,this.layoutId, this.interactionLoggingClientData,this.w9);g.T(this,this.headline);this.headline.CV(this.Z5("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new x0(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,this.description);this.description.CV(this.Z5("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new c9(this.api, this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,this.adButton);this.adButton.CV(this.element);this.hide()}; B9=function(w,D,M,L){Zq.call(this,w,{Z:"button",J:"ytp-skip-ad-button",N:[{Z:"div",J:"ytp-skip-ad-button__text"}]},"skip-button",D,M,L);var Z=this;this.V=!1;this.D=this.Z5("ytp-skip-ad-button__text");this.transition=new g.V9(this,500,!1,100,function(){Z.hide()}); g.T(this,this.transition);this.T=new AS(this.element,15E3,5E3,.5,.5,!0);g.T(this,this.T);this.hide()}; B3r=function(w,D,M,L,Z){Q9.call(this,w,{Z:"div",J:"ytp-skip-ad"},"skip-ad",D,M,L,Z);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.L=new B9(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,this.L);this.L.CV(this.element);this.hide()}; fF=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-visit-advertiser-link"},"visit-advertiser-link",D,M,L);this.hide()}; qS=function(w,D,M,L,Z){Zq.call(this,w,{Z:"div",J:"ytp-ad-player-overlay-layout",N:[{Z:"div",J:"ytp-ad-player-overlay-layout__player-card-container"},{Z:"div",J:"ytp-ad-player-overlay-layout__ad-info-container"},{Z:"div",J:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Z:"div",J:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",D,M,L);this.V=Z;this.W_=this.Z5("ytp-ad-player-overlay-layout__player-card-container");this.T=this.Z5("ytp-ad-player-overlay-layout__ad-info-container"); this.B=this.Z5("ytp-ad-player-overlay-layout__skip-or-preview-container");this.V7=this.Z5("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; fZD=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-ad-grid-card-text",N:[{Z:"div",J:"ytp-ad-grid-card-text__metadata",N:[{Z:"div",J:"ytp-ad-grid-card-text__metadata__headline"},{Z:"div",J:"ytp-ad-grid-card-text__metadata__description",N:[{Z:"div",J:"ytp-ad-grid-card-text__metadata__description__line"},{Z:"div",J:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Z:"div",J:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",D,M,L);this.headline=new x0(this.api,this.layoutId,this.interactionLoggingClientData, this.w9);g.T(this,this.headline);this.headline.CV(this.Z5("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new c9(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,!0);g.T(this,this.moreInfoButton);this.moreInfoButton.CV(this.Z5("ytp-ad-grid-card-text__button"))}; r7=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",D,M,L);this.T=[]}; eb=function(w,D,M,L,Z,k,b){Q9.call(this,w,k,b,D,M,L,Z);this.playerProgressOffsetMs=0;this.V=!1}; ql7=function(w){var D=g.CR("html5-video-player");D&&g.Lt(D,"ytp-ad-display-override",w)}; rxB=function(w,D,M,L,Z){eb.call(this,w,D,M,L,Z,{Z:"div",J:"ytp-display-underlay-text-grid-cards",N:[{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container",N:[{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header",N:[{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {Z:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new r7(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,this.adGridCardCollection);this.adGridCardCollection.CV(this.Z5("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new c9(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,this.adButton);this.adButton.CV(this.Z5("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.L=this.Z5("ytp-display-underlay-text-grid-cards__content_container");this.D=this.Z5("ytp-display-underlay-text-grid-cards__content_container__header")}; Xw=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-ad-details-line"},"ad-details-line",D,M,L);this.T=[];this.hide()}; Ts=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-image-background",N:[{Z:"img",J:"ytp-image-background-image"}]},"image-background",D,M,L);this.hide()}; es1=function(w,D,M,L,Z){Q9.call(this,w,{Z:"svg",J:"ytp-timed-pie-countdown",S:{viewBox:"0 0 20 20"},N:[{Z:"circle",J:"ytp-timed-pie-countdown__background",S:{r:"10",cx:"10",cy:"10"}},{Z:"circle",J:"ytp-timed-pie-countdown__inner",S:{r:"5",cx:"10",cy:"10"}},{Z:"circle",J:"ytp-timed-pie-countdown__outer",S:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",D,M,L,Z);this.L=this.Z5("ytp-timed-pie-countdown__inner");this.V=Math.ceil(2*Math.PI*5);this.hide()}; uv=function(w,D,M,L){Zq.call(this,w,{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout",S:{tabindex:"0"},N:[{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content",N:[{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",N:[{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{Z:"div",J:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",D,M,L);this.V=null;this.D=this.Z5("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.L=new U4;g.T(this,this.L);this.hide()}; XQr=function(w){var D=g.CR("html5-video-player");D&&g.Lt(D,"ytp-ad-display-override",w)}; T37=function(w){if(!w.adAvatar||!g.Q(w.adAvatar,Sb))return g.HL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!w.headline)return g.HL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!w.adBadge||!g.Q(w.adBadge,Qb))return g.HL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!w.adButton||!g.Q(w.adButton,J2))return g.HL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!w.adInfoRenderer|| !g.Q(w.adInfoRenderer,kF))return g.HL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;w=w.durationMilliseconds||0;return typeof w!=="number"||w<=0?(g.HL(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+w)),!1):!0}; zs=function(w,D){D=D===void 0?2:D;g.mI.call(this);this.api=w;this.T=null;this.handler=new U4(this);g.T(this,this.handler);this.V=lDS;this.handler.j(this.api,"presentingplayerstatechange",this.B6);this.T=this.handler.j(this.api,"progresssync",this.M$);this.LS=D;this.LS===1&&this.M$()}; Vb=function(w,D,M){fb.call(this,w);this.api=w;this.w9=D;this.components={};w=new g.J({Z:"div",Yt:["video-ads","ytp-ad-module"]});g.T(this,w);Kg&&g.AB(w.element,"ytp-ads-tiny-mode");this.D=new CV(w.element);g.T(this,this.D);g.mH(this.api,w.element,4);RY(M)&&(M=new g.J({Z:"div",Yt:["ytp-ad-underlay"]}),g.T(this,M),this.V=new CV(M.element),g.T(this,this.V),g.mH(this.api,M.element,0));g.T(this,q4R())}; u7k=function(w,D){w=g.h7(w.components,D.id,null);w==null&&g.jn(Error("Component not found for element id: "+D.id));return w||null}; Sls=function(w){g.xX.call(this,w);var D=this;this.V=null;this.created=!1;this.L=w.X().C("h5_use_refactored_get_ad_break")?new BKT(this.player):new un(this.player);this.D=function(){if(D.V!=null)return D.V;var L=new ujS({VW:NS(D.T).VW,Ly:NS(D.T).Ly,K:D.player,xu:NS(D.T).xu,FE:D.T.T.FE,X8:NS(D.T).X8,Rs:D.T.T.Rs});D.V=L.i$;return D.V}; this.T=new KCZ(this.player,this,this.L,this.D);g.T(this,this.T);var M=w.X();!WI(M)||g.Y2(M)||h6(M)||(g.T(this,new Vb(w,NS(this.T).w9,NS(this.T).xu)),g.T(this,new mk7(w)))}; QSr=function(w){w.created!==w.loaded&&Zg("Created and loaded are out of sync")}; VPP=function(w){g.xX.prototype.load.call(w);var D=NS(w.T).xu;try{w.player.getRootNode().classList.add("ad-created")}catch(l){Zg(l instanceof Error?l:String(l))}var M=w.player.getVideoData(1),L=M&&M.videoId||"",Z=M&&M.getPlayerResponse()||{},k=(Z&&Z.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),b=((Z==null?void 0:Z.adSlots)||[]).map(function(l){return g.Q(l,EX)}); Z=Z.playerConfig&&Z.playerConfig.daiConfig&&Z.playerConfig.daiConfig.enableDai||!1;M&&M.Yl();k=JxD(k,b,D,NS(w.T).Lz);b=M&&M.clientPlaybackNonce||"";M=M&&M.gg||!1;if(lM(D,!0)&&M){var C;D={};(C=w.player.getVideoData())==null||C.H_("p_cpb",(D.cc=b,D))}C=1E3*w.player.getDuration(1);zsZ(w);w.T.T.O_.E0(b,C,M,k.dR,k.L2,k.dR,Z,L)}; zsZ=function(w){var D,M;if(M=(D=w.player.getVideoData(1))==null||!D.gg)D=w.player.X(),M=WI(D)&&!g.pc(D)&&D.playerStyle==="desktop-polymer";M&&(w=w.player.getInternalApi(),w.addEventListener("updateKevlarOrC3Companion",y5I),w.addEventListener("updateEngagementPanelAction",IDK),w.addEventListener("changeEngagementPanelVisibility",UDx),window.addEventListener("yt-navigate-start",N_K))}; P9=function(w,D){D===w.D1&&(w.D1=void 0)}; Prx=function(w){var D=NS(w.T).K6,M=D.D().jB("SLOT_TYPE_PLAYER_BYTES",1);D=SV(D.Gh.get(),1).clientPlaybackNonce;var L=!1;M=g.x(M);for(var Z=M.next();!Z.done;Z=M.next()){Z=Z.value;var k=Z.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Z.slotEntryTrigger instanceof KY?Z.slotEntryTrigger.aG:void 0;k&&k===D&&(L&&Zg("More than 1 preroll playerBytes slot detected",Z),L=!0)}L||YH(NS(w.T).fY)}; OkP=function(w){if(KC(NS(w.T).xu))return!0;var D="";w=g.x(NS(w.T).X8.CP.keys());for(var M=w.next();!M.done;M=w.next()){M=M.value;if(M.slotType==="SLOT_TYPE_PLAYER_BYTES"&&M.lW==="core")return!0;D+=M.slotType+" "}Math.random()<.01&&Zg("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:D});return!1}; KrD=function(w){w=g.x(NS(w.T).X8.CP.values());for(var D=w.next();!D.done;D=w.next())if(D.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; XUC=function(w,D,M,L,Z,k,b){M=M===void 0?[]:M;L=L===void 0?"":L;Z=Z===void 0?"":Z;var C=NS(w.T).xu,l=w.player.getVideoData(1);l&&l.getPlayerResponse();l&&l.Yl();M=JxD(D,M,C,NS(w.T).Lz);J4R(NS(w.T).ac,L,M.dR,M.L2,D,Z,k,b)}; JxD=function(w,D,M,L){D={dR:[],L2:D};w=g.x(w);for(var Z=w.next();!Z.done;Z=w.next())if((Z=Z.value)&&Z.renderer!=null){var k=Z.renderer;if(!M.K.X().C("html5_enable_vod_lasr_with_notify_pacf")){var b=void 0,C=void 0,l=void 0,E=void 0,p=L;g.Q((E=k.sandwichedLinearAdRenderer)==null?void 0:E.adVideoStart,uO)?(b=g.Q((l=k.sandwichedLinearAdRenderer)==null?void 0:l.adVideoStart,uO),b=bcC(b,p),g.FU(k.sandwichedLinearAdRenderer.adVideoStart,uO,b)):g.Q((C=k.linearAdSequenceRenderer)==null?void 0:C.adStart,uO)&& (l=g.Q((b=k.linearAdSequenceRenderer)==null?void 0:b.adStart,uO),b=bcC(l,p),g.FU(k.linearAdSequenceRenderer.adStart,uO,b))}D.dR.push(Z)}return D}; g.Oe=function(w){if(typeof DOMParser!="undefined")return Rg(new DOMParser,sVr(w),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.KF=function(w){g.X.call(this);this.callback=w;this.T=new tw(0,0,.4,0,.2,1,1,1);this.delay=new g.TC(this.next,window,this);g.T(this,this.delay)}; g.mZD=function(w){var D=w.X();return D.Qi&&!D.L&&g.w0(D)?w.isEmbedsShortsMode()?(w=w.Sa(),Math.min(w.width,w.height)>=315):!w.kc():!1}; g.m7=function(w){g.J.call(this,{Z:"div",J:"ytp-more-videos-view",S:{tabIndex:"-1"}});var D=this;this.api=w;this.V=!0;this.L=new g.xM(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.G=this.D=this.scrollPosition=0;this.title=new g.J({Z:"h2",J:"ytp-related-title",LV:"{{title}}"});this.previous=new g.J({Z:"button",Yt:["ytp-button","ytp-previous"],S:{"aria-label":"Show previous suggested videos"},N:[g.lI()]});this.Y=new g.KF(function(M){D.suggestions.element.scrollLeft=-M}); this.next=new g.J({Z:"button",Yt:["ytp-button","ytp-next"],S:{"aria-label":"Show more suggested videos"},N:[g.EW()]});g.T(this,this.L);this.W=w.X().D;g.T(this,this.title);this.title.CV(this.element);this.suggestions=new g.J({Z:"div",J:"ytp-suggestions"});g.T(this,this.suggestions);this.suggestions.CV(this.element);g.T(this,this.previous);this.previous.CV(this.element);this.previous.listen("click",this.OC,this);g.T(this,this.Y);AxP(this);g.T(this,this.next);this.next.CV(this.element);this.next.listen("click", this.AL,this);this.L.j(this.api,"appresize",this.EB);this.L.j(this.api,"fullscreentoggled",this.U_);this.L.j(this.api,"videodatachange",this.onVideoDataChange);this.EB(this.api.qd().getPlayerSize());this.onVideoDataChange()}; AxP=function(w){for(var D={xd:0};D.xd<16;D={xd:D.xd},++D.xd){var M=new g.J({Z:"a",J:"ytp-suggestion-link",S:{href:"{{link}}",target:w.api.X().B,"aria-label":"{{aria_label}}"},N:[{Z:"div",J:"ytp-suggestion-image"},{Z:"div",J:"ytp-suggestion-overlay",S:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},N:[{Z:"div",J:"ytp-suggestion-title",LV:"{{title}}"},{Z:"div",J:"ytp-suggestion-author",LV:"{{author_and_views}}"},{Z:"div",S:{"data-is-live":"{{is_live}}"},J:"ytp-suggestion-duration", LV:"{{duration}}"}]}]});g.T(w,M);var L=M.Z5("ytp-suggestion-link");g.Qv(L,"transitionDelay",D.xd/20+"s");w.L.j(L,"click",function(Z){return function(k){var b=Z.xd;if(w.V){var C=w.suggestionData[b],l=C.sessionData;w.W&&w.api.C("web_player_log_click_before_generating_ve_conversion_params")?(w.api.logClick(w.T[b].element),b=C.N2(),C={},g.P$(w.api,C),b=g.dh(b,C),g.R4(b,w.api,k)):g.gW(k,w.api,w.W,l||void 0)&&w.api.ZS(C.videoId,l,C.playlistId)}else k.preventDefault(),document.activeElement.blur()}}(D)); M.CV(w.suggestions.element);w.T.push(M);w.api.createServerVe(M.element,M)}}; wDZ=function(w){if(w.api.X().C("web_player_log_click_before_generating_ve_conversion_params"))for(var D=Math.floor(-w.scrollPosition/(w.D+8)),M=Math.min(D+w.columns,w.suggestionData.length)-1;D<=M;D++)w.api.logVisibility(w.T[D].element,!0)}; g.A2=function(w){var D=w.api.x9()?32:16;D=w.G/2+D;w.next.element.style.bottom=D+"px";w.previous.element.style.bottom=D+"px";D=w.scrollPosition;var M=w.containerWidth-w.suggestionData.length*(w.D+8);g.Lt(w.element,"ytp-scroll-min",D>=0);g.Lt(w.element,"ytp-scroll-max",D<=M)}; McS=function(w){for(var D=w.suggestionData.length,M=0;M>>0)+"_",Z=0;return D}); pI("Symbol.iterator",function(w){if(w)return w;w=Symbol("Symbol.iterator");for(var D="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),M=0;M0&&M>0;)if(L[--M]!=D[--Z])return!1;return Z<=0}}); pI("Array.prototype.find",function(w){return w?w:function(D,M){return WCa(this,D,M).Pb}}); pI("Array.prototype.entries",function(w){return w?w:function(){return TK(this,function(D,M){return[D,M]})}}); pI("Array.prototype.keys",function(w){return w?w:function(){return TK(this,function(D){return D})}}); pI("String.prototype.startsWith",function(w){return w?w:function(D,M){var L=XK(this,D,"startsWith");D+="";var Z=L.length,k=D.length;M=Math.max(0,Math.min(M|0,L.length));for(var b=0;b=k}}); pI("Number.isFinite",function(w){return w?w:function(D){return typeof D!=="number"?!1:!isNaN(D)&&D!==Infinity&&D!==-Infinity}}); pI("String.prototype.repeat",function(w){return w?w:function(D){var M=XK(this,null,"repeat");if(D<0||D>1342177279)throw new RangeError("Invalid count value");D|=0;for(var L="";D;)if(D&1&&(L+=M),D>>>=1)M+=M;return L}}); pI("Object.entries",function(w){return w?w:function(D){var M=[],L;for(L in D)iS(D,L)&&M.push([L,D[L]]);return M}}); pI("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); pI("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); pI("Array.from",function(w){return w?w:function(D,M,L){M=M!=null?M:function(C){return C}; var Z=[],k=typeof Symbol!="undefined"&&Symbol.iterator&&D[Symbol.iterator];if(typeof k=="function"){D=k.call(D);for(var b=0;!(k=D.next()).done;)Z.push(M.call(L,k.value,b++))}else for(k=D.length,b=0;b>>0;if(D===0)return 32;var M=0;(D&4294901760)===0&&(D<<=16,M+=16);(D&4278190080)===0&&(D<<=8,M+=8);(D&4026531840)===0&&(D<<=4,M+=4);(D&3221225472)===0&&(D<<=2,M+=2);(D&2147483648)===0&&M++;return M}}); pI("Number.isNaN",function(w){return w?w:function(D){return typeof D==="number"&&isNaN(D)}}); pI("Array.prototype.values",function(w){return w?w:function(){return TK(this,function(D,M){return M})}}); pI("Array.prototype.fill",function(w){return w?w:function(D,M,L){var Z=this.length||0;M<0&&(M=Math.max(0,Z+M));if(L==null||L>Z)L=Z;L=Number(L);L<0&&(L=Math.max(0,Z+L));for(M=Number(M||0);M0&&M?M.repeat(Math.ceil(D/M.length)).substring(0,D):"")+L}}); pI("Array.prototype.findIndex",function(w){return w?w:function(D,M){return WCa(this,D,M).FJ}}); pI("Promise.prototype.finally",function(w){return w?w:function(D){return this.then(function(M){return Promise.resolve(D()).then(function(){return M})},function(M){return Promise.resolve(D()).then(function(){throw M; })})}}); pI("Math.imul",function(w){return w?w:function(D,M){D=Number(D);M=Number(M);var L=D&65535,Z=M&65535;return L*Z+((D>>>16&65535)*Z+L*(M>>>16&65535)<<16>>>0)|0}}); pI("Math.sign",function(w){return w?w:function(D){D=Number(D);return D===0||isNaN(D)?D:D>0?1:-1}}); pI("WeakSet",function(w){function D(M){this.T=new WeakMap;if(M){M=g.x(M);for(var L;!(L=M.next()).done;)this.add(L.value)}} if(function(){if(!w||!Object.seal)return!1;try{var M=Object.seal({}),L=Object.seal({}),Z=new w([M]);if(!Z.has(M)||Z.has(L))return!1;Z.delete(M);Z.add(L);return!Z.has(M)&&Z.has(L)}catch(k){return!1}}())return w; D.prototype.add=function(M){this.T.set(M,!0);return this}; D.prototype.has=function(M){return this.T.has(M)}; D.prototype.delete=function(M){return this.T.delete(M)}; return D}); pI("AggregateError",function(w){function D(M,L){L=Error(L);"stack"in L&&(this.stack=L.stack);this.errors=M;this.message=L.message} if(w)return w;g.I(D,Error);D.prototype.name="AggregateError";return D}); pI("Array.prototype.copyWithin",function(w){function D(M){M=Number(M);return M===Infinity||M===-Infinity?M:M|0} return w?w:function(M,L,Z){var k=this.length;M=D(M);L=D(L);Z=Z===void 0?k:D(Z);M=M<0?Math.max(k+M,0):Math.min(M,k);L=L<0?Math.max(k+L,0):Math.min(L,k);Z=Z<0?Math.max(k+Z,0):Math.min(Z,k);if(ML;)--Z in this?this[--M]=this[Z]:delete this[--M];return this}}); pI("Int8Array.prototype.copyWithin",SN);pI("Uint8Array.prototype.copyWithin",SN);pI("Uint8ClampedArray.prototype.copyWithin",SN);pI("Int16Array.prototype.copyWithin",SN);pI("Uint16Array.prototype.copyWithin",SN);pI("Int32Array.prototype.copyWithin",SN);pI("Uint32Array.prototype.copyWithin",SN);pI("Float32Array.prototype.copyWithin",SN);pI("Float64Array.prototype.copyWithin",SN);pI("Array.prototype.at",function(w){return w?w:Qj}); pI("Int8Array.prototype.at",Pr);pI("Uint8Array.prototype.at",Pr);pI("Uint8ClampedArray.prototype.at",Pr);pI("Int16Array.prototype.at",Pr);pI("Uint16Array.prototype.at",Pr);pI("Int32Array.prototype.at",Pr);pI("Uint32Array.prototype.at",Pr);pI("Float32Array.prototype.at",Pr);pI("Float64Array.prototype.at",Pr);pI("String.prototype.at",function(w){return w?w:Qj}); pI("Array.prototype.findLastIndex",function(w){return w?w:function(D,M){return hlG(this,D,M).FJ}}); pI("Int8Array.prototype.findLastIndex",OJ);pI("Uint8Array.prototype.findLastIndex",OJ);pI("Uint8ClampedArray.prototype.findLastIndex",OJ);pI("Int16Array.prototype.findLastIndex",OJ);pI("Uint16Array.prototype.findLastIndex",OJ);pI("Int32Array.prototype.findLastIndex",OJ);pI("Uint32Array.prototype.findLastIndex",OJ);pI("Float32Array.prototype.findLastIndex",OJ);pI("Float64Array.prototype.findLastIndex",OJ);pI("Number.parseInt",function(w){return w||parseInt});var S4,kB,$kK;S4=S4||{};g.KI=this||self;kB="closure_uid_"+(Math.random()*1E9>>>0);$kK=0;g.hx(tx,Error);tx.prototype.name="CustomError";var sSJ;var NRa,Ui,uX;NRa=Array.prototype.indexOf?function(w,D){return Array.prototype.indexOf.call(w,D,void 0)}:function(w,D){if(typeof w==="string")return typeof D!=="string"||D.length!=1?-1:w.indexOf(D,0); for(var M=0;M=0;M--)if(M in w&&w[M]===D)return M;return-1}; g.PQ=Array.prototype.forEach?function(w,D,M){Array.prototype.forEach.call(w,D,M)}:function(w,D,M){for(var L=w.length,Z=typeof w==="string"?w.split(""):w,k=0;k=.3:this.Sv>=.5};var Fh={rfW:0,Ww5:1},gya={NONE:0,Uk9:1,JH9:2};var faG="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Ik.prototype.getValue=function(){return this.V}; g.I(U3,Ik);U3.prototype.L=function(w){this.V===null&&g.E3(this.D,w)&&(this.V=w)}; g.I(xO,Ik);xO.prototype.L=function(w){this.V===null&&typeof w==="number"&&(this.V=w)}; g.I(Nc,Ik);Nc.prototype.L=function(w){this.V===null&&typeof w==="string"&&(this.V=w)};HD.prototype.disable=function(){this.V=!1}; HD.prototype.enable=function(){this.V=!0}; HD.prototype.isEnabled=function(){return this.V}; HD.prototype.reset=function(){this.T={};this.V=!0;this.L={}};var QU=document,sg=window;var EO7=MZ(1,!0),rC=MZ(610401301,!1);MZ(899588437,!1);var pD1=MZ(772657768,!1),WhQ=MZ(513659523,!1),hZ3=MZ(568333945,!0),rml=MZ(1331761403,!1);MZ(651175828,!1);MZ(722764542,!1);MZ(748402145,!1);MZ(748402146,!1);var xOG=MZ(748402147,EO7);MZ(333098724,!1);MZ(2147483644,!1);MZ(2147483645,!1);MZ(2147483646,EO7);MZ(2147483647,!0);var ec=!!g.w3("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var cD=String.prototype.trim?function(w){return w.trim()}:function(w){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(w)[1]},YlJ=/&/g,CrK=//g,EBT=/"/g,pQj=/'/g,WrK=/\x00/g,bkG=/[\x00&<>"']/;var Xh,tcx=g.KI.navigator;Xh=tcx?tcx.userAgentData||null:null;var PSx=globalThis.trustedTypes,mh;w2.prototype.toString=function(){return this.T+""};L2.prototype.toString=function(){return this.T}; var mkK=new L2("about:invalid#zClosurez");var mfC=Y1("tel"),ODS=Y1("sms"),KCa=[Y1("data"),Y1("http"),Y1("https"),Y1("mailto"),Y1("ftp"),new bL(function(w){return/^[^:]*([/?#]|$)/.test(w)})],AGK=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;W5.prototype.toString=function(){return this.T+""};d2.prototype.toString=function(){return this.T+""};NO.prototype.toString=function(){return this.T};var jq={};g.$cr=String.prototype.repeat?function(w,D){return w.repeat(D)}:function(w,D){return Array(D+1).join(w)};r2[" "]=function(){};var JM,iP,C9S,iWr,dck,y7x,O2,Kg,IYx;g.mJ=zk();g.YY=uKG();g.XT=Qt("Edge");g.g0=g.XT||g.YY;JM=Qt("Gecko")&&!(vD(g.qc(),"WebKit")&&!Qt("Edge"))&&!(Qt("Trident")||Qt("MSIE"))&&!Qt("Edge");g.Eg=vD(g.qc(),"WebKit")&&!Qt("Edge");iP=qO();C9S=yxK();g.JY=dZa();iWr=B5();dck=Qt("iPad");y7x=Qt("iPod");O2=f2();Kg=vD(g.qc(),"KaiOS"); a:{var Ucx="",xcD=function(){var w=g.qc();if(JM)return/rv:([^\);]+)(\)|;)/.exec(w);if(g.XT)return/Edge\/([\d\.]+)/.exec(w);if(g.YY)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(w);if(g.Eg)return/WebKit\/(\S+)/.exec(w);if(g.mJ)return/(?:Version)[ \/]?(\S+)/.exec(w)}(); xcD&&(Ucx=xcD?xcD[1]:"");if(g.YY){var wd,NCk=g.KI.document;wd=NCk?NCk.documentMode:void 0;if(wd!=null&&wd>parseFloat(Ucx)){IYx=String(wd);break a}}IYx=Ucx}var N3T=IYx,UZT={};var uU,SJ;g.l3=Vt();uU=B5()||Qt("iPod");SJ=Qt("iPad");g.Ab=QTK();g.d5=PD();g.pf=KW()&&!f2();var sJK=!g.YY&&!KW();g.y=g.Sq.prototype;g.y.clone=function(){return new g.Sq(this.x,this.y)}; g.y.equals=function(w){return w instanceof g.Sq&&QZ(this,w)}; g.y.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.y.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.y.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.y.scale=function(w,D){this.x*=w;this.y*=typeof D==="number"?D:w;return this};g.y=g.Jv.prototype;g.y.clone=function(){return new g.Jv(this.width,this.height)}; g.y.aspectRatio=function(){return this.width/this.height}; g.y.isEmpty=function(){return!VZ(this)}; g.y.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.y.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.y.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.y.scale=function(w,D){this.width*=w;this.height*=typeof D==="number"?D:w;return this};OQ.prototype.toString=function(){return this.T}; var P5={};new OQ(P5,"");var gBR=/^[a-z][a-z\d-]*$/i,RsS="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),nBT="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),GDK=["action","formaction","href"];var aZS={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.y=Av.prototype;g.y.Dv=function(w){return ZK(this.T,w)}; g.y.getElementsByTagName=function(w,D){return(D||this.T).getElementsByTagName(String(w))}; g.y.Z5=function(w){return g.CR(w,this.T)}; g.y.setProperties=l5;g.y.createElement=function(w){return Wb(this.T,w)}; g.y.appendChild=g.i5;g.y.append=function(w,D){fZK(wE(w),w,arguments,1)}; g.y.canHaveChildren=function(w){if(w.nodeType!=1)return!1;switch(w.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.y.removeNode=g.Id;g.y.getChildren=function(w){return w.children!=void 0?w.children:Array.prototype.filter.call(w.childNodes,function(D){return D.nodeType==1})}; g.y.contains=g.Ug;nR.prototype.now=function(){return 0}; nR.prototype.V=function(){return 0}; nR.prototype.L=function(){return 0}; nR.prototype.T=function(){return 0};g.I(Gd,nR);Gd.prototype.now=function(){return Fc()&&sg.performance.now?sg.performance.now():nR.prototype.now.call(this)}; Gd.prototype.V=function(){return Fc()&&sg.performance.memory?sg.performance.memory.totalJSHeapSize||0:nR.prototype.V.call(this)}; Gd.prototype.L=function(){return Fc()&&sg.performance.memory?sg.performance.memory.usedJSHeapSize||0:nR.prototype.L.call(this)}; Gd.prototype.T=function(){return Fc()&&sg.performance.memory?sg.performance.memory.jsHeapSizeLimit||0:nR.prototype.T.call(this)};var RoC=function(){if(!g.KI.addEventListener||!Object.defineProperty)return!1;var w=!1,D=Object.defineProperty({},"passive",{get:function(){w=!0}}); try{var M=function(){}; g.KI.addEventListener("test",M,D);g.KI.removeEventListener("test",M,D)}catch(L){}return w}();var dfx=XQS("AnimationEnd"),sH=XQS("TransitionEnd");g.y=q1.prototype;g.y.getHeight=function(){return this.bottom-this.top}; g.y.clone=function(){return new q1(this.top,this.right,this.bottom,this.left)}; g.y.contains=function(w){return this&&w?w instanceof q1?w.left>=this.left&&w.right<=this.right&&w.top>=this.top&&w.bottom<=this.bottom:w.x>=this.left&&w.x<=this.right&&w.y>=this.top&&w.y<=this.bottom:!1}; g.y.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.y.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.y.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.y.scale=function(w,D){D=typeof D==="number"?D:w;this.left*=w;this.right*=w;this.top*=D;this.bottom*=D;return this};g.y=g.Td.prototype;g.y.clone=function(){return new g.Td(this.left,this.top,this.width,this.height)}; g.y.contains=function(w){return w instanceof g.Sq?w.x>=this.left&&w.x<=this.left+this.width&&w.y>=this.top&&w.y<=this.top+this.height:this.left<=w.left&&this.left+this.width>=w.left+w.width&&this.top<=w.top&&this.top+this.height>=w.top+w.height}; g.y.getSize=function(){return new g.Jv(this.width,this.height)}; g.y.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.y.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.y.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.y.scale=function(w,D){D=typeof D==="number"?D:w;this.left*=w;this.width*=w;this.top*=D;this.height*=D;return this};var u7I={};var PrG=cb(function(){var w=!1;try{var D=Object.defineProperty({},"passive",{get:function(){w=!0}}); g.KI.addEventListener("test",null,D)}catch(M){}return w});OkN.prototype.isVisible=function(){return bo(QU)===1};var Dca=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");var S3a=Ei(function(w){return typeof w==="number"}),mX=Ei(function(w){return typeof w==="string"}),QkK=Ei(function(w){return typeof w==="boolean"}),Bh=Ei(function(w){return w!=null&&typeof w==="object"&&typeof w.then==="function"}),xuk=Ei(function(w){return typeof w==="function"}),HWk=Ei(function(w){return!!w&&(typeof w==="object"||typeof w==="function")});var ZWC={zPk:"allow-forms",oxE:"allow-modals",DmJ:"allow-orientation-lock",nxd:"allow-pointer-lock",ZJd:"allow-popups",PeD:"allow-popups-to-escape-sandbox",WYE:"allow-presentation",KYW:"allow-same-origin",ct_:"allow-scripts",tsD:"allow-top-navigation",Cek:"allow-top-navigation-by-user-activation"},Y3T=cb(function(){return kkJ()});ts.prototype.M8=function(w,D,M){w=w+"//"+D+M;var L=EOK(this)-M.length;if(L<0)return"";this.T.sort(function(E,p){return E-p}); M=null;D="";for(var Z=0;Z=l.length){L-=l.length;w+=l;D=this.L;break}M=M==null?k:M}}L="";M!=null&&(L=""+D+"trn="+M);return w+L};NP.prototype.setInterval=function(w,D){return sg.setInterval(w,D)}; NP.prototype.clearInterval=function(w){sg.clearInterval(w)}; NP.prototype.setTimeout=function(w,D){return sg.setTimeout(w,D)}; NP.prototype.clearTimeout=function(w){sg.clearTimeout(w)};var Eu=void 0,l0,u4K=typeof TextDecoder!=="undefined",xcK,UcG=typeof String.prototype.isWellFormed==="function",IYG=typeof TextEncoder!=="undefined";var RZK={},Ge=null,oOS=JM||g.Eg||typeof g.KI.btoa=="function";var q3r=typeof Uint8Array!=="undefined",aYS=!g.YY&&typeof btoa==="function",vOx=/[-_.]/g,Gkk={"-":"+",_:"/",".":"="},aJ={};si.prototype.isEmpty=function(){return this.T==null}; si.prototype.sizeBytes=function(){var w=cC(this);return w?w.length:0}; var fYK;var r7K=void 0;var ei=typeof Symbol==="function"&&typeof Symbol()==="symbol",jk7=rl("jas",void 0,!0),xm=rl(void 0,"1oa"),a8=rl(void 0,Symbol()),gOS=rl(void 0,"0ub"),h$C=rl(void 0,"0ubs"),hIS=rl(void 0,"0ubsb"),H2R=rl(void 0,"0actk"),FO=rl("m_m","m0D",!0),i2K=rl(void 0,"vps"),RZ7=rl();Math.max.apply(Math,g.tG(Object.values({guJ:1,Ji_:2,YkE:4,Km5:8,xNV:16,LmD:32,fKd:64,hUd:128,CZE:256,Omt:512,Y1k:1024,lB9:2048,ztW:4096})));var XDk={Q1:{value:0,configurable:!0,writable:!0,enumerable:!1}},eZI=Object.defineProperties,XA=ei?jk7:"Q1",LK,oOr=[];uo(oOr,7);LK=Object.freeze(oOr);var G4={},QR={},sgJ=Object.freeze({}),VR={};var As=typeof g.KI.BigInt==="function"&&typeof g.KI.BigInt(0)==="bigint";var XO=Ei(function(w){return As?w>=nOs&&w<=FhZ:w[0]==="-"?J7k(w,GkZ):J7k(w,skl)}),GkZ=Number.MIN_SAFE_INTEGER.toString(),nOs=As?BigInt(Number.MIN_SAFE_INTEGER):void 0,skl=Number.MAX_SAFE_INTEGER.toString(),FhZ=As?BigInt(Number.MAX_SAFE_INTEGER):void 0;var qQj=typeof Uint8Array.prototype.slice==="function",D7=0,M3=0,twl;var Uh=typeof BigInt==="function"?BigInt.asIntN:void 0,YQj=typeof BigInt==="function"?BigInt.asUintN:void 0,jy=Number.isSafeInteger,Wc=Number.isFinite,gP=Math.trunc,Khx=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var dOj={};var aYr={A8k:!0};var rP;var yvC,IjG;var cvK=wP(0),a0={};XC.prototype.init=function(w,D,M,L){var Z=L===void 0?{}:L;L=Z.U5===void 0?!1:Z.U5;Z=Z.OS===void 0?!1:Z.OS;this.U5=L;this.OS=Z;w&&(w=er(w,this.OS),this.V=w.buffer,this.W=w.T,this.D=D||0,this.L=M!==void 0?this.D+M:this.V.length,this.T=this.D)}; XC.prototype.free=function(){this.clear();PW.length<100&&PW.push(this)}; XC.prototype.clear=function(){this.V=null;this.W=!1;this.T=this.L=this.D=0;this.U5=!1}; XC.prototype.reset=function(){this.T=this.D}; var PW=[];Or.prototype.free=function(){this.T.clear();this.V=this.L=-1;KK.length<100&&KK.push(this)}; Or.prototype.reset=function(){this.T.reset();this.D=this.T.T;this.V=this.L=-1}; var KK=[];var Qgk,z$C;ti.prototype.length=function(){return this.T.length}; ti.prototype.end=function(){var w=this.T;this.T=[];return w};var HK=xd(),vOB=xd(),c73=xd(),BCZ=xd(),fY7=xd(),q3Q=xd(),r77=xd(),eZk=xd(),XDZ=xd(),TC3=xd(),uh7=xd();Nn.prototype.toJSON=function(){return u4(this)}; Nn.prototype.Dy=function(w){return JSON.stringify(u4(this,w))}; Nn.prototype.clone=function(){var w=this.B_,D=w[XA]|0;return z4(this,w,D)?VK(this,w,!0):new this.constructor(JV(w,D,!1))}; Nn.prototype[FO]=G4;Nn.prototype.toString=function(){return this.B_.toString()};var L5C=gD(function(w,D,M,L,Z){if(w.V!==2)return!1;Ch(w,NK(D,L,M),Z);return!0},MwK),ZRS=gD(function(w,D,M,L,Z){if(w.V!==2)return!1; Ch(w,NK(D,L,M),Z);return!0},MwK),fh=Symbol(),G5=Symbol(),cK=Symbol(),Eyx=Symbol(),Ygj=Symbol(),RX,oX;var S3Z=Ji(function(w,D,M){if(w.V!==1)return!1;PK(D,M,zl(w.T));return!0},Ou,XDZ),QkD=Ji(function(w,D,M){if(w.V!==1)return!1; w=zl(w.T);PK(D,M,w===0?void 0:w);return!0},Ou,XDZ),J7Z=Ji(function(w,D,M,L){if(w.V!==1)return!1; $m(D,M,L,zl(w.T));return!0},Ou,XDZ),zZ1=Ji(function(w,D,M){if(w.V!==0)return!1; PK(D,M,uY(w.T));return!0},Kh,r77),VcZ=Ji(function(w,D,M){if(w.V!==0)return!1; w=uY(w.T);PK(D,M,w===0?void 0:w);return!0},Kh,r77),P1r=Ji(function(w,D,M,L){if(w.V!==0)return!1; $m(D,M,L,uY(w.T));return!0},Kh,r77),OWk=Ji(function(w,D,M){if(w.V!==0)return!1; PK(D,M,Sr(w.T));return!0},mF,BCZ),KhB=Ji(function(w,D,M){if(w.V!==0)return!1; w=Sr(w.T);PK(D,M,w===0?void 0:w);return!0},mF,BCZ),mc3=Ji(function(w,D,M,L){if(w.V!==0)return!1; $m(D,M,L,Sr(w.T));return!0},mF,BCZ),A7r=Ji(function(w,D,M){if(w.V!==1)return!1; PK(D,M,J9(w.T));return!0},function(w,D,M){Avj(w,M,CLk(D))},eZk),w5r=z5(function(w,D,M){if(w.V!==1&&w.V!==2)return!1; D=Er(D,D[XA]|0,M);if(w.V==2)for(M=Sr(w.T)>>>0,M=w.T.T+M;w.T.T>>0);return!0},function(w,D,M){D=yK(D); D!=null&&D!=null&&(IX(w,M,0),i0(w.T,D))},fY7),bT=Ji(function(w,D,M){if(w.V!==0)return!1; PK(D,M,Sr(w.T));return!0},function(w,D,M){D=$D(D); D!=null&&(D=parseInt(D,10),IX(w,M,0),PLR(w.T,D))},uh7);IKx.prototype.register=function(){r2(this)};g.I(DA,Nn);DA.prototype.L=x1N([0,QkD,VcZ,-2,KhB]);jdS.prototype.vr=function(w){var D=this.T[w.key];if(w.valueType==="proto"){try{var M=JSON.parse(D);if(Array.isArray(M))return M}catch(L){}return w.defaultValue}return typeof D===typeof w.defaultValue?D:w.defaultValue};var RIl={Ifk:1,JG:2,O75:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};nyJ.prototype.d4=function(w){if(typeof w==="string"&&w.length!=0){var D=this.tQ;if(D.V){w=w.split("&");for(var M=w.length-1;M>=0;M--){var L=w[M].split("="),Z=decodeURIComponent(L[0]);L.length>1?(L=decodeURIComponent(L[1]),L=/^[0-9]+$/g.exec(L)?parseInt(L,10):L):L=1;(Z=D.T[Z])&&Z.L(L)}}}};var YU=null;var YQ=g.KI.performance,CLZ=!!(YQ&&YQ.mark&&YQ.measure&&YQ.clearMarks),kQ=cb(function(){var w;if(w=CLZ){var D=D===void 0?window:D;if(YU===null){YU="";try{w="";try{w=D.top.location.hash}catch(L){w=D.location.hash}if(w){var M=w.match(/\bdeid=([\d,]+)/);YU=M?M[1]:""}}catch(L){}}D=YU;w=!!D.indexOf&&D.indexOf("1337")>=0}return w}); bX.prototype.disable=function(){this.T=!1;this.events!==this.V.google_js_reporting_queue&&(kQ()&&g.PQ(this.events,cMa),this.events.length=0)}; bX.prototype.start=function(w,D){if(!this.T)return null;var M=aKN()||sdG();w=new vyl(w,D,M);D="goog_"+w.label+"_"+w.uniqueId+"_start";YQ&&kQ()&&YQ.mark(D);return w}; bX.prototype.end=function(w){if(this.T&&typeof w.value==="number"){var D=aKN()||sdG();w.duration=D-w.value;D="goog_"+w.label+"_"+w.uniqueId+"_end";YQ&&kQ()&&YQ.mark(D);!this.T||this.events.length>2048||this.events.push(w)}};var BEK=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),UR=/#|$/,TEx=/[?&]($|#)/;Sgx.prototype.TY=function(w,D,M,L,Z){Z=Z||this.hT;try{var k=new ts;k.T.push(1);k.V[1]=$C("context",w);D.error&&D.meta&&D.id||(D=new oQ(n3(D)));if(D.msg){var b=D.msg.substring(0,512);k.T.push(2);k.V[2]=$C("msg",b)}var C=D.meta||{};if(this.MU)try{this.MU(C)}catch(t){}if(L)try{L(C)}catch(t){}L=[C];k.T.push(3);k.V[3]=L;var l=LhI();if(l.V){var E=l.V.url||"";k.T.push(4);k.V[4]=$C("top",E)}var p={url:l.T.url||""};if(l.T.url){var W=g.lX(l.T.url);var h=C3(W[1],null,W[3],W[4])}else h="";E=[p,{url:h}];k.T.push(5); k.V[5]=E;F5G(this.T,Z,k,M)}catch(t){try{F5G(this.T,Z,{context:"ecmserr",rctx:w,msg:n3(t),url:l&&l.T.url},M)}catch(d){}}return this.vZ}; g.I(oQ,Gdr);var gh,RQ,jj=new bX;gh=new function(){var w="https:";sg&&sg.location&&sg.location.protocol==="http:"&&(w="http:");this.V=w;this.T=.01}; RQ=new Sgx;sg&&sg.document&&(sg.document.readyState=="complete"?JMx():jj.T&&kC(sg,"load",function(){JMx()}));var P5S=Date.now(),B2=-1,v2=-1,ZKr,f3=-1,c2=!1;qM.prototype.equals=function(w,D){return!!w&&(!(D===void 0?0:D)||this.volume==w.volume)&&this.L==w.L&&ew(this.T,w.T)&&!0};rh.prototype.Dv=function(){return this.G}; rh.prototype.equals=function(w,D){return this.D.equals(w.D,D===void 0?!1:D)&&this.G==w.G&&ew(this.L,w.L)&&ew(this.Y,w.Y)&&this.T==w.T&&this.W==w.W&&this.V==w.V&&this.U==w.U};var lj7={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},JI={K9:"start",Ik:"firstquartile",Te:"midpoint",cP:"thirdquartile",COMPLETE:"complete",ERROR:"error",mH:"metric",PAUSE:"pause",Z$:"resume",PP:"skip",YB:"viewable_impression",HP:"mute",C9:"unmute",NK:"fullscreen",l$:"exitfullscreen",r3:"bufferstart",MK:"bufferfinish",w3:"fully_viewable_audible_half_duration_impression",Um:"measurable_impression",W6:"abandon",hL:"engagedview",Xh:"impression",d3:"creativeview",LOADED:"loaded", kgh:"progress",CLOSE:"close",gkD:"collapse",JVL:"overlay_resize",gL_:"overlay_unmeasurable_impression",FmE:"overlay_unviewable_impression",xT9:"overlay_viewable_immediate_impression",ffk:"overlay_viewable_end_of_session_impression",SU:"custom_metric_viewable",CR:"audio_audible",JL:"audio_measurable",Yn:"audio_impression"},$nK="start firstquartile midpoint thirdquartile resume loaded".split(" "),ihT=["start","firstquartile","midpoint","thirdquartile"],bKr=["abandon"],Wt={UNKNOWN:-1,K9:0,Ik:1,Te:2, cP:3,COMPLETE:4,mH:5,PAUSE:6,Z$:7,PP:8,YB:9,HP:10,C9:11,NK:12,l$:13,w3:14,Um:15,W6:16,hL:17,Xh:18,d3:19,LOADED:20,SU:21,r3:22,MK:23,Yn:27,JL:28,CR:29};var K5N={AYW:"addEventListener",Fwk:"getMaxSize",fBk:"getScreenSize",xkV:"getState",MVE:"getVersion",Wt9:"removeEventListener",FrD:"isViewable"};Z6j.prototype.update=function(w){w&&w.document&&(this.G=ej(!1,w,this.isMobileDevice),this.T=ej(!0,w,this.isMobileDevice),b6r(this,w),keS(this,w))};z1.prototype.cancel=function(){HC().clearTimeout(this.T);this.T=null}; z1.prototype.schedule=function(){var w=this,D=HC(),M=ZA().T.T;this.T=D.setTimeout(MM(M,G1(143,function(){w.V++;w.L.sample()})),ORN())};g.y=VU.prototype;g.y.pU=function(){return!1}; g.y.initialize=function(){return this.isInitialized=!0}; g.y.Hf=function(){return this.T.W_}; g.y.UY=function(){return this.T.y7}; g.y.fail=function(w,D){if(!this.y7||(D===void 0?0:D))this.y7=!0,this.W_=w,this.U=0,this.T!=this||OR(this)}; g.y.getName=function(){return this.T.Md}; g.y.kZ=function(){return this.T.Dm()}; g.y.Dm=function(){return{}}; g.y.bd=function(){return this.T.U}; g.y.Be=function(){var w=Sj();w.T=ej(!0,this.L,w.isMobileDevice)}; g.y.AN=function(){keS(Sj(),this.L)}; g.y.jd=function(){return this.D.T}; g.y.sample=function(){}; g.y.isActive=function(){return this.T.Y}; g.y.tC=function(w){var D=this.T;this.T=w.bd()>=this.U?w:this;D!==this.T?(this.Y=this.T.Y,OR(this)):this.Y!==this.T.Y&&(this.Y=this.T.Y,OR(this))}; g.y.Uo=function(w){if(w.V===this.T){var D=!this.D.equals(w,this.B);this.D=w;D&&lua(this)}}; g.y.Xr=function(){return this.B}; g.y.dispose=function(){this.c_=!0}; g.y.xt=function(){return this.c_};g.y=K3.prototype;g.y.observe=function(){return!0}; g.y.unobserve=function(){}; g.y.Ff=function(w){this.W=w}; g.y.dispose=function(){if(!this.xt()){var w=this.V;g.HQ(w.W,this);w.B&&this.Xr()&&CoG(w);this.unobserve();this.nV=!0}}; g.y.xt=function(){return this.nV}; g.y.kZ=function(){return this.V.kZ()}; g.y.bd=function(){return this.V.bd()}; g.y.Hf=function(){return this.V.Hf()}; g.y.UY=function(){return this.V.UY()}; g.y.tC=function(){}; g.y.Uo=function(){this.YZ()}; g.y.Xr=function(){return this.c_};g.y=ml.prototype;g.y.bd=function(){return this.T.bd()}; g.y.Hf=function(){return this.T.Hf()}; g.y.UY=function(){return this.T.UY()}; g.y.create=function(w,D,M){var L=null;this.T&&(L=this.J7(w,D,M),P2(this.T,L));return L}; g.y.OA=function(){return this.il()}; g.y.il=function(){return!1}; g.y.init=function(w){return this.T.initialize()?(P2(this.T,this),this.D=w,!0):!1}; g.y.tC=function(w){w.bd()==0&&this.D(w.Hf(),this)}; g.y.Uo=function(){}; g.y.Xr=function(){return!1}; g.y.dispose=function(){this.W=!0}; g.y.xt=function(){return this.W}; g.y.kZ=function(){return{}};AA.prototype.add=function(w,D,M){++this.L;w=new pCK(w,D,M);this.T.push(new pCK(w.V,w.T,w.L+this.L/4096));this.V=!0;return this};i6K.prototype.toString=function(){var w="//pagead2.googlesyndication.com//pagead/gen_204",D=Dk(this.T);D.length>0&&(w+="?"+D);return w};g.X.prototype.uA=!1;g.X.prototype.xt=function(){return this.uA}; g.X.prototype.dispose=function(){this.uA||(this.uA=!0,this.oJ())}; g.X.prototype[Symbol.dispose]=function(){this.dispose()}; g.X.prototype.addOnDisposeCallback=function(w,D){this.uA?D!==void 0?w.call(D):w():(this.Io||(this.Io=[]),D&&(w=w.bind(D)),this.Io.push(w))}; g.X.prototype.oJ=function(){if(this.Io)for(;this.Io.length;)this.Io.shift()()};var E11=[0,zZ1,DOZ,-1];Zk.prototype.update=function(w,D,M){w&&(this.T+=D,this.V+=D,this.D+=D,this.L=Math.max(this.L,this.D));if(M===void 0?!w:M)this.D=0};var xPx=[1,.75,.5,.3,0];kn.prototype.update=function(w,D,M,L,Z,k){k=k===void 0?!0:k;D=Z?Math.min(w,D):D;for(Z=0;Z0&&D>=b;b=!(w>0&&w>=b)||M;this.T[Z].update(k&&C,L,!k||b)}};ps.prototype.update=function(w,D,M,L){this.G=this.G!=-1?Math.min(this.G,D.Sv):D.Sv;this.V7=Math.max(this.V7,D.Sv);this.nV=this.nV!=-1?Math.min(this.nV,D.U1):D.U1;this.W_=Math.max(this.W_,D.U1);this.pV.update(D.U1,M.U1,D.T,w,L);this.Jc+=w;D.Sv===0&&(this.Md+=w);this.V.update(D.Sv,M.Sv,D.T,w,L);M=L||M.WM!=D.WM?M.isVisible()&&D.isVisible():M.isVisible();D=!D.isVisible()||D.T;this.XE.update(M,w,D)}; ps.prototype.TE=function(){return this.XE.L>=this.EL};if(QU&&QU.URL){var p5l=QU.URL,Wx7;a:{if(p5l){var h$r=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var CD=h$r.exec(decodeURIComponent(p5l));if(CD){Wx7=CD[1]&&CD[1].length>1?CD[1].substring(1):"true";break a}}catch(w){}}Wx7=""}RQ.vZ=!(Wx7.length>0)};var tqk=new q1(0,0,0,0);var FXx=new q1(0,0,0,0);g.I(ip,g.X);g.y=ip.prototype; g.y.oJ=function(){if(this.Fd.T){if(this.dg.W3){var w=this.Fd.T;typeof w.removeEventListener==="function"&&w.removeEventListener("mouseover",this.dg.W3,Zu());this.dg.W3=null}this.dg.P3&&(w=this.Fd.T,typeof w.removeEventListener==="function"&&w.removeEventListener("mouseout",this.dg.P3,Zu()),this.dg.P3=null)}this.dO&&this.dO.dispose();this.lT&&this.lT.dispose();delete this.Ir;delete this.y9;delete this.NE;delete this.Fd.xU;delete this.Fd.T;delete this.dg;delete this.dO;delete this.lT;delete this.tQ; g.X.prototype.oJ.call(this)}; g.y.Qx=function(){return this.lT?this.lT.T:this.position}; g.y.d4=function(w){ZA().d4(w)}; g.y.Xr=function(){return!1}; g.y.MO=function(){return new ps}; g.y.I4=function(){return this.Ir}; g.y.WL=function(w){return vCC(this,w,1E4)}; g.y.Sk=function(w,D,M,L,Z,k,b){this.Lc||(this.oP&&(w=this.kY(w,M,Z,b),L=L&&this.Jt.Sv>=(this.WM()?.3:.5),this.JI(k,w,L),this.KW=D,w.Sv>0&&-1===this.zF&&(this.zF=D),this.Kn==-1&&this.TE()&&(this.Kn=D),this.AP==-2&&(this.AP=tI(this.Qx())?w.Sv:-1),this.Jt=w),this.y9(this))}; g.y.JI=function(w,D,M){this.I4().update(w,D,this.Jt,M)}; g.y.FT=function(){return new Kk}; g.y.kY=function(w,D,M,L){M=this.FT();M.T=D;D=HC().V;D=bo(QU)===0?-1:D.isVisible()?0:1;M.V=D;M.Sv=this.z6(w);M.WM=this.WM();M.U1=L;return M}; g.y.z6=function(w){return this.opacity===0&&Rk(this.tQ,"opac")===1?0:w}; g.y.WM=function(){return!1}; g.y.Xi=function(){return this.Bj||this.Uu}; g.y.QC=function(){aQ()}; g.y.VD=function(){aQ()}; g.y.UD=function(){return 0}; g.y.TE=function(){return this.Ir.TE()}; g.y.vL=function(){var w=this.oP;w=(this.hasCompleted||this.xt())&&!w;var D=ZA().V!==2||this.z4L;return this.Lc||D&&w?2:this.TE()?4:3}; g.y.PD=function(){return 0};g.yH.prototype.next=function(){return g.lT}; g.lT={done:!0,value:void 0};g.yH.prototype.KS=function(){return this};g.I(qhC,Kk);var EZ=ejJ([void 0,1,2,3,4,8,16]),pD=ejJ([void 0,4,8,16]),$OQ={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Rx("p0",pD),p1:Rx("p1",pD),p2:Rx("p2",pD),p3:Rx("p3",pD),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:g8("mtos1",[0,2,4],!1,pD),mtos2:g8("mtos2",[0,2,4],!1,pD),mtos3:g8("mtos3",[0,2,4],!1,pD),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Rx("a0",pD),a1:Rx("a1",pD),a2:Rx("a2",pD),a3:Rx("a3",pD),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:Rx("c0",pD),c1:Rx("c1",pD),c2:Rx("c2",pD),c3:Rx("c3",pD),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Rx("qmtos",EZ),qnc:Rx("qnc",EZ),qmv:Rx("qmv",EZ),qnv:Rx("qnv",EZ), 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:Rx("ss0",pD),ss1:Rx("ss1",pD),ss2:Rx("ss2",pD),ss3:Rx("ss3",pD),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"},i27=Object.assign({},$OQ,{avid:ad("audio"),avas:"avas",vs:"vs"}),dO1={atos:"atos",avt:g8("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(w,D){return function(M){return M[w]===void 0&&D!==void 0?D:M[w]}}("ss",0), t:"t"};GF.prototype.getValue=function(){return this.V}; GF.prototype.update=function(w,D){w>=32||(this.T&1<=.5;T1(D.volume)&&(this.D=this.D!=-1?Math.min(this.D,D.volume):D.volume,this.Y=Math.max(this.Y,D.volume));k&&(this.c_+=w,this.B+=Z?w:0);this.T.update(D.Sv,M.Sv,D.T,w,L,Z);this.L.update(!0,w);this.W.update(Z,w);this.y7.update(M.fullscreen,w);this.iW.update(Z&&!k,w);w=Math.floor(D.mediaTime/1E3);this.fV.update(w,D.isVisible());this.Nd.update(w,D.Sv>=1);this.bW.update(w, j9(D))}};JVJ.prototype.V=function(w){this.L||(this.T(w)?(w=LFk(this.B,this.D,w),this.W|=w,w=w==0):w=!1,this.L=w)};g.I(ve,JVJ);ve.prototype.T=function(){return!0}; ve.prototype.Y=function(){return!1}; ve.prototype.getId=function(){var w=this,D=pW(JI,function(M){return M==w.D}); return Wt[D].toString()}; ve.prototype.toString=function(){var w="";this.Y()&&(w+="c");this.L&&(w+="s");this.W>0&&(w+=":"+this.W);return this.getId()+w};g.I(ce,ve);ce.prototype.V=function(w,D){D=D===void 0?null:D;D!=null&&this.G.push(D);ve.prototype.V.call(this,w)};g.I(Be,zja);Be.prototype.V=function(){return null}; Be.prototype.L=function(){return[]};g.I(q9,K3);g.y=q9.prototype;g.y.Ej=function(){if(this.element){var w=this.element,D=this.V.T.L;try{try{var M=DPa(w.getBoundingClientRect())}catch(E){M=new q1(0,0,0,0)}var L=M.right-M.left,Z=M.bottom-M.top,k=JxK(w,D),b=k.x,C=k.y;var l=new q1(Math.round(C),Math.round(b+L),Math.round(C+Z),Math.round(b))}catch(E){l=tqk.clone()}this.L=l;this.T=ECS(this,this.L)}}; g.y.jh=function(){this.Y=this.V.D.T}; g.y.f5=function(w){var D=Rk(this.tQ,"od")==1;return nCJ(w,this.Y,this.element,D)}; g.y.dX=function(){this.timestamp=aQ()}; g.y.YZ=function(){this.dX();this.Ej();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var w=this.element;var D=new g.Jv(w.videoWidth,w.videoHeight);w=this.T;var M=rE(w),L=w.getHeight(),Z=D.width;D=D.height;Z<=0||D<=0||M<=0||L<=0||(Z/=D,D=M/L,w=w.clone(),Z>D?(M/=Z,L=(L-M)/2,L>0&&(L=w.top+L,w.top=Math.round(L),w.bottom=Math.round(L+M))):(L*=Z,M=Math.round((M-L)/2),M>0&&(M=w.left+M,w.left=Math.round(M),w.right=Math.round(M+L))));this.T=w}this.jh(); w=this.T;M=this.Y;w=w.left<=M.right&&M.left<=w.right&&w.top<=M.bottom&&M.top<=w.bottom?new q1(Math.max(w.top,M.top),Math.min(w.right,M.right),Math.min(w.bottom,M.bottom),Math.max(w.left,M.left)):new q1(0,0,0,0);M=w.top>=w.bottom||w.left>=w.right?new q1(0,0,0,0):w;w=this.V.D;D=Z=L=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.f5(M))M=new q1(0,0,0,0);else{L=Sj().D;D=new q1(0,L.height,L.width,0);var k;L=$n(M,(k=this.W)!=null?k:this.T);Z=$n(M,Sj().T);D=$n(M,D)}k=M.top>=M.bottom|| M.left>=M.right?new q1(0,0,0,0):Xc(M,-this.T.left,-this.T.top);JA()||(Z=L=0);this.B=new rh(w,this.element,this.T,k,L,Z,this.timestamp,D)}; g.y.getName=function(){return this.V.getName()};var yvr=new q1(0,0,0,0);g.I(r8,q9);g.y=r8.prototype;g.y.observe=function(){this.D();return!0}; g.y.Uo=function(){q9.prototype.YZ.call(this)}; g.y.dX=function(){}; g.y.Ej=function(){}; g.y.YZ=function(){this.D();q9.prototype.YZ.call(this)}; g.y.tC=function(w){w=w.isActive();w!==this.U&&(w?this.D():(Sj().T=new q1(0,0,0,0),this.T=new q1(0,0,0,0),this.Y=new q1(0,0,0,0),this.timestamp=-1));this.U=w};var W3={},Lvl=(W3.firstquartile=0,W3.midpoint=1,W3.thirdquartile=2,W3.complete=3,W3);g.I(Xi,ip);g.y=Xi.prototype;g.y.Xr=function(){return!0}; g.y.U3=function(){return this.k8==2}; g.y.WL=function(w){return vCC(this,w,Math.max(1E4,this.L/3))}; g.y.Sk=function(w,D,M,L,Z,k,b){var C=this,l=this.G(this)||{};g.dC(l,Z);this.L=l.duration||this.L;this.B=l.isVpaid||this.B;this.Md=l.isYouTube||this.Md;HC();this.pV=!1;Z=P4l(this,D);VyN(this)===1&&(k=Z);ip.prototype.Sk.call(this,w,D,M,L,l,k,b);this.Ve&&this.Ve.L&&g.PQ(this.Y,function(E){E.V(C)})}; g.y.JI=function(w,D,M){ip.prototype.JI.call(this,w,D,M);S9(this).update(w,D,this.Jt,M);this.EL=j9(this.Jt)&&j9(D);this.W_==-1&&this.Nd&&(this.W_=this.I4().L.T);this.OH.L=0;w=this.TE();D.isVisible()&&Fi(this.OH,"vs");w&&Fi(this.OH,"vw");T1(D.volume)&&Fi(this.OH,"am");j9(D)?Fi(this.OH,"a"):Fi(this.OH,"mut");this.jM&&Fi(this.OH,"f");D.V!=-1&&(Fi(this.OH,"bm"),D.V==1&&(Fi(this.OH,"b"),j9(D)&&Fi(this.OH,"umutb")));j9(D)&&D.isVisible()&&Fi(this.OH,"avs");this.EL&&w&&Fi(this.OH,"avw");D.Sv>0&&Fi(this.OH, "pv");QH(this,this.I4().L.T,!0)&&Fi(this.OH,"gdr");lp(this.I4().V,1)>=2E3&&Fi(this.OH,"pmx");this.pV&&Fi(this.OH,"tvoff")}; g.y.MO=function(){return new sB}; g.y.I4=function(){return this.Ir}; g.y.FT=function(){return new qhC}; g.y.kY=function(w,D,M,L){w=ip.prototype.kY.call(this,w,D,M,L===void 0?-1:L);w.fullscreen=this.jM;w.paused=this.U3();w.volume=M.volume;T1(w.volume)||(this.mu++,D=this.Jt,T1(D.volume)&&(w.volume=D.volume));M=M.currentTime;w.mediaTime=M!==void 0&&M>=0?M:-1;return w}; g.y.z6=function(w){return Sj(),this.jM?1:ip.prototype.z6.call(this,w)}; g.y.UD=function(){return 1}; g.y.getDuration=function(){return this.L}; g.y.vL=function(){return this.Lc?2:KMJ(this)?5:this.TE()?4:3}; g.y.PD=function(){return this.iW?this.I4().W.L>=2E3?4:3:2}; g.y.Ff=function(w){this.lT&&this.lT.Ff(w)};var Ijx=g.pk();trT.prototype.reset=function(){this.T=[];this.V=[]}; var Ks=xC(trT);g.I(w1,ml);g.y=w1.prototype;g.y.getName=function(){return(this.V?this.V:this.T).getName()}; g.y.kZ=function(){return(this.V?this.V:this.T).kZ()}; g.y.bd=function(){return(this.V?this.V:this.T).bd()}; g.y.init=function(w){var D=!1;(0,g.PQ)(this.L,function(M){M.initialize()&&(D=!0)}); D&&(this.D=w,P2(this.T,this));return D}; g.y.dispose=function(){(0,g.PQ)(this.L,function(w){w.dispose()}); ml.prototype.dispose.call(this)}; g.y.OA=function(){return uX(this.L,function(w){return w.pU()})}; g.y.il=function(){return uX(this.L,function(w){return w.pU()})}; g.y.J7=function(w,D,M){return new q9(w,this.T,D,M)}; g.y.Uo=function(w){this.V=w.V};var HKG={threshold:[0,.3,.5,.75,1]};g.I(DU,q9);g.y=DU.prototype;g.y.observe=function(){var w=this;this.V7||(this.V7=aQ());if(Vwl(298,function(){return j0S(w)}))return!0; this.V.fail("msf");return!1}; g.y.unobserve=function(){if(this.D&&this.element)try{this.D.unobserve(this.element),this.U?(this.U.unobserve(this.element),this.U=null):this.G&&(this.G.disconnect(),this.G=null)}catch(w){}}; g.y.YZ=function(){var w=Mp(this);w.length>0&&LJ(this,w);q9.prototype.YZ.call(this)}; g.y.Ej=function(){}; g.y.f5=function(){return!1}; g.y.jh=function(){}; g.y.kZ=function(){var w={};return Object.assign(this.V.kZ(),(w.niot_obs=this.V7,w.niot_cbk=this.y7,w))}; g.y.getName=function(){return"nio"};g.I(ZU,ml);ZU.prototype.getName=function(){return"nio"}; ZU.prototype.il=function(){return!Sj().V&&this.T.T.L.IntersectionObserver!=null}; ZU.prototype.J7=function(w,D,M){return new DU(w,this.T,D,M)};g.I(kI,VU);kI.prototype.jd=function(){return Sj().T}; kI.prototype.pU=function(){var w=Rhl();this.U!==w&&(this.T!=this&&w>this.T.U&&(this.T=this,OR(this)),this.U=w);return w==2};bW.prototype.sample=function(){lW(this,mS(),!1)}; bW.prototype.D=function(){var w=JA(),D=aQ();w?(c2||(B2=D,g.PQ(Ks.T,function(M){var L=M.I4();L.jk=ax(L,D,M.k8!=1)})),c2=!0):(this.G=s0R(this,D),c2=!1,ZKr=D,g.PQ(Ks.T,function(M){M.oP&&(M.I4().U=D)})); lW(this,mS(),!w)}; var YI=xC(bW);var vmG=null,aP="",sL=!1;var f2j=BBI().Xt,pJ=BBI().by;var ehk={KwL:"visible",bJ7:"audible",Teh:"time",y39:"timetype"},XWj={visible:function(w){return/^(100|[0-9]{1,2})$/.test(w)}, audible:function(w){return w=="0"||w=="1"}, timetype:function(w){return w=="mtos"||w=="tos"}, time:function(w){return/^(100|[0-9]{1,2})%$/.test(w)||/^([0-9])+ms$/.test(w)}}; r9C.prototype.setTime=function(w,D,M){D=="ms"?(this.L=w,this.D=-1):(this.L=-1,this.D=w);this.W=M===void 0?"tos":M;return this};g.I($I,ve);$I.prototype.getId=function(){return this.G}; $I.prototype.Y=function(){return!0}; $I.prototype.T=function(w){var D=w.I4(),M=w.getDuration();return uX(this.U,function(L){if(L.T!=void 0)var Z=uCC(L,D);else b:{switch(L.W){case "mtos":Z=L.V?D.W.L:D.L.T;break b;case "tos":Z=L.V?D.W.T:D.L.T;break b}Z=0}Z==0?L=!1:(L=L.L!=-1?L.L:M!==void 0&&M>0?L.D*M:-1,L=L!=-1&&Z>=L);return L})};g.I(iW,TPN);iW.prototype.T=function(w){var D=new Xcl;D.T=ns(w,$OQ);D.V=ns(w,dO1);return D};g.I(d1,ve);d1.prototype.T=function(w){return KMJ(w)};g.I(yN,zja);g.I(IP,ve);IP.prototype.T=function(w){return w.I4().TE()};g.I(UL,ce);UL.prototype.T=function(w){var D=g.xB(this.G,Rk(ZA().tQ,"ovms"));return!w.Lc&&(w.k8!=0||D)};g.I(xI,yN);xI.prototype.V=function(){return new UL(this.T)}; xI.prototype.L=function(){return[new IP("viewable_impression",this.T),new d1(this.T)]};g.I(Np,r8);Np.prototype.D=function(){var w=g.w3("ima.admob.getViewability"),D=Rk(this.tQ,"queryid");typeof w==="function"&&D&&w(D)}; Np.prototype.getName=function(){return"gsv"};g.I(Ht,ml);Ht.prototype.getName=function(){return"gsv"}; Ht.prototype.il=function(){var w=Sj();ZA();return w.V&&!1}; Ht.prototype.J7=function(w,D,M){return new Np(this.T,D,M)};g.I(jk,r8);jk.prototype.D=function(){var w=this,D=g.w3("ima.bridge.getNativeViewability"),M=Rk(this.tQ,"queryid");typeof D==="function"&&M&&D(M,function(L){g.WD(L)&&w.G++;var Z=L.opt_nativeViewVisibleBounds||{},k=L.opt_nativeViewHidden;w.T=Mik(L.opt_nativeViewBounds||{});var b=w.V.D;b.T=k?yvr.clone():Mik(Z);w.timestamp=L.opt_nativeTime||-1;Sj().T=b.T;L=L.opt_nativeVolume;L!==void 0&&(b.volume=L)})}; jk.prototype.getName=function(){return"nis"};g.I(g1,ml);g1.prototype.getName=function(){return"nis"}; g1.prototype.il=function(){var w=Sj();ZA();return w.V&&!1}; g1.prototype.J7=function(w,D,M){return new jk(this.T,D,M)};g.I(RP,VU);g.y=RP.prototype;g.y.pU=function(){return this.V.Ht!=null}; g.y.Dm=function(){var w={};this.fV&&(w.mraid=this.fV);this.nV&&(w.mlc=1);w.mtop=this.V.SHd;this.G&&(w.mse=this.G);this.Jc&&(w.msc=1);w.mcp=this.V.compatibility;return w}; g.y.TP=function(w){var D=g.rR.apply(1,arguments);try{return this.V.Ht[w].apply(this.V.Ht,D)}catch(M){sR(538,M,.01,function(L){L.method=w})}}; g.y.initialize=function(){var w=this;if(this.isInitialized)return!this.UY();this.isInitialized=!0;if(this.V.compatibility===2)return this.G="ng",this.fail("w"),!1;if(this.V.compatibility===1)return this.G="mm",this.fail("w"),!1;Sj().U=!0;this.L.document.readyState&&this.L.document.readyState=="complete"?zhG(this):hI(this.L,"load",function(){HC().setTimeout(G1(292,function(){return zhG(w)}),100)},292); return!0}; g.y.Be=function(){var w=Sj(),D=mKl(this,"getMaxSize");w.T=new q1(0,D.width,D.height,0)}; g.y.AN=function(){Sj().D=mKl(this,"getScreenSize")}; g.y.dispose=function(){PYN(this);VU.prototype.dispose.call(this)};var UOx=new function(w,D){this.key=w;this.defaultValue=D===void 0?!1:D;this.valueType="boolean"}("45378663");g.y=nJ.prototype;g.y.kC=function(w){d8(w,!1);y9I(w)}; g.y.Ig=function(){}; g.y.RE=function(w,D,M,L){var Z=this;w=new Xi(sg,w,M?D:-1,7,this.CF(),this.Ls());w.Wy=L;qJx(w.tQ);gC(w.tQ,"queryid",w.Wy);w.d4("");cVR(w,function(){return Z.XL.apply(Z,g.tG(g.rR.apply(0,arguments)))},function(){return Z.JX.apply(Z,g.tG(g.rR.apply(0,arguments)))}); (L=xC(AI).T)&&auN(w,L);this.L&&(w.Ff(this.L),this.L=null);w.Fd.xU&&xC(oml);return w}; g.y.tC=function(w){switch(w.bd()){case 0:if(w=xC(AI).T)w=w.T,g.HQ(w.W,this),w.B&&this.Xr()&&CoG(w);GX();break;case 2:CJ()}}; g.y.Uo=function(){}; g.y.Xr=function(){return!1}; g.y.JX=function(w,D){w.Lc=!0;switch(w.UD()){case 1:ZhI(w,D);break;case 2:this.bM(w)}}; g.y.dY=function(w){var D=w.G(w);D&&(D=D.volume,w.iW=T1(D)&&D>0);wWj(w,0);return zF(w,"start",JA())}; g.y.WR=function(w,D,M){lW(YI,[w],!JA());return this.mf(w,D,M)}; g.y.mf=function(w,D,M){return zF(w,M,JA())}; g.y.x0=function(w){return Xe(w,"firstquartile",1)}; g.y.rY=function(w){w.Nd=!0;return Xe(w,"midpoint",2)}; g.y.Sf=function(w){return Xe(w,"thirdquartile",3)}; g.y.gY=function(w){var D=Xe(w,"complete",4);TF(w);return D}; g.y.FI=function(w){w.k8=3;return zF(w,"error",JA())}; g.y.Lj=function(w,D,M){D=JA();if(w.U3()&&!D){var L=w.I4(),Z=aQ();L.U=Z}lW(YI,[w],!D);w.U3()&&(w.k8=1);return zF(w,M,D)}; g.y.jf=function(w,D){D=this.WR(w,D||{},"skip");TF(w);return D}; g.y.M9=function(w,D){d8(w,!0);return this.WR(w,D||{},"fullscreen")}; g.y.f$=function(w,D){d8(w,!1);return this.WR(w,D||{},"exitfullscreen")}; g.y.Yr=function(w,D,M){D=w.I4();var L=aQ();D.jk=ax(D,L,w.k8!=1);lW(YI,[w],!JA());w.k8==1&&(w.k8=2);return zF(w,M,JA())}; g.y.Gc=function(w){lW(YI,[w],!JA());return w.V()}; g.y.UO=function(w){lW(YI,[w],!JA());this.B4(w);TF(w);return w.V()}; g.y.XL=function(){}; g.y.bM=function(){}; g.y.B4=function(){}; g.y.UA=function(){}; g.y.Yv=function(){}; g.y.Ls=function(){this.T||(this.T=this.Yv());return this.T==null?new Be:new xI(this.T)}; g.y.CF=function(){return new iW};g.I(TX,ve);TX.prototype.T=function(w){return w.PD()==4};g.I(uW,ce);uW.prototype.T=function(w){w=w.PD();return w==3||w==4};g.I(Sk,yN);Sk.prototype.V=function(){return new uW(this.T)}; Sk.prototype.L=function(){return[new TX(this.T)]};g.I(QN,TPN);QN.prototype.T=function(w){w&&(w.e===28&&(w=Object.assign({},w,{avas:3})),w.vs===4||w.vs===5)&&(w=Object.assign({},w,{vs:3}));var D=new Xcl;D.T=ns(w,i27);D.V=ns(w,dO1);return D};C0S.prototype.V=function(){return g.w3(this.T)};g.I(Jk,nJ);g.y=Jk.prototype;g.y.Ig=function(w,D){var M=this,L=xC(AI);if(L.T!=null)switch(L.T.getName()){case "nis":var Z=WFC(this,w,D);break;case "gsv":Z=pKR(this,w,D);break;case "exc":Z=hzj(this,w)}Z||(D.opt_overlayAdElement?Z=void 0:D.opt_adElement&&(Z=bha(this,w,D.opt_adElement,D.opt_osdId)));Z&&Z.UD()==1&&(Z.G==g.vb&&(Z.G=function(k){return M.UA(k)}),EdG(this,Z,D)); return Z}; g.y.UA=function(w){w.V=0;w.c_=0;if(w.D=="h"||w.D=="n"){ZA();w.bW&&(ZA(),ct(this)!="h"&&ct(this));var D=g.w3("ima.common.getVideoMetadata");if(typeof D==="function")try{var M=D(w.Wy)}catch(Z){w.V|=4}else w.V|=2}else if(w.D=="b")if(D=g.w3("ytads.bulleit.getVideoMetadata"),typeof D==="function")try{M=D(w.Wy)}catch(Z){w.V|=4}else w.V|=2;else if(w.D=="ml")if(D=g.w3("ima.common.getVideoMetadata"),typeof D==="function")try{M=D(w.Wy)}catch(Z){w.V|=4}else w.V|=2;else w.V|=1;w.V||(M===void 0?w.V|=8:M===null? w.V|=16:g.WD(M)?w.V|=32:M.errorCode!=null&&(w.c_=M.errorCode,w.V|=64));M==null&&(M={});D=M;w.U=0;for(var L in lj7)D[L]==null&&(w.U|=lj7[L]);YuK(D,"currentTime");YuK(D,"duration");T1(M.volume)&&T1()&&(M.volume*=NaN);return M}; g.y.Yv=function(){ZA();ct(this)!="h"&&ct(this);var w=t5k(this);return w!=null?new C0S(w):null}; g.y.bM=function(w){!w.T&&w.Lc&&Bt(this,w,"overlay_unmeasurable_impression")&&(w.T=!0)}; g.y.B4=function(w){w.vu&&(w.TE()?Bt(this,w,"overlay_viewable_end_of_session_impression"):Bt(this,w,"overlay_unviewable_impression"),w.vu=!1)}; g.y.XL=function(){}; g.y.RE=function(w,D,M,L){if(ZA().flags.vr(UOx)){var Z=Rk(ZA().tQ,"mm"),k={};(Z=(k[L3.tL]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",k[L3.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",k)[Z])&&yiI(this,Z);this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&sR(1044,Error())}w=nJ.prototype.RE.call(this,w,D,M,L);this.W&&(D=this.Y,w.W==null&&(w.W=new BPC),D.T[w.Wy]=w.W,w.W.W=Ijx);return w}; g.y.kC=function(w){w&&w.UD()==1&&this.W&&delete this.Y.T[w.Wy];return nJ.prototype.kC.call(this,w)}; g.y.Ls=function(){this.T||(this.T=this.Yv());return this.T==null?new Be:this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Sk(this.T):new xI(this.T)}; g.y.CF=function(){return this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new QN:new iW}; g.y.Ff=function(w,D,M,L,Z){D=new q1(M,D+L,M+Z,D);(w=OB(Ks,w))?w.Ff(D):this.L=D}; var xOx=Fk(193,UnK,void 0,k5r);g.mC("Goog_AdSense_Lidar_sendVastEvent",xOx);var N2r=G1(194,function(w,D){D=D===void 0?{}:D;w=dnC(xC(Jk),w,D);return IoK(w)}); g.mC("Goog_AdSense_Lidar_getViewability",N2r);var H23=Fk(195,function(){return iWC()}); g.mC("Goog_AdSense_Lidar_getUrlSignalsArray",H23);var jg7=G1(196,function(){return JSON.stringify(iWC())}); g.mC("Goog_AdSense_Lidar_getUrlSignalsList",jg7);var HhJ=g.$x(["//ep2.adtrafficquality.google/sodar/",""]),jXT=g.$x(["//tpc.googlesyndication.com/sodar/",""]);g.I(Pt,Error);g.I(m_,g.X);m_.prototype.pF=function(){return this.wpc.f()}; m_.prototype.cG=function(w){this.wpc.c(w)}; m_.prototype.di=function(w){return this.wpc.m(ndl(w))}; m_.prototype.uL=function(w){return this.wpc.mws(ndl(w))}; g.I(OL,g.X);OL.prototype.snapshot=function(w){return this.md.s(Object.assign({},w.k7&&{c:w.k7},w.SO&&{s:w.SO},w.IX!==void 0&&{p:w.IX}))}; OL.prototype.S6=function(w){this.md.e(w)}; OL.prototype.IU=function(){return this.md.l()};g.I(wI,g.X);wI.prototype.share=function(){if(this.xt())throw Error("E:AD");this.V++;return this}; wI.prototype.dispose=function(){--this.V||g.X.prototype.dispose.call(this)};ciN.prototype.iz=function(w,D){this.T.iz("/client_streamz/bg/frs",w,D)}; BDj.prototype.iz=function(w,D,M,L,Z,k){this.T.iz("/client_streamz/bg/wrl",w,D,M,L,Z,k)}; foG.prototype.qr=function(w,D){this.T.nS("/client_streamz/bg/ec",w,D)}; quj.prototype.iz=function(w,D,M){this.T.iz("/client_streamz/bg/el",w,D,M)}; riK.prototype.qr=function(w,D){this.T.nS("/client_streamz/bg/cec",w,D)}; ezJ.prototype.qr=function(w,D){this.T.nS("/client_streamz/bg/po/csc",w,D)}; XKx.prototype.qr=function(w,D){this.T.nS("/client_streamz/bg/po/ctav",w,D)}; TDa.prototype.qr=function(w,D){this.T.nS("/client_streamz/bg/po/cwsc",w,D)};g.I(uyk,Nn);g.I(La,Nn);var EM=[1,2,3];var g1Z=[0,EM,k73,mc3,LxZ];var R$S=[0,Mf,[0,S3Z,zZ1]];g.I(Zz,Nn);var lJ=[1,2,3];var o11=[0,lJ,P1r,J7Z,Z4,R$S];g.I(kR,Nn);var n1Q=[0,Mf,g1Z,o11];var FxZ=[0,D4];g.I(bJ,Nn);var G7P=[0,D4,-1,Mqs];var sgl=[0,D4,-1,OWk,Mqs];g.I(YR,Nn);var hPj=[1,2,3];var ajs=[0,hPj,Z4,G7P,Z4,sgl,Z4,FxZ];g.I(Ca,Nn);Ca.prototype.SE=function(){var w=bY(this,3,o8,3,!0);ze(w);return w[void 0]};Ca.prototype.L=x1N([0,D4,ajs,Z2l,Mf,n1Q,A7r,w5r]);g.I(QXC,Nn);g.y=pa.prototype;g.y.isEnabled=function(){if(!g.KI.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{bL:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.y.set=function(w,D,M){var L=!1;if(typeof M==="object"){var Z=M.Hyk;L=M.secure||!1;var k=M.domain||void 0;var b=M.path||void 0;var C=M.bL}if(/[;=\s]/.test(w))throw Error('Invalid cookie name "'+w+'"');if(/[;\r\n]/.test(D))throw Error('Invalid cookie value "'+D+'"');C===void 0&&(C=-1);M=k?";domain="+k:"";b=b?";path="+b:"";L=L?";secure":"";C=C<0?"":C==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+C*1E3)).toUTCString();this.T.cookie=w+"="+D+M+b+C+L+(Z!=null?";samesite="+ Z:"")}; g.y.get=function(w,D){for(var M=w+"=",L=(this.T.cookie||"").split(";"),Z=0,k;Z=0;D--)this.remove(w[D])}; var o_=new pa(typeof document=="undefined"?null:document);hT.prototype.compress=function(w){var D,M,L,Z;return g.B(function(k){switch(k.T){case 1:return D=new CompressionStream("gzip"),M=(new Response(D.readable)).arrayBuffer(),L=D.writable.getWriter(),g.c(k,L.write((new TextEncoder).encode(w)),2);case 2:return g.c(k,L.close(),3);case 3:return Z=Uint8Array,g.c(k,M,4);case 4:return k.return(new Z(k.V))}})}; hT.prototype.isSupported=function(w){return w<1024?!1:typeof CompressionStream!=="undefined"};g.I(tT,Nn);$R.prototype.setInterval=function(w){this.intervalMs=w;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; $R.prototype.start=function(){var w=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){w.tick()},this.intervalMs),this.V=this.T())}; $R.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; $R.prototype.tick=function(){var w=this;if(this.enabled){var D=Math.max(this.T()-this.V,0);D0?M:void 0));M=D2(M,4,tV(Z>0?Z:void 0));M=D2(M,5,tV(k>0?k:void 0));Z=M.B_;k=Z[XA]|0;M=Js(M,k)?M:z4(M,Z,k)?VK(M,Z):new M.constructor(JV(Z,k,!0));gB(b,yO,10,M)}b=this.T.clone();M=Date.now().toString();b=D2(b,4,Hc(M));w=R0(b,Rq,3,w.slice());L&&(b=new iJ,L=D2(b,13,tV(L)),b=new dI, L=gB(b,iJ,2,L),b=new gI,L=gB(b,dI,1,L),L=qK(L,2,9),gB(w,gI,18,L));D&&cW(w,14,D);return w};g.sM.prototype.V=0;g.sM.prototype.reset=function(){this.T=this.L=this.D;this.V=0}; g.sM.prototype.getValue=function(){return this.L};g.I(Ai,Nn);var v1r=wh(Ai);g.I(yMC,Nn);var h1;h1=new IKx;g.I(BZ,g.X);g.y=BZ.prototype;g.y.oJ=function(){cZ(this);this.V.stop();this.fV.stop();g.X.prototype.oJ.call(this)}; g.y.dispatch=function(w){if(w instanceof Rq)this.log(w);else try{var D=new Rq,M=w.Dy();var L=BW(D,8,M);this.log(L)}catch(Z){fa(this,4,1)}}; g.y.log=function(w){fa(this,2,1);if(this.Jc){w=w.clone();var D=this.XE++;w=cW(w,21,D);this.componentId&&BW(w,26,this.componentId);D=w;var M=AV(D,1);var L=L===void 0?!1:L;var Z=typeof M;L=M==null?M:Z==="bigint"?String(Uh(64,M)):hV(M)?Z==="string"?I8(M):L?xD(M):N3(M):void 0;L==null&&(L=Date.now(),L=Number.isFinite(L)?L.toString():"0",D2(D,1,Hc(L)));L=AV(D,15);L!=null&&(typeof L==="bigint"?XO(L)?L=Number(L):(L=Uh(64,L),L=XO(L)?Number(L):String(L)):L=hV(L)?typeof L==="number"?N3(L):I8(L):void 0);L!=null|| cW(D,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(L=this.experimentIds.clone(),gB(D,tT,16,L));fa(this,1,1);D=this.T.length-1E3+1;D>0&&(this.T.splice(0,D),this.D+=D,fa(this,3,D));this.T.push(w);this.yQ||this.V.enabled||this.V.start()}}; g.y.flush=function(w,D){var M=this;if(this.T.length===0)w&&w();else if(this.W_&&this.y7)this.L.V=3,$MK(this);else{var L=Date.now();if(this.jk>L&&this.c_0&&(M.c_=Date.now(),M.jk=M.c_+h);h=WQ(a8);var N;ei&&h&&((N=t.B_[h])==null?void 0:N[175237375])!=null&&qP(gOS,3);a:{var n=n===void 0?!1:n;if(WQ(RZ7)&&WQ(a8)&&void 0===RZ7){N=t.B_;h=N[a8];if(!h)break a;if(h=h.OX)try{h(N,175237375,aYr);break a}catch(v){gl(v)}}n&&(n=t.B_, (N=WQ(a8))&&N in n&&(n=n[N])&&delete n[175237375])}n=h1.T?h1.V(t,h1.T,175237375,h1.L):h1.V(t,175237375,null,h1.L);if(n=n===null?void 0:n)n=nK(n,1,-1),n!==-1&&(M.W=new g.sM(n<1?1:n,3E5,.1),M.V.setInterval(M.W.getValue()))}}w&&w();M.Y=0},p=function(h,t){var d=jr(k,Rq,3); var N=Number(B2j(k,14));g.aq(M.W);M.V.setInterval(M.W.getValue());h===401&&b&&(M.Md=b);N&&(M.D+=N);t===void 0&&(t=M.isRetryable(h));t&&(M.T=d.concat(M.T),M.yQ||M.V.enabled||M.V.start());fa(M,7,1);D&&D("net-send-failed",h);++M.Y},W=function(){M.network&&M.network.send(l,E,p)}; C?C.then(function(h){fa(M,5,Z);l.requestHeaders["Content-Encoding"]="gzip";l.requestHeaders["Content-Type"]="application/binary";l.body=h;l.u_=2;W()},function(){fa(M,6,Z); W()}):W()}}}}; g.y.isRetryable=function(w){return 500<=w&&w<600||w===401||w===0};qj.prototype.send=function(w,D,M){var L=this,Z,k,b,C,l,E,p,W,h,t;return g.B(function(d){switch(d.T){case 1:return k=(Z=L.gP?new AbortController:void 0)?setTimeout(function(){Z.abort()},w.timeoutMillis):void 0,g.jN(d,2,3),b=Object.assign({},{method:w.requestType, headers:Object.assign({},w.requestHeaders)},w.body&&{body:w.body},w.withCredentials&&{credentials:"include"},{signal:w.timeoutMillis&&Z?Z.signal:null}),g.c(d,fetch(w.url,b),5);case 5:C=d.V;if(C.status!==200){(l=M)==null||l(C.status);d.KV(3);break}if((E=D)==null){d.KV(7);break}return g.c(d,C.text(),8);case 8:E(d.V);case 7:case 3:g.vr(d);clearTimeout(k);g.cr(d,0);break;case 2:p=g.FK(d);switch((W=p)==null?void 0:W.name){case "AbortError":(h=M)==null||h(408);break;default:(t=M)==null||t(400)}d.KV(3)}})}; qj.prototype.l7=function(){return 4};g.I(rI,g.X);rI.prototype.SA=function(){this.W=!0;return this}; rI.prototype.build=function(){this.network||(this.network=new qj);var w=new BZ({logSource:this.logSource,A4:this.A4?this.A4:Mjr,sessionIndex:this.sessionIndex,MwE:this.rN,OR:this.D,yQ:!1,SA:this.W,f2:this.f2,network:this.network});g.T(this,w);if(this.V){var D=this.V,M=Gq(w.L);BW(M,7,D)}w.G=new hT;this.componentId&&(w.componentId=this.componentId);this.nk&&(w.nk=this.nk);this.pageId&&(w.pageId=this.pageId);this.T&&((M=this.T)?(w.experimentIds||(w.experimentIds=new tT),D=w.experimentIds,M=M.Dy(),BW(D, 4,M)):w.experimentIds&&D2(w.experimentIds,4));this.L&&(w.W_=w.y7);EQl(w.L);this.network.tq&&this.network.tq(this.logSource);this.network.x59&&this.network.x59(w);return w};g.I(eO,g.X);eO.prototype.flush=function(w){w=w||[];if(w.length){for(var D=new QXC,M=[],L=0;L-1?(D=w[b],M||(D.aY=!1)):(D=new H3T(D,this.src,k,!!L,Z),D.aY=M,w.push(D));return D}; g.y.remove=function(w,D,M,L){w=w.toString();if(!(w in this.listeners))return!1;var Z=this.listeners[w];D=OM(Z,D,M,L);return D>-1?(zq(Z[D]),g.NZ(Z,D),Z.length==0&&(delete this.listeners[w],this.T--),!0):!1}; g.y.removeAll=function(w){w=w&&w.toString();var D=0,M;for(M in this.listeners)if(!w||M==w){for(var L=this.listeners[M],Z=0;Z-1?w[Z]:null}; g.y.hasListener=function(w,D){var M=w!==void 0,L=M?w.toString():"",Z=D!==void 0;return g.DY(this.listeners,function(k){for(var b=0;b>>0);g.hx(g.Ej,g.X);g.Ej.prototype[xMN]=!0;g.y=g.Ej.prototype;g.y.addEventListener=function(w,D,M,L){g.mK(this,w,D,M,L)}; g.y.removeEventListener=function(w,D,M,L){G1C(this,w,D,M,L)}; g.y.dispatchEvent=function(w){var D=this.tj;if(D){var M=[];for(var L=1;D;D=D.tj)M.push(D),++L}D=this.xB;L=w.type||w;if(typeof w==="string")w=new g.SO(w,D);else if(w instanceof g.SO)w.target=w.target||D;else{var Z=w;w=new g.SO(L,D);g.dC(w,Z)}Z=!0;var k;if(M)for(k=M.length-1;!w.V&&k>=0;k--){var b=w.currentTarget=M[k];Z=pv(b,L,!0,w)&&Z}w.V||(b=w.currentTarget=D,Z=pv(b,L,!0,w)&&Z,w.V||(Z=pv(b,L,!1,w)&&Z));if(M)for(k=0;!w.V&&k0){this.V--;var w=this.T;this.T=w.next;w.next=null}else w=this.L();return w};var th;ij.prototype.add=function(w,D){var M=fAI.get();M.set(w,D);this.V?this.V.next=M:this.T=M;this.V=M}; ij.prototype.remove=function(){var w=null;this.T&&(w=this.T,this.T=this.T.next,this.T||(this.V=null),w.next=null);return w}; var fAI=new Wj(function(){return new di},function(w){return w.reset()}); di.prototype.set=function(w,D){this.T=w;this.scope=D;this.next=null}; di.prototype.reset=function(){this.next=this.scope=this.T=null};var yF,Hj=!1,cAN=new ij;qRR.prototype.reset=function(){this.context=this.V=this.L=this.T=null;this.D=!1}; var rAK=new Wj(function(){return new qRR},function(w){w.reset()}); g.RV.prototype.then=function(w,D,M){return VjI(this,hh(typeof w==="function"?w:null),hh(typeof D==="function"?D:null),M)}; g.RV.prototype.$goog_Thenable=!0;g.y=g.RV.prototype;g.y.finally=function(w){var D=this;w=hh(w);return new g.RV(function(M,L){ukK(D,function(Z){w();M(Z)},function(Z){w(); L(Z)})})}; g.y.V8=function(w,D){return VjI(this,null,hh(w),D)}; g.y.catch=g.RV.prototype.V8;g.y.cancel=function(w){if(this.T==0){var D=new aV(w);g.j4(function(){SRI(this,D)},this)}}; g.y.W55=function(w){this.T=0;gi(this,2,w)}; g.y.K5k=function(w){this.T=0;gi(this,3,w)}; g.y.mQ=function(){for(var w;w=QQG(this);)JAJ(this,w,this.T,this.G);this.Y=!1}; var mMG=gl;g.hx(aV,tx);aV.prototype.name="cancel";g.hx(g.vj,g.Ej);g.y=g.vj.prototype;g.y.enabled=!1;g.y.bj=null;g.y.setInterval=function(w){this.LP=w;this.bj&&this.enabled?(this.stop(),this.start()):this.bj&&this.stop()}; g.y.Oy_=function(){if(this.enabled){var w=g.pk()-this.wy;w>0&&w0&&(this.getStatus(),this.Y=setTimeout(this.Dw.bind(this), this.y7)),this.getStatus(),this.B=!0,this.T.send(w),this.B=!1}catch(b){this.getStatus(),hvR(this,b)}}; g.y.Dw=function(){typeof S4!="undefined"&&this.T&&(this.D="Timed out after "+this.y7+"ms, aborting",this.V=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.y.abort=function(w){this.T&&this.L&&(this.getStatus(),this.L=!1,this.W=!0,this.T.abort(),this.W=!1,this.V=w||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),uj(this))}; g.y.oJ=function(){this.T&&(this.L&&(this.L=!1,this.W=!0,this.T.abort(),this.W=!1),uj(this,!0));g.Ty.zk.oJ.call(this)}; g.y.H4=function(){this.xt()||(this.nV||this.B||this.W?t9K(this):this.OlD())}; g.y.OlD=function(){t9K(this)}; g.y.isActive=function(){return!!this.T}; g.y.isComplete=function(){return g.QF(this)==4}; g.y.getStatus=function(){try{return g.QF(this)>2?this.T.status:-1}catch(w){return-1}}; g.y.getResponseHeader=function(w){if(this.T&&this.isComplete())return w=this.T.getResponseHeader(w),w===null?void 0:w}; g.y.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};Oj.prototype.send=function(w,D,M){D=D===void 0?function(){}:D; M=M===void 0?function(){}:M; peN(w.url,function(L){L=L.target;Jh(L)?D(g.zy(L)):M(L.getStatus())},w.requestType,w.body,w.requestHeaders,w.timeoutMillis,w.withCredentials)}; Oj.prototype.l7=function(){return 1};mu.prototype.done=function(){this.logger.vM(this.event,Kv()-this.startTime)}; g.I(Ah,wI);g.I(DL,Ah);g.y=DL.prototype;g.y.Il=function(){}; g.y.YO=function(){}; g.y.vM=function(){}; g.y.Xd=function(){}; g.y.GE=function(){}; g.y.NH=function(w,D,M,L){return L}; g.y.jr=function(){}; g.y.Mx=function(){}; g.y.GG=function(){}; g.I(M7,Ah);g.y=M7.prototype;g.y.update=function(w){this.logger.dispose();this.logger=w}; g.y.YO=function(w){this.logger.YO(w)}; g.y.vM=function(w,D){this.logger.vM(w,D)}; g.y.Xd=function(w){this.logger.Xd(w)}; g.y.GE=function(){this.logger.GE()}; g.y.NH=function(w,D,M,L){return this.logger.NH(w,D,M,L)}; g.y.jr=function(w){this.logger.jr(w)}; g.y.Mx=function(w){this.logger.Mx(w)}; g.y.GG=function(w){this.logger.GG(w)}; g.y.Il=function(w){this.logger.Il(w)}; g.I(yIR,g.X);g.I(LS,Ah);g.y=LS.prototype;g.y.Il=function(w){this.metrics.hR7.iz(w,this.o4)}; g.y.YO=function(w){this.metrics.eventCount.qr(w,this.o4)}; g.y.vM=function(w,D){this.metrics.U7.iz(D,w,this.o4)}; g.y.Xd=function(w){this.metrics.errorCount.qr(w,this.o4)}; g.y.NH=function(w,D,M,L){function Z(C){if(!k.xt()){var l=Kv()-b;k.metrics.NI7.iz(l,w,M,C,D,k.o4)}} var k=this,b=Kv();L.then(function(){return void Z(0)},function(C){return void Z(C instanceof qt?C.code:-1)}); return L}; g.y.jr=function(w){this.metrics.X9k.qr(w,this.o4)}; g.y.Mx=function(w){this.metrics.p9.qr(w,this.o4)}; g.y.GG=function(w){this.metrics.w97.qr(w,this.o4)}; g.I(ZL,LS);ZL.prototype.GE=function(){Ikx(this.T)};g.I(ka,Nn);g.I(b_,Nn);g.I(Ya,Nn);var akR=wh(Ya),x9j=function(w){return Ei(function(D){return D instanceof w&&!Js(D)})}(Ya); Ya.messageId="bfkj";g.I(Ak,Nn);g.I(CS,Nn);var N8r=wh(CS);g.I(EF,g.X);EF.prototype.snapshot=function(w){if(this.xt())throw Error("Already disposed");this.logger.YO("n");var D=this.logger.share();return this.L.then(function(M){var L=M.XF;return new Promise(function(Z){var k=new mu(D,"n");L(function(b){k.done();D.Il(b.length);D.GE();D.dispose();Z(b)},[w.k7, w.SO,w.H6,w.IX])})})}; EF.prototype.wG=function(w){var D=this;if(this.xt())throw Error("Already disposed");this.logger.YO("n");var M=wL(this.logger,function(){return D.D([w.k7,w.SO,w.H6,w.IX])},"n"); this.logger.Il(M.length);this.logger.GE();return M}; EF.prototype.S6=function(w){this.L.then(function(D){var M;(M=D.VJd)==null||M(w)})}; EF.prototype.IU=function(){return this.logger.share()};g.I(hu,Nn);g.I(tu,Nn);$a.prototype.uF=function(w){return fkJ(this,w,new DL,0)};g.I(i_,g.X);i_.prototype.snapshot=function(w){var D=this;return g.B(function(M){switch(M.T){case 1:if(D.xt())throw Error("Already disposed");if(D.V||D.G){M.KV(2);break}return g.c(M,D.W.promise,2);case 2:if(!D.V){M.KV(4);break}return g.c(M,D.V.snapshot(w),5);case 5:return M.return(M.V);case 4:throw D.G;}})}; i_.prototype.S6=function(w){var D,M;(D=this.V)==null||(M=D.S6)==null||M.call(D,w)}; i_.prototype.handleError=function(w){if(!this.xt()){this.G=w;this.W.resolve();var D,M;(M=(D=this.options).hz7)==null||M.call(D,w)}}; i_.prototype.IU=function(){return this.logger.share()}; var evI={Irh:432E5,Ln:3E5,W$:10,DY:1E4,zv:3E4,KEE:3E4,Gkd:6E4,Bp:1E3,i5:6E4,AE:6E5,O7:.25,s7:2,maxAttempts:10};var fj7,Ppa=(fj7=Math.imul)!=null?fj7:function(w,D){return w*D|0},UF=[196, 200,224,18];xa.prototype.Dy=function(){return String(this.T)+","+this.V.join()}; xa.prototype.uO=function(w,D){var M=void 0;if(this.V[this.T]!==w){var L=this.V.indexOf(w);L!==-1?(this.V.splice(L,1),L0;)D[M++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(w%62),w=Math.floor(w/62);return D.join("")}};g.I(Hx,g.X);Hx.prototype.uL=function(w,D){var M=this.di(w);D==null||D(M);return wL(this.logger,function(){return g.oJ(M,2)},this.V)}; g.I(Rc,Hx);Rc.prototype.di=function(w,D){var M=this;this.logger.YO(this.T);++this.W>=this.Y&&this.L.resolve();var L=w();w=wL(this.logger,function(){return M.D(L)},"C"); if(w===void 0)throw new Pt(17,"YNJ:Undefined");if(!(w instanceof Uint8Array))throw new Pt(18,"ODM:Invalid");D==null||D(w);return w}; g.I(oc,Hx);oc.prototype.di=function(){return this.D}; g.I(nS,Hx);nS.prototype.di=function(){var w=this;return wL(this.logger,function(){return FA(w.D)},"d")}; nS.prototype.uL=function(){return this.D}; g.I(Fv,Hx);Fv.prototype.di=function(){if(this.D)return this.D;this.D=CWG(this,function(w){return"_"+YLj(w)}); return CWG(this,function(w){return w})}; g.I(sF,Hx);sF.prototype.di=function(){var w=Math.floor(Date.now()/1E3),D=[Math.random()*255,Math.random()*255],M=D.concat([this.D&255,this.clientState],[w>>24&255,w>>16&255,w>>8&255,w&255]);w=new Uint8Array(2+M.length);w[0]=34;w[1]=M.length;w.set(M,2);M=w.subarray(2);for(var L=D=D.length;L150))try{this.cache=new Mkl(w,this.logger)}catch(D){this.reportError(new Pt(22,"GBJ:init",D))}}; g.y.reportError=function(w){this.logger.Xd(w.code);this.onError(w);return w}; var ptx=function(w){return Ei(function(D){if(!HWk(D))return!1;for(var M=g.x(Object.entries(w)),L=M.next();!L.done;L=M.next()){var Z=g.x(L.value);L=Z.next().value;Z=Z.next().value;if(!(L in D)){if(Z.Q9h===!0)continue;return!1}if(!Z(D[L]))return!1}return!0})}({md:function(w){return Ei(function(D){return D instanceof w})}(i_)},"");var PjN=(new Date).getTime();g.I(fS,Nn);var qQ1=wh(fS);Upr.prototype.getMetadata=function(){return this.metadata};q7.prototype.getMetadata=function(){return this.metadata}; q7.prototype.getStatus=function(){return this.status};rL.prototype.G=function(w,D){D=D===void 0?{}:D;return new Upr(w,this,D)}; rL.prototype.getName=function(){return this.name};var rv7=new rL("/google.internal.waa.v1.Waa/Create",hu,fS,function(w){return w.Dy()},qQ1);g.I(eD,Nn);var cIj=new rL("/google.internal.waa.v1.Waa/GenerateIT",tu,eD,function(w){return w.Dy()},wh(eD));var K_x=new Set(["SAPISIDHASH","APISIDHASH"]);g.I(Xv,Nn);Xv.prototype.getValue=function(){var w=AV(this,2);if(Array.isArray(w)||w instanceof Nn)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return CK(this,2)};g.I(Tj,Nn);Tj.prototype.getMessage=function(){return Gl(this,2)}; var RtK=wh(Tj);u_.prototype.Wm=function(w,D){w=="data"?this.L.push(D):w=="metadata"?this.W.push(D):w=="status"?this.Y.push(D):w=="end"?this.D.push(D):w=="error"&&this.V.push(D);return this}; u_.prototype.removeListener=function(w,D){w=="data"?VE(this.L,D):w=="metadata"?VE(this.W,D):w=="status"?VE(this.Y,D):w=="end"?VE(this.D,D):w=="error"&&VE(this.V,D);return this}; u_.prototype.cancel=function(){this.T.abort()}; u_.prototype.cancel=u_.prototype.cancel;u_.prototype.removeListener=u_.prototype.removeListener;u_.prototype.on=u_.prototype.Wm;g.I(N1K,Error);g.hx(g.Px,lkx);g.Px.prototype.T=function(){var w=new OF(this.D,this.L);this.V&&w.setCredentialsMode(this.V);return w}; g.Px.prototype.setCredentialsMode=function(w){this.V=w}; g.hx(OF,g.Ej);g.y=OF.prototype;g.y.open=function(w,D){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.V7=w;this.y7=D;this.readyState=1;KS(this)}; g.y.send=function(w){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.U.signal.aborted)throw this.abort(),Error("Request was aborted.");this.T=!0;var D={headers:this.B,method:this.V7,credentials:this.W,cache:void 0,signal:this.U.signal};w&&(D.body=w);(this.nV||g.KI).fetch(new Request(this.y7,D)).then(this.C$.bind(this),this.eq.bind(this))}; g.y.abort=function(){this.response=this.responseText="";this.B=new Headers;this.status=0;this.U.abort();this.L&&this.L.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,me(this));this.readyState=0}; g.y.C$=function(w){if(this.T&&(this.D=w,this.V||(this.status=this.D.status,this.statusText=this.D.statusText,this.V=w.headers,this.readyState=2,KS(this)),this.T&&(this.readyState=3,KS(this),this.T)))if(this.responseType==="arraybuffer")w.arrayBuffer().then(this.cj.bind(this),this.eq.bind(this));else if(typeof g.KI.ReadableStream!=="undefined"&&"body"in w){this.L=w.body.getReader();if(this.Y){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.G=new TextDecoder;oIS(this)}else w.text().then(this.tX.bind(this),this.eq.bind(this))}; g.y.L$=function(w){if(this.T){if(this.Y&&w.value)this.response.push(w.value);else if(!this.Y){var D=w.value?w.value:new Uint8Array(0);if(D=this.G.decode(D,{stream:!w.done}))this.response=this.responseText+=D}w.done?me(this):KS(this);this.readyState==3&&oIS(this)}}; g.y.tX=function(w){this.T&&(this.response=this.responseText=w,me(this))}; g.y.cj=function(w){this.T&&(this.response=w,me(this))}; g.y.eq=function(){this.T&&me(this)}; g.y.setRequestHeader=function(w,D){this.B.append(w,D)}; g.y.getResponseHeader=function(w){return this.V?this.V.get(w.toLowerCase())||"":""}; g.y.getAllResponseHeaders=function(){if(!this.V)return"";for(var w=[],D=this.V.entries(),M=D.next();!M.done;)M=M.value,w.push(M[0]+": "+M[1]),M=D.next();return w.join("\r\n")}; g.y.setCredentialsMode=function(w){this.W=w}; Object.defineProperty(OF.prototype,"withCredentials",{get:function(){return this.W==="include"}, set:function(w){this.setCredentialsMode(w?"include":"same-origin")}});g.Au.prototype.toString=function(){var w=[],D=this.W;D&&w.push(bi(D,e$r,!0),":");var M=this.T;if(M||D=="file")w.push("//"),(D=this.U)&&w.push(bi(D,e$r,!0),"@"),w.push(g.og(M).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),M=this.L,M!=null&&w.push(":",String(M));if(M=this.V)this.T&&M.charAt(0)!="/"&&w.push("/"),w.push(bi(M,M.charAt(0)=="/"?X57:T23,!0));(M=this.D.toString())&&w.push("?",M);(M=this.Y)&&w.push("#",bi(M,u4D));return w.join("")}; g.Au.prototype.resolve=function(w){var D=this.clone(),M=!!w.W;M?g.wG(D,w.W):M=!!w.U;M?D.U=w.U:M=!!w.T;M?g.Df(D,w.T):M=w.L!=null;var L=w.V;if(M)g.Mh(D,w.L);else if(M=!!w.V){if(L.charAt(0)!="/")if(this.T&&!this.V)L="/"+L;else{var Z=D.V.lastIndexOf("/");Z!=-1&&(L=D.V.slice(0,Z+1)+L)}Z=L;if(Z==".."||Z==".")L="";else if(g.ak(Z,"./")||g.ak(Z,"/.")){L=Gk(Z,"/");Z=Z.split("/");for(var k=[],b=0;b1||k.length==1&&k[0]!="")&&k.pop(), L&&b==Z.length&&k.push("")):(k.push(C),L=!0)}L=k.join("/")}else L=Z}M?D.V=L:M=w.D.toString()!=="";M?Lo(D,w.D.clone()):M=!!w.Y;M&&(D.Y=w.Y);return D}; g.Au.prototype.clone=function(){return new g.Au(this)}; var e$r=/[#\/\?@]/g,T23=/[#\?:]/g,X57=/[#\?]/g,aUl=/[#\?@]/g,u4D=/#/g;g.y=kA.prototype;g.y.add=function(w,D){li(this);this.L=null;w=EA(this,w);var M=this.T.get(w);M||this.T.set(w,M=[]);M.push(D);this.V=this.V+1;return this}; g.y.remove=function(w){li(this);w=EA(this,w);return this.T.has(w)?(this.L=null,this.V=this.V-this.T.get(w).length,this.T.delete(w)):!1}; g.y.clear=function(){this.T=this.L=null;this.V=0}; g.y.isEmpty=function(){li(this);return this.V==0}; g.y.forEach=function(w,D){li(this);this.T.forEach(function(M,L){M.forEach(function(Z){w.call(D,Z,L,this)},this)},this)}; g.y.iy=function(){li(this);for(var w=Array.from(this.T.values()),D=Array.from(this.T.keys()),M=[],L=0;L0?String(w[0]):D}; g.y.toString=function(){if(this.L)return this.L;if(!this.T)return"";for(var w=[],D=Array.from(this.T.keys()),M=0;M>>3;k.L!=1&&k.L!=2&&k.L!=15&&tB(k,b,C,"unexpected tag");k.T=1;k.V=0;k.D=0} function M(l){k.D++;k.D==5&&l&240&&tB(k,b,C,"message length too long");k.V|=(l&127)<<(k.D-1)*7;l&128||(k.T=2,k.U=0,typeof Uint8Array!=="undefined"?k.W=new Uint8Array(k.V):k.W=Array(k.V),k.V==0&&Z())} function L(l){k.W[k.U++]=l;k.U==k.V&&Z()} function Z(){if(k.L<15){var l={};l[k.L]=k.W;k.G.push(l)}k.T=0} for(var k=this,b=w instanceof Array?w:new Uint8Array(w),C=0;C0?w:null};$A.prototype.isInputValid=function(){return this.T===null}; $A.prototype.WI=function(){return this.T}; $A.prototype.RI=function(){return!1}; $A.prototype.parse=function(w){this.T!==null&&XtN(this,w,"stream already broken");var D=null;try{var M=this.L;M.L||etx(M,w,"stream already broken");M.T+=w;var L=Math.floor(M.T.length/4);if(L==0)var Z=null;else{try{var k=Fhk(M.T.slice(0,L*4))}catch(b){etx(M,M.T,b.message)}M.V+=L*4;M.T=M.T.slice(L*4);Z=k}D=Z===null?null:this.D.parse(Z)}catch(b){XtN(this,w,b.message)}this.V+=w.length;return D};var QgZ={INIT:0,Jm:1,Zb:2,WK:3,Yo:4,a_:5,STRING:6,Db:7,MB:8,bJ:9,QK:10,EU:11,Ea:12,q6:13,un:14,R2:15,Si:16,vY:17,hJ:18,ze:19,nN:20};g.y=dG.prototype;g.y.isInputValid=function(){return this.W!=3}; g.y.WI=function(){return this.B}; g.y.done=function(){return this.W===2}; g.y.RI=function(){return!1}; g.y.parse=function(w){function D(){for(;h0;)if(d=w[h++], k.U===4?k.U=0:k.U++,!d)break a;if(d==='"'&&!k.G){k.T=L();break}if(d==="\\"&&!k.G&&(k.G=!0,d=w[h++],!d))break;if(k.G)if(k.G=!1,d==="u"&&(k.U=1),d=w[h++])continue;else break;C.lastIndex=h;d=C.exec(w);if(!d){h=w.length+1;break}h=d.index+1;d=w[d.index];if(!d)break}k.L+=h-N;continue;case l.bJ:if(!d)continue;d==="r"?k.T=l.QK:yf(k,w,h);continue;case l.QK:if(!d)continue;d==="u"?k.T=l.EU:yf(k,w,h);continue;case l.EU:if(!d)continue;d==="e"?k.T=L():yf(k,w,h);continue;case l.Ea:if(!d)continue;d==="a"?k.T=l.q6: yf(k,w,h);continue;case l.q6:if(!d)continue;d==="l"?k.T=l.un:yf(k,w,h);continue;case l.un:if(!d)continue;d==="s"?k.T=l.R2:yf(k,w,h);continue;case l.R2:if(!d)continue;d==="e"?k.T=L():yf(k,w,h);continue;case l.Si:if(!d)continue;d==="u"?k.T=l.vY:yf(k,w,h);continue;case l.vY:if(!d)continue;d==="l"?k.T=l.hJ:yf(k,w,h);continue;case l.hJ:if(!d)continue;d==="l"?k.T=L():yf(k,w,h);continue;case l.ze:d==="."?k.T=l.nN:yf(k,w,h);continue;case l.nN:if("0123456789.eE+-".indexOf(d)!==-1)continue;else h--,k.L--,k.T= L();continue;default:yf(k,w,h)}}} function L(){var d=b.pop();return d!=null?d:l.Jm} function Z(d){k.V>1||(d||(d=W===-1?k.D+w.substring(p,h):w.substring(W,h)),k.y7?k.Y.push(d):k.Y.push(JSON.parse(d)),W=h)} for(var k=this,b=k.V7,C=k.nV,l=QgZ,E=w.length,p=0,W=-1,h=0;h0?(t=k.Y,k.Y=[],t):null}return null};I5.prototype.isInputValid=function(){return this.W===null}; I5.prototype.WI=function(){return this.W}; I5.prototype.RI=function(){return!1}; I5.prototype.parse=function(w){function D(l){k.V=6;k.W="The stream is broken @"+k.T+"/"+b+". Error: "+l+". With input:\n";throw Error(k.W);} function M(){k.L=new dG({Gfk:!0,GL:!0})} function L(l){if(l)for(var E=0;E1)&&D("extra status: "+l);k.Y=!0;var E={};E[2]=l[0];k.D.push(E)}} for(var k=this,b=0;b0?(w=k.D,k.D=[],w):null};UA.prototype.k_=function(){return this.T}; UA.prototype.getStatus=function(){return this.W}; UA.prototype.y7=function(w){w=w.target;try{if(w==this.T)a:{var D=g.QF(this.T),M=this.T.V,L=this.T.getStatus(),Z=g.zy(this.T);w=[];if(g.VF(this.T)instanceof Array){var k=g.VF(this.T);k.length>0&&k[0]instanceof Uint8Array&&(this.B=!0,w=k)}if(!(D<3||D==3&&!Z&&w.length==0))if(L=L==200||L==206,D==4&&(M==8?xA(this,7):M==7?xA(this,8):L||xA(this,3)),this.V||(this.V=T1r(this.T),this.V==null&&xA(this,5)),this.W>2)Nh(this);else{if(w.length>this.L){var b=w.length;M=[];try{if(this.V.RI())for(var C=0;Cthis.L){C=Z.slice(this.L);this.L=Z.length;try{var E=this.V.parse(C);E!=null&&this.D&&this.D(E)}catch(p){xA(this,5);Nh(this);break a}}D==4?(Z.length!= 0||this.B?xA(this,2):xA(this,4),Nh(this)):xA(this,1)}}}catch(p){xA(this,6),Nh(this)}};g.y=ueT.prototype;g.y.Wm=function(w,D){var M=this.V[w];M||(M=[],this.V[w]=M);M.push(D);return this}; g.y.addListener=function(w,D){this.Wm(w,D);return this}; g.y.removeListener=function(w,D){var M=this.V[w];M&&g.HQ(M,D);(w=this.T[w])&&g.HQ(w,D);return this}; g.y.once=function(w,D){var M=this.T[w];M||(M=[],this.T[w]=M);M.push(D);return this}; g.y.FuD=function(w){var D=this.V.data;D&&SLj(w,D);(D=this.T.data)&&SLj(w,D);this.T.data=[]}; g.y.lX9=function(){switch(this.L.getStatus()){case 1:Hf(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Hf(this,"error");break;case 8:Hf(this,"close");break;case 2:Hf(this,"end")}};QPC.prototype.serverStreaming=function(w,D,M,L){var Z=this,k=w.substring(0,w.length-L.name.length);return mpj(function(b){var C=b.Cg,l=b.getMetadata(),E=VkJ(Z,!1);l=PWa(Z,l,E,k+C.getName());var p=OJx(E,C.V,!0);b=C.T(b.mT);E.send(l,"POST",b);return p},this.On).call(this,L.G(D,M))};Akl.prototype.create=function(w,D,M){var L=this.T,Z=this.V+"/$rpc/google.internal.waa.v1.Waa/Create";D=D||{};M=M===void 0?{}:M;return B8k(L,Z,w,D,rv7,M)};var IcG=new wZT(45713224),UsC=new Djx(45713225);var xsK=new wZT(45713226),NmI=new Djx(45713227);var ZaR="://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(" "),kql=/\bocr\b/;var YMS=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(w){throw w;}},{ur7:!0, ps9:!0,sKc:!1,iWE:WhQ,Bft:hZ3,A29:!1,OWV:!1,jK5:!1,RTE:!0,m3L:pD1,qZV:!1,K_t:!1,pmE:!1});var R5=null,no=!1,yTx=1,$jr=Symbol("SIGNAL"),t1={version:0,uNh:0,gs:!1,producers:void 0,d_:void 0,pu:void 0,v1:void 0,lM:!1,U$:!1,m2:!1,kind:"unknown",kJ:function(){return!1}, bU:function(){}, T7:function(){}, kfL:function(){}};var $U=Symbol("UNSET"),iT=Symbol("COMPUTING"),dd=Symbol("ERRORED");Object.assign({},t1,{value:$U,gs:!0,error:null,Wo:gG,kind:"computed",kJ:function(w){return w.value===$U||w.value===iT}, bU:function(w){if(w.value===iT)throw Error("");var D=w.value;w.value=iT;var M=ERC(w),L=!1;try{var Z=w.LX();o5(null);L=D!==$U&&D!==dd&&Z!==dd&&w.Wo(D,Z)}catch(k){Z=dd,w.error=k}finally{WKJ(w,M)}L?w.value=D:(w.value=Z,w.version++)}});var tOr=Object.assign({},t1,{Wo:gG,value:void 0,kind:"signal"});Object.assign({},t1,{value:$U,gs:!0,error:null,Wo:gG,kind:"linkedSignal",kJ:function(w){return w.value===$U||w.value===iT}, bU:function(w){if(w.value===iT)throw Error("");var D=w.value;w.value=iT;var M=ERC(w);try{var L=w.source();var Z=w.LX(L,D===$U||D===dd?void 0:{source:w.Iat,value:D});w.Iat=L}catch(k){Z=dd,w.error=k}finally{WKJ(w,M)}D!==$U&&Z!==dd&&w.Wo(D,Z)?w.value=D:(w.value=Z,w.version++)}});Object.assign({},t1,{m2:!0,U$:!1,T7:function(w){w.schedule!==null&&w.schedule(w.x0J)}, dbE:!1,lQE:function(){}});g.I(a5,g.Ej);a5.prototype.dispose=function(){window.removeEventListener("offline",this.L);window.removeEventListener("online",this.L);this.m4.JH(this.W);delete a5.instance}; a5.prototype.rI=function(){return this.T}; a5.prototype.Ju=function(){var w=this;this.W=this.m4.RT(function(){var D;return g.B(function(M){if(M.T==1)return w.T?((D=window.navigator)==null?0:D.onLine)?M.KV(3):g.c(M,sA(w),3):g.c(M,sA(w),3);w.Ju();g.Hr(M)})},3E4)};g.I(UjJ,Nn);var JvQ=U1k(UjJ,[0,bT,E11,OWk,bT,-2,OWk,zZ1]);fo.prototype.set=function(w,D){D=D===void 0?!0:D;0<=w&&w<52&&Number.isInteger(w)&&this.data[w]!==D&&(this.data[w]=D,this.T=-1)}; fo.prototype.get=function(w){return!!this.data[w]};var rG;g.hx(g.TC,g.X);g.y=g.TC.prototype;g.y.start=function(){this.stop();this.D=!1;var w=NIj(this),D=HaS(this);w&&!D&&this.V.mozRequestAnimationFrame?(this.T=g.mK(this.V,"MozBeforePaint",this.L),this.V.mozRequestAnimationFrame(null),this.D=!0):this.T=w&&D?w.call(this.V,this.L):this.V.setTimeout(T3K(this.L),20)}; g.y.stop=function(){if(this.isActive()){var w=NIj(this),D=HaS(this);w&&!D&&this.V.mozRequestAnimationFrame?YJ(this.T):w&&D?D.call(this.V,this.T):this.V.clearTimeout(this.T)}this.T=null}; g.y.isActive=function(){return this.T!=null}; g.y.n8=function(){this.D&&this.T&&YJ(this.T);this.T=null;this.Y.call(this.W,g.pk())}; g.y.oJ=function(){this.stop();g.TC.zk.oJ.call(this)};g.hx(g.ui,g.X);g.y=g.ui.prototype;g.y.BR=0;g.y.oJ=function(){g.ui.zk.oJ.call(this);this.stop();delete this.T;delete this.V}; g.y.start=function(w){this.stop();this.BR=g.cj(this.L,w!==void 0?w:this.LP)}; g.y.stop=function(){this.isActive()&&g.KI.clearTimeout(this.BR);this.BR=0}; g.y.isActive=function(){return this.BR!=0}; g.y.T4=function(){this.BR=0;this.T&&this.T.call(this.V)};g.I(g.zC,g.X);g.y=g.zC.prototype;g.y.gx=function(w){this.L=arguments;this.bj||this.V?this.T=!0:Vf(this)}; g.y.stop=function(){this.bj&&(g.KI.clearTimeout(this.bj),this.bj=null,this.T=!1,this.L=null)}; g.y.pause=function(){this.V++}; g.y.resume=function(){this.V--;this.V||!this.T||this.bj||(this.T=!1,Vf(this))}; g.y.oJ=function(){g.X.prototype.oJ.call(this);this.stop()};g.Pf.prototype[Symbol.iterator]=function(){return this}; g.Pf.prototype.next=function(){var w=this.T.next();return{value:w.done?void 0:this.V.call(void 0,w.value),done:w.done}};g.hx(g.Z6,g.Ej);g.y=g.Z6.prototype;g.y.isPlaying=function(){return this.T==1}; g.y.isPaused=function(){return this.T==-1}; g.y.VT=function(){this.vC("begin")}; g.y.t9=function(){this.vC("end")}; g.y.onFinish=function(){this.vC("finish")}; g.y.onStop=function(){this.vC("stop")}; g.y.vC=function(w){this.dispatchEvent(w)};var z$r=cb(function(){var w=g.tM("DIV"),D=g.Eg?"-webkit":JM?"-moz":null,M="transition:opacity 1s linear;";D&&(M+=D+"-transition:opacity 1s linear;");D=Frl({style:M});if(w.nodeType===1&&/^(script|style)$/i.test(w.tagName))throw Error("");w.innerHTML=tv(D);return g.zd(w.firstChild,"transition")!=""});g.hx(kY,g.Z6);g.y=kY.prototype;g.y.play=function(){if(this.isPlaying())return!1;this.VT();this.vC("play");this.startTime=g.pk();this.T=1;if(z$r())return g.Qv(this.V,this.Y),this.L=g.cj(this.Wdc,void 0,this),!0;this.i4(!1);return!1}; g.y.Wdc=function(){g.MP(this.V);ROa(this.V,this.G);g.Qv(this.V,this.D);this.L=g.cj((0,g.Ck)(this.i4,this,!1),this.W*1E3)}; g.y.stop=function(){this.isPlaying()&&this.i4(!0)}; g.y.i4=function(w){g.Qv(this.V,"transition","");g.KI.clearTimeout(this.L);g.Qv(this.V,this.D);this.endTime=g.pk();this.T=0;if(w)this.onStop();else this.onFinish();this.t9()}; g.y.oJ=function(){this.stop();kY.zk.oJ.call(this)}; g.y.pause=function(){};var nRI={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};bs("Element","attributes")||bs("Node","attributes");bs("Element","innerHTML")||bs("HTMLElement","innerHTML");bs("Node","nodeName");bs("Node","nodeType");bs("Node","parentNode");bs("Node","childNodes");bs("HTMLElement","style")||bs("Element","style");bs("HTMLStyleElement","sheet");var cTx=Gql("getPropertyValue"),BIj=Gql("setProperty");bs("Element","namespaceURI")||bs("Node","namespaceURI");var vRJ={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var eOR,DcZ,rTj,qMl,XZS;eOR=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]");DcZ=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Vqs=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.Ct=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]");rTj=/^http:\/\/.*/;g.PL3=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");qMl=/\s+/;XZS=/[\d\u06f0-\u06f9]/;Eb.prototype.KS=function(){return new pt(this.V())}; Eb.prototype[Symbol.iterator]=function(){return new W7(this.V())}; Eb.prototype.T=function(){return new W7(this.V())}; g.I(pt,g.yH);pt.prototype.next=function(){return this.V.next()}; pt.prototype[Symbol.iterator]=function(){return new W7(this.V)}; pt.prototype.T=function(){return new W7(this.V)}; g.I(W7,Eb);W7.prototype.next=function(){return this.L.next()};tw.prototype.clone=function(){return new tw(this.T,this.G,this.L,this.W,this.D,this.Y,this.V,this.U)}; tw.prototype.equals=function(w){return this.T==w.T&&this.G==w.G&&this.L==w.L&&this.W==w.W&&this.D==w.D&&this.Y==w.Y&&this.V==w.V&&this.U==w.U};is.prototype.clone=function(){return new is(this.start,this.end)};(function(){if(C9S){var w=/Windows NT ([0-9.]+)/;return(w=w.exec(g.qc()))?w[1]:"0"}return iP?(w=/1[0|1][_.][0-9_.]+/,(w=w.exec(g.qc()))?w[0].replace(/_/g,"."):"10"):g.JY?(w=/Android\s+([^\);]+)(\)|;)/,(w=w.exec(g.qc()))?w[1]:""):iWr||dck||y7x?(w=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(w=w.exec(g.qc()))?w[1].replace(/_/g,"."):""):""})();var uzS=function(){if(g.l3)return dF(/Firefox\/([0-9.]+)/);if(g.YY||g.XT||g.mJ)return N3T;if(g.d5){if(f2()||qO()){var w=dF(/CriOS\/([0-9.]+)/);if(w)return w}return dF(/Chrome\/([0-9.]+)/)}if(g.pf&&!f2())return dF(/Version\/([0-9.]+)/);if(uU||SJ){if(w=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.qc()))return w[1]+"."+w[2]}else if(g.Ab)return(w=dF(/Android\s+([0-9.]+)/))?w:dF(/Version\/([0-9.]+)/);return""}();g.hx(g.IF,g.X);g.y=g.IF.prototype;g.y.subscribe=function(w,D,M){var L=this.V[w];L||(L=this.V[w]=[]);var Z=this.Y;this.T[Z]=w;this.T[Z+1]=D;this.T[Z+2]=M;this.Y=Z+3;L.push(Z);return Z}; g.y.unsubscribe=function(w,D,M){if(w=this.V[w]){var L=this.T;if(w=w.find(function(Z){return L[Z+1]==D&&L[Z+2]==M}))return this.mY(w)}return!1}; g.y.mY=function(w){var D=this.T[w];if(D){var M=this.V[D];this.D!=0?(this.L.push(w),this.T[w+1]=function(){}):(M&&g.HQ(M,w),delete this.T[w],delete this.T[w+1],delete this.T[w+2])}return!!D}; g.y.publish=function(w,D){var M=this.V[w];if(M){var L=Array(arguments.length-1),Z=arguments.length,k;for(k=1;k0&&this.D==0)for(;M=this.L.pop();)this.mY(M)}}return k!=0}return!1}; g.y.clear=function(w){if(w){var D=this.V[w];D&&(D.forEach(this.mY,this),delete this.V[w])}else this.T.length=0,this.V={}}; g.y.oJ=function(){g.IF.zk.oJ.call(this);this.clear();this.L.length=0};g.Ub.prototype.set=function(w,D){D===void 0?this.T.remove(w):this.T.set(w,g.ri(D))}; g.Ub.prototype.get=function(w){try{var D=this.T.get(w)}catch(M){return}if(D!==null)try{return JSON.parse(D)}catch(M){throw"Storage: Invalid value was encountered";}}; g.Ub.prototype.remove=function(w){this.T.remove(w)};g.hx(xY,g.Ub);xY.prototype.set=function(w,D){xY.zk.set.call(this,w,JTS(D))}; xY.prototype.V=function(w){w=xY.zk.get.call(this,w);if(w===void 0||w instanceof Object)return w;throw"Storage: Invalid value was encountered";}; xY.prototype.get=function(w){if(w=this.V(w)){if(w=w.data,w===void 0)throw"Storage: Invalid value was encountered";}else w=void 0;return w};g.hx(NC,xY);NC.prototype.set=function(w,D,M){if(D=JTS(D)){if(M){if(M=M.length)return g.lT;var Z=M.key(D++);if(w)return g.Ix(Z);Z=M.getItem(Z);if(typeof Z!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Ix(Z)}; return L}; g.y.clear=function(){RF(this);this.T.clear()}; g.y.key=function(w){RF(this);return this.T.key(w)};g.hx(oF,gF);g.hx(PJl,gF);g.hx(nt,jm);nt.prototype.set=function(w,D){this.V.set(this.T+w,D)}; nt.prototype.get=function(w){return this.V.get(this.T+w)}; nt.prototype.remove=function(w){this.V.remove(this.T+w)}; nt.prototype.KS=function(w){var D=this.V[Symbol.iterator](),M=this,L=new g.yH;L.next=function(){var Z=D.next();if(Z.done)return Z;for(Z=Z.value;Z.slice(0,M.T.length)!=M.T;){Z=D.next();if(Z.done)return Z;Z=Z.value}return g.Ix(w?Z.slice(M.T.length):M.V.get(Z))}; return L};Gr.prototype.getValue=function(){return this.V}; Gr.prototype.clone=function(){return new Gr(this.T,this.V)};g.y=sb.prototype;g.y.uO=function(w,D){var M=this.T;M.push(new Gr(w,D));w=M.length-1;D=this.T;for(M=D[w];w>0;){var L=w-1>>1;if(D[L].T>M.T)D[w]=D[L],w=L;else break}D[w]=M}; g.y.remove=function(){var w=this.T,D=w.length,M=w[0];if(!(D<=0)){if(D==1)w.length=0;else{w[0]=w.pop();w=0;D=this.T;for(var L=D.length,Z=D[w];w>1;){var k=w*2+1,b=w*2+2;k=bZ.T)break;D[w]=D[k];w=k}D[w]=Z}return M.getValue()}}; g.y.hV=function(){for(var w=this.T,D=[],M=w.length,L=0;L>>16&65535|0;for(var k;M!==0;){k=M>2E3?2E3:M;M-=k;do Z=Z+D[L++]|0,w=w+Z|0;while(--k);Z%=65521;w%=65521}return Z|w<<16|0};for(var Yj={},yg,wbr=[],Iv=0;Iv<256;Iv++){yg=Iv;for(var D1k=0;D1k<8;D1k++)yg=yg&1?3988292384^yg>>>1:yg>>>1;wbr[Iv]=yg}Yj=function(w,D,M,L){M=L+M;for(w^=-1;L>>8^wbr[(w^D[L])&255];return w^-1};var Kt={};Kt={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 Sm=[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],zr=[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],Utl=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],lrx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],DP=Array(576);B7(DP);var Mx=Array(60);B7(Mx);var Jw=Array(512);B7(Jw);var us=Array(256);B7(us);var Qm=Array(29);B7(Qm);var Vm=Array(30);B7(Vm);var dta,yhG,IrK,iva=!1;var WP;WP=[new pj(0,0,0,0,function(w,D){var M=65535;for(M>w.RQ-5&&(M=w.RQ-5);;){if(w.b9<=1){Cj(w);if(w.b9===0&&D===0)return 1;if(w.b9===0)break}w.Pz+=w.b9;w.b9=0;var L=w.F8+M;if(w.Pz===0||w.Pz>=L)if(w.b9=w.Pz-L,w.Pz=L,Lj(w,!1),w.wH.Br===0)return 1;if(w.Pz-w.F8>=w.fP-262&&(Lj(w,!1),w.wH.Br===0))return 1}w.uO=0;if(D===4)return Lj(w,!0),w.wH.Br===0?3:4;w.Pz>w.F8&&Lj(w,!1);return 1}), new pj(4,4,8,4,l7),new pj(4,5,16,8,l7),new pj(4,6,32,32,l7),new pj(4,4,16,16,ED),new pj(8,16,32,32,ED),new pj(8,16,128,128,ED),new pj(8,32,128,256,ED),new pj(32,128,258,1024,ED),new pj(32,258,258,4096,ED)];var $tl={};$tl=function(){this.input=null;this.kh=this.G$=this.uf=0;this.output=null;this.o2=this.Br=this.oM=0;this.msg="";this.state=null;this.MD=2;this.Y6=0};var xtl=Object.prototype.toString; hQ.prototype.push=function(w,D){var M=this.wH,L=this.options.chunkSize;if(this.ended)return!1;var Z=D===~~D?D:D===!0?4:0;typeof w==="string"?M.input=mjI(w):xtl.call(w)==="[object ArrayBuffer]"?M.input=new Uint8Array(w):M.input=w;M.uf=0;M.G$=M.input.length;do{M.Br===0&&(M.output=new c7.Op(L),M.oM=0,M.Br=L);w=t4l(M,Z);if(w!==1&&w!==0)return this.t9(w),this.ended=!0,!1;if(M.Br===0||M.G$===0&&(Z===4||Z===2))if(this.options.to==="string"){var k=c7.dD(M.output,M.oM);D=k;k=k.length;if(k<65537&&(D.subarray&& Av1||!D.subarray))D=String.fromCharCode.apply(null,c7.dD(D,k));else{for(var b="",C=0;C0||M.Br===0)&&w!==1);if(Z===4)return(M=this.wH)&&M.state?(L=M.state.status,L!==42&&L!==69&&L!==73&&L!==91&&L!==103&&L!==113&&L!==666?w=mB(M,-2):(M.state=null,w=L===113?mB(M,-3):0)):w=-2,this.t9(w),this.ended=!0,w===0;Z===2&&(this.t9(0),M.Br=0);return!0}; hQ.prototype.t9=function(w){w===0&&(this.result=this.options.to==="string"?this.chunks.join(""):c7.qG(this.chunks));this.chunks=[];this.err=w;this.msg=this.wH.msg};var i7="@@redux/INIT"+tQ(),oJN="@@redux/REPLACE"+tQ();var nJG=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Mw7=[0,b2x,-3,kU];g.I(arS,Nn);var Zgl=U1k(arS,[0,bT,YQ1,D4,b2x,D4,-1,kU,b2x,kU,-1,bT,kU,YQ1,Mf,Mw7,D4,-1,kU]);var vJT=-1277231550;var Aax=new g.I3("adInfoDialogEndpoint");var sRN=new g.I3("adPingingEndpoint");var mzK=new g.I3("crossDeviceProgressCommand");var aG=new g.I3("actionCompanionAdRenderer");var PS=new g.I3("adActionInterstitialRenderer");var L5r=new g.I3("adDurationRemainingRenderer");var kF=new g.I3("adHoverTextButtonRenderer");var KEK=new g.I3("adInfoDialogRenderer");var uO=new g.I3("adMessageRenderer");var bO=new g.I3("adPreviewRenderer");var c1=new g.I3("adsEngagementPanelRenderer");var gTT=new g.I3("dismissablePanelTextPortraitImageRenderer");var HMI=new g.I3("adsEngagementPanelSectionListViewModel");var ZRr=new g.I3("flyoutCtaRenderer");var v1=new g.I3("imageCompanionAdRenderer");var zx=new g.I3("instreamAdPlayerOverlayRenderer");var UZS=new g.I3("instreamSurveyAdBackgroundImageRenderer");var Zs=new g.I3("instreamSurveyAdPlayerOverlayRenderer");var Je=new g.I3("instreamSurveyAdRenderer"),LO=new g.I3("instreamSurveyAdSingleSelectQuestionRenderer"),M8=new g.I3("instreamSurveyAdMultiSelectQuestionRenderer"),UZ=new g.I3("instreamSurveyAdAnswerRenderer"),kdP=new g.I3("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var S0=new g.I3("instreamVideoAdRenderer");var bRl=new g.I3("textOverlayAdContentRenderer"),Yg1=new g.I3("enhancedTextOverlayAdContentRenderer"),C53=new g.I3("imageOverlayAdContentRenderer");var V_=new g.I3("playerOverlayLayoutRenderer");var Os=new g.I3("videoInterstitialButtonedCenteredLayoutRenderer");var Ggl=new g.I3("aboveFeedAdLayoutRenderer");var s6x=new g.I3("belowPlayerAdLayoutRenderer");var FTI=new g.I3("inPlayerAdLayoutRenderer");var P1=new g.I3("playerBytesAdLayoutRenderer");var Ds=new g.I3("playerBytesSequenceItemAdLayoutRenderer");var wN=new g.I3("playerUnderlayAdLayoutRenderer");var Qs=new g.I3("adIntroRenderer");var T9=new g.I3("playerBytesSequentialLayoutRenderer");var E6G=new g.I3("slidingTextPlayerOverlayRenderer");var z9=new g.I3("surveyTextInterstitialRenderer");var O_=new g.I3("videoAdTrackingRenderer");var U5r=new g.I3("videoInterstitialCenteredLayoutViewModel");var lK3=new g.I3("simpleAdBadgeRenderer");var aK=new g.I3("skipAdRenderer"),EyB=new g.I3("skipButtonRenderer");var EX=new g.I3("adSlotRenderer");var mV=new g.I3("squeezebackPlayerSidePanelRenderer");var pbs=new g.I3("timedPieCountdownRenderer");var Sb=new g.I3("adAvatarViewModel");var Qb=new g.I3("adBadgeViewModel");var J2=new g.I3("adButtonViewModel");var W5Z=new g.I3("adDetailsLineViewModel");var hIr=new g.I3("adDisclosureBannerViewModel");var tws=new g.I3("adPodIndexViewModel");var $1S=new g.I3("imageBackgroundViewModel");var iRQ=new g.I3("adGridCardCollectionViewModel");var d1B=new g.I3("adGridCardTextViewModel");var yMr=new g.I3("adPreviewViewModel");var IKB=new g.I3("playerAdAvatarLockupCardButtonedViewModel");var U1Z=new g.I3("skipAdButtonViewModel");var x1P=new g.I3("skipAdViewModel");var NE3=new g.I3("timedPieCountdownViewModel");var HR3=new g.I3("visitAdvertiserLinkViewModel");var B1=new g.I3("bannerImageLayoutViewModel");var f$=new g.I3("topBannerImageTextIconButtonedLayoutViewModel");var qV=new g.I3("adsEngagementPanelLayoutViewModel");var Ae=new g.I3("displayUnderlayTextGridCardsLayoutViewModel");g.ON=new g.I3("browseEndpoint");var jdr=new g.I3("confirmDialogEndpoint");var N$J=new g.I3("commandContext");var WUr=new g.I3("rawColdConfigGroup");var pok=new g.I3("rawHotConfigGroup");g.lQ=new g.I3("commandExecutorCommand");g.I(BiR,Nn);var S5x={MZ5:0,kRE:1,BeE:32,y2h:61,nOD:67,LfW:103,Vyk:86,iG7:42,A37:60,QVE:62,TfJ:73,UNE:76,zT7:88,oOW:90,ZWE:99,ptt:98,DnD:100,mnE:102,PAD:41,WfE:69,KfD:70,c2k:71,oLJ:2,DTt:27,ANDROID:3,Jt7:54,gxV:14,vxW:91,FYJ:55,fJk:24,xmt:20,MsJ:18,Gr5:21,jTE:104,lJt:30,wHJ:29,XHL:28,lIh:101,kr_:34,hP7:36,rtk:38,IOS:5,TVE:15,PzE:92,yiV:40,VaW:25,Lr5:17,zAt:19,out:64,DR_:66,nu5:26,Krh:22,cik:33,taJ:68,Cz_:35,Z7k:53,WrE:37,H77:39,ZG_:7,PyJ:57,W4k:43,c3E:59,K4c:93,NZc:74,tZD:75,Cy_:85,aI_:65,J3c:80,g7W:8,DN5:10, fIV:58,F4h:63,YD_:72,IJk:23,aQE:11,YZ5:13,aKk:12,n7E:16,sV_:56,HWV:31,HSJ:77,rHc:84,OGW:87,jq_:89,GVd:94,qk9:95};g.I(UD,Nn);UD.prototype.gb=function(){return Gl(this,3)}; UD.prototype.jm=function(){return Gl(this,5)}; UD.prototype.wp=function(w){return BW(this,5,w)};g.I(xj,Nn);g.I(frT,Nn);g.I(Nx,Nn);g.y=Nx.prototype;g.y.getDeviceId=function(){return Gl(this,6)}; g.y.y_=function(w){var D=bY(this,9,$D,3,!0);ze(D,w);return D[w]}; g.y.getPlayerType=function(){return sr(this,36)}; g.y.setHomeGroupInfo=function(w){return gB(this,frT,81,w)}; g.y.clearLocationPlayabilityToken=function(){return D2(this,89)};g.I(HP,Nn);HP.prototype.getValue=function(){return Gl(this,I0(this,lVJ,2))}; var lVJ=[2,3,4,5,6];g.I(j2,Nn);j2.prototype.setTrackingParams=function(w){return D2(this,1,TCR(w,!1))};g.I(gy,Nn);g.I(R3,Nn);R3.prototype.y_=function(w){var D=bY(this,5,yK,3,!0);ze(D,w);return D[w]};g.I(o3,Nn);o3.prototype.getToken=function(){return vW(this,2)}; o3.prototype.setToken=function(w){return BW(this,2,w)};g.I(nj,Nn);nj.prototype.setSafetyMode=function(w){return qK(this,5,w)};g.I(Fg,Nn);Fg.prototype.Kw=function(w){return gB(this,Nx,1,w)};var CO=new g.I3("thumbnailLandscapePortraitRenderer");g.gyZ=new g.I3("changeEngagementPanelVisibilityAction");var oqa=new g.I3("continuationCommand");g.RIs=new g.I3("openPopupAction");g.xU=new g.I3("webCommandMetadata");var IsR=new g.I3("metadataBadgeRenderer");var RPG=new g.I3("signalServiceEndpoint");var RD=new g.I3("innertubeCommand");var EqK=new g.I3("loggingDirectives");var x7I={mkE:"EMBEDDED_PLAYER_MODE_UNKNOWN",AfE:"EMBEDDED_PLAYER_MODE_DEFAULT",U2d:"EMBEDDED_PLAYER_MODE_PFP",OPt:"EMBEDDED_PLAYER_MODE_PFL"};var QYl=new g.I3("channelThumbnailEndpoint");var SXJ=new g.I3("embeddedPlayerErrorMessageRenderer");var e0T=new g.I3("embeddedPlayerOverlayVideoDetailsRenderer"),JOJ=new g.I3("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),z0k=new g.I3("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var iOa=new g.I3("embedsInfoPanelRenderer");var oy7=new g.I3("feedbackEndpoint");var nyl=new g.I3("callToActionButtonViewModel");var F5x=new g.I3("interactionLoggingCommandMetadata");var itS={RJJ:"WEB_DISPLAY_MODE_UNKNOWN",E7J:"WEB_DISPLAY_MODE_BROWSER",qDE:"WEB_DISPLAY_MODE_MINIMAL_UI",utt:"WEB_DISPLAY_MODE_STANDALONE",eJE:"WEB_DISPLAY_MODE_FULLSCREEN"};g.I(GQ,Nn);GQ.prototype.getPlayerType=function(){return sr(this,7)}; GQ.prototype.eJ=function(){return Gl(this,19)}; GQ.prototype.setVideoId=function(w){return BW(this,19,w)};g.I(sD,Nn);g.I(a3,Nn);g.I(vP,Nn); var GdQ=[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,528];var sdx=new g.I3("loggingContext");g.I(cP,Nn);g.I(qx,Nn);qx.prototype.eJ=function(){return vW(this,I0(this,wO,1))}; qx.prototype.setVideoId=function(w){return t9(this,1,wO,R8(w))}; qx.prototype.getPlaylistId=function(){return vW(this,I0(this,wO,2))}; var wO=[1,2];g.I(qjK,Nn);var gb=new g.I3("changeKeyedMarkersVisibilityCommand");var aKP=new g.I3("changeMarkersVisibilityCommand");var x8j=new g.I3("loadMarkersCommand");var vys=new g.I3("suggestedActionDataViewModel");var ncj=new g.I3("timelyActionViewModel");var ocN=new g.I3("timelyActionsOverlayViewModel");var Quj=new g.I3("productListItemRenderer");var cMZ=new g.I3("shoppingOverlayRenderer");var XXK=new g.I3("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var BED=new g.I3("adFeedbackEndpoint");var fKZ=new g.I3("menuEndpoint");var KRT=new g.I3("phoneDialerEndpoint");var PTS=new g.I3("sendSmsEndpoint");var rOK=new g.I3("copyTextEndpoint");var qgl=new g.I3("shareEndpoint"),rMZ=new g.I3("shareEntityEndpoint"),eIk=new g.I3("shareEntityServiceEndpoint"),Xb7=new g.I3("webPlayerShareEntityServiceEndpoint");g.Fl=new g.I3("urlEndpoint");g.HB=new g.I3("watchEndpoint");var TEB=new g.I3("watchPlaylistEndpoint");g.ucS=new g.I3("offlineOrchestrationActionCommand");var lbC=new g.I3("compositeVideoOverlayRenderer");var SgB=new g.I3("miniplayerRenderer");var fsJ=new g.I3("paidContentOverlayRenderer");var Qdr=new g.I3("playerMutedAutoplayOverlayRenderer"),JMB=new g.I3("playerMutedAutoplayEndScreenRenderer");var vlR=new g.I3("unserializedPlayerResponse"),zIZ=new g.I3("unserializedPlayerResponse");var Vws=new g.I3("playlistEditEndpoint");var Nf;g.YF=new g.I3("buttonRenderer");Nf=new g.I3("toggleButtonRenderer");var NnG=new g.I3("counterfactualRenderer");var P5r=new g.I3("resolveUrlCommandMetadata");var ORP=new g.I3("modifyChannelNotificationPreferenceEndpoint");var Ghk=new g.I3("pingingEndpoint");var K5P=new g.I3("unsubscribeEndpoint");g.KL=new g.I3("subscribeButtonRenderer");var m1P=new g.I3("subscribeEndpoint");var t_K=new g.I3("buttonViewModel");var j6S=new g.I3("qrCodeRenderer");var JrJ={I9t:"LIVING_ROOM_APP_MODE_UNSPECIFIED",vuD:"LIVING_ROOM_APP_MODE_MAIN",SkV:"LIVING_ROOM_APP_MODE_KIDS",hAd:"LIVING_ROOM_APP_MODE_MUSIC",l9d:"LIVING_ROOM_APP_MODE_UNPLUGGED",dR7:"LIVING_ROOM_APP_MODE_GAMING"};var h0r=new g.I3("autoplaySwitchButtonRenderer");var mw,rJK,X1k,OnI;mw=new g.I3("decoratedPlayerBarRenderer");rJK=new g.I3("chapteredPlayerBarRenderer");X1k=new g.I3("multiMarkersPlayerBarRenderer");OnI=new g.I3("chapterRenderer");g.uPR=new g.I3("markerRenderer");var DBk=new g.I3("decoratedPlayheadRenderer");var d8G=new g.I3("desktopOverlayConfigRenderer");var REG=new g.I3("engagementPanelSectionListRenderer");var $8S=new g.I3("gatedActionsOverlayViewModel");var zBI=new g.I3("heatMarkerRenderer");var JJa=new g.I3("heatmapRenderer");var U8r=new g.I3("watchToWatchTransitionRenderer");var TNT=new g.I3("playlistPanelRenderer");var AMr=new g.I3("productUpsellSuggestedActionViewModel");var wCx=new g.I3("suggestedActionTimeRangeTrigger"),DPZ=new g.I3("suggestedActionsRenderer"),MiZ=new g.I3("suggestedActionRenderer");var V8C=new g.I3("timedMarkerDecorationRenderer");var BAN=new g.I3("cipher");var ceK=new g.I3("playerVars");var LX3=new g.I3("playerVars");var H3=g.KI.window,Z61,ker,ry=(H3==null?void 0:(Z61=H3.yt)==null?void 0:Z61.config_)||(H3==null?void 0:(ker=H3.ytcfg)==null?void 0:ker.data_)||{};g.mC("yt.config_",ry);var u7=[];var V4k=/^[\w.]*$/,SjN={q:!0,search_query:!0},uWR=String(zQ);var L7=new function(){var w=window.document;this.T=window;this.V=w}; g.mC("yt.ads_.signals_.getAdSignalsString",function(w){return V6(kE(w))});g.pk();var Ovj="XMLHttpRequest"in g.KI?function(){return new XMLHttpRequest}:null;var b6Q="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.tG(b6Q);var wxr={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"},pxk="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.tG(b6Q)),YFN=!1,ZSK=dz;g.I(UO,tx);Ho.prototype.then=function(w,D,M){return this.T?this.T.then(w,D,M):this.L===1&&w?(w=w.call(M,this.V))&&typeof w.then==="function"?w:gz(w):this.L===2&&D?(w=D.call(M,this.V))&&typeof w.then==="function"?w:jJ(w):this}; Ho.prototype.getValue=function(){return this.V}; Ho.prototype.$goog_Thenable=!0;var R_=!1;var e$=uU||SJ;var ILk=/^([0-9\.]+):([0-9\.]+)$/;g.I(k7,tx);k7.prototype.name="BiscottiError";g.I(Zx,tx);Zx.prototype.name="BiscottiMissingError";var HST={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},bC=null;var MPJ=g.$x(["data-"]),aLC={};var Yi1=0,Y7=g.Eg?"webkit":JM?"moz":g.YY?"ms":g.mJ?"o":"",Cox=g.w3("ytDomDomGetNextId")||function(){return++Yi1}; g.mC("ytDomDomGetNextId",Cox);var fLl={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};ha.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; ha.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; ha.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ta=g.KI.ytEventsEventsListeners||{};g.mC("ytEventsEventsListeners",ta);var e4J=g.KI.ytEventsEventsCounter||{count:0};g.mC("ytEventsEventsCounter",e4J);var SFa=cb(function(){var w=!1;try{var D=Object.defineProperty({},"passive",{get:function(){w=!0}}); window.addEventListener("test",null,D)}catch(M){}return w}),XxI=cb(function(){var w=!1; try{var D=Object.defineProperty({},"capture",{get:function(){w=!0}}); window.addEventListener("test",null,D)}catch(M){}return w});var jz;jz=window;g.IC=jz.ytcsi&&jz.ytcsi.now?jz.ytcsi.now:jz.performance&&jz.performance.timing&&jz.performance.now&&jz.performance.timing.navigationStart?function(){return jz.performance.timing.navigationStart+jz.performance.now()}:function(){return(new Date).getTime()};g.hx(Ij,g.X);Ij.prototype.B=function(w){w.T===void 0&&qFk(w);var D=w.T;w.V===void 0&&qFk(w);this.T=new g.Sq(D,w.V)}; Ij.prototype.Qx=function(){return this.T||new g.Sq}; Ij.prototype.y7=function(){if(this.T){var w=(0,g.IC)();if(this.D!=0){var D=this.Y,M=this.T,L=D.x-M.x;D=D.y-M.y;L=Math.sqrt(L*L+D*D)/(w-this.D);this.V[this.L]=Math.abs((L-this.W)/this.W)>.5?1:0;for(M=D=0;M<4;M++)D+=this.V[M]||0;D>=3&&this.G();this.W=L}this.D=w;this.Y=this.T;this.L=(this.L+1)%4}}; Ij.prototype.oJ=function(){g.p7(this.U);g.iC(this.V7)};g.I(U4,g.X);U4.prototype.j=function(w,D,M,L,Z){M=g.Q6((0,g.Ck)(M,L||this.TU));M={target:w,name:D,callback:M};var k;Z&&SFa()&&(k={passive:!0});w.addEventListener(D,M.callback,k);this.G.push(M);return M}; U4.prototype.gt=function(w){for(var D=0;D=S.xV)||n.T.version>=K||n.T.objectStoreNames.contains(e)||G.push(e)}l=G;if(l.length===0){N.KV(5);break}E=Object.keys(M.options.Pm); p=C.objectStoreNames();if(M.WM.options.version+1)throw h.close(),M.L=!1,GCx(M,t);return N.return(h);case 8:throw D(), W instanceof Error&&!g.hY("ytidb_async_stack_killswitch")&&(W.stack=W.stack+"\n"+b.substring(b.indexOf("\n")+1)),WT(W,M.name,"",(d=M.options.version)!=null?d:-1);}})} function D(){M.T===L&&(M.T=void 0)} var M=this;if(!this.L)throw GCx(this);if(this.T)return this.T;var L,Z={blocking:function(k){k.close()}, closed:D,iyd:D,upgrade:this.options.upgrade};return this.T=L=w()};var qD=new BT("YtIdbMeta",{Pm:{databases:{xV:1}},upgrade:function(w,D){D(1)&&g.ND(w,"databases",{keyPath:"actualName"})}});var uE,TV=new function(){}(new function(){});new g.l_;g.I(J5,BT);J5.prototype.V=function(w,D,M){M=M===void 0?{}:M;return(this.options.shared?e7K:rBR)(w,D,Object.assign({},M))}; J5.prototype.delete=function(w){w=w===void 0?{}:w;return(this.options.shared?SAa:XfC)(this.name,w)};var dPr={},JBI=g.zV("ytGcfConfig",{Pm:(dPr.coldConfigStore={xV:1},dPr.hotConfigStore={xV:1},dPr),shared:!1,upgrade:function(w,D){D(1)&&(g.nf(g.ND(w,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.nf(g.ND(w,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.I(PT,g.X);PT.prototype.oJ=function(){for(var w=g.x(this.V),D=w.next();!D.done;D=w.next()){var M=this.T;D=M.indexOf(D.value);D>=0&&M.splice(D,1)}this.V.length=0;g.X.prototype.oJ.call(this)};DF.prototype.wp=function(w){this.hotHashData=w;g.mC("yt.gcf.config.hotHashData",this.hotHashData||null)};var ysr=typeof TextEncoder!=="undefined"?new TextEncoder:null,cwr=ysr?function(w){return ysr.encode(w)}:function(w){w=g.RJ(w); for(var D=new Uint8Array(w.length),M=0;M=D?!1:!0}; g.y.cg=function(){var w=this;if(!jB(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Ru.Kt("QUEUED",this.UT).then(function(D){D&&!w.Zj(D,w.e_)?w.m4.RT(function(){return g.B(function(M){if(M.T==1)return D.id===void 0?M.KV(2):g.c(M,w.Ru.sX(D.id,w.UT),2);w.cg();g.Hr(M)})}):w.Gd.rI()&&w.Dc()})};var oz;var $2G={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,watchZoomStateChange:528};var UPQ={},AwN=g.zV("ServiceWorkerLogsDatabase",{Pm:(UPQ.SWHealthLog={xV:1},UPQ),shared:!0,upgrade:function(w,D){D(1)&&g.nf(g.ND(w,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var GG={},kQJ=0;var sn;vA.prototype.requestComplete=function(w,D){D&&(this.V=!0);w=this.removeParams(w);this.T.get(w)||this.T.set(w,D)}; vA.prototype.isEndpointCFR=function(w){w=this.removeParams(w);return(w=this.T.get(w))?!1:w===!1&&this.V?!0:null}; vA.prototype.removeParams=function(w){return w.split("?")[0]}; vA.prototype.removeParams=vA.prototype.removeParams;vA.prototype.isEndpointCFR=vA.prototype.isEndpointCFR;vA.prototype.requestComplete=vA.prototype.requestComplete;vA.getInstance=cA;g.I(BA,g.Ej);g.y=BA.prototype;g.y.rI=function(){return this.T.rI()}; g.y.E_=function(w){this.T.T=w}; g.y.BT=function(){var w=window.navigator.onLine;return w===void 0?!0:w}; g.y.b5=function(){this.V=!0}; g.y.listen=function(w,D){return this.T.listen(w,D)}; g.y.fH=function(w){w=sA(this.T,w);w.then(function(D){g.hY("use_cfr_monitor")&&cA().requestComplete("generate_204",D)}); return w}; BA.prototype.sendNetworkCheckRequest=BA.prototype.fH;BA.prototype.listen=BA.prototype.listen;BA.prototype.enableErrorFlushing=BA.prototype.b5;BA.prototype.getWindowStatus=BA.prototype.BT;BA.prototype.networkStatusHint=BA.prototype.E_;BA.prototype.isNetworkAvailable=BA.prototype.rI;BA.getInstance=C7l;g.I(g.fu,g.Ej);g.fu.prototype.rI=function(){var w=g.w3("yt.networkStatusManager.instance.isNetworkAvailable");return w?w.bind(this.V)():!0}; g.fu.prototype.E_=function(w){var D=g.w3("yt.networkStatusManager.instance.networkStatusHint").bind(this.V);D&&D(w)}; g.fu.prototype.fH=function(w){var D=this,M;return g.B(function(L){M=g.w3("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(D.V);return g.hY("skip_network_check_if_cfr")&&cA().isEndpointCFR("generate_204")?L.return(new Promise(function(Z){var k;D.E_(((k=window.navigator)==null?void 0:k.onLine)||!0);Z(D.rI())})):M?L.return(M(w)):L.return(!0)})};var qR;g.I(r4,g4);r4.prototype.writeThenSend=function(w,D){D||(D={});D=XV(w,D);g.eY()||(this.T=!1);g4.prototype.writeThenSend.call(this,w,D)}; r4.prototype.sendThenWrite=function(w,D,M){D||(D={});D=XV(w,D);g.eY()||(this.T=!1);g4.prototype.sendThenWrite.call(this,w,D,M)}; r4.prototype.sendAndWrite=function(w,D){D||(D={});D=XV(w,D);g.eY()||(this.T=!1);g4.prototype.sendAndWrite.call(this,w,D)}; r4.prototype.awaitInitialization=function(){return this.L.promise};var hpC=g.KI.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.mC("ytNetworklessLoggingInitializationOptions",hpC);g.TG.prototype.isReady=function(){!this.config_&&l6T()&&(this.config_=g.ZF());return!!this.config_};var xPB,Qn,zG;xPB=g.KI.ytPubsubPubsubInstance||new g.IF;Qn=g.KI.ytPubsubPubsubSubscribedKeys||{};zG=g.KI.ytPubsubPubsubTopicToKeys||{};g.JK=g.KI.ytPubsubPubsubIsSynchronous||{};g.IF.prototype.subscribe=g.IF.prototype.subscribe;g.IF.prototype.unsubscribeByKey=g.IF.prototype.mY;g.IF.prototype.publish=g.IF.prototype.publish;g.IF.prototype.clear=g.IF.prototype.clear;g.mC("ytPubsubPubsubInstance",xPB);g.mC("ytPubsubPubsubTopicToKeys",zG);g.mC("ytPubsubPubsubIsSynchronous",g.JK); g.mC("ytPubsubPubsubSubscribedKeys",Qn);var IPx={};g.I(Yr,g.X);Yr.prototype.append=function(w){if(!this.V)throw Error("This does not support the append operation");w=w.Dv();this.Dv().appendChild(w)}; g.I(CV,Yr);CV.prototype.Dv=function(){return this.T};g.I(lG,g.X);lG.prototype.onTouchStart=function(w){this.G=!0;this.V=w.touches.length;this.T.isActive()&&(this.T.stop(),this.W=!0);w=w.touches;this.Y=Nya(this,w)||w.length!=1;var D=w.item(0);this.Y||!D?this.B=this.U=Infinity:(this.U=D.clientX,this.B=D.clientY);for(D=this.L.length=0;D=0)}if(D||w&&Math.pow(w.clientX-this.U,2)+Math.pow(w.clientY-this.B,2)>25)this.D=!0}; lG.prototype.onTouchEnd=function(w){var D=w.changedTouches;D&&this.G&&this.V==1&&!this.D&&!this.W&&!this.Y&&Nya(this,D)&&(this.y7=w,this.T.start());this.V=w.touches.length;this.V===0&&(this.D=this.G=!1,this.L.length=0);this.W=!1};var Ea=Date.now().toString();var $r={};var xr=Symbol("injectionDeps");dH.prototype.toString=function(){return"InjectionToken("+this.name+")"}; gja.prototype.resolve=function(w){return w instanceof yW?NY(this,w.key,[],!0):NY(this,w,[])};var HJ;var gH=window;var FS=g.hY("web_enable_lifecycle_monitoring")&&RR()!==0,cQK=g.hY("web_enable_lifecycle_monitoring");s3I.prototype.cancel=function(){for(var w=g.x(this.T),D=w.next();!D.done;D=w.next())D=D.value,D.jobId===void 0||D.uK||this.scheduler.JH(D.jobId),D.uK=!0;this.V.resolve()};g.y=Gh.prototype;g.y.install=function(w){this.plugins.push(w);return this}; g.y.uninstall=function(){var w=this;g.rR.apply(0,arguments).forEach(function(D){D=w.plugins.indexOf(D);D>-1&&w.plugins.splice(D,1)})}; g.y.transition=function(w,D){var M=this;FS&&F0l(this.state);var L=this.transitions.find(function(k){return Array.isArray(k.from)?k.from.find(function(b){return b===M.state&&k.to===w}):k.from===M.state&&k.to===w}); if(L){this.V&&(aPG(this.V),this.V=void 0);ByG(this,w,D);this.state=w;FS&&oR(this.state);L=L.action.bind(this);var Z=this.plugins.filter(function(k){return k[w]}).map(function(k){return k[w]}); L(vjJ(this,Z),D)}else throw Error("no transition specified from "+this.state+" to "+w);}; g.y.m57=function(w){var D=g.rR.apply(1,arguments);g.Ja();for(var M=g.x(w),L=M.next(),Z={};!L.done;Z={SD:void 0},L=M.next())Z.SD=L.value,M3S(function(k){return function(){aR(k.SD.name);cJ(function(){return k.SD.callback.apply(k.SD,g.tG(D))}); vJ(k.SD.name)}}(Z))}; g.y.UrL=function(w){var D=g.rR.apply(1,arguments),M,L,Z,k;return g.B(function(b){b.T==1&&(g.Ja(),M=g.x(w),L=M.next(),Z={});if(b.T!=3){if(L.done)return b.KV(0);Z.gi=L.value;Z.H1=void 0;k=function(C){return function(){aR(C.gi.name);var l=cJ(function(){return C.gi.callback.apply(C.gi,g.tG(D))}); Bh(l)?C.H1=g.hY("web_lifecycle_error_handling_killswitch")?l.then(function(){vJ(C.gi.name)}):l.then(function(){vJ(C.gi.name)},function(E){GQK(E); vJ(C.gi.name)}):vJ(C.gi.name)}}(Z); M3S(k);return Z.H1?g.c(b,Z.H1,3):b.KV(3)}Z={gi:void 0,H1:void 0};L=M.next();return b.KV(2)})}; g.y.Ma=function(w){var D=g.rR.apply(1,arguments),M=this,L=w.map(function(Z){return{If:function(){aR(Z.name);cJ(function(){return Z.callback.apply(Z,g.tG(D))}); vJ(Z.name)}, priority:sa(M,Z)}}); L.length&&(this.V=new s3I(L))}; g.kx.Object.defineProperties(Gh.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var fV;g.I(BJ,Gh);BJ.prototype.W=function(w,D){var M=this;this.T=g.SY(0,function(){M.currentState==="application_navigating"&&M.transition("none")},5E3); w(D==null?void 0:D.event)}; BJ.prototype.Y=function(w,D){this.T&&(g.vf.JH(this.T),this.T=null);w(D==null?void 0:D.event)};var C1=[];g.mC("yt.logging.transport.getScrapedGelPayloads",function(){return C1});qY.prototype.storePayload=function(w,D){w=rH(w);this.store[w]?this.store[w].push(D):(this.V={},this.store[w]=[D]);this.T++;g.hY("more_accurate_gel_parser")&&(D=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(D));return w}; qY.prototype.smartExtractMatchingEntries=function(w){if(!w.keys.length)return[];for(var D=XS(this,w.keys.splice(0,1)[0]),M=[],L=0;L=0){L=!1;break a}}L=!0}L&&(D=n1(D))&&this.oH(D)}}; g.y.QE=function(w){return w}; g.y.onTouchStart=function(w){this.nV.onTouchStart(w)}; g.y.onTouchMove=function(w){this.nV.onTouchMove(w)}; g.y.onTouchEnd=function(w){if(this.nV)this.nV.onTouchEnd(w)}; g.y.oH=function(w){this.layoutId?this.w9.executeCommand(w,this.layoutId):(w=new g.qA("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.HL(w))}; g.y.createServerVe=function(w,D){this.api.createServerVe(w,this);this.api.setTrackingParams(w,D)}; g.y.logVisibility=function(w,D){this.api.hasVe(w)&&this.api.logVisibility(w,D,this.interactionLoggingClientData)}; g.y.oJ=function(){this.clear(null);this.gt(this.pV);for(var w=g.x(this.c_),D=w.next();!D.done;D=w.next())this.gt(D.value);g.Lb.prototype.oJ.call(this)};g.I(gs,Zq); gs.prototype.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);this.T=D;if(D.text==null&&D.icon==null)g.jn(Error("ButtonRenderer did not have text or an icon set."));else{switch(D.style||null){case "STYLE_UNKNOWN":w="ytp-ad-button-link";break;default:w=null}w!=null&&g.AB(this.element,w);D.text!=null&&(w=g.bI(D.text),g.s3(w)||(this.element.setAttribute("aria-label",w),this.L=new g.Lb({Z:"span",J:"ytp-ad-button-text",LV:w}),g.T(this,this.L),this.L.CV(this.element)));D.accessibilityData&&D.accessibilityData.accessibilityData&& D.accessibilityData.accessibilityData.label&&!g.s3(D.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",D.accessibilityData.accessibilityData.label);D.icon!=null&&(D=jG(D.icon,this.D),D!=null&&(this.V=new g.Lb({Z:"span",J:"ytp-ad-button-icon",N:[D]}),g.T(this,this.V)),this.W?yv(this.element,this.V.element,0):this.V.CV(this.element))}}; gs.prototype.clear=function(){this.hide()}; gs.prototype.onClick=function(w){Zq.prototype.onClick.call(this,w);w=g.x(fxK(this));for(var D=w.next();!D.done;D=w.next())D=D.value,this.layoutId?this.w9.executeCommand(D,this.layoutId):g.HL(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.I(R1,g.X);R1.prototype.oJ=function(){this.V&&g.iC(this.V);this.T.clear();o1=null;g.X.prototype.oJ.call(this)}; R1.prototype.register=function(w,D){D&&this.T.set(w,D)}; var o1=null;g.I(GL,Zq); GL.prototype.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);w=D.hoverText||null;D=D.button&&g.Q(D.button,g.YF)||null;D==null?g.HL(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new gs(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,void 0,void 0,void 0,void 0,this.L),g.T(this,this.button),this.button.init(Of("button"),D,this.macros),w&&this.button.element.setAttribute("aria-label",g.bI(w)),this.button.CV(this.element),this.B&&!g.mp(this.button.element, "ytp-ad-clickable")&&g.AB(this.button.element,"ytp-ad-clickable"),this.L&&g.AB(this.button.element,"ytp-ad-hover-text-button--clean-player"),w&&(this.V=new g.Lb({Z:"div",J:"ytp-ad-hover-text-container"}),this.W&&(D=new g.Lb({Z:"div",J:"ytp-ad-hover-text-callout"}),D.CV(this.V.element),g.T(this,D)),g.T(this,this.V),this.V.CV(this.element),D=nb(w),yv(this.V.element,D,0)),this.show())}; GL.prototype.hide=function(){this.button&&this.button.hide();this.V&&this.V.hide();Zq.prototype.hide.call(this)}; GL.prototype.show=function(){this.button&&this.button.show();Zq.prototype.show.call(this)};g.I(a1,Zq); a1.prototype.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);M=(w=D.thumbnail)&&sW(w)||"";g.s3(M)?Math.random()<.01&&g.jn(Error("Found AdImage without valid image URL")):(this.T?g.Qv(this.element,"backgroundImage","url("+M+")"):l5(this.element,{src:M}),l5(this.element,{alt:w&&w.accessibility&&w.accessibility.label||""}),D&&D.adRendererCommands&&D.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; a1.prototype.clear=function(){this.hide()};g.I(vv,Zq);g.y=vv.prototype;g.y.hide=function(){Zq.prototype.hide.call(this);this.L&&this.L.focus()}; g.y.show=function(){this.L=document.activeElement;Zq.prototype.show.call(this);this.D.focus()}; g.y.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);this.V=D;D.dialogMessages||D.title!=null?D.confirmLabel==null?g.HL(Error("ConfirmDialogRenderer.confirmLabel was not set.")):D.cancelLabel==null?g.HL(Error("ConfirmDialogRenderer.cancelLabel was not set.")):XgK(this,D):g.HL(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.y.clear=function(){g.NA(this.T);this.hide()}; g.y.xN=function(){this.hide()}; g.y.Bb=function(){var w=this.V.cancelEndpoint;w&&(this.layoutId?this.w9.executeCommand(w,this.layoutId):g.HL(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.y.M4=function(){var w=this.V.confirmNavigationEndpoint||this.V.confirmEndpoint;w&&(this.layoutId?this.w9.executeCommand(w,this.layoutId):g.HL(Error("Missing layoutId for confirm dialog.")));this.hide()};g.I(cv,Zq);g.y=cv.prototype; g.y.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);this.L=D;if(D.defaultText==null&&D.defaultIcon==null)g.HL(Error("ToggleButtonRenderer must have either text or icon set."));else if(D.defaultIcon==null&&D.toggledIcon!=null)g.HL(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(D.style){switch(D.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":w="ytp-ad-toggle-button-default-style";break;default:w=null}w!=null&&g.AB(this.D,w)}w={};D.defaultText? (M=g.bI(D.defaultText),g.s3(M)||(w.buttonText=M,this.api.X().experiments.ek("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",M),this.api.X().experiments.ek("fix_h5_toggle_button_a11y")&&this.V.setAttribute("aria-label",M))):g.L6(this.W_,!1);D.defaultTooltip&&(w.tooltipText=D.defaultTooltip,this.T.hasAttribute("aria-label")||this.V.setAttribute("aria-label",D.defaultTooltip));D.defaultIcon?(M=jG(D.defaultIcon),this.updateValue("untoggledIconTemplateSpec",M),D.toggledIcon?(this.V7= !0,M=jG(D.toggledIcon),this.updateValue("toggledIconTemplateSpec",M)):(g.L6(this.B,!0),g.L6(this.W,!1)),g.L6(this.T,!1)):g.L6(this.V,!1);g.WD(w)||this.update(w);D.isToggled&&(g.AB(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(D.isToggled));Bv(this);this.j(this.element,"change",this.yK);this.show()}}; g.y.onClick=function(w){this.c_.length>0&&(this.toggleButton(!this.isToggled()),this.yK());Zq.prototype.onClick.call(this,w)}; g.y.yK=function(){g.Lt(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var w=g.x(TQl(this,this.isToggled())),D=w.next();!D.done;D=w.next())D=D.value,this.layoutId?this.w9.executeCommand(D,this.layoutId):g.HL(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Bv(this)}; g.y.clear=function(){this.hide()}; g.y.toggleButton=function(w){g.Lt(this.D,"ytp-ad-toggle-button-toggled",w);this.T.checked=w;Bv(this)}; g.y.isToggled=function(){return this.T.checked};g.I(fb,U4);fb.prototype.W=function(w){if(Array.isArray(w)){w=g.x(w);for(var D=w.next();!D.done;D=w.next())D=D.value,D instanceof uRR&&this.L(D)}};g.I(qX,Zq);g.y=qX.prototype;g.y.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);D.reasons?D.confirmLabel==null?g.HL(Error("AdFeedbackRenderer.confirmLabel was not set.")):(D.cancelLabel==null&&g.jn(Error("AdFeedbackRenderer.cancelLabel was not set.")),D.title==null&&g.jn(Error("AdFeedbackRenderer.title was not set.")),z6J(this,D)):g.HL(Error("AdFeedbackRenderer.reasons were not set."))}; g.y.clear=function(){dQ(this.W);dQ(this.B);this.D.length=0;this.hide()}; g.y.hide=function(){this.T&&this.T.hide();this.V&&this.V.hide();Zq.prototype.hide.call(this);this.L&&this.L.focus()}; g.y.show=function(){this.T&&this.T.show();this.V&&this.V.show();this.L=document.activeElement;Zq.prototype.show.call(this);this.W.focus()}; g.y.wE=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.y.q49=function(){this.hide()}; rs.prototype.Dv=function(){return this.T.element}; rs.prototype.getCommand=function(){return this.V}; rs.prototype.isChecked=function(){return this.L.checked};g.I(eG,vv);eG.prototype.xN=function(w){vv.prototype.xN.call(this,w);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; eG.prototype.Bb=function(w){vv.prototype.Bb.call(this,w);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; eG.prototype.M4=function(w){vv.prototype.M4.call(this,w);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.I(Xl,Zq);g.y=Xl.prototype; g.y.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);this.W=D;if(D.dialogMessage==null&&D.title==null)g.HL(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{D.confirmLabel==null&&g.jn(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(w=D.closeOverlayRenderer&&g.Q(D.closeOverlayRenderer,g.YF)||null)this.T=new gs(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.T(this,this.T),this.T.init(Of("button"),w,this.macros),this.T.CV(this.element);D.title&&(w=g.bI(D.title),this.updateValue("title",w));if(D.adReasons)for(w=D.adReasons,M=0;M=this.Jc?(this.V7.hide(),this.jk=!0,this.publish("i")):this.L&&this.L.isTemplated()&&(w=Math.max(0,Math.ceil((this.Jc-w)/1E3)),w!=this.Nd&&(SG(this.L,{TIME_REMAINING:String(w)}),this.Nd=w)))}};g.I(Kb,Q9);g.y=Kb.prototype; g.y.init=function(w,D,M){Q9.prototype.init.call(this,w,D,M);if(D.image&&D.image.thumbnail)if(D.headline)if(D.description)if((w=D.actionButton&&g.Q(D.actionButton,g.YF))&&w.navigationEndpoint){var L=this.api.getVideoData(2);if(L!=null)if(D.image&&D.image.thumbnail){var Z=D.image.thumbnail.thumbnails;Z!=null&&Z.length>0&&g.s3(g.sQ(Z[0].url))&&(Z[0].url=L.profilePicture)}else g.jn(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.L.init(Of("ad-image"),D.image,M);this.W.init(Of("ad-text"), D.headline,M);this.D.init(Of("ad-text"),D.description,M);this.V.init(Of("button"),w,M);M=Xr(this.V.element);e3(this.V.element,M+" This link opens in new tab");this.V7=w.navigationEndpoint;this.api.kd()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.VK.bind(this));this.W_=D.startMs||0;JS(this)}else g.HL(Error("FlyoutCtaRenderer has no valid action button."));else g.HL(Error("FlyoutCtaRenderer has no description AdText."));else g.HL(Error("FlyoutCtaRenderer has no headline AdText.")); else g.jn(Error("FlyoutCtaRenderer has no image."))}; g.y.onClick=function(w){Q9.prototype.onClick.call(this,w);this.api.pauseVideo();!g.Ug(this.V.element,w.target)&&this.V7&&(this.layoutId?this.w9.executeCommand(this.V7,this.layoutId):g.HL(Error("Missing layoutId for flyout cta.")))}; g.y.p7=function(){if(this.T){var w=this.T.getProgressState();(w&&w.current||this.Jc)&&1E3*w.current>=this.W_&&(zL(this),g.D6(this.element,"ytp-flyout-cta-inactive"),this.V.element.removeAttribute("tabIndex"))}}; g.y.sM=function(){this.clear()}; g.y.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.VK.bind(this))}; g.y.show=function(){this.V&&this.V.show();Q9.prototype.show.call(this)}; g.y.hide=function(){this.V&&this.V.hide();Q9.prototype.hide.call(this)}; g.y.VK=function(w){w=="hidden"?this.show():this.hide()};g.I(mP,Zq);g.y=mP.prototype; g.y.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);this.T=D;if(this.T.rectangle)for(w=this.T.likeButton&&g.Q(this.T.likeButton,Nf),D=this.T.dislikeButton&&g.Q(this.T.dislikeButton,Nf),this.L.init(Of("toggle-button"),w,M),this.V.init(Of("toggle-button"),D,M),this.j(this.element,"change",this.LQ),this.D.show(100),this.show(),M=g.x(this.T&&this.T.impressionCommands||[]),w=M.next();!w.done;w=M.next())w=w.value,this.layoutId?this.w9.executeCommand(w,this.layoutId):g.HL(Error("Missing layoutId for instream user sentiment."))}; g.y.clear=function(){this.hide()}; g.y.hide=function(){this.L.hide();this.V.hide();Zq.prototype.hide.call(this)}; g.y.show=function(){this.L.show();this.V.show();Zq.prototype.show.call(this)}; g.y.LQ=function(){gRK(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.Q7("onYtShowToast",this.T.postMessageAction);this.D.hide()}; g.y.onClick=function(w){this.c_.length>0&&this.LQ();Zq.prototype.onClick.call(this,w)};g.I(AS,g.X);g.y=AS.prototype;g.y.oJ=function(){this.reset();g.X.prototype.oJ.call(this)}; g.y.reset=function(){g.NA(this.D);this.Y=!1;this.T&&this.T.stop();this.W.stop();this.L&&(this.L=!1,this.G.play())}; g.y.start=function(){this.reset();this.D.j(this.V,"mouseover",this.oA,this);this.D.j(this.V,"mouseout",this.z4,this);this.y7&&(this.D.j(this.V,"focusin",this.oA,this),this.D.j(this.V,"focusout",this.z4,this));this.T?this.T.start():(this.Y=this.L=!0,g.Qv(this.V,{opacity:this.B}))}; g.y.oA=function(){this.L&&(this.L=!1,this.G.play());this.W.stop();this.T&&this.T.stop()}; g.y.z4=function(){this.Y?this.W.start():this.T&&this.T.start()}; g.y.C2=function(){this.L||(this.L=!0,this.U.play(),this.Y=!0)};var kVK=[new wJ("b.f_",!1,0),new wJ("j.s_",!1,2),new wJ("r.s_",!1,4),new wJ("e.h_",!1,6),new wJ("i.s_",!0,8),new wJ("s.t_",!1,10),new wJ("p.h_",!1,12),new wJ("s.i_",!1,14),new wJ("f.i_",!1,16),new wJ("a.b_",!1,18),new wJ("a.o_",!1),new wJ("g.o_",!1,22),new wJ("p.i_",!1,24),new wJ("p.m_",!1),new wJ("n.k_",!0,20),new wJ("i.f_",!1),new wJ("a.s_",!0),new wJ("m.c_",!1),new wJ("n.h_",!1,26),new wJ("o.p_",!1),new wJ("m.p_",!0,28),new wJ("o.a_",!1),new wJ("d.p_",!1),new wJ("e.i_",!1)].reduce(function(w,D){w[D.V]= D;return w},{});g.I(Cm,Q9);g.y=Cm.prototype; g.y.init=function(w,D,M){Q9.prototype.init.call(this,w,D,M);this.V7=D;(this.W_=Y6x(this))&&g.jn(Error("hasAdControlInClickCommands_ is true."));if(!D||g.WD(D))g.HL(Error("SkipButtonRenderer was not specified or empty."));else if(!D.message||g.WD(D.message))g.HL(Error("SkipButtonRenderer.message was not specified or empty."));else if(w=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},D=jG(w),D==null?g.HL(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+w.iconType+".")): (this.api.X().C("disable_touch_events_on_skip_button")&&(D.S=Object.assign({},D.S,{"aria-hidden":"true",crE:"false"})),this.L=new g.Lb({Z:"button",Yt:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],N:[{Z:"span",J:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",N:[D]}]}),g.T(this,this.L),this.L.CV(this.D.element),this.V=new uI(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,"ytp-ad-skip-button-text"),this.W&&this.V.element.classList.add("ytp-ad-skip-button-text-centered"), this.V.init(Of("ad-text"),this.V7.message,M),g.T(this,this.V),yv(this.L.element,this.V.element,0)),!this.api.X().C("disable_touch_events_on_skip_button")){var L=L===void 0?null:L;M=this.api.X();!(this.c_.length>0)&&M.V&&(Kg?0:"ontouchstart"in document.documentElement&&(mZK()||C6()))&&(this.gt(this.pV),L&&this.gt(L),this.c_=[this.j(this.element,"touchstart",this.onTouchStart,this),this.j(this.element,"touchmove",this.onTouchMove,this),this.j(this.element,"touchend",this.onTouchEnd,this)])}}; g.y.clear=function(){this.Jc.reset();this.hide()}; g.y.hide=function(){this.D.hide();this.V&&this.V.hide();zL(this);Q9.prototype.hide.call(this)}; g.y.onClick=function(w){if(this.L!=null){if(w){var D=w||window.event;D.returnValue=!1;D.preventDefault&&D.preventDefault()}var M;if(LgJ(w,{contentCpn:((M=this.api.getVideoData(1))==null?void 0:M.clientPlaybackNonce)||""})===0)this.api.Q7("onAbnormalityDetected");else if(Q9.prototype.onClick.call(this,w),this.publish("j"),this.api.Q7("onAdSkip"),this.jk||!this.W_)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.y.QE=function(w){if(!this.jk)return this.W_&&Zg("SkipButton click commands not pruned while ALC exist"),w;var D,M=(D=g.Q(w,g.lQ))==null?void 0:D.commands;if(!M)return w;w=[];for(D=0;D=this.W&&CEl(this,!0)};g.I(pm,gs);pm.prototype.init=function(w,D,M){gs.prototype.init.call(this,w,D,M);w=!1;D.text!=null&&(w=g.bI(D.text),w=!g.s3(w));w?D.navigationEndpoint==null?g.jn(Error("No visit advertiser clickthrough provided in renderer,")):D.style!=="STYLE_UNKNOWN"?g.jn(Error("Button style was not a link-style type in renderer,")):this.show():g.jn(Error("No visit advertiser text was present in the renderer."))};g.I(Wq,Zq); Wq.prototype.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);w=D.text;g.s3(kb(w))?g.jn(Error("SimpleAdBadgeRenderer has invalid or empty text")):(w&&w.text&&(D=w.text,this.L&&!this.V&&(D=this.api.X(),D=w.text+" "+(D&&D.V?"\u2022":"\u00b7")),D={text:D,isTemplated:w.isTemplated},w.style&&(D.style=w.style),w.targetId&&(D.targetId=w.targetId),w=new uI(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),w.init(Of("simple-ad-badge"),D,M),w.CV(this.element),g.T(this,w)),this.show())}; Wq.prototype.clear=function(){this.hide()};g.I(hP,K1);g.I(tP,g.mI);g.y=tP.prototype;g.y.KK=function(){return this.durationMs}; g.y.stop=function(){this.T&&this.handler.gt(this.T)}; g.y.M$=function(w){this.V={seekableStart:0,seekableEnd:this.durationMs/1E3,current:w.current};this.publish("h")}; g.y.getProgressState=function(){return this.V}; g.y.Zw=function(w){g.Y0(w,2)&&this.publish("g")};g.I($0,g.mI);g.y=$0.prototype;g.y.KK=function(){return this.durationMs}; g.y.start=function(){this.T||(this.T=!0,this.timer.start())}; g.y.stop=function(){this.T&&(this.T=!1,this.timer.stop())}; g.y.M$=function(){this.Yk+=100;var w=!1;this.Yk>this.durationMs&&(this.Yk=this.durationMs,this.timer.stop(),w=!0);this.V={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Yk/1E3};this.publish("h");w&&this.publish("g")}; g.y.getProgressState=function(){return this.V};g.I(ya,Q9);g.y=ya.prototype;g.y.init=function(w,D,M){Q9.prototype.init.call(this,w,D,M);var L;if(D==null?0:(L=D.templatedCountdown)==null?0:L.templatedAdText){w=D.templatedCountdown.templatedAdText;if(!w.isTemplated){g.jn(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.V=new uI(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);this.V.init(Of("ad-text"),w,{});this.V.CV(this.element);g.T(this,this.V)}this.show()}; g.y.clear=function(){this.hide()}; g.y.hide=function(){zL(this);Q9.prototype.hide.call(this)}; g.y.sM=function(){this.hide()}; g.y.p7=function(){if(this.T!=null){var w=this.T.getProgressState();if(w!=null&&w.current!=null&&this.V){var D=this.T instanceof tP?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:w.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof $0?w.seekableEnd:this.api.getDuration(2,!1);w=w.current;var M,L,Z=((M=this.api.getVideoData())==null?0:(L=M.rH)==null?0:L.call(M))?Math.max(D-w,0):D-w;SG(this.V,{FORMATTED_AD_DURATION_REMAINING:String(g.iQ(Z)), TIME_REMAINING:String(Math.ceil(Z))})}}}; g.y.show=function(){JS(this);Q9.prototype.show.call(this)};g.I(Is,uI);Is.prototype.onClick=function(w){uI.prototype.onClick.call(this,w);this.api.onAdUxClicked(this.componentType)};g.I(x0,Zq);x0.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});if(w=D.content){g.N1(this.element,w);var M,L;D=((M=D.interaction)==null?void 0:(L=M.accessibility)==null?void 0:L.label)||w;this.element.setAttribute("aria-label",D)}else g.HL(Error("AdSimpleAttributedString does not have text content"))}; x0.prototype.clear=function(){this.hide()}; x0.prototype.onClick=function(w){Zq.prototype.onClick.call(this,w)};g.I(Nz,Zq); Nz.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});(w=D.label)&&w.content&&!g.s3(w.content)?(this.adBadgeText.init(Of("ad-simple-attributed-string"),new Ux(w)),(D=D.adPodIndex)&&D.content&&!g.s3(D.content)&&(this.T=new x0(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),this.T.CV(this.element),g.T(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(Of("ad-simple-attributed-string"),new Ux(D))),this.element.classList.add(this.V?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.HL(Error("No label is returned in AdBadgeViewModel."))}; Nz.prototype.show=function(){this.adBadgeText.show();var w;(w=this.T)==null||w.show();Zq.prototype.show.call(this)}; Nz.prototype.hide=function(){this.adBadgeText.hide();var w;(w=this.T)==null||w.hide();Zq.prototype.hide.call(this)};g.I(Hq,Zq);Hq.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});(w=D.adPodIndex)&&w.content&&!g.s3(w.content)&&(this.T=new x0(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),this.T.CV(this.element),g.T(this,this.T),this.T.init(Of("ad-simple-attributed-string"),new Ux(w)),D.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()}; Hq.prototype.show=function(){var w;(w=this.T)==null||w.show();Zq.prototype.show.call(this)}; Hq.prototype.hide=function(){var w;(w=this.T)==null||w.hide();Zq.prototype.hide.call(this)};g.I(jU,Zq); jU.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});if(D!=null&&D.text){var M;if(((M=D.text)==null?0:M.content)&&!g.s3(D.text.content)){this.T=new g.Lb({Z:"div",J:"ytp-ad-disclosure-banner__text",LV:D.text.content});g.T(this,this.T);this.T.CV(this.element);var L,Z;w=((L=D.interaction)==null?void 0:(Z=L.accessibility)==null?void 0:Z.label)||D.text.content;this.element.setAttribute("aria-label",w);var k;if((k=D.interaction)==null?0:k.onTap)this.V=new g.Lb({Z:"div",J:"ytp-ad-disclosure-banner__chevron",N:[g.EW()]}), g.T(this,this.V),this.V.CV(this.element),this.api.X().C("enable_ad_disclosure_banner_a11y_fix")&&(qh(this.element),this.element.setAttribute("tabindex","0"));this.show()}}else g.HL(Error("No banner text found in AdDisclosureBanner."))}; jU.prototype.clear=function(){this.hide()};g.I(os,g.Lb);os.prototype.M$=function(){var w=this.V.getProgressState(),D=w.seekableEnd;this.api.getPresentingPlayerType()===2&&(D=this.L?this.L/1E3:w.seekableEnd);this.progressBar.style.width=Rs(new gJ(w.seekableStart,D),w.current,0)*100+"%"}; os.prototype.onStateChange=function(){g.Y2(this.api.X())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.V.subscribe("h",this.M$,this),this.M$()):this.T!==-1&&(this.hide(),this.V.mY(this.T),this.T=-1))};g.I(nm,Zq); nm.prototype.init=function(w,D,M,L){Zq.prototype.init.call(this,w,D,M);if(D.skipOrPreviewRenderer){if(w=g.Q(D.skipOrPreviewRenderer,aK))M=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.V,this.B),M.CV(this.Md),M.init(Of("skip-button"),w,this.macros),g.T(this,M);if(w=g.Q(D.skipOrPreviewRenderer,aK))var Z=w.skipOffsetMilliseconds}D.brandInteractionRenderer&&(w=D.brandInteractionRenderer.brandInteractionRenderer,M=new mP(this.api,this.layoutId,this.interactionLoggingClientData,this.w9), M.CV(this.W_),M.init(Of("instream-user-sentiment"),w,this.macros),g.T(this,M));if(w=g.Q(D,ZRr))if(w=g.Q(w,ZRr))M=new Kb(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.V,!!D.showWithoutLinkedMediaLayout),g.T(this,M),M.CV(this.W),M.init(Of("flyout-cta"),w,this.macros);L=L&&L.videoAdDurationSeconds;D.adBadgeRenderer&&(M=D.adBadgeRenderer,w=g.Q(M,Qb),w!=null?(M=new Nz(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,!1),g.T(this,M),M.CV(this.T),M.init(Of("ad-badge"), w,this.macros),this.L=M.element):(w=M.simpleAdBadgeRenderer,w==null&&(w={text:{text:"Ad",isTemplated:!1}}),M=new Wq(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,!0),g.T(this,M),M.CV(this.T),M.init(Of("simple-ad-badge"),w,this.macros)));D.adPodIndex&&(w=g.Q(D.adPodIndex,tws),w!=null&&(M=new Hq(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,M),M.CV(this.T),M.init(Of("ad-pod-index"),w)));D.adDurationRemaining&&!D.showWithoutLinkedMediaLayout&&(w=D.adDurationRemaining.adDurationRemainingRenderer, w==null&&(w={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),L=new ya(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.V,L,!1),g.T(this,L),L.CV(this.T),L.init(Of("ad-duration-remaining"),w,this.macros));D.adInfoRenderer&&(L=g.Q(D.adInfoRenderer,kF))&&(w=new TL(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.element,void 0,!1),g.T(this,w),this.L!==null?this.T.insertBefore(w.element,this.L.nextSibling):w.CV(this.T), w.init(Of("ad-info-hover-text-button"),L,this.macros));D.visitAdvertiserRenderer&&(w=g.Q(D.visitAdvertiserRenderer,g.YF))&&(M=Wgx(this)&&this.D?this.D:this.T)&&(L=new pm(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,L),L.CV(M),L.init(Of("visit-advertiser"),w,this.macros),qh(L.element),w=Xr(L.element),e3(L.element,w+" This link opens in new tab"));!(L=this.api.X())||g.k2(L)||g.w0(L)||L.controlsType!="3"&&!L.disableOrganicUi||(Z=new os(this.api,this.V,Z,!1),Z.CV(this.Jc), g.T(this,Z));D.adDisclosureBannerRenderer&&(D=g.Q(D.adDisclosureBannerRenderer,hIr))&&(Z=new jU(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),Z.CV(this.V7),Z.init(Of("ad-disclosure-banner"),D),g.T(this,Z));this.api.X().C("enable_updated_html5_player_focus_style")&&g.AB(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; nm.prototype.clear=function(){this.hide()};g.sx.prototype.flush=function(w,D){w=w===void 0?[]:w;D=D===void 0?!1:D;if(g.hY("enable_client_streamz_web")){w=g.x(w);for(var M=w.next();!M.done;M=w.next())M=V5K(M.value),this.T&&gB(M,YR,2,this.T),M={serializedIncrementBatch:g.oJ(M.L())},g.DD("streamzIncremented",M,{sendIsolatedPayload:D})}}; g.I(t$K,g.sx);var upx=new Map;as.prototype.set=function(w,D,M){M=M!==void 0?Date.now()+M:void 0;this.T.set(w,D,M)}; as.prototype.get=function(w){return this.T.get(w)}; as.prototype.remove=function(w){this.T.remove(w)};var ifT=null;var qz=null,rJ=null,eU=null,xDr=null;g.mC("yt.www.ads.eventcache.getLastCompanionData",function(){return qz}); g.mC("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.mC("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return rJ}); g.mC("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return eU}); g.mC("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return xDr});var HfS=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Xs.prototype.handleResponse=function(w,D){if(!D)throw Error("request needs to be passed into ConsistencyService");var M,L;D=((M=D.oK.context)==null?void 0:(L=M.request)==null?void 0:L.consistencyTokenJars)||[];var Z;(w=(Z=w.responseContext)==null?void 0:Z.consistencyTokenJar)&&this.replace(D,w)}; Xs.prototype.replace=function(w,D){w=g.x(w);for(var M=w.next();!M.done;M=w.next())delete this.T[M.value.encryptedTokenJarContents];gqr(this,D)};var oCB=window.location.hostname.split(".").slice(-2).join("."),G6;uQ.getInstance=function(){G6=g.w3("yt.clientLocationService.instance");G6||(G6=new uQ,g.mC("yt.clientLocationService.instance",G6));return G6}; g.y=uQ.prototype; g.y.setLocationOnInnerTubeContext=function(w){w.client||(w.client={});if(this.T)w.client.locationInfo||(w.client.locationInfo={}),w.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),w.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),w.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),w.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.L||this.locationPlayabilityToken)w.client.locationPlayabilityToken=this.L|| this.locationPlayabilityToken}; g.y.handleResponse=function(w){var D;w=(D=w.responseContext)==null?void 0:D.locationPlayabilityToken;w!==void 0&&(this.locationPlayabilityToken=w,this.T=void 0,g.Xg("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=TN(this))&&this.localStorage.set("yt-location-playability-token",w,15552E3):g.n7("YT_CL",JSON.stringify({loctok:w}),15552E3,oCB,!0))}; g.y.clearLocationPlayabilityToken=function(w){w==="TVHTML5"?(this.localStorage=TN(this))&&this.localStorage.remove("yt-location-playability-token"):g.Gu("YT_CL");this.L=void 0;this.V!==-1&&(clearTimeout(this.V),this.V=-1)}; g.y.getCurrentPositionFromGeolocation=function(){var w=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var D=!1,M=1E4;g.Xg("INNERTUBE_CLIENT_NAME")==="MWEB"&&(D=!0,M=15E3);return new Promise(function(L,Z){navigator.geolocation.getCurrentPosition(function(k){w.T=k;L(k)},function(k){Z(k)},{enableHighAccuracy:D, maximumAge:0,timeout:M})})}; g.y.createUnpluggedLocationInfo=function(w){var D={};w=w.coords;if(w==null?0:w.latitude)D.latitudeE7=Math.floor(w.latitude*1E7);if(w==null?0:w.longitude)D.longitudeE7=Math.floor(w.longitude*1E7);if(w==null?0:w.accuracy)D.locationRadiusMeters=Math.round(w.accuracy);return D}; g.y.createLocationInfo=function(w){var D={};w=w.coords;if(w==null?0:w.latitude)D.latitudeE7=Math.floor(w.latitude*1E7);if(w==null?0:w.longitude)D.longitudeE7=Math.floor(w.longitude*1E7);return D};g.y=GVk.prototype;g.y.contains=function(w){return Object.prototype.hasOwnProperty.call(this.T,w)}; g.y.get=function(w){if(this.contains(w))return this.T[w]}; g.y.set=function(w,D){this.T[w]=D}; g.y.iy=function(){return Object.keys(this.T)}; g.y.remove=function(w){delete this.T[w]};Qa.prototype.getModuleId=function(w){return w.serviceId.getModuleId()}; Qa.prototype.get=function(w){a:{var D=this.mappings.get(w.toString());switch(D.type){case "mapping":w=D.value;break a;case "factory":D=D.value();this.mappings.set(w.toString(),{type:"mapping",value:D});w=D;break a;default:w=p2(D)}}return w}; Qa.prototype.registerService=function(w,D){this.mappings.set(w.toString(),{type:"mapping",value:D});return w}; new Qa;var sZ={},sCK=(sZ.WEB_UNPLUGGED="^unplugged/",sZ.WEB_UNPLUGGED_ONBOARDING="^unplugged/",sZ.WEB_UNPLUGGED_OPS="^unplugged/",sZ.WEB_UNPLUGGED_PUBLIC="^unplugged/",sZ.WEB_CREATOR="^creator/",sZ.WEB_KIDS="^kids/",sZ.WEB_EXPERIMENTS="^experiments/",sZ.WEB_MUSIC="^music/",sZ.WEB_REMIX="^music/",sZ.WEB_MUSIC_EMBEDDED_PLAYER="^music/",sZ.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",sZ);Va.prototype.W=function(w,D,M){D=D===void 0?{}:D;M=M===void 0?bZ:M;var L={context:g.SU(w.clickTrackingParams,!1,this.D)};var Z=this.V(w);if(Z){this.T(L,Z,D);var k;D=g.zN(this.L());(Z=(k=g.Q(w.commandMetadata,g.xU))==null?void 0:k.apiUrl)&&(D=Z);k=tDl(sO(D));w=Object.assign({},{command:w},void 0);L={input:k,mx:a_(k),oK:L,config:w};L.config.WB?L.config.WB.identity=M:L.config.WB={identity:M};return L}M=new g.qA("Error: Failed to create Request from Command.",w);g.HL(M)}; g.kx.Object.defineProperties(Va.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.I(Pq,Va);g.I(Ox,Pq);Ox.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",mx:a_("/getDatasyncIdsEndpoint","GET"),oK:{}}}; Ox.prototype.L=function(){return[]}; Ox.prototype.V=function(){}; Ox.prototype.T=function(){};var nCl={},pAI=(nCl.GET_DATASYNC_IDS=JP(Ox),nCl);var av={},FXB=(av["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",av["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",av["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",av["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",av["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",av["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",av["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", av["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",av["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",av["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",av["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",av["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",av["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",av["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",av["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", av["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",av["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",av["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",av["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",av["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",av["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",av["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", av["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",av.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",av["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",av["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",av["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",av["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",av["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",av["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", av["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",av["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",av["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",av["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",av["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",av["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",av["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",av["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",av["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",av["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",av.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",av["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",av["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",av["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",av["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",av["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",av["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",av["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",av["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",av["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",av["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",av["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",av["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",av["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",av["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",av["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",av["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",av["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",av["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",av["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",av["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",av["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", av["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",av["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",av["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",av["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",av["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",av["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",av["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",av["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",av["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", av["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",av["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",av["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",av["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",av["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",av["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",av["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",av["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", av),v3={},r5S=(v3.auto_search="LATENCY_ACTION_AUTO_SEARCH",v3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",v3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",v3.app_startup="LATENCY_ACTION_APP_STARTUP",v3.browse="LATENCY_ACTION_BROWSE",v3.cast_splash="LATENCY_ACTION_CAST_SPLASH",v3.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",v3.channels="LATENCY_ACTION_CHANNELS",v3.chips="LATENCY_ACTION_CHIPS",v3.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",v3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", v3.editor="LATENCY_ACTION_EDITOR",v3.embed="LATENCY_ACTION_EMBED",v3.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",v3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",v3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",v3.explore="LATENCY_ACTION_EXPLORE",v3.favorites="LATENCY_ACTION_FAVORITES",v3.home="LATENCY_ACTION_HOME",v3.inboarding="LATENCY_ACTION_INBOARDING",v3.landing="LATENCY_ACTION_LANDING",v3.learning="LATENCY_ACTION_LEARNING", v3.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",v3.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",v3.library="LATENCY_ACTION_LIBRARY",v3.live="LATENCY_ACTION_LIVE",v3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",v3.management="LATENCY_ACTION_MANAGEMENT",v3.mini_app="LATENCY_ACTION_MINI_APP_PLAY",v3.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",v3.onboarding="LATENCY_ACTION_ONBOARDING",v3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", v3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",v3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",v3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",v3.prebuffer="LATENCY_ACTION_PREBUFFER",v3.prefetch="LATENCY_ACTION_PREFETCH",v3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",v3.profile_switcher="LATENCY_ACTION_LOGIN",v3.projects="LATENCY_ACTION_PROJECTS",v3.reel_watch="LATENCY_ACTION_REEL_WATCH",v3.results="LATENCY_ACTION_RESULTS",v3.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", v3.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",v3.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",v3.review="LATENCY_ACTION_REVIEW",v3.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",v3.search_ui="LATENCY_ACTION_SEARCH_UI",v3.search_suggest="LATENCY_ACTION_SUGGEST",v3.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",v3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",v3.seek="LATENCY_ACTION_PLAYER_SEEK",v3.settings="LATENCY_ACTION_SETTINGS",v3.store="LATENCY_ACTION_STORE", v3.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",v3.tenx="LATENCY_ACTION_TENX",v3.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",v3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",v3.watch="LATENCY_ACTION_WATCH",v3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",v3["watch,watch7"]="LATENCY_ACTION_WATCH",v3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",v3["watch,watch7ad"]="LATENCY_ACTION_WATCH",v3["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",v3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", v3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",v3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",v3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",v3.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",v3.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",v3.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",v3.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",v3);Object.assign(r5S,FXB);g.I(kK,Yo);var A5S=new Cu("aft-recorded",kK);var GeB=g.KI.ytLoggingGelSequenceIdObj_||{};g.mC("ytLoggingGelSequenceIdObj_",GeB);var CQ=g.KI.ytLoggingLatencyUsageStats_||{};g.mC("ytLoggingLatencyUsageStats_",CQ);bA.prototype.tick=function(w,D,M,L){lA(this,"tick_"+w+"_"+D)||g.DD("latencyActionTicked",{tickName:w,clientActionNonce:D},{timestamp:M,cttAuthInfo:L})}; bA.prototype.info=function(w,D,M){var L=Object.keys(w).join("");lA(this,"info_"+L+"_"+D)||(w=Object.assign({},w),w.clientActionNonce=D,g.DD("latencyActionInfo",w,{cttAuthInfo:M}))}; bA.prototype.jspbInfo=function(w,D,M){for(var L="",Z=0;Z=Z.length?(D.append(Z),w-=Z.length):w?(D.append(new Uint8Array(Z.buffer,Z.byteOffset,w)),M.append(new Uint8Array(Z.buffer,Z.byteOffset+w,Z.length-w)),w=0):M.append(Z);return{u7:D,Tg:M}}; A_.prototype.isFocused=function(w){return w>=this.L&&w=64&&(this.Y.set(w.subarray(0,64-this.V),this.V),D=64-this.V,this.V=0,MCK(this,this.Y,0));for(;D+64<=M;D+=64)MCK(this,w,D);D=this.start&&(w=2&&M.ssdaiAdsConfig&&Zg("Unexpected ad placement renderers length",w.slot,null,{length:L.length});var Z;((Z=M.adSlots)==null?0:Z.some(function(k){var b,C;return((b=g.Q(k,EX))==null?void 0:(C=b.adSlotMetadata)==null?void 0:C.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||L.some(function(k){var b,C,l,E; return!!((b=k.renderer)==null?0:(C=b.linearAdSequenceRenderer)==null?0:(l=C.linearAds)==null?0:l.length)||!((E=k.renderer)==null||!E.instreamVideoAdRenderer)})||g9G(w)})}; z8.prototype.qU=function(){E9K(this.T)};VG.prototype.tU=function(){var w=this;lSG(this.V,function(){var D=J3(w.slot.clientMetadata,"metadata_type_ad_break_request_data");return D.cueProcessedMs?w.T.get().fetch({xR:D.getAdBreakUrl,Fx:new g.ue(D.Mb,D.xQ),cueProcessedMs:D.cueProcessedMs}):w.T.get().fetch({xR:D.getAdBreakUrl,Fx:new g.ue(D.Mb,D.xQ)})})}; VG.prototype.qU=function(){E9K(this.V)};PI.prototype.tU=function(){var w=this.slot.clientMetadata,D,M=(D=this.slot.fulfilledLayout)!=null?D:J3(w,"metadata_type_fulfilled_layout");uSI(this.callback,this.slot,M)}; PI.prototype.qU=function(){k_(this.callback,this.slot,new O("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")};Kc.prototype.build=function(w,D){return D.fulfilledLayout||OT(D,{L6:["metadata_type_fulfilled_layout"]})?new PI(w,D):this.L(w,D)};g.I(mt,Kc); mt.prototype.L=function(w,D){if(OT(D,{L6:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new z8(w,D,this.T,this.V,this.Hd,this.D5,this.FE,this.aJ,this.Ll);if(OT(D,{L6:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new VG(w,D,this.T,this.V,this.Hd,this.D5);throw new O("Unsupported slot with type: "+D.slotType+" and client metadata: "+zP(D.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.I(AL,Kc);AL.prototype.L=function(w,D){throw new O("Unsupported slot with type: "+D.slotType+" and client metadata: "+zP(D.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.y=RbS.prototype;g.y.vz=function(){return this.slot}; g.y.hc=function(){return this.layout}; g.y.init=function(){}; g.y.release=function(){}; g.y.startRendering=function(w){if(w.layoutId!==this.layout.layoutId)this.callback.Vy(this.slot,w,new SK("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 D=J3(w.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Q$(this.slot,w),uBG(this.L, this.slot,D)):Zg("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,w)}}; g.y.OV=function(w,D){w.layoutId!==this.layout.layoutId?this.callback.Vy(this.slot,w,new SK("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.WA(this.slot,w,D),n9J(this),FIa(this))};g.I(Z1,g.mI);g.y=Z1.prototype;g.y.vz=function(){return this.V.slot}; g.y.hc=function(){return this.V.layout}; g.y.init=function(){this.L.get().addListener(this)}; g.y.release=function(){this.L.get().removeListener(this);this.dispose()}; g.y.sO=function(){}; g.y.qp=function(){}; g.y.eB=function(){}; g.y.b7=function(){}; g.y.startRendering=function(w){var D=this;Ll(this.V,w,function(){return void D.kq()})}; g.y.kq=function(){this.L.get().kq(this.T)}; g.y.OV=function(w,D){var M=this;Ll(this.V,w,function(){var L=M.L.get();fax(L,M.T,3);M.T=[];M.callback.WA(M.slot,w,D)})}; g.y.oJ=function(){this.L.xt()||this.L.get().removeListener(this);g.mI.prototype.oJ.call(this)}; g.kx.Object.defineProperties(Z1.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.V.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.V.layout}}});WS.prototype.Ui=function(w,D){D=D===void 0?!1:D;var M=(this.L.get(w)||[]).concat();if(D=D&&v9x(w)){var L=this.L.get(D);L&&M.push.apply(M,g.tG(L))}$3(this,w,M);this.T.add(w);D&&this.T.add(D)}; WS.prototype.l9=function(w,D){D=D===void 0?!1:D;if(!this.T.has(w)){var M=D&&v9x(w);M&&(D=!this.T.has(M));this.Ui(w,D)}};g.I(fSa,K1);g.I(Us,Z1);g.y=Us.prototype;g.y.Ky=function(w,D){Cl("ads-engagement-panel-layout",w,this.Y.get().CP,this.FE.get(),this.D,this.W,this.vz(),this.hc(),D)}; g.y.startRendering=function(w){bH(this.kt,this.vz(),this.hc(),g.Q(this.hc().renderingContent,qV),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(D,M,L,Z,k){return new fSa(D,M,L,Z,k)},this.T); Z1.prototype.startRendering.call(this,w)}; g.y.Q$=function(w,D){this.W===D.layoutId&&(this.D===null?this.D=this.FE.get().au():Zg("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.oJ=function(){Lc(this.RO(),this);Z1.prototype.oJ.call(this)};g.I(rnJ,K1);g.I(x3,Z1);g.y=x3.prototype;g.y.Ky=function(w,D){Cl("banner-image",w,this.Y.get().CP,this.FE.get(),this.D,this.W,this.vz(),this.hc(),D)}; g.y.startRendering=function(w){bH(this.kt,this.vz(),this.hc(),g.Q(this.hc().renderingContent,B1),this.callback,"metadata_type_banner_image_layout_view_model",function(D,M,L,Z,k){return new rnJ(D,M,L,Z,k)},this.T); Z1.prototype.startRendering.call(this,w)}; g.y.Q$=function(w,D){this.W===D.layoutId&&(this.D===null?this.D=this.FE.get().au():Zg("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.oJ=function(){Lc(this.RO(),this);Z1.prototype.oJ.call(this)};g.I(N0,K1);g.I(HS,Z1);g.y=HS.prototype;g.y.Ky=function(w,D){Cl("action-companion",w,this.Y.get().CP,this.FE.get(),this.D,this.W,this.vz(),this.hc(),D)}; g.y.startRendering=function(w){bH(this.kt,this.vz(),this.hc(),g.Q(this.hc().renderingContent,aG),this.callback,"metadata_type_action_companion_ad_renderer",function(D,M,L,Z,k){return new N0(D,M,L,Z,k)},this.T); Z1.prototype.startRendering.call(this,w)}; g.y.Q$=function(w,D){D.layoutId===this.layout.layoutId?this.kt.l9("impression"):this.W===D.layoutId&&(this.D===null?this.D=this.FE.get().au():Zg("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.oJ=function(){Lc(this.RO(),this);Z1.prototype.oJ.call(this)};g.I(TOJ,K1);g.I(jH,Z1);g.y=jH.prototype;g.y.Ky=function(w,D){Cl("image-companion",w,this.Y.get().CP,this.FE.get(),this.D,this.W,this.vz(),this.hc(),D)}; g.y.startRendering=function(w){bH(this.kt,this.vz(),this.hc(),g.Q(this.hc().renderingContent,v1),this.callback,"metadata_type_image_companion_ad_renderer",function(D,M,L,Z,k){return new TOJ(D,M,L,Z,k)},this.T); Z1.prototype.startRendering.call(this,w)}; g.y.Q$=function(w,D){D.layoutId===this.layout.layoutId?this.kt.l9("impression"):this.W===D.layoutId&&(this.D===null?this.D=this.FE.get().au():Zg("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.oJ=function(){Lc(this.RO(),this);Z1.prototype.oJ.call(this)};g.I(Sfj,K1);g.I(gA,Z1);g.y=gA.prototype;g.y.Ky=function(w,D){Cl("shopping-companion",w,this.Y.get().CP,this.FE.get(),this.D,this.W,this.vz(),this.hc(),D)}; g.y.startRendering=function(w){bH(this.kt,this.vz(),this.hc(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(D,M,L,Z,k){return new Sfj(D,M,L,Z,k)},this.T); Z1.prototype.startRendering.call(this,w)}; g.y.Q$=function(w,D){D.layoutId===this.layout.layoutId?this.kt.l9("impression"):this.W===D.layoutId&&(this.D===null?this.D=this.FE.get().au():Zg("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.oJ=function(){Lc(this.RO(),this);Z1.prototype.oJ.call(this)};g.I(oH,Z1);g.y=oH.prototype;g.y.startRendering=function(w){bH(this.kt,this.vz(),this.hc(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(D,M,L,Z,k){return new N0(D,M,L,Z,k)},this.T); Z1.prototype.startRendering.call(this,w)}; g.y.Q$=function(){}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.oJ=function(){Lc(this.RO(),this);Z1.prototype.oJ.call(this)}; g.y.Ky=function(){};g.y=O1G.prototype;g.y.vz=function(){return this.slot}; g.y.hc=function(){return this.layout}; g.y.init=function(){this.aJ.get().addListener(this);this.aJ.get().iY.push(this);var w=J3(this.layout.clientMetadata,"metadata_type_video_length_seconds"),D=J3(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");lH(this.layout.UL)&&D$(this.V$.get(),this.layout.layoutId,{nD:D,H7:w,listener:this})}; g.y.release=function(){this.aJ.get().removeListener(this);sTD(this.aJ.get(),this);lH(this.layout.UL)&&MS(this.V$.get(),this.layout.layoutId)}; g.y.startRendering=function(w){this.callback.Q$(this.slot,w)}; g.y.OV=function(w,D){DkQ(this.D5.get())&&!this.T&&(this.kt.l9("abandon"),this.T=!0);this.callback.WA(this.slot,w,D)}; g.y.Qg=function(w){switch(w.id){case "part2viewed":this.kt.l9("start");this.kt.l9("impression");break;case "videoplaytime25":this.kt.l9("first_quartile");break;case "videoplaytime50":this.kt.l9("midpoint");break;case "videoplaytime75":this.kt.l9("third_quartile");break;case "videoplaytime100":DkQ(this.D5.get())?this.T||(this.kt.l9("complete"),this.T=!0):this.kt.l9("complete");IH(this.kt)&&dA(this.kt,Infinity,!0);MNZ(this.D5.get())&&RH(this.V,Infinity,!0);break;case "engagedview":IH(this.kt)||this.kt.l9("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Zg("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.y.onVolumeChange=function(){}; g.y.DK=function(){}; g.y.jw=function(){}; g.y.q2=function(){}; g.y.onFullscreenToggled=function(){}; g.y.q5=function(){}; g.y.kx=function(){}; g.y.r5=function(w){MNZ(this.D5.get())&&RH(this.V,w*1E3,!1);IH(this.kt)&&dA(this.kt,w*1E3,!1)}; g.y.pP=function(){}; g.y.BM=function(){this.kt.l9("active_view_measurable")}; g.y.AD=function(){this.kt.l9("active_view_viewable")}; g.y.s_=function(){this.kt.l9("active_view_fully_viewable_audible_half_duration")}; g.y.pz=function(){this.kt.l9("audio_measurable")}; g.y.Rt=function(){this.kt.l9("audio_audible")};g.I(nl,Z1);g.y=nl.prototype;g.y.init=function(){Z1.prototype.init.call(this);var w=J3(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),D={adsClientData:this.layout.F_};this.T.push(new hP(w,this.layout.layoutId,J3(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),D,!0))}; g.y.gf=function(){this.D||this.aJ.get().resumeVideo(1)}; g.y.startRendering=function(w){Z1.prototype.startRendering.call(this,w);Ee(this.aJ.get(),"ad-showing");this.callback.Q$(this.slot,w);this.W.D1=this}; g.y.OV=function(w,D){Z1.prototype.OV.call(this,w,D);pF(this.aJ.get(),"ad-showing");P9(this.W,this)}; g.y.Ky=function(w){switch(w){case "ad-info-icon-button":(this.D=this.aJ.get().U3(1))||this.aJ.get().pauseVideo();break;case "visit-advertiser":this.aJ.get().pauseVideo()}}; g.y.oJ=function(){Z1.prototype.oJ.call(this)};g.I(Fn,K1);g.I(Gx,Z1);g.y=Gx.prototype;g.y.startRendering=function(w){bH(this.kt,this.vz(),this.hc(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(D,M,L,Z,k){return new Fn(D,M,L,Z,k)},this.T); Z1.prototype.startRendering.call(this,w)}; g.y.Q$=function(){}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.oJ=function(){Lc(this.RO(),this);Z1.prototype.oJ.call(this)}; g.y.Ky=function(){};g.I(aH,K1);g.I(vS,Z1);vS.prototype.init=function(){Z1.prototype.init.call(this);this.T.push(new aH(g.Q(this.layout.renderingContent,Ae),this.layout.layoutId,{adsClientData:this.layout.F_}))}; vS.prototype.Ky=function(){LP(this.D.get(),this.W)&&Y3(this.FE.get(),3)}; vS.prototype.startRendering=function(w){Z1.prototype.startRendering.call(this,w);this.callback.Q$(this.slot,w)}; vS.prototype.oJ=function(){Z1.prototype.oJ.call(this)};g.I(cS,K1);g.I(BS,Z1);BS.prototype.init=function(){Z1.prototype.init.call(this);var w=g.Q(this.layout.renderingContent,PS)||J3(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),D=k3(this.kt);this.T.push(new cS(w,D,this.layout.layoutId,{adsClientData:this.layout.F_},!0,!0))}; BS.prototype.startRendering=function(w){Z1.prototype.startRendering.call(this,w);this.callback.Q$(this.slot,w)}; BS.prototype.Ky=function(w,D){if(D===this.layout.layoutId)switch(w){case "skip-button":var M;(w=(M=J3(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&w.tO(this.vz(),this.layout)}}; BS.prototype.oJ=function(){Z1.prototype.oJ.call(this)};q0.prototype.build=function(w,D,M,L){if(fl(L,{L6:["metadata_type_ad_break_response_data"],Rc:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new RbS(w,M,L,this.V,this.L,this.T);throw new SK("Unsupported layout with type: "+L.layoutType+" and client metadata: "+zP(L.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.I(Anj,K1);g.I(rA,Z1);g.y=rA.prototype;g.y.Ky=function(w,D){Cl("ads-engagement-panel",w,this.Y.get().CP,this.FE.get(),this.D,this.W,this.vz(),this.hc(),D)}; g.y.startRendering=function(w){bH(this.kt,this.vz(),this.hc(),g.Q(this.hc().renderingContent,c1),this.callback,"metadata_type_ads_engagement_panel_renderer",function(D,M,L,Z,k){return new Anj(D,M,L,Z,k)},this.T); Z1.prototype.startRendering.call(this,w)}; g.y.Q$=function(w,D){D.layoutId===this.layout.layoutId?this.kt.l9("impression"):this.W===D.layoutId&&(this.D===null?this.D=this.FE.get().au():Zg("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.oJ=function(){Lc(this.RO(),this);Z1.prototype.oJ.call(this)};g.I(eH,Z1);g.y=eH.prototype;g.y.Ky=function(w,D){Cl("top-banner-image-text-icon-buttoned",w,this.Y.get().CP,this.FE.get(),this.D,this.W,this.vz(),this.hc(),D)}; g.y.startRendering=function(w){bH(this.kt,this.vz(),this.hc(),g.Q(this.hc().renderingContent,f$),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(D,M,L,Z,k){return new Fn(D,M,L,Z,k)},this.T); Z1.prototype.startRendering.call(this,w)}; g.y.Q$=function(w,D){this.W===D.layoutId&&(this.D===null?this.D=this.FE.get().au():Zg("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.oJ=function(){Lc(this.RO(),this);Z1.prototype.oJ.call(this)};MGC.prototype.build=function(w,D,M,L){if(fl(L,wvK())||g.Q(L.renderingContent,c1)!==void 0)return new rA(w,M,L,this.OB,this.FE,this.RO,this.V$,this.T);if(fl(L,XLC())||g.Q(L.renderingContent,aG)!==void 0)return new HS(w,M,L,this.OB,this.FE,this.RO,this.V$,this.T);if(fl(L,uUk())||g.Q(L.renderingContent,v1)!==void 0)return new jH(w,M,L,this.OB,this.FE,this.RO,this.V$,this.T);if(fl(L,QDC()))return new gA(w,M,L,this.OB,this.FE,this.RO,this.V$,this.T);if(fl(L,PyT()))return new oH(w,M,L,this.OB,this.FE,this.RO, this.V$,this.T);if(fl(L,ebR())||g.Q(L.renderingContent,B1)!==void 0)return new x3(w,M,L,this.OB,this.FE,this.RO,this.V$,this.T);if(fl(L,DXx())||g.Q(L.renderingContent,f$)!==void 0)return new eH(w,M,L,this.OB,this.FE,this.RO,this.V$,this.T);if(fl(L,KIa()))return new Gx(w,M,L,this.OB,this.FE,this.RO,this.V$,this.T);if(fl(L,qfC())||g.Q(L.renderingContent,qV)!==void 0)return new Us(w,M,L,this.OB,this.FE,this.RO,this.V$,this.T);throw new SK("Unsupported layout with type: "+L.layoutType+" and client metadata: "+ zP(L.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};LPr.prototype.build=function(w,D,M,L){if(fl(L,{L6:["metadata_type_linked_player_bytes_layout_id"],Rc:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new vS(w,M,L,this.OB,this.FE,this.T);throw new SK("Unsupported layout with type: "+L.layoutType+" and client metadata: "+zP(L.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.y=ZbK.prototype;g.y.vz=function(){return this.slot}; g.y.hc=function(){return this.layout}; g.y.init=function(){}; g.y.release=function(){}; g.y.startRendering=function(w){w.layoutId!==this.layout.layoutId?this.callback.Vy(this.slot,w,new SK("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.Q$(this.slot,w),this.kt.l9("impression"),yL(this.Q4,w,"normal"))}; g.y.OV=function(w,D){w.layoutId!==this.layout.layoutId?this.callback.Vy(this.slot,w,new SK("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.WA(this.slot,w,D)};g.y=bbr.prototype;g.y.vz=function(){return this.slot}; g.y.hc=function(){return this.layout}; g.y.init=function(){}; g.y.release=function(){}; g.y.startRendering=function(w){w.layoutId!==this.layout.layoutId?this.callback.Vy(this.slot,w,new SK("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.Q$(this.slot,w),this.kt.l9("impression"),yL(this.Q4,w,"normal"))}; g.y.OV=function(w,D){w.layoutId!==this.layout.layoutId?this.callback.Vy(this.slot,w,new SK("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.WA(this.slot,w,D)};Xn.prototype.build=function(w,D,M,L){if(!this.D5.get().K.X().C("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(fl(L,kLT()))return new ZbK(w,M,L,this.FE,this.Q4)}else if(fl(L,{L6:[],Rc:["LAYOUT_TYPE_FORECASTING"]}))return new bbr(w,M,L,this.FE,this.Q4);throw new SK("Unsupported layout with type: "+L.layoutType+" and client metadata: "+zP(L.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.I(lqI,K1);g.I(Tx,Z1);g.y=Tx.prototype;g.y.init=function(){Z1.prototype.init.call(this);var w=g.Q(this.layout.renderingContent,V_)||J3(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),D={adsClientData:this.layout.F_};this.T.push(new lqI(w,J3(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,D))}; g.y.gf=function(){this.D||this.aJ.get().resumeVideo(2)}; g.y.startRendering=function(w){Z1.prototype.startRendering.call(this,w);this.callback.Q$(this.slot,w);this.W.D1=this}; g.y.OV=function(w,D){Z1.prototype.OV.call(this,w,D);P9(this.W,this)}; g.y.Ky=function(w,D){if(!cI(this.D5.get(),"stop_handling_click_for_non_rendering_overlay_layout")||D===this.layout.layoutId){if(LP(this.Y.get(),this.G))switch(w){case "visit-advertiser-link":Y3(this.FE.get(),3)}switch(w){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.aJ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.aJ.get().U3(2))||this.aJ.get().pauseVideo();break; case "visit-advertiser-link":this.aJ.get().pauseVideo();Ebx(this).Dj();break;case "skip-button":if(w=Ebx(this),this.layout.renderingContent&&!XZ(this.layout.clientMetadata,"metadata_type_dai")||!w||!w.zG){var M;(w=(M=J3(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&w.tO(this.vz(),this.layout)}else Zg("Requesting to skip by LegacyPlayerBytes when components enabled"),w.Hn(this.vz(),this.layout)}}}; g.y.oJ=function(){Z1.prototype.oJ.call(this)};g.I(uH,Z1);g.y=uH.prototype;g.y.init=function(){Z1.prototype.init.call(this);var w=g.Q(this.layout.renderingContent,zx)||J3(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),D={adsClientData:this.layout.F_},M;(M=!!this.layout.renderingContent)||(M=SH(this),M=!(M&&M.zG));this.T.push(new hP(w,this.layout.layoutId,J3(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),D,M))}; g.y.gf=function(){this.D||this.aJ.get().resumeVideo(2)}; g.y.startRendering=function(w){Z1.prototype.startRendering.call(this,w);this.callback.Q$(this.slot,w);this.W.D1=this}; g.y.OV=function(w,D){Z1.prototype.OV.call(this,w,D);P9(this.W,this)}; g.y.Ky=function(w,D){if(!this.D5||!cI(this.D5.get(),"stop_handling_click_for_non_rendering_overlay_layout")||D===this.layout.layoutId){if(LP(this.Y.get(),this.G))switch(w){case "visit-advertiser":Y3(this.FE.get(),3)}switch(w){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.aJ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.aJ.get().U3(2))||this.aJ.get().pauseVideo();break; case "visit-advertiser":this.aJ.get().pauseVideo();SH(this).Dj();break;case "skip-button":if(w=SH(this),this.layout.renderingContent&&!XZ(this.layout.clientMetadata,"metadata_type_dai")||!w||!w.zG){var M;(w=(M=J3(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&w.tO(this.vz(),this.layout)}else Zg("Requesting to skip by LegacyPlayerBytes"),w.Hn(this.vz(),this.layout)}}}; g.y.oJ=function(){Z1.prototype.oJ.call(this)};g.I(WPT,K1);g.I(Q_,Z1);g.y=Q_.prototype;g.y.startRendering=function(w){var D=this;Ll(this.V,w,function(){D.T.push(new WPT(J3(D.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),w.layoutId,w.F_));D.kq();D.callback.Q$(D.slot,w);g.z(w7(D.aJ.get(),1),512)&&D.callback.Vy(D.vz(),D.hc(),new SK("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.y.kx=function(){}; g.y.q5=function(w){if(w.state.isError()){var D;this.callback.Vy(this.vz(),this.hc(),new SK("A player error happened during adNotify",{playerErrorCode:(D=w.state.QL)==null?void 0:D.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.y.onFullscreenToggled=function(){}; g.y.jw=function(){}; g.y.q2=function(){}; g.y.DK=function(){}; g.y.onVolumeChange=function(){}; g.y.Qg=function(){}; g.y.pP=function(){}; g.y.Ky=function(){};g.I(tGI,K1);g.I(JN,Z1);JN.prototype.init=function(){Z1.prototype.init.call(this);var w=g.Q(this.layout.renderingContent,Os),D=k3(this.kt);this.T.push(new tGI(w,D,this.layout.layoutId,{adsClientData:this.layout.F_}))}; JN.prototype.startRendering=function(w){Z1.prototype.startRendering.call(this,w);this.callback.Q$(this.slot,w)}; JN.prototype.Ky=function(w,D){if(D===this.layout.layoutId)switch(w){case "skip-button":var M;(w=(M=J3(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&w.tO(this.vz(),this.layout)}}; JN.prototype.oJ=function(){Z1.prototype.oJ.call(this)};$Xa.prototype.build=function(w,D,M,L){if(w=Kl(w,M,L,this.OB,this.aJ,this.FE,this.V,this.T,this.D5))return w;throw new SK("Unsupported layout with type: "+L.layoutType+" and client metadata: "+zP(L.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.y=w5.prototype;g.y.vz=function(){return this.slot}; g.y.hc=function(){return this.layout}; g.y.init=function(){this.aJ.get().addListener(this);this.aJ.get().iY.push(this);if(this.layout.renderingContent){var w=this.Gh.get();w=SV(w,1).MM/1E3}else w=J3(this.layout.clientMetadata,"metadata_type_video_length_seconds");var D=g.Q(this.layout.renderingContent,O_),M=D?Es(D.pings):J3(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");D=D?aSl(D.pings):J3(this.layout.clientMetadata,"metadata_type_active_view_identifier");lH(this.layout.UL)&&D$(this.V$.get(),this.layout.layoutId, {nD:M,H7:w,listener:this,f9:D})}; g.y.release=function(){this.aJ.get().removeListener(this);sTD(this.aJ.get(),this);lH(this.layout.UL)&&MS(this.V$.get(),this.layout.layoutId)}; g.y.startRendering=function(w){this.callback.Q$(this.slot,w)}; g.y.OV=function(w,D){DT(this,"abandon");this.callback.WA(this.slot,w,D)}; g.y.Qg=function(w){switch(w.id){case "part2viewed":this.kt.l9("start");this.kt.l9("impression");break;case "videoplaytime25":this.kt.l9("first_quartile");break;case "videoplaytime50":this.kt.l9("midpoint");break;case "videoplaytime75":this.kt.l9("third_quartile");break;case "videoplaytime100":DT(this,"complete");IH(this.kt)&&dA(this.kt,Infinity,!0);break;case "engagedview":IH(this.kt)||this.kt.l9("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Zg("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.y.onVolumeChange=function(){}; g.y.DK=function(){}; g.y.jw=function(){}; g.y.q2=function(){}; g.y.onFullscreenToggled=function(){}; g.y.q5=function(w){this.T||(g.Y0(w,4)&&!g.Y0(w,2)?iH(this.kt,"pause"):bQ(w,4)<0&&!(bQ(w,2)<0)&&iH(this.kt,"resume"))}; g.y.kx=function(){}; g.y.r5=function(w){IH(this.kt)&&dA(this.kt,w*1E3,!1)}; g.y.pP=function(){DT(this,"swipe")}; g.y.BM=function(){this.kt.l9("active_view_measurable")}; g.y.AD=function(){this.kt.l9("active_view_viewable")}; g.y.s_=function(){this.kt.l9("active_view_fully_viewable_audible_half_duration")}; g.y.pz=function(){this.kt.l9("audio_measurable")}; g.y.Rt=function(){this.kt.l9("audio_audible")};ibN.prototype.build=function(w,D,M,L){if(M.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.Q(L.renderingContent,O_)!==void 0)return new w5(w,M,L,this.aJ,this.FE,this.D5,this.V$,this.Gh);D=["metadata_type_ad_placement_config"];for(var Z=g.x(hN()),k=Z.next();!k.done;k=Z.next())D.push(k.value);if(fl(L,{L6:D,Rc:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return M.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new w5(w,M,L,this.aJ,this.FE,this.D5,this.V$,this.Gh):new O1G(w,M,L,this.aJ,this.FE, this.Ca,this.D5,this.V$);throw new SK("Unsupported layout with type: "+L.layoutType+" and client metadata: "+zP(L.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var kM={contentCpn:"",e5:new Map};Rxj.prototype.La=function(w,D){var M={};D=Object.assign({},D,(M.cc=this.Ly.MR(),M));this.Ly.K.H_(w,D)};var KXQ,rd; KXQ={aJL:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",u19:"AUTHENTICATION_MALFORMED",RPc:"AUTHENTICATION_MISSING",iJJ:"BAD_REQUEST",HPh:"CAST_SESSION_DEVICE_MISMATCHED",VPk:"CAST_SESSION_VIDEO_MISMATCHED",LbL:"CAST_TOKEN_EXPIRED",zNh:"CAST_TOKEN_FAILED",okt:"CAST_TOKEN_MALFORMED",D2_:"CGI_PARAMS_MALFORMED",nk9:"CGI_PARAMS_MISSING",NKW:"DEVICE_FALLBACK",Lw_:"GENERIC_WITH_LINK_AND_CPN",zUE:"ERROR_HDCP",o8W:"LICENSE",n8t:"VIDEO_UNAVAILABLE",tVD:"FORMAT_UNAVAILABLE",g8k:"GEO_FAILURE", kVE:"HTML5_AUDIO_RENDERER_ERROR",bfW:"GENERIC_WITHOUT_LINK",QqD:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",E8h:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",eUk:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",q1k:"HTML5_SPS_UMP_STATUS_REJECTED",mR9:"INVALID_DRM_MESSAGE",ELE:"PURCHASE_NOT_FOUND",ett:"PURCHASE_REFUNDED",KtW:"RENTAL_EXPIRED",gVE:"RETRYABLE_ERROR",dQ_:"SERVER_ERROR",bmE:"SIGNATURE_EXPIRED",pCh:"STOPPED_BY_ANOTHER_PLAYBACK",soh:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",im9:"STREAMING_NOT_ALLOWED", Bad:"STREAM_LICENSE_NOT_FOUND",VZc:"TOO_MANY_REQUESTS",L4_:"TOO_MANY_REQUESTS_WITH_LINK",zJh:"TOO_MANY_STREAMS_PER_ENTITLEMENT",o7E:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",SDE:"VIDEO_FORBIDDEN",v7k:"VIDEO_NOT_FOUND",m2d:"BROWSER_OR_EXTENSION_ERROR"};rd={}; g.uD=(rd.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.",rd.DEVICE_FALLBACK="Sorry, this video is not available on this device.",rd.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",rd.LICENSE="Sorry, there was an error licensing this video.",rd.VIDEO_UNAVAILABLE= "Video unavailable",rd.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",rd.GEO_FAILURE="This video isn't available in your country.",rd.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",rd.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",rd.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",rd.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", rd.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",rd.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",rd.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",rd.PURCHASE_NOT_FOUND="This video requires payment.",rd.PURCHASE_REFUNDED="This video's purchase has been refunded.",rd.RENTAL_EXPIRED="This video's rental has expired.",rd.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",rd.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",rd.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",rd.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",rd.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",rd.SERVER_ERROR="There was an internal server error. Please try again later.",rd.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",rd.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",rd.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",rd.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",rd.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",rd.TOO_MANY_REQUESTS="Please log in to watch this video.", rd.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",rd.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",rd.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",rd.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",rd.VIDEO_FORBIDDEN="Access to this video is forbidden.",rd.VIDEO_NOT_FOUND="This video can not be found.",rd.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",rd);var mPB;var AsP=g.qc(),wcS=AsP.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!wcS||wcS.length<2)mPB=void 0;else{var D3Z=AsP.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);mPB=D3Z&&D3Z.length===6?Number(D3Z[5].replace("_",".")):0}var PV=mPB,qr=PV>=0;g.I(g.xM,U4);g.xM.prototype.j=function(w,D,M,L,Z){return U4.prototype.j.call(this,w,D,M,L,Z)};var ez={},qH=(ez.FAIRPLAY="fairplay",ez.PLAYREADY="playready",ez.WIDEVINE="widevine",ez.CLEARKEY=null,ez.FLASHACCESS=null,ez.UNKNOWN=null,ez.WIDEVINE_CLASSIC=null,ez);N$.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var XM={},uh=(XM.WIDTH={name:"width",video:!0,valid:640,w2:99999},XM.HEIGHT={name:"height",video:!0,valid:360,w2:99999},XM.FRAMERATE={name:"framerate",video:!0,valid:30,w2:9999},XM.BITRATE={name:"bitrate",video:!0,valid:3E5,w2:2E9},XM.EOTF={name:"eotf",video:!0,valid:"bt709",w2:"catavision"},XM.CHANNELS={name:"channels",video:!1,valid:2,w2:99},XM.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",w2:"invalidformat"},XM.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", w2:"nope"},XM.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",w2:"av99.0.05M.08"},XM.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",w2:"invalid"},XM.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",w2:"false"},XM);var Myr=["h","H"],LMl=["9","("],Zpk=["9h","(h"],k4B=["8","*"],bps=["a","A"],YhZ=["o","O"],C4l=["m","M"],l73=["mac3","MAC3"],ED1=["meac3","MEAC3"],T6={},f0l=(T6.h=Myr,T6.H=Myr,T6["9"]=LMl,T6["("]=LMl,T6["9h"]=Zpk,T6["(h"]=Zpk,T6["8"]=k4B,T6["*"]=k4B,T6.a=bps,T6.A=bps,T6.o=YhZ,T6.O=YhZ,T6.m=C4l,T6.M=C4l,T6.mac3=l73,T6.MAC3=l73,T6.meac3=ED1,T6.MEAC3=ED1,T6),pc3=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),x0T=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var m={},r5=(m["0"]="f",m["160"]="h",m["133"]="h",m["134"]="h",m["135"]="h",m["136"]="h",m["137"]="h",m["264"]="h",m["266"]="h",m["138"]="h",m["298"]="h",m["299"]="h",m["304"]="h",m["305"]="h",m["214"]="h",m["216"]="h",m["374"]="h",m["375"]="h",m["140"]="a",m["141"]="a",m["327"]="sa",m["258"]="m",m["380"]="mac3",m["328"]="meac3",m["161"]="H",m["142"]="H",m["143"]="H",m["144"]="H",m["222"]="H",m["223"]="H",m["145"]="H",m["224"]="H",m["225"]="H",m["146"]="H",m["226"]="H",m["227"]="H",m["147"]="H",m["384"]= "H",m["376"]="H",m["385"]="H",m["377"]="H",m["149"]="A",m["261"]="M",m["381"]="MAC3",m["329"]="MEAC3",m["598"]="9",m["278"]="9",m["242"]="9",m["243"]="9",m["244"]="9",m["775"]="9",m["776"]="9",m["777"]="9",m["778"]="9",m["779"]="9",m["780"]="9",m["781"]="9",m["782"]="9",m["783"]="9",m["247"]="9",m["248"]="9",m["353"]="9",m["355"]="9",m["356"]="9",m["271"]="9",m["577"]="9",m["313"]="9",m["579"]="9",m["272"]="9",m["302"]="9",m["303"]="9",m["407"]="9",m["408"]="9",m["308"]="9",m["315"]="9",m["330"]= "9h",m["331"]="9h",m["332"]="9h",m["333"]="9h",m["334"]="9h",m["335"]="9h",m["336"]="9h",m["337"]="9h",m["338"]="so",m["600"]="o",m["250"]="o",m["251"]="o",m["774"]="o",m["194"]="*",m["195"]="*",m["220"]="*",m["221"]="*",m["196"]="*",m["197"]="*",m["279"]="(",m["280"]="(",m["317"]="(",m["318"]="(",m["273"]="(",m["274"]="(",m["357"]="(",m["358"]="(",m["275"]="(",m["359"]="(",m["360"]="(",m["276"]="(",m["583"]="(",m["584"]="(",m["314"]="(",m["585"]="(",m["561"]="(",m["277"]="(",m["361"]="(h",m["362"]= "(h",m["363"]="(h",m["364"]="(h",m["365"]="(h",m["366"]="(h",m["591"]="(h",m["592"]="(h",m["367"]="(h",m["586"]="(h",m["587"]="(h",m["368"]="(h",m["588"]="(h",m["562"]="(h",m["409"]="(",m["410"]="(",m["411"]="(",m["412"]="(",m["557"]="(",m["558"]="(",m["394"]="1",m["395"]="1",m["396"]="1",m["397"]="1",m["398"]="1",m["399"]="1",m["720"]="1",m["721"]="1",m["400"]="1",m["401"]="1",m["571"]="1",m["402"]="1",m["694"]="1h",m["695"]="1h",m["696"]="1h",m["697"]="1h",m["698"]="1h",m["699"]="1h",m["700"]="1h", m["701"]="1h",m["702"]="1h",m["703"]="1h",m["386"]="3",m["387"]="w",m["406"]="6",m["787"]="1",m["788"]="1",m["548"]="1e",m["549"]="1e",m["550"]="1e",m["551"]="1e",m["809"]="1e",m["810"]="1e",m["552"]="1e",m["811"]="1e",m["812"]="1e",m["553"]="1e",m["813"]="1e",m["814"]="1e",m["554"]="1e",m["815"]="1e",m["816"]="1e",m["555"]="1e",m["817"]="1e",m["818"]="1e",m["572"]="1e",m["556"]="1e",m["645"]="(",m["646"]="(",m["647"]="(",m["648"]="(",m["649"]="(",m["650"]="(",m["651"]="(",m["652"]="(",m["653"]="(", m["654"]="(",m["655"]="(",m["656"]="(",m["657"]="(",m["658"]="(",m["659"]="(",m["660"]="(",m["661"]="(",m["662"]="(",m["663"]="(",m["664"]="(",m["665"]="(",m["666"]="(",m["667"]="(",m["668"]="(",m["669"]="(",m["670"]="(",m["671"]="(",m["672"]="(",m["673"]="(",m["674"]="(h",m["675"]="(h",m["676"]="(h",m["677"]="(h",m["678"]="(h",m["679"]="(h",m["680"]="(h",m["681"]="(h",m["682"]="(h",m["683"]="(h",m["684"]="(h",m["685"]="(h",m["686"]="(h",m["687"]="(h",m["688"]="A",m["689"]="A",m["690"]="A",m["691"]= "MEAC3",m["773"]="i",m["806"]="I",m["805"]="I",m["829"]="9",m["830"]="9",m["831"]="9",m["832"]="9",m["833"]="9",m["834"]="9",m["835"]="9",m["836"]="9",m["892"]="9",m["893"]="9",m["837"]="9",m["838"]="9",m["839"]="9",m["840"]="9",m["841"]="(",m["842"]="(",m["843"]="(",m["844"]="(",m["845"]="(",m["846"]="(",m["847"]="(",m["848"]="(",m["894"]="(",m["895"]="(",m["849"]="(",m["850"]="(",m["851"]="(",m["852"]="(",m["865"]="9",m["866"]="9",m["867"]="9",m["868"]="9",m["869"]="9",m["870"]="9",m["871"]="9", m["872"]="9",m["896"]="9",m["897"]="9",m["873"]="9",m["874"]="9",m["875"]="9",m["876"]="9",m["877"]="(",m["878"]="(",m["879"]="(",m["880"]="(",m["881"]="(",m["882"]="(",m["883"]="(",m["884"]="(",m["898"]="(",m["899"]="(",m["885"]="(",m["886"]="(",m["887"]="(",m["888"]="(",m);var uT={},i5K=(uT.STEREO_LAYOUT_UNKNOWN=0,uT.STEREO_LAYOUT_LEFT_RIGHT=1,uT.STEREO_LAYOUT_TOP_BOTTOM=2,uT);var uJR={ePd:0,QTE:1,Exc:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"},o0G={oVt:0,iSc:124,sQD:144,OSL:220,AVh:240,mQE:340,UTL:360,TaW:480,HmE:588,ydh:608,Vtd:720,LtL:740,u$9:1080,RtE:1100,pOd:1440,B27:2160,zuW:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P", 588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED",1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var Sz,nA,Qg,ydK;Sz={};g.c_=(Sz.auto=0,Sz.tiny=144,Sz.light=144,Sz.small=240,Sz.medium=360,Sz.large=480,Sz.hd720=720,Sz.hd1080=1080,Sz.hd1440=1440,Sz.hd2160=2160,Sz.hd2880=2880,Sz.highres=4320,Sz);nA={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Qg={}; ydK=(Qg.QUALITY_ORDINAL_UNKNOWN=0,Qg.QUALITY_ORDINAL_144P_SAVER=124,Qg.QUALITY_ORDINAL_144P=144,Qg.QUALITY_ORDINAL_240P_SAVER=220,Qg.QUALITY_ORDINAL_240P=240,Qg.QUALITY_ORDINAL_360P_SAVER=340,Qg.QUALITY_ORDINAL_360P=360,Qg.QUALITY_ORDINAL_480P=480,Qg.QUALITY_ORDINAL_608P_SAVER=588,Qg.QUALITY_ORDINAL_608P=608,Qg.QUALITY_ORDINAL_720P=720,Qg.QUALITY_ORDINAL_720P_ENHANCED=740,Qg.QUALITY_ORDINAL_1080P=1080,Qg.QUALITY_ORDINAL_1080P_ENHANCED=1100,Qg.QUALITY_ORDINAL_1440P=1440,Qg.QUALITY_ORDINAL_2160P=2160, Qg.QUALITY_ORDINAL_HIGHRES=9999,Qg);var fH="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");B_.prototype.isHdr=function(){return this.T==="smpte2084"||this.T==="arib-std-b67"};el.prototype.Dr=function(){return this.containerType===2}; el.prototype.isEncrypted=function(){return!!this.f6}; el.prototype.XX=function(){return!!this.audio}; el.prototype.GC=function(){return!!this.video}; var uM=!1,wEl=!1;g.I(p5,g.mI);g.y=p5.prototype;g.y.appendBuffer=function(w,D,M){if(this.VZ.gB()!==this.appendWindowStart+this.start||this.VZ.ZZ()!==this.appendWindowEnd+this.start||this.VZ.jb()!==this.timestampOffset+this.start)this.VZ.supports(1),this.VZ.Du(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.VZ.Pt(this.timestampOffset+this.start);this.VZ.appendBuffer(w,D,M)}; g.y.abort=function(){this.VZ.abort()}; g.y.remove=function(w,D){this.VZ.remove(w+this.start,D+this.start)}; g.y.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.y.clear=function(){this.VZ.clear()}; g.y.Du=function(w,D){this.appendWindowStart=w;this.appendWindowEnd=D}; g.y.Ij=function(){return this.timestampOffset+this.start}; g.y.gB=function(){return this.appendWindowStart}; g.y.ZZ=function(){return this.appendWindowEnd}; g.y.Pt=function(w){this.timestampOffset=w}; g.y.jb=function(){return this.timestampOffset}; g.y.O4=function(w){w=this.VZ.O4(w===void 0?!1:w);return EP(w,this.start,this.end)}; g.y.wV=function(){return this.VZ.wV()}; g.y.wA=function(){return this.VZ.wA()}; g.y.X$=function(){return this.VZ.X$()}; g.y.gT=function(){return this.VZ.gT()}; g.y.rU=function(){this.VZ.rU()}; g.y.JD=function(w){return this.VZ.JD(w)}; g.y.uH=function(){return this.VZ.uH()}; g.y.Yf=function(){return this.VZ.Yf()}; g.y.tI=function(w,D,M){this.VZ.tI(w,D,M)}; g.y.CM=function(w,D,M){this.VZ.CM(w,D,M)}; g.y.y3=function(w,D){return this.VZ.y3(w,D)}; g.y.supports=function(w){return this.VZ.supports(w)}; g.y.gA=function(){return this.VZ.gA()}; g.y.isView=function(){return!0}; g.y.Jn=function(){return this.VZ.Jn()?this.isActive:!1}; g.y.isLocked=function(){return this.zN&&!this.isActive}; g.y.qC=function(w){w=this.VZ.qC(w);w.vw=this.start+"-"+this.end;return w}; g.y.Jv=function(){return this.VZ.Jv()}; g.y.SY=function(){return this.VZ.SY()}; g.y.r8=function(){return this.VZ.r8()}; g.y.oJ=function(){this.VZ.Ya(this.uG);g.mI.prototype.oJ.call(this)};var Bs=!1;g.I(hd,g.mI);g.y=hd.prototype;g.y.appendBuffer=function(w,D,M){this.kH=!1;M&&(this.fE=M);if(w.length){var L;((L=this.rW)==null?0:L.appendBuffer)?this.rW.appendBuffer(w):this.rW?this.rW.append(w):this.lO&&this.lO.webkitSourceAppend(this.id,w)}D&&(D.isEncrypted()&&(this.kD=this.fE),D.type===3&&(this.yy=D),this.FC.push(D.PA()),this.FC.length>4&&this.FC.shift());this.NZ&&(this.NZ.length>=2||w.length>1048576?delete this.NZ:this.NZ.push(w))}; g.y.abort=function(){try{this.rW?this.rW.abort():this.lO&&this.lO.webkitSourceAbort(this.id)}catch(D){if(JCK){var w=new g.qA("Error while abort the source buffer: "+D.name+", "+D.message);g.HL(w)}}this.fE=this.yy=null}; g.y.remove=function(w,D,M){this.kH=!1;var L;if((L=this.rW)==null?0:L.remove)M&&M({b:L5(this.O4()),s:w,e:D}),this.rW.remove(w,D)}; g.y.removeAll=function(){this.remove(this.gB(),this.ZZ())}; g.y.clear=function(){this.X$()||(this.abort(),this.removeAll(),this.kD=this.fE=this.yy=null,this.appendWindowStart=this.timestampOffset=0,this.QJ=ML([],[]),this.kH=!1,this.NZ=WF?[]:void 0,this.rL=!0)}; g.y.gB=function(){if(Bs&&this.GC)return this.appendWindowStart;var w;return((w=this.rW)==null?void 0:w.appendWindowStart)||0}; g.y.ZZ=function(){var w;return((w=this.rW)==null?void 0:w.appendWindowEnd)||0}; g.y.Du=function(w,D){this.rW&&(Bs&&this.GC?(this.appendWindowStart=w,this.rW.appendWindowEnd=D):w>this.gB()?(this.rW.appendWindowEnd=D,this.rW.appendWindowStart=w):(this.rW.appendWindowStart=w,this.rW.appendWindowEnd=D))}; g.y.Ij=function(){return this.timestampOffset}; g.y.Pt=function(w){Bs?this.timestampOffset=w:this.supports(1)&&(this.rW.timestampOffset=w)}; g.y.jb=function(){return Bs?this.timestampOffset:this.supports(1)?this.rW.timestampOffset:0}; g.y.O4=function(w){if(w===void 0?0:w)return this.kH||this.wV()||(this.QJ=this.O4(!1),this.kH=!0),this.QJ;try{return this.rW?this.rW.buffered:this.lO?this.lO.webkitSourceBuffered(this.id):ML([0],[Infinity])}catch(D){return ML([],[])}}; g.y.wV=function(){var w;return((w=this.rW)==null?void 0:w.updating)||!1}; g.y.X$=function(){return this.rL}; g.y.gT=function(){return!this.rL&&this.wV()}; g.y.rU=function(){this.rL=!1}; g.y.JD=function(w){var D=w==null?void 0:w.RJ;w=w==null?void 0:w.containerType;return!D&&!w||D===this.RJ&&w===this.containerType}; g.y.uH=function(){return this.fE}; g.y.Yf=function(){return this.kD}; g.y.y3=function(w,D){return this.containerType!==w||this.RJ!==D}; g.y.tI=function(w,D,M){if(this.containerType!==w||M&&this.y3(w,M))this.supports(4),td()&&this.rW.changeType(D),M&&(this.RJ=M);this.containerType=w}; g.y.CM=function(w,D,M){this.containerType&&this.y3(w,D)&&td()&&this.rW.changeType(M);this.containerType=w;this.RJ=D}; g.y.gA=function(){return this.yy}; g.y.isView=function(){return!1}; g.y.supports=function(w){switch(w){case 1:var D;return((D=this.rW)==null?void 0:D.timestampOffset)!==void 0;case 0:var M;return!((M=this.rW)==null||!M.appendBuffer);case 2:var L;return!((L=this.rW)==null||!L.remove);case 3:var Z,k;return!!(((Z=this.rW)==null?0:Z.addEventListener)&&((k=this.rW)==null?0:k.removeEventListener));case 4:return!(!this.rW||!this.rW.changeType);default:return!1}}; g.y.Jn=function(){return!this.wV()}; g.y.isLocked=function(){return!1}; g.y.qC=function(w){w.to=this.jb();w.up=this.wV();var D,M=((D=this.rW)==null?void 0:D.appendWindowStart)||0,L;D=((L=this.rW)==null?void 0:L.appendWindowEnd)||Infinity;w.aw=M.toFixed(3)+"-"+D.toFixed(3);return w}; g.y.wA=function(){var w;return((w=this.rW)==null?void 0:w.writeHead)||0}; g.y.Jv=function(){for(var w={},D=0;D=7&&(!D||((L=this.Th)==null?0:L.C("mweb_ios_allow_playback_workaround_when_ready")))&&obS(this,function(){g.C7(function(){Sxk(w,w.getCurrentTime(),0)},500)})}return D}; g.y.seekTo=function(w){this.K7()>0&&(qr&&PV<4&&(w=Math.max(.1,w)),this.setCurrentTime(w))}; g.y.Bx=function(){if(!this.V&&this.v_)if(this.v_.W)try{var w;IE(this,{l:"mer",sr:(w=this.Th)==null?void 0:w.tf(),rs:xW(this.v_)});this.v_.clear();this.V=this.v_;this.v_=void 0}catch(D){w=new g.qA("Error while clearing Media Source in MediaElement: "+D.name+", "+D.message),g.HL(w),this.stopVideo()}else this.stopVideo()}; g.y.stopVideo=function(){var w=this;if(!this.V){var D;(D=this.v_)==null||Xqx(D);if(u$R){if(!this.L){var M=new HF;M.then(void 0,function(){}); this.L=M;SVa&&this.pause();g.C7(function(){w.L===M&&(oE(w),M.resolve())},200)}}else oE(this)}}; g.y.dC=function(){var w=this.m5();return C5(w)&&this.getDuration()?b$(w,this.getCurrentTime()):0}; g.y.sy=function(){var w=this.getDuration();return w===Infinity?1:w?this.dC()/w:0}; g.y.qC=function(){try{var w=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:L5(this.As(),",",3),vbu:L5(this.m5()),vbs:L5(this.Ze()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.K7(),vns:""+this.xf(),vec:""+this.qs(),vemsg:this.WI(),vvol:""+this.getVolume(),vdom:""+ +this.FU(),vsrc:""+ +!!this.PH(),vw:""+w.width,vh:""+w.height}}catch(D){return{}}}; g.y.hasError=function(){return this.qs()>0}; g.y.addEventListener=function(w,D){this.D.listen(w,D,!1,this);this.Xx(w)}; g.y.removeEventListener=function(w,D){this.D.gt(w,D,!1,this)}; g.y.dispatchEvent=function(w){if(this.L&&w.type==="pause")return!1;if(QLG){var D,M=((D=w.T)==null?void 0:D.timeStamp)||Infinity;D=M>performance.now()?M-Date.now()+performance.now():M;M=this.V||this.v_;if((M==null?0:M.X$())||D<=((M==null?void 0:M.Y)||0)){var L;IE(this,{l:"mede",sr:(L=this.Th)==null?void 0:L.tf(),et:w.type});return!1}if(this.BD)return IE(this,{l:"medes",et:w.type}),M&&w.type==="seeking"&&(M.Y=performance.now(),this.BD=!1),!1}return this.D.dispatchEvent(w)}; g.y.lF=function(){this.Y=!1}; g.y.jA=function(){this.Y=!0;this.qZ(!0)}; g.y.kX=function(){this.Y&&!this.fK()&&this.qZ(!0)}; g.y.equals=function(w){return!!w&&w.Dv()===this.Dv()}; g.y.oJ=function(){this.G&&this.removeEventListener("volumechange",this.kX);u$R&&oE(this);g.X.prototype.oJ.call(this)}; var u$R=!1,SVa=!1,QLG=!1,z_I=!1;g.y=g.FF.prototype;g.y.isPaused=function(){return g.z(this,4)}; g.y.isPlaying=function(){return g.z(this,8)&&!g.z(this,512)&&!g.z(this,64)&&!g.z(this,2)}; g.y.isOrWillBePlaying=function(){return g.z(this,8)&&!g.z(this,2)&&!g.z(this,1024)}; g.y.isCued=function(){return g.z(this,64)&&!g.z(this,8)&&!g.z(this,4)}; g.y.isBuffering=function(){return g.z(this,1)&&!g.z(this,2)}; g.y.isError=function(){return g.z(this,128)}; g.y.isSuspended=function(){return g.z(this,512)}; g.y.zZ=function(){return g.z(this,64)&&g.z(this,4)}; g.y.toString=function(){return"PSt."+this.state.toString(16)}; var J1={},z6=(J1.BUFFERING="buffering-mode",J1.CUED="cued-mode",J1.ENDED="ended-mode",J1.PAUSED="paused-mode",J1.PLAYING="playing-mode",J1.SEEKING="seeking-mode",J1.UNSTARTED="unstarted-mode",J1);g.I(eV,g.X);g.y=eV.prototype;g.y.b8=function(){return this.L}; g.y.vz=function(){return this.slot}; g.y.hc=function(){return this.layout}; g.y.init=function(){var w=J3(this.layout.clientMetadata,"metadata_type_video_length_seconds"),D=J3(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");lH(this.layout.UL)&&D$(this.V$.get(),this.layout.layoutId,{nD:D,H7:w,listener:this,O3:this.fO()});HIr(this.FE.get(),this);w=this.iO;D=this.layout.layoutId;var M={O3:this.fO()};w.T.set(D,M);this.Av()}; g.y.SM=function(){}; g.y.release=function(){lH(this.layout.UL)&&MS(this.V$.get(),this.layout.layoutId);jTr(this.FE.get(),this);this.iO.T.delete(this.layout.layoutId);this.aZ()}; g.y.gp=function(){}; g.y.h9=function(){}; g.y.startRendering=function(w){CH(XF(this));if(Tb(this,w)){var D=this.T;lM(D.params.yg.D5.get(),!0)&&gbN(D,"p_sr",{});u$(this);this.lN(w);this.fO()||this.Ds(!1)}}; g.y.Q$=function(w,D){if(D.layoutId===this.layout.layoutId){this.eb="rendering";this.V=this.aJ.get().isMuted()||this.aJ.get().getVolume()===0;this.l9("impression");this.l9("start");if(this.aJ.get().isMuted()){PF(this,"mute");var M;w=((M=rk(this))==null?void 0:M.muteCommands)||[];G8(this.Ca.get(),w,this.layout.layoutId)}if(this.aJ.get().isFullscreen()){this.Ui("fullscreen");var L;M=((L=rk(this))==null?void 0:L.fullscreenCommands)||[];G8(this.Ca.get(),M,this.layout.layoutId)}this.fO()||(L=this.cA.get(), L.L&&!L.V&&(L.W=!1,L.V=!0,L.actionType!=="ad_to_video"&&(RA("pbs",void 0,L.actionType),g.hY("finalize_all_timelines")&&ZuI(L.actionType))));this.BO(1);this.Eb(D);var Z;D=((Z=rk(this))==null?void 0:Z.impressionCommands)||[];G8(this.Ca.get(),D,this.layout.layoutId)}}; g.y.mN=function(w,D,M){this.G={Jw:3,TN:w==="load_timeout"?402:400,errorMessage:D.message};this.l9("error");var L;w=((L=rk(this))==null?void 0:L.errorCommands)||[];G8(this.Ca.get(),w,this.layout.layoutId);this.fO()||this.CG.Vy(this.slot,this.layout,D,M)}; g.y.fn=function(){if(this.eb==="rendering"){PF(this,"pause");var w,D=((w=rk(this))==null?void 0:w.pauseCommands)||[];G8(this.Ca.get(),D,this.layout.layoutId);this.BO(2)}}; g.y.xw=function(){if(this.eb==="rendering"){PF(this,"resume");var w,D=((w=rk(this))==null?void 0:w.resumeCommands)||[];G8(this.Ca.get(),D,this.layout.layoutId)}}; g.y.bN=function(w,D){D=D===void 0?!1:D;if(this.eb==="rendering"){var M={currentTimeSec:w,flush:D};EU(this.T,"p_ip",M);dA(this.kt,w*1E3,D);this.V||dA(this.kt,w*1E3,D===void 0?!1:D);var L=this.Lp();if(L){L/=1E3;if(w>=L*.25||D)this.l9("first_quartile"),EU(this.T,"p_fq",M);if(w>=L*.5||D)this.l9("midpoint"),EU(this.T,"p_sq",M);if(w>=L*.75||D)this.l9("third_quartile"),EU(this.T,"p_tq",M);this.D5.get().K.X().experiments.ek("enable_progress_command_flush_on_kabuki")?RH(this.D,w*1E3,D):RH(this.D,w*1E3,APx(this)? D:!1)}}}; g.y.MR=function(){var w;return((w=SV(this.Gh.get(),1))==null?void 0:w.clientPlaybackNonce)||""}; g.y.qI=function(w,D){w.layoutId!==this.layout.layoutId?this.CG.Vy(this.slot,w,new SK("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"):D()}; g.y.WA=function(w,D,M){if(D.layoutId===this.layout.layoutId)switch(this.eb="not_rendering",this.layoutExitReason=void 0,this.fO()||(w=M!=="normal"||this.position+1===this.Y)&&this.Ds(w),this.FW(M),this.BO(0),M){case "abandoned":if(y_(this.kt,"impression")){var L,Z=((L=rk(this))==null?void 0:L.abandonCommands)||[];G8(this.Ca.get(),Z,this.layout.layoutId)}break;case "normal":L=((Z=rk(this))==null?void 0:Z.completeCommands)||[];G8(this.Ca.get(),L,this.layout.layoutId);break;case "skipped":var k;L=((k= rk(this))==null?void 0:k.skipCommands)||[];G8(this.Ca.get(),L,this.layout.layoutId)}}; g.y.zz=function(){return this.layout.layoutId}; g.y.UG=function(){return this.G}; g.y.BM=function(){if(this.eb==="rendering"){this.kt.l9("active_view_measurable");var w,D=((w=rk(this))==null?void 0:w.activeViewMeasurableCommands)||[];G8(this.Ca.get(),D,this.layout.layoutId)}}; g.y.s_=function(){if(this.eb==="rendering"){this.kt.l9("active_view_fully_viewable_audible_half_duration");var w,D=((w=rk(this))==null?void 0:w.activeViewFullyViewableAudibleHalfDurationCommands)||[];G8(this.Ca.get(),D,this.layout.layoutId)}}; g.y.AD=function(){if(this.eb==="rendering"){this.kt.l9("active_view_viewable");var w,D=((w=rk(this))==null?void 0:w.activeViewViewableCommands)||[];G8(this.Ca.get(),D,this.layout.layoutId)}}; g.y.Rt=function(){if(this.eb==="rendering"){this.kt.l9("audio_audible");var w,D=((w=rk(this))==null?void 0:w.activeViewAudioAudibleCommands)||[];G8(this.Ca.get(),D,this.layout.layoutId)}}; g.y.pz=function(){if(this.eb==="rendering"){this.kt.l9("audio_measurable");var w,D=((w=rk(this))==null?void 0:w.activeViewAudioMeasurableCommands)||[];G8(this.Ca.get(),D,this.layout.layoutId)}}; g.y.Ds=function(w){this.cA.get().Ds(J3(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,w,this.position,this.Y,!1)}; g.y.onFullscreenToggled=function(w){if(this.eb==="rendering")if(w){this.Ui("fullscreen");var D,M=((D=rk(this))==null?void 0:D.fullscreenCommands)||[];G8(this.Ca.get(),M,this.layout.layoutId)}else this.Ui("end_fullscreen"),D=((M=rk(this))==null?void 0:M.endFullscreenCommands)||[],G8(this.Ca.get(),D,this.layout.layoutId)}; g.y.onVolumeChange=function(){if(this.eb==="rendering")if(this.aJ.get().isMuted()){PF(this,"mute");var w,D=((w=rk(this))==null?void 0:w.muteCommands)||[];G8(this.Ca.get(),D,this.layout.layoutId)}else PF(this,"unmute"),w=((D=rk(this))==null?void 0:D.unmuteCommands)||[],G8(this.Ca.get(),w,this.layout.layoutId)}; g.y.jw=function(){}; g.y.q2=function(){}; g.y.DK=function(){}; g.y.Qg=function(){}; g.y.pP=function(){}; g.y.Ui=function(w){this.kt.Ui(w,!this.V)}; g.y.l9=function(w){this.kt.l9(w,!this.V)}; g.y.fO=function(){var w=J3(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return w===void 0?(Zg("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.D5.get().fO(w)};g.I(w6,eV);g.y=w6.prototype;g.y.Av=function(){}; g.y.aZ=function(){var w=this.FE.get();w.XS===this&&(w.XS=null);this.timer.stop()}; g.y.gp=function(){this.timer.stop();eV.prototype.fn.call(this)}; g.y.h9=function(){MJ(this);eV.prototype.xw.call(this)}; g.y.Lp=function(){return J3(this.hc().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.y.OV=function(w,D){var M=this;this.qI(w,function(){M.eb!=="rendering_stop_requested"&&(M.eb="rendering_stop_requested",M.layoutExitReason=D,Q3(M,D),M.timer.stop())})}; g.y.M$=function(){var w=Date.now(),D=w-this.Rf;this.Rf=w;this.Yk+=D;this.Yk>=this.Lp()?this.lG():(this.bN(this.Yk/1E3),DN(this,this.Yk))}; g.y.FW=function(){}; g.y.kx=function(){}; g.I(LY,w6);g.y=LY.prototype;g.y.q5=function(w){if(this.eb!=="not_rendering"){w=Jd(this,w);var D=this.aJ.get().getPresentingPlayerType()===2;this.eb==="rendering_start_requested"?D&&mY(w)&&this.SG():D?g.Y0(w,2)?Zg("Receive player ended event during MediaBreak",this.vz(),this.hc()):zb(this,w):this.Kp()}}; g.y.lN=function(){KAk(this);vxr(this.aJ.get());this.FE.get().XS=this;jT("pbp")||jT("pbs")||RA("pbp");jT("pbp","watch")||jT("pbs","watch")||RA("pbp",void 0,"watch");this.SG()}; g.y.Eb=function(w){this.cA.get();var D=J3(w.clientMetadata,"metadata_type_ad_placement_config").kind,M=this.position===0;w=J3(w.clientMetadata,"metadata_type_linked_in_player_layout_type");w={adBreakType:V3(D),adType:EKT(w)};var L=void 0;M?D!=="AD_PLACEMENT_KIND_START"&&(L="video_to_ad"):L="ad_to_ad";xK("ad_mbs",void 0,L);g.Ng(w,L);MJ(this)}; g.y.Kp=function(){this.Rh()}; g.y.lG=function(){DgT(this);this.Rh()}; g.I(ZN,w6);g.y=ZN.prototype;g.y.q5=function(w){this.eb!=="not_rendering"&&(w=Jd(this,w),zb(this,w))}; g.y.lN=function(){Zg("Not used in SSAP")}; g.y.Eb=function(){MJ(this)}; g.y.Kp=function(){Zg("Not used in SSAP")}; g.y.lG=function(){DgT(this);this.CG.lc(this.vz(),this.hc(),"normal")}; g.I(kw,ZN);kw.prototype.OV=function(w,D){var M=this;this.qI(w,function(){LH(M.L,D)&&(M.eb="rendering_stop_requested",M.layoutExitReason=D,Q3(M,D),M.timer.stop())})}; kw.prototype.startRendering=function(w){CH(XF(this));Tb(this,w)&&(u$(this),this.FE.get().XS=this)};g.I(CY,eV);g.y=CY.prototype;g.y.Kp=function(){this.Rh()}; g.y.q5=function(w){if(this.eb!=="not_rendering"){w=Jd(this,w);var D=this.aJ.get().getPresentingPlayerType()===2;this.eb==="rendering_start_requested"?D&&mY(w)&&this.SG():!D||g.Y0(w,2)?this.Rh():zb(this,w)}}; g.y.Av=function(){J3(this.hc().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=J3(this.hc().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.y.aZ=function(){J3(this.hc().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.Cx){var w=this.context.yg,D=this.Cx,M=this.hc().layoutId;if(lM(w.D5.get(),!0)){var L={};w.La("mccru",(L.cid=D,L.p_ac=M,L))}this.zD.get().removeCueRange(this.Cx)}this.Cx=void 0;var Z;(Z=this.wM)==null||Z.dispose();this.Ta&&this.Ta.dispose()}; g.y.lN=function(w){var D=bb(this.D5.get()),M=Yw(this.D5.get());if(D&&M&&!this.fO()){M=J3(w.clientMetadata,"metadata_type_preload_player_vars");var L=this.D5.get();L=g.A3(L.K.X().experiments,"html5_preload_wait_time_secs");M&&this.Ta&&this.Ta.start(L*1E3)}ZQI(this,w);KAk(this);D?(M=this.DO.get(),w=J3(w.clientMetadata,"metadata_type_player_vars"),M.K.loadVideoByPlayerVars(w,!1,2)):P9N(this.DO.get(),J3(w.clientMetadata,"metadata_type_player_vars"));var Z;(Z=this.wM)==null||Z.start();D||this.DO.get().K.playVideo(2)}; g.y.Eb=function(){var w;(w=this.wM)==null||w.stop();this.B5();(this.adCpn=Omx(this))||Zg("Media layout confirmed started, but ad CPN not set.");this.Rs.get().uB("onAdStart",this.adCpn);this.VX=Date.now()}; g.y.Lp=function(){var w;return(w=SV(this.Gh.get(),2))==null?void 0:w.MM}; g.y.Dj=function(){this.kt.Ui("clickthrough")}; g.y.OV=function(w,D){var M=this;this.qI(w,function(){if(M.eb!=="rendering_stop_requested"){M.eb="rendering_stop_requested";M.layoutExitReason=D;Q3(M,D);var L;(L=M.wM)==null||L.stop();M.Ta&&M.Ta.stop();kJk(M)}})}; g.y.onCueRangeEnter=function(w){if(w!==this.Cx)Zg("Received CueRangeEnter signal for unknown layout.",this.vz(),this.hc(),{cueRangeId:w});else{var D=this.context.yg,M=this.hc().layoutId;if(lM(D.D5.get(),!0)){var L={};D.La("mccre",(L.cid=w,L.p_ac=M,L))}this.zD.get().removeCueRange(this.Cx);this.Cx=void 0;cI(this.context.D5.get(),"html5_ssap_flush_at_stop_rendering")&&this.fO()||(w=J3(this.hc().clientMetadata,"metadata_type_video_length_seconds"),this.bN(w,!0),this.l9("complete"))}}; g.y.FW=function(w){w!=="abandoned"&&this.Rs.get().uB("onAdComplete");this.Rs.get().uB("onAdEnd",this.adCpn)}; g.y.B5=function(){this.Cx="adcompletioncuerange:"+this.hc().layoutId;this.zD.get().addCueRange(this.Cx,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var w=this.context.yg,D=this.Cx,M=this.hc().layoutId;if(lM(w.D5.get(),!0)){var L={};w.La("mccr",(L.cid=D,L.p_ac=M,L))}}; g.y.onCueRangeExit=function(){}; g.y.kx=function(w){this.eb==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&w>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.aJ.get().Qm(!0),this.bN(w))}; g.y.bN=function(w,D){eV.prototype.bN.call(this,w,D===void 0?!1:D);D=Date.now()-this.VX;var M=w*1E3,L={contentCpn:this.MR(),adCpn:Omx(this)};if(w-this.h0>=5){var Z=D=2||(this.e2.OV(this.layout,D),w=cI(this.params.context.D5.get(),"html5_ssap_pass_transition_reason")&&D==="abandoned",this.yj()&&!w&&(cI(this.params.context.D5.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(D)||Zg("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:D})),this.Ll.get().finishSegmentByCpn(this.layout.layoutId, SV(this.Gh.get(),1).clientPlaybackNonce,K5(D,this.params.context.D5))),this.aJ.get().removeListener(this),this.Lh()&&ZT(this.e2.b8())&&this.sQ.WA(this.slot,this.layout,this.e2.b8().T))}; g.y.VR=function(w,D,M){HbC({cpn:w,Ly:this.Gh.get(),UR:!0});this.hc().layoutId!==w||cI(this.params.context.D5.get(),"html5_ssap_pass_transition_reason")&&M===5||(this.e2.b8().currentState<2&&(w=m4(M,this.params.context.D5),w==="error"?this.sQ.Vy(this.slot,this.layout,new SK("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:M},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):yL(this.J8, this.layout,w)),cI(this.params.context.D5.get(),"html5_ssap_exit_without_waiting_for_transition")||this.sQ.WA(this.slot,this.layout,this.e2.b8().T))};g.I(hr,g.X);g.y=hr.prototype;g.y.vz=function(){return this.slot}; g.y.hc=function(){return this.layout}; g.y.t_=function(){}; g.y.mK=function(){return this.Oi[this.j5]}; g.y.jV=function(){return this.j5}; g.y.gp=function(w,D){var M=this.mK();D.layoutId!==$w(M,w,D)?Zg("pauseLayout for a PlayerBytes layout that is not currently active",w,D):M.gp()}; g.y.h9=function(w,D){var M=this.mK();D.layoutId!==$w(M,w,D)?Zg("resumeLayout for a PlayerBytes layout that is not currently active",w,D):M.h9()}; g.y.Hn=function(w,D){var M=this.mK();$gT(this,w,D);iQx(M,w,D)&&this.HD(M.vz(),M.hc(),"skipped")}; g.y.tO=function(w,D){var M=this.mK();dgJ(this);y_R(M,w,D)&&(w=IBk(this,M,w,D),w!==void 0&&(this.fO()?Zg("Should not happen. Should delete"):xgr(this,M.vz(),M.hc(),w)))}; g.y.Zk=function(w,D){var M=Object.assign({},tr(this),{layoutId:D.layoutId}),L=M.layoutId,Z=M.UR;if(M.O3){var k={};YM(M.Ly,"wrse",(k.ec=L,k.is=Z,k.ctp=bM(L),k))}tL(this.t3,w,D)}; g.y.Q$=function(w,D){var M;(M=this.mK())==null||M.Q$(w,D)}; g.y.WA=function(w,D,M){D.layoutId===this.hc().layoutId&&(this.Dz=!1,Lc(this.RO(),this));var L;(L=this.mK())==null||L.WA(w,D,M)}; g.y.kx=function(w){var D;(D=this.mK())==null||D.kx(w)}; g.y.Q6=function(w,D,M){this.jV()===-1&&(this.callback.Q$(this.slot,this.layout),this.j5++);var L=this.mK();L?(L.mN(w,D,M),this.fO()&&this.callback.Vy(this.slot,this.layout,D,M)):Zg("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.jV()),layoutId:this.hc().layoutId})}; g.y.onFullscreenToggled=function(w){var D;(D=this.mK())==null||D.onFullscreenToggled(w)}; g.y.jw=function(w){var D;(D=this.mK())==null||D.jw(w)}; g.y.DK=function(w){var D;(D=this.mK())==null||D.DK(w)}; g.y.onVolumeChange=function(){var w;(w=this.mK())==null||w.onVolumeChange()}; g.y.oy=function(w,D,M){$_(this.t3,w,D,M)}; g.y.E9=function(w){w.startRendering(w.hc())}; g.y.init=function(){var w=J3(this.hc().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");w&&(w.current=this);if(this.Oi.length<1)throw new O("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Oi.length)});if(w=J3(this.hc().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))w.current=this;w=g.x(this.Oi);for(var D=w.next();!D.done;D=w.next())D=D.value,D.init(),Sal(this.t3,this.slot,D.hc()),QRl(this.t3,this.slot,D.hc()); if(this.fO())for(this.Gh.get().addListener(this),dXl(tTJ(this),this.Gh.get()),w=tTJ(this),w=g.x(w),D=w.next();!D.done;D=w.next())this.Gp(D.value)}; g.y.Gp=function(w){var D=J3(w.clientMetadata,"metadata_type_player_vars");D?(w.layoutType!=="LAYOUT_TYPE_MEDIA"&&Zg("Non-video ad contains playerVars",this.slot,w),this.DO.get().addPlayerResponseForAssociation({playerVars:D})):(w=plk(w),this.DO.get().addPlayerResponseForAssociation({DM:w}))}; g.y.release=function(){var w=J3(this.hc().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");w&&(w.current=null);if(w=J3(this.hc().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))w.current=null;w=g.x(this.Oi);for(var D=w.next();!D.done;D=w.next())D=D.value,JzT(this.t3,this.slot,D.hc()),D.release();this.fO()&&(this.Gh.get().removeListener(this),ySK())}; g.y.qI=function(w){return w.layoutId!==this.hc().layoutId?(this.callback.Vy(this.vz(),w,new SK("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.hc().layoutId+("and LayoutType: "+this.hc().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.y.O5=function(){this.aJ.get().addListener(this);Mu(this.RO(),this)}; g.y.q5=function(w){if(w.state.isError()){var D,M;this.Q6((D=w.state.QL)==null?void 0:D.errorCode,new SK("There was a player error during this media layout.",{playerErrorCode:(M=w.state.QL)==null?void 0:M.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(D=this.mK())&&D.q5(w)}; g.y.fO=function(){var w=J3(this.vz().clientMetadata,"metadata_type_eligible_for_ssap");return w===void 0?(Zg("Expected SSAP eligibility in PlayerBytes slots",this.vz(),this.hc()),!1):this.D5.get().fO(w)}; g.y.q2=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.Qg=function(){}; g.y.pP=function(){}; g.I(IK,hr);g.y=IK.prototype;g.y.W4=function(w,D,M){this.HD(w,D,M)}; g.y.P4=function(w,D){this.HD(w,D,"error")}; g.y.HD=function(w,D,M){var L=this;Ugx(this,w,D,M,function(){ib(L,L.jV()+1)})}; g.y.startRendering=function(w){this.qI(w)&&(this.O5(),Jtj(this.cA.get()),Atl(this.D5.get())||vxr(this.aJ.get()),this.jV()===-1&&ib(this,this.jV()+1))}; g.y.OV=function(w,D){var M=this;this.Dz=!0;this.jV()===this.Oi.length?this.callback.WA(this.slot,this.layout,D):(w=this.mK(),w.OV(w.hc(),D),this.n5=function(){M.callback.WA(M.slot,M.layout,D)}); this.aJ.get().K.UF();P9N(this.DO.get(),{});w=w7(this.aJ.get(),1);w.isPaused()&&!g.z(w,2)&&this.aJ.get().playVideo();this.aJ.get().removeListener(this);this.Dz&&Nwj(this)}; g.y.VR=function(){}; g.y.HW=function(){}; g.y.lc=function(){}; g.I(U5,hr);g.y=U5.prototype;g.y.W4=function(w,D,M){w=Object.assign({},tr(this),{layoutId:D.layoutId,layoutExitReason:M});D=w.layoutId;M=w.layoutExitReason;var L={};YM(w.Ly,"prse",(L.xc=D,L.ler=M,L.ctp=bM(D),L))}; g.y.P4=function(){Zg("onSubLayoutError in SSAP")}; g.y.HD=function(){Zg("exitSubLayoutAndPlayNext in SSAP")}; g.y.mK=function(){return this.Mr}; g.y.jV=function(){var w=this;return this.Oi.findIndex(function(D){var M;return D.hc().layoutId===((M=w.Mr)==null?void 0:M.hc().layoutId)})}; g.y.E9=function(w){Lm(this.Mr===void 0,"replacing another adapter");this.Mr=w;w.startRendering(w.hc())}; g.y.oy=function(w,D,M){$_(this.t3,w,D,M);var L;Lm(D.layoutId===((L=this.Mr)==null?void 0:L.hc().layoutId),"currentAdapter does not match exiting layout",{slot:w?"slot: "+w.slotType:"",subLayout:Mz(D)})&&(this.Mr=void 0)}; g.y.release=function(){hr.prototype.release.call(this);Lm(this.Mr===void 0,"currentAdapter is still active during release");this.Mr=void 0}; g.y.yj=function(){return this.aJ.get().getPresentingPlayerType()===2}; g.y.OV=function(w,D){function M(){xw(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(D)||Zg("Composite stopRendering: Unexpected layout exit reason",this.slot,w,{layoutExitReason:D}))} function L(){this.Mr&&NJ(this,this.Mr,D);if(this.yj()&&(!xw(this)||D!=="abandoned")){M.call(this);var k;var b=((k=this.Gh.get().K.getVideoData())==null?void 0:k.clientPlaybackNonce)||"";k=SV(this.Gh.get(),1).clientPlaybackNonce;this.Ll.get().finishSegmentByCpn(b,k,K5(D,this.D5))}HQJ(this,D)} function Z(){if(this.Mr){var k=this.Mr;k.b8().currentState<2&&k.OV(k.hc(),D);k=xw(this)&&D==="abandoned";this.yj()&&!k&&(M.call(this),this.Ll.get().finishSegmentByCpn(this.Mr.hc().layoutId,SV(this.Gh.get(),1).clientPlaybackNonce,K5(D,this.D5)))}} Lm(w.layoutId===this.hc().layoutId,"StopRendering for wrong layout")&&LH(this.Fw.V,D)&&(this.Lh()?L.call(this):Z.call(this))}; g.y.WA=function(w,D,M){hr.prototype.WA.call(this,w,D,M);D.layoutId===this.hc().layoutId&&this.aJ.get().removeListener(this)}; g.y.MR=function(){return SV(this.Gh.get(),1).clientPlaybackNonce}; g.y.VR=function(w,D,M){HbC(Object.assign({},tr(this),{cpn:w}));if(!xw(this)||M!==5)if(this.Lh()){if(this.Mr&&this.Mr.hc().layoutId!==D){var L=this.Mr.hc().layoutId;L!==w&&Zg("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:L,exitingCpn:w,enteringCpn:D});w=m4(M,this.D5);NJ(this,this.Mr,w)}else this.Mr&&Zg("onClipExited: active layout is entering again");D===this.MR()&&gKI(this,M)}else{if(this.Mr&&this.Mr.hc().layoutId===w)jAC(this,this.Mr,M);else{var Z;Zg("Exiting cpn does not match active cpn", this.slot,(L=this.Mr)==null?void 0:L.hc(),{exitingCpn:w,transitionReason:M,activeCpn:(Z=this.Mr)==null?void 0:Z.hc().layoutId})}D===this.MR()&&(this.Mr!==void 0&&(Zg("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Mz(this.Mr.hc())}),jAC(this,this.Mr,M)),gKI(this,M),HQJ(this,this.Fw.V.T))}}; g.y.Lh=function(){return cI(this.D5.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.y.startRendering=function(w){this.qI(w)&&(w=this.Fw,Lm(w.T===1,"tickStartRendering: state is not initial"),w.T=2,this.O5())}; g.y.HW=function(w){NsK(Object.assign({},tr(this),{cpn:w}));var D=this.Oi.find(function(M){return M.hc().layoutId===w}); D?(this.Fw.T!==2&&(k8k(this.gH,this.slot.slotId),Lm(this.Fw.T===2,"Expect started"),this.callback.Q$(this.slot,this.layout)),this.E9(D),tL(this.t3,this.slot,D.hc())):RnG(this,w)}; g.y.Hn=function(w,D){$gT(this,w,D);var M=this.mK();M?iQx(M,w,D)&&oKk(this,"skipped"):nKk(this,"onSkipRequested")}; g.y.tO=function(w,D){var M;a:{if(M=this.mK()){if(dgJ(this),y_R(M,w,D)&&(w=IBk(this,M,w,D),w!==void 0)){M={FF:M,pIt:this.Oi[w]};break a}}else nKk(this,"SkipWithAdPodSkip");M=void 0}if(w=M)M=w.FF,D=w.pIt,w=M.hc().layoutId,this.Lh()?NJ(this,M,"skipped"):M.OV(M.hc(),"skipped"),M=D.hc().layoutId,this.Ll.get().finishSegmentByCpn(w,M,K5("skipped",this.D5))}; g.y.Zk=function(){Zg("Not used in html5_ssap_fix_layout_exit")}; g.y.q5=function(w){var D;(D=this.mK())==null||D.q5(w)}; g.y.Q6=function(){Zg("Not used in html5_ssap_fix_layout_exit")}; g.y.lc=function(w,D,M){var L;if(((L=this.mK())==null?void 0:L.hc().layoutId)!==D.layoutId)return void Zg("requestToExitSubLayout: wrong layout");oKk(this,M)};g.I(HE,g.X);g.y=HE.prototype;g.y.vz=function(){return this.e2.vz()}; g.y.hc=function(){return this.e2.hc()}; g.y.init=function(){var w=J3(this.hc().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");w&&(w.current=this);this.Av()}; g.y.Av=function(){this.e2.init()}; g.y.release=function(){var w=J3(this.hc().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");w&&(w.current=null);this.aZ()}; g.y.aZ=function(){this.e2.release()}; g.y.gp=function(){this.e2.gp()}; g.y.h9=function(){this.e2.h9()}; g.y.Hn=function(w,D){Zg("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.vz(),this.hc(),{requestingSlot:w,requestingLayout:D})}; g.y.startRendering=function(w){w.layoutId!==this.hc().layoutId?this.callback.Vy(this.vz(),w,new SK("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.hc().layoutId+("and LayoutType: "+this.hc().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.aJ.get().addListener(this),Mu(this.RO(),this),Jtj(this.cA.get()),Atl(this.D5.get())||vxr(this.aJ.get()),this.e2.startRendering(w))}; g.y.OV=function(w,D){this.Dz=!0;this.e2.OV(w,D);this.aJ.get().K.UF();P9N(this.DO.get(),{});w=w7(this.aJ.get(),1);w.isPaused()&&!g.z(w,2)&&this.aJ.get().playVideo();this.aJ.get().removeListener(this);this.Dz&&this.e2.Kp()}; g.y.Q$=function(w,D){this.e2.Q$(w,D)}; g.y.WA=function(w,D,M){D.layoutId===this.hc().layoutId&&(this.Dz=!1,Lc(this.RO(),this));this.e2.WA(w,D,M);D.layoutId===this.hc().layoutId&&d6(this.cA.get())}; g.y.kx=function(w){this.e2.kx(w)}; g.y.q5=function(w){if(w.state.isError()){var D,M;this.Q6((D=w.state.QL)==null?void 0:D.errorCode,new SK("There was a player error during this media layout.",{playerErrorCode:(M=w.state.QL)==null?void 0:M.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.e2.q5(w)}; g.y.Q6=function(w,D,M){this.e2.mN(w,D,M)}; g.y.onFullscreenToggled=function(w){this.e2.onFullscreenToggled(w)}; g.y.jw=function(w){this.e2.jw(w)}; g.y.DK=function(w){this.e2.DK(w)}; g.y.onVolumeChange=function(){this.e2.onVolumeChange()}; g.y.q2=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.Qg=function(){}; g.y.pP=function(){};g.y=jE.prototype;g.y.vz=function(){return this.slot}; g.y.hc=function(){return this.layout}; g.y.init=function(){this.QZ.get().addListener(this);this.aJ.get().addListener(this);var w=J3(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var D=J3(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.D){var M=this.QZ.get().nU.slice(-1)[0];M!==void 0&&(w=M.startSecs*1E3,D=(M.startSecs+M.x6)*1E3)}this.SM(w,D);var L;M=(L=this.Gh.get().lH)==null?void 0:L.clientPlaybackNonce;L=this.layout.F_.adClientDataEntry;g6(this.FE.get(),{daiStateTrigger:{filledAdsDurationMs:D-w,contentCpn:M, adClientData:L}});var Z=this.QZ.get();Z=sAa(Z.L,w,D);Z!==null&&(g6(this.FE.get(),{daiStateTrigger:{filledAdsDurationMs:Z-w,contentCpn:M,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:L}}),this.Ll.get().MX(Z,D))}; g.y.release=function(){this.aZ();this.QZ.get().removeListener(this);this.aJ.get().removeListener(this)}; g.y.startRendering=function(){this.lN();this.callback.Q$(this.slot,this.layout)}; g.y.OV=function(w,D){this.i6(D);this.driftRecoveryMs!==null&&(RK(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(aBC(this)-J3(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.aJ.get().K.rV()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.WA(this.slot,this.layout,D)}; g.y.mz=function(){return!1}; g.y.GY=function(w){var D=J3(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),M=J3(this.layout.clientMetadata,"metadata_type_layout_exit_ms");w*=1E3;if(D<=w&&w0&&ie(this.T(),D)}; g.y.hY=function(w){this.W.delete(w.slotId);for(var D=[],M=g.x(this.t1.values()),L=M.next();!L.done;L=M.next()){L=L.value;var Z=L.trigger;Z instanceof oG&&Z.triggeringSlotId===w.slotId&&D.push(L)}D.length>0&&ie(this.T(),D)}; g.y.dI=function(w){for(var D=[],M=g.x(this.t1.values()),L=M.next();!L.done;L=M.next()){L=L.value;var Z=L.trigger;Z instanceof p$&&Z.slotType===w.slotType&&Z.T!==w.slotId&&D.push(L)}D.length>0&&ie(this.T(),D)}; g.y.jJ=function(w){this.L.add(w.slotId);for(var D=[],M=g.x(this.t1.values()),L=M.next();!L.done;L=M.next())L=L.value,L.trigger instanceof iu&&w.slotId===L.trigger.triggeringSlotId&&D.push(L);D.length>0&&ie(this.T(),D)}; g.y.SJ=function(w){this.L.delete(w.slotId);this.D.add(w.slotId);for(var D=[],M=g.x(this.t1.values()),L=M.next();!L.done;L=M.next())if(L=L.value,L.trigger instanceof dV)w.slotId===L.trigger.triggeringSlotId&&D.push(L);else if(L.trigger instanceof wV){var Z=L.trigger;w.slotId===Z.slotId&&this.V.has(Z.triggeringLayoutId)&&D.push(L)}D.length>0&&ie(this.T(),D)}; g.y.Sw=function(w){for(var D=[],M=g.x(this.t1.values()),L=M.next();!L.done;L=M.next())L=L.value,L.trigger instanceof ys&&w.slotId===L.trigger.triggeringSlotId&&D.push(L);D.length>0&&ie(this.T(),D)}; g.y.v9=function(w){for(var D=[],M=g.x(this.t1.values()),L=M.next();!L.done;L=M.next())L=L.value,L.trigger instanceof gV&&w.slotId===L.trigger.triggeringSlotId&&D.push(L);D.length>0&&ie(this.T(),D)}; g.y.zd=function(w,D){this.Y.add(D.layoutId)}; g.y.Cy=function(w,D){this.Y.delete(D.layoutId)}; g.y.Q$=function(w,D){this.V.add(D.layoutId);for(var M=[],L=g.x(this.t1.values()),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.trigger instanceof DJ)D.layoutId===Z.trigger.triggeringLayoutId&&M.push(Z);else if(Z.trigger instanceof E_){var k=Z.trigger;w.slotType===k.slotType&&D.layoutType===k.layoutType&&D.layoutId!==k.T&&M.push(Z)}else Z.trigger instanceof wV&&(k=Z.trigger,D.layoutId===k.triggeringLayoutId&&this.D.has(k.slotId)&&M.push(Z));M.length>0&&ie(this.T(),M)}; g.y.WA=function(w,D,M){this.V.delete(D.layoutId);w=[];for(var L=g.x(this.t1.values()),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.trigger instanceof L$&&D.layoutId===Z.trigger.triggeringLayoutId&&w.push(Z),Z.trigger instanceof MV){var k=Z.trigger;D.layoutId===k.triggeringLayoutId&&k.T.includes(M)&&w.push(Z)}w.length>0&&ie(this.T(),w)}; g.y.eW=function(){}; g.y.E0=function(){this.D.clear()}; g.y.EM=function(){};g.I(pP,g.X);pP.prototype.iZ=function(w,D,M,L){if(this.t1.has(D.triggerId))throw new O("Tried to register duplicate trigger for slot.");if(!(D instanceof m8))throw new O("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in CloseRequestedTriggerAdapter");this.t1.set(D.triggerId,new G9(w,D,M,L))}; pP.prototype.yV=function(w){this.t1.delete(w.triggerId)};g.I(hj,g.X);hj.prototype.iZ=function(w,D,M,L){if(this.t1.has(D.triggerId))throw new O("Tried to register duplicate trigger for slot.");if(!(D instanceof KY||D instanceof he))throw new O("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.t1.set(D.triggerId,new G9(w,D,M,L))}; hj.prototype.yV=function(w){this.t1.delete(w.triggerId)}; hj.prototype.E0=function(w){for(var D=[],M=D.push,L=M.apply,Z=[],k=g.x(this.t1.values()),b=k.next();!b.done;b=k.next())b=b.value,b.trigger instanceof KY&&b.trigger.aG===w&&Z.push(b);L.call(M,D,g.tG(Z));M=D.push;L=M.apply;Z=[];k=g.x(this.t1.values());for(b=k.next();!b.done;b=k.next())b=b.value,b.trigger instanceof he&&b.trigger.T!==w&&Z.push(b);L.call(M,D,g.tG(Z));D.length&&ie(this.T(),D)}; hj.prototype.EM=function(w){for(var D=[],M=D.push,L=M.apply,Z=[],k=g.x(this.t1.values()),b=k.next();!b.done;b=k.next()){b=b.value;var C=b.trigger;C instanceof he&&C.T===w&&Z.push(b)}L.call(M,D,g.tG(Z));D.length&&ie(this.T(),D)};g.I(tj,g.X);g.y=tj.prototype;g.y.iZ=function(w,D,M,L){if(this.t1.has(D.triggerId))throw new O("Tried to register duplicate trigger for slot.");var Z="adtriggercuerange:"+D.triggerId;if(D instanceof C$)PNN(this,w,D,M,L,Z,D.T.start,D.T.end,D.aG,D.visible);else if(D instanceof Ar)PNN(this,w,D,M,L,Z,0x7ffffffffffff,0x8000000000000,D.aG,D.visible);else throw new O("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in CueRangeTriggerAdapter");}; g.y.yV=function(w){var D=this.t1.get(w.triggerId);D&&this.zD.get().removeCueRange(D.cueRangeId);this.t1.delete(w.triggerId)}; g.y.onCueRangeEnter=function(w){var D=OBl(this,w);if(D&&(D=this.t1.get(D)))if(g.z(w7(this.aJ.get()),32))this.T.add(D.cueRangeId);else{var M=D==null?void 0:D.wj.trigger;if(M instanceof C$||M instanceof Ar){if(lM(this.context.D5.get())){var L=D.wj.slot,Z=D.wj.layout,k={};this.context.yg.La("cre",(k.ca=D.wj.category,k.tt=M.triggerType,k.st=L.slotType,k.lt=Z==null?void 0:Z.layoutType,k.cid=w,k))}ie(this.V(),[D.wj])}}}; g.y.onCueRangeExit=function(w){(w=OBl(this,w))&&(w=this.t1.get(w))&&this.T.delete(w.cueRangeId)}; g.y.q5=function(w){if(bQ(w,16)<0){w=g.x(this.T);for(var D=w.next();!D.done;D=w.next())this.onCueRangeEnter(D.value,!0);this.T.clear()}}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.Q$=function(){}; g.y.WA=function(){}; g.y.eW=function(){}; g.y.kx=function(){}; g.y.onFullscreenToggled=function(){}; g.y.jw=function(){}; g.y.q2=function(){}; g.y.DK=function(){}; g.y.onVolumeChange=function(){}; g.y.Qg=function(){}; g.y.pP=function(){};g.I($4,g.X);g.y=$4.prototype; g.y.iZ=function(w,D,M,L){if(this.V.has(D.triggerId)||this.L.has(D.triggerId))throw new O("Tried to re-register the trigger.");w=new G9(w,D,M,L);if(w.trigger instanceof Yl)this.V.set(w.trigger.triggerId,w);else if(w.trigger instanceof ZJ)this.L.set(w.trigger.triggerId,w);else throw new O("Incorrect TriggerType: Tried to register trigger of type "+w.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.V.has(w.trigger.triggerId)&&w.slot.slotId===this.T&&ie(this.D(),[w])}; g.y.yV=function(w){this.V.delete(w.triggerId);this.L.delete(w.triggerId)}; g.y.t_=function(w){w=w.slotId;if(this.T!==w){var D=[];this.T!=null&&D.push.apply(D,g.tG(K3N(this.L,this.T)));w!=null&&D.push.apply(D,g.tG(K3N(this.V,w)));this.T=w;D.length&&ie(this.D(),D)}}; g.y.VR=function(){}; g.y.HW=function(){};g.I(dj,g.X);g.y=dj.prototype;g.y.iZ=function(w,D,M,L){if(this.t1.has(D.triggerId))throw new O("Tried to register duplicate trigger for slot.");if(!(D instanceof W1))throw new O("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.t1.set(D.triggerId,new G9(w,D,M,L))}; g.y.yV=function(w){this.t1.delete(w.triggerId)}; g.y.Q$=function(){}; g.y.WA=function(){}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){};g.I(yM,g.X);g.y=yM.prototype;g.y.eW=function(w,D){for(var M=[],L=g.x(this.t1.values()),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var k=Z.trigger;k.opportunityType===w&&(k.associatedSlotId&&k.associatedSlotId!==D||M.push(Z))}M.length&&ie(this.T(),M)}; g.y.iZ=function(w,D,M,L){if(this.t1.has(D.triggerId))throw new O("Tried to register duplicate trigger for slot.");if(!(D instanceof Cyr))throw new O("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in OpportunityEventTriggerAdapter");this.t1.set(D.triggerId,new G9(w,D,M,L))}; g.y.yV=function(w){this.t1.delete(w.triggerId)}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.Q$=function(){}; g.y.WA=function(){};g.I(I9,g.X);g.y=I9.prototype;g.y.iZ=function(w,D,M,L){w=new G9(w,D,M,L);if(D instanceof kl||D instanceof lu||D instanceof bu||D instanceof te||D instanceof YkC){if(this.t1.has(D.triggerId))throw new O("Tried to register duplicate trigger for slot.");this.t1.set(D.triggerId,w)}else throw new O("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in PrefetchTriggerAdapter");}; g.y.yV=function(w){this.t1.delete(w.triggerId)}; g.y.RC=function(w){var D=w.slotFulfillmentTriggers.find(function(M){return M instanceof kl}); D&&(Uy(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",D.breakDurationMs,new Set([w.slotId]),!0),nY(this.FE.get(),"ads_css","sid."+w.slotId+";bd."+D.breakDurationMs))}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.Q$=function(){}; g.y.WA=function(){}; g.y.eW=function(){}; g.y.mz=function(w){var D=this;if(!this.T)return Zg("Unexpected cue break before fetch instructions are available"),!1;this.V&&this.V.stop();this.W&&g.S3(this.W);var M=DuK(this,w);if(!M){var L=A3j(this),Z=this.G!==void 0&&Date.now()<=this.G+1E4;nY(this.FE.get(),"ads_ncfs","cid."+w.identifier+";cd."+w.x6.toFixed(3)+";ccs."+Z+";cfa."+this.D+";bdc."+L.length+";"+L.slice(0,6).map(function(k){return";bd."+k}).join("")); return Z?(OX(this.k9,this.T,w),!0):!1}(L=J3(M.slot.clientMetadata,"metadata_type_triggering_cue_point"))?L.current=w:Zg("Expected triggering cue point ref to be available",M.slot);(new g.ui(function(){var k=M.trigger,b=M.slot;Uy(D,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",k.breakDurationMs,new Set,!0);Uy(D,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",k.breakDurationMs,new Set,!1);for(var C=0,l=g.x(D.t1.values()),E=l.next();!E.done;E=l.next()){E=E.value;var p=E.trigger; E.slot.slotId===b.slotId&&(D.t1.delete(p.triggerId),C++)}nY(D.FE.get(),"ads_csf","sid."+b.slotId+";bd."+k.breakDurationMs+";dt."+C)},10)).start(); return!0}; g.y.GY=function(){}; g.y.E0=function(w){var D=this;this.D=!1;this.G=Date.now();if(this.T&&this.T.contentCpn!==w)Zg("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:w,fetchInstructionsCpn:this.T.contentCpn}),x4(this);else{this.L=new g.ui(function(){if(D.D)delete D.L;else{var L=D.aJ.get().getGetAdBreakContext(),Z;if(Number(L==null?void 0:(Z=L.livePlaybackPosition)==null?void 0:Z.utcTimeMillis)>0)delete D.L,wIa(D);else{var k;(k=D.L)==null||k.start()}}},200); var M;(M=this.L)==null||M.start()}}; g.y.EM=function(w){this.T&&this.T.contentCpn!==w&&Zg("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:w,fetchInstructionsCpn:this.T.contentCpn},!0);x4(this)}; g.y.v3=function(w){var D=this;if(this.T)Zg("Unexpected multiple fetch instructions for the current content");else{this.T=w;w=LtJ(w);this.V=new g.ui(function(){wIa(D)},w?w:6E5); this.V.start();this.W=new g.ui(function(){D.T&&(D.V&&(D.V.stop(),D.V.start()),mwR(D,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},MpT(this.T)); w=this.aJ.get().getCurrentTimeSec(1,!1);for(var M=g.x(this.QZ.get().nU),L=M.next();!L.done;L=M.next())L=L.value,nY(this.FE.get(),"nocache","ct."+Date.now()+";cmt."+w+";d."+L.x6.toFixed(3)+";tw."+(L.startSecs-w)+";cid."+L.identifier+";")}}; g.y.oJ=function(){g.X.prototype.oJ.call(this);x4(this)};g.I(Ne,g.X);g.y=Ne.prototype;g.y.iZ=function(w,D,M,L){if(this.t1.has(D.triggerId))throw new O("Tried to register duplicate trigger for slot.");if(!(D instanceof FG))throw new O("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.t1.set(D.triggerId,new G9(w,D,M,L));w=this.T.has(D.triggeringLayoutId)?this.T.get(D.triggeringLayoutId):new Set;w.add(D);this.T.set(D.triggeringLayoutId,w)}; g.y.yV=function(w){this.t1.delete(w.triggerId);if(!(w instanceof FG))throw new O("Incorrect TriggerType: Tried to unregister trigger of type "+w.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var D=this.V.get(w.triggerId);D&&(D.dispose(),this.V.delete(w.triggerId));if(D=this.T.get(w.triggeringLayoutId))D.delete(w),D.size===0&&this.T.delete(w.triggeringLayoutId)}; g.y.RC=function(){}; g.y.hY=function(){}; g.y.dI=function(){}; g.y.jJ=function(){}; g.y.SJ=function(){}; g.y.Sw=function(){}; g.y.v9=function(){}; g.y.zd=function(){}; g.y.Cy=function(){}; g.y.eW=function(){}; g.y.Q$=function(w,D){var M=this;if(this.T.has(D.layoutId)){w=this.T.get(D.layoutId);w=g.x(w);var L=w.next();for(D={};!L.done;D={US:void 0},L=w.next())D.US=L.value,L=new g.ui(function(Z){return function(){var k=M.t1.get(Z.US.triggerId);ie(M.L(),[k])}}(D),D.US.durationMs),L.start(),this.V.set(D.US.triggerId,L)}}; g.y.WA=function(){};g.I(Hh,g.X);Hh.prototype.iZ=function(w,D,M,L){if(this.t1.has(D.triggerId))throw new O("Tried to register duplicate trigger for slot.");if(!(D instanceof PE))throw new O("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in VideoTransitionTriggerAdapter.");this.t1.set(D.triggerId,new G9(w,D,M,L))}; Hh.prototype.yV=function(w){this.t1.delete(w.triggerId)};o9.prototype.ZP=function(w){return w.kind==="AD_PLACEMENT_KIND_START"};g.I(Gf,g.X);g.y=Gf.prototype;g.y.logEvent=function(w){this.Hm(w)}; g.y.Wx=function(w,D,M){this.Hm(w,void 0,void 0,void 0,D,void 0,void 0,void 0,D.adSlotLoggingData,void 0,void 0,M)}; g.y.HH=function(w,D,M,L){this.Hm(w,void 0,void 0,void 0,D,M?M:void 0,void 0,void 0,D.adSlotLoggingData,M?M.adLayoutLoggingData:void 0,void 0,L);D=jC().resolve(IR(DF))==null?void 0:Lu();w=D==null?void 0:D.adsSeenHotConfig;D=D==null?void 0:D.adsHotConfig;(w==null?0:w.logOnAdsSeen)&&(D==null?0:D.webEnablePremiumAdsSeenLogging)&&duS(this,M?M:void 0,L)}; g.y.OE=function(w,D,M,L){cI(this.D5.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+w,"trigger:",M,"slot:",D,"layout:",L);KB(this.T.get())&&this.Hm(w,void 0,void 0,void 0,D,L?L:void 0,void 0,M,D.adSlotLoggingData,L?L.adLayoutLoggingData:void 0)}; g.y.ML=function(w,D,M,L,Z){this.Hm(w,D,M,L,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z)}; g.y.Zf=function(w,D,M,L){this.Hm("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,M,L,void 0,void 0,M.adSlotLoggingData,L?L.adLayoutLoggingData:void 0,{errorType:w,errorMessage:D})}; g.y.Hm=function(w,D,M,L,Z,k,b,C,l,E,p,W){var h=this;W=W===void 0?0:W;cI(this.D5.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+w,"slot:",Z,"layout:",k,"ping:",b,"Opportunity:",{opportunityType:D,associatedSlotId:M,U0_:L,Tit:C,adSlotLoggingData:l,adLayoutLoggingData:E});try{var t=function(){if(!h.D5.get().K.X().C("html5_disable_client_tmp_logs")&&w!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){w||Zg("Empty PACF event type",Z,k);var d=KB(h.T.get()),N={eventType:w,eventOrder:++h.eventCount},n={}; Z&&(n.slotData=O0(d,Z));k&&(n.layoutData=rzJ(d,k));b&&(n.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:b.T.serializedAdPingMetadata,pingIndex:b.index});C&&(n.triggerData=P8(C.trigger,C.category));D&&(n.opportunityData=e9I(d,D,M,L));d={organicPlaybackContext:{contentCpn:SV(h.Gh.get(),1).clientPlaybackNonce}};d.organicPlaybackContext.isLivePlayback=SV(h.Gh.get(),1).Yl;var v;d.organicPlaybackContext.isMdxPlayback=(v=SV(h.Gh.get(),1))==null?void 0:v.isMdxPlayback; var G;if((G=SV(h.Gh.get(),1))==null?0:G.daiEnabled)d.organicPlaybackContext.isDaiContent=!0;var f;if(v=(f=SV(h.Gh.get(),2))==null?void 0:f.clientPlaybackNonce)d.adVideoPlaybackContext={adVideoCpn:v};d&&(n.externalContext=d);N.adClientData=n;l&&(N.serializedSlotAdServingData=l.serializedSlotAdServingDataEntry);E&&(N.serializedAdServingData=E.serializedAdServingDataEntry);p&&(N.errorInfo=p);g.DD("adsClientStateChange",{adsClientEvent:N})}}; W&&W>0?g.SY(g.Ja(),function(){return t()},W):t()}catch(d){cI(this.D5.get(),"html5_log_pacf_logging_errors")&&g.SY(g.Ja(),function(){Zg(d instanceof Error?d:String(d),Z,k,{pacf_message:"exception during pacf logging"})})}};var hjk=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.I(sy,Gf);g.y=sy.prototype; g.y.Wx=function(w,D,M){Gf.prototype.Wx.call(this,w,D,M);lM(this.D5.get())&&(M={},this.context.yg.La("pacf",(M.et=w,M.st=D.slotType,M.si=D.slotId,M)))}; g.y.HH=function(w,D,M,L){var Z=hjk.has(w);Gf.prototype.HH.call(this,w,D,M,L);lM(this.D5.get(),Z)&&(L={},this.context.yg.La("pacf",(L.et=w,L.st=D.slotType,L.si=D.slotId,L.lt=M==null?void 0:M.layoutType,L.li=M==null?void 0:M.layoutId,L.p_ac=M==null?void 0:M.layoutId,L)))}; g.y.ML=function(w,D,M,L,Z){Gf.prototype.ML.call(this,w,D,M,L,Z);lM(this.D5.get())&&(M={},this.context.yg.La("pacf",(M.et=w,M.ot=D,M.ss=L==null?void 0:L.length,M)))}; g.y.OE=function(w,D,M,L){Gf.prototype.OE.call(this,w,D,M,L);if(lM(this.D5.get())){var Z={};this.context.yg.La("pacf",(Z.et=w,Z.tt=M.trigger.triggerType,Z.tc=M.category,Z.st=D.slotType,Z.si=D.slotId,Z.lt=L==null?void 0:L.layoutType,Z.li=L==null?void 0:L.layoutId,Z.p_ac=L==null?void 0:L.layoutId,Z))}}; g.y.Zf=function(w,D,M,L){Gf.prototype.Zf.call(this,w,D,M,L);if(lM(this.D5.get(),!0)){var Z={};this.context.yg.La("perror",(Z.ert=w,Z.erm=D,Z.st=M.slotType,Z.si=M.slotId,Z.lt=L==null?void 0:L.layoutType,Z.li=L==null?void 0:L.layoutId,Z.p_ac=L==null?void 0:L.layoutId,Z))}}; g.y.Hm=function(w,D,M,L,Z,k,b,C,l,E,p){var W=this.D5.get();g.hL(W.K.X())?(W=this.D5.get(),W=g.A3(W.K.X().experiments,"H5_async_logging_delay_ms")):W=void 0;Gf.prototype.Hm.call(this,w,D,M,L,Z,k,b,C,l,E,p,W)};a9.prototype.clear=function(){this.T.clear()};vh.prototype.state=function(){return this.T==="fulfilled"?{state:"fulfilled",value:this.result}:this.T==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; vh.prototype.D=function(w){Bh(w)||ch(w)?X_(fP(w),this.D.bind(this),this.reject.bind(this)):(this.T="fulfilled",this.result=w,e6(this))}; vh.prototype.reject=function(w){this.T="rejected";this.error=w;e6(this)}; var ch=Ei(function(w){return HWk(w)?w instanceof vh:!1});Object.freeze({DhW:function(w){var D=zf(w);return X_(Jj(D,function(M){return D[M].T==="rejected"}),function(M){return Number.isNaN(M)?D.map(function(L){return L.state().value}):D[M]})}, nUL:function(w){var D=zf(w);return X_(Jj(D),function(){return D.map(function(M){return M.state()})})}, Zc9:function(w){var D=zf(w);return X_(Jj(D,function(M){return D[M].T==="fulfilled"}),function(M){return Number.isNaN(M)?qe(new AggregateError(D.map(function(L){return L.state().reason}))):D[M].state().value})}, PBE:function(w){var D=zf(w);return X_(Jj(D,function(){return!0}),function(M){return D[M]})}});var VM=window.gOJ||"en";mQ.prototype.Kw=function(w){this.client=w}; mQ.prototype.T=function(){this.clear();this.csn=g.$9()}; mQ.prototype.clear=function(){this.L.clear();this.V.clear();this.D.clear();this.csn=null};wf.prototype.Kw=function(w){g.Q6(Aj().Kw).bind(Aj())(w)}; wf.prototype.clear=function(){g.Q6(Aj().clear).bind(Aj())()};g.y=Dt.prototype;g.y.Kw=function(w){this.client=w}; g.y.z7=function(w,D){var M=this;D=D===void 0?{}:D;g.Q6(function(){var L,Z,k,b=((L=g.Q(w==null?void 0:w.commandMetadata,g.xU))==null?void 0:L.rootVe)||((Z=g.Q(w==null?void 0:w.commandMetadata,F5x))==null?void 0:(k=Z.screenVisualElement)==null?void 0:k.uiType);if(b){L=g.Q(w==null?void 0:w.commandMetadata,P5r);if(L==null?0:L.parentTrackingParams){var C=g.WL(L.parentTrackingParams);if(L.parentCsn)var l=L.parentCsn}else D.clickedVisualElement?C=D.clickedVisualElement:w.clickTrackingParams&&(C=g.WL(w.clickTrackingParams)); a:{L=g.Q(w,g.HB);Z=g.Q(w,TEB);if(L){if(Z=HcI(L,"VIDEO")){L={token:Z,videoId:L.videoId};break a}}else if(Z&&(L=HcI(Z,"PLAYLIST"))){L={token:L,playlistId:Z.playlistId};break a}L=void 0}D=Object.assign({},{cttAuthInfo:L,parentCsn:l},D);if(g.hY("expectation_logging")){var E;D.loggingExpectations=((E=g.Q(w==null?void 0:w.commandMetadata,F5x))==null?void 0:E.loggingExpectations)||void 0}LA(M,b,C,D)}else g.jn(new g.qA("Error: Trying to create a new screen without a rootVeType",w))})()}; g.y.clickCommand=function(w,D,M){w=w.clickTrackingParams;M=M===void 0?0:M;w?(M=g.$9(M===void 0?0:M))?(To(this.client,M,g.WL(w),D),D=!0):D=!1:D=!1;return D}; g.y.stateChanged=function(w,D,M){this.visualElementStateChanged(g.WL(w),D,M===void 0?0:M)}; g.y.visualElementStateChanged=function(w,D,M){M=M===void 0?0:M;M===0&&this.V.has(M)?this.U.push([w,D]):FtK(this,w,D,M)};Yz.prototype.fetch=function(w,D,M){var L=this,Z=aGa(w,D,M);return new Promise(function(k,b){function C(){if(M==null?0:M.GQ)try{var E=L.handleResponse(w,Z.status,Z.response,M);k(E)}catch(p){b(p)}else k(L.handleResponse(w,Z.status,Z.response,M))} Z.onerror=C;Z.onload=C;var l;Z.send((l=D.body)!=null?l:null)})}; Yz.prototype.handleResponse=function(w,D,M,L){M=M.replace(")]}'","");try{var Z=JSON.parse(M)}catch(k){g.jn(new g.qA("JSON parsing failed after XHR fetch",w,D,M));if((L==null?0:L.GQ)&&M)throw new g.qg(1,"JSON parsing failed after XHR fetch");Z={}}D!==200&&(g.jn(new g.qA("XHR API fetch failed",w,D,M)),Z=Object.assign({},Z,{errorMetadata:{status:D}}));return Z};CA.getInstance=function(){var w=g.w3("ytglobal.storage_");w||(w=new CA,g.mC("ytglobal.storage_",w));return w}; CA.prototype.estimate=function(){var w,D,M;return g.B(function(L){w=navigator;return((D=w.storage)==null?0:D.estimate)?L.return(w.storage.estimate()):((M=w.webkitTemporaryStorage)==null?0:M.queryUsageAndQuota)?L.return(v_a()):L.return()})}; g.mC("ytglobal.storageClass_",CA);Aa.prototype.Xd=function(w){this.handleError(w)}; Aa.prototype.logEvent=function(w,D){switch(w){case "IDB_DATA_CORRUPTED":g.hY("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",D);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",D);break;case "IS_SUPPORTED_COMPLETED":g.hY("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",D);break;case "QUOTA_EXCEEDED":B9K(this,D);break;case "TRANSACTION_ENDED":this.L&&Math.random()<=.1&&this.T("idbTransactionEnded",D);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":w= Object.assign({},D,{hasWindowUnloaded:this.V}),this.T("idbTransactionAborted",w)}};var Vg={},QGr=g.zV("yt-player-local-media",{Pm:(Vg.index={xV:2},Vg.media={xV:2},Vg.captions={xV:5},Vg),shared:!1,upgrade:function(w,D){D(2)&&(g.ND(w,"index"),g.ND(w,"media"));D(5)&&g.ND(w,"captions");D(6)&&(HT(w,"metadata"),HT(w,"playerdata"))}, version:5});var tyB={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},P3;a:{var OZ=g.qc();OZ=OZ.toLowerCase();if(g.ak(OZ,"android")){var $3r=OZ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if($3r){var ip3=parseFloat($3r[1]);if(ip3<100){P3=ip3;break a}}var d31=OZ.match("("+Object.keys(tyB).join("|")+")");P3=d31?tyB[d31[0]]:0}else P3=void 0}var Zp=P3,LN=Zp>=0;var UyK=window;var fGC=cb(function(){var w,D;return(D=(w=window).matchMedia)==null?void 0:D.call(w,"(prefers-reduced-motion: reduce)").matches});var Ep;g.lh=new tE;Ep=0;var dq=STR()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.XT?!0:!1;var h$={Og:function(w,D){w[Y[20]](0,D)}, IK:function(w){w[Y[27]]()}, qq:function(w,D){var M=w[0];w[0]=w[D%w[Y[26]]];w[D%w[Y[26]]]=M}};var eLK={VsJ:"adunit",IKt:"detailpage",s4V:"editpage",BKJ:"embedded",rih:"leanback",N2E:"previewpage",XOh:"profilepage",aW:"unplugged",htc:"playlistoverview",RuV:"sponsorshipsoffer",Nah:"shortspage",S1D:"handlesclaiming",RUc:"immersivelivepage",S0L:"creatormusic",pxd:"immersivelivepreviewpage",Oxh:"admintoolyurt",ISt:"shortsaudiopivot",x2L:"consumption"};var JLJ=2592E3;var KD,yVk,GI;KD={};g.Up=(KD.STOP_EVENT_PROPAGATION="html5-stop-propagation",KD.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",KD.IV_DRAWER_OPEN="ytp-iv-drawer-open",KD.MAIN_VIDEO="html5-main-video",KD.VIDEO_CONTAINER="html5-video-container",KD.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",KD.HOUSE_BRAND="house-brand",KD);yVk={};GI=(yVk.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",yVk.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",yVk);var MHr={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var blr={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},Ysl={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"},soK={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var EFK={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.HO.prototype.getLanguageInfo=function(){return this.dW}; g.HO.prototype.getXtags=function(){if(!this.xtags){var w=this.id.split(";");w.length>1&&(this.xtags=w[1])}return this.xtags}; g.HO.prototype.toString=function(){return this.dW.name}; g.HO.prototype.getLanguageInfo=g.HO.prototype.getLanguageInfo;j_.prototype.equals=function(w){return this.V===w.V&&this.T===w.T&&this.L===w.L&&this.reason===w.reason&&(!Rh||this.sL===w.sL)}; j_.prototype.isLocked=function(){return this.L&&!!this.V&&this.V===this.T}; j_.prototype.compose=function(w){if(w.L&&oh(w))return $i;if(w.L||oh(this))return w;if(this.L||oh(w))return this;var D=this.V&&w.V?Math.max(this.V,w.V):this.V||w.V,M=this.T&&w.T?Math.min(this.T,w.T):this.T||w.T;D=Math.min(D,M);var L=0;Rh&&(L=this.sL!==0&&w.sL!==0?Math.min(this.sL,w.sL):this.sL===0?w.sL:this.sL);return Rh&&D===this.V&&M===this.T&&L===this.sL||!Rh&&D===this.V&&M===this.T?this:Rh?new j_(D,M,!1,M===this.T&&L===this.sL?this.reason:w.reason,L):new j_(D,M,!1,M===this.T?this.reason:w.reason)}; j_.prototype.D=function(w){return!w.video||Rh&&this.sL!==0&&this.sL=0}; g.y.Iw=function(){var w=this.segments[this.segments.length-1];return w?w.endTime:NaN}; g.y.BA=function(){return this.segments[0].startTime}; g.y.oa=function(){return this.segments.length}; g.y.vO=function(){return 0}; g.y.Y9=function(w){return(w=this.qX(w))?w.g9:-1}; g.y.dA=function(w){return(w=this.l8(w))?w.sourceURL:""}; g.y.getStartTime=function(w){return(w=this.l8(w))?w.startTime:0}; g.y.Wl=function(w){return this.getStartTime(w)+this.getDuration(w)}; g.y.hv=wR(1);g.y.isLoaded=function(){return this.segments.length>0}; g.y.l8=function(w){if(this.T&&this.T.g9===w)return this.T;w=g.TD(this.segments,new KA(w,0,0,0,""),function(D,M){return D.g9-M.g9}); return this.T=w>=0?this.segments[w]:null}; g.y.qX=function(w){if(this.T&&this.T.startTime<=w&&w=0?this.segments[w]:this.segments[Math.max(0,-w-2)]}; g.y.append=function(w){if(w.length)if(w=g.GD(w),this.segments.length){var D=this.segments.length?g.$B(this.segments).endTime:0,M=w[0].g9-this.EV();M>1&&HIC(this.segments);for(M=M>0?0:-M+1;Mw.g9&&this.index.Qo()<=w.g9+1}; g.y.update=function(w,D,M){this.index.append(w);f1C(this.index,M);w=this.index;w.V=D;w.L="update"}; g.y.Gk=function(){return this.Q_()?!0:zn.prototype.Gk.call(this)}; g.y.zs=function(w,D){var M=this.index.dA(w),L=this.index.getStartTime(w),Z=this.index.getDuration(w),k;D?Z=k=0:k=this.info.sL>0?this.info.sL*Z:1E3;return new kg([new m6(3,this,void 0,"liveCreateRequestInfoForSegment",w,L,Z,0,k,!D)],M)}; g.y.g8=function(){return this.Q_()?0:this.initRange.length}; g.y.g4=function(){return!1};Wy.prototype.update=function(w){var D=void 0;this.V&&(D=this.V);var M=new Wy,L=Array.from(w.getElementsByTagName("S"));if(L.length){var Z=+Ez(w,"timescale")||1,k=(+L[0].getAttribute("t")||0)/Z,b=+Ez(w,"startNumber")||0;M.D=k;var C=D?D.startSecs+D.x6:0,l=Date.parse(GwN(Ez(w,"yt:segmentIngestTime")))/1E3;M.W=w.parentElement.tagName==="SegmentTemplate";M.W&&(M.G=Ez(w,"media"));w=D?b-D.g9:1;M.Y=w>0?0:-w+1;w=g.x(L);for(L=w.next();!L.done;L=w.next()){L=L.value;for(var E=+L.getAttribute("d")/Z,p=(+L.getAttribute("yt:sid")|| 0)/Z,W=+L.getAttribute("r")||0,h=0;h<=W;h++)if(D&&b<=D.g9)b++;else{var t=new nMJ(b,C,E,l+p,k);M.T.push(t);var d=L;var N=Z,n=t.startSecs;t=d.getAttribute("yt:cuepointTimeOffset");var v=d.getAttribute("yt:cuepointDuration");if(t&&v){t=Number(t);n=-t/N+n;N=Number(v)/N;v=d.getAttribute("yt:cuepointContext")||null;var G=d.getAttribute("yt:cuepointIdentifier")||"";d=d.getAttribute("yt:cuepointEvent")||"";d=new YZ(n,N,v,G,U3k[d]||"unknown",t)}else d=null;d&&M.L.push(d);b++;C+=E;k+=E;l+=E+p}}M.T.length&& (M.V=g.$B(M.T))}this.Y=M.Y;this.V=M.V||this.V;g.sl(this.T,M.T);g.sl(this.L,M.L);this.W=M.W;this.G=M.G;this.D===-1&&(this.D=M.getStreamTimeOffset())}; Wy.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.I(tc,g.m2);g.y=tc.prototype;g.y.RP=function(){return this.vI}; g.y.s3=function(w,D){w=$g(this,w);return w>=0&&(D||!this.segments[w].pending)}; g.y.Qo=function(){return this.MQ?this.segments.length?this.qX(this.BA()).g9:-1:g.m2.prototype.Qo.call(this)}; g.y.BA=function(){if(this.G3)return 0;if(!this.MQ)return g.m2.prototype.BA.call(this);if(!this.segments.length)return 0;var w=Math.max(g.$B(this.segments).endTime-this.FZ,0);return this.YP>0&&this.qX(w).g90)return this.NT/1E3;if(!this.segments.length)return g.m2.prototype.Iw.call(this);var w=this.EV();if(!this.MQ||w<=this.segments[this.segments.length-1].g9)w=this.segments[this.segments.length-1];else{var D=this.segments[this.segments.length-1];w=new KA(w,Math.max(0,D.startTime-(D.g9-w)*this.vI),this.vI,0,"sq/"+w,void 0,void 0,!0)}return this.G3?Math.min(this.FZ,w.endTime):w.endTime}; g.y.oa=function(){return this.MQ?this.segments.length?this.EV()-this.Qo()+1:0:g.m2.prototype.oa.call(this)}; g.y.EV=function(){var w=Math.min(this.gZ,Math.max(g.m2.prototype.EV.call(this),this.Vm)),D=this.FZ*1E3;D=this.NT>0&&this.NT0&&this.Vm>0&&!D&&(D=this.qX(this.FZ))&&(w=Math.min(D.g9-1,w));return w}; g.y.RN=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.y.GN=function(w){var D=$g(this,w.g9);if(D>=0)this.segments[D]=w;else if(this.segments.splice(-(D+1),0,w),this.Uf&&w.g9%(300/this.vI)===0){var M=this.segments[0].g9,L=Math.floor(this.Uf/this.vI);w=w.g9-L;D=-(D+1)-L;D>0&&w>M&&(this.segments=this.segments.slice(D))}}; g.y.dB=function(){return this.Vm}; g.y.al=function(w){return hc?!this.V&&w>=0&&this.EV()<=w:g.m2.prototype.al.call(this,w)}; g.y.qX=function(w){if(!this.MQ)return g.m2.prototype.qX.call(this,w);if(!this.segments.length)return null;var D=this.segments[this.segments.length-1];if(w=D.endTime)D=D.g9+Math.floor((w-D.endTime)/this.vI+1);else{D=ur(this.segments,function(L){return w=L.endTime?1:0}); if(D>=0)return this.segments[D];var M=-(D+1);D=this.segments[M-1];M=this.segments[M];D=Math.floor((w-D.endTime)/((M.startTime-D.endTime)/(M.g9-D.g9-1))+1)+D.g9}return this.l8(D)}; g.y.l8=function(w){if(!this.MQ)return g.m2.prototype.l8.call(this,w);if(!this.segments.length)return null;var D=$g(this,w);if(D>=0)return this.segments[D];var M=-(D+1);D=this.vI;if(M===0)var L=Math.max(0,this.segments[0].startTime-(this.segments[0].g9-w)*D);else M===this.segments.length?(L=this.segments[this.segments.length-1],L=L.endTime+(w-L.g9-1)*D):(L=this.segments[M-1],D=this.segments[M],D=(D.startTime-L.endTime)/(D.g9-L.g9-1),L=L.endTime+(w-L.g9-1)*D);return new KA(w,L,D,0,"sq/"+w,void 0,void 0, !0)}; var hc=!1;g.I(ic,lc);g.y=ic.prototype;g.y.NP=function(){return!0}; g.y.Gk=function(){return!0}; g.y.LD=function(w){return this.cM()&&w.L&&!w.D||!w.T.index.al(w.g9)}; g.y.iH=function(){}; g.y.u3=function(w,D){return typeof w!=="number"||isFinite(w)?lc.prototype.u3.call(this,w,D===void 0?!1:D):new kg([new m6(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.y8,void 0,this.y8*this.info.sL)],"")}; g.y.zs=function(w,D){var M=M===void 0?!1:M;if(this.index.s3(w))return lc.prototype.zs.call(this,w,D);var L=this.index.getStartTime(w),Z=Math.round(this.y8*this.info.sL),k=this.y8;D&&(k=Z=0);return new kg([new m6(M?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",w,L,k,void 0,Z,!D)],w>=0?"sq/"+w:"")};g.I(dg,zn);g.y=dg.prototype;g.y.kL=function(){return!1}; g.y.cM=function(){return!1}; g.y.NP=function(){return!1}; g.y.iH=function(){return new kg([new m6(1,this,void 0,"otfInit")],this.W)}; g.y.Zg=function(){return null}; g.y.Ap=function(w){this.LD(w);return rFI(this,MH(w),!1)}; g.y.u3=function(w,D){D=D===void 0?!1:D;w=this.index.Y9(w);D&&(w=Math.min(this.index.EV(),w+1));return rFI(this,w,!0)}; g.y.Rj=function(w){w.info.type===1&&(this.T||(this.T=kT(w.V)),w.T&&w.T.uri==="http://youtube.com/streaming/otf/durations/112015"&&eHK(this,w.T))}; g.y.LD=function(w){return w.L===0?!0:this.index.EV()>w.g9&&this.index.Qo()<=w.g9+1}; g.y.g8=function(){return 0}; g.y.g4=function(){return!1};g.yI.prototype.info=function(){}; g.yI.prototype.debug=function(){}; g.yI.prototype.T=function(w){It.apply(null,[5,this.tag,w].concat(g.tG(g.rR.apply(1,arguments))))}; var utx=new Map,JFr=new Map,SUT=new function(){var w=this;this.T=new Map;this.Bz={MEL:function(){return w.T}}};g.y=g.ot.prototype;g.y.s3=function(w){return w<=this.EV()}; g.y.vO=function(w){return this.offsets[w]}; g.y.getStartTime=function(w){return this.startTicks[w]/this.T}; g.y.Wl=function(w){return this.getStartTime(w)+this.getDuration(w)}; g.y.hv=wR(0);g.y.mj=function(){return NaN}; g.y.getDuration=function(w){w=this.yk(w);return w>=0?w/this.T:-1}; g.y.yk=function(w){return w+1=0}; g.y.Iw=function(){return this.V?this.startTicks[this.count]/this.T:NaN}; g.y.BA=function(){return 0}; g.y.oa=function(){return this.count}; g.y.dA=function(){return""}; g.y.Y9=function(w){w=g.TD(this.startTicks.subarray(0,this.count),w*this.T);return w>=0?w:Math.max(0,-w-2)}; g.y.isLoaded=function(){return this.EV()>=0}; g.y.Zm=function(w,D){if(w>=this.EV())return 0;var M=0;for(D=this.getStartTime(w)+D;wthis.getStartTime(w);w++)M=Math.max(M,DLK(this,w)/this.getDuration(w));return M}; g.y.resize=function(w){w+=2;var D=this.offsets;this.offsets=new Float64Array(w+1);var M=this.startTicks;this.startTicks=new Float64Array(w+1);for(w=0;w0&&w&&(M=M.range.end+1,w=Math.min(w,this.info.contentLength-M),w>0&&L.push(new m6(4,this,OY(M,w),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,D)));return new kg(L)}; g.y.Rj=function(w){if(w.info.type===1){if(this.T)return;this.T=kT(w.V)}else if(w.info.type===2){if(this.W||this.index.EV()>=0)return;if(g.zw(this.info)){var D=this.index,M=g.xg(w);w=w.info.range.start;var L=g.pd(M,0,1936286840);M=Oll(L);D.T=M.timescale;var Z=M.Ie;D.offsets[0]=M.DF+w+L.size;D.startTicks[0]=Z;D.V=!0;w=M.BZ.length;for(L=0;L0&&w===k[0].jG)for(w=0;w=D+M)break}Z.length||(w=new g.qA("b189619593",""+w,""+D,""+M),g.HL(w));return new kg(Z)}; g.y.Dp=function(w){for(var D=this.IM(w.info),M=w.info.range.start+w.info.V,L=[],Z=0;Z=this.index.vO(M+1);)M++;return this.eY(M,D,w.L).uW}; g.y.LD=function(w){w.wK();return this.Gk()?!0:w.range.end+1this.info.contentLength&&(D=new Vl(D.start,this.info.contentLength-1)),new kg([new m6(4,w.T,D,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,w.clipId)]);w.type===4&&(w=this.IM(w),w=w[w.length-1]);var M=0,L=w.range.start+w.V+w.L;w.type===3&&(w.wK(),M=w.g9,L===w.range.end+1&&(M+=1));return this.eY(M,L,D)}; g.y.Ap=function(){return null}; g.y.u3=function(w,D){D=D===void 0?!1:D;w=this.index.Y9(w);D&&(w=Math.min(this.index.EV(),w+1));return this.eY(w,this.index.vO(w),0,void 0)}; g.y.kL=function(){return!0}; g.y.cM=function(){return!0}; g.y.NP=function(){return!1}; g.y.g8=function(){return this.indexRange.length+this.initRange.length}; g.y.g4=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var A1={},dLG=(A1.COLOR_PRIMARIES_BT709="bt709",A1.COLOR_PRIMARIES_BT2020="bt2020",A1.COLOR_PRIMARIES_UNKNOWN=null,A1.COLOR_PRIMARIES_UNSPECIFIED=null,A1),wt={},L4r=(wt.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",wt.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",wt.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",wt.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",wt.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,wt.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,wt);g.GH.prototype.getName=function(){return this.name}; g.GH.prototype.getId=function(){return this.id}; g.GH.prototype.getIsDefault=function(){return this.isDefault}; g.GH.prototype.toString=function(){return this.name}; g.GH.prototype.getName=g.GH.prototype.getName;g.GH.prototype.getId=g.GH.prototype.getId;g.GH.prototype.getIsDefault=g.GH.prototype.getIsDefault;var YPl=/action_display_post/;var C$J,vy,cy;g.I(By,g.mI);g.y=By.prototype;g.y.isLoading=function(){return this.state===1}; g.y.NR=function(){return this.state===3}; g.y.mr7=function(w){var D=w.getElementsByTagName("Representation");if(w.getElementsByTagName("SegmentList").length>0||w.getElementsByTagName("SegmentTemplate").length>0){this.Yl=this.V=!0;this.Y||(this.Y=new aTx);fTI(this.Y,w);this.publish("refresh");for(w=0;w=0?p=PM(h):W=W+"?range="+h}l.call(C,new KA(E.g9,E.startSecs,E.x6,E.T,W,p,E.V))}L=Z}M.update(L,this.isLive,this.XE)}qUS(this.Y);return!0}this.duration=F$S(Ez(w,"mediaPresentationDuration"));a:{for(w= 0;w0))return this.T3()-w}}w=this.T;for(var D in w){var M=w[D].index;if(M.isLoaded()&&!AF(w[D].info.mimeType))return M.BA()}return 0}; g.y.getStreamTimeOffset=function(){return this.U}; g.y.mj=function(w){for(var D in this.T){var M=this.T[D].index;if(M.isLoaded()){var L=M.Y9(w),Z=M.mj(L);if(Z)return Z+w-M.getStartTime(L)}}return NaN}; var Oz=null,x3D,Kr=!((x3D=navigator.mediaCapabilities)==null||!x3D.decodingInfo),jEI={commentary:1,alternate:2,dub:3,main:4};var yo=new Set,mk=new Map;DO.prototype.clone=function(w){return new DO(this.flavor,w,this.V,this.experiments)}; DO.prototype.qC=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; DO.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 NPB={},pg=(NPB.playready=["com.youtube.playready","com.microsoft.playready"],NPB.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],NPB),Dv={},WDT=(Dv.widevine="DRM_SYSTEM_WIDEVINE",Dv.fairplay="DRM_SYSTEM_FAIRPLAY",Dv.playready="DRM_SYSTEM_PLAYREADY",Dv),Ml={},Hpx=(Ml.widevine=1,Ml.fairplay=2,Ml.playready=3,Ml);var $t;g.I(Wd,g.X); Wd.prototype.initialize=function(w,D){for(var M=this,L=g.x(Object.keys(w)),Z=L.next();!Z.done;Z=L.next()){Z=g.x(w[Z.value]);for(var k=Z.next();!k.done;k=Z.next())if(k=k.value,k.f6)for(var b=g.x(Object.keys(k.f6)),C=b.next();!C.done;C=b.next()){var l=C.value;C=l;l=pg[l];!l&&this.C("html5_enable_vp9_fairplay")&&C==="fairplay"&&(l=["com.youtube.fairplay.sbdl"]);if(l){l=g.x(l);for(var E=l.next();!E.done;E=l.next())E=E.value,this.L[E]=this.L[E]||new DO(C,E,k.f6[C],this.P_.experiments),this.T[C]=this.T[C]|| {},this.T[C][k.mimeType]=!0}}}rz()&&(this.L["com.youtube.fairplay"]=new DO("fairplay","com.youtube.fairplay","",this.P_.experiments),this.C("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.V=qPk(D,this.useCobaltWidevine,this.C("html5_enable_safari_fairplay")&&!0,this.C("html5_enable_vp9_fairplay")).filter(function(p){return!!M.L[p]})}; Wd.prototype.C=function(w){return this.P_.experiments.ek(w)};var j8B={"":"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"};SPl.prototype.C=function(w){return this.experiments.ek(w)};var T6a={RED:"red",tyt:"white"};ye.prototype.vr=function(w){if(w.Bv!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return VVK(this,w)}; ye.prototype.ek=function(w){return this.flags.get(""+w)==="true"};Ip.prototype.kK=function(){return this.L}; Ip.prototype.Xj=function(){return this.V}; Ip.prototype.ek=function(w){w=this.vr(w);JSON.stringify(w);return w==="true"}; Ip.prototype.vr=function(w){return this.flags[w]};var K4G=Promise.resolve(),MEJ=window.queueMicrotask?window.queueMicrotask.bind(window):mLx;xt.prototype.canPlayType=function(w,D){w=w.canPlayType?w.canPlayType(D):!1;e$?w=w||gDr[D]:Zp===2.2?w=w||RjP[D]:f7()&&(w=w||oDD[D]);return!!w}; xt.prototype.isTypeSupported=function(w){return this.B?window.cast.receiver.platform.canDisplayType(w):yd(w)}; var RjP={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},oDD={"application/x-mpegURL":"maybe"},gDr={"application/x-mpegURL":"maybe"};g.I(j1,g.mI);j1.prototype.add=function(w,D){if(!this.items[w]&&(D.Fv||D.pN||D.Jk)){var M=this.items,L=D;Object.isFrozen&&!Object.isFrozen(D)&&(L=Object.create(D),Object.freeze(L));M[w]=L;this.publish("vast_info_card_add",w)}}; j1.prototype.remove=function(w){var D=this.get(w);delete this.items[w];return D}; j1.prototype.get=function(w){return this.items[w]||null}; j1.prototype.isEmpty=function(){return g.WD(this.items)};gq.prototype.encrypt=function(w){this.T.exports.AES128CTRCipher_encrypt(this.cipher,w.byteOffset,w.byteLength);return w}; gq.prototype.xt=function(){return this.cipher===0}; gq.prototype.dispose=function(){this.T.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};op.prototype.iz=function(w,D){D=D===void 0?1:D;this.Fo+=D;this.V+=w;w/=D;for(var M=0;M0)L+="."+Rp[Z].toFixed(0)+"_"+M.T[Z].toFixed(0);else break;M=L}M&&(w[D]=M)}this.T=new bYR;return w}; g.y.toString=function(){return""};g.y=W8R.prototype;g.y.isActive=function(){return!1}; g.y.J0=function(){}; g.y.jn=function(){}; g.y.R3=function(){}; g.y.IS=function(w,D){D()}; g.y.uh=function(){return{}}; g.y.toString=function(){return""};var nD1=new W8R,FMl=!!+TQ("html5_enable_profiler"),G4r=!!+TQ("html5_onesie_enable_profiler"),Lz=FMl||G4r?new CbI:nD1,qVr=FMl?Lz:nD1,Fm=G4r?Lz:nD1;INC.prototype.emscripten_notify_memory_growth=function(){};g.y=ng.prototype;g.y.malloc=function(w){return this.exports.malloc(w)}; g.y.free=function(w){this.exports.free(w)}; g.y.realloc=function(w,D){return this.exports.realloc(w,D)}; g.y.So=function(w){if(w.buffer!==this.exports.memory.buffer){var D=this.malloc(w.byteLength);D=new Uint8Array(this.exports.memory.buffer,D,w.byteLength);D.set(w);return D}}; g.y.pE=function(w){if(w.buffer===this.exports.memory.buffer){var D=w.slice();this.free(w.byteOffset);return D}}; var iYr=new function(){this.T=this.V="WebAssembly"in window},Gm="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); Fm.J0(ng,{So:function(w){return{profile:"copyj2w",Fo:w===void 0?0:Math.ceil(w.byteLength/16)}}, pE:function(w){return{profile:"copyw2j",Fo:w===void 0?0:Math.ceil(w.byteLength/16)}}});s2.prototype.encrypt=function(w,D){try{return this.T.pE(HYS(this,w,D))}catch(M){g.jn(Error("ocwce: wasm encrypt failed: "+M))}}; s2.prototype.xt=function(){return this.L}; s2.prototype.dispose=function(){this.xt()||(g.M9(this.V),this.T.free(this.D.byteOffset),this.L=!0)};g.I(jKa,g.X);g.I(RLI,g.X);var vd;cd.prototype.add=function(w){if(this.pos+20>this.data.length){var D=new Uint8Array(this.data.length*2);D.set(this.data);this.data=D}for(;w>31;)this.data[this.pos++]=vd[(w&31)+32],w>>=5;this.data[this.pos++]=vd[w|0]}; cd.prototype.Dy=function(){return g.pM(this.data.subarray(0,this.pos))}; cd.prototype.reset=function(){this.pos=0};fg.prototype.pJ=function(w,D){var M=Math.pow(this.alpha,w);this.T=D*(1-M)+M*this.T;this.V+=w}; fg.prototype.Td=function(){return this.T/(1-Math.pow(this.alpha,this.V))};qb.prototype.pJ=function(w,D){for(var M=0;M<10;M++){var L=this.T[M],Z=L+(M===0?w:0),k=1*Math.pow(2,M);if(Z<=k)break;L=Math.min(1,(Z-k*.5)/L);for(Z=0;Z<16;Z++)k=this.values[M*16+Z]*L,this.values[(M+1)*16+Z]+=k,this.T[M+1]+=k,this.values[M*16+Z]-=k,this.T[M]-=k}L=M=0;Z=8192;D>8192&&(M=Math.ceil(Math.log(D/8192)/Math.log(2)),L=8192*Math.pow(2,M-1),Z=L*2);M+2>16?this.values[15]+=w:(D=(D-L)/(Z-L),this.values[M]+=w*(1-D),this.values[M+1]+=w*D);this.T[0]+=w}; qb.prototype.Td=function(){var w=w===void 0?this.V:w;var D=D===void 0?.02:D;var M=M===void 0?.98:M;for(var L=this.L,Z=0;Z<16;Z++)L[Z]=this.values[Z];Z=this.T[0];for(var k=1;k<11;k++){var b=this.T[k];if(b===0)break;for(var C=Math.min(1,(w-Z)/b),l=0;l<16;l++)L[l]+=this.values[k*16+l]*C;Z+=b*C;if(C<1)break}for(k=w=b=0;k<16;k++){C=b+L[k]/Z;w+=Math.max(0,Math.min(C,M)-Math.max(b,D))*(k>0?8192*Math.pow(2,k-1):0);if(C>M)break;b=C}return w/(M-D)};rq.prototype.pJ=function(w,D){w=Math.min(this.T,Math.max(1,Math.round(w*this.resolution)));w+this.V>=this.T&&(this.L=!0);for(;w--;)this.values[this.V]=D,this.V=(this.V+1)%this.T;this.gs=!0}; rq.prototype.percentile=function(w){var D=this;if(!this.L&&this.V===0)return 0;this.gs&&(g.Jx(this.W,function(M,L){return D.values[M]-D.values[L]}),this.gs=!1); return this.values[this.W[Math.round(w*((this.L?this.T:this.V)-1))]]||0}; rq.prototype.Td=function(){return this.Y?(this.percentile(this.D-this.Y)+this.percentile(this.D)+this.percentile(this.D+this.Y))/3:this.percentile(this.D)};g.I(e1,g.X);e1.prototype.XE=function(){var w;(w=this.Md)==null||w.start();if(Ve(this)&&this.policy.U){var D;(D=this.vA)==null||D.Ip()}};aNr.prototype.C=function(w){return this.experiments.ek(w)};g.I(crK,g.X);var XEK="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(" "),VEx={dmE:"caoe",Sgt:"capsv",OJt:"cbrand",UmW:"cbr",TKL:"cbrver",Pbk:"cchip",Y0k:"ccappver",Jfh:"ccrv",cH7:"cfrmver",ifJ:"c",OfV:"cver",AHE:"ctheme",BC5:"cplayer",Ai9:"cmodel",Vw:"cnetwork",YMW:"cos",OS_VERSION:"cosver",GgD:"cplatform",C8h:"crqyear"};g.I(t6,g.X);g.y=t6.prototype;g.y.C=function(w){return this.experiments.ek(w)}; g.y.kK=function(){return this.experiments.kK()}; g.y.Xj=function(){return this.experiments.Xj()}; g.y.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.y.getVideoUrl=function(w,D,M,L,Z,k,b){D={list:D};M&&(Z?D.time_continue=M:D.t=M);M=b?"music.youtube.com":g.iw(this);Z=M==="www.youtube.com";!k&&L&&Z?k="https://youtu.be/"+w:g.Y2(this)?(k="https://"+M+"/fire",D.v=w):(k&&Z?(k=this.protocol+"://"+M+"/shorts/"+w,L&&(D.feature="share")):(k=this.protocol+"://"+M+"/watch",D.v=w),e$&&(w=rhl())&&(D.ebc=w));return g.dh(k,D)}; g.y.getVideoEmbedCode=function(w,D,M,L){D="https://"+g.iw(this)+"/embed/"+D;L&&(D=g.dh(D,{list:L}));L=M.width;M=M.height;D=G7(D);w=G7(w!=null?w:"YouTube video player");return'')}; g.y.supportsGaplessAudio=function(){return g.d5&&!e$&&vo()>=74||g.l3&&g.eq(68)?!0:!1}; g.y.supportsGaplessShorts=function(){return!this.C("html5_enable_short_gapless")||this.jk||g.pf?!1:!0}; g.y.getPlayerType=function(){return this.T.cplayer}; g.y.gW=function(){return this.wz}; var mJK=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],zLr=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],OYj=[19];var Zv={},M0a=(Zv["140"]={numChannels:2},Zv["141"]={numChannels:2},Zv["251"]={audioSampleRate:48E3,numChannels:2},Zv["774"]={audioSampleRate:48E3,numChannels:2},Zv["380"]={numChannels:6},Zv["328"]={numChannels:6},Zv["773"]={},Zv),k5={},w1C=(k5["1"]='video/mp4; codecs="av01.0.08M.08"',k5["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',k5["1e"]='video/mp4; codecs="av01.0.08M.08"',k5["9"]='video/webm; codecs="vp9"',k5["("]='video/webm; codecs="vp9"',k5["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', k5.h='video/mp4; codecs="avc1.64001e"',k5.H='video/mp4; codecs="avc1.64001e"',k5.o='audio/webm; codecs="opus"',k5.a='audio/mp4; codecs="mp4a.40.2"',k5.ah='audio/mp4; codecs="mp4a.40.2"',k5.mac3='audio/mp4; codecs="ac-3"; channels=6',k5.meac3='audio/mp4; codecs="ec-3"; channels=6',k5.i='audio/mp4; codecs="iamf.001.001.Opus"',k5),bl={},DVk=(bl["337"]={width:3840,height:2160,bitrate:3E7,fps:30},bl["336"]={width:2560,height:1440,bitrate:15E6,fps:30},bl["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, bl["702"]={width:7680,height:4320,bitrate:4E7,fps:60},bl["701"]={width:3840,height:2160,bitrate:2E7,fps:60},bl["700"]={width:2560,height:1440,bitrate:1E7,fps:60},bl["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},bl["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},bl["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},bl["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, bl["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},bl["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},bl["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},bl["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},bl["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},bl["315"]={width:3840,height:2160,bitrate:2E7,fps:60},bl["308"]={width:2560, height:1440,bitrate:1E7,fps:60},bl["303"]={width:1920,height:1080,bitrate:5E6,fps:60},bl["302"]={width:1280,height:720,bitrate:25E5,fps:60},bl["299"]={width:1920,height:1080,bitrate:75E5,fps:60},bl["298"]={width:1280,height:720,bitrate:35E5,fps:60},bl["571"]={width:7680,height:4320,bitrate:3E7,fps:60},bl["401"]={width:3840,height:2160,bitrate:15E6,fps:60},bl["400"]={width:2560,height:1440,bitrate:75E5,fps:60},bl["399"]={width:1920,height:1080,bitrate:2E6,fps:60},bl["398"]={width:1280,height:720,bitrate:1E6, fps:60},bl["397"]={width:854,height:480,bitrate:4E5,fps:30},bl["396"]={width:640,height:360,bitrate:25E4,fps:30},bl["787"]={width:1080,height:608,bitrate:2E5,fps:30},bl["788"]={width:1080,height:608,bitrate:4E5,fps:30},bl["572"]={width:7680,height:4320,bitrate:3E7,fps:60},bl["555"]={width:3840,height:2160,bitrate:15E6,fps:60},bl["554"]={width:2560,height:1440,bitrate:75E5,fps:60},bl["553"]={width:1920,height:1080,bitrate:2E6,fps:60},bl["552"]={width:1280,height:720,bitrate:1E6,fps:60},bl["551"]={width:854, height:480,bitrate:4E5,fps:30},bl["550"]={width:640,height:360,bitrate:25E4,fps:30},bl["313"]={width:3840,height:2160,bitrate:8E6,fps:30},bl["271"]={width:2560,height:1440,bitrate:4E6,fps:30},bl["248"]={width:1920,height:1080,bitrate:2E6,fps:30},bl["247"]={width:1280,height:720,bitrate:15E5,fps:30},bl["244"]={width:854,height:480,bitrate:52E4,fps:30},bl["243"]={width:640,height:360,bitrate:28E4,fps:30},bl["137"]={width:1920,height:1080,bitrate:4E6,fps:30},bl["136"]={width:1280,height:720,bitrate:3E6, fps:30},bl["135"]={width:854,height:480,bitrate:1E6,fps:30},bl["385"]={width:1920,height:1080,bitrate:6503313,fps:60},bl["376"]={width:1280,height:720,bitrate:5706960,fps:60},bl["384"]={width:1280,height:720,bitrate:3660979,fps:60},bl["225"]={width:1280,height:720,bitrate:5805E3,fps:30},bl["224"]={width:1280,height:720,bitrate:453E4,fps:30},bl["145"]={width:1280,height:720,bitrate:2682052,fps:30},bl);g.y=vn.prototype;g.y.getInfo=function(){return this.T}; g.y.Os=function(){return null}; g.y.Vk=function(){var w=this.Os();return w?(w=g.Kj(w.Zv),Number(w.expire)):NaN}; g.y.zl=function(){}; g.y.getHeight=function(){return this.T.video.height};b$T.prototype.build=function(){lJx(this);var w=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],D={};a:if(this.T)var M=this.T;else{M="";for(var L=g.x(this.L),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.dW){if(Z.dW.getIsDefault()){M=Z.dW.getId();break a}M||(M=Z.dW.getId())}}L=g.x(this.L);for(Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,this.Y||!Z.dW||Z.dW.getId()===M)D[Z.itag]||(D[Z.itag]=[]),D[Z.itag].push(Z);M=g.x(this.V);for(L=M.next();!L.done;L=M.next())if(L=L.value,Z=D[L.T]){Z=g.x(Z);for(var k=Z.next();!k.done;k= Z.next()){var b=w,C=b.push;k=k.value;var l="#EXT-X-MEDIA:TYPE=AUDIO,",E="YES",p="audio";if(k.dW){p=k.dW;var W=p.getId().split(".")[0];W&&(l+='LANGUAGE="'+W+'",');(this.T?this.T===p.getId():p.getIsDefault())||(E="NO");p=p.getName()}W="";L!==null&&(W=L.itag.toString());W=Bn(this,k.url,W);l=l+('NAME="'+p+'",DEFAULT='+(E+',AUTOSELECT=YES,GROUP-ID="'))+(CuJ(k,L)+'",URI="'+(W+'"'));C.call(b,l)}}M=g.x(this.W);for(L=M.next();!L.done;L=M.next())L=L.value,Z=s83,L=(b=L.dW)?'#EXT-X-MEDIA:URI="'+Bn(this,L.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+Z+'",LANGUAGE="'+b.getId()+'",NAME="'+b.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,L&&w.push(L);M=this.W.length>0?s83:void 0;L=g.x(this.V);for(Z=L.next();!Z.done;Z=L.next())Z=Z.value,C=D[Z.T],b=void 0,((b=C)==null?void 0:b.length)>0&&(b=Z,C=C[0],C="#EXT-X-STREAM-INF:BANDWIDTH="+(b.bitrate+C.bitrate)+',CODECS="'+(b.codecs+","+C.codecs+'",RESOLUTION=')+(b.width+"x"+b.height+',AUDIO="')+(CuJ(C,b)+'",')+(M?'SUBTITLES="'+M+'",':"")+"CLOSED-CAPTIONS=NONE",b.fps>1&&(C+= ",FRAME-RATE="+b.fps),b.tp&&(C+=",VIDEO-RANGE="+b.tp),w.push(C),w.push(Bn(this,Z.url,"")));return w.join("\n")}; var s83="text";g.I(fN,vn);fN.prototype.Vk=function(){return this.expiration}; fN.prototype.Os=function(){if(!this.Zv||this.Zv.xt()){var w=this.V.build();w="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(w);this.Zv=new $W(w)}return this.Zv};g.I(qi,vn);qi.prototype.Os=function(){return new $W(this.V.M8())}; qi.prototype.zl=function(){this.V=PO(this.V)};g.I(r0,vn);r0.prototype.Os=function(){return new $W(this.V)};var Y5={},IJN=(Y5.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Y5.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Y5.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Y5.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Y5);g.y=g.eZ.prototype;g.y.getId=function(){return this.id}; g.y.getName=function(){return this.name}; g.y.isServable=function(){return this.T}; g.y.M8=function(){return this.url}; g.y.getXtags=function(){return this.xtags}; g.y.toString=function(){return this.languageCode+": "+g.Xb(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.y.equals=function(w){return w?this.toString()===w.toString():!1}; g.y.q8=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var glK={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},RTK={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},olJ=/^(\d*)_((\d*)_?(\d*))$/;var FVN={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},G9J={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Cz={},a7k=(Cz.ALWAYS=1,Cz.BY_REQUEST=3,Cz.UNKNOWN=void 0,Cz),ll={},vDZ=(ll.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",ll.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",ll.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",ll.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",ll);var qnG; qnG=function(w){for(var D=Object.keys(w),M={},L=0;LL-D?-1:w}; g.y.PK=function(){return this.V.EV()}; g.y.UE=function(){return this.V.Qo()}; g.y.nQ=function(w){this.V=w};g.I(t0,WB);t0.prototype.V=function(w,D){return WB.prototype.V.call(this,"$N|"+w,D)}; t0.prototype.W=function(w,D,M){return new h0(w,D,M,this.isLive)};g.I(g.db,g.mI);g.y=g.db.prototype; g.y.setData=function(w){w=w||{};var D=w.errordetail;D!=null&&(this.errorDetail=D);var M=w.errorcode;M!=null?this.errorCode=M:w.status==="fail"&&(this.errorCode="auth");var L=w.reason;L!=null&&(this.errorReason=L);var Z=w.subreason;Z!=null&&(this.hd=Z);this.clientPlaybackNonce||(this.clientPlaybackNonce=w.cpn||(this.P_.gW()?"r"+g.WJ(15):g.WJ(16)));this.pV=OO(this.P_.pV,w.livemonitor);YXl(this,w);var k=w.raw_player_response;if(k)this.jD=k;else{var b=w.player_response;b&&(k=JSON.parse(b))}k&&(this.playerResponse= k);if(this.playerResponse){var C=this.playerResponse.annotations;if(C)for(var l=g.x(C),E=l.next();!E.done;E=l.next()){var p=E.value.playerAnnotationsUrlsRenderer;if(p){p.adsOnly&&(this.ow=!0);var W=p.loadPolicy;W&&(this.annotationsLoadPolicy=a7k[W]);var h=p.invideoUrl;h&&(this.Md=X8(h));break}}var t=this.playerResponse.attestation;t&&aJJ(this,t);var d=this.playerResponse.cotn;d&&(this.cotn=d);var N=this.playerResponse.heartbeatParams;if(N){this.Ah=!0;var n=N.heartbeatToken;n&&(this.drmSessionId=N.drmSessionId|| "",this.heartbeatToken=n,this.yn=Number(N.intervalMilliseconds),this.iK=Number(N.maxRetries),this.CH=!!N.softFailOnError,this.pH=!!N.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=N.heartbeatServerData;var v;this.Px=!((v=N.heartbeatAttestationConfig)==null||!v.requiresAttestation)}var G=this.playerResponse.messages;G&&fJN(this,G);var f=this.playerResponse.overlay;if(f){var e=f.playerControlsOverlayRenderer;if(e)if(reC(this,e.controlBgHtml),e.mutedAutoplay){var S=g.Q(e.mutedAutoplay,Qdr);if(S&& S.endScreen){var K=g.Q(S.endScreen,JMB);K&&K.text&&(this.kR=g.bI(K.text))}}else this.mutedAutoplay=!1}var V=this.playerResponse.playabilityStatus;if(V){var CI=V.backgroundability;CI&&CI.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Yx,lS;if((Yx=V.offlineability)==null?0:(lS=Yx.offlineabilityRenderer)==null?0:lS.offlineable)this.offlineable=!0;var Wr=V.contextParams;Wr&&(this.contextParams=Wr);var Mk=V.pictureInPicture;Mk&&Mk.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);V.playableInEmbed&&(this.allowEmbed=!0);var GK=V.ypcClickwrap;if(GK){var Vj=GK.playerLegacyDesktopYpcClickwrapRenderer,AG=GK.ypcRentalActivationRenderer;if(Vj)this.a$=Vj.durationMessage||"",this.oC=!0;else if(AG){var ir=AG.durationMessage;this.a$=ir?g.bI(ir):"";this.oC=!0}}var YB=V.errorScreen;if(YB){if(YB.playerLegacyDesktopYpcTrailerRenderer){var aT=YB.playerLegacyDesktopYpcTrailerRenderer;this.m_=aT.trailerVideoId||"";var b1=YB.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var fk=b1&&b1.ypcTrailerRenderer}else if(YB.playerLegacyDesktopYpcOfferRenderer)aT= YB.playerLegacyDesktopYpcOfferRenderer;else if(YB.ypcTrailerRenderer){fk=YB.ypcTrailerRenderer;var SP=fk.fullVideoMessage;this.Ws=SP?g.bI(SP):"";var YO,a;this.m_=((YO=g.Q(fk,zIZ))==null?void 0:(a=YO.videoDetails)==null?void 0:a.videoId)||""}aT&&(this.t2=aT.itemTitle||"",aT.itemUrl&&(this.iN=aT.itemUrl),aT.itemBuyUrl&&(this.RZ=aT.itemBuyUrl),this.pk=aT.itemThumbnail||"",this.r0=aT.offerHeadline||"",this.h2=aT.offerDescription||"",this.Yu=aT.offerId||"",this.Bn=aT.offerButtonText||"",this.oh=aT.offerButtonFormattedText|| null,this.iA=aT.overlayDurationMsec||NaN,this.Ws=aT.fullVideoMessage||"",this.U0=!0);if(fk){var u1=g.Q(fk,zIZ);if(u1)this.Ji={raw_player_response:u1};else{var aS=g.Q(fk,LX3);this.Ji=aS?PP(aS):null}this.U0=!0}}}var LI=this.playerResponse.playbackTracking;if(LI){var g3=w,H=J6(LI.googleRemarketingUrl);H&&(this.googleRemarketingUrl=H);var Da=J6(LI.youtubeRemarketingUrl);Da&&(this.youtubeRemarketingUrl=Da);var ok={},O3=J6(LI.ptrackingUrl);if(O3){var eP=zA(O3),JG=eP.oid;JG&&(this.B2=JG);var DZ=eP.pltype; DZ&&(this.AI=DZ);var Zj=eP.ptchn;Zj&&(this.pM=Zj);var Sc=eP.ptk;Sc&&(this.z0=encodeURIComponent(Sc));var R=eP.m;R&&(this.Ao=R)}var U=J6(LI.qoeUrl);if(U){for(var F=g.Kj(U),q=g.x(Object.keys(F)),u=q.next();!u.done;u=q.next()){var xx=u.value,P=F[xx];F[xx]=Array.isArray(P)?P.join(","):P}this.qL=F;var A=F.cat;A&&(this.C("html5_enable_qoe_cat_list")?this.YV=this.YV.concat(A.split(",")):this.Q8=A);var r=F.live;r&&(this.Jy=r);var yj=F.drm_product;yj&&(this.drmProduct=yj)}var Ul=J6(LI.videostatsPlaybackUrl); if(Ul){var bS=zA(Ul),lr=bS.adformat;if(lr){g3.adformat=lr;var zK=this.X(),RT=nla(lr,this.NI,zK.D,zK.U);RT&&(this.adFormat=RT)}var DK=bS.aqi;DK&&(g3.ad_query_id=DK);var jP=bS.autoplay;jP&&(this.ou=jP=="1",this.kO=jP=="1");var qZ=bS.autonav;qZ&&(this.isAutonav=qZ=="1");var nI=bS.delay;nI&&(this.mu=v5(nI));var jw=bS.ei;jw&&(this.eventId=jw);var sJ=ap(bS.adcontext);if(sJ)try{var vQ=JvQ(sJ);vQ&&(this.NL=vQ)}catch(usr){g.jn(Error("Malformed adContext"))}if(sJ||lr)this.ou=!0;var RS=bS.feature;RS&&(this.Jd= RS);var CW=bS.list;CW&&(this.playlistId=CW);var oS=bS.of;oS&&(this.pw=oS);var A9=bS.osid;A9&&(this.osid=A9);var LW=bS.referrer;LW&&(this.referrer=LW);var Q1=bS.sdetail;Q1&&(this.yC=Q1);var cQ=bS.ssrt;cQ&&(this.QW=cQ=="1");var n2=bS.subscribed;n2&&(this.subscribed=n2=="1");var PC=bS.uga;PC&&(this.userGenderAge=PC);var i4=bS.upt;i4&&(this.w6=i4);var fp=bS.vm;fp&&(this.videoMetadata=fp);ok.playback=bS}var wD=J6(LI.videostatsWatchtimeUrl);if(wD){var Do=zA(wD),p6=Do.ald;p6&&(this.Hw=p6);ok.watchtime=Do}var gE= J6(LI.atrUrl);if(gE){var rD=zA(gE);ok.atr=rD}var Oi=J6(LI.engageUrl);if(Oi){var e5=zA(Oi);ok.engage=e5}this.td=ok;if(LI.promotedPlaybackTracking){var M1=LI.promotedPlaybackTracking;M1.startUrls&&(this.D0=M1.startUrls);M1.firstQuartileUrls&&(this.nB=M1.firstQuartileUrls);M1.secondQuartileUrls&&(this.Jp=M1.secondQuartileUrls);M1.thirdQuartileUrls&&(this.gF=M1.thirdQuartileUrls);M1.completeUrls&&(this.DW=M1.completeUrls);M1.engagedViewUrls&&(M1.engagedViewUrls.length>1&&g.jn(new g.qA("There are more than one engaged_view_urls.")), this.bH=M1.engagedViewUrls[0])}}var dP=this.playerResponse.playerCueRanges;dP&&dP.length>0&&(this.cueRanges=dP);var q3=this.playerResponse.playerCueRangeSet;q3&&g.xi(this,q3);a:{var iY=this.playerResponse.adPlacements;if(iY)for(var Mn=g.x(iY),dB=Mn.next();!dB.done;dB=Mn.next()){var Lh=void 0,Zo=void 0,kd=(Lh=dB.value.adPlacementRenderer)==null?void 0:(Zo=Lh.renderer)==null?void 0:Zo.videoAdTrackingRenderer;if(kd){var b0=kd;break a}}b0=null}var yC=b0;LI&&LI.promotedPlaybackTracking&&yC&&g.jn(new g.qA("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var WC;if(!(WC=yC))a:{for(var Yd=g.x(this.playerResponse.adSlots||[]),UB=Yd.next();!UB.done;UB=Yd.next()){var xn=g.Q(UB.value,EX);if(xn===void 0||!aRC(xn))break;var fJ=void 0,Xy=(fJ=xn.fulfillmentContent)==null?void 0:fJ.fulfilledLayout,T5=g.Q(Xy,Ds);if(T5&&K$(T5)){WC=!0;break a}}WC=!1}WC&&(this.Xb=!0);var u0=this.playerResponse.playerAds;if(u0)for(var Dr=w,qp=g.x(u0),xQ=qp.next();!xQ.done;xQ=qp.next()){var r1=xQ.value;if(r1){var Mt=r1.playerLegacyDesktopWatchAdsRenderer;if(Mt){var S5=Mt.playerAdParams; if(S5){S5.autoplay=="1"&&(this.kO=this.ou=!0);this.zQ=S5.encodedAdSafetyReason||null;S5.showContentThumbnail!==void 0&&(this.D9=!!S5.showContentThumbnail);Dr.enabled_engage_types=S5.enabledEngageTypes;break}}}}var Rd=this.playerResponse.playerConfig;if(Rd){var Ur=Rd.manifestlessWindowedLiveConfig;if(Ur){var BP=Number(Ur.minDvrSequence),Lv=Number(Ur.maxDvrSequence),N9=Number(Ur.minDvrMediaTimeMs),Zr=Number(Ur.maxDvrMediaTimeMs),ek=Number(Ur.startWalltimeMs);BP&&(this.YP=BP);N9&&(this.c_=N9/1E3,this.C("html5_sabr_parse_live_metadata_playback_boundaries")&& ay(this)&&(this.GR=N9/1E3));Lv&&(this.gZ=Lv);Zr&&(this.oO=Zr/1E3,this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&ay(this)&&(this.o$=Zr/1E3));ek&&(this.GU=ek/1E3);(BP||N9)&&(Lv||Zr)&&(this.allowLiveDvr=this.isLivePlayback=this.nV=!0,this.G3=!1)}var He=Rd.daiConfig;if(He){if(He.enableDai){this.cI=!0;var MR=He.enableServerStitchedDai;MR&&(this.enableServerStitchedDai=MR);var OU=He.enablePreroll;OU&&(this.BV=OU)}var W$;if(He.daiType==="DAI_TYPE_SS_DISABLED"||((W$=He.debugInfo)==null?0:W$.isDisabledUnpluggedChannel))this.fu= !0;He.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.T8=!0);He.allowUstreamerRequestAdconfig&&(this.Fs=!0)}var bj=Rd.audioConfig;if(bj){var fj=bj.loudnessDb;fj!=null&&(this.wz=fj);var cXT=bj.trackAbsoluteLoudnessLkfs;cXT!=null&&(this.Kr=cXT);var BWj=bj.loudnessTargetLkfs;BWj!=null&&(this.loudnessTargetLkfs=BWj);bj.audioMuted&&(this.L7=!0);bj.muteOnStart&&(this.Qq=!0);var IG=bj.loudnessNormalizationConfig;if(IG){IG.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);IG.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var fiS=IG.minimumLoudnessTargetLkfs;fiS!=null&&(this.minimumLoudnessTargetLkfs=fiS);var qHa=IG.maxStatefulTimeThresholdSec;qHa!=null&&(this.maxStatefulTimeThresholdSec=qHa)}bj.playAudioOnly&&(this.kP=!0)}var fux=Rd.playbackEndConfig;if(fux){var rXT=fux.endSeconds,era=fux.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(rXT&&(this.endSeconds=rXT),era&&(this.limitedPlaybackDurationInSeconds=era))}var Re=Rd.fairPlayConfig;if(Re){var XRC=Re.certificate;XRC&& (this.jk=ap(XRC));var TWx=Number(Re.keyRotationPeriodMs);TWx>0&&(this.Ue=TWx);var uDS=Number(Re.keyPrefetchMarginMs);uDS>0&&(this.Oe=uDS)}var sk=Rd.playbackStartConfig;if(sk){this.Cm=Number(sk.startSeconds);var SHk=sk.liveUtcStartSeconds,Q4R=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;SHk&&!Q4R&&(this.liveUtcStartSeconds=Number(SHk));var qiS=sk.startPosition;if(qiS){var JXC=qiS.utcTimeMillis;JXC&&!Q4R&&(this.liveUtcStartSeconds=Number(JXC)*.001);var zrK=qiS.streamTimeMillis;zrK&&(this.uj= Number(zrK)*.001)}this.progressBarStartPosition=sk.progressBarStartPosition;this.progressBarEndPosition=sk.progressBarEndPosition}else{var rsJ=Rd.skippableSegmentsConfig;if(rsJ){var Vgk=rsJ.introSkipDurationMs;Vgk&&(this.WC=Number(Vgk)/1E3);var PgS=rsJ.outroSkipDurationMs;PgS&&(this.IE=Number(PgS)/1E3)}}var eRr=Rd.skippableIntroConfig;if(eRr){var OiS=Number(eRr.startMs),Kjk=Number(eRr.endMs);isNaN(OiS)||isNaN(Kjk)||(this.DJ=OiS,this.Wd=Kjk)}var mIK=Rd.streamSelectionConfig;mIK&&(this.HA=Number(mIK.maxBitrate)); var AXS=Rd.vrConfig;AXS&&(this.w7=AXS.partialSpherical=="1");var U_=Rd.webDrmConfig;if(U_){U_.skipWidevine&&(this.oz=!0);var wzR=U_.widevineServiceCert;wzR&&(this.C7=ap(wzR));U_.useCobaltWidevine&&(this.useCobaltWidevine=!0);U_.startWithNoQualityConstraint&&(this.oT=!0)}var cf=Rd.mediaCommonConfig;if(cf){var oe=cf.dynamicReadaheadConfig;if(oe){this.maxReadAheadMediaTimeMs=oe.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=oe.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=oe.readAheadGrowthRateMs|| NaN;var DUG,MMR=cf==null?void 0:(DUG=cf.mediaUstreamerRequestConfig)==null?void 0:DUG.videoPlaybackUstreamerConfig;MMR&&(this.Ss=ap(MMR));var XCC=cf==null?void 0:cf.sabrContextUpdates;if(XCC&&XCC.length>0)for(var LcI=g.x(XCC),TlG=LcI.next();!TlG.done;TlG=LcI.next()){var AK=TlG.value;if(AK.type&&AK.value){var lx1={type:AK.type,scope:AK.scope,value:ap(AK.value)||void 0,sendByDefault:AK.sendByDefault};this.sabrContextUpdates.set(AK.type,lx1)}}}var ZXK=cf.serverPlaybackStartConfig;ZXK&&(this.serverPlaybackStartConfig= ZXK);cf.useServerDrivenAbr&&(this.By=!0);var kpk=cf.requestPipeliningConfig;kpk&&(this.requestPipeliningConfig=kpk)}var bXI=Rd.inlinePlaybackConfig;bXI&&(this.Rg=!!bXI.showAudioControls);var nq=Rd.embeddedPlayerConfig;if(nq){this.embeddedPlayerConfig=nq;var uAI=nq.embeddedPlayerMode;if(uAI){var Y$T=this.X();Y$T.c_=uAI;Y$T.L=uAI==="EMBEDDED_PLAYER_MODE_PFL"}var Czr=nq.permissions;Czr&&(this.allowImaMonetization=!!Czr.allowImaMonetization)}var FI=Rd.webPlayerConfig;FI&&(FI.gatewayExperimentGroup&&(this.gatewayExperimentGroup= FI.gatewayExperimentGroup),FI.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var Bf=this.playerResponse.streamingData;if(Bf){var SiK=Bf.formats;if(SiK){for(var xl=[],l8I=g.x(SiK),QJJ=l8I.next();!QJJ.done;QJJ=l8I.next()){var Jsj=QJJ.value;xl.push(Jsj.itag+"/"+Jsj.width+"x"+Jsj.height)}this.Cu=xl.join(",");xl=[];for(var EfJ=g.x(SiK),zRx=EfJ.next();!zRx.done;zRx=EfJ.next()){var NV=zRx.value,H1={itag:NV.itag,type:NV.mimeType,quality:NV.quality},pzK=NV.url;pzK&&(H1.url=pzK);var GT=Op(NV),E7S=GT.QI, pgS=GT.GA,WEZ=GT.s;GT.sz&&(H1.url=E7S,H1.sp=pgS,H1.s=WEZ);xl.push(g.iX(H1))}this.X6=xl.join(",")}var ViK=Bf.hlsFormats;if(ViK){var WcR=Rd||null,sE={};if(WcR){var PoK=WcR.audioPairingConfig;if(PoK&&PoK.pairs)for(var hJI=g.x(PoK.pairs),O6S=hJI.next();!O6S.done;O6S=hJI.next()){var tMK=O6S.value,KXr=tMK.videoItag;sE[KXr]||(sE[KXr]=[]);sE[KXr].push(tMK.audioItag)}}for(var $Ul={},iXC=g.x(ViK),mPx=iXC.next();!mPx.done;mPx=iXC.next()){var dUR=mPx.value;$Ul[dUR.itag]=dUR.bitrate}for(var ygJ=[],I8j=g.x(ViK), AsN=I8j.next();!AsN.done;AsN=I8j.next()){var Vw=AsN.value,IV={itag:Vw.itag,type:Vw.mimeType,url:Vw.url,bitrate:Vw.bitrate,width:Vw.width,height:Vw.height,fps:Vw.fps},ae=Vw.audioTrack;if(ae){var UUK=ae.displayName;UUK&&(IV.name=UUK,IV.audio_track_id=ae.id,ae.audioIsDefault&&(IV.is_default="1"))}if(Vw.drmFamilies){for(var xUj=[],Npj=g.x(Vw.drmFamilies),wcT=Npj.next();!wcT.done;wcT=Npj.next())xUj.push(qH[wcT.value]);IV.drm_families=xUj.join(",")}var vm=sE[Vw.itag];if(vm&&vm.length){IV.audio_itag=vm.join(","); var HXx=$Ul[vm[0]];HXx&&(IV.bitrate+=HXx)}var jMK=Z5T(Vw);jMK&&(IV.eotf=jMK);Vw.audioChannels&&(IV.audio_channels=Vw.audioChannels);ygJ.push(g.iX(IV))}this.hlsFormats=ygJ.join(",")}var D3a=Bf.licenseInfos;if(D3a&&D3a.length>0){for(var gfr={},RJT=g.x(D3a),MyS=RJT.next();!MyS.done;MyS=RJT.next()){var ofC=MyS.value,nfS=ofC.drmFamily,FcK=ofC.url;nfS&&FcK&&(gfr[qH[nfS]]=FcK)}this.f6=gfr}var GpK=Bf.drmParams;GpK&&(this.drmParams=GpK);var sMx=Bf.dashManifestUrl;sMx&&(this.wW=g.dh(sMx,{cpn:this.clientPlaybackNonce})); var a8x=Bf.hlsManifestUrl;a8x&&(this.hlsvp=a8x);var vfI=Bf.probeUrl;vfI&&(this.probeUrl=X8(g.dh(vfI,{cpn:this.clientPlaybackNonce})));var cgK=Bf.serverAbrStreamingUrl;cgK&&(this.ib=new g.S_(cgK,!0))}var BpI=this.playerResponse.trackingParams;BpI&&(this.Jc=BpI);var x1=this.playerResponse.videoDetails;if(x1){var Uj=w,LMJ=x1.videoId;LMJ&&(this.videoId=LMJ,Uj.video_id||(Uj.video_id=LMJ));var ZpI=x1.title;ZpI&&(this.title=ZpI,Uj.title||(Uj.title=ZpI));var k4x=x1.lengthSeconds;k4x&&(this.lengthSeconds= Number(k4x),Uj.length_seconds||(Uj.length_seconds=k4x));var f8T=x1.keywords;f8T&&(this.keywords=pXR(f8T));var bpl=x1.channelId;bpl&&(this.Vf=bpl,Uj.ucid||(Uj.ucid=bpl));var q$x=x1.viewCount;q$x&&(this.rawViewCount=Number(q$x));var Yhk=x1.author;Yhk&&(this.author=Yhk,Uj.author||(Uj.author=Yhk));var rgN=x1.shortDescription;rgN&&(this.shortDescription=rgN);var eJK=x1.isCrawlable;eJK&&(this.isListed=eJK);var XzK=x1.musicVideoType;XzK&&(this.musicVideoType=XzK);var C4J=x1.isLive;C4J!=null&&(this.isLivePlayback= C4J);if(C4J||x1.isUpcoming)this.isPremiere=!x1.isLiveContent;var TpK=x1.thumbnail;TpK&&(this.U=Qq(TpK));var uuK=x1.isExternallyHostedPodcast;uuK&&(this.isExternallyHostedPodcast=uuK);var l7R=x1.viewerLivestreamJoinPosition;if(l7R==null?0:l7R.utcTimeMillis)this.Q5=v5(l7R.utcTimeMillis);var S$K=Rd||null,EDj=w;x1.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);x1.isUpcoming&&(this.isUpcoming=!0);if(x1.isPostLiveDvr){this.G3=!0;var QMN=x1.latencyClass;QMN&&(this.latencyClass=vDZ[QMN]||"UNKNOWN"); x1.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var pcR=!1;this.pV?(this.allowLiveDvr=Nb()?!0:SJ&&PV<5?!1:!0,this.isLivePlayback=!0):x1.isLive?(EDj.livestream="1",this.allowLiveDvr=x1.isLiveDvrEnabled?Nb()?!0:SJ&&PV<5?!1:!0:!1,this.partnerId=27,pcR=!0):x1.isUpcoming&&(pcR=!0);if(x1.isLive||this.pV){x1.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var JgJ=x1.latencyClass;JgJ&&(this.latencyClass=vDZ[JgJ]||"UNKNOWN");var zJK=x1.liveChunkReadahead;zJK&&(this.liveChunkReadahead= zJK);var a6=S$K&&S$K.livePlayerConfig;if(a6){a6.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);a6.hasSubfragmentedWebm&&(this.Tt=!0);a6.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var VMS=a6.liveExperimentalContentId;VMS&&(this.liveExperimentalContentId=Number(VMS));var PzC=a6.isLiveHeadPlayable;this.C("html5_live_head_playable")&&PzC!=null&&(this.isLiveHeadPlayable=PzC)}}pcR&&(this.isLivePlayback=!0,EDj.adformat&&EDj.adformat.split("_")[1]!=="8"||this.B.push("heartbeat"))}var OXx= x1.isPrivate;OXx!==void 0&&(this.isPrivate=OO(this.isPrivate,OXx))}if(V){var KcK=x1||null,mUJ=!1,vU=V.errorScreen;mUJ=vU&&(vU.playerLegacyDesktopYpcOfferRenderer||vU.playerLegacyDesktopYpcTrailerRenderer||vU.ypcTrailerRenderer)?!0:KcK&&KcK.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(V.status);if(!mUJ){this.errorCode=UVT(V.errorCode)||"auth";var cm=vU&&vU.playerErrorMessageRenderer;if(cm){this.playerErrorMessageRenderer=cm;var AgT=cm.reason;AgT&&(this.errorReason=g.bI(AgT)); var WMr=cm.subreason;WMr&&(this.hd=g.bI(WMr),this.T0=WMr)}else this.errorReason=V.reason||null;var hjI=V.status;if(hjI==="LOGIN_REQUIRED")this.errorDetail="1";else if(hjI==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(hjI==="AGE_CHECK_REQUIRED"){var wsG=V.errorScreen,D_J=wsG&&wsG.playerKavRenderer;this.errorDetail=D_J&&D_J.kavUrl?"4":"3"}else this.errorDetail=V.isBlockedInRestrictedMode?"5":"0"}}var MhT=this.playerResponse.interstitialPods;MhT&&BVN(this,MhT);this.Md&&this.eventId&&(this.Md= AQ(this.Md,{ei:this.eventId}));var tyx=this.playerResponse.captions;if(tyx&&tyx.playerCaptionsTracklistRenderer)a:{var xJ=tyx.playerCaptionsTracklistRenderer;this.captionTracks=[];if(xJ.captionTracks)for(var Lzk=g.x(xJ.captionTracks),$3S=Lzk.next();!$3S.done;$3S=Lzk.next()){var Nt=$3S.value,Z9C=lsI(Nt.baseUrl);if(!Z9C)break a;var ipR={is_translateable:!!Nt.isTranslatable,languageCode:Nt.languageCode,languageName:Nt.name&&g.bI(Nt.name),url:Z9C,vss_id:Nt.vssId,kind:Nt.kind};ipR.name=Nt.trackName;ipR.displayName= Nt.name&&g.bI(Nt.name);this.captionTracks.push(new g.eZ(ipR))}this.m8=xJ.audioTracks||[];this.oY=xJ.defaultAudioTrackIndex||0;this.d0=[];if(xJ.translationLanguages)for(var kOk=g.x(xJ.translationLanguages),d3j=kOk.next();!d3j.done;d3j=kOk.next()){var cU=d3j.value,wH={};wH.languageCode=cU.languageCode;wH.languageName=g.bI(cU.languageName);if(cU.translationSourceTrackIndices){wH.translationSourceTrackIndices=[];for(var b9x=g.x(cU.translationSourceTrackIndices),yVI=b9x.next();!yVI.done;yVI=b9x.next())wH.translationSourceTrackIndices.push(yVI.value)}if(cU.excludeAudioTrackIndices){wH.excludeAudioTrackIndices= [];for(var YIa=g.x(cU.excludeAudioTrackIndices),I7x=YIa.next();!I7x.done;I7x=YIa.next())wH.excludeAudioTrackIndices.push(I7x.value)}this.d0.push(wH)}this.yI=[];if(xJ.defaultTranslationSourceTrackIndices)for(var CPJ=g.x(xJ.defaultTranslationSourceTrackIndices),U3I=CPJ.next();!U3I.done;U3I=CPJ.next())this.yI.push(U3I.value);this.jF=!!xJ.contribute&&!!xJ.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Cm=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&q_x(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var lWI;this.compositeLiveIngestionOffsetToken=(lWI=this.playerResponse.playbackTracking)==null?void 0:lWI.compositeLiveIngestionOffsetToken;var EuI;this.compositeLiveStatusToken=(EuI=this.playerResponse.playbackTracking)==null?void 0: EuI.compositeLiveStatusToken;this.C("html5_fill_default_mosaic_audio_track_id")&&hW(this)&&(this.P_.Nd=AOl(this));var psR,WzK,hiR=(psR=this.playerResponse.playerConfig)==null?void 0:(WzK=psR.granularVariableSpeedConfig)==null?void 0:WzK.minimumPlaybackRate,thl,$_l,i9S=(thl=this.playerResponse.playerConfig)==null?void 0:($_l=thl.granularVariableSpeedConfig)==null?void 0:$_l.maximumPlaybackRate;hiR&&i9S&&(this.X4=hiR/100,this.wr=i9S/100)}Iy(this,w);w.queue_info&&(this.queueInfo=w.queue_info);var d_l= w.hlsdvr;d_l!=null&&(this.allowLiveDvr=Number(d_l)===1?Nb()?!0:SJ&&PV<5?!1:!0:!1);this.adQueryId=w.ad_query_id||null;this.zQ||(this.zQ=w.encoded_ad_safety_reason||null);this.L7=OO(this.L7,w.infringe||w.muted);this.oP7=w.authkey;this.AM=w.authuser;this.mutedAutoplay=OO(this.mutedAutoplay,w&&w.playmuted);this.mutedAutoplayDurationMode=mU(this.mutedAutoplayDurationMode,w&&w.muted_autoplay_duration_mode);this.G5=OO(this.G5,w&&w.mutedautoplay);var Bm=w.length_seconds;Bm&&(this.lengthSeconds=typeof Bm=== "string"?v5(Bm):Bm);if(this.isAd()||this.PO||!g.Le(g.lw(this.P_)))this.endSeconds=mU(this.endSeconds,this.IE||w.end||w.endSeconds);else{var h6r=g.lw(this.P_),fq=this.lengthSeconds;switch(h6r){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":fq>30?this.limitedPlaybackDurationInSeconds=30:fq<30&&fq>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=fq*.2}}this.Jc=AY(this.Jc,w.itct);this.Mv=OO(this.Mv, w.is_live_destination);this.isLivePlayback=OO(this.isLivePlayback,w.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Yl();w.isUpcoming&&(this.isUpcoming=OO(this.isUpcoming,w.isUpcoming));this.G3=OO(this.G3,w.post_live_playback);this.nV&&(this.G3=!1);this.isMdxPlayback=OO(this.isMdxPlayback,w.mdx);var q4=w.mdx_control_mode;q4&&(this.mdxControlMode=typeof q4==="number"?q4:v5(q4));this.isInlinePlaybackNoAd=OO(this.isInlinePlaybackNoAd,w.is_inline_playback_no_ad);this.Sb= mU(this.Sb,w.reload_count);this.reloadReason=AY(this.reloadReason,w.reload_reason);this.D9=OO(this.D9,w.show_content_thumbnail);this.cycToken=w.cyc||null;var y8J=SZ(w);Object.keys(y8J).length>0&&(this.U=y8J);this.W_=AY(this.W_,w.vvt);this.mdxEnvironment=AY(this.mdxEnvironment,w.mdx_environment);w.source_container_playlist_id&&(this.sourceContainerPlaylistId=w.source_container_playlist_id);w.serialized_mdx_metadata&&(this.serializedMdxMetadata=w.serialized_mdx_metadata);this.OOV=w.osig;this.eventId|| (this.eventId=w.eventid);this.osid||(this.osid=w.osid);this.playlistId=AY(this.playlistId,w.list);w.index&&(this.playlistIndex=this.playlistIndex===void 0?mU(0,w.index):mU(this.playlistIndex,w.index));this.NB=w.pyv_view_beacon_url;this.kT=w.pyv_quartile25_beacon_url;this.qB=w.pyv_quartile50_beacon_url;this.uJ=w.pyv_quartile75_beacon_url;this.X0=w.pyv_quartile100_beacon_url;var IWa=w.session_data;!this.pQ&&IWa&&(this.pQ=zQ(IWa,"&").feature);this.isFling=mU(this.isFling?1:0,w.is_fling)===1;this.vnd= mU(this.vnd,w.vnd);this.forceAdsUrl=AY(this.forceAdsUrl,w.force_ads_url);this.KP=AY(this.KP,w.ctrl);this.O1=AY(this.O1,w.ytr);this.uY=w.ytrcc;this.sU=w.ytrexp;this.F2=w.ytrext;this.Nr=AY(this.Nr,w.adformat);this.NI=AY(this.NI,w.attrib);this.slotPosition=mU(this.slotPosition,w.slot_pos);this.breakType=w.break_type;this.QW=OO(this.QW,w.ssrt);this.videoId=Dx(w)||this.videoId;this.Y=AY(this.Y,w.vss_credentials_token);this.nm=AY(this.nm,w.vss_credentials_token_type);this.kP=OO(this.kP,w.audio_only);this.XE= OO(this.XE,w.aac_high);this.yh=OO(this.yh,w.prefer_low_quality_audio);this.TJ=OO(this.TJ,w.uncap_inline_quality);this.C("html5_enable_qoe_cat_list")?w.qoe_cat&&(this.YV=this.YV.concat(w.qoe_cat.split(","))):this.Q8=AY(this.Q8,w.qoe_cat);this.uv=OO(this.uv,w.download_media);var U_S=w.prefer_gapless;this.G=U_S!=null?OO(this.G,U_S):this.G?this.G:this.P_.preferGapless&&this.P_.supportsGaplessShorts();YTN(this.playerResponse)&&this.B.push("ad");var x_T=w.adaptive_fmts;x_T&&(this.adaptiveFormats=x_T,this.H_("adpfmts", {},!0));var Nva=w.allow_embed;Nva&&(this.allowEmbed=Number(Nva)===1);var H9T=w.backgroundable;H9T&&(this.backgroundable=Number(H9T)===1);var jfJ=w.autonav;jfJ&&(this.isAutonav=Number(jfJ)===1);var guT=w.autoplay;guT&&(this.ou=this.kO=Number(guT)===1);var RiN=w.iv_load_policy;RiN&&(this.annotationsLoadPolicy=K7(this.annotationsLoadPolicy,RiN,EK));var oux=w.cc_lang_pref;oux&&(this.captionsLanguagePreference=AY(oux,this.captionsLanguagePreference));var nua=w.cc_load_policy;nua&&(this.AB=K7(this.AB,nua, EK));var FzR;this.deviceCaptionsOn=(FzR=w.device_captions_on)!=null?FzR:void 0;var GOK;this.b0=(GOK=w.device_captions_lang_pref)!=null?GOK:"";var sfx;this.Lu=(sfx=w.viewer_selected_caption_langs)!=null?sfx:[];var aWR=w.cached_load;aWR&&(this.gg=OO(this.gg,aWR));if(w.dash==="0"||w.dash===0||w.dash===!1)this.D6=!0;var vul=w.dashmpd;vul&&(this.wW=g.dh(vul,{cpn:this.clientPlaybackNonce}));var c8C=w.delay;c8C&&(this.mu=v5(c8C));var x3K=this.IE||w.end;if(this.NC?x3K!=null:x3K!=void 0)this.clipEnd=mU(this.clipEnd, x3K);var BvI=w.fmt_list;BvI&&(this.Cu=BvI);w.heartbeat_preroll&&this.B.push("heartbeat");this.Up=-Math.floor(Math.random()*10);this.TW=-Math.floor(Math.random()*40);var fWl=w.is_listed;fWl&&(this.isListed=OO(this.isListed,fWl));var qIJ=w.is_private;qIJ&&(this.isPrivate=OO(this.isPrivate,qIJ));var r8I=w.is_dni;r8I&&(this.yZ=OO(this.yZ,r8I));var eiI=w.dni_color;eiI&&(this.eZ=AY(this.eZ,eiI));var Xsk=w.pipable;Xsk&&(this.pipable=OO(this.pipable,Xsk));this.Nj=(this.wx=this.pipable&&this.P_.ow)&&!this.P_.showMiniplayerButton; var TvS=w.paid_content_overlay_duration_ms;TvS&&(this.paidContentOverlayDurationMs=v5(TvS));var u1R=w.paid_content_overlay_text;u1R&&(this.paidContentOverlayText=u1R);var SIr=w.url_encoded_fmt_stream_map;SIr&&(this.X6=SIr);var Qfa=w.hls_formats;Qfa&&(this.hlsFormats=Qfa);var J8j=w.hlsvp;J8j&&(this.hlsvp=J8j);var rU=w.live_start_walltime;rU&&(this.ST9=typeof rU==="number"?rU:v5(rU));var eX=w.live_manifest_duration;eX&&(this.HB=typeof eX==="number"?eX:v5(eX));var ziT=w.player_params;ziT&&(this.playerParams= ziT);var VhN=w.partnerid;VhN&&(this.partnerId=mU(this.partnerId,VhN));var PPa=w.probe_url;PPa&&(this.probeUrl=X8(g.dh(PPa,{cpn:this.clientPlaybackNonce})));var NPx=w.pyv_billable_url;NPx&&i1G(NPx)&&(this.bH=NPx);var HpG=w.pyv_conv_url;HpG&&i1G(HpG)&&(this.w1=HpG);Wir(this,w);this.startSeconds>0?this.C("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Cm||this.WC||w.start||w.startSeconds)&&this.H_("lss",{css:this.startSeconds,pcss:this.Cm,iss:this.WC,ps:w.start||void 0,pss:w.startSeconds|| void 0}):this.TU=this.startSeconds=mU(this.startSeconds,this.Cm||this.WC||w.start||w.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var O9j=w.live_utc_start;if(O9j!=null)this.liveUtcStartSeconds=Number(O9j);else{var j8x=this.startSeconds;j8x&&isFinite(j8x)&&j8x>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var KzT=w.utc_start_millis;KzT&&(this.liveUtcStartSeconds=Number(KzT)*.001)}var m_G=w.stream_time_start_millis; m_G&&(this.uj=Number(m_G)*.001);var gDS=this.WC||w.start;(this.NC?gDS==null||Number(w.resume)===1:gDS==void 0||w.resume=="1")||this.isLivePlayback||(this.clipStart=mU(this.clipStart,gDS));var A8N=w.url_encoded_third_party_media;A8N&&(this.PX=OD(A8N));var RjN=w.ypc_offer_button_formatted_text;if(RjN){var wmR=JSON.parse(RjN);this.oh=wmR!=null?wmR:null;this.XB=RjN}var D4G=w.ypc_offer_button_text;D4G&&(this.Bn=D4G);var MXC=w.ypc_offer_description;MXC&&(this.h2=MXC);var L9S=w.ypc_offer_headline;L9S&&(this.r0= L9S);var ZqC=w.ypc_full_video_message;ZqC&&(this.Ws=ZqC);var kTK=w.ypc_offer_id;kTK&&(this.Yu=kTK);var bqN=w.ypc_buy_url;bqN&&(this.RZ=bqN);var YEj=w.ypc_item_thumbnail;YEj&&(this.pk=YEj);var C6N=w.ypc_item_title;C6N&&(this.t2=C6N);var lhR=w.ypc_item_url;lhR&&(this.iN=lhR);var EGT=w.ypc_vid;EGT&&(this.m_=EGT);w.ypc_overlay_timeout&&(this.iA=Number(w.ypc_overlay_timeout));var pmK=w.ypc_trailer_player_vars;pmK&&(this.Ji=PP(pmK));var W9r=w.ypc_original_itct;W9r&&(this.fR=W9r);this.Vf=AY(this.Vf,w.ucid); this.fz=w.storyboard_spec||null;this.Vn=w.live_storyboard_spec||null;this.P6=w.iv_endscreen_url||null;this.U0=OO(this.U0,w.ypc_module);this.oC=OO(this.oC,w.ypc_clickwrap_module);this.U0&&this.B.push("ypc");this.oC&&this.B.push("ypc_clickwrap");this.xT={video_id:w.video_id,eventid:w.eventid,cbrand:w.cbrand,cbr:w.cbr,cbrver:w.cbrver,c:w.c,cver:w.cver,ctheme:w.ctheme,cplayer:w.cplayer,cmodel:w.cmodel,cnetwork:w.cnetwork,cos:w.cos,cosver:w.cosver,cplatform:w.cplatform,user_age:w.user_age,user_display_image:w.user_display_image, user_display_name:w.user_display_name,user_gender:w.user_gender,csi_page_type:w.csi_page_type,csi_service_name:w.csi_service_name,enablecsi:w.enablecsi,enabled_engage_types:w.enabled_engage_types};COj(this,w);var hfT=w.cotn;hfT&&(this.cotn=hfT);if(jYa(this))BB(this)&&(this.isLivePlayback&&this.wW&&(this.wI=!0),this.jk&&(this.Km=!0));else if(gFa(this))this.wI=!0;else{var tXN,$4k,iqI=((tXN=this.playerResponse)==null?void 0:($4k=tXN.streamingData)==null?void 0:$4k.adaptiveFormats)||[],BU=null;if(iqI.length> 0)BU=HOR(this,iqI);else if(!this.C("html5_deprecate_adaptive_formats_string")){this.H_("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var d4K=this.adaptiveFormats;if(d4K&&!BB(this)){this.P_.W.L&&(Kr=!0);var fM=uf(d4K),oDK=this.f6,yRa=this.lengthSeconds,tYx=this.isLivePlayback,j0=this.G3,q5=this.P_,$Ak=I0N(fM);if(tYx||j0){var IhC=q5==null?void 0:q5.experiments,fs=new By("",IhC,!0);fs.Yl=!0;fs.isManifestless=!0;fs.V=!j0;fs.isLive=!j0;fs.G3=j0;for(var U4S=g.x(fM),nDj=U4S.next();!nDj.done;nDj=U4S.next()){var rn= nDj.value,x4j=eI(rn,oDK),De=XE(rn.url,rn.sp,rn.s),NUN=De.get("id");NUN&&NUN.includes("%7E")&&(fs.y7=!0);var HqK=void 0,ieZ=(HqK=IhC)==null?void 0:HqK.ek("html5_max_known_end_time_rebase"),dA7=Number(rn.target_duration_sec)||5,ya1=Number(rn.max_dvr_duration_sec)||14400,jeS=Number(De.get("mindsq")||De.get("min_sq")||"0"),gGR=Number(De.get("maxdsq")||De.get("max_sq")||"0")||Infinity;fs.YP=fs.YP||jeS;fs.gZ=fs.gZ||gGR;var IxB=!AF(x4j.mimeType);De&&at(fs,new ic(De,x4j,{y8:dA7,MQ:IxB,FZ:ya1,YP:jeS,gZ:gGR, Uf:300,G3:j0,OJ:ieZ}))}var RfT=fs}else{if($Ak==="FORMAT_STREAM_TYPE_OTF"){var XI=yRa;XI=XI===void 0?0:XI;var eW=new By("",q5==null?void 0:q5.experiments,!1);eW.duration=XI||0;for(var oGJ=g.x(fM),FMJ=oGJ.next();!FMJ.done;FMJ=oGJ.next()){var XB=FMJ.value,G4C=eI(XB,oDK,eW.duration),s8R=XE(XB.url,XB.sp,XB.s);if(s8R)if(G4C.streamType==="FORMAT_STREAM_TYPE_OTF")at(eW,new dg(s8R,G4C,"sq/0"));else{var UA7=PM(XB.init),xAx=PM(XB.index);at(eW,new FE(s8R,G4C,UA7,xAx))}}eW.isOtf=!0;var nGC=eW}else{var TT=yRa; TT=TT===void 0?0:TT;var u6=new By("",q5==null?void 0:q5.experiments,!1);u6.duration=TT||0;for(var F9N=g.x(fM),a7I=F9N.next();!a7I.done;a7I=F9N.next()){var Tg=a7I.value,NQx=eI(Tg,oDK,u6.duration),HeP=PM(Tg.init),jjr=PM(Tg.index),GTC=XE(Tg.url,Tg.sp,Tg.s);GTC&&at(u6,new FE(GTC,NQx,HeP,jjr))}nGC=u6}RfT=nGC}var sea=RfT;if(fM.length>0){var ahx=fM[0];if(this.X().playerStyle==="hangouts-meet"&&ahx.url){var g7r=g.Kj(ahx.url);this.Ps=this.Ps||Number(g7r.expire)}}var R6r=this.isLivePlayback&&!this.G3&&!this.nV&& !this.isPremiere;this.C("html5_live_head_playable")&&(!fL(this)&&R6r&&this.H_("missingLiveHeadPlayable",{}),this.P_.y7==="yt"&&(sea.jk=!0));BU=sea}else BU=null;this.H_("pafmts",{isManifestFilled:!!BU})}if(BU){eA(this,BU);var vGN=!0}else vGN=!1;vGN?this.enableServerStitchedDai=this.enableServerStitchedDai&&qQ(this):this.wW&&(this.P_.y7==="yt"&&this.Yl()&&this.C("drm_manifestless_unplugged")&&this.C("html5_deprecate_manifestful_fallback")?this.H_("deprecateMflFallback",{}):this.wI=!0)}var vDa=w.adpings; vDa&&(this.LL=vDa?PP(vDa):null);var cRK=w.feature;cRK&&(this.Jd=cRK);var BUR=w.referrer;BUR&&(this.referrer=BUR);this.clientScreenNonce=AY(this.clientScreenNonce,w.csn);this.zA=mU(this.zA,w.root_ve_type);this.JU=mU(this.JU,w.kids_age_up_mode);this.NC||w.kids_app_info==void 0||(this.kidsAppInfo=w.kids_app_info);this.NC&&w.kids_app_info!=null&&(this.kidsAppInfo=w.kids_app_info);this.HE=OO(this.HE,w.upg_content_filter_mode);this.unpluggedFilterModeType=mU(this.unpluggedFilterModeType,w.unplugged_filter_mode_type); var fhr=w.unplugged_location_info;fhr&&(this.UV=fhr);var qES=w.unplugged_partner_opt_out;qES&&(this.rF=AY("",qES));this.WE=OO(this.WE,w.disable_watch_next);this.FO=AY(this.FO,w.internal_ip_override);this.xH=!!w.is_yto_interstitial;(this.interstitials.length||this.xH)&&this.B.push("yto");var rRG=w.Qf;rRG&&(this.Qf=rRG);this.y7=AY(this.y7,w.csi_timer);w.watchUrl&&(this.watchUrl=w.watchUrl);var MY=w.watch_endpoint;this.C("html5_attach_watch_endpoint_ustreamer_config")&&MY&&H$K(this,MY);if(MY==null?0: MY.ustreamerConfig)this.Ft=ap(MY.ustreamerConfig);var efG,XmI,TUN=MY==null?void 0:(efG=MY.loggingContext)==null?void 0:(XmI=efG.qoeLoggingContext)==null?void 0:XmI.serializedContextData;TUN&&(this.qiW=TUN);g.w0(this.P_)&&this.P_.C7&&(this.embedsRct=AY(this.embedsRct,w.rct),this.embedsRctn=AY(this.embedsRctn,w.rctn));w.embed_config&&(this.ph=w.embed_config);this.ZB=this.ZB||!!w.pause_at_start;w.default_active_source_video_id&&(this.defaultActiveSourceVideoId=w.default_active_source_video_id)}; g.y.X=function(){return this.P_}; g.y.C=function(w){return this.P_.C(w)}; g.y.Lx=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.y.hasSupportedAudio51Tracks=function(){var w;return!((w=this.TC)==null||!w.iW)}; g.y.getUserAudio51Preference=function(){var w=1;Ni(this.P_)&&this.C("html5_ytv_surround_toggle_default_off")?w=0:g.II(this.P_)&&this.isLivePlayback&&this.Ms()&&(w=0);var D;return(D=g.Rj("yt-player-audio51"))!=null?D:w}; g.y.bk=function(){this.xt()||(this.T.V||this.T.unsubscribe("refresh",this.bk,this),this.wX(-1))}; g.y.wX=function(w){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var D=xLI(this.T,this.Ym);if(D.length>0){for(var M=g.x(D),L=M.next();!L.done;L=M.next())L=L.value,L.startSecs=Math.max(L.startSecs,this.BA()),this.C("html5_cuepoint_identifier_logging")&&L.event==="start"&&this.H_("cuepoint",{pubCue:L.identifier,segNum:w});this.publish("cuepointupdated",D,w);this.Ym+=D.length;if(qQ(this)&&this.P_.gW())for(D=g.x(D),M=D.next();!M.done;M=D.next())M=M.value,this.H_("cuepoint",{segNum:w,event:M.event, startSecs:M.startSecs,id:M.identifier.slice(-16)}),M.event==="start"&&(M=M.startSecs,this.jX.start=this.FK,this.jX.end=M+3)}}}; g.y.Wc=function(){this.xt()||(this.loading=!1,this.publish("dataloaded"))}; g.y.Ms=function(){return this.GP!==void 0?this.GP:this.GP=!!this.f6||!!this.T&&fA(this.T)}; g.y.n0=function(w){var D=this;if(this.xt())return jJ();this.Is=this.bW=this.L=null;Io(this,"html5_high_res_logging_always")&&(this.P_.wz=!0);return nFC(this,w).then(void 0,function(){return GRT(D,w)}).then(void 0,function(){return sYN(D)}).then(void 0,function(){return vFl(D)})}; g.y.jc=function(w){this.L=w;Fij(this,this.L.getAvailableAudioTracks());if(this.L){w=g.x(this.L.videoInfos);for(var D=w.next();!D.done;D=w.next()){D=D.value;var M=D.containerType;M!==0&&(this.Ee[M]=D.id)}}w=this.getAvailableAudioTracks();w=w.concat(this.zK);for(D=0;D0?this.L.getAvailableAudioTracks():this.DB||[]:[]}; g.y.getAudioTrack=function(){var w=this;if(this.D&&!Vd(this.D)){var D=g.y1(this.getAvailableAudioTracks(),function(Z){return Z.id===w.D.id}),M; if(!D&&((M=this.D.dW)==null?0:M.id)){var L=this.D.dW.id;D=g.y1(this.getAvailableAudioTracks(),function(Z){return Z.dW.id===L}); this.H_("nat",{id:this.D.id,track:!!D})}return D||this.zK}if(this.DB){if(!this.jZ)for(D=g.x(this.DB),M=D.next();!M.done;M=D.next())if(M=M.value,M.dW.getIsDefault()){this.jZ=M;break}return this.jZ||this.zK}return this.zK}; g.y.getPlayerResponse=function(){return this.playerResponse}; g.y.getWatchNextResponse=function(){return this.fV}; g.y.getHeartbeatResponse=function(){return this.YH}; g.y.N2=function(){return this.watchUrl?this.watchUrl:this.P_.getVideoUrl(this.videoId)}; g.y.f3=function(){return!!this.T&&(pFG(this.T)||W4N(this.T)||h1S(this.T))}; g.y.getEmbeddedPlayerResponse=function(){return this.Nm}; g.y.Xz=function(){return(this.eventLabel||this.P_.W_)==="shortspage"}; g.y.isAd=function(){return!!this.adFormat}; g.y.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.y.rH=function(){var w,D,M;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((w=this.playerResponse)==null?0:(D=w.playerConfig)==null?0:(M=D.daiConfig)==null?0:M.ssaEnabledPlayback)}; g.y.Mq=function(){return this.Ah}; g.y.FS=function(){return this.U0||this.HX}; g.y.Tn=function(){return Io(this,"html5_samsung_vp9_live")}; g.y.H_=function(w,D,M){this.publish("ctmp",w,D,M)}; g.y.NW=function(w,D,M){this.publish("ctmpstr",w,D,M)}; g.y.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.y.getGetAdBreakContext=function(w,D){w=w===void 0?NaN:w;D=D===void 0?NaN:D;var M={isSabr:ay(this)},L,Z=(L=this.getHeartbeatResponse())==null?void 0:L.adBreakHeartbeatParams;Z&&(M.adBreakHeartbeatParams=Z);if(this.C("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(w)&&!isNaN(D)){D=w-D;for(var k in this.T.T)if(L=this.T.T[k],L.info.GC()||L.info.XX())if(L=L.index,L.isLoaded()){k=L.Y9(D);L=L.mj(k)+D-L.getStartTime(k);this.H_("gabc",{t:w.toFixed(3),mt:D.toFixed(3),sg:k,igt:L.toFixed(3)}); M.livePlaybackPosition={utcTimeMillis:""+(L*1E3).toFixed(0)};break}}return M}; g.y.isEmbedsShortsMode=function(w,D){if(!g.w0(this.P_)||(this.P_.c_||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||D)return!1;var M,L;return!!(((M=this.embeddedPlayerConfig)==null?0:(L=M.embeddedPlayerFlags)==null?0:L.isShortsExperienceEligible)&&w.width<=w.height)}; g.y.oJ=function(){g.mI.prototype.oJ.call(this);this.LL=null;delete this.T9L;delete this.accountLinkingConfig;delete this.T;this.L=this.YH=this.playerResponse=this.fV=null;this.X6=this.adaptiveFormats="";delete this.botguardData;this.Nd=this.suggestions=this.DH=null;this.sabrContextUpdates.clear()};var WQa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},h2C={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},E4K={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Yyk={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"},lmN={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Ctj={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"},phI={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.I(gZ,g.X);g.y=gZ.prototype;g.y.handleExternalCall=function(w,D,M){var L=this.state.G[w],Z=this.state.U[w],k=L;if(Z)if(M&&qu(M,O6r))k=Z;else if(!L)throw Error('API call from an untrusted origin: "'+M+'"');this.logApiCall(w,M);if(k){M=!1;L=g.x(D);for(Z=L.next();!Z.done;Z=L.next())if(String(Z.value).includes("javascript:")){M=!0;break}M&&g.jn(Error('Dangerous call to "'+w+'" with ['+D+"]."));return k.apply(this,D)}throw Error('Unknown API method: "'+w+'".');}; g.y.logApiCall=function(w,D,M){var L=this.app.X();L.GR&&!this.state.B.has(w)&&(this.state.B.add(w),g.DD("webPlayerApiCalled",{callerUrl:L.loaderUrl,methodName:w,origin:D||void 0,playerStyle:L.playerStyle||void 0,embeddedPlayerMode:L.c_,errorCode:M}))}; g.y.publish=function(w){var D=g.rR.apply(1,arguments);this.state.L.publish.apply(this.state.L,[w].concat(g.tG(D)));if(w==="videodatachange"||w==="resize"||w==="cardstatechange")this.state.V.publish.apply(this.state.V,[w].concat(g.tG(D))),this.state.D.publish.apply(this.state.D,[w].concat(g.tG(D)))}; g.y.Q7=function(w){var D=g.rR.apply(1,arguments);this.state.L.publish.apply(this.state.L,[w].concat(g.tG(D)));this.state.V.publish.apply(this.state.V,[w].concat(g.tG(D)))}; g.y.n6=function(w){var D=g.rR.apply(1,arguments);this.state.L.publish.apply(this.state.L,[w].concat(g.tG(D)));this.state.V.publish.apply(this.state.V,[w].concat(g.tG(D)));this.state.D.publish.apply(this.state.D,[w].concat(g.tG(D)))}; g.y.Im=function(w){var D=g.rR.apply(1,arguments);this.state.L.publish.apply(this.state.L,[w].concat(g.tG(D)));this.state.V.publish.apply(this.state.V,[w].concat(g.tG(D)));this.state.D.publish.apply(this.state.D,[w].concat(g.tG(D)));this.state.W.publish.apply(this.state.W,[w].concat(g.tG(D)))}; g.y.C=function(w){return this.app.X().C(w)}; g.y.oJ=function(){if(this.state.element){var w=this.state.element,D;for(D in this.state.T)this.state.T.hasOwnProperty(D)&&(w[D]=null);this.state.element=null}g.X.prototype.oJ.call(this)};g.I(G3,g.IF);G3.prototype.publish=function(w){var D=g.rR.apply(1,arguments);if(this.W.has(w))return this.W.get(w).push(D),!0;var M=!1;try{for(D=[D],this.W.set(w,D);D.length;)M=g.IF.prototype.publish.call.apply(g.IF.prototype.publish,[this,w].concat(g.tG(D.shift())))}finally{this.W.delete(w)}return M};g.I(s9,g.X);s9.prototype.oJ=function(){this.W.dispose();this.D.dispose();this.V.dispose();this.L.dispose();this.B=this.T=this.U=this.G=this.Y=void 0};var Uej=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.I(v$,gZ);g.y=v$.prototype;g.y.getApiInterface=function(){return Array.from(this.state.Y)}; g.y.l_=function(w,D){this.state.W.subscribe(w,D)}; g.y.bOJ=function(w,D){this.state.W.unsubscribe(w,D)}; g.y.getPlayerState=function(w){return PVJ(this.app,w)}; g.y.No=function(){return PVJ(this.app)}; g.y.D5k=function(w,D,M){fZ(this)&&(qF(this.app,!0,1),Xp(this.app,w,D,M,1))}; g.y.getCurrentTime=function(w,D,M){var L=this.getPlayerState(w);if(this.app.getAppState()===2&&L===5){var Z;return((Z=this.app.getVideoData())==null?void 0:Z.startSeconds)||0}return this.C("web_player_max_seekable_on_ended")&&L===0?sS(this.app,w):w?this.app.getCurrentTime(w,D,M):this.app.getCurrentTime(w)}; g.y.fI=function(){return this.app.getCurrentTime(1)}; g.y.Sm=function(){var w=this.app.mj(1);return isNaN(w)?this.getCurrentTime(1):w}; g.y.rb=function(){return this.app.getDuration(1)}; g.y.hx=function(w,D){w=g.X4(Math.floor(w),0,100);isFinite(w)&&Fp(this.app,{volume:w,muted:this.isMuted()},D)}; g.y.rWE=function(w){this.hx(w,!1)}; g.y.u1=function(w){Fp(this.app,{muted:!0,volume:this.getVolume()},w)}; g.y.eDh=function(){this.u1(!1)}; g.y.Hb=function(w){Fp(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},w)}; g.y.POV=function(){B$(this.app)||this.Hb(!1)}; g.y.getPlayerMode=function(){var w={};this.app.getVideoData().yZ&&(w.pfp={enableIma:this.app.z3().allowImaMonetization,autoplay:lR(this.app.z3()),mutedAutoplay:this.app.z3().mutedAutoplay});return w}; g.y.FH=function(){var w=this.app.getPresentingPlayerType();if(w===2&&!this.app.cI()){var D=GW(this.app.Ka());if(!(OkP(D)||g.w0(this.app.X())&&g.z(this.app.IJ().getPlayerState(),1024))||KrD(D))return}(D=this.app.Hy().F1)?D.playVideo():this.app.playVideo(w)}; g.y.PoE=function(){qF(this.app,!0,1);this.FH()}; g.y.pauseVideo=function(w){var D=this.app.getPresentingPlayerType();if(D!==2||this.app.cI()||OkP(GW(this.app.Ka()))){var M=this.app.Hy().F1;M?M.pauseVideo():this.app.pauseVideo(D,w)}}; g.y.by_=function(){var w=this.app,D=!1;w.mE.GU&&(w.d9.publish("pageTransition"),D=!0);w.stopVideo(D)}; g.y.clearVideo=function(){}; g.y.getAvailablePlaybackRates=function(){var w=this.app.X();if(w.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(w.D?w.ancestorOrigins[0]:window.location.origin)||w.jZ)return Nl7;var D=this.app.getVideoData();if(bPC(D)){var M=D.X4,L=D.wr;return gCx.filter(function(Z){return Z>=M&&Z<=L})}return w.supportsVarispeedExtendedFeatures?H6k:w.C("web_remix_allow_up_to_3x_playback_rate")&&g.Fs(w)?jJQ:FM}return[1]}; g.y.getPlaybackQuality=function(w){return(w=this.app.rz(w))?w.getPlaybackQuality():"unknown"}; g.y.JWd=function(){}; g.y.getAvailableQualityLevels=function(w){return(w=this.app.rz(w))?(w=g.yR(w.NQ(),function(D){return D.quality}),w.length&&(w[0]==="auto"&&w.shift(),w=w.concat(["auto"])),w):[]}; g.y.YW=function(){return this.getAvailableQualityLevels(1)}; g.y.QG=function(){return this.Sd()}; g.y.Ex=function(){return 1}; g.y.getVideoLoadedFraction=function(w){return this.app.getVideoLoadedFraction(w)}; g.y.Sd=function(){return this.getVideoLoadedFraction()}; g.y.R5=function(){return 0}; g.y.getSize=function(){var w=this.app.qd().getPlayerSize();return{width:w.width,height:w.height}}; g.y.setSize=function(){this.app.qd().resize()}; g.y.loadVideoById=function(w,D,M,L){if(!w)return!1;w=ao(w,D,M);return this.app.loadVideoByPlayerVars(w,L)}; g.y.cc_=function(w,D,M){w=this.loadVideoById(w,D,M,1);qF(this.app,w,1)}; g.y.cueVideoById=function(w,D,M,L){w=ao(w,D,M);this.app.cueVideoByPlayerVars(w,L)}; g.y.Ys=function(w,D,M){this.cueVideoById(w,D,M,1)}; g.y.loadVideoByUrl=function(w,D,M,L){w=Imk(w,D,M);return this.app.loadVideoByPlayerVars(w,L)}; g.y.a59=function(w,D,M){w=this.loadVideoByUrl(w,D,M,1);qF(this.app,w,1)}; g.y.cueVideoByUrl=function(w,D,M,L){w=Imk(w,D,M);this.app.cueVideoByPlayerVars(w,L)}; g.y.fX=function(w,D,M){this.cueVideoByUrl(w,D,M,1)}; g.y.sx=function(){var w=this.app.X();if(w.V7)return"";var D=this.app.z3(),M=void 0;D.isLivePlayback||(M=Math.floor(this.app.getCurrentTime(1)));return w.getVideoUrl(D.videoId,this.getPlaylistId()||void 0,M)}; g.y.Mo=function(){return this.app.getDebugText()}; g.y.getVideoEmbedCode=function(){var w=this.app.X();if(w.V7)return"";var D=this.app.z3();return w.getVideoEmbedCode(D.isPrivate?"":D.title,this.app.z3().videoId,this.app.qd().getPlayerSize(),this.getPlaylistId()||void 0)}; g.y.vP=function(w,D,M){return LLx(this.app,w,D,M)}; g.y.removeCueRange=function(w){return this.app.z_(w)}; g.y.loadPlaylist=function(w,D,M,L){this.app.loadPlaylist(w,D,M,L)}; g.y.WEd=function(w,D,M,L){this.loadPlaylist(w,D,M,L);qF(this.app,!0,1)}; g.y.cuePlaylist=function(w,D,M,L){this.app.cuePlaylist(w,D,M,L)}; g.y.nextVideo=function(w,D){this.app.nextVideo(w,D)}; g.y.qLL=function(){this.nextVideo();qF(this.app,!0,1)}; g.y.previousVideo=function(w){this.app.previousVideo(w)}; g.y.xrV=function(){this.previousVideo();qF(this.app,!0,1)}; g.y.playVideoAt=function(w){this.app.playVideoAt(w)}; g.y.ZO5=function(w){this.playVideoAt(w);qF(this.app,!0,1)}; g.y.setShuffle=function(w){var D=this.app.getPlaylist();D&&D.setShuffle(w)}; g.y.setLoop=function(w){var D=this.app.getPlaylist();D&&(D.loop=w)}; g.y.Xu=function(){var w=this.app.getPlaylist();if(!w)return null;for(var D=[],M=0;M=400)if(w=this.z3(),this.K.X().C("client_respect_autoplay_switch_button_renderer"))w=!!w.autoplaySwitchButtonRenderer;else{var D,M,L,Z;w=!!((D=w.getWatchNextResponse())==null?0:(M=D.contents)==null?0:(L=M.twoColumnWatchNextResults)==null?0:(Z=L.autoplay)==null?0:Z.autoplay)!==!1}if(w)this.T||(this.T=!0,this.h1(this.T),this.K.X().C("web_player_autonav_toggle_always_listen")||Jjx(this), D=this.z3(),this.Zp(D.autonavState),this.K.logVisibility(this.element,this.T));else if(this.T=!1,this.h1(this.T),!this.K.X().C("web_player_autonav_toggle_always_listen"))for(this.K.X().C("web_player_autonav_toggle_always_listen"),D=g.x(this.V),M=D.next();!M.done;M=D.next())this.gt(M.value)}; g.y.Zp=function(w){V6R(this)?this.isChecked=w!==1:((w=w!==1)||(w=g.aj(),w=g.hY("web_autonav_allow_off_by_default")&&!w.vr(141)&&g.Xg("AUTONAV_OFF_BY_DEFAULT")?!1:!w.vr(140)),this.isChecked=w);z2l(this)}; g.y.onClick=function(){this.isChecked=!this.isChecked;this.K.nH(this.isChecked?2:1);z2l(this);if(V6R(this)){var w=this.z3().autoplaySwitchButtonRenderer;this.isChecked&&(w==null?0:w.onEnabledCommand)?this.K.Q7("innertubeCommand",w.onEnabledCommand):!this.isChecked&&(w==null?0:w.onDisabledCommand)&&this.K.Q7("innertubeCommand",w.onDisabledCommand)}this.K.logClick(this.element)}; g.y.getValue=function(){return this.isChecked}; g.y.z3=function(){return this.K.getVideoData(1)};g.I(PtC,tX);g.I(HR,g.EH);HR.prototype.onClick=function(){this.enabled&&(jg(this,!this.checked),this.publish("select",this.checked))}; HR.prototype.getValue=function(){return this.checked}; HR.prototype.setEnabled=function(w){(this.enabled=w)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var M_J={qgL:2,RA:1,PJ:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var o4=["en-CA","en","es-MX","fr-CA"];g.I(a4,HR);a4.prototype.Sk=function(w){w?this.T||(this.Ac.sB(this),this.T=!0):this.T&&(this.Ac.gz(this),this.T=!1);this.T&&jg(this,qTC())}; a4.prototype.D=function(){g.D6(this.element,"ytp-menuitem-highlight-transition-enabled")}; a4.prototype.L=function(w){var D=qTC();w!==D&&(D=g.aj(),cg(190,w),cg(192,!0),D.save(),this.K.Q7("cinematicSettingsToggleChange",w))}; a4.prototype.oJ=function(){this.T&&this.Ac.gz(this);HR.prototype.oJ.call(this)};g.I(vR,tX);vR.prototype.updateCinematicSettings=function(w){this.T=w;var D;(D=this.menuItem)==null||D.Sk(w);this.api.publish("onCinematicSettingsVisibilityChange",w)};g.I(wOr,tX);g.I(cR,tX);cR.prototype.setCreatorEndscreenVisibility=function(w){var D;(D=cV(this.api.Ka()))==null||D.h1(w)}; cR.prototype.T=function(w){function D(L){L==="creatorendscreen"&&(L=cV(M.api.Ka()))&&L.aaW(M.hideButton)} var M=this;this.hideButton=w;this.events.j(this.api,"modulecreated",D);D("creatorendscreen")};g.I(DaR,tX);g.I(BR,HR);BR.prototype.D=function(w){this.L(w?1:0);this.K.publish("audiopreferencechange")}; BR.prototype.xP=function(){if(this.enableNewAudioSettingsMenu){var w=this.K.getPresentingPlayerType();w===2||w===3?(this.T=!1,this.Ac.gz(this)):(w=this.getDrcState(),w!==1?(w===0?(jg(this,this.V()===1),this.setEnabled(!0)):(jg(this,!1),this.setEnabled(!1)),this.T||(this.Ac.sB(this),this.T=!0)):this.T&&(this.Ac.gz(this),this.T=!1))}else{w=this.hasDrcAudioTrack();var D=this.V()===1&&w;jg(this,D);this.setEnabled(w)}}; BR.prototype.oJ=function(){this.Ac.gz(this);HR.prototype.oJ.call(this)};g.I(fi,tX);g.y=fi.prototype;g.y.getDrcUserPreference=function(){return this.T}; g.y.setDrcUserPreference=function(w){this.api.C("html5_log_drc_pref")&&this.api.H_("drc_set",{pref:w});g.gQ("yt-player-drc-pref",w,31536E3);w!==this.T&&(this.T=w,this.updateEnvironmentData(),this.Tj()&&this.api.Bs())}; g.y.updateEnvironmentData=function(){this.api.X().kP=this.T===1}; g.y.Tj=function(){var w,D,M=(w=this.api.getVideoData())==null?void 0:(D=w.L)==null?void 0:D.T;if(!M)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.C("mta_drc_mutual_exclusion_removal")){var L,Z,k=(L=this.api.BK())==null?void 0:(Z=L.dW)==null?void 0:Z.id;return uX(M,function(b){var C;return b.audio.T&&((C=b.dW)==null?void 0:C.id)===k})}return uX(M,function(b){var C; return((C=b.audio)==null?void 0:C.T)===!0})}; g.y.getDrcState=function(){return this.api.uy(2)};g.I(qI,tX);qI.prototype.onVideoDataChange=function(){var w=this,D=this.api.getVideoData();this.api.N8("embargo",1);var M=D==null?void 0:D.fU.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(M==null?0:M.length)?ZAK(this,M.filter(function(L){return L2l(w,L)})):(D==null?0:D.cueRanges)&&ZAK(this,D.cueRanges.filter(function(L){return L2l(w,L)}))}; qI.prototype.V=function(w){return w.embargo!==void 0}; qI.prototype.oJ=function(){tX.prototype.oJ.call(this);this.T={}};g.I(rW,tX); rW.prototype.addEmbedsConversionTrackingParams=function(w){var D=this.api.X(),M=D.widgetReferrer,L=D.wW,Z=this.T,k="",b=D.getWebPlayerContextConfig();b&&(k=b.embedsIframeOriginParam||"");M.length>0&&(w.embeds_widget_referrer=M);L.length>0&&(w.embeds_referring_euri=L);D.D&&k.length>0&&(w.embeds_referring_origin=k);b&&b.embedsFeature&&(w.feature=b.embedsFeature);Z.length>0&&(D.C("embeds_web_enable_lite_experiment_control_arm_logging")?Z.unshift(28572):g.Le(g.lw(D))&&Z.unshift(159628),D=Z.join(","),D= g.q2()?D:g.n6(D,4),w.source_ve_path=D);this.T.length=0};g.I(kaG,tX);g.I(bAT,tX);g.I(eg,g.X);eg.prototype.oJ=function(){g.X.prototype.oJ.call(this);this.T=null;this.V&&this.V.disconnect()};g.I(Cha,tX);g.I(XD,g.J);XD.prototype.show=function(){g.J.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; XD.prototype.stopTimer=function(){this.T&&(this.T.dispose(),this.T=null)}; XD.prototype.onVideoDataChange=function(w){var D,M,L=(D=this.api.getVideoData())==null?void 0:(M=D.getPlayerResponse())==null?void 0:M.playabilityStatus;L&&(D=ltK(L),g.z(this.api.getPlayerStateObject(),128)||w==="dataloaderror"||!D?(this.V=0,this.stopTimer(),this.hide()):(w=(D.remainingTimeSecs||0)*1E3,w>0&&(this.show(),this.updateValue("label",Oy(D.label)),pOk(this,w))))}; XD.prototype.oJ=function(){this.stopTimer();g.J.prototype.oJ.call(this)};g.I(W2J,tX);g.I(TU,g.J);TU.prototype.onClick=function(){this.d9.logClick(this.element);this.d9.Q7("onFullerscreenEduClicked")}; TU.prototype.Sk=function(){this.d9.isFullscreen()?this.T?this.fade.hide():this.fade.show():this.hide();this.d9.logVisibility(this.element,this.d9.isFullscreen()&&!this.T)};g.I(ug,tX);ug.prototype.updateFullerscreenEduButtonSubtleModeState=function(w){var D;(D=this.T)!=null&&(g.Lt(D.element,"ytp-fullerscreen-edu-button-subtle",w),w&&!D.V&&(D.d9.C("player_tooltip_data_title_killswitch")?D.element.setAttribute("title","Scroll for details"):D.element.setAttribute("data-tooltip-title","Scroll for details"),T3(D.d9,D.element,D),D.V=!0))}; ug.prototype.updateFullerscreenEduButtonVisibility=function(w){var D;(D=this.T)!=null&&(D.T=w,D.Sk())};g.I(hDa,g.J);g.I(iAJ,tX);g.I(Sg,tX);Sg.prototype.getSphericalProperties=function(){var w=g.O9(this.api.Ka());return w?w.getSphericalProperties():{}}; Sg.prototype.setSphericalProperties=function(w){if(w){var D=g.O9(this.api.Ka());D&&D.setSphericalProperties(w,!0)}};g.I(Qc,tX);g.y=Qc.prototype;g.y.createClientVe=function(w,D,M,L){this.api.createClientVe(w,D,M,L===void 0?!1:L)}; g.y.createServerVe=function(w,D,M){this.api.createServerVe(w,D,M===void 0?!1:M)}; g.y.setTrackingParams=function(w,D){this.api.setTrackingParams(w,D)}; g.y.logClick=function(w,D){this.api.logClick(w,D)}; g.y.logVisibility=function(w,D,M){this.api.logVisibility(w,D,M)}; g.y.hasVe=function(w){return this.api.hasVe(w)}; g.y.destroyVe=function(w){this.api.destroyVe(w)};Vc.prototype.uy=function(w){return this.T[w]}; Vc.prototype.Gg=function(){for(var w=this.L,D={},M=g.x(JX),L=M.next();!L.done;L=M.next())if(L=L.value,this.V[L]){w=zU[L].zi(w,this.videoData);for(var Z=g.x(JX),k=Z.next();!k.done;k=Z.next())k=k.value,D[k]!==void 0||uX(w,zU[k].ma)||(D[k]=zU[L].TG);D[L]===void 0&&(D[L]=0)}else D[L]=1;this.T=D}; var JX=[0,1,3,2],pz={},zU=(pz[0]={TG:2,ma:jhl,zi:daI},pz[1]={TG:3,ma:y$j,zi:Itk},pz[2]={TG:4,ma:UaK,zi:xaG},pz[3]={TG:5,ma:NfG,zi:HAI},pz);var RDj=!1;OH.prototype.setPlaybackRate=function(w){this.playbackRate=Math.max(1,w)}; OH.prototype.getPlaybackRate=function(){return this.playbackRate};D8.prototype.NS=function(w){var D=g.P_(w.info.T.info,this.r9.Yl),M=w.info.g9+this.D,L=w.info.startTime*1E3;if(this.policy.Nd)try{L=this.policy.Nd?g.Hy(w)*1E3:w.info.startTime*1E3}catch(b){Math.random()>.99&&this.logger&&(L=kT(w.V).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:w.info.PA(),encodedDataView:g.oJ(L,4)})),L=w.info.startTime*1E3}var Z=w.info.clipId,k=this.policy.Nd?g.OHJ(w)*1E3:w.info.duration*1E3;this.policy.Nd&&(L<0||k<0)&&(this.logger&&(this.logger({missingSegInfo:w.info.PA(), startTimeMs:L,durationMs:k}),this.policy.cC||(L<0&&(L=w.info.startTime*1E3),k<0&&(k=w.info.duration*1E3))),this.policy.cC&&(L<0&&(L=w.info.startTime*1E3),k<0&&(k=w.info.duration*1E3)));return{formatId:D,g9:M,startTimeMs:L,clipId:Z,l5:k}}; D8.prototype.Pt=function(w){this.timestampOffset=w};MU.prototype.seek=function(w,D){w!==this.targetTime&&(this.seekCount=0);this.targetTime=w;var M=this.videoTrack.V,L=this.audioTrack.V,Z=this.audioTrack.rW,k=QhJ(this,this.videoTrack,w,this.videoTrack.rW,D);D=QhJ(this,this.audioTrack,this.policy.oO?w:k,Z,D);w=Math.max(w,k,D);this.D=!0;this.r9.isManifestless&&(eDK(this,this.videoTrack,M),eDK(this,this.audioTrack,L));return w}; MU.prototype.isSeeking=function(){return this.D}; MU.prototype.YM=function(w){this.V=w}; var Spj=2/24;var V_x=0;g.y=hg.prototype;g.y.EF=function(){this.B=this.now();F8N(this.Kl,this.B);this.zU.EF()}; g.y.YQ=function(w,D){var M=this.policy.V?(0,g.IC)():0;tg(this,w,D);w-this.Y<10&&this.V>0||this.QP(w,D);this.zU.YQ(w,D);this.policy.V&&(w=(0,g.IC)()-M,this.oO+=w,this.pV=Math.max(w,this.pV))}; g.y.QP=function(w,D){var M=(w-this.Y)/1E3,L=D-this.L;this.ED||(Qe(this.Kl,M,L),this.OF(M,L));this.Y=w;this.L=D}; g.y.zR=function(){this.c_&&Phj(this);this.zU.zR()}; g.y.Cb=function(w){this.c_||(this.c_=this.W-this.GU+w,this.wW=this.W,this.HA=this.G)}; g.y.sF=function(w,D){w=w===void 0?this.G:w;D=D===void 0?this.W:D;this.V>0||(this.U=w,this.V=D,this.y7=this.isActive=!0)}; g.y.F7=function(){return this.vI||2}; g.y.uU=function(){}; g.y.KL=function(){var w,D={rn:this.requestNumber,rt:(this.G-this.T).toFixed(),lb:this.W,stall:(1E3*this.D).toFixed(),ht:(this.B-this.T).toFixed(),elt:(this.U-this.T).toFixed(),elb:this.V,d:(w=this.W_)==null?void 0:w.Dy()};this.url&&gzl(D,this.url);this.policy.V&&(D.mph=this.pV.toFixed(),D.tph=this.oO.toFixed());D.ulb=this.fV;D.ult=this.V7;return D}; g.y.now=function(){return(0,g.IC)()}; g.y.deactivate=function(){this.isActive&&(this.isActive=!1)};g.I(iz,hg);g.y=iz.prototype;g.y.KL=function(){var w=hg.prototype.KL.call(this);w.pb=this.eS;w.pt=(1E3*this.iW).toFixed();w.se=this.NC;return w}; g.y.RV=function(){var w=this.zU;this.bW||(this.bW=w.RV?w.RV():1);return this.bW}; g.y.dT=function(){return this.QV?this.RV()!==1:!1}; g.y.Cd=function(w,D,M){if(!this.Sb){this.Sb=!0;if(!this.ED){tg(this,w,D);this.QP(w,D);var L=this.RV();this.NC=M;if(!this.ED)if(L===2){L=w-this.U0)||dp(this,L,D),this.V>0&&u3(this.Kl,D,this.D));w=(w-this.T)/ 1E3||.01;this.policy.U&&!(this.V>0)||Tm(this.Kl,w,this.L,K2N(this),this.jt)}this.deactivate()}}; g.y.kU=function(w,D,M){M&&(this.bW=2);w<0&&this.vI&&(w=this.vI);D?this.XE+=w:this.jk+=w}; g.y.F7=function(){return this.jk||this.XE||hg.prototype.F7.call(this)}; g.y.QP=function(w,D){var M=(w-this.Y)/1E3,L=D-this.L,Z=this.RV();this.isActive?Z===1&&((L>0||this.policy.W)&&(M>.2||L<1024)?(this.D+=M,L>0&&M>.2&&dp(this,this.Ek?M:.05,L),this.mu=!0):L>0&&(dp(this,M,L),this.mu=!0)):D&&D>=this.policy.T&&this.sF(w,D);hg.prototype.QP.call(this,w,D)}; g.y.Tw=function(w){if(!this.ED){tg(this,w,this.W);var D=(w-this.T)/1E3;this.RV()!==2&&this.V>0&&(this.D+=(w-this.Y)/1E3,u3(this.Kl,this.L,this.D));Tm(this.Kl,D,this.L,K2N(this),this.jt,!0);w=(w-this.Y)/1E3;Qe(this.Kl,w,0);this.OF(w,0)}}; g.y.sF=function(w,D){w=w===void 0?this.G:w;D=D===void 0?this.W:D;if(!(this.V>0)&&(hg.prototype.sF.call(this,w,D),this.RV()===1)){D=(this.B-this.T)/1E3;var M=(w-this.B)/1E3;this.QV&&yi(this,this.now());this.TU||this.ED||(this.vI&&(M=Math.max(0,M-this.vI)),w=this.Kl,w.U.pJ(1,D),w.W_.pJ(1,M))}}; g.y.Y2=function(){this.QV&&yi(this,this.now());return this.Md}; g.y.tD=function(){var w;if(w=this.L>this.KC)w=(w=this.L)?w>=this.policy.T:!1;return w}; g.y.jq=function(){return this.Nd}; g.y.Qz=function(w){w=w===void 0?this.now():w;if(this.QV){yi(this,w);if(this.bW?this.dT():this.nV!==this.Jc){var D=this.Jc;if(w0?M+w:M+Math.max(w,D)}; g.y.cD=function(){return this.now()-this.U}; g.y.x_=function(){return(this.L-this.V)*1E3/this.cD()||0}; g.y.FL=function(){return this.U};IM.prototype.feed=function(w){wn(this.T,w);this.Ju()}; IM.prototype.Ju=function(){if(this.D){if(!this.T.totalLength)return;var w=this.T.split(this.L-this.V),D=w.u7;w=w.Tg;if(!this.zU.Cb(this.D,D,this.V,this.L))return;this.V+=D.totalLength;this.T=w;this.V===this.L&&(this.D=this.L=this.V=void 0)}for(;;){var M=0;w=g.x(DNa(this.T,M));D=w.next().value;M=w.next().value;M=g.x(DNa(this.T,M));w=M.next().value;M=M.next().value;if(D<0||w<0)break;if(!(M+w<=this.T.totalLength)){if(!(this.zU.Cb&&M+1<=this.T.totalLength))break;M=this.T.split(M).Tg;this.zU.Cb(D,M,0, w)&&(this.D=D,this.V=M.totalLength,this.L=w,this.T=new A_([]));break}w=this.T.split(M).Tg.split(w);M=w.Tg;this.zU.aM(D,w.u7);this.T=M}}; IM.prototype.dispose=function(){this.T=new A_};g.y=U$.prototype;g.y.Vr=function(){return 0}; g.y.dB=function(){return null}; g.y.oF=function(){return null}; g.y.Wq=function(){return this.state>=1}; g.y.isComplete=function(){return this.state>=3}; g.y.NR=function(){return this.state===5}; g.y.onStateChange=function(){}; g.y.lj=function(w){var D=this.state;this.state=w;this.onStateChange(D);this.callback&&this.callback(this,D)}; g.y.Dl=function(w){w&&this.state=this.xhr.HEADERS_RECEIVED}; g.y.getResponseHeader=function(w){try{return this.xhr.getResponseHeader(w)}catch(D){return""}}; g.y.xK=function(){return+this.getResponseHeader("content-length")}; g.y.Sx=function(){return this.V}; g.y.cn=function(){return this.status>=200&&this.status<300&&!!this.V}; g.y.pL=function(){return this.T.totalLength>0}; g.y.SC=function(){var w=this.T;this.T=new A_;return w}; g.y.lK=function(){return this.T}; g.y.abort=function(){this.xt=!0;this.xhr.abort()}; g.y.Zq=function(){return!0}; g.y.A_=function(){return this.L}; g.y.WI=function(){return""};g.y=knR.prototype;g.y.getResponseHeader=function(w){return w==="content-type"?this.T.get("type"):""}; g.y.abort=function(){}; g.y.m3=function(){return!0}; g.y.xK=function(){return this.range.length}; g.y.Sx=function(){return this.loaded}; g.y.cn=function(){return!!this.loaded}; g.y.pL=function(){return!!this.V.totalLength}; g.y.SC=function(){var w=this.V;this.V=new A_;return w}; g.y.lK=function(){return this.V}; g.y.Zq=function(){return!0}; g.y.A_=function(){return!!this.error}; g.y.WI=function(){return this.error};g.y=YYR.prototype;g.y.start=function(w){var D={credentials:"include",cache:"no-store"};Object.assign(D,this.G);this.D&&(D.signal=this.D.signal);w=new Request(w,D);fetch(w).then(this.B,this.onError).then(void 0,w_)}; g.y.onDone=function(){this.xt()||this.zU.zR()}; g.y.getResponseHeader=function(w){return this.responseHeaders?this.responseHeaders.get(w):null}; g.y.m3=function(){return!!this.responseHeaders}; g.y.Sx=function(){return this.V}; g.y.xK=function(){return+this.getResponseHeader("content-length")}; g.y.cn=function(){return this.status>=200&&this.status<300&&!!this.V}; g.y.pL=function(){return!!this.T.totalLength}; g.y.SC=function(){var w=this.T;this.T=new A_;return w}; g.y.lK=function(){return this.T}; g.y.xt=function(){return this.W}; g.y.abort=function(){this.L&&this.L.cancel().catch(function(){}); this.D&&this.D.abort();this.W=!0}; g.y.Zq=function(){return!0}; g.y.A_=function(){return this.Y}; g.y.WI=function(){return this.errorMessage};g.y=C2a.prototype;g.y.onDone=function(){if(!this.xt){this.status=this.xhr.status;try{this.response=this.xhr.response,this.V=this.response.byteLength}catch(w){}this.T=!0;this.zU.zR()}}; g.y.KY=function(){this.xhr.readyState===2&&this.zU.EF()}; g.y.onProgress=function(w){this.xt||(this.status=this.xhr.status,this.T||(this.V=w.loaded),this.zU.YQ((0,g.IC)(),w.loaded))}; g.y.m3=function(){return this.xhr.readyState>=2}; g.y.getResponseHeader=function(w){try{return this.xhr.getResponseHeader(w)}catch(D){return g.jn(Error("Could not read XHR header "+w)),""}}; g.y.xK=function(){return+this.getResponseHeader("content-length")}; g.y.Sx=function(){return this.V}; g.y.cn=function(){return this.status>=200&&this.status<300&&this.T&&!!this.V}; g.y.pL=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.y.SC=function(){var w=this.response;this.response=void 0;return new A_([new Uint8Array(w)])}; g.y.lK=function(){return new A_([new Uint8Array(this.response)])}; g.y.abort=function(){this.xt=!0;this.xhr.abort()}; g.y.Zq=function(){return!1}; g.y.A_=function(){return!1}; g.y.WI=function(){return""};g.I(Hz,g.X);Hz.prototype.Ok=function(){if(!this.pO.length)return[];var w=this.pO;this.pO=[];this.L=g.$B(w).info;return w}; Hz.prototype.x$=function(){return this.pO}; Hz.prototype.oJ=function(){g.X.prototype.oJ.call(this);this.T=null;this.pO.length=0;this.uW.length=0;this.L=null};g.I(gp,g.X);g.y=gp.prototype; g.y.u6E=function(){if(!this.xt()){var w=(0,g.IC)(),D=!1;if(this.policy.a$){var M=this.timing.V>0?this.timing.U:this.timing.T;this.policy.DW&&this.L&&(M=this.L);w=w-M-this.timing.F7()*1E3;M=rr(RM(this),!1);w>=2E3*M?D=!0:w>=this.policy.LL*M&&(this.T=this.policy.o$)}else if(this.timing.V>0){if(this.Y){this.policy.Is&&(this.T=0);return}var L=this.timing.jq();this.timing.Qz();var Z=this.timing.jq();Z-L>=this.policy.kP*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(Z-L).toFixed(0)}), D=this.T>=5):this.T=0}else{var k=w-this.timing.Y2(); this.policy.o$&&k>0&&(this.T+=1);D=rr(RM(this),!1)*this.policy.M7;(D=k>D*1E3)&&this.logger.debug(function(){return"Elbow late by "+k.toFixed(3)})}this.T>0&&this.zU.Bl(); D?this.Ch():this.V.start()}}; g.y.Ch=function(){this.W=!0;this.zU.K1();this.lastError="net.timeout";nX(this)}; g.y.canRetry=function(w){var D=RM(this);w=w?this.policy.iN:this.policy.uA;return D.timedOut0&&(D=bK(D.T,0),w.ubyte=D,M===1&&D===0&&(w.b248180278=!0))}this.Qy&&(w.rc=this.policy.WC?this.Qy:this.Qy.toString());this.policy.UV&&this.P$&&(w.tr=this.P$);w.itag=this.info.uW[0].T.info.itag;w.ml=""+ +this.info.uW[0].T.Gk();w.sq=""+this.info.uW[0].g9;this.C6&&(w.ifi=""+ +Vu(this.info.Zv.V));this.Qy!==410&&this.Qy!==500&&this.Qy!==503||(w.fmt_unav="true");var L;(M=this.errorMessage||((L=this.xhr)==null?void 0: L.WI()))&&(w.msg=M);this.hq&&(w.smb="1");this.info.isDecorated()&&(w.sdai="1");return w}; g.y.To=function(){return maN(this.timing)}; g.y.WI=function(){return this.xhr.WI()||""}; g.y.tD=function(){return this.isComplete()||this.timing.tD()}; g.y.YQ=function(){!this.xt()&&this.xhr&&(this.Qy=this.xhr.status,this.policy.eF&&this.Yc&&this.l2(!1),this.pS()?this.Dl(2):!this.Uz&&this.tD()&&(this.Dl(),this.Uz=!0))}; g.y.EF=function(){if(!this.xt()&&this.xhr){if(!this.dU&&this.xhr.m3()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var w=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.dU=((0,g.IC)()-w)/1E3}this.xhr.m3()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Fb&&!muT()&&g.gQ("yt-player-headers-readable",!0,2592E3);w=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var D=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),M;(M=this.hg)==null||M.stop();this.Vm=w||this.Vm; this.NT=D||this.NT}}; g.y.zR=function(){var w=this.xhr;if(!this.xt()&&w){this.Qy=w.status;w=this.mP(w);if(this.policy.UV){var D;(D=this.hg)==null||D.stop()}w===5?nX(this.YA):this.lj(w);this.YA.V.stop()}}; g.y.mP=function(w){var D=this;TrJ(this);if(Fu(this.YA,this.xhr.status,this.dN?this.timing.y7||this.yu:this.xhr.cn(),!1,this.Yg))return 5;var M="";Gp(this.YA,this.xhr)&&(M=tvG(this.YA,this.xhr));if(M)return qN(RM(this.YA)),this.info.hH(this.C6,M),3;M=w.Sx();if(this.HO){this.l2(!0);TrJ(this);if(Fu(this.YA,this.xhr.status,this.timing.y7||this.yu,!1,this.Yg))return 5;if(!this.dQ){if(this.yu)return qN(RM(this.YA)),3;this.YA.lastError="net.closed";return 5}}else{if(Fu(this.YA,this.xhr.status,this.xhr.cn(), !1,this.Yg))return 5;var L=this.info.L;if(L&&L!==M||w.A_())return this.YA.lastError="net.closed",5;this.l2(!0)}L=MvC(this)?w.getResponseHeader("X-Bandwidth-Est"):0;if(w=MvC(this)?w.getResponseHeader("X-Bandwidth-Est3"):0)this.ai=!0,this.policy.Xc&&(L=w);W6I(this.YA,M,L?Number(L):0,this.info.uW[0].type===5);this.logger.debug(function(){var Z=D.timing;return"Succeeded, rtpd="+(Z.iW*1E3+Z.T-Date.now()).toFixed(0)}); return 4}; g.y.canRetry=function(){this.xt();var w=this.info.isDecorated();return this.YA.canRetry(w)}; g.y.onStateChange=function(){this.isComplete()&&(this.policy.Ts?this.K1():this.timing.deactivate())}; g.y.Ch=function(){this.YA.Ch()}; g.y.Bl=function(){this.callback&&this.callback(this,this.state)}; g.y.ws=function(){return this.YA.ws()}; g.y.dispose=function(){U$.prototype.dispose.call(this);this.YA.dispose();var w;(w=this.hg)==null||w.dispose();this.policy.Ts||this.K1()}; g.y.K1=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.y.Ok=function(){if(!this.x$().length)return[];this.y0=!0;return this.Yc.Ok()}; g.y.pS=function(){if(this.state<1)return!1;if(this.Yc&&this.Yc.pO.length)return!0;var w;return((w=this.xhr)==null?0:w.pL())?!0:!1}; g.y.x$=function(){this.l2(!1);return this.Yc?this.Yc.x$():[]}; g.y.l2=function(w){try{if(w||this.xhr.m3()&&this.xhr.pL()&&!Gp(this.YA,this.xhr)&&!this.J5)this.Yc||(this.Yc=new Hz(this.policy,this.info.uW)),this.xhr.pL()&&(this.HO?this.HO.feed(this.xhr.SC()):jM(this.Yc,this.xhr.SC(),w&&!this.xhr.pL()))}catch(D){this.HO?roR(this,D):g.jn(D)}}; g.y.aM=function(w,D){switch(w){case 21:w=D.split(1).Tg;eQj(this,w);break;case 22:this.dQ=!0;jM(this.Yc,new A_([]),!0);break;case 43:if(w=xT(new $T(D),1))this.info.hH(this.C6,w),this.yu=!0;break;case 45:D=aw(new $T(D));w=D.Yq;D=D.yO;w&&D&&(this.K0=w/D);break;case 44:this.X9=R_l(new $T(D));var M,L,Z;!this.timing.y7&&((M=this.X9)==null?void 0:M.action)===4&&((L=this.X9)==null?0:(Z=L.nj)==null?0:Z.dN)&&(this.dN=this.X9.nj.dN);break;case 53:this.policy.UV&&(w=HmC(new $T(D)).J2)&&(this.hg||(this.J2=w,this.hg= new g.ui(this.Dt,w,this)),this.hg.start());break;case 60:this.Ra=sU(new $T(D));break;case 58:if(w=wqS(new $T(D)))this.ey=w,w.ey===3&&(this.Yg=!0)}}; g.y.Cb=function(w,D,M,L){M||this.timing.Cb(L);if(w!==21)return!1;if(w=this.policy.eF)if(w*=this.info.uW[0].T.info.sL,D.totalLength+M!==L&&D.totalLength0)return!1;if(!this.xhr.m3())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.HO)var w=!this.info.L;else this.xhr.xK()?w=!1:(w=this.xhr.getResponseHeader("content-type"),w=w==="audio/mp4"||w==="video/mp4"||w==="video/webm");if(!w)return!1;if(isNaN(this.info.JY)){w=this.xhr.getResponseHeader("x-head-seqnum");var D=this.timing.policy.G?1:0;if(!w)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(w)>this.info.uW[0].g9+D)return!1}return!0}; g.y.d8=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.y.dB=function(){this.xhr&&(this.Vm=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Vm}; g.y.oF=function(){this.xhr&&(this.NT=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.NT}; g.y.qs=function(){return this.YA.qs()}; g.y.Dt=function(){if(!this.xt()&&this.xhr){this.P$="heartbeat";var w=this.YA;w.T+=2;this.Bl()}};g.I(rp,hg);g.y=rp.prototype;g.y.QP=function(w,D){var M=(w-this.Y)/1E3,L=D-this.L;this.V>0?L>0&&(this.nV&&(M>.2||L<1024?(this.D+=M,M>.2&&uxT(this,.05,L)):uxT(this,M,L)),this.Jc&&(this.Md+=L,this.jk+=M)):D>this.policy.T&&this.sF(w,D);hg.prototype.QP.call(this,w,D)}; g.y.Cd=function(w,D){tg(this,w,D);this.QP(w,D);this.nV&&(D=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.V>0&&u3(this.Kl,this.Md,this.D),w=(w-this.T)/1E3||.01,this.policy.U&&!(this.V>0)||Tm(this.Kl,w,this.L,D,!1))}; g.y.Tw=function(w){tg(this,w,this.W);var D=(w-this.Y)/1E3;Qe(this.Kl,D,0);this.OF(D,0);!this.nV&&this.V>0||(D=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.V>0&&(this.D+=(w-this.Y)/1E3,u3(this.Kl,this.Md,this.D)),Tm(this.Kl,(w-this.T)/1E3||.01,this.L,D,!1,!0))}; g.y.Co=function(w){w=w.XD||2147483647;(w&2)!==2&&(this.Jc=!1);(w&1)===1&&(this.nV=!0)}; g.y.Lo=function(w){w=w.XD||2147483647;(w&2)===2&&(this.Jc=!1);(w&1)===1&&(this.nV=!1)}; g.y.FL=function(){return this.U}; g.y.cD=function(){var w=this.Jc?this.now()-this.Y:0;return Math.max(this.jk*1E3+w,1)}; g.y.x_=function(){return this.Md*1E3/this.cD()}; g.y.sF=function(w,D){w=w===void 0?this.G:w;D=D===void 0?this.W:D;this.V>0||(hg.prototype.sF.call(this,w,D),D=this.Kl,w=(w-this.B)/1E3,D.U.pJ(1,(this.B-this.T)/1E3),D.W_.pJ(1,w))}; g.y.uU=function(w){this.XE=w}; g.y.KL=function(){var w=hg.prototype.KL.call(this);w.rbw=this.x_();w.rbe=+this.Jc;w.gbe=+this.nV;w.ackt=(this.XE-this.T).toFixed();return w}; g.y.Qz=function(){}; g.y.jq=function(){return NaN}; g.y.Y2=function(){return this.T+this.snapshot.delay*1E3};eM.prototype.aM=function(w,D){switch(w){case 20:w=new $T(D);w={LW:y2(w,1),videoId:xT(w,2),itag:y2(w,3),lmt:y2(w,4),xtags:xT(w,5),kG:y2(w,6),Ad:I6(w,8),TV:y2(w,9),EOE:y2(w,10),startMs:y2(w,11),durationMs:y2(w,12),Nb:y2(w,14),timeRange:N5(w,15,fqJ),mw:y2(w,16),yT:y2(w,17),clipId:xT(w,1E3)};this.sb(w);break;case 21:this.ut(D,!1);break;case 22:this.xO(D);break;case 31:w=gn(D,$zx);this.wi(w);break;case 52:w=gn(D,jsr);this.t5(w);break;default:this.Se(w,D)}}; eM.prototype.sb=function(){}; eM.prototype.Se=function(){};g.I(Xu,eM);g.y=Xu.prototype; g.y.Se=function(w,D){switch(w){case 35:this.Mn(D);break;case 44:this.PW(D);break;case 43:this.LC(D);break;case 53:this.yz(D);break;case 56:this.Do();break;case 57:this.y5(D);break;case 42:this.N4(D);break;case 45:this.rf(D);break;case 59:this.Zo(D);break;case 51:this.cW(D);break;case 49:this.Co(D);break;case 50:this.Lo(D);break;case 47:this.WW(D);break;case 58:this.bB(D);break;case 61:this.zU.Hr.uU((0,g.IC)());break;case 66:this.a9(D);break;case 46:this.zy(D);break;case 67:this.onSnackbarMessage(D);break; case 69:this.Kb(D)}}; g.y.cW=function(w){w=new $T(w);w={SoE:jW(w,1,ow),d0h:jW(w,2,ow)};this.zU.cW(w)}; g.y.Zo=function(w){var D=new $T(w);w=HU(D,1);var M=HU(D,2);D=HU(D,3);this.zU.Zo(w,M,D)}; g.y.rf=function(w){w=aw(new $T(w));this.zU.rf(w)}; g.y.WW=function(w){w=gn(w,yPj);this.zU.WW(w)}; g.y.N4=function(w){w=new $T(w);w={videoId:xT(w,1),formatId:N5(w,2,ow),endTimeMs:y2(w,3),yrE:y2(w,4),mimeType:xT(w,5),cF:N5(w,6,lgK),indexRange:N5(w,7,lgK),BG:N5(w,8,E0K)};this.zU.N4(w)}; g.y.y5=function(w){w=new $T(w);w={type:y2(w,1),scope:y2(w,2),value:Uk(w,3),sendByDefault:I6(w,4),writePolicy:y2(w,5)};this.zU.y5(w)}; g.y.Do=function(){this.zU.Do()}; g.y.Mn=function(w){w=imR(new $T(w));this.zU.Mn(w)}; g.y.yz=function(w){w=HmC(new $T(w));this.zU.yz(w)}; g.y.PW=function(w){w=R_l(new $T(w));this.zU.PW(w)}; g.y.LC=function(w){w={redirectUrl:xT(new $T(w),1)};this.zU.LC(w)}; g.y.ut=function(w){var D=bK(w,0);if(w.totalLength!==1){w=w.split(1).Tg;var M=this.V[D]||null;M&&Vi(this.zU.HI,D,M,w)}}; g.y.xO=function(w){w=bK(w,0);var D=this.V[w]||null;D&&this.zU.xO(w,D)}; g.y.t5=function(w){this.zU.t5(w)}; g.y.sb=function(w){var D=w.LW,M=w.Ad,L=w.kG,Z=w.yT,k=w.mw,b=w.TV,C=w.startMs,l=w.durationMs,E=w.timeRange,p=w.Nb,W=w.clipId,h=Jo(w);w=pc3.has(r5[""+w.itag]);this.V[D]=h;this.zU.kU(h,w,{LW:D,Ad:!!M,kG:L!=null?L:-1,TV:b!=null?b:-1,startMs:C!=null?C:-1,durationMs:l!=null?l:-1,Nb:p,yT:Z,mw:k,clipId:W,timeRange:E})}; g.y.Co=function(w){w={XD:y2(new $T(w),1)};this.zU.Co(w)}; g.y.Lo=function(w){w={XD:y2(new $T(w),1)};this.zU.Lo(w)}; g.y.wi=function(w){this.zU.wi(w)}; g.y.bB=function(w){w=wqS(new $T(w));this.zU.bB(w)}; g.y.a9=function(w){w={Zh:N5(new $T(w),1,xzR)};this.zU.a9(w)}; g.y.onSnackbarMessage=function(w){w=y2(new $T(w),1);this.zU.onSnackbarMessage(w)}; g.y.Kb=function(w){w={PN:jW(new $T(w),1,CQT)};this.zU.Kb(w)}; g.y.zy=function(w){w=new $T(w);w={reloadPlaybackParams:N5(w,1,ASS),Ak:I6(w,2)};this.zU.zy(w)};g.I(Tp,g.X);g.y=Tp.prototype;g.y.Xw=function(){return Array.from(this.N$.keys())}; g.y.Qe=function(w){w=this.N$.get(w);var D=w.pO;w.xe+=D.totalLength;w.pO=new A_;return D}; g.y.VL=function(w){return this.N$.get(w).VL}; g.y.nz=function(w){return this.N$.get(w).nz}; g.y.kU=function(w,D,M){this.N$.get(w)||VvI(this,w,D);D=this.N$.get(w);this.r9?(w=Oda(this,w,M),P2I(this,M.LW,D,w)):(M.Ad?D.K5=M.Nb:D.eD.push(M),D.VO.push(M))}; g.y.A3=function(w){var D;return((D=this.N$.get(w))==null?void 0:D.uW)||[]}; g.y.Dl=function(){for(var w=g.x(this.N$.values()),D=w.next();!D.done;D=w.next())if(D=D.value,D.S1){if(D.onProgress)D.onProgress();D.S1=!1}}; g.y.xO=function(w,D){this.logger.debug(function(){return"[onMediaEnd] formatId: "+D}); var M=this.N$.get(D);uz?M&&!M.VL&&(M.bb.get(w)?M.bb.get(w).Kz=!0:M.bb.set(w,{data:new A_,W1:0,Kz:!0}),M.nz=!0):M&&!M.nz&&(M.nz=!0)}; g.y.Ok=function(w){if(uz){var D=this.N$.get(w);if(D)for(var M=g.x(D.bb),L=M.next();!L.done;L=M.next()){var Z=g.x(L.value);L=Z.next().value;Z=Z.next().value;var k=D.rO.get(L);if(Ao(k[0])){if(!Z.Kz)continue;var b=Z.data,C=0,l=[];k=g.x(k);for(var E=k.next();!E.done;E=k.next()){E=E.value;var p=E.L,W=DR(b,C,p);C+=p;l.push(new Uz(E,W))}D.Xs.push.apply(D.Xs,g.tG(l))}else if(Z.data.totalLength>0||!k[0].range&&Z.Kz)b=void 0,C=k[0],l=Z.W1,k=Z.data,C.range||(b=Z.Kz),b=new Uz(HHK(C,C.V+l,k.totalLength,b),k), Z.W1+=b.info.L,D.Xs.push(b);D.bb.get(L).data=new A_;Z.Kz&&D.bb.delete(L)}w=this.N$.get(w);if(!w)return[];D=w.Xs;w.Xs=[];M=g.x(D);for(L=M.next();!L.done;L=M.next())w.xe+=L.value.info.L;return D||[]}M=(D=this.N$.get(w))==null?void 0:D.Yc;if(!M)return[];this.l2(w,M);return M.Ok()}; g.y.pS=function(w){if(uz)return zp(this,w);var D,M,L;return!!((M=(D=this.N$.get(w))==null?void 0:D.Yc)==null?0:(L=M.x$())==null?0:L.length)||zp(this,w)}; g.y.l2=function(w,D){for(;zp(this,w);){var M=this.Qe(w);var L=w;L=this.N$.get(L).VL&&!Jg(this,L);jM(D,M,L&&zQC(this,w))}}; g.y.oJ=function(){g.X.prototype.oJ.call(this);for(var w=g.x(this.N$.keys()),D=w.next();!D.done;D=w.next())SM(this,D.value);var M;if((M=this.p6)==null?0:M.Z9)for(w=g.x(this.N$.values()),D=w.next();!D.done;D=w.next())D=D.value,D.bb.clear(),D.rO.clear(),D.Xs.length=0,D.uW.length=0,D.VO.length=0,D.eD.length=0;this.N$.clear()}; var uz=!1;g.I(Pz,g.X);g.y=Pz.prototype;g.y.YQ=function(){!this.xt()&&this.xhr&&(this.l2(!1),JR(this.zU,this))}; g.y.EF=function(){}; g.y.zR=function(){if(!this.xt()&&this.xhr){var w=this.mP();w===5?nX(this.YA):this.lj(w);this.YA.V.stop();var D;(D=this.Ur)==null||D.stop()}}; g.y.mP=function(){var w="";Gp(this.YA,this.xhr)&&(w=tvG(this.YA,this.xhr));if(w)return this.info.Zv.hH(this.C6,w),3;this.l2(!0);if(Fu(this.YA,this.xhr.status,this.xhr.cn(),this.info.Ar(),this.Yg))return 5;if(this.ZD)return 3;W6I(this.YA,this.xhr.Sx(),0,this.Ar());this.policy.Qi&&u9N(this.zU);return 4}; g.y.l2=function(w){var D=this.xhr;if((w||!Gp(this.YA,this.xhr))&&D.pL()){w=D.SC();var M=w.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+M}); this.HO.feed(w)}}; g.y.aM=function(w,D){this.xhr.Zq()&&w===21&&DHI(this);this.Pu.aM(w,D)}; g.y.Cb=function(w,D,M,L){M||(this.Hr.Cb(L),this.policy.w6&&w===21&&DHI(this));if(w!==21)return!1;this.Hr.y7=!0;w=D.totalLength;M||(this.xv=bK(D,0),D=D.split(1).Tg);var Z=this.policy.vR,k=this.Pu.V[this.xv],b=this.r9.L.get(k);if(Z&&b&&(Z*=b.info.sL,w+M!==L&&w0){this.policy.a$&&this.YA.V.stop();w=this.Hr.cD();D=this.Hr.x_();var M=MIS(this,w);if(!(D>M.Qj||M.Z2>0&&this.info.ZG()>M.Z2)){this.e1=(0,g.IC)();var L;(L=this.Ur)==null||L.stop();this.policy.Qi&&(L=this.zU,w={Js:Math.round(D*w/1E3),wu:w},L.policy.Qi&&(L.W_=w,L.wf++));this.Ch()}}}}; g.y.Ch=function(){this.YA.Ch()}; g.y.PW=function(w){this.zU.PW(w,this.SV())}; g.y.LC=function(w){this.ZD=!0;this.info.Zv.hH(this.C6,w.redirectUrl)}; g.y.Co=function(w){this.Hr instanceof rp&&this.Hr.Co(w)}; g.y.Lo=function(w){this.Hr instanceof rp&&this.Hr.Lo(w)}; g.y.N4=function(w){var D=w.formatId,M=Jo({itag:D.itag,lmt:D.lmt,xtags:D.xtags}),L,Z,k=new Vl(((L=w.cF)==null?void 0:L.first)||0,((Z=w.cF)==null?void 0:Z.vF)||0),b,C;L=new Vl(((b=w.indexRange)==null?void 0:b.first)||0,((C=w.indexRange)==null?void 0:C.vF)||0);this.r9.L.get(M)||(M=w.BG||{},M.mimeType=w.mimeType,M.itag=D.itag,M.lastModified=""+(D.lmt||0),M.xtags=D.xtags,w=this.r9,D=XE(""),M=rg(M,null),at(w,new FE(D,M,k,L)))}; g.y.rf=function(w){this.zU.rf(w,this.SV())}; g.y.onSnackbarMessage=function(w){if(this.policy.fu)this.zU.onSnackbarMessage(w)}; g.y.Kb=function(w){this.policy.Jc&&this.zU.Kb(w,this.SV())}; g.y.wi=function(w){this.aU=w;this.YA.L=(0,g.IC)();this.zU.wi(w)}; g.y.Zo=function(w,D,M){this.zU.Zo(w,D,M)}; g.y.y5=function(w){w.scope===2&&(this.Tl=w);this.zU.y5(w)}; g.y.Do=function(){this.n2=!0;this.zU.Do()}; g.y.cW=function(w){this.policy.m_&&this.zU.cW(w)}; g.y.WW=function(w){this.zU.WW(w,this.SV())}; g.y.bB=function(w){w.ey===3&&(this.Yg=!0);this.zU.bB(w)}; g.y.a9=function(w){this.zU.a9(w)}; g.y.zy=function(w){this.zU.zy(w)}; g.y.canRetry=function(){this.xt();return this.YA.canRetry(!1)}; g.y.dispose=function(){if(!this.xt()){g.X.prototype.dispose.call(this);this.YA.dispose();var w;(w=this.Ur)==null||w.dispose();this.lj(-1);this.K1()}}; g.y.lj=function(w){this.state=w;JR(this.zU,this)}; g.y.Ar=function(){return this.info.Ar()}; g.y.eN=function(){return this.n2}; g.y.Gx=function(){return this.Tl}; g.y.kU=function(w,D,M){M.clipId&&(this.clipId=M.clipId);this.policy.V&&!D&&(this.BX=M.TV);if(this.policy.F2&&this.info.isDecorated()){var L=this.info,Z,k;var b=((Z=L.data)==null?0:(k=Z.TK)==null?0:k.yl)?L.data.TK.yl:-1;b>=0&&b>M.TV&&this.zU.loader.H_("sdai",{skpsqmismatch:"1",stsq:b,rcvsq:M.TV,a:D})}this.HI.kU(w,D,M);this.policy.C7&&this.aU&&this.Hr instanceof iz&&(b=this.aU.ya,this.Hr.kU(M.durationMs/1E3,D,b>0&&M.TV+1>=b));this.HI.N$.get(w).GJ=!0}; g.y.xO=function(w,D){this.HI.xO(w,D)}; g.y.t5=function(w){this.requestIdentifier=w}; g.y.Ok=function(w){return this.HI.Ok(w)}; g.y.A3=function(w){return this.HI.A3(w)}; g.y.pS=function(w){return this.HI.pS(w)}; g.y.Xw=function(){return this.HI.Xw()}; g.y.RV=function(){return 1}; g.y.SV=function(){return this.Hr.requestNumber}; g.y.Mp=function(){return this.requestIdentifier}; g.y.M8=function(){return this.C6.M8()}; g.y.Sj=function(){this.K1()}; g.y.K1=function(){this.Hr.deactivate();var w;(w=this.xhr)==null||w.abort()}; g.y.isComplete=function(){return this.state>=3}; g.y.Gu=function(){return this.state===3}; g.y.NR=function(){return this.state===5}; g.y.S8=function(){return this.state===4}; g.y.HF=function(){return this.isComplete()}; g.y.Wq=function(){return this.state>=1}; g.y.ws=function(){return this.policy.Is?this.YA.ws():0}; g.y.Bl=function(){this.policy.Is&&JR(this.zU,this)}; g.y.Mu=function(){return v2T(this.info)}; g.y.qs=function(){return this.YA.qs()}; g.y.sD=function(){var w=$Nj(this.YA);Object.assign(w,B0j(this.info));w.req="sabr";w.rn=this.SV();var D;if((D=this.xhr)==null?0:D.status)w.rc=this.policy.WC?this.xhr.status:this.xhr.status.toString();var M;(D=(M=this.xhr)==null?void 0:M.WI())&&(w.msg=D);this.e1&&(M=MIS(this,this.e1-this.Hr.FL()),w.letm=M.VkL,w.mrbps=M.Qj,w.mram=M.Z2);return w};LkT.prototype.tick=function(w,D){this.ticks[w]=D?window.performance.timing.navigationStart+D:(0,g.IC)()};g.I(KX,g.mI);g.y=KX.prototype; g.y.c8=function(w,D,M,L){if(this.policy.h2&&this.policy.V){var Z=w.Pr||null;Z?(ycx(this,w.g9,M_(this,w.startTime,w.g9),{Pr:Z,g9:w.g9,TZ:!!D,GC:M},this.L),L&&this.L&&this.L.CY(w.g9,w.startTime,this.V,(D==null?void 0:D.T)||[],(D==null?void 0:D.V)||[],(D==null?void 0:D.D)||[],M,(D==null?void 0:D.cK)||0,(D==null?void 0:D.L)||void 0)):this.V===1&&Ag(this,5,"noad")}else{var k=!1;this.policy.V&&(k=M?this.c_===w.g9:this.nV===w.g9);if(this.L&&L&&!k){L=[];k=[];var b=[],C=void 0,l=0;D&&(L=D.T,k=D.V,b=D.D,C= D.L,l=D.cK,this.H_("sdai",{sq:w.g9,ssvicpns:L.join("."),ssvid:k.join(".")}));this.policy.V&&(M?this.c_=w.g9:this.nV=w.g9);this.L.CY(w.g9,w.startTime,this.V,L,k,b,M,l,C)}this.policy.V?M&&(this.V===1&&Ag(this,5,"noad"),w.g9!==((Z=this.T)==null?void 0:Z.g9)&&($HI(this,w,D,M),isNaN(w.startTime)||irN(this,w.g9,M_(this,w.startTime,w.g9),!!D,this.L))):M&&$HI(this,w,D)}}; g.y.B3=function(w,D,M){var L=this.videoTrack.T.index.EV()<=D;this.T={Pr:w,g9:D,TZ:M};L&&mc(this,w,D)}; g.y.Uy=function(){this.L&&this.L.Uy()}; g.y.H_=function(w,D,M){(w!=="sdai"||this.policy.UQ||(M===void 0?0:M))&&this.loader.H_(w,D)}; g.y.HC=function(w,D){var M=this.videoTrack.T.index.Y9(w);if(M>=0){var L;var Z=((L=D.j2.Pf(M,2))==null?void 0:L.Ny)||"";if(this.policy.V||Z)return D.EQ(w,M),wv(this.loader,w,w,M),this.H_("sdai",{cmskpad:1,t:w.toFixed(3),sq:M}),!0}this.H_("sdai",{cmskpad:0,t:w.toFixed(3),sq:M});return!1};g.y=NgJ.prototype;g.y.bu=function(w,D,M){w=w||this.T;this.V.has(w)||(this.H_("sldai",{setadconfig:"noentry",cid:w}),this.V.set(w,{event:"unknown",startTimeSecs:0,x6:0,jN:[],dL:Date.now(),Gt:-1,cO:6}));var L=this.V.get(w);L?D?(L.cO=6,L.jN.push(M),L.B7=D):L.cO=2:this.H_("sldai",{setadconfig:"notfound",cid:w})}; g.y.Kb=function(w,D,M){var L;if(!((((L=w.PN)==null?void 0:L.length)||0)<=0)&&(w=w.PN[0],w.Pr)){var Z;L=-(((Z=w.Pr)==null?void 0:Z.dh)||0);w.timeRange&&(L+=(w.timeRange.startTicks||0)/(w.timeRange.timescale||1));var k,b,C,l,E;Z=new YZ(L,((k=w.Pr)==null?void 0:k.yY5)||0,((b=w.Pr)==null?void 0:b.xs)||"",((C=w.Pr)==null?void 0:C.identifier)||"",RyG(((l=w.Pr)==null?void 0:l.event)||0),(((E=w.Pr)==null?void 0:E.dh)||0)*1E3);Hrj(this,Z,D,w.TV||0,M)}}; g.y.EQ=function(w,D){this.Bh(w);var M=this.V.get(this.T);M?(this.H_("ssskipad",{cid:this.T,sn:D,mt:w.toFixed(3)}),M.Nq=D):this.H_("ssskipadfail",{cid:this.T,sn:D,mt:w.toFixed(3)})}; g.y.V3=function(){for(var w=g.x(this.V.values()),D=w.next();!D.done;D=w.next())D.value.Nq=NaN}; g.y.Bh=function(w,D){D&&(this.D=D);if(this.T&&(D=this.V.get(this.T))&&D.startTimeSecs<=w&&w<=D.startTimeSecs+D.x6)return;this.T=jtk(this,w)};g.I(bP,g.X);bP.prototype.J3=function(w,D,M){M=M===void 0?{}:M;this.policy.rK=wq(w,M,this.D,D===void 0?!1:D)};p9.prototype.P8=function(w){var D=this;if(this.policy.Cu){var M=new Set(w);M.size===this.W_.size&&[].concat(g.tG(M)).every(function(L){return D.W_.has(L)})||(this.loader.H_("lwnmow",{itagDenylist:[].concat(g.tG(w)).join(",")}),this.loader.JB(!!M.size),this.B=-1,this.W_=M,Ws(this,this.T),this.Md=!0)}}; p9.prototype.J3=function(w,D,M){M=M===void 0?{}:M;var L=this.policy.rK;this.W.J3(w,D===void 0?!1:D,M);if(L!==this.policy.rK){Ws(this,this.T);h8(this);var Z,k;L>this.policy.rK&&((Z=this.L)==null?0:Sl(Z.info))&&((k=this.nextVideo)==null||!Sl(k.info))&&(this.y7=!0)}};dv.prototype.Pt=function(w){this.timestampOffset=w;this.flush()}; dv.prototype.flush=function(){if(this.T.pos>0){var w={a:this.track.XX(),u:this.T.Dy(),pd:Math.round(this.D),ad:Math.round(this.L)},D=this.V;if(D){var M=D.T.info;w.itag=M.itag;M.T&&(w.xtags=M.T);w.sq=D.g9;w.st=D.startTime;w.sd=D.duration;this.track.policy.gF&&(w.si=D.PA());D.D&&(w.esl=D.V+D.L);D.wK()&&(w.eos=1)}isNaN(this.timestampOffset)||(w.to=this.timestampOffset);var L;if(D=(L=this.track.rW)==null?void 0:L.qC({})){for(var Z in D)this.Y[Z]!==D[Z]&&(w["sb_"+Z]=D[Z]);this.Y=D}this.track.H_("sbu", w);this.T.reset();this.buffered=[];this.W=this.L=this.D=0;this.timestampOffset=this.V=void 0}};If.prototype.dispose=function(){this.V7=!0}; If.prototype.xt=function(){return this.V7}; g.I(gv,Error);n9.prototype.skip=function(w){this.offset+=w}; n9.prototype.vO=function(){return this.offset};g.y=pdJ.prototype;g.y.aF=function(){return this.V}; g.y.jy=function(){return this.V.length?this.V[this.V.length-1]:null}; g.y.Ug=function(){this.V=[];vs(this);sI(this)}; g.y.Qe=function(w){this.jk=this.V.shift().info;w.info.equals(this.jk)}; g.y.A3=function(){return g.yR(this.V,function(w){return w.info})}; g.y.XX=function(){return!!this.W.info.audio}; g.y.isDrm=function(){return!!this.W.info.f6}; g.y.getDuration=function(){return this.W.index.Iw()};g.I(LX,U$);g.y=LX.prototype;g.y.onStateChange=function(){this.xt()&&(Qi(this.HI,this.formatId),this.T.dispose())}; g.y.sD=function(){var w=Joa(this.HI,this.formatId),D;var M=((D=this.HI.N$.get(this.formatId))==null?void 0:D.bytesReceived)||0;var L;D=((L=this.HI.N$.get(this.formatId))==null?void 0:L.xe)||0;return{expected:w,received:M,bytesShifted:D,sliceLength:Jg(this.HI,this.formatId),isAnyMediaEndReceived:this.HI.nz(this.formatId)}}; g.y.To=function(){return 0}; g.y.tD=function(){return!0}; g.y.Ok=function(){return this.HI.Ok(this.formatId)}; g.y.x$=function(){return[]}; g.y.pS=function(){return this.HI.pS(this.formatId)}; g.y.qs=function(){return this.lastError}; g.y.ws=function(){return 0};g.I(q_,g.X);g.y=q_.prototype;g.y.XX=function(){return!!this.T.info.audio}; g.y.jy=function(){return this.D.jy()}; g.y.Qe=function(w){this.D.Qe(w);var D;(D=this.U)!=null&&(D.W.add(w.info.g9),D.T=vzS(D,D.Vi,D.u2,w,D.T),D.L=w,D.Y=(0,g.IC)());this.sL=Math.max(this.sL,w.info.T.info.sL||0)}; g.y.getDuration=function(){return this.T.index.Iw()}; g.y.Ug=function(){kf(this);this.D.Ug()}; g.y.Jl=function(){return this.D}; g.y.isRequestPending=function(w){return this.L.length?w===this.L[this.L.length-1].info.uW[0].g9:!1}; g.y.Pt=function(w){var D;(D=this.U)==null||D.Pt(w);var M;(M=this.B)==null||M.Pt(w)}; g.y.H_=function(w,D){this.loader.H_(w,D)}; g.y.GK=function(){return this.loader.GK()}; g.y.dispose=function(){var w;(w=this.B)==null||w.flush();g.X.prototype.dispose.call(this)};g.I(M4,g.X);M4.prototype.L=function(){this.V++>15||(this.T=!this.T,new ZNN(this.loader,this.policy,this.Kl,this.Zv,this.T),this.delay.start())}; g.y=ZNN.prototype;g.y.EF=function(){}; g.y.YQ=function(){}; g.y.zR=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Sx()===this.size)this.loader.H_("rqs",this.getInfo());else{var w="net.connect";this.xhr.status>200?w="net.badstatus":this.xhr.m3()&&(w="net.closed");this.onError(w)}}; g.y.onError=function(w){var D=this;this.loader.handleError(w,this.getInfo());PR("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(M){D.loader.H_("pathprobe",M)},function(M){D.loader.handleError(M.errorCode,M.details)})}; g.y.getInfo=function(){var w=this.timing.KL();w.shost=J$(this.location.BH);w.pb=this.size;return w};g.I(Lq,g.X); Lq.prototype.G=function(w,D){if(w.G){this.r9.isLive?(w=this.r9.YP&&this.r9.D?w.T.zs(this.r9.YP,!1):w.T.u3(Infinity),w.JY=this.JY):w=w.T.zs(0,!1);if(this.y7){var M=this.y7;w.JY===0&&(w.W=M.U)}else w.W=this.B;return w}M=w.V;if(!M.T.Gk())return M.T.kL()?(w=mj(this.W,w.T.info.sL,D.T.info.sL,0),w=M.T.Zg(M,w)):w=M.T.Ap(M),w;var L=M.Y-this.loader.getCurrentTime(),Z=!M.range||M.L===0&&M.V===0?0:M.range.length-(M.V+M.L),k=M.T;this.Gj(w,L)&&Z===0&&(this.r9.isManifestless?k=w.T:(k=M.startTime+ail,M.L&&(k+=M.duration), CX(w,k),M=w.V,k=M.T));k.kL()?(Z=this.L,D=mj(this.W,k.info.sL,D.T.info.sL,L,Z.D.length>0&&Z.U===0&&this.loader.ZQ),L=mz(w),w=M.T.Zg(M,D),(D=w.L)&&w.uW.length>1&&(L||w.Zv.L||w.uW[0].T!==M.T?w=M.T.Zg(M,w.uW[0].L):(L=w.uW[w.uW.length-1],k=L.L/D,!L.D&&k<.4&&(w=M.T.Zg(M,D-L.L))))):(M.g9<0&&(D=Lr(M),D.pr=""+w.L.length,this.loader.isSeeking()&&(D.sk="1"),D.snss=M.G,this.loader.H_("nosq",D)),w=k.Ap(M));if(this.policy.c_)for(M=g.x(w.uW),D=M.next();!D.done;D=M.next())D.value.type=6;return w}; Lq.prototype.Gj=function(w,D){if(!mz(w)||!w.T.Gk())return!1;var M=this.L.Md||eUN(w)||D<=this.policy.fU||this.L.y7;this.logger.debug(function(){return"ready to adapt: "+M+", upgrade pending: "+eUN(w)+", health: "+D}); return M}; Lq.prototype.oJ=function(){g.X.prototype.oJ.call(this)}; var ail=2/24;g.I(YG,g.X);YG.prototype.ZR=function(w,D,M){var L;var Z=((L=this.V)==null?void 0:L.reason)==="m"?"m":this.V&&HNr(this,this.V)?this.V.reason:"a";this.loader.ZR(new ku(w,Z,M));kG(this.loader,D,w,!0)}; YG.prototype.Kj=function(w,D){for(var M=g.x(this.c_),L=M.next();!L.done;L=M.next())if(L.value.id===w)return this.W=this.r9.T[w],Bz(this.p6)&&(this.y7=!0),w=new ku(this.W,D?"t":"m"),D&&(this.G=!0),w;this.L=[];return null}; YG.prototype.J3=function(w,D,M){M=M===void 0?{}:M;this.T.J3(w,D===void 0?!1:D,M)};l6.prototype.setData=function(w,D,M){var L=this;M=M===void 0?{}:M;if(D==null?0:D.GU)this.gw=wyK(this,D,M),w.fT=this.Zv.fT();if(this.Ar())return!0;this.data=w;this.T=sIl(w,function(Z,k){var b;(b=L.zU)==null||b.La(Z,k)},D==null?void 0:D.L); if(!this.T)return!1;this.V=g.Q2(this.T,LAr);return!0}; l6.prototype.Ar=function(){return this.requestType===1}; l6.prototype.ZG=function(){var w;return((w=this.zU)==null?void 0:w.ZG())||0}; l6.prototype.isDecorated=function(){var w;return!((w=this.data)==null||!w.TK)};fpG.prototype.encrypt=function(w){(0,g.IC)();return this.T.T?ubG(this,w,this.iv):(new g.Y6(this.T.V)).encrypt(w,this.iv)}; fpG.prototype.decrypt=function(w,D){(0,g.IC)();return this.T.T?ubG(this,w,D):(new g.Y6(this.T.V)).decrypt(w,D)};g.I(EE,g.X);EE.prototype.L=function(w,D){if(D){D=D instanceof g.S_?D:pq(this,D);var M;((M=this.T.get(w))==null?void 0:J$(M.location))!==J$(D)&&this.T.set(w,new PwS(D,w))}else this.T.delete(w)}; EE.prototype.load=function(){var w=this,D,M,L,Z,k,b,C,l,E,p;return g.B(function(W){switch(W.T){case 1:D=w.T.get(0);g.jN(W,2);var h;if(h=D&&!w.V)h=J$(D.location),h=w.V===oM(h);if(h){W.KV(4);break}return g.c(W,zVk(w,w.V?2:0),5);case 5:if(M=W.V)w.L(0,M),Vu(M)&&w.L(1,PO(M));case 4:g.oT(W,3);break;case 2:L=g.FK(W);g.jn(L);if(!w.V){W.KV(3);break}w.V=!1;return g.c(W,w.load(),7);case 7:return W.return();case 3:if(!w.mE.experiments.ek("html5_onesie_probe_ec_hosts")){W.KV(0);break}g.jN(W,9);Z=w;k=Z.L;b=3;return g.c(W, zVk(w,1),11);case 11:return k.call(Z,b,W.V),C=w,l=C.L,E=4,g.c(W,zVk(w,2),12);case 12:l.call(C,E,W.V);g.oT(W,0);break;case 9:p=g.FK(W),g.jn(p),g.Hr(W)}})}; EE.prototype.G=function(){var w=this,D,M;return g.B(function(L){g.S3(w.U);D=g.A3(w.mE.experiments,"html5_onesie_prewarm_max_lact_ms");if(iG()>=D)return L.return();(M=w.T.get(0))&&J6R(w,M);g.Hr(L)})}; var SKT={wO_:0,GHV:1,nV9:2,joc:3,lK9:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};ONN.prototype.decrypt=function(w){var D=this,M,L,Z,k,b,C;return g.B(function(l){switch(l.T){case 1:if(D.T.length&&!D.T[0].isEncrypted)return l.return();D.V=!0;D.qT.q$("omd_s");M=new Uint8Array(16);k6()?L=new g.C_(w):Z=new g.Y6(w);case 2:if(!D.T.length||!D.T[0].isEncrypted){l.KV(4);break}k=D.T.shift();if(!L){b=Z.decrypt(ZR(k.buffer),M);l.KV(5);break}return g.c(l,L.decrypt(ZR(k.buffer),M),6);case 6:b=l.V;case 5:C=b;for(var E=0;E=4)){var D=xG(this),M=this.xhr;D.rc=M.status;w&&(D.ab=!0);if(M.WI()){var L="onesie.net";D.msg=M.WI()}else M.status>=400?L="onesie.net.badstatus":M.cn()?this.Oz||(L="onesie.response.noplayerresponse"):L=M.status===204?"onesie.net.nocontent":"onesie.net.connect";L?this.fail(new g.W_(L,D)):(this.q$("or_fs"),this.Hr.Cd((0,g.IC)(),M.Sx(),0),this.lj(4),this.IQ&&this.H_("rqs",D));this.IQ&&this.H_("ombre", "ok."+ +!L);this.Hh=!1;UE(this);Eir(this.qT);if(!this.Aq){this.Y$.stop();var Z;(Z=this.fA)==null||Z.stop()}var k;if(w=(k=this.g7)==null?void 0:VZG(k))for(k=0;k1E3){var w;(w=this.Hr)==null||w.Tw((0,g.IC)());w=xG(this);if(this.mE.gW()&&this.xhr instanceof xf){var D=this.xhr;w.xrs=D.xhr.readyState;w.xpb=D.T.totalLength;w.xdc=D.D}this.fail(new g.W_("net.timeout",w))}}else(0,g.IC)()-this.Hr.T>1E4&&((D=this.Hr)==null||D.Tw((0,g.IC)()),this.OO());this.isComplete()||this.iQ.start()}}; g.y.OO=function(){this.logger.info("Onesie request timed out");this.Hh=!1;if(!UE(this)){var w=xG(this);w.timeout="1";this.fail(new g.W_("onesie.request",w))}}; g.y.fail=function(w){var D=this;w=tF(w);this.lX?this.Th.ZX(w):(this.qn.reject(w),this.lX=!0);Eir(this.qT);this.Aq||this.Y$.stop();this.q$("or_fe");var M,L;(M=this.g7)==null||(L=VZG(M))==null||L.forEach(function(Z){D.H_("pathprobe",Z)}); this.lj(5);this.dispose()}; g.y.isComplete=function(){return this.state>=3}; g.y.S8=function(){return this.state===4}; g.y.HF=function(w){var D,M;return this.isComplete()||!!((D=this.tW)==null?0:(M=D.get(w))==null?0:M.T)}; g.y.Gu=function(){return!1}; g.y.NR=function(){return this.state===5}; g.y.notifySubscribers=function(w){for(var D=0;D102400&&!this.gy&&(this.q$("or100k"),this.gy=!0);if(w.pL()){var D=w.SC(),M=D.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+M}); this.IQ&&this.H_("ombrss","len."+M);this.HO.feed(D)}if(this.tW)for(var L=g.x(this.tW.keys()),Z=L.next();!Z.done;Z=L.next()){var k=Z.value;w=void 0;(w=this.tW.get(k))==null||w.Dl();this.notifySubscribers(k)}}catch(b){this.fail(b)}}; g.y.SV=function(){return this.Hr.requestNumber}; g.y.Mp=function(w){return this.Uh.get(w)};g.I(niI,g.X);g.y=niI.prototype;g.y.SL=function(w,D){this.V7=void 0;u9N(this);Tbk(this,w,D)}; g.y.MV=function(w){if(this.T.length===0)return!1;var D=this.T[0];return D instanceof N4?w===this.loader.getCurrentTime()*1E3:!(D instanceof Pz&&c6r(D.info))&&Math.abs(D.Mu()-w)<50}; g.y.Mn=function(w){this.V=w;this.V7=(0,g.IC)()+(w.backoffTimeMs||0)}; g.y.PW=function(w,D){if(w.action===void 0){var M=this.Th.BB();M!==void 0&&this.loader.Mh(M)}else if(w.action!==0||!this.XE)if(w.action===0&&this.policy.PE&&(w.action=2),w.N1==="sabr.malformed_config"&&this.bW++<3)this.loader.handleError("sabr.malformed_config",{action:w.action,rn:D,retry:this.bW},0);else switch(w.N1==="sabr.malformed_config"&&(w.action=2),M={},M.reason=w.N1,M.action=w.action,M.rn=D,w.action){case 1:this.policy.V&&this.U&&this.U.ke(void 0,void 0,M);break;case 0:this.XE=!0;this.videoData.rH()&& this.policy.V&&this.U&&this.U.ke(void 0,void 0,M,!1);this.loader.dk(M);break;case 2:xVG(w.N1)!=="sabr.config"&&delete M.reason;this.loader.handleError(xVG(w.N1),M,1);break;case 3:this.policy.GU&&((w=this.r9.B)!=null&&(w.U=!0),this.loader.handleError("sabr.hostfallback",M))}}; g.y.y5=function(w){w&&(this.loader.H_("sabrctxt",{onsbrctxt:w.type,scp:w.scope,dflt:w.sendByDefault}),w.type&&w.sendByDefault&&this.videoData.EL.add(w.type),w.scope!==2&&(w.type&&this.videoData.sabrContextUpdates.set(w.type,w),this.Th.y5(w)))}; g.y.Do=function(){}; g.y.rf=function(w,D){if(this.policy.DB&&this.loader.Pq)this.loader.H_("sdai",{ignSabrSeek:1,smt:w==null?void 0:w.Yq,rn:D});else if(w.Yq!==void 0&&w.yO){var M=w.Yq/w.yO;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.y7||this.policy.Io||this.policy.jZ)this.loader.lr.T=!1;var L=this.loader.GH(M,1);this.policy.EL&&this.policy.V&&this.loader.Bh(L,D);this.Th.getCurrentTime()!==M&&(D={GD:"sabr_seek",cq:!0,hS:!0},w.seekSource&&(D.seekSource=w.seekSource),pX(this.loader,M+.1,D))}}; g.y.onSnackbarMessage=function(w){this.Th.publish("onSnackbarMessage",w)}; g.y.Kb=function(w,D){this.policy.Jc&&this.B&&this.loader.Kb(w,D)}; g.y.wi=function(w){w.ya&&w.Yd&&VI(this.r9,w.ya,w.Yd);this.policy.Ao&&(w.Yp&&w.JK&&(this.r9.GR=w.Yp/w.JK),w.VY&&w.Lg&&(this.r9.o$=w.VY/w.Lg));A0(this.videoData)&&!this.videoData.nV&&w.Yd&&this.loader.GH(w.Yd,1E3);w.xI!=null&&this.Th.Ck(w.xI);w.hI&&(w=((0,g.IC)()-w.hI)/1E3,this.loader.qv.pJ(1,w))}; g.y.bB=function(w){this.loader.bB(w)}; g.y.bX=function(w){return this.videoData.EL.has(w)}; g.y.Zo=function(w,D,M){this.policy.L&&this.loader.H_("sabrctxtplc",{start:w?w.join("_"):"",stop:D?D.join("_"):"",discard:M?M.join("_"):""});if(w){w=g.x(w);for(var L=w.next();!L.done;L=w.next())this.videoData.EL.add(L.value)}if(D)for(D=g.x(D),w=D.next();!w.done;w=D.next())w=w.value,this.videoData.EL.has(w)&&this.videoData.EL.delete(w);if(M)for(M=g.x(M),D=M.next();!D.done;D=M.next())if(D=D.value,this.videoData.sabrContextUpdates.has(D)&&this.videoData.sabrContextUpdates.delete(D),this.policy.B&&this.T.length)for(w= g.x(this.T),L=w.next();!L.done;L=w.next())if(L=L.value,!(L instanceof N4)){var Z=void 0;((Z=L.Tl)==null?void 0:Z.type)===D&&(L.Tl=void 0)}}; g.y.cW=function(){}; g.y.rG=function(w){this.G=w}; g.y.Zu=function(w){this.Y=w}; g.y.WW=function(w,D){DiS(this.policy,w,4,D)}; g.y.a9=function(w){if(w==null?0:w.Zh)if(w=w.Zh.BN){w=g.x(w);for(var D=w.next();!D.done;D=w.next())if(D=D.value,D.formatId){var M=this.r9.L.get(Jo(D.formatId));M&&M.info&&(M.info.debugInfo=D.debugInfo)}}}; g.y.zy=function(w){this.Th.publish("reloadplayer",w)}; g.y.eJ=function(){return this.Th.eJ()||""}; g.y.ZG=function(){var w=VY(this.audioTrack,!0)*1E3,D=VY(this.videoTrack,!0)*1E3;return Math.min(w,D)}; g.y.La=function(w,D){this.loader.H_(w,D)}; g.y.IF=function(w){CgI(this.loader,rcx(this.EL,w))}; g.y.oJ=function(){g.X.prototype.oJ.call(this);this.V=void 0;Tbk(this,!0,"i");this.T=[]};A0j.prototype.y7=function(w){f5(w.state)&&Pfx(this.D)}; A0j.prototype.Ko=function(){this.isSeeking=!0;this.T===1&&Kma(this.D);this.T===0&&this.Da.N8("transitiondetector");this.Y=!1};Y9C.prototype.Ju=function(w,D){if(this.D)return WHC(this,D);if(D=Wz(w)){var M=D.T;M&&M.L&&M.T&&(w=w.L.length?w.L[0]:null)&&w.state>=2&&!w.NR()&&w.info.JY===0&&(this.D=w,this.G=M,this.V=D.info,this.Y=this.startTimeSecs=Date.now()/1E3,this.W=this.V.startTime)}return NaN}; Y9C.prototype.clear=function(){this.V=this.G=this.D=null;this.T=this.W=this.Y=this.startTimeSecs=NaN;this.L=!1};g.I($yC,g.X);$yC.prototype.oJ=function(){dyk(this);g.X.prototype.oJ.call(this)};var yWl=/[?&]cpn=/;g.I(VA,g.X);VA.prototype.flush=function(){var w={};this.V&&(w.pe=this.V);this.T.length>0&&(w.pt=this.T.join("."));this.T=[];return w}; VA.prototype.stop=function(){var w=this,D,M,L;return g.B(function(Z){if(Z.T==1)return g.jN(Z,2),g.c(Z,(D=w.D)==null?void 0:D.stop(),4);if(Z.T!=2)return(M=Z.V)&&w.logTrace(M),g.oT(Z,0);L=g.FK(Z);w.V=gsC(L.message);g.Hr(Z)})}; VA.prototype.logTrace=function(w){this.encoder.reset();this.encoder.add(1);this.encoder.add(w.resources.length);for(var D=g.x(w.resources),M=D.next();!M.done;M=D.next()){M=M.value.replace("https://www.youtube.com/s/","");this.encoder.add(M.length);for(var L=0;L=0?w:g.AR(this.provider),this.nV?cV3.has(this.uT)&&(this.T.size||(this.uT==="PL"?w>=this.V+30:w<=this.y7+30||w>=this.V+1200&&w<=this.y7+86400))&&(g.OE(this,w,"vps",[this.uT]),this.V=w):["PL","B","S"].indexOf(this.uT)>-1&&(this.T.size||w>=this.V+30)&&(g.OE(this,w,"vps",[this.uT]),this.V=w),this.T.size)){this.sequenceNumber===7E3&&g.jn(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){wo(this,w);var D=this.provider.Th.Tx(); D=g.x(D);for(var M=D.next();!M.done;M=D.next())M=M.value,this.H_(M.key,M.value);D=w;M=this.provider.Th.Bo();var L=M.droppedVideoFrames||0,Z=M.totalVideoFrames||0,k=L-this.r_,b=Z&&!this.Ga;L>M.totalVideoFrames||k>5E3?X$x(this,"html5.badframedropcount","df."+L+";tf."+M.totalVideoFrames):(k>0||b)&&g.OE(this,D,"df",[k]);this.r_=L;this.Ga=Z;this.U>0&&(g.OE(this,w,"glf",[this.U]),this.U=0);Lz.isActive()&&(w=Lz.uh(),Object.keys(w).length>0&&this.H_("profile",w));this.oO&&D3(this,"lwnmow");this.provider.mE.gW()&& this.provider.C("html5_record_now")&&this.H_("now",{wt:(0,g.IC)()});w={};this.provider.videoData.V&&(w.fmt=this.provider.videoData.V.itag,(D=this.provider.videoData.D)&&D.itag!==w.fmt&&(w.afmt=D.itag));w.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(w.adcpn=this.adCpn);this.t4&&(w.addocid=this.t4);this.contentCpn&&(w.ccpn=this.contentCpn);this.c_&&(w.cdocid=this.c_);this.provider.videoData.cotn&&(w.cotn=this.provider.videoData.cotn);w.el=bR(this.provider.videoData);w.content_v=CZ(this.provider.videoData); w.ns=this.provider.mE.y7;w.fexp=O5I(this.provider.mE.experiments).toString();w.cl=(797107798).toString();(D=this.provider.videoData.adFormat||this.adFormat)&&(w.adformat=D);(D=zB(this.provider.videoData))&&(w.live=D);this.provider.videoData.Ms()&&(w.drm=1,this.provider.videoData.W&&(w.drm_system=Hpx[this.provider.videoData.W.flavor]||0),this.provider.videoData.drmProduct&&(w.drm_product=this.provider.videoData.drmProduct));DV()&&this.provider.videoData.Y&&(w.ctt=this.provider.videoData.Y,w.cttype= this.provider.videoData.nm,this.provider.videoData.mdxEnvironment&&(w.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(w.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.aL&&(w.dai_fallback="1")):this.provider.videoData.JQ?w.dai="cs":this.provider.videoData.fu&&(w.dai="disabled");w.seq=this.sequenceNumber++;if(this.provider.videoData.qL){if(D=this.provider.videoData.qL,w&&D)for(D.ns==="3pp"&&(w.ns="3pp"),this.FK.has(D.ns)&& D3(this,"hbps"),D.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=D.shbpslc),this.provider.mE.experiments.ek("html5_use_server_qoe_el_value")&&this.EL.delete("el"),M=g.x(Object.keys(D)),L=M.next();!L.done;L=M.next())L=L.value,this.EL.has(L)||(w[L]=D[L])}else w.event="streamingstats",w.docid=this.provider.videoData.videoId,w.ei=this.provider.videoData.eventId;this.isEmbargoed&&(w.embargoed="1");Object.assign(w,this.provider.mE.T);if(D=w.seq)D={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+D,serializedWatchEndpointLoggingContext:this.provider.videoData.qiW},this.serializedHouseBrandPlayerServiceLoggingContext&&(D.serializedHouseBrandPlayerServiceLoggingContext=FA(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(D.playerResponseCpn=this.provider.videoData.playerResponseCpn),Pm.length&&(D.decoderInfo=Pm),this.remoteControlMode&&(D.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(D.remoteConnectedDevices= this.remoteConnectedDevices),D=g.Q2(D,bmK),D=g.oJ(D,4),this.T.set("qclc",[D]);w=g.dh("//"+this.provider.mE.YV+"/api/stats/qoe",w);M=D="";L=g.x(this.T.entries());for(Z=L.next();!Z.done;Z=L.next())k=g.x(Z.value),Z=k.next().value,k=k.next().value,b=void 0,(b=k)!=null&&b.join&&(Z="&"+Z+"="+k.join(","),Z.length>100?M+=Z:D+=Z);f_S(this,w+D,M.replace(/ /g,"%20"))}this.T.clear()}}; g.y.JB=function(w){this.oO=w}; g.y.xi=function(){if(this.provider.videoData.W){var w=this.provider.videoData.W;D3(this,"eme-"+(w.keySystemAccess?"final":Lg(w)?"ms":b3(w)?"ytfp":kt(w)?"safarifp":"nonfinal"))}}; g.y.ea=wR(53);g.y.s1=function(w){this.isEmbargoed=w}; g.y.B9=wR(30);g.y.AY=wR(36);g.y.onPlaybackRateChange=function(w){var D=g.AR(this.provider);w&&w!==this.FQ&&(g.OE(this,D,"rate",[w]),this.FQ=w);this.nV||this.reportStats(D)}; g.y.nP=wR(24);g.y.getPlayerState=function(w){if(g.z(w,128))return"ER";if(g.z(w,2048))return"B";if(g.z(w,512))return"SU";if(g.z(w,16)||g.z(w,32))return"S";if(w.isOrWillBePlaying()&&g.z(w,64))return"B";var D=BPr[qL(w)];g.hL(this.provider.mE)&&D==="B"&&this.provider.Th.getVisibilityState()===3&&(D="SU");D==="B"&&g.z(w,4)&&(D="PB");return D}; g.y.uq=function(w){var D=g.AR(this.provider);g.OE(this,D,"vfi",[w===0?"":""+w,w===0?"A":"M"])}; g.y.oJ=function(){g.X.prototype.oJ.call(this);g.p7(this.V7);g.p7(this.GU)}; g.y.QR=function(w){this.isOffline=w;g.OE(this,g.AR(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.y.H_=function(w,D,M){var L=this.uj.indexOf(w)!==-1;L||this.uj.push(w);if(!M||!L){var Z=typeof D!=="string"?pH(D):D;Z=u0I(Z);if(!M&&!/^t[.]/.test(Z)){var k=g.AR(this.provider)*1E3;Z="t."+k.toFixed()+";"+Z}m9(this,"ctmp",w+":"+Z);this.logger.debug(function(){return"ctmp "+w+" "+Z}); q9a(this);return k}}; g.y.Bq=function(w,D,M){this.W={Td7:Number(this.H_("glrem",{nst:w.toFixed(),rem:D.toFixed(),ca:+M})),Gm:w,Xdt:D,isAd:M}}; g.y.rp=function(w,D,M){g.OE(this,g.AR(this.provider),"ad_playback",[w,D,M])}; g.y.iB=function(w,D){var M=g.AR(this.provider)*1E3;m9(this,"daism","t."+M.toFixed(0)+";smw."+(w*1E3).toFixed(0)+";smo."+(D*1E3).toFixed(0))}; g.y.resume=function(){var w=this;isNaN(this.V7)?rWC(this):this.V7=g.lU(function(){w.reportStats()},1E4)}; var Iu={},BPr=(Iu[5]="N",Iu[-1]="N",Iu[3]="B",Iu[0]="EN",Iu[2]="PA",Iu[1]="PL",Iu[-1E3]="ER",Iu[1E3]="N",Iu),cV3=new Set(["PL","B","S"]),Pm=[];g.I(g.Z3,g.X);g.y=g.Z3.prototype;g.y.initialize=function(w,D,M){this.logger.debug(function(){return"Initialized, t="+w}); w=w||0;this.policy.T||(D=XyN(this.T),pRI(this.Th,new ku(D.video,D.reason)),this.Th.mV(new ku(D.audio,D.reason)));this.policy.T&&Wwa(this);this.r9.isManifestless&&IpT(this.W);this.G&&l_r(this.G,this.videoTrack.T);D=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var L=!this.r9.isManifestless;this.policy.yn&&(L=L||this.r9.G3);if(!this.policy.W_||this.policy.NC)this.currentTime=L?w:D;this.policy.y7&&this.seek(this.getCurrentTime(),{}).V8(function(){}); if(this.policy.T){var Z;((Z=this.y7)==null?0:oiS(Z,this.eJ()||""))&&myl(this)&&KHC(this,this.videoTrack)&&KHC(this,this.audioTrack)&&(SNS(this.V,this.y7),this.policy.W&&OZj(this))}else this.nV&&(AWK(this,this.videoTrack),AWK(this,this.audioTrack),QbJ(this.nV),delete this.nV);M?(DIa(this,!1),g.S3(this.Bf)):(M=this.getCurrentTime()===0,Zh(this.W,this.videoTrack,this.videoTrack.T,M),Zh(this.W,this.audioTrack,this.audioTrack.T,M),this.policy.T&&syR(this.V,!0),this.policy.y7||this.seek(this.getCurrentTime(), {}).V8(function(){}),this.timing.tick("gv")); (this.r9.YP||this.r9.gZ||this.r9.c_||this.r9.oO||this.r9.GU)&&this.Th.Er(this.r9)}; g.y.resume=function(){if(this.isSuspended||this.ZQ){this.logger.debug("Resumed.");this.QH=this.ZQ=this.isSuspended=!1;try{this.Ju()}catch(w){g.HL(w)}}}; g.y.PM=function(){return!this.policy.TC}; g.y.XG=function(w,D){w=w===void 0?!1:w;D=D===void 0?!1:D;this.logger.debug("detaching media source");kUG(this);this.Th.tf()&&(this.Y=NaN);w?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.fV&&this.H_("loader",{setsmb:1}),this.policy.c_=!0,this.Ug()):(DIa(this,!1),D||this.Ug())}; g.y.setAudioTrack=function(w,D,M){M=M===void 0?!1:M;if(!this.xt()){var L=!isNaN(D);M&&L&&(this.audioTrack.V7=Date.now(),this.policy.Nr&&(this.pV=!0));if(this.policy.T){var Z=this.D.Kj(w.id,L);this.logger.debug(function(){return"Logging new audio format: "+Z.T.info.id}); this.Th.mV(Z)}else{var k=qzK(this.T,w.id,L);this.logger.debug(function(){return"Logging new audio format: "+k.audio.info.id}); this.Th.mV(new ku(k.audio,k.reason))}L?(this.oO=Date.now(),M=this.audioTrack.T.index.Y9(D),this.H_("setAudio",{id:w.id,cmt:D,sq:M}),M>=0&&(w=this.policy.xH?M+1:M,this.policy.T&&this.SL(!0,"mosaic"),rbk(this.audioTrack,w,NaN,NaN),!this.policy.Wd&&this.r9.isLive&&zH(this.r9,w,!1))):this.Th.nG()}}; g.y.setPlaybackRate=function(w){w!==this.B.getPlaybackRate()&&this.B.setPlaybackRate(w)}; g.y.sK=function(w){var D=this.V.G;this.V.rG(w);this.H_("scfidc",{curr:Jo(D),"new":Jo(w)});w&&Jo(w)!==Jo(D)&&(this.SL(!0,"caption change"),this.Ju())}; g.y.pY=function(w){this.V.Zu(w)}; g.y.ZR=function(w){var D=w.T.info.XX();this.logger.debug(function(){return"New "+(D?"audio":"video")+" format from SABR: "+D0(w.T.info)}); D?this.Th.mV(w):pRI(this.Th,w)}; g.y.IF=function(w){wg(w.uW[w.uW.length-1])&&CgI(this,rcx(this.T,w.uW[0].T))}; g.y.u8=function(){return this.Th.u8()}; g.y.Gi=function(){return this.Th.Gi()}; g.y.bB=function(w){this.Th.X().gW()&&this.H_("sps",{status:w.ey||""});if(w.ey===1)this.Th.videoData.M7=0;else if(w.ey===2||w.ey===3){var D=!1;if(w.ey===3){D=this.Th.Rb();var M;this.Qi=(M=w.wd5)!=null?M:Infinity;this.Th.videoData.M7=D+1;(D=y6r(this))&&this.lf(!0)}this.Th.oS(!0,D)}}; g.y.De=function(){return this.Th.De()}; g.y.ew=function(){return this.Th.ew()}; g.y.Z8=function(w){this.Th.Z8(w)}; g.y.Coc=function(){var w,D=(w=this.Th.ij())==null?void 0:w.getCurrentTime();D?this.Th.H_("rms",{cta:D}):g.S3(this.Is)}; g.y.Ju=function(){YHk(this);if(this.v_&&dk(this.v_)&&!this.v_.wV()&&(!this.policy.W_||isFinite(this.getCurrentTime()))){var w=eh(this.videoTrack);w=this.policy.IE&&w&&w.wK();this.r9.isManifestless&&this.r9.D&&uc(this.r9)?(this.Y=uc(this.r9),this.v_.OM(this.Y)):Py(this.r9)&&!w?isNaN(this.Y)?(this.Y=this.getCurrentTime()+3600,this.v_.OM(this.Y)):this.Y<=this.getCurrentTime()+1800&&(this.Y=Math.max(this.Y+1800,this.getCurrentTime()+3600),this.v_.OM(this.Y)):this.v_.isView||(w=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.Y)||this.Y!==w)&&w>0&&(this.v_.OM(w),this.Y=w))}if(!this.xt())if(TH(this.r9)&&this.r9.NR()){var D=this.r9;this.handleError("manifest.net.retryexhausted",D.EL?{rc:D.Qy}:{rc:D.Qy.toString()},1)}else if(this.policy.T)a:{try{r0x(this.V);this.r9.isManifestless&&this.policy.W&&lz(this.lr);var M;((M=this.v_)==null?0:UP(M))&&this.xG();syR(this.V)}catch(b){g.jn(b);D=b;if(D.message.includes("changeType")){this.H_("ctype",{exp:D.name,msg:D.message,s:D.stack});break a}this.handleError("fmt.unplayable", {exp:D.name,msg:D.message,s:D.stack,trg:"sabrslicerqt"},1)}Fjj(this);g.S3(this.Nd)}else if(!this.r9.V||!umI(this.videoTrack)&&!umI(this.audioTrack)||(this.videoTrack.W||this.audioTrack.W)&&this.policy.TU?M=!1:(this.Ug(),this.Th.seekTo(Infinity,{GD:"checkLoaderTracksSync",GH:!0}),M=!0),!M){YHk(this);this.r9.isManifestless&&(S2K(this.videoTrack),S2K(this.audioTrack),lz(this.lr),(M=Wz(this.videoTrack))&&M.T&&(M=M.T.L&&!this.policy.x8,this.H_(M===this.policy.G.gK?"strm":"strmbug",{strm:M,sfmp4:this.policy.G.gK, dfs:this.policy.x8},!0)));if(this.v_)this.xG();else if(this.policy.D){var L;M=!1;if(this.policy.yI){var Z;w=g.x([this.videoTrack,this.audioTrack]);for(Z=w.next();!Z.done;Z=w.next()){var k=Z.value;for(Z=Wz(k);Z&&k.jy()!==eh(k);Z=Wz(k))k.Qe(Z);M=M||!!Z}}else(D=Wz(this.videoTrack))&&this.videoTrack.Qe(D),(L=Wz(this.audioTrack))&&this.audioTrack.Qe(L);QY(this.videoTrack)&&QY(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(D||L||M)&&QA(this)}wRl(this);Zh(this.W,this.videoTrack, this.videoTrack.T,!1);Zh(this.W,this.audioTrack,this.audioTrack.T,!1);this.policy.WE||EVK(this,this.videoTrack,this.audioTrack);lpx(this.W,this.videoTrack,this.audioTrack);lpx(this.W,this.audioTrack,this.videoTrack);Fjj(this);this.G&&(D=this.G,D.D?(L=D.Y+D.policy.r0,D.L||(L=Math.min(L,D.startTimeSecs+D.policy.Ji)),D=Math.max(0,L*1E3-Date.now())):D=NaN,isNaN(D)||g.S3(this.uj,D));g.S3(this.Nd)}}; g.y.dk=function(w){this.Th.dk(w)}; g.y.xG=function(){var w=this;if(this.v_){var D=this.v_.T,M=this.v_.V;SEJ(this,this.audioTrack);SEJ(this,this.videoTrack);var L=hrx(this);if(L){if(this.policy.UZ){if(!D.uH()){var Z=Wz(this.audioTrack);if(Z){if(!LU(this,this.audioTrack,D,Z.info))return;iiS(this,this.audioTrack,D,Z)}}if(!M.uH()&&(Z=Wz(this.videoTrack))){if(!LU(this,this.videoTrack,M,Z.info))return;iiS(this,this.videoTrack,M,Z)}}this.V7||(this.V7=(0,g.IC)(),this.logger.debug(function(){return"Appends pause start "+w.V7+" reason "+L}), this.policy.L&&this.H_("apdps",{r:L}))}else if(this.V7&&(Wjr(this,this.V7),this.V7=0),tgK(this),Z=!1,xIr(this,this.videoTrack,M)&&(Z=!0,brl(this.timing),EgK(this.timing)),this.v_&&!this.v_.VL()&&(xIr(this,this.audioTrack,D)&&(Z=!0,Yzk(this.timing),pyI(this.timing)),!this.xt()&&this.v_))!this.policy.TC&&QY(this.videoTrack)&&QY(this.audioTrack)&&dk(this.v_)&&!this.v_.wV()&&(M=!1,M=eh(this.audioTrack).T,M=M===this.r9.T[M.info.id])&&(this.logger.debug("Setting EOS"),rPK(this.v_),GvN(this.schedule),this.Ag("e")), Z&&!this.v_.isAsync()&&QA(this)}}; g.y.Ag=function(w){if(this.r9.isManifestless){var D=this.videoTrack.T;if(D){var M=D.index.EV(),L=-1,Z=-1;D.index instanceof tc&&(L=D.index.dB(),Z=D.index.Iw());this.Th.Ag(w,M,L,Z)}}}; g.y.K8=function(w){var D,M=w===((D=this.v_)==null?void 0:D.T)?this.audioTrack:this.videoTrack,L;if((L=Wz(M))==null?0:L.isLocked){if(this.Th.X().gW()){var Z;this.H_("eosl",{ounlock:(Z=Wz(M))==null?void 0:Z.info.PA()})}var k;oVx(this,w===((k=this.v_)==null?void 0:k.T))}var b;if(this.policy.Nr&&w===((b=this.v_)==null?void 0:b.T)&&this.iW){D=this.iW-this.getCurrentTime();var C;this.Th.H_("asl",{l:D,xtag:(C=eh(this.audioTrack))==null?void 0:C.T.info.T});this.pV=!1;this.iW=0}w.X$()&&w.O4().length===0&& (w.rU(),this.v_&&!this.v_.X$()&&(this.Th.X().gW()&&this.Th.H_("rms",{ld:"seek"}),this.v_.Y=performance.now(),this.Th.sG(),this.Th.X().gW()&&g.S3(this.Is)));var l;(l=M.B)!=null&&yY(l,0);this.policy.FQ?diN(this):this.Ju()}; g.y.y1E=function(w){if(this.v_){var D=eh(w===this.v_.T?this.audioTrack:this.videoTrack);if(w=w.r8())for(var M=0;M5&&C.y7.shift();D=D.g9;var l;if((l=this.Th.getVideoData())==null?0:l.enableServerStitchedDai)l=KJS(this.audioTrack,D),M=KJS(this.videoTrack,D),l!==0&&M!==0&&l!==M&&this.handleError("ssdai.avsync",{sq:D,a:l,v:M},0)}}; g.y.B3=function(w,D,M,L){w.info.video&&this.L.B3(D,M,L)}; g.y.P8=function(w){this.T.P8(w)}; g.y.pZ=wR(12);g.y.AG=function(){if(g.z(this.Th.getPlayerState(),8)){var w,D,M=(D=(w=this.Th.ij())==null?void 0:w.getCurrentTime())!=null?D:this.Th.getCurrentTime(),L;(L=this.mu)==null||DyG(L,M)}var Z;(Z=this.Sb)==null||g.S3(Z)}; g.y.CE=function(){return this.videoTrack.G||this.audioTrack.G}; g.y.seek=function(w,D){if(this.xt())return FW();if(this.CE())return FW("seeking to head");if(this.policy.y7&&!isFinite(w))return TfT(this.lr),g.nv(Infinity);YHk(this);Wwa(this);this.policy.T||wRl(this,w);this.v_&&this.v_.T&&this.v_.V&&!this.Th.getVideoData().Xc&&(this.v_.T.isLocked()||this.v_.V.isLocked())&&this.Th.nG({reattachOnLockedBuffer:1,vsb:""+this.v_.V.isLocked(),asb:""+this.v_.T.isLocked()});var M=this.getCurrentTime(),L=this.lr.seek(w,D);if(!this.policy.W_||this.policy.NC)this.currentTime= L;L9(this.L,w,M,this.policy.NI&&!D.cq);QA(this);return g.nv(L)}; g.y.MV=function(w){return this.policy.T&&this.V.MV(w)}; g.y.bX=function(w){return this.V.bX(w)}; g.y.SL=function(w,D){this.V.SL(w,D)}; g.y.getCurrentTime=function(){if(this.policy.W_){var w=this.jb()||0;return this.Th.getCurrentTime(!0)-w}return this.currentTime}; g.y.zx=function(){return this.audioTrack.T.info}; g.y.pG=function(){return this.videoTrack.T.info}; g.y.Ul=function(){return this.audioTrack.T.info.RJ}; g.y.mM=function(){return this.videoTrack.T.info.RJ}; g.y.oJ=function(){try{this.XG(),kf(this.audioTrack),kf(this.videoTrack),A8(this.audioTrack),A8(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.X.prototype.oJ.call(this)}catch(w){g.HL(w)}}; g.y.handleError=function(w,D,M){M=M===void 0?0:M;var L=hF(M);w==="fmt.unplayable"&&this.r9.isLive&&(this.policy.UZ=!1,Jc(this.r9));D=new g.W_(w,D,M);g.br(this);pH(D.details);this.Th.handleError(D);w!=="html5.invalidstate"&&D.errorCode!=="fmt.unplayable"&&w!=="fmt.unparseable"&&L&&this.dispose()}; g.y.qC=function(){var w=eh(this.audioTrack),D=eh(this.videoTrack);w={lct:this.getCurrentTime().toFixed(3),lsk:this.lr.isSeeking(),lmf:this.T.T.isLocked(),lbw:Jb(this.schedule).toFixed(3),lhd:S1(this.schedule).toFixed(3),lst:((this.schedule.G.Td()||0)*1E9).toFixed(3),laa:w?w.PA():"",lva:D?D.PA():"",lar:this.audioTrack.V?this.audioTrack.V.PA():"",lvr:this.videoTrack.V?this.videoTrack.V.PA():"",laq:""+J8(this.audioTrack),lvq:""+J8(this.videoTrack)};this.v_&&!this.v_.VL()&&this.v_.T&&this.v_.V&&(w.lab= L5(this.v_.T.O4()),w.lvb=L5(this.v_.V.O4()));this.V7&&(w.lapt=((0,g.IC)()-this.V7).toFixed(0),w.lapr=hrx(this));this.Md&&(w.lapmabht=((0,g.IC)()-this.Md).toFixed(0),w.lapmabh=Yf(this,this.audioTrack).toFixed(0));this.XE&&(w.lapmvbht=((0,g.IC)()-this.XE).toFixed(0),w.lapmvbh=Yf(this,this.videoTrack).toFixed(0));this.jk&&(w.lapsdai=((0,g.IC)()-this.jk).toFixed(0));return w}; g.y.Ug=function(){try{this.policy.T&&this.V.SL(!1,"pending"),this.audioTrack.Ug(),this.videoTrack.Ug()}catch(w){g.HL(w)}this.policy.D=""}; g.y.yr=function(){return Ki(this.B)}; g.y.H_=function(w,D,M){this.Th.H_(w,D,M===void 0?!1:M)}; g.y.eJ=function(){return this.Th.eJ()}; g.y.GH=function(w,D){w/=D;isNaN(this.timestampOffset)&&Qek(this,w-Math.min(w,this.policy.dF));return(w-this.timestampOffset)*D}; g.y.jb=function(){return this.timestampOffset}; g.y.isSeeking=function(){return this.lr.isSeeking()}; g.y.Uy=function(){this.L.Uy()}; g.y.J3=function(w,D,M){D=D===void 0?!1:D;M=M===void 0?{}:M;this.policy.T?this.D.J3(w,D,M):this.T.J3(w,D,M)}; g.y.HC=function(w,D){if(this.policy.V&&this.policy.PX&&(this.Pq||this.isSeeking()))return this.H_("sdai",{ignoreSkip:"1",isSkip:this.Pq,isSeek:this.isSeeking(),t:w.toFixed(3)}),!1;if(this.U&&this.L.HC(w,this.U)){this.policy.V&&this.policy.PX&&(this.H_("sdai",{skipAdStd:"1"}),this.Pq=!0);if(this.policy.EL&&this.policy.V){var M=this.videoTrack.T.index.Y9(w),L;(L=this.c_)==null||L.EQ(w,M)}Qek(this,this.timestampOffset-D);QA(this);this.policy.V&&(Jc(this.r9),A8(this.audioTrack),A8(this.videoTrack),this.Ug()); return!0}D=this.videoTrack.T.index.Y9(w);this.handleError("ad.skipfailed",{dec:!!this.U,t:w.toFixed(3),sq:D});return!1}; g.y.getManifest=function(){return this.r9}; g.y.isOffline=function(){return!!this.Th.getVideoData().cotn}; g.y.e0=function(w,D){this.Th.e0(w,D)}; g.y.jL=function(w){if(this.policy.T)this.V.SL(!0,"utc"),this.Ju();else{var D=this.Th.getVideoData().Ss;if(D){var M=this.W;M.Ns=w;M.Ss=D;b6(this)}}}; g.y.Mh=function(w){this.videoTrack.G=!1;this.audioTrack.G=!1;this.lr.T=!1;this.Th.Mh(w)}; g.y.YM=function(w){this.lr.YM(w-this.jb())}; g.y.EW=function(){this.Th.EW()}; g.y.lf=function(w){w!==this.policy.oT&&((this.policy.oT=w)||this.Ju())}; g.y.nG=function(w){this.Th.nG(w)}; g.y.JB=function(w){this.Th.JB(w)}; g.y.bu=function(w,D,M){var L;(L=this.c_)==null||L.bu(w,D,M)}; g.y.Bh=function(w,D){var M;(M=this.c_)==null||M.Bh(w,D)}; g.y.Rb=function(){return this.Th.Rb()}; g.y.Kb=function(w,D){if(this.policy.Jc){var M;(M=this.c_)==null||M.Kb(w,D,this.U||void 0)}};g.y=g.kL.prototype;g.y.Tz=function(w,D,M,L,Z,k){return this.j2.Tz(w,D,M,L,Z,k)}; g.y.NO=function(w,D,M,L,Z,k){return this.j2.NO(w,D,M,L,Z,k)}; g.y.SB=function(w){return this.j2.SB(w)}; g.y.kf=function(w){this.j2.kf(w)}; g.y.ke=function(w,D,M,L){return this.j2.ke(w,D,M,L)}; g.y.Uy=function(){this.j2.Uy()}; g.y.EQ=function(w,D){this.j2.EQ(w,D)}; g.y.V3=function(){this.j2.V3()}; g.y.MS=wR(56);g.y.hH=function(w,D,M){this.j2.hH(w,D,M)}; g.y.Jo=wR(59);g.y.CY=function(w,D,M,L,Z,k,b,C,l){this.j2.CY(w,D,M,L,Z,k,b,C,l)}; g.y.gD=function(w){this.j2.gD(w)}; g.y.Fr=function(w){return this.j2.Fr(w)}; g.y.Np=function(w){return this.j2.Np(w)}; g.y.hR=function(w){return this.j2.hR(w)};g.I(bm,g.mI);g.I(YL,bm);YL.prototype.Y=function(w,D){if(w&&D){var M=Number(NM(w,"cpi"))*1+1;isNaN(M)||M<=0||Mthis.L&&(this.L=M,g.WD(this.T)||(this.T={},this.D.stop(),this.V.stop())),this.T[D]=w,g.S3(this.V))}}; YL.prototype.W=function(){for(var w=g.x(Object.keys(this.T)),D=w.next();!D.done;D=w.next()){var M=D.value;D=this.publish;for(var L=this.L,Z=g.lX(this.T[M]),k=[],b=g.x(Z[6].split("&")),C=b.next();!C.done;C=b.next())C=C.value,C.indexOf("cpi=")===0?k.push("cpi="+L.toString()):C.indexOf("ek=")===0?k.push("ek="+g.og(M)):k.push(C);Z[6]="?"+k.join("&");M="skd://"+Z.slice(2).join("");Z=M.length*2;L=new Uint8Array(Z+4);L[0]=Z%256;L[1]=(Z-L[0])/256;for(Z=0;Z0)for(var M=g.x(this.T),L=M.next();!L.done;L=M.next())if(D===L.value.info.cryptoPeriodIndex){D=!0;break a}D=!1}if(!D){D=(0,g.IC)();a:{M=w.cryptoPeriodIndex;if(!isNaN(M)){L=g.x(this.L.values());for(var Z=L.next();!Z.done;Z=L.next())if(Math.abs(Z.value.cryptoPeriodIndex-M)<=1){M=!0;break a}}M=!1}M?(M=w.T,M=Math.max(0,Math.random()*((isNaN(M)?120:M)-30))*1E3):M=0;this.publish("log_qoe",{wvagt:"delay."+M,cpi:w.cryptoPeriodIndex,reqlen:this.T.length}); M<=0?P6C(this,w):(this.T.push({time:D+M,info:w}),g.S3(this.V,M))}}; CU.prototype.oJ=function(){this.T=[];bm.prototype.oJ.call(this)};var Uw={},wwC=(Uw.DRM_TRACK_TYPE_AUDIO="AUDIO",Uw.DRM_TRACK_TYPE_SD="SD",Uw.DRM_TRACK_TYPE_HD="HD",Uw.DRM_TRACK_TYPE_UHD1="UHD1",Uw);g.I(m4r,g.X);g.I(Mol,g.mI);g.y=Mol.prototype;g.y.fW=function(w){var D=this;if(!(this.xt()||w.size<=0)){var M={};w.forEach(function(L,Z){var k=ZO(D.V)?Z:L;Z=new Uint8Array(ZO(D.V)?L:Z);ZO(D.V)&&yHR(Z);L=g.oJ(Z,4);yHR(Z);Z=g.oJ(Z,4);D.T[L]?D.T[L].status=k:D.T[Z]?D.T[Z].status=k:D.T[L]={type:"",status:k};iUI(D,D.T[L].type,M)}); tor(this,",");lm(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.y.error=function(w,D,M,L){this.xt()||(this.publish("licenseerror",w,D,M,L),w==="drm.provision"&&(w=(Date.now()-this.Y)/1E3,this.Y=NaN,this.publish("ctmp","provf",{et:w.toFixed(3)})));hF(D)&&this.dispose()}; g.y.shouldRetry=function(w,D){return!w&&this.requestNumber===D.requestNumber}; g.y.oJ=function(){this.T={};g.mI.prototype.oJ.call(this)}; g.y.qC=function(){var w={ctype:this.U.contentType||"",length:this.U.initData.length,requestedKeyIds:this.nV,cryptoPeriodIndex:this.cryptoPeriodIndex};this.L&&(w.keyStatuses=this.T);return w}; g.y.getInfo=function(){var w=this.D.join();if(E7(this)){var D=new Set,M;for(M in this.T)this.T[M].status!=="usable"&&D.add(this.T[M].type);w+="/UKS."+Array.from(D)}return w+="/"+this.cryptoPeriodIndex}; g.y.M8=function(){return this.url};g.I(Ww,g.X);g.y=Ww.prototype;g.y.cQ=function(w){if(this.W){var D=w.messageType||"license-request";this.W(new Uint8Array(w.message),D)}}; g.y.fW=function(){this.G&&this.G(this.T.keyStatuses)}; g.y.onClosed=function(){this.xt()||g.Bo("xboxone")&&this.L&&this.L("closedShouldNotRetry")}; g.y.AK=function(w){this.W&&this.W(w.message,"license-request")}; g.y.Ba=function(w){if(this.L){if(this.V){var D=this.V.error.code;w=this.V.error.systemCode}else D=w.errorCode,w=w.systemCode;this.L("t.prefixedKeyError;c."+D+";sc."+w,D,w)}}; g.y.sN=function(){this.Y&&this.Y()}; g.y.update=function(w){var D=this;if(this.T)return this.T.update(w).then(null,KP(function(M){UEJ(D,"t.update",M)})); this.V?this.V.update(w):this.element.addKey?this.element.addKey(this.U.keySystem,w,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.U.keySystem,w,this.initData,this.sessionId);return gz()}; g.y.oJ=function(){this.T&&(this.B?this.T.close().catch(g.jn):this.T.close());this.element=null;g.X.prototype.oJ.call(this)};g.I(hH,g.X);g.y=hH.prototype;g.y.setServerCertificate=function(){return this.V.setServerCertificate?this.T.flavor==="widevine"&&this.T.C7?this.V.setServerCertificate(this.T.C7):Yt(this.T)&&this.T.jk?this.V.setServerCertificate(this.T.jk):null:null}; g.y.createSession=function(w,D){var M=w.initData;if(this.T.keySystemAccess){D&&D("createsession");var L=this.V.createSession();b3(this.T)?M=HUG(M,this.T.jk):Yt(this.T)&&(M=VXx(M)||new Uint8Array(0));D&&D("genreq");w=L.generateRequest(w.contentType,M);var Z=new Ww(null,null,null,L,null,this.G);w.then(function(){D&&D("genreqsuccess")},KP(function(b){UEJ(Z,"t.generateRequest",b)})); return Z}if(Lg(this.T))return gLr(this,M);if(kt(this.T))return jOG(this,M);if((L=this.element)==null?0:L.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,M);else{var k;(k=this.element)==null||k.webkitGenerateKeyRequest(this.T.keySystem,M)}return this.D=new Ww(this.element,this.T,M,null,null,this.G)}; g.y.Yj=function(w){var D=RYJ(this,w);D&&D.AK(w)}; g.y.aD=function(w){var D=RYJ(this,w);D&&D.Ba(w)}; g.y.C8=function(w){var D=RYJ(this,w);D&&D.sN(w)}; g.y.getMetrics=function(){var w=null;if(this.V&&this.V.getMetrics)try{w=this.V.getMetrics()}catch(D){}return w}; g.y.oJ=function(){this.L=this.V=null;var w;(w=this.D)==null||w.dispose();w=g.x(Object.values(this.Y));for(var D=w.next();!D.done;D=w.next())D.value.dispose();this.Y={};g.X.prototype.oJ.call(this);delete this.element};g.y=tH.prototype;g.y.get=function(w){w=this.findIndex(w);return w!==-1?this.values[w]:null}; g.y.remove=function(w){w=this.findIndex(w);w!==-1&&(this.keys.splice(w,1),this.values.splice(w,1))}; g.y.removeAll=function(){this.keys=[];this.values=[]}; g.y.set=function(w,D){var M=this.findIndex(w);M!==-1?this.values[M]=D:(this.keys.push(w),this.values.push(D))}; g.y.findIndex=function(w){return g.IS(this.keys,function(D){return g.zD(w,D)})};g.I(FDK,g.mI);g.y=FDK.prototype;g.y.SBt=function(w){this.M2({onecpt:1});w.initData&&a3J(this,new Uint8Array(w.initData),w.initDataType)}; g.y.Ttc=function(w){this.M2({onndky:1});a3J(this,w.initData,w.contentType)}; g.y.T1=function(w){this.M2({onneedkeyinfo:1});this.mE.C("html5_eme_loader_sync")&&(this.G.get(w.initData)||this.G.set(w.initData,w));sOl(this,w)}; g.y.zS=function(w){this.L.push(w);$L(this)}; g.y.createSession=function(w){var D=cHj(this)?bgk(w):g.oJ(w.initData);this.V.get(D);this.c_=!0;w=new Mol(this.videoData,this.mE,w,this.drmSessionId);this.V.set(D,w);w.subscribe("ctmp",this.lk,this);w.subscribe("keystatuseschange",this.fW,this);w.subscribe("licenseerror",this.W8,this);w.subscribe("newlicense",this.qF,this);w.subscribe("newsession",this.RB,this);w.subscribe("sessionready",this.Dk,this);w.subscribe("fairplay_next_need_key_info",this.QY,this);this.mE.C("html5_enable_vp9_fairplay")&&w.subscribe("qualitychange", this.fM,this);w.subscribe("sabrlicenseconstraint",this.JuW,this);bUN(w,this.D)}; g.y.qF=function(w){this.xt()||(this.M2({onnelcswhb:1}),w&&!this.heartbeatParams&&(this.heartbeatParams=w,this.publish("heartbeatparams",w)))}; g.y.RB=function(){this.xt()||(this.M2({newlcssn:1}),this.L.shift(),this.c_=!1,$L(this))}; g.y.Dk=function(){if(Lg(this.T)&&(this.M2({onsnrdy:1}),this.Jc--,this.Jc===0)){var w=this.y7,D,M;(D=w.element)==null||(M=D.msSetMediaKeys)==null||M.call(D,w.L)}}; g.y.fW=function(w){if(!this.xt()){this.fV||(this.fV=!0,this.mE.gW()&&BoI(this));this.M2({onksch:1});var D=this.fM;if(!E7(w)&&g.XT&&w.V.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var M="large";else{M=[];var L=!0;if(E7(w))for(var Z=g.x(Object.keys(w.T)),k=Z.next();!k.done;k=Z.next())k=k.value,w.T[k].status==="usable"&&M.push(w.T[k].type),w.T[k].status!=="unknown"&&(L=!1);if(!E7(w)||L)M=w.D;M=hYr(M)}D.call(this,M);if(!E7(w))for(D={},M=g.x(w.D),L=M.next();!L.done;L=M.next())iUI(w, L.value,D);this.videoData.authorizedFormats=w.authorizedFormats;this.publish("keystatuseschange",w)}}; g.y.lk=function(w,D){this.xt()||this.publish("ctmp",w,D)}; g.y.QY=function(w,D){this.xt()||this.publish("fairplay_next_need_key_info",w,D)}; g.y.W8=function(w,D,M,L){this.xt()||(this.videoData.C("html5_log_drm_metrics_on_error")&&BoI(this),this.publish("licenseerror",w,D,M,L))}; g.y.pT=function(){return this.U}; g.y.fM=function(w){var D=g.gf("auto",w,!1,"l");if(this.videoData.oT){if(this.U.equals(D))return}else if(l1x(this.U,w))return;this.U=D;this.publish("qualitychange");this.M2({updtlq:w})}; g.y.JuW=function(w){this.videoData.sabrLicenseConstraint=w}; g.y.oJ=function(){this.T.keySystemAccess&&this.element&&(this.nV?this.element.setMediaKeys(null).catch(g.jn):this.element.setMediaKeys(null));this.element=null;this.L=[];for(var w=g.x(this.V.values()),D=w.next();!D.done;D=w.next())D=D.value,D.unsubscribe("ctmp",this.lk,this),D.unsubscribe("keystatuseschange",this.fW,this),D.unsubscribe("licenseerror",this.W8,this),D.unsubscribe("newlicense",this.qF,this),D.unsubscribe("newsession",this.RB,this),D.unsubscribe("sessionready",this.Dk,this),D.unsubscribe("fairplay_next_need_key_info", this.QY,this),this.mE.C("html5_enable_vp9_fairplay")&&D.unsubscribe("qualitychange",this.fM,this),D.dispose();this.V.clear();this.Y.removeAll();this.G.removeAll();this.heartbeatParams=null;g.mI.prototype.oJ.call(this)}; g.y.qC=function(){for(var w={systemInfo:this.T.qC(),sessions:[]},D=g.x(this.V.values()),M=D.next();!M.done;M=D.next())w.sessions.push(M.value.qC());return w}; g.y.getInfo=function(){return this.V.size<=0?"no session":""+this.V.values().next().value.getInfo()+(this.W?"/KR":"")}; g.y.M2=function(w,D){D=D===void 0?!1:D;this.xt()||(pH(w),(this.mE.gW()||D)&&this.publish("ctmp","drmlog",w))};g.I(XwN,g.X);g.y=XwN.prototype;g.y.RY=function(){return!!this.MH}; g.y.g6=function(){return this.V}; g.y.handleError=function(w){var D=this;zYG(this,w);if((w.errorCode!=="html5.invalidstate"&&w.errorCode!=="fmt.unplayable"&&w.errorCode!=="fmt.unparseable"||!JHR(this,w.errorCode,w.details))&&!KDa(this,w)){if(this.P_.y7!=="yt"&&PmN(this,w)&&this.videoData.Ps&&(0,g.IC)()/1E3>this.videoData.Ps&&this.P_.y7==="hm"){var M=Object.assign({e:w.errorCode},w.details);M.stalesigexp="1";M.expire=this.videoData.Ps;M.init=this.videoData.Oa/1E3;M.now=(0,g.IC)()/1E3;M.systelapsed=((0,g.IC)()-this.videoData.Oa)/1E3; w=new g.W_(w.errorCode,M,2);this.Th.Pd(w.errorCode,2,"SIGNATURE_EXPIRED",pH(w.details))}if(hF(w.severity)){var L;M=(L=this.Th.loader)==null?void 0:L.T.T;if(this.P_.C("html5_use_network_error_code_enums"))if(VoC(w)&&M&&M.isLocked())var Z="FORMAT_UNAVAILABLE";else if(this.P_.Y||w.errorCode!=="auth"||w.details.rc!==429)w.errorCode==="ump.spsrejectfailure"&&(Z="HTML5_SPS_UMP_STATUS_REJECTED");else{Z="TOO_MANY_REQUESTS";var k="6"}else VoC(w)&&M&&M.isLocked()?Z="FORMAT_UNAVAILABLE":this.P_.Y||w.errorCode!== "auth"||w.details.rc!=="429"?w.errorCode==="ump.spsrejectfailure"&&(Z="HTML5_SPS_UMP_STATUS_REJECTED"):(Z="TOO_MANY_REQUESTS",k="6");this.Th.Pd(w.errorCode,w.severity,Z,pH(w.details),k)}else this.Th.publish("nonfatalerror",w),L=/^pp/.test(this.videoData.clientPlaybackNonce),this.ZX(w.errorCode,w.details),L&&w.errorCode==="manifest.net.connect"&&(w="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.IC)(),PR(w,"manifest",function(b){D.Y=!0;D.H_("pathprobe",b)}, function(b){D.ZX(b.errorCode,b.details)}))}}; g.y.H_=function(w,D){this.Th.xl.H_(w,D)}; g.y.ZX=function(w,D){D=pH(D);this.Th.xl.ZX(w,D)};im.prototype.mF=function(w){var D=D6S(this);if(!w)return{xJ:$i,Cs:$i,Na:$i,TX:$i,SK:$i,b6:$i,pj:D};var M=$i;if(oh(D)||this.C("html5_perf_cap_override_sticky"))M=hGJ(this,w);return{xJ:M,Cs:Y1N(this,w),Na:kzG(this,w),TX:ttJ(this,w.videoData),SK:$6K(this,w.videoData,w),b6:LsK(this,w),pj:D}}; im.prototype.AU=function(w){if(g.hL(this.mE)&&Ta(this.mE.W,uh.HEIGHT))var D=w.T.videoInfos[0].video.qualityOrdinal;else{var M=this.WD(!!w.T.T);F9(w.videoData)||tW(w.videoData);w=w.T.videoInfos;if(w.length){var L=g.A3(this.mE.experiments,"html5_override_oversend_fraction")||.85,Z=w[0].video;Z.projectionType!=="MESH"&&Z.projectionType!=="EQUIRECTANGULAR"&&Z.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||LN||(L=.45);Z=g.A3(this.mE.experiments,"html5_viewport_undersend_maximum");for(var k=0;k< w.length;k++){D=w[k];var b=D.video;if(M===null||b.width*L=0,stateAtSend:D,joinLatencySecs:k,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:L,playerCanaryStage:Z,isAd:this.provider.videoData.isAd(),liveMode:M,hasDrm:!!g.QQ(this.provider.videoData),isGapless:this.provider.videoData.G,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:ay(this.provider.videoData)};w||g.DD("html5PlayerHealthEvent",D);this.L=!0;this.dispose()}}; IO.prototype.oJ=function(){this.L||this.send();window.removeEventListener("error",this.Pc);window.removeEventListener("unhandledrejection",this.Pc);g.X.prototype.oJ.call(this)}; var f7r=/\bnet\b/;U6T.prototype.update=function(){if(this.G){var w=this.rd()||0,D=g.AR(this.provider);w>=this.provider.Th.getDuration()-.1&&(this.previouslyEnded=!0);if(w!==this.T||H4I(this,w,D)){var M;if(!(M=wD-this.KW+2||H4I(this,w,D))){M=this.provider.Th.getVolume();var L=M!==this.B,Z=this.provider.Th.isMuted()?1:0;Z!==this.U?(this.U=Z,M=!0):(!L||this.D>=0||(this.B=M,this.D=D),M=D-this.D,this.D>=0&&M>2?(this.D=-1,M=!0):M=!1)}M&&(xL(this),this.L=w);this.KW=D;this.T=w}}}; U6T.prototype.rd=function(){var w=this.provider.Th.rd();return this.provider.mE.C("html5_disable_live_dvr_shrink_for_cdm_vss")&&sN(this.provider.videoData)?w+this.provider.Th.jb():w};j$S.prototype.send=function(w){var D=this;if(!this.Nd){var M=RGN(this),L=g.dh(this.uri,M);this.mE.C("vss_through_gel_double")&&oeI(L);this.c_&&!this.mE.C("html5_simplify_pings")?ada(this,L):geK(this,w).then(function(Z){D.c_&&(Z=Z||{},Z.method="POST",Z.postParams={atr:D.attestationResponse});NZG(L,Z,{token:D.V7,Vp:D.TU,mdxEnvironment:D.mdxEnvironment},D.mE,w,D.W_,D.isFinal&&D.kP||D.fV||D.L&&D.QF)}); this.Nd=!0}}; j$S.prototype.V=function(w){w===void 0&&(w=NaN);return Number(w.toFixed(3)).toString()}; var x5={},GzK=(x5.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,x5.LIVING_ROOM_APP_MODE_MAIN=1,x5.LIVING_ROOM_APP_MODE_KIDS=2,x5.LIVING_ROOM_APP_MODE_MUSIC=3,x5.LIVING_ROOM_APP_MODE_UNPLUGGED=4,x5.LIVING_ROOM_APP_MODE_GAMING=5,x5),Nl={},FsK=(Nl.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Nl.EMBEDDED_PLAYER_MODE_DEFAULT=1,Nl.EMBEDDED_PLAYER_MODE_PFP=2,Nl.EMBEDDED_PLAYER_MODE_PFL=3,Nl);g.I(Hw,g.X);Hw.prototype.onProgress=function(){this.T.update();TMT(this)&&(BMr(this),fdK(this))}; Hw.prototype.oJ=function(){g.X.prototype.oJ.call(this);RO(this);x6J(this.T)}; Hw.prototype.qC=function(){return RGN(jo(this,"playback"))}; Hw.prototype.au=function(w){var D=jo(this,"engage");D.nV=w;return neC(D,Vtk(this.provider))};zGr.prototype.isEmpty=function(){return this.endTime===this.startTime};nU.prototype.C=function(w){return this.mE.C(w)}; nU.prototype.getCurrentTime=function(){return this.Th.getCurrentTime()}; nU.prototype.rd=function(){return this.Th.rd()}; var PkT={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.I(g.Ff,g.X);g.y=g.Ff.prototype;g.y.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.zr){var w;(w=this.L.get(this.zr))==null||w.onProgress()}else if(this.T)this.T.onProgress()}; g.y.s1=function(w){this.qoe&&this.qoe.s1(w)}; g.y.B9=wR(29);g.y.AY=wR(35);g.y.iB=function(w,D){this.qoe&&this.qoe.iB(w,D)}; g.y.IN=function(){if(this.provider.videoData.enableServerStitchedDai&&this.zr){var w;(w=this.L.get(this.zr))!=null&&xL(w.T)}else this.T&&xL(this.T.T)}; g.y.ZX=function(w,D){this.qoe&&X$x(this.qoe,w,D);if(this.V)this.V.onError(w)}; g.y.uq=function(w){var D;(D=this.qoe)==null||D.uq(w)}; g.y.onPlaybackRateChange=function(w){if(this.qoe)this.qoe.onPlaybackRateChange(w);this.T&&xL(this.T.T)}; g.y.ea=wR(52);g.y.H_=function(w,D,M){this.qoe&&this.qoe.H_(w,D,M)}; g.y.Bq=function(w,D,M){this.qoe&&this.qoe.Bq(w,D,M)}; g.y.Ck=function(w){var D;(D=this.qoe)==null||D.Ck(w)}; g.y.Er=function(w){var D;(D=this.qoe)==null||D.Er(w)}; g.y.Ag=function(w,D,M,L){var Z;(Z=this.qoe)==null||Z.Ag(w,D,M,L)}; g.y.JB=function(w){this.qoe&&this.qoe.JB(w)}; g.y.rp=function(w,D,M){this.qoe&&this.qoe.rp(w,D,M)}; g.y.nP=wR(23);g.y.hU=function(){if(this.qoe)return this.qoe.hU()}; g.y.qC=function(){if(this.provider.videoData.enableServerStitchedDai&&this.zr){var w,D;return(D=(w=this.L.get(this.zr))==null?void 0:w.qC())!=null?D:{}}return this.T?this.T.qC():{}}; g.y.Eo=function(){var w;return(w=this.qoe)==null?void 0:w.Eo()}; g.y.VP=function(w,D){var M;(M=this.qoe)==null||M.VP(w,D)}; g.y.au=function(w){return this.T?this.T.au(w):function(){}}; g.y.getVideoData=function(){return this.provider.videoData}; g.y.resume=function(){this.qoe&&this.qoe.resume()};g.I(g.s7,g.X);g.y=g.s7.prototype;g.y.bT=function(w,D){this.sync();D&&this.T.array.length>=2E3&&this.Xo("captions",1E4);D=this.T;if(w.length>1&&w.length>D.array.length)D.array=D.array.concat(w),D.array.sort(D.T);else{w=g.x(w);for(var M=w.next();!M.done;M=w.next())M=M.value,!D.array.length||D.T(M,D.array[D.array.length-1])>0?D.array.push(M):g.V1(D.array,M,D.T)}this.L=NaN;this.sync()}; g.y.O0=function(w){w.length>1E4&&g.jn(new g.qA("Over 10k cueRanges removal occurs with a sample: ",w[0]));if(!this.xt()){var D=new Set(w);this.V=this.V.filter(function(M){return!D.has(M)}); pVl(this.T,D);this.sync()}}; g.y.z_=function(w,D){if(!this.xt()){var M=this.ew().find(function(L){return L.id===D&&L.namespace===w}); M&&this.O0([M])}}; g.y.Xo=function(w,D){var M=(isNaN(this.L)?iTS(this):this.L)-D;D=this.ew().filter(function(L){return L.namespace===w&&L.endthis.T,k=g.z(M,8)&&g.z(M,16),b=this.Th.vx().isBackground()||M.isSuspended();um(this,this.bW,k&&!b,Z,"qoe.slowseek",function(){},"timeout"); var C=isFinite(this.T);C=k&&C&&JPl(D,this.T);var l=!L||Math.abs(L-this.T)>10,E=this.mE.C("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),p=L===0&&this.V&&[11,10].includes(this.V);um(this,this.Nd,C&&l&&!b&&(!E||!p),Z,"qoe.slowseek",function(){D.seekTo(w.T)},"set_cmt"); l=C&&kW(D.m5(),this.T);var W=this.Th.loader;C=!W||W.PM();var h=function(){D.seekTo(w.T+.001)}; um(this,this.fV,l&&C&&!b,Z,"qoe.slowseek",h,"jiggle_cmt");C=function(){return w.Th.ZJ()}; um(this,this.Md,l&&!b,Z,"qoe.slowseek",C,"new_elem");var t=f5(M);p=M.isBuffering();var d=D.m5(),N=Z0(d,L),n=N>=0&&d.end(N)>L+5;l=t&&p&&n;E=this.Th.getVideoData();um(this,this.Jc,L<.002&&this.T<.002&&k&&g.hL(this.mE)&&g.Ys(E)&&!b,Z,"qoe.slowseek",C,"slow_seek_shorts");um(this,this.B,E.Xz()&&k&&!b&&!E.V7,Z,"qoe.slowseek",C,"slow_seek_gapless_shorts");um(this,this.y7,l&&!b,t&&!p,"qoe.longrebuffer",h,"jiggle_cmt");um(this,this.V7,l&&!b,t&&!p,"qoe.longrebuffer",C,"new_elem_nnr");if(W){var v=W.getCurrentTime(); k=D.As();k=cPK(k,v);k=!W.isSeeking()&&L===k;um(this,this.oO,t&&p&&k&&!b,t&&!p&&!k,"qoe.longrebuffer",function(){D.seekTo(v)},"seek_to_loader")}k={}; h=Z0(d,Math.max(L-3.5,0));var G=h>=0&&L>d.end(h)-1.1,f=h>=0&&h+1=0&&G&&f<11;k.close2edge=G;k.gapsize=f;k.buflen=d.length;this.V&&(k.seekSour=this.V);um(this,this.nV,t&&p&&!b,t&&!p,"qoe.longrebuffer",function(){},"timeout",k); k=M.isSuspended();k=this.Th.BC()&&!k;um(this,this.G,k,!k,"qoe.start15s",function(){w.Th.F6("ad")},"ads_preroll_timeout"); k=this.mE.experiments.ek("html5_use_playback_rate_in_skip_slow_ad")?this.Th.getPlaybackRate()*1E3:1E3;N=L-this.D5;um(this,this.XE,g.Ys(E)&&W,t&&!p,"qoe.longrebuffer",function(){w.Th.nG()},"reset_media_source"); um(this,this.jk,g.Ys(E)&&W,t&&!p,"qoe.longrebuffer",C,"reset_media_element");this.D===0&&(this.Y=L);W=p&&this.T===0&&L>1&&L===this.Y;um(this,this.W_,g.Ys(E)&&W,t&&!p,"qoe.slowseek",function(){D.seekTo(0)},"reseek_after_time_jump"); b=M.isOrWillBePlaying()&&!b;n=this.Th.hf()-L<6&&!n&&this.Th.Bw();um(this,this.U,E.Xz()&&b&&p&&n,t&&!p,"qoe.longrebuffer",function(){w.Th.ZJ(!1,!0)},"handoff_end_long_buffer_reload"); b=this.V===104||this.Th.u6;M=nL(E)&&E.isAd()&&!E.V7&&b&&(p||g.z(M,8)&&g.z(M,16));um(this,this.EL,M,Z,"qoe.start15s",C,"gapless_ad_slow_start");M=nL(E)&&!E.V7&&b&&l;um(this,this.pV,M,Z,"qoe.longrebuffer",C,"gapless_slow_start");this.D=L;this.W.start()}}; Tt.prototype.ZX=function(w,D,M){D=this.qC(D);D.wn=M;D.wdup=this.L[w]?"1":"0";this.Th.ZX(new g.W_(w,D));this.L[w]=!0}; Tt.prototype.qC=function(w){w=Object.assign(this.Th.qC(!0),w.qC());this.T&&(w.stt=this.T.toFixed(3));this.Th.getVideoData().isLivePlayback&&(w.ct=this.Th.getCurrentTime().toFixed(3),w.to=this.Th.jb().toFixed(3));delete w.uga;delete w.euri;delete w.referrer;delete w.fexp;delete w.vm;return w}; Xf.prototype.reset=function(){this.T=this.V=this.L=this.startTimestamp=0;this.D=!1}; Xf.prototype.test=function(w){if(!this.W||this.V)return!1;if(!w)return this.reset(),!1;w=(0,g.IC)();if(!this.startTimestamp)this.startTimestamp=w,this.L=0;else if(this.L>=this.W)return this.V=w,!0;this.L+=1;return!1}; Xf.prototype.qC=function(){var w={},D=(0,g.IC)();this.startTimestamp&&(w.wsd=(D-this.startTimestamp).toFixed());this.V&&(w.wtd=(D-this.V).toFixed());this.T&&(w.wssd=(D-this.T).toFixed());return w};g.I(cqS,g.X);g.y=cqS.prototype;g.y.setMediaElement=function(w){(this.mediaElement=w)?(this.mediaElement&&(this.W||this.L||!this.mediaElement.RS()||this.seekTo(.01,{GD:"seektimeline_setupMediaElement"})),So(this)):JH(this)}; g.y.getCurrentTime=function(w){w=w===void 0?!1:w;if(Qo(this.Th)){if(this.C("html5_use_centralized_player_time")&&!w&&!isNaN(this.Y))return this.Y;if(!isNaN(this.V))return this.V}else{if(this.C("html5_use_centralized_player_time")&&!w&&!isNaN(this.Y)&&isFinite(this.Y))return this.Y;if(!isNaN(this.V)&&isFinite(this.V))return this.V}return this.mediaElement&&OTK(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.L||0}; g.y.BB=function(){return this.EL}; g.y.rd=function(){return this.getCurrentTime()-this.jb()}; g.y.vy=function(){return this.T?this.T.vy():Infinity}; g.y.isAtLiveHead=function(w){if(!this.T)return!1;w===void 0&&(w=this.getCurrentTime());return qE(this.T,w)}; g.y.nW=function(){return!!this.T&&this.T.nW()}; g.y.seekTo=function(w,D){var M=D===void 0?{}:D;D=M.Zc===void 0?!1:M.Zc;var L=M.W2===void 0?0:M.W2;var Z=M.zO===void 0?!1:M.zO;var k=M.LM===void 0?0:M.LM;var b=M.GD===void 0?"":M.GD;var C=M.seekSource===void 0?void 0:M.seekSource;var l=M.GH===void 0?!1:M.GH;var E=M.cq===void 0?!1:M.cq;M=M.hS===void 0?!1:M.hS;l&&(w+=this.jb());ay(this.videoData)&&C===29&&(this.EL=void 0);l=w=this.T3())||!g.mm(this.videoData),N||(n={st:n,mst:this.T3()},this.T&&this.C("html5_high_res_seek_logging")&&(n.ht=this.T.vy(),n.adft=fU(this.T)),this.Th.H_("seeknotallowed",n)),n=N));if(!n)return this.D&&(this.D=null,zcl(this)),g.nv(this.getCurrentTime());n=.005;E&&this.C("html5_sabr_seek_no_shift_tolerance")&&(n=0);if(Math.abs(w-this.V)<=n&&this.W_)return this.W;b&&(n=w,this.mE.gW()||this.C("html5_log_seek_reasons"))&& (b={reason:b,tgt:n},this.C("html5_sabr_csdai_seek_log")&&(b.source=C),this.Th.H_("seekreason",b));C&&(this.y7.V=C);this.W_&&JH(this);this.W||(this.W=new HF);w&&!isFinite(w)&&rqr(this,!1);(b=M||l)||(b=w,b=!(this.videoData.isLivePlayback&&this.videoData.L&&!this.videoData.L.T&&!(this.mediaElement&&this.mediaElement.K7()>0&&gk(this.mediaElement)>0)||qQ(this.videoData)&&this.BA()===this.T3(!1)?0:isFinite(b)||!qQ(this.videoData)));b||(w=Vo(this,w,Z));w&&!isFinite(w)&&rqr(this,!1);this.C("html5_use_centralized_player_time")? this.Y=w:this.V=this.L=w;this.XE=k;this.G=0;this.T&&(Z=this.T,k=w,nXT(Z,k,!1),FbK(Z,k));Z=this.Th;k=w;b={Zc:D,seekSource:C};Z.xA.L=k;M=Z.Nv;M.mediaTime=k;M.T=!0;b.Zc&&Z.Vl(b);b=k>Z.videoData.endSeconds&&k>Z.videoData.limitedPlaybackDurationInSeconds;Z.fL&&b&&isFinite(k)&&RAC(Z);kD.start&&RAC(this.Th);return this.W}; g.y.T3=function(w){if(!this.videoData.isLivePlayback)return this.Th.videoData.T3();var D;return U9(this.videoData)&&((D=this.mediaElement)==null?0:D.isPaused())&&this.videoData.T?(w=this.getCurrentTime(),DeK(this.mj(w)*1E3)+w):this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&ay(this.videoData)&&this.videoData.T?w?this.videoData.T.nV||0:this.videoData.T.o$||0:qQ(this.videoData)&&this.videoData.nV&&this.videoData.T?this.videoData.T.T3()+this.timestampOffset:this.videoData.L&&this.videoData.L.T? !w&&this.T?this.T.vy():this.Th.videoData.T3()+this.timestampOffset:this.mediaElement?rz()?DeK(this.mediaElement.x4().getTime()):gk(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.y.BA=function(){if(this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&ay(this.videoData)){var w;return((w=this.videoData.T)==null?void 0:w.GR)||0}w=this.videoData?this.videoData.BA()+this.timestampOffset:this.timestampOffset;if(U9(this.videoData)&&this.videoData.T){var D,M=Number((D=this.videoData.progressBarStartPosition)==null?void 0:D.utcTimeMillis)/1E3;if(this.C("html5_unify_utc_media_time_calculation")){if(!isNaN(M)&&(M=this.b3(M),!isNaN(M)))return Math.max(w,M)}else if(D=this.getCurrentTime(), D=this.mj(D)-D,!isNaN(M)&&!isNaN(D))return Math.max(w,M-D)}return w}; g.y.sG=function(){this.W||this.seekTo(this.L,{GD:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.y.CE=function(){return this.W_&&!isFinite(this.V)}; g.y.oJ=function(){ecj(this,null);this.y7.dispose();g.X.prototype.oJ.call(this)}; g.y.qC=function(){var w={};this.loader&&Object.assign(w,this.loader.qC());this.mediaElement&&Object.assign(w,this.mediaElement.qC());return w}; g.y.nC=function(w){this.timestampOffset=w}; g.y.getStreamTimeOffset=function(){return qQ(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.y.jb=function(){return this.timestampOffset}; g.y.mj=function(w){return this.videoData&&this.videoData.T?this.videoData.T.mj(w-this.timestampOffset):NaN}; g.y.sy=function(){if(!this.mediaElement)return 0;if(A0(this.videoData)){var w=this.mediaElement,D=w.m5();w=(C5(D)&&w.getDuration()?D.end(D.length-1):0)+this.timestampOffset-this.BA();D=this.T3()-this.BA();return Math.max(0,Math.min(1,w/D))}return this.mediaElement.sy()}; g.y.mV=function(w){this.U&&(this.U.T=w)}; g.y.jL=function(w,D){this.Th.H_("requestUtcSeek",{time:w});ay(this.videoData)&&(this.EL=w);var M;(M=this.loader)==null||M.jL(w);D&&(this.c_=D)}; g.y.Mh=function(w){ay(this.videoData)&&(this.EL=void 0);if(this.c_)this.Th.H_("utcSeekingFallback",{source:"streamTime",timeSeconds:this.c_}),this.Th.seekTo(this.c_,{GD:"utcSeekingFallback_streamTime"}),this.c_=0;else{if(this.C("html5_unify_utc_media_time_calculation")){var D=this.b3(w);if(isNaN(D))return}else{D=this.getCurrentTime();if(isNaN(D))return;w=this.mj(D)-w;D-=w}this.Th.H_("utcSeekingFallback",{source:"estimate",timeSeconds:D});this.Th.seekTo(D,{GD:"utcSeekingFallback_estimate"})}}; g.y.EW=function(){this.c_=0}; g.y.b3=function(w){var D=this.getCurrentTime();if(isNaN(D))return NaN;var M=this.mj(D);return isNaN(M)?NaN:w-(M-D)}; g.y.C=function(w){return this.mE&&this.mE.C(w)};g.I(Pw,g.X);Pw.prototype.start=function(){this.V.start()}; Pw.prototype.stop=function(){this.V.stop()}; Pw.prototype.clear=function(){for(var w=g.x(this.T.values()),D=w.next();!D.done;D=w.next())D.value.clear()}; Pw.prototype.sample=function(){for(var w=g.x(this.L),D=w.next();!D.done;D=w.next()){var M=g.x(D.value);D=M.next().value;M=M.next().value;this.T.has(D)||this.T.set(D,new MxC(qhr.has(D)));this.T.get(D).update(M())}this.V.start()}; var qhr=new Set(["networkactivity"]);MxC.prototype.update=function(w){this.V?(this.buffer.add(w-this.T||0),this.T=w):this.buffer.add(w)}; MxC.prototype.clear=function(){this.buffer.clear();this.T=0};mD.prototype.Wq=function(){return this.started}; mD.prototype.start=function(){this.started=!0}; mD.prototype.reset=function(){this.finished=this.started=!1};var Yqj=!1;g.I(g.M6,g.mI);g.y=g.M6.prototype;g.y.oJ=function(){this.logger.debug("dispose");g.p7(this.Nz);eYk(this.uo);this.visibility.unsubscribe("visibilitystatechange",this.uo);wVr(this.xl);g.M9(this.xl);ke(this);g.vf.JH(this.Z3);this.Mm();this.Zr=null;g.M9(this.videoData);g.M9(this.f7);g.M9(this.lQ);g.M9(this.Iv);g.Ls(this.p_9);this.fL=null;g.mI.prototype.oJ.call(this)}; g.y.rp=function(w,D,M,L,Z){if(this.mE.C("html5_log_ad_playback_docid")){var k=this.xl;if(k.qoe){k=k.qoe;var b=this.mE.y7||"yt";g.OE(k,g.AR(k.provider),"ad_playback",[w,D,M,Z,b])}}else this.xl.rp(w,D,M);this.C("html5_log_media_perf_info")&&this.H_("adloudness",{ld:L.toFixed(3),cpn:w})}; g.y.Ul=function(){var w;return(w=this.loader)==null?void 0:w.Ul()}; g.y.mM=function(){var w;return(w=this.loader)==null?void 0:w.mM()}; g.y.pG=function(){var w;return(w=this.loader)==null?void 0:w.pG()}; g.y.zx=function(){var w;return(w=this.loader)==null?void 0:w.zx()}; g.y.Ms=function(){return this.videoData.Ms()}; g.y.tf=function(){return this.C("html5_not_reset_media_source")&&!this.Ms()&&!this.videoData.isLivePlayback&&g.Ys(this.videoData)&&!this.mE.supportsGaplessShorts()}; g.y.UK=function(){this.videoData.G&&(this.videoData.Ts=this.videoData.Ts||this.vA.IJ().Ul(),this.videoData.yA=this.videoData.yA||this.vA.IJ().mM());if(u5I(this.videoData)||!yP(this.videoData)){var w=this.videoData.errorDetail;this.Pd(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),w,w,this.videoData.hd||void 0)}this.C("html5_generate_content_po_token")&&this.eC();this.C("html5_enable_d6de4")&&this.sJ()}; g.y.getVideoData=function(){return this.videoData}; g.y.X=function(){return this.mE}; g.y.mF=function(){return this.ZK.mF(this.Zr)}; g.y.vx=function(){return this.visibility}; g.y.Bi=function(){return this.mediaElement&&this.mediaElement.bv()?this.mediaElement.Dv():null}; g.y.ij=function(){return this.mediaElement}; g.y.rg=function(){if(this.videoData.errorCode)return!1;this.X().Y&&this.X().houseBrandUserStatus&&this.H_("hbut",{status:this.X().houseBrandUserStatus},!0);if(this.videoData.q8())return!0;this.Pd("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.y.uu=function(w){(w=w===void 0?!1:w)||O4T(this.xl);this.DP=w;!this.rg()||this.FN.Wq()?g.hL(this.mE)&&this.videoData.isLivePlayback&&this.FN.Wq()&&!this.FN.finished&&!this.DP&&this.BJ():(this.FN.start(),w=this.xl,g.AR(w.provider),w.qoe&&rWC(w.qoe),this.BJ())}; g.y.BJ=function(){if(this.videoData.isLoaded()){var w=this.f7;g.A3(w.P_.experiments,"html5_player_min_build_cl")>0&&g.A3(w.P_.experiments,"html5_player_min_build_cl")>797107798&&OUK(w,"oldplayer");NuT(this)}else this.videoData.wI||this.videoData.Km?this.DP&&g.hL(this.mE)&&this.videoData.isLivePlayback||(this.videoData.wI?R0k(this.videoData):(w=this.xl,w.qoe&&(w=w.qoe,D3(w,"protected"),w.provider.videoData.W?w.xi():w.provider.videoData.subscribe("dataloaded",w.xi,w)),NNJ(this.videoData))):!this.videoData.loading&& this.sI&&I9x(this)}; g.y.vg=function(w){this.j2=w;this.loader&&(s4I(this.loader,new g.kL(w)),this.H_("sdai",{sdsstm:1}))}; g.y.bu=function(w,D,M){var L;(L=this.loader)==null||L.bu(w,D,M)}; g.y.E3=wR(8);g.y.isFullscreen=function(){return this.visibility.isFullscreen()}; g.y.isBackground=function(){return this.visibility.isBackground()}; g.y.Bs=function(){var w=this;this.logger.debug("Updating for format change");L4(this).then(function(){return Dd(w)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.y.HR=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.uu();this.rg()&&!g.z(this.playerState,128)&&(this.fb.Wq()||(this.fb.start(),this.videoData.ZB?this.UB(aE(this.playerState,4)):this.UB(aE(aE(this.playerState,8),1))),Uvx(this))}; g.y.cS=function(){return this.FN.finished}; g.y.sendAbandonmentPing=function(){g.z(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Fi(!0),wVr(this.xl),g.M9(this.xl),g.vf.JH(this.Z3))}; g.y.yP=function(w,D,M){w=w===void 0?!0:w;(D===void 0||D)&&this.mediaElement&&this.mediaElement.pause();w&&M&&this.loader&&qQ(this.videoData)&&this.loader.Ag(M);this.UB(w?new g.FF(14):new g.FF)}; g.y.OQ=function(){this.xl.IN()}; g.y.Pd=function(w,D,M,L,Z,k){this.logger.debug(function(){return"set player error: ec="+w+", detail="+Z}); var b,C;g.E3(KXQ,M)?b=M:M?C=M:b="GENERIC_WITHOUT_LINK";L=(L||"")+(";a6s."+Qz());if(w==="auth"||w==="drm.auth"||w==="heartbeat.stop")M&&(L+=";r."+M.replaceAll(" ","_")),k&&(L+="sr."+k.replaceAll(" ","_"));D={errorCode:w,errorDetail:Z,errorMessage:C||g.uD[b]||"",bF:b,hd:k||"",B8:L,mq:D,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=w;Zd(this,"dataloaderror");this.UB(sP(this.playerState,128,D));g.vf.JH(this.Z3);ke(this);this.Bx()}; g.y.F6=function(w){this.df=this.df.filter(function(D){return w!==D}); this.logger.debug(function(){return"set preroll ready for "+w}); this.fb.Wq()&&Uvx(this)}; g.y.I$=function(){var w;(w=!!this.df.length)||(w=this.Da.T.array[0],w=!!w&&w.start<=-0x8000000000000);return w}; g.y.nW=function(){return this.xA.nW()}; g.y.isPlaying=function(){return this.playerState.isPlaying()}; g.y.zZ=function(){return this.playerState.zZ()&&this.videoData.ZB}; g.y.getPlayerState=function(){return this.playerState}; g.y.sK=function(w){var D;(D=this.loader)==null||D.sK(w)}; g.y.pY=function(w){var D;(D=this.loader)==null||D.pY(w)}; g.y.getPlayerType=function(){return this.playerType}; g.y.getPreferredQuality=function(){if(this.Zr){var w=this.Zr;w=w.videoData.Wn.compose(w.videoData.uw);w=FY(w)}else w="auto";return w}; g.y.Bt=wR(16);g.y.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.y.setMediaElement=function(w){this.logger.debug("set media element");if(this.mediaElement&&w.Dv()===this.mediaElement.Dv()&&(w.isView()||this.mediaElement.isView())){if(w.isView()||!this.mediaElement.isView())this.vc(),this.mediaElement=w,this.mediaElement.Th=this,rUS(this),this.xA.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Mm();if(!this.playerState.isError()){var D=vF(this.playerState,512);g.z(D,8)&&!g.z(D,2)&&(D=aE(D,1));w.isView()&&(D=vF(D,64));this.UB(D)}this.mediaElement= w;this.mediaElement.Th=this;!g.hL(this.mE)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);rUS(this);this.xA.setMediaElement(this.mediaElement);this.C("html5_prewarm_media_source")&&!this.f7.RY()&&TJK(this.mediaElement)}}; g.y.Mm=function(w,D,M){w=w===void 0?!1:w;D=D===void 0?!1:D;M=M===void 0?!1:M;this.logger.debug("remove media element");if(this.mediaElement){var L=this.getCurrentTime();L>0&&(this.xA.L=L);this.xA.setMediaElement(null);!w&&this.tf()?vNI(this):this.lA(M);this.loader&&(QA(this.loader),lk(this,D));this.d6.stop();if(this.mediaElement&&(!this.fb.Wq()&&!this.BC()||this.playerState.isError()||g.z(this.playerState,2)||this.UB(aE(this.playerState,512)),this.mediaElement)){this.vc();if(w||!this.mediaElement.isView())this.Wz.WV("mesv_s"), this.mediaElement.stopVideo(),E1(this);this.mediaElement=this.mediaElement.Th=null}}}; g.y.playVideo=function(w,D){w=w===void 0?!1:w;D=D===void 0?!1:D;var M=this,L,Z,k,b,C,l;return g.B(function(E){if(E.T==1){M.logger.debug("start play video");var p=window.google_image_requests;p&&p.length>10&&(window.google_image_requests=p.slice(-10));if(g.z(M.playerState,128))return E.return();if(M.f7.g6())return M.publish("signatureexpired"),E.return();M.mediaElement&&O4T(M.xl);M.HR();(g.z(M.playerState,64)||w)&&M.UB(aE(M.playerState,8));return M.fb.finished&&M.mediaElement?M.Zr||!M.Fk?E.KV(2):g.c(E, M.Fk,3):E.return()}if(E.T!=2&&g.z(M.playerState,128))return E.return();if(!M.videoData.L)return M.videoData.isLivePlayback&&!g.Hd(M.mE.W,!0)?(L="html5.unsupportedlive",Z=2):(L=M.videoData.Ms()?"fmt.unplayable":"fmt.noneavailable",Z=1),g.jn(Error("selectableFormats")),M.Pd(L,Z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),E.return();if(M.Fl()&&M.videoData.L.T)return M.logger.debug("rebuild playbackData for airplay"),E.return(L4(M));if(Qo(M))p=M.xA,fL(p.videoData)&&!p.isAtLiveHead(p.getCurrentTime())&& p.nW()&&p.Th.seekTo(Infinity,{GD:"seektimeline_peggedToLive",seekSource:34});else if(fL(M.videoData)&&(k=M.getCurrentTime()b;if(!C||!b){Z&&C&&(k=Math.max(k,Z));var l;Z=Mta(D,(l=L.T)==null?void 0:l.videoInfos);l=D.Th.getPlaybackRate();l>1&&Z&&(l=DJJ(D.mE.W,L.T.videoInfos,l),w.T!==0&&l=480;if(D.C("html5_exponential_memory_for_sticky")){E=D.mE.Wd;p=1;var W=W===void 0?!1:W;B6K(E,"sticky-lifetime");E.values["sticky-lifetime"]&&E.QA["sticky-lifetime"]||(E.values["sticky-lifetime"]=0,E.QA["sticky-lifetime"]=0);W&&Pd(E,"sticky-lifetime")>.0625&&(p=E.QA["sticky-lifetime"]*2);E.values["sticky-lifetime"]+=1*Math.pow(2, E.T/p);E.QA["sticky-lifetime"]=p;E.D.start()}if(D.C("html5_perf_cap_override_sticky")){W=D.L;D=D.C("html5_perserve_av1_perf_cap");D=D===void 0?!1:D;if(D===void 0?0:D){E=ih();p=g.x(Object.keys(E));for(w=p.next();!w.done;w=p.next())w=w.value,w.indexOf("1")!==0&&delete E[w];g.gQ("yt-player-performance-cap",E,2592E3)}else g.oj("yt-player-performance-cap");OcK(D);if(D){D=g.x(mk.keys());for(E=D.next();!E.done;E=D.next())E=E.value,E.startsWith("1")||mk.delete(E);D=g.x(yo.values());for(E=D.next();!E.done;E= D.next())E=E.value,E.startsWith("1")||yo.delete(E);D=g.x(W.keys());for(E=D.next();!E.done;E=D.next())E=E.value,E.startsWith("1")||W.delete(E)}else mk.clear(),yo.clear(),W.clear()}}}}this.loader&&(D=this.loader,M=M||"",D.policy.T?lP(D.D.T,M):lP(D.T.W,M));this.A2()}; g.y.getUserPlaybackQualityPreference=function(){return this.videoData.L&&!this.videoData.L.T?FY(this.videoData.Wn):nA[t$()]}; g.y.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.y.setUserAudio51Preference=function(w,D){this.getUserAudio51Preference()!==w&&(this.H_("toggle51",{pref:w}),g.gQ("yt-player-audio51",w,D?31536E3:2592E3),this.Bs())}; g.y.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.y.setProximaLatencyPreference=function(w){var D=this.getProximaLatencyPreference();this.H_("proxima",{pref:w});g.gQ("yt-player-proxima-pref",w,31536E3);D!==w&&(w=this.xA,w.pV=!0,w.Th.seekTo(Infinity,{GD:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.y.getProximaLatencyPreference=function(){var w;return(w=$z())!=null?w:0}; g.y.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.y.eC=function(){this.videoData.videoId?this.vA.eC(this.videoData):this.H_("povid",{})}; g.y.sJ=function(){this.videoData.videoId?this.vA.sJ(this.videoData):this.H_("piavid",{})}; g.y.A2=function(){if(!this.xt()&&!g.z(this.playerState,128)&&this.videoData.L){if(this.videoData.L.T)wM(this);else{var w=C4(this),D=this.videoData;a:{var M=this.videoData.Is;if(w.T){for(var L=g.x(M),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var k=Z.getInfo(),b=g.c_[k.video.quality];if((!w.L||k.video.quality!=="auto")&&b<=w.T){M=Z;break a}}M=M[M.length-1]}else M=M[0]}D.bW=M;oNk(this,w.reason,Tua(this,this.videoData.bW))}if(this.C("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.xA.B= !1,this.playVideo()}}; g.y.Ep=function(w,D){if(this.xt()||g.z(this.playerState,128))return!1;var M,L=!((M=this.videoData.L)==null||!M.T);M=L&&D?this.getCurrentTime()-this.jb():NaN;if(w.dW&&w.dW.id){var Z=this.xl;if(Z.qoe){Z=Z.qoe;var k=[w.dW.id,isNaN(M)?"m":"t"];g.OE(Z,g.AR(Z.provider),"afi",k)}}if(L)return D&&(L=TSJ(this.xA),this.H_("aswh",{id:w.id,xtags:w.xtags,bh:L.toFixed(3)})),this.loader.setAudioTrack(w,M,D),!0;if(FfT(this)){a:{D=this.mediaElement.audioTracks();for(L=0;L=0?w:this.getCurrentTime()}; g.y.mj=function(){var w;return((w=this.videoData.T)==null?0:w.mj)?this.videoData.T.mj(this.getCurrentTime()-this.jb()):this.mediaElement&&(w=this.mediaElement.x4())&&(w=w.getTime(),!isNaN(w))?w/1E3+this.getCurrentTime():NaN}; g.y.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.jb():this.T3()?this.T3():0}; g.y.qS=function(){var w=new kWa;if(this.loader){var D=this.mE.schedule,M=this.mE.gW();M=M===void 0?!1:M;w.A9=D.nV;w.Kh=D.jk;w.bandwidthEstimate=zm(D);if(M){M=(D.U.Td()*1E3).toFixed();var L=(D.W_.Td()*1E3).toFixed(),Z=S1(D).toFixed(2),k=((D.G.Td()||0)*1E9).toFixed(2),b=D.L.Td().toFixed(0),C=D.fV.Td().toFixed(0),l=D.B.percentile(.5).toFixed(2),E=D.B.percentile(.92).toFixed(2),p=D.B.percentile(.96).toFixed(2),W=D.B.percentile(.98).toFixed(2);D.T?D.T.reset():D.T=new cd;D.T.add(D.c_);D.T.add(D.interruptions.length); for(var h=0,t=D.interruptions.length-1;t>=0;t--){var d=D.interruptions[t];D.T.add(d-h);h=d}h=0;for(t=D.D.length-1;t>=0;t--){d=D.D[t];var N=d.stamp/36E5;D.T.add(N-h);h=N;D.T.add(d.net/1E3);D.T.add(d.max)}D=D.T.Dy();w.T={ttr:M,ttm:L,d:Z,st:k,bw:b,abw:C,v50:l,v92:E,v96:p,v98:W,"int":D}}GUa(this.loader,w)}else this.mediaElement&&(w.Yb=RE(this.mediaElement));w.A9=this.A9;w.Kh=this.Kh;w.L=this.isAtLiveHead()&&this.isPlaying()?dvk(this):NaN;D=this.xA;D=D.T?fU(D.T):0;w.D=D;return w}; g.y.e0=function(w,D){this.Kh+=w;this.A9+=D}; g.y.sy=function(){return this.mediaElement?g.mm(this.videoData)?1:A0(this.videoData)?this.isAtLiveHead()||this.nW()?1:this.xA.sy():this.mediaElement.sy():0}; g.y.Wf=function(){var w=this.eO,D=KU(w,"bandwidth"),M=KU(w,"bufferhealth"),L=KU(w,"livelatency"),Z=KU(w,"networkactivity"),k=O7(w,"bandwidth"),b=O7(w,"bufferhealth"),C=O7(w,"livelatency");w=O7(w,"networkactivity");var l=this.Bo(),E=l.droppedVideoFrames;l=l.totalVideoFrames;var p=this.getCurrentTime();if(this.Au){var W="IT/"+(this.Au.T.getInfo()+"/"+FY(this.pT()));W+="/"+this.Au.getInfo()}else W="";var h=this.isGapless(),t=this.aT(),d=this.hU(),N=g.Ye(this),n=this.getPlayerState(),v=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var G=0;var f="";if(this.j2){if(this.j2.fS){f="D,";break a}G=this.j2.hs;f=this.j2.OT.substring(0,4)}G>0?(G="AD"+G+", ",f&&(G+=f+", "),f=G):f=""}return{Mj:k,FG:b,currentTime:p,LZ:W,droppedVideoFrames:E,isGapless:h,aT:t,eM:d,Xg:D,bP:M,EP:L,e8:Z,p5:C,xp:w,gh:N,playerState:n,S_:v,Zd:f,totalVideoFrames:l}}; g.y.qC=function(w){var D={};if(w===void 0?0:w){Object.assign(D,this.xl.qC());this.mediaElement&&(Object.assign(D,this.mediaElement.qC()),w=this.Bo(),D.dvf=w.droppedVideoFrames,D.tvf=w.totalVideoFrames);this.loader&&Object.assign(D,this.loader.qC());this.Au&&(D.drm=JSON.stringify(this.Au.qC()));D.state=this.playerState.state.toString(16);g.z(this.playerState,128)&&(D.debug_error=JSON.stringify(this.playerState.QL));this.I$()&&(D.prerolls=this.df.join(","));this.videoData.HA&&(D.ismb=this.videoData.HA); this.videoData.latencyClass!=="UNKNOWN"&&(D.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(D.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)D.is_mosaic=1;this.videoData.cotn&&(D.is_offline=1,D.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(D.playerResponseCpn=this.videoData.playerResponseCpn);this.vA.isOrchestrationLeader()&&(D.leader=1);this.videoData.isLivePlayback&& (this.videoData.T&&QI(this.videoData.T)&&(D.segduration=QI(this.videoData.T)),w=this.xA,D.lat=w.U?NSl(w.U.D):0,D.liveutcstart=this.videoData.liveUtcStartSeconds);D.relative_loudness=this.videoData.wz.toFixed(3);if(w=g.Ye(this))D.optimal_format=w.video.qualityLabel;D.user_qual=t$();D.release_version=Y[30]}D.debug_videoId=this.videoData.videoId;return D}; g.y.addCueRange=function(w){this.Pi([w])}; g.y.removeCueRange=function(w){this.Da.O0([w])}; g.y.o6=function(){var w=this.Da;if(w.Th.X().C("html5_sort_cueranges_on_update")&&!(w.ew().length<=0||w.xt())){var D=w.T;D.array.sort(D.T)}w.sync()}; g.y.Xo=function(w,D){return this.Da.Xo(w,D)}; g.y.Pi=function(w,D){this.Da.bT(w,D)}; g.y.Yh=function(w){this.Da.O0(w)}; g.y.ew=function(){return this.Da.ew()||[]}; g.y.ag=function(){return this.Hk}; g.y.Fl=function(){return this.visibility.Fl()}; g.y.Wt=function(){this.mediaElement&&this.mediaElement.Wt()}; g.y.RHc=function(){Zd(this)}; g.y.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.y.vc=function(){g.NA(this.yq)}; g.y.ssJ=function(){this.M$();this.publish("onLoadProgress",this.sy())}; g.y.C_=function(w){var D=w.target.PH();if(this.mediaElement&&this.mediaElement.PH()&&this.mediaElement.PH()===D){PxC(this,w.type);switch(w.type){case "error":var M=n5(this.mediaElement)||"",L=this.mediaElement.WI();if(M==="capability.changed"){this.C("html5_restart_on_capability_change")?(this.H_("capchg",{msg:L}),this.ZJ(!0)):L4(this);return}if(this.mediaElement.hasError()&&JHR(this.f7,M,{msg:L,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.qs()===4){this.Bx();bk(this,"unplayable"); return}break;case "durationchange":M=this.mediaElement.getDuration();isFinite(M)&&(!this.v_||M>0)&&M!==1&&this.OM(M);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());Wbl(this.Da);this.xl.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Kfl(this);this.publish("onLoadedMetadata");XNG(this);M=this.mj();this.videoData.Q5&&(this.videoData.Q5=M);break;case "loadstart":XNG(this);break;case "progress":case "suspend":this.yE.gx(); break;case "seeked":(this.mE.C("html5_sabr_ignore_skipad_before_completion")||this.mE.C("html5_ignore_sabrseek_during_adskip"))&&(M=this.loader)!=null&&M.policy.V&&M.policy.PX&&M.Pq&&(M.H_("sdai",{skipAdSked:"1"}),M.Pq=!1);break;case "playing":this.Wz.WV("plev");this.HZ&&!Qo(this)&&(this.HZ=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{GD:"videoplayer_onPlaying"})));break;case "timeupdate":M=this.mediaElement&&!this.mediaElement.getCurrentTime();L= this.mediaElement&&this.mediaElement.K7()===0;if(M&&(!this.Ot||L))return;this.Ot=this.Ot||!!this.mediaElement.getCurrentTime();eAr(this);this.M$();if(!this.mediaElement||this.mediaElement.PH()!==D)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.As().length>0&&this.mediaElement.m5().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.C("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()|| this.mediaElement.K7()>2||!this.mediaElement.isSeeking()&&kW(this.mediaElement.m5(),this.mediaElement.getCurrentTime()))&&(M=this.mediaElement.qC(),M.bh=RE(this.mediaElement).toFixed(3),this.H_("uwe",M));break;case "resize":Kfl(this);this.videoData.V&&this.videoData.V.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.gX&&g.z(this.playerState,8)&&!g.z(this.playerState,1024)&&this.getCurrentTime()===0&&g.pf){bk(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.PH()===D){Aqa(this.xA,w);this.publish("videoelementevent",w);D=this.playerState;L=this.Nv;var Z=this.mediaElement;M=this.videoData.clientPlaybackNonce;if(!g.z(D,128)){var k=D.state;Z=Z?Z:w.target;var b=Z.getCurrentTime();if(!g.z(D,64)||w.type!=="ended"&&w.type!=="pause"){var C=Z.getDuration();C=Z.isEnded()||b>1&&Math.abs(b-C)<1.1;var l=w.type==="pause"&&Z.isEnded();b=w.type==="ended"||w.type==="waiting"||w.type==="timeupdate"&&!g.z(D,4)&&!aO(L,b);if(l|| C&&b)Z.xf()>0&&Z.PH()&&(k=14);else switch(w.type){case "error":n5(Z)&&(k|=128);break;case "pause":g.z(D,256)?(k^=256)||(k=64):g.z(D,32)||g.z(D,2)||g.z(D,4)||(k=4,g.z(D,1)&&g.z(D,8)&&(k|=1));break;case "playing":b=k;k=(k|8)&-1093;b&4?(k|=1,Gb(L,Z,!0)):aO(L,Z.getCurrentTime())&&(k&=-2);g.z(D,1)&&Gb(L,Z)&&(k|=1);break;case "seeking":k|=16;g.z(D,8)&&(k|=1);k&=-3;break;case "seeked":k&=-17;Gb(L,Z,!0);break;case "waiting":g.z(D,2)||(k|=1);Gb(L,Z);break;case "timeupdate":b=g.z(D,16),C=g.z(D,4),(g.z(D,8)|| b)&&!C&&aO(L,Z.getCurrentTime())&&(k=8),Gb(L,Z)&&(k|=1)}}L=k;k=null;L&128&&(k=w.target,Z=n5(k),b=1,Z?(Z==="capability.changed"&&(b=2),C="GENERIC_WITHOUT_LINK",l=k.qC(),l.mediaElem="1",l.trg="melem",/AUDIO_RENDERER/.test(k.WI())&&(C="HTML5_AUDIO_RENDERER_ERROR"),k={errorCode:Z,errorMessage:g.uD[C]||"",bF:C,B8:pH(l),mq:b,cpn:D.QL?D.QL.cpn:""}):k=null,k&&(k.cpn=M));D=sP(D,L,k)}!g.z(this.playerState,1)&&g.z(D,1)&&VxK(this,"evt"+w.type);this.UB(D)}}}; g.y.OVW=function(w){w=w.T.availability==="available";w!==this.Hk&&(this.Hk=w,this.publish("airplayavailabilitychange"))}; g.y.UdJ=function(){var w=(0,g.IC)(),D=this.mediaElement.Fl();this.H_("airplay",{ia:D});!D&&!isNaN(this.YI)&&w-this.YI<2E3||(this.YI=w,D!==this.Fl()&&(w=this.visibility,w.T!==D&&(w.T=D,w.uo()),this.H_("airplay",{rbld:D}),this.Bs()),this.publish("airplayactivechange"))}; g.y.Az=function(w){if(this.loader){var D=this.loader,M=D.L,L=D.getCurrentTime(),Z=Date.now()-M.B;M.B=NaN;M.H_("sdai",{adfetchdone:w,d:Z});w&&!isNaN(M.G)&&M.V!==3&&wv(M.loader,L,M.G,M.Y);M.policy.V?M.W=NaN:M.D=NaN;Ag(M,4,M.V===3?"adfps":"adf");QA(D)}}; g.y.Ay=function(){g.p7(this.Nz);this.d6.stop();this.videoData.V7=!0;this.mE.MN=!0;this.mE.TU=0;var w=this.f7;if(w.videoData.V){var D=w.P_.W,M=w.videoData.V.RJ;D.D.has(M)&&(D.D.delete(M),D.V=!0)}w.T.stop();this.bY();g.z(this.playerState,8)&&this.UB(vF(this.playerState,65));this.DP=!1;w=this.xl;w.T&&q1N(w.T);w.V&&(w=w.V,D=g.AR(w.provider),w.T<0&&(w.T=D,w.delay.start()),w.V=D,w.D=D);g.S3(this.lQ);this.publish("playbackstarted");(w=g.w3("yt.scheduler.instance.clearPriorityThreshold"))?w():V$(0)}; g.y.bY=function(){var w=this.vA.z3(),D={},M={};!jT("pbs",this.Wz.timerName)&&Eo.measure&&Eo.getEntriesByName&&(Eo.getEntriesByName("mark_nr")[0]?kGK("mark_nr"):kGK());w.videoId&&(D.videoId=w.videoId);w.clientPlaybackNonce&&!this.C("web_player_early_cpn")&&(D.clientPlaybackNonce=w.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(M.isPausedOnLoad=!0);M.itag=w.V?Number(w.V.itag):-1;w.CJ&&(M.preloadType=String(this.Tu?2:1));D.liveStreamMode=j8B[zB(w)];D.playerInfo=M;this.Wz.infoGel(D); if(this.loader){w=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(w.L&&(D=window.performance.getEntriesByName(w.L),D.length&&(D=D[0],w.tick("vri",D.fetchStart),w.tick("vdns",D.domainLookupEnd),w.tick("vreq",D.requestStart),w.tick("vrc",D.responseEnd))),w.V&&(D=window.performance.getEntriesByName(w.V),D.length&&(D=D[0],w.tick("ari",D.fetchStart),w.tick("adns",D.domainLookupEnd),w.tick("areq",D.requestStart),w.tick("arc",D.responseEnd))));w=w.ticks;for(var L in w)w.hasOwnProperty(L)&& this.Wz.tick(L,w[L])}}; g.y.M$=function(w){var D=this;w=w===void 0?!1:w;if(this.mediaElement&&this.videoData){u6C(this.xA,this.isPlaying());var M=this.getCurrentTime();if(this.loader&&(g.z(this.playerState,4)&&g.mm(this.videoData)||g.z(this.playerState,32)&&ay(this.videoData)||vVx(this.loader,M),this.C("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var L;this.H_("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(L=this.loader)==null?void 0:L.currentTime},!0)}M> 5&&(this.xA.L=M);(L=g.z_())?g.vf.JH(this.Z3):g.EO(this.Z3);var Z=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!Z||U9(this.videoData))&&!g.z(this.playerState,128)){var k=function(){if(D.mediaElement&&!g.z(D.playerState,128)){D.mE.gW()&&PxC(D,"pfx");var b=D.getCurrentTime();D.C("html5_buffer_underrun_transition_fix")&&(b-=D.jb());var C=RE(D.mediaElement),l=g.z(D.playerState,8),E=aO(D.Nv,b),p=VUC(D.Nv,b,(0,g.IC)(),C);l&&E?D.UB(vF(D.playerState,1)):l&&p?(l=D.getDuration(),E=fL(D.videoData), l&&Math.abs(l-b)<1.1?(D.H_("setended",{ct:b,bh:C,dur:l,live:E}),D.mediaElement.qQ()?(D.logger.debug("seek to 0 because of looping"),D.seekTo(0,{GD:"videoplayer_loop",seekSource:37})):D.yP()):(D.playerState.isBuffering()||VxK(D,"progress_fix"),D.UB(aE(D.playerState,1)))):(l&&!E&&!p&&b>0&&(l=(Date.now()-D.MH)/1E3,E=D.getDuration(),b>E-1&&D.H_("misspg",{t:b.toFixed(2),d:E.toFixed(2),r:l.toFixed(2),bh:C.toFixed(2)})),D.playerState.isPaused()&&D.playerState.isBuffering()&&RE(D.mediaElement)>5&&D.UB(vF(D.playerState, 1)));D.M$()}}; this.mediaElement.As().length===0?this.Z3=L?g.vf.RT(k,100):g.C7(k,100):this.Z3=L?g.vf.RT(k,500):g.C7(k,500)}this.videoData.FK=M;!w&&this.isPlaying()&&uor(this);WsC(this.ZK,this.Zr,this.ij(),this.isBackground())&&wM(this);this.publish("progresssync",w);Z&&U9(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.y.mR=function(){this.Pd("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.y.hU=function(){return this.xl.hU()}; g.y.yr=function(){return this.loader?this.loader.yr():zm(this.mE.schedule,!0)}; g.y.UB=function(w){if(!g.BF(this.playerState,w)){this.logger.debug(function(){return"Setting state "+w.toString()}); var D=new g.k0(w,this.playerState);this.playerState=w;OGS(this);var M=!this.XP.length;this.XP.push(D);var L=this.mediaElement&&this.mediaElement.isSeeking();g.Y0(D,1)&&this.loader&&Mgl(this.loader);L=D.oldState.state===8&&!L;g.Y0(D,1)&&L&&g.z(this.playerState,8)&&!g.z(this.playerState,64)&&this.loader&&(LjN(this.loader),this.mediaElement&&RE(this.mediaElement)>=5&&EeG(this.ZK,this.Zr)&&wM(this));(L=g.A3(this.mE.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.z(w,1)&&(g.z(w,8)||g.z(w, 16))?this.tZ.start(L):this.tZ.stop();(bQ(D,8)<0||g.Y0(D,1024))&&this.d6.stop();!g.Y0(D,8)||this.videoData.V7||g.z(D.state,1024)||this.d6.start();g.z(D.state,8)&&bQ(D,16)<0&&!g.z(D.state,32)&&!g.z(D.state,2)&&this.playVideo();g.z(D.state,2)&&A0(this.videoData)&&(this.OM(this.getCurrentTime()),this.M$(!0));g.Y0(D,2)&&(this.Fi(!0),this.mE.gW()&&this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&ay(this.videoData)&&this.videoData.T&&(L={minst:""+this.videoData.T.GR,cminst:""+(this.videoData.T.BA()+ this.jb()),maxst:""+this.videoData.T.o$,hts:""+this.videoData.T.nV,cmaxst:""+(this.videoData.T.T3()+this.jb())},this.H_("sabrSeekableBoundaries",L)));g.Y0(D,128)&&this.Bx();this.videoData.T&&this.videoData.isLivePlayback&&!this.eH&&(bQ(D,8)<0?F4K(this.videoData.T):g.Y0(D,8)&&this.videoData.T.resume());XVa(this.xA,D);ADT(this.xl,D);if(M&&!this.xt())try{for(var Z=g.x(this.XP),k=Z.next();!k.done;k=Z.next()){var b=k.value;hcK(this.Da,b);this.publish("statechange",b)}}finally{this.XP.length=0}}}; g.y.Vz=function(){this.Wz.tick("qoes")}; g.y.sG=function(){this.xA.sG()}; g.y.W8=function(w,D,M,L){a:{var Z=this.f7;L=L===void 0?"LICENSE":L;M=M.substring(0,256);var k=hF(D);w==="drm.keyerror"&&this.Au&&this.Au.V.keys.length>1&&Z.D<96&&(w="drm.sessionlimitexhausted",k=!1);var b=Z.P_.experiments.ek("html5_retry_on_drm_unavailable"),C=Z.P_.experiments.ek("html5_retry_on_drm_key_error"),l=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(b&&w==="drm.unavailable"||C&&w==="drm.keyerror"&&!M.match(l))Z.ZX("qoe.restart",{retryOnDrmError:1,e:w,detail:M}),Z.Th.ZJ(!0);else{if(k)if(Z.videoData.V&& Z.videoData.V.video.isHdr())mEJ(Z,w);else{if(Z.Th.Pd(w,D,L,M),ufl(Z,{detail:M}))break a}else Z.ZX(w,{detail:M});w==="drm.sessionlimitexhausted"&&(Z.H_("retrydrm",{sessionLimitExhausted:1}),Z.D++,zAx(Z.Th))}}}; g.y.Elc=function(){var w=this,D=g.A3(this.mE.experiments,"html5_license_constraint_delay"),M=V8();D&&M?(D=new g.ui(function(){w.A2();Zd(w)},D),g.T(this,D),D.start()):(this.A2(),Zd(this))}; g.y.XA=function(w){this.publish("heartbeatparams",w)}; g.y.fW=function(w){this.H_("keystatuses",$EI(w));var D="auto",M=!1;this.videoData.V&&(D=this.videoData.V.video.quality,M=this.videoData.V.video.isHdr());a:{switch(D){case "highres":case "hd2880":D="UHD2";break;case "hd2160":case "hd1440":D="UHD1";break;case "hd1080":case "hd720":D="HD";break;case "large":case "medium":case "small":case "light":case "tiny":D="SD";break;default:D="";break a}M&&(D+="HDR")}D=E7(w)?pU(w,D):w.D.includes(D);if(this.C("html5_enable_vp9_fairplay")){if(M)if(w.G){var L;if((L= this.Au)==null?0:Yt(L.T))if((M=this.Au)==null)M=0;else{for(var Z=L=void 0,k=g.x(M.V.values()),b=k.next();!b.done;b=k.next())b=b.value,L||(L=dEx(b,"SD")),Z||(Z=dEx(b,"AUDIO"));M.M2({sd:L,audio:Z});M=L==="output-restricted"||Z==="output-restricted"}else M=!D;if(M){this.H_("drm",{dshdr:1});mEJ(this.f7);return}}else{this.videoData.Z6||(this.videoData.Z6=!0,this.H_("drm",{dphdr:1}),this.ZJ(!0));return}var C;if((C=this.Au)==null?0:Yt(C.T))return}else if(C=w.G&&D,M&&!C){mEJ(this.f7);return}D||pU(w,"AUDIO")&& pU(w,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),w=$EI(w),this.Aj?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.C("html5_report_fatal_drm_restricted_error_killswitch")||this.Pd("drm.keyerror",2,void 0,"info."+w)):(this.Aj=!0,this.ZX(new g.W_("qoe.restart",Object.assign({},{retrydrm:1},w))),wM(this),zAx(this)))}; g.y.ezL=function(){if(!this.videoData.V7&&this.mediaElement&&!this.isBackground()){var w="0";this.mediaElement.K7()>0&&RE(this.mediaElement)>=5&&this.videoData.L&&this.videoData.L.T&&(this.UB(aE(this.playerState,1)),VxK(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),w="1");OGS(this);var D=this.videoData.L;w={restartmsg:w,mfmt:!oy(this.videoData),mdrm:!(!(D&&D.videoInfos&&D.videoInfos.length&&D.videoInfos[0].f6)||this.Au),mfmtinfo:!this.videoData.V,prerolls:this.I$()?this.df.join(","): "0"};if(this.Au){D=this.Au;if(D.V.size<=0){var M="ns;";D.B||(M+="nr;");D=M+="ql."+D.L.length}else D=$EI(D.V.values().next().value),D=pH(D);w.drmp=D}var L;Object.assign(w,((L=this.loader)==null?void 0:L.qC())||{});var Z;Object.assign(w,((Z=this.mediaElement)==null?void 0:Z.qC())||{});this.xl.ZX("qoe.start15s",pH(w));this.publish("loadsofttimeout")}}; g.y.OM=function(w){this.videoData.lengthSeconds!==w&&(this.videoData.lengthSeconds=w,Zd(this))}; g.y.Fi=function(w,D){var M=this;w=w===void 0?!1:w;if(!this.VH)if(jT("att_s","player_att")||RA("att_s",void 0,"player_att"),this.C("use_rta_for_player"))(function(){var Z,k,b,C;return g.B(function(l){switch(l.T){case 1:if(!(Z=w)){l.KV(2);break}return g.c(l,g.cKl(),3);case 3:Z=!l.V;case 2:if(Z)return l.return();g.jN(l,4);k=LbJ(M.xl);if(!k)throw Error();b={};return g.c(l,g.voj((b.cpn=M.videoData.clientPlaybackNonce,b.encryptedVideoId=M.videoData.videoId||"",b),3E4),6);case 6:C=l.V;if(M.VH)throw Error(); if(!C.challenge)throw g.jn(Error("Not sending attestation ping; no attestation challenge string")),Error();M.VH=!0;var E=[C.challenge];C.error?E.push("r1c="+C.error):C.webResponse&&E.push("r1a="+C.webResponse);var p;((p=C.adblockReporting)==null?void 0:p.reportingStatus)!==void 0&&E.push("r6a="+C.adblockReporting.reportingStatus);var W;((W=C.adblockReporting)==null?void 0:W.broadSpectrumDetectionResult)!==void 0&&E.push("r6b="+C.adblockReporting.broadSpectrumDetectionResult);k(E.join("&"));RA("att_f", void 0,"player_att");g.oT(l,0);break;case 4:g.FK(l),RA("att_e",void 0,"player_att"),g.Hr(l)}})})().then(function(){D==null||D()}); else{var L=new g.T9J(this.videoData);if("c1a"in L.g2&&!g.lh.isInitialized()){RA("att_wb",void 0,"player_att");this.hZ===2&&Math.random()<.01&&g.jn(Error("Botguard not available after 2 attempts"));if(w)return;if(this.hZ<5){g.S3(this.Iv);this.hZ++;return}}(L=g.u8K(L))?(RA("att_f",void 0,"player_att"),MsT(this.xl,L),this.VH=!0):RA("att_e",void 0,"player_att")}}; g.y.hf=function(w){w=w===void 0?!1:w;return fL(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.nW()||g.mm(this.videoData))?this.getCurrentTime():this.T3(w)}; g.y.N3=function(){return this.BA()}; g.y.T3=function(w){return this.xA.T3(w===void 0?!1:w)}; g.y.BA=function(){return this.xA.BA()}; g.y.jb=function(){return this.xA?this.xA.jb():0}; g.y.getStreamTimeOffset=function(){return this.xA?this.xA.getStreamTimeOffset():0}; g.y.OD=function(){var w=0;this.mE.C("web_player_ss_media_time_offset")&&(w=this.getStreamTimeOffset()===0?this.jb():this.getStreamTimeOffset());return w}; g.y.setPlaybackRate=function(w){var D;this.playbackRate!==w&&Mta(this.ZK,(D=this.videoData.L)==null?void 0:D.videoInfos)&&(this.playbackRate=w,wM(this));this.playbackRate=w;this.mediaElement&&this.mediaElement.setPlaybackRate(w)}; g.y.getPlaybackRate=function(){return this.playbackRate}; g.y.getPlaybackQuality=function(){var w="unknown";if(this.videoData.V&&(w=this.videoData.V.video.quality,w==="auto"&&this.mediaElement)){var D=this.Bi();D&&D.videoHeight>0&&(w=v_(D.videoWidth,D.videoHeight))}return w}; g.y.isHdr=function(){return!!(this.videoData.V&&this.videoData.V.video&&this.videoData.V.video.isHdr())}; g.y.sendVideoStatsEngageEvent=function(w,D){var M=this.xl;M.T?(M=jo(M.T,"engage"),M.nV=w,M.send(D)):D&&D()}; g.y.au=function(w){return this.xl.au(w)}; g.y.isAtLiveHead=function(w,D){D=D===void 0?!1:D;return fL(this.videoData)&&(this.RF||D)?this.xA.isAtLiveHead(w):!1}; g.y.rV=function(){var w=this.T3(),D=this.getCurrentTime(),M;(M=!fL(this.videoData))||(M=this.xA,M=!(M.T&&M.T.L));return M||this.nW()||isNaN(w)||isNaN(D)?0:Math.max(0,w-D)}; g.y.z8=function(w){(this.RF=w)||this.d6.stop();this.videoData.T&&(w?this.videoData.T.resume():F4K(this.videoData.T));if(this.loader){var D=this.videoData.C("html5_disable_preload_for_ssdai_with_preroll")&&this.BC()&&this.videoData.isLivePlayback;w&&!D?this.loader.resume():lk(this,!0)}g.z(this.playerState,2)||w?g.z(this.playerState,512)&&w&&this.UB(vF(this.playerState,512)):this.UB(aE(this.playerState,512));D=this.xl;D.qoe&&(D=D.qoe,g.OE(D,g.AR(D.provider),"stream",[w?"A":"I"]))}; g.y.DR=function(w){this.xl.ZX("player.exception",pH({n:w.name,m:w.message}))}; g.y.nP=wR(22);g.y.ea=wR(51);g.y.s1=function(w){this.xl.s1(w)}; g.y.Ck=function(w){this.xl.Ck(w)}; g.y.JB=function(w){this.xl.JB(w)}; g.y.B9=wR(28);g.y.AY=wR(34);g.y.Er=function(w){this.xl.Er(w)}; g.y.Ag=function(w,D,M,L){this.xl.Ag(w,D,M,L)}; g.y.dM=function(){this.H_("hidden",{},!0)}; g.y.Bo=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.y.PM=function(){return this.loader?this.loader.PM():!0}; g.y.setLoop=function(w){this.loop=w;this.mediaElement&&!g.hL(this.mE)&&this.mediaElement.setLoop(w)}; g.y.qQ=function(){return this.mediaElement&&!g.hL(this.mE)?this.mediaElement.qQ():this.loop}; g.y.nC=function(w){this.H_("timestamp",{o:w.toString()});this.xA.nC(w)}; g.y.q$=function(w){this.Wz.tick(w)}; g.y.Zy=function(w){return this.Wz.Zy(w)}; g.y.WV=function(w){this.Wz.WV(w)}; g.y.H_=function(w,D,M){this.xl.H_(w,D,M===void 0?!1:M)}; g.y.NW=function(w,D,M){this.xl.H_(w,D,M===void 0?!1:M)}; g.y.ZX=function(w){this.xl.ZX(w.errorCode,pH(w.details));w=w.errorCode;if(this.videoData.isLivePlayback&&(w==="qoe.longrebuffer"||w==="qoe.slowseek")||w==="qoe.restart"){w=this.loader?Gmj(this.loader.videoTrack):{};var D,M;this.H_("lasoe",Object.assign(this.loader?Gmj(this.loader.audioTrack):{},(D=this.v_)==null?void 0:(M=D.T)==null?void 0:M.Jv()));var L,Z;this.H_("lvsoe",Object.assign(w,(L=this.v_)==null?void 0:(Z=L.V)==null?void 0:Z.Jv()))}if(this.C("html5_log_centralized_player_time")){var k;this.H_("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(k=this.loader)==null?void 0:k.currentTime})}}; g.y.Bq=function(w,D,M){this.xl.Bq(w,D,M)}; g.y.q1=function(w,D,M,L,Z,k,b,C){var l;if((l=this.videoData.T)!=null&&l.isLive){var E=D.playerType===2?D:w,p=w.videoData.videoId,W=D.videoData.videoId;if(p&&W){l=this.xl;if(l.qoe){var h=l.qoe,t=w.cpn,d=D.cpn,N=E.videoData.Nr,n=h.provider.videoData.clientPlaybackNonce,v=h.provider.videoData.videoId,G=d!==n&&W!==v;n=t!==n&&p!==v;h.reportStats();h.adCpn&&h.adCpn!==t||(h.adCpn=n?t:"",h.t4=n?p:"",h.adFormat=n?N:void 0,VfG(h,k?4:Z?2:0,d,W,L),h.reportStats(),h.adCpn=G?d:"",h.t4=G?W:"",h.adFormat=G?N:void 0, VfG(h,k?5:Z?3:1,t,p,M),h.reportStats())}M=w.cpn;if(l.L.has(M)){if(Z=l.L.get(M),oO(Z,!0).send(),RO(Z),M!==l.provider.videoData.clientPlaybackNonce){S1l(Z);var f;(f=l.T)==null||rDr(f);l.L.delete(M)}}else l.zr=l.provider.videoData.clientPlaybackNonce,l.zr&&l.T&&(l.L.set(l.zr,l.T),oO(l.T).send(),RO(l.T));f=D.cpn;E=E.videoData;L-=this.OD();if(l.L.has(f)){L=l.L.get(f);var e=L.L&&isNaN(L.W)?go(L):NaN;L=uaN(L,!1);isNaN(e)||(L.G=e);L.send()}else L=ZTN(l,l.provider,E,L),l.L.set(f,L),Q$x(L,new g.k0(aE(new g.FF, 8),new g.FF)),q1N(L),(e=l.T)==null||RO(e);l.zr=f;if(this.C("html5_unify_csi_server_stitched_transition_logging")){if(l=this.Wz,e=D.cpn,L=this.videoData.clientPlaybackNonce,D=D.videoData,w=(w.cpn===L?"video":"ad")+"_to_"+(e===L?"video":"ad"),w!=="video_to_ad"){L=w==="ad_to_video"?void 0:D;E=L==null?void 0:L.DM;f={};if(D==null?0:D.Y)f.cttAuthInfo={token:D.Y,videoId:D.videoId};b&&(f.startTime=b);Hl(w,f);var S,K,V;b={targetVideoId:(S=D==null?void 0:D.videoId)!=null?S:"empty_video",targetCpn:e,adVideoId:(K= L==null?void 0:L.videoId)!=null?K:"empty_video",adClientPlaybackNonce:(V=E==null?void 0:E.cpn)!=null?V:L==null?void 0:L.clientPlaybackNonce};E&&(b.adBreakType=E.adBreakType,b.adType=E.adType);g.Ng(b,w);iD(l,C,w)}}else S=this.Wz,V=this.videoData.clientPlaybackNonce,K=D.videoData,V=(w.cpn===V?"video":"ad")+"_to_"+(D.cpn===V?"video":"ad"),w={},K.Y&&(w.cttAuthInfo={token:K.Y,videoId:K.videoId}),b&&(w.startTime=b),Hl(V,w),g.Ng({targetVideoId:K.videoId,targetCpn:D.cpn,isSsdai:!0},V),b||iD(S,C,V)}}else this.logger.T(360717806, "SSTEvent for nonSS")}; g.y.Tx=function(){var w=this.vA,D=w.oX;w.oX=[];return D}; g.y.dk=function(w){this.videoData.Fb=!0;this.ZX(new g.W_("sabr.fallback",w));this.ZJ(!0)}; g.y.E8=function(w,D){this.videoData.aL=!0;if(D===void 0||D)this.ZX(new g.W_("qoe.restart",w)),this.ZJ(!0)}; g.y.Ud=function(w){this.H_("sdai",{aftimeout:w});this.ZX(new g.W_("ad.fetchtimeout",{timeout:w}))}; g.y.mA=function(w,D){this.H_("timelineerror",w);w=new g.W_("dai.timelineerror",w);D?this.Pd("dai.timelineerror",1,"RETRYABLE_ERROR",pH(w.details)):this.ZX(w)}; g.y.GK=function(){return g.AR(this.xl.provider)}; g.y.getPlayerSize=function(){return this.T5.getPlayerSize()}; g.y.KJ=function(){return this.T5.KJ()}; g.y.nJ=function(){return this.Wz}; g.y.XZ=function(){return this.vA.XZ()}; g.y.getVolume=function(){return this.vA.getVolume()}; g.y.DQ=function(){return this.vA.DQ()}; g.y.isMuted=function(){return this.vA.isMuted()}; g.y.Ol=function(){return this.vA.Ol()}; g.y.G_=function(){this.eH=!0}; g.y.C=function(w){return this.mE.C(w)}; g.y.bq=function(w,D,M,L,Z){this.H_("xvt",{m:w,g:D?1:0,tt:M?1:0,np:L?1:0,c:Z})}; g.y.KH=function(){var w;(w=this.loader)==null||w.resume()}; g.y.BC=function(){return g.xB(this.df,"ad")}; g.y.HC=function(){var w=this.getCurrentTime(),D=w-this.jb();var M=this.mediaElement?YW(this.mediaElement.m5()):0;M=Math.floor(Math.max(M-D,0))+100;var L;return((L=this.loader)==null?0:L.HC(D,M))?(this.H_("sdai",{skipad:1,ct:D.toFixed(3),adj:M.toFixed(3)}),ay(this.videoData)&&this.loader.seek(D+M,{seekSource:89,GD:"videoplayer_skipServerStitchedAd"}),DvG(this.xA,w),!0):!1}; g.y.gW=function(){return this.mE.gW()}; g.y.u8=function(){if(this.C("html5_generate_content_po_token"))return this.videoData.f0||"";this.vA.gr();return this.mE.QF||""}; g.y.Gi=function(){if(this.videoData.videoId)return this.videoData.VI}; g.y.eJ=function(){return this.videoData.videoId}; g.y.De=function(){return this.vA.Lk}; g.y.XJ=function(){return this.DP}; g.y.Bw=function(){return this.vA.Bw()}; g.y.jL=function(w,D,M){this.UB(aE(this.playerState,16,M));this.xA.jL(w,D)}; g.y.prefetchKeyPlay=function(){}; g.y.EW=function(){this.xA.EW()}; g.y.oS=function(w,D){var M=this.C("html5_generate_content_po_token")?this.videoData:void 0;this.vA.oS(w,D,M)}; g.y.VP=function(w,D){this.xl.VP(w,D)}; g.y.Eo=function(){return this.xl.Eo()}; g.y.Rb=function(){return this.videoData.M7}; g.y.aT=function(){return this.vA.aT()}; g.y.rT=function(){return this.vA.rT(this)}; g.y.J_=function(){this.u6=!0}; g.y.lf=function(w){var D;(D=this.loader)==null||D.lf(w)};g.I(mvj,tX);g.I(p4,HR);p4.prototype.T=function(w){w&&jg(this,this.K.getLoopVideo());this.K.logVisibility(this.element,w)}; p4.prototype.logClick=function(){this.K.logClick(this.element)}; p4.prototype.onLoopChange=function(w){jg(this,w)}; p4.prototype.V=function(w){this.K.setLoopVideo(w)};g.I(AUx,tX);g.I(w4R,tX);g.y=w4R.prototype;g.y.seekToChapterWithAnimation=function(w){var D=this;if(g.c$(this.api)&&!(w<0)){var M=this.api.getVideoData(),L=M.Kx;if(L&&w=0)return;D=~D;g.r3(this.items,D,0,w);yv(this.menuItems.element,w.element,D)}w.subscribe("size-change",this.AA,this);this.menuItems.publish("size-change")}; g.y.Rn=function(){s7R(this)||this.items[0].focus();return!0}; g.y.s6=function(){this.items[this.items.length-1].focus();return!0}; g.y.gz=function(w){w.unsubscribe("size-change",this.AA,this);this.xt()||(g.HQ(this.items,w),this.menuItems.element.removeChild(w.element),this.menuItems.publish("size-change"))}; g.y.AA=function(){this.menuItems.publish("size-change")}; g.y.focus=function(){for(var w=0,D=0;D1&&g.n4(this)}; g.y.KU=function(){Bak(this);this.y$&&(vSI(this),g.Du(this.element,this.size))}; g.y.Py=function(){var w=this.T.pop();cfT(this,w,this.T[this.T.length-1],!0)}; g.y.eP=function(w){if(!w.defaultPrevented)switch(w.keyCode){case 27:this.aO();w.preventDefault();break;case 37:this.T.length>1&&this.Py();w.preventDefault();break;case 39:w.preventDefault()}}; g.y.focus=function(){this.T.length&&this.T[this.T.length-1].focus()}; g.y.oJ=function(){g.kV.prototype.oJ.call(this);this.D&&this.D.dispose();this.W&&this.W.dispose()};g.I(Fa,g.R$);Fa.prototype.open=function(w,D){this.initialize(w.items)&&this.XQ(D,!!D)}; Fa.prototype.initialize=function(w){g.gM(this.VF);if(w===void 0||w.length===0)return!1;var D=w.length;w=g.x(w);for(var M=w.next();!M.done;M=w.next())this.sB(M.value,D--);return!0}; Fa.prototype.sB=function(w,D){w.menuNavigationItemRenderer?rfS(this,w.menuNavigationItemRenderer,D):w.menuServiceItemRenderer&&eKl(this,w.menuServiceItemRenderer,D)};g.I(Gz,N6);g.y=Gz.prototype;g.y.Ty=function(w){w.target!==this.dismissButton.element&&w.target!==this.overflowButton.element&&(this.Nt(),this.onClickCommand&&this.K.Q7("innertubeCommand",this.onClickCommand))}; g.y.Nh=function(){this.enabled=!1;this.B.hide()}; g.y.zP=function(){return!!this.T&&this.enabled}; g.y.onVideoDataChange=function(w,D){this.Je(D);if(this.T){this.FY();a:if(!this.isCounterfactual){var M,L,Z;this.banner.update({title:(M=this.T)==null?void 0:M.title,subtitle:(L=this.T)==null?void 0:L.subtitle,metadata:(Z=this.T)==null?void 0:Z.metadataText});var k;this.onClickCommand=g.Q((k=this.T)==null?void 0:k.onTap,RD);var b;if(w=g.Q((b=this.T)==null?void 0:b.onOverflow,RD))this.Y=g.Q(w,fKZ);var C;if((C=this.T)==null?0:C.thumbnailImage){var l,E;b=((l=this.T)==null?void 0:(E=l.thumbnailImage)== null?void 0:E.sources)||[];if(b.length===0)break a;this.thumbnailImage.update({url:b[0].url})}else{var p;if((p=this.T)==null?0:p.thumbnailIconName){var W;this.thumbnailIcon.update({icon:(W=this.T)==null?void 0:W.thumbnailIconName})}}var h;this.shouldShowOverflowButton=!((h=this.T)==null||!h.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.T)==null||!t.shouldHideDismissButton)}var d;this.banner.element.setAttribute("aria-label",((d=this.T)==null?void 0:d.a11yLabel)||"");var N; this.XE=(N=this.T)==null?void 0:N.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;TaS(this)}}; g.y.vl9=function(){this.isVisible=!0;TaS(this)}; g.y.lvL=function(){this.isVisible=!1;TaS(this)}; g.y.l1=function(){N6.prototype.l1.call(this);this.V&&this.K.logVisibility(this.banner.element,this.isVisible)}; g.y.Nt=function(){N6.prototype.Nt.call(this,!1);this.V&&this.K.logClick(this.banner.element)}; g.y.Ja=function(w){this.W||(this.W=new Fa(this.K),g.T(this,this.W));var D,M;if((D=this.Y)==null?0:(M=D.menu)==null?0:M.menuRenderer)this.W.open(this.Y.menu.menuRenderer,w.target),w.preventDefault()}; g.y.Je=function(){}; g.y.FY=function(){}; g.y.oJ=function(){this.K.N8("suggested_action_view_model");N6.prototype.oJ.call(this)};g.I(s1,Gz); s1.prototype.Je=function(w){var D,M,L;this.productUpsellSuggestedActionViewModel=g.Q((D=w.getWatchNextResponse())==null?void 0:(M=D.playerOverlays)==null?void 0:(L=M.playerOverlayRenderer)==null?void 0:L.suggestedActionViewModel,AMr);var Z;if((Z=this.productUpsellSuggestedActionViewModel)==null?0:Z.content){var k;this.T=g.Q((k=this.productUpsellSuggestedActionViewModel)==null?void 0:k.content,vys)}var b,C;if(this.V=!!((b=this.productUpsellSuggestedActionViewModel)==null?0:(C=b.loggingDirectives)==null? 0:C.trackingParams)){var l,E;this.K.setTrackingParams(this.banner.element,((l=this.productUpsellSuggestedActionViewModel)==null?void 0:(E=l.loggingDirectives)==null?void 0:E.trackingParams)||null)}var p;this.isCounterfactual=!((p=this.productUpsellSuggestedActionViewModel)==null||!p.isCounterfactualServing)}; s1.prototype.FY=function(){var w=[],D,M=g.x(((D=this.productUpsellSuggestedActionViewModel)==null?void 0:D.ranges)||[]);for(D=M.next();!D.done;D=M.next()){var L=D.value;L&&(D=Number(L.startTimeMilliseconds),L=Number(L.endTimeMilliseconds),isNaN(D)||isNaN(L)||w.push(new g.ue(D,L,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.K.bT(w)};g.I(u2r,tX);g.I(a$,tX);a$.prototype.onVideoDataChange=function(w,D){var M=this;if(!hW(D)&&(w==="newdata"&&Q7x(this),this.T&&w==="dataloaded")){this.T=!1;var L;Tf(X_(sK(this.api.X(),(L=this.api.getVideoData())==null?void 0:g.E9(L)),function(Z){KNI(M,Z)}),function(){M.T=!0})}}; a$.prototype.wZ=function(){var w=this;if(g.hL(this.api.X())){var D,M=g.GA(this.api.X(),(D=this.api.getVideoData())==null?void 0:g.E9(D));return X_(fP(M),function(L){var Z=MI();Li(Z,L);return w.api.wZ(Z)})}return fP(this.api.wZ())};g.I(g.cp,g.EH);g.y=g.cp.prototype;g.y.open=function(){g.o$(this.Ac,this.kA)}; g.y.V4=function(w){mdJ(this);var D=this.options[w];D&&(D.element.setAttribute("aria-checked","true"),this.sV(this.Kf(w)),this.L=w)}; g.y.cX=function(w){g.gM(this.kA);for(var D={},M=!1,L=0;L=0?this.T.playbackRate:1}catch(w){return 1}}; g.y.setPlaybackRate=function(w){this.getPlaybackRate()!==w&&(this.T.playbackRate=w);return w}; g.y.qQ=function(){return this.T.loop}; g.y.setLoop=function(w){this.T.loop=w}; g.y.canPlayType=function(w,D){return this.T.canPlayType(w,D)}; g.y.isPaused=function(){return this.T.paused}; g.y.isSeeking=function(){return this.T.seeking}; g.y.isEnded=function(){return this.T.ended}; g.y.fK=function(){return this.T.muted}; g.y.qZ=function(w){UU();this.T.muted=w}; g.y.As=function(){return this.T.played||ML([],[])}; g.y.m5=function(){try{var w=this.T.buffered}catch(D){}return w||ML([],[])}; g.y.Ze=function(){return this.T.seekable||ML([],[])}; g.y.x4=function(){var w=this.T;return w.getStartDate?w.getStartDate():null}; g.y.getCurrentTime=function(){return this.T.currentTime}; g.y.setCurrentTime=function(w){this.T.currentTime=w}; g.y.getDuration=function(){return this.T.duration}; g.y.load=function(){var w=this.T.playbackRate;try{this.T.load()}catch(D){}this.T.playbackRate=w}; g.y.pause=function(){this.T.pause()}; g.y.play=function(){var w=this.T.play();if(!w||!w.then)return null;w.then(void 0,function(){}); return w}; g.y.K7=function(){return this.T.readyState}; g.y.xf=function(){return this.T.networkState}; g.y.qs=function(){return this.T.error?this.T.error.code:null}; g.y.WI=function(){return this.T.error?this.T.error.message:""}; g.y.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var w=this.T,D=w.webkitDroppedFrameCount;if(w=w.webkitDecodedFrameCount)return{droppedVideoFrames:D||0,totalVideoFrames:w}}return{}}; g.y.Fl=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.y.Wt=function(){return!!this.T.webkitShowPlaybackTargetPicker()}; g.y.togglePictureInPicture=function(){var w=this.T,D=window.document;window.document.pictureInPictureEnabled?this.T!==D.pictureInPictureElement?w.requestPictureInPicture():D.exitPictureInPicture():Iw()&&w.webkitSetPresentationMode(w.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.y.Qx=function(){var w=this.T;return new g.Sq(w.offsetLeft,w.offsetTop)}; g.y.getSize=function(){return g.MP(this.T)}; g.y.setSize=function(w){g.Du(this.T,w)}; g.y.getVolume=function(){return this.T.volume}; g.y.setVolume=function(w){UU();this.T.volume=w}; g.y.Xx=function(w){this.W[w]||(this.T.addEventListener(w,this.listener),this.W[w]=this.listener)}; g.y.setAttribute=function(w,D){this.T.setAttribute(w,D)}; g.y.removeAttribute=function(w){this.T.removeAttribute(w)}; g.y.hasAttribute=function(w){return this.T.hasAttribute(w)}; g.y.S5=wR(61);g.y.Nc=wR(63);g.y.wO=wR(65);g.y.GW=wR(67);g.y.KZ=function(){return Wg(this.T)}; g.y.Z1=function(w){g.AB(this.T,w)}; g.y.us=function(w){return g.zd(this.T,w)}; g.y.FU=function(){return g.Ug(document.body,this.T)}; g.y.audioTracks=function(){var w=this.T;if("audioTracks"in w)return w.audioTracks}; g.y.oJ=function(){for(var w=g.x(Object.keys(this.W)),D=w.next();!D.done;D=w.next())D=D.value,this.T.removeEventListener(D,this.W[D]);jV.prototype.oJ.call(this)}; g.y.WZ=function(w){this.T.disableRemotePlayback=w};g.I(zz,g.J);g.I(Pp,g.J);Pp.prototype.show=function(){g.J.prototype.show.call(this);this.Sk()}; Pp.prototype.hide=function(){g.J.prototype.hide.call(this);this.delay.stop();this.D.stop()}; Pp.prototype.Sk=function(){var w=(0,g.IC)(),D=lnI(this.d9);VT(this.T,D.bandwidth_samples);VT(this.Y,D.network_activity_samples);VT(this.L,D.live_latency_samples);VT(this.V,D.buffer_health_samples);var M={};D=g.x(Object.entries(D));for(var L=D.next();!L.done;L=D.next()){var Z=g.x(L.value);L=Z.next().value;Z=Z.next().value;this.G[L]!==Z&&(M[L]=" "+String(Z));this.G[L]=Z}this.update(M);w=(0,g.IC)()-w>25?5E3:500;this.delay.start(w)}; Pp.prototype.B=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.I(W1G,tX);g.I(O1,g.X);O1.prototype.T=function(){var w=(0,g.IC)()-this.startTime;w=wthis.D[w])&&(this.T=w,this.It())}; g.y.onCueRangeExit=function(w){var D=gcI(this,w);D&&this.T===w&&this.api.Q7("innertubeCommand",D);AD(this);this.T=void 0}; g.y.Ko=function(w){this.L=w}; g.y.zB=function(){this.It();this.L=void 0}; g.y.It=function(){if(this.T!==void 0){var w=(w=ms(this,this.T))&&w.onCueRangeEnter?n1(w.onCueRangeEnter):void 0;var D=ms(this,this.T);a:if(D&&D.additionalTrigger){var M=g.x(D.additionalTrigger);for(var L=M.next();!L.done;L=M.next())if(L=L.value,L.type){var Z=void 0,k=void 0;if((Z=this.c_[L.type])==null?0:Z((k=L.args)!=null?k:{})){M=!0;break a}}M=!1}else M=!0;w&&M&&(this.api.Q7("innertubeCommand",w),RCN(this,D),this.D[this.T]!==void 0&&this.D[this.T]++,this.B=!0)}}; g.y.oJ=function(){this.timelyActions=this.L=this.T=this.videoId=void 0;this.D={};this.O0();AD(this);tX.prototype.oJ.call(this)};g.I(F1J,tX);g.I(wS,HR);wS.prototype.D=function(w){this.L(w?2:1);this.K.publish("audiopreferencechange")}; wS.prototype.xP=function(){var w=this.K.getPresentingPlayerType();w===2||w===3?(this.T=!1,this.Ac.gz(this)):this.K.C("html5_enable_new_audio_settings_menu")?(w=this.getVoiceBoostState(),w!==1?(w===0?(jg(this,this.V()===2),this.setEnabled(!0)):(jg(this,!1),this.setEnabled(!1)),this.T||(this.Ac.sB(this),this.T=!0)):this.T&&(this.Ac.gz(this),this.T=!1)):this.T||(w=this.hasVoiceBoostAudioTrack(),this.setEnabled(w),w=this.V()===2&&w,jg(this,w),this.Ac.sB(this),this.T=!0)}; wS.prototype.oJ=function(){this.Ac.gz(this);HR.prototype.oJ.call(this)};g.I(siR,tX);g.y=siR.prototype;g.y.getVoiceBoostUserPreference=function(){return this.T}; g.y.setVoiceBoostUserPreference=function(w){this.api.H_("vb_set",{pref:w});g.gQ("yt-player-voice-boost",w);w!==this.T&&(this.T=w,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Bs())}; g.y.hasVoiceBoostAudioTrack=function(){var w,D,M=(w=this.api.getVideoData())==null?void 0:(D=w.L)==null?void 0:D.T;return M?uX(M,function(L){var Z;return((Z=L.audio)==null?void 0:Z.V)===!0}):!1}; g.y.getVoiceBoostState=function(){return this.api.uy(3)}; g.y.updateEnvironmentData=function(){this.api.X().Jd=this.T};var T$K=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.I(LT,tX);LT.prototype.oJ=function(){this.G&&(g.p7(this.G),this.G=void 0);tX.prototype.oJ.call(this)}; LT.prototype.gr=function(){(this.V?!this.T:this.L)&&kX(this)}; LT.prototype.Eg=function(w,D,M){var L=this;if(vcC(w)){var Z=M||"";if(this.T)D=bD(this,Z),cyr(w,D);else{var k=new g.l_;D.push(k.promise);this.W.promise.then(function(){var b=bD(L,Z);cyr(w,b);k.resolve()})}}}; LT.prototype.eC=function(w){var D=this;if(this.V||this.L)w.f0=bD(this,w.videoId),this.T||(this.D=new HF,this.W.promise.then(function(){D.Wz.Zy("pot_if");w.f0=bD(D,w.videoId)}))};g.I(g.CT,g.J);g.CT.prototype.select=function(){this.api.ZS(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.El||void 0)&&this.api.logClick(this.element)}; g.CT.prototype.onClick=function(w){if(g.w0(this.api.X())&&this.api.C("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var D=this.suggestion.N2(),M={};g.P$(this.api,M);D=g.dh(D,M);g.R4(D,this.api,w)}else g.gW(w,this.api,this.V,this.suggestion.sessionData||void 0)&&this.select()}; g.CT.prototype.onKeyPress=function(w){switch(w.keyCode){case 13:case 32:w.defaultPrevented||(this.select(),w.preventDefault())}}; g.CT.prototype.onVideoDataChange=function(){var w=this.api.getVideoData(),D=this.api.X();this.V=w.yZ?!1:D.D};g.I(zCJ,g.J);g.y=zCJ.prototype;g.y.oJ=function(){this.hide();g.NA(this.D);g.Ls(this.stills);this.stills.length=0;this.V&&this.V.removeEventListener("click",this.iU);this.L&&this.L.removeEventListener("click",this.cf);this.T&&this.T.removeEventListener("click",this.cf);g.J.prototype.oJ.call(this)}; g.y.cf=function(w){this.G&&this.G(w)}; g.y.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var w,D,M,L,Z;var k=(((w=this.videoData)==null?0:(D=w.suggestions)==null?0:D.length)?(M=this.videoData)==null?void 0:M.suggestions:((L=this.videoData)==null?0:g.jA(L))?[(Z=this.videoData)==null?void 0:g.jA(Z)]:[]).slice(0,18);if((w=this.B)&&this.Y&&this.W)if(g.dE(w),k.length)for(this.stills.length>k.length&&g.Ls(this.stills.splice(k.length)),this.stills.length=k.length,D=0;D=0;w--)this.features[w].dispose();this.features.length=0;g.X.prototype.oJ.call(this)};MbN.prototype.reset=function(){this.T=this.V=NaN};g.y=L7G.prototype;g.y.reset=function(){yz(this.timerName)}; g.y.tick=function(w,D){xK(w,D,this.timerName)}; g.y.Zy=function(w){return gw(w,void 0,this.timerName)}; g.y.WV=function(w){g.Ad(w,void 0,this.timerName)}; g.y.infoGel=function(w){g.Ng(w,this.timerName)};g.I(bFj,g.mI);g.y=bFj.prototype;g.y.lz=function(w){return this.loop||!!w||this.index+1=0}; g.y.setShuffle=function(w){this.shuffle=w;w=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var D=0;D0)||BV(this,1,!0)}; g.y.tJ=function(){this.Y=!0;this.T.gt(this.W);this.W=this.T.j(document,"mouseup",this.xj)}; g.y.xj=function(){this.Y=!1;BV(this,8,!1);this.T.gt(this.W);this.W=this.T.j(this.target,"mousedown",this.tJ)}; g.y.CQ=function(w){if(w=(w=w.changedTouches)&&w[0])this.c_=w.identifier,this.T.gt(this.U),this.U=this.T.j(this.target,"touchend",this.Mi,void 0,!0),BV(this,1024,!0)}; g.y.Mi=function(w){if(w=w.changedTouches)for(var D=0;D1280||Z>720)if(D=L.yL("maxresdefault.jpg"))break;if(k>640||Z>480)if(D=L.yL("maxresdefault.jpg"))break;if(k>320||Z>180)if(D=L.yL("sddefault.jpg")||L.yL("hqdefault.jpg")||L.yL("mqdefault.jpg"))break;if(D=L.yL("default.jpg"))break}g.jZ(w)&&(w=new Image,w.addEventListener("load", function(){Eok()}),w.src=D?D:"",this.api.nJ().tick("ftr")); this.D.style.backgroundImage=D?"url("+D+")":""};g.I(g.X6,g.J);g.X6.prototype.resize=function(){}; g.X6.prototype.V=function(w){var D=this;this.L=!1;J2J(this);var M=w.bF,L=this.api.X();M!=="GENERIC_WITHOUT_LINK"||L.Y?M==="TOO_MANY_REQUESTS"?(L=this.api.getVideoData(),this.sV(Ss(this,"TOO_MANY_REQUESTS_WITH_LINK",L.N2(),void 0,void 0,void 0,!1))):M!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||L.Y?this.api.X().C("html5_enable_bandaid_error_screen")&&M==="HTML5_SPS_UMP_STATUS_REJECTED"&&!L.Y?(L=L.hostLanguage,w="//support.google.com/youtube?p=videoError",L&&(w=g.dh(w,{hl:L})),this.sV(Ss(this,"HTML5_SPS_UMP_STATUS_REJECTED", w))):this.api.X().C("enable_adb_handling_in_sabr")&&M==="BROWSER_OR_EXTENSION_ERROR"&&!L.Y?(L=L.hostLanguage,w="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",L&&(w=g.dh(w,{hl:L})),this.sV(Ss(this,"BROWSER_OR_EXTENSION_ERROR",w))):this.sV(g.TW(w.errorMessage)):this.sV(Ss(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(w=L.hostLanguage,M="//support.google.com/youtube/?p=player_error1",w&&(M=g.dh(M, {hl:w})),this.sV(Ss(this,"GENERIC_WITH_LINK_AND_CPN",M,!0)),L.GU&&!L.D&&QaS(this,function(k){if(g.gW(k,D.api,!yq(D.api.X()))){k={as3:!1,html5:!0,player:!0,cpn:D.api.getVideoData().clientPlaybackNonce};var b=D.api;b.n6("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:k});b.isFullscreen()&&b.toggleFullscreen()}})); if(this.L){var Z=this.Z5("ytp-error-link");Z&&(this.api.createClientVe(Z,this,216104),this.api.logVisibility(Z,!0),QaS(this,function(){D.api.logClick(Z)}))}}; var Sea=/([^<>]+)<\/a>/;g.I(z8x,g.J);z8x.prototype.vH=function(w,D,M){M=M===void 0?!1:M;switch(D){case 1:Qr(this,w,this.L,M);break;case 2:Qr(this,w,this.D,M);break;case 3:Qr(this,w,this.T,M);break;case 4:Qr(this,w,this.V,M)}};g.I(VbK,g.J);g.y=VbK.prototype;g.y.onClick=function(w){this.innertubeCommand?(this.K.Q7("innertubeCommand",this.innertubeCommand),w.preventDefault()):g.gW(w,this.K,!0);this.K.logClick(this.element)}; g.y.onVideoDataChange=function(w,D){OFT(this,D);this.uT&&K7k(this,this.uT)}; g.y.G9=function(w){var D=this.K.getVideoData();this.videoId!==D.videoId&&OFT(this,D);this.T&&K7k(this,w.state);this.uT=w.state}; g.y.XQ=function(){this.fade.show();this.K.publish("paidcontentoverlayvisibilitychange",!0);this.K.logVisibility(this.element,!0)}; g.y.aO=function(){this.fade.hide();this.K.publish("paidcontentoverlayvisibilitychange",!1);this.K.logVisibility(this.element,!1)};g.I(Jq,g.J);Jq.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.J.prototype.hide.call(this)}; Jq.prototype.onStateChange=function(w){this.lj(w.state)}; Jq.prototype.lj=function(w){if(g.z(w,128)||this.api.XJ())var D=!1;else{var M;D=this.api.C("web_watch_enable_multiview_manager")&&((M=this.api.getVideoData())==null?0:hW(M))?!1:g.z(w,16)||g.z(w,1)?!0:!1}D?this.T.start():this.hide()}; Jq.prototype.V=function(){this.message.style.display="block"};g.I(zW,g.kV);zW.prototype.onMutedAutoplayChange=function(w){this.L&&(w?(mSk(this),this.XQ()):(this.T&&this.logClick(),this.aO()))}; zW.prototype.fJ=function(w){this.api.isMutedByMutedAutoplay()&&g.Y0(w,2)&&this.aO()}; zW.prototype.onClick=function(){this.api.unMute();this.logClick()}; zW.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.I(g.Vr,g.xM);g.y=g.Vr.prototype;g.y.init=function(){var w=this.api,D=w.getPlayerStateObject();this.Oc=w.getPlayerSize();this.UB(D);this.OZ();this.EB();this.api.publish("basechromeinitialized",this);this.vl()&&this.api.publish("standardControlsInitialized")}; g.y.onVideoDataChange=function(w,D){var M=this.xm!==D.videoId;if(M||w==="newdata")w=this.api,w.isFullscreen()||(this.Oc=w.getPlayerSize());M&&(this.xm=D.videoId,M=this.Bd,M.W_=3E3,BV(M,512,!0),this.OZ());this.api.C("web_render_jump_buttons")&&D.showSeekingControls&&(this.Ii=572)}; g.y.D$9=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.y.mp=function(){var w=this.api.Y8()&&this.api.h3(),D=this.api.DT();return this.PG||w||this.V0||D}; g.y.g0=function(){var w=!this.mp();g.Lt(this.api.getRootNode(),"ytp-menu-shown",!w)}; g.y.gL=function(w){try{if(!g.Ug(this.api.getRootNode(),w))return!1}catch(D){return!1}for(;w&&!rxx(w);)w=w===this.api.getRootNode()?null:w.parentElement||null;return!!w}; g.y.Zl=function(w){var D=this.api.getRootNode();g.Lt(D,"ytp-autohide",w);g.Lt(D,"ytp-autohide-active",!0);this.YX.start(w?250:100);w&&(this.Ax=!1,g.D6(D,"ytp-touch-mode"));this.WG=!w;this.api.Ml(!w);this.api.C("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",w)}; g.y.fd=function(){var w=this.api.getRootNode();g.Lt(w,"ytp-autohide-active",!1)}; g.y.CTL=function(){this.D7=!0}; g.y.cuW=function(w){if(this.api.X().C("player_doubletap_to_seek")||this.api.X().G)this.D7=!1,this.nM&&this.gt(this.nM),this.Ow===0&&Oc(this,w)?(this.L3(),this.eG.start(),this.nM=this.j(this.api.qd(),"touchmove",this.CTL,void 0,!0)):this.eG.stop();MzG(this)&&Oc(this,w)&&!this.api.X().G&&w3k(this);var D=this.KM.lZ();if(!g.w0(this.api.X())&&O2&&LRx(this,w))D&&w.preventDefault();else if(this.Ax=!0,g.AB(this.api.getRootNode(),"ytp-touch-mode"),this.Bd.pW(),this.api.X().C("player_doubletap_to_seek")||this.api.X().G)if(D= this.api.getPlayerStateObject(),!(!this.api.Lx()||g.z(D,2)&&g.QP(this.api)||g.z(D,64))){D=Date.now()-this.IR;this.Ow+=1;if(D<=350){this.VQ=!0;D=this.api.getPlayerSize().width/3;var M=this.api.getRootNode().getBoundingClientRect(),L=w.targetTouches[0].clientX-M.left;M=w.targetTouches[0].clientY-M.top;var Z=(this.Ow-1)*10;L>0&&LD*2&&L=650,L=w.width<528;this.Bd.resize();if(this.api.C("web_player_use_screen_width_for_big_mode")){var Z,k=w.width>=((Z=g.A3(this.api.X().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?Z:2E3);g.Lt(D,"ytp-big-mode",k)}g.Lt(D,"ytp-fullscreen",this.api.isFullscreen());g.Lt(D,"ytp-large-width-mode",M);this.api.C("delhi_modern_web_player")?g.Lt(D,"ytp-xsmall-width-mode",L):g.Lt(D,"ytp-small-mode",this.kc()); g.Lt(D,"ytp-tiny-mode",this.ZT());g.Lt(D,"ytp-big-mode",this.x9());this.N5&&this.N5.resize(w)}; g.y.fJ=function(w){this.UB(w.state);this.OZ()}; g.y.uc=wR(3);g.y.aj=function(){var w=!!this.xm&&!this.api.CO()&&!this.cU,D=this.api.getPresentingPlayerType()===2,M=this.api.X();if(D)return M=GW(this.api.Ka()),w&&(M&&M.player?w=(w=M.player.getVideoData(2))?w.isListed&&!g.pc(M.player.X()):!1:(Zg("showInfoBarDuringAd: this is null"),w=!1)),w;D=M.C("web_player_imax_theater_mode")&&this.api.X1();return w&&(M.cC||D||this.api.isFullscreen()||M.HX)}; g.y.OZ=function(){var w=this.aj();this.i8!==w&&(this.i8=w,g.Lt(this.api.getRootNode(),"ytp-hide-info-bar",!w))}; g.y.UB=function(w){var D=w.isCued()||this.api.I$()&&this.api.getPresentingPlayerType()!==3;D!==this.isCued&&(this.isCued=D,this.Z7&&this.gt(this.Z7),this.Z7=this.j(this.api.qd(),"touchstart",this.cuW,void 0,D));var M=this.Bd,L=w.isPlaying()&&!g.z(w,32)||this.api.KE();BV(M,128,!L);M=this.Bd;L=this.api.getPresentingPlayerType()===3;BV(M,256,L);M=this.api.getRootNode();g.z(w,2)?L=[z6.ENDED]:(L=[],g.z(w,8)?L.push(z6.PLAYING):g.z(w,4)&&L.push(z6.PAUSED),g.z(w,1)&&!g.z(w,32)&&L.push(z6.BUFFERING),g.z(w, 32)&&L.push(z6.SEEKING),g.z(w,64)&&L.push(z6.UNSTARTED));g.zD(this.cJ,L)||(g.MC(M,this.cJ),this.cJ=L,g.wF(M,L));L=this.api.X();var Z=g.z(w,2);a:{var k=this.api.X();var b=k.controlsType;switch(b){case "2":case "0":k=!1;break a}k=b==="3"&&!g.z(w,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:KrD(GW(this.api.Ka())))||this.api.DT()||g.w0(k)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Lt(M,"ytp-hide-controls",!k);g.Lt(M,"ytp-native-controls",L.controlsType==="3"&&!D&&!Z&&!this.V0);g.z(w, 128)&&!g.w0(L)?(this.N5||(this.N5=new g.X6(this.api),g.T(this,this.N5),g.mH(this.api,this.N5.element,4)),this.N5.V(w.QL),this.N5.show()):this.N5&&(this.N5.dispose(),this.N5=null)}; g.y.M3=function(){return this.api.Y8()&&this.api.h3()?(this.api.EK(!1,!1),!0):this.api.CO()?(g.JW(this.api,!0),!0):!1}; g.y.onMutedAutoplayChange=function(w){this.V0=w;this.g0()}; g.y.x9=function(){return!1}; g.y.kc=function(){return!this.x9()&&(this.api.getPlayerSize().width=0&&D.left>=0&&D.bottom>D.top&&D.right>D.left?D:null;D=this.size;w=w.clone();D=D.clone();L&&(b=D,Z=5,(Z&65)==65&&(w.x=L.right)&&(Z&=-2),(Z&132)==132&&(w.y=L.bottom)&&(Z&=-5),w.xL.right&&(b.width=Math.min(L.right-w.x,k+b.width-L.left),b.width=Math.max(b.width,0))),w.x+b.width>L.right&&Z&1&&(w.x=Math.max(L.right-b.width,L.left)),w.yL.bottom&&(b.height=Math.min(L.bottom-w.y,k+b.height-L.top),b.height=Math.max(b.height,0))),w.y+b.height>L.bottom&&Z&4&&(w.y=Math.max(L.bottom-b.height,L.top)));L=new g.Td(0,0,0,0);L.left=w.x;L.top=w.y;L.width= D.width;L.height=D.height;g.KR(this.element,new g.Sq(L.left,L.top));g.NA(this.L);this.L.j(bg(this),"contextmenu",this.r19);this.L.j(this.K,"fullscreentoggled",this.onFullscreenToggled);this.L.j(this.K,"pageTransition",this.ID)}; g.y.r19=function(w){if(!w.defaultPrevented){var D=y$(w);g.Ug(this.element,D)||this.aO();this.K.X().disableNativeContextMenu&&w.preventDefault()}}; g.y.onFullscreenToggled=function(){this.aO();FRk(this)}; g.y.ID=function(){this.aO()};g.I(bx,g.J);bx.prototype.onClick=function(){var w=this,D,M,L,Z;return g.B(function(k){if(k.T==1)return D=w.api.X(),M=w.api.getVideoData(),L=w.api.getPlaylistId(),Z=D.getVideoUrl(M.videoId,L,void 0,!0),g.c(k,a4j(w,Z),2);k.V&&svx(w);w.api.logClick(w.element);g.Hr(k)})}; bx.prototype.Sk=function(){this.updateValue("icon",{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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=G6x(this);g.Lt(this.element, "ytp-copylink-button-visible",this.visible);this.h1(this.visible);this.tooltip.tY();this.api.logVisibility(this.element,this.visible&&this.U)}; bx.prototype.A1=function(w){g.J.prototype.A1.call(this,w);this.api.logVisibility(this.element,this.visible&&w)}; bx.prototype.oJ=function(){g.J.prototype.oJ.call(this);g.D6(this.element,"ytp-copylink-button-visible")};g.I(vUa,g.J);g.y=vUa.prototype;g.y.show=function(){g.J.prototype.show.call(this);g.S3(this.V)}; g.y.hide=function(){this.D.stop();this.L=0;this.Z5("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.D6(this.element,"ytp-chapter-seek");g.D6(this.element,"ytp-time-seeking");g.J.prototype.hide.call(this)}; g.y.h5=function(w,D,M,L){this.L=w===this.Y?this.L+L:L;this.Y=w;var Z=w===-1?this.B:this.G;Z&&this.K.logClick(Z);this.W?this.V.stop():g.JB(this.V);this.D.start();this.element.setAttribute("data-side",w===-1?"back":"forward");var k=3*this.K.qd().getPlayerSize().height;Z=this.K.qd().getPlayerSize();Z=Z.width/3-3*Z.height;this.T.style.width=k+"px";this.T.style.height=k+"px";w===1?(this.T.style.left="",this.T.style.right=Z+"px"):w===-1&&(this.T.style.right="",this.T.style.left=Z+"px");var b=k*2.5;k=b/ 2;var C=this.Z5("ytp-doubletap-ripple");C.style.width=b+"px";C.style.height=b+"px";w===1?(w=this.K.qd().getPlayerSize().width-D+Math.abs(Z),C.style.left="",C.style.right=w-k+"px"):w===-1&&(w=Math.abs(Z)+D,C.style.right="",C.style.left=w-k+"px");C.style.top="calc((33% + "+Math.round(M)+"px) - "+k+"px)";if(M=this.Z5("ytp-doubletap-ripple"))M.classList.remove("ytp-doubletap-ripple"),M.classList.add("ytp-doubletap-ripple");c1T(this,this.W?this.L:L)}; g.y.Nn=function(w,D,M){if(M=M===void 0?null:M){var L=w===-1?this.B.visualElement:this.G.visualElement;M={seekData:M};var Z=g.$9();Z&&PL(Z,L,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",M)}this.L=w===this.Y?this.L+D:D;this.Y=w;L=this.K.qd().getPlayerSize();this.W?this.V.stop():g.JB(this.V);this.D.start();this.element.setAttribute("data-side",w===-1?"back":"forward");g.AB(this.element,"ytp-time-seeking");this.T.style.width="110px";this.T.style.height="110px";M=L.width*.1-15;w===1?this.y7?(this.T.style.right= M+"px",this.T.style.left=""):(this.T.style.right="",this.T.style.left=L.width*.8-30+"px"):w===-1&&(this.y7?(this.T.style.right="",this.T.style.left=M+"px"):(this.T.style.right="",this.T.style.left=L.width*.1-15+"px"));this.T.style.top=L.height*.5+15+"px";c1T(this,this.W?this.L:D)}; g.y.AO=function(w,D,M){M=M===void 0?null:M;g.JB(this.V);this.D.start();switch(w){case -1:w="back";break;case 1:w="forward";break;default:w=""}this.element.setAttribute("data-side",w);this.T.style.width="0";this.T.style.height="0";g.AB(this.element,"ytp-chapter-seek");this.updateValue("seekText",D);this.updateValue("seekTime","");D=this.Z5("ytp-seek-icon");if(M){a:if(M){switch(M){case "PREMIUM_STANDALONE":M=n7C();break a;case "PREMIUM_STANDALONE_CAIRO":M=FEr();break a}M=void 0}else M=null;this.updateValue("seekIcon", M);D.style.display="inline-block"}else D.style.display="none"};g.I(BdI,N6);g.y=BdI.prototype;g.y.Ni=function(w){this.Jc||(this.Jc=new Fa(this.K),g.T(this,this.Jc));var D,M;if((D=this.mu)==null?0:(M=D.menu)==null?0:M.menuRenderer)this.Jc.open(this.mu.menu.menuRenderer,w.target),w.preventDefault()}; g.y.zP=function(){return!!this.T}; g.y.ww=function(){return!!this.T}; g.y.Ty=function(w){w.target===this.overflowButton.element?w.preventDefault():(this.HA&&this.K.Q7("innertubeCommand",this.HA),this.Nt(!1))}; g.y.Nh=function(){this.Nt(!0);var w,D;((w=this.T)==null?0:(D=w.bannerData)==null?0:D.dismissedStatusKey)&&this.GU.push(this.T.bannerData.dismissedStatusKey);this.po()}; g.y.PY=function(){this.po();lx(this)}; g.y.Crh=function(w){var D=this,M;if(w.id!==((M=this.T)==null?void 0:M.identifier)){this.po();M=g.x(this.c_);for(var L=M.next();!L.done;L=M.next()){var Z=L.value,k=void 0,b=void 0;if((L=(k=Z)==null?void 0:(b=k.bannerData)==null?void 0:b.itemData)&&Z.identifier===w.id){b=k=void 0;var C=((k=Z)==null?void 0:(b=k.bannerData)==null?void 0:b.dismissedStatusKey)||"";if(this.GU.includes(C))return;this.T=Z;this.banner.element.setAttribute("aria-label",L.accessibilityLabel||"");L.trackingParams&&(this.D=!0, this.K.setTrackingParams(this.badge.element,L.trackingParams));this.show();this.B.show();xe(this);this.W_.h1(!L.stayInApp);VzC(this);qZI(this);CG(this);this.HA=g.Q(L.onTapCommand,RD);if(Z=g.Q(L.menuOnTap,RD))this.mu=g.Q(Z,fKZ);Z=void 0;this.banner.update({thumbnail:(Z=(L.thumbnailSources||[])[0])==null?void 0:Z.url,title:L.productTitle,price:L.priceReplacementText?L.priceReplacementText:L.price,salesOriginalPrice:X3C(this),priceDropReferencePrice:Tdj(this),promotionText:eux(this),priceA11yText:uMr(this), affiliateDisclaimer:L.affiliateDisclaimer,vendor:SZJ(this)});C=b=k=Z=void 0;((Z=L)==null?0:(k=Z.hiddenProductOptions)==null?0:k.showDropCountdown)&&((b=L)==null?0:(C=b.hiddenProductOptions)==null?0:C.dropTimestampMs)&&(this.oO=new g.ui(function(){zuS(D)},1E3),this.W_.hide(),this.countdownTimer.show(),zuS(this)); this.K.C("web_player_enable_featured_product_banner_exclusives_on_desktop")&&f4x(this)&&(this.NC=new g.ui(function(){r1R(D)},1E3),r1R(this))}}this.K.getRootNode()&&g.AB(this.K.getRootNode(),"ytp-featured-product-shown")}}; g.y.po=function(){this.T&&(this.T=void 0,this.Lf(),this.K.getRootNode()&&g.D6(this.K.getRootNode(),"ytp-featured-product-shown"))}; g.y.onVideoDataChange=function(w,D){var M=this;w==="dataloaded"&&lx(this);var L,Z,k;w=g.Q((L=D.getWatchNextResponse())==null?void 0:(Z=L.playerOverlays)==null?void 0:(k=Z.playerOverlayRenderer)==null?void 0:k.productsInVideoOverlayRenderer,cMZ);this.overflowButton.show();this.dismissButton.hide();var b=w==null?void 0:w.featuredProductsEntityKey;this.trendingOfferEntityKey=w==null?void 0:w.trendingOfferEntityKey;this.c_.length||(J1r(this,b),CG(this));var C;(C=this.FQ)==null||C.call(this);this.FQ=g.Ry.subscribe(function(){J1r(M, b);CG(M)})}; g.y.oJ=function(){lx(this);VzC(this);qZI(this);N6.prototype.oJ.call(this)};g.I(A1a,g.J);A1a.prototype.onClick=function(){this.K.logClick(this.element,this.V)};g.I(wix,g.kV);g.y=wix.prototype;g.y.show=function(){g.kV.prototype.show.call(this);this.K.publish("infopaneldetailvisibilitychange",!0);this.K.logVisibility(this.element,!0);DlN(this,!0)}; g.y.hide=function(){g.kV.prototype.hide.call(this);this.K.publish("infopaneldetailvisibilitychange",!1);this.K.logVisibility(this.element,!1);DlN(this,!1)}; g.y.getId=function(){return this.D}; g.y.jx=function(){return this.itemData.length}; g.y.onVideoDataChange=function(w,D){if(D){var M,L,Z,k;this.update({title:((M=D.nf)==null?void 0:(L=M.title)==null?void 0:L.content)||"",body:((Z=D.nf)==null?void 0:(k=Z.bodyText)==null?void 0:k.content)||""});var b;w=((b=D.nf)==null?void 0:b.trackingParams)||null;this.K.setTrackingParams(this.element,w);b=g.x(this.itemData);for(w=b.next();!w.done;w=b.next())w.value.dispose();this.itemData=[];var C;if((C=D.nf)==null?0:C.ctaButtons)for(D=g.x(D.nf.ctaButtons),C=D.next();!C.done;C=D.next())if(C=g.Q(C.value, nyl))C=new A1a(this.K,C,this.T),C.q8&&(this.itemData.push(C),C.CV(this.items))}}; g.y.oJ=function(){this.hide();g.kV.prototype.oJ.call(this)};g.I(Zzk,g.J);g.y=Zzk.prototype;g.y.onVideoDataChange=function(w,D){LGa(this,D);this.uT&&bzI(this,this.uT)}; g.y.bS=function(w){var D=this.K.getVideoData();this.videoId!==D.videoId&&LGa(this,D);bzI(this,w.state);this.uT=w.state}; g.y.kp=function(w){(this.L=w)?this.hide():this.T&&this.show()}; g.y.Xy=function(){this.V||this.XQ();this.showControls=!0}; g.y.wm=function(){this.V||this.aO();this.showControls=!1}; g.y.XQ=function(){var w,D=(w=this.K)==null?void 0:w.getPlayerSize();w=D.width<380;var M;D=D.height<(((M=this.K)==null?0:M.isEmbedsShortsMode())?400:280);var L,Z;(((L=this.K)==null?0:L.getPlayerStateObject().isCued())||((Z=this.K)==null?0:g.z(Z.getPlayerStateObject(),1024)))&&w&&D||!this.T||this.L||(this.fade.show(),this.K.publish("infopanelpreviewvisibilitychange",!0),this.K.logVisibility(this.element,!0))}; g.y.aO=function(){this.T&&!this.L&&(this.fade.hide(),this.K.publish("infopanelpreviewvisibilitychange",!1),this.K.logVisibility(this.element,!1))}; g.y.fac=function(){this.V=!1;this.showControls||this.aO()};var TPP={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(TPP).reduce(function(w,D){w[TPP[D]]=D;return w},{}); var uOB={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(uOB).reduce(function(w,D){w[uOB[D]]=D;return w},{}); var ShP={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(ShP).reduce(function(w,D){w[ShP[D]]=D;return w},{});var Q8r,JVl;Q8r=[{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"}];JVl=[{option:0,text:Eq(0)},{option:.25,text:Eq(.25)},{option:.5,text:Eq(.5)},{option:.75,text:Eq(.75)},{option:1,text:Eq(1)}]; g.tU=[{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:Q8r},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:Eq(.5)},{option:-1,text:Eq(.75)},{option:0,text:Eq(1)},{option:1,text:Eq(1.5)},{option:2, text:Eq(2)},{option:3,text:Eq(3)},{option:4,text:Eq(4)}]},{option:"background",text:"Background color",options:Q8r},{option:"backgroundOpacity",text:"Background opacity",options:JVl},{option:"windowColor",text:"Window color",options:Q8r},{option:"windowOpacity",text:"Window opacity",options:JVl},{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:Eq(.25)},{option:.5,text:Eq(.5)},{option:.75,text:Eq(.75)},{option:1,text:Eq(1)}]}];var zjZ=[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.I(WGG,g.xM);g.y=WGG.prototype; g.y.bG=function(w){w.repeat||(this.L.Va=!1);var D=!1,M=w.keyCode,L=y$(w),Z=!w.altKey&&!w.ctrlKey&&!w.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||zjZ.includes(M)),k=!1,b=!1,C=this.api.X();w.defaultPrevented?(Z=!1,b=!0):C.TC&&!this.api.isMutedByEmbedsMutedAutoplay()&&(Z=!1);if(M===9)D=!0;else{if(L)switch(M){case 32:case 13:if(L.tagName==="BUTTON"||L.tagName==="A"||L.tagName==="INPUT")D=!0,Z=!1;else if(Z){var l=L.getAttribute("role");!l||l!=="option"&&l!=="button"&&l.indexOf("menuitem")!==0|| (D=!0,L.click(),k=!0)}break;case 37:case 39:case 36:case 35:D=L.getAttribute("role")==="slider";break;case 38:case 40:l=L.getAttribute("role"),L=M===38?L.previousSibling:L.nextSibling,l==="slider"?D=!0:Z&&(l==="option"?(L&&L.getAttribute("role")==="option"&&L.focus(),k=D=!0):l&&l.indexOf("menuitem")===0&&(L&&L.hasAttribute("role")&&L.getAttribute("role").indexOf("menuitem")===0&&L.focus(),k=D=!0))}if(Z&&!k)switch(M){case 38:k=Math.min(this.api.getVolume()+5,100);wu(this.dH,k,!1);this.api.setVolume(k); b=k=!0;break;case 40:k=Math.max(this.api.getVolume()-5,0);wu(this.dH,k,!0);this.api.setVolume(k);b=k=!0;break;case 36:this.api.Lx()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),b=k=!0);break;case 35:this.api.Lx()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),b=k=!0)}}D&&WN(this,!0);(D||b)&&this.Bd.pW();(k||Z&&this.handleGlobalKeyDown(M,w.shiftKey,w.ctrlKey,w.altKey,w.metaKey,w.key,w.code,w.repeat))&&w.preventDefault();C.U&&(w={keyCode:w.keyCode, altKey:w.altKey,ctrlKey:w.ctrlKey,metaKey:w.metaKey,shiftKey:w.shiftKey,handled:w.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Im("onKeyPress",w))}; g.y.Qk=function(w){var D=w.keyCode;(!this.api.C("web_player_spacebar_control_bugfix")||this.api.C("web_player_spacebar_control_bugfix")&&!this.L.Wk)&&this.handleGlobalKeyUp(D,w.shiftKey,w.ctrlKey,w.altKey,w.metaKey,w.key,w.code)&&w.preventDefault()}; g.y.handleGlobalKeyUp=function(w,D,M,L,Z,k,b){this.api.publish("keyboardserviceglobalkeyup",{keyCode:w,shiftKey:D,ctrlKey:M,altKey:L,metaKey:Z,key:k,code:b});D=!1;if(this.L.Va)return D;(k=g.O9(this.api.Ka()))&&(k=k.qb)&&k.y$&&(k.wc(w),D=!0);switch(w){case 9:WN(this,!0);D=!0;break;case 32:if(this.api.C("web_speedmaster_spacebar_control")&&(!this.api.C("web_player_spacebar_control_bugfix")&&!this.L.Wk||this.api.C("web_player_spacebar_control_bugfix"))&&!this.api.X().TC){var C,l;w=(C=this.progressBar)== null?void 0:(l=C.V)==null?void 0:l.isEnabled;D=this.Bm(w)}break;case 39:(iP?L:M)&&!Z&&this.api.Lx()&&this.api.C("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),C=(C=this.api.getVideoData())?C.Kx:[],l=Cla(C,this.api.getCurrentTime()*1E3),l!==-1&&this.T!=null&&(this.T.AO(1,C[l].title),this.api.seekTo(C[l].startTime/1E3,void 0,void 0,void 0,52),D=!0))}return D}; g.y.handleGlobalKeyDown=function(w,D,M,L,Z,k,b,C){C||(this.L.Va=!1);var l=!1,E=this.api.X();if(E.TC&&!this.api.isMutedByEmbedsMutedAutoplay())return l;var p=g.O9(this.api.Ka());if(p&&(p=p.qb)&&p.y$)switch(w){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:l=p.Nu(w)}E.Y||l||(l=k||String.fromCharCode(w).toLowerCase(),this.V+=l,"awesome".indexOf(this.V)===0||this.api.C("web_player_rtr_ctrls")&&"bday".indexOf(this.V)===0?(l=!0,4===this.V.length&&this.V==="bday"&&this.api.C("web_player_rtr_ctrls")&& (i0K(this.W),this.Bd.pW()),7===this.V.length&&this.V==="awesome"&&gRK(this.api.getRootNode(),"ytp-color-party")):(this.V=l,l="awesome".indexOf(this.V)===0||"bday".indexOf(this.V)===0));if(!l&&(!this.api.isMutedByEmbedsMutedAutoplay()||zjZ.includes(w))){var W=this.api.getVideoData(),h,t;p=(h=this.progressBar)==null?void 0:(t=h.V)==null?void 0:t.isEnabled;h=W?W.Kx:[];t=iP?L:M;switch(w){case 80:D&&!E.Md&&(Aq(this.dH,G_R(),"Previous"),this.api.previousVideo(),l=!0);break;case 78:D&&!E.Md&&(Aq(this.dH, tS(),"Next"),this.api.nextVideo(),l=!0);break;case 74:this.api.Lx()&&(this.api.startSeekCsiAction(),this.T?this.api.C("enable_key_press_seek_logging")?(l=hU(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.T.Nn(-1,10,l)):this.T.Nn(-1,10):Aq(this.dH,{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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),l=!0);break;case 76:this.api.Lx()&&(this.api.startSeekCsiAction(),this.T?this.api.C("enable_key_press_seek_logging")?(l=hU(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.T.Nn(1,10,l)):this.T.Nn(1,10):Aq(this.dH,{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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),l=!0);break;case 37:this.api.Lx()&&(this.api.startSeekCsiAction(),t?(t=lvJ(h,this.api.getCurrentTime()*1E3),t!==-1&&this.T!=null&&(this.T.AO(-1,h[t].title),this.api.seekTo(h[t].startTime/1E3,void 0,void 0,void 0,53),l=!0)):(this.T?this.api.C("enable_key_press_seek_logging")?(l=hU(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.T.Nn(-1,5,l)):this.T.Nn(-1,5):Aq(this.dH,{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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),l=!0));break;case 39:this.api.Lx()&&(this.api.startSeekCsiAction(),t?this.api.C("web_enable_keyboard_shortcut_for_timely_actions")||(t=Cla(h,this.api.getCurrentTime()*1E3),t!==-1&&this.T!=null&&(this.T.AO(1,h[t].title),this.api.seekTo(h[t].startTime/1E3,void 0,void 0,void 0,52),l=!0)):(this.T!=null?this.api.C("enable_key_press_seek_logging")?(l=hU(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.T.Nn(1,5,l)):this.T.Nn(1, 5):Aq(this.dH,{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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),l=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),wu(this.dH,this.api.getVolume(),!1)):(this.api.mute(),wu(this.dH,0,!0));l=!0;break;case 32:l=this.api.C("web_speedmaster_spacebar_control")?!this.api.X().Md:this.Bm(p);break;case 75:l=this.Bm(p);break;case 190:D?E.enableSpeedOptions&&tdj(this)&&(l=this.api.getPlaybackRate(),this.api.setPlaybackRate(l+.25,!0),k6J(this.dH,!1),l=!0):this.api.Lx()&&(this.step(1),l=!0);break;case 188:D? E.enableSpeedOptions&&tdj(this)&&(l=this.api.getPlaybackRate(),this.api.setPlaybackRate(l-.25,!0),k6J(this.dH,!0),l=!0):this.api.Lx()&&(this.step(-1),l=!0);break;case 70:OPx(this.api)&&(this.api.toggleFullscreen().catch(function(){}),l=!0); break;case 27:p?(this.progressBar.Ey(),l=!0):this.Y()&&(l=!0)}if(E.controlsType!=="3")switch(w){case 67:g.oZ(this.api.Ka())&&(E=this.api.getOption("captions","track"),this.api.toggleSubtitles(),bDT(this.dH,!E||E&&!E.displayName),l=!0);break;case 79:$N(this,"textOpacity");break;case 87:$N(this,"windowOpacity");break;case 187:case 61:$N(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:$N(this,"fontSizeIncrement",!0,!0)}var d;D||M||L||(w>=48&&w<=57?d=w-48:w>=96&&w<=105&&(d=w-96));d!=null&&this.api.Lx()&& !this.api.C("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),E=this.api.getProgressState(),this.api.seekTo(d/10*(E.seekableEnd-E.seekableStart)+E.seekableStart,void 0,void 0,void 0,81),l=!0);l&&this.Bd.pW()}this.L.zq=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:w,shiftKey:D,ctrlKey:M,altKey:L,metaKey:Z,key:k,code:b,repeat:C},this.L);this.L.zq&&(l=!0,this.Bd.pW());return l}; g.y.step=function(w){this.api.Lx();if(this.api.getPlayerStateObject().isPaused()){var D=this.api.getVideoData().V;D&&(D=D.video)&&this.api.seekBy(w/(D.fps||30),void 0,void 0,w>0?77:78)}}; g.y.Bm=function(w){if(!this.api.X().Md){var D;var M,L=(D=this.api.getVideoData())==null?void 0:(M=D.getPlayerResponse())==null?void 0:M.playabilityStatus;if(L){var Z;D=((Z=g.Q(L.miniplayer,SgB))==null?void 0:Z.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else D=!1;D&&this.api.Q7("onExpandMiniplayer");w?this.progressBar.Ry():(w=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.dH.xF(w),w?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.y.oJ=function(){g.JB(this.D);g.xM.prototype.oJ.call(this)};g.I(ix,g.J);ix.prototype.Sk=function(){var w=this.K.X(),D=w.L||this.K.C("web_player_hide_overflow_button_if_empty_menu")&&this.xx.isEmpty();w=g.w0(w)&&g.VP(this.K)&&g.z(this.K.getPlayerStateObject(),128);var M=this.K.getPlayerSize();this.visible=this.K.kc()&&!w&&M.width>=240&&!this.K.getVideoData().yZ&&!D&&!this.K.isEmbedsShortsMode();g.Lt(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.K.tY();this.K.logVisibility(this.element,this.visible&&this.U)}; ix.prototype.A1=function(w){g.J.prototype.A1.call(this,w);this.K.logVisibility(this.element,this.visible&&w)}; ix.prototype.oJ=function(){g.J.prototype.oJ.call(this);g.D6(this.element,"ytp-overflow-button-visible")};g.I($lj,g.kV);g.y=$lj.prototype;g.y.Qv=function(w){w=y$(w);g.Ug(this.element,w)&&(g.Ug(this.T,w)||g.Ug(this.closeButton,w)||YV(this))}; g.y.aO=function(){g.kV.prototype.aO.call(this);this.K.JV(this.element)}; g.y.show=function(){this.y$&&this.K.publish("OVERFLOW_PANEL_OPENED");g.kV.prototype.show.call(this);this.element.setAttribute("aria-modal","true");dlr(this,!0)}; g.y.hide=function(){g.kV.prototype.hide.call(this);this.element.removeAttribute("aria-modal");dlr(this,!1)}; g.y.onFullscreenToggled=function(w){!w&&this.lZ()&&YV(this)}; g.y.isEmpty=function(){return this.actionButtons.length===0}; g.y.focus=function(){for(var w=g.x(this.actionButtons),D=w.next();!D.done;D=w.next())if(D=D.value,D.y$){D.focus();break}};g.I(ymk,g.J);ymk.prototype.onClick=function(w){g.gW(w,this.api)&&this.api.playVideoAt(this.index)};g.I(IvK,g.kV);g.y=IvK.prototype;g.y.show=function(){g.kV.prototype.show.call(this);this.T.j(this.api,"videodatachange",this.VJ);this.T.j(this.api,"onPlaylistUpdate",this.VJ);this.VJ()}; g.y.hide=function(){g.kV.prototype.hide.call(this);g.NA(this.T);this.updatePlaylist(null)}; g.y.VJ=function(){this.updatePlaylist(this.api.getPlaylist());this.api.X().L&&(this.Z5("ytp-playlist-menu-title-name").removeAttribute("href"),this.L&&(this.gt(this.L),this.L=null))}; g.y.Pg=function(){var w=this.playlist,D=w.author,M=D?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",L={CURRENT_POSITION:String(w.index+1),PLAYLIST_LENGTH:String(w.length)};D&&(L.AUTHOR=D);this.update({title:w.title,subtitle:g.M0(M,L),playlisturl:this.api.getVideoUrl(!0)});D=w.V;if(D===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[w.index];else{M=g.x(this.playlistData);for(L=M.next();!L.done;L=M.next())L.value.dispose(); M=w.length;this.playlistData=[];for(L=0;L=this.V&&!w.L&&!D.isAd()&&!this.api.isEmbedsShortsMode()}else w=!1;this.visible=w;this.h1(this.visible);g.Lt(this.element,"ytp-search-button-visible",this.visible);g.Lt(this.element,"ytp-show-search-title",!this.api.kc());this.api.logVisibility(this.element,this.visible&&this.U)}; Uq.prototype.A1=function(w){g.J.prototype.A1.call(this,w);this.api.logVisibility(this.element,this.visible&&w)};g.I(xN,g.J); xN.prototype.trigger=function(w,D,M,L){this.show();if(this.V&&w!==this.V){var Z=1;this.L&&(Z=suT(this));RST(this,Z,!1);GMI(this)}this.V=w;this.D=this.V===-1?this.G:this.B;w="";D?(this.Y+=D,w=(this.V===-1?"\u2212":"+")+" "+this.Y):this.Y=0;this.updateValue(this.V===-1?"durationBack":"durationForward",w);if(this.T==="hidden"||this.T==="fading-out")D=0,this.T==="fading-out"&&(D=suT(this),FGS(this)),o5J(this,D),this.T!=="fading-out"&&n5j(this,this.D.querySelector(".ytp-seek-overlay-arrow-persistent")),this.T= "fading-in";else if(this.T==="fading-in"||this.T==="lingering")D=this.D.querySelector(".ytp-seek-overlay-duration"),w=g.A3(this.K.X().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,D.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("+w+")"},{offset:1,transform:"scale(1)"}],{duration:184}),FGS(this),this.T==="lingering"&&(this.W.stop(),this.W.start());M&&avr(this,M,L)}; xN.prototype.h5=function(w,D,M,L){this.trigger(w,L)}; xN.prototype.Nn=function(w,D,M){this.trigger(w,D);M&&(w=w===-1?this.B.visualElement:this.G.visualElement,M={seekData:M},(D=g.$9())&&PL(D,w,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",M))}; xN.prototype.AO=function(w,D,M){this.trigger(w,void 0,D,M)};g.I(Nv,g.J);Nv.prototype.onClick=function(){var w=this,D=this.api.X(),M=this.api.getVideoData(this.api.getPresentingPlayerType()),L=this.api.getPlaylistId();D=this.api.C("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):D.getVideoUrl(M.videoId,L,void 0,!0);if(navigator.share)try{var Z=navigator.share({title:M.title,url:D});Z instanceof Promise&&Z.catch(function(k){cmK(w,k)})}catch(k){k instanceof Error&&cmK(this,k)}else this.T.M3(),YV(this.V,this.element,!1); this.api.logClick(this.element)}; Nv.prototype.Sk=function(){var w=this.api.X(),D=this.api.isEmbedsShortsMode();g.Lt(this.element,"ytp-show-share-title",g.w0(w)&&!D);this.T.x9()&&D?(w=(this.api.qd().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Qv(this.element,"right",w+"px")):D&&g.Qv(this.element,"right","0px");this.updateValue("icon",{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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=v5k(this);g.Lt(this.element,"ytp-share-button-visible",this.visible);this.h1(this.visible);this.tooltip.tY();this.api.logVisibility(this.element,v5k(this)&&this.U)}; Nv.prototype.A1=function(w){g.J.prototype.A1.call(this,w);this.api.logVisibility(this.element,this.visible&&w)}; Nv.prototype.oJ=function(){g.J.prototype.oJ.call(this);g.D6(this.element,"ytp-share-button-visible")};g.I(fvG,g.kV);g.y=fvG.prototype;g.y.RD=function(w){w=y$(w);g.Ug(this.W,w)||g.Ug(this.closeButton,w)||YV(this)}; g.y.aO=function(){g.kV.prototype.aO.call(this);this.tooltip.JV(this.element);this.api.logVisibility(this.T,!1);for(var w=g.x(this.L),D=w.next();!D.done;D=w.next())D=D.value,this.api.hasVe(D.element)&&this.api.logVisibility(D.element,!1)}; g.y.show=function(){var w=this.y$;g.kV.prototype.show.call(this);this.Sk();w||this.api.Q7("onSharePanelOpened")}; g.y.FE_=function(){this.y$&&this.Sk()}; g.y.Sk=function(){var w=this;g.AB(this.element,"ytp-share-panel-loading");g.D6(this.element,"ytp-share-panel-fail");var D=this.api.getVideoData(),M=this.api.getPlaylistId()&&this.D.checked;D.getSharePanelCommand&&nQ(this.api.wZ(),D.getSharePanelCommand,{includeListId:M}).then(function(L){w.xt()||(g.D6(w.element,"ytp-share-panel-loading"),eSj(w,L))}); D=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",D);this.updateValue("linkText",D);this.updateValue("shareLinkWithUrl",g.M0("Share link $URL",{URL:D}));FD(this.T);this.api.logVisibility(this.T,!0)}; g.y.onFullscreenToggled=function(w){!w&&this.lZ()&&YV(this)}; g.y.focus=function(){this.T.focus()}; g.y.oJ=function(){g.kV.prototype.oJ.call(this);qwI(this)};g.I(uqI,N6);g.y=uqI.prototype;g.y.oJ=function(){VdI(this);N6.prototype.oJ.call(this)}; g.y.Ty=function(w){w.target!==this.dismissButton.element&&(this.Nt(!1),this.K.Q7("innertubeCommand",this.onClickCommand))}; g.y.Nh=function(){this.bW=!0;this.Nt(!0);this.Lf()}; g.y.bl_=function(w){this.Y=w;this.Lf()}; g.y.onVideoDataChange=function(w,D){if(w=!!D.videoId&&this.videoId!==D.videoId)this.videoId=D.videoId,this.bW=!1,this.nV=!0,this.G=this.V7=!1,VdI(this),zSx(this,!1),this.V=this.T=!1,jx(this),SwK(this);if(w||!D.videoId)this.y7=this.D=!1;var M,L;if(D==null?0:(M=D.getPlayerResponse())==null?0:(L=M.videoDetails)==null?0:L.isLiveContent)this.uo(!1);else{var Z,k,b;D=g.Q((Z=D.getWatchNextResponse())==null?void 0:(k=Z.playerOverlays)==null?void 0:(b=k.playerOverlayRenderer)==null?void 0:b.productsInVideoOverlayRenderer, cMZ);this.Y=this.enabled=!1;if(D){if(Z=D==null?void 0:D.featuredProductsEntityKey){k=g.Ry.getState().entities;var C;if((C=PU(k,"featuredProductsEntity",Z))==null?0:C.productsData){this.uo(!1);return}}if(!D.text||!D.onClickCommand||!D.timing){this.uo(!1);return}this.enabled=!0;if(!this.D){var l;C=(l=D.badgeInteractionLogging)==null?void 0:l.trackingParams;(this.D=!!C)&&this.K.setTrackingParams(this.badge.element,C||null)}if(!this.y7){var E;if(this.y7=!((E=D.dismissButton)==null||!E.trackingParams)){var p; this.K.setTrackingParams(this.dismissButton.element,((p=D.dismissButton)==null?void 0:p.trackingParams)||null)}}D.isContentForward&&(l=D.productsData,zSx(this,!0),SwK(this),l=JmS(this,l),E=[],l.length>0&&E.push(l[0]),l.length>1&&(p=new g.J({Z:"div",J:"ytp-suggested-action-more-products-icon"}),g.T(this,p),E.push(p),E.push.apply(E,g.tG(l.slice(1)))),this.W=new g.J({Z:"div",N:E,J:"ytp-suggested-action-content-forward-container"}),g.T(this,this.W),this.fV.element.append(this.W.element));this.text=g.bI(D.text); var W;if(l=(W=D.dismissButton)==null?void 0:W.a11yLabel)this.XE=g.bI(l);this.onClickCommand=D.onClickCommand;this.timing=D.timing;this.bT()}GIT(this);xe(this);this.Lf()}}; g.y.zP=function(){return!this.Y&&this.enabled&&!this.bW&&!this.K.kc()&&!this.TU&&(this.G||this.nV)}; g.y.zw=function(w){N6.prototype.zw.call(this,w);if(this.T||this.V)this.timing&&HN(this.timing.preview)&&(this.T=!1,jx(this),this.V=!1,jx(this),this.K.N8("shopping_overlay_preview_collapsed"),this.K.N8("shopping_overlay_preview_expanded"),w=gu(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),HN(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.K.N8("shopping_overlay_expanded"),w.end=this.timing.expanded.endSec*1E3),this.K.bT([w])), this.V7=!0,xe(this);jx(this)}; g.y.uo=function(w){(this.G=w)?(U1(this),xe(this,!1)):(VdI(this),this.Md.start());this.Lf()}; g.y.bT=function(w){var D=this.timing;w=(w===void 0?0:w)+this.K.getCurrentTime();var M=[],L=D.visible,Z=D.preview;D=D.expanded;HN(L)&&(XiG(L,w),M.push(gu(L.startSec,L.endSec,"shopping_overlay_visible")));HN(Z)&&(XiG(Z,w),L=Z.startSec+1,M.push(gu(Z.startSec,L,"shopping_overlay_preview_collapsed")),M.push(gu(L,Z.endSec,"shopping_overlay_preview_expanded")));HN(D)&&(XiG(D,w),M.push(gu(D.startSec,D.endSec,"shopping_overlay_expanded")));this.K.bT(M)}; g.y.Lf=function(){N6.prototype.Lf.call(this);this.K.getRootNode()&&g.Lt(this.K.getRootNode(),"ytp-shopping-pill-shown",this.zP())};g.I(KGI,g.J); KGI.prototype.Sk=function(){var w=this.api.X();this.h1(g.w0(w)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.y$);var D=this.api.getVideoData(),M=!1;this.api.getPresentingPlayerType()===2?M=!!D.videoId&&!!D.isListed&&!!D.author&&!!D.iW&&!!D.profilePicture:g.w0(w)&&(M=!!D.videoId&&!!D.iW&&!!D.profilePicture&&!D.yZ&&!w.L&&!(w.G&&this.api.getPlayerSize().width<200));var L=D.profilePicture;w=g.w0(w)?D.expandedTitle:D.author;L=L===void 0? "":L;w=w===void 0?"":w;M?(this.V!==L&&(this.T.style.backgroundImage="url("+L+")",this.V=L),this.updateValue("channelLogoLabel",g.M0("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:w})),g.AB(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.D6(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,M&&this.U);this.api.logVisibility(this.channelName,M&&this.U);this.subscribeButton&&(this.subscribeButton.channelId=D.Vf);this.updateValue("expandedTitle",D.expandedTitle)};g.I(RB,g.kV);RB.prototype.show=function(){g.kV.prototype.show.call(this);this.T.start()}; RB.prototype.hide=function(){g.kV.prototype.hide.call(this);this.T.stop()}; RB.prototype.vX=function(w,D){w==="dataloaded"&&((this.DJ=D.DJ,this.Wd=D.Wd,isNaN(this.DJ)||isNaN(this.Wd))?this.L&&(this.K.N8("intro"),this.K.removeEventListener(g.QG("intro"),this.B),this.K.removeEventListener(g.JL("intro"),this.W),this.K.removeEventListener("onShowControls",this.D),this.hide(),this.L=!1):(this.K.addEventListener(g.QG("intro"),this.B),this.K.addEventListener(g.JL("intro"),this.W),this.K.addEventListener("onShowControls",this.D),w=new g.ue(this.DJ,this.Wd,{priority:9,namespace:"intro"}), this.K.bT([w]),this.L=!0))};g.I(oB,g.J);oB.prototype.onClick=function(){this.K.Wt()}; oB.prototype.Sk=function(){var w=!0;g.w0(this.K.X())&&(w=w&&this.K.qd().getPlayerSize().width>=480);this.h1(w);w=this.updateValue;var D=this.K.C("delhi_modern_web_player_icons"),M=D?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,S:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};D=D?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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"}}]};w.call(this,"icon",this.K.Fl()?M:D)};g.I(AmI,g.J);AmI.prototype.oJ=function(){this.T=null;g.J.prototype.oJ.call(this)};g.I(nG,g.J);nG.prototype.onClick=function(){this.K.Q7("innertubeCommand",this.V)}; nG.prototype.B=function(){if(this.K.C("delhi_modern_web_player")){var w=this.K.getPlayerSize();w.width&&(this.element.style.maxWidth=w.width*.25+"px")}}; nG.prototype.V7=function(w){w!==this.Y&&(this.update({chapterTitle:w,ariaLabel:w}),this.Y=w);w?this.show():this.hide()}; nG.prototype.y7=function(){this.T.disabled=this.V==null;g.Lt(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.M$()};g.I(Fo,nG);Fo.prototype.onClickCommand=function(w){g.Q(w,gb)&&this.M$()}; Fo.prototype.updateVideoData=function(w,D){var M,L,Z;w=g.Q((M=D.getWatchNextResponse())==null?void 0:(L=M.playerOverlays)==null?void 0:(Z=L.playerOverlayRenderer)==null?void 0:Z.decoratedPlayerBarRenderer,mw);M=g.Q(w==null?void 0:w.playerBarActionButton,g.YF);if(this.K.C("web_player_updated_entrypoint")){this.G=Oy(M==null?void 0:M.text);var k;L=(k=M==null?void 0:M.tooltip)!=null?k:"View chapter";this.W.setAttribute("title",L)}this.V=M==null?void 0:M.command;nG.prototype.y7.call(this)}; Fo.prototype.M$=function(){var w=this.G,D=this.D.T,M,L=((M=this.K.getLoopRange())==null?void 0:M.type)==="clips";if(D.length>1&&!L){w=this.K.getProgressState().current*1E3;M=pG(D,w);w=D[M].title||"Chapters";if(M!==this.currentIndex||this.L)this.K.Q7("innertubeCommand",D[M].onActiveCommand),this.currentIndex=M;this.L=!1}else this.L=!0;nG.prototype.V7.call(this,w)};g.I(G2,g.Lb);G2.prototype.V=function(){var w;(w=this.element.parentElement)==null||w.classList.contains("ytp-right-controls-left");(this.T=!this.T)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; G2.prototype.isExpanded=function(){return this.T};g.I(sq,g.J);sq.prototype.L=function(w){g.z(w.state,32)?DqT(this,this.api.WH()):this.y$&&(g.z(w.state,16)||g.z(w.state,1))||this.fade.hide()}; sq.prototype.onProgress=function(){var w=this.api.getPlayerStateObject();(g.z(w,32)||g.z(w,16))&&M8J(this)}; sq.prototype.D=function(){this.frameIndex=NaN;M8J(this)}; sq.prototype.hide=function(){this.T&&DqT(this,null);g.J.prototype.hide.call(this)};g.I(LqT,g.J);g.y=LqT.prototype;g.y.onClick=function(){var w=this;if(this.K.X().iW||this.K.X().G){this.K.logClick(this.element);try{this.K.toggleFullscreen().catch(function(D){w.OY(D)})}catch(D){this.OY(D)}}else YV(this.message,this.element,!0)}; g.y.OY=function(w){String(w).includes("fullscreen error")?g.jn(w):g.HL(w);this.w5()}; g.y.w5=function(){this.disable();this.message.XQ(this.element,!0)}; g.y.U_=function(){pe()===this.K.getRootNode()?this.L.start():(this.L.stop(),this.message&&this.message.hide())}; g.y.OI=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var w=window.screen.width*.9,D=window.screen.height*.9,M=Math.max(window.outerWidth,window.innerWidth),L=Math.max(window.outerHeight,window.innerHeight);if(M>L!==w>D){var Z=M;M=L;L=Z}w>M&&D>L&&this.w5()}}; g.y.disable=function(){var w=this;if(!this.message){var D=(Ce(["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.kV(this.K,{Z:"div",Yt:["ytp-popup","ytp-generic-popup"],S:{role:"alert",tabindex:"0"},N:[D[0],{Z:"a",S:{href:"https://support.google.com/youtube/answer/6276924", target:this.K.X().B},LV:D[2]},D[4]]},100,!0);this.message.hide();g.T(this,this.message);this.message.subscribe("show",function(M){w.V.nZ(w.message,M)}); g.mH(this.K,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}}; g.y.Sk=function(){var w=OPx(this.K),D=this.K.X().G&&this.K.getPlayerSize().width<250;this.h1(w&&!D);this.K.logVisibility(this.element,this.y$)}; g.y.Ai=function(w){if(w){var D=g.uR(this.K,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.K.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(M){g.jn(M)})}else D=g.uR(this.K,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); w=Znk(this,w);D=this.message?null:D;this.K.X().C("player_tooltip_data_title_killswitch")?this.update({title:D,icon:w}):this.update({"tooltip-title":D,"aria-label":D,icon:w});this.V.E4().tY()}; g.y.oJ=function(){this.message||((0,this.T)(),this.T=null);g.J.prototype.oJ.call(this)}; g.y.A1=function(w){g.J.prototype.A1.call(this,w)};g.I(aB,g.J);aB.prototype.onClick=function(){this.K.logClick(this.element);this.K.seekBy(this.T,!0);var w=this.T>0?1:-1,D=Math.abs(this.T),M=this.K.SP().Gs;M&&M.Nn(w,D);this.V.isActive()?this.L=!0:(w=["ytp-jump-spin"],this.T<0&&w.push("backwards"),this.element.classList.add.apply(this.element.classList,g.tG(w)),g.S3(this.V))};g.I(vN,nG);vN.prototype.onClickCommand=function(w){g.Q(w,aKP)&&this.M$()}; vN.prototype.updateVideoData=function(){var w,D;this.V=(w=bnx(this))==null?void 0:(D=w.onTap)==null?void 0:D.innertubeCommand;nG.prototype.y7.call(this)}; vN.prototype.M$=function(){var w="",D=this.D.Y,M,L=(M=bnx(this))==null?void 0:M.headerTitle;M=L?g.bI(L):"";var Z;L=((Z=this.K.getLoopRange())==null?void 0:Z.type)==="clips";D.length>1&&!L&&(w=this.K.getProgressState().current*1E3,Z=Ywk(D,w),w=Z!=null?D[Z].title:M,Z!=null&&Z!==this.currentIndex&&(this.K.Q7("innertubeCommand",D[Z].onActiveCommand),this.currentIndex=Z));nG.prototype.V7.call(this,w)};g.I(cN,g.J);cN.prototype.onClick=function(){this.K.Q7("onCollapseMiniplayer");this.K.logClick(this.element)}; cN.prototype.Sk=function(){this.visible=!this.K.isFullscreen();this.h1(this.visible);this.K.logVisibility(this.element,this.visible&&this.U)}; cN.prototype.A1=function(w){g.J.prototype.A1.call(this,w);this.K.logVisibility(this.element,this.visible&&w)};g.I(BN,g.J);BN.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.W);this.updateValue("stepvalue",this.G);this.updateValue("slidervalue",this.T);Cdj(this,this.T)}; BN.prototype.L=function(){fG(this,Number(this.V.value));this.V.focus()}; BN.prototype.Y=function(w){if(!w.defaultPrevented){switch(w.code){case "ArrowDown":w=-this.G;break;case "ArrowUp":w=this.G;break;default:return}fG(this,Math.min(this.W,Math.max(Number((this.T+w).toFixed(2)),this.D)))}};g.I(qv,BN);qv.prototype.onVolumeChange=function(w){if(this.B)this.B=!1;else{var D=w.volume;D===0||w.muted?fG(this,0):fG(this,D)}}; qv.prototype.L=function(){BN.prototype.L.call(this);this.y7(this.T)}; qv.prototype.V7=function(w){var D=-w.deltaY;D=w.deltaMode===WheelEvent.DOM_DELTA_LINE||w.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.X4(this.T+D,0,100):g.X4(this.T+g.X4(D/10,-10,10),0,100);D===0?fG(this,0):fG(this,D);this.y7(D);w.preventDefault();w.stopPropagation()}; qv.prototype.nV=function(w,D){this.B=!0;w===0||D?this.K.mute():(this.K.isMuted()&&this.K.unMute(),this.K.setVolume(w))};g.I(lEK,g.J);g.I(ex,g.J);g.y=ex.prototype;g.y.g1=function(){if(!this.K.Nk()){this.updateValue("dataTooltipOffsetY",-120);var w;(w=this.T)!=null&&ru(w,!0);var D;(D=this.T)!=null&&D.T.stop()}}; g.y.L5=function(){var w;(w=this.T)!=null&&w.T.start()}; g.y.F0=function(w){this.visible=w.width>=300||this.Jc;this.h1(this.visible);this.K.logVisibility(this.element,this.visible&&this.U)}; g.y.Ub=function(){this.K.X().fV?this.K.isMuted()?this.K.unMute():this.K.mute():YV(this.message,this.element,!0);this.K.logClick(this.element)}; g.y.prk=function(w){if(this.K.X().fV&&this.T)if(w.target===this.L){var D;if(!this.K.Nk()||((D=this.T)==null?0:D.isVisible))this.Ub();else{var M;(M=this.T)!=null&&ru(M,!0)}}else{var L;(L=this.T)!=null&&ru(L,!0)}else this.Ub()}; g.y.onVolumeChange=function(w){this.setVolume(w.volume,w.muted)}; g.y.setVolume=function(w,D){var M=this,L=D?0:w/100;w=L===0?1:w>50?1:0;if(this.B!==w){var Z=this.G;isNaN(Z)?t8K(this,w):$Fx(this.fV,function(b){t8K(M,Z+(M.B-Z)*b)},250); this.B=w}L=L===0?1:0;if(this.Y!==L){var k=this.nV;isNaN(k)?$qN(this,L):$Fx(this.c_,function(b){$qN(M,k+(M.Y-k)*b)},250); this.Y=L}pYr(this,D)}; g.y.A1=function(w){g.J.prototype.A1.call(this,w);this.K.logVisibility(this.element,this.visible&&w)}; var WqS=["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"],hBC=["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.I(g.Xo,g.J);g.y=g.Xo.prototype;g.y.onStateChange=function(w){this.lj(w.state)}; g.y.lj=function(w){var D=g.mm(this.K.getVideoData()),M=!1;w.isOrWillBePlaying()?w=D?4:2:g.z(w,2)?(w=3,M=D):w=1;this.element.disabled=M;if(this.T!==w){D=null;switch(w){case 2:D=g.uR(this.K,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:D="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:D=g.uR(this.K,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:D="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}w=== 3?this.K.X().C("player_tooltip_data_title_killswitch")?this.update({title:D,icon:inJ(this,w)}):this.update({"tooltip-title":D,icon:inJ(this,w)}):(this.K.C("player_tooltip_data_title_killswitch")?this.update({title:D}):this.update({"tooltip-title":D}),(D=inJ(this,w))&&this.T&&this.T!==3?dFj(this.transition,this.element,D):this.updateValue("icon",D));this.tooltip.tY();this.T=w}}; g.y.onVideoDataChange=function(){g.Lt(this.element,"ytp-play-button-playlist",g.VP(this.K))}; g.y.Bm=function(w){this.K.logClick(this.element);if(this.K.getPlayerStateObject().isOrWillBePlaying())this.K.pauseVideo();else{if(this.K.isMinimized()&&this.K.getPlayerStateObject().isCued()){var D={},M;if((M=this.K.getVideoData())==null?0:M.Y)D.cttAuthInfo={token:this.K.getVideoData().Y,videoId:this.K.getVideoData().videoId};Hl("direct_playback",D);this.K.nJ().timerName="direct_playback"}this.K.playVideo()}this.K.isMinimized()&&(w==null?void 0:w.type)==="click"&&this.element.blur()}; g.y.A1=function(w){g.J.prototype.A1.call(this,w)};g.I(g.T2,g.J);g.y=g.T2.prototype;g.y.onVideoDataChange=function(){IEl(this);this.D&&(this.gt(this.D),this.D=null);this.videoData=this.K.getVideoData(1);if(this.playlist=this.K.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.j(this.K,"progresssync",this.p8);this.L=UqG(this);yJC(this);this.LN(this.K.qd().getPlayerSize())}; g.y.LN=function(w){w=w===void 0?this.K.qd().getPlayerSize():w;var D,M=((D=this.K.getLoopRange())==null?void 0:D.type)==="clips";D=g.VP(this.K)||this.T&&g.AW(this.K)&&!this.K.C("web_hide_next_button")||xqG(this);var L=!this.T&&w.width<400;w=this.K.C("delhi_modern_web_player_horizontal_volume_controls")&&w.width<640;M=D&&!M&&!L&&!w;this.h1(M);this.K.logVisibility(this.element,M)}; g.y.onClick=function(w){this.K.logClick(this.element);var D=!0;this.Y?D=g.gW(w,this.K):w.preventDefault();D&&(this.T&&this.K.getPresentingPlayerType()===5?this.K.publish("ytoprerollinternstitialnext"):this.T?(dS(this.K.nJ()),this.K.publish("playlistnextbuttonclicked",this.element),this.K.nextVideo(!0)):this.L?this.K.seekTo(0):(dS(this.K.nJ()),this.K.publish("playlistprevbuttonclicked",this.element),this.K.previousVideo(!0)))}; g.y.p8=function(){var w=UqG(this);w!==this.L&&(this.L=w,yJC(this))}; g.y.oJ=function(){this.V&&(this.V(),this.V=null);IEl(this);g.J.prototype.oJ.call(this)};g.I(HnR,g.J);g.y=HnR.prototype;g.y.BQ=function(w){this.ov(w.pageX);this.zp(w.pageX+w.deltaX);jNj(this)}; g.y.ov=function(w){this.y7=w-this.Jc}; g.y.zp=function(w){w-=this.Jc;!isNaN(this.y7)&&this.thumbnails.length>0&&(this.B=w-this.y7,this.thumbnails.length>0&&this.B!==0&&(this.L=this.G+this.B,w=Fql(this,this.L),this.L<=this.T/2&&this.L>=nkR(this)?(this.api.seekTo(w,!1,void 0,void 0,25),g.Qv(this.nV,"transform","translateX("+(this.L-this.T/2)+"px)"),NxS(this,w)):this.L=this.G))}; g.y.iS=function(){this.V7&&(this.V7.Gz=!0);var w=(0,g.IC)()-this.jk<300;if(Math.abs(this.B)<5&&!w){this.jk=(0,g.IC)();w=this.y7+this.B;var D=this.T/2-w;this.ov(w);this.zp(w+D);jNj(this);this.api.logClick(this.W)}jNj(this)}; g.y.Aa=function(){ux(this,this.api.getCurrentTime())}; g.y.play=function(w){this.api.seekTo(Fql(this,this.L),void 0,void 0,void 0,26);this.api.playVideo();w&&this.api.logClick(this.playButton)}; g.y.onExit=function(w){this.api.seekTo(this.Md,void 0,void 0,void 0,63);this.api.playVideo();w&&this.api.logClick(this.dismissButton)}; g.y.EB=function(w,D){this.Jc=w;this.T=D;ux(this,this.api.getCurrentTime())}; g.y.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Md=this.api.getCurrentTime(),NxS(this,this.Md),g.Lt(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.fV=this.j(this.element,"wheel",this.BQ),this.logVisibility(this.isEnabled))}; g.y.disable=function(){this.isEnabled=!1;this.hide();g.Lt(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.fV&&this.gt(this.fV);this.logVisibility(this.isEnabled)}; g.y.reset=function(){this.disable();this.D=[];this.W_=!1}; g.y.logVisibility=function(w){this.api.logVisibility(this.element,w);this.api.logVisibility(this.W,w);this.api.logVisibility(this.dismissButton,w);this.api.logVisibility(this.playButton,w)}; g.y.oJ=function(){for(;this.V.length;){var w=void 0;(w=this.V.pop())==null||w.dispose()}g.J.prototype.oJ.call(this)}; g.I(gkl,g.J);g.I(RBK,g.J);g.I(GYa,g.J);g.I(Sx,g.J);Sx.prototype.Dv=function(w){return w==="PLAY_PROGRESS"?this.G:w==="LOAD_PROGRESS"?this.Y:w==="LIVE_BUFFER"?this.W:this.L};vkJ.prototype.update=function(w,D,M,L){M=M===void 0?0:M;this.width=D;this.D=M;this.T=D-M-(L===void 0?0:L);this.position=g.X4(w,M,M+this.T);this.L=this.position-M;this.V=this.L/this.T};g.I(cJr,g.J);g.I(g.z2,g.Lb);g.y=g.z2.prototype; g.y.Eq=function(){var w=!1,D=this.api.getVideoData();if(!D)return w;this.api.N8("timedMarkerCueRange");qdT(this);for(var M=g.x(D.Nd),L=M.next();!L.done;L=M.next()){L=L.value;var Z=void 0,k=(Z=this.XE[L])==null?void 0:Z.markerType,b=void 0;Z=(b=this.XE[L])==null?void 0:b.markers;if(!Z)break;if(k==="MARKER_TYPE_TIMESTAMPS"){w=g.x(Z);for(k=w.next();!k.done;k=w.next()){b=k.value;k=new cJr;var C=void 0;k.title=((C=b.title)==null?void 0:C.simpleText)||"";k.timeRangeStartMillis=Number(b.startMillis);k.T= Number(b.durationMillis);var l=C=void 0;k.onActiveCommand=(l=(C=b.onActive)==null?void 0:C.innertubeCommand)!=null?l:void 0;SdR(this,k)}QNT(this,this.Y);w=this.Y;k=this.QF;b=[];C=null;for(l=0;lE&&(C.end=E);E=E5N(E,E+W);b.push(E);C=E;k[E.id]=w[l].onActiveCommand}}this.api.bT(b);a:{w=g.x(Z);for(Z=w.next();!Z.done;Z=w.next())if(Z.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){w= !1;break a}w=!0}w&&(this.Kx=this.XE[L]);w=!0}else if(k==="MARKER_TYPE_HEATMAP"){L=this.XE[L];p=E=k=l=C=b=void 0;if(L&&L.markers){Z=(k=(p=L.markersMetadata)==null?void 0:(E=p.heatmapMetadata)==null?void 0:E.minHeightDp)!=null?k:0;k=(b=(l=L.markersMetadata)==null?void 0:(C=l.heatmapMetadata)==null?void 0:C.maxHeightDp)!=null?b:60;b=this.T.length;C=null;for(l=0;l=p&&d<=W&&E.push(t)}k>0&&(this.V7.style.height=k+"px");p=this.D[l];W=E;t=Z;var N=k,n=l===0;n=n===void 0?!1:n;sNr(p,N);h=W;d=p.V;n=n===void 0?!1:n;var v=1E3/h.length,G=[];G.push({x:0,y:100});for(var f=0;f0&&(C=E[E.length-1])}g.Vy(this)}k=void 0;Z=[];if(L=(k=L.markersDecoration)==null?void 0:k.timedMarkerDecorations)for(L=g.x(L),k=L.next();!k.done;k=L.next())k=k.value,l=C=b=void 0,Z.push({visibleTimeRangeStartMillis:(b=k.visibleTimeRangeStartMillis)!= null?b:-1,visibleTimeRangeEndMillis:(C=k.visibleTimeRangeEndMillis)!=null?C:-1,decorationTimeMillis:(l=k.decorationTimeMillis)!=null?l:NaN,label:k.label?g.bI(k.label):""});L=Z;this.heatMarkersDecorations=L}}D.II=this.Y;g.Lt(this.element,"ytp-timed-markers-enabled",w);return w}; g.y.EB=function(){g.Vy(this);KG(this);QNT(this,this.Y);if(this.V){var w=g.AM(this.element).x||0;this.V.EB(w,this.W)}}; g.y.D8t=function(){var w=this.api.getVideoData();w&&MuT(this,w)}; g.y.onClickCommand=function(w){if(w=g.Q(w,gb)){var D=w.key;w.isVisible&&D&&Pdr(this,D)}}; g.y.k39=function(w){this.api.Q7("innertubeCommand",this.QF[w.id])}; g.y.M$=function(){KG(this);var w=this.api.getCurrentTime();(wthis.clipEnd)&&this.LH()}; g.y.eP=function(w){if(!w.defaultPrevented){var D=!1;switch(w.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);D=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);D=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);D=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);D=!0;break;case 38:this.api.C("enable_key_press_seek_logging")&&LE(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);D=!0;break;case 40:this.api.C("enable_key_press_seek_logging")&&LE(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),D=!0}D&&w.preventDefault()}}; g.y.vX=function(w,D){this.updateVideoData(D,w==="newdata")}; g.y.Z_=function(){this.vX("newdata",this.api.getVideoData())}; g.y.updateVideoData=function(w,D){D=D===void 0?!1:D;var M=!!w&&w.q8();M&&(U9(w)||wkI(this)?this.oC=!1:this.oC=w.allowLiveDvr,g.Lt(this.api.getRootNode(),"ytp-enable-live-buffer",!(w==null||!U9(w))),MuT(this,w));iyk(this,this.api.Lx());if(D){if(M){D=w.clipEnd;this.clipStart=w.clipStart;this.clipEnd=D;Zb(this);for(wa(this,this.y7,this.mu);this.D.length>0;)this.D.pop().dispose();this.heatMarkersDecorations=[];this.oO={};var L;(L=this.V)==null||L.reset();lF(this);g.Lt(this.api.getRootNode(),"ytp-fine-scrubbing-exp", JU(this))}else this.LH();this.cH()}if(w){var Z;L=((Z=this.cz)==null?void 0:Z.type)==="clips";if(Z=!w.isLivePlayback){Z=this.api.getVideoData();D=g.A6(Z);M=eBI(Z);var k;Z=D!=null||M!=null&&M.length>0||((k=Z.LT)==null?void 0:k.length)>0}if(Z&&!L){k=this.api.getVideoData();L=g.A6(k);Z=!1;if(L==null?0:L.markersMap){Z=this.api.getVideoData();var b;Z.eF=((b=L.visibleOnLoad)==null?void 0:b.key)||Z.eF;b=g.x(L.markersMap);for(L=b.next();!L.done;L=b.next())L=L.value,L.key&&L.value&&(this.oO[L.key]=L.value, L.value.onChapterRepeat&&(Z.kdk=L.value.onChapterRepeat));Z.eF!=null&&Pdr(this,Z.eF);Z=!0}var C;if(((C=k.LT)==null?void 0:C.length)>0){C=g.Ry.getState().entities;b=g.x(k.LT);for(L=b.next();!L.done;L=b.next()){L=L.value;M=void 0;D=(M=PU(C,"macroMarkersListEntity",L))==null?void 0:M.markersList;var l=M=void 0;if(((M=D)==null?void 0:M.markerType)==="MARKER_TYPE_TIMESTAMPS"||((l=D)==null?void 0:l.markerType)==="MARKER_TYPE_HEATMAP")this.XE[L]=D}Z=this.Eq()||Z}!Z&&(C=eBI(k))&&(TxI(this,C),k.Kx=this.T, XYK(this));LoC(this,null);w.N6&&this.D.length===0&&(w=w.N6,C=w.key,w.isVisible&&C&&Pdr(this,C))}else BxN(this),qdT(this)}KG(this)}; g.y.Pj=function(w){this.G&&!g.z(w.state,32)&&this.api.getPresentingPlayerType()!==3&&this.G.cancel();var D;((D=this.V)==null?0:D.isEnabled)&&g.z(w.state,8)&&this.api.pauseVideo();w=this.api.getPresentingPlayerType()===2||!this.api.Lx()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Lt(this.X6,"ytp-hide-scrubber-button",w)}; g.y.fQ=function(w){var D=!!this.cz!==!!w,M=this.cz;this.cz=w;LoC(this,M);(w==null?void 0:w.type)!=="clips"&&w||(w?(this.updateValue("clipstarticon",HeN()),this.updateValue("clipendicon",HeN()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",$AI()),this.updateValue("clipendicon",tYG()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),D&&(this.updateVideoData(this.api.getVideoData(), !0),g.Vy(this)),Zb(this));wa(this,this.y7,this.mu)}; g.y.EAJ=function(){this.api.publish("progressBarHoverStart")}; g.y.qV_=function(w,D,M){var L=g.AM(this.element),Z=Oq(this).T,k=M?M.getAttribute("data-tooltip"):void 0,b=M?M.getAttribute("data-position"):void 0,C=M?M.getAttribute("data-offset-y"):void 0;C=C?Number(C):0;b&&(w=Rs(this.L,Number(M.getAttribute("data-position")),0)*Z+g.AM(this.progressBar).x);this.iW.x=w-L.x;this.iW.y=D-L.y;w=Oq(this);M=Md(this,w);D=0;var l;if((l=this.api.getVideoData())==null?0:U9(l))(l=this.api.getProgressState().seekableEnd)&&M>l&&(M=l,w.position=Rs(this.L,l)*Oq(this).T),D=this.L.V; wkI(this)&&(D=this.L.V);l=k||g.iQ(this.oC?M-this.L.T:M-D);D=w.position+this.CJ;M-=this.api.jb();var E;if((E=this.V)==null||!E.isEnabled)if(this.api.WH()){if(this.T.length>1){E=Db(this,this.iW.x,!0);if(!this.cz)for(L=0;L1)for(L=0;L0)for(E=this.iW.x,L=g.x(this.Y),Z=L.next();!Z.done;Z=L.next())Z=Z.value,b=PN(this,Z.timeRangeStartMillis/ (this.L.T*1E3),Oq(this)),g.Lt(Z.element,"ytp-timed-marker-hover",b<=E&&b+6>=E);L=this.tooltip.scale;E=this.api.C("delhi_modern_web_player")?67:45;C=(isNaN(C)?0:C)-E*L;this.api.C("web_key_moments_markers")?this.Kx?(E=Ywk(this.Y,M*1E3),E=E!=null?this.Y[E].title:""):(E=pG(this.T,M*1E3),E=this.T[E].title):(E=pG(this.T,M*1E3),E=this.T[E].title);E||(C+=16*L);this.tooltip.scale===.6&&(g.x2(this.api.X())?(C=this.api.qd().getPlayerSize().height-225,L=this.api.C("delhi_modern_web_player")?70:110,C=E?C+L:C+ L+16):C=E?110:126);L=pG(this.T,M*1E3);this.W_=kcK(this,M,L)?L:kcK(this,M,L+1)?L+1:-1;g.Lt(this.api.getRootNode(),"ytp-progress-bar-snap",this.W_!==-1&&this.T.length>1);L=!1;Z=g.x(this.heatMarkersDecorations);for(b=Z.next();!b.done;b=Z.next()){b=b.value;var p=M*1E3;p>=b.visibleTimeRangeStartMillis&&p<=b.visibleTimeRangeEndMillis&&(E=b.label,l=g.iQ(b.decorationTimeMillis/1E3),this.api.C("web_heat_marker_use_current_time")&&(l=g.iQ(Md(this,w))),L=!0)}this.Wd!==L&&(this.Wd=L,this.api.logVisibility(this.TC, this.Wd));g.Lt(this.api.getRootNode(),"ytp-progress-bar-decoration",L);L=160*this.tooltip.scale*2;Z=E.length*(this.B?8.55:5.7);Z=Z<=L?Z:L;b=Z<160*this.tooltip.scale;L=3;!b&&Z/2>w.position&&(L=1);!b&&Z/2>this.W-w.position&&(L=2);this.api.X().G&&(C-=10);this.D.length&&this.D[0].q8&&(C-=14*(this.B?2:1),this.Md||(this.Md=!0,this.api.logVisibility(this.V7,this.Md)));var W;if(JU(this)&&(((W=this.V)==null?0:W.isEnabled)||this.Nd>0)){var h;C-=((h=this.V)==null?0:h.isEnabled)?bF(this):this.Nd}W=void 0;JU(this)&& !this.api.C("web_player_hide_fine_scrubbing_edu")&&(W="Pull up for precise seeking",this.Jc||(this.Jc=!0,this.api.logVisibility(this.k6,this.Jc)));this.tooltip.bE(D,M,l,!!k,C,E,L,W)}else this.tooltip.bE(D,M,l,!!k,C);g.AB(this.api.getRootNode(),"ytp-progress-bar-hover");AJG(this)}; g.y.eX_=function(){this.cH();g.D6(this.api.getRootNode(),"ytp-progress-bar-hover");this.Md&&(this.Md=!1,this.api.logVisibility(this.V7,this.Md));this.Jc&&(this.Jc=!1,this.api.logVisibility(this.k6,this.Jc));this.api.C("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.y.QsE=function(w,D){var M=g.AM(this.element);this.Is=w-M.x;JU(this)&&this.V&&(this.V.W_?ux(this.V,this.api.getCurrentTime()):okx(this.V),this.V.show(),g.Lt(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.V.isEnabled));this.BI&&(this.BI.dispose(),this.BI=null);this.Yx=D;this.wz=this.api.getCurrentTime();this.T.length>1&&this.W_!==-1?this.api.seekTo(this.T[this.W_].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Md(this,Oq(this)),!1,void 0,void 0,7);g.AB(this.element,"ytp-drag");(this.M5= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.y.uQE=function(){if(JU(this)&&this.V){var w=bF(this);this.Nd>=w*.5?(this.V.enable(),ux(this.V,this.api.getCurrentTime()),$BG(this,w)):lF(this)}if(g.z(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var D;if((D=this.V)==null?0:D.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.W_!==-1)this.api.C("html5_enable_progress_bar_slide_seek_logging")&&LE(this,this.wz,this.T[this.W_].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.W_].startTime/1E3,void 0,void 0,void 0,7);else{w=Md(this,Oq(this));this.api.C("html5_enable_progress_bar_slide_seek_logging")&&LE(this,this.wz,w,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(w,void 0,void 0,void 0,7);D=g.x(this.heatMarkersDecorations);for(var M=D.next();!M.done;M=D.next())M=M.value,w*1E3>=M.visibleTimeRangeStartMillis&&w*1E3<=M.visibleTimeRangeEndMillis&& this.api.logClick(this.TC)}g.D6(this.element,"ytp-drag");this.c_&&(this.nV.src=this.c_);this.M5&&!g.z(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.y.RX9=function(w,D){var M=this,L=Oq(this),Z=Md(this,L);this.api.qd().ZI||(L.position>this.Is+2?this.HA&&(this.nV.src=this.HA):L.position1);this.h1(w&&this.K.qd().getPlayerSize().width>=400);this.K.logVisibility(this.element,this.y$);var D=1;w&&this.isActive()&&(D=2);if(this.T!==D){this.T=D;w=this.K.C("delhi_modern_web_player_icons");switch(D){case 1:this.updateValue("icon",w?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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"}}]}:{Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{Z:"path",TD:!0,S:{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", w?{Z:"svg",S:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{Z:"path",S:{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.WEk())}g.Lt(this.element,"ytp-remote-button-active",this.isActive())}}; E8.prototype.V=function(){if(this.K.getOption("remote","quickCast"))this.K.setOption("remote","quickCast",!0);else{var w=this.Ac,D=this.element;if(w.lZ())w.aO();else{w.initialize();a:{var M=g.x(w.VF.items);for(var L=M.next();!L.done;L=M.next())if(L=L.value,L.priority===1){M=L;break a}M=null}M&&(M.open(),w.XQ(D));w.XQ(D)}}this.K.logClick(this.element)};g.I(pE,g.J);pE.prototype.T=function(w){var D=this.K.X(),M=400;this.K.C("web_player_small_hbp_settings_menu")&&D.Y?M=300:D.G&&(M=200);w=this.V&&w.width>=M;this.h1(w);this.K.logVisibility(this.element,w)}; pE.prototype.L=function(){if(this.Ac.y$)this.Ac.aO();else{var w=g.oZ(this.K.Ka());w&&!w.loaded&&(w.LJ("tracklist",{includeAsr:!0}).length||w.load());this.K.logClick(this.element);this.Ac.XQ(this.element)}}; pE.prototype.updateBadge=function(){var w=this.K.isHdr(),D=this.K.getPresentingPlayerType(),M=D!==2&&D!==3,L=g.KZ(this.K),Z=M&&!!g.O9(this.K.Ka());D=Z&&L.displayMode===1;L=Z&&L.displayMode===2;M=(Z=D||L)||!M?null:this.K.getPlaybackQuality();g.Lt(this.element,"ytp-hdr-quality-badge",w);g.Lt(this.element,"ytp-hd-quality-badge",!w&&(M==="hd1080"||M==="hd1440"));g.Lt(this.element,"ytp-4k-quality-badge",!w&&M==="hd2160");g.Lt(this.element,"ytp-5k-quality-badge",!w&&M==="hd2880");g.Lt(this.element,"ytp-8k-quality-badge", !w&&M==="highres");g.Lt(this.element,"ytp-3d-badge-grey",!w&&Z&&D);g.Lt(this.element,"ytp-3d-badge",!w&&Z&&L)};g.I(W4,HR);W4.prototype.isLoaded=function(){var w=g.vV(this.K.Ka());return w!==void 0&&w.loaded}; W4.prototype.Sk=function(){g.vV(this.K.Ka())!==void 0&&this.K.getPresentingPlayerType()!==3?this.T||(this.Ac.sB(this),this.T=!0):this.T&&(this.Ac.gz(this),this.T=!1);jg(this,this.isLoaded())}; W4.prototype.onSelect=function(w){this.isLoaded();w?this.K.loadModule("annotations_module"):this.K.unloadModule("annotations_module");this.K.publish("annotationvisibility",w)}; W4.prototype.oJ=function(){this.T&&this.Ac.gz(this);HR.prototype.oJ.call(this)};g.I(hf,g.cp);hf.prototype.Sk=function(){var w=this.K.getAvailableAudioTracks();w.length>1?(this.cX(g.yR(w,this.T)),this.tracks=g.Ol(w,this.T,this),this.countLabel.sV(w.length?" ("+w.length+")":""),this.publish("size-change"),this.V4(this.T(this.K.getAudioTrack())),this.enable(!0)):this.enable(!1)}; hf.prototype.W9=function(w){g.cp.prototype.W9.call(this,w);this.K.setAudioTrack(this.tracks[w]);this.K.publish("audiopreferencechange");this.Ac.Py()}; hf.prototype.T=function(w){return w.toString()}; hf.prototype.ob=function(w){this.K.C("html5_enable_new_audio_settings_menu")?this.V&&(w?this.V.sB(this):this.V.gz(this)):g.cp.prototype.ob.call(this,w)};g.I(ypK,g.EH);g.y=ypK.prototype;g.y.Gg=function(){this.K.Gg()}; g.y.open=function(){this.kA.jx()>0&&g.o$(this.Ac,this.kA)}; g.y.xP=function(){this.kA.jx()>0&&this.K.getPresentingPlayerType()!==2&&this.K.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.y.eP=function(w){w.defaultPrevented||(this.open(),w.preventDefault())}; g.y.sB=function(w){this.kA.sB(w)}; g.y.gz=function(w){this.kA.gz(w)};g.I(tf,HR); tf.prototype.xP=function(){var w=this.K.getPresentingPlayerType();if(w!==2&&w!==3&&g.AW(this.K))this.T||(this.Ac.sB(this),this.T=!0,this.V.push(this.j(this.K,"videodatachange",this.xP)),this.V.push(this.j(this.K,"videoplayerreset",this.xP)),this.V.push(this.j(this.K,"onPlaylistUpdate",this.xP)),this.V.push(this.j(this.K,"autonavchange",this.L)),w=this.K.getVideoData(),this.L(w.autonavState),this.K.logVisibility(this.element,this.T));else if(this.T){this.Ac.gz(this);this.T=!1;w=g.x(this.V);for(var D= w.next();!D.done;D=w.next())this.gt(D.value)}}; tf.prototype.L=function(w){jg(this,w!==1)}; tf.prototype.onSelect=function(w){this.K.nH(w?2:1);this.T&&(this.K.logVisibility(this.element,this.T),this.K.logClick(this.element))}; tf.prototype.oJ=function(){this.T&&this.Ac.gz(this);HR.prototype.oJ.call(this)};g.I(IwS,g.EH);IwS.prototype.onClick=function(w){w.preventDefault();var D,M;(D=g.c$(this.K))==null||(M=D.Vg())==null||M.aO();var L,Z;(L=g.c$(this.K))==null||(Z=L.mD())==null||Z.XQ(w.target)};g.I(UBK,g.cp);g.y=UBK.prototype; g.y.xP=function(){var w=this.K.getPresentingPlayerType();if(w!==2&&w!==3){this.V7=this.K.NQ();var D=this.K.getAvailableQualityLevels();if(this.T){this.V={};w=g.F0(this.K,"getAvailableQualityData",[]);w=g.x(w);for(var M=w.next();!M.done;M=w.next())M=M.value,this.V[M.qualityLabel]=M;w=Object.keys(this.V);D[D.length-1]==="auto"&&w.push("auto");this.nV=new Set(D)}else if(this.D){M=g.F0(this.K,"getAvailableQualityData",[]);w=[];M=g.x(M);for(var L=M.next();!L.done;L=M.next())L=L.value,this.Y[L.quality]= L,L.quality&&w.push(L.quality);D[D.length-1]==="auto"&&w.push("auto")}else w=D;g.v4S(this.K)&&this.K.TO()&&w.unshift("missing-qualities");D=this.K.app.IJ();M=D.getVideoData();if(!M.V||!M.V.video||M.V.video.qualityOrdinal<1080||M.lE)D=!1;else{L=/^qsa/.test(M.clientPlaybackNonce);var Z="r";M.V.id.indexOf(";")>=0&&(L=/^[a-p]/.test(M.clientPlaybackNonce),Z="x");L?(D.H_("iqss",{trigger:Z},!0),D=!0):D=!1}D&&w.unshift("inline-survey");this.cX(w);D=this.K.getVideoData().cotn?!0:!1;M=this.y7.rI();M=!g.x2(this.K.X())|| !(D===void 0?0:D)||!(M===void 0||M);D=this.kA;M=M===void 0?!1:M;D.BL&&g.Lt(D.Z5("ytp-panel-footer"),"ytp-panel-hide-footer",M===void 0?!1:M);if(w.length){this.Ua();this.enable(!0);return}}this.enable(!1)}; g.y.Ua=function(){if(this.T){var w=this.K.getPreferredQuality();this.nV.has(w)&&(this.W=this.K.getPlaybackQuality(),this.G=this.K.getPlaybackQualityLabel(),w==="auto"?(this.V4(w),this.sV(this.Kf(w))):this.V4(this.G))}else w=this.K.getPreferredQuality(),this.options[w]&&(this.W=this.K.getPlaybackQuality(),this.V4(w),w==="auto"&&this.sV(this.Kf(w)))}; g.y.W9=function(w){if(w!=="missing-qualities"){g.cp.prototype.W9.call(this,w);var D=this.T?this.V[w]:this.Y[w];var M=D==null?void 0:D.quality,L=D==null?void 0:D.formatId,Z=D==null?void 0:D.paygatedQualityDetails;D=Z==null?void 0:Z.endpoint;if(Z){var k;Z=(k=this.options[w])==null?void 0:k.element;this.K.logClick(Z)}if(this.T){var b,C;if((b=g.Q(D,g.RIs))==null?0:(C=b.popup)==null?0:C.notificationActionRenderer)this.K.Q7("innertubeCommand",D);else if(D){this.K.Q7("innertubeCommand",D);return}L?this.K.setPlaybackQuality(M, L):this.K.setPlaybackQuality(M)}else{if(this.D){var l,E;if((l=g.Q(D,g.RIs))==null?0:(E=l.popup)==null?0:E.notificationActionRenderer)this.K.Q7("innertubeCommand",D);else if(D){this.K.Q7("innertubeCommand",D);return}}this.K.setPlaybackQuality(w)}this.Ac.aO();this.xP()}}; g.y.open=function(){for(var w=g.x(Object.values(this.options)),D=w.next();!D.done;D=w.next()){D=D.value;var M=void 0;this.K.hasVe((M=D)==null?void 0:M.element)&&(M=void 0,this.K.logVisibility((M=D)==null?void 0:M.element,!0))}g.cp.prototype.open.call(this);this.K.logClick(this.element)}; g.y.f1=function(w,D,M){var L=this;if(w==="missing-qualities")return new g.EH({Z:"a",Yt:["ytp-menuitem"],S:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.K.X().B,tabindex:"0",role:"menuitemradio"},N:[{Z:"div",Yt:["ytp-menuitem-label"],LV:"{{label}}"}]},D,this.Kf(w));if(w!=="inline-survey"){var Z,k=(Z=this.T?this.V[w]:this.Y[w])==null?void 0:Z.paygatedQualityDetails;Z=k==null?void 0:k.veType;k=k==null?void 0:k.trackingParams;D=g.cp.prototype.f1.call(this,w,D,M);k?(this.K.createServerVe(D.element, this,!0),this.K.setTrackingParams(D.element,k)):Z&&this.K.createClientVe(D.element,this,Z,!0);return D}w=[{Z:"span",LV:"Looks good?"}];M=g.x([!0,!1]);k=M.next();for(Z={};!k.done;Z={n3:void 0},k=M.next())Z.n3=k.value,k=new g.J({Z:"span",J:"ytp-menuitem-inline-survey-response",N:[Z.n3?NQG():dAK()],S:{tabindex:"0",role:"button"}}),k.listen("click",function(b){return function(){var C=L.K.app.IJ();C.H_("iqsr",{tu:b.n3});C.getVideoData().lE=!0;L.Ac.aO();L.xP()}}(Z)),w.push(k); return new g.EH({Z:"div",J:"ytp-menuitem",S:{"aria-disabled":"true"},N:[{Z:"div",Yt:["ytp-menuitem-label"],N:w}]},D)}; g.y.Kf=function(w,D){D=D===void 0?!1:D;if(w==="missing-qualities")return{Z:"div",LV:"Missing options?"};if(w==="inline-survey")return"";var M=this.D||this.T?[HyN(this,w,D,!1)]:[NTI(this,w)];var L=this.K.getPreferredQuality();D||L!=="auto"||w!=="auto"||(M.push(" "),this.T?M.push(HyN(this,this.G,D,!0,["ytp-menu-label-secondary"])):this.D?M.push(HyN(this,this.W,D,!0,["ytp-menu-label-secondary"])):M.push(NTI(this,this.W,["ytp-menu-label-secondary"])));return{Z:"div",N:M}};g.I($S,BN);$S.prototype.L=function(){BN.prototype.L.call(this);this.B&&jmK(this)}; $S.prototype.c_=function(){this.y7()}; $S.prototype.nV=function(){this.K.setPlaybackRate(this.T,!0)}; $S.prototype.Y=function(w){BN.prototype.Y.call(this,w);this.y7();jmK(this);w.preventDefault()};g.I(iF,g.J);g.y=iF.prototype;g.y.init=function(){this.du(this.T);this.updateValue("minvalue",this.V);this.updateValue("maxvalue",this.L)}; g.y.EC=function(w){if(!w.defaultPrevented){switch(w.keyCode){case 37:case 40:var D=-this.G;break;case 39:case 38:D=this.G;break;default:return}this.du(this.T+D);w.preventDefault()}}; g.y.b$=function(w){var D=this.T;D+=(w.deltaX||-w.deltaY)<0?-this.B:this.B;this.du(D);w.preventDefault()}; g.y.QM=function(w){w=(w-g.AM(this.D).x)/this.y7*this.range+this.V;this.du(w)}; g.y.du=function(w,D){D=D===void 0?"":D;w=g.X4(w,this.V,this.L);D===""&&(D=w.toString());this.updateValue("valuenow",w);this.updateValue("valuetext",D);this.V7.style.left=(w-this.V)/this.range*(this.y7-this.W_)+"px";this.T=w}; g.y.focus=function(){this.fV.focus()};g.I(da,iF);da.prototype.nV=function(){this.K.setPlaybackRate(this.T,!0)}; da.prototype.du=function(w){iF.prototype.du.call(this,w,Rwk(this,w).toString());this.W&&(g8N(this),this.c_())}; da.prototype.updateValues=function(){var w=this.K.getPlaybackRate();Rwk(this,this.T)!==w&&(this.du(w),g8N(this))};g.I(o8S,g.Lb);o8S.prototype.focus=function(){this.T.focus()};g.I(n8x,Hp);g.I(GcT,g.cp);g.y=GcT.prototype;g.y.Kf=function(w){return w==="1"?"Normal":w.toLocaleString()}; g.y.Sk=function(){var w,D=(w=this.K.getVideoData())==null?void 0:w.rH();w=this.K.getPresentingPlayerType(D);this.enable(w!==2&&w!==3);v8r(this)}; g.y.cX=function(w){g.cp.prototype.cX.call(this,w);this.G&&this.G.V.focus()}; g.y.ob=function(w){g.cp.prototype.ob.call(this,w);w?(this.V7=this.j(this.K,"onPlaybackRateChange",this.onPlaybackRateChange),v8r(this),smS(this,this.K.getPlaybackRate())):(this.gt(this.V7),this.V7=null)}; g.y.onPlaybackRateChange=function(w){var D=this.K.getPlaybackRate();!this.D&&this.y7.includes(D)||awC(this,D);smS(this,w)}; g.y.f1=function(w,D,M){return w===this.T&&BTI(this.K)?g.cp.prototype.f1.call(this,w,D,M,{Z:"div",J:"ytp-speed-slider-menu-footer",N:[this.G]}):w===this.V&&FoS(this.K,this.nV)?cpI(this,w,D,M):g.cp.prototype.f1.call(this,w,D,M)}; g.y.W9=function(w){g.cp.prototype.W9.call(this,w);w===this.V?(this.K.logClick(this.Y.element),this.K.Q7("innertubeCommand",this.nV)):w===this.T?this.K.setPlaybackRate(this.W,!0):this.K.setPlaybackRate(Number(w),!0);BTI(this.K)&&w===this.T||this.Ac.Py()}; g.y.Sz=function(w){var D=w===this.T;this.D=!1;D&&yh(this.K)&&!BTI(this.K)?(w=new n8x(this.K),g.o$(this.Ac,w)):g.cp.prototype.Sz.call(this,w)};g.I(qCR,g.cp);g.y=qCR.prototype;g.y.V4=function(w){g.cp.prototype.V4.call(this,w)}; g.y.mL=function(w){return w.option.toString()}; g.y.getOption=function(w){return this.settings[w]}; g.y.Kf=function(w){return this.getOption(w).text||""}; g.y.W9=function(w){g.cp.prototype.W9.call(this,w);this.publish("settingChange",this.setting,this.settings[w].option)};g.I(U8,g.jt);U8.prototype.Gr=function(w){for(var D=g.x(Object.keys(w)),M=D.next();!M.done;M=D.next()){var L=M.value;if(M=this.jI[L]){var Z=w[L].toString();L=!!w[L+"Override"];M.options[Z]&&(M.V4(Z),M.V.element.setAttribute("aria-checked",String(!L)),M.T.element.setAttribute("aria-checked",String(L)))}}}; U8.prototype.E1=function(w,D){this.publish("settingChange",w,D)};g.I(xS,g.cp);xS.prototype.T=function(w){return w.languageCode}; xS.prototype.Kf=function(w){return this.languages[w].languageName||""}; xS.prototype.W9=function(w){this.publish("select",w);this.K.logClick(this.element);g.n4(this.Ac)};g.I(XkK,g.cp);g.y=XkK.prototype;g.y.I_=function(w){return g.WD(w)?"__off__":w.displayName}; g.y.Kf=function(w){return w==="__off__"?"Off":w==="__translate__"?"Auto-translate":w==="__contribute__"?"Add subtitles/CC":w==="__correction__"?"Suggest caption corrections":(w==="__off__"?{}:this.tracks[w]).displayName}; g.y.W9=function(w){if(w==="__translate__")this.T.open();else if(w==="__contribute__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var D=g.pA(this.K.X(),this.K.getVideoData());g.fm(D)}else if(w==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var M=TTR(this);Nd(this,M);g.cp.prototype.W9.call(this,this.I_(M));var L,Z;M=(D=this.K.getVideoData().getPlayerResponse())==null?void 0:(L=D.captions)==null?void 0:(Z=L.playerCaptionsTracklistRenderer)== null?void 0:Z.openTranscriptCommand;this.K.Q7("innertubeCommand",M);this.Ac.Py();this.V&&this.K.logClick(this.V)}else{if(w==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();D=TTR(this);Nd(this,D);g.cp.prototype.W9.call(this,this.I_(D));var k,b;D=(M=this.K.getVideoData().getPlayerResponse())==null?void 0:(k=M.captions)==null?void 0:(b=k.playerCaptionsTracklistRenderer)==null?void 0:b.openTranscriptCommand;this.K.Q7("innertubeCommand",D)}else this.K.logClick(this.element), Nd(this,w==="__off__"?{}:this.tracks[w]),g.cp.prototype.W9.call(this,w);this.Ac.Py()}}; g.y.Sk=function(){var w=this.K.getOptions();w=w&&w.indexOf("captions")!==-1;var D=this.K.getVideoData(),M=D&&D.jF,L,Z=!((L=this.K.getVideoData())==null||!g.dZ(L));L={};if(w||M){var k;if(w){var b=this.K.getOption("captions","track");L=this.K.getOption("captions","tracklist",{includeAsr:!0});var C=Z?[]:this.K.getOption("captions","translationLanguages");this.tracks=g.Ol(L,this.I_,this);Z=g.yR(L,this.I_);var l,E;TTR(this)&&((k=D.getPlayerResponse())==null?0:(l=k.captions)==null?0:(E=l.playerCaptionsTracklistRenderer)== null?0:E.openTranscriptCommand)&&Z.push("__correction__");if(C.length&&!g.WD(b)){if((k=b.translationLanguage)&&k.languageName){var p=k.languageName;k=C.findIndex(function(W){return W.languageName===p}); GKI(C,k)}rpI(this.T,C);Z.push("__translate__")}k=this.I_(b)}else this.tracks={},Z=[],k="__off__";Z.unshift("__off__");this.tracks.__off__={};M&&Z.unshift("__contribute__");this.tracks[k]||(this.tracks[k]=b,Z.push(k));this.cX(Z);this.V4(k);b&&b.translationLanguage?this.T.V4(this.T.T(b.translationLanguage)):mdJ(this.T);w&&this.D.Gr(this.K.getSubtitlesUserSettings());this.countLabel.sV(L&&L.length?" ("+L.length+")":"");this.publish("size-change");this.K.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.y.eU=function(w){var D=this.K.getOption("captions","track");D=g.$O(D);D.translationLanguage=this.T.languages[w];Nd(this,D)}; g.y.E1=function(w,D){if(w==="reset")this.K.resetSubtitlesUserSettings();else{var M={};M[w]=D;this.K.updateSubtitlesUserSettings(M)}ewI(this,!0);this.W.start();this.D.Gr(this.K.getSubtitlesUserSettings())}; g.y.rud=function(w){w||g.JB(this.W)}; g.y.oJ=function(){g.JB(this.W);g.cp.prototype.oJ.call(this)}; g.y.open=function(){g.cp.prototype.open.call(this);this.options.__correction__&&!this.V&&(this.V=this.options.__correction__.element,this.K.createClientVe(this.V,this,167341),this.K.logVisibility(this.V,!0))};g.I(uQK,g.R$);g.y=uQK.prototype; g.y.initialize=function(){if(!this.isInitialized){var w=this.K.X();this.isInitialized=!0;try{this.hj=new UBK(this.K,this)}catch(M){g.jn(Error("QualityMenuItem creation failed"))}g.T(this,this.hj);var D=new XkK(this.K,this);g.T(this,D);w.L||(D=new W4(this.K,this),g.T(this,D));w.enableSpeedOptions&&(D=new GcT(this.K,this),g.T(this,D));(g.w0(w)||w.Y)&&(w.V||w.jk)&&(D=new IwS(this.K,this),g.T(this,D));w.FK&&!w.C("web_player_move_autonav_toggle")&&(D=new tf(this.K,this),g.T(this,D));w.C("html5_enable_new_audio_settings_menu")? (this.zn=new ypK(this.K,this),g.T(this,this.zn)):(w=new hf(this.K,this),g.T(this,w));this.K.publish("settingsMenuInitialized");dBK(this.settingsButton,this.VF.jx())}}; g.y.sB=function(w){this.initialize();this.VF.sB(w);dBK(this.settingsButton,this.VF.jx())}; g.y.gz=function(w){this.y$&&this.VF.jx()<=1&&this.hide();this.VF.gz(w);dBK(this.settingsButton,this.VF.jx())}; g.y.XQ=function(w){this.initialize();this.VF.jx()>0&&g.R$.prototype.XQ.call(this,w)}; g.y.aO=function(){this.j6?this.j6=!1:g.R$.prototype.aO.call(this)}; g.y.show=function(){g.R$.prototype.show.call(this);g.AB(this.K.getRootNode(),"ytp-settings-shown")}; g.y.hide=function(){g.R$.prototype.hide.call(this);g.D6(this.K.getRootNode(),"ytp-settings-shown")}; g.y.uo=function(w){this.K.logVisibility(this.element,w);this.K.publish("settingsMenuVisibilityChanged",w)};g.I(JpN,g.J);g.y=JpN.prototype;g.y.onClick=function(){if(H4(this)&&(this.K.toggleSubtitles(),this.K.logClick(this.element),!this.isEnabled())){var w=!1,D=g.aj().vr(65);g.x2(this.K.X())&&D!=null&&(w=!D);w&&this.K.X().C("web_player_nitrate_promo_tooltip")&&this.K.publish("showpromotooltip",this.element)}}; g.y.Qch=function(w){var D,M;(D=g.c$(this.K))==null||(M=D.Vg())==null||M.XQ(w)}; g.y.isEnabled=function(){var w=this.K.getOption("captions","track");return!(!w||!w.displayName)}; g.y.Sk=function(){var w=H4(this),D=300;this.K.X().G&&(D=480);this.K.C("delhi_modern_web_player_icons")&&this.updateValue("icon",Qml(this));if(this.K.X().Y){this.updateValue("title",g.uR(this.K,"Subtitles/closed captions","c"));this.update({"tooltip-title":g.uR(this.K,"Subtitles/closed captions","c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var M=w}else{if(w)(M=this.Z5("ytp-subtitles-button-icon"))==null||M.setAttribute("fill-opacity","1"),this.K.X().C("player_tooltip_data_title_killswitch")? this.updateValue("title",g.uR(this.K,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.uR(this.K,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{if(this.K.C("delhi_modern_web_player_icons")){var L;(L=this.Z5("ytp-subtitles-button-icon"))==null||L.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var Z;(Z=this.Z5("ytp-subtitles-button-icon"))==null||Z.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"})}M=!0}this.tooltip.tY();M=M&&this.K.qd().getPlayerSize().width>=D;this.h1(M);this.K.logVisibility(this.element,M);w?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.y.A1=function(w){g.J.prototype.A1.call(this,w)};g.I(g.je,g.J);g.y=g.je.prototype;g.y.canShowCountdown=function(){return!o7(this)&&!R7(this)}; g.y.M$=function(){var w=this.api.qd().getPlayerSize().width,D=this.B;this.api.X().G&&(D=400);D=w>=D&&(!R7(this)||!g.z(this.api.getPlayerStateObject(),64));this.h1(D);g.Lt(this.element,"ytp-time-display-allow-autohide",D&&w<400);w=this.api.getProgressState();if(D){var M=this.api.getPresentingPlayerType();D=this.api.getCurrentTime(M,!1);this.V&&(D-=w.airingStart);o7(this)&&(D-=this.cz.startTimeMs/1E3);this.canShowCountdown()&&this.L&&(D-=this.api.getDuration(M,!1));var L=g.iQ(D);this.D!==L&&(this.updateValue("currenttime", L),this.D=L);M=o7(this)?(this.cz.endTimeMs-this.cz.startTimeMs)/1E3:this.api.getDuration(M,!1);L=g.iQ(M);this.W!==L&&(this.updateValue("duration",L),this.W=L,D&&(D=g.M0("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.iQ(D,!0),DURATION:g.iQ(M,!0)}),this.updateValue("timeDisplayAriaLabel",D)))}zwl(this,w.isAtLiveHead);VuK(this,this.api.getLoopRange())}; g.y.onLoopRangeChange=function(w){var D=this.cz!==w;this.cz=w;D&&(this.M$(),P8J(this))}; g.y.sc7=function(){this.api.setLoopRange(null)}; g.y.glE=function(){this.L=!this.L;this.M$()}; g.y.onVideoDataChange=function(w,D,M){this.updateVideoData((this.api.X().C("enable_topsoil_wta_for_halftime")||this.api.X().C("enable_topsoil_wta_for_halftime_live_infra"))&&M===2?this.api.getVideoData(1):D);this.M$();P8J(this)}; g.y.updateVideoData=function(w){this.WS=w.isLivePlayback&&!w.pV;this.V=U9(w);this.isPremiere=w.isPremiere;g.Lt(this.element,"ytp-live",R7(this));this.api.C("delhi_modern_web_player")&&this.Z5("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.y.onClick=function(w){w.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.y.oJ=function(){this.T&&this.T();g.J.prototype.oJ.call(this)};g.I(KoN,g.J);g.y=KoN.prototype;g.y.U_=function(){var w=this.api.x9();this.L!==w&&(this.L=w,Oyr(this,this.api.getVolume(),this.api.isMuted()))}; g.y.TT=function(w){this.h1(w.width>=350)}; g.y.Rk=function(w){if(!w.defaultPrevented){var D=w.keyCode,M=null;D===37?M=this.volume-5:D===39?M=this.volume+5:D===36?M=0:D===35&&(M=100);M!==null&&(M=g.X4(M,0,100),M===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(M)),w.preventDefault())}}; g.y.qK=function(w){var D=w.deltaX||-w.deltaY;w.deltaMode?this.api.setVolume(this.volume+(D<0?-10:10)):this.api.setVolume(this.volume+g.X4(D/10,-10,10));w.preventDefault()}; g.y.S4J=function(){nE(this,this.T,!0,this.V,this.api.Nk());this.B=this.volume;this.api.isMuted()&&this.api.unMute()}; g.y.u$=function(w){var D=this.L?78:52,M=this.L?18:12;w-=g.AM(this.G).x;this.api.setVolume(g.X4((w-M/2)/(D-M),0,1)*100)}; g.y.d8c=function(){nE(this,this.T,!1,this.V,this.api.Nk());this.volume===0&&(this.api.mute(),this.api.setVolume(this.B))}; g.y.onVolumeChange=function(w){Oyr(this,w.volume,w.muted)}; g.y.XM=function(){nE(this,this.T,this.isDragging,this.V,this.api.Nk())}; g.y.oJ=function(){g.J.prototype.oJ.call(this);g.D6(this.Y,"ytp-volume-slider-active")};g.I(F2,g.J); F2.prototype.onVideoDataChange=function(){var w=this.api.X();this.EB();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).yZ;this.h1(this.visible);this.api.logVisibility(this.element,this.visible&&this.U);if(this.visible){var D=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",D)}w.L&&(this.T&&(this.gt(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.AB(this.element,"no-link")); D=this.api.X();w=this.api.getVideoData();var M="";D.L||(D=g.iw(D),D.indexOf("www.")===0&&(D=D.substring(4)),M=g.xs(w)?"Watch on YouTube Music":D==="youtube.com"?"Watch on YouTube":g.M0("Watch on $WEBSITE",{WEBSITE:D}));this.api.C("player_tooltip_data_title_killswitch")?this.updateValue("title",M):this.updateValue("tooltip-title",M)}; F2.prototype.onClick=function(w){this.api.C("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var D=this.api.X(),M=this.api.getVideoUrl(!g.dJ(w),!1,!0,!0);if(g.w0(D)){var L={};g.w0(D)&&g.F0(this.api,"addEmbedsConversionTrackingParams",[L]);M=g.dh(M,L)}g.R4(M,this.api,w);this.api.C("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; F2.prototype.EB=function(){var w={Z:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},N:[{Z:"path",TD:!0,J:"ytp-svg-fill",S:{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 "}}]}, D=28666,M=this.api.getVideoData();this.api.isEmbedsShortsMode()?w={Z:"svg",S:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},N:[{Z:"path",S:{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.xs(M)&&(w={Z:"svg",S:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},N:[{Z:"path",S:{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"}},{Z:"path",S:{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"}},{Z:"path",S:{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"}},{Z:"path",S:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Z:"path",S:{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"}},{Z:"path",S:{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"}},{Z:"path",S:{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"}},{Z:"path",S:{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"}},{Z:"path",S:{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"}},{Z:"path",S:{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"}},{Z:"path",S:{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"}},{Z:"path",S:{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"}}]},D=216163);g.xs(M)?g.AB(this.element,"ytp-youtube-music-button"):g.D6(this.element,"ytp-youtube-music-button");w.S=Object.assign({},w.S,{"aria-hidden":"true"});this.updateValue("logoSvg",w);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,D,!0)}; F2.prototype.A1=function(w){g.J.prototype.A1.call(this,w);this.api.logVisibility(this.element,this.visible&&w)};g.I(wuS,g.xM);g.y=wuS.prototype;g.y.onProgress=function(){if(this.K.C("web_player_max_seekable_on_ended")||!g.z(this.K.getPlayerStateObject(),2))fT(this.Bd),this.progressBar.M$(),this.R9.M$()}; g.y.Zl=function(){this.F4();if(fT(this.Bd))this.progressBar.cH();else this.onProgress()}; g.y.pR=function(){this.onProgress();this.B.start()}; g.y.F4=function(){var w;if(w=!this.K.X().V){w=this.progressBar;var D=2*g.UK()*w.W,M=w.L;w=(M.T-M.V)*1E3/w.api.getPlaybackRate()/D<300}w=w&&this.K.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;D=!w;fT(this.Bd)&&(w=D=!1);D?this.nV||(this.nV=this.j(this.K,"progresssync",this.onProgress)):this.nV&&(this.gt(this.nV),this.nV=null);w?this.B.isActive()||this.B.start():this.B.stop()}; g.y.EB=function(){var w=this.K.x9(),D=this.K.qd().getPlayerSize(),M=this.K.qd().ZI,L=MLK(this),Z=LZK(this),k=Math.max(D.width-L*2,100);if(this.pV!==D.width||this.EL!==w||this.K.C("web_player_rtr_ctrls")&&this.rS!==M)this.pV=D.width,this.EL=w,this.rS=M,this.V.element.style.width=Z+"px",this.V.element.style.left=L+"px",g.hwJ(this.progressBar,L,Z,w),this.K.E4().yS=Z;M=this.D;k=Math.min(570*(w?1.5:1),k);w=Math.min(413*(w?1.5:1),Math.round((D.height-Z8a(this))*.82));M.maxWidth=k;M.maxHeight=w;M.KU();this.F4(); this.mu&&mlk(this.bW,D.height)}; g.y.onVideoDataChange=function(){var w=this.K.getVideoData();this.Md.style.background=w.yZ?w.eZ:"";this.V7&&kYj(this.V7,w.showSeekingControls);this.y7&&kYj(this.y7,w.showSeekingControls)}; g.y.Dv=function(){return this.V.element};g.I(k$K,N6);g.y=k$K.prototype;g.y.Ty=function(w){w.target!==this.dismissButton.element&&(this.onClickCommand&&this.K.Q7("innertubeCommand",this.onClickCommand),this.Nh())}; g.y.Nh=function(){this.enabled=!1;this.B.hide()}; g.y.onVideoDataChange=function(w,D){w==="dataloaded"&&b8K(this);w=[];var M,L,Z,k;if(D=(k=g.Q((M=D.getWatchNextResponse())==null?void 0:(L=M.playerOverlays)==null?void 0:(Z=L.playerOverlayRenderer)==null?void 0:Z.suggestedActionsRenderer,DPZ))==null?void 0:k.suggestedActions)for(M=g.x(D),L=M.next();!L.done;L=M.next())(L=g.Q(L.value,MiZ))&&g.Q(L.trigger,wCx)&&w.push(L);if(w.length!==0){M=[];w=g.x(w);for(L=w.next();!L.done;L=w.next())if(L=L.value,Z=g.Q(L.trigger,wCx))k=(k=L.title)?g.bI(k):"View Chapters", D=Z.timeRangeStartMillis,Z=Z.timeRangeEndMillis,D!=null&&Z!=null&&L.tapCommand&&(M.push(new g.ue(D,Z,{priority:9,namespace:"suggested_action_button_visible",id:k})),this.suggestedActions[k]=L.tapCommand);this.K.bT(M)}}; g.y.zP=function(){return this.enabled}; g.y.uo=function(){this.enabled?this.Md.start():U1(this);this.Lf()}; g.y.oJ=function(){b8K(this);N6.prototype.oJ.call(this)};var Ru={},a7=(Ru.CHANNEL_NAME="ytp-title-channel-name",Ru.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Ru.LINK="ytp-title-link",Ru.SESSIONLINK="yt-uix-sessionlink",Ru.SUBTEXT="ytp-title-subtext",Ru.TEXT="ytp-title-text",Ru.TITLE="ytp-title",Ru);g.I(v4,g.J);v4.prototype.onClick=function(w){this.api.logClick(this.element);var D=this.api.X(),M=this.api.getVideoUrl(!g.dJ(w),!1,!0);g.w0(D)&&(D={},g.F0(this.api,"addEmbedsConversionTrackingParams",[D]),M=g.dh(M,D));g.R4(M,this.api,w)}; v4.prototype.Sk=function(){var w=this.api.getVideoData(),D=this.api.X();this.updateValue("title",w.title);var M={Z:"a",J:a7.CHANNEL_NAME,S:{href:"{{channelLink}}",target:"_blank"},LV:"{{channelName}}"};this.api.X().L&&(M={Z:"span",J:a7.CHANNEL_NAME,LV:"{{channelName}}",S:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",M);YVC(this);this.api.getPresentingPlayerType()===2&&(M=this.api.getVideoData(),M.videoId&&M.isListed&&M.author&&M.iW&&M.profilePicture?(this.updateValue("channelLink", M.iW),this.updateValue("channelName",M.author),this.updateValue("channelTitleFocusable","0")):YVC(this));M=D.externalFullscreen||!this.api.isFullscreen()&&D.HX;g.Lt(this.link,a7.FULLERSCREEN_LINK,M);D.V7||!w.videoId||M||w.yZ||D.L?this.T&&(this.updateValue("url",null),this.gt(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.j(this.link,"click",this.onClick)));D.L&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.w0(D)?w.expandedTitle: w.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.I(g.c4,g.J);g.y=g.c4.prototype;g.y.setEnabled=function(w){if(this.type!=null)if(w)switch(this.type){case 3:case 2:B4(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.Y=w}; g.y.bE=function(w,D,M,L,Z,k,b,C){if(!this.c_||this.env.G){this.type===3&&this.cH();this.type!==1&&(g.Ko(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.Y&&this.fade.show(),this.V&&this.V.dispose(),(this.V=this.api.WH())&&this.V.subscribe("l",this.EN,this));if(C){var l=g.MP(this.bg).height||141;this.W_.style.bottom=l+2+"px"}else this.W_.style.display="none";this.env.C("delhi_modern_web_player")?(this.update({pillTimeStamp:M,pillTitle:k!=null?k:"",eduText:C!=null?C:""}),g.AB(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:M,title:k!=null?k:"",eduText:C!=null?C:""}),g.Lt(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!k));this.api.isInline()&&g.AB(this.bottomText,"ytp-modern-tooltip-text");g.Lt(this.element,"ytp-text-detail",!!L);M=-1;this.V&&(M=CL(this.V,243*this.scale),this.env.C("web_l3_storyboard")&&this.V.levels.length===4&&(M=this.V.levels.length-1),M=kRC(this.V,M,D));puj(this,M);if(b)switch(D=g.MP(this.element).width,b){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=D+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=D/2+"px",this.title.style.textAlign="center"}EPT(this,!!L,w,Z)}}; g.y.zj=function(){this.type===1&&this.cH()}; g.y.Mc=function(w,D){if(this.type)if(this.type===3)this.cH();else return;CaN(this,w,3,D)}; g.y.tY=function(){this.T&&!this.G&&(this.env.C("player_tooltip_data_title_killswitch")?this.T.hasAttribute("title")&&(this.L=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.Y&&B4(this)):this.T.hasAttribute("data-tooltip-title")&&(this.L=this.T.getAttribute("data-tooltip-title")||"",this.T.removeAttribute("data-tooltip-title"),this.Y&&B4(this)))}; g.y.EN=function(w,D){w<=this.D&&this.D<=D&&(w=this.D,this.D=NaN,puj(this,w))}; g.y.PW5=function(){LiN(this.V,this.D,243*this.scale)}; g.y.cH=function(){switch(this.type){case 2:var w=this.T;w.removeEventListener("mouseout",this.B);w.addEventListener("mouseover",this.W);w.removeEventListener("blur",this.B);w.addEventListener("focus",this.W);WZl(this);break;case 3:WZl(this);break;case 1:this.V&&(this.V.unsubscribe("l",this.EN,this),this.V=null),this.api.removeEventListener("videoready",this.y7),this.V7.stop()}this.type=null;this.Y&&this.fade.hide()}; g.y.JV=function(){if(this.T)for(var w=0;w=0;D--)if(this.lB[D]===w){this.lB.splice(D,1);break}BV(this.Bd,64,this.lB.length>0)}; g.y.mp=function(){this.api.Y8()&&this.api.h3();return!!this.Am||IQa(this)||g.Vr.prototype.mp.call(this)}; g.y.g0=function(){var w=!this.mp(),D=w&&this.api.Y8()&&!g.z(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().yZ&&!this.api.X().L&&!this.api.isEmbedsShortsMode(),M=this.sR&&g.VP(this.api)&&g.z(this.api.getPlayerStateObject(),128);w||M?(this.iE.show(),this.Bg.show()):(this.iE.hide(),this.Bg.hide(),this.api.JV(this.dZ.element));D?this.UH.XQ():this.UH.aO();this.py&&DWK(this.py,this.U8_||!w);this.api.C("web_player_hide_overflow_button_if_empty_menu")&&UWK(this);g.Vr.prototype.g0.call(this)}; g.y.D3=function(w,D,M,L,Z){w.style.left="";w.style.top="";w.style.bottom="";var k=g.MP(w),b=L||this.py&&g.Ug(this.py.Dv(),D),C=L=null;M!=null&&b||(L=g.MP(D),C=g.wl(D,this.api.getRootNode()),M==null&&(M=C.x+L.width/2));M-=k.width/2;b?(D=this.py,L=MLK(D),C=LZK(D),b=this.api.qd().getPlayerSize().height,M=g.X4(M,L,L+C-k.width),k=b-Z8a(D)-k.height):g.Ug(this.dZ.element,D)?(D=this.api.qd().getPlayerSize().width,M=g.X4(M,12,D-k.width-12),k=this.x9()?this.Oj:this.AZ,this.api.X().playerStyle==="gvn"&&(k+= 20),this.sR&&(k-=this.x9()?26:18)):(D=this.api.qd().getPlayerSize(),M=g.X4(M,12,D.width-k.width-12),k=C.y>(D.height-L.height)/2?C.y-k.height-12:C.y+L.height+12);w.style.top=k+(Z||0)+"px";w.style.left=M+"px"}; g.y.Zl=function(w){w&&(this.api.JV(this.dZ.element),this.py&&this.api.JV(this.py.Dv()));this.Vj&&(g.Lt(this.contextMenu.element,"ytp-autohide",w),g.Lt(this.contextMenu.element,"ytp-autohide-active",!0));g.Vr.prototype.Zl.call(this,w)}; g.y.fd=function(){g.Vr.prototype.fd.call(this);this.Vj&&(g.Lt(this.contextMenu.element,"ytp-autohide-active",!1),this.Vj&&(this.contextMenu.hide(),this.xx&&this.xx.hide()))}; g.y.Sa=function(w,D){var M=this.api.qd().getPlayerSize();M=new g.Td(0,0,M.width,M.height);if(w||!fT(this.Bd)&&!this.mp()){if(this.api.X().cC||D)w=this.x9()?this.Oj:this.AZ,M.top+=w,M.height-=w;this.py&&(M.height-=Z8a(this.py))}return M}; g.y.U_=function(w){var D=this.api.getRootNode();w?D.parentElement?(D.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.X().externalFullscreen||(D.parentElement.insertBefore(this.YK.element,D),D.parentElement.insertBefore(this.aP.element,D.nextSibling))):g.HL(Error("Player not in DOM.")):(D.setAttribute("aria-label","YouTube Video Player"),this.YK.detach(),this.aP.detach());this.EB();this.OZ()}; g.y.x9=function(){if(this.api.C("web_player_use_screen_width_for_big_mode")){var w;return this.api.qd().getPlayerSize().width>=((w=g.A3(this.api.X().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?w:2E3)}w=this.api.X();return this.api.isFullscreen()&&!w.G||!1}; g.y.showControls=function(w){this.PG=!w;this.g0()}; g.y.EB=function(){var w=this.x9();this.tooltip.scale=w?1.5:1;this.contextMenu&&g.Lt(this.contextMenu.element,"ytp-big-mode",w);this.g0();this.api.C("web_player_hide_overflow_button_if_empty_menu")||UWK(this);this.OZ();var D=this.api.isEmbedsShortsMode();D&&w?(w=(this.api.qd().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Qv(this.dZ.element,"padding-left",w+"px"),g.Qv(this.dZ.element,"padding-right",w+"px")):D&&(g.Qv(this.dZ.element,"padding-left",""),g.Qv(this.dZ.element,"padding-right", ""));g.Vr.prototype.EB.call(this)}; g.y.aj=function(){if(IQa(this)&&!g.VP(this.api))return!1;var w=this.api.getVideoData();return!g.w0(this.api.X())||this.api.getPresentingPlayerType()===2||!this.Nm||((w=this.Nm||w.Nm)?(w=w.embedPreview)?(w=w.thumbnailPreviewRenderer,w=w.videoDetails&&g.Q(w.videoDetails,e0T)||null):w=null:w=null,w&&w.collapsedRenderer&&w.expandedRenderer)?g.Vr.prototype.aj.call(this):!1}; g.y.OZ=function(){g.Vr.prototype.OZ.call(this);this.api.logVisibility(this.title.element,!!this.i8);this.oZ&&this.oZ.A1(!!this.i8);this.channelAvatar.A1(!!this.i8);this.overflowButton&&this.overflowButton.A1(this.kc()&&!!this.i8);this.shareButton&&this.shareButton.A1(!this.kc()&&!!this.i8);this.fG&&this.fG.A1(!this.kc()&&!!this.i8);this.searchButton&&this.searchButton.A1(!this.kc()&&!!this.i8);this.copyLinkButton&&this.copyLinkButton.A1(!this.kc()&&!!this.i8);if(!this.i8){this.api.JV(this.dZ.element); for(var w=0;w5&&D.H_("glrs",{cmt:M});D.seekTo(0,{seekSource:58});D.H_("glrre",{cmt:M})}}; ra.prototype.oJ=function(){this.T=null;g.X.prototype.oJ.call(this)};g.I(g.ee,jV);g.y=g.ee.prototype;g.y.isView=function(){return!0}; g.y.RS=function(){var w=this.mediaElement.getCurrentTime();if(w1;kW(w.O4(),L-.01)&&!Z&&(TI(this,4),M.isActive=!1,M.zN=M.zN||M.isActive,(this.W===1?this.T:this.V).H_("sbh",{}),D.isActive=!0,D.zN=D.zN||D.isActive,this.W!==0&&(this.T.getVideoData().Xc=!0));w=this.D.V;if(this.D.T.isActive&&w.isActive&&(TI(this,5),this.W!==0)){w=this.V.pG();M=this.T.pG(); this.T.H_("sbs",{citag:M==null?void 0:M.itag,nitag:w==null?void 0:w.itag});this.V.H_("gitags",{pitag:M==null?void 0:M.itag,citag:w==null?void 0:w.itag});var k;(k=this.V)==null||k.Ut()}}}; g.y.ej=function(){this.Bw()&&this.nx("player-reload-after-handoff")}; g.y.nx=function(w,D){D=D===void 0?{}:D;if(!this.xt()&&this.status.status!==6){var M=this.status.status>=4&&w!=="player-reload-after-handoff";this.status={status:Infinity,error:w};if(this.T&&this.V){var L=this.V.getVideoData().clientPlaybackNonce;this.T.ZX(new g.W_("dai.transitionfailure",Object.assign(D,{cpn:L,transitionTimeMs:this.oo,msg:w})));this.T.Oy(M)}this.qn.reject(w);this.dispose()}}; g.y.Bw=function(){return this.status.status>=4&&this.status.status<6}; g.y.oJ=function(){aQC(this);this.T.unsubscribe("newelementrequired",this.ej,this);if(this.L){var w=this.L.V;this.L.T.VZ.unsubscribe("updateend",this.HK,this);w.VZ.unsubscribe("updateend",this.HK,this)}g.X.prototype.oJ.call(this)}; g.y.He=function(w){g.Y0(w,128)&&this.nx("player-error-event")};g.I(uF,g.X);uF.prototype.clearQueue=function(w,D){w=w===void 0?!1:w;D=D===void 0?!1:D;this.D&&this.D.reject("Queue cleared");this.app.X().C("html5_gapless_fallback_on_qoe_restart_v2")||D&&this.V&&this.V.Oy(!1);Se(this,w)}; uF.prototype.aT=function(){return!this.T}; uF.prototype.Bw=function(){var w;return((w=this.L)==null?void 0:w.Bw())||!1}; uF.prototype.oJ=function(){Se(this);g.X.prototype.oJ.call(this)};g.I(Xuj,g.mI);g.y=Xuj.prototype;g.y.getVisibilityState=function(w,D,M,L,Z,k,b,C){return w?4:f3J()?3:D?2:M?1:L?5:Z?7:k?8:b?9:C?10:0}; g.y.Ai=function(w){this.fullscreen!==w&&(this.fullscreen=w,this.uo())}; g.y.setMinimized=function(w){this.V!==w&&(this.V=w,this.uo())}; g.y.setInline=function(w){this.inline!==w&&(this.inline=w,this.uo())}; g.y.HV=function(w){this.pictureInPicture!==w&&(this.pictureInPicture=w,this.uo())}; g.y.setSqueezeback=function(w){this.L!==w&&(this.L=w,this.uo())}; g.y.A5=function(w){this.D!==w&&(this.D=w,this.uo())}; g.y.Fl=function(){return this.T}; g.y.DQ=function(){return this.fullscreen!==0}; g.y.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.y.jY=function(){return this.fullscreen}; g.y.isMinimized=function(){return this.V}; g.y.isInline=function(){return this.inline}; g.y.isBackground=function(){return f3J()}; g.y.z$=function(){return this.pictureInPicture}; g.y.Ia=function(){return!1}; g.y.Ef=function(){return this.L}; g.y.X1=function(){return this.D}; g.y.uo=function(){this.publish("visibilitychange");var w=this.getVisibilityState(this.Fl(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.z$(),this.Ia(),this.Ef(),this.X1());w!==this.Y&&this.publish("visibilitystatechange");this.Y=w}; g.y.oJ=function(){eYk(this.W);g.mI.prototype.oJ.call(this)};g.I(g.Qh,g.X);g.y=g.Qh.prototype;g.y.oJ=function(){this.videoData=this.playerState=null;g.X.prototype.oJ.call(this)}; g.y.addCueRange=function(){}; g.y.Pi=function(){}; g.y.bY=function(){}; g.y.rg=function(){return!1}; g.y.yB=function(){return!1}; g.y.IN=function(){}; g.y.E8=function(){}; g.y.Xo=function(){return[]}; g.y.Gg=function(){}; g.y.ix=function(){}; g.y.uy=function(){return 1}; g.y.getAudioTrack=function(){return this.getVideoData().zK}; g.y.BK=function(){return null}; g.y.getAvailableAudioTracks=function(){return[]}; g.y.NQ=function(){return[]}; g.y.jE=function(){return[]}; g.y.Ei=function(){return""}; g.y.ew=function(){return[]}; g.y.Ul=function(){}; g.y.rd=function(){return 0}; g.y.getCurrentTime=function(){return 0}; g.y.mM=function(){}; g.y.pG=function(){}; g.y.qC=function(){return{}}; g.y.getDuration=function(){return 0}; g.y.vy=function(){return 0}; g.y.mj=function(){return 0}; g.y.ag=function(){return!1}; g.y.rV=function(){return 0}; g.y.dC=function(){return 0}; g.y.E3=wR(7);g.y.GK=function(){return 0}; g.y.qQ=function(){return!1}; g.y.hf=function(){return 0}; g.y.ij=function(){return null}; g.y.d2=function(){return null}; g.y.BA=function(){return 0}; g.y.N3=function(){return 0}; g.y.ZJ=function(){return g.B(function(w){g.Hr(w)})}; g.y.Bt=wR(15);g.y.getPlaybackQuality=function(){return"auto"}; g.y.getPlaybackRate=function(){return 1}; g.y.getPlayerState=function(){this.playerState||(this.playerState=new g.FF);return this.playerState}; g.y.getPlayerType=function(){return 0}; g.y.getPlaylistSequenceForTime=function(){return null}; g.y.au=function(){return function(){}}; g.y.u8=function(){return""}; g.y.getPreferredQuality=function(){return"unknown"}; g.y.Eo=function(){}; g.y.getProximaLatencyPreference=function(){return 0}; g.y.vD=function(){return $i}; g.y.WH=function(){return null}; g.y.getStoryboardFormat=function(){return null}; g.y.getStreamTimeOffset=function(){return 0}; g.y.OD=function(){return 0}; g.y.jb=function(){return 0}; g.y.Wf=function(){return{Mj:[],FG:[],currentTime:0,LZ:"",droppedVideoFrames:0,isGapless:!1,aT:!0,eM:0,Xg:0,bP:0,EP:0,e8:0,p5:[],xp:[],gh:null,playerState:this.getPlayerState(),S_:null,Zd:"",totalVideoFrames:0}}; g.y.getUserAudio51Preference=function(){return 0}; g.y.getUserPlaybackQualityPreference=function(){return""}; g.y.getVideoData=function(){this.videoData||(this.videoData=new g.db(this.mE),g.T(this,this.videoData));return this.videoData}; g.y.XT=function(){return null}; g.y.Bi=function(){return null}; g.y.eJ=function(){}; g.y.getVideoLoadedFraction=function(){return 0}; g.y.Az=function(){}; g.y.handleError=function(){}; g.y.Oy=function(){}; g.y.Ec=function(){}; g.y.Tf=wR(40);g.y.I$=function(){return!1}; g.y.hasSupportedAudio51Tracks=function(){return!1}; g.y.BC=function(){return!1}; g.y.Fl=function(){return!1}; g.y.isAtLiveHead=function(){return!1}; g.y.PM=function(){return!0}; g.y.isGapless=function(){return!1}; g.y.isHdr=function(){return!1}; g.y.zZ=function(){return!1}; g.y.cS=function(){return!1}; g.y.XJ=function(){return!1}; g.y.isProximaLatencyEligible=function(){return!1}; g.y.aT=function(){return!0}; g.y.bX=function(){return!1}; g.y.g6=function(){return!1}; g.y.dM=function(){}; g.y.lf=function(){}; g.y.Ut=function(){}; g.y.Ip=function(){}; g.y.Ay=function(){}; g.y.o6=function(){}; g.y.DR=function(){}; g.y.ea=wR(50);g.y.nP=wR(21);g.y.J_=function(){}; g.y.pauseVideo=function(){}; g.y.prefetchKeyPlay=function(){}; g.y.playVideo=function(){return g.B(function(w){return w.return()})}; g.y.rp=function(){}; g.y.B9=wR(27);g.y.AY=wR(33);g.y.bq=function(){}; g.y.H_=function(){}; g.y.s1=function(){}; g.y.iB=function(){}; g.y.Bq=function(){}; g.y.ZX=function(){}; g.y.Ud=function(){}; g.y.mA=function(){}; g.y.q1=function(){}; g.y.R7=function(){}; g.y.Hg=function(){}; g.y.Bx=function(){}; g.y.removeCueRange=function(){}; g.y.Yh=function(){}; g.y.N8=function(){return[]}; g.y.lA=function(){}; g.y.Mm=function(){}; g.y.vc=function(){}; g.y.yd=function(){}; g.y.KH=function(){}; g.y.jL=function(){}; g.y.seekTo=function(){}; g.y.sendAbandonmentPing=function(){}; g.y.sendVideoStatsEngageEvent=function(){}; g.y.yP=function(){}; g.y.setLoop=function(){}; g.y.G_=function(){}; g.y.setMediaElement=function(){}; g.y.e4=function(){}; g.y.setPlaybackRate=function(){}; g.y.Pd=function(){}; g.y.VP=function(){}; g.y.F6=function(){}; g.y.setProximaLatencyPreference=function(){}; g.y.pY=function(){}; g.y.sK=function(){}; g.y.bu=function(){}; g.y.UK=function(){}; g.y.vg=function(){}; g.y.setUserAudio51Preference=function(){}; g.y.YF=function(){}; g.y.tf=function(){return!1}; g.y.Wt=function(){}; g.y.HC=function(){return!1}; g.y.uu=function(){}; g.y.HR=function(){}; g.y.Vl=function(){}; g.y.stopVideo=function(){}; g.y.subscribe=function(){return NaN}; g.y.zH=function(){}; g.y.togglePictureInPicture=function(){}; g.y.cV=function(){return 0}; g.y.BW=function(){}; g.y.unsubscribe=function(){return!1}; g.y.Ya=function(){}; g.y.Ep=function(){return!1}; g.y.A2=function(){}; g.y.z8=function(){}; g.y.Bs=function(){};g.I(Vh,g.X);g.y=Vh.prototype;g.y.get=function(w){Jf(this);var D=this.data.find(function(M){return M.key===w}); return D?D.value:null}; g.y.set=function(w,D,M){this.remove(w,!0);Jf(this);w={key:w,value:D,expire:Infinity};M&&isFinite(M)&&(M*=1E3,w.expire=(0,g.IC)()+M);for(this.data.push(w);this.data.length>this.L;)(M=this.data.shift())&&P4(this,M,!0);zI(this)}; g.y.remove=function(w,D){D=D===void 0?!1:D;var M=this.data.find(function(L){return L.key===w}); M&&(P4(this,M,D),g.nk(this.data,function(L){return L.key===w}),zI(this))}; g.y.removeAll=function(w){if(w=w===void 0?!1:w)for(var D=g.x(this.data),M=D.next();!M.done;M=D.next())P4(this,M.value,w);this.data=[];zI(this)}; g.y.oJ=function(){var w=this;g.X.prototype.oJ.call(this);this.data.forEach(function(D){P4(w,D,!0)}); this.data=[]};g.I(g.O8,g.X);g.y=g.O8.prototype;g.y.oJ=function(){for(var w=g.x(Object.values(this.L)),D=w.next();!D.done;D=w.next())D.value.dispose();TXl(this);this.T.dispose();g.X.prototype.oJ.call(this)}; g.y.rz=function(w){return w?w===1?this.U:this.V.getVideoData().enableServerStitchedDai&&w===2?this.V.getVideoData().BV?this.L[2]||this.V:this.V:this.L[w]||null:this.V}; g.y.fl=function(w){var D=w.cpn;w=w.playerType;if(D)a:{w=g.x(Object.values(this.L));for(var M=w.next();!M.done;M=w.next())if(M=M.value,M.Ei()===D){D=M;break a}D=this.Y[D]||null}else D=w?this.rz(w):this.V;return D}; g.y.OL=function(){return this.U}; g.y.xq=function(w){this.U=w}; g.y.IJ=function(){return this.V}; g.y.kQ=function(w){this.V=w;KE(this)}; g.y.Cw=wR(46);g.y.iq=wR(48);g.I(KZJ,g.Zi);g.y=KZJ.prototype;g.y.MG=function(){}; g.y.Ei=function(){return this.videoData.clientPlaybackNonce}; g.y.getVideoData=function(){if(g.Zi.prototype.getVideoData.call(this).C("html5_huli_ssdai_use_playback_state")){var w=xoC(this.j2,g.Zi.prototype.getCurrentTime.call(this))||g.Zi.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==w.clientPlaybackNonce&&mWj(this.V,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:w.clientPlaybackNonce});return this.videoData}return xoC(this.j2,g.Zi.prototype.getCurrentTime.call(this))||g.Zi.prototype.getVideoData.call(this)}; g.y.getCurrentTime=function(w){var D=g.Zi.prototype.getCurrentTime.call(this);if(g.Zi.prototype.getVideoData.call(this).C("html5_huli_ssdai_use_playback_state")){this.T===0?w||(D-=this.startTimeSecs):w&&(D=this.T);var M=w?this.j2.eI||g.Zi.prototype.getCurrentTime.call(this):doK(this.j2,g.Zi.prototype.getCurrentTime.call(this));D!==M&&mWj(this.V,"time"+(w!=null?w:!1),{time:D,ref:M,ct:w!=null?w:!1})}else D=w?this.j2.eI||D:doK(this.j2,D);return D}; g.y.getDuration=function(){if(g.Zi.prototype.getVideoData.call(this).C("html5_huli_ssdai_use_playback_state")){var w=IHG(this.j2,g.Zi.prototype.getCurrentTime.call(this));this.duration!==w&&mWj(this.V,"duration",{dur:this.duration,ref:w});return this.duration}return IHG(this.j2,g.Zi.prototype.getCurrentTime.call(this))}; g.y.OM=function(w){this.duration=w};g.Af.prototype.Pf=function(w,D){if(D===1)return this.T.get(w);if(D===2)return this.L.get(w);if(D===3)return this.V.get(w)}; g.Af.prototype.Jo=wR(58);g.Af.prototype.CY=function(w,D,M,L){M={Ny:L,cK:M};D?this.L.set(w,M):this.T.set(w,M)}; g.Af.prototype.clearAll=function(){this.T.clear();this.L.clear();this.V.clear()}; w0K.prototype.clear=function(){this.V=[];this.L.clear();this.D.clear();this.T.clear()}; w0K.prototype.fl=function(w){var D=w.cpn;w=w.JQ;if(D&&(D=this.L.get(D))||w&&(D=(this.W?this.L:this.D).get(w)))return D}; g.I(g.w$,g.X);g.y=g.w$.prototype;g.y.onCueRangeEnter=function(w){var D=w.getId();this.La({oncueEnter:1,cpn:D,start:w.start,end:w.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.rd()||0).toFixed(3)});var M=this.T.fl({cpn:D});this.La({enterAdCueRange:1});var L=this.OT||this.Xm().cpn,Z;L=(Z=this.T.fl({cpn:L}))!=null?Z:this.Xm();M&&(Z=this.playback.getCurrentTime(),M.startTimeSecs=w.start/1E3,M={y6:L,O8:M,U8:Z},X0I(this,D,w.start/1E3,Z),Yc(this,M))}; g.y.sC=function(w,D){if(w&&D){var M,L=((M=this.app.Hy().D)==null?void 0:M.Ei())||this.playback.Ei(),Z;M=(Z=this.T.fl({cpn:L}))!=null?Z:this.Xm();var k;w=(k=this.T.fl({cpn:w}))!=null?k:this.Xm();w.startTimeSecs=D;k=this.playback.getCurrentTime();X0I(this,L,D,k);Yc(this,{y6:M,O8:w,U8:k})}}; g.y.ER=function(w,D){if(w===this.playback.Ei())mN(this.app.Hy(),this.playback,!1);else{var M=this.W_.get(w);M?(M.T=0,M.startTimeSecs=D,mN(this.app.Hy(),M,!0)):this.La({nop_s:w})}}; g.y.onCueRangeExit=function(w){for(var D=this.playback.getCurrentTime()*1E3,M=w.getId(),L=g.x(this.V.values()),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.getId()!==M&&D>=Z.start&&D<=Z.end)return;if(M=this.T.fl({cpn:M}))D=this.playback.getCurrentTime(),L=this.Xm(),L.startTimeSecs=w.end/1E3,M={y6:M,O8:L,U8:D},X0I(this,this.playback.Ei(),w.end/1E3,D),Yc(this,M)}; g.y.Xm=function(){return{cpn:this.playback.Ei(),durationMs:0,ZO:0,playerType:1,DX:0,videoData:this.playback.getVideoData(),errorCount:0,tH:""}}; g.y.seekTo=function(w,D,M,L){w=w===void 0?0:w;D=D===void 0?{}:D;M=M===void 0?!1:M;L=L===void 0?null:L;bn(this,this.OT);if(this.playback.getVideoData().rH()&&w<=this.eI)this.playback.pauseVideo(),this.eI=0,TcG(this,w);else if(this.y7=!0,M)YGx(this,w,D);else{M=this.app.IJ();var Z=M===this.c_?this.Nd:null;Zn(this,!1);this.iW=w;this.pV=D;L!=null&&this.EL.start(L);M&&(this.Nd=Z||M.getPlayerState(),M.Vl(D),this.c_=M)}}; g.y.oJ=function(){Zn(this,!1);jUN(this);gpJ(this);g.X.prototype.oJ.call(this)}; g.y.gD=function(w){this.mu=w;this.La({swebm:w})}; g.y.hH=function(w,D,M){if(M&&D){var L=this.W.get(w);if(L){L.locations||(L.locations=new Map);var Z=Number(D.split(";")[0]);M=new g.S_(M);this.La({hdlredir:1,itag:D,seg:w,hostport:J$(M)});L.locations.set(Z,M)}}}; g.y.NO=function(w,D,M,L,Z,k){var b=L===3,C=npx(this,w,D,L,M,k);if(!C){kc(this,D,b);var l=g.R3K(this,D)?"undec":"ncp";this.La({gvprp:l,mt:w,seg:D,tt:L,itag:M,ce:k});return null}b||this.W.set(D,C);k=C.tH;var E;L=((E=this.Pf(D-1,L,Z))==null?void 0:E.Ny)||"";L===""&&this.La({eds:1});E=GSJ(this,C.ssdaiAdsConfig);Z=this.playback.getVideoData();var p;b=((p=Z.V)==null?void 0:p.containerType)||0;p=Z.Ee[b];C=C.eL&&D>=C.eL?C.eL:void 0;p={nT:k?cZC(this,k):[],adsConfig:E,Ny:L,yl:C,rr:v5(p.split(";")[0]),Gq:p.split(";")[1]|| ""};C={TK:p};this.Md&&(w={gvprpro:"v",sq:D,mt:w.toFixed(3),itag:M,acpns:((l=p.nT)==null?void 0:l.join("_"))||"none",abid:k},this.La(w));return C}; g.y.SB=function(w){a:{if(!this.fS){var D=Fnr(this,w);if(!(this.playback.getVideoData().rH()&&(D==null?0:D.j8)))break a}D=void 0}var M=D;if(!M)return this.La({gvprp:"ncp",mt:w}),null;D=M.tH;var L=GSJ(this,M.ssdaiAdsConfig);M=M.eL&&M.X3&&w>=M.X3?M.eL:void 0;var Z=this.playback.getVideoData(),k,b=((k=Z.V)==null?void 0:k.containerType)||0;k=Z.Ee[b];k={nT:D?cZC(this,D):[],adsConfig:L,yl:M,rr:v5(k.split(";")[0]),Gq:k.split(";")[1]||""};var C;w={gvprpro:"v",mt:w.toFixed(3),acpns:((C=k.nT)==null?void 0:C.join("_"))|| "none",abid:D};this.La(w);return k}; g.y.Tz=function(w,D,M,L,Z,k){var b=Number(M.split(";")[0]),C=L===3;w=npx(this,w,D,L,M,k);this.La({gdu:1,seg:D,itag:b,pb:""+!!w});if(!w)return kc(this,D,C),null;w.locations||(w.locations=new Map);if(!w.locations.has(b)){var l,E;k=(l=w.videoData.getPlayerResponse())==null?void 0:(E=l.streamingData)==null?void 0:E.adaptiveFormats;if(!k)return this.La({gdu:"noadpfmts",seg:D,itag:b}),kc(this,D,C),null;l=k.find(function(h){return h.itag===b}); if(!l||!l.url){var p=w.videoData.videoId;w=[];var W=g.x(k);for(L=W.next();!L.done;L=W.next())w.push(L.value.itag);this.La({gdu:"nofmt",seg:D,vid:p,itag:b,fullitag:M,itags:w.join(",")});kc(this,D,C);return null}w.locations.set(b,new g.S_(l.url,!0))}k=w.locations.get(b);if(!k)return this.La({gdu:"nourl",seg:D,itag:b}),kc(this,D,C),null;k=new BM(k);this.mu&&(k.get("dvc")?this.La({dvc:k.get("dvc")||""}):k.set("dvc","webm"));(L=(W=this.Pf(D-1,L,Z))==null?void 0:W.Ny)&&k.set("daistate",L);w.eL&&D>=w.eL&& k.set("skipsq",""+w.eL);(W=this.playback.getVideoData().clientPlaybackNonce)&&k.set("cpn",W);W=[];w.tH&&(W=cZC(this,w.tH),W.length>0&&k.set("acpns",W.join(",")));C||this.W.set(D,w);C=null;C=k.get("aids");L=k.M8();(L==null?void 0:L.length)>2048&&this.La({urltoolong:1,sq:D,itag:b,len:L.length});this.Md&&(L&&(k=w.cpn,Z=w.tH,qGN(this,k,Z),Z&&!this.NC.has(Z)&&(k=Bca(this,k,Z),l=fHK(this,Z),this.La({iofa:k}),this.La({noawnzd:l-k}),this.La({acpns:W.join("."),aids:(p=C)==null?void 0:p.replace(/,/g,".")}), this.NC.add(Z))),this.La({gdu:"v",seg:D,itag:M,ast:w.ZO.toFixed(3),alen:w.durationMs.toFixed(3),acpn:w.cpn,avid:w.videoData.videoId}));return L}; g.y.EQ=function(w,D,M){M=M===void 0?!1:M;var L=opN(this,w,D);if(L){var Z=void 0,k=L.tH;if(k){this.La({skipadonsq:D,sts:M,abid:k,acpn:L.cpn,avid:L.videoData.videoId});M=this.T.T.get(k);if(!M)return;M=g.x(M);for(k=M.next();!k.done;k=M.next())k=k.value,k.eL=D,k.X3=w,k.ZO>L.ZO&&(Z=k)}bn(this,this.OT);this.L=L.cpn;sUC(this);this.api.C("html5_ssdai_enable_media_end_cue_range")&&this.playback.BW(this.L);w=this.playback.getCurrentTime();this.mE.C("html5_use_new_ssdai_transition_detector")&&this.ER(this.playback.Ei(), w);aHN(this,L,Z,w,w,!1,!0);e3R(this)}}; g.y.V3=function(){for(var w=g.x(this.T.V),D=w.next();!D.done;D=w.next())D=D.value,D.eL=NaN,D.X3=NaN;sUC(this);this.La({rsac:"resetSkipAd",sac:this.L});this.bW.delete(this.L);this.L=""}; g.y.Pf=function(w,D,M){return this.V7.Pf(w,D,M)}; g.y.Jo=wR(57); g.y.CY=function(w,D,M,L,Z,k,b,C,l){L.length>0&&this.La({onssinfo:1,sq:w,start:D.toFixed(3),cpns:L.join(","),ds:Z.join(","),isVideo:b?1:0});l&&this.V7.CY(w,b,C,l);if(b){if(L.length&&Z.length)for(this.bW.has(L[0])&&this.La({skipfail:1,sq:w,acpn:L[0]}),w=D+this.OD(),M=0;M0&&(this.hs=0,this.OT="",this.mE.C("html5_huli_ssdai_use_playback_state")&&this.ER(this.playback.Ei(),0),this.api.publish("serverstitchedvideochange"));this.playback.E8(M,L);return!0}; g.y.Uy=function(){this.La({rstdaist:1});this.V7.clearAll()}; g.y.Xa=function(w){var D;if(w!==((D=this.Y)==null?void 0:D.identifier))this.La({ignorenoad:w});else{this.HA.add(w);this.La({noadrcv:w});var M;((M=this.Y)==null?void 0:M.identifier)===w&&MF(this)}}; g.y.Fr=function(w){if(this.fS)return this.La({dai_disabled:w.event}),!1;if(this.playback.getVideoData().rH()&&(w.event==="continue"||w.event==="stop"))return!1;var D=GW(this.api.Ka());if(D=D?D.Fr(w):!1)this.D={gk:w.identifier,s5:w.startSecs};else if(this.D&&this.D.gk===w.identifier&&w.startSecs>this.D.s5+1){this.La({cueStChg:w.identifier,oldSt:this.D.s5.toFixed(3),newSt:w.startSecs.toFixed(3),abid:this.D.pB});if(this.D.pB){var M=w.startSecs-this.D.s5,L=this.T.T.get(this.D.pB);if(L){L=g.x(L);for(var Z= L.next();!Z.done;Z=L.next())Z=Z.value,Z.ZO>=0&&(Z.ZO+=M*1E3,this.mE.C("html5_ssdai_update_timeline_on_start_time_change")&&(Z.DX+=M*1E3),this.La({newApEt:Z.ZO,newApPrt:Z.DX,acpn:Z.cpn}))}}this.D.s5=w.startSecs}this.mE.C("html5_ssdai_log_missing_ad_config_reason")&&(D?this.fV.add(w.identifier):this.fV.has(w.identifier)&&this.fV.delete(w.identifier));return D}; g.y.Np=function(w){var D="";w?w.event==="unknown"?D="unknown":this.fV.has(w.identifier)?this.D&&this.D.gk===w.identifier?this.D.gk===w.identifier?D="pending":uX(this.XE,function(M){return M.identifier===w.identifier})||(D="noAdsAdded"):D="wrongAdBreakInfo":D="unscheduled":D="noCuepoint"; return D}; g.y.hR=function(w){return this.fS?!1:!!Fnr(this,w)}; g.y.wD=function(w){var D=this;if(this.mE.C("html5_lifa_ignore_multiple_skips")&&this.nV)return this.La({ufs_ad:this.L,ufs_cur:this.OT,ufs_cont:this.Xm().cpn}),!1;bn(this,this.OT);this.playback.pauseVideo();var M=this.playback.getCurrentTime(),L=this.T.fl({cpn:this.OT});if(!L)return this.La({skipFail:M}),!1;this.L=this.OT;this.y7=!1;this.api.C("html5_ssdai_enable_media_end_cue_range")&&this.playback.BW(this.L);rZK(this,L.tH);uLx(this,L,this.Xm(),w);TcG(this,M,{seekSource:89,GD:"lifa_skip"});this.nV|| (this.nV=this.events.j(this.api,"progresssync",function(){iD(D.api.nJ(),(0,g.IC)(),"ad_to_video");D.nV&&(D.events.gt(D.nV),D.nV=null)})); return!0}; g.y.La=function(w,D){((D===void 0?0:D)||this.Md||this.playback.getVideoData().rH())&&this.playback.H_("sdai",w)}; var p0K=0;g.I(QUr,g.X);g.y=QUr.prototype;g.y.onCueRangeEnter=function(w){if(this.T===this.app.IJ()){var D=this.W.get(w);D?KnI(this,D.target,D.oo,w):this.ZX("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:w.toString()})}else if(D=this.V.find(function(Z){return Z.Su.bO===w})){var M=D.Su,L=M.target; M=M.oo;L?KnI(this,L,M,w):OxK(this,D.DX,M,w)}}; g.y.onQueuedVideoLoaded=function(){var w=this.G;pC(this);if(w){if(!ES(this,w)){var D=this.app.IJ();this.ZX("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:D==null?void 0:D.getVideoData().clientPlaybackNonce,ccpn:""+w.playerVars.cpn})}this.app.IJ().addCueRange(w.Su.bO)}}; g.y.seekTo=function(w,D,M,L){w=w===void 0?0:w;D=D===void 0?{}:D;L=L===void 0?null:L;if(M===void 0?0:M)SGa(this,w,D);else{M=this.app.IJ()||null;var Z=M===this.D?this.Y:null;WG(this,!1);this.y7=w;this.B=D;L!=null&&this.U.start(L);M&&(this.Y=Z||M.getPlayerState(),M.Vl(),this.D=M)}}; g.y.fJ=function(w){g.Y0(w,128)&&MSl(this)}; g.y.isManifestless=function(){return qQ(this.T.getVideoData())}; g.y.oJ=function(){WG(this,!1);Z0J(this);g.X.prototype.oJ.call(this)}; g.y.ZX=function(w,D){this.T.ZX(new g.W_(w,D))}; var JZR=0;var kEG="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.I(hy,g.X);hy.prototype.tv=function(w){if(w)return this.V.get(w)}; hy.prototype.oJ=function(){this.T.removeAll();this.V.removeAll();g.X.prototype.oJ.call(this)};g.VyP=cb(function(){var w=window.AudioContext||window.webkitAudioContext;try{return new w}catch(D){return D.name}});g.I(Ehl,g.J);g.y=Ehl.prototype;g.y.Z1=function(){g.wF(this.element,g.rR.apply(0,arguments))}; g.y.Mm=function(){this.i9&&(this.i9.removeEventListener("focus",this.I0),g.Id(this.i9),this.i9=null)}; g.y.rk=function(){this.xt();var w=this.app.X();w.Cm||this.Z1("tag-pool-enabled");w.Y&&this.Z1(g.Up.HOUSE_BRAND);w.playerStyle==="gvn"&&(this.Z1("ytp-gvn"),this.element.style.backgroundColor="transparent");w.GU&&(this.nF=g.Vn("yt-dom-content-change",this.resize,this));this.j(window,"orientationchange",this.resize,this);this.j(window,"resize",this.resize,this)}; g.y.Ml=function(w){g.k2(this.app.X());this.pK=!w;ty(this)}; g.y.resize=function(){if(this.i9){var w=this.KJ();if(!w.isEmpty()){this.app.d9.isFullscreen()&&f7()&&this.Zi.start();var D=!g.z7(w,this.MZ.getSize()),M=$sT(this);D&&(this.MZ.width=w.width,this.MZ.height=w.height);w=this.app.X();(M||D||this.iM||w.GU)&&this.app.d9.publish("resize",this.getPlayerSize())}}}; g.y.vX=function(w,D){this.updateVideoData(D)}; g.y.updateVideoData=function(w){if(this.i9){var D=this.app.X();e$&&(this.i9.setAttribute("x-webkit-airplay","allow"),w.title?this.i9.setAttribute("title",w.title):this.i9.removeAttribute("title"));this.i9.setAttribute("controlslist","nodownload");D.DH&&w.videoId&&(this.i9.poster=w.yL("default.jpg"))}D=g.VQ(w,"yt:bgcolor");this.jo.style.backgroundColor=D?D:"";this.zY=wQ(g.VQ(w,"yt:stretch"));this.o0=wQ(g.VQ(w,"yt:crop"),!0);g.Lt(this.element,"ytp-dni",w.yZ);this.resize()}; g.y.setGlobalCrop=function(w){this.Qr=wQ(w,!0);this.resize()}; g.y.setCenterCrop=function(w){this.Iz=w;this.resize()}; g.y.Ai=function(){}; g.y.getPlayerSize=function(){var w=this.app.X(),D=this.app.d9.isFullscreen(),M=w.externalFullscreen&&g.w0(w);if(D&&f7()&&!M)return new g.Jv(window.outerWidth,window.outerHeight);M=!isNaN(this.CZ.width)&&!isNaN(this.CZ.height);var L=this.app.X().C("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.X().C("web_watch_enable_fs_squeezeback_panels");if(D&&!M&&L)return new g.Jv(this.element.clientWidth,this.element.clientHeight);if(D||w.Ps){if(window.matchMedia){w="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.XC&&this.XC.media===w||(this.XC=window.matchMedia(w));var Z=this.XC&&this.XC.matches}if(Z)return new g.Jv(window.innerWidth,window.innerHeight)}else if(M)return this.CZ.clone();return new g.Jv(this.element.clientWidth,this.element.clientHeight)}; g.y.KJ=function(){var w=this.app.X().C("enable_desktop_player_underlay"),D=this.getPlayerSize(),M=g.A3(this.app.X().experiments,"player_underlay_min_player_width");return w&&this.GB&&D.width>M?(w=g.A3(this.app.X().experiments,"player_underlay_video_width_fraction"),new g.Jv(Math.min(D.height*this.getVideoAspectRatio(),D.width*w),Math.min(D.height,D.width*w/this.getVideoAspectRatio()))):D}; g.y.getVideoAspectRatio=function(){return isNaN(this.zY)?WWR(this):this.zY}; g.y.getVideoContentRect=function(w){var D=this.KJ();w=hXJ(this,D,this.getVideoAspectRatio(),w);return new g.Td((D.width-w.width)/2,(D.height-w.height)/2,w.width,w.height)}; g.y.Qm=function(w){this.GB=w;this.resize()}; g.y.kd=function(){return this.kE}; g.y.onMutedAutoplayChange=function(){ty(this)}; g.y.setInternalSize=function(w){g.z7(this.CZ,w)||(this.CZ=w,this.resize())}; g.y.oJ=function(){this.nF&&g.PA(this.nF);this.Mm();g.J.prototype.oJ.call(this)};g.y=dsj.prototype;g.y.click=function(w,D){this.elements.has(w);this.T.has(w);var M=g.$9();M&&w.visualElement&&g.VJ(M,w.visualElement,D)}; g.y.createClientVe=function(w,D,M,L){var Z=this;L=L===void 0?!1:L;this.elements.has(w);this.elements.add(w);M=yYa(M);w.visualElement=M;var k=g.$9(),b=g.tn();k&&b&&(g.hY("combine_ve_grafts")?Zt(Ma(),M,b):g.Q6(g.f1)(void 0,k,b,M));D.addOnDisposeCallback(function(){Z.elements.has(w)&&Z.destroyVe(w)}); L&&this.V.add(w)}; g.y.createServerVe=function(w,D,M){var L=this;M=M===void 0?!1:M;this.elements.has(w);this.elements.add(w);D.addOnDisposeCallback(function(){L.destroyVe(w)}); M&&this.V.add(w)}; g.y.destroyVe=function(w){this.elements.has(w);this.elements.delete(w);this.L.delete(w);this.T.delete(w);this.V.delete(w)}; g.y.z7=function(w,D){this.clientPlaybackNonce!==D&&(this.clientPlaybackNonce=D,LA(Ma(),w),ylG(this))}; g.y.setTrackingParams=function(w,D){this.elements.has(w);D&&(w.visualElement=g.WL(D))}; g.y.h1=function(w,D,M){this.elements.has(w);D?this.T.add(w):this.T.delete(w);var L=g.$9(),Z=w.visualElement;this.V.has(w)?L&&Z&&(D?g.Jn(L,[Z]):g.zo(L,[Z])):D&&!this.L.has(w)&&(L&&Z&&g.QJ(L,Z,void 0,M),this.L.add(w))}; g.y.hasVe=function(w){return this.elements.has(w)};g.I(g.d$,g.X);g.d$.create=function(w,D,M,L){try{var Z=typeof w==="string"?w:"player"+g.br(w),k=ou[Z];if(k){try{k.dispose()}catch(C){g.HL(C)}ou[Z]=null}var b=new g.d$(w,D,M,L);b.addOnDisposeCallback(function(){ou[Z]=null;b.v$&&b.v$()}); return ou[Z]=b}catch(C){throw g.HL(C),(C&&C instanceof Error?C:Error(String(C))).stack;}}; g.y=g.d$.prototype;g.y.vx=function(){return this.visibility}; g.y.xq=function(w){var D=this.OL();if(w!==D){w.getVideoData().autonavState=D.getVideoData().autonavState;D.Ya(this.vJ,this);var M=D.getPlaybackRate();D.dispose();this.Cl.xq(w);w.setPlaybackRate(M);w.zH(this.vJ,this);FWr(this)}}; g.y.wZ=function(){this.YD||(this.YD=g.XX(MI(),s2J()));return this.YD}; g.y.Mm=function(w){if(this.mediaElement){this.CU&&(this.events.gt(this.CU),this.CU=null);g.NA(this.ri);this.IJ().Mm(!0,!1,w);this.template.Mm();try{this.C("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.oU()}catch(D){g.jn(D)}this.mediaElement=null}}; g.y.kQ=function(w,D,M){M=M===void 0?!1:M;if(w!==this.IJ()){this.logger.debug(function(){return"start set presenting player, type "+w.getPlayerType()+", vid "+w.getVideoData().videoId}); var L=null;M||(M=this.IJ(),L=M.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),F6(this.s4,3),e7(this,"cuerangesremoved",M.ew()),this.Fz&&!w.isGapless()&&M.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),M=w.tf()&&M.tf(),this.Wz.WV("iv_s"),qmj(this,M));w.getPlayerType()===1&&this.xq(w);fcI(this,w);this.Cl.kQ(w);this.mediaElement&&w.setMediaElement(this.mediaElement);w.zH(this.I7,this);w.g6()?EvT(this,"setPresenting",!1):(this.vX("newdata",w,w.getVideoData()), L&&!g.BF(L,w.getPlayerState())&&this.m7(new g.k0(w.getPlayerState(),L)),D=D&&w.getPlayerType()===1,w.cS()&&!D&&this.vX("dataloaded",w,w.getVideoData()),(D=(D=w.getVideoData().V)&&D.video)&&this.d9.Im("onPlaybackQualityChange",D.quality),e7(this,"cuerangesadded",w.ew()),D=w.getPlayerState(),g.z(D,2)?Bmj(this):g.z(D,8)?w.playVideo():w.zZ()&&w.pauseVideo(),D=this.OL(),w.getPlayerType()===2&&(w.getVideoData().h7=D.getVideoData().clientPlaybackNonce),w.getPlayerType()!==2||this.cI()||(L=w.getVideoData(), D.rp(L.clientPlaybackNonce,L.Nr||"",L.breakType||0,L.wz,L.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.y.UF=function(){if(this.OL()!==this.IJ()){var w=this.IJ();this.logger.debug(function(){return"release presenting player, type "+w.getPlayerType()+", vid "+w.getVideoData().videoId}); this.kQ(this.OL())}}; g.y.Hy=function(){return this.Cl}; g.y.fl=function(w){return this.Cl.fl(w)}; g.y.rz=function(w){return this.Cl.rz(w)}; g.y.OL=function(){return this.Cl.OL()}; g.y.IJ=function(){return this.Cl.IJ()}; g.y.BE=wR(44);g.y.HaW=function(){HG(this)||(this.logger.debug("application playback ready"),this.bA(5))}; g.y.M2E=function(){if(!HG(this)){this.logger.debug("playback ready");bwT(this);var w=this.IJ(),D=w.getPlayerState();w.zZ()?this.pauseVideo():D.isOrWillBePlaying()&&this.playVideo()}}; g.y.canPlayType=function(w){return iM(w)}; g.y.X=function(){return this.mE}; g.y.getVideoData=function(){return this.IJ().getVideoData()}; g.y.pZ=wR(11);g.y.z3=function(){return this.OL().getVideoData()}; g.y.getVideoLoadedFraction=function(w){return(w=this.fl({playerType:w}))?w.getVideoLoadedFraction():this.Cl.T.getVideoLoadedFraction()}; g.y.qd=function(){return this.template}; g.y.Ka=function(){return this.s4}; g.y.nJ=function(){return this.Wz}; g.y.RM=function(w,D,M){(D=this.fl({playerType:D===void 0?1:D}))&&D.yP(w,void 0,M)}; g.y.XZ=function(){var w=this.s4.XZ();this.d9.publish("videoStatsPingCreated",w);return w}; g.y.getVolume=function(){return Math.round(this.d9.getVolume())}; g.y.isMuted=function(){return this.d9.isMuted()}; g.y.Ol=function(){if(this.OL()===this.IJ()&&this.cz)return this.cz.postId}; g.y.lrt=function(){var w=this;this.C("use_rta_for_player")||(g.hL(this.mE)?g.GA(this.mE,g.E9(this.getVideoData())).then(function(D){Li(MI(),D);yjj(w.getVideoData(),w.mE,w.wZ())}):yjj(this.getVideoData(),this.mE,this.wZ()))}; g.y.eC=function(w){this.d9.publish("poTokenVideoBindingChange",w)}; g.y.sJ=function(w){this.d9.publish("d6de4videobindingchange",w)}; g.y.gr=function(){this.v4&&this.v4.gr()}; g.y.Ce=function(w){this.v4=w}; g.y.lq=function(w){if(w===1){this.Wz.tick("vr");var D=this.IJ();D.bY();ZFI(this.Wz,D.getVideoData(),kZj(this));vHK(this.s4)}D=this.mE;if(oI(D)&&D.U||g.Y2(D)){var M;(((M=this.IJ().getVideoData())==null?0:M.enableServerStitchedDai)||!this.cI())&&this.d9.Im("onAdStateChange",w)}}; g.y.setLoopVideo=function(w){var D=this.IJ();D===this.OL()&&D.qQ()!==w&&(D.setLoop(w),this.d9.Q7("onLoopChange",w))}; g.y.getLoopVideo=function(){return this.IJ().qQ()}; g.y.setLoopRange=function(w){var D=!1;!!this.cz!==!!w?D=!0:this.cz&&w&&(D=this.cz.startTimeMs!==w.startTimeMs||this.cz.endTimeMs!==w.endTimeMs||this.cz.postId!==w.postId||this.cz.type!==w.type);if(D){D=this.IJ();nL(D.getVideoData())&&D.H_("slr",{et:(w==null?void 0:w.endTimeMs)||-1});D=this.OL();D.N8("applooprange");if(w){var M=new g.ue(w.startTimeMs,w.endTimeMs,{id:"looprange",namespace:"applooprange"});D.addCueRange(M)}else{this.z3().clipConfig=void 0;var L;((M=this.cz)==null?void 0:M.type)!=="repeatChapter"|| isNaN(Number((L=this.cz)==null?void 0:L.loopCount))||(M={loopCount:String(this.cz.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.DD("repeatChapterLoopEvent",M))}this.cz=w;this.d9.Q7("onLoopRangeChange",w||void 0);this.OL()===this.IJ()&&(this.Jx(),D.IN())}}; g.y.getLoopRange=function(){return this.cz}; g.y.Jx=function(){var w="",D=this.OL();this.cz?D!==this.IJ()?w="pnea":JlT(this,D.getCurrentTime())&&(this.cz.loopCount=0,w="ilr"):w="nlr";var M=this.IJ();if(nL(M.getVideoData()))if(this.C("html5_gapless_log_loop_range_info")){var L,Z;M.H_("slrre",{rej:w,ct:D.getCurrentTime(),lst:(L=this.cz)==null?void 0:L.startTimeMs,let:(Z=this.cz)==null?void 0:Z.endTimeMs})}else M.H_("slrre",{});w||VSK(this)}; g.y.setPlaybackRate=function(w,D){if(!isNaN(w)){w=acT(this,w);var M=this.OL();M.getPlaybackRate()!==w&&(M.setPlaybackRate(w),D&&!this.mE.D&&g.gQ("yt-player-playback-rate",w),this.d9.Im("onPlaybackRateChange",w))}}; g.y.getCurrentTime=function(w,D){D=D===void 0?!0:D;var M=this.Cl.F1;if(M)return M.getCurrentTime();var L=w===2&&this.getVideoData().enableServerStitchedDai;M=null;L?M=this.IJ():M=this.fl({playerType:w});return M?L&&this.iT?(w=this.Cl.G)?w.getCurrentTime(D):M.getCurrentTime():D?(D=NF(this,M),vG(this,D.getCurrentTime(),D)):M.getCurrentTime():this.Cl.T.getCurrentTime()}; g.y.dC=function(){var w=this.fl({playerType:void 0});if(!w)return this.Cl.T.dC();w=NF(this,w);return vG(this,w.dC(),w)}; g.y.getDuration=function(w,D){D=D===void 0?!0:D;var M=this.Cl.F1;if(M)return M.getDuration();M=this.getVideoData();var L=w===2&&M.enableServerStitchedDai,Z=null;L?Z=this.IJ():Z=this.fl({playerType:w});if(!Z)return this.Cl.T.getDuration();if(M.hasProgressBarBoundaries()&&!L){var k,b=Number((k=M.progressBarStartPosition)==null?void 0:k.utcTimeMillis),C;k=Number((C=M.progressBarEndPosition)==null?void 0:C.utcTimeMillis);if(!isNaN(b)&&!isNaN(k))return(k-b)/1E3}if(nL(M)&&!M.isLivePlayback)return sS(this, w);if(D)return w=xc(this,Z),vG(this,w.getDuration(),w);if(L&&this.iT){if(this.C("html5_huli_ssdai_use_playback_state"))return w=this.Cl,w=w.D===w.G?w.D:null,(w==null?void 0:w.getDuration())||0;var l;return((l=this.Cl.G)==null?void 0:l.getDuration())||0}return Z.getDuration()}; g.y.mj=function(w){var D=this.fl({playerType:w});return D?this.cI(D)?(D=xc(this,D),D.mj()-D.getCurrentTime()+this.getCurrentTime(w)):D.mj():this.Cl.T.mj()}; g.y.finishSegmentByCpn=function(){return[]}; g.y.rk=function(){this.template.rk();var w=this.d9;w.state.element=this.template.element;var D=w.state.element,M;for(M in w.state.T)w.state.T.hasOwnProperty(M)&&(D[M]=w.state.T[M]);(w=cuS(this.template.element))&&this.events.j(this.template,w,this.onFullscreenChange)}; g.y.getDebugText=function(w){var D=this.OL().qC(w),M=this.IJ();if(M!==this.OL()){M=M.qC(w);for(var L=g.x(Object.keys(M)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,D["ad"+Z]=M[Z];if(w){M=D;L={};if(Z=ZK(document,"movie_player"))L.bounds=Z.getBoundingClientRect(),L["class"]=Z.className;Z={};var k=g.CR("video-ads");k?(hda(k,Z),Z.html=k.outerHTML):Z.missing=1;k={};var b=g.CR("videoAdUiSkipContainer"),C=g.CR("ytp-ad-skip-button-container"),l=g.CR("ytp-skip-ad-button"),E=b||C||l;E?(hda(E,k),k.ima=b?1:0,k.bulleit= C?1:0,k.component=l?1:0):k.missing=1;L=JSON.stringify({player:L,videoAds:Z,skipButton:k});M.ad_skipBtnDbgInfo=L}}w&&this.mediaElement&&(D["0sz"]=""+(+VZ(this.mediaElement.getSize())===0),D.op=this.mediaElement.us("opacity"),M=this.mediaElement.Qx().y+this.mediaElement.getSize().height,D.yof=""+(+M<=0),D.dis=this.mediaElement.us("display"));w&&((w=(0,g.ME)())&&(D.gpu=w),(w=this.mE.playerStyle)&&(D.ps=w),this.mE.jk&&(D.webview=1),(w=this.webPlayerContextConfig.jsUrl)&&(D.js=w));D.debug_playbackQuality= this.d9.getPlaybackQuality(1);D.debug_date=(new Date).toString();D.origin=window.origin;D.timestamp=Date.now();delete D.uga;delete D.q;return JSON.stringify(D,null,2)}; g.y.getFeedbackProductData=function(){var w={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.X().experiments.experimentIds.join(", "),player_release:Y[30]},D=this.getPlayerStateObject().QL;D&&(w.player_error_code=D.errorCode,w.player_error_details=JSON.stringify(D.errorDetail));return w}; g.y.getPresentingPlayerType=function(w){if(this.appState===1)return 1;if(HG(this))return 3;var D;return w&&((D=this.iT)==null?0:Uok(D,this.getCurrentTime()))?2:this.IJ().getPlayerType()}; g.y.DT=function(){return!1}; g.y.getPlayerStateObject=function(w){var D=this.Cl.F1;return D?D.getPlayerState():this.fl({playerType:w}).getPlayerState()}; g.y.getAppState=function(){return this.appState}; g.y.wAd=function(w){switch(w.type){case "loadedmetadata":this.Wg.start();w=g.x(this.w_);for(var D=w.next();!D.done;D=w.next())D=D.value,ZwK(this,D.id,D.SiE,D.ds7,void 0,!1);this.w_=[];break;case "loadstart":this.Wz.WV("gv");break;case "progress":case "timeupdate":YW(w.target.m5())>=2&&this.Wz.WV("l2s");break;case "playing":g.g0&&this.Wg.start();if(g.hL(this.mE))w=!1;else{D=g.O9(this.Ka());w=this.mediaElement.us("display")==="none"||VZ(this.mediaElement.getSize())===0;var M=$c(this.template),L=this.IJ().getVideoData(), Z=g.Fs(this.mE);L=F9(L);D=!M||D||Z||L||this.mE.EL;w=w&&!D}w&&(w=this.IJ(),w.dM(),this.getVideoData().Sb||(this.getVideoData().Sb=1,this.UN(),w.playVideo()))}}; g.y.gAd=function(w){this.d9.n6("onLoadProgress",w)}; g.y.IOL=function(){this.d9.publish("playbackstalledatstart")}; g.y.d$E=function(w,D){this.d9.publish("sabrCaptionsDataLoaded",w,D)}; g.y.Y4J=function(w){this.IJ().sK(w)}; g.y.aXJ=function(w){this.IJ().pY(w)}; g.y.kDd=function(w){w=NF(this,this.IJ());w=vG(this,w.getCurrentTime(),w);this.d9.Im("onVideoProgress",w);this.mE.WO&&wHT(this,this.visibility.z$())&&this.pauseVideo()}; g.y.KvW=function(){this.d9.Im("onAutoplayBlocked");var w=this.IJ().getVideoData();w&&(w.E5=!0);this.C("embeds_enable_autoplay_and_visibility_signals")&&g.w0(this.mE)&&(w={autoplayBrowserPolicy:xz(),autoplayIntended:Na(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.DD("embedsAutoplayStatusChanged",w))}; g.y.GDh=function(){this.d9.publish("progresssync")}; g.y.x$_=function(){this.d9.n6("onPlaybackPauseAtStart")}; g.y.Lu5=function(w){if(this.getPresentingPlayerType()===1){g.Y0(w,1)&&!g.z(w.state,64)&&this.z3().isLivePlayback&&this.OL().isAtLiveHead()&&this.d9.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Y0(w,2)){if(this.cz&&this.cz.endTimeMs>=(this.getDuration()-1)*1E3){VSK(this);return}Bmj(this)}if(g.z(w.state,128)){var D=w.state;this.cancelPlayback(5);D=D.QL;JSON.stringify({errorData:D,debugInfo:this.getDebugText(!0)});this.d9.Im("onError",GfN(D.errorCode));this.d9.n6("onDetailedError",{errorCode:D.errorCode, errorDetail:D.errorDetail,message:D.errorMessage,messageKey:D.bF,cpn:D.cpn});(0,g.IC)()-this.mE.X6>6048E5&&this.d9.n6("onReloadRequired")}D={};if(w.state.isPlaying()&&!w.state.isBuffering()&&!jT("pbresume","ad_to_video")&&jT("_start","ad_to_video")){var M=this.getVideoData();D.clientPlaybackNonce=M.clientPlaybackNonce;M.videoId&&(D.videoId=M.videoId);g.Ng(D,"ad_to_video");xK("pbresume",void 0,"ad_to_video");vHK(this.s4)}this.d9.publish("applicationplayerstatechange",w)}}; g.y.m7=function(w){this.Cl.F1||this.d9.publish("presentingplayerstatechange",w)}; g.y.fJ=function(w){US(this,qL(w.state));g.z(w.state,1024)&&this.d9.isMutedByMutedAutoplay()&&(Fp(this,{muted:!1,volume:this.ue.volume},!1),G0(this,!1))}; g.y.onPlayerRequestSent=function(w){this.d9.Q7("onPlayerRequestSent",w)}; g.y.FA=function(w,D){w==="newdata"&&FWr(this);this.d9.publish("applicationvideodatachange",w,D)}; g.y.Wv9=function(w,D){this.C("html5_afmt_change_update_volume")&&bwT(this);this.d9.n6("onPlaybackAudioChange",this.d9.getAudioTrack().dW.name);this.d9.publish("internalaudioformatchange",this.d9.getAudioTrack().dW.id,D)}; g.y.XAD=function(w){var D=this.IJ().getVideoData();w===D&&this.d9.Im("onPlaybackQualityChange",w.V.video.quality)}; g.y.M_=function(){var w=this.Cl.L[2]||null;w&&(w=w.getVideoData(),this.IJ().H_("ssdai",{cleanaply:1,acpn:w==null?void 0:w.clientPlaybackNonce,avid:w.videoId,isDai:this.z3().enableServerStitchedDai?1:0}),delete this.Cl.L[2])}; g.y.NtD=function(w,D){this.vX(w,this.IJ(),D)}; g.y.vX=function(w,D,M){this.logger.debug(function(){return"on video data change "+w+", player type "+D.getPlayerType()+", vid "+M.videoId}); this.mE.gW()&&D.H_("vdc",{type:w,vid:M.videoId||"",cpn:M.clientPlaybackNonce||""});D===this.OL()&&(this.mE.Yx=M.oauthToken);D===this.OL()&&(this.getVideoData().enableServerStitchedDai&&!this.iT?(this.OL().H_("sdai",{initSstm:1}),this.iT=new g.w$(this.d9,this.mE,this.OL(),this)):!this.getVideoData().enableServerStitchedDai&&this.iT&&(this.iT.dispose(),this.iT=null));if(w==="newdata")this.logger.debug("new video data, destroy modules"),F6(this.s4,2),this.d9.publish("videoplayerreset",D);else{if(!this.mediaElement)return; w==="dataloaded"&&(this.OL()===this.IJ()?(Wn(M.P_,M.xT),TmR(this)):eXr(this));D.getPlayerType()===1&&(this.mE.fV&&WLR(this),this.getVideoData().isLivePlayback&&!this.mE.LL&&this.nx("html5.unsupportedlive",2,"DEVICE_FALLBACK"),M.isLoaded()&&((qXC(M)||this.getVideoData().LL)&&this.d9.publish("legacyadtrackingpingchange",this.getVideoData()),M.hasProgressBarBoundaries()&&O0G(this)));this.d9.publish("videodatachange",w,M,D.getPlayerType())}this.d9.Im("onVideoDataChange",{type:w,playertype:D.getPlayerType()}); this.Jx();var L=M.zA;L?this.Rw.z7(L,M.clientPlaybackNonce):ylG(this.Rw)}; g.y.T6=function(){g$(this,null);this.d9.n6("onPlaylistUpdate")}; g.y.pAV=function(w){delete this.pA[w.getId()];this.OL().removeCueRange(w);a:{w=this.getVideoData();var D,M,L,Z,k,b,C,l,E,p,W=((D=w.fV)==null?void 0:(M=D.contents)==null?void 0:(L=M.singleColumnWatchNextResults)==null?void 0:(Z=L.autoplay)==null?void 0:(k=Z.autoplay)==null?void 0:k.sets)||((b=w.fV)==null?void 0:(C=b.contents)==null?void 0:(l=C.twoColumnWatchNextResults)==null?void 0:(E=l.autoplay)==null?void 0:(p=E.autoplay)==null?void 0:p.sets);if(W)for(D=g.x(W),M=D.next();!M.done;M=D.next())if(M= M.value,Z=L=void 0,M=M.autoplayVideo||((L=M.autoplayVideoRenderer)==null?void 0:(Z=L.autoplayEndpointRenderer)==null?void 0:Z.endpoint),L=g.Q(M,g.HB),k=Z=void 0,M!=null&&((Z=L)==null?void 0:Z.videoId)===w.videoId&&((k=L)==null?0:k.continuePlayback)){w=M;break a}w=null}(D=g.Q(w,g.HB))&&this.d9.Q7("onPlayVideo",{sessionData:{autonav:"1",itct:w==null?void 0:w.clickTrackingParams},videoId:D.videoId,watchEndpoint:D})}; g.y.bA=function(w){var D=this;w!==this.appState&&(this.logger.debug(function(){return"app state change "+D.appState+" -> "+w}),w===2&&this.getPresentingPlayerType()===1&&(US(this,-1),US(this,5)),this.appState=w,this.d9.publish("appstatechange",w))}; g.y.nx=function(w,D,M,L,Z){this.OL().Pd(w,D,M,L,Z)}; g.y.EZ=wR(13);g.y.isAtLiveHead=function(w,D){D=D===void 0?!1:D;var M=this.fl({playerType:w});if(!M)return this.Cl.T.isAtLiveHead();w=xc(this,M);M=NF(this,M);return w!==M?w.isAtLiveHead(vG(this,M.getCurrentTime(),M),!0):w.isAtLiveHead(void 0,D)}; g.y.rV=function(){var w=this.fl({playerType:void 0});return w?xc(this,w).rV():this.Cl.T.rV()}; g.y.seekTo=function(w,D,M,L,Z,k){D=D!==!1;if(L=this.fl({playerType:L}))if(this.appState===2&&oi(this),this.cI(L))cG(this)?this.iT.seekTo(w,{seekSource:Z},D,M):this.j2.seekTo(w,{seekSource:Z},D,M);else{this.C("html5_sabr_csdai_seek_log")||(k="");var b;L.seekTo(w,{Zc:!D,W2:M,GD:"application"+((b=k)!=null?b:""),seekSource:Z})}}; g.y.seekBy=function(w,D,M,L){this.seekTo(this.getCurrentTime()+w,D,M,L,void 0,"_by")}; g.y.SV5=function(){this.d9.Im("SEEK_COMPLETE")}; g.y.nAW=function(){this.d9.Q7("onAbnormalityDetected")}; g.y.lOD=function(w){this.d9.Q7("onSnackbarMessage",w)}; g.y.vA7=function(w){var D=this.IJ(),M=D.getVideoData();if(this.appState===1||this.appState===2)M.startSeconds=w;this.appState===2?g.z(D.getPlayerState(),512)||oi(this):this.d9.Im("SEEK_TO",w)}; g.y.Zlc=function(){this.d9.publish("airplayactivechange")}; g.y.Pjk=function(){this.d9.publish("airplayavailabilitychange")}; g.y.showAirplayPicker=function(){this.IJ().Wt()}; g.y.cQE=function(){this.d9.publish("beginseeking")}; g.y.Cjt=function(){this.d9.publish("endseeking")}; g.y.getStoryboardFormat=function(w){return(w=this.fl({playerType:w}))?xc(this,w).getStoryboardFormat():this.Cl.T.getStoryboardFormat()}; g.y.WH=function(w){return(w=this.fl({playerType:w}))?xc(this,w).getVideoData().WH():this.Cl.T.WH()}; g.y.cI=function(w){w=(w||this.IJ()).getVideoData();if(cG(this))w=w===this.iT.playback.getVideoData();else a:{var D=this.j2;if(w===D.T.getVideoData()&&D.V.length)w=!0;else{D=g.x(D.V);for(var M=D.next();!M.done;M=D.next())if(w.JQ===M.value.JQ){w=!0;break a}w=!1}}return w}; g.y.dj=function(w,D,M,L,Z,k,b,C){this.logger.debug(function(){return"Adding video to timeline id="+w.video_id+"\n lengthMs="+L+" enterTimeMs="+Z}); var l="",E=cG(this);this.IJ().H_("appattl",{sstm:this.iT?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:E});E?(M=h3j(this.iT,w,D,M,L,Z,k,b),l=(M==null?void 0:M.JQ)||"",(this.C("html5_ssdai_new_decoration_logic")||this.OL().getVideoData().Fs)&&this.OL().bu(C||"",D,(M==null?void 0:M.clientPlaybackNonce)||"")):l=PqK(this.j2,w,M,L,Z,k);this.logger.debug(function(){return"Video added to timeline id="+w.video_id+" timelinePlaybackId="+l}); return l}; g.y.ol=function(w,D,M,L,Z,k,b){if(cG(this)){var C,l=(C=this.iT)==null?void 0:h3j(C,w,D,M,L,Z,k,b);this.logger.debug(function(){return"Remaining video added to timeline id="+w.video_id+" timelinePlaybackId="+((l==null?void 0:l.JQ)||"")})}}; g.y.Xa=function(w){(this.C("html5_ssdai_new_decoration_logic")||this.OL().getVideoData().Fs)&&this.OL().bu(w,"","");var D;(D=this.iT)==null||D.Xa(w)}; g.y.MX=function(w,D){w=w===void 0?-1:w;D=D===void 0?Infinity:D;cG(this)||Z0J(this.j2,w,D)}; g.y.iC=function(w,D,M){if(cG(this)){var L=this.iT,Z=L.T.fl({JQ:w});Z?(M===void 0&&(M=Z.DX),HxR(L,Z,D,M)):L.Xd("Invalid_timelinePlaybackId_"+w+"_specified")}else{L=this.j2;Z=null;for(var k=g.x(L.V),b=k.next();!b.done;b=k.next())if(b=b.value,b.JQ===w){Z=b;break}Z?(M===void 0&&(M=Z.DX),LWx(L,Z,D,M)):CC(L,"InvalidTimelinePlaybackId timelinePlaybackId="+w)}}; g.y.enqueueVideoByPlayerVars=function(w,D,M,L){M=M===void 0?Infinity:M;L=L===void 0?"":L;this.cI();w=new g.db(this.mE,w);L&&(w.JQ=L);KWN(this,w,D,M)}; g.y.queueNextVideo=function(w,D,M,L,Z){M=M===void 0?NaN:M;w=this.preloadVideoByPlayerVars(w,D===void 0?1:D,M,L===void 0?"":L,Z===void 0?"":Z);D=this.IJ();w&&(this.C("html5_check_queue_on_data_loaded")?this.X().supportsGaplessShorts()&&D.getVideoData().G&&(M=this.Cv,L=this.Fz.W,M.D!==w&&(M.V=D,M.D=w,M.L=1,M.T=w.getVideoData(),M.W=L,M.T.isLoaded()?M.Y():M.T.subscribe("dataloaded",M.Y,M))):(M=gPS(D,w,this.Fz.W),M!=null?(D.H_("sgap",M),D.getVideoData().G&&D.Oy(!1)):(w=w.getVideoData(),D=this.Cv,D.T!== w&&(D.T=w,D.L=1,w.isLoaded()?D.G():D.T.subscribe("dataloaded",D.G,D)))))}; g.y.B1=function(w,D,M,L){var Z=this;M=M===void 0?0:M;L=L===void 0?0:L;xc(this,this.IJ()).G_();fQK(this.Fz,w,D,M,L).then(function(){Z.d9.n6("onQueuedVideoLoaded")},function(){})}; g.y.aT=function(){return this.Fz.aT()}; g.y.rT=function(w){var D=this.Fz.T;return D?D.yB(w):!1}; g.y.clearQueue=function(w,D){w=w===void 0?!1:w;D=D===void 0?!1:D;this.logger.debug("Clearing queue");this.Fz.clearQueue(w,D)}; g.y.loadVideoByPlayerVars=function(w,D,M,L,Z,k){D=D===void 0?1:D;var b=this.OL();if(D===2&&this.z3().enableServerStitchedDai&&b&&!b.BC())return b.H_("lvonss",{vid:(w==null?void 0:w.videoId)||"",ptype:D}),!1;var C=!1;b=new g.db(this.mE,w);b.MN=k;g.jZ(this.mE)&&!b.ou&&dS(this.Wz);var l;k=this.Wz;var E=(l=b.y7)!=null?l:"";k.timerName=E;this.Wz.Zy("pl_i");this.C("web_player_early_cpn")&&b.clientPlaybackNonce&&this.Wz.infoGel({clientPlaybackNonce:b.clientPlaybackNonce});t6T(b).supportsVp9Encoding===!1&& this.IJ().H_("noVp9enc",{});if(this.X().supportsGaplessShorts()){l=eMR(this.Fz,b,D);if(l==null){US(this,-1);var p;((p=this.Fz.T)==null?0:p.getVideoData().isAd())||BG(this);w=this.Fz;w.app.X().C("html5_gapless_new_slr")?ai(w.app,"gaplessshortslooprange"):w.app.setLoopRange(null);w.app.getVideoData().PE=!0;var W;(W=w.T)==null||W.KH();var h;(h=w.T)==null||h.R7();M={GD:"gapless_to_next_video",seekSource:60,hS:w.W.T};L=g.A3(w.app.X().experiments,"html5_gapless_seek_offset");Z=rCC(w);if(w.W.T){var t;b= ((t=w.L)==null?void 0:X2(t))||{};t=b.Ks;b=b.Bk;b!=null&&t!=null&&(Z=b-t+.001)}var d;(d=w.app.IJ())==null||d.seekTo(Z+L,M);if(!w.app.getPlayerStateObject(D).isPlaying()){var N;(N=w.app.IJ())==null||N.playVideo(!0)}var n;(n=w.app.IJ())==null||n.vc();w.G();return!0}d=this.C("html5_shorts_gapless_preload_fallback");N=this.Fz.T;d&&N&&!N.xt()&&(n=N.getVideoData(),this.Cl.W.set(fC(D,n),N,3600));this.Fz.clearQueue(d);this.IJ().H_("sgap",{f:l})}if(Z){for(;b.Qf.length&&b.Qf[0].isExpired();)b.Qf.shift();d=b.Qf.length- 1;C=d>0&&Z.V(b.Qf[d])&&Z.V(b.Qf[d-1]);b.Qf.push(Z)}M||(w&&YeG(w)?(yq(this.mE)&&!this.dK&&(w.fetch=0),g$(this,w)):this.playlist&&g$(this,null),w&&(this.dK=OO(!1,w.external_list)));this.d9.publish("loadvideo");d=this.Fa(b,D,L);C&&this.nx("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+b.Qf.join()).replace(/[;:,]/g,"_"));return d}; g.y.preloadVideoByPlayerVars=function(w,D,M,L,Z){D=D===void 0?1:D;M=M===void 0?NaN:M;L=L===void 0?"":L;Z=Z===void 0?"":Z;var k=Alr(D,w,Z),b=this.Cl.W.get(k)||null;if(b)return this.logger.debug(function(){return"already preloaded "+k}),b; w=new g.db(this.mE,w);Z&&(w.JQ=Z);return msr(this,w,D,M,L)}; g.y.setMinimized=function(w){this.visibility.setMinimized(w);(w=f$R(this.s4))&&(this.isMinimized()?w.load():w.unload());this.d9.publish("minimized")}; g.y.setInline=function(w){this.visibility.setInline(w)}; g.y.setInlinePreview=function(w){this.visibility.setInline(w)}; g.y.HV=function(w){DTx(this,w)||this.visibility.HV(w)}; g.y.setSqueezeback=function(w){this.visibility.setSqueezeback(w)}; g.y.Sh=function(){var w,D=(w=this.mediaElement)==null?void 0:w.Dv();D&&(this.mE.UQ&&Tf(rj(function(){return document.exitFullscreen()}),function(){}),Tf(rj(function(){return Wg(D)}),function(){}))}; g.y.g6k=function(){this.mediaElement.Dv();this.mediaElement.Dv().webkitPresentationMode==="picture-in-picture"?this.HV(!0):this.HV(!1)}; g.y.togglePictureInPicture=function(){this.IJ().togglePictureInPicture()}; g.y.Fa=function(w,D,M){D=D===void 0?1:D;this.logger.debug(function(){return"start load video, id "+w.videoId+", type "+D}); jT("_start",this.Wz.timerName)||g.Q6(t_)(void 0,this.Wz.timerName);var L=!1,Z=QlJ(this,D,w,!1);Z?(L=!0,w.dispose()):(Z=yD(this,D,w,!0,M),(this.C("html5_onesie")||this.C("html5_load_before_stop"))&&Z.rg()&&Z.uu(),this.Wg.stop(),D===1&&D!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,D),this.kQ(Z));Z===this.OL()&&(this.mE.Yx=w.oauthToken);if(!Z.rg())return!1;if(Z===this.OL())return this.bA(1),M=oi(this),L&&this.C("html5_player_preload_ad_fix")&&Z.getPlayerType()===1&& Z.cS()&&this.vX("dataloaded",Z,Z.getVideoData()),M;Z.HR();return!0}; g.y.cueVideoByPlayerVars=function(w,D){var M=this;D=D===void 0?1:D;var L=this.OL();if(this.z3().enableServerStitchedDai&&L&&!L.BC()&&w&&Object.keys(w).length>0)L.H_("qvonss",{vid:(w==null?void 0:w.videoId)||"",ptype:D});else if(w&&YeG(w))if(this.Cz=!0,g$(this,w),(w=g.yr(this.playlist))&&w.q8())r$(this,w,D);else this.playlist.onReady(function(){Ri(M)}); else{D||(D=this.getPresentingPlayerType());D===1&&this.T6();L=new g.db(this.mE,w);var Z=g.w0(this.mE)&&!this.mE.V7&&D===1&&!L.isAd()&&!L.Nr;this.d9.publish("cuevideo");Z?(this.IJ().getVideoData().loading=!0,tbr(L,w?w:{}).then(function(k){r$(M,k,D)}),L.dispose()):r$(this,L,D)}}; g.y.ZS=function(w,D,M,L,Z,k,b){if(!w&&!M)throw Error("Playback source is invalid");if(Mi(this.mE)||g.pc(this.mE))return D=D||{},D.lact=iG(),D.vis=this.d9.getVisibilityState(),this.d9.Q7("onPlayVideo",{videoId:w,watchEndpoint:k,sessionData:D,listId:M}),!1;ksk(this.Wz);this.Wz.reset();w={video_id:w};L&&(w.autoplay="1");L&&(w.autonav="1");k&&(w.player_params=k.playerParams);b&&(w.oauth_token=b);M?(w.list=M,this.loadPlaylist(w)):this.loadVideoByPlayerVars(w,1);return!0}; g.y.cuePlaylist=function(w,D,M,L){this.Cz=!0;MFS(this,w,D,M,L)}; g.y.loadPlaylist=function(w,D,M,L){this.Cz=!1;MFS(this,w,D,M,L)}; g.y.fZ=function(){return this.d9.isMutedByMutedAutoplay()?!1:this.Cl.F1?!0:!(!this.playlist||!this.playlist.lz())}; g.y.wN=wR(5); g.y.nextVideo=function(w,D){var M=g.jA(this.OL().getVideoData());g.AW(this.d9)&&M?this.ZS(M.videoId,D?M.Po:M.sessionData,M.playlistId,D,void 0,M.J6||void 0):this.dK?this.d9.n6("onPlaylistNext"):this.getPresentingPlayerType()===3?z3(this.s4).nextVideo():!this.playlist||yq(this.mE)&&!this.d9.isFullscreen()||(this.playlist.lz(w)&&EHK(this.playlist,CvS(this.playlist)),this.playlist.loaded?(w=D&&this.mE.C("html5_player_autonav_logging"),D&&this.d9.publish("playlistautonextvideo"),this.Fa(g.yr(this.playlist,void 0, D,w),1)):this.Cz=!1)}; g.y.previousVideo=function(w){this.dK?this.d9.n6("onPlaylistPrevious"):this.getPresentingPlayerType()===3?z3(this.s4).e6():!this.playlist||yq(this.mE)&&!this.d9.isFullscreen()||(this.playlist.ym(w)&&EHK(this.playlist,l$N(this.playlist)),this.playlist.loaded?this.Fa(g.yr(this.playlist),1):this.Cz=!1)}; g.y.playVideoAt=function(w){this.dK?this.d9.n6("onPlaylistIndex",w):this.playlist&&(this.playlist.loaded?this.Fa(g.yr(this.playlist,w),1):this.Cz=!1,EHK(this.playlist,w))}; g.y.getPlaylist=function(){return this.playlist}; g.y.wB=wR(19);g.y.z_=function(w){this.w_=g.ox(this.w_,function(k){return k.id!==w}); for(var D=this.OL(),M=D.ew(),L=0;L0&&(l=Math.floor(E/1E3))}l=D?D.x6:l;var p={AD_BLOCK:this.T++,AD_BREAK_LENGTH:l,AUTONAV_STATE:T0(this.player.X()),CA_TYPE:"image",CPN:C.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.rV()*1E3,LACT:iG(),LIVE_INDEX:D?this.L++:1,LIVE_TARGETING_CONTEXT:D&&D.context?D.context:"",MIDROLL_POS:k? Math.round(k.start/1E3):0,MIDROLL_POS_MS:k?Math.round(k.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.qd().KJ().height,P_W:this.player.qd().KJ().width,YT_REMOTE:Z?Z.join(","):""},W=ZV(L7);Object.keys(W).forEach(function(t){W[t]!=null&&(p[t.toUpperCase()]=W[t].toString())}); M!==""&&(p.BISCOTTI_ID=M);M={};M2(w)&&(M.sts="20320",(D=this.player.X().forcedExperiments)&&(M.forced_experiments=D));var h=AQ(g.j3(w,p),M);return h.split("?").length!==2?FW(Error("Invalid AdBreakInfo URL")):g.GA(this.player.X(),C==null?void 0:C.oauthToken).then(function(t){if(t&&DV()){var d=MI();Li(d,t)}t=L.player.wZ(d);d=ctr(L,h,p,C.isMdxPlayback,b);return g.FX(t,d,"/youtubei/v1/player/ad_break").then(function(N){return N})})}; un.prototype.reset=function(){this.L=this.T=1};g.I(BKT,un); BKT.prototype.V=function(w,D,M){D=D===void 0?{}:D;var L=D.vB;var Z=D.bO;var k=D.cueProcessedMs;M=M===void 0?"":M;D=this.T;this.T++;var b=this.player.X().C("h5_disable_macro_substitution_in_get_ad_break")?w:fII(this,w,{vB:L,bO:Z,cueProcessedMs:k},M,D);if(b.split("?").length!==2)return Math.random()<.1&&g.jn(Error("Invalid AdBreakInfo URL")),FW(Error("Invalid AdBreakInfo URL"));var C=this.player.getVideoData(1).isMdxPlayback,l=M;M=ovI.exec(b);M=M!=null&&M.length>=2?M[1]:"";w=nvx.test(b);var E=FLN.exec(b); E=E!=null&&E.length>=2?E[1]:"";var p=GZS.exec(b);p=p!=null&&p.length>=2&&!Number.isNaN(Number(p[1]))?Number(p[1]):1;var W=sWK.exec(b);W=W!=null&&W.length>=2?W[1]:"0";var h=pN(this.player.X().le),t=g.SU(this.player.getVideoData(1).Jc,!0);xTR(this,t,b,l===""?"":l,this.player.X(),this.player.getVideoData(1));l={splay:!1,lactMilliseconds:String(iG()),playerHeightPixels:Math.trunc(this.player.qd().KJ().height),playerWidthPixels:Math.trunc(this.player.qd().KJ().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20320,autonavState:T0(this.player.X())};if(C){C={};var d=this.player.X().ib;jWC(C,d?d.join(","):"")&&(l.mdxContext=C)}if(C=aIr.includes(h)?void 0:g.FN("PREF")){d=C.split(RegExp("[:&]"));for(var N=0,n=d.length;N1&&v[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}l.autoCaptionsDefaultOn=RdK(C)}b=vvG.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&E&&(t.user.credentialTransferTokens= [{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:l};l=this.player.getVideoData(1).getGetAdBreakContext();C=this.player.getVideoData(1).clientPlaybackNonce;d=k!==void 0?Math.round(k).toString():void 0;N=(L==null?0:L.context)?L.context:void 0;n=0;k&&Z&&!L&&(Z=Z.end-Z.start,Z>0&&(n=Math.floor(Z/1E3)));L=(L=Math.trunc((L?L.x6:n)*1E3))?String(L):void 0;Z=this.player.rV()*1E3;Z=Number.isNaN(Z)?0:Math.trunc(Z);D={adBlock:D,params:M,breakIndex:p,breakPositionMs:W,clientPlaybackNonce:C,topLevelDomain:h, isProxyAdTagRequest:w,context:t,overridePlaybackContext:b,cueProcessedMs:d,videoId:E?E:void 0,liveTargetingParams:N,breakLengthMs:L,driftFromHeadMs:Z?String(Z):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:l?l:void 0};return qtK(this,D)};var OpZ={cdW:"replaceUrlMacros",tx7:"onAboutThisAdPopupClosed",PZE:"executeCommand"};rtN.prototype.SE=function(){return"adPingingEndpoint"}; rtN.prototype.Oo=function(w,D,M){NRZ(this.FE.get(),w,D,M)};edC.prototype.SE=function(){return"changeEngagementPanelVisibilityAction"}; edC.prototype.Oo=function(w){this.K.Q7("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:w})};XHJ.prototype.SE=function(){return"loggingUrls"}; XHJ.prototype.Oo=function(w,D,M){w=g.x(w);for(var L=w.next();!L.done;L=w.next())L=L.value,NRZ(this.FE.get(),L.baseUrl,D,M,L.attributionSrcMode)};g.I(ujS,g.X);g.I(QD,g.X);g.y=QD.prototype;g.y.addListener=function(w){this.listeners.push(w)}; g.y.removeListener=function(w){this.listeners=this.listeners.filter(function(D){return D!==w})}; g.y.E0=function(w,D,M,L,Z,k,b,C){if(w==="")Zg("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(w!==this.T||M){this.T=w;this.aJ.get().E0(w,D,M,L,Z,k,b,C);this.Gh.get().E0(w,D,M,L,Z,k,b,C);var l;(l=this.QZ)==null||l.get().E0(w,D,M,L,Z,k,b,C);this.V.E0(w,D,M,L,Z,k,b,C);l=g.x(this.listeners);for(var E=l.next();!E.done;E=l.next())E.value.E0(w,D,M,L,Z,k,b,C)}else Zg("Duplicate content video loaded signal")}; g.y.baE=function(){this.T&&this.EM(this.T)}; g.y.EM=function(w){this.T=void 0;for(var D=g.x(this.listeners),M=D.next();!M.done;M=D.next())M.value.EM(w)};Jy.prototype.Ds=function(w,D,M,L,Z){Stl(this);this.W=!D&&M===0;var k=this.K.getVideoData(1),b=this.K.getVideoData(2);k&&(this.contentCpn=k.clientPlaybackNonce,this.videoId=k.videoId,this.T=k.Y);b&&(this.adCpn=b.clientPlaybackNonce,this.adVideoId=b.videoId,this.adFormat=b.adFormat);this.D=w;L<=0?(Stl(this),this.W=!D&&M===0):(this.actionType=this.W?D?"unknown_type":"video_to_ad":D?"ad_to_video":"ad_to_ad",this.videoStreamType=Z?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.L=!0,jT("_start",this.actionType)&&zdN(this)))}; Jy.prototype.reset=function(){return new Jy(this.K)};g.I(z0,g.X);z0.prototype.addCueRange=function(w,D,M,L,Z,k,b,C,l){k=k===void 0?3:k;b=b===void 0?1:b;this.T.has(w)?Zg("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:w}):(w=new VFC(w,D,M,L,k,C,l),this.T.set(w.id,{bO:w,listener:Z,LS:b}),this.K.bT([w],b))}; z0.prototype.removeCueRange=function(w){var D=this.T.get(w);D?(this.K.O0([D.bO],D.LS),this.T.delete(D.bO.id)):Zg("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:w})}; z0.prototype.onCueRangeEnter=function(w){if(this.T.has(w.id))this.T.get(w.id).listener.onCueRangeEnter(w.id)}; z0.prototype.onCueRangeExit=function(w){if(this.T.has(w.id))this.T.get(w.id).listener.onCueRangeExit(w.id)}; g.I(VFC,g.ue);VD.prototype.addPlayerResponseForAssociation=function(w){this.K.addPlayerResponseForAssociation(w)};PG.prototype.lq=function(w){this.K.lq(w)}; PG.prototype.uB=function(w){var D=g.rR.apply(1,arguments);w==="onAdStart"||w==="onAdEnd"?this.K.Im.apply(this.K,[w].concat(g.tG(D))):this.K.Q7.apply(this.K,[w].concat(g.tG(D)))};OS.prototype.fO=function(w){return w&&KC(this)};var bIP=null;g.I(kKr,g.mI);kKr.prototype.Kq=function(w){return this.T.hasOwnProperty(w)?this.T[w].Kq():{}}; g.mC("ytads.bulleit.getVideoMetadata",function(w){return m1().Kq(w)}); g.mC("ytads.bulleit.triggerExternalActivityEvent",function(w,D,M){var L=m1();M=ZIQ(M);M!==null&&L.publish(M,{queryId:w,viewabilityString:D})});g.y=Ay.prototype;g.y.Ui=function(w,D){if(!this.T.has(w))return{};if(D==="seek"){D=!1;D=D===void 0?!1:D;var M=xC(Jk).Ig(w,{});M?TF(M):D&&(w=xC(Jk).RE(null,aQ(),!1,w),w.k8=3,UKS([w]));return{}}D=CS1(D);if(D===null)return{};var L=this.K.Bi();if(!L)return{};var Z=this.K.getPresentingPlayerType(!0);if((M=this.K.getVideoData(Z))==null||!M.isAd())return{};M={opt_adElement:L,opt_fullscreen:this.aJ.get().isFullscreen()};return UnK(D,w,M)}; g.y.Ff=function(w,D,M,L,Z){this.T.has(w)&&(L<=0||Z<=0||xC(Jk).Ff(w,D,M,L,Z))}; g.y.BM=function(w){var D;(D=this.T.get(w.queryId))==null||D.BM()}; g.y.s_=function(w){var D;(D=this.T.get(w.queryId))==null||D.s_()}; g.y.AD=function(w){var D;(D=this.T.get(w.queryId))==null||D.AD()}; g.y.Rt=function(w){var D;(D=this.T.get(w.queryId))==null||D.Rt()}; g.y.pz=function(w){var D;(D=this.T.get(w.queryId))==null||D.pz()};dkk.prototype.send=function(w,D,M,L){try{yGS(this,w,D,M,L===void 0?!1:L)}catch(Z){}};g.I(IaB,dkk);Uk3.prototype.send=function(w,D,M,L){var Z=!1;try{if(L==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||L==="ATTRIBUTION_SRC_MODE_XHR_OPTION")Z=!0,w=bjR(w);L=Z;var k=g.lX(w);if(k[1]==="https")var b=w;else k[1]="https",b=C3("https",k[2],k[3],k[4],k[5],k[6],k[7]);var C=baC(b);k=[];var l=zaG(b)&&this.D5.get().K.X().experiments.ek("add_auth_headers_to_remarketing_google_dot_com_ping");if(M2(b)||l)k.push({headerType:"USER_AUTH"}),k.push({headerType:"PLUS_PAGE_ID"}),k.push({headerType:"VISITOR_ID"}),k.push({headerType:"EOM_VISITOR_ID"}), k.push({headerType:"AUTH_USER"}),k.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:b,scrubReferrer:C,headers:k},D,M,L)}catch(E){}};Z$.prototype.au=function(){return this.K.au(1)};g.I(kH,g.X);g.y=kH.prototype;g.y.MR=function(){return this.K.getVideoData(1).clientPlaybackNonce}; g.y.addListener=function(w){this.listeners.push(w)}; g.y.removeListener=function(w){this.listeners=this.listeners.filter(function(D){return D!==w})}; g.y.E0=function(){this.fN.clear();this.s2=null;this.RK.get().clear()}; g.y.EM=function(){}; g.y.uKc=function(w,D,M,L,Z){D.videoId==="nPpU29QrbiU"&&this.K.H_("ads_ssm_vdc_s",{pt:M,dvt:w});V0(this.D5.get())&&w!=="dataloaded"||FCZ(this,D,M);if(KC(this.D5.get())&&w==="newdata"&&Z!==void 0){w=this.MR();var k=D.clientPlaybackNonce,b={};YM(this,"rte",(b.ec=k,b.xc=L==null?void 0:L.clientPlaybackNonce,b.tr=Z,b.pt=M,b.ia=k!==w,b.ctp=bM(k),b));D=D.clientPlaybackNonce;L=L==null?void 0:L.clientPlaybackNonce;Z=GKk(Z);if(Z!==1)if(L!==void 0)for(M=g.x(this.listeners),w=M.next();!w.done;w=M.next())w.value.VR(L, D,Z);else Zg("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:D,transitionReason:String(Z)});Z=g.x(this.listeners);for(L=Z.next();!L.done;L=Z.next())L.value.HW(D)}}; g.y.x87=function(w,D){w!==void 0&&(this.s2=w,D===void 0?Zg("Expected ad video start time on SS video changed"):this.fN.set(w,D));var M=this.K.getPresentingPlayerType(!0),L=this.K.getVideoData(M),Z;w===void 0?Z=null:Z=this.RK.get().T.get(w)||null;this.K.getVideoData(1).H_("ads_ssvc",{pt:M,cpn:L==null?void 0:L.clientPlaybackNonce,crtt:this.K.getCurrentTime(1,!1),atlh:this.K.isAtLiveHead(),adstt:D,pid:w,slid:Z==null?void 0:Z.layoutId});L?FCZ(this,L,M):Zg("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.K.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:w})}; g.y.n0=function(w,D){var M=w.author,L=w.clientPlaybackNonce,Z=w.isListed,k=w.JQ,b=w.title,C=w.KP,l=w.O1,E=w.isMdxPlayback,p=w.nm,W=w.mdxEnvironment,h=w.isAutonav,t=w.kO,d=w.ou,N=w.gg,n=w.videoId||"",v=w.profilePicture||"",G=w.Vf||"",f=w.Xz()||!1,e=w.rH()||!1;w=w.uY||void 0;k=this.RK.get().T.get(k)||{layoutId:null,slotId:null};var S=this.K.getVideoData(1),K=S.Yl();S=S.getPlayerResponse();D=1E3*this.K.getDuration(D);var V=1E3*this.K.getDuration(1),CI,Yx,lS=(S==null?void 0:(CI=S.playerConfig)==null? void 0:(Yx=CI.daiConfig)==null?void 0:Yx.enableDai)||!1,Wr,Mk;CI=(S==null?void 0:(Wr=S.playerConfig)==null?void 0:(Mk=Wr.daiConfig)==null?void 0:Mk.enablePreroll)||!1;return Object.assign({},k,{videoId:n,author:M,clientPlaybackNonce:L,MM:D,T$:V,daiEnabled:lS,cN:CI,isListed:Z,Yl:K,profilePicture:v,title:b,Vf:G,KP:C,O1:l,uY:w,isMdxPlayback:E,nm:p,mdxEnvironment:W,isAutonav:h,kO:t,ou:d,gg:N,Xz:f,rH:e})}; g.y.oJ=function(){this.listeners.length=0;this.lH=null;g.X.prototype.oJ.call(this)};g.I(bv,g.X);g.y=bv.prototype;g.y.E0=function(){var w=this;KC(this.D5.get())||(this.T=Bb(function(){w.K.xt()||w.K.F6("ad",1)}))}; g.y.EM=function(){}; g.y.addListener=function(w){this.listeners.push(w)}; g.y.removeListener=function(w){this.listeners=this.listeners.filter(function(D){return D!==w})}; g.y.r5=function(){}; g.y.playVideo=function(){this.K.playVideo()}; g.y.pauseVideo=function(){this.K.pauseVideo()}; g.y.resumeVideo=function(w){this.U3(w)&&this.K.playVideo()}; g.y.U3=function(w){return this.K.getPlayerState(w)===2}; g.y.getCurrentTimeSec=function(w,D,M){var L=this.Gh.get().s2;if(w===2&&!D&&L!==null)return lv(this,L);cI(this.D5.get(),"html5_ssap_use_cpn_to_get_time")||(M=void 0);return M!==void 0?this.K.getCurrentTime(w,D,M):this.K.getCurrentTime(w,D)}; g.y.getVolume=function(){return this.K.getVolume()}; g.y.isMuted=function(){return this.K.isMuted()}; g.y.getPresentingPlayerType=function(){return this.K.getPresentingPlayerType(!0)}; g.y.getPlayerState=function(w){return this.K.getPlayerState(w)}; g.y.getGetAdBreakContext=function(){return this.K.getGetAdBreakContext()}; g.y.isFullscreen=function(){return this.K.isFullscreen()}; g.y.isAtLiveHead=function(){return this.K.isAtLiveHead()}; g.y.Qm=function(w){this.K.Qm(w)}; g.y.ilc=function(){var w=this.K.getPresentingPlayerType(!0),D=this.getCurrentTimeSec(w,!1);if(w===2){w=g.x(this.listeners);for(var M=w.next();!M.done;M=w.next())M.value.kx(D)}else if(w===1)for(w=g.x(this.iY),M=w.next();!M.done;M=w.next())M.value.r5(D)}; g.y.rQk=function(w){for(var D=g.x(this.listeners),M=D.next();!M.done;M=D.next())M.value.q5(w,this.getPresentingPlayerType())}; g.y.onFullscreenToggled=function(w){for(var D=g.x(this.listeners),M=D.next();!M.done;M=D.next())M.value.onFullscreenToggled(w)}; g.y.onVolumeChange=function(){for(var w=g.x(this.listeners),D=w.next();!D.done;D=w.next())D.value.onVolumeChange()}; g.y.jw=function(){for(var w=this.K.isMinimized(),D=g.x(this.listeners),M=D.next();!M.done;M=D.next())M.value.jw(w)}; g.y.q2=function(w){for(var D=g.x(this.listeners),M=D.next();!M.done;M=D.next())M.value.q2(w)}; g.y.EB=function(){for(var w=this.K.qd().KJ(),D=g.x(this.listeners),M=D.next();!M.done;M=D.next())M.value.DK(w)}; g.y.Qg=function(w){for(var D=g.x(this.listeners),M=D.next();!M.done;M=D.next())M.value.Qg(w)}; g.y.pP=function(){for(var w=g.x(this.listeners),D=w.next();!D.done;D=w.next())D.value.pP()};g.I(cGs,g.X);g.I(W9,g.X);W9.prototype.oJ=function(){this.yW.xt()||this.yW.get().removeListener(this);g.X.prototype.oJ.call(this)};h2.prototype.fetch=function(w){var D=w.Fx;return this.T.fetch(w.xR,{vB:w.vB===void 0?void 0:w.vB,bO:D,cueProcessedMs:w.cueProcessedMs===void 0?0:w.cueProcessedMs}).then(function(M){return BRZ(M,D)})};g.I(t2,g.X);g.y=t2.prototype;g.y.addListener=function(w){this.listeners.push(w)}; g.y.removeListener=function(w){this.listeners=this.listeners.filter(function(D){return D!==w})}; g.y.kq=function(w){fax(this,w,1)}; g.y.onAdUxClicked=function(w,D){$H(this,function(M){M.Ky(w,D)})}; g.y.g5=function(w){$H(this,function(D){D.qp(w)})}; g.y.JA=function(w){$H(this,function(D){D.eB(w)})}; g.y.Ac_=function(w){$H(this,function(D){D.b7(w)})};iv.prototype.reduce=function(w){switch(w.event){case "unknown":return}var D=w.identifier;var M=this.T[D];M?D=M:(M={OW:null,Q2:-Infinity},D=this.T[D]=M);M=w.startSecs+w.T/1E3;if(!(M=this.T.startSecs&&M.startSecs<=this.T.startSecs+this.T.x6)){var L=void 0;if(PX(this.D5.get())&&M.identifier!==((L=this.T)==null?void 0:L.identifier)){var Z=L=void 0,k=void 0,b=void 0;nY(this.FE.get(),"ocud","ccpi."+M.identifier+";ccpe."+M.event+";ccps."+M.startSecs+";\n ccpd."+M.x6+";pcpi."+((L=this.T)==null?void 0:L.identifier)+ ";pcpe."+((Z=this.T)==null?void 0:Z.event)+";\n pcps."+((k=this.T)==null?void 0:k.startSecs)+";pcpd."+((b=this.T)==null?void 0:b.x6)+";")}L=void 0;M.identifier!==((L=this.T)==null?void 0:L.identifier)&&Zg("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.T=M,el1(this,M)}}; g.y.oJ=function(){this.V!=null&&(this.V.unsubscribe("cuepointupdated",this.je,this),this.V=null);this.listeners.length=0;this.nU.length=0;g.X.prototype.oJ.call(this)};g.y=Ia.prototype;g.y.dj=function(w,D,M,L,Z,k,b,C){return this.K.dj(w,D,M,L,Z,k,b,C)}; g.y.MX=function(w,D){this.K.MX(w,D)}; g.y.iC=function(w,D,M){this.K.iC(w,D,M)}; g.y.Xa=function(w){this.K.Xa(w)}; g.y.ol=function(w,D,M,L,Z,k,b,C){this.K.ol(w,D,M,L,Z,k,b,C)}; g.y.HC=function(w){return this.K.HC(w)}; g.y.finishSegmentByCpn=function(w,D,M){M=uKx(M);this.K.finishSegmentByCpn(w,D,M)};g.I(Ue,g.X);g.I(QT7,g.X);g.I(JGr,g.X);g.I(zl3,g.X);g.I(VNQ,g.X);g.I(PSB,g.X);g.I(KCZ,g.X);KCZ.prototype.L=function(){return this.V};g.I(mk7,fb); mk7.prototype.L=function(w){var D=w.content;if(D.componentType==="shopping-companion")switch(w.actionType){case 1:case 2:w=this.T.getVideoData(1);this.T.Q7("updateKevlarOrC3Companion",{contentVideoId:w&&w.videoId,shoppingCompanionCarouselRenderer:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.T,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:this.T.Q7("updateKevlarOrC3Companion",{})}else if(D.componentType==="action-companion")switch(w.actionType){case 1:case 2:w=this.T.getVideoData(1); this.T.Q7("updateKevlarOrC3Companion",{contentVideoId:w&&w.videoId,actionCompanionAdRenderer:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.T,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:D.renderer&&(D=this.T.getVideoData(1),this.T.Q7("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId})),this.T.Q7("updateKevlarOrC3Companion",{})}else if(D.componentType==="image-companion")switch(w.actionType){case 1:case 2:w=this.T.getVideoData(1);this.T.Q7("updateKevlarOrC3Companion", {contentVideoId:w&&w.videoId,imageCompanionAdRenderer:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.T,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:D=this.T.getVideoData(1),this.T.Q7("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId}),this.T.Q7("updateKevlarOrC3Companion",{})}else if(D.componentType==="top-banner-image-text-icon-buttoned")switch(w.actionType){case 1:case 2:w=this.T.getVideoData(1);this.T.Q7("updateKevlarOrC3Companion", {contentVideoId:w&&w.videoId,topBannerImageTextIconButtonedLayoutViewModel:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.T,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:D.renderer&&(D=this.T.getVideoData(1),this.T.Q7("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId})),this.T.Q7("updateKevlarOrC3Companion",{})}else if(D.componentType==="banner-image")switch(w.actionType){case 1:case 2:w=this.T.getVideoData(1);this.T.Q7("updateKevlarOrC3Companion", {contentVideoId:w&&w.videoId,bannerImageLayoutViewModel:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.T,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:D=this.T.getVideoData(1),this.T.Q7("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId}),this.T.Q7("updateKevlarOrC3Companion",{})}else if(D.componentType==="ads-engagement-panel")switch(D=D.renderer,w.actionType){case 1:case 2:this.T.Q7("updateEngagementPanelAction",D.addAction);this.T.Q7("changeEngagementPanelVisibility", D.expandAction);break;case 3:this.T.Q7("changeEngagementPanelVisibility",D.hideAction),this.T.Q7("updateEngagementPanelAction",D.removeAction)}else if(D.componentType==="ads-engagement-panel-layout"){var M=D.renderer;switch(w.actionType){case 1:case 2:this.T.Q7("updateEngagementPanelAction",{action:n1(M.addAction),layoutId:D.layoutId,onLayoutVisibleCallback:D.T,interactionLoggingClientData:D.interactionLoggingClientData});this.T.Q7("changeEngagementPanelVisibility",n1(M.expandAction));break;case 3:this.T.Q7("changeEngagementPanelVisibility", n1(M.hideAction)),this.T.Q7("updateEngagementPanelAction",{action:n1(M.removeAction)})}}};g.I(AG7,Q9);g.y=AG7.prototype;g.y.init=function(w,D,M){Q9.prototype.init.call(this,w,D,M);g.Qv(this.L,"stroke-dasharray","0 "+this.V);this.L.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.y.clear=function(){this.hide()}; g.y.hide=function(){zL(this);Q9.prototype.hide.call(this)}; g.y.show=function(){JS(this);Q9.prototype.show.call(this)}; g.y.sM=function(){this.hide()}; g.y.p7=function(){if(this.T){var w=this.T.getProgressState();w!=null&&w.current!=null&&g.Qv(this.L,"stroke-dasharray",w.current/w.seekableEnd*this.V+" "+this.V)}};g.I(wQ3,Zq);g.y=wQ3.prototype; g.y.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);if(D.image&&D.image.thumbnail)if(D.headline)if(D.description)if(D.backgroundImage&&D.backgroundImage.thumbnail)if(D.actionButton&&g.Q(D.actionButton,g.YF))if(w=D.durationMilliseconds||0,typeof w!=="number"||w<=0)g.HL(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+w));else if(D.navigationEndpoint){var L=this.api.getVideoData(2);if(L!=null){var Z=D.image.thumbnail.thumbnails;Z!=null&& Z.length>0&&g.s3(g.sQ(Z[0].url))&&(Z[0].url=L.profilePicture,g.s3(g.sQ(L.profilePicture))&&X_C("VideoPlayer",239976093,"Expected non-empty profile picture."));Z=D.backgroundImage.thumbnail.thumbnails;Z!=null&&Z.length>0&&g.s3(g.sQ(Z[0].url))&&(Z[0].url=L.yL());Z=D.headline;Z!=null&&g.s3(g.sQ(Z.text))&&(Z.text=L.author)}this.B.init(Of("ad-image"),D.image,M);this.W.init(Of("ad-text"),D.headline,M);this.L.init(Of("ad-text"),D.description,M);this.jk.init(Of("ad-image"),D.backgroundImage,M);L=["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.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.L.element.classList.add("ytp-ad-action-interstitial-description-light");L.push("ytp-ad-action-interstitial-action-button-dark");this.api.X().V&&(L.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),L.push("ytp-ad-action-interstitial-action-button-dark"));this.api.X().C("enable_unified_action_endcap_on_web")&& !this.api.X().V&&(L.push("ytp-ad-action-interstitial-action-button-unified"),this.Nd.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.EL.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.ET.classList.add("ytp-ad-action-interstitial-card-unified"),this.V7.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.W_.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Jc.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Md.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new gs(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,L);g.T(this,this.actionButton);this.actionButton.CV(this.Nd); this.actionButton.init(Of("button"),g.Q(D.actionButton,g.YF),M);qh(this.actionButton.element);L=Xr(this.actionButton.element);e3(this.actionButton.element,L+" This link opens in new tab");this.navigationEndpoint=D.navigationEndpoint;this.D.j(this.Jc,"click",this.Qb,this);this.D.j(this.V7,"click",this.Qb,this);!this.api.X().C("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.X().V||this.D.j(this.W_,"click",this.Qb,this);this.T=this.jO?new tP(this.api,w):new $0(w);g.T(this,this.T);if(D.skipButton){(w= g.Q(D.skipButton,EyB))&&this.T&&(this.skipButton=new Cm(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.T,this.Nl),g.T(this,this.skipButton),this.skipButton.CV(this.element),this.skipButton.init(Of("skip-button"),w,M));if(M=D.adBadgeRenderer)if(M=g.Q(M,lK3))w=new Wq(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,!0,!0),w.CV(this.Md),w.init(Of("simple-ad-badge"),M,this.macros),g.T(this,w);if(M=D.adInfoRenderer)if(M=g.Q(M,kF))w=new TL(this.api,this.layoutId,this.interactionLoggingClientData, this.w9,this.element,void 0,!0),w.CV(this.Md),w.init(Of("ad-info-hover-text-button"),M,this.macros),g.T(this,w)}else D.nonskippableOverlayRenderer&&(w=g.Q(D.nonskippableOverlayRenderer,bO))&&this.T&&(this.V=new OW(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.T,!1),g.T(this,this.V),this.V.CV(this.element),this.V.init(Of("ad-preview"),w,M));D.countdownRenderer&&(D=D.countdownRenderer,g.Q(D,pbs)&&this.T&&(M=new AG7(this.api,this.layoutId,this.interactionLoggingClientData,this.w9, this.T),g.T(this,M),M.CV(this.element),M.init(Of("timed-pie-countdown"),g.Q(D,pbs),this.macros)));this.show();this.element.focus()}else g.HL(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.HL(Error("AdActionInterstitialRenderer has no button."));else g.HL(Error("AdActionInterstitialRenderer has no background AdImage."));else g.HL(Error("AdActionInterstitialRenderer has no description AdText."));else g.HL(Error("AdActionInterstitialRenderer has no headline AdText."));else g.HL(Error("AdActionInterstitialRenderer has no image."))}; g.y.clear=function(){g.NA(this.D);this.hide()}; g.y.show=function(){DZS(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.V&&this.V.show();Zq.prototype.show.call(this)}; g.y.hide=function(){DZS(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.V&&this.V.hide();Zq.prototype.hide.call(this)}; g.y.Qb=function(){this.navigationEndpoint&&(this.layoutId?this.w9.executeCommand(this.navigationEndpoint,this.layoutId):g.HL(Error("Missing layoutId for ad action interstitial.")))};var bkx={iconType:"CLOSE"},jb=new g.Jv(320,63);g.I(kDZ,Zq);g.y=kDZ.prototype; g.y.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);this.D=D;this.B=g.GD(this.D.onClickCommands||[]);this.Md=this.D.onErrorCommand||null;if(w=this.D.contentSupportedRenderer)w=this.D.contentSupportedRenderer,D=this.D.adInfoRenderer||null,g.Q(w,bRl)?(this.W=g.CR("ytp-ad-overlay-ad-info-button-container",this.L.element),Yll(this,D),w=lZx(this,g.Q(w,bRl))):g.Q(w,Yg1)?(this.W=g.CR("ytp-ad-overlay-ad-info-button-container",this.V.element),Yll(this,D),w=EBS(this,g.Q(w,Yg1))):g.Q(w,C53)?(this.W= g.CR("ytp-ad-overlay-ad-info-button-container",this.T.element),Yll(this,D),w=pQ1(this,g.Q(w,C53))):(g.HL(Error("InvideoOverlayAdRenderer content could not be initialized.")),w=!1);w&&(this.show(),Wr7(this,!0))}; g.y.clear=function(){Wr7(this,!1);this.Jc.reset();this.V7=0;this.L.hide();this.logVisibility(this.L.element,!1);this.V.hide();this.logVisibility(this.V.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()}; g.y.wrE=function(){this.Nd&&(this.layoutId?this.w9.executeCommand(this.Nd,this.layoutId):g.HL(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.y.x5=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var w=this.D.closeButton.buttonRenderer;if(w.serviceEndpoint){w=[w.serviceEndpoint];break a}}w=[]}w=g.x(w);for(var D=w.next();!D.done;D=w.next())D=D.value,this.layoutId?this.w9.executeCommand(D,this.layoutId):g.HL(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.y.iVt=function(){this.jk||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.y.Ob=function(){this.jk||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Ob("invideo-overlay")}; g.y.B9h=function(w){w.target===this.W&&g.CR("ytp-ad-button",this.EL.element).click()};g.I(hsl,Q9);g.y=hsl.prototype;g.y.init=function(w,D,M){Q9.prototype.init.call(this,w,D,M);w=D.durationMs;this.L=w==null||w===0?0:w+this.T.getProgressState().current*1E3;if(D.text)var L=D.text.templatedAdText;else D.staticMessage&&(L=D.staticMessage);this.messageText.init(Of("ad-text"),L,M);this.messageText.CV(this.V.element);this.D.show(100);this.show()}; g.y.clear=function(){this.hide()}; g.y.hide=function(){tPP(this,!1);Q9.prototype.hide.call(this);this.V.hide();this.messageText.hide();zL(this)}; g.y.show=function(){tPP(this,!0);Q9.prototype.show.call(this);JS(this);this.V.show();this.messageText.show()}; g.y.sM=function(){this.hide()}; g.y.p7=function(){if(this.T!=null){var w=this.T.getProgressState();w!=null&&w.current!=null&&(w=1E3*w.current,!this.V7&&w>=this.L?(this.D.hide(),this.V7=!0):this.messageText&&this.messageText.isTemplated()&&(w=Math.max(0,Math.ceil((this.L-w)/1E3)),w!==this.W&&(SG(this.messageText,{TIME_REMAINING:String(w)}),this.W=w)))}};g.I($Zs,Zq);g.y=$Zs.prototype; g.y.init=function(w,D,M){Zq.prototype.init.call(this,w,D,{});D.image&&D.image.thumbnail?D.headline?D.description?D.actionButton&&g.Q(D.actionButton,g.YF)?(this.L.init(Of("ad-image"),D.image,M),this.V.init(Of("ad-text"),D.headline,M),this.D.init(Of("ad-text"),D.description,M),this.actionButton=new gs(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,["ytp-ad-underlay-action-button"]),D.backgroundColor&&g.Qv(this.element,"background-color",g.GN(D.backgroundColor)),g.T(this,this.actionButton), this.actionButton.CV(this.W),this.actionButton.init(Of("button"),g.Q(D.actionButton,g.YF),M),w=g.A3(this.api.X().experiments,"player_underlay_video_width_fraction"),this.api.X().C("place_shrunken_video_on_left_of_player")?(D=this.T,g.D6(D,"ytp-ad-underlay-left-container"),g.AB(D,"ytp-ad-underlay-right-container"),g.Qv(this.T,"margin-left",Math.round((w+.02)*100)+"%")):(D=this.T,g.D6(D,"ytp-ad-underlay-right-container"),g.AB(D,"ytp-ad-underlay-left-container")),g.Qv(this.T,"width",Math.round((1-w- .04)*100)+"%"),this.api.kd()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.L4.bind(this)),this.api.addEventListener("resize",this.VS.bind(this))):g.HL(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.HL(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.HL(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.HL(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.y.show=function(){ikQ(!0);this.actionButton&&this.actionButton.show();Zq.prototype.show.call(this)}; g.y.hide=function(){ikQ(!1);this.actionButton&&this.actionButton.hide();Zq.prototype.hide.call(this)}; g.y.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.L4.bind(this));this.api.removeEventListener("resize",this.VS.bind(this));this.hide()}; g.y.onClick=function(w){Zq.prototype.onClick.call(this,w);this.actionButton&&g.Ug(this.actionButton.element,w.target)&&this.api.pauseVideo()}; g.y.L4=function(w){w==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):w==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):w==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))}; g.y.VS=function(w){w.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):w.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.Qv(this.V.element,"font-size",w.width/40+"px")};g.I(g7,Zq); g7.prototype.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);D.toggledLoggingParams&&(this.toggledLoggingParams=D.toggledLoggingParams);D.answer&&g.Q(D.answer,g.YF)?(w=new gs(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),w.CV(this.answer),w.init(Of("ytp-ad-survey-answer-button"),g.Q(D.answer,g.YF),M),w.show()):D.answer&&g.Q(D.answer,Nf)&&(this.T=new cv(this.api,this.layoutId,this.interactionLoggingClientData,this.w9, ["ytp-ad-survey-answer-toggle-button"]),this.T.CV(this.answer),g.T(this,this.T),this.T.init(Of("survey-answer-button"),g.Q(D.answer,Nf),M));this.show()}; g7.prototype.oH=function(w){this.layoutId?sT(this.w9,w,this.layoutId,this.macros):(w=new g.qA("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.HL(w))}; g7.prototype.onClick=function(w){Zq.prototype.onClick.call(this,w);if(this.api.X().C("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; g7.prototype.clear=function(){this.hide()};g.I(dZZ,Zq);dZZ.prototype.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);D.answer&&g.Q(D.answer,Nf)&&(this.button=new cv(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.CV(this.T),this.button.init(Of("survey-none-of-the-above-button"),g.Q(D.answer,Nf),M));this.show()};g.I(Ra,gs);Ra.prototype.init=function(w,D,M){gs.prototype.init.call(this,w,D,M);w=!1;D.text&&(D=g.bI(D.text),w=!g.s3(D));w||g.jn(Error("No submit text was present in the renderer."))}; Ra.prototype.onClick=function(w){this.publish("l");gs.prototype.onClick.call(this,w)};g.I(oa,Zq); oa.prototype.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);if(w=D.skipOrPreviewRenderer)g.Q(w,aK)?(w=g.Q(w,aK),M=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.D,!0),M.CV(this.skipOrPreview),M.init(Of("skip-button"),w,this.macros),g.T(this,M),this.T=M):g.Q(w,bO)&&(w=g.Q(w,bO),M=new OW(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.D,!1),M.CV(this.skipOrPreview),M.init(Of("ad-preview"),w,this.macros),M.V7.show(100),M.show(),g.T(this,M), this.T=M);this.T==null&&(w=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(D)),g.HL(w));D.submitButton&&(w=D.submitButton,g.Q(w,g.YF)&&(w=g.Q(w,g.YF),M=new Ra(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),M.CV(this.submitButton),M.init(Of("survey-submit"),w,this.macros),g.T(this,M),this.V=M));if(w=D.adBadgeRenderer)w=g.Q(w,lK3),M=new Wq(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,!0,!0,!0),M.CV(this.L),M.init(Of("simple-ad-badge"), w,this.macros),this.adBadge=M.element,g.T(this,M);if(w=D.adDurationRemaining)w=g.Q(w,L5r),M=new ya(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.D,void 0,!0),M.CV(this.L),M.init(Of("ad-duration-remaining"),w,this.macros),g.T(this,M);(D=D.adInfoRenderer)&&g.Q(D,kF)&&(w=new TL(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.element,void 0,!0),g.T(this,w),this.adBadge!==void 0?this.L.insertBefore(w.element,this.adBadge.nextSibling):w.CV(this.L),w.init(Of("ad-info-hover-text-button"), g.Q(D,kF),this.macros));this.show()}; oa.prototype.clear=function(){this.hide()};g.I(nF,Zq);nF.prototype.init=function(w,D,M){Zq.prototype.init.call(this,w,D,M);N3S(this)}; nF.prototype.show=function(){this.L=Date.now();Zq.prototype.show.call(this)}; nF.prototype.p_=function(){};g.I(HkS,nF);g.y=HkS.prototype;g.y.init=function(w,D,M){var L=this;nF.prototype.init.call(this,w,D,M);D.questionText&&yx7(this,D.questionText);D.answers&&D.answers.forEach(function(Z,k){g.Q(Z,UZ)&&IZD(L,g.Q(Z,UZ),M,k)}); this.W=new Set(this.V.map(function(Z){return Z.T.T})); (w=D.noneOfTheAbove)&&(w=g.Q(w,kdP))&&jSQ(this,w,M);D.surveyAdQuestionCommon&&xZ1(this,D.surveyAdQuestionCommon);D.submitEndpoints&&(this.submitEndpoints=D.submitEndpoints);this.j(this.element,"change",this.onChange);this.show()}; g.y.p_=function(){gB3(this,!1);this.D.V.subscribe("l",this.IX5,this)}; g.y.onChange=function(w){w.target===this.noneOfTheAbove.button.T?Rsr(this):this.W.has(w.target)&&(this.noneOfTheAbove.button.toggleButton(!1),gB3(this,!0))}; g.y.IX5=function(){var w=[],D=this.V.reduce(function(Z,k,b){var C=k.toggledLoggingParams;k.T&&k.T.isToggled()&&C&&(Z.push(C),w.push(b));return Z},[]).join("&"),M=this.submitEndpoints.map(function(Z){if(!Z.loggingUrls)return Z; Z=g.i1(Z);Z.loggingUrls=Z.loggingUrls.map(function(k){k.baseUrl&&(k.baseUrl=yU(k.baseUrl,D));return k}); return Z}); if(M){M=g.x(M);for(var L=M.next();!L.done;L=M.next())L=L.value,this.layoutId?sT(this.w9,L,this.layoutId,this.macros):g.HL(Error("Missing layoutId for multi_select_question."))}this.api.X().C("supports_multi_step_on_desktop")&&this.V7(w)}; g.y.clear=function(){this.api.X().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.I(Fw,nF);Fw.prototype.init=function(w,D,M){var L=this;nF.prototype.init.call(this,w,D,M);D.questionText&&yx7(this,D.questionText);D.answers&&D.answers.forEach(function(Z,k){g.Q(Z,UZ)&&IZD(L,g.Q(Z,UZ),M,k)}); D.surveyAdQuestionCommon?xZ1(this,D.surveyAdQuestionCommon):w_(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(D)));this.show()}; Fw.prototype.clear=function(){this.api.X().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.I(Gs,Zq);Gs.prototype.init=function(w,D,M){var L=this;Zq.prototype.init.call(this,w,D,M);if(this.api.X().C("supports_multi_step_on_desktop")){var Z;this.conditioningRules=(Z=D.conditioningRules)!=null?Z:[];var k;this.V=(k=D.questions)!=null?k:[];var b;((b=D.questions)==null?0:b.length)&&GDD(this,0)}else(D.questions||[]).forEach(function(C){g.Q(C,LO)?nBS(L,g.Q(C,LO),M):g.Q(C,M8)&&Frs(L,g.Q(C,M8),M)}); this.show()}; Gs.prototype.clear=function(){this.api.X().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Gs.prototype.D=function(w){var D=this;if(this.api.X().C("supports_multi_step_on_desktop")){var M;if((M=this.conditioningRules)==null?0:M.length){var L;if(w.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(Z){return Z.questionIndex===D.T})==null)g.HL(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(Z){if(Z.questionIndex===D.T)switch(Z.condition){case "CONDITION_ALL_OF":var k;if((k=Z.answerIndices)==null?0:k.every(function(C){return w.includes(C)}))L=Z.nextQuestionIndex; break;case "CONDITION_ANY_OF":var b;if((b=Z.answerIndices)==null?0:b.some(function(C){return w.includes(C)}))L=Z.nextQuestionIndex; break;default:g.HL(Error("Expected specified condition in survey conditioning rules."))}}),L!=null)GDD(this,L); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.HL(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.I(se,Zq); se.prototype.init=function(w,D,M){var L=this;Zq.prototype.init.call(this,w,D,M);w=D.timeoutSeconds||0;if(typeof w!=="number"||w<0)g.HL(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+w));else if(D.timeoutCommands)if(D.text)if(D.ctaButton&&g.Q(D.ctaButton,g.YF))if(D.brandImage)if(D.backgroundImage&&g.Q(D.backgroundImage,CO)&&g.Q(D.backgroundImage,CO).landscape){this.layoutId||g.HL(Error("Missing layoutId for survey interstitial."));sSl(this.interstitial,g.Q(D.backgroundImage, CO).landscape);sSl(this.logoImage,D.brandImage);g.N1(this.text,g.bI(D.text));var Z=["ytp-ad-survey-interstitial-action-button"];Z.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new gs(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,Z);g.T(this,this.actionButton);this.actionButton.CV(this.V);this.actionButton.init(Of("button"),g.Q(D.ctaButton,g.YF),M);this.actionButton.show();this.T=new tP(this.api,w*1E3);this.T.subscribe("g",function(){L.transition.hide()}); g.T(this,this.T);this.j(this.element,"click",function(k){var b=k.target===L.interstitial;k=L.actionButton.element.contains(k.target);if(b||k)if(L.transition.hide(),b)L.api.onAdUxClicked(L.componentType,L.layoutId)}); this.transition.show(100)}else g.HL(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.HL(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.HL(Error("SurveyTextInterstitialRenderer has no button."));else g.HL(Error("SurveyTextInterstitialRenderer has no text."));else g.HL(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; se.prototype.clear=function(){this.hide()}; se.prototype.show=function(){aZr(!0);Zq.prototype.show.call(this)}; se.prototype.hide=function(){aZr(!1);Zq.prototype.hide.call(this)};g.I(aa,Q9);g.y=aa.prototype; g.y.init=function(w,D){Q9.prototype.init.call(this,w,D,{});if(D.durationMilliseconds){if(D.durationMilliseconds<0){g.HL(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+D.durationMilliseconds));return}this.V=D.durationMilliseconds}else this.V=this.T.KK();var M;if((M=D.previewText)==null||!M.text||g.s3(D.previewText.text))g.HL(Error("No text is returned for AdPreview."));else{this.W=D.previewText;D.previewText.isTemplated||g.N1(this.L,D.previewText.text);var L; if(((L=this.api.getVideoData(1))==null?0:L.D9)&&D.previewImage){var Z,k;(w=((k=p_(((Z=D.previewImage)==null?void 0:Z.sources)||[],52,!1))==null?void 0:k.url)||"")&&w.length?(this.previewImage=new g.Lb({Z:"img",J:"ytp-preview-ad__image",S:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",w),g.T(this,this.previewImage),this.previewImage.CV(this.element)):g.HL(Error("Failed to get imageUrl in AdPreview."))}else this.L.classList.add("ytp-preview-ad__text--padding--wide")}}; g.y.clear=function(){this.hide()}; g.y.hide=function(){zL(this);Q9.prototype.hide.call(this)}; g.y.show=function(){JS(this);Q9.prototype.show.call(this)}; g.y.sM=function(){this.hide()}; g.y.p7=function(){if(this.T){var w=this.T.getProgressState();if(w!=null&&w.current)if(w=1E3*w.current,w>=this.V)this.transition.hide();else{var D;if((D=this.W)==null?0:D.isTemplated)if(D=Math.max(0,Math.ceil((this.V-w)/1E3)),D!==this.D){var M,L;(w=(M=this.W)==null?void 0:(L=M.text)==null?void 0:L.replace("{TIME_REMAINING}",String(D)))&&g.N1(this.L,w);this.D=D}}}};g.I(v9,Zq); v9.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});var M,L;if((w=((L=p_(((M=D.image)==null?void 0:M.sources)||[],vBB(D),!0))==null?void 0:L.url)||"")&&w.length){M=this.Z5("ytp-ad-avatar");M.src=w;var Z,k;if(L=(Z=D.interaction)==null?void 0:(k=Z.accessibility)==null?void 0:k.label)M.alt=L;switch(D.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(D.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.HL(Error("Failed to get imageUrl in AdAvatar."))}; v9.prototype.clear=function(){this.hide()}; v9.prototype.onClick=function(w){Zq.prototype.onClick.call(this,w)};g.I(c9,Zq); c9.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});var M;w=(M=D.label)==null?void 0:M.content;if((M=w!=null&&!g.s3(w))||D.iconImage){M&&(this.buttonText=new g.Lb({Z:"span",J:"ytp-ad-button-vm__text",LV:w}),g.T(this,this.buttonText),this.buttonText.CV(this.element));var L,Z,k=((L=D.interaction)==null?0:(Z=L.accessibility)==null?0:Z.label)||M?w:"";k&&e3(this.element,k+" This link opens in new tab");qh(this.element);if(D.iconImage){L=void 0;if(D.iconImage){a:{Z=D.iconImage;if(Z.sources)for(Z= g.x(Z.sources),w=Z.next();!w.done;w=Z.next())if(w=w.value,k=void 0,(k=w.clientResource)==null?0:k.imageName){Z=w;break a}Z=void 0}if(Z){var b;L={iconType:(b=Z.clientResource)==null?void 0:b.imageName}}}b=jG(L,!1,this.V);b!=null&&(this.buttonIcon=new g.Lb({Z:"span",J:"ytp-ad-button-vm__icon",N:[b]}),g.T(this,this.buttonIcon),D.iconLeading?(yv(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):M?(this.buttonIcon.CV(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.CV(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(D.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_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.C("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.T?"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(D.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.jn(Error("AdButton does not have label or an icon."))}; c9.prototype.clear=function(){this.hide()}; c9.prototype.onClick=function(w){Zq.prototype.onClick.call(this,w)};g.I(cxs,Q9);g.y=cxs.prototype; g.y.init=function(w,D){Q9.prototype.init.call(this,w,D,{});if(w=g.Q(D.avatar,Sb)){var M=D.headline;if(M){var L=D.description;if(L){var Z=g.Q(D.button,J2);Z?(this.adAvatar.init(Of("ad-avatar"),w),this.headline.init(Of("ad-simple-attributed-string"),new Ux(M)),this.description.init(Of("ad-simple-attributed-string"),new Ux(L)),M.content&&M.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(Of("ad-button"),Z), this.startMilliseconds=D.startMs||0,this.api.kd()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.zT.bind(this)),JS(this)):g.HL(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.HL(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.HL(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.HL(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.y.p7=function(){if(this.T){var w=this.T.getProgressState();w&&w.current&&1E3*w.current>=this.startMilliseconds&&(zL(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.y.sM=function(){this.clear()}; g.y.onClick=function(w){this.api.pauseVideo();Q9.prototype.onClick.call(this,w)}; g.y.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.zT.bind(this))}; g.y.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Q9.prototype.show.call(this)}; g.y.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Q9.prototype.hide.call(this)}; g.y.zT=function(w){w==="hidden"?this.show():this.hide()};g.I(B9,Zq);g.y=B9.prototype; g.y.init=function(w,D){Zq.prototype.init.call(this,w,D,{});if(!D.label||g.s3(D.label))g.HL(Error("No label is returned for SkipAdButton."));else if(g.N1(this.D,D.label),w=jG({iconType:"SKIP_NEXT_NEW"}),w==null)g.HL(Error("Unable to retrieve icon for SkipAdButton"));else if(this.L=new g.Lb({Z:"span",J:"ytp-skip-ad-button__icon",N:[w]}),g.T(this,this.L),this.L.CV(this.element),this.api.X().experiments.ek("enable_skip_to_next_messaging")&&(D=g.sQ(D.targetId)))this.V=!0,this.element.setAttribute("data-tooltip-target-id",D), this.element.setAttribute("data-tooltip-target-fixed","")}; g.y.onClick=function(w){w&&w.preventDefault();var D,M;LgJ(w,{contentCpn:(M=(D=this.api.getVideoData(1))==null?void 0:D.clientPlaybackNonce)!=null?M:""})===0?this.api.Q7("onAbnormalityDetected"):(Zq.prototype.onClick.call(this,w),this.api.Q7("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.y.clear=function(){this.T.reset();this.hide()}; g.y.hide=function(){Zq.prototype.hide.call(this)}; g.y.show=function(){this.T.start();Zq.prototype.show.call(this);this.V&&this.api.X().experiments.ek("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.I(B3r,Q9);g.y=B3r.prototype; g.y.init=function(w,D){Q9.prototype.init.call(this,w,D,{});w=g.Q(D.preskipState,yMr);var M;if((M=this.api.getVideoData())==null?0:M.isDaiEnabled()){if(!w){g.HL(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.V=new aa(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.T);g.T(this,this.V);this.V.CV(this.element);var L;(L=this.V)==null||L.init(Of("preview-ad"),w);(M=this.V)!=null&&(M.transition.show(100),M.show())}(M=g.Q(D.skippableState,U1Z))?(D.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=D.skipOffsetMilliseconds:(g.jn(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.L.init(Of("skip-button"),M),this.show()):g.HL(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.y.show=function(){JS(this);Q9.prototype.show.call(this)}; g.y.hide=function(){!this.isSkippable&&this.V?this.V.hide():this.L&&this.L.hide();zL(this);Q9.prototype.hide.call(this)}; g.y.clear=function(){var w;(w=this.V)==null||w.clear();this.L&&this.L.clear();zL(this);Q9.prototype.hide.call(this)}; g.y.sM=function(){this.hide()}; g.y.p7=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var w;(w=this.V)!=null&&w.transition.hide();(w=this.L)!=null&&(w.transition.show(),w.show())}};g.I(fF,Zq); fF.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});if(D.label){var M;((M=D.label)==null?0:M.content)&&!g.s3(D.label.content)&&(this.linkText=new g.Lb({Z:"span",J:"ytp-visit-advertiser-link__text",LV:D.label.content}),g.T(this,this.linkText),this.linkText.CV(this.element));var L,Z;if((L=D.interaction)==null?0:(Z=L.accessibility)==null?0:Z.label)e3(this.element,D.interaction.accessibility.label+" This link opens in new tab");else{var k;((k=D.label)==null?0:k.content)&&!g.s3(D.label.content)&&e3(this.element, D.label.content+" This link opens in new tab")}qh(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.HL(Error("No label found in VisitAdvertiserLink."))}; fF.prototype.onClick=function(w){Zq.prototype.onClick.call(this,w);this.api.onAdUxClicked(this.componentType,this.layoutId)}; fF.prototype.clear=function(){this.hide()};g.I(qS,Zq); qS.prototype.init=function(w,D,M,L){Zq.prototype.init.call(this,w,D,{});if(D.skipOrPreview){M=D.skipOrPreview;w=g.Q(M,x1P);M=g.Q(M,yMr);if(w)this.EQ=new B3r(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.V),g.T(this,this.EQ),this.EQ.CV(this.B),this.EQ.init(Of("skip-ad"),w);else{var Z;M&&((Z=this.api.getVideoData())==null?0:Z.isDaiEnabled())&&(this.D=new aa(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.V,1),g.T(this,this.D),this.D.CV(this.B),this.D.init(Of("ad-preview"), M),Z=this.D,Z.transition.show(100),Z.show())}if(Z=g.Q(D.skipOrPreview,x1P))var k=Z.skipOffsetMilliseconds}D.playerAdCard&&(Z=g.Q(D.playerAdCard,IKB))&&(this.playerAdCard=new cxs(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.V),g.T(this,this.playerAdCard),this.playerAdCard.CV(this.W_),this.playerAdCard.init(Of("ad-avatar-lockup-card"),Z));D.adBadgeRenderer&&((Z=g.Q(D.adBadgeRenderer,Qb))?(this.L=new Nz(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,!0),g.T(this, this.L),this.L.CV(this.T),this.L.init(Of("ad-badge"),Z)):g.HL(Error("AdBadgeViewModel is not found in player overlay layout.")));D.adPodIndex&&(Z=g.Q(D.adPodIndex,tws))&&(this.adPodIndex=new Hq(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,this.adPodIndex),this.adPodIndex.CV(this.T),this.adPodIndex.init(Of("ad-pod-index"),Z));D.adInfoRenderer&&((Z=g.Q(D.adInfoRenderer,kF))?(this.adInfoButton=new TL(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.element, void 0,!0),g.T(this,this.adInfoButton),this.L!==void 0?this.T.insertBefore(this.adInfoButton.element,this.L.element.nextSibling):this.adInfoButton.CV(this.T),this.adInfoButton.init(Of("ad-info-hover-text-button"),Z,this.macros)):g.jn(Error("AdInfoRenderer is not found in player overlay layout.")));var b;Z=(b=this.api.getVideoData())==null?void 0:b.isDaiEnabled();D.adDurationRemaining&&Z&&(b=g.Q(D.adDurationRemaining,L5r))&&(this.adDurationRemaining=new ya(this.api,this.layoutId,this.interactionLoggingClientData, this.w9,this.V,L.videoAdDurationSeconds,!0),g.T(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.T.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.CV(this.T),this.adDurationRemaining.init(Of("ad-duration-remaining"),b,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));D.visitAdvertiserLink&&(L=g.Q(D.visitAdvertiserLink,HR3))&&(this.visitAdvertiserLink=new fF(this.api,this.layoutId, this.interactionLoggingClientData,this.w9),g.T(this,this.visitAdvertiserLink),this.visitAdvertiserLink.CV(this.T),this.visitAdvertiserLink.init(Of("visit-advertiser-link"),L));D.adDisclosureBanner&&(D=g.Q(D.adDisclosureBanner,hIr))&&(this.adDisclosureBanner=new jU(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,this.adDisclosureBanner),this.adDisclosureBanner.CV(this.V7),this.adDisclosureBanner.init(Of("ad-disclosure-banner"),D));this.W=new os(this.api,this.V,k,!0);g.T(this, this.W);g.mH(this.api,this.W.element,4);this.show()}; qS.prototype.clear=function(){this.hide()};g.I(fZD,Zq);g.y=fZD.prototype; g.y.init=function(w,D){Zq.prototype.init.call(this,w,D,{});if(D!=null&&D.title)if(w=D.title)if(this.headline.init(Of("ad-simple-attributed-string"),new Ux(w)),w=g.Q(D.moreInfoButton,J2)){if(this.moreInfoButton.init(Of("ad-button"),w),D.descriptions)D.descriptions.length>0&&(w=D.descriptions[0])&&(this.T=new x0(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,this.T),this.T.CV(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(Of("ad-simple-attributed-string"), new Ux(w))),D.descriptions.length>1&&(D=D.descriptions[1])&&(this.V=new x0(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,this.V),this.V.CV(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.V.init(Of("ad-simple-attributed-string"),new Ux(D)))}else g.HL(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.HL(Error("No headline found in AdGridCardText."));else g.HL(Error("No headline found in AdGridCardText."))}; g.y.onClick=function(w){Zq.prototype.onClick.call(this,w);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.y.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var w;(w=this.T)==null||w.clear();var D;(D=this.V)==null||D.clear()}; g.y.hide=function(){this.headline.hide();this.moreInfoButton.hide();var w;(w=this.T)==null||w.hide();var D;(D=this.V)==null||D.hide();Zq.prototype.hide.call(this)}; g.y.show=function(){Zq.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var w;(w=this.T)==null||w.show();var D;(D=this.V)==null||D.show()};g.I(r7,Zq);r7.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});if(D!=null&&D.gridCards)if(D.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.HL(Error("Only single column style is currently supported in AdGridCardCollection."));else for(w=g.x(D.gridCards),D=w.next();!D.done;D=w.next()){if(D=g.Q(D.value,d1B)){var M=new fZD(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,M);M.CV(this.element);M.init(Of("ad-grid-card-text"),D);this.T.push(M)}}else g.HL(Error("No grid cards found in AdGridCardCollection."))}; r7.prototype.show=function(){for(var w=g.x(this.T),D=w.next();!D.done;D=w.next())D.value.show();Zq.prototype.show.call(this)}; r7.prototype.clear=function(){this.hide();for(var w=g.x(this.T),D=w.next();!D.done;D=w.next())D.value.clear()}; r7.prototype.hide=function(){for(var w=g.x(this.T),D=w.next();!D.done;D=w.next())D.value.hide();Zq.prototype.hide.call(this)};g.I(eb,Q9);g.y=eb.prototype;g.y.init=function(w,D,M,L,Z){Z=Z===void 0?0:Z;Q9.prototype.init.call(this,w,D,M,L);this.playerProgressOffsetMs=Z;JS(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Ez.bind(this));this.api.addEventListener("resize",this.DN.bind(this));this.api.kd()?(this.V=!0,this.api.Qm(!0),this.show()):this.hide()}; g.y.p7=function(){if(this.T){var w=this.T.getProgressState();w&&w.current&&!this.V&&1E3*w.current>=this.playerProgressOffsetMs&&(this.V=!0,this.api.Qm(!0),this.show())}}; g.y.sM=function(){this.V&&this.api.Qm(!1);this.hide()}; g.y.clear=function(){this.api.Qm(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ez.bind(this));this.api.removeEventListener("resize",this.DN.bind(this));zL(this);this.hide()}; g.y.hide=function(){ql7(!1);Q9.prototype.hide.call(this)}; g.y.show=function(){ql7(!0);Q9.prototype.show.call(this)};g.I(rxB,eb);g.y=rxB.prototype; g.y.init=function(w,D,M,L){if(D!=null&&D.adGridCardCollection)if(D!=null&&D.adButton){var Z=Number(D.playerProgressOffsetMs||"0");isNaN(Z)?eb.prototype.init.call(this,w,D,M,L):eb.prototype.init.call(this,w,D,M,L,Z);w=D.headline;M=g.Q(D.adAvatar,Sb);w&&M?(this.headline=new x0(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,this.headline),this.headline.CV(this.Z5("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Of("ad-simple-attributed-string"),new Ux(w)), this.adAvatar=new v9(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,this.adAvatar),this.adAvatar.CV(this.Z5("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Of("ad-avatar"),M)):this.D.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");w=g.Q(D.adGridCardCollection,iRQ);this.adGridCardCollection.init(Of("ad-grid-card-collection"),w);D=g.Q(D.adButton,J2);this.adButton.init(Of("ad-button"),D); this.hide()}else g.HL(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.HL(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.y.onClick=function(w){(this.adButton&&g.Ug(this.adButton.element,w.target)||this.adAvatar&&g.Ug(this.adAvatar.element,w.target))&&this.api.pauseVideo();eb.prototype.onClick.call(this,w);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.y.DN=function(){}; g.y.clear=function(){this.hide();var w;(w=this.headline)==null||w.clear();var D;(D=this.adAvatar)==null||D.clear();this.adGridCardCollection.clear();this.adButton.clear();eb.prototype.clear.call(this)}; g.y.show=function(){var w;(w=this.headline)==null||w.show();var D;(D=this.adAvatar)==null||D.show();this.adGridCardCollection.show();this.adButton.show();eb.prototype.show.call(this)}; g.y.hide=function(){var w;(w=this.headline)==null||w.hide();var D;(D=this.adAvatar)==null||D.hide();this.adGridCardCollection.hide();this.adButton.hide();eb.prototype.hide.call(this)}; g.y.Ez=function(w){w==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):w==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):w==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))};g.I(Xw,Zq); Xw.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});if(D.attributes===void 0)g.HL(Error("No attributes found in AdDetailsLineViewModel."));else if(D.style===void 0)g.HL(Error("No style found in AdDetailsLineViewModel."));else{w=g.x(D.attributes);for(var M=w.next();!M.done;M=w.next())if(M=M.value,M.text!==void 0){M=M.text;var L=D.style,Z=new x0(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,Z);Z.CV(this.element);a:switch(L){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":L="ytp-ad-details-line__text--style-responsive"; break a;default:L="ytp-ad-details-line__text--style-standard"}Z.element.classList.add(L);Z.init(Of("ad-simple-attributed-string"),new Ux(M));this.T.push(Z)}this.show()}}; Xw.prototype.show=function(){this.T.forEach(function(w){w.show()}); Zq.prototype.show.call(this)}; Xw.prototype.clear=function(){this.hide()}; Xw.prototype.hide=function(){this.T.forEach(function(w){w.hide()}); Zq.prototype.hide.call(this)};g.I(Ts,Zq);Ts.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});var M,L;(w=((L=p_(((M=D.image)==null?void 0:M.sources)||[]))==null?void 0:L.url)||"")&&w.length?(M=this.Z5("ytp-image-background-image"),g.Qv(M,"backgroundImage","url("+w+")"),D.blurLevel!==void 0&&g.Qv(M,"filter","blur("+D.blurLevel+"px)"),D.gradient!==void 0&&(D=new g.J({Z:"div",Yt:["ytp-image-background--gradient-vertical"]}),g.T(this,D),D.CV(this.element)),this.show()):g.HL(Error("Failed to get imageUrl in ImageBackground."))}; Ts.prototype.clear=function(){this.hide()};g.I(es1,Q9);g.y=es1.prototype;g.y.init=function(w,D){Q9.prototype.init.call(this,w,D,{});g.Qv(this.L,"stroke-dasharray","0 "+this.V);this.show()}; g.y.clear=function(){this.hide()}; g.y.hide=function(){zL(this);Q9.prototype.hide.call(this)}; g.y.show=function(){JS(this);Q9.prototype.show.call(this)}; g.y.sM=function(){this.hide()}; g.y.p7=function(){if(this.T){var w=this.T.getProgressState();w!=null&&w.current!=null&&g.Qv(this.L,"stroke-dasharray",w.current/w.seekableEnd*this.V+" "+this.V)}};g.I(uv,Zq); uv.prototype.init=function(w,D){Zq.prototype.init.call(this,w,D,{});if(T37(D)){this.adAvatar=new v9(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,this.adAvatar);this.adAvatar.CV(this.Z5("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Of("ad-avatar"),g.Q(D.adAvatar,Sb));this.headline=new x0(this.api,this.layoutId,this.interactionLoggingClientData,this.w9);g.T(this,this.headline);this.headline.CV(this.Z5("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(Of("ad-simple-attributed-string"),new Ux(D.headline));if(w=g.Q(D.adDetailsLine,W5Z))this.detailsLine=new Xw(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,this.detailsLine),this.detailsLine.CV(this.Z5("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Of("ad-details-line"),w);this.adButton=new c9(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,!0);g.T(this,this.adButton); this.adButton.CV(this.Z5("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Of("ad-button"),g.Q(D.adButton,J2));this.adBadge=new Nz(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,!0);g.T(this,this.adBadge);this.adBadge.CV(this.D);this.adBadge.init(Of("ad-badge"),g.Q(D.adBadge,Qb));this.adInfoButton=new TL(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.element,void 0,!0);g.T(this,this.adInfoButton);this.adInfoButton.CV(this.D); this.adInfoButton.init(Of("ad-info-hover-text-button"),g.Q(D.adInfoRenderer,kF),this.macros);if(w=g.Q(D.skipAdButton,U1Z))this.skipAdButton=new B9(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,this.skipAdButton),this.skipAdButton.CV(this.element),this.skipAdButton.init(Of("skip-button"),w);this.V=new $0(D.durationMilliseconds);g.T(this,this.V);if(w=g.Q(D.countdownViewModel,NE3))this.T=new es1(this.api,this.layoutId,this.interactionLoggingClientData,this.w9,this.V),g.T(this, this.T),this.T.CV(this.Z5("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.T.init(Of("timed-pie-countdown"),w);if(D=g.Q(D.imageBackground,$1S))this.imageBackground=new Ts(this.api,this.layoutId,this.interactionLoggingClientData,this.w9),g.T(this,this.imageBackground),this.imageBackground.CV(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Of("image-background"), D);this.show();this.element.focus()}}; uv.prototype.clear=function(){g.NA(this.L);this.hide()}; uv.prototype.show=function(){XQr(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Zq.prototype.show.call(this)}; uv.prototype.hide=function(){XQr(!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.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();Zq.prototype.hide.call(this)};g.I(zs,g.mI);g.y=zs.prototype;g.y.KK=function(){return 1E3*this.api.getDuration(this.LS,!1)}; g.y.stop=function(){this.T&&this.handler.gt(this.T)}; g.y.M$=function(){var w=this.api.getProgressState(this.LS);this.V={seekableStart:w.seekableStart,seekableEnd:w.seekableEnd,current:this.api.getCurrentTime(this.LS,!1)};this.publish("h")}; g.y.getProgressState=function(){return this.V}; g.y.B6=function(w){g.Y0(w,2)&&this.publish("g")};var KMl="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.I(Vb,fb); Vb.prototype.L=function(w){var D=w.id,M=w.content,L=M.componentType;if(!KMl.includes(L))switch(w.actionType){case 1:w=this.api;var Z=this.w9,k=M.layoutId,b=M.interactionLoggingClientData,C=M instanceof cS?M.jO:!1,l=M instanceof cS||M instanceof hP?M.Nl:!1;b=b===void 0?{}:b;C=C===void 0?!1:C;l=l===void 0?!1:l;switch(L){case "invideo-overlay":w=new kDZ(w,k,b,Z);break;case "player-overlay":w=new nm(w,k,b,Z,new zs(w),l);break;case "player-overlay-layout":w=new qS(w,k,b,Z,new zs(w));break;case "survey":w= new Gs(w,k,b,Z);break;case "ad-action-interstitial":w=new wQ3(w,k,b,Z,C,l);break;case "video-interstitial-buttoned-centered":w=new uv(w,k,b,Z);break;case "survey-interstitial":w=new se(w,k,b,Z);break;case "ad-message":w=new hsl(w,k,b,Z,new zs(w,1));break;case "player-underlay":w=new $Zs(w,k,b,Z);break;case "display-underlay-text-grid-cards":w=new rxB(w,k,b,Z,new zs(w));break;default:w=null}if(!w){g.jn(Error("No UI component returned from ComponentFactory for type: "+L));break}g.l1(this.components, D)?g.jn(Error("Ad UI component already registered: "+D)):this.components[D]=w;w.bind(M);M instanceof aH?this.V?this.V.append(w.UX):g.jn(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(w.UX);break;case 2:D=u7k(this,w);if(D==null)break;D.bind(M);break;case 3:M=u7k(this,w),M!=null&&(g.M9(M),g.l1(this.components,D)?(M=this.components,D in M&&delete M[D]):g.jn(Error("Ad UI component does not exist: "+D)))}}; Vb.prototype.oJ=function(){g.Ls(Object.values(this.components));this.components={};fb.prototype.oJ.call(this)};g.I(Sls,g.xX);g.y=Sls.prototype;g.y.create=function(){try{QSr(this),this.load(),this.created=!0,QSr(this)}catch(w){Zg(w instanceof Error?w:String(w))}}; g.y.load=function(){try{VPP(this)}finally{KC(NS(this.T).xu)&&this.player.F6("ad",1)}}; g.y.destroy=function(){var w=this.player.getVideoData(1);this.T.T.O_.EM(w&&w.clientPlaybackNonce||"");this.unload();this.created=!1}; g.y.unload=function(){g.xX.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(D){Zg(D instanceof Error?D:String(D))}if(this.V!=null){var w=this.V;this.V=null;w.dispose()}this.L.reset()}; g.y.UM=function(){return!1}; g.y.getAdState=function(){return-1}; g.y.getOptions=function(){return Object.values(OpZ)}; g.y.LJ=function(w,D){D=D===void 0?{}:D;switch(w){case "replaceUrlMacros":return w=D,w.url?(D=WCZ(this.player),Object.assign(D,w.MyW),w=g.j3(w.url,D)):w=null,w;case "onAboutThisAdPopupClosed":this.gf(D);break;case "executeCommand":w=D;w.command&&w.layoutId&&this.executeCommand(w);break;default:return null}}; g.y.Fr=function(w){var D;return!((D=this.T.T.QZ)==null||!D.get().Fr(w))}; g.y.gf=function(w){w.isMuted&&R9I(NS(this.T).X8,NS(this.T).VW,w.layoutId);this.D1&&this.D1.gf()}; g.y.executeCommand=function(w){NS(this.T).w9.executeCommand(w.command,w.layoutId)};g.mC("yt.player.Application.create",g.d$.create);g.mC("yt.player.Application.createAlternate",g.d$.create);BzG(ID(),P4s);var m3l=g.w3("ytcsi.tick");m3l&&m3l("pe");g.Uc("ad",Sls);g.I(g.KF,g.X);g.KF.prototype.start=function(w,D,M){this.config={from:w,to:D,duration:M,startTime:(0,g.IC)()};this.next()}; g.KF.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.KF.prototype.next=function(){if(this.config){var w=this.config,D=w.from,M=w.to,L=w.duration;w=w.startTime;var Z=(0,g.IC)()-w;w=this.T;L=TIK(w,Z/L);if(L==0)w=w.G;else if(L==1)w=w.U;else{Z=uL(w.G,w.W,L);var k=uL(w.W,w.Y,L);w=uL(w.Y,w.U,L);Z=uL(Z,k,L);k=uL(k,w,L);w=uL(Z,k,L)}w=g.X4(w,0,1);this.callback(D+(M-D)*w);w<1&&this.delay.start()}};g.I(g.m7,g.J);g.y=g.m7.prototype;g.y.hasSuggestions=function(){return this.suggestionData.length>0}; g.y.AL=function(){this.V&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.y.show=function(){g.J.prototype.show.call(this);wDZ(this)}; g.y.OC=function(){this.V&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.y.U_=function(){this.EB(this.api.qd().getPlayerSize())}; g.y.EB=function(w){var D=this.api.isEmbedsShortsMode()?.5625:16/9,M=this.api.x9();w=w.width-(M?112:58);M=Math.ceil(w/(M?320:192));var L=(w-M*8)/M;D=Math.floor(L/D);for(var Z=g.x(this.T),k=Z.next();!k.done;k=Z.next())k=k.value.Z5("ytp-suggestion-image"),k.style.width=L+"px",k.style.height=D+"px";this.suggestions.element.style.height=D+"px";this.D=L;this.G=D;this.containerWidth=w;this.columns=M;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.A2(this)}; g.y.onVideoDataChange=function(){var w=this.api.X(),D=this.api.getVideoData();this.W=D.yZ?!1:w.D;this.suggestionData=D.suggestions?g.ox(D.suggestions,function(M){return M&&!M.playlistId}):[]; McS(this);D.yZ?this.title.update({title:g.M0("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:D.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.y.scrollTo=function(w){w=g.X4(w,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.Y.start(this.scrollPosition,w,1E3);this.scrollPosition=w;g.A2(this);wDZ(this)};})(_yt_player);