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 */ /* (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). */ /* 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 */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var K="slice;split;match;push;forEach;set;assign;T;//;path;signatureCipher;call;;url;undefined;X;V;%3D;sp;&;length;QD;get;\\.a1\\.googlevideo\\.com$;clone;youtube.player.web_20251102_21_RC00;prototype;fromCharCode;,;rr;n;N;indexOf;/;K8;join;reverse;Uw;https://local;false;scheme;playerfallback;1;s;W8;startsWith;AQ;mn;cmo;:;?;fvip;index.m3u8;/videoplayback;unshift;9;www.youtube.com;=;pow;toString;\\.googlevideo\\.com$;splice;Untrusted URL;local;1969-12-31T20:01:19.000-04:00;1969-12-31T16:45:48.000-07:15;LV;/initplayback;rr?[1-9].*\\.c\\.youtube\\.com$;redirector.googlevideo.com;---;1969-12-31T22:35:38.000-01:30;cmo=;1969-12-31T22:17:05.000-01:45;td;1969-12-31T19:54:04.000-04:00;replace;file;fallback_count;Goc9HS;true;BaaoPHk4dYAqp8B1eD-_w8_;r;/api/manifest;1969-12-31T20:31:12.000-03:30;://;1969-12-31T12:46:13.000-11:15;cmo=td;pop;1970-01-01T04:00:03.000+04:00;S;1969-12-31T12:15:32.000-11:45;1970-01-01T07:00:31.000+07:00;/file/index.m3u8;a1.googlevideo.com;http://local;cmo=pf".split(";"), $n3,ZQQ,yPe,liT,sfU,qn,KY7,YU,Dnj,hP,G3,z3,q8f,sG,Lh,Tc,oUe,P78,Jg,Qfi,Y8U,jf8,V7,NK7,xm,hjQ,Rv,uO,EUY,bO,cP3,mt,vUi,Ii3,fi7,APU,WYp,hV,ck,g4,b9,iQU,Hk,n3,upU,bQn,XTU,zji,toT,dnY,BKf,DW,nmp,p3,gt,lz3,mGT,K1o,L13,POQ,a1,pz,qA,TE,o1,Jg8,QvP,SGi,jvj,NUo,VY,hdi,Agf,W1P,rgo,Rd3,XW,M9,COe,nU,XxQ,mq,aF,zdo,LU,edY,E0,Mhf,c6,ntU,aB,yVQ,sS8,fU,aCe,Kt7,gk,Lt8,eK,MP,T4U,F9,otQ,JV8,sp,m0,jST,U$o,lX,hSi,PP,Yk,ICp,Up,Na,h5,fC8,AV3,WtK,fH,rn,iXY,t5,C97,BP,bXQ,n_,zSU,qK,wi,TQ,o6,QX,j7,NK,eSe,cO,vO,B4o,I6,WO,$T3,FXU, tL,y9Q,$W,lWQ,F0,sB7,aWK,Ds,DTU,pb,p88,QD,P6,qHi,TtP,o1e,P88,J93,QBK,YHn,jBP,UT8,fb,E1e,Aa,rg,O3j,c9j,R5,xTK,Gao,RIj,b2,X0,zf,FW,kW,g1i,H2,C83,no,lp,kaP,Ko,sy,eIQ,wa,H3f,PV,Btn,Qs,M_8,Yg,Sd,Zzn,FWT,yOT,s1K,xg,aXf,ip,up,Xl,fz,DAi,kg,ed,da,pB7,Mv,oeQ,Pbo,F1,sQ,mG,ai,JO8,YrK,UQ,SrY,NW,j1P,nH,Ii,UAp,N7Y,Wd,G2,EeP,uT,bT,Qp,OzP,CX,Bd,cO8,Va7,$2,n4,IXi,fXU,WWK,lt,mE,L4,qg,xAP,RDe,izY,Qz,Y2,u7Q,Ux,Ex,A6,WL,Gb,XB8,RK,C4,zDT,zb,taf,eD3,k2,qG,dJ,dAp,Mg,B73,$r,Ma8,$9e,Kj,noK,ZZK,Fl7,Lj,yqi,sdP,w5,m97,T$,KlP, QB,D98,Uh,KX,w03,dk,Eh,TVp,f7,oo7,QdY,Y7n,S7e,jd7,G$,g5,U0,OZe,Cj,v2,VTf,mTf,uP,Tj,b7,RF,Unp,Jf,uWK,bZ8,X0Q,tT8,HQ8,KXT,AO,Nh,hf,ON,BVo,MT7,x$T,ZUK,ymn,iJ,uJ,ld3,adi,bJ,HU,p6j,Mh,$L,dT,q03,c8,lM,Yqe,cU,mU,oAQ,DN,QF8,L5,qX,Ti,UGf,Y0o,S08,UPT,Q4,YL,EAf,AOj,OUp,cm3,VKK,fd3,AmQ,cQ,Wq7,JO,xPU,gAn,iUQ,CBY,l2,bUo,X6j,rd,zIn,S5,k0e,gd,iM,e6n,Bk8,ZH3,y5Q,Xk,gmU,l6f,tw,kL,ea,mao,et,a68,dd,K0K,Lb,pPe,L0P,p5,wPi,J53,p6,L6,QXY,Yp8,HV,jXf,Uap,h4e,OH8,Jd,Q1,VFY,hg,Uj,Xp,Ir,f6,GAY,ku,xr,uc,eA,wn,CXp,u9o,HM,BM,yZ, sT,Jm,z48,ax,tF7,KR,pR,kAK,LR,daQ,q6,BnU,ox,MF7,$KU,jy,UT,hR,nqj,Ix,fR,lJU,s6U,DKe,r1,xV,Gu,pOn,Qx,Rx,LAT,NG,qOn,kV,oqi,JL8,YGU,Q6Y,M6,$6,YO7,SOU,j67,UK7,Ym,Ft,O_K,se,j5,pM,LM,ALf,wQ,xKi,oc,P5,Jn,hG8,Ue,i_3,hn,Ccp,Oe,v5,b_f,XO3,zGT,G9,kQ8,uX,dK3,gQ,BiK,M7Q,$CP,Zbp,Xt,Fsp,z9,yae,$g,lsQ,fj,s5o,mCn,Ks3,nG,KH,l_,sP,aH,Dh,p2e,LG,Ts,oH,Qm,w2U,Q5K,Y2Y,S23,j5n,xx,EWT,Gs,X1,CG,Obi,b_,Lz,Ve8,eY,HN,d6,IsK,fs8,MO,C2i,u0Q,JL,kf8,HbY,yF,rQ,Meo,FJ8,Zs,s_U,mve,Db,rV,a_e,KJ7,Kv,pVj,LJj,qr,TX,A5,bY,Wy,JU,wVT,UX,Nr, hU,Ta7,ogU,pxn,xn,Q_i,Yyn,SyK,vS,UvU,LH,WS,VdQ,ri3,xvo,G5p,xb,C7j,R$,ggi,ulf,XVi,zyi,tde,hDi,Mr,Zk,dvn,Fo,Tk8,lm,nae,KL,ySp,Fk,siK,KWo,Pi,QJ,KGQ,eG7,DW3,MX,Us,LGi,qQe,Es,ci,wdi,oaQ,VJ,PT7,YQe,vi,k3,Bi,AS7,WGP,rSp,Zl,xWn,i7f,CT8,u1K,b7n,XdU,Dl,pE,k28,op,MZ,EX,wZ,P1,Qh,lV8,aVj,KEp,Dgf,v1,Ar,pLe,W1,LEK,GJ,qxp,wLo,uE,tY,TJ3,o2e,c5,PtY,zJ,tr,J6K,YxK,ez,Sxn,NJP,hrU,c6T,v2f,B1,hY,M8,IV8,$h,A6e,Ze,tR,xgT,Fj,lQp,y2,RrP,Cte,o7,RS,uFU,b4Q,XLY,Yh,C3,zrp,rPp,GE,kbQ,eri,Mfn,Ev,nrf,Zjp,cC,dw,FVo,yvY,s4Q,qv,KVe, wc,Ji,VF,Xj,zM,pJ3,g7,kh,MJ,HC,p7,qhY,D3,wJ7,T5e,BC,rV8,PPi,JvT,Q4K,Sho,fJo,UZf,ay,Dq,N5f,Lt,hUn,ErP,qV,Ipf,oy,Pc,TiU,rvp,G$e,KqK,U_,CP8,O_,cc,u6Y,vmP,Wc,k$3,eUo,Oof,HjP,xO,dZi,GU,MZi,$hp,nni,l3U,so3,mh8,a38,iz,Ct,bz,K4P,Z_,ig,Dh7,P2,pUe,tB,T9,Bc,L3,Lv,aW,L4T,KC,Twn,tO,WP,TUo,pC,LC,qp,Jf3,Qoj,PE,$u,SN7,Hd,SV,jV,Ua,Np,h2,Oa,ej8,lg3,AL,OWQ,Vv,Vsf,vnj,IW,I3K,Iy,Pk,xH,fzf,iWY,CJP,bj,t2,bWT,SK,zMU,tsj,i2,kjj,Qd,eMK,dL,HWQ,HO,FYf,Bwf,Mp,F2,Msf,Co,$Xi,sA,nLP,FUe,KO,lN7,GLQ,Zop,w0,Qw,Sx,DXU,UA,pQe,MG,qRK, hK,nv,wQK,IG,WW,r0,Jwn,YR8,Wk,j3K,g0,w6Q,hTY,dm,bn,O5Q,d9Q,cE,Gij,gLT,nD,bp,i5p,CM7,zTe,sR,tt8,ki8,eye,eTp,H57,dXj,pD,i4o,Z6e,o8,yd3,J_,Yw,jP,Ug,cwT,h_,Eg,KDi,Og,LDT,wMY,Jd3,Qrp,Sjo,Gf,jrU,U5T,ho3,A_,O67,WX,xw,VAY,i4,vuj,b4,Xr,II3,t_,fIQ,kw,eP,BX,GPj,RoY,guf,x2,pTp,i6p,CYP,Em7,mnp,b6T,qe,eoi,H6Q,WUT,wI,d58,oC,Eo,$6p,H8,yRi,lfU,DPi,m68,dt,vB,KSi,rI,ei,pyQ,Bb,YTo,lL,N13,hNQ,KK,P2Q,DH,fNU,By,or,pK,LK,qD,Nof,ap7,ffo,WSf,Nn,LlU,Sb,EY,VM,gVp,vG,C1,iRT,CRP,$gf,mx,AW,WG,Awo,$x,rW,Xyo,Rl,eNQ,HRK,Zb,d6K,My7, Xg,nf,Fxi,yq,l2e,a2U,mK,Kxo,Kf,pf,Ox,qen,DZf,oh,w5Y,JD,o68,jS,PHe,YeP,tV,TP,h5e,cnU,gw,Px,lH,I2T,GZ,pt,Rh,f2e,uk,bk,Ol,Io,rn8,eS,LYU,V4,c0,G98,Be,$M,CHp,X5p,z5U,e5f,dJo,RM3,$OT,nxn,sB,Fke,aa,y3K,lhK,Tt,mOQ,ahU,KkP,Pg,DOn,W8,pNQ,Lkf,Sk,NH,hJ,P_P,EB,OB,Rf,J3P,PcK,XH,AJ,vx7,xM,gq,IhY,by,rL,cio,A3e,U6f,r3T,tJ,Gso,FU,MW,RQo,gxQ,H6,sZ,In,abY,KTn,tKj,Ifo,qXY,r2,xE,Gr,Rn,iG,wSo,uG,Te3,$w,ob7,bG,JUj,xJ3,SX8,CZ,j$7,ibo,EbU,VvQ,wNU,mZ3,$Q,Z$,VP,WTp,rU7,xrQ,lA,REP,ivi,m$,Cfi,uvj,xOP,q0,bve,Dg,wC,yS,XSp,zE3,Tn, oI,kXT,V1,eEn,mS,BeY,MvY,n3U,Ud,ZLK,vb,ej,FK,kLf,Ak,lkU,mkp,Kef,RI,r5,gC,KAn,wyp,BA,jpP,ns,UkK,yfQ,k6,NmQ,Fh,vx,yg,E3Q,LSi,az,Ks,ps,OLQ,Ls,vtf,w2,v3P,cg,oz,AY7,Pl,JA,Qg,I8,rYK,xkQ,Goj,YF,wiU,g3o,hA,gnT,uoT,O$,cl,zoo,zbK,koK,Iz,fs,tYP,Mpf,RN3,iGe,n5e,ZEi,r$,g$,llK,iS,sqo,uS,w1Y,aG,zH,dW,Jw,TZe,PEQ,HUP,Hl,d$,Sne,Yr,Ra,Bl,Mm,La,WB,Gd,Ps,iHP,E5o,OEK,SRQ,wr,VzY,fle,Ar3,WiT,RAY,SR,iEf,lY,uKP,j0,X1n,hT,EN,rf7,EU,ff,OU,cH,kJn,vH,IO,eAT,rRP,WH,rr,mW,BZp,MzP,$7n,LE,Z1e,aep,ge,Ci,uu,K2o,caQ,D7n,pC3,qvf,oh3, Wxp,dr,Ms,Q7U,$7,YvQ,U7Y,T73,Pg7,Ehj,Vqj,vh3,$Zj,NZ,n6,fe3,AIj,FM,Dw,W28,rIi,x7Q,yU3,kQ,qw,ghT,w9,i1P,uj7,u8,h_7,Q8,U9Y,SD,jD,U5,yY,Nw,hX,E5,H1f,d77,Bci,Mqj,$Vj,HXU,ZtT,gV,F33,yBe,v1Y,fVj,aqU,vu,ke,IM,DVn,utU,r9,pcK,dq,SZ,PzY,EOp,r9Y,Otn,Nc,gOf,dK,V_,Oo,yA,jT,l1,t0Y,sS,Hto,jp,dVY,wxT,BFQ,zs,M0i,$p7,QM,D8,LT3,ur,y23,LV,sW3,wz,mpe,Pp,JE,Dp3,pEf,L7P,j_o,qao,$4,wEj,TL8,Ado,Un,Pjo,Yy,ju,Nb,D_,GA,VfP,nb,ES,cp,VA,OX,jio,oA,IA,tX,Saj,Gl,u1,fvP,xp8,ZC8,Hs,bf,tE,RHP,eu,gHQ,FJ,iCK,lT,Mb,n9,uJK,W3T,jR,ZB,Z7, zHP,ls,s4,R_,Rd,m6,aJ,tVj,P9o,kRY,iY,oJ,EO,Si,Js,dpe,oM,ZOi,FQ3,yKf,ZR7,lZP,hi,S4,sGP,U2,m2n,Jk,aZ7,U4,KQU,D2T,NY,Sm,Gfo,VR,vD,lF,LQU,wWe,ZZ,IJ,YPj,rb,v6Y,Gv,RJ,is,wOT,JKe,aq,QGT,YAi,SAi,kc,jGT,Vi,OOQ,BW,cKj,Nk,jqT,Vx3,vNQ,IZ3,fZ3,AKK,eZQ,YA,rKK,LL,lK,Bk,x28,Rz8,iOi,Cnn,q3,neY,TW,oP,zzP,QG,OA,zQY,j4,$c7,EP,ZDj,Vm,Fyp,Um,lcK,s8K,wJ,n6p,Om,BV,acf,KyK,VG,pXK,Il,wXj,TDi,owe,Yge,Vtn,UcP,vbP,Xcj,NDY,h9U,c_T,$JP,VPo,A_K,RP,r_e,R9Q,gwo,XB,iDY,oK,gE,Cr,uK,C48,Ws,ure,bK,vLY,Xd,tPo,eL,X6,H7,XE,HDp,dcQ,BDe,MP8, Os,pr,$eo,FzK,y0p,Bg,C$,meo,n8,wo,a08,Ng,MA,Kzf,s$U,qoU,J0f,kH,SoY,yx,Uee,NIe,J28,p0,EKf,H5,L8,c03,qN,Vi3,jZ,A0e,xeK,lXK,RPP,Df,gKQ,IC,Cr3,z2,Xbp,J8,Yd,Ta,tiY,jC,ePn,Ha7,de7,NN,Ed,BIe,YS,p03,SL,E6,O6,cR,Min,$Di,hm,nXf,crp,f8,ZKT,TJ,aHo,T3,ZM,EH,i0,K9K,sCp,qYY,b0,wGi,kd,Fx,n1T,$PK,s5,IbQ,TWU,oXp,QO,dP,PLK,YYK,DaK,$C,Ove,T_,vH3,UDU,Z5f,qso,wU,X9,Vbp,sf,a9,vXe,IHP,fH3,JB,AWp,OT,DF,sm,W9T,oWU,k5T,xDT,qo,G_K,wcf,m7,Sa,RlP,cWe,wS,TO,xk,iKo,P$,h0,Jl,ugj,Pd,YC,bKT,SJ,XJP,jJ,XGo,hl,bbT,ngp,D67,JS,ele,c$,X2K, zU,HKP,dD3,Wb,shT,Cg,mFK,hr,h9,Xi,DF7,tl,kC,eJ,peo,LKo,H$,dS,B$,tmj,Ty8,Pkf,$P,JDo,b13,Slj,LWU,l5,sk,pn,cYn,YM,QY,qu,ws,Th,UFp,xh,E43,So,vL,CQ,cD8,zc,v47,PD,J$,Qt,fBo,jE,Uk,tm,Ok,c4,RSf,WK8,B5Y,rqT,Igi,IV,fn,ZQ,A$,T7,GZ7,ph,iff,tD,xP,bx,uZ3,qW,P7,bf7,RV,Xee,kZe,Lxn,i5,mVY,nW,Cn,gJ,Ka,eFo,Hf7,$f,dFe,X$,u7,bhi,ByP,zh,kP,MSj,drj,$HQ,qjp,f3,ds,ZFQ,gs,AfY,Fhn,PS,rmj,yJY,lt3,saP,mHi,E4,ux,jv,KhU,AD,sK,zPo,DHQ,mu,gD,yg8,um,LhQ,DR,pl,d9,lbY,I_,Q5,Jv,ky,QCn,NV,SO,kUP,l0p,Ll,Pyf,eQe,c9,V5,v9,Qa7,Hu,SBU,UHj, Ye,di,Nqf,rD,sKP,EMj,uI,OFf,vwj,sU,vC,ftT,WhT,cW,Q6,b5Q,xHj,Gtn,H9,iFo,dM,B9,ol,$B,nq,bFe,Leo,zcj,tki,kto,QWj,M5,ece,HFT,i1,dHe,BqK,lZ,Mkj,Kh,KZ,$le,eO,L2j,m8,xc3,yQi,aZ,l4,Do,q1,TB,hHY,oZ,QU,YB,SX,La7,N1,aNT,wsP,T2K,O9,y6,VU,Aq,lqQ,PG7,IZ,fq,JQi,wL,Qnp,r3,BO,SZ8,GB,RZ,g3,iZ,jnK,GH,uZ,Ulf,O0P,cQp,OS,n1,Z0,xF,Bw,M1,g9,IjP,nP,fjp,e9Q,Wa8,na,uIp,js,hk,md,aj,Gri,bb,gE8,Dz,CG3,uUn,xC7,b07,zpP,tjo,Dr,dF,pP,Y1,H0P,qB,dlT,Tk,Zf,M2,MjT,OP,BE,$03,oj,P_,J7,F$7,td,ykK,Zf8,l$o,sIj,pWj,$vi,m0j,STK,ZL,m9,dOe,Jq, dGQ,EC,eE,a$n,K$e,qdf,P0,FN,SvT,ToP,ti,TCK,oQU,al,Yd8,jIe,Ij,NCQ,t$,Mu,fg,Rb7,cke,I$8,bU,Vt,zk,W$e,fv,fL,mD,t7,Xq,rke,x0f,Gn8,xd,W9,eU,b$f,kF,z8U,Sq,tMp,YH,$l,Iq,H$p,bjK,LF,nN,ZY,nb7,d03,lC,NQP,vl,nFY,wb,vc,E2,rs,I3,us,FH8,D5o,jFj,yAi,au,Ul,Nt,Tr,HzP,CL,jzT,N4,Cf,Um7,E3,OsP,Vr,Xy,lb,vm,vN,fN,fLj,WHY,Lf,Ac,xmU,Wm,oG,hB,R7o,GD,d3,EA,fWj,Ru,f0j,NVi,isT,Fl,Mc,J6,bC,B4,uhp,bsQ,zd,We,Xl8,z7o,zD,tnK,tc,kHK,e73,e9,Hsp,Xsn,BQ8,oLf,oKn,dj,t8,ZsK,l9n,sOj,msT,H_o,RO,a9K,KIi,FR,yV,T1T,b3j,LIf,$9,ym,sI,Moj,Nl, hyP,VjQ,Gi,sh,wHf,YE,IBn,Puf,Kk,JT7,O4,QO7,SUf,Lk,UN,UsY,TN,C6,Nrp,iaK,GM,DrT,Oi7,PU,tvP,Na3,U9,i7,VRe,OR,sH,rTe,jy3,uao,P8,em,RvT,gS8,Jx,ii7,Cu8,bio,cu,Fr,gn,Hb,tR3,C_,Ncj,evQ,Hi8,Y9,S$,z9p,jq,slU,jWY,NP,cZ,EHp,pj,$we,xZe,ar,vZ,N0Y,n7Y,bs,ZyY,yXj,sMU,mwK,awY,HQ,Ax,kdo,EnU,KFK,Dwo,WZ,Wz3,fl,zv,gR,aBY,Ge,e5,Ck,he,o7p,K3,PxY,JXY,Yf,QMo,EF3,orK,N9f,OO,k9,e$,EuQ,nC,yTU,dR,O4f,x$,BZ,cXf,v7o,fwe,nH7,GeU,rXf,xwU,nV,jL,Akj,FO,dWj,G7o,RkT,li,N3,CyT,Id,iyn,Kc,QS7,Vh,dwQ,f6p,B93,h67,MDe,hMn,$bT,b1,Dn,ny8,ZVP, FZi,pc,D$K,Lc,ag,yEU,qQ,l8Q,pq,h8,mbj,ZMe,Mti,zO,oe,SF,KZ8,nM8,pW,ppY,JH,LZ3,rao,Yj,qS8,ae,MT,Zw,lE,wpi,TzK,Z8,KW,IkU,s9,UbY,hH,wB7,NzK,tp,W4o,hx8,OL,oFT,Li,AEn,fhT,cf,RLQ,rEY,V6,xbe,uF,vf,GlQ,TcP,Rxe,Wf,rX,S0,xj,kl3,ap,Re,QiU,ex7,HV7,ma,Hf,h3,Nyi,mY8,fb8,zS,a7Q,K6p,lk,DYK,vSQ,L6j,q4K,Z3,wDn,kg3,P17,KaU,$T,Psj,Jse,BB,Y4f,L97,jJT,yo,hno,ESe,$n,mC,O9e,csK,at,I7U,f77,Aso,W6Q,rs8,wp,QAo,JQ,ln,uPK,te,Tp,Gvo,Ml,gcQ,uN3,nkK,jI,Ec,JE3,XX,MAj,b5,Vo,vK,t3,Pf,dYj,Rb,Bbp,I7,M4Y,$37,t0,Z9,XUY,Zvp,Au,RnP,rz,yr, yp3,lMo,kK,sPU,rp,VZP,xT,aMo,k9P,hs,Ap,gp,w7K,M$,i_,ofY,N2,X4,Ep,PKU,zp,kM,Jpo,Z1,cm,Ymf,p1,Smj,tu,yiQ,$e,jPf,kT,NEK,h2Y,tGQ,nh,Ef8,cV,Q$U,$F,Mj,WD,ioj,Gt,rpQ,dg,x33,ZT,GW3,Zo,ZH,FL,VL,yu,Hm,lV,s1,Z_f,mf,R28,rc,n4Q,gfT,iro,KB,DT,CKo,udT,uA,Ck7,Q3i,Qv,Qh8,jU,Yo,w8f,oL,z2j,FA8,tL7,thj,Hre,oW,Po,JF,d3e,leY,gy,BE3,kA,KV,SW,$Ne,ndj,Y_K,EQ,FD3,zr,Z8i,R1,Fg3,y88,VX,lD7,sRo,Kg7,nOj,CR,co,oMp,RTp,pRQ,Lg8,HZp,q67,V7Y,odT,P0Q,Dt,e4,rA,sn,KT,xY,QRj,Iz3,MK,PX,Y4,wbY,S6o,jRT,ELp,k68,YS3,ynK,Qpo,NPU,gA,hiK,CB,uV, TU,pH,dZ,iR,EdP,wM,O8j,PN,c8Y,lR,VCU,En,Ysj,vd3,zN3,IDp,Ftp,F2T,r8Q,yQ,gdQ,GS8,u2,XL,XF,b83,XRY,iC,eiQ,RC,H8K,jj,W4,XM,dNp,hFe,gNK,kN,BPY,S_T,iK,nC8,Zgj,tF,kY,wk,ylP,s9f,Ho,UNp,$AQ,dA,MI,DoU,lv,p$o,LM8,$D,fo,XG,qfY,w$3,oCU,Pvj,HA,YfP,Sfe,cff,j9f,yP,rR,jcP,DX,VQ,NSj,iZ7,r27,oX,hef,cle,Z4,Sqj,Fw,za,IMU,VJn,fpP,yk,KE,vCY,IF8,NQ,iM7,kS,fFn,la,WMT,oVU,UCQ,$1,aJ8,sE,cIe,r4,sJp,VoY,Rep,gCP,mn,B2e,Cv7,ebK,JW,a0,PM,uie,dT7,lx,nU8,o4Y,x9,bgn,X$U,ji,N$8,z_Q,ze7,eOK,Nm,Ggj,x8e,tJY,Kw,onK,ir,m38,JnY,kOn,eef,Itn, do3,Ma,mL,MJn,Znn,WC,qt,A2,lB,yR,Qq,pw,jb,ts,C_i,Lq,Kb8,w7,szY,cB,ad,D1,Dup,Ey,on,Lb8,t5n,PB,dkQ,tA,$O,oPe,Rio,GO,yE,J$o,oV,jVi,piT,h$Y,OnQ,nVK,og,c$Q,tf,Xk3,r0U,Fy,IU8,pgf,ukp,HE,syK,A$n,o0,go,Ghn,gP7,qBP,Er,khY,EV3,K0,LZ,du7,BsQ,mZ,TV,RA,Jo,ZlP,Fuj,jw,lRf,Cz,IL,mt7,NS,Kue,Dtf,wkQ,Bo,qK8,w9e,x1,SSp,K$,PIf,JhK,vQf,ho,BgK,vcY,xGe,YKe,vr,Uup,ex,SKf,$N,Utj,yN,EI8,Ppi,Olj,VS,AUU,wv,Ao,GK,fRU,uu3,YkY,G2i,WuT,Wr,ru,es,wUj,TFK,ZJ,CIT,GQ,kIQ,XK,HW,eKj,qkK,AK,Mnp,xXf,nBf,ZqY,F8o,yeP,xun,loe,sZ7,QHp,Ave,aoo, enP,I9,Lg,tH,TmK,pwf,L8U,wwY,ZR,oBK,ML3,PZp,OXU,ua,nF,bL,y1,Jei,m1,vM,QZp,Y9Y,mWe,km,yz,S93,Hvi,N3f,zvU,FG,gaU,aF3,Ej,ce3,hd,q2f,VXU,to,x1o,RuQ,OgU,Tx,kD,Tf,bu,ew,DGY,r57,cM,Ic,y$e,v$,qc,v6,gBK,T2,iqQ,MS,GO3,uyn,XY,bqo,lG,cU3,yJ,E7,Xwo,nKn,zu7,tXo,jW,kBp,xL,g6o,Hqp,d1U,B37,bOf,okU,Dp,n$j,$up,asT,RL,FdT,rt,y7P,Mde,lrU,qAQ,YQ,Kl,KdU,YI,DBn,fi,BK,Ld7,nB,Dc,w_j,rK,Tv7,o$o,qC,J7n,QjT,aN,aIT,Vw,krT,ZX,YC8,S$p,fB,XNP,Q_,v$p,Cs,Ke,XQ7,frf,O3,NkY,ihf,pe,iPY,Vg,ROi,e0,VZ,mg,bPY,Ch,BL,aRY,jlQ,mX3,Zr,X_Y,q$U, tUp,Xgp,Ql8,wN,EC7,SS,kk,Pw,nw,$4n,pZ,nli,ZNo,suf,m4T,aY7,KBj,joP,HH3,pmp,F8,ZWY,PF,dhT,DkT,wmK,hx,Oj,ol8,Se,PCU,Jc3,Que,Y3f,vVU,S3i,juY,SkQ,Zd,D$,hmY,Q3,Y8,mR,AX7,o9,EXp,AcT,hG,x4e,gP,qpf,Et,Ni,Ot,Rme,V3,XiP,glp,iN7,F0j,vF,IN,uD7,bNo,jai,XmQ,zmK,iV,t9p,ys7,kDn,AG,ZrY,pB,yLi,EkQ,emY,HNT,ST,ZN,d4p,pd8,IJo,zN,Bjo,DM,rN,JWn,M93,O0,jHP,Zk3,FLo,yxp,Or7,u$,sbK,w6,G4,q9,T6,Iu,GdT,jd,OjP,a5K,K7n,Eg3,r7,Oq7,$$U,ys,QJ8,Vpf,pZ8,xK,LLU,it7,qI8,o9e,UH,WXp,ZC,Jx3,Qb8,cAo,IB,YIi,SIT,jbU,S9,Gwo,Dj,E93,pM7,F9o,AJP, Hw,bVn,v9U,pSY,I5U,wd,bl,K3o,Axo,WLK,rxU,xij,BD,t7Y,Je,hZK,z4,Jh,gb,xN,gkj,Ui8,pN,NA,Qy,FS,hkU,Rff,g77,B2,g9P,ikT,PR,Sf,rj,$Wi,uRK,bkP,WFY,zfP,Mw,f9,t$3,kNe,HF,dN,Hkf,dio,OfQ,knK,gqT,fQp,XWe,M$T,$Q7,ZcK,cy,$X,Qxj,Vho,lnQ,$i,sei,mQY,zK,ann,fU3,Ro,nu,vw,YX,A57,oSp,Lpe,iU,gop,Lo,LX,Vk8,RM,TqT,I0,YLe,qlp,rhj,OI,nl,xl,iP,NXp,hRe,ET,dz,EjT,gX,DU,FmY,cHe,tzQ,VW7,Ns,vj8,vPe,xaP,nPo,Inf,r$7,GxQ,ya,iv,B7,le,dp,Zg,RRK,gji,iA,mi,bDf,Wo,ucf,bcY,o3,XfY,zRU,tW8,cw,kxp,eRT,oEP,PA,uG3,vk,jn,wZf,TD,Me,MW8,uB,s_,mln, ZTo,yuP,mN,W7,NTQ,st7,UJn,f5,BSi,Ku,D5,CA3,a1o,gz,DI,KCi,DjU,Xn,pKK,cVK,Q18,k8,pu,qco,wKe,oTe,mQ,CD,cLn,Qt3,Yci,ScQ,Yhn,A77,pff,jtn,Uj8,Lu,Npe,lr,ETe,OT3,cu7,w_,VIe,I1P,jx,Ca,TI,AuY,WCi,xje,AiK,RVY,cb,Pe,IWi,pa,VVp,R9,XKU,SU,Pa,JM,Qa,e48,o33,kpn,tx,Lsp,lP,tT,eVo,JY3,dI,ah,fM,BpQ,Q87,$Ij,VUY,lTe,sL3,j8,mI3,oO7,Kfj,NdY,DIi,M7,CbQ,TM,QV,qS,WE,cpQ,JG,FG7,Ane,ot,Lf7,hM,qqT,oYj,PV8,JFT,V8,Cq,QLP,kj,S1j,SM,va,L1,sxK,wT,mPU,jLe,UIT,PK,Fd,C9,NAU,EYi,OBj,qa,KLT,UE,uY7,T3p,q9i,q2,fa,PR3,Wa,vYe,PH,r_,Xc,ITQ, H0,yDQ,cq7,fTQ,Tu,gbo,Vd,f9P,j4T,A9Y,Xa,MKe,BXQ,GKQ,iBY,vEp,ADf,i97,CVT,XJ,muf,kl,Xo3,LW,zq8,Hy,BvQ,Ja,trf,eqi,fr,Rk,ml,BAo,AeQ,OKQ,g_,Pm,l1U,OPU,$Sf,cFT,ORo,ijf,NU,uBP,nDe,bv,s0,Zw3,$c,yWj,omj,BRn,FnT,yoQ,Mo,MOn,s0K,mSn,a4e,AT,KnQ,JI3,tIQ,qE7,m$Y,nf7,uY,F43,wrY,Jlf,Tui,bB7,W_,oD3,WQ,Pa7,Mi,ix,zZ,ie,Sei,Q0Y,JBQ,SE8,R4n,j07,Vyo,USp,YNT,Cu,Nuf,ajj,KHY,HoY,hX8,u0,OwK,rJ3,coT,Vwj,vDi,I4Y,Gk,TXj,Wn8,$b,roK,m1o,xSo,PSU,ug,GVn,RXK,Tw,WDf,WlQ,hW,Cao,UC,lLp,e8,CT,avT,twj,rS,MI7,LB,kVp,nIo,dSQ,Bue,hKK,Ha,tAf, Mwp,qGo,qL,NX,ue,d_,Ci3,B6,n8U,Ba,ML,x7,FRn,yGf,KN,sg8,lJ,zUp,De,vqQ,SY,Mt,sNT,mU8,np,zP,j9,LXK,KRf,Jc,Zv,DUP,VB,qt3,TNf,KF,F3,o87,fne,Pl3,GEU,n0,JG7,R5e,hC7,OY,v0,E83,Oen,cGj,$k3,aL,yp,GD3,lYp,as,v8T,m4,IO8,bI,CjU,lI3,P9,Mbo,TMf,Lmj,cJT,rGU,pp,lUK,yFT,Spe,G4Y,Lp,qZQ,yh,RCo,sd,g8o,Vnn,cN,Cli,Tp3,a7,wG,Am,YN,$oQ,g6,XFQ,zC8,t1o,Al,Rq,U47,XI,k4U,eCo,ZK,br,Heo,W$,OE,Ty,sC,hE,vV,c3p,dUK,J_U,hI7,M13,os,MB,N4p,R_j,BH,Av,niQ,CFT,ZuQ,FN7,G7,bzQ,B5,Eq,bHP,Pb,Jr,lKK,aLY,Tr8,pk,JN,sk8,lu,j8U,cs,KNQ,TQj,CWP,vo, K6,cD,paj,pG,LNf,qFn,QT,UYp,waY,Y3,T_f,NZP,vaU,aO,oi7,zFP,$Gi,$d,St,qH,N$,MMK,fcQ,DZ,YFo,E7f,U3Q,Qu,TPo,SFi,jkp,G1,Kr,P4j,djK,igQ,ULU,rF,AaU,YXj,JMU,NN8,OuK,cMi,fC,jF,du,QQ,V8Y,BJ,sFj,viK,Xrf,o$,rrT,WNo,vrY,Rwn,hN,H4,QK7,Eu,nM,OK,H9f,dQT,Fg,giQ,q8,iu3,Ceo,Wl,Ju7,uef,o5,bue,XaY,hq,IQi,Jp,t8p,k1P,GRf,wV,ewQ,Hu3,dLP,B_f,y_,$zU,AGp,IKU,BN3,nGY,ZpQ,YP,Fo7,wP,yL,wCP,yNo,AX,A0,lE3,tI,ssf,mz3,zj,UY,Ou,nYf,f0,Nb3,que,ZaK,TGp,oG8,P6Y,mo,N6,$BP,ev,VmQ,hVf,Ete,wRj,dy,IH,vY,Yup,gv,Qb,NC,pbj,jsT,NG8,PW,hgY,OG7, MRQ,EGf,mh,wfU,cN3,hze,Dlo,xNQ,q73,VH7,bR,Fie,KM,en,Oc,Eon,WsY,Dci,IEj,fEY,pkp,b$,AN,YEe,ub,f1,wT7,Wop,u37,NnP,ME8,bpj,sce,wYT,qTY,Fi,XYp,zgU,E2o,WY,PfU,aij,Fpp,tHp,jH,kyo,Sn,egi,D6,$FU,HpP,HB,HCU,VW,BGj,eHp,gI,JSK,Dv,H_,Qgn,MHT,$dU,pln,xG,ARj,kn,nvU,GQ3,$sf,zAU,kE,F_o,yCp,Hr,rq,Ecj,mz,eC,H1,I_8,lui,xzK,sT3,k1,auo,aOi,ou,aA,hff,DdY,HEe,pYT,qY,uxf,qi7,DE,who,Gy,TB7,ovQ,y5,P3i,tCp,nWU,qCK,JCp,Pu,QTp,HcQ,Yie,EBf,jCp,Sip,gep,bop,Hw3,O1P,F6,pV,Udf,gG,NBp,ha8,dP7,Evf,of,cCY,ac,znQ,u5,azf,yHK,XH8,oi,hw8, fuU,wj,PYo,Gg,N0,qI,RR,voe,ACo,Op,b6,Fqj,y6T,eI,mI,PO,X7,HZ,PAj,F7,RaY,AM7,ZGT,Qyo,gv8,NO,idQ,Pmo,BR,tN,PBY,u5Q,q1o,bde,Ur8,XN,XhY,zhP,MGY,L$U,sr,S4f,Ef,ab,ni,Fe7,Oy,we,Xh,Br,PX8,wgj,O1,IR,eao,Z3P,Z$P,Nwe,ipK,Hd7,$rj,eH,BBQ,MB8,IRi,mDp,lg,dG,ns3,XCY,iT7,oHT,weo,laY,M88,$1f,k$,ILn,YG,u6,Fc,sQj,mMP,KOT,I9U,Fa,x8,uL,ouU,pIU,zl,zI,zt,pX,qwQ,Y5T,BY,TS8,CP,T8p,h6,t9,Nz,JRi,dC,s2,ee,H4Q,Sj,Ne,po,osP,Sp,zn,Mz,Dbe,nz,db,Phe,TTK,DMK,IP,Uv,YK,F4,tSU,mp,Rt,Ie8,UF,nd,Zu,wu7,GS,eR,cEK,jQ3,F5,N8T,hYT,C,EsT,OIe, ND,cz7,mof,Bx,Vci,vse,p7U,Ga,KU,v4,dse,d$Y,vBU,faP,yf,Iuf,xUe,WOj,l3,rz8,bLY,RY8,gsY,GHQ,zy,Uon,ven,QH,pue,Chi,Ur,ufj,bIo,VY7,eW,XIT,hJQ,xMo,zYP,Kn,O5,wX,eYn,dMQ,m_,INY,BWe,gWQ,A2K,B8n,Mcf,sVT,hAn,hqp,Hp,UpT,eJp,$EQ,$aK,beK,zwj,Cl,pFP,lAQ,SLe,sUY,Di7,GN,mE8,R7,aA8,Kjn,ar7,DE7,BN,ptU,Qc3,mJ3,nZ,tk,nji,HD,Ljo,w3,qJU,wt3,Odi,gYT,ZD,TYP,Vb,J4K,zg,Du,sc,Ze8,YJ3,yhP,M3,Fq,zJ3,jUo,UE8,pd,tK,Kq,NYU,h17,n5,wW,D0,yIK,mmo,q5,Dmf,Vy,UO,p9,MF,Z7o,xtj,V2,E0p,HK,Cp,OS8,foP,c4o,IaU,Ld,qd,IAp,Y7,ek,fAQ,A47,wB,Tm, oT,B1U,fp,U6,g0p,UL,Ph,iSP,mLU,mH,ien,Cde,teT,IYP,fZ,JC,LoY,usY,SE,GJn,Va,bSY,Xto,U3,y9,Qr,z1Q,tli,HMQ,dX,C$8,e1f,XXp,Tnn,HSf,aP,GYi,xC,PdT,dEU,g2,BYn,HH,sa,WA3,Mlp,zZe,DNi,EI,Yv,$qo,iF,FKf,kw8,tp3,$E,yy7,T$3,nSK,NeU,$G,ksn,aSj,z1,WR7,Kcp,yH,mjQ,pzp,HP3,ZYf,PG,UZ,PWi,qbf,SB,BCi,K_U,wzK,ThP,cgp,uy,Pw7,h7U,e_8,YbU,jKi,eb,lwT,Hh8,Sbi,p4P,D0K,ak,HGQ,fO,Rhj,WVK,K9,dD,a5,Stj,Nhi,ke7,htP,EzP,xW,k7,hC,pon,LHK,Bs,OYe,mB,WR,cyT,xsp,Ntj,TS,VNT,Bf,Cy,fYp,fSi,TR,WcK,ryf,m2,lHp,u2T,xqP,zXp,Rgo,Gzp,M4,Wei,XPP,rDT, SY8,kx,d1,Rtp,un,rM,gzj,I0o,F7n,iYT,dbY,oN,Kd,Lqf,Nv,z0,cG,kF8,Uz7,U2n,ubP,bYK,HTT,RG,Ky,rFQ,RqU,BMT,uHj,C6o,ch,jr,Ig,H7e,tNe,rE,Qo,AyT,PrP,kzP,Vf,US,mre,v7,Bhp,J2,od,cR3,e88,MNn,CW,WF,$_j,C8,nZp,Or,xF7,Kt,JN7,Frj,CzT,qU,cL,qye,hS,U1n,y1p,lxe,sYo,D3i,m_P,wIi,Tb,FD,ZhQ,Ng8,FE,axe,Kr3,KpP,MN,I6T,d2,icK,gte,ik,fd,KKQ,L37,Yl,D_8,Sw,ut,zR,nn,Ai,wAn,w3n,Tff,Vu,NRi,Pqp,Wh,Ri,C7,QYj,aX,FH,YVY,B6p,SVi,jYi,UVf,U_7,k4,DY,QQP,gGK,f38,xv,YtK,XU,qNT,BUK,Gm,DQ,Q2,zaP,QA,EZe,UQn,V3e,vZj,NMo,W0,wE,ycU,wA,L7,cS,IxU, fxp,PMe,eF,A1i,woK,q5i,bP,zlK,Wrp,VH,rOp,r1K,xLQ,jo,Uhe,D2,x_f,GG7,gZK,xY3,i2p,Cqp,rMi,uOU,An,Cw,z7,X3Y,t3f,nt,hEY,yy,ca,RT,vU,d_j,Jzf,DJ8,BfU,Io3,$I,uM,M37,md8,wF,iW,Vlo,npU,OhK,$o,Su,Zmp,F5P,rcU,gB,wlj,sDP,epT,L9,tU,N68,YZi,agU,c7K,r6,bT8,Gw,U8,tW,qr8,MU,K1,U0T,RB,DfY,y8,GyQ,ul,lBK,pqQ,L5Y,qDY,vy,th,kK7,Gp,eV,wq7,bB,ddY,mcK,swn,KP,V4n,Ww,LN,WQi,f4U,F18,TlP,qz,Ik,si,opo,lmo,PQK,He,JZK,FB,QUT,S8,bwf,Gcf,$S,vQ,u3,eXT,hs8,W7o,XD,Iqe,QDY,pGi,YDT,WIj,fT,K7,cvp,Gme,jDU,fOU,UfT,RcP,BoQ,p_K,o0P,CgQ,AlT, FSU,N_p,Oc3,h3e,JA8,VQT,qVT,Uy,d8P,V_U,vpe,b9U,N8,hLT,Imn,q4,AZT,RFj,b3,G8p,uwj,R33,spo,gp8,imK,U8T,CQf,SgU,pHK,FCn,bCn,HnK,bmp,XqU,z3Q,tZj,tQP,ilP,xe,i6,f57,WBe,Ae,e3K,G1Y,PUP,HmY,SsT,A9,pT,dfU,X7Y,Bli,FBo,jK,MQ8,qU7,zm,nz3,tC,gXo,ljp,Yof,v0i,ATT,QIY,rCY,n_e,Cwo,hO,nr,YUe,L0,rN7,mm,ki,EN7,tn,ZAp,jh,$fP,Ah,AoQ,BU,LP,ib,zV,yU,FPT,R4,bt,P4,ytp,gFi,lG8,Ea,XS,kv,WN,uz7,g2e,MYj,X3,UP,IT,snf,myj,Dse,s3Q,NL,JT,aGi,KP8,eq,AzY,DyP,kMj,b2P,oR,i$,yC,BG,AF,Cd,jY,uQp,LPT,AQP,hOQ,JPj,AQ,Hh,Fc3,VrY,tbT,O$n,iL7, SJT,BS,AS;$n3=function(n,Z,F){if(!n)throw Error();if(arguments.length>2){var y=Array.prototype.slice.call(arguments,2);return function(){var l=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(l,y);return n.apply(Z,l)}}return function(){return n.apply(Z,arguments)}}; ZQQ=function(n,Z){var F=0;nU8(n,function(y,l){Z.call(void 0,y,l,n)&&g.ye(n,l)&&F++})}; yPe=function(n,Z,F){var y=[];F=g.Y(F);for(var l=F.next();!l.done;l=F.next())y.push(FYf(n,Z,l.value));return y}; liT=function(n,Z,F){Z&&(n.j_=Z);F&&(n.y0=F)}; sfU=function(){}; g.l7=function(n,Z,F){for(var y in n)Z.call(F,n[y],y,n)}; g.Di=function(n,Z){n=n.split(".");Z=Z||g.KQ;for(var F=0;FZ+.02&&n.Xp("abh",{bh:Z,bhtls:F}),Z=Math.max(Z,F)));return Z}; Tc=function(n,Z,F){if(Z=wT7(Z)){Z=g.Y(Z);for(var y=Z.next();!y.done;y=Z.next())if((y=y.value)&&y.externalVideoId){var l=qG(n,y.externalVideoId);l.instreamVideoAdRenderer||(l.instreamVideoAdRenderer=y,l.JN=F)}else wU("InstreamVideoAdRenderer without externalVideoId")}}; g.ov=function(n,Z){Z=TK8(n,Z);var F;(F=Z>=0)&&g.ye(n,Z);return F}; oUe=function(n){var Z;return!((Z=n.webPlayerContextConfig)==null||!Z.enableSelfProfilingLogging)}; P78=function(n,Z){Px(n,1,Z.name);Px(n,2,Z.value)}; Jg=function(n){this.N=n}; g.Q7=function(n){if(!n||typeof n!=="object")return n;if(typeof n.clone==="function")return n.clone();if(typeof Map!=="undefined"&&n instanceof Map)return new Map(n);if(typeof Set!=="undefined"&&n instanceof Set)return new Set(n);if(n instanceof Date)return new Date(n.getTime());var Z=Array.isArray(n)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(n)||n instanceof DataView?{}:new n.constructor(n.length),F;for(F in n)Z[F]=g.Q7(n[F]);return Z}; Qfi=function(n,Z,F){var y;return(y=n.N)==null?void 0:Ym(y,function(){return jh(n,Z)},F,function(l){var m; if(n.N instanceof NG&&((m=Z.JY)==null?0:m.q3))try{var a;(a=n.cache)==null||JPj(a,jh(n,Z),l,Z.JY.MU,n.C-120)}catch(D){n.reportError(new hg(24,"ELX:write",D))}})}; Y8U=function(n,Z){return!!Z&&n.getAvailablePlaybackRates()[n.getAvailablePlaybackRates().length-1]<=2}; jf8=function(n,Z){Z?S8n.test(n):(n=g.EG(n),Object.keys(n).includes("cpn"))}; g.OG=function(n){return n&&n.parentNode?n.parentNode.removeChild(n):null}; V7=function(n){return n.adFormat&&(n.yg?n.adFormat!=="1_5":n.adFormat!="1_5")?"adunit":n.eventLabel||n.iY.w5}; NK7=function(n,Z){var F=globalThis.sessionStorage.getItem(n);if(!F)return["m"];try{var y=vx(F);Unp(y,Z)}catch(l){return globalThis.sessionStorage.removeItem(n),["c"]}for(Z=4;Z<7&&y[Z]===0;)Z++;for(F=0;F=F?(globalThis.sessionStorage.removeItem(n),["e"]):["a",new Uint8Array(y.buffer,Z+4)]}; g.rU=function(n){var Z=n.length;if(Z>0){for(var F=Array(Z),y=0;yZ?1:n=0})}; g.Uq=function(n,Z){if(!n||!Z)return!1;if(n.contains&&Z.nodeType==1)return n==Z||n.contains(Z);if(typeof n.compareDocumentPosition!="undefined")return n==Z||!!(n.compareDocumentPosition(Z)&16);for(;Z&&n!=Z;)Z=Z.parentNode;return Z==n}; hV=function(n,Z,F){if((n>>2&15)==3){for(var y=Z[K[1]](K[19]),l={},m=0;m>4>=1&&n-1<9&&(y=Z[K[32]](K[33],12),l=Z[K[32]](K[33],y+1),y>0&&l>0?(F[K[9]]=Z[K[0]](0,l),Z=Z[K[0]](l+1)):(F[K[9]]=Z,Z=K[12]),D=[Z]);if((n&58)==n){y=64;for(l=[];++y-l[K[20]]-32;){switch(y){case 91:y=44;continue;case 123:y=65;break;case 65:y-=18;continue;case 58:y=96;continue;case 46:y=95}l[K[3]](String[K[27]](y))}D=l}(n-1^27)>=n&&(n-4|68)>1<23&&n>>1>=16)for(y=Z[K[20]];y;)Z[K[3]](Z[K[61]](--y,1)[0]);return D}; ck=function(n){if(n!=null&&typeof n!=="boolean")throw Error("Expected boolean but got "+Eq(n)+": "+n);return n}; g.VO=function(n){var Z=typeof n;return Z=="object"&&n!=null||Z=="function"}; var G3f=function(n){return N$[K[11]](this,19,n)}; g4=function(n){vk.call(this,n);this.events=new g.IS;g.S(this,this.events);this.events.G(n,"applicationInitialized",function(){var Z={};for(fX=new Wk(Z.handleError===void 0?r4:Z.handleError,Z.logEvent===void 0?g.xt:Z.logEvent);GL.length>0;)switch(Z=GL.shift(),Z.type){case "ERROR":fX.iL(Z.payload);break;case "EVENT":fX.logEvent(Z.eventType,Z.payload)}}); RS(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));RS(this.api,"updateDownloadState",this.updateDownloadState.bind(this));RS(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));RS(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));RS(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));RS(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));RS(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; b9=function(n,Z){var F=F===void 0?i9:F;return new CX(n,Z,F)}; iQU=function(n){try{var Z=n.split(",");return Z.length>g.XP(Rjo).length?null:zL(Z,function(F,y){y=y.toLowerCase().split("=");if(y.length!=2||gUK[y[0]]===void 0||!gUK[y[0]](y[1]))throw Error("Entry ("+y[0]+", "+y[1]+") is invalid.");F[y[0]]=y[1];return F},{})}catch(F){return null}}; Hk=function(n){n=n.AG;return tV(n,n[kt]|0,C7j)}; g.d4=function(n,Z){n.C=Z||0;Z=n.T.us;n.T=null;return Z}; n3=function(n,Z,F,y){this.element=n;this.N=new Bk(0,0,0,0);this.T=null;this.C=new Bk(0,0,0,0);this.X=Z;this.Vm=F;this.Wr=y;this.w5=!1;this.timestamp=-1;this.Pr=new M$(Z.V,this.element,this.N,new Bk(0,0,0,0),0,0,$1(),0);this.S=void 0}; upU=function(n,Z,F,y,l){if((n=n.N.get(Z))&&typeof n==="function")try{n(F,y,l)}catch(m){g.ZW(m)}else Z=new g.FV("Unhandled field",Z),g.yi(Z)}; bQn=function(n){this.N=n;n.kB("/client_streamz/bg/el",g.l8("en"),g.l8("mk"))}; g.PT=function(){var n=g.KQ.navigator;return n&&(n=n.userAgent)?n:""}; XTU=function(n){var Z=g.q$("html5-video-player");Z&&g.w4(Z,"ytp-ad-display-override",n)}; zji=function(n,Z){Z?Z.errorMetadata&&g.yi(new g.FV(n+" failed with status "+Z.errorMetadata.status)):g.yi(new g.FV(n+" failed with empty response"))}; toT=function(n){if(typeof n!=="number")throw sH("int32");if(!mX(n))throw sH("int32");return n|0}; var k3K=function(n,Z){return ej8[K[11]](this,3,n,Z)}; dnY=function(n,Z){n=HQ8(n.eT.N,function(F){return F.info.itag===Z}); if(!n)throw Error("Itag "+Z+" from server not known.");return n}; BKf=function(n){n=aB(n);var Z=[];g.l7(n,function(F,y){y in Object.prototype||typeof F!="undefined"&&Z.push([y,":",F].join(""))}); return Z}; DW=function(n,Z,F,y){return Moj(n,Z,F,y,function(l,m){return new K3(n.N,F,l,m)})}; nmp=function(){this.N=new $Gi}; p3=function(n,Z,F,y){y=y===void 0?!1:y;g.oS.call(this,{U:"div",K:"ytp-ad-persistent-progress-bar-container",D:[{U:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=n;this.X=Z;this.T=F;y&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.S(this,this.X);this.progressBar=this.Vg("ytp-ad-persistent-progress-bar");this.N=-1;this.G(n,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; gt=function(n,Z,F){g.IS.call(this);var y=this;this.W=n;this.w5=Z;this.rO=F;this.hG=NaN;this.Tx=this.aY=this.playButton=this.V=this.S=this.r5=this.lY=this.Ns=this.Pr=this.muteButton=this.J=this.fR=this.DY=this.xi=null;this.T=new L3(this.W);this.progressBar=new g.qT(this.W,this.w5);this.QT=new g.wt(this.W,this.w5);this.yg=new Ta(this.W,this.w5);this.L=new g.oB(this.N7,null,this);F=n.B();this.rO.subscribe("autohideupdate",this.Cz,this);var l=!n.getPlayerStateObject().isCued(),m;(this.Yi=!n.j("delhi_modern_web_player")&& n.B().j("html5_player_dynamic_bottom_gradient"))?this.fR=m=new P8(n):m=new g.R({U:"div",K:"ytp-gradient-bottom"});g.S(this,m);g.y7(n,m.element,9);this.zx=new g.J9(m,250,l,100);g.S(this,this.zx);this.N=new g.R({U:"div",K:"ytp-chrome-bottom",D:[{U:"div",K:"ytp-chrome-controls"}]});g.S(this,this.N);g.y7(n,this.N.element,9);this.Wr=new g.J9(this.N,250,l,100);g.S(this,this.Wr);this.jT=this.N.element.children[0];g.S(this,this.T);g.y7(n,this.T.element,6);this.T.subscribe("show",function(L){y.W.ME(!L);n.R9(y.T, L)}); g.S(this,this.progressBar);this.progressBar.oY(this.N.element,0);l=new Y1(n,Z);g.S(this,l);g.y7(n,l.element,4);l=new g.S_({U:"div",K:"ytp-left-controls"});g.S(this,l);l.oY(this.jT);n.j("delhi_modern_web_player")||(m=new g.j_(n,Z,!1),g.S(this,m),m.oY(l.element));n.j("web_render_jump_buttons")&&(this.Pr=new UH(n,-10),g.S(this,this.Pr),this.Pr.oY(l.element));F.r5||(this.playButton=new g.NT(n,Z),g.S(this,this.playButton),this.playButton.oY(l.element));n.j("web_render_jump_buttons")&&(this.Ns=new UH(n, 10),g.S(this,this.Ns),this.Ns.oY(l.element));n.j("delhi_modern_web_player_remove_nav_buttons")||(n.j("delhi_modern_web_player")&&(m=new g.j_(n,Z,!1),g.S(this,m),m.oY(l.element)),m=new g.j_(n,Z,!0),g.S(this,m),m.oY(l.element));if(!n.j("delhi_modern_web_player")||n.j("delhi_modern_web_player_horizontal_volume_controls"))if(m=new g.R({U:"span",K:"ytp-volume-area"}),g.S(this,m),m.oY(l.element),!F.h2&&(this.muteButton=new h9(n,Z),g.S(this,this.muteButton),this.muteButton.oY(m.element),F.lY&&!F.J)){var a= new EH(n,this.N.element);this.aY=a;g.S(this,a);a.oY(m.element);m=new g.OH(m.element);g.S(this,m);m.subscribe("hoverstart",function(){var L;(L=y.aY)==null||ZhQ(L,!0)}); m=new g.OH(l.element);g.S(this,m);m.subscribe("hoverend",function(){var L;(L=y.aY)==null||ZhQ(L,!1)})}n.j("delhi_modern_web_player_lhs_volume_controls")&&!n.j("delhi_modern_web_player_horizontal_volume_controls")&&(l.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new h9(n,Z),g.S(this,this.muteButton),this.muteButton.oY(l.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.S(this,this.QT);this.QT.oY(l.element);this.lY=new c8(n,this.progressBar);g.S(this,this.lY);this.lY.oY(l.element);F.j("web_key_moments_markers")&&(this.r5=new Vi(n,this.progressBar),g.S(this,this.r5),this.r5.oY(l.element));n.j("delhi_modern_web_player")?this.X=new g.S_({U:"div",K:"ytp-right-controls",D:[{U:"div",K:v8.RIGHT_CONTROLS_LEFT},{U:"div",K:v8.RIGHT_CONTROLS_RIGHT}]}):this.X=new g.S_({U:"div",K:"ytp-right-controls"});g.S(this,this.X);this.X.oY(this.jT);n.j("delhi_modern_web_player")&&(this.J= new IB(n),g.S(this,this.J),this.J.oY(this.X.Vg(v8.RIGHT_CONTROLS_LEFT)),n.j("delhi_modern_web_player_lhs_volume_controls")||n.j("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new h9(n,Z),g.S(this,this.muteButton),this.muteButton.oY(this.X.Vg(v8.RIGHT_CONTROLS_LEFT))));this.d5=new f3(n,Z);g.S(this,this.d5);A9(this,this.d5,"RIGHT_CONTROLS_LEFT");this.settingsButton=new W8(n,this.T);g.S(this,this.settingsButton);F18(this.T,this.settingsButton);A9(this,this.settingsButton,"RIGHT_CONTROLS_LEFT"); l=n.getVideoData();if(F.kL||l.vV&&F.controlsType==="1")this.S=new rt(n,Z),g.S(this,this.S),this.S.oY(this.X.element);F.showMiniplayerButton&&!n.j("web_player_miniplayer_in_context_menu")&&(this.V=new x1(n),g.S(this,this.V),A9(this,this.V,"RIGHT_CONTROLS_RIGHT"));F.H1&&(Z=new Ga(n,this.T),g.S(this,Z),A9(this,Z,"RIGHT_CONTROLS_RIGHT"));F.Ck&&(Z=new RB(n),g.S(this,Z),A9(this,Z,"RIGHT_CONTROLS_RIGHT"));g.S(this,this.yg);A9(this,this.yg,"RIGHT_CONTROLS_RIGHT");g.S(this,this.L);this.G(n,"appresize",this.Ln); this.G(n,"fullscreentoggled",this.Ln);var D;(D=this.J)==null||D.subscribe("small-mode-expand-right-bottom-controls",function(){yg8(y)}); var p;(p=this.J)==null||p.subscribe("small-mode-collapse-right-bottom-controls",function(){yg8(y)}); this.G(n,"presentingplayerstatechange",this.LC);this.G(n,"videodatachange",this.onVideoDataChange);this.Ln()}; lz3=function(n){return g.i8(n.N,function(Z){return!!Z.info.video&&Z.info.video.qualityOrdinal>=2160})}; mGT=function(n){if(!n)return svU||(svU=new C3(0,0));if(!/^\d+$/.test(n))return null;u8(n);return new C3(b8,XV)}; K1o=function(n,Z,F,y,l){var m=!1;y=za(n,y,l,function(a){var D=azf(a,F,Z);m=D!==a&&D!=null;return D}); if(y!=null)return m&&!t9(y)&&k1(n,Z),y}; L13=function(n,Z){var F=new g.e_(0,0),y=H8(dt(n));if(!DGY(y,"parent"))return F;do{var l=y==Z?g.B8(n):pxn(n);F.x+=l.x;F.y+=l.y}while(y&&y!=Z&&y!=y.parent&&(n=y.frameElement)&&(y=y.parent));return F}; POQ=function(n,Z,F,y,l,m,a){var D=MT(n.X.get(),"SLOT_TYPE_IN_PLAYER"),p=$e(n.X.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",D);y=qGo(n,y,m,a,p);if(y instanceof C)return y;a=[new nz(n.N,D)];l=[new ZX(n.N,m),new nz(n.N,l),new F7(n.N,l)];F=yP(F,{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:y,slotFulfillmentTriggers:a,slotExpirationTriggers:l});n=n.T.get();m={layoutId:p,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Gx:"core"};Z={layoutId:p,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Nd:new Map,layoutExitNormalTriggers:[new wxT(n.N,p,Z.durationMs)],layoutExitSkipTriggers:[new TUo(n.N,p,Z.durationMs)],layoutExitUserCancelledTriggers:[new omj(n.N,p)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Gx:"core",clientMetadata:new lb([new sr(Z)]),lN:F(m)};return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:y,slotFulfillmentTriggers:a,slotExpirationTriggers:l,clientMetadata:new lb([new mW(Z)])}}; a1=function(n,Z,F){this.triggeringLayoutId=Z;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=F||n(this.triggerType)}; g.Kz=function(n,Z){this.width=n;this.height=Z}; pz=function(n,Z,F){if(F!=null){if(!mX(F))throw sH("enum");F|=0}return DX(n,Z,F)}; qA=function(n){if(!Lz(n)&&t9(n,n.AG[kt]|0))throw Error();}; TE=function(){w7.apply(this,arguments)}; o1=function(n,Z,F,y){var l=F.bb;n[Z]=y?function(m,a,D){return l(m,a,D,y)}:l}; Jg8=function(n){for(var Z=0,F=0;F>>0);return Number.isSafeInteger(F)?F:c0(n,Z)}; hdi=function(n){for(var Z=1;Z=3&&(a=1,l="drm.net.retryexhausted");Id(n,{onlcsrqerr:l,info:m});n.error(l,a,m);n.shouldRetry(W0(a),y)&&Iz3(n,y)}}); g.S(n,Z);fzf(n,Z)}else n.error("drm.unavailable",1,"km.empty")}; W1P=function(){this.N={}}; rgo=function(n,Z){var F=Z.onError?Z.onError:function(){}; Z.onError=function(l,m){rV().requestComplete(n,!1);F(l,m)}; var y=Z.onSuccess?Z.onSuccess:function(){}; Z.onSuccess=function(l,m){rV().requestComplete(n,!0);y(l,m)}}; Rd3=function(n,Z,F,y){var l=this[xo],m=this[G6],a=Rd(void 0,l.w0),D=gV(n);if(D){var p=!1,L=l.extensions;if(L){l=function(J,U,h){if(h.length!==0)if(L[U])for(J=g.Y(h),U=J.next();!U.done;U=J.next()){U=xGe(U.value);try{p=!0,m(a,U)}finally{U.free()}}else y==null||y(n,U,h)}; if(Z==null)iF(D,l);else if(D!=null){var q=D[Z];q&&l(D,Z,q)}if(p){var w=n[kt]|0;if(w&2&&w&2048&&(F==null||!F.QHp))throw Error();var T=CZ(w),P=function(J,U){if(za(n,J,T)!=null)switch(F==null?void 0:F.Zs5){case 1:return;default:throw Error();}U!=null&&(w=uF(n,w,J,U,T));delete D[J]}; Z==null?Gcf(a,a[kt]|0,function(J,U){P(J,U)}):P(Z,za(a,Z,T))}}}}; XW=function(n){var Z=gmU;n.X&&(g.bF(n.N,function(F,y){return ihf(y,F)?1:ihf(F,y)?-1:0}),n.X=!1); return zL(n.N,function(F,y){y=Z(y);return""+F+(F!=""&&y!=""?"&":"")+y},"")}; M9=function(n,Z){g.ko.call(this,n,void 0,"Options");var F=this;this.x8={};for(var y=0;y0;){for(var p=0;p0}else Z=n.loader.timing,Z=!!Z.X&&!!Z.T;n.UF=Z}n.g_.finished||(n.g_.finished=!0);Z=n.j("html5_onesie_live")&&n.loader&&!isNaN(n.loader.zx);!n.videoData.isLivePlayback||n.videoData.aY>0&&!wk(n.videoData)||Z||P6(n)||(n.seekTo(Infinity, {eO:"videoplayer_readying",seekSource:18}),n.isBackground()&&(n.n1=!0));Z=n.g1;if(Z.qoe){Z=Z.qoe;var y=Z.provider.videoData;F=Z.provider.Y;for(var l=g.Y(F.iZ),m=l.next();!m.done;m=l.next())Jm(Z,m.value);if(Z.provider.j("html5_enable_qoe_cat_list"))for(l=g.Y(y.Ya),m=l.next();!m.done;m=l.next())Jm(Z,m.value);else y.iZ&&Jm(Z,Z.provider.videoData.iZ);y.t2()&&(l=y.N,wk(y)&&Jm(Z,"manifestless"),l&&Qx(l)&&Jm(Z,"live-segment-"+Qx(l).toFixed(1)));YA(y)?Jm(Z,"sabr"):Z.SS(SK(y));if(jK(y)||y.Cq())y.Cq()&&Jm(Z, "ssa"),Jm(Z,"lifa");U0(y)&&Jm(Z,"cdm");Z.provider.videoData.tL&&Jm(Z,"mvtile");y.gatewayExperimentGroup&&(l=y.gatewayExperimentGroup,l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?l="spkadtrt":l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(l="spkadctrl"),Jm(Z,l));F.Ns!=="yt"&&Z.N.set("len",[y.lengthSeconds.toFixed(2)]);y.cotn&&!NP(y)&&Z.XN(!0);F.eG()&&(y=Hh8())&&Z.Xp("cblt",{m:y});if(F.j("html5_log_screen_diagonal")){F=Z.Xp;var a;y=((a=window.H5vccScreen)==null?0:a.GetDiagonal)?window.H5vccScreen.GetDiagonal(): 0;F.call(Z,"cbltdiag",{v:y})}}n.publish("playbackready");uO("pl_c",n.bN.timerName)||(n.bN.tick("pl_c"),hm("pl_c",void 0,"video_to_ad"));uO("pbr",n.bN.timerName)||(n.bN.tick("pbr"),hm("pbr",void 0,"video_to_ad"))}}}; Mhf=function(n,Z){O0(n,1,Z.bNT);E7(n,2,Z.Vns,dGQ,3);E7(n,3,Z.coldStartInfo,BUK,3)}; c6=function(n,Z,F){return new CX(n,Z,F)}; ntU=function(n){return $$U(n,!0)}; aB=function(n){var Z={},F=g.Vx(n.N,function(y){return y.N}); g.l7(F,function(y,l){y=n.T[l]!==void 0?String(n.T[l]):y.N&&y.X!==null?String(y.X):"";y.length>0&&(Z[l]=y)},n); return Z}; yVQ=function(n,Z,F,y){y=y===void 0?0:y;if(n==null){var l=32;F?(n=[F],l|=128):n=[];Z&&(l=l&-16760833|(Z&1023)<<14)}else{if(!Array.isArray(n))throw Error("narr");l=n[kt]|0;if(ZXp&&1&l)throw Error("rfarr");2048&l&&!(2&l)&&Ftp();if(l&256)throw Error("farr");if(l&64)return(l|y)!==l&&v6(n,l|y),n;if(F&&(l|=128,F!==n[0]))throw Error("mid");a:{F=n;l|=64;var m=F.length;if(m){var a=m-1,D=F[a];if(D!=null&&typeof D==="object"&&D.constructor===Object){Z=l&128?0:-1;a-=Z;if(a>=1024)throw Error("pvtlmt");for(var p in D)m= +p,m1024)throw Error("spvt");l=l&-16760833|(p&1023)<<14}}}v6(n,l|64|y);return n}; var lCo=function(n,Z,F,y,l,m,a,D){return ej8[K[11]](this,16,n,Z,F,y,l,m,a,D)}; sS8=function(n){return IF(n.X,function(Z){return Z.JO})}; fU=function(n){this.N=this.X=0;this.alpha=Math.exp(Math.log(.5)/n)}; aCe=function(n){var Z,F,y=(F=(Z=n.mQ.HV())==null?void 0:Z.getCurrentTime())!=null?F:n.mQ.getCurrentTime(),l=n.V.Um(y);m$Y(n,l,y,!0);n.isSeeking=!1;Array.from(n.X.keys()).sort(function(m,a){return m-a}).forEach(function(m){m>l?Am(n,m,n.X.get(m)):m===l&&Am(n,m,n.X.get(m),y-n.V.getStartTime(m))})}; g.rk=function(n){for(var Z=0,F=arguments.length;Z>>0,Z=~Z>>>0,n==0&&(Z=Z+1>>>0));n=VY(n,Z);return typeof n==="number"?F?-n:n:F?"-"+n:n}; MP=function(){this.isInitialized=!1;this.N=this.X=null;var n={};this.J=(n.start=this.kxp,n.firstquartile=this.tT8,n.midpoint=this.jY4,n.thirdquartile=this.ORT,n.complete=this.S8s,n.error=this.oiY,n.pause=this.H0,n.resume=this.Tp,n.skip=this.upi,n.viewable_impression=this.zQ,n.mute=this.rf,n.unmute=this.rf,n.fullscreen=this.sYT,n.exitfullscreen=this.WQ4,n.fully_viewable_audible_half_duration_impression=this.zQ,n.measurable_impression=this.zQ,n.abandon=this.H0,n.engagedview=this.zQ,n.impression=this.zQ, n.creativeview=this.zQ,n.progress=this.rf,n.custom_metric_viewable=this.zQ,n.bufferstart=this.H0,n.bufferfinish=this.Tp,n.audio_measurable=this.zQ,n.audio_audible=this.zQ,n);n={};this.L=(n.overlay_resize=this.CYG,n.abandon=this.Vb,n.close=this.Vb,n.collapse=this.Vb,n.overlay_unmeasurable_impression=function(Z){return H6(Z,"overlay_unmeasurable_impression",dk())},n.overlay_viewable_immediate_impression=function(Z){return H6(Z,"overlay_viewable_immediate_impression",dk())},n.overlay_unviewable_impression= function(Z){return H6(Z,"overlay_unviewable_impression",dk())},n.overlay_viewable_end_of_session_impression=function(Z){return H6(Z,"overlay_viewable_end_of_session_impression",dk())},n); B6().X=3;qqT(this);this.T=null}; T4U=function(n,Z,F){n=wkQ(n);Z=Z?g.$k(Z):"";F=F||5;nH()&&g.Z6(n,Z,F)}; F9=function(n){this.N=n}; otQ=function(){B6();var n=yp();return n.T||n.X?0:2}; JV8=function(n,Z,F,y,l){l=P9o(l,Z);lX(n,F,y,l);l&&!t9(l)&&k1(n.AG);return n}; sp=function(n){return n.w5==="detailpage"}; m0=function(n,Z){if(n.q2&&n.O8!==void 0&&n.DC!==void 0){var F=Math,y=F.min,l=n.w5;var m=n.q2;var a=n.N;if(QS7(m,n.O8))m=Z;else{var D=0;m.F0&&(D=.2);m=a+(m.IH+D)*1E3}n.w5=y.call(F,l,m);F=Math;y=F.min;l=n.jT;m=n.q2;a=n.N;D=Yqe(m,n.O8,n.DC);D!==2&&(Z=D?Z:a+m.IH*1E3,m.F0&&(Z+=m.IH*1E3));n.jT=y.call(F,l,Z);n.w5<=n.N?Sqj(n):(n.r5=n.w5,n.mJ=!0)}}; jST=function(n){var Z={};var F=g.O7()-n.S;Z=(Z.ptlt=F,Z);(F=n.X)&&(Z.pnk=F);(F=n.T)&&(Z.pnc=F);(F=n.V)&&(Z.pnmm=F);(n=n.N)&&(Z.pns=n);return Z}; U$o=function(n){return n.info.bY.info.dV()&&aX(n.X,0)===160}; g.IS=function(){rK.apply(this,arguments)}; lX=function(n,Z,F,y){qA(n);var l=n.AG,m=l[kt]|0;if(y==null){var a=KH(l);if(D6(a,l,m,F)===Z)a.set(F,0);else return n}else m=pH(l,m,F,Z);uF(l,m,Z,y);return n}; hSi=function(){this.N={};var n=H8();LH(this,n,document);var Z=N4p();try{if("1"==Z){for(var F=n.parent;F!=n.top;F=F.parent)LH(this,F,F.document);LH(this,n.top,n.top.document)}}catch(y){}}; PP=function(n){var Z=n[G6];if(Z!=null)return Z;var F=LU(xo,o1,qa,n);Z=F.UY?function(y,l){return Dd(y,l,F)}:function(y,l){for(;Ete(l)&&l.X!=4;){var m=l.T,a=F[m]; if(a==null){var D=F.extensions;D&&(D=D[m])&&(D=OXU(D),D!=null&&(a=F[m]=D))}if(a==null||!a(l,y,m)){D=l;a=D.V;wn(D);if(D.HQ)var p=void 0;else{var L=D.N.N-a;D.N.N=a;p=cVK(D.N,L)}L=D=a=void 0;var q=y;p&&((a=(D=(L=q[TA])!=null?L:q[TA]=new oX)[m])!=null?a:D[m]=[]).push(p)}}if(y=gV(y))y.lW=F.lX[VGp];return!0}; n[G6]=Z;n[VGp]=Rd3.bind(n);return Z}; Yk=function(n,Z,F){F=F!=null?"="+g.J5(F):"";return Qp(n,Z+F)}; ICp=function(n,Z){if(n.fn){var F=n.fn.qj();if(F.length!==0){if(n.T&&Z){var y=n.T,l=y.info.V;!SF(F,l)&&y.info.J>0&&(0,g.tP)()-n.C<5E3&&(n.logger&&n.logger({dend:y.info.bd()}),F=vtf(F,l,l+.01))}n.policy.pD&&n.logger&&n.logger({cbri:""+n.N});y=[];for(var m=l=0;l=a){var q=Object.assign({},n.XI[m]),w=n.eT.T.get(jF(n.XI[m].formatId)),T=Math.max(p,a);a=w.index.Um(T+n.X/ 1E3);p=w.index.getStartTime(a);var P=a+ +(Math.abs(p-T)>n.X/1E3);T=P+n.V;P=w.index.getStartTime(P)*1E3;m!==n.N||Z?(q.Au=T,q.startTimeMs=P):(n.logger&&n.logger({pEvict:"1",og:q.startTimeMs,adj:p*1E3}),q.Au=a+n.V,q.startTimeMs=p*1E3);a=void 0;p=((a=n.T)==null?void 0:a.info.duration)||11;m===n.N&&Dn.X/1E3);a=p+n.V;w=w.index.CS(p)*1E3;q.hV=a;q.durationMs=w-q.startTimeMs;q.Au<=q.hV&&y.push(q)}L=0&&n<=1}; Na=function(n,Z,F){n.N(Z,void 0,void 0,void 0,F,void 0,void 0,void 0,F.adSlotLoggingData)}; h5=function(n){return n.ajZ.length)return!1;if(n.lengthl)return!1;if(y>>0;this.N=Z>>>0}; QX=function(n){var Z=new PO(n);JL.call(this,n,Z,"Custom");g.S(this,Z)}; j7=function(){var n=Yq;n.C||(n.C=!0,kLf(n,function(){return n.V.apply(n,g.t(g.S7.apply(0,arguments)))}),n.V())}; NK=function(n){this.AG=UO(n)}; eSe=function(n,Z){this.N=n;this.index=Z}; cO=function(n,Z,F,y){g.I.call(this);var l=this;this.loader=n;this.policy=Z;this.bY=F;this.timing=y;this.logger=new g.hL("dash");this.X=[];this.w5=[];this.N=this.fn=null;this.r5=!1;this.lY=this.jT=0;this.S=-1;this.Tx=!1;this.Wr=-1;this.zx=null;this.Ns=NaN;this.Pr=[];this.vx={Jl:function(){return l.T}, jTQ:function(){return l.X}, p4G:function(){return l.J}}; this.T=new HXU(n,Z,F);this.policy.N&&(this.J=new EO(this.T,this.loader.getManifest(),this.policy,function(m){l.policy.Di&&l.Xp("buftl",m)})); this.policy.PV&&(this.L=new OO(this));this.Qg=F.info.Qg;this.C=this.policy.Tx?!1:F.Bh();this.isManifestless=F.Bh();this.V=this.C;g.S(this,this.zx)}; vO=function(n){try{return VX(n())}catch(Z){return d$Y(Z)}}; B4o=function(n,Z){return function(F,y){var l={y$:!0};y&&Object.assign(l,y);F=xGe(F,void 0,void 0,l);try{var m=new n,a=m.AG;PP(Z)(a,F);var D=m}finally{F.free()}return D}}; I6=function(n){this.N=n}; WO=function(n,Z,F,y,l){Z=MGY(n,Z);F=MGY(n,F);n=n.progressBar.visualElement;y={seekData:{startMediaTimeMs:Z,endMediaTimeMs:F,seekSource:y}};(Z=g.f_())&&AL(Z,n,l,y)}; $T3=function(n){var Z=n.indexOf("#");return Z<0?n:n.slice(0,Z)}; g.zQ=function(n,Z,F,y,l,m,a,D,p,L,q,w){n=n.charAt(0)+n.substring(1).toLowerCase();F=F.charAt(0)+F.substring(1).toLowerCase();if(Z==="0"||Z==="-1")Z=null;if(y==="0"||y==="-1")y=null;var T=q.B(),P=T.userDisplayName&&g.ri(T);g.R.call(this,{U:"div",s8:["ytp-button","ytp-sb"],D:[{U:"div",K:"ytp-sb-subscribe",Z:P?{title:q.B().j("player_tooltip_data_title_killswitch")?g.xq("Subscribe as $USER_NAME",{USER_NAME:T.userDisplayName}):"","data-tooltip-title":g.xq("Subscribe as $USER_NAME",{USER_NAME:T.userDisplayName}), "aria-label":"Subscribe to channel","data-tooltip-image":GQ(T),"data-tooltip-opaque":String(g.R6(T)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},D:[{U:"div",K:"ytp-sb-text",D:[{U:"div",K:"ytp-sb-icon"},n]},Z?{U:"div",K:"ytp-sb-count",E8:Z}:""]},{U:"div",K:"ytp-sb-unsubscribe",Z:P?{title:q.j("player_tooltip_data_title_killswitch")?g.xq("Subscribed as $USER_NAME",{USER_NAME:T.userDisplayName}):"","data-tooltip-title":g.xq("Subscribed as $USER_NAME",{USER_NAME:T.userDisplayName}), "aria-label":"Unsubscribe to channel","data-tooltip-image":GQ(T),"data-tooltip-opaque":String(g.R6(T)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},D:[{U:"div",K:"ytp-sb-text",D:[{U:"div",K:"ytp-sb-icon"},F]},y?{U:"div",K:"ytp-sb-count",E8:y}:""]}],Z:{"aria-live":"polite"}});var J=this;this.channelId=a;this.W=q;this.T=w;var U=this.Vg("ytp-sb-subscribe"),h=this.Vg("ytp-sb-unsubscribe");m&&g.gi(this.element,"ytp-sb-classic");if(l){D?this.N():this.X();var v=function(){if(T.Wr){var f= J.channelId;if(p||L){var W={c:f};var X;g.ic.isInitialized()&&(X=n1T(W));W=X||"";if(X=q.getVideoData())if(X=X.subscribeCommand){var u=q.ZE();u?(C_(u,X,{botguardResponse:W,feature:p}),q.LR("SUBSCRIBE",f)):g.ZW(Error("No innertube service available when updating subscriptions."))}else g.ZW(Error("No subscribe command in videoData."));else g.ZW(Error("No video data available when updating subscription."))}h.focus();h.removeAttribute("aria-hidden");U.setAttribute("aria-hidden","true")}else uc(g.bc(J.W.B()), "sb_button",J.V)},V=function(){var f=J.channelId; if(p||L){var W=q.getVideoData();C_(q.ZE(),W.unsubscribeCommand,{feature:p});q.LR("UNSUBSCRIBE",f)}U.focus();U.removeAttribute("aria-hidden");h.setAttribute("aria-hidden","true")}; this.G(U,"click",v);this.G(h,"click",V);this.G(U,"keypress",function(f){f.keyCode===13&&v(f)}); this.G(h,"keypress",function(f){f.keyCode===13&&V(f)}); this.G(q,"SUBSCRIBE",this.N);this.G(q,"UNSUBSCRIBE",this.X);this.T&&P&&(Z3P(q),XX(q,U,this),XX(q,h,this))}else g.gi(U,"ytp-sb-disabled"),g.gi(h,"ytp-sb-disabled")}; FXU=function(n){var Z,F;return(F=(Z=/https?:\/\/[^\/]+/.exec(n))==null?void 0:Z[0])!=null?F:""}; tL=function(n){this.value=n}; y9Q=function(n){n.T>=0||(n.provider.Y.VG||n.provider.mQ.getVisibilityState()!==3?n.T=g.kq(n.provider):n.yg=!0)}; $W=function(n,Z){n=n===void 0?NaN:n;Z=Z===void 0?null:Z;g.I.call(this);var F=this;this.V=n;this.X=Z;this.T=new g.e7(function(){for(var y=(0,g.tP)();!F.N.isEmpty();){var l=HO(F.N);if(l===void 0||l>y)break;var m=F.N.remove(),a=F.map.get(m);a&&a.dw===l&&di(F,m,!0)}BO(F)}); this.map=new Map;this.N=new MK;Number.isNaN(n);g.S(this,this.T)}; lWQ=function(n,Z){var F=0,y=!1,l=n.N.length,m=n.T.N*1E3;m===0&&(m=n.api.getProgressState().seekableEnd*1E3);if(m>0&&n.C>0){for(var a=n.C-nb(n)*n.jT,D=n.SG===0?3:a*n.SG,p=g.Y(n.N),L=p.next();!L.done;L=p.next())L.value.width=0;for(;F1);L=(m===0?0:p/m*a)+n.N[F].width;if(L>D)n.N[F].width=L;else{n.N[F].width=0;var q=n,w=F,T=q.N[w-1];T!==void 0&&T.width>0? T.width+=L:wn.SG&&(n.SG=p/m),y=!0)}F++}}return y}; F0=function(n){this.key=n}; sB7=function(n){try{var Z=(new g.yD(n,!0)).get("n");if(Z){var F=n.match(/\/n\/([^/]+)/);if(F&&F[1]&&F[1]!==Z)return n.replace("/n/"+F[1],"/n/"+Z)}}catch(y){g.yi(y)}return n}; aWK=function(n){var Z=new mTf,F={},y=(F["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",F);return new l2(Z,n,function(){return y})}; Ds=function(n,Z,F){F=F===void 0?!1:F;n.UW=void 0;n.N=Z;g.S(n,Z);Z.Nt=n.Nt;Z.DE=n.DE;Z.ze=n.ze;Z.lf=n.lf;Z.YN=n.YN;n.r4&&(Z.Pr=new s2(n.r4));(n.K_()||g.ms(n))&&n.a7.push("webgl");n.N.isLive||(n.isLivePlayback=!1);var y=Z.sourceUrl.split("/");if(n.yg?y.indexOf("manifest_duration")!==-1:y.indexOf("manifest_duration")!=-1)n.j8=Number(y[y.indexOf("manifest_duration")+1]);if(Z.X||Z.isManifestless)Z.subscribe("clienttemp",n.Xp,n),F?Z.subscribe("refresh",n.f0,n):Z.subscribe("cuepointsadded",n.g$,n);a5(Z)? n.y_=!0:Kb=void 0;n.sV&&(Z.V=n.sV,Z.isLive=!0,n.isLivePlayback=!0);Z.isPremiere=n.isPremiere;Z.isLiveHeadPlayable=n.isLiveHeadPlayable}; DTU=function(n,Z){return KXT(n,function(F){return F.T},Z===void 0?!0:Z)}; pb=function(){this.jH=0;this.N=!1;this.X=-1;this.UQ=!1;this.cn=0}; p88=function(n){var Z=n.Z4();if(n.j("html5_disable_loop_range_for_shorts_ads")&&Z.getVideoData().isAd()?0:eF(Z.getVideoData())&&!Z.iE())Z=Lb(n)*1E3-n.getVideoData().Vl,n.j("html5_gapless_new_slr")?(n=n.Q$,qC(n.app,"gaplessshortslooprange"),Z=new g.wg(0,Z,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(n=n.app.Z4())&&n.addCueRange(Z)):n.setLoopRange({startTimeMs:0,endTimeMs:Z,type:"shortsLoop"})}; QD=function(n,Z,F,y,l,m,a,D){Tf.call(this,n,Z,F,y);this.uY=l;this.wM=m;this.C=D;this.dJ=!0;this.V=null;this.S=o5(F.clientMetadata,"metadata_type_linked_player_bytes_layout_id");P2(this.wM(),this);n=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,n,F.layoutId)}; P6=function(n){return n.j("html5_disable_video_player_initiated_seeks")&&YA(n.videoData)}; qHi=function(n,Z){function F(y,l){Z(y,l)} if(n.X==null)return!1;n.N=g.YW(n.X,function(y){return y!=null&&y.Iv()}); n.N&&(n.N.init(F)?LXK(n.N.N):Z(n.N.N.IG(),n.N));return n.N!=null}; TtP=function(n,Z,F){Z=Se(n.Er,w8f(n,Z,F),Z);n.Ie()&&Z.set("probe","1");return Z}; g.S=function(n,Z){n.addOnDisposeCallback(g.je(g.xA,Z))}; o1e=function(n,Z){if(Z<0)throw Error();var F=n.N;Z=F+Z;if(Z>n.T)throw Error();n.N=Z;return F}; P88=function(){var n=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];U2().forEach(function(Z){n.push(Z)}); return{Nj:n,ZM:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; J93=function(n,Z,F){Z=Z==null||typeof Z==="boolean"?Z:typeof Z==="number"?!!Z:void 0;Z!=null&&(NC(n,F,0),n.N.N.push(Z?1:0))}; QBK=function(n,Z,F){for(var y=n.length;y432E3&&b3j(n.eT);n.X&&(l=n.X,n.X=0);g.MC(function(){n.policy.S||$g(n,l,102)}); n.loader.Xp("initManifestlessSync",{st:l,ost:l+n.loader.Kn(),a:n.audioTrack.S,v:n.videoTrack.S});n.T&&(n.T.resolve(l+.1),n.T=null);n.policy.S&&$g(n,l,102)}}}; lp=function(n,Z){g.R.call(this,{U:"div",K:"ytp-fine-scrubbing",D:[{U:"div",K:"ytp-fine-scrubbing-draggable",D:[{U:"div",K:"ytp-fine-scrubbing-thumbnails",Z:{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}}"}}]},{U:"div",Z:{"aria-hidden":"true"},K:"ytp-fine-scrubbing-cursor"},{U:"div",K:"ytp-fine-scrubbing-seek-time",Z:{"aria-hidden":"true"}, E8:"{{seekTime}}"},{U:"div",K:"ytp-fine-scrubbing-play",D:[n.j("delhi_modern_web_player_icons")?Z_():Fl()],Z:{title:"Play from this position",role:"button"}},{U:"div",K:"ytp-fine-scrubbing-dismiss",D:[g.FP()],Z:{title:"Exit precise seeking",role:"button"}}]});var F=this;this.api=n;this.S=this.Vg("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Vg("ytp-fine-scrubbing-dismiss");this.w5=this.Vg("ytp-fine-scrubbing-draggable");this.playButton=this.Vg("ytp-fine-scrubbing-play");this.thumbnails= [];this.X=[];this.jT=this.N=0;this.lY=void 0;this.Ns=NaN;this.r5=this.L=this.T=this.J=0;this.V=[];this.interval=this.frameCount=0;this.C=160;this.scale=1;this.aY=0;this.isEnabled=this.zx=!1;ys(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.l9(Z,this.dismissButton));this.addOnDisposeCallback(g.l9(Z,this.playButton));this.Wr=new g.OH(this.w5,!0);this.Wr.subscribe("dragstart",this.Sa,this);this.Wr.subscribe("dragmove",this.zC,this);this.Wr.subscribe("dragend",this.v2,this);this.G(n,"SEEK_COMPLETE", this.Ds);n.j("web_fix_fine_scrubbing_false_play")&&this.G(n,"rootnodemousedown",function(y){F.Tx=y}); this.S.addEventListener("keydown",function(){}); g.S(this,this.Wr);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; kaP=function(){for(var n;n=X8U.remove();){try{n.N.call(n.scope)}catch(Z){sy(Z)}zIn(t_p,n)}mJ=!1}; Ko=function(n){n=(n.N.cookie||"").split(";");for(var Z=[],F=[],y,l,m=0;m1?2:1,n.T.height=n.heightPx*F,n.T.style.height= n.heightPx+"px",n.X.scale(1,F)));Z=g.Y(Z);for(y=Z.next();!y.done;y=Z.next()){F=n;var l=n.index,m=y.value;for(y=0;y+2>>0}; ed=function(){var n="youtube.player.web_20251102_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251102_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251102_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251102_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),Z;if(((Z=n)==null?void 0:Z.length)==2)return n[1];n="youtube.player.web_20251102_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var F;return((F=n)==null?void 0:F.length)==3?"20"+n[1]+n[2]:null}; da=function(){HV.apply(this,arguments);this.vx={EM:function(){return[]}}}; pB7=function(n){n=n.V;if(!n)return"";var Z=BV("uap",n.platform)+BV("uapv",n.platformVersion)+BV("uafv",n.uaFullVersion)+BV("uaa",n.architecture)+BV("uam",n.model)+BV("uab",n.bitness);n.fullVersionList&&(Z+="&uafvl="+encodeURIComponent(n.fullVersionList.map(function(F){return encodeURIComponent(F.brand)+";"+encodeURIComponent(F.version)}).join("|"))); n.wow64!=null&&(Z+="&uaw="+Number(n.wow64));return Z.slice(1)}; Mv=function(){this.X=this.N=null}; oeQ=function(n,Z,F,y,l,m){function a(T){return yP(n.xs.get(),T)} var D=[];Z=g.Y(Z);for(var p=Z.next();!p.done;p=Z.next()){p=p.value;var L=p.renderer,q=L.sandwichedLinearAdRenderer,w=L.linearAdSequenceRenderer;q&&LWU(q)?(wU("Found AdNotify with SandwichedLinearAdRenderer"),w=g.e(q.adVideoStart,$a),q=g.e(q.linearAd,n7),Tc(m,L,p.config.adPlacementConfig.kind),L=void 0,w=qr8((L=w)==null?void 0:L.layout.layoutId,n.X.get(),n.N.get(),p.config.adPlacementConfig,p.adSlotLoggingData,q,F,y,a,l,n.loadPolicy,n.U8.get(),n.xs.get()),w instanceof C?wU(w):D.push.apply(D,g.t(w))): w&&(!w.adLayoutMetadata&&wB7(w)||w.adLayoutMetadata&&T73(w))&&(wU("Found AdNotify with LinearAdSequenceRenderer"),Tc(m,L,p.config.adPlacementConfig.kind),L=void 0,q=hI7((L=g.e(w.adStart,$a))==null?void 0:L.layout.layoutId,n.X.get(),n.N.get(),p.config.adPlacementConfig,p.adSlotLoggingData,w.linearAds,Zg(w.adLayoutMetadata)?w.adLayoutMetadata:void 0,F,y,a,l,n.loadPolicy,n.U8.get()),q instanceof C?wU(q):D.push.apply(D,g.t(q)))}return D}; Pbo=function(){this.N=0}; F1=function(n,Z){var F=0,y=0,l=0,m=n.X,a=n.N;do{var D=m[a++];F|=(D&127)<32)for(y|=(D&127)>>4,l=3;l<32&&D&128;l+=7)D=m[a++],y|=(D&127)<>>0,y>>>0);throw Error();}; sQ=function(n,Z){n=n instanceof Uint8Array?new y9([n]):n;return Z(new lT(n))}; mG=function(n){this.N=n}; ai=function(n,Z,F,y,l,m){this.videoData=n;this.N=Z;this.reason=F;this.X=y;this.token=l;this.videoId=m}; JO8=function(n,Z){var F=[];F.push(new K7(Dg(n)));F.push(new p7(Z.layoutId));(n=o5(Z.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&F.push(new L7(n));(n=o5(Z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&F.push(new qW(n));(n=o5(Z.clientMetadata,"metadata_type_remote_slots_data"))&&F.push(new wT(n));(n=o5(Z.clientMetadata,"metadata_type_ad_next_params"))&&F.push(new T2(n));(n=o5(Z.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&F.push(new oi(n));(n= o5(Z.clientMetadata,"metadata_type_ad_pod_info"))&&F.push(new Pd(n));(Z=o5(Z.clientMetadata,"metadata_type_ad_video_id"))&&F.push(new JS(Z));return F}; YrK=function(n){if(n.T&&typeof Q9!="undefined")if(n.Pr&&g.Ya(n)==4)setTimeout(n.Yf.bind(n),0);else if(n.dispatchEvent("readystatechange"),n.isComplete()){n.getStatus();n.T=!1;try{if(S5(n))n.dispatchEvent("complete"),n.dispatchEvent("success");else{n.X=6;try{var Z=g.Ya(n)>2?n.N.statusText:""}catch(F){Z=""}n.V=Z+" ["+n.getStatus()+"]";Q18(n)}}finally{j5(n)}}}; UQ=function(n){var Z=[];if(n){n=g.Y(Object.entries(n));for(var F=n.next();!F.done;F=n.next()){var y=g.Y(F.value);F=y.next().value;y=y.next().value;y!==void 0&&(y=typeof y==="boolean"?""+ +y:(""+y).replace(/[:,=]/g,"_"),Z.push(F+"."+y))}}return Z.join(";")}; SrY=function(n){return!!n&&isFinite(n)&&n>1E9}; NW=function(n,Z,F,y,l,m){if((n&109)==n){Z[71]<=-6&&(Z[68]<=6&&((0,Z[47])(Z[77],(0,Z[77])(Z[57],Z[29]),(0,Z[22])(Z[27],Z[65]),(0,Z[0])(Z[74],Z[50]),Z[70],Z[26]),1)||(0,Z[58])((0,Z[4])((0,Z[37])((0,Z[54])(),Z[50],Z[80]),Z[38],Z[33]),Z[37],(0,Z[37])((0,Z[49])(),Z[50],Z[new F(K[65])/1E3]),(0,Z[49])(),Z[50],Z[48]));Z[79]>6&&((0,Z[4])(((0,Z[82])(Z[30],Z[48]),Z[37])((0,Z[5])(),Z[50],Z[16])>=(0,Z[4])((0,Z[43])(Z[59],Z[16]),Z[42],Z[41],Z[17]),Z[37],(0,Z[15])(),Z[50],Z[80]),1)||((0,Z[42])(Z[27],Z[24]),((0,Z[74])((0,Z[28])(Z[52], Z[2]),Z[50],Z[34],Z[82]),Z[51])(Z[76],Z[10]),Z[76])(Z[9]);Z[22]<-3&&(0,Z[10])((0,Z[34])(Z[81],Z[73]),Z[1],Z[81],Z[new F(K[84])/1E3+new F(K[71])/1E3%1])^(0,Z[33])(Z[4],Z[65]);(Z[29]!==-1||(((0,Z[8])((0,Z[14])(Z[18],Z[80]),Z[14],Z[60],Z[48]),(0,Z[new F(K[92])/1E3])(Z[57],Z[new F(K[64])/1E3]),Z[14])(Z[33],Z[16]),K[12]))&&((0,Z[32])(Z[79],Z[40]),Z[8])((0,Z[8])((0,Z[31])(Z[3],Z[63]),Z[68],Z[58]),Z[15],Z[25]);Z[81]!==2&&(0,Z[67])((0,Z[71])((0,Z[71])((0,Z[77])(Z[76],Z[27]),Z[new F(K[91])/1E3],Z[44],Z[58]), Z[28],Z[71]),Z[31],(0,Z[77])(Z[59],Z[2]),Z[67],Z[20],Z[24]);var a=[]}(n&60)==n&&(a=F(y,l,m));n>>1<29&&(n<<1&15)>=14&&(Z[11]!==-10&&(Z[30]===-6&&((((0,Z[35])(Z[62],Z[9]),Z[21])(Z[9],Z[30]),(0,Z[79])(Z[69]),Z[20])(Z[17],Z[1]),K[80])||((((0,Z[20])(Z[16],Z[44]),Z[21])(Z[16],Z[36]),Z[20])(Z[37],Z[55]),Z[35])(Z[11],Z[69])),Z[50]<-2&&(((0,Z[59])((0,Z[20])(Z[37],Z[new F(K[86])/1E3]),Z[35],(0,Z[80])((0,Z[28])(),Z[67],Z[17]),Z[12],Z[37]),Z[35])(Z[60],Z[37]),K[39])||(((0,Z[29])((0,Z[80])((0,Z[68])(),Z[67],Z[17]), Z[74],Z[4],Z[24]),Z[74])(Z[65],Z[37]),Z[79])(Z[17]),Z[54]<=8&&(Z[12]===349+new F(K[75])/1E3&&((0,Z[59])(((0,Z[75])(Z[50],Z[17]),Z[79])(Z[37])<(0,Z[80])((0,Z[28])(),Z[67],Z[37]),Z[52],(0,Z[20])(Z[37],Z[70]),Z[77],Z[new F(K[73])/1E3*209+Math[K[58]](new F(K[89])/1E3,2)-26117]),K[55])||(0,Z[59])(((0,Z[29])((0,Z[75])(Z[83],Z[69]),Z[52],Z[13],Z[37]),Z[79])(Z[17]),Z[0],(0,Z[20])(Z[17],Z[43]),Z[17],Z[48])),a=[]);if((n|40)==n&&Z[K[15]])var D=N$(17,Z);if((n^69)<21&&n+7>>3>=1)for(Z=(Z%F[K[20]]+F[K[20]])%F[K[20]];Z--;)F[K[54]](F[K[88]]()); return a}; j1P=function(n){n.N.enabled||n.N.start();n.V++;n.V>=n.T&&n.kE()}; nH=function(){return Btn()||hS()||EQ()?!0:g.BT("EOM_VISITOR_DATA")?!1:!0}; Ii=function(n,Z){Z=Math.pow(10,Z);return Math.floor(n*Z)/Z}; UAp=function(n){var Z=f7(B6().Vm,"sneio")==1,F=n.X.w6.AFMA_LIDAR_EXP_1!==void 0,y=n.X.w6.AFMA_LIDAR_EXP_2!==void 0;(Z=Z&&y)&&(n.X.w6.AFMA_LIDAR_EXP_2=!0);F&&(n.X.w6.AFMA_LIDAR_EXP_1=!Z)}; N7Y=function(n,Z){return isNaN(Z)?!0:isNaN(n.N)?!1:Z0&&n.set("osts",""+Z.startSeconds);y||(l.j("html5_onesie_disable_partial_segments")&&n.set("oses","1"),Z=l.j("html5_gapless_onesie_no_media_bytes")&&eF(Z)&&Z.Bx,F&&!Z?(Z=F.audio,n.set("pvi",F.video.join(",")),l.j("html5_onesie_disable_audio_bytes")||n.set("pai",Z.join(",")),gT||n.set("osh","1")):(n.set("oad","0"),n.set("ovd","0"),n.set("oaad", "0"),n.set("oavd","0")))}; uT=function(n,Z){n.JD.has(Z)&&(iT?n.JD.get(Z).Ch.clear():n.JD.get(Z).uP=new y9,C7(n,Z),n.X=!0)}; bT=function(n,Z,F){return{ssvc:Z,cpn:(F==null?void 0:F.cpn)||"",vid:(F==null?void 0:F.videoData.videoId)||"",ct:(n.playback.getCurrentTime()||0).toFixed(3),cmt:(n.playback.FY()||0).toFixed(3)}}; Qp=function(n,Z){if(!Z)return n;var F=n.indexOf("#");F<0&&(F=n.length);var y=n.indexOf("?");if(y<0||y>F){y=F;var l=""}else l=n.substring(y+1,F);n=[n.slice(0,y),l,n.slice(F)];F=n[1];n[1]=Z?F?F+"&"+Z:Z:F;return n[0]+(n[1]?"?"+n[1]:"")+n[2]}; OzP=function(n,Z){if(typeof n!=="object")return n;if(Array.isArray(n)){var F=n[kt]|0;n.length===0&&F&1?n=void 0:F&2||(!Z||4096&F||16&F?n=X1(n,F,!1,Z&&!(F&16)):(z2(n,34),F&4&&Object.freeze(n)));return n}if(n!=null&&n[tS]===ka)return Z=n.AG,F=Z[kt]|0,t9(n,F)?n:e5(n,Z,F)?Hd(n,Z):X1(Z,F);if(n instanceof v2)return n}; CX=function(n,Z,F){this.bb=n;this.ib=Z;n=dT(i9);this.N=!!n&&F===n||!1}; Bd=function(n,Z,F,y,l,m,a,D){Z?Z.test(F)?(n.FI(l,Z,a),Z.C||m()):(!Z.X||Z.V?F=!1:(F=(0,g.tP)(),y?Z.N||(Z.N=F):Z.N=0,m=!y&&F-Z.X>3E4,F=Z.N&&F-Z.N>1E3||m?Z.V=!0:!1),F&&(D=Object.assign({},n.Zx(Z),D),D.wn=a,D.we=l,D.wsuc=y,n.mQ.Xp("workaroundReport",D),y&&(Z.reset(),n.T[l]=!1))):n.mQ.Mj("auth",2,"BROWSER_OR_EXTENSION_ERROR",UQ({source:"watchdog",name:a}))}; cO8=function(n,Z){try{return globalThis.sessionStorage.setItem(n,Z),!0}catch(F){return!1}}; Va7=function(n){var Z=dt(n),F=MW(n,"position"),y=F=="fixed"||F=="absolute";for(n=n.parentNode;n&&n!=Z;n=n.parentNode)if(n.nodeType==11&&n.host&&(n=n.host),F=MW(n,"position"),y=y&&F=="static"&&n!=Z.documentElement&&n!=Z.body,!y&&(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight||F=="fixed"||F=="absolute"||F=="relative"))return n;return null}; $2=function(n){vk.call(this,n);var Z=this;RS(this.api,"dismissFeaturedProductOverlay",function(){Z.dismissFeaturedProductOverlay()})}; n4=function(n,Z){n.JE=Z||n.mQ.B().j("html5_allow_multiview_tile_preload")&&n.mQ.getVideoData().tL;n.policy.lY||(n.isSuspended=!0,n.policy.Zf&&(n.Ix.stop(),n.Hx.stop(),n.PV.stop()),n.hG.stop())}; IXi=function(n,Z,F,y){Z=Z===void 0?!1:Z;F=F===void 0?!0:F;y=y===void 0?{}:y;var l={};n=g.Y(n);for(var m=n.next();!m.done;m=n.next()){m=m.value;if(Z&&MediaSource&&MediaSource.isTypeSupported){var a=m.type;m.audio_channels&&(a=a+"; channels="+m.audio_channels);if(!MediaSource.isTypeSupported(a)){y[m.itag]="tpus";continue}}if(F||!m.drm_families||m.eotf!=="smpte2084"&&m.eotf!=="arib-std-b67"){a=void 0;var D={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},p=m.type.match(/codecs="([^"]*)"/); p=p?p[1]:"";m.audio_track_id&&(a=new g.ZV(m.name,m.audio_track_id,!!m.is_default));var L=m.eotf;m=new ven({itag:m.itag,url:m.url,codecs:p,width:Number(m.width),height:Number(m.height),fps:Number(m.fps),bitrate:Number(m.bitrate),audioItag:m.audio_itag,gf:L?D[L]:void 0,by:m.drm_families,J2:a,audioChannels:Number(m.audio_channels)});l[m.itag]=l[m.itag]||[];l[m.itag].push(m)}else y[m.itag]="enchdr"}return l}; fXU=function(n,Z){var F=Z.getId();n.fR[F]===Z&&(g.OG(n.h2[F]),delete n.fR[F],delete n.h2[F])}; WWK=function(n,Z,F){var y=n.Tx[Z],l=g.FF[Z];return AOj(n,y?y.qualityLabel:l?l+"p":"Auto",Z,F)}; lt=function(n,Z){return n.view?yz(Z,n.view.start,n.view.end):Z}; g.sx=function(n,Z){g.I.call(this);this.mQ=n;this.J=Z;this.T=NaN;this.S=this.C=this.started=!1;this.X=[];this.L=new g.e7(this.sync,250,this);g.S(this,this.L);this.V=new g.e7(this.sync,0,this);g.S(this,this.V);this.N=new rOp}; mE=function(n,Z){return g.YW(n.N,function(F){return F.B1==Z})}; g.aK=function(n){try{if(!n.N)return null;if("response"in n.N)return n.N.response;switch(n.Wr){case "":case "text":return n.N.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in n.N)return n.N.mozResponseArrayBuffer}return null}catch(Z){return null}}; L4=function(){return K4||DV?!!p4&&!!p4.platform:!1}; qg=function(n,Z,F,y,l){qA(n);var m=n.AG;uF(m,m[kt]|0,Z,(y==="0"?Number(F)===0:F===y)?void 0:F,l);return n}; xAP=function(n,Z,F){var y=new wJ(n.api,n.layoutId,n.interactionLoggingClientData,n.Hr,n.V.bind(n));y.oY(n.S);y.init(Tb("survey-question-single-select"),Z,F);n.api.B().j("supports_multi_step_on_desktop")?n.T=y:n.questions.push(y);g.S(n,y)}; RDe=function(n){vk.call(this,n);var Z=this;this.X=new Set;this.N={};this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"videodatachange",function(F){F==="newdata"&&(Z.api.V9("stationsEmbargo"),Z.api.V9("stationsMetadataUpdate"),Z.N={},Z.X.clear());F=Z.api.getVideoData().lT;var y=F.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");y&&GEU(Z,y,"stationsEmbargo");(F=F.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&GEU(Z,F,"stationsMetadataUpdate")}); this.events.G(n,g.HP("stationsEmbargo"),function(F){Z.api.nh(!0);var y,l=(y=Z.N[F.id])!=null?y:[];y=g.Y(l);for(l=y.next();!l.done;l=y.next())if(l=l.value.embargo)Z.api.hideControls(),Z.api.Mj("auth",2,oK(l.errorRenderer.reason),UQ({embargoed:1,id:F.id,idx:F.X,start:F.start})),(l=l.onTrigger)&&Z.api.LR("innertubeCommand",l)}); this.events.G(n,g.HP("stationsMetadataUpdate"),function(F){var y;F=(y=Z.N[F.id])!=null?y:[];y=g.Y(F);for(F=y.next();!F.done;F=y.next())(F=F.value.command)&&Z.api.LR("innertubeCommand",F)})}; g.PL=function(n){return n.XY.get("webgl")}; izY=function(n){n=n.toString();J6();gep(n)}; Qz=function(n,Z){return CbQ(Z.call(n))}; Y2=function(n){this.value=n}; u7Q=function(n,Z){Sf(n,1,Z.defaultPolicy);Sf(n,2,Z.smooth);Sf(n,3,Z.visibility);Sf(n,4,Z.yx);Sf(n,5,Z.performance);Sf(n,6,Z.speed)}; Ux=function(n){g.I.call(this);var Z=this;this.mQ=n;this.BP=0;this.C=this.X=this.S=!1;this.V=0;this.iY=this.mQ.B();this.videoData=this.mQ.getVideoData();this.T=g.jf(this.iY.experiments,"html5_delayed_retry_count");this.N=new g.e7(function(){Z.mQ.Mh()},g.jf(this.iY.experiments,"html5_delayed_retry_delay_ms")); g.S(this,this.N)}; Ex=function(n,Z){try{Z={detail:"pr."+Z},(Ng(n.iY)||h6(n.iY)==="TVHTML5_FOR_KIDS")&&n.iY.j("html5_reload_by_kabuki_app")?n.mQ.Mj("qoe.restart",1,void 0,UQ(Z),"7"):(n.FI("qoe.restart",Z),window.location.reload())}catch(F){}}; g.Vz=function(n,Z,F){F=n.hF===null?n.Er.hF(Z,F,n.D4[0].type):n.hF;if(n.N){Z=F?Ox(61,n.N,Z.W4):n.N;var y=new cL(Z);y.get("alr")||y.set("alr","yes");n.X&&bzQ(y,n.X)}else/http[s]?:\/\//.test(n.X)?y=new cL(new g.yD(n.X)):(y=Se(n.Er,F,Z),n.X&&bzQ(y,n.X));(Z=n.range)?y.set("range",Z.toString()):n.D4[0].bY.SN()&&n.D4.length===1&&n.D4[0].N&&y.set("range",n.D4[0].N+"-");n.requestId&&y.set("req_id",n.requestId);isNaN(n.DC)||y.set("headm",n.DC.toString());isNaN(n.S)||y.set("mffa",n.S+"ms");n.urlParams&&g.l7(n.urlParams, function(l,m){y.set(m,l)}); return y}; A6=function(n,Z){var F=n.mQ.Rs();return F.isInline()&&!Z.d4?new vL(0,480,!1,"v"):YA(Z)?IK:F.isBackground()&&of()/1E3>60&&!g.f4(n.Y)?new vL(0,360,!1,"v"):IK}; WL=function(n,Z){n.N-=Z;n.register>>=Z}; Gb=function(n,Z){g.dV.call(this,g.B0({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.rJ.o$);this.W=n;this.Fp=Z;g.gi(this.element,"ytp-audio-settings-menu-item");this.fJ=new g.ko(n,void 0,"Audio");this.countLabel=new g.R({U:"div",D:[{U:"span",E8:"Audio"},{U:"span",K:"ytp-menuitem-label-count",E8:"{{content}}"}]});n.j("web_settings_menu_icons")&&this.setIcon({U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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.j9=new x2(n,this.Fp,this);g.S(this,this.j9);this.G(n,"settingsMenuInitialized",this.lP.bind(this));this.G(n,"videodatachange",this.lP.bind(this));g.S(this,this.countLabel);g.wK(this,this.countLabel);this.Fp.Dx(this);this.G(n,"onPlaybackAudioChange",this.V_);this.listen("keydown",this.W1);this.listen("click",this.open)}; XB8=function(n){return n.W.B().j("html5_enable_vod_slar_with_notify_pacf")}; RK=function(n){var Z={};n=n.split("\r\n");for(var F=0;F=0&&(Z in n.N||(n.N[Z]=new BL),n.N[Z].PW(F,y))}; Mg=function(n){this.AG=UO(n)}; B73=function(n,Z){return g.YW(n.X,function(F){return F.UZ()==2&&F.B1==Z})}; $r=function(n){for(var Z=0,F=n.N,y=F+10,l=n.X;F0}; yqi=function(n){var Z=g.S7.apply(1,arguments);n.args||(n.args=[]);Array.isArray(n.args)&&n.args.push.apply(n.args,g.t(Z))}; sdP=function(n){n=g.Y(g.qZ(n,!0));for(var Z=n.next();!Z.done;Z=n.next())if(lQp(Z.value))return!0;return!1}; w5=function(n,Z){this.intervalMs=n;this.callback=Z;this.enabled=!1;this.N=function(){return g.O7()}; this.X=this.N()}; m97=function(n){for(var Z=new Set,F=g.Y(Object.values(n)),y=F.next();!y.done;y=F.next())y=y.value,y.length&&(y=y[0],y.height&&y.codecs.startsWith("vp09")&&Z.add(y.height));F=[];if(Z.size){y=g.Y(Object.keys(n));for(var l=y.next();!l.done;l=y.next())if(l=l.value,n[l].length){var m=n[l][0];m.height&&Z.has(m.height)&&!m.codecs.startsWith("vp09")&&F.push(l)}}Z=g.Y(F);for(F=Z.next();!F.done;F=Z.next())delete n[F.value]}; g.aQY=function(n){return n.data["Serialized-State"]?n.data["Serialized-State"]:""}; T$=function(n){return n===void 0?n:Number(n)?Ii(n,3):0}; KlP=function(n){function Z(F){F.stack&&F.stack.indexOf("player")!==-1&&n.Z4().Rg(F)} o4.subscribe("handleError",Z);PJ.push(Z);return function(){o4.unsubscribe("handleError",Z);var F=PJ.indexOf(Z);F!==-1&&PJ.splice(F,1)}}; QB=function(n){Jv.call(this,n)}; D98=function(n,Z){if(n.N==0)if(n.T){var F=n.T;if(F.X){for(var y=0,l=null,m=null,a=F.X;a&&(a.V||(y++,a.N==n&&(l=a),!(l&&y>1)));a=a.next)l||(m=a);l&&(F.N==0&&y==1?D98(F,Z):(m?(y=m,y.next==F.V&&(F.V=y),y.next=y.next.next):p03(F),LlU(F,l,3,Z)))}n.T=null}else E2(n,3,Z)}; Uh=function(n,Z,F,y,l,m){m=m===void 0?new Yr:m;SZ.call(this,Z,F,y);this.Zv=l;this.yf=0;this.FH={};this.kd=new q73;this.Yh={};this.B1="";this.yg=null;this.IW=!1;this.N=[];this.zW=m.X();this.C=m.T();this.V=null;this.T=-1;this.r5=this.Pr=void 0;this.Tx=this.Ns=0;this.zx=-1;this.hG=this.xi=!1;this.Wr=this.L=this.X=this.Jf=this.mJ=0;new jZ;this.lY=this.aY=0;this.fR=-1;this.UD=0;this.J=g.ha;this.w5=[this.S$()];this.kV=2;this.xe={};this.xe.pause="p";this.xe.resume="r";this.xe.skip="s";this.xe.mute="m";this.xe.unmute= "um";this.xe.exitfullscreen="ef";this.S=null;this.d5=this.Yi=!1;this.SG=Math.floor(Date.now()/1E3-1704067200);this.jT=0}; KX=function(n,Z){n=g.Y(n.N.values());for(var F=n.next();!F.done;F=n.next()){F=g.Y(F.value);for(var y=F.next();!y.done;y=F.next())if(y=y.value,y.layoutId===Z)return y}wU("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.$q(Z)),layoutId:Z})}; w03=function(n,Z){n.SO("ismp_p");n.X=Z}; dk=function(){var n=yp();if(n.C>0||n.L)return!0;n=J6().X.isVisible();var Z=NZ(hv)===0;return n||Z}; Eh=function(n,Z){Z=~Z;n?n=~n+1:Z+=1;return[n,Z]}; TVp=function(n){g.Oh("yt-player-bandwidth",n,2592E3)}; g.cJ=function(n,Z,F,y){y?n.Pr[y]=n.T:n.Pr=[n.T];n.C=Z||0;n.S=F||0}; g.vJ=function(n){if(!(n.N.length<=1)){var Z=n.N.pop(),F=n.N[0];n.N=[F];VB(n,Z,F,!0)}}; f7=function(n,Z){if(g.I4(n.T,Z))return n.T[Z];if(n=n.N[Z])return n.getValue()}; oo7=function(n,Z){var F=n.JG.getAvailablePlaybackRates();Z=Number(Z.toFixed(2));n=F[0];F=F[F.length-1];Z<=n?Z=n:Z>=F?Z=F:(n=Math.floor(Z*100+.001)%5,Z=n===0?Z:Math.floor((Z-n*.01)*100+.001)/100);return Z}; QdY=function(n){for(var Z="",F=Object.keys(n),y=0;y0){var m=Z.end.toString();l.forEach(function(a){(a=a.config&&a.config.adPlacementConfig)&&a.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&a.adTimeOffset&&a.adTimeOffset.offsetEndMilliseconds==="-1"&&a.adTimeOffset.offsetEndMilliseconds!==m&&(a.adTimeOffset.offsetEndMilliseconds=m)}); y.map(function(a){return g.e(a,WJ)}).forEach(function(a){var D; (a=a==null?void 0:(D=a.slotEntryTrigger)==null?void 0:D.mediaTimeRangeTrigger)&&a.offsetEndMilliseconds==="-1"&&(a.offsetEndMilliseconds=m)})}return{U3:l, adSlots:y,sB:!1,ssdaiAdsConfig:n.ssdaiAdsConfig}}; g.Ya=function(n){return n.N?n.N.readyState:0}; jd7=function(n,Z){return n.S?new Bk(Math.max(Z.top+n.S.top,Z.top),Math.min(Z.left+n.S.right,Z.right),Math.min(Z.top+n.S.bottom,Z.bottom),Math.max(Z.left+n.S.left,Z.left)):Z.clone()}; G$=function(n,Z){try{if(Z.length){n.Ns||(n.Ns=$1());var F=U9Y(Z),y=L13(n.element,n.X.N.T),l=y.x,m=y.y;n.T=new Bk(Math.round(m),Math.round(l)+F.boundingClientRect.width,Math.round(m)+F.boundingClientRect.height,Math.round(l));n.N=jd7(n,n.T);var a=NVi(F.intersectionRect);n.C=r5(a,n.T.left-a.left,n.T.top-a.top)}}catch(D){n.unobserve(),xr(299,D)}}; g5=function(n,Z){for(var F=[],y=g.Y(n.uN.values()),l=y.next();!l.done;l=y.next())l=l.value,l.trigger.N===Z.layoutId&&F.push(l);F.length&&R4(n.N(),F)}; U0=function(n){var Z,F,y;return((Z=n.playerResponse)==null?void 0:(F=Z.playerConfig)==null?void 0:(y=F.compositeVideoConfig)==null?void 0:y.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; OZe=function(n,Z,F){var y;return g.A(function(l){if(l.N==1)return n.SO("oprd_s"),hJQ(n)?g.x(l,Eon(n.f7,Z,F),3):(y=n.f7.decrypt(Z,F),l.ST(2));l.N!=2&&(y=l.X);n.SO("oprd_c");return l.return(y)})}; Cj=function(n){for(;n.N.N;)try{var Z=n.X(n.N);if(Z)return n.N.J=!1,{value:Z.value,done:!1}}catch(F){n.N.X=void 0,iP(n.N,F)}n.N.J=!1;if(n.N.T){Z=n.N.T;n.N.T=null;if(Z.ih)throw Z.us;return{value:Z.return,done:!0}}return{value:void 0,done:!0}}; v2=function(n,Z){cq7(Z);this.N=n;if(n!=null&&n.length===0)throw Error("ByteString should be constructed with non-empty values");}; VTf=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}}; mTf=function(){this.N=new voe;this.X="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; uP=function(n,Z,F,y){F=F===void 0?!0:F;y=y===void 0?function(){return!0}:y; return function(l){var m=l[n];if(Array.isArray(m)&&y(l))return IQi(m,Z,F)}}; Tj=function(n){for(var Z=n.videoData.N,F=g.Y(Object.entries({cpn:n.videoData.clientPlaybackNonce,c:n.Y.N.c,cver:n.Y.N.cver})),y=F.next();!y.done;y=F.next()){var l=g.Y(y.value);y=l.next().value;l=l.next().value;for(var m=g.Y(Object.values(Z.N)),a=m.next();!a.done;a=m.next())fQp(a.value.Er,y,l);m=void 0;(m=Z.Pr)==null||fQp(m,y,l)}y=n.Y;F=n.videoData;m=n.zN;Z=new g.Aqi(y);l=WlQ({hasSubfragmentedFmp4:F.hasSubfragmentedFmp4,oy:F.oy});Z.L=l;Z.zx=F.maxReadAheadMediaTimeMs/1E3||Z.zx;m.T.lH()===m.policy.T? Z.SG=10:Z.SG=F.minReadAheadMediaTimeMs/1E3||Z.SG;Z.yQ=F.readAheadGrowthRateMs/1E3||Z.yQ;F.FN&&(Z.C=!0,Z.XH=!0);Z.tY=!bP();g.f4(y)||!bP()?(Z.aY=8388608,Z.d5=524288,Z.eP=5,Z.fR=1048576,Z.MY=1.5,Z.Qg=4587520,X6()&&(Z.Qg=786432),Z.Pr*=1.1,Z.w5*=1.1,Z.y_=!0):y.X&&(Z.Pr*=1.3,Z.w5*=1.3);g.z$&&g.tv("crkey")&&(l=y.N.cmodel==="CHROMECAST/ANCHOVY",Z.aY=20971520,Z.d5=1572864,l&&(Z.Qg=812500,Z.p6=1E3,Z.Bi=5,Z.fR=2097152));g.kr&&(Z.y_=!0);y.supportsGaplessAudio()||(Z.fY=!1);eZ&&(Z.R0=!0);Z.GU=y.j("html5_peak_shave"); F.fetchType==="onesie"&&y.j("html5_disable_peak_shave_for_onesie")&&(Z.GU=!1);var D;l=(D=F.N)==null?void 0:a5(D);if(wk(F)){Z.Mt=!0;Z.rZ||(Z.WH=!0);Z.h2=!0;Z.OW=!0;Z.gQ=!0;if(F.latencyClass==="ULTRALOW"||F.latencyClass==="LOW"&&!y.j("html5_disable_low_pipeline"))Z.qa=2,Z.Ye=4;Z.Yc=F.defraggedFromSubfragments;g.HJ(F)&&(Z.mJ=!1);Z.z4=g.d5(y)}F.isAd()&&(Z.nD=0,Z.oA=0);Z.Kh=y.j("html5_ultra_low_latency_subsegment_readahead")&&F.latencyClass==="ULTRALOW";Z.T=y.eG();D=0;y.j("html5_live_use_alternate_bandwidth_window_sizes")&& (D=m.policy.N,F.isLivePlayback&&(D=g.jf(y.experiments,F.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":F.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||D));a=D;m.X.V=wk(F)?.5:0;if(!m.policy.X&&a&&(D=m.T,m=Math.round(a*D.resolution),m!==D.N)){a=Array(m);var p=Math.min(m,D.T?D.N:D.X),L=D.X-p;L<0&&(L+=D.N);for(var q=0;q0&&(Z.nF=F.un));Z.iU=F.Mn;Z.Tc=$n(y,{},F.T||void 0,nW(F));Z.hG=Z3(F)&&(g.Fu(y)||g.yb(y));YA(F)&&(Z.S=!0,Z.Fc=y.j("html5_estimate_live_partial_slice_duration"),g.f4(y)&&!g.N9()&&y.j("html5_force_audio_to_cover_video_keyframe")?Z.IW=!1:Z.IW=!0,D=y.experiments.OS(),Z.JT||F.isLivePlayback||!D.N.Wx(x9e)|| (Z.Rf=!0,D=D.N.Wx(G6U),Z.Sk=D),y.j("html5_sabr_report_partial_segment_estimated_duration")&&(Z.RB=!0),Z.N=!0,Z.Zf=y.j("html5_trigger_loader_when_idle_network"),Z.s1=y.j("html5_sabr_parse_live_metadata_playback_boundaries"),Z.s7=y.j("html5_consume_onesie_next_request_policy_for_sabr"),Z.rh=y.j("html5_sabr_report_next_ad_break_time"),Z.Di=y.j("html5_log_high_res_buffer_timeline")&&y.eG(),Z.GG=y.j("html5_remove_stuck_slices_beyond_max_buffer_limits"),Z.Hf=y.j("html5_gapless_sabr_btl_last_slice")&&eF(F), Z.ET=y.j("html5_reset_last_appended_slice_on_seek")&&eF(F),wk(F)?(Z.yV=!0,Z.ZZ=y.j("html5_disable_variability_tracker_for_live"),Z.xi=!0,y.j("html5_simplified_backup_timeout_sabr_live")&&(Z.e8=!0,Z.p6=Z.T4)):Z.ud=y.j("html5_probe_request_on_sabr_request_progress"),Z.ri=y.j("html5_serve_start_seconds_seek_for_post_live_sabr"),Z.oX=y.j("html5_flush_index_on_updated_timestamp_offset"),Z.Ns=YA(F),Z.sW=y.j("html5_ignore_partial_segment_from_live_readahead"),y.j("html5_include_partial_segment_for_jumbo_ll")&& MZ(F)&&(Z.sW=!1),Z.xU=y.j("html5_use_non_active_broadcast_for_post_live"),Z.jT=y.j("html5_use_centralized_player_time"),Z.Bx=y.j("html5_log_centralized_player_time"),Z.KP=y.j("html5_consume_onesie_sabr_seek"),Z.Tx=y.j("html5_enable_sabr_seek_loader_refactor"),Z.P_=g.jf(y.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),F.enableServerStitchedDai&&(Z.X=!0,Z.cq=y.j("html5_reset_server_stitch_state_for_non_sabr_seek"),Z.Ky=y.j("html5_remove_ssdai_append_pause")&&!F.Cq(),Z.Hx=y.j("html5_ssdai_log_ssevt_in_loader")|| y.j("html5_ssdai_log_ssevt_in_loader_200ms")||y.j("html5_ssdai_log_ssevt_in_loader_timers")||y.j("html5_ssdai_log_ssevt_in_loader_cuerange"),y.j("html5_ssdai_log_ssevt_in_loader_timers")?Z.Yi=1:y.j("html5_ssdai_log_ssevt_in_loader_200ms")?Z.Yi=3:y.j("html5_ssdai_log_ssevt_in_loader_cuerange")&&(Z.Yi=0)),Z.YQ=y.eG(),Z.O1=F.t2()&&y.j("html5_prebuffer_instream_media_live")&&y.j("html5_report_prefetch_requests"),Z.lM=!F.t2()&&y.j("html5_prebuffer_instream_media_vod")&&y.j("html5_report_prefetch_requests"), Z.uD=y.j("html5_disable_prebuffer_for_limited_memory_devices"));Z.KF=g.RJf(F);lJ(y.S,sN.BITRATE)&&(Z.Qg=NaN);if(D=g.jf(y.experiments,"html5_request_size_max_kb"))Z.fR=D*1024;y.S.T?Z.XW="; "+sN.EXPERIMENTAL.name+"=allowed":y.j("html5_enable_cobalt_tunnel_mode")&&g.N9()&&(y=sN.TUNNELMODE,Z.XW="; "+y.name+"="+y.valid);F=F.serverPlaybackStartConfig;(F==null?0:F.enable)&&(F==null?0:F.playbackStartPolicy)&&(Z.c7=!0,m4(Z,F.playbackStartPolicy,2));F=gop(n);n.cK.removeAll();a:{y=n.kA.RT;if(D=n.videoData.videoId)if(l= y.N.get(D)){y.N.remove(D);y=l;break a}y=void 0}n.loader=new g.ao(n,n.zN,Z,n.videoData.N,n.videoData.T,KW(n),F,n.videoData.enableServerStitchedDai,y,n.videoData.Pr);Z=n.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&n.videoData.isLivePlayback&&n.FW()?!0:n.k8&&D3(n);n.loader.initialize(n.getCurrentTime(),KW(n),Z);n.videoData.probeUrl&&(n.loader.d5=n.videoData.probeUrl);if(n.eC.length||n.k8)n.videoData.cotn||pW(n,!1);LW(n.WV,n.loader);n.CJ&&(iZ7(n.loader,new g.qh(n.CJ)),n.Xp("sdai",{sdl:1})); g.ww(n.videoData)&&(n=n.loader,n.policy.bT=n.policy.iB)}; b7=function(n){if(!K4&&!DV||!p4)return!1;for(var Z=0;Z>>8|a<<24,a+=m|0,a^=D+38293,m=m<<3|m>>>29,m^=a,p=p>>>8|p<<24,p+=D|0,p^=L+38293,D=D<<3|D>>>29,D^=p;m=[m,a];n[l]^=m[0];l+10&&n.KR&&PU(n.KR)&&(Z=Z.bY.info.video?n.KR.X:n.KR.N)&&!Z.vn()){Z=Z.qj();var y=ph(Z,n.getCurrentTime());y>=0&&(Z=n.getCurrentTime()-Z.start(y),F+=Math.max(0,Math.min(Z-n.policy.SR,n.policy.R$)))}n.policy.zx>0&&(F=Math.min(F,n.policy.zx));return F}; uWK=function(n){vk.call(this,n);this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"videoready",function(Z){if(n.getPresentingPlayerType()===1){var F,y,l={playerDebugData:{pmlSignal:!!((F=Z.getPlayerResponse())==null?0:(y=F.adPlacements)==null?0:y.some(function(m){var a;return m==null?void 0:(a=m.adPlacementRenderer)==null?void 0:a.renderer})), contentCpn:Z.clientPlaybackNonce}};g.xt("adsClientStateChange",l)}})}; bZ8=function(){var n=n===void 0?g.KQ:n;return(n=n.performance)&&n.now&&n.timing?Math.floor(n.now()+n.timing.navigationStart):g.O7()}; X0Q=function(n){return n.N.flavor==="widevine"&&n.videoData.j("html5_drm_cpi_license_key")}; tT8=function(n,Z,F,y){y=y===void 0?!1:y;Z=new zJ3(Z||n,F||n);return{x:n.x+((y===void 0?0:y)?Z.N*-1:Z.N)*.2,y:n.y+((y===void 0?0:y)?Z.X*-1:Z.X)*.2}}; HQ8=function(n,Z){return(Z=Qb(n,Z))&&n[Z]}; KXT=function(n,Z,F){n=g.Yn(n.N,function(y){return Z(y)}); return F?n:k68(n)}; AO=function(n){this.W=n}; Nh=function(n){var Z=Ss;n=n===void 0?eJp():n;var F=Object,y=F.assign,l=js(Z);var m=Z.N;try{var a=m.screenX;var D=m.screenY}catch(v){}try{var p=m.outerWidth;var L=m.outerHeight}catch(v){}try{var q=m.innerWidth;var w=m.innerHeight}catch(v){}try{var T=m.screenLeft;var P=m.screenTop}catch(v){}try{q=m.innerWidth,w=m.innerHeight}catch(v){}try{var J=m.screen.availWidth;var U=m.screen.availTop}catch(v){}m=[T,P,a,D,J,U,p,L,q,w];a=HZp(!1,Z.N.top);D={};var h=h===void 0?g.KQ:h;p=new UN;"SVGElement"in h&&"createElementNS"in h.document&&p.set(0);L=d9Q();L["allow-top-navigation-by-user-activation"]&&p.set(1);L["allow-popups-to-escape-sandbox"]&&p.set(2);h.crypto&&h.crypto.subtle&&p.set(3);"TextDecoder"in h&&"TextEncoder"in h&&p.set(4);h=g1i(p);Z=(D.bc=h,D.bih=a.height,D.biw=a.width,D.brdim=m.join(),D.vis=NZ(Z.X),D.wgl=!!G5.WebGLRenderingContext,D);F=y.call(F,l,Z);F.ca_type="image";n&&(F.bid=n);return F}; hf=function(n){if(/^f([1-9][0-9]*)$/.test(n))throw Error("ExpectedRegexMatch: "+n);}; ON=function(n){return EN(n,"custom_metric_viewable")}; BVo=function(n){var Z=Ii(n.Bj.jH,2),F=n.kd.T,y=n.Bj,l=cU(n),m=T$(l.V),a=T$(l.C),D=T$(y.volume),p=Ii(l.J,2),L=Ii(l.Tx,2),q=Ii(y.jH,2),w=Ii(l.w5,2),T=Ii(l.zx,2);y=Ii(y.cn,2);var P=n.B9().clone().round();n=n.Ow&&n.Ow.T?(n.Ow?n.Ow.T:null).clone().round():null;l=Vb(l,!1);return{Gj4:Z,e6:F,C$:m,UE:a,Ly:D,u9:p,z8:L,jH:q,OE:w,Sd:T,cn:y,position:P,Xs:n,JA:l}}; MT7=function(n){var Z={},F=n.W.getVideoData(1);Z.ASR=T3(function(){var y;return(y=F==null?void 0:F.eI)!=null?y:null}); Z.EI=T3(function(){var y;return(y=F==null?void 0:F.eventId)!=null?y:null}); return Z}; x$T=function(n,Z){return $PK(n,vU(Z,Ey,1,Vs),vU(Z,fo,2,Vs),Io(Z,3,void 0,Vs))}; ZUK=function(n,Z,F,y,l){this.listener=n;this.proxy=null;this.src=Z;this.type=F;this.capture=!!y;this.handler=l;this.key=++nA7;this.removed=this.FA=!1}; g.fW=function(n){this.N=this.L=this.S="";this.T=null;this.C=this.X="";this.J=!1;var Z;n instanceof g.fW?(this.J=n.J,g.Af(this,n.S),this.L=n.L,g.WU(this,n.N),g.rw(this,n.T),this.X=n.X,xn(this,n.V.clone()),this.C=n.C):n&&(Z=g.Gj(String(n)))?(this.J=!1,g.Af(this,Z[1]||"",!0),this.L=Ro(Z[2]||""),g.WU(this,Z[3]||"",!0),g.rw(this,Z[4]),this.X=Ro(Z[5]||"",!0),xn(this,Z[6]||"",!0),this.C=Ro(Z[7]||"")):(this.J=!1,this.V=new gw(null,this.J))}; ymn=function(n,Z,F){return n instanceof l2?Fqj(n,F,Z,1):n.DH(F)}; iJ=function(n){var Z={};n=n.split("&");n=g.Y(n);for(var F=n.next();!F.done;F=n.next())F=F.value.split("="),F.length===2&&(Z[F[0]]=F[1]);return Z}; uJ=function(n,Z,F,y){CW.call(this,n,{U:"div",K:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",Z,F,y);this.hide()}; ld3=function(n){if(n.nodeType==1)return pxn(n);n=n.changedTouches?n.changedTouches[0]:n;return new g.e_(n.clientX,n.clientY)}; adi=function(n){var Z=sFj(n);if(Z.binP)return Z.binP;Z.binP=Promise.resolve().then(function(){return fetch(n)}).then(function(F){if(!F.ok)throw Error("HTTP"+F.statusText); return F.arrayBuffer()}); Z.binP.then(function(F){Z.bin=F},function(){mPU(n)}); return Z.binP}; bJ=function(n,Z,F){if(Z==null)F.push("null");else{if(typeof Z=="object"){if(Array.isArray(Z)){var y=Z;Z=y.length;F.push("[");for(var l="",m=0;m0&&(this.items=[]);n=g.Y(n);for(F=n.next();!F.done;F=n.next())(F=F.value)&& this.items.push({video_id:F});this.length=this.items.length;if(n=Z.video)this.items=n.slice(0),this.loaded=!0}this.setShuffle(!!Z.shuffle);if(n=Z.suggestedQuality)this.quality=n;this.lG=es(Z,"playlist_");this.T=(Z=Z.thumbnail_ids)?Z.split(","):[]}; p6j=function(n,Z){var F=DPi(n);n.fJ||(n.fJ=new dw(n.api),g.S(n,n.fJ),g.y7(n.api,n.fJ.element,4));n.fJ.yP(Z);var y=BU(n.api.iN());y&&y.loaded&&F!==Z&&y.kT();Z&&n.api.Xp("sfn",{},!0)}; Mh=function(){this.J=!1;this.V=null;this.X=void 0;this.N=1;this.S=this.C=0;this.Pr=this.T=null}; $L=function(n,Z){Z!=n.pZ&&(n.pZ=Z,n=yp(),Z?n.C++:n.C>0&&n.C--)}; dT=function(n){return n}; q03=function(n,Z,F){var y;if(y=n.policy.Lx&&n.KR&&!n.KR.L&&!n.mQ.Gb())Z=Z.info.bY.info,y=Z.dV()&&n5(Z)&&Z.video&&Z.video.width<3840&&Z.video.width>Z.video.height;if(y&&(n.KR.L=!0,ZN('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return F=Lqf(F),n.policy.T&&n.Xp("sp4k",{s:!!F}),F}; c8=function(n,Z){Fk.call(this,n,Z,"chapterCueRange","View chapter");this.J=""}; g.y4=function(n){n.stop();n.bR()}; lM=function(n,Z,F){if(n.N==null)return Z.Jf|=4,!1;n=w6Q(n.N,F,Z);Z.Jf|=n;return n==0}; Yqe=function(n,Z,F){if(!QS7(n,Z))return 0;if(!n.F0||!isNaN(F)&&F>0)return 2;if(Z<0)return 1;F=n.pJ();return Z=43&&(n=!0);jFj("Firefox")<=40&&(n=!1);return n}; Q4=function(n,Z){Jw.call(this,1,arguments);this.timer=Z}; YL=function(n){vk.call(this,n);var Z=this;this.loaded=!1;this.overlay=null;this.events=new g.IS(n);g.S(this,this.events);this.N=new g.IS(n);g.S(this,this.N);this.events.G(n,"modulesCreated",function(){Z.En()&&Z.load()}); this.events.G(n,"modulesDestroyed",function(F){var y=!0;switch(F){case 2:case 3:y=!1;break;case 4:y=Z.api.getPresentingPlayerType()===1}y&&Z.unload()})}; EAf=function(n,Z,F,y){var l=n.eT,m=n.mQ.getVideoData(),a=n.nE,D=NkY({zN:n.zN,iY:m.B(),mQ:n.mQ,uQ:n.uQ,Ae:n.Ae,T8:n.T8,Lw:n.Lw,jg:n.jg,Hu:n.Hu,h0:n.h0,e0:n.e0,Hv:n.Hv,sabrLicenseConstraint:m.sabrLicenseConstraint,vt:n.vt,O3:n.O3,Xi:n.Xi,Tr:n.Tr,ZRY:!!a,authorizedFormats:m.authorizedFormats}),p=St(m,n.gK,n.nextRequestPolicy,n.u_,n.DS,n.o9,n.An);F&&Z&&(F=p.lZ?p.lZ.map(function(T){return T.type}):[],Z("sabr",{stmctxt:F.join("_"), unsntctxt:p.l3?p.l3.join("_"):""}));Z=n.KE;F=n.fE;if(F===void 0&&Z===void 0){var L;F=h67(l.t2,(L=n.e9)==null?void 0:L.video);var q;Z=h67(l.t2,(q=n.e9)==null?void 0:q.audio)}if(m.Ej)var w=m.Ej;m={Dw:D,YM:n.YM,KE:Z,fE:F,nE:a,videoPlaybackUstreamerConfig:w,T0:p};y&&n.MM?n.MM.length>0&&(m.MM=n.MM):n.g8&&(m.g8=n.g8);m.XI=n.XI;m.Mm=l.fR;return m}; AOj=function(n,Z,F,y){Z={U:"span",s8:y,D:[Z]};var l;y="ytp-swatch-color";if(n.T||n.N)y="ytp-swatch-color-white";F==="highres"?l="8K":F==="hd2880"?l="5K":F==="hd2160"?l="4K":F.indexOf("hd")===0&&F!=="hd720"&&(l="HD");l&&(Z.D.push(" "),Z.D.push({U:"sup",K:y,E8:l}));return Z}; OUp=function(n){return n.X.some(function(Z){return Z.N.isToggled()})||n.noneOfTheAbove.button.isToggled()}; cm3=function(n){var Z=1;n=n.split(":");for(var F=[];Z>0&&n.length;)F.push(n.shift()),Z--;n.length&&F.push(n.join(":"));return F}; VKK=function(n){var Z=ON(n)?"custom_metric_viewable":n;n=Qb(jt,function(F){return F==Z}); return UR[n]}; fd3=function(n,Z,F,y){Z=Z===void 0?[]:Z;n.CR();var l=[],m=[];Z=g.Y(Z);for(var a=Z.next();!a.done;a=Z.next())a=a.value,g.e(a,vAe)||g.e(a,IdU)?l.push(a):m.push(a);l=g.Y(l);for(Z=l.next();!Z.done;Z=l.next())NX(n,Z.value,F,y);m=g.Y(m);for(l=m.next();!l.done;l=m.next())NX(n,l.value,F,y)}; AmQ=function(n,Z,F,y){if(Z&&!Z.hasAttribute)n=new g.FV("showElementTooltip called with non-element.",Z.toString()),g.ZW(n);else{isNaN(n.V)||(n.V=NaN,n.bg.style.background="");g.hw(n.element,"ytp-tooltip-progress-bar-style");n.N=Z;n.J=!!y;y?n.T=y:(n.env.j("player_tooltip_data_title_killswitch")?n.T=Z.getAttribute("title"):n.T=Z.getAttribute("data-tooltip-title"),n.env.j("player_tooltip_data_title_killswitch")?Z.removeAttribute("title"):Z.removeAttribute("data-tooltip-title"));g.ER(n.element,"ytp-tooltip"); var l=Z.getAttribute("data-tooltip-image");l&&(n.image.style.backgroundImage="url("+l+")");y?n.update({ariaHidden:"false"}):n.update({ariaHidden:"true"});g.w4(n.element,"ytp-tooltip-image-enabled",!!l);Z=Z.getAttribute("data-tooltip-opaque");g.w4(n.element,"ytp-tooltip-opaque",!!Z);n.type=F;n.api.addEventListener("appresize",n.Ns);n.C&&(OR(n),n.fade.show(0))}}; cQ=function(n){switch(n){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return n}}; Wq7=function(n,Z,F,y,l,m){F=new lb([new V4(F),new K7(y)]);Z=$e(n.X.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Z);y={layoutId:Z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Gx:"core"};return{layoutId:Z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Nd:new Map,layoutExitNormalTriggers:[new vQ(function(a){return I3(n.X.get(),a)},l)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:F,lN:m(y),adLayoutLoggingData:void 0}}; JO=function(n){this.U8=n;this.X=new Map;this.N=new Map;this.T=new Map}; xPU=function(n,Z,F){F=F===void 0?null:F;var y=y===void 0?n.withCredentials:y;var l={},m=new URL(rmj(n));F&&(l.Authorization=F);n.sessionIndex&&(l["X-Goog-AuthUser"]=n.sessionIndex,m.searchParams.set("authuser",n.sessionIndex));n.pageId&&(Object.defineProperty(l,"X-Goog-PageId",{value:n.pageId}),m.searchParams.set("pageId",n.pageId));return{url:m.toString(),body:Z,rX:1,requestHeaders:l,requestType:"POST",withCredentials:y,timeoutMillis:n.timeoutMillis}}; g.Aw=function(n,Z){Z=Z===void 0?G0e:Z;a:if(Z=Z===void 0?G0e:Z,!(n instanceof mG)){for(var F=0;F0;return n.videoData.T&&n.videoData.T.N||n.videoData.isLivePlayback||!n.videoData.mF()?n.X>=0&&!Z&&(Z=n.mediaElement.VB(),Z.length||!F)?SF(Z,n.X-n.timestampOffset):F:F}; CBY=function(n){var Z=new oX;iF(n,function(F,y,l){Z[y]=WQ(l)}); Z.lW=n.lW;return Z}; l2=function(n,Z,F){this.client=n;this.requestKey=Z;this.N=F}; bUo=function(n){g.I.call(this);this.N=n;this.Xx=ucf(this)}; X6j=function(n,Z,F,y,l){if(y=y>1)n.V=!0;if((l===void 0?0:l)||isNaN(n.X))n.X=Z;if(n.N)Z!==n.mediaTime&&(n.N=!1);else if(Z>0&&n.mediaTime===Z){l=1500;if(n.Y.j("html5_buffer_underrun_transition_fix")){l=g.jf(n.Y.experiments,"html5_min_playback_advance_for_steady_state_secs");var m=g.jf(n.Y.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");l=l>0&&m>0&&Math.abs(Z-n.X)(y||!n.V?l:400)}n.mediaTime=Z;n.T=F;return!1}; rd=function(n){var Z=n.data.getInt32(n.offset+n.N);n.N+=4;return Z}; zIn=function(n,Z){n.V(Z);n.X<100&&(n.X++,Z.next=n.N,n.N=Z)}; S5=function(n){var Z=n.getStatus();a:switch(Z){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var F=!0;break a;default:F=!1}if(!F){if(Z=Z===0)n=g.Gj(String(n.L))[1]||null,!n&&g.KQ.self&&g.KQ.self.location&&(n=g.KQ.self.location.protocol.slice(0,-1)),Z=!z68.test(n?n.toLowerCase():"");F=Z}return F}; k0e=function(){var n=tKj;return function(){var Z=xL();if(!Z.resolve(new F0(n))){var F={};Gi(Z,(F.bZ=n,F.BX=n,F[R3]=void 0,F))}return Z.resolve(n)}}; gd=function(n){return n.playerVars!==void 0&&n.pings!==void 0&&n.externalVideoId!==void 0}; iM=function(n){this.AG=UO(n)}; e6n=function(n,Z){Z={cpn:n.provider.videoData.clientPlaybackNonce,sequenceNumber:Z,serializedWatchEndpointLoggingContext:n.provider.videoData.De};n.serializedHouseBrandPlayerServiceLoggingContext&&(Z.serializedHouseBrandPlayerServiceLoggingContext=vx(n.serializedHouseBrandPlayerServiceLoggingContext)||void 0);n.provider.videoData.playerResponseCpn&&(Z.playerResponseCpn=n.provider.videoData.playerResponseCpn);C5.length&&(Z.decoderInfo=C5);n.remoteControlMode&&(Z.remoteControlMode=n.remoteControlMode); n.remoteConnectedDevices.length&&(Z.remoteConnectedDevices=n.remoteConnectedDevices);return Z}; Bk8=function(n,Z,F,y){if(n instanceof g.O2)return HUP(n,Z,F,y),!0;if(n)try{var l=!!n.$goog_Thenable}catch(a){l=!1}else l=!1;if(l)return n.then(Z,F,y),!0;if(g.VO(n))try{var m=n.then;if(typeof m==="function")return dP7(n,m,Z,F,y),!0}catch(a){return F.call(y,a),!0}return!1}; ZH3=function(n,Z){var F=n.getCurrentTime(),y=n.isAtLiveHead(F);if(n.L&&y){var l=n.L;if(l.N&&!(F>=l.X&&F50&&l.X.shift())),l=n.N,MKe(l,F,Z===void 0?!0:Z),$aK(l,F),Z&&nkK(n,!0));y!==n.kV&&(Z=n.getCurrentTime()-n.Yi<=500,F=n.IW>=1E3,Z||F||(Z=n.mQ.g1,Z.qoe&&(Z=Z.qoe,F=g.kq(Z.provider), g.bM(Z,F,"lh",[y?"1":"0"])),n.kV=y,n.IW++,n.Yi=n.getCurrentTime()))}; y5Q=function(n,Z){this.X=n;this.T=Z;this.N=new F0j(n)}; Xk=function(n){for(var Z=n.length;--Z>=0;)n[Z]=0}; gmU=function(n){var Z=n.X;n=n.N;return n===""?Z:typeof n==="boolean"?n?Z:"":Array.isArray(n)?n.length===0?Z:Z+"="+n.join():Z+"="+(g.zi(["mtos","tos","p"],Z)?n:encodeURIComponent(n))}; l6f=function(n,Z){return Ai(n,3,Z)}; tw=function(n){this.AG=UO(n)}; kL=function(n,Z,F,y,l,m){l=l===void 0?[]:l;m=m===void 0?"toggle-button":m;var a=Tb("ytp-ad-toggle-button-input"),D={role:"button","aria-label":"{{tooltipText}}"};n.B().experiments.RY("fix_h5_toggle_button_a11y")&&(D.tabindex="0");D.role="checkbox";CW.call(this,n,{U:"div",s8:["ytp-ad-toggle-button"].concat(l),D:[{U:"label",K:"ytp-ad-toggle-button-label",Z:{"for":a},D:[{U:"span",K:"ytp-ad-toggle-button-icon",Z:D,D:[{U:"span",K:"ytp-ad-toggle-button-untoggled-icon",E8:"{{untoggledIconTemplateSpec}}"}, {U:"span",K:"ytp-ad-toggle-button-toggled-icon",E8:"{{toggledIconTemplateSpec}}"}]},{U:"input",K:"ytp-ad-toggle-button-input",Z:{id:a,type:"checkbox"}},{U:"span",K:"ytp-ad-toggle-button-text",E8:"{{buttonText}}"},{U:"span",K:"ytp-ad-toggle-button-tooltip",E8:"{{tooltipText}}"}]}]},m,Z,F,y);this.V=this.Vg("ytp-ad-toggle-button");this.N=this.Vg("ytp-ad-toggle-button-input");this.X=this.Vg("ytp-ad-toggle-button-icon");this.L=this.Vg("ytp-ad-toggle-button-untoggled-icon");this.S=this.Vg("ytp-ad-toggle-button-toggled-icon"); this.zx=this.Vg("ytp-ad-toggle-button-text");this.T=null;this.Tx=!1;this.hide()}; g.sX8=function(n){var Z=n.creation;n=n.expiration;return!!n&&ng.O7()}; ea=function(n,Z,F,y,l,m,a,D,p){g.I.call(this);this.V=n;this.C=Z;this.S=F;this.T=y;this.N=l;this.X=m;this.xs=a;this.U8=D;this.nR=p;this.dJ=!0}; mao=function(n){return n.action==="END_LINEAR_AD"||n.action==="END_LINEAR_AD_PLACEMENT"}; et=function(n){return n.width*n.height}; a68=function(n,Z){return HQ(n.clientMetadata,"metadata_ad_video_is_listed")?o5(n.clientMetadata,"metadata_ad_video_is_listed"):Z?Z.isListed:(wU("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; dd=function(n){return n.isPlaying()&&!g.b(n,16)&&!g.b(n,32)}; K0K=function(n,Z){n=g.Y(g.qZ(n,!0));for(var F=n.next();!F.done;F=n.next())if(F=F.value,lQp(F)){var y={potc:"1",pot:Z};F.url&&(F.url=TQ(F.url,y))}}; Lb=function(n,Z){Z=g.BQ(n,{playerType:Z});if(!Z)return n.qd.N.zc();Z=MX(n,Z);return $u(n,Z.zc(),Z)}; pPe=function(n,Z,F){F=F===void 0?{}:F;return DaK(n,Z,!1,F)}; L0P=function(n,Z,F,y,l){l=l===void 0?!1:l;var m=F.getVideoData(),a=Z.getVideoData();if(F.getPlayerState().isError())return{msg:"player-error"};var D=a.T;if(Z.FY()>y/1E3+1)return{msg:"in-the-past"};if(a.isLivePlayback&&!isFinite(y))return{msg:"live-infinite"};y=Z.HV();var p=null;y&&(p=l?y.N.played||n6([],[]):y.isView()?y.mediaElement.wF():y.wF());if(p&&p.length>12&&g.ZI(m))return{msg:"played-ranges"};if(!m.T)return null;if(!D)return{msg:"no-pvd-formats"};if(!m.T.N||!D.N)return{msg:"non-dash"};l=D.videoInfos[0]; y=m.T.videoInfos[0];n.Ns&&eF(a)&&(l=Z.XZ(),y=F.XZ());if(!l||!y)return{msg:"no-video-info"};if(n.C&&(Fa(l)||Fa(y)))return{msg:"av1"};Z=n.V&&a.pP()&&y1();if(y.containerType!==l.containerType)if(Z)a.Xp("sgap",{ierr:"container"});else return{msg:"container"};if(n.S&&!Z&&(y.vr!==l.vr||y.vr===""||l.vr===""))return{msg:"codec"};if(n.J&&y.video&&l.video&&Math.abs(y.video.width/y.video.height-l.video.width/l.video.height)>.01)return{msg:"ratio"};if(g.ZI(a)&&g.ZI(m))return{msg:"content-protection"};D=D.N[0]; m=m.T.N[0];F=D.audio;p=m.audio;if(F.sampleRate!==p.sampleRate&&!g.z$)if(Z)a.Xp("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:D.itag,cr:F.sampleRate,ni:m.itag,nr:p.sampleRate};return(F.numChannels||2)!==(p.numChannels||2)?{msg:"channel-count"}:n.L&&a.pP()&&l.video.fps!==y.video.fps?{msg:"fps"}:null}; p5=function(n,Z,F){n3.call(this,null,n,Z,F);this.L=n.isActive();this.J=0}; wPi=function(n,Z){if(!n.X.length)return!1;var F=n.N;n.N=qpf(n,Z===void 0?!1:Z);if(Z=F!==n.N)n.X=[],n.ue=0;return Z}; J53=function(n,Z){if(n.isDrm()){if(Z.info.bY.info.dV()){var F=new lY(g.sj(Z));if(mD(F,[408125543,374648427,174,28032,25152,20533,18402])){var y=ar(F,!0);F=y!==16?null:K6(F,y)}else F=null;y="webm"}else Z.info.L=Tnn(g.sj(Z)),F=okU(Z.info.L),y="cenc";F&&F.length&&(F=new DI(F,y),n.policy.al&&g.W2(Z.info.bY.info)&&(y=PX8(g.sj(Z)))&&(F.X=y),F.dV=Z.info.bY.info.dV(),Z.N&&Z.N.cryptoPeriodIndex&&(F.cryptoPeriodIndex=Z.N.cryptoPeriodIndex),Z.N&&Z.N.X&&(F.N=Z.N.X),n.loader.QJ(F))}}; p6=function(n){this.MO=n}; L6=function(n){this.AG=UO(n)}; QXY=function(n){q5("play",function(){n.api.playVideo()}); q5("pause",function(){n.api.pauseVideo()}); q5("seekbackward",function(){n.api.seekBy(-5*n.api.getPlaybackRate())}); q5("seekforward",function(){n.api.seekBy(5*n.api.getPlaybackRate())}); q5("seekto",function(Z){Z=Z.seekTime;Z!=null&&n.api.seekTo(Z)})}; Yp8=function(n){this.N=n;n.kR("/client_streamz/bg/po/csc",wo("cs"),g.l8("mk"))}; HV=function(){g.I.apply(this,arguments);this.X=1}; g.j_=function(n,Z,F){g.R.call(this,{U:"a",s8:[F?"ytp-next-button":"ytp-prev-button","ytp-button"],Z:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}",tabindex:"0"},D:[Spe(F,n.j("delhi_modern_web_player_icons"))]}); var y=this;this.W=n;this.N=F;this.playlist=this.videoData=null;this.C=!1;this.V=this.S=this.X=null;this.T=!1;this.tooltip=Z.aX();F?n.createClientVe(this.element,this,6193):n.createClientVe(this.element,this,6194);this.G(n,"fullscreentoggled",this.onVideoDataChange);this.G(n,"videodatachange",this.onVideoDataChange);this.G(n,"onPlaylistUpdate",this.onVideoDataChange);this.G(n,"onLoopRangeChange",this.onVideoDataChange);this.N||this.G(n,"appresize",this.UL);this.G(n,"mdxpreviousnextchange",function(){TP(y); y.UL()}); this.onVideoDataChange()}; jXf=function(n){var Z=or(n.N)>>>0;return cVK(n.N,Z)}; Uap=function(n,Z,F,y,l){this.callback=n;this.slot=Z;this.X=F;this.xs=y;this.U8=l;this.N=null}; h4e=function(n,Z,F,y,l){var m=n.eT;var a=n.policy.N,D=!1,p=-1,L;for(L in m.N){var q=PM(m.N[L].info.mimeType)||m.N[L].info.K6();if(y===q)if(q=m.N[L].index,q.Am(Z.O8)){D=q;var w=Z,T=D.HH(w.O8);T&&T.startTime!==w.startTime?(D.segments=[],D.TV(w),D=!0):D=!1;D?p=Z.O8:!Z.pending&&a&&(w=q.getDuration(Z.O8),w!==Z.duration&&(m.publish("clienttemp","mfldurUpdate",{itag:m.N[L].info.itag,seg:Z.O8,od:w,nd:Z.duration},!1),q.TV(Z),D=!0))}else q.TV(Z),D=!0}p>=0&&(a={},m.publish("clienttemp","resetMflIndex",(a[y? "v":"a"]=p,a),!1));m=D;NnP(n.VU,Z,y,m);n.T.AA(Z,F,y,l);Z.O8===n.eT.Nt&&m&&B2(n.eT)&&Z.startTime>B2(n.eT)&&(n.eT.ze=Z.startTime+(isNaN(n.timestampOffset)?0:n.timestampOffset),n.VU.isSeeking()&&n.VU.targetTime>>0;n=n.N;ti(n,n.N+Z)}break;case 5:n=n.N;ti(n,n.N+4);break;case 3:Z=n.T;do{if(!Ete(n))throw Error();if(n.X==4){if(n.T!=Z)throw Error();break}wn(n)}while(1);break;default:throw Error();}}; CXp=function(n){if(!Array.isArray(n))for(var Z=n.length-1;Z>=0;Z--)delete n[Z];n.length=0}; u9o=function(n){n=n.X;return n.cancelAnimationFrame||n.cancelRequestAnimationFrame||n.webkitCancelRequestAnimationFrame||n.mozCancelRequestAnimationFrame||n.oCancelRequestAnimationFrame||n.msCancelRequestAnimationFrame||null}; HM=function(n,Z){var F=this;this.D4=n;this.V=this.N=null;this.S=this.DC=NaN;this.hF=this.requestId=null;this.vx={lLp:function(){return F.range}}; this.Er=n[0].bY.Er;this.X=Z||"";this.D4[0].range&&this.D4[0].X>0&&(hdi(n)?(this.range=bHP(n),this.T=this.range.length):(this.range=this.D4[this.D4.length-1].range,this.T=XPP(n)))}; BM=function(n){this.AG=UO(n)}; g.$V=function(n){switch(M5(n)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; yZ=function(n){var Z;g.nR()?Zf()==n&&(Z=document):Z=n;return Z&&(n=FH(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Z))?(Z=n.call(Z),Z instanceof Promise?Z:Promise.resolve()):Promise.resolve()}; sT=function(n){var Z=nU();n=Z?Z.createScriptURL(n):n;return new lR(n)}; Jm=function(n,Z){mS(n,"cat",Z)}; z48=function(){return Object.values(g.BT("client-screen-nonce-store",{})).filter(function(n){return n!==void 0})}; ax=function(n){var Z=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(n)&&!Z.test(n)}; tF7=function(n,Z){n=n.app.Z4();var F=n.getPlayerState();Z.isOrWillBePlaying()&&!F.isOrWillBePlaying()?n.playVideo():Z.isPaused()&&!F.isPaused()&&n.pauseVideo()}; KR=function(n,Z){return n.W.getPlayerStateObject(Z)}; pR=function(){Df.call(this)}; kAK=function(n,Z){var F=n.zo({playerType:1});if(F){if(F.getVideoData().clientPlaybackNonce===Z)return F;if((n=n.mf.N)&&n.getVideoData().clientPlaybackNonce===Z)return n}return null}; LR=function(){this.mappings=new e48}; g.rw=function(n,Z){if(Z){Z=Number(Z);if(isNaN(Z)||Z<0)throw Error("Bad port number "+Z);n.T=Z}else n.T=null}; daQ=function(n,Z){var F=document.createElement("img");n.crossOrigin&&(F.crossOrigin=n.crossOrigin);F.src=n.levels[Z.Ku].Uw(Z.bj);F.onload=function(){var y=Z.Ku,l=Z.bj;n.N!==null&&(n.N.onload=null,n.N=null);y=n.levels[y];y.loaded.add(l);HH3(n);var m=y.columns*y.rows;l*=m;y=Math.min(l+m-1,y.wR()-1);l=[l,y];n.publish("l",l[0],l[1])}; return F}; q6=function(n){this.AG=UO(n)}; BnU=function(n,Z){var F;return g.A(function(y){if(!Z)return y.return(Z);F=new g.w1(n.X);return y.return(F.encrypt(Z,n.N))})}; ox=function(n){if(n<0){Tu(0-n);var Z=g.Y(Eh(b8,XV));n=Z.next().value;Z=Z.next().value;b8=n>>>0;XV=Z>>>0}else Tu(n)}; MF7=function(n){g.W6(n)?n=g.rU(n):(n=g.XP(n),g.ov(n,"cssText"));return n}; $KU=function(n,Z){this.videoData=n;this.N=Z}; jy=function(n){n.charAt(0)==="?"&&(n=n.substring(1));return zj(n,"&")}; UT=function(n,Z){for(;n;n=n.parentNode){var F=n.getElementsByTagName(Z);if(F.length>0)return F[0]}return null}; hR=function(n,Z,F){return N6(n,n.state|Z,null,F===void 0?null:F)}; nqj=function(n){n=n.document;n=n.compatMode=="CSS1Compat"?n.documentElement:n.body;return new g.Kz(n.clientWidth,n.clientHeight)}; Ix=function(n){g.I.call(this);var Z=this;this.componentId="";this.N=[];this.r5="";this.pageId=null;this.aY=this.Wr=-1;this.J=this.experimentIds=null;this.C=this.V=0;this.Pr=null;this.Tx=this.w5=0;this.fR=1;this.timeoutMillis=0;this.zx=!1;this.logSource=n.logSource;this.mT=n.mT||function(){}; this.T=new ET(n.logSource,n.w_);this.network=n.network||null;this.w4=n.w4||null;this.L=n.aIr||null;this.sessionIndex=n.sessionIndex||null;this.U_=n.U_||!1;this.logger=null;this.withCredentials=!n.pX;this.w_=n.w_||!1;this.Ns=!this.w_&&!!H8()&&!!H8().navigator&&H8().navigator.sendBeacon!==void 0;this.jT=typeof URLSearchParams!=="undefined"&&!!(new URL(OT())).searchParams&&!!(new URL(OT())).searchParams.set;var F=Z_f(new cy);VZ(this.T,F);this.S=new g.CH(1E4,3E5,.1);n=FA8(this,n.bO);this.X=new w5(this.S.getValue(), n);this.lY=new w5(6E5,n);this.U_||this.lY.start();this.w_||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){vy(Z);var y;(y=Z.Pr)==null||y.flush()}}),document.addEventListener("pagehide",function(){vy(Z); var y;(y=Z.Pr)==null||y.flush()}))}; fR=function(n){var Z,F,y,l,m;return!((Z=n.get("active_view_viewable"))==null||!Z.length)||!((F=n.get("active_view_measurable"))==null||!F.length)||!((y=n.get("active_view_fully_viewable_audible_half_duration"))==null||!y.length)||!((l=n.get("audio_audible"))==null||!l.length)||!((m=n.get("audio_measurable"))==null||!m.length)}; lJU=function(n){return yLi(n,function(Z){return g.AR(Z,"ytp-ad-has-logging-urls")})}; s6U=function(n){if(n.mD()){if(!Wy(n,408125543))return!1;ar(n,!0)}return!0}; DKe=function(n,Z,F){n.button==null?g.ZW(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(n.X&&g.gi(n.X.element,"ytp-ad-info-hover-text-short"),(Z=Z&&Z.serviceEndpoint&&g.e(Z.serviceEndpoint,mKj)||null)?(aJ8(n,Z,F),n.button.listen("click",function(){n.N&&!n.N.XJ&&(n.N.show(),KAn(n))})):n.button.listen("click",function(){return KAn(n)}))}; r1=function(n,Z,F,y,l){CW.call(this,n,{U:"div",K:"ytp-ad-info-dialog-background",D:[{U:"div",K:"ytp-ad-info-dialog-container",D:[{U:"div",K:"ytp-ad-info-dialog-form",Z:{role:"dialog",tabindex:"-1"},D:[{U:"div",K:"ytp-ad-info-dialog-title",E8:"{{title}}"},{U:"ul",K:"ytp-ad-info-dialog-ad-reasons"},{U:"div",K:"ytp-ad-info-dialog-message"},{U:"div",K:"ytp-ad-info-dialog-mute-container"},{U:"div",K:"ytp-ad-info-dialog-confirm-container",D:[{U:"button",K:"ytp-ad-info-dialog-confirm-button",E8:"{{confirmLabel}}"}]}]}]}]}, "ad-info-dialog",Z,F,y);this.N=this.X=null;this.L=this.Vg("ytp-ad-info-dialog-confirm-button");this.yg=this.Vg("ytp-ad-info-dialog-mute-container");this.aY=this.Vg("ytp-ad-info-dialog-message");this.jT=this.Vg("ytp-ad-info-dialog-ad-reasons");this.V=this.T=null;this.zx=l;this.S=null;this.r5=!1;this.Tx=null;this.hide()}; xV=function(n){g.R.call(this,{U:"div",K:"ytp-spinner",D:[ZC(),{U:"div",K:"ytp-spinner-message",E8:"If playback doesn't begin shortly, try restarting your device."}]});this.api=n;this.message=this.Vg("ytp-spinner-message");this.N=new g.e7(this.show,500,this);g.S(this,this.N);this.G(n,"presentingplayerstatechange",this.onStateChange);this.G(n,"playbackstalledatstart",this.X);this.rM(n.getPlayerStateObject())}; Gu=function(n){Df.call(this);this.V=n}; pOn=function(n){if(!n.api.B().SG){var Z=n.api.getVideoData(),F=new g.zQ("Subscribe",null,"Subscribed",null,!0,!1,Z.z6,Z.subscribed,"channel_avatar",null,n.api,!0);n.api.createServerVe(F.element,n);var y;n.api.setTrackingParams(F.element,((y=Z.subscribeButtonRenderer)==null?void 0:y.trackingParams)||null);n.G(F.element,"click",function(){n.api.logClick(F.element)}); n.subscribeButton=F;g.S(n,n.subscribeButton);n.subscribeButton.oY(n.element)}}; Qx=function(n){if(!isNaN(n.lY))return n.lY;var Z=n.N,F;for(F in Z){var y=Z[F].index;if(y.isLoaded()&&!PM(Z[F].info.mimeType)){Z=0;for(F=y.RA();F<=y.pJ();F++)Z+=y.getDuration(F);Z/=y.Se();Z=Math.round(Z/.5)*.5;y.Se()>10&&(n.lY=Z);return Z}if(n.isLive&&(y=Z[F],y.H7))return y.H7}return NaN}; Rx=function(n,Z,F){var y=Z*n.T.N*1E3;for(var l=-1,m=g.Y(n.N),a=m.next();!a.done;a=m.next())a=a.value,y>a.startTime&&a.width>0&&l++;y=l<0?0:l;l=F.N-nb(n)*n.jT;return Z*l+nb(n)*y+F.V}; LAT=function(n){n=g.g1(n);return n!==null?n.split(".").reverse():null}; NG=function(n,Z,F,y){iR.call(this,n);this.V=Z;this.C=F;this.N="m";this.X="x";this.S=0;CR(this,y)}; qOn=function(n){return g.YW(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Z){return"on"+Z.toLowerCase()in n})}; kV=function(n){var Z,F,y,l,m,a,D,p,L,q,w,T,P,J,U;return g.A(function(h){switch(h.N){case 1:Z=void 0;n.V++;F=new g.uR;n.Lq instanceof bR&&n.Lq.V.push(F.promise);if(!n.Ed){h.ST(2);break}y=new g.uR;setTimeout(function(){return void y.resolve()}); return g.x(h,y.promise,2);case 2:return l=n.logger.share(),g.RX(h,4,5),n.state=5,m={},a=[],g.x(h,gn(n.Lq.snapshot({d6:m,P2:a}),n.z0.fEQ,function(){return Promise.reject(new hg(15,"MDA:Timeout"))}),7); case 7:D=h.X;if(n.CR())throw new hg(n.N?20:32,"MDA:Disposed");p=a[0];n.state=6;return g.x(h,gn(ymn(n.Rt,l,D),n.z0.Qx,function(){return Promise.reject(new hg(10,"BWB:Timeout"))}),8); case 8:L=h.X;if(n.CR())throw new hg(n.N?20:32,"BWB:Disposed");n.state=7;Z=XH(l,function(){var V=wOT(n,L,F,p);V.T.promise.then(function(){return void n.S()}); return V},"i"); case 5:g.cJ(h);l.dispose();g.zu(h,6);break;case 4:q=g.d4(h);(w=Z)==null||w.dispose();if(!n.X){T=TiU(n,q);F.resolve();var v;if(v=n.Lq instanceof bR&&n.V<2)a:if(q instanceof hg)v=q.code!==32&&q.code!==20&&q.code!==10;else{if(q instanceof tR)switch(q.code){case 2:case 13:case 14:case 4:break;default:v=!1;break a}v=!0}if(v)return P=(1+Math.random()*.25)*(n.N?6E4:1E3),J=setTimeout(function(){return void n.S()},P),n.addOnDisposeCallback(function(){return void clearTimeout(J)}),h.return(); n.X=T}l.iL(n.N?13:14);n.T.reject(n.X);return h.return();case 6:n.state=8,n.V=0,(U=n.N)==null||U.dispose(),n.N=Z,n.T.resolve(),g.zA(h)}})}; oqi=function(n,Z,F,y,l,m){y.index&&(l.playlistIndex=String(Number(y.index)+1));l.videoId=F?F:"";Z&&m.RY("embeds_enable_per_video_embed_config")?l.serializedThirdPartyEmbedConfig=Z:n&&(l.serializedThirdPartyEmbedConfig=n)}; JL8=function(n){n=g.Y(n||[]);for(var Z=n.next();!Z.done;Z=n.next()){var F=g.e(Z.value,WJ);if(F===void 0||!PcK(F))break;Z=void 0;F=(Z=F.fulfillmentContent)==null?void 0:Z.fulfilledLayout;if((Z=g.e(F,ey))&&Hy(Z))return!0}return!1}; YGU=function(n,Z,F,y,l,m,a,D,p,L){this.FJ=n;this.tG=Z;this.uY=F;this.V=y;this.TN=l;this.X=m;this.T=a;this.Cn=D;this.U8=p;this.N=L}; Q6Y=function(){var n=g.PT();return n?IF("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(Z){return d1(n,Z)})||d1(n,"OMI/")&&!d1(n,"XiaoMi/")?!0:d1(n,"Presto")&&d1(n,"Linux")&&!d1(n,"X11")&&!d1(n,"Android")&&!d1(n,"Mobi"):!1}; M6=function(n,Z,F,y,l,m){By.call(this,n,{U:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",Z,F,y,l);this.Tx=m;this.V=!1;this.S=0;this.T=this.X=null;this.hide()}; g.I=function(){this.KF=this.KF;this.uH=this.uH}; $6=function(n,Z,F){n.N[Z]||(n.N[Z]=new Gu(F));return n.N[Z]}; YO7=function(n){var Z=n.mediaElement;nM()?n.LY.G(Z,"webkitpresentationmodechanged",n.sZY):window.document.pictureInPictureEnabled&&(n.LY.G(Z,"enterpictureinpicture",function(){n.OH(!0)}),n.LY.G(Z,"leavepictureinpicture",function(){n.OH(!1)})); Z2&&(n.LY.G(Z,"webkitbeginfullscreen",function(){n.XD(3)}),n.LY.G(Z,"webkitendfullscreen",function(){n.XD(0)}))}; SOU=function(n){var Z,F;n=(Z=n.N)==null?void 0:(F=Z.bannerData)==null?void 0:F.itemData;var y,l,m;return(n==null||!n.affiliateDisclaimer)&&(n==null?0:(y=n.exclusivesData)==null?0:y.exclusiveOfferLabelText)&&(n==null?0:(l=n.exclusivesData)==null?0:l.expirationTimestampMs)&&(n==null?0:(m=n.exclusivesData)==null?0:m.exclusiveOfferCountdownText)?!0:!1}; j67=function(){var n=Error();n.name="SecurityError";throw n;}; UK7=function(n){return g.Gc?"webkit"+n:n.toLowerCase()}; Ym=function(n,Z,F,y){return XH(n.logger,function(){return F?n.VH(Z,y):n.vM(Z,y)},n.N)}; Ft=function(n,Z){n.XX[n.pending++]=Z}; O_K=function(n){var Z=Z===void 0?NiY:Z;var F=n.w_?void 0:H8();F?hG8(F,Z).then(function(y){n.uach=Eqp(y!=null?y:"[]");y=yS(n);cV(y,lH,9,n.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; se=function(n,Z,F){for(var y=n.oH[F],l=F<<1;l<=n.YL;){lZ.N&&Z.reason==="b";y||l||F?(n.mQ.SU({reattachOnConstraint:y?"u":l?"drm":"perf",lo:Z.X,up:Z.N}), n.policy.UW||(n.V.N.X=!1)):(n.policy.UW&&(n.V.N.X=!1),mx(n))}}else!vqQ(n.N,Z)&&n.videoTrack&&(l=n.N.N,ac(n,IJo(n.N,Z)),KM(n),F=Z.isLocked()&&Z.reason==="m"&&n.N.Tx,y=n.policy.iU&&Z.reason==="l"&&D2(n.videoTrack),Z=l.N>Z.N&&Z.reason==="b",l=n.N.yg&&!y1(),F||y||Z||l?n.mQ.SU({reattachOnConstraint:F?"u":y?"drm":l?"codec":"perf"}):mx(n))}}; LM=function(n,Z){n.element.classList.toggle("ytp-volume-popover-hovering",Z);n.isVisible=Z;(n=n.element.closest(".ytp-chrome-bottom"))&&n.classList.toggle("ytp-volume-popover-showing",Z)}; ALf=function(n,Z,F,y){Z={bC:[],DF:Z};n=g.Y(n);for(var l=n.next();!l.done;l=n.next())if((l=l.value)&&l.renderer!=null){var m=l.renderer;if(!F.W.B().j("html5_enable_vod_lasr_with_notify_pacf")){var a=void 0,D=void 0,p=void 0,L=void 0,q=y;g.e((L=m.sandwichedLinearAdRenderer)==null?void 0:L.adVideoStart,$a)?(a=g.e((p=m.sandwichedLinearAdRenderer)==null?void 0:p.adVideoStart,$a),a=fJo(a,q),g.qJ(m.sandwichedLinearAdRenderer.adVideoStart,$a,a)):g.e((D=m.linearAdSequenceRenderer)==null?void 0:D.adStart,$a)&& (p=g.e((a=m.linearAdSequenceRenderer)==null?void 0:a.adStart,$a),a=fJo(p,q),g.qJ(m.linearAdSequenceRenderer.adStart,$a,a))}Z.bC.push(l)}return Z}; wQ=function(n,Z,F){var y=0;(F===void 0?0:F)&&(Z-=WA3(n,Z)*nb(n));F=g.Y(n.N);for(var l=F.next();!l.done;l=F.next()){l=l.value;if(Z>l.width)Z-=l.width;else break;y++}return y===n.N.length?y-1:y}; g.rL8=function(){return g.Yn(T9(16),function(n){return(n&15).toString(16)}).join("")}; xKi=function(n,Z,F){return n.call.apply(n.bind,arguments)}; oc=function(n){this.value=n}; P5=function(n){this.AG=UO(n)}; Jn=function(n,Z){if(n.byteLength-Z<8)return!1;var F=n.getUint32(Z);if(F<8||n.byteLength-Z122)return!1}return!0}; g.QS=function(n,Z){return n.N?n.N.getResponseHeader(Z):null}; hG8=function(n,Z){Z=Z===void 0?NiY:Z;if(!Y6){var F;n=(F=n.navigator)==null?void 0:F.userAgentData;if(!n||typeof n.getHighEntropyValues!=="function"||n.brands&&typeof n.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));GQ3((n.brands||[]).map(function(l){var m=new Sm;m=Oy(m,1,l.brand);return Oy(m,2,l.version)})); typeof n.mobile==="boolean"&&DX(jm,2,ck(n.mobile));Y6=n.getHighEntropyValues(Z)}var y=new Set(Z);return Y6.then(function(l){var m=jm.clone();y.has("platform")&&Oy(m,3,l.platform);y.has("platformVersion")&&Oy(m,4,l.platformVersion);y.has("architecture")&&Oy(m,5,l.architecture);y.has("model")&&Oy(m,6,l.model);y.has("uaFullVersion")&&Oy(m,7,l.uaFullVersion);return m.Go()}).catch(function(){return jm.Go()})}; Ue=function(n){g.I.call(this);var Z=this;this.Y=n;this.N=new Map;this.V=[];this.X=!Ri();this.Pr=g.jf(this.Y.experiments,"html5_onesie_prewarm_interval_ms");this.L=new g.e7(this.J,this.Pr,this);this.C=-1;this.vx={E8x:function(){return Z.N}, UOG:function(){return Z.S}, ILs:function(){return RGo}}; g.S(this,this.L);gqT(this,g.z5("yt-player-bandaid-host"));this.S=this.load();this.Pr&&this.S.then(function(){Z.J()})}; i_3=function(n){this.N=new Mh;this.X=n}; g.NJ=function(n,Z){n.src=I_(Z);mq(n)}; hn=function(){return!(!G5||!G5.performance)}; Ccp=function(n,Z,F,y,l){var m=(4-(Iv.length+F.length)%4)%4,a=new Uint8Array(4+m+Iv.length+4+F.length),D=new DataView(a.buffer),p=0;D.setUint32(p,Math.random()*4294967295);p=p+4+m;a.set(Iv,p);p+=Iv.length;D.setUint32(p,l);a.set(F,p+4);Unp(a,y);return n.z5(Z,function(L){return void globalThis.sessionStorage.removeItem(L)})?cO8(Z,g.Ee(a))?"s":"t":"i"}; g.oB=function(n,Z,F){g.I.call(this);this.N=null;this.V=!1;this.C=n;this.S=F;this.X=Z||window;this.T=(0,g.GP)(this.rP,this)}; Oe=function(n,Z){return n==Z?!0:n&&Z?n.top==Z.top&&n.right==Z.right&&n.bottom==Z.bottom&&n.left==Z.left:!1}; v5=function(n,Z,F,y,l){var m=n.j("html5_enable_new_audio_settings_menu");c5.call(this,"Stable Volume",m?uX3.NU:g.rJ.NU);this.W=n;this.V=Z;this.X=F;this.hasDrcAudioTrack=y;this.getDrcState=l;this.T=this.enableNewAudioSettingsMenu=this.N=!1;g.gi(this.element,"ytp-drc-menu-item");this.Fp=(this.enableNewAudioSettingsMenu=m)?n.zj().hq:n.zj();n.j("html5_enable_voice_boost")?(this.T=!0,this.G(n,"onFilterAudioFeatures",this.lP)):n.addEventListener("videodatachange",this.lP.bind(this));n.j("mta_drc_mutual_exclusion_removal")&& this.G(n,"onPlaybackAudioChange",this.lP);n.createClientVe(this.element,this,273317);this.listen("click",this.C);Z=this.X()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(n=n.j("delhi_modern_web_player_icons")?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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(n));this.subscribe("select",this.S,this);this.enableNewAudioSettingsMenu||this.T?this.lP():(this.setEnabled(this.hasDrcAudioTrack()),VS(this,Z),this.Fp.Dx(this))}; b_f=function(n,Z,F){if(F!==0){a:if(Z=Z.info,F=F===2,Z.N)Z=null;else{var y=Z.D4[0];if(Z.range)var l=Ic(Z.range.start,Math.min(4096,Z.T));else{if(Z.X&&Z.X.indexOf("/range/")>=0||Z.Er.oQ("defrag")==="1"||Z.Er.oQ("otf")==="1"){Z=null;break a}l=Ic(0,4096)}l=new HM([new fM(5,y.bY,l,"createProbeRequestInfo"+y.C,y.O8)],Z.X);l.hF=F;l.N=Z.N;Z=l}Z&&An(n,Z)}}; XO3=function(n,Z,F,y){function l(){n.CR()||y.call(n)} function m(){n.CR()||F.call(n)} for(var a=g.W5("SCRIPT"),D=!1,p,L=0;L/g,">").replace(/"/g,""").replace(/'/g,"'");return k6(n)}; s5o=function(n){switch(n){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new C("Invalid layout exit reason: "+ n)}}; mCn=function(n){for(var Z=n.X.pop(),F=n.X.pop(),y=n.pos-F-Z;Z--;){var l=Z?128:0;n.view.setUint8(F++,y&127|l);y>>=7}}; Ks3=function(n){return"getAllKeys"in IDBObjectStore.prototype?em(n.N.getAllKeys(void 0,void 0)):asT(n)}; nG=function(n,Z,F){if(Z&2)throw Error();var y=CZ(Z),l=H5(n,F,y),m=l===dQ?7:l[kt]|0,a=B5(m,Z);if(2&a||MJ(a)||16&a)a===m||MJ(a)||v6(l,a),l=WQ(l),m=0,a=$x(a,Z),uF(n,Z,F,l,y);a&=-13;a!==m&&v6(l,a);return l}; KH=function(n){if(Zh){var Z;return(Z=n[Fm])!=null?Z:n[Fm]=new Map}if(Fm in n)return n[Fm];Z=new Map;Object.defineProperty(n,Fm,{value:Z});return Z}; l_=function(){ym.apply(this,arguments)}; sP=function(n,Z){g.Xu.call(this);this.api=n;this.durationMs=Z;this.N=null;this.handler=new rK(this);g.S(this,this.handler);this.X=DCp;this.handler.G(this.api,"presentingplayerstatechange",this.Jr);this.N=this.handler.G(this.api,"onAdPlaybackProgress",this.jO)}; aH=function(n){var Z=n.mJ.x;Z=g.mk(Z,0,n.C);n.nP.update(Z,n.C);return n.nP}; Dh=function(n,Z){g.KG.call(this,n?n.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.N=null;n&&this.init(n,Z)}; p2e=function(n){n.S&&n.lY.element.removeChild(n.S.element);n.S=void 0}; LG=function(n){for(var Z=ar(n,!0),F=pG(n),y=1;y0&&(this.Fi=g.qO(this.policy.Wo));this.policy.nP&&(this.L=new w6(this.loader,this.policy,this.schedule),g.S(this,this.L))}; oH=function(){}; Qm=function(n,Z,F){n.CR();var y=PN(n);F?(n.X|=Z,Z&1&&n.Pr.start(),Z&2&&n.Ns.start(),Z&2048&&n.Tx.start()):(n.X&=~Z,Z&1&&n.Pr.stop(),Z&2&&n.Ns.stop(),Z&2048&&n.Tx.stop(),Z&512&&n.w5.stop());n.X&512&&!(n.X&128)&&g.J3(n.w5,n.zx);Z=PN(n);y!==Z&&n.publish("autohideupdate",Z)}; w2U=function(n,Z){return Z?Lsp(Z):n?q2f(n):Promise.resolve()}; g.fG=function(n,Z){if(!Yx){var F=xL();Gi(F,{bZ:TgP,BX:SY});var y={EU:{feedbackEndpoint:jY(UP),modifyChannelNotificationPreferenceEndpoint:jY(NO),playlistEditEndpoint:jY(h3),shareEntityEndpoint:jY(EP),subscribeEndpoint:jY(OP),unsubscribeEndpoint:jY(cN),webPlayerShareEntityServiceEndpoint:jY(Vm)}},l=vN.getInstance(),m={};l&&(m.client_location=l);n===void 0&&(n=oWU());Z===void 0&&(Z=F.resolve(TgP));P2Q(y,Z,n,m);Gi(F,{bZ:JaP,xT:IH.instance});Yx=F.resolve(JaP)}return Yx}; Q5K=function(n){n=this.T=n;var Z=(0,g.GP)(this.tOr,this);n.V=Z;n=this.T;Z=(0,g.GP)(this.gy4,this);n.J=Z;this.X={};this.N={}}; Y2Y=function(n){this.AG=UO(n)}; g.x=function(n,Z,F){n.N=F;return{value:Z}}; g.A3=function(n,Z){typeof n==="function"&&(n=g.gU(n));return window.setTimeout(n,Z)}; S23=function(n){this.AG=UO(n,500)}; j5n=function(n){var Z;g.A(function(F){switch(F.N){case 1:return g.RX(F,2),g.x(F,n.V,4);case 4:g.iX(F,3);break;case 2:g.d4(F);case 3:(Z=n.T)==null||Z.disconnect(),g.zA(F)}})}; xx=function(n){if(n.gJ()&&!n.api.isEmbedsShortsMode()&&n.Yk){var Z=n.api.j("web_player_hide_overflow_button_if_empty_menu");!n.KD||Z&&!UCQ(n.KD)||WN(n.Yk,n.KD);!n.shareButton||Z&&!r6(n.shareButton)||WN(n.Yk,n.shareButton);!n.copyLinkButton||Z&&!Ng8(n.copyLinkButton)||WN(n.Yk,n.copyLinkButton)}else{Z=n.api.B().getWebPlayerContextConfig();if(n.Yk){for(var F=n.Yk,y=g.Y(F.actionButtons),l=y.next();!l.done;l=y.next())l.value.detach();F.actionButtons=[]}n.searchButton&&!g.Uq(n.wJ.element,n.searchButton.element)&& n.searchButton.oY(n.wJ.element);!n.KD||(Z==null?0:Z.hideTopWatchNextButton)||g.Uq(n.wJ.element,n.KD.element)||n.KD.oY(n.wJ.element);!n.shareButton||(Z==null?0:Z.hideTopShareButton)||g.Uq(n.wJ.element,n.shareButton.element)||n.shareButton.oY(n.wJ.element);n.copyLinkButton&&!g.Uq(n.wJ.element,n.copyLinkButton.element)&&n.copyLinkButton.oY(n.wJ.element)}}; EWT=function(n){var Z=h_7();Z.update(n);return Z.S2().toLowerCase()}; Gs=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);var F=this.api.j("html5_enable_audio_quality_setting_feature");RS(this.api,"getUserAudioQualitySetting",function(){return F?Z.getUserAudioQualitySetting():2}); RS(this.api,"setUserAudioQualitySetting",function(y){F&&Z.setUserAudioQualitySetting(y)}); RS(this.api,"hasHqaAudioTrack",function(){return F?Z.hasHqaAudioTrack():!1}); RS(this.api,"getAudioQualitySettingState",function(){return F?Z.api.Zr(4):1}); this.Kk=DAi();this.updateEnvironmentData()}; X1=function(n,Z,F,y){y!=null||(y=!!(34&Z));n=tV(n,Z,OzP,y);y=32;F&&(y|=2);Z=Z&16769217|y;v6(n,Z);return n}; CG=function(n,Z){var F={};if(n!==void 0)if(Z!=null)for(var y in Z){var l=Z[y];y in Object.prototype||l!=null&&(F[y]=typeof l==="function"?l(n):n[l])}else g.RH(F,n);return XW(g6(new i_,F))}; Obi=function(){var n,Z=(n=u_.getEntriesByType)==null?void 0:n.call(u_,"mark");Z&&Z.forEach(function(F){if(F.name.startsWith("mark_")){var y;(y=u_.clearMarks)==null||y.call(u_,F.name)}})}; b_=function(n,Z){for(var F=0;F=0:!1}; Lz=function(n){if(n.N!==Xm)return!1;var Z=n.AG;Z=X1(Z,Z[kt]|0);z2(Z,2048);n.AG=Z;n.N=void 0;n.X=void 0;return!0}; Ve8=function(n,Z,F,y){if(!n.N||!n.X)return null;var l=n.N.isView()?n.N.D8:n.N,m=n.X.isView()?n.X.D8:n.X,a=new zs(n.mediaElement,n.KR,!0);a.T=n.T;caQ(a,new t3(l,Z,F,y),new t3(m,Z,F,y));PU(n)||n.N.Wf(n.N.Kn());return a}; eY=function(n){for(var Z=g.Y(n.X),F=Z.next();!F.done;F=Z.next())kx(n,F.value);n.X=[];n.N=null}; HN=function(n){return n.substr(0,n.indexOf(":"))||n}; g.Cb=function(n,Z){typeof n==="function"&&(n=g.gU(n));return window.setInterval(n,Z)}; d6=function(n){return n.N==="enter_requested"||n.isActive()}; IsK=function(n){return new g.O2(function(Z,F){n.length||Z(void 0);for(var y,l=0;l0&&!wk(n.videoData)||F||n.seekTo(n.xA(),{eO:"videoplayer_playbackData",seekSource:18})}if(n.videoData.T.N){if(z_Q(n.videoData)){n.Mj("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",UQ({missabrurl:1}));return}n.loader?g.yi(Error("Duplicated Loader")):(F=g.jf(n.Y.experiments,"html5_onesie_defer_content_loader_ms"))&& n.FW()&&X2K(n.kA.RT,n.videoData.bA)?g.A3(function(){n.CR()||n.loader||Tj(n)},F):Tj(n)}else!n.videoData.T.N&&NP(n.videoData)&&n.Qa(new Zb(n.videoData.videoId||"",4)); n.Eq();teT(Z).then(function(){var y={};n.r6(y);n.Y.eG()&&n.j("html5_log_media_perf_info")&&n.Xp("av1Info",y);pM(n)})}}; HbY=function(){var n=e_8(),Z=(0,g.tP)()-n.T;if(!(n.T!==0&&Z0){var y=F.N.shift();qye(F,y.info)}F.N.length>0&&(y=F.N[0].time-(0,g.tP)(),F.X.start(Math.max(0,y)))}},0); g.S(this,this.X);Z.subscribe("widevine_set_need_key_info",this.V,this)}; A5=function(n){var Z;return!((Z=n.Ur)==null||!Z.postId)&&n.api.getPresentingPlayerType()!==2}; bY=function(n,Z){return Z===void 0||Z===null?n:Number(Z)}; Wy=function(n,Z,F){F=F===void 0?!1:F;if(o$(n))return!1;for(var y=n.pos;ar(n,!1)!==Z;)if(PS(n),y=n.pos,o$(n))return!1;F&&(n.pos=y);return!0}; g.zA=function(n){n.N=0}; JU=function(n,Z){n.X=!!Z;n.N(n.W.Br().getPlayerSize())}; g.Sv=function(n){var Z=g.QF();Z&&(typeof n==="number"?n=[n]:typeof n==="string"&&(n=[parseInt(n,10)]),g.I5(n,function(F){Z.unsubscribeByKey(F);delete Yb[F]}))}; wVT=function(n){var Z=n.length;if(n[0]==="-"?Z<20||Z===20&&n<="-9223372036854775808":Z<19||Z===19&&n<="9223372036854775807")return n;u8(n);return jv(b8,XV)}; UX=function(n,Z,F,y){CW.call(this,n,{U:"div",K:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",Z,F,y);this.button=null;this.N=this.Vg("ytp-ad-survey-none-of-the-above");this.hide()}; Nr=function(n){return n=="\r"||n=="\n"||n==" "||n=="\t"}; hU=function(n){return{YC:n.T.N.D8,eQ:n.T.X.D8}}; Ta7=function(n){return function(Z){for(var F=0;F200&&(W="manifest.net.badstatus",J===400&&(v=2)),$U.return(Promise.reject(new g.Xv(W,f,v)));Z.loading=!1;g.zX(Z,{raw_player_response:h},!0); X=h;g.ri(Z.B())&&X&&X.trackingParams&&Av(X.trackingParams);if(Z.errorCode)return u={ec:Z.errorCode,ed:Z.errorDetail,es:Z.pO||""},$U.return(Promise.reject(new g.Xv("auth",u,2)));if(!Z.loading&&!tU(Z))return Fp=Z.isAd()?"auth":"manifest.net.retryexhausted",nQ=Z.isAd()?2:1,$U.return(Promise.reject(new g.Xv(Fp,{successButUnplayable:"1",hasMedia:g.kb(Z)?"1":"0"},nQ)));g.zA($U)}})}; XVi=function(n,Z){Z=Z?"Subtitles/closed captions on":"Subtitles/closed captions off";XF(n,bop(n.W),Z)}; zyi=function(n){n=n.W.getVideoData(1);return!!n&&n.j("html5_preload_first_vod_video_ad")&&!n.isDaiEnabled()&&!n.isLivePlayback}; tde=function(n){n.position===0&&(n.tD.get(),n=o5(n.layout.clientMetadata,"metadata_type_ad_placement_config").kind,n={adBreakType:ev(n)},fZ("ad_bl"),g.HS(n))}; hDi=function(n,Z){var F=g.de;n=n.split(".");for(var y=0;yn.C)return"max"+n.C;if(n.hG&&Z.vr==="h"&&Z.video&&Z.video.qualityOrdinal>1080)return"blkhigh264";if(Z.vr==="(h"&&!F.J)return"enchdr";if((y===void 0?0:y)&&k5T(Z)&&!n.r5)return"blk51live";if((Z.vr==="MAC3"||Z.vr==="mac3")&&!n.V)return"blkac3";if((Z.vr==="MEAC3"||Z.vr==="meac3")&&!n.S)return"blkeac3";if(Z.vr==="M"||Z.vr==="m")return"blkaac51"; if((Z.vr==="so"||Z.vr==="sa")&&!n.Ns)return"blkamb";if(!n.kV&&eye(Z)&&(!F.S||Z.vr!=="1e"))return"cbc";if(!F.S&&eye(Z)&&Z.vr==="1e")return"cbcav1";if((Z.vr==="i"||Z.vr==="I")&&!n.Bx)return"blkiamf";var m;if(n.SG&&((m=Z.audio)==null?void 0:m.X)===!0)return"blkvbcabr";var a,D;if(n.yg&&(Z.vr==="1"||Z.vr==="1h"||F.S&&Z.vr==="1e")&&((a=Z.video)==null?0:a.qualityOrdinal)&&((D=Z.video)==null?void 0:D.qualityOrdinal)>n.yg)return"av1cap";y=F.V.get(Z.vr);if(!n.IW&&y&&y.Ex>0)return l.add(Z.vr),"byerr";var p; if((p=Z.video)==null?0:p.fps>32){if(!F.Wr&&!lJ(F,sN.FRAMERATE))return"capHfr";if(n.xi&&Z.video.qualityOrdinal>=4320)return"blk8khfr";if(n5(Z)&&n.mC&&Z.by&&Z.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(n.Qg&&Z.Qg>n.Qg)return"ratecap";if(n.w5>0&&Z.K6()&&Z.video.height>n.w5)return"mvhcap";n=HoY(F,Z);return n!==!0?n:!0}; Zk=function(n){for(var Z in $3)$3[Z][0]==n&&g.nL(Z)}; dvn=function(n){this.xhr=n}; g.bF=function(n,Z){n.sort(Z||Rv)}; Fo=function(n){return n&&Ban?dt(n)||document:document}; Tk8=function(n,Z){if(n.removed)n=!0;else{Z=new Dh(Z,this);var F=n.listener,y=n.handler||n.src;n.FA&&yJ(n);n=F.call(y,Z)}return n}; lm=function(){var n,Z,F;return(F=(n=globalThis.performance)==null?void 0:(Z=n.now)==null?void 0:Z.call(n))!=null?F:Date.now()}; nae=function(n){var Z=Z===void 0?{}:Z;var F,y;return g.A(function(l){if(l.N==1)return g.x(l,g.me(),2);if(l.N!=3){F=l.X;if(!F)return l.return();ap(n);return g.x(l,Mde(n,F),3)}y=l.X;return g.x(l,$Wi(y,Z,F),0)})}; KL=function(n,Z,F){Z7o(n.zN,Z);n.zx&&(n.zx.add(Math.ceil(Z)-Math.ceil(n.J)),n.zx.add(Math.max(0,Math.ceil(F/1024)-Math.ceil(n.S/1024))));var y=Z-n.J,l=F-n.S;n.Bx=l;n.hG=Math.max(n.hG,l/(y+.01)*1E3);n.J=Z;n.S=F;n.Wr&&F>n.Wr&&FG7(n)}; ySp=function(n,Z,F){var y,l,m,a,D,p,L,q,w,T,P,J,U,h,v,V,f,W,X,u,Fp,nQ,$U,mY,LQ,Zi;return g.A(function(Qe){if(Qe.N==1)return Z.fetchType="onesie",y=ioj(Z,n.getPlayerSize(),n.getVisibilityState()),l=new LL(n,y,F),g.x(Qe,l.fetch(),2);m=Qe.X;a={player_response:m};Z.loading=!1;D=n.kA.RT;if(l.qt){p=g.Y(l.qt.entries());for(L=p.next();!L.done;L=p.next())q=L.value,w=g.Y(q),T=w.next().value,P=w.next().value,J=T,U=P,D.N.set(J,U,180),J===Z.videoId&&(h=U.AY(),Z.YQ=h);D.Rt=l}v=g.Y(l.Hk.entries());for(V=v.next();!V.done;V= v.next())f=V.value,W=g.Y(f),X=W.next().value,u=W.next().value,Fp=X,nQ=u,D.X.set(Fp,nQ,180);g.zX(Z,a,!0);if(Z.loading||tU(Z))return Qe.return(Promise.resolve());D.N.removeAll();D.X.removeAll();Z.YQ=[];$U={};mY="onesie.response";LQ=0;Z.errorCode?(mY="auth",$U.ec=Z.errorCode,$U.ed=Z.errorDetail,$U.es=Z.pO||"",LQ=2):($U.successButUnplayable="1",$U.disposed=""+ +Z.CR(),$U.afmts=""+ +/adaptiveFormats/.test(m),$U.cpn=Z.clientPlaybackNonce);Zi=new g.Xv(mY,$U,LQ);return Qe.return(Promise.reject(Zi))})}; Fk=function(n,Z,F,y){g.R.call(this,{U:"div",K:"ytp-chapter-container",D:[{U:"button",s8:["ytp-chapter-title","ytp-button"],D:[{U:"span",Z:{"aria-hidden":"true"},K:"ytp-chapter-title-prefix",E8:"\u2022"},{U:"div",K:"ytp-chapter-title-content",E8:"{{chapterTitle}}",Z:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:n.j("player_tooltip_data_title_killswitch")?y:"","data-tooltip-title":y}},{U:"div",K:"ytp-chapter-title-chevron",D:[{U:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path", Z:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.W=n;this.V=Z;this.C="";this.currentIndex=0;this.X=void 0;this.T=!0;this.w5=this.Vg("ytp-chapter-container");this.N=this.Vg("ytp-chapter-title");this.S=this.Vg("ytp-chapter-title-content");this.L();this.updateVideoData("newdata",this.W.getVideoData());this.G(n,"videodatachange",this.updateVideoData);this.G(n,"resize",this.L);this.G(this.w5,"click",this.onClick);this.G(n,g.HP(F),this.jO);this.G(n,"onLoopRangeChange", this.jO);this.G(n,"innertubeCommand",this.onClickCommand);(n=g.qk(this.W.B()))&&g.w4(this.N,"ytp-profile-page",!0);g.R6(this.W.B())||n||XX(this.W,this.S,this)}; siK=function(n,Z){var F=n.X[Z],y;(y=n.T)==null||y.dispose();g.e(F,wm)?xAP(n,g.e(F,wm),n.macros):g.e(F,To)&&lg3(n,g.e(F,To),n.macros);n.N=Z}; KWo=function(){var n=xW(Gf);if(n.N!=null){var Z=n.N;g.I5(G2(),function(F){return mWe(F,Z)})}}; g.Yt=function(n,Z){var F=0;n=a_(String(n)).split(".");Z=a_(String(Z)).split(".");for(var y=Math.max(n.length,Z.length),l=0;F==0&&l=0);if(!(Z<0||Z===n.V)){n.V=Z;Z=243*n.scale;var F=141*n.scale,y=JSK(n.X,n.V,Z);QiU(n.bg,y,Z,F,!0);n.Tx.start()}}; vi=function(n){if(!(this instanceof vi))return new vi(n);n=this.options=Ip.assign({level:-1,method:8,chunkSize:16384,Qs:15,elg:8,strategy:0,to:""},n||{});n.raw&&n.Qs>0?n.Qs=-n.Qs:n.dk&&n.Qs>0&&n.Qs<16&&(n.Qs+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.rV=new SQj;this.rV.G7=0;var Z=this.rV;var F=n.level,y=n.method,l=n.Qs,m=n.elg,a=n.strategy;if(Z){var D=1;F===-1&&(F=6);l<0?(D=0,l=-l):l>15&&(D=2,l-=16);if(m<1||m>9||y!==8||l<8||l>15||F<0||F>9||a<0||a>4)Z=fL(Z,-2);else{l===8&&(l=9); var p=new jio;Z.state=p;p.rV=Z;p.wrap=D;p.T7=null;p.Av=l;p.P7=1<>=7;m<30;m++)for(x3[m]=a<<7,l=0;l<1<=L.P7&&(Z===0&&(Xk(L.head),L.VP=0,L.Ge=0,L.z5=0),F=new Ip.Bu(L.P7),Ip.Wd(F,m,a-L.P7,L.P7,0),m=F,a=L.P7);F=n.EV;y=n.Rw;l=n.input;n.EV=a;n.Rw=0;n.input=m;for(tY(L);L.Md>=3;){m=L.VP;a=L.Md-2;do L.cI=(L.cI<0&&T4U(n,Z,m)}else T4U(n,Z)}; g.Mk=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; AS7=function(n){var Z=n.offsetWidth,F=n.offsetHeight,y=g.Gc&&!Z&&!F;return(Z===void 0||y)&&n.getBoundingClientRect?(n=EX(n),new g.Kz(n.right-n.left,n.bottom-n.top)):new g.Kz(Z,F)}; WGP=function(){return L4()?p4.platform==="Android":Rf("Android")}; rSp=function(n,Z){var F;return g.A(function(y){if(y.N==1)return g.x(y,dK(Z),2);F=y.X;return y.return(g.$5(F,["LogsRequestsStore"],{mode:"readwrite",Or:!0},function(l){var m=l.objectStore("LogsRequestsStore");return m.get(n).then(function(a){if(a)return a.status="QUEUED",g.nE(m,a).then(function(){return a})})}))})}; Zl=function(){this.V=this.N=this.X=0;this.T=!1}; xWn=function(n,Z){try{var F=xW(FK);F.Tx=!0;var y=n?new Bk(n.y,n.x+n.width,n.y+n.height,n.x):new Bk(0,0,0,0);var l=$1(),m=dk();var a=new yh(l,m,F);a.N=y;a.volume=Z;F.VJ(a)}catch(D){xr(542,D)}}; i7f=function(n){lE(n.C,"data",function(Z){if("1"in Z){var F=Z["1"];try{var y=n.J(F)}catch(l){b_(n,new tR(13,"Error when deserializing response data; error: "+l+(", response: "+F)))}y&&Y0o(n,y)}if("2"in Z)for(Z=G2i(n,Z["2"]),F=0;F=n.N.length)return!1;var y=n.C-nb(n)*n.jT;return Math.abs(Z-n.N[F].startTime/1E3)/n.T.N*y<4}; u1K=function(n,Z,F){var y=n.index.j$(Z),l=n.index.getStartTime(Z),m=n.index.getDuration(Z);F?m=F=0:F=n.info.Qg*m;return new HM([new fM(3,n,void 0,"otfCreateRequestInfoForSegment",Z,l,m,0,F)],y)}; b7n=function(n){if(!n.length)return[];n=(0,g.I$)(n,function(F){return F!=null&&F.E1()}); for(var Z=1;ZZ?1:0}; MZ=function(n){return n.yg?n.isLowLatencyLiveStream&&n.N!=null&&Qx(n.N)>=5:n.isLowLatencyLiveStream&&n.N!=void 0&&Qx(n.N)>=5}; EX=function(n){try{return n.getBoundingClientRect()}catch(Z){return{left:0,top:0,right:0,bottom:0}}}; wZ=function(n,Z,F,y,l,m){CW.call(this,n,{U:"div",K:"ytp-ad-action-interstitial",Z:{tabindex:"0"},D:[{U:"div",K:"ytp-ad-action-interstitial-background-container"},{U:"div",K:"ytp-ad-action-interstitial-slot",D:[{U:"div",K:"ytp-ad-action-interstitial-instream-info"},{U:"div",K:"ytp-ad-action-interstitial-card",D:[{U:"div",K:"ytp-ad-action-interstitial-image-container"},{U:"div",K:"ytp-ad-action-interstitial-headline-container"},{U:"div",K:"ytp-ad-action-interstitial-description-container"},{U:"div", K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",Z,F,y);this.N8=l;this.tb=m;this.navigationEndpoint=this.N=this.skipButton=this.X=this.actionButton=null;this.r5=this.Vg("ytp-ad-action-interstitial-instream-info");this.jT=this.Vg("ytp-ad-action-interstitial-image-container");this.L=new LE(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-ad-action-interstitial-image");g.S(this,this.L);this.L.oY(this.jT);this.zx=this.Vg("ytp-ad-action-interstitial-headline-container"); this.S=new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-ad-action-interstitial-headline");g.S(this,this.S);this.S.oY(this.zx);this.Tx=this.Vg("ytp-ad-action-interstitial-description-container");this.T=new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-ad-action-interstitial-description");g.S(this,this.T);this.T.oY(this.Tx);this.hG=this.Vg("ytp-ad-action-interstitial-background-container");this.aY=new LE(this.api,this.layoutId,this.interactionLoggingClientData, this.Hr,"ytp-ad-action-interstitial-background",!0);g.S(this,this.aY);this.aY.oY(this.hG);this.yg=this.Vg("ytp-ad-action-interstitial-action-button-container");this.slot=this.Vg("ytp-ad-action-interstitial-slot");this.oZ=this.Vg("ytp-ad-action-interstitial-card");this.V=new rK;g.S(this,this.V);this.hide()}; g.OH=function(n,Z,F,y,l){Z=Z===void 0?!1:Z;y=y===void 0?!1:y;l=l===void 0?!1:l;g.Xu.call(this);this.Pr=l;this.J=!1;this.V=new rK(this);this.S=this.C=null;this.T=this.X=!1;g.S(this,this.V);this.target=n;this.N=Z;this.L=F||n;this.J=y;Z&&(g.Gc&&this.target.setAttribute("draggable","true"),l||(this.target.style.touchAction="none"));TJ(this)}; P1=function(n){oq||(fX?fX.iL(n):(GL.push({type:"ERROR",payload:n}),GL.length>10&&GL.shift()))}; Qh=function(n){if(n.r5&&n.Pr&&!n.Wr){for(;n.T.length;){var Z=n.T[0],F=X0Q(n)?eOK(Z):g.Ee(Z.initData);if(Jr(n.N)&&!Z.X)n.T.shift();else{if(n.X.get(F))if(n.N.flavor!=="fairplay"||Jr(n.N)){n.T.shift();continue}else n.X.delete(F);H7e(Z);break}}n.T.length&&n.createSession(n.T[0])}}; lV8=function(n){var Z=Z===void 0?!1:Z;var F=F===void 0?!1:F;var y=(0,g.tP)(),l={startTime:y,ticks:{},infos:{}},m=Z?g.Di("yt.logging.gzipForFetch",!1):!0;if(Y5&&m){if(!n.body)return n;try{var a=F?n.body:typeof n.body==="string"?n.body:JSON.stringify(n.body);m=a;if(!F&&typeof a==="string"){var D=dWj(a);if(D!=null&&(D>BTQ||D=Z47)if(jz++,g.N5("abandon_compression_after_N_slow_zips_lr")){Z=jz/Sz;var L=FET/g.Fv("compression_disable_point");Sz>0&&Sz%g.Fv("compression_disable_point")===0&&Z>=L&&(Y5=!1)}else Y5=!1;y6T(l)}}n.headers=Object.assign({},{"Content-Encoding":"gzip"},n.headers||{});n.body=m;return n}catch(q){return Un(q),n}}else return n}; aVj=function(n){var Z,F,y,l,m,a,D;g.A(function(p){switch(p.N){case 1:if(n.CR()||!n.V||!n.N)return p.return();n.L&&n.app.Z4().kQ(!0,!1);Z=null;if(!n.T){p.ST(2);break}g.RX(p,3);return g.x(p,sKP(n.T),5);case 5:g.iX(p,2);break;case 3:Z=F=g.d4(p);case 2:if(!n.N)return p.return();mgp.Eg("vqsp",function(){n.app.x7(n.N)}); if(!n.N)return p.return();y=n.N.HV();n.app.B().j("html5_gapless_seek_on_negative_time")&&y&&y.getCurrentTime()<-.01&&n.N.seekTo(0);mgp.Eg("vqpv",function(){n.app.playVideo()}); Z&&(n.N?(l=Z?Z.message:"forced",(m=n.X)==null||m.Xp("gapfulfbk",{r:l}),n.N.gR(l)):(a=n.X)==null||a.Xp("gapsp",{}));D=n.V;N8(n);D&&D.resolve();return p.return(Promise.resolve())}})}; g.nE=function(n,Z,F){return em(n.N.put(Z,F))}; KEp=function(n){function Z(a){n.d1&&hr(n);En(n)!==n.vL&&n.resize();n.app.B().j("web_enable_smart_zoom")&&n.aO&&(a.state.isPaused()?n.aO.pause():g.On(a,8)&&n.aO.playState==="paused"&&n.aO.play())} function F(a){a.getVideoData()&&n.updateVideoData(a.getVideoData())} function y(a,D){n.ED(a,D)} function l(){n.eF=new g.c1(0,0,0,0);n.yS=new g.c1(0,0,0,0)} var m=n.app.JG;m.addEventListener("initializingmode",l);m.addEventListener("videoplayerreset",F);m.addEventListener("videodatachange",y);m.addEventListener("presentingplayerstatechange",Z);n.addOnDisposeCallback(function(){m.removeEventListener("initializingmode",l);m.removeEventListener("videoplayerreset",F);m.removeEventListener("videodatachange",y);m.removeEventListener("presentingplayerstatechange",Z)})}; Dgf=function(n){g.I5(n.N,function(Z){Z.X=0})}; v1=function(n){return g.i8(n.N,function(Z){return Vh(52,Z.Er.N)})}; g.fE=function(n){return new Iq({trackingParams:n})}; Ar=function(n,Z,F){n.uo("addEventListener",Z,F)}; pLe=function(){this.N=void 0;this.X=!1;this.T=0;this.V=-1;this.S="tos"}; W1=function(){throw Error("Invalid UTF8");}; LEK=function(n){if(g.ri(n)&&rZ)return!1;if(g.kr){if(!g.SG(47)||!g.SG(52)&&g.SG(51))return!1}else if(g.x5)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; GJ=function(n){return g.BT("EXPERIMENT_FLAGS",{})[n]}; qxp=function(){}; wLo=function(n,Z,F,y,l,m,a){Rq(n,Z,new g.gZ(F,new g.iE),y,l,a,!1,m)}; uE=function(n){var Z=this;this.N=n;this.X=new Map;this.aborted=!1;this.done=new Promise(function(F,y){Z.N.addEventListener("complete",function(){F()}); Z.N.addEventListener("error",function(l){l.currentTarget===l.target&&y(Z.N.error)}); Z.N.addEventListener("abort",function(){var l=Z.N.error;if(l)y(l);else if(!Z.aborted){l=g.CE;for(var m=Z.N.objectStoreNames,a=[],D=0;D=Z+(Z-262)){Ip.Wd(n.window,n.window,Z,Z,0);n.VS-=Z;n.VP-=Z;n.Ge-=Z;var l=F=n.Gg;do{var m=n.head[--l];n.head[l]=m>=Z?m-Z:0}while(--F);l=F=Z;do m=n.Ht[--l],n.Ht[l]=m>=Z?m-Z:0;while(--F);y+=Z}if(n.rV.EV===0)break;l=n.rV;F=n.window;m=n.VP+n.Md;var a=l.EV;a>y&&(a=y);a===0?F=0:(l.EV-=a,Ip.Wd(F,l.input,l.Rw,a,m),l.state.wrap===1?l.wV=zo(l.wV,F,a,m):l.state.wrap===2&&(l.wV=bE(l.wV,F,a,m)),l.Rw+=a,l.Ma+=a,F=a);n.Md+=F;if(n.Md+n.z5>=3)for(y=n.VP-n.z5, n.cI=n.window[y],n.cI=(n.cI<Z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new XK(n)):new XK(n,F,Z)}; o2e=function(n){return n.displayName||n.name||"unknown type name"}; c5=function(n,Z){g.dV.call(this,g.B0({role:"menuitemcheckbox","aria-checked":"false"}),Z,n,{U:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; PtY=function(n,Z){if(Z.video&&Z.video.length){n.title=Z.title||"";n.description=Z.description;n.views=Z.views;n.likes=Z.likes;n.dislikes=Z.dislikes;n.author=Z.author||"";var F=Z.loop;F&&(n.loop=F);F=g.AP(n);n.items=[];for(var y=g.Y(Z.video),l=y.next();!l.done;l=y.next())if(l=l.value)l.video_id=l.encrypted_id,n.items.push(l);n.length=n.items.length;(Z=Z.index)?n.index=Z:n.findIndex(F);n.setShuffle(!1);n.loaded=!0;n.X++;n.N&&n.N()}}; zJ=function(n,Z,F,y,l,m,a,D,p,L){Z=$e(n.X.get(),F,Z);var q={layoutId:Z,layoutType:F,Gx:"core"},w=new Map;a&&w.set("impression",a);a=[new rg(n.N,l,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];L&&a.push(new jp(n.N,L,["normal"]));return{layoutId:Z,layoutType:F,Nd:w,layoutExitNormalTriggers:a,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:new lb([y,new K7(m),new p7(l)]),lN:D(q),adLayoutLoggingData:p}}; tr=function(){return g.N5("idb_immediate_commit")}; J6K=function(n){var Z=n.sampleInterval,F=n.maxBufferSize;if(Z>0&&F>0&&!n.X&&n.T<1E7)try{n.V=n.S({sampleInterval:Z,maxBufferSize:F});var y;(y=n.V)==null||y.addEventListener("samplebufferfull",function(){return g.A(function(l){if(l.N==1)return g.x(l,n.stop(),2);J6K(n);g.zA(l)})})}catch(l){n.X=QK7(l.message)}}; YxK=function(n){k5[n]=n in k5?k5[n]+1:0;return k5[n]}; ez=function(n,Z,F,y,l,m,a,D,p,L,q,w){Tf.call(this,m,n,Z,l);this.uY=F;this.V=a;this.tG=D;this.Cn=p;this.U8=L;this.C=q;this.S=w;this.Ms=dT7(Z,F)}; Sxn=function(){return CQ()?!1:Rf("Trident")||Rf("MSIE")}; NJP=function(n){function Z(){F-=y;F-=l;F^=l>>>13;y-=l;y-=F;y^=F<<8;l-=F;l-=y;l^=y>>>13;F-=y;F-=l;F^=l>>>12;y-=l;y-=F;y^=F<<16;l-=F;l-=y;l^=y>>>5;F-=y;F-=l;F^=l>>>3;y-=l;y-=F;y^=F<<10;l-=F;l-=y;l^=y>>>15} n=jKi(n);for(var F=2654435769,y=2654435769,l=314159265,m=n.length,a=m,D=0;a>=12;a-=12,D+=12)F+=H1(n,D),y+=H1(n,D+4),l+=H1(n,D+8),Z();l+=m;switch(a){case 11:l+=n[D+10]<<24;case 10:l+=n[D+9]<<16;case 9:l+=n[D+8]<<8;case 8:y+=n[D+7]<<24;case 7:y+=n[D+6]<<16;case 6:y+=n[D+5]<<8;case 5:y+=n[D+4];case 4:F+=n[D+3]<<24;case 3:F+=n[D+2]<<16;case 2:F+=n[D+1]<<8;case 1:F+=n[D+0]}Z();return UgU.toString(l)}; hrU=function(n){var Z=/codecs="([^"]*)"/.exec(n.mimeType);return Z&&Z[1]?Z[1]+" ("+n.itag+")":n.itag}; c6T=function(n){var Z=Math.max(n.videoTrack.T.T||0,n.audioTrack.T.T||0);E2o(n.videoTrack);E2o(n.audioTrack);n.policy.S||O4f(n.eT);n.eT.isManifestless&&!n.policy.S&&(n.N=!0,n.X=0);var F=n.loader;if(!F.policy.jT||F.policy.Bx)F.currentTime=Z;n.V=!0;n.T=new dZ;return n.T}; v2f=function(n){n=VfP(n);return k6(n)}; B1=function(n,Z,F){Z&&(Z=g.BQ(n,{playerType:F}))&&Z===n.Px()&&(Z.getVideoData().N1=!0)}; hY=function(n){return n.type===3||n.type===6}; M8=function(n){return new f5(function(Z){return Z.substr(0,n.length+1).toLowerCase()===n+":"})}; IV8=function(n){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(n)}; $h=function(n,Z,F,y){try{var l=Z.call(n.N.V,F);fVj(l);if(!l.done)return n.N.J=!1,l;var m=l.value}catch(a){return n.N.V=null,iP(n.N,a),Cj(n)}n.N.V=null;y.call(n.N,m);return Cj(n)}; A6e=function(n){return n.j("html5_onesie_host_probing")||n.xR?gT:!1}; Ze=function(n,Z,F,y,l){l=l===void 0?!1:l;n1.call(this,"player-overlay",n,{},Z,y);this.videoAdDurationSeconds=F;this.interactionLoggingClientData=y;this.tb=l}; tR=function(n,Z,F){F=F===void 0?{}:F;Z=Error.call(this,Z);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=n;this.metadata=F;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; xgT=function(n){if(n.W.isEmbedsShortsMode())return!1;n=n.W;var Z=n.B();if(Z.T)return!1;var F;if(((F=Z.getWebPlayerContextConfig())==null?0:F.embedsEnableEmc3ds)||Z.controlsType==="3")return!1;if(Z.playerStyle==="creator-endscreen-editor")return!0;F=n.getVideoData();return!!F&&(!!g.WEn(F)||!!g.r68(F))}; Fj=function(n){this.AG=UO(n)}; g.l8=function(n){return{fieldType:3,fieldName:n}}; lQp=function(n){n=n.Uw();if(!n)return!1;n=g.EG(n).exp||"";return n.includes("xpv")||n.includes("xpe")}; var GbP=function(n,Z){return NW[K[11]](this,66,n,Z)}; y2=function(n){this.AG=UO(n)}; RrP=function(n,Z,F,y,l,m,a,D,p){y.every(function(q){return lg(q,[],["LAYOUT_TYPE_MEDIA"])})||wU("Unexpect subLayout type for DAI composite layout"); Z=$e(n.X.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Z);var L={layoutId:Z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Gx:"core"};return{layoutId:Z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Nd:new Map,layoutExitNormalTriggers:[new m2(n.N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:new lb([new a7(F),new K1(D),new De(y),new K7(l),new oc(m),new p1({}),new L1(p)]),lN:a(L)}}; Cte=function(n,Z){var F=n[Z];if(F)return F;if(F=n.extensions)if(F=F[Z]){F=g2e(F);var y=F[0].ib;if(F=F[1]){var l=i4o(F),m=LU(q7,wc,TM,F).w0;F=n.UY?pU(m,l):function(a,D,p){return y(a,D,p,m,l)}}else F=y; return n[Z]=F}}; o7=function(n,Z){this.logger=n;this.event=Z;this.startTime=lm()}; g.JI=function(n,Z,F,y,l,m){m=m===void 0?{}:m;g.PC(n,Z,F,[y],l===void 0?!1:l,m)}; RS=function(n,Z,F){n.state.N[Z]=function(){return F.apply(n,g.S7.apply(0,arguments))}}; uFU=function(){}; b4Q=function(n){var Z=g.q$("html5-video-player");Z&&g.w4(Z,"ytp-ad-display-override",n)}; XLY=function(n,Z){return Q2(n,Z)?(n.PY?n.PY.start():n.uO(),!0):!1}; Yh=function(n){try{return!!n&&n.location.href!=null&&DGY(n,"foo")}catch(Z){return!1}}; C3=function(n,Z){this.X=n>>>0;this.N=Z>>>0}; zrp=function(n){n.updateValue("channelLink","");n.updateValue("channelName","");g.ri(n.api.B())||n.api.j("enable_channel_title_always_focusable")?n.updateValue("channelTitleFocusable","0"):n.updateValue("channelTitleFocusable","-1")}; rPp=function(n,Z){var F=tfn;return Object.prototype.hasOwnProperty.call(F,n)?F[n]:F[n]=Z(n)}; GE=function(n){this.W=n}; kbQ=function(n){var Z=m1(n);return Z?Z.S-n.loader.getCurrentTime():0}; eri=function(n){var Z=1,F;for(F in n.X)F.length>Z&&(Z=F.length);return 3997-Z-n.T.length-1}; g.Aqi=function(n){this.iY=n;this.L=new H4Q;this.Cy=this.jR=!1;this.Ye=2;this.aY=20971520;this.d5=8388608;this.zx=120;this.MY=this.eP=this.Bi=2;this.e8=this.tY=!1;this.T4=1E3;this.SG=15;this.yQ=1;this.Pr=1.15;this.w5=1.05;this.Jy=1;this.WH=this.y_=!1;this.nD=6;this.T=!1;this.LL=100;this.bT=10;this.iB=6;this.Kh=!1;this.qa=1;this.Yc=this.GU=!1;this.uT=2;this.jP=this.gQ=this.iU=!1;this.mJ=!0;this.mC=this.aT=this.Wr=this.R0=!1;this.fY=!0;this.LH=!1;this.V="";this.nF=[];this.z4=this.PV=!1;this.Tc=0;this.XW= "";this.s7=this.Zf=this.Di=this.rh=this.fF=this.un=this.S=this.gi=this.c7=this.N=this.hG=this.lY=this.ET=this.Hf=this.Ns=this.Mt=this.Kx=!1;this.RX=!0;this.ri=this.Fc=this.sW=this.ZZ=this.s1=this.X=this.xi=!1;this.yg=!0;this.KF=this.cq=this.Tx=this.KP=this.Bx=this.jT=!1;this.P_=3;this.Rf=this.yV=this.oX=this.ud=this.Ky=this.RB=this.Dt=this.xU=!1;this.Sk=0;this.Hx=this.YQ=this.GG=!1;this.Yi=1;this.uD=this.lM=this.O1=this.C=this.Ls=!1;this.SR=g.jf(this.iY.experiments,"html5_min_readbehind_secs");this.R$= g.jf(this.iY.experiments,"html5_min_readbehind_cap_secs");this.CO=this.iY.j("html5_offline_reset_media_stream_on_unresumable_slices");this.Qg=NaN;this.k0=Sq(this,"html5_request_size_min_kb",64)*1024;this.fR=2097152;this.bk=Sq(this,"html5_bypass_contention_secs");this.WP=1048576;this.p6=Sq(this,"html5_repredict_interval_ms",1800);this.f4=Sq(this,"html5_head_miss_secs",5);this.Vr=Sq(this,"html5_min_upgrade_health_secs",10);this.w7=Sq(this,"html5_min_seconds_between_format_selections",8);this.gD=Sq(this, "html5_max_buffer_health_for_downgrade_secs",15);this.JT=gT;this.j8=g.jf(this.iY.experiments,"html5_min_startup_buffered_media_duration_secs");this.uM=g.jf(this.iY.experiments,"html5_post_interrupt_readahead");this.o2=this.iY.j("html5_disable_classic_alr");this.eR=g.jf(this.iY.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Hi=Sq(this,"html5_ssdai_failure_retry_limit",3);this.W4=this.iY.experiments.RY("html5_clone_original_for_fallback_location");this.uH=g.jf(this.iY.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); this.GO=g.jf(this.iY.experiments,"html5_subsegment_readahead_timeout_secs");this.FFs=g.jf(this.iY.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Jm=g.jf(this.iY.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.JBR=g.jf(this.iY.experiments,"html5_subsegment_readahead_min_load_speed");this.MJ=g.jf(this.iY.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.YmY=g.jf(this.iY.experiments,"html5_subsegment_readahead_seek_latency_fudge"); this.oA=Sq(this,"html5_hopeless_secs",15);this.KW=this.iY.j("html5_restrict_streaming_xhr_on_sqless_requests");this.Zs=g.jf(this.iY.experiments,"html5_max_headm_for_streaming_xhr");this.cT=this.iY.j("html5_pipeline_manifestless_allow_nonstreaming");this.vT=this.iY.j("html5_prefer_server_bwe3");this.zHG=this.iY.j("html5_last_slice_transition");this.Hn5=this.iY.j("html5_store_xhr_headers_readable");this.AC=g.jf(this.iY.experiments,"html5_max_drift_per_track_secs");this.oB=this.iY.j("html5_no_placeholder_rollbacks"); this.KF5=this.iY.j("html5_subsegment_readahead_enable_mffa");this.IW=this.iY.j("html5_allow_video_keyframe_without_audio");this.jP=g.f4(this.iY)&&!g.N9()&&this.iY.j("html5_adjust_media_time_for_non_cobalt_tv");this.al=this.iY.j("html5_enable_vp9_fairplay");this.Td=1048576;this.EJ=this.iY.j("html5_woffle_resume");this.kL=this.iY.j("html5_abs_buffer_health");this.sy=this.iY.j("html5_interruption_resets_seeked_time");this.Mo=g.jf(this.iY.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.t4=this.iY.j("html5_report_captions_ctmp_qoe");this.ma=this.iY.j("html5_explicitly_dispose_xhr");this.Vl=!this.iY.j("html5_encourage_array_coalescing");this.iY.j("html5_limit_media_merge_size")?gT?jq()<21?this.VG=786432:this.VG=8388608:this.VG=262144:this.VG=0;this.Xa=this.iY.j("html5_filter_non_efficient_formats_for_safari");this.iY.j("html5_format_hybridization");this.RM=this.iY.j("html5_abort_before_separate_init");this.zq=Uv();this.B5Q=this.iY.j("html5_serialize_server_stitched_ad_request"); this.lw=this.iY.j("html5_attach_po_token_to_bandaid");this.QA=g.jf(this.iY.experiments,"html5_max_redirect_response_length")||8192;this.OW=this.iY.j("html5_rewrite_timestamps_for_webm");this.h2=this.iY.j("html5_only_media_duration_for_discontinuities");this.OC=g.jf(this.iY.experiments,"html5_resource_bad_status_delay_scaling")||1;this.iY.j("html5_onesie_live");this.Cg=g.jf(this.iY.experiments,"html5_onesie_live_ttl_secs")||8;this.Wo=g.jf(this.iY.experiments,"html5_attach_num_random_bytes_to_bandaid"); this.SjT=this.iY.j("html5_update_container_type_on_codec_family_change");this.kV=this.iY.j("html5_enable_sabr_host_fallback");this.De=this.iY.j("html5_gapless_fallback_on_append_error");this.dsg=this.iY.j("html5_shorts_stop_request_when_buffer_to_end");this.DgY=this.iY.j("html5_vod_stop_request_when_buffer_to_end");this.r5=this.iY.j("html5_ssdai_use_post_for_media")&&this.iY.j("gab_return_sabr_ssdai_config");this.hHQ=this.iY.j("html5_use_post_for_media");this.Z8=this.iY.j("html5_use_live_ump_heartbeat"); this.useUmp=this.iY.j("html5_use_ump");this.hk=this.iY.ZD;this.FK=this.iY.j("html5_reset_primary_stats_on_redirector_failure");this.Ak=this.iY.j("html5_remap_to_original_host_when_redirected");this.Ck=this.iY.j("html5_use_network_error_code_enums");this.Wb=this.iY.j("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.iY.j("html5_enable_server_driven_request_cancellation");this.V1=this.iY.j("html5_enable_sabr_request_timing");this.IK=this.iY.j("html5_enable_lawnmower"); this.nP=this.iY.eG()?g.jf(this.iY.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.gdR=g.jf(this.iY.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.qjp=this.iY.j("html5_live_defrag_only_h264_playbacks");this.BWg=this.iY.j("html5_live_defrag_only_h264_formats");this.aB=this.iY.j("html5_record_now");this.U9=g.jf(this.iY.experiments,"html5_drm_byterate_soft_cap");this.Ji=g.jf(this.iY.experiments,"html5_drm_live_byterate_soft_cap");this.J=this.iY.j("html5_sabr_log_request_creation"); this.ZD=this.iY.j("html5_use_buffer_timeline_for_sabr_request_creation");this.cV=this.iY.j("html5_sabr_report_request_cancellation_info");this.Lx=this.iY.j("html5_spoof_4k");this.Df=Sq(this,"html5_min_media_duration_for_cabr_slice");this.L4=Sq(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.Yo=this.iY.j("html5_remove_defrag_without_frame_level_streaming");this.Uc=this.iY.j("html5_consume_all_buffered_bytes_one_poll");this.XT=this.iY.j("html5_disable_urgent_adaptation");this.wA= this.iY.j("html5_apply_constraints_in_client_for_sabr");this.oM=this.iY.j("html5_send_video_playback_ustreamer_config");this.d4=Sq(this,"html5_max_discontinuity_rewrite_count");this.Nn=Sq(this,"html5_fixed_media_duration_for_request");this.Oq=this.iY.j("html5_apply_fix_for_missing_seg_info_without_logger");this.aT=this.iY.j("html5_enable_audio_quality_setting");this.iY.j("html5_enable_audio_quality_setting_feature");this.uw=Sq(this,"html5_sabr_request_limit_per_period");this.Dm=Sq(this,"html5_sabr_request_limit_per_period_for_low_latency"); this.l4g=Sq(this,"html5_sabr_request_limit_per_period_for_ultra_low_latency");this.lT=this.iY.j("html5_sabr_dispose_media_objects");this.UW=this.iY.j("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.wx=this.iY.j("html5_enable_d6de4");this.iY.j("html5_high_res_seek_logging");this.jk=this.iY.j("html5_disable_chunk_synchronization_sabr_seek");this.tQ=g.jf(this.iY.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Xw=this.iY.j("html5_byterate_constraints");this.dH=this.iY.j("html5_refactor_sabr_audio_format_selection_logging"); this.bA=this.iY.j("enable_sabr_snackbar_message");this.iY.j("html5_reinit_source_buffer_by_new_element");this.V7=this.iY.j("html5_refactor_sabr_video_format_selection_logging");this.J4=this.iY.j("html5_log_slice_info_in_sbu");this.N1=Sq(this,"html5_paced_poll_ms");this.r7=Sq(this,"html5_paced_poll_min_health_ms");this.PO=this.iY.j("html5_disable_sabr_fallback");this.pD=this.iY.j("html5_track_current_buffered_range_at_sync");this.c2T=g.f4(this.iY)?500:2E3;this.rZ=this.iY.j("html5_sabr_live_timing"); this.zV=this.iY.j("html5_count_updating_slice_for_buffer_health");this.Qr=this.iY.j("html5_report_max_buffer_bytes_limit_to_sabr");this.d0=this.iY.j("html5_sabr_live_audio_early_return_fix");this.Kg=g.jf(this.iY.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.SI=this.iY.j("html5_cuepoint_identifier_logging");this.Vs=this.iY.j("html5_new_sabr_ssdai_cuepoint_logic");this.k_=this.iY.j("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.PNT=this.iY.j("html5_skip_client_drm_license_constraint"); this.HE=this.iY.j("html5_ssdai_not_block_on_predict_start");this.Kx=this.iY.j("html5_pseudogapless_shorts_skip_abort_on_transition");this.Dt=this.iY.j("html5_sabr_request_on_constraint");this.dg8=this.iY.j("html5_live_metadata_resets_timeout");this.Ls=this.iY.j("html5_sabr_log_invalid_sabr_current_time");this.XH=this.iY.j("html5_ssdai_new_decoration_logic");this.iA=this.iY.j("html5_enable_smooth_audio_offset");this.h6=this.iY.j("html5_cuepoint_list_clear_on_seek");this.H1=g.qP(this.iY.OS());this.d7= this.iY.OS().N.Wx(dg8)}; g.hI=function(n){var Z,F,y;n=g.e((Z=n.getWatchNextResponse())==null?void 0:(F=Z.playerOverlays)==null?void 0:(y=F.playerOverlayRenderer)==null?void 0:y.decoratedPlayerBarRenderer,N7);return g.e(n==null?void 0:n.playerBar,BJQ)}; Mfn=function(){var n=document;return g.YW(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(Z){return"on"+Z.toLowerCase()in n})}; Ev=function(n,Z,F,y,l,m){m=m===void 0?0:m;By.call(this,n,{U:"div",K:"ytp-preview-ad",D:[{U:"div",K:"ytp-preview-ad__text"}]},"preview-ad",Z,F,y,l);var a=this;this.Tx=m;this.X=0;this.V=-1;this.T=this.Vg("ytp-preview-ad__text");switch(this.Tx){case 1:this.T.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.J9(this,400,!1,100,function(){a.hide()}); g.S(this,this.transition);this.hide()}; nrf=function(n,Z){return $Zj(n,Z,toT)}; Zjp=function(n,Z,F,y){var l=MT(n.X.get(),"SLOT_TYPE_PLAYER_UNDERLAY");F=new Sp(n.N,F);var m=[new nz(n.N,l)];n=[new ZX(n.N,Z),new lB(n.N,l)];return{slotId:l,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:m,slotExpirationTriggers:n,Gx:"core",clientMetadata:new lb([new mW(y({slotId:l,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:F,slotFulfillmentTriggers:m,slotExpirationTriggers:n}))])}}; g.f4=function(n){return/^TVHTML5/.test(h6(n))}; g.Ov=function(n){for(var Z;Z=n.firstChild;)n.removeChild(Z)}; cC=function(n){var Z=Zf(!0);return Z&&(Z===n.template.element||n.mediaElement&&Z===n.mediaElement.w1())?Z:null}; dw=function(n){var Z=null;Z={U:"button",s8:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Z:{title:"close"},E8:"[X]"};g.R.call(this,{U:"div",s8:["html5-video-info-panel","ytp-sfn"],D:[Z,{U:"div",s8:["html5-video-info-panel-content","ytp-sfn-content"],D:[{U:"div",D:[{U:"div",E8:"Video ID / sCPN"},{U:"span",E8:"{{video_id_and_cpn}}",K:"ytp-sfn-cpn"}]},{U:"div",D:[{U:"div",E8:"Viewport / Frames"},{U:"span",E8:"{{dims_and_frames}}"}]},{U:"div",D:[{U:"div",E8:"Current / Optimal Res"},{U:"span", E8:"{{resolution}}"}]},{U:"div",D:[{U:"div",E8:"Volume / Normalized"},{U:"span",E8:"{{volume}}"}]},{U:"div",D:[{U:"div",E8:"Codecs"},{U:"span",E8:"{{codecs}}"}]},{U:"div",Z:{style:"{{shader_info_style}}"},D:[{U:"div",E8:"Shader Info"},{U:"span",E8:"{{shader_info}}"}]},{U:"div",Z:{style:"{{color_style}}"},D:[{U:"div",E8:"Color"},{U:"span",E8:"{{color}}"}]},{U:"div",Z:{style:"{{drm_style}}"},D:[{U:"div",E8:"Protected"},{U:"span",E8:"{{drm}}"}]},{U:"div",Z:{style:"{{bandwidth_style}}"},D:[{U:"div",E8:"Connection Speed"}, {U:"span",D:[{U:"span",E8:"{{bandwidth_chart}}"},{U:"span",E8:"{{bandwidth_kbps}}"}]}]},{U:"div",Z:{style:"{{network_activity_style}}"},D:[{U:"div",E8:"Network Activity"},{U:"span",D:[{U:"span",E8:"{{network_activity_chart}}"},{U:"span",E8:"{{network_activity_bytes}}"}]}]},{U:"div",D:[{U:"div",E8:"Buffer Health"},{U:"span",D:[{U:"span",E8:"{{buffer_health_chart}}"},{U:"span",E8:"{{buffer_health_seconds}}"}]}]},{U:"div",Z:{style:"{{live_latency_style}}"},D:[{U:"div",E8:"Live Latency"},{U:"span",D:[{U:"span", E8:"{{live_latency_chart}}"},{U:"span",E8:"{{live_latency_secs}}"}]}]},{U:"div",Z:{style:"{{live_mode_style}}"},D:[{U:"div",E8:"Live Mode"},{U:"span",E8:"{{live_mode}}"}]},{U:"div",Z:{style:"{{playback_categories_style}}"},D:[{U:"div",E8:"Playback Categories"},{U:"span",E8:"{{playback_categories}}"}]},{U:"div",Z:{style:"{{fmt_debug_info_style}}"},D:[{U:"div",E8:"Format Debug Info"},{U:"span",E8:"{{fmt_debug_info}}"}]},{U:"div",D:[{U:"div",E8:"Mystery Text"},{U:"span",E8:"{{debug_info}}"}]},{U:"div", Z:{style:"{{extra_debug_info_style}}"},D:[{U:"div",E8:""},{U:"span",D:[{U:"span",E8:"{{extra_debug_info}}"}]}]},{U:"div",D:[{U:"div",E8:"Date"},{U:"span",E8:"{{date}}"}]},{U:"div",Z:{style:"{{cotn_and_local_media_style}}"},D:[{U:"div",E8:"COTN / Local Media"},{U:"span",E8:"{{cotn_and_local_media}}"}]},{U:"div",Z:{style:"{{release_style}}"},D:[{U:"div",E8:"Player Release"},{U:"span",E8:"{{release_name}}"}]}]}]});this.JG=n;this.position=0;this.S=!0;Z?this.G(this.Vg("ytp-sfn-close"),"click",this.hide): this.G(this.element,"click",this.hide);n=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];Z="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var F=n.map(function(y){return y/4}); this.J={};this.N=new V2(300,1,150,n,Z);g.S(this,this.N);this.updateValue("bandwidth_chart",this.N);this.T=new V2(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.S(this,this.T);this.updateValue("live_latency_chart",this.T);this.X=new V2(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.S(this,this.X);this.updateValue("buffer_health_chart",this.X);this.C=new V2(300,1,150,F,Z);g.S(this,this.C);this.updateValue("network_activity_chart", this.C);this.delay=new g.e7(this.g5,500,this);g.S(this,this.delay);this.V=new g.e7(this.L,2E4,this);g.S(this,this.V)}; FVo=function(n,Z,F){n=n.map(function(p){return vC(g.e(p.renderingContent,n7),!1)}); var y=n.map(function(p){return p.videoLengthSeconds}),l=y.map(function(p,L){return new I7(L,y)}),m=Z,a=F,D=[]; n.forEach(function(p,L){a=Math.min(m+p.videoLengthSeconds*1E3,F);f1(p.playerVars,l[L]);D.push({lQ:p,IM:m,YO:a,FZ:L,Zw:l[L]});m=a}); return D}; yvY=function(n,Z){n=n.itag.toString();Z!==null&&(n+=Z.itag.toString());return n}; s4Q=function(n,Z){var F,y=(F=window.screen)==null?void 0:F.orientation;if(n.Y.J&&y&&y.lock&&(!g.z$||!lpU))if(Z){Z=y.type.indexOf("portrait")===0;F=n.template.getVideoAspectRatio();var l=Z;F<1?l=!0:F>1&&(l=!1);n.Gr&&l===Z||(y=y.lock(l?"portrait":"landscape"),y!=null&&y.catch(function(){}),n.Gr=!0)}else n.Gr&&(n.Gr=!1,y.unlock())}; qv=function(n,Z){if((n<<1&6)<3&&n<<1>=-61){var F=Z[K[1]](K[12]);AI[K[74]](F,14);AI[K[44]](F,19);AI[K[74]](F,65);AI[K[66]](F,1);AI[K[74]](F,67);var y=F[K[35]](K[12])}if(n+3>=16&&(n|3)<27)throw Z;n+5&7||(NW(57,Z),y=Z[K[7]]);return y}; KVe=function(n,Z,F,y,l,m,a,D,p){var L=vC(g.e(Z,n7),p),q=F.IM,w=F.FZ,T=Math.min(q+L.videoLengthSeconds*1E3,D);F.IM=T;F.FZ++;F.RbY.push(L.videoLengthSeconds);var P,J,U=(P=g.e(Z,n7))==null?void 0:(J=P.playerOverlay)==null?void 0:J.instreamSurveyAdRenderer;if(L.adVideoId==="nPpU29QrbiU"&&U==null)throw new TypeError("Survey slate media has no survey overlay");return function(h){f1(L.playerVars,h);var v,V,f=L.videoLengthSeconds,W=L.playerVars,X=L.Nd,u=L.O7,Fp=L.instreamAdPlayerOverlayRenderer,nQ=L.playerOverlayLayoutRenderer, $U=L.adVideoId,mY=(v=g.e(Z,n7))==null?void 0:v.adLayoutLoggingData;v=(V=g.e(Z,n7))==null?void 0:V.sodarExtensionData;V=$e(y.X.get(),"LAYOUT_TYPE_MEDIA",n);var LQ={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",Gx:"adapter"};h={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",Nd:X,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"adapter",clientMetadata:new lb([new WC(a),new tL(f),new rc(W),new a7(q),new K1(T), new xh(w),new L7({current:null}),Fp&&new GM(Fp),nQ&&new R7(nQ),new K7(m),new JS($U),new Pd(h),v&&new ig(v),U&&new C1(U),new p1({}),new ug(u)].filter(mZ3)),lN:l(LQ),adLayoutLoggingData:mY};f=ap7(g.e(Z,n7),m,a,h.layoutId,y);return{Vx:h,vk8:f}}}; wc=function(n,Z,F){n[Z]=F.ib}; Ji=function(n){this.N=n||{cookie:""}}; VF=function(n,Z,F){n&&!F&&(n=n.parentNode);for(F=0;n;){if(Z(n))return n;n=n.parentNode;F++}return null}; g.bg=function(n,Z){switch(Z.kind){case "asr":DZf(Z,n.X);break;default:DZf(Z,n.N)}}; Xj=function(n){this.AG=UO(n)}; g.zi=function(n,Z){return TK8(n,Z)>=0}; zM=function(n,Z,F){if(!isNaN(F.s3)){var y=F.s3;F.XZ&&F.push(po(y,1))}); return F}; eUo=function(n){var Z=Math,F=Z.round,y=Math.min((0,g.tP)()-n.T,n.X);Z=F.call(Z,(n.X-y)/1E3);n.updateValue("duration",rF({seconds:Z}));Z<=0&&n.N?n.stopTimer():n.N&&n.N.start()}; Oof=function(n){g.l7(n.N,function(Z){Z.V>1E5||++Z.V})}; HjP=function(n){if(n.api.B().j("web_player_log_click_before_generating_ve_conversion_params"))for(var Z=Math.floor(-n.scrollPosition/(n.V+8)),F=Math.min(Z+n.columns,n.suggestionData.length)-1;Z<=F;Z++)n.api.logVisibility(n.N[Z].element,!0)}; xO=function(n){g.yO.call(this,n,{U:"div",K:"ytp-playlist-menu",Z:{role:"dialog",id:MG()},D:[{U:"div",K:"ytp-playlist-menu-header",D:[{U:"div",K:"ytp-playlist-menu-title",D:[n.B().T?{U:"span",K:"ytp-playlist-menu-title-name",E8:"{{title}}"}:{U:"a",K:"ytp-playlist-menu-title-name",Z:{href:"{{playlisturl}}"},E8:"{{title}}"},{U:"button",s8:["ytp-playlist-menu-close","ytp-button"],Z:{"aria-label":"Close"},D:[g.FP()]}]},{U:"div",K:"ytp-playlist-menu-subtitle",E8:"{{subtitle}}"}]},{U:"div",K:"ytp-playlist-menu-items", Z:{role:"menu"}}]},250);this.api=n;this.X=this.selected=this.T=this.playlist=null;this.items=this.Vg("ytp-playlist-menu-items");this.N=new g.IS(this);this.playlistData=[];this.G(this.Vg("ytp-playlist-menu-close"),"click",this.jG);var Z=this.Vg("ytp-playlist-menu-title-name");n.B().T||(this.X=this.G(Z,"click",this.MVp));g.S(this,this.N);this.hide()}; dZi=function(n){if(n.timer===void 0){var Z=Math.max(0,n.N+n.X-lm());n.timer=setTimeout(function(){try{n.callback()}finally{n.N=lm(),n.timer=void 0}},Z)}}; GU=function(n){return n.policy.KF&&!!n.C}; MZi=function(n,Z,F){var y=g.Y(n.index?XH(n.logger,function(){return NK7(B5Y(Z),F)},"R"):["u"]),l=y.next().value; y=y.next().value;n.logger.Ig(l);return y}; $hp=function(n){var Z=g.q$("html5-video-player");Z&&g.w4(Z,"ytp-ad-display-override",n)}; nni=function(n,Z,F,y){function l(D){D&&Z.appendChild(typeof D==="string"?n.createTextNode(D):D)} for(;y0)l(m);else{a:{if(m&&typeof m.length=="number"){if(g.VO(m)){var a=typeof m.item=="function"||typeof m.item=="string";break a}if(typeof m==="function"){a=typeof m.item=="function";break a}}a=!1}g.I5(a?g.rU(m):m,l)}}}; g.qO=function(n){n=T9(n);for(var Z=[],F=0;F-F?-Z/F*n.interval*.5:-(Z+F/2)/F*n.interval}; iz=function(n){if(n.nm)return!1;var Z=void 0;n.JV&&(Z=n.N.zo({cpn:n.JV}));return n.playback.getVideoData().Cq()?!!Z&&!Z.o8:!!Z}; Ct=function(n,Z){var F=n.X[Z],y=F[1];n.T+=F[0];y>0&&n.N[Z]==0&&(n.N[Z]=1)}; g.uz=function(n,Z){if("textContent"in n)n.textContent=Z;else if(n.nodeType==3)n.data=String(Z);else if(n.firstChild&&n.firstChild.nodeType==3){for(;n.lastChild!=n.firstChild;)n.removeChild(n.lastChild);n.firstChild.data=String(Z)}else g.Ov(n),n.appendChild(dt(n).createTextNode(String(Z)))}; bz=function(n,Z,F){return n.N-n.X?g.mk((Z-n.X)/(n.N-n.X),0,1):F!=null?F:Infinity}; K4P=function(n){n=Xx[n]!==void 0?Xx[n].toString():null;return n!=null&&/^[A-Fa-f0-9]+$/.test(n)?parseInt(n,16):null}; Z_=function(){return{U:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},D:[{U:"path",Z:{d:"M 17 8.6 L 10.89 4.99 C 9.39 4.11 7.5 5.19 7.5 6.93 C 7.5 6.93 7.5 6.93 7.5 6.93 L 7.5 29.06 C 7.5 30.8 9.39 31.88 10.89 31 C 10.89 31 10.89 31 10.89 31 L 17 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z M 17 8.6 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 V 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 33 18 C 33 18 33 18 33 18 C 33 18 33 18 33 18 V 18 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z", fill:"white"}}]}}; ig=function(n){this.value=n}; Dh7=function(n){if(g.N5("offline_error_handling")){var Z=zU().get("errors",!0)||{};Z[n.message]={name:n.name,stack:n.stack};n.level&&(Z[n.message].level=n.level);zU().set("errors",Z,2592E3,!0)}}; P2=function(n,Z){n.X.add(Z)}; pUe=function(n){this.N=n}; tB=function(n){this.T=n;this.X=0;this.N=null}; T9=function(n){if(window.crypto&&window.crypto.getRandomValues)try{var Z=Array(n),F=new Uint8Array(n);window.crypto.getRandomValues(F);for(var y=0;y0&&!(m7(n,n.V[Z])<=l);Z--);for(F=F/n.policy.Pr-y;Z=F);Z++);n.nextVideo=n.eT.N[n.V[Z].id];n.L=Z}}; L4T=function(n,Z,F,y,l){this.T=n;this.X=Z;this.S=F;this.cpn=y;this.C=l;this.V=0;this.N=""}; KC=function(){l_.apply(this,arguments)}; Twn=function(n,Z,F){qNT([{settingItemId:Z,settingOptionValue:F}]);Dv(n.ZE(),function(y){wUj(y,Z,F)})}; tO=function(n,Z,F,y,l,m){var a=a===void 0?new onK(function(){var D=n.B(),p=n.getVideoData(1);return g.Cv(D,p?g.uf(p):"")},function(){return n.B().pageId},function(){return n.B().Wr},function(){var D; return(D=n.B().datasyncId)!=null?D:""},function(){return n.B().experiments}):a; this.W=n;this.X=Z;this.TN=F;this.nR=y;this.aW=l;this.U8=m;this.V=a;this.rg=null;this.N=new Map;this.T=new Kt7(a,this.U8)}; WP=function(n,Z){this.X=n;this.N=Z}; TUo=function(n,Z,F){this.layoutId=Z;this.offsetMs=F;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=n(this.triggerType)}; pC=function(n,Z,F,y){bp.call(this,Z,y);this.J=n;this.L=F}; LC=function(n,Z){var F=0;n=g.Y(n);for(var y=n.next();!(y.done||y.value.startTime>Z);y=n.next())F++;return F===0?F:F-1}; qp=function(n,Z){typeof n=="number"&&(n=(Z?Math.round(n):n)+"px");return n}; Jf3=function(n){var Z=new NK;var F=new wL;F=Oy(F,1,"botguard");n=Oy(F,2,n);this.N=JV8(Z,wL,1,PJj,n)}; Qoj=function(n,Z,F){var y;if(y=n.playback.getVideoData().Cq())y=(y=n.N.zo({cpn:Z}))&&y.xc?(n=n.N.N.get(y==null?void 0:y.xc))&&n.slice(-1)[0].cpn===Z:!1;return y&&F===2?1E3:0}; PE=function(n,Z,F,y,l){l=l===void 0?!1:l;if(n.policy.Nn)return Math.ceil(n.policy.Nn*Z);n.policy.kL&&(y=Math.abs(y));y/=n.playbackRate;var m=1/TR(n.zN);F=Math.max(.9*(y-3),oW(n.zN)+n.zN.X.N*m)/m*.8/(Z+F);F=Math.min(F,y);n.policy.oA>0&&l&&(F=Math.max(F,n.policy.oA));return YNT(n,F,Z)}; $u=function(n,Z,F){if(n.DD(F)&&(F=F.getVideoData(),!J2(n))){n=n.CJ;for(var y=g.Y(n.X),l=y.next();!l.done;l=y.next())if(l=l.value,F.sS===l.sS){Z+=l.I0/1E3;break}y=Z;n=g.Y(n.X);for(l=n.next();!l.done;l=n.next()){l=l.value;if(F.sS===l.sS)break;var m=l.I0/1E3;if(m=-48&&Z[K[20]]!=0&&(F=(F%Z[K[20]]+Z[K[20]])%Z[K[20]],Z[K[61]](0,1,Z[K[61]](F,1,Z[0])[0]));(n|16)==n&&(L=F(y,l,m,a,D,p));return L}; lg3=function(n,Z,F){var y=new cE(n.api,n.layoutId,n.interactionLoggingClientData,n.Hr,n.V.bind(n));y.oY(n.S);y.init(Tb("survey-question-multi-select"),Z,F);n.api.B().j("supports_multi_step_on_desktop")?n.T=y:n.questions.push(y);g.S(n,y)}; AL=function(n,Z,F,y){g.gU(EnU)(void 0,n,Z,F,y,void 0)}; OWQ=function(n){n.timelyActions&&(n.V=n.timelyActions.reduce(function(Z,F){if(F.cueRangeId===void 0)return Z;Z[F.cueRangeId]=0;return Z},{}))}; Vv=function(n){this.N=[];if(n)a:{if(n instanceof Vv){var Z=n.EZ();n=n.Lm();if(this.N.length<=0){for(var F=this.N,y=0;y0)if(y1()){var l=cff(n,Z);Z=Z.filter(function(L){return!!L&&!!L.video&&L.vr===l[L.video.qualityOrdinal].vr})}else{var m,a,D=(m=Z[0])==null?void 0:(a=m.video)==null?void 0:a.qualityOrdinal; if(D){F=Z.filter(function(L){return!!L&&!!L.video&&L.video.qualityOrdinal===D}); var p=cff(n,F)[D].vr;Z=Z.filter(function(L){return!!L&&!!L.video&&L.vr===p})}}return Z}; vnj=function(n){var Z=[];n.N.forEach(function(F){F=g.Y(F.values());for(var y=F.next();!y.done;y=F.next())Z.push(y.value.slot)}); return Z}; IW=function(n){this.N=n}; I3K=function(n){return(fC(n.videoData)||!!n.videoData.liveUtcStartSeconds)&&(!!n.videoData.liveUtcStartSeconds||A2(n))&&!!n.videoData.N}; Iy=function(n){var Z;if(Z=n.Ns&&n.T!=null)n=n.T,Z=!(!n.N||!n.N.keyStatuses);return Z}; Pk=function(n,Z,F,y){Z=Z===void 0?!1:Z;F=F===void 0?!1:F;y=y===void 0?!1:y;if(!n)return null;switch(n.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return F?{U:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",Z:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:WE();case "CHECK_BOX":return{U:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{U:"path",Z:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{U:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",Z:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{U:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.FP();case "INFO_OUTLINE":return Z?{U:"svg",Z:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},D:[{U:"path",Z:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}: f38();case "REMOVE_CIRCLE":return{U:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{U:"path",Z:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return rL();case "SKIP_NEXT_NEW":return y?AfY():{U:"svg",Z:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},D:[{U:"path",Z:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return W4o(); case "DISLIKE":return rf7();default:return g.yi(new g.FV("Unexpected icon:",n)),null}}; xH=function(){return g.Di("yt.gcf.config.hotConfigGroup")}; fzf=function(n,Z){n.status="km";fZ("drm_net_s",void 0,n.videoData.Pr);var F=new g.GR(n.Y.Kh),y={context:g.RW(F.config_||g.gL())};y.drmSystem=xh3[n.X.flavor];y.videoId=n.videoData.videoId;y.cpn=n.videoData.clientPlaybackNonce;y.sessionId=n.sessionId;y.licenseRequest=g.Ee(Z.message);y.drmParams=n.videoData.drmParams;isNaN(n.cryptoPeriodIndex)||(y.isKeyRotated=!0,y.cryptoPeriodIndex=n.cryptoPeriodIndex);var l,m,a=!!((l=n.videoData.X)==null?0:(m=l.video)==null?0:m.isHdr());y.drmVideoFeature=a?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";n.Y.experiments.OS().N.Wx(Gji)&&(y.context=g.ij(n.videoData));if(y.context&&y.context.client){if(l=n.Y.N)y.context.client.deviceMake=l.cbrand,y.context.client.deviceModel=l.cmodel,y.context.client.browserName=l.cbr,y.context.client.browserVersion=l.cbrver,y.context.client.osName=l.cos,y.context.client.osVersion=l.cosver;n.Y.experiments.OS().N.Wx(Gji)||(y.context.user=y.context.user||{},n.videoData.Tx&&(y.context.user.credentialTransferTokens=[{token:n.videoData.Tx,scope:"VIDEO"}]), n.videoData.hG&&(y.context.user.kidsParent={oauthToken:n.videoData.hG}));y.context.request=y.context.request||{};y.context.request.mdxEnvironment=n.videoData.mdxEnvironment||y.context.request.mdxEnvironment;g.AB(n.X)&&(y.fairplayKeyId=g.Ee(XJP(n.fairplayKeyId)));g.Cv(n.Y,g.uf(n.videoData)).then(function(D){RM3(Z,y,F,D);n.status="rs"})}else n.error("drm.net",2,"t.r;ic.0")}; iWY=function(n){var Z,F;g.A(function(y){if(y.N==1)return g.x(y,gnT(n),2);Z=y.X;F=(0,g.tP)()-2592E6;return g.x(y,g.$5(Z,["SWHealthLog"],{mode:"readwrite",Or:!0},function(l){return g.CC(l.objectStore("SWHealthLog"),{},function(m){if(m.getValue().timestamp<=F)return m.delete().then(function(){return g.uj(m)})})}),0)})}; CJP=function(n){n.X!==void 0&&(n.T.forEach(function(Z){var F;(F=n.X)==null||F.removeEventListener(Z,n.V)}),n.X=void 0)}; bj=function(n,Z,F,y){n=n.VD(null,y,!0,Z);n.V=F;UvU([n]);return n}; t2=function(n,Z){for(var F;;){if(n.Md<262){tY(n);if(n.Md<262&&Z===0)return 1;if(n.Md===0)break}F=0;n.Md>=3&&(n.cI=(n.cI<=3)if(F=XJ(n,n.VP-n.VS,n.Ys-3),n.Md-=n.Ys,n.Ys<=n.oa&&n.Md>=3){n.Ys--;do n.VP++,n.cI=(n.cI<=0?n:-n-2}; tsj=function(n,Z){if(n.Y.eG()&&n.mediaElement){var F=n.mediaElement.Zx();F.omt=(n.mediaElement.getCurrentTime()+n.Kn()).toFixed(3);F.ps=n.playerState.state.toString(16);F.rt=(g.kq(n.g1.provider)*1E3).toFixed();F.e=Z;n.s4[n.Ob++%5]=F}}; g.HP=function(n){return"crn_"+n}; i2=function(n){var Z=n.mediaElement;Z&&n.K$&&!n.videoData.L&&!uO("vfp",n.bN.timerName)&&Z.Ih()>=2&&!Z.isEnded()&&eV(Z.WE())&&n.bN.tick("vfp");return(Z=n.mediaElement)&&!n.videoData.L&&Z.getDuration()>0&&(Z.isPaused()&&Z.Ih()>=2&&eV(Z.WE())&&(uO("pbp",n.bN.timerName)||n.bN.tick("pbp"),!n.videoData.p6||n.uq||Z.isSeeking()||(n.uq=!0,n.publish("onPlaybackPauseAtStart"))),Z=Z.getCurrentTime(),HE(n.Bo,Z))?(n.WA(),!0):!1}; kjj=function(n,Z){this.N=n;this.duration=Z}; Qd=function(n){n.Wr=[];n.Uh();n.W.V9("featured_product")}; eMK=function(n,Z,F){return Z=Z.filter(function(y){if(y.video.qualityOrdinal<=n.PV)return!0;F[y.itag]="maxquality";return!1})}; dL=function(n,Z,F){return g.gU(function(){if(uO(n,F))return!1;fZ(n,Z,F);return!0})()}; HWQ=function(){try{var n=xW(FK);n.uo("removeEventListener","ready",HWQ);dhT(n)}catch(Z){xr(541,Z)}}; HO=function(n){return n.N[0]&&n.N[0].N}; FYf=function(n,Z,F){return F.triggeringSlotId!=null&&F.triggeringSlotId===n?F.clone(Z):F}; Bwf=function(){var n=this;this.N=new Map;this.T=new Map;this.X=new Map;this.vx={bY5:function(){return new Map(n.N)}}}; Mp=function(n,Z,F,y){var l=y;qA(n);y=n.AG;n=ee(n,y,y[kt]|0,F,Z,2,void 0,!0);l=l!=null?BE(l,F):new F;n.push(l);Z=F=n===dQ?7:n[kt]|0;(l=t9(l))?(F&=-9,n.length===1&&(F&=-4097)):F|=4096;F!==Z&&v6(n,F);l||k1(y)}; F2=function(n,Z){var F=n.api.Br().hB(),y=n.api.LK(!0,!1);return(Z=$N(F,F.height-(y.height+y.top),Z))?(n.r5&&Z&&(F=g.nO(n.macros),F.ERRORCODE=Z.Oa.toString(),F.ERROR_MSG=Z.errorMessage,n.layoutId?ZZ(n.Hr,n.r5,n.layoutId,F):g.ZW(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; Msf=function(n,Z){PU(n)?g.MC(function(){Z(n)}):n.callback=Z}; Co=function(n){Yq.X.cancel();yw=n;Yq.done=!0}; $Xi=function(n){return n.W.B().experiments.RY("enable_progress_commands_lr_shorts")}; sA=function(n){return em(n).then(function(Z){return Z?new ln(n,Z):null})}; nLP=function(n,Z){mQ(Z,"cms",function(F){n.policy.T&&n.Xp("pathprobe",F)},function(F){n.mQ.handleError(F)})}; FUe=function(n,Z,F,y,l,m,a){var D={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Gx:"core"};Z=aG(n,Z,F);if(Z instanceof C)return Z;F=[];F.push(new K7(Dg(m)));m==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&a!==void 0&&F.push(new p7(a));return Object.assign({},D,{renderingContent:n.renderingContent,Nd:new Map([["impression",Z5f(n)]])},Z,{lN:yP(y,l)(D),clientMetadata:new lb(F),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})}; KO=function(){MP.call(this);this.C=null;this.S=!1;this.V="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; lN7=function(){var n=ywY||G5;if(!n)return"";var Z=[];if(!n.location||!n.location.href)return"";Z.push("url="+encodeURIComponent(n.location.href.substring(0,512)));n.document&&n.document.referrer&&Z.push("referrer="+encodeURIComponent(n.document.referrer.substring(0,512)));return Z.join("&")}; g.$k=function(n){var Z=[],F;for(F in n)DZ(F,n[F],Z);return Z.join("&")}; GLQ=function(n){n.CR()||(n.T.resolve(),n.T=new g.uR)}; Zop=function(n,Z){var F=new s3Q;g.pO(n.xhr,"complete",function(){if(S5(n.xhr)){var y=g.LO(n.xhr);if(Z&&n.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");y=atob(y)}try{var l=n.J(y)}catch(D){b_(n,q2(new tR(13,"Error when deserializing response data; error: "+D+(", response: "+y)),F));return}y=ROi(n.xhr.getStatus());sn(n,mi(n));y===0?Y0o(n,l):b_(n,q2(new tR(y,"Xhr succeeded but the status code is not 200"),F))}else{y=g.LO(n.xhr);l=mi(n);if(y){var m= G2i(n,y);y=m.code;var a=m.details;m=m.metadata}else y=2,a="Rpc failed due to xhr error. uri: "+String(n.xhr.L)+", error code: "+(n.xhr.X+", error: ")+n.xhr.getLastError(),m=l;sn(n,l);b_(n,q2(new tR(y,a,m),F))}})}; w0=function(n){var Z;(Z=n.J)==null||mX3(Z);n.Pr=[]}; Qw=function(n){TS(n);n.Q9=null;var Z=aNT(n.Y,n.videoData,n.rJ());n.p7=Z;n.p7.then(function(F){kf8(n,F)},function(F){n.CR()||(F=oG(F),n.visibility.isBackground()?(PW(n,"vp_none_avail"),n.p7=null,n.JL.reset()):(n.JL.finished=!0,n.Mj(F.errorCode,F.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",UQ(F.details))))}); return Z}; Sx=function(n,Z){Z=Math.max(Math.max(1,Math.ceil(n.policy.V/YN(n))),Z);return Math.min(Math.min(8,Math.floor(n.policy.Pr/YN(n))),Z)}; DXU=function(n,Z,F){n=n.l_;if(n==="WEB"||n==="MWEB"||n===1||n===2)if(Z){F=vU(Z,jV,96)||new jV;var y=jx();y=Object.keys(KUf).indexOf(y);y=y===-1?null:y;y!==null&&pz(F,3,y);cV(Z,jV,96,F)}else F&&(F.client.mainAppWebInfo=(y=F.client.mainAppWebInfo)!=null?y:{},F.client.mainAppWebInfo.webDisplayMode=jx())}; UA=function(){I6.apply(this,arguments)}; pQe=function(n,Z){n.buildLabel=Z;return n}; MG=function(){var n="ytp-id-"+LUK.toString();LUK++;return n}; qRK=function(n){n.S=0;n.N="hidden";n.X=void 0;n.V=void 0;n.C.stop();n.T=void 0}; hK=function(n,Z,F,y,l,m){By.call(this,n,{U:"div",s8:["ytp-flyout-cta","ytp-flyout-cta-inactive"],D:[{U:"div",K:"ytp-flyout-cta-icon-container"},{U:"div",K:"ytp-flyout-cta-body",D:[{U:"div",K:"ytp-flyout-cta-text-container",D:[{U:"div",K:"ytp-flyout-cta-headline-container"},{U:"div",K:"ytp-flyout-cta-description-container"}]},{U:"div",K:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",Z,F,y,l);this.T=new LE(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-flyout-cta-icon"); g.S(this,this.T);this.T.oY(this.Vg("ytp-flyout-cta-icon-container"));this.T.element.classList.add("ytp-flyout-cta-icon-rounded");this.S=new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-flyout-cta-headline");g.S(this,this.S);this.S.oY(this.Vg("ytp-flyout-cta-headline-container"));this.V=new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-flyout-cta-description");g.S(this,this.V);this.V.oY(this.Vg("ytp-flyout-cta-description-container"));this.X=new sR(this.api, this.layoutId,this.interactionLoggingClientData,this.Hr,["ytp-flyout-cta-action-button","ytp-flyout-cta-action-button-rounded"]);g.S(this,this.X);this.X.oY(this.Vg("ytp-flyout-cta-action-button-container"));this.X.element.setAttribute("tabIndex","-1");N2(this.X.element);this.Tx=null;this.zx=0;this.jT=m;this.hide()}; nv=function(n,Z){this.X=[];this.V=[];this.S=[];this.T=[];this.N=[];this.C=n.MGQ;this.J=Z;this.xhr=n.xhr;this.C&&i7f(this)}; wQK=function(){var n=[],Z=B6();n.push(xW(EA));f7(Z.Vm,"mvp_lv")&&n.push(xW(FK));Z=[new OA,new cW];Z.push(new Vw(n));Z.push(new ip(G5));return Z}; g.vW=function(n,Z){n.style.display=Z?"":"none"}; IG=function(n){switch(typeof n){case "bigint":return!0;case "number":return mX(n);case "string":return Tde.test(n);default:return!1}}; WW=function(n,Z,F,y){g.Xu.call(this);this.videoData=n;this.Y=Z;this.L=F;this.sessionId=y;this.S={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Tx=this.w5=!1;this.T=null;this.Wr=[];this.V=[];this.authorizedFormats=[];this.Pr=[];this.J=!1;this.N={};this.status="";this.C=NaN;this.X=n.S;this.cryptoPeriodIndex=F.cryptoPeriodIndex;n={};Object.assign(n,this.Y.N);n.cpn=this.videoData.clientPlaybackNonce;this.videoData.Tx&&(n.vvt=this.videoData.Tx,this.videoData.mdxEnvironment&&(n.mdx_environment= this.videoData.mdxEnvironment));this.Y.Wr&&(n.authuser=this.Y.Wr);this.Y.pageId&&(n.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(n.cpi=this.cryptoPeriodIndex.toString());var l=(l=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.PT()))?l[1]:"";l==="ATV"&&(n.cdt=l);this.S=n;this.S.session_id=y;this.Ns=!0;this.X.flavor==="widevine"&&(this.S.hdr="1");this.X.flavor==="playready"&&(Z=Number(fO(Z.experiments,"playready_first_play_expiration")),!isNaN(Z)&&Z>=0&&(this.S.mfpe=""+Z),this.Ns=!1);Z="";g.AB(this.X)? Jr(this.X)?(y=F.X)&&(Z="https://www.youtube.com/api/drm/fps?ek="+oLf(y)):(Z=F.initData.subarray(4),Z=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2),Z=String.fromCharCode.apply(null,Z).replace("skd://","https://")):Z=this.X.X;this.baseUrl=Z;this.fairplayKeyId=AK(this.baseUrl,"ek")||"";if(Z=AK(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(Z);this.Wr=F.dV?[g.Ee(F.initData,4)]:F.T;Id(this,{sessioninit:F.cryptoPeriodIndex});this.status="in"}; r0=function(n){vk.call(this,n);var Z=this;this.N={};this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"videodatachange",function(){Z.onVideoDataChange()}); this.events.G(n,g.HP("embargo"),function(F){Z.api.nh(!0);var y,l=(y=Z.N[F.id])!=null?y:[];y=g.Y(l);for(l=y.next();!l.done;l=y.next()){var m=l.value;Z.api.hideControls();Z.api.Mj("auth",2,"This video isn't available in your current playback area",UQ({embargoed:1,id:F.id,idx:F.X,start:F.start}));l=void 0;(m=(l=m.embargo)==null?void 0:l.onTrigger)&&Z.api.LR("innertubeCommand",m)}})}; Jwn=function(n,Z,F,y){(n=g.KQ[n])||typeof document==="undefined"||(n=(new Ji(document)).get(Z));return n?PMe(n,F,y):null}; YR8=function(n,Z,F,y,l){var m=n.provider.Y.N.cbrver;n.provider.Y.N.cbr==="Chrome"&&/^96[.]/.test(m)&&F==="net.badstatus"&&/rc\.500/.test(l)&&xN(n,3);n.provider.Y.j("html5_use_ump")&&/b248180278/.test(l)&&xN(n,4);m=n.provider.getCurrentTime(n.adCpn||n.provider.videoData.clientPlaybackNonce);y=y===1?"fatal":"";F=[F,y,m.toFixed(3)];y&&(l+=";a6s."+GS());l&&F.push(Q3i(l));g.bM(n,Z,"error",F);n.V=!0}; Wk=function(n,Z){var F=this;this.handleError=n;this.N=Z;this.X=!1;self.document===void 0||self.addEventListener("beforeunload",function(){F.X=!0}); this.T=Math.random()<=.2}; j3K=function(n){var Z=new SRQ;Z.V=n.j("h5_gapless_support_types_diff");Z.L=!1;Z.Ns=n.j("html5_gapless_use_format_info_fix");Z.C=n.j("html5_gapless_disable_on_av1")&&!n.j("html5_gapless_enable_on_av1");Z.S=n.j("html5_gapless_check_codec_diff_strictly");Z.Pr=n.j("html5_gapless_on_ad_autoplay");Z.J=n.j("html5_gapless_disable_diff_aspect_radio");Z.X=n.j("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!n.j("html5_disable_loop_range_for_shorts_ads");Z.N=n.j("html5_pseudogapless_shorts_seek_to_next_start"); Z.T=n.j("html5_gapless_ad_autoplay_on_video_to_ad_only");return Z}; g0=function(){this.X=new jZ;this.r5=this.jT=0;this.fR=new RG;this.Tx=this.J=-1;this.hG=1E3;this.d5=new jZ([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.zx=this.w5=-1}; w6Q=function(n,Z,F){n=n.X();if(typeof n==="function"){var y={};var l={};y=Object.assign({},CO!==null&&(y.v=CO,y),(l.sv="968",l.cb=UXT,l.e=VKK(Z),l));l=H6(F,Z,dk());g.RH(y,l);F.Yh[Z]=l;y=F.UZ()==2?NdY(y).join("&"):F.Zv.N(y).N;try{return n(F.B1,y,Z),0}catch(m){return 2}}else return 1}; hTY=function(n,Z,F){for(var y=[],l=0;l200&&(f="manifest.net.badstatus",h===400&&(v=2));return Promise.reject(new g.Xv(f,V,v))}} var l,m,a,D,p,L,q,w,T,P,J,U;return g.A(function(h){if(h.N==1){n.fetchType="gvi";l=n.B();var v={};n.ma&&(v.ytrext=n.ma);(D=g.Zc(v)?void 0:v)?(m={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:D},a=Fr(Z,{action_display_post:1})):(m={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},a=Z);p={};l.sendVisitorIdHeader&&n.visitorData&&(p["X-Goog-Visitor-Id"]=n.visitorData);(L=fO(l.experiments,"debug_sherlog_username"))&&(p["X-Youtube-Sherlog-Username"]=L);Object.keys(p).length> 0&&(m.headers=p);q=(0,g.tP)();return g.x(h,yH(l4,a,m).then(void 0,F),2)}w=h.X;if(!w||!w.responseText)return h.return(y(w));n.loading=!1;T=jy(w.responseText);g.zX(n,T,!0);if(n.errorCode)return P={ec:n.errorCode,ed:n.errorDetail,es:n.pO||""},h.return(Promise.reject(new g.Xv("auth",P,2)));if(!n.loading&&!tU(n))return J=n.isAd()?"auth":"manifest.net.retryexhausted",U=n.isAd()?2:1,h.return(Promise.reject(new g.Xv(J,{successButUnplayable:"1"},U)));g.zA(h)})}; CM7=function(n){n=n.adPlacementRenderer.config.adPlacementConfig;if(!n.prefetchModeConfig||!n.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;n=Number(n.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(n)||n<=0?0:Math.floor(Math.random()*n)}; zTe=function(n,Z){var F=Z.cancelRenderer&&Z.cancelRenderer.buttonRenderer||null;F&&(n.N=new sR(n.api,n.layoutId,n.interactionLoggingClientData,n.Hr,["ytp-ad-feedback-dialog-close-button"],"button"),g.S(n,n.N),n.N.init(Tb("button"),F,n.macros),n.N.listen("click",n.cD,n),n.N.oY(n.element));Z.title&&(F=g.sg(Z.title),n.updateValue("title",F));Z.reasonsTitle&&(F=g.sg(Z.reasonsTitle),n.updateValue("reasonsTitle",F));Z.reasons&&ukp(n,Z.reasons);Z.cancelLabel&&(F=g.sg(Z.cancelLabel),n.updateValue("cancelLabel", F),g.my(n.S,"click",function(){return n.cD()})); Z.confirmLabel&&(F=g.sg(Z.confirmLabel),n.updateValue("confirmLabel",F),g.my(n.L,"click",function(){return b5Q(n)})); Z.undoRenderer&&XQ7(n,Z.undoRenderer)}; sR=function(n,Z,F,y,l,m,a,D,p){l=l===void 0?[]:l;a=a===void 0?!1:a;p=p===void 0?!1:p;l={U:"button",s8:["ytp-ad-button"].concat(l)};D!=null&&(l.Z={tabindex:D});CW.call(this,n,l,m===void 0?"button":m,Z,F,y);this.N=this.X=this.T=null;this.S=a;this.V=p;this.hide()}; tt8=function(n){this.AG=UO(n)}; ki8=function(n){n=n.charCodeAt(0);return"%"+(n>>4&15).toString(16)+(n&15).toString(16)}; g.xA=function(n){n&&typeof n.dispose=="function"&&n.dispose()}; g.a8=function(n){var Z=n.api.AX()?32:16;Z=n.J/2+Z;n.next.element.style.bottom=Z+"px";n.previous.element.style.bottom=Z+"px";Z=n.scrollPosition;var F=n.containerWidth-n.suggestionData.length*(n.V+8);g.w4(n.element,"ytp-scroll-min",Z>=0);g.w4(n.element,"ytp-scroll-max",Z<=F)}; eye=function(n){return!!n.by&&!!n.by.fairplay&&(n.vr==="("||n.vr==="(h"||n.vr==="A"||n.vr==="MEAC3")||KD&&!!n.by&&n.vr==="1e"}; eTp=function(n){var Z={tick:{},info:{}};g.pv("ytcsi."+(n||"")+"data_",Z);return Z}; H57=function(n){var Z,F;(F=(Z=window).onerror)==null||F.call(Z,n.message,"",0,0,n)}; dXj=function(n){for(var Z=g.Y(Object.values(n.S)),F=Z.next();!F.done;F=Z.next())F.value.dispose();n.S={};n.X=null;n.C=null;n.L.clear();Dc(n)}; pD=function(){return{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z", fill:"white"}}]}}; i4o=function(n){var Z=n[BdQ];if(!Z){var F=LU(q7,wc,TM,n);Z=function(y,l){return Mti(y,l,F)}; n[BdQ]=Z}return Z}; Z6e=function(n,Z){if(!n)return!1;var F,y=(F=g.e(n,$5K))==null?void 0:F.signal;if(y&&Z.KT)return!!Z.KT[y];var l;if((F=(l=g.e(n,nui))==null?void 0:l.request)&&Z.oO)return!!Z.oO[F];for(var m in n)if(Z.EU[m])return!0;return!1}; o8=function(n,Z){var F="";if(n.dangerousLogToVisitorSession)F="visitorOnlyApprovedKey";else if(n.cttAuthInfo){if(Z===void 0?0:Z){Z=n.cttAuthInfo.token;F=n.cttAuthInfo;var y=new y2;F.videoId?y.setVideoId(F.videoId):F.playlistId&&lX(y,2,LD,qc(F.playlistId));wD[Z]=y}else Z=n.cttAuthInfo,F={},Z.videoId?F.videoId=Z.videoId:Z.playlistId&&(F.playlistId=Z.playlistId),Td[n.cttAuthInfo.token]=F;F=n.cttAuthInfo.token}return F}; yd3=function(){try{var n=g.Di("yt.ads.biscotti.getId_");return n?n():FD3()}catch(Z){return cc(Z)}}; J_=function(n){return!n.keySystemAccess&&!!PX()&&n.keySystem==="com.apple.fps.1_0"}; Yw=function(n,Z,F,y,l,m,a,D,p,L,q,w,T,P){QH.call(this,n,Z,F,y,l,a,D,p,L,w);this.P9=m;this.OG=q;this.TN=T;this.U8=P;this.sS=this.A2=null}; jP=function(n){g.R.call(this,{U:"div",K:"ytp-shorts-title-channel",D:[{U:"a",K:"ytp-shorts-title-channel-logo",Z:{href:"{{channelLink}}",target:n.B().Pr,"aria-label":"{{channelLogoLabel}}"}},{U:"div",K:"ytp-shorts-title-expanded-heading",D:[{U:"div",K:"ytp-shorts-title-expanded-title",D:[{U:"a",E8:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:n.B().Pr,tabIndex:"0"}}]}]}]});var Z=this;this.api=n;this.N=this.Vg("ytp-shorts-title-channel-logo");this.channelName=this.Vg("ytp-shorts-title-expanded-title"); this.subscribeButton=null;n.createClientVe(this.N,this,36925);this.G(this.N,"click",function(F){Z.api.logClick(Z.N);g.SP(window,lI3(Z));F.preventDefault()}); n.createClientVe(this.channelName,this,37220);this.G(this.channelName,"click",function(F){Z.api.logClick(Z.channelName);g.SP(window,lI3(Z));F.preventDefault()}); pOn(this);this.G(n,"videodatachange",this.g5);this.G(n,"videoplayerreset",this.g5);this.g5()}; Ug=function(n){this.value=n}; cwT=function(n){if(!g.N5("universal_csi_network_ticks"))return function(){}; var Z=srU[n];return Z?(dL(Z),function(){var F=g.N5("universal_csi_network_ticks")?(F=m5e[n])?dL(F):!1:!1;return F}):function(){}}; h_=function(n){return{itagDenylist:Nc(n,1)}}; Eg=function(n){g.R.call(this,{U:"div",K:"ytp-seek-overlay",D:[{U:"div",s8:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],D:[{U:"div",s8:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],D:[{U:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"24"},D:[{U:"path",Z:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{U:"div",K:"ytp-seek-overlay-duration",E8:"{{durationBack}}"}]},{U:"div",s8:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],D:[{U:"div",K:"ytp-seek-overlay-duration",E8:"{{durationForward}}"},{U:"div",s8:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],D:[{U:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"24"},D:[{U:"path",Z:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{U:"div",K:"ytp-seek-overlay-message",D:[{U:"div",K:"ytp-seek-overlay-message-icon",E8:"{{icon}}"},{U:"div",K:"ytp-seek-overlay-message-text", E8:"{{text}}"}]}]});var Z=this;this.W=n;this.S=0;this.N="hidden";this.J=this.Vg("ytp-seek-overlay-animation-back");this.L=this.Vg("ytp-seek-overlay-animation-forward");this.Ns=this.Vg("ytp-seek-overlay-message");this.C=new g.e7(function(){aIT(Z)},g.jf(this.W.B().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.S(this,this.C);this.W.createClientVe(this.L,this,28240);this.W.createClientVe(this.J,this,28239);this.W.logVisibility(this.L,!0);this.W.logVisibility(this.J,!0);this.hide()}; KDi=function(n,Z,F,y){var l,m,a;return g.A(function(D){switch(D.N){case 1:return l={config:n,hashData:Z,timestamp:y!==void 0?y:(0,g.tP)()},g.x(D,Kv(F),2);case 2:return m=D.X,g.x(D,m.clear("hotConfigStore"),3);case 3:return g.x(D,g.Mn(m,"hotConfigStore",l),4);case 4:return a=D.X,D.return(a)}})}; Og=function(n){n.CR()||(n.Pr=!0,n.Xe({onmdkrdy:1}),Qh(n))}; LDT=function(n){var Z=g.PT();if(n==="Internet Explorer"){if(Sxn())if((n=/rv: *([\d\.]*)/.exec(Z))&&n[1])Z=n[1];else{n="";var F=/MSIE +([\d\.]+)/.exec(Z);if(F&&F[1])if(Z=/Trident\/(\d.\d)/.exec(Z),F[1]=="7.0")if(Z&&Z[1])switch(Z[1]){case "4.0":n="8.0";break;case "5.0":n="9.0";break;case "6.0":n="10.0";break;case "7.0":n="11.0"}else n="7.0";else n=F[1];Z=n}else Z="";return Z}var y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");F=[];for(var l;l=y.exec(Z);)F.push([l[1],l[2],l[3]||void 0]); Z=D5o(F);switch(n){case "Opera":if(u7())return Z(["Version","Opera"]);if(CQ()?b7("Opera"):Rf("OPR"))return Z(["OPR"]);break;case "Microsoft Edge":if(CQ()?0:Rf("Edge"))return Z(["Edge"]);if(pTp())return Z(["Edg"]);break;case "Chromium":if(i7())return Z(["Chrome","CriOS","HeadlessChrome"])}return n==="Firefox"&&Xp()||n==="Safari"&&z3()||n==="Android Browser"&&pM7()||n==="Silk"&&Rf("Silk")?(Z=F[2])&&Z[1]||"":""}; wMY=function(){J6();return qjp()}; Jd3=function(n,Z,F,y,l,m,a,D,p,L,q,w,T,P,J){var U=aG(F,m,l.bU);if(U instanceof C)return U;if(g.e(F.renderingContent,n7)){p=ToP([F],l,p);if(p instanceof C)return p;if(p.length!==1)return new C("Only expected one media layout.");n=ouU(n,Z,F,U,p[0],void 0,"core",y,m,a,D,L,T,P,l.bU,void 0,J);return n instanceof C?n:{layout:n.layout,zU:n.ly?[n.ly]:[]}}var h=g.e(F.renderingContent,cX);if(h){if(!Zg(F.adLayoutMetadata))return new C("Invalid ad layout metadata");if(!VH(h))return new C("Invalid sequential layout"); h=h.sequentialLayouts.map(function(v){return v.playerBytesAdLayoutRenderer}); n=PYo(n,Z,F.adLayoutMetadata,U,h,y,m,l,p,a,D,L,q,w,T,P,J);return n instanceof C?n:{layout:n.wl,zU:n.zU}}return new C("Not able to convert a sequential layout")}; Qrp=function(n,Z,F,y,l){try{if(n.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var m=F(n.state.reason);m instanceof g.vX?I8(n,Z,m,y,l):y(m)}catch(a){l(a)}}; Sjo=function(n){var Z=Z===void 0?5:Z;return n?YjT[n]||Z:Z}; Gf=function(){this.N=this.X=null}; jrU=function(n){if(g.tv("cobalt")&&g.tv("nintendo switch")){var Z=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;n.Xp("nxdock",{d:Z})}}; g.fD=function(n){n.isActive()&&g.y4(n)}; U5T=function(n){var Z=!!f7(B6().Vm,"umt");return n.Pr||!Z&&!n.r5?0:1}; ho3=function(n,Z,F){F=F.opt_configurable_tracking_events;n.N!=null&&Array.isArray(F)&&Nof(n,F,Z)}; A_=function(n,Z,F,y,l,m,a){m=m===void 0?!1:m;a=a===void 0?!1:a;CW.call(this,n,{U:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",Z,F,y);this.T=l;this.N=this.Vg("ytp-ad-simple-ad-badge");(this.X=m)&&this.N.classList.add("ytp-ad-simple-ad-badge--clean-player");a&&this.N.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; O67=function(n){if(g.VO(n))for(var Z in n)Z==="html_content"||EuQ(Z,"_html")?n[Z]=k6(n[Z]):O67(n[Z])}; WX=function(n){this.AG=UO(n)}; xw=function(n){return new Uint8Array(rD(n)||0)}; g.r68=function(n){return n.T4?null:n.playerResponse&&n.playerResponse.endscreen&&n.playerResponse.endscreen.endscreenRenderer||null}; g.R8=function(n,Z,F){Z=Z===void 0?{}:Z;F=F===void 0?!1:F;var y=g.BT("EVENT_ID");y&&(Z.ei||(Z.ei=y));Z&&Bi(n,Z);F||(Gd(n),g.cd7(n))}; VAY=function(n,Z){var F=n.Ur!==Z;n.Ur=Z;F&&gD(n)}; i4=function(n){var Z=n.T.pB();return Z?Z.info:m1(n)}; vuj=function(n,Z){var F=n.app;CD(F.dM())&&F.qd.V[2]&&g.u4(n.logger,360717806,"SSTM lingering playback");n.api.Ve();n.api.publish("serverstitchedvideochange",Z.sS,Z.ai)}; b4=function(n,Z,F,y,l,m,a){g.R.call(this,{U:"div",K:"ytp-slider-section",Z:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},D:[{U:"div",K:"ytp-slider",D:[{U:"div",K:"ytp-slider-handle"}]}]});this.J=n;this.L=Z;this.X=F;this.T=y;this.Ns=l;this.zx=m;this.range=this.T-this.X;this.lY=this.Vg("ytp-slider-section");this.V=this.Vg("ytp-slider");this.Tx=this.Vg("ytp-slider-handle");this.C=new g.OH(this.V, !0);this.N=a?a:F;g.S(this,this.C);this.C.subscribe("dragmove",this.dD,this);this.G(this.element,"keydown",this.A4);this.G(this.element,"wheel",this.qo);this.init()}; Xr=function(n,Z){Z!==n.WK&&(n.WK=Z,n.JG.Qm("onMutedAutoplayChange",Z))}; II3=function(n,Z){n=n.app.iG().J.m$();n=g.Y(n);for(var F=n.next();!F.done;F=n.next()){F=F.value;var y=F.getAvailableAudioTracks(),l=null;y=g.Y(y);for(var m=y.next();!m.done;m=y.next())if(m=m.value,m.getLanguageInfo().getId()===Z){l=m;break}l&&F.LT(l,!0)}}; t_=function(n,Z){n.pk&&zd(n);n.pk=new g.wg(Z*1E3,0x7ffffffffffff);n.pk.namespace="endcr";n.addCueRange(n.pk)}; fIQ=function(n,Z){Z.includeDomain&&(n=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+n);var F=g.BT("XSRF_FIELD_NAME");if(Z=Z.urlParams)Z[F]&&delete Z[F],n=TQ(n,Z);return n}; kw=function(){g.Xu.call(this);var n=this;this.fullscreen=0;this.V=this.T=this.pictureInPicture=this.N=this.X=this.inline=!1;this.S=function(){n.TU()}; Ado(this.S);this.C=this.getVisibilityState(this.rJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Sx(),this.xp(),this.Fy(),this.oh())}; eP=function(n,Z,F){var y=[Z];if(n!=Z||F!=Z)y.unshift(n),y.push(F);return y}; BX=function(n,Z){return g.N5("transport_use_scheduler")===!1?g.A3(n,Z):g.N5("logging_avoid_blocking_during_navigation")||g.N5("lr_logging_avoid_blocking_during_navigation")?g.HX(0,function(){if(WDf().currentState==="none")n();else{var F={};WDf().install((F.none={callback:n},F))}},Z):dD(n,0,Z)}; GPj=function(n,Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var y=F.interstitials.map(function(a){var D=g.e(a,rdK);if(D)return{is_yto_interstitial:!0,raw_player_response:D};if(a=g.e(a,x5K))return Object.assign({is_yto_interstitial:!0},jy(a))}); y=g.Y(y);for(var l=y.next();!l.done;l=y.next())switch(l=l.value,F.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":n.interstitials=n.interstitials.concat({time:0,playerVars:l,cf:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":n.interstitials=n.interstitials.concat({time:0x7ffffffffffff,playerVars:l,cf:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var m=Number(F.podConfig.timeToInsertAtMillis);n.interstitials=n.interstitials.concat({time:m,playerVars:l, cf:m===0?5:7})}}}; RoY=function(n){g.N5("always_send_and_write")&&(n.writeThenSend=!1)}; guf=function(n){if(!n)return null;n=Mc(n,4);return n===null||n===void 0?null:sT(n)}; x2=function(n,Z,F){g.$K.call(this,"Audio track",g.rJ.AUDIO,n,Z);this.W=n;this.N=F;this.tracks={};g.gi(this.element,"ytp-audio-menu-item");this.countLabel=new g.R({U:"div",D:[{U:"span",E8:"Audio track"},{U:"span",K:"ytp-menuitem-label-count",E8:"{{content}}"}]});n.j("web_settings_menu_icons")&&!this.W.j("html5_enable_new_audio_settings_menu")&&(Z=n.j("delhi_modern_web_player_icons")?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]},this.setIcon(Z));g.S(this,this.countLabel);g.wK(this,this.countLabel);n.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.G(n,"videodatachange",this.g5);this.G(n,"onPlaybackAudioChange",this.g5);this.g5()}; pTp=function(){return CQ()?b7("Microsoft Edge"):Rf("Edg/")}; i6p=function(n){if(n.Y.storeUserVolume){n=g.z5("yt-player-volume")||{};var Z=n.volume;n={volume:isNaN(Z)?100:g.mk(Math.floor(Z),0,100),muted:!!n.muted}}else n={volume:100,muted:n.Y.mute};return n}; CYP=function(n,Z,F,y,l,m,a){na(F,Z);y=Z0({cttAuthInfo:FS(Z)||void 0,automatedLogEventSource:a},Z);F={csn:Z,ve:F.getAsJson(),eventType:1};l&&(F.clientData=l);Z==="UNDEFINED_CSN"?y_("visualElementShown",y,F):n?lr("visualElementShown",F,n,y):g.xt("visualElementShown",F,y)}; Em7=function(n,Z){Id(n,{sdpvrq:1});n.C=Date.now();if(n.X.flavor!=="widevine")n.error("drm.provision",1,"e.flavor;f."+n.X.flavor+";l."+Z.byteLength);else{var F={cpn:n.videoData.clientPlaybackNonce};Object.assign(F,n.Y.N);F=g.pQ("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",F);Z={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,Z)}), responseType:"arraybuffer"};g.so(F,Z,3,500).then(mz(function(y){y=y.xhr;if(!n.CR()){y=new Uint8Array(y.response);var l=String.fromCharCode.apply(null,y);try{var m=JSON.parse(l)}catch(a){}m&&m.signedResponse?(n.publish("ctmp","drminfo",{provisioning:1}),m=(Date.now()-n.C)/1E3,n.C=NaN,n.publish("ctmp","provs",{et:m.toFixed(3)}),n.T&&n.T.update(y)):(m=m&&m.error&&m.error.message,y="e.parse",m&&(y+=";m."+m),n.error("drm.provision",1,y))}}),mz(function(y){n.CR()||n.error("drm.provision",1,"e."+y.errorCode+ ";c."+(y.xhr&&y.xhr.status))}))}}; mnp=function(n,Z,F){Z.CPN=T3(function(){var y;(y=n.getVideoData(1))?y=y.clientPlaybackNonce:(g.yi(Error("Video data is null.")),y=null);return y}); Z.AD_MT=T3(function(){if(F!=null)var y=F;else if(n.B().j("enable_h5_shorts_ad_fill_ad_mt_macro")||n.B().j("enable_desktop_discovery_pings_ad_mt_macro")||Ng(n.B())){var l=n.getPresentingPlayerType(!0),m;y=((m=n.getVideoData(l))==null?0:m.isAd())?n.getCurrentTime(l,!1):0}else y=n.getCurrentTime(2,!1);return uao(y)}); Z.MT=T3(function(){return uao(n.getCurrentTime(1,!1))}); Z.P_H=T3(function(){return n.Br().hB().height.toString()}); Z.P_W=T3(function(){return n.Br().hB().width.toString()}); Z.PV_H=T3(function(){return n.Br().getVideoContentRect().height.toString()}); Z.PV_W=T3(function(){return n.Br().getVideoContentRect().width.toString()})}; b6T=function(n,Z){var F,y;return g.A(function(l){return l.N==1?(F=[],g.x(l,g.lf(aC,Z),2)):l.N!=3?(y=l.X,g.x(l,g.$5(y,["databases"],{Or:!0,mode:"readonly"},function(m){F.length=0;return g.CC(m.objectStore("databases"),{},function(a){n(a.getValue())&&F.push(a.getValue());return g.uj(a)})}),3)):l.return(F)})}; g.XMP=function(n){n=g.Gj(n);return un(n[1],n[2],n[3],n[4])}; qe=function(n,Z){Z=Z===void 0?{}:Z;g.gU(function(){zoo(n);var F=Z.sampleRate;if(!g.N5("web_csi_action_sampling_enabled")||F===void 0||F<=1)F=!1;else{var y=V1(n);F=tAf(y)%F!==0}F&&(hd(n).actionDisabled=!0);Ej(n||"").info.actionType=n;Z.cttAuthInfo&&(hd(n).cttAuthInfo=Z.cttAuthInfo);Ka(n+"TIMING_ACTION",n);g.gU(D0)(Z.startTime,n);F={actionType:pa(n)};Z.V3g&&(F.previousAction=pa(g.BT("TIMING_ACTION")));(y=g.f_())&&y!=="UNDEFINED_CSN"&&(F.clientScreenNonce=y);g.HS(F,n);La(!0,n)})()}; eoi=function(n){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in kPK))return!1;n=n.split(RegExp("[:&]"));var Z=kPK.FLAG_AUTO_CAPTIONS_DEFAULT_ON,F="f"+(1+Math.floor(Z/31)).toString();Z=1<5||Z<0)return n?fL(n,-2):-2;var F=n.state;if(!n.output||!n.input&&n.EV!==0||F.status===666&&Z!==4)return fL(n,n.G7===0?-5:-2);F.rV=n;var y=F.PK;F.PK=Z;if(F.status===42)if(F.wrap===2)n.wV=0,Ft(F,31),Ft(F,139),Ft(F,8),F.T7?(Ft(F,(F.T7.text?1:0)+(F.T7.z2?2:0)+(F.T7.extra?4:0)+(F.T7.name?8:0)+(F.T7.comment?16:0)),Ft(F,F.T7.time&255),Ft(F,F.T7.time>>8&255),Ft(F,F.T7.time>>16&255),Ft(F,F.T7.time>>24&255),Ft(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),Ft(F,F.T7.os& 255),F.T7.extra&&F.T7.extra.length&&(Ft(F,F.T7.extra.length&255),Ft(F,F.T7.extra.length>>8&255)),F.T7.z2&&(n.wV=bE(n.wV,F.XX,F.pending,0)),F.dZ=0,F.status=69):(Ft(F,0),Ft(F,0),Ft(F,0),Ft(F,0),Ft(F,0),Ft(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),Ft(F,3),F.status=113);else{var l=8+(F.Av-8<<4)<<8;l|=(F.strategy>=2||F.level<2?0:F.level<6?1:F.level===6?2:3)<<6;F.VP!==0&&(l|=32);F.status=113;Oo(F,l+(31-l%31));F.VP!==0&&(Oo(F,n.wV>>>16),Oo(F,n.wV&65535));n.wV=1}if(F.status===69)if(F.T7.extra){for(l= F.pending;F.dZ<(F.T7.extra.length&65535)&&(F.pending!==F.m6||(F.T7.z2&&F.pending>l&&(n.wV=bE(n.wV,F.XX,F.pending-l,l)),cb(n),l=F.pending,F.pending!==F.m6));)Ft(F,F.T7.extra[F.dZ]&255),F.dZ++;F.T7.z2&&F.pending>l&&(n.wV=bE(n.wV,F.XX,F.pending-l,l));F.dZ===F.T7.extra.length&&(F.dZ=0,F.status=73)}else F.status=73;if(F.status===73)if(F.T7.name){l=F.pending;do{if(F.pending===F.m6&&(F.T7.z2&&F.pending>l&&(n.wV=bE(n.wV,F.XX,F.pending-l,l)),cb(n),l=F.pending,F.pending===F.m6)){var m=1;break}m=F.dZl&&(n.wV=bE(n.wV,F.XX,F.pending-l,l));m===0&&(F.dZ=0,F.status=91)}else F.status=91;if(F.status===91)if(F.T7.comment){l=F.pending;do{if(F.pending===F.m6&&(F.T7.z2&&F.pending>l&&(n.wV=bE(n.wV,F.XX,F.pending-l,l)),cb(n),l=F.pending,F.pending===F.m6)){m=1;break}m=F.dZl&&(n.wV=bE(n.wV,F.XX,F.pending-l,l));m===0&&(F.status=103)}else F.status= 103;F.status===103&&(F.T7.z2?(F.pending+2>F.m6&&cb(n),F.pending+2<=F.m6&&(Ft(F,n.wV&255),Ft(F,n.wV>>8&255),n.wV=0,F.status=113)):F.status=113);if(F.pending!==0){if(cb(n),n.G7===0)return F.PK=-1,0}else if(n.EV===0&&(Z<<1)-(Z>4?9:0)<=(y<<1)-(y>4?9:0)&&Z!==4)return fL(n,-5);if(F.status===666&&n.EV!==0)return fL(n,-5);if(n.EV!==0||F.Md!==0||Z!==0&&F.status!==666){y=F.strategy===2?nVK(F,Z):F.strategy===3?ZR7(F,Z):bm[F.level].func(F,Z);if(y===3||y===4)F.status=666;if(y===1||y===3)return n.G7===0&&(F.PK= -1),0;if(y===2&&(Z===1?(V_(F,2,3),vb(F,256,gm),F.VQ===16?(IC(F,F.I7),F.I7=0,F.VQ=0):F.VQ>=8&&(F.XX[F.pending++]=F.I7&255,F.I7>>=8,F.VQ-=8)):Z!==5&&(V_(F,0,3),FSU(F,0,0),Z===3&&(Xk(F.head),F.Md===0&&(F.VP=0,F.Ge=0,F.z5=0))),cb(n),n.G7===0))return F.PK=-1,0}if(Z!==4)return 0;if(F.wrap<=0)return 1;F.wrap===2?(Ft(F,n.wV&255),Ft(F,n.wV>>8&255),Ft(F,n.wV>>16&255),Ft(F,n.wV>>24&255),Ft(F,n.Ma&255),Ft(F,n.Ma>>8&255),Ft(F,n.Ma>>16&255),Ft(F,n.Ma>>24&255)):(Oo(F,n.wV>>>16),Oo(F,n.wV&65535));cb(n);F.wrap>0&& (F.wrap=-F.wrap);return F.pending!==0?0:1}; lfU=function(n){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=n(this.triggerType)}; DPi=function(n){var Z;return!((Z=n.fJ)==null||!Z.XJ)}; m68=function(){var n=fa(1E3,"NO_BID");return g.mV(IsK([yd3(),n]).Mc(sxK),function(){n.cancel()})}; dt=function(n){return n.nodeType==9?n:n.ownerDocument||n.document}; vB=function(n){this.W=n}; g.afQ=function(n){var Z=this;this.videoData=n;n={};this.N=(n.c1a=function(){var F=[];if(g.ic.isInitialized()){var y="";Z.videoData&&Z.videoData.g2&&(y=Z.videoData.g2+("&r1b="+Z.videoData.clientPlaybackNonce));var l={};y=(l.atr_challenge=y,l);hm("bg_v",void 0,"player_att");(y=n1T(y))?(hm("bg_s",void 0,"player_att"),F.push("r1a="+y)):(hm("bg_e",void 0,"player_att"),F.push("r1c=2"))}else hm("bg_e",void 0,"player_att"),window.trayride||window.botguard?F.push("r1c=1"):F.push("r1c=4");F.push("r1d="+g.ic.getState()); return F.join("&")},n.c6a=function(F){return"r6a="+(Number(F.c)^GS())},n.c6b=function(F){return"r6b="+(Number(F.c)^Number(g.BT("CATSTAT",0)))},n); this.videoData&&this.videoData.g2?this.cW=jy(this.videoData.g2):this.cW={}}; KSi=function(n){n=A0(n);var Z=Wb();n=Z?Z.get(n):void 0;return n&&n.stringValue?n.stringValue:""}; rI=function(n){g.dV.call(this,g.B0({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var Z=this;this.W=n;this.X=this.N=!1;this.Fp=n.zj();n.createServerVe(this.element,this,!0);this.G(this.W,"settingsMenuVisibilityChanged",function(F){Z.YV(F)}); this.G(this.W,"videodatachange",this.V);this.listen("click",this.onClick);this.V()}; ei=function(n,Z,F){if(n.beforeContentVideoIdStartedTrigger)n=n.beforeContentVideoIdStartedTrigger?new xK(Gg,Z,n.id):new C("Not able to create BeforeContentVideoIdStartedTrigger");else{if(n.layoutIdExitedTrigger){var y;Z=(y=n.layoutIdExitedTrigger)!=null&&y.triggeringLayoutId?new vQ(Gg,n.layoutIdExitedTrigger.triggeringLayoutId,n.id):new C("Not able to create LayoutIdExitedTrigger")}else{if(n.layoutExitedForReasonTrigger){var l,m;((l=n.layoutExitedForReasonTrigger)==null?0:l.triggeringLayoutId)&&((m= n.layoutExitedForReasonTrigger)==null?0:m.layoutExitReason)?(Z=s5o(n.layoutExitedForReasonTrigger.layoutExitReason),n=Z instanceof C?Z:new jp(Gg,n.layoutExitedForReasonTrigger.triggeringLayoutId,[Z],n.id)):n=new C("Not able to create LayoutIdExitedForReasonTrigger")}else{if(n.onLayoutSelfExitRequestedTrigger){var a;Z=(a=n.onLayoutSelfExitRequestedTrigger)!=null&&a.triggeringLayoutId?new RC(Gg,n.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,n.id):new C("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(n.onNewPlaybackAfterContentVideoIdTrigger)n= n.onNewPlaybackAfterContentVideoIdTrigger?new ZX(Gg,Z,n.id):new C("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(n.skipRequestedTrigger){var D;Z=(D=n.skipRequestedTrigger)!=null&&D.triggeringLayoutId?new a1(Gg,n.skipRequestedTrigger.triggeringLayoutId,n.id):new C("Not able to create SkipRequestedTrigger")}else if(n.slotIdEnteredTrigger){var p;Z=(p=n.slotIdEnteredTrigger)!=null&&p.triggeringSlotId?new nz(Gg,n.slotIdEnteredTrigger.triggeringSlotId,n.id):new C("Not able to create SlotIdEnteredTrigger")}else if(n.slotIdExitedTrigger){var L; Z=(L=n.slotIdExitedTrigger)!=null&&L.triggeringSlotId?new lB(Gg,n.slotIdExitedTrigger.triggeringSlotId,n.id):new C("Not able to create SkipRequestedTrigger")}else if(n.surveySubmittedTrigger){var q;Z=(q=n.surveySubmittedTrigger)!=null&&q.triggeringLayoutId?new gI(Gg,n.surveySubmittedTrigger.triggeringLayoutId,n.id):new C("Not able to create SurveySubmittedTrigger")}else{if(n.mediaResumedTrigger)n=n.mediaResumedTrigger&&n.id?new D67(n.id):new C("Not able to create MediaResumedTrigger");else{if(n.closeRequestedTrigger){var w; Z=(w=n.closeRequestedTrigger)!=null&&w.triggeringLayoutId?new ir(Gg,n.closeRequestedTrigger.triggeringLayoutId,n.id):new C("Not able to create CloseRequestedTrigger")}else if(n.slotIdScheduledTrigger){var T;Z=(T=n.slotIdScheduledTrigger)!=null&&T.triggeringSlotId?new yx(Gg,n.slotIdScheduledTrigger.triggeringSlotId,n.id):new C("Not able to create SlotIdScheduledTrigger")}else{if(n.mediaTimeRangeTrigger){var P;y=Number((P=n.mediaTimeRangeTrigger)==null?void 0:P.offsetStartMilliseconds);var J;a=Number((J= n.mediaTimeRangeTrigger)==null?void 0:J.offsetEndMilliseconds);isFinite(y)&&isFinite(a)?(J=a,J===-1&&(J=F),F=y>J?new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:y,offsetEndMs:J},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",J===F&&y-500<=J):new Ca(y,J),n=F instanceof C?F:new K3(Gg,Z,F,!1,n.id)):n=new C("Not able to create MediaTimeRangeTrigger")}else if(n.contentVideoIdEndedTrigger)n=n.contentVideoIdEndedTrigger?new ur(Gg,Z,!1,n.id):new C("Not able to create ContentVideoIdEndedTrigger"); else{if(n.layoutIdEnteredTrigger){var U;Z=(U=n.layoutIdEnteredTrigger)!=null&&U.triggeringLayoutId?new Sp(Gg,n.layoutIdEnteredTrigger.triggeringLayoutId,n.id):new C("Not able to create LayoutIdEnteredTrigger")}else if(n.timeRelativeToLayoutEnterTrigger){var h;Z=(h=n.timeRelativeToLayoutEnterTrigger)!=null&&h.triggeringLayoutId?new br(Gg,Number(n.timeRelativeToLayoutEnterTrigger.durationMs),n.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,n.id):new C("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(n.onDifferentLayoutIdEnteredTrigger){var v; Z=(v=n.onDifferentLayoutIdEnteredTrigger)!=null&&v.triggeringLayoutId&&n.onDifferentLayoutIdEnteredTrigger.slotType&&n.onDifferentLayoutIdEnteredTrigger.layoutType?new rg(Gg,n.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,n.onDifferentLayoutIdEnteredTrigger.slotType,n.onDifferentLayoutIdEnteredTrigger.layoutType,n.id):new C("Not able to create CloseRequestedTrigger")}else{if(n.liveStreamBreakStartedTrigger)n=n.liveStreamBreakStartedTrigger&&n.id?new XS(Gg,n.id):new C("Not able to create LiveStreamBreakStartedTrigger"); else if(n.liveStreamBreakEndedTrigger)n=n.liveStreamBreakEndedTrigger&&n.id?new m2(Gg,n.id):new C("Not able to create LiveStreamBreakEndedTrigger");else{if(n.liveStreamBreakScheduledDurationMatchedTrigger){var V;Z=(V=n.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&V.breakDurationMs?new BC(Number(n.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,n.id):new C("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(n.liveStreamBreakScheduledDurationNotMatchedTrigger){var f; Z=(f=n.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&f.breakDurationMs?new zg(Number(n.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,n.id):new C("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(n.newSlotScheduledWithBreakDurationTrigger){var W;Z=(W=n.newSlotScheduledWithBreakDurationTrigger)!=null&&W.breakDurationMs?new t0(Number(n.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,n.id):new C("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else Z= n.prefetchCacheExpiredTrigger?new kK(Gg,n.id):new C("Not able to convert an AdsControlflowTrigger.");n=Z}Z=n}n=Z}Z=n}n=Z}Z=n}n=Z}Z=n}n=Z}Z=n}n=Z}return n}; pyQ=function(n){return(n.C-n.N)/1E3}; Bb=function(n,Z,F,y,l,m,a,D,p){Hb(n,"impression")&&(m?(m=l-y,m=m>=-1&&m<=2):m=Math.abs(y-l)<=1,dI(n,Z,m?y:l,F,y,a,D&&m),m&&!p&&n.GN("complete"))}; YTo=function(n,Z,F,y){y=y===void 0?0:y;if(n.V){var l=n.V.N+n.V.X;if(F.info.N>0)if(F.info.O8===n.V.O8&&F.info.N=0&&n.V.O8>=0&&!v0(n.V,F.info))throw new g.FV("improper_continuation",n.V.bd(),F.info.bd());qTY(n.V,F.info)||Me(n,"d")}else if(F.info.N>0)throw new g.FV("continuation_of_null",F.info.bd());n.V=F.info;n.bY=F.info.bY;if(F.info.N===0){if(n.N)if(!n.loader.isOffline()||n.policy.CO)n.loader.Xp("slice_not_fully_processed", {buffered:n.N.info.bd(),push:F.info.bd()});else throw new g.FV("slice_not_fully_processed",n.N.info.bd(),F.info.bd());$X(n);n.lY=y}else{if(n.lY&&y&&n.lY!==y)throw n=new g.FV("lmt_mismatch",F.info.O8,n.lY,y),n.level="WARNING",n;!F.info.bY.Dn()&&n.S&&(y=F.info,l=n.S.N$,y.C="updateWithEmsg",y.O8=l)}if(n.N){y=g.nK(n.N,F);if(!y)throw new g.FV("failed_to_merge",n.N.info.bd(),F.info.bd());n.N=y}else n.N=F;a:{F=g.W2(n.N.info.bY.info);if(n.N.info.type!==3){if(!n.N.info.T)break a;n.N.info.type===6?wyp(n,Z, n.N):T1T(n,n.N);n.N=null}for(;n.N;){y=n.N.X.totalLength;if(n.Tx<=0&&n.L===0){var m=n.N.X,a=-1;l=-1;if(F){for(var D=0;D+80))break;if(w!==408125543)if(w===524531317)D=!0,q>=0&&(l=m.M$()+q,p=!0);else{if(D&&(w===160||w===163)&&(a<0&&(a=L),p))break;w===163&&(a=Math.max(0,a),l=m.M$()+q);if(w===160){a<0&&(l=a= m.M$()+q);break}m.skip(q)}}a<0&&(l=-1)}if(a<0)break;n.Tx=a;n.L=l-a}if(n.Tx>y)break;n.Tx?(y=JRi(n,n.Tx),y.S&&Qxj(n,y),wyp(n,Z,y),Fg(n,y),n.Tx=0):n.L&&(y=JRi(n,n.L<0?Infinity:n.L),n.L-=y.X.totalLength,Fg(n,y))}}n.N&&n.N.info.T&&(Fg(n,n.N),n.N=null)}; lL=function(n,Z){STK(n,Z).then(function(F){g.yM(Z,void 0,void 0,F)})}; N13=function(n){if(!RyP)return vx(n);n=jxY.test(n)?n.replace(jxY,U6f):n;n=atob(n);for(var Z=new Uint8Array(n.length),F=0;F=0&&l.segments.splice(m,1)}}}; g.xt=function(n,Z,F){F=F===void 0?{}:F;var y=g.GR;g.BT("ytLoggingEventsDefaultDisabled",!1)&&g.GR===g.GR&&(y=null);lr(n,Z,y,F)}; P2Q=function(n,Z,F,y){if(IH.instance!==void 0){if(y=IH.instance,n=[n!==y.Ml,Z!==y.QU,F!==y.N,!1,!1,!1,void 0!==y.T],n.some(function(l){return l}))throw new g.FV("InnerTubeTransportService is already initialized",n); }else IH.instance=new IH(n,Z,F,y)}; DH=function(n){var Z=n.N.HV();Z=Z.isView()?Z.start:0;var F=n.N.getVideoData().isLivePlayback?Infinity:n.N.zc(!0);F=Math.min(n.Ot/1E3,F)+Z;var y=n.L?100:0;n=F-n.X.FY()+y;return{Pk:Z,gm:n,Fk:F,zD:Infinity}}; fNU=function(n){var Z={};g.N5("json_condensed_response")&&(Z.prettyPrint="false");return n=Fr(n,Z)}; By=function(n,Z,F,y,l,m,a){CW.call(this,n,Z,F,y,l,m);this.N=a;g.S(this,this.N);this.r5=this.L=-1}; or=function(n){var Z=n.X,F=n.N,y=Z[F++],l=y&127;if(y&128&&(y=Z[F++],l|=(y&127)<<7,y&128&&(y=Z[F++],l|=(y&127)<<14,y&128&&(y=Z[F++],l|=(y&127)<<21,y&128&&(y=Z[F++],l|=y<<28,y&128&&Z[F++]&128&&Z[F++]&128&&Z[F++]&128&&Z[F++]&128&&Z[F++]&128)))))throw Error();ti(n,F);return l}; pK=function(n,Z,F,y){if(y.substring(0,2)==="{{")n.nF[y]=[Z,F];else return y}; LK=function(n){if(n!=null&&typeof n!=="number")throw Error("Value of float/double field must be a number, found "+typeof n+": "+n);return n}; qD=function(n,Z,F){for(var y=n.length,l=typeof n==="string"?n.split(""):n,m=0;m=0&&(F.element.style.width=Z+"px")}; WSf=function(n){var Z;return g.A(function(F){if(n.CR())throw Error("Already disposed");(Z=n.N)==null||ARj(Z);return g.x(F,n.T.promise,0)})}; Nn=function(n,Z){return!n.C&&QM()&&YX(55)&&n.controlsType==="3"&&!Z}; LlU=function(n,Z,F,y){if(F==3&&Z.X&&!Z.V)for(;n&&n.S;n=n.T)n.S=!1;if(Z.N)Z.N.T=null,rRP(Z,F,y);else try{Z.V?Z.T.call(Z.context):rRP(Z,F,y)}catch(l){x68.call(null,l)}zIn(GuT,Z)}; Sb=function(n){var Z=kg(n);n=kg(n);return VY(Z,n)}; EY=function(n,Z,F,y){n.N().nN(Z,y);F=F();n=n.N();n.aW.N("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Z,y,F);Z=g.Y(F);for(F=Z.next();!F.done;F=Z.next())a:{y=n;F=F.value;Na(y.aW,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",F);Na(y.aW,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",F);try{var l=y.N;if(g.$q(F.slotId))throw new C("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(km(l,F))throw new C("Duplicate registration for slot.",{slotId:F.slotId,slotEntryTriggerType:F.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!l.Pj.q_.has(F.slotType))throw new C("No fulfillment adapter factory registered for slot of type: "+F.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!l.Pj.J7.has(F.slotType))throw new C("No SlotAdapterFactory registered for slot of type: "+F.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");pE(l,"TRIGGER_CATEGORY_SLOT_ENTRY",F.slotEntryTrigger?[F.slotEntryTrigger]:[]);pE(l,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", F.slotFulfillmentTriggers);pE(l,"TRIGGER_CATEGORY_SLOT_EXPIRATION",F.slotExpirationTriggers);var m=y.N,a=F.slotType+"_"+F.slotPhysicalPosition,D=jb(m,a);if(km(m,F))throw new C("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");D.set(F.slotId,new RN3(F));m.N.set(a,D)}catch(nQ){nQ instanceof C&&nQ.yd?(UY(y.aW,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",nQ.yd,F),wU(nQ,F,void 0,void 0,nQ.zK)):(UY(y.aW,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", F),wU(nQ,F));break a}km(y.N,F).C=!0;try{var p=y.N,L=km(p,F),q=F.slotEntryTrigger,w=p.Pj.iT.get(q.triggerType);w&&(w.Jw("TRIGGER_CATEGORY_SLOT_ENTRY",q,F,null),L.w5.set(q.triggerId,w));for(var T=g.Y(F.slotFulfillmentTriggers),P=T.next();!P.done;P=T.next()){var J=P.value,U=p.Pj.iT.get(J.triggerType);U&&(U.Jw("TRIGGER_CATEGORY_SLOT_FULFILLMENT",J,F,null),L.Ns.set(J.triggerId,U))}for(var h=g.Y(F.slotExpirationTriggers),v=h.next();!v.done;v=h.next()){var V=v.value,f=p.Pj.iT.get(V.triggerType);f&&(f.Jw("TRIGGER_CATEGORY_SLOT_EXPIRATION", V,F,null),L.Pr.set(V.triggerId,f))}var W=p.Pj.q_.get(F.slotType).get().build(p.T,F);L.J=W;var X=p.Pj.J7.get(F.slotType).get().build(p.S,F);X.init();L.X=X}catch(nQ){nQ instanceof C&&nQ.yd?(UY(y.aW,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",nQ.yd,F),wU(nQ,F,void 0,void 0,nQ.zK)):(UY(y.aW,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",F),wU(nQ,F));ND(y,F,!0);break a}Na(y.aW,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",F);y.N.fN(F);for(var u=g.Y(y.X),Fp=u.next();!Fp.done;Fp= u.next())Fp.value.fN(F);hW(y,F)}}; VM=function(n){OY.call(this,"onesie",n);this.pR=n;this.N={};this.V=!0;this.T=null;this.queue=new cG(this);this.S={}}; gVp=function(){var n=navigator;return new Promise(function(Z,F){var y;(y=n.webkitTemporaryStorage)!=null&&y.queryUsageAndQuota?n.webkitTemporaryStorage.queryUsageAndQuota(function(l,m){Z({usage:l,quota:m})},function(l){F(l)}):F(Error("webkitTemporaryStorage is not supported."))})}; vG=function(n,Z,F){var y=arguments,l=document,m=y[1],a=nh(l,String(y[0]));m&&(typeof m==="string"?a.className=m:Array.isArray(m)?a.className=m.join(" "):Uj(a,m));y.length>2&&nni(l,a,y,2);return a}; C1=function(){Il.apply(this,arguments)}; iRT=function(){var n=null;yd3().then(function(Z){return n=Z},function(Z){return n=sxK(Z)}); return n}; CRP=function(n){iT=n}; $gf=function(n,Z){Z=Z||{};Z.dk=!0;Z=new vi(Z);Z.push(n,!0);if(Z.err)throw Z.msg||Xo[Z.err];return Z.result}; mx=function(n){g.J3(n.PV)}; g.fK=function(n,Z){n=ld3(n);Z=ld3(Z);return new g.e_(n.x-Z.x,n.y-Z.y)}; AW=function(n){return!!(n.prT&&n.slot&&n.layout)}; WG=function(n){vk.call(this,n);var Z=this;RS(n,"getAvailableQualityData",function(){return Z.getAvailableQualityData()}); RS(n,"getAvailableQualityDataAndMessaging",function(){return Z.getAvailableQualityDataAndMessaging()})}; Awo=function(n,Z,F,y){y=y===void 0?function(){}:y; var l,m,a,D,p,L,q,w,T,P,J,U,h,v,V,f,W,X,u,Fp,nQ,$U,mY,LQ,Zi,Qe,eo,av,lO,kU;return g.A(function(WT){switch(WT.N){case 1:WT.ST(2);break;case 3:if((l=WT.X)&&!l.isExpired())return WT.return(Promise.resolve(l.N()));case 2:if(!((m=Z)==null?0:(a=m.t0)==null?0:a.context)){WT.ST(4);break}D=Z.t0.context;WT.ST(5);break;case 5:p=g.Y([]),L=p.next();case 8:if(L.done){WT.ST(4);break}q=L.value;return g.x(WT,q.y7G(D),9);case 9:L=p.next();WT.ST(8);break;case 4:if((w=n.T)==null||!w.Ewx(Z.input,Z.t0)){WT.ST(12);break}return g.x(WT, n.T.Its(Z.input,Z.t0),13);case 13:return T=WT.X,uHj(n,T,Z),WT.return(T);case 12:return(U=(J=Z.config)==null?void 0:J.requestKey)&&n.X.has(U)?P=n.X.get(U):(h=JSON.stringify(Z.t0),f=(V=(v=Z.Cs)==null?void 0:v.headers)!=null?V:{},Z.Cs=Object.assign({},Z.Cs,{headers:Object.assign({},f,F)}),W=Object.assign({},Z.Cs),Z.Cs.method==="POST"&&(W=Object.assign({},W,{body:h})),((X=Z.config)==null?0:X.Dbg)&&fZ(Z.config.Dbg),u=function(){return n.QU.fetch(Z.input,W,Z.config)},P=u(),U&&n.X.set(U,P)),g.x(WT,P,14); case 14:(Fp=WT.X)&&g.N5("web_streaming_player")&&Array.isArray(Fp)&&(Fp=Fp[0].playerResponse);if(Fp&&"error"in Fp&&((nQ=Fp)==null?0:($U=nQ.error)==null?0:$U.details))for(mY=Fp.error.details,LQ=g.Y(mY),Zi=LQ.next();!Zi.done;Zi=LQ.next())Qe=Zi.value,(eo=Qe["@type"])&&bR8.indexOf(eo)>-1&&(delete Qe["@type"],Fp=Qe);U&&n.X.has(U)&&n.X.delete(U);((av=Z.config)==null?0:av.YfG)&&fZ(Z.config.YfG);if(Fp||(lO=n.T)==null||!lO.ZU5(Z.input,Z.t0)){WT.ST(15);break}return g.x(WT,n.T.EQu(Z.input,Z.t0),16);case 16:Fp= WT.X;case 15:return uHj(n,Fp,Z),((kU=Z.config)==null?0:kU.aCg)&&fZ(Z.config.aCg),y(),WT.return(Fp||void 0)}})}; $x=function(n,Z){return n=(2&Z?n|2:n&-3)&-273}; rW=function(n){this.uY=n}; Xyo=function(n,Z,F){for(var y=n.J,l=n.N[0],m=n.N[1],a=n.N[2],D=n.N[3],p=n.N[4],L=n.N[5],q=n.N[6],w=n.N[7],T,P,J,U=0;U<64;)U<16?(y[U]=J=Z[F]<<24|Z[F+1]<<16|Z[F+2]<<8|Z[F+3],F+=4):(T=y[U-2],P=y[U-15],J=y[U-7]+y[U-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((P>>>7|P<<25)^(P>>>18|P<<14)^P>>>3),y[U]=J),T=w+xX[U]+J+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&L^~p&q),P=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&m^l&a^m&a),w=T+P,D+=T,U++,U<16?(y[U]=J=Z[F]<<24|Z[F+1]<<16|Z[F+2]<<8|Z[F+3],F+=4):(T= y[U-2],P=y[U-15],J=y[U-7]+y[U-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((P>>>7|P<<25)^(P>>>18|P<<14)^P>>>3),y[U]=J),T=q+xX[U]+J+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&p^~D&L),P=((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+(w&l^w&m^l&m),q=T+P,a+=T,U++,U<16?(y[U]=J=Z[F]<<24|Z[F+1]<<16|Z[F+2]<<8|Z[F+3],F+=4):(T=y[U-2],P=y[U-15],J=y[U-7]+y[U-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((P>>>7|P<<25)^(P>>>18|P<<14)^P>>>3),y[U]=J),T=L+xX[U]+J+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&D^ ~a&p),P=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&w^q&l^w&l),L=T+P,m+=T,U++,U<16?(y[U]=J=Z[F]<<24|Z[F+1]<<16|Z[F+2]<<8|Z[F+3],F+=4):(T=y[U-2],P=y[U-15],J=y[U-7]+y[U-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((P>>>7|P<<25)^(P>>>18|P<<14)^P>>>3),y[U]=J),T=p+xX[U]+J+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&a^~m&D),P=((L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10))+(L&q^L&w^q&w),J=w,w=D,D=J,J=q,q=a,a=J,J=L,L=m,m=J,p=l+T,l=T+P,U++;n.N[0]=l+n.N[0]|0;n.N[1]=m+n.N[1]|0;n.N[2]=a+n.N[2]|0;n.N[3]= D+n.N[3]|0;n.N[4]=p+n.N[4]|0;n.N[5]=L+n.N[5]|0;n.N[6]=q+n.N[6]|0;n.N[7]=w+n.N[7]|0}; Rl=function(){var n=zN3();G_||n===void 0||(G_=new Worker(I_(n),void 0));return G_}; eNQ=function(n,Z,F,y,l,m,a){if(n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var D=g.e(n.renderingContent,gW),p=g.e(n.renderingContent,iL);a=new Map;if(D){a=g.e(D.sidePanel,tyU);if(!a){n=new C("DismissablePanelTextPortraitImageRenderer is missing");break a}a=new Map([["impression",a.impressionPings||[]],["resume",a.resumePings||[]]])}else if(!p){n=new C("AdsEngagementPanelSectionListViewModel is missing");break a}D={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType, Gx:"core"};Z=aG(n,Z,F);n=Z instanceof C?Z:Object.assign({},D,{renderingContent:n.renderingContent,Nd:a},Z,{lN:yP(y,l)(D),clientMetadata:new lb([new K7(Dg(m))]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})}else n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.e(n.renderingContent,ku7)?(a={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Gx:"core"},Z=aG(n,Z,F),n=Z instanceof C?Z:Object.assign({},a,{renderingContent:n.renderingContent,Nd:new Map}, Z,{lN:yP(y,l)(a),clientMetadata:new lb([new K7(Dg(m))]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})):n=new C("CounterfactualRenderer is missing"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?n=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?n=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"? g.e(n.renderingContent,CK)?(m={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Gx:"core"},Z=aG(n,Z,F),n=Z instanceof C?Z:a?Object.assign({},m,{renderingContent:n.renderingContent,Nd:new Map},Z,{lN:yP(y,l)(m),clientMetadata:new lb([new p7(a)]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData}):new C("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):n=new C("DisplayUnderlayTextGridCardsLayoutViewModel is missing"): n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.e(n.renderingContent,iL)?(m={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Gx:"core"},Z=aG(n,Z,F),n=Z instanceof C?Z:Object.assign({},m,{renderingContent:n.renderingContent,Nd:new Map([])},Z,{lN:yP(y,l)(m),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new lb([])})):n=new C("AdsEngagementPanelSectionListViewModel is missing"):n=new C("LayoutType ["+n.adLayoutMetadata.layoutType+ "] is invalid for PlayerUnderlaySlot");return n}; HRK=function(n,Z,F){this.N=n;this.X=Z;this.T=F}; Zb=function(n,Z,F){var y=F===void 0?{}:F;F=y.videoDuration===void 0?0:y.videoDuration;var l=y.vA===void 0?void 0:y.vA;y=y.Li===void 0?!1:y.Li;this.videoId=n;this.status=Z;this.videoDuration=F;this.vA=l;this.Li=y}; d6K=function(n){return g.i8(n.N,function(Z){return!!Z.info.video&&Z.info.video.isHdr()})}; My7=function(n){var Z,F,y,l,m,a;return g.A(function(D){switch(D.N){case 1:if(n.N)return D.return(uL());if(!n.S)return Z=g.Rc("getColdConfig IDB not initialized"),Un(Z),D.return(Promise.reject(Z));F=bL();y=g.BT("TIME_CREATED_MS");if(!F){l=g.Rc("getColdConfig");Un(l);D.ST(2);break}return g.x(D,B1U(F),3);case 3:if((m=D.X)&&m.timestamp>y)return Nk(n,m.config),pd8(n,m.configData),Pi(n,m.hashData),D.return(uL());case 2:LGi(n);if(!(F&&n.N&&n.coldHashData&&n.configData)){D.ST(4);break}return g.x(D,mve(n.N, n.coldHashData,n.configData,F,y),4);case 4:return n.N?D.return(uL()):(a=new g.FV("Config not available in ytConfig"),Un(a),D.return(Promise.reject(a)))}})}; Xg=function(n,Z,F){p5.call(this,n,Z,F)}; nf=function(n,Z,F,y,l,m,a,D,p){return JB(F,$JP())||F.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.e(F.renderingContent,z_)!==void 0?new tW(n,Z,F,y,l,m,a,D,p):JB(F,{Nj:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],ZM:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||F.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.e(F.renderingContent,kX)!==void 0? new eb(n,Z,F,y,l,m,a,D,p):JB(F,n6p())||F.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.e(F.renderingContent,HG)!==void 0?new dW(n,Z,F,y,m):JB(F,ZMe())?new BG(Z,F,n,y,l,p):JB(F,{Nj:["metadata_type_instream_ad_player_overlay_renderer"],ZM:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new gQ(n,Z,F,y,l,D):F.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.e(F.renderingContent,MD)!==void 0?new $4(n,Z,F,y,m):null}; g.mk=function(n,Z,F){return Math.min(Math.max(n,Z),F)}; Fxi=function(n,Z,F){Z=g.Y(Z);for(var y=Z.next();!y.done;y=Z.next())y=y.value,y.layout&&ZB(n.N,y.slot)&&cP3(n,y.slot,y.layout,F)}; g.MC=function(n,Z){FZ||ynK();mJ||(FZ(),mJ=!0);X8U.add(n,Z)}; yq=function(n,Z){Z=String(Z);n.V&&(Z=Z.toLowerCase());return Z}; l2e=function(n,Z){if(Z!==n.icon){switch(Z){case 3:var F=ZC();break;case 1:F=lk();break;case 2:F={U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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:F={U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path", Tu:!0,Z:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}n.updateValue("icon",F);n.icon=Z}}; a2U=function(n,Z,F,y){var l=null;switch(Z){case "JSON":try{var m=F.responseText}catch(a){throw y=Error("Error reading responseText"),y.params=n,Un(y),a;}n=F.getResponseHeader("Content-Type")||"";m&&n.indexOf("json")>=0&&(m.substring(0,5)===")]}'\n"&&(m=m.substring(5)),l=JSON.parse(m));break;case "XML":if(n=(n=F.responseXML)?sce(n):null)l={},g.I5(n.getElementsByTagName("*"),function(a){l[a.tagName]=mJ3(a)})}y&&O67(l); return l}; g.sl=function(n){return(n=g.PL(n.iN()))?n.Ci():{}}; mK=function(n,Z,F,y,l,m,a,D){this.N=n;this.J=Z;this.T=F;this.S=y;this.V=l;this.C=m;this.X=a;this.L=D}; Kxo=function(){if(!ah.instance){var n=g.Di("yt.networkStatusManager.instance")||new ah;g.pv("yt.networkStatusManager.instance",n);ah.instance=n}return ah.instance}; Kf=function(n,Z,F){return n.split(Z).bl.split(F).H6}; g.DB=function(n){return n==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||n==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; pf=function(n,Z){for(var F in n.N)if(n.N[F].status==="usable"&&n.N[F].type===Z)return!0;return!1}; Ox=function(n,Z,F,y,l,m,a,D){var p;(n&57)==n&&(p=Z(m,a,D));if((n-5^30)=n)if(F=F===void 0?!1:F,NW(42,Z),Z[K[9]]!==K[53]){var L=Z[K[24]]();L[K[5]](K[41],K[42]);p=L}else{var q=Z[K[37]]();L=new g.fW(q);var w=Z[K[22]](K[51]),T=decodeURIComponent(Z[K[22]](K[47])||K[12])[K[1]](K[28]);if(w&&T&&T[K[20]]>1&&T[1]){q=L[K[31]];var P=q[K[76]](/^[^.]*/,K[12]);g.WU(L,(q[K[32]](K[29])===0?K[29]:K[82])+w+K[70]+T[1]+P);L=new g.yD(L[K[59]]());L[K[5]](K[78],K[42]);p=L}else F?(L=Z[K[24]](),L[K[5]](K[78],K[42]), p=L):(w=L[K[31]][K[2]](K[23]),L[K[31]][K[2]](K[60])?(g.WU(L,K[69]),q=L[K[59]]()):L[K[31]][K[2]](K[68])?(g.WU(L,K[56]),q=L[K[59]]()):(L=DJ8(q),Lf(L)&&(q=L)),L=new g.yD(q),L[K[5]](K[96],K[42]),w&&L[K[5]](K[87],K[94]),p=L)}if(n>>1<12&&(n>>2&15)>=1){NW(43,Z);if(L=Z[K[31]][K[30]]||null)L=p58[0](L),Z[K[5]](K[30],L);p=[]}(n&60)==n&&(NW(62,Z),p=g.i8(Z[K[31]],G3f));return p}; qen=function(n){var Z=[];Lxn(n,function(F){Z.push(F)}); return Z}; DZf=function(n,Z){g.YW(Z,function(F){return n.equals(F)})||Z.push(n)}; oh=function(n){if(!Zg(n.adLayoutMetadata))return!1;n=n.renderingContent;var Z=g.e(n,cX);return Z?VH(Z):(Z=g.e(n,n7))?gd(Z):(Z=g.e(n,qF))?Z.playerVars!==void 0:(Z=g.e(n,HG))?Z.durationMilliseconds!==void 0:g.e(n,wy)||g.e(n,TZ)?!0:!1}; w5Y=function(n){var Z=Pe(n);return Z&&Z.text?g.sg(Z.text):n.paidContentOverlayText}; JD=function(n,Z){n.playlist&&(g.xA(n.playlist),n.playlist=null);Z&&(n.wc&&(Z.fetch=0),n.playlist=new HU(n.Y,Z))}; o68=function(n,Z){n.text=Z;TQj(n);var F;n.onClickCommand=(F=n.suggestedActions[Z])==null?void 0:F.tapCommand}; jS=function(n){Qq.call(this,n.message||n.description||n.name);this.isMissing=n instanceof Y4;this.isTimeout=n instanceof SS&&n.errorCode=="net.timeout";this.isCanceled=n instanceof Qv}; PHe=function(){var n;return(n=g.z5("yt-player-voice-boost"))!=null?n:void 0}; g.qT=function(n,Z){g.oS.call(this,{U:"div",K:"ytp-progress-bar-container",Z:{"aria-disabled":"true"},D:[{U:"div",s8:["ytp-heat-map-container"],D:[{U:"div",K:"ytp-heat-map-edu"}]},{U:"div",s8:["ytp-progress-bar"],Z:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},D:[{U:"div",K:"ytp-chapters-container"},{U:"div",K:"ytp-timed-markers-container"},{U:"div",K:"ytp-clip-start-exclude"}, {U:"div",K:"ytp-clip-end-exclude"},{U:"div",K:"ytp-scrubber-container",D:[{U:"div",s8:["ytp-scrubber-button","ytp-swatch-background-color"],D:[{U:"div",K:"ytp-scrubber-pull-indicator"},{U:"img",s8:["ytp-decorated-scrubber-button"]}]}]}]},{U:"div",s8:["ytp-fine-scrubbing-container"],D:[{U:"div",K:"ytp-fine-scrubbing-edu"}]},{U:"div",K:"ytp-bound-time-left",E8:"{{boundTimeLeft}}"},{U:"div",K:"ytp-bound-time-right",E8:"{{boundTimeRight}}"},{U:"div",K:"ytp-clip-start",Z:{title:"{{clipstarttitle}}"},E8:"{{clipstarticon}}"}, {U:"div",K:"ytp-clip-end",Z:{title:"{{clipendtitle}}"},E8:"{{clipendicon}}"}]});this.api=n;this.iU=!1;this.ZD=this.c7=this.hG=this.w5=this.C=this.un=0;this.Mt=null;this.HE=!1;this.fR={};this.h2={};this.clipEnd=Infinity;this.Hx=this.Vg("ytp-clip-end");this.R0=new g.OH(this.Hx,!0);this.Z8=this.Vg("ytp-clip-end-exclude");this.mC=this.Vg("ytp-clip-start-exclude");this.clipStart=0;this.PV=this.Vg("ytp-clip-start");this.oX=new g.OH(this.PV,!0);this.Ns=this.IW=0;this.progressBar=this.Vg("ytp-progress-bar"); this.kV={};this.yg={};this.d5=this.Vg("ytp-chapters-container");this.H1=this.Vg("ytp-timed-markers-container");this.N=[];this.J=[];this.fF={};this.KP=null;this.lY=-1;this.SG=this.jT=0;this.GU=this.L=null;this.XH=this.Vg("ytp-scrubber-button");this.Wr=this.Vg("ytp-decorated-scrubber-button");this.Kh=this.Vg("ytp-scrubber-container");this.mJ=new g.e_;this.cV=0;this.nP=new JnY;this.T=new WP(0,0);this.Ur=null;this.S=this.y_=!1;this.yQ=null;this.Tx=this.Vg("ytp-heat-map-container");this.VG=this.Vg("ytp-heat-map-edu"); this.V=[];this.heatMarkersDecorations=[];this.Yi=this.Vg("ytp-fine-scrubbing-container");this.RX=this.Vg("ytp-fine-scrubbing-edu");this.X=void 0;this.r5=this.p6=this.aY=!1;this.tooltip=Z.aX();this.addOnDisposeCallback(g.l9(this.tooltip,this.Hx));g.S(this,this.R0);this.R0.subscribe("hoverstart",this.ac,this);this.R0.subscribe("hoverend",this.J5,this);this.G(this.Hx,"click",this.h3);this.addOnDisposeCallback(g.l9(this.tooltip,this.PV));g.S(this,this.oX);this.oX.subscribe("hoverstart",this.ac,this); this.oX.subscribe("hoverend",this.J5,this);this.G(this.PV,"click",this.h3);Qc3(this);this.G(n,"resize",this.Ln);this.G(n,"presentingplayerstatechange",this.Tt);this.G(n,"videodatachange",this.ED);this.G(n,"videoplayerreset",this.I4Q);this.G(n,"cuerangesadded",this.rus);this.G(n,"cuerangesremoved",this.Rxg);this.G(n,"onLoopRangeChange",this.wv);this.G(n,"innertubeCommand",this.onClickCommand);this.G(n,"onRetroModeChanged",this.IDp);this.G(n,g.HP("timedMarkerCueRange"),this.Z6g);this.G(n,"updatemarkervisibility", this.Lc);this.G(n,"serverstitchedvideochange",this.eHp);this.updateVideoData(n.getVideoData(),!0);this.wv(n.getLoopRange());Ul(this)&&!this.X&&(this.X=new lp(this.api,this.tooltip),n=g.B8(this.element).x||0,this.X.Ln(n,this.C),this.X.oY(this.Yi),g.S(this,this.X),this.G(this.X.dismissButton,"click",this.xw),this.G(this.X.playButton,"click",this.qZ),this.G(this.X.element,"dblclick",this.qZ));this.api.createClientVe(this.Tx,this,139609,!0);this.api.createClientVe(this.VG,this,140127,!0);this.api.createClientVe(this.RX, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; YeP=function(){var n;return((n=NF)==null?void 0:n.UU)!==!1}; g.hD=function(n,Z){n.appendChild(Z)}; tV=function(n,Z,F,y){var l=y!==void 0;y=!!y;var m=dT(TA),a;!l&&Zh&&m&&(a=n[m])&&iF(a,Sei);m=[];var D=n.length;a=4294967295;var p=!1,L=!!(Z&64),q=L?Z&128?0:-1:void 0;if(!(Z&1)){var w=D&&n[D-1];w!=null&&typeof w==="object"&&w.constructor===Object?(D--,a=D):w=void 0;if(L&&!(Z&128)&&!l){p=!0;var T;a=((T=El)!=null?T:Ol)(a-q,q,n,w,void 0)+q}}Z=void 0;for(T=0;T=a){var J=T-q,U=void 0;((U=Z)!=null?U:Z={})[J]=P}else m[T]=P}if(w)for(var h in w)D=w[h],D!= null&&(D=F(D,y))!=null&&(T=+h,P=void 0,L&&!Number.isNaN(T)&&(P=T+q)n.N.length&&(ff(n,Z),Z=AD(F,n.N.subarray(n.pos))),n.pos+=Z,mCn(n))}; lH=function(n){this.AG=UO(n)}; I2T=function(n){var Z,F,y,l,m,a;return g.A(function(D){switch(D.N){case 1:if(n.X)return D.return(xH());if(!n.S)return Z=g.Rc("getHotConfig IDB not initialized"),Un(Z),D.return(Promise.reject(Z));F=bL();y=g.BT("TIME_CREATED_MS");if(!F){l=g.Rc("getHotConfig token error");Un(l);D.ST(2);break}return g.x(D,v6Y(F),3);case 3:if((m=D.X)&&m.timestamp>y)return We(n,m.config),n.LU(m.hashData),D.return(xH());case 2:F43(n);if(!(F&&n.X&&n.hotHashData)){D.ST(4);break}return g.x(D,KDi(n.X,n.hotHashData,F,y),4);case 4:return n.X? D.return(xH()):(a=new g.FV("Config not available in ytConfig"),Un(a),D.return(Promise.reject(a)))}})}; GZ=function(n,Z){var F;g.ry(n.B())&&(F={U:"div",K:"ytp-panel-footer-content",D:[{U:"span",E8:"Adjust download quality from your "},{U:"a",K:"ytp-panel-footer-content-link",E8:"Settings",Z:{href:"/account_downloads"}}]});g.$K.call(this,"Quality",g.rJ.g7,n,Z,void 0,void 0,F);this.W=n;this.Tx={};this.C={};this.X={};this.w5=new Set;this.N=this.T=!1;this.V="unknown";this.J="";this.L=new g.x4;g.S(this,this.L);this.T=this.W.j("web_player_use_new_api_for_quality_pullback");this.N=this.W.j("web_player_enable_premium_hbr_playback_cap"); n.j("web_settings_menu_icons")&&(Z=n.j("delhi_modern_web_player_icons")?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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(Z));g.gi(this.fJ.element,"ytp-quality-menu");this.G(n,"videodatachange",this.lP);this.G(n,"videoplayerreset",this.lP);this.G(n,"onPlaybackQualityChange",this.VK);this.lP();n.createClientVe(this.element,this,137721)}; g.pQ=function(n,Z){Z=g.$k(Z);return Qp(n,Z)}; pt=function(n,Z,F){this.X=n;this.V=Z;this.fields=F||[];this.N=new Map}; Rh=function(n,Z){var F=0,y=-1;n=g.Y(n);for(var l=n.next();!l.done;l=n.next())if(l=l.value,!(l.startTimeMs+l.durationMsZ||y>=0&&l.Au>y+1)break;F=Math.max(F,l.startTimeMs+l.durationMs);y=Math.max(y,l.hV)}return Math.max(0,F-Z)}; f2e=function(n,Z){n.mQ.Xp("sdai",{adj4t:Z.toFixed(3)});n.jT=Z;Z+=1;n.X=Z;n.T=Z;gy(n).then(function(F){ik(n,F)},function(){Cf(n)})}; uk=function(n){n.Tx&&(n.isToggled()?(g.vW(n.L,!1),g.vW(n.S,!0),n.X.setAttribute("aria-checked",!0)):(g.vW(n.L,!0),g.vW(n.S,!1),n.X.setAttribute("aria-checked",!1)))}; bk=function(n,Z){for(var F,y;;){if(n.Md<262){tY(n);if(n.Md<262&&Z===0)return 1;if(n.Md===0)break}F=0;n.Md>=3&&(n.cI=(n.cI<4096)&&(n.Ys=2));if(n.F2>=3&&n.Ys<=n.F2){y=n.VP+n.Md-3;F=XJ(n,n.VP-1-n.Gf,n.F2-3);n.Md-=n.F2-1;n.F2-=2;do++n.VP<=y&&(n.cI=(n.cI<0&&n.jT.RE++}}; eS=function(n,Z,F){n.playback.HJ(Z,F)}; LYU=function(n){g.N5("nwl_csi_killswitch")||He("networkless_performance",n,{sampleRate:1})}; V4=function(n){this.value=n}; c0=function(n,Z){Z>>>=0;n>>>=0;if(Z<=2097151)var F=""+(4294967296*Z+n);else dy()?F=""+(BigInt(Z)<>>24|Z<<8)&16777215,Z=Z>>16&65535,n=(n&16777215)+F*6777216+Z*6710656,F+=Z*8147497,Z*=2,n>=1E7&&(F+=n/1E7>>>0,n%=1E7),F>=1E7&&(Z+=F/1E7>>>0,F%=1E7),F=Z+xJ3(F)+xJ3(n));return F}; G98=function(n){this.N=n}; Be=function(n,Z){return R5e(n,Z,!0)}; $M=function(n,Z,F){var y=F.O7,l=F.rQ,m=F.listener;F=F.Pe;if(n.N.has(Z))wU("Unexpected registration of layout in LidarApi");else{if(F){if(n.X.has(F))return;n.X.add(F)}n.N.set(Z,m);MF(B6().Vm,"fmd",1);g6o(xW(KO),y);iM7(Kt(),Z,{k9:function(){if(!l)return{};var a=n.W.getPresentingPlayerType(!0),D;return(D=n.W.getVideoData(a))!=null&&D.isAd()?{currentTime:n.tG.get().getCurrentTimeSec(a,!1,void 0),duration:l,isPlaying:KR(n.tG.get(),a).isPlaying(),isVpaid:!1,isYouTube:!0,volume:n.tG.get().isMuted()?0:n.tG.get().getVolume()/ 100}:{}}})}}; g.uj=function(n){n.cursor.continue(void 0);return sA(n.request)}; CHp=function(n,Z){if(XI(n.N,Z)&&d6(km(n.N,Z))&&nF(n.N,Z)&&!ZB(n.N,Z)){var F;zc(n.aW,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",Z,(F=nF(n.N,Z))!=null?F:void 0);n=km(n.N,Z);n.N!=="entered"&&Bx(n.slot,n.N,"enterLayoutForSlot");n.N="rendering";n.T.startRendering(n.layout)}}; g.Ee=function(n,Z){Z===void 0&&(Z=0);utU();Z=bMK[Z];for(var F=Array(Math.floor(n.length/3)),y=Z[64]||"",l=0,m=0;l>2];a=Z[(a&3)<<4|D>>4];D=Z[(D&15)<<2|p>>6];p=Z[p&63];F[m++]=""+L+a+D+p}L=0;p=y;switch(n.length-l){case 2:L=n[l+1],p=Z[(L&15)<<2]||y;case 1:n=n[l],F[m]=""+Z[n>>2]+Z[(n&3)<<4|L>>4]+p+y}return F.join("")}; X5p=function(n,Z){return n.bY!==Z.bY?!1:n.range&&Z.range?n.range.start+n.N>=Z.range.start+Z.N&&n.range.start+n.N+n.X<=Z.range.start+Z.N+Z.X:n.O8===Z.O8&&n.N>=Z.N&&(n.N+n.X<=Z.N+Z.X||Z.T)}; z5U=function(n,Z){Px(n,1,Z.clientPlaybackNonce);O0(n,2,Z.serializedPlaybackPingContextData)}; e5f=function(n){n=n.xhr.responseText;if(!EN(n,")]}'"))throw new Y4;n=JSON.parse(n.substr(4));if((n.type||1)>1)throw new Y4;n=n.id;tmj(n);Zt=FM(n);k9P(18E5,2);return n}; g.yW=function(n,Z,F){if(!g.W6(n)||!g.W6(Z)||n.length!=Z.length)return!1;var y=n.length;F=F||HMQ;for(var l=0;l=350)}; nxn=function(n,Z,F){this.FJ=n;this.uY=Z;this.N=F}; sB=function(n,Z){n.N.delete(Z.By())||wU("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Fke=function(n,Z,F,y,l,m,a){Z=F-Z;l?(l instanceof g.CE&&(l.type==="QUOTA_EXCEEDED"||l.type==="QUOTA_MAYBE_EXCEEDED")&&mh("QUOTA_EXCEEDED",{dbName:HN(n.N.name),objectStoreNames:m,transactionCount:n.transactionCount,transactionMode:a.mode}),l instanceof g.CE&&l.type==="UNKNOWN_ABORT"&&(F-=n.T,F<0&&F>=2147483648&&(F=0),mh("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:m,transactionDuration:Z,transactionCount:n.transactionCount,dbDuration:F}),n.X=!0),ZGT(n,!1,y,m,Z,a.tag),P1(l)):ZGT(n,!0,y,m,Z, a.tag)}; aa=function(n){this.AG=UO(n)}; y3K=function(n){if(n.hG.length){var Z=n.hG,F=function(y,l){if(y.info.vr==="f"||Z.includes(KF(y,n.eT.t2)))return y;for(var m={},a=0;a0&&(Z+=" "+y+" Days");if(y>0||l>0)Z+=" "+l+" Hours";Z+=" "+m+" Minutes";Z+=" "+F+" Seconds";y=Z.trim()}else{Z="";y>0&&(Z+=y+":",l<10&&(Z+="0"));if(y>0||l>0)Z+=l+":",m<10&&(Z+="0");Z+=m+":";F<10&&(Z+="0");y=Z+F}return n>=0?y:"-"+y}; ahU=function(n){if(navigator.mediaSession.setPositionState)if(n.api.j("web_player_media_session_infinity")&&n.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(y){}else{var Z=n.api.getProgressState().seekableEnd,F=Math.min(n.api.getCurrentTime(),Z);Z&&Number.isFinite(F)&&navigator.mediaSession.setPositionState({duration:Z,playbackRate:n.api.getPlaybackRate(),position:F})}}; KkP=function(n,Z){switch(n.style){case oa.CHAPTER_MARKER:return Z?8:5;case oa.AD_MARKER:return 6;case oa.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; Pg=function(n){n.V=void 0;n.X=0;n.T=0}; DOn=function(n,Z,F){var y,l=((y=F.video)==null?void 0:y.fps)||0;y=Z+"_"+l;var m=!!F.audio,a=n.N.get(y);a:{var D=n.N.get(y),p=!!F.audio;if(D){if(p){var L=!1;break a}var q;if(!p&&((L=F.video)==null?0:L.height)&&D.maxHeight&&D.maxHeight>=((q=F.video)==null?void 0:q.height)){L=!1;break a}}L=!0}L&&(L=F.itag,Z=a?a:{itag:L,vr:Z,BE:m},m?Z.numChannels=F.audio.numChannels:(m=F.video,Z.maxWidth=m==null?void 0:m.width,Z.maxHeight=m==null?void 0:m.height,Z.maxFramerate=l,lJ(n,sN.BITRATE)&&(Z.maxBitrateBps=F.Qg* 8),Z.fH=m==null?void 0:m.isHdr()),n.N.set(y,Z))}; g.JJ=function(n,Z,F){n.V.set(Z,F)}; W8=function(n,Z){g.R.call(this,{U:"button",s8:["ytp-button","ytp-settings-button"],Z:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":MG(),title:n.j("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},D:[n.j("delhi_modern_web_player_icons")?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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.QW()]});this.W=n;this.Fp=Z;this.X=!0;this.listen("click",this.T);this.G(n,"onPlaybackQualityChange",this.updateBadge);this.G(n,"videodatachange",this.updateBadge);this.G(n,"webglsettingschanged",this.updateBadge);this.G(n,"appresize",this.N);XX(n,this.element,this);this.W.createClientVe(this.element,this,28663);this.updateBadge();this.N(n.Br().getPlayerSize())}; pNQ=function(n,Z){switch(n){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 Z(n),8}}; Lkf=function(n){var Z=new Set,F=new Map,y={};n=g.Y(n);for(var l=n.next();!l.done;l=n.next()){l=l.value;var m=l.quality,a=l.isPlayable,D=l.qualityLabel;D&&m&&(a&&F.has(m)&&F.get(m)!==D?Z.add(m):a&&F.set(m,D),y[D]||(y[D]=l))}F=[];y=g.Y(Object.values(y));for(n=y.next();!n.done;n=y.next())l=n.value,(n=l.quality)&&!Z.has(n)&&(l.formatId=void 0),F.push(l);return F}; Sk=function(){var n=g.Di("yt.logging.ims");n||(n=new YM,g.pv("yt.logging.ims",n));return n}; NH=function(n){var Z=g.e(n,jk);if(Z)return Z;if((Z=g.e(n,qPn))&&Z.commands)return wNU(Z.commands);if((Z=g.e(n,T6i))&&Z.commands)return wNU(Z.commands);if((n=g.e(n,oxp))&&n.identifier&&n.command&&(UB||(UB=[]),!UB.includes(n.identifier)))return UB.push(n.identifier),g.e(n.command,jk)}; hJ=function(n,Z,F,y,l,m,a,D,p){l?qG(n,l).sJ.push({cLs:Z,rA:F,isContentVideoCompanion:y,tZ:a,associatedCompositePlayerBytesLayoutId:m,adSlotLoggingData:D,CX:p}):wU("Companion AdPlacementSupportedRenderer without adVideoId")}; P_P=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);RS(this.api,"isLifaAdPlaying",function(){return Z.api.isLifaAdPlaying()}); this.events.G(n,"serverstitchedvideochange",function(){var F;(F=Z.api.getVideoData())!=null&&F.Cq()&&(Z.api.isLifaAdPlaying()?(Z.playbackRate=Z.api.getPlaybackRate(),Z.api.setPlaybackRate(1)):Z.api.setPlaybackRate(Z.playbackRate))}); this.playbackRate=1}; EB=function(n){var Z;(Z=n.C)==null||Z.dispose();n.C=null}; OB=function(n){this.AG=UO(n)}; Rf=function(n){return g.oo(g.PT(),n)}; J3P=function(n,Z,F){if(n.N){var y=cg(VW(Z,"key"))||"/UNKNOWN_PATH";n.N.start(y)}n=F;g.N5("wug_networking_gzip_request")&&(n=lV8(F));return new window.Request(Z,n)}; PcK=function(n){var Z;(Z=!n)||(Z=n.adSlotMetadata,Z=!((Z==null?void 0:Z.slotId)!==void 0&&(Z==null?void 0:Z.slotType)!==void 0));if(Z||!(QHp(n)||n.slotEntryTrigger&&n.slotFulfillmentTriggers&&n.slotExpirationTriggers))return!1;var F;n=(F=n.fulfillmentContent)==null?void 0:F.fulfilledLayout;return(F=g.e(n,vg))?oh(F):(F=g.e(n,Ia))?YPj(F):(F=g.e(n,SPj))?jHP(F):(F=g.e(n,UOP))?N68(F):(F=g.e(n,hQ7))?Zg(F.adLayoutMetadata)?g.e(F.renderingContent,fF)?!0:!1:!1:(F=g.e(n,ey))?Hy(F):(n=g.e(n,ExP))?Zg(n.adLayoutMetadata)? g.e(n.renderingContent,iL)?!0:!1:!1:!1}; XH=function(n,Z,F){var y=lm();Z=Z();n.Kw(F,lm()-y);return Z}; AJ=function(n){return{downloadedEndTime:Math.round(n.n6?n.n6.S:0),maxKnownEndTime:Math.round(n.N.index.Ri()),averageByteRate:Math.round(n.N.info.jy)}}; vx7=function(n,Z,F,y){y=y===void 0?{}:y;n.X.add(y.layer||0);n.V=function(){OG7(n,Z,F,y);var a=g.Wg(y.layer);if(a){for(var D=g.Y(n.J),p=D.next();!p.done;p=D.next())p=p.value,rq(n,p[0],p[1]||a,y.layer);a=g.Y(n.L);for(D=a.next();!D.done;D=a.next())D=D.value,c3p(n,D[0],D[1])}}; F||g.f_(y.layer)||n.V();if(y.Tk)for(var l=g.Y(y.Tk),m=l.next();!m.done;m=l.next())VY7(n,m.value,y.layer);else g.ZW(Error("Delayed screen needs a data promise."))}; xM=function(n){return[n.top,n.left,n.bottom,n.right]}; gq=function(n,Z,F,y,l,m,a,D){y=y||o5(F.clientMetadata,m);n=Gt(n);var p=Ra(function(){l.m0(Z,F)}); D.push(a(y,n,F.layoutId,{adsClientData:F.lN},function(){p()}))}; IhY=function(n,Z){if(!Z)return!1;for(var F=0;F1E5||++Z.X})}; g.SA=function(n){return"/youtubei/v1/"+fhT(n)}; A3e=function(n){return{token:XM(n,1)}}; U6f=function(n){return WkQ[n]||""}; r3T=function(n,Z,F,y){y=y===void 0?!1:y;var l=n.getVideoData(),m=Z.getVideoData();if(!l.B().supportsGaplessShorts())return{nq:"env"};if((!F.Pr||l.yU&&!l.isAd()||m.yU&&!m.isAd())&&(!F.X||l.yU&&!l.isAd()||m.yU)&&(!F.T||m.yU&&!m.isAd()||l.yU)&&(l.yU||m.yU))return{nq:"autoplay"};if(l.endSeconds>0)return{nq:"endcr"};if(!l.J)return{nq:"client"};if(!n.vj())return{nq:"no-empty"};n=L0P(F,n,Z,Infinity,y);return n!=null?{nq:n.msg}:null}; tJ=function(n,Z){return zt(n,Z.Nj,Z.slotType)?!0:!1}; Gso=function(n){var Z=new kM;Z=Oy(Z,1,n.X);var F=xOP(n);Z=$Zj(Z,F,WYp);F=[];for(var y=[],l=g.Y(n.N.keys()),m=l.next();!m.done;m=l.next())y.push(m.value.split(","));for(l=0;l=Z&&Lh(F,!0)>=Z}else F.X.length||y.X.length?(l=F.bY.info.Qg+y.bY.info.Qg,l=10*(1-sa(Z)/l),Z=Math.max(l,Z.policy.j8),F=Lh(y,!0)>=Z&&Lh(F,!0)>=Z):F=!0;if(!F)return"abr"; F=n.videoTrack;if(F.X.length>0&&F.T.X.length===1&&Ove(F.T).info.J360);if(!n.CB||F)return"";F=n.policy.nD;d2(n.policy)&&(F=Bs(n.Pr,n.CB,sa(n.Pr)));F=cU3(n.videoTrack,n.getCurrentTime(),F)||cU3(n.audioTrack,n.getCurrentTime(),F);return d2(n.policy)?F?"mbnm":"":(n.videoTrack.X.length>0||n.audioTrack.X.length>0|| Ml(n.C,n.videoTrack,n.audioTrack)||Ml(n.C,n.audioTrack,n.videoTrack))&&F?"nord":""}; wNU=function(n){if(n.length!==0){var Z=[];n=g.Y(n);for(var F=n.next();!F.done;F=n.next())(F=NH(F.value))&&Z.push(F);return{commandExecutorCommand:{commands:Z}}}}; mZ3=function(n){return n!=null}; $Q=function(){}; Z$=function(n,Z){n=n.W.j("delhi_modern_web_player_icons");switch(Z){case 1:return n?Z_():Fl();case 2:return n?vbP():IbQ();case 3:return n?{U:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},D:[{U:"path",Z:{d:"M11.29 2.92C14.85 1.33 18.87 1.06 22.61 2.15L22.96 2.26C26.56 3.40 29.67 5.74 31.75 8.89L31.95 9.19C33.90 12.28 34.77 15.93 34.42 19.56L34.38 19.93C34.04 22.79 32.96 25.51 31.25 27.83C29.53 30.14 27.23 31.97 24.59 33.12C21.95 34.27 19.05 34.71 16.18 34.40C13.32 34.08 10.59 33.02 8.26 31.32L7.97 31.10C4.87 28.73 2.71 25.33 1.88 21.52L3.34 21.20L4.81 20.88C5.49 24.00 7.25 26.77 9.79 28.72L10.27 29.07C12.19 30.40 14.41 31.22 16.74 31.44C19.06 31.65 21.40 31.27 23.53 30.31C25.66 29.35 27.50 27.86 28.88 25.98C30.26 24.10 31.13 21.89 31.40 19.58L31.46 18.98C31.68 16.00 30.90 13.03 29.25 10.54C27.60 8.05 25.17 6.18 22.34 5.22L21.77 5.04C19.02 4.23 16.08 4.33 13.38 5.31C10.68 6.29 8.37 8.11 6.77 10.5H10.5L10.65 10.50C11.03 10.54 11.38 10.73 11.63 11.02C11.88 11.31 12.01 11.69 11.99 12.07C11.97 12.46 11.81 12.82 11.53 13.08C11.25 13.35 10.88 13.49 10.5 13.5H1.5V4.5L1.50 4.34C1.54 3.97 1.71 3.63 1.99 3.38C2.27 3.13 2.62 3.00 3 3.00C3.37 3.00 3.72 3.13 4.00 3.38C4.28 3.63 4.45 3.97 4.49 4.34L4.5 4.5V8.51C6.21 6.07 8.56 4.13 11.29 2.92ZM24 18L15 12.75V23.25L24 18ZM3.02 19.73C2.63 19.82 2.29 20.05 2.08 20.39C1.86 20.72 1.79 21.13 1.88 21.52L4.81 20.88C4.77 20.69 4.69 20.50 4.57 20.34C4.46 20.18 4.32 20.04 4.15 19.94C3.99 19.83 3.80 19.76 3.61 19.72C3.41 19.69 3.21 19.69 3.02 19.73Z", fill:"white"}}]}:g.n$();case 4:return n?fb8():AUU();default:return null}}; VP=function(n){g.I.call(this);this.W=n;this.N=new Map;this.X=new rK(this);g.S(this,this.X);this.X.G(this.W,g.HP("ad"),this.onCueRangeEnter,this);this.X.G(this.W,g.dn("ad"),this.onCueRangeExit,this)}; WTp=function(n,Z){NC(n,Z,2);Z=n.N.end();Sd(n,Z);Z.push(n.X);return Z}; rU7=function(n,Z,F,y,l){var m=this;this.loader=n;this.policy=Z;this.zN=F;this.Er=y;this.hF=l;this.done=!1;this.onTimeout=function(){m.done||(m.done=!0,m.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*TR(this.zN)));this.timing=new FB(this,{zN:this.zN,qD:this.size,Fn:!0,sH:function(){}, fv:this.policy.T});n=Se(this.Er,this.hF,this.policy).lU.clone();NW(46,n);n[K[9]]!=="/videogoodput"&&(n[K[9]]="/videogoodput",n[K[13]]=K[12]);this.location=new cL(n);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=yQ(this.location,this.policy.L,this.timing,this.policy.JT,{});setTimeout(this.onTimeout,1E4)}; xrQ=function(n){var Z=Z||0;return function(){return n.apply(this,Array.prototype.slice.call(arguments,0,Z))}}; lA=function(n){if(n.offset>=n.N.totalLength)throw Error();return aX(n.N,n.offset++)}; REP=function(n,Z){var F={type:Z.layoutType,controlFlowManagerLayer:GXo.get(Z.Gx)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};n&&(F.debugData={layoutId:Z.layoutId});return F}; ivi=function(n,Z){gbo.apply(null,[6,n instanceof g.hL?n.tag:n,Z].concat(g.t(g.S7.apply(2,arguments))))}; m$=function(n,Z){var F=F===void 0?0:F;var y;return(y=sd(tD(n,Z)))!=null?y:F}; Cfi=function(n){var Z=n[0];n[0]=n[3];n[3]=Z;Z=n[1];n[1]=n[2];n[2]=Z;Z=n[4];n[4]=n[5];n[5]=Z;Z=n[6];n[6]=n[7];n[7]=Z}; g.aI=function(n){this.V=n.v6Q||null;this.T=n.dN||!1;this.X=void 0}; uvj=function(n){return K$(n,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.pF=function(){D$.instance||(D$.instance=new D$);return D$.instance}; xOP=function(n){return n.fields.map(function(Z){return Z.fieldName})}; q0=function(n){IG(n);n=p$(n);L$(n)||(ox(n),n=eK(b8,XV));return n}; bve=function(n){n.N=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];n.J=[];n.J.length=64;n.V=0;n.X=0}; g.AB=function(n){return n.flavor==="fairplay"}; Dg=function(n){switch(n){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}}; wC=function(n,Z){ay.call(this,n,Z);this.options=Z;ap(n)}; yS=function(n){var Z=vU(n.N,cy,1);Z||(Z=new cy,VZ(n,Z));n=Z;Z=vU(n,Mg,11);Z||(Z=new Mg,cV(n,Mg,11,Z));return Z}; XSp=function(){this.fk=[];this.SC=[]}; zE3=function(n){return yH(function(Z,F){return g.so(Z,F,4,1E3)},n,{format:"RAW", method:"GET",withCredentials:!0})}; Tn=function(n,Z,F){return{Bf:tvP(n.N,Z*1E3,(F===void 0?0:F)*1E3),jK:Z}}; oI=function(n,Z,F){Z=Z===void 0?"":Z;F=F===void 0?"":F;n=new g.yD(n,!0);n.set("alr","yes");F&&(F=qv(1,decodeURIComponent(F)),n[K[5]](Z,encodeURIComponent(F)));return n}; kXT=function(n){return n.W.B().experiments.RY("enable_desktop_discovery_video_abandon_pings")||Ng(n.W.B())}; V1=function(n){var Z=hd(n).nonce;Z||(Z=g.qO(16),hd(n).nonce=Z);return Z}; eEn=function(n){var Z=n.W.Br().hB();n=n.W.LK(!0,!0);return Z.height-(n.height+n.top)}; mS=function(n,Z,F){var y=n.N.get(Z);y?y.push(F):n.N.set(Z,[F])}; BeY=function(n,Z,F,y){n.N&&wU("Currently active request ongoing for slot. This should never happen",n.slot);n.N=Z();n.N.then(function(l){n.N=null;y&&y(l);var m=l.sB?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",a=n.X.get(),D=n.slot.slotId,p=yP(n.xs.get(),{slotId:n.slot.slotId,slotType:n.slot.slotType,slotPhysicalPosition:n.slot.slotPhysicalPosition,Gx:n.slot.Gx,slotEntryTrigger:n.slot.slotEntryTrigger,slotFulfillmentTriggers:n.slot.slotFulfillmentTriggers,slotExpirationTriggers:n.slot.slotExpirationTriggers}), L=$e(a.X.get(),m,D),q={layoutId:L,layoutType:m,Gx:"core"};l={layoutId:L,layoutType:m,Nd:new Map,layoutExitNormalTriggers:[new Hvi(a.N,D)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:new lb([new PA(l)]),lN:p(q)};drj(n.callback,n.slot,l)},function(l){n.N=null; F&&F();l instanceof Qv||Jk(n.callback,n.slot,new C(l,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; MvY=function(n){for(var Z=[],F=[],y=g.Y(n.X),l=y.next();!l.done;l=y.next())l=l.value,l.bitrate<=n.V?Z.push(l):F.push(l);Z.sort(function(m,a){return a.bitrate-m.bitrate}); F.sort(function(m,a){return m.bitrate-a.bitrate}); n.X=Z.concat(F)}; n3U=function(n,Z){return function(){n.Y.j("html5_simplify_pings")?(n.N=n.jT,n.ud=Z(),n.cV=0,n.send()):QQ(n).then(function(F){var y=YQ(n);y.cmt=y.len;y.lact="0";var l=Z().toFixed(3);y.rt=Number(l).toString();y=g.pQ(n.uri,y);n.Y.j("vss_through_gel_double")&&$k3(y);n.zx?(F==null&&(F={}),n.lY?SM().sendAndWrite(y,F):SM().sendThenWrite(y,F)):F?g.jM(y,F):g.yM(y)})}}; Ud=function(n){this.value=n}; ZLK=function(n,Z,F){Z=Z===void 0?0:Z;F=F===void 0?-1:F;if(!n.totalLength||!F)return new DataView(new ArrayBuffer(0));F<0&&(F=n.totalLength-Z);n.focus(Z);if(!N0(n,Z,F)){var y=n.X,l=n.T;n.focus(Z+F-1);l=new Uint8Array(n.T+n.N[n.X].length-l);for(var m=0,a=y;a<=n.X;a++)l.set(n.N[a],m),m+=n.N[a].length;n.N.splice(y,n.X-y+1,l);Pg(n);n.focus(Z)}y=n.N[n.X];return new DataView(y.buffer,y.byteOffset+Z-n.T,F)}; vb=function(n,Z,F){V_(n,F[Z*2],F[Z*2+1])}; ej=function(n){var Z;return!((Z=dg(n))==null||!Z.isLocked)}; FK=function(){R_.call(this,G5,2,"mraid");this.lY=0;this.Tx=this.w5=!1;this.J=null;this.X=Fe7(this.T);this.V.N=new Bk(0,0,0,0);this.jT=!1}; kLf=function(n,Z){if(!n.S){Z=hk(142,Z);J6();var F;hv.visibilityState?F="visibilitychange":hv.mozVisibilityState?F="mozvisibilitychange":hv.webkitVisibilityState&&(F="webkitvisibilitychange");F&&Ed(hv,F,Z,{capture:!1})&&(n.S=Z)}}; Ak=function(n){g.I.call(this);this.counter=[0,0,0,0];this.X=new Uint8Array(16);this.N=16;if(!yYi){var Z,F=new Uint8Array(256),y=new Uint8Array(256);var l=1;for(Z=0;Z<256;Z++)F[l]=Z,y[Z]=l,l^=l<<1^(l>>7&&283);Od=new Uint8Array(256);cA=VQ(256);vA=VQ(256);II=VQ(256);f$=VQ(256);for(var m=0;m<256;m++){l=m?y[255^F[m]]:0;l^=l<<1^l<<2^l<<3^l<<4;l=l&255^l>>>8^99;Od[m]=l;Z=l<<1^(l>>7&&283);var a=Z^l;cA[m]=Z<<24|l<<16|l<<8|a;vA[m]=a<<24|cA[m]>>>8;II[m]=l<<24|vA[m]>>>8;f$[m]=l<<24|II[m]>>>8}yYi=!0}l=VQ(44);for(F= 0;F<4;F++)l[F]=n[4*F]<<24|n[4*F+1]<<16|n[4*F+2]<<8|n[4*F+3];for(y=1;F<44;F++)n=l[F-1],F%4||(n=(Od[n>>16&255]^y)<<24|Od[n>>8&255]<<16|Od[n&255]<<8|Od[n>>>24],y=y<<1^(y>>7&&283)),l[F]=l[F-4]^n;this.key=l}; lkU=function(n){n.X.length?n.N=g.lj(g.lj(n.X).info.D4):n.T.X.length?n.N=n.T.pB().info:n.N=m1(n)}; mkp=function(n){n.V0&&l>0&&(F.width+=l,g.a$(Z.element,"width",F.width+"px")));n.size=F}}; RI=function(n){this.X=n===void 0?15:n;this.values=new Float64Array(176);this.N=new Float64Array(11);this.T=new Float64Array(16)}; r5=function(n,Z,F){Z instanceof g.e_?(n.left+=Z.x,n.right+=Z.x,n.top+=Z.y,n.bottom+=Z.y):(n.left+=Z,n.right+=Z,typeof F==="number"&&(n.top+=F,n.bottom+=F));return n}; gC=function(n,Z,F){n.JG.publish(Z,F);var y=g.f4(n.Y)||g.Uo(n.Y)||g.Fu(n.Y);if(F&&y){switch(Z){case "cuerangemarkersupdated":var l="onCueRangeMarkersUpdated";break;case "cuerangesadded":l="onCueRangesAdded";break;case "cuerangesremoved":l="onCueRangesRemoved"}l&&n.JG.LR(l,F.map(function(m){return{getId:function(){return this.id}, end:m.end,id:m.getId(),namespace:m.namespace==="ad"?"ad":"",start:m.start,style:m.style,visible:m.visible,markerPositionMs:m.markerPositionMs}}))}}; KAn=function(n){n.api.onAdUxClicked("ad-info-icon-button",n.layoutId)}; wyp=function(n,Z,F){if(F.info.bY.Dn()){if(n.hG&&fi7(F)&&(Z=g.sj(F),Z=g.ef(Z,0,1953658222))){Z.skip(1);var y=iA(Z)<<16|C$(Z),l=y&1,m=y&4;if(y&256){var a=y&512,D=y&1024;y&=2048;var p=uA(Z);p<2||(l&&Z.skip(4),m&&Z.skip(4),l=uA(Z),Z.skip((p-1)*(4+(a?4:0)+(D?4:0)+(y?4:0))-4),Z.data.setUint32(Z.offset+Z.N,l))}}if(Z=n.w5&&!!n.w5.bY.V)if(Z=F.info.K6())Z=DkT(F),a=n.w5,bA?(D=1/Z,Z=XB(n,Z)>=XB(a)+D):Z=n.getDuration()>=a.getDuration(),Z=!Z;Z&&fi7(F)&&(Z=n.w5,bA?(D=DkT(F),a=1/D,D=XB(n,D),Z=XB(Z)+a-D):Z=Z.getDuration()- n.getDuration(),Z=1+Z/F.info.duration,piT(g.sj(F),Z))}else{a=!1;n.S||(Leo(F),F.N&&(n.S=F.N,a=!0,l=F.info,m=F.N.N$,l.C="updateWithEmsg",l.O8=m,l=F.N,l.tF&&(m=n.bY.index,m.X=!l.tF,m.T="emsg"),l=F.info.bY.info,m=g.sj(F),g.W2(l)?zn(m,1701671783):l.dV()&&tk([408125543],307544935,m)));a:if((l=kQ(F,n.policy.h2))&&U$o(F))D=qso(n,F),n.J+=D,l-=D,n.Pr+=l,n.T=n.policy.OW?n.T+l:NaN;else{if(n.policy.gQ){if(m=p=n.loader.LD(g.eM(F),1),n.T>=0&&F.info.type!==6){if(n.policy.OW&&isNaN(n.aY)){g.yi(new g.FV("Missing duration while processing previous chunk", F.info.bd()));n.loader.isOffline()&&!n.policy.CO||wiU(n,F,m);Me(n,"m");break a}y=p-n.T;var L=y-n.J,q=F.info.O8,w=n.zx?n.zx.O8:-1,T=n.yg,P=n.aY,J=n.policy.AC&&y>n.policy.AC,U=Math.abs(L)>10,h=Math.abs(n.T-m)<1E-7;if(Math.abs(L)>1E-4){n.jT+=1;var v=(D=n.S)==null?void 0:TmK(D);D={audio:""+ +n.BE(),sq:q.toFixed(),sliceStart:p,lastSq:w.toFixed(),lastSliceStart:T,lastSliceDuration:P,totalDrift:(y*1E3).toFixed(),segDrift:(L*1E3).toFixed(),skipRewrite:""+ +(J||U)};if(v==null?0:v.length)D.adCpn=v[0];n.loader.handleError("qoe.avsync", D);n.fR=q}J||U||h||(m=n.T);D=qso(n,F,p);l-=D;n.J=y+D}}else m=isNaN(n.T)?F.info.startTime:n.T;wiU(n,F,m)&&(n.Pr+=l,n.T=m+l,n.policy.d4&&n.jT>=n.policy.d4&&(n.jT=0,n.loader.SU({resetForRewrites:"count"})))}n.zx=F.info;n.aY=HA(F);F.T>=0&&(n.yg=F.T);if(a&&n.S){a=o33(n,!0);dC(F.info,a);n.N&&dC(n.N.info,a);Z=g.Y(Z);for(D=Z.next();!D.done;D=Z.next())D=D.value,l=void 0,n.policy.S&&D.O8!==((l=n.S)==null?void 0:l.N$)||dC(D,a);(F.info.T||n.N&&n.N.info.T)&&F.info.type!==6||(n.Ns=a,n.policy.X?(Z=Pmo(n.S),n.loader.AA(n.bY, a,Z)):(Z=n.loader,Z.eT.isManifestless&&h4e(Z,a,null,!!n.bY.info.video)),n.policy.Mt||JY3(n))}}J53(n,F);n.timestampOffset&&Qpo(F,n.timestampOffset)}; BA=function(n,Z,F){this.N=n;this.X=Z;this.expiration=F;this.Er=null}; g.ql=function(n,Z){g.M0.call(this,n,Z);Ysj(this);$F(this,"addEventListener",this.zz);$F(this,"removeEventListener",this.hx8);$F(this,"cueVideoByPlayerVars",this.Xl);$F(this,"loadVideoByPlayerVars",this.bni);$F(this,"preloadVideoByPlayerVars",this.ko5);$F(this,"loadVideoById",this.HR);$F(this,"loadVideoByUrl",this.ZO);$F(this,"playVideo",this.L9);$F(this,"loadPlaylist",this.loadPlaylist);$F(this,"nextVideo",this.nextVideo);$F(this,"previousVideo",this.previousVideo);$F(this,"playVideoAt",this.playVideoAt); $F(this,"getVideoData",this.WB);$F(this,"seekBy",this.EkR);$F(this,"seekTo",this.VzQ);$F(this,"showControls",this.showControls);$F(this,"hideControls",this.hideControls);$F(this,"cancelPlayback",this.cancelPlayback);$F(this,"getProgressState",this.getProgressState);$F(this,"isInline",this.isInline);$F(this,"setInline",this.setInline);$F(this,"setLoopVideo",this.setLoopVideo);$F(this,"getLoopVideo",this.getLoopVideo);$F(this,"getVideoContentRect",this.getVideoContentRect);$F(this,"getVideoStats",this.RD); $F(this,"getCurrentTime",this.WF);$F(this,"getDuration",this.vk);$F(this,"getPlayerState",this.gk);$F(this,"getVideoLoadedFraction",this.Le);$F(this,"mute",this.ag);$F(this,"unMute",this.Za);$F(this,"setVolume",this.o1);$F(this,"loadModule",this.loadModule);$F(this,"unloadModule",this.unloadModule);$F(this,"getOption",this.Ep);$F(this,"getOptions",this.getOptions);$F(this,"setOption",this.setOption);$F(this,"addCueRange",this.addCueRange);$F(this,"getDebugText",this.getDebugText);$F(this,"getStoryboardFormat", this.getStoryboardFormat);$F(this,"toggleFullscreen",this.toggleFullscreen);$F(this,"isFullscreen",this.isFullscreen);$F(this,"getPlayerSize",this.getPlayerSize);$F(this,"toggleSubtitles",this.toggleSubtitles);$F(this,"setCenterCrop",this.setCenterCrop);$F(this,"setFauxFullscreen",this.setFauxFullscreen);$F(this,"setSizeStyle",this.setSizeStyle);$F(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);$F(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);SsT(this)}; jpP=function(n,Z){return n.W.j("delhi_modern_web_player_icons")?Z?{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z", fill:"white"}}]}:{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z", fill:"white"}}]}:Z?{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"g",K:"ytp-fullscreen-button-corner-2",D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{U:"g",K:"ytp-fullscreen-button-corner-3",D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{U:"g",K:"ytp-fullscreen-button-corner-0",D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{U:"g",K:"ytp-fullscreen-button-corner-1", D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"g",K:"ytp-fullscreen-button-corner-0",D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{U:"g",K:"ytp-fullscreen-button-corner-1",D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{U:"g",K:"ytp-fullscreen-button-corner-2",D:[{U:"path",Tu:!0,K:"ytp-svg-fill", Z:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{U:"g",K:"ytp-fullscreen-button-corner-3",D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}}; ns=function(n){this.AG=UO(n,8)}; UkK=function(n,Z,F,y){F.adFormat=F.Hx;var l=Z.mQ;Z=new ZL(new WS(F,Z.Y,{getDuration:function(){return F.lengthSeconds}, getCurrentTime:function(){return l.getCurrentTime()}, FY:function(){return l.FY()}, Sq:function(){return l.Sq()}, PP:function(){return l.PP()}, getPlayerSize:function(){return l.getPlayerSize()}, getAudioTrack:function(){return F.getAudioTrack()}, getPlaybackRate:function(){return l.getPlaybackRate()}, Iy:function(){return l.Iy()}, getVisibilityState:function(){return l.getVisibilityState()}, Hj:function(){return l.Hj()}, Dp:function(){return l.Dp()}, getVolume:function(){return l.getVolume()}, isMuted:function(){return l.isMuted()}, sZ:function(){return l.sZ()}, Ph:function(){return l.Ph()}, getProximaLatencyPreference:function(){return l.getProximaLatencyPreference()}, tW:function(){l.tW()}, Xp:function(m,a){l.Xp(m,a)}, Id:function(){return l.Id()}, Kn:function(){return l.Kn()}, Gt:function(){return l.Gt()}})); Z.X=y;g.S(n,Z);return Z}; yfQ=function(){return g.A(function(n){return g.x(n,nae("ytGcfConfig"),0)})}; k6=function(n){var Z=nU();n=Z?Z.createHTML(n):n;return new F9(n)}; NmQ=function(n){for(var Z=n;n&&n!=n.parent;)n=n.parent,Yh(n)&&(Z=n);return Z}; Fh=function(n){return n.backButton?(n.backButton.focus(),!0):!1}; vx=function(n){var Z=n.length,F=Z*3/4;F%3?F=Math.floor(F):g.oo("=.",n[Z-1])&&(F=g.oo("=.",n[Z-2])?F-2:F-1);var y=new Uint8Array(F),l=0;Lxn(n,function(m){y[l++]=m}); return l!==F?y.subarray(0,l):y}; yg=function(){}; g.lS=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},D:[{U:"path",Z:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}}; E3Q=function(n,Z){var F,y,l;return g.A(function(m){if(m.N==1)return F={context:g.s$(n.B()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:n.videoId,cpn:n.clientPlaybackNonce}}]},y=g.SA(hbe),g.x(m,g.jA(Z,F,y),2);l=m.X;return m.return(l)})}; LSi=function(n,Z){Z=Math.min(Z,n.info.X);var F=n.X.split(Z),y=F.bl;F=new mH(new fM(n.info.type,n.info.bY,n.info.range,n.info.C,n.info.O8,n.info.startTime,n.info.duration,n.info.N,Z,!1,n.info.ph,n.info.clipId),F.H6);F.V=n.V;F.T=n.T;Z=new mH(new fM(n.info.type,n.info.bY,n.info.range,n.info.C,n.info.O8,n.info.startTime,n.info.duration,n.info.N+Z,n.info.X-Z,n.info.T,n.info.ph,n.info.clipId),y);Z.V=n.V;Z.T=n.T;return[F,Z]}; az=function(n){this.AG=UO(n)}; Ks=function(n,Z){this.callback=n;this.slot=Z}; g.q$=function(n,Z){var F=Z||document;F.getElementsByClassName?n=F.getElementsByClassName(n)[0]:(F=document,n=n?(Z||F).querySelector(n?"."+n:""):g.DL(F,"*",n,Z)[0]||null);return n||null}; ps=function(n,Z){if(Z.iV)for(var F=0;F0)?Z/n:NaN}; AY7=function(n,Z){this.Qd=n;this.U8=Z}; Pl=function(n,Z){g.xu.call(this);this.w5=n;this.C=Z;this.S=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Pr=new Headers;this.X=null;this.Tx="GET";this.Ns="";this.N=!1;this.J=this.T=this.V=null;this.L=new AbortController}; JA=function(n){var Z,F,y;return((Z=n.W.getVideoData(1).getPlayerResponse())==null?void 0:(F=Z.playerConfig)==null?void 0:(y=F.daiConfig)==null?void 0:y.enableServerStitchedDai)||!1}; Qg=function(){if(!hn())throw Error();}; I8=function(n,Z,F,y,l){Z===F?l(new TypeError("Circular promise chain detected.")):F.then(function(m){m instanceof g.vX?I8(n,Z,m,y,l):y(m)},function(m){l(m)})}; rYK=function(n,Z,F,y,l){g.I.call(this);var m=this,a=PB(function(){return new JO(m.U8)}); g.S(this,a);var D=PB(function(){return new Ye(a)}); g.S(this,D);var p=PB(function(){return new Sa}); g.S(this,p);var L=PB(function(){return new Ur(n)}); g.S(this,L);var q=PB(function(){return new NA(a,D,m.U8)}); g.S(this,q);var w=PB(function(){return new hO}); g.S(this,w);this.FJ=PB(function(){return new Er(Z)}); g.S(this,this.FJ);this.Cn=PB(function(){return new Or(l)}); g.S(this,this.Cn);this.tD=PB(function(){return new cB(Z)}); g.S(this,this.tD);this.ES=PB(function(){return new VP(Z)}); g.S(this,this.ES);this.gM=PB(function(){return new vB(Z)}); g.S(this,this.gM);this.M1=PB(function(){return new fz(Z)}); g.S(this,this.M1);this.U8=PB(function(){return new AO(Z)}); g.S(this,this.U8);var T=PB(function(){return new WB(y)}); g.S(this,T);var P=PB(function(){return new r7(m.U8)}); g.S(this,P);var J=PB(function(){return new xe(a,q,D,m.U8,P,null,null,null,null)}); g.S(this,J);this.tX=PB(function(){return new GE(Z)}); g.S(this,this.tX);this.nR=PB(function(){return new g7(Z,w,m.U8)}); g.S(this,this.nR);var U=ib({nR:this.nR,U8:this.U8,xs:P}),h=U.context;this.aW=U.aW;this.tG=PB(function(){return new ub(Z,m.nR)}); g.S(this,this.tG);this.To=PB(function(){return new bb}); g.S(this,this.To);this.TN=PB(function(){return new X7(m.tG,Z,m.U8)}); g.S(this,this.TN);this.uY=PB(function(){return new tO(Z,p,m.TN,m.nR,m.aW,m.U8)}); g.S(this,this.uY);this.OG=PB(function(){return new ke(m.U8)}); g.S(this,this.OG);this.lL=new ea(HB,d7,function(V,f,W,X){return BB(D.get(),V,f,W,X)},L,q,D,P,this.U8,this.nR); g.S(this,this.lL);this.Ew=new MA(L,J,F,n,this.nR,this.tG,this.tD);g.S(this,this.Ew);var v=new G3(Z,this.Ew,this.tG,this.nR);this.bH=PB(function(){return v}); this.dn=v;this.jn=new nZ(L,q,this.ES,this.bH,h);g.S(this,this.jn);this.IX=new ZQ(this.U8,L,q,J,this.nR,this.jn,F,this.gM);g.S(this,this.IX);this.B7=PB(function(){return new FW(T,D,P,m.U8,m.uY,m.tG)}); g.S(this,this.B7);this.Fh=PB(function(){return new yY}); g.S(this,this.Fh);this.hX=new lF(n,this.FJ,this.U8);g.S(this,this.hX);this.pn=new ml(n);g.S(this,this.pn);this.T5=new KZ(n,this.bH,h);g.S(this,this.T5);this.eV=new DQ(n,this.ES,this.tG,this.nR);g.S(this,this.eV);this.dO=new pZ(n);g.S(this,this.dO);this.kM=new LZ(n);g.S(this,this.kM);this.ym=PB(function(){return new wV(Z)}); g.S(this,this.ym);this.wO=new T6(n);g.S(this,this.wO);this.DM=PB(function(){return new P0}); g.S(this,this.DM);this.r8=PB(function(){return new Jq(m.tG)}); g.S(this,this.r8);this.v7=PB(function(){return new QY(m.IX,L,a)}); g.S(this,this.v7);this.Pn=PB(function(){return new Yo(m.U8,m.uY,m.dO,m.TN)}); g.S(this,this.Pn);this.SE=PB(function(){return new Wei(m.FJ,m.tG,m.uY,p,F,m.U8)}); g.S(this,this.SE);this.OD=PB(function(){return new ST(n,m.wO,m.dO,m.uY,m.TN,m.OG,m.gM,m.nR,m.tG,m.To,m.ES,m.tD,m.M1,m.Cn,m.tX,m.U8,m.ym,h)}); g.S(this,this.OD);this.Pj={eK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.IX],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.lL],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ew],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.jn]]),q_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B7],["SLOT_TYPE_FORECASTING",this.Fh],["SLOT_TYPE_IN_PLAYER",this.Fh],["SLOT_TYPE_PLAYER_BYTES",this.Fh]]),iT:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.hX],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.pn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pn],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pn],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.T5],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eV],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.eV],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.dO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.T5],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kM],["TRIGGER_TYPE_AD_BREAK_STARTED",this.wO]]),J7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.DM],["SLOT_TYPE_ABOVE_FEED",this.DM],["SLOT_TYPE_FORECASTING",this.DM],["SLOT_TYPE_IN_PLAYER",this.DM],["SLOT_TYPE_PLAYER_BYTES",this.r8]]),nY:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.v7],["SLOT_TYPE_FORECASTING",this.Pn],["SLOT_TYPE_IN_PLAYER", this.SE],["SLOT_TYPE_PLAYER_BYTES",this.OD]])};this.listeners=[p.get()];this.TY={IX:this.IX,Fe:this.U8.get(),Hr:this.Cn.get(),nz:this.tG.get(),Ew:this.Ew,XF:a.get(),du:null,Vq:this.hX,Bn:p.get(),Qd:this.nR.get()}}; xkQ=function(n){var Z;return g.A(function(F){if(F.N==1){if(!n.Lq.wpc)throw new hg(30,"NWA");return n.N?F.return(n.N):g.x(F,n.Lq.wpc(),2)}Z=F.X;n.N=new Jd(Z);return F.return(n.N)})}; Goj=function(n){var Z=e0();switch(Z){case 1:Hc.h5vcc.traceEvent.traceEnd("YTLR",n);break;case 2:Z=n+"-start";var F=n+"-end";Hc.performance.mark(F);Hc.performance.measure(n,Z,F);break;case 0:break;default:dF(Z,"unknown trace type")}}; YF=function(n,Z,F,y,l,m,a,D){Tf.call(this,n,Z,F,y);this.uY=l;this.wM=m;this.C=D;this.dJ=!0;this.V=null;this.S=o5(F.clientMetadata,"metadata_type_linked_player_bytes_layout_id");P2(this.wM(),this);this.adPlacementConfig=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,this.adPlacementConfig,F.layoutId)}; g.U$=function(n,Z){E7(n,1,Z.Dw,Sn,3);O0(n,3,Z.videoPlaybackUstreamerConfig);E7(n,5,Z.T0,jn,3);E7(n,6,Z.g8,ps,3)}; wiU=function(n,Z,F){if(!Rb7(Z,F))return Z=Nm(Z.info),Z.smst="1",n.loader.handleError("fmt.unparseable",Z||{},1),!1;isNaN(n.Wr)&&(n.Wr=F);return!0}; g3o=function(n){n=n.X;return n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||null}; hA=function(n){return function(){return iL7[n].apply(this,arguments)}}; gnT=function(n){return g.lf(Cmn(),n)}; g.E$=function(n){return n instanceof g.fW?n.clone():new g.fW(n)}; uoT=function(){var n=yp(),Z={},F={},y={};return Object.assign({},(Z.sv="968",Z),CO!==null&&(F.v=CO,F),(y["if"]=n.T?"1":"0",y.nas=String(rT.N.length),y))}; g.w4=function(n,Z,F){F?g.gi(n,Z):g.hw(n,Z)}; O$=function(n,Z,F){!n.Y.j("html5_tv_ignore_capable_constraint")&&g.f4(n.Y)&&(F=F.compose(n.wu(Z)));return F}; cl=function(n){g.R.call(this,{U:"button",s8:["ytp-fullerscreen-edu-button","ytp-button"],D:[{U:"div",s8:["ytp-fullerscreen-edu-text"],E8:"Scroll for details"},{U:"div",s8:["ytp-fullerscreen-edu-chevron"],D:[bLY()]}],Z:{"data-priority":"2"}});this.JG=n;this.fade=new g.J9(this,250,void 0,100);this.X=this.N=!1;n.createClientVe(this.element,this,61214);g.S(this,this.fade);this.G(n,"fullscreentoggled",this.g5);this.G(n,"presentingplayerstatechange",this.g5);this.listen("click",this.onClick);this.g5()}; zoo=function(n){g.gU(function(){Vg(n)&&fZ("aa",void 0,n);XiP(n);vl(n)})()}; zbK=function(n){var Z=document.querySelectorAll('[data-tooltip-target-id="'+n.tooltipRenderer.targetId+'"]');Z=Z.length>0?Z[0]:null;var F=g.q$("ytp-chrome-bottom"),y=g.q$("ytp-ad-module");n.T=!(F==null||!F.contains(Z));n.C=!(y==null||!y.contains(Z));n.J=!(Z==null||!Z.hasAttribute("data-tooltip-target-fixed"));return Z}; koK=function(n,Z){Z=Z===void 0?{}:Z;var F,y;return g.A(function(l){if(l.N==1)return g.x(l,g.me(),2);if(l.N!=3){F=l.X;if(!F)return l.return();ap(n);y=tp3(n);return g.x(l,U_(y.actualName,Z),3)}return g.x(l,s_(y.actualName,F),0)})}; Iz=function(n){this.value=n}; fs=function(n,Z,F,y){var l=n.V.TQ();l.ssr_sk=(Z*1E3).toFixed(0);l.ssr_t=(n.N*1E3).toFixed(0);l.ssr_r=F;l.ssr_st=(n.startTimeSecs*1E3).toFixed(0);l.ssr_n=(0,g.tP)().toFixed(0);l.ssr_f=(n.J.N*1E3).toFixed(0);l.ssr_fa=n.T?"1":"0";l.ssr_o=(n.K3.lH()*1E3||0).toFixed(0);l.ssr_v=(y*1E3).toFixed(0);Z=n.X.bY.index;Z.Am(n.X.O8,!0)&&(l.ssr_ist=(Z.getStartTime(n.X.O8)*1E3).toFixed(0),l.ssr_id=(Z.getDuration(n.X.O8)*1E3).toFixed(0));n.loader.Xp("ssr",l)}; tYP=function(){if(ebK()&&!HL8){var n=function(F){F=F.data;if(F.op==="serializedGelBatch"){var y=AA.get(F.key);y&&(dkQ(F.serializedBatch,y.client,y.resolve,y.networklessOptions,y.isIsolated,y.useVSSEndpoint,y.dangerousLogToVisitorSession,y.requestsOutstanding),AA.delete(F.key))}},Z=Rl(); Z&&(Z.addEventListener("message",n),Z.onerror=function(){AA.clear()}); HL8=!0}}; Mpf=function(n,Z,F,y){n.rM(5);var l=!!n.rW&&Bme.includes(g.g1(n.rW)||"");try{var m=new X9({program:Z,globalName:F,zY:{disable:!g.N5("att_web_record_metrics")||!g.N5("att_skip_metrics_for_cookieless_domains_ks")&&l,ZI:"aGIf"}});m.RN.then(function(){n.rM(6);y&&y(Z)}); n.qC(m)}catch(a){n.rM(7),a instanceof Error&&g.yi(a)}}; RN3=function(n){this.slot=n;this.w5=new Map;this.Ns=new Map;this.Pr=new Map;this.Tx=new Map;this.T=this.layout=this.X=this.J=void 0;this.C=this.S=!1;this.L=[];this.N="not_scheduled";this.V="not_filled"}; iGe=function(n,Z){if(g.zi($87,Z))return!0;var F=n.FH[Z];return F!==void 0?(n.FH[Z]=!0,!F):!1}; n5e=function(n,Z){var F=Z.filter(function(l){return Wl(n,l)===10}),y=Z.filter(function(l){return Wl(n,l)!==10}); return n.V.IV8?function(){var l=g.S7.apply(0,arguments);return g.A(function(m){if(m.N==1)return g.x(m,n.mh8.apply(n,[F].concat(g.t(l))),2);n.uu.apply(n,[y].concat(g.t(l)));g.zA(m)})}:function(){var l=g.S7.apply(0,arguments); n.PGY.apply(n,[F].concat(g.t(l)));n.uu.apply(n,[y].concat(g.t(l)))}}; ZEi=function(n,Z){this.logger=Z;try{var F=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(y){F=!1}F&&(this.index=TJ3(n))}; r$=function(n,Z,F,y,l,m){m=m===void 0?!1:m;var a={U:"div",s8:["ytp-input-slider-section"],D:[{U:"input",K:"ytp-input-slider",Z:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};l&&a.D.unshift(l);m&&a.s8.push("ytp-vertical-slider");g.R.call(this,a);this.T=n;this.S=Z;this.J=F;this.initialValue=y;this.header=l;this.X=this.Vg("ytp-input-slider"); this.N=y?y:n;this.init();this.G(this.X,"input",this.V);this.G(this.X,"keydown",this.C)}; g.yrp=function(n){var Z=xF(n,0,1701671783);if(!Z)return null;var F=Fie(Z),y=F.XjY;F=RK(F.m1);if(n=xF(n,Z.offset+Z.size,1701671783))if(n=Fie(n),n=RK(n.m1),F&&n){Z=g.Y(Object.keys(n));for(var l=Z.next();!l.done;l=Z.next())l=l.value,F[l]=n[l]}return F?new GH(F,y):null}; g.Rz=function(n,Z,F){n=n.N.createObjectStore(Z,F);return new IW(n)}; g$=function(n,Z){if(n)for(var F in n)Object.prototype.hasOwnProperty.call(n,F)&&Z(n[F],F,n)}; llK=function(n){var Z=n.AG;return ee(n,Z,Z[kt]|0,BM,2,1)}; iS=function(n){this.N=n}; sqo=function(n,Z){var F=Cs(Z);n.N&&(n.C||Z===n.J)?(n.gB(n.N),n.setContent(Z.toString())):n.gB(F)}; uS=function(n){m8Q.test(n)&&(n.indexOf("&")!=-1&&(n=n.replace(al7,"&")),n.indexOf("<")!=-1&&(n=n.replace(Kie,"<")),n.indexOf(">")!=-1&&(n=n.replace(D8U,">")),n.indexOf('"')!=-1&&(n=n.replace(p1n,""")),n.indexOf("'")!=-1&&(n=n.replace(Lio,"'")),n.indexOf("\x00")!=-1&&(n=n.replace(qnP,"�")));return n}; w1Y=function(n,Z,F,y){n.T.dispose();n.T=null;g.gi(n.element,"ytp-popup-animating");y?(g.gi(Z.element,"ytp-panel-animate-forward"),g.hw(F.element,"ytp-panel-animate-back")):(g.gi(Z.element,"ytp-panel-animate-back"),g.hw(F.element,"ytp-panel-animate-forward"));g.Zj(n.element,n.size);n.V=new g.e7(function(){g.hw(n.element,"ytp-popup-animating");Z.detach();g.bS(Z.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);n.V.dispose();n.V=null},250,n); n.V.start()}; aG=function(n,Z,F){for(var y=[],l=g.Y(n.layoutExitNormalTriggers||[]),m=l.next();!m.done;m=l.next()){m=ei(m.value,Z,F);if(m instanceof C)return m;y.push(m)}l=[];m=g.Y(n.layoutExitSkipTriggers||[]);for(var a=m.next();!a.done;a=m.next()){a=ei(a.value,Z,F);if(a instanceof C)return a;l.push(a)}m=[];a=g.Y(n.layoutExitMuteTriggers||[]);for(var D=a.next();!D.done;D=a.next()){D=ei(D.value,Z,F);if(D instanceof C)return D;m.push(D)}a=[];n=g.Y(n.layoutExitUserInputSubmittedTriggers||[]);for(D=n.next();!D.done;D= n.next()){D=ei(D.value,Z,F);if(D instanceof C)return D;a.push(D)}return{layoutExitNormalTriggers:y,layoutExitSkipTriggers:l,layoutExitMuteTriggers:m,layoutExitUserInputSubmittedTriggers:a,layoutExitUserCancelledTriggers:[]}}; zH=function(n){var Z=n.queue;Z.N.length&&Z.N[0].isEncrypted&&!Z.X&&(Z.N.length=0);Z=g.Y(Object.keys(n.N));for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var y=n.N[F];if(!y.n8){var l=n.queue;l.N.push({videoId:y.videoId,formatId:F,isEncrypted:!1});l.X||Xh(l)}}}; dW=function(n,Z,F,y,l){Tf.call(this,n,Z,F,y);n=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,l,n,F.layoutId)}; Jw=function(n,Z){this.version=n;this.args=Z}; TZe=function(n){var Z,F;if((Z=n.Ns)==null?0:(F=Z.X7)==null?0:F.itagDenylist){var y;n.Bz((y=n.Ns)==null?void 0:y.X7.itagDenylist)}var l;if((l=n.Ns)==null?0:l.playbackStartPolicy){var m,a;m4(n.policy,(m=n.Ns)==null?void 0:m.playbackStartPolicy,3,(a=n.Ns)==null?void 0:a.o7())}if(n.policy.s7){Z=n.UG();var D;(F=Z?(D=n.Ns)==null?void 0:D.Ss.get(Z):void 0)&&n.X.nB(F,-1)}if(!n.eT.Ns){var p;D=(p=n.Ns)==null?void 0:p.yF;(D==null?0:D.tN)&&(D==null?0:D.rz)&&n.eT.t2&&tA(n.eT,D.tN,D.rz)}var L;((L=n.Ns)==null?0: L.Fj)&&(p=n.Ns.Fj.get(n.UG()||""))&&n.eT&&p.formatId&&(n=n.eT.T.get(jF(p.formatId)))&&(n.info.debugInfo=p.debugInfo)}; PEQ=function(n){var Z=Z===void 0?!1:Z;return kF(en(n,o58),n,Z,"Trusted Promoted Video Domain URL")}; HUP=function(n,Z,F,y){sh(n,lP(Z||g.ha,F||null,y))}; Hl=function(n,Z){g.N5("use_event_time_ms_header")&&tK(n)&&(Z.headers||(Z.headers={}),Z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.tP)())));return Z}; d$=function(n,Z,F){var y=Jr8[n]||[];F.j("html5_shorts_onesie_mismatched_fix")&&(y=Qqj[n]||[]);Z.push.apply(Z,g.t(y));F.j("html5_early_media_for_drm")&&Z.push.apply(Z,g.t(Ynj[n]||[]))}; Sne=function(n,Z){this.url=n;this.N=!!Z;this.depth=null}; Yr=function(){}; Ra=function(n){var Z=n;return function(){if(Z){var F=Z;Z=null;F()}}}; Bl=function(n,Z){Z=Z===void 0?2:Z;g.Xu.call(this);this.api=n;this.N=null;this.handler=new rK(this);g.S(this,this.handler);this.X=DCp;this.handler.G(this.api,"presentingplayerstatechange",this.TZ);this.N=this.handler.G(this.api,"progresssync",this.jO);this.cf=Z;this.cf===1&&this.jO()}; Mm=function(n){var Z,F;return(F=(Z=n.mQ.HV())==null?void 0:Z.getCurrentTime())!=null?F:n.mQ.getCurrentTime()}; g.pi=function(n,Z,F,y,l,m,a,D,p,L,q){L=L===void 0?new g.O8(n):L;q=q===void 0?!0:q;g.Xu.call(this);var w=this;this.Y=n;this.playerType=Z;this.bN=F;this.b3=y;this.getVisibilityState=m;this.visibility=a;this.kA=D;this.zN=p;this.videoData=L;this.aq=q;this.logger=new g.hL("VideoPlayer");this.HI=null;this.cK=new $S;this.pk=null;this.gC=!0;this.KR=this.loader=null;this.eC=[];this.JL=new ni;this.Q9=this.p7=null;this.g_=new ni;this.WJ=null;this.UF=this.k8=!1;this.t3=NaN;this.uq=!1;this.playerState=new g.iE; this.jF=[];this.l5=new g.IS;this.mediaElement=null;this.n1=this.K$=!1;this.VA=NaN;this.Mi=!1;this.JZ=0;this.B6=!1;this.NP=NaN;this.BP=0;this.loop=!1;this.playbackRate=1;this.Nx=0;this.w$=!1;this.s4=[];this.F$=this.Ob=0;this.Og=this.hK=!1;this.Gw=this.P4=0;this.xO=!1;this.MR=this.YE=this.Lt=this.CJ=null;this.TU=function(){var T=w.g1;T.provider.Y.VG||T.provider.mQ.getVisibilityState()===3||(T.provider.Y.VG=!0);T.Hc();if(T.X){var P=T.X;P.S&&P.N<0&&P.provider.mQ.getVisibilityState()!==3&&f6p(P)}T.qoe&& (T=T.qoe,T.yg&&T.T<0&&T.provider.Y.VG&&y9Q(T),T.V&&Z9(T));w.loader&&pM(w);FG(w)}; this.vx={gF:function(T){w.gF(T)}, YHs:function(T){w.HI=T}, zMi:function(){return w.g1}, X2:function(){return w.KR}, ngp:function(){return w.aK}, fZx:function(){return w.cO}, CoG:function(){}, B:function(){return w.Y}, HV:function(){return w.mediaElement}, ucY:function(T){w.wL(T)}, fLu:function(){return w.b3}}; this.pK=new Ux(this);this.Jj=new g.e7(this.MOs,15E3,this);this.S4=new y6(new Map([["bufferhealth",function(){return uM(w.WV)}], ["bandwidth",function(){return w.wy()}], ["networkactivity",function(){return w.zN.w5}], ["livelatency",function(){return w.isAtLiveHead()&&w.isPlaying()?lu(w):NaN}], ["rawlivelatency",function(){return lu(w)}]])); this.WV=new sU(this);this.oK=new g.e7(this.Ad,0,this);this.LJu=[this.l5,this.oK,this.Jj,this.S4];this.Bo=new jqT(this.Y);this.x6=new mI(this.Y,this.b3,this,this.zN);this.L6=new g.sx(this,function(T,P){T!==g.HP("endcr")||g.b(w.playerState,32)||w.kQ();l(T,P,w.playerType);if(T===g.HP("transitiondetector")&&(T=w.loader)!=null&&(T=T.yg)!=null){var J=g.Y(U8T(P.id));J.next();J=J.next().value;aO(T,J,P.start/1E3-T.mQ.Kn(),Mm(T.T))}}); g.S(this,this.L6);g.S(this,this.WV);NZP(this,L);this.videoData.subscribe("dataupdated",this.DtY,this);this.videoData.subscribe("dataloaded",this.Q1,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Xp,this);this.videoData.subscribe("ctmpstr",this.I9,this);!this.g1||this.g1.CR();this.g1=new g.Ki(new WS(this.videoData,this.Y,this));Ado(this.TU);this.visibility.subscribe("visibilitystatechange",this.TU);this.aK=new g.e7(this.N0,g.jf(this.Y.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.cO=new g.e7(this.N0,g.jf(this.Y.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.A5=new g.D9(this.BVT,350,this);g.S(this,this.A5)}; La=function(n,Z){g.pv("ytglobal.timing"+(Z||"")+"ready_",n)}; WB=function(n){this.N=n}; Gd=function(n){n&&(n.startsWith("https://accounts.google.com/AddSession")?Li():n.startsWith("https://accounts.google.com/ServiceLogin")?Li():n.startsWith("https://myaccount.google.com")&&g.E$(n).X.endsWith("/youtubeoptions")&&Li());if(g.BT("LOGGED_IN",!0)&&hAn()){var Z=g.BT("VALID_SESSION_TEMPDATA_DOMAINS",[]);var F=g.g1(window.location.href);F&&Z.push(F);F=g.g1(n);g.zi(Z,F)||!F&&EN(n,"/")?(Z=dm(n),(Z=$T3(Z))?(Z=wkQ(Z),Z=(Z=g.qs(Z)||null)?jy(Z):{}):Z=null):Z=null;Z==null&&(Z={});F=Z;var y=void 0; hAn()?(y||(y=g.BT("LOGIN_INFO")),y?(F.session_logininfo=y,F=!0):F=!1):F=!1;F&&Bi(n,Z)}}; Ps=function(n){return n.W.B().j("html5_allow_asmjs")}; iHP=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}}; E5o=function(n,Z){return Ai(n,2,Z)}; OEK=function(n){if(n.layout.renderingContent){var Z;return(Z=o5(n.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Z.current}return o5(n.layout.clientMetadata,"metadata_type_player_bytes_callback")}; SRQ=function(){this.N=this.J=this.T=this.X=this.Pr=this.C=this.Ns=this.L=this.S=this.V=!1}; wr=function(){var n=crp();return!(!n||n==="visible")}; VzY=function(n,Z,F){function y(P){if(typeof P!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof P+"'");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var J=!0;L===p&&(L=p.slice()); L.push(P);return function(){if(J){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");J=!1;L===p&&(L=p.slice());L.splice(L.indexOf(P),1);p=null}}} function l(P){if(typeof P!=="object"||P===null)var J=!1;else{for(J=P;Object.getPrototypeOf(J)!==null;)J=Object.getPrototypeOf(J);J=Object.getPrototypeOf(P)===J}if(!J)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof P+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples."); if(typeof P.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,D=a(D,P)}finally{q=!1}J=p=L;for(var U=0;UMath.max(a.maxWidth||0,a.maxHeight||0)?D:a,Z={itag:F.itag,vr:Z,BE:m,maxWidth:Math.max(D.maxWidth||0,a.maxWidth|| 0),maxHeight:Math.max(D.maxHeight||0,a.maxHeight||0),maxFramerate:l,fH:F.fH},lJ(n,sN.BITRATE)&&(Z.maxBitrateBps=F.maxBitrateBps),n.N.set(y,Z)):n.N.set(y,a)}; RAY=function(n,Z,F,y,l,m,a,D,p,L,q,w){var T=PH(y);return T instanceof JT?new C(T):L.W.B().experiments.RY("html5_refactor_in_player_slot_generation")?function(P){var J=new I7(0,[T.MK]);P=rrT(Z,T.layoutId,T.au,F,Q6(T.playerVars,T.M9,m,p,J),T.MK,l,J,a(P),D.get(T.au.externalVideoId),w);J=[];if(T.au.playerOverlay.instreamAdPlayerOverlayRenderer){var U=x8e(P);if(!U)return wU("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,P),{layout:P,zU:[]};J=[GJn(n, U.contentCpn,U.TB,function(v){return BB(Z,v.slotId,"core",U,yP(q,v))},U.inPlayerSlotId)].concat(g.t(J)); if(U.instreamAdPlayerUnderlayRenderer&&YS(L)){var h=U.instreamAdPlayerUnderlayRenderer;J=[Zjp(n,U.contentCpn,U.TB,function(v){return Wq7(Z,v.slotId,h,U.adPlacementConfig,U.TB,yP(q,v))})].concat(g.t(J))}}return{layout:P, zU:J}}:function(P){var J=new I7(0,[T.MK]); return{layout:rrT(Z,T.layoutId,T.au,F,Q6(T.playerVars,T.M9,m,p,J),T.MK,l,J,a(P),D.get(T.au.externalVideoId),w),zU:[]}}}; SR=function(n){return n.W.B().experiments.RY("html5_cuepoint_identifier_logging")}; iEf=function(n){this.iY=n;this.N1=this.Ut=this.jT=this.S=this.V=this.Wr=this.fR=this.Ns=!1;this.J=this.C=0;this.hG=!1;this.Tx=!0;this.xi=!1;this.Tc=0;this.nt=this.zx=!1;this.ud=!0;this.aY=this.r5=!1;this.X={};this.IW=this.SG=this.h2=this.disableAv1=this.Yi=this.R0=this.d5=this.mJ=this.N=this.L=!1;this.w5=0;this.KF=this.iY.j("html5_disable_aac_preference");this.PV=Infinity;this.lY=0;this.Hx=this.iY.eG();this.kV=this.iY.experiments.RY("html5_enable_vp9_fairplay");this.oX=this.iY.j("html5_force_av1_for_testing"); this.RX=this.iY.OS().N.Wx(g5p);this.yg=g.jf(this.iY.experiments,"html5_av1_ordinal_cap");this.mC=this.iY.j("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.uH=this.iY.j("html5_account_onesie_format_selection_during_format_filter");this.Qg=g.jf(this.iY.experiments,"html5_max_byterate");this.Bx=this.iY.j("html5_enable_iamf_audio");this.Z8=this.iY.experiments.RY("html5_allow_capability_merge");this.cV=this.iY.j("html5_enable_encrypted_av1")}; lY=function(n,Z){this.N=n;this.pos=0;this.start=Z||0}; g.AR=function(n,Z){return n.classList?n.classList.contains(Z):g.zi(jR(n),Z)}; uKP=function(n){return(n=CEj&&CEj.exec(n))?n[0]:""}; g.UU=function(n,Z){return PM(n.info.mimeType)?Z?n.info.itag===Z:!0:!1}; j0=function(n,Z,F,y){Z=HN(Z);var l=n instanceof Error?n:Error("Unexpected error: "+n);if(l instanceof g.CE)return l;n={objectStoreNames:F,dbName:Z,dbVersion:y};if(l.name==="QuotaExceededError")return new g.CE("QUOTA_EXCEEDED",n);if(g.x5&&l.name==="UnknownError")return new g.CE("QUOTA_MAYBE_EXCEEDED",n);if(l instanceof Ns)return new g.CE("MISSING_INDEX",Object.assign({},n,{objectStore:l.objectStore,index:l.index}));if(l.name==="InvalidStateError"&&bEi.some(function(m){return l.message.includes(m)}))return new g.CE("EXECUTE_TRANSACTION_ON_CLOSED_DB", n); if(l.name==="AbortError")return new g.CE("UNKNOWN_ABORT",n,l.message);l.args=[Object.assign({},n,{name:"IdbError",E4:l.name})];l.level="WARNING";return l}; X1n=function(n){this.experiments=n;this.N=17;this.T=13E4;this.C=.5;this.V=this.X=!1;this.Tx=this.j("html5_use_histogram_for_bandwidth");this.S=g.jf(this.experiments,"html5_auxiliary_estimate_weight");this.Ns=g.jf(this.experiments,"html5_stall_factor")||1;this.J=g.jf(this.experiments,"html5_check_for_idle_network_interval_ms");this.L=this.experiments.RY("html5_trigger_loader_when_idle_network");this.Pr=this.experiments.RY("html5_sabr_fetch_on_idle_network_preloaded_players")}; hT=function(n,Z,F,y){if(F==="child"){g.Ov(Z);var l;y===void 0?l=void 0:l=!Array.isArray(y)||y&&typeof y.U==="string"?[y]:y;F=zAU(n,l);F=g.Y(F);for(n=F.next();!n.done;n=F.next())Z.appendChild(n.value)}else F==="style"?g.a$(Z,"cssText",y?y:""):y===null||y===void 0?Z.removeAttribute(F):(n=y.toString(),F==="href"&&(n=g.t6(g.Aw(n))),Z.setAttribute(F,n))}; EN=function(n,Z){return n.lastIndexOf(Z,0)==0}; rf7=function(){return{U:"svg",Z:{viewBox:"0 0 24 24"},D:[{U:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{U:"path",Z:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}}; EU=function(n,Z,F){n.videoInfos=n.C;n.videoInfos=g.I$(n.videoInfos,function(y){return y.video.qualityOrdinal>=Z&&y.video.qualityOrdinal<=F})}; ff=function(n,Z){Z=n.pos+Z;if(!(n.N.length>=Z)){for(var F=n.N.length*2;F2&&n.W.j("enable_web_premium_varispeed");n.Tx.classList.toggle("ytp-speedslider-premium-badge",Z);n.Tx.setAttribute("aria-label",Z?"Premium":"")}; kJn=function(n,Z){var F=HbY();if(F){var y=F.coldConfigData,l=F.coldHashData;F=F.hotHashData;if(n){var m;Z=(m=vU(n,V6,62))!=null?m:new V6;y=Oy(Z,1,y);Oy(y,3,l).LU(F);cV(n,V6,62,Z)}else Z&&(Z.client.configInfo=Z.client.configInfo||{},y&&(Z.client.configInfo.coldConfigData=y),l&&(Z.client.configInfo.coldHashData=l),F&&(Z.client.configInfo.hotHashData=F))}}; vH=function(n){n.HI&&(n.HI.dispose(),n.HI=null)}; IO=function(n){this.value=n}; eAT=function(n,Z){for(var F in n)if(!Z.call(void 0,n[F],F,n))return!1;return!0}; rRP=function(n,Z,F){Z==2?n.T.call(n.context,F):n.X&&n.X.call(n.context,F)}; WH=function(n,Z){n.N=Z;var F=n.C.videoInfos;if(!n.N.isLocked()){var y=(0,g.tP)();F=g.I$(F,function(a){if(a.Qg>this.policy.Qg)return!1;var D=this.eT.N[a.id];return fi(this.S).get(a.id)>y||D.Er.T>4||D.C>4?!1:this.zx.has(+a.itag)?!1:!0},n); HEe(n.S)&&(F=g.I$(F,function(a){return a.video.width<=854&&a.video.height<=480}))}F.length||(F=n.C.videoInfos); var l=F;n.policy.Xw&&(l=Vsf(n,l,Z));l=g.I$(l,Z.V,Z);if(n.N.isLocked()&&n.S.N){var m=g.YW(F,function(a){return a.id===n.S.N}); m?l=[m]:AT(n.S,"")}n.policy.Xw||(l=Vsf(n,l,Z));l.length||(l=[F[0]]);l.sort(function(a,D){return m7(n,a)-m7(n,D)}); Z={};for(F=1;FZ.Kr.video.width?(g.ye(l,F),F--):m7(n,Z.UJ)*n.policy.Pr>m7(n,Z.Kr)&&(g.ye(l,F-1),F--);Z=l[l.length-1];n.yg=!!n.T&&!!n.T.info&&n.T.info.vr!==Z.vr;n.V=l;n.aY.clear();F=!1;for(m=0;m=1080&&(F=!0);d8P(n.policy,Z,n.eT.t2)}; rr=function(n,Z,F){Z.layoutId!==n.layout.layoutId?n.N.KN(n.slot,Z,new JT("Unknown layout received. Required LayoutId: "+n.layout.layoutId+("and LayoutType: "+n.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):F()}; mW=function(n){this.value=n}; BZp=function(n,Z,F){var y,l,m,a;return g.A(function(D){if(D.N==1){if(!g.N5("start_client_gcf"))return D.ST(0);Pi(n,Z);return(y=bL())?F?D.ST(4):g.x(D,B1U(y),5):D.ST(0)}D.N!=4&&(l=D.X,F=(m=l)==null?void 0:m.config);if(!F)return D.ST(0);a=F.configData;return g.x(D,mve(F,Z,a,y),0)})}; MzP=function(n,Z){var F=0;n.V.has(Z)&&(F=n.V.get(Z).qB);n.V.set(Z,{qB:F+1,Ex:Math.pow(2,F+1)});n.X=!0}; $7n=function(n){var Z=n.bG().filter(function(y){return y.namespace==="ad"}); Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next())if(F=F.value,F.start/1E3>n.getCurrentTime())return F.start/1E3;return Infinity}; LE=function(n,Z,F,y,l,m){m=m===void 0?!1:m;CW.call(this,n,{U:"img",K:"ytp-ad-image"},"ad-image",Z,F,y,l===void 0?null:l);this.N=m;this.hide()}; Z1e=function(n){var Z,F,y,l,m,a,D,p,L;return g.A(function(q){switch(q.N){case 1:if(!nho)throw Error("DecompressionStream is not supported");Z=xS.Pq();F=new DecompressionStream("gzip");y=F.writable.getWriter();y.write(n);y.close();l=F.readable.getReader();m=new y9([]);case 2:return g.x(q,l.read(),5);case 5:a=q.X;D=a.value;if(p=a.done){q.ST(4);break}m.append(D);q.ST(2);break;case 4:return L=Ge(m),xS.Yj("gznb",Z,Math.ceil(L.byteLength/16)),q.return(L)}})}; aep=function(n,Z,F,y){F=F===void 0?{}:F;var l={};g.RH(l,{opt_adElement:void 0,opt_fullscreen:void 0},F);var m=n.rR(Z,F);F=m?m.Zv:n.uv();if(l.opt_bounds)return F.N(RO("ol",y));if(y!==void 0)if(F2T(y)!==void 0)if(gr)n=RO("ue",y);else if(yIK(n),yw=="i")n=RO("i",y),n["if"]=0;else if(Z=n.rR(Z,l)){b:{yw=="i"&&(Z.jf=!0);m=l.opt_fullscreen;m!==void 0&&$L(Z,!!m);var a;if(m=!yp().X)(m=d1(g.PT(),"CrKey")&&!(d1(g.PT(),"CrKey")&&d1(g.PT(),"SmartSpeaker"))||d1(g.PT(),"PlayStation")||d1(g.PT(),"Roku")||Q6Y()||d1(g.PT(), "Xbox"))||(m=g.PT(),m=d1(m,"AppleTV")||d1(m,"Apple TV")||d1(m,"CFNetwork")||d1(m,"tvOS")),m||(m=g.PT(),m=d1(m,"sdk_google_atv_x86")||d1(m,"Android TV")),m=!m;m&&(J6(),m=NZ(hv)===0);if(a=m){switch(Z.UZ()){case 1:leY(Z,"pv");break;case 2:n.iW(Z)}Co("pv")}m=y.toLowerCase();if(a=!a)a=f7(B6().Vm,"ssmol")&&m==="loaded"?!1:g.zi(s7K,m);if(a&&Z.UD==0){yw!="i"&&(Yq.done=!1);a=l!==void 0?l.opt_nativeTime:void 0;iu=a=typeof a==="number"?a:$1();Z.jY=!0;var D=dk();Z.UD=1;Z.FH={};Z.FH.start=!1;Z.FH.firstquartile= !1;Z.FH.midpoint=!1;Z.FH.thirdquartile=!1;Z.FH.complete=!1;Z.FH.resume=!1;Z.FH.pause=!1;Z.FH.skip=!1;Z.FH.mute=!1;Z.FH.unmute=!1;Z.FH.viewable_impression=!1;Z.FH.measurable_impression=!1;Z.FH.fully_viewable_audible_half_duration_impression=!1;Z.FH.fullscreen=!1;Z.FH.exitfullscreen=!1;Z.yf=0;D||(Z.Sv().L=a);R5(Yq,[Z],!D)}(a=Z.xe[m])&&Ct(Z.kd,a);f7(B6().Vm,"fmd")||g.zi(m7f,m)&&Z.zW&&Z.zW.X(Z,null);switch(Z.UZ()){case 1:var p=ON(m)?n.J.custom_metric_viewable:n.J[m];break;case 2:p=n.L[m]}if(p&&(y=p.call(n, Z,l,y),f7(B6().Vm,"fmd")&&g.zi(m7f,m)&&Z.zW&&Z.zW.X(Z,null),y!==void 0)){l=RO(void 0,m);g.RH(l,y);y=l;break b}y=void 0}Z.UD==3&&n.rT(Z);n=y}else n=RO("nf",y);else n=void 0;else gr?n=RO("ue"):m?(n=RO(),g.RH(n,C_i(m,!0,!1,!1))):n=RO("nf");return typeof n==="string"?F.N():F.N(n)}; ge=function(n){if(n.X)return n.X;var Z=xW(Gf).N;if(Z)switch(Z.getName()){case "nis":n.X="n";break;case "gsv":n.X="m"}n.X||(n.X="h");return n.X}; Ci=function(n,Z,F){F=F===void 0?!1:F;var y=n.S();if(y){for(;n.VF&&(Z=TcP(n,Z)/1E3,F=n.app.Z4().getPlayerState(),eR(n,Z,{},F,"_update"))}; Wxp=function(n,Z){n.policy.J&&n.loader.Xp("sabrcrq",{create:1});var F=new HH(0,n.eT.Pr,n);n.X.Pr=!1;return Pg7(n,F,Z)}; dr=function(n,Z,F){Z=Z===void 0?",":Z;F=F===void 0?n?n.length:0:F;var y=[];if(n)for(F=Math.max(n.length-F,0);F1&&y?(n=JI3(n.Y.S,Z.N.videoInfos,F),new vL(0,n,!0,"o")):new vL(0,0,!1,"o")}; Q7U=function(n){var Z;return((Z=n.T)==null?void 0:Z.currentVideoDuration)||-1}; $7=function(n,Z,F,y){var l=n[kt]|0,m=CZ(l);l=pH(n,l,F,Z,m);uF(n,l,Z,y,m)}; g.dn=function(n){return"crx_"+n}; YvQ=function(n){var Z=g.ny("LOGGED_IN",function(F){n.apply(void 0,arguments);g.Sv(Z)})}; g.Fn=function(n,Z){var F=F===void 0?0:F;var y=new SvT;O0(y,2,Zw(n));n=j7e[Z];if(typeof n==="undefined")throw F=new g.FV("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Z}),g.ZW(F),F;Sf(y,4,n);Sf(y,5,1);Z=new Uint8Array(y.N.buffer,y.N.byteOffset,y.pos);return encodeURIComponent(g.Ee(Z,F))}; U7Y=function(n){n=LAT(n);return n===null?!1:n[1]==="google"?!0:n[2]==="google"?n[0]==="au"&&n[1]==="com"?!0:n[0]==="uk"&&n[1]==="co"?!0:!1:!1}; T73=function(n){if(!Ncj(n))return!1;n=g.e(n.adStart,$a);return n?AW(n)?!0:(wU("Invalid LASR with notify"),!1):!1}; Pg7=function(n,Z,F){var y={zN:n.zN,sH:function(p,L){n.mQ.Eh(p,L)}, fO:n.policy.ZZ,fv:n.policy.T};n.zN.X.C&&(y.d8=(n.videoTrack.bY.info.Qg||0)+(n.audioTrack.bY.info.Qg||0));n.policy.rZ&&(y.IH=n.audioTrack.bY.index.Xb(),y.fO=!1);var l=w8f(Z,n.policy,n.V)?2:1;l!==n.Ns&&(n.Ns=l,hLT(n));F=n.Zc(F);if(n.policy.Ns&&n.policy.T&&F.u_){for(var m=l="",a=g.Y(F.u_),D=a.next();!D.done;D=a.next())D=D.value,n.videoData.sabrContextUpdates.has(D)||n.policy.Ns&&F.o9&&F.o9.type===D?l+="_"+D:m+="_"+D;n.loader.Xp("sabrbldrqs",{ctxts:l,misctxts:m})}!Z.setData(F,n.policy,n.V)&&n.policy.Ns&& n.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);y=new Dt(n.policy,Z,n.eT,n.V,n,y,n.loader.oG());y8(n.timing);n.policy.J&&n.loader.Xp("sabrcrq",{rn:y.o7(),probe:Z.Ie()});return y}; Ehj=function(n,Z,F){this.N=n;this.slot=Z;this.layout=F}; g.RX=function(n,Z,F){n.C=Z;F!=void 0&&(n.S=F)}; Vqj=function(n,Z,F,y,l,m,a,D,p){var L=Number(y.durationMilliseconds);return isNaN(L)?new C("Expected valid duration for AdActionInterstitialRenderer."):function(q){return O1P(Z,q.slotId,F,L,{impressionCommands:void 0,abandonCommands:y.abandonCommands?[{commandExecutorCommand:y.abandonCommands}]:void 0,completeCommands:y.completionCommands},y.skipPings?new Map([["skip",y.skipPings]]):new Map,a(q),function(w){return cIe(n,w,l,function(T,P){var J=T.slotId;T=a(T);J=$e(Z.X.get(),"LAYOUT_TYPE_ENDCAP",J); return lx(Z,J,P,F,T,"LAYOUT_TYPE_ENDCAP",[new s5(y),D],y.adLayoutLoggingData)})},p,m-1,y.adLayoutLoggingData,m)}}; vh3=function(n){return n.linearAd!=null&&n.adVideoStart!=null}; $Zj=function(n,Z,F){qA(n);var y=n.AG,l=y[kt]|0;if(Z==null)return uF(y,l,3),n;if(!Array.isArray(Z))throw sH();var m=Z===dQ?7:Z[kt]|0,a=m,D=MJ(m),p=D||Object.isFrozen(Z);D||(m=0);p||(Z=WQ(Z),a=0,m=$x(m,l),p=!1);m|=5;D=4&m?512&m?512:1024&m?1024:0:void 0;D=D!=null?D:0;for(var L=0;L=F))return y.push(l.getValue()),g.uj(l)}).then(function(){return y})}; x7Q=function(n){return{token:XM(n,1),videoId:XM(n,2)}}; yU3=function(n){n&&n!=="web"&&GMQ.includes(n)}; kQ=function(n,Z){Z=Z===void 0?!1:Z;var F=HA(n);n=Z?0:n.info.J;return F||n}; qw=function(n){this.value=n}; ghT=function(n,Z){var F=RLQ(n),y=F.R2;F=F.FC;if(n.policy.ZD){var l=Rh(n.zx.XI,Z);n=Rh(n.lY.XI,Z)}else l=y,n=F;return{Qz:l,Nq:n,R2:y,FC:F}}; w9=function(n){this.N=n;this.iv=(0,g.sY)(T9(16))}; i1P=function(n,Z,F,y,l,m){m=m===void 0?!0:m;var a=n.Xh();if(!a)return m&&n.getVideoData().isLivePlayback&&n.DN.push({id:Z,yuG:F,fIR:y}),!1;m=a-n.getCurrentTime();return T7(n,Z,F-m,y-m,void 0,void 0,l)}; uj7=function(n,Z){for(var F=g.Y(Z.keys()),y=F.next();!y.done;y=F.next())if(y=Z.get(y.value),y.length!==0){g.bF(y,function(D,p){return p.maxFramerate-D.maxFramerate}); for(var l=[y[0]],m=0,a=1;a>>0,XV=Number(n>>BigInt(32)&BigInt(4294967295));else{var Z=+(n[0]==="-");XV=b8=0;for(var F=n.length,y=0+Z,l=(F-Z)%6+Z;l<=F;y=l,l+=6)y=Number(n.slice(y,l)),XV*=1E6,b8=b8*1E6+y,b8>=4294967296&&(XV+=Math.trunc(b8/4294967296),XV>>>=0,b8>>>=0);Z&&(Z=g.Y(Eh(b8,XV)),n=Z.next().value,Z=Z.next().value,b8=n,XV=Z)}}; h_7=function(){function n(w){for(var T=a,P=0;P<64;P+=4)T[P/4]=w[P]<<24|w[P+1]<<16|w[P+2]<<8|w[P+3];for(P=16;P<80;P++)w=T[P-3]^T[P-8]^T[P-14]^T[P-16],T[P]=(w<<1|w>>>31)&4294967295;w=l[0];var J=l[1],U=l[2],h=l[3],v=l[4];for(P=0;P<80;P++){if(P<40)if(P<20){var V=h^J&(U^h);var f=1518500249}else V=J^U^h,f=1859775393;else P<60?(V=J&U|h&(J|U),f=2400959708):(V=J^U^h,f=3395469782);V=((w<<5|w>>>27)&4294967295)+V+v+f+T[P]&4294967295;v=h;h=U;U=(J<<30|J>>>2)&4294967295;J=w;w=V}l[0]=l[0]+w&4294967295;l[1]=l[1]+ J&4294967295;l[2]=l[2]+U&4294967295;l[3]=l[3]+h&4294967295;l[4]=l[4]+v&4294967295} function Z(){l[0]=1732584193;l[1]=4023233417;l[2]=2562383102;l[3]=271733878;l[4]=3285377520;q=L=0} function F(w,T){if(typeof w==="string"){w=unescape(encodeURIComponent(w));for(var P=[],J=0,U=w.length;J=56;P--)m[P]=T&255,T>>>=8;n(m);for(P=T=0;P<5;P++)for(var J=24;J>=0;J-=8)w[T++]=l[P]>>J&255;return w} for(var l=[],m=[],a=[],D=[128],p=1;p<64;++p)D[p]=0;var L,q;Z();return{reset:Z,update:F,digest:y,S2:function(){for(var w=y(),T="",P=0;PF.time?Z:F},n[0])}; SD=function(n,Z){if(Z==0)return n.N;if(Z==1)return n.X;var F=Y7(n.N,n.T,Z),y=Y7(n.T,n.V,Z);n=Y7(n.V,n.X,Z);F=Y7(F,y,Z);y=Y7(y,n,Z);return Y7(F,y,Z)}; jD=function(n){n.isInitialized&&(n.enabled=n.isVisible,n.Tx=n.isVisible,jd(n),n.Lh(),n.thumbnailImage.yP(n.isVisible),n.shouldHideDismissButton||n.dismissButton.yP(n.isVisible),n.shouldShowOverflowButton&&n.overflowButton.yP(n.isVisible))}; U5=function(){var n;return(n=xH())!=null?n:g.BT("RAW_HOT_CONFIG_GROUP")}; yY=function(){}; Nw=function(n,Z,F){this.buffer=n;if(F&&!Z)throw Error();this.N=Z}; hX=function(n){g.I.call(this);var Z=this;this.T=new g.uR;this.V=0;this.X=void 0;this.state=2;this.Lq=n.Lq;this.Rt=n.Rt;this.z0=Object.assign({},zLT,n.z0||{});this.logger=n.Lq.WX();var F;this.onError=(F=n.onError)!=null?F:function(){}; this.Ed=n.Ed||!1;if(tqQ(n)){var y=this.Lq;this.S=function(){return WSf(y).catch(function(a){a=Z.reportError(new hg(Z.N?20:32,"TRG:Disposed",a));Z.X=a;var D;(D=Z.N)==null||D.dispose();Z.N=void 0;Z.T.reject(a)})}; kMj(y,function(){return void kV(Z)}); y.L===2&&kV(this)}else this.S=n.kw8,kV(this);var l=this.logger.share();l.OZ("o");var m=new o7(l,"o");this.T.promise.then(function(){m.done();l.yT();l.dispose()},function(){return void l.dispose()}); this.addOnDisposeCallback(function(){Z.N?(Z.N.dispose(),Z.N=void 0):Z.X?Z.logger.yT():(Z.X=Z.reportError(new hg(32,"TNP:Disposed")),Z.logger.yT(),Z.T.reject(Z.X))}); g.S(this,this.logger)}; E5=function(){}; H1f=function(n,Z,F,y){if(n.S){var l=eLp[Z];Z=n.S+l;n.T&&(Z+="?cb="+n.T);XO3(n,Z,function(){n.V.add(l);F.call(n)},y)}}; d77=function(n){this.AG=UO(n)}; Bci=function(){}; Mqj=function(n){O5(n)&&!n.zv&&(n.N=!0,n.Kv&&Math.random()<=n.wT&&n.Sz.pW(n.aZ),n.Y2(),n.QU.Yd()&&n.jJ(),n.QU.listen(n.JW,n.jJ.bind(n)),n.QU.listen(n.y7,n.vO.bind(n)))}; $Vj=function(n,Z){n.publish("settingChange",n.setting+"Override",!Z);n.Fp.v1()}; HXU=function(n,Z,F){var y=this;this.loader=n;this.policy=Z;this.bY=F;this.logger=new g.hL("dash");this.X=[];this.N=null;this.Tx=-1;this.L=0;this.Wr=NaN;this.Pr=0;this.T=NaN;this.J=this.lY=0;this.fR=-1;this.zx=this.V=this.S=this.w5=null;this.yg=this.aY=NaN;this.C=this.Ns=this.r5=this.xi=null;this.hG=!1;this.jT=this.timestampOffset=0;this.vx={wC:function(){return y.X}}; if(this.policy.V){var l=this.bY,m=this.policy.V;this.policy.hG&&n.Xp("atv",{ap:this.policy.hG});this.C=new cu(this.policy,l,function(a,D,p){n.mQ.Qa(new Zb(y.policy.V,2,{vA:new nOj(m,a,l.info,D,p)}))}); this.C.L.promise.then(function(a){y.C=null;a===1?n.mQ.Qa(new Zb(y.policy.V,a)):y.loader.Xp("offlineerr",{status:a.toString()})},function(a){var D=(a.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); a instanceof kA&&!a.N?(y.loader.Xp("offlinenwerr",{em:D}),EB(y),n.mQ.Qa(new Zb(y.policy.V,4))):(y.loader.Xp("dldbwerr",{em:D}),EB(y),n.mQ.Qa(new Zb(y.policy.V,4,{Li:!0})))})}}; ZtT=function(n){return{r3:ut(n,1),kK:ut(n,2),minReadaheadMs:ut(n,3)}}; gV=function(n){var Z=dT(TA);return Z?n[Z]:void 0}; g.vX=function(n){function Z(l){if(y.state.status==="PENDING"){y.state={status:"REJECTED",reason:l};l=g.Y(y.X);for(var m=l.next();!m.done;m=l.next())m=m.value,m()}} function F(l){if(y.state.status==="PENDING"){y.state={status:"FULFILLED",value:l};l=g.Y(y.N);for(var m=l.next();!m.done;m=l.next())m=m.value,m()}} var y=this;this.state={status:"PENDING"};this.N=[];this.X=[];n=n.N;try{n(F,Z)}catch(l){Z(l)}}; F33=function(n,Z,F,y,l,m,a,D,p){var L=Z;a===1||(a!==4?0:2&Z||!(16&Z)&&32&y)?MJ(Z)||(Z|=!n.length||D&&!(4096&Z)||32&y&&!(4096&Z||16&Z)?2:256,Z!==L&&v6(n,Z),Object.freeze(n)):(a===2&&MJ(Z)&&(n=WQ(n),L=0,Z=$x(Z,y),y=uF(F,y,l,n,m)),MJ(Z)||(p||(Z|=16),Z!==L&&v6(n,Z)));2&Z||!(4096&Z||16&Z)||k1(F,y);return n}; yBe=function(n,Z){return new g.Xv(n?"auth":"manifest.net.retryexhausted",Z,n?2:1)}; v1Y=function(n,Z,F){if(n.Ow){n.Ow.gS();var y=n.Ow.Pr,l=y.V,m=l.N;if(y.C!=null){var a=y.T;n.p$=new g.e_(a.left-m.left,a.top-m.top)}m=n.j7()?Math.max(y.N,y.S):y.N;a={};l.volume!==null&&(a.volume=l.volume);l=n.Nk(y);n.XL=y;n.g5(m,Z,F,!1,a,l,y.L)}}; fVj=function(n){if(!(n instanceof Object))throw new TypeError("Iterator result "+n+" is not an object");}; aqU=function(n,Z){E7(n,1,Z.Dw,Sn,3);if(Z.Mm)for(var F=0;F0&&J&&T&&(q=[a,F],W=T.concat(J).filter(function(X){return X})); if(W.length&&!Z.Ut){Cy(W,q);if(p){p=[];Z=g.Y(W);for(y=Z.next();!y.done;y=Z.next())p.push(y.value.itag);m({hbdfmt:p.join(".")})}return FM(new g9(W,l,L,n))}W=hZK(Z);W=g.YW(W,D);if(!W){if(w[a])return m=w[a],Cy(m),FM(new g9(m,l,L,n));p&&m({novideo:1});return RM()}Z.ud&&(W==="1"||W==="1h")&&w[F]&&(a=ux(w[W]),q=ux(w[F]),q>a?W=F:q===a&&qhY(w[F])&&(W=F));W==="9"&&w.h&&ux(w.h)>ux(w["9"])&&(W="h");Z.mJ&&y.isLive&&W==="("&&w.H&&ux(w["("])<1440&&(W="H");p&&m({vfmly:cQ(W)});Z=w[W];if(!Z.length)return p&&m({novfmly:cQ(W)}), RM();Cy(Z);return FM(new g9(Z,l,L,n))}; r9Y=function(n,Z,F,y,l,m,a){this.FJ=n;this.tG=Z;this.uY=F;this.X=y;this.aA=l;this.N=m;this.nR=a}; Otn=function(n,Z){n=HQ8(n.N,function(y){return y.index.isLoaded()}); if(!n)return NaN;n=n.index;var F=n.Um(Z);return n.getStartTime(F)===Z?Z:F=5)){l=[];for(var m=g.Y(V0o),a=m.next();!a.done;a=m.next()){a=a.value;try{a()&&l.push(a())}catch(U){}}l=[].concat(g.t(vOU),g.t(l));var D=S08(n);m=D.message||"Unknown Error";a=D.name||"UnknownError";var p=D.stack||n.X||"Not available";if(p.startsWith(a+": "+m)){var L=p.split("\n");L.shift();p=L.join("\n")}L=D.lineNumber||"Not available";D=D.fileName||"Not available";var q=0;if(n.hasOwnProperty("args")&& n.args&&n.args.length)for(var w=0;w=500);w++);else if(n.hasOwnProperty("params")&&n.params){var T=n.params;if(typeof n.params==="object")for(w in T){if(T[w]){var P="params."+w,J=z7(T[w]);F[P]=J;q+=P.length+J.length;if(q>500)break}}else F.params=z7(T)}if(l.length)for(w=0;w=500);w++);navigator.vendor&&!F.hasOwnProperty("vendor")&&(F["device.vendor"]=navigator.vendor);F={message:m,name:a,lineNumber:L, fileName:D,stack:p,params:F,sampleWeight:1};w=Number(n.columnNumber);isNaN(w)||(F.lineNumber=F.lineNumber+":"+w);if(n.level==="IGNORED")n=0;else a:{n=tX();w=g.Y(n.SC);for(l=w.next();!l.done;l=w.next())if(l=l.value,F.message&&F.message.match(l.rF)){n=l.weight;break a}n=g.Y(n.fk);for(w=n.next();!w.done;w=n.next())if(w=w.value,w.callback(F)){n=w.weight;break a}n=1}F.sampleWeight=n;n=g.Y(fq8);for(w=n.next();!w.done;w=n.next())if(w=w.value,w.zl[F.name])for(m=g.Y(w.zl[F.name]),l=m.next();!l.done;l=m.next())if(a= l.value,l=F.message.match(a.fh)){F.params["params.error.original"]=l[0];m=a.groups;a={};for(L=0;L16-F?(n.I7|=Z<>16-n.VQ,n.VQ+=F-16):(n.I7|=Z<>>8&255;n.XX[n.pending++]=Z&255}; yA=function(n){vk.call(this,n);var Z=this,F={};this.Wr=(F.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},F.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(y){return CzT(Z,y)},F.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(y){return CzT(Z,y)},F.TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN=function(){return Z.api.B().experiments.RY("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?Z.S&&Z.L:Z.S&&Z.J},F.TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER= function(){return Z.w5},F); this.w5=this.L=this.J=this.S=!1;this.V={};this.events=new g.IS(n);g.S(this,this.events);this.C=new g.OH(this.api.Br().K5);g.S(this,this.C);this.api.j("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.jf(this.api.B().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")&&(F=g.jf(this.api.B().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds"),this.Ns=new g.e7(this.Gn,F,this),g.S(this,this.Ns));this.events.G(n,"videodatachange",function(y,l){if(y!=="dataupdated"|| l.videoId!==Z.videoId||!nV(Z.timelyActions,uxf(l)))Z.onVideoDataChange(l)}); this.events.G(n,"presentingplayerstatechange",function(y){Z.Rh(y)}); n.j("enable_smart_skip_player_controls_shown_on_web")&&(this.events.G(n,"onShowControls",function(){Z.S=!0;Z.Gn()}),this.events.G(n,"onHideControls",function(){Z.S=!1}),this.C.subscribe("hoverstart",function(){Z.J=!0; Z.Gn()},this),this.C.subscribe("hoverend",function(){Z.J=!1},this),n.j("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.G(n,"progressBarHoverStart",function(){Z.L=!0; if(Z.api.j("enable_smart_skip_web_player_bar_hover_length_threshold")){var y;(y=Z.Ns)==null||g.J3(y)}else Z.Gn()}),this.events.G(n,"progressBarHoverEnd",function(){Z.L=!1; if(Z.api.j("enable_smart_skip_web_player_bar_hover_length_threshold")){var y;(y=Z.Ns)==null||y.stop()}}))); n.j("enable_smart_skip_speedmaster_on_web")&&this.events.G(n,"speedmasterchanged",function(y){(Z.w5=y)&&Z.Gn()}); this.events.G(n,g.HP("timelyAction"),function(y){Z.onCueRangeEnter(y.getId())}); this.events.G(n,g.dn("timelyAction"),function(y){Z.onCueRangeExit(y.getId())}); n.j("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.G(n,"keyboardserviceglobalkeydown",function(y,l){if((vE?y.altKey:y.ctrlKey)&&y.keyCode===39&&Z.Pr&&Z.N){var m;y=g.e((m=Z8(Z,Z.N))==null?void 0:m.rendererContext,btY);if(m=NH(y==null?void 0:y.onTap))Z.api.LR("innertubeCommand",m),l&&(l.j6=!0),l=FE(),(m=Xcj(l))&&zZe(l,m)}},this); this.X=new g.R({U:"div",s8:["ytp-player-content","ytp-timely-actions-content"]});this.X.hide();RS(n,"insertTimelyActionUi",function(y){Z.X.element.children.length>0&&g.Ov(Z.X.element);y.classList.add("ytp-timely-actions-overlay");Z.X.element.appendChild(y)}); g.S(this,this.X);this.j("web_player_overlay_positioned_layout")?this.events.G(n,"basechromeinitialized",function(){Z.api.wW(Z.X.element,4,!0);Z.X.element.setAttribute("data-overlay-order","10")}):g.y7(this.api,this.X.element,4)}; jT=function(n,Z){g.I.call(this);this.Et=Z;this.Et.get().addListener(this)}; l1=function(n){n.N=null;n.uN.clear();n.X&&n.X.stop();n.S&&n.S.stop();var Z;(Z=n.T)==null||Z.stop();delete n.T}; t0Y=function(n,Z){if(!isNaN(n.SG)){var F=Date.now()-n.SG;F<1E4&&n.Xp("bfaswtch",{ep:F,sk:Z!==void 0?"1":"0",sr:Z||""})}}; sS=function(n,Z){if(n.simpleText){a:{n=n.simpleText;if(Z&&(Z=kUP(n))){Z=vG("SPAN",null,Z);break a}Z=g.m3(n)}return Z}var F=[];if(n.runs)for(var y=0;y0&&n.mediaElement.Ou()>0&&(n.X=oA(n,n.X,!1)),Z=n.j("html5_pseudogapless_shorts_seek_to_next_start")&&(Z==null?void 0:Z.seekSource)===60,!n.mediaElement||!iUQ(n,Z))n.SG.start(750);else if(!isNaN(n.X)&&isFinite(n.X)&&(Z=n.r5-(n.X-n.timestampOffset),!(Z===0||Math.abs(Z)<.005)))if(Z=n.mediaElement.getCurrentTime()-n.X,Math.abs(Z)<=n.aY||Math.abs(Z)<.005)avT(n);else{if(n.videoData.tY)n.videoData.tY= !1;else if(!d9(n.videoData)&&n.X>=n.xA()-.1){n.X=n.xA();n.V.resolve(n.xA());n.Y.eG()&&n.mQ.Xp("setEndedInSeek",{tgt:""+n.X,maxst:""+n.xA()});n.mQ.kQ();return}try{var F=n.X-n.timestampOffset;n.mediaElement.seekTo(F);n.Ns.N=F;n.r5=F;n.T=n.X;n.Tx=!1}catch(y){}}}; JE=function(n){return n.tagName=="A"&&n.hasAttribute("href")||n.tagName=="INPUT"||n.tagName=="TEXTAREA"||n.tagName=="SELECT"||n.tagName=="BUTTON"?!n.disabled&&(!n.hasAttribute("tabindex")||K7n(n)):n.hasAttribute("tabindex")&&K7n(n)}; Dp3=function(n){if(!n.stack)return!0;var Z=!n.stack.includes("\n");return Z&&n.stack.includes("ErrorType: ")||Z&&n.stack.includes("Anonymous function (Unknown script")||n.stack.toLowerCase()==="not available"||n.fileName==="user-script"||n.fileName.startsWith("user-script:")?!0:!1}; pEf=function(n,Z,F,y,l,m,a,D,p,L){var q=l-y,w,T=((w=n.fulfilledLayout||o5(n.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:o5(w.clientMetadata,"metadata_type_ssdai_ads_config"))||"",P,J;(w=(P=o5(n.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(J=P.current)==null?void 0:J.identifier)||QA(L,"ads_cpu","slid."+Z.layoutId);if(!q)return a.kq(F,T,2,m,y,l,n.slotId,w),QA(L,"ads_iraot","slid."+Z.layoutId+";enterMs."+y+";exitMs."+l+";vid."+F.video_id),null;q=a.Zh(F,T,2,m, y,l,n.slotId,w);QA(L,"ads_atct","slid."+Z.layoutId+";enterMs."+y+";exitMs."+l+";vid."+F.video_id+";pid."+q+";cid."+w);if(!q)return wU("Unexpected failure to add to playback timeline",n,Z,p()),null;n=n.slotId;Z=Z.layoutId;q?(D.N.has(q)&&wU("Unexpected remap of timeline playback"),D.N.set(q,{slotId:n,layoutId:Z})):wU("Invalid timeline playback ID");y+m>l&&a.t6(q,l-y);return q}; L7P=function(n){return-((n.S.offsetWidth||(n.frameCount-1)*n.C*n.scale)-n.N/2)}; j_o=function(n,Z){return Z?g.YW(n.N,function(F){return F.AF.pY==Z}):null}; qao=function(){}; $4=function(n,Z,F,y,l){Tf.call(this,n,Z,F,y);n=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,l,n,F.layoutId)}; wEj=function(n,Z){Array.isArray(Z)||(Z=[Z]);Z=Z.map(function(F){return typeof F==="string"?F:F.property+" "+F.duration+"s "+F.timing+" "+F.delay+"s"}); g.a$(n,"transition",Z.join(","))}; TL8=function(n,Z){if(!Z)return!1;var F=n.api.HV();if(F.VN()&&(F=F.w1())&&g.Uq(F,Z))return F.controls;for(F=0;FF+1&&Z=a&&U<=q&&m.push(T)}p>0&&(n.Tx.style.height=p+"px");a=n.V[y];q=m;T=l;J=p;U=y===0;U=U===void 0?!1:U;VVp(a,J);w=q;P=a.X;U=U===void 0?!1:U;var h=1E3/w.length,v=[];v.push({x:0,y:100});for(var V=0;V0&&(F=m[m.length-1])}g.CV(n);D=[];Z=g.Y(Z.heatMarkersDecorations||[]);for(l=Z.next();!l.done;l=Z.next())if(l=g.e(l.value,Ivp))p=l.label,y=F=L=void 0,D.push({visibleTimeRangeStartMillis:(L=l.visibleTimeRangeStartMillis)!=null?L:-1,visibleTimeRangeEndMillis:(F=l.visibleTimeRangeEndMillis)!=null?F:-1,decorationTimeMillis:(y=l.decorationTimeMillis)!=null?y:NaN,label:p?g.sg(p):""});n.heatMarkersDecorations=D}}; fvP=function(n){if(!n)throw Error("Fetching Attestation challenge returned falsy");if(!n.challenge)throw Error("Missing Attestation challenge");var Z=n.challenge,F=iJ(Z);if("c1a"in F&&(!n.bgChallenge||!n.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},n,{NJG:Z,XmR:F})}; xp8=function(n,Z){if(!A2K(n,Z)&&!n.X)return!1;Z.details.sts="20394";if(W7o(n))return W0(Z.severity)&&(Z=Object.assign({e:Z.errorCode},Z.details),Z=new g.Xv("qoe.restart",Z)),n.FI(Z.errorCode,Z.details),r27(n),!0;(0,g.tP)()-n.iY.HE>6048E5&&Ex(n,"signature");return!1}; ZC8=function(n,Z){Sf(n,1,Z.audioCodec);Sf(n,2,Z.numChannels);Sf(n,3,Z.maxBitrateBps);Sf(n,6,Z.spatialCapabilityBitmask)}; Hs=function(n){var Z;return b1(n)||Kh((Z=n.T.pB())==null?void 0:Z.info)}; bf=function(n){var Z=XE();zl(Z,n);return g.fG(Z,GRf())}; tE=function(n,Z,F,y){CW.call(this,n,{U:"div",K:"ytp-ad-survey",D:[{U:"div",K:"ytp-ad-survey-questions"}]},"survey",Z,F,y);this.questions=[];this.X=[];this.conditioningRules=[];this.N=0;this.S=this.Vg("ytp-ad-survey-questions");this.api.B().j("fix_survey_color_contrast_on_destop")&&this.Vg("ytp-ad-survey").classList.add("color-contrast-fix");this.api.B().j("web_enable_speedmaster")&&this.Vg("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; RHP=function(n){return PHe()===2?g.I$(n,ky):n}; eu=function(n){if(g.N5("web_lifecycle_error_handling_killswitch"))return n();try{return n()}catch(Z){H57(Z)}}; gHQ=function(n,Z){n.w5||(n.loader?isFinite(n.X)?n.w5=n.loader.seek(n.X-n.timestampOffset,Z):(d9(n.videoData),n.j("html5_unified_live_latency_reporting")&&(n.mQ.Nx=0),n.w5=Hp(n.loader),dz(n.videoData)||(n.X=n.loader.getCurrentTime()+n.timestampOffset)):n.w5=g.Bp(n.X-n.timestampOffset));return n.w5}; FJ=function(n){nC.call(this,function(){return n}); this.T=n}; iCK=function(n){var Z;(Z=n.ym)==null||Z.get().FR(o5(n.slot.clientMetadata,"metadata_type_cue_point").identifier)}; lT=function(n){this.N=n;this.pos=0;this.X=-1}; Mb=function(n){this.AG=UO(n,19)}; n9=function(n,Z,F,y){n.policy.X&&n.pU(!1,"rollback");if(n.eT.isManifestless){var l=$c(n.audioTrack,y,F,Z),m=$c(n.videoTrack,y,F,Z);n.policy.oX||(m&&KK(n.eT,y,!0),l&&KK(n.eT,y,!1));m&&(n.videoTrack.Pr=[]);l&&(n.audioTrack.Pr=[]);n.Xp("sdai",{rollbk2_seg:y,rbt:F.toFixed(3),lt:Z.toFixed(3),a:l,v:m});(l||m)&&n.policy.X&&mx(n)}}; uJK=function(n,Z,F,y){var l=j_o(rT,F);l!==null&&l.B1!==Z&&(n.rT(l),l=null);l||(Z=n.VD(F,$1(),!1,Z),rT.X.length==0&&(B6().T=79463069),CjU([Z]),l=Z,l.V=ge(n),y&&(l.yg=y));return l}; W3T=function(n,Z){var F=Z.params||{};n={urlParams:{a:"logerror",t:"jserror",type:Z.name,msg:Z.message.substr(0,250),line:Z.lineNumber,level:n,"client.name":F.name},postParams:{url:g.BT("PAGE_NAME",window.location.href),file:Z.fileName},method:"POST"};F.version&&(n["client.version"]=F.version);if(n.postParams){Z.stack&&(n.postParams.stack=Z.stack);Z=g.Y(Object.keys(F));for(var y=Z.next();!y.done;y=Z.next())y=y.value,n.postParams["client."+y]=F[y];if(F=g.BT("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Z= g.Y(Object.keys(F)),y=Z.next();!y.done;y=Z.next())y=y.value,n.postParams[y]=F[y];(F=g.BT("LAVA_VERSION"))&&(n.postParams["lava.version"]=F);F=g.BT("SERVER_NAME");Z=g.BT("SERVER_VERSION");F&&Z&&(n.postParams["server.name"]=F,n.postParams["server.version"]=Z)}g.jM(g.BT("ECATCHER_REPORT_HOST","")+"/error_204",n)}; g.W5=function(n,Z){return(Z||document).getElementsByTagName(String(n))}; jR=function(n){return n.classList?n.classList:bCn(n).match(/\S+/g)||[]}; ZB=function(n,Z){n=km(n,Z);if(Z=n.layout!=null)a:switch(n.N){case "rendering":case "rendering_stop_requested":Z=!0;break a;default:Z=!1}return Z}; Z7=function(n,Z,F,y){Z=Z===void 0?0:Z;F=F===void 0?n.length:F;var l=0;for(y&&(l=Z7(y));Zm?{width:Z.width,height:Z.width/l,aspectRatio:l}:ll?n.width=n.height*F:F0&&(this.X=F.tQ)}; Si=function(n,Z,F,y){function l(){return m.X} g.I.call(this);var m=this;n.B().experiments.RY("html5_dispose_of_manager_before_dependency")?(this.N=HCU(l,n,Z,F,y),this.X=(new PD(this.N)).T(),g.S(this,this.X),g.S(this,this.N)):(this.N=HCU(l,n,Z,F,y),g.S(this,this.N),this.X=(new PD(this.N)).T(),g.S(this,this.X))}; Js=function(n){var Z;return((Z=n.autoplaySwitchButtonRenderer)==null?void 0:Z.enabled)!==void 0}; dpe=function(n){return eAT(n.N,function(Z){return Z.info.video?Z.MH():!0})}; g.Yc=function(n){try{var Z=g.QR.Rd(),F=g.QR.qF();Z&&Z.remove(n);F&&F.remove(n)}catch(y){}}; oM=function(n,Z){Z=Z===void 0?200:Z;return n?Z===300?BLT:MVp:Z===300?$2P:nNU}; ZOi=function(n,Z){var F;return(F=Z.onEnter)==null?void 0:F.some(n.S)}; FQ3=function(){this.X=[];this.N=[]}; yKf=function(n){n.uo("removeEventListener",n.X.w6.AFMA_LIDAR,xWn);n.w5=!1}; ZR7=function(n,Z){for(var F,y,l,m=n.window;;){if(n.Md<=258){tY(n);if(n.Md<=258&&Z===0)return 1;if(n.Md===0)break}n.Ys=0;if(n.Md>=3&&n.VP>0&&(y=n.VP-1,F=m[y],F===m[++y]&&F===m[++y]&&F===m[++y])){for(l=n.VP+258;F===m[++y]&&F===m[++y]&&F===m[++y]&&F===m[++y]&&F===m[++y]&&F===m[++y]&&F===m[++y]&&F===m[++y]&&yn.Md&&(n.Ys=n.Md)}n.Ys>=3?(F=XJ(n,1,n.Ys-3),n.Md-=n.Ys,n.VP+=n.Ys,n.Ys=0):(F=XJ(n,0,n.window[n.VP]),n.Md--,n.VP++);if(F&&(zR(n,!1),n.rV.G7===0))return 1}n.z5=0;return Z=== 4?(zR(n,!0),n.rV.G7===0?3:4):n.q$&&(zR(n,!1),n.rV.G7===0)?1:2}; lZP=function(n,Z,F){function y(D,p){(p=F[p])&&(m[D]=a(p))} function l(D,p){(p=F[p])&&(m[D]=p)} if(!F||g.Zc(F))return n;var m=Object.assign({},n),a=Z?encodeURIComponent:function(D){return D}; y("DV_VIEWABILITY","doubleVerifyViewability");y("IAS_VIEWABILITY","integralAdsViewability");y("MOAT_INIT","moatInit");y("MOAT_VIEWABILITY","moatViewability");l("GOOGLE_VIEWABILITY","googleViewability");l("VIEWABILITY","viewability");return m}; hi=function(n){if(n instanceof Jg)return n.N;throw Error("");}; S4=function(n,Z){Z<=n.status.status||(n.status={status:Z,error:null},Z===5&&n.md.resolve())}; sGP=function(n){switch(n){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}}; U2=function(){return["metadata_type_ad_placement_config"]}; m2n=function(){this.N=[]}; Jk=function(n,Z,F,y){wU(F,Z,void 0,void 0,F.zK);F.yd?UY(n.aW,y,F.yd,Z):wU("adsClientErrorMessage is missing.",Z);ND(n,Z,!0)}; aZ7=function(n){return g.BT(j4(n===void 0?0:n))}; U4=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);RS(n,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));RS(n,"setCreatorEndscreenHideButton",this.N.bind(this));this.j("web_fix_annotations")&&this.events.G(n,"annotationvisibility",function(F){Z.setCreatorEndscreenVisibility(!F);Z.hideButton&&g.vW(Z.hideButton,F)})}; KQU=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; D2T=function(n,Z){var F;((F=n.N)==null?void 0:F.id)!==(Z==null?void 0:Z.id)&&(n.N&&(n.X.delete(n.N.id),n.api.Gc([n.N],1)),n.N=Z)}; NY=function(n,Z){if(!n)return NaN;Z=ph(n,Z);return Z>=0?n.end(Z):NaN}; Sm=function(n){this.AG=UO(n)}; Gfo=function(n){this.N=n;n.kB("/client_streamz/bg/wrl",g.l8("mn"),wo("ac"),wo("sc"),g.l8("rk"),g.l8("mk"))}; VR=function(n){hs.call(this,n.callback,n.slot,n.Hm,n.uY,n.TN,n.nR,n.tG,n.tD,n.Cn,n.Z6,n.Ff,n.FZ,n.e4,n.U8,n.mB,n.context);var Z=this;this.adCpn="";this.sY=this.BN=0;this.o5=Ra(function(){Z.Fz.m0(Z.slot,Z.layout)}); this.Py=Ra(function(){Z.A2!=="rendering_stop_requested"&&Z.Ff(Z);Z.layoutExitReason?Z.Fz.nJ(Z.slot,Z.layout,Z.layoutExitReason):pWj(Z)}); this.OG=n.OG;this.gM=n.gM;this.ES=n.ES;this.M1=n.M1;this.tX=n.tX;this.Ff=n.Ff;E4(this.U8.get(),"html5_disable_media_load_timeout")||(this.jd=new g.e7(function(){Z.f$("load_timeout",new JT("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); n=O4(this.U8.get());var F=cD(this.U8.get());n&&F&&(this.UX=new g.e7(function(){var y=o5(Z.layout.clientMetadata,"metadata_type_preload_player_vars");y&&Z.gM.get().W.preloadVideoByPlayerVars(y,2,300)}))}; vD=function(n){var Z;return!((Z=n.playerResponse)==null||!Z.compositePlayabilityStatus)}; lF=function(n,Z,F){IJ.call(this,n);var y=this;this.U8=F;Z.get().addListener(this);this.addOnDisposeCallback(function(){Z.CR()||Z.get().removeListener(y)})}; LQU=function(n){n.X&&n.X.send();if(n.qoe){var Z=n.qoe;if(Z.V){Z.gV==="PL"&&(Z.gV="N");var F=g.kq(Z.provider);g.bM(Z,F,"vps",[Z.gV]);Z.J||(Z.T>=0&&Z.N.set("user_intent",[Z.T.toString()]),Z.J=!0);Z.provider.Y.eG()&&Z.Xp("finalized",{});Z.zx=!0;Z.reportStats(F)}}if(n.provider.videoData.enableServerStitchedDai)for(Z=g.Y(n.T.values()),F=Z.next();!F.done;F=Z.next())f9(F.value);else n.N&&f9(n.N);n.dispose()}; g.As=function(n){g.I.call(this);this.callback=n;this.N=new mK(0,0,.4,0,.2,1,1,1);this.delay=new g.oB(this.next,window,this);g.S(this,this.delay)}; wWe=function(n,Z,F,y,l){Z=qAQ(n,Z);n=WD(n,Z,F);l=l({slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,slotExpirationTriggers:n.slotExpirationTriggers,Gx:n.Gx});return l instanceof C?l:{TA:Object.assign({},n,{clientMetadata:new lb([new mW(l.layout)]),adSlotLoggingData:y}),zU:l.zU}}; ZZ=function(n,Z,F,y){(n=n.N())||wU("Could not initiate a command router instance.");NX(n,Z,F,y)}; var T0o=function(){return hV[K[11]](this,10)}; IJ=function(n){g.I.call(this);this.x$=n;this.uN=new Map}; YPj=function(n){if(!Zg(n.adLayoutMetadata))return!1;if(g.e(n.renderingContent,ku7)||g.e(n.renderingContent,iL))return!0;var Z=g.e(n.renderingContent,gW);return g.e(n.renderingContent,CK)||g.e(Z==null?void 0:Z.sidePanel,oNn)||g.e(Z==null?void 0:Z.sidePanel,tyU)||g.e(Z==null?void 0:Z.sidePanel,Pni)?!0:!1}; rb=function(){this.N=this.X=0}; v6Y=function(n){var Z,F;return g.A(function(y){return y.N==1?g.x(y,Kv(n),2):y.N!=3?(Z=y.X,F=void 0,g.x(y,g.$5(Z,["hotConfigStore"],{mode:"readwrite",Or:!0},function(l){return g.Ly(l.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(m){F=m.getValue()})}),3)):y.return(F)})}; Gv=function(n){return globalThis.TextEncoder?(new TextEncoder).encode(n):g.xc(n)}; RJ=function(n){vk.call(this,n);RS(n,"createClientVe",this.createClientVe.bind(this));RS(n,"createServerVe",this.createServerVe.bind(this));RS(n,"destroyVe",this.destroyVe.bind(this));RS(n,"hasVe",this.hasVe.bind(this));RS(n,"logClick",this.logClick.bind(this));RS(n,"logVisibility",this.logVisibility.bind(this));RS(n,"setTrackingParams",this.setTrackingParams.bind(this))}; is=function(n,Z,F,y,l){n={retry:!0,onSuccess:F,onError:y,networklessOptions:n,dangerousLogToVisitorSession:Z,HUG:!!l,headers:{},postBodyFormat:"",postBody:"",compress:g.N5("compress_gel")||g.N5("compress_gel_lr")};gb()&&(n.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.tP)())));return n}; wOT=function(n,Z,F,y){var l=m$(Z,2)*1E3;if(l<=0)throw new hg(31,"TTM:Invalid");if(Io(Z,4))return new C9(n.logger,Io(Z,4),l);if(!m$(Z,3))return new us(n.logger,xw(bs(Z,1)),l);if(!y)throw new hg(4,"PMD:Undefined");y=y(xw(bs(Z,1)));if(!(y instanceof Function))throw new hg(16,"APF:Failed");n.C=Math.floor((Date.now()+l)/1E3);n=new NG(n.logger,y,m$(Z,3),l);n.addOnDisposeCallback(function(){return void F.resolve()}); return n}; JKe=function(n,Z){Z=Z instanceof hg?Z:new hg(5,"TVD:error",Z);return n.reportError(Z)}; aq=function(n,Z){g.zi(n.S,Z)||(n.S.push(Z),Z.kp(n.N),Z.VJ(n.V),Z.xN()&&(n.Pr=!0))}; QGT=function(n,Z){n=document.querySelector(n);if(!n)return!1;var F="",y=n.nodeName;y==="SCRIPT"?(F=n.src,F||(F=n.getAttribute("data-timing-href"))&&(F=window.location.protocol+F)):y==="LINK"&&(F=n.href);s0(document)&&n.setAttribute("nonce",s0(document));return F?(n=u_.getEntriesByName(F))&&n[0]&&(n=n[0],F=XN(),zv("rsf_"+Z,F+Math.round(n.fetchStart)),zv("rse_"+Z,F+Math.round(n.responseEnd)),n.transferSize!==void 0&&n.transferSize===0)?!0:!1:!1}; YAi=function(n,Z,F,y){return new fM(n.type,n.bY,n.range,"reslice"+n.C,n.O8,n.startTime,n.duration,Z,F,y,n.ph,n.clipId)}; SAi=function(n,Z){if(!n.index.isLoaded()){var F=[],y=Z.V;Z=Z.S.split(",").filter(function(q){return q.length>0}); for(var l=0,m=0,a=0,D=/^(\d+)/,p=/r=(\d+)/,L=0;L-1)return Z.apply(null,g.t(F));try{return n.N=n.T.N.now(),Z.apply(null,g.t(F))}finally{n.V+=n.T.N.now()-n.N,n.N=-1,n.X+=1}}}; cKj=function(n){n&&(n.ZN=void 0,n.T1=!0);return HD(n)}; Nk=function(n,Z){n.N=Z;g.pv("yt.gcf.config.coldConfigGroup",n.N||null)}; jqT=function(n){this.Y=n;this.T=this.X=this.mediaTime=NaN;this.V=this.N=!1;this.S=.001;g.f4(n)&&(this.S=.01)}; Vx3=function(){var n=["metadata_type_action_companion_ad_renderer"];U2().forEach(function(Z){n.push(Z)}); return{Nj:n,ZM:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; vNQ=function(n,Z){var F=n.pos;n.pos=0;if(n.N.getUint8(n.pos)!==160&&!db(n)||!Wy(n,160))return n.pos=F,NaN;ar(n,!0);var y=n.pos;if(!Wy(n,161))return n.pos=F,NaN;ar(n,!0);pG(n);var l=pG(n)<<8|pG(n);n.pos=y;if(!Wy(n,155))return n.pos=F,NaN;y=LG(n);n.pos=F;return(l+y)*Z/1E9}; IZ3=function(n,Z){for(var F=[],y=g.Y(Object.keys(n.N)),l=y.next();!l.done;l=y.next())l=l.value,F.push(l+"_"+n.N[l].type+"_"+n.N[l].status);return F.join(Z)}; fZ3=function(n,Z){Lv(n,Z.Lk(),function(F,y,l){Z.IT(F,y,l)})}; AKK=function(n,Z,F,y,l){var m=[];g$(n,function(a,D){(a=BD(a,Z,F,y,l))&&m.push(D+"="+a)}); return m.join(Z)}; eZQ=function(n,Z){var F=null,y=n.text;Z&&(y=kUP(y)||y);n.bold&&(F=vG("B",null,F||y));n.italics&&(F=vG("I",null,F||y));n.strikethrough&&(F=vG("STRIKE",null,F||y));n.navigationEndpoint&&g.e(n.navigationEndpoint,g.MY)&&(Z=g.e(n.navigationEndpoint,g.MY),F=vG("A",null,F||y),g.Hi(F,Z.url),Z.target=="TARGET_NEW_WINDOW"&&(F.target="_blank"),n=n.navigationEndpoint.loggingUrls)&&(n=n.map(function(l){return l.baseUrl}),WQi().register(F,n),g.gi(F,"ytp-ad-has-logging-urls")); return F||vG("SPAN",null,y)}; YA=function(n){var Z=n.j("html5_enable_sabr_on_drive")&&n.iY.Ns==="gd";if(n.aB)return n.RI&&n.Xp("fds",{fds:!0},!0),!1;if(n.iY.Ns!=="yt"&&!Z)return n.RI&&n.Xp("dsvn",{ns:n.iY.Ns},!0),!1;if(n.cotn||!n.N||n.N.isOtf&&!n.j("html5_enable_sabr_otf_in_client")||n.T&&!n.T.N||n.wE&&!n.j("html5_enable_sabr_csdai"))return!1;if(n.j("html5_use_sabr_requests_for_debugging"))return!0;n.RI&&n.Xp("esfw",{usbc:n.RI,hsu:!!n.r4},!0);if(n.RI&&n.r4)return!0;if(n.j("html5_remove_client_sabr_determination"))return!1;var F= !n.N.t2&&!n.mF();Z=F&&gT&&n.j("html5_enable_sabr_vod_streaming_xhr");F=F&&!gT&&n.j("html5_enable_sabr_vod_non_streaming_xhr");var y=dz(n),l=n.j("html5_enable_sabr_drm_vod_streaming_xhr")&&gT&&n.mF()&&!n.N.t2&&(n.drmProduct==="1"?!1:!0);(Z=Z||F||y||l)&&!n.r4&&n.Xp("sabr",{loc:"m"},!0);return Z&&!!n.r4}; rKK=function(n,Z){return Z.getUserAudio51Preference()?g.I$(n,$f):n}; g.gg=function(n){window.clearInterval(n)}; LL=function(n,Z,F){g.I.call(this);var y=this;this.mQ=n;this.playerRequest=Z;this.zN=F;this.logger=new g.hL("onesie");this.Qw=[];this.xhr=null;this.state=1;this.md=new dZ;this.p8=!1;this.playerResponse="";this.Un=new s4(this);this.Qi=new VM(this);this.Ij="";this.dR=this.EY=!1;this.eb="";this.enableCompression=this.Cj=this.LZ=!1;this.wQ=[];this.N$=-1;this.Fu=0;this.Y=this.mQ.B();this.videoData=this.mQ.getVideoData();this.xR=this.Y.eG();this.jj=this.Y.Hx;this.f7=new w9(this.jj.N);this.jB=this.Y.j("html5_onesie_check_timeout"); this.YB=new g.e7(this.Gz,500,this);this.yH=new g.e7(this.wH,1E4,this);this.X3=new g.e7(function(){if(!y.isComplete()){var l=nr(y);y.fail(new g.Xv("net.timeout",l))}},1E3); this.V4=new g.e7(this.kNg,2E3,this);this.aG=this.mQ.oG();this.kW=this.j("html5_onesie_wait_for_media_availability");g.S(this.videoData,this);g.S(this,this.YB);g.S(this,this.yH);g.S(this,this.V4);n=ZM();gT&&n&&(this.qt=new Map);this.Hk=new Map;this.Ss=new Map;this.Y1=new Map;this.Fj=new Map}; lK=function(n,Z,F,y){Fd.call(this,n,Z,F,y);var l=this;this.S=null;this.vx={m8:function(m,a,D,p){return l.m8(m,a,D,p)}}; this.index=new g.yG}; Bk=function(n,Z,F,y){this.top=n;this.right=Z;this.bottom=F;this.left=y}; x28=function(n){return sm()&&mm(n)?!1:aP(n)&&(g.d5(n.iY)?!n.isLivePlayback:n.hlsvp)||!ZM()||n.Sk?!0:!1}; Rz8=function(n){if(n.isExternallyHostedPodcast&&n.BC){var Z=Kr(n.BC);if(!Z[0])return RM();n.dH=Z[0];return GS8(n.iY,Z[0]).then(function(F){DM(n,F)})}return n.Mt&&n.MY?Dnj(n.iY,n.isAd(),n.Mt).then(function(F){DM(n,F)}):RM()}; iOi=function(){var n={};var Z=n.jHG===void 0?!1:n.jHG;n=n.ge===void 0?!0:n.ge;if(g.Di("_lact",window)==null){var F=parseInt(g.BT("LACT"),10);F=isFinite(F)?Date.now()-Math.max(F,0):-1;g.pv("_lact",F,window);g.pv("_fact",F,window);F==-1&&uy();gNK(Z,n);new pr(function(){by("mouse",100)})}}; Cnn=function(n){Lr=n}; q3=function(n,Z,F,y,l,m,a){g.I.call(this);this.callback=n;this.gM=Z;this.tG=F;this.tD=y;this.X0=l;this.wM=m;this.U8=a;this.dJ=!0;this.EQ=!1}; neY=function(n,Z,F){n=new wE(n.N);n.update(Z);n.update(F);Z=u2T(n);n.update(n.S);n.update(Z);Z=u2T(n);n.reset();return Z}; TW=function(n,Z){return N6(n,n.state&~Z,null,null)}; oP=function(n,Z){Z=Z===void 0?"0":Z;g.I.call(this);this.logSource=n;this.sessionIndex=Z;this.M_="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.T=!1;this.network=null;this.componentId="";this.N=this.w4=null;this.X=!1;this.pageId=null}; zzP=function(n,Z){if(n.endpoint==="log_event"){g.N5("more_accurate_gel_parser")&&Sk().storePayload({isJspb:!1},n.payload);P7(n);var F=o8(n),y=new Map;y.set(F,[n.payload]);var l=bOf(n.payload)||"";Z&&(JX=new Z);return new g.O2(function(m,a){JX&&JX.isReady()?XWe(y,JX,m,a,{bypassNetworkless:!0},!0,Jp(l)):m()})}}; QG=function(n,Z,F,y){if(y===void 0)return y=Object.assign({},n[Z]||{}),F=(delete y[F],y),y={},Object.assign({},n,(y[Z]=F,y));var l={},m={};return Object.assign({},n,(m[Z]=Object.assign({},n[Z],(l[F]=y,l)),m))}; OA=function(n){n=n===void 0?G5:n;wi.call(this,new R_(n,2))}; zQY=function(n){var Z={};n=n.experiments.YI();var F=n.N.Wx(txe);GX(F)&&Number(F)>0&&(Z.SetPreferMinimalPostProcessing=Yf("SetPreferMinimalPostProcessing",Number(F)===1?1:0));(F=n.N.Wx(kSe))&&(Z["MediaSource.EnableUsingMediaSourceBufferedRange"]=Yf("MediaSource.EnableUsingMediaSourceBufferedRange",F===1?1:0));(F=n.N.Wx(ez8))&&(Z.HTTP3=Yf("HTTP3",F===1?1:0));(F=n.N.Wx(HOK))&&(Z["MediaSource.EnableUsingMediaSourceAttachmentMethods"]=Yf("MediaSource.EnableUsingMediaSourceAttachmentMethods",F===1?1:0)); (F=n.N.Wx(d2p))&&(Z.QUIC=Yf("QUIC",F===1?1:0));(F=n.N.Wx(B0e))&&(Z["Media.PlayerConfiguration.DecodeToTexturePreferred"]=Yf("Media.PlayerConfiguration.DecodeToTexturePreferred",F===1?1:0));(n=n.N.Wx(MxY))&&(Z["Media.AudioWriteDurationLocal"]=Yf("Media.AudioWriteDurationLocal",Number(n)));return Z}; j4=function(n){n=n===void 0?0:n;return n===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+n}; $c7=function(n){KV(n.S,n.element,["keymessage","webkitkeymessage"],n.yj);KV(n.S,n.element,["keyerror","webkitkeyerror"],n.f2);KV(n.S,n.element,["keyadded","webkitkeyadded"],n.n2)}; EP=function(n){this.C=n}; ZDj=function(n){if(!n.element)return!1;var Z=n.element,F=n.X.N.T,y=B6().N.N;n.V=new F.IntersectionObserver(BW(y,function(l){return G$(n,l)}),nwK); y=BW(y,function(){n.V.unobserve(Z);n.V.observe(Z);G$(n,SL(n))}); F.ResizeObserver?(n.L=new F.ResizeObserver(y),n.L.observe(Z)):F.MutationObserver&&(n.J=new g.KQ.MutationObserver(y),n.J.observe(Z,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));n.V.observe(Z);G$(n,SL(n));return!0}; g.Rc=function(n,Z,F){var y=nt();return new g.CE("IDB_NOT_SUPPORTED",{context:{caller:n,publicName:Z,version:F,hasSucceededOnce:y==null?void 0:y.hasSucceededOnce}})}; Vm=function(){}; Fyp=function(n,Z,F,y,l){y.iz?jL(n,4,"cue"):(n.C=Z,n.J=F,n.Xp("sdai",{joinad:n.X,sg:n.C,st:n.J.toFixed(3)}),n.Pr=Date.now(),jL(n,2,n.X===3?"staftpred":"join"),l.aQ(y.q1))}; g.y_K=function(n){var Z;n.responseType&&n.responseType!=="text"?n.responseType==="arraybuffer"&&(Z=m9(new Uint8Array(n.response))):Z=n.responseText;return!Z||Z.length>2048?"":Z.indexOf("https://")===0?Z:""}; Um=function(n){return n.j("web_settings_menu_surface_custom_playback")}; lcK=function(n,Z,F){var y,l=-1,m=Z[1],a=0,D=7,p=4;m===0&&(D=138,p=3);Z[(F+1)*2+1]=65535;for(y=0;y<=F;y++){var L=m;m=Z[(y+1)*2+1];++a127;)Z.push(F&127|128),F>>>=7,n.X++;Z.push(F);n.X++}; wJ=function(n,Z,F,y,l){ex.call(this,n,Z,F,y,"survey-question-single-select",function(a){m.api.B().j("supports_multi_step_on_desktop")&&l([a])}); var m=this;this.hide()}; g.Em=function(n,Z,F,y,l){l=l===void 0?!1:l;F&&Bi(n,F);F=g.Aw(n);var m=g.t6(F);n!=m&&Un(Error("Unsafe window.open URL: "+n));n=m;Z=Z||N3(n).toString(36);try{if(l)return l=n,l=mcK(l),Gd(l),g.SP(window,l,Z,"attributionsrc")}catch(a){g.hp(a)}Gd(n);return g.SP(window,F,Z,y)}; n6p=function(){var n=["metadata_type_ad_action_interstitial_renderer"];U2().forEach(function(Z){n.push(Z)}); return{Nj:n,ZM:["LAYOUT_TYPE_ENDCAP"]}}; Om=function(n,Z,F){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(F===void 0?0:F)&&Symbol.for&&n?Symbol.for(n):n!=null?Symbol(n):Symbol():Z}; BV=function(n,Z){return Z?"&"+n+"="+encodeURIComponent(Z):""}; acf=function(n){var Z=g.q$("html5-video-player");Z&&g.w4(Z,"ytp-ad-display-override",n)}; g.c7=function(n){if(g.BT("DATASYNC_ID")!==void 0)return g.BT("DATASYNC_ID");throw new g.FV("Datasync ID not set",n===void 0?"unknown":n);}; KyK=function(n){var Z=null;n.N!=null&&(Z=[n.N.serviceEndpoint,n.N.navigationEndpoint].filter(function(F){return F!=null}),n.N.command&&(Z=Z.concat(n.N.command))); return Z||[]}; g.x4=function(n){n=n===void 0?{}:n;g.xu.call(this);var Z=this;this.N=this.V=0;this.X=Kxo();var F=g.Di("yt.networkStatusManager.instance.listen").bind(this.X);F&&(n.rateLimit?(this.rateLimit=n.rateLimit,F("networkstatus-online",function(){Dci(Z,"publicytnetworkstatus-online")}),F("networkstatus-offline",function(){Dci(Z,"publicytnetworkstatus-offline")})):(F("networkstatus-online",function(){Z.dispatchEvent("publicytnetworkstatus-online")}),F("networkstatus-offline",function(){Z.dispatchEvent("publicytnetworkstatus-offline")})))}; VG=function(n){return{itag:ut(n,1),lmt:ut(n,2),xtags:XM(n,3)}}; pXK=function(n,Z,F,y,l){this.FJ=n;this.uY=Z;this.wM=F;this.N=y;this.TN=l}; Il=function(n){this.value=n}; wXj=function(n,Z){if(Z=Z.playerControlsOverlayRenderer)k28(n,Z.controlBgHtml),Z.mutedAutoplay?(Z=g.e(Z.mutedAutoplay,LyP))&&Z.endScreen&&(Z=g.e(Z.endScreen,qg8))&&Z.text&&(n.ij=g.sg(Z.text)):n.mutedAutoplay=!1}; TDi=function(n,Z,F){var y,l=-1,m=Z[1],a=0,D=7,p=4;m===0&&(D=138,p=3);for(y=0;y<=F;y++){var L=m;m=Z[(y+1)*2+1];if(!(++a0||n.Z8.clientWidth>0?(m=Z.clientWidth/F,n=-1*n.mC.clientWidth/F):(m/=F,n=-1*n.N[l].element.offsetLeft/F),g.a$(Z,"background-size",m+"px"),g.a$(Z,"background-position-x",n+"px"))}; h9U=function(n,Z,F){var y=[],l=Z?156595:151874;n=g.Y(n);for(var m=n.next();!m.done;m=n.next()){var a=m.value;m=a.video;a={formatId:a.id,qualityLabel:m.qualityLabel,quality:m.quality,isPlayable:Z};if(m=F.get(m.qualityLabel))a.paygatedQualityDetails={paygatedIndicatorText:m.paygatedIndicatorText,endpoint:m.endpoint,veType:l,trackingParams:m.trackingParams};y.push(a)}return y}; g.nL=function(n){n&&(typeof n=="string"&&(n=[n]),g.I5(n,function(Z){if(Z in $3){var F=$3[Z],y=F[0],l=F[1],m=F[3];F=F[4];y.removeEventListener?Ew3()||typeof F==="boolean"?y.removeEventListener(l,m,F):y.removeEventListener(l,m,!!F.capture):y.detachEvent&&y.detachEvent("on"+l,m);delete $3[Z]}}))}; c_T=function(n){var Z=n.mQ.Dp()||{};Z.fs=n.mQ.sZ();Z.volume=n.mQ.getVolume();Z.muted=n.mQ.isMuted()?1:0;Z.mos=Z.muted;Z.clipid=n.mQ.Ph();var F;Z.playerheight=((F=n.mQ.getPlayerSize())==null?void 0:F.height)||0;var y;Z.playerwidth=((y=n.mQ.getPlayerSize())==null?void 0:y.width)||0;n=n.videoData;F={};n.X&&(F.fmt=n.X.itag,n.V&&(n.yg?n.V.itag!==n.X.itag:n.V.itag!=n.X.itag)&&(F.afmt=n.V.itag));F.ei=n.eventId;F.list=n.playlistId;F.cpn=n.clientPlaybackNonce;n.videoId&&(F.v=n.videoId);n.s5&&(F.infringe=1); (n.h2?0:n.N1)&&(F.splay=1);(y=Ap(n))&&(F.live=y);n.Bt&&(F.sautoplay=1);n.yU&&(F.autoplay=1);n.MA&&(F.sdetail=n.MA);n.partnerId&&(F.partnerid=n.partnerId);n.osid&&(F.osid=n.osid);n.Jy&&(F.cc=g.OD7(n.Jy));return Object.assign(Z,F)}; g.Zc=function(n){for(var Z in n)return!1;return!0}; $JP=function(){return{Nj:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],ZM:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; VPo=function(){var n=ns;this.N=Y2Y;this.isRepeated=0;this.X=vU;this.defaultValue=void 0;this.T=n.messageId!=null?Vs:void 0}; g.xf=function(n){g.I.call(this);var Z=this;this.provider=n;this.logger=new g.hL("qoe");this.N=new Map;this.sequenceNumber=1;this.Tx=NaN;this.gV="N";this.L=this.pz=this.GY=this.Ns=this.X=0;this.Hx=this.jT=this.C=this.aY="";this.h2=this.r5=NaN;this.PV=0;this.ud=-1;this.N1=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.mJ=this.isEmbargoed=this.zx=this.isOffline=this.isBuffering=!1;this.Z8=[];this.Pr=null;this.Yi=this.V=this.d5=this.Wr=this.J=!1;this.T=-1;this.yg=!1;this.cV=new g.e7(this.wrQ,750,this); this.Sy=this.adCpn="";this.adFormat=void 0;this.oX=0;this.hG=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.mC=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.IW=!1;this.Bx=NaN;this.lY=0;this.SG=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.kV=!1;this.R0=new Set;this.vx={XN:function(m){Z.XN(m)}, iYr:function(){return Z.S}, reportStats:function(){Z.reportStats()}, Zf8:function(){return Z.N.get("cat")||[]}, oQ:function(m){return Z.N.get(m)||[]}, pMY:function(){return Z.N}, JYx:function(){return{adCpn:Z.adCpn,Sy:Z.Sy,adFormat:Z.adFormat}}}; this.w5=this.provider.Y.j("html5_qoe_relaxed_reporting");var F=g.jf(this.provider.Y.experiments,"html5_qoe_proto_mock_length");F&&!C5.length&&(C5=vwj(F));g.S(this,this.cV);try{var y,l;(l=(y=navigator).getBattery)==null||l.call(y).then(function(m){Z.Pr=m})}catch(m){}g.bM(this,0,"vps",["N"]); n.Y.eG()&&(this.lY=(0,g.tP)(),this.Bx=g.Cb(function(){var m=(0,g.tP)(),a=m-Z.lY;a>500&&Z.Xp("vmlock",{diff:a.toFixed()});Z.lY=m},250)); this.provider.videoData.DI&&(this.remoteControlMode=IcP[this.provider.videoData.DI]||0);this.provider.videoData.a6&&(F=fcQ(this.provider.videoData.a6),F==null?0:F.length)&&(this.remoteConnectedDevices=F);n.Y.eG()&&(this.xi=new W7,g.S(this,this.xi));oUe(n.Y)&&(this.fR=new rE,g.S(this,this.fR))}; A_K=function(n,Z){n.N=Z;n.element.classList.toggle(GW.NOTIFICATIONS_ENABLED,n.N);var F=n.api.getVideoData();F?(Z=Z?F.qa:F.Di)?(n=n.api.ZE())?C_(n,Z):g.ZW(Error("No innertube service available when updating notification preferences.")):g.ZW(Error("No update preferences command available.")):g.ZW(Error("No video data when updating notification preferences."))}; g.RH=function(n,Z){for(var F,y,l=1;lp;if(En(n)){var L=z9p(n);var q=isNaN(L)||g.yd||vE&&g.x5||p;Zq&&!g.SG(601)?L=l.aspectRatio:q=q||m.controlsType==="3";q?p?(q=m.j("place_shrunken_video_on_left_of_player")?16:n.getPlayerSize().width-Z.width-16,L=Math.max((n.getPlayerSize().height-Z.height)/2,0),q=new g.c1(q,L,Z.width, Z.height),n.d1.style.setProperty("border-radius","12px")):q=new g.c1(0,0,Z.width,Z.height):(F=l.aspectRatio/L,q=new g.c1((Z.width-l.width/F)/2,(Z.height-l.height)/2,l.width/F,l.height),F===1&&g.x5&&(L=q.width-Z.height*L,L>0&&(q.width+=L,q.height+=L)));g.w4(n.element,"ytp-fit-cover-video",Math.max(q.width-l.width,q.height-l.height)<1);if(D||n.JJ)n.d1.style.display="";n.vL=!0}else{q=-Z.height;Zq?q*=window.devicePixelRatio:g.zW&&(q-=window.screen.height);q=new g.c1(0,q,Z.width,Z.height);if(D||n.JJ)n.d1.style.display= "none";n.vL=!1}tp(n.eF,q)||(n.eF=q,g.Uo(m)?(n.d1.style.setProperty("width",q.width+"px","important"),n.d1.style.setProperty("height",q.height+"px","important")):g.Zj(n.d1,q.getSize()),y=new g.e_(q.left,q.top),g.kf(n.d1,Math.round(y.x),Math.round(y.y)),y=!0);Z=new g.c1((Z.width-l.width)/2,(Z.height-l.height)/2,l.width,l.height);tp(n.yS,Z)||(n.yS=Z,y=!0);g.a$(n.d1,"transform",F===1?"":"scaleX("+F+")");a&&p!==n.CM&&(p&&(n.d1.addEventListener(w$,n.PJ),n.d1.addEventListener("transitioncancel",n.PJ),n.d1.classList.add(g.qm.VIDEO_CONTAINER_TRANSITIONING)), n.CM=p,n.app.JG.publish("playerUnderlayVisibilityChange",n.CM?"transitioning":"hidden"));return y}; eL=function(n){vk.call(this,n);var Z=this;this.T=1;this.bN=null;this.vx={Czr:function(){return Z.T}}; this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"d6de4videobindingchange",function(F){Z.Wq(F)}); this.events.G(n,"csiinitialized",function(){kdo(Z)})}; X6=function(){return g.tv("(ps3; leanback shell)")||g.tv("ps3")&&g.N9()}; H7=function(n){return typeof n==="object"&&!Array.isArray(n)}; XE=function(){dE||(dE=new B7);return dE}; HDp=function(n){return function(){var Z=new e9Q;Mti(this.AG,Z,LU(q7,wc,TM,n));Sd(Z,Z.N.end());for(var F=new Uint8Array(Z.X),y=Z.T,l=y.length,m=0,a=0;a'.charCodeAt(y);n=n.T.createSession("video/mp4",Z,F);return new M3(null,null,null,null,n)}; MP8=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"applicationvideodatachange",function(F,y){y=y.clipConfig;F==="dataloaded"&&y&&y.startTimeMs!=null&&y.endTimeMs!=null&&Z.api.setLoopRange({startTimeMs:Math.floor(Number(y.startTimeMs)),endTimeMs:Math.floor(Number(y.endTimeMs)),postId:y.postId,type:"clips"})})}; Os=function(n){n.N===0&&n.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var Z=n.N-n.C,F=Z;n.N!==0&&(F=g.mk(Z,-.01,.01));n.C+=F;n.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+n.C.toString());n.C!==n.N&&Os(n)})}; pr=function(n){this.J=n;this.N=null;this.V=0;this.C=null;this.S=0;this.X=[];for(n=0;n<4;n++)this.X.push(0);this.T=0;this.Tx=g.my(window,"mousemove",(0,g.GP)(this.Pr,this));this.L=g.Cb((0,g.GP)(this.Ns,this),25)}; $eo=function(){G5&&typeof G5.google_measure_js_timing!="undefined"&&(G5.google_measure_js_timing||AE.disable())}; FzK=function(n,Z){var F;return g.A(function(y){(0,g.tP)();var l=n.N;l.S||(l.S=new nKn(l.T));F=l.S;return y.return(ZaK(F,Z,n.iv))})}; y0p=function(n){for(var Z in n)return n[Z]}; Bg=function(n){this.AG=UO(n)}; C$=function(n){var Z=n.data.getUint16(n.offset+n.N);n.N+=2;return Z}; meo=function(n,Z){n.bN.tick("vta");hm("vta",void 0,"video_to_ad");n.getCurrentTime()>0&&l0p(n.WV,n.getCurrentTime());n.mediaElement.activate(Z);n.KR&&LF(4);!n.videoData.L&&n.playerState.isOrWillBePlaying()&&n.Jj.start();if(sCp(n)){var F;if(Z=(F=n.mediaElement)==null?void 0:F.audioTracks())Z.onchange=function(){n.publish("internalaudioformatchange",n.videoData,!0)}}}; n8=function(n,Z,F){if(!(n-4>>3)){var y=Z[K[1]](K[33]),l=0;y[0]||l++;for(var m={};l>1&7)==1&&F[K[3]](Z);(n-5^12)=n&&(Z=(Z%F[K[20]]+F[K[20]])%F[K[20]],y=F[0],F[0]=F[Z],F[Z]=y,a=[Z]);(n|16)==n&&(NW(58,Z),y=decodeURIComponent(Z[K[22]](K[47])||K[12])[K[1]](K[28]),a=Z[K[9]]===K[53]&&y[K[20]]>1&&!!y[1]);return a}; wo=function(n){return{fieldType:2,fieldName:n}}; a08=function(n,Z){for(var F=0;F+1y}; Ng=function(n){return h6(n)==="TVHTML5"}; MA=function(n,Z,F,y,l,m,a){g.I.call(this);this.X=n;this.N=Z;this.T=F;this.V=y;this.nR=l;this.tG=m;this.tD=a}; Kzf=function(n){if(n.T)if(n.V==="AD_PLACEMENT_KIND_START"&&n.actionType==="video_to_ad")vl("video_to_ad");else{var Z={adBreakType:ev(n.V),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:n.videoStreamType};n.actionType==="ad_to_video"?(n.contentCpn&&(Z.targetCpn=n.contentCpn),n.videoId&&(Z.targetVideoId=n.videoId)):(n.adCpn&&(Z.targetCpn=n.adCpn),n.adVideoId&&(Z.targetVideoId=n.adVideoId));n.adFormat&&(Z.adType=n.adFormat);n.contentCpn&& (Z.clientPlaybackNonce=n.contentCpn);n.videoId&&(Z.videoId=n.videoId);n.adCpn&&(Z.adClientPlaybackNonce=n.adCpn);n.adVideoId&&(Z.adVideoId=n.adVideoId);g.HS(Z,n.actionType);n.W.B().experiments.RY("html5_ads_csi_qoes")&&(Z=n.W.Zd(n.actionType==="ad_to_video"?1:2),Z=(0,g.tP)()-1E3*Z,dL("qoes",Z,n.actionType))}}; s$U=function(n,Z,F,y,l,m){if(!Z)throw Error("Invalid event type");var a=g.VO(l)?!!l.capture:!!l,D=ZD(n);D||(n[FY]=D=new yy(n));F=D.add(Z,F,y,a,m);if(F.proxy)return F;y=oAQ();F.proxy=y;y.src=n;y.listener=F;if(n.addEventListener)De3||(l=a),l===void 0&&(l=!1),n.addEventListener(Z.toString(),y,l);else if(n.attachEvent)n.attachEvent(pbj(Z.toString()),y);else if(n.addListener&&n.removeListener)n.addListener(y);else throw Error("addEventListener and attachEvent are unavailable.");Lzn++;return F}; qoU=function(n){for(var Z=g.Y(n.X.values()),F=Z.next();!F.done;F=Z.next())n.playback.removeCueRange(F.value);n.X.clear();n.Tx.clearAll()}; g.jM=function(n,Z){var F=Z.format||"JSON";n=fIQ(n,Z);var y=wbY(n,Z),l=!1,m=TIp(n,function(p){if(!l){l=!0;D&&g.l0(D);var L=g.$V(p),q=null,w=400<=p.status&&p.status<500,T=500<=p.status&&p.status<600;if(L||w||T)q=a2U(n,F,p,Z.convertToSafeHtml);L&&(L=oKn(F,p,q));q=q||{};w=Z.context||g.KQ;L?Z.onSuccess&&Z.onSuccess.call(w,p,q):Z.onError&&Z.onError.call(w,p,q);Z.onFinish&&Z.onFinish.call(w,p,q)}},Z.method,y,Z.headers,Z.responseType,Z.withCredentials,!1,Z.onProgress); y=Z.timeout||0;if(Z.onTimeout&&y>0){var a=Z.onTimeout;var D=g.A3(function(){l||(l=!0,m.abort(),g.l0(D),a.call(Z.context||g.KQ,m))},y)}return m}; J0f=function(n,Z){g.s6(Z,function(l){return l.depth>=0}); var F=zL(Z,function(l,m){return Math.max(l,m.depth)},-1),y=PrP(F+2); y[0]=n;g.I5(Z,function(l){return y[l.depth+1]=l.N}); return y}; kH=function(){var n=g.z5("yt-player-proxima-pref");return n==null?null:n}; SoY=function(n){var Z=QCn(n.V,n.mediaElement);Z?Z.then(mz(function(){Yof(n)}),mz(function(F){if(!n.CR()){g.ZW(F); var y="t.a";F instanceof DOMException&&(y+=";n."+F.name+";m."+F.message);n.publish("licenseerror","drm.unavailable",1,y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(n.Xe({mdkrdy:1}),n.Pr=!0); n.Ns&&(Z=QCn(n.Ns,n.mediaElement))}; yx=function(n,Z,F){this.triggeringSlotId=Z;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=F||n(this.triggerType)}; Uee=function(n,Z,F,y,l,m,a){Z=jCp(Z,m,Number(y.prefetchMilliseconds)||0,a);n=Z instanceof C?Z:mg(n,y,l,Z,F);return n instanceof C?n:[n]}; NIe=function(n,Z){var F;return function(){F||(F=new wC(n,Z));return F}}; J28=function(n,Z){if(Z>=0)Ea(n,Z);else{for(var F=0;F<9;F++)n.N.push(Z&127|128),Z>>=7;n.N.push(1)}}; p0=function(){g.aR.call(this);this.S=new Map}; EKf=function(){hPe=K8=DD=p8=null}; H5=function(n,Z,F){n=za(n,Z,F);return Array.isArray(n)?n:dQ}; L8=function(n,Z){for(;n.N=n.data.length)return n.error=!0,0;n.register|=n.data[n.X++]<>=Z;n.N-=Z;return F}; c03=function(n){return OaQ.then(n)}; qN=function(n){return{enterMs:o5(n.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:o5(n.clientMetadata,"metadata_type_layout_exit_ms")}}; Vi3=function(n){switch(n){case "OPEN_IN_NEW":return WE();case "NOT_INTERESTED":return{U:"svg",Z:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return wP();default:return WE()}}; jZ=function(n){this.X=n=n===void 0?vK3:n;this.N=g.Yn(this.X,function(){return new RG})}; A0e=function(n,Z){Id(n,{createkeysession:1});n.status="gr";fZ("drm_gk_s",void 0,n.videoData.Pr);n.url=I0o(n);try{n.T=Z.createSession(n.L,function(F){Id(n,{m:F})})}catch(F){Z="t.g"; F instanceof DOMException&&(Z+=";c."+F.code);n.publish("licenseerror","drm.unavailable",1,Z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}n.T&&(f0j(n.T,function(F,y){Agf(n,F,y)},function(F,y,l){if(!n.CR()){y=void 0; var m=1;g.AB(n.X)&&g.Uo(n.Y)&&n.Y.j("html5_enable_safari_fairplay")&&l===1212433232&&(y="ERROR_HDCP",m=n.Y.j("html5_safari_fairplay_ignore_hdcp")?0:m);n.error("drm.keyerror",m,F,y)}},function(){n.CR()||(Id(n,{onkyadd:1}),n.Tx||(n.publish("sessionready"),n.Tx=!0))},function(F){n.gF(F)}),g.S(n,n.T))}; xeK=function(n,Z,F,y,l,m,a,D,p,L){if((L==null?void 0:L.nU)===void 0||(L==null?void 0:L.KU)===void 0)return new C("Cached ad break range from cue point is missing");var q=aG(F,l,y.bU);if(q instanceof C)return q;q={layoutExitMuteTriggers:[],layoutExitNormalTriggers:q.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.e(F.renderingContent,n7))return n=Wz3(n,Z,F,q,l,m,a,y.bU,L.nU,L.KU),n instanceof C?n:n.ly===void 0?new C("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:n.layout,zU:[n.ly]};var w=g.e(F.renderingContent,cX);if(w){if(!Zg(F.adLayoutMetadata))return new C("Invalid ad layout metadata");if(!VH(w))return new C("Invalid sequential layout");w=w.sequentialLayouts.map(function(T){return T.playerBytesAdLayoutRenderer}); n=r0U(n,Z,F,q,w,l,y,m,a,D,L.nU,L.KU,p);return n instanceof C?n:{layout:n.wl,zU:n.zU}}return new C("Not able to convert a sequential layout")}; lXK=function(n){return n?(n=n.privateDoNotAccessOrElseSafeScriptWrappedValue)?Ggj(n):null:null}; RPP=function(n){switch(n.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}}; Df=function(){this.X=null;this.N=!1}; gKQ=function(n,Z,F){typeof n==="string"&&(n={mediaContentUrl:n,startSeconds:Z,suggestedQuality:F});a:{if((Z=n.mediaContentUrl)&&(Z=/\/([ve]|embed)\/([^#?]+)/.exec(Z))&&Z[2]){Z=Z[2];break a}Z=null}n.videoId=Z;return Tw(n)}; IC=function(n,Z){n.XX[n.pending++]=Z&255;n.XX[n.pending++]=Z>>>8&255}; Cr3=function(n,Z,F,y,l,m,a,D){n=iaK(n,F,m,a,y,function(p,L){var q=p.slotId;p=D(p);var w=l.contentSupportedRenderer;w?w.textOverlayAdContentRenderer?(w=$e(Z.X.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",q),L=oR(Z,w,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",l,F,p,PR(Z,L,q))):w.enhancedTextOverlayAdContentRenderer?(w=$e(Z.X.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",q),L=oR(Z,w,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",l,F,p,PR(Z,L,q))):w.imageOverlayAdContentRenderer?(w=$e(Z.X.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", q),L=PR(Z,L,q),L.push(new br(Z.N,45E3,w)),L=oR(Z,w,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",l,F,p,L)):L=new JT("InvideoOverlayAdRenderer without appropriate sub renderer"):L=new JT("InvideoOverlayAdRenderer without contentSupportedRenderer");return L}); return n instanceof C?n:[n]}; z2=function(n,Z){Zh||kt in n||uSQ(n,baY);n[kt]|=Z}; Xbp=function(){pb.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; J8=function(n){if(n.W.B().KP)return n.XY.get("offline")}; Yd=function(n){if(n.T)if(g.hw(n.api.getRootNode(),"ytp-grid-scrolling"),n.api.getPresentingPlayerType()===2||n.api.PE()||n.api.isMinimized())ci(n,0);else{var Z=g.b(n.api.getPlayerStateObject(),2);if(Z)ci(n,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(n.isEnded&&!Z){var F=Qy(n)?1:0;n.isEnded=Z;ci(n,F)}else Qy(n)?n.X!==2&&ci(n,1):ci(n,0);n.isEnded=Z}}; g.SC=function(){}; Ta=function(n,Z){g.R.call(this,{U:"button",s8:["ytp-fullscreen-button","ytp-button"],Z:{title:n.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},E8:"{{icon}}"});this.W=n;this.X=Z;this.message=null;this.N=g.l9(this.X.aX(),this.element);this.T=new g.e7(this.yw,2E3,this);g.S(this,this.T);this.G(n,"fullscreentoggled",this.XD); this.G(n,"presentingplayerstatechange",this.g5);this.G(n,"resize",this.g5);this.listen("click",this.onClick);g.nR()&&(Z=this.W.Br(),this.G(Z,Mfn(),this.YJ),this.G(Z,qOn(document),this.Aj));n.B().d5||n.B().J||this.disable();n.createClientVe(this.element,this,139117);this.g5();this.XD(n.isFullscreen())}; tiY=function(n,Z){var F,y=(F=o5(n.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:F.current;if(!y)return null;F=a68(n,Z);return{Tz:zPo(n,Z),adPlacementConfig:o5(n.clientMetadata,"metadata_type_ad_placement_config"),wX:F,contentCpn:o5(n.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:o5(n.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:o5(n.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:o5(n.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,sE:void 0,RV:y,TB:n.layoutId,videoLengthSeconds:o5(n.clientMetadata,"metadata_type_video_length_seconds")}}; g.so=function(n,Z,F,y,l,m){function a(p,L,q){return p.Mc(function(w){if(L<=0||M5(w.xhr)===403)return cc(new SS("Request retried too many times","net.retryexhausted",w.xhr,w));var T=Math.pow(2,F-L+1)*q,P=l>0?Math.min(l,T):T;return D(q).then(function(){m&&m(w,L-1);return a(l4(n,Z),L-1,P)})})} function D(p){return new g.O2(function(L){setTimeout(L,p)})} l=l===void 0?-1:l;return a(l4(n,Z),F-1,y)}; jC=function(n){var Z=n.W.getRootNode();return n.W.j("web_watch_pip")||n.W.j("web_shorts_pip")?dt(Z):document}; g.R6=function(n){return n.V&&g.ri(n)&&!U6(n)&&!n.C}; ePn=function(n){return n.array.slice(kg3(n,0x7ffffffffffff),n.array.length)}; Ha7=function(){g.R.call(this,{U:"div",K:"ytp-fine-scrubbing-thumbnail"})}; de7=function(n){this.AG=UO(n)}; NN=function(n,Z,F,y,l,m){l=l===void 0?!1:l;m=m===void 0?!1:m;n1.call(this,"ad-action-interstitial",n,Z,F,y);this.interactionLoggingClientData=y;this.N8=l;this.tb=m}; g.ER=function(n,Z){typeof n.className=="string"?n.className=Z:n.setAttribute&&n.setAttribute("class",Z)}; Ed=function(n,Z,F,y){return typeof n.addEventListener==="function"?(n.addEventListener(Z,F,h8(y)),!0):!1}; BIe=function(n){K8=n}; YS=function(n){return n.W.B().experiments.RY("enable_desktop_player_underlay")}; g.ha=function(){}; p03=function(n){var Z=null;n.X&&(Z=n.X,n.X=Z.next,Z.next=null);n.X||(n.V=null);return Z}; SL=function(n){return n.V&&n.V.takeRecords?n.V.takeRecords():[]}; E6=function(n){this.AG=UO(n,500)}; O6=function(n){return n.X.every(function(Z){return Z.hasOwnProperty("offsetMilliseconds")})}; cR=function(n,Z){n.T.Ao=Z;g.w4(n.api.getRootNode(),"ytp-probably-keyboard-focus",Z);g.w4(n.contextMenu.element,"ytp-probably-keyboard-focus",Z)}; Min=function(n){var Z=n.getVideoData().s5,F=n.Y.hG,y=n.isInline()&&!n.getVideoData().oF,l=n.mediaElement;Z||F||y?l.ej():(l.gT(),Vy(n,n.jx))}; $Di=function(n){var Z=0;return function(){return Z=m)Fke(n,p,P,a,J,Z.join(),l),D=J;h.ST(2);break;case 4:return h.return(Promise.reject(D))}})}; TJ=function(n){n.S=null;n.C=null;n.G(WR("over"),n.ZA);n.G("touchstart",n.DB);n.N&&n.G(WR("down"),n.fxp)}; g.lj=function(n){return n[n.length-1]}; aHo=function(n,Z,F){if(Z.endpoint==="log_event"){P7(void 0,Z);var y=o8(Z,!0),l=yWj(n),m=200;if(l){if(l.enabled===!1&&!g.N5("web_payload_policy_disabled_killswitch"))return;m=lHp(l.tier);if(m===400){slU(n,Z,F);return}}rP[y]=!0;y={cttAuthInfo:y,isJspb:!0,tier:m};Sk().storePayload(y,xd(Z.payload));mDp(F,!0,y,Jp(n))}}; T3=function(n){return{toString:function(){return n()}}}; ZM=function(){var n=QM()&&!YX(29),Z=g.tv("google tv")&&g.tv("chrome")&&!YX(30);return n||Z?!1:Gw()}; EH=function(n,Z){g.R.call(this,{U:"div",K:"ytp-volume-panel",Z:{title:n.j("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},D:[{U:"div",K:"ytp-volume-slider",D:[{U:"div",K:"ytp-volume-slider-handle"}]}]});var F=this;this.api=n;this.C=Z;this.Vd=!1;this.Ns=this.volume=0;this.S=null;this.X=this.N=this.isDragging=!1;this.C=Z;this.T=n.AX(); this.L=n.j("web_player_use_screen_width_for_big_mode");this.J=this.Vg("ytp-volume-slider");this.Tx=this.Vg("ytp-volume-slider-handle");this.V=new g.OH(this.J,!0);g.S(this,this.V);this.V.subscribe("dragstart",this.JV8,this);this.V.subscribe("dragmove",this.F1,this);this.V.subscribe("dragend",this.eNR,this);this.G(n,"onVolumeChange",this.onVolumeChange);this.G(n,"appresize",this.m1T);this.G(n,"fullscreentoggled",this.Aj);this.G(n,"onShowControls",this.Kb);this.G(n,"onHideControls",this.Kb);this.G(this.element, "keydown",this.P5);this.G(this.element,"focus",function(){RR(F,F.N,F.isDragging,!0,F.api.Vd())}); this.G(this.element,"blur",function(){RR(F,F.N,F.isDragging,!1,F.api.Vd())}); $OT(this,n.Br().getPlayerSize());gP(this,n.getVolume(),n.isMuted());XX(n,this.element,this)}; i0=function(n,Z){var F=F===void 0?0:F;n=tD(n,Z);n=n==null?n:mX(n)?n|0:void 0;return n!=null?n:F}; K9K=function(){var n;return((n=navigator.connection)==null?void 0:n.type)||""}; sCp=function(n){var Z;return!!(n.j("html5_native_audio_track_switching")&&g.x5&&((Z=n.videoData.X)==null?0:KU(Z)))}; qYY=function(n,Z,F,y,l,m){Z.client||(Z.client={});n.player.B().j("h5_remove_url_for_get_ad_break")||(Z.client.originalUrl=F);var a=tK(F),D=g.g1(F)?!1:!0;(a||D)&&typeof Intl!=="undefined"&&(Z.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);D=g.g1(F)?!1:!0;if(a||D||y!==""){var p={};F=C8(Nh(y)).split("&");var L=new Map;F.forEach(function(q){q=q.split("=");q.length>1&&L.set(q[0].toString(),decodeURIComponent(q[1].toString()))}); L.has("bid")&&(p.bid=L.get("bid"));p.params=[];DDT.forEach(function(q){L.has(q)&&(q={key:q,value:L.get(q)},p.params.push(q))}); pGi(n,p);Z.adSignalsInfo=p}Z.client.unpluggedAppInfo||(Z.client.unpluggedAppInfo={});Z.client.unpluggedAppInfo.enableFilterMode=!1;F=l.N.cosver;F!=null&&F!=="cosver"&&(Z.client.osVersion=F);F=l.N.cplatform;F!=null&&F!=="cplatform"&&F!==""&&(Z.client.platform=F);F=l.N.cmodel;F!=null&&F!=="cmodel"&&(Z.client.deviceModel=F);F=l.N.cplayer;F!=null&&F!=="cplayer"&&(Z.client.playerType=F);F=l.N.cbrand;F!=null&&F!=="cbrand"&&(Z.client.deviceMake=F);Z.user||(Z.user={});Z.user.lockedSafetyMode=!1;g.ri(l)&& L97(Z,m,n.player.getPlayerState(1));if(n=l.livingRoomPoTokenId)Z.client.tvAppInfo=Object.assign({},Z.client.tvAppInfo,{livingRoomPoTokenId:n})}; b0=function(n,Z){u0.call(this,n,Z);this.jT=!0;this.w5=!1;this.aY=this.r5=0;this.fR=NaN}; wGi=function(n){var Z=!(n==null?0:n.nt())&&(n==null?void 0:n.t2())&&XY(),F;if(!(F=n==null)){F=g.zw(n);n=n.B().S;var y=t8("243");F=!(y&&Mr(F,y,n,!0)===!0)}return{supportsVp9Encoding:!(F||Z),supportXhr:gT}}; kd=function(n,Z,F,y,l,m){Tf.call(this,n,Z,F,y);this.uY=l;this.V=m;this.S=o5(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; Fx=function(){var n=/WebKit\/([0-9]+)/.exec(g.PT());return!!(n&&parseInt(n[1],10)>=600)}; n1T=function(n){n=n===void 0?{}:n;return g.ic.invoke(n)}; $PK=function(n,Z,F,y){if(!Z&&!F)return Promise.resolve();if(!y)return w2U(Z,F);var l;(l=n.X)[y]||(l[y]=new Promise(function(m,a){w2U(Z,F).then(function(){n.N=y;m()},function(D){delete n.X[y]; a(D)})})); return n.X[y]}; s5=function(n){this.value=n}; g.CV=function(n){n.jT=n.N.length-1;n.SG=0;lWQ(n,!0)&&lWQ(n,!1);for(var Z=0,F=0;F=0;y--)if(n.N[y].width>0){Zs(n.N[y],0);var l=Math.floor(n.N[y].width);n.N[y].width=l;eC(n.N[y],l+"px");break}n.N[F].width=0;eC(n.N[F],"0")}else F===n.N.length-1?(y=Math.floor(n.N[F].width+Z),n.N[F].width=y,eC(n.N[F],y+"px")):(Z=n.N[F].width+Z,y=Math.round(Z),Z-=y,n.N[F].width=y,eC(n.N[F],y+"px"));F=0;if(n.V.length===n.N.length)for(Z=0;Z< n.V.length;Z++)y=n.N[Z].width,n.V[Z].element.style.width=y+"px",n.V[Z].element.style.left=F+"px",F+=y+nb(n);n.api.j("delhi_modern_web_player")&&(n.N.length===1?n.N[0].X.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(n.N[0].X.classList.remove("ytp-progress-bar-end"),n.N[0].X.classList.add("ytp-progress-bar-start"),n.N[n.N.length-1].X.classList.add("ytp-progress-bar-end")))}; IbQ=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}}; TWU=function(){return"INNERTUBE_API_KEY"in HR&&"INNERTUBE_API_VERSION"in HR}; oXp=function(n,Z){if(Z){var F=Z.adLayoutLoggingData;g.HX(g.pF(),function(){n.T!=null&&F&&g.xt("adsSeenClientLogging",{serializedAdServingDataEntry:F.serializedAdServingDataEntry})},0)}}; QO=function(n,Z,F){var y=g.nO(n.macros),l=g.WA(Z);y.AW={toString:function(){return l.width.toString()}}; y.AH={toString:function(){return l.height.toString()}}; var m=g.fK(F,Z).floor();y.I_X={toString:function(){return m.x.toString()}}; y.NX={toString:function(){return m.x.toString()}}; y.I_Y={toString:function(){return m.y.toString()}}; y.NY={toString:function(){return m.y.toString()}}; y.NM={toString:function(){return n.Tx.toString()}}; Z=g.Y(n.L);for(F=Z.next();!F.done;F=Z.next())F=F.value,n.layoutId?ZZ(n.Hr,F,n.layoutId,y):g.ZW(Error("Missing layoutId for invideo_overlay_ad."));n.api.pauseVideo()}; dP=function(n){return(n=n.exec(g.PT()))?n[1]:""}; PLK=function(n,Z,F){return Yk(VW(n,Z),Z,F)}; YYK=function(n,Z,F){var y={stack:[],error:void 0,hasError:!1};try{if(!Z.Ic)throw new hg(29,"SDF:notready");return Ym(JWn(y,new BR(n.logger,0,n.state)),function(){return jh(n,Z)},F)}catch(l){y.error=l,y.hasError=!0}finally{Ql8(y)}}; DaK=function(n,Z,F,y){var l,m,a,D,p,L;return g.A(function(q){switch(q.N){case 1:return m=(l=Error().stack)!=null?l:"",g.x(q,g.me(),2);case 2:a=q.X;if(!a)throw D=g.Rc("openDbImpl",n,Z),g.N5("ytidb_async_stack_killswitch")||(D.stack=D.stack+"\n"+m.substring(m.indexOf("\n")+1)),P1(D),D;ap(n);p=F?{actualName:n,publicName:n,userIdentifier:void 0}:tp3(n);g.RX(q,3);return g.x(q,Yhn(p,a),5);case 5:return g.x(q,SY8(p.actualName,Z,y),6);case 6:return q.return(q.X);case 3:return L=g.d4(q),g.RX(q,7),g.x(q,s_(p.actualName, a),9);case 9:g.iX(q,8);break;case 7:g.d4(q);case 8:throw L;}})}; $C=function(n){if(!n)return new MN(0,0);var Z=Number(n.start);n=Number(n.end);if(!isNaN(Z)&&!isNaN(n)&&(Z=new MN(Z,n),Z.length>0))return Z}; Ove=function(n){return n.X.length?n.X[0]:null}; T_=function(n){var Z,F,y,l,m=((F=g.e((Z=n.questions)==null?void 0:Z[0],To))==null?void 0:F.surveyAdQuestionCommon)||((l=g.e((y=n.questions)==null?void 0:y[0],wm))==null?void 0:l.surveyAdQuestionCommon),a;Z=[].concat(g.t(((a=n.playbackCommands)==null?void 0:a.instreamAdCompleteCommands)||[]),g.t((m==null?void 0:m.timeoutCommands)||[]));var D,p,L,q,w,T,P,J,U,h,v,V,f,W,X,u,Fp,nQ,$U,mY;return{impressionCommands:(D=n.playbackCommands)==null?void 0:D.impressionCommands,errorCommands:(p=n.playbackCommands)== null?void 0:p.errorCommands,muteCommands:(L=n.playbackCommands)==null?void 0:L.muteCommands,unmuteCommands:(q=n.playbackCommands)==null?void 0:q.unmuteCommands,pauseCommands:(w=n.playbackCommands)==null?void 0:w.pauseCommands,rewindCommands:(T=n.playbackCommands)==null?void 0:T.rewindCommands,resumeCommands:(P=n.playbackCommands)==null?void 0:P.resumeCommands,skipCommands:(J=n.playbackCommands)==null?void 0:J.skipCommands,progressCommands:(U=n.playbackCommands)==null?void 0:U.progressCommands,RaQ:(h= n.playbackCommands)==null?void 0:h.clickthroughCommands,fullscreenCommands:(v=n.playbackCommands)==null?void 0:v.fullscreenCommands,activeViewViewableCommands:(V=n.playbackCommands)==null?void 0:V.activeViewViewableCommands,activeViewMeasurableCommands:(f=n.playbackCommands)==null?void 0:f.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(W=n.playbackCommands)==null?void 0:W.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(X=n.playbackCommands)== null?void 0:(u=X.activeViewTracking)==null?void 0:u.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(Fp=n.playbackCommands)==null?void 0:(nQ=Fp.activeViewTracking)==null?void 0:nQ.activeViewAudioMeasurableCommands,endFullscreenCommands:($U=n.playbackCommands)==null?void 0:$U.endFullscreenCommands,abandonCommands:(mY=n.playbackCommands)==null?void 0:mY.abandonCommands,completeCommands:Z}}; vH3=function(n){for(var Z="",F=0;F.02;if((m===D||m>D&&m>n.fR)&&p){y=Math.max(.95,Math.min(1.05,(F-(a-l))/F));if(g.W2(Z.info.bY.info))piT(g.sj(Z),y);else if(Z.info.bY.info.dV()&&(m=l-a,!g.W2(Z.info.bY.info)&&(Z.info.bY.info.dV(),y=new lY(g.sj(Z)),D=Z.S?y:new lY(new DataView(Z.info.bY.N.buffer)), kQ(Z,!0)))){var L=m*1E3,q=Fi(D);D=y.pos;y.pos=0;if(y.N.getUint8(y.pos)===160||db(y))if(Wy(y,160))if(ar(y,!0),Wy(y,155)){if(m=y.pos,p=ar(y,!0),y.pos=m,L=L*1E9/q,q=LG(y),L=q+Math.max(-q*.7,Math.min(q,L)),L=Math.sign(L)*Math.floor(Math.abs(L)),!(Math.ceil(Math.log(L)/Math.log(2)/8)>p)){y.pos=m+1;for(m=p-1;m>=0;m--)y.N.setUint8(y.pos+m,L&255),L>>>=8;y.pos=D}}else y.pos=D;else y.pos=D;else y.pos=D}y=kQ(Z,n.policy.h2);y=F-y}y&&Z.info.bY.info.dV()&&n.loader.Xp("webmDurationAdjustment",{durationAdjustment:y, videoDrift:l+y,audioDrift:a})}return y}; wU=function(n,Z,F,y,l){y=y===void 0?{}:y;if(!l||Math.random()<5E-4){Z=Z||null;F=F||null;n=n instanceof Error?n:new g.FV(n);if(n.args)for(var m=g.Y(n.args),a=m.next();!a.done;a=m.next())a=a.value,a instanceof Object&&(y=Object.assign({},a,y));y.category="H5 Ads Control Flow";Z&&(y.slot=Z?"slot: "+Z.slotType:"");F&&(y.layout=F?"layout: "+F.layoutType:"",y.layoutId=F.layoutId);l&&(y.known_error_aggressively_sampled=!0);n.args=[y];g.yi(n)}}; X9=function(n){function Z(J,U,h,v){Promise.resolve().then(function(){p.done();D.yT();D.dispose();a.resolve({We:J,cBs:U,EdG:h,MCx:v})})} function F(J,U,h,v){if(!y.logger.CR()){var V="k";U?V="h":h&&(V="u");V!=="k"?v!==0&&(y.logger.OZ(V),y.logger.Kw(V,J)):y.X<=0?(y.logger.OZ(V),y.logger.Kw(V,J),y.X=Math.floor(Math.random()*200)):y.X--}} g.I.call(this);var y=this;this.X=Math.floor(Math.random()*200);this.N=new yN;if("challenge"in n&&NWp(n.challenge)){var l=Io(n.challenge,4,void 0,Vs);var m=Io(n.challenge,5,void 0,Vs);Io(n.challenge,7,void 0,Vs)&&(this.N=hlP(Io(n.challenge,7,void 0,Vs)))}else l=n.program,m=n.globalName;this.addOnDisposeCallback(function(){var J,U,h;return g.A(function(v){if(v.N==1)return g.x(v,y.T,2);J=v.X;U=J.cBs;(h=U)==null||h();g.zA(v)})}); this.logger=EXp(n.zY||{},this.N);g.S(this,this.logger);var a=new g.uR;this.T=a.promise;this.logger.OZ("t");var D=this.logger.share(),p=new o7(D,"t");if(!g.KQ[m])throw this.logger.iL(25),Error("EGOU");if(!g.KQ[m].a)throw this.logger.iL(26),Error("ELIU");try{var L=g.KQ[m].a;m=[];for(var q=[],w=eIQ(this.N),T=0;T7&&(m+=Z[a]);for(l=1;l>p&1;D=m<<4|a;if(a<=7)for(p=1<<7-a;p--;)y[p<>=7;a--;){y[p]||(y[p]=-Z,Z+=2);var L=l&1;l>>=1;p=L-y[p]}y[p]=D}}return y}; sm=function(){return g.tv("cobalt")&&g.tv("appletv")}; W9T=function(n){var Z=n.policy.w5,F=sa(n.w5)/Z-m7(n,n.X.info);Z=g.pg(n.V,function(y){return m7(this,y)-1)throw Error("Deps cycle for: "+Z);if(n.X.has(Z))return n.X.get(Z);if(!n.N.has(Z)){if(y)return;throw Error("No provider for: "+Z);}y=n.N.get(Z);F.push(Z);if(y.xT!==void 0)var l=y.xT;else if(y.g6T)l=y[R3]?gXo(n,y[R3],F):[],l=y.g6T.apply(y,g.t(l));else if(y.BX){l=y.BX;var m=l[R3]?gXo(n,l[R3],F):[];l=new (Function.prototype.bind.apply(l,[null].concat(g.t(m))))}else throw Error("Could not resolve providers for: "+Z);F.pop();y.Unp||n.X.set(Z,l); return l}; TO=function(){var n=g.KQ,Z=[],F=null;do{var y=n;if(Yh(y)){var l=y.location.href;F=y.document&&y.document.referrer||null}else l=F,F=null;Z.push(new Sne(l||""));try{n=y.parent}catch(m){n=null}}while(n&&y!==n);y=0;for(n=Z.length-1;y<=n;++y)Z[y].depth=n-y;y=g.KQ;if(y.location&&y.location.ancestorOrigins&&y.location.ancestorOrigins.length===Z.length-1)for(n=1;n268435455){ff(n,4);for(var F=Z&1073741823,y=0;y<4;y++)n.view.setUint8(n.pos,F&127|128),F>>=7,n.pos+=1;Z=Math.floor(Z/268435456)}for(ff(n,4);Z>127;)n.view.setUint8(n.pos,Z&127|128),Z>>=7,n.pos+=1;n.view.setUint8(n.pos,Z);n.pos+=1}; bKT=function(n,Z,F,y,l){++n.T;Z&&++n.S;qv(43,F.lU).startsWith("redirector.")&&(n.N=n.X.clone(),delete n.V,y.FK&&delete l[qv(35,n.N)])}; SJ=function(n,Z){this.X=Z;this.N=new g.oS({U:"label",K:"ytp-ad-feedback-dialog-reason-label",D:[{U:"input",K:"ytp-ad-feedback-dialog-reason-input",Z:{type:"radio",name:"feedback-reason-group"}},{U:"span",K:"ytp-ad-feedback-dialog-reason-text",E8:g.sg(n)}]});this.T=this.N.Vg("ytp-ad-feedback-dialog-reason-input")}; XJP=function(n){for(var Z=[],F=0;F=F.I0-1E3&&y<=l+F.durationMs+1E3){y=F;break a}}y=void 0}F={Bf:y,jK:Z}}else F=Tn(n,Z),((y=F)==null?0:y.Bf)||(F=Tn(n,Z,1));var m;return(m=F)==null?void 0:m.Bf}; bbT=function(n,Z){n.playbackData=Z;n.videoData.isLivePlayback&&(n.L=new zlK(function(){a:{if(n.playbackData&&n.playbackData.N.N){if(wk(n.videoData)&&n.loader){var y=n.loader.QV.lH()||0;break a}if(n.videoData.N){y=n.videoData.N.zx;break a}}y=0}return y}),n.N=new Ef(n.videoData,n.Y.experiments,function(){return n.xA(!0)})); if(P6(n.mQ)){var F;(F=n.videoData.nP)!=null&&F.qT||(Z=tbT(n),Z.Da?(YA(n.videoData)&&n.GW(Z.Da,Z.startSeconds),n.T=Z.startSeconds):Z.startSeconds>0&&n.seekTo(Z.startSeconds,{eO:"seektimeline_startPlayback",seekSource:15}));n.Pr=!1}else A2(n)||(n.T=n.T||n.videoData.startSeconds||0,n.videoData.isLivePlayback||(Z=n.mQ.videoData.xA(),n.T>Z&&(n.j("html5_sabr_log_invalid_sabr_current_time")&&n.mQ.Xp("invalidSabrCmtStart",{rt:n.T,mst:Z}),n.j("html5_sabr_vod_invalid_start_time_fallback")&&(n.T=0))))}; ngp=function(n,Z,F,y){Z["Content-Type"]="application/json+protobuf";Z["X-User-Agent"]="grpc-web-javascript/0.1";var l=Z.Authorization;if(l&&k_P.has(l.split(" ")[0])||n.withCredentials)F.J=!0;if(n.Qy)y=g.Of(y,"$httpHeaders",Z);else for(n=g.Y(Object.keys(Z)),l=n.next();!l.done;l=n.next())l=l.value,F.headers.set(l,Z[l]);return y}; D67=function(n){this.triggerId=n;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; JS=function(){Il.apply(this,arguments)}; ele=function(n,Z,F,y,l,m){this.callback=n;this.slot=Z;this.layout=F;this.T=y;this.N=l;this.X=m}; c$=function(n){for(var Z=n.length;--Z>=0;)n[Z]=0}; X2K=function(n,Z){return Z?!!n.N.get(Z):!1}; zU=function(){VN||(VN=new v$("yt.offline"));return VN}; HKP=function(n,Z,F){return Z.itag!==F.itag||Z.xtags!==F.xtags?!1:n.eT.t2||Z.lmt===F.lmt}; dD3=function(n){Ban=n}; g.ao=function(n,Z,F,y,l,m,a,D,p,L){D=D===void 0?!1:D;g.I.call(this);var q=this;this.mQ=n;this.schedule=Z;this.policy=F;this.eT=y;this.Tx=p;this.R0=L;this.Y0=this.KR=null;this.aY=this.fR=this.r5=this.w5=0;this.CB=this.JE=this.isSuspended=!1;this.d5="";this.mC={};this.SG=NaN;this.IW=this.aj=0;this.S=null;this.Bx=this.jT=!1;this.TM=0;this.Yi=!1;this.lY=this.mJ=0;this.h2=null;this.VT=!1;this.Zd=function(){return q.mQ.Zd()}; this.timing=new BWe(this.R0);this.Pr=new I9(this.schedule,this.policy);this.PV=new g.e7(this.YA,0,this);this.Hx=new g.e7(this.YA,this.policy.N1,this);this.Ix=new g.e7(this.YA,1E3,this);this.Z8=new g.e7(this.YA,void 0,this);this.hG=new g.e7(function(){q.isSuspended||q.YA()},1E4,this); this.ud=new g.e7(this.tn5,250,this);this.J=this.currentTime=NaN;this.QV=new fU(5);this.zx=this.timestampOffset=NaN;this.logger=new g.hL("dash");this.cV=Infinity;this.vx={LLi:function(){return q.VU}, vg8:function(){return q.T}, getAudioTrack:function(){return q.audioTrack}, Mfs:function(){return q.videoTrack}, d_u:function(){return q.Wr}, getManifest:function(){return q.eT}, g8T:function(){return q.X}, YA:function(){q.YA()}, fz:function(){q.w5=0;q.fz()}, nQ8:function(T){return fg(q,q.videoTrack,q.KR.X,T)}}; n=p&&p.AY();p&&(Mbo(p,this.eT,this.policy),this.zx=Date.now());this.N=new Al(this,this.Pr,F,this.eT,l,n);F=$FU(this.N,m,a&&a.id);this.audioTrack=new cO(this,this.policy,F.audio,this.timing);this.videoTrack=new cO(this,this.policy,F.video,this.timing);this.videoTrack.T.w5=this.audioTrack.Jl();this.xi={updateend:this.gP,error:this.A25};g.S(this,this.PV);g.S(this,this.Hx);g.S(this,this.Ix);g.S(this,this.Z8);g.S(this,this.hG);F=this.policy.qjp&&this.policy.Yc?!n4Q(this.videoTrack.bY.info):!1;this.N1= Zf8({F0:this.policy.L.F0||F,Yc:this.policy.Yc&&!F,JT:this.policy.JT});this.L=FKf(this,this.policy,this.N1,this.schedule,this.QV,function(T,P){return yDQ(q,T,P)}); this.T=new W$(this,this.eT,this.policy,this.videoTrack,this.audioTrack,D);this.policy.XH&&this.policy.X&&(this.Wr=new lBK(this.policy.C,function(T,P){q.Xp(T,P)},this.policy.h6)); this.VU=new rS(this,this.eT,this.videoTrack,this.audioTrack,this.policy);D=this.policy.oM?this.mQ.getVideoData().Ej:null;this.C=new Ts(this,this.policy,this.videoTrack,this.audioTrack,this.mC,this.T,this.timing,this.Pr,this.schedule,this.eT,this.N,this.L,F,D);g.S(this,this.C);this.V=new xC(this,this.policy,this.videoTrack,this.audioTrack,this.eT,l,Z3(this.mQ.getVideoData()),a==null?void 0:a.id);g.S(this,this.V);V7Y(this.V,m);this.X=new GO(this.mQ,this,this.policy,this.audioTrack,this.videoTrack,this.eT, this.schedule,this.N,this.V,this.timing,this.T,this.Wr);g.S(this,this.X);this.Ns=this.mQ.kA.RT.Rt;this.policy.S||TZe(this);if(this.policy.Hx){var w;this.yg=new R9(this.videoTrack.bY.index,(w=this.mQ.getVideoData().clientPlaybackNonce)!=null?w:"",this.mQ,this.policy.Yi);this.policy.Yi===3&&(this.kV=new g.e7(this.fW,200,this),this.kV.start(),g.S(this,this.kV))}}; Wb=function(){var n=g.z5("yt-player-user-settings"),Z=new Map;if(n){n=g.Y(Object.entries(n));for(var F=n.next();!F.done;F=n.next()){var y=g.Y(F.value);F=y.next().value;y=y.next().value;Z.set(F,y)}}return Z}; g.gS=function(n,Z){return NIe(n,Z)}; shT=function(n){var Z=n.x6;n=n.videoData;var F=A6(Z,n);Z.j("html5_disable_client_autonav_cap_for_onesie")||F.compose(iv(Z,n));return F}; g.On=function(n,Z){return XG(n,Z)>0}; Cg=function(){}; mFK=function(n,Z){if((n=Z8(n,Z))&&n.onCueRangeExit)return NH(n.onCueRangeExit)}; hr=function(n){var Z=n.app.B().controlsType==="3"&&!n.Mv&&En(n)&&!n.app.WK||!1;n.d1.controls=Z;n.d1.tabIndex=Z?0:-1;n.app.B().V&&(n.d1.ariaHidden="true");Z?n.d1.removeEventListener("focus",n.d3):n.d1.addEventListener("focus",n.d3)}; h9=function(n,Z,F){F=F===void 0?!1:F;var y=n.B().lY?{"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:n.j("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};y=n.j("delhi_modern_web_player")?{U:"div",K:"ytp-mute-button",D:[{U:"button",Z:y,s8:["ytp-volume-icon", "ytp-button"],E8:"{{icon}}"}]}:{U:"button",s8:["ytp-mute-button","ytp-button"],Z:y,D:[{U:"div",K:"ytp-volume-icon",E8:"{{icon}}"}]};g.R.call(this,y);this.W=n;this.jT=F;this.X=null;this.C=this.w5=this.L=this.J=NaN;this.zx=this.Ns=null;this.S=[];this.V=[];this.visible=!1;this.T=this.N=this.Tx=null;n.j("delhi_modern_web_player")&&this.update({"data-priority":4});F=this.W.B();this.updateValue("icon",bt());this.tooltip=Z.aX();this.updateValue("dataTooltipOffsetY",0);this.T=g.q$("ytp-volume-icon",this.element); y=this.W.j("delhi_modern_web_player_icons")?{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",s8:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{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"}},{U:"path",K:"ytp-svg-volume-animation-small-ripple",Z:{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"}},{U:"path",K:"ytp-svg-volume-animation-big-ripple",Z:{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"}}]}:{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"defs",D:[{U:"clipPath",Z:{id:"ytp-svg-volume-animation-mask"},D:[{U:"path",Z:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{U:"path",Z:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{U:"path",K:"ytp-svg-volume-animation-mover",Z:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{U:"clipPath",Z:{id:"ytp-svg-volume-animation-slash-mask"},D:[{U:"path",K:"ytp-svg-volume-animation-mover", Z:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{U:"path",Tu:!0,s8:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{"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"}},{U:"path",Tu:!0,s8:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Z:{"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.X=new g.S_(y);g.S(this,this.X);this.Ns=this.X.Vg("ytp-svg-volume-animation-speaker");this.zx=this.Ns.getAttribute("d");this.S=g.uv("ytp-svg-volume-animation-mover",this.X.element);this.W.j("delhi_modern_web_player_icons");this.V=g.uv("ytp-svg-volume-animation-hider",this.X.element);this.W.j("delhi_modern_web_player_icons");this.lY=new bv;g.S(this,this.lY);this.Wr=new bv;g.S(this,this.Wr);this.G(n,"appresize",this.I4);this.G(n,"onVolumeChange",this.onVolumeChange);n.j("delhi_modern_web_player")? this.listen("click",this.qGT):this.listen("click",this.Vt);F.lY?(n.j("delhi_modern_web_player")&&!n.j("delhi_modern_web_player_horizontal_volume_controls")&&(this.N=new aBY(n,Z),this.N.oY(this.element),g.S(this,this.N),this.G(this.T,"mouseover",this.EA),this.G(this.T,"focus",this.EA),this.G(this.T,"mouseout",this.x5),this.G(this.T,"blur",this.x5)),F=n.j("delhi_modern_web_player")?this.T:this.element,this.addOnDisposeCallback(g.l9(Z.aX(),F))):KKQ(this);this.message=null;n.createClientVe(this.element, this,28662);this.I4(n.Br().getPlayerSize());this.setVolume(n.getVolume(),n.isMuted())}; Xi=function(){this.C=null;this.J=[];this.V=this.X=this.T=this.N=this.Pr=0;this.S=null;this.L=0}; DF7=function(n,Z){return n.C.has(Z)?void 0:n.X.get(Z)}; tl=function(n){zO.call(this,n,!1,!0);this.Wr=[];this.xi=[];this.element.setAttribute("data-overlay-order","9");this.W.j("web_enable_shopping_timely_shelf_client")&&!this.W.j("web_force_featured_product_banner_with_timely_shelf")&&this.badge.element.classList.add("ytp-timely-shelf-present");this.J=!0;this.badge.element.classList.add("ytp-featured-product");this.zx=new g.R({U:"div",K:"ytp-featured-product-open-in-new"});g.S(this,this.zx);this.countdownTimer=new g.R({U:"text",K:"ytp-featured-product-countdown", E8:"{{content}}"});this.countdownTimer.hide();g.S(this,this.countdownTimer);this.T=new g.R({U:"div",K:"ytp-featured-product-trending",D:[{U:"div",K:"ytp-featured-product-trending-icon"},{U:"text",K:"ytp-featured-product-trending-text",E8:"{{trendingOffer}}"}]});this.T.hide();g.S(this,this.T);this.overflowButton=new g.R({U:"button",s8:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.S(this,this.overflowButton);this.C=new g.R({U:"text",K:"ytp-featured-product-exclusive-countdown", E8:"{{content}}",Z:{id:"exclusiveCountdown","aria-hidden":"true"}});this.C.hide();g.S(this,this.C);this.S=new g.R({U:"div",K:"ytp-featured-product-exclusive-container",Z:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},D:[{U:"div",K:"ytp-featured-product-exclusive-badge-container",D:[{U:"div",K:"ytp-featured-product-exclusive-badge",D:[{U:"text",K:"ytp-featured-product-exclusive-badge-text",E8:"{{exclusive}}",Z:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.C]});this.S.hide();g.S(this, this.S);this.banner=new g.R({U:"a",K:"ytp-featured-product-container",D:[{U:"div",K:"ytp-featured-product-thumbnail",D:[{U:"img",Z:{src:"{{thumbnail}}"}},this.zx]},{U:"div",K:"ytp-featured-product-details",D:[{U:"text",K:"ytp-featured-product-title",E8:"{{title}}"},this.W.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{U:"div",K:"ytp-featured-product-price-container",Z:{"aria-label":"{{priceA11yText}}"},D:[{U:"text",K:"ytp-featured-product-price-when-promotion-text-enabled", E8:"{{price}}",Z:{"aria-hidden":"true"}},{U:"text",K:"ytp-featured-product-promotion-text",E8:"{{promotionText}}",Z:{"aria-hidden":"true"}}]}:{U:"div",Z:{"aria-label":"{{priceA11yText}}"},D:[{U:"text",K:"ytp-featured-product-price",E8:"{{price}}",Z:{"aria-hidden":"true"}},{U:"text",K:"ytp-featured-product-sales-original-price",E8:"{{salesOriginalPrice}}",Z:{"aria-hidden":"true"}},{U:"text",K:"ytp-featured-product-price-drop-reference-price",E8:"{{priceDropReferencePrice}}",Z:{"aria-hidden":"true"}}]}, this.W.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{U:"div",K:"ytp-featured-product-when-promotion-text-enabled",D:[{U:"text",K:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",E8:"{{affiliateDisclaimer}}"},this.T,{U:"text",K:"ytp-featured-product-vendor-when-promotion-text-enabled",E8:"{{vendor}}"}]}:{U:"div",D:[{U:"text",K:"ytp-featured-product-affiliate-disclaimer",E8:"{{affiliateDisclaimer}}"},this.W.j("web_player_enable_featured_product_banner_exclusives_on_desktop")? this.S:null,this.T,{U:"text",K:"ytp-featured-product-vendor",E8:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.S(this,this.banner);this.banner.oY(this.V.element);this.G(this.W,g.HP("featured_product"),this.W9r);this.G(this.W,g.dn("featured_product"),this.Uh);this.G(this.W,"videodatachange",this.onVideoDataChange);this.G(this.overflowButton.element,"click",this.Yb);this.G(n,"featuredproductdismissed",this.Ai)}; kC=function(n){hs.call(this,n.Fz,n.slot,n.Hm,n.uY,n.TN,n.nR,n.tG,n.tD,n.Cn,n.Z6,n.Ff,n.FZ,n.e4,n.U8,n.mB,n.context);var Z=this;this.Yx=!0;this.Ia=this.Y6=0;this.o5=Ra(function(){Z.Fz.m0(Z.slot,Z.layout)}); this.M1=n.M1;this.Ff=n.Ff;this.Py=Ra(function(){Z.A2!=="rendering_stop_requested"&&Z.Ff(Z);Z.layoutExitReason?Z.Fz.nJ(Z.slot,Z.layout,Z.layoutExitReason):pWj(Z)}); this.timer=new g.Rr(200);this.timer.listen("tick",function(){Z.jO()}); g.S(this,this.timer)}; eJ=function(n){return n.O8+(n.T?1:0)}; peo=function(n,Z,F,y,l){var m=kS(n,Z);if(!m){Z.playerVars.prefer_gapless=!0;var a=new g.O8(n.Y,Z.playerVars);a.sS=Z.sS;n.api.G2(a,Z.playerType)}a=n.app.Z4();m||a.addCueRange(Z.xg.Is);a.seekTo(F,Object.assign({},{eO:"application_timelinemanager"},y));tF7(n,l)}; LKo=function(n,Z){Sf(n,1,Z.type);O0(n,2,Z.value)}; H$=function(n){zO.call(this,n);this.T=this.N=this.isContentForward=this.C=!1;this.element.setAttribute("data-overlay-order","8");yOT(this);this.G(this.W,"changeProductsInVideoVisibility",this.Hqp);this.G(this.W,"videodatachange",this.onVideoDataChange)}; dS=function(){this.done=!1;this.N={XS:0,Rv:0,LkY:0,V6:0,OF:-1,qS:0,DT:0,dX:0,MzG:0};this.S=null;this.C=!1;this.T=null;this.J=0;this.X=new tB(this)}; B$=function(n,Z,F,y,l,m,a){n=n===void 0?-1:n;Z=Z===void 0?"":Z;F=F===void 0?"":F;y=y===void 0?!1:y;l=l===void 0?"":l;g.I.call(this);this.logSource=n;this.componentId=Z;m?Z=m:(n=new oP(n,"0"),n.componentId=Z,g.S(this,n),F!==""&&(n.M_=F),y&&(n.T=!0),l&&pQe(n,l),a&&qlp(n,a),Z=n.build());this.N=Z}; tmj=function(n){g.pv("yt.ads.biscotti.lastId_",n)}; Ty8=function(n,Z,F,y,l,m,a,D,p,L,q,w,T,P,J,U,h,v,V,f,W,X){function u(){var $U=rvp(Object.assign({},nQ,{callback:{m0:n.m0.bind(n),nJ:n.nJ.bind(n),KN:n.KN.bind(n)},slot:F,Hm:y,Ff:function(){Mo(a,y)}, FZ:0,e4:1,mB:!0}));return $U?new q3(n,q,T,U,$U,l,f):$U} function Fp(){var $U,mY=($U=y.CD)!=null?$U:o5(y.clientMetadata,"metadata_type_sub_layouts");$U=weo({PUG:n,nR:w,ym:W,gM:q,tG:T,To:P,tD:U,fT:Z,slot:F,layout:y,wO:m,sD:a,wM:l,U8:f});for(var LQ=[],Zi={Nf:0};Zi.Nf>3;switch(l&7){case 0:l=nn(Z);if(m===2)return l;break;case 1:if(m===2)return;y+=8;break;case 2:l=nn(Z);if(m===2)return n.substr(y,l);y+=l;break;case 5:if(m===2)return;y+=4;break;default:return}}while(y0&&D.set(l,p),(g.N5("web_fp_via_jspb_and_json")&&F.writeThenSend||!g.N5("web_fp_via_jspb_and_json"))&& delete rP[l];Qh8(D,a,n,F,!1,m)}else{D=g.Y(Object.keys(rP));for(L=D.next();!L.done;L=D.next())L=L.value,q=g.N5("enable_web_tiered_gel")?Sk().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:L,tier:l},{isJspb:!1,cttAuthInfo:L}],sizeLimit:1E3}):Sk().extractMatchingEntries({isJspb:!1,cttAuthInfo:L}),q.length>0&&p.set(L,q),(g.N5("web_fp_via_jspb_and_json")&&F.writeThenSend||!g.N5("web_fp_via_jspb_and_json"))&&delete rP[L];XWe(p,a,n,Z,F,!1,m)}}; g.Yl8=function(n,Z){if(n.suggestion!==Z){n.suggestion=Z;var F=n.api.B(),y="hqdefault.jpg";Z.Sn("sddefault.jpg")&&(y="sddefault.jpg");g.ZU(n,Z,y);g.R6(F)&&!n.api.j("web_player_log_click_before_generating_ve_conversion_params")&&(F=Z.W7(),y={},g.dc(n.api,"addEmbedsConversionTrackingParams",[y]),F=g.pQ(F,y),n.updateValue("url",F));(Z=(Z=Z.sessionData)&&Z.itct)&&n.api.setTrackingParams(n.element,Z)}}; Slj=function(n,Z,F){n instanceof String&&(n=String(n));for(var y=n.length-1;y>=0;y--){var l=n[y];if(Z.call(F,l,y,n))return{gz:y,q0:l}}return{gz:-1,q0:void 0}}; g.F$=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},D:[{U:"path",Z:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}}; LWU=function(n){if(!vh3(n))return!1;var Z=g.e(n.adVideoStart,$a);return Z?g.e(n.linearAd,n7)&&AW(Z)?!0:(wU("Invalid Sandwich with notify"),!1):!1}; l5=function(n,Z,F){if(n-6<<1=n){var y=g.e(Z,jhj)||Z[K[10]],l={K8:!1,AQ:K[12],QD:K[12],s:K[12]};if(y){y=jy(y);l[K[34]]=!0;l[K[46]]=y[K[13]];l[K[21]]=y[K[18]];l[K[43]]=y[K[43]];var m=l}else m=l}n-6>>3==1&&((0,Z[29])((0,Z[80])((0,Z[63])(),Z[67],Z[69]),Z[35],Z[42],Z[69]),(0,Z[29])((0,Z[35])(Z[64],Z[0]),Z[80],(0,Z[28])(),Z[67],Z[17]),(0,Z[35])(Z[14],Z[17]),m=[]);if((n>>2&15)==3){l=64;for(y=[];++l-y[K[20]]-32;)switch(l){case 58:l=96;continue;case 91:l=44;break;case 65:l=47;continue;case 46:l= 153;case 123:l-=58;default:y[K[3]](String[K[27]](l))}m=y}((n|8)&7)==2&&Z[K[20]]!=0&&(l=n8(12,F,Z),F=l[0]);return m}; sk=function(n,Z,F,y,l,m,a,D,p,L){Z=$e(n.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",Z);var q={layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Gx:"adapter"};D=D(Z);var w=o5(D.clientMetadata,"metadata_type_fulfilled_layout");w||wU("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var T=w?w.layoutId:"";F=[new K7(F),new v7(y),new JW(l)];w&&F.push(new IP(w.layoutType));L&&F.push(new xh(L));return{layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Nd:m,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[new a1(n.N,T)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"adapter",gw:F,lN:a(q),adLayoutLoggingData:p,ly:D,IR:T}}; g.aV=function(n){this.MO=n}; pn=function(n){b4.call(this,.05,.05,n.getAvailablePlaybackRates()[0],n.getAvailablePlaybackRates()[n.getAvailablePlaybackRates().length-1],150,20,n.getPlaybackRate());this.W=n;this.S=g.FI("P");this.Wr=Kn(this.w5,50,this);g.gi(this.V,"ytp-speedslider");g.gi(this.S,"ytp-speedslider-text");n=this.S;var Z=this.V;Z.parentNode&&Z.parentNode.insertBefore(n,Z.nextSibling);DU(this);this.G(this.W,"onPlaybackRateChange",this.updateValues)}; cYn=function(n){var Z=n.webPlayerContextConfig.trustedJsUrl;return Z?vV(Z).toString():n.webPlayerContextConfig.jsUrl}; g.Ln=function(n){this.MO=n}; YM=function(){var n=this;this.store={};this.N=0;this.X={};this.vx={Y7s:function(){return n.N}}}; QY=function(n,Z,F){this.X=n;this.T=Z;this.N=F}; qu=function(n){this.value=n}; ws=function(n,Z,F,y,l,m){Tf.call(this,n,Z,F,y);this.uY=l;this.wM=m;this.dJ=!0;P2(this.wM(),this);n=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,n,F.layoutId)}; Th=function(n){return n&&n.length?n.end(n.length-1):NaN}; UFp=function(n){var Z={c:n.d6,e:n.MZ,mc:n.Ic,me:n.Vn};n.JY&&(Z.co={c:n.JY.MU,a:n.JY.Fm,s:n.JY.q3});return Z}; xh=function(n){this.value=n}; E43=function(n,Z){E7(n,2,Z.Dw,Sn,3);E7(n,3,Z.innertubeRequest,Nyi,3);O0(n,4,Z.onesieUstreamerConfig);O0(n,9,Z.g6);E7(n,10,Z.T0,jn,3);E7(n,15,Z.reloadPlaybackParams,hFe,3)}; So=function(n,Z,F,y,l,m,a){var D=new oV;Z in g.FF||(Z="small");Z==="light"&&(Z="tiny");y&&l?(l=Number(l),y=Number(y)):(l=g.FF[Z],y=Math.round(l*16/9));m=new P4(y,l,0,null,void 0,Z,m,a);n=unescape(n.replace(/"/g,'"'));return new mZ(F,n,{audio:D,video:m})}; g.D9=function(n,Z,F){g.I.call(this);this.V=F!=null?n.bind(F):n;this.Gj=Z;this.T=null;this.N=!1;this.X=0;this.Gu=null}; vL=function(n,Z,F,y,l){this.X=n;this.N=Z;this.T=F;this.reason=y;this.Qg=l===void 0?0:l}; CQ=function(){return K4||DV?!!p4&&p4.brands.length>0:!1}; g.zu=function(n,Z,F){F=n.Pr.splice(F||0)[0];(F=n.T=n.T||F)?F.ih?n.N=n.C||n.S:F.ST!=void 0&&n.S>>6:(m<65536?D[F++]=224|m>>>12:(D[F++]=240|m>>>18,D[F++]=128|m>>>12&63),D[F++]=128|m>>> 6&63),D[F++]=128|m&63);return D}; IV=function(n,Z,F,y,l){l=l===void 0?!1:l;this.data=n;this.offset=Z;this.size=F;this.type=y;this.N=(this.X=l)?0:8;this.dataOffset=this.offset+this.N}; fn=function(n,Z,F){var y=g.pg(n.X,function(l){return Z<=l}); return y==-1?0:F(n.N[y])}; ZQ=function(n,Z,F,y,l,m,a,D){g.I.call(this);this.U8=n;this.N=Z;this.X=y;this.nR=l;this.V=m;this.T=a;this.gM=D}; A$=function(n,Z){n.N.objectStoreNames.contains(Z)&&n.N.deleteObjectStore(Z)}; T7=function(n,Z,F,y,l,m,a){Z={id:Z,namespace:a!=null?a:"appapi"};m==="chapter"?(Z.style=oa.CHAPTER_MARKER,Z.visible=!0):isNaN(l)||(m==="ad"?Z.style=oa.AD_MARKER:(Z.style=oa.TIME_MARKER,Z.color=l),Z.visible=!0);n.lD([new g.wg(F*1E3,y*1E3,Z)],1);return!0}; GZ7=function(n,Z,F,y){if(!Z||!F||!Z.videoData.X)return!1;var l=g.jf(n.Y.experiments,"html5_df_downgrade_thresh"),m=n.j("html5_log_media_perf_info");if(!((0,g.tP)()-n.V<5E3?0:m||l>0))return!1;var a=((0,g.tP)()-n.V)/1E3;n.V=(0,g.tP)();F=F.getVideoPlaybackQuality();if(!F)return!1;var D=F.droppedVideoFrames-n.C,p=F.totalVideoFrames-n.L;n.C=F.droppedVideoFrames;n.L=F.totalVideoFrames;var L=F.displayCompositedVideoFrames===0?0:F.displayCompositedVideoFrames||-1;m&&n.Y.eG()&&n.mQ.Xp("ddf",{dr:F.droppedVideoFrames, de:F.totalVideoFrames,comp:L});if(y)return n.N=0,!1;if((p-D)/a>n.Pr||!l||g.f4(n.Y))return!1;n.N=(p>60?D/p:0)>l?n.N+1:0;if(n.N!==3)return!1;rDT(n,Z.videoData.X);n.mQ.Xp("dfd",Object.assign({dr:F.droppedVideoFrames,de:F.totalVideoFrames},xF7()));return!0}; ph=function(n,Z){if(!n)return-1;try{for(var F=0;F=Z)return F}catch(y){}return-1}; iff=function(n,Z,F){var y=W4(Z.googleRemarketingUrl);y&&(n.googleRemarketingUrl=y);if(y=W4(Z.youtubeRemarketingUrl))n.youtubeRemarketingUrl=y;if(y=Z.heartbeatLoggingToken)n.heartbeatLoggingToken=y;y={};var l=W4(Z.ptrackingUrl);if(l){l=rs(l);var m=l.oid;m&&(n.tP=m);if(m=l.pltype)n.sb=m;if(m=l.ptchn)n.W3=m;if(m=l.ptk)n.iC=encodeURIComponent(m);if(l=l.m)n.HG=l}if(l=W4(Z.qoeUrl)){l=g.EG(l);m=g.Y(Object.keys(l));for(var a=m.next();!a.done;a=m.next()){a=a.value;var D=l[a];l[a]=Array.isArray(D)?D.join(","): D}n.zE=l;if(m=l.cat)n.j("html5_enable_qoe_cat_list")?n.Ya=n.Ya.concat(m.split(",")):n.iZ=m;if(m=l.live)n.i6=m;if(l=l.drm_product)n.drmProduct=l}if(l=W4(Z.videostatsPlaybackUrl)){l=rs(l);if(m=l.adformat)if(F.adformat=m,a=n.B(),a=RFj(m,n.mN,a.V,a.L))n.adFormat=a;if(a=l.aqi)F.ad_query_id=a;if(F=l.autoplay)n.yU=F=="1",n.Bt=F=="1";if(F=l.autonav)n.isAutonav=F=="1";if(F=l.delay)n.Y4=n_(F);if(F=l.ei)n.eventId=F;if(F=ZJ(l.adcontext))try{var p=g4e(F);p&&(n.xt=p)}catch(L){g.yi(Error("Malformed adContext"))}if(F|| m)n.yU=!0;if(p=l.feature)n.wb=p;if(p=l.list)n.playlistId=p;if(p=l.of)n.n9=p;if(p=l.osid)n.osid=p;if(p=l.referrer)n.referrer=p;if(p=l.sdetail)n.MA=p;if(p=l.sourceid)n.pCx=p;if(p=l.ssrt)n.B_=p=="1";if(p=l.subscribed)n.subscribed=p=="1";if(p=l.uga)n.userGenderAge=p;if(p=l.upt)n.M0=p;if(p=l.vm)n.videoMetadata=p;y.playback=l}if(p=W4(Z.videostatsWatchtimeUrl)){p=rs(p);if(F=p.ald)n.jI=F;y.watchtime=p}if(p=W4(Z.atrUrl))p=rs(p),y.atr=p;if(p=W4(Z.engageUrl))p=rs(p),y.engage=p;n.MI=y;Z.promotedPlaybackTracking&& (Z=Z.promotedPlaybackTracking,Z.startUrls&&(n.KM=Z.startUrls),Z.firstQuartileUrls&&(n.mZ=Z.firstQuartileUrls),Z.secondQuartileUrls&&(n.P8=Z.secondQuartileUrls),Z.thirdQuartileUrls&&(n.NC=Z.thirdQuartileUrls),Z.completeUrls&&(n.FU=Z.completeUrls),Z.engagedViewUrls&&(Z.engagedViewUrls.length>1&&g.yi(new g.FV("There are more than one engaged_view_urls.")),n.nM=Z.engagedViewUrls[0]))}; tD=function(n,Z,F,y,l){Object.isExtensible(n);Z=za(n.AG,Z,F,l);if(Z!==null||y&&n.X!==Xm)return Z}; xP=function(n,Z){var F=g.Di("CLOSURE_FLAGS");n=F&&F[n];return n!=null?n:Z}; bx=function(n,Z){var F=n.X;for(n.X=-1;n.pos+1<=n.N.totalLength;){F<0&&(F=Xn(n));var y=F>>3,l=F&7;if(y===Z)return!0;if(y>Z){n.X=F;break}F=-1;switch(l){case 0:Xn(n);break;case 1:n.pos+=8;break;case 2:y=Xn(n);n.pos+=y;break;case 5:n.pos+=4}}return!1}; uZ3=function(n,Z){Z=Ck7(Z,n.N.G6);Z=n.T.createSession("video/mp4",Z);return new M3(null,null,null,null,Z,n.J)}; qW=function(n){this.value=n}; P7=function(n,Z){var F=g.Di("yt.logging.transport.enableScrapingForTest"),y=GJ("il_payload_scraping");y=(y!==void 0?String(y):"")==="enable_il_payload_scraping";if(!F)if(y)Gh=[],g.pv("yt.logging.transport.enableScrapingForTest",!0),g.pv("yt.logging.transport.scrapedPayloadsForTesting",Gh),g.pv("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.pv("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.pv("yt.logging.transport.scrapeClientEvent",!0);else return;F=g.Di("yt.logging.transport.scrapedPayloadsForTesting");y=g.Di("yt.logging.transport.payloadToScrape");Z&&(Z=Z.payload,(Z=g.Di("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Z)())&&F.push(Z));Z=g.Di("yt.logging.transport.scrapeClientEvent");if(y&&y.length>=1)for(var l=0;l=400&&D.status<500)?D.json().then(L,function(){L(null)}):L(null)}}).catch(function(){Z.onError&&Z.onError.call(l,{},{})}); n=Z.timeout||0;Z.onFetchTimeout&&n>0&&(a=g.A3(function(){m||(m=!0,g.l0(a),Z.onFetchTimeout.call(Z.context||g.KQ))},n))}else g.jM(n,Z)}; RV=function(n){return Math.round(n.width)+"x"+Math.round(n.height)}; Xee=function(n){return{aC:ut(n,1),items:gs(n,2,ZtT),e5:ut(n,3)}}; kZe=function(n,Z,F){try{if(n.CR())throw new hg(21,"BNT:disposed");if(!n.N&&n.X)throw n.X;var y,l;return(l=(y=Qfi(n,Z,F))!=null?y:zFP(n,Z,F))!=null?l:YYK(n,Z,F)}catch(m){if(!Z.Vn)throw JKe(n,m);return tSU(n,F,m)}}; Lxn=function(n,Z){function F(p){for(;y>4);a!=64&&(Z(m<<4&240|a>>2),D!=64&&Z(a<<6&192|D))}}; i5=function(n,Z,F,y,l){Tf.call(this,F,n,Z,y);this.uY=l;n=o5(Z.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(Z.Nd,l,n,Z.layoutId)}; mVY=function(n,Z){if(Z.Mm)for(var F=0;F1?Z[n[0]]=n[1]:n.length===1&&Object.assign(Z,n[0])}; eFo=function(n){if(!(n.X<0)){var Z=g.kq(n.provider),F=Z-n.V;n.V=Z;n.playerState.state===8?n.playTimeSecs+=F:n.playerState.isBuffering()&&!g.b(n.playerState,16)&&(n.rebufferTimeSecs+=F)}}; Hf7=function(n){return{videoId:XM(n,1),formatId:u5(n,2,VG),debugInfo:gs(n,3,ob7)}}; $f=function(n){return b5(n)}; dFe=function(n){return window.Profiler&&new window.Profiler(n)}; X$=function(n,Z,F,y,l){By.call(this,n,{U:"div",K:"ytp-ad-timed-pie-countdown-container",D:[{U:"svg",K:"ytp-ad-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},D:[{U:"circle",K:"ytp-ad-timed-pie-countdown-background",Z:{r:"10",cx:"10",cy:"10"}},{U:"circle",K:"ytp-ad-timed-pie-countdown-inner",Z:{r:"5",cx:"10",cy:"10"}},{U:"circle",K:"ytp-ad-timed-pie-countdown-outer",Z:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",Z,F,y,l);this.V=this.Vg("ytp-ad-timed-pie-countdown-container");this.T=this.Vg("ytp-ad-timed-pie-countdown-inner"); this.S=this.Vg("ytp-ad-timed-pie-countdown-outer");this.X=Math.ceil(2*Math.PI*5);this.hide()}; u7=function(){return CQ()?!1:Rf("Opera")}; bhi=function(n){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=n(this.triggerType)}; ByP=function(){return g.tv("(ps4; leanback shell)")||g.tv("ps4")&&g.N9()}; zh=function(n){this.value=n}; kP=function(n){var Z=kg(n);n=kg(n);return t$(dy()?BigInt.asUintN(64,(BigInt(n>>>0)<>>0)):c0(Z,n))}; MSj=function(n,Z){return(Jf(n,Z)+n.policy.Kg)*Z.Qg}; drj=function(n,Z,F){if(XI(n.N,Z))if(km(n.N,Z).V=F?"filled":"not_filled",F===null){zc(n.aW,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",Z);F=g.Y(n.X);for(var y=F.next();!y.done;y=F.next())y.value.tB(Z);ND(n,Z,!1)}else{zc(n.aW,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",Z,F);zc(n.aW,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Z,F);var l,m=(l=F.CD)!=null?l:o5(F.clientMetadata,"metadata_type_sub_layouts");if(m)for(l=g.Y(m),m=l.next();!m.done;m=l.next())zc(n.aW,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", Z,m.value);l=g.Y(n.X);for(m=l.next();!m.done;m=l.next())m.value.jz(Z);if(XI(n.N,Z))if(km(n.N,Z).S)ND(n,Z,!1);else{zc(n.aW,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",Z,F);try{y=n.N;if(!km(y,Z))throw new JT("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!y.Pj.nY.get(Z.slotType))throw new JT("No LayoutRenderingAdapterFactory registered for slot of type: "+Z.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(F.layoutExitNormalTriggers.length==0&&F.layoutExitSkipTriggers.length==0&&F.layoutExitMuteTriggers.length==0&&F.layoutExitUserInputSubmittedTriggers.length==0&&F.layoutExitUserCancelledTriggers.length==0)throw new JT("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");eE(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",F.layoutExitNormalTriggers);eE(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",F.layoutExitSkipTriggers);eE(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED", F.layoutExitMuteTriggers);eE(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",F.layoutExitUserInputSubmittedTriggers);eE(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",F.layoutExitUserCancelledTriggers)}catch(L){L instanceof JT?n.KN(Z,F,L,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):n.KN(Z,F,new JT("Unexpected error: "+L,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");ND(n,Z,!0);return}km(n.N,Z).C=!0;try{var a=n.N,D=km(a,Z),p=a.Pj.nY.get(Z.slotType).get().build(a.V, a.X,Z,F);p.init();D.layout=F;if(D.T)throw new JT("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");D.T=p;H4(a,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",F.layoutExitNormalTriggers);H4(a,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",F.layoutExitSkipTriggers);H4(a,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",F.layoutExitMuteTriggers);H4(a,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",F.layoutExitUserInputSubmittedTriggers); H4(a,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",F.layoutExitUserCancelledTriggers)}catch(L){hW(n,Z);L instanceof JT?n.KN(Z,F,L,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):n.KN(Z,F,new JT("Unexpected error: "+L,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");ND(n,Z,!0);return}zc(n.aW,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Z,F);y=g.Y(n.X);for(a=y.next();!a.done;a=y.next())a.value.FX(Z,F);hW(n,Z);CHp(n,Z)}else n=n.U8.get(),g.d5(n.W.B())|| ji(n.W.B())||g.f4(n.W.B())?n=!0:(wU("Composite VOD on legacy path."),n=!1),n&&wU("slot is unscheduled after been fulfilled.",Z,F)}}; $HQ=function(n,Z,F){var y=[];F=g.Y(F);for(var l=F.next();!l.done;l=F.next()){var m=y,a=m.push;var D=n;var p=Z;l=l.value;D=l.triggeringSlotId!=null&&l.triggeringSlotId===D?l.clone(p):l;a.call(m,D)}return y}; qjp=function(){var n=n===void 0?nM8():n;return n.map(function(Z){return BD(Z)})}; f3=function(n,Z){g.R.call(this,{U:"button",s8:["ytp-subtitles-button","ytp-button"],Z:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:n.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},D:[n.j("delhi_modern_web_player_icons")?{U:"div",K:"ytp-subtitles-button-icon",E8:"{{icon}}"}:bop(n)]});this.W=n;this.tooltip=Z.aX();n.j("delhi_modern_web_player_icons")&&this.updateValue("icon", DVn(this));this.G(n,"videodatachange",this.g5);this.G(n,"appresize",this.g5);this.G(n,"promotooltipacceptbuttonclicked",this.Lwr);this.G(n,"onApiChange",this.g5);this.G(n,"onCaptionsTrackListChanged",this.g5);this.G(n,"captionschanged",this.g5);this.W.createClientVe(this.element,this,127299);this.g5();this.listen("click",this.onClick);this.addOnDisposeCallback(g.l9(Z.aX(),this.element))}; ds=function(){this.state=1;this.Lq=null;this.rW=void 0}; ZFQ=function(n){if(n.KR)if(n.MD(),n.KR.C)try{n.Y.eG()&&n.Xp("rms",{l:"vprms",sr:n.Ef(),rs:B4(n.KR)});n.KR.clear();var Z;(Z=n.mediaElement)==null||Z.b7(n.KR);n.KR=null}catch(F){Z=new g.FV("Error while clearing Media Source in VideoPlayer: "+F.name+", "+F.message),Z=oG(Z),n.handleError(Z),n.MN()}else n.MN()}; gs=function(n,Z,F){for(var y=[],l;l=Mu(n,Z);)y.push(F(new lT(new y9([l]))));return y.length?y:void 0}; AfY=function(){return{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}}; Fhn=function(n){n.Er.Pr=(0,g.tP)();n=wa(n);n.X=(0,g.tP)();n.started+=1}; PS=function(n){var Z=ar(n,!0);n.pos+=Z}; rmj=function(n){n.L||(n.L=OT());try{return(new URL(n.L)).toString()}catch(Z){return(new URL(n.L,H8().location.origin)).toString()}}; yJY=function(n){return n.J||n.j("web_player_media_session_infinity")&&n.isLivePlayback}; lt3=function(n,Z,F){if(!(Z.eR&&n.isComplete()&&n.canRetry()&&n.info.Er.hF(Z,F))||n.info.Er.L)return 0;n=Lo(F,$I(n.info.Er,!1,Z));return n.X+Z.eR*nl(n,!0)>(0,g.tP)()?0:1}; saP=function(){var n,Z;return{Nz:new ZR(function(F,y){n=F;Z=y}), resolve:n,reject:Z}}; mHi=function(n,Z){var F=n.W.B(),y=n.W.getPresentingPlayerType()===2,l=!y||Z.isListed;l=!F.Tx&&!!Z.videoId&&l;F.playerStyle!=="play"?F="https://support.google.com/youtube/?p=report_playback":(F={contact_type:"playbackissue",html5:1,ei:Z.eventId,v:Z.videoId,p:"movies_playback"},Z.X&&(F.fmt=Z.X.itag),Z.clientPlaybackNonce&&(F.cpn=Z.clientPlaybackNonce),Z.partnerId&&(F.partnerid=Z.partnerId),F=g.pQ("//support.google.com/googleplay/",F));n.hm.yP(l&&Z.allowEmbed);n.getVideoUrl.yP(l);n.qp.yP(l&&!Z.isLivePlayback); n.W_.setContent(F,"href");var m;(m=n.Dd)==null||m.yP(!Z.isLivePlayback&&!y);Fq(n);var a;(a=n.Iz)==null||a.yP(!y)}; E4=function(n,Z){return n.W.B().j(Z)}; g.c1=function(n,Z,F,y){this.left=n;this.top=Z;this.width=F;this.height=y}; ux=function(n){return zL(n,function(Z,F){return Math.max(Z,F.video.qualityOrdinal)},0)}; g.atQ=function(n){var Z=n.W.B();if(Z.T||y5(Z)||Z.C||!Z.N1&&!Z.XH)return!1;var F=n.W.getPresentingPlayerType();if(F===2||F===3)return!1;n=n.W.getVideoData();if(!n)return!1;F=!n.isLiveDefaultBroadcast||Z.j("allow_poltergust_autoplay");F=n.isLivePlayback&&(!Z.j("allow_live_autoplay")||!F);Z=n.isLivePlayback&&Z.j("allow_live_autoplay_on_mweb");return!F||Z}; jv=function(n,Z){Z&2147483648?dy()?n=""+(BigInt(Z|0)<>>0)):(Z=g.Y(Eh(n,Z)),n=Z.next().value,Z=Z.next().value,n="-"+c0(n,Z)):n=c0(n,Z);return n}; KhU=function(n,Z,F,y,l,m){if(Array.isArray(F))for(var a=0;a>6|192:((l&64512)===55296&&y+1>18|240,Z[F++]=l>>12&63|128):Z[F++]=l>>12|224,Z[F++]=l>>6&63|128),Z[F++]=l&63|128)}return F}; sK=function(){I6.apply(this,arguments)}; zPo=function(n,Z){return HQ(n.clientMetadata,"metadata_type_ad_info_ad_metadata")?o5(n.clientMetadata,"metadata_type_ad_info_ad_metadata"):Z?{channelId:Z.z6,channelThumbnailUrl:Z.profilePicture,channelTitle:Z.author,videoTitle:Z.title}:(wU("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; DHQ=function(n,Z,F){this.MQ=Z;this.N=F;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=n(this.triggerType)}; mu=function(n,Z){n.j("html5_webpo_bge_ctmp")&&n.api.Xp(Z,{hwpo:!!n.X,hwpor:n.N})}; gD=function(n){n.updateValue("clipicon",{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",Z:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); n.GL&&!n.X?n.updateValue("watchfullvideo","Watch live stream"):n.updateValue("watchfullvideo","Watch full video");g.w4(n.element,"ytp-clip",ag(n));g.w4(n.element,"ytp-live",Kl(n))}; yg8=function(n){n.N.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",n.J.isExpanded())}; um=function(n,Z){this.zk=n;this.i4=0;this.gj=Z}; LhQ=function(n){B6().V=!!n.uo("isViewable");Ar(n,"viewableChange",pgf);n.uo("getState")==="loading"?Ar(n,"ready",HWQ):dhT(n)}; g.jf=function(n,Z,F){F=F===void 0?0:F;n=n.Wx(Z);JSON.stringify(n);return n===void 0?F:Number(n)}; DR=function(n){n.N.stop();var Z=Infinity;for(var F=g.Y(n.data),y=F.next();!y.done;y=F.next())y=y.value,y.expire-1&&n.splice(Z,1)}; kUP=function(n){n=n.split(/(?:\r\n|\r|\n)/g);if(n.length>1){for(var Z=[n[0]],F=1;F>BigInt(32)));n=n.N;Z=F.N;Ig(n,F.X);Ig(n,Z);break;default:F=mGT(F),n=n.N,Z=F.N,Ig(n,F.X),Ig(n,Z)}}}; Hu=function(n){var Z=HR.EXPERIMENT_FLAGS;return Z?Z[n]:void 0}; SBU=function(n){return Object.values(YBn).includes(n)}; UHj=function(n){var Z,F;g.A(function(y){if(y.N==1)return mu(n,"swpo_i"),fl(n),Ah(n),g.x(y,W9(),2);if(y.N!=3)return Z=y.X,mu(n,"swpo_co"),g.x(y,xkQ(Z),3);F=y.X;n.j("html5_web_po_token_disable_caching")||F.jm(150);n.X=F;mu(n,"swpo_cc");jai(F.dl()).then(function(){n.N=!0;n.S.resolve();mu(n,"swpo_re")}); g.A3(function(){rM(n);mu(n,"swpo_si")},0); g.zA(y)})}; Ye=function(n){var Z=this;this.X=n;this.N=function(F){return I3(Z.X.get(),F)}}; di=function(n,Z,F){var y=n.map.get(Z);if(!y)return!1;n.map.delete(Z);F&&n.X&&n.X(y.value);if(n.N.N.length>n.map.size*2)for(n.N.clear(),Z=g.Y(n.map.entries()),F=Z.next();!F.done;F=Z.next())y=g.Y(F.value),F=y.next().value,y=y.next().value,isFinite(y.dw)&&n.N.enqueue(y.dw,F);return!0}; Nqf=function(n,Z){n.policy.Ns?n.N.splice(n.N.indexOf(Z)).forEach(function(F){F.dispose()}):(n.N.pop(),Z==null||Z.dispose())}; g.xI=function(n,Z){this.N=n[g.KQ.Symbol.iterator]();this.X=Z}; g.GI=function(n){g.I.call(this);var Z=this;this.mQ=n;this.vx={qz:function(){return Z.mQ}}}; rD=function(n){cq7(wq);var Z=n.N;Z=Z==null||hc3&&Z!=null&&Z instanceof Uint8Array?Z:typeof Z==="string"?N13(Z):null;return Z==null?Z:n.N=Z}; g.iI=function(n){if(!n.length)return"";try{if(Rg)return Rg.decode(n);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(n)}catch(a){}for(var Z=0,F=[],y=n.length;Z>10;m=56320|m&1023}gM[l++]=m}}m=String.fromCharCode.apply(String,gM); l<1024&&(m=m.substring(0,l));F.push(m)}return F.join("")}; sKP=function(n){var Z,F,y,l,m,a,D,p,L;return g.A(function(q){if(q.N==1){if(n.CR())return q.return(Promise.reject(Error(n.status.error||"disposed")));n.timeout.start();return g.x(q,n.md,2)}Z=n.N.HV();if(Z.isEnded())return n.pN("ended_in_finishTransition"),q.return(Promise.reject(Error(n.status.error||"")));if(!n.V||!PU(n.V))return n.pN("next_mse_closed"),q.return(Promise.reject(Error(n.status.error||"")));if(n.X.X2()!==n.V)return n.pN("next_mse_mismatch"),q.return(Promise.reject(Error(n.status.error|| "")));F=DH(n);y=F.gm;l=F.Fk;m=F.zD;n.N.Q_(!1,!0);a=mpe(n,Z,y,m,!n.X.getVideoData().isAd());n.X.setMediaElement(a);(D=n.N.mH())&&n.X.rj(D.GY,D.pz);n.L&&(n.policy.N||n.X.seekTo(n.X.getCurrentTime()+.001,{Tn:!0,l8:3,eO:"gapless_pseudo"}),a.play());p=Z.Zx();p.cpn=n.N.getVideoData().clientPlaybackNonce;p.st=""+y;p.et=""+m;n.X.Xp("gapless",p);n.N.Xp("gaplessTo",{cpn:n.X.getVideoData().clientPlaybackNonce});L=n.N.getPlayerType()===n.X.getPlayerType();n.N.NE(l,!0,!1,L,n.X.getVideoData().clientPlaybackNonce); n.X.NE(n.X.getCurrentTime(),!0,!0,L,n.N.getVideoData().clientPlaybackNonce);n.X.m4();g.MC(function(){!n.X.getVideoData().L&&n.X.getPlayerState().isOrWillBePlaying()&&n.X.WA()}); S4(n,6);n.dispose();return q.return(Promise.resolve())})}; EMj=function(){this.V=this.N=this.T=this.X=this.S=0}; uI=function(n){this.X=n;this.N=NaN;this.buffer=new Cl(100)}; OFf=function(n){bI(n.videoData,"html5_set_debugging_opt_in")&&(n=g.mM(),n.Wx(183)||(Xq(183,!0),n.save()))}; vwj=function(n){for(var Z=[],F=0;F1/6&&(Vk8(F),F.T=F.N);Z.d5.start()},1E4); g.S(this,this.Ns);g.S(this,this.lY);g.S(this,this.fR);g.S(this,this.SG);g.S(this,this.d5)}; vC=function(n,Z){if(!n)throw new TypeError("Expected instream video ad renderer");if(!n.playerVars)throw new TypeError("Expected player vars in url encoded string");var F=jy(n.playerVars),y=Number(F.length_seconds);if(isNaN(y))throw new TypeError("Expected valid length seconds in player vars");var l=Number(n.trimmedMaxNonSkippableAdDurationMs);y=isNaN(l)?y:Math.min(y,l/1E3);l=n.playerOverlay||{};l=l.instreamAdPlayerOverlayRenderer===void 0?null:l.instreamAdPlayerOverlayRenderer;var m=n.playerOverlay|| {};m=m.playerOverlayLayoutRenderer===void 0?null:m.playerOverlayLayoutRenderer;var a=F.video_id;a||(a=(a=n.externalVideoId)?a:void 0);if(!a)throw new TypeError("Expected valid video id in IVAR");if(Z&&y===0){var D;Z=(D=vMY[a])!=null?D:y}else Z=y;return{playerVars:F,videoLengthSeconds:Z,instreamAdPlayerOverlayRenderer:l,playerOverlayLayoutRenderer:m,adVideoId:a,Nd:n.pings?th(n.pings):new Map,O7:sf(n.pings)}}; ftT=function(n,Z){n=n===void 0?{}:n;switch(Z.type){case "ENTITY_LOADED":return Z.payload.reduce(function(y,l){var m,a=(m=l.options)==null?void 0:m.persistenceOption;if(a&&a!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&a!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return y;if(!l.entityKey)return g.ZW(Error("Missing entity key")),y;if(l.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!l.payload)return l=new g.FV("REPLACE entity mutation is missing a payload",{entityKey:l.entityKey}),g.ZW(l),y;var D=g.ep(l.payload); return QG(y,D,l.entityKey,l.payload[D])}if(l.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{l=l.entityKey;try{var p=g.kI(l).entityType;D=QG(y,p,l);break a}catch(w){if(w instanceof Error){l=new g.FV("Failed to deserialize entity key",{entityKey:l,originalMessage:w.message});g.ZW(l);D=y;break a}throw w;}D=void 0}return D}if(l.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!l.payload)return l=new g.FV("UPDATE entity mutation is missing a payload",{entityKey:l.entityKey}),g.ZW(l),y;D=g.ep(l.payload);var L,q;return Itn(y, D,l.entityKey,l.payload[D],(L=l.fieldMask)==null?void 0:(q=L.mergeOptions)==null?void 0:q.repeatedFieldsMergeOption)}return y},n); case "REPLACE_ENTITY":var F=Z.payload;return QG(n,F.entityType,F.key,F.Gq);case "REPLACE_ENTITIES":return Object.keys(Z.payload).reduce(function(y,l){var m=Z.payload[l];return Object.keys(m).reduce(function(a,D){return QG(a,l,D,m[D])},y)},n); case "UPDATE_ENTITY":return F=Z.payload,Itn(n,F.entityType,F.key,F.Gq,F.isr);default:return n}}; WhT=function(n,Z,F,y,l,m,a,D){D=D===void 0?!1:D;if(Z.uH&&a&&a.length>1&&!(Z.Tc>0||Z.L)){for(var p=Z.N||!!l,L=p&&Z.Hx?m:void 0,q=AJP(Z,y),w=[],T=[],P={},J=0;J0&&n.seekTo(0),n.Lz(),n.load(),RcP(n,null));delete n.J}; iFo=function(n){n=n||TO();for(var Z=new Sne(g.KQ.location.href,!1),F=null,y=n.length-1,l=y;l>=0;--l){var m=n[l];!F&&gM7.test(m.url)&&(F=m);if(m.url&&!m.N){Z=m;break}}l=null;m=n.length&&n[y].url;Z.depth!==0&&m&&(l=n[y]);return new HRK(Z,l,F)}; dM=function(n,Z,F,y,l,m){l=l===void 0?!1:l;m=m===void 0?!1:m;CW.call(this,n,{U:"button",K:"ytp-ad-button-vm"},"ad-button",Z,F,y);this.buttonText=this.buttonIcon=null;this.hide();this.N=l;this.X=m}; B9=function(n,Z,F){var y=n.api.getCurrentTime()*1E3>6|192;else{if(m>=55296&&m<=57343){if(m<=56319&&l=56320&&a<=57343){m=(m-55296)*1024+ a-56320+65536;y[F++]=m>>18|240;y[F++]=m>>12&63|128;y[F++]=m>>6&63|128;y[F++]=m&63|128;continue}else l--}if(Z)throw Error("Found an unpaired surrogate");m=65533}y[F++]=m>>12|224;y[F++]=m>>6&63|128}y[F++]=m&63|128}}n=F===y.length?y:y.subarray(0,F)}return n}; m8=function(n){return Math.round(XN()+n)}; xc3=function(n){var Z=n.adTimeOffset||{};n=Z.offsetEndMilliseconds;Z=Number(Z.offsetStartMilliseconds);if(isNaN(Z))throw new TypeError("Expected valid start offset");n=Number(n);if(isNaN(n))throw new TypeError("Expected valid end offset");return{s0:Z,kP:n}}; yQi=function(n){var Z,F,y=(Z=n.N)==null?void 0:(F=Z.bannerData)==null?void 0:F.itemData,l,m;if(!(y!=null&&y.priceReplacementText||n.W.j("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(y==null?0:(l=y.dealsData)==null?0:(m=l.sales)==null?0:m.originalPrice)){var a,D;return y==null?void 0:(a=y.dealsData)==null?void 0:(D=a.sales)==null?void 0:D.originalPrice}return null}; aZ=function(n,Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var y=F[1];F[0]===1?n.J(g.HP(y.namespace),y):n.J(g.dn(y.namespace),y)}}; l4=function(n,Z){var F=g.nO(Z),y;return(new g.O2(function(l,m){F.onSuccess=function(a){g.$V(a)?l(new dvn(a)):m(new SS("Request failed, status="+M5(a),"net.badstatus",a))}; F.onError=function(a){m(new SS("Unknown request error","net.unknown",a))}; F.onTimeout=function(a){m(new SS("Request timed out","net.timeout",a))}; y=g.jM(n,F)})).Mc(function(l){if(l instanceof Qv){var m; (m=y)==null||m.abort()}return cc(l)})}; Do=function(n){var Z;(Z=n.Hx)==null||Z.stop();n.C.hide();n.S.hide();Kq(n)}; g.RW=function(n){var Z={client:{hl:n.Jo,gl:n.rH,clientName:n.l_,clientVersion:n.innertubeContextClientVersion,configInfo:n.v6}};navigator.userAgent&&(Z.client.userAgent=String(navigator.userAgent));var F=g.KQ.devicePixelRatio;F&&F!=1&&(Z.client.screenDensityFloat=String(F));F=pq();F!==""&&(Z.client.experimentsToken=F);F=Lq();F.length>0&&(Z.request={internalExperimentFlags:F});DXU(n,void 0,Z);ljp(void 0,Z);dVY(void 0,Z);snf(n,void 0,Z);mln(void 0,Z);g.N5("start_client_gcf")&&kJn(void 0,Z);g.BT("DELEGATED_SESSION_ID")&& !g.N5("pageid_as_header_web")&&(Z.user={onBehalfOfUser:g.BT("DELEGATED_SESSION_ID")});!g.N5("fill_delegate_context_in_gel_killswitch")&&(n=g.BT("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Z.user=Object.assign({},Z.user,{serializedDelegationContext:n}));n=g.BT("INNERTUBE_CONTEXT");var y;if(g.N5("enable_persistent_device_token")&&(n==null?0:(y=n.client)==null?0:y.rolloutToken)){var l;Z.client.rolloutToken=n==null?void 0:(l=n.client)==null?void 0:l.rolloutToken}y=Object;l=y.assign;n=Z.client; F={};for(var m=g.Y(Object.entries(jy(g.BT("DEVICE","")))),a=m.next();!a.done;a=m.next()){var D=g.Y(a.value);a=D.next().value;D=D.next().value;a==="cbrand"?F.deviceMake=D:a==="cmodel"?F.deviceModel=D:a==="cbr"?F.browserName=D:a==="cbrver"?F.browserVersion=D:a==="cos"?F.osName=D:a==="cosver"?F.osVersion=D:a==="cplatform"&&(F.platform=D)}Z.client=l.call(y,n,F);return Z}; q1=function(n,Z){bp.call(this,n,Z);this.J=[]}; TB=function(n,Z,F){Z=ajj(Z);if(Z!=null){switch(typeof Z){case "string":KaU(Z)}if(Z!=null)switch(NC(n,F,0),typeof Z){case "number":n=n.N;ox(Z);w3(n,b8,XV);break;case "bigint":F=BigInt.asUintN(64,Z);F=new o6(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)));w3(n.N,F.X,F.N);break;default:F=KaU(Z),w3(n.N,F.X,F.N)}}}; hHY=function(n,Z){n.J.push(Z);g.S(n,Z);Z.oY(n.H1,n.H1.children.length)}; oZ=function(n,Z){return Number(n.data[Z])||0}; QU=function(n,Z,F,y,l){By.call(this,n,{U:"div",s8:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],D:[{U:"div",K:"ytp-ad-avatar-lockup-card__avatar_and_text_container",D:[{U:"div",K:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",Z,F,y,l);this.startMilliseconds=0;this.adAvatar=new Pw(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);g.S(this,this.adAvatar);aF(this.element,this.adAvatar.element,0);this.headline=new Je(this.api,this.layoutId, this.interactionLoggingClientData,this.Hr);g.S(this,this.headline);this.headline.oY(this.Vg("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);g.S(this,this.description);this.description.oY(this.Vg("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new dM(this.api, this.layoutId,this.interactionLoggingClientData,this.Hr);g.S(this,this.adButton);this.adButton.oY(this.element);this.hide()}; YB=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);var F=this.api.j("html5_enable_voice_boost");F&&this.events.G(n,"settingsMenuInitialized",function(){Dlo(Z)}); RS(this.api,"getVoiceBoostUserPreference",function(){return F?Z.getVoiceBoostUserPreference():0}); RS(this.api,"setVoiceBoostUserPreference",function(l){F&&Z.setVoiceBoostUserPreference(l)}); RS(this.api,"getVoiceBoostState",function(){return F?Z.getVoiceBoostState():1}); var y;this.N=(y=PHe())!=null?y:0;this.updateEnvironmentData()}; SX=function(n,Z){Z=Z===void 0?240:Z;g.R.call(this,{U:"button",s8:["ytp-button","ytp-search-button"],Z:{title:n.j("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.R6(n.B()))},D:[{U:"div",K:"ytp-search-icon",E8:"{{icon}}"},{U:"div",K:"ytp-search-title",E8:"Search"}]});this.api=n;this.X=Z;this.visible=!1;this.updateValue("icon",{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",K:"ytp-svg-fill",Z:{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"}}]}); n.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.N();this.G(n,"appresize",this.N);this.G(n,"videodatachange",this.N);XX(n,this.element,this)}; La7=function(n,Z,F,y,l,m,a){var D=new g.jX;psK.push(D);Z&&D.listen("complete",Z);D.Yq("ready",D.He);m&&(D.Ns=Math.max(0,m));a&&(D.J=a);D.send(n,F,y,l)}; N1=function(n,Z,F){var y=hP(n);n.CP===n.Vi.length-1&&wU("Unexpected skip with target requested during the last sublayout");if(F.renderingContent===void 0&&F.layoutId!==U9(y,Z,F)){wU("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",y.RW(),y.qs(),{requestingSlot:Z,requestingLayout:F});var l=!1}else l=!0;if(l){a:{if((l=o5(y.qs().clientMetadata,"metadata_type_ad_pod_skip_target"))&&l>0&&l=0,c18:l};Z.N&&(Z.mF()?(l.f142=!!Z.N.N["142"],l.f149=!!Z.N.N["149"],l.f279=!!Z.N.N["279"]):(l.f133=!!Z.N.N["133"],l.f140=!!Z.N.N["140"],l.f242=!!Z.N.N["242"]),l.cAAC=m,l.cAVC=ZN('video/mp4; codecs="avc1.42001E"'), l.cVP9=ZN('video/webm; codecs="vp9"'));Z.S&&(l.drmsys=Z.S.keySystem,m=0,Z.S.N&&(m=Object.keys(Z.S.N).length),l.drmst=m);return new g.Xv(y,l,a)})}; wsP=function(n,Z){var F=1;n.isTrusted===!1&&(F=0);Ka("ISDSTAT",F);Fy(F,"i.s_",{triggerContext:"sk",metadata:Z});return F}; T2K=function(n){var Z,F,y=(Z=n.getWatchNextResponse())==null?void 0:(F=Z.contents)==null?void 0:F.twoColumnWatchNextResults,l,m,a,D,p;n=(l=n.getWatchNextResponse())==null?void 0:(m=l.playerOverlays)==null?void 0:(a=m.playerOverlayRenderer)==null?void 0:(D=a.endScreen)==null?void 0:(p=D.watchNextEndScreenRenderer)==null?void 0:p.results;if(!n){var L,q;n=y==null?void 0:(L=y.endScreen)==null?void 0:(q=L.endScreen)==null?void 0:q.results}return n}; O9=function(n){n=n.split("-");var Z=Number(n[0]),F=Number(n[1]);if(!isNaN(Z)&&!isNaN(F)&&n.length===2&&(n=new MN(Z,F),!isNaN(n.start)&&!isNaN(n.end)&&!isNaN(n.length)&&n.length>0))return n}; y6=function(n){g.I.call(this);this.T=n;this.N=new Map;this.X=new g.e7(this.sample,250,this);g.S(this,this.X);this.start()}; VU=function(n,Z){var F=oEP(n,cw(n));!isNaN(n.V)&&Z&&(F.Pr=n.V);return F}; Aq=function(n){return n.keySystem==="com.microsoft.playready"}; lqQ=function(n,Z){E7(n,1,Z.formatId,V8,3);Sf(n,2,Z.startTimeMs);Sf(n,3,Z.durationMs);Sf(n,4,Z.Au);Sf(n,5,Z.hV);E7(n,9,Z.n7Q,NUo,3);E7(n,11,Z.atR,vw,1);E7(n,12,Z.G_,vw,1)}; PG7=function(n,Z,F){n1.call(this,"ad-message",n,void 0,Z,F)}; IZ=function(n){g.l0(n.S);n.S=NaN}; fq=function(n){var Z=kg(n),F=kg(n);n=(F>>31)*2+1;var y=F>>>20&2047;Z=4294967296*(F&1048575)+Z;return y==2047?Z?NaN:n*Infinity:y==0?n*4.9E-324*Z:n*Math.pow(2,y-1075)*(Z+4503599627370496)}; JQi=function(n,Z){n.J=Z;n.N=g.xq("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:Z.toString()});Z=n.V.map(Cs);Z.unshift(n.N);n.X&&Z.push(n.X);n.fK(Z)}; wL=function(n){this.AG=UO(n)}; Qnp=function(n){n=n.N;for(var Z in n){var F=n[Z].index;if(F.isLoaded())return F.pJ()+1}return 0}; r3=function(n,Z){Ae(n);n.loader.Kn();return Ww(Z,n.loader.isSeeking())}; BO=function(n){n.T.stop();for(var Z;!n.N.isEmpty();){var F=HO(n.N);var y=n.N.N;y=y.length!=0?y[0].getValue():void 0;if(F===void 0||y===void 0)break;if((y=n.map.get(y))&&y.dw===F){Z=F;break}else n.N.remove()}Z!==void 0&&(F=(0,g.tP)(),n.T.start(Math.max(Z-F,100)))}; g.xB=function(n,Z){return n.start-Z.start||n.priority-Z.priority||n.X-Z.X}; SZ8=function(n){return{QH:XM(n,1),action:ut(n,2),Vy:u5(n,3,YZi)}}; GB=function(n,Z){g.gi(n.W.getRootNode(),Z)}; RZ=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,Z:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}}; g3=function(n,Z){g.R.call(this,{U:"div",s8:["ytp-fullscreen-grid"],D:[{U:"button",s8:["ytp-fullscreen-grid-expand-button","ytp-button"],Z:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},D:["{{icon}}"]},{U:"div",K:"ytp-fullscreen-grid-hover-overlay",Z:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button", "data-tooltip-offset-y":"-70"}},{U:"div",K:"ytp-fullscreen-grid-main-content",D:[{U:"div",K:"ytp-fullscreen-grid-stills-container"}]}]});this.player=n;this.stills=[];this.videoData=null;this.currentState=0;this.S=this.player.j("web_player_use_external_grid_component");(this.L=this.player.j("web_player_enable_horizontal_endscreen_shelf"))&&g.gi(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf");this.X=this.Vg("ytp-fullscreen-grid-main-content");this.V=this.Vg("ytp-fullscreen-grid-stills-container"); this.S&&(this.V.style.display="none");this.T=new g.IS(this);g.S(this,this.T);this.J=Z;if(this.X&&this.V){if(n=this.Vg("ytp-fullscreen-grid-hover-overlay"))this.G(n,"click",this.C),XX(this.player,n,this);if(n=this.Vg("ytp-fullscreen-grid-expand-button"))this.G(n,"click",this.C),XX(this.player,n,this);if(n=this.player.getVideoData(1))this.videoData=n;this.player.createClientVe(this.X,this,223051);this.T.G(this.player,"videodatachange",this.onVideoDataChange)}}; iZ=function(n){this.N=n}; jnK=function(n,Z){var F=(Z-n.N)/(n.X-n.N);if(F<=0)return 0;if(F>=1)return 1;for(var y=0,l=1,m=0,a=0;a<8;a++){m=SD(n,F);var D=(SD(n,F+1E-6)-m)/1E-6;if(Math.abs(m-Z)<1E-6)return F;if(Math.abs(D)<1E-6)break;else m1E-6&&a<8;a++)m=Z&&l.end<=F&&(n.playback.removeCueRange(l),n.X.delete(l.getId()),n.oW({rmAdCR:1}));y=Tn(n,Z/1E3);Z=y.Bf;y=y.jK;Z&&(y=y*1E3-Z.I0,Meo(n,Z,y,Z.I0+y),y=n.X.get(Z.cpn))&&(y.start=Z.I0,y.end=Z.I0+Z.durationMs);if(Z=Tn(n,F/1E3).Bf){var m;y="playback_timelinePlaybackId_"+Z.sS+"_video_id_"+((m=Z.videoData)==null?void 0:m.videoId)+"_durationMs_"+Z.durationMs+ "_enterTimeMs_"+Z.I0+"_parentReturnTimeMs_"+Z.AD;n.iL("Invalid_clearEndTimeMs_"+F+"_that_falls_during_"+y+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; g9=function(n,Z,F,y){this.videoInfos=n;this.N=Z;this.audioTracks=[];this.X=y||[];if(this.N){n=new Set;F==null||F({ainfolen:this.N.length});Z=g.Y(this.N);for(y=Z.next();!y.done;y=Z.next())if(y=y.value,!y.J2||n.has(y.J2.id)){var l=void 0,m=void 0,a=void 0;(a=F)==null||a({atkerr:!!y.J2,itag:y.itag,xtag:y.N,lang:((l=y.J2)==null?void 0:l.name)||"",langid:((m=y.J2)==null?void 0:m.id)||""})}else l=new g.$$(y.id,y.J2),n.add(y.J2.id),this.audioTracks.push(l);F==null||F({atklen:this.audioTracks.length})}}; IjP=function(n,Z,F,y,l,m){if(!m)for(Z=g.Y(Z),m=Z.next();!m.done;m=Z.next())m=m.value,Tc(n,m.renderer,m.config.adPlacementConfig.kind);n=Array.from(n.values()).filter(function(q){return ZKT(q)}); Z=[];m=g.Y(n);for(var a=m.next(),D={};!a.done;D={lV:void 0},a=m.next()){D.lV=a.value;a=g.Y(D.lV.sJ);for(var p=a.next(),L={};!p.done;L={cH:void 0},p=a.next())L.cH=p.value,p=function(q,w){return function(T){return q.cH.CX(T,w.lV.instreamVideoAdRenderer.elementId,q.cH.tZ)}}(L,D),L.cH.isContentVideoCompanion?Z.push(vEp(F,y,l,D.lV.instreamVideoAdRenderer.elementId,L.cH.associatedCompositePlayerBytesLayoutId,L.cH.adSlotLoggingData,p)):n.length>1?Z.push(DW3(F,y,l,D.lV.instreamVideoAdRenderer.elementId,L.cH.adSlotLoggingData, function(q,w){return function(T){return q.cH.CX(T,w.lV.instreamVideoAdRenderer.elementId,q.cH.tZ,q.cH.associatedCompositePlayerBytesLayoutId)}}(L,D))):Z.push(DW3(F,y,l,D.lV.instreamVideoAdRenderer.elementId,L.cH.adSlotLoggingData,p))}return Z}; nP=function(n,Z,F,y){this.flavor=n;this.keySystem=Z;this.X=F;this.experiments=y;this.N={};this.G6=this.keySystemAccess=null;this.AE=this.Yr=-1;this.nL=null;this.T=!!y&&y.RY("edge_nonprefixed_eme");y&&y.RY("html5_enable_vp9_fairplay")}; fjp=function(n,Z){if((n=n.mQ.HV())&&(Z.errorCode==="fmt.unplayable"||Z.errorCode==="html5.invalidstate")){var F=n.RZ();Z.details.merr=F?F.toString():"0";Z.details.mmsg=n.bP()}}; e9Q=function(){this.T=[];this.X=0;this.N=new Zr}; Wa8=function(n,Z){F8(n.uY.get(),{cuepointTrigger:{event:AQP(Z.event),cuepointId:Z.identifier,totalCueDurationMs:Z.iy*1E3,playheadTimeMs:Z.N,cueStartTimeMs:Z.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:n.W.getVideoData(1).clientPlaybackNonce}})}; na=function(n,Z){if(g.N5("no_client_ve_attach_unless_shown")){var F=yE(n,Z);lU.set(F,!0);sC(n,Z)}}; uIp=function(){var n=null;if(!rQo)return n;try{var Z=function(F){return F}; n=rQo.createPolicy("goog#html",{createHTML:Z,createScript:Z,createScriptURL:Z})}catch(F){}return n}; js=function(n){var Z={};Z.dt=xlj;Z.flash="0";a:{try{var F=n.N.top.location.href}catch(L){n=2;break a}n=F?F===n.X.location.href?0:1:2}Z=(Z.frm=n,Z);try{Z.u_tz=-(new Date).getTimezoneOffset();try{var y=G5.history.length}catch(L){y=0}Z.u_his=y;var l;Z.u_h=(l=G5.screen)==null?void 0:l.height;var m;Z.u_w=(m=G5.screen)==null?void 0:m.width;var a;Z.u_ah=(a=G5.screen)==null?void 0:a.availHeight;var D;Z.u_aw=(D=G5.screen)==null?void 0:D.availWidth;var p;Z.u_cd=(p=G5.screen)==null?void 0:p.colorDepth}catch(L){}return Z}; hk=function(n,Z,F,y){return BW(B6().N.N,function(){var l=g.S7.apply(0,arguments);return Gij(n,function(){return Z.apply(F,l)},y)})}; md=function(n,Z,F,y,l){l||n.api.B().X?Z.style.width=F+"px":g.a$(Z,"transform","scalex("+(y?F/y:0)+")")}; aj=function(n,Z,F){F=F===void 0?!1:F;return X6j(n,Z.getCurrentTime(),(0,g.tP)(),Z.yq(),F)}; Gri=function(n){switch(n){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"}}; bb=function(){g.I.apply(this,arguments);this.Sfg=new Map}; g.N5=function(n){n=GJ(n);return typeof n==="string"&&n==="false"?!1:!!n}; gE8=function(n){var Z=K9K();if(Z)return Rpo[Z]||Rpo.other;if(g.f4(n.Y)){n=navigator.userAgent;if(/[Ww]ireless[)]/.test(n))return 3;if(/[Ww]ired[)]/.test(n))return 30}return 0}; Dz=function(n,Z){n=NY(n,Z);return n>=0?n-Z:0}; CG3=function(n){return n&&n.match(i03)?n:KP(n)}; uUn=function(n,Z,F,y,l){this.O8=n;this.startSecs=Z;this.iy=F;this.N=y||NaN;this.X=l||NaN}; xC7=function(n){this.N=n;n.kR("/client_streamz/bg/ec",g.l8("en"),g.l8("mk"))}; b07=function(n,Z,F){var y;QA(n.uY.get(),"ads_qua","cpn."+o5(n.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=tI(n.nR.get(),2))==null?void 0:y.clientPlaybackNonce)+";qt."+Z+";clr."+F)}; zpP=function(n,Z){if(Z.authorizedFormats)for(var F=0;FF)break}return y}; pWj=function(n){wU("Received layout exit signal when not in layout exit flow.",n.slot,n.layout)}; $vi=function(n,Z){Z=n.N&&!Z;return n.FO||Z?new g.jX(new g.aI({v6Q:n.FO,dN:Z})):new g.jX}; m0j=function(n,Z){return new Promise(function(F){g.HX(0,function(){F(Z())},n)})}; STK=function(n,Z){return g.f4(n.api.B())&&SU(Z)&&jU(Z)?g.Cv(n.api.B(),g.uf(n.api.getVideoData())).then(function(F){var y;F&&(y={Authorization:"Bearer "+F});return y},void 0):FM()}; ZL=function(n){g.I.call(this);this.provider=n;this.C="paused";this.S=NaN;this.J=[10,10,10,40];this.Pr=this.L=0;this.Tx=this.Wr=this.w5=this.Ns=this.T=!1;this.X=this.V=NaN;this.logger=new g.hL("vss");this.N=new UC(n)}; m9=function(n){return n.length?Rg?Rg.decode(n):String.fromCharCode.apply(null,n):""}; dOe=function(n){this.experiments=n;this.N=2048;this.V=0;this.Ns=(this.J=this.j("html5_streaming_resilience"))?.5:.25;var Z=Z===void 0?0:Z;this.T=g.jf(this.experiments,"html5_media_time_weight_prop")||Z;this.Pr=(this.S=this.experiments.RY("html5_consider_end_stall"))&&gT;this.X=this.experiments.RY("html5_measure_max_progress_handling");this.L=this.j("html5_treat_requests_pre_elbow_as_metadata");this.C=this.j("html5_media_time_weight")||!!this.T;this.j("html5_sabr_live_audio_early_return_fix")&&gT&& (this.N=65536)}; Jq=function(n){this.tG=n}; g.OD7=function(n){var Z=n.vssId;n.translationLanguage&&Z&&(Z="t"+Z+"."+g.NB(n));return Z}; g.h7=function(n,Z){Z=qD(n,Z);Z>=0&&g.ye(n,Z)}; dGQ=function(n,Z){var F=Z.code;F!==void 0&&(YC(n,8),YC(n,F<<1^F>>31));Px(n,2,Z.message)}; EC=function(n){n.Tx&&clearTimeout(n.Tx);n.Tx=void 0;n.Pr=!1}; eE=function(n,Z,F){F=g.Y(F);for(var y=F.next();!y.done;y=F.next())if(y=y.value,!n.Pj.iT.get(y.triggerType))throw new JT("No trigger adapter registered for "+zO8.get(Z)+" trigger of type: "+y.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; a$n=function(n,Z){if(!n.N["0"]){var F=new mZ("0","fakesb",{video:new P4(0,0,0,void 0,void 0,"auto")});n.N["0"]=Z?new FN(new g.yD("http://www.youtube.com/videoplayback"),F,"fake"):new lK(new g.yD("http://www.youtube.com/videoplayback"),F,new MN(0,0),new MN(0,0))}}; K$e=function(n){Hb(n,"impression")&&!Hb(n,"seek")&&n.rB("active_view_viewable")}; qdf=function(n,Z){D0K(n);for(var F=Z.links||Z.shareTargets,y=0,l={},m=0;m0&&!u&&!W?(f.length===2&&(f=["noreferrer"]),g.SP(P,U,T,f[0]),P=L$U()):(h=V.join(","),C4()&&P.navigator&&P.navigator.standalone&&T&&T!="_self"?(h=g.FI("A"),g.Hi(h,U),h.target=T,v&&(h.rel="noreferrer"),((J=J.attributionsrc)||J==="")&&h.setAttribute("attributionsrc",J),J=document.createEvent("MouseEvent"), J.initMouseEvent("click",!0,!0,P,1),h.dispatchEvent(J),P=L$U()):v?(P=g.SP(P,"",T,h),J=g.t6(U),P&&(P.opener=null,J===""&&(J="javascript:''"),J='',J=k6(J),(U=P.document)&&U.write&&(U.write(YH(J)),U.close()))):((P=g.SP(P,U,T,h))&&J.noopener&&(P.opener=null),P&&J.noreferrer&&(P.opener=null)));P&&(P.opener||(P.opener=window),P.focus());w.preventDefault()}}}(l)); l.Ty.addOnDisposeCallback(g.l9(n.tooltip,l.Ty.element));D==="Facebook"?n.api.createClientVe(l.Ty.element,l.Ty,164504):D==="Twitter"&&n.api.createClientVe(l.Ty.element,l.Ty,164505);n.G(l.Ty.element,"click",function(q){return function(){n.api.logClick(q.Ty.element)}}(l)); n.api.logVisibility(l.Ty.element,!0);n.X.push(l.Ty);y++}}var p=Z.more||Z.moreLink,L=new g.R({U:"a",s8:["ytp-share-panel-service-button","ytp-button"],D:[{U:"span",K:"ytp-share-panel-service-button-more",D:[{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},D:[{U:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{U:"path",Z:{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"}}]}]}],Z:{href:p,target:"_blank",title:"More"}});L.listen("click",function(q){var w=p;n.api.logClick(n.moreButton.element);w=VoY(n,w);g.sq(w,n.api,q)&&n.api.LR("SHARE_CLICKED")}); L.addOnDisposeCallback(g.l9(n.tooltip,L.element));n.api.createClientVe(L.element,L,164506);n.G(L.element,"click",function(){n.api.logClick(L.element)}); n.api.logVisibility(L.element,!0);n.X.push(L);n.moreButton=L;n.updateValue("buttons",n.X)}; P0=function(){}; FN=function(n,Z,F,y,l,m){m=m===void 0?0:m;Fd.call(this,n,Z,y,void 0);this.S=F;this.H7=m;this.index=l||new g.c_}; g.WU=function(n,Z,F){n.N=F?Ro(Z,!0):Z}; SvT=function(n){this.pos=0;this.X=[];this.N=tzQ(n===void 0?4096:n);this.view=new DataView(this.N.buffer,this.N.byteOffset,this.N.byteLength)}; ToP=function(n,Z,F){for(var y=[],l=g.Y(n),m=l.next();!m.done;m=l.next())if(m=g.e(m.value.renderingContent,n7)){if(!gd(m))return new C("Invalid vod media renderer");y.push(wAn(m))}l=y.map(function(w){return w.MK}); m=[];for(var a=0,D=0;Dn.T)throw Error();}; TCK=function(n){return g.i8(n.N,function(Z){return Z.info.video?Z.info.video.stereoLayout===1:!1})}; oQU=function(n){var Z=p$(Number(n));if(L$(Z))return t$(Z);Z=n.indexOf(".");Z!==-1&&(n=n.substring(0,Z));return dy()?t$(VE(64,BigInt(n))):t$(wVT(n))}; g.ly=function(n,Z,F,y){function l(L){try{if((L===void 0?0:L)&&y.retry&&!y.networklessOptions.bypassNetworkless)m.method="POST",y.networklessOptions.writeThenSend?SM().writeThenSend(p,m):SM().sendAndWrite(p,m);else if(y.compress){var q=!y.networklessOptions.writeThenSend;if(m.postBody){var w=m.postBody;typeof w!=="string"&&(w=JSON.stringify(m.postBody));wv(p,w,m,g.jM,q)}else wv(p,JSON.stringify(m.postParams),m,bK,q)}else bK(p,m)}catch(T){if(T.name==="InvalidAccessError")Un(Error("An extension is blocking network request.")); else throw T;}} !g.BT("VISITOR_DATA")&&Z!=="visitor_id"&&Math.random()<.01&&Un(new g.FV("Missing VISITOR_DATA when sending innertube request.",Z,F,y));if(!n.isReady())throw n=new g.FV("innertube xhrclient not ready",Z,F,y),g.hp(n),n;var m={headers:y.headers||{},method:"POST",postParams:F,postBody:y.postBody,postBodyFormat:y.postBodyFormat||"JSON",onTimeout:function(){y.onTimeout()}, onFetchTimeout:y.onTimeout,onSuccess:function(L,q){if(y.onSuccess)y.onSuccess(q)}, onFetchSuccess:function(L){if(y.onSuccess)y.onSuccess(L)}, onProgress:function(L){if(y.onProgress)y.onProgress(L)}, onError:function(L,q){if(y.onError)y.onError(q)}, onFetchError:function(L){if(y.onError)y.onError(L)}, timeout:y.timeout,withCredentials:!0,compress:y.compress};m.headers["Content-Type"]||(m.headers["Content-Type"]="application/json");F="";var a=n.config_.NV;a&&(F=a);a=n.config_.Xq||!1;var D=PAj(a,F,y);Object.assign(m.headers,D);m.headers.Authorization&&!F&&a&&(m.headers["x-origin"]=window.location.origin);var p=TQ(""+F+("/youtubei/"+n.config_.innertubeApiVersion+"/"+Z),{alt:"json"});g.Di("ytNetworklessLoggingInitializationOptions")&&Jkf.isNwlInitialized?QIY().then(function(L){l(L)}):l(!1)}; al=function(n,Z){return Be(n.segments,function(F){return Z-F.O8})}; Yd8=function(n){this.data=n}; jIe=function(n,Z){var F,y,l,m,a,D,p;return g.A(function(L){if(L.N==1){F=g.fG();var q=n.B(),w={context:g.ij(n),playbackContext:{contentPlaybackContext:{ancestorOrigins:q.ancestorOrigins}}},T=q.getWebPlayerContextConfig();if(T==null?0:T.encryptedHostFlags)w.playbackContext.contentPlaybackContext.encryptedHostFlags=T.encryptedHostFlags;if(T==null?0:T.hideInfo)w.playerParams={showinfo:!1};T=q.embedConfig;var P=n.nD;var J=Z.docid||Z.video_id||Z.videoId||Z.id;if(!J){J=Z.raw_embedded_player_response;if(!J){var U= Z.embedded_player_response;U&&(J=JSON.parse(U))}if(J){var h,v,V,f,W,X;J=((X=g.e((h=J)==null?void 0:(v=h.embedPreview)==null?void 0:(V=v.thumbnailPreviewRenderer)==null?void 0:(f=V.playButton)==null?void 0:(W=f.buttonRenderer)==null?void 0:W.navigationEndpoint,g.v_))==null?void 0:X.videoId)||null}else J=null}h=(h=J)?h:void 0;v=n.playlistId?n.playlistId:Z.list;V=Z.listType;if(v){var u;V==="user_uploads"?u={username:v}:u={playlistId:v};oqi(T,P,h,Z,u,q.experiments);w.playlistRequest=u}else Z.playlist? (u={templistVideoIds:Z.playlist.toString().split(",")},oqi(T,P,h,Z,u,q.experiments),w.playlistRequest=u):h&&(u={videoId:h},P&&q.j("embeds_enable_per_video_embed_config")?u.serializedThirdPartyEmbedConfig=P:T&&(u.serializedThirdPartyEmbedConfig=T),w.singleVideoRequest=u);y=w;l=g.SA(SdK);g.RX(L,2);return g.x(L,g.jA(F,y,l),4)}if(L.N!=2)return m=L.X,a=n.B(),Z.raw_embedded_player_response=m,a.zx=K$(Z,g.R6(a)),a.T=a.zx==="EMBEDDED_PLAYER_MODE_PFL",m&&(D=m,D.trackingParams&&Av(D.trackingParams)),L.return(new g.O8(a, Z));p=g.d4(L);p instanceof Error||(p=Error("b259802748"));g.ZW(p);return L.return(n)})}; Ij=function(n,Z,F,y){n3.call(this,n,Z,F,y)}; NCQ=function(n,Z,F){var y=o5(Z.clientMetadata,"metadata_type_sodar_extension_data");if(y)try{U0T(F,y)}catch(l){wU("Unexpected error when loading Sodar",n,Z,{error:l})}}; t$=function(n){var Z=n;if(fP(Z)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(Z))throw Error(String(Z));}else if(h8j(Z)&&!Number.isSafeInteger(Z))throw Error(String(Z));return A7?BigInt(n):n=EQj(n)?n?"1":"0":fP(n)?n.trim()||"0":String(n)}; Mu=function(n,Z){if(bx(n,Z)){Z=Xn(n);var F=Ge(n.N,n.pos,Z);n.pos+=Z;return F}}; fg=function(n,Z,F,y){var l=m1(Z);!l||l.T||v0(l,y)||(F.abort(),n.policy.Hf&&(l=Z.J)!=null&&(l.T=void 0),(Z=Z.L)!=null&&(W_(Z,4),Z.flush()));if(!F.xI()||y1())try{n.policy.SjT?F.CE(y.bY.info.containerType,y.bY.info.vr)&&F.pC(y.bY.info.containerType,y.bY.info.vr,y.bY.info.mimeType):F.Gh(y.bY.info.containerType,y.bY.info.mimeType)}catch(m){return F=m,g.yi(F),n.Xp("ctexp",{name:F.name,msg:F.message}),!1}else y.bY.info.containerType!==F.xI()&&n.Xp("ctu",{ct:y1(),prev_c:F.xI(),curr_c:y.bY.info.containerType}); Z=y.bY.V;n.policy.fY&&Z&&(y=0+Z.duration,Z=-Z.N,0===F.fV()&&y===F.P6()||F.Zu(0,y),Z!==F.Kn()&&(F.Wf(Z),bA&&O$n(n.audioTrack.Jl(),F.vY())));return!0}; Rb7=function(n,Z){g.W2(n.info.bY.info)||n.info.bY.info.dV();n.T=Z;if(g.W2(n.info.bY.info)){var F=g.sj(n);n=n.info.bY.N;for(var y=NaN,l=NaN,m=0;Jn(F,m);){var a=d3(F,m);isNaN(y)&&(a.type===1936286840?y=a.data.getUint32(a.dataOffset+8):a.type===1836476516&&(y=g.HL(a)));if(a.type===1952867444){!y&&n&&(y=dJ(n));var D=g.rv(a);isNaN(l)&&(l=Math.round(Z*y)-D);var p=a;D+=l;if(p.data.getUint8(p.dataOffset)){var L=p.data;p=p.dataOffset+4;L.setUint32(p,Math.floor(D/4294967296));L.setUint32(p+4,D&4294967295)}else p.data.setUint32(p.dataOffset+ 4,D)}m=x$(a.type)?m+8:m+a.size}return!0}F=new lY(g.sj(n));n=n.S?F:new lY(new DataView(n.info.bY.N.buffer));y=Fi(n);n=F.pos;F.pos=0;if(db(F)&&Wy(F,231))if(l=ar(F,!0),Z=Math.floor(Z*1E9/y),Math.ceil(Math.log(Z)/Math.log(2)/8)>l)Z=!1;else{for(y=l-1;y>=0;y--)F.N.setUint8(F.pos+y,Z&255),Z>>>=8;F.pos=n;Z=!0}else Z=!1;return Z}; cke=function(n,Z){Z=Z===void 0?0:Z;var F=g.BT("client-screen-nonce-store");F||(F={},Ka("client-screen-nonce-store",F));F[Z]=n}; I$8=function(n,Z){return Qz(VM7,function(){var F=this;return function l(){var m,a,D;return Gk(l,function(p){switch(p.N){case 1:g.Rj(p,2);if(!F.N)throw"wasm.ps.ns";m=n;a=gv;return iU(p,CP(vQf(F,Z)),4);case 4:D=a(p.X);if(!D)throw"wasm.ps.um";return iU(p,CP(WebAssembly.instantiate(D,m)),5);case 5:return p.return(p.X);case 2:g.cJ(p),g.zu(p,0)}})}()})}; bU=function(n,Z,F,y,l){g.uU.call(this);this.X=n;this.S=Z;this.C=F;this.V=y;this.J=Array.isArray(l)?l:[l]}; Vt=function(n,Z){var F=f$K[Z];if(!F){var y=Akj(Z);F=y;n.style[y]===void 0&&(y=(g.Gc?"Webkit":X8?"Moz":null)+PPi(y),n.style[y]!==void 0&&(F=y));f$K[Z]=F}return F}; zk=function(n){this.value=n}; W$e=function(n){function Z(m,a,D){a=a.match("_rid")?a.split("_rid")[0]:a;typeof D==="number"&&(D=JSON.stringify(D));m.requestIds?m.requestIds.push({endpoint:a,id:D}):m.requestIds=[{endpoint:a,id:D}]} var F={};n=g.Y(Object.entries(n));for(var y=n.next();!y.done;y=n.next()){var l=g.Y(y.value);y=l.next().value;l=l.next().value;switch(y){case "GetBrowse_rid":Z(F,y,l);break;case "GetGuide_rid":Z(F,y,l);break;case "GetHome_rid":Z(F,y,l);break;case "GetPlayer_rid":Z(F,y,l);break;case "GetSearch_rid":Z(F,y,l);break;case "GetSettings_rid":Z(F,y,l);break;case "GetTrending_rid":Z(F,y,l);break;case "GetWatchNext_rid":Z(F,y,l);break;case "yt_red":F.isRedSubscriber=!!l;break;case "yt_ad":F.isMonetized=!!l}}return F}; fv=function(n,Z,F,y){var l=l===void 0?!1:l;F=hk(y,F);Ed(n,Z,F,{capture:l})}; fL=function(n,Z){n.msg=Xo[Z];return Z}; mD=function(n,Z){for(var F=0;F=Z)return F}n=g.Y(n.X.values());for(F=n.next();!F.done;F=n.next())if(F=F.value,F.start<=Z&&F.end>=Z)return F}; x0f=function(n){return IF(n,function(Z){return"FORMAT_STREAM_TYPE_OTF"===Z.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Gn8=function(n){Hb(n,"impression")&&!Hb(n,"seek")&&n.rB("audio_measurable")}; xd=function(n,Z){if(Z){El=Z==null||Z===Ol||Z[R8f]!==gQ8?Ol:Z;try{return Hk(n)}finally{El=void 0}}return Hk(n)}; g.kI=function(n){var Z=new lT(new y9([vx(decodeURIComponent(n))]));n=XM(Z,2);Z=ut(Z,4);var F=i$Y[Z];if(typeof F==="undefined")throw n=new g.FV("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:Z}),g.ZW(n),n;return{pI:Z,entityType:F,entityId:n}}; W9=function(){var n=CA3();n=n===void 0?"bevasrsg":n;return new Promise(function(Z){var F=window===window.top?window:uBP()?window:window.top,y=F[n],l;((l=y)==null?0:l.bevasrs)?Z(new k$(y.bevasrs)):(y||(y={},y=(y.nqfbel=[],y),F[n]=y),y.nqfbel.push(function(m){Z(new k$(m))}))})}; eU=function(n,Z,F){n=Ge(n,Z===void 0?0:Z,F===void 0?-1:F);Z=new Uint8Array(n.length);try{Z.set(n)}catch(y){for(F=0;F1?p[1]:""),L=p==="/pagead";p=L?!0:!1}p=!p}p||l&&Z[m]!==void 0||y==="TVHTML5_UNPLUGGED"&&D||(Z[m]=a)}"X-Goog-EOM-Visitor-Id"in Z&&"X-Goog-Visitor-Id"in Z&&delete Z["X-Goog-Visitor-Id"];if(F||!g.g1(n))Z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(F||!g.g1(n)){try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(w){}q&&(Z["X-YouTube-Time-Zone"]=q)}document.location.hostname.endsWith("youtubeeducation.com")||!F&&g.g1(n)||(Z["X-YouTube-Ad-Signals"]= C8(Nh()));return Z}; Sq=function(n,Z,F){F=F===void 0?0:F;return g.jf(n.iY.experiments,Z)||F}; tMp=function(n){if(n!==dv)throw Error();}; YH=function(n){if(n instanceof F9)return n.N;throw Error("");}; g.B_=function(n,Z){for(var F=0,y=[];Jn(n,F);){var l=d3(n,F);l.type===Z&&y.push(l);F=x$(l.type)?F+8:F+l.size}return y}; $l=function(n,Z,F){try{if(n){if(!Z.top)return new Bk(-12245933,-12245933,-12245933,-12245933);Z=Z.top}var y=HZp(n,Z,F),l=y.height,m=y.width;if(m===-12245933)return new Bk(m,m,m,m);var a=MB(Z.document);var D=knK(a.N);var p=D.x,L=D.y;return new Bk(L,p+m,L+l,p)}catch(q){return new Bk(-12245933,-12245933,-12245933,-12245933)}}; Iq=function(n){this.N=n}; H$p=function(n,Z){n.N&&e88(n.N,Z)}; bjK=function(){var n={};var Z=n.url;var F=n.interval;n=n.retries;this.url=Z;this.interval=F;this.retries=n}; g.ri=function(n){return n.w5==="embedded"}; LF=function(n){var Z=g.Di("yt.scheduler.instance.setPriorityThreshold");Z&&Z(n)}; nN=function(n,Z,F,y){F=F===void 0?.5:F;y=y===void 0?0:y;this.resolution=Z;this.X=0;this.T=!1;this.Qq=!0;this.N=Math.round(n*this.resolution);this.values=Array(this.N);for(n=0;n2147483647?-1:g.KQ.setTimeout(n,Z||0)}; xmU=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; Wm=function(n,Z){for(var F in Z)if(H7(Z[F])){if(F in n&&!H7(n[F]))throw Error("Cannot merge an object into a non-object.");F in n||(n[F]={});Wm(n[F],Z[F])}else if(Gr(Z[F])){if(F in n&&!Gr(n[F]))throw Error("Cannot merge an array into a non-array.");F in n||(n[F]=[]);GHQ(n[F],Z[F])}else n[F]=Z[F];return n}; oG=function(n,Z){Z=Z===void 0?0:Z;if(n instanceof g.Xv)return n;n=n&&n instanceof Error?n:Error(""+n);W0(Z)?g.ZW(n):g.yi(n);return new g.Xv(Z===1?"player.fatalexception":"player.exception",{name:""+n.name,message:""+n.message},Z)}; hB=function(n,Z,F){g.KG.call(this,Z,n);this.N=F}; R7o=function(n){this.N=n.playback_progress_0s_url;this.T=n.playback_progress_2s_url;this.X=n.playback_progress_10s_url}; GD=function(n,Z){var F=c_T(n.provider);Object.assign(F,{state:n.C});Z=new rj(n.provider.videoData,n.provider.Y,Z,F);Z.N=n.provider.mQ.FY();F=n.provider.videoData.clientPlaybackNonce;Z.N=n.provider.mQ.Sq(F);n.provider.videoData.isLivePlayback||(Z.jT=n.provider.mQ.getDuration(F));n.provider.videoData.N&&(F=n.provider.videoData.N.Xh(Z.N))&&(Z.Ns=F-Z.N,U0(n.provider.videoData)&&(Z.N+=n.provider.mQ.Kn(),Z.Ns-=n.provider.mQ.Kn()));Z.ud=g.kq(n.provider);Z.segments=[xl(n.provider)];return Z}; d3=function(n,Z){var F=n.getUint32(Z),y=n.getUint32(Z+4);return new IV(n,Z,F,y)}; EA=function(){var n=otQ();R_.call(this,G5.top,n,"geo")}; fWj=function(n){this.W=n}; Ru=function(n,Z,F,y,l,m){Tf.call(this,n,Z,F,y);this.uY=l;this.wM=m;this.dJ=!0;P2(this.wM(),this);n=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,n,F.layoutId)}; f0j=function(n,Z,F,y,l){n.S=Z;n.T=F;n.C=y;n.J=l}; NVi=function(n){return new Bk(n.top,n.right,n.bottom,n.left)}; isT=function(n,Z){if(!n.length)return!1;for(Z+=1;Z>>0;n=n.N;var F=o1e(n,Z);n=n.X;if(CSe){var y=n,l;(l=CN)||(l=CN=new TextDecoder("utf-8",{fatal:!0}));Z=F+Z;y=F===0&&Z===y.length?y:y.subarray(F,Z);try{var m=l.decode(y)}catch(L){if(uC===void 0){try{l.decode(new Uint8Array([128]))}catch(q){}try{l.decode(new Uint8Array([97])),uC=!0}catch(q){uC=!1}}!uC&&(CN=void 0);throw L;}}else{m=F;Z=m+Z;F=[];for(var a=null,D,p;m=Z?W1():(p=n[m++],D<194||(p&192)!==128?(m--,W1()):F.push((D&31)<<6|p&63)): D<240?m>=Z-1?W1():(p=n[m++],(p&192)!==128||D===224&&p<160||D===237&&p>=160||((l=n[m++])&192)!==128?(m--,W1()):F.push((D&15)<<12|(p&63)<<6|l&63)):D<=244?m>=Z-2?W1():(p=n[m++],(p&192)!==128||(D<<28)+(p-144)>>30!==0||((l=n[m++])&192)!==128||((y=n[m++])&192)!==128?(m--,W1()):(D=(D&7)<<18|(p&63)<<12|(l&63)<<6|y&63,D-=65536,F.push((D>>10&1023)+55296,(D&1023)+56320))):W1(),F.length>=8192&&(a=taf(a,F),F.length=0);m=taf(a,F)}return m}; B4=function(n){if(n.KR)return n.KR.readyState;switch(n.m9.webkitSourceState){case n.m9.SOURCE_OPEN:return"open";case n.m9.SOURCE_ENDED:return"ended";default:return"closed"}}; uhp=function(n){return(n===void 0?0:n)&&g.N5("vss_through_gel_video_stats")?"video_stats":"log_event"}; bsQ=function(){for(var n=["metadata_type_invideo_overlay_ad_renderer"],Z=g.Y(U2()),F=Z.next();!F.done;F=Z.next())n.push(F.value);return{Nj:n,ZM:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; zd=function(n){n.removeCueRange(n.pk);n.pk=null}; We=function(n,Z){n.X=Z;g.pv("yt.gcf.config.hotConfigGroup",n.X||null)}; Xl8=function(n,Z){if(Z=Z.content&&Z.content.adFeedbackRenderer||null)n.X=new XD(n.api,n.layoutId,n.interactionLoggingClientData,n.Hr),g.S(n,n.X),n.X.init(Tb("ad-feedback-dialog"),Z,n.macros),n.X.oY(n.zx),n.X.subscribe("a",function(){return n.publish("c")})}; z7o=function(n){this.Xp=n;this.N={}}; zD=function(n,Z,F){var y=n[kt]|0,l=CZ(y),m=za(n,F,l);if(m!=null&&m[tS]===ka){if(!t9(m))return Lz(m),m.AG;var a=m.AG}else Array.isArray(m)&&(a=m);if(a){var D=a[kt]|0;D&2&&(a=X1(a,D))}a=Rd(a,Z);a!==m&&uF(n,y,F,a,l);return a}; tnK=function(){this.N=g.BT("ALT_PREF_COOKIE_NAME","PREF");this.X=g.BT("ALT_PREF_COOKIE_DOMAIN","youtube.com");var n=g.qs(this.N);n&&this.parse(n)}; tc=function(n,Z){return n+"_"+Z.videoId+"_"+Z.sS+"_"+ +Z.isAutonav+ +Z.Bt}; kHK=function(n,Z,F){var y=Z.videoId;y&&(n.videoId=y,F.video_id||(F.video_id=y));if(y=Z.title)n.title=y,F.title||(F.title=y);if(y=Z.lengthSeconds)n.lengthSeconds=Number(y),F.length_seconds||(F.length_seconds=y);if(y=Z.keywords)n.keywords=r57(y);if(y=Z.channelId)n.z6=y,F.ucid||(F.ucid=y);if(y=Z.viewCount)n.rawViewCount=Number(y);if(y=Z.author)n.author=y,F.author||(F.author=y);if(F=Z.shortDescription)n.shortDescription=F;if(F=Z.isCrawlable)n.isListed=F;if(F=Z.musicVideoType)n.musicVideoType=F;F=Z.isLive; F!=null&&(n.isLivePlayback=F);if(F||Z.isUpcoming)n.isPremiere=!Z.isLiveContent;if(F=Z.thumbnail)n.lG=kl(F);if(F=Z.isExternallyHostedPodcast)n.isExternallyHostedPodcast=F;(F=Z.stationType)&&F!=="STATION_TYPE_UNKNOWN"&&(n.vi5=!0);Z=Z.viewerLivestreamJoinPosition;if(Z==null?0:Z.utcTimeMillis)n.P$=n_(Z.utcTimeMillis)}; e73=function(n,Z){Ng(n.api.B())&&(Z?n.S.show():n.S.hide())}; e9=function(n,Z,F,y,l){for(var m=[],a=g.Y(n.uN.values()),D=a.next();!D.done;D=a.next()){var p=D=D.value,L=p.trigger;p=p.slot;if(L.triggerType===Z){if(L instanceof BC||L instanceof zg||L instanceof t0){if(l&&L.breakDurationMs!==F)continue;if(!l&&L.breakDurationMs===F)continue;if(y.has(p.slotId))continue}m.push(D)}}m.length>0&&R4(n.C(),m)}; Hsp=function(n,Z){var F;Z&&(F=g.YW(n.V.N,function(l){return l.id===Z})); if(!F&&(F=g.YW(n.V.N,function(l){var m;return!((m=l.J2)==null||!m.isDefault)}),Z)){var y; n.Xp("iaf",{id:Z,sid:(y=F)==null?void 0:y.id})}return F}; Xsn=function(n,Z){Sf(n,1,Z.trackType);Hm(n,2,Z.isHdr)}; BQ8=function(n,Z){this.statusCode=n;this.message=Z;this.T=this.heartbeatParams=this.errorMessage=null;this.X=[];this.N={};this.nextFairplayKeyId=null}; oLf=function(n){return Array.prototype.map.call(n,function(Z){Z=Z.toString(16);return Z.length>1?Z:"0"+Z}).join("")}; oKn=function(n,Z,F){if(Z&&Z.status===204)return!0;switch(n){case "JSON":return!!F;case "XML":return Number(F&&F.return_code)===0;case "RAW":return!0;default:return!!F}}; dj=function(n){this.W=n}; t8=function(n,Z){Z=Z===void 0?!1:Z;var F=Bm[n],y=dmp[F],l=B$7[n];if(!l||!y)return null;Z=new P4(Z?l.height:l.width,Z?l.width:l.height,l.fps);y=xg(y,Z,F);return new mZ(n,y,{video:Z,Qg:l.bitrate/8})}; ZsK=function(n,Z){n.S=!0;g.MC(function(){n.S&&x68.call(null,Z)})}; l9n=function(n,Z,F,y,l,m,a,D,p){var L=Mnp(n,m,m+l);n.L&&n.oW({adaftto:1});F||n.oW({missadcon:1,enter:m,len:l,aid:D});n.V&&!n.V.Ct&&(n.V.Ct=D);n.nm&&n.oW({adfbk:1,enter:m,len:l,aid:D});var q=n.playback;m>a&&eS(n,{reason:"enterTime_greater_than_return",I0:m,AD:a});var w=q.LJ()*1E3;mq&&eS(n,{reason:"parent_return_greater_than_content_duration",AD:a,r7p:q});(q=$sf(n.N,m))&&q.AD>m&&nSK(n,Z.video_id|| "",m,a,q);if(L&&q)for(w=0;w=this.length))return this[n]}; yV=function(n,Z){var F=KF(Z.bY,n.eT.t2),y,l=((y=n.Tx)==null?void 0:y.Dr(F))||[];if(l.length===0)return n.Xp("ombmsi",{}),!1;y=new HM(l);if((!n.policy.Tx||isFinite(n.getCurrentTime())||n.mQ.Fw())&&!Dse(y,n.getCurrentTime()))return n.Xp("ostmf",{ct:n.getCurrentTime(),a:Z.bY.info.BE()}),!1;(n=n.Tx)!=null&&(n.JD.get(F).Ho=!0);return!0}; T1T=function(n,Z){!Z.info.bY.Dn()&&Z.info.N===0&&(g.W2(Z.info.bY.info)||Z.info.bY.info.dV())&&Leo(Z);if(Z.info.type===1)try{Qxj(n,Z),J53(n,Z)}catch(l){g.ZW(l);var F=Nm(Z.info);F.hms="1";n.loader.handleError("fmt.unparseable",F||{},1)}F=Z.info.bY;F.NW(Z);n.C&&pHK(n.C,Z);if(F.Pm()&&n.policy.N)a:{n=n.loader.eT;Z=Z.info.clipId;F=g.TL(F.info,n.t2);if(Z){var y=jF({itag:F.itag,lmt:n.t2?0:F.lmt||0,xtags:F.xtags});if(n.yg[y])break a;n.yg[y]=Z}n.fR.push(F)}}; g.lW=function(n){if(g.Uo(n.W.B()))return n.XY.get("unplugged")}; b3j=function(n){n.ze=0;n.lf=0;n.YN=0}; LIf=function(n,Z,F,y,l,m){this.displayName=n;this.vssId=Z;this.languageCode=F;this.kind=y===void 0?"":y;this.xtags=l===void 0?"":l;this.id=m===void 0?"":m}; $9=function(n){n.xi&&n.oW({adf:"0_"+((new Date).getTime()/1E3-n.PV)+"_isTimeout_"+n.L})}; ym=function(n,Z){g.I.call(this);this.app=n;this.state=Z}; sI=function(n,Z,F){return new CX(n,Z,F)}; Moj=function(n,Z,F,y,l){var m=!Z.hideCueRangeMarker;switch(Z.kind){case "AD_PLACEMENT_KIND_START":return new xK(n.N,F);case "AD_PLACEMENT_KIND_MILLISECONDS":return n=jCp(Z,y),n instanceof C?n:l(n.zO,m);case "AD_PLACEMENT_KIND_END":return new ur(n.N,F,m);default:return new C("Cannot construct entry trigger",{kind:Z.kind})}}; Nl=function(n,Z){return typeof Z==="string"?n.getElementById(Z):Z}; hyP=function(n){g.l7(n.N,function(Z){Z.N>1E5||++Z.N})}; VjQ=function(n,Z,F){qU7(n.N,function(y){return y.I0>=Z&&y.AD<=F})}; Gi=function(n,Z){n.N.set(Z.bZ,Z);var F=n.T.get(Z.bZ);if(F)try{F.ke(n.resolve(Z.bZ))}catch(y){F.bW(y)}}; sh=function(n,Z){n.X||n.N!=2&&n.N!=3||W28(n);n.V?n.V.next=Z:n.X=Z;n.V=Z}; wHf=function(n){return n.W.B().experiments.RY("html5_load_empty_player_in_media_break_sub_lra")}; YE=function(n){n=n===void 0?!1:n;g.I.call(this);this.N=mL(5,null,n);g.S(this,this.N);this.X=mL(15,null,n);g.S(this,this.X)}; IBn=function(n){var Z=new qo(function(F,y,l,m){return new aJ(n.N.Pj,F,y,l,m,n.N.U8)},new Set(Tr8(n.N.Pj).concat(n.N.listeners)),n.N.aW,n.N.U8); g.S(n,Z);return Z}; Puf=function(n,Z,F){return oSp(new ab(n,Z,F),n)}; Kk=function(){g0.call(this);this.T=new RG;this.aY=this.Pr=this.Wr=0;this.L=-1;this.Yi=new RG;this.S=new RG;this.N=new jZ;this.C=this.V=-1;this.Ns=new RG;this.hG=2E3;this.lY=new rb;this.xi=new rb;this.yg=new rb}; JT7=function(n,Z,F){var y,l=Z==null?void 0:(y=Z.text)==null?void 0:y.simpleText;l&&agU(n,F,l,Z==null?void 0:Z.icon).listen("click",function(){var m;(Z==null?void 0:(m=Z.icon)==null?void 0:m.iconType)==="HIDE"?n.W.publish("featuredproductdismissed"):Z.serviceEndpoint&&n.W.LR("innertubeCommand",Z.serviceEndpoint);n.hide()},n)}; O4=function(n){return n.W.B().experiments.RY("html5_load_ads_instead_of_cue")}; g.lf=function(n,Z){if(!Z)throw g.Rc("openWithToken",HN(n.name));return n.open()}; QO7=function(n,Z,F){F=D5(n,F);for(var y,l;F>=0;F--)if(y=n.levels[F],l=pk(y,Z),!y.isLoaded(l)){y=n;var m=F,a=m+"-"+l;y.C.has(a)||(y.C.add(a),y.T.enqueue(m,{Ku:m,bj:l}))}HH3(n)}; SUf=function(n){var Z=n.videoData;YUe(n,n.zN).then(void 0,function(F){n.videoData!==Z||Z.CR()||(F=oG(F),F.errorCode==="auth"&&n.videoData.errorDetail&&n.videoData.errorDetail!=="7"?n.Mj(F.errorCode,2,unescape(n.videoData.errorReason),UQ(F.details),n.videoData.errorDetail,n.videoData.pO||void 0):n.handleError(F))})}; Lk=function(){}; var jOP=function(n){return $d[K[11]](this,64,n)}; g.wR=function(n){var Z={languageCode:n.languageCode,languageName:n.languageName,displayName:g.qi(n),kind:n.kind,name:n.name,id:n.id,is_servable:n.N,is_default:n.isDefault,is_translateable:n.isTranslateable,vss_id:n.vssId};n.xtags&&(Z.xtags=n.xtags);n.captionId&&(Z.captionId=n.captionId);n.translationLanguage&&(Z.translationLanguage=n.translationLanguage);return Z}; UN=function(){this.data=[];this.N=-1}; UsY=function(n,Z){var F=[];if(Z=n.N.get(Z.layoutId)){Z=g.Y(Z);for(var y=Z.next();!y.done;y=Z.next())(y=n.X.get(y.value.triggerId))&&F.push(y)}return F}; TN=function(n,Z,F,y,l,m,a,D){Tf.call(this,n,Z,F,y);this.uY=l;this.wM=m;this.C=D;this.dJ=!0;this.V=null;this.S=o5(F.clientMetadata,"metadata_type_linked_player_bytes_layout_id");P2(this.wM(),this);this.adPlacementConfig=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,this.adPlacementConfig,F.layoutId)}; C6=function(n,Z){return Z===void 0||Z===null?n:Z==="1"||Z===!0||Z===1||Z==="True"?!0:!1}; Nrp=function(n,Z){Z=n.JD.get(Z);if(!Z)return 0;n=0;if(Z.D4.length>0){Z=g.Y(Z.D4);for(var F=Z.next();!F.done;F=Z.next()){var y=void 0;n+=((y=F.value.range)==null?void 0:y.length)||0}return n}if(Z.IL.length>0)for(F=g.Y(Z.IL),y=F.next();!y.done;y=F.next())n+=y.value.Z1||0;return n+Z.Y5}; iaK=function(n,Z,F,y,l,m){Z=DW(n,Z,F,y);if(Z instanceof C)return Z;var a=Z instanceof K3?new DHQ(n.N,F,Z.N):null;y=MT(n.X.get(),"SLOT_TYPE_IN_PLAYER");var D=[new nz(n.N,y)];n=[new ZX(n.N,F),new lB(n.N,y)];m=m({slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:D,slotExpirationTriggers:n},a);return m instanceof JT?new C(m):{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:D,slotExpirationTriggers:n, Gx:"core",clientMetadata:new lb([new mW(m)]),adSlotLoggingData:l}}; GM=function(n){this.value=n}; DrT=function(n){n=g.e(n==null?void 0:n.additionalPlayerOverlay,hvK);if(!n)return!1;var Z=n.slidingMessages;return n.title&&Z&&Z.length!==0?!0:!1}; Oi7=function(n,Z){var F=g.YO.getState().entities;n=ESe(F,n);Z=g.Y(Z.lY);for(var y=Z.next();!y.done;y=Z.next())if(n===ESe(F,y.value))return!0;return!1}; PU=function(n){try{return B4(n)==="open"}catch(Z){return!1}}; tvP=function(n,Z,F){n=n.X;var y=g.Ad(n,{I0:Z},function(a,D){return a.I0-D.I0}); y=y<0?(y+2)*-1:y;if(y>=0)for(var l=y;l<=y+1&&l=m.I0-F&&Z<=m.AD+F)return m}}; Na3=function(n){g.l7(n.N,function(Z){Z.T>1E5||++Z.T})}; U9=function(n,Z,F){var y=o5(n.qs().clientMetadata,"metadata_type_linked_in_player_layout_id");return y?y:(wU("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",n.RW(),n.qs(),{requestingSlot:Z,requestingLayout:F}),null)}; i7=function(){return CQ()?b7("Chromium"):(Rf("Chrome")||Rf("CriOS"))&&!(CQ()?0:Rf("Edge"))||Rf("Silk")}; VRe=function(){var n=yiQ();if(n){var Z=cTU[n.type||"unknown"]||"CONN_UNKNOWN";n=cTU[n.effectiveType||"unknown"]||"CONN_UNKNOWN";Z==="CONN_CELLULAR_UNKNOWN"&&n!=="CONN_UNKNOWN"&&(Z=n);if(Z!=="CONN_UNKNOWN")return Z;if(n!=="CONN_UNKNOWN")return n}}; OR=function(n){if(n.N){var Z=n.N.getAttribute("data-tooltip-text");if(n.T&&n.N.getAttribute("aria-label")!==n.T)var F=n.T;var y=n.N.getAttribute("aria-keyshortcuts"),l=n.N.getAttribute("data-title-no-tooltip");y&&l&&(F=g.xq("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:l,SHORTCUT_KEY:y}));F&&n.N.setAttribute("aria-label",F);if(Z&&!n.J){vSQ(n,!0);var m=n.N;n.updateValue("text",Z);F=m.getAttribute("data-duration");n.update({title:n.T,duration:F});m=m.getAttribute("data-preview");n.env.j("delhi_modern_web_player")? (n.updateValue("title",l),n.updateValue("keyBoardShortcutTitle",y.toUpperCase())):vSQ(n,!1);y=243*n.scale;l=141*n.scale;n.bg.style.width=y+"px";n.bg.style.height=l+"px";n.bg.style.backgroundImage=m?"url("+m+")":"";n.bg.style.backgroundSize=y+"px "+l+"px";n.wrapper.style.width=y+"px";g.ob(n.element,["ytp-text-detail","ytp-preview"]);g.w4(n.element,"ytp-has-duration",!!F)}else l&&y&&n.env.j("delhi_modern_web_player")?(n.updateValue("text",l),n.updateValue("keyBoardShortcut",y.toUpperCase())):n.updateValue("text", n.T),g.bS(n.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);F=n.N;F.hasAttribute("data-tooltip-offset-y")?(F=Number(F.getAttribute("data-tooltip-offset-y")),F=isNaN(F)?0:F):F=0;I9U(n,!!Z,void 0,F)}}; sH=function(n){n=Error(n);f9P(n,"warning");return n}; g.N9=function(){return g.tv("cobalt")}; g.PZ=function(n){return(n=ATT(n.app.iN()))?n.VX():null}; rTe=function(n,Z,F){return new Promise(function(y,l){function m(){T||(T=new WIj(a.result,{closed:w}));return T} var a=Z!==void 0?self.indexedDB.open(n,Z):self.indexedDB.open(n);var D=F.blocked,p=F.blocking,L=F.qmg,q=F.upgrade,w=F.closed,T;a.addEventListener("upgradeneeded",function(P){try{if(P.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(a.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");P.dataLoss&&P.dataLoss!=="none"&&mh("IDB_DATA_CORRUPTED",{reason:P.dataLossMessage||"unknown reason",dbName:HN(n)});var J=m(),U=new uE(a.transaction); q&&q(J,function(h){return P.oldVersion=h},U); U.done.catch(function(h){l(h)})}catch(h){l(h)}}); a.addEventListener("success",function(){var P=a.result;p&&P.addEventListener("versionchange",function(){p(m())}); P.addEventListener("close",function(){mh("IDB_UNEXPECTEDLY_CLOSED",{dbName:HN(n),dbVersion:P.version});L&&L()}); y(m())}); a.addEventListener("error",function(){l(a.error)}); D&&a.addEventListener("blocked",function(){D()})})}; jy3=function(n){n=g.Y(n);for(var Z=n.next();!Z.done;Z=n.next())if(Z.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; uao=function(n){return Math.round(Math.max(0,n*1E3)).toString()}; P8=function(n){g.R.call(this,{U:"div",K:"ytp-gradient-bottom"});this.X=g.FI("CANVAS");this.N=this.X.getContext("2d",{willReadFrequently:!0});this.T=NaN;this.X.width=1;xsp(this,n.Br().getPlayerSize().height)}; em=function(n){return new g.vX(new Su(function(Z,F){GeU(n,Z,F)}))}; RvT=function(n){n=g.EG(n);return Number(n.expire)||0}; gS8=function(n){switch(n){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; Jx=function(n,Z,F,y,l,m,a,D,p){Z=$e(n.X.get(),F,Z);var L={layoutId:Z,layoutType:F,Gx:"core"},q=[new rg(n.N,l,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];p&&q.push(new jp(n.N,p,["normal"]));return{layoutId:Z,layoutType:F,Nd:new Map,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:new lb([y,new K7(m),new p7(l)]),lN:a(L),adLayoutLoggingData:D}}; ii7=function(n,Z){var F=Z||x28(n)||n.isExternallyHostedPodcast;if(!n.N||F)return n.Xp("skipDash",{dm:!!n.N,air:Z,dd:n.Sk,mss:ZM(),"3pp":n.isExternallyHostedPodcast}),RM();Z3(n)&&a$n(n.N,n.isLivePlayback);return FM().then(function(){return WhT(n.WH,g.zw(n),n.iY.S,n.N,n.S,function(y){return n.publish("ctmp","fmtflt",y)},n.YQ,BJ(n)).then(function(y){n.i7(y); n.WH.N=null;/^av/.test(n.clientPlaybackNonce)&&n.xi&&n.Xp("av1",n.xi.X)})})}; Cu8=function(n,Z,F,y,l){n1.call(this,"ads-engagement-panel-layout",n,Z,F,y,l)}; bio=function(n,Z,F,y,l,m,a,D){function p(w){return cIe(n,w,y,L)} function L(w,T){var P=w.slotId;w=a(w);P=$e(Z.X.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",P);return lx(Z,P,T,F,w,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new Y2(l),m],l.adLayoutLoggingData)} if(!uG3(l))return new C("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:l});var q=l.timeoutSeconds*1E3;return function(w){var T=w.slotId,P={impressionCommands:l.impressionCommands,completeCommands:l.timeoutCommands,skipCommands:l.dismissCommands};w=a(w);T=sk(Z,T,F,q,P,new Map,w,p);P=new QV(T.IR);w=new zh(D);return{Hm:{layoutId:T.layoutId,layoutType:T.layoutType,Nd:T.Nd,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[], layoutExitUserCancelledTriggers:[],Gx:T.Gx,clientMetadata:new lb([].concat(g.t(T.gw),[P,w])),lN:T.lN,adLayoutLoggingData:T.adLayoutLoggingData},Km:[],dc:T.layoutExitMuteTriggers,f3:T.layoutExitUserInputSubmittedTriggers,n3:T.layoutExitUserCancelledTriggers,ly:T.ly}}}; cu=function(n,Z,F){var y=this;this.policy=n;this.N=Z;this.Wr=F;this.V=this.X=0;this.n6=null;this.Ns=new Set;this.Pr=[];this.indexRange=this.initRange=null;this.L=new dZ;this.Tx=this.w5=!1;this.vx={uR5:function(){return y.T}, hJR:function(){return y.chunkSize}, KLr:function(){return y.J}, gg4:function(){return y.C}}; (Z=XH8(this))?(this.chunkSize=Z.csz,this.T=Math.floor(Z.clen/Z.csz),this.J=Z.ck,this.C=Z.civ):(this.chunkSize=n.Td,this.T=0,this.J=g.qO(16),this.C=g.qO(16));this.S=new Uint8Array(this.chunkSize);this.J&&this.C&&(this.crypto=new zvU(this.J,this.C))}; Fr=function(n,Z){return tGQ(n,Z||{},!1)}; gn=function(n,Z,F){var y,l=new Promise(function(m){y=setTimeout(m,Z)}); return Promise.race([n.finally(function(){return void clearTimeout(y)}), l.then(F)])}; Hb=function(n,Z){return n.N.has(Z)}; tR3=function(n,Z){Z.sort(function(F,y){return F.toString().localeCompare(y.toString(),n.iY.hostLanguage)})}; C_=function(n,Z,F){var y=y===void 0?X2:y;var l=tVj(n,Z);return l?new g.O2(function(m,a){var D,p,L,q,w;return g.A(function(T){switch(T.N){case 1:return g.x(T,l,2);case 2:D=T.X;p=D.S(Z,F,y);if(!p){a(new g.FV("Error: Failed to build request for command.",Z));T.ST(0);break}Gd(p.input);q=((L=p.Cs)==null?void 0:L.mode)==="cors"?"cors":void 0;if(n.N.F6){w=vLY(n,p.config,q);T.ST(4);break}return g.x(T,INY(n,p.config,q),5);case 5:w=T.X;case 4:m(Awo(n,p,w)),g.zA(T)}})}):cc(new g.FV("Error: No request builder found for command.", Z))}; Ncj=function(n){return n.linearAds!=null&&Zg(n.adLayoutMetadata)}; evQ=function(n){n.T1=!1;var Z=n.ZN,F=Z!==void 0?Z.hj:n.producers;if(F!==void 0){if(s9(n)){do F=ke7(F);while(F!==void 0)}Z!==void 0?Z.hj=void 0:n.producers=void 0}}; Hi8=function(n,Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next())if(F=F.value,F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var y=g.e(F.fulfillmentContent.fulfilledLayout,Ia);if(y&&(y=g.e(y.renderingContent,gW))&&y.associatedPlayerBytesLayoutId===n)return F}}; Y9=function(){}; S$=function(n,Z){this.topic=n;this.N=Z}; z9p=function(n){var Z=n.app.Z4();if(Z=Z?Z.getVideoData():null){if(g.j$(Z)||g.mF(Z)||g.UI(Z))return 16/9;if(Ni(Z)&&Z.T.N)return n=Z.T.videoInfos[0].video,K9(n.width,n.height)}return(n=n.d1)?K9(n.videoWidth,n.videoHeight):16/9}; jq=function(){var n=/\sCobalt\/(\S+)\s/.exec(g.PT());if(!n)return NaN;var Z=[];n=g.Y(n[1].split("."));for(var F=n.next();!F.done;F=n.next())F=parseInt(F.value,10),F>=0&&Z.push(F);return parseFloat(Z.join("."))}; slU=function(n,Z,F){if(Z.endpoint==="log_event"){P7(void 0,Z);var y=o8(Z,!0),l=new Map;l.set(y,[xd(Z.payload)]);F&&(JX=new F);return new g.O2(function(m){JX&&JX.isReady()?Qh8(l,JX,m,{bypassNetworkless:!0},!0,Jp(n)):m()})}}; g.wt=function(n,Z,F){F=F===void 0?350:F;g.R.call(this,{U:"div",s8:["ytp-time-display","notranslate"],Z:{"aria-label":"{{timeDisplayAriaLabel}}",tabindex:"0"},D:[{U:"span",K:"ytp-time-wrapper",D:[{U:"div",K:"ytp-time-contents",D:[{U:"span",K:"ytp-time-clip-icon",E8:"{{clipicon}}",Z:{"aria-label":"Clip"}},{U:"span",K:"ytp-time-current",E8:"{{currenttime}}"},{U:"span",K:"ytp-time-separator",E8:" / "},{U:"span",K:"ytp-time-duration",E8:"{{duration}}"}]}]},{U:"span",K:"ytp-clip-watch-full-video-button-separator", E8:"\u2022"},{U:"span",K:"ytp-clip-watch-full-video-button",E8:"{{watchfullvideo}}"}]});var y=this;this.api=n;this.Ns=F;this.liveBadge=new g.R({U:"button",s8:["ytp-live-badge","ytp-button"],Z:{disabled:"true"},E8:"{{content}}"});this.N=null;this.GL=this.X=!1;this.L=this.J=this.C=null;this.isPremiere=!1;this.S=this.V=null;this.T=!1;this.Ur=this.liveIndicatorText=null;this.Tx=this.Vg("ytp-clip-watch-full-video-button");this.liveBadge.setContent("Live");g.S(this,this.liveBadge);this.api.j("web_player_updated_entrypoint")|| this.api.j("delhi_modern_web_player")?this.liveBadge.oY(this.Vg("ytp-time-contents")):this.liveBadge.oY(this.element);this.tooltip=Z.aX();this.liveBadge.listen("click",this.onClick.bind(this));this.api.j("delhi_modern_web_player")&&(Z=this.Vg("ytp-time-wrapper"),this.G(Z,"click",this.W04),Z.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.G(this.Tx,"click",this.dt4);this.G(this.api,"serverstitchedvideochange",function(){dse(y,y.api.getProgressState().isAtLiveHead)}); this.G(n,"presentingplayerstatechange",this.jO);this.G(n,"appresize",this.jO);this.G(n,"onLoopRangeChange",this.onLoopRangeChange);this.G(n,"videodatachange",this.onVideoDataChange);(Z=n.getVideoData())&&this.updateVideoData(Z);this.jO();VAY(this,n.getLoopRange())}; jWY=function(n,Z){var F=0,y=!1;Z=g.Y(Z);for(var l=Z.next();!l.done;l=Z.next()){l=l.value;if(g.e(l,Brp)){l=g.e(l,Brp);var m={startTime:NaN,title:null,onActiveCommand:void 0},a=l.title;m.title=a?g.sg(a):"";a=l.timeRangeStartMillis;a!=null&&(m.startTime=a);m.onActiveCommand=l.onActiveCommand;l=m;F===0&&l.startTime!==0&&(n.N[F].startTime=0,n.N[F].title="",n.N[F].onActiveCommand=l.onActiveCommand,F++,y=!0);n.N.length<=F&&(m=new hx,n.N.push(m),g.S(n,m),m.oY(n.d5,n.d5.children.length));n.N[F].startTime= l.startTime;n.N[F].title=l.title?l.title:"";n.N[F].onActiveCommand=l.onActiveCommand;n.N[F].index=y?F-1:F}F++}for(;FF;l++)F=F*256+pG(n),y*=128;return Z?F-y:F}; g.yG=function(){this.count=0;this.N=1;this.X=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}; vZ=function(n){g.Xu.call(this);this.N=null;this.T=new MK;this.N=null;this.C=new Set;this.crossOrigin=n||""}; g.Ib=function(n,Z,F,y){this.level=n;this.V=Z;this.loaded=new Set;this.level=n;this.V=Z;n=F.split("#");this.width=Math.floor(Number(n[0]));this.height=Math.floor(Number(n[1]));this.frameCount=Math.floor(Number(n[2]));this.columns=Math.floor(Number(n[3]));this.rows=Math.floor(Number(n[4]));this.N=Math.floor(Number(n[5]));this.T=n[6];this.signature=n[7];this.videoLength=y}; N0Y=function(n){n=g.Y(n);for(var Z=n.next();!Z.done;Z=n.next())if(g.e(Z.value,wy))return!0;return!1}; n7Y=function(n,Z,F,y,l){this.callback=n;this.slot=Z;this.layout=F;this.uY=y;this.sD=l;n=o5(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,n,F.layoutId)}; bs=function(n,Z){n=tD(n,Z,void 0,void 0,ntU);return n==null?Tt():n}; ZyY=function(n){return{minBandwidthBytesPerSec:ut(n,1),minReadaheadMs:ut(n,2)}}; yXj=function(n){return n&&FFn[n]?FFn[n]:null}; sMU=function(n,Z,F){gb()||(n.requestTimeMs=String(Z));g.N5("unsplit_gel_payloads_in_logs")&&(n.unsplitGelPayloadsInLogs=!0);!F&&(Z=g.BT("EVENT_ID"))&&(F=lwT(),n.serializedClientEventId={serializedEventId:Z,clientCounter:String(F)})}; mwK=function(n){return g.i8(n.N,function(Z){return Z.info.video?Z.info.video.projectionType==="MESH":!1})}; awY=function(n){var Z,F=(Z=dg(n))==null?void 0:Z.info;return!F||n.TW(Math.min(F.V+fk,F.S))}; HQ=function(n,Z){return n.N.has(Z)}; Ax=function(n,Z,F,y){for(var l=F.length;(Z=n.indexOf(F,Z))>=0&&Z0)for(a=0;am)return uu(n,"enterAfterReturn enterTimeMs="+l+" is greater than parentReturnTimeMs="+m.toFixed(3),a,D),"";var L=p.LJ()*1E3;if(lL)return p="returnAfterDuration parentReturnTimeMs="+m.toFixed(3)+" is greater than parentDurationMs="+L+". And timestampOffset in seconds is "+ p.Kn(),uu(n,p,a,D),"";L=null;for(var q=g.Y(n.X),w=q.next();!w.done;w=q.next()){w=w.value;if(l>=w.I0&&lw.I0)return uu(n,"overlappingReturn",a,D),"";if(m===w.I0)return uu(n,"outOfOrder",a,D),"";l===w.AD&&(L=w)}a="cs_childplayback_"+Uw3++;D={Is:tT(y,!0),Ot:Infinity,target:null};var T={sS:a,playerVars:Z,playerType:F,durationMs:y,I0:l,AD:m,xg:D};n.X=n.X.concat(T).sort(function(U,h){return U.I0-h.I0}); L?wCP(n,L,{Is:tT(L.durationMs,!0),Ot:L.xg.Ot,target:T}):(Z={Is:tT(l,!1),Ot:l,target:T},n.S.set(Z.Is,Z),p.addCueRange(Z.Is));Z=!0;if(n.N===n.app.Z4()&&(p=p.getCurrentTime()*1E3,p>=T.I0&&p=0&&n.indexOf(Z,F)==F}; nC=function(n){this.X=n}; yTU=function(n,Z,F){var y;(y=n.app.iG().S[Z.clientPlaybackNonce]||null)==null||y.dispose();Z=new HZ(n,Z,n.playback,F/1E3);n.Wr.set(Z.Uf(),Z);n.app.iG().S[Z.Uf()]=Z}; dR=function(n,Z,F,y){y=new g.R({U:"div",s8:["ytp-linked-account-popup-button"],E8:y,Z:{role:"button",tabindex:"0"}});Z=new g.R({U:"div",K:"ytp-linked-account-popup",Z:{role:"dialog","aria-modal":"true",tabindex:"-1"},D:[{U:"div",K:"ytp-linked-account-popup-title",E8:Z},{U:"div",K:"ytp-linked-account-popup-description",E8:F},{U:"div",K:"ytp-linked-account-popup-buttons",D:[y]}]});g.yO.call(this,n,{U:"div",K:"ytp-linked-account-popup-container",D:[Z]},100);var l=this;this.dialog=Z;g.S(this,this.dialog); y.listen("click",function(){l.jG()}); g.S(this,y);g.y7(this.W,this.element,4);this.hide()}; g.KG=function(n,Z){this.type=n;this.currentTarget=this.target=Z;this.defaultPrevented=this.X=!1}; O4f=function(n){for(var Z in n.N)PM(n.N[Z].info.mimeType)||E7f(n.N[Z].index,Infinity)}; x$=function(n){return n===1701082227||n===1836019558||n===1836019574||n===1835297121||n===1835626086||n===1937007212||n===1953653094||n===1953653099||n===1836475768}; BZ=function(n){n.S=(0,g.tP)();n.started=0;n.timedOut=0;n.N=0}; g.OyT=function(){var n,Z,F;return g.A(function(y){if(y.N==1){if(!g.N5("attmusi")||!g.N5("attmusi_ue"))return y.ST(2);n=window;return n.attmp===void 0?y.return(!1):g.x(y,fLj(),3)}if(y.N!=2)return Z=y.X,y.return(Z.ir());var l=g.Di("yt.aba.att2");return(F=l?l:Mi.instance!==void 0?Mi.instance.V.bind(Mi.instance):null)?y.return(F()):y.return(Promise.resolve(!1))})}; cXf=function(n,Z,F){var y=or(n.N)>>>0;for(y=n.N.N+y;n.N.N0){if(Z<604800){var a,D,p,L;F=(a=n.N)==null?void 0:(D=a.bannerData)==null?void 0:(p=D.itemData)==null?void 0:(L=p.exclusivesData)==null?void 0:L.exclusiveOfferCountdownText;if(F!==void 0)for(a=Date.now(),D=g.Y(F),p=D.next();!p.done;p=D.next())if(p=p.value,p!==void 0&&p.text!==void 0&&(L=Number(p.textDisplayStartTimestampMs), !isNaN(L)&&a>=L)){p.insertCountdown?(Z=p.text.replace(/\$0/,String(rF({seconds:Z}))),n.C.setContent(Z)):n.C.setContent(p.text);n.C.show();break}}var q,w,T,P;n.S.update({exclusive:(q=n.N)==null?void 0:(w=q.bannerData)==null?void 0:(T=w.itemData)==null?void 0:(P=T.exclusivesData)==null?void 0:P.exclusiveOfferLabelText});n.S.show();yL(n);var J;(J=n.Hx)==null||J.start()}else Do(n)}; li=function(n,Z,F,y){CW.call(this,n,{U:"div",K:"ytp-ad-grid-card-text",D:[{U:"div",K:"ytp-ad-grid-card-text__metadata",D:[{U:"div",K:"ytp-ad-grid-card-text__metadata__headline"},{U:"div",K:"ytp-ad-grid-card-text__metadata__description",D:[{U:"div",K:"ytp-ad-grid-card-text__metadata__description__line"},{U:"div",K:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{U:"div",K:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",Z,F,y);this.headline=new Je(this.api,this.layoutId,this.interactionLoggingClientData, this.Hr);g.S(this,this.headline);this.headline.oY(this.Vg("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new dM(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,!0);g.S(this,this.moreInfoButton);this.moreInfoButton.oY(this.Vg("ytp-ad-grid-card-text__button"))}; N3=function(n){for(var Z=0,F=0;F>>0;return Z}; g.sL=function(n,Z){Z>=n.v$()&&n.ww();var F=pk(n,Z),y=n.columns*n.rows,l=Z%y;Z=l%n.columns;l=Math.floor(l/n.columns);var m=n.ww()+1-y*F;if(m=.7,2));else if(n.X===2){l=y.deltaY<0;var m,a,D=((a=(m=n.S)==null?void 0:m.X)==null?void 0:a.scrollTop)===0;m=n.N!==0;l&&D||m&&!l?n.V!==0&&(n.N=Math.max(0,n.N-y.deltaY/n.V),Os(n),g77(n,n.J/n.V+ Math.abs(n.N)>=.7,1)):n.N!==0&&(n.N=0,Os(n))}}},n,!0); Z.G(F,"standardControlsInitialized",function(){if(!n.S){n.S=new g3(n.api,n.PYT.bind(n));n.zx&&(n.Ns=new mp(n.api),g.S(n,n.Ns),n.Ns.element.setAttribute("data-overlay-order","12"),n.api.wW(n.Ns.element,4),n.Ns.listen("click",n.yE,n));g.S(n,n.S);var y=n.api.getRootNode().querySelector(".ytp-chrome-bottom");y&&y.parentNode&&y.parentNode.insertBefore(n.S.element,y.nextSibling);nWU(n)}}); Z.G(F,"presentingplayerstatechange",function(){Yd(n)}); Z.G(F,"autonavvisibility",function(){Yd(n)}); n.api.Rs().subscribe("visibilitystatechange",function(){Yd(n)}); Zbp(n,n.X)}; g.WM=function(n,Z,F,y){Array.prototype.splice.apply(n,zf(arguments,1))}; Id=function(n,Z){var F=F===void 0?!1:F;UQ(Z);(F||n.Y.eG())&&n.publish("ctmp","drmlog",Z)}; iyn=function(n,Z){n.Z8=Z;var F,y;(F=n.Hx)!=null&&(y=F.N)!=null&&(y.N=new ae(Z,y.X,y.T),g.S(y,y.N))}; Kc=function(n,Z){return g.Yn(Z,n.X).join(",")}; QS7=function(n,Z){if(Z<0)return!0;var F=n.pJ();return Z=n&&(n-4|50)-5&&(y[74]<10&&((0,y[51])((0,y[19])(),y[64],y[10]),1)||(0,y[21])(y[62])),(0,y[18])((0,y[18])((0,y[32])(y[31]),y[51],(0,y[29])(),y[64],y[30]),y[56],y[15],y[62])}catch(a){y[73]!==-7&&(y[24]==-4&&((0,y[52])(y[10]), /()\)/)||(0,y[57])(y[25],y[30])),y[17]<=8&&(0,y[49])(y[28],(0,y[79])(y[1],y[10]),(0,y[52])(y[62]),(0,y[27])(y[62],y[14]),y[16],y[31])}finally{y[9]<=3&&(y[13]==1||(((0,y[27])(y[47],y[60]),y[79])(y[37],y[38]),0))&&(0,y[16])((0,y[77])(y[7],y[60]),y[50],y[36])}try{var m=NW(1,y,Date)}catch(a){m=l5(16,y)}finally{y=NW(7,y,Date)}}catch(a){l=K[81]+Z;break a}l=F[K[35]](K[12])}return l}; dwQ=function(n,Z,F,y){Z={Dk:Z,R5:F,xr:n.playback.getCurrentTime(),K95:y};lC(n,Z)}; f6p=function(n){n.N>=0||(n.provider.mQ.getVisibilityState()===3?n.S=!0:(n.N=g.kq(n.provider),n.delay.start()))}; B93=function(n,Z){var F=NaN;n=g.Y(n.array);for(var y=n.next();!y.done;y=n.next())if(y=y.value,y.contains(Z)&&(isNaN(F)||y.endZ&&(isNaN(F)||y.start0?F||Z.O8>=n.Wr:F}; Dn=function(n,Z,F,y,l,m){l=l===void 0?[]:l;CW.call(this,n,{U:"div",s8:["ytp-ad-confirm-dialog-background"],D:[{U:"div",K:"ytp-ad-confirm-dialog-container",D:[{U:"div",s8:["ytp-ad-confirm-dialog"].concat(l),Z:{role:"dialog",tabindex:"-1"},D:[{U:"div",K:"ytp-ad-confirm-dialog-title",E8:"{{title}}"},{U:"div",K:"ytp-ad-confirm-dialog-messages"},{U:"div",K:"ytp-ad-confirm-dialog-confirm-container",D:[{U:"button",K:"ytp-ad-confirm-dialog-cancel-button",E8:"{{cancelLabel}}"},{U:"button",K:"ytp-ad-confirm-dialog-confirm-button", E8:"{{confirmLabel}}"}]}]}]},{U:"button",s8:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],D:[{U:"span",K:"ytp-ad-button-icon",D:[g.FP()]}]}]},m===void 0?"confirm-dialog":m,Z,F,y);this.L=this.Vg("ytp-ad-confirm-dialog-close-overlay-button");this.V=this.Vg("ytp-ad-confirm-dialog-cancel-button");this.S=this.Vg("ytp-ad-confirm-dialog-confirm-button");this.Tx=this.Vg("ytp-ad-confirm-dialog-messages");this.T=null;this.N=new rK;g.S(this,this.N);this.X=null;this.hide()}; ny8=function(n){n.policy.d0&&n.Qh&&!n.Wk?n.Wk=!0:n.BV.zw()}; ZVP=function(n){n.N&&(n.N.N=[]);g.l7(n.X,function(Z){Z.N=[]}); g.l7(n.T,function(Z){Z.N=[]})}; FZi=function(n,Z){if(Z.title){var F=g.sg(Z.title);n.updateValue("title",F)}if(Z.dialogMessages){F=g.Y(Z.dialogMessages);for(var y=F.next();!y.done;y=F.next())y=sS(y.value),n.Tx.appendChild(y)}Z.cancelLabel&&(F=g.sg(Z.cancelLabel),n.updateValue("cancelLabel",F),n.N.G(n.V,"click",function(l){return n.RS(l)})); Z.confirmLabel&&(Z=g.sg(Z.confirmLabel),n.updateValue("confirmLabel",Z),n.N.G(n.S,"click",function(l){return n.Lj(l)})); n.N.G(n.L,"click",function(l){return n.Mx(l)})}; pc=function(){this.S=this.T=null;this.X=this.N=0;this.V=[];this.C=!1}; D$K=function(n,Z){Z=Z===void 0?{}:Z;n.HQ=Z.HQ===void 0?!1:Z.HQ}; Lc=function(n,Z){var F;if((F=n.api.getVideoData())==null?0:F.mutedAutoplay){var y,l;if((y=Z.target)==null?0:(l=y.className)==null?0:l.includes("ytp-info-panel"))return!1}return g.OC(Z)&&n.api.isMutedByMutedAutoplay()?(n.api.unMute(),n.api.getPresentingPlayerType()===2&&n.api.playVideo(),Z=n.api.getPlayerStateObject(),!g.b(Z,4)||g.b(Z,8)||g.b(Z,2)||n.mL(),!0):!1}; ag=function(n){return!!n.Ur&&!!n.Ur.postId&&n.api.getPresentingPlayerType()!==2&&(!n.Ur.type||n.Ur.type==="clips")}; yEU=function(){this.V=0;this.Pr=Infinity;this.L=!0;this.X=this.N=2;this.T=1;this.S=!1;this.C=10;this.Tx=!1;this.J=1;this.Ns=!1}; qQ=function(n){Ek&&n&&Bc(n)}; l8Q=function(){g.A(function(n){return g.x(n,nae("LogsDatabaseV2"),0)})}; pq=function(){return g.BT("EXPERIMENTS_TOKEN","")}; h8=function(n){return n?n.passive&&sAi()?n:n.capture||!1:!1}; mbj=function(n,Z){if(n.KR){n.KR.EW(Z);var F;(F=n.loader)!=null&&F.policy.jT&&(F.J=Z)}}; ZMe=function(){return{Nj:["metadata_type_valid_ad_message_renderer"],ZM:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; Mti=function(n,Z,F){Gcf(n,n[kt]|0,function(y,l){if(l!=null){var m=Cte(F,y);m?m(Z,l,y):y<500||wX(a8U,3)}}); (n=gV(n))&&iF(n,function(y,l,m){Sd(Z,Z.N.end());for(y=0;y=0}; KZ8=function(n,Z){Z=Array.prototype.splice.call(n,Z,1);Array.prototype.splice.call(n,0,0,Z[0])}; nM8=function(){function n(D,p){return D==null?p:D} var Z=TO(),F=Math.max(Z.length-1,0),y=iFo(Z);Z=y.N;var l=y.X,m=y.T,a=[];m&&a.push(new Pf([m.url,m.N?2:0],n(m.depth,1)));l&&l!=m&&a.push(new Pf([l.url,2],0));Z.url&&Z!=m&&a.push(new Pf([Z.url,0],n(Z.depth,F)));y=g.Yn(a,function(D,p){return a.slice(0,a.length-p)}); !Z.url||(m||l)&&Z!=m||(l=FXU(Z.url))&&y.push([new Pf([l,1],n(Z.depth,F))]);y.push([]);return g.Yn(y,function(D){return J0f(F,D)})}; pW=function(n,Z){var F;(F=n.loader)==null||n4(F,Z)}; ppY=function(n,Z,F,y,l,m,a,D){n=Dbe(n,F,m,a,y,function(p){var L=p.slotId;p=D(p);L=$e(Z.X.get(),"LAYOUT_TYPE_FORECASTING",L);var q={layoutId:L,layoutType:"LAYOUT_TYPE_FORECASTING",Gx:"core"},w=new Map,T=l.impressionUrls;T&&w.set("impression",T);return{layoutId:L,layoutType:"LAYOUT_TYPE_FORECASTING",Nd:w,layoutExitNormalTriggers:[new RC(Z.N,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:new lb([new qw(l), new K7(F)]),lN:p(q)}}); return n instanceof C?n:[n]}; JH=function(n,Z){(Z===void 0||Z)&&yae(n);n.N=null}; LZ3=function(){this.N=[];this.X=[]}; rao=function(n){this.N=n;n.kR("/client_streamz/bg/cec",wo("ec"),g.l8("mk"))}; g.Nu=function(n){return g.QL()[n]||0}; Yj=function(n){var Z=ar(n,!0),F=0;Z===4?F=n.N.getFloat32(n.pos):Z===8&&(F=n.N.getFloat64(n.pos));n.pos+=Z;return F}; qS8=function(){this.X=this.N=""}; ae=function(n,Z,F){this.N=n;this.T=!1;Z=this.N.f5(Z);this.X=new SW(n,Z);this.N.free(Z.byteOffset);this.V=this.N.f5(F)}; MT=function(n,Z){if(mB(n.U8.get())){var F=n.X.get(Z)||0;F++;n.X.set(Z,F);return Z+"_"+F}return g.qO(16)}; Zw=function(n){if(lI)return lI.encode(n);var Z=new Uint8Array(Math.ceil(n.length*1.2)),F=AD(n,Z);Z.lengthF&&(Z=Z.subarray(0,F));return Z}; lE=function(n,Z,F){var y=n.X[Z];y||(y=[],n.X[Z]=y);y.push(F)}; wpi=function(){var n=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];U2().forEach(function(Z){n.push(Z)}); return{Nj:n,ZM:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; TzK=function(n,Z,F,y,l){this.X=l;this.N=n||0;this.pitch=Z||0;this.yaw=F||0;this.roll=y||0;this.crc=l.getUint32(4)}; Z8=function(n,Z){if(n.timelyActions){n=g.Y(n.timelyActions);for(var F=n.next();!F.done;F=n.next())if(F=F.value,F.cueRangeId===Z)return F}}; g.oyp=function(n){if(n.videoData&&n.videoData.g2){for(var Z=[n.videoData.g2],F=g.Y(Object.keys(n.N)),y=F.next();!y.done;y=F.next())y=y.value,n.cW[y]&&n.N[y]&&(y=n.N[y](n.cW))&&Z.push(y);return Z.join("&")}return null}; KW=function(n){if(n.Q9){var Z=n.x6;var F=n.Q9;n=n.qn();var y=P17(Z);if(jW(y)){if(y=Z.wu(F).compose(JE3(Z,F)).compose(QAo(Z,F)).compose(A6(Z,F.videoData)).compose(iv(Z,F.videoData,F)).compose(UL(Z,F)).compose(Ms(Z,F)),jW(n)||Z.j("html5_apply_pbr_cap_for_drm"))y=y.compose(YS3(Z,F))}else Z.j("html5_perf_cap_override_sticky")&&(y=y.compose(UL(Z,F))),Z.j("html5_ustreamer_cap_override_sticky")&&(y=y.compose(YS3(Z,F)));y=y.compose(Ms(Z,F));Z=F.videoData.e8.compose(y).compose(F.videoData.uM).compose(n)}else Z= IK;return Z}; g.jAY=function(n,Z,F){var y=Z.query;Z=Z.direction;n="openKeyCursor"in IDBObjectStore.prototype?n.N.openKeyCursor(y,Z):n.N.openCursor(y,Z);return SSp(n).then(function(l){return ju(l,F)})}; g.g1=function(n){return IkU(g.Gj(n)[3]||null)}; IkU=function(n){return n?decodeURI(n):n}; s9=function(n){return n.zX||n.NF!==void 0}; UbY=function(n){var Z=[new p7(n.TB),new NQ(n.RV),new K7(n.adPlacementConfig),new tL(n.videoLengthSeconds),new PG(n.sE)];n.instreamAdPlayerOverlayRenderer&&Z.push(new GM(n.instreamAdPlayerOverlayRenderer));n.playerOverlayLayoutRenderer&&Z.push(new R7(n.playerOverlayLayoutRenderer));n.j1&&Z.push(new qW(n.j1));return Z}; hH=function(n){g.yO.call(this,n,{U:"button",s8:["ytp-skip-intro-button","ytp-popup","ytp-button"],D:[{U:"div",K:"ytp-skip-intro-button-text",E8:"Skip Intro"}]},100);var Z=this;this.X=!1;this.N=new g.e7(function(){Z.hide()},5E3); this.s9=this.Iw=NaN;g.S(this,this.N);this.J=function(){Z.show()}; this.V=function(){Z.hide()}; this.T=function(){var F=Z.W.getCurrentTime();F>Z.Iw/1E3&&F0&&(n=Z.split(",").filter(function(l){return OV7.includes(l)}).join(",")),F.qoe_cat=n; cEK(F)}else for(n=g.Y(Vu3),y=n.next();!y.done;y=n.next())y=y.value,Z.hasOwnProperty(y)&&(F[y]=Z[y]);return F}; oFT=function(n){vk.call(this,n);var Z=this;RS(this.api,"getAudioTrackState",function(){return Z.api.Zr(0)})}; Li=function(){var n=n===void 0?!0:n;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Ka("LOGIN_INFO","");n&&window.sessionStorage.setItem("from_switch_account","1");n=!0;n=n===void 0?!1:n;var Z,F=vyj;F||(F=document.querySelector("#persist_identity"));if(Z=F){var y=Z.src?(new URL(Z.src)).origin:"*";if(n){var l;(l=Z.contentWindow)==null||l.postMessage({action:"clear"},y)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var m=window.sessionStorage.getItem("session_logininfo");if(m){var a;(a=Z.contentWindow)==null||a.postMessage({loginInfo:m},y)}}}}catch(D){}}; AEn=function(n,Z){var F=!1;if(Z==="")return F;Z.split(",").forEach(function(y){var l={},m={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},a="ACTIVE";y[0]==="!"&&(y=y.substring(1),a="INACTIVE");y=y.split("-");y.length<3||(y[0]in I8e&&(m.clientName=I8e[y[0]]),y[1]in f8f&&(m.platform=f8f[y[1]]),m.applicationState=a,m.clientVersion=y.length>2?y[2]:"",l.remoteClient=m,n.remoteContexts?n.remoteContexts.push(l):n.remoteContexts=[l],F=!0)}); return F}; fhT=function(n){var Z=Z===void 0?"UNKNOWN_INTERFACE":Z;if(n.length===1)return n[0];var F=WZj[Z];if(F){F=new RegExp(F);for(var y=g.Y(n),l=y.next();!l.done;l=y.next())if(l=l.value,F.exec(l))return l}var m=[];Object.entries(WZj).forEach(function(a){var D=g.Y(a);a=D.next().value;D=D.next().value;Z!==a&&m.push(D)}); F=new RegExp(m.join("|"));n.sort(function(a,D){return a.length-D.length}); y=g.Y(n);for(l=y.next();!l.done;l=y.next())if(l=l.value,!F.exec(l))return l;return n[0]}; cf=function(n,Z){c5.call(this,"Autoplay",g.rJ.W2);this.W=n;this.Fp=Z;this.N=!1;this.X=[];this.G(n,"presentingplayerstatechange",this.lP);this.subscribe("select",this.onSelect,this);n.createClientVe(this.element,this,113682);this.lP()}; RLQ=function(n){var Z=Lh(n.audioTrack,!0)*1E3;n=Lh(n.videoTrack,!0)*1E3;return{R2:Z,FC:n}}; rEY=function(n){n.Ia=Date.now();VL(n,n.Y6);n.timer.start()}; V6=function(n){this.AG=UO(n)}; g.Vx=function(n,Z,F){var y={},l;for(l in n)Z.call(F,n[l],l,n)&&(y[l]=n[l]);return y}; xbe=function(n,Z){var F=n.X.indexOf(Z);F>=0&&n.X.splice(F,1);n.T.delete(Z.cpn);Z.sS&&n.V.delete(Z.sS)}; uF=function(n,Z,F,y,l){var m=F+(l?0:-1),a=n.length-1;if(a>=1+(l?0:-1)&&m>=a){var D=n[a];if(D!=null&&typeof D==="object"&&D.constructor===Object)return D[F]=y,Z}if(m<=a)return n[m]=y,Z;if(y!==void 0){var p;a=((p=Z)!=null?p:Z=n[kt]|0)>>14&1023||536870912;F>=a?y!=null&&(m={},n[a+(l?0:-1)]=(m[F]=y,m)):n[m]=y}return Z}; vf=function(n,Z,F){if(Array.isArray(Z)){var y=Z[kt]|0;if(y&4)return Z;for(var l=0,m=0;l=0?LQ.countDownSecsForFullscreen*1E3:-1);n.j("web_autonav_color_transition")&&LQ.watchToWatchTransitionRenderer&&(n.watchToWatchTransitionRenderer=g.e(LQ.watchToWatchTransitionRenderer,zxY))}var IX= T2K(n);if(IX){var Zp,OQ,Py,o_=IX==null?void 0:(Zp=IX[0])==null?void 0:(OQ=Zp.endScreenVideoRenderer)==null?void 0:(Py=OQ.navigationEndpoint)==null?void 0:Py.clickTrackingParams,cd=g.Ih(n);o_&&cd&&(cd.sessionData={itct:o_})}n.w5.currentVideoThumbnail&&(n.lG=kl(n.w5.currentVideoThumbnail));var V9,JR,QZ,YV,Sy,vd=(V9=n.w5)==null?void 0:(JR=V9.contents)==null?void 0:(QZ=JR.twoColumnWatchNextResults)==null?void 0:(YV=QZ.results)==null?void 0:(Sy=YV.results)==null?void 0:Sy.contents;if(vd&&vd[0]){var a3= vd[0].videoPrimaryInfoRenderer;a3&&a3&&a3.subtitle&&(n.Xw=g.sg(a3.subtitle))}if(vd&&vd[1]){var rC,Dk,xQ,JK,K5=(rC=vd[1].videoSecondaryInfoRenderer)==null?void 0:(Dk=rC.owner)==null?void 0:(xQ=Dk.videoOwnerRenderer)==null?void 0:(JK=xQ.thumbnail)==null?void 0:JK.thumbnails;K5&&K5.length&&(n.profilePicture=K5[K5.length-1].url)}var bZ=au(Z),pL,N2Y=(pL=n.getWatchNextResponse())==null?void 0:pL.onResponseReceivedEndpoints;if(N2Y)for(var hpY=g.Y(N2Y),Mx=hpY.next();!Mx.done;Mx=hpY.next()){var $R=Mx.value; g.e($R,AH)&&(n.ET=g.e($R,AH));var zB=g.e($R,tui),EET=void 0;if((EET=zB)==null?0:EET.entityKeys)n.uT=zB.entityKeys||[],zB.visibleOnLoadKeys&&(n.visibleOnLoadKeys=zB.visibleOnLoadKeys)}if(n.j("web_key_moments_markers")){var zSm=g.YO.getState().entities,tGh=g.Fn("visibility_override","markersVisibilityOverrideEntity");var Gn=S0(zSm,"markersVisibilityOverrideEntity",tGh);n.lY=(Gn==null?void 0:Gn.videoId)===(n.videoId||bZ)&&(Gn==null?0:Gn.visibilityOverrideMarkersKey)?Gn.visibilityOverrideMarkersKey:n.visibleOnLoadKeys; n.visibleOnLoadKeys=[].concat(g.t(n.lY))}}}; rX=function(){var n=Nt();try{var Z=n.muted;n.muted=!Z;return n.muted!==Z}catch(F){}return!1}; S0=function(n,Z,F){return n[Z]?n[Z][F]||null:null}; xj=function(n,Z,F,y){n3.call(this,n,Z,F,y);this.Tx=this.Ns=this.J=this.L=this.V=null}; g.GP=function(n,Z,F){g.GP=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?xKi:$n3;return g.GP.apply(null,arguments)}; kl3=function(n){if(n.csn!==g.f_())if(n.csn==="UNDEFINED_CSN")n.csn=g.f_();else{var Z=g.f_(),F=g.Wg();if(Z&&F){n.csn=Z;for(var y=g.Y(n.elements),l=y.next();!l.done;l=y.next())(l=l.value.visualElement)&&l.isClientVe()&&Z&&F&&(g.N5("combine_ve_grafts")?rq(FE(),l,F):g.gU(g.JI)(void 0,Z,F,l))}if(Z)for(n=g.Y(n.N),F=n.next();!F.done;F=n.next())(F=F.value.visualElement)&&F.isClientVe()&&g.Gx(Z,F)}}; ap=function(n){if(n.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; Re=function(n,Z,F){g.I.call(this);this.policy=n;this.V=Z;this.Xp=F;this.T=new Map;this.S=0;this.C=!1;this.N="";this.X=!1}; QiU=function(n,Z,F,y,l){var m=Z.Hp/Z.rows,a=Math.min(F/(Z.im/Z.columns),y/m),D=Z.im*a,p=Z.Hp*a;D=Math.floor(D/Z.columns)*Z.columns;p=Math.floor(p/Z.rows)*Z.rows;var L=D/Z.columns,q=p/Z.rows,w=-Z.column*L,T=-Z.row*q;l&&m<=45&&(q-=1/a);L-=2/a;n=n.style;n.width=L+"px";n.height=q+"px";l||(y=(y-q)/2,F=(F-L)/2,n.marginTop=Math.floor(y)+"px",n.marginBottom=Math.ceil(y)+"px",n.marginLeft=Math.floor(F)+"px",n.marginRight=Math.ceil(F)+"px");n.background="url("+Z.url+") "+w+"px "+T+"px/"+D+"px "+p+"px"}; ex7=function(n,Z){return Z.reduce(function(F,y){return function(l){return y.intercept(l,F)}},n)}; HV7=function(n,Z){Sf(n,1,Z.XCQ);Sf(n,2,Z.SHs)}; ma=function(n,Z,F,y){g.I.call(this);this.webPlayerContextConfig=Z;this.rZ=y;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.nP=this.Yi=this.mC=this.iU=this.userDisplayName=this.userDisplayImage=this.y_="";this.N={};this.IW={};this.controlsType="0";this.Qc=NaN;this.hG=!1;this.HE=(0,g.tP)();this.mJ=0;this.e8=this.z4=!1;this.WH=!0;this.preferGapless=this.OW=this.GU=this.T=this.VG=!1;this.iZ=[];this.ZD=!1;this.Jy=0;n=n?g.nO(n):{};Z&&Z.csiPageType&&(this.csiPageType=Z.csiPageType);Z&&Z.csiServiceName&& (this.csiServiceName=Z.csiServiceName);Z&&Z.preferGapless&&(this.preferGapless=Z.preferGapless);this.experiments=new gX(Z?Z.serializedExperimentIds:n.fexp,Z?Z.serializedExperimentFlags:n.fflags,Z!=null?Z:{});this.forcedExperiments=Z?Z.serializedForcedExperimentIds:go("",n.forced_experiments)||void 0;this.cspNonce=(Z==null?0:Z.cspNonce)?Z.cspNonce:go("",n.csp_nonce);this.j("web_player_deprecated_uvr_killswitch");try{var l=document.location.toString()}catch(Fp){l=""}this.RX=l;this.ancestorOrigins=(y= window.location.ancestorOrigins)?Array.from(y):[];this.V=C6(!1,Z?Z.isEmbed:n.is_embed);if(Z&&Z.device){if(y=Z.device,y.androidOsExperience&&(this.N.caoe=""+y.androidOsExperience),y.androidPlayServicesVersion&&(this.N.capsv=""+y.androidPlayServicesVersion),y.brand&&(this.N.cbrand=y.brand),y.browser&&(this.N.cbr=y.browser),y.browserVersion&&(this.N.cbrver=y.browserVersion),y.cobaltReleaseVehicle&&(this.N.ccrv=""+y.cobaltReleaseVehicle),this.N.c=y.interfaceName||"WEB",this.N.cver=y.interfaceVersion|| "html5",y.interfaceTheme&&(this.N.ctheme=y.interfaceTheme),this.N.cplayer=y.interfacePlayerType||"UNIPLAYER",y.model&&(this.N.cmodel=y.model),y.network&&(this.N.cnetwork=y.network),y.os&&(this.N.cos=y.os),y.osVersion&&(this.N.cosver=y.osVersion),y.platform&&(this.N.cplatform=y.platform),l=fO(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),l==="all"||l==="once")y.chipset&&(this.IW.cchip=y.chipset),y.cobaltAppVersion&&(this.IW.ccappver=y.cobaltAppVersion),y.firmwareVersion&&(this.IW.cfrmver= y.firmwareVersion),y.deviceYear&&(this.IW.crqyear=y.deviceYear)}else this.N.c=n.c||"web",this.N.cver=n.cver||"html5",this.N.cplayer="UNIPLAYER";this.loaderUrl=Z?this.V||dbY(this)&&Z.loaderUrl?Z.loaderUrl||"":this.RX:this.V||dbY(this)&&n.loaderUrl?go("",n.loaderUrl):this.RX;this.V&&g.pv("yt.embedded_player.embed_url",this.loaderUrl);this.L=en(this.loaderUrl,BzP);y=this.loaderUrl;var m=m===void 0?!1:m;this.Ji=kF(en(y,Muf),y,m,"Trusted Ad Domain URL");this.Bx=C6(!1,n.privembed);this.protocol=this.RX.indexOf("http:")=== 0?"http":"https";this.rW=uKP((Z?Z.customBaseYoutubeUrl:n.BASE_YT_URL)||"")||uKP(this.RX)||this.protocol+"://www.youtube.com/";m=Z?Z.eventLabel:n.el;y="detailpage";m==="adunit"?y=this.V?"embedded":"detailpage":m==="embedded"||this.L?y=uY(y,m,$Ye):m&&(y="embedded");this.w5=y;iOi();m=null;y=Z?Z.playerStyle:n.ps;l=g.zi(nce,y);!y||l&&!this.L||(m=y);this.playerStyle=m;this.C=g.zi(nce,this.playerStyle);this.houseBrandUserStatus=Z==null?void 0:Z.houseBrandUserStatus;this.Tx=this.C&&this.playerStyle!=="play"&& this.playerStyle!=="jamboard";this.U9=!this.Tx;this.r5=C6(!1,n.disableplaybackui);this.disablePaidContentOverlay=C6(!1,Z==null?void 0:Z.disablePaidContentOverlay);this.disableSeek=C6(!1,Z==null?void 0:Z.disableSeek);this.enableSpeedOptions=(Z==null?void 0:Z.enableSpeedOptions)||(Nt().defaultPlaybackRate?EK||g.ii||eZ?g.kr&&YX("20")||g.z$&&YX("4")||g.Cc&&YX("11")||Uv():!(g.Cc&&!g.tv("chrome")||EK||g.tv("android")||g.tv("silk")):!1);this.W4=C6(!1,n.enable_faster_speeds);var a;this.supportsVarispeedExtendedFeatures= (a=Z==null?void 0:Z.supportsVarispeedExtendedFeatures)!=null?a:!1;this.X=C6(this.playerStyle==="blazer",n.is_html5_mobile_device||Z&&Z.isMobileDevice);this.aY=hS()||EQ();this.ZZ=this.j("mweb_allow_background_playback")?!1:this.X&&!this.C;this.lY=rX();this.Fc=g.ui;var D;this.Jm=!!(Z==null?0:(D=Z.embedsHostFlags)==null?0:D.optOutApiDeprecation);var p;Z?Z.hideInfo!==void 0&&(p=!Z.hideInfo):p=n.showinfo;this.uw=g.R6(this)&&!this.Jm||C6(!U6(this)&&!sp(this)&&!this.C,p);this.jP=Z?!!Z.mobileIphoneSupportsInlinePlayback: C6(!1,n.playsinline);a=this.X&&rZ&&bi!=null&&bi>0&&bi<=2.3;D=Z?Z.useNativeControls:n.use_native_controls;this.J=g.R6(this)&&this.X;p=this.X&&!this.J;D=g.Tg(this)||!a&&C6(p,D)?"3":"1";this.disableOrganicUi=!(Z==null||!Z.disableOrganicUi);p=Z?Z.controlsType:n.controls;this.controlsType=this.disableOrganicUi||p==="0"||p===0?"0":D;this.sW=this.X;this.color=uY("red",Z?Z.progressBarColor:n.color,Z9Y);this.fY=this.controlsType==="3";this.kV=!this.V;this.kL=(D=!this.kV&&!sp(this)&&!this.Tx&&!this.C&&!U6(this))&& !this.fY&&this.controlsType==="1";this.ud=g.ri(this)&&D&&this.controlsType==="0"&&!this.kL&&!(Z==null?0:Z.embedsEnableEmc3ds);this.T4=this.YQ=a;this.h2=(this.controlsType==="3"||this.X||C6(!1,n.use_media_volume))&&!this.J;this.Oq=Z2&&!g.SG(601)?!1:!0;this.uD=this.V||!1;this.p6=sp(this)?"":(this.loaderUrl||n.post_message_origin||"").substring(0,128);this.widgetReferrer=go("",Z?Z.widgetReferrer:n.widget_referrer);var L;Z?Z.disableCastApi&&(L=!1):L=n.enablecastapi;L=!this.L||C6(!0,L);a=!0;Z&&Z.disableMdxCast&& (a=!1);this.H1=this.j("enable_cast_for_web_unplugged")&&g.Uo(this)&&a||g.Fu(this)&&a||L&&a&&this.controlsType==="1"&&!this.X&&(sp(this)||g.ri(this)||g.qk(this));this.Xw=!!window.document.pictureInPictureEnabled||nM();L=Z?!!Z.supportsAutoplayOverride:C6(!1,n.autoplayoverride);this.nF=!(this.X&&!g.R6(this))&&!g.tv("nintendo wiiu")||L;this.fF=(Z?!!Z.enableMutedAutoplay:C6(!1,n.mutedautoplay))&&!1;L=(sp(this)||U6(this))&&this.playerStyle==="blazer";this.un=Z?!!Z.disableFullscreen:!C6(!0,n.fs);a=g.DB(g.XO(this))&& g.R6(this);this.d5=!this.un&&(L||g.nR())&&!a;this.Ls=this.j("html5_picture_in_picture_logging_onresize");var q;this.Dt=(q=g.jf(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?q:.33;this.GO=this.j("html5_picture_in_picture_blocking_onresize");this.pD=this.j("html5_picture_in_picture_blocking_ontimeupdate");this.Vs=this.j("html5_picture_in_picture_blocking_document_fullscreen");this.Hf=this.j("html5_picture_in_picture_blocking_standard_api");q=QM()&&YX(58)&&!EQ();L=Zq||typeof MediaSource=== "undefined";this.j8=this.j("uniplayer_block_pip")&&(q||L)||this.GO||this.pD||this.Hf;q=g.R6(this)&&!this.Jm;var w;Z?Z.disableRelatedVideos!==void 0&&(w=!Z.disableRelatedVideos):w=n.rel;this.N1=q||C6(!this.C,w);this.Nn=C6(!1,Z?Z.enableContentOwnerRelatedVideos:n.co_rel);this.Pr=EQ()&&bi>0&&bi<=4.4?"_top":"_blank";this.XH=g.qk(this);this.oA=C6(this.playerStyle==="blazer",Z?Z.enableCsiLogging:n.enablecsi);switch(this.playerStyle){case "blogger":w="bl";break;case "discover-ads":w="dd";break;case "gmail":w= "gm";break;case "gac":w="ga";break;case "ads-preview":w="ap";break;case "ads-fe":w="adfe";break;case "books":w="gb";break;case "docs":case "flix":w="gd";break;case "duo":w="gu";break;case "google-live":w="gl";break;case "google-one":w="go";break;case "play":case "play-ads":w="gp";break;case "chat":w="hc";break;case "hangouts-meet":w="hm";break;case "photos-edu":case "picasaweb":w="pw";break;default:w="yt"}this.Ns=w;this.Wr=go("",Z?Z.authorizedUserIndex:n.authuser);this.SG=g.R6(this)&&(this.Bx||!wSo()|| this.aY);var T;Z?Z.disableWatchLater!==void 0&&(T=!Z.disableWatchLater):T=n.showwatchlater;this.PV=((w=!this.SG)||!!this.Wr&&w)&&C6(!this.Tx,this.L?T:void 0);this.oX=Z?Z.isMobileDevice||!!Z.disableKeyboardControls:C6(!1,n.disablekb);this.loop=C6(!1,n.loop);this.pageId=go("",Z?Z.initialDelegatedSessionId:n.pageid);this.ma=C6(!0,n.canplaylive);this.Kk=2;this.Pf=C6(!1,n.livemonitor);this.disableSharing=C6(this.C,Z?Z.disableSharing:n.ss);(T=Z&&this.j("fill_video_container_size_override_from_wpcc")?Z.videoContainerOverride: n.video_container_override)?(w=T.split("x"),w.length!==2?T=null:(T=Number(w[0]),w=Number(w[1]),T=isNaN(T)||isNaN(w)||T*w<=0?null:new g.Kz(T,w))):T=null;this.lw=T;this.mute=Z?!!Z.startMuted:C6(!1,n.mute);this.storeUserVolume=!this.mute&&C6(this.controlsType!=="0",Z?Z.storeUserVolume:n.store_user_volume);T=Z?Z.annotationsLoadPolicy:n.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:uY(void 0,T,zx);this.captionsLanguagePreference=Z?Z.captionsLanguagePreference||"":go("",n.cc_lang_pref); T=uY(2,Z?Z.captionsLanguageLoadPolicy:n.cc_load_policy,zx);this.controlsType==="3"&&T===2&&(T=3);this.nD=T;this.cV=Z?Z.hl||"en_US":go("en_US",n.hl);this.region=Z?Z.contentRegion||"US":go("US",n.cr);this.hostLanguage=Z?Z.hostLanguage||"en":go("en",n.host_language);this.Sk=!this.Bx&&Math.random()=Z)}; lk=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Z:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}}; DYK=function(n){if(!(dX(n.info)&&n.info.fO()&&n.policy.GU&&n.L7)||n.info.Er.T>=2||Bf()>0||!kto())return!1;var Z=n.SH.get("aitags");if(!Z)return!1;Z=KP(Z).split(",");for(var F=[],y=g.Y(n.L7),l=y.next();!l.done;l=y.next())l=l.value,g.zi(Z,l)&&F.push(l);if(!F.length)return!1;n.SH.set("altitags",g.J5(F.join(",")));return!0}; vSQ=function(n,Z){n.env.j("delhi_modern_web_player")&&n.scale!==.6&&(n.scale=Z?.8:1)}; L6j=function(n,Z,F){var y=n.provider.Y,l=y.OS(),m=l.N.Wx(pDe),a=[];y.experiments.RY("html5_refactor_sabr_audio_format_selection_logging")?(Z=F.N,y=[Z.audio&&Z.video?Z.cz?Z.cz:"":Z.id],Z.J2&&Z.J2.id&&y.push(Z.J2.id),Z=y.join(";"),Z!==n.C&&(y=[Z,n.C,F.reason],m&&a.push.apply(a,g.t(aXf(F))),g.qP(l)&&F.reason==="i"&&(m?a.push(pl(n,F)):y.push(pl(n,F))),m&&a.length>0&&y.push(a.join(";")),F.token&&y.push(F.token),g.bM(n,g.kq(n.provider),"afs",y),n.C=Z)):F.N.id!==n.C&&(y=[F.N.id,n.C,F.reason],m&&a.push.apply(a, g.t(aXf(F))),g.qP(l)&&F.reason==="i"&&(m?a.push(pl(n,F)):y.push(pl(n,F))),m&&a.length>0&&y.push(a.join(";")),F.token&&y.push(F.token),g.bM(n,Z,"afs",y),n.C=F.N.id)}; q4K=function(n){var Z;return((Z=((n==null?void 0:n.messageRenderers)||[]).find(function(F){return!!F.timeCounterRenderer}))==null?void 0:Z.timeCounterRenderer)||null}; Z3=function(n){var Z=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],F=h6(n.iY)==="TVHTML5_SIMPLY"&&n.iY.N.ctheme==="MUSIC";!n.A7&&(g.Fu(n.iY)||g.yb(n.iY)||F)&&(Z.includes(n.musicVideoType)||n.isExternallyHostedPodcast)&&(n.A7=!0);if(Z=g.N9())Z=/Starboard\/([0-9]+)/.exec(g.PT()),Z=(Z?parseInt(Z[1],10):NaN)<10;F=n.iY;F=(h6(F)==="TVHTML5_CAST"||h6(F)==="TVHTML5"&&(F.N.cver.startsWith("6.20130725")||F.N.cver.startsWith("6.20130726")))&&n.iY.N.ctheme==="MUSIC";var y;if(y=!n.A7)F||(F= n.iY,F=h6(F)==="TVHTML5"&&F.N.cver.startsWith("7")),y=F;y&&!Z&&(Z=n.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",F=(n.j("cast_prefer_audio_only_for_atv_and_uploads")||n.j("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&n.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",Z||F||n.isExternallyHostedPodcast)&&(n.A7=!0);return n.iY.deviceIsAudioOnly||n.A7&&n.iY.L}; wDn=function(n,Z){for(var F in n.N)if(n.N[F].type===Z)return n.N[F].status}; kg3=function(n,Z){n=Be(n.array,function(F){return Z-F.start||1}); return n<0?-(n+1):n}; P17=function(n){if(n.mQ.Rs().isInline())return IK;n=a4[Bf()];return g.MQ("auto",n,!1,"s")}; KaU=function(n){if(!n)return Tbn||(Tbn=new o6(0,0));if(!/^-?\d+$/.test(n))return null;u8(n);return new o6(b8,XV)}; $T=function(n){g.R.call(this,{U:"button",s8:["ytp-button","ytp-autonav-toggle"],Z:{title:n.j("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"},D:[{U:"div",K:"ytp-autonav-toggle-button-container",D:[{U:"div",K:"ytp-autonav-toggle-button",Z:{"aria-checked":"true"}}]}]});this.W=n;this.X=[];this.N=!1;this.isChecked=!0;n.createClientVe(this.element,this, 113681);this.G(n,"presentingplayerstatechange",this.zG);this.listen("click",this.onClick);this.X.push(this.G(this.W,"videodatachange",this.zG));this.X.push(this.G(this.W,"videoplayerreset",this.zG));this.X.push(this.G(this.W,"onPlaylistUpdate",this.zG));this.X.push(this.G(this.W,"autonavchange",this.CA));XX(n,this.element,this);this.zG()}; Psj=function(n){var Z=Z===void 0?!1:Z;return kF(en(n,oco),n,Z,"Drm Licensor URL")}; Jse=function(n){var Z=1,F=g.jf(n.iY.experiments,"html5_default_ad_gain");F&&n.isAd()&&(Z=F);var y,l;F=((y=n.V)==null?void 0:y.audio.T)!=null?(l=n.V)==null?void 0:l.audio.T:n.Wu;isNaN(F)||(n.iU=4);return Math.min(1,Math.pow(10,-F/20))||Z}; BB=function(n,Z,F,y,l){var m=UbY(y);return QJ8(Z,F,y,new lb(m),l,n.X.get())}; g.nT=function(n){return n.j("enable_wn_infocards")}; Y4f=function(n,Z,F){switch(Z){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":F>30?n.limitedPlaybackDurationInSeconds=30:F<30&&F>10&&(n.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":n.limitedPlaybackDurationInSeconds=F*.2}}; L97=function(n,Z,F){var y=Z.B();n.thirdParty||(n.thirdParty={});n.thirdParty=Object.assign({},n.thirdParty,{embedUrl:y.loaderUrl});y.ancestorOrigins&&(n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{ancestorOrigins:y.ancestorOrigins}));y.uT!=null&&(n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(y.uT)}));y.k0&&(n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext, {visibilityFractionSource:y.k0}));n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Z1(),autoplayIntended:F4(Z),autoplayStatus:S4f(Z,F)})}; jJT=function(n){var Z=n.T;n.T=[];return Z}; yo=function(n){n.cE()&&(n.mQ&&n.mQ.Y7("rs_s"),Zq&&n.getCurrentTime()>0&&n.seekTo(0),n.Lz(),n.load(),UYp(n,null));delete n.C}; hno=function(n,Z,F,y,l,m){var a=a===void 0?"trayride":a;F?(n.rM(2),g.l$(g.x6(F),function(){if(window[a])Mpf(n,y,a,l);else{n.rM(3);var D=Nb3(F),p=document.getElementById(D);p&&(a7Q(D),p.parentNode.removeChild(p));g.yi(new g.FV("BL:ULB",""+F))}},m)):Z?(m=g.FI("SCRIPT"),Z instanceof Jg?(m.textContent=hi(Z),mq(m)):m.textContent=Z,m.nonce=s0(document),document.head.appendChild(m),document.head.removeChild(m),window[a]?Mpf(n,y,a,l):(n.rM(4),g.yi(new g.FV("BL:ULBJ")))):g.yi(new g.FV("BL:ULV"))}; ESe=function(n,Z){var F,y;return(F=S0(n,"macroMarkersListEntity",Z))==null?void 0:(y=F.markersList)==null?void 0:y.markerType}; $n=function(n,Z,F,y){Z=Z===void 0?{}:Z;if(y===void 0?0:y)return Z.disabled=1,0;if(lJ(n.S,sN.AV1_CODECS)&&lJ(n.S,sN.HEIGHT)&&lJ(n.S,sN.BITRATE))return Z.isCapabilityUsable=1,8192;try{var l=Ecj();if(l&&!n.j("disable_av1_setting"))return Z.localPref=l}catch(D){}y=1080;l=navigator.hardwareConcurrency;l<=2&&(y=480);Z.coreCount=l;if(l=g.jf(n.experiments,"html5_default_av1_threshold"))y=Z["default"]=l;if(n=n.S.Tx)Z.mcap=n,y=Math.max(y,n);if(F){var m,a;if(n=(m=F.videoInfos.find(function(D){return Fa(D)}))== null?void 0:(a=m.X)==null?void 0:a.powerEfficient)y=8192,Z.isEfficient=1; F=F.videoInfos[0].video;m=Math.min(sc("1",F.fps),sc("1",30));Z.perfCap=m;y=Math.min(y,m);F.isHdr()&&!n&&(Z.hdr=1,y*=.75)}else F=sc("1",30),Z.perfCap30=F,y=Math.min(y,F),F=sc("1",60),Z.perfCap60=F,y=Math.min(y,F);return Z.av1Threshold=y}; mC=function(){ds.apply(this,arguments)}; g.Bu=function(n){return n==null?"":String(n)}; O9e=function(){}; csK=function(n,Z,F){this.callback=n;this.slot=Z;this.tG=F}; at=function(n,Z){var F;return((F=n.N.get(Z))==null?void 0:V4n(F.buffer))||0}; g.BT=function(n,Z){return n in HR?HR[n]:Z}; I7U=function(n,Z){KT.getInstance().estimate().then(function(F){F=Object.assign({},Z,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:vcY(F==null?void 0:F.usage),deviceStorageQuotaMbytes:vcY(F==null?void 0:F.quota)});n.N("idbQuotaExceeded",F)})}; f77=function(){}; Aso=function(n,Z,F,y){y=new D1(n.api,n.layoutId,n.interactionLoggingClientData,n.Hr,y,n.zx);y.oY(n.answers);y.init(Tb("survey-answer"),Z,F);n.L&&(Z=n.questionText.getAttribute("id"),Z!=null&&(y.N!==null?y.N.X.setAttribute("aria-describedby",Z):y.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",Z)));n.X.push(y)}; W6Q=function(n,Z,F){var y=!(!Z||Z.bY!==n.bY||Z.type!==n.type||Z.O8!==n.O8);return F?y&&!!Z&&(n.range&&Z.range?Z.range.end===n.range.end:Z.range===n.range)&&Z.N+Z.X===n.N+n.X:y}; rs8=function(n){var Z=Array.from(n.N.keys()).sort(function(y,l){return pT(n,n.N[l])-pT(n,n.N[y])}); Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next())F=n.N[F.value],F.jobId===void 0||F.aR||(n.scheduler.qc(F.jobId),dD(F.qW,10))}; g.qj=function(n,Z,F){g.LT.call(this,n);this.videoData=Z;this.audioTrack=F;this.X=null;this.V=!1;this.S=Z.Tb;this.L=Z.Dc;this.V=g.uW(Z)}; wp=function(n,Z,F,y,l){CW.call(this,n,{U:"span",K:l?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",Z,F,y);this.X=l;this.adBadgeText=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);this.adBadgeText.oY(this.element);g.S(this,this.adBadgeText);l?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Zq&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; QAo=function(n,Z){var F=4320;!n.Y.X||g.ri(n.Y)||n.Y.j("hls_for_vod")||n.Y.j("mweb_remove_360p_cap")||(F=g.FF.medium);var y=g.jf(n.Y.experiments,"html5_default_quality_cap");y&&Z.N.N&&(n.Y.j("html5_always_apply_default_quality_cap")||!Z.videoData.DI&&!Z.videoData.by)&&(F=Math.min(F,y));y=g.jf(n.Y.experiments,"html5_random_playback_cap");var l=/[a-h]$/;y&&l.test(Z.videoData.clientPlaybackNonce)&&(F=Math.min(F,y));if(l=y=g.jf(n.Y.experiments,"html5_hfr_quality_cap"))a:{l=Z.N;if(l.N){l=g.Y(l.videoInfos); for(var m=l.next();!m.done;m=l.next())if(m.value.video.fps>32){l=!0;break a}}l=!1}l&&(F=Math.min(F,y));(y=g.jf(n.Y.experiments,"html5_live_quality_cap"))&&Z.videoData.isLivePlayback&&(F=Math.min(F,y));F=xY3(n,Z,F);n=g.jf(n.Y.experiments,"html5_byterate_soft_cap");return new vL(0,F===4320?0:F,!1,"d",n)}; JQ=function(n){return h6(n)==="TVHTML5_UNPLUGGED"}; ln=function(n,Z){this.request=n;this.cursor=Z}; uPK=function(n){this.api=n;this.N={}}; te=function(n){return n.yU||V7(n)==="detailpage"||V7(n)==="shortspage"||n.mutedAutoplay}; Tp=function(n){var Z=this;this.Y=n;this.X=[];this.T=new Map;this.V=new Map;this.N=new Map;this.vx={Lo:function(){return Z.T}, cYs:function(){return Z.V}, Mq:function(){return Z.X}}; this.S=this.Y.j("html5_huli_ssdai_deprecate_playback_timeline_id")}; g.J0=function(n){g.Xu.call(this);this.loaded=!1;this.player=n}; Gvo=function(n){var Z=V7(n)==="adunit"?n.Bt:te(n)?V7(n)==="detailpage"||V7(n)==="shortspage"?n.isAutonav||n.fR>0:n.h2?!1:n.iY.nF||n.iY.fF||!g.R6(n.iY)?!0:!1:(n.h2?0:n.N1)&&g.R6(n.iY)?!0:!1;n.j("html5_log_detailpage_autoplay")&&V7(n)==="detailpage"&&n.Xp("autoplay_info",{autoplay:n.yU,autonav:n.isAutonav,wasDompaused:n.h2,result:Z});return Z}; Ml=function(n,Z,F){if(n.policy.fF)return!1;var y;var l=n.N,m=((y=Z.N)==null?void 0:y.O8)||-1;!l.policy.HE&&l.X===3&&m+1>=l.V?(l.Xp("sdai",{haltrq:m+1,est:l.V}),y=!1):y=l.X!==2;if(!y||!ot(Z.N?Z.N.bY.Er:Z.bY.Er,n.policy,n.V,n.loader.aj)||n.loader.isSuspended&&(!PK(n.schedule)||n.loader.JE))return!1;if(n.policy.V&&Ju>=5)return g.J3(n.loader.Ix),!1;if(n.eT.isManifestless){if(Z.X.length>0&&Z.N&&Z.N.O8===-1||Z.X.length>=n.policy.qa||!n.policy.cT&&Z.X.length>0&&!n.policy.L.F0)return!1;if(Z.C)return!n.eT.isLive|| !isNaN(n.DC)}if(sS8(Z))return!1;if(!Z.N){if(!Z.bY.Pm())return!1;Qo(Z,n.loader.getCurrentTime())}if(dg(Z)&&(Z.pB()!==dg(Z)||n.loader.isSuspended))return!1;l=(y=n.policy.bk)&&!Z.X.length&&Lh(Z,!0)=n.policy.Ye)return!1;y=Z.N;if(!y)return!0;y.type===4&&y.bY.Pm()&&(Z.N=g.lj(y.bY.vK(y)),y=Z.N);if(!y.tF()&&!y.bY.bD(y))return!1;m=n.eT.z7||n.eT.V;if(n.eT.isManifestless&& m){m=Z.bY.index.pJ();var a=F.bY.index.pJ();m=Math.min(m,a);if(Z.bY.index.Rp()>0&&m>0&&y.O8>=m)return Z.Wr=m,F.Wr=m,!1}if(y.bY.info.audio&&y.type===4||y.tF())return!1;m=!Z.V&&!F.V;if(l=!l)l=y.S,l=!!(F.N&&!Kh(F.N)&&F.N.SRnP(n,Z)?(RnP(n,Z),!1):(n=Z.fn)&&n.isLocked()?!1:!0}; gcQ=function(n,Z,F){var y={};y.isHdr=Z.includes("HDR");switch(Z.replace("HDR","").replace("720","")){case "AUDIO":y.trackType=1;break;case "SD":y.trackType=2;break;case "HD":y.trackType=3;break;case "UHD1":y.trackType=4;break;case "UHD2":y.trackType=5;break;default:y.trackType=0}!y.trackType||F[Z]||Iy(n)&&!pf(n,Z)||(n.authorizedFormats.push(y),F[Z]=!0)}; uN3=function(n){var Z=n.api.B(),F=NzK(Z);F=aWK(F);var y=F.DH.bind(F);F.DH=function(D){var p;return g.A(function(L){if(L.N==1)return g.x(L,y(D),2);p=L.X;n.api.Xp("itr",{});return L.return(p)})}; try{var l=i97({Rt:F,z0:{maxAttempts:5},zY:{ZI:"CLEn",disable:Z.experiments.RY("html5_web_po_disable_remote_logging"),vZ:$p7(Z.experiments),tf:function(D){var p=Csf.get(D);p||(p=new Jf3(D),p=new g.SI(p),Csf.set(D,p));return p}, gVp:n.j("wpo_dis_lfdms")?0:1E3},JDT:g.yi});var m=new hX({Lq:l,Rt:F,onError:g.yi});jai(m.dl()).then(function(){n.N=!0;n.S.resolve()}); n.j("html5_web_po_token_disable_caching")||m.jm(150);g.S(n,l);g.S(n,m);n.X=m}catch(D){g.yi(D);var a;(a=l)==null||a.dispose()}}; g.pv=function(n,Z,F){n=n.split(".");F=F||g.KQ;for(var y;n.length&&(y=n.shift());)n.length||Z===void 0?F[y]&&F[y]!==Object.prototype[y]?F=F[y]:F=F[y]={}:F[y]=Z}; nkK=function(n,Z){if(n.N){var F=n.N;var y=n.getCurrentTime(),l=F.UV();var m=F.policy.X;F.V||(m=Math.max(m-1,0));m*=YN(F);y>=l-m||!F.j5()?F=y0&&(F=Math.min(F,y));if(y=g.jf(n.Y.experiments,"html5_max_vertical_resolution")){l=4320; for(m=0;my&&(l=Math.min(l,a.video.qualityOrdinal))}if(l<4320){for(a=m=0;a6E4&&delete It[l];n&&(n.N=0)},5E3)); return F.count>5?(F.count===6&&Math.random()*1E5<1&&(F=new g.FV("CSI data exceeded logging limit with key",Z.split("_")),Z.indexOf("plev")>=0||g.yi(F)),!0):!1}; Bbp=function(n){var Z=this;var F=F===void 0?0:F;var y=y===void 0?g.pF():y;this.T=F;this.scheduler=y;this.X=new g.uR;this.N=n;for(n={Pp:0};n.Pp=0?Z:g.kq(n.provider);var F=n.provider.mQ.PP(),y=F.P4-(n.r5||0);y>0&&g.bM(n,Z,"bwm",[y,(F.Gw-(n.h2||0)).toFixed(3)]);isNaN(n.r5)&&F.P4&&n.isOffline&&n.XN(!1);n.r5=F.P4;n.h2=F.Gw;isNaN(F.bandwidthEstimate)||g.bM(n,Z,"bwe",[F.bandwidthEstimate.toFixed(0)]);n.provider.Y.eG()&&Object.keys(F.N).length!==0&&n.Xp("bwinfo",F.N);if(n.provider.Y.eG()||n.provider.Y.j("html5_log_meminfo"))y=nf7(),Object.values(y).some(function(m){return m!==void 0})&&n.Xp("meminfo",y); if(n.provider.Y.eG()){var l;(y=(l=n.xi)==null?void 0:ZrY(l))&&Object.values(y).some(function(m){return m!=null})&&n.Xp("cpuinfo",y)}n.fR&&n.Xp("jsprof",n.fR.flush()); n.Pr&&g.bM(n,Z,"bat",[n.Pr.level,n.Pr.charging?"1":"0"]);l=n.provider.mQ.getVisibilityState();n.ud!==l&&(g.bM(n,Z,"vis",[l]),n.ud=l);fT(n,Z);(l=gE8(n.provider))&&l!==n.PV&&(g.bM(n,Z,"conn",[l]),n.PV=l);zM(n,Z,F)}; XUY=function(n){var Z;return!((Z=n.iY.getWebPlayerContextConfig())==null||!Z.enableProximaLowLatency)}; g.bX=function(n){n.N=Math.min(n.S,n.N*n.J);n.T=Math.min(n.S,n.N+(n.C?Math.round(n.C*(Math.random()-.5)*2*n.N):0));n.X++}; Zvp=function(n){var Z=n.Px();Z.setPlaybackRate(n.Y.V?1:oo7(n,Number(g.z5("yt-player-playback-rate"))||1));Z.Vu(n.e1,n);Z.If()}; Au=function(n){this.AG=UO(n)}; RnP=function(n,Z){var F=n.N;F=F.N?F.N.q1:null;if(n.policy.lY&&F)return F.startSecs+F.iy+15;Z=Jf(n.loader,Z);n.policy.SG>0&&(F=((0,g.tP)()-n.loader.TM)/1E3,Z=Math.min(Z,n.policy.SG+n.policy.yQ*F));Z=n.loader.getCurrentTime()+Z;return n.policy.uM&&(F=$7n(n.loader)+n.policy.uM,F0?n:0}else n.LO().videoData.IW=n.playback.getCurrentTime()}; yp3=function(n,Z){var F=Date.now()/1E3,y=F-n.startTimeSecs,l=F-n.C,m=l>=n.policy.MJ,a=!1;if(m){var D=0;!isNaN(Z)&&Z>n.S&&(D=Z-n.S,n.S=Z);D/l=n.policy.GO&&!n.T;if(!m&&!F&&N7Y(n,Z))return NaN;F&&(n.T=!0);a:{y=a;F=(0,g.tP)()/1E3-(n.K3.lH()||0)-n.J.N-n.policy.uH;m=n.X.startTime;F=m+F;if(y){if(isNaN(Z)){fs(n,NaN,"n",Z);m=NaN;break a}y=Z-n.policy.Jm;y=0?$1()-WK:-1,F=Uf?$1()-No:-1,y=iu>=0?$1()-iu:-1;if(n==947190542)return 100;if(n==79463069)return 200;n=[2E3,4E3];var l=[250,500,1E3];xr(637,Error(),.001);var m=Z;F!=-1&&F1500&&y<4E3?500:a}; g.iX=function(n,Z,F){n.N=Z;n.C=F||0}; rp=function(n,Z){g.MV.call(this,n);this.WI=Z;this.X=new g.IS(this);this.J=new g.e7(this.hNR,1E3,this);this.L=this.fJ=null;g.S(this,this.X);g.S(this,this.J);Z=this.W.B();n.createClientVe(this.element,this,28656);g.gi(this.element,"ytp-contextmenu");this.W.B().experiments.RY("delhi_modern_web_player")&&g.ry(Z)&&g.gi(this.element,"ytp-delhi-modern-contextmenu");m38(this);this.hide()}; VZP=function(n,Z){return Gij(n,Z)}; xT=function(n){this.value=n}; aMo=function(n){this.AG=UO(n)}; k9P=function(n,Z){g.A3(function(){l4("//googleads.g.doubleclick.net/pagead/id",Kmi).then(e5f,function(F){return D3i(Z,F)}).Mc(g.ha)},n)}; hs=function(n,Z,F,y,l,m,a,D,p,L,q,w,T,P,J,U){g.I.call(this);var h=this;this.Fz=n;this.slot=Z;this.layout=F;this.uY=y;this.TN=l;this.nR=m;this.tG=a;this.tD=D;this.Cn=p;this.Z6=L;this.position=w;this.V=T;this.U8=P;this.mB=J;this.context=U;this.dJ=!0;this.T=!1;this.A2="not_rendering";this.N=!1;n=o5(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,n,F.layoutId);var v;n=((v=Gp(this))==null?void 0:v.progressCommands)||[];this.X=new Rt(p,n,F.layoutId,function(){return h.Vk()})}; Ap=function(n){var Z="";if(n.i6)return n.i6;n.isLivePlayback&&(Z=n.allowLiveDvr?"dvr":n.isPremiere?"lp":n.sV?"window":"live");n.z7&&(Z="post");return Z}; g.j$=function(n){return!!n.N&&p7U(n.N)}; gp=function(n){return n?g.sg(n):""}; w7K=function(n,Z,F,y,l){if(!Z.bY.Pm()){if(!(l=F===0||!!Z.X.length&&Z.X[0]instanceof i$))a:{if(Z.X.length&&(l=Z.X[0],l instanceof qH&&l.Nh&&l.Ej)){l=!0;break a}l=!1}l||n.policy.N||eY(Z);return F}var m=CT(Z,F);if(!isNaN(m))return m;if(n.loader.p_(F*1E3))return F;l.cM?n.policy.yV&&(n=Jf(n.loader,Z),Lmj(Z.T,F+n,!0)):(Z.gW(),n.loader.pU(!1,"sta_"+ +Z.bY.info.BE()));return y&&(n=NY(y.qj(),F),!isNaN(n))?(Qo(Z,n+qme,l),F):Qo(Z,F,l)}; M$=function(n,Z,F,y,l,m,a,D){this.V=n;this.J=Z;this.T=F;this.C=y;this.N=l;this.S=m;this.X=a;this.L=D}; i_=function(){this.T=0;this.N=[];this.X=!1}; g.fc=function(n,Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next())if(F=F.value,F.cueRangeSetIdentifier){var y=void 0;n.lT.set(F.cueRangeSetIdentifier,(y=F.playerCueRanges)!=null?y:[])}}; g.h$=function(n,Z){var F=g.QL();Z!==F[n]&&(Z!==0?F[n]=Z:delete F[n],g.TEU(F))}; ofY=function(n,Z){if(Z.length===0||aP(n))return null;n.iY.S.T&&(ra=!0);var F=n.by;var y=n.lengthSeconds,l=n.isLivePlayback,m=n.z7,a=n.iY,D=x0f(Z);if(l||m){a=a.experiments;y=new ab("",a,!0);y.X=!m;y.t2=!0;y.isManifestless=!0;y.isLive=!m;y.z7=m;l=g.Y(Z);for(D=l.next();!D.done;D=l.next()){var p=D.value;D=Ec(p,F);var L=l5(3,p);L=oI(L.AQ||p.url||"",L.QD,L.s);var q=L.get("id");q&&q.includes("%7E")&&(y.Ns=!0);var w=void 0;q=(w=a)==null?void 0:w.RY("html5_max_known_end_time_rebase");w=Number(p.targetDurationSec|| 5);p=Number(p.maxDvrDurationSec||14400);var T=Number(L.get("mindsq")||L.get("min_sq")||"0"),P=Number(L.get("maxdsq")||L.get("max_sq")||"0")||Infinity;y.Nt=y.Nt||T;y.DE=y.DE||P;var J=!PM(D.mimeType);L&&u$(y,new ls(L,D,{H7:w,KO:J,GB:p,Nt:T,DE:P,b4:300,z7:m,Cx:q}))}F=y}else if(D==="FORMAT_STREAM_TYPE_OTF"){y=y===void 0?0:y;m=new ab("",a.experiments,!1);m.duration=y||0;a=g.Y(Z);for(y=a.next();!y.done;y=a.next())y=y.value,l=Ec(y,F,m.duration),D=l5(1,y),(D=oI(D.AQ||y.url||"",D.QD,D.s))&&(l.streamType=== "FORMAT_STREAM_TYPE_OTF"?u$(m,new Hf(D,l,"sq/0")):u$(m,new lK(D,l,$C(y.initRange),$C(y.indexRange))));m.isOtf=!0;F=m}else{y=y===void 0?0:y;m=new ab("",a.experiments,!1);m.duration=y||0;a=g.Y(Z);for(y=a.next();!y.done;y=a.next())L=y.value,y=Ec(L,F,m.duration),l=$C(L.initRange),D=$C(L.indexRange),q=l5(5,L),(L=oI(q.AQ||L.url||"",q.QD,q.s))&&u$(m,new lK(L,y,l,D));F=m}Z.length>0&&(Z=Z[0],b$(n)&&Z.url&&(n.R0=n.R0||RvT(Z.url)));Z=n.isLivePlayback&&!n.z7&&!n.sV&&!n.isPremiere;n.j("html5_live_head_playable")&& (!d9(n)&&Z&&n.Xp("missingLiveHeadPlayable",{}),n.iY.Ns==="yt"&&(F.r5=!0));return F}; N2=function(n){n.setAttribute("role","link")}; X4=function(n,Z){var F=n.X[Z];F&&F.forEach(function(y){try{y()}catch(l){}}); (F=n.N[Z])&&F.forEach(function(y){y()}); n.N[Z]=[]}; Ep=function(n,Z,F){n.I6()?n.jG():n.KJ(Z,F)}; PKU=function(n,Z){n=new Set(n.map(Z));n.delete(void 0);return n.size>=2}; zp=function(n,Z){this.X=n;this.N=Z+"::"}; kM=function(n){this.AG=UO(n)}; Jpo=function(n,Z){return n.bY!==Z.bY?!1:n.type===4&&Z.type===3&&n.bY.Pm()?(n=n.bY.vK(n),IF(n,function(F){return Jpo(F,Z)})):n.O8===Z.O8&&!!Z.X&&Z.N+Z.X>n.N&&Z.N+Z.X<=n.N+n.X}; Z1=function(){try{var n=window.navigator;if(n.getAutoplayPolicy&&typeof n.getAutoplayPolicy==="function"){var Z=document.getElementsByClassName(g.qm.Dpx);var F=Z.length>0&&Z[0]?n.getAutoplayPolicy(Z[0]):n.getAutoplayPolicy("mediaelement");if(QPY[F])return QPY[F]}}catch(y){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; cm=function(){Il.apply(this,arguments)}; Ymf=function(n){g.Oh("yt-player-watch-later-pending",n)}; p1=function(n){this.value=n}; Smj=function(n){if(!n)return null;n=g.Y(n);for(var Z=n.next();!Z.done;Z=n.next()){var F=void 0,y=void 0;if(Z=(F=Z.value.adPlacementRenderer)==null?void 0:(y=F.renderer)==null?void 0:y.videoAdTrackingRenderer)return Z}return null}; tu=function(n,Z,F){return(F<0||F===n.C)&&!isNaN(n.J)?n.J:Z}; yiQ=function(){var n=g.KQ.navigator;return n?n.connection:void 0}; g.OZ=function(){return g.z5("yt-remote-session-screen-id")}; $e=function(n,Z,F){if(mB(n.U8.get())){var y=n.N.get(Z)||0;y++;n.N.set(Z,y);return F+"_"+Z+"_"+y}return g.qO(16)}; jPf=function(n){n=(n.renderer.linearAdSequenceRenderer||{}).linearAds;return n!=null&&n.length?n.filter(function(Z){var F,y;return((F=g.e(Z,n7))==null?void 0:(y=F.playerOverlay)==null?void 0:y.instreamSurveyAdRenderer)!=null}).length:0}; kT=function(n,Z,F){var y=n.api.getCurrentTime(),l=U3Q(n,y);n=U3Q(n,y+Z);return{startMediaTimeMs:l,endMediaTimeMs:n,seekSource:F}}; NEK=function(n,Z,F,y,l){try{var m,a=Z===((m=n.KR)==null?void 0:m.N)?n.audioTrack:n.videoTrack;if(n.policy.yg&&(y==null?0:y.tF())){if((y==null?void 0:y.Pr)>1)return 6;a.zx=new g.e7(function(){var D=dg(a);n.CR()||D==null||!D.isLocked?n.mQ.B().eG()&&n.Xp("eosl",{delayA:D==null?void 0:D.info.bd()}):awY(a)?(n.mQ.B().eG()&&n.Xp("eosl",{dunlock:D==null?void 0:D.info.bd()}),eI(n,a===n.audioTrack)):(n.Xp("nue",{ls:D.info.bd()}),D.info.Pr+=1,n.KR&&n.fz())},1E4,n); n.mQ.B().eG()&&n.Xp("eosl",{delayS:y.bd()});a.zx.start()}n.policy.xU&&(y==null?void 0:y.bY)instanceof FN&&y.tF()&&n.Xp("poseos",{itag:y.bY.info.itag,seg:y.O8,lseg:y.bY.index.pJ(),es:y.bY.index.T});Z.appendBuffer(F,y,l)}catch(D){if(D instanceof DOMException){if(D.code===11)return 2;if(D.code===12)return 5;if(D.code===22||D.message.indexOf("Not enough storage")===0)return Z=Object.assign({name:"QuotaExceededError",buffered:dr(Z.qj()).replace(/,/g,"_"),vheap:HK(n.videoTrack),aheap:HK(n.audioTrack),message:g.ft(D.message, 3),track:n.KR?Z===n.KR.X?"v":"a":"u"},nf7()),n.handleError("player.exception",Z),1;g.ZW(D)}return 4}return n.KR.JX()?3:0}; h2Y=function(n){return{tN:ut(n,3),rz:ut(n,4),QC:ut(n,5),sHp:dp(n,8),RMx:ut(n,10),TD:ut(n,12),Ey:ut(n,13),BR:ut(n,14),DO:ut(n,15),EE:ut(n,16)}}; tGQ=function(n,Z,F){var y=n.split("#",2);n=y[0];y=y.length>1?"#"+y[1]:"";var l=n.split("?",2);n=l[0];l=jy(l[1]||"");for(var m in Z)if(F||!g.I4(l,m))l[m]=Z[m];return g.pQ(n,l)+y}; g.dV=function(n,Z,F,y){g.oS.call(this,n);this.priority=Z;F&&g.wK(this,F);y&&this.setContent(y)}; nh=function(n,Z){Z=String(Z);n.contentType==="application/xhtml+xml"&&(Z=Z.toLowerCase());return n.createElement(Z)}; Ef8=function(n,Z,F,y,l){Z=jlQ(Z,y);Z!=null&&(F=WTp(n,F),l(Z,n),s8K(n,F))}; g.ye=function(n,Z){return Array.prototype.splice.call(n,Z,1).length==1}; g.Yu=function(n,Z,F){Z=Z===void 0?!1:Z;F=F===void 0?!1:F;var y=g.BT("INNERTUBE_CONTEXT");if(!y)return g.ZW(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};y=g.Q7(y);g.N5("web_no_tracking_params_in_shell_killswitch")||delete y.clickTracking;y.client||(y.client={});var l=y.client;l.clientName==="MWEB"&&l.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(l.clientFormFactor=g.BT("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");l.screenWidthPoints=window.innerWidth;l.screenHeightPoints= window.innerHeight;l.screenPixelDensity=Math.round(window.devicePixelRatio||1);l.screenDensityFloat=window.devicePixelRatio||1;l.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var m=m===void 0?!1:m;var a=g.mM(),D="USER_INTERFACE_THEME_LIGHT";a.Wx(165)?D="USER_INTERFACE_THEME_DARK":a.Wx(174)?D="USER_INTERFACE_THEME_LIGHT":!g.N5("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (D="USER_INTERFACE_THEME_DARK");m=m?D:Or7()||D;l.userInterfaceTheme=m;if(!Z){if(m=VRe())l.connectionType=m;g.N5("web_log_effective_connection_type")&&(m=s_U())&&(y.client.effectiveConnectionType=m)}var p;if(g.N5("web_log_memory_total_kbytes")&&((p=g.KQ.navigator)==null?0:p.deviceMemory)){var L;p=(L=g.KQ.navigator)==null?void 0:L.deviceMemory;y.client.memoryTotalKbytes=""+p*1E6}g.N5("web_gcf_hashes_innertube")&&(m=HbY())&&(L=m.coldConfigData,p=m.coldHashData,m=m.hotHashData,y.client.configInfo=y.client.configInfo|| {},L&&(y.client.configInfo.coldConfigData=L),p&&(y.client.configInfo.coldHashData=p),m&&(y.client.configInfo.hotHashData=m));L=g.EG(g.KQ.location.href);!g.N5("web_populate_internal_geo_killswitch")&&L.internalcountrycode&&(l.internalGeo=L.internalcountrycode);l.clientName==="MWEB"||l.clientName==="WEB"?(l.mainAppWebInfo||(l.mainAppWebInfo={}),l.mainAppWebInfo.graftUrl=g.KQ.location.href,g.N5("kevlar_woffle")&&cpQ.instance&&(L=cpQ.instance,l.mainAppWebInfo.pwaInstallabilityStatus=!L.N&&L.X?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),l.mainAppWebInfo.webDisplayMode=jx(),l.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):l.clientName==="TVHTML5"&&(!g.N5("web_lr_app_quality_killswitch")&&(L=g.BT("LIVING_ROOM_APP_QUALITY"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{appQuality:L})),L=g.BT("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{certificationScope:L}));if(!g.N5("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(X){}q=void 0}q&&(l.timeZone=q)}(q=pq())?l.experimentsToken=q:delete l.experimentsToken;q=Lq();BK.instance||(BK.instance=new BK);y.request=Object.assign({},y.request,{internalExperimentFlags:q,consistencyTokenJars:pj(BK.instance.N)});!g.N5("web_prequest_context_killswitch")&&(q=g.BT("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(y.request.externalPrequestContext=q);l=g.mM();q=l.Wx(58);l=l.get("gsml","");y.user=Object.assign({}, y.user);q&&(y.user.enableSafetyMode=q);l&&(y.user.lockedSafetyMode=!0);g.N5("warm_op_csn_cleanup")?F&&(Z=g.f_())&&(y.clientScreenNonce=Z):!Z&&(Z=g.f_())&&(y.clientScreenNonce=Z);n&&(y.clickTracking={clickTrackingParams:n});if(n=g.Di("yt.mdx.remote.remoteClient_"))y.remoteClient=n;vN.getInstance().setLocationOnInnerTubeContext(y);try{var w=Nh(),T=w.bid;delete w.bid;y.adSignalsInfo={params:[],bid:T};for(var P=g.Y(Object.entries(w)),J=P.next();!J.done;J=P.next()){var U=g.Y(J.value),h=U.next().value, v=U.next().value;w=h;T=v;n=void 0;(n=y.adSignalsInfo.params)==null||n.push({key:w,value:""+T})}var V,f;if(((V=y.client)==null?void 0:V.clientName)==="TVHTML5"||((f=y.client)==null?void 0:f.clientName)==="TVHTML5_UNPLUGGED"){var W=g.BT("INNERTUBE_CONTEXT");W.adSignalsInfo&&(y.adSignalsInfo.advertisingId=W.adSignalsInfo.advertisingId,y.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",y.adSignalsInfo.limitAdTracking=W.adSignalsInfo.limitAdTracking)}}catch(X){g.ZW(X)}return y}; cV=function(n,Z,F,y,l){y=P9o(y,Z);DX(n,F,y,l);y&&!t9(y)&&k1(n.AG);return n}; Q$U=function(n,Z){Z=tiY(n,Z);if(!Z)return null;var F;Z.sE=(F=o5(n.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:F.adBreakRemainingLengthSeconds;return Z}; $F=function(n,Z,F){n.state.N.hasOwnProperty(Z)||RS(n,Z,F);n.app.B().L&&(n.state.L[Z]=function(){return F.apply(n,g.S7.apply(0,arguments))},n.state.C.add(Z))}; Mj=function(n,Z,F,y,l){CW.call(this,n,{U:"div",K:"ytp-ad-player-overlay-layout",D:[{U:"div",K:"ytp-ad-player-overlay-layout__player-card-container"},{U:"div",K:"ytp-ad-player-overlay-layout__ad-info-container"},{U:"div",K:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{U:"div",K:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",Z,F,y);this.X=l;this.zx=this.Vg("ytp-ad-player-overlay-layout__player-card-container");this.N=this.Vg("ytp-ad-player-overlay-layout__ad-info-container"); this.L=this.Vg("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Tx=this.Vg("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; WD=function(n,Z,F){var y=MT(n.X.get(),"SLOT_TYPE_PLAYER_BYTES"),l=[new nz(n.N,y)];n=[new lB(n.N,y),new ZX(n.N,F)];return{slotId:y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:l,slotExpirationTriggers:n,Gx:"core"}}; ioj=function(n,Z,F){var y=n.videoId,l=g.ij(n),m=n.B(),a={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(of()),referer:document.location.toString(),signatureTimestamp:20394},D=g.mM();n.isAutonav&&(a.autonav=!0);D.Wx(141)&&(a.autonavState=D.Wx(140)?"STATE_OFF":"STATE_ON");a.autoCaptionsDefaultOn=D.Wx(66);Gvo(n)&&(a.autoplay=!0);m.L&&n.cycToken&&(a.cycToken=n.cycToken);m.enablePrivacyFilter&&(a.enablePrivacyFilter=!0);n.isFling&&(a.fling=!0);var p=n.forceAdsUrl;if(p){D={};var L=[];p=p.split(","); p=g.Y(p);for(var q=p.next();!q.done;q=p.next()){q=q.value;var w=q.split("|");w.length!==3||q.includes("=")||(w[0]="breaktype="+w[0],w[1]="offset="+w[1],w[2]="url="+w[2]);q={adtype:"video_ad"};w=g.Y(w);for(var T=w.next();!T.done;T=w.next()){var P=g.Y(T.value.split("="));T=P.next().value;P=C2i(P);q[T]=P.join("=")}w=q.url;T=q.presetad;P=q.viralresponseurl;var J=Number(q.campaignid);if(q.adtype==="in_display_ad")w&&(D.url=w),T&&(D.presetAd=T),P&&(D.viralAdResponseUrl=P),J&&(D.viralCampaignId=String(J)); else if(q.adtype==="video_ad"){var U={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(q.offset)||0)}};if(q=VLj[q.breaktype])U.breakType=q;w&&(U.url=w);T&&(U.presetAd=T);P&&(U.viralAdResponseUrl=P);J&&(U.viralCampaignId=String(J));L.push(U)}}a.forceAdParameters={videoAds:L,inDisplayAd:D}}n.isInlinePlaybackNoAd&&(a.isInlinePlaybackNoAd=!0);n.isLivingRoomDeeplink&&(a.isLivingRoomDeeplink=!0);D=n.IK;if(D!=null){D={startWalltime:String(D)};if(L=n.j8)D.manifestDuration=String(L||14400);a.liveContext= D}if(n.mutedAutoplay){a.mutedAutoplay=!0;D=m.getWebPlayerContextConfig();var h,v;(D==null?0:(h=D.embedsHostFlags)==null?0:h.allowMutedAutoplayDurationMode)&&(D==null?0:(v=D.embedsHostFlags)==null?0:v.allowMutedAutoplayDurationMode.includes(vfQ[n.mutedAutoplayDurationMode]))&&(a.mutedAutoplayDurationMode=vfQ[n.mutedAutoplayDurationMode])}if(n.h2?0:n.N1)a.splay=!0;h=n.vnd;h===5&&(a.vnd=h);h={};if(v=n.isMdxPlayback)h.triggeredByMdx=v;if(v=n.FQ)h.skippableAdsSupported=v.split(",").includes("ska");if(L= n.a6){v=n.ma;D=[];L=g.Y(IMU(L));for(p=L.next();!p.done;p=L.next()){p=p.value;q=p.platform;p={applicationState:p.qk?"INACTIVE":"ACTIVE",clientFormFactor:fMi[q]||"UNKNOWN_FORM_FACTOR",clientName:Ape[p.HU]||"UNKNOWN_INTERFACE",clientVersion:p.deviceVersion||"",platform:WmY[q]||"UNKNOWN_PLATFORM"};q={};if(v){w=void 0;try{w=JSON.parse(v)}catch(f){g.yi(f)}w&&(q={params:[{key:"ms",value:w.ms}]},w.advertising_id&&(q.advertisingId=w.advertising_id),w.limit_ad_tracking!==void 0&&w.limit_ad_tracking!==null&& (q.limitAdTracking=w.limit_ad_tracking),p.osName=w.os_name,p.userAgent=w.user_agent,p.windowHeightPoints=w.window_height_points,p.windowWidthPoints=w.window_width_points)}D.push({adSignalsInfo:q,remoteClient:p})}h.remoteContexts=D}v=n.sourceContainerPlaylistId;D=n.serializedMdxMetadata;if(v||D)L={},v&&(L.mdxPlaybackContainerInfo={sourceContainerPlaylistId:v}),D&&(L.serializedMdxMetadata=D),h.mdxPlaybackSourceContext=L;a.mdxContext=h;h=Z.width;h>0&&(a.playerWidthPixels=Math.round(h));if(Z=Z.height)a.playerHeightPixels= Math.round(Z);F!==0&&(a.vis=F);if(F=m.widgetReferrer)a.widgetReferrer=F.substring(0,128);g.R6(m)&&a&&(a.ancestorOrigins=m.ancestorOrigins);n.defaultActiveSourceVideoId&&(a.compositeVideoContext={defaultActiveSourceVideoId:n.defaultActiveSourceVideoId});if(m=m.getWebPlayerContextConfig())a.encryptedHostFlags=m.encryptedHostFlags;y={videoId:y,context:l,playbackContext:{contentPlaybackContext:a}};if(n.nP){var V;y.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(V=n.nP)==null?void 0:V.reloadPlaybackParams}}n.contentCheckOk&& (y.contentCheckOk=!0);if(V=n.clientPlaybackNonce)y.cpn=V;if(V=n.playerParams)y.params=V;if(V=n.playlistId)y.playlistId=V;n.racyCheckOk&&(y.racyCheckOk=!0);V=n.B();l=V.embedConfig;n.nD&&V.j("embeds_enable_per_video_embed_config")?y.serializedThirdPartyEmbedConfig=n.nD:l&&(y.serializedThirdPartyEmbedConfig=l);y.captionParams={};l=g.mM().Wx(65);n.deviceCaptionsOn!=null?y.captionParams.deviceCaptionsOn=n.deviceCaptionsOn:g.ry(V)&&(y.captionParams.deviceCaptionsOn=l!=null?!l:!1);n.lM&&(y.captionParams.deviceCaptionsLangPref= n.lM);n.Ye.length?y.captionParams.viewerSelectedCaptionLangs=n.Ye:g.ry(V)&&(l=g.$Y(),l==null?0:l.length)&&(y.captionParams.viewerSelectedCaptionLangs=l);l=n.fetchType==="onesie"&&n.j("html5_onesie_attach_po_token");a=n.fetchType!=="onesie"&&n.j("html5_non_onesie_attach_po_token");if(l||a)l=n.B(),l.Mt&&(y.serviceIntegrityDimensions={},y.serviceIntegrityDimensions.poToken=l.Mt);V.j("fetch_att_independently")&&(y.attestationRequest={omitBotguardData:!0});y.playbackContext||(y.playbackContext={});y.playbackContext.devicePlaybackCapabilities= wGi(n);y.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&n.Xp("noVp9",{});return y}; Gt=function(n){var Z=n.uY.get();return pX(Z,n.J)}; g.MQ=function(n,Z,F,y){return new vL(g.FF[n]||0,g.FF[Z]||0,F,y)}; rpQ=function(n,Z){uc(g.bc(n.W.B()),"wl_button",function(){Ymf({videoId:Z});window.location.reload()})}; g.Ad=function(n,Z,F){return R5e(n,F||Rv,!1,Z)}; dg=function(n){return Ove(n.T)}; x33=function(n){n.X.forEach(function(Z){Z.N.toggleButton(!1)}); nB(n,!0)}; ZT=function(n,Z){return fn(n,Z,function(F){return F.X})}; GW3=function(n){n.N||(n.N=new Op);return n.N}; Zo=function(n){n.delay.stop();n.N.unsubscribe("dragmove",n.C,n);n.N.unsubscribe("dragend",n.S,n);n.T&&(n.T=!1,n.speedmasterUserEdu.xk(),n.api.setPlaybackRate(n.w5),n.api.showControls(),n.zx&&n.api.pauseVideo(),n.j("enable_smart_skip_speedmaster_on_web")&&n.api.publish("speedmasterchanged",!1))}; ZH=function(n){this.N=n;this.offset=0}; FL=function(n){g.R.call(this,{U:"div",s8:["ytp-player-content","ytp-iv-player-content"],D:[{U:"div",K:"ytp-free-preview-countdown-timer",D:[{U:"span",E8:"{{label}}"},{U:"span",K:"ytp-free-preview-countdown-timer-separator",E8:"\u2022"},{U:"span",E8:"{{duration}}"}]}]});this.api=n;this.N=null;this.T=this.X=0;this.G(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; VL=function(n,Z){Z={current:Z/1E3,duration:n.Vk()/1E3};n.M1.get().wj("onAdPlaybackProgress",Z)}; yu=function(n){var Z=[],F=m1(n);F&&Z.push(F);Z=g.xa(Z,n.T.Dr());F=g.Y(n.X);for(var y=F.next();!y.done;y=F.next()){y=y.value;for(var l=g.Y(y.info.D4),m=l.next(),a={};!m.done;a={jo:void 0},m=l.next())a.jo=m.value,y.zt&&(Z=g.I$(Z,function(D){return function(p){return!X5p(p,D.jo)}}(a))),(hY(a.jo)||a.jo.type===4)&&Z.push(a.jo)}n.N&&!W6Q(n.N,g.lj(Z),n.N.bY.Dn())&&Z.push(n.N); return Z}; Hm=function(n,Z,F){F!==void 0&&Sf(n,Z,F?1:0)}; lV=function(n){n.KR&&n.KR.JX()&&n.MD()}; s1=function(n,Z,F){Z=Math.max(Z,n.X.N);n.J.Oj(1,F/Z)}; Z_f=function(n){return pz(n,1,1)}; mf=function(n){Jw.call(this,1,arguments);this.csn=n}; R28=function(n,Z,F,y,l,m,a,D,p,L){if(tI(n.nR.get(),1).clientPlaybackNonce!==p)throw new C("Cannot register CueRange-based trigger for different content CPN",{trigger:F});n.uN.set(F.triggerId,{Wv:new aL(Z,F,y,l),cueRangeId:m});n.ES.get().addCueRange(m,a,D,L,n)}; rc=function(n){this.value=n}; n4Q=function(n){return n.vr==="H"||n.vr==="h"}; gfT=function(){}; g.ta=function(n,Z){var F=Z.type;F in n.listeners&&g.ov(n.listeners[F],Z)&&(vK(Z),n.listeners[F].length==0&&(delete n.listeners[F],n.N--))}; iro=function(n,Z){this.callback=n;this.slot=Z}; KB=function(n,Z){Z=g.Y(Z.N);for(var F=Z.next();!F.done;F=Z.next())n.append(F.value)}; DT=function(n,Z){if(typeof Z!=="number"||Z<0||Z>=n.length)throw Error();}; CKo=function(n){n.W.isFullscreen()?g.y7(n.W,n.element,10):n.oY(jC(n).body)}; udT=function(n,Z){Z.subscribeCommand&&(n.subscribeCommand=Z.subscribeCommand);Z.unsubscribeCommand&&(n.unsubscribeCommand=Z.unsubscribeCommand);Z.addToWatchLaterCommand&&(n.addToWatchLaterCommand=Z.addToWatchLaterCommand);Z.removeFromWatchLaterCommand&&(n.removeFromWatchLaterCommand=Z.removeFromWatchLaterCommand);Z.getSharePanelCommand&&(n.getSharePanelCommand=Z.getSharePanelCommand)}; uA=function(n){var Z=n.data.getUint32(n.offset+n.N);n.N+=4;return Z}; Ck7=function(n,Z){var F=n.subarray(4);F=new Uint16Array(F.buffer,F.byteOffset,F.byteLength/2);F=String.fromCharCode.apply(null,F).match(/ek=([0-9a-f]+)/)[1];for(var y="",l=0;l0){h=new LB;for(var v=0;v0?void 0:n===0?e27||(e27=[0,void 0]):[-n,void 0];case "string":return[0,n];case "object":return n}}; Hre=function(n){var Z;n=n==null?void 0:(Z=n.error)==null?void 0:Z.code;return!(n!==400&&n!==415)}; oW=function(n){n=n.L.lH()+n.zx.lH()||0;n=isNaN(n)?.5:n;return n=Math.min(n,5)}; Po=function(n,Z){var F;return(F=n.qt)==null?void 0:F.get(Z)}; JF=function(n,Z){if(n){n=n.split("&");for(var F=0;F=0){var m=n[F].substring(0,y);l=n[F].substring(y+1)}else m=n[F];Z(m,l?KP(l):"")}}}; d3e=function(n,Z){if(n.loader.isSeeking())return Z;var F=n.mQ.HV();if(!F)return Z;F=F.WE();if(F.length===0||SF(F,Z))return Z;if(!n.videoTrack.TW(Z)&&!n.audioTrack.TW(Z))return n.loader.Xp("sundrn",{b:0,lt:Z}),Z;for(var y=Z,l=Infinity,m=0;mZ)){var a=Z-F.end(m);a=20)?(n.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),Z):y}; leY=function(n,Z){if(!n.IW){var F=H6(n,"start",dk());F=n.Zv.N(F).N;var y={id:"lidarv"};y.r=Z;y.sv="968";CO!==null&&(y.v=CO);JF(F,function(l,m){return y[l]=l=="mtos"||l=="tos"?m:encodeURIComponent(m)}); Z=lN7();JF(Z,function(l,m){return y[l]=encodeURIComponent(m)}); Z="//pagead2.googlesyndication.com/pagead/gen_204?"+XW(g6(new i_,y));izY(Z);n.IW=!0}}; gy=function(n,Z){var F=n.V;F||(n.V=new dZ,F=n.V,Pp(n,Z));return F}; BE3=function(n,Z,F){if(!n.XL||n.uf==-1||Z.X===-1||n.XL.X===-1)return 0;n=Z.X-n.XL.X;return n>F?0:n}; kA=function(n,Z){n=Error.call(this,n);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.N=Z===void 0?!1:Z}; KV=function(n,Z,F,y){for(var l=0;ln.C&&(n.C=NaN,n.J=NaN);n.N&&n.N.O8===Z?DNi(n,Z,F,n.N,l):n.X===1&&jL(n,5,"noad")}; pRQ=function(n,Z,F){if(Vh(53,n.N))return!1;var y=Lo(F,qv(43,n.N));if(y.timedOut<1&&y.N<1)return!1;y=y.timedOut+y.N;n=vo(n,Z);F=Lo(F,qv(59,n));return F.timedOut+F.N+01E3&&g.yi(new g.FV("IL Attach cache exceeded limit"))}D= yE(F,Z);U1.has(D)?sC(F,Z):NI.set(D,!0)}}y=y.filter(function(q){q.csn!==Z?(q.csn=Z,q=!0):q=!1;return q}); F={csn:Z,parentVe:F.getAsJson(),childVes:g.Yn(y,function(q){return q.getAsJson()})}; Z==="UNDEFINED_CSN"?y_("visualElementAttached",m,F):n?lr("visualElementAttached",F,n,m):g.xt("visualElementAttached",F,m)}; Dt=function(n,Z,F,y,l,m,a){g.I.call(this);this.policy=n;this.info=Z;this.eT=F;this.pR=l;this.logger=new g.hL("sabr");this.Un=new s4(this);this.c8=new fB(this);this.f6=new AF(this);this.state=1;this.bu=!1;this.Sr=0;this.clipId="";this.N$=-1;this.AP=0;this.cQ=-1;this.f_=this.Wk=this.sQ=this.Yt=!1;this.policy.V1?this.BV=new b0(this,m):this.BV=new FB(this,m);this.SH=this.policy.kV?Z.PX:TtP(Z,this.policy,y);this.SH.set("rn",""+this.o7());this.SH.set("alr","yes");Mbo(this.f6,F,n);this.US=new D8(this,this.policy, this.SH,Z.Er,this.BV,this.logger,y,a,this.policy.enableServerDrivenRequestCancellation);Fhn(this.US);var D;if((D=this.policy)==null?0:D.lT)g.S(this,this.f6),g.S(this,this.US);n=Z.X;Z={method:"POST",body:n};n&&(this.AP=n.length);try{this.xhr=yQ(this.SH,this.policy.L,this.BV,gT,Z),this.policy.aB&&Wo(this.BV,this.Uw()),this.US.X.start()}catch(p){g.yi(p)}}; e4=function(n){this.value=n}; rA=function(n){var Z=null;try{Z=n.toLocaleString("en",{style:"percent"})}catch(F){Z=n.toLocaleString(void 0,{style:"percent"})}return Z}; sn=function(n,Z){for(var F=0;F0&&Math.abs(Z-F)>=5&&n.X===4&&jL(n,5,"sk2t")}; QRj=function(n,Z,F,y){if(Math.random()<(y||n.N))try{if(F instanceof GK)var l=F;else l=new GK,g$(F,function(a,D){var p=l,L=p.V++;a=RL(D,a);p.N.push(L);p.X[L]=a}); var m=l.Uw(n.X,"pagead2.googlesyndication.com","/pagead/gen_204?id="+Z+"&");m&&(J6(),gep(m))}catch(a){}}; Iz3=function(n,Z){var F=Z.N.getValue();F=new g.e7(function(){fzf(n,Z)},F); g.S(n,F);F.start();g.bX(Z.N);Id(n,{rtyrq:1})}; MK=function(){Vv.apply(this,arguments)}; PX=function(){var n=window,Z=n.MSMediaKeys;Fx()&&!Z&&(Z=n.WebKitMediaKeys);return Z&&Z.isTypeSupported?Z:null}; Y4=function(){Qq.call(this,"Biscotti ID is missing from server")}; wbY=function(n,Z){var F=g.BT("XSRF_FIELD_NAME"),y=g.BT("XSRF_TOKEN"),l=Z.postBody||"",m=Z.postParams,a=g.BT("XSRF_FIELD_NAME"),D;Z.headers&&(D=Z.headers["Content-Type"]);Z.excludeXsrf||g.g1(n)&&!Z.withCredentials&&g.g1(n)!==document.location.hostname||Z.method!=="POST"||D&&D!=="application/x-www-form-urlencoded"||Z.postParams&&Z.postParams[a]||(m||(m={}),m[F]=y);(g.N5("ajax_parse_query_data_only_when_filled")&&m&&Object.keys(m).length>0||m)&&typeof l==="string"&&(l=jy(l),g.RH(l,m),l=Z.postBodyFormat&& Z.postBodyFormat==="JSON"?JSON.stringify(l):g.$k(l));m=l||m&&!g.Zc(m);!Y6U&&m&&Z.method!=="POST"&&(Y6U=!0,g.hp(Error("AJAX request with postData should use POST")));return l}; S6o=function(n,Z,F){n.isPaused()||n.getCurrentTime()>Z||F>10||(n.play(),g.A3(function(){S6o(n,n.getCurrentTime(),F+1)},500))}; jRT=function(n){var Z=new g.oS({U:"div",s8:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],D:[{U:"div",K:"ytp-ad-overlay-ad-info-button-container"},{U:"div",K:"ytp-ad-overlay-close-container",D:[{U:"button",K:"ytp-ad-overlay-close-button",D:[Pk(JV)]}]},{U:"div",K:"ytp-ad-overlay-text-image",D:[{U:"img",Z:{src:"{{imageUrl}}"}}]},{U:"div",K:"ytp-ad-overlay-title",E8:"{{title}}"},{U:"div",K:"ytp-ad-overlay-desc",E8:"{{description}}"},{U:"div",s8:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], E8:"{{displayUrl}}"}]});n.G(Z.Vg("ytp-ad-overlay-title"),"click",function(F){QO(n,Z.element,F)}); n.G(Z.Vg("ytp-ad-overlay-link"),"click",function(F){QO(n,Z.element,F)}); n.G(Z.Vg("ytp-ad-overlay-close-container"),"click",n.W$);n.G(Z.Vg("ytp-ad-overlay-text-image"),"click",n.pEY);Z.hide();return Z}; ELp=function(n,Z,F){if(n.policy.Vs&&n.policy.X)return!(n.X===1||n.X===2||!n.policy.HE&&n.X===3&&F>=n.V);if(n.X===1||n.X===2)return!1;if(n.X!==0&&Z===n.audioTrack){if(n.policy.X)return UNp(n.videoTrack,F)||UNp(n.videoTrack,F+1);n=i4(n.videoTrack);if(F>(n?n.O8:-1))return!1}return!0}; k68=function(n){return g.Yn(n,function(Z,F,y){return F>0?y[F]-y[F-1]:y[F]})}; YS3=function(n,Z){if(n.j("html5_disable_ustreamer_constraint_for_sabr")&&YA(Z.videoData))return IK;var F=n.mQ.IQ();n.j("html5_use_video_quality_cap_for_ustreamer_constraint")&&F&&F.D5>0&&jW(Z.videoData.Jm)&&(n=F.D5,Z.videoData.Jm=new vL(0,n,!1,"u"));return Z.videoData.Jm}; ynK=function(){var n=Promise.resolve(void 0);FZ=function(){n.then(kaP)}}; Qpo=function(n,Z){n.timestampOffset>0&&(Z-=n.timestampOffset);var F=g.eM(n)+Z;Rb7(n,F);n.timestampOffset=Z}; NPU=function(){var n=XMLHttpRequest.prototype.fetch;return!!n&&n.length===3}; gA=function(){var n=null;try{n=g.KQ.localStorage||null}catch(Z){}fH.call(this,n)}; hiK=function(n,Z,F,y){n1.call(this,"player-overlay-layout",n,{},F,y);this.videoAdDurationSeconds=Z;this.interactionLoggingClientData=y}; CB=function(n,Z,F,y,l,m){m=m===void 0?!1:m;n.lY.Oj(Z,F/Z);n.C=(0,g.tP)();l||n.Pr.Oj(1,Z-y);m||(n.S=0);n.Tx>-1&&(0,g.tP)()-n.Tx>3E4&&(TVp(iV(n)),n.Tx=(0,g.tP)(),n.Ns=!0)}; uV=function(n){var Z;return((Z=n.audio)==null?void 0:Z.N)===!0}; TU=function(n){n.onreadystatechange&&n.onreadystatechange.call(n)}; pH=function(n,Z,F,y,l){y===0||F.includes(y);var m=KH(n),a=D6(m,n,Z,F,l);a!==y&&(a&&(Z=uF(n,Z,a,void 0,l)),m.set(F,y));return Z}; dZ=function(){var n=this;this.bW=this.ke=uFU;this.promise=new g.O2(function(Z,F){n.ke=Z;n.bW=F})}; g.e7=function(n,Z,F){g.I.call(this);this.N=n;this.Gj=Z||0;this.X=F;this.T=(0,g.GP)(this.bR,this)}; iR=function(n){g.I.call(this);this.logger=n;this.T=new g.uR}; EdP=function(n){if(n.playlist&&(g.ri(n.Y)||n.Y.w5==="background_audio_playback")&&n.Gv()){var Z=n.Y.j("html5_player_autonav_logging");n.nextVideo(!1,Z);return!0}return!1}; wM=function(n){return sp(n)&&!g.Uo(n)}; O8j=function(n){return n!=null}; PN=function(n){return n.api.j("allow_autohide_on_paused_videos")?!(n.X&-129):!n.X}; c8Y=function(n){var Z=n.V.map(Cs);n.X&&Z.push(n.X);n.fK(Z);n.N=null;n.J=null;Z=n.W.getPlaybackRate();Um(n.W)&&JQi(n,Z);!n.V.includes(Z)||n.C?n.gB(n.N):n.gB(Cs(Z))}; lR=function(n){this.N=n}; VCU=function(){this.startTimeMs=(0,g.tP)();this.N=!1}; En=function(n){if(n.app.getAppState()===1)return!1;if(n.app.getAppState()===6)return!0;var Z=n.app.Z4();if(!Z||Z.hw())return!1;n=n.app.JG.getPlayerStateObject();Z=!g.b(n,2)||Z&&Z.getVideoData().J;var F=g.b(n,1024);return n&&Z&&!F&&!n.isCued()}; Ysj=function(n){RS(n,"getInternalApiInterface",n.getInternalApiInterface);RS(n,"addEventListener",n.iX);RS(n,"removeEventListener",n.Mnp);RS(n,"cueVideoByPlayerVars",n.NB);RS(n,"loadVideoByPlayerVars",n.VGp);RS(n,"preloadVideoByPlayerVars",n.uXx);RS(n,"getAdState",n.getAdState);RS(n,"sendAbandonmentPing",n.sendAbandonmentPing);RS(n,"setLoopRange",n.setLoopRange);RS(n,"getLoopRange",n.getLoopRange);RS(n,"setAutonavState",n.setAutonavState);RS(n,"seekTo",n.IEu);RS(n,"seekBy",n.TBY);RS(n,"seekToLiveHead", n.seekToLiveHead);RS(n,"requestSeekToWallTimeSeconds",n.requestSeekToWallTimeSeconds);RS(n,"seekToStreamTime",n.seekToStreamTime);RS(n,"prefetchKeyPlay",n.prefetchKeyPlay);RS(n,"startSeekCsiAction",n.startSeekCsiAction);RS(n,"getStreamTimeOffset",n.getStreamTimeOffset);RS(n,"getVideoData",n.My);RS(n,"setInlinePreview",n.setInlinePreview);RS(n,"getAppState",n.getAppState);RS(n,"updateLastActiveTime",n.updateLastActiveTime);RS(n,"setBlackout",n.setBlackout);RS(n,"setUserEngagement",n.setUserEngagement); RS(n,"updateSubtitlesUserSettings",n.updateSubtitlesUserSettings);RS(n,"getPresentingPlayerType",n.bS);RS(n,"canPlayType",n.canPlayType);RS(n,"updatePlaylist",n.updatePlaylist);RS(n,"updateVideoData",n.updateVideoData);RS(n,"updateEnvironmentData",n.updateEnvironmentData);RS(n,"sendVideoStatsEngageEvent",n.iFT);RS(n,"productsInVideoVisibilityUpdated",n.productsInVideoVisibilityUpdated);RS(n,"setSafetyMode",n.setSafetyMode);RS(n,"isAtLiveHead",function(Z){return n.isAtLiveHead(void 0,Z)}); RS(n,"getVideoAspectRatio",n.getVideoAspectRatio);RS(n,"getPreferredQuality",n.getPreferredQuality);RS(n,"getPlaybackQualityLabel",n.getPlaybackQualityLabel);RS(n,"setPlaybackQualityRange",n.CGx);RS(n,"onAdUxClicked",n.onAdUxClicked);RS(n,"getFeedbackProductData",n.getFeedbackProductData);RS(n,"getStoryboardFrame",n.getStoryboardFrame);RS(n,"getStoryboardFrameIndex",n.getStoryboardFrameIndex);RS(n,"getStoryboardLevel",n.getStoryboardLevel);RS(n,"getNumberOfStoryboardLevels",n.getNumberOfStoryboardLevels); RS(n,"getCaptionWindowContainerId",n.getCaptionWindowContainerId);RS(n,"getAvailableQualityLabels",n.getAvailableQualityLabels);RS(n,"addCueRange",n.addCueRange);RS(n,"addUtcCueRange",n.addUtcCueRange);RS(n,"showAirplayPicker",n.showAirplayPicker);RS(n,"dispatchReduxAction",n.dispatchReduxAction);RS(n,"getPlayerResponse",n.Jd);RS(n,"getWatchNextResponse",n.vF);RS(n,"getHeartbeatResponse",n.Ce);RS(n,"getCurrentTime",n.Sh);RS(n,"getDuration",n.vk);RS(n,"getPlayerState",n.getPlayerState);RS(n,"getPlayerStateObject", n.aD);RS(n,"getVideoLoadedFraction",n.getVideoLoadedFraction);RS(n,"getProgressState",n.getProgressState);RS(n,"getVolume",n.getVolume);RS(n,"setVolume",n.o1);RS(n,"isMuted",n.isMuted);RS(n,"mute",n.ag);RS(n,"unMute",n.Za);RS(n,"loadModule",n.loadModule);RS(n,"unloadModule",n.unloadModule);RS(n,"getOption",n.Ep);RS(n,"getOptions",n.getOptions);RS(n,"setOption",n.setOption);RS(n,"loadVideoById",n.HR);RS(n,"loadVideoByUrl",n.ZO);RS(n,"playVideo",n.L9);RS(n,"loadPlaylist",n.loadPlaylist);RS(n,"nextVideo", n.nextVideo);RS(n,"previousVideo",n.previousVideo);RS(n,"playVideoAt",n.playVideoAt);RS(n,"getDebugText",n.getDebugText);RS(n,"getWebPlayerContextConfig",n.getWebPlayerContextConfig);RS(n,"notifyShortsAdSwipeEvent",n.notifyShortsAdSwipeEvent);RS(n,"getVideoContentRect",n.getVideoContentRect);RS(n,"setSqueezeback",n.setSqueezeback);RS(n,"toggleSubtitlesOn",n.toggleSubtitlesOn);RS(n,"isSubtitlesOn",n.isSubtitlesOn);RS(n,"getAudioTrack",n.Ta);RS(n,"setAudioTrack",n.zb5);RS(n,"getAvailableAudioTracks", n.wk);RS(n,"reportPlaybackIssue",n.reportPlaybackIssue);RS(n,"setAutonav",n.setAutonav);RS(n,"isNotServable",n.isNotServable);RS(n,"channelSubscribed",n.channelSubscribed);RS(n,"channelUnsubscribed",n.channelUnsubscribed);RS(n,"togglePictureInPicture",n.togglePictureInPicture);RS(n,"supportsGaplessAudio",n.supportsGaplessAudio);RS(n,"supportsGaplessShorts",n.supportsGaplessShorts);RS(n,"enqueueVideoByPlayerVars",function(Z){return void n.enqueueVideoByPlayerVars(Z)}); RS(n,"clearQueue",n.clearQueue);RS(n,"getMaxPlaybackQuality",n.getMaxPlaybackQuality);RS(n,"getUserPlaybackQualityPreference",n.getUserPlaybackQualityPreference);RS(n,"getSubtitlesUserSettings",n.getSubtitlesUserSettings);RS(n,"resetSubtitlesUserSettings",n.resetSubtitlesUserSettings);RS(n,"setMinimized",n.setMinimized);RS(n,"setOverlayVisibility",n.setOverlayVisibility);RS(n,"confirmYpcRental",n.confirmYpcRental);RS(n,"queueNextVideo",n.queueNextVideo);RS(n,"handleExternalCall",n.handleExternalCall); RS(n,"logApiCall",n.logApiCall);RS(n,"isExternalMethodAvailable",n.isExternalMethodAvailable);RS(n,"setScreenLayer",n.setScreenLayer);RS(n,"getCurrentPlaylistSequence",n.getCurrentPlaylistSequence);RS(n,"getPlaylistSequenceForTime",n.getPlaylistSequenceForTime);RS(n,"shouldSendVisibilityState",n.shouldSendVisibilityState);RS(n,"syncVolume",n.syncVolume);RS(n,"highlightSettingsMenuItem",n.highlightSettingsMenuItem);RS(n,"openSettingsMenuItem",n.openSettingsMenuItem);RS(n,"getEmbeddedPlayerResponse", n.getEmbeddedPlayerResponse);RS(n,"getVisibilityState",n.getVisibilityState);RS(n,"isMutedByMutedAutoplay",n.isMutedByMutedAutoplay);RS(n,"isMutedByEmbedsMutedAutoplay",n.isMutedByEmbedsMutedAutoplay);RS(n,"setGlobalCrop",n.setGlobalCrop);RS(n,"setInternalSize",n.setInternalSize);RS(n,"setFauxFullscreen",n.setFauxFullscreen);RS(n,"setAppFullscreen",n.setAppFullscreen)}; vd3=function(n,Z,F,y){n.T=y;n.api.Lv(n.N,F,Z)}; zN3=function(){bV||(bV=vV(g.BT("WORKER_SERIALIZATION_URL")));return bV||void 0}; IDp=function(n,Z){if(F2(n,QE)||n.api.isMinimized())return!1;var F=OS(Z.title),y=OS(Z.description);if(g.$q(F)||g.$q(y))return!1;n.createServerVe(n.T.element,Z.trackingParams||null);n.T.updateValue("title",OS(Z.title));n.T.updateValue("description",OS(Z.description));n.T.updateValue("displayUrl",OS(Z.displayUrl));Z.navigationEndpoint&&g.Y$(n.L,Z.navigationEndpoint);n.T.show();n.jT.start();n.logVisibility(n.T.element,!0);n.G(n.T.element,"mouseover",function(){n.Tx++}); return!0}; Ftp=function(){if(ZXp)throw Error("carr");wX(fD8,5)}; F2T=function(n){var Z=ON(n)?"custom_metric_viewable":n.toLowerCase();return Qb(jt,function(F){return F==Z})}; r8Q=function(n,Z,F,y,l){var m=window;var a=a===void 0?!1:a;var D;F?D=(a===void 0?0:a)?"//ep1.adtrafficquality.google/bg/"+uS(F)+".js":"//pagead2.googlesyndication.com/bg/"+uS(F)+".js":D="";a=a===void 0?!1:a;F=m.document;var p={};Z&&(p._scs_=Z);p._bgu_=D;p._bgp_=y;p._li_="v_h.3.0.0.0";l&&(p._upb_=l);(Z=m.GoogleTyFxhY)&&typeof Z.push=="function"||(Z=m.GoogleTyFxhY=[]);Z.push(p);Z=MB(F).createElement("SCRIPT");Z.type="text/javascript";Z.async=!0;n=(a===void 0?0:a)?g.AU(A8o,uS(n)+".js"):g.AU(WgU,uS(n)+ ".js");g.NJ(Z,n);(m=(m.GoogleTyFxhYEET||{})[Z.src])?m():F.getElementsByTagName("head")[0].appendChild(Z)}; yQ=function(n,Z,F,y,l){if(Vh(54,n.lU))return new xNQ(n,F);n=n.Uw();return y?NPU()?new R$(n,Z,F,l):new Gwo(n,Z,F,l):new Rio(n,F,l)}; gdQ=function(){return new Promise(function(n){var Z=window;Z.ntpevasrs!==void 0?n(new iS(Z.ntpevasrs)):(Z.ntpqfbel===void 0&&(Z.ntpqfbel=[]),Z.ntpqfbel.push(function(F){n(new iS(F))}))})}; GS8=function(n,Z){var F=[],y=So(Z.type,"auto",Z.itag);F.push(new jo(y,Z.url));return U8(n.S,F,!1,!0)}; u2=function(n){return n.XY.get("ad")}; XL=function(n,Z,F){for(var y=g.Y(i8o),l=y.next();!l.done;l=y.next()){l=l.value;var m=n.XY.get(l);m&&(F||m.D1(Z))&&(g.xA(m),n.XY.delete(l))}n.W.publish("modulesDestroyed",Z)}; XF=function(n,Z,F,y){y=y===void 0?"":y;n.updateValue("label",F===void 0?"":F);n.updateValue("icon",Z);g.fD(n.N);n.X.start();n.updateValue("title",y);g.w4(n.element,"ytp-bezel-text-hide",!y)}; b83=function(n,Z){if(!YeP())throw Error();n.Bd(n.value,Z)||(n.value=Z,n.version++,C07++,uY7(n))}; XRY=function(n){if(o5(n.slot.clientMetadata,"metadata_type_prefetch_metadata")){var Z=Vpf(n,n.slot);EY(n.N.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[Z]})}}; iC=function(){this.X=new qao;this.N=hn()?new Qg:new oH}; eiQ=function(n,Z){if(Z&&n.hlsvp)return RM();if(n.hlsFormats){if(Z=Kr(n.hlsFormats)){for(var F=[],y=g.Y(Z),l=y.next();!l.done;l=y.next()){l=l.value;var m=void 0;((m=n.iY.OS())==null?0:m.N.Wx(zif))&&l.url&&(l.url=sB7(l.url));m=void 0;((m=n.xi)==null?0:m.N)&&F.push(l.itag)}var a;((a=n.xi)==null?0:a.N)&&F.length>0&&n.Xp("hlsfmt",{itags:F.join(".")})}n.VG=tCp(n.iY,Z);n.VG&&tR3(n,n.VG);a=n.clientPlaybackNonce;var D,p,L,q;return kw8(n.iY,n.isAd(),Z,(q=(D=n.playerResponse)==null?void 0:(p=D.captions)==null? void 0:(L=p.playerCaptionsRenderer)==null?void 0:L.baseUrl)!=null?q:null,n.Qc,a,function(w){return n.publish("ctmp","hlsflt",w)}).then(function(w){for(var T=0,P=[],J=g.Y(w),U=J.next();!U.done;U=J.next()){U=U.value; var h=void 0;P.push((h=U.getInfo())==null?void 0:h.itag);var v=h=void 0;((h=U.getInfo())==null?void 0:(v=h.audio)==null?void 0:v.numChannels)>T&&(T=U.getInfo().audio.numChannels)}T>2&&n.Xp("hlschl",{mn:T});var V;((V=n.xi)==null?0:V.N)&&n.Xp("hlsfmtaf",{itags:P.join(".")});var f;if(n.j("html5_enable_vp9_fairplay")&&((f=n.S)==null?0:Jr(f)))for(n.Xp("drm",{sbdlfbk:1}),T=g.Y(n.KP),P=T.next();!P.done;P=T.next())if(P=P.value,vc(P)){n.S=P;break}DM(n,w)})}return RM()}; RC=function(n,Z,F){this.layoutId=Z;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=F||n(this.triggerType)}; H8K=function(n,Z,F){var y=Z.N?Z.N.bY.Er:Z.bY.Er;var l=n.V,m;(m=!n.policy.Ak)||(m=qv(11,y.N)===qv(51,y.X));m?y=!1:(l=Lo(l,qv(27,y.X)),m=6E4*Math.pow(l.V,1.6),(0,g.tP)()0?F:0;F=y?Date.now()+y*1E3:0;if((y=y?g.QR.qF():g.QR.Rd())&&window.JSON){typeof Z!=="string"&&(Z=JSON.stringify(Z,void 0));try{y.set(n,Z,F)}catch(l){y.remove(n)}}}; jj=function(n){g.I.call(this);var Z=this;this.app=n;this.C=this.X=this.N=null;this.L=!1;this.T=this.V=null;this.S=j3K(this.app.B());this.J=function(){g.MC(function(){aVj(Z)})}}; W4=function(n){return n&&n.baseUrl||""}; XM=function(n,Z){if(n=Mu(n,Z))return g.iI(n)}; dNp=function(n,Z){n.N=Z}; hFe=function(n,Z){Px(n,1,Z.token)}; gNK=function(n,Z){var F=window;n=n===void 0?!1:n;Z=Z===void 0?!0:Z;g.my(F.document,"keydown",uy);g.my(F.document,"keyup",uy);g.my(F.document,"mousedown",uy);g.my(F.document,"mouseup",uy);n?g.my(F,"touchmove",function(){by("touchmove",200)},{passive:!0}):(g.my(F,"resize",function(){by("resize",200)}),Z&&g.my(F,"scroll",function(){by("scroll",200)})); g.my(F.document,"touchstart",uy,{passive:!0});g.my(F.document,"touchend",uy,{passive:!0})}; kN=function(n,Z){var F=F===void 0?{}:F;n={method:Z===void 0?"POST":Z,mode:tK(n)?"same-origin":"cors",credentials:tK(n)?"same-origin":"include"};Z={};for(var y=g.Y(Object.keys(F)),l=y.next();!l.done;l=y.next())l=l.value,F[l]&&(Z[l]=F[l]);Object.keys(Z).length>0&&(n.headers=Z);return n}; BPY=function(){var n=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];U2().forEach(function(Z){n.push(Z)}); return{Nj:n,ZM:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; S_T=function(n){var Z=["o","a","A"];n.lY===1&&(n.V&&(Z=["mac3","MAC3"].concat(Z)),n.S&&(Z=["meac3","MEAC3"].concat(Z)),n.Bx&&(Z=["i","I"].concat(Z)));n.Ns&&(Z=["so","sa"].concat(Z));!n.N1||n.jT||n.T||n.KF||Z.unshift("a");n.T&&(Z=(MC3[n.T]||[n.T]).concat(Z));return Z}; iK=function(n,Z){n.api.getPresentingPlayerType()!==1?n.d5.style.removeProperty("clip-path"):(Z||(Z=Rx(n,n.Ns,aH(n))),n.d5.style.clipPath='path("'+(n.HE?$oQ(n,8,Z,n.S?50:36,0,6):$oQ(n,4,Z,n.S?34:24,2,3))+'")')}; nC8=function(){var n=g.BT("csn-to-ctt-auth-info");n||(n={},Ka("csn-to-ctt-auth-info",n));return n}; Zgj=function(n){var Z=new Map;n=g.Y(n);for(var F=n.next();!F.done;F=n.next())(F=F.value.renderer.remoteSlotsRenderer)&&F.hostElementId&&Z.set(F.hostElementId,F);return Z}; tF=function(n,Z,F){Z=Z==null||typeof Z==="number"?Z:Z==="NaN"||Z==="Infinity"||Z==="-Infinity"?Number(Z):void 0;Z!=null&&(NC(n,F,1),n=n.N,F=FM8||(FM8=new DataView(new ArrayBuffer(8))),F.setFloat64(0,+Z,!0),b8=F.getUint32(0,!0),XV=F.getUint32(4,!0),Ig(n,b8),Ig(n,XV))}; g.uv=function(n,Z){return(Z||document).querySelectorAll("."+n)}; kY=function(n,Z,F){fZ("pbs",Z!=null?Z:(0,g.tP)(),F!=null?F:n.timerName)}; g.er=function(n,Z){for(var F in n)if(n[F]==Z)return!0;return!1}; wk=function(n){return!(!n.N||!n.N.isManifestless)}; ylP=function(n,Z){if(!n.Ur)return!1;var F=n.Ur.startTimeMs*.001-1,y=n.Ur.endTimeMs*.001;n.Ur.type==="repeatChapter"&&y--;return Math.abs(Z-F)<=1E-6||Math.abs(Z-y)<=1E-6||Z>=F&&Z<=y}; s9f=function(n){lFe=n}; Ho=function(n,Z){g.hw(n.W.getRootNode(),Z)}; UNp=function(n,Z){var F;return!((F=n.J)==null||!F.S.has(Z))||mof(n.T,Z)}; $AQ=function(n){this.N=n}; dA=function(n){n.offsets.length>>0;l=n.N.N+l;var m=l-y;m<=0&&(n.N.T=l,F(Z,n,void 0,void 0,void 0),m=l-n.N.N);if(m)throw Error();n.N.N=l;n.N.T=y}; fo=function(n){this.AG=UO(n)}; XG=function(n,Z){return g.b(n.state,Z)&&!g.b(n.oldState,Z)?1:!g.b(n.state,Z)&&g.b(n.oldState,Z)?-1:0}; qfY=function(n,Z){var F=Z.manifestlessWindowedLiveConfig;if(F){var y=Number(F.minDvrSequence),l=Number(F.maxDvrSequence),m=Number(F.minDvrMediaTimeMs),a=Number(F.maxDvrMediaTimeMs);F=Number(F.startWalltimeMs);y&&(n.Nt=y);m&&(n.ze=m/1E3,n.j("html5_sabr_parse_live_metadata_playback_boundaries")&&YA(n)&&(n.c_=m/1E3));l&&(n.DE=l);a&&(n.lf=a/1E3,n.j("html5_sabr_parse_live_metadata_playback_boundaries")&&YA(n)&&(n.dK=a/1E3));F&&(n.YN=F/1E3);(y||m)&&(l||a)&&(n.sV=!0,n.isLivePlayback=!0,n.allowLiveDvr=!0, n.z7=!1)}if(y=Z.daiConfig){if(y.enableDai){n.DD=!0;if(l=y.enableServerStitchedDai)n.enableServerStitchedDai=l;if(l=y.enablePreroll)n.ye=l}var D;if(y.daiType==="DAI_TYPE_SS_DISABLED"||((D=y.debugInfo)==null?0:D.isDisabledUnpluggedChannel))n.DK=!0;y.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(n.wE=!0);y.allowUstreamerRequestAdconfig&&(n.FN=!0);y.sendSsdaiMissingAdBreakReasons&&(n.G5p=!0)}if(D=Z.audioConfig){y=D.loudnessDb;y!=null&&(n.Wu=y);y=D.trackAbsoluteLoudnessLkfs;y!=null&&(n.O0=y);y=D.loudnessTargetLkfs; y!=null&&(n.loudnessTargetLkfs=y);D.audioMuted&&(n.s5=!0);D.muteOnStart&&(n.Pv=!0);if(y=D.loudnessNormalizationConfig)y.applyStatefulNormalization&&(n.applyStatefulNormalization=!0),y.preserveStatefulLoudnessTarget&&(n.preserveStatefulLoudnessTarget=!0),l=y.minimumLoudnessTargetLkfs,l!=null&&(n.minimumLoudnessTargetLkfs=l),y=y.maxStatefulTimeThresholdSec,y!=null&&(n.maxStatefulTimeThresholdSec=y);D.playAudioOnly&&(n.A7=!0)}if(y=Z.playbackEndConfig)D=y.endSeconds,y=y.limitedPlaybackDurationInSeconds, n.mutedAutoplay&&(D&&(n.endSeconds=D),y&&(n.limitedPlaybackDurationInSeconds=y));if(D=Z.fairPlayConfig){if(y=D.certificate)n.G6=ZJ(y);y=Number(D.keyRotationPeriodMs);y>0&&(n.Yr=y);D=Number(D.keyPrefetchMarginMs);D>0&&(n.AE=D)}if(D=Z.playbackStartConfig){n.hH=Number(D.startSeconds);l=D.liveUtcStartSeconds;y=!!n.liveUtcStartSeconds&&n.liveUtcStartSeconds>0;l&&!y&&(n.liveUtcStartSeconds=Number(l));if(l=D.startPosition)if((m=l.utcTimeMillis)&&!y&&(n.liveUtcStartSeconds=Number(m)*.001),y=l.streamTimeMillis)n.AL= Number(y)*.001;n.progressBarStartPosition=D.progressBarStartPosition;n.progressBarEndPosition=D.progressBarEndPosition}else if(D=Z.skippableSegmentsConfig){if(y=D.introSkipDurationMs)n.KH=Number(y)/1E3;if(D=D.outroSkipDurationMs)n.aV=Number(D)/1E3}if(y=Z.skippableIntroConfig)D=Number(y.startMs),y=Number(y.endMs),isNaN(D)||isNaN(y)||(n.Iw=D,n.s9=y);if(D=Z.streamSelectionConfig)n.Qc=Number(D.maxBitrate);if(D=Z.vrConfig)n.DU=D.partialSpherical=="1";if(D=Z.webDrmConfig){D.skipWidevine&&(n.gN=!0);if(y= D.widevineServiceCert)n.nL=ZJ(y);D.useCobaltWidevine&&(n.useCobaltWidevine=!0);D.startWithNoQualityConstraint&&(n.Mn=!0)}if(D=Z.mediaCommonConfig){if(y=D.dynamicReadaheadConfig){n.maxReadAheadMediaTimeMs=y.maxReadAheadMediaTimeMs||NaN;n.minReadAheadMediaTimeMs=y.minReadAheadMediaTimeMs||NaN;n.readAheadGrowthRateMs=y.readAheadGrowthRateMs||NaN;var p;if(y=D==null?void 0:(p=D.mediaUstreamerRequestConfig)==null?void 0:p.videoPlaybackUstreamerConfig)n.Ej=ZJ(y);if((p=D==null?void 0:D.sabrContextUpdates)&& p.length>0)for(p=g.Y(p),y=p.next();!y.done;y=p.next())y=y.value,y.type&&y.value&&(l={type:y.type,scope:y.scope,value:ZJ(y.value)||void 0,sendByDefault:y.sendByDefault},n.sabrContextUpdates.set(y.type,l))}if(p=D.serverPlaybackStartConfig)n.serverPlaybackStartConfig=p;D.useServerDrivenAbr&&(n.RI=!0);if(p=D.requestPipeliningConfig)n.requestPipeliningConfig=p}if(p=Z.inlinePlaybackConfig)n.oF=!!p.showAudioControls;if(p=Z.embeddedPlayerConfig){n.embeddedPlayerConfig=p;if(D=p.embeddedPlayerMode)y=n.B(), y.zx=D,y.T=D==="EMBEDDED_PLAYER_MODE_PFL";if(p=p.permissions)n.allowImaMonetization=!!p.allowImaMonetization}if(Z=Z.webPlayerConfig)Z.gatewayExperimentGroup&&(n.gatewayExperimentGroup=Z.gatewayExperimentGroup),Z.isProximaEligible&&(n.isProximaLatencyEligible=!0)}; w$3=function(n,Z){Z=Z===void 0?!1:Z;n.KR&&n.KR.N&&n.KR.X&&(n.KR.N.h7(n.xi,n),n.KR.X.h7(n.xi,n));nw(n.audioTrack,null,Z);nw(n.videoTrack,null,Z);n.KR&&(n.KR.S=!1);n.KR=null}; oCU=function(n,Z){if(Z+1<=n.totalLength){var F=aX(n,Z);F=F<128?1:F<192?2:F<224?3:F<240?4:5}else F=0;if(F<1||!(Z+F<=n.totalLength))return[-1,Z];if(F===1)n=aX(n,Z++);else if(F===2)F=aX(n,Z++),n=aX(n,Z++),n=(F&63)+64*n;else if(F===3){F=aX(n,Z++);var y=aX(n,Z++);n=aX(n,Z++);n=(F&31)+32*(y+256*n)}else if(F===4){F=aX(n,Z++);y=aX(n,Z++);var l=aX(n,Z++);n=aX(n,Z++);n=(F&15)+16*(y+256*(l+256*n))}else F=Z+1,n.focus(F),N0(n,F,4)?n=TS8(n).getUint32(F-n.T,!0):(y=aX(n,F+2)+256*aX(n,F+3),n=aX(n,F)+256*(aX(n,F+1)+ 256*y)),Z+=5;return[n,Z]}; Pvj=function(n,Z){return LC(n,Z)-1}; HA=function(n){g.W2(n.info.bY.info)||n.info.bY.info.dV();if(n.N&&n.info.type===6)return n.N.H7;if(g.W2(n.info.bY.info)){var Z=g.sj(n);var F=0;Z=g.B_(Z,1936286840);Z=g.Y(Z);for(var y=Z.next();!y.done;y=Z.next())y=Jlf(y.value),F+=y.tv[0]/y.timescale;F=F||NaN;if(!(F>=0))a:{F=g.sj(n);Z=n.info.bY.N;for(var l=y=0,m=0;Jn(F,y);){var a=d3(F,y);if(a.type===1836476516)l=g.HL(a);else if(a.type===1836019558){!l&&Z&&(l=dJ(Z));if(!l){F=NaN;break a}var D=xF(a.data,a.dataOffset,1953653094),p=D;D=l;var L=xF(p.data, p.dataOffset,1952868452);p=xF(p.data,p.dataOffset,1953658222);var q=rd(L);rd(L);q&2&&rd(L);L=q&8?rd(L):0;var w=rd(p),T=w&1;q=w&4;var P=w&256,J=w&512,U=w&1024;w&=2048;var h=uA(p);T&&rd(p);q&&rd(p);for(var v=T=0;vn.policy.Tc,D=l<=n.policy.Tc?Fa(y):n5(y);if(!m||a||D)F[l]=y}return F}; j9f=function(n,Z,F,y,l,m,a,D){Tf.call(this,n,Z,F,y);this.uY=l;this.wM=m;this.C=D;this.dJ=!0;this.V=null;this.S=o5(F.clientMetadata,"metadata_type_linked_player_bytes_layout_id");P2(this.wM(),this);n=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,n,F.layoutId)}; yP=function(n,Z){return function(F){return j4T(Uon(n),Z.slotId,Z.slotType,Z.slotPhysicalPosition,Z.Gx,Z.slotEntryTrigger,Z.slotFulfillmentTriggers,Z.slotExpirationTriggers,F.layoutId,F.layoutType,F.Gx)}}; rR=function(n){var Z=g.e(n.renderingContent,n7);if(Z==null?0:Z.pings)return th(Z.pings);n=g.e(n.renderingContent,HG);return(n==null?0:n.skipPings)?new Map([["skip",n.skipPings]]):new Map}; var tDj=function(){return Vh[K[11]](this,7)}; jcP=function(n){var Z=BU(n.W.iN());return Z?n.N?Z.hasNext():Z.hasPrevious():!1}; DX=function(n,Z,F,y){qA(n);var l=n.AG;uF(l,l[kt]|0,Z,F,y);return n}; VQ=function(n){return window.Int32Array?new Int32Array(n):Array(n)}; NSj=function(n){return new fM(n.type,n.bY,n.range,"getEmptyStubBefore"+n.C,n.O8,n.startTime,0,n.N,0)}; iZ7=function(n,Z){n.S=Z;n.T&&(n.T.T=Z);n.S.A8(n.videoTrack.bY.info.dV());n.C.X=n.S;n.policy.X&&(n.X.J=n.S)}; r27=function(n){if(!n.X){n.X=!0;var Z=n.mQ.getPlayerState();Z=Z.isPaused()||Z.isSuspended();n.mQ.yX();Z&&!NP(n.videoData)||n.mQ.publish("signatureexpired")}}; oX=function(){}; hef=function(){var n=n===void 0?window:n;var Z,F;return g.A(function(y){if(y.N==1)return g.x(y,W9(),2);Z=n;F=Z.bgevmc;if(!F)throw Error("BGE Controls not exposed");return y.return({pause:function(){F.p()}, resume:function(){F.r()}, checkForRefresh:function(){return F.cr()}})})}; g.zX=function(n,Z,F){Z&&Z.cpn&&g.yi(new g.FV("CPN provided in VideoData update",{sjQ:Z.cpn,xd:n.clientPlaybackNonce,hMs:F}));F?(au(Z),n.setData(Z),tU(n)&&n.kX()):(Z=Z||{},EC7(n,Z),Wf(n,Z),OgU(n,Z),GAY(n,Z),n.publish("dataupdated"))}; cle=function(n){var Z=n.api.getPresentingPlayerType()===2&&(n.api.Br().Mv||n.api.B().disableOrganicUi)&&n.api.B().X&&hF&&Zn>=11;n=n.api.B().J&&hF;return!(!Z&&!n)}; Z4=function(n,Z,F){n.Pr&&n.Pr.tV(Z,F)}; Sqj=function(n){n.r5=n.N+n.snapshot.delay*1E3;n.mJ=!1}; Fw=function(n,Z,F,y,l){var m=n.AG,a=m[kt]|0;y=t9(n,a)?1:y;l=!!l||y===3;y===2&&Lz(n)&&(m=n.AG,a=m[kt]|0);n=H5(m,Z);var D=n===dQ?7:n[kt]|0,p=B5(D,a);var L=4&p?!1:!0;if(L){4&p&&(n=WQ(n),D=0,p=$x(p,a),a=uF(m,a,Z,n));for(var q=0,w=0;q=m){var a=n[m];if(a!=null&&typeof a==="object"&&a.constructor===Object){F=a[Z];var D=!0}else if(l===m)F=a;else return}else F=n[l];if(y&&F!=null){y=y(F);if(y==null)return y;if(!Object.is(y,F))return D?a[Z]=y:n[l]=y,y}return F}}; IMU=function(n){var Z=[];n=g.Y(n.split(","));for(var F=n.next();!F.done;F=n.next()){var y=F.value;y&&((F=y.startsWith("!"))&&(y=y.substring(1)),y=y.split("-"),y.length<3||Z.push({HU:y[0],platform:y[1],deviceVersion:y[2],qk:F}))}return Z}; VJn=function(n,Z){var F=n.fR[Z];Z=n.h2[Z];var y=aH(n),l=bz(n.T,F.start/1E3,0),m=KkP(F,n.S)/y.width;var a=bz(n.T,F.end/1E3,1);m!==Number.POSITIVE_INFINITY&&(l=g.mk(l,0,a-m));a=Math.min(a,l+m);F.color&&(Z.style.background=F.color);F=l;Z.style.left=Math.max(F*y.N+y.V,0)+"px";md(n,Z,g.mk((a-F)*y.N+y.V,0,y.width),y.width,!0)}; fpP=function(n){return new kC(Object.assign({},n,{Fz:n.callback,Z6:function(){}}))}; yk=function(n){this.value=n}; KE=function(n,Z){g.I.call(this);this.U8=n;this.X=Z;this.eventCount=0;this.T=k0e()()}; vCY=function(n){var Z;return((Z=OQf.get(n))==null?void 0:Z.yA)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; IF8=function(n){var Z="";typeof n.toString==="function"&&(Z=""+n);return Z+n.stack}; NQ=function(n){this.value=n}; iM7=function(n,Z,F){n.N[Z]=F}; kS=function(n,Z){n=n.app.Z4();return!!n&&n.getVideoData().sS===Z.sS}; fFn=function(n,Z,F){n.N&&n.N.dispose();n.N=new g.e7(n.k5r,Z,n);g.S(n,n.N);var y;Z=((y=F.kV)==null?void 0:y.trackingParams)||null;n.W.setTrackingParams(n.element,Z);var l;var m,a;if(F==null?0:(m=F.kV)==null?0:(a=m.title)==null?0:a.content){var D;y=(l=F.kV)==null?void 0:(D=l.title)==null?void 0:D.content;var p,L;if((p=F.kV)==null?0:(L=p.bodyText)==null?0:L.content)y+=" \u2022 ";l=y}else l="";var q,w;F=((q=F.kV)==null?void 0:(w=q.bodyText)==null?void 0:w.content)||"";n.update({text:l+F,chevron:g.lS()})}; la=function(n){this.value=n}; WMT=function(n,Z,F,y,l){y=y===void 0?0:y;l=l===void 0?0:l;n.vj()||N8(n);n.V=new dZ;n.N=Z;var m=F,a=l===0;a=a===void 0?!0:a;var D=n.app.Z4(),p=D.getVideoData().isLivePlayback?Infinity:D.zc(!0)*1E3;m>p&&(m=p-200,n.L=!0);a&&D.getCurrentTime()>=m/1E3?n.J():(n.X=D,a&&(a=m,m=n.X,n.app.JG.addEventListener(g.HP("vqueued"),n.J),a=isFinite(a)||a/1E3>m.getDuration()?a:0x8000000000000,n.C=new g.wg(a,0x8000000000000,{namespace:"vqueued"}),m.addCueRange(n.C)));a=y/=1E3;m=Z.getVideoData().N;y&&m&&n.X&&(D=y,p=0, Z.getVideoData().isLivePlayback&&(a=Math.min(F/1E3,n.X.zc(!0)),p=Math.max(0,a-n.X.getCurrentTime()),D=Math.min(y,Z.zc()+p)),a=Otn(m,D)||y,a!==y&&n.N.Xp("qvaln",{st:y,at:a,rm:p,ct:D}));Z=a;y=n.N;y.getVideoData().Bx=!0;y.getVideoData().J=!0;y.d_(!0);m={};n.X&&(m=n.X.Zd(),a=n.X.getVideoData().clientPlaybackNonce,m={crt:(m*1E3).toFixed(),cpn:a});y.Xp("queued",m);Z!==0&&y.seekTo(Z+.01,{Tn:!0,l8:3,eO:"videoqueuer_queued"});n.T=new AlT(n.S,n.app.Z4(),n.N,F,n.app,l);F=n.T;F.status.status!==Infinity&&(S4(F, 1),F.N.subscribe("internalvideodatachange",F.nO,F),F.X.subscribe("internalvideodatachange",F.nO,F),F.kA.B().j("html5_gapless_use_format_info_fix")&&(F.N.subscribe("internalvideoformatchange",F.nO,F),F.X.subscribe("internalvideoformatchange",F.nO,F)),F.N.subscribe("mediasourceattached",F.nO,F),F.X.subscribe("statechange",F.UA,F),F.N.subscribe("newelementrequired",F.Zz,F),F.nO());return n.V}; oVU=function(n,Z){n.focus(Z);return N0(n,Z,4)?TS8(n).getUint32(Z-n.T):256*(256*(256*aX(n,Z)+aX(n,Z+1))+aX(n,Z+2))+aX(n,Z+3)}; UCQ=function(n){var Z=n.W.getPlayerSize(),F=n.W.B(),y=n.W.getVideoData(),l=g.R6(F)&&g.ce(n.W)&&g.b(n.W.getPlayerStateObject(),128),m=F.T;return F.PV&&Z.width>=240&&!y.isAd()&&y.PV&&!l&&!y.vV&&!n.W.isEmbedsShortsMode()&&!m}; $1=function(){return Date.now()-rlU}; aJ8=function(n,Z,F){Z=Z.dialog&&g.e(Z.dialog,xoY)||null;Z==null?g.ZW(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(n.N=new r1(n.api,n.layoutId,n.interactionLoggingClientData,n.Hr,n.V),g.S(n,n.N),n.N.init(Tb("ad-info-dialog"),Z,F),n.N.oY(n.V),n.N.subscribe("d",function(){return n.publish("f")}),n.N.subscribe("c",function(){return n.publish("e")}))}; sE=function(n){this.name=n}; cIe=function(n,Z,F,y){var l=MT(n.X.get(),"SLOT_TYPE_IN_PLAYER");return GO3(n,l,Z,F,y)}; r4=function(n){g.ZW(n)}; sJp=function(n,Z){n=n===void 0?{}:n;Z=Z===void 0?{}:Z;g.I.call(this);var F=this;this.values=n;this.V2=Z;this.X={};this.T=this.N=0;this.V=new g.e7(function(){Vk8(F)},1E4); g.S(this,this.V)}; VoY=function(n,Z){var F={};g.R6(n.api.B())&&(g.dc(n.api,"addEmbedsConversionTrackingParams",[F]),Z=g.pQ(Z,F));return Z}; Rep=function(n,Z,F,y){n1.call(this,"survey-interstitial",n,Z,F,y)}; gCP=function(n,Z,F){n.isPaused()||n.getCurrentTime()>Z||F>10||(n.play(),g.A3(function(){gCP(n,n.getCurrentTime(),F+1)},500))}; mn=function(n,Z,F){n.state.N.hasOwnProperty(Z)||RS(n,Z,F);n.state.J[Z]=function(){return F.apply(n,g.S7.apply(0,arguments))}; n.state.C.add(Z)}; B2e=function(n,Z,F){F=F===void 0?{}:F;this.error=n;this.meta=F;this.context=Z.context;this.msg=Z.message||"";this.id=Z.id||"jserror"}; Cv7=function(n,Z){(0,g.tP)();var F;if((F=n.N.N)==null)var y=void 0;else a:{n=n.iv;try{var l=igQ(F,Z,n),m=F.N.f5(n),a=F.N,D=F.V,p=new Uint8Array(a.exports.memory.buffer,a.malloc(32),32);a.exports.Sha256Hmac(D.byteOffset,D.byteLength,m.byteOffset,m.byteLength,l.byteOffset,l.byteLength,p.byteOffset);F.N.free(m.byteOffset);y={yz:F.N.UT(l),signature:F.N.UT(p)};break a}catch(L){g.yi(Error("ocwceas: wasm encryptAndSign failed: "+L))}y=void 0}return y}; ebK=function(){return typeof Worker==="function"&&zN3()?!0:!1}; JW=function(){Il.apply(this,arguments)}; g.hw=function(n,Z){n.classList?n.classList.remove(Z):g.AR(n,Z)&&g.ER(n,Array.prototype.filter.call(jR(n),function(F){return F!=Z}).join(" "))}; a0=function(n,Z){Z=Z===void 0?NaN:Z;var F=g.kq(n.provider);Z=isNaN(Z)?F:Z;Z=Math.ceil(Z);var y=n.J[n.L];n.L+11E3;!(m.length>1)&&m[0].isEmpty()||D||(a.J=a0(n,l));a.send();n.Pr++}},(l-F)*1E3); return n.V=l}; PM=function(n){return n.includes("vtt")||n.includes("text/mp4")}; uie=function(n,Z,F,y){CW.call(this,n,{U:"div",K:"ytp-ad-underlay-companion",D:[{U:"div",K:"ytp-ad-underlay-side-container",D:[{U:"div",K:"ytp-ad-underlay-image-container"},{U:"div",K:"ytp-ad-underlay-description-container"},{U:"div",K:"ytp-ad-underlay-headline-container"},{U:"div",K:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",Z,F,y);this.actionButton=null;this.zx=this.Vg("ytp-ad-underlay-image-container");this.T=new LE(this.api,this.layoutId,this.interactionLoggingClientData, this.Hr,"ytp-ad-underlay-image");g.S(this,this.T);this.T.oY(this.zx);this.Tx=this.Vg("ytp-ad-underlay-headline-container");this.X=new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-ad-underlay-headline");g.S(this,this.X);this.X.oY(this.Tx);this.L=this.Vg("ytp-ad-underlay-description-container");this.V=new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-ad-underlay-description");g.S(this,this.V);this.V.oY(this.L);this.S=this.Vg("ytp-ad-underlay-action-button-container"); this.N=this.Vg("ytp-ad-underlay-side-container");this.hide()}; dT7=function(n,Z){var F=o5(n.clientMetadata,"metadata_type_ad_placement_config");return new Ja(n.Nd,Z,F,n.layoutId)}; lx=function(n,Z,F,y,l,m,a,D){var p={layoutId:Z,layoutType:m,Gx:"core"};return{layoutId:Z,layoutType:m,Nd:new Map,layoutExitNormalTriggers:[new vQ(n.N,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:new lb([new K7(y)].concat(g.t(a))),lN:l(p),adLayoutLoggingData:D}}; nU8=function(n,Z){var F=n.length,y=typeof n==="string"?n.split(""):n;for(--F;F>=0;--F)F in y&&Z.call(void 0,y[F],F,n)}; o4Y=function(n){switch(Math.trunc(n.T)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; x9=function(n,Z,F,y,l,m,a){n=n.filter(function(w){return w.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&w.adSlotMetadata.triggeringSourceLayoutId===Z.layoutId}); if(n.length!==0){if(n.length!==1)return new C("Invalid InPlayer slot association for the given PlayerBytes layout");var D=n[0],p=N$8(D,F,y);if(p instanceof C)return p;var L;n={slotId:D.adSlotMetadata.slotId,slotType:D.adSlotMetadata.slotType,slotPhysicalPosition:(L=D.adSlotMetadata.slotPhysicalPosition)!=null?L:1,Gx:"core",slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:p.slotExpirationTriggers};L=g.e(D.fulfillmentContent.fulfilledLayout, SPj);if(!L||!jHP(L))return new C("Invalid InPlayerAdLayoutRenderer");p={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,Gx:"core"};F=aG(L,F,y);if(F instanceof C)return F;y=[];var q=L.adLayoutMetadata.layoutType;a&&y.push(new p1({}));if(q==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")y.push.apply(y,g.t(JO8(D.adSlotMetadata.triggerEvent,Z))),(m=MDe(F,Z.layoutId))&&y.push(new IO(m));else if(q==="LAYOUT_TYPE_ENDCAP"||q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){y.push(new K7(Dg(D.adSlotMetadata.triggerEvent))); if(q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new C("Cannot parse endcap layout since AdUxReadyApi is not provided");m&&y.push(m)}else return new C("Not able to parse an SDF InPlayer layout");l=Object.assign({},p,F,{renderingContent:L.renderingContent,Nd:new Map,lN:yP(l,n)(p),clientMetadata:new lb(y),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},n,{fulfilledLayout:l,clientMetadata:new lb([])})}}; bgn=function(){return{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}}; X$U=function(n,Z,F){var y=Z.type||0;(F==null?0:F.has(y))?n.lZ.push(Z):n.l3.push(y)}; ji=function(n){return/web/i.test(h6(n))}; N$8=function(n,Z,F){var y=ei(n.slotEntryTrigger,Z,F);if(y instanceof C)return y;for(var l=[],m=g.Y(n.slotFulfillmentTriggers),a=m.next();!a.done;a=m.next()){a=ei(a.value,Z,F);if(a instanceof C)return a;l.push(a)}m=[];n=g.Y(n.slotExpirationTriggers);for(a=n.next();!a.done;a=n.next()){a=ei(a.value,Z,F);if(a instanceof C)return a;m.push(a)}return{slotEntryTrigger:y,slotFulfillmentTriggers:l,slotExpirationTriggers:m}}; z_Q=function(n){return n.RI&&!n.r4}; ze7=function(n,Z,F,y,l,m,a,D,p,L,q,w,T){this.callback=n;this.slot=Z;this.layout=F;this.ym=y;this.Ms=l;this.tG=m;this.P9=a;this.TN=D;this.OG=p;this.U8=L;this.uY=q;this.nR=w;this.ES=T;this.Yx=!0;this.sS=this.A2=null;this.adCpn=void 0;this.N=!1}; eOK=function(n){return isNaN(n.cryptoPeriodIndex)?g.Ee(n.initData):""+n.cryptoPeriodIndex}; g.B8=function(n){var Z=dt(n),F=new g.e_(0,0);if(n==(Z?dt(Z):document).documentElement)return F;n=EX(n);Z=MB(Z);Z=knK(Z.N);F.x=n.left+Z.x;F.y=n.top+Z.y;return F}; Nm=function(n){var Z={};Z.itag=n.bY.info.itag;Z.type=""+n.type;Z.src=""+n.source;Z.segsrc=n.C;Z.seg=String(n.O8);n.range&&(Z.range=n.range.start+n.N+"-"+(n.range.start+n.N+n.X-1));Z.time=n.V.toFixed(1)+"-"+(n.V+n.J).toFixed(1);Z.off=String(n.N);Z.len=String(n.X);n.T&&(Z.end="1");n.tF()&&(Z.eos="1");n.clipId&&(Z.cid=n.clipId);return Z}; Ggj=function(n){var Z=nU();n=Z?Z.createScript(n):n;return new Jg(n)}; x8e=function(n){var Z,F=(Z=o5(n.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Z.current;if(!F)return null;Z=o5(n.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var y=n.layoutId,l=o5(n.clientMetadata,"metadata_type_content_cpn"),m=o5(n.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),a=o5(n.clientMetadata,"metadata_type_player_underlay_renderer"),D=o5(n.clientMetadata,"metadata_type_ad_placement_config"),p=o5(n.clientMetadata,"metadata_type_video_length_seconds"); var L=HQ(n.clientMetadata,"metadata_type_layout_enter_ms")&&HQ(n.clientMetadata,"metadata_type_layout_exit_ms")?(o5(n.clientMetadata,"metadata_type_layout_exit_ms")-o5(n.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{TB:y,contentCpn:l,RV:F,j1:Z,instreamAdPlayerOverlayRenderer:m,instreamAdPlayerUnderlayRenderer:a,adPlacementConfig:D,videoLengthSeconds:p,sE:L,inPlayerLayoutId:o5(n.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:o5(n.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; tJY=function(n){return n.j("html5_remove_ios_7_hack_force_play")}; Kw=function(n,Z){return hk(n,Z)}; onK=function(n,Z,F,y,l){this.V=n;this.S=Z;this.N=F;this.X=y;this.T=l}; ir=function(n,Z,F){this.N=Z;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=F||n(this.triggerType)}; m38=function(n){g.xU(n.X);var Z=n.W.B();Z.playerStyle==="gvn"||Z.X||Z.aY||(Z=n.W.Br(),n.X.G(Z,"contextmenu",n.zq8),n.X.G(Z,"touchstart",n.onTouchStart,null,!0),n.X.G(Z,"touchmove",n.Eb,null,!0),n.X.G(Z,"touchend",n.Eb,null,!0))}; g.Fv=function(n,Z){n=GJ(n);return n===void 0&&Z!==void 0?Z:Number(n||0)}; JnY=function(){this.X=this.position=this.T=this.N=this.V=this.width=NaN}; kOn=function(){}; g.D4=function(n){g.I.call(this);this.X=n;this.N={}}; eef=function(n,Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var y=void 0,l=Number((y=F.playbackPosition)==null?void 0:y.utcTimeMillis)/1E3,m=void 0;y=l+Number((m=F.duration)==null?void 0:m.seconds);m="embargo_"+l;n.api.addUtcCueRange(m,l,y,"embargo",!1);F.onEnter&&(n.N[m]=F.onEnter.filter(n.X))}}; Itn=function(n,Z,F,y,l){var m=n[Z];if(m==null||!m[F])return n;y=g.HgT(m[F],y,l==="REPEATED_FIELDS_MERGE_OPTION_APPEND");l={};m={};return Object.assign({},n,(m[Z]=Object.assign({},n[Z],(l[F]=y,l)),m))}; do3=function(n){n=n.T.lH();return n>0?n:1}; Ma=function(n,Z,F){this.audio=n;this.video=Z;this.reason=F}; mL=function(n,Z,F){return(F===void 0?0:F)?new $W(n,Z):new BSi(n,Z)}; MJn=function(n,Z,F,y,l){return GO3(n,Z,F,y,l)}; Znn=function(n){var Z,F,y=((Z=n.playerResponse)==null?void 0:(F=Z.streamingData)==null?void 0:F.adaptiveFormats)||[];Z=null;if(y.length>0)Z=ofY(n,y);else if(!n.j("html5_deprecate_adaptive_formats_string")){n.Xp("pafmtstr",{s:n.adaptiveFormats.substring(0,50)});if((y=n.adaptiveFormats)&&!aP(n)){n.iY.S.T&&(ra=!0);y=Kr(y);Z=n.by;var l=n.lengthSeconds,m=n.isLivePlayback;F=n.z7;var a=n.iY,D=$up(y);if(m||F){a=a==null?void 0:a.experiments;l=new ab("",a,!0);l.t2=!0;l.isManifestless=!0;l.X=!F;l.isLive=!F; l.z7=F;m=g.Y(y);for(D=m.next();!D.done;D=m.next()){var p=D.value;D=nPo(p,Z);var L=oI(p.url,p.sp,p.s),q=L.get("id");q&&q.includes("%7E")&&(l.Ns=!0);var w=void 0;q=(w=a)==null?void 0:w.RY("html5_max_known_end_time_rebase");w=Number(p.target_duration_sec)||5;p=Number(p.max_dvr_duration_sec)||14400;var T=Number(L.get("mindsq")||L.get("min_sq")||"0"),P=Number(L.get("maxdsq")||L.get("max_sq")||"0")||Infinity;l.Nt=l.Nt||T;l.DE=l.DE||P;var J=!PM(D.mimeType);L&&u$(l,new ls(L,D,{H7:w,KO:J,GB:p,Nt:T,DE:P,b4:300, z7:F,Cx:q}))}Z=l}else if(D==="FORMAT_STREAM_TYPE_OTF"){l=l===void 0?0:l;F=new ab("",a==null?void 0:a.experiments,!1);F.duration=l||0;a=g.Y(y);for(l=a.next();!l.done;l=a.next())if(L=l.value,l=nPo(L,Z,F.duration),m=oI(L.url,L.sp,L.s))l.streamType==="FORMAT_STREAM_TYPE_OTF"?u$(F,new Hf(m,l,"sq/0")):(D=O9(L.init),L=O9(L.index),u$(F,new lK(m,l,D,L)));F.isOtf=!0;Z=F}else{l=l===void 0?0:l;F=new ab("",a==null?void 0:a.experiments,!1);F.duration=l||0;a=g.Y(y);for(l=a.next();!l.done;l=a.next())L=l.value,l= nPo(L,Z,F.duration),m=O9(L.init),D=O9(L.index),(L=oI(L.url,L.sp,L.s))&&u$(F,new lK(L,l,m,D));Z=F}y.length>0&&(y=y[0],b$(n)&&y.url&&(n.R0=n.R0||RvT(y.url)));y=n.isLivePlayback&&!n.z7&&!n.sV&&!n.isPremiere;n.j("html5_live_head_playable")&&(!d9(n)&&y&&n.Xp("missingLiveHeadPlayable",{}),n.iY.Ns==="yt"&&(Z.r5=!0))}else Z=null;n.Xp("pafmts",{isManifestFilled:!!Z})}if(!Z)return!1;Ds(n,Z);return!0}; WC=function(n){this.value=n}; qt=function(n){return!!(n.playlist||n.list||n.api)}; A2=function(n){return!!n.videoData.startSeconds&&isFinite(n.videoData.startSeconds)&&n.videoData.startSeconds>1E9}; lB=function(n,Z,F){this.triggeringSlotId=Z;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=F||n(this.triggerType)}; yR=function(n){var Z=n===void 0?{}:n;n=Z.H7===void 0?0:Z.H7;var F=Z.KO===void 0?!1:Z.KO;var y=Z.GB===void 0?0:Z.GB;var l=Z.Nt===void 0?0:Z.Nt;var m=Z.DE===void 0?Infinity:Z.DE;var a=Z.b4===void 0?0:Z.b4;var D=Z.z7===void 0?!1:Z.z7;Z=Z.Cx===void 0?!1:Z.Cx;g.c_.call(this);this.vW=this.oE=-1;this.IH=n;this.GB=y;this.KO=F;this.Nt=l;this.DE=m;this.b4=a;((this.z7=D)||isFinite(m)&&this.DE>0)&&F&&Fb3&&(this.X=!1,this.T="postLive");this.Cx=Z}; Qq=function(n,Z){if(Error.captureStackTrace)Error.captureStackTrace(this,Qq);else{var F=Error().stack;F&&(this.stack=F)}n&&(this.message=String(n));Z!==void 0&&(this.cause=Z)}; pw=function(n,Z,F,y){(y===void 0?0:y)&&!Z.r5&&(y1()||(y=Z.fn)&&!y.rI(F.info)&&n.mQ.Mh(),Z.r5=!0);Z.bY!==F&&(Z.bY=F)}; jb=function(n,Z){return(n=n.N.get(Z))?n:new Map}; ts=function(n,Z,F,y,l,m,a,D,p){this.O8=n;this.startTime=Z;this.duration=F;this.ingestionTime=y;this.sourceURL=l;this.q1=p;this.endTime=Z+F;this.N=a||0;this.range=m||null;this.pending=D||!1;this.q1=p||null}; C_i=function(n,Z,F,y,l){if(n.jf)return{"if":0,vs:0};var m=n.B9().clone().round(),a=n.Ow?n.Ow.T:null,D=yp(),p=B6(),L=n.Sv(),q=n.Ow?n.Ow.getName():"ns",w={};w["if"]=D.T?1:void 0;w.sdk=n.V?n.V:void 0;w.t=n.timeCreated;w.p=[m.top,m.left,m.bottom,m.right];m&&a&&!Oe(a,m)&&(m=a.round(),w.cp=[m.top,m.left,m.bottom,m.right]);w.tos=y$e(L.X,!1);w.mtos=Vb(L);w.mcvt=L.fR.T;w.ps=void 0;m=lUK(L,$1(),n.NK());w.vht=m;w.mut=L.Yi.T;w.a=T$(n.Bj.volume);w.mv=T$(L.C);w.fs=n.pZ?1:0;w.ft=L.Ns.N;w.at=L.S.N;w.as=L.V>0?1:0; w.atos=y$e(L.N);w.ssb=y$e(L.d5,!1);w.amtos=DTU(L.N,!1);w.uac=n.mJ;w.vpt=L.T.N;q=="nio"&&(w.nio=1,w.avms="nio");w.gmm="4";w.gdr=sVT(n,L.T.N,!0)?1:0;w.efpf=n.kV;if(q=="gsv"||q=="nis")q=n.Ow,q.J>0&&(w.nnut=q.J);w.tcm=U5T(n);w.nmt=n.aY;w.bt=n.lY;w.pst=n.fR;w.vpaid=n.Pr;w.dur=n.T;w.vmtime=n.Ns;w.is=n.kd.T;n.N.length>=1&&(w.i0=n.N[0].e6,w.a0=[n.N[0].Ly],w.c0=[n.N[0].jH],w.ss0=[n.N[0].cn],q=n.N[0].position,m=n.N[0].Xs,w.p0=q?xM(q):void 0,q&&m&&!Oe(m,q)&&(w.cp0=xM(m)));n.N.length>=2&&(w.i1=n.N[1].e6,w.a1= eP(n.N[1].C$,n.N[1].Ly,n.N[1].UE),w.c1=eP(n.N[1].u9,n.N[1].jH,n.N[1].z8),w.ss1=eP(n.N[1].OE,n.N[1].cn,n.N[1].Sd),q=n.N[1].position,m=n.N[1].Xs,w.p1=q?xM(q):void 0,q&&m&&!Oe(m,q)&&(w.cp1=xM(m)),w.mtos1=n.N[1].JA);n.N.length>=3&&(w.i2=n.N[2].e6,w.a2=eP(n.N[2].C$,n.N[2].Ly,n.N[2].UE),w.c2=eP(n.N[2].u9,n.N[2].jH,n.N[2].z8),w.ss2=eP(n.N[2].OE,n.N[2].cn,n.N[2].Sd),q=n.N[2].position,m=n.N[2].Xs,w.p2=q?xM(q):void 0,q&&m&&!Oe(m,q)&&(w.cp2=xM(m)),w.mtos2=n.N[2].JA);n.N.length>=4&&(w.i3=n.N[3].e6,w.a3=eP(n.N[3].C$, n.N[3].Ly,n.N[3].UE),w.c3=eP(n.N[3].u9,n.N[3].jH,n.N[3].z8),w.ss3=eP(n.N[3].OE,n.N[3].cn,n.N[3].Sd),q=n.N[3].position,m=n.N[3].Xs,w.p3=q?xM(q):void 0,q&&m&&!Oe(m,q)&&(w.cp3=xM(m)),w.mtos3=n.N[3].JA);w.cs=sOj(n.kd);Z&&(w.ic=q67(n.kd),w.dvpt=L.T.X,w.dvs=ZT(L.X,.5),w.dfvs=ZT(L.X,1),w.davs=ZT(L.N,.5),w.dafvs=ZT(L.N,1),F&&(L.T.X=0,Dgf(L.X),Dgf(L.N)),n.bI()&&(w.dtos=L.Wr,w.dav=L.Pr,w.dtoss=n.yf+1,F&&(L.Wr=0,L.Pr=0,n.yf++)),w.dat=L.S.X,w.dft=L.Ns.X,F&&(L.S.X=0,L.Ns.X=0));w.ps=[D.S.width,D.S.height];w.bs= [wF(D.N),D.N.getHeight()];w.scs=[D.V.width,D.V.height];w.dom=D.domain;n.Jf&&(w.vds=n.Jf);if(n.C.length>0||n.zW)Z=g.rU(n.C),n.zW&&Z.push(n.zW),w.pings=g.Yn(Z,function(T){return T.toString()}); Z=g.Yn(g.I$(n.C,function(T){return T.C()}),function(T){return T.getId()}); muf(Z);w.ces=Z;n.X&&(w.vmer=n.X);n.L&&(w.vmmk=n.L);n.Wr&&(w.vmiec=n.Wr);w.avms=n.Ow?n.Ow.getName():"ns";n.Ow&&g.RH(w,n.Ow.QN());y?(w.c=Ii(n.Bj.jH,2),w.ss=Ii(n.Bj.cn,2)):w.tth=$1()-aUj;w.mc=Ii(L.Tx,2);w.nc=Ii(L.J,2);w.mv=T$(L.C);w.nv=T$(L.V);w.lte=Ii(n.Ue,2);y=cU(n,l);Vb(L);w.qmtos=Vb(y);w.qnc=Ii(y.J,2);w.qmv=T$(y.C);w.qnv=T$(y.V);w.qas=y.V>0?1:0;w.qi=n.B1;w.avms||(w.avms="geo");w.psm=L.lY.N;w.psv=L.lY.getValue();w.psfv=L.xi.getValue();w.psa=L.yg.getValue();p=BKf(p.Vm);p.length&&(w.veid=p);n.S&&g.RH(w, jST(n.S));w.avas=n.Nv();w.vs=n.jW();w.co=DoU(n);w.tm=L.jT;w.tu=L.r5;return w}; Lq=function(){for(var n=[],Z=g.BT("EXPERIMENTS_FORCED_FLAGS",{}),F=g.Y(Object.keys(Z)),y=F.next();!y.done;y=F.next())y=y.value,n.push({key:y,value:String(Z[y])});F=g.BT("EXPERIMENT_FLAGS",{});y=g.Y(Object.keys(F));for(var l=y.next();!l.done;l=y.next())l=l.value,l.startsWith("force_")&&Z[l]===void 0&&n.push({key:l,value:String(F[l])});return n}; Kb8=function(n){return new fM(n.type,n.bY,n.range,"getEmptyStubAfter"+n.C,n.O8,n.startTime+n.duration,0,n.N+n.X,0)}; w7=function(n){zO.call(this,n,!1,!0);this.isCounterfactual=this.T=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.J=!0;this.overflowButton=new g.R({U:"button",s8:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.S(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.R({U:"img",K:"ytp-suggested-action-badge-img",Z:{src:"{{url}}"}}); this.thumbnailImage.hide();g.S(this,this.thumbnailImage);this.thumbnailIcon=new g.R({U:"div",K:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.S(this,this.thumbnailIcon);this.banner=new g.R({U:"a",K:"ytp-suggested-action-container",D:[this.thumbnailImage,this.thumbnailIcon,{U:"div",K:"ytp-suggested-action-details",D:[{U:"text",K:"ytp-suggested-action-title",E8:"{{title}}"},{U:"text",K:"ytp-suggested-action-subtitle",E8:"{{subtitle}}"},{U:"text",K:"ytp-suggested-action-metadata-text", E8:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.S(this,this.banner);this.banner.oY(this.V.element);this.G(this.W,"videodatachange",this.onVideoDataChange);this.G(this.W,g.HP("suggested_action_view_model"),this.eq4);this.G(this.W,g.dn("suggested_action_view_model"),this.a8i);this.G(this.overflowButton.element,"click",this.GI);this.G(n,"featuredproductdismissed",this.Ai);this.W.createServerVe(this.banner.element,this.banner,!0)}; szY=function(n){vk.call(this,n);var Z=this;mn(this.api,"getPlaybackRate",function(){return Z.api.getPlaybackRate()}); mn(this.api,"setPlaybackRate",function(F){typeof F==="number"&&Z.api.setPlaybackRate(F)})}; cB=function(n){this.W=n;this.adVideoId=this.N=this.videoId=this.adCpn=this.contentCpn=null;this.S=!0;this.X=this.T=!1;this.adFormat=null;this.V="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; g.e_=function(n,Z){this.x=n!==void 0?n:0;this.y=Z!==void 0?Z:0}; ad=function(n){g.I.call(this);this.N=n;this.uN=new Map}; D1=function(n,Z,F,y,l,m){m=m===void 0?function(){}:m; CW.call(this,n,{U:"div",K:"ytp-ad-survey-answer"},"survey-answer",Z,F,y);this.index=l;this.onSelected=m;this.N=null;this.toggledLoggingParams="";this.answer=this.Vg("ytp-ad-survey-answer");this.hide()}; Dup=function(n,Z,F,y,l){n1.call(this,"banner-image",n,Z,F,y,l)}; Ey=function(n){this.AG=UO(n)}; on=function(n,Z){this.Y=n;this.timerName="";this.T=!1;this.X=NaN;this.V=new p4P;this.N=Z||null;this.T=!1}; Lb8=function(n){n.Tx=!1;var Z=f7(B6().Vm,"rmmt")==1,F=!!n.uo("isViewable");(Z?!F:1)&&J6().setTimeout(Kw(524,function(){n.Tx||(yKf(n),xr(540,Error()),n.J="mt",n.fail("w"))}),500); UAp(n);Ar(n,n.X.w6.AFMA_LIDAR,xWn)}; t5n=function(n){switch(n){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}}; PB=function(n){return new jI(n)}; dkQ=function(n,Z,F,y,l,m,a,D){y=y===void 0?{}:y;D=D===void 0?{value:0}:D;m=uhp(m);y=is(y,a,function(p){g.N5("start_client_gcf")&&g.CF.k6(function(){return g.A(function(L){return g.x(L,qkK(p),0)})}); D.value--;D.value||F()},function(){D.value--; D.value||F()},l); y.headers["Content-Type"]="application/json+protobuf";y.postBodyFormat="JSPB";y.postBody=n;g.ly(Z,m,"",y);Lw=!1}; tA=function(n,Z,F){for(var y in n.N){var l=n.N[y].index,m=Z,a=F;l.KO&&(m&&(l.oE=Math.max(l.oE,m)),a&&(l.vW=Math.max(l.vW||0,a)))}F&&(n.w5=F/1E3)}; $O=function(n,Z){var F=dt(n);return F.defaultView&&F.defaultView.getComputedStyle&&(n=F.defaultView.getComputedStyle(n,null))?n[Z]||n.getPropertyValue(Z)||"":""}; oPe=function(n){var Z;if(!PFp.test("div"))throw Error("");if(w4K.indexOf("DIV")!==-1)throw Error("");var F="":(n=$we(Z.map(function(y){return y instanceof F9?y:fj(String(y))})),F+=">"+n.toString()+""); return k6(F)}; g.QW=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,Z:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z", fill:"#fff"}}]}}; Rio=function(n,Z,F){var y=this;F=F===void 0?{}:F;this.pR=Z;this.X=this.status=0;this.CR=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(F.method||"GET",n);if(F.headers){n=F.headers;Z=g.Y(Object.keys(n));for(var l=Z.next();!l.done;l=Z.next())l=l.value,this.xhr.setRequestHeader(l,n[l])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(m){y.OX(m)}; n=mz(function(m){y.onDone(m)}); this.xhr.addEventListener("load",n,!1);this.xhr.addEventListener("error",n,!1);F.body?this.xhr.send(F.body):this.xhr.send();this.xhr.addEventListener("progress",mz(function(m){y.onProgress(m)}),!1)}; GO=function(n,Z,F,y,l,m,a,D,p,L,q,w){g.I.call(this);var T=this;this.mQ=n;this.loader=Z;this.policy=F;this.audioTrack=y;this.videoTrack=l;this.eT=m;this.zN=a;this.Yi=D;this.X=p;this.timing=L;this.Tx=q;this.w5=w;this.N=[];this.V={};this.fR=this.d5=!1;this.Ns=this.xi=this.h0=0;this.jT={KX:0,RE:0};this.hG={KX:0,RE:0};this.J=null;this.zx={XI:[],YM:[]};this.lY={XI:[],YM:[]};this.C=null;this.S=[];this.yg=!1;this.vx={eM5:function(){return T.N}, D_8:function(){return T.V}, ha8:function(){T.N.length=0}, VfG:function(){return T.videoData.jT}, TIp:function(){return T.Ns}, Qjr:function(P){T.Ns=P}, Xcu:function(P){T.jT.RE=P}, kO:function(P){T.C=P}, MC:function(P){T.S=P}, Zc:function(){return T.Zc()}}; this.videoData=this.mQ.getVideoData();this.L=this.videoData.latencyClass==="LOW"?this.policy.Dm:this.videoData.latencyClass==="ULTRALOW"?this.policy.l4g:this.policy.uw;this.policy.nP&&(this.Wr=new w6(this.loader,this.policy,this.zN),g.S(this,this.Wr))}; g.sj=function(n){return ZLK(n.X)}; g.P57=function(n,Z,F){n.remove(Z);F.length>0&&(n.T=null,n.N.set(yq(n,Z),g.rU(F)),n.X=n.X+F.length)}; yE=function(n,Z){return""+n.getAsJson().veType+n.getAsJson().veCounter+Z}; J$o=function(n,Z,F,y){F=F.split("#");F=[F[1],F[2],0,F[3],F[4],-1,F[0],""].join("#");g.Ib.call(this,n,Z,F,0);this.X=null;this.S=y?2:0}; oV=function(n,Z,F,y,l,m,a,D){this.sampleRate=n===void 0?0:n;this.numChannels=Z===void 0?0:Z;this.spatialAudioType=F===void 0?"SPATIAL_AUDIO_TYPE_NONE":F;this.N=y===void 0?!1:y;this.T=l;this.V=m;this.audioQuality=a===void 0?"AUDIO_QUALITY_UNKNOWN":a;this.X=D===void 0?!1:D}; jVi=function(n,Z,F){g.ko.call(this,n);var y=this;this.Fp=Z;this.WI=F;this.getVideoUrl=new qS(6);this.qp=new qS(5);this.hm=new qS(4);this.Zx=new qS(3);this.W_=new g.dV(g.B0({href:"{{href}}",target:this.W.B().Pr},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.dV(g.B0(),1,"Stats for nerds");this.GJ=new g.oS({U:"div",s8:["ytp-copytext","ytp-no-contextmenu"],Z:{draggable:"false",tabindex:"1"},E8:"{{text}}"});this.D2=new JL(this.W,this.GJ);this.u5=this.Sf=null;g.R6(this.W.B())&&(this.closeButton= new g.R({U:"button",s8:["ytp-collapse","ytp-button"],Z:{title:"Close"},D:[g.QVp()]}),g.S(this,this.closeButton),this.closeButton.oY(this.element),this.closeButton.listen("click",this.MS,this));g.R6(this.W.B())&&(this.Iz=new g.dV(g.B0(),8,"Account"),g.S(this,this.Iz),this.Dx(this.Iz,!0),this.Iz.listen("click",this.lDY,this),n.createClientVe(this.Iz.element,this.Iz,137682));this.W.B().WH&&(this.Dd=new c5("Loop",7),g.S(this,this.Dd),this.Dx(this.Dd,!0),this.Dd.listen("click",this.hqp,this),n.createClientVe(this.Dd.element, this.Dd,28661));this.W.j("web_player_miniplayer_in_context_menu")&&(this.Wa=new g.dV(g.B0(),6,"Miniplayer"),g.S(this,this.Wa),this.Dx(this.Wa,!0),this.Wa.listen("click",this.qS8,this),n.createClientVe(this.Wa.element,this.Wa,62946));this.W.j("web_watch_pip_manual")&&this.W.B().showMiniplayerButton&&(this.Kz=new g.dV(g.B0(),6,"Picture-in-picture"),g.S(this,this.Kz),this.Dx(this.Kz,!0),this.Kz.listen("click",this.Esr,this),n.createClientVe(this.Kz.element,this.Kz,194442));g.S(this,this.getVideoUrl); this.Dx(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.yDR,this);n.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.S(this,this.qp);this.Dx(this.qp,!0);this.qp.listen("click",this.Gur,this);n.createClientVe(this.qp.element,this.qp,28660);g.S(this,this.hm);this.Dx(this.hm,!0);this.hm.listen("click",this.f8Y,this);n.createClientVe(this.hm.element,this.hm,28658);g.S(this,this.Zx);this.Dx(this.Zx,!0);this.Zx.listen("click",this.nAY,this);g.S(this,this.W_);this.Dx(this.W_,!0); this.W_.listen("click",this.XEx,this);g.S(this,this.showVideoInfo);this.Dx(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.rV8,this);g.S(this,this.GJ);this.GJ.listen("click",this.oAR,this);g.S(this,this.D2);UPT()&&(this.Sf=new g.R({U:"textarea",K:"ytp-html5-clipboard",Z:{readonly:"",tabindex:"-1"}}),g.S(this,this.Sf),this.Sf.oY(this.element));var l;(l=this.Iz)==null||l.setIcon(YkY());var m;(m=this.Dd)==null||m.setIcon(hkU());var a;(a=this.Wa)==null||a.setIcon(this.W.j("delhi_modern_web_player_icons")? bgn():RZ());var D;(D=this.Kz)==null||D.setIcon(RZ());this.Zx.setIcon({U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{"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.W_.setIcon(wP());this.showVideoInfo.setIcon(f38());this.G(n,"onLoopChange",this.onLoopChange);this.G(n,"videodatachange",this.onVideoDataChange);this.G(n,"fullscreentoggled",function(){Fq(y)}); this.G(n,"minimized",function(){Fq(y)}); SkQ(this);mHi(this,this.W.getVideoData())}; g.$$=function(n,Z){this.id=n;this.J2=Z;this.captionTracks=[];this.T=this.V=null;this.xtags="";this.C=this.S=!1;this.N=null;this.X="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";n=this.J2.id.split(".");n.length>1&&(this.S=n[1]==="2",this.C=n[1]==="4")}; piT=function(n,Z){var F=g.ef(n,0,1952868452);n=g.ef(n,0,1953658222);if(F&&n){F.skip(1);var y=iA(F)<<16|C$(F);F.skip(4);y&1&&F.skip(8);y&2&&F.skip(4);if(y&8){y=F.N;var l=uA(F);F.data.setUint32(F.offset+y,Z>1?Math.ceil(l*Z):Math.floor(l*Z))}n.skip(1);F=iA(n)<<16|C$(n);if(F&256){y=F&1;l=F&4;var m=F&512,a=F&1024,D=F&2048;F=uA(n);y&&n.skip(4);l&&n.skip(4);y=(m?4:0)+(a?4:0)+(D?4:0);for(l=0;l1?Math.ceil(a*Z):Math.floor(a*Z)),n.skip(y)}}}; h$Y=function(n){n.loading=!0;n.cV=!1;if(Uup(n))g.Ns3(n.videoId).then(function(y){var l;if((l=n.playerResponse)!=null&&l.streamingData){l=[];y=g.Y(y);for(var m=y.next();!m.done;m=y.next())m=Object.assign({},m.value),m.signatureCipher="",l.push(m);l.length<2&&n.Xp("offmlf",{len:l.length});l=ofY(n,l);Z3(n)&&a$n(l,!1);Ds(n,l);n.Xp("dlr",{})}else n.Xp("offsdm",{cotn:n.Dt?n.Dt.cotn:"0",cpn:n.clientPlaybackNonce})}).then(function(){n.kX()}); else{Lf(n.yc)||g.yi(new g.FV("DASH MPD Origin invalid: ",n.yc));var Z=n.yc,F=g.jf(n.iY.experiments,"dash_manifest_version")||4;Z=g.pQ(Z,{mpd_version:F});n.isLowLatencyLiveStream&&n.latencyClass!=="NORMAL"||(Z=g.pQ(Z,{pacing:0}));Puf(Z,n.iY.experiments,n.isLivePlayback).then(function(y){n.CR()||(Ds(n,y,!0),fZ("mrc",void 0,n.Pr),n.kX())},function(y){n.CR()||(n.loading=!1,n.publish("dataloaderror",new g.Xv("manifest.net.retryexhausted",{backend:"manifest", rc:y.status},1)))}); fZ("mrs",void 0,n.Pr)}}; OnQ=function(n){var Z=n.B();if(Z.j("html5_disable_onesie")||!Z.j("html5_onesie")||!Z.j("html5_onesie_inline")&&n.getVisibilityState()===5||Z.Ns!=="yt")return!1;var F=Z.Hx;if(!F||!F.N)return n.handleError(new g.Xv("onesie.unavailable.hotconfig",{key:"0"})),!1;if(F.N.C<(0,g.tP)()&&(n.Xp("okexp","1"),(F=n.oG())&&Z.j("html5_prefer_trusted_host_on_key_expiration"))){F.X=!0;var y;(Z=(y=F.N.get(0))==null?void 0:qv(59,y.location))&&!ax(Z)&&F.N.delete(0)}if(EPf)return n.Xp("ost3","1"),!1;y={};return Object.keys(y).length> 0?(y.onesie="0",n.handleError(new g.Xv("html5.missingapi",y)),!1):!0}; nVK=function(n,Z){for(var F;;){if(n.Md===0&&(tY(n),n.Md===0)){if(Z===0)return 1;break}n.Ys=0;F=XJ(n,0,n.window[n.VP]);n.Md--;n.VP++;if(F&&(zR(n,!1),n.rV.G7===0))return 1}n.z5=0;return Z===4?(zR(n,!0),n.rV.G7===0?3:4):n.q$&&(zR(n,!1),n.rV.G7===0)?1:2}; og=function(n){n=n.dM();n.uy();return te(n)}; c$Q=function(n){n.N.unsubscribe("internalvideodatachange",n.nO,n);n.X.unsubscribe("internalvideodatachange",n.nO,n);n.kA.B().j("html5_gapless_use_format_info_fix")&&(n.N.unsubscribe("internalvideoformatchange",n.nO,n),n.X.unsubscribe("internalvideoformatchange",n.nO,n));n.N.unsubscribe("mediasourceattached",n.nO,n);n.X.unsubscribe("statechange",n.UA,n)}; tf=function(n,Z){this.type=n||"";this.id=Z||""}; Xk3=function(n,Z,F){g.I.call(this);this.encryptedClientKey=Z;this.C=F;this.X=new Uint8Array(n.buffer,0,16);this.T=new Uint8Array(n.buffer,16)}; r0U=function(n,Z,F,y,l,m,a,D,p,L,q,w,T){var P=FVo(l,q,w);if(P instanceof C)return P;var J=[],U=[];P=g.Y(P);for(var h=P.next();!h.done;h=P.next()){var v=h.value;h=n;var V=l[v.FZ],f=v,W=Z;v=m;var X=a,u=D,Fp=p,nQ=rR(V);if(nQ instanceof C)h=nQ;else{var $U={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,Gx:"adapter"};f=pue(W,V,f,v);f instanceof C?h=f:(h=Object.assign({},$U,wu,{Nd:nQ,renderingContent:V.renderingContent,clientMetadata:new lb(f),lN:yP(u,h)($U),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData}), h=(V=x9(Fp,h,v,X.bU,u,void 0,!0))?V instanceof C?V:{layout:h,ly:V}:new C("Expecting associatedInPlayerSlot"))}if(h instanceof C)return h;J.push(h.layout);U.push(h.ly)}l={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Gx:"core"};Z=[new oc(Number(F.driftRecoveryMs)),new a7(q),new K1(w),new K7(Dg(Z)),new L1(L),new p1({})];T&&Z.push(new TV({}));return{wl:Object.assign({},l,y,{CD:J,Nd:new Map,clientMetadata:new lb(Z),lN:yP(D,n)(l)}),zU:U}}; Fy=function(n,Z,F){Z=VEU[Z];var y,l,m={detected:n===0,source:""+Z.X+((y=F.triggerContext)!=null?y:"")+((l=F.Iq)!=null?l:""),detectionStates:F.states,durationMs:F.EC};F.metadata&&(m.contentCpn=F.metadata.contentCpn,m.adCpn=F.metadata.adCpn);g.xt("biscottiBasedDetection",m);Z.N!==void 0&&(F=Number(g.BT("CATSTAT",0)),Z.N!==void 0?(Z=Z.N,n=vPe(n),n=F&~(3<n.mediaTime+n.S&&Z=2?a[1]:"";var D=C5K.test(Z),p=u$K.exec(Z);p=p!=null&&p.length>=2?p[1]:"";var L=bnU.exec(Z);L=L!=null&&L.length>=2&&!Number.isNaN(Number(L[1]))?Number(L[1]):1;var q=X4T.exec(Z);q=q!=null&&q.length>=2?q[1]:"0";var w=tH(n.player.B().rW),T=n.player.getVideoData(1),P=g.Yu(T.Ns,!0),J="BISCOTTI_ID"in F?F.BISCOTTI_ID:"";qYY(n,P,Z,J.toString(),n.player.B(), T);T={splay:!1,lactMilliseconds:F.LACT.toString(),playerHeightPixels:Math.trunc(F.P_H),playerWidthPixels:Math.trunc(F.P_W),vis:Math.trunc(F.VIS),signatureTimestamp:20394,autonavState:a9(n.player.B())};y&&(y={},AEn(y,F.YT_REMOTE)&&(T.mdxContext=y));if(y=z$Y.includes(w)?void 0:g.qs("PREF")){for(var U=y.split(RegExp("[:&]")),h=0,v=U.length;h1&&V[1].toUpperCase()==="TRUE"){P.user.lockedSafetyMode=!0;break}}T.autoCaptionsDefaultOn= eoi(y)}Z=tE7.exec(Z);(Z=Z!=null&&Z.length>=2?Z[1]:"")&&p&&(P.user.credentialTransferTokens=[{token:Z,scope:"VIDEO"}]);Z={contentPlaybackContext:T};a={adBlock:Math.trunc(F.AD_BLOCK),params:a,breakIndex:L,breakPositionMs:q,clientPlaybackNonce:F.CPN,topLevelDomain:w,isProxyAdTagRequest:D,context:P,adSignalsInfoString:C8(Nh(J.toString())),overridePlaybackContext:Z};l!==void 0&&(a.cueProcessedMs=Math.round(l).toString());p&&(a.videoId=p);F.LIVE_TARGETING_CONTEXT&&(a.liveTargetingParams=F.LIVE_TARGETING_CONTEXT); F.AD_BREAK_LENGTH&&(a.breakLengthMs=Math.trunc(F.AD_BREAK_LENGTH*1E3).toString());m&&(a.driftFromHeadMs=m.toString());a.currentMediaTimeMs=Math.round(n.player.getCurrentTime(1)*1E3);(n=n.player.getGetAdBreakContext())&&(a.getAdBreakContext=n);return a}; EV3=function(n){var Z={};g.I5(n,function(F){var y=F.event,l=Z[y];Z.hasOwnProperty(y)?l!==null&&(F.equals(l)||(Z[y]=null)):Z[y]=F}); ZQQ(n,function(F){return Z[F.event]===null})}; g.e$7=function(n){var Z=n.B();return Z.N1&&!Z.T&&g.R6(Z)?n.isEmbedsShortsMode()?(n=n.LK(),Math.min(n.width,n.height)>=315):!n.gJ():!1}; K0=function(n,Z,F){g.I.call(this);this.policy=n;this.X=Z;this.yg=F;this.w5=this.aY=0;this.Tx=-1;this.Wr=this.S=0;this.Ns=!1;this.interruptions=[];this.V=[{stamp:0,net:0,max:0}];this.jT=this.C=(0,g.tP)();this.L=new nN(4,1,.6,.4);this.zx=new nN(4,1,.6,.4);this.J=new nN(20,1,.5,.4);n.Tx?this.T=new RI(n.N):n.X?this.T=new fU(n.N):this.T=new nN(n.N,20,.5,.4);this.lY=new nN(5,1,.25);this.Pr=new nN(30,1,.5);n=g.z5("yt-player-bandwidth")||{};Z=this.policy.T;if(n.byterate>0)Z=n.byterate,this.Ns=!0;else{var y; F=(((y=navigator.connection)==null?void 0:y.downlink)||0)*64*1024;F>0&&(Z=F,this.Ns=!0)}this.T.Oj(this.policy.C,Z);n.delay>0&&this.L.Oj(1,Math.min(n.delay,2));n.stall>0&&this.J.Oj(1,n.stall);n.init>0&&(this.jT=Math.min(n.init,this.jT));n.interruptions&&(this.V=this.V.concat(n.interruptions),this.V.length>16&&this.V.pop());this.Tx=(0,g.tP)();this.policy.J>0&&(this.r5=new g.e7(this.fR,this.policy.J,this),g.S(this,this.r5),this.r5.start())}; LZ=function(n){g.I.call(this);this.N=n;this.dJ=!0;this.uN=new Map}; du7=function(n,Z){if(Z.PH()){var F=Z.T6();F=g.Y(F);for(var y=F.next();!y.done;y=F.next())y=y.value,n.policy.T&&Z instanceof i$&&n.Xp("omblss",{s:y.info.bd()}),HnK(n,Z.info.D4,y,Z.Mz())}}; g.QF=function(){return g.KQ.ytPubsubPubsubInstance}; BsQ=function(n,Z){var F=Z.zk,y=Z.gj.vU,l=Z.gj.L8,m=Z.gj.J1,a,D=-1;n.YL=0;n.Jz=573;for(a=0;a>1;a>=1;a--)se(n,F,a);p=m;do a=n.oH[1],n.oH[1]=n.oH[n.YL--],se(n,F,1),y=n.oH[1],n.oH[--n.Jz]=a,n.oH[--n.Jz]=y,F[p*2]=F[a*2]+F[y*2],n.depth[p]=(n.depth[a]>=n.depth[y]?n.depth[a]:n.depth[y])+1,F[a*2+1]=F[y*2+1]=p,n.oH[1]=p++,se(n,F,1);while(n.YL>= 2);n.oH[--n.Jz]=n.oH[1];a=Z.zk;p=Z.i4;y=Z.gj.vU;l=Z.gj.L8;m=Z.gj.Db;var L=Z.gj.BZ,q=Z.gj.uJ5,w,T=0;for(w=0;w<=15;w++)n.nk[w]=0;a[n.oH[n.Jz]*2+1]=0;for(Z=n.Jz+1;Z<573;Z++){var P=n.oH[Z];w=a[a[P*2+1]*2+1]+1;w>q&&(w=q,T++);a[P*2+1]=w;if(!(P>p)){n.nk[w]++;var J=0;P>=L&&(J=m[P-L]);var U=a[P*2];n.r_+=U*(w+J);l&&(n.Wi+=U*(y[P*2+1]+J))}}if(T!==0){do{for(w=q-1;n.nk[w]===0;)w--;n.nk[w]--;n.nk[w+1]+=2;n.nk[q]--;T-=2}while(T>0);for(w=q;w!==0;w--)for(P=n.nk[w];P!==0;)y=n.oH[--Z],y>p||(a[y*2+1]!==w&&(n.r_+=(w- a[y*2+1])*a[y*2],a[y*2+1]=w),P--)}NTQ(F,D,n.nk)}; mZ=function(n,Z,F){F=F===void 0?{}:F;this.id=n;this.mimeType=Z;F.Qg>0||(F.Qg=16E3);Object.assign(this,F);n=g.Y(this.id.split(";"));this.itag=n.next().value;this.N=n.next().value;this.containerType=ME8(Z);this.vr=Bm[this.itag]||""}; TV=function(n){this.value=n}; RA=function(n){for(;n.J.length;)n.J.pop().dispose()}; g.Tg=function(n){return n.j("html5_local_playsinline")?Z2&&!g.SG(602)&&!("playsInline"in Nt()):Z2&&!n.jP||g.tv("nintendo wiiu")?!0:!1}; Jo=function(n){g.R.call(this,{U:"div",K:Pr.TITLE,D:[{U:"div",s8:[Pr.TEXT,n.j("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],D:[{U:"a",s8:[Pr.LINK,Pr.SESSIONLINK],Z:{target:n.B().Pr,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},E8:"{{title}}"},{U:"div",K:Pr.SUBTEXT,D:["{{subtextElement}}"]}]}]});this.api=n;this.N=null;this.link=this.Vg(Pr.LINK);n.createClientVe(this.element,this,23851);this.G(n,"videodatachange",this.g5); this.G(n,"videoplayerreset",this.g5);this.g5()}; ZlP=function(n,Z,F){F=F===void 0?$tj:F;n=tD(n,Z);Z=typeof n;n=n==null?n:Z==="bigint"?t$(VE(64,n)):IG(n)?Z==="string"?oQU(n):nIo(n):void 0;return n!=null?n:F}; g.Qk=function(){return!!g.Di("yt.scheduler.instance")}; g.YD=function(n){var Z=n.B(),F=g.z$||g.Cc?{style:"will-change: opacity"}:void 0,y=Z.V,l=["ytp-modern-videowall-still"];Z.X&&l.push("ytp-videowall-show-text");g.R.call(this,{U:"a",s8:l,Z:{href:"{{url}}",target:y?Z.Pr:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},D:[{U:"div",K:"ytp-modern-videowall-still-image",Z:{style:"{{background}}"},D:[{U:"span",K:"ytp-modern-videowall-still-info-duration",E8:"{{duration}}"}]},{U:"span",K:"ytp-modern-videowall-still-info", Z:{"aria-hidden":"true"},D:[{U:"span",K:"ytp-modern-videowall-still-info-bg",D:[{U:"span",K:"ytp-modern-videowall-still-info-content",Z:F,D:[{U:"span",K:"ytp-modern-videowall-still-info-title",E8:"{{title}}"},{U:"span",K:"ytp-modern-videowall-still-info-author",E8:"{{author}}"},{U:"span",K:"ytp-modern-videowall-still-view-count-and-date-info",E8:"{{views_and_publish_time}}"},{U:"span",K:"ytp-modern-videowall-still-info-live",E8:"Live"}]}]}]},{U:"span",s8:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},D:[{U:"span",K:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{U:"span",K:"ytp-modern-videowall-still-listlabel-length",D:[" (",{U:"span",E8:"{{playlist_length}}"},")"]}]},{U:"span",s8:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},D:[{U:"span",K:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{U:"span",K:"ytp-modern-videowall-still-listlabel-length",E8:" (50+)"}]}]}); this.suggestion=null;this.X=y;this.api=n;this.N=new g.IS(this);g.S(this,this.N);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.N.G(n,"videodatachange",this.onVideoDataChange);n.createServerVe(this.element,this);this.onVideoDataChange()}; Fuj=function(n,Z){var F={};if(Z||!n||!n.kind)return F;if(n.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||n.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!n.adTimeOffset||!n.adTimeOffset.offsetStartMilliseconds)return g.ZW(Error("malformed AdPlacementConfig")),F;F.MIDROLL_POS=T3(Sw(Math.round(n_(n.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else F.MIDROLL_POS=T3(Sw("0"));return F}; jw=function(n){return o5(n.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; lRf=function(n,Z,F,y,l,m,a,D,p){var L=this;this.callback=n;this.slot=Z;this.layout=F;this.tG=y;this.uY=l;this.U8=a;this.TN=D;this.nR=p;this.N=!1;n=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,n,F.layoutId);var q;n=((q=o5(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:q.progressCommands)||[];this.X=new Rt(m,n,F.layoutId,function(){return yhP(L)*1E3})}; Cz=function(n,Z,F){g.I.call(this);this.W=n;this.U8=Z;this.uY=F;this.listeners=[];this.V=!1;this.kU=[];this.N=null;this.S=new UE(this,sg8(Z.get()));this.T=new m2n;this.X=null}; IL=function(n,Z){Z=Z===void 0?{}:Z;this.AXY=n;this.metadata=Z;this.status=null}; mt7=function(n){n.S||(n.S=(0,g.tP)());n.policy.Pr&&(n.C=(0,g.tP)())}; NS=function(n,Z){n.X.delete(Z)}; Kue=function(n){return{TJx:ut(n,1),itag:XM(n,3),lq:u5(n,4,odT),lmt:ut(n,5),CD5:ut(n,7),xtags:XM(n,15),r2Y:u5(n,23,aRY),X7:u5(n,34,h_)}}; Dtf=function(n){g.R.call(this,{U:"div",K:"ytp-gated-actions-overlay",D:[{U:"div",K:"ytp-gated-actions-overlay-background",D:[{U:"div",K:"ytp-gated-actions-overlay-background-overlay"}]},{U:"button",s8:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Z:{"aria-label":"Close"},D:[g.FP()]},{U:"div",K:"ytp-gated-actions-overlay-bar",D:[{U:"div",K:"ytp-gated-actions-overlay-text-container",D:[{U:"div",K:"ytp-gated-actions-overlay-title",E8:"{{title}}"},{U:"div",K:"ytp-gated-actions-overlay-subtitle", E8:"{{subtitle}}"}]},{U:"div",K:"ytp-gated-actions-overlay-button-container"}]}]});var Z=this;this.api=n;this.background=this.Vg("ytp-gated-actions-overlay-background");this.X=this.Vg("ytp-gated-actions-overlay-button-container");this.N=[];this.G(this.Vg("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){Z.api.LR("onCloseMiniplayer")}); this.hide()}; wkQ=function(n){for(var Z=g.Y(p97),F=Z.next();!F.done;F=Z.next())n=VW(n,F.value);return"ST-"+N3(n).toString(36)}; Bo=function(n){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(n=n||window.event){this.event=n;for(var Z in n)Z in Lui||(this[Z]=n[Z]);this.scale=n.scale;this.rotation=n.rotation;var F=n.target||n.srcElement;F&&F.nodeType==3&&(F=F.parentNode);this.target=F;var y=n.relatedTarget; if(y)try{y=y.nodeName?y:null}catch(l){y=null}else this.type=="mouseover"?y=n.fromElement:this.type=="mouseout"&&(y=n.toElement);this.relatedTarget=y;this.clientX=n.clientX!=void 0?n.clientX:n.pageX;this.clientY=n.clientY!=void 0?n.clientY:n.pageY;this.keyCode=n.keyCode?n.keyCode:n.which;this.charCode=n.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=n.altKey;this.ctrlKey=n.ctrlKey;this.shiftKey=n.shiftKey;this.metaKey=n.metaKey;this.N=n.pageX;this.X=n.pageY}}catch(l){}}; qK8=function(n,Z){n.W.cueVideoByPlayerVars(Z,2)}; w9e=function(n){var Z=n.provider.mQ.PP(),F=g.kq(n.provider);zM(n,F,Z);var y=Z.T;Z=Z.V;isNaN(y)||(n.provider.Y.j("html5_unified_live_latency_reporting")&&!isNaN(Z)&&Z?g.bM(n,F,"e2el",[y.toFixed(3),Z.toFixed(3)]):g.bM(n,F,"e2el",[y.toFixed(3)]))}; x1=function(n){g.R.call(this,{U:"button",s8:["ytp-miniplayer-button","ytp-button"],Z:{title:n.j("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"},D:["{{icon}}"]});this.W=n;this.visible=!1;this.listen("click",this.onClick);this.G(n,"fullscreentoggled",this.g5);this.W.j("player_tooltip_data_title_killswitch")? this.update({title:g.Vq(n,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:TMf(this)}):this.update({"tooltip-title":g.Vq(n,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:TMf(this)});XX(n,this.element,this);n.createClientVe(this.element,this,62946);this.g5()}; SSp=function(n){return em(n).then(function(Z){return Z?new PzY(n,Z):null})}; K$=function(n,Z){Z=(Z===void 0?0:Z)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Z="EMBEDDED_PLAYER_MODE_PFL");var F=n.raw_embedded_player_response;if(!F&&(n=n.embedded_player_response))try{F=JSON.parse(n)}catch(y){return Z}return F?uY(Z,F.embeddedPlayerMode,oI7):Z}; PIf=function(n,Z){if(bx(n,Z))return Z=Ge(n.N,n.pos,8),n.pos+=8,(new DataView(Z.buffer,Z.byteOffset,Z.byteLength)).getFloat64(0,!0)}; g.Tl=function(n,Z,F,y){y=y===void 0?!1:y;NV.call(this);this.mediaElement=n;this.start=Z;this.end=F;this.Kt=y}; JhK=function(n,Z,F){Z=F?Z.lastElementChild:Z.firstElementChild;for(var y=null;Z;){if($O(Z,"display")!=="none"&&Z.getAttribute("aria-hidden")!=="true"){var l=void 0;Z.tabIndex>=0?l=Z:l=JhK(n,Z,F);l&&(y?F?l.tabIndex>y.tabIndex&&(y=l):l.tabIndexn.width*n.height*.2)return{Vp:3,Oa:501,errorMessage:"ad("+RV(F)+") to container("+RV(n)+") ratio exceeds limit."};if(F.height>n.height/3-Z)return{Vp:3,Oa:501,errorMessage:"ad("+RV(F)+") covers container("+RV(n)+") center."}}; g.HS=function(n,Z,F){g.gU(Ir)(n,Z,F===void 0?!1:F)}; Utj=function(n){var Z=n.W.AX()?72:50,F=n.W.B();g.ry(F)&&(F.j("delhi_modern_web_player")?(Z=g.jf(F.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),Z=n.W.j("delhi_modern_web_player_compact_controls")||Z>0&&n.W.getPlayerSize().width<=Z,Z=n.W.AX()?112:Z?70:78,n.W.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(n=getComputedStyle(n.W.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",Z+=Number(n.replace("px","")))):Z=62,g.ri(F)&&(Z=54));return Z}; yN=function(n){this.AG=UO(n)}; EI8=function(n,Z,F,y,l,m,a){var D=g.py(n,NMo);if(D=Cv7(Z,D))return hKK({LX:D.yz,sK:D.signature},Z,F,y,!!n.nT,l,m,a)}; Ppi=function(n,Z){Z&&!n.V&&(I0(n),n.T=null,n.N.forEach(function(F,y){var l=y.toLowerCase();y!=l&&(this.remove(y),g.P57(this,l,F))},n)); n.V=Z}; Olj=function(n,Z,F){zc(n.aW,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Z,F);n=g.Y(n.X);for(var y=n.next();!y.done;y=n.next())y.value.FX(Z,F)}; VS=function(n,Z){n.checked=Z;n.element.setAttribute("aria-checked",String(n.checked))}; AUU=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; wv=function(n,Z,F,y,l){l=l===void 0?!1:l;var m={startTime:(0,g.tP)(),ticks:{},infos:{}};if(Y5)try{var a=dWj(Z);if(a!=null&&(a>BTQ||a=3&&n.W.getPresentingPlayerType()!==2}; uu3=function(n,Z){var F=n.qV,y=n.VP,l=n.F2,m=n.t5,a=n.VP>n.P7-262?n.VP-(n.P7-262):0,D=n.window,p=n.dj,L=n.Ht,q=n.VP+258,w=D[y+l-1],T=D[y+l];n.F2>=n.C8&&(F>>=2);m>n.Md&&(m=n.Md);do{var P=Z;if(D[P+l]===T&&D[P+l-1]===w&&D[P]===D[y]&&D[++P]===D[y+1]){y+=2;for(P++;D[++y]===D[++P]&&D[++y]===D[++P]&&D[++y]===D[++P]&&D[++y]===D[++P]&&D[++y]===D[++P]&&D[++y]===D[++P]&&D[++y]===D[++P]&&D[++y]===D[++P]&&yl){n.VS=Z;l=P;if(P>=m)break;w=D[y+l-1];T=D[y+l]}}}while((Z=L[Z&p])>a&&--F!== 0);return l<=n.Md?l:n.Md}; YkY=function(){return{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",K:"ytp-svg-fill",Z:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}}; G2i=function(n,Z){var F=2,y={};try{var l=Ahe(Z);F=po(l,1);var m=l.getMessage();H2(l,aa,3).length&&(y["grpc-web-status-details-bin"]=Z)}catch(a){n.xhr&&n.xhr.getStatus()===404?(F=5,m="Not Found: "+String(n.xhr.L)):(F=14,m="Unable to parse RpcStatus: "+a)}return{code:F,details:m,metadata:y}}; WuT=function(n,Z){n=n.N.get(Z);if(!n)return{};n=n.T3();if(!n)return{};Z={};return Z.YT_ERROR_CODE=n.Vp.toString(),Z.ERRORCODE=n.Oa.toString(),Z.ERROR_MSG=n.errorMessage,Z}; Wr=function(n,Z){var F=n.Z4();return Z===n.Px()&&n.DD(Z)&&n.DD(F)?F:Z}; ru=function(n,Z){Z=Z===void 0?0:Z;var F,y,l,m,a,D,p,L,q,w,T,P;return g.A(function(J){switch(J.N){case 1:F=rhj(xk().N);if(g.N5("att_fet_ks"))return g.RX(J,7),g.x(J,Q5(n,F),9);g.RX(J,4);return g.x(J,xtj(n,F),6);case 6:a=J.X;l=a.NJG;m=a.XmR;y=a;g.iX(J,3);break;case 4:return g.d4(J),g.yi(Error("Failed to fetch attestation challenge after "+(Z+" attempts; not retrying for 24h."))),fN(n,864E5),J.return({challenge:"",cW:{},Lq:void 0,bgChallenge:void 0});case 9:y=J.X;if(!y)throw Error("Fetching Attestation challenge returned falsy"); if(!y.challenge)throw Error("Missing Attestation challenge");l=y.challenge;m=iJ(l);if("c1a"in m&&(!y.bgChallenge||!y.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.iX(J,3);break;case 7:D=g.d4(J);g.yi(D);Z++;if(Z>=5)return g.yi(Error("Failed to fetch attestation challenge after "+(Z+" attempts; not retrying for 24h."))),fN(n,864E5),J.return({challenge:"",cW:{},Lq:void 0,bgChallenge:void 0});p=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return J.return(new Promise(function(U){g.HX(0, function(){U(ru(n,Z))},p)})); case 3:L=Number(m.t)||7200;fN(n,L*1E3);q=void 0;if(!("c1a"in m&&y.bgChallenge)){J.ST(10);break}w=s1K(y.bgChallenge);g.RX(J,11);return g.x(J,x$T(xk(),w),13);case 13:g.iX(J,12);break;case 11:return T=g.d4(J),g.yi(T),J.return({challenge:l,cW:m,Lq:q,bgChallenge:w});case 12:return g.RX(J,14),q=new X9({challenge:w,zY:{ZI:"aGIf"}}),g.x(J,q.RN,16);case 16:g.iX(J,10);break;case 14:P=g.d4(J),g.yi(P),q=void 0;case 10:return J.return({challenge:l,cW:m,Lq:q,bgChallenge:w})}})}; es=function(n,Z){for(var F={},y=g.Y(Object.keys(GIf)),l=y.next();!l.done;l=y.next()){l=l.value;var m=Z?Z+l:l;m=n[m+"_webp"]||n[m];g.xD(m)&&(F[GIf[l]]=m)}return F}; wUj=function(n,Z,F){var y,l,m;g.A(function(a){if(a.N==1)return y={context:g.Yu(),settingItemId:Z,newValue:F},l=g.SA(RK8),g.x(a,g.jA(n,y,l),2);m=a.X;if(!m||m.errorMetadata)return zji("SetSettingRequest",m),a.return(void 0);g.zA(a)})}; g.ry=function(n){return h6(n).toUpperCase()==="WEB"}; TFK=function(n){$6(n,"od",gIU);$6(n,"opac",GV).N=!0;$6(n,"sbeos",GV).N=!0;$6(n,"prf",GV).N=!0;$6(n,"mwt",GV).N=!0;$6(n,"iogeo",GV)}; ZJ=function(n){try{return vx(n)}catch(Z){return null}}; CIT=function(n,Z){if(!Z.Pc||!n.W.hw()){var F=Z.U9||1E4,y=ilP(Z);n.N?Z.videoId&&Z.videoId!==n.videoId&&(g.fD(n.N),n.videoId=Z.videoId,y?(fFn(n,F,Z),n.KJ()):(n.jG(),n.N.dispose(),n.N=null)):y&&(Z.videoId&&(n.videoId=Z.videoId),fFn(n,F,Z),n.KJ())}}; g.R0=function(n){var Z,F=Z=0,y=!1;n=n.split(uqQ);for(var l=0;l.4?-1:1;return(Z==0?null:Z)==-1?"rtl":"ltr"}; GQ=function(n){if(!n.userDisplayImage)return"";var Z=n.userDisplayImage.split("/");if(Z.length===5)return n=Z[Z.length-1].split("="),n[1]="s20-c",Z[Z.length-1]=n.join("="),Z.join("/");if(Z.length===8)return Z.splice(7,0,"s20-c"),Z.join("/");if(Z.length===9)return Z[7]+="-s20-c",Z.join("/");g.yi(new g.FV("Profile image not a FIFE URL.",n.userDisplayImage));return n.userDisplayImage}; kIQ=function(n,Z){if(Z=Z.find(function(F){return!(!F||!F.tooltipRenderer)}))n.tooltipRenderer=Z.tooltipRenderer}; XK=function(n,Z,F){F=F===void 0?[]:F;this.maxItems=n;this.N=Z===void 0?0:Z;this.X=F}; HW=function(n){return!(!n.isLivePlayback||!n.hasProgressBarBoundaries())}; eKj=function(n,Z){QBK(n.N,Z,function(){return{Gj4:0,e6:void 0,C$:-1,UE:-1,Ly:-1,u9:-1,z8:-1,jH:-1,OE:-1,Sd:-1,cn:-1,position:void 0,Xs:void 0,JA:[]}}); n.N[Z]=BVo(n)}; qkK=function(n){var Z,F,y,l,m,a,D,p,L,q;return g.A(function(w){return w.N==1?(y=(Z=n)==null?void 0:(F=Z.responseContext)==null?void 0:F.globalConfigGroup,l=g.e(y,Hlf),a=(m=y)==null?void 0:m.hotHashData,D=g.e(y,dti),L=(p=y)==null?void 0:p.coldHashData,(q=xL().resolve(new F0(Dj)))?a?l?g.x(w,BMT(q,a,l),2):g.x(w,BMT(q,a),2):w.ST(2):w.return()):L?D?g.x(w,BZp(q,L,D),0):g.x(w,BZp(q,L),0):w.ST(0)})}; AK=function(n,Z){var F=n.search(gu),y=Ax(n,0,Z,F);if(y<0)return null;var l=n.indexOf("&",y);if(l<0||l>F)l=F;y+=Z.length+1;return KP(n.slice(y,l!==-1?l:0))}; Mnp=function(n,Z,F){if(n.Pr.length)for(var y=g.Y(n.Pr),l=y.next(),m={};!l.done;m={Hd:void 0},l=y.next()){m.Hd=l.value;l=m.Hd.startSecs*1E3;var a=m.Hd.iy*1E3+l;if(Z>l&&Zl&&F0&&n[n.length-1]!=null&&n[n.length-1].url!=null?g.g1(n[n.length-1].url)||"":"";this.N=new Bk(0,0,0,0);this.V=new g.Kz(0,0);this.S=new g.Kz(0,0);this.J=new Bk(0,0,0,0);this.frameOffset=new g.e_(0,0);this.C=0;this.L=!1;this.X=!(!G5||!Fe7(G5).w6);this.update(G5)}; ZqY=function(n,Z){n.kU.push(Z);for(var F=!1,y=g.Y(n.listeners),l=y.next();!l.done;l=y.next())F=l.value.UN(Z)||F;n.V=F;SR(n.U8.get())&&QA(n.uY.get(),"onci","cpi."+Z.identifier+";cpe."+Z.event+";cps."+Z.startSecs+";cbi."+F)}; F8o=function(n){if(!n)return"";if(/^about:(?:blank|srcdoc)$/.test(n))return window.origin||"";n.indexOf("blob:")===0&&(n=n.substring(5));n=n.split("#")[0].split("?")[0];n=n.toLowerCase();n.indexOf("//")==0&&(n=window.location.protocol+n);/^[\w\-]*:\/\//.test(n)||(n=window.location.href);var Z=n.substring(n.indexOf("://")+3),F=Z.indexOf("/");F!=-1&&(Z=Z.substring(0,F));F=n.substring(0,n.indexOf("://"));if(!F)throw Error("URI is missing protocol: "+n);if(F!=="http"&&F!=="https"&&F!=="chrome-extension"&& F!=="moz-extension"&&F!=="file"&&F!=="android-app"&&F!=="chrome-search"&&F!=="chrome-untrusted"&&F!=="chrome"&&F!=="app"&&F!=="devtools")throw Error("Invalid URI scheme in origin: "+F);n="";var y=Z.indexOf(":");if(y!=-1){var l=Z.substring(y+1);Z=Z.substring(0,y);if(F==="http"&&l!=="80"||F==="https"&&l!=="443")n=":"+l}return F+"://"+Z+n}; yeP=function(n,Z){var F="";Z=Z.oR();Z.totalLength<=n.policy.QA&&(n=Ge(Z),n=m9(n),F=Lf(n)?n:"");return F}; xun=function(n){var Z=n.W.getVideoData(),F=n.J&&!Z.isInlinePlaybackNoAd;n.W.j("html5_defer_modules_on_ads_only")&&!Z.isAd()&&(F=!1);return F}; var ekQ=function(n,Z){return l5[K[11]](this,26,n,Z)}; loe=function(n,Z){Z=Z===void 0?NaN:Z;if(isNaN(Z))var F=n.size;else for(F=n.N;Fn.Ns);g.w4(n.XH,"ytp-scrubber-button-hover",F===y&&n.N.length>1);if(n.api.j("web_player_heat_map_played_bar")){var m;(m=n.V[0])!=null&&m.N.setAttribute("width",(Z.X*100).toFixed(2)+"%")}}}; QHp=function(n){var Z;n=g.e((Z=n.fulfillmentContent)==null?void 0:Z.fulfilledLayout,Ia);var F;return n&&((F=n.adLayoutMetadata)==null?void 0:F.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&n.layoutExitNormalTriggers===void 0}; Ave=function(n){return new VR(Object.assign({},n,{Z6:function(Z){n.M1.get().wj("onAdIntroStateChange",Z)}}))}; aoo=function(n){var Z={},F=[],y=[];if(!n.data)return Z;for(var l=0;lF||(y.push(Math.max(Z,n.start(m))-Z),l.push(Math.min(F,n.end(m))-Z));return n6(y,l)}; S93=function(n,Z){n.X[Z]||(n.X[Z]=new Op);return n.X[Z]}; Hvi=function(n,Z){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=Z;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=n(this.triggerType)}; g.BQ=function(n,Z){return n.Y.experiments.OS().N.Wx(jZe)?n.qd.zo(Z)||n.qd.N:n.zo(Z)}; N3f=function(n){n.N.queryid||(n.N.queryid=new U1n)}; zvU=function(n,Z){this.X=(new TextEncoder).encode(n);this.N=(new TextEncoder).encode(Z)}; FG=function(n,Z){Z=Z===void 0?!0:Z;n.Y.ZZ&&!n.videoData.backgroundable&&n.mediaElement&&!n.rJ()&&(n.isBackground()&&n.mediaElement.VV()?(n.Xp("bgmobile",{suspend:1}),n.yX(!0,!0)):!n.isBackground()&&Z&&zV(n)&&n.Xp("bgmobile",{resume:1}))}; gaU=function(n){switch(n){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}; aF3=function(n,Z,F,y){y=y===void 0?{}:y;n.addEventListener&&(Z!="mouseenter"||"onmouseenter"in document?Z!="mouseleave"||"onmouseenter"in document?Z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Z="MozMousePixelScroll"):Z="mouseout":Z="mouseover");return Qb($3,function(l){var m=typeof l[4]==="boolean"&&l[4]==!!y,a=g.VO(l[4])&&g.VO(y)&&g.hu8(l[4],y);return!!l.length&&l[0]==n&&l[1]==Z&&l[2]==F&&(m||a)})}; Ej=function(n){n=n||"";var Z=EBf();if(Z[n])return Z[n];var F=Oq7(),y={timerName:n,info:{},tick:{},span:{},jspbInfo:[]};F.push(y);return Z[n]=y}; ce3=function(n,Z,F){n1.call(this,"survey",n,{},Z,F)}; hd=function(n){return g.Di("ytcsi."+(n||"")+"data_")||eTp(n)}; q2f=function(n){return new Promise(function(Z){var F=g.FI("SCRIPT");if(n){var y=Mc(n,6);y=y===null||y===void 0?null:Ggj(y)}else y=null;F.textContent=hi(y);mq(F);(g.W5("HEAD")[0]||document.documentElement).appendChild(F);g.OG(F);Z()})}; VXU=function(n,Z){if(Z.info.video){if(n.T!==Z)return n.T=Z,bFe(n)}else n.fR=n.J!==Z,n.J=Z;return null}; to=function(n,Z){if(Z.CR()||n.CR())n.policy.jk||(n.policy.S?mx(n.loader):n.loader.YA());else{if(n.policy.T&&Z.isComplete()&&Z instanceof Dt){var F=n.loader,y=F.Xp,l,m,a=Object.assign(Z.BV.W9(),{rst:Z.state,strm:Z.xhr.Ks(),d:(l=Z.BV.zx)==null?void 0:l.Go(),cncl:Z.xhr&&Z.US.S?1:0,rqb:Z.AP,cwt:Z.US.T,swt:(m=Z.Qh)==null?void 0:m.QC});l=Object.assign(aoo(Z.info),a);y.call(F,"rqs",l)}if(Z.isComplete()&&Z.Ie()&&Z instanceof Dt)n.policy.ud?Z.WR()?(Z.dispose(),n.N.length===0?n.loader.YA():(n=n.N[0],n instanceof Dt&&n.v9()&&n.Zt())):Z.xM()&&n.loader.handleError(Z.RZ(),Z.TQ()):(Z.dispose(),n.loader.YA());else{if(Z.St())Z instanceof Dt&&lhK(n.timing,Z),hLT(n),vBU(n);else if(Z.xM())if(F=n.mQ.Fw(),Z instanceof Dt&&Io3(Z.info)&&F&&n.loader.HM(F),Z instanceof Dt&&foP(Z)){var D;(D=n.loader.Y0)==null||JH(D)}else Z instanceof LL?n.N.pop():(D=1,Z.canRetry()&&h5(n.loader)&&(Nqf(n,Z),D=0),n.loader.handleError(Z.RZ(),Z.TQ(),D));else{if(n.loader.isSuspended&&!Z.isComplete())return;vBU(n)}Z.CR()||Z instanceof LL||(Z.isComplete()? D=lt3(Z,n.policy,n.V):(D=QZp(Z,n.policy,n.V),D===1&&(n.d5=!0)),D!==0&&(F=new HH(1,Z.info.Er),F.hF=D===2,Pg7(n,F)));n.policy.N1&&!Z.isComplete()?AeQ(n.loader):n.loader.YA()}}}; g.D1Q=function(n,Z){if(n.N!=null&&g.W8K(Z,n.N)&&n.N.N.rawcc!=null)return!0;if(!n.t2())return!1;Z=!!n.N&&n.N.isManifestless&&Object.values(n.N.N).some(function(F){return g.UU(F,"386")}); n=!!n.N&&!n.N.isManifestless&&g.reY(n.N);return Z||n}; x1o=function(n){return new g.e_(n.offsetLeft,n.offsetTop)}; RuQ=function(n){var Z,F,y,l,m;return(m=g.e((l=g.e((Z=n.getWatchNextResponse())==null?void 0:(F=Z.playerOverlays)==null?void 0:(y=F.playerOverlayRenderer)==null?void 0:y.decoratedPlayerBarRenderer,N7))==null?void 0:l.playerBar,GB3))==null?void 0:m.chapters}; OgU=function(n,Z){if(Z=Z.raw_reel_item_watch_response)n.reelItemWatchResponse=Z}; g.R=function(n){g.S_.call(this,n);this.XJ=!0;this.Pr=!1;this.listeners=[]}; Tx=function(n){g.w4(n.badge.element,"ytp-suggested-action-badge-with-controls",n.w5||!n.J)}; kD=function(n,Z,F){if(n==null)throw new TypeError("The 'this' value for String.prototype."+F+" must not be null or undefined");if(Z instanceof RegExp)throw new TypeError("First argument to String.prototype."+F+" must not be a regular expression");return n+""}; Tf=function(n,Z,F,y){g.Xu.call(this);this.callback=n;this.T=y;this.N=[];this.X=new Ehj(n,Z,F)}; bu=function(n){return!n.oldState.isPlaying()&&n.state.isPlaying()}; ew=function(n){return n.WK&&n.getVideoData().mutedAutoplay}; DGY=function(n,Z){try{return Hr(n[Z]),!0}catch(F){}return!1}; r57=function(n){var Z={};n=g.Y(n);for(var F=n.next();!F.done;F=n.next()){F=F.value;var y=F.split("=");y.length===2?Z[y[0]]=y[1]:Z[F]=!0}return Z}; cM=function(n){n=hd(n);n.metadata||(n.metadata={});return n.metadata}; Ic=function(n,Z){return new MN(n,n+Z-1)}; y$e=function(n,Z){return KXT(n,function(F){return F.N},Z===void 0?!0:Z)}; v$=function(n){this.N=(n=g.eX(n))?new du(n):null;this.X=document.domain||window.location.hostname}; qc=function(n){if(n!=null&&typeof n!=="string")throw Error();return n}; v6=function(n,Z){Zh||kt in n||uSQ(n,baY);n[kt]=Z}; gBK=function(n){var Z=g.QS(n,"Content-Type");if(!Z)return null;Z=Z.toLowerCase();return Z.startsWith("application/json")?Z.startsWith("application/json+protobuf")?new pc:new Np:Z.startsWith("application/x-protobuf")?(n=g.QS(n,"Content-Transfer-Encoding"))?n.toLowerCase()=="base64"?new Br:null:new Xi:null}; T2=function(n){this.value=n}; iqQ=function(n,Z){n.api.j("html5_enable_d6de4_cold_start_and_error")&&(Z.eP={coldStartInfo:{clientState:n.T}})}; MS=function(n){n.X.startTime=n.T;n.X.endTime=n.N;var Z=!1;n.segments.length&&g.lj(n.segments).isEmpty()?(n.segments[n.segments.length-1].previouslyEnded&&(n.X.previouslyEnded=!0),n.segments[n.segments.length-1]=n.X,Z=!0):n.segments.length&&n.X.isEmpty()||(n.segments.push(n.X),Z=!0);Z?n.X.endTime===0&&(n.previouslyEnded=!1):n.X.previouslyEnded&&(n.previouslyEnded=!0);n.S+=n.N-n.T;n.X=xl(n.provider);n.X.previouslyEnded=n.previouslyEnded;n.provider.Y.OS().N.Wx(FIi)&&JSON.stringify(n.X);n.previouslyEnded= !1;n.T=n.N}; GO3=function(n,Z,F,y,l){var m=new Sp(n.N,F),a=[new nz(n.N,Z)];n=[new lB(n.N,Z),new ZX(n.N,y)];return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:a,slotExpirationTriggers:n,Gx:"core",clientMetadata:new lb([new mW(l({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:m,slotFulfillmentTriggers:a,slotExpirationTriggers:n},F))]),adSlotLoggingData:void 0}}; g.CZp=function(n){return n.captionsLanguagePreference||n.iY.captionsLanguagePreference||g.$8(n,"yt:cc_default_lang")||n.iY.cV}; uyn=function(n){if(!n.adAvatar||!g.e(n.adAvatar,ne))return g.ZW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!n.headline)return g.ZW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!n.adBadge||!g.e(n.adBadge,ZO))return g.ZW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!n.adButton||!g.e(n.adButton,F_))return g.ZW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!n.adInfoRenderer|| !g.e(n.adInfoRenderer,uH))return g.ZW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;n=n.durationMilliseconds||0;return typeof n!=="number"||n<=0?(g.ZW(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+n)),!1):!0}; XY=function(){return g.tv("smart-tv")&&g.tv("samsung")}; bqo=function(n){return g.R6(n.W.B())?n.Iz:n.Dd}; lG=function(n,Z){n.message&&g.yi(Error(Z+"_"+n.message))}; cU3=function(n,Z,F){return n.policy.N?Lh(n,!0)Z&&n.S0&&(Z.fexp=n.experimentIds.toString());n.J!==null&&(Z.rtn=n.X(n.J));n.wb&&(Z.feature=n.wb);n.DI&&(Z.ctrl=n.DI);n.a6&&(Z.ytr=n.a6);n.Yi&&(Z.afmt=n.Yi);n.offlineDownloadUserChoice&&(Z.ODUC=n.offlineDownloadUserChoice);n.Ns&&(Z.lio=n.X(n.Ns)); n.S?(Z.idpj=n.R0,Z.ldpj=n.KF,n.delayThresholdMet&&(Z.dtm="1"),n.Pr!=null&&(Z.rti=n.X(n.Pr)),n.jI&&(Z.ald=n.jI),n.compositeLiveIngestionOffsetToken&&(Z.clio=n.compositeLiveIngestionOffsetToken)):n.adType!==void 0&&(Z.at=n.adType);n.PV&&(n.T||n.S)&&(Z.size=n.PV);n.T&&n.C.length&&(Z.pbstyle=n.C.join(","));n.h2!=null&&(n.T||n.S)&&(Z.inview=n.X(n.h2));n.S&&(Z.volume=Kc(n,g.Yn(n.segments,function(y){return y.volume})),Z.st=Kc(n,g.Yn(n.segments,function(y){return y.startTime})),Z.et=Kc(n,g.Yn(n.segments, function(y){return y.endTime})),IF(n.segments,function(y){return y.playbackRate!==1})&&(Z.rate=Kc(n,g.Yn(n.segments,function(y){return y.playbackRate}))),IF(n.segments,function(y){return y.N!=="-"})&&(Z.als=g.Yn(n.segments,function(y){return y.N}).join(",")),IF(n.segments,function(y){return y.previouslyEnded})&&(Z.pe=g.Yn(n.segments,function(y){return""+ +y.previouslyEnded}).join(","))); Z.muted=Kc(n,g.Yn(n.segments,function(y){return y.muted?1:0})); IF(n.segments,function(y){return y.visibilityState!==0})&&(Z.vis=Kc(n,g.Yn(n.segments,function(y){return y.visibilityState}))); IF(n.segments,function(y){return y.connectionType!==0})&&(Z.conn=Kc(n,g.Yn(n.segments,function(y){return y.connectionType}))); IF(n.segments,function(y){return y.X!==0})&&(Z.blo=Kc(n,g.Yn(n.segments,function(y){return y.X}))); IF(n.segments,function(y){return!!y.V})&&(Z.blo=g.Yn(n.segments,function(y){return y.V}).join(",")); IF(n.segments,function(y){return!!y.compositeLiveStatusToken})&&(Z.cbs=g.Yn(n.segments,function(y){return y.compositeLiveStatusToken}).join(",")); IF(n.segments,function(y){return!!y.heartbeatLoggingToken})&&(Z.hb_data=g.Yn(n.segments,function(y){return y.heartbeatLoggingToken}).join(",")); IF(n.segments,function(y){return y.T!=="-"})&&(Z.cc=g.Yn(n.segments,function(y){return y.T}).join(",")); IF(n.segments,function(y){return y.clipId!=="-"})&&(Z.clipid=g.Yn(n.segments,function(y){return y.clipId}).join(",")); if(IF(n.segments,function(y){return!!y.audioId})){var F="au"; n.T&&(F="au_d");Z[F]=g.Yn(n.segments,function(y){return y.audioId}).join(",")}jU()&&n.Tx&&(Z.ctt=n.Tx,Z.cttype=n.mJ,Z.mdx_environment=n.mdxEnvironment); n.VG&&(Z.etype=n.w5!==void 0?n.w5:0);n.hG&&(Z.uoo=n.hG);n.livingRoomAppMode&&n.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(Z.clram=mB3[n.livingRoomAppMode]||n.livingRoomAppMode);n.V?d1U(n,Z):(Z.docid=n.videoId,Z.referrer=n.referrer,Z.ei=n.eventId,Z.of=n.n9,Z.osid=n.osid,Z.vm=n.videoMetadata,n.adQueryId&&(Z.aqi=n.adQueryId),n.autonav&&(Z.autonav="1"),n.playlistId&&(Z.list=n.playlistId),n.B_&&(Z.ssrt="1"),n.M0&&(Z.upt=n.M0));n.T&&(n.embedsRct&&(Z.rct=n.embedsRct),n.embedsRctn&&(Z.rctn= n.embedsRctn),n.compositeLiveIngestionOffsetToken&&(Z.clio=n.compositeLiveIngestionOffsetToken));n.aY&&(Z.host_cpn=n.aY);return Z}; Kl=function(n){var Z=n.api.B().j("enable_linear_program_progress"),F=n.api.getPresentingPlayerType()===2;return n.GL&&!ag(n)&&(!Z||!n.X)&&!F}; KdU=function(n,Z){var F=n.mediaElement,y=Z.type;switch(y){case "seeking":var l=F.getCurrentTime()+n.timestampOffset;if(!n.V||n.Tx&&l!==n.X){n.V=new dZ;n.V.then(function(a){ik(n,a)},function(){Cf(n)}); if(n.videoData.isAd()){var m;HFT({adCpn:n.videoData.clientPlaybackNonce,contentCpn:(m=n.videoData.SR)!=null?m:""},Z.N)}n.r5=l;dNp(n.Ns,F.getCurrentTime());n.seekTo(l,{seekSource:104,eO:"seektimeline_mediaElementEvent"});n.Tx=!0}break;case "seeked":avT(n);break;case "loadedmetadata":P6(n.mQ)||ar7(n);Pp(n);break;case "progress":Pp(n);break;case "pause":n.J=n.getCurrentTime()}n.J&&((y==="play"||y==="playing"||y==="timeupdate"||y==="progress")&&n.getCurrentTime()-n.J>10&&(n.j("html5_sky_skip_pause_jump")? n.mQ.Xp("skipPauseJump",{evt:y,cmt:n.getCurrentTime(),lpt:n.J}):n.seekTo(n.J,{eO:"pauseJump"})),y!=="pause"&&y!=="play"&&y!=="playing"&&y!=="progress"&&(n.J=0))}; YI=function(n){return n.T?!1:!n.keySystemAccess&&!!PX()&&n.keySystem==="com.microsoft.playready"}; DBn=function(n){var Z=n.aY||n.fR;return Z?n.snapshot.delay+Math.min(n.IH,(n.L-n.Pr)/1E3)+Z:n.kV}; fi=function(n){for(var Z=g.Y(n.T.entries()),F=Z.next();!F.done;F=Z.next()){var y=g.Y(F.value);F=y.next().value;y=y.next().value;y<(0,g.tP)()&&n.T.delete(F)}return n.T}; g.aM=function(n,Z,F){return n!==null&&Z in n?n[Z]:F}; BK=function(){this.N={};if(this.X=wSo()){var n=g.qs("CONSISTENCY");n&&iDY(this,{encryptedTokenJarContents:n})}}; Ld7=function(n){var Z=[],F=[].concat(g.t(n.FD));n.XI.forEach(function(a){Z.push(Object.assign({},a))}); for(var y=n.N,l=g.Y(n.J.wC()),m=l.next();!m.done;m=l.next())y=p_K(n,Z,F,m.value,y);Z.forEach(function(a){a.startTimeMs&&(a.startTimeMs+=n.timestampOffset*1E3)}); return{XI:Z,FD:F}}; nB=function(n,Z){var F=n.V;n=OUp(n);Z=Z===void 0?!1:Z;F.N&&(n?F.N.hide():F.N.show(),Z&&F.N instanceof M6&&!F.N.V&&qCK(F.N,!1));F.X&&(n?F.X.show():F.X.hide())}; Dc=function(n){var Z=[{cpn:n.T.Uf()}];n.X&&Z.push({cpn:n.X.Uf()});n.api.publish("playbackChange",{c75:Z})}; g.Y=function(n){var Z=typeof Symbol!="undefined"&&Symbol.iterator&&n[Symbol.iterator];if(Z)return Z.call(n);if(typeof n.length=="number")return{next:$Di(n)};throw Error(String(n)+" is not an iterable or ArrayLike");}; w_j=function(){var n;if(g.N5("csi_use_performance_navigation_timing")){var Z,F,y,l=u_==null?void 0:(n=u_.getEntriesByType)==null?void 0:(Z=n.call(u_,"navigation"))==null?void 0:(F=Z[0])==null?void 0:(y=F.toJSON)==null?void 0:y.call(F);l?(l.requestStart=m8(l.requestStart),l.responseEnd=m8(l.responseEnd),l.redirectStart=m8(l.redirectStart),l.redirectEnd=m8(l.redirectEnd),l.domainLookupEnd=m8(l.domainLookupEnd),l.connectStart=m8(l.connectStart),l.connectEnd=m8(l.connectEnd),l.responseStart=m8(l.responseStart), l.secureConnectionStart=m8(l.secureConnectionStart),l.domainLookupStart=m8(l.domainLookupStart),l.isPerformanceNavigationTiming=!0,n=l):n=u_.timing}else n=g.N5("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(u_.timing)):u_.timing;return n}; rK=function(n){g.I.call(this);this.C=[];this.mJ=n||this}; Tv7=function(n){DD=n}; o$o=function(n){if(document.body&&document.documentElement){var Z=document.body.scrollTop+document.documentElement.scrollTop;n.N=n.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);n.X=n.clientY+Z}}; qC=function(n,Z,F){var y=g.BQ(n,{playerType:F});y&&(Z=y.V9(Z),F&&n.getPresentingPlayerType()!==F||gC(n,"cuerangesremoved",Z))}; J7n=function(n){var Z=n.api.LF();if(Z){var F=90*n.scale,y=D5(Z,160*n.scale);if(Z=Z.levels[y]){n.C=Z.width;if(!n.V.length){y=[];for(var l=pk(Z,Z.ww()),m=Z.columns*Z.rows,a=Z.frameCount,D=0;D<=l;D++)for(var p=an.V.length;)y= void 0,(y=n.thumbnails.pop())==null||y.dispose();for(;n.thumbnails.lengthF.length;)y=void 0,(y=n.X.pop())==null||y.dispose(); for(;n.X.length1&&n.Xp("trBug",{af:""+g.TL(n.audioTrack.bY.info,!1),vf:""+g.TL(n.videoTrack.bY.info,!1),a:""+Z,v:""+F}))}; aN=function(){}; aIT=function(n,Z,F){F=F===void 0?!0:F;n.T=n.V.animate([{offset:0,opacity:Z===void 0?1:Z},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});F&&(n.T.addEventListener("finish",function(){n.T=void 0;qRK(n);n.hide()}),n.N="fading-out")}; Vw=function(n){n=b7n(n);wi.call(this,n.length?n[n.length-1]:new R_(G5,0));this.T=n;this.X=null}; krT=function(n,Z){n=n.flags.get(""+Z);return Number(n)||0}; ZX=function(n,Z,F){this.N=Z;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=F||n(this.triggerType)}; YC8=function(n,Z){n.T||(Z=new g.gZ(Z.state,new g.iE),n.T=!0);return Z}; S$p=function(n){var Z;if(n=(Z=n.mediaElement)==null?void 0:Z.audioTracks())for(Z=0;Z0))}n.eG()&&OPU();Error.stackTraceLimit=50;var l=g.jf(Z,"html5_idle_rate_limit_ms");l&&Object.defineProperty(window,"requestIdleCallback",{value:function(m){return window.setTimeout(m,l)}}); o7p(n.S);CRP(F("html5_use_ump_request_slicer"));v7o(F("html5_record_now"));F("html5_disable_streaming_xhr")&&(gT=!1);F("html5_byterate_constraints")&&(y3=!0);F("html5_use_non_active_broadcast_for_post_live")&&(Fb3=!0);F("html5_enable_encrypted_av1")&&(KD=!0);c7K(g.jf(n.experiments,"html5_sticky_duration_mos"))}; Q_=function(){G9.apply(this,arguments)}; v$p=function(n){n.mediaElement&&n.mediaElement.rJ()&&(n.NP=(0,g.tP)());n.Y.Fc?g.A3(function(){VUY(n)},0):VUY(n)}; Cs=function(n){return n.toString()}; Ke=function(n,Z,F,y){CW.call(this,n,{U:"div",K:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",Z,F,y);this.N=[]}; XQ7=function(n,Z){if(Z=Z&&Z.buttonRenderer||null)Z.serviceEndpoint?(n.X=new sR(n.api,n.layoutId,n.interactionLoggingClientData,n.Hr,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.S(n,n.X),n.X.init(Tb("ad-feedback-undo-mute-button"),Z,n.macros),n.X.listen("click",n.vyu,n),n.X.oY(n.zx)):g.yi(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; g.Gj=function(n){return n.match(Ir3)}; frf=function(n,Z){n.L&&(clearTimeout(n.L),n.L=null);n.V=0;n.T&&n.X!==0&&(Z?ci(n,Z):Math.abs(n.N)>=.15&&n.yE("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),n.N=0,Os(n),g.hw(n.api.getRootNode(),"ytp-grid-scrolling"))}; O3=function(n){return n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; NkY=function(n){var Z,F={},y=n.mQ,l=n.iY,m=n.zN,a=y.getVideoData(),D=Bf(0),p=y.getVisibilityState();l.j("html5_enable_audio_quality_setting")&&(F.Kk=l.Kk);D&&(F.QYu=D,F.lastManualDirection=A77(),D=O0P()||0,D>0&&(D=(l.j("html5_use_date_now_for_local_storage")?Date.now():(0,g.tP)())-D,l.j("html5_use_date_now_for_local_storage")?D>0&&(F.timeSinceLastManualFormatSelectionMs=D):F.timeSinceLastManualFormatSelectionMs=D));D=l.j("html5_use_streamer_bandwidth_for_low_latency_live")&&a.isLowLatencyLiveStream; if(m.Ns&&!D){var L;D=l.j("html5_disable_bandwidth_cofactors_for_sabr_live")?!((L=n.Ae)==null||!L.WH):!1;F.kF=TR(m,!D)}D=g.FF.medium;var q=Math.floor(D*16/9);(L=a.pP())||(a.N&&a.T&&a.T.videoInfos.length!==0?(L=a.T.videoInfos[0],L=!!L.video&&L.video.width0?{authorizedFormats:n.authorizedFormats}:{authorizedFormats:Z};n.sabrLicenseConstraint&&(F.nu.sabrLicenseConstraint=n.sabrLicenseConstraint);if(l.j("html5_onesie_media_capabilities")||BJ(a))F.kI=3;l.j("html5_onesie_audio_only_playback")&& Z3(a)&&(F.kI=1);var V;((V=n.Ae)==null?0:V.KF)&&n.ZRY&&(F.kI=F.kI===void 0?7:F.kI|4);V=a.xi?a.xi:g.zw(a);l.j("html5_onesie_media_capabilities")&&(F.mediaCapabilities=g.WdP(a,V,l));var f;if((f=n.Ae)==null?0:xm(f)){T=l.S;f=[];Z=[];P=new Map;J=Array.from(T.N.values());J=g.Y(J);for(U=J.next();!U.done;U=J.next())h=U.value,h.BE?Z.push({audioCodec:r7p[h.vr],numChannels:h.numChannels,spatialCapabilityBitmask:xBp[h.vr]}):(v=Gkn[h.vr],U={videoCodec:v,maxWidth:h.maxWidth||0,maxHeight:h.maxHeight||0,maxFramerate:h.maxFramerate|| 0,is10BitSupported:h.fH||!1},h.maxBitrateBps&&(U.maxBitrateBps=h.maxBitrateBps,p=t8(h.itag),L=void 0,((L=p)==null?0:L.video)&&Mr(V,p,T)===!0&&(p=p.Qg*8,p>U.maxBitrateBps&&(U.maxBitrateBps=p))),h=v+"_"+h.fH,v=P.get(h)||[],v.push(U),P.set(h,v));f=uj7(f,P);T={};l.j("html5_ssff_denylist_opus_low")&&(T={itagDenylist:[249,350]});F.mediaCapabilities={videoFormatCapabilities:f,audioFormatCapabilities:Z,hdrModeBitmask:3,perPlaybackAttributes:T}}var W;if((W=n.Ae)==null?0:W.N){F.Ut=V.Ut;var X;F.Tc=(X=n.Ae)== null?void 0:X.Tc}l.ZD&&(F.j2=l.ZD);F.v0=n.uQ;F.Xi=n.Xi;F.Tr=n.Tr;F.vt=n.vt;n.T8&&(F.mgp=(0,g.tP)()-n.T8);n.e0&&l.j("html5_report_prefetch_requests")&&(F.e0=n.e0);gT||(F.KJY=!0);W=oW(m)*1E3;W>0&&(F.xF=W);var u;((u=n.Ae)==null?0:u.rh)&&n.Lw&&n.Lw0?Fp:m.interruptions[0]||0;var nQ;if((nQ=n.Ae)==null?0:nQ.kV)F.O3=n.O3;l.xi&&(F.audioTrackId=l.xi);vD(a)&&!F.audioTrackId&&(l.j("html5_fill_default_mosaic_audio_track_id")||(n=Rhj(a),F.audioTrackId=n),a==null||a.Xp("misstrkchg",{"default":F.audioTrackId}));if(a=K9K())F.detailedNetworkType=g$Y[a]||g$Y.other;l.j("html5_enable_voice_boost")&&(F.HPx=l.Jy);return F}; g.DO=function(n){g.R.call(this,{U:"div",K:"ytp-more-videos-view",Z:{tabIndex:"-1"}});var Z=this;this.api=n;this.X=!0;this.T=new g.IS(this);this.N=[];this.suggestionData=[];this.columns=this.containerWidth=this.J=this.V=this.scrollPosition=0;this.title=new g.R({U:"h2",K:"ytp-related-title",E8:"{{title}}"});this.previous=new g.R({U:"button",s8:["ytp-button","ytp-previous"],Z:{"aria-label":"Show previous suggested videos"},D:[g.F$()]});this.C=new g.As(function(F){Z.suggestions.element.scrollLeft=-F}); this.next=new g.R({U:"button",s8:["ytp-button","ytp-next"],Z:{"aria-label":"Show more suggested videos"},D:[g.lS()]});g.S(this,this.T);this.S=n.B().V;g.S(this,this.title);this.title.oY(this.element);this.suggestions=new g.R({U:"div",K:"ytp-suggestions"});g.S(this,this.suggestions);this.suggestions.oY(this.element);g.S(this,this.previous);this.previous.oY(this.element);this.previous.listen("click",this.I3,this);g.S(this,this.C);Y9Y(this);g.S(this,this.next);this.next.oY(this.element);this.next.listen("click", this.Ez,this);this.T.G(this.api,"appresize",this.Ln);this.T.G(this.api,"fullscreentoggled",this.Aj);this.T.G(this.api,"videodatachange",this.onVideoDataChange);this.Ln(this.api.Br().getPlayerSize());this.onVideoDataChange()}; g.EE=function(){this.N=new Map;this.T=new Map;this.X=new Map}; ihf=function(n,Z){return n.TZ.T?!1:n.XZ.X?!1:typeof n.Ntypeof Z.N?!1:n.N=0)return!0;try{var Z=new g.fW(n)}catch(F){return g.YW(LBo,function(y){return n.search(y)>0})!=null}return Z.C.match(q3T)?!0:g.YW(LBo,function(F){return n.match(F)!=null})!=null}; hx=function(){g.R.call(this,{U:"div",K:"ytp-chapter-hover-container",D:[{U:"div",K:"ytp-progress-bar-padding"},{U:"div",K:"ytp-progress-list",D:[{U:"div",s8:["ytp-play-progress","ytp-swatch-background-color"]},{U:"div",K:"ytp-progress-linear-live-buffer"},{U:"div",K:"ytp-load-progress"},{U:"div",K:"ytp-hover-progress"},{U:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.X=this.Vg("ytp-progress-list");this.S=this.Vg("ytp-progress-linear-live-buffer"); this.V=this.Vg("ytp-ad-progress-list");this.C=this.Vg("ytp-load-progress");this.J=this.Vg("ytp-play-progress");this.T=this.Vg("ytp-hover-progress");this.N=this.Vg("ytp-chapter-hover-container")}; Oj=function(n){var Z=g.S7.apply(1,arguments);if(!H7(n)||Z.some(function(y){return!H7(y)}))throw Error("Only objects may be merged."); Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next())Wm(n,F.value)}; ol8=function(n,Z,F){if(F!==dv)throw Error();this.typeName=n;this.N=Z;if(F!==dv)throw Error();Tjf.set(n,this)}; Se=function(n,Z,F){n=Z?vo(n,F):n.N;return new cL(n)}; PCU=function(n,Z,F,y,l,m){function a(L){return I3(Z,L)} var D=y.Zk.inPlayerSlotId,p={layoutId:y.Zk.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Gx:"core"};F={slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:new Sp(a,n),slotFulfillmentTriggers:[new nz(a,D)],slotExpirationTriggers:[new lB(a,D),new ZX(a,F)]};n=Object.assign({},p,{layoutExitNormalTriggers:[new vQ(a,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Nd:new Map,clientMetadata:new lb([new s5(y.Zk), new K7(y.adPlacementConfig),l]),lN:yP(m,F)(p),adLayoutLoggingData:y.Zk.adLayoutLoggingData});return Object.assign({},F,{clientMetadata:new lb([new mW(n)])})}; Jc3=function(n){return{po:gs(n,1,Hf7)}}; Que=function(n,Z,F){g.ZW(F);n.T&&(F instanceof DOMException&&(Z+=";n."+F.name+";m."+F.message),n.T(Z))}; g.M0=function(){KC.apply(this,arguments)}; Y3f=function(n,Z){if(n.W.isLifaAdPlaying()){var F=n.W.LK(!0,!0);n.vC(Z,F.width*.5*1.1,F.height*.25*1.1,F.width*.5*.9,F.height*.5*.9)}}; vVU=function(n){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=n(this.triggerType)}; S3i=function(n,Z,F,y,l){By.call(this,n,{U:"div",K:"ytp-skip-ad"},"skip-ad",Z,F,y,l);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.T=new Nb(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);g.S(this,this.T);this.T.oY(this.element);this.hide()}; juY=function(n,Z,F){switch(Z){case 35:n.nB(F);break;case 44:n.JH(F);break;case 43:n.sN(F);break;case 53:n.oV(F);break;case 56:n.r0();break;case 57:n.FF(F);break;case 42:n.Ag(F);break;case 45:n.yB(F);break;case 59:n.ew(F);break;case 51:n.g0(F);break;case 49:n.n7(F);break;case 50:n.C7(F);break;case 47:n.aL(F);break;case 58:n.NQ(F);break;case 61:n.pR.BV.v3((0,g.tP)());break;case 66:n.Oi(F);break;case 46:n.OT(F);break;case 67:n.onSnackbarMessage(F)}}; SkQ=function(n){var Z=!!n.Sf;g.wK(n.Zx,Z?"Copy debug info":"Get debug info");FO(n.Zx,!Z);g.wK(n.hm,Z?"Copy embed code":"Get embed code");FO(n.hm,!Z);g.wK(n.getVideoUrl,Z?"Copy video URL":"Get video URL");FO(n.getVideoUrl,!Z);g.wK(n.qp,Z?"Copy video URL at current time":"Get video URL at current time");FO(n.qp,!Z);n.hm.setIcon(Z?U47():null);n.getVideoUrl.setIcon(Z?JG():null);n.qp.setIcon(Z?JG():null)}; Zd=function(n){this.value=n}; D$=function(){wN.apply(this,arguments)}; hmY=function(n){g.I.call(this);this.SO=n;this.N=null;this.X=NjQ;this.SO("ismp_i")}; Q3=function(n,Z,F,y){Dn.call(this,n,Z,F,y,[],"ad-mute-confirm-dialog")}; Y8=function(n,Z,F,y,l,m){this.startSecs=n;this.iy=Z;this.context=F;this.identifier=y;this.event=l;this.N=m}; mR=function(n,Z){n.Tx&&(n.Tx.GH=!0);n.update({seekTime:g.ve(Z)});var F=n.C*n.scale;Z=ZF.Tc)){var U=g.jf(n.B().experiments,"html5_drm_byterate_soft_cap");U>0&&IYP(J)&&J.Qg>U||(T?(a.push(P),d$(P,a,n)):(J=Mr(F,J,l),J===!0?(T=!0,a.push(P),d$(P,a,n)):p[P]=J))}}}q=g.Y(q);for(L=q.next();!L.done;L=q.next())for(L=g.Y(L.value),T=L.next();!T.done;T=L.next())if(T=T.value,(w=fYp(T))&&w.audio&&(n.j("html5_onesie_51_audio")||!b5(w)))if(w=Mr(F,w,l),w===!0){D.push(T);d$(T,D,n);break}else p[T]=w;if(!n.j("html5_enable_audio_quality_setting"))for(n= g.Y(["141","774"]),q=n.next();!q.done;q=n.next())q=q.value,D.includes(q)&&(g.ov(D,q),p[q]="blkhqa");F.N&&Z("orfmts",p);if(y)return l.X&&(l.X=!1,S1=j1=void 0),m?S1={video:a,audio:D}:j1={video:a,audio:D};j1={video:a,audio:D};l.X=!1;return j1}; o9=function(){this.X={};this.N=null}; EXp=function(n,Z){if(n.disable)return new M7;Z=Z?eIQ(Z):[];n={ZI:n.ZI,ql:n.vZ,zM:n.gVp,M_:n.M_,xK:n.xK,tf:n.tf};Z=Z===void 0?[]:Z;return new MO(n,Z)}; g.Uo=function(n){return h6(n)==="WEB_UNPLUGGED"}; AcT=function(n,Z,F,y){var l=[];F=g.Y(F);for(var m=F.next();!m.done;m=F.next()){var a=m.value;if(a.url){m=new g.yD(a.url,!0);if(a.s){var D=m,p=a.sp,L=qv(4,decodeURIComponent(a.s));D[K[5]](p,encodeURIComponent(L))}D=g.Y(Object.keys(y));for(p=D.next();!p.done;p=D.next())p=p.value,m.set(p,y[p]);a=So(a.type,a.quality,a.itag,a.width,a.height);l.push(new NU(a,m))}}return U8(n.S,l,Nn(n,Z),!1)}; hG=function(n,Z,F,y,l,m,a,D,p,L){tW.call(this,n,Z,F,y,l,m,a,p);this.aA=D;this.nR=L}; x4e=function(n,Z,F,y,l,m,a,D,p){function L(){(q&&"readyState"in q?q.readyState:0)===4&&Z&&g.gU(Z)(q)} F=F===void 0?"GET":F;y=y===void 0?"":y;D=D===void 0?!1:D;var q=WBe();if(!q)return null;"onloadend"in q?q.addEventListener("loadend",L,!1):q.onreadystatechange=L;g.N5("debug_forward_web_query_parameters")&&(n=rcU(n));q.open(F,n,!0);m&&(q.responseType=m);a&&(q.withCredentials=!0);F=F==="POST"&&(window.FormData===void 0||!(y instanceof FormData));if(l=z8U(n,l))for(var w in l)q.setRequestHeader(w,l[w]),"content-type"===w.toLowerCase()&&(F=!1);F&&q.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); p&&"onprogress"in q&&(q.onprogress=function(){p(q.responseText)}); if(D&&"setAttributionReporting"in XMLHttpRequest.prototype){n={eventSourceEligible:!0,triggerEligible:!1};try{q.setAttributionReporting(n)}catch(T){Un(T)}}q.send(y);return q}; gP=function(n,Z,F){var y=Math.floor(Z),l=y+"% volume"+(F?" muted":"");F=F?0:Z/100;n.updateValue("valuenow",y);n.updateValue("valuetext",l);y=n.T?78:52;l=!n.api.j("delhi_modern_web_player")&&n.T?18:12;n.Tx.style.left=(y-l)*F+"px";n.volume=Z}; qpf=function(n,Z){if(Z)return Z=n.videoData,Z=GD3(n,isNaN(Z.liveChunkReadahead)?3:Z.liveChunkReadahead,Z),Sx(n,Z);if(n.X.length){if(Math.min.apply(null,n.X)>1)return Sx(n,n.N-1);if(n.policy.L)return Sx(n,n.N+1)}return n.N}; Et=function(n,Z,F,y){(n=n.JD.get(F))&&!n.JX&&(iT?(n.Ch.has(Z)||n.Ch.set(Z,{data:new y9,Aq:0,zn:!1}),KB(n.Ch.get(Z).data,y)):KB(n.uP,y),n.bytesReceived+=y.totalLength,n.Yv=!0)}; Ni=function(n){return!!(n.T&&n.T.videoInfos&&n.T.videoInfos.length)}; Ot=function(){}; Rme=function(n){return navigator.requestMediaKeySystemAccess?g.z$&&!g.N9()?YX("45"):g.yd||g.cF?n.RY("edge_nonprefixed_eme"):g.kr?YX("47"):g.x5&&n.RY("html5_enable_safari_fairplay")?!1:!0:!1}; V3=function(n,Z){if((n=n.N.get(Z))==null)n=void 0;else{n=n.buffer;for(Z=[];n.X!==n.N;)n.X=(n.X+1)%n.data.length,Z.push(n.data[n.X]);n=Z}return n||[]}; XiP=function(n){n=n||"";var Z=EBf();Z[n]&&delete Z[n];var F=Oq7(),y={timerName:n,info:{},tick:{},span:{},jspbInfo:[]};F.push(y);Z[n]=y}; glp=function(n){var Z;(Z=n.W.getVideoData(1))!=null&&Z.L&&(n.X=!1,Z={},n.N&&n.videoId&&(Z.cttAuthInfo={token:n.N,videoId:n.videoId}),qe("video_to_ad",Z))}; iN7=function(n){var Z;n=zj((Z=n.serializedClientExperimentFlags)!=null?Z:"","&");this.flags=new Map(Object.entries(n).map(function(F){var y=g.Y(F);F=y.next().value;y=y.next().value;return typeof y==="string"?[F,y]:[F,y[0]]}))}; F0j=function(n){this.T=n;this.N=-1;this.X=this.V=0}; vF=function(n){g.MV.call(this,n,"ytp-shopping-product-menu");this.vI=new g.ko(this.W);g.S(this,this.vI);this.hide();g.$H(this,this.vI);g.y7(this.W,this.element,4)}; IN=function(){var n=CCj;var Z=Z===void 0?[]:Z;var F=F===void 0?[]:F;Z=ML3.apply(null,[$Ne.apply(null,g.t(Z))].concat(g.t(F)));this.store=VzY(n,void 0,Z)}; g.fe=function(n,Z){return iL7[n]=Z}; uD7=function(n){if(n.W.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Z,F,y;return n.T.XJ?null:(Z=n.N)==null?void 0:(F=Z.bannerData)==null?void 0:(y=F.itemData)==null?void 0:y.vendorName}var l,m,a,D,p,L;return n.T.XJ||n.S.XJ||((l=n.N)==null?0:(m=l.bannerData)==null?0:(a=m.itemData)==null?0:a.affiliateDisclaimer)?null:(D=n.N)==null?void 0:(p=D.bannerData)==null?void 0:(L=p.itemData)==null?void 0:L.vendorName}; bNo=function(n,Z){var F=g.kq(n.provider);if(!n.provider.Y.experiments.RY("html5_refactor_sabr_video_format_selection_logging")||Z.N.id!==n.aY){var y=[Z.N.id,Z.X,n.aY,Z.reason];g.qP(n.provider.Y.OS())&&!n.Wr&&y.push(pl(n,Z));Z.token&&y.push(Z.token);g.bM(n,F,"vfs",y);n.aY=Z.N.id;y=n.provider.mQ.getPlayerSize();if(y.width>0&&y.height>0){y=[Math.round(y.width),Math.round(y.height)];var l=g.Mk();l>1&&y.push(l);g.bM(n,F,"view",y)}n.Wr||(n.provider.Y.eG()&&Jm(n,"rqs2"),n.provider.videoData.N&&v1(n.provider.videoData.N)&& n.N.set("preload",["1"]));n.Wr=!0;n.V=!0}Z.reason==="m"&&++n.oX===100&&xN(n,2);g.bM(n,F,"vps",[n.gV]);n.w5||n.reportStats(F)}; jai=function(n){return g.A(function(Z){if(Z.N==1)return g.RX(Z,2),g.x(Z,n,4);if(Z.N!=2)return g.iX(Z,0);g.d4(Z);g.zA(Z)})}; g.Wg=function(n){return(n=aZ7(n===void 0?0:n))?new Iq({veType:n,youtubeData:void 0,jspbYoutubeData:void 0}):null}; XmQ=function(n){this.AG=UO(n,500)}; zmK=function(n,Z){n.N.has(Z.By())?wU("Trying to register an existing AdErrorInfoSupplier."):n.N.set(Z.By(),Z)}; iV=function(n){var Z={delay:oW(n),stall:n.J.lH()||0,byterate:do3(n),init:n.jT},F=n.V[0];F.stamp=Math.round(n.C/36E5)*36E5;F.net=Math.ceil(n.Wr);F.max=n.interruptions[0]||0;Z.interruptions=n.V;return Z}; t9p=function(n,Z){var F=0;n=n.N.N.get(Z);if(!n)return 0;n=g.Y(n);for(Z=n.next();!Z.done;Z=n.next())Z=Z.value,Z.durationMs!==0&&Z.AD!==Z.I0&&F++;return F}; ys7=function(n){return n.N.cmodel==="CHROMECAST ULTRA/STEAK"||n.N.cmodel==="CHROMECAST/STEAK"}; kDn=function(n){var Z;return(n=n==null?void 0:(Z=n.error)==null?void 0:Z.code)&&n>=400&&n<=599?!1:!0}; AG=function(n,Z){if(n=Ch(Z)[n])return typeof n==="number"?n:n[n.length-1]}; ZrY=function(n){var Z={},F=window.h5vcc;Z.hwConcurrency=navigator.hardwareConcurrency;n.N&&(Z.cpe=n.N.message);n.X&&(Z.cpt=n.X.time,Z.cps=n.X.state);if(F==null?0:F.cVal)Z.cb2s=F.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),Z.cb5s=F.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),Z.cb30s=F.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return Z}; pB=function(n){this.AG=UO(n)}; yLi=function(n,Z){var F=document.body||document;return g.my(F,"click",function(y){var l=VF(y.target,function(m){return m===F||Z(m)},!0); l&&l!==F&&!l.disabled&&(y.currentTarget=l,n.call(l,y))})}; EkQ=function(n,Z){if(n.N.length!==0){var F=new URL(rmj(n));F.searchParams.delete("format");var y=n.mT();y&&F.searchParams.set("auth",y);F.searchParams.set("authuser",n.sessionIndex||"0");for(y=0;y<10&&n.N.length;++y){var l=n.N.slice(0,32),m=n.T.build(l,n.V,n.C,n.w4,n.w5,n.Tx);if(!Z(F.toString(),m)){++n.C;break}n.V=0;n.C=0;n.w5=0;n.Tx=0;n.N=n.N.slice(l.length)}n.X.enabled&&n.X.stop()}}; g.K88=function(n,Z){var F;return Z.B().j("html5_use_hls_native_captions")&&g.x5&&n.t2()&&!((F=n.X)==null||!KU(F))}; emY=function(n){var Z=g.S7.apply(1,arguments).filter(Boolean).join("&");if(!Z)return n;var F=n.match(/[?&]adurl=/);return F?n.slice(0,F.index+1)+Z+"&"+n.slice(F.index+1):n+(n.indexOf("?")<0?"?":"&")+Z}; HNT=function(n,Z){Z||(Z=Math.ceil(Math.log(n+2)/Math.log(2)/7));for(var F=1<<8-Z,y=[];y.length=F.start&&Z<=F.end)return!0;return!1}; g.$i7=function(n){var Z={};n=(n.N&&g.Ya(n)>=2?n.N.getAllResponseHeaders()||"":"").split("\r\n");for(var F=0;F0;--F)Z[F]-=Z[F-1];n.N=Z.map(function(y){return y.toString()}); n.N.unshift("v1");return n.N}; yxp=function(n,Z,F,y,l,m){this.tG=n;this.uY=Z;this.Cn=F;this.U8=y;this.TN=l;this.nR=m}; Or7=function(){var n=n===void 0?window.location.href:n;if(g.N5("kevlar_disable_theme_param"))return null;var Z=cg(n);if(g.N5("enable_dark_theme_only_on_shorts")&&Z!=null&&Z.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var F=g.EG(n).theme;return l5o.get(F)||null}catch(y){}return null}; u$=function(n,Z){n.N[Z.info.id]=Z;n.T.set(KF(Z,n.t2),Z)}; sbK=function(n,Z){n.N||(n.Ms.GN(Z),n.N=!0)}; g.GR=function(n){this.config_=null;n?this.config_=n:TWU()&&(this.config_=g.gL())}; g.ms=function(n){return!!n.N&&TCK(n.N)}; w6=function(n,Z,F){g.I.call(this);this.loader=n;this.policy=Z;this.zN=F;this.X=0;this.N=!1;this.delay=new g.e7(this.T,this.policy.nP,this);g.S(this,this.delay)}; G4=function(n,Z,F){x8(n.S,Z,F===void 0?!1:F);n.Pr=-1;WH(n,n.N)}; q9=function(n){g.I.call(this);this.T=n;this.dJ=!0;this.uN=new Map;this.N=new Map;this.X=new Map}; g.ZU=function(n,Z,F){g.w4(n.element,"ytp-suggestion-set",!!Z.videoId);var y=Z.playlistId;F=Z.Sn(F?F:"mqdefault.jpg");var l=null,m=null;Z instanceof td&&(Z.lengthText?(l=Z.lengthText||null,m=Z.OQ||null):Z.lengthSeconds&&(l=g.ve(Z.lengthSeconds),m=g.ve(Z.lengthSeconds,!0)));var a=!!y;y=a&&kn(y).type==="RD";var D=Z instanceof td?Z.isLivePlayback:null,p=Z instanceof td?Z.isUpcoming:null,L=Z.author,q=Z.shortViewCount,w=Z.publishedTimeText,T=[],P=[];L&&T.push(L);q&&(T.push(q),P.push(q));w&&P.push(w);F= {title:Z.title,author:L,author_and_views:T.join(" \u2022 "),aria_label:Z.ariaLabel||g.xq("Watch $TITLE",{TITLE:Z.title}),duration:l,timestamp:m,url:Z.W7(),is_live:D,is_upcoming:p,is_list:a,is_mix:y,background:F?"background-image: url("+F+")":"",views_and_publish_time:P.join(" \u2022 "),autoplayAlternativeHeader:Z.rS};Z instanceof zP&&(F.playlist_length=Z.playlistLength);n.update(F)}; g.XO=function(n){var Z,F;if(!((Z=n.webPlayerContextConfig)==null?0:(F=Z.embedsHostFlags)==null?0:F.enableLiteUx)||n.Bx||n.C||n.T||n.zx==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";n=g.jf(n.experiments,"embeds_web_lite_mode");return n===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":n>=0&&n=0&&n<32768}; Eg3=function(n){g.l7(n.N,function(Z){Z.N>1E5||++Z.N})}; r7=function(n){this.U8=n;n=Math.random();var Z=this.U8.get();Z=g.jf(Z.W.B().experiments,"html5_debug_data_log_probability");Z=Number.isFinite(Z)&&Z>=0&&Z<=1?Z:0;this.N=n0?{U:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",s8:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}}, {U:"text",s8:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"7.05",y:"15.05"}}]}:{U:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",s8:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}}, {U:"text",s8:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"6.5",y:"15"}}]}]});var F=this;this.W=n;this.N=Z;this.X=new g.e7(function(){F.T?(F.T=!1,F.X.start()):F.element.classList.remove("ytp-jump-spin","backwards")},250); this.T=!1;(Z=Z>0)?this.W.createClientVe(this.element,this,36843):this.W.createClientVe(this.element,this,36844);var y=g.xq(Z?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.N).toString()});this.W.j("player_tooltip_data_title_killswitch")?this.update({title:y,"data-title-no-tooltip":y,"aria-keyshortcuts":Z?"\u2192":"\u2190"}):this.update({"tooltip-title":y,"data-title-no-tooltip":y,"aria-keyshortcuts":Z?"\u2192":"\u2190"});this.V=this.element.querySelector(".ytp-jump-button-text"); this.V.textContent=Math.abs(this.N).toString();this.listen("click",this.onClick,this);XX(n,this.element,this)}; WXp=function(n,Z,F,y,l){var m=UbY(y);m.push(new Iz(y.Tz));m.push(new PWi(y.wX));return QJ8(Z,F,y,new lb(m),l,n.X.get())}; ZC=function(){return{U:"div",K:"ytp-spinner-container",D:[{U:"div",K:"ytp-spinner-rotator",D:[{U:"div",K:"ytp-spinner-left",D:[{U:"div",K:"ytp-spinner-circle"}]},{U:"div",K:"ytp-spinner-right",D:[{U:"div",K:"ytp-spinner-circle"}]}]}]}}; Jx3=function(n){switch(n){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen"; case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile"; case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null; default:return null}}; g.rv=function(n){if(n.data.getUint8(n.dataOffset)){var Z=n.data;n=n.dataOffset+4;Z=Z.getUint32(n)*4294967296+Z.getUint32(n+4)}else Z=n.data.getUint32(n.dataOffset+4);return Z}; Qb8=function(n,Z,F,y,l){this.MQ=Z;this.N=F;this.visible=y;this.layoutId=l;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=n(this.triggerType)}; cAo=function(n){function Z(y){return n.throw(y)} function F(y){return n.next(y)} return new Promise(function(y,l){function m(a){a.done?y(a.value):Promise.resolve(a.value).then(F,Z).then(m,l)} m(n.next())})}; IB=function(n){g.oS.call(this,{U:"button",s8:["ytp-expand-right-bottom-section-button","ytp-button"],Z:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},D:[g.lS()]});this.N=!1;this.listen("click",this.X);n.createClientVe(this.element,this,276954)}; YIi=function(n){var Z=navigator.mediaCapabilities;if(Z==null||!Z.decodingInfo||n.vr==="f")return Promise.resolve();var F={type:n.audio&&n.video?"file":"media-source"};n.video&&(F.video={contentType:n.mimeType,width:n.video.width||640,height:n.video.height||360,bitrate:n.Qg*8||1E6,framerate:n.video.fps||30});n.audio&&(F.audio={contentType:n.mimeType,channels:""+(n.audio.numChannels||2),bitrate:n.Qg*8||128E3,samplerate:n.audio.sampleRate||44100});return Z.decodingInfo(F).then(function(y){n.X=y})}; SIT=function(n){var Z,F;return g.A(function(y){if(y.N==1)return g.x(y,dK(n),2);Z=y.X;F=(0,g.tP)()-2592E6;return g.x(y,g.$5(Z,["LogsRequestsStore"],{mode:"readwrite",Or:!0},function(l){return g.CC(l.objectStore("LogsRequestsStore"),{},function(m){if(m.getValue().timestamp<=F)return m.delete().then(function(){return g.uj(m)})})}),0)})}; g.LO=function(n){try{return n.N?n.N.responseText:""}catch(Z){return""}}; jbU=function(n){switch(n){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:dF(n,"unknown transitionReason")}}; S9=function(n){vk.call(this,n);var Z=this;this.N=!0;var F=new g.IS(n);g.S(this,F);F.G(n,"internalaudioformatchange",function(y,l){Vbp(Z,y,l)}); F.G(n,"annotationvisibility",function(y){Z.api.j("web_fix_annotations")&&Twn(Z,(294).toString(),{boolValue:y})}); F.G(n,"videoplayerreset",function(){Ui8(Z)}); F.G(n,"videodatachange",function(y,l){Z.onVideoDataChange(y,l)})}; Gwo=function(n,Z,F,y){var l=this;y=y===void 0?{}:y;this.policy=Z;this.pR=F;this.C=y;this.status=0;this.response=void 0;this.X=0;this.aborted=this.S=!1;this.errorMessage="";this.L=function(m){if(m)if(l.status=m.status,m.ok&&m.body&&l.status!==204)l.status=l.status||242,l.T=m.body.getReader(),l.CR()?l.T.cancel().catch(function(){}):(l.responseHeaders=m.headers,l.pR.Tw(),NRi(l)); else l.onDone();else l.onError(Error("null_response"))}; this.J=function(m){var a=(0,g.tP)();l.CR()||(m.done?(l.T=void 0,l.onDone()):(m=m.value,l.X+=m.length,l.N.append(m),NRi(l),l.pR.lI(a,l.X)))}; this.onError=function(m){l.errorMessage=String(m);l.S=!0;l.onDone()}; this.N=new y9;this.V=window.AbortController?new AbortController:void 0;this.start(n)}; Dj=function(){var n=this;this.S=!1;this.T=this.V=0;this.C=new hff;this.vx={DOs:function(){n.S=!0}, RJY:function(){return n.N}, Fkg:function(Z){We(n,Z)}, LU:function(Z){n.LU(Z)}, DQu:function(Z){Nk(n,Z)}, U2:function(){return n.coldHashData}, kz:function(){return n.hotHashData}, wMQ:function(){return n.X}, FLT:function(){return uL()}, PzQ:function(){return xH()}, mOR:function(){return g.Di("yt.gcf.config.coldHashData")}, NIg:function(){return g.Di("yt.gcf.config.hotHashData")}, Wa8:function(){ZWY(n)}, Hsp:function(){n.LU(void 0);Pi(n);delete Dj.instance}, A7Y:function(Z){n.T=Z}, AYY:function(){return n.T}}}; E93=function(n,Z){var F=Z.backgroundability;F&&F.backgroundabilityRenderer.backgroundable&&(n.backgroundable=!0);var y,l;if((y=Z.offlineability)==null?0:(l=y.offlineabilityRenderer)==null?0:l.offlineable)n.offlineable=!0;if(F=Z.contextParams)n.contextParams=F;(F=Z.pictureInPicture)&&F.pictureInPictureRenderer.playableInPip&&(n.pipable=!0);Z.playableInEmbed&&(n.allowEmbed=!0);if(F=Z.ypcClickwrap)Z=F.playerLegacyDesktopYpcClickwrapRenderer,F=F.ypcRentalActivationRenderer,Z?(n.nx=Z.durationMessage|| "",n.Pc=!0):F&&(Z=F.durationMessage,n.nx=Z?g.sg(Z):"",n.Pc=!0)}; pM7=function(){return Rf("Android")&&!(i7()||Xp()||u7()||Rf("Silk"))}; F9o=function(n,Z,F){var y=new Promise(function(l,m){try{var a=Z(n);F&&n.commit();a.then(function(D){l(D)}).catch(m)}catch(D){m(D),n.abort()}}); return Promise.all([y,n.done]).then(function(l){return g.Y(l).next().value})}; AJP=function(n,Z,F){var y={},l;for(l in Z.N)if(Z.N.hasOwnProperty(l)){var m=Z.N[l].info;if(n.J&&m.video&&m.video.qualityOrdinal0&&(this.Pr=y.rti)):(this.GU=y.mos,this.Mt=y.volume,y.at&&(this.adType=y.at)),y.autonav&&(this.autonav=y.autonav),y.inview!=null&&(this.h2=y.inview),y.size&&(this.PV=y.size),y.playerwidth&&(this.oX=y.playerwidth),y.playerheight&&(this.mC=y.playerheight));this.Z8=g.nO(Z.N);this.L=fO(Z.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.L==="all"||this.L==="once")this.SG=g.nO(Z.IW);this.RX=Z.p6;this.experimentIds=FLo(Z.experiments);this.fR=Z.cV;this.Hx=Z.Ns;this.region=Z.region; this.userAge=Z.userAge;this.d5=Z.iU;this.cV=of();this.sendVisitorIdHeader=Z.sendVisitorIdHeader;this.zx=Z.j("vss_pings_using_networkless")||Z.j("kevlar_woffle");this.p6=Z.j("vss_final_ping_send_and_write");this.lY=Z.j("vss_use_send_and_write");this.pageId=Z.pageId;this.HE=Z.j("vss_playback_use_send_and_write");Z.livingRoomAppMode&&(this.livingRoomAppMode=Z.livingRoomAppMode);g.R6(Z)&&(this.r5=Z.zx);g.DB(g.XO(Z))&&this.C.push(1);this.accessToken=g.uf(n);n.MI[this.Bx]?this.V=n.MI[this.Bx]:n.MI.playback&& (this.V=n.MI.playback);this.adFormat=n.adFormat;this.adQueryId=n.adQueryId;this.autoplay=Gvo(n);this.T&&(this.N1=n.Bt&&V7(n)==="adunit"?!0:!1);this.autonav=n.isAutonav||this.autonav;this.contentVideoId=r2(n);this.clientPlaybackNonce=n.clientPlaybackNonce;this.IW=n.vV;n.C&&(this.Tx=n.C,this.mJ=n.zy);n.mdxEnvironment&&(this.mdxEnvironment=n.mdxEnvironment);this.N=n.IW;this.Y4=n.Y4;n.X&&(this.uH=n.X.itag,n.V&&n.V.itag!==this.uH&&(this.Yi=n.V.itag));n.N&&v1(n.N)&&(this.offlineDownloadUserChoice="1"); this.eventLabel=V7(n);this.yg=n.h2?!1:n.N1;this.R0=n.Hf;if(Z=Ap(n))this.ZD=Z;this.KF=n.jP;this.partnerId=n.partnerId;this.eventId=n.eventId;this.playlistId=n.zV||n.playlistId;this.MA=n.MA;this.DI=n.DI;this.a6=n.a6;this.B_=n.B_;this.subscribed=n.subscribed;this.videoId=n.videoId;this.videoMetadata=n.videoMetadata;this.visitorData=n.visitorData;this.osid=n.osid;this.n9=n.n9;this.referrer=n.referrer;this.wb=n.h6||n.wb;this.hG=n.uw;this.M0=n.M0;this.userGenderAge=n.userGenderAge;this.jI=n.jI;this.embedsRct= n.embedsRct;this.embedsRctn=n.embedsRctn;g.R6(this.Y)&&n.mutedAutoplay&&(n.mutedAutoplayDurationMode===2&&n.limitedPlaybackDurationInSeconds===0&&n.endSeconds===0?this.C.push(7):this.C.push(2));n.isEmbedsShortsMode(new g.Kz(this.oX,this.mC),!!this.playlistId)&&this.C.push(3);g.tG(n)&&this.C.push(4);this.aY=n.SR;n.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=n.compositeLiveIngestionOffsetToken)}; $Wi=function(n,Z,F){n=n.map(function(y){return g.A(function(l){return l.N==1?g.x(l,U_(y.actualName,Z),2):g.x(l,s_(y.actualName,F),0)})}); return Promise.all(n).then(function(){})}; uRK=function(n,Z){Z?n.element.classList.add("ytp-jump-button-enabled"):n.element.classList.remove("ytp-jump-button-enabled");n.W.logVisibility(n.element,Z);n.W.RH()}; bkP=function(n,Z,F,y){return new bU(n,Z,{opacity:F},{opacity:y},{property:"opacity",duration:Z,timing:"ease-in",delay:0})}; WFY=function(n,Z){var F=[];Z=g.Y(Z);for(var y=Z.next();!y.done;y=Z.next()){y=y.value;var l=XZ7[y]||0;n.N&&l>n.N||F.push(y)}return F}; zfP=function(n){n.W.V9("shopping_overlay_visible");n.W.V9("shopping_overlay_preview_collapsed");n.W.V9("shopping_overlay_preview_expanded");n.W.V9("shopping_overlay_expanded")}; Mw=function(n,Z){this.X=n;this.subtleCrypto=Z}; f9=function(n){if(!n.CR()&&n.T){n.C="paused";var Z=k8(n);Z.isFinal=!0;Z.send();n.dispose()}}; t$3=function(n,Z){n.j("html5_log_media_perf_info")&&(n.mQ.Xp("perfdb",xF7()),n.mQ.Xp("sessionperfdb",Object.fromEntries(e1.entries())),n.mQ.Xp("playbackperfdb",Object.fromEntries(n.T.entries())),n.mQ.Xp("hwc",{nch:navigator.hardwareConcurrency},!0),Z&&n.mQ.Xp("mcdb",{itags:Z.N.videoInfos.filter(function(F){var y;return((y=F.X)==null?void 0:y.smooth)===!1}).map(function(F){return F.itag}).join("-")}))}; kNe=function(n){var Z=g.XO(n.app.B()),F,y=(F=n.app.getVideoData())==null?void 0:F.XH;n=ew(n.app);return g.DB(Z)&&!y||n?!1:!0}; HF=function(n){return n&&n.thumbnails&&(n.thumbnails||null).length!=0&&n.thumbnails[0].url?g.Bu(n.thumbnails[0].url):""}; g.kf=function(n,Z,F){if(Z instanceof g.e_){var y=Z.x;Z=Z.y}else y=Z,Z=F;n.style.left=qp(y,!1);n.style.top=qp(Z,!1)}; dN=function(n,Z){Array.isArray(Z)&&(Z=Z.join(" "));Z===""||Z==void 0?(efP||(Z={},efP=(Z.atomic=!1,Z.autocomplete="none",Z.dropeffect="none",Z.haspopup=!1,Z.live="off",Z.multiline=!1,Z.multiselectable=!1,Z.orientation="vertical",Z.readonly=!1,Z.relevant="additions text",Z.required=!1,Z.sort="none",Z.busy=!1,Z.disabled=!1,Z.hidden=!1,Z.invalid="false",Z)),Z=efP,"label"in Z?n.setAttribute("aria-label",Z.label):n.removeAttribute("aria-label")):n.setAttribute("aria-label",Z)}; Hkf=function(n){n.provider.videoData.Bx&&Jm(n,"prefetch");n.provider.videoData.fR&&n.Xp("reload",{r:n.provider.videoData.reloadReason,ct:n.provider.videoData.fR});n.provider.videoData.Pf&&Jm(n,"monitor");n.provider.videoData.isLivePlayback&&Jm(n,"live");gT&&Jm(n,"streaming");n.provider.videoData.DI&&n.Xp("ctrl",{mode:n.provider.videoData.DI},!0);if(n.provider.videoData.a6){var Z=n.provider.videoData.a6.replace(/,/g,"_");n.Xp("ytp",{type:Z},!0)}n.provider.videoData.RM&&(Z=n.provider.videoData.RM.replace(/,/g, "."),n.Xp("ytrexp",{ids:Z},!0));Z=n.provider.videoData;var F=n.provider.Y.j("enable_white_noise")||n.provider.Y.j("enable_webgl_noop"),y=g.ms(Z)||g.j$(Z)||g.mF(Z)||g.UI(Z);(F||y)&&(F=(0,g.BF)())&&n.N.set("gpu",[F]);NP(n.provider.videoData)&&g.bM(n,g.kq(n.provider),"dt",["1"]);Z.cotn&&!NP(Z)&&n.XN(!0);n.provider.Y.eG()&&(Z=(0,g.tP)()-n.provider.Y.HE,n.Xp("playerage",{secs:Math.pow(1.6,Math.round(Math.log(Z/1E3)/Math.log(1.6))).toFixed()}));n.V=!0;n.Tx=g.Cb(function(){n.reportStats()},1E4)}; dio=function(n,Z,F){this.callback=n;this.slot=Z;this.tG=F;this.X=!1;this.N=0}; OfQ=function(n,Z,F,y,l,m,a,D,p){Z=sk(n,Z,F,y,l,new Map,m,function(L){return a(L,D)}); n=new gI(n.N,Z.IR);F=new QV(Z.IR);p=new zh(p);return{Hm:{layoutId:Z.layoutId,layoutType:Z.layoutType,Nd:Z.Nd,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:Z.Gx,clientMetadata:new lb([].concat(g.t(Z.gw),[F,p])),lN:Z.lN,adLayoutLoggingData:Z.adLayoutLoggingData},Km:Z.layoutExitSkipTriggers,dc:Z.layoutExitMuteTriggers,f3:[].concat(g.t(Z.layoutExitUserInputSubmittedTriggers),[n]),n3:Z.layoutExitUserCancelledTriggers, ly:Z.ly}}; knK=function(n){var Z=hjQ(n);n=n.defaultView;return new g.e_((n==null?void 0:n.pageXOffset)||Z.scrollLeft,(n==null?void 0:n.pageYOffset)||Z.scrollTop)}; gqT=function(n,Z){var F=Z==null?void 0:Z.primary;n.T(0,F);F=F?BRn(F):void 0;n.T(2,F);n.T(1,Z==null?void 0:Z.secondary)}; fQp=function(n,Z,F){n.N.set(Z,F);n.X.set(Z,F);n.V&&n.V.set(Z,F)}; XWe=function(n,Z,F,y,l,m,a){l=l===void 0?{}:l;var D=Math.round((0,g.tP)()),p=n.size,L=uhp(a);n=g.Y(n);var q=n.next();for(a={};!q.done;a={Kj:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,uc:void 0,vS:void 0},q=n.next()){var w=g.Y(q.value);q=w.next().value;w=w.next().value;a.batchRequest=g.Q7({context:g.RW(Z.config_||g.gL())});if(!g.W6(w)&&!g.N5("throw_err_when_logevent_malformed_killswitch")){y();break}a.batchRequest.events=w;(w=Td[q])&&jGT(a.batchRequest,q,w);delete Td[q];a.dangerousLogToVisitorSession= q==="visitorOnlyApprovedKey";sMU(a.batchRequest,D,a.dangerousLogToVisitorSession);RoY(l);a.uc=function(T){g.N5("start_client_gcf")&&g.CF.k6(function(){return g.A(function(P){return g.x(P,qkK(T),0)})}); p--;p||F()}; a.Kj=0;a.vS=function(T){return function(){T.Kj++;if(l.bypassNetworkless&&T.Kj===1)try{g.ly(Z,L,T.batchRequest,is({writeThenSend:!0},T.dangerousLogToVisitorSession,T.uc,T.vS,m)),Lw=!1}catch(P){g.hp(P),y()}p--;p||F()}}(a); try{g.ly(Z,L,a.batchRequest,is(l,a.dangerousLogToVisitorSession,a.uc,a.vS,m)),Lw=!1}catch(T){g.hp(T),y()}}}; M$T=function(n,Z){n.timing.Ns=!0;n.xhr.Ks()&&n.timing.zw();if(n.policy.Z8){var F;(F=n.DL)==null||F.stop()}MU(n.AV,Z,!1)}; $Q7=function(n){n.channel.classList.remove("ytp-title-show-collapsed");n.channel.classList.remove("ytp-title-show-expanded")}; ZcK=function(n,Z,F,y){F&&(n.Q_(),Ll(n));F=n.Z4();F.ZP(Z);var l=n.getVideoData(),m={};m.video_id=l.videoId;m.adformat=l.adFormat;l.isLivePlayback||(m.start=F.getCurrentTime(),m.resume="1");l.isLivePlayback&&wk(l)&&g.d5(n.Y)&&(m.live_utc_start=F.Xh(),m.resume="1");l.Tx&&(m.vvt=l.Tx);l.C&&(m.vss_credentials_token=l.C,m.vss_credentials_token_type=l.zy);l.oauthToken&&(m.oauth_token=l.oauthToken);m.autoplay=1;m.reload_count=l.fR+1;m.reload_reason=Z;l.uw&&(m.unplugged_partner_opt_out=l.uw);l.mC&&(m.ypc_is_premiere_trailer= l.mC);l.playerParams&&(m.player_params=l.playerParams);l.Ns&&(m.itct=l.Ns);n.loadVideoByPlayerVars(m,void 0,!0,void 0,void 0,y);Z==="signature"&&n.fq&&nji(n)}; cy=function(n){this.AG=UO(n)}; $X=function(n){n.N=null;n.Tx=-1;n.L=0;n.S=null;n.Wr=NaN;n.Pr=0;n.Ns=null}; Qxj=function(n,Z){var F=g.sj(Z);if(qI8(Z.info.bY.info)&&Z.info.bY.info.video.primaries==="bt2020"){var y=new lY(F);mD(y,[408125543,374648427,174,224,21936,21937])&&(y=y.start+y.pos,F.getUint8(y)===129&&F.getUint8(y+1)===1&&F.setUint8(y+1,9))}y=Z.info.bY.info;n5(y)&&!qI8(y)&&(y=g.sj(Z),(new lY(y)).mD(),tk([408125543,374648427,174,224],21936,y));Z.info.bY.info.K6()&&(y=Z.info.bY,y.info&&y.info.video&&y.info.video.projectionType==="MESH"&&!y.X&&(g.W2(y.info)?y.X=Fpp(F):y.info.dV()&&(y.X=yHK(F))));Z.info.bY.info.dV()&& Z.info.K6()&&(F=g.sj(Z),(new lY(F)).mD(),tk([408125543,374648427,174,224],30320,F)&&tk([408125543,374648427,174,224],21432,F));if(n.policy.zq&&Z.info.bY.info.dV()){F=g.sj(Z);var l=new lY(F);if(mD(l,[408125543,374648427,174,29637])){y=ar(l,!0);l=l.start+l.pos;for(var m=0;m=0||Ax(n,0,"gad_source",n.search(gu))>=0}; zK=function(n,Z){isNaN(n.Ns)||n.Xp("aswr",{sq:Z.info.D4[0].O8,id:Z.info.D4[0].bY.info.itag,xtag:Z.info.D4[0].bY.info.N,ep:Date.now()-n.Ns});n.X.push(Z);n.N=g.lj(Z.info.D4);n.w5.push(Z.bd());n.w5.length>4&&n.w5.shift()}; ann=function(n,Z){n.Tv=n.Tv.filter(function(F){return F!==Z})}; fU3=function(n){var Z,F;if(F=(Z=n.player.getVideoData(1))==null||!Z.C5)Z=n.player.B(),F=ji(Z)&&!g.d5(Z)&&Z.playerStyle==="desktop-polymer";F&&(n=n.player.getInternalApi(),n.addEventListener("updateKevlarOrC3Companion",KpP),n.addEventListener("updateEngagementPanelAction",Tv7),n.addEventListener("changeEngagementPanelVisibility",BIe),window.addEventListener("yt-navigate-start",EKf))}; Ro=function(n,Z){return n?Z?decodeURI(n.replace(/%25/g,"%2525")):decodeURIComponent(n):""}; nu=function(n,Z,F,y,l){this.qy=n;this.CNY=Z;this.Zns=F;this.jWQ=y;this.func=l}; vw=function(n,Z){Sf(n,1,Z.startTicks);Sf(n,2,Z.s_);Sf(n,3,Z.timescale)}; YX=function(n){return g.Yt(DQj,n)>=0}; A57=function(n){if(n){if(pmp(n))return n;n=DJ8(n);if(pmp(n,!0))return n}return""}; oSp=function(n,Z){Z=Z===void 0?"":Z;n.state=1;n.jT=(0,g.tP)();return zE3(Z||n.sourceUrl).then(function(F){if(!n.CR()){n.Wm=F.status;F=F.responseText;var y=new DOMParser;F=SV(y,v2f(F),"text/xml").getElementsByTagName("MPD")[0];n.Tx=C83(ZK(F,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(F.attributes){y=g.Y(F.attributes);for(var l=y.next();!l.done;l=y.next())if(l=l.value,l.value==="http://youtube.com/yt/2012/10/10"){y=l.name.split(":")[1];break b}}y=""}n.C=y;n.isLive=n.Tx=0;y--)if(y in l&&Z.call(F,l[y],y,n))return y;return-1}; iU=function(n,Z,F){Z=g.Y(Z);var y=Z.next();fVj(y);if(y.done)n.X=y.value,n.N=F;else return n.V=Z,g.x(n,y.value,F)}; gop=function(n){var Z,F=n.videoData.getAvailableAudioTracks(),y=n.Y.xi;if(n.OS().N.Wx(qL8)&&n.videoData.cotn)return Z=F.find(function(m){return!!m.C}); y&&(Z=F.find(function(m){return m.getLanguageInfo().id===y})); if(n.Y.experiments.RY("enable_audio_description_setting")&&g.mM().Wx(198)){F=g.Y(F);for(var l=F.next();!l.done;l=F.next())if(l=l.value,l.S){Z=l;break}}Z||(n=n.getAudioTrack(),Z=n.J2.isDefault?void 0:n);return Z}; Lo=function(n,Z){n[Z]||(n[Z]=new wfU);return n[Z]}; LX=function(n){var Z=o5(n.clientMetadata,"metadata_type_ad_placement_config");n=o5(n.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:Z,YD:n}}; Vk8=function(n){var Z=TXj();if(Z.values){Z=Z.values;for(var F={},y=g.Y(Object.keys(n.values)),l=y.next();!l.done;l=y.next()){l=l.value;Z[l]&&n.X[l]&&(n.values[l]+=Z[l]-n.X[l]);var m=n,a=m;if(!a.values[l]){var D=TXj();a.values=D.values||{};a.V2=D.halfLives||{};a.X=D.values?Object.assign({},D.values):{}}F[l]=m.values[l]&&m.V2[l]?m.values[l]/Math.pow(2,m.N/m.V2[l]):0}n.X=F}Z=n.V2;F={};F.values=n.X;F.halfLives=Z;g.Oh("yt-player-memory",F,2592E3)}; RM=function(n){var Z=new Ky;n=n===void 0?null:n;Z.T=2;Z.X=n===void 0?null:n;return Z}; TqT=function(){if(nH()){var n=g.BT("PLAYER_VARS",{});if(g.aM(n,"privembed",!1)!="1"&&!uvj(n)){var Z=function(){oj8=!0;"google_ad_status"in window?Ka("DCLKSTAT",1):Ka("DCLKSTAT",2)}; try{g.l$(Pii,Z)}catch(F){}JHK.push(g.CF.k6(function(){if(!(oj8||"google_ad_status"in window)){try{if(Pii.toString()&&Z){var F=""+g.c2(Z),y=Qen[F];y&&g.Sv(y)}}catch(l){}oj8=!0;Ka("DCLKSTAT",3)}},5E3))}}}; I0=function(n){n.N||(n.N=new Map,n.X=0,n.T&&JF(n.T,function(Z,F){n.add(KP(Z),F)}))}; YLe=function(n){this.AG=UO(n)}; qlp=function(n,Z){n.network=Z;return n}; rhj=function(n){var Z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};n&&(Z.interpreterHash=n);return Z}; OI=function(n,Z,F,y,l,m,a,D,p){m=m===void 0?!1:m;a=a===void 0?[]:a;p=p===void 0?!1:p;CW.call(this,n,{U:"span",s8:["ytp-ad-hover-text-button"].concat(a)},D===void 0?"ad-hover-text-button":D,Z,F,y);this.button=this.X=null;this.L=m;this.S=l;this.T=p;this.hide()}; g.bc=function(n){n=tH(n.rW);return n==="www.youtube-nocookie.com"?"www.youtube.com":n}; nl=function(n,Z){var F=n.started+n.N*4;Z&&(F+=n.T);F=Math.max(0,F-3);return Math.pow(1.6,F)}; xl=function(n){var Z=new SLe,F;Z.T=((F=c_T(n).cc)==null?void 0:F.toString())||"-";Z.playbackRate=n.mQ.getPlaybackRate();F=n.mQ.getVisibilityState();F!==0&&(Z.visibilityState=F);n.Y.hG&&(Z.X=1);Z.V=n.videoData.pD;Z.compositeLiveStatusToken=n.videoData.compositeLiveStatusToken;Z.heartbeatLoggingToken=n.videoData.heartbeatLoggingToken;F=n.mQ.getAudioTrack();F.J2&&F.J2.id&&F.J2.id!=="und"&&(Z.audioId=F.J2.id);Z.connectionType=gE8(n);Z.volume=n.mQ.getVolume();Z.muted=n.mQ.isMuted();Z.clipId=n.mQ.Ph()|| "-";Z.N=n.videoData.Df||"-";return Z}; iP=function(n,Z){n.T={us:Z,ih:!0};n.N=n.C||n.S}; NXp=function(n){var Z;return(Z=n[je7])!=null?Z:n[je7]=new Map(llK(UQn(n)).map(function(F){return[F.getName(),po(F,2)]}))}; hRe=function(n){this.value=n}; ET=function(n,Z){this.w_=Z=Z===void 0?!1:Z;this.uach=this.locale=null;this.X=0;this.isFinal=!1;this.N=new Mb;Number.isInteger(n)&&this.N.H_(n);Z||(this.locale=document.documentElement.getAttribute("lang"));VZ(this,new cy)}; dz=function(n){var Z;if(!(Z=gT&&n.t2()&&n.mF()&&(n.drmProduct==="1"?!1:!0)&&n.j("html5_sabr_live_drm_streaming_xhr"))){Z=n.t2()&&!n.mF()&&gT;var F=n.t2()&&n.latencyClass!=="ULTRALOW"&&!n.isLowLatencyLiveStream&&n.j("html5_sabr_live_normal_latency_streaming_xhr"),y=n.isLowLatencyLiveStream&&n.j("html5_sabr_live_low_latency_streaming_xhr"),l=n.latencyClass==="ULTRALOW"&&n.j("html5_sabr_live_ultra_low_latency_streaming_xhr");Z=Z&&(F||y||l)}F=Z;Z=n.enableServerStitchedDai&&F&&n.j("html5_enable_sabr_ssdai_streaming_xhr"); F=!n.enableServerStitchedDai&&F;y=n.t2()&&!gT&&n.j("html5_enable_sabr_live_non_streaming_xhr");n=gT&&(n.Cq()||jK(n)&&n.j("html5_enable_sabr_for_lifa_eligible_streams"));return Z||F||y||n}; EjT=function(n,Z,F){zc(n.aW,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Z,F);n=g.Y(n.X);for(var y=n.next();!y.done;y=n.next())y.value.m0(Z,F)}; g.reY=function(n){return g.i8(n.N,function(Z){return PM(Z.info.mimeType)})}; gX=function(n,Z,F){this.N=void 0;this.experimentIds=n?n.split(","):[];this.flags=zj(Z||"","&");n={};Z=g.Y(this.experimentIds);for(var y=Z.next();!y.done;y=Z.next())n[y.value]=!0;this.experiments=n;F=new iN7(F);this.T=new G98(F);this.X=new Oc3(F)}; DU=function(n){n.S.textContent=LLU(n,n.N)+"x"}; FmY=function(n,Z){return n.Pr(n.N,!0)?!1:(fs(n,NaN,"ns",Z),n.clear(),!0)}; cHe=function(n,Z,F,y,l){F=F?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var m=MT(n.X.get(),F);Z=new xK(n.N,Z);var a=[new nz(n.N,m)];n=[new lB(n.N,m)];return{slotId:m,slotType:F,slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:a,slotExpirationTriggers:n,Gx:"core",clientMetadata:new lb([new mW(l({slotId:m,slotType:F,slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:a,slotExpirationTriggers:n}))]),adSlotLoggingData:y}}; tzQ=function(n,Z){n=new Uint8Array(n);Z&&n.set(Z);return n}; g.DL=function(n,Z,F,y){n=y||n;return(Z=Z&&Z!="*"?String(Z).toUpperCase():"")||F?n.querySelectorAll(Z+(F?"."+F:"")):n.getElementsByTagName("*")}; VW7=function(n,Z,F,y){n1.call(this,"video-interstitial-buttoned-centered",n,Z,F,y);this.interactionLoggingClientData=y}; Ns=function(n,Z){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.index=n;this.objectStore=Z;Object.setPrototypeOf(this,Ns.prototype)}; vj8=function(n,Z){var F;if(((F=n.Ur)==null?void 0:F.type)==="repeatChapter"||(Z==null?void 0:Z.type)==="repeatChapter")Z&&(Z=n.N[LC(n.N,Z.startTimeMs)],g.w4(Z.N,"ytp-repeating-chapter",!1)),n.Ur&&(Z=n.N[LC(n.N,n.Ur.startTimeMs)],g.w4(Z.N,"ytp-repeating-chapter",!0)),n.N.forEach(function(y){g.w4(y.N,"ytp-exp-chapter-hover-container",!n.Ur)})}; vPe=function(n){switch(n){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:dF(n,"unknown result type")}}; xaP=function(n,Z){Z.inlineMetricEnabled&&(n.inlineMetricEnabled=!0);Z.playback_progress_0s_url&&(n.OW=new R7o(Z));if(Z=Z.video_masthead_ad_quartile_urls)n.Fc=Z.quartile_0_url,n.Kx=Z.quartile_25_url,n.Lx=Z.quartile_50_url,n.Hi=Z.quartile_75_url,n.gQ=Z.quartile_100_url,n.KM=Z.quartile_0_urls,n.mZ=Z.quartile_25_urls,n.P8=Z.quartile_50_urls,n.NC=Z.quartile_75_urls,n.FU=Z.quartile_100_urls}; nPo=function(n,Z,F){F=F===void 0?0:F;var y=n.type;var l=n.itag;var m=n.xtags;m&&(l=n.itag+";"+m);if(gE(y)){var a=(n.size||"640x360").split("x");a=new P4(+a[0],+a[1],+n.fps,n.projection_type,+n.stereo_layout,void 0,n.quality_label,+n.quality_ordinal,n.eotf,n.primaries);y=xg(y,a,Bm[n.itag]);Uc&&(y+="; enableflushduringseek=true");Nj&&(y+="; enableresetaudiodecoder=true")}var D;if(k9(y)){var p=new oV(+n.audio_sample_rate||void 0,+n.audio_channels||0,n.spatial_audio_type,!!n.drc);n.name&&(D=new g.ZV(n.name, n.audio_track_id,n.isDefault==="1"))}var L;n.caption_display_name&&n.caption_vss_id&&n.caption_language_code&&(L=new LIf(n.caption_display_name,n.caption_vss_id,n.caption_language_code,n.caption_kind,n.xtags,n.caption_id));m=Number(n.bitrate)/8;var q=Number(n.clen),w=Number(n.lmt);F=F&&q?q/F:0;if(Z&&n.drm_families){var T={};for(var P=g.Y(n.drm_families.split(",")),J=P.next();!J.done;J=P.next())J=J.value,T[J]=Z[J]}return new mZ(l,y,{audio:p,video:a,J2:D,by:T,Qg:m,jy:F,contentLength:q,lastModified:w, captionTrack:L,streamType:n.stream_type,approxDurationMs:Number(n.approx_duration_ms)})}; g.Fe=function(n){for(var Z=g.Y(n.items),F=Z.next();!F.done;F=Z.next())F.value.unsubscribe("size-change",n.IV,n);n.items=[];try{g.Ov(n.menuItems.element)}catch(m){var y,l;g.yi(new g.FV("Failed to remove menu items from panel menu.",{error:m.message,originalStack:m.stack,childToBeRemoved:(l=(y=n.menuItems.element.firstChild)==null?void 0:y.textContent)!=null?l:"child element not found"}))}n.menuItems.publish("size-change")}; Inf=function(n){return n.DK||n.aT}; r$7=function(n){var Z,F;return g.A(function(y){if(y.N==1)return g.x(y,fne(n),2);F=Z=y.X;return y.return(F)})}; GxQ=function(){this.T=void 0;this.X=this.C=0;this.S=-1;this.Vm=new x7;$6(this.Vm,"mv",AHY).N=!0;$6(this.Vm,"omid",GV);$6(this.Vm,"epoh",GV).N=!0;$6(this.Vm,"epph",GV).N=!0;$6(this.Vm,"umt",GV).N=!0;$6(this.Vm,"phel",GV).N=!0;$6(this.Vm,"phell",GV).N=!0;$6(this.Vm,"oseid",Wp7).N=!0;var n=this.Vm;n.N.sloi||(n.N.sloi=new pR);n.N.sloi.N=!0;$6(this.Vm,"mm",rHP);$6(this.Vm,"ovms",xQ8).N=!0;$6(this.Vm,"xdi",GV).N=!0;$6(this.Vm,"amp",GV).N=!0;$6(this.Vm,"prf",GV).N=!0;$6(this.Vm,"gtx",GV).N=!0;$6(this.Vm, "mvp_lv",GV).N=!0;$6(this.Vm,"ssmol",GV).N=!0;$6(this.Vm,"fmd",GV).N=!0;$6(this.Vm,"gen204simple",GV);this.N=new y5Q(J6(),this.Vm);this.V=!1;this.flags=new W1P}; ya=function(n,Z,F,y){c5.call(this,"Voice boost",g.rJ.ZF);this.W=n;this.T=Z;this.X=F;this.getVoiceBoostState=y;this.N=!1;this.Fp=this.W.j("html5_enable_new_audio_settings_menu")?n.zj().hq:n.zj();this.G(n,"onFilterAudioFeatures",this.lP);this.setIcon({U:"svg",Z:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]}); this.subscribe("select",this.V,this);this.lP()}; iv=function(n,Z,F){if(n.Y.experiments.RY("html5_disable_client_autonav_cap_for_onesie")&&Z.fetchType==="onesie"||g.f4(n.Y)&&(Bf(-1)>=1080||Z.osid))return IK;var y=g.jf(n.Y.experiments,"html5_autonav_quality_cap"),l=g.jf(n.Y.experiments,"html5_autonav_cap_idle_secs");return y&&Z.isAutonav&&of()/1E3>l?(F&&(y=xY3(n,F,y)),new vL(0,y,!1,"e")):IK}; g.u4=function(n,Z){gbo.apply(null,[5,n instanceof g.hL?n.tag:n,Z].concat(g.t(g.S7.apply(2,arguments))))}; B7=function(){Lg.apply(this,arguments);this.requestHeaders={}}; le=function(n){this.tG=n;this.N=!1}; dp=function(n,Z){if(bx(n,Z))return!!Xn(n)}; Zg=function(n){return(n==null?void 0:n.layoutId)!=null&&(n==null?void 0:n.layoutType)!=null}; RRK=function(n){if(n.mQ.getVideoData().isLivePlayback)return!1;var Z=n.mQ.HV();if(!Z)return!1;Z=Z.getDuration();if(n.KR&&n.KR.N&&n.KR.X){var F=n.getCurrentTime(),y=n.KR.N.qj();n=n.KR.X.qj();y=y?NY(y,F):F;F=n?NY(n,F):F;F=Math.min(y,F);Z=isNaN(F)?!1:F>=Z-.01}else Z=!1;return Z}; gji=function(n){return n===-0x8000000000000?"BEFORE_MEDIA_START":n===0?"MEDIA_START":n===0x7ffffffffffff?"MEDIA_END":n===0x8000000000000?"AFTER_MEDIA_END":n.toString()}; iA=function(n){var Z=n.data.getUint8(n.offset+n.N);n.N+=1;return Z}; g.Xw=function(n,Z,F,y){var l=n.currentTarget;if((F===void 0||!F)&&g.OC(n))return n.preventDefault(),!0;Z.pauseVideo();n=l.getAttribute("href");g.R8(n,y,!0);return!1}; mi=function(n){var Z={},F=g.$i7(n.xhr);Object.keys(F).forEach(function(y){Z[y]=F[y]}); return Z}; bDf=function(n){var Z={"Content-Type":"application/json"};g.BT("EOM_VISITOR_DATA")?Z["X-Goog-EOM-Visitor-Id"]=g.BT("EOM_VISITOR_DATA"):g.BT("VISITOR_DATA")&&(Z["X-Goog-Visitor-Id"]=g.BT("VISITOR_DATA"));Z["X-Youtube-Bootstrap-Logged-In"]=g.BT("LOGGED_IN",!1);g.BT("DEBUG_SETTINGS_METADATA")&&(Z["X-Debug-Settings-Metadata"]=g.BT("DEBUG_SETTINGS_METADATA"));n!=="cors"&&((n=g.BT("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Z["X-Youtube-Client-Name"]=n),(n=g.BT("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Z["X-Youtube-Client-Version"]= n),(n=g.BT("CHROME_CONNECTED_HEADER"))&&(Z["X-Youtube-Chrome-Connected"]=n),(n=g.BT("DOMAIN_ADMIN_STATE"))&&(Z["X-Youtube-Domain-Admin-State"]=n));(n=g.BT("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Z["X-YouTube-Lava-Device-Context"]=n);return Z}; Wo=function(n,Z){n.url=Z;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; ucf=function(n){var Z=new a_e(n.N.M1);g.S(n,Z);n=[new icK(n.N.uY),new dj(n.N.W),new rW(n.N.uY),new Axo(n.N.Bn,n.N.Vq),new kOn,new J7(n.N.Qd,n.N.Fe,n.N.uY),new $Q,new Ci3(n.N.Fe)];n=g.Y(n);for(var F=n.next();!F.done;F=n.next())fZ3(Z,F.value);n=g.Y(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(F=n.next();!F.done;F=n.next())Lv(Z,F.value,function(){}); return Z}; bcY=function(n,Z,F,y,l,m,a,D){return Z===null?new C("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:Z,TopBannerImageTextIconButtonedLayoutViewModel:y}):[uOU(n,Z,a,m,function(p){var L=p.slotId;p=D(p);var q=y.adLayoutLoggingData,w=new lb([new zk(y),new K7(l)]);L=$e(F.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",L);var T={layoutId:L,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Gx:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Nd:new Map,layoutExitNormalTriggers:[new ZX(F.N,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:w,lN:p(T),adLayoutLoggingData:q}})]}; o3=function(n,Z){Z||(Z={});Z[IF8(n)]=!0;var F=n.stack||"",y=n.cause;y&&!Z[IF8(y)]&&(F+="\nCaused by: ",y.stack&&y.stack.indexOf(y.toString())==0||(F+=typeof y==="string"?y:y.message+"\n"),F+=o3(y,Z));n=n.errors;if(Array.isArray(n)){y=1;var l;for(l=0;l4);l++)Z[IF8(n[l])]||(F+="\nInner error "+y++ +": ",n[l].stack&&n[l].stack.indexOf(n[l].toString())==0||(F+=typeof n[l]==="string"?n[l]:n[l].message+"\n"),F+=o3(n[l],Z));l0){for(var y=g.Y(Z),l=y.next();!l.done;l=y.next())l=l.value,l.startTime-=n.X,l.endTime-=n.X;F.N-=n.X}else F.N=n.N.N;F.segments=Z;return F}; PA=function(n){this.value=n}; uG3=function(n){if(isNaN(Number(n.timeoutSeconds))||!n.text||!n.ctaButton||!g.e(n.ctaButton,g.qb)||!n.brandImage)return!1;var Z;return n.backgroundImage&&g.e(n.backgroundImage,sF)&&((Z=g.e(n.backgroundImage,sF))==null?0:Z.landscape)?!0:!1}; g.aR=function(n){g.I.call(this);this.C=1;this.T=[];this.V=0;this.N=[];this.X={};this.J=!!n}; vk=function(n){g.I.call(this);this.api=n}; g.$8=function(n,Z){return typeof n.keywords[Z]!=="string"?null:n.keywords[Z]}; jn=function(n,Z){E7(n,1,Z.clientInfo,dQT,3);O0(n,2,Z.DS);O0(n,3,Z.playbackCookie);O0(n,4,Z.g6);if(Z.lZ)for(var F=0;F1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; W7=function(n){n=n===void 0?l1U:n;g.I.call(this);var Z=this;try{this.T=n(function(y){Z.X=y.at(-1)}); var F;this.V=(F=this.T)==null?void 0:F.observe("cpu",{sampleInterval:2E3}).catch(function(y){y instanceof DOMException&&(Z.N=y)})}catch(y){y instanceof DOMException&&(this.N=y)}}; NTQ=function(n,Z,F){var y=Array(16),l=0,m;for(m=1;m<=15;m++)y[m]=l=l+F[m-1]<<1;for(F=0;F<=Z;F++)l=n[F*2+1],l!==0&&(n[F*2]=hOQ(y[l]++,l))}; st7=function(n,Z){if(n.policy.KF5){var F=Z.info.Qg,y=TR(n.schedule);Z=Z.index.Xb();F=Math.max(1,y/F);n.L=Math.round(Math.max(((F-1)*Z+n.policy.uH)/F,Z-n.policy.GO)*1E3)}}; UJn=function(n){var Z=n.index+1;return Z>=n.length?0:Z}; f5=function(n){this.uy=n}; BSi=function(n,Z){g.I.call(this);var F=this;this.data=[];this.T=n||NaN;this.X=Z||null;this.N=new g.e7(function(){ak(F);DR(F)}); g.S(this,this.N)}; Ku=function(n,Z){Z.forEach(function(F){lL(n,F)})}; g.NT=function(n,Z){g.R.call(this,{U:"button",s8:["ytp-play-button","ytp-button"],Z:{title:n.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},E8:"{{icon}}"});this.W=n;this.N=null;this.transition=new bv;this.tooltip=Z.aX();g.S(this,this.transition);n.createClientVe(this.element,this,36842);n.logVisibility(this.element,!0);this.G(n,"fullscreentoggled",this.onVideoDataChange); this.G(n,"presentingplayerstatechange",this.onStateChange);this.G(n,"videodatachange",this.onVideoDataChange);this.rM(n.getPlayerStateObject());this.listen("click",this.mL,this);this.addOnDisposeCallback(g.l9(Z.aX(),this.element))}; D5=function(n,Z){var F=n.V.get(Z);if(F)return F;F=n.levels.length;for(var y=0;y=Z)return n.V.set(Z,y),y;n.V.set(Z,F-1);return F-1}; CA3=function(){if(g.N5("bg_st_hr"))return"havuokmhhs-0";var n,Z=((n=globalThis.performance)==null?void 0:n.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Z)}; g.oo=function(n,Z){return n.indexOf(Z)!=-1}; a1o=function(n,Z,F,y,l){g.I.call(this);var m=this,a=PB(function(){return new JO(m.U8)}); g.S(this,a);var D=PB(function(){return new Ye(a)}); g.S(this,D);var p=PB(function(){return new Sa}); g.S(this,p);var L=PB(function(){return new Ur(n)}); g.S(this,L);var q=PB(function(){return new NA(a,D,m.U8)}); g.S(this,q);var w=PB(function(){return new hO}); g.S(this,w);this.FJ=PB(function(){return new Er(Z)}); g.S(this,this.FJ);this.Cn=PB(function(){return new Or(l)}); g.S(this,this.Cn);this.tD=PB(function(){return new cB(Z)}); g.S(this,this.tD);this.ES=PB(function(){return new VP(Z)}); g.S(this,this.ES);this.gM=PB(function(){return new vB(Z)}); g.S(this,this.gM);this.M1=PB(function(){return new fz(Z)}); g.S(this,this.M1);this.U8=PB(function(){return new AO(Z)}); g.S(this,this.U8);var T=PB(function(){return new WB(y)}); g.S(this,T);var P=PB(function(){return new r7(m.U8)}); g.S(this,P);this.tX=PB(function(){return new GE(Z)}); g.S(this,this.tX);this.Et=PB(function(){return new R1}); g.S(this,this.Et);this.nR=PB(function(){return new g7(Z,w,m.U8)}); g.S(this,this.nR);var J=ib({nR:this.nR,U8:this.U8,xs:P}),U=J.context;this.aW=J.aW;this.Je=PB(function(){return new Cz(Z,m.U8,m.uY)}); g.S(this,this.Je);this.ym=PB(function(){return new wV(Z)}); g.S(this,this.ym);this.tG=PB(function(){return new ub(Z,m.nR)}); g.S(this,this.tG);this.To=PB(function(){return new bb}); g.S(this,this.To);J=PB(function(){return new xe(a,q,D,m.U8,P,"SLOT_TYPE_ABOVE_FEED",m.tG,m.Em,m.C6)}); g.S(this,J);this.OG=PB(function(){return new ke(m.U8)}); this.TN=PB(function(){return new X7(m.tG,Z,m.U8)}); g.S(this,this.TN);this.uY=PB(function(){return new tO(Z,p,m.TN,m.nR,m.aW,m.U8)}); g.S(this,this.uY);this.lL=new ea(HB,d7,function(v,V,f,W){return BB(D.get(),v,V,f,W)},L,q,D,P,this.U8,this.nR); g.S(this,this.lL);this.Ew=new MA(L,J,F,n,this.nR,this.tG,this.tD);g.S(this,this.Ew);var h=new G3(Z,this.Ew,this.tG,this.nR,this.Je);this.bH=PB(function(){return h}); this.dn=h;this.Em=new $o(L,q,this.bH,this.Je,this.tG,this.U8,this.uY,this.ym);g.S(this,this.Em);this.jn=new nZ(L,q,this.ES,this.bH,U);g.S(this,this.jn);this.IX=new ZQ(this.U8,L,q,J,this.nR,this.jn,F,this.gM);g.S(this,this.IX);this.B7=PB(function(){return new FW(T,D,P,m.U8,m.uY,m.tG,m.ym)}); g.S(this,this.B7);this.Fh=PB(function(){return new yY}); g.S(this,this.Fh);this.hX=new lF(n,this.FJ,this.U8);g.S(this,this.hX);this.pn=new ml(n);g.S(this,this.pn);this.Jp=new ad(n);g.S(this,this.Jp);this.T5=new KZ(n,this.bH,U);g.S(this,this.T5);this.eV=new DQ(n,this.ES,this.tG,this.nR);g.S(this,this.eV);this.eN=new XU(n,this.nR);g.S(this,this.eN);this.C6=new od(n,this.Je,this.tG,this.uY,this.bH,this.Em);g.S(this,this.C6);this.dO=new pZ(n);g.S(this,this.dO);this.wO=new T6(n);g.S(this,this.wO);this.kM=new LZ(n);g.S(this,this.kM);this.Zi=new q9(n);g.S(this, this.Zi);this.wO=new T6(n);g.S(this,this.wO);this.DM=PB(function(){return new P0}); g.S(this,this.DM);this.r8=PB(function(){return new Jq(m.tG)}); g.S(this,this.r8);this.hs=PB(function(){return new pXK(m.FJ,m.uY,n,p,m.TN)}); g.S(this,this.hs);this.v7=PB(function(){return new QY(m.IX,L,a)}); g.S(this,this.v7);this.Pn=PB(function(){return new Yo(m.U8,m.uY,m.dO,m.TN)}); g.S(this,this.Pn);this.OD=PB(function(){return new zr(n,m.wO,m.dO,m.nR,m.ym,m.tG,m.To,m.uY,w,m.Je,m.TN,m.OG,m.gM,m.ES,m.tD,m.M1,m.Cn,m.tX,m.U8,p,U)}); g.S(this,this.OD);this.hW=PB(function(){return new yxp(m.tG,m.uY,m.Cn,m.U8,m.TN,m.nR)}); g.S(this,this.hW);this.WM=PB(function(){return new mjQ(m.FJ,m.tG,m.uY,p,m.TN,m.Jp,m.Zi,m.Cn,m.U8,F)}); g.S(this,this.WM);this.gG=PB(function(){return new nxn(m.FJ,m.uY,p)}); g.S(this,this.gG);this.WO=new jT(n,this.Et,a);g.S(this,this.WO);this.Pj={eK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.IX],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Em],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.lL],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ew],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.jn]]),q_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B7],["SLOT_TYPE_ABOVE_FEED",this.Fh],["SLOT_TYPE_FORECASTING",this.Fh], ["SLOT_TYPE_IN_PLAYER",this.Fh],["SLOT_TYPE_PLAYER_BYTES",this.Fh],["SLOT_TYPE_PLAYER_UNDERLAY",this.Fh],["SLOT_TYPE_PLAYBACK_TRACKING",this.Fh],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Fh]]),iT:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.hX],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.hX],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pn],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.pn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pn],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.pn],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.pn],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Jp],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.T5],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.eV],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.eV],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.eV],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eV],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eV],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.eV],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.eV],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.eN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.eN],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.dO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.T5],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kM],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Zi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.wO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.C6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.C6],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.C6],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.C6],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.C6]]),J7:new Map([["SLOT_TYPE_ABOVE_FEED",this.DM], ["SLOT_TYPE_AD_BREAK_REQUEST",this.DM],["SLOT_TYPE_FORECASTING",this.DM],["SLOT_TYPE_IN_PLAYER",this.DM],["SLOT_TYPE_PLAYER_BYTES",this.r8],["SLOT_TYPE_PLAYER_UNDERLAY",this.DM],["SLOT_TYPE_PLAYBACK_TRACKING",this.DM],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.DM]]),nY:new Map([["SLOT_TYPE_ABOVE_FEED",this.hs],["SLOT_TYPE_AD_BREAK_REQUEST",this.v7],["SLOT_TYPE_FORECASTING",this.Pn],["SLOT_TYPE_PLAYER_BYTES",this.OD],["SLOT_TYPE_PLAYBACK_TRACKING",this.hW],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.hW],["SLOT_TYPE_IN_PLAYER",this.WM],["SLOT_TYPE_PLAYER_UNDERLAY",this.gG]])};this.listeners=[p.get()];this.TY={IX:this.IX,Fe:this.U8.get(),Hr:this.Cn.get(),nz:this.tG.get(),Ew:this.Ew,XF:a.get(),du:this.Et.get(),Vq:this.hX,Bn:p.get(),Qd:this.nR.get()}}; gz=function(){g.R.call(this,{U:"div",K:"ytp-timed-marker"});this.N=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; DI=function(n,Z,F){this.initData=n;this.contentType=Z;this.isPrefetch=F;this.N=this.cryptoPeriodIndex=NaN;this.T=[];this.dV=!1;this.X=null;if((Z==null?void 0:Z.toLowerCase())==="webm"||n.length===16)this.dV=!0}; KCi=function(n,Z){if(Z==null||Z=="")return new n;Z=JSON.parse(Z);if(!Array.isArray(Z))throw Error("dnarr");z2(Z,32);return new n(Z)}; DjU=function(n,Z,F,y,l){var m=n.g1,a=n.videoData;a.X=F;var D=g.DK(n);F=new ai(a,F,Z,D?D.itag:"",y);n.Y.experiments.RY("html5_refactor_sabr_video_format_selection_logging")?(F.videoId=l,n.YE=F):m.qoe&&bNo(m.qoe,F);l=n.x6;l.X=0;l.N=0;n.publish("internalvideoformatchange",a,Z==="m")}; Xn=function(n){var Z=aX(n.N,n.pos);++n.pos;if(Z<128)return Z;for(var F=Z&127,y=1;Z>=128;)Z=aX(n.N,n.pos),++n.pos,y*=128,F+=(Z&127)*y;return F}; pKK=function(n){da.call(this);var Z=this;this.logger=n;this.vx={q7x:function(){return Z.logger}, EM:function(){return Z.logger.vx.EM()}}; this.addOnDisposeCallback(function(){return void Z.logger.dispose()})}; cVK=function(n,Z){if(Z==0)return Tt();var F=o1e(n,Z);n.gA&&n.S?F=n.X.subarray(F,F+Z):(n=n.X,Z=F+Z,F=F===Z?new Uint8Array(0):LC8?n.slice(F,Z):new Uint8Array(n.subarray(F,Z)));return F.length==0?Tt():new v2(F,wq)}; Q18=function(n){n.Tx||(n.Tx=!0,n.dispatchEvent("complete"),n.dispatchEvent("error"))}; k8=function(n,Z){var F=VU(n,!isNaN(n.V));Z&&(n.V=NaN);return F}; g.sq=function(n,Z,F){if(wM(Z.B())&&Z.getPresentingPlayerType()!==2){if(g.OC(F))return Z.isFullscreen()&&!Z.B().externalFullscreen&&Z.toggleFullscreen(),F.preventDefault(),!0}else{var y=g.OC(F);y&&Z.pauseVideo();g.R8(n,void 0,!0);y&&(g.Em(n),F.preventDefault())}return!1}; pu=function(n){this.AG=UO(n)}; qco=function(n,Z,F,y,l,m){this.ids=n;this.N=Z;this.X=F;this.V=y;this.T=l;this.zJ=m}; wKe=function(){}; oTe=function(n,Z){var F,y,l,m;g.A(function(a){if(a.N==1)return F=n.B(),y=g.Cv(F,g.uf(Z)),y.N?g.x(a,y.N,3):(l=y.getValue(),a.ST(2));a.N!=2&&(l=a.X);m=l;return a.return(Tp3(Z,m))})}; g.P$f=function(n){var Z="";g.l7(n,function(F,y){Z+=y;Z+=":";Z+=F;Z+="\r\n"}); return Z}; mQ=function(n,Z,F,y){function l(a){var D=!(a.status!==204&&a.status!==200&&!a.response),p;a={succ:""+ +D,rc:a.status,lb:((p=a.response)==null?void 0:p.byteLength)||0,rt:((0,g.tP)()-m).toFixed(),shost:g.g1(n),trigger:Z};Ju7(a,n);F&&F(a);y&&!D&&y(new g.Xv("pathprobe.net",a))} var m=(0,g.tP)();g.jM(n,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:l,onTimeout:l})}; CD=function(n){return n.ye&&n.enableServerStitchedDai}; cLn=function(n,Z,F,y){var l=Z*2,m=F*2;return n[l]n.previousQuality)return 1;if(n.quality1)}; cu7=function(n,Z){var F=n.B();F=n.Bx&&F.j("html5_onesie_preload_use_content_owner");var y=n.Tl;F=F===void 0?!1:F;var l=fO(Z.Y.experiments,"debug_bandaid_hostname");if(l)Z=qL(Z,l);else if(F&&(y==null?0:y.url)&&!Z.X){var m=qv(27,new g.yD(y.url));Z=qL(Z,m)}else Z=(m=Z.N.get(0))==null?void 0:m.location.clone();if(Z&&n.videoId){m=ZJ(n.videoId);n=[];if(m)for(m=g.Y(m),F=m.next();!F.done;F=m.next())n.push(F.value.toString(16).padStart(2,"0"));Z.set("id",n.join(""));return Z}}; w_=function(n,Z){var F;for(F=0;F1||n&&n.split(")"),null;if(n.indexOf("(")>0){if(/"|'/.test(n))return null;Z=/([\-\w]+)\(/g;for(var F;F=Z.exec(n);)if(!(F[1].toLowerCase()in Gp3))return null}return n}; RVY=function(n,Z,F){return(n=n.levels[Z])?n.Ec(F):-1}; cb=function(n){var Z=n.state,F=Z.pending;F>n.G7&&(F=n.G7);F!==0&&(Ip.Wd(n.output,Z.XX,Z.ZS,F,n.tO),n.tO+=F,Z.ZS+=F,n.Jv+=F,n.G7-=F,Z.pending-=F,Z.pending===0&&(Z.ZS=0))}; Pe=function(n){var Z,F,y;return n.playerResponse&&n.playerResponse.paidContentOverlay&&n.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.e((Z=n.w5)==null?void 0:(F=Z.playerOverlays)==null?void 0:(y=F.playerOverlayRenderer)==null?void 0:y.playerDisclosure,gTf)||null}; g.ok=function(n,Z,F){g.gU(iT7)(void 0,n,Z,F,void 0)}; IWi=function(n){if(n.jY&&n.Xt){var Z=f7(n.Vm,"od")==1,F=yp().N,y=n.Xt,l=n.Ow?n.Ow.getName():"ns",m=n.p$,a=new g.Kz(wF(F),F.getHeight());F=n.j7();n={hbg:l,p$:m,p1s:a,j7:F,jH:n.Bj.jH,n6p:Z};if(Z=y.X){Z.gS();l=Z.Pr;m=l.V.N;var D=a=null;l.C!=null&&m&&(a=l.T,a=new g.e_(a.left-m.left,a.top-m.top),D=new g.Kz(m.right-m.left,m.bottom-m.top));l=F?Math.max(l.N,l.S):l.N;F={hbg:Z.getName(),p$:a,p1s:D,j7:F,n6p:!1,jH:l}}else F=null;F&&C$8(y,n,F)}}; pa=function(n){return u43[n]||"LATENCY_ACTION_UNKNOWN"}; g.qh=function(n){this.CJ=n}; VVp=function(n,Z){Z>0&&(n.X=Z,n.J.style.height=n.X+"px")}; R9=function(n,Z,F,y){var l=this;this.V=n;this.cpn=Z;this.mQ=F;this.N=y;this.X=new Map;this.S=new Map;this.Pr=this.L=NaN;this.C=!1;this.J=this.xd="";this.isSeeking=!1;this.Ns=0;this.T=new bT8(F);this.L6=F.L6;this.mQ.subscribe("statechange",this.Tx,this);this.mQ.subscribe("SEEK_TO",function(){l.cA()}); this.mQ.subscribe("SEEK_COMPLETE",function(){aCe(l)}); this.xd=this.J=this.cpn}; XKU=function(n,Z){Z=LC(n,Z)+1;return Z0){l={};F=g.Y(F);for(y=F.next();!y.done;y=F.next())m=y.value,y=m.drmFamily,m=m.url,y&&m&&(l[hu[y]]=m);n.by=l}if(l=Z.drmParams)n.drmParams=l;if(l=Z.dashManifestUrl)n.yc=g.pQ(l,{cpn:n.clientPlaybackNonce});if(l=Z.hlsManifestUrl)n.hlsvp=l;if(l=Z.probeUrl)n.probeUrl= iY(g.pQ(l,{cpn:n.clientPlaybackNonce}));if(Z=Z.serverAbrStreamingUrl)n.r4=new g.yD(Z,!0)}; JY3=function(n){var Z=n.S,F=tIQ(Z);F&&(F.startSecs+=n.Wr,n.loader.EN(n.bY,F,Z.N$,Z.iz()))}; dI=function(n,Z,F,y,l,m,a){Ti(n,F*1E3,a);l<=0||F<=0||(Z==null?0:g.b(Z,16))||(Z==null?0:g.b(Z,32))||(S8(F,l*.25,y)&&(m&&!Hb(n,"first_quartile")&&m("first"),n.GN("first_quartile")),S8(F,l*.5,y)&&(m&&!Hb(n,"midpoint")&&m("second"),n.GN("midpoint")),S8(F,l*.75,y)&&(m&&!Hb(n,"third_quartile")&&m("third"),n.GN("third_quartile")))}; ah=function(){g.xu.call(this);var n=this;this.X=!1;this.N=y88();this.N.listen("networkstatus-online",function(){if(n.X&&g.N5("offline_error_handling")){var Z=zU().get("errors",!0);if(Z){for(var F in Z)if(Z[F]){var y=new g.FV(F,"sent via offline_errors");y.name=Z[F].name;y.stack=Z[F].stack;y.level=Z[F].level;g.hp(y)}zU().set("errors",{},2592E3,!0)}}})}; g.xc=function(n){for(var Z=[],F=0,y=0;y>6|192:((l&64512)==55296&&y+1>18|240,Z[F++]=l>>12&63|128):Z[F++]=l>>12|224,Z[F++]=l>>6&63|128),Z[F++]=l&63|128)}return Z}; fM=function(n,Z,F,y,l,m,a,D,p,L,q,w){y=y===void 0?"":y;this.type=n;this.bY=Z;this.range=F;this.source=y;this.ph=q;this.clipId=w===void 0?"":w;this.L=[];this.C="";this.O8=-1;this.Pr=0;this.C=y;this.O8=l>=0?l:-1;this.startTime=m||0;this.duration=a||0;this.N=D||0;this.X=p>=0?p:this.range?this.range.length:NaN;this.T=this.range?this.N+this.X===this.range.length:L===void 0?!!this.X:L;this.range?(this.V=this.startTime+this.duration*this.N/this.range.length,this.J=this.duration*this.X/this.range.length, this.S=this.V+this.J):HTT(this)}; BpQ=function(n){n.N.forEach(function(Z){djK(n,Z)})}; Q87=function(n,Z,F,y,l,m){var a=MT(n.X.get(),"SLOT_TYPE_PLAYER_BYTES"),D=MT(n.X.get(),"SLOT_TYPE_IN_PLAYER"),p=$e(n.X.get(),"LAYOUT_TYPE_SURVEY",D);y=DW(n,Z,F,y);var L=[new nz(n.N,a)];F=[new lB(n.N,a),new ZX(n.N,F),new ir(n.N,p)];if(y instanceof C)return y;m=m({slotId:a,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:y,slotFulfillmentTriggers:L,slotExpirationTriggers:F},{slotId:D,layoutId:p});D=m.cGu;return[{slotId:a,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:y,slotFulfillmentTriggers:L,slotExpirationTriggers:F,Gx:"core",clientMetadata:new lb([new mW(m.lxg),new e4({O9:n.O9(Z)})]),adSlotLoggingData:l},D]}; $Ij=function(n,Z,F){var y=g.kq(n.provider);YR8(n,y,Z,0,F);Z9(n,y);MI7(n)}; VUY=function(n){var Z;if((Z=n.KR)==null||!Z.R6()){if(n.mediaElement)try{n.WJ=n.mediaElement.playVideo()}catch(y){PW(n,"err."+y)}if(n.WJ){var F=n.WJ;F.then(void 0,function(y){if(!(g.b(n.playerState,4)||g.b(n.playerState,256)||n.WJ!==F||y&&y.name==="AbortError"&&y.message&&y.message.includes("load"))){var l="promise";y&&y.name&&(l+=";m."+y.name);PW(n,l);n.w$=!0;n.videoData.h2=!0}})}}}; g.eM=function(n){g.W2(n.info.bY.info)||n.info.bY.info.dV();if(n.T!==-1)return n.T;if(n.N&&nYf(n.N))return n.T=nYf(n.N),n.T;if(g.W2(n.info.bY.info)){var Z=g.sj(n);for(var F=n.info.bY.N,y=NaN,l=NaN,m=0;Jn(Z,m);){var a=d3(Z,m);a.type===1936286840?l=a.data.getUint32(a.dataOffset+8):a.type===1836476516?l=g.HL(a):a.type===1952867444&&isNaN(y)&&(y=g.rv(a));m=x$(a.type)?m+8:m+a.size}!l&&F&&(l=dJ(F));Z=y/l}else Z=new lY(g.sj(n)),F=n.S?Z:new lY(new DataView(n.info.bY.N.buffer)),y=Fi(F),F=Z.pos,Z.pos=0,db(Z)? Wy(Z,231)?(y=LG(Z)*y/1E9,Z.pos=F,Z=y):(Z.pos=F,Z=NaN):(Z.pos=F,Z=NaN);n.T=Z||n.info.V;return n.T}; g.CE=function(n,Z,F,y,l){Z=Z===void 0?{}:Z;F=F===void 0?uMT[n]:F;y=y===void 0?ZBe[n]:y;l=l===void 0?Fff[n]:l;g.FV.call(this,F,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:n},Z));this.type=n;this.message=F;this.level=y;this.N=l;Object.setPrototypeOf(this,g.CE.prototype)}; lTe=function(){var n=KIi,Z=o9e(function(F){n.apply(void 0,arguments);yFT(Z)}); return Z}; sL3=function(n){var Z=4093624447,F;for(F=0;F<=31;F++,Z>>>=1)if(Z&1&&n.QX[F*2]!==0)return 0;if(n.QX[18]!==0||n.QX[20]!==0||n.QX[26]!==0)return 1;for(F=32;F<256;F++)if(n.QX[F*2]!==0)return 1;return 0}; j8=function(n){n.N!=null&&n.L!==-1&&(n.N.ez(n.L),n.N.ez(n.r5),n.r5=-1,n.L=-1)}; var k7K=function(n,Z,F,y,l,m){return N$[K[11]](this,52,n,Z,F,y,l,m)}; mI3=function(n,Z){n.ED("dataloaded",Z,Z.getVideoData());n.seekTo(Infinity);n.playVideo()}; oO7=function(n){n=n.AF.pY;var Z;if(Z=n&&n.getAttribute)Z=/-[a-z]/.test("googleAvInapp")?!1:aTU&&n.dataset?"googleAvInapp"in n.dataset:n.hasAttribute?n.hasAttribute("data-"+KQU()):!!n.getAttribute("data-"+KQU());Z&&(yp().X=!0)}; Kfj=function(n){n.N?(n.V.G(n.N,"message",n.K2),n.V.G(n.N,"keystatuseschange",n.gF),n.N.closed&&n.N.closed.then(mz(function(){n.onClosed()}),null)):n.X&&(KV(n.V,n.X,["mskeymessage", "webkitkeymessage"],n.vD),KV(n.V,n.X,["mskeyerror","webkitkeyerror"],n.xf),KV(n.V,n.X,["mskeyadded","webkitkeyadded"],n.Rc))}; NdY=function(n){var Z=[],F=[];g.l7(n,function(y,l){if(!(l in Object.prototype)&&typeof y!="undefined")switch(Array.isArray(y)&&(y=y.join(",")),y=[l,"=",y].join(""),l){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":Z.unshift(y);break;case "req":case "url":case "referrer":case "iframe_loc":F.push(y);break;default:Z.push(y)}}); return Z.concat(F)}; DIi=function(n,Z){var F=g.ef(n,0,1937011556),y=g.ef(n,0,1953654136);if(!F||!y||n.getUint32(F.offset+12)>=2)return null;var l=new DataView(Z.buffer,Z.byteOffset,Z.length),m=g.ef(l,0,1937011556);if(!m)return null;Z=l.getUint32(m.dataOffset+8);y=l.getUint32(m.dataOffset+12);if(y!==1701733217&&y!==1701733238)return null;y=new d03(n.byteLength+Z);UF(y,n,0,F.offset+12);y.data.setInt32(y.offset,2);y.offset+=4;UF(y,n,F.offset+16,F.size-16);UF(y,l,l.byteOffset+m.dataOffset+8,Z);UF(y,n,F.offset+F.size,n.byteLength- (F.offset+F.size));F=g.Y([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(l=F.next();!l.done;l=F.next())l=g.ef(n,0,l.value),y.data.setUint32(l.offset,l.size+Z);n=g.ef(y.data,0,1953654136);y.data.setUint32(n.offset+16,2);return y.data}; M7=function(){da.apply(this,arguments)}; CbQ=function(n){return vO(function(){return uZ(n,n.next())})}; TM=function(n,Z,F,y){var l,m,a=F.ib;n[Z]=function(D,p,L){return a(D,p,L,m||(m=LU(q7,wc,TM,y).w0),l||(l=i4o(y)))}}; QV=function(n){this.value=n}; qS=function(n){var Z=g.B0({"aria-haspopup":"true"});g.dV.call(this,Z,n);this.listen("keydown",this.W1)}; WE=function(){return{U:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},D:[{U:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{U:"path",Z:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}}; cpQ=function(n){var Z=this;this.X=void 0;this.N=!1;n.addEventListener("beforeinstallprompt",function(F){F.preventDefault();Z.X=F}); n.addEventListener("appinstalled",function(){Z.N=!0},{once:!0})}; JG=function(){return{U:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Z:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}}; FG7=function(n){n.lY=Math.max(n.lY,n.S-n.PV);n.Tx=Math.max(n.Tx,n.J-n.h2);n.Wr=0}; Ane=function(n){if(!pon(n,n.jT)||Hs(n.audioTrack)&&Hs(n.videoTrack))return!1;if(n.policy.X)if(n.policy.C){var Z;if((Z=n.w5)==null)var F=0;else{F=!1;Z=g.Y(Z.N.entries());for(var y=Z.next();!y.done;y=Z.next())if(y=g.Y(y.value),y.next(),y=y.next().value,y.event!=="predictStart"&&y.uU===5){var l=void 0,m=void 0;((l=y)==null?0:l.Sj)&&Date.now()-((m=y)==null?NaN:m.Sj)>1E4?y.uU=1:F=!0}}if(F)return!1}else if(F=!1,n.Tx.X===2?F=!0:n.Tx.X===3&&(Ae(n),n.loader.Kn(),l=Ww(n.audioTrack,n.loader.isSeeking()).XI, Z=Ww(n.videoTrack,n.loader.isSeeking()).XI,y=n.loader.getCurrentTime()||0,l=NL(n,l,y),Z=NL(n,Z,y),Z=Math.min(l,Z),y=n.Tx,Z>=y.S?(y.Xp("sdai",{haltrq:Z,est:y.S}),Z=!0):Z=!1,Z&&(F=!0)),F&&n.policy.J&&n.loader.Xp("sabrcrq",{waitad:1}),F)return!1;n.policy.ZD&&(n.zx=r3(n,n.audioTrack),n.lY=r3(n,n.videoTrack));if(!n.T)return n.policy.J&&n.loader.Xp("sabrcrq",{nopolicy:1}),!0;if(n.mQ.Fw())return n.policy.J&&n.loader.Xp("sabrcrq",{utc:1}),!0;if(n.X.J)return n.policy.J&&n.loader.Xp("sabrcrq",{audio:1}),!0; if(n.policy.Dt&&n.X.Pr)return n.policy.J&&n.loader.Xp("sabrcrq",{constraint:1}),!0;if(!n.T.targetAudioReadaheadMs||!n.T.targetVideoReadaheadMs)return n.policy.J&&n.loader.Xp("sabrcrq",{noreadahead:1}),!0;if(n.policy.S&&n.loader.HP())return n.policy.J&&n.loader.Xp("sabrcrq",{seekToHead:1}),!0;F=Math.min(Jf(n.loader,n.audioTrack)*1E3,n.T.targetAudioReadaheadMs);Z=Math.min(Jf(n.loader,n.videoTrack)*1E3,n.T.targetVideoReadaheadMs);var a=Math.min(F,Z),D=n.mQ.getCurrentTime()*1E3,p=ghT(n,D);y=p.Qz;l=p.Nq; m=p.R2;p=p.FC;var L=y1?Z=Z.c2T:(F=Lo(F,$I(n,n.hF(Z,F),Z)),Z=Math.max(n.S,F.timedOut)+Z.OC*(n.T-n.S)+.25*n.J,Z=Z>3?1E3*Math.pow(1.6,Z-3):0);return Z===0?!0:n.Pr+Z<(0,g.tP)()}; Lf7=function(n,Z,F,y,l,m,a,D,p,L,q,w,T,P){Z=RAY(n,Z,F,l,m,D,p,L,q,w,T,P);if(Z instanceof C)return Z;n=EN7(n,F,m,a,y,D.t2,Z);return n instanceof C?n:n.zU.concat(n.TA)}; hM=function(n,Z,F){n.Ns=Z;n.IW=F;var y=aH(n),l=n.T.N,m=q1o(n.T,n.Ns),a=g.xq("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.ve(m,!0),DURATION:g.ve(l,!0)}),D=LC(n.N,m*1E3);D=n.N[D].title;n.update({ariamin:Math.floor(n.T.X),ariamax:Math.floor(l),arianow:Math.floor(m),arianowtext:D?D+" "+a:a});l=n.clipStart;m=n.clipEnd;n.Ur&&n.api.getPresentingPlayerType()!==2&&(l=n.Ur.startTimeMs/1E3,m=n.Ur.endTimeMs/1E3);l=bz(n.T,l,0);D=bz(n.T,m,1);a=n.api.getVideoData();m=g.mk(Z,l,D);F=(a==null?0:g.ww(a))?1:g.mk(F, l,D);Z=Rx(n,Z,y);g.a$(n.Kh,"transform","translateX("+Z+"px)");n.api.j("delhi_modern_web_player")&&n.api.j("delhi_modern_web_player_cutout")&&iK(n,Z);Cw(n,y,l,m,"PLAY_PROGRESS");(a==null?0:HW(a))?(Z=n.api.getProgressState().seekableEnd)&&Cw(n,y,m,bz(n.T,Z),"LIVE_BUFFER"):Cw(n,y,l,F,"LOAD_PROGRESS");if(n.api.j("web_player_heat_map_played_bar")){var p;(p=n.V[0])!=null&&p.C.setAttribute("width",(m*100).toFixed(2)+"%")}}; qqT=function(n){woK(function(){var Z=uoT();n.X!=null&&(Z.sdk=n.X);var F=xW(Gf);F.N!=null&&(Z.avms=F.N.getName());return Z})}; g.WA=function(n){var Z=AS7;if(MW(n,"display")!="none")return Z(n);var F=n.style,y=F.display,l=F.visibility,m=F.position;F.visibility="hidden";F.position="absolute";F.display="inline";n=Z(n);F.display=y;F.position=m;F.visibility=l;return n}; g.EF=function(n,Z,F,y,l,m){g.LT.call(this,n);this.videoId=F;this.dC=l;this.eventId=m;this.C={};this.X=null;n=y||g.EG(Z).hl||"";n=n.split("_").join("-");this.V=TQ(Z,{hl:n})}; oYj=function(){var n=[];g$(TAi,function(Z){n.push(Z)}); return n}; PV8=function(){var n=PX();if(n){var Z=n.isTypeSupported;return function(y,l){return Z(l,y)}}var F=Nt(); return F&&(F.addKey||F.webkitAddKey)?function(y,l){return!!F.canPlayType(y,l)}:function(){return!1}}; JFT=function(n){for(var Z={},F=0;F0&&n.aT&&(y.sort(),g.yi(new g.FV("Player client parameters changed after startup",y)));n.userAge=bY(n.userAge,Z.user_age);n.y_=go(n.y_,Z.user_display_email);n.userDisplayImage=go(n.userDisplayImage,Z.user_display_image);g.xD(n.userDisplayImage)||(n.userDisplayImage= "");n.userDisplayName=go(n.userDisplayName,Z.user_display_name);n.iU=go(n.iU,Z.user_gender);n.csiPageType=go(n.csiPageType,Z.csi_page_type);n.csiServiceName=go(n.csiServiceName,Z.csi_service_name);n.oA=C6(n.oA,Z.enablecsi);n.pageId=go(n.pageId,Z.pageid);if(F=Z.enabled_engage_types)n.enabledEngageTypes=new Set(F.split(","));Z.living_room_session_po_token&&(n.Mt=Z.living_room_session_po_token.toString())}; S1j=function(n,Z,F,y,l){By.call(this,n,{U:"svg",K:"ytp-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},D:[{U:"circle",K:"ytp-timed-pie-countdown__background",Z:{r:"10",cx:"10",cy:"10"}},{U:"circle",K:"ytp-timed-pie-countdown__inner",Z:{r:"5",cx:"10",cy:"10"}},{U:"circle",K:"ytp-timed-pie-countdown__outer",Z:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",Z,F,y,l);this.T=this.Vg("ytp-timed-pie-countdown__inner");this.X=Math.ceil(2*Math.PI*5);this.hide()}; SM=function(){var n=g.Di("yt.networklessRequestController.instance");n||(n=new ca,g.pv("yt.networklessRequestController.instance",n),g.N5("networkless_logging")&&g.me().then(function(Z){n.aZ=Z;Mqj(n);n.T.resolve();n.Kv&&Math.random()<=n.wT&&n.aZ&&iWY(n.aZ);g.N5("networkless_immediately_drop_sw_health_store")&&kQ8(n)})); return n}; va=function(n,Z,F){F=F===void 0?null:F;var y=y===void 0?0:y;return new Va(g.jf(n.Y.experiments,Z)||y,F?n.Y.j(F):!1)}; L1=function(n){this.value=n}; sxK=function(n){return n.isTimeout?"NO_BID":"ERR_BID"}; wT=function(n){this.value=n}; mPU=function(n){var Z=window;Z.ywc&&delete Z.ywc[n]}; jLe=function(n,Z,F,y,l,m,a){F=F===void 0?[]:F;y=y===void 0?"":y;l=l===void 0?"":l;var D=YK(n.N).Fe,p=n.player.getVideoData(1);p&&p.getPlayerResponse();p&&p.t2();F=ALf(Z,F,D,YK(n.N).XF);WK8(YK(n.N).IX,y,F.bC,F.DF,Z,l,m,a)}; g.b=function(n,Z){return!!(n.state&Z)}; UIT=function(){}; PK=function(n){return(0,g.tP)()-n.C>=4E3}; Fd=function(n,Z,F,y){this.initRange=F;this.indexRange=y;this.N=null;this.T=!1;this.C=0;this.V=this.tU=this.X=null;this.info=Z;this.Er=new s2(n)}; C9=function(n,Z,F){iR.call(this,n);this.V=Z;this.N="w";this.X="z";CR(this,F)}; NAU=function(n){n.XH.style.removeProperty("height");for(var Z=g.Y(Object.keys(n.fR)),F=Z.next();!F.done;F=Z.next())VJn(n,F.value);Ik(n);hM(n,n.Ns,n.IW)}; EYi=function(n){(n===void 0?0:n)?(n=hqp().filter(function(Z){return Z.startsWith("1")}),g.Oh("yt-player-performance-cap-active-set",n,2592E3)):g.Oh("yt-player-performance-cap-active-set",[],2592E3)}; OBj=function(n){n.Tx.clearAll();n.X.clear();n.N.clear();n.S.clear();n.yg=[];n.C=null;n.R0.clear();n.aY.clear();n.Pr=[];n.r5=[];n.ud=[];n.h2=[];n.N1.clear();n.Z8.clear();n.cV.clear();n.d5.clear();n.L=!1;n.EH=0;n.Ns=!1;n.fR=!1;n.GK=0;n.PV=0;n.Hx=!1;n.nm=!1;n.T="";dXj(n.app.iG());OE(n.app.iG(),n.playback,!1);n.Wr.clear();n.J.isActive()&&M4(n)}; qa=function(n,Z,F,y,l){var m=F.bb,a,D;n[Z]=function(p,L,q){return m(p,L,q,D||(D=LU(xo,o1,qa,y).w0),a||(a=PP(y)),l)}}; KLT=function(n){var Z=[];n=g.Y(n.uN.values());for(var F=n.next();!F.done;F=n.next())F=F.value.trigger,F instanceof BC&&Z.push(F.breakDurationMs);return Z}; UE=function(n,Z){this.X=n;this.T=Z===void 0?!1:Z;this.N={}}; g.Mn=function(n,Z,F){return g.$5(n,[Z],{mode:"readwrite",Or:!0,commit:tr()},function(y){return g.nE(y.objectStore(Z),F)})}; uY7=function(n){if(n.NF!==void 0){var Z=fu;fu=!0;try{for(var F=n.NF;F!==void 0;F=F.BM){var y=F.xl;y.Qq||(n=void 0,y.Qq=!0,uY7(y),(n=y.vv)==null||n.call(y,y))}}finally{fu=Z}}}; var uno=function(){return $d[K[11]](this,72)}; g.AM=function(n){g.R.call(this,{U:"div",s8:["ytp-error"],Z:{role:"alert"},D:[{U:"div",K:"ytp-error-content",D:[{U:"div",K:"ytp-error-icon-container",D:[{U:"svg",Z:{fill:"#fff",viewBox:"0 0 48 48"},D:[{U:"path",Z:{d:"M0 0h48v48H0V0z",fill:"none"}},{U:"path",Z:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{U:"div",K:"ytp-error-content-wrap", D:[{U:"div",K:"ytp-error-content-wrap-reason",E8:"{{content}}"},{U:"div",K:"ytp-error-content-wrap-subreason",E8:"{{subreason}}"}]}]}]});this.api=n;this.keys=[];this.T=!1;n.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.XJ)}; T3p=function(n){if(!n.N){var Z=g.je(function(y){var l=(0,g.tP)();y&&l<=631152E6&&(n.mQ.Xp("ytnerror",{issue:28799967,value:""+l}),l=(new Date).getTime()+2);return l},n.Y.j("html5_validate_yt_now")),F=Z(); n.N=function(){return Math.round(Z()-F)/1E3}; n.mQ.tW()}return n.N}; q9i=function(n){return n.isLive&&(0,g.tP)()-n.jT>=n.Tx}; q2=function(n,Z){Z.stack&&(n.stack+="\n"+Z.stack);return n}; fa=function(n,Z){var F=null;return(new g.O2(function(y,l){F=g.JY(function(){y(Z)},n); F==-1&&l(Error("Failed to schedule timer."))})).Mc(function(y){g.KQ.clearTimeout(F); throw y;})}; PR3=function(n){try{var Z=cFT(n,!0),F=cFT(n,!1);return{id:Z,size:F}}catch(y){return{id:-1,size:-1}}}; Wa=function(n,Z,F){F=F===void 0?!1:F;var y,l,m,a;g.A(function(D){if(D.N==1){y=n.B();if(F&&(!g.TH(y)||V7(Z)!=="embedded")||Z.s7||V7(Z)!=="adunit"&&(g.f4(y)||Ne(y)||g.Fu(y)||g.yb(y)||g.Uo(y)||h6(y)==="WEB_CREATOR"))return D.return();l=g.Cv(y,g.uf(Z));return l.N?g.x(D,l.N,3):(m=l.getValue(),D.ST(2))}D.N!=2&&(m=D.X);a=m;return D.return(VrY(n,Z,a))})}; vYe=function(n){return new Promise(function(Z){setTimeout(Z,n)})}; PH=function(n){if(!n.playerVars)return new JT("No playerVars available in InstreamVideoAdRenderer.");var Z,F;if(n.elementId==null||n.playerVars==null||n.playerOverlay==null||((Z=n.playerOverlay)==null?void 0:Z.instreamAdPlayerOverlayRenderer)==null&&((F=n.playerOverlay)==null?void 0:F.playerOverlayLayoutRenderer)==null||n.pings==null||n.externalVideoId==null)return new JT("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:n});Z=jy(n.playerVars);F=Number(Z.length_seconds);isNaN(F)&& (F=0,wU("Expected valid length seconds in player vars but got NaN"));return{layoutId:n.elementId,au:n,playerVars:Z,M9:n.playerVars,MK:F}}; r_=function(n,Z,F,y,l,m,a){By.call(this,n,m,a,Z,F,y,l);this.playerProgressOffsetMs=0;this.X=!1}; Xc=function(n,Z){Z===void 0||!Z||n.indexRange&&n.initRange&&n.n6||tm(n,new kA("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));Z={lmt:n.N.info.lastModified,docid:n.policy.V,fmtid:n.N.info.id,type:n.N.info.mimeType.split(";")[0],csz:n.chunkSize,clen:n.V*n.chunkSize+n.X};n.crypto&&(Z.ck=n.J,Z.civ=n.C);var F="local://localhost/videoplayback?"+C8(Z),y,l;Z={itag:+n.N.info.itag,mimeType:n.N.info.mimeType,bitrate:n.N.info.Qg*8,lastModified:String(n.N.info.lastModified),initRange:(y= n.initRange)==null?void 0:gxQ(y),indexRange:(l=n.indexRange)==null?void 0:gxQ(l),url:F};if(y=n.N.info.N)Z.xtags=y;if(y=n.N.info.video)if(Z.quality=y.quality,Z.qualityLabel=y.qualityLabel,Z.width=y.width,Z.height=y.height,y=y.fps)Z.fps=y;if(n=n.N.info.audio){if(y=n.sampleRate)Z.audioSampleRate=String(y);if(n=n.numChannels)Z.audioChannels=n}return Z}; ITQ=function(n,Z,F){n.playback.Mh();n.playback.seekTo(Z,F);n.playback.playVideo()}; H0=function(n,Z,F,y){var l=new g.ko(Z,void 0,"Video Override");g.$K.call(this,y.text||"",n,Z,F,"Video Override",function(){g.$H(F,l)}); var m=this;g.gi(this.element,"ytp-subtitles-options-menu-item");this.setting=y.option.toString();n=y.options;this.settings=g.hh(n,this.bF,this);this.T=l;g.S(this,this.T);Z=new g.dV({U:"div",K:"ytp-menuitemtitle",E8:"Allow for a different caption style if specified by the video."},0);g.S(this,Z);this.T.Dx(Z,!0);this.X=new g.dV({U:"div",K:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},D:[{U:"div",K:"ytp-menuitem-label",E8:"On"}]},-1);g.S(this,this.X);this.T.Dx(this.X,!0);this.G(this.X.element, "click",function(){$Vj(m,!0)}); this.N=new g.dV({U:"div",K:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},D:[{U:"div",K:"ytp-menuitem-label",E8:"Off"}]},-2);g.S(this,this.N);this.T.Dx(this.N,!0);this.G(this.N.element,"click",function(){$Vj(m,!1)}); this.fK(g.Yn(n,this.bF))}; yDQ=function(n,Z,F){if(!(n.videoTrack.bY.Pm()&&n.audioTrack.bY.Pm()&&n.KR&&n.KR.X&&n.KR.N))return!1;if(F&&n.eT.isManifestless&&(n.videoTrack.S===-1||n.audioTrack.S===-1))return!0;var y=CT(n.videoTrack,Z,F);if(isNaN(y))return!1;n=CT(n.audioTrack,n.policy.IW?Z:y,F);return isNaN(n)?!1:!0}; cq7=function(n){if(n!==wq)throw Error("illegal external caller");}; fTQ=function(n,Z){n.N&&(g.b(Z,8)&&n.T?(n.T=!1,n.KJ(),n.N.start()):(g.b(Z,2)||g.b(Z,64))&&n.videoId&&(n.videoId=null))}; Tu=function(n){var Z=n>>>0;b8=Z;XV=(n-Z)/4294967296>>>0}; gbo=function(n,Z,F){var y=g.S7.apply(3,arguments),l=n===6?"ERROR":"WARNING",m="b"+F;g.ZW(new (Function.prototype.bind.apply(g.FV,[null,m].concat(g.t(y)))),l);y.unshift(m);y=y.join(", ");l=AFT.get(Z);if(!l){l="ytplog."+Z;m=5;try{window.localStorage&&!isNaN(+window.localStorage[l])&&(m=+window.localStorage[l]),window.sessionStorage&&!isNaN(+window.sessionStorage[l])&&(m=+window.sessionStorage[l])}catch(p){}AFT.set(Z,m);l=m}if(!(n0&&(l.N=Math.min(l.N+a,10),l.X=m);l.N>0?(l.N--,l=!0):l=!1;if(l)typeof y==="function"&&(y=y()),console.log("plyr."+Z,y);else{var D;y=((D=xIT.get(Z))!=null?D:0)+1;xIT.set(Z,y);y%100===1&&console.warn("plyr","plyr."+Z+" is chatty, dropping logs.")}}}; Vd=function(n,Z){var F={},y;for(y in n)F[y]=Z.call(void 0,n[y],y,n);return F}; f9P=function(n,Z){n.__closure__error__context__984382||(n.__closure__error__context__984382={});n.__closure__error__context__984382.severity=Z}; g.xi=function(n){if(n.simpleText)return n=document.createTextNode(n.simpleText),n;var Z=[];if(n.runs)for(var F=0;F>>8&255;n.XX[n.VM+n.q$*2+1]=Z&255;n.XX[n.YH+n.q$]=F&255;n.q$++;Z===0?n.QX[F*2]++:(n.matches++,Z--,n.QX[(rm[F]+256+1)*2]++,n.L5[(Z<256?Rp[Z]:Rp[256+(Z>>>7)])*2]++);return n.q$===n.Q2-1}; muf=function(n){for(var Z=0,F=0,y={};F=l){l=bB7(a.url);g.xD(l)&&(Z[y]=l);break}}(n=n.pop())&&n.width>=1280&&(n=bB7(n.url),g.xD(n)&&(Z["maxresdefault.jpg"]=n));return Z}; Xo3=function(n,Z){var F;((F=n.S.get(Z))!=null?F:[]).forEach(function(y){n.N===0&&n.L6.RR("transitiondetector",y);if(n.N===1){var l=n.T,m;(m=l.N.get(y))==null||m.delay.dispose();l.N.delete(y)}}); n.S.delete(Z)}; g.nR=function(){return!!FH(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; LW=function(n,Z){(n.loader=Z)?c4(n,!0):Cf(n)}; zq8=function(n,Z,F,y){Z={opportunityType:Z};n&&(y||F)&&(y=g.Yn(y||[],function(l){return f8(n,l)}),Z.debugData=Object.assign({},F&&F.length>0?{associatedSlotId:F}:{},y.length>0?{slots:y}:{})); return Z}; Hy=function(n){return Zg(n.adLayoutMetadata)?(n=g.e(n.renderingContent,bW))&&n.pings?!0:!1:!1}; BvQ=function(n){return(n=n.fF)&&n.showError?n.showError:!1}; Ja=function(n,Z,F,y,l){l=l===void 0?null:l;this.T=n;this.uY=Z;this.layoutId=y;this.V=0;this.C=null;this.S=void 0;this.N=new Set;this.X=Array.from(this.T.get("progress")||[]);this.X.sort(function(m,a){return(m.offsetMilliseconds||0)-(a.offsetMilliseconds||0)}); this.J={adPlacementConfig:F,YD:l}}; g.t6=function(n){if(n instanceof mG)return n.N;throw Error("");}; trf=function(n,Z){n.T=n.V.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:Z},{offset:1,opacity:1}],{duration:200,fill:"forwards"});n.T.addEventListener("finish",function(){n.T=void 0;n.C.start();n.N="lingering"})}; eqi=function(n){var Z=n.videoTrack.bY.index;n.q2=new kK7({Yc:n.policy.Yc,F0:n.policy.L.F0,IH:Z.Xb(),pJ:function(){return Z.pJ()}, Bc:function(){return Z.Bc()}})}; g.ft=function(n,Z,F){if(HB8&&!Z)n=g.KQ.btoa(n);else{for(var y=[],l=0,m=0;m255){var D=Error("go/unicode-to-byte-error");if(F)throw D;y[l++]=a&255;a>>=8}y[l++]=a}n=g.Ee(y,Z)}return n}; fr=function(n,Z,F,y,l,m){var a=dI7++;return new Iq({veType:n,veCounter:a,elementIndex:F,dataElement:Z,youtubeData:y,jspbYoutubeData:l,loggingDirectives:m})}; Rk=function(n){var Z,F;var y=!!n.Pr&&!((Z=n.api.getVideoData())==null?0:Z.isLivePlayback)&&!n.api.PE()&&n.api.getPresentingPlayerType()!==2&&!g.b(n.api.getPlayerStateObject(),2)&&!((F=g.PZ(n.api))==null?0:F.gJ())&&!n.api.isEmbedsShortsMode()&&X_Y(n.api.Rs());n.V!==y&&(n.V=y,n.V?n.N.subscribe("dragstart",n.Tx,n):(n.N.unsubscribe("dragstart",n.Tx,n),n.N.unsubscribe("dragmove",n.C,n),n.N.unsubscribe("dragend",n.S,n),Zo(n)))}; ml=function(n){g.I.call(this);this.N=n;this.dJ=!0;this.uN=new Map;this.S=new Set;this.T=new Set;this.V=new Set;this.C=new Set;this.X=new Set}; BAo=function(n,Z){Sf(n,1,Z.elapsedTimeMs);Px(n,3,Z.videoDecoderName)}; AeQ=function(n){n.policy.N1&&n.policy.JT&&Math.min(kbQ(n.videoTrack),kbQ(n.audioTrack))*1E3>n.policy.r7?g.J3(n.Hx):n.YA()}; OKQ=function(n,Z){n=n.api.getAvailableAudioTracks();n=g.Y(n);for(var F=n.next();!F.done;F=n.next())if(F=F.value,F.getLanguageInfo().getId()===Z)return F;return null}; g_=function(){V5.instance||(V5.instance=new V5);return V5.instance}; Pm=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"standardControlsInitialized",function(){Z.createButton()}); g.ry(this.api.B())&&(this.j("web_watch_pip")||this.j("web_shorts_pip"))&&RS(this.api,"setDocumentPictureInPicture",function(F){Z.setDocumentPictureInPicture(F)})}; l1U=function(n){return window.PressureObserver&&new window.PressureObserver(n)}; OPU=function(){var n,Z,F,y=(n=window.h5vcc)==null?void 0:(Z=n.settings)==null?void 0:(F=Z.getPersistentSettingAsString)==null?void 0:F.call(Z,"cpu_usage_tracker_intervals");if(y!=null){var l;n=(l=JSON.parse(y))!=null?l:[];l=n.filter(function(L){return L.type==="total"}).map(function(L){return L.seconds}); Z=g.Y(Mrn);for(F=Z.next();!F.done;F=Z.next())F=F.value,l.indexOf(F)===-1&&n.push({type:"total",seconds:F});var m,a;(m=window.h5vcc)==null||(a=m.settings)==null||a.set("cpu_usage_tracker_intervals_enabled",1);var D,p;(D=window.h5vcc)==null||(p=D.settings)==null||p.set("cpu_usage_tracker_intervals",JSON.stringify(n))}}; $Sf=function(n,Z,F,y,l){var m=(Z=n.N?n.X[Z]:n.C[Z])&&Z.quality,a=Z&&Z.qualityLabel;a=a?a:"Auto";y&&(a="("+a);n=AOj(n,a,m||"",l);y&&n.D.push(")");(y=(y=Z&&Z.paygatedQualityDetails)&&y.paygatedIndicatorText)&&F&&n.D.push({U:"div",K:"ytp-premium-label",E8:y});return n}; cFT=function(n,Z){Z=Z===void 0?!1:Z;var F=lA(n);if(F===1){Z=-1;for(F=0;F<7;F++){var y=lA(n);Z===-1&&y!==255&&(Z=0);Z>-1&&(Z=Z*256+y)}return Z}y=128;for(var l=0;l<6&&y>F;l++)F=F*256+lA(n),y*=128;return Z?F:F-y}; ORo=function(n,Z){IF(n.C,function(F){return F.V==Z.V})||n.C.push(Z)}; ijf=function(n){return new Promise(function(Z,F){GeU(n,Z,F)})}; NU=function(n,Z){this.N=n;this.X=Z}; uBP=function(){try{var n,Z;return!!((n=window)==null?0:(Z=n.top)==null?0:Z.location.href)&&!1}catch(F){return!0}}; nDe=function(n,Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;Na(n.aW,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",F.slot);for(var y=g.Y(n.X),l=y.next();!l.done;l=y.next())l.value.Wj(F.slot);try{var m=n.N,a=F.slot,D=km(m,a);if(!D)throw new C("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!D.X)throw new C("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(D.N!=="scheduled")throw new C("Tried to enter a slot from stage: "+ D.N,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(d6(D))throw new C("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var p=g.Y(jb(m,a.slotType+"_"+a.slotPhysicalPosition).values()),L=p.next();!L.done;L=p.next()){var q=L.value,w;if(w=D!==q&&d6(q))l=y=void 0,w=!(((l=D.slot.fulfilledLayout)==null?void 0:l.layoutType)==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"&&((y=q.layout)==null?void 0:y.layoutType)==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"); if(w)throw new C("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:q.N},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(T){T instanceof C&&T.yd?(UY(n.aW,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",T.yd,F.slot),wU(T,F.slot,nF(n.N,F.slot),void 0,T.zK)):(UY(n.aW,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",F.slot),wU(T,F.slot));ND(n,F.slot,!0);continue}F=km(n.N,F.slot);F.N!=="scheduled"&&Bx(F.slot,F.N,"enterSlot");F.N="enter_requested"; F.X.hE()}}; bv=function(){g.I.call(this);this.X=null;this.startTime=this.duration=0;this.delay=new g.oB(this.N,null,this);g.S(this,this.delay)}; s0=function(n){n=n===void 0?document:n;var Z,F;n=(F=(Z=n).querySelector)==null?void 0:F.call(Z,"script[nonce]");return n==null?"":n.nonce||n.getAttribute("nonce")||""}; Zw3=function(n){function Z(F){return{toString:function(){return F()}}} n.macros.SURVEY_LOCAL_TIME_EPOCH_S=Z(function(){var F=new Date;return(Math.round(F.valueOf()/1E3)+-1*F.getTimezoneOffset()*60).toString()}); n.macros.SURVEY_ELAPSED_MS=Z(function(){return(Date.now()-n.T).toString()})}; $c=function(n,Z,F,y){if(!n.bY.index.Am(Z,!0))return!1;try{eY(n);for(var l=n.T,m=null,a=l.X.length-1;a>=0;a--){var D=l.X[a];D.info.O8>=Z&&(l.X.pop(),l.T-=kQ(D,l.policy.h2),m=D.info)}m&&(l.V=l.X.length>0?l.X[l.X.length-1].info:l.r5,l.X.length!==0||l.V||Me(l,"r"));l.loader.Xp("mdstm",{rollbk:1,itag:m?m.bY.info.itag:"",popped:m?m.O8:-1,sq:Z,lastslc:l.V?l.V.O8:-1,lastfraget:l.T.toFixed(3)});if(n.policy.N)return n.N=null,!0;y>F?Qo(n,y):n.N=n.bY.iD(Z-1,!1).D4[0]}catch(p){return Z=oG(p),Z.details.reason= "rollbkerr",n.loader.handleError(Z.errorCode,Z.details,Z.severity),!1}return!0}; g.RJf=function(n){return n.t2()&&YA(n)}; yWj=function(n){if(g.N5("enable_web_tiered_gel")){n=MXY[n||""];var Z,F,y,l=xL().resolve(new F0(Dj))==null?void 0:(Z=U5())==null?void 0:(F=Z.loggingHotConfig)==null?void 0:(y=F.eventLoggingConfig)==null?void 0:y.payloadPolicies;if(l)for(Z=0;Z1+Z&&n.api.toggleFullscreen()}; AT=function(n,Z){n.N!==Z&&(n.N=Z,n.X=!0)}; KnQ=function(n){for(var Z=0;Zy&&HoY(n,l,F)===!0&&(y=m)}return y}; tIQ=function(n){return n.data["Cuepoint-Type"]?new Y8(-(Number(n.data["Cuepoint-Playhead-Time-Sec"])||0),Number(n.data["Cuepoint-Total-Duration-Sec"])||0,n.data["Cuepoint-Context"],n.data["Cuepoint-Identifier"]||"",DSn[n.data["Cuepoint-Event"]||""]||"unknown",(Number(n.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; qE7=function(n){var Z=this;this.N={};this.T={};this.vx={yY4:function(){return Z.N}}; this.videoData=n;var F,y=(F=n.T)==null?void 0:F.X;y&&y.length>0?this.X=y:(n=n.getAvailableAudioTracks(),this.X=n.length>0?Hto(n):[]);n=g.Y(pro);for(F=n.next();!F.done;F=n.next())F=F.value,this.N[F]=Lnn[F](this.X);this.V_()}; m$Y=function(n,Z,F,y){y=y===void 0?!1:y;var l=n.X.get(Z),m=n.V.getStartTime(Z),a=n.V.getDuration(Z);n.C=!1;n.Pr=Z;var D=m,p;((p=l==null?void 0:l.N)!=null?p:[n.cpn]).forEach(function(L,q){var w,T=(w=l==null?void 0:l.X[q])!=null?w:a;if(F>=D&&F0&&n.api.getPlayerSize().width<=F;n=n.api.getRootNode();n.classList.toggle("ytp-delhi-modern-compact-controls",Z);F=Z?"8px":"12px";var y=Z?"56px":"72px",l=Z?"56px":"64px",m=Z?"48px":"56px",a=Z?"12px":"20px",D=Z?"72px":"96px";n.style.setProperty("--yt-delhi-pill-height",Z?"40px":"48px");n.style.setProperty("--yt-delhi-pill-top-height", F);n.style.setProperty("--yt-delhi-bottom-controls-height",y);n.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",l);n.style.setProperty("--yt-delhi-big-mode-pill-height",m);n.style.setProperty("--yt-delhi-big-mode-pill-top-height",a);n.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",D)}; Jlf=function(n){n=new IV(n.data,n.offset,n.size,n.type,n.X);var Z=iA(n);n.skip(7);var F=uA(n);if(Z===0){Z=uA(n);var y=uA(n)}else Z=ku(n),y=ku(n);n.skip(2);for(var l=C$(n),m=[],a=[],D=0;Dm?l=0:y[a]>n.buffered[a]&&(a===m-1?l=2:a===m-2&&y[a+1]>n.buffered[a+1]&&(l=3))}n.N.add(Z<<3|(F&&4)|l);Z=Math.ceil(n.track.Zd()*1E3);n.N.add(Z-n.S);n.S=Z;if(l===1)for(n.N.add(m),a=Z=0;a=2&&n.N.add(y[m- 1]-n.buffered[m-1]);F&&n.N.add(F);n.buffered=y}; oD3=function(n,Z){var F=(Z(n.error.message)+":"+Z(n.error.stack)).substring(0,2048);Z=F.length+1;F=Gv(F);var y=new Uint8Array(4+F.length);y.set([42,Z&127|128,Z>>7,n.error.code]);y.set(F,4);return y}; WQ=function(n){return Array.prototype.slice.call(n)}; Pa7=function(n,Z,F,y){CW.call(this,n,{U:"div",K:"ytp-ad-overlay-slot",D:[{U:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",Z,F,y);this.L=[];this.hG=this.zx=this.V=this.yg=this.r5=null;this.aY=!1;this.S=null;this.Tx=0;n=this.Vg("ytp-ad-overlay-container");this.jT=new US(n,45E3,6E3,.3,.4);g.S(this,this.jT);this.T=Pjo(this);g.S(this,this.T);this.T.oY(n);this.X=jRT(this);g.S(this,this.X);this.X.oY(n);this.N=APU(this);g.S(this,this.N);this.N.oY(n);this.hide()}; Mi=function(n,Z,F){var y=this;this.network=n;this.options=Z;this.X=F;this.N=null;if(Z.cuY){var l=new g.uR;this.N=l.promise;g.KQ.ytAtRC&&dD(function(){var m,a;return g.A(function(D){if(D.N==1){if(!g.KQ.ytAtRC)return D.return();m=rhj(null);return g.x(D,Q5(y,m),2)}a=D.X;g.KQ.ytAtRC&&g.KQ.ytAtRC(JSON.stringify(a));g.zA(D)})},2); gdQ().then(function(m){var a,D,p,L;return g.A(function(q){if(q.N==1)return m.bindInnertubeChallengeFetcher(function(w){return Q5(y,rhj(w))}),g.x(q,W9(),2); a=q.X;D=m.getLatestChallengeResponse();p=D.challenge;if(!p)throw Error("BGE_MACIL");L={challenge:p,cW:iJ(p),Lq:a,bgChallenge:new Nv};l.resolve(L);m.registerChallengeFetchedCallback(function(w){w=w.challenge;if(!w)throw Error("BGE_MACR");w={challenge:w,cW:iJ(w),Lq:a,bgChallenge:new Nv};y.N=Promise.resolve(w)}); g.zA(q)})})}else Z.preload&&Rxe(this,new Promise(function(m){g.HX(0,function(){m(ru(y))},0)}))}; ix=function(n){for(var Z=[],F=g.Y(n.N.keys()),y=F.next();!y.done;y=F.next()){y=y.value;var l=n.N.get(y);Z.push(y+"_"+l.maxWidth+"_"+l.maxHeight)}return Z.join(".")}; zZ=function(n){return n==null||typeof n==="string"?n:void 0}; ie=function(n,Z){g.I.call(this);var F=this;this.policy=n;this.D4=Z;this.X=0;this.N=null;this.uP=[];this.T=null;this.vx={Dr:function(){return F.D4}}; this.D4.length===1||g.s6(this.D4,function(y){return!!y.range})}; Sei=function(n,Z){Z<100||wX(Joi,1)}; Q0Y=function(n,Z){n.X=Z}; JBQ=function(n,Z,F,y,l,m,a){if(n.N)return n.N;var D={},p=new Set,L={};if(v1(y)){for(var q in y.N)y.N.hasOwnProperty(q)&&(n=y.N[q],L[n.info.vr]=[n.info]);return L}q=AJP(Z,y,D);m&&l({aftsrt:G7(q)});for(var w={},T=g.Y(Object.keys(q)),P=T.next();!P.done;P=T.next()){P=P.value;for(var J=g.Y(q[P]),U=J.next();!U.done;U=J.next()){U=U.value;var h=U.itag,v=void 0,V=P+"_"+(((v=U.video)==null?void 0:v.fps)||0);w.hasOwnProperty(V)?w[V]===!0?L[P].push(U):D[h]=w[V]:(v=Mr(Z,U,F,y.isLive,p),v!==!0?(a.add(P),D[h]=v, v==="disablevp9hfr"&&(w[V]="disablevp9hfr")):(L[P]=L[P]||[],L[P].push(U),w[V]=!0))}}m&&l({bfflt:G7(L)});for(var f in L)L.hasOwnProperty(f)&&(y=f,L[y]&&L[y][0].K6()&&(L[y]=L[y],L[y]=eMK(Z,L[y],D),L[y]=YEe(L[y],D)));m&&Object.keys(D).length>0&&l({rjr:UQ(D)});Z=g.Y(p.values());for(y=Z.next();!y.done;y=Z.next())(y=F.V.get(y.value))&&--y.Ex;m&&l({aftflt:G7(L)});n.N=g.Vx(L,function(W){return!!W.length}); return n.N}; SE8=function(n,Z,F){F!=null&&F.cM||(n.FD=[]);n.policy.pD?(Z=g.Ad(n.XI,{startTimeMs:Z*1E3},function(y,l){return y.startTimeMs-l.startTimeMs}),n.N!==Z&&(n.N=-1,n.T=void 0)):(ICp(n,!0),n.N=zMU(n.XI,Z*1E3))}; R4n=function(n,Z){var F=arguments.length==2?P0Q(arguments[1],0):P0Q(arguments,1);return Qp(n,F)}; j07=function(n){return vO(function(){var Z;return(Z=n.XY.get("asmjs"))!=null?Z:r$7(n)})}; Vyo=function(n,Z,F,y){var l=MT(n.X.get(),"SLOT_TYPE_IN_PLAYER");F=new Sp(n.N,F);var m=[new nz(n.N,l)],a=[new lB(n.N,l),new ZX(n.N,Z)];m={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:F,slotFulfillmentTriggers:m,slotExpirationTriggers:a};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:[new nz(n.N,l)],slotExpirationTriggers:[new ZX(n.N,Z),new lB(n.N,l)],Gx:"core",clientMetadata:new lb([new mW(y(m))])}}; USp=function(n){for(var Z=n.key,F=n.counter[0]^Z[0],y=n.counter[1]^Z[1],l=n.counter[2]^Z[2],m=n.counter[3]^Z[3],a=3;a>=0&&!(n.counter[a]=-~n.counter[a]);a--);for(var D,p,L=4;L<40;)a=cA[F>>>24]^vA[y>>16&255]^II[l>>8&255]^f$[m&255]^Z[L++],D=cA[y>>>24]^vA[l>>16&255]^II[m>>8&255]^f$[F&255]^Z[L++],p=cA[l>>>24]^vA[m>>16&255]^II[F>>8&255]^f$[y&255]^Z[L++],m=cA[m>>>24]^vA[F>>16&255]^II[y>>8&255]^f$[l&255]^Z[L++],F=a,y=D,l=p;n=n.X;a=Z[40];n[0]=Od[F>>>24]^a>>>24;n[1]=Od[y>>16&255]^a>>16&255;n[2]=Od[l>>8&255]^ a>>8&255;n[3]=Od[m&255]^a&255;a=Z[41];n[4]=Od[y>>>24]^a>>>24;n[5]=Od[l>>16&255]^a>>16&255;n[6]=Od[m>>8&255]^a>>8&255;n[7]=Od[F&255]^a&255;a=Z[42];n[8]=Od[l>>>24]^a>>>24;n[9]=Od[m>>16&255]^a>>16&255;n[10]=Od[F>>8&255]^a>>8&255;n[11]=Od[y&255]^a&255;a=Z[43];n[12]=Od[m>>>24]^a>>>24;n[13]=Od[F>>16&255]^a>>16&255;n[14]=Od[y>>8&255]^a>>8&255;n[15]=Od[l&255]^a&255}; g.Vq=function(n,Z,F){return n.app.B().oX?Z:g.xq("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:Z,SHORTCUT:F})}; g.cK=function(n){var Z,F,y,l;return(g.nT(n)?(Z=n.w5)==null?void 0:(F=Z.cards)==null?void 0:F.cardCollectionRenderer:(y=n.playerResponse)==null?void 0:(l=y.cards)==null?void 0:l.cardCollectionRenderer)||null}; YNT=function(n,Z,F){return Math.ceil(Math.max(Math.max(n.policy.k0,n.policy.MY*F),Math.min(Math.min(n.policy.fR,31*F),Math.ceil(Z*F))))||n.policy.k0}; g.LT=function(n){g.I.call(this);this.JG=n;this.N=new FQ3;this.T=null;this.S=[];this.L=[]}; Cu=function(n,Z){if(n.length<2)return!1;var F=Z(n[0]);return n.some(function(y){return Z(y)!==F})}; Nuf=function(n,Z){var F,y;(y=(n=(F=n.qt)==null?void 0:F.get(Z))==null)||(Z=n.T?!1:n.T=!0,y=!Z);return!y}; ajj=function(n){if(n==null)return n;var Z=typeof n;if(Z==="bigint")return String(VE(64,n));if(IG(n)){if(Z==="string")return ue(n);if(Z==="number")return q0(n)}}; KHY=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"basechromeinitialized",function(){Z.N=new FL(n);g.S(Z,Z.N);g.y7(n,Z.N.element,4);Z.N.hide()})}; HoY=function(n,Z,F){F=F===void 0?1:F;var y=Z.itag;if(y==="0")return!0;var l=Z.mimeType;if(Z.vr==="1e"&&!n.S)return"dav1enc";if(Fa(Z)&&n.Ns)return"dav1";if(Z.video&&(Z.video.isHdr()||Z.video.primaries==="bt2020")&&!(lJ(n,sN.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(y==="338"&&!(g.z$?YX(53):g.kr&&YX(64)))return"dopus";var m=F;m=m===void 0?1: m;F={};Z.video&&(Z.video.width&&(F[sN.WIDTH.name]=Z.video.width),Z.video.height&&(F[sN.HEIGHT.name]=Z.video.height),Z.video.fps&&(F[sN.FRAMERATE.name]=Z.video.fps*m),Z.video.N&&(F[sN.EOTF.name]=Z.video.N),Z.Qg&&(F[sN.BITRATE.name]=Z.Qg*8*m),Z.vr==="("&&(F[sN.CRYPTOBLOCKFORMAT.name]="subsample"),Z.video.projectionType==="EQUIRECTANGULAR"||Z.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Z.video.projectionType==="MESH")&&(F[sN.DECODETOTEXTURE.name]="true");var a;((a=Z.audio)==null?0:a.numChannels)&& Z.vr!=="i"&&Z.vr!=="I"&&(F[sN.CHANNELS.name]=Z.audio.numChannels);n.T&&n5(Z)&&(F[sN.EXPERIMENTAL.name]="allowed");a=g.Y(Object.keys(sN));for(m=a.next();!m.done;m=a.next()){m=sN[m.value];var D;if(D=F[m.name])if(D=!(m===sN.EOTF&&Z.mimeType.indexOf("vp09.02")>0)){D=m;var p=Z;D=!(n.experiments.RY("html5_ignore_h264_framerate_cap")&&D===sN.FRAMERATE&&n4Q(p))}if(D)if(lJ(n,m))if(n.C){if(n.C[m.name]1080&&Z.by&&(l+="; hdcp=2.2");return y==="227"?"hqcenc":y!=="585"&&y!=="588"&&y!=="583"&&y!=="586"&&y!=="584"&&y!=="587"&&y!=="591"&&y!=="592"||n.experiments.RY("html5_enable_new_hvc_enc")?sm()&&jq()>=21&&g.tv("appletv5")&&(y==="410"||y==="845")?!0:n.isTypeSupported(l)?!0:"tpus":"newhvc"}; g.be=function(n,Z){g.gU(function(){g.I5(Z,function(F){na(F,n);var y=Z0({cttAuthInfo:FS(n)||void 0,automatedLogEventSource:void 0},n);F={csn:n,ve:F.getAsJson(),eventType:4};n==="UNDEFINED_CSN"?y_("visualElementShown",y,F):g.xt("visualElementShown",F,y)})})()}; hX8=function(n,Z){for(var F=n.element.getElementsByTagName("a"),y=0;y=0)return Z;Z=-y-1;return Z>=n.N.length||n.N[Z]>F?null:n.N[Z]}; Vwj=function(n){var Z;return n==null?void 0:(Z=n.activeViewTracking)==null?void 0:Z.identifier}; vDi=function(n){Gao(n);n.C=g.Cb(function(){n.update()},100); n.uf=g.kq(n.provider);n.X=xl(n.provider)}; I4Y=function(n){var Z=n.Px();if(!(g.b(Z.getPlayerState(),64)&&n.dM().isLivePlayback&&n.Ur.startTimeMs<5E3)){if(n.Ur.type==="repeatChapter"){var F,y=(F=ATT(n.iN()))==null?void 0:F.VX(),l;F=(l=n.getVideoData())==null?void 0:l.ud;y instanceof g.Tv&&F&&(l=F[LC(F,n.Ur.startTimeMs)],y.renderChapterSeekingAnimation(0,l.title));isNaN(Number(n.Ur.loopCount))?n.Ur.loopCount=0:n.Ur.loopCount++;n.Ur.loopCount===1&&n.JG.LR("innertubeCommand",n.getVideoData().iA)}y={eO:"application_loopRangeStart"};if(n.Ur.type=== "clips"||n.Ur.type==="shortsLoop")y.seekSource=58;Z.seekTo(n.Ur.startTimeMs*.001,y)}}; Gk=function(n,Z){Z=new Vnn(new i_3(Z));Xe&&n.prototype&&Xe(Z,n.prototype);return Z}; TXj=function(){var n={values:{},V2:{}};try{var Z=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);n.values=Z.values;n.halfLives=Z.halfLives}catch(F){}return n}; Wn8=function(n,Z){var F=new M9(n,Z),y=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],l;g.ry(n.B())&&(l={U:"div",K:"ytp-panel-footer-content",D:[{U:"span",E8:y[0]},{U:"a",K:"ytp-panel-footer-content-link",E8:"Settings",Z:{href:"/account_playback"}},{U:"span",E8:y[1]}]});g.$K.call(this,"Subtitles/CC",g.rJ.SUBTITLES,n,Z,"Options",function(){g.$H(Z,F)},l); var m=this;this.W=n;this.Fp=Z;this.tracks={};this.V=new g.e7(function(){f4U(m,!1)},3E3); g.S(this,this.V);this.countLabel=new g.R({U:"div",D:[{U:"span",E8:"Subtitles/CC"},{U:"span",K:"ytp-menuitem-label-count",E8:"{{content}}"}]});g.S(this,this.countLabel);g.wK(this,this.countLabel);n.j("web_settings_menu_icons")&&this.setIcon(AoQ(n.j("delhi_modern_web_player_icons")));this.N=new z1(n,Z);g.S(this,this.N);this.N.subscribe("select",this.Y_,this);this.T=F;g.S(this,this.T);this.T.subscribe("settingChange",this.CK,this);Z.subscribe("show",this.O6Y,this);this.G(n,"videodatachange",this.g5); this.G(n,"onApiChange",this.g5);this.G(n,"onCaptionsTrackListChanged",this.g5);this.G(n,"captionschanged",this.g5);n.createClientVe(this.element,this,127300);this.g5()}; $b=function(n){this.N=n;this.X=null;this.S=this.T=0;this.Pr=!1;this.V=this.J=this.C=null;this.L=new g.D4(this);this.L.listen(this.N,"readystatechange",this.Ns)}; roK=function(n,Z){n.attestationResponse&&QQ(n).then(function(F){F=F||{};F.method="POST";F.postParams={atr:n.attestationResponse};n.zx?n.lY?SM().sendAndWrite(Z,F):SM().sendThenWrite(Z,F):g.jM(Z,F)})}; m1o=function(n){var Z,F;return((Z=n.N)==null?void 0:(F=Z.Dw)==null?void 0:F.v0)||0}; xSo=function(n){n.X=!0;return n}; PSU=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"videodatachange",function(){var F=Z.api.getRootNode(),y=Z.api.B();g.gi(F,"ytp-delhi-modern");y.j("delhi_modern_web_player_icons")&&g.gi(F,"ytp-delhi-modern-icons");y.j("delhi_modern_web_player_horizontal_volume_controls")&&g.gi(F,"ytp-delhi-horizontal-volume-controls");y.j("delhi_modern_web_player_compact_controls")&&g.gi(F,"ytp-delhi-modern-compact-controls");switch(fO(y.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.gi(F, "ytp-delhi-modern-with-luminosity");break;case "difference":g.gi(F,"ytp-delhi-modern-with-difference");break;case "exclusion":g.gi(F,"ytp-delhi-modern-with-exclusion")}F=Z.api.isHdr()||Z.api.j("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";Z.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",F);wrY(Z)}); this.events.G(n,"resize",function(){wrY(Z)})}; ug=function(){Il.apply(this,arguments)}; GVn=function(n){(n=hP(n))&&n.UK()}; RXK=function(n,Z,F,y,l){var m=F.yv;var a=F.Is;var D=n.player.B().yQ,p=0;F.cueProcessedMs&&a&&!m&&(F=a.end-a.start,F>0&&(p=Math.floor(F/1E3)));var L={AD_BLOCK:l,AD_BREAK_LENGTH:m?m.iy:p,AUTONAV_STATE:a9(n.player.B()),CA_TYPE:"image",CPN:n.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:n.player.Hn()*1E3,LACT:of(),LIVE_INDEX:m?n.T++:1,LIVE_TARGETING_CONTEXT:m&&m.context?m.context:"",MIDROLL_POS:a?Math.round(a.start/1E3):0,MIDROLL_POS_MS:a?Math.round(a.start):0,VIS:n.player.getVisibilityState(), P_H:n.player.Br().hB().height,P_W:n.player.Br().hB().width,YT_REMOTE:D?D.join(","):""},q=js(Ss);Object.keys(q).forEach(function(w){q[w]!=null&&(L[w.toUpperCase()]=q[w].toString())}); y!==""&&(L.BISCOTTI_ID=y);y={};SU(Z)&&(y.sts="20394",(n=n.player.B().forcedExperiments)&&(y.forced_experiments=n));return Fr(g.tM(Z,L),y)}; g.s3=function(n){n=n.iN();var Z=n.XY.get("endscreen");return Z&&Z.En()?!0:n.v_()}; Tw=function(n,Z,F){if(typeof n==="string")return{videoId:n,startSeconds:Z,suggestedQuality:F};Z={};F=g.Y(gD7);for(var y=F.next();!y.done;y=F.next())y=y.value,n[y]&&(Z[y]=n[y]);if(n=n.embedConfig||n.embed_config)if(typeof n==="string")Z.embed_config=n;else if(g.VO(n))try{var l=JSON.stringify(n);Z.embed_config=l}catch(m){console.error("Invalid embedConfig JSON",m)}return Z}; WDf=function(){iwY||(iwY=new ki);return iwY}; WlQ=function(n){var Z=n===void 0?{}:n;n=Z.hasSubfragmentedFmp4===void 0?!1:Z.hasSubfragmentedFmp4;Z=Z.oy===void 0?!1:Z.oy;var F=new H4Q;F.F0=n||Z;return F}; hW=function(n,Z){if(XI(n.N,Z)){km(n.N,Z).C=!1;var F=R4;Z=km(n.N,Z);var y=[].concat(g.t(Z.L));CXp(Z.L);F(n,y)}}; Cao=function(n,Z){I0(n);Z=yq(n,Z);return n.N.has(Z)}; UC=function(n){this.provider=n;this.J=!1;this.N=0;this.V=-1;this.uf=NaN;this.T=0;this.segments=[];this.C=this.S=0;this.previouslyEnded=!1;this.Pr=this.provider.mQ.getVolume();this.L=this.provider.mQ.isMuted()?1:0;this.X=xl(this.provider)}; lLp=function(n){vk.call(this,n);var Z=this;RS(n,"getStatsForNerds",function(){return uwj(Z.api)}); mn(n,"showVideoInfo",function(){p6j(Z,!0)}); mn(n,"hideVideoInfo",function(){p6j(Z,!1)}); mn(n,"isVideoInfoVisible",function(){return DPi(Z)})}; e8=function(n,Z,F,y){mQ("https://"+Z+"/videoplayback?probe=1",F,function(l){!y.j("html5_onesie_host_racing")||y.videoData.isLivePlayback||y.j("html5_onesie_probe_ec_hosts")||y.dR||y.wH();n.V.push(l)},function(l){n.V.push(l.details)})}; CT=function(n,Z,F){F=F===void 0?!1:F;if(n.fn){var y=n.fn.qj(),l=NY(y,Z),m=NaN,a=m1(n);a&&(m=NY(y,a.bY.index.getStartTime(a.O8)));if(l===m&&n.N&&n.N.X&&isT(yu(n),0))return Z}n=bwf(n,Z,F);return n>=0?n:NaN}; g.W8K=function(n,Z){var F;return n.B().j("safari_live_drm_captions_fix")&&((F=n.getVideoData())==null?0:F.mF())?!1:g.d5(n.B())&&!Z.isManifestless}; avT=function(n){n.V&&(n.V.resolve(n.mediaElement.getCurrentTime()),n.Ns.X=null)}; twj=function(n,Z){var F;return g.A(function(y){(0,g.tP)();if(n.N.N)return y.return(Xrf(n,Z,n.iv));F=zXp(n.N);return y.return(F.encrypt(Z,n.iv))})}; rS=function(n,Z,F,y,l){this.loader=n;this.eT=Z;this.videoTrack=F;this.audioTrack=y;this.policy=l;this.seekCount=this.targetTime=0;this.V=!1;this.T=null;this.X=0;this.N=this.eT.isManifestless&&!this.eT.z7}; MI7=function(n){if(!n.provider.Y.j("html5_qoe_no_len_check")){for(var Z=0,F=g.Y(n.N.entries()),y=F.next();!y.done;y=F.next()){var l=g.Y(y.value);y=l.next().value;l=l.next().value;Z+=y.length+Number(zL(l,function(m,a){return m+a.length},0))}Z>96E3&&(new g.e7(n.reportStats,0,n)).start()}}; LB=function(n){this.AG=UO(n)}; kVp=function(n,Z,F,y){for(var l=0;l1572864;return{innertubeRequest:{shr:n,nI:p,sK:L,encryptedClientKey:P,iv:Z,Uhg:!0,aU:!0,Si:"DecompressionStream"in window||!l,KgY:F.experiments.RY("html5_use_jsonformatter_to_parse_player_response")},Dw:NkY({zN:m,iY:F,mQ:y,uQ:w.startSeconds*1E3}),onesieUstreamerConfig:a,g6:D,T0:St(w),reloadPlaybackParams:(T=w.nP)==null?void 0: T.reloadPlaybackParams}}; Ha=function(n){var Z=this;this.dA=this.N=!1;this.potentialEsfErrorCounter=this.X=0;this.handleError=function(){}; this.OM=function(){}; this.now=Date.now;this.zv=!1;this.vx={dQr:function(q){Z.aZ=q}, tgp:function(){Z.jJ()}, gX:function(){Z.vO()}, CH:function(q){return g.A(function(w){return g.x(w,Z.CH(q),0)})}, DP:function(q,w){return Z.DP(q,w)}, Y2:function(){Z.Y2()}}; var F;this.XB=(F=n.XB)!=null?F:100;var y;this.wN=(y=n.wN)!=null?y:1;var l;this.dL=(l=n.dL)!=null?l:2592E6;var m;this.hP=(m=n.hP)!=null?m:12E4;var a;this.Ik=(a=n.Ik)!=null?a:5E3;var D;this.aZ=(D=n.aZ)!=null?D:void 0;this.Kv=!!n.Kv;var p;this.wT=(p=n.wT)!=null?p:.1;var L;this.uC=(L=n.uC)!=null?L:10;n.handleError&&(this.handleError=n.handleError);n.OM&&(this.OM=n.OM);n.zv&&(this.zv=n.zv);n.dA&&(this.dA=n.dA);this.RY=n.RY;this.Xn=n.Xn;this.Sz=n.Sz;this.QU=n.QU;this.sendFn=n.sendFn;this.JW=n.JW;this.y7= n.y7;O5(this)&&(!this.RY||this.RY("networkless_logging"))&&Mqj(this)}; tAf=function(n){for(var Z=0,F=0;Fn.uC)return q.return();n.potentialEsfErrorCounter++;if(((L=Z)==null?void 0:L.id)===void 0){q.ST(8);break}return Z.sendCount=524}; Jc=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"videodatachange",function(){Z.updateMetadata()}); this.events.G(n,"presentingplayerstatechange",function(){O3j(Z)}); this.events.G(n,"SEEK_COMPLETE",function(){ahU(Z)})}; Zv=function(n){this.X=n}; DUP=function(n,Z,F){F=F===void 0?{}:F;return DaK(n,Z,!0,F)}; VB=function(n,Z,F,y){pFP(n);Z&&(Z.unsubscribe("size-change",n.eJ,n),Z.unsubscribe("back",n.v1,n));F.subscribe("size-change",n.eJ,n);F.subscribe("back",n.v1,n);if(n.XJ){g.gi(F.element,y?"ytp-panel-animate-back":"ytp-panel-animate-forward");F.oY(n.content);F.focus();n.element.scrollLeft=0;n.element.scrollTop=0;var l=n.size;Kef(n);g.Zj(n.element,l);n.T=new g.e7(function(){w1Y(n,Z,F,y)},20,n); n.T.start()}else F.oY(n.content),Z&&Z.detach()}; qt3=function(n,Z){var F=0;F=0;for(var y={};F>>1),p=void 0;F?p=Z.call(void 0,n[D],D,n):p=Z(y,n[D]);p>0?l=D+1:(m=D,a=!p)}return a?l:-l-1}; g.iE=function(n,Z,F){this.wB=Z===void 0?null:Z;this.seekSource=F===void 0?null:F;this.state=n||64}; g.UU3=function(n){for(;!n.V&&!n.error;){var Z=n;Z.V=!!L8(Z,1);switch(L8(Z,2)){case 2:var F=[],y=[];y.length=19;y.fill(0);var l=L8(Z,5)+257;var m=L8(Z,5)+1;for(var a=L8(Z,4)+4,D=0;D0;p--)F.push(D)}F.length!==a?Z.error=!0:(m=F.slice(-m),F.length=l,Stj(Z,F,m));break;case 1:Stj(Z,l6,jNe);break;case 0:WL(Z, Z.N&7);F=L8(Z,16);l=L8(Z,16);(F^l)!==65535&&(Z.error=!0);Z.output.set(Z.data.subarray(Z.X,Z.X+F),Z.T);Z.X+=F;Z.T+=F;break;default:Z.error=!0}n.T>n.output.length&&(n.output=new Uint8Array(n.T*2),n.T=0,n.X=0,n.V=!1,n.N=0,n.register=0)}n.output.length!==n.T&&(n.output=n.output.subarray(0,n.T));return n.error?new Uint8Array(0):n.output}; hC7=function(n){fZ("drm_pb_s",void 0,n.Pr);n.G6||n.N&&a5(n.N);var Z={};n.N&&(Z=JBQ(n.WH,g.zw(n),n.iY.S,n.N,function(F){return n.publish("ctmp","fmtflt",F)},!0,new Set)); Z=new mo(Z,n.iY,n.gN,n.useCobaltWidevine?sm()?mm(n):!1:!1,function(F,y){n.Xp(F,y)}); g.S(n,Z);n.y_=!1;n.loading=!0;NN8(Z,function(F){fZ("drm_pb_f",void 0,n.Pr);for(var y=g.Y(F),l=y.next();!l.done;l=y.next())switch(l=l.value,l.flavor){case "fairplay":l.G6=n.G6;l.Yr=n.Yr;l.AE=n.AE;break;case "widevine":l.nL=n.nL}n.KP=F;if(n.KP.length>0&&(n.S=n.KP[0],n.iY.eG())){F={};y=g.Y(Object.entries(n.S.N));for(l=y.next();!l.done;l=y.next()){var m=g.Y(l.value);l=m.next().value;m=m.next().value;var a="unk";(l=l.match(/(.*)codecs="(.*)"/))&&(a=l[2]);F[a]=m}n.Xp("drmProbe",F)}n.kX()})}; OY=function(n,Z){this.pR=Z;this.X={};this.logger=new g.hL(n)}; v0=function(n,Z){return n.bY===Z.bY?n.range&&Z.range?n.range.start+n.N+n.X===Z.range.start+Z.N:n.O8===Z.O8?n.N+n.X===Z.N:n.O8+1===Z.O8&&Z.N===0&&n.T:!1}; g.sg=function(n){if(n.simpleText)return n.simpleText;if(n.runs){var Z=[];n=g.Y(n.runs);for(var F=n.next();!F.done;F=n.next())F=F.value,F.text&&Z.push(F.text);return Z.join("")}return""}; E83=function(n,Z){if(!n||!Z)return!1;for(var F=0;n!==null&&F++<100;){if(n===Z)return!0;try{if(n=n.parentElement||n){var y=dt(n),l=y&&H8(y),m=l&&l.frameElement;m&&(n=m)}}catch(a){break}}return!1}; Oen=function(n){for(var Z=0;ZF.trigger.breakDurationMs)&&(F={slot:l,trigger:y})}return F}; bI=function(n,Z){return n.j(Z)?!0:(n.fflags||"").includes(Z+"=true")}; CjU=function(n){var Z=[];g.I5(n,function(F){IF(rT.N,function(y){return y.AF.pY===F.AF.pY&&y.B1===F.B1})||(rT.N.push(F),Z.push(F))})}; lI3=function(n){var Z=n.api.B(),F=n.api.getVideoData();F=g.Kp(Z)+F.r5;if(!g.R6(Z))return F;Z={};g.dc(n.api,"addEmbedsConversionTrackingParams",[Z]);return g.pQ(F,Z)}; P9=function(n){var Z=n.Px();if(g.b(Z.getPlayerState(),128))return!1;Z=Z.getVideoData();og(n)&&n.Y.fF&&(UK.length&&n.WK?(Vy(n,{muted:!1,volume:n.jx.volume},!1),Xr(n,!1)):UK.length||n.jx.muted||(Vy(n,{muted:!0,volume:n.jx.volume},!1),Xr(n,!0)));og(n)&&g.R6(n.Y)&&Z.mutedAutoplay&&(Vy(n,{muted:!0,volume:n.jx.volume},!1),Xr(n,!0));Z.Pv&&Vy(n,{muted:!0,volume:n.jx.volume},!1);fOU(n,1,Z,!1);var F=n.Px();n.JG.publish("initializingmode");n.x7(F);n.D6(3);var y;if(!(y=!n.Y.Oq)){if(y=n.eH){y=n.eH;var l=n.mediaElement; y=!!l&&l===y.mediaElement}y=y&&n.FP}y&&(n.Q_(),Ll(n),F.setMediaElement(n.mediaElement));F.zi();if(g.b(F.getPlayerState(),128))return!1;Z.p6||DE(n,3);return n.FP=!0}; Mbo=function(n,Z,F){n.eT=Z;n.Ae=F;Z=g.Y(n.JD);for(F=Z.next();!F.done;F=Z.next()){var y=g.Y(F.value);F=y.next().value;y=y.next().value;for(var l=g.Y(y.f1),m=l.next();!m.done;m=l.next()){m=m.value;var a=o87(n,F,m);AGp(n,m.Wt,y,a)}}}; TMf=function(n){return n.W.j("delhi_modern_web_player_icons")?bgn():RZ()}; Lmj=function(n,Z,F){if(n.X.length!==0&&(F||n.X.some(function(m){return m.info.V0)){J.ST(5);break}return g.x(J,fa(5E3),6);case 6:q={playerretry:p,playerretrysrc:F},a||(q.recover="embedded"),L=Fr(m,q);case 5:return g.x(J,i5p(Z,L).then(l,y),7);case 7:if(w=J.X)return J.return();p++;J.ST(2);break;case 4:T=a?"auth":"manifest.net.retryexhausted";P=a?2:1;if(!a&&Math.random()< 1E-4)try{g.yi(new g.FV("b/152131571",btoa(m)))}catch(h){}return J.return(Promise.reject(new g.Xv(T,{backend:"gvi"},P)))}})}; pp=function(n,Z){n=g.Y(n.listeners);for(var F=n.next();!F.done;F=n.next())Z(F.value)}; lUK=function(n,Z,F){var y=n.aY;Uf||F||n.L==-1||(y+=Z-n.L);return y}; yFT=function(n){var Z=wZf();Z&&(typeof n==="number"&&(n=[n]),g.I5(n,function(F){Z.unsubscribeByKey(F);delete gN[F]}))}; Spe=function(n,Z){return n?Z?AfY():rL():Z?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:xUe()}; G4Y=function(n){if(Ne(n.W.B()))return n.XY.get("kids")}; Lp=function(n,Z){return n.V?n.V:n.V=new Promise(function(F){var y,l,m,a;return g.A(function(D){switch(D.N){case 1:return y=window.AbortController?new window.AbortController:void 0,m=(l=y)==null?void 0:l.signal,a=!1,g.RX(D,2,3),y&&(n.X=n.Xn.k6(function(){y.abort()},Z||2E4)),g.x(D,fetch("/generate_204",{method:"HEAD", signal:m}),5);case 5:a=!0;case 3:g.cJ(D);n.V=void 0;n.X&&(n.Xn.qc(n.X),n.X=0);a!==n.N&&(n.N=a,n.N?n.dispatchEvent("networkstatus-online"):n.dispatchEvent("networkstatus-offline"));F(a);g.zu(D,0);break;case 2:g.d4(D),a=!1,D.ST(3)}})})}; qZQ=function(n,Z,F,y){xHj(n,Z,F,"skipped",function(){qz(n,y)})}; yh=function(n,Z,F){var y=new Bk(0,0,0,0);this.time=n;this.volume=null;this.T=Z;this.N=y;this.X=F}; RCo=function(n,Z){return Z.priority-n.priority}; sd=function(n){if(n==null)return n;if(typeof n==="string"&&n)n=+n;else if(typeof n!=="number")return;return mX(n)?n>>>0:void 0}; g8o=function(n){return new Uint8Array(n.data.buffer,n.offset+n.data.byteOffset,n.size)}; Vnn=function(n){this.next=function(Z){cGj(n.N);n.N.V?Z=$h(n,n.N.V.next,Z,n.N.L):(n.N.L(Z),Z=Cj(n));return Z}; this.throw=function(Z){cGj(n.N);n.N.V?Z=$h(n,n.N.V["throw"],Z,n.N.L):(iP(n.N,Z),Z=Cj(n));return Z}; this.return=function(Z){return ien(n,Z)}; this[Symbol.iterator]=function(){return this}}; cN=function(){}; Cli=function(){var n=hd();n.info||(n.info={});return n.info}; Tp3=function(n,Z){var F,y,l,m;return g.A(function(a){if(a.N==1)return g.RX(a,2),F=bf(Z),y={context:g.ij(n),playerRequest:{videoId:n.videoId},disablePlayerResponse:!0},l=g.SA(u_Q),g.x(a,g.jA(F,y,l),4);if(a.N!=2)return m=a.X,!m||"error"in m&&m.error||g.zX(n,{raw_reel_item_watch_response:m}),g.iX(a,0);g.d4(a);g.zA(a)})}; a7=function(n){this.value=n}; g.zw=function(n){var Z=n.J;n.j("html5_gapless_unlimit_format_selection")&&eF(n)&&(Z=!1);var F=!!n.N&&n.N.t2,y=n.iY,l=n.K_(),m=Z3(n),a=n.Wr,D=Z,p=n.isOtf();Z=n.nt();var L=n.Pf,q=n.getUserAudio51Preference(),w=nW(n),T=U0(n),P=new iEf(y);if(y.eG()||y.j("html5_logging_format_selection"))P.N=!0;P.fR=m;P.Wr=a&&y.L;P.lY=q;g.tv("windows nt 5.1")&&!g.kr&&(P.Ut=!0);if(m=l)m=g.Ie(y)?LEK(y):!1;m&&(P.Ns=!0);D&&(P.Ut=!0,P.N1=!0);p&&!y.j("html5_otf_prefer_vp9")&&(P.Ut=!0);y.playerStyle==="picasaweb"&&(p&&(P.Ut= !1),P.Tx=!1);L&&(P.Ut=!0);lJ(y.S,sN.CHANNELS)&&(y.j("html5_enable_ac3")&&(P.V=!0),y.j("html5_enable_eac3")&&(P.S=!0),y.j("html5_enable_ac3_gapless")&&(P.jT=!0));y.j("html5_block_8k_hfr")&&(P.xi=!0);P.C=g.jf(y.experiments,"html5_max_selectable_quality_ordinal");P.J=g.jf(y.experiments,"html5_min_selectable_quality_ordinal");eZ&&(P.PV=480);if(F||l)P.Tx=!1;P.hG=!1;P.disableAv1=w;F=$n(y,P.X,void 0,P.disableAv1);F>0&&F<2160&&(y1()||y.j("html5_format_hybridization"))&&(P.X.supportsChangeType=+y1(),P.Tc= F);F>=2160&&(P.zx=!0);Ecj()&&!y.j("disable_av1_setting")&&(P.X.serveVp9OverAv1IfHigherRes=0,P.ud=!1);P.nt=Z;P.aY=g.yd||XY()&&!Z?!1:!0;P.L=y.j("html5_format_hybridization");P.mJ=y.j("html5_disable_encrypted_vp9_live_non_2k_4k");P.IW=T;YA(n)&&(P.h2=!0);sm()&&n.playerResponse&&n.playerResponse.playerConfig&&n.playerResponse.playerConfig.webPlayerConfig&&n.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(P.V=!0,P.S=!0);n.J&&n.isAd()&&(n.Kh&&(P.Pr=n.Kh),n.c7&&(P.T=n.c7));n.pP()&& (P.w5=g.jf(n.iY.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));P.r5=n.isLivePlayback&&n.mF()&&n.iY.j("html5_drm_live_audio_51");P.Yi=n.W4;P.SG=!YA(n);return n.xi=P}; wG=function(n,Z,F,y,l,m){By.call(this,n,{U:"div",K:"ytp-ad-preview-slot"},"ad-preview",Z,F,y,l);var a=this;this.yg=-1;this.V=this.api.B().experiments.RY("enable_modern_skip_button_on_web");this.X=new g.oS({U:"span",K:"ytp-ad-preview-container"});this.V&&this.X.element.classList.add("ytp-ad-preview-container-detached");g.S(this,this.X);this.T=this.V?new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-ad-preview-text-modern"):new q8(this.api,this.layoutId,this.interactionLoggingClientData, this.Hr,"ytp-ad-preview-text");g.S(this,this.T);this.T.oY(this.X.element);this.zx=this.V?new g.oS({U:"span",K:"ytp-ad-preview-image-modern"}):new g.oS({U:"span",K:"ytp-ad-preview-image"});g.S(this,this.zx);this.S=new LE(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);g.S(this,this.S);this.S.oY(this.zx.element);this.zx.oY(this.X.element);this.X.oY(this.element);this.Tx=new g.J9(this.X,400,!1,100,function(){return a.hide()}); g.S(this,this.Tx);this.jT=0;this.aY=!1;this.hG=m;this.hide()}; Am=function(n,Z,F,y){y=y===void 0?0:y;var l;if(Z!==n.L||((l=n.X.get(Z))==null?void 0:l.T)!==(F==null?void 0:F.T))if(F?n.X.set(Z,F):n.X.delete(Z),!n.isSeeking){var m=n.V.getStartTime(Z);n.L=Z;Xo3(n,Z);if(F){var a=m;F.N.forEach(function(D,p){a=.5&&n.rB("seek"),a&&g.On(F,2)&&Bb(n,F.state,Z,y,l,m))}; U47=function(){return{U:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Z:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}}; XI=function(n,Z){return km(n,Z)!=null}; k4U=function(n){var Z=n.provider.videoData.Hf,F=n.provider.videoData.jP,y=[10+Z,10,10,40+F-Z,40],l,m=(l=n.provider.videoData.getPlayerResponse())==null?void 0:l.playbackTracking,a=m==null?void 0:m.videostatsScheduledFlushWalltimeSeconds;l=m==null?void 0:m.videostatsDefaultFlushIntervalSeconds;if(!(a&&a.length>0&&l))return y;Z=[a[0]+Z].concat(g.t(a.slice(1).map(function(D,p){return D-a[p]})),[l+F-Z, l]);return Z.some(function(D){return D<0})?(g.u4(n.logger,347111855,"Neg vss scheduled pings "+a+" "+l),y):Z}; eCo=function(n){if(n.layout.renderingContent){var Z;return(Z=o5(n.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Z.current}return o5(n.layout.clientMetadata,"metadata_type_player_bytes_callback")}; ZK=function(n,Z,F){for(;n;n=n.parentNode)if(n.attributes&&(!F||n.nodeName===F)){var y=n.getAttribute(Z);if(y)return y}return""}; br=function(n,Z,F,y){this.durationMs=Z;this.triggeringLayoutId=F;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=y||n(this.triggerType)}; Heo=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},D:[{U:"path",Tu:!0,Z:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}}; W$=function(n,Z,F,y,l,m){g.Xu.call(this);var a=this;this.loader=n;this.eT=Z;this.policy=F;this.videoTrack=y;this.audioTrack=l;this.Ns=this.N=null;this.C=this.J=NaN;this.L=0;this.Pr=NaN;this.T=null;this.Wr=this.w5=NaN;this.zx=new Map;this.Tx=this.S=this.V=NaN;this.vx={KHQ:function(){return a.X}}; this.X=m?1:0}; OE=function(n,Z,F){var y=y===void 0?"":y;n.S[Z.Uf()]=Z;n.X=Z;F&&(n.C=Z);n.L.set(y,Z);Dc(n)}; Ty=function(n){var Z;return((Z=n.audio)==null?void 0:Z.audioQuality)==="AUDIO_QUALITY_HIGH"&&!b5(n)}; sC=function(n,Z){n=yE(n,Z);U1.has(n)&&(Z=U1.get(n)||[],g.JI(Z[0],Z[1],Z[2],Z[3],!0),U1.delete(n))}; hE=function(n){if(n==null)return n;if(typeof n==="string"&&n)n=+n;else if(typeof n!=="number")return;return mX(n)?n|0:void 0}; vV=function(n){return n?(n=n.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?sT(n):null:null}; c3p=function(n,Z,F,y){y=y===void 0?0:y;var l=g.f_(y);Z=Z||g.Wg(y);l&&Z&&(n=n.client,y=Z0({cttAuthInfo:FS(l)||void 0},l),F={csn:l,ve:Z.getAsJson(),clientData:F},l==="UNDEFINED_CSN"?y_("visualElementStateChanged",y,F):n?lr("visualElementStateChanged",F,n,y):g.xt("visualElementStateChanged",F,y))}; var Xue=function(n){return qv[K[11]](this,14,n)}; dUK=function(n,Z,F){var y,l=((y=F.adSlots)!=null?y:[]).map(function(D){return g.e(D,WJ)}); if(F.sB)if(o5(Z.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))EY(n.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Z.slotId); else{if(n.U8.get().W.B().j("h5_check_forecasting_renderer_for_throttled_midroll")){var m=F.U3.filter(function(D){var p;return((p=D.renderer)==null?void 0:p.clientForecastingAdRenderer)!=null}); m.length!==0?jLe(n.T,m,l,Z.slotId,F.ssdaiAdsConfig):EY(n.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Z.slotId)}else EY(n.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Z.slotId); Um7(n.V,Z)}else{var a;y={nU:Math.round(((m=o5(Z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:m.nU)||0),KU:(a=o5(Z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:a.KU};m=o5(Z.clientMetadata,"metadata_type_cue_point");jLe(n.T,F.U3,l,Z.slotId,F.ssdaiAdsConfig,y,m)}}; J_U=function(n,Z,F,y,l,m,a){return function(D,p){return MJn(n,p.slotId,D,m,function(L,q){var w=p.layoutId;L=a(L);return lx(Z,w,q,l,L,"LAYOUT_TYPE_SURVEY",[new BN3(F),y],F.adLayoutLoggingData)})}}; hI7=function(n,Z,F,y,l,m,a,D,p,L,q,w,T){F=U2n(Z,F,y,m,a,D,p,L,q,w,T);N0Y(m)?(y=qAQ(Z,n),n=MT(Z.X.get(),"SLOT_TYPE_IN_PLAYER"),m=$e(Z.X.get(),"LAYOUT_TYPE_SURVEY",n),D=WD(Z,y,D),Z=[].concat(g.t(D.slotExpirationTriggers),[new ir(Z.N,m)]),n=F({slotId:D.slotId,slotType:D.slotType,slotPhysicalPosition:D.slotPhysicalPosition,slotEntryTrigger:D.slotEntryTrigger,slotFulfillmentTriggers:D.slotFulfillmentTriggers,slotExpirationTriggers:Z,Gx:D.Gx},{slotId:n,layoutId:m}),l=n instanceof C?n:{TA:Object.assign({}, D,{slotExpirationTriggers:Z,clientMetadata:new lb([new mW(n.layout)]),adSlotLoggingData:l}),zU:n.zU}):l=wWe(Z,n,D,l,F);return l instanceof C?l:[].concat(g.t(l.zU),[l.TA])}; M13=function(n,Z,F,y){n.timing.nj((0,g.tP)(),Z,F);Z=n.Er;Z.T=0;Z.S=0;Z.J=0;BZ(wa(n));y&&(y=wa(n),y.T+=1);if((y=n.Na)!=null&&(n=n.SH.lU,!((0,g.tP)()32}):!1}; Av=function(n){var Z=FE();g.gU(function(){var F=g.fE(n);rq(Z,F);return F})()}; niQ=function(n){return n.r5&&n.isManifestless?n.isLiveHeadPlayable:n.isLive}; CFT=function(n,Z){return[Z7(n,0,n.length>>1,Z),Z7(n,n.length>>1)]}; ZuQ=function(n){if(!n.N)return null;var Z=GD(n.N,"atr");return function(F){n.N&&e88(n.N,F,Z)}}; FN7=function(n){n.suggestedActions={};n.W.V9("suggested_action_button_visible");n.T=!1}; G7=function(n){var Z=[],F;for(F in n)if(n.hasOwnProperty(F)){var y=F;Z.push(cQ(y));y=g.Y(n[y]);for(var l=y.next();!l.done;l=y.next())Z.push(l.value.itag)}return Z.join(".")}; bzQ=function(n,Z){var F=Z.indexOf("?");if(F>0){var y=hV(12,Z.substring(F+1));g.l7(y,function(l,m){this.set(m,l)},n); Z=Z.substring(0,F)}Z=n8(5,Z);g.l7(Z,function(l,m){this.set(m,l)},n)}; B5=function(n,Z){2&Z&&(n|=2);return n|1}; g.PY=function(n,Z){g.R.call(this,{U:"div",D:[{U:"div",K:"ytp-tooltip-text-wrapper",Z:{"aria-hidden":"{{ariaHidden}}"},D:[{U:"div",K:"ytp-tooltip-edu",D:[{U:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Z:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{U:"span",E8:"{{eduText}}"}]},{U:"div",K:"ytp-tooltip-image"},{U:"div",K:"ytp-tooltip-title",D:[{U:"span",E8:"{{title}}"},{U:"div",K:"ytp-tooltip-keyboard-shortcut", E8:"{{keyBoardShortcutTitle}}"}]},{U:"div",K:"ytp-tooltip-bottom-text",D:[{U:"span",K:"ytp-tooltip-text",E8:"{{text}}"},{U:"div",K:"ytp-tooltip-keyboard-shortcut",E8:"{{keyBoardShortcut}}"}]},{U:"div",K:"ytp-tooltip-progress-bar-pill",D:[{U:"div",K:"ytp-tooltip-progress-bar-pill-time-stamp",E8:"{{pillTimeStamp}}"},{U:"div",K:"ytp-tooltip-progress-bar-pill-title",E8:"{{pillTitle}}"}]}]},{U:"div",K:"ytp-tooltip-bg",D:[{U:"div",K:"ytp-tooltip-duration",E8:"{{duration}}"}]}]});var F=this;this.api=n;this.lY= Z;this.L=function(y){(y=y.relatedTarget)&&g.Uq(F.N,y)||F.xk()}; this.S=function(y){F.type===3&&F.xk();(y=y.currentTarget)&&y.nodeType===1&&!F.type&&(y.removeEventListener("mouseover",F.S),y.addEventListener("mouseout",F.L),y.removeEventListener("focus",F.S),y.addEventListener("blur",F.L),AmQ(F,y,2))}; this.Ns=function(){F.xk()}; this.type=this.N=null;this.J=!1;this.X=null;this.T="";this.C=!0;this.scale=1;this.env=this.api.B();this.Wr=this.env.X;this.wrapper=this.Vg("ytp-tooltip-text-wrapper");this.bg=this.Vg("ytp-tooltip-bg");this.zx=this.Vg("ytp-tooltip-edu");this.image=this.Vg("ytp-tooltip-image");this.text=this.Vg("ytp-tooltip-text");this.bottomText=this.Vg("ytp-tooltip-bottom-text");this.title=this.Vg("ytp-tooltip-title");this.fade=new g.J9(this,100);this.V=NaN;this.iF=this.api.Br().getPlayerSize().width;this.Tx=new g.e7(this.T1r, 250,this);this.w5=new g.e7(this.xk,5E3,this);g.S(this,this.fade);g.S(this,this.Tx);g.S(this,this.w5);EK&&(n=this.Vg("ytp-tooltip-text"),n.setAttribute("role","text"),n.setAttribute("aria-live","polite"))}; Eq=function(n){var Z=typeof n;return Z!="object"?Z:n?Array.isArray(n)?"array":Z:"null"}; bHP=function(n){n.length===1||g.s6(n,function(F){return!!F.range}); for(var Z=1;Z l&&(l=D.width,m="url("+D.url+")")}F.background.style.backgroundImage=m;qt3(F,y.actionButtons||[]);F.show()}else F.hide()}); g.y7(this.api,this.N.element,4)}; Tr8=function(n){return $i(n.eK).concat($i(n.iT)).concat($i(n.q_)).concat($i(n.J7)).concat($i(n.nY))}; pk=function(n,Z){return Math.floor(Z/(n.columns*n.rows))}; JN=function(n,Z){return n.map(function(F){return jF(g.TL(F,Z))})}; sk8=function(n){var Z,F;g.A(function(y){if(y.N==1){var l;if(l=g.N9()){var m;l=!((m=n.V.X)==null||!m.getMetrics)}return l?g.x(y,n.V.getMetrics(),2):y.return()}Z=y.X;if(!Z)return y.return();fP(Z)||(Z=g.iI(Z));F=/^[A-Za-z0-9_-]+={0,3}$/;F.test(Z)||(Z=g.ft(Z,void 0,!0));n.publish("ctmp","drm",{metrics:Z});g.zA(y)})}; lu=function(n){if(!d9(n.videoData))return NaN;var Z=0;n.loader&&n.videoData.N&&(Z=wk(n.videoData)?n.loader.QV.lH()||0:n.videoData.N.zx);return(0,g.tP)()/1E3-n.Xh()-Z}; j8U=function(n,Z,F,y){n.N&&n.N.dispose();n.N=new g.e7(n.jG,Z,n);g.S(n,n.N);y=Pe(y);Z=y==null?void 0:y.navigationEndpoint;var l;y=y==null?void 0:(l=y.icon)==null?void 0:l.iconType;var m;l=(m=g.e(Z,g.MY))==null?void 0:m.url;n.W.setTrackingParams(n.element,(Z==null?void 0:Z.clickTrackingParams)||null);Z&&!l?(n.innertubeCommand=Z,l="#!"):n.innertubeCommand=null;var a;n.X.update({href:(a=l)!=null?a:"#",text:F,icon:y==="MONEY_HAND"?{U:"svg",Z:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, D:[{U:"path",Z:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:l||n.innertubeCommand?g.lS():null})}; cs=function(n){b2(n);n.setLoopVideo(!1);n.setLoopRange(null);n.JG.publish("legacyadtrackingpingreset");n.gU={};n.DN=[];XdU(n.bN);if(n.fq){var Z=n.fq,F=n.Px();F.getPlayerType();Cn(Z,!1);M1(Z);OBj(Z);Z.playback=F}Z=n.CJ;n=n.Px();n.getPlayerType()!==1&&uu(Z,"invalidParentVideoPlayerType");YP(Z,!1);mLU(Z);Z.N=n}; KNQ=function(n,Z){if(Z){var F=Z.background;F&&g.e(F,aKo)&&(F=(F=g.e(F,aKo).image)&&HF(F)||"",g.$q(F)?g.yi(Error("Found ThumbnailDetails without valid image URL")):g.a$(n.jT,"backgroundImage","url("+F+")"));if(Z.durationMilliseconds==null||Z.durationMilliseconds===void 0||Z.durationMilliseconds===0)n=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(Z)),g.ZW(n);else{n.T=g.O7();n.N=new sP(n.api,Z.durationMilliseconds);g.S(n,n.N);if(n.N&&Z.instreamAdPlayerOverlay&&g.e(Z.instreamAdPlayerOverlay, iH))try{var y=new Ls(n.api,n.layoutId,n.interactionLoggingClientData,n.Hr,n.N);y.oY(n.playerOverlay);y.init(Tb("survey-player-overlay"),g.e(Z.instreamAdPlayerOverlay,iH),n.macros);n.V=y;g.S(n,y);n.D7()}catch(l){y=Error("ISAPOR had an error when initializing. Error: "+(l+" SurveyAdQuestionCommon: "+JSON.stringify(Z))),g.ZW(y)}else y=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(Z)),g.ZW(y);n.N&&Z.durationMilliseconds&&Z.durationMilliseconds>0?(Z=new p3(n.api,n.N), Z.oY(n.playerOverlay),g.S(n,Z)):(n=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(Z)),g.ZW(n))}}else g.ZW(Error("addCommonComponents() needs to be called before starting countdown."))}; TQj=function(n){var Z=n.text||"",F=g.q$("ytp-suggested-action-badge-title",n.element);F&&g.uz(F,Z);n.badge.element.setAttribute("aria-label",Z);n.dismissButton.element.setAttribute("aria-label",n.fR?n.fR:"")}; CWP=function(n,Z){this.N=Z;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=n(this.triggerType)}; vo=function(n,Z){Z=Z?Z.W4:!1;n.V||(n.V=Ox(30,n.X,Z));return n.V}; g.DL3=function(n,Z){n%=Z;return n*Z<0?n+Z:n}; K6=function(n,Z){var F=new Uint8Array(n.N.buffer,n.N.byteOffset+n.pos,Z);n.pos+=Z;return F}; cD=function(n){return n.W.B().experiments.RY("html5_preload_ads")}; paj=function(n,Z){if(!n.CR())if(g.b(Z.state,2)||g.b(Z.state,512)){if(n.C="paused",g.On(Z,2)||g.On(Z,512))g.On(Z,2)&&(n.N.previouslyEnded=!0),n.T&&(IZ(n),k8(n).send(),n.V=NaN)}else if(g.b(Z.state,8)){n.C="playing";var F=n.T&&isNaN(n.S)?a0(n):NaN;if(!isNaN(F)&&(XG(Z,64)<0||XG(Z,512)<0)){var y=VU(n,!1);y.J=F;y.send()}g.On(Z,16)&&Z.state.seekSource===58&&(n.N.previouslyEnded=!0)}else n.C="paused"}; pG=function(n){return n.N.getUint8(n.pos++)}; LNf=function(n,Z,F){n.N[Z]||(n.Xp("huli-sdai-err",F),n.N[Z]=!0)}; qFn=function(n,Z,F,y){var l="fmt.unplayable",m=1;F===5||F===3?(l="fmt.unparseable",n.policy.N?!y.bY.info.video||fi(n.V.N).size>0||x8(n.V.N,y.bY,!1):!y.bY.info.video||fi(n.N.S).size>0||G4(n.N,y.bY)):F===2&&(n.IW<15?(n.IW++,l="html5.invalidstate",m=0):l="fmt.unplayable");y=Nm(y);var a;y.mrs=(a=n.KR)==null?void 0:B4(a);y.origin=Z;y.reason=F;y.trg="appenderr";n.handleError(l,y,m)}; QT=function(n,Z,F,y){var l=g.A8(n.api.iN());if(l&&l.loaded){var m=n.api.getSubtitlesUserSettings();l=void 0;for(var a=0;aZ.startSeconds&&t_(n,Z.endSeconds)}; vaU=function(n){var Z;for(Z=0;Z<286;Z++)n.QX[Z*2]=0;for(Z=0;Z<30;Z++)n.L5[Z*2]=0;for(Z=0;Z<19;Z++)n.Ju[Z*2]=0;n.QX[512]=1;n.r_=n.Wi=0;n.q$=n.matches=0}; aO=function(n,Z,F,y,l){l=l===void 0?!1:l;Z!==n.xd&&(l||n.mQ.Xp("ssevt",{tag:n.N===0?"sstd-cr":n.N===1?"sstd-tm":n.N===2?"sstd-poll":n.N===3?"sstd-poll100":"sstd-unknown",ad:n.cpn!==Z,cpn:Z,st:F.toFixed(3),late:Math.round((y-F)*1E3)}),n.xd=Z,n.mQ.publish("playbackstarted",Z,F+n.mQ.Kn(),l))}; oi7=function(){var n=g.Di("yt.abuse.playerAttLoader");return n&&["bgvma","bgvmb","bgvmc"].every(function(Z){return Z in n})?n:null}; zFP=function(n,Z,F){var y;if((y=Z.JY)!=null&&y.Fm)try{var l,m=(l=n.cache)==null?void 0:MZi(l,jh(n,Z),Z.JY.MU);return m?F?XH(n.logger,function(){return g.Ee(m,2)},"a"):m:void 0}catch(a){n.reportError(new hg(23,"RXO:read",a))}}; $Gi=function(){}; $d=function(n,Z,F,y){if((n-7^20)>=n&&(n+5&59)=n&&(n+2&65)=0?(F=K[72]+y[K[0]](0,l),y=y[K[0]](l+1)):(l=y[K[32]](K[17]))>=0&&(F=K[72]+y[K[0]](0,l),y=y[K[0]](l+3))),Z[F]=y);((n|6)&8)<7&&n>>1>=28&&Z[K[36]]();return a}; St=function(n,Z,F,y,l,m,a){var D={};Z&&(D.gK=Z);if(!n)return D;D.playbackCookie=F==null?void 0:F.playbackCookie;l&&(D.DS=l);D.l3=[];D.lZ=[];if(a==null?0:a.size)for(Z=g.Y(a.values()),F=Z.next();!F.done;F=Z.next())D.lZ.push(F.value);if(n.sabrContextUpdates.size>0)for(Z=g.Y(n.sabrContextUpdates.values()),F=Z.next();!F.done;F=Z.next())X$U(D,F.value,y);YA(n)&&m&&X$U(D,m,y);y=n.B().N;D.clientInfo={clientName:Pej[y.c.toUpperCase()]||0};y.cbrand&&(D.clientInfo.deviceMake=y.cbrand);y.cmodel&&(D.clientInfo.deviceModel= y.cmodel);y.cver&&(D.clientInfo.clientVersion=y.cver);y.cos&&(D.clientInfo.osName=y.cos);y.cosver&&(D.clientInfo.osVersion=y.cosver);y=n.B();y.j("html5_sabr_enable_server_xtag_selection")&&y.cV&&(D.clientInfo.hl=y.cV);n.g6&&(D.g6=n.g6);return D}; qH=function(n,Z,F,y,l,m){var a=m===void 0?{}:m;var D=a.L7===void 0?[]:a.L7;var p=a.Ea===void 0?!1:a.Ea;var L=a.s3===void 0?0:a.s3;var q=a.poToken===void 0?"":a.poToken;var w=a.Na===void 0?void 0:a.Na;var T=a.Fi===void 0?"":a.Fi;var P=a.Nh===void 0?0:a.Nh;var J=a.Ej===void 0?new Uint8Array(0):a.Ej;var U=a.l7===void 0?!1:a.l7;m=a.e5===void 0?0:a.e5;a=a.gK===void 0?void 0:a.gK;YG.call(this,Z,l);var h=this;this.policy=n;this.logger=new g.hL("dash/request");this.K3=this.Wm=0;this.WU=!1;this.vW=this.oE= null;this.HB=!1;this.Ej=this.Nh=null;this.HX=this.JK=!1;this.Yn=null;this.e5=this.Rr=0;this.sQ=!1;this.vx={rM:function(V){h.rM(V)}, Jir:function(){return h.AV}, NdQ:function(V){h.AV=V}, PV8:function(V){h.Wm=V}, mnp:function(V){h.US.lastError=V}, Al:function(){return h.xhr}}; this.timing=new FB(this,F);this.Ea=p;this.Nh=P;this.Ej=J;this.SH=g.Vz(this.info,this.policy,y);this.SH.set("rn",this.o7().toString());this.SH.set("rbuf",(L*1E3).toFixed().toString());this.Ea&&this.SH.set("smb","1");this.policy.lw&&q&&this.SH.set("pot",q);T&&this.SH.set("bbs",T);this.policy.useUmp&&!Vh(3,this.SH.lU)&&(this.Un=new s4(this),this.SH.set("ump","1"),this.SH.set("srfvp","1"));if(n=this.policy.JT?this.policy.KW&&!isNaN(this.info.DC)&&this.info.DC>this.policy.Zs?!1:!0:!1)Z=null,this.policy.BWg&& this.policy.Yc?Z=[1]:U&&(Z=[]),Z!=null&&(this.policy.Yo&&Z.push(2),this.SH.set("defsel",Z.join(",")));this.US=new D8(this,this.policy,this.SH,this.info.Er,this.timing,this.logger,y,w);this.L7=D||null;this.JO=DYK(this);Fhn(this.US);y=void 0;if(this.policy.hHQ||this.Un||this.policy.r5)y={method:"POST"},D=(0,g.sY)([120,0]),w={},this.policy.wx&&a&&(a=St(void 0,a),w.T0=a),this.policy.oM&&this.Ej&&(w.videoPlaybackUstreamerConfig=this.Ej),this.policy.r5&&(a=this.info.V)&&Object.assign(w,a),Object.keys(w).length> 0?y.body=g.py(w,g.U$):y.body=D;if(this.Nh&&this.Ej){this.SH.set("iwts","1");y={method:"POST"};a={vt:this.Nh*1E3};var v;D=(v=this.info.V)==null?void 0:v.g8;v=g.py({Dw:a,g8:D||void 0,videoPlaybackUstreamerConfig:this.Ej},g.U$);y.body=v}try{this.xhr=yQ(this.SH,this.policy.L,this.timing,n,y),this.US.X.start(),m&&(this.DL=new g.e7(this.AM,m,this),this.DL.start(m+(this.timing.zN.L.lH()||0)*1E3)),this.policy.aB&&Wo(this.timing,this.Uw()),g.MC(function(){})}catch(V){JMU(this,V,!0)}}; N$=function(n,Z,F,y,l,m,a){var D;(n^15)>>4||(this[K[15]]=Z,this[K[16]]=F===void 0?!1:F,this[K[7]]=this[K[9]]=this[K[40]]=K[12],this[K[31]]={},this[K[13]]=K[12]);(n|48)==n&&(D=F(l,m,a));if((n+6^12)>=n&&(n-1^8)0?$d(3,y,p[K[0]](0,L),p[K[0]](L+1)):p&&(y[p]=K[12]);D=[]}(n>>1&7)==1&&(D=Z!==null);if((n-3^23)>=n&&(n+5&44)n.pJ())n.segments=[];else{var F=qD(n.segments,function(y){return y.O8>=Z},n); F>0&&n.segments.splice(0,F)}}; U3Q=function(n,Z){if(Z<0)return"0";n=Math.floor(Math.min(Z,n.api.getDuration())*1E3);return n>2147483647?"0":String(n)}; Qu=function(n){g.xu.call(this);var Z=this;this.S=this.X=0;this.Xn=n!=null?n:{k6:function(l,m){return setTimeout(l,m)}, qc:function(l){clearTimeout(l)}}; var F,y;this.N=(y=(F=window.navigator)==null?void 0:F.onLine)!=null?y:!0;this.T=function(){return g.A(function(l){return g.x(l,Lp(Z),0)})}; window.addEventListener("offline",this.T);window.addEventListener("online",this.T);this.S||this.YA()}; TPo=function(n,Z){return n.Ae.PNT&&Z.reason==="l"||n.Ae.gi?!1:n.Ae.wA?!0:Z.reason==="l"||Z.reason==="b"||Z.reason==="o"}; SFi=function(n,Z,F){F=F===void 0?null:F;var y=Nb3(typeof n==="string"?n:n.toString()),l=document.getElementById(y),m=l&&abY(l),a=l&&!m;m?Z&&Z():(Z&&(m=g.ny(y,Z),Z=""+g.c2(Z),Qen[Z]=m),a||(l=OLQ(n,y,function(){abY(l)||(qXY(l),g.SH(y),g.A3(function(){a7Q(y)},0))},F)))}; jkp=function(n){if(!n||!n.adPlacements&&!n.adSlots)return!1;for(var Z=g.Y(n.adPlacements||[]),F=Z.next();!F.done;F=Z.next())if(F=F.value)if(F=F.adPlacementRenderer,F!=null&&(F.config&&F.config.adPlacementConfig&&F.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;n=g.Y(n.adSlots||[]);for(Z=n.next();!Z.done;Z=n.next()){var y=F=void 0;if(((F=g.e(Z.value,WJ))==null?void 0:(y=F.adSlotMetadata)==null?void 0:y.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; G1=function(n,Z){return Z>=n.UV()-jH(n)}; Kr=function(n,Z){n=Xa(n);var F={};if(Z){Z=g.Y(Z.split(","));for(var y=Z.next();!y.done;y=Z.next())(y=y.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(F[y[1]]={width:y[2],height:y[3]})}Z=g.Y(n);for(y=Z.next();!y.done;y=Z.next()){y=y.value;var l=F[y.itag];l&&(y.width=l.width,y.height=l.height)}return n}; P4j=function(n,Z){var F;if((F=n.questions)==null||!F.length||!n.playbackCommands||(Z===void 0||!Z)&&n.questions.length!==1)return!1;n=g.Y(n.questions);for(Z=n.next();!Z.done;Z=n.next()){Z=Z.value;var y=F=void 0,l=((F=g.e(Z,To))==null?void 0:F.surveyAdQuestionCommon)||((y=g.e(Z,wm))==null?void 0:y.surveyAdQuestionCommon);if(!M7Q(l))return!1}return!0}; djK=function(n,Z){var F=Mm(n);dd(n.mQ.getPlayerState())&&(F>=Z.mediaTime?(Z.resolve([Z.mediaTime,Z.id]),n.N.delete(Z.id)):(Z.delay.dispose(),F=(Z.mediaTime-F)*1E3/n.mQ.getPlaybackRate(),Z.delay=new g.e7(function(){djK(n,Z)},F/2),Z.delay.start()))}; igQ=function(n,Z,F){F=n.N.f5(F);var y=n.X;y.N.exports.AES128CTRCipher_setCounter(y.cipher,F.byteOffset);n.N.free(F.byteOffset);Z=n.N.f5(Z);n.X.encrypt(Z);return Z}; ULU=function(n,Z){n.Y.j("html5_log_rebuffer_reason")&&(Z={r:Z,lact:of()},n.mediaElement&&(Z.bh=n.mediaElement.yq()),n.Xp("bufreason",Z))}; rF=function(n){var Z=n.hours||0;var F=n.minutes||0,y=n.seconds||0;Z=y+F*60+Z*3600+(n.days||0)*86400+(n.weeks||0)*604800+(n.months||0)*2629800+(n.years||0)*31557600;Z<=0?Z={hours:0,minutes:0,seconds:0}:(n=Z,Z=Math.floor(n/3600),n%=3600,F=Math.floor(n/60),y=Math.floor(n%60),Z={hours:Z,minutes:F,seconds:y});var l=Z.hours===void 0?0:Z.hours;F=Z.minutes===void 0?0:Z.minutes;n=Z.seconds===void 0?0:Z.seconds;y=l>0;Z=[];if(y){l=(new Intl.NumberFormat("en-u-nu-latn")).format(l);var m=["fr"],a="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(" "); l="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(Uu)?l.replace(",","\u00a0"):m.includes(Uu)?l.replace(",","\u202f"):a.includes(Uu)?l.replace(",","."):l;Z.push(l)}y=y===void 0?!1:y;F=(["af","be","lt"].includes(Uu)||y)&&F<10?xmU().format(F):(new Intl.NumberFormat("en-u-nu-latn")).format(F);Z.push(F);F=xmU().format(n);Z.push(F);F=":";"da fi id si sr sr-Latn".split(" ").includes(Uu)&&(F=".");return Z.join(F)}; AaU=function(n,Z,F,y){n=xSo(qlp(pQe(new oP(1828,"0"),n),new Pc)).pX();Z.length&&CVT(n,nrf(new fs8,Z));y!==void 0&&(n.M_=y);var l=new B$(1828,"","",!1,"",n.build());g.S(l,n);var m=new g.SI({flush:function(a){try{l.flush(a)}catch(D){F(D)}}}); m.addOnDisposeCallback(function(){setTimeout(function(){try{m.kE()}finally{l.dispose()}})}); m.T=1E5;m.flushInterval=3E4;m.N.setInterval(3E4);return m}; YXj=function(n,Z,F,y,l,m,a,D){this.FJ=n;this.tG=Z;this.uY=F;this.X=y;this.aA=l;this.N=m;this.U8=a;this.nR=D}; JMU=function(n,Z,F){F=F===void 0?!1:F;g.ZW(Z);n.US.lastError="player.exception";n.errorMessage=Z.name+"_"+Z.message;F?g.MC(function(){Nz(n.US)}):Nz(n.US)}; NN8=function(n,Z){n.callback=Z;n.V=[];Rme(n.iY.experiments)?N_p(n):hw8(n)}; OuK=function(n,Z){return Z.map(function(F){var y,l;if((F=(y=g.e(F,EiT))==null?void 0:(l=y.thumbnail)==null?void 0:l.thumbnails)&&F.length!==0)return F[0].url}).filter(function(F){return F!==void 0}).map(function(F){F=new g.R({U:"img", K:"ytp-suggested-action-product-thumbnail",Z:{alt:"",src:F}});g.S(n,F);return F})}; cMi=function(n,Z){var F;F8(n.uY.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(F=n.nR.get().p5)==null?void 0:F.clientPlaybackNonce,adClientData:n.layout.lN.adClientDataEntry},Z)})}; fC=function(n){return d9(n)&&n.allowLiveDvr}; jF=function(n){return n?(n.itag||"")+";"+(n.lmt||0)+";"+(n.xtags||""):""}; du=function(n){this.MO=n}; QQ=function(n,Z){var F=n.sendVisitorIdHeader?n.visitorData:void 0;return g.Cv(n.Y,n.accessToken).then(function(y){return RqU(n.uri,n.Y,n.pageId,F,y,Z)})}; V8Y=function(n){if(!/^\w+$/.test(n))throw Error("ExpectedRegexMismatch: "+n);}; BJ=function(n){var Z=n.j("html5_enable_server_format_filter")&&!n.mF(),F=n.j("html5_enable_server_format_filter_for_drm")&&n.mF();return YA(n)&&(Z||F)}; sFj=function(n){var Z=window;Z.ywc||(Z.ywc={});var F=Z.ywc[n];if(F)return F;F={};return Z.ywc[n]=F}; viK=function(n,Z){var F=xL().resolve(nQ8);if(mQY(Z)){var y=AK(Z,"gclid");Z={handleEvent:function(D){n&&!n.closed&&typeof n.postMessage==="function"&&D&&D.origin&&D.source===n&&D.data&&D.data.action==="gcl_setup"&&n.postMessage(Object.assign({},{action:"gcl_transfer"},y&&{gclid:y},{gadSource:2}),D.origin)}}; for(var l=g.Y(F.N),m=l.next();!m.done;m=l.next()){var a=g.Y(m.value);m=a.next().value;a=a.next().value;if(m.closed)try{window.removeEventListener("message",a),F.N.delete(m)}catch(D){g.ZW(D)}}n&&F.N.size<15&&(F.N.set(n,Z),window.addEventListener("message",Z))}}; Xrf=function(n,Z,F){var y;return g.A(function(l){switch(l.N){case 1:var m=n.N;var a=Ri();m=a?new Mw(m.X,a):void 0;y=m;if(!y){l.ST(2);break}g.RX(l,3);return g.x(l,y.encrypt(Z,F),5);case 5:return l.return(l.X);case 3:g.d4(l);case 2:return l.return(IKU(n,Z,F))}})}; o$=function(n){return n.pos>=n.N.byteLength}; g.mM=function(){fKn||(fKn=new tnK);return fKn}; rrT=function(n,Z,F,y,l,m,a,D,p,L,q){n=AM7(n,Z,"core",F,y,l,m,a,D,p,L,void 0,q);return{layoutId:n.layoutId,layoutType:n.layoutType,Nd:n.Nd,layoutExitNormalTriggers:n.layoutExitNormalTriggers,layoutExitSkipTriggers:n.layoutExitSkipTriggers,layoutExitMuteTriggers:n.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:n.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:n.layoutExitUserCancelledTriggers,Gx:n.Gx,clientMetadata:new lb(n.GE),lN:n.lN,adLayoutLoggingData:n.adLayoutLoggingData}}; WNo=function(n,Z){n.NK()?Z=0:n.uf==-1?Z=0:(Z-=n.uf,Z=Z>Math.max(1E4,n.T/3)?0:Z);var F=n.J(n)||{};F=F.currentTime!==void 0?F.currentTime:n.Ns;var y=F-n.Ns,l=0;y>=0?(n.Tx+=Z,n.lY+=Math.max(Z-y,0),l=Math.min(y,n.Tx)):n.aY+=Math.abs(y);y!=0&&(n.Tx=0);n.fR==-1&&y>0&&(n.fR=iu>=0?$1()-iu:-1);n.Ns=F;return l}; vrY=function(n,Z,F){if(!n||!Z)return!1;Z=r5(n.clone(),-Z.left,-Z.top);n=(Z.left+Z.right)/2;Z=(Z.top+Z.bottom)/2;Yh(window.top)&&window.top&&window.top.document&&(window=window.top);if(!rMi())return!1;n=window.document.elementFromPoint(n,Z);if(!n)return!1;Z=(Z=(Z=dt(F))&&Z.defaultView&&Z.defaultView.frameElement)&&E83(Z,n);var y=n===F;n=!y&&n&&VF(n,function(l){return l===F}); return!(Z||y||n)}; Rwn=function(n){if(n.isExternallyHostedPodcast)return RM();var Z=Kr(n.BC,n.YS);if(n.hlsvp){var F=xLQ(n.hlsvp,n.clientPlaybackNonce,n.Qc);Z.push(F)}return AcT(n.iY,n.isAd(),Z,G1Y(n)).then(function(y){DM(n,y)})}; hN=function(n){g.xU(n.V,!n.N)}; H4=function(n,Z,F,y){y=g.Y(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;var m=n.Pj.iT.get(l.triggerType);m.Jw(F,l,Z.slot,Z.layout?Z.layout:null);Z.Tx.set(l.triggerId,m)}}; QK7=function(n){/[^a-zA-Z0-9;.!_-]/.test(n)&&(n=n.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return n}; Eu=function(n,Z,F,y,l,m){By.call(this,n,{U:"div",K:"ytp-ad-skip-button-slot"},"skip-button",Z,F,y,l);var a=this;this.Tx=null;this.zx=!1;this.aY=m;this.S=this.api.B().experiments.RY("enable_modern_skip_button_on_web");this.yg=!1;this.V=new g.oS({U:"span",s8:["ytp-ad-skip-button-container"]});this.S&&this.V.element.classList.add("ytp-ad-skip-button-container-detached");g.S(this,this.V);this.V.oY(this.element);this.X=this.T=null;this.hG=new g.J9(this.V,500,!1,100,function(){return a.hide()}); g.S(this,this.hG);this.jT=new US(this.V.element,15E3,5E3,.5,.5,this.S);g.S(this,this.jT);this.hide()}; nM=function(){var n=Nt();return!(!n.webkitSupportsPresentationMode||typeof n.webkitSetPresentationMode!=="function")}; OK=function(n){if(n.isManifestless)for(var Z in n.N)n.N[Z].index.segments=[]}; H9f=function(n){if(n.j("html5_stateful_audio_normalization")){var Z=1,F=g.jf(n.iY.experiments,"html5_default_ad_gain");F&&n.isAd()&&(Z=F);var y,l;F=(l=(y=n.V)==null?void 0:y.audio.V)!=null?l:n.O0;if(F==null||isNaN(F))n=Jse(n);else{y=(0,g.tP)();n.iU=1;l=y-n.iY.UW<=n.maxStatefulTimeThresholdSec*1E3;n.applyStatefulNormalization&&l?n.iU=2:l||(n.iY.bT=Infinity,n.iY.UW=NaN);l=(n.iU===2?g.mk(n.iY.bT,n.minimumLoudnessTargetLkfs,n.loudnessTargetLkfs):n.loudnessTargetLkfs)-F;if(n.iU!==2){var m,a,D,p,L=((m= n.playerResponse)==null?void 0:(a=m.playerConfig)==null?void 0:(D=a.audioConfig)==null?void 0:(p=D.loudnessNormalizationConfig)==null?void 0:p.statelessLoudnessAdjustmentGain)||0;l+=L}l=Math.min(l,0);n.preserveStatefulLoudnessTarget&&(n.iY.bT=F+l,n.iY.UW=y);n=Math.min(1,Math.pow(10,l/20))||Z}}else n=Jse(n);return n}; dQT=function(n,Z){Px(n,1,Z.hl);Px(n,12,Z.deviceMake);Px(n,13,Z.deviceModel);Sf(n,16,Z.clientName);Px(n,17,Z.clientVersion);Px(n,18,Z.osName);Px(n,19,Z.osVersion)}; Fg=function(n,Z){if(Z.info.T){n.xi=Z.info;if(n.S){var F=n.S,y=o33(n,!1);F=Pmo(F);n.loader.AA(n.bY,y,F);n.Ns||n.policy.Mt||JY3(n);n.Ns=null}$X(n)}n.C&&pHK(n.C,Z);if(y=n.pB())if(y=g.nK(y,Z,n.policy.Vl,n.policy.VG)){n.X.pop();n.X.push(y);return}n.X.push(Z)}; giQ=function(n,Z){iR.call(this,n);this.error=Z;this.N="e";this.X="y"}; q8=function(n,Z,F,y,l,m){CW.call(this,n,{U:"div",K:"ytp-ad-text"},m===void 0?"ad-text":m,Z,F,y,l===void 0?null:l);this.N=null;this.hide()}; iu3=function(n,Z){return n.J?zf(n.J.V,Z):n.Wr.length?zf(n.Wr,Z):[]}; Ceo=function(n,Z,F,y,l){var m,a,D,p,L,q,w,T,P,J,U,h,v;g.A(function(V){switch(V.N){case 1:m=!!Z.scrubReferrer;a=g.tM(Z.baseUrl,lZP(F,m,y));D={};if(!Z.headers){V.ST(2);break}p=n.V();if(!p.N){L=p.getValue();V.ST(3);break}return g.x(V,p.N,4);case 4:L=V.X;case 3:q=L;w=g.Y(Z.headers);for(T=w.next();!T.done;T=w.next())switch(P=T.value,P.headerType){case "VISITOR_ID":g.BT("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=g.BT("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.BT("EOM_VISITOR_DATA")&&(D["X-Goog-EOM-Visitor-Id"]= g.BT("EOM_VISITOR_DATA"));break;case "USER_AUTH":q&&(D.Authorization="Bearer "+q);break;case "PLUS_PAGE_ID":(J=n.S())&&(D["X-Goog-PageId"]=J);break;case "AUTH_USER":U=n.N();!q&&U&&(D["X-Goog-AuthUser"]=U);break;case "DATASYNC_ID":if(h=void 0,(h=n.T())==null?0:h.RY("enable_datasync_id_header_in_web_vss_pings"))v=n.X(),tK(a)&&g.BT("LOGGED_IN")&&v&&(D["X-YouTube-DataSync-Id"]=v)}"X-Goog-EOM-Visitor-Id"in D&&"X-Goog-Visitor-Id"in D&&delete D["X-Goog-Visitor-Id"];case 2:g.yM(a,void 0,m,Object.keys(D).length!== 0?D:void 0,"",!0,l),g.zA(V)}})}; Wl=function(n,Z){var F,y;return(y=(F=n.T)!=null?F:Z.priority)!=null?y:0}; Ju7=function(n,Z){var F;((F=window.performance)==null?0:F.getEntriesByName)&&(Z=performance.getEntriesByName(Z))&&Z.length&&(Z=Z[0],n.pedns=(Z.domainLookupEnd-Z.startTime).toFixed(),n.pecon=(Z.connectEnd-Z.domainLookupEnd).toFixed(),n.perqs=(Z.requestStart-Z.connectEnd).toFixed(),VDj&&(n.perqsa=Z.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; uef=function(n){n.w5||(n.w5=(0,g.tP)(),g.gF("oafs_rp",n.w5,n.N))}; o5=function(n,Z){n=n.N.get(Z);if(n!==void 0)return n.get()}; bue=function(n,Z,F,y,l){n1.call(this,"ads-engagement-panel",n,Z,F,y,l)}; XaY=function(n,Z){return dy()?t$(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(Z))<0&&(n.N.start(),D=!0,F.delayed="1",--n.T);l=n.mQ.loader; D||!((y==null?0:Fa(y))||(y==null?0:n5(y)))||m||(MzP(n.iY.S,y.vr),a=D=!0,F.cfallexp=y.vr);if(!D)return LJj(n,F);m=!1;n.S?n.BP=(0,g.tP)():m=n.S=!0;D=n.videoData;if(D.zx){D=D.zx.Bk();var p=Date.now()/1E3+1800;D=D0?m[l-1]+1:0,y+1).reduce(function(a,D){return a+D},0)})}; Jp=function(n){return n==="gelDebuggingEvent"}; t8p=function(n){var Z=n.V;n.V=[];return Z}; k1P=function(n,Z){var F,y,l,m,a,D,p,L,q,w,T;return g.A(function(P){switch(P.N){case 1:F=Z.isAd(),y=!F,l=F?1:3,m=0;case 2:if(!(m0)){P.ST(5);break}return g.x(P,fa(5E3),6);case 6:a=new g.FV("Retrying OnePlatform request",{attempt:m}),g.yi(a);case 5:return g.RX(P,7),g.x(P,ulf(n,Z),9);case 9:return P.return();case 7:D=g.d4(P);p=oG(D);L=p.errorCode;q=n.B();w=q.j("html5_use_network_error_code_enums")?401:"401";y&&L==="manifest.net.badstatus"&&p.details.rc===w&&(y=!1,m===l-1&&(l+= 1));if(m===l-1)return T=yBe(F,p.details),T.details.backend="op",T.details.originec=L,P.return(Promise.reject(T));if(L==="auth"||L==="manifest.net.retryexhausted")return P.return(Promise.reject(p));n.handleError(p);if(W0(p.severity)){P.ST(4);break}case 3:m++;P.ST(2);break;case 4:return P.return(Promise.reject(yBe(F,{backend:"op"})))}})}; GRf=function(){Ot.instance||(Ot.instance=new Ot);return Ot.instance}; wV=function(n){this.W=n}; ewQ=function(n,Z){n.dM().autonavState=Z;g.Oh("yt-player-autonavstate",Z);n.JG.publish("autonavchange",Z)}; Hu3=function(n,Z,F,y,l){try{if(n.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var m=F(n.state.value);m instanceof g.vX?I8(n,Z,m,y,l):y(m)}catch(a){l(a)}}; dLP=function(n,Z,F,y,l,m,a,D,p,L,q,w,T,P){g.I.call(this);this.callback=n;this.nR=Z;this.ym=F;this.gM=y;this.tG=l;this.To=m;this.tD=a;this.fT=D;this.slot=p;this.layout=L;this.wO=q;this.sD=w;this.wM=T;this.U8=P;this.dJ=!0;this.EQ=!1;this.Vi=[];this.CP=-1;this.cL=!1}; B_f=function(n){Ua(n)&&n.sU();xun(n)&&(oC(n,"captions",!0),oC(n,"endscreen"),n.tE(),oC(n,"creatorendscreen",!0))}; y_=function(n,Z,F){nk.push({payloadName:n,payload:F,Pop:void 0,options:Z});Z5||(Z5=lTe())}; $zU=function(n,Z,F,y,l){if(Z&&typeof Z==="object"){var m=function(a){return M88(n,a,F,y,l)}; if(Sr(Z))return Z.then(m);if(YY(Z))return Dv(Z,m)}return M88(n,Z,F,y,l)}; AGp=function(n,Z,F,y){F.D4.push.apply(F.D4,g.t(y));if(iT){F.YW.has(Z)||F.YW.set(Z,[]);var l;(l=F.YW.get(Z)).push.apply(l,g.t(y))}else if(F.AV)for(n=g.Y(y),Z=n.next();!Z.done;Z=n.next())F.AV.D4.push(Z.value);else{F.AV=new ie(n.Ae,[].concat(g.t(F.D4)));var m;((m=n.Ae)==null?0:m.lT)&&g.S(n,F.AV)}}; IKU=function(n,Z,F){var y,l=(y=n.N.N)==null?void 0:y.encrypt(Z,F);return l?l:(new g.$y(n.N.X)).encrypt(Z,F)}; BN3=function(n){this.value=n}; nGY=function(n,Z){if(n.N){var F=n.N.q1.iy-(Z.startTime+n.L-n.N.q1.startSecs);F<=0||(F=new Y8(n.N.q1.startSecs-(isNaN(n.L)?0:n.L),F,n.N.q1.context,n.N.q1.identifier,"stop",n.N.q1.N+Z.duration*1E3),n.Xp("cuepointdiscontinuity",{segNum:Z.O8}),PF(n,F,Z.O8))}}; ZpQ=function(n){for(var Z=g.Y("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),F=Z.next();!F.done;F=Z.next())n.l5.G(n.mediaElement,F.value,n.wL,n);n.Y.Ck&&n.mediaElement.VN()&&(n.l5.G(n.mediaElement,"webkitplaybacktargetavailabilitychanged",n.B1i,n),n.l5.G(n.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",n.DdQ,n))}; YP=function(n,Z){n.Ns=NaN;n.Pr=null;n.L.stop();n.V&&Z&&n.V.QY();n.C=null;n.V=null}; Fo7=function(n){var Z=(0,g.tP)(),F=n.getCurrentTime();n=n.getVideoData();F=1E3*(F-n.startSeconds);n.isLivePlayback&&(F=0);return Z-Math.max(F,0)}; wP=function(){return{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]}}; yL=function(n){n.T.hide();n.banner.update({vendor:uD7(n)})}; wCP=function(n,Z,F){var y=Z.xg;Z.xg=F;kS(n,Z)&&(F=n.app.Z4(),y.Is===n.T&&Wc(n),F.removeCueRange(y.Is),F.addCueRange(Z.xg.Is))}; yNo=function(n){n=n.adPlacementRenderer.config.adPlacementConfig;if(n.prefetchModeConfig&&n.prefetchModeConfig.cacheFetchRefreshDurationMs&&(n=Number(n.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(n)||n<=0)))return n}; AX=function(n){return g.A8(n.W.iN())!=null?g.A8(n.W.iN()).Pl()?!!n.W.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; A0=function(n){var Z=(484).toString();n&&(Z=(483).toString());return Z}; lE3=function(n){var Z={};return C8((Z.dlt=n.downloadedEndTime.toString(),Z.mket=n.maxKnownEndTime.toString(),Z.avbr=n.averageByteRate.toString(),Z))}; tI=function(n,Z){var F=n.W.getVideoData(Z);return F?n.Bb(F,Z||n.W.getPresentingPlayerType(!0)):null}; ssf=function(n,Z){var F,y,l,m,a,D,p,L;return g.A(function(q){if(q.N==1){F=qL(n,"redirector.googlevideo.com");F.set("alr","yes");F.set("id",""+Math.round(Math.random()*1E5));if(Z===1||Z===2)F.set("cmo=sensitive_content","yes"),F.set("sc","yes");Z===2&&F.set("cmo=td","c.youtube.com");y={format:"RAW",timeout:5E3};return g.x(q,l4(F.Uw(),y),2)}l=q.X;if(l.xhr.status!==200||!l.xhr.responseText)return q.return(Promise.reject(new g.FV("b204258371_no_host",F.Uw(),l.xhr.status)));m=new g.yD(l.xhr.responseText); a=qv(3,m);D=m.get("ms");p=qL(n,a);L=m.get("mm");p.set("ms",D);p.set("mm",L);return a&&IV8(a)?Z!==2||ax(a)?q.return(p):q.return(Promise.reject(new g.FV("b204258371_untrusted",a,D))):q.return(Promise.reject(new g.FV("b204258371_invalid",a,D)))})}; mz3=function(n){Qm(n,4,!1);n.J&&(n.N.o0(n.J),n.J=null,n.T=n.N.G(n.target,"mouseover",n.ZA));n.T&&(n.N.o0(n.T),n.T=n.N.G(n.target,"mouseover",n.ZA))}; zj=function(n,Z){Z=n.split(Z);for(var F={},y=0,l=Z.length;yy.startSeconds&&t_(n,y.endSeconds);n.JL.finished=!0;Qa(n,"dataloaded");n.g_.lz()&&E0(n);t$3(n.x6,n.Q9)}}); n.j("html5_log_media_perf_info")&&n.Xp("loudness",{v:n.videoData.Wu.toFixed(3)},!0);var Z,F=(Z=n.mediaElement)==null?void 0:Z.w1();if(F&&"disablePictureInPicture"in F&&n.Y.Hf)try{F.disablePictureInPicture=n.Y.j8&&!n.videoData.backgroundable}catch(y){g.yi(y)}OFf(n);n.MR=new qE7(n.videoData)}else Qa(n,"dataloaded")}; P6Y=function(n){n.W.cueVideoByPlayerVars({videoId:"empty_video"},2)}; mo=function(n,Z,F,y,l){y=y===void 0?!1:y;g.I.call(this);this.iY=Z;this.useCobaltWidevine=y;this.Xp=l;this.X=[];this.T={};this.N={};this.callback=null;this.S=!1;this.V=[];this.initialize(n,!F)}; N6=function(n,Z,F,y){if(!(Z===n.state&&F===n.wB&&y===n.seekSource||Z!==void 0&&(Z&128&&!F||Z&2&&Z&16))){var l;if(l=Z)l=Z||n.state,l=!!(l&16||l&32);n=new g.iE(Z,F,l?y?y:n.seekSource:null)}return n}; g.VT=function(n){return JN7(n,n)}; $BP=function(){var n=this;this.proc_exit=function(){}; this.fd_write=function(Z,F,y){if(!n.exports)return 1;Z=new Uint32Array(n.exports.memory.buffer,F,y*2);F=[];for(var l=0;l>>0;Z=F>>>3;F&=7;if(!(F>=0&&F<=5))throw Error();if(Z<1)throw Error();n.T=Z;n.X=F;return!0}; wRj=function(n,Z){var F=n.N.N;if(F){n.videoInfos=n.C;var y=g.YW(n.videoInfos,function(l){return l.id===F}); y&&y.video.qualityOrdinal===Z?n.videoInfos=[y]:(y=n.videoInfos.map(function(l){return l.id}),n.loader.Xp("sabrpf",{pfid:""+F, vfids:""+y.join(".")}),EU(n,Z,Z),AT(n.N,""))}else EU(n,Z,Z)}; dy=function(){return typeof BigInt==="function"}; IH=function(n,Z,F,y){this.Ml=n;this.QU=Z;this.N=F;this.V=y;this.T=void 0;this.X=new Map;n.KT||(n.KT={});n.KT=Object.assign({},QsY,n.KT)}; vY=function(n){g.R.call(this,{U:"button",s8:["ytp-replay-button","ytp-button"],Z:{title:n.j("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},D:[g.n$()]});this.W=n;this.G(n,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.rM(n.getPlayerStateObject());XX(this.W,this.element,this)}; Yup=function(){}; gv=function(n){return n}; Qb=function(n,Z){for(var F in n)if(Z.call(void 0,n[F],F,n))return F}; NC=function(n,Z,F){Ea(n.N,Z*8+F)}; pbj=function(n){return n in Su7?Su7[n]:Su7[n]="on"+n}; jsT=function(n,Z,F){this.Q4=n;this.N4=Z;this.metadata=F}; NG8=function(n){if(n.X.getVideoData().T){var Z=n.kA.B().j("html5_gapless_suspend_next_loader")&&n.S===1;n.X.F7(n.V,Z,Uz7(n));S4(n,3);c$Q(n);var F=hU(n);Z=F.YC;F=F.eQ;Z.subscribe("updateend",n.F8,n);F.subscribe("updateend",n.F8,n);n.F8(Z);n.F8(F)}}; g.Is=function(n,Z){var F=g.S7.apply(2,arguments);n=n===void 0?0:n;g.FV.call(this,Z,F);this.errorType=n;Object.setPrototypeOf(this,this.constructor.prototype)}; PW=function(n,Z){g.b(n.playerState,128)||(n.QP(fp(n.playerState,1028,9)),n.Xp("dompaused",{r:Z}),n.publish("onAutoplayBlocked"))}; g.xu=function(){g.I.call(this);this.fm=new yy(this);this.NS=this;this.f9=null}; hgY=function(n,Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next())ND(n,F.value.slot,!1)}; OG7=function(n,Z,F,y){y=y===void 0?{}:y;var l=void 0;y.layer||(y.layer=0);l=y.parentLayer!==void 0?y.parentLayer:y.layer;var m=g.f_(l);l=g.Wg(l);var a=F||l,D;a&&(y.parentCsn!==void 0?D={clientScreenNonce:y.parentCsn,visualElement:a}:m&&m!=="UNDEFINED_CSN"&&(D={clientScreenNonce:m,visualElement:a}));var p,L=g.BT("EVENT_ID");m==="UNDEFINED_CSN"&&L&&(p={servletData:{serializedServletEventId:L}});g.N5("combine_ve_grafts")&&m&&WZ(n,m);g.N5("no_client_ve_attach_unless_shown")&&a&&m&&sC(a,m);try{var q=Kg7(n.client, Z,D,y.Yl,y.cttAuthInfo,p,y.implicitGestureType,y.loggingExpectations,y.automatedLogEventSource)}catch(P){yqi(P,{J_:Z,rootVe:l,J7s:F,qiY:m,eCT:D,Yl:y.Yl});g.ZW(P);return}TNf(q,Z,y.layer,y.cttAuthInfo);m&&m!=="UNDEFINED_CSN"&&l&&!cnU(m)&&kBp(n.client,m,l,!0);n.N[n.N.length-1]&&!n.N[n.N.length-1].csn&&(n.N[n.N.length-1].csn=q||"");g.HS({clientScreenNonce:q});Y9.instance||(Y9.instance=new Y9);g.gU(g_().N).bind(g_())();var w=g.Wg(y.layer);m&&m!=="UNDEFINED_CSN"&&w&&g.N5("music_web_mark_root_visible")&& g.Gx(q,w);n.X.delete(y.layer||0);n.V=void 0;var T;(T=n.w5.get(y.layer))==null||T.forEach(function(P,J){P?rq(n,J,P,y.layer):w&&rq(n,J,w,y.layer)}); Oen(n)}; MRQ=function(n){var Z=fj("");return k6(n.map(function(F){return YH(fj(F))}).join(YH(Z).toString()))}; EGf=function(n,Z){return""+n+"|"+(Z?"v":"a")}; g.Opn=function(n,Z){var F,y;return g.A(function(l){if(l.N==1)return g.N5("attmusi")&&g.N5("attmusi_ue")?g.x(l,fLj(),3):l.ST(2);if(l.N!=2)return F=l.X,l.return(F.s("ENGAGEMENT_TYPE_PLAYBACK",n,Z));var m=g.Di("yt.aba.att");return(y=m?m:Mi.instance!==void 0?Mi.instance.T.bind(Mi.instance):null)?l.return(y("ENGAGEMENT_TYPE_PLAYBACK",n,Z)):l.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; mh=function(n,Z){oq||(fX?fX.logEvent(n,Z):(GL.push({type:"EVENT",eventType:n,payload:Z}),GL.length>10&&GL.shift()))}; wfU=function(){this.V=this.T=this.N=this.timedOut=this.started=this.S=this.X=0}; cN3=function(n){var Z=n.api.getVideoData().interstitials,F=[];Z=g.Y(Z);for(var y=Z.next();!y.done;y=Z.next()){y=y.value;var l=F,m=l.push,a=n,D=y.playerVars,p=y.cf,L=y.time,q="yto-"+a.L++;L=new g.wg(L,L,{id:q,priority:7,namespace:"yto"});a.J[q]={playerVars:D,playerType:p};m.call(l,L);l=n.api.getVideoData(1);l=Object.assign({oauth_token:l.oauthToken},y.playerVars);n.api.preloadVideoByPlayerVars(l,y.cf)}n.api.y9(F,1)}; hze=function(n,Z,F,y){Z=DW(n,Z,F,y);return Z instanceof C?Z:WD(n,Z,F)}; Dlo=function(n){n.menuItem||(n.menuItem=new ya(n.api,function(Z){n.setVoiceBoostUserPreference(Z)},function(){return n.getVoiceBoostUserPreference()},function(){return n.getVoiceBoostState()}),g.S(n,n.menuItem))}; xNQ=function(n,Z){var F=this;this.N=n;this.pR=Z;this.loaded=this.status=0;this.error="";n=O9(this.N.get("range")||"");if(!n)throw Error("bad range");this.range=n;this.X=new y9;this.run().then(function(){F.pR.iJ()},function(y){F.error=""+y||"unknown_err"; F.pR.iJ()})}; q73=function(){var n={};this.X=(n.vs=[1,0],n.vw=[0,1],n.am=[2,2],n.a=[4,4],n.f=[8,8],n.bm=[16,16],n.b=[32,32],n.avw=[0,64],n.avs=[64,0],n.pv=[256,256],n.gdr=[0,512],n.p=[0,1024],n.r=[0,2048],n.m=[0,4096],n.um=[0,8192],n.ef=[0,16384],n.s=[0,32768],n.pmx=[0,16777216],n.mut=[33554432,33554432],n.umutb=[67108864,67108864],n.tvoff=[134217728,134217728],n);this.N={};for(var Z in this.X)this.X[Z][1]>0&&(this.N[Z]=0);this.T=0}; VH7=function(n,Z){var F=null;n.T&&(F=(Z?[n.T.defaultServiceEndpoint,n.T.defaultNavigationEndpoint]:[n.T.toggledServiceEndpoint]).filter(function(y){return y!=null})); return F||[]}; bR=function(n){g.I.call(this);var Z=this;this.options=n;this.C=new g.uR;this.RN=this.C.promise;this.S=new g.uR;this.L=1;this.T=new g.uR;this.V=[];this.isPaused=!1;this.YK=n.YK||function(){}; this.logger=new pKK(EXp(n.zY||{}));iXY(this,n.Rt,n.BIg,n.M3Y,n.Tdg,Object.assign({},vGo,n.z0||{}));this.addOnDisposeCallback(function(){return void $37(Z)})}; Fie=function(n){n.skip(4);return{XjY:loe(n,0),value:loe(n,0),timescale:uA(n),ftr:uA(n),eventDuration:uA(n),id:uA(n),m1:loe(n),offset:n.offset}}; KM=function(n,Z){Z=Z||n.videoTrack&&n.videoTrack.N&&n.videoTrack.N.startTime||n.getCurrentTime();var F=n.videoTrack,y=n.N;Z=y.nextVideo&&y.nextVideo.index.Um(Z)||0;y.Wr!==Z&&(y.lY={},y.Wr=Z,WH(y,y.N));Z=!y.N.isLocked()&&y.Pr>-1&&(0,g.tP)()-y.Pr32?Math.min(y,l.video.width):y},Infinity); F32||y.video.width=2&&(n.slot_pos=Z.adPodIndex);n.autoplay="1"}; wT7=function(n){var Z=[],F=n.sandwichedLinearAdRenderer&&n.sandwichedLinearAdRenderer.linearAd&&g.e(n.sandwichedLinearAdRenderer.linearAd,n7);if(F)return Z.push(F),Z;if(n.instreamVideoAdRenderer)return Z.push(n.instreamVideoAdRenderer),Z;if(n.linearAdSequenceRenderer&&n.linearAdSequenceRenderer.linearAds){n=g.Y(n.linearAdSequenceRenderer.linearAds);for(F=n.next();!F.done;F=n.next())F=F.value,g.e(F,n7)&&Z.push(g.e(F,n7));return Z}return null}; Wop=function(n,Z){n=n.api.getRootNode();g.w4(n,"ytp-ad-overlay-open",Z);g.w4(n,"ytp-ad-overlay-closed",!Z)}; u37=function(n,Z,F,y,l,m,a,D,p,L,q,w){function T(V){return yP(n.xs.get(),V)} var P=F.renderer,J=F.config.adPlacementConfig,U=J.kind,h=F.adSlotLoggingData,v=D.Xr&&U==="AD_PLACEMENT_KIND_START";v=m&&!v;if(P.adsEngagementPanelRenderer!=null)return hJ(Z,F.elementId,U,P.adsEngagementPanelRenderer.isContentVideoEngagementPanel,P.adsEngagementPanelRenderer.adVideoId,P.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,J,h,function(V,f,W,X){var u=n.N.get(),Fp=V.slotId,nQ=P.adsEngagementPanelRenderer;V=yP(n.xs.get(),V);return zJ(u,Fp,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Xd(nQ),f,W,nQ.impressionPings,V,P.adsEngagementPanelRenderer.adLayoutLoggingData,X)}),[]; if(P.adsEngagementPanelLayoutViewModel)return hJ(Z,F.elementId,U,P.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,P.adsEngagementPanelLayoutViewModel.adVideoId,P.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,J,h,function(V,f,W,X){var u=n.N.get(),Fp=V.slotId,nQ=P.adsEngagementPanelLayoutViewModel;V=yP(n.xs.get(),V);return Jx(u,Fp,"LAYOUT_TYPE_PANEL",new rN7(nQ),f,W,V,P.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,X)}),[]; if(P.actionCompanionAdRenderer!=null){if(P.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return xzK(n.X.get(),n.T,n.N.get(),P.actionCompanionAdRenderer,J,h,y,T);hJ(Z,F.elementId,U,P.actionCompanionAdRenderer.isContentVideoCompanion,P.actionCompanionAdRenderer.adVideoId,P.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,J,h,function(V,f,W,X){var u=n.N.get(),Fp=V.slotId,nQ=P.actionCompanionAdRenderer;V=yP(n.xs.get(),V);return zJ(u,Fp,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new la(nQ),f,W,nQ.impressionPings,V,P.actionCompanionAdRenderer.adLayoutLoggingData,X)})}else if(P.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(P.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return bcY(n.X.get(),n.T,n.N.get(),P.topBannerImageTextIconButtonedLayoutViewModel,J,h,y,T); hJ(Z,F.elementId,U,P.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,P.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,P.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,J,h,function(V,f,W,X){var u=n.N.get(),Fp=V.slotId,nQ=P.topBannerImageTextIconButtonedLayoutViewModel;V=yP(n.xs.get(),V);return Jx(u,Fp,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new zk(nQ),f,W,V,P.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,X)})}else if(P.imageCompanionAdRenderer)hJ(Z, F.elementId,U,P.imageCompanionAdRenderer.isContentVideoCompanion,P.imageCompanionAdRenderer.adVideoId,P.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,J,h,function(V,f,W,X){var u=n.N.get(),Fp=V.slotId,nQ=P.imageCompanionAdRenderer; V=yP(n.xs.get(),V);return zJ(u,Fp,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new hRe(nQ),f,W,nQ.impressionPings,V,P.imageCompanionAdRenderer.adLayoutLoggingData,X)}); else if(P.bannerImageLayoutViewModel)hJ(Z,F.elementId,U,P.bannerImageLayoutViewModel.isContentVideoCompanion,P.bannerImageLayoutViewModel.adVideoId,P.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,J,h,function(V,f,W,X){var u=n.N.get(),Fp=V.slotId,nQ=P.bannerImageLayoutViewModel;V=yP(n.xs.get(),V);return Jx(u,Fp,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new GyQ(nQ),f,W,V,P.bannerImageLayoutViewModel.adLayoutLoggingData,X)}); else if(P.shoppingCompanionCarouselRenderer)hJ(Z,F.elementId,U,P.shoppingCompanionCarouselRenderer.isContentVideoCompanion,P.shoppingCompanionCarouselRenderer.adVideoId,P.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,J,h,function(V,f,W,X){var u=n.N.get(),Fp=V.slotId,nQ=P.shoppingCompanionCarouselRenderer;V=yP(n.xs.get(),V);return zJ(u,Fp,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Rgo(nQ),f,W,nQ.impressionPings,V,P.shoppingCompanionCarouselRenderer.adLayoutLoggingData,X)}); else if(P.adBreakServiceRenderer){if(!lKK(F))return[];if(U==="AD_PLACEMENT_KIND_PAUSE")return XxQ(n.X.get(),J,h,F.renderer.adBreakServiceRenderer,y);if(U!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&U!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Uee(n.X.get(),J,h,F.renderer.adBreakServiceRenderer,y,l,m);D.t2||wU("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:U,adPlacementConfig:J,daiEnabledForContentVideo:String(m),isServedFromLiveInfra:String(D.t2),clientPlaybackNonce:D.clientPlaybackNonce}); if(U==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!n.tG)return new C("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!n.C6)return new C("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");n.C6.Dg({adPlacementRenderer:F,contentCpn:y,bU:l});l=n.tG.get().getCurrentTimeSec(1,!1);return gGK(n.X.get(),F.renderer.adBreakServiceRenderer,J,l,y,h,m)}if(!n.Em)return new C("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); n.Em.Dg({adPlacementRenderer:F,contentCpn:y,bU:l})}else{if(P.clientForecastingAdRenderer)return ppY(n.X.get(),n.N.get(),J,h,P.clientForecastingAdRenderer,y,l,T);if(P.invideoOverlayAdRenderer)return Cr3(n.X.get(),n.N.get(),J,h,P.invideoOverlayAdRenderer,y,l,T);if(P.instreamAdPlayerOverlayRenderer)return dSQ(n.X.get(),n.N.get(),J,h,P.instreamAdPlayerOverlayRenderer,y,T);if((P.linearAdSequenceRenderer||P.instreamVideoAdRenderer)&&v)return MW8(n.X.get(),n.N.get(),F,y,T,L,!n.U8.get().W.B().j("html5_override_ad_video_length_killswitch"), w);if(P.linearAdSequenceRenderer&&!v){if(a)return[];Tc(Z,P,U);if(P.linearAdSequenceRenderer.adLayoutMetadata){if(!Ncj(P.linearAdSequenceRenderer))return new C("Received invalid LinearAdSequenceRenderer.")}else if(P.linearAdSequenceRenderer.linearAds==null)return new C("Received invalid LinearAdSequenceRenderer.");if(g.e(P.linearAdSequenceRenderer.adStart,$a)){wU("Found AdNotify in LinearAdSequenceRenderer");F=g.e(P.linearAdSequenceRenderer.adStart,$a);if(!ipK(F))return new C("Invalid AdMessageRenderer."); m=P.linearAdSequenceRenderer.linearAds;return E1e(n.V.get(),n.X.get(),n.N.get(),n.xs.get(),J,h,F,Zg(P.linearAdSequenceRenderer.adLayoutMetadata)?P.linearAdSequenceRenderer.adLayoutMetadata:void 0,m,y,l,D,T,p,n.loadPolicy,n.U8.get())}return OOQ(n.X.get(),n.N.get(),J,h,P.linearAdSequenceRenderer.linearAds,Zg(P.linearAdSequenceRenderer.adLayoutMetadata)?P.linearAdSequenceRenderer.adLayoutMetadata:void 0,y,l,D,T,p,n.loadPolicy,n.U8.get(),q)}if(!P.remoteSlotsRenderer||m){if(P.instreamVideoAdRenderer&& !v){if(a)return[];Tc(Z,P,U);return Lf7(n.X.get(),n.N.get(),J,h,P.instreamVideoAdRenderer,y,l,D,T,p,n.loadPolicy,n.U8.get(),n.xs.get(),q)}if(P.instreamSurveyAdRenderer)return Yge(n.X.get(),n.N.get(),P.instreamSurveyAdRenderer,J,h,y,T,E4(n.U8.get(),"supports_multi_step_on_desktop"));if(P.sandwichedLinearAdRenderer!=null)return vh3(P.sandwichedLinearAdRenderer)?g.e(P.sandwichedLinearAdRenderer.adVideoStart,$a)?(wU("Found AdNotify in SandwichedLinearAdRenderer"),F=g.e(P.sandwichedLinearAdRenderer.adVideoStart, $a),ipK(F)?(m=g.e(P.sandwichedLinearAdRenderer.linearAd,n7))?Uj8(F,m,J,n.V.get(),n.X.get(),n.N.get(),n.xs.get(),h,y,l,D,T,p,n.loadPolicy,n.U8.get()):new C("Missing IVAR from Sandwich"):new C("Invalid AdMessageRenderer.")):OOQ(n.X.get(),n.N.get(),J,h,[P.sandwichedLinearAdRenderer.adVideoStart,P.sandwichedLinearAdRenderer.linearAd],void 0,y,l,D,T,p,n.loadPolicy,n.U8.get()):new C("Received invalid SandwichedLinearAdRenderer.");if(P.videoAdTrackingRenderer!=null)return C6o(n.X.get(),n.N.get(),P.videoAdTrackingRenderer, J,h,y,l,D.pP,T)}}return[]}; NnP=function(n,Z,F,y){if(n.policy.S)!y||!n.N&&n.policy.mJ||g.MC(function(){no(n)}); else{if(n.isSeeking()&&n.targetTime){var l=Z8i(n,Z,F);if(l!==-1){n.videoTrack.V=!1;n.audioTrack.V=!1;n.N=!0;n.X=0;g.MC(function(){n.loader.Xp("seekreason",{reason:"behindMinSq",tgt:l});$g(n,l)}); return}}F?n.videoTrack.Tx=!1:n.audioTrack.Tx=!1;var m=!n.N;CT(n.videoTrack,n.targetTime)>=0&&CT(n.audioTrack,n.targetTime)>=0&&m?((n.videoTrack.V||n.audioTrack.V)&&n.loader.Xp("iterativeSeeking",{status:"done",count:n.seekCount}),n.videoTrack.V=!1,n.audioTrack.V=!1):y&&g.MC(function(){if(n.N||!n.policy.mJ)no(n);else{var a=Z.startTime,D=Z.duration;if(!n.policy.S){var p=n.videoTrack.S!==-1&&n.audioTrack.S!==-1,L=!n.videoTrack.Tx&&!n.audioTrack.Tx;(F?n.videoTrack.V:n.audioTrack.V)&&p&&L&&(n.targetTime>= a&&n.targetTime=0?1:n.indexOf("/webm")>=0?2:n.indexOf("/x-flv")>=0?3:n.indexOf("/vtt")>=0?4:0}; bpj=function(n,Z){g.R.call(this,{U:"div",K:"ytp-user-info-panel",Z:{"aria-label":"User info"},D:n.B().Wr?[{U:"div",K:"ytp-user-info-panel-icon",E8:"{{icon}}"},{U:"div",K:"ytp-user-info-panel-content",D:[{U:"div",K:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable}}",role:"text"},E8:"{{watchingAsUsername}}"},{U:"div",K:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable2}}",role:"text"},E8:"{{watchingAsEmail}}"}]}]:[{U:"div",K:"ytp-user-info-panel-icon",E8:"{{icon}}"},{U:"div",K:"ytp-user-info-panel-content", D:[{U:"div",D:[{U:"text",Z:{tabIndex:"{{userInfoFocusable}}"},E8:"Signed out"}]},{U:"div",K:"ytp-user-info-panel-login",D:[{U:"a",Z:{tabIndex:"{{userInfoFocusable2}}",role:"button"},E8:n.B().SG?"":"Sign in on YouTube"}]}]}]});this.JG=n;this.sourceElement=Z;n.B().Wr||n.B().SG||this.G(this.Vg("ytp-user-info-panel-login"),"click",this.dP);this.closeButton=new g.R({U:"button",s8:["ytp-collapse","ytp-button"],Z:{title:"Close"},D:[g.QVp()]});this.closeButton.oY(this.element);g.S(this,this.closeButton); this.G(window,"blur",this.hide);this.G(document,"click",this.q6);this.g5()}; sce=function(n){return n?(n=("responseXML"in n?n.responseXML:n).getElementsByTagName("root"))&&n.length>0?n[0]:null:null}; wYT=function(n,Z,F,y){var l,m,a;return g.A(function(D){switch(D.N){case 1:if(n.N){D.ST(2);break}return g.x(D,y.importKey("raw",n.X,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:n.N=D.X;case 2:return l=new Uint8Array(Z.length+F.length),l.set(Z),l.set(F,Z.length),m={name:"HMAC",hash:"SHA-256"},g.x(D,y.sign(m,n.N,l),4);case 4:return a=D.X,D.return(new Uint8Array(a))}})}; qTY=function(n,Z){return n.O8!==Z.O8&&Z.O8!==n.O8+1||n.type!==Z.type?!1:v0(n,Z)?!0:Math.abs(n.V-Z.V)<=1E-6&&n.O8===Z.O8?!1:gFi(n,Z)}; g.Fu=function(n){return h6(n)==="WEB_REMIX"}; Fi=function(n){var Z=n.pos;n.pos=0;var F=1E6;mD(n,[408125543,357149030,2807729])&&(F=LG(n));n.pos=Z;return F}; XYp=function(n){return DAi()===1?g.I$(n,Ty):n}; zgU=function(n,Z){switch(Z){case 2:Z="Hide videos";var F="Hide recommendations grid";break;default:Z="More videos",F="Show recommendations grid"}n.updateValue("title",Z);n.element.ariaLabel=F;n.T.textContent=Z}; E2o=function(n){n.C=!0;n.V=!0;n.S=-1;Qo(n,Infinity)}; g.jO=function(n){NV.call(this);var Z=this;this.N=n;this.X={};this.listener=function(F){Z.dispatchEvent(new hB(Z,F.type,F))}}; WY=function(n){this.bv=3;this.v4=n;this.defaultValue=0;this.A$="double"}; PfU=function(n,Z){var F;return g.A(function(y){if(y.N==1){if(!Z)return y.return(Z);F=new g.w1(n.X);return g.x(y,F.decrypt(Z,n.N),2)}return y.return(y.X)})}; aij=function(n){n.CONN=T3(Sw("0"));n.WT=T3(function(){return Date.now().toString()})}; Fpp=function(n){var Z=g.ef(n,0,1937011556);if(!Z)return null;Z=xF(n,Z.dataOffset+8,1635148593)||xF(n,Z.dataOffset+8,1635135537);if(!Z)return null;var F=xF(n,Z.dataOffset+78,1936995172),y=xF(n,Z.dataOffset+78,1937126244);if(!y)return null;Z=null;if(F)switch(F.skip(4),iA(F)){default:Z=0;break;case 1:Z=2;break;case 2:Z=1;break;case 3:Z=255}var l=F=null,m=null;if(y=xF(n,y.dataOffset,1886547818)){var a=xF(n,y.dataOffset,1886546020),D=xF(n,y.dataOffset,2037673328);if(!D&&(D=xF(n,y.dataOffset,1836279920), !D))return null;a&&(a.skip(4),F=rd(a)/65536,m=rd(a)/65536,l=rd(a)/65536);n=g8o(D);n=new DataView(n.buffer,n.byteOffset+8,n.byteLength-8);return new TzK(Z,F,m,l,n)}return null}; g.oS=function(n){g.R.call(this,n);this.xi=new g.Xu;g.S(this,this.xi)}; tHp=function(){Il.apply(this,arguments)}; jH=function(n){var Z=n.policy.N;n.V||(Z=Math.max(Z-1,0));return Z*YN(n)}; kyo=function(){this.V=[];this.N=null;this.X={};this.T={}}; g.qZ=function(n,Z){return Z?n.N.concat(n.X):n.N}; Sn=function(n,Z){Sf(n,13,Z.timeSinceLastManualFormatSelectionMs);var F=Z.lastManualDirection;F!==void 0&&(YC(n,112),YC(n,F<<1^F>>31));Sf(n,16,Z.QYu);Sf(n,17,Z.detailedNetworkType);Sf(n,18,Z.Lb);Sf(n,19,Z.Me);Sf(n,21,Z.HFr);Sf(n,23,Z.kF);Sf(n,28,Z.v0);Sf(n,29,Z.mgp);Sf(n,34,Z.visibility);F=Z.playbackRate;if(F!==void 0){var y=new ArrayBuffer(4);(new Float32Array(y))[0]=F;F=(new Uint32Array(y))[0];if(F!==void 0)for(YC(n,285),ff(n,4),y=0;y<4;)n.view.setUint8(n.pos,F&255),F>>=8,n.pos+=1,y+=1}Sf(n,36,Z.e2); E7(n,38,Z.mediaCapabilities,y23,3);Sf(n,39,Z.F9T);Sf(n,40,Z.kI);Sf(n,44,Z.playerState);Hm(n,46,Z.j2);Sf(n,48,Z.vt);Sf(n,50,Z.jg);Sf(n,51,Z.Hu);Sf(n,54,Z.h0);if(Z.Xk)for(F=0;F=0;)m.push(n.substring(y,l)),y=Math.min(n.indexOf("&",l)+1||F,F);m.push(n.slice(y));return m.join("").replace(dzP,"$1")}; BGj=function(n){if(!EdP(n)){var Z=n.Px().HV();Z&&(Z=Z.DG(),Z instanceof Promise&&Z.catch(function(){})); DE(n,$G(n.getPlayerStateObject()))}}; eHp=function(n){var Z=QM()&&YU()>=67&&!n.api.B().J;n=n.api.B().disableOrganicUi;return!g.tv("tizen")&&!eZ&&!Z&&!n}; gI=function(n,Z,F){this.triggeringLayoutId=Z;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=F||n(this.triggerType)}; JSK=function(n,Z,F){for(F=D5(n,F);F>=0;){var y=n.levels[F];if(y.isLoaded(pk(y,Z))&&(y=g.sL(y,Z)))return y;F--}return g.sL(n.levels[0],Z)}; Dv=function(n,Z,F){var y=saP(),l=y.Nz,m=y.resolve,a=y.reject;n.X.push(function(D){if(Z)try{var p=Z(D);m(p)}catch(L){a(L)}else m(D)}); n.T.push(function(D){if(F)try{var p=F(D);m(p)}catch(L){a(L)}else a(D)}); xij(n);return l}; H_=function(n){if(!n.playerResponse)return!1;if(n.LZ)return!0;var Z=n.videoData.j("html5_onesie_audio_only_playback")&&Z3(n.videoData);if(n.qt&&n.kW){if(!n.qt.has(n.Ij))return!1;var F=n.qt.get(n.Ij),y;if(y=F){y=!1;for(var l=g.Y(F.JD.keys()),m=l.next();!m.done;m=l.next())if(m=F.JD.get(m.value))for(var a=g.Y(m.IL),D=a.next();!D.done;D=a.next())D.value.Z1>0&&(m.BE?y=!0:Z=!0);y=!(Z&&y)}if(y)return!1}n.SO("ofr");n.md.resolve(n.playerResponse);if(!n.jB){var p;(p=n.X3)==null||p.start();n.yH.start()}return n.LZ= !0}; Qgn=function(n,Z,F){var y=n.Yi||n.app.Z4().getPlayerState();Cn(n,!0);n.playback.seekTo(Z,F);n=n.app.Z4();Z=n.getPlayerState();y.isOrWillBePlaying()&&!Z.isOrWillBePlaying()?n.playVideo():y.isPaused()&&!Z.isPaused()&&n.pauseVideo()}; MHT=function(n,Z,F,y){d_(n)&&n.Y0&&y&&y!==96&&(y=F?n.mQ.vH(Z):Z,n.TW(y)||n.Y0.N||n.Xp("prebuffer",{miss:1,t:Z.toFixed(3),isUtc:F}))}; $dU=function(){g.Xu.call(this);var n=this;this.N={};this.addOnDisposeCallback(function(){for(var Z=g.Y(Object.keys(n.N)),F=Z.next();!F.done;F=Z.next())delete n.N[F.value]})}; pln=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"standardControlsInitialized",function(){var F=new $T(n);g.S(Z,F);n.ob(F,"RIGHT_CONTROLS_LEFT")})}; g.rG=function(n,Z){var F=n.style[Akj(Z)];return typeof F!=="undefined"?F:n.style[Vt(n,Z)]||""}; xG=function(n,Z,F){R5(Yq,[n],!dk());eKj(n,F);F!=4&&QBK(n.w5,F,n.S$);return H6(n,Z,dk())}; ARj=function(n){Aa(n);n.endTimeMs=0;n.isPaused=!1;n.ke(1)}; kn=function(n){return new tf(n.substring(0,2),n.substring(2))}; nvU=function(n){if(n.range)return n.T;n=n.D4[0];return Math.round(n.J*n.bY.info.Qg)}; GQ3=function(n){n0(jm,Sm,1,n)}; $sf=function(n,Z){Z=g.Ad(n.X,{AD:Z},function(F,y){return F.AD-y.AD}); return Z>=0?n.X[Z]:null}; zAU=function(n,Z){var F=[];if(!Z)return F;Z=g.Y(Z);for(var y=Z.next();!y.done;y=Z.next())if(y=y.value,y!=null){var l=y.nodeType;l===1||l===3?F.push(y):y&&typeof y.U==="string"?F.push(n.createElement(y)):y.element?F.push(y.element):typeof y==="string"&&y.indexOf("\n")!==-1?y.split("\n").forEach(function(m,a){a>0&&F.push(g.FI("BR"));F.push(g.m3(m))}):F.push(g.m3(y))}return F}; kE=function(n,Z,F){n.X=Z;n.startTime=(0,g.tP)();n.duration=F;n.N()}; F_o=function(){var n=g.mM();return n.Wx(192)?n.Wx(190):!(g.N5("web_watch_cinematics_disabled_by_default")||g.N5("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&ZdK())}; g.me=function(){var n=bL();return n?Promise.resolve(n):QIY().then(function(Z){(Z=Z?lz:void 0)&&g.pv("ytglobal.idbToken_",Z);return Z})}; yCp=function(n,Z,F,y){if(!n.CR()){y&&(Kb={keySystem:Z.keySystem,keySystemAccess:F,qfQ:JSON.stringify(y)});Z.keySystemAccess=F;if(Aq(Z)){F=Nt();y=g.Y(Object.keys(n.N[Z.flavor]));for(var l=y.next();!l.done;l=y.next())l=l.value,Z.N[l]=!!F.canPlayType(l)}else{F=Z.keySystemAccess.getConfiguration();if(F.audioCapabilities)for(y=g.Y(F.audioCapabilities),l=y.next();!l.done;l=y.next())Z.N[l.value.contentType]=!0;if(F.videoCapabilities)for(F=g.Y(F.videoCapabilities),y=F.next();!y.done;y=F.next())Z.N[y.value.contentType]= !0}n.V.push(Z);n.useCobaltWidevine||n.j("html5_enable_vp9_fairplay")&&Jr(Z)?(n.X.shift(),N_p(n)):n.callback(n.V)}}; Hr=function(n){Hr[" "](n);return n}; rq=function(n,Z,F,y){y=y===void 0?0:y;return g.gU(function(){if(n.X.has(y))return n.J.push([Z,F]),!0;var l=g.f_(y),m=F||g.Wg(y);if(l&&m){if(g.N5("combine_ve_grafts")){var a=n.T.get(m.toString());a?a.push(Z):(n.C.set(m.toString(),m),n.T.set(m.toString(),[Z]));n.Ns||(n.Ns=g.HX(0,function(){WZ(n,l)},1200))}else g.JI(n.client,l,m,Z); return!0}return!1})()}; Ecj=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(n){return 0}}; mz=function(n){return n?function(){try{return n.apply(this,arguments)}catch(Z){g.ZW(Z)}}:n}; eC=function(n,Z){g.a$(n.N,"width",Z)}; H1=function(n,Z){return n[Z+0]+(n[Z+1]<<8)+(n[Z+2]<<16)+(n[Z+3]<<24)}; I_8=function(n,Z,F,y){if(n)return n.apply(Z,y);if(g.cF&&document.documentMode<10){if(!Z[F].call)throw Error("IE Clobbering detected");}else if(typeof Z[F]!="function")throw Error("Clobbering detected");return Z[F].apply(Z,y)}; lui=function(n){var Z=AG("aft",n);if(Z)return Z;Z=g.BT((n||"")+"TIMING_AFT_KEYS",["ol"]);for(var F=Z.length,y=0;y0)||F&&n?null:"neb"}return n!=null?n:null}; aOi=function(n,Z){a:{var F=n.N?new g.Kz(wF(n.N),n.N.getHeight()):new g.Kz(0,0);Z=Z===void 0?G5:Z;Z!==null&&Z!=Z.top&&(Z=Z.top);var y=0,l=0;try{var m=Z.document,a=m.body,D=m.documentElement;if(m.compatMode=="CSS1Compat"&&D.scrollHeight)y=D.scrollHeight!=F.height?D.scrollHeight:D.offsetHeight,l=D.scrollWidth!=F.width?D.scrollWidth:D.offsetWidth;else{var p=D.scrollHeight,L=D.scrollWidth,q=D.offsetHeight,w=D.offsetWidth;D.clientHeight!=q&&(p=a.scrollHeight,L=a.scrollWidth,q=a.offsetHeight,w=a.offsetWidth); p>F.height?p>q?(y=p,l=L):(y=q,l=w):p0}; pYT=function(n,Z){return fn(n,Z,function(F){return F.T})}; qY=function(n){var Z=[{U:"div",s8:["ytp-unmute-icon"],D:[{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {U:"div",s8:["ytp-unmute-text"],E8:"Tap to unmute"}];Z.push({U:"div",s8:["ytp-unmute-box"],D:[]});g.yO.call(this,n,{U:"button",s8:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],D:[{U:"div",K:"ytp-unmute-inner",D:Z}]},100);this.N=this.clicked=!1;this.api=n;this.api.createClientVe(this.element,this,51663);this.G(n,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.G(n,"presentingplayerstatechange",this.Rh);this.listen("click",this.onClick,this);n=n.isMutedByMutedAutoplay()&& !g.R6(this.api.B());this.yP(n);n&&Dwo(this);this.X=n}; uxf=function(n){if(n=n.getWatchNextResponse()){var Z,F;n=(Z=n.playerOverlays)==null?void 0:(F=Z.playerOverlayRenderer)==null?void 0:F.timelyActionsOverlayViewModel;Z=g.e(n,phQ);if(Z!=null&&Z.timelyActions)return Z==null?void 0:Z.timelyActions.map(function(y){return g.e(y,L_n)}).filter(function(y){return!!y})}}; qi7=function(n,Z){var F=Number(Z==null?void 0:Z.maxVisibleDurationMilliseconds);F&&(EC(n),n.Tx=setTimeout(function(){if(n.N!==void 0&&(Z==null?void 0:Z.cueRangeId)===n.N){n.Pr=!1;var y=mFK(n,n.N);y&&n.api.LR("innertubeCommand",y)}},F))}; DE=function(n,Z){var F=n.Z4(),y=F.getPlayerType();if(y!==2||n.DD()){if(y===2&&n.DD()||y===5||y===6||y===7)if(Z===-1||Z===0||Z===5)return;if(Z===0){if(n.Ur)return;if(F.HW()&&g.f4(n.Y)){n.playVideo();return}}n.dT!==Z&&(n.dT=Z,n.JG.SV("onStateChange",Z))}else n.vQ!==Z&&(n.vQ=Z,n.JG.SV("onAdStateChange",Z))}; who=function(n,Z,F){n.JD.get(Z).onProgress=F}; Gy=function(n,Z){if(n.policy.o2)return!1;var F=Z.getResponseHeader("content-type"),y=Z.pV();n=!y||y<=n.policy.QA;return(!Z.Ks()||!F||F.indexOf("text/plain")!==-1)&&n}; TB7=function(n,Z,F){if(n.logger){for(var y=[],l=0;lZ;n=F}else n=!1;return n}; tCp=function(n,Z){if(!(Zq||Fx()||sm()))return null;n=IXi(Z,n.j("html5_filter_fmp4_in_hls"));if(!n)return null;Z=[];for(var F={},y=g.Y(Object.keys(n)),l=y.next();!l.done;l=y.next()){l=g.Y(n[l.value]);for(var m=l.next();!m.done;m=l.next()){var a=m.value;a.J2&&(m=a.J2.getId(),F[m]||(a=new g.$$(m,a.J2),F[m]=a,Z.push(a)))}}return Z.length>0?Z:null}; nWU=function(n){var Z=n.api.getRootNode();if(g.b(n.api.getPlayerStateObject(),256)||g.b(n.api.getPlayerStateObject(),32)||g.b(n.api.getPlayerStateObject(),16))var F=n.J;else if(n.lY&&n.api.getPlayerStateObject().isPaused()){var y;F=(((y=n.S)==null?void 0:y.element.clientWidth)||0)*.5625/3*n.jT||n.w5}else F=n.w5;n.J=F;Z.style.setProperty("--ytp-grid-peek-height",n.J+"px");g.w4(Z,"ytp-disable-bottom-gradient",n.J<=12&&n.C===0)}; qCK=function(n,Z){n.V||(n.V=!0,n.X&&(Z?n.X.Tx.hide():n.X.hide()),Z?(n=n.T,n.hG.show(),n.show()):n.T.show())}; JCp=function(n){return{F3:ut(n,1),K1:ut(n,2),seekSource:ut(n,3)}}; Pu=function(n){g.N5("transport_use_scheduler")?g.CF.qc(n):g.l0(n)}; QTp=function(n){var Z=YK(n.N).Ew,F=Z.V().ZR("SLOT_TYPE_PLAYER_BYTES",1);Z=tI(Z.nR.get(),1).clientPlaybackNonce;var y=!1;F=g.Y(F);for(var l=F.next();!l.done;l=F.next()){l=l.value;var m=l.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l.slotEntryTrigger instanceof xK?l.slotEntryTrigger.MQ:void 0;m&&m===Z&&(y&&wU("More than 1 preroll playerBytes slot detected",l),y=!0)}y||YK(n.N).nz.SY()}; HcQ=function(n){var Z;if(Z=n.provider.videoData.isLoaded()&&n.provider.videoData.Y4&&n.T&&!n.w5)Z=n.N,Z=Z.S+Z.FY()-Z.T>=n.provider.videoData.Y4;return!!Z}; Yie=function(n){switch(n){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 n;default:return"sabr.config"}}; EBf=function(){var n=g.Di("ytcsi.reference");if(n)return n;Oq7();return g.Di("ytcsi.reference")}; jCp=function(n,Z,F,y){var l=n.kind;y=y?!1:!n.hideCueRangeMarker;switch(l){case "AD_PLACEMENT_KIND_START":return y={zO:new Ca(-0x8000000000000,-0x8000000000000),mM:y},F!=null&&(y.Pt=new Ca(-0x8000000000000,-0x8000000000000)),y;case "AD_PLACEMENT_KIND_END":return y={zO:new Ca(0x7ffffffffffff,0x8000000000000),mM:y},F!=null&&(y.Pt=new Ca(Math.max(0,Z-F),0x8000000000000)),y;case "AD_PLACEMENT_KIND_MILLISECONDS":l=n.adTimeOffset;l.offsetStartMilliseconds||wU("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); l.offsetEndMilliseconds||wU("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");n=Number(l.offsetStartMilliseconds);l=Number(l.offsetEndMilliseconds);l===-1&&(l=Z);if(Number.isNaN(n)||Number.isNaN(l)||n>l)return new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:n,offsetEndMs:l},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",l===Z&&n-500<=l);y={zO:new Ca(n,l),mM:y};if(F!=null){n=Math.max(0,n-F);if(n===l)return y;y.Pt=new Ca(n,l)}return y; default:return new C("AdPlacementKind not supported in convertToRange.",{kind:l,adPlacementConfig:n})}}; Sip=function(n){if(document.createRange){var Z=document.createRange();Z&&(Z.selectNodeContents(n),n=window.getSelection())&&(n.removeAllRanges(),n.addRange(Z))}}; gep=function(n){var Z=!1;Z=Z===void 0?!1:Z;G5.google_image_requests||(G5.google_image_requests=[]);var F=WUT("IMG",G5.document);Z&&(F.attributionSrc="");F.src=n;G5.google_image_requests.push(F)}; bop=function(n){n=fy.includes("en")?n.j("delhi_modern_web_player_icons")?pD():{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,Z:{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"}}]}:n.j("delhi_modern_web_player_icons")?K3o():{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,Z:{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"}}]};n.K="ytp-subtitles-button-icon"; return n}; Hw3=function(n,Z,F,y){var l=MT(n.X.get(),"SLOT_TYPE_IN_PLAYER"),m=new xK(n.N,Z),a=[new yx(n.N,l)];n=[new ZX(n.N,Z),new lB(n.N,l)];return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:a,slotExpirationTriggers:n,Gx:"core",clientMetadata:new lb([new mW(y({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:m,slotFulfillmentTriggers:a,slotExpirationTriggers:n}))]),adSlotLoggingData:F}}; O1P=function(n,Z,F,y,l,m,a,D,p,L,q,w){n=sk(n,Z,F,y,l,m,a,D,q,w);Z=n.gw;F=new QV(n.IR);y=n.layoutExitSkipTriggers;p>0&&(Z.push(F),Z.push(new yk(p)),y=[]);Z.push(new zh(L));return{Hm:{layoutId:n.layoutId,layoutType:n.layoutType,Nd:n.Nd,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:n.Gx,clientMetadata:new lb(Z),lN:n.lN,adLayoutLoggingData:n.adLayoutLoggingData},Km:y,dc:n.layoutExitMuteTriggers, f3:n.layoutExitUserInputSubmittedTriggers,n3:n.layoutExitUserCancelledTriggers,ly:n.ly}}; F6=function(n,Z,F,y,l){var m=n.S.get(F);if(!m){if(m=hl(n,Z))return m;Z=n.Wh(F-1,y!=null?y:2);if(l)return n.oW({misscue:l,sq:F,type:y,prevsstate:Z==null?void 0:Z.zJ,prevrecord:n.S.has(F-1)}),n.S.get(F-1);if((Z==null?void 0:Z.zJ)===2)return n.oW({adnf:1,sq:F,type:y,prevrecord:n.S.has(F-1)}),n.S.get(F-1)}return m}; pV=function(){this.N=jTY[0].toLowerCase()}; g.SI=function(n){g.I.call(this);this.J=n;this.V=0;this.T=100;this.S=!1;this.X=new Map;this.C=new Set;this.flushInterval=3E4;this.N=new g.Rr(this.flushInterval);this.N.listen("tick",this.kE,!1,this);g.S(this,this.N)}; Udf=function(){Il.apply(this,arguments)}; gG=function(n){g.Xu.call(this);this.N=!1;this.Y6=0;this.handler=new rK(this);g.S(this,this.handler);this.durationMs=n;this.timer=new g.Rr(100);g.S(this,this.timer);this.handler.G(this.timer,"tick",this.jO);this.X={seekableStart:0,seekableEnd:n/1E3,current:0};this.start()}; g.hQ=function(n,Z){yT.get(n);yT.set(n,Z)}; NBp=function(n,Z,F,y,l,m,a,D,p,L,q,w,T){Z=AM7(n,Z,"adapter",F,y,l,m,a,D,p,q,w,T);y=Z.layoutExitSkipTriggers;l=Z.GE;F.adPodSkipTarget&&F.adPodSkipTarget>0&&(l.push(L),l.push(new yk(F.adPodSkipTarget)),y=[]);l.push(new zh(D.adPodIndex));F.isCritical&&(y=[new jp(n.N,Z.layoutId,["error"])].concat(g.t(y)));return{Hm:{layoutId:Z.layoutId,layoutType:Z.layoutType,Nd:Z.Nd,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], Gx:Z.Gx,clientMetadata:new lb(l),lN:Z.lN,adLayoutLoggingData:Z.adLayoutLoggingData},Km:y,dc:Z.layoutExitMuteTriggers,f3:Z.layoutExitUserInputSubmittedTriggers,n3:Z.layoutExitUserCancelledTriggers}}; ha8=function(n){var Z;(Z=n.kV)==null||Z.stop();n.countdownTimer.hide()}; dP7=function(n,Z,F,y,l){function m(p){D||(D=!0,F.call(l,p))} function a(p){D||(D=!0,y.call(l,p))} var D=!1;try{Z.call(n,m,a)}catch(p){a(p)}}; Evf=function(n,Z,F,y){F=F===void 0?!1:F;y=y===void 0?!1:y;var l=[];l.push({offset:0,transform:"translateX("+(n.X===-1?20:-20)+"px)",opacity:F?"0":"1"});F&&l.push({offset:.5,opacity:"1"});l.push({offset:1,transform:"translateX(0)",opacity:"1"});F=Z.animate(l,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});Z=Z.querySelector("path");l=[];var m={offset:0,d:n.X===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};y&&(m.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");l.push(m); y&&l.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});n={offset:1,d:n.X===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};y&&(n.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");l.push(n);Z.animate(l,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return F}; of=function(){var n=g.Di("_lact",window);return n==null?-1:Math.max(Date.now()-n,0)}; cCY=function(n,Z){Z=Z===void 0?!1:Z;if(n.loader){n.videoData.enableServerStitchedDai&&Odi(n.loader);var F=n.getCurrentTime()-n.Kn();n.loader.seek(F,{cM:Z}).Mc(function(){})}else Tj(n)}; ac=function(n,Z){Z&&WCi(n.mQ,new Ou(Z.video,Z.reason));n.N.fR&&(Z=bXQ(n.N,"a"),n.mQ.Y3(new Ou(Z.audio,Z.reason)))}; znQ=function(n){if(n=n.colorInfo)if(n=n.transferCharacteristics)return VBe[n];return null}; g.Xv=function(n,Z,F){Z=Z===void 0?{}:Z;this.errorCode=n;this.details=Z;this.severity=F===void 0?0:F}; g.cd7=function(n){var Z=Z===void 0?{}:Z;var F=F===void 0?"":F;var y=y===void 0?window:y;n=g.pQ(n,Z);Gd(n);F=g.Aw(n+F);y=y.location;F=k2(F);F!==void 0&&(y.href=F)}; u5=function(n,Z,F){if(n=Mu(n,Z))return F(new lT(new y9([n])))}; azf=function(n,Z,F){if(n!=null&&n[tS]===ka)return n;if(Array.isArray(n)){var y=n[kt]|0;F=y|F&32|F&2;F!==y&&v6(n,F);return new Z(n)}}; yHK=function(n){var Z=new lY(n);Z.mD();if(mD(Z,[408125543,374648427,174,224]))Z=i6(Z);else return null;for(var F=n=null;!o$(Z);){var y=ar(Z,!1);if(y===21432)switch(LG(Z)){default:n=0;break;case 1:n=1;break;case 3:n=2;break;case 15:n=255}else y===30320?F=i6(Z):PS(Z)}if(!F)return null;for(var l,m=y=Z=null;!o$(F);)switch(ar(F,!1)){case 30321:if(LG(F)!==3)return null;break;case 30324:Z=Yj(F);break;case 30323:m=Yj(F);break;case 30325:y=Yj(F);break;case 30322:l=ar(F,!0);l=K6(F,l);l=new DataView(l.buffer, l.byteOffset,l.byteLength);break;default:PS(F)}return l?new TzK(n,Z,m,y,l):null}; XH8=function(n){if(n.policy.nF&&n.policy.EJ)for(var Z=g.Y(n.policy.nF),F=Z.next(),y={};!F.done;y={Xj:void 0,OU:void 0},F=Z.next())if(F=g.EG(F.value),y.Xj=+F.clen,y.OU=+F.csz,y.Xj>0&&y.OU>0&&n.policy.V===F.docid&&n.N.info.id===F.fmtid&&n.N.info.lastModified===+F.lmt)return n={},n.clen=y.Xj,n.csz=y.OU,n.ck=F.ck,n.civ=F.civ,n}; oi=function(n){this.value=n}; hw8=function(n){if(PX()&&(g.x5||Z2))n.V.push(new nP("fairplay","com.apple.fps.1_0","",n.iY.experiments));else{var Z=PV8(),F=g.YW(n.X,function(y){var l=n.T[y],m=!1,a=!1,D;for(D in n.N[l.flavor])Z(D,y)&&(l.N[D]=!0,m=m||D.indexOf("audio/")===0,a=a||D.indexOf("video/")===0);return m&&a}); F&&n.V.push(n.T[F]);n.X=[]}n.callback(n.V)}; fuU=function(n,Z,F){if(!n.V){if(Z){n.tooltipRenderer=Z;Z=n.tooltipRenderer.text;var y=!1,l;(Z==null?0:(l=Z.runs)==null?0:l.length)&&Z.runs[0].text&&(n.update({title:Z.runs[0].text.toString()}),y=!0);g.vW(n.title,y);Z=n.tooltipRenderer.detailsText;l=!1;var m;if((Z==null?0:(m=Z.runs)==null?0:m.length)&&Z.runs[0].text){y=Z.runs[0].text.toString();m=y.indexOf("$TARGET_ICON");if(m>-1)if(n.tooltipRenderer.targetId){Z=[];y=y.split("$TARGET_ICON");var a=new g.S_({U:"span",K:"ytp-promotooltip-details-icon", D:[vvP[n.tooltipRenderer.targetId]]});g.S(n,a);for(var D=[],p=g.Y(y),L=p.next();!L.done;L=p.next())L=new g.S_({U:"span",K:"ytp-promotooltip-details-component",E8:L.value}),g.S(n,L),D.push(L);y.length===2?(Z.push(D[0].element),Z.push(a.element),Z.push(D[1].element)):y.length===1&&(m===0?(Z.push(a.element),Z.push(D[0].element)):(Z.push(D[0].element),Z.push(a.element)));m=Z.length?Z:null}else m=null;else m=y;if(m){if(typeof m!=="string")for(g.Ov(n.details),l=g.Y(m),m=l.next();!m.done;m=l.next())n.details.appendChild(m.value); else n.update({details:m});l=!0}}g.vW(n.details,l);l=n.tooltipRenderer.acceptButton;m=!1;var q,w,T;((q=g.e(l,g.qb))==null?0:(w=q.text)==null?0:(T=w.runs)==null?0:T.length)&&g.e(l,g.qb).text.runs[0].text&&(n.update({acceptButtonText:g.e(l,g.qb).text.runs[0].text.toString()}),m=!0);g.vW(n.acceptButton,m);q=n.tooltipRenderer.dismissButton;w=!1;var P,J,U;((P=g.e(q,g.qb))==null?0:(J=P.text)==null?0:(U=J.runs)==null?0:U.length)&&g.e(q,g.qb).text.runs[0].text&&(n.update({dismissButtonText:g.e(q,g.qb).text.runs[0].text.toString()}), w=!0);g.vW(n.dismissButton,w)}F&&(n.sourceElement=F);n.N=zbK(n);n.S=!1;n.W.B().j("web_player_hide_nitrate_promo_tooltip")||n.yP(!0);Iuf(n);n.XJ&&!n.L&&(n.L=!0,n.vx.yD(0));n.X&&n.W.logVisibility(n.element,n.XJ)}}; wj=function(n){vk.call(this,n);var Z=this;this.N=[];this.events=new g.IS(n);g.S(this,this.events);RS(n,"addEmbedsConversionTrackingParams",function(F){Z.addEmbedsConversionTrackingParams(F)}); this.events.G(n,"veClickLogged",function(F){Z.api.hasVe(F)&&(F=F.visualElement.getAsJspb(),F=po(F,2),Z.N.push(F))})}; PYo=function(n,Z,F,y,l,m,a,D,p,L,q,w,T,P,J,U,h){var v=new qW({current:null}),V=ToP(l,D,p);if(V instanceof C)return V;p=[];for(var f=[],W=void 0,X=0;X0?" "+Z:Z))}}; AM7=function(n,Z,F,y,l,m,a,D,p,L,q,w,T){var P={layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA",Gx:F};l=[new K7(l),new Pd(p),new JS(y.externalVideoId),new WC(D),new JW({impressionCommands:y.impressionCommands,abandonCommands:y.onAbandonCommands,completeCommands:y.completeCommands,progressCommands:y.adVideoProgressCommands}),new rc(m),new L7({current:null}),new tL(a)];(m=y.playerOverlay.instreamAdPlayerOverlayRenderer)&&l.push(new GM(m));(a=y.playerOverlay.playerOverlayLayoutRenderer)&&l.push(new R7(a)); w&&l.push(new Rn(w));(w=y.playerUnderlay)&&l.push(new V4(w));D=MT(n.X.get(),"SLOT_TYPE_IN_PLAYER");w=(w=m?m.elementId:a==null?void 0:a.layoutId)?w:$e(n.X.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",D);l.push(new QV(w));l.push(new qu(D));l.push(new xh(p.adPodIndex));y.adNextParams&&l.push(new T2(y.adNextParams));y.shrunkenPlayerBytesConfig&&l.push(new xT(y.shrunkenPlayerBytesConfig));y.clickthroughEndpoint&&l.push(new oi(y.clickthroughEndpoint));y.legacyInfoCardVastExtension&&l.push(new zy(y.legacyInfoCardVastExtension)); y.sodarExtensionData&&l.push(new ig(y.sodarExtensionData));q&&l.push(new wT(q));l.push(new ug(sf(y.pings)));p=th(y.pings);if(T){a:{T=g.Y(T);for(q=T.next();!q.done;q=T.next())if(q=q.value,q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(m=g.e(q.fulfillmentContent.fulfilledLayout,Ia))&&(m=g.e(m.renderingContent,gW))&&m.associatedPlayerBytesLayoutId===Z){T=q;break a}T=void 0}T&&l.push(new Vr(T))}return{layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA",Nd:p,layoutExitNormalTriggers:[new RC(n.N,Z)],layoutExitSkipTriggers:y.skipOffsetMilliseconds? [new a1(n.N,w)]:[],layoutExitMuteTriggers:[new a1(n.N,w)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:F,GE:l,lN:L(P),adLayoutLoggingData:y.adLayoutLoggingData}}; ZGT=function(n,Z,F,y,l,m){mh("TRANSACTION_ENDED",{objectStoreNames:y,connectionHasUnknownAbortedTransaction:n.X,duration:l,isSuccessful:Z,tryCount:F,tag:m===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":m})}; Qyo=function(n,Z,F,y,l,m){var a={},D={};g.l7(Z,function(p,L){p=p.filter(function(q){var w=q.itag;if(!q.by)return D[w]="noenc",!1;if(m.kV&&q.vr==="(h"&&m.Yi)return D[w]="lichdr",!1;if(!n.S&&q.vr==="1e")return D[w]="noav1enc",!1;if(q.vr==="("||q.vr==="(h"){if(n.T&&F&&F.flavor==="widevine"){var T=q.mimeType+"; experimental=allowed";(T=!!q.by[F.flavor]&&!!F.N[T])||(D[w]=q.by[F.flavor]?"unspt":"noflv");return T}if(!lJ(n,sN.CRYPTOBLOCKFORMAT)&&!n.zx||n.w5)return D[w]=n.w5?"disvp":"vpsub",!1}return F&&q.by[F.flavor]&& F.N[q.mimeType]?!0:(D[w]=F?q.by[F.flavor]?"unspt":"noflv":"nosys",!1)}); p.length&&(a[L]=p)}); y&&Object.entries(D).length&&l({rjr:UQ(D)});return a}; gv8=function(n){var Z=n.N,F=n.api.getCurrentTime(),y=n.api.Br().getPlayerSize(),l=D5(Z,y.width);l=RVY(Z,l,F);n.update({timestamp:g.ve(F)});l!==n.frameIndex&&(n.frameIndex=l,QO7(Z,l,y.width),Z=JSK(Z,l,y.width),QiU(n.X,Z,y.width,y.height))}; NO=function(){}; idQ=function(n,Z){n=n.api.getRootNode();g.w4(n,"ytp-ad-overlay-open",Z);g.w4(n,"ytp-ad-overlay-closed",!Z)}; g.HgT=function(n,Z,F){for(var y=Object.assign({},n),l=g.Y(Object.keys(Z)),m=l.next();!m.done;m=l.next()){m=m.value;var a=n[m],D=Z[m];if(D===void 0)delete y[m];else if(a===void 0)y[m]=D;else if(Array.isArray(D)&&Array.isArray(a))y[m]=F?[].concat(g.t(a),g.t(D)):D;else if(!Array.isArray(D)&&g.VO(D)&&!Array.isArray(a)&&g.VO(a))y[m]=g.HgT(a,D,F);else if(typeof D===typeof a)y[m]=D;else return Z=new g.FV("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:m,ltx:a,updateValue:D}),g.ZW(Z), n}return y}; Pmo=function(n){if(n.iz()){var Z=n.data["Stitched-Video-Id"]?n.data["Stitched-Video-Id"].split(",").slice(0,-1):[],F=TmK(n),y=[];if(n.data["Stitched-Video-Duration-Us"])for(var l=g.Y(n.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())y.push((Number(m.value)||0)/1E6);l=[];if(n.data["Stitched-Video-Start-Frame-Index"]){m=g.Y(n.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var a=m.next();!a.done;a=m.next())l.push(Number(a.value)||0)}l=[]; if(n.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.Y(n.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),a=m.next();!a.done;a=m.next())l.push((Number(a.value)||0)/1E6);n=new qco(Z,F,y,l,g.aQY(n),g.W_f(n))}else n=null;return n}; BR=function(n,Z,F){iR.call(this,n);this.V=Z;this.clientState=F;this.N="S";this.X="q"}; tN=function(n,Z){n=g.KQ[n];return n&&n.prototype?(Z=Object.getOwnPropertyDescriptor(n.prototype,Z))&&Z.get||null:null}; PBY=function(n,Z){function F(){a:{if(fu)throw Error("");if(NF!==null){var l=NF.ZN;if(l===void 0||l.cJ!==y){var m=void 0,a=NF.T1;if(a&&(m=l!==void 0?l.hj:NF.producers,m!==void 0&&m.cJ===y)){NF.ZN=m;m.FQx=y.version;break a}var D=y.WG,p;if(!(p=D===void 0||D.xl!==NF)){if(a){b:{p=NF;a=p.ZN;if(a!==void 0){p=p.producers;do{if(p===D){a=!0;break b}if(p===a)break;p=p.hj}while(p!==void 0)}a=!1}a=!a}p=a}p&&(a=s9(NF),m={cJ:y,xl:NF,hj:m,lC:D,FQx:y.version,BM:void 0},NF.ZN=m,l!==void 0?l.hj=m:NF.producers=m,a&& $le(y,m))}}}return y.value} var y=Object.create(C3K);y.value=n;Z!==void 0&&(y.Bd=Z);F[Jm7]=y;return[F,function(l){return b83(y,l)}, function(l){if(!YeP())throw Error();b83(y,l(y.value))}]}; u5Q=function(n){var Z,F,y=(Z=n.N)==null?void 0:(F=Z.bannerData)==null?void 0:F.itemData;return n.W.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(y==null||!y.priceReplacementText)&&(y==null?0:y.promotionText)?y==null?void 0:y.promotionText.content:null}; q1o=function(n,Z){return n.X+Z*(n.N-n.X)}; bde=function(n,Z,F){F=F===void 0?0:F;var y,l;return g.A(function(m){if(m.N==1)return y=[],y.push(Z.load()),F>0&&y.push(vYe(F)),g.x(m,Promise.race(y),2);l=cu7(n,Z);return m.return(l)})}; g.O8=function(n,Z){g.Xu.call(this);var F=this;this.iY=n;this.adaptiveFormats="";this.eI=this.adQueryId=this.XW=null;this.kL={start:NaN,end:NaN};this.cueRanges=this.by=null;this.lT=new Map;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.ra="";this.GV=!1;this.LH=null;this.Pc=this.vu=this.BL=!1;this.V=null;this.Pv=this.s5=!1;this.Wu=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec= 0;this.O0=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.iU=0;this.xX=!1;this.cycToken=null;this.author="";this.jR=!1;this.IW=0;this.nF=!1;this.GO=null;this.Ye=[];this.C5=this.Sk=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.r5=this.SG="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Y4=0;this.nL=this.G6=this.X=null;this.YS="";this.loading=!1;this.Qc=this.Hf=0;this.tQ=this.pipable= this.Bt=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.yU=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Pf=this.isPrivate=this.isListed=this.h2=!1;this.i6="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.fY=this.sV=this.z7=!1;this.latencyClass="UNKNOWN";this.aB=this.aT=this.DK=this.s1=this.tY=this.ye=this.wE=this.G5p=this.FN=this.enableServerStitchedDai=this.DD=this.isMdxPlayback=this.isUpcoming= this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.fR=0;this.reloadReason="";this.MY=this.N1=!1;this.keywords={};this.hG="";this.Vs=0;this.AC=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.j8=null;this.jP=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.gi=this.paygated=!1;this.Aa=[];this.XH=!1;this.a7=[];this.Ej=null;this.bk=this.racyCheckOk=!1;this.oM={};this.isProximaLatencyEligible=!1;this.J_=0;this.T=null;this.autonavState= 1;this.In=null;this.shortDescription="";this.L=this.Uc=!1;this.AL=this.aY=this.startSeconds=0;this.e8=this.uM=this.Jm=IK;this.bT=this.suggestions=null;this.c7=this.Kh=void 0;this.isExternallyHostedPodcast=!1;this.Mt=null;this.Xw=this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.lY=[];this.ud=[];this.hlsFormats=this.BC="";this.CO=this.rZ=this.oX=this.d5=this.zx=this.yQ=this.VG=null;this.zy="vvt";this.mC=!1;this.mY=null;this.Wb="";this.ZQ=NaN;this.M5=this.EL=this.G0=this.TC= this.XE=this.fL=this.y5=this.wY=this.Hq=this.IS="";this.yI=null;this.wA=!1;this.clipStart=0;this.clipEnd=Infinity;this.GF=!1;this.heartbeatToken="";this.hR=this.ZK=NaN;this.Bx=this.y_=this.cV=this.PR=this.Rm=!1;this.VI=!0;this.lG={};this.captionTracks=[];this.BO=[];this.Os=0;this.Dc=[];this.Tb=[];this.Xo=!1;this.oA={};this.RX=new g.$$("und",new g.ZV("Default","und",!0));this.Ls=0;this.S=null;this.KP=[];this.uD=!1;this.mN=this.Hx="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.reelItemWatchResponse= this.w5=this.Dt=this.ZZ=this.playerResponse=this.ri=this.k0=this.fF=this.Uj=null;this.s7=!1;this.mJ=null;this.isInlinePlaybackNoAd=this.Mn=this.W4=this.useCobaltWidevine=this.gN=this.DU=!1;this.oF=!0;this.s9=this.Iw=NaN;this.defraggedFromSubfragments=this.oy=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.jT=new Set;this.sabrContextUpdates=new Map;this.gatewayExperimentGroup="";this.Ck=this.Wr=this.A7=!1;this.interstitials=[];this.vV=this.RB=!1;this.mq="";this.allowImaMonetization= !1;this.ij="";this.Nn=!1;this.iZ="";this.Ya=[];this.YQ=[];this.sS="";this.d4=this.J=this.GG=!1;this.nx="";this.hH=this.aV=this.KH=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.H1=!1;this.ZD=this.PV=!0;this.errorDetail=this.userGenderAge="";this.Di=this.qa=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.pO=this.errorReason= this.errorCode=null;this.sW=!1;this.un=[];this.YN=this.ze=this.lf=this.DE=this.Nt=0;this.fetchType=null;this.cq=!0;this.transitionEndpointAtEndOfStream=void 0;this.lw=this.Cy=-1;this.HE=this.Yi=!1;this.xi=null;this.Pr="";this.watchUrl=null;this.uT=[];this.visibleOnLoadKeys=[];this.Wo=[];this.inlineMetricEnabled=this.p6=!1;this.nD=this.embedsRctn=this.embedsRct="";this.U9=NaN;this.authorizedFormats=[];this.V1=(0,g.tP)();this.P$=this.R0=0;this.g6=null;this.vi5=this.oB=this.RI=this.rh=!1;this.MI={}; this.P_=.25;this.d0=2;this.o2=this.tL=!1;this.yg=this.iY.experiments.RY("html5_use_triple_equals");this.Vl=g.jf(this.iY.experiments,"html5_gapless_loop_seek_offset_in_milli");this.vx={setData:function(y){F.setData(y)}, kX:function(){F.kX()}, i7:function(y){F.i7(y)}}; this.Yi=this.j("web_new_autonav_countdown");this.HE=this.j("web_new_big_thumbnail_endscreen");this.iY.CO&&(this.Ns=this.iY.CO);this.setData(Z);this.WH=new M93;g.S(this,this.WH)}; Ur8=function(n,Z){if(Z.U==="path")return Z.Z.d;if(Z.D)for(var F=0;F0&&m.width>0){m=[Math.round(m.width),Math.round(m.height)];var a=g.Mk();a>1&&m.push(a);m=m.join(":")}else m=void 0;l.size=m})}; MGY=function(n,Z){if(Z<0)return"0";n=Math.floor(Math.min(Z,n.api.getDuration())*1E3);return n>2147483647?"0":String(n)}; L$U=function(){return{get opener(){return null},get closed(){return!0},get location(){j67()},get document(){j67()},postMessage:function(){}, close:function(){}, focus:function(){}}}; sr=function(n){this.value=n}; S4f=function(n,Z){return F4(n)?Z!==1&&Z!==2&&Z!==0?"AUTOPLAY_STATUS_UNAVAILABLE":n.jR?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; Ef=function(n,Z,F){g.Xu.call(this);this.videoData=n;this.experiments=Z;this.S=F;this.X=[];this.ue=0;this.T=!0;this.V=!1;this.C=0;F=new yEU;n.latencyClass==="ULTRALOW"&&(F.L=!1);n.Pf?F.T=3:g.HJ(n)&&(F.T=2);n.latencyClass==="NORMAL"&&(F.S=!0);F.Ns=YA(n);if(n.latencyClass==="LOW"||n.latencyClass==="ULTRALOW")F.S=!0;var y=g.jf(Z,"html5_liveness_drift_proxima_override");if(SK(n)!==0&&y){F.N=y;var l;((l=n.N)==null?0:lz3(l))&&F.N--}YA(n)&&Z.RY("html5_sabr_parse_live_metadata_playback_boundaries")&&(F.Tx= !0);if(g.tv("trident/")||g.tv("edge/"))l=g.jf(Z,"html5_platform_minimum_readahead_seconds")||3,F.V=Math.max(F.V,l);g.jf(Z,"html5_minimum_readahead_seconds")&&(F.V=g.jf(Z,"html5_minimum_readahead_seconds"));g.jf(Z,"html5_maximum_readahead_seconds")&&(F.Pr=g.jf(Z,"html5_maximum_readahead_seconds"));if(Z=g.jf(Z,"html5_liveness_drift_chunk_override"))F.N=Z;MZ(n)&&(F.N=(F.N+1)/5,n.latencyClass==="LOW"&&(F.N*=2));!YA(n)||n.latencyClass!=="ULTRALOW"&&n.latencyClass!=="LOW"||(F.J=3,F.C=25);this.policy=F; this.J=this.policy.T!==1;this.N=Sx(this,GD3(this,isNaN(n.liveChunkReadahead)?3:n.liveChunkReadahead,n))}; ab=function(n,Z,F){n=n===void 0?"":n;Z=Z===void 0?null:Z;F=F===void 0?!1:F;g.Xu.call(this);var y=this;this.sourceUrl=n;this.isLivePlayback=F;this.aY=this.duration=0;this.isPremiere=this.z7=this.V=this.isLiveHeadPlayable=this.isLive=this.X=!1;this.DE=this.Nt=0;this.isOtf=this.t2=!1;this.jT=(0,g.tP)();this.Tx=Infinity;this.N={};this.T=new Map;this.state=this.Wm=0;this.J=null;this.isManifestless=!1;this.Wr=[];this.S=null;this.zx=0;this.C="";this.lY=NaN;this.ze=this.lf=this.timestampOffset=this.L=0;this.dK= this.c_=NaN;this.YN=0;this.r5=this.Ns=!1;this.fR=[];this.yg={};this.w5=NaN;this.vx={g7Y:function(D){u$(y,D)}}; var l;this.xi=(l=Z)==null?void 0:l.RY("html5_use_network_error_code_enums");mAY=!!Z&&Z.RY("html5_modern_vp9_mime_type");var m;Uc=!((m=Z)==null||!m.RY("html5_enable_flush_during_seek"))&&g.N9();var a;Nj=!((a=Z)==null||!a.RY("html5_enable_reset_audio_decoder"))&&g.N9()}; ni=function(){this.finished=this.started=!1}; Fe7=function(n){var Z=n!==n.top,F=n.top===NmQ(n),y=-1,l=0;if(Z&&F&&n.top.mraid){y=3;var m=n.top.mraid}else y=(m=n.mraid)?Z?F?2:1:0:-1;m&&(m.IS_GMA_SDK||(l=2),eAT(tBK,function(a){return typeof m[a]==="function"})||(l=1)); return{w6:m,compatibility:l,gku:y}}; Oy=function(n,Z,F){return DX(n,Z,qc(F))}; we=function(){g.Xu.apply(this,arguments)}; Xh=function(n){for(;n.N.length&&!n.N[0].isEncrypted;){var Z=n.N.shift(),F=Z.videoId,y=Z.Wt,l=Z.formatId,m=Z.buffer;Z=Z.X4;if(m)Z=void 0,(Z=Po(n.Qi.pR,F))==null||Et(Z,y,l,m);else if(Z)n.Qi.pR.KB(F,y,l);else if(y=n.Qi,y.N[l].n8=!0,F=Po(y.pR,F),F==null?0:F.JD.has(l))F==null||C7(F,l)}}; Br=function(){this.N=null;this.X=0;this.T=new pcK;this.V=new Xi}; g.kG=function(n){n=n===void 0?{}:n;this.languageCode=n.languageCode||"";this.languageName=n.languageName||null;this.kind=n.kind||"";this.name=n.name===void 0?null:n.name;this.displayName=n.displayName||null;this.id=n.id||null;this.N=n.is_servable||!1;this.isTranslateable=n.is_translateable||!1;this.url=n.url||null;this.vssId=n.vss_id||"";this.isDefault=n.is_default||!1;this.translationLanguage=n.translationLanguage||null;this.xtags=n.xtags||"";this.captionId=n.captionId||""}; PX8=function(n){var Z=g.ef(n,0,1937011556);if(!Z)return null;var F=n.getUint32(Z.dataOffset+12);if(F!==1701733217&&F!==1701733238)return null;Z=xF(n,Z.offset+24+(F===1701733217?28:78),1936289382);if(!Z)return null;F=xF(n,Z.offset+8,1935894637);if(!F||n.getUint32(F.offset+12)!==1667392371)return null;Z=xF(n,Z.offset+8,1935894633);if(!Z)return null;Z=xF(n,Z.offset+8,1952804451);if(!Z)return null;F=new Uint8Array(16);for(var y=0;y<16;y++)F[y]=n.getInt8(Z.offset+16+y);return F}; g.pO=function(n,Z,F,y,l){if(y&&y.once)return In(n,Z,F,y,l);if(Array.isArray(Z)){for(var m=0;m0}; Hd7=function(n,Z){n.X.style.setProperty("--yt-slider-shape-gradient-percent",(Z-n.T)/(n.S-n.T)*100+"%")}; $rj=function(n){Qz(n,function(){var Z=this;return function y(){var l,m,a,D;return Gk(y,function(p){switch(p.N){case 1:return g.Rj(p,2),Z.bN.tick("wasm_s"),l=Ps(Z.Kq)?function(L){return Dv(j07(Z.Kq),function(q){return q.niR(L)})}:void 0,g.RX(p,4),m=ddY(Z.webPlayerContextConfig.wasmModuleUrl,l,Z.ws.bind(Z)),a=gv,iU(p,CP(m),6); case 6:D=a(p.X);Z.bN.tick(D.N?"wasm_fa":"wasm_fw");iyn(Z.Y,D);g.iX(p,2);break;case 4:g.d4(p),Z.bN.tick("wasm_ferr");case 2:g.cJ(p),g.zu(p,0)}})}()})}; eH=function(n){if(n.N==null)throw Error("Storage mechanism: Storage unavailable");n.isAvailable()||sy(Error("Storage mechanism: Storage unavailable"))}; BBQ=function(n,Z){var F=Math.max(n,Z);n=Math.min(n,Z);Z=HY[0];for(var y=0;y=Math.floor(m*16/9)*1.3||n>=m*1.3)return Z;Z=l}return"tiny"}; MB8=function(n){n.g1.onProgress();if(d9(n.videoData)&&Date.now()>n.Nx+6283){if(n.j("html5_unified_live_latency_reporting")){var Z=n.g1;Z.qoe&&w9e(Z.qoe)}else!n.isAtLiveHead()||n.videoData.N&&q9i(n.videoData.N)||(Z=n.g1,Z.qoe&&w9e(Z.qoe));Z=g.d5(n.Y);var F=n.j("html5_always_log_rawlat");(Z||F)&&n.Xp("rawlat",{l:at(n.S4,"rawlivelatency").toFixed(3)});n.Nx=Date.now()}n.videoData.X&&KU(n.videoData.X)&&(Z=n.T2())&&Z.videoHeight!==n.F$&&(n.F$=Z.videoHeight,DjU(n,"a",zdo(n,n.videoData.zx)))}; IRi=function(n,Z,F,y,l){chP=!1;var m=(0,g.tP)();Z.ticks.gelc=m;Sz++;g.N5("disable_compression_due_to_performance_degredation")&&m-Z.startTime>=Z47&&(jz++,Y5=!1);y6T(Z);y.headers||(y.headers={});y.headers["Content-Encoding"]="gzip";y.postBody=n;y.postParams=void 0;l(F,y)}; mDp=function(n,Z,F,y){function l(){Q8({writeThenSend:!0},Z,F.tier)} Z=Z===void 0?!1:Z;y=y===void 0?!1:y;n&&(JX=new n);n=g.Fv("tvhtml5_logging_max_batch_ads_fork")||g.Fv("tvhtml5_logging_max_batch")||g.Fv("web_logging_max_batch")||100;var m=(0,g.tP)(),a=oM(Z,F.tier),D=a.V;y&&(a.T=!0);y=0;F&&(y=Sk().getSequenceCount(F));y>=1E3?l():y>=n?$M3||($M3=BX(function(){l();$M3=void 0},0)):m-D>=10&&(XCY(Z,F.tier),a.V=m)}; lg=function(n,Z,F){if(F&&!F.includes(n.layoutType))return!1;Z=g.Y(Z);for(F=Z.next();!F.done;F=Z.next())if(!HQ(n.clientMetadata,F.value))return!1;return!0}; dG=function(n,Z,F){n.S=3;n.Pr="The stream is broken @"+n.T+"/"+F+". With input:\n"+Z;throw Error(n.Pr);}; g.z5=function(n){var Z=g.QR.Rd(),F=g.QR.qF();if(!Z&&!F||!window.JSON)return null;try{var y=Z.get(n)}catch(l){}if(typeof y!=="string")try{y=F.get(n)}catch(l){}if(typeof y!=="string")return null;try{y=JSON.parse(y,void 0)}catch(l){}return y}; ns3=function(n,Z){return g.CC(n,{query:Z},function(F){return F.delete().then(function(){return g.uj(F)})}).then(function(){})}; XCY=function(n,Z){function F(){Q8({writeThenSend:!0},n,Z)} n=n===void 0?!1:n;Z=Z===void 0?200:Z;var y=oM(n,Z),l=y===BLT||y===$2P?5E3:ZIT;g.N5("web_gel_timeout_cap")&&!y.N&&(l=BX(function(){F()},l),y.N=l); Pu(y.X);l=g.BT("LOGGING_BATCH_TIMEOUT",g.Fv("web_gel_debounce_ms",1E4));g.N5("shorten_initial_gel_batch_timeout")&&Lw&&(l=FOQ);l=BX(function(){g.Fv("gel_min_batch_size")>0?Sk().getSequenceCount({cttAuthInfo:void 0,isJspb:n,tier:Z})>=yz3&&F():F()},l); y.X=l}; g.je=function(n,Z){var F=Array.prototype.slice.call(arguments,1);return function(){var y=F.slice();y.push.apply(y,arguments);return n.apply(this,y)}}; iT7=function(n,Z,F,y,l,m){EnU(n,Z,F,void 0,y,l,m)}; oHT=function(){if(document.visibilityState)var n="visibilitychange";else{if(!document[vR+"VisibilityState"])return"";n=vR+"visibilitychange"}return n}; g.uU=function(){g.xu.call(this);this.N=0;this.endTime=this.startTime=null}; g.J9=function(n,Z,F,y,l,m){g.I.call(this);this.element=n;this.state=null;F||n.hide();this.X=Z;this.T=y===void 0?Z:y;this.N=m;this.onHidden=l;this.delay=new g.e7(this.XA,0,this);g.S(this,this.delay)}; weo=function(n){return new dLP(n.PUG,n.nR,n.ym,n.gM,n.tG,n.To,n.tD,n.fT,n.slot,n.layout,n.wO,n.sD,n.wM,n.U8)}; laY=function(n,Z,F){var y=[];return g.CC(n,{query:Z},function(l){if(!(F!==void 0&&y.length>=F))return y.push(l.getValue()),g.uj(l)}).then(function(){return y})}; M88=function(n,Z,F,y,l){var m=(0,g.tP)(),a=l?l(Z):void 0,D;l=(D=a==null?void 0:a.uV)!=null?D:1;if(l!==0){var p;D=(p=a==null?void 0:a.profile)!=null?p:F;dAp(n,D,m-y,l)}return Z}; $1f=function(){return(K4||DV)&&p4?p4.mobile:!MOn()&&(Rf("iPod")||Rf("iPhone")||Rf("Android")||Rf("IEMobile"))}; k$=function(n){g.I.call(this);var Z=this;this.Lq=n;this.T="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.X=void 0;this.RN=this.Lq.p;this.V=this.U4.bind(this);this.addOnDisposeCallback(function(){return void CJP(Z)})}; ILn=function(n){var Z,F,y;return g.A(function(l){if(l.N==1)return g.x(l,Promise.race([n.N,null]),2);Z=l.X;var m=ru(n);n.N=m;(F=Z)==null||(y=F.Lq)==null||y.dispose();g.zA(l)})}; g.$y=function(n){this.X=n}; YG=function(n,Z){this.info=n;this.callback=Z;this.state=1;this.JO=this.zt=!1;this.AV=null}; u6=function(n){var Z=n.j("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";c5.call(this,Z,g.rJ.l0);var F=this;this.W=n;this.N=!1;this.X=new g.e7(function(){g.hw(F.element,"ytp-menuitem-highlighted")},0); this.Fp=n.zj();n=n.j("delhi_modern_web_player_icons")?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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(n);this.subscribe("select",this.T,this);this.listen(w$,this.V);g.S(this,this.X)}; Fc=function(n){this.value=n}; sQj=function(n){var Z=n.api.getVideoData();n.button.yP(Z.Uc)}; mMP=function(n,Z){if(Z.xM()||Z.CR()){var F=n.loader,y=F.Xp,l=Z.state;n=n.UG();var m,a;if((Z=(m=Z.qt)==null?void 0:m.get(n))==null)Z=void 0;else{m=0;n=Z.AY();for(var D=0;D0&&(W.push(U),W.push(new yk(f.adPodSkipTarget)));(m=L.get(f.externalVideoId))&&W.push(new wT(m));m=W}else m=new C("Invalid vod media renderer")}if(m instanceof C)return m;n=Object.assign({},a,y,{Nd:v,renderingContent:F.renderingContent,clientMetadata:new lb(m),lN:yP(q,n)(a),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData});F=g.e(F.renderingContent,n7);if(!F||!gd(F))return new C("Invalid meida renderer");w=qG(w,F.externalVideoId);w.instreamVideoAdRenderer=F;w.JN="AD_PLACEMENT_KIND_START";return P?(p=x9(T,n,p,J,q,U,!1),p instanceof C?p:Hi8(n.layoutId,T)&&p?{layout:Object.assign({},n,{clientMetadata:new lb(m.concat(new DMK(p)))})}:{layout:n,ly:p}): {layout:n}}; pIU=function(n){this.N=n}; zl=function(n,Z){Z?n.requestHeaders.Authorization="Bearer "+Z:delete n.requestHeaders.Authorization}; zI=function(n){g.I.call(this);this.mQ=n;this.N=0;this.X=null;this.C=this.V=0;this.T={};this.Y=this.mQ.B();this.S=new g.e7(this.YA,1E3,this);this.yg=va(this,"html5_seek_timeout_delay_ms");this.w5=va(this,"html5_long_rebuffer_threshold_ms");this.xi=va(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.lY=va(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.r5=va(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.SG=va(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.Ns=va(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Tx=new Va(2E4);this.jT=va(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.fR=va(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.aY=va(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.zx=va(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.L=va(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.Pr=va(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.hG=va(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.d5=va(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.J=va(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.Yi=new Va(g.jf(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Y.j("html5_report_slow_ads_as_error"));this.mJ=new Va(g.jf(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Y.j("html5_skip_slow_buffering_ad"));this.IW=va(this,"html5_slow_start_timeout_delay_ms");this.Wr=va(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.S(this,this.S)}; zt=function(n,Z,F){if(F&&F!==n.slotType)return!1;Z=g.Y(Z);for(F=Z.next();!F.done;F=Z.next())if(!HQ(n.clientMetadata,F.value))return!1;return!0}; pX=function(n,Z,F,y,l,m){var a=F?$03(n):{},D=F?WuT(n,F.layoutId):{},p=MT7(n),L,q=l!=null?l:(L=tI(n.nR.get(),2))==null?void 0:L.clientPlaybackNonce;l={};n=Object.assign({},KY7(n.W,y),Fuj(Z.adPlacementConfig,(F==null?void 0:F.renderingContent)!==void 0),D,a,p,(l.FINAL=T3(function(){return"1"}),l.AD_CPN=T3(function(){return q||""}),l)); (F==null?void 0:F.renderingContent)!==void 0||(n.SLOT_POS=T3(function(){return(Z.YD||0).toString()})); F={};m=Object.assign({},n,m);n=g.Y(Object.values(LOo));for(y=n.next();!y.done;y=n.next())y=y.value,a=m[y],a!=null&&a.toString()!=null&&(F[y]=a.toString());return F}; qwQ=function(n){return n.W.B().experiments.RY("should_ignore_cuepoints_during_lifa_preroll")}; Y5T=function(n,Z){return Ai(n,1,Z)}; BY=function(n,Z,F,y){n.T.Oj(y===void 0?Z:y,F/Z);n.C=(0,g.tP)()}; g.GNp=function(n,Z){wIi(n,{pmp:g.jf(Z.experiments,"bg_vm_reinit_threshold"),cspNonce:Z.cspNonce,rW:Z.rW||""})}; TS8=function(n){if(!n.V){var Z=n.N[n.X];n.V=new DataView(Z.buffer,Z.byteOffset,Z.length)}return n.V}; CP=function(n){return function F(){return Gk(F,function(y){if(y.N==1)return g.Rj(y,2),g.x(y,{Nz:VX(n)},4);if(y.N!=2)return y.return(y.X);g.cJ(y);return g.zu(y,0)})}()}; g.WdP=function(n,Z,F){var y=F.S,l=[],m=[],a=F.j("html5_shorts_onesie_mismatched_fix");n=n.pP();var D=Ut.concat(ElP);a&&(D=Ut.concat(ONo));F.j("html5_early_media_for_drm")&&(D=D.concat(ccT),F.j("allow_vp9_1080p_mq_enc")&&D.push(V9P));var p=[].concat(g.t(vlK));F.j("html5_iamf_audio_onesie_fmt")&&p.push(["773"]);D=g.Y(D);for(var L=D.next();!L.done;L=D.next()){L=g.Y(L.value);for(var q=L.next();!q.done;q=L.next()){q=q.value;var w=t8(q,n&&a);if(w&&w.video){var T=g.jf(F.experiments,"html5_drm_byterate_soft_cap"); if(!(T>0&&IYP(w)&&w.Qg>T)&&Mr(Z,w,y)===!0){l.push({videoCodec:Gkn[Bm[q]],maxWidth:w.video.width,maxHeight:w.video.height,maxFramerate:w.video.fps});break}}}}a=g.Y(p);for(n=a.next();!n.done;n=a.next())for(n=g.Y(n.value),p=n.next();!p.done;p=n.next())if(p=p.value,(D=fYp(p))&&D.audio&&(F.j("html5_onesie_51_audio")||!b5(D))&&Mr(Z,D,y)===!0){m.push({audioCodec:r7p[Bm[p]],numChannels:D.audio.numChannels});break}return{videoFormatCapabilities:l,audioFormatCapabilities:m}}; T8p=function(n){var Z=!n.B().un&&n.getPresentingPlayerType()!==3;return n.isFullscreen()||Z}; h6=function(n){return n.N.c}; g.xa=function(n){return Array.prototype.concat.apply([],arguments)}; t9=function(n,Z){return Z===void 0?n.N!==Xm&&!!(2&(n.AG[kt]|0)):!!(2&Z)&&n.N!==Xm}; Nz=function(n){if(n.lastError==="ump.spsrejectfailure")n.timing.Ns||bKT(n.Er,!1,n.SH,n.policy,n.V);else{if(n.lastError==="net.timeout")n.timing.yO((0,g.tP)());else{var Z=n.timing;KL(Z,(0,g.tP)(),Z.S)}if(n.lastError==="net.nocontent")++n.Er.J;else{if((Z=n.lastError==="net.timeout"||n.lastError==="net.connect"||n.lastError==="net.closed")&&!Vh(3,n.SH.lU)){var F=wa(n);F.timedOut+=1}else F=wa(n),F.N+=1;n.timing.Ns||bKT(n.Er,Z,n.SH,n.policy,n.V)}}n.pR.rM(5)}; JRi=function(n,Z){var F=n.N;Z=Math.min(Z,F.X.totalLength);if(Z===F.X.totalLength)return n.N=null,F;F=LSi(F,Z);n.N=F[1];return F[0]}; dC=function(n,Z){var F=Z.O8;n.C="updateWithSegmentInfo";n.O8=F;if(n.startTime!==Z.startTime||n.duration!==Z.duration)n.startTime=Z.startTime,n.duration=Z.duration,HTT(n)}; s2=function(n){this.Pr=this.J=this.S=this.T=0;this.L=this.C=!1;this.N=n;this.X=n.clone()}; ee=function(n,Z,F,y,l,m,a,D,p){var L=t9(n,F);m=L?1:m;D=!!D||m===3;L=p&&!L;(m===2||L)&&Lz(n)&&(Z=n.AG,F=Z[kt]|0);n=H5(Z,l,a);var q=n===dQ?7:n[kt]|0,w=B5(q,F);if(p=!(4&w)){var T=n,P=F,J=!!(2&w);J&&(P|=2);for(var U=!J,h=!0,v=0,V=0;v=602)}; YK=function(n){return n.N.TY}; F4=function(n){return n.N1||n.yU||n.mutedAutoplay}; tSU=function(n,Z,F){var y={stack:[],error:void 0,hasError:!1};try{var l=JKe(n,F);return Ym(JWn(y,new giQ(n.logger,l)),function(){return[]},Z)}catch(m){y.error=m,y.hasError=!0}finally{Ql8(y)}}; g.ny=function(n,Z,F){var y=g.QF();if(y&&Z){var l=y.subscribe(n,function(){function m(){Yb[l]&&Z.apply&&typeof Z.apply=="function"&&Z.apply(F||window,a)} var a=arguments;try{g.$v[n]?m():g.A3(m,0)}catch(D){g.hp(D)}},F); Yb[l]=!0;re[n]||(re[n]=[]);re[n].push(l);return l}return 0}; mp=function(n){g.R.call(this,{U:"div",s8:["ytp-more-videos-button","ytp-button"],Z:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},D:[{U:"div",K:"ytp-more-videos-button-thumbnail"},{U:"span",K:"ytp-more-videos-button-title",E8:"{{title}}"}]});this.W=n;this.X=this.Vg("ytp-more-videos-button-thumbnail");this.T=this.Vg("ytp-more-videos-button-title");this.N=new g.IS(this);g.S(this,this.N);this.N.G(this.W,"videodatachange",this.qG);this.qG();this.listen("click",this.onClick);zgU(this, 0);this.hide()}; Rt=function(n,Z,F,y){this.Cn=n;this.layoutId=F;this.S=y;this.X=[];this.N=[];this.T=this.V=0;n=g.Y(Z);for(Z=n.next();!Z.done;Z=n.next())switch(Z=Z.value,F=void 0,(F=Z.adVideoOffset)==null?void 0:F.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":Jzf(Z)?this.X.push(Z):wU("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":QQP(Z)?this.N.push(Z):wU("Invalid AdVideoProgressMillisecondsCommand");break;default:wU("Unknown or invalid AdVideoProgressOffSet kind")}this.X.sort(function(l, m){return l.adVideoOffset.percent-m.adVideoOffset.percent}); this.N.sort(function(l,m){return Number(l.adVideoOffset.milliseconds)-Number(m.adVideoOffset.milliseconds)})}; Ie8=function(n){return g.i8(n.N,function(Z){return Z.info.video?Z.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; UF=function(n,Z,F,y){(new Uint8Array(n.data.buffer,n.offset,y)).set(new Uint8Array(Z.buffer,F+Z.byteOffset,y));n.offset+=y}; nd=function(n,Z){var F=n.j("web_fix_annotations")?"Annotated Overlays":"Annotations";c5.call(this,F,g.rJ.V8);this.W=n;this.Fp=Z;this.N=!1;n.j("web_settings_menu_icons")&&(Z=n.j("delhi_modern_web_player_icons")?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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(Z));this.G(n,"videodatachange",this.g5);this.G(n,"onApiChange",this.g5);this.subscribe("select",this.onSelect,this);this.g5()}; Zu=function(n){g.R.call(this,{U:"button",s8:["ytp-pip-button","ytp-button"],Z:{title:n.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},D:[RZ()]});var Z=this;this.api=n;this.listen("click",this.onClick);var F=this.api.Rs(),y=F.subscribe("visibilitystatechange",function(){Z.g5(F.Sx())}); this.addOnDisposeCallback(function(){F.ez(y)}); XX(n,this.element,this);this.g5(F.Sx())}; wu7=function(n){var Z=AG("_start",n),F=lui(n),y=!Ywn;Z&&F&&y&&(jr(Swp,new Q4(Math.round(F-Z),n)),Ywn=!0)}; g.nK=function(n,Z,F,y){F=F===void 0?!1:F;y=y===void 0?0:y;if(n.isLocked||Z.isLocked||!v0(n.info,Z.info)||n.info.T)return null;if(y){if(n.X.totalLength+Z.X.totalLength>y)return null}else if(F&&(F=n.X,y=Z.X,F=!(y.N.length?dHe(F,y.N[0]):1)),F)return null;F=new fM(n.info.type,n.info.bY,n.info.range,n.info.C,n.info.O8,n.info.startTime,n.info.duration,n.info.N,n.info.X,n.info.T,n.info.ph,n.info.clipId);y=Z.info;F.X+=y.X;F.range&&(F.J+=y.J);F.S=y.S;F.T=y.T;y=new y9;KB(y,n.X);KB(y,Z.X);F=new mH(F,y);F.N!= null&&Z.N!=null&&g.u4("dash",414627957,"merged slice emsg overridden; prev: "+F.N.iz()+" next: "+Z.N.iz());F.N=Z.N||n.N;F.T=n.T!==-1?n.T:Z.T;F.V=n.V!==-1?n.V:Z.V;return F}; GS=function(){var n=Number(g.BT("DCLKSTAT",0));return isNaN(n)?0:n}; eR=function(n,Z,F,y,l){var m=n.N;m!==n.app.Z4()&&n.app.sO();n.Y.j("html5_sabr_csdai_seek_log")||(l="");var a;m.seekTo(Z,Object.assign({},{eO:"application_timelinemanager"+((a=l)!=null?a:"")},F));tF7(n,y)}; cEK=function(n){var Z=n.raw_player_response;if(!Z){var F=n.player_response;F&&(Z=JSON.parse(F))}delete n.player_response;delete n.raw_player_response;if(Z){n.raw_player_response={streamingData:Z.streamingData,playerConfig:Z.playerConfig};var y;if((y=Z.playbackTracking)==null?0:y.qoeUrl)n.raw_player_response=Object.assign({},n.raw_player_response,{playbackTracking:{qoeUrl:Z.playbackTracking.qoeUrl}});Z.videoDetails&&(Z.videoDetails.videoId||Z.videoDetails.lengthSeconds)&&(F={},Z.videoDetails.videoId&& (F.videoId=Z.videoDetails.videoId),Z.videoDetails.lengthSeconds&&(F.lengthSeconds=Z.videoDetails.lengthSeconds),n.raw_player_response=Object.assign({},n.raw_player_response,{videoDetails:F}))}}; jQ3=function(n,Z,F,y,l,m,a){var D,p,L;return g.A(function(q){if(q.N==1)return D=g.py(n,NMo),g.x(q,twj(Z,D),2);if(q.N!=3)return p=q.X,g.x(q,FzK(Z,p),3);L=q.X;return q.return(hKK({LX:p,sK:L},Z,F,y,!!n.nT,l,m,a))})}; g.$Y=function(){var n=g.z5("yt-player-caption-language-preferences");return n?n:[]}; F5=function(n,Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var y=n.Tx.get(F.triggerId);y&&(y.KK(F),n.Tx.delete(F.triggerId))}}; g.UM8=function(n,Z){return Z.state===n.state&&Z.wB===n.wB}; N8T=function(n,Z){n instanceof String&&(n+="");var F=0,y=!1,l={next:function(){if(!y&&Fm)return n.policy.N&&(Z===n.videoTrack?n.fR=n.fR||(0,g.tP)():n.r5=n.r5||(0,g.tP)()),n.policy.GG&&Lmj(Z.T,m,!1),!1;Z===n.videoTrack?n.fR=0:n.r5=0;var D;n.policy.RX&&F===((D=n.KR)==null?void 0:D.N)&&n.Yi&&(F.JS()===0?(n.Yi=!1,n.policy.RX=!1):n.mJ=F.JS());a:{D=n.policy.PV?(0,g.tP)():0;a=y.S&&y.info.bY.N||void 0;m=y.X;y.S&&(m=q03(n,y,m)||m);var p=Ge(m);m=n.policy.PV?(0,g.tP)():0;F=NEK(n,F,p,y.info,a);(a=Z.L)!=null&&(p=y.info,D=m-D,m=(0,g.tP)()-m,!a.X||qTY(a.X, p)&&a.X.O8===p.O8||a.flush(),a.V+=D,a.T+=m,D=1,!a.X&&p.N&&(D=2),W_(a,D,F),m=Math.ceil(p.N/1024),D===2&&a.N.add(m),a.N.add(Math.ceil((p.N+p.X)/1024)-m),a.X=p);n.lY=0;if(F===0)n.jT&&(n.jT=!1,n.Bx=!1),n.IW=0,F=!0;else{if(F===2||F===5)qFn(n,"checked",F,y.info);else{if(F===1){if(!n.jT){n.jT=!0;F=!1;break a}if(!n.Bx){n.Bx=!0;n.mQ.seekTo(n.getCurrentTime(),{eO:"quotaExceeded",LD:!0});F=!1;break a}y.info.K6()?(D=n.policy,D.aY=Math.floor(D.aY*.8),D.zx=Math.floor(D.zx*.8)):(D=n.policy,D.d5=Math.floor(D.d5* .8),D.zx=Math.floor(D.zx*.8));n.policy.N?x8(n.V.N,y.info.bY,!1):G4(n.N,y.info.bY)}n.mQ.SU({reattachOnAppend:F})}F=!1}}if(!F)return!1;n.policy.yg&&y.info.tF()?(n.mQ.B().eG()&&n.Xp("eosl",{ls:y.info.bd()}),y.isLocked=!0):(Z.Ba(y),Gme(n.N,y.info));l&&(Z=y.info.bY.tU)&&n.mQ.QJ(new DI(Z.key,Z.type));return!0}; l3=function(n){n.yP(!1);n.X&&n.W.logVisibility(n.element,n.XJ)}; rz8=function(n){if(!n.api.B().SG){var Z=n.api.getVideoData(),F=new g.zQ("Subscribe",null,"Subscribed",null,!0,!1,Z.z6,Z.subscribed,"channel_avatar",null,n.api,!0);n.api.createServerVe(F.element,n);var y;n.api.setTrackingParams(F.element,((y=Z.subscribeButtonRenderer)==null?void 0:y.trackingParams)||null);n.G(F.element,"click",function(){n.api.logClick(F.element)}); n.subscribeButton=F;g.S(n,n.subscribeButton);n.subscribeButton.oY(n.S);n.subscribeButton.hide();var l=new gP7(n.api);n.N=l;g.S(n,l);l.oY(n.S);l.hide();n.G(n.api,"SUBSCRIBE",function(){Z.ZD&&(l.show(),n.api.logVisibility(l.element,!0))}); n.G(n.api,"UNSUBSCRIBE",function(){Z.ZD&&(l.hide(),n.api.logVisibility(l.element,!1),A_K(l,!1))})}}; bLY=function(){return{U:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",Z:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}}; RY8=function(n,Z){var F=Z.bY,y=n.eT.t2;if(xMo(n))if(n.Tx&&n.Tx.JD.has(KF(F,y))){if(y=KF(F,y),yV(n,Z)){var l=new HM(n.Tx.Dr(y)),m=function(a){try{if(a.xM())n.handleError(a.RZ(),a.TQ()),w_(Z,a),dX(a.info)&&ho(n.C,Z,F,!0),n.YA();else if(GYi(n.C,a)){var D;(D=n.T)==null||gLT(D,a.info,n.S);n.YA()}}catch(p){a=oG(p),n.handleError(a.errorCode,a.details,a.severity),n.gW()}}; F.T=!0;lZ(l)&&(zK(Z,new i$(n.policy,y,l,n.Tx,m)),y8(n.timing))}}else n.Xp("ombfmt",{})}; gsY=function(n){n.playlist&&n.playlist.unsubscribe("shuffle",n.onVideoDataChange,n)}; GHQ=function(n,Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next())F=F.value,H7(F)?n.push(Wm({},F)):Gr(F)?n.push(GHQ([],F)):n.push(F);return n}; zy=function(){Il.apply(this,arguments)}; Uon=function(n){return n.N||n.U8.get().W.B().j("html5_force_debug_data_for_client_tmp_logs")}; ven=function(n){this.itag=n.itag;this.url=n.url;this.codecs=n.codecs;this.width=n.width;this.height=n.height;this.fps=n.fps;this.bitrate=n.bitrate;var Z;this.X=((Z=n.audioItag)==null?void 0:Z.split(","))||[];this.gf=n.gf;this.by=n.by||"";this.J2=n.J2;this.audioChannels=n.audioChannels;this.N=""}; QH=function(n,Z,F,y,l,m,a,D,p,L){this.callback=n;this.slot=Z;this.layout=F;this.nR=y;this.ym=l;this.Je=m;this.tG=a;this.Ms=D;this.uY=p;this.S=L;this.driftRecoveryMs=o5(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.V=o5(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0}; pue=function(n,Z,F,y,l){Z=g.e(Z.renderingContent,n7);if(!Z)return new C("Invalid rendering content for DAI media layout");n=[new WC(y),new tL(F.lQ.videoLengthSeconds),new rc(F.lQ.playerVars),new a7(F.IM),new K1(F.YO),new xh(F.FZ),new K7(Dg(n)),new JS(F.lQ.adVideoId),new Pd(F.Zw),Z.sodarExtensionData&&new ig(Z.sodarExtensionData),new L7({current:null}),new p1({}),new ug(sf(Z.pings))].filter(O8j);l!==void 0&&n.push(new oc(l));return n}; Chi=function(n,Z,F,y){y=y===void 0?null:y;g.Xu.call(this);this.element=n;this.videoData=Z;this.Y=F;this.mediaElement=y;this.T=[];this.jT=2;this.r5=this.zx=!1;this.heartbeatParams=null;this.Wr=this.Pr=!1;this.S=null;this.lY=!1;this.N=this.videoData.S;this.drmSessionId=this.videoData.drmSessionId||g.rL8();this.X=new Map;this.C=new $S;this.J=new $S;this.Tx=new g.IS(this);this.w5=this.Y.j("html5_eme_ignore_teardown_errors");(n=this.element)&&(n.addKey||n.webkitAddKey)||PX()||Rme(F.experiments);this.Y.j("html5_enable_vp9_fairplay")&& Jr(this.N)?F=iIQ:(F=this.videoData.Mn,F=this.N.flavor==="fairplay"||F?IK:iIQ);this.L=F;this.V=new si(this.element,this.N,this.w5);g.S(this,this.V);YI(this.N)&&(this.Ns=new si(this.element,this.N,this.w5),g.S(this,this.Ns));g.S(this,this.Tx);F=this.element;this.N.keySystemAccess?this.Tx.G(F,"encrypted",this.rDr):KV(this.Tx,F,YI(this.N)?["msneedkey"]:["needkey","webkitneedkey"],this.Q0Q);SoY(this);a:switch(F=this.N,n=this.Y.experiments,Z=this.X,F.flavor){case "fairplay":jq()>19.2999?(n=F.Yr,F=F.AE, F>=n&&(F=n*.75),Z=(n-F)*.5,F=new rN(Z,n,n-Z-F,this)):F=null;break a;case "widevine":F=new TX(Z,this,n);break a;default:F=null}if(this.S=F)g.S(this,this.S),this.S.subscribe("rotated_need_key_info_ready",this.qL,this),this.S.subscribe("log_qoe",this.Xe,this);Rme(this.Y.experiments);this.Xe({cks:this.N.getInfo()})}; Ur=function(n){g.I.call(this);this.N=n}; ufj=function(n){return g.z5("yt-player-drc-pref")?g.I$(n,uV):n}; bIo=function(n){var Z,F,y,l,m=(Z=n.N)==null?void 0:(F=Z.bannerData)==null?void 0:(y=F.itemData)==null?void 0:(l=y.hiddenProductOptions)==null?void 0:l.dropTimestampMs;Z=(Number(m)-Date.now())/1E3;n.countdownTimer.setContent(rF({seconds:Z}));if(Z>0){var a;(a=n.kV)==null||a.start()}}; VY7=function(n,Z,F){F=F===void 0?0:F;g.gU(function(){Z.then(function(y){n.X.has(F)&&n.V&&n.V();var l=g.f_(F),m=g.Wg(F);if(l&&m){var a={automatedLogEventSource:3},D;(y==null?0:(D=y.response)==null?0:D.trackingParams)&&g.JI(n.client,l,m,g.fE(y.response.trackingParams),!1,a);var p;(y==null?0:(p=y.playerResponse)==null?0:p.trackingParams)&&g.JI(n.client,l,m,g.fE(y.playerResponse.trackingParams),!1,a)}})})()}; eW=function(n,Z,F){this.experiments=n;this.Wr=Z;this.zx=F===void 0?!1:F;this.Pr=!!g.Di("cast.receiver.platform.canDisplayType");this.L={};this.Ns=!1;this.V=new Map;this.J=!0;this.X=this.T=!1;this.N=new Map;this.Tx=0;this.w5=this.experiments.RY("html5_disable_vp9_encrypted");this.S=this.experiments.RY("html5_enable_encrypted_av1");n=g.Di("cast.receiver.platform.getValue");this.C=!this.Pr&&n&&n("max-video-resolution-vpx")||null;FH8(this);this.T=!!(sm()&&jq()>=21)}; XIT=function(n,Z,F){F-=n.uf;return Z===n.N&&F>.5}; hJQ=function(n,Z){return n.j("html5_onesie_sync_request_encryption")||(Z==null?0:Z.nT)||g.TH(n.Y)&&n.j("html5_embed_onesie_use_sync_encryption")?!1:!!Ri()}; xMo=function(n){if(!n.eT.t2)return!0;var Z=n.mQ.getVideoData();if(n.mQ.FW())return n.Xp("ombpa",{}),!1;var F,y;if(!!((F=n.Ns)==null?0:(y=F.yF)==null?0:y.sHp)!==n.eT.z7)return n.Xp("ombplmm",{}),!1;F=Z.aY||Z.liveUtcStartSeconds||Z.AL;if(n.eT.z7&&F)return n.Xp("ombplst",{}),!1;if(n.eT.Ns)return n.Xp("ombab",{}),!1;F=Date.now();return niQ(n.eT)&&!isNaN(n.zx)&&F-n.zx>n.policy.Cg*1E3?(n.Xp("ombttl",{}),!1):n.eT.Nt&&n.eT.V||SK(Z)!==0&&!n.policy.N||Z.j("html5_disable_onesie_media_for_mosaic")&&vD(Z)||Z.j("html5_disable_onesie_media_for_lifa_eligible")&& jK(Z)?!1:!0}; zYP=function(n,Z,F,y,l,m,a,D,p,L,q,w,T,P){for(var J=0,U="",h=g.Y(n),v=h.next();!v.done;v=h.next())v=v.value,U||(U=v.itag),v.audioChannels&&v.audioChannels>J&&(J=v.audioChannels,U=v.itag);l=new mZ(l,"application/x-mpegURL",{audio:new oV(0,J),video:new P4(m,a,D,null,void 0,L,void 0,void 0,T),by:w,cz:U});n=new L4T(n,Z,F?[F]:[],y,!!P);n.V=q?q:1369843;return new BA(l,n,p)}; Kn=function(n,Z,F){var y=0;return function(l){g.KQ.clearTimeout(y);var m=arguments;y=g.KQ.setTimeout(function(){n.apply(F,m)},Z)}}; O5=function(n){return!!n.aZ||n.dA}; wX=function(n,Z){if(n!=null){var F;var y=(F=tcP)!=null?F:tcP={};F=y[n]||0;F>=Z||(y[n]=F+1,n=Error(),f9P(n,"incident"),sy(n))}}; eYn=function(n,Z){return n.enabledEngageTypes.has(Z.toString())||kYe.includes(Z)}; dMQ=function(n){for(var Z=n.suggestionData.length,F=0;F=15E3?!0:n.xi?(F===void 0?0:F)?!0:n.T>0?Z>=n.T/2:n.zx>0?Z>=n.zx:!1:!1}; g.DK=function(n){var Z=KW(n);return jW(Z)||!n.Q9?null:g.YW(n.Q9.N.videoInfos,function(F){return Z.V(F)})}; hAn=function(){var n=!1;try{n=!!window.sessionStorage.getItem("session_logininfo")}catch(Z){n=!0}return(g.BT("INNERTUBE_CLIENT_NAME")==="WEB"||g.BT("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&n}; hqp=function(){var n;return(n=g.z5("yt-player-performance-cap-active-set"))!=null?n:[]}; Hp=function(n){n.gW();n.VU.isSeeking();n.L&&st7(n.L,n.videoTrack.bY);mx(n);return c6T(n.VU)}; UpT=function(n){for(var Z=n.N,F=[],y=0;y0&&R4(n.C(),F)}; GN=function(n){n=hd(n);if(n.gel){var Z=n.gel;Z.gelInfos||(Z.gelInfos={});Z.gelTicks||(Z.gelTicks={})}else n.gel={gelTicks:{},gelInfos:{}};return n.gel}; mE8=function(n){var Z=n.N;n.type===3&&n.w5.stop();n.api.removeEventListener("appresize",n.Ns);n.J||(n.env.j("player_tooltip_data_title_killswitch")?Z.setAttribute("title",n.T):Z.setAttribute("data-tooltip-title",n.T));n.T="";n.N=null;n.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});n.wrapper.style.width=""}; R7=function(n){this.value=n}; aA8=function(n,Z,F,y){F=F===void 0?!0:F;var l;return g.A(function(m){if(m.N==1)return g.x(m,dK(Z),2);l=m.X;return m.return(g.$5(l,["LogsRequestsStore"],{mode:"readwrite",Or:!0},function(a){var D=a.objectStore("LogsRequestsStore");return D.get(n).then(function(p){return p?(p.status="NEW",F&&(p.sendCount+=1),y!==void 0&&(p.options.compress=y),g.nE(D,p).then(function(){return p})):g.vX.resolve(void 0)})}))})}; Kjn=function(){return"av.default_js".includes("ima_html5_sdk")?{qK:"ima",AT:null}:"av.default_js".includes("ima_native_sdk")?{qK:"nima",AT:null}:"av.default_js".includes("admob-native-video-javascript")?{qK:"an",AT:null}:"youtube.player.web_20251102_21_RC00".includes("cast_js_sdk")?{qK:"cast",AT:ed()}:"youtube.player.web_20251102_21_RC00".includes("youtube.player.web")?{qK:"yw",AT:ed()}:"youtube.player.web_20251102_21_RC00".includes("outstream_web_client")?{qK:"out",AT:ed()}:"youtube.player.web_20251102_21_RC00".includes("drx_rewarded_web")? {qK:"r",AT:ed()}:"youtube.player.web_20251102_21_RC00".includes("gam_native_web_video")?{qK:"n",AT:ed()}:"youtube.player.web_20251102_21_RC00".includes("admob_interstitial_video")?{qK:"int",AT:ed()}:{qK:"j",AT:null}}; ar7=function(n){if(n.Pr){var Z;if((Z=n.videoData.nP)==null?0:Z.qT)n.Pr=!1;else if(g.HJ(n.videoData))n.Pr=!1;else{Z="ss";var F=0,y;((y=n.videoData.N)==null?0:y.isManifestless)&&n.videoData.aY&&!A2(n)&&(Z="mss",F=n.videoData.aY);(n.videoData.sV?n.j("html5_prioritize_windowed_st_start_seconds"):n.j("html5_prioritize_st_start_seconds"))&&!F&&n.videoData.AL&&(Z="stss",F=n.videoData.AL);!F&&I3K(n)&&(F=n.videoData.liveUtcStartSeconds||n.videoData.aY,Z="utc",F=n.xA()-n.Xh(n.xA())+F);!F&&n.videoData.t2()&& n.videoData.AL&&(Z="stss",F=n.videoData.AL);y={};if(F){if(F>n.xA()||F1;)n.N.pop().dispose();eC(n.N[0],"100%");n.N[0].startTime=0;n.N[0].title=""}; mJ3=function(n){var Z="";g.I5(n.childNodes,function(F){Z+=F.nodeValue}); return Z}; nZ=function(n,Z,F,y,l){g.I.call(this);var m=this;this.X=n;this.T=Z;this.ES=F;this.context=l;this.N=new Map;y.get().addListener(this);this.addOnDisposeCallback(function(){y.CR()||y.get().removeListener(m)})}; tk=function(n,Z,F){var y=new lY(F);if(!mD(y,n))return!1;y=i6(y);if(!Wy(y,Z))return!1;for(n=0;Z;)Z>>>=8,n++;Z=y.start+y.pos;var l=ar(y,!0);y=n+(y.start+y.pos-Z)+l;y=y>9?HNT(y-9,8):HNT(y-2,1);n=Z-n;F.setUint8(n++,236);for(Z=0;Z0||Z>127;)n.N.push(Z&127|128),Z=(Z>>>7|F<<25)>>>0,F>>>=7;n.N.push(Z)}; qJU=function(){g.Tv.apply(this,arguments);this.qv=(this.Xz=g.R6(this.api.B()))&&(this.api.B().X||EQ()||hS());this.FT=48;this.mV=69;this.Ip=this.Uj=null;this.qO=[];this.KQ=this.Tj=this.nQ=this.Lf=this.WI=null;this.SB=[];this.contextMenu=this.sf=this.overflowButton=this.Yk=this.Of=this.searchButton=this.copyLinkButton=this.shareButton=this.KD=this.wJ=this.title=this.channelAvatar=this.EO=this.tooltip=null;this.gx=!1;this.BA=this.Cw=this.KV=this.nV=null;this.mbu=this.u6=this.WQ=!1}; wt3=function(n,Z){var F=mE(rT,Z);F||(F=bj(n,Z,"h",-1));return F}; Odi=function(n){n.audioTrack.Pr=[];n.videoTrack.Pr=[]}; gYT=function(n,Z,F,y,l,m,a,D){jU()&&F.token&&(n=TQ(n,{ctt:F.token,cttype:F.O6,mdx_environment:F.mdxEnvironment}));y.j("net_pings_low_priority")&&(Z||(Z={}),Z.priority="low");m||D&&y.j("nwl_skip_retry")?(Z==null?Z={}:jf8(n,y.j("html5_assert_cpn_with_regex")),a?SM().sendAndWrite(n,Z):SM().sendThenWrite(n,Z,D)):Z?(jf8(n,y.j("html5_assert_cpn_with_regex")),bf7(n,Z)):g.yM(n,l)}; ZD=function(n){n=n[FY];return n instanceof yy?n:null}; TYP=function(n){n.VQ>8?IC(n,n.I7):n.VQ>0&&(n.XX[n.pending++]=n.I7);n.I7=0;n.VQ=0}; Vb=function(n,Z){return DTU(n.X,Z===void 0?!0:Z)}; J4K=function(n){g.R.call(this,{U:"div",K:"ytp-title-channel",D:[{U:"div",K:"ytp-title-beacon"},{U:"a",K:"ytp-title-channel-logo",Z:{href:"{{channelLink}}",target:n.B().Pr,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{U:"div",K:"ytp-title-expanded-overlay",Z:{"aria-hidden":"{{flyoutUnfocusable}}"},D:[{U:"div",K:"ytp-title-expanded-heading",D:[{U:"div",K:"ytp-title-expanded-title",D:[{U:"a",E8:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:n.B().Pr,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{U:"div",K:"ytp-title-expanded-subtitle",E8:"{{expandedSubtitle}}",Z:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var Z=this;this.api=n;this.channel=this.Vg("ytp-title-channel");this.X=this.Vg("ytp-title-channel-logo");this.channelName=this.Vg("ytp-title-expanded-title");this.S=this.Vg("ytp-title-expanded-overlay");this.T=this.N=this.subscribeButton=null;this.V=!1;n.createClientVe(this.X,this,36925);n.createClientVe(this.channelName,this, 37220);g.R6(this.api.B())&&o0P(this);this.G(n,"videodatachange",this.g5);this.G(n,"videoplayerreset",this.g5);this.G(this.channelName,"click",function(F){Z.api.logClick(Z.channelName);g.SP(window,PdT(Z));F.preventDefault()}); this.G(this.X,"click",this.bJg);this.g5()}; zg=function(n,Z){this.breakDurationMs=n;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=Z||""}; Du=function(n,Z,F){if(F===void 0||!F){F=g.Y(n.yg);for(var y=F.next();!y.done;y=F.next()){y=y.value;if(Z>=y.start&&Z<=y.end)return;if(Z===y.end+1){y.end+=1;return}}n.yg.push(new QUT(Z))}}; sc=function(n,Z,F){n=""+n+(Z>49?"p60":Z>32?"p48":"");Z=v9()[n];if(Z!=null&&Z>0)return Z;Z=e1.get(n);if(Z!=null&&Z>0)return Z;F=F==null?void 0:F.get(n);return F!=null&&F>0?F:8192}; Ze8=function(n,Z){if(!n.isSeeking&&n.Ns!==Z&&!isNaN(n.L)){n.Ns=Z;var F=n.C?n.Pr:n.V.Um(Z);(F!==n.Pr||n.C)&&m$Y(n,F,Z)}}; YJ3=function(n,Z,F){var y=n.tG.get().getCurrentTimeSec(1,!1);n.U8.get().W.B().eG()&&QA(n.uY.get(),"sdai","onopp.1;evt."+F.event+";start."+F.startSecs.toFixed(3)+";d."+F.iy.toFixed(3));EY(n.X.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var l=n.T.get(),m=Z.adPlacementRenderer.renderer.adBreakServiceRenderer,a=Z.contentCpn,D=Z.adPlacementRenderer.adSlotLoggingData;JA(n.U8.get());var p=n.uY;var L=l.U8.get();L=g.jf(L.W.B().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var q=l.U8.get();var w=g.jf(q.W.B().experiments,"min_prefetch_offset_sec_for_livestream_optimization");q=F.startSecs*1E3;q={zO:new Ca(q,q+F.iy*1E3),mM:!1,cueProcessedMs:y*1E3};var T=F.startSecs+F.iy;if(y===0)q.Pt=new Ca(0,T*1E3);else{w=F.startSecs-w;var P=w-y;q.Pt=P<=0?new Ca(w*1E3,T*1E3):new Ca(Math.floor(y+Math.random()*Math.min(P,L))*1E3,T*1E3)}m=mg(l,m,a,q,D,[new Ug(F)]);SR(l.U8.get())&&QA(p.get(),"abrsm","cpi."+F.identifier+";cps."+F.startSecs+";cpd."+F.iy+";cts."+y+";rbf."+q.Pt.start);p.get().W.S3(F.startSecs- y,q.Pt.start/1E3-y);return[m]})}; yhP=function(n){n.layout.renderingContent?(n=n.nR.get(),n=tI(n,1).Ca/1E3):n=o5(n.layout.clientMetadata,"metadata_type_video_length_seconds");return n}; M3=function(n,Z,F,y,l,m){m=m===void 0?!1:m;g.I.call(this);this.element=n;this.L=Z;this.initData=F;this.N=y;this.X=l;this.Pr=m;this.sessionId="";this.J=this.C=this.T=this.S=null;this.V=new g.IS(this);g.S(this,this.V);Kfj(this)}; Fq=function(n){var Z;(Z=n.Wa)==null||Z.yP(!n.W.isFullscreen()&&!n.W.isMinimized()&&n.W.getPresentingPlayerType()!==2&&n.W.B().showMiniplayerButton)}; g.d=function(n,Z){n.prototype=SJT(Z.prototype);n.prototype.constructor=n;if(Xe)Xe(n,Z);else for(var F in Z)if(F!="prototype")if(Object.defineProperties){var y=Object.getOwnPropertyDescriptor(Z,F);y&&Object.defineProperty(n,F,y)}else n[F]=Z[F];n.yG=Z.prototype}; zJ3=function(n,Z){this.X=this.N=0;this.N=Z.x-n.x;this.X=Z.y-n.y}; g.E9=function(n,Z){Z=Z===void 0?!1:Z;return ZM()&&n.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!Z&&n.canPlayType(Nt(),"application/x-mpegURL")?!0:!1}; jUo=function(n){var Z={};Z[n.status]=Iy(n)?IZ3(n,"."):n.V.join(".");return Z}; UE8=function(n){return n.W.B().j("web_player_autonav_use_server_provided_state")&&Js(n.dM())}; pd=function(n,Z){return function(F){return Z(F)?F[n]:void 0}}; tK=function(n){if(!Z)var Z=window.location.href;var F=g.Gj(n)[1]||null,y=g.g1(n);F&&y?(n=g.Gj(n),Z=g.Gj(Z),n=n[3]==Z[3]&&n[1]==Z[1]&&n[4]==Z[4]):n=y?g.g1(Z)===y&&(Number(g.Gj(Z)[4]||null)||null)===(Number(g.Gj(n)[4]||null)||null):!0;return n}; Kq=function(n){if(n.trendingOfferEntityKey){var Z=g.YO.getState().entities;if(Z=S0(Z,"trendingOfferEntity",n.trendingOfferEntityKey)){var F,y,l;Z.encodedSkuId!==((F=n.N)==null?void 0:(y=F.bannerData)==null?void 0:(l=y.itemData)==null?void 0:l.encodedOfferSkuId)?yL(n):(n.T.update({trendingOffer:Z.shortLabel+" \u2022 "+Z.countLabel}),n.T.show(),n.banner.update({vendor:uD7(n)}))}else yL(n)}else yL(n)}; NYU=function(n,Z){var F=!!n.N;n.N=Z;n.N?(F||(n.events.G(n.api,"videodatachange",function(){NYU(n,n.api.LF())}),n.events.G(n.api,"progresssync",n.onProgress),n.events.G(n.api,"appresize",n.V)),n.frameIndex=NaN,gv8(n),n.fade.show(200)):(F&&g.xU(n.events),n.fade.hide(),n.fade.stop())}; h17=function(n,Z){n.index=g.mk(Z,0,n.length-1);n.startSeconds=0}; g.l$=function(n,Z,F){SFi(n,Z,F===void 0?null:F)}; n5=function(n){return n.vr==="9"||n.vr==="("||n.vr==="9h"||n.vr==="(h"}; wW=function(n){var Z=0;n=g.Y(n.questions);for(var F=n.next();!F.done;F=n.next())if(F=F.value,F=g.e(F,To)||g.e(F,wm)){var y=void 0;Z+=((y=F.surveyAdQuestionCommon)==null?void 0:y.durationMilliseconds)||0}return Z}; g.QL=function(){var n=cQp();if(!n)return{};try{var Z=n.get("yt-player-lv");return JSON.parse(Z||"{}")}catch(F){return{}}}; D0=function(n,Z){zv("_start",n,Z)}; yIK=function(n){if(!n.isInitialized){n.isInitialized=!0;try{var Z=$1(),F=B6(),y=yp();WK=Z;F.T=79463069;n.X!=="o"&&(ywY=NmQ(G5));if(H6Q()){Yq.N.Rv=0;Yq.N.OF=$1()-Z;var l=wQK(),m=xW(Gf);m.X=l;qHi(m,function(){up()})?Yq.done||(KWo(),aq(m.N.N,n),j7()):y.T?up():j7()}else gr=!0}catch(a){throw rT.reset(),a; }}}; mmo=function(n){vk.call(this,n);var Z=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"heartbeatRequest",function(F){if(Z.freePreviewUsageDetails.length||Z.freePreviewWatchedDuration!==null)F.heartbeatRequestParams||(F.heartbeatRequestParams={}),F.heartbeatRequestParams.unpluggedParams||(F.heartbeatRequestParams.unpluggedParams={}),Z.freePreviewUsageDetails.length>0?F.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= Z.freePreviewUsageDetails:F.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+Z.freePreviewWatchedDuration}}); RS(n,"setFreePreviewWatchedDuration",function(F){Z.freePreviewWatchedDuration=F}); RS(n,"setFreePreviewUsageDetails",function(F){Z.freePreviewUsageDetails=F})}; q5=function(n,Z){try{navigator.mediaSession.setActionHandler(n,Z)}catch(F){}}; Dmf=function(n){vk.call(this,n);RS(n,"isEmbedsShortsMode",function(){return n.isEmbedsShortsMode()}); RS(n,"getReelItemWatchResponse",function(){var Z,F;return(F=(Z=n.getVideoData(1))==null?void 0:Z.getReelItemWatchResponse())!=null?F:null})}; Vy=function(n,Z,F){n.Y.lY&&(n.jx=Z,Z.muted||Xr(n,!1),F&&n.Y.storeUserVolume&&!n.Y.h2&&(F={volume:Math.floor(Z.volume),muted:Z.muted},F.unstorable||(g.Oh("yt-player-volume",F),g.Oh("yt-player-volume",F,2592E3))),Vo(n),F=g.z$&&n.mediaElement&&!n.mediaElement.cE(),n.Y.h2&&!F||n.JG.SV("onVolumeChange",{muted:Z.muted,volume:Z.volume,unstorable:!n.Y.storeUserVolume}))}; UO=function(n,Z,F){return yVQ(n,Z,F,2048)}; p9=function(n,Z,F,y,l,m){g.Xu.call(this);var a=this;this.target=n;this.api=Z;this.Nl=F;this.X=0;this.C=!1;this.V=new g.e_(NaN,NaN);this.N=new g.IS(this);this.Wr=this.T=this.J=null;g.S(this,this.N);Z=l||m?g.jf(this.api.B().experiments,"web_player_touch_idle_wait_time_ms",4E3):g.jf(this.api.B().experiments,"web_player_mouse_idle_wait_time_ms",3E3);this.Pr=new g.e7(function(){Qm(a,1,!1)},Z,this); g.S(this,this.Pr);this.Ns=new g.e7(function(){Qm(a,2,!1)},Z,this); g.S(this,this.Ns);this.Tx=new g.e7(function(){Qm(a,2048,!1)},Z,this); g.S(this,this.Tx);this.w5=new g.e7(function(){Qm(a,512,!1)},Z,this); g.S(this,this.w5);this.zx=3E3;l||(this.T=this.N.G(n,"mouseover",this.ZA),this.N.G(n,"mousemove",this.M6),this.N.G(n,"mouseleave",this.y2x));this.api.j("web_player_enable_fullscreen_grid_components")&&this.N.G(n,"wheel",this.RHG,this,!0);X8?this.N.G(n,"keypress",this.q8Y):this.N.G(n,"focusin",this.mK);this.S=this.N.G(n,"mousedown",this.rp);this.L=this.N.G(n,"touchstart",this.eA,void 0,!0);Qm(this,640,!0)}; MF=function(n,Z,F){(n=n.N[Z])&&n.T(F)}; Z7o=function(n,Z){if(n.S){var F=Z-n.S;if(F<6E4){if(F>1E3){var y=n.interruptions;y.push(Math.ceil(F));y.sort(function(l,m){return m-l}); y.length>16&&y.pop()}n.Wr+=F}}n.S=Z}; xtj=function(n,Z){var F,y,l,m,a;return g.A(function(D){switch(D.N){case 1:F=void 0,y=0,l={};case 2:if(!(y<5)){D.ST(4);break}if(!(y>0)){D.ST(5);break}l.iO=1E3*Math.pow(2,y-1)+Math.random()*1E3;return g.x(D,new Promise(function(p){return function(L){g.HX(0,function(){L(void 0)},p.iO)}}(l)),5); case 5:return g.RX(D,7),g.x(D,Q5(n,Z),9);case 9:return m=D.X,D.return(fvP(m));case 7:F=a=g.d4(D),a instanceof Error&&g.yi(a);case 8:y++;l={iO:void 0};D.ST(2);break;case 4:throw F;}})}; V2=function(n,Z,F,y,l){g.R.call(this,{U:"div",K:"ytp-horizonchart"});this.C=Z;this.sampleCount=F;this.V=y;this.S=l;this.index=0;this.heightPx=-1;this.T=this.X=null;this.N=Math.round(n/F);this.element.style.width=this.N*this.sampleCount+"px";this.element.style.height=this.C+"em"}; E0p=function(n){var Z=n.timing.W9();Z.shost=qv(3,n.SH.lU);return Z}; HK=function(n){for(var Z=0,F=g.Y(n.X),y=F.next();!y.done;y=F.next())Z+=nvU(y.value.info);return Z+=z2j(n.T)}; Cp=function(n){this.value=n}; OS8=function(n,Z,F,y){xHj(n,Z,F,y,function(){qz(n,n.CP+1)})}; foP=function(n){return n.yb()&&!n.f_}; c4o=function(n,Z,F,y){if(!F.playerVars)return new C("No playerVars available in AdIntroRenderer.");var l=jy(F.playerVars);l.autoplay="1";return function(m){var a=m.slotId;m=y(m);a=$e(n.X.get(),"LAYOUT_TYPE_MEDIA",a);var D={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",Gx:"adapter"};return{Hm:{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",Nd:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Gx:"adapter", clientMetadata:new lb([new Cp({}),new K7(Z),new L7({current:null}),new rc(l)]),lN:m(D)},Km:[new jp(n.N,a,["error"])],dc:[],f3:[],n3:[]}}}; IaU=function(n,Z){Z instanceof Dt&&(n.aY=Z);var F=new Set(Z.AY(n.UG()));F=g.Y(F);for(var y=F.next();!y.done;y=F.next()){var l=y.value;if(!(y=!(Z instanceof LL))){y=n.X;var m=y.eT.t2,a=JN(y.videoInfos,m);m=Vlo(y,l,m);var D=a.includes(l);!y.Ae.k_||m||D||y.loader.Xp("sabrcpf",{fid:""+l,vfids:""+a.join("."),said:y.L||""});y=m||a.includes(l)}if(y&&(y=Z.Dr(l,n.UG()),a=n.policy.KF&&PM(y[0].bY.info.mimeType),Z.PH(l,n.UG())))for(l=Z.T6(l,n.UG()),l=g.Y(l),m=l.next();!m.done;m=l.next())if(m=m.value,n.policy.T&& Z instanceof LL&&n.loader.Xp("omblss",{s:m.info.bd()}),a)D=n.timing,D.Ns||(D.Ns=(0,g.tP)(),g.gF("fcb_r",D.Ns,D.N)),D=n,D.videoData.t2()&&D.C&&jF(D.C)===jF(g.TL(m.info.bY.info,D.eT.t2))&&D.mQ.publish("sabrCaptionsDataLoaded",m,D.MC.bind(D));else{D=m.info.bY.info.BE();var p=m.info.bY;if(D){var L=void 0;var q=n.X,w=(L=Z.yW(n.UG()))==null?void 0:L.token;q.J&&p!==q.S?L=!0:(q.J=!1,p!==q.S&&(q.S=p,q.vz(p,q.audioTrack,w)),L=!1);if(L)continue}else L=void 0,v0i(n.X,p,(L=Z.yW(n.UG()))==null?void 0:L.token); L=D?n.audioTrack:n.videoTrack;Z instanceof LL&&(L.C=!1,Z instanceof LL&&(D?uef(n.timing):mh8(n.timing)));try{HnK(L,y,m)}catch(T){m=oG(T),n.loader.handleError(m.errorCode,m.details,m.severity),L.gW(),n.pU(!1,"pushSlice"),mx(n.loader)}}}}; Ld=function(n,Z,F){return n.protocol+"://i1.ytimg.com/vi/"+Z+"/"+(F||"hqdefault.jpg")}; qd=function(n,Z,F,y,l){return Z>=400?(n.lastError="net.badstatus",!0):(l===void 0?0:l)?(n.lastError="ump.spsrejectfailure",!0):F||y!==void 0&&y?!1:(n.lastError=Z===204?"net.nocontent":"net.connect",!0)}; IAp=function(){this.next=this.scope=this.N=null}; Y7=function(n,Z,F){return n+F*(Z-n)}; ek=function(n){this.AG=UO(n)}; fAQ=function(n){n.created!==n.loaded&&wU("Created and loaded are out of sync")}; A47=function(n,Z){var F=n.player.B(),y,l=(y=n.player.getVideoData(1))==null?void 0:y.oauthToken;return g.Cv(F,l).then(function(m){if(m&&jU()){var a=XE();zl(a,m)}return g.jA(n.player.ZE(a),Z,"/youtubei/v1/player/ad_break").then(function(D){return D})})}; g.gL=function(){return{innertubeApiKey:g.BT("INNERTUBE_API_KEY"),innertubeApiVersion:g.BT("INNERTUBE_API_VERSION"),v6:g.BT("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),l_:g.BT("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),mx:g.BT("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.BT("INNERTUBE_CONTEXT_CLIENT_VERSION"),Jo:g.BT("INNERTUBE_CONTEXT_HL"),rH:g.BT("INNERTUBE_CONTEXT_GL"),NV:g.BT("INNERTUBE_HOST_OVERRIDE")||"",Xq:!!g.BT("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),KQi:!!g.BT("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.BT("SERIALIZED_CLIENT_CONFIG_DATA")}}; wB=function(n,Z,F,y){CW.call(this,n,{U:"div",K:"ytp-video-interstitial-buttoned-centered-layout",Z:{tabindex:"0"},D:[{U:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content",D:[{U:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{U:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",D:[{U:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{U:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {U:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{U:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{U:"div",K:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",Z,F,y);this.X=null;this.V=this.Vg("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.T=new rK;g.S(this,this.T);this.hide()}; Tm=function(n,Z,F){this.instance=n;this.N=F;this.exports=this.instance.exports;Z.wasi_snapshot_preview1.exports=this.exports;n=Math.floor(Math.random()*256);Z=Math.floor(Math.random()*256);F=0;try{F=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,F,16)).fill(n);if(this.exports.sentinel(F,16,Z)!==Z*16%256)throw"wasm.wm.vi";for(var y=new Uint8Array(this.exports.memory.buffer,F,16),l=0;l<16;l++)if(y[l]!==(n+Z)%256)throw"wasm.wm.vi"+l;}finally{F!==0&&this.exports.free(F)}}; oT=function(n,Z){pt.call(this,n,2,Z)}; B1U=function(n){var Z,F;return g.A(function(y){return y.N==1?g.x(y,Kv(n),2):y.N!=3?(Z=y.X,F=void 0,g.x(y,g.$5(Z,["coldConfigStore"],{mode:"readwrite",Or:!0},function(l){return g.Ly(l.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(m){F=m.getValue()})}),3)):y.return(F)})}; fp=function(n,Z,F,y){return N6(n,(n.state|Z)&~F,null,y===void 0?null:y)}; U6=function(n){return n.w5==="adunit"||n.playerStyle==="gvn"}; g0p=function(n,Z,F){g.R.call(this,{U:"div",s8:["ytp-info-panel-action-item"],D:[{U:"div",K:"ytp-info-panel-action-item-disclaimer",E8:"{{disclaimer}}"},{U:"a",s8:["ytp-info-panel-action-item-button","ytp-button"],Z:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},D:[{U:"div",K:"ytp-info-panel-action-item-icon",E8:"{{icon}}"},{U:"div",K:"ytp-info-panel-action-item-label",E8:"{{label}}"}]}]});this.W=n;this.X=F;this.disclaimer=this.Vg("ytp-info-panel-action-item-disclaimer");this.button= this.Vg("ytp-info-panel-action-item-button");this.uy=!1;this.W.createServerVe(this.element,this,!0);this.listen("click",this.onClick);n="";F=g.e(Z==null?void 0:Z.onTap,jk);var y=g.e(F,g.MY);this.uy=!1;y?(n=y.url||"",n.startsWith("//")&&(n="https:"+n),this.uy=!0,g.Hi(this.button,g.Aw(n))):(y=g.e(F,WjT))&&!this.X?((n=y.phoneNumbers)&&n.length>0?(n="sms:"+n[0],y.messageText&&(n+="?&body="+encodeURI(y.messageText))):n="",this.uy=!0,g.Hi(this.button,g.Aw(n,[r4U]))):(F=g.e(F,xE8))&&!this.X&&(n=F.phoneNumber? "tel:"+F.phoneNumber:"",this.uy=!0,g.Hi(this.button,g.Aw(n,[GFf])));this.W.j("embeds_enable_info_panel_dismissal")&&!n&&(F=g.e(Z==null?void 0:Z.onTap,jk),y=g.e(F,R1T))&&(this.uy=!0,this.N=F,this.feedbackToken=y.feedbackToken);var l;if(F=(l=Z.disclaimerText)==null?void 0:l.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var m,a;this.update({label:(m=Z.bodyText)==null?void 0:m.content,icon:this.W.j("embeds_enable_info_panel_dismissal")?Vi3((a=Z.icon)== null?void 0:a.iconType):WE(),disclaimer:F})}else{this.disclaimer.style.display="none";var D,p;this.update({label:(D=Z.bodyText)==null?void 0:D.content,icon:this.W.j("embeds_enable_info_panel_dismissal")?Vi3((p=Z.icon)==null?void 0:p.iconType):WE()})}this.W.setTrackingParams(this.element,Z.trackingParams||null);this.uy&&(this.T={externalLinkData:{url:n}})}; UL=function(n,Z){if(!Z.N.N)return n.S?new vL(0,360,!1,"b"):IK;for(var F=!1,y=!1,l=g.Y(Z.N.videoInfos),m=l.next();!m.done;m=l.next())Fa(m.value)?F=!0:y=!0;F=F&&y;y=0;l=g.jf(n.Y.experiments,"html5_performance_cap_floor");l=n.Y.X?240:l;Z=g.Y(Z.N.videoInfos);for(m=Z.next();!m.done;m=Z.next()){var a=m.value;if(!F||!Fa(a))if(m=sc(a.vr,a.video.fps,n.T),a=a.video.qualityOrdinal,Math.max(m,l)>=a){y=a;break}}return new vL(0,y,!1,"b")}; Ph=function(n){this.bv=3;this.v4=n;this.defaultValue=!1;this.A$="bool"}; iSP=function(n,Z){if(Z>=n.N.length)return n.C;for(var F=0,y=0;y=y&&D.target&&D.target.AD<=l&&(n.N.removeCueRange(a),n.S.delete(a))}y=Z;l=F;m=[];a=g.Y(n.X);for(D=a.next();!D.done;D=a.next())if(D=D.value,D.I0>=y&&D.AD<=l){var p=n;p.J===D&&Wc(p);kS(p,D)&&p.app.sO()}else m.push(D);n.X=m;y=SE(n,Z/1E3);Z=y.Bf;y=y.jK;Z&&(y*=1E3,oh3(n,Z,y,Z.AD===Z.I0+Z.durationMs?Z.I0+y:Z.AD));(Z=SE(n,F/1E3).Bf)&& uu(n,"Invalid clearEndTimeMs="+F+" that falls during playback={timelinePlaybackId="+(Z.sS+" video_id="+Z.playerVars.video_id+" durationMs="+Z.durationMs+" enterTimeMs="+Z.I0+" parentReturnTimeMs="+Z.AD+"}.Child playbacks can only have duration updated not their start."))}; mH=function(n,Z){this.info=n;this.X=Z;this.N=null;this.V=this.T=-1;this.timestampOffset=0;this.isLocked=this.C=!1;this.S=this.info.bY.Qk()&&!this.info.N}; ien=function(n,Z){cGj(n.N);var F=n.N.V;if(F)return $h(n,"return"in F?F["return"]:function(y){return{value:y,done:!0}},Z,n.N.return); n.N.return(Z);return Cj(n)}; Cde=function(n,Z,F){if(!Z)return n.length>=1?n[n.length-1]:null;for(var y=g.Y(n),l=y.next();!l.done;l=y.next())if(l=l.value,l.width&&l.height&&(F&&l.width>=Z||!F&&l.height>=Z))return l;for(Z=n.length-1;Z>=0;Z--)if(F&&n[Z].width||!F&&n[Z].height)return n[Z];return n[0]}; teT=function(n){var Z,F,y,l;return g.A(function(m){switch(m.N){case 1:return n.N.N&&typeof((Z=navigator.mediaCapabilities)==null?void 0:Z.decodingInfo)==="function"?g.x(m,Promise.resolve(),2):m.return(Promise.resolve());case 2:F=g.Y(n.N.videoInfos),y=F.next();case 3:if(y.done){m.ST(0);break}l=y.value;return g.x(m,YIi(l),4);case 4:y=F.next(),m.ST(3)}})}; IYP=function(n){return n.vr==="("||n.vr==="(h"||n.vr==="H"||KD&&n.vr==="1e"}; fZ=function(n,Z,F){return g.gU(zv)(n,Z,F)}; JC=function(n,Z){var F=!1;if(n.Sf){var y=n.Sf.element;y.value=Z;y.select();try{F=document.execCommand("copy")}catch(l){}}F?n.Fp.jG():(n.GJ.setContent(Z,"text"),g.$H(n.Fp,n.D2),Sip(n.GJ.element),n.Sf&&(n.Sf=null,SkQ(n)));return F}; LoY=function(n,Z){return fn(n,Z,function(F){return F.N})}; usY=function(n,Z,F){var y=mE(rT,Z);y||(y=bj(n,Z,"n",F.opt_nativeTime||-1));return y}; SE=function(n,Z){var F=0;n=g.Y(n.X);for(var y=n.next();!y.done;y=n.next()){y=y.value;var l=y.I0/1E3+F,m=l+y.durationMs/1E3;if(l>Z)break;if(m>Z)return{Bf:y,jK:Z-l};F=m-y.AD/1E3}return{Bf:null,jK:Z-F}}; GJn=function(n,Z,F,y,l){l=l?l:MT(n.X.get(),"SLOT_TYPE_IN_PLAYER");F=new Sp(n.N,F);var m=[new nz(n.N,l)];n=[new ZX(n.N,Z),new lB(n.N,l)];return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:m,slotExpirationTriggers:n,Gx:"core",clientMetadata:new lb([new mW(y({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gx:"core",slotEntryTrigger:F,slotFulfillmentTriggers:m,slotExpirationTriggers:n}))])}}; Va=function(n,Z){this.C=Z===void 0?!1:Z;this.N=this.X=this.T=this.startTimestamp=0;this.V=!1;this.S=Math.ceil(n/1E3)}; bSY=function(n,Z){var F;Z===1?F=n.W.j("delhi_modern_web_player_icons")?{U:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:bt():F=n.X;n.w5=Z;if(n.W.j("delhi_modern_web_player_icons"))n.X.Vg("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-Z+") translate(-18,-12)")),n.X.Vg("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(n.J-Z+") translate(-22, -12)"));else{for(var y=20*Z,l=0;l0&&(n[Z]=Math.floor(F*1E3))}; HMQ=function(n,Z){return n===Z}; g.ZI=function(n){return aP(n)&&n.G6?(n={},n.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",n):n.X&&n.X.by||null}; g.NB=function(n){return n.translationLanguage?n.translationLanguage.languageCode:n.languageCode}; dX=function(n){return n.D4[n.D4.length-1].type===4}; C$8=function(n,Z,F){(0,g.I5)(n.T,function(y){var l=n.N;if(!y.N&&(y.T(Z,F),y.V())){y.N=!0;var m=y.X(),a=new i_;a.add("id","av-js");a.add("type","verif");a.add("vtype",y.S);y=xW(Pbo);a.add("i",y.N++);a.add("adk",l);g6(a,m);l=new kF8(a);izY(l)}})}; e1f=function(n,Z){var F=Z.getAudioTrack();return F.id!=="und"?g.I$(n,function(y){var l;return((l=y.J2)==null?void 0:l.name)===F.getLanguageInfo().name}):n}; XXp=function(){return g.tv("iemobile")||g.tv("windows phone")&&g.tv("edge")}; Tnn=function(n){n=g.B_(n,1886614376);for(var Z=g.Y(n),F=Z.next();!F.done;F=Z.next());return g.Yn(n,function(y){return g8o(y)})}; HSf=function(){this.mS=typeof AbortController!=="undefined"}; aP=function(n){return sm()?!mm(n):Fx()?!(!n.G6||!n.j("html5_enable_safari_fairplay")&&ZM()):!1}; GYi=function(n,Z){if(n.policy.useUmp&&Z.CR())return!1;try{var F=Z.info.D4[0].bY,y=F.info.video?n.videoTrack:n.audioTrack;if(n.eT.isManifestless&&y){n.C=0;y.C&&(Z.CR(),Z.isComplete()||Z.PH(),y.C=!1);Z.bx()&&n.loader.QV.Oj(1,Z.bx());var l=Z.Rp(),m=Z.A9();tA(n.eT,l,m)}if(Z.info.fO()&&!lZ(Z.info))for(var a=g.Y(Z.T6()),D=a.next();!D.done;D=a.next())QjT(y,D.value);for(n.loader.getCurrentTime();y.X.length&&y.X[0].state===4;){var p=y.X.shift();du7(y,p);y.jT=p.RF()}y.X.length&&du7(y,y.X[0]);var L=!!dg(y); L&&Z instanceof i$&&(F.info.BE()?uef(n.timing):mh8(n.timing));return L}catch(q){Z=Z.TQ();Z.origin="hrhs";a:{n=n.loader;F=q;if(F instanceof Error){Z.msg||(Z.msg=""+F.message);Z.name||(Z.name=""+F.name);if(F instanceof g.FV&&F.args)for(y=g.Y(Object.entries(F.args)),l=y.next();!l.done;l=y.next())m=g.Y(l.value),l=m.next().value,m=m.next().value,Z["arg"+l]=""+m;g.yi(F);if(F.level==="WARNING"){n.mQ.SU(Z);break a}}n.handleError("fmt.unplayable",Z,1)}return!1}}; g.Qf=function(n){return n.XY.get("annotations_module")}; xC=function(n,Z,F,y,l,m,a,D){g.I.call(this);var p=this;this.loader=n;this.Ae=Z;this.videoTrack=F;this.audioTrack=y;this.eT=l;this.Ns=m;this.isAudioOnly=a;this.L=D;this.X=IK;this.Wr=!1;this.logger=new g.hL("sabr");this.Pr=this.J=this.w5=this.Tx=!1;this.videoInfos=this.C=this.Ns.videoInfos;this.T=this.zx=this.Ns.N;this.N=new Re(Z,m,function(L,q){p.loader.Xp(L,q)}); this.isAudioOnly&&v0i(this,this.eT.N["0"])}; PdT=function(n){var Z=n.api.B(),F=n.api.getVideoData(),y=g.Kp(Z)+F.r5;g.tG(F)&&(y="https://music.youtube.com"+F.r5);if(!g.R6(Z))return y;Z={};g.dc(n.api,"addEmbedsConversionTrackingParams",[Z]);return g.pQ(y,Z)}; dEU=function(n,Z,F){if(n.forEach&&typeof n.forEach=="function")n.forEach(Z,F);else if(g.W6(n)||typeof n==="string")Array.prototype.forEach.call(n,Z,F);else for(var y=yAi(n),l=ZZK(n),m=l.length,a=0;am.width)Z-=m.width,Z-=nb(n),y++;else break;return y===F?F-1:y}; Mlp=function(n,Z,F,y){n1.call(this,"invideo-overlay",n,Z,F,y);this.interactionLoggingClientData=y}; zZe=function(n,Z){var F=g.f_(0);F&&iT7(n.client,F,Z,void 0)}; DNi=function(n,Z,F,y,l){if(!n.policy.C||!n.policy.X)if(l&&y){var m=y.q1,a=l.aE(m);m.event==="predictStart"&&(n.Tx=Z);n.Xp("sdai",{onqevt:m.event,sq:Z,mt:F,gab:a,cst:m.startSecs,cueid:n.policy.SI&&(a||m.event==="start")?m.identifier:void 0},!0);if(a)m.event!=="predictStart"?(m.event==="start"&&n.Tx===Z-1&&n.Xp("sdai",{gabonstart:Z}),Fyp(n,Z,F,y,l)):n.policy.HE?jL(n,3,"predict"):(Z+=Math.max(Math.ceil(-m.N/5E3),1),m=Math.floor(F-m.N/1E3),n.policy.X?n.S=m:n.V=Z,n.Xp("sdai",{onpred:F,estsq:Z,estmt:m.toFixed(3)}), n9(n.loader,m,m,Z),n.Pr=Date.now(),jL(n,3,"predict"),l.aQ(y.q1));else if(n.X===1){var D;((D=n.T)==null?0:D.ZH(F))?(n9(n.loader,F,F,Z),jL(n,4,"sk2head")):jL(n,5,"nogab")}else m.event==="predictStart"?n.policy.X&&n.S>0?(F=Math.floor(F-m.N/1E3),n.S!==F&&n.Xp("sdai",{updateSt:F,old:n.S}),n.S=F):n.V>0&&(F=Z+Math.max(Math.ceil(-m.N/5E3),1),n.V!==F&&(n.Xp("sdai",{updateSt:F,old:n.V}),n.V=F)):n.policy.HE&&n.X===3&&Fyp(n,Z,F,y,l)}else n.Xp("sdai",{nulldec:1,sq:Z,mt:F.toFixed(3),evt:(y==null?void 0:(m=y.q1)== null?void 0:m.event)||"none"})}; EI=function(n){if(n.C){var Z=n.api.getProgressState(),F=n.api.getVideoData();if(!(F&&F.enableServerStitchedDai&&F.ye)||isFinite(Z.current)){var y;if(((y=n.api.getVideoData())==null?0:HW(y))&&Z.airingStart&&Z.airingEnd)var l=rn(n,Z.airingStart,Z.airingEnd);else if(n.api.getPresentingPlayerType()===2){var m,a,D;l=(F=(l=n.api.getVideoData())==null?void 0:(m=l.getPlayerResponse())==null?void 0:(a=m.playerConfig)==null?void 0:(D=a.webPlayerConfig)==null?void 0:D.skippableAdProgressBarDuration)?rn(n,Z.seekableStart, F/1E3):rn(n,Z.seekableStart,Z.seekableEnd)}else l=rn(n,Z.seekableStart,Z.seekableEnd);m=bz(l,Z.loaded,0);Z=bz(l,Z.current,0);a=n.T.X!==l.X||n.T.N!==l.N;n.T=l;hM(n,Z,m);a&&NAU(n);sZ7(n);Z=48;l=n.api.B();m=g.jf(n.api.B().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");m=n.api.j("delhi_modern_web_player_compact_controls")||m>0&&n.api.getPlayerSize().width<=m;n.api.j("delhi_modern_web_player")?Z=n.api.getPlayerSize().width<=528?m?56:64:n.S?m?72:96:m?56:72:n.S?Z=54:g.R6(l)&& !l.X&&(Z=40);n.w5=Z}}}; Yv=function(n,Z,F,y){y=y===void 0?240:y;g.R.call(this,{U:"button",s8:["ytp-button","ytp-share-button"],Z:{title:n.j("player_tooltip_data_title_killswitch")?"Share":"","data-tooltip-title":"Share","aria-haspopup":"true","aria-owns":F.element.id,"data-tooltip-opaque":String(g.R6(n.B()))},D:[{U:"div",K:"ytp-share-icon",E8:"{{icon}}"},{U:"div",K:"ytp-share-title",E8:"Share"}]});this.api=n;this.N=Z;this.X=F;this.T=y;this.visible=!1;this.tooltip=this.N.aX();n.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.G(n,"videodatachange",this.g5);this.G(n,"videoplayerreset",this.g5);this.G(n,"appresize",this.g5);this.G(n,"presentingplayerstatechange",this.g5);this.g5();this.addOnDisposeCallback(g.l9(this.tooltip,this.element))}; $qo=function(n,Z){Z=Z?{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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"}}]}:VTf();var F=n.W.getPlaybackRate(),y=g.xq("Speed is $RATE",{RATE:String(F)});XF(n,Z,y,F+"x")}; iF=function(n,Z){for(var F in n)!isNaN(F)&&Z(n,+F,n[F])}; g.hp=function(n){var Z=g.Di("yt.logging.errors.log");Z?Z(n,"ERROR",void 0,void 0,void 0,void 0,void 0):(Z=g.BT("ERRORS",[]),Z.push([n,"ERROR",void 0,void 0,void 0,void 0,void 0]),Ka("ERRORS",Z));nz3(n)}; FKf=function(n,Z,F,y,l,m){return Z.Kh&&Z.IW&&F===3?new r9(n,Z,y,l,m):null}; kw8=function(n,Z,F,y,l,m,a){if(!(Zq||Fx()||sm()))return RM();var D={},p=ZYf(F),L=IXi(F,n.j("html5_filter_fmp4_in_hls"),n.S.J,D);if(!L)return a({noplst:1}),RM();m97(L);F={};var q=(F.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",F),w;F=[];var T=[],P=[],J=null,U="";y=y&&y.match(/hls_timedtext_playlist/)?new ven({itag:"0",url:y,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,J2:new g.ZV("English","en",!1)}):null;for(var h=g.Y(Object.keys(L)),v=h.next();!v.done;v=h.next())if(v=v.value,!n.j("html5_disable_drm_hfr_1080")|| v!=="383"&&v!=="373"){v=g.Y(L[v]);for(var V=v.next();!V.done;V=v.next())if(V=V.value,V.width){for(var f=g.Y(V.X),W=f.next();!W.done;W=f.next())if(W=W.value,L[W]){V.N=W;break}V.N||(V.N=Fc3(L,V));if(f=L[V.N])if(F.push(V),V.by==="fairplay"&&(w=q),W="",V.gf==="PQ"?W="smpte2084":V.gf==="HLG"&&(W="arib-std-b67"),W&&(U=W),P.push(zYP(f,[V],y,m,V.itag,V.width,V.height,V.fps,p,void 0,void 0,w,W)),!J||V.width*V.height*V.fps>J.width*J.height*J.fps)J=V}else T.push(V)}else D[v]="disdrmhfr";P.reduce(function(X, u){return u.getInfo().isEncrypted()&&X},!0)&&(w=q); l=Math.max(l,0);q=J||{};L=q.fps===void 0?0:q.fps;J=q.width===void 0?0:q.width;q=q.height===void 0?0:q.height;h=n.j("html5_native_audio_track_switching");P.push(zYP(T,F,y,m,"93",J,q,L,p,"auto",l,w,U,h));Object.entries(D).length&&a(D);return U8(n.S,P,Nn(n,Z),!1)}; tp3=function(n){if(!g.Ry())throw n=new g.CE("AUTH_INVALID",{dbName:n}),P1(n),n;var Z=g.c7();return{actualName:n+":"+Z,publicName:n,userIdentifier:Z}}; $E=function(n){return n==null?n:toT(n)}; yy7=function(n){return n.k0?["OK","LIVE_STREAM_OFFLINE"].includes(n.k0.status):!0}; T$3=function(n){vk.call(this,n);var Z=this;n.addEventListener("settingsMenuInitialized",function(){Z.menuItem||(Z.menuItem=new e$(Z.api),g.S(Z,Z.menuItem))}); n.addEventListener("videodatachange",function(F,y){F=Z.api.getPresentingPlayerType()===2;var l;(l=Z.menuItem)==null||l.yP(!y.isLivePlayback&&!F)})}; nSK=function(n,Z,F,y,l){var m;Z={reason:"overlapping_playbacks",jjY:Z,I0:F,AD:y,tk4:l.sS,sri:((m=l.videoData)==null?void 0:m.videoId)||"",S7g:l.durationMs,ogi:l.I0,WL5:l.AD};eS(n,Z)}; NeU=function(n){var Z=[];n=n.match(lSP);for(var F=0;F1){F=wQ(n,Z.T,!0);for(var y=0,l=0;l0&&(y+=n.N[l].width,y+=nb(n));F=(n.N[F].startTime+(Z.T-y)/n.N[F].width*((F===n.N.length-1?n.T.N*1E3:n.N[F+1].startTime)-n.N[F].startTime))/1E3||0}return F}; BCi=function(n,Z,F,y,l,m,a){if(Z&&F){n.JV=F.cpn;n.wI(F.cpn,F.startTimeSecs||l);vuj(n,F);var D=bT(n,"a2a",F);n.oW(D);n.GK++;n.playback.IN(Z,F,y||0,l||0,!!m,!!a)}else n.oW({misspbkonadtrans:1,enter:(F==null?void 0:F.cpn)||"",exit:(Z==null?void 0:Z.cpn)||"",seek:m,skip:a})}; K_U=function(n,Z){g.R.call(this,{U:"div",s8:["ytp-overlay","ytp-speedmaster-overlay"],D:[{U:"div",K:"ytp-speedmaster-user-edu",D:[{U:"div",K:"ytp-speedmaster-label",E8:Z},{U:"div",K:"ytp-speedmaster-icon",E8:"{{icon}}"}]}]});this.W=n;this.N=this.Vg("ytp-speedmaster-user-edu");this.updateValue("icon",VTf());g.gi(this.N,"ytp-speedmaster-has-icon");this.W.createClientVe(this.N,this,173040,!0);this.xk()}; wzK=function(n,Z){function F(m){return y.Ns!=="yt"&&(l.partnerId===38&&y.playerStyle==="books"||l.partnerId===30&&y.playerStyle==="docs"||l.partnerId===33&&y.playerStyle==="google-live")?rGU(n,l,m):k1P(n,l).then(function(){y.j("embeds_enable_shorts")&&n.B().s7&&l.isEmbedsShortsMode(new g.Kz(0,0),!!l.playlistId)?oTe(n,l):Wa(n,l)},function(a){Wa(n,l,!0); throw a;})} var y=n.B(),l=n.getVideoData();l.CR();l.loading=!0;return OnQ(n)?ySp(n,l,Z).then(function(){Wa(n,l)},function(m){m=oG(m); if(W0(m.severity))return Wa(n,l,!0),Promise.reject(m);m.errorCode==="onesie.response.badproxystatus"&&""+m.details.st==="3"&&(EPf=!0);n.handleError(m);return F("onesie")}):F("gvi")}; ThP=function(n){var Z,F,y=(Z=n.N)==null?void 0:(F=Z.bannerData)==null?void 0:F.itemData,l,m,a,D;if(!((y==null?0:y.priceReplacementText)||n.W.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(y==null?0:(l=y.dealsData)==null?0:(m=l.sales)==null?0:m.originalPrice))&&(y==null?0:(a=y.dealsData)==null?0:(D=a.priceDrop)==null?0:D.referencePrice)){var p,L;return y==null?void 0:(p=y.dealsData)==null?void 0:(L=p.priceDrop)==null?void 0:L.referencePrice}return null}; cgp=function(n,Z,F,y){F=F===void 0?"":F;y=y===void 0?!1:y;g.I.call(this);this.message=n;this.requestNumber=Z;this.timer=F;this.X=y;this.onError=this.onSuccess=null;this.N=new g.CH(5E3,2E4,.2)}; g.ozj=function(n){n=(n=n.getVideoData())&&n.X;return!!n&&!(!n.audio||!n.video)&&n.mimeType!=="application/x-mpegURL"}; g.ob=function(n,Z){if(n.classList)Array.prototype.forEach.call(Z,function(l){g.gi(n,l)}); else{var F={};Array.prototype.forEach.call(jR(n),function(l){F[l]=!0}); Array.prototype.forEach.call(Z,function(l){F[l]=!0}); Z="";for(var y in F)Z+=Z.length>0?" "+y:y;g.ER(n,Z)}}; uy=function(){g.Di("_lact",window)==null&&(iOi(),g.Di("_lact",window));var n=Date.now();g.pv("_lact",n,window);g.Di("_fact",window)==-1&&g.pv("_fact",n,window);(n=g.Di("ytglobal.ytUtilActivityCallback_"))&&n()}; Pw7=function(n,Z,F){if(!n.Fn){Z=Math.max(Z,.01);var y=n.d8?Math.max(Z,F/n.d8):Z,l=n.zN.X.T;l&&(y=Z,n.d8&&(y=Math.max(Z,F/n.d8*l)));BY(n.zN,Z,F,y)}}; g.Qwn=function(n){this.data=n;this.N=0;this.V=!1;this.T=0;this.error=!1;this.register=this.X=0;if(l6.length===0){l6.length=288;l6.fill(8);for(n=144;n<280;n++)l6[n]=n<=255?9:7;jNe.length=32;jNe.fill(5);jB.length=286;jB.fill(0);for(n=261;n<285;n++)jB[n]=Math.floor((n-261)/4);Ui[257]=3;for(n=258;n<285;n++){var Z=Ui[n-1];Z+=1<65535&&(n=1);Ka("BATCH_CLIENT_COUNTER",n);return n}; Hh8=function(){var n=window.H5vccPlatformService,Z="";if(n&&n.has("dev.cobalt.coat.clientloginfo")&&(n=n.open("dev.cobalt.coat.clientloginfo",function(){}))){var F=n.send(new ArrayBuffer(0)); F&&(Z=String.fromCharCode.apply(String,g.t(new Uint8Array(F))));n.close()}return Z}; Sbi=function(n,Z,F,y,l,m,a){g.wg.call(this,Z,F,{id:n,namespace:"ad",priority:l,visible:y,associatedClipId:m,markerPositionMs:a})}; p4P=function(){this.X=this.N=NaN}; D0K=function(n){for(var Z=g.Y(n.X),F=Z.next();!F.done;F=Z.next())F=F.value,F.detach(),g.xA(F);n.X=[]}; ak=function(n){var Z=(0,g.tP)();n.data.forEach(function(F){F.expire=480;return y}; fO=function(n,Z){return(n=n.Wx(Z))?n.toString():""}; Rhj=function(n){var Z,F,y,l=(Z=n.playerResponse)==null?void 0:(F=Z.playerConfig)==null?void 0:(y=F.compositeVideoConfig)==null?void 0:y.sourceConfigs,m,a,D;n=(m=n.playerResponse)==null?void 0:(a=m.playerConfig)==null?void 0:(D=a.compositeVideoConfig)==null?void 0:D.defaultActiveSourceVideoId;if(!l||!l.length)return"";n||(n=l[0].videoId||"");l=g.Y(l);for(m=l.next();!m.done;m=l.next())if(m=m.value,m.videoId===n&&m.audioTracks)for(m=g.Y(m.audioTracks),a=m.next();!a.done;a=m.next())if(a=a.value,a.isDefaultForSource)return a.id|| "";return""}; WVK=function(n){return new VR(Object.assign({},n,{Z6:function(Z){n.M1.get().qI(Z)}}))}; K9=function(n,Z){return Math.abs(jwe*Z-n)<1||Math.abs(jwe/n-Z)<1?jwe:n/Z}; dD=function(n,Z,F){F!==void 0&&Number.isNaN(Number(F))&&(F=void 0);var y=g.Di("yt.scheduler.instance.addJob");return y?y(n,Z,F):F===void 0?(n(),NaN):g.A3(n,F||0)}; a5=function(n){return g.i8(n.N,function(Z){return!!Z.info.by})}; Stj=function(n,Z,F){Z=DF(Z);F=DF(F);for(var y=n.data,l=n.output,m=n.T,a=n.register,D=n.N,p=n.X;;){if(D<15){if(p>y.length){n.error=!0;break}a|=(y[p+1]<<8)+y[p]<>=7;L<0;)L=Z[(a&1)-L],a>>=1;else a>>=L&15;D-=L&15;L>>=4;if(L<256)l[m++]=L;else if(n.register=a,n.N=D,n.X=p,L>256){a=Ui[L];a+=L8(n,jB[L]);p=YtK(n,F);D=Nd[p];D+=L8(n,Jyn[p]);if(UqP&&a0;return n.pw.length>0||Z}return!(n==null||!n.Ho)&&!(n==null||!n.uP.totalLength)}; pon=function(n,Z){a:{if(n.L>0){var F=Math.floor((0,g.tP)()/1E4);if(F===Z.KX){if(Z.RE>=n.L){Z.RE===n.L&&(F={reason:"toomanyrequests"},F.limit=Z.RE,n.loader.handleError("player.exception",F),Z.RE+=1);Z=!1;break a}}else Z.KX=F,Z.RE=0}Z=!0}if(!Z||n.loader.isSuspended&&n.loader.JE)return!1;if(n.Pr&&(0,g.tP)()0)||n.policy.Ns&&n.N.length===1&&n.N[0].RK()?!0:!1){var y;Z=(y=n.eT.Pr)!=null&&ot(y,n.policy,n.V,n.loader.aj)?!0:!1}return!Z||n.policy.d7&&n.yg? !1:!0}; LHK=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);RS(this.api,"musicDisableUi",function(){g.gi(Z.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); RS(this.api,"musicEnableUi",function(){g.hw(Z.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; Bs=function(n,Z,F){var y=n.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],l=n.policy.playbackStartPolicy.startMinReadaheadPolicy||[];n=Infinity;Z=g.Y(Z&&y.length>0?y:l);for(y=Z.next();!y.done;y=Z.next())y=y.value,l=y.minReadaheadMs||0,F<(y.minBandwidthBytesPerSec||0)||n>l&&(n=l);return n=D,p=n.eT.isManifestless,a){var L;if(((L=n.N)==null?void 0:L.q1.event)==="predictStart"&&n.N.O80&&!(O0P()>(0,g.tP)()-n*1E3))return 0;n=g.z5("yt-player-quality");if(typeof n==="string"){if(n=g.FF[n],n>0)return n}else if(n instanceof Object)return n.quality;return 0}; Cy=function(n,Z){Z=Z===void 0?[]:Z;g.bF(n,function(F,y){var l=y.Qg-F.Qg;if(!F.K6()||!y.K6())return l;var m=y.video.height*y.video.width-F.video.height*F.video.width;!m&&Z&&Z.length>0&&(F=Z.indexOf(F.vr)+1,y=Z.indexOf(y.vr)+1,m=F===0||y===0?y||-1:F-y);m||(m=l);return m})}; fYp=function(n){var Z=dmp[Bm[n]],F=ISU[n];return F&&Z?new mZ(n,Z,{audio:new oV(F.audioSampleRate,F.numChannels)}):null}; fSi=function(n,Z,F,y,l){if(Array.isArray(Z))for(var m=0;m0?l:1;var m=Math.max(y,l);n.policy.S>0&&l55&&(F+=64);var y=new Uint8Array(F);y[0]=128;for(var l=n.V*8,m=1;m<9;m++){var a=l%256;y[F-m]=a;l=(l-a)/256}n.update(y);for(F=0;F<8;F++)Z[F*4]=n.N[F]>>>24,Z[F*4+1]=n.N[F]>>>16&255,Z[F*4+2]=n.N[F]>>>8&255,Z[F*4+3]=n.N[F]&255;bve(n);return Z}; xqP=function(n,Z,F){var y;QA(n.uY.get(),"ads_qua","cpn."+o5(n.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=tI(n.nR.get(),2))==null?void 0:y.clientPlaybackNonce)+";qt."+Z+";clr."+F)}; zXp=function(n){n.V||(n.V=new g.w1(n.X));return n.V}; Rgo=function(n){this.value=n}; Gzp=function(n,Z){var F=n.JD.get(Z),y=Nrp(n,Z),l=!y&&!!F.bytesReceived;if(iT){var m;if((m=n.eT)==null?0:m.t2){n=g.Y(F.Ch.values());for(Z=n.next();!Z.done;Z=n.next())if(!Z.value.zn)return!1;return l}}else if(m=n.Va(Z),l&&n.N&&m!==void 0)return m;return(l||F.bytesReceived===y)&&F.le+Ck(n,Z)===F.bytesReceived}; M4=function(n){n.L=!1;n.J.isActive()&&$9(n);n.J.stop();n.E9(!1)}; Wei=function(n,Z,F,y,l,m){this.FJ=n;this.tG=Z;this.uY=F;this.X=y;this.N=l;this.U8=m}; XPP=function(n){var Z=0;n=g.Y(n);for(var F=n.next();!F.done;F=n.next())Z+=F.value.range.length;return Z}; rDT=function(n,Z){var F=Z.vr,y=Z.video.fps,l=Z.video.qualityOrdinal-1,m=n.T;Z=""+F+(y>49?"p60":y>32?"p48":"");F=sc(F,y,m);l>0&&(F=Math.min(F,l));if(!Oi.has(Z)&&hqp().includes(Z)){var a=F;F=v9();+F[Z]>0&&(a=Math.min(+F[Z],a));F[Z]!==a&&(F[Z]=a,g.Oh("yt-player-performance-cap",F,2592E3))}else if(Oi.has(Z)||m==null){a:{a=a===void 0?!0:a;y=hqp().slice();if(a){if(y.includes(Z))break a;y.push(Z)}else{if(!y.includes(Z))break a;y.splice(y.indexOf(Z),1)}g.Oh("yt-player-performance-cap-active-set",y,2592E3)}e1.set(Z, F)}else Oi.add(Z),m==null||m.set(Z,F);n.mQ.r6()}; SY8=function(n,Z,F){F=F===void 0?{}:F;return rTe(n,Z,F)}; kx=function(n,Z,F){F=F===void 0?!1:F;Z.zt&&((F===void 0?0:F)||!Z.info.D4[0].bY.SN())&&(n=n.T,n.Ns&&!n.policy.oB&&(F=n.loader,F.eT.isManifestless&&KK(F.eT,n.Ns.O8,!!n.bY.info.video)),n.Ns=null,n.S=null,n.V=n.xi,n.T=n.V?n.T-n.Pr:NaN,$X(n));Z.dispose()}; d1=function(n,Z){return g.oo(n.toLowerCase(),Z.toLowerCase())}; Rtp=function(){var n=["metadata_type_client_forecasting_ad_renderer"];U2().forEach(function(Z){n.push(Z)}); return{Nj:n,ZM:["LAYOUT_TYPE_FORECASTING"]}}; un=function(n,Z,F,y,l,m,a){var D="";n&&(D+=n+":");F&&(D+="//",Z&&(D+=Z+"@"),D+=F,y&&(D+=":"+y));l&&(D+=l);m&&(D+="?"+m);a&&(D+="#"+a);return D}; rM=function(n){var Z=n.api.B();n.bN.ZC("pot_ist");n.X||uN3(n);n.j("html5_bandaid_attach_content_po_token")||(n.j("html5_generate_session_po_token")&&(Ah(n),Uhe(n)),Z=g.jf(Z.experiments,"html5_session_po_token_interval_time_ms")||0,Z>0&&(n.L=g.Cb(function(){Ah(n)},Z)),n.J=!0)}; gzj=function(n,Z,F){if(!n.policy.S){n=Z.bY.index;var y=Z.N.O8;n.Am(y)||F&&F.O8===y?(Z.V=!n.Am(y),Z.Tx=!n.Am(y)):(Z.V=!0,Z.Tx=!0)}}; I0o=function(n){var Z=n.baseUrl;Psj(Z)||n.error("drm.net",2,"t.x");if(!AK(Z,"fexp")){var F=["23898307","23914062","23916106","23883098"].filter(function(l){return n.Y.experiments.experiments[l]}); F.length>0&&(n.S.fexp=F.join())}F=g.Y(Object.keys(n.S));for(var y=F.next();!y.done;y=F.next())y=y.value,Z=PLK(Z,y,n.S[y]);return Z}; F7n=function(n,Z){if(Z.itagDenylist)for(var F=0;F1?n[1]:n[0])):{}}; oN=function(n,Z){var F=[];n=g.Y(n.array);for(var y=n.next();!y.done&&!(y=y.value,y.contains(Z)&&F.push(y),y.start>Z);y=n.next());return F}; g.ba=function(n,Z){g.dc(n,"addEmbedsConversionTrackingParams",[Z])}; Kd=function(n){n=BU(n.Kq);return!!n&&n.loaded}; Lqf=function(n){for(var Z=new ZH(n),F=-1,y=0,l=0;!y||!l;){var m=PR3(Z),a=m.id;m=m.size;if(a<0)return;if(a===176){if(m!==2)return;y=Z.M$()}else if(a===186){if(m!==2)return;l=Z.M$()}a===374648427?F=Z.M$()+m:a!==408125543&&a!==174&&a!==224&&Z.skip(m)}Z=eU(n,0,F);F=new DataView(Z.buffer);F.setUint16(y,3840);F.setUint16(l,2160);y=new y9([Z]);KB(y,n);return y}; Nv=function(n){this.AG=UO(n,0,Nv.messageId)}; z0=function(n,Z,F){F=F===void 0?!1:F;Z.then(function(y){n.Ns.delete(Z);(F||y===4)&&n.L.resolve(y)},function(y){n.L.reject(y)})}; cG=function(n){this.Qi=n;this.X=!1;this.N=[]}; kF8=function(n){var Z=Z===void 0?!0:Z;this.N=new i_;n!==void 0&&Pkf(this.N,n);Z&&this.N.add("v","unreleased",-16)}; Uz7=function(n){return n.kA.B().j("html5_gapless_no_clear_buffer_timeline")&&n.S===1&&YA(n.N.getVideoData())}; U2n=function(n,Z,F,y,l,m,a,D,p,L,q,w){return function(T,P){if(O4(q)&&cD(q))a:{var J=Cwo(y);if(J instanceof C)P=J;else{for(var U=0,h=[],v=[],V=[],f=[],W=[],X=[],u=new Es({current:null}),Fp=new qW({current:null}),nQ=!1,$U=[],mY=0,LQ=[],Zi=0;Zi0?mY:-1;else if(Qe= g.e(Zi,HG)){Zi=Vqj(n,Z,F,Qe,m,U,D,Fp,mY);if(Zi instanceof C){P=Zi;break a}Zi=Zi(T);h.push(Zi.Hm);v=[].concat(g.t(Zi.Km),g.t(v));V=[].concat(g.t(Zi.dc),g.t(V));Zi.ly&&($U=[Zi.ly].concat(g.t($U)))}else if(Qe=g.e(Zi,wy)){if(P===void 0){P=new C("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Qe});break a}Zi=cD8(n,Z,F,m,Qe,u,D,P,U,E4(q,"supports_multi_step_on_desktop"));if(Zi instanceof C){P=Zi;break a}Zi=Zi(T);h.push(Zi.Hm);Zi.ly&&$U.push(Zi.ly); v=[].concat(g.t(Zi.Km),g.t(v));V=[].concat(g.t(Zi.dc),g.t(V));f=[].concat(g.t(Zi.f3),g.t(f));W=[].concat(g.t(Zi.n3),g.t(W));X=[u].concat(g.t(X))}else if(Zi=g.e(Zi,TZ)){Zi=bio(n,Z,F,m,Zi,u,D,U);if(Zi instanceof C){P=Zi;break a}Zi=Zi(T);h.push(Zi.Hm);Zi.ly&&$U.push(Zi.ly);V=[].concat(g.t(Zi.dc),g.t(V))}else{P=new C("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}P={CD:h,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:f,layoutExitUserCancelledTriggers:W,layoutExitMuteTriggers:V, gw:X,zU:$U}}}else a:if(U=Cwo(y),U instanceof C)P=U;else{h=0;v=[];V=[];f=[];W=[];X=[];u=[];Fp=new Es({current:null});nQ=new qW({current:null});$U=!1;LQ=[];mY=-1;J=g.Y(y);for(Zi=J.next();!Zi.done;Zi=J.next())if(Zi=Zi.value,g.e(Zi,qF)){Zi=c4o(Z,F,g.e(Zi,qF),D);if(Zi instanceof C){P=Zi;break a}Zi=Zi(T);v.push(Zi.Hm);V=[].concat(g.t(Zi.Km),g.t(V));f=[].concat(g.t(Zi.dc),g.t(f));Zi.ly&&(LQ=[Zi.ly].concat(g.t(LQ)))}else if(g.e(Zi,n7)){mY=PH(g.e(Zi,n7));if(mY instanceof JT){P=new C(mY);break a}Zi=new I7(h, U);Zi=NBp(Z,mY.layoutId,mY.au,F,Q6(mY.playerVars,mY.M9,a,L,Zi),mY.MK,m,Zi,D(T),nQ,p.get(mY.au.externalVideoId),void 0,w);h++;v.push(Zi.Hm);V=[].concat(g.t(Zi.Km),g.t(V));f=[].concat(g.t(Zi.dc),g.t(f));$U||(u.push(nQ),$U=!0);mY=(mY=mY.au.adPodSkipTarget)&&mY>0?mY:-1}else if(g.e(Zi,HG)){Zi=Vqj(n,Z,F,g.e(Zi,HG),m,h,D,nQ,mY);if(Zi instanceof C){P=Zi;break a}Zi=Zi(T);v.push(Zi.Hm);V=[].concat(g.t(Zi.Km),g.t(V));f=[].concat(g.t(Zi.dc),g.t(f));Zi.ly&&(LQ=[Zi.ly].concat(g.t(LQ)))}else if(g.e(Zi,wy)){if(P=== void 0){P=new C("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.e(Zi,wy)});break a}Zi=cD8(n,Z,F,m,g.e(Zi,wy),Fp,D,P,h,E4(q,"supports_multi_step_on_desktop"));if(Zi instanceof C){P=Zi;break a}Zi=Zi(T);v.push(Zi.Hm);Zi.ly&&LQ.push(Zi.ly);V=[].concat(g.t(Zi.Km),g.t(V));f=[].concat(g.t(Zi.dc),g.t(f));W=[].concat(g.t(Zi.f3),g.t(W));X=[].concat(g.t(Zi.n3),g.t(X));u=[Fp].concat(g.t(u))}else if(g.e(Zi,TZ)){Zi=bio(n,Z,F,m,g.e(Zi,TZ),Fp,D,h);if(Zi instanceof C){P=Zi;break a}Zi=Zi(T);v.push(Zi.Hm);Zi.ly&&LQ.push(Zi.ly);f=[].concat(g.t(Zi.dc),g.t(f))}else{P=new C("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}P={CD:v,layoutExitSkipTriggers:V,layoutExitUserInputSubmittedTriggers:W,layoutExitUserCancelledTriggers:X,layoutExitMuteTriggers:f,gw:u,zU:LQ}}P instanceof C?T=P:(X=T.slotId,U=P.CD,h=P.layoutExitSkipTriggers,v=P.layoutExitMuteTriggers,V=P.layoutExitUserInputSubmittedTriggers,f=P.gw,T=D(T),W=l?l.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES", X=l?l.layoutId:$e(Z.X.get(),W,X),u={layoutId:X,layoutType:W,Gx:"core"},T={layout:{layoutId:X,layoutType:W,Nd:new Map,layoutExitNormalTriggers:[new RC(Z.N,X)],layoutExitSkipTriggers:h,layoutExitMuteTriggers:v,layoutExitUserInputSubmittedTriggers:V,layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:new lb([new De(U)].concat(g.t(f))),lN:T(u)},zU:P.zU});return T}}; ubP=function(n,Z){if(n.X&&!n.j("html5_disable_d6de4_mint_debug")){var F=Z.videoId;n.T=3;n.bN.ZC("pt_ms");try{n.X.requestToken(F).then(function(y){n.bN.ZC("pt_mf");if(y=ZJ(y))Z.eP={bNT:y}}).catch(function(y){n.bN.ZC("pt_me"); lG(y,"player_generate");n.handleError(y,Z)})}catch(y){lG(y,"player_generate_catch"),n.handleError(y,Z)}}}; bYK=function(n,Z){switch(Z){case "normal":n.GN("complete");break;case "skipped":n.GN("skip");break;case "abandoned":Hb(n.Ms,"impression")&&n.GN("abandon")}}; HTT=function(n){n.V=n.startTime;n.J=n.duration;n.S=n.V+n.J}; RG=function(){this.X=this.T=this.V=this.N=0}; Ky=function(n){this.N=n===void 0?null:n;this.T=0;this.X=null}; rFQ=function(){this.N=10;this.X=Date.now()}; RqU=function(n,Z,F,y,l,m){var a={format:"RAW"},D={};if(tK(n)&&jU()){var p=g.BT("EOM_VISITOR_DATA");p?D["X-Goog-EOM-Visitor-Id"]=p:y?D["X-Goog-Visitor-Id"]=y:g.BT("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=g.BT("VISITOR_DATA"));F&&(D["X-Goog-PageId"]=F);(y=Z.Wr)&&!JQ(Z)&&(D["X-Goog-AuthUser"]=y);l&&(D.Authorization="Bearer "+l);Z.j("enable_datasync_id_header_in_web_vss_pings")&&Z.XW&&Z.datasyncId&&(D["X-YouTube-DataSync-Id"]=Z.datasyncId);if(Z.j("enable_rollout_token_header")){var L,q,w=(L=g.BT("INNERTUBE_CONTEXT"))== null?void 0:(q=L.client)==null?void 0:q.rolloutToken;w&&(D["X-YouTube-Rollout-Token"]=w)}p||D["X-Goog-Visitor-Id"]||l||F||y?a.withCredentials=!0:Z.j("html5_send_cpn_with_options")&&S8n.test(n)&&(a.withCredentials=!0)}Object.keys(D).length>0&&(a.headers=D);m&&(a.onFinish=m);return Object.keys(a).length>1?a:null}; BMT=function(n,Z,F){var y,l,m;return g.A(function(a){switch(a.N){case 1:if(!g.N5("start_client_gcf")){a.ST(0);break}F&&We(n,F);n.LU(Z);y=bL();if(!y){a.ST(3);break}if(F){a.ST(4);break}return g.x(a,v6Y(y),5);case 5:l=a.X,F=(m=l)==null?void 0:m.config;case 4:return g.x(a,KDi(F,Z,y),3);case 3:if(F)for(var D=F,p=g.Y(n.C.N),L=p.next();!L.done;L=p.next())L=L.value,L(D);g.zA(a)}})}; uHj=function(n,Z,F){var y;if(Z&&!(Z==null?0:(y=Z.sequenceMetaData)==null?0:y.skipProcessing)&&n.V){y=g.Y(Xzp);for(var l=y.next();!l.done;l=y.next())l=l.value,n.V[l]&&n.V[l].handleResponse(Z,F)}}; C6o=function(n,Z,F,y,l,m,a,D,p){var L=F.pings;return L?[cHe(n,m,D,l,function(q){var w=q.slotId;q=p(q);var T=F.adLayoutLoggingData,P=F.progressCommands;w=$e(Z.X.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",w);var J={layoutId:w,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Gx:"core"};return{layoutId:w,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Nd:th(L),layoutExitNormalTriggers:[new ZX(Z.N,m)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[], layoutExitUserCancelledTriggers:[],Gx:"core",clientMetadata:new lb([new K7(y),new ug(sf(L)),new Udf(Vwj(L)),new tL(a/1E3),new JW({progressCommands:P}),new PG(a/1E3)]),lN:q(J),adLayoutLoggingData:T}})]:new C("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:F})}; ch=function(n,Z,F,y,l,m){F=F===void 0?!0:F;var a=g.BQ(n,{playerType:l});if(!a||(a.getPlayerType()!==2||n.DD(a))&&!g.HJ(a.getVideoData())){var D=n.qd.qh;D?D.seekTo(Z,{OB:!F,fC:y,eO:"application",seekSource:m}):(a&&a===n.Px()&&n.Ur&&!ylP(n,Z)&&n.setLoopRange(null),n.seekTo(Z,F,y,l,m,"_request"))}}; jr=function(n,Z){var F=wZf();F&&F.publish.call(F,n.toString(),n,Z)}; Ig=function(n,Z){n.N.push(Z>>>0&255);n.N.push(Z>>>8&255);n.N.push(Z>>>16&255);n.N.push(Z>>>24&255)}; H7e=function(n){a:{var Z=n.initData;try{for(var F=0,y=new DataView(Z.buffer);F0){var a=y.getUint32(F+28);m+=a*16+4}var D=y.getUint32(F+m-4);try{var p=zt7(Z.subarray(F+m,F+m+D));if(p!==null){var L=p;break a}}catch(q){}}F+=l}L=null;break a}catch(q){L=null;break a}L=void 0}if(L!=null)for(Z=sd(tD(L,7,void 0,gj)),Z==null||n.dV||(n.cryptoPeriodIndex=Z),Z=sd(tD(L,10,void 0,gj)),Z!=null&&Z>0&& !n.dV&&(n.N=Z),L=Fw(L,2,ntU,void 0===i3T?2:4),L=g.Y(L),y=L.next();!y.done;y=L.next())Z=n.T,F=Z.push,y=xw(y.value),y=g.Ee(y,4),F.call(Z,y)}; tNe=function(n){var Z=n.V.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);Z.classList.add("ytp-seek-overlay-arrow-additional");Z.classList.remove("ytp-seek-overlay-arrow-persistent");n.V.appendChild(Z);Evf(n,Z,!0,!0).addEventListener("finish",function(){Z.remove()})}; rE=function(n,Z,F){n=n===void 0?100:n;Z=Z===void 0?100:Z;F=F===void 0?dFe:F;g.I.call(this);this.sampleInterval=n;this.maxBufferSize=Z;this.S=F;this.encoder=new tx;this.N=[];this.T=0;J6K(this)}; Qo=function(n,Z,F){n.bY.Pm();var y=bwf(n,Z);if(y>=0)return y;var l;(l=n.J)==null||SE8(l,Z,F);y=Math;l=y.min;var m=n.T;if(m.C)if(m=m.C,m.n6&&m.n6.type===3)m=m.n6.startTime;else if(m.T>0){var a=m.N.index;a=g.Ad(a.offsets.subarray(0,a.count),m.T*m.chunkSize);m=m.N.index.getStartTime(a>=0?a:Math.max(0,-a-2))}else m=0;else m=Infinity;Z=l.call(y,Z,m);n.N=n.policy.Tx?null:n.bY.NO(Z).D4[0];b1(n)&&(n.policy.Kx&&(F==null?void 0:F.seekSource)===60||n.fn&&n.fn.abort(),n.policy.ET&&(F=n.J)!=null&&(F.T=void 0)); n.lY=0;return n.N?n.N.startTime:Z}; AyT=function(n,Z){var F="";(Z=rke(n,Z))&&(F=Z.getId());return F?n.N.zo({cpn:F}):void 0}; PrP=function(n){for(var Z=[],F=0;F0&&(this.N=new g.e7(this.TE,Z,this),g.S(this,this.N));this.S=new g.e7(this.TE,F,this);g.S(this,this.S);this.L=bkP(this.X,l,1,y);g.S(this,this.L);this.J=bkP(this.X,0,y,1);g.S(this,this.J);this.V=new rK;g.S(this,this.V)}; mre=function(){return etU.loaded||(etU.loaded="loaded".replace(/\-([a-z])/g,function(n,Z){return Z.toUpperCase()}))}; v7=function(n){this.value=n}; Bhp=function(n,Z){n.J=Z;var F=n.zx;n.W.j("delhi_modern_web_player_icons")?n.X.Vg("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(Z+") translate(-22,-12)")):Z&&(F+=hEY(HY7,dqQ,Z));n.Ns.setAttribute("d",F)}; J2=function(n){return n.getVideoData().enableServerStitchedDai&&!!n.fq}; od=function(n,Z,F,y,l,m){g.I.call(this);var a=this;this.C=n;this.Je=Z;this.tG=F;this.uY=y;this.Em=m;this.N=null;this.V=!1;this.dJ=!0;this.uN=new Map;Z.get().addListener(this);this.addOnDisposeCallback(function(){Z.CR()||Z.get().removeListener(a)}); l.get().addListener(this);this.addOnDisposeCallback(function(){l.CR()||l.get().removeListener(a)})}; cR3=function(n){n=((n==null?void 0:n.playerOverlay)||{}).instreamSurveyAdRenderer;var Z;if(n)if(n.playbackCommands&&n.questions&&n.questions.length===1){var F,y=((Z=g.e(n.questions[0],To))==null?void 0:Z.surveyAdQuestionCommon)||((F=g.e(n.questions[0],wm))==null?void 0:F.surveyAdQuestionCommon);Z=M7Q(y)}else Z=!1;else Z=!1;return Z}; e88=function(n,Z,F){if(!n.Ns){F||(F=GD(n,"atr"));F.attestationResponse=Z;try{F.send()}catch(y){if(y.message!=="Unknown Error")throw y;}n.Ns=!0}}; MNn=function(n,Z,F){this.label=n;this.type=Z;this.value=F;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; g.CH=function(n,Z,F,y){this.V=n;this.S=Z;this.N=this.T=n;this.C=F||0;this.J=y||2}; CW=function(n,Z,F,y,l,m,a){a=a===void 0?null:a;g.oS.call(this,Z);this.api=n;this.macros={};this.componentType=F;this.C=this.J=null;this.Yi=a;this.layoutId=y;this.interactionLoggingClientData=l;this.Hr=m;this.fR=null;this.er=new Gl(this.element);g.S(this,this.er);this.d5=this.G(this.element,"click",this.onClick);this.Wr=[];this.w5=new nD(this.onClick,this);g.S(this,this.w5);this.mJ=!1;this.lY=this.Ns=null}; WF=function(n){if(!n.X||!n.policy.V&&!n.X.info.J2){var Z=n.C.N;n.X&&(Z=Z.filter(function(y){return y.audio.N===n.X.info.audio.N}),Z.length||(Z=n.C.N)); n.X=n.eT.N[Z[0].id];if(Z.length>1&&!n.policy.Wr){if(!n.policy.aT){var F=g.YW(Z,function(y){return y.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); F&&(n.X=n.eT.N[F.id])}F=!1;if(F=n.policy.R0?!0:n.N.isLocked()?n.N.N<240:a08(n,n.X))n.X=n.eT.N[g.lj(Z).id]}}}; g.vh=function(n,Z){g.gU(function(){g.I5(Z,function(F){kBp(void 0,n,F)})})()}; $_j=function(n,Z){n.isContentForward=Z;g.w4(n.badge.element,"ytp-suggested-action-badge-content-forward",Z)}; C8=function(n){var Z=[];g.l7(n,function(F,y){var l=g.J5(y);g.I5(Array.isArray(F)?F:[F],function(m){m==""?Z.push(l):Z.push(l+"="+g.J5(m))})}); return Z.join("&")}; nZp=function(n){var Z,F=(Z=n.W.getVideoData())==null?void 0:Z.lY;if(F)for(n=n.V.yg,F=g.Y(F),Z=F.next();!Z.done;Z=F.next())if(Z=n[Z.value]){var y=void 0,l=void 0,m=void 0;if(((y=Z.onTap)==null?void 0:(l=y.innertubeCommand)==null?void 0:(m=l.changeEngagementPanelVisibilityAction)==null?void 0:m.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return Z}}; Or=function(n){this.N=n}; xF7=function(){return Vd(v9(),function(n){return""+n})}; Kt=function(){if(Z28===null){Z28=new $dU;xW(KO).X="b";var n=xW(KO),Z=ge(n)=="h"||ge(n)=="b",F=!(B6(),!1);Z&&F&&(n.S=!0,n.C=new hSi)}return Z28}; JN7=function(n,Z){n.raw=Z;Object.freeze&&(Object.freeze(n),Object.freeze(Z));return n}; Frj=function(n){for(var Z=g.Y(n.JD),F=Z.next();!F.done;F=Z.next()){var y=g.Y(F.value);F=y.next().value;y=y.next().value;y.Ho||uT(n,F)}}; CzT=function(n,Z){return n.T===void 0?!1:Z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Z.seekLengthMilliseconds)===5E3?n.T===72:Z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Z.seekLengthMilliseconds)===1E4?n.T===74:Z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Z.seekLengthMilliseconds)===5E3?n.T===71:Z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Z.seekLengthMilliseconds)===1E4?n.T===73:!1}; qU=function(n,Z,F){this.AG=UO(n,Z,F)}; cL=function(n){this.lU=n;this.N={};this.url=""}; qye=function(n,Z){a:{var F=Z.cryptoPeriodIndex;if(isNaN(F)&&n.T.size>0)F=!0;else{for(var y=g.Y(n.T.values()),l=y.next();!l.done;l=y.next())if(l.value.cryptoPeriodIndex===F){F=!0;break a}F=!1}}n.publish("log_qoe",{wvagt:"reqnews",canskip:F});F||n.publish("rotated_need_key_info_ready",Z)}; hS=function(){return(Z2||nc)&&g.tv("applewebkit")&&!g.tv("version")&&(!g.tv("safari")||g.tv("gsa/"))}; U1n=function(){Df.call(this)}; y1p=function(n){var Z;if((Z=n.X)==null?0:Z.isLocked())return n.videoInfos;var F=fi(n.N);Z=g.I$(n.videoInfos,function(y){return y.Qg>n.Ae.Qg?!1:!F.has(y.id)}); HEe(n.N)&&(Z=g.I$(Z,function(y){return y.video.width<=854&&y.video.height<=480})); return Z}; lxe=function(n,Z){var F,y,l,m,a;return g.A(function(D){switch(D.N){case 1:n.pR.SO("oprgz_s");if(!nho){D.ST(2);break}g.RX(D,3);return g.x(D,Z1e(Z),5);case 5:return F=D.X,n.pR.SO("oprgz_n"),n.pR.Xp("oprsgz",{i:"n"}),D.return(F);case 3:y=g.d4(D),n.pR.Xp("gzerr",{impl:"native",err:""+y});case 2:if(l=n.pR.B().Z8)try{var p=xS.Pq(),L=l.f5(Z),q=l,w=L!=null?L:Z,T=w.byteOffset,P=w.byteLength,J=q.exports.getInflatedSize(T,P);if(J===0)throw Error("wasm_gz: bad input");var U=q.malloc(J),h=q.exports.inflateGzip(T, P,U);if(h)throw q.free(U),Error("wasm_gz: fail"+h);var v=new Uint8Array(q.exports.memory.buffer,U,J);L&&l.free(L.byteOffset);var V=l.UT(v);xS.Yj("gzwb",p,Math.ceil(V.byteLength/16));m=V;n.pR.SO("oprgz_w");n.pR.Xp("oprsgz",{i:"w"});return D.return(m)}catch(f){n.pR.Xp("gzerr",{impl:"wasm",err:""+f})}p=xS.Pq();L=g.UU3(new g.Qwn(Z));xS.Yj("gzjb",p,Math.ceil(L.byteLength/16));a=L;n.pR.SO("oprgz_p");n.pR.Xp("oprsgz",{i:"j"});return D.return(a)}})}; g.y7=function(n,Z,F){n=n.Br().element;var y=Be(n.children,function(l){l=Number(l.getAttribute("data-layer"));return F-l||1}); y<0&&(y=-(y+1));aF(n,Z,y);Z.setAttribute("data-layer",String(F))}; sYo=function(n,Z,F){var y=n.Bb(Z,F);n.p5=y;n.listeners.forEach(function(l){l.Sb(y)})}; D3i=function(n,Z){Z=new jS(Z);tmj("");Zt=RM(Z);n>0&&k9P(12E4,n-1);throw Z;}; m_P=function(n){return n.J2!==void 0}; wIi=function(n,Z){P3i(n.program,Z.pmp)&&(hm("bg_i",void 0,"player_att"),g.ic.initialize(n,function(){hm("bg_l",void 0,"player_att");Rs=(0,g.tP)()},Z.cspNonce,Z.rW))}; Tb=function(n){var Z=":"+(Lk.getInstance().N++).toString(36);return n+Z}; FD=function(n,Z,F,y,l){n=g.J8e(n,Z,F,l);n=new g.GI(n);y&&n.If();return n}; ZhQ=function(n,Z){g.w4(n.element,"ytp-volume-control-hover",Z);RR(n,Z,n.isDragging,n.X,n.api.Vd())}; Ng8=function(n){var Z=n.api.B(),F=n.api.getVideoData(),y=n.api.Br().getPlayerSize().width;Z=Z.T;return!!F.videoId&&y>=n.X&&F.H1&&!F.vV&&!n.api.isEmbedsShortsMode()&&!Z}; FE=function(){IT.instance||(IT.instance=new IT);return IT.instance}; axe=function(n,Z,F){n.T=!1;throw Error("The stream is broken @"+n.X+". Error: "+F+". With input:\n"+Z);}; Kr3=function(){var n=window.location.protocol,Z=u_.getEntriesByType("resource");Z=g.I$(Z,function(F){return F.name.indexOf(n+"//fonts.gstatic.com/s/")===0}); (Z=zL(Z,function(F,y){return y.duration>F.duration?y:F},{duration:0}))&&Z.startTime>0&&Z.responseEnd>0&&(zv("wffs",m8(Z.startTime)),zv("wffe",m8(Z.responseEnd)))}; KpP=function(n){p8=n}; MN=function(n,Z){this.start=n;this.end=Z;this.length=Z-n+1}; I6T=function(n){n=GN(n);n.gelInfos||(n.gelInfos={});return n.gelInfos}; d2=function(n){return n.N&&n.c7&&n.playbackStartPolicy}; icK=function(n){this.uY=n}; gte=function(n,Z){n.CR()||(n.X=Z,n.logger.update(Z.WX()),n.S.resolve(),n.C.resolve(void 0),n.YK())}; ik=function(n,Z){n.S&&(n.S.resolve(Z),n.mQ.jb(),n.Y.eG()||tW8(n))&&(Z=n.Zx(),Z["native"]=""+ +n.Tx,Z.otgt=""+(n.X+n.timestampOffset),n.mQ.Xp("seekEnd",Z));Cf(n)}; fd=function(n,Z){n.add(Z==null||isNaN(Z)?0:Z+1)}; KKQ=function(n){var Z=null,F="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);Z=new g.yO(n.W,{U:"span",s8:["ytp-popup","ytp-generic-popup"],Z:{tabindex:"0"},D:[F[0],{U:"a",Z:{href:"https://support.google.com/youtube/?p=noaudio",target:n.W.B().Pr},E8:F[2]},F[4]]},100,!0);g.S(n,Z);Z.hide();Z.subscribe("show",function(y){n.W.u1(Z,y)}); g.y7(n.W,Z.element,4)}; L37=function(n){var Z=0;Z=Z===void 0?0:Z;if(!IG(n))throw sH("int64");var F=typeof n;switch(Z){case 512:switch(F){case "string":return ue(n);case "bigint":return String(VE(64,n));default:return eXT(n)}case 1024:switch(F){case "string":return oQU(n);case "bigint":return t$(VE(64,n));default:return nIo(n)}case 0:switch(F){case "string":return ue(n);case "bigint":return t$(VE(64,n));default:return q0(n)}default:return dF(Z,"Unknown format requested type for int64")}}; Yl=function(n){vk.call(this,n);var Z=this;n.addEventListener("settingsMenuInitialized",function(){Z.menuItem||(Z.menuItem=new Jl(Z.api,Z.api.zj()),g.S(Z,Z.menuItem))}); n.addEventListener("openSettingsMenuItem",function(F){if(F==="menu_item_sleep_timer"){if(!Z.menuItem){var y;(y=Z.api.zj())==null||y.KJ()}Z.menuItem.open()}}); RS(n,"resetSleepTimerMenuSettings",function(){Z.resetSleepTimerMenuSettings()}); RS(n,"setSleepTimerTimeLeft",function(F){Z.setSleepTimerTimeLeft(F)}); RS(n,"setVideoTimeLeft",function(F){Z.setVideoTimeLeft(F)})}; D_8=function(n,Z,F){return Zjp(n.N.get(),Z.contentCpn,Z.TB,function(y){return Wq7(n.X.get(),y.slotId,F,Z.adPlacementConfig,Z.TB,yP(n.xs.get(),y))})}; g.Ie=function(n){return(n.deviceIsAudioOnly||!g.z$||Zq||n.controlsType==="3"?!1:g.ii?n.V&&g.SG(51):!0)||(n.deviceIsAudioOnly||!g.kr||Zq||n.controlsType==="3"?!1:g.ii?n.V&&g.SG(48):g.SG(38))||(n.deviceIsAudioOnly||!g.Cc||Zq||n.controlsType==="3"?!1:g.ii?n.V&&g.SG(37):g.SG(27))||!n.deviceIsAudioOnly&&g.zW&&!XXp()&&g.SG(11)||!n.deviceIsAudioOnly&&g.x5&&g.SG("604.4")}; g.AC=function(n){n=n.split(p3j);for(var Z=[],F=0;F=0?n.Ge:-1,y=n.VP-n.Ge,l=0;if(n.level>0){n.rV.nX===2&&(n.rV.nX=sL3(n));BsQ(n,n.Pz);BsQ(n,n.OR);lcK(n,n.QX,n.Pz.i4);lcK(n,n.L5,n.OR.i4);BsQ(n,n.SM);for(l=18;l>=3&&n.Ju[Lri[l]*2+1]===0;l--);n.r_+=3*(l+1)+5+5+4;var m=n.r_+3+7>>>3;var a=n.Wi+3+7>>>3;a<=m&&(m=a)}else m=a=y+5;if(y+4<=m&&F!==-1)V_(n,Z?1:0,3),FSU(n,F,y);else if(n.strategy===4||a===m)V_(n,2+(Z?1:0),3),qVT(n,gm,im);else{V_(n,4+(Z?1:0),3);F=n.Pz.i4+1;y=n.OR.i4+1;l+=1;V_(n,F-257,5);V_(n,y-1,5);V_(n,l-4,4);for(m=0;m< l;m++)V_(n,n.Ju[Lri[m]*2+1],3);TDi(n,n.QX,F-1);TDi(n,n.L5,y-1);qVT(n,n.QX,n.L5)}vaU(n);Z&&TYP(n);n.Ge=n.VP;cb(n.rV)}; nn=function(n){var Z=n(),F=Z&127;if(Z<128)return F;Z=n();F|=(Z&127)<<7;if(Z<128)return F;Z=n();F|=(Z&127)<<14;if(Z<128)return F;Z=n();return Z<128?F|(Z&127)<<21:Infinity}; Ai=function(n,Z,F,y){return qg(n,Z,qc(F),"",y)}; wAn=function(n){var Z=jy(n.playerVars),F=Number(Z.length_seconds);isNaN(F)&&(F=0,wU("Expected valid length seconds in player vars but got NaN"));return{playerVars:Z,M9:n.playerVars,MK:F}}; w3n=function(n){var Z,F=(Z=n.api.getVideoData())==null?void 0:Z.Cq();return n.api.getPresentingPlayerType(F)!==2}; g.WEn=function(n){if(n.T4)return null;var Z=n.LH;Z||(Z=n.playerResponse&&n.playerResponse.endscreen&&n.playerResponse.endscreen.endscreenUrlRenderer&&n.playerResponse.endscreen.endscreenUrlRenderer.url);return Z||null}; Tff=function(n,Z,F){F=n.N[Z].w1(F);md(n,F,0,n.N[Z].width)}; Vu=function(n){window.bgens=n}; NRi=function(n){n.T.read().then(n.J,n.onError).then(void 0,r4)}; Pqp=function(n,Z,F,y){var l=sm(),m=(F=l||F&&Fx())?["com.youtube.fairplay"]:["com.widevine.alpha"];Z&&m.unshift("com.youtube.widevine.l3");l&&y&&m.unshift("com.youtube.fairplay.sbdl");return F?m:n?[].concat(g.t(m),g.t(oZp.playready)):[].concat(g.t(oZp.playready),g.t(m))}; Wh=function(n){this.content=n.content;if(n.commandRuns){n=g.Y(n.commandRuns);for(var Z=n.next();!Z.done;Z=n.next())Z=Z.value,this.loggingDirectives=g.e(Z,J1T),Z.onTap&&(this.interaction={onTap:Z.onTap})}}; Ri=function(){if(!cY&&!g.yd){if(rB)return rB;var n;rB=(n=window.crypto)==null?void 0:n.subtle;var Z,F,y;if(((Z=rB)==null?0:Z.importKey)&&((F=rB)==null?0:F.sign)&&((y=rB)==null?0:y.encrypt))return rB;rB=void 0}}; C7=function(n,Z){if((Z=n.JD.get(Z))&&!Z.JX){Z.JX=!0;if(Z.onProgress)Z.onProgress();a:{Z=g.Y(n.JD.values());for(var F=Z.next();!F.done;F=Z.next())if(!F.value.JX){Z=!1;break a}Z=!0}Z&&n.V.uj()}}; QYj=function(n,Z,F,y,l){y=y===void 0?Infinity:y;l=l===void 0?0:l;var m=n.Z4();F=F||m.getPlayerType();(m=fOU(n,F,Z,!0))||(m=FD(n,F,Z,!0));Z=n.Px();F===2&&Z&&(F=m.getVideoData(),Z.fU(F.clientPlaybackNonce,F.Hx||"",F.breakType||0,F.Wu,F.videoId||""));n.Lv(m,y,0,l)}; aX=function(n,Z){n.focus(Z);return n.N[n.X][Z-n.T]}; FH=function(n,Z){var F;IF(n,function(y){F=Z[y];return!!F}); return F}; g.Af=function(n,Z,F){n.S=F?Ro(Z,!0):Z;n.S&&(n.S=n.S.replace(/:$/,""))}; YVY=function(n){var Z,F,y=(Z=n.N)==null?void 0:(F=Z.bannerData)==null?void 0:F.itemData;if(y==null?0:y.priceReplacementText)return y==null?void 0:y.priceReplacementText;if((y==null?0:y.promotionText)&&n.W.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var l;return(y==null?void 0:y.price)+" "+(y==null?void 0:(l=y.promotionText)==null?void 0:l.content)}var m,a;if(y==null?0:(m=y.dealsData)==null?0:(a=m.sales)==null?0:a.originalPrice){var D,p;return y==null?void 0:(D=y.dealsData)== null?void 0:(p=D.sales)==null?void 0:p.salesPriceAccessibilityLabel}var L,q;if(y==null?0:(L=y.dealsData)==null?0:(q=L.priceDrop)==null?0:q.referencePrice){var w,T;return(y==null?void 0:y.price)+" "+(y==null?void 0:(w=y.dealsData)==null?void 0:(T=w.priceDrop)==null?void 0:T.referencePrice)}return y==null?void 0:y.price}; B6p=function(){this.csn=g.f_();this.clientPlaybackNonce=null;this.elements=new Set;this.T=new Set;this.N=new Set;this.X=new Set}; SVi=function(n,Z){if(n.W.B().lY){var F=g.Vq(n.W,"Mute","m"),y=g.Vq(n.W,"Unmute","m");F=Z?y:F;n.W.B().j("player_tooltip_data_title_killswitch")?n.updateValue("title",F):n.update({"tooltip-title":F,"aria-label":F});n.update({"data-title-no-tooltip":Z?"Unmute":"Mute"});n.tooltip.RH()}}; jYi=function(n){n={next:n};n[Symbol.iterator]=function(){return this}; return n}; UVf=function(n,Z){for(var F=new Map,y=g.Y(n.N.keys()),l=y.next();!l.done;l=y.next()){l=l.value;var m=l.split("_")[0];Z.has(m)||F.set(l,n.N.get(l))}n.N=F}; U_7=function(n,Z){return Z!=null?C6(n.J,Z):n.J?n.J:n.iY.preferGapless&&n.iY.supportsGaplessShorts()}; k4=function(n,Z){Vh(59,Z.N)||(n.Er=Z,n.X=0,g.J3(n.delay))}; DY=function(n){vk.call(this,n);var Z=this;this.X=new Map;this.V=this.N=void 0;this.compositeVideoState=null;this.T=void 0;this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"modulecreated",function(F){var y;a:{var l,m,a,D=(l=Z.api.getVideoData())==null?void 0:(m=l.getPlayerResponse())==null?void 0:(a=m.overlay)==null?void 0:a.playerControlsOverlayRenderer;if(D&&(l=g.e(D.compositeVideoOverlay,NfP),l==null?0:(y=l.sources)==null?0:y.length))for(y=g.Y(l==null?void 0:l.sources),l=y.next();!l.done;l= y.next())if(l=l.value,l.isActive){y=l;break a}y=void 0}F==="captions"&&(y==null?void 0:y.topLeftCornerX)!==void 0&&(y==null?void 0:y.topLeftCornerY)!==void 0&&(y==null?void 0:y.width)!==void 0&&(y==null?void 0:y.height)!==void 0&&Z.api.LQ({top:y.topLeftCornerY,right:1-y.topLeftCornerX-y.width,bottom:1-y.topLeftCornerY-y.height,left:y.topLeftCornerX})}); this.events.G(n,"videodatachange",function(F){var y=Z.api.getVideoData();Z.N=void 0;Z.X.clear();Z.api.V9("compositeembargo",1);var l=y==null?void 0:y.lT.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(l==null?0:l.length)?wdi(Z,l.filter(function(m){return ZOi(Z,m)})):(y==null?0:y.cueRanges)&&wdi(Z,y.cueRanges.filter(function(m){return ZOi(Z,m)})); F==="dataupdated"&&(y==null?void 0:y.compositeLiveStatusToken)!==Z.V&&(Z.V=y==null?void 0:y.compositeLiveStatusToken,Z.api.N_())}); this.events.G(n,g.HP("compositeembargo"),function(F){var y;if(((y=Z.N)==null?void 0:y.id)!==F.id&&(Z.api.nh(!0),Z.X.has(F.id))){var l=Z.X.get(F.id);y=Z.api.getVideoData();l=g.Y(l);for(var m=l.next();!m.done;m=l.next()){var a=void 0;m=(a=m.value.compositeEmbargo)==null?void 0:a.embargoStatusToken;y.pD!==m&&(y.pD=m,Z.api.N_());D2T(Z,F)}}}); this.events.G(n,g.dn("compositeembargo"),function(F){var y;if(((y=Z.N)==null?void 0:y.id)===F.id&&(Z.api.nh(!1),Z.X.has(F.id))){if(F=Z.api.getVideoData())F.pD=void 0;Z.api.N_();D2T(Z)}}); this.events.G(n,"heartbeatRequest",function(F){Z.compositeVideoState!==null&&(F.playbackState||(F.playbackState={}),F.playbackState.compositeVideoState=Z.compositeVideoState)}); this.events.G(n,"internalaudioformatchange",function(F,y){var l=Z.api.getVideoData(void 0,!0);l==null||l.Xp("atrkchg",{id:F,m:y});if(l&&vD(l))for(y=Z.api.getAvailableAudioTracks(),y=g.Y(y),l=y.next();!l.done;l=y.next())if(l.value.getLanguageInfo().getId()===F){Z.api.B().xi=F;break}}); this.events.G(n,"onPlaybackAudioChange",function(){Z.api.N_();var F;((F=n.getVideoData())==null?0:F.B().j("html5_preload_on_mosaic_audio_track_change"))&&(F=Z.api.getSourceConfigForActiveAudioTrack())&&n.preloadVideoByPlayerVars({videoId:F.videoId,tL:!0},1)}); RS(n,"setCompositeParam",function(F){Z.compositeVideoState=F}); this.api.j("web_watch_enable_multiview_manager")&&RS(n,"setCompositeVideoOverlayRendererComponent",function(F){Z.setCompositeVideoOverlayRendererComponent(F)})}; QQP=function(n){var Z;if(((Z=n.adVideoOffset)==null?void 0:Z.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var F;return((F=n.adVideoOffset)==null?void 0:F.milliseconds)!=null&&!isNaN(Number(n.adVideoOffset.milliseconds))}; gGK=function(n,Z,F,y,l,m,a){if(!F.prefetchModeConfig)return new C("AdPlacementConfig for Live Prefetch is missing prefetch_config");F=F.prefetchModeConfig;y*=1E3;var D=[];if(!F.breakLengthMs)return new C("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var p=g.Y(F.breakLengthMs),L=p.next();!L.done;L=p.next())if(L=L.value,Number(L)>0){var q=y+Number(F.startTimeOffsetMs),w=q+Number(F.cacheFetchSmearingDurationMs);L={zO:new Ca(w,w+Number(L)),mM:!1,Pt:new Ca(Math.floor(q+Math.random()* Number(F.cacheFetchSmearingDurationMs)),w),cueProcessedMs:y?y:q};q=[];q.push(new TV({}));w=[];w.push(new kK(n.N));w.push(new lfU(n.N));a&&q.push(new p1({}));D.push(mg(n,Z,l,L,m,q,w))}return D}; f38=function(){return{U:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},D:[{U:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{U:"path",Z:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}}; xv=function(n,Z){return!n.api.isInline()&&!TL8(n,bl(Z))&&g.OC(Z)}; YtK=function(n,Z){if(n.N<7){var F=n.data,y=n.X;y>F.length&&(n.error=!0);n.register|=(F[y+1]<<8)+F[y]<=0)return WL(n,F&15),F>>4;for(WL(n,7);F<0;)F=Z[L8(n,1)-F];return F>>4}; XU=function(n,Z){g.I.call(this);var F=this;this.V=n;this.X=new Map;this.T=new Map;this.N=null;Z.get().addListener(this);this.addOnDisposeCallback(function(){Z.CR()||Z.get().removeListener(F)}); var y;this.N=((y=Z.get().p5)==null?void 0:y.slotId)||null}; qNT=function(n){var Z=Wb();Z||(Z=new Map);n=g.Y(n);for(var F=n.next();!F.done;F=n.next())F=F.value,Z.set(F.settingItemId,F.settingOptionValue);Z=JSON.stringify(Object.fromEntries(Z));g.Oh("yt-player-user-settings",Z,2592E3)}; BUK=function(n,Z){Sf(n,1,Z.clientState);E7(n,2,Z.oQi,HV7,1)}; g.HL=function(n){var Z=n.data.getUint8(n.dataOffset)?20:12;return n.data.getUint32(n.dataOffset+Z)}; Gm=function(n){return function(Z){return KCi(n,Z)}}; DQ=function(n,Z,F,y){g.I.call(this);var l=this;this.X=n;this.ES=Z;this.tG=F;this.nR=y;this.dJ=!0;this.uN=new Map;this.N=new Set;F.get().addListener(this);this.addOnDisposeCallback(function(){F.CR()||F.get().removeListener(l)})}; Q2=function(n,Z){var F;return Z&&n.Y.j8&&!((F=n.getVideoData())==null?0:F.backgroundable)}; zaP=function(n,Z){g.I.call(this);var F=this;this.N=null;this.T=Z;Z=[];for(var y=0;y<=100;y++)Z.push(y/100);Z={threshold:Z,trackVisibility:!0,delay:1E3};(this.X=window.IntersectionObserver?new IntersectionObserver(function(l){l=l[l.length-1];var m=null;typeof l.isVisible==="undefined"?document.visibilityState==="visible"&&l.isIntersecting&&l.intersectionRatio>0?m=l.intersectionRatio:document.visibilityState==="hidden"?m=0:m=null:m=l.isVisible?l.intersectionRatio:0;m!=null&&(m=Math.max(m,0),m=Math.min(m, 1));F.N=m;typeof F.T==="function"&&F.T(F.N)},Z):null)&&this.X.observe(n)}; QA=function(n,Z,F){typeof F==="string"?n.W.getVideoData(1).I9(Z,F):n.W.getVideoData(1).Xp(Z,F)}; EZe=function(n,Z){Px(n,1,Z.cpn);Sf(n,2,Z.sequenceNumber);Px(n,3,Z.serializedWatchEndpointLoggingContext);if(Z.decoderInfo)for(var F=0;F=0?$1()-WK:-1,D=$1();l.N.OF==-1&&(a=D);var p=yp(),L=B6(),q=aB(L.Vm),w=G2();try{if(w.length>0){var T=p.N;T&&(q.bs=[wF(T),T.getHeight()]);var P=p.S;P&&(q.ps=[P.width,P.height]);G5.screen&&(q.scs=[G5.screen.width,G5.screen.height])}else q.url=encodeURIComponent(G5.location.href.substring(0,512)),m.referrer&&(q.referrer=encodeURIComponent(m.referrer.substring(0,512))); q.tt=a;q.pt=WK;q.bin=L.X;G5.google_osd_load_pub_page_exp!==void 0&&(q.olpp=G5.google_osd_load_pub_page_exp);q.deb=[1,l.N.XS,l.N.Rv,l.N.V6,l.N.OF,0,l.X.X,l.N.qS,l.N.DT,l.N.dX,l.N.MzG,-1].join(";");q.tvt=XGo(l,D);p.X&&(q.inapp=1);if(G5!==null&&G5!=G5.top){w.length>0&&(q.iframe_loc=encodeURIComponent(G5.location.href.substring(0,512)));var J=p.J;q.is=[wF(J),J.getHeight()]}}catch(U){q.error=1}Yq.T=q}T=g.nO(Yq.T);P=B6().N;f7(P.T,"prf")==1?(J=new ryf,l=P.N,m=0,l.N>-1&&(m=l.T.N.now()-l.N),J=qg(J,1,LK(l.V+ m),0),l=P.N,J=qg(J,5,$E(l.N>-1?l.X+1:l.X),0),J=qg(J,2,dq(P.X.N.T()),"0"),J=qg(J,3,dq(P.X.N.X()),"0"),P=qg(J,4,dq(P.X.N.N()),"0"),J={},P=(J.pf=g.Ee(P.T()),J)):P={};g.RH(T,P);g.RH(Z,y,F,T,n())}])}; q5i=function(){var n,Z,F,y;return((y=xL().resolve(new F0(Dj))==null?void 0:(n=U5())==null?void 0:(Z=n.loggingHotConfig)==null?void 0:(F=Z.csiConfig)==null?void 0:F.debugTicks)!=null?y:[]).map(function(l){return Object.values(l)[0]})}; bP=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; zlK=function(n){this.S=n;this.T=this.X=0;this.V=new Cl(50)}; Wrp=function(n,Z){for(var F=0,y=g.Y(n),l=y.next();!l.done;l=y.next()){l=l.value;if(Z=l.timeRangeStartMillis&&Z0&&n.every(oh)}; rOp=function(){this.N=g.xB;this.array=[]}; r1K=function(n,Z,F,y,l){this.callback=n;this.slot=Z;this.layout=F;this.uY=y;this.sD=l;n=o5(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,n,F.layoutId)}; xLQ=function(n,Z,F){Z={cpn:Z};n.indexOf("/ibw/")===-1&&(Z.ibw=F?String(F):"1369843");return{url:g.pQ(n,Z),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; jo=function(n,Z){this.N=n;this.X=Z}; Uhe=function(n){n.X&&(n.V=new dZ,n.S.promise.then(function(){n.bN.ZC("pot_if");Ah(n)}))}; D2=function(n){return!(!n.N||n.N.bY===n.bY)}; x_f=function(n){switch(n){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}}; GG7=function(n,Z,F){var y=g.jf(Z.experiments,"bg_vm_reinit_threshold");(!Rs||(0,g.tP)()-Rs>y)&&E3Q(n,F).then(function(l){l&&(l=l.botguardData)&&g.GNp(l,Z)},function(l){n.CR()||(l=oG(l),n.Xp("attf",l.details))})}; gZK=function(n,Z,F){var y=Z.errorScreen;if(!(y&&(y.playerLegacyDesktopYpcOfferRenderer||y.playerLegacyDesktopYpcTrailerRenderer||y.ypcTrailerRenderer)||F&&F.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Z.status))){n.errorCode=yXj(Z.errorCode)||"auth";if(F=y&&y.playerErrorMessageRenderer){n.playerErrorMessageRenderer=F;var l=F.reason;l&&(n.errorReason=g.sg(l));if(F=F.subreason)n.pO=g.sg(F),n.Qe=F}else n.errorReason=Z.reason||null;F=Z.status;if(F==="LOGIN_REQUIRED")n.errorDetail= "1";else if(F==="CONTENT_CHECK_REQUIRED")n.errorDetail="2";else if(F==="AGE_CHECK_REQUIRED")Z=(Z=Z.errorScreen)&&Z.playerKavRenderer,n.errorDetail=Z&&Z.kavUrl?"4":"3";else{var m,a,D;y=(D=y==null?void 0:(m=y.playerErrorMessageRenderer)==null?void 0:(a=m.proceedButton)==null?void 0:a.buttonRenderer)==null?void 0:D.command;if(Z.isBlockedInRestrictedMode)n.errorDetail="5";else{var p;((p=g.e(y,Rs7))==null?void 0:p.signal)==="RELOAD_PAGE"?n.errorDetail="7":n.errorDetail="0"}}}}; xY3=function(n,Z,F){if(n.j("html5_optimality_defaults_chooses_next_higher")&&F)for(n=Z.N.videoInfos,Z=1;Z=2)||a.isComplete()||a.v9()||!(!n.loader.KR||n.loader.isSuspended||Lh(L)>3)){var q=QZp(a,n.policy,n.V);q===1&&(n.w5=!0);b_f(n,a,q);if(a.isComplete()||a.CR()&&D<3){if(n.policy.T){var w=a.timing.W9();w.rst=a.state;w.strm=a.xhr.Ks();w.cncl=a.xhr&&a.US.S?1:0;n.loader.Xp("rqs",w)}a.WU&&n.loader.Xp("sbwe3",{},!0)}if(!n.CR()&&a.state>=2){lhK(n.timing,a,p);var T=n.loader;n.Nh&&a.Yn&&T&&(n.Nh=NaN,n.loader.Du(a.Yn),n.loader.Yu(),n.loader.Xp("cabrUtcSeek",{mediaTimeSeconds:a.Yn}));a.q9&&n.Nh&&a.q9&& !a.q9.action&&(n.loader.HM(n.Nh),n.Nh=NaN,n.loader.Xp("cabrUtcSeekFallback",{targetUtcTimeSeconds:n.Nh}));a.QB&&n.loader.NQ(a.QB);n.policy.Z8&&(n.e5=a.e5);if(a.state===3){w_(L,a);dX(a.info)&&ho(n,L,p,!0);if(n.X){var P=a.info.TH();P&&n.X.Te(a.info.D4[0].O8,p.info.id,P)}n.loader.YA()}else if(a.isComplete()&&a.info.D4[0].type===5){if(a.state!==4)a.xM()&&n.loader.handleError(a.RZ(),a.TQ());else{var J=(a.info.D4[0].bY.info.video?n.videoTrack:n.audioTrack).X[0]||null;J&&J instanceof qH&&J.v9()&&J.Zt()}a.dispose()}else{if(!a.xM()&& a.JO&&a.state>=2&&a.state!==3){var U=a.xhr.getResponseHeader("X-Response-Itag");if(U){var h=dnY(n.T,U),v=a.info.T;if(v){var V=v-h.cY();h.T=!0;a.info.D4[0].bY.T=!1;var f=h.Ap(V);a.info=f;if(a.AV){var W=a.AV,X=f.D4;(X.length!==W.D4.length||X.length=n.policy.Hi&&n.X&&a.info.isDecorated()&&Qe==="net.badstatus"&&n.X.L3(lO,av))){var kU=(Zi.info.video&&Zi.Er.T>1||a.Wm===410||a.Wm===500||a.Wm===503)&&!(fi(n.T.S).size>0)&&!Vh(58,Zi.Er.N),WT=a.TQ(),$t=Zi.info.video?n.videoTrack:n.audioTrack;kU&&(WT.stun="1");n.loader.handleError(Qe,WT);n.CR()||(kU&&G4(n.T,Zi),w_($t,a),n.loader.YA())}}else h=1,n.X&&a.info.isDecorated()&& Qe==="net.badstatus"&&n.X.L3(lO,av)&&(h=0),n.eT.isLive&&a.RZ()==="net.badstatus"&&n.C<=n.policy.bT*2?(O4f(n.eT),n.eT.z7||n.eT.isPremiere?tn(n.loader,0,{eO:"badStatusWorkaround"}):n.eT.V?tn(n.loader,n.eT.ze,{eO:"badStatusWorkaround",LD:!0}):Hp(n.loader)):n.loader.handleError(Qe,a.TQ(),h);isNaN(n.Nh)||(n.loader.HM(n.Nh),n.Nh=NaN)}n.policy.N1&&!a.isComplete()?AeQ(n.loader):n.loader.YA();var fh=lt3(a,n.policy,n.V);b_f(n,a,fh)}}}}}catch(Ag){Qe=n.Tx?1:0,n.Tx=!0,a=W0(Qe),Qe=oG(Ag,Qe),n.loader.handleError(Qe.errorCode, Qe.details,Qe.severity),a||n.loader.gW()}},y)}; Cw=function(n,Z,F,y,l){var m=n.N.length,a=Z.N-n.jT*nb(n),D=F*a;F=wQ(n,D);var p=y*a;a=wQ(n,p);l==="HOVER_PROGRESS"&&(a=wQ(n,Z.N*y,!0),p=Z.N*y-WA3(n,Z.N*y)*nb(n));y=Math.max(D-iSP(n,F),0);for(D=F;D=0?n=String(Z):(Z=n.indexOf("."),Z!==-1&&(n=n.substring(0,Z)),n[0]==="-"?Z=!1:(Z=n.length,Z=Z<20?!0:Z===20&&n<="18446744073709551615"),Z||(u8(n),n=c0(b8,XV))),n;if(Z==="number")return IG(n),n=p$(n),n>=0&&L$(n)||(ox(n),n=VY(b8,XV)),n}}; nt=function(){var n;return(n=kGp())==null?void 0:n.get("LAST_RESULT_ENTRY_KEY",!0)}; hEY=function(n,Z,F){for(var y="",l=0;l>16,(n&65280)>>8,n&255];n=Z[0];var F=Z[1];Z=Z[2];n=Number(n);F=Number(F);Z=Number(Z);if(n!=(n&255)||F!=(F&255)||Z!=(Z&255))throw Error('"('+n+","+F+","+Z+'") is not a valid RGB color');F=n<<16|F<<8|Z;return n<16?"#"+(16777216|F).toString(16).slice(1):"#"+F.toString(16)}; DJ8=function(n){n=new g.fW(n);g.Af(n,document.location.protocol);g.WU(n,document.location.hostname);document.location.port&&g.rw(n,document.location.port);return n.toString()}; var Cxj=function(n,Z,F,y,l){return NW[K[11]](this,16,n,Z,F,y,l)}; BfU=function(n,Z,F,y,l,m,a,D){Tf.call(this,n,Z,F,y);this.uY=l;this.wM=m;this.C=D;this.dJ=!0;this.V=null;this.S=o5(F.clientMetadata,"metadata_type_linked_player_bytes_layout_id");P2(this.wM(),this);n=o5(F.clientMetadata,"metadata_type_ad_placement_config");this.Ms=new Ja(F.Nd,this.uY,n,F.layoutId)}; Io3=function(n){var Z,F;return!!((Z=n.N)==null?0:(F=Z.Dw)==null?0:F.vt)}; $I=function(n,Z,F){return qv(35,Z?vo(n,F):n.N)}; g.TH=function(n){return h6(n)==="WEB_EMBEDDED_PLAYER"}; uM=function(n){return n.mediaElement?n.mediaElement.yq():0}; M37=function(n,Z,F,y,l){n1.call(this,"image-companion",n,Z,F,y,l)}; md8=function(n){var Z=n.kA.B().experiments.OS().N.Wx(an);return L0P(n.policy,n.N,n.X,n.Ot,Z)}; wF=function(n){return n.right-n.left}; iW=function(n){var Z=n.isMuted()?0:n.getVolume();r$.call(this,0,100,1,Z,void 0,!0);this.W=n;this.Ns=Kn(this.w5,10,this);this.L=!1;this.G(n,"onVolumeChange",this.onVolumeChange);this.G(this.element,"wheel",this.Tx)}; Vlo=function(n,Z,F){if(n.L){var y=g.I$(n.T,function(l){return l.id===n.L}); return JN(y,F).includes(Z)}y=g.I$(n.T,function(l){var m;return!((m=l.J2)==null||!m.isDefault)}); return y.length>0?JN(y,F).includes(Z):JN(n.T,F).includes(Z)}; npU=function(n,Z){var F=$fP(n,Z);F||wU("Expected subLRA found by layout ID",n.slot,n.layout,{layoutId:Z});n.N={ul:F};F?F.startRendering(F.qs()):Z===n.X&&wU("Failed to find rendering adapter for survey media layout",n.slot,n.layout,{surveyMediaLayoutId:Z})}; OhK=function(n){for(var Z="",F=0;F=0?n.start(Z):NaN}; F5P=function(n,Z,F,y,l){var m=g.kq(n.provider);Z!==1&&Z!==3&&Z!==5||g.bM(n,m,"vps",[n.gV]);mS(n,"xvt","t."+m.toFixed(3)+";m."+l.toFixed(3)+";g.2;tt."+Z+";np.0;c."+F+";d."+y)}; rcU=function(n){var Z=window.location.search,F=g.g1(n);g.N5("debug_handle_relative_url_for_query_forward_killswitch")||!F&&tK(n)&&(F=document.location.hostname);var y=cg(n);y=(F=F&&(F.endsWith("youtube.com")||F.endsWith("youtube-nocookie.com")))&&y&&y.startsWith("/api/");if(!F||y)return n;var l=jy(Z),m={};g.I5(yZp,function(a){l[a]&&(m[a]=l[a])}); return Fr(n,m)}; gB=function(n,Z,F,y,l,m){CW.call(this,n,{U:"div",K:"ytp-ad-player-overlay",D:[{U:"div",K:"ytp-ad-player-overlay-flyout-cta"},{U:"div",K:"ytp-ad-player-overlay-instream-info"},{U:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{U:"div",K:"ytp-ad-player-overlay-progress-bar"},{U:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"},{U:"div",K:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",Z,F,y);this.L=m;this.S=this.Vg("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.N=this.Vg("ytp-ad-player-overlay-instream-info");this.V=null;lmo(this)&&(n=vG("div"),g.gi(n,"ytp-ad-player-overlay-top-bar-gradients"),Z=this.N,Z.parentNode&&Z.parentNode.insertBefore(n,Z),(Z=this.api.getVideoData(2))&&Z.isListed&&Z.title&&(F=new Yy(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),F.oY(n),F.init(Tb("ad-title"),{text:Z.title},this.macros),g.S(this,F)),this.V=n);this.T=null;this.r5=this.Vg("ytp-ad-player-overlay-skip-or-preview");this.jT=this.Vg("ytp-ad-player-overlay-progress-bar"); this.zx=this.Vg("ytp-ad-player-overlay-instream-user-sentiment");this.Tx=this.Vg("ytp-ad-player-overlay-ad-disclosure-banner");this.X=l;g.S(this,this.X);this.hide()}; wlj=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);this.events.G(n,"onSnackbarMessage",function(F){switch(F){case 1:Z.api.getPlayerStateObject().isBuffering()&&Z.api.LR("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"}})}})}; sDP=function(n){g.R.call(this,{U:"div",K:"ytp-doubletap-ui-legacy",D:[{U:"div",K:"ytp-doubletap-fast-forward-ve"},{U:"div",K:"ytp-doubletap-rewind-ve"},{U:"div",K:"ytp-doubletap-static-circle",D:[{U:"div",K:"ytp-doubletap-ripple"}]},{U:"div",K:"ytp-doubletap-overlay-a11y"},{U:"div",K:"ytp-doubletap-seek-info-container",D:[{U:"div",K:"ytp-doubletap-arrows-container",D:[{U:"span",K:"ytp-doubletap-base-arrow"},{U:"span",K:"ytp-doubletap-base-arrow"},{U:"span",K:"ytp-doubletap-base-arrow"}]},{U:"div", K:"ytp-doubletap-tooltip",D:[{U:"div",K:"ytp-seek-icon-text-container",D:[{U:"div",K:"ytp-seek-icon",E8:"{{seekIcon}}"},{U:"div",K:"ytp-chapter-seek-text-legacy",E8:"{{seekText}}"}]},{U:"div",K:"ytp-doubletap-tooltip-label",E8:"{{seekTime}}"}]}]}]});this.W=n;this.V=new g.e7(this.show,10,this);this.X=new g.e7(this.hide,700,this);this.C=this.T=0;this.Ns=this.S=!1;this.N=this.Vg("ytp-doubletap-static-circle");g.S(this,this.V);g.S(this,this.X);this.hide();this.J=this.Vg("ytp-doubletap-fast-forward-ve"); this.L=this.Vg("ytp-doubletap-rewind-ve");this.W.createClientVe(this.J,this,28240);this.W.createClientVe(this.L,this,28239);this.W.logVisibility(this.J,!0);this.W.logVisibility(this.L,!0);this.S=n.j("web_show_cumulative_seek_time");this.Ns=n.j("web_center_static_circles")}; epT=function(n,Z){return(n=n.flags.get(""+Z))?n.toString():""}; L9=function(n){var Z={};g.R.call(this,{U:"div",K:"ytp-paid-content-overlay",Z:(Z["aria-live"]="assertive",Z["aria-atomic"]="true",Z["data-overlay-order"]="5",Z)});this.W=n;this.videoId=null;this.T=!1;this.innertubeCommand=this.gV=this.N=null;Z=n.B();n.j("enable_new_paid_product_placement")&&!g.TH(Z)?(this.X=new g.R({U:"a",K:"ytp-paid-content-overlay-link",Z:{href:"{{href}}",target:"_blank"},D:[{U:"div",K:"ytp-paid-content-overlay-indicator"},{U:"div",K:"ytp-paid-content-overlay-icon",E8:"{{icon}}"}, {U:"div",K:"ytp-paid-content-overlay-text",E8:"{{text}}"},{U:"div",K:"ytp-paid-content-overlay-chevron",E8:"{{chevron}}"}]}),this.G(this.X.element,"click",this.onClick)):this.X=new g.R({U:"div",s8:["ytp-button","ytp-paid-content-overlay-text"],E8:"{{text}}"});this.fade=new g.J9(this.X,250,!1,100);g.S(this,this.X);this.X.oY(this.element);g.S(this,this.fade);this.W.createServerVe(this.element,this);this.G(n,"videodatachange",this.onVideoDataChange);this.G(n,"presentingplayerstatechange",this.xb)}; tU=function(n){if(n.j("html5_onesie")&&n.errorCode)return!1;var Z=g.zi(n.a7,"ypc");n.ypcPreview&&(Z=!1);return n.uy()&&!n.loading&&(g.kb(n)||g.zi(n.a7,"heartbeat")||Z)}; N68=function(n){if(!Zg(n.adLayoutMetadata))return!1;n=n.renderingContent;return g.e(n,fF)||g.e(n,ZF)||g.e(n,ng)||g.e(n,mfY)||g.e(n,amK)||g.e(n,K5o)?!0:!1}; YZi=function(n){return{Rr:ut(n,1)}}; agU=function(n,Z,F,y,l){Z=new g.dV(g.B0({},[],!1,!!l),Z,F);l&&Z.updateValue("secondaryIcon",IEj(l));Z.setIcon(IEj(y));g.S(n,Z);n.vI.Dx(Z,!0);return Z}; c7K=function(n){vz7=2592E3*(n||1)}; r6=function(n){var Z=n.api.B(),F=n.api.getVideoData(),y=g.R6(Z)&&g.ce(n.api)&&g.b(n.api.getPlayerStateObject(),128);Z=Z.T||Z.disableSharing&&n.api.getPresentingPlayerType()!==2||!F.showShareButton||F.H1||y||F.vV||!1;y=n.api.Br().getPlayerSize().width;return!!F.videoId&&y>=n.T&&!Z}; bT8=function(n){this.mQ=n;this.N=new Map}; Gw=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; U8=function(n,Z,F,y){if(F)return RM();F={};var l=Nt();Z=g.Y(Z);for(var m=Z.next();!m.done;m=Z.next())if(m=m.value,n.canPlayType(l,m.getInfo().mimeType)||y){var a=m.N.video.quality;if(!F[a]||F[a].getInfo().dV())F[a]=m}n=[];F.auto&&n.push(F.auto);y=g.Y(HY);for(l=y.next();!l.done;l=y.next())(l=F[l.value])&&n.push(l);return n.length?FM(n):RM()}; tW=function(n,Z,F,y,l,m,a,D,p){Tf.call(this,n,Z,F,y);this.tG=l;this.uY=m;this.C=a;this.S=D;this.U8=p;this.V=!1;this.J=o5(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; qr8=function(n,Z,F,y,l,m,a,D,p,L,q,w,T){F=RAY(Z,F,y,m,a,D,p,L,q,w,T);if(F instanceof C)return F;n=wWe(Z,n,a,l,F);return n instanceof C?n:[].concat(g.t(n.zU),[n.TA])}; MU=function(n,Z,F){n.N&&(KB(n.N,Z),Z=n.N,n.N=null);for(var y=0,l=0,m=g.Y(n.D4),a=m.next();!a.done;a=m.next())if(a=a.value,a.range&&y+a.X<=n.X)y+=a.X;else{if(yU(a)&&!F&&n.X+Z.totalLength-l0}; wq7=function(n){var Z=n.X.find(function(l){return kS(n,l)}); if(Z){var F=n.app.Z4();Wc(n);var y=new g.iE(8);Z=TcP(n,Z)/1E3;eR(n,Z,{},y,"_force");F.Xp("forceParentTransition",{childPlayback:1});n.N.Xp("forceParentTransition",{parentPlayback:1})}}; bB=function(n,Z,F,y,l,m,a,D){var p,L,q,w,T,P;return g.A(function(J){switch(J.N){case 1:return p=g.Nu(n),p===4?J.return(4):g.x(J,g.me(),2);case 2:L=J.X;if(!L)throw g.Rc("wiac");if(!D||a===void 0){J.ST(3);break}return g.x(J,BnU(D,a),4);case 4:a=J.X;case 3:return q=F.lastModified||"0",g.x(J,g.sX(L),5);case 5:return w=J.X,g.RX(J,6),Ju++,g.x(J,g.$5(w,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Or:!0},function(U){if(m!==void 0&&a!==void 0){var h=""+n+"|"+Z.id+"|"+q+"|"+String(m).padStart(10, "0");h=g.nE(U.objectStore("media"),a,h)}else h=g.vX.resolve(void 0);var v=EGf(n,Z.K6()),V=EGf(n,!Z.K6()),f={fmts:lE3(y),format:F||{}};v=g.nE(U.objectStore("index"),f,v);var W=y.downloadedEndTime===-1;f=W?U.objectStore("index").get(V):g.vX.resolve(void 0);var X={fmts:"music",format:{}};U=W&&l&&!Z.K6()?g.nE(U.objectStore("index"),X,V):g.vX.resolve(void 0);return g.vX.all([U,f,h,v]).then(function(u){u=g.Y(u);u.next();u=u.next().value;Ju--;var Fp=g.Nu(n);if(Fp!==4&&W&&l||u!==void 0&&g.run(u.fmts))Fp= 1,g.h$(n,Fp);return Fp})}),8); case 8:return J.return(J.X);case 6:T=g.d4(J);Ju--;P=g.Nu(n);if(P===4)return J.return(P);g.h$(n,4);throw T;}})}; ddY=function(n,Z,F){var y=y===void 0?!0:y;return Qz(void 0,function(){return function m(){var a,D,p,L,q,w,T,P,J,U,h,v,V,f,W,X,u,Fp,nQ;return Gk(m,function($U){switch($U.N){case 1:g.Rj($U,2);a=xS.Pq();D=n&&Wbj;if(!D&&!Z)return L={},(p=F)==null||p("wasmns",(L.p=n?"1":"0",L.a=Z?"1":"0",L.s=Wbj?"1":"0",L)),$U.return(d$Y(Error("wasm.wm.ns")));q=new n$j;if(!D){$U.ST(4);break}g.RX($U,5);w=gv;return iU($U,CP(I$8(q,n)),7);case 7:return T=w($U.X),P=new Tm(T,q,!1,y),xS.Yj("winit",a),(J=F)==null||J("wasmsw", {}),$U.return(P);case 5:if(U=g.d4($U),v={},(h=F)==null||h("wasmerrw",(v.e=""+U,v)),!Z)throw Error("wasm.wm.iw: "+U);case 4:if(!Z)throw Error("wasm.wm.xx");g.RX($U,8);V=gv;return iU($U,CP(Z(q)),10);case 10:return f=V($U.X),W=new Tm({exports:f},q,!0,y),xS.Yj("winitjs",a),(X=F)==null||X("wasmsa",{}),$U.return(W);case 8:throw u=g.d4($U),nQ={},(Fp=F)==null||Fp("wasmerra",(nQ.e=""+u,nQ)),Error("wasm.wm.ia: "+u);case 2:g.cJ($U),g.zu($U,0)}})}()})}; mcK=function(n){var Z;return((Z=document.featurePolicy)==null?0:Z.allowedFeatures().includes("attribution-reporting"))?n+"&nis=6":n+"&nis=5"}; swn=function(n){switch(n){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"}}; KP=function(n){return decodeURIComponent(n.replace(/\+/g," "))}; V4n=function(n){return n.data[n.N]||0}; g.Ns3=function(n){var Z,F;return g.A(function(y){if(y.N==1)return g.x(y,g.me(),2);if(y.N!=3){Z=y.X;if(!Z)throw g.Rc("ri");return g.x(y,g.sX(Z),3)}F=y.X;return y.return(g.$5(F,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(l){var m=IDBKeyRange.bound(n+"|",n+"~");return l.objectStore("index").getAll(m).then(function(a){return a.map(function(D){return D?D.format:{}})})}))})}; Ww=function(n,Z){var F={XI:[],YM:[]},y;if((n=n.J)==null)n=void 0;else{TB7(n,n.XI,"og");ICp(n,Z);TB7(n,n.XI,"trim");var l=Ld7(n);Z=l.XI;l=l.FD;for(var m=[],a=0;a0){var T=ph(w,p);T>=0&&(q=(w.end(T)-p+.1)*1E3)}m.push({formatId:g.TL(D.info.bY.info,n.eT.t2), ph:D.info.ph,sequenceNumber:D.info.O8+n.V,Fo:L,gE:D.info.X,Co:q})}n={XI:Z,YM:m}}return(y=n)!=null?y:F}; LN=function(n){vk.call(this,n);var Z=this;this.N=!1;n.addEventListener("settingsMenuInitialized",function(){ACo(Z)}); n.addEventListener("highlightSettingsMenu",function(F){ACo(Z);var y=Z.menuItem;F==="menu_item_cinematic_lighting"&&(g.gi(y.element,"ytp-menuitem-highlighted"),g.gi(y.element,"ytp-menuitem-highlight-transition-enabled"),y.X.start())}); RS(n,"updateCinematicSettings",function(F){Z.updateCinematicSettings(F)})}; WQi=function(){i3==null&&(i3=new Cd);return i3}; f4U=function(n,Z){n.W.setOption("captions","sampleSubtitles",Z)}; F18=function(n,Z){n.settingsButton=Z;n.element.id=Z.element.getAttribute("aria-controls")}; TlP=function(n,Z){var F={};if(Z=n.app.iP(Z===void 0?1:Z)){Z=Z.getVideoData();if(k3(Z))return{};F.video_id=Z.videoId;F.author=Z.author;F.title=Z.title;F.isPlayable=yy7(Z);F.errorCode=Z.errorCode;if(Z.X&&Z.X.video){F.video_quality=Z.X.video.quality;Z=Z.X.video;var y=[];Z.fps>32&&y.push("hfr");Z.isHdr()&&y.push("hdr");Z.primaries==="bt2020"&&y.push("wcg");F.video_quality_features=y}}if(n=n.getPlaylistId())F.list=n;return F}; g.Ry=function(){try{return g.c7(),!0}catch(n){return!1}}; qz=function(n,Z){if(n.CP===n.Vi.length-1)n.CP++,Mo(n.sD,n.layout),eO(n.tD.get());else a:{if(n.CP===-1&&(n.callback.m0(n.slot,n.layout),Z>0)){wU("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",n.slot,n.layout,{indexToPlay:Z,layoutId:n.layout.layoutId});break a}n.CP=Z;Z=hP(n);if(n.CP>0){var F=n.tD.get();F.X=!1;var y={};F.N&&F.videoId&&(y.cttAuthInfo={token:F.N,videoId:F.videoId});qe("ad_to_ad",y)}F=g.e(Z.qs().renderingContent,HG);if(F==null?0:F.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var l; F=!((l=n.To.get().Sfg.get(F.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&l)}else F=!1;F?qz(n,n.CP+1):Z.startRendering(Z.qs())}}; Ik=function(n){var Z=!!n.Ur&&n.api.getPresentingPlayerType()!==2,F=n.clipStart,y=n.clipEnd,l=!0,m=!0;Z&&n.Ur?(F=n.Ur.startTimeMs/1E3,y=n.Ur.endTimeMs/1E3):(l=F>n.T.X,m=n.T.N>0&&y=Z){Z=m;break a}}Z=l}return Z<0?NaN:isT(n,F?Z:0)?n[Z].startTime:NaN}; g.SH=function(n,Z){var F=g.QF();return F?F.publish.apply(F,arguments):!1}; Gcf=function(n,Z,F){var y=Z&128?0:-1,l=n.length,m;if(m=!!l)m=n[l-1],m=m!=null&&typeof m==="object"&&m.constructor===Object;var a=l+(m?-1:0);for(Z=Z&128?1:0;Z> "+n.translationLanguage.languageName);return Z.join("")}; eXT=function(n){IG(n);n=p$(n);L$(n)?n=String(n):(ox(n),n=jv(b8,XV));return n}; hs8=function(n,Z){Sf(n,1,Z.deviceInterface);Px(n,2,Z.deviceVersion);Hm(n,3,Z.isSleeping)}; W7o=function(n){return n.X?!0:n.iY.Ns==="yt"?n.videoData.L?n.videoData.fR<25:!n.videoData.fR:!1}; XD=function(n,Z,F,y){CW.call(this,n,{U:"div",K:"ytp-ad-feedback-dialog-background",D:[{U:"div",K:"ytp-ad-feedback-dialog-container",D:[{U:"div",K:"ytp-ad-feedback-dialog-form",Z:{role:"dialog",tabindex:"-1"},D:[{U:"div",K:"ytp-ad-feedback-dialog-title",D:[{U:"span",E8:"{{title}}"}]},{U:"span",K:"ytp-ad-info-dialog-feedback-options-title",E8:"{{reasonsTitle}}"},{U:"div",K:"ytp-ad-info-dialog-feedback-options"},{U:"div",K:"ytp-ad-feedback-dialog-confirm-container",D:[{U:"button",K:"ytp-ad-feedback-dialog-cancel-button", E8:"{{cancelLabel}}"},{U:"button",K:"ytp-ad-feedback-dialog-confirm-button",E8:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",Z,F,y);this.V=[];this.N=null;this.S=this.Vg("ytp-ad-feedback-dialog-cancel-button");this.L=this.Vg("ytp-ad-feedback-dialog-confirm-button");this.Tx=this.Vg("ytp-ad-info-dialog-feedback-options");this.zx=this.Vg("ytp-ad-feedback-dialog-title");this.T=this.X=null;this.hide()}; g.eX=function(n){var Z=new gA;return Z.isAvailable()?n?new zp(Z,n):Z:null}; Iqe=function(n,Z,F,y){if(n)if(Array.isArray(n)){var l=y;for(y=0;y500));y++);y=l}else if(typeof n==="object")for(l in n){if(n[l]){var m=l;var a=n[l],D=Z,p=F;m=typeof a!=="string"||m!=="clickTrackingParams"&&m!=="trackingParams"?0:(a=JDo(atob(a.replace(/-/g,"+").replace(/_/g,"/"))))?v9U(m+".ve",a,D,p):0;y+=m;y+=v9U(l,n[l],Z,F);if(y>500)break}}else F[Z]=z7(n),y+=F[Z].length;else F[Z]=z7(n),y+=F[Z].length;return y}; QDY=function(n,Z){n.W.getPlayerStateObject().isCued()||Z?Z&&(n.Wr.hide(),n.zx.hide(),n.muteButton&&n.muteButton.YV(!1),n.S&&n.S.YV(!1),n.V&&n.V.YV(!1),n.W.Ja(n.w1())):Z||(n.Wr.show(),n.zx.show(),n.muteButton&&n.muteButton.YV(!0),n.S&&n.S.YV(!0),n.V&&n.V.YV(!0),n.Cz())}; pGi=function(n,Z){n=n.player.B();if(Ng(n)||JQ(n)){n=g.BT("INNERTUBE_CONTEXT");var F,y;(n==null?0:(F=n.adSignalsInfo)==null?0:F.advertisingId)&&typeof(n==null?void 0:(y=n.adSignalsInfo)==null?void 0:y.limitAdTracking)!=="undefined"&&(Z.advertisingId=n.adSignalsInfo.advertisingId,Z.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Z.limitAdTracking=n.adSignalsInfo.limitAdTracking)}}; YDT=function(n){return{q1:u5(n,1,Ljo),trackType:ut(n,2),qg:ut(n,3),timeRange:u5(n,4,iPY)}}; WIj=function(n,Z){this.N=n;this.options=Z;this.transactionCount=0;this.T=Math.round((0,g.tP)());this.X=!1}; fT=function(n,Z){var F=n.adCpn||n.provider.videoData.clientPlaybackNonce,y=n.provider.getCurrentTime(F);g.bM(n,Z,"cmt",[y.toFixed(3)]);F=y=n.provider.FY(F);if((!n.S||n.provider.Y.j("html5_shorts_gapless_no_gllat")&&eF(n.provider.videoData)?0:F*1E3>n.S.WD+100)&&n.S){var l=n.S;F=l.isAd;y=y*1E3-l.WD;n.mp=Z*1E3-l.NBp-y-l.ZNT;l=(0,g.tP)()-y;Z=n.mp;y=n.provider.videoData;var m=y.isAd();if(F||m){m=(F?"ad":"video")+"_to_"+(m?"ad":"video");var a={};y.C&&(a.cttAuthInfo={token:y.C,videoId:y.videoId});a.startTime= l-Z;qe(m,a);g.HS({targetVideoId:y.videoId,targetCpn:y.clientPlaybackNonce},m);fZ("pbs",l,m)}else l=n.provider.mQ.Hj(),l.C!==y.clientPlaybackNonce?(l.S=y.clientPlaybackNonce,l.X=Z):y.pP()||g.yi(new g.FV("CSI timing logged before gllat",{cpn:y.clientPlaybackNonce}));n.Xp("gllat",{l:n.mp.toFixed(),prev_ad:+F});delete n.S}}; K7=function(n){this.value=n}; cvp=function(){var n=["pbs","pbu"];g.gU(function(){Ej("").info.actionType="watch";n&&Ka("TIMING_AFT_KEYS",n);Ka("TIMING_ACTION","watch");var Z=W$e(g.BT("TIMING_INFO",{}));Object.keys(Z).length>0&&Ir(Z);Z={isNavigation:!0,actionType:pa(g.BT("TIMING_ACTION"))};var F=g.BT("PREVIOUS_ACTION");F&&(Z.previousAction=pa(F));if(F=g.BT("CLIENT_PROTOCOL"))Z.httpProtocol=F;if(F=g.BT("CLIENT_TRANSPORT"))Z.transportProtocol=F;(F=g.f_())&&F!=="UNDEFINED_CSN"&&(Z.clientScreenNonce=F);F=g9P();if(F===1||F===-1)Z.isVisible= !0;F=cM().loadType==="cold";var y=Cli();F||(F=y.yt_lt==="cold");if(F){Z.loadType="cold";F=Cli();y=w_j();var l=XN(),m=g.BT("CSI_START_TIMESTAMP_MILLIS",0);m>0&&!g.N5("embeds_web_enable_csi_start_override_killswitch")&&(l=m);l&&(zv("srt",y.responseStart),F.prerender!==1&&D0(l));F=B8n();F>0&&zv("fpt",F);F=w_j();F.isPerformanceNavigationTiming&&Ir({performanceNavigationTiming:!0},void 0);zv("nreqs",F.requestStart,void 0);zv("nress",F.responseStart,void 0);zv("nrese",F.responseEnd,void 0);F.redirectEnd- F.redirectStart>0&&(zv("nrs",F.redirectStart,void 0),zv("nre",F.redirectEnd,void 0));F.domainLookupEnd-F.domainLookupStart>0&&(zv("ndnss",F.domainLookupStart,void 0),zv("ndnse",F.domainLookupEnd,void 0));F.connectEnd-F.connectStart>0&&(zv("ntcps",F.connectStart,void 0),zv("ntcpe",F.connectEnd,void 0));F.secureConnectionStart>=XN()&&F.connectEnd-F.secureConnectionStart>0&&(zv("nstcps",F.secureConnectionStart,void 0),zv("ntcpe",F.connectEnd,void 0));u_&&"getEntriesByType"in u_&&Kr3();F=[];if(document.querySelector&& u_&&u_.getEntriesByName)for(var a in SDY)SDY.hasOwnProperty(a)&&(y=SDY[a],QGT(a,y)&&F.push(y));if(F.length>0)for(Z.resourceInfo=[],a=g.Y(F),F=a.next();!F.done;F=a.next())Z.resourceInfo.push({resourceCache:F.value})}Ir(Z);Z=GN();Z.preLoggedGelInfos||(Z.preLoggedGelInfos=[]);a=Z.preLoggedGelInfos;Z=I6T();F=void 0;for(y=0;y1.5&&n.loader.Xp("overshoot",{sq:Z.O8,br:F,max:y}))}}; jDU=function(n){return{bq:ut(n,1),httpStatus:ut(n,2),body:Mu(n,4)}}; fOU=function(n,Z,F,y){var l=tc(Z,F),m=n.qd.J.get(l)||null;if(!m||m.CR())return null;n.qd.J.remove(l);if(g.b(m.getPlayerState(),128))return m.dispose(),null;if(m===n.zo({playerType:Z}))return n.bN.infoGel({isCacheHit:!0}),m;if((m.getVideoData().oauthToken||F.oauthToken)&&m.getVideoData().oauthToken!==F.oauthToken)return null;Z===1&&(Z=n.Z4().getVideoData(),eF(Z)&&Z.isAd()&&y||b2(n));y||n.x7(m,!0);n.bN.infoGel({isCacheHit:!0});return m}; UfT=function(n){return n===void 0||n instanceof Yd8?n:new Yd8(n)}; RcP=function(n,Z){n.Er&&n.Er.equals(Z)||(n.Er&&n.Er.dispose(),n.Er=Z)}; BoQ=function(n,Z,F,y,l){try{if(F){var m=yT.get(Z);if(m)return new m(n.W);H1f(n,Z,y,l)}else Pb(n,Z)}catch(a){Pb(n,Z),g.ZW(a)}return null}; p_K=function(n,Z,F,y,l){if(!y.info.T){if(F.length===0)F.push(y);else{var m;(n=(m=F.pop())==null?void 0:g.nK(m,y))?F.push(n):F.push(y)}return l}var a;(F=(a=F.pop())==null?void 0:g.nK(a,y))||(F=y);if(F.info.N)return n.logger&&n.logger({incompleteSegment:F.info.bd()}),l;y=n.dh(F);l=y.O8;y={clipId:y.clipId,formatId:y.formatId,startTimeMs:y.startTimeMs,durationMs:y.CI,Au:l,hV:l};l=zMU(Z,y.startTimeMs);if(m=F=l>=0?Z[l]:null){m=y;var D=l;a=F.startTimeMs+F.durationMs;var p=m.startTimeMs+m.durationMs;if(m.startTimeMs- a>n.X)m=!1;else if(HKP(n,F.formatId,m.formatId))F.durationMs=Math.max(a,p)-F.startTimeMs,F.hV=Math.max(F.hV,m.hV),m=!0;else if(Math.abs(F.startTimeMs-m.startTimeMs)<=n.X)if(F.durationMs>m.durationMs+n.X){var L=F.formatId,q=F.Au;D=F.hV;F.formatId=m.formatId;F.durationMs=m.durationMs;F.Au=m.Au;F.hV=m.hV;m.formatId=L;m.startTimeMs=p;m.durationMs=a-p;m.Au=q;m.hV=D;m=!1}else F.formatId=m.formatId,m=!0;else a>m.startTimeMs&&(a>p&&(Z.splice(D+1,0,{formatId:F.formatId,startTimeMs:p,durationMs:a-p,Au:m.hV+ 1,hV:F.hV}),n.logger&&n.logger({splitOldStart:(L=F.startTimeMs)==null?void 0:L.toFixed(3),splitOldEnd:a==null?void 0:a.toFixed(3),splitNewStart:(q=m.startTimeMs)==null?void 0:q.toFixed(3),splitNewEnd:p==null?void 0:p.toFixed(3)})),F.durationMs=m.startTimeMs-F.startTimeMs,F.hV=m.Au-1),m=!1}m?y=F:(l+=1,Z.splice(l,0,y));L=0;for(q=l+1;q=p+F.X?F=!0:D+F.X(Z==null?void 0:Z.maxWidth)||(n==null?void 0:n.maxHeight)>(Z==null?void 0:Z.maxHeight)}; AlT=function(n,Z,F,y,l,m){m=m===void 0?0:m;g.I.call(this);var a=this;this.policy=n;this.N=Z;this.X=F;this.kA=l;this.S=m;this.V=this.T=null;this.currentVideoDuration=this.C=-1;this.J=!1;this.md=new dZ;this.Ot=y-Z.Kn()*1E3;this.md.then(void 0,function(){}); this.timeout=new g.e7(function(){a.pN("timeout")},1E4); g.S(this,this.timeout);this.L=isFinite(y)||this.kA.B().experiments.RY("html5_pseudogapless_shorts")&&eF(Z.getVideoData());this.status={status:0,error:null}}; FSU=function(n,Z,F){TYP(n);IC(n,F);IC(n,~F);Ip.Wd(n.XX,n.window,Z,F,n.pending);n.pending+=F}; N_p=function(n){if(!n.CR())if(n.X.length===0)n.callback(n.V);else{var Z=n.X[0],F=n.T[Z],y=hx8(n,F);if(Kb&&Kb.keySystem===Z&&Kb.qfQ===JSON.stringify(y))n.Xp("remksa",{re:!0}),yCp(n,F,Kb.keySystemAccess);else{var l,m;n.Xp("remksa",{re:!1,ok:(m=(l=Kb)==null?void 0:l.keySystem)!=null?m:""});Kb=void 0;navigator.requestMediaKeySystemAccess(Z,y).then(mz(function(a){yCp(n,F,a,y)}),mz(function(){n.S=!n.S&&n.T[n.X[0]].flavor==="widevine"; n.S||n.X.shift();N_p(n)}))}}}; Oc3=function(n){this.N=n}; h3e=function(n,Z,F){var y=g.ri(Z.iY)&&!Z.iY.C;if(Z.iY.oA&&(sp(Z.iY)||Z.iY.w5==="shortspage"||y5(Z.iY)||y)&&!n.T){n.T=!0;n.C=Z.clientPlaybackNonce;g.BT("TIMING_ACTION")||Ka("TIMING_ACTION",n.Y.csiPageType);n.Y.csiServiceName&&Ka("CSI_SERVICE_NAME",n.Y.csiServiceName);if(n.N){y=n.N.Hj();for(var l=g.Y(Object.keys(y)),m=l.next();!m.done;m=l.next())m=m.value,fZ(m,y[m],n.timerName);y=g.gU(W$e)(n.N.sR);g.HS(y,n.timerName);y=n.N;y.N={};y.sR={}}g.HS({playerInfo:{visibilityState:g.gU(g9P)()},playerType:"LATENCY_PLAYER_HTML5"}, n.timerName);n.S!==Z.clientPlaybackNonce||Number.isNaN(n.X)||(uO("_start",n.timerName)?F=g.gU(AG)("_start",n.timerName)+n.X:g.yi(new g.FV("attempted to log gapless pbs before CSI timeline started",{cpn:Z.clientPlaybackNonce})));F&&!uO("pbs",n.timerName)&&kY(n,F)}}; JA8=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);n.addEventListener("settingsMenuInitialized",function(){var F=new nd(Z.api,Z.api.zj());g.S(Z,F)})}; VQT=function(n,Z,F){if(!(F in Z))return!1;Z=Z[F];Array.isArray(Z)||(Z=[Z]);Z=g.Y(Z);for(F=Z.next();!F.done;F=Z.next()){F=F.value;var y={CPN:n.api.getVideoData().clientPlaybackNonce};F=g.tM(F,y);y=void 0;y=y===void 0?!1:y;(y=kF(en(F,Epj),F,y,"Active View 3rd Party Integration URL"))||(y=void 0,y=y===void 0?!1:y,y=kF(en(F,OmU),F,y,"Google/YouTube Brand Lift URL"));y||(y=void 0,y=y===void 0?!1:y,y=kF(en(F,cZY),F,y,"Nielsen OCR URL"));g.yM(F,void 0,y)}return!0}; qVT=function(n,Z,F){var y=0;if(n.q$!==0){do{var l=n.XX[n.VM+y*2]<<8|n.XX[n.VM+y*2+1];var m=n.XX[n.YH+y];y++;if(l===0)vb(n,m,Z);else{var a=rm[m];vb(n,a+256+1,Z);var D=Wi[a];D!==0&&(m-=AY[a],V_(n,m,D));l--;a=l<256?Rp[l]:Rp[256+(l>>>7)];vb(n,a,F);D=Go[a];D!==0&&(l-=x3[a],V_(n,l,D))}}while(y1080&&!n.jR&&(n.aY=36700160,n.d5=5242880,n.fR=Math.max(4194304,n.fR),n.jR=!0);Z.video.qualityOrdinal>2160&&!n.Cy&&(n.aY=104857600,n.Qg=13107200,n.Cy=!0);g.jf(n.iY.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?Z.isEncrypted()&&g.N9()&&g.tv("samsung")&&(g.tv("kant")||g.tv("muse"))&&(n.Qg=g.jf(n.iY.experiments,"html5_samsung_kant_limit_max_bitrate")):Z.isEncrypted()&&g.N9()&&g.tv("kant")&&(n.Qg=1310720);n.U9!==0&&Z.isEncrypted()&& (n.Qg=n.U9);n.Ji!==0&&Z.isEncrypted()&&F&&(n.Qg=n.Ji);Z.Qg&&(n.WP=Math.max(n.k0,Math.min(n.fR,5*Z.Qg)))}; V_U=function(){xW(f77);var n=xW(Gf);n.N!=null&&n.N.N?LXK(n.N.N):yp().update(G5)}; vpe=function(n){var Z=Z===void 0?!1:Z;n.mediaElement&&(n.KR?(vH(n),n.MN(),jvj(n,Z)):(n.videoData.zx&&n.videoData.zx.G1(),n.mediaElement.stopVideo()),n.playVideo())}; b9U=function(n,Z){var F=yu(n.videoTrack).find(function(y){return y.startTime>=Z&&yDQ(n,y.startTime,!1)}); return F&&F.startTime0)for(var Z=g.Y(n.videoData.sabrContextUpdates.keys()),F=Z.next();!F.done;F=Z.next()){F=F.value;var y=void 0;((y=n.videoData.sabrContextUpdates.get(F))==null?0:y.sendByDefault)&&n.videoData.jT.add(F)}if(n.policy.Ns&&n.N.length)for(Z=g.Y(n.N),F=Z.next();!F.done;F=Z.next())(F=F.value.HY())&&F.type&&F.sendByDefault&&n.videoData.jT.add(F.type)}; Imn=function(n,Z){var F=n.C[Z],y=F==="End of video"||F==="End of playlist";F==="Off"&&(n.N="");n.W.getPlayerState()!==0&&n.W.getPlayerState()!==5||!y?(n.T=Z,g.$K.prototype.LN.call(n,Z),n.gB(Z),n.W.LR("onSleepTimerSettingsChanged",F)):n.W.LR("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; g.fm7=function(n,Z,F,y){var l=n.C!==F,m=n.S!==y;n.un=Z;n.C=F;n.S=y;Ul(n)&&(Z=n.X)!=null&&(Z.scale=y?1.5:1);NAU(n);n.N.length===1&&(n.N[0].width=F||0);l&&g.CV(n);n.X&&m&&Ul(n)&&(n.X.isEnabled&&(F=n.S?135:90,y=F-n.w5,n.Yi.style.height=F+"px",g.a$(n.Tx,"transform","translateY("+-y+"px)"),g.a$(n.progressBar,"transform","translateY("+-y+"px)")),J7n(n.X))}; q4=function(n){vk.call(this,n);var Z=this;this.events=new g.IS(n);g.S(this,this.events);RS(this.api,"updateFullerscreenEduButtonSubtleModeState",function(y){Z.updateFullerscreenEduButtonSubtleModeState(y)}); RS(this.api,"updateFullerscreenEduButtonVisibility",function(y){Z.updateFullerscreenEduButtonVisibility(y)}); var F=n.B();n.j("external_fullscreen_with_edu")&&F.externalFullscreen&&wM(F)&&F.controlsType==="1"&&this.events.G(n,"standardControlsInitialized",function(){Z.N=new cl(n);g.S(Z,Z.N);n.ob(Z.N)})}; AZT=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},D:[{U:"path",Tu:!0,Z:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; RFj=function(n,Z,F,y){n||(n=Z&&W5i.hasOwnProperty(Z)&&rZp.hasOwnProperty(Z)?rZp[Z]+"_"+W5i[Z]:void 0);Z=n;if(!Z)return null;n=Z.match(xfY);if(!n||n.length!==5)return null;if(n=Z.match(xfY)){var l=Number(n[3]),m=[7,8,10,5,6];n=!(Number(n[1])===1&&l===8)&&m.indexOf(l)>=0}else n=!1;return F||y||n?Z:null}; b3=function(n,Z){n=g.Y(n.dW.values());for(var F=n.next();!F.done;F=n.next())if(F.value.layoutId===Z)return!0;return!1}; G8p=function(n,Z,F){isNaN(F)||(n.w5+=F);isNaN(Z)||(n.aY+=Z)}; uwj=function(n){var Z=n.getVideoData(),F=n.HV(),y=F.w1(),l=n.B(),m=n.sM(),a=m.OY*8/1024,D=m.cR/1024,p=m.rE,L=m.tU,q=m.playerState.state.toString(16),w=F.getCurrentTime().toFixed(2),T=dr(F.WE(),",",3),P="";if(Z.isDaiEnabled()){Z.enableServerStitchedDai&&(P+=Z.DK?"DS":"SS");P=Z.Cq()?P+"LIFA, ":P+"DAI, ";var J=m.V0;J&&(P+=J)}jK(Z)&&!Z.Cq()&&(P+="LIFAE, ");YA(Z)&&(P+="SABR, ");if(Z.fetchType){switch(Z.fetchType){case "onesie":J="o";break;case "gp":J="gp";break;default:J="gvi"}P+="vd:"+J+", "}(l=l.Z8)&& (P=l.N?P+"wa, ":P+"w, ");P+="s:"+q+" t:"+w+" b:"+T+" ";F.isSeeking()&&(P+="S");F.isPaused()&&(P+="P");F.isEnded()&&(P+="E");n.isOrchestrationLeader()&&(P+=" L");(F=m.mp)&&(P+=" l:"+F.toFixed());F=m.currentTime;q=Z.kL;F&&F>q.start&&F>=5;U+=v}l=U.substr(0,4)+" "+U.substr(4,4)+" "+U.substr(8,4)+" "+(U.substr(12,4)+" "+U.substr(16,4))}else l="";a={video_id_and_cpn:String(Z.videoId)+" / "+l,codecs:"",dims_and_frames:"",bandwidth_kbps:a.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:L?"":"display:none",drm:L,debug_info:F,extra_debug_info:"",bandwidth_style:T,network_activity_style:T,network_activity_bytes:D.toFixed(0)+" KB",shader_info:w,shader_info_style:w?"":"display:none",playback_categories:""};D=y.clientWidth+"x"+y.clientHeight+(q>1?"*"+q.toFixed(2):"");p="-";m.totalVideoFrames&&(p=(m.droppedVideoFrames||0)+" dropped of "+m.totalVideoFrames);a.dims_and_frames=D+" / "+p;n=n.getVolume();D=H9f(Z);var f;if((f=Z.V)==null?0:f.audio.X)f= "VB";else{var W;f=((W=Z.V)==null?0:W.audio.N)?"DRC":Math.round(n*D)+"%"}W=Math.round(n)+"% / "+f;f=Z.Wu.toFixed(1);isFinite(Number(f))&&(W+=" (content loudness "+f+"dB)");a.volume=W;a.resolution=y.videoWidth+"x"+y.videoHeight;if(y=Z.X){if(W=y.video)f=W.fps,f>1&&(a.resolution+="@"+f),(f=m.Ub)&&f.video&&(a.resolution+=" / "+f.video.width+"x"+f.video.height,f.video.fps>1&&(a.resolution+="@"+f.video.fps)),a.codecs=hrU(y),!Z.V||y.audio&&y.video?y.cz&&(a.codecs+=" / "+y.cz+"A"):a.codecs+=" / "+hrU(Z.V), W.N||W.primaries?(f=W.N||"unknown",f==="smpte2084"?f+=" (PQ)":f==="arib-std-b67"&&(f+=" (HLG)"),a.color=f+" / "+(W.primaries||"unknown"),a.color_style=""):a.color_style="display:none";if(y.debugInfo)for(a.fmt_debug_info="",y=g.Y(y.debugInfo),W=y.next();!W.done;W=y.next())W=W.value,a.fmt_debug_info+=W.label+":"+W.text+" ";a.fmt_debug_info_style=a.fmt_debug_info&&a.fmt_debug_info.length>0?"":"display:none"}y=Z.isLivePlayback;W=Z.z7;a.live_mode_style=y||W?"":"display:none";a.live_latency_style=y?"": "display:none";if(W)a.live_mode="Post-Live"+(wk(Z)?" Manifestless":"");else if(y){W=m.a8;a.live_latency_secs=W.toFixed(2)+"s";y=wk(Z)?"Manifestless, ":"";Z.sV&&(y+="Windowed, ");f="Uncertain";if(W>=0&&W<120)if(Z.latencyClass&&Z.latencyClass!=="UNKNOWN")switch(Z.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=Z.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";y+=f;(W=m.eE)&&(y+=", seq "+W.sequence);a.live_mode=y}!m.isGapless||eF(Z)&&m.vj||(a.playback_categories+="Gapless ");a.playback_categories_style=a.playback_categories?"":"display:none";a.bandwidth_samples=m.Us;a.network_activity_samples=m.Uy;a.live_latency_samples=m.fu;a.buffer_health_samples=m.ue;m=g.ww(Z);if(Z.cotn||m)a.cotn_and_local_media=(Z.cotn?Z.cotn:"null")+" / "+m;a.cotn_and_local_media_style=a.cotn_and_local_media?"":"display:none"; bI(Z,"web_player_release_debug")?(a.release_name=K[25],a.release_style=""):a.release_style="display:none";a.debug_info&&P.length>0&&a.debug_info.length+P.length<=60?a.debug_info+=" "+P:a.extra_debug_info=P;a.extra_debug_info_style=a.extra_debug_info&&a.extra_debug_info.length>0?"":"display:none";return a}; R33=function(n,Z,F){var y=0;n=n.N.N.get(F);if(!n)return-1;n=g.Y(n);for(F=n.next();!F.done;F=n.next()){if(F.value.cpn===Z)return y;y++}return-1}; spo=function(n){var Z=n.T[n.V];if(Z){var F=n.J[Z];Z=F.playerVars;F=F.playerType;n.N=!0;n.V++;var y=n.api.getVideoData(1);Z=Object.assign({oauth_token:y.oauthToken},Z);n.api.loadVideoByPlayerVars(Z,!0,F,!0);n.N=!1}}; gp8=function(n){this.AG=UO(n)}; imK=function(n,Z){n.N&&(g.b(Z,8)?(n.X=!0,n.KJ(),n.N.start()):(g.b(Z,2)||g.b(Z,64))&&n.videoId&&(n.videoId=null))}; U8T=function(n){var Z=g.Y(n.split("."));n=Z.next().value;Z=Z.next().value;return[Number(n),Z]}; g.Of=function(n,Z,F){if(g.Zc(F))return n;F=g.P$f(F);if(typeof n==="string")return Yk(n,g.J5(Z),F);g.JJ(n,Z,F);return n}; CQf=function(){var n=["metadata_type_invideo_overlay_ad_renderer"];U2().forEach(function(Z){n.push(Z)}); return{Nj:n,ZM:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; SgU=function(n){var Z=Pe(n);return Z&&Z.durationMs?n_(Z.durationMs):n.paidContentOverlayDurationMs}; pHK=function(n,Z){if(!uB(n)&&!n.CR()){if(!(n.w5||(n.w5=!0,n.T>0))){var F=AJ(n);F=bB(n.policy.V,n.N.info,Xc(n),F,n.policy.hG);z0(n,F)}if(Z.info.type===1){if(n.n6){tm(n,Error("Woffle: Expect INIT slices to always start us off"));return}n.initRange=Ic(0,Z.X.totalLength)}else if(Z.info.type===2)n.n6&&n.n6.type===1||tm(n,Error("Woffle: Index before init")),n.indexRange=Ic(n.initRange.end+1,Z.X.totalLength);else if(Z.info.type===3){if(!n.n6){tm(n,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(n.n6.type===3&&!v0(n.n6,Z.info)&&(n.Pr=[],Z.info.O8!==eJ(n.n6)||Z.info.N!==0))return;if(Z.info.T){F=g.Y(n.Pr);for(var y=F.next();!y.done;y=F.next())uz7(n,y.value);n.Pr=[]}else{n.Pr.push(Z);n.n6=Z.info;return}}else{tm(n,Error("Woffle: Unexpected slice type"));return}n.n6=Z.info;uz7(n,Z);Lt8(n)}}; FCn=function(n,Z){var F=n.provider.Y;g.Cv(n.provider.Y,g.uf(n.provider.videoData)).then(function(y){var l=n.provider.Y.pageId,m=n.provider.Y.sendVisitorIdHeader?n.provider.videoData.visitorData:void 0,a=n.provider.Y.j("vss_pings_using_networkless")||n.provider.Y.j("kevlar_woffle"),D=n.provider.Y.j("allow_skip_networkless");y=RqU(Z,F,l,m,y);gYT(Z,y,{token:n.provider.videoData.C,O6:n.provider.videoData.zy,mdxEnvironment:n.provider.videoData.mdxEnvironment},F,void 0,a&&!D,!1,!0)})}; bCn=function(n){return typeof n.className=="string"?n.className:n.getAttribute&&n.getAttribute("class")||""}; HnK=function(n,Z,F,y){y=y===void 0?0:y;isNaN(n.Ns)||(n.Xp("aswm",{sq:Z[0].O8,id:Z[0].bY.info.itag,xtag:Z[0].bY.info.N,ep:Date.now()-n.Ns}),n.Ns=NaN);switch(F.info.type){case 1:case 2:QjT(n,F);break;case 4:var l=F.info.bY,m=l.s$(F),a;((a=n.N)==null?0:a.type===4)&&X5p(F.info,n.N)&&(n.N=l.vK(n.N).pop());F=g.Y(m);for(l=F.next();!l.done;l=F.next())HnK(n,Z,l.value,y);break;case 3:F.info.bY.info.video?(l=n.timing,l.zx||(l.zx=(0,g.tP)(),g.gF("fvb_r",l.zx,l.N))):(l=n.timing,l.C||(l.C=(0,g.tP)(),g.gF("fab_r", l.C,l.N)));YTo(n.T,Z,F,y);n.policy.N&&lkU(n);break;case 6:YTo(n.T,Z,F,y),n.N=F.info}}; bmp=function(n,Z,F,y){n.T=y;y=Z.sS;var l=Z.playerVars,m=Z.playerType;n.J=Z;l&&n.api.enqueueVideoByPlayerVars(l,m,F,y)}; XqU=function(n){n.ou=!n.ou;n.uW=!0;n.element.classList.toggle("ytp-retro-player",n.ou);n.resize();n.uW=!1;n.app.JG.LR("onRetroModeChanged",n.ou)}; z3Q=function(n,Z,F){n1.call(this,"display-underlay-text-grid-cards",n,{},Z,F);this.interactionLoggingClientData=F}; tZj=function(n){return g.zi(n,"UHD2")||g.zi(n,"UHD2HDR")?"highres":g.zi(n,"UHD1")||g.zi(n,"UHD1HDR")?"hd2160":g.zi(n,"HD")||g.zi(n,"HDHDR")?"hd1080":g.zi(n,"HD720")||g.zi(n,"HD720HDR")?"hd720":"large"}; tQP=function(n,Z){var F=n.startSecs+n.iy;F=F<=0?null:F;if(F===null)return null;switch(n.event){case "start":case "continue":case "stop":break;case "predictStart":if(Z)break;return null;default:return null}Z=Math.max(n.startSecs,0);return{FS:new Ca(Z,F),GxR:new Y8(Z,F-Z,n.context,n.identifier,n.event,n.N)}}; ilP=function(n){var Z,F,y,l;return!!((Z=n.kV)==null?0:(F=Z.title)==null?0:F.content)||!!((y=n.kV)==null?0:(l=y.bodyText)==null?0:l.content)}; xe=function(n,Z,F,y,l,m,a,D,p,L){this.V=n;this.X=Z;this.N=F;this.U8=y;this.xs=l;this.T=m;this.tG=a;this.Em=D;this.C6=p;this.loadPolicy=L===void 0?1:L}; i6=function(n){var Z=ar(n,!0),F=n.N.byteOffset+n.pos;F=new DataView(n.N.buffer,F,Math.min(Z,n.N.buffer.byteLength-F));F=new lY(F,n.start+n.pos);n.pos+=Z;return F}; f57=function(n,Z,F,y,l,m){y=y===void 0?[]:y;var a=KX(n.X.get(),Z);if(a){var D=n.TN.get().rB(Z,F),p=pX(n,LX(a),a,l,m);y.forEach(function(L,q){L.baseUrl&&(n.T.send(L.baseUrl,p,D,L.attributionSrcMode),L.serializedAdPingMetadata&&n.aW.N("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,a,new eSe(L,q),void 0,void 0,a.adLayoutLoggingData))})}else wU("Trying to track from an unknown layout.",void 0,void 0,{layoutId:Z, trackingType:F})}; WBe=function(){if(!k8n)return null;var n=k8n();return"open"in n?n:null}; Ae=function(n){var Z,F=n.policy.S&&((Z=n.loader)==null?void 0:Z.HP());Z=n.loader.getCurrentTime()||0;Z=d3e(n,Z);if(n.policy.jP&&n.loader.isSeeking()){var y=bwf(n.videoTrack,Z);n.loader.Xp("asmtfnctv",{b:Z,a:y});isNaN(y)||(Z=y)}y=n.loader.Kn()||0;Z+=y;y=fC(n.videoData)||g.HJ(n.videoData);var l=0;F?(y&&(l=Number.MAX_SAFE_INTEGER),n.videoData.sV&&(l=Math.ceil(n.videoData.ze*1E3))):l=Math.ceil(Z*1E3);return Math.min(Number.MAX_SAFE_INTEGER,l)}; e3K=function(n,Z){Z=g.xq("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:Z.toString()});n.updateValue("seekTime",Z)}; G1Y=function(n){var Z={cpn:n.clientPlaybackNonce,c:n.iY.N.c,cver:n.iY.N.cver};n.iC&&(Z.ptk=n.iC,Z.oid=n.tP,Z.ptchn=n.W3,Z.pltype=n.sb,n.HG&&(Z.m=n.HG));return Z}; PUP=function(){g.R.call(this,{U:"div",K:"ytp-fine-scrubbing-chapter-title",D:[{U:"div",K:"ytp-fine-scrubbing-chapter-title-content",E8:"{{chapterTitle}}"}]})}; HmY=function(n,Z,F){n.r5=!0;F=new DI(Z,F);n.Y.j("html5_eme_loader_sync")&&(n.C.get(Z)||n.C.set(Z,F));lrU(n,F)}; SsT=function(n){mn(n,"cueVideoById",n.PZ);mn(n,"loadVideoById",n.wxr);mn(n,"cueVideoByUrl",n.Tq);mn(n,"loadVideoByUrl",n.in8);mn(n,"playVideo",n.UbQ);mn(n,"pauseVideo",n.pauseVideo);mn(n,"stopVideo",n.L9Y);mn(n,"clearVideo",n.clearVideo);mn(n,"getVideoBytesLoaded",n.HF);mn(n,"getVideoBytesTotal",n.Zm);mn(n,"getVideoLoadedFraction",n.tR);mn(n,"getVideoStartBytes",n.hd);mn(n,"cuePlaylist",n.cuePlaylist);mn(n,"loadPlaylist",n.EVx);mn(n,"nextVideo",n.pxs);mn(n,"previousVideo",n.lCT);mn(n,"playVideoAt", n.iNY);mn(n,"setShuffle",n.setShuffle);mn(n,"setLoop",n.setLoop);mn(n,"getPlaylist",n.Ke);mn(n,"getPlaylistIndex",n.getPlaylistIndex);mn(n,"getPlaylistId",n.getPlaylistId);mn(n,"loadModule",n.Gs);mn(n,"unloadModule",n.Kc);mn(n,"setOption",n.xC);mn(n,"getOption",n.rk);mn(n,"getOptions",n.KS);mn(n,"mute",n.GNp);mn(n,"unMute",n.o68);mn(n,"isMuted",n.isMuted);mn(n,"setVolume",n.rB5);mn(n,"getVolume",n.getVolume);mn(n,"seekTo",n.wju);mn(n,"getPlayerMode",n.getPlayerMode);mn(n,"getPlayerState",n.cF);mn(n, "getAvailablePlaybackRates",n.getAvailablePlaybackRates);mn(n,"getPlaybackQuality",function(){return n.getPlaybackQuality(1)}); mn(n,"setPlaybackQuality",n.jsr);mn(n,"getAvailableQualityLevels",n.VZ);mn(n,"getCurrentTime",n.oD);mn(n,"getDuration",n.jh);mn(n,"addEventListener",n.UC);mn(n,"removeEventListener",n.LFs);mn(n,"getDebugText",n.s2);mn(n,"getVideoData",function(){return TlP(n)}); mn(n,"addCueRange",n.bX);mn(n,"removeCueRange",n.removeCueRange);mn(n,"setSize",n.setSize);mn(n,"getApiInterface",n.getApiInterface);mn(n,"destroy",n.destroy);mn(n,"mutedAutoplay",n.mutedAutoplay);var Z=n.app.B();Z.C||(mn(n,"getVideoEmbedCode",n.getVideoEmbedCode),mn(n,"getVideoUrl",n.xz));mn(n,"getMediaReferenceTime",n.O2);mn(n,"getSize",n.getSize);mn(n,"setFauxFullscreen",n.oki);Z.j("embeds_enable_move_set_center_crop_to_public")&&mn(n,"setCenterCrop",n.setCenterCrop);Z.C||mn(n,"logImaAdEvent", n.logImaAdEvent);mn(n,"preloadVideoById",n.CHp);mn(n,"wakeUpControls",n.wakeUpControls)}; A9=function(n,Z,F){n.W.j("delhi_modern_web_player")?Z.oY(n.X.Vg(v8[F])):Z.oY(n.X.element)}; pT=function(n,Z){var F;return(F=Z.priority)!=null?F:n.T}; dfU=function(n,Z){n.captionTracks=[];if(Z.captionTracks)for(var F=g.Y(Z.captionTracks),y=F.next();!y.done;y=F.next()){y=y.value;var l=A57(y.baseUrl);if(!l)return;l={is_translateable:!!y.isTranslatable,languageCode:y.languageCode,languageName:y.name&&g.sg(y.name),url:l,vss_id:y.vssId,kind:y.kind};l.name=y.trackName;l.displayName=y.name&&g.sg(y.name);n.captionTracks.push(new g.kG(l))}n.BO=Z.audioTracks||[];n.Os=Z.defaultAudioTrackIndex||0;n.Tb=[];if(Z.translationLanguages)for(F=g.Y(Z.translationLanguages), y=F.next();!y.done;y=F.next()){l=y.value;y={};y.languageCode=l.languageCode;y.languageName=g.sg(l.languageName);if(l.translationSourceTrackIndices){y.translationSourceTrackIndices=[];for(var m=g.Y(l.translationSourceTrackIndices),a=m.next();!a.done;a=m.next())y.translationSourceTrackIndices.push(a.value)}if(l.excludeAudioTrackIndices)for(y.excludeAudioTrackIndices=[],l=g.Y(l.excludeAudioTrackIndices),m=l.next();!m.done;m=l.next())y.excludeAudioTrackIndices.push(m.value);n.Tb.push(y)}n.Dc=[];if(Z.defaultTranslationSourceTrackIndices)for(F= g.Y(Z.defaultTranslationSourceTrackIndices),y=F.next();!y.done;y=F.next())n.Dc.push(y.value);n.Xo=!!Z.contribute&&!!Z.contribute.captionsMetadataRenderer}; X7Y=function(n){switch(n){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}}; Bli=function(n){n=n.getAttribute("aria-label");return n==null||n==void 0?"":String(n)}; g.X5=function(n){this.name=n}; FBo=function(n){return g.b(n.mQ.getPlayerState(),2)?0x8000000000000:n.mQ.getCurrentTime()*1E3}; jK=function(n){var Z,F,y;return!!((Z=n.playerResponse)==null?0:(F=Z.playerConfig)==null?0:(y=F.mediaCommonConfig)==null?0:y.splitScreenEligible)}; MQ8=function(n,Z,F,y,l,m,a,D,p){this.slot=Z;this.X=F;this.uY=a;this.tG=D;this.ym=p;this.N=new Uap(n,Z,y,l,m)}; qU7=function(n,Z){for(var F=[],y=g.Y(n.X),l=y.next();!l.done;l=y.next())l=l.value,Z(l)||F.push(l);if(n.Y.j("html5_sstm_fixes"))for(y=g.Y(n.X),l=y.next();!l.done;l=y.next())l=l.value,Z(l)&&(n.T.delete(l.cpn),l.sS&&n.V.delete(l.sS));n.X=F}; zm=function(n,Z,F,y){CW.call(this,n,{U:"span",K:"ytp-ad-pod-index"},"ad-pod-index",Z,F,y);this.api.B().X&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Zq&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; nz3=function(n){PJ.forEach(function(Z){return Z(n)})}; tC=function(n,Z){var F;Z=(F=n.nR.get().Cr.get(Z))!=null?F:null;if(Z===null)return wU("Expected ad video start time on playback timeline"),0;n=n.W.getCurrentTime(2,!0);return n0)||y.mediaElement&&y.mediaElement.getCurrentTime()>0||(Z={eO:"seektimeline_resumeTime",cM:Z},y.videoData.L||(Z.seekSource=15),y.seekTo(y.T, Z)));a:{Z=F;if(YA(n.videoData)){if(!n.videoData.mF())break a}else if(!g.ZI(n.videoData))break a;if(n.mediaElement)if((y=n.videoData.S)&&n.mediaElement.VN()){l=n.mediaElement.w1();if(n.HI)if(l!==n.HI.element)vH(n);else if(Z&&y.flavor==="fairplay"&&!sm())vH(n);else break a;if(n.j("html5_report_error_for_unsupported_tvos_widevine")&&sm()&&y.flavor==="widevine")n.Mj("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{n.HI=new Chi(l,n.videoData,n.Y,n.mediaElement);n.HI.subscribe("licenseerror", n.Do,n);n.HI.subscribe("qualitychange",n.ZJs,n);n.HI.subscribe("heartbeatparams",n.Q7,n);n.HI.subscribe("keystatuseschange",n.gF,n);n.HI.subscribe("ctmp",n.Xp,n);Z=g.Y(n.cK.keys);for(y=Z.next();!y.done;y=Z.next())y=n.cK.get(y.value),n.HI.QJ(y);n.j("html5_eme_loader_sync")||n.cK.removeAll()}}else n.Mj("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return F}; yU=function(n){return n.type===1||n.type===2}; FPT=function(n,Z){var F=[];n=n.N.N.get(Z);if(!n)return[];n=g.Y(n);for(Z=n.next();!Z.done;Z=n.next())Z=Z.value,Z.cpn&&F.push(Z.cpn);return F}; R4=function(n,Z){Z.sort(function(m,a){function D(p){wU("TriggerCategoryOrder enum does not contain trigger category: "+p)} return m.category===a.category?m.trigger.triggerId.localeCompare(a.trigger.triggerId):pNQ(m.category,D)-pNQ(a.category,D)}); var F=new Map;Z=g.Y(Z);for(var y=Z.next();!y.done;y=Z.next())if(y=y.value,XI(n.N,y.slot))if(km(n.N,y.slot).C)km(n.N,y.slot).L.push(y);else{JG7(n.aW,y.slot,y,y.layout);var l=F.get(y.category);l||(l=[]);l.push(y);F.set(y.category,l)}Z=g.Y(l4e);for(y=Z.next();!y.done;y=Z.next())l=g.Y(y.value),y=l.next().value,l=l.next().value,(y=F.get(y))&&Fxi(n,y,l);(Z=F.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&hgY(n,Z);(Z=F.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&QMo(n,Z);(F=F.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&& nDe(n,F)}; bt=function(){return{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}}; P4=function(n,Z,F,y,l,m,a,D,p,L){this.width=n;this.height=Z;this.X=D;this.quality=m||BBQ(n,Z);this.qualityOrdinal=g.FF[this.quality];this.fps=F||0;this.stereoLayout=!l||y!=null&&y!=="UNKNOWN"&&y!=="RECTANGULAR"?0:l;this.projectionType=y?y==="EQUIRECTANGULAR"&&l===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":y:"UNKNOWN";(n=a)||(n=g.FF[this.quality],n===0?n="Auto":(Z=this.fps,F=this.projectionType,n=n.toString()+(F==="EQUIRECTANGULAR"||F==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||F==="MESH"?"s":"p")+(Z>55?"60": Z>49?"50":Z>39?"48":"")));this.qualityLabel=n;this.N=p||"";this.primaries=L||""}; ytp=function(n){var Z=oHT();Z&&document.removeEventListener(Z,n,!1)}; gFi=function(n,Z){return v0(n,Z)||Math.abs(n.S-Z.V)<=1E-6||n.O8+1===Z.O8&&Z.N===0&&n.T?!0:!1}; lG8=function(n){this.AG=UO(n,4)}; Ea=function(n,Z){for(;Z>127;)n.N.push(Z&127|128),Z>>>=7;n.N.push(Z)}; XS=function(n,Z){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=Z||n(this.triggerType)}; kv=function(n){this.state=n;this.plugins=[];this.T=void 0;this.V={};Ek&&Bc(this.state)}; WN=function(n,Z){n.actionButtons.includes(Z)||(n.actionButtons.push(Z),n.updateValue("buttons",n.actionButtons))}; uz7=function(n,Z){var F=0,y=Ge(Z.X);if(n.V=y.length)return;if(F<0)throw Error("Missing data");n.V=n.T;n.X=0}for(l={};F=F.V&&Z<=F.S)return!0;return!1}; s3Q=function(){var n=Error.call(this);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)}; NL=function(n,Z,F){n=n.loader.Kn()||0;return Rh(Z,(F+n)*1E3)/1E3+F}; JT=function(n,Z,F,y){y=y===void 0?!1:y;Qq.call(this,n);this.yd=F;this.zK=y;this.args=[];Z&&this.args.push(Z)}; aGi=function(){var n=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];U2().forEach(function(Z){n.push(Z)}); return{Nj:n,ZM:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; KP8=function(n,Z){var F,y;n=((F=n.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(y=F.videoAuthorizationToken)==null?void 0:y.credentialTransferTokens)||[];for(F=0;F 5)return n.lY=0,n.mQ.SU({initSegStuck:1,as:y.info.bd()}),!0}else n.lY=0,n.h2=y;n.policy.RM&&(F.abort(),(a=Z.L)!=null&&(W_(a,4),a.flush()));l=NEK(n,F,m,p,l);(Z=Z.L)!=null&&(Z.flush(),Z.X=p,W_(Z,3,l));if(l!==0)return n.policy.De&&eF(n.mQ.getVideoData())?(n.mQ.HL()||qFn(n,"sepInit",l,y.info),zwj(n.mQ,"sie")):qFn(n,"sepInit",l,y.info),!0;y.info.K6()?(p=n.timing,p.lY||(p.lY=(0,g.tP)(),g.gF("vis_a",p.lY,p.N))):(p=n.timing,p.J||(p.J=(0,g.tP)(),g.gF("ais_a",p.J,p.N)));(y=y.info.bY.tU)&&n.mQ.QJ(new DI(y.key, y.type));return F.vn()}; DyP=function(n){if(!n)return"unknown";switch(n){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; kMj=function(n,Z){var F=n.YK;n.YK=function(){F();Z()}}; b2P=function(n){var Z=[];if(n.N.reason==="m"||n.N.reason==="s")return Z;if(dpe(n.eT)){for(var F=Math.max(0,n.L-2);F>>=1,F<<=1;while(--Z>0);return F>>>1}; JPj=function(n,Z,F,y,l){var m=n.index?XH(n.logger,function(){return Ccp(n.index,B5Y(Z),F,y,l)},"W"):"u"; n.logger.VO(m)}; AQ=function(n){return!(!n||!n[wvp])}; Hh=function(n){this.AG=UO(n,36)}; Fc3=function(n,Z){for(var F=g.Y(Object.keys(n)),y=F.next();!y.done;y=F.next()){y=y.value;var l=n[y][0];if(!l.width&&l.by===Z.by&&!l.audioChannels)return y}return""}; VrY=function(n,Z,F){var y,l,m,a,D;return g.A(function(p){if(p.N==1){g.RX(p,2);y=bf(F);var L=Z.B(),q=g.mM(),w={context:g.ij(Z),videoId:Z.videoId,racyCheckOk:Z.racyCheckOk,contentCheckOk:Z.contentCheckOk,autonavState:"STATE_NONE"};V7(Z)==="adunit"&&(w.isAdPlayback=!0);L.embedConfig&&(w.serializedThirdPartyEmbedConfig=L.embedConfig);L.Nn&&(w.showContentOwnerOnly=!0);Z.bk&&(w.showShortsOnly=!0);q.Wx(141)&&(w.autonavState=q.Wx(140)?"STATE_OFF":"STATE_ON");if(g.ry(L)){q=q.Wx(65);q=q!=null?!q:!1;var T=!!g.z5("yt-player-sticky-caption"); w.captionsRequested=q&&T}var P;if(L=(P=L.getWebPlayerContextConfig())==null?void 0:P.encryptedHostFlags)w.playbackContext={encryptedHostFlags:L};l=w;m=g.SA(TO8);n.SO("wn_s");return g.x(p,g.jA(y,l,m),4)}if(p.N!=2)return a=p.X,n.SO("wn_r"),!a||"error"in a&&a.error||(D=a,g.ri(Z.B())&&D.trackingParams&&Av(D.trackingParams),g.zX(Z,{raw_watch_next_response:a},!1)),g.iX(p,0);g.d4(p);g.zA(p)})}; tbT=function(n){var Z=0,F=NaN,y="";if(!n.Pr)return{startSeconds:Z,Da:F,source:y};n.videoData.sV?Z=n.videoData.ze:d9(n.videoData)&&(Z=Infinity);if(g.HJ(n.videoData))return{startSeconds:Z,Da:F,source:y};n.videoData.startSeconds?(y="ss",Z=n.videoData.startSeconds):n.videoData.AL&&(y="stss",Z=n.videoData.AL);n.videoData.liveUtcStartSeconds&&(F=n.videoData.liveUtcStartSeconds);if(isFinite(Z)&&(Z>n.xA()||Z>>0)+"_",l=0;return F}); Ao("Symbol.iterator",function(n){if(n)return n;n=Symbol("Symbol.iterator");BS(Array.prototype,n,{configurable:!0,writable:!0,value:function(){return jYi($Di(this))}}); return n}); Ao("Promise",function(n){function Z(a){this.N=0;this.T=void 0;this.X=[];this.J=!1;var D=this.V();try{a(D.resolve,D.reject)}catch(p){D.reject(p)}} function F(){this.N=null} function y(a){return a instanceof Z?a:new Z(function(D){D(a)})} if(n)return n;F.prototype.X=function(a){if(this.N==null){this.N=[];var D=this;this.T(function(){D.S()})}this.N.push(a)}; var l=g.de.setTimeout;F.prototype.T=function(a){l(a,0)}; F.prototype.S=function(){for(;this.N&&this.N.length;){var a=this.N;this.N=[];for(var D=0;D0&&F>0;)if(y[--F]!=Z[--l])return!1;return l<=0}}); Ao("Array.prototype.find",function(n){return n?n:function(Z,F){return c9j(this,Z,F).q0}}); Ao("Array.prototype.entries",function(n){return n?n:function(){return N8T(this,function(Z,F){return[Z,F]})}}); Ao("Array.prototype.keys",function(n){return n?n:function(){return N8T(this,function(Z){return Z})}}); Ao("String.prototype.startsWith",function(n){return n?n:function(Z,F){var y=kD(this,Z,"startsWith");Z+="";var l=y.length,m=Z.length;F=Math.max(0,Math.min(F|0,y.length));for(var a=0;a=m}}); Ao("Number.isFinite",function(n){return n?n:function(Z){return typeof Z!=="number"?!1:!isNaN(Z)&&Z!==Infinity&&Z!==-Infinity}}); Ao("String.prototype.repeat",function(n){return n?n:function(Z){var F=kD(this,null,"repeat");if(Z<0||Z>1342177279)throw new RangeError("Invalid count value");Z|=0;for(var y="";Z;)if(Z&1&&(y+=F),Z>>>=1)F+=F;return y}}); Ao("Object.entries",function(n){return n?n:function(Z){var F=[],y;for(y in Z)xb(Z,y)&&F.push([y,Z[y]]);return F}}); Ao("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); Ao("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); Ao("Array.from",function(n){return n?n:function(Z,F,y){F=F!=null?F:function(D){return D}; var l=[],m=typeof Symbol!="undefined"&&Symbol.iterator&&Z[Symbol.iterator];if(typeof m=="function"){Z=m.call(Z);for(var a=0;!(m=Z.next()).done;)l.push(F.call(y,m.value,a++))}else for(m=Z.length,a=0;a>>0;if(Z===0)return 32;var F=0;(Z&4294901760)===0&&(Z<<=16,F+=16);(Z&4278190080)===0&&(Z<<=8,F+=8);(Z&4026531840)===0&&(Z<<=4,F+=4);(Z&3221225472)===0&&(Z<<=2,F+=2);(Z&2147483648)===0&&F++;return F}}); Ao("Number.isNaN",function(n){return n?n:function(Z){return typeof Z==="number"&&isNaN(Z)}}); Ao("Array.prototype.values",function(n){return n?n:function(){return N8T(this,function(Z,F){return F})}}); Ao("Array.prototype.fill",function(n){return n?n:function(Z,F,y){var l=this.length||0;F<0&&(F=Math.max(0,l+F));if(y==null||y>l)y=l;y=Number(y);y<0&&(y=Math.max(0,l+y));for(F=Number(F||0);F0&&F?F.repeat(Math.ceil(Z/F.length)).substring(0,Z):"")+y}}); Ao("Array.prototype.findIndex",function(n){return n?n:function(Z,F){return c9j(this,Z,F).gz}}); Ao("Promise.prototype.finally",function(n){return n?n:function(Z){return this.then(function(F){return Promise.resolve(Z()).then(function(){return F})},function(F){return Promise.resolve(Z()).then(function(){throw F; })})}}); Ao("Math.imul",function(n){return n?n:function(Z,F){Z=Number(Z);F=Number(F);var y=Z&65535,l=F&65535;return y*l+((Z>>>16&65535)*l+y*(F>>>16&65535)<<16>>>0)|0}}); Ao("Math.sign",function(n){return n?n:function(Z){Z=Number(Z);return Z===0||isNaN(Z)?Z:Z>0?1:-1}}); Ao("WeakSet",function(n){function Z(F){this.N=new WeakMap;if(F){F=g.Y(F);for(var y;!(y=F.next()).done;)this.add(y.value)}} if(function(){if(!n||!Object.seal)return!1;try{var F=Object.seal({}),y=Object.seal({}),l=new n([F]);if(!l.has(F)||l.has(y))return!1;l.delete(F);l.add(y);return!l.has(F)&&l.has(y)}catch(m){return!1}}())return n; Z.prototype.add=function(F){this.N.set(F,!0);return this}; Z.prototype.has=function(F){return this.N.has(F)}; Z.prototype.delete=function(F){return this.N.delete(F)}; return Z}); Ao("Array.prototype.copyWithin",function(n){function Z(F){F=Number(F);return F===Infinity||F===-Infinity?F:F|0} return n?n:function(F,y,l){var m=this.length;F=Z(F);y=Z(y);l=l===void 0?m:Z(l);F=F<0?Math.max(m+F,0):Math.min(F,m);y=y<0?Math.max(m+y,0):Math.min(y,m);l=l<0?Math.max(m+l,0):Math.min(l,m);if(Fy;)--l in this?this[--F]=this[l]:delete this[--F];return this}}); Wd("copyWithin",function(n){return n?n:Array.prototype.copyWithin}); Ao("Array.prototype.at",function(n){return n?n:FR}); Wd("at",function(n){return n?n:FR}); Ao("String.prototype.at",function(n){return n?n:FR}); Ao("Array.prototype.findLastIndex",function(n){return n?n:function(Z,F){return Slj(this,Z,F).gz}}); Wd("findLastIndex",function(n){return n?n:function(Z,F){return Slj(this,Z,F).gz}}); Ao("Number.parseInt",function(n){return n||parseInt});var Q9,VD,SHn;Q9=Q9||{};g.KQ=this||self;VD="closure_uid_"+(Math.random()*1E9>>>0);SHn=0;g.aT(Qq,Error);Qq.prototype.name="CustomError";var $Lf;var TK8,zL,IF;TK8=Array.prototype.indexOf?function(n,Z){return Array.prototype.indexOf.call(n,Z,void 0)}:function(n,Z){if(typeof n==="string")return typeof Z!=="string"||Z.length!=1?-1:n.indexOf(Z,0); for(var F=0;F=0;F--)if(F in n&&n[F]===Z)return F;return-1}; g.I5=Array.prototype.forEach?function(n,Z,F){Array.prototype.forEach.call(n,Z,F)}:function(n,Z,F){for(var y=n.length,l=typeof n==="string"?n.split(""):n,m=0;m=.3:this.jH>=.5};var GV={gMY:0,tl4:1},AHY={NONE:0,XH8:1,lnR:2};var Wye="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Df.prototype.getValue=function(){return this.X}; g.d(Gu,Df);Gu.prototype.T=function(n){this.X===null&&g.er(this.V,n)&&(this.X=n)}; g.d(pR,Df);pR.prototype.T=function(n){this.X===null&&typeof n==="number"&&(this.X=n)}; g.d(U1n,Df);U1n.prototype.T=function(n){this.X===null&&typeof n==="string"&&(this.X=n)};x7.prototype.disable=function(){this.X=!1}; x7.prototype.enable=function(){this.X=!0}; x7.prototype.isEnabled=function(){return this.X}; x7.prototype.reset=function(){this.N={};this.X=!0;this.T={}};var hv=document,G5=window;var NOU=xP(1,!0),K4=xP(610401301,!1);xP(899588437,!1);var hW3=xP(772657768,!1),E_o=xP(513659523,!1),OAe=xP(568333945,!0),pAQ=xP(1331761403,!1);xP(651175828,!1);xP(722764542,!1);xP(748402145,!1);xP(748402146,!1);var ZXp=xP(748402147,!0),dB=xP(824648567,!1);xP(824656860,!1);xP(333098724,!1);xP(2147483644,!1);xP(2147483645,!1);xP(2147483646,NOU);xP(2147483647,!0);var DV=!!g.Di("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var a_=String.prototype.trim?function(n){return n.trim()}:function(n){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(n)[1]},al7=/&/g,Kie=//g,p1n=/"/g,Lio=/'/g,qnP=/\x00/g,m8Q=/[\x00&<>"']/;var p4,ctT=g.KQ.navigator;p4=ctT?ctT.userAgentData||null:null;var rQo=globalThis.trustedTypes,$A;lR.prototype.toString=function(){return this.N+""};mG.prototype.toString=function(){return this.N}; var R67=new mG("about:invalid#zClosurez");var GFf=M8("tel"),r4U=M8("sms"),G0e=[M8("data"),M8("http"),M8("https"),M8("mailto"),M8("ftp"),new f5(function(n){return/^[^:]*([/?#]|$)/.test(n)})],Qzi=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;F9.prototype.toString=function(){return this.N+""};Jg.prototype.toString=function(){return this.N+""};pV.prototype.toString=function(){return this.N};var PQ={};g.V27=String.prototype.repeat?function(n,Z){return n.repeat(Z)}:function(n,Z){return Array(Z+1).join(n)};Hr[" "]=function(){};var X8,vE,lpU,v_i,IG8,fGY,EK,eZ,Atj;g.Cc=u7();g.cF=Sxn();g.yd=Rf("Edge");g.zW=g.yd||g.cF;X8=Rf("Gecko")&&!(d1(g.PT(),"WebKit")&&!Rf("Edge"))&&!(Rf("Trident")||Rf("MSIE"))&&!Rf("Edge");g.Gc=d1(g.PT(),"WebKit")&&!Rf("Edge");vE=VJ();lpU=G7o();g.ii=WGP();v_i=gJ();IG8=Rf("iPad");fGY=Rf("iPod");EK=C4();eZ=d1(g.PT(),"KaiOS"); a:{var WPf="",rto=function(){var n=g.PT();if(X8)return/rv:([^\);]+)(\)|;)/.exec(n);if(g.yd)return/Edge\/([\d\.]+)/.exec(n);if(g.cF)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(n);if(g.Gc)return/WebKit\/(\S+)/.exec(n);if(g.Cc)return/(?:Version)[ \/]?(\S+)/.exec(n)}(); rto&&(WPf=rto?rto[1]:"");if(g.cF){var Bh,xyf=g.KQ.document;Bh=xyf?xyf.documentMode:void 0;if(Bh!=null&&Bh>parseFloat(WPf)){Atj=String(Bh);break a}}Atj=WPf}var xne=Atj,tfn={};var Z2,nc;g.kr=Xp();Z2=gJ()||Rf("iPod");nc=Rf("iPad");g.ui=pM7();g.z$=i7();g.x5=z3()&&!C4();var aTU=!g.cF&&!z3();g.Q=g.e_.prototype;g.Q.clone=function(){return new g.e_(this.x,this.y)}; g.Q.equals=function(n){return n instanceof g.e_&&pP(this,n)}; g.Q.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.Q.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.Q.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.Q.scale=function(n,Z){this.x*=n;this.y*=typeof Z==="number"?Z:n;return this};g.Q=g.Kz.prototype;g.Q.clone=function(){return new g.Kz(this.width,this.height)}; g.Q.aspectRatio=function(){return this.width/this.height}; g.Q.isEmpty=function(){return!et(this)}; g.Q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.Q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.Q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.Q.scale=function(n,Z){this.width*=n;this.height*=typeof Z==="number"?Z:n;return this};k7.prototype.toString=function(){return this.N}; var eD={};new k7(eD,"");var PFp=/^[a-z][a-z\d-]*$/i,w4K="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),TsQ="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),JqT=["action","formaction","href"];var vk8={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.Q=qK.prototype;g.Q.w1=function(n){return Nl(this.N,n)}; g.Q.getElementsByTagName=function(n,Z){return(Z||this.N).getElementsByTagName(String(n))}; g.Q.Vg=function(n){return g.q$(n,this.N)}; g.Q.setProperties=Uj;g.Q.createElement=function(n){return nh(this.N,n)}; g.Q.appendChild=g.hD;g.Q.append=function(n,Z){nni(dt(n),n,arguments,1)}; g.Q.canHaveChildren=function(n){if(n.nodeType!=1)return!1;switch(n.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.Q.removeNode=g.OG;g.Q.getChildren=function(n){return n.children!=void 0?n.children:Array.prototype.filter.call(n.childNodes,function(Z){return Z.nodeType==1})}; g.Q.contains=g.Uq;g.Q.isFocusable=JE;oH.prototype.now=function(){return 0}; oH.prototype.X=function(){return 0}; oH.prototype.T=function(){return 0}; oH.prototype.N=function(){return 0};g.d(Qg,oH);Qg.prototype.now=function(){return hn()&&G5.performance.now?G5.performance.now():oH.prototype.now.call(this)}; Qg.prototype.X=function(){return hn()&&G5.performance.memory?G5.performance.memory.totalJSHeapSize||0:oH.prototype.X.call(this)}; Qg.prototype.T=function(){return hn()&&G5.performance.memory?G5.performance.memory.usedJSHeapSize||0:oH.prototype.T.call(this)}; Qg.prototype.N=function(){return hn()&&G5.performance.memory?G5.performance.memory.jsHeapSizeLimit||0:oH.prototype.N.call(this)};var De3=function(){if(!g.KQ.addEventListener||!Object.defineProperty)return!1;var n=!1,Z=Object.defineProperty({},"passive",{get:function(){n=!0}}); try{var F=function(){}; g.KQ.addEventListener("test",F,Z);g.KQ.removeEventListener("test",F,Z)}catch(y){}return n}();var Nlp=UK7("AnimationEnd"),w$=UK7("TransitionEnd");g.Q=Bk.prototype;g.Q.getHeight=function(){return this.bottom-this.top}; g.Q.clone=function(){return new Bk(this.top,this.right,this.bottom,this.left)}; g.Q.contains=function(n){return this&&n?n instanceof Bk?n.left>=this.left&&n.right<=this.right&&n.top>=this.top&&n.bottom<=this.bottom:n.x>=this.left&&n.x<=this.right&&n.y>=this.top&&n.y<=this.bottom:!1}; g.Q.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.Q.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.Q.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.Q.scale=function(n,Z){Z=typeof Z==="number"?Z:n;this.left*=n;this.right*=n;this.top*=Z;this.bottom*=Z;return this};g.Q=g.c1.prototype;g.Q.clone=function(){return new g.c1(this.left,this.top,this.width,this.height)}; g.Q.contains=function(n){return n instanceof g.e_?n.x>=this.left&&n.x<=this.left+this.width&&n.y>=this.top&&n.y<=this.top+this.height:this.left<=n.left&&this.left+this.width>=n.left+n.width&&this.top<=n.top&&this.top+this.height>=n.top+n.height}; g.Q.getSize=function(){return new g.Kz(this.width,this.height)}; g.Q.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.Q.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.Q.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.Q.scale=function(n,Z){Z=typeof Z==="number"?Z:n;this.left*=n;this.width*=n;this.top*=Z;this.height*=Z;return this};var f$K={};var sAi=bO(function(){var n=!1;try{var Z=Object.defineProperty({},"passive",{get:function(){n=!0}}); g.KQ.addEventListener("test",null,Z)}catch(F){}return n});qao.prototype.isVisible=function(){return NZ(hv)===1};var gM7=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");GK.prototype.Uw=function(n,Z,F){n=n+"//"+Z+F;var y=eri(this)-F.length;if(y<0)return"";this.N.sort(function(L,q){return L-q}); F=null;Z="";for(var l=0;l=p.length){y-=p.length;n+=p;Z=this.T;break}F=F==null?m:F}}y="";F!=null&&(y=""+Z+"trn="+F);return n+y};var h8j=J$(function(n){return typeof n==="number"}),fP=J$(function(n){return typeof n==="string"}),EQj=J$(function(n){return typeof n==="boolean"}),Sr=J$(function(n){return n!=null&&typeof n==="object"&&typeof n.then==="function"}),GCU=J$(function(n){return!!n&&(typeof n==="object"||typeof n==="function")});var TAi={UcG:"allow-forms",zXp:"allow-modals",SV4:"allow-orientation-lock",ocT:"allow-pointer-lock",WfQ:"allow-popups",tvG:"allow-popups-to-escape-sandbox",s75:"allow-presentation",j7g:"allow-same-origin",Cns:"allow-scripts",ueY:"allow-top-navigation",kcp:"allow-top-navigation-by-user-activation"},rwf=bO(function(){return oYj()});iC.prototype.setInterval=function(n,Z){return G5.setInterval(n,Z)}; iC.prototype.clearInterval=function(n){G5.clearInterval(n)}; iC.prototype.setTimeout=function(n,Z){return G5.setTimeout(n,Z)}; iC.prototype.clearTimeout=function(n){G5.clearTimeout(n)};var uC=void 0,CN,CSe=typeof TextDecoder!=="undefined",Faj,Z08=typeof String.prototype.isWellFormed==="function",nE8=typeof TextEncoder!=="undefined";var bMK={},Wu=null,HB8=X8||g.Gc||typeof g.KQ.btoa=="function";var hc3=typeof Uint8Array!=="undefined",RyP=!g.cF&&typeof btoa==="function",jxY=/[-_.]/g,WkQ={"-":"+",_:"/",".":"="},wq={};v2.prototype.isEmpty=function(){return this.N==null}; v2.prototype.sizeBytes=function(){var n=rD(this);return n?n.length:0}; var sHp;var tcP=void 0;var Zh=typeof Symbol==="function"&&typeof Symbol()==="symbol",RWK=Om("jas",void 0,!0),Fm=Om(void 0,"1oa"),TA=Om(void 0,Symbol()),g_p=Om(void 0,"0ub"),Joi=Om(void 0,"0ubs"),a8U=Om(void 0,"0ubsb"),fD8=Om(void 0,"0actk"),tS=Om("m_m","UQs",!0),R8f=Om(void 0,"vps"),iA8=Om();Math.max.apply(Math,g.t(Object.values({rmu:1,lri:2,OOR:4,CJG:8,gLr:16,iDQ:32,Jws:64,pWu:128,uDY:256,T25:512,Omi:1024,HmQ:2048,UKY:4096,arY:8192})));var baY={f4i:{value:0,configurable:!0,writable:!0,enumerable:!1}},uSQ=Object.defineProperties,kt=Zh?RWK:"f4i",dQ,CoP=[];v6(CoP,7);dQ=Object.freeze(CoP);var ka={},Xm={},i3T=Object.freeze({}),dv={},Vs={};var A7=typeof g.KQ.BigInt==="function"&&typeof g.KQ.BigInt(0)==="bigint";var GX=J$(function(n){return A7?n>=uTP&&n<=bAf:n[0]==="-"?AV3(n,Xvj):AV3(n,zWi)}),Xvj=Number.MIN_SAFE_INTEGER.toString(),uTP=A7?BigInt(Number.MIN_SAFE_INTEGER):void 0,zWi=Number.MAX_SAFE_INTEGER.toString(),bAf=A7?BigInt(Number.MAX_SAFE_INTEGER):void 0;var LC8=typeof Uint8Array.prototype.slice==="function",b8=0,XV=0,FM8;var VE=typeof BigInt==="function"?BigInt.asIntN:void 0,zsi=typeof BigInt==="function"?BigInt.asUintN:void 0,L$=Number.isSafeInteger,mX=Number.isFinite,p$=Math.trunc,Tde=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var gQ8={};var t2p={QHp:!0};var El;var kWi,e27;var $tj=t$(0),gj={};RF.prototype.init=function(n,Z,F,y){var l=y===void 0?{}:y;y=l.gA===void 0?!1:l.gA;l=l.y$===void 0?!1:l.y$;this.gA=y;this.y$=l;n&&(n=HpP(n,this.y$),this.X=n.buffer,this.S=n.N,this.V=Z||0,this.T=F!==void 0?this.V+F:this.X.length,this.N=this.V)}; RF.prototype.free=function(){this.clear();G0.length<100&&G0.push(this)}; RF.prototype.clear=function(){this.X=null;this.S=!1;this.N=this.T=this.V=0;this.gA=!1}; RF.prototype.reset=function(){this.N=this.V}; var G0=[];gk.prototype.free=function(){this.N.clear();this.X=this.T=-1;Vk.length<100&&Vk.push(this)}; gk.prototype.reset=function(){this.N.reset();this.V=this.N.N;this.X=this.T=-1}; var Vk=[];var svU,Tbn;Zr.prototype.length=function(){return this.N.length}; Zr.prototype.end=function(){var n=this.N;this.N=[];return n};var i9=AN(),kC7=AN(),eW8=AN(),HAQ=AN(),dyn=AN(),BOK=AN(),M2Y=AN(),$xp=AN(),nJP=AN(),Zxe=AN(),Fwo=AN();qU.prototype.toJSON=function(){return xd(this)}; qU.prototype.Go=function(n){return JSON.stringify(xd(this,n))}; qU.prototype.clone=function(){var n=this.AG,Z=n[kt]|0;return e5(this,n,Z)?Hd(this,n,!0):new this.constructor(X1(n,Z,!1))}; qU.prototype[tS]=ka;qU.prototype.toString=function(){return this.AG.toString()};var kcp=b9(function(n,Z,F,y,l){if(n.X!==2)return!1;$D(n,zD(Z,y,F),l);return!0},UDU),sET=b9(function(n,Z,F,y,l){if(n.X!==2)return!1; $D(n,zD(Z,y,F),l);return!0},UDU),q7=Symbol(),xo=Symbol(),G6=Symbol(),BdQ=Symbol(),VGp=Symbol(),Dd,pU;var yje=t$(0),lyU=sI(function(n,Z,F){if(n.X!==1)return!1;X0(Z,F,fq(n.N));return!0},tF,nJP),sm7=sI(function(n,Z,F){if(n.X!==1)return!1; n=fq(n.N);X0(Z,F,n===0?void 0:n);return!0},tF,nJP),mxe=sI(function(n,Z,F,y){if(n.X!==1)return!1; $7(Z,F,y,fq(n.N));return!0},tF,nJP),ayT=sI(function(n,Z,F){if(dB)return n.X!==0?n=!1:(X0(Z,F,F1(n.N,XaY)),n=!0),n; if(n.X!==0)return!1;X0(Z,F,F1(n.N,eK));return!0},TB,M2Y),Kw8=sI(function(n,Z,F){if(dB)return n.X!==0?Z=!1:(n=F1(n.N,XaY),X0(Z,F,n===yje?void 0:n),Z=!0),Z; if(n.X!==0)return!1;n=F1(n.N,eK);X0(Z,F,n===0?void 0:n);return!0},TB,M2Y),DxY=sI(function(n,Z,F,y){if(dB)return n.X!==0?n=!1:($7(Z,F,y,F1(n.N,XaY)),n=!0),n; if(n.X!==0)return!1;$7(Z,F,y,F1(n.N,eK));return!0},TB,M2Y),pjT=sI(function(n,Z,F){if(n.X!==0)return!1; X0(Z,F,or(n.N));return!0},ES,HAQ),LwT=sI(function(n,Z,F){if(n.X!==0)return!1; n=or(n.N);X0(Z,F,n===0?void 0:n);return!0},ES,HAQ),qWo=sI(function(n,Z,F,y){if(n.X!==0)return!1; $7(Z,F,y,or(n.N));return!0},ES,HAQ),wjj=sI(function(n,Z,F){if(dB)return n.X!==1?n=!1:(X0(Z,F,kP(n.N)),n=!0),n; if(n.X!==1)return!1;X0(Z,F,Sb(n.N));return!0},function(n,Z,F){Qa7(n,F,t3f(Z))},$xp),THi=c6(function(n,Z,F){if(dB)return n.X!==1&&n.X!==2?n=!1:(Z=nG(Z,Z[kt]|0,F),n.X==2?cXf(n,kP,Z):Z.push(kP(n.N)),n=!0),n; if(n.X!==1&&n.X!==2)return!1;Z=nG(Z,Z[kt]|0,F);n.X==2?cXf(n,Sb,Z):Z.push(Sb(n.N));return!0},function(n,Z,F){Z=vf(t3f,Z,!1); if(Z!=null)for(var y=0;y>>0);return!0},function(n,Z,F){Z=sd(Z); Z!=null&&Z!=null&&(NC(n,F,0),Ea(n.N,Z))},dyn),yl=sI(function(n,Z,F){if(n.X!==0)return!1; X0(Z,F,or(n.N));return!0},function(n,Z,F){Z=hE(Z); Z!=null&&(Z=parseInt(Z,10),NC(n,F,0),J28(n.N,Z))},Fwo);var Tjf=new Map;g.d(ol8,tMp);VPo.prototype.register=function(){Hr(this)};g.d(ryf,qU);ryf.prototype.T=HDp([0,sm7,Kw8,-2,LwT]);W1P.prototype.Wx=function(n){var Z=this.N[n.key];if(n.valueType==="proto"){try{var F=JSON.parse(Z);if(Array.isArray(F))return F}catch(y){}return n.defaultValue}return typeof Z===typeof n.defaultValue?Z:n.defaultValue};var Wp7={LDr:1,DW:2,XfQ:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};GxQ.prototype.qH=function(n){if(typeof n==="string"&&n.length!=0){var Z=this.Vm;if(Z.X){n=n.split("&");for(var F=n.length-1;F>=0;F--){var y=n[F].split("="),l=decodeURIComponent(y[0]);y.length>1?(y=decodeURIComponent(y[1]),y=/^[0-9]+$/g.exec(y)?parseInt(y,10):y):y=1;(l=Z.N[l])&&l.T(y)}}}};var lh=null;var ia=g.KQ.performance,Uxe=!!(ia&&ia.mark&&ia.measure&&ia.clearMarks),hc=bO(function(){var n;if(n=Uxe){var Z=Z===void 0?window:Z;if(lh===null){lh="";try{n="";try{n=Z.top.location.hash}catch(y){n=Z.location.hash}if(n){var F=n.match(/\bdeid=([\d,]+)/);lh=F?F[1]:""}}catch(y){}}Z=lh;n=!!Z.indexOf&&Z.indexOf("1337")>=0}return n}); E3.prototype.disable=function(){this.N=!1;this.events!==this.X.google_js_reporting_queue&&(hc()&&g.I5(this.events,xXf),this.events.length=0)}; E3.prototype.start=function(n,Z){if(!this.N)return null;var F=Zk3()||bZ8();n=new MNn(n,Z,F);Z="goog_"+n.label+"_"+n.uniqueId+"_start";ia&&hc()&&ia.mark(Z);return n}; E3.prototype.end=function(n){if(this.N&&typeof n.value==="number"){var Z=Zk3()||bZ8();n.duration=Z-n.value;Z="goog_"+n.label+"_"+n.uniqueId+"_end";ia&&hc()&&ia.mark(Z);!this.N||this.events.length>2048||this.events.push(n)}};var Ir3=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),gu=/#|$/,dzP=/[?&]($|#)/;Saj.prototype.WS=function(n,Z,F,y,l){l=l||this.ji;try{var m=new GK;m.N.push(1);m.X[1]=RL("context",n);Z.error&&Z.meta&&Z.id||(Z=new M2($w(Z)));if(Z.msg){var a=Z.msg.substring(0,512);m.N.push(2);m.X[2]=RL("msg",a)}var D=Z.meta||{};if(this.OJ)try{this.OJ(D)}catch(P){}if(y)try{y(D)}catch(P){}y=[D];m.N.push(3);m.X[3]=y;var p=iFo();if(p.X){var L=p.X.url||"";m.N.push(4);m.X[4]=RL("top",L)}var q={url:p.N.url||""};if(p.N.url){var w=g.Gj(p.N.url);var T=un(w[1],null,w[3],w[4])}else T="";L=[q,{url:T}];m.N.push(5); m.X[5]=L;QRj(this.N,l,m,F)}catch(P){try{QRj(this.N,l,{context:"ecmserr",rctx:n,msg:$w(P),url:p&&p.N.url},F)}catch(J){}}return this.E6}; g.d(M2,B2e);var Wp,T5,AE=new E3;Wp=new function(){var n="https:";G5&&G5.location&&G5.location.protocol==="http:"&&(n="http:");this.X=n;this.N=.01}; T5=new Saj;G5&&G5.document&&(G5.document.readyState=="complete"?$eo():AE.N&&Ed(G5,"load",function(){$eo()}));var rlU=Date.now(),No=-1,WK=-1,aUj,iu=-1,Uf=!1;yh.prototype.equals=function(n,Z){return!!n&&(!(Z===void 0?0:Z)||this.volume==n.volume)&&this.T==n.T&&Oe(this.N,n.N)&&!0};M$.prototype.w1=function(){return this.J}; M$.prototype.equals=function(n,Z){return this.V.equals(n.V,Z===void 0?!1:Z)&&this.J==n.J&&Oe(this.T,n.T)&&Oe(this.C,n.C)&&this.N==n.N&&this.S==n.S&&this.X==n.X&&this.L==n.L};var NHf={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},jt={HT:"start",y8:"firstquartile",SL:"midpoint",Mu:"thirdquartile",COMPLETE:"complete",ERROR:"error",zm:"metric",PAUSE:"pause",fg:"resume",Gm:"skip",BT:"viewable_impression",jL:"mute",Rl:"unmute",GR:"fullscreen",n4:"exitfullscreen",u0:"bufferstart",C4:"bufferfinish",H2:"fully_viewable_audible_half_duration_impression",Uv:"measurable_impression",I$:"abandon",K4:"engagedview",h4:"impression",rD:"creativeview",LOADED:"loaded", v4Y:"progress",CLOSE:"close",ldx:"collapse",er4:"overlay_resize",JTY:"overlay_unmeasurable_impression",awQ:"overlay_unviewable_impression",g4g:"overlay_viewable_immediate_impression",cTi:"overlay_viewable_end_of_session_impression",eX:"custom_metric_viewable",Ud:"audio_audible",SX:"audio_measurable",zR:"audio_impression"},s7K="start firstquartile midpoint thirdquartile resume loaded".split(" "),m7f=["start","firstquartile","midpoint","thirdquartile"],$87=["abandon"],UR={UNKNOWN:-1,HT:0,y8:1,SL:2, Mu:3,COMPLETE:4,zm:5,PAUSE:6,fg:7,Gm:8,BT:9,jL:10,Rl:11,GR:12,n4:13,H2:14,Uv:15,I$:16,K4:17,h4:18,rD:19,LOADED:20,eX:21,u0:22,C4:23,zR:27,SX:28,Ud:29};var tBK={Ncu:"addEventListener",eRr:"getMaxSize",JaG:"getScreenSize",ans:"getState",caR:"getVersion",jER:"removeEventListener",eUT:"isViewable"};nBf.prototype.update=function(n){n&&n.document&&(this.J=$l(!1,n,this.isMobileDevice),this.N=$l(!0,n,this.isMobileDevice),aOi(this,n),$CP(this,n))};tB.prototype.cancel=function(){J6().clearTimeout(this.N);this.N=null}; tB.prototype.schedule=function(){var n=this,Z=J6(),F=B6().N.N;this.N=Z.setTimeout(BW(F,Kw(143,function(){n.X++;n.T.sample()})),sPU())};g.Q=R_.prototype;g.Q.E1=function(){return!1}; g.Q.initialize=function(){return this.isInitialized=!0}; g.Q.IG=function(){return this.N.zx}; g.Q.S6=function(){return this.N.Ns}; g.Q.fail=function(n,Z){if(!this.Ns||(Z===void 0?0:Z))this.Ns=!0,this.zx=n,this.L=0,this.N!=this||fb(this)}; g.Q.getName=function(){return this.N.r5}; g.Q.QN=function(){return this.N.YP()}; g.Q.YP=function(){return{}}; g.Q.qX=function(){return this.N.L}; g.Q.T$=function(){var n=yp();n.N=$l(!0,this.T,n.isMobileDevice)}; g.Q.E$=function(){$CP(yp(),this.T)}; g.Q.SW=function(){return this.V.N}; g.Q.sample=function(){}; g.Q.isActive=function(){return this.N.C}; g.Q.kp=function(n){var Z=this.N;this.N=n.qX()>=this.L?n:this;Z!==this.N?(this.C=this.N.C,fb(this)):this.C!==this.N.C&&(this.C=this.N.C,fb(this))}; g.Q.VJ=function(n){if(n.X===this.N){var Z=!this.V.equals(n,this.Pr);this.V=n;Z&&Ntj(this)}}; g.Q.xN=function(){return this.Pr}; g.Q.dispose=function(){this.Wr=!0}; g.Q.CR=function(){return this.Wr};g.Q=n3.prototype;g.Q.observe=function(){return!0}; g.Q.unobserve=function(){}; g.Q.vC=function(n){this.S=n}; g.Q.dispose=function(){if(!this.CR()){var n=this.X;g.ov(n.S,this);n.Pr&&this.xN()&&tUp(n);this.unobserve();this.w5=!0}}; g.Q.CR=function(){return this.w5}; g.Q.QN=function(){return this.X.QN()}; g.Q.qX=function(){return this.X.qX()}; g.Q.IG=function(){return this.X.IG()}; g.Q.S6=function(){return this.X.S6()}; g.Q.kp=function(){}; g.Q.VJ=function(){this.gS()}; g.Q.xN=function(){return this.Wr};g.Q=wi.prototype;g.Q.qX=function(){return this.N.qX()}; g.Q.IG=function(){return this.N.IG()}; g.Q.S6=function(){return this.N.S6()}; g.Q.create=function(n,Z,F){var y=null;this.N&&(y=this.Pb(n,Z,F),aq(this.N,y));return y}; g.Q.Iv=function(){return this.IB()}; g.Q.IB=function(){return!1}; g.Q.init=function(n){return this.N.initialize()?(aq(this.N,this),this.V=n,!0):!1}; g.Q.kp=function(n){n.qX()==0&&this.V(n.IG(),this)}; g.Q.VJ=function(){}; g.Q.xN=function(){return!1}; g.Q.dispose=function(){this.S=!0}; g.Q.CR=function(){return this.S}; g.Q.QN=function(){return{}};i_.prototype.add=function(n,Z,F){++this.T;n=new JvT(n,Z,F);this.N.push(new JvT(n.X,n.N,n.T+this.T/4096));this.X=!0;return this};kF8.prototype.toString=function(){var n="//pagead2.googlesyndication.com//pagead/gen_204",Z=XW(this.N);Z.length>0&&(n+="?"+Z);return n};g.I.prototype.KF=!1;g.I.prototype.CR=function(){return this.KF}; g.I.prototype.dispose=function(){this.KF||(this.KF=!0,this.IY())}; g.I.prototype[Symbol.dispose]=function(){this.dispose()}; g.I.prototype.addOnDisposeCallback=function(n,Z){this.KF?Z!==void 0?n.call(Z):n():(this.uH||(this.uH=[]),Z&&(n=n.bind(Z)),this.uH.push(n))}; g.I.prototype.IY=function(){if(this.uH)for(;this.uH.length;)this.uH.shift()()};var h0T=[0,ayT,oJo,-1];RG.prototype.update=function(n,Z,F){n&&(this.N+=Z,this.X+=Z,this.V+=Z,this.T=Math.max(this.T,this.V));if(F===void 0?!n:F)this.V=0};var vK3=[1,.75,.5,.3,0];jZ.prototype.update=function(n,Z,F,y,l,m){m=m===void 0?!0:m;Z=l?Math.min(n,Z):Z;for(l=0;l0&&Z>=a;a=!(n>0&&n>=a)||F;this.N[l].update(m&&D,y,!m||a)}};g0.prototype.update=function(n,Z,F,y){this.J=this.J!=-1?Math.min(this.J,Z.jH):Z.jH;this.Tx=Math.max(this.Tx,Z.jH);this.w5=this.w5!=-1?Math.min(this.w5,Z.cn):Z.cn;this.zx=Math.max(this.zx,Z.cn);this.d5.update(Z.cn,F.cn,Z.N,n,y);this.jT+=n;Z.jH===0&&(this.r5+=n);this.X.update(Z.jH,F.jH,Z.N,n,y);F=y||F.UQ!=Z.UQ?F.isVisible()&&Z.isVisible():F.isVisible();Z=!Z.isVisible()||Z.N;this.fR.update(F,n,Z)}; g0.prototype.bI=function(){return this.fR.T>=this.hG};if(hv&&hv.URL){var EJj=hv.URL,Ox3;a:{if(EJj){var cj7=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var mO=cj7.exec(decodeURIComponent(EJj));if(mO){Ox3=mO[1]&&mO[1].length>1?mO[1].substring(1):"true";break a}}catch(n){}}Ox3=""}T5.E6=!(Ox3.length>0)};var V6K=new Bk(0,0,0,0);var q_U=new Bk(0,0,0,0);g.d(SZ,g.I);g.Q=SZ.prototype; g.Q.IY=function(){if(this.AF.N){if(this.n5.cS){var n=this.AF.N;typeof n.removeEventListener==="function"&&n.removeEventListener("mouseover",this.n5.cS,h8());this.n5.cS=null}this.n5.Jg&&(n=this.AF.N,typeof n.removeEventListener==="function"&&n.removeEventListener("mouseout",this.n5.Jg,h8()),this.n5.Jg=null)}this.Xt&&this.Xt.dispose();this.Ow&&this.Ow.dispose();delete this.tA;delete this.j_;delete this.y0;delete this.AF.pY;delete this.AF.N;delete this.n5;delete this.Xt;delete this.Ow;delete this.Vm; g.I.prototype.IY.call(this)}; g.Q.B9=function(){return this.Ow?this.Ow.N:this.position}; g.Q.qH=function(n){B6().qH(n)}; g.Q.xN=function(){return!1}; g.Q.S$=function(){return new g0}; g.Q.Sv=function(){return this.tA}; g.Q.Nk=function(n){return BE3(this,n,1E4)}; g.Q.g5=function(n,Z,F,y,l,m,a){this.jf||(this.jY&&(n=this.HO(n,F,l,a),y=y&&this.Bj.jH>=(this.UQ()?.3:.5),this.Z5(m,n,y),this.uf=Z,n.jH>0&&-1===this.T9&&(this.T9=Z),this.UI==-1&&this.bI()&&(this.UI=Z),this.Ue==-2&&(this.Ue=g2(this.B9())?n.jH:-1),this.Bj=n),this.j_(this))}; g.Q.Z5=function(n,Z,F){this.Sv().update(n,Z,this.Bj,F)}; g.Q.gy=function(){return new pb}; g.Q.HO=function(n,Z,F,y){F=this.gy();F.N=Z;Z=J6().X;Z=NZ(hv)===0?-1:Z.isVisible()?0:1;F.X=Z;F.jH=this.Vf(n);F.UQ=this.UQ();F.cn=y;return F}; g.Q.Vf=function(n){return this.opacity===0&&f7(this.Vm,"opac")===1?0:n}; g.Q.UQ=function(){return!1}; g.Q.j7=function(){return this.LQi||this.xsp}; g.Q.ZA=function(){$1()}; g.Q.ox=function(){$1()}; g.Q.G3=function(){return this.requestSource}; g.Q.UZ=function(){return 0}; g.Q.bI=function(){return this.tA.bI()}; g.Q.jW=function(){var n=this.jY;n=(this.hasCompleted||this.CR())&&!n;var Z=B6().X!==2||this.w1Q;return this.jf||Z&&n?2:this.bI()?4:3}; g.Q.Nv=function(){return 0};g.eB.prototype.next=function(){return g.aQ}; g.aQ={done:!0,value:void 0};g.eB.prototype.Cm=function(){return this};g.d(Xbp,pb);var KI=Ta7([void 0,1,2,3,4,8,16]),Da=Ta7([void 0,4,8,16]),vJf={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:pd("p0",Da),p1:pd("p1",Da),p2:pd("p2",Da),p3:pd("p3",Da),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:uP("mtos1",[0,2,4],!1,Da),mtos2:uP("mtos2",[0,2,4],!1,Da),mtos3:uP("mtos3",[0,2,4],!1,Da),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:pd("a0",Da),a1:pd("a1",Da),a2:pd("a2",Da),a3:pd("a3",Da),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:pd("c0",Da),c1:pd("c1",Da),c2:pd("c2",Da),c3:pd("c3",Da),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:pd("qmtos",KI),qnc:pd("qnc",KI),qmv:pd("qmv",KI),qnv:pd("qnv",KI), 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:pd("ss0",Da),ss1:pd("ss1",Da),ss2:pd("ss2",Da),ss3:pd("ss3",Da),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"},Iy8=Object.assign({},vJf,{avid:Sw("audio"),avas:"avas",vs:"vs"}),fyo={atos:"atos",avt:uP("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(n,Z){return function(F){return F[n]===void 0&&Z!==void 0?Z:F[n]}}("ss",0), t:"t"};rb.prototype.getValue=function(){return this.X}; rb.prototype.update=function(n,Z){n>=32||(this.N&1<=.5;Up(Z.volume)&&(this.V=this.V!=-1?Math.min(this.V,Z.volume):Z.volume,this.C=Math.max(this.C,Z.volume));m&&(this.Wr+=n,this.Pr+=l?n:0);this.N.update(Z.jH,F.jH,Z.N,n,y,l);this.T.update(!0,n);this.S.update(l,n);this.Ns.update(F.fullscreen,n);this.Yi.update(l&&!m,n);n=Math.floor(Z.mediaTime/1E3);this.lY.update(n,Z.isVisible());this.xi.update(n,Z.jH>=1);this.yg.update(n, Lj(Z))}};lsQ.prototype.X=function(n){this.T||(this.N(n)?(n=w6Q(this.Pr,this.V,n),this.S|=n,n=n==0):n=!1,this.T=n)};g.d(bp,lsQ);bp.prototype.N=function(){return!0}; bp.prototype.C=function(){return!1}; bp.prototype.getId=function(){var n=this,Z=Qb(jt,function(F){return F==n.V}); return UR[Z].toString()}; bp.prototype.toString=function(){var n="";this.C()&&(n+="c");this.T&&(n+="s");this.S>0&&(n+=":"+this.S);return this.getId()+n};g.d(q1,bp);q1.prototype.X=function(n,Z){Z=Z===void 0?null:Z;Z!=null&&this.J.push(Z);bp.prototype.X.call(this,n)};g.d(Yr,sfU);Yr.prototype.X=function(){return null}; Yr.prototype.T=function(){return[]};g.d(Ij,n3);g.Q=Ij.prototype;g.Q.hZ=function(){if(this.element){var n=this.element,Z=this.X.N.T;try{try{var F=NVi(n.getBoundingClientRect())}catch(L){F=new Bk(0,0,0,0)}var y=F.right-F.left,l=F.bottom-F.top,m=L13(n,Z),a=m.x,D=m.y;var p=new Bk(Math.round(D),Math.round(a+y),Math.round(D+l),Math.round(a))}catch(L){p=V6K.clone()}this.T=p;this.N=jd7(this,this.T)}}; g.Q.jM=function(){this.C=this.X.V.N}; g.Q.VF=function(n){var Z=f7(this.Vm,"od")==1;return Ipf(n,this.C,this.element,Z)}; g.Q.Cb=function(){this.timestamp=$1()}; g.Q.gS=function(){this.Cb();this.hZ();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var n=this.element;var Z=new g.Kz(n.videoWidth,n.videoHeight);n=this.N;var F=wF(n),y=n.getHeight(),l=Z.width;Z=Z.height;l<=0||Z<=0||F<=0||y<=0||(l/=Z,Z=F/y,n=n.clone(),l>Z?(F/=l,y=(y-F)/2,y>0&&(y=n.top+y,n.top=Math.round(y),n.bottom=Math.round(y+F))):(y*=l,F=Math.round((F-y)/2),F>0&&(F=n.left+F,n.left=Math.round(F),n.right=Math.round(F+y))));this.N=n}this.jM(); n=this.N;F=this.C;n=n.left<=F.right&&F.left<=n.right&&n.top<=F.bottom&&F.top<=n.bottom?new Bk(Math.max(n.top,F.top),Math.min(n.right,F.right),Math.min(n.bottom,F.bottom),Math.max(n.left,F.left)):new Bk(0,0,0,0);F=n.top>=n.bottom||n.left>=n.right?new Bk(0,0,0,0):n;n=this.X.V;Z=l=y=0;if((this.N.bottom-this.N.top)*(this.N.right-this.N.left)>0)if(this.VF(F))F=new Bk(0,0,0,0);else{y=yp().V;Z=new Bk(0,y.height,y.width,0);var m;y=iG(F,(m=this.S)!=null?m:this.N);l=iG(F,yp().N);Z=iG(F,Z)}m=F.top>=F.bottom|| F.left>=F.right?new Bk(0,0,0,0):r5(F,-this.N.left,-this.N.top);dk()||(l=y=0);this.Pr=new M$(n,this.element,this.N,m,y,l,this.timestamp,Z)}; g.Q.getName=function(){return this.X.getName()};var Ajj=new Bk(0,0,0,0);g.d(p5,Ij);g.Q=p5.prototype;g.Q.observe=function(){this.V();return!0}; g.Q.VJ=function(){Ij.prototype.gS.call(this)}; g.Q.Cb=function(){}; g.Q.hZ=function(){}; g.Q.gS=function(){this.V();Ij.prototype.gS.call(this)}; g.Q.kp=function(n){n=n.isActive();n!==this.L&&(n?this.V():(yp().N=new Bk(0,0,0,0),this.N=new Bk(0,0,0,0),this.C=new Bk(0,0,0,0),this.timestamp=-1));this.L=n};var pI={},umQ=(pI.firstquartile=0,pI.midpoint=1,pI.thirdquartile=2,pI.complete=3,pI);g.d(Uh,SZ);g.Q=Uh.prototype;g.Q.xN=function(){return!0}; g.Q.NK=function(){return this.UD==2}; g.Q.Nk=function(n){return BE3(this,n,Math.max(1E4,this.T/3))}; g.Q.g5=function(n,Z,F,y,l,m,a){var D=this,p=this.J(this)||{};g.RH(p,l);this.T=p.duration||this.T;this.Pr=p.isVpaid||this.Pr;this.r5=p.isYouTube||this.r5;J6();this.d5=!1;l=WNo(this,Z);U5T(this)===1&&(m=l);SZ.prototype.g5.call(this,n,Z,F,y,p,m,a);this.zW&&this.zW.T&&g.I5(this.C,function(L){L.X(D)})}; g.Q.Z5=function(n,Z,F){SZ.prototype.Z5.call(this,n,Z,F);cU(this).update(n,Z,this.Bj,F);this.hG=Lj(this.Bj)&&Lj(Z);this.zx==-1&&this.xi&&(this.zx=this.Sv().T.N);this.kd.T=0;n=this.bI();Z.isVisible()&&Ct(this.kd,"vs");n&&Ct(this.kd,"vw");Up(Z.volume)&&Ct(this.kd,"am");Lj(Z)?Ct(this.kd,"a"):Ct(this.kd,"mut");this.pZ&&Ct(this.kd,"f");Z.X!=-1&&(Ct(this.kd,"bm"),Z.X==1&&(Ct(this.kd,"b"),Lj(Z)&&Ct(this.kd,"umutb")));Lj(Z)&&Z.isVisible()&&Ct(this.kd,"avs");this.hG&&n&&Ct(this.kd,"avw");Z.jH>0&&Ct(this.kd, "pv");sVT(this,this.Sv().T.N,!0)&&Ct(this.kd,"gdr");pYT(this.Sv().X,1)>=2E3&&Ct(this.kd,"pmx");this.d5&&Ct(this.kd,"tvoff")}; g.Q.S$=function(){return new Kk}; g.Q.Sv=function(){return this.tA}; g.Q.gy=function(){return new Xbp}; g.Q.HO=function(n,Z,F,y){n=SZ.prototype.HO.call(this,n,Z,F,y===void 0?-1:y);n.fullscreen=this.pZ;n.paused=this.NK();n.volume=F.volume;Up(n.volume)||(this.mJ++,Z=this.Bj,Up(Z.volume)&&(n.volume=Z.volume));F=F.currentTime;n.mediaTime=F!==void 0&&F>=0?F:-1;return n}; g.Q.Vf=function(n){return yp(),this.pZ?1:SZ.prototype.Vf.call(this,n)}; g.Q.UZ=function(){return 1}; g.Q.getDuration=function(){return this.T}; g.Q.jW=function(){return this.jf?2:qDY(this)?5:this.bI()?4:3}; g.Q.Nv=function(){return this.Yi?this.Sv().S.T>=2E3?4:3:2}; g.Q.vC=function(n){this.Ow&&this.Ow.vC(n)};var Wwi=g.O7();LZ3.prototype.reset=function(){this.N=[];this.X=[]}; var rT=xW(LZ3);g.d(Vw,wi);g.Q=Vw.prototype;g.Q.getName=function(){return(this.X?this.X:this.N).getName()}; g.Q.QN=function(){return(this.X?this.X:this.N).QN()}; g.Q.qX=function(){return(this.X?this.X:this.N).qX()}; g.Q.init=function(n){var Z=!1;(0,g.I5)(this.T,function(F){F.initialize()&&(Z=!0)}); Z&&(this.V=n,aq(this.N,this));return Z}; g.Q.dispose=function(){(0,g.I5)(this.T,function(n){n.dispose()}); wi.prototype.dispose.call(this)}; g.Q.Iv=function(){return IF(this.T,function(n){return n.E1()})}; g.Q.IB=function(){return IF(this.T,function(n){return n.E1()})}; g.Q.Pb=function(n,Z,F){return new Ij(n,this.N,Z,F)}; g.Q.VJ=function(n){this.X=n.X};var nwK={threshold:[0,.3,.5,.75,1]};g.d(xj,Ij);g.Q=xj.prototype;g.Q.observe=function(){var n=this;this.Tx||(this.Tx=$1());if(VZP(298,function(){return ZDj(n)}))return!0; this.X.fail("msf");return!1}; g.Q.unobserve=function(){if(this.V&&this.element)try{this.V.unobserve(this.element),this.L?(this.L.unobserve(this.element),this.L=null):this.J&&(this.J.disconnect(),this.J=null)}catch(n){}}; g.Q.gS=function(){var n=SL(this);n.length>0&&G$(this,n);Ij.prototype.gS.call(this)}; g.Q.hZ=function(){}; g.Q.VF=function(){return!1}; g.Q.jM=function(){}; g.Q.QN=function(){var n={};return Object.assign(this.X.QN(),(n.niot_obs=this.Tx,n.niot_cbk=this.Ns,n))}; g.Q.getName=function(){return"nio"};g.d(ip,wi);ip.prototype.getName=function(){return"nio"}; ip.prototype.IB=function(){return!yp().X&&this.N.N.T.IntersectionObserver!=null}; ip.prototype.Pb=function(n,Z,F){return new xj(n,this.N,Z,F)};g.d(EA,R_);EA.prototype.SW=function(){return yp().N}; EA.prototype.E1=function(){var n=otQ();this.L!==n&&(this.N!=this&&n>this.N.L&&(this.N=this,fb(this)),this.L=n);return n==2};dS.prototype.sample=function(){R5(this,G2(),!1)}; dS.prototype.V=function(){var n=dk(),Z=$1();n?(Uf||(No=Z,g.I5(rT.N,function(F){var y=F.Sv();y.aY=lUK(y,Z,F.UD!=1)})),Uf=!0):(this.J=XGo(this,Z),Uf=!1,aUj=Z,g.I5(rT.N,function(F){F.jY&&(F.Sv().L=Z)})); R5(this,G2(),!n)}; var Yq=xW(dS);var ywY=null,yw="",gr=!1;var UXT=Kjn().qK,CO=Kjn().AT;var Rjo={szQ:"visible",vcQ:"audible",w9g:"time",VPT:"timetype"},gUK={visible:function(n){return/^(100|[0-9]{1,2})$/.test(n)}, audible:function(n){return n=="0"||n=="1"}, timetype:function(n){return n=="mtos"||n=="tos"}, time:function(n){return/^(100|[0-9]{1,2})%$/.test(n)||/^([0-9])+ms$/.test(n)}}; pLe.prototype.setTime=function(n,Z,F){Z=="ms"?(this.T=n,this.V=-1):(this.T=-1,this.V=n);this.S=F===void 0?"tos":F;return this};g.d(pC,bp);pC.prototype.getId=function(){return this.J}; pC.prototype.C=function(){return!0}; pC.prototype.N=function(n){var Z=n.Sv(),F=n.getDuration();return IF(this.L,function(y){if(y.N!=void 0)var l=que(y,Z);else b:{switch(y.S){case "mtos":l=y.X?Z.S.T:Z.T.N;break b;case "tos":l=y.X?Z.S.N:Z.T.N;break b}l=0}l==0?y=!1:(y=y.T!=-1?y.T:F!==void 0&&F>0?y.V*F:-1,y=y!=-1&&l>=y);return y})};g.d(aN,gfT);aN.prototype.N=function(n){var Z=new qS8;Z.N=CG(n,vJf);Z.X=CG(n,fyo);return Z};g.d(OYe,bp);OYe.prototype.N=function(n){return qDY(n)};g.d(I6,sfU);g.d(myj,bp);myj.prototype.N=function(n){return n.Sv().bI()};g.d(MI,q1);MI.prototype.N=function(n){var Z=g.zi(this.J,f7(B6().Vm,"ovms"));return!n.jf&&(n.UD!=0||Z)};g.d(UA,I6);UA.prototype.X=function(){return new MI(this.N)}; UA.prototype.T=function(){return[new myj("viewable_impression",this.N),new OYe(this.N)]};g.d(Xg,p5);Xg.prototype.V=function(){var n=g.Di("ima.admob.getViewability"),Z=f7(this.Vm,"queryid");typeof n==="function"&&Z&&n(Z)}; Xg.prototype.getName=function(){return"gsv"};g.d(OA,wi);OA.prototype.getName=function(){return"gsv"}; OA.prototype.IB=function(){var n=yp();B6();return n.X&&!1}; OA.prototype.Pb=function(n,Z,F){return new Xg(this.N,Z,F)};g.d(L5,p5);L5.prototype.V=function(){var n=this,Z=g.Di("ima.bridge.getNativeViewability"),F=f7(this.Vm,"queryid");typeof Z==="function"&&F&&Z(F,function(y){g.Zc(y)&&n.J++;var l=y.opt_nativeViewVisibleBounds||{},m=y.opt_nativeViewHidden;n.N=$EQ(y.opt_nativeViewBounds||{});var a=n.X.V;a.N=m?Ajj.clone():$EQ(l);n.timestamp=y.opt_nativeTime||-1;yp().N=a.N;y=y.opt_nativeVolume;y!==void 0&&(a.volume=y)})}; L5.prototype.getName=function(){return"nis"};g.d(cW,wi);cW.prototype.getName=function(){return"nis"}; cW.prototype.IB=function(){var n=yp();B6();return n.X&&!1}; cW.prototype.Pb=function(n,Z,F){return new L5(this.N,Z,F)};g.d(FK,R_);g.Q=FK.prototype;g.Q.E1=function(){return this.X.w6!=null}; g.Q.YP=function(){var n={};this.lY&&(n.mraid=this.lY);this.w5&&(n.mlc=1);n.mtop=this.X.gku;this.J&&(n.mse=this.J);this.jT&&(n.msc=1);n.mcp=this.X.compatibility;return n}; g.Q.uo=function(n){var Z=g.S7.apply(1,arguments);try{return this.X.w6[n].apply(this.X.w6,Z)}catch(F){xr(538,F,.01,function(y){y.method=n})}}; g.Q.initialize=function(){var n=this;if(this.isInitialized)return!this.S6();this.isInitialized=!0;if(this.X.compatibility===2)return this.J="ng",this.fail("w"),!1;if(this.X.compatibility===1)return this.J="mm",this.fail("w"),!1;yp().L=!0;this.T.document.readyState&&this.T.document.readyState=="complete"?LhQ(this):fv(this.T,"load",function(){J6().setTimeout(Kw(292,function(){return LhQ(n)}),100)},292); return!0}; g.Q.T$=function(){var n=yp(),Z=SyK(this,"getMaxSize");n.N=new Bk(0,Z.width,Z.height,0)}; g.Q.E$=function(){yp().V=SyK(this,"getScreenSize")}; g.Q.dispose=function(){yKf(this);R_.prototype.dispose.call(this)};var rje=new function(n,Z){this.key=n;this.defaultValue=Z===void 0?!1:Z;this.valueType="boolean"}("45378663");g.Q=MP.prototype;g.Q.rT=function(n){$L(n,!1);oaQ(n)}; g.Q.rR=function(){}; g.Q.VD=function(n,Z,F,y){var l=this;n=new Uh(G5,n,F?Z:-1,7,this.uv(),this.d$());n.B1=y;N3f(n.Vm);MF(n.Vm,"queryid",n.B1);n.qH("");liT(n,function(){return l.lS.apply(l,g.t(g.S7.apply(0,arguments)))},function(){return l.zuY.apply(l,g.t(g.S7.apply(0,arguments)))}); (y=xW(Gf).N)&&mWe(n,y);this.T&&(n.vC(this.T),this.T=null);n.AF.pY&&xW(f77);return n}; g.Q.kp=function(n){switch(n.qX()){case 0:if(n=xW(Gf).N)n=n.N,g.ov(n.S,this),n.Pr&&this.xN()&&tUp(n);up();break;case 2:j7()}}; g.Q.VJ=function(){}; g.Q.xN=function(){return!1}; g.Q.zuY=function(n,Z){n.jf=!0;switch(n.UZ()){case 1:leY(n,Z);break;case 2:this.iW(n)}}; g.Q.kxp=function(n){var Z=n.J(n);Z&&(Z=Z.volume,n.Yi=Up(Z)&&Z>0);eKj(n,0);return H6(n,"start",dk())}; g.Q.rf=function(n,Z,F){R5(Yq,[n],!dk());return this.zQ(n,Z,F)}; g.Q.zQ=function(n,Z,F){return H6(n,F,dk())}; g.Q.tT8=function(n){return xG(n,"firstquartile",1)}; g.Q.jY4=function(n){n.xi=!0;return xG(n,"midpoint",2)}; g.Q.ORT=function(n){return xG(n,"thirdquartile",3)}; g.Q.S8s=function(n){var Z=xG(n,"complete",4);ZY(n);return Z}; g.Q.oiY=function(n){n.UD=3;return H6(n,"error",dk())}; g.Q.Tp=function(n,Z,F){Z=dk();if(n.NK()&&!Z){var y=n.Sv(),l=$1();y.L=l}R5(Yq,[n],!Z);n.NK()&&(n.UD=1);return H6(n,F,Z)}; g.Q.upi=function(n,Z){Z=this.rf(n,Z||{},"skip");ZY(n);return Z}; g.Q.sYT=function(n,Z){$L(n,!0);return this.rf(n,Z||{},"fullscreen")}; g.Q.WQ4=function(n,Z){$L(n,!1);return this.rf(n,Z||{},"exitfullscreen")}; g.Q.H0=function(n,Z,F){Z=n.Sv();var y=$1();Z.aY=lUK(Z,y,n.UD!=1);R5(Yq,[n],!dk());n.UD==1&&(n.UD=2);return H6(n,F,dk())}; g.Q.CYG=function(n){R5(Yq,[n],!dk());return n.X()}; g.Q.Vb=function(n){R5(Yq,[n],!dk());this.qw(n);ZY(n);return n.X()}; g.Q.lS=function(){}; g.Q.iW=function(){}; g.Q.qw=function(){}; g.Q.wp=function(){}; g.Q.kS=function(){}; g.Q.d$=function(){this.N||(this.N=this.kS());return this.N==null?new Yr:new UA(this.N)}; g.Q.uv=function(){return new aN};g.d(Xl,bp);Xl.prototype.N=function(n){return n.Nv()==4};g.d(EzP,q1);EzP.prototype.N=function(n){n=n.Nv();return n==3||n==4};g.d(sK,I6);sK.prototype.X=function(){return new EzP(this.N)}; sK.prototype.T=function(){return[new Xl(this.N)]};g.d(E5,gfT);E5.prototype.N=function(n){n&&(n.e===28&&(n=Object.assign({},n,{avas:3})),n.vs===4||n.vs===5)&&(n=Object.assign({},n,{vs:3}));var Z=new qS8;Z.N=CG(n,Iy8);Z.X=CG(n,fyo);return Z};CP8.prototype.X=function(){return g.Di(this.N)};g.d(KO,MP);g.Q=KO.prototype;g.Q.rR=function(n,Z){var F=this,y=xW(Gf);if(y.N!=null)switch(y.N.getName()){case "nis":var l=usY(this,n,Z);break;case "gsv":l=FnT(this,n,Z);break;case "exc":l=wt3(this,n)}l||(Z.opt_overlayAdElement?l=void 0:Z.opt_adElement&&(l=uJK(this,n,Z.opt_adElement,Z.opt_osdId)));l&&l.UZ()==1&&(l.J==g.ha&&(l.J=function(m){return F.wp(m)}),ho3(this,l,Z)); return l}; g.Q.wp=function(n){n.X=0;n.Wr=0;if(n.V=="h"||n.V=="n"){B6();n.yg&&(B6(),ge(this)!="h"&&ge(this));var Z=g.Di("ima.common.getVideoMetadata");if(typeof Z==="function")try{var F=Z(n.B1)}catch(l){n.X|=4}else n.X|=2}else if(n.V=="b")if(Z=g.Di("ytads.bulleit.getVideoMetadata"),typeof Z==="function")try{F=Z(n.B1)}catch(l){n.X|=4}else n.X|=2;else if(n.V=="ml")if(Z=g.Di("ima.common.getVideoMetadata"),typeof Z==="function")try{F=Z(n.B1)}catch(l){n.X|=4}else n.X|=2;else n.X|=1;n.X||(F===void 0?n.X|=8:F===null? n.X|=16:g.Zc(F)?n.X|=32:F.errorCode!=null&&(n.Wr=F.errorCode,n.X|=64));F==null&&(F={});Z=F;n.L=0;for(var y in NHf)Z[y]==null&&(n.L|=NHf[y]);tli(Z,"currentTime");tli(Z,"duration");Up(F.volume)&&Up()&&(F.volume*=NaN);return F}; g.Q.kS=function(){B6();ge(this)!="h"&&ge(this);var n=ggi(this);return n!=null?new CP8(n):null}; g.Q.iW=function(n){!n.N&&n.jf&&lM(this,n,"overlay_unmeasurable_impression")&&(n.N=!0)}; g.Q.qw=function(n){n.cU&&(n.bI()?lM(this,n,"overlay_viewable_end_of_session_impression"):lM(this,n,"overlay_unviewable_impression"),n.cU=!1)}; g.Q.lS=function(){}; g.Q.VD=function(n,Z,F,y){if(B6().flags.Wx(rje)){var l=f7(B6().Vm,"mm"),m={};(l=(m[rHP.b0]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",m[rHP.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",m)[l])&&g6o(this,l);this.V==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&xr(1044,Error())}n=MP.prototype.VD.call(this,n,Z,F,y);this.S&&(Z=this.C,n.S==null&&(n.S=new EMj),Z.N[n.B1]=n.S,n.S.S=Wwi);return n}; g.Q.rT=function(n){n&&n.UZ()==1&&this.S&&delete this.C.N[n.B1];return MP.prototype.rT.call(this,n)}; g.Q.d$=function(){this.N||(this.N=this.kS());return this.N==null?new Yr:this.V==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new sK(this.N):new UA(this.N)}; g.Q.uv=function(){return this.V==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new E5:new aN}; g.Q.vC=function(n,Z,F,y,l){Z=new Bk(F,Z+y,F+l,Z);(n=mE(rT,n))?n.vC(Z):this.T=Z}; var xxe=hk(193,fe3,void 0,uoT);g.pv("Goog_AdSense_Lidar_sendVastEvent",xxe);var GTY=Kw(194,function(n,Z){Z=Z===void 0?{}:Z;n=aep(xW(KO),n,Z);return KJ7(n)}); g.pv("Goog_AdSense_Lidar_getViewability",GTY);var R0n=hk(195,function(){return wMY()}); g.pv("Goog_AdSense_Lidar_getUrlSignalsArray",R0n);var gJi=Kw(196,function(){return JSON.stringify(wMY())}); g.pv("Goog_AdSense_Lidar_getUrlSignalsList",gJi);var A8o=g.VT(["//ep2.adtrafficquality.google/sodar/",""]),WgU=g.VT(["//tpc.googlesyndication.com/sodar/",""]);g.d(hg,Error);g.d(Jd,g.I);Jd.prototype.dl=function(){return this.wpc.f()}; Jd.prototype.jm=function(n){this.wpc.c(n)}; Jd.prototype.vM=function(n){return this.wpc.m(UFp(n))}; Jd.prototype.VH=function(n){return this.wpc.mws(UFp(n))}; g.d(k$,g.I);k$.prototype.snapshot=function(n){return this.Lq.s(Object.assign({},n.d6&&{c:n.d6},n.Th&&{s:n.Th},n.wq!==void 0&&{p:n.wq}))}; k$.prototype.U4=function(n){this.Lq.e(n)}; k$.prototype.WX=function(){return this.Lq.l()};g.d(HV,g.I);HV.prototype.share=function(){if(this.CR())throw Error("E:AD");this.X++;return this}; HV.prototype.dispose=function(){--this.X||g.I.prototype.dispose.call(this)};WsY.prototype.PW=function(n,Z){this.N.PW("/client_streamz/bg/frs",n,Z)}; Gfo.prototype.PW=function(n,Z,F,y,l,m){this.N.PW("/client_streamz/bg/wrl",n,Z,F,y,l,m)}; xC7.prototype.tV=function(n,Z){this.N.jl("/client_streamz/bg/ec",n,Z)}; bQn.prototype.PW=function(n,Z,F){this.N.PW("/client_streamz/bg/el",n,Z,F)}; rao.prototype.tV=function(n,Z){this.N.jl("/client_streamz/bg/cec",n,Z)}; Yp8.prototype.tV=function(n,Z){this.N.jl("/client_streamz/bg/po/csc",n,Z)}; R_j.prototype.tV=function(n,Z){this.N.jl("/client_streamz/bg/po/ctav",n,Z)}; gWQ.prototype.tV=function(n,Z){this.N.jl("/client_streamz/bg/po/cwsc",n,Z)};g.d(fs8,qU);g.d(Xt,qU);var MH=[1,2,3];var ixK=[0,MH,YWf,qWo,JjU];var CN7=[0,$s,[0,lyU,ayT]];g.d(ek,qU);var Hg=[1,2,3];var uAQ=[0,Hg,DxY,mxe,Za,CN7];g.d(Bg,qU);var bxY=[0,$s,ixK,uAQ];var Xj7=[0,Md];g.d(wL,qU);var z0n=[0,Md,-1,PNo];var t6f=[0,Md,-1,pjT,PNo];g.d(NK,qU);var PJj=[1,2,3];var kT3=[0,PJj,Za,z0n,Za,t6f,Za,Xj7];g.d(kM,qU);kM.prototype.Lk=function(){var n=Fw(this,3,zZ,3,!0);DT(n);return n[void 0]};kM.prototype.T=HDp([0,Md,kT3,Qmj,$s,bxY,wjj,THi]);g.d(YLe,qU);g.Q=Ji.prototype;g.Q.isEnabled=function(){if(!g.KQ.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.Q.set=function(n,Z,F){var y=!1;if(typeof F==="object"){var l=F.sameSite;y=F.secure||!1;var m=F.domain||void 0;var a=F.path||void 0;var D=F.maxAge}if(/[;=\s]/.test(n))throw Error('Invalid cookie name "'+n+'"');if(/[;\r\n]/.test(Z))throw Error('Invalid cookie value "'+Z+'"');D===void 0&&(D=-1);F=m?";domain="+m:"";a=a?";path="+a:"";y=y?";secure":"";D=D<0?"":D==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+D*1E3)).toUTCString();this.N.cookie=n+"="+Z+F+a+D+y+(l!=null? ";samesite="+l:"")}; g.Q.get=function(n,Z){for(var F=n+"=",y=(this.N.cookie||"").split(";"),l=0,m;l=0;Z--)this.remove(n[Z])}; var C0=new Ji(typeof document=="undefined"?null:document);O_.prototype.compress=function(n){var Z,F,y,l;return g.A(function(m){switch(m.N){case 1:return Z=new CompressionStream("gzip"),F=(new Response(Z.readable)).arrayBuffer(),y=Z.writable.getWriter(),g.x(m,y.write((new TextEncoder).encode(n)),2);case 2:return g.x(m,y.close(),3);case 3:return l=Uint8Array,g.x(m,F,4);case 4:return m.return(new l(m.X))}})}; O_.prototype.isSupported=function(n){return n<1024?!1:typeof CompressionStream!=="undefined"};g.d(Fj,qU);w5.prototype.setInterval=function(n){this.intervalMs=n;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; w5.prototype.start=function(){var n=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){n.tick()},this.intervalMs),this.X=this.N())}; w5.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; w5.prototype.tick=function(){var n=this;if(this.enabled){var Z=Math.max(this.N()-this.X,0);Z0?F:void 0));F=DX(F,4,$E(l>0?l:void 0));F=DX(F,5,$E(m>0?m:void 0));l=F.AG;m=l[kt]|0;F=t9(F,m)?F:e5(F,l,m)?Hd(F,l):new F.constructor(X1(l,m,!0));cV(a,pu,10,F)}a=this.N.clone();F=Date.now().toString();a=DX(a,4,dq(F));n=n0(a,Hh,3,n.slice());y&&(a=new gp8,y=DX(a,13,$E(y)),a=new yF, y=cV(a,gp8,2,y),a=new lG8,y=cV(a,yF,1,y),y=pz(y,2,9),cV(n,lG8,18,y));Z&&wA(n,14,Z);return n};g.CH.prototype.X=0;g.CH.prototype.reset=function(){this.N=this.T=this.V;this.X=0}; g.CH.prototype.getValue=function(){return this.T};g.d(ns,qU);var e0f=Gm(ns);g.d(Y2Y,qU);var LI;LI=new VPo;g.d(Ix,g.I);g.Q=Ix.prototype;g.Q.IY=function(){vy(this);this.X.stop();this.lY.stop();g.I.prototype.IY.call(this)}; g.Q.dispatch=function(n){if(n instanceof Hh)this.log(n);else try{var Z=new Hh,F=n.Go();var y=Oy(Z,8,F);this.log(y)}catch(l){Z4(this,4,1)}}; g.Q.log=function(n){Z4(this,2,1);if(this.jT){n=n.clone();var Z=this.fR++;n=wA(n,21,Z);this.componentId&&Oy(n,26,this.componentId);Z=n;var F=tD(Z,1);var y=y===void 0?!1:y;var l=typeof F;y=F==null?F:l==="bigint"?String(VE(64,F)):IG(F)?l==="string"?ue(F):y?eXT(F):q0(F):void 0;y==null&&(y=Date.now(),y=Number.isFinite(y)?y.toString():"0",DX(Z,1,dq(y)));y=tD(Z,15);y!=null&&(typeof y==="bigint"?GX(y)?y=Number(y):(y=VE(64,y),y=GX(y)?Number(y):String(y)):y=IG(y)?typeof y==="number"?q0(y):ue(y):void 0);y!= null||wA(Z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(y=this.experimentIds.clone(),cV(Z,Fj,16,y));Z4(this,1,1);Z=this.N.length-1E3+1;Z>0&&(this.N.splice(0,Z),this.V+=Z,Z4(this,3,Z));this.N.push(n);this.U_||this.X.enabled||this.X.start()}}; g.Q.flush=function(n,Z){var F=this;if(this.N.length===0)n&&n();else if(this.zx&&this.Ns)this.T.X=3,OH8(this);else{var y=Date.now();if(this.aY>y&&this.Wr0&&(F.Wr=Date.now(),F.aY=F.Wr+T);T=dT(TA);var U;Zh&&T&&((U=P.AG[T])==null?void 0:U[175237375])!=null&&wX(g_p,3);a:{var h=h===void 0?!1:h;if(dT(iA8)&&dT(TA)&&void 0===iA8){U=P.AG;T=U[TA];if(!T)break a;if(T=T.lW)try{T(U,175237375,t2p);break a}catch(v){sy(v)}}h&&(h=P.AG,(U=dT(TA))&&U in h&&(h=h[U])&&delete h[175237375])}h=LI.N?LI.X(P,LI.N, 175237375,LI.T):LI.X(P,175237375,null,LI.T);if(h=h===null?void 0:h)h=po(h,1,-1),h!==-1&&(F.S=new g.CH(h<1?1:h,3E5,.1),F.X.setInterval(F.S.getValue()))}}n&&n();F.C=0},w=function(){F.network&&F.network.send(p,q,L)}; D?D.then(function(T){Z4(F,5,l);p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=T;p.rX=2;w()},function(){Z4(F,6,l); w()}):w()}}}}; g.Q.isRetryable=function(n){return 500<=n&&n<600||n===401||n===0};HSf.prototype.send=function(n,Z,F){var y=this,l,m,a,D,p,L,q,w,T,P;return g.A(function(J){switch(J.N){case 1:return m=(l=y.mS?new AbortController:void 0)?setTimeout(function(){l.abort()},n.timeoutMillis):void 0,g.RX(J,2,3),a=Object.assign({},{method:n.requestType, headers:Object.assign({},n.requestHeaders)},n.body&&{body:n.body},n.withCredentials&&{credentials:"include"},{signal:n.timeoutMillis&&l?l.signal:null}),g.x(J,fetch(n.url,a),5);case 5:D=J.X;if(D.status!==200){(p=F)==null||p(D.status);J.ST(3);break}if((L=Z)==null){J.ST(7);break}return g.x(J,D.text(),8);case 8:L(J.X);case 7:case 3:g.cJ(J);clearTimeout(m);g.zu(J,0);break;case 2:q=g.d4(J);switch((w=q)==null?void 0:w.name){case "AbortError":(T=F)==null||T(408);break;default:(P=F)==null||P(400)}J.ST(3)}})}; HSf.prototype.l$=function(){return 4};g.d(oP,g.I);oP.prototype.pX=function(){this.V=!0;return this}; oP.prototype.build=function(){this.network||(this.network=new HSf);var n=new Ix({logSource:this.logSource,mT:this.mT?this.mT:t1o,sessionIndex:this.sessionIndex,aIr:this.M_,w_:this.T,U_:!1,pX:this.V,bO:this.bO,network:this.network});g.S(this,n);if(this.buildLabel){var Z=this.buildLabel,F=yS(n.T);Oy(F,7,Z)}n.J=new O_;this.componentId&&(n.componentId=this.componentId);this.w4&&(n.w4=this.w4);this.pageId&&(n.pageId=this.pageId);this.N&&((F=this.N)?(n.experimentIds||(n.experimentIds=new Fj),Z=n.experimentIds, F=F.Go(),Oy(Z,4,F)):n.experimentIds&&DX(n.experimentIds,4));this.X&&(n.zx=n.Ns);O_K(n.T);this.network.H_&&this.network.H_(this.logSource);this.network.OFY&&this.network.OFY(n);return n};g.d(B$,g.I);B$.prototype.flush=function(n){n=n||[];if(n.length){for(var Z=new YLe,F=[],y=0;y-1?(Z=n[a],F||(Z.FA=!1)):(Z=new ZUK(Z,this.src,m,!!y,l),Z.FA=F,n.push(Z));return Z}; g.Q.remove=function(n,Z,F,y){n=n.toString();if(!(n in this.listeners))return!1;var l=this.listeners[n];Z=kVp(l,Z,F,y);return Z>-1?(vK(l[Z]),g.ye(l,Z),l.length==0&&(delete this.listeners[n],this.N--),!0):!1}; g.Q.removeAll=function(n){n=n&&n.toString();var Z=0,F;for(F in this.listeners)if(!n||F==n){for(var y=this.listeners[F],l=0;l-1?n[l]:null}; g.Q.hasListener=function(n,Z){var F=n!==void 0,y=F?n.toString():"",l=Z!==void 0;return g.i8(this.listeners,function(m){for(var a=0;a>>0);g.aT(g.xu,g.I);g.xu.prototype[wvp]=!0;g.Q=g.xu.prototype;g.Q.addEventListener=function(n,Z,F,y){g.pO(this,n,Z,F,y)}; g.Q.removeEventListener=function(n,Z,F,y){fSi(this,n,Z,F,y)}; g.Q.dispatchEvent=function(n){var Z=this.f9;if(Z){var F=[];for(var y=1;Z;Z=Z.f9)F.push(Z),++y}Z=this.NS;y=n.type||n;if(typeof n==="string")n=new g.KG(n,Z);else if(n instanceof g.KG)n.target=n.target||Z;else{var l=n;n=new g.KG(y,Z);g.RH(n,l)}l=!0;var m;if(F)for(m=F.length-1;!n.X&&m>=0;m--){var a=n.currentTarget=F[m];l=kW(a,y,!0,n)&&l}n.X||(a=n.currentTarget=Z,l=kW(a,y,!0,n)&&l,n.X||(l=kW(a,y,!1,n)&&l));if(F)for(m=0;!n.X&&m0){this.X--;var n=this.N;this.N=n.next;n.next=null}else n=this.T();return n};var mT;Mv.prototype.add=function(n,Z){var F=t_p.get();F.set(n,Z);this.X?this.X.next=F:this.N=F;this.X=F}; Mv.prototype.remove=function(){var n=null;this.N&&(n=this.N,this.N=this.N.next,this.N||(this.X=null),n.next=null);return n}; var t_p=new FU(function(){return new IAp},function(n){return n.reset()}); IAp.prototype.set=function(n,Z){this.N=n;this.scope=Z;this.next=null}; IAp.prototype.reset=function(){this.next=this.scope=this.N=null};var FZ,mJ=!1,X8U=new Mv;nXf.prototype.reset=function(){this.context=this.X=this.T=this.N=null;this.V=!1}; var GuT=new FU(function(){return new nXf},function(n){n.reset()}); g.O2.prototype.then=function(n,Z,F){return SN7(this,yB(typeof n==="function"?n:null),yB(typeof Z==="function"?Z:null),F)}; g.O2.prototype.$goog_Thenable=!0;g.Q=g.O2.prototype;g.Q.finally=function(n){var Z=this;n=yB(n);return new g.O2(function(F,y){HUP(Z,function(l){n();F(l)},function(l){n(); y(l)})})}; g.Q.Mc=function(n,Z){return SN7(this,null,yB(n),Z)}; g.Q.catch=g.O2.prototype.Mc;g.Q.cancel=function(n){if(this.N==0){var Z=new Qv(n);g.MC(function(){D98(this,Z)},this)}}; g.Q.Wgi=function(n){this.N=0;E2(this,2,n)}; g.Q.txg=function(n){this.N=0;E2(this,3,n)}; g.Q.xm=function(){for(var n;n=p03(this);)LlU(this,n,this.N,this.J);this.C=!1}; var x68=sy;g.aT(Qv,Qq);Qv.prototype.name="cancel";g.aT(g.Rr,g.xu);g.Q=g.Rr.prototype;g.Q.enabled=!1;g.Q.Gu=null;g.Q.setInterval=function(n){this.Gj=n;this.Gu&&this.enabled?(this.stop(),this.start()):this.Gu&&this.stop()}; g.Q.QsQ=function(){if(this.enabled){var n=g.O7()-this.kD;n>0&&n0&&(this.getStatus(),this.C=setTimeout(this.Oo.bind(this), this.Ns)),this.getStatus(),this.Pr=!0,this.N.send(n),this.Pr=!1}catch(a){this.getStatus(),Fl7(this,a)}}; g.Q.Oo=function(){typeof Q9!="undefined"&&this.N&&(this.V="Timed out after "+this.Ns+"ms, aborting",this.X=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.Q.abort=function(n){this.N&&this.T&&(this.getStatus(),this.T=!1,this.S=!0,this.N.abort(),this.S=!1,this.X=n||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),j5(this))}; g.Q.IY=function(){this.N&&(this.T&&(this.T=!1,this.S=!0,this.N.abort(),this.S=!1),j5(this,!0));g.jX.yG.IY.call(this)}; g.Q.Yf=function(){this.CR()||(this.w5||this.Pr||this.S?YrK(this):this.AeR())}; g.Q.AeR=function(){YrK(this)}; g.Q.isActive=function(){return!!this.N}; g.Q.isComplete=function(){return g.Ya(this)==4}; g.Q.getStatus=function(){try{return g.Ya(this)>2?this.N.status:-1}catch(n){return-1}}; g.Q.getResponseHeader=function(n){if(this.N&&this.isComplete())return n=this.N.getResponseHeader(n),n===null?void 0:n}; g.Q.getLastError=function(){return typeof this.V==="string"?this.V:String(this.V)};Pc.prototype.send=function(n,Z,F){Z=Z===void 0?function(){}:Z; F=F===void 0?function(){}:F; La7(n.url,function(y){y=y.target;S5(y)?Z(g.LO(y)):F(y.getStatus())},n.requestType,n.body,n.requestHeaders,n.timeoutMillis,n.withCredentials)}; Pc.prototype.l$=function(){return 1};o7.prototype.done=function(){this.logger.Kw(this.event,lm()-this.startTime)}; g.d(da,HV);g.d(M7,da);g.Q=M7.prototype;g.Q.Fb=function(){}; g.Q.OZ=function(){}; g.Q.Kw=function(){}; g.Q.iL=function(){}; g.Q.yT=function(){}; g.Q.mG=function(n,Z,F,y){return y}; g.Q.b9=function(){}; g.Q.Ig=function(){}; g.Q.VO=function(){}; g.d(pKK,da);g.Q=pKK.prototype;g.Q.update=function(n){this.logger.dispose();this.logger=n}; g.Q.OZ=function(n){this.logger.OZ(n)}; g.Q.Kw=function(n,Z){this.logger.Kw(n,Z)}; g.Q.iL=function(n){this.logger.iL(n)}; g.Q.yT=function(){this.logger.yT()}; g.Q.mG=function(n,Z,F,y){return this.logger.mG(n,Z,F,y)}; g.Q.b9=function(n){this.logger.b9(n)}; g.Q.Ig=function(n){this.logger.Ig(n)}; g.Q.VO=function(n){this.logger.VO(n)}; g.Q.Fb=function(n){this.logger.Fb(n)}; g.d(ibo,g.I);g.d(BN,da);g.Q=BN.prototype;g.Q.Fb=function(n){this.metrics.nk5.PW(n,this.ZI)}; g.Q.OZ=function(n){this.metrics.eventCount.tV(n,this.ZI)}; g.Q.Kw=function(n,Z){this.metrics.RU.PW(Z,n,this.ZI)}; g.Q.iL=function(n){this.metrics.errorCount.tV(n,this.ZI)}; g.Q.mG=function(n,Z,F,y){function l(D){if(!m.CR()){var p=lm()-a;m.metrics.ZPg.PW(p,n,F,D,Z,m.ZI)}} var m=this,a=lm();y.then(function(){return void l(0)},function(D){return void l(D instanceof tR?D.code:-1)}); return y}; g.Q.b9=function(n){this.metrics.Lg8.tV(n,this.ZI)}; g.Q.Ig=function(n){this.metrics.Jn.tV(n,this.ZI)}; g.Q.VO=function(n){this.metrics.MxQ.tV(n,this.ZI)}; g.d(MO,BN);MO.prototype.yT=function(){dZi(this.N)};g.d(Ey,qU);g.d(fo,qU);g.d(Nv,qU);var S5U=Gm(Nv),NWp=function(n){return J$(function(Z){return Z instanceof n&&!t9(Z)})}(Nv); Nv.messageId="bfkj";g.d(D_,qU);g.d(yN,qU);var hlP=Gm(yN);g.d(X9,g.I);X9.prototype.snapshot=function(n){if(this.CR())throw Error("Already disposed");this.logger.OZ("n");var Z=this.logger.share();return this.T.then(function(F){var y=F.We;return new Promise(function(l){var m=new o7(Z,"n");y(function(a){m.done();Z.Fb(a.length);Z.yT();Z.dispose();l(a)},[n.d6, n.Th,n.P2,n.wq])})})}; X9.prototype.Gp=function(n){var Z=this;if(this.CR())throw Error("Already disposed");this.logger.OZ("n");var F=XH(this.logger,function(){return Z.V([n.d6,n.Th,n.P2,n.wq])},"n"); this.logger.Fb(F.length);this.logger.yT();return F}; X9.prototype.U4=function(n){this.T.then(function(Z){var F;(F=Z.EdG)==null||F(n)})}; X9.prototype.WX=function(){return this.logger.share()};g.d(zN,qU);g.d(rCY,qU);l2.prototype.DH=function(n){return Fqj(this,n,new M7,0)};g.d(bR,g.I);g.Q=bR.prototype;g.Q.snapshot=function(n){var Z=this;return g.A(function(F){switch(F.N){case 1:if(Z.CR())throw Error("Already disposed");if(Z.X||Z.J){F.ST(2);break}return g.x(F,Z.S.promise,2);case 2:if(!Z.X){F.ST(4);break}return g.x(F,Z.X.snapshot(n),5);case 5:return F.return(F.X);case 4:throw Z.J;}})}; g.Q.pause=function(){this.CR()||this.isPaused||(this.isPaused=!0,this.N&&this.N.pause())}; g.Q.resume=function(){!this.CR()&&this.isPaused&&(this.isPaused=!1,this.N&&this.N.resume())}; g.Q.checkForRefresh=function(){var n=this;return g.A(function(Z){if(n.CR())throw Error("Already disposed");var F;if(F=n.N)F=n.N,F.isExpired()?(Aa(F),F.ke(0),F=!0):F=!1,F=!F;return F?Z.ST(0):g.x(Z,n.T.promise,0)})}; g.Q.U4=function(n){var Z,F;(Z=this.X)==null||(F=Z.U4)==null||F.call(Z,n)}; g.Q.handleError=function(n){if(!this.CR()){this.J=n;this.S.resolve();var Z,F;(F=(Z=this.options).JDT)==null||F.call(Z,n)}}; g.Q.WX=function(){return this.logger.share()}; var vGo={Gou:432E5,cX:3E5,iK:10,Be:1E4,Ym:3E4,Ixi:3E4,eb5:6E4,MB:1E3,Zb:6E4,LI:6E5,h1:.25,HZ:2,maxAttempts:10};uX.prototype.pause=function(){this.isPaused||(this.isPaused=!0,Aa(this))}; uX.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())}; uX.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var BHp,XE3=(BHp=Math.imul)!=null?BHp:function(n,Z){return n*Z|0},Iv=[196, 200,224,18];XK.prototype.Go=function(){return String(this.N)+","+this.X.join()}; XK.prototype.z5=function(n,Z){var F=void 0;if(this.X[this.N]!==n){var y=this.X.indexOf(n);y!==-1?(this.X.splice(y,1),y0;)Z[F++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(n%62),n=Math.floor(n/62);return Z.join("")}};g.d(iR,g.I);iR.prototype.VH=function(n,Z){var F=this.vM(n);Z==null||Z(F);return XH(this.logger,function(){return g.Ee(F,2)},this.X)}; g.d(NG,iR);NG.prototype.vM=function(n,Z){var F=this;this.logger.OZ(this.N);++this.S>=this.C&&this.T.resolve();var y=n();n=XH(this.logger,function(){return F.V(y)},"C"); if(n===void 0)throw new hg(17,"YNJ:Undefined");if(!(n instanceof Uint8Array))throw new hg(18,"ODM:Invalid");Z==null||Z(n);return n}; g.d(us,iR);us.prototype.vM=function(){return this.V}; g.d(C9,iR);C9.prototype.vM=function(){var n=this;return XH(this.logger,function(){return vx(n.V)},"d")}; C9.prototype.VH=function(){return this.V}; g.d(giQ,iR);giQ.prototype.vM=function(){if(this.V)return this.V;this.V=oD3(this,function(n){return"_"+NJP(n)}); return oD3(this,function(n){return n})}; g.d(BR,iR);BR.prototype.vM=function(){var n=Math.floor(Date.now()/1E3),Z=[Math.random()*255,Math.random()*255],F=Z.concat([this.V&255,this.clientState],[n>>24&255,n>>16&255,n>>8&255,n&255]);n=new Uint8Array(2+F.length);n[0]=34;n[1]=F.length;n.set(F,2);F=n.subarray(2);for(var y=Z=Z.length;y150))try{this.cache=new ZEi(n,this.logger)}catch(Z){this.reportError(new hg(22,"GBJ:init",Z))}}; g.Q.reportError=function(n){this.logger.iL(n.code);this.onError(n);return n}; var tqQ=function(n){return J$(function(Z){if(!GCU(Z))return!1;for(var F=g.Y(Object.entries(n)),y=F.next();!y.done;y=F.next()){var l=g.Y(y.value);y=l.next().value;l=l.next().value;if(!(y in Z)){if(l.FH8===!0)continue;return!1}if(!l(Z[y]))return!1}return!0})}({Lq:function(n){return J$(function(Z){return Z instanceof n})}(bR)},"");var xlj=(new Date).getTime();g.d(az,qU);var M6o=Gm(az);jsT.prototype.getMetadata=function(){return this.metadata};IL.prototype.getMetadata=function(){return this.metadata}; IL.prototype.getStatus=function(){return this.status};Lu.prototype.J=function(n,Z){Z=Z===void 0?{}:Z;return new jsT(n,this,Z)}; Lu.prototype.getName=function(){return this.name};var $RP=new Lu("/google.internal.waa.v1.Waa/Create",zN,az,function(n){return n.Go()},M6o);g.d(L6,qU);var xdp=new Lu("/google.internal.waa.v1.Waa/GenerateIT",rCY,L6,function(n){return n.Go()},Gm(L6));var k_P=new Set(["SAPISIDHASH","APISIDHASH"]);g.d(aa,qU);aa.prototype.getValue=function(){var n=tD(this,2);if(Array.isArray(n)||n instanceof qU)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return bs(this,2)};g.d(tw,qU);tw.prototype.getMessage=function(){return Io(this,2)}; var Ahe=Gm(tw);nv.prototype.removeListener=function(n,Z){n==="data"?SO(this.X,Z):n==="metadata"?SO(this.V,Z):n==="status"?SO(this.S,Z):n==="end"?SO(this.T,Z):n==="error"&&SO(this.N,Z);return this}; nv.prototype.cancel=function(){this.xhr.abort()}; g.d(s3Q,Error);g.aT(g.aI,xvo);g.aI.prototype.N=function(){var n=new Pl(this.V,this.T);this.X&&n.setCredentialsMode(this.X);return n}; g.aI.prototype.setCredentialsMode=function(n){this.X=n}; g.aT(Pl,g.xu);g.Q=Pl.prototype;g.Q.open=function(n,Z){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Tx=n;this.Ns=Z;this.readyState=1;TU(this)}; g.Q.send=function(n){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.L.signal.aborted)throw this.abort(),Error("Request was aborted.");this.N=!0;var Z={headers:this.Pr,method:this.Tx,credentials:this.S,cache:void 0,signal:this.L.signal};n&&(Z.body=n);(this.w5||g.KQ).fetch(new Request(this.Ns,Z)).then(this.iRr.bind(this),this.Ki.bind(this))}; g.Q.abort=function(){this.response=this.responseText="";this.Pr=new Headers;this.status=0;this.L.abort("Request was aborted.");this.T&&this.T.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.N&&this.readyState!=4&&(this.N=!1,oy(this));this.readyState=0}; g.Q.iRr=function(n){if(this.N&&(this.V=n,this.X||(this.status=this.V.status,this.statusText=this.V.statusText,this.X=n.headers,this.readyState=2,TU(this)),this.N&&(this.readyState=3,TU(this),this.N)))if(this.responseType==="arraybuffer")n.arrayBuffer().then(this.VTY.bind(this),this.Ki.bind(this));else if(typeof g.KQ.ReadableStream!=="undefined"&&"body"in n){this.T=n.body.getReader();if(this.C){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.J=new TextDecoder;nli(this)}else n.text().then(this.bR8.bind(this),this.Ki.bind(this))}; g.Q.msr=function(n){if(this.N){if(this.C&&n.value)this.response.push(n.value);else if(!this.C){var Z=n.value?n.value:new Uint8Array(0);if(Z=this.J.decode(Z,{stream:!n.done}))this.response=this.responseText+=Z}n.done?oy(this):TU(this);this.readyState==3&&nli(this)}}; g.Q.bR8=function(n){this.N&&(this.response=this.responseText=n,oy(this))}; g.Q.VTY=function(n){this.N&&(this.response=n,oy(this))}; g.Q.Ki=function(){this.N&&oy(this)}; g.Q.setRequestHeader=function(n,Z){this.Pr.append(n,Z)}; g.Q.getResponseHeader=function(n){return this.X?this.X.get(n.toLowerCase())||"":""}; g.Q.getAllResponseHeaders=function(){if(!this.X)return"";for(var n=[],Z=this.X.entries(),F=Z.next();!F.done;)F=F.value,n.push(F[0]+": "+F[1]),F=Z.next();return n.join("\r\n")}; g.Q.setCredentialsMode=function(n){this.S=n}; Object.defineProperty(Pl.prototype,"withCredentials",{get:function(){return this.S==="include"}, set:function(n){this.setCredentialsMode(n?"include":"same-origin")}});g.fW.prototype.toString=function(){var n=[],Z=this.S;Z&&n.push(OX(Z,nRQ,!0),":");var F=this.N;if(F||Z=="file")n.push("//"),(Z=this.L)&&n.push(OX(Z,nRQ,!0),"@"),n.push(g.J5(F).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),F=this.T,F!=null&&n.push(":",String(F));if(F=this.X)this.N&&F.charAt(0)!="/"&&n.push("/"),n.push(OX(F,F.charAt(0)=="/"?ZJn:Fv7,!0));(F=this.V.toString())&&n.push("?",F);(F=this.C)&&n.push("#",OX(F,yb8));return n.join("")}; g.fW.prototype.resolve=function(n){var Z=this.clone(),F=!!n.S;F?g.Af(Z,n.S):F=!!n.L;F?Z.L=n.L:F=!!n.N;F?g.WU(Z,n.N):F=n.T!=null;var y=n.X;if(F)g.rw(Z,n.T);else if(F=!!n.X){if(y.charAt(0)!="/")if(this.N&&!this.X)y="/"+y;else{var l=Z.X.lastIndexOf("/");l!=-1&&(y=Z.X.slice(0,l+1)+y)}l=y;if(l==".."||l==".")y="";else if(g.oo(l,"./")||g.oo(l,"/.")){y=EN(l,"/");l=l.split("/");for(var m=[],a=0;a1||m.length==1&&m[0]!="")&&m.pop(), y&&a==l.length&&m.push("")):(m.push(D),y=!0)}y=m.join("/")}else y=l}F?Z.X=y:F=n.V.toString()!=="";F?xn(Z,n.V.clone()):F=!!n.C;F&&(Z.C=n.C);return Z}; g.fW.prototype.clone=function(){return new g.fW(this)}; var nRQ=/[#\/\?@]/g,Fv7=/[#\?:]/g,ZJn=/[#\?]/g,JiT=/[#\?@]/g,yb8=/#/g;g.Q=gw.prototype;g.Q.add=function(n,Z){I0(this);this.T=null;n=yq(this,n);var F=this.N.get(n);F||this.N.set(n,F=[]);F.push(Z);this.X=this.X+1;return this}; g.Q.remove=function(n){I0(this);n=yq(this,n);return this.N.has(n)?(this.T=null,this.X=this.X-this.N.get(n).length,this.N.delete(n)):!1}; g.Q.clear=function(){this.N=this.T=null;this.X=0}; g.Q.isEmpty=function(){I0(this);return this.X==0}; g.Q.forEach=function(n,Z){I0(this);this.N.forEach(function(F,y){F.forEach(function(l){n.call(Z,l,y,this)},this)},this)}; g.Q.EZ=function(){I0(this);for(var n=Array.from(this.N.values()),Z=Array.from(this.N.keys()),F=[],y=0;y0?String(n[0]):Z}; g.Q.toString=function(){if(this.T)return this.T;if(!this.N)return"";for(var n=[],Z=Array.from(this.N.keys()),F=0;F>>3;m.T!=1&&m.T!=2&&m.T!=15&&P$(m,a,D,"unexpected tag");m.N=1;m.X=0;m.V=0} for(var m=this,a=n instanceof Array?n:new Uint8Array(n),D=0;D0?n:null};Br.prototype.isInputValid=function(){return this.N===null}; Br.prototype.bP=function(){return this.N}; Br.prototype.tq=function(){return!1}; Br.prototype.parse=function(n){this.N!==null&&EUY(this,n,"stream already broken");var Z=null;try{var F=this.T;F.T||axe(F,n,"stream already broken");F.N+=n;var y=Math.floor(F.N.length/4);if(y==0)var l=null;else{try{var m=qen(F.N.slice(0,y*4))}catch(a){axe(F,F.N,a.message)}F.X+=y*4;F.N=F.N.slice(y*4);l=m}Z=l===null?null:this.V.parse(l)}catch(a){EUY(this,n,a.message)}this.X+=n.length;return Z};var s28={INIT:0,JQ:1,FE:2,VY:3,pL:4,Gi:5,STRING:6,Y$:7,gp:8,G$:9,pA:10,HN:11,Ps:12,Nr:13,Xg:14,TT:15,KA:16,nA:17,fA:18,lB:19,Qp:20};g.Q=Np.prototype;g.Q.isInputValid=function(){return this.S!=3}; g.Q.bP=function(){return this.Pr}; g.Q.done=function(){return this.S===2}; g.Q.tq=function(){return!1}; g.Q.parse=function(n){function Z(){for(var J;;){J=n[T++];if(!J)break;m.T++;switch(m.N){case p.INIT:J==="{"?m.N=p.FE:J==="["?m.N=p.pL:Nr(J)||dG(m,n,T);continue;case p.Y$:case p.FE:if(Nr(J))continue;if(m.N===p.Y$)a.push(p.gp);else if(J==="}"){F("{}");m.N=l();continue}else a.push(p.VY);J==='"'?m.N=p.STRING:dG(m,n,T);continue;case p.gp:case p.VY:if(Nr(J))continue;J===":"?(m.N===p.VY&&(a.push(p.VY),m.X++),m.N=p.JQ):J==="}"?(m.X--,F(),m.N=l()):J===","?(m.N===p.VY&&a.push(p.VY),m.N=p.Y$):dG(m,n,T);continue; case p.pL:case p.JQ:if(Nr(J))continue;if(m.N===p.pL)if(m.X++,m.N=p.JQ,J==="]"){m.X--;if(m.X===0){m.N=p.Gi;return}F("[]");m.N=l();continue}else a.push(p.Gi);J==='"'?m.N=p.STRING:J==="{"?m.N=p.FE:J==="["?m.N=p.pL:J==="t"?m.N=p.G$:J==="f"?m.N=p.Ps:J==="n"?m.N=p.KA:J!=="-"&&("0123456789".indexOf(J)!==-1?m.N=p.Qp:dG(m,n,T));continue;case p.Gi:if(J===",")a.push(p.Gi),m.N=p.JQ,m.X===1&&(w=T);else if(J==="]"){m.X--;if(m.X===0)return;F();m.N=l()}else if(Nr(J))continue;else dG(m,n,T);continue;case p.STRING:var U= T;a:for(;;){for(;m.L>0;)if(J=n[T++],m.L===4?m.L=0:m.L++,!J)break a;if(J==='"'&&!m.J){m.N=l();break}if(J==="\\"&&!m.J&&(m.J=!0,J=n[T++],!J))break;if(m.J)if(m.J=!1,J==="u"&&(m.L=1),J=n[T++])continue;else break;D.lastIndex=T;J=D.exec(n);if(!J){T=n.length+1;break}T=J.index+1;J=n[J.index];if(!J)break}m.T+=T-U;continue;case p.G$:if(!J)continue;J==="r"?m.N=p.pA:dG(m,n,T);continue;case p.pA:if(!J)continue;J==="u"?m.N=p.HN:dG(m,n,T);continue;case p.HN:if(!J)continue;J==="e"?m.N=l():dG(m,n,T);continue;case p.Ps:if(!J)continue; J==="a"?m.N=p.Nr:dG(m,n,T);continue;case p.Nr:if(!J)continue;J==="l"?m.N=p.Xg:dG(m,n,T);continue;case p.Xg:if(!J)continue;J==="s"?m.N=p.TT:dG(m,n,T);continue;case p.TT:if(!J)continue;J==="e"?m.N=l():dG(m,n,T);continue;case p.KA:if(!J)continue;J==="u"?m.N=p.nA:dG(m,n,T);continue;case p.nA:if(!J)continue;J==="l"?m.N=p.fA:dG(m,n,T);continue;case p.fA:if(!J)continue;J==="l"?m.N=l():dG(m,n,T);continue;case p.lB:J==="."?m.N=p.Qp:dG(m,n,T);continue;case p.Qp:if("0123456789.eE+-".indexOf(J)!==-1)continue; else T--,m.T--,m.N=l();continue;default:dG(m,n,T)}}} function F(J){m.X>1||(J||(J=w===-1?m.V+n.substring(q,T):n.substring(w,T)),m.Ns?m.C.push(J):m.C.push(JSON.parse(J)),w=T)} function y(){for(;T0?(P=m.C,m.C=[],P):null}return null};pc.prototype.isInputValid=function(){return this.S===null}; pc.prototype.bP=function(){return this.S}; pc.prototype.tq=function(){return!1}; pc.prototype.parse=function(n){function Z(p){m.X=6;m.S="The stream is broken @"+m.N+"/"+a+". Error: "+p+". With input:\n";throw Error(m.S);} function F(){m.T=new Np({f1Q:!0,Uk:!0})} function y(p){if(p){(m.C||p.length>1)&&Z("extra status: "+p);m.C=!0;var L={};L[2]=p[0];m.V.push(L)}} function l(p){if(p)for(var L=0;L0?(n=m.V,m.V=[],n):null};$b.prototype.Al=function(){return this.N}; $b.prototype.getStatus=function(){return this.S}; $b.prototype.Ns=function(n){n=n.target;try{if(n==this.N)a:{var Z=g.Ya(this.N),F=this.N.X,y=this.N.getStatus(),l=g.LO(this.N);n=[];if(g.aK(this.N)instanceof Array){var m=g.aK(this.N);m.length>0&&m[0]instanceof Uint8Array&&(this.Pr=!0,n=m)}if(!(Z<3||Z==3&&!l&&n.length==0))if(y=y==200||y==206,Z==4&&(F==8?np(this,7):F==7?np(this,8):y||np(this,3)),this.X||(this.X=gBK(this.N),this.X==null&&np(this,5)),this.S>2)Mz(this);else{if(n.length>this.T){var a=n.length;F=[];try{if(this.X.tq())for(var D=0;Dthis.T){D=l.slice(this.T);this.T=l.length;try{var L=this.X.parse(D);L!=null&&this.V&&this.V(L)}catch(q){np(this,5);Mz(this);break a}}Z==4?(l.length!= 0||this.Pr?np(this,2):np(this,4),Mz(this)):np(this,1)}}}catch(q){np(this,6),Mz(this)}};g.Q=Q5K.prototype;g.Q.addListener=function(n,Z){lE(this,n,Z);return this}; g.Q.removeListener=function(n,Z){var F=this.X[n];F&&g.ov(F,Z);(n=this.N[n])&&g.ov(n,Z);return this}; g.Q.once=function(n,Z){var F=this.N[n];F||(F=[],this.N[n]=F);F.push(Z);return this}; g.Q.tOr=function(n){var Z=this.X.data;Z&&rxU(n,Z);(Z=this.N.data)&&rxU(n,Z);this.N.data=[]}; g.Q.gy4=function(){switch(this.T.getStatus()){case 1:X4(this,"readable");break;case 5:case 6:case 4:case 7:case 3:X4(this,"error");break;case 8:X4(this,"close");break;case 2:X4(this,"end")}};voe.prototype.serverStreaming=function(n,Z,F,y){var l=this,m=n.substring(0,n.length-y.name.length);return ex7(function(a){var D=a.N4,p=a.getMetadata(),L=$vi(l,!1);p=ngp(l,p,L,m+D.getName());var q=u0Q(L,D.X,!0);a=D.N(a.Q4);L.send(p,"POST",a);return q},this.AJ).call(this,y.J(Z,F))};mTf.prototype.create=function(n,Z,F){var y=this.N,l=this.X+"/$rpc/google.internal.waa.v1.Waa/Create";Z=Z||{};F=F===void 0?{}:F;return Lg8(y,l,n,Z,$RP,F)};var FIi,zif,qL8,E6P,y4U,g5p,Gji,pDe,aPP,ANf,E$j,Kv7,dg8,x9e,G6U,lOj,FTQ,an,jZe;FIi=new Ph(45733514);zif=new Ph(45730569);qL8=new Ph(45732791);E6P=new Ph(45728572);y4U=new Ph(45732704);g.mRK=new Ph(45728933);g5p=new Ph(45731083);Gji=new Ph(45728553);pDe=new Ph(45735874);aPP=new Ph(45734191);ANf=new Ph(45735523);E$j=new Ph(45725537);Kv7=new Ph(45727949);dg8=new Ph(45731457);x9e=new Ph(45728333);G6U=new WY(45728334);lOj=new Ph(45728181);FTQ=new Ph(45733155);an=new Ph(45732481);g.DRT=new Ph(45734776); jZe=new Ph(45729215);var MxY=new WY(45725542),B0e=new WY(45725543),ez8=new WY(45725539),d2p=new WY(45725541),HOK=new WY(45725540),kSe=new WY(45725538),txe=new function(n,Z,F,y){this.bv=n;this.v4=Z;this.defaultValue=y;this.A$="int"}(3,45721421,"h5vcc_set_prefer_minimal_post_processing",t$("0"));var LBo="://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(" "),q3T=/\bocr\b/;var o_p=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.d(S23,qU);g.d(XmQ,qU);g.d(BM,qU);BM.prototype.getName=function(){return Io(this,1)}; BM.prototype.getOptions=function(){return vU(this,XmQ,3)}; BM.prototype.clearOptions=function(){return DX(this,3)};g.d(A1i,qU);g.Q=A1i.prototype;g.Q.getName=function(){return Io(this,1)}; g.Q.getOptions=function(){return vU(this,S23,3)}; g.Q.clearOptions=function(){return DX(this,3)}; g.Q.Rs=function(){return i0(this,6)}; g.Q.yP=function(n){pz(this,6,n)};var c1f=function(n){return function(Z){Z=JSON.parse(Z);if(!Array.isArray(Z))throw Error("Expected jspb data to be an array, got "+Eq(Z)+": "+Z);z2(Z,34);return new n(Z)}}(A1i);var O2Q=Symbol();var je7=Symbol();Object.assign({},{attributes:{},handleError:function(n){throw n;}},{F5G:!0, PDs:!0,NSu:E_o,X4r:E_o,TS8:OAe,Egx:!1,IZx:!1,yL4:!1,m_G:!0,Vk8:hW3,Qes:!1,OfR:!1,TjY:!1});var NF=null,fu=!1,C07=1,Jm7=Symbol("SIGNAL"),qM={version:0,NjR:0,Qq:!1,producers:void 0,ZN:void 0,NF:void 0,WG:void 0,T1:!1,UU:!1,zX:!1,kind:"unknown",H3:function(){return!1}, Z7:function(){}, vv:function(){}, B_Y:function(){}};var w8=Symbol("UNSET"),TY=Symbol("COMPUTING"),oQ=Symbol("ERRORED");Object.assign({},qM,{value:w8,Qq:!0,error:null,Bd:xE,kind:"computed",H3:function(n){return n.value===w8||n.value===TY}, Z7:function(n){if(n.value===TY)throw Error("");var Z=n.value;n.value=TY;var F=cKj(n),y=!1;try{var l=n.hn();HD(null);y=Z!==w8&&Z!==oQ&&l!==oQ&&n.Bd(Z,l)}catch(m){l=oQ,n.error=m}finally{HD(F),n&&evQ(n)}y?n.value=Z:(n.value=l,n.version++)}});Object.assign({},qM,{zX:!0,UU:!0,Qq:!0,kind:"effect"});var C3K=Object.assign({},qM,{Bd:xE,value:void 0,kind:"signal"});Object.assign({},qM,{value:w8,Qq:!0,error:null,Bd:xE,kind:"linkedSignal",H3:function(n){return n.value===w8||n.value===TY}, Z7:function(n){if(n.value===TY)throw Error("");var Z=n.value;n.value=TY;var F=cKj(n);try{var y=n.source();var l=n.hn(y,Z===w8||Z===oQ?void 0:{source:n.yBg,value:Z});n.yBg=y}catch(m){l=oQ,n.error=m}finally{HD(F),n&&evQ(n)}Z!==w8&&l!==oQ&&n.Bd(Z,l)?n.value=Z:(n.value=l,n.version++)}});Object.assign({},qM,{zX:!0,UU:!1,vv:function(n){n.schedule!==null&&n.schedule(n.GwT)}, L5Q:function(){}});g.d(Qu,g.xu);Qu.prototype.dispose=function(){window.removeEventListener("offline",this.T);window.removeEventListener("online",this.T);this.Xn.qc(this.S);delete Qu.instance}; Qu.prototype.Yd=function(){return this.N}; Qu.prototype.YA=function(){var n=this;this.S=this.Xn.k6(function(){var Z;return g.A(function(F){if(F.N==1)return n.N?((Z=window.navigator)==null?0:Z.onLine)?F.ST(3):g.x(F,Lp(n),3):g.x(F,Lp(n),3);n.YA();g.zA(F)})},3E4)};g.d(hUn,qU);var g4e=B4o(hUn,[0,yl,h0T,pjT,yl,-2,pjT,ayT]);UN.prototype.set=function(n,Z){Z=Z===void 0?!0:Z;0<=n&&n<52&&Number.isInteger(n)&&this.data[n]!==Z&&(this.data[n]=Z,this.N=-1)}; UN.prototype.get=function(n){return!!this.data[n]};var efP;g.aT(g.oB,g.I);g.Q=g.oB.prototype;g.Q.start=function(){this.stop();this.V=!1;var n=g3o(this),Z=u9o(this);n&&!Z&&this.X.mozRequestAnimationFrame?(this.N=g.pO(this.X,"MozBeforePaint",this.T),this.X.mozRequestAnimationFrame(null),this.V=!0):this.N=n&&Z?n.call(this.X,this.T):this.X.setTimeout(xrQ(this.T),20)}; g.Q.stop=function(){if(this.isActive()){var n=g3o(this),Z=u9o(this);n&&!Z&&this.X.mozRequestAnimationFrame?yJ(this.N):n&&Z?Z.call(this.X,this.N):this.X.clearTimeout(this.N)}this.N=null}; g.Q.isActive=function(){return this.N!=null}; g.Q.rP=function(){this.V&&this.N&&yJ(this.N);this.N=null;this.C.call(this.S,g.O7())}; g.Q.IY=function(){this.stop();g.oB.yG.IY.call(this)};g.aT(g.e7,g.I);g.Q=g.e7.prototype;g.Q.wi=0;g.Q.IY=function(){g.e7.yG.IY.call(this);this.stop();delete this.N;delete this.X}; g.Q.start=function(n){this.stop();this.wi=g.JY(this.T,n!==void 0?n:this.Gj)}; g.Q.stop=function(){this.isActive()&&g.KQ.clearTimeout(this.wi);this.wi=0}; g.Q.isActive=function(){return this.wi!=0}; g.Q.bR=function(){this.wi=0;this.N&&this.N.call(this.X)};g.d(g.D9,g.I);g.Q=g.D9.prototype;g.Q.Ni=function(n){this.T=arguments;this.Gu||this.X?this.N=!0:QJ(this)}; g.Q.stop=function(){this.Gu&&(g.KQ.clearTimeout(this.Gu),this.Gu=null,this.N=!1,this.T=null)}; g.Q.pause=function(){this.X++}; g.Q.resume=function(){this.X--;this.X||!this.N||this.Gu||(this.N=!1,QJ(this))}; g.Q.IY=function(){g.I.prototype.IY.call(this);this.stop()};g.xI.prototype[Symbol.iterator]=function(){return this}; g.xI.prototype.next=function(){var n=this.N.next();return{value:n.done?void 0:this.X.call(void 0,n.value),done:n.done}};g.aT(g.uU,g.xu);g.Q=g.uU.prototype;g.Q.isPlaying=function(){return this.N==1}; g.Q.isPaused=function(){return this.N==-1}; g.Q.Zo=function(){this.Gy("begin")}; g.Q.uI=function(){this.Gy("end")}; g.Q.onFinish=function(){this.Gy("finish")}; g.Q.onStop=function(){this.Gy("stop")}; g.Q.Gy=function(n){this.dispatchEvent(n)};var pn7=bO(function(){var n=g.FI("DIV"),Z=g.Gc?"-webkit":X8?"-moz":null,F="transition:opacity 1s linear;";Z&&(F+=Z+"-transition:opacity 1s linear;");Z=oPe({style:F});if(n.nodeType===1&&/^(script|style)$/i.test(n.tagName))throw Error("");n.innerHTML=YH(Z);return g.rG(n.firstChild,"transition")!=""});g.aT(bU,g.uU);g.Q=bU.prototype;g.Q.play=function(){if(this.isPlaying())return!1;this.Zo();this.Gy("play");this.startTime=g.O7();this.N=1;if(pn7())return g.a$(this.X,this.C),this.T=g.JY(this.zxQ,void 0,this),!0;this.Lp(!1);return!1}; g.Q.zxQ=function(){g.WA(this.X);wEj(this.X,this.J);g.a$(this.X,this.V);this.T=g.JY((0,g.GP)(this.Lp,this,!1),this.S*1E3)}; g.Q.stop=function(){this.isPlaying()&&this.Lp(!0)}; g.Q.Lp=function(n){g.a$(this.X,"transition","");g.KQ.clearTimeout(this.T);g.a$(this.X,this.V);this.endTime=g.O7();this.N=0;if(n)this.onStop();else this.onFinish();this.uI()}; g.Q.IY=function(){this.stop();bU.yG.IY.call(this)}; g.Q.pause=function(){};var Gp3={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};tN("Element","attributes")||tN("Node","attributes");tN("Element","innerHTML")||tN("HTMLElement","innerHTML");tN("Node","nodeName");tN("Node","nodeType");tN("Node","parentNode");tN("Node","childNodes");tN("HTMLElement","style")||tN("Element","style");tN("HTMLStyleElement","sheet");var f_7=RlP("getPropertyValue"),WJY=RlP("setProperty");tN("Element","namespaceURI")||tN("Node","namespaceURI");var vg8={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var zK3,HIY,X9o,uqQ,tOT;zK3=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]");HIY=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Lvj=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.blT=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]");X9o=/^http:\/\/.*/;g.qMj=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");uqQ=/\s+/;tOT=/[\d\u06f0-\u06f9]/;nC.prototype.Cm=function(){return new Zv(this.X())}; nC.prototype[Symbol.iterator]=function(){return new FJ(this.X())}; nC.prototype.N=function(){return new FJ(this.X())}; g.d(Zv,g.eB);Zv.prototype.next=function(){return this.X.next()}; Zv.prototype[Symbol.iterator]=function(){return new FJ(this.X)}; Zv.prototype.N=function(){return new FJ(this.X)}; g.d(FJ,nC);FJ.prototype.next=function(){return this.T.next()};mK.prototype.clone=function(){return new mK(this.N,this.J,this.T,this.S,this.V,this.C,this.X,this.L)}; mK.prototype.equals=function(n){return this.N==n.N&&this.J==n.J&&this.T==n.T&&this.S==n.S&&this.V==n.V&&this.C==n.C&&this.X==n.X&&this.L==n.L};Ca.prototype.clone=function(){return new Ca(this.start,this.end)};(function(){if(lpU){var n=/Windows NT ([0-9.]+)/;return(n=n.exec(g.PT()))?n[1]:"0"}return vE?(n=/1[0|1][_.][0-9_.]+/,(n=n.exec(g.PT()))?n[0].replace(/_/g,"."):"10"):g.ii?(n=/Android\s+([^\);]+)(\)|;)/,(n=n.exec(g.PT()))?n[1]:""):v_i||IG8||fGY?(n=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(n=n.exec(g.PT()))?n[1].replace(/_/g,"."):""):""})();var DQj=function(){if(g.kr)return dP(/Firefox\/([0-9.]+)/);if(g.cF||g.yd||g.Cc)return xne;if(g.z$){if(C4()||VJ()){var n=dP(/CriOS\/([0-9.]+)/);if(n)return n}return dP(/Chrome\/([0-9.]+)/)}if(g.x5&&!C4())return dP(/Version\/([0-9.]+)/);if(Z2||nc){if(n=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.PT()))return n[1]+"."+n[2]}else if(g.ui)return(n=dP(/Android\s+([0-9.]+)/))?n:dP(/Version\/([0-9.]+)/);return""}();g.aT(g.aR,g.I);g.Q=g.aR.prototype;g.Q.subscribe=function(n,Z,F){var y=this.X[n];y||(y=this.X[n]=[]);var l=this.C;this.N[l]=n;this.N[l+1]=Z;this.N[l+2]=F;this.C=l+3;y.push(l);return l}; g.Q.unsubscribe=function(n,Z,F){if(n=this.X[n]){var y=this.N;if(n=n.find(function(l){return y[l+1]==Z&&y[l+2]==F}))return this.ez(n)}return!1}; g.Q.ez=function(n){var Z=this.N[n];if(Z){var F=this.X[Z];this.V!=0?(this.T.push(n),this.N[n+1]=function(){}):(F&&g.ov(F,n),delete this.N[n],delete this.N[n+1],delete this.N[n+2])}return!!Z}; g.Q.publish=function(n,Z){var F=this.X[n];if(F){var y=Array(arguments.length-1),l=arguments.length,m;for(m=1;m0&&this.V==0)for(;F=this.T.pop();)this.ez(F)}}return m!=0}return!1}; g.Q.clear=function(n){if(n){var Z=this.X[n];Z&&(Z.forEach(this.ez,this),delete this.X[n])}else this.N.length=0,this.X={}}; g.Q.IY=function(){g.aR.yG.IY.call(this);this.clear();this.T.length=0};g.Ln.prototype.set=function(n,Z){Z===void 0?this.MO.remove(n):this.MO.set(n,g.tQ(Z))}; g.Ln.prototype.get=function(n){try{var Z=this.MO.get(n)}catch(F){return}if(Z!==null)try{return JSON.parse(Z)}catch(F){throw"Storage: Invalid value was encountered";}}; g.Ln.prototype.remove=function(n){this.MO.remove(n)};g.aT(p6,g.Ln);p6.prototype.set=function(n,Z){p6.yG.set.call(this,n,UfT(Z))}; p6.prototype.CZ=function(n){n=p6.yG.get.call(this,n);if(n===void 0||n instanceof Object)return n;throw"Storage: Invalid value was encountered";}; p6.prototype.get=function(n){if(n=this.CZ(n)){if(n=n.data,n===void 0)throw"Storage: Invalid value was encountered";}else n=void 0;return n};g.aT(du,p6);du.prototype.set=function(n,Z,F){if(Z=UfT(Z)){if(F){if(F=F.length)return g.aQ;var l=F.key(Z++);if(n)return g.Kg(l);l=F.getItem(l);if(typeof l!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Kg(l)}; return y}; g.Q.clear=function(){eH(this);this.N.clear()}; g.Q.key=function(n){eH(this);return this.N.key(n)};g.aT(gA,fH);g.aT(sRo,fH);g.aT(zp,Pa);zp.prototype.set=function(n,Z){this.X.set(this.N+n,Z)}; zp.prototype.get=function(n){return this.X.get(this.N+n)}; zp.prototype.remove=function(n){this.X.remove(this.N+n)}; zp.prototype.Cm=function(n){var Z=this.X[Symbol.iterator](),F=this,y=new g.eB;y.next=function(){var l=Z.next();if(l.done)return l;for(l=l.value;l.slice(0,F.N.length)!=F.N;){l=Z.next();if(l.done)return l;l=l.value}return g.Kg(n?l.slice(F.N.length):F.X.get(l))}; return y};t5.prototype.getValue=function(){return this.X}; t5.prototype.clone=function(){return new t5(this.N,this.X)};g.Q=Vv.prototype;g.Q.z5=function(n,Z){var F=this.N;F.push(new t5(n,Z));n=F.length-1;Z=this.N;for(F=Z[n];n>0;){var y=n-1>>1;if(Z[y].N>F.N)Z[n]=Z[y],n=y;else break}Z[n]=F}; g.Q.remove=function(){var n=this.N,Z=n.length,F=n[0];if(!(Z<=0)){if(Z==1)n.length=0;else{n[0]=n.pop();n=0;Z=this.N;for(var y=Z.length,l=Z[n];n>1;){var m=n*2+1,a=n*2+2;m=al.N)break;Z[n]=Z[m];n=m}Z[n]=l}return F.getValue()}}; g.Q.Lm=function(){for(var n=this.N,Z=[],F=n.length,y=0;y>>16&65535|0;for(var m;F!==0;){m=F>2E3?2E3:F;F-=m;do l=l+Z[y++]|0,n=n+l|0;while(--m);l%=65521;n%=65521}return l|n<<16|0};for(var bE={},PI,Jb7=[],Jz=0;Jz<256;Jz++){PI=Jz;for(var Q2P=0;Q2P<8;Q2P++)PI=PI&1?3988292384^PI>>>1:PI>>>1;Jb7[Jz]=PI}bE=function(n,Z,F,y){F=y+F;for(n^=-1;y>>8^Jb7[(n^Z[y])&255];return n^-1};var Xo={};Xo={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 Wi=[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],Go=[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],V5p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Lri=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],gm=Array(576);c$(gm);var im=Array(60);c$(im);var Rp=Array(512);c$(Rp);var rm=Array(256);c$(rm);var AY=Array(29);c$(AY);var x3=Array(30);c$(x3);var EaQ,O7i,cSU,UWp=!1;var bm;bm=[new nu(0,0,0,0,function(n,Z){var F=65535;for(F>n.m6-5&&(F=n.m6-5);;){if(n.Md<=1){tY(n);if(n.Md===0&&Z===0)return 1;if(n.Md===0)break}n.VP+=n.Md;n.Md=0;var y=n.Ge+F;if(n.VP===0||n.VP>=y)if(n.Md=n.VP-y,n.VP=y,zR(n,!1),n.rV.G7===0)return 1;if(n.VP-n.Ge>=n.P7-262&&(zR(n,!1),n.rV.G7===0))return 1}n.z5=0;if(Z===4)return zR(n,!0),n.rV.G7===0?3:4;n.VP>n.Ge&&zR(n,!1);return 1}), new nu(4,4,8,4,t2),new nu(4,5,16,8,t2),new nu(4,6,32,32,t2),new nu(4,4,16,16,bk),new nu(8,16,32,32,bk),new nu(8,16,128,128,bk),new nu(8,32,128,256,bk),new nu(32,128,258,1024,bk),new nu(32,258,258,4096,bk)];var SQj={};SQj=function(){this.input=null;this.Ma=this.EV=this.Rw=0;this.output=null;this.Jv=this.G7=this.tO=0;this.msg="";this.state=null;this.nX=2;this.wV=0};var fgT=Object.prototype.toString; vi.prototype.push=function(n,Z){var F=this.rV,y=this.options.chunkSize;if(this.ended)return!1;var l=Z===~~Z?Z:Z===!0?4:0;typeof n==="string"?F.input=Igi(n):fgT.call(n)==="[object ArrayBuffer]"?F.input=new Uint8Array(n):F.input=n;F.Rw=0;F.EV=F.input.length;do{F.G7===0&&(F.output=new Ip.Bu(y),F.tO=0,F.G7=y);n=yRi(F,l);if(n!==1&&n!==0)return this.uI(n),this.ended=!0,!1;if(F.G7===0||F.EV===0&&(l===4||l===2))if(this.options.to==="string"){var m=Ip.XO(F.output,F.tO);Z=m;m=m.length;if(m<65537&&(Z.subarray&& PDn||!Z.subarray))Z=String.fromCharCode.apply(null,Ip.XO(Z,m));else{for(var a="",D=0;D0||F.G7===0)&&n!==1);if(l===4)return(F=this.rV)&&F.state?(y=F.state.status,y!==42&&y!==69&&y!==73&&y!==91&&y!==103&&y!==113&&y!==666?n=fL(F,-2):(F.state=null,n=y===113?fL(F,-3):0)):n=-2,this.uI(n),this.ended=!0,n===0;l===2&&(this.uI(0),F.G7=0);return!0}; vi.prototype.uI=function(n){n===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Ip.aF(this.chunks));this.chunks=[];this.err=n;this.msg=this.rV.msg};var Te="@@redux/INIT"+ScQ(),v5n="@@redux/REPLACE"+ScQ();var Ile=typeof Symbol==="function"&&Symbol.observable||"@@observable";var YM7=[0,SWp,-3,Ff];g.d(de7,qU);var zt7=B4o(de7,[0,yl,jmp,Md,SWp,Md,-1,Ff,SWp,Ff,-1,yl,Ff,jmp,$s,YM7,Md,-1,Ff]);var Hyo=-921892456;var SMY=function(n,Z){return function(){var F=new ol8(n,Z,dv);return function(){return F}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var mKj=new g.X5("adInfoDialogEndpoint");var IdU=new g.X5("adPingingEndpoint");var Q93=new g.X5("crossDeviceProgressCommand");var fF=new g.X5("actionCompanionAdRenderer");var HG=new g.X5("adActionInterstitialRenderer");var j2T=new g.X5("adDurationRemainingRenderer");var uH=new g.X5("adHoverTextButtonRenderer");var xoY=new g.X5("adInfoDialogRenderer");var $a=new g.X5("adMessageRenderer");var bH=new g.X5("adPreviewRenderer");var ng=new g.X5("adsEngagementPanelRenderer");var tyU=new g.X5("dismissablePanelTextPortraitImageRenderer");var iL=new g.X5("adsEngagementPanelSectionListViewModel");var URT=new g.X5("flyoutCtaRenderer");var ZF=new g.X5("imageCompanionAdRenderer");var z_=new g.X5("instreamAdPlayerOverlayRenderer");var aKo=new g.X5("instreamSurveyAdBackgroundImageRenderer");var iH=new g.X5("instreamSurveyAdPlayerOverlayRenderer");var wy=new g.X5("instreamSurveyAdRenderer"),wm=new g.X5("instreamSurveyAdSingleSelectQuestionRenderer"),To=new g.X5("instreamSurveyAdMultiSelectQuestionRenderer"),Ql=new g.X5("instreamSurveyAdAnswerRenderer"),Nx7=new g.X5("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var n7=new g.X5("instreamVideoAdRenderer");var hBY=new g.X5("textOverlayAdContentRenderer"),ERY=new g.X5("enhancedTextOverlayAdContentRenderer"),OJU=new g.X5("imageOverlayAdContentRenderer");var kX=new g.X5("playerOverlayLayoutRenderer");var MD=new g.X5("videoInterstitialButtonedCenteredLayoutRenderer");var UOP=new g.X5("aboveFeedAdLayoutRenderer");var hQ7=new g.X5("belowPlayerAdLayoutRenderer");var SPj=new g.X5("inPlayerAdLayoutRenderer");var ExP=new g.X5("inPlayerOrganicOverlayAdLayoutRenderer");var vg=new g.X5("playerBytesAdLayoutRenderer");var ey=new g.X5("playerBytesSequenceItemAdLayoutRenderer");var Ia=new g.X5("playerUnderlayAdLayoutRenderer");var qF=new g.X5("adIntroRenderer");var cX=new g.X5("playerBytesSequentialLayoutRenderer");var hvK=new g.X5("slidingTextPlayerOverlayRenderer");var TZ=new g.X5("surveyTextInterstitialRenderer");var bW=new g.X5("videoAdTrackingRenderer");var n98=new g.X5("videoInterstitialCenteredLayoutViewModel");var cbT=new g.X5("simpleAdBadgeRenderer");var CM=new g.X5("skipAdRenderer"),Vgn=new g.X5("skipButtonRenderer");var WJ=new g.X5("adSlotRenderer");var gW=new g.X5("squeezebackPlayerSidePanelRenderer");var vR8=new g.X5("timedPieCountdownRenderer");var ne=new g.X5("adAvatarViewModel");var ZO=new g.X5("adBadgeViewModel");var F_=new g.X5("adButtonViewModel");var IPU=new g.X5("adDetailsLineViewModel");var fPj=new g.X5("adDisclosureBannerViewModel");var AbY=new g.X5("adPodIndexViewModel");var WvK=new g.X5("imageBackgroundViewModel");var rbn=new g.X5("adGridCardCollectionViewModel");var xRY=new g.X5("adGridCardTextViewModel");var Gqj=new g.X5("adPreviewViewModel");var RB3=new g.X5("playerAdAvatarLockupCardButtonedViewModel");var gR3=new g.X5("skipAdButtonViewModel");var iJf=new g.X5("skipAdViewModel");var CDK=new g.X5("timedPieCountdownViewModel");var uCY=new g.X5("visitAdvertiserLinkViewModel");var mfY=new g.X5("bannerImageLayoutViewModel");var amK=new g.X5("topBannerImageTextIconButtonedLayoutViewModel");var K5o=new g.X5("adsEngagementPanelLayoutViewModel");var CK=new g.X5("displayUnderlayTextGridCardsLayoutViewModel");g.T4=new g.X5("browseEndpoint");var bJe=new g.X5("confirmDialogEndpoint");var btY=new g.X5("commandContext");var dti=new g.X5("rawColdConfigGroup");var Hlf=new g.X5("rawHotConfigGroup");g.oO=new g.X5("commandExecutorCommand");g.d(dJo,qU);var F6p={Kdi:0,vLQ:1,N_p:32,VCi:61,W54:67,UM8:103,iUR:86,PIY:42,XaQ:60,DXi:62,waQ:73,E7Y:76,zaG:88,Sip:90,tCp:99,Fdr:98,o7p:100,I1G:102,se4:41,jeY:69,CIr:70,uzY:71,zrp:2,Stu:27,ANDROID:3,rFR:54,eXr:14,p7i:91,JFr:55,a38:24,cFr:20,gcR:18,ncg:21,f38:104,ZhR:30,hX8:29,RX5:28,MP8:101,xcx:34,Hh8:36,Kfu:38,IOS:5,E0p:15,W6R:92,Irx:40,V8Q:25,bOY:17,iO4:19,Upr:64,zUp:66,SWp:26,sA4:22,jAQ:33,CT8:68,uW5:35,o0G:53,t8p:37,wHY:39,tPT:7,si5:57,jiT:43,ufu:59,CwT:93,LfY:74,kBp:75,OkT:85,lpi:65,eKu:80,Jys:8,oLY:10, cyr:58,apY:63,ryY:72,MvQ:23,l1i:11,rL8:13,u2r:12,WdG:16,mMG:56,bUT:31,VUQ:77,gRx:84,T_Y:87,nRR:89,K7s:94,dpg:95};g.d(V6,qU);V6.prototype.U2=function(){return Io(this,3)}; V6.prototype.kz=function(){return Io(this,5)}; V6.prototype.LU=function(n){return Oy(this,5,n)};g.d(jV,qU);g.d(aMo,qU);g.d(Au,qU);g.Q=Au.prototype;g.Q.getDeviceId=function(){return Io(this,6)}; g.Q.EM=function(n){var Z=Fw(this,9,hE,3,!0);DT(Z,n);return Z[n]}; g.Q.getPlayerType=function(){return i0(this,36)}; g.Q.setHomeGroupInfo=function(n){return cV(this,aMo,81,n)}; g.Q.clearLocationPlayabilityToken=function(){return DX(this,89)};g.d(iM,qU);iM.prototype.getValue=function(){return Io(this,Vci(this,brj,2))}; var brj=[2,3,4,5,6];g.d(OB,qU);OB.prototype.setTrackingParams=function(n){return DX(this,1,$$U(n,!1))};g.d(LB,qU);g.d(WX,qU);WX.prototype.EM=function(n){var Z=Fw(this,5,sd,3,!0);DT(Z,n);return Z[n]};g.d(qI,qU);qI.prototype.getToken=function(){return Mc(this,2)}; qI.prototype.setToken=function(n){return Oy(this,2,n)};g.d(P5,qU);P5.prototype.setSafetyMode=function(n){return pz(this,5,n)};g.d(pB,qU);pB.prototype.GP=function(n){return cV(this,Au,1,n)};var sF=new g.X5("thumbnailLandscapePortraitRenderer");g.Xnf=new g.X5("changeEngagementPanelVisibilityAction");var nui=new g.X5("continuationCommand");g.zBQ=new g.X5("openPopupAction");var Rs7=new g.X5("signalAction");g.Ys=new g.X5("webCommandMetadata");var Xpp=new g.X5("metadataBadgeRenderer");var $5K=new g.X5("signalServiceEndpoint");var jk=new g.X5("innertubeCommand");var J1T=new g.X5("loggingDirectives");var oI7={TaY:"EMBEDDED_PLAYER_MODE_UNKNOWN",Plx:"EMBEDDED_PLAYER_MODE_DEFAULT",XWg:"EMBEDDED_PLAYER_MODE_PFP",Nax:"EMBEDDED_PLAYER_MODE_PFL"};var Oko=new g.X5("channelThumbnailEndpoint");var MUn=new g.X5("embeddedPlayerErrorMessageRenderer");var kk8=new g.X5("embeddedPlayerOverlayVideoDetailsRenderer"),cxj=new g.X5("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),V$e=new g.X5("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var C1T=new g.X5("embedsInfoPanelRenderer");var R1T=new g.X5("feedbackEndpoint");var tgp=new g.X5("callToActionButtonViewModel");var kqj=new g.X5("interactionLoggingCommandMetadata");var KUf={Qii:"WEB_DISPLAY_MODE_UNKNOWN",qqr:"WEB_DISPLAY_MODE_BROWSER",Ayr:"WEB_DISPLAY_MODE_MINIMAL_UI",Yqg:"WEB_DISPLAY_MODE_STANDALONE",dXu:"WEB_DISPLAY_MODE_FULLSCREEN"};g.d(Xj,qU);Xj.prototype.getPlayerType=function(){return i0(this,7)}; Xj.prototype.UG=function(){return Io(this,19)}; Xj.prototype.setVideoId=function(n){return Oy(this,19,n)};g.d(q6,qU);g.d(wI,qU);g.d(E6,qU); var eBQ=[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,526,527,528,529,530,531];var HJT=new g.X5("loggingContext");g.d(Q1,qU);g.d(y2,qU);y2.prototype.UG=function(){return Mc(this,Vci(this,LD,1))}; y2.prototype.setVideoId=function(n){return lX(this,1,LD,qc(n))}; y2.prototype.getPlaylistId=function(){return Mc(this,Vci(this,LD,2))}; var LD=[1,2];g.d(tt8,qU);var dRe=new g.X5("dismissPlayerOverlayCommand");var AH=new g.X5("changeKeyedMarkersVisibilityCommand");var Bxo=new g.X5("changeMarkersVisibilityCommand");var tui=new g.X5("loadMarkersCommand");var Mgj=new g.X5("suggestedActionDataViewModel");var L_n=new g.X5("timelyActionViewModel");var phQ=new g.X5("timelyActionsOverlayViewModel");var EiT=new g.X5("productListItemRenderer");var $nc=new g.X5("shoppingOverlayRenderer");var ehn=new g.X5("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var nUG=new g.X5("adFeedbackEndpoint");var ZQh=new g.X5("menuEndpoint");var xE8=new g.X5("phoneDialerEndpoint");var WjT=new g.X5("sendSmsEndpoint");var lv8=new g.X5("copyTextEndpoint");var FYv=new g.X5("shareEndpoint"),yP7=new g.X5("shareEntityEndpoint"),lix=new g.X5("shareEntityServiceEndpoint"),sfm=new g.X5("webPlayerShareEntityServiceEndpoint");g.MY=new g.X5("urlEndpoint");g.v_=new g.X5("watchEndpoint");var mnI=new g.X5("watchPlaylistEndpoint");g.aid=new g.X5("offlineOrchestrationActionCommand");var NfP=new g.X5("compositeVideoOverlayRenderer");var KYO=new g.X5("miniplayerRenderer");var gTf=new g.X5("paidContentOverlayRenderer");var LyP=new g.X5("playerMutedAutoplayOverlayRenderer"),qg8=new g.X5("playerMutedAutoplayEndScreenRenderer");var rdK=new g.X5("unserializedPlayerResponse"),CUU=new g.X5("unserializedPlayerResponse");var Dnd=new g.X5("playlistEditEndpoint");var Sc;g.qb=new g.X5("buttonRenderer");Sc=new g.X5("toggleButtonRenderer");var ku7=new g.X5("counterfactualRenderer");var pTI=new g.X5("resolveUrlCommandMetadata");var LYm=new g.X5("modifyChannelNotificationPreferenceEndpoint");var vAe=new g.X5("pingingEndpoint");var q8v=new g.X5("unsubscribeEndpoint");g.Ce=new g.X5("subscribeButtonRenderer");var wTO=new g.X5("subscribeEndpoint");var LRU=new g.X5("buttonViewModel");var oNn=new g.X5("qrCodeRenderer");var l7K={M88:"LIVING_ROOM_APP_MODE_UNSPECIFIED",pH5:"LIVING_ROOM_APP_MODE_MAIN",GyR:"LIVING_ROOM_APP_MODE_KIDS",HO5:"LIVING_ROOM_APP_MODE_MUSIC",ZO4:"LIVING_ROOM_APP_MODE_UNPLUGGED",yms:"LIVING_ROOM_APP_MODE_GAMING"};var gyi=new g.X5("autoplaySwitchButtonRenderer");var N7,GB3,BJQ,Brp;N7=new g.X5("decoratedPlayerBarRenderer");GB3=new g.X5("chapteredPlayerBarRenderer");BJQ=new g.X5("multiMarkersPlayerBarRenderer");Brp=new g.X5("chapterRenderer");g.NLQ=new g.X5("markerRenderer");var vTT=new g.X5("decoratedPlayheadRenderer");var uE8=new g.X5("desktopOverlayConfigRenderer");var Pni=new g.X5("engagementPanelSectionListRenderer");var iVU=new g.X5("gatedActionsOverlayViewModel");var c2o=new g.X5("heatMarkerRenderer");var OCj=new g.X5("heatmapRenderer");var zxY=new g.X5("watchToWatchTransitionRenderer");var dBp=new g.X5("playlistPanelRenderer");var TKG=new g.X5("productUpsellSuggestedActionViewModel");var oU7=new g.X5("suggestedActionTimeRangeTrigger"),P7G=new g.X5("suggestedActionsRenderer"),JPd=new g.X5("suggestedActionRenderer");var Ivp=new g.X5("timedMarkerDecorationRenderer");var jhj=new g.X5("cipher");var x5K=new g.X5("playerVars");var u83=new g.X5("playerVars");var jc=g.KQ.window,Qfz,Y8m,HR=(jc==null?void 0:(Qfz=jc.yt)==null?void 0:Qfz.config_)||(jc==null?void 0:(Y8m=jc.ytcfg)==null?void 0:Y8m.data_)||{};g.pv("yt.config_",HR);var PJ=[];var i03=/^[\w.]*$/,Koo={q:!0,search_query:!0},aE8=String(zj);var Ss=new function(){var n=window.document;this.N=window;this.X=n}; g.pv("yt.ads_.signals_.getAdSignalsString",function(n){return C8(Nh(n))});g.O7();var k8n="XMLHttpRequest"in g.KQ?function(){return new XMLHttpRequest}:null;var S8G="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.t(S8G);var XAj={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"},yZp="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.t(S8G)),Y6U=!1,TIp=x4e;g.d(SS,Qq);Ky.prototype.then=function(n,Z,F){return this.N?this.N.then(n,Z,F):this.T===1&&n?(n=n.call(F,this.X))&&typeof n.then==="function"?n:FM(n):this.T===2&&Z?(n=Z.call(F,this.X))&&typeof n.then==="function"?n:RM(n):this}; Ky.prototype.getValue=function(){return this.X}; Ky.prototype.$goog_Thenable=!0;var VC=!1;var Zq=Z2||nc;var fk8=/^([0-9\.]+):([0-9\.]+)$/;g.d(jS,Qq);jS.prototype.name="BiscottiError";g.d(Y4,Qq);Y4.prototype.name="BiscottiMissingError";var Kmi={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Zt=null;var jTY=g.VT(["data-"]),etU={};var jfG=0,vR=g.Gc?"webkit":X8?"moz":g.cF?"ms":g.Cc?"o":"",UnI=g.Di("ytDomDomGetNextId")||function(){return++jfG}; g.pv("ytDomDomGetNextId",UnI);var Lui={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};Bo.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Bo.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Bo.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var $3=g.KQ.ytEventsEventsListeners||{};g.pv("ytEventsEventsListeners",$3);var KM8=g.KQ.ytEventsEventsCounter||{count:0};g.pv("ytEventsEventsCounter",KM8);var aa7=bO(function(){var n=!1;try{var Z=Object.defineProperty({},"passive",{get:function(){n=!0}}); window.addEventListener("test",null,Z)}catch(F){}return n}),Ew3=bO(function(){var n=!1; try{var Z=Object.defineProperty({},"capture",{get:function(){n=!0}}); window.addEventListener("test",null,Z)}catch(F){}return n});var Uw;Uw=window;g.tP=Uw.ytcsi&&Uw.ytcsi.now?Uw.ytcsi.now:Uw.performance&&Uw.performance.timing&&Uw.performance.now&&Uw.performance.timing.navigationStart?function(){return Uw.performance.timing.navigationStart+Uw.performance.now()}:function(){return(new Date).getTime()};g.aT(pr,g.I);pr.prototype.Pr=function(n){n.N===void 0&&o$o(n);var Z=n.N;n.X===void 0&&o$o(n);this.N=new g.e_(Z,n.X)}; pr.prototype.B9=function(){return this.N||new g.e_}; pr.prototype.Ns=function(){if(this.N){var n=(0,g.tP)();if(this.V!=0){var Z=this.C,F=this.N,y=Z.x-F.x;Z=Z.y-F.y;y=Math.sqrt(y*y+Z*Z)/(n-this.V);this.X[this.T]=Math.abs((y-this.S)/this.S)>.5?1:0;for(F=Z=0;F<4;F++)Z+=this.X[F]||0;Z>=3&&this.J();this.S=y}this.V=n;this.C=this.N;this.T=(this.T+1)%4}}; pr.prototype.IY=function(){g.gg(this.L);g.nL(this.Tx)};g.d(rK,g.I);rK.prototype.G=function(n,Z,F,y,l){F=g.gU((0,g.GP)(F,y||this.mJ));F={target:n,name:Z,callback:F};var m;l&&aa7()&&(m={passive:!0});n.addEventListener(Z,F.callback,m);this.C.push(F);return F}; rK.prototype.o0=function(n){for(var Z=0;Z=X.gZ)||h.N.version>=u||h.N.objectStoreNames.contains(W)||V.push(W)}p=V;if(p.length===0){U.ST(5);break}L=Object.keys(F.options.CU);q=D.objectStoreNames();if(F.S< g.Fv("ytidb_reopen_db_retries",0))return F.S++,D.close(),P1(new g.CE("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:F.name,expectedObjectStores:L,foundObjectStores:q})),U.return(Z());if(!(F.VF.options.version+1)throw T.close(),F.T=!1,Lpe(F,P);return U.return(T);case 8:throw n(),w instanceof Error&&!g.N5("ytidb_async_stack_killswitch")&& (w.stack=w.stack+"\n"+a.substring(a.indexOf("\n")+1)),j0(w,F.name,"",(J=F.options.version)!=null?J:-1);}})} var F=this;if(!this.T)throw Lpe(this);if(this.N)return this.N;var y,l={blocking:function(m){m.close()}, closed:n,qmg:n,upgrade:this.options.upgrade};return this.N=y=Z()};var aC=new ay("YtIdbMeta",{CU:{databases:{gZ:1}},upgrade:function(n,Z){Z(1)&&g.Rz(n,"databases",{keyPath:"actualName"})}});var $yY,lz=new function(){}(new function(){});new g.uR;g.d(wC,ay);wC.prototype.X=function(n,Z,F){F=F===void 0?{}:F;return(this.options.shared?DUP:pPe)(n,Z,Object.assign({},F))}; wC.prototype.delete=function(n){n=n===void 0?{}:n;return(this.options.shared?IHP:koK)(this.name,n)};var fiO={},DvP=g.gS("ytGcfConfig",{CU:(fiO.coldConfigStore={gZ:1},fiO.hotConfigStore={gZ:1},fiO),shared:!1,upgrade:function(n,Z){Z(1)&&(g.EL(g.Rz(n,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.EL(g.Rz(n,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.d(hff,g.I);hff.prototype.IY=function(){for(var n=g.Y(this.X),Z=n.next();!Z.done;Z=n.next()){var F=this.N;Z=F.indexOf(Z.value);Z>=0&&F.splice(Z,1)}this.X.length=0;g.I.prototype.IY.call(this)};Dj.prototype.LU=function(n){this.hotHashData=n;g.pv("yt.gcf.config.hotHashData",this.hotHashData||null)};var APm=typeof TextEncoder!=="undefined"?new TextEncoder:null,n28=APm?function(n){return APm.encode(n)}:function(n){n=g.xc(n); for(var Z=new Uint8Array(n.length),F=0;F=Z?!1:!0}; g.Q.Y2=function(){var n=this;if(!O5(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Sz.XP("QUEUED",this.aZ).then(function(Z){Z&&!n.DP(Z,n.hP)?n.Xn.k6(function(){return g.A(function(F){if(F.N==1)return Z.id===void 0?F.ST(2):g.x(F,n.Sz.C1(Z.id,n.aZ),2);n.Y2();g.zA(F)})}):n.QU.Yd()&&n.jJ()})};var RN;var MXY={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,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,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532};var rPI={},Cmn=g.gS("ServiceWorkerLogsDatabase",{CU:(rPI.SWHealthLog={gZ:1},rPI),shared:!0,upgrade:function(n,Z){Z(1)&&g.EL(g.Rz(n,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var QN={},CLn=0;var VN;Db.prototype.requestComplete=function(n,Z){Z&&(this.X=!0);n=this.removeParams(n);this.N.get(n)||this.N.set(n,Z)}; Db.prototype.isEndpointCFR=function(n){n=this.removeParams(n);return(n=this.N.get(n))?!1:n===!1&&this.X?!0:null}; Db.prototype.removeParams=function(n){return n.split("?")[0]}; Db.prototype.removeParams=Db.prototype.removeParams;Db.prototype.isEndpointCFR=Db.prototype.isEndpointCFR;Db.prototype.requestComplete=Db.prototype.requestComplete;Db.getInstance=rV;g.d(ah,g.xu);g.Q=ah.prototype;g.Q.Yd=function(){return this.N.Yd()}; g.Q.Mf=function(n){this.N.N=n}; g.Q.BF=function(){var n=window.navigator.onLine;return n===void 0?!0:n}; g.Q.cZ=function(){this.X=!0}; g.Q.listen=function(n,Z){return this.N.listen(n,Z)}; g.Q.XC=function(n){n=Lp(this.N,n);n.then(function(Z){g.N5("use_cfr_monitor")&&rV().requestComplete("generate_204",Z)}); return n}; ah.prototype.sendNetworkCheckRequest=ah.prototype.XC;ah.prototype.listen=ah.prototype.listen;ah.prototype.enableErrorFlushing=ah.prototype.cZ;ah.prototype.getWindowStatus=ah.prototype.BF;ah.prototype.networkStatusHint=ah.prototype.Mf;ah.prototype.isNetworkAvailable=ah.prototype.Yd;ah.getInstance=Kxo;g.d(g.x4,g.xu);g.x4.prototype.Yd=function(){var n=g.Di("yt.networkStatusManager.instance.isNetworkAvailable");return n?n.bind(this.X)():!0}; g.x4.prototype.Mf=function(n){var Z=g.Di("yt.networkStatusManager.instance.networkStatusHint").bind(this.X);Z&&Z(n)}; g.x4.prototype.XC=function(n){var Z=this,F;return g.A(function(y){F=g.Di("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Z.X);return g.N5("skip_network_check_if_cfr")&&rV().isEndpointCFR("generate_204")?y.return(new Promise(function(l){var m;Z.Mf(((m=window.navigator)==null?void 0:m.onLine)||!0);l(Z.Yd())})):F?y.return(F(n)):y.return(!0)})};var ese;g.d(ca,Ha);ca.prototype.writeThenSend=function(n,Z){Z||(Z={});Z=Hl(n,Z);g.Ry()||(this.N=!1);Ha.prototype.writeThenSend.call(this,n,Z)}; ca.prototype.sendThenWrite=function(n,Z,F){Z||(Z={});Z=Hl(n,Z);g.Ry()||(this.N=!1);Ha.prototype.sendThenWrite.call(this,n,Z,F)}; ca.prototype.sendAndWrite=function(n,Z){Z||(Z={});Z=Hl(n,Z);g.Ry()||(this.N=!1);Ha.prototype.sendAndWrite.call(this,n,Z)}; ca.prototype.awaitInitialization=function(){return this.T.promise};var Jkf=g.KQ.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.pv("ytNetworklessLoggingInitializationOptions",Jkf);g.GR.prototype.isReady=function(){!this.config_&&TWU()&&(this.config_=g.gL());return!!this.config_};var xn7,Yb,re;xn7=g.KQ.ytPubsubPubsubInstance||new g.aR;Yb=g.KQ.ytPubsubPubsubSubscribedKeys||{};re=g.KQ.ytPubsubPubsubTopicToKeys||{};g.$v=g.KQ.ytPubsubPubsubIsSynchronous||{};g.aR.prototype.subscribe=g.aR.prototype.subscribe;g.aR.prototype.unsubscribeByKey=g.aR.prototype.ez;g.aR.prototype.publish=g.aR.prototype.publish;g.aR.prototype.clear=g.aR.prototype.clear;g.pv("ytPubsubPubsubInstance",xn7);g.pv("ytPubsubPubsubTopicToKeys",re);g.pv("ytPubsubPubsubIsSynchronous",g.$v); g.pv("ytPubsubPubsubSubscribedKeys",Yb);var Qen={};g.d(rz,g.I);rz.prototype.append=function(n){if(!this.X)throw Error("This does not support the append operation");n=n.w1();this.w1().appendChild(n)}; g.d(Gl,rz);Gl.prototype.w1=function(){return this.N};g.d(nD,g.I);nD.prototype.onTouchStart=function(n){this.J=!0;this.X=n.touches.length;this.N.isActive()&&(this.N.stop(),this.S=!0);n=n.touches;this.C=IhY(this,n)||n.length!=1;var Z=n.item(0);this.C||!Z?this.Pr=this.L=Infinity:(this.L=Z.clientX,this.Pr=Z.clientY);for(Z=this.T.length=0;Z=0)}if(Z||n&&Math.pow(n.clientX-this.L,2)+Math.pow(n.clientY-this.Pr,2)>25)this.V=!0}; nD.prototype.onTouchEnd=function(n){var Z=n.changedTouches;Z&&this.J&&this.X==1&&!this.V&&!this.S&&!this.C&&IhY(this,Z)&&(this.Ns=n,this.N.start());this.X=n.touches.length;this.X===0&&(this.V=this.J=!1,this.T.length=0);this.S=!1};var kO=Date.now().toString();var iy={};var R3=Symbol("injectionDeps");sE.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Bwf.prototype.resolve=function(n){return n instanceof F0?wS(this,n.key,[],!0):wS(this,n,[])};var euU;var Hc=window;var Ek=g.N5("web_enable_lifecycle_monitoring")&&e0()!==0,VSp=g.N5("web_enable_lifecycle_monitoring");Bbp.prototype.cancel=function(){for(var n=g.Y(this.N),Z=n.next();!Z.done;Z=n.next())Z=Z.value,Z.jobId===void 0||Z.aR||this.scheduler.qc(Z.jobId),Z.aR=!0;this.X.resolve()};g.Q=kv.prototype;g.Q.install=function(n){this.plugins.push(n);return this}; g.Q.uninstall=function(){var n=this;g.S7.apply(0,arguments).forEach(function(Z){Z=n.plugins.indexOf(Z);Z>-1&&n.plugins.splice(Z,1)})}; g.Q.transition=function(n,Z){var F=this;Ek&&Goj(this.state);var y=this.transitions.find(function(m){return Array.isArray(m.from)?m.from.find(function(a){return a===F.state&&m.to===n}):m.from===F.state&&m.to===n}); if(y){this.X&&(rs8(this.X),this.X=void 0);v47(this,n,Z);this.state=n;Ek&&Bc(this.state);y=y.action.bind(this);var l=this.plugins.filter(function(m){return m[n]}).map(function(m){return m[n]}); y(n5e(this,l),Z)}else throw Error("no transition specified from "+this.state+" to "+n);}; g.Q.PGY=function(n){var Z=g.S7.apply(1,arguments);g.pF();for(var F=g.Y(n),y=F.next(),l={};!y.done;l={AN:void 0},y=F.next())l.AN=y.value,YKe(function(m){return function(){qQ(m.AN.name);eu(function(){return m.AN.callback.apply(m.AN,g.t(Z))}); Ok(m.AN.name)}}(l))}; g.Q.mh8=function(n){var Z=g.S7.apply(1,arguments),F,y,l,m;return g.A(function(a){a.N==1&&(g.pF(),F=g.Y(n),y=F.next(),l={});if(a.N!=3){if(y.done)return a.ST(0);l.yJ=y.value;l.Hb=void 0;m=function(D){return function(){qQ(D.yJ.name);var p=eu(function(){return D.yJ.callback.apply(D.yJ,g.t(Z))}); Sr(p)?D.Hb=g.N5("web_lifecycle_error_handling_killswitch")?p.then(function(){Ok(D.yJ.name)}):p.then(function(){Ok(D.yJ.name)},function(L){H57(L); Ok(D.yJ.name)}):Ok(D.yJ.name)}}(l); YKe(m);return l.Hb?g.x(a,l.Hb,3):a.ST(3)}l={yJ:void 0,Hb:void 0};y=F.next();return a.ST(2)})}; g.Q.uu=function(n){var Z=g.S7.apply(1,arguments),F=this,y=n.map(function(l){return{qW:function(){qQ(l.name);eu(function(){return l.callback.apply(l,g.t(Z))}); Ok(l.name)}, priority:Wl(F,l)}}); y.length&&(this.X=new Bbp(y))}; g.de.Object.defineProperties(kv.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var iwY;g.d(ki,kv);ki.prototype.S=function(n,Z){var F=this;this.N=g.HX(0,function(){F.currentState==="application_navigating"&&F.transition("none")},5E3); n(Z==null?void 0:Z.event)}; ki.prototype.C=function(n,Z){this.N&&(g.CF.qc(this.N),this.N=null);n(Z==null?void 0:Z.event)};var Gh=[];g.pv("yt.logging.transport.getScrapedGelPayloads",function(){return Gh});YM.prototype.storePayload=function(n,Z){n=LP(n);this.store[n]?this.store[n].push(Z):(this.X={},this.store[n]=[Z]);this.N++;g.N5("more_accurate_gel_parser")&&(Z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Z));return n}; YM.prototype.smartExtractMatchingEntries=function(n){if(!n.keys.length)return[];for(var Z=qB(this,n.keys.splice(0,1)[0]),F=[],y=0;y=0){y=!1;break a}}y=!0}y&&(Z=NH(Z))&&this.aN(Z)}}; g.Q.Mw=function(n){return n}; g.Q.onTouchStart=function(n){this.w5.onTouchStart(n)}; g.Q.onTouchMove=function(n){this.w5.onTouchMove(n)}; g.Q.onTouchEnd=function(n){if(this.w5)this.w5.onTouchEnd(n)}; g.Q.aN=function(n){this.layoutId?this.Hr.executeCommand(n,this.layoutId):(n=new g.FV("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.ZW(n))}; g.Q.createServerVe=function(n,Z){this.api.createServerVe(n,this);this.api.setTrackingParams(n,Z)}; g.Q.logVisibility=function(n,Z){this.api.hasVe(n)&&this.api.logVisibility(n,Z,this.interactionLoggingClientData)}; g.Q.IY=function(){this.clear(null);this.o0(this.d5);for(var n=g.Y(this.Wr),Z=n.next();!Z.done;Z=n.next())this.o0(Z.value);g.oS.prototype.IY.call(this)};g.d(sR,CW); sR.prototype.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);this.N=Z;if(Z.text==null&&Z.icon==null)g.yi(Error("ButtonRenderer did not have text or an icon set."));else{switch(Z.style||null){case "STYLE_UNKNOWN":n="ytp-ad-button-link";break;default:n=null}n!=null&&g.gi(this.element,n);Z.text!=null&&(n=g.sg(Z.text),g.$q(n)||(this.element.setAttribute("aria-label",n),this.T=new g.oS({U:"span",K:"ytp-ad-button-text",E8:n}),g.S(this,this.T),this.T.oY(this.element)));Z.accessibilityData&&Z.accessibilityData.accessibilityData&& Z.accessibilityData.accessibilityData.label&&!g.$q(Z.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",Z.accessibilityData.accessibilityData.label);Z.icon!=null&&(Z=Pk(Z.icon,this.V),Z!=null&&(this.X=new g.oS({U:"span",K:"ytp-ad-button-icon",D:[Z]}),g.S(this,this.X)),this.S?aF(this.element,this.X.element,0):this.X.oY(this.element))}}; sR.prototype.clear=function(){this.hide()}; sR.prototype.onClick=function(n){CW.prototype.onClick.call(this,n);n=g.Y(KyK(this));for(var Z=n.next();!Z.done;Z=n.next())Z=Z.value,this.layoutId?this.Hr.executeCommand(Z,this.layoutId):g.ZW(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.d(Cd,g.I);Cd.prototype.IY=function(){this.X&&g.nL(this.X);this.N.clear();i3=null;g.I.prototype.IY.call(this)}; Cd.prototype.register=function(n,Z){Z&&this.N.set(n,Z)}; var i3=null;g.d(OI,CW); OI.prototype.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);n=Z.hoverText||null;Z=Z.button&&g.e(Z.button,g.qb)||null;Z==null?g.ZW(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new sR(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,void 0,void 0,void 0,void 0,this.T),g.S(this,this.button),this.button.init(Tb("button"),Z,this.macros),n&&this.button.element.setAttribute("aria-label",g.sg(n)),this.button.oY(this.element),this.L&&!g.AR(this.button.element, "ytp-ad-clickable")&&g.gi(this.button.element,"ytp-ad-clickable"),this.T&&g.gi(this.button.element,"ytp-ad-hover-text-button--clean-player"),n&&(this.X=new g.oS({U:"div",K:"ytp-ad-hover-text-container"}),this.S&&(Z=new g.oS({U:"div",K:"ytp-ad-hover-text-callout"}),Z.oY(this.X.element),g.S(this,Z)),g.S(this,this.X),this.X.oY(this.element),Z=sS(n),aF(this.X.element,Z,0)),this.show())}; OI.prototype.hide=function(){this.button&&this.button.hide();this.X&&this.X.hide();CW.prototype.hide.call(this)}; OI.prototype.show=function(){this.button&&this.button.show();CW.prototype.show.call(this)};g.d(LE,CW); LE.prototype.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);F=(n=Z.thumbnail)&&HF(n)||"";g.$q(F)?Math.random()<.01&&g.yi(Error("Found AdImage without valid image URL")):(this.N?g.a$(this.element,"backgroundImage","url("+F+")"):Uj(this.element,{src:F}),Uj(this.element,{alt:n&&n.accessibility&&n.accessibility.label||""}),Z&&Z.adRendererCommands&&Z.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; LE.prototype.clear=function(){this.hide()};g.d(Dn,CW);g.Q=Dn.prototype;g.Q.hide=function(){CW.prototype.hide.call(this);this.T&&this.T.focus()}; g.Q.show=function(){this.T=document.activeElement;CW.prototype.show.call(this);this.V.focus()}; g.Q.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);this.X=Z;Z.dialogMessages||Z.title!=null?Z.confirmLabel==null?g.ZW(Error("ConfirmDialogRenderer.confirmLabel was not set.")):Z.cancelLabel==null?g.ZW(Error("ConfirmDialogRenderer.cancelLabel was not set.")):FZi(this,Z):g.ZW(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.Q.clear=function(){g.xU(this.N);this.hide()}; g.Q.Mx=function(){this.hide()}; g.Q.RS=function(){var n=this.X.cancelEndpoint;n&&(this.layoutId?this.Hr.executeCommand(n,this.layoutId):g.ZW(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.Q.Lj=function(){var n=this.X.confirmNavigationEndpoint||this.X.confirmEndpoint;n&&(this.layoutId?this.Hr.executeCommand(n,this.layoutId):g.ZW(Error("Missing layoutId for confirm dialog.")));this.hide()};g.d(kL,CW);g.Q=kL.prototype; g.Q.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);this.T=Z;if(Z.defaultText==null&&Z.defaultIcon==null)g.ZW(Error("ToggleButtonRenderer must have either text or icon set."));else if(Z.defaultIcon==null&&Z.toggledIcon!=null)g.ZW(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(Z.style){switch(Z.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":n="ytp-ad-toggle-button-default-style";break;default:n=null}n!=null&&g.gi(this.V,n)}n={};Z.defaultText? (F=g.sg(Z.defaultText),g.$q(F)||(n.buttonText=F,this.api.B().experiments.RY("a11y_h5_associate_survey_question")||this.N.setAttribute("aria-label",F),this.api.B().experiments.RY("fix_h5_toggle_button_a11y")&&this.X.setAttribute("aria-label",F))):g.vW(this.zx,!1);Z.defaultTooltip&&(n.tooltipText=Z.defaultTooltip,this.N.hasAttribute("aria-label")||this.X.setAttribute("aria-label",Z.defaultTooltip));Z.defaultIcon?(F=Pk(Z.defaultIcon),this.updateValue("untoggledIconTemplateSpec",F),Z.toggledIcon?(this.Tx= !0,F=Pk(Z.toggledIcon),this.updateValue("toggledIconTemplateSpec",F)):(g.vW(this.L,!0),g.vW(this.S,!1)),g.vW(this.N,!1)):g.vW(this.X,!1);g.Zc(n)||this.update(n);Z.isToggled&&(g.gi(this.V,"ytp-ad-toggle-button-toggled"),this.toggleButton(Z.isToggled));uk(this);this.G(this.element,"change",this.iR);this.show()}}; g.Q.onClick=function(n){this.Wr.length>0&&(this.toggleButton(!this.isToggled()),this.iR());CW.prototype.onClick.call(this,n)}; g.Q.iR=function(){g.w4(this.V,"ytp-ad-toggle-button-toggled",this.isToggled());for(var n=g.Y(VH7(this,this.isToggled())),Z=n.next();!Z.done;Z=n.next())Z=Z.value,this.layoutId?this.Hr.executeCommand(Z,this.layoutId):g.ZW(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);uk(this)}; g.Q.clear=function(){this.hide()}; g.Q.toggleButton=function(n){g.w4(this.V,"ytp-ad-toggle-button-toggled",n);this.N.checked=n;uk(this)}; g.Q.isToggled=function(){return this.N.checked};g.d(Jv,rK);Jv.prototype.S=function(n){if(Array.isArray(n)){n=g.Y(n);for(var Z=n.next();!Z.done;Z=n.next())Z=Z.value,Z instanceof AWp&&this.T(Z)}};g.d(XD,CW);g.Q=XD.prototype;g.Q.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);Z.reasons?Z.confirmLabel==null?g.ZW(Error("AdFeedbackRenderer.confirmLabel was not set.")):(Z.cancelLabel==null&&g.yi(Error("AdFeedbackRenderer.cancelLabel was not set.")),Z.title==null&&g.yi(Error("AdFeedbackRenderer.title was not set.")),zTe(this,Z)):g.ZW(Error("AdFeedbackRenderer.reasons were not set."))}; g.Q.clear=function(){Zk(this.S);Zk(this.L);this.V.length=0;this.hide()}; g.Q.hide=function(){this.N&&this.N.hide();this.X&&this.X.hide();CW.prototype.hide.call(this);this.T&&this.T.focus()}; g.Q.show=function(){this.N&&this.N.show();this.X&&this.X.show();this.T=document.activeElement;CW.prototype.show.call(this);this.S.focus()}; g.Q.cD=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.Q.vyu=function(){this.hide()}; SJ.prototype.w1=function(){return this.N.element}; SJ.prototype.getCommand=function(){return this.X}; SJ.prototype.isChecked=function(){return this.T.checked};g.d(Q3,Dn);Q3.prototype.Mx=function(n){Dn.prototype.Mx.call(this,n);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Q3.prototype.RS=function(n){Dn.prototype.RS.call(this,n);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Q3.prototype.Lj=function(n){Dn.prototype.Lj.call(this,n);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.d(r1,CW);g.Q=r1.prototype; g.Q.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);this.S=Z;if(Z.dialogMessage==null&&Z.title==null)g.ZW(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{Z.confirmLabel==null&&g.yi(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(n=Z.closeOverlayRenderer&&g.e(Z.closeOverlayRenderer,g.qb)||null)this.N=new sR(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.S(this,this.N),this.N.init(Tb("button"),n,this.macros),this.N.oY(this.element);Z.title&&(n=g.sg(Z.title),this.updateValue("title",n));if(Z.adReasons)for(n=Z.adReasons,F=0;F=this.jT?(this.Tx.hide(),this.aY=!0,this.publish("i")):this.T&&this.T.isTemplated()&&(n=Math.max(0,Math.ceil((this.jT-n)/1E3)),n!=this.yg&&(cp(this.T,{TIME_REMAINING:String(n)}),this.yg=n)))}};g.d(hK,By);g.Q=hK.prototype; g.Q.init=function(n,Z,F){By.prototype.init.call(this,n,Z,F);if(Z.image&&Z.image.thumbnail)if(Z.headline)if(Z.description)if((n=Z.actionButton&&g.e(Z.actionButton,g.qb))&&n.navigationEndpoint){var y=this.api.getVideoData(2);if(y!=null)if(Z.image&&Z.image.thumbnail){var l=Z.image.thumbnail.thumbnails;l!=null&&l.length>0&&g.$q(g.Bu(l[0].url))&&(l[0].url=y.profilePicture)}else g.yi(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.T.init(Tb("ad-image"),Z.image,F);this.S.init(Tb("ad-text"), Z.headline,F);this.V.init(Tb("ad-text"),Z.description,F);this.X.init(Tb("button"),n,F);F=Bli(this.X.element);dN(this.X.element,F+" This link opens in new tab");this.Tx=n.navigationEndpoint;this.api.Az()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.z$.bind(this));this.zx=Z.startMs||0;Uk(this)}else g.ZW(Error("FlyoutCtaRenderer has no valid action button."));else g.ZW(Error("FlyoutCtaRenderer has no description AdText."));else g.ZW(Error("FlyoutCtaRenderer has no headline AdText.")); else g.yi(Error("FlyoutCtaRenderer has no image."))}; g.Q.onClick=function(n){By.prototype.onClick.call(this,n);this.api.pauseVideo();!g.Uq(this.X.element,n.target)&&this.Tx&&(this.layoutId?this.Hr.executeCommand(this.Tx,this.layoutId):g.ZW(Error("Missing layoutId for flyout cta.")))}; g.Q.m7=function(){if(this.N){var n=this.N.getProgressState();(n&&n.current||this.jT)&&1E3*n.current>=this.zx&&(j8(this),g.hw(this.element,"ytp-flyout-cta-inactive"),this.X.element.removeAttribute("tabIndex"))}}; g.Q.Np=function(){this.clear()}; g.Q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.z$.bind(this))}; g.Q.show=function(){this.X&&this.X.show();By.prototype.show.call(this)}; g.Q.hide=function(){this.X&&this.X.hide();By.prototype.hide.call(this)}; g.Q.z$=function(n){n=="hidden"?this.show():this.hide()};g.d(OU,CW);g.Q=OU.prototype; g.Q.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);this.N=Z;if(this.N.rectangle)for(n=this.N.likeButton&&g.e(this.N.likeButton,Sc),Z=this.N.dislikeButton&&g.e(this.N.dislikeButton,Sc),this.T.init(Tb("toggle-button"),n,F),this.X.init(Tb("toggle-button"),Z,F),this.G(this.element,"change",this.SA),this.V.show(100),this.show(),F=g.Y(this.N&&this.N.impressionCommands||[]),n=F.next();!n.done;n=F.next())n=n.value,this.layoutId?this.Hr.executeCommand(n,this.layoutId):g.ZW(Error("Missing layoutId for instream user sentiment."))}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){this.T.hide();this.X.hide();CW.prototype.hide.call(this)}; g.Q.show=function(){this.T.show();this.X.show();CW.prototype.show.call(this)}; g.Q.SA=function(){a5K(this.element,"ytp-ad-instream-user-sentiment-selected");this.N.postMessageAction&&this.api.LR("onYtShowToast",this.N.postMessageAction);this.V.hide()}; g.Q.onClick=function(n){this.Wr.length>0&&this.SA();CW.prototype.onClick.call(this,n)};g.d(US,g.I);g.Q=US.prototype;g.Q.IY=function(){this.reset();g.I.prototype.IY.call(this)}; g.Q.reset=function(){g.xU(this.V);this.C=!1;this.N&&this.N.stop();this.S.stop();this.T&&(this.T=!1,this.J.play())}; g.Q.start=function(){this.reset();this.V.G(this.X,"mouseover",this.WN,this);this.V.G(this.X,"mouseout",this.ov,this);this.Ns&&(this.V.G(this.X,"focusin",this.WN,this),this.V.G(this.X,"focusout",this.ov,this));this.N?this.N.start():(this.C=this.T=!0,g.a$(this.X,{opacity:this.Pr}))}; g.Q.WN=function(){this.T&&(this.T=!1,this.J.play());this.S.stop();this.N&&this.N.stop()}; g.Q.ov=function(){this.C?this.S.start():this.N&&this.N.start()}; g.Q.TE=function(){this.T||(this.T=!0,this.L.play(),this.C=!0)};var VEU=[new uG("b.f_",0),new uG("j.s_",2),new uG("r.s_",4),new uG("e.h_",6),new uG("i.s_",8),new uG("s.t_",10),new uG("p.h_",12),new uG("s.i_",14),new uG("f.i_",16),new uG("a.b_",18),new uG("a.o_"),new uG("g.o_",22),new uG("p.i_",24),new uG("p.m_"),new uG("n.k_",20),new uG("i.f_"),new uG("a.s_"),new uG("m.c_"),new uG("n.h_",26),new uG("o.p_"),new uG("m.p_",28),new uG("o.a_"),new uG("d.p_"),new uG("e.i_")].reduce(function(n,Z){n[Z.X]=Z;return n},{});g.d(Eu,By);g.Q=Eu.prototype; g.Q.init=function(n,Z,F){By.prototype.init.call(this,n,Z,F);this.Tx=Z;(this.zx=fle(this))&&g.yi(Error("hasAdControlInClickCommands_ is true."));if(!Z||g.Zc(Z))g.ZW(Error("SkipButtonRenderer was not specified or empty."));else if(!Z.message||g.Zc(Z.message))g.ZW(Error("SkipButtonRenderer.message was not specified or empty."));else if(n=this.S?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},Z=this.api.B().j("delhi_modern_web_player_icons"),Z=Pk(n,!1,!1,Z),Z==null?g.ZW(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+n.iconType+ ".")):(this.api.B().j("disable_touch_events_on_skip_button")&&(Z.Z=Object.assign({},Z.Z,{"aria-hidden":"true",lZG:"false"})),this.T=new g.oS({U:"button",s8:[this.S?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],D:[{U:"span",K:this.S?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",D:[Z]}]}),g.S(this,this.T),this.T.oY(this.V.element),this.X=new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,"ytp-ad-skip-button-text"),this.S&&this.X.element.classList.add("ytp-ad-skip-button-text-centered"), this.X.init(Tb("ad-text"),this.Tx.message,F),g.S(this,this.X),aF(this.T.element,this.X.element,0)),!this.api.B().j("disable_touch_events_on_skip_button")){var y=y===void 0?null:y;F=this.api.B();!(this.Wr.length>0)&&F.X&&(eZ?0:"ontouchstart"in document.documentElement&&($1f()||MOn()))&&(this.o0(this.d5),y&&this.o0(y),this.Wr=[this.G(this.element,"touchstart",this.onTouchStart,this),this.G(this.element,"touchmove",this.onTouchMove,this),this.G(this.element,"touchend",this.onTouchEnd,this)])}}; g.Q.clear=function(){this.jT.reset();this.hide()}; g.Q.hide=function(){this.V.hide();this.X&&this.X.hide();j8(this);By.prototype.hide.call(this)}; g.Q.onClick=function(n){if(this.T!=null){if(n){var Z=n||window.event;Z.returnValue=!1;Z.preventDefault&&Z.preventDefault()}var F;if(wsP(n,{contentCpn:((F=this.api.getVideoData(1))==null?void 0:F.clientPlaybackNonce)||""})===0)this.api.LR("onAbnormalityDetected");else if(By.prototype.onClick.call(this,n),this.publish("j"),this.api.LR("onAdSkip"),this.aY||!this.zx)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.Q.Mw=function(n){if(!this.aY)return this.zx&&wU("SkipButton click commands not pruned while ALC exist"),n;var Z,F=(Z=g.e(n,g.oO))==null?void 0:Z.commands;if(!F)return n;n=[];for(Z=0;Z=this.S&&qCK(this,!0)};g.d(Sfe,sR);Sfe.prototype.init=function(n,Z,F){sR.prototype.init.call(this,n,Z,F);n=!1;Z.text!=null&&(n=g.sg(Z.text),n=!g.$q(n));n?Z.navigationEndpoint==null?g.yi(Error("No visit advertiser clickthrough provided in renderer,")):Z.style!=="STYLE_UNKNOWN"?g.yi(Error("Button style was not a link-style type in renderer,")):this.show():g.yi(Error("No visit advertiser text was present in the renderer."))};g.d(A_,CW); A_.prototype.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);n=Z.text;g.$q(OS(n))?g.yi(Error("SimpleAdBadgeRenderer has invalid or empty text")):(n&&n.text&&(Z=n.text,this.T&&!this.X&&(Z=this.api.B(),Z=n.text+" "+(Z&&Z.X?"\u2022":"\u00b7")),Z={text:Z,isTemplated:n.isTemplated},n.style&&(Z.style=n.style),n.targetId&&(Z.targetId=n.targetId),n=new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),n.init(Tb("simple-ad-badge"),Z,F),n.oY(this.element),g.S(this,n)),this.show())}; A_.prototype.clear=function(){this.hide()};g.d(Ze,n1);g.d(sP,g.Xu);g.Q=sP.prototype;g.Q.Tg=function(){return this.durationMs}; g.Q.stop=function(){this.N&&this.handler.o0(this.N)}; g.Q.jO=function(n){this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:n.current};this.publish("h")}; g.Q.getProgressState=function(){return this.X}; g.Q.Jr=function(n){g.On(n,2)&&this.publish("g")};g.d(gG,g.Xu);g.Q=gG.prototype;g.Q.Tg=function(){return this.durationMs}; g.Q.start=function(){this.N||(this.N=!0,this.timer.start())}; g.Q.stop=function(){this.N&&(this.N=!1,this.timer.stop())}; g.Q.jO=function(){this.Y6+=100;var n=!1;this.Y6>this.durationMs&&(this.Y6=this.durationMs,this.timer.stop(),n=!0);this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Y6/1E3};this.publish("h");n&&this.publish("g")}; g.Q.getProgressState=function(){return this.X};g.d(m_,By);g.Q=m_.prototype;g.Q.init=function(n,Z,F){By.prototype.init.call(this,n,Z,F);var y;if(Z==null?0:(y=Z.templatedCountdown)==null?0:y.templatedAdText){n=Z.templatedCountdown.templatedAdText;if(!n.isTemplated){g.yi(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.X=new q8(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);this.X.init(Tb("ad-text"),n,{});this.X.oY(this.element);g.S(this,this.X)}this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){j8(this);By.prototype.hide.call(this)}; g.Q.Np=function(){this.hide()}; g.Q.m7=function(){if(this.N!=null){var n=this.N.getProgressState();if(n!=null&&n.current!=null&&this.X){var Z=this.N instanceof sP?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:n.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.N instanceof gG?n.seekableEnd:this.api.getDuration(2,!1);n=n.current;var F,y,l=((F=this.api.getVideoData())==null?0:(y=F.Cq)==null?0:y.call(F))?Math.max(Z-n,0):Z-n;cp(this.X,{FORMATTED_AD_DURATION_REMAINING:String(g.ve(l)), TIME_REMAINING:String(Math.ceil(l))})}}}; g.Q.show=function(){Uk(this);By.prototype.show.call(this)};g.d(Yy,q8);Yy.prototype.onClick=function(n){q8.prototype.onClick.call(this,n);this.api.onAdUxClicked(this.componentType)};g.d(Je,CW);Je.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});if(n=Z.content){g.uz(this.element,n);var F,y;Z=((F=Z.interaction)==null?void 0:(y=F.accessibility)==null?void 0:y.label)||n;this.element.setAttribute("aria-label",Z)}else g.ZW(Error("AdSimpleAttributedString does not have text content"))}; Je.prototype.clear=function(){this.hide()}; Je.prototype.onClick=function(n){CW.prototype.onClick.call(this,n)};g.d(wp,CW); wp.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});(n=Z.label)&&n.content&&!g.$q(n.content)?(this.adBadgeText.init(Tb("ad-simple-attributed-string"),new Wh(n)),(Z=Z.adPodIndex)&&Z.content&&!g.$q(Z.content)&&(this.N=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),this.N.oY(this.element),g.S(this,this.N),this.N.element.classList.add("ytp-ad-badge__pod-index"),this.N.init(Tb("ad-simple-attributed-string"),new Wh(Z))),this.element.classList.add(this.X?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.ZW(Error("No label is returned in AdBadgeViewModel."))}; wp.prototype.show=function(){this.adBadgeText.show();var n;(n=this.N)==null||n.show();CW.prototype.show.call(this)}; wp.prototype.hide=function(){this.adBadgeText.hide();var n;(n=this.N)==null||n.hide();CW.prototype.hide.call(this)};g.d(zm,CW);zm.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});(n=Z.adPodIndex)&&n.content&&!g.$q(n.content)&&(this.N=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),this.N.oY(this.element),g.S(this,this.N),this.N.init(Tb("ad-simple-attributed-string"),new Wh(n)),Z.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()}; zm.prototype.show=function(){var n;(n=this.N)==null||n.show();CW.prototype.show.call(this)}; zm.prototype.hide=function(){var n;(n=this.N)==null||n.hide();CW.prototype.hide.call(this)};g.d(uJ,CW); uJ.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});if(Z!=null&&Z.text){var F;if(((F=Z.text)==null?0:F.content)&&!g.$q(Z.text.content)){this.N=new g.oS({U:"div",K:"ytp-ad-disclosure-banner__text",E8:Z.text.content});g.S(this,this.N);this.N.oY(this.element);if(this.api.B().j("enable_ad_disclosure_banner_a11y_fix")){var y,l,m=(y=Z.interaction)==null?void 0:(l=y.accessibility)==null?void 0:l.label;m||(m=Z.text.content+" This link opens in new tab");dN(this.element,m)}else{var a;y=((m= Z.interaction)==null?void 0:(a=m.accessibility)==null?void 0:a.label)||Z.text.content;this.element.setAttribute("aria-label",y)}var D;if((D=Z.interaction)==null?0:D.onTap)this.X=new g.oS({U:"div",K:"ytp-ad-disclosure-banner__chevron",D:[g.lS()]}),g.S(this,this.X),this.X.oY(this.element),this.api.B().j("enable_ad_disclosure_banner_a11y_fix")&&(N2(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.W1));this.show()}}else g.ZW(Error("No banner text found in AdDisclosureBanner."))}; uJ.prototype.W1=function(n){if(n.key==="Enter"||n.key===" ")n.preventDefault(),this.element.click()}; uJ.prototype.clear=function(){this.hide()};g.d(p3,g.oS);p3.prototype.jO=function(){var n=this.X.getProgressState(),Z=n.seekableEnd;this.api.getPresentingPlayerType()===2&&(Z=this.T?this.T/1E3:n.seekableEnd);this.progressBar.style.width=bz(new WP(n.seekableStart,Z),n.current,0)*100+"%"}; p3.prototype.onStateChange=function(){g.Uo(this.api.B())||(this.api.getPresentingPlayerType()===2?this.N===-1&&(this.show(),this.N=this.X.subscribe("h",this.jO,this),this.jO()):this.N!==-1&&(this.hide(),this.X.ez(this.N),this.N=-1))};g.d(gB,CW); gB.prototype.init=function(n,Z,F,y){CW.prototype.init.call(this,n,Z,F);if(Z.skipOrPreviewRenderer){if(n=g.e(Z.skipOrPreviewRenderer,CM))F=new M6(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.X,this.L),F.oY(this.r5),F.init(Tb("skip-button"),n,this.macros),g.S(this,F);if(n=g.e(Z.skipOrPreviewRenderer,CM))var l=n.skipOffsetMilliseconds}Z.brandInteractionRenderer&&(n=Z.brandInteractionRenderer.brandInteractionRenderer,F=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr), F.oY(this.zx),F.init(Tb("instream-user-sentiment"),n,this.macros),g.S(this,F));if(n=g.e(Z,URT))if(n=g.e(n,URT))F=new hK(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.X,!!Z.showWithoutLinkedMediaLayout),g.S(this,F),F.oY(this.S),F.init(Tb("flyout-cta"),n,this.macros);y=y&&y.videoAdDurationSeconds;Z.adBadgeRenderer&&(F=Z.adBadgeRenderer,n=g.e(F,ZO),n!=null?(F=new wp(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,!1),g.S(this,F),F.oY(this.N),F.init(Tb("ad-badge"), n,this.macros),this.T=F.element):(n=F.simpleAdBadgeRenderer,n==null&&(n={text:{text:"Ad",isTemplated:!1}}),F=new A_(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,!0),g.S(this,F),F.oY(this.N),F.init(Tb("simple-ad-badge"),n,this.macros)));Z.adPodIndex&&(n=g.e(Z.adPodIndex,AbY),n!=null&&(F=new zm(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,F),F.oY(this.N),F.init(Tb("ad-pod-index"),n)));Z.adDurationRemaining&&!Z.showWithoutLinkedMediaLayout&&(n=Z.adDurationRemaining.adDurationRemainingRenderer, n==null&&(n={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),y=new m_(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.X,y,!1),g.S(this,y),y.oY(this.N),y.init(Tb("ad-duration-remaining"),n,this.macros));Z.adInfoRenderer&&(y=g.e(Z.adInfoRenderer,uH))&&(n=new cZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.element,void 0,!1),g.S(this,n),this.T!==null?this.N.insertBefore(n.element,this.T.nextSibling):n.oY(this.N), n.init(Tb("ad-info-hover-text-button"),y,this.macros));Z.visitAdvertiserRenderer&&(n=g.e(Z.visitAdvertiserRenderer,g.qb))&&(F=lmo(this)&&this.V?this.V:this.N)&&(y=new Sfe(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,y),y.oY(F),y.init(Tb("visit-advertiser"),n,this.macros),N2(y.element),n=Bli(y.element),dN(y.element,n+" This link opens in new tab"));!(y=this.api.B())||g.Tg(y)||g.R6(y)||y.controlsType!="3"&&!y.disableOrganicUi||(l=new p3(this.api,this.X,l,!1),l.oY(this.jT), g.S(this,l));Z.adDisclosureBannerRenderer&&(Z=g.e(Z.adDisclosureBannerRenderer,fPj))&&(l=new uJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),l.oY(this.Tx),l.init(Tb("ad-disclosure-banner"),Z),g.S(this,l));this.api.B().j("enable_updated_html5_player_focus_style")&&g.gi(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; gB.prototype.clear=function(){this.hide()};g.SC.prototype.flush=function(n,Z){n=n===void 0?[]:n;Z=Z===void 0?!1:Z;if(g.N5("enable_client_streamz_web")){n=g.Y(n);for(var F=n.next();!F.done;F=n.next())F=Gso(F.value),this.N&&cV(F,NK,2,this.N),F={serializedIncrementBatch:g.Ee(F.T())},g.xt("streamzIncremented",F,{sendIsolatedPayload:Z})}}; g.d(Jf3,g.SC);var Csf=new Map;Hw.prototype.set=function(n,Z,F){F=F!==void 0?Date.now()+F:void 0;this.N.set(n,Z,F)}; Hw.prototype.get=function(n){return this.N.get(n)}; Hw.prototype.remove=function(n){this.N.remove(n)};var vyj=null;var p8=null,DD=null,K8=null,hPe=null;g.pv("yt.www.ads.eventcache.getLastCompanionData",function(){return p8}); g.pv("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.pv("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return DD}); g.pv("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return K8}); g.pv("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return hPe});var l5o=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);BK.prototype.handleResponse=function(n,Z){if(!Z)throw Error("request needs to be passed into ConsistencyService");var F,y;Z=((F=Z.t0.context)==null?void 0:(y=F.request)==null?void 0:y.consistencyTokenJars)||[];var l;(n=(l=n.responseContext)==null?void 0:l.consistencyTokenJar)&&this.replace(Z,n)}; BK.prototype.replace=function(n,Z){n=g.Y(n);for(var F=n.next();!F.done;F=n.next())delete this.N[F.value.encryptedTokenJarContents];iDY(this,Z)};var upm=window.location.hostname.split(".").slice(-2).join("."),Vl;vN.getInstance=function(){Vl=g.Di("yt.clientLocationService.instance");Vl||(Vl=new vN,g.pv("yt.clientLocationService.instance",Vl));return Vl}; g.Q=vN.prototype; g.Q.setLocationOnInnerTubeContext=function(n){n.client||(n.client={});if(this.N)n.client.locationInfo||(n.client.locationInfo={}),n.client.locationInfo.latitudeE7=Math.floor(this.N.coords.latitude*1E7),n.client.locationInfo.longitudeE7=Math.floor(this.N.coords.longitude*1E7),n.client.locationInfo.horizontalAccuracyMeters=Math.round(this.N.coords.accuracy),n.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.T||this.locationPlayabilityToken)n.client.locationPlayabilityToken=this.T|| this.locationPlayabilityToken}; g.Q.handleResponse=function(n){var Z;n=(Z=n.responseContext)==null?void 0:Z.locationPlayabilityToken;n!==void 0&&(this.locationPlayabilityToken=n,this.N=void 0,g.BT("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Iu(this))&&this.localStorage.set("yt-location-playability-token",n,15552E3):g.Z6("YT_CL",JSON.stringify({loctok:n}),15552E3,upm,!0))}; g.Q.clearLocationPlayabilityToken=function(n){n==="TVHTML5"?(this.localStorage=Iu(this))&&this.localStorage.remove("yt-location-playability-token"):g.V1o("YT_CL");this.T=void 0;this.X!==-1&&(clearTimeout(this.X),this.X=-1)}; g.Q.getCurrentPositionFromGeolocation=function(){var n=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var Z=!1,F=1E4;g.BT("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Z=!0,F=15E3);return new Promise(function(y,l){navigator.geolocation.getCurrentPosition(function(m){n.N=m;y(m)},function(m){l(m)},{enableHighAccuracy:Z, maximumAge:0,timeout:F})})}; g.Q.createUnpluggedLocationInfo=function(n){var Z={};n=n.coords;if(n==null?0:n.latitude)Z.latitudeE7=Math.floor(n.latitude*1E7);if(n==null?0:n.longitude)Z.longitudeE7=Math.floor(n.longitude*1E7);if(n==null?0:n.accuracy)Z.locationRadiusMeters=Math.round(n.accuracy);return Z}; g.Q.createLocationInfo=function(n){var Z={};n=n.coords;if(n==null?0:n.latitude)Z.latitudeE7=Math.floor(n.latitude*1E7);if(n==null?0:n.longitude)Z.longitudeE7=Math.floor(n.longitude*1E7);return Z};g.Q=e48.prototype;g.Q.contains=function(n){return Object.prototype.hasOwnProperty.call(this.N,n)}; g.Q.get=function(n){if(this.contains(n))return this.N[n]}; g.Q.set=function(n,Z){this.N[n]=Z}; g.Q.EZ=function(){return Object.keys(this.N)}; g.Q.remove=function(n){delete this.N[n]};LR.prototype.getModuleId=function(n){return n.serviceId.getModuleId()}; LR.prototype.get=function(n){a:{var Z=this.mappings.get(n.toString());switch(Z.type){case "mapping":n=Z.value;break a;case "factory":Z=Z.value();this.mappings.set(n.toString(),{type:"mapping",value:Z});n=Z;break a;default:n=dF(Z)}}return n}; LR.prototype.registerService=function(n,Z){this.mappings.set(n.toString(),{type:"mapping",value:Z});return n}; new LR;var vI={},WZj=(vI.WEB_UNPLUGGED="^unplugged/",vI.WEB_UNPLUGGED_ONBOARDING="^unplugged/",vI.WEB_UNPLUGGED_OPS="^unplugged/",vI.WEB_UNPLUGGED_PUBLIC="^unplugged/",vI.WEB_CREATOR="^creator/",vI.WEB_KIDS="^kids/",vI.WEB_EXPERIMENTS="^experiments/",vI.WEB_MUSIC="^music/",vI.WEB_REMIX="^music/",vI.WEB_MUSIC_EMBEDDED_PLAYER="^music/",vI.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",vI);Yup.prototype.S=function(n,Z,F){Z=Z===void 0?{}:Z;F=F===void 0?X2:F;var y={context:g.Yu(n.clickTrackingParams,!1,this.V)};var l=this.X(n);if(l){this.N(y,l,Z);var m;Z=g.SA(this.T());(l=(m=g.e(n.commandMetadata,g.Ys))==null?void 0:m.apiUrl)&&(Z=l);m=fNU(zS(Z));n=Object.assign({},{command:n},void 0);y={input:m,Cs:kN(m),t0:y,config:n};y.config.ot?y.config.ot.identity=F:y.config.ot={identity:F};return y}F=new g.FV("Error: Failed to create Request from Command.",n);g.ZW(F)}; g.de.Object.defineProperties(Yup.prototype,{V:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.d(Cg,Yup);g.d(yg,Cg);yg.prototype.S=function(){return{input:"/getDatasyncIdsEndpoint",Cs:kN("/getDatasyncIdsEndpoint","GET"),t0:{}}}; yg.prototype.T=function(){return[]}; yg.prototype.X=function(){}; yg.prototype.N=function(){};var bQG={},QsY=(bQG.GET_DATASYNC_IDS=jY(yg),bQG);var IQ={},XTm=(IQ["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",IQ["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",IQ["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",IQ["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",IQ["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",IQ["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",IQ["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", IQ["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",IQ["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",IQ["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",IQ["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",IQ["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",IQ["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",IQ["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",IQ["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", IQ["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",IQ["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",IQ["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",IQ["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",IQ["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",IQ["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",IQ["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", IQ["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",IQ.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",IQ["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",IQ["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",IQ["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",IQ["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",IQ["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",IQ["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", IQ["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",IQ["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",IQ["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",IQ["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",IQ["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",IQ["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",IQ["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",IQ["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",IQ["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",IQ["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",IQ.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",IQ["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",IQ["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",IQ["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",IQ["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",IQ["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",IQ["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",IQ["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",IQ["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",IQ["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",IQ["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",IQ["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",IQ["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",IQ["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",IQ["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",IQ["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",IQ["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",IQ["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",IQ["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",IQ["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",IQ["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",IQ["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", IQ["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",IQ["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",IQ["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",IQ["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",IQ["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",IQ["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",IQ["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",IQ["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",IQ["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", IQ["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",IQ["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",IQ["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",IQ["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",IQ["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",IQ["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",IQ["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",IQ["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", IQ),fI={},u43=(fI.auto_search="LATENCY_ACTION_AUTO_SEARCH",fI.ad_to_ad="LATENCY_ACTION_AD_TO_AD",fI.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",fI.app_startup="LATENCY_ACTION_APP_STARTUP",fI.browse="LATENCY_ACTION_BROWSE",fI.cast_splash="LATENCY_ACTION_CAST_SPLASH",fI.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",fI.channels="LATENCY_ACTION_CHANNELS",fI.chips="LATENCY_ACTION_CHIPS",fI.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",fI.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", fI.editor="LATENCY_ACTION_EDITOR",fI.embed="LATENCY_ACTION_EMBED",fI.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",fI.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",fI.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",fI.explore="LATENCY_ACTION_EXPLORE",fI.favorites="LATENCY_ACTION_FAVORITES",fI.home="LATENCY_ACTION_HOME",fI.inboarding="LATENCY_ACTION_INBOARDING",fI.landing="LATENCY_ACTION_LANDING",fI.learning="LATENCY_ACTION_LEARNING", fI.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",fI.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",fI.library="LATENCY_ACTION_LIBRARY",fI.live="LATENCY_ACTION_LIVE",fI.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",fI.management="LATENCY_ACTION_MANAGEMENT",fI.mini_app="LATENCY_ACTION_MINI_APP_PLAY",fI.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",fI.onboarding="LATENCY_ACTION_ONBOARDING",fI.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", fI.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",fI.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",fI.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",fI.prebuffer="LATENCY_ACTION_PREBUFFER",fI.prefetch="LATENCY_ACTION_PREFETCH",fI.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",fI.profile_switcher="LATENCY_ACTION_LOGIN",fI.projects="LATENCY_ACTION_PROJECTS",fI.reel_watch="LATENCY_ACTION_REEL_WATCH",fI.results="LATENCY_ACTION_RESULTS",fI.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", fI.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",fI.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",fI.review="LATENCY_ACTION_REVIEW",fI.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",fI.search_ui="LATENCY_ACTION_SEARCH_UI",fI.search_suggest="LATENCY_ACTION_SUGGEST",fI.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",fI.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",fI.seek="LATENCY_ACTION_PLAYER_SEEK",fI.settings="LATENCY_ACTION_SETTINGS",fI.store="LATENCY_ACTION_STORE", fI.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",fI.tenx="LATENCY_ACTION_TENX",fI.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",fI.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",fI.watch="LATENCY_ACTION_WATCH",fI.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",fI["watch,watch7"]="LATENCY_ACTION_WATCH",fI["watch,watch7_html5"]="LATENCY_ACTION_WATCH",fI["watch,watch7ad"]="LATENCY_ACTION_WATCH",fI["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",fI.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", fI.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",fI.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",fI.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",fI.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",fI.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",fI.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",fI.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",fI);Object.assign(u43,XTm);g.d(Q4,Jw);var Swp=new S$("aft-recorded",Q4);var zjz=g.KQ.ytLoggingGelSequenceIdObj_||{};g.pv("ytLoggingGelSequenceIdObj_",zjz);var It=g.KQ.ytLoggingLatencyUsageStats_||{};g.pv("ytLoggingLatencyUsageStats_",It);vm.prototype.tick=function(n,Z,F,y){Rb(this,"tick_"+n+"_"+Z)||g.xt("latencyActionTicked",{tickName:n,clientActionNonce:Z},{timestamp:F,cttAuthInfo:y})}; vm.prototype.info=function(n,Z,F){var y=Object.keys(n).join("");Rb(this,"info_"+y+"_"+Z)||(n=Object.assign({},n),n.clientActionNonce=Z,g.xt("latencyActionInfo",n,{cttAuthInfo:F}))}; vm.prototype.jspbInfo=function(n,Z,F){for(var y="",l=0;l=l.length?(Z.append(l),n-=l.length):n?(Z.append(new Uint8Array(l.buffer,l.byteOffset,n)),F.append(new Uint8Array(l.buffer,l.byteOffset+n,l.length-n)),n=0):F.append(l);return{H6:Z,bl:F}}; y9.prototype.isFocused=function(n){return n>=this.T&&n=64&&(this.C.set(n.subarray(0,64-this.X),this.X),Z=64-this.X,this.X=0,Xyo(this,this.C,0));for(;Z+64<=F;Z+=64)Xyo(this,n,Z);Z=this.start&&(n=2&&F.ssdaiAdsConfig&&wU("Unexpected ad placement renderers length",n.slot,null,{length:y.length});var l;((l=F.adSlots)==null?0:l.some(function(m){var a,D;return((a=g.e(m,WJ))==null?void 0:(D=a.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||y.some(function(m){var a,D,p,L; return!!((a=m.renderer)==null?0:(D=a.linearAdSequenceRenderer)==null?0:(p=D.linearAds)==null?0:p.length)||!((L=m.renderer)==null||!L.instreamVideoAdRenderer)})||iCK(n)})}; MQ8.prototype.xB=function(){fxp(this.N)};oe.prototype.eY=function(){var n=this;BeY(this.X,function(){var Z=o5(n.slot.clientMetadata,"metadata_type_ad_break_request_data");return Z.cueProcessedMs?n.N.get().fetch({R_:Z.getAdBreakUrl,J$:new g.wg(Z.nU,Z.KU),cueProcessedMs:Z.cueProcessedMs}):n.N.get().fetch({R_:Z.getAdBreakUrl,J$:new g.wg(Z.nU,Z.KU)})})}; oe.prototype.xB=function(){fxp(this.X)};Ks.prototype.eY=function(){var n=this.slot.clientMetadata,Z,F=(Z=this.slot.fulfilledLayout)!=null?Z:o5(n,"metadata_type_fulfilled_layout");drj(this.callback,this.slot,F)}; Ks.prototype.xB=function(){Jk(this.callback,this.slot,new C("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")};L8U.prototype.build=function(n,Z){return Z.fulfilledLayout||tJ(Z,{Nj:["metadata_type_fulfilled_layout"]})?new Ks(n,Z):this.T(n,Z)};g.d(FW,L8U); FW.prototype.T=function(n,Z){if(tJ(Z,{Nj:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new MQ8(n,Z,this.N,this.X,this.xs,this.U8,this.uY,this.tG,this.ym);if(tJ(Z,{Nj:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new oe(n,Z,this.N,this.X,this.xs,this.U8);throw new C("Unsupported slot with type: "+Z.slotType+" and client metadata: "+IM(Z.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.d(yY,L8U);yY.prototype.T=function(n,Z){throw new C("Unsupported slot with type: "+Z.slotType+" and client metadata: "+IM(Z.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.Q=ele.prototype;g.Q.RW=function(){return this.slot}; g.Q.qs=function(){return this.layout}; g.Q.init=function(){}; g.Q.release=function(){}; g.Q.startRendering=function(n){if(n.layoutId!==this.layout.layoutId)this.callback.KN(this.slot,n,new JT("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 Z=o5(n.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.m0(this.slot,n),dUK(this.T, this.slot,Z)):wU("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,n)}}; g.Q.IZ=function(n,Z){n.layoutId!==this.layout.layoutId?this.callback.KN(this.slot,n,new JT("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.nJ(this.slot,n,Z),v3P(this),XRY(this))};g.d(Tf,g.Xu);g.Q=Tf.prototype;g.Q.RW=function(){return this.X.slot}; g.Q.qs=function(){return this.X.layout}; g.Q.init=function(){this.T.get().addListener(this)}; g.Q.release=function(){this.T.get().removeListener(this);this.dispose()}; g.Q.X$=function(){}; g.Q.mA=function(){}; g.Q.Fa=function(){}; g.Q.c6=function(){}; g.Q.startRendering=function(n){var Z=this;rr(this.X,n,function(){return void Z.CQ()})}; g.Q.CQ=function(){this.T.get().CQ(this.N)}; g.Q.IZ=function(n,Z){var F=this;rr(this.X,n,function(){var y=F.T.get();yoQ(y,F.N,3);F.N=[];F.callback.nJ(F.slot,n,Z)})}; g.Q.IY=function(){this.T.CR()||this.T.get().removeListener(this);g.Xu.prototype.IY.call(this)}; g.de.Object.defineProperties(Tf.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.X.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.X.layout}}});Ja.prototype.rB=function(n,Z){Z=Z===void 0?!1:Z;var F=(this.T.get(n)||[]).concat();if(Z=Z&&Jx3(n)){var y=this.T.get(Z);y&&F.push.apply(F,g.t(y))}wd(this,n,F);this.N.add(n);Z&&this.N.add(Z)}; Ja.prototype.GN=function(n,Z){Z=Z===void 0?!1:Z;if(!this.N.has(n)){var F=Z&&Jx3(n);F&&(Z=!this.N.has(F));this.rB(n,Z)}};g.d(Cu8,n1);g.d(BfU,Tf);g.Q=BfU.prototype;g.Q.vE=function(n,Z){co("ads-engagement-panel-layout",n,this.C.get().dW,this.uY.get(),this.V,this.S,this.RW(),this.qs(),Z)}; g.Q.startRendering=function(n){gq(this.Ms,this.RW(),this.qs(),g.e(this.qs().renderingContent,K5o),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(Z,F,y,l,m){return new Cu8(Z,F,y,l,m)},this.N); Tf.prototype.startRendering.call(this,n)}; g.Q.m0=function(n,Z){this.S===Z.layoutId&&(this.V===null?this.V=this.uY.get().Bm():wU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.IY=function(){NS(this.wM(),this);Tf.prototype.IY.call(this)};g.d(Dup,n1);g.d(TN,Tf);g.Q=TN.prototype;g.Q.vE=function(n,Z){co("banner-image",n,this.C.get().dW,this.uY.get(),this.V,this.S,this.RW(),this.qs(),Z)}; g.Q.startRendering=function(n){gq(this.Ms,this.RW(),this.qs(),g.e(this.qs().renderingContent,mfY),this.callback,"metadata_type_banner_image_layout_view_model",function(Z,F,y,l,m){return new Dup(Z,F,y,l,m)},this.N); Tf.prototype.startRendering.call(this,n)}; g.Q.m0=function(n,Z){this.S===Z.layoutId&&(this.V===null?this.V=this.uY.get().Bm():wU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.IY=function(){NS(this.wM(),this);Tf.prototype.IY.call(this)};g.d(Dw,n1);g.d(KBj,Tf);g.Q=KBj.prototype;g.Q.vE=function(n,Z){co("action-companion",n,this.C.get().dW,this.uY.get(),this.V,this.S,this.RW(),this.qs(),Z)}; g.Q.startRendering=function(n){gq(this.Ms,this.RW(),this.qs(),g.e(this.qs().renderingContent,fF),this.callback,"metadata_type_action_companion_ad_renderer",function(Z,F,y,l,m){return new Dw(Z,F,y,l,m)},this.N); Tf.prototype.startRendering.call(this,n)}; g.Q.m0=function(n,Z){Z.layoutId===this.layout.layoutId?this.Ms.GN("impression"):this.S===Z.layoutId&&(this.V===null?this.V=this.uY.get().Bm():wU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.IY=function(){NS(this.wM(),this);Tf.prototype.IY.call(this)};g.d(M37,n1);g.d(j9f,Tf);g.Q=j9f.prototype;g.Q.vE=function(n,Z){co("image-companion",n,this.C.get().dW,this.uY.get(),this.V,this.S,this.RW(),this.qs(),Z)}; g.Q.startRendering=function(n){gq(this.Ms,this.RW(),this.qs(),g.e(this.qs().renderingContent,ZF),this.callback,"metadata_type_image_companion_ad_renderer",function(Z,F,y,l,m){return new M37(Z,F,y,l,m)},this.N); Tf.prototype.startRendering.call(this,n)}; g.Q.m0=function(n,Z){Z.layoutId===this.layout.layoutId?this.Ms.GN("impression"):this.S===Z.layoutId&&(this.V===null?this.V=this.uY.get().Bm():wU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.IY=function(){NS(this.wM(),this);Tf.prototype.IY.call(this)};g.d(T_f,n1);g.d(QD,Tf);g.Q=QD.prototype;g.Q.vE=function(n,Z){co("shopping-companion",n,this.C.get().dW,this.uY.get(),this.V,this.S,this.RW(),this.qs(),Z)}; g.Q.startRendering=function(n){gq(this.Ms,this.RW(),this.qs(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(Z,F,y,l,m){return new T_f(Z,F,y,l,m)},this.N); Tf.prototype.startRendering.call(this,n)}; g.Q.m0=function(n,Z){Z.layoutId===this.layout.layoutId?this.Ms.GN("impression"):this.S===Z.layoutId&&(this.V===null?this.V=this.uY.get().Bm():wU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.IY=function(){NS(this.wM(),this);Tf.prototype.IY.call(this)};g.d(Ru,Tf);g.Q=Ru.prototype;g.Q.startRendering=function(n){gq(this.Ms,this.RW(),this.qs(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(Z,F,y,l,m){return new Dw(Z,F,y,l,m)},this.N); Tf.prototype.startRendering.call(this,n)}; g.Q.m0=function(){}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.IY=function(){NS(this.wM(),this);Tf.prototype.IY.call(this)}; g.Q.vE=function(){};g.Q=SKf.prototype;g.Q.RW=function(){return this.slot}; g.Q.qs=function(){return this.layout}; g.Q.init=function(){this.tG.get().addListener(this);this.tG.get().Tv.push(this);var n=o5(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Z=o5(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");fR(this.layout.Nd)&&$M(this.TN.get(),this.layout.layoutId,{O7:Z,rQ:n,listener:this})}; g.Q.release=function(){this.tG.get().removeListener(this);ann(this.tG.get(),this);fR(this.layout.Nd)&&Dq(this.TN.get(),this.layout.layoutId)}; g.Q.startRendering=function(n){this.callback.m0(this.slot,n)}; g.Q.IZ=function(n,Z){kXT(this.U8.get())&&!this.N&&(this.Ms.GN("abandon"),this.N=!0);this.callback.nJ(this.slot,n,Z)}; g.Q.Wn=function(n){switch(n.id){case "part2viewed":this.Ms.GN("start");this.Ms.GN("impression");break;case "videoplaytime25":this.Ms.GN("first_quartile");break;case "videoplaytime50":this.Ms.GN("midpoint");break;case "videoplaytime75":this.Ms.GN("third_quartile");break;case "videoplaytime100":kXT(this.U8.get())?this.N||(this.Ms.GN("complete"),this.N=!0):this.Ms.GN("complete");O6(this.Ms)&&Ti(this.Ms,Infinity,!0);gwo(this.U8.get())&&Ci(this.X,Infinity,!0);break;case "engagedview":O6(this.Ms)||this.Ms.GN("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:wU("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.Q.onVolumeChange=function(){}; g.Q.o6=function(){}; g.Q.dB=function(){}; g.Q.j0=function(){}; g.Q.onFullscreenToggled=function(){}; g.Q.LP=function(){}; g.Q.kc=function(){}; g.Q.hg=function(n){gwo(this.U8.get())&&Ci(this.X,n*1E3,!1);O6(this.Ms)&&Ti(this.Ms,n*1E3,!1)}; g.Q.uL=function(){}; g.Q.DA=function(){this.Ms.GN("active_view_measurable")}; g.Q.qf=function(){this.Ms.GN("active_view_viewable")}; g.Q.Bp=function(){this.Ms.GN("active_view_fully_viewable_audible_half_duration")}; g.Q.vp=function(){this.Ms.GN("audio_measurable")}; g.Q.x3=function(){this.Ms.GN("audio_audible")};g.d(gQ,Tf);g.Q=gQ.prototype;g.Q.init=function(){Tf.prototype.init.call(this);var n=o5(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Z={adsClientData:this.layout.lN};this.N.push(new Ze(n,this.layout.layoutId,o5(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Z,!0))}; g.Q.J0=function(){this.V||this.tG.get().resumeVideo(1)}; g.Q.startRendering=function(n){Tf.prototype.startRendering.call(this,n);GB(this.tG.get(),"ad-showing");this.callback.m0(this.slot,n);this.S.Cf=this}; g.Q.IZ=function(n,Z){Tf.prototype.IZ.call(this,n,Z);Ho(this.tG.get(),"ad-showing");wz(this.S,this)}; g.Q.vE=function(n){switch(n){case "ad-info-icon-button":(this.V=this.tG.get().NK(1))||this.tG.get().pauseVideo();break;case "visit-advertiser":this.tG.get().pauseVideo()}}; g.Q.IY=function(){Tf.prototype.IY.call(this)};g.d(Hqp,n1);g.d(ws,Tf);g.Q=ws.prototype;g.Q.startRendering=function(n){gq(this.Ms,this.RW(),this.qs(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Z,F,y,l,m){return new Hqp(Z,F,y,l,m)},this.N); Tf.prototype.startRendering.call(this,n)}; g.Q.m0=function(){}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.IY=function(){NS(this.wM(),this);Tf.prototype.IY.call(this)}; g.Q.vE=function(){};g.d(z3Q,n1);g.d(kd,Tf);kd.prototype.init=function(){Tf.prototype.init.call(this);this.N.push(new z3Q(g.e(this.layout.renderingContent,CK),this.layout.layoutId,{adsClientData:this.layout.lN}))}; kd.prototype.vE=function(){b3(this.V.get(),this.S)&&O1(this.uY.get(),3)}; kd.prototype.startRendering=function(n){Tf.prototype.startRendering.call(this,n);this.callback.m0(this.slot,n)}; kd.prototype.IY=function(){Tf.prototype.IY.call(this)};g.d(NN,n1);g.d(dW,Tf);dW.prototype.init=function(){Tf.prototype.init.call(this);var n=g.e(this.layout.renderingContent,HG)||o5(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),Z=Gt(this.Ms);this.N.push(new NN(n,Z,this.layout.layoutId,{adsClientData:this.layout.lN},!0,!0))}; dW.prototype.startRendering=function(n){Tf.prototype.startRendering.call(this,n);this.callback.m0(this.slot,n)}; dW.prototype.vE=function(n,Z){if(Z===this.layout.layoutId)switch(n){case "skip-button":var F;(n=(F=o5(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&N1(n,this.RW(),this.layout)}}; dW.prototype.IY=function(){Tf.prototype.IY.call(this)};QY.prototype.build=function(n,Z,F,y){if(JB(y,{Nj:["metadata_type_ad_break_response_data"],ZM:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new ele(n,F,y,this.X,this.T,this.N);throw new JT("Unsupported layout with type: "+y.layoutType+" and client metadata: "+IM(y.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.d(bue,n1);g.d($4n,Tf);g.Q=$4n.prototype;g.Q.vE=function(n,Z){co("ads-engagement-panel",n,this.C.get().dW,this.uY.get(),this.V,this.S,this.RW(),this.qs(),Z)}; g.Q.startRendering=function(n){gq(this.Ms,this.RW(),this.qs(),g.e(this.qs().renderingContent,ng),this.callback,"metadata_type_ads_engagement_panel_renderer",function(Z,F,y,l,m){return new bue(Z,F,y,l,m)},this.N); Tf.prototype.startRendering.call(this,n)}; g.Q.m0=function(n,Z){Z.layoutId===this.layout.layoutId?this.Ms.GN("impression"):this.S===Z.layoutId&&(this.V===null?this.V=this.uY.get().Bm():wU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.IY=function(){NS(this.wM(),this);Tf.prototype.IY.call(this)};g.d(YF,Tf);g.Q=YF.prototype;g.Q.vE=function(n,Z){co("top-banner-image-text-icon-buttoned",n,this.C.get().dW,this.uY.get(),this.V,this.S,this.RW(),this.qs(),Z)}; g.Q.startRendering=function(n){gq(this.Ms,this.RW(),this.qs(),g.e(this.qs().renderingContent,amK),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Z,F,y,l,m){return new Hqp(Z,F,y,l,m)},this.N); Tf.prototype.startRendering.call(this,n)}; g.Q.m0=function(n,Z){this.S===Z.layoutId&&(this.V===null?this.V=this.uY.get().Bm():wU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.IY=function(){NS(this.wM(),this);Tf.prototype.IY.call(this)};pXK.prototype.build=function(n,Z,F,y){if(JB(y,wpi())||g.e(y.renderingContent,ng)!==void 0)return new $4n(n,F,y,this.FJ,this.uY,this.wM,this.TN,this.N);if(JB(y,BPY())||g.e(y.renderingContent,fF)!==void 0)return new KBj(n,F,y,this.FJ,this.uY,this.wM,this.TN,this.N);if(JB(y,owe())||g.e(y.renderingContent,ZF)!==void 0)return new j9f(n,F,y,this.FJ,this.uY,this.wM,this.TN,this.N);if(JB(y,P88()))return new QD(n,F,y,this.FJ,this.uY,this.wM,this.TN,this.N);if(JB(y,Vx3()))return new Ru(n,F,y,this.FJ,this.uY, this.wM,this.TN,this.N);if(JB(y,aGi())||g.e(y.renderingContent,mfY)!==void 0)return new TN(n,F,y,this.FJ,this.uY,this.wM,this.TN,this.N);if(JB(y,ykK())||g.e(y.renderingContent,amK)!==void 0)return new YF(n,F,y,this.FJ,this.uY,this.wM,this.TN,this.N);if(JB(y,Fsp()))return new ws(n,F,y,this.FJ,this.uY,this.wM,this.TN,this.N);if(JB(y,F$7())||g.e(y.renderingContent,K5o)!==void 0)return new BfU(n,F,y,this.FJ,this.uY,this.wM,this.TN,this.N);throw new JT("Unsupported layout with type: "+y.layoutType+" and client metadata: "+ IM(y.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};nxn.prototype.build=function(n,Z,F,y){if(JB(y,{Nj:["metadata_type_linked_player_bytes_layout_id"],ZM:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new kd(n,F,y,this.FJ,this.uY,this.N);throw new JT("Unsupported layout with type: "+y.layoutType+" and client metadata: "+IM(y.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.Q=r1K.prototype;g.Q.RW=function(){return this.slot}; g.Q.qs=function(){return this.layout}; g.Q.init=function(){}; g.Q.release=function(){}; g.Q.startRendering=function(n){n.layoutId!==this.layout.layoutId?this.callback.KN(this.slot,n,new JT("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.m0(this.slot,n),this.Ms.GN("impression"),Mo(this.sD,n))}; g.Q.IZ=function(n,Z){n.layoutId!==this.layout.layoutId?this.callback.KN(this.slot,n,new JT("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.nJ(this.slot,n,Z)};g.Q=n7Y.prototype;g.Q.RW=function(){return this.slot}; g.Q.qs=function(){return this.layout}; g.Q.init=function(){}; g.Q.release=function(){}; g.Q.startRendering=function(n){n.layoutId!==this.layout.layoutId?this.callback.KN(this.slot,n,new JT("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.m0(this.slot,n),this.Ms.GN("impression"),Mo(this.sD,n))}; g.Q.IZ=function(n,Z){n.layoutId!==this.layout.layoutId?this.callback.KN(this.slot,n,new JT("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.nJ(this.slot,n,Z)};Yo.prototype.build=function(n,Z,F,y){if(!this.U8.get().W.B().j("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(JB(y,Rtp()))return new r1K(n,F,y,this.uY,this.sD)}else if(JB(y,{Nj:[],ZM:["LAYOUT_TYPE_FORECASTING"]}))return new n7Y(n,F,y,this.uY,this.sD);throw new JT("Unsupported layout with type: "+y.layoutType+" and client metadata: "+IM(y.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.d(hiK,n1);g.d(eb,Tf);g.Q=eb.prototype;g.Q.init=function(){Tf.prototype.init.call(this);var n=g.e(this.layout.renderingContent,kX)||o5(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Z={adsClientData:this.layout.lN};this.N.push(new hiK(n,o5(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,Z))}; g.Q.J0=function(){this.V||this.tG.get().resumeVideo(2)}; g.Q.startRendering=function(n){Tf.prototype.startRendering.call(this,n);this.callback.m0(this.slot,n);this.S.Cf=this}; g.Q.IZ=function(n,Z){Tf.prototype.IZ.call(this,n,Z);wz(this.S,this)}; g.Q.vE=function(n,Z){if(!E4(this.U8.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Z===this.layout.layoutId){if(b3(this.C.get(),this.J))switch(n){case "visit-advertiser-link":O1(this.uY.get(),3)}switch(n){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.V||this.tG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.V=this.tG.get().NK(2))||this.tG.get().pauseVideo();break; case "visit-advertiser-link":this.tG.get().pauseVideo();OEK(this).vJ();break;case "skip-button":if(n=OEK(this),this.layout.renderingContent&&!HQ(this.layout.clientMetadata,"metadata_type_dai")||!n||!n.Yx){var F;(n=(F=o5(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&N1(n,this.RW(),this.layout)}else wU("Requesting to skip by LegacyPlayerBytes when components enabled"),n.K7(this.RW(),this.layout)}}}; g.Q.IY=function(){Tf.prototype.IY.call(this)};g.d(tW,Tf);g.Q=tW.prototype;g.Q.init=function(){Tf.prototype.init.call(this);var n=g.e(this.layout.renderingContent,z_)||o5(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Z={adsClientData:this.layout.lN},F;(F=!!this.layout.renderingContent)||(F=eCo(this),F=!(F&&F.Yx));this.N.push(new Ze(n,this.layout.layoutId,o5(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Z,F))}; g.Q.J0=function(){this.V||this.tG.get().resumeVideo(2)}; g.Q.startRendering=function(n){Tf.prototype.startRendering.call(this,n);this.callback.m0(this.slot,n);this.S.Cf=this}; g.Q.IZ=function(n,Z){Tf.prototype.IZ.call(this,n,Z);wz(this.S,this)}; g.Q.vE=function(n,Z){if(!this.U8||!E4(this.U8.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Z===this.layout.layoutId){if(b3(this.C.get(),this.J))switch(n){case "visit-advertiser":O1(this.uY.get(),3)}switch(n){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.V||this.tG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.V=this.tG.get().NK(2))||this.tG.get().pauseVideo();break; case "visit-advertiser":this.tG.get().pauseVideo();eCo(this).vJ();break;case "skip-button":if(n=eCo(this),this.layout.renderingContent&&!HQ(this.layout.clientMetadata,"metadata_type_dai")||!n||!n.Yx){var F;(n=(F=o5(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&N1(n,this.RW(),this.layout)}else wU("Requesting to skip by LegacyPlayerBytes"),n.K7(this.RW(),this.layout)}}}; g.Q.IY=function(){Tf.prototype.IY.call(this)};g.d(PG7,n1);g.d(BG,Tf);g.Q=BG.prototype;g.Q.startRendering=function(n){var Z=this;rr(this.X,n,function(){Z.N.push(new PG7(o5(Z.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),n.layoutId,n.lN));Z.CQ();Z.callback.m0(Z.slot,n);g.b(KR(Z.tG.get(),1),512)&&Z.callback.KN(Z.RW(),Z.qs(),new JT("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.Q.kc=function(){}; g.Q.LP=function(n){if(n.state.isError()){var Z;this.callback.KN(this.RW(),this.qs(),new JT("A player error happened during adNotify",{playerErrorCode:(Z=n.state.wB)==null?void 0:Z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.Q.onFullscreenToggled=function(){}; g.Q.dB=function(){}; g.Q.j0=function(){}; g.Q.o6=function(){}; g.Q.onVolumeChange=function(){}; g.Q.Wn=function(){}; g.Q.uL=function(){}; g.Q.vE=function(){};g.d(VW7,n1);g.d($4,Tf);$4.prototype.init=function(){Tf.prototype.init.call(this);var n=g.e(this.layout.renderingContent,MD),Z=Gt(this.Ms);this.N.push(new VW7(n,Z,this.layout.layoutId,{adsClientData:this.layout.lN}))}; $4.prototype.startRendering=function(n){Tf.prototype.startRendering.call(this,n);this.callback.m0(this.slot,n)}; $4.prototype.vE=function(n,Z){if(Z===this.layout.layoutId)switch(n){case "skip-button":var F;(n=(F=o5(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&N1(n,this.RW(),this.layout)}}; $4.prototype.IY=function(){Tf.prototype.IY.call(this)};Wei.prototype.build=function(n,Z,F,y){if(n=nf(n,F,y,this.FJ,this.tG,this.uY,this.X,this.N,this.U8))return n;throw new JT("Unsupported layout with type: "+y.layoutType+" and client metadata: "+IM(y.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.Q=lRf.prototype;g.Q.RW=function(){return this.slot}; g.Q.qs=function(){return this.layout}; g.Q.init=function(){this.tG.get().addListener(this);this.tG.get().Tv.push(this);var n=yhP(this),Z=g.e(this.layout.renderingContent,bW),F=Z?sf(Z.pings):o5(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Z=Z?Vwj(Z.pings):o5(this.layout.clientMetadata,"metadata_type_active_view_identifier");fR(this.layout.Nd)&&$M(this.TN.get(),this.layout.layoutId,{O7:F,rQ:n,listener:this,Pe:Z})}; g.Q.release=function(){this.tG.get().removeListener(this);ann(this.tG.get(),this);fR(this.layout.Nd)&&Dq(this.TN.get(),this.layout.layoutId)}; g.Q.startRendering=function(n){this.callback.m0(this.slot,n)}; g.Q.IZ=function(n,Z){sbK(this,"abandon");this.callback.nJ(this.slot,n,Z)}; g.Q.Wn=function(n){switch(n.id){case "part2viewed":this.Ms.GN("start");this.Ms.GN("impression");break;case "videoplaytime25":this.Ms.GN("first_quartile");break;case "videoplaytime50":this.Ms.GN("midpoint");break;case "videoplaytime75":this.Ms.GN("third_quartile");break;case "videoplaytime100":sbK(this,"complete");O6(this.Ms)&&Ti(this.Ms,Infinity,!0);$Xi(this.U8.get())&&Ci(this.X,Infinity,!0);break;case "engagedview":O6(this.Ms)||this.Ms.GN("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:wU("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.Q.onVolumeChange=function(){}; g.Q.o6=function(){}; g.Q.dB=function(){}; g.Q.j0=function(){}; g.Q.onFullscreenToggled=function(){}; g.Q.LP=function(n){this.N||(g.On(n,4)&&!g.On(n,2)?Ac(this.Ms,"pause"):XG(n,4)<0&&!(XG(n,2)<0)&&Ac(this.Ms,"resume"))}; g.Q.kc=function(){}; g.Q.hg=function(n){$Xi(this.U8.get())&&Ci(this.X,n*1E3,!1);O6(this.Ms)&&Ti(this.Ms,n*1E3,!1)}; g.Q.uL=function(){sbK(this,"swipe")}; g.Q.DA=function(){this.Ms.GN("active_view_measurable")}; g.Q.qf=function(){this.Ms.GN("active_view_viewable")}; g.Q.Bp=function(){this.Ms.GN("active_view_fully_viewable_audible_half_duration")}; g.Q.vp=function(){this.Ms.GN("audio_measurable")}; g.Q.x3=function(){this.Ms.GN("audio_audible")};yxp.prototype.build=function(n,Z,F,y){if(F.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.e(y.renderingContent,bW)!==void 0)return new lRf(n,F,y,this.tG,this.uY,this.Cn,this.U8,this.TN,this.nR);Z=["metadata_type_ad_placement_config"];for(var l=g.Y(U2()),m=l.next();!m.done;m=l.next())Z.push(m.value);if(JB(y,{Nj:Z,ZM:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return F.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new lRf(n,F,y,this.tG,this.uY,this.Cn,this.U8,this.TN,this.nR):new SKf(n,F, y,this.tG,this.uY,this.Cn,this.U8,this.TN);throw new JT("Unsupported layout with type: "+y.layoutType+" and client metadata: "+IM(y.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var azv,GY; azv={Oh5:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Dc4:"AUTHENTICATION_MALFORMED",qVr:"AUTHENTICATION_MISSING",Q7i:"BAD_REQUEST",Idi:"CAST_SESSION_DEVICE_MISMATCHED",wni:"CAST_SESSION_VIDEO_MISMATCHED",V0T:"CAST_TOKEN_EXPIRED",bKr:"CAST_TOKEN_FAILED",iKT:"CAST_TOKEN_MALFORMED",U2s:"CGI_PARAMS_MALFORMED",zGr:"CGI_PARAMS_MISSING",M04:"DEVICE_FALLBACK",bmp:"GENERIC_WITH_LINK_AND_CPN",im5:"ERROR_HDCP",U$T:"LICENSE",Sng:"VIDEO_UNAVAILABLE",Cl4:"FORMAT_UNAVAILABLE",raT:"GEO_FAILURE", RR5:"HTML5_AUDIO_RENDERER_ERROR",x$r:"GENERIC_WITHOUT_LINK",vR8:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Bas:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",D$5:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",qnG:"HTML5_SPS_UMP_STATUS_REJECTED",TZg:"INVALID_DRM_MESSAGE",qtx:"PURCHASE_NOT_FOUND",dKx:"PURCHASE_REFUNDED",Cf4:"RENTAL_EXPIRED",J0Y:"RETRYABLE_ERROR",GQx:"SERVER_ERROR",BFR:"SIGNATURE_EXPIRED",Fqu:"STOPPED_BY_ANOTHER_PLAYBACK",mXx:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",PwY:"STREAMING_NOT_ALLOWED", N2Q:"STREAM_LICENSE_NOT_FOUND",ikr:"TOO_MANY_REQUESTS",UXr:"TOO_MANY_REQUESTS_WITH_LINK",zKx:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Squ:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",p9Y:"VIDEO_FORBIDDEN",HkY:"VIDEO_NOT_FOUND",XnY:"BROWSER_OR_EXTENSION_ERROR"};GY={}; g.ZE=(GY.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.",GY.DEVICE_FALLBACK="Sorry, this video is not available on this device.",GY.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",GY.LICENSE="Sorry, there was an error licensing this video.",GY.VIDEO_UNAVAILABLE= "Video unavailable",GY.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",GY.GEO_FAILURE="This video isn't available in your country.",GY.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",GY.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",GY.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",GY.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", GY.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",GY.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",GY.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",GY.PURCHASE_NOT_FOUND="This video requires payment.",GY.PURCHASE_REFUNDED="This video's purchase has been refunded.",GY.RENTAL_EXPIRED="This video's rental has expired.",GY.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",GY.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",GY.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",GY.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",GY.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",GY.SERVER_ERROR="There was an internal server error. Please try again later.",GY.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",GY.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",GY.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",GY.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",GY.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",GY.TOO_MANY_REQUESTS="Please log in to watch this video.", GY.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",GY.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",GY.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",GY.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",GY.VIDEO_FORBIDDEN="Access to this video is forbidden.",GY.VIDEO_NOT_FOUND="This video can not be found.",GY.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",GY);var K1h;var DG1=g.PT(),pxG=DG1.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!pxG||pxG.length<2)K1h=void 0;else{var L1c=DG1.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);K1h=L1c&&L1c.length===6?Number(L1c[5].replace("_",".")):0}var Zn=K1h,hF=Zn>=0;g.d(g.IS,rK);g.IS.prototype.G=function(n,Z,F,y,l){return rK.prototype.G.call(this,n,Z,F,y,l)};var RQ={},hu=(RQ.FAIRPLAY="fairplay",RQ.PLAYREADY="playready",RQ.WIDEVINE="widevine",RQ.CLEARKEY=null,RQ.FLASHACCESS=null,RQ.UNKNOWN=null,RQ.WIDEVINE_CLASSIC=null,RQ);oV.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var g8={},sN=(g8.WIDTH={name:"width",video:!0,valid:640,BW:99999},g8.HEIGHT={name:"height",video:!0,valid:360,BW:99999},g8.FRAMERATE={name:"framerate",video:!0,valid:30,BW:9999},g8.BITRATE={name:"bitrate",video:!0,valid:3E5,BW:2E9},g8.EOTF={name:"eotf",video:!0,valid:"bt709",BW:"catavision"},g8.CHANNELS={name:"channels",video:!1,valid:2,BW:99},g8.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",BW:"invalidformat"},g8.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", BW:"nope"},g8.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",BW:"av99.0.05M.08"},g8.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",BW:"invalid"},g8.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",BW:"false"},g8);var qGh=["h","H"],wxx=["9","("],TUh=["9h","(h"],omd=["8","*"],POh=["a","A"],JgG=["o","O"],Qvg=["m","M"],YGm=["mac3","MAC3"],SGz=["meac3","MEAC3"],ih={},MC3=(ih.h=qGh,ih.H=qGh,ih["9"]=wxx,ih["("]=wxx,ih["9h"]=TUh,ih["(h"]=TUh,ih["8"]=omd,ih["*"]=omd,ih.a=POh,ih.A=POh,ih.o=JgG,ih.O=JgG,ih.m=Qvg,ih.M=Qvg,ih.mac3=YGm,ih.MAC3=YGm,ih.meac3=SGz,ih.MEAC3=SGz,ih),jvd=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),NFo=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var M={},Bm=(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["900"]="2",M["901"]="2",M["902"]="2",M["903"]="2",M["904"]="2",M["905"]="2",M["906"]="2",M["907"]="2",M["908"]="2",M);var CI={},XDn=(CI.STEREO_LAYOUT_UNKNOWN=0,CI.STEREO_LAYOUT_LEFT_RIGHT=1,CI.STEREO_LAYOUT_TOP_BOTTOM=2,CI);var YBn={SZ8:0,Pfi:124,mN5:144,TF5:220,XtT:240,I6r:340,ENY:360,wtx:480,bBY:588,V5p:608,iBQ:720,UNp:740,Yt5:1080,Qug:1100,FDx:1440,NFT:2160,zPT: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 uh,a4,bh,kvj;uh={};g.FF=(uh.auto=0,uh.tiny=144,uh.light=144,uh.small=240,uh.medium=360,uh.large=480,uh.hd720=720,uh.hd1080=1080,uh.hd1440=1440,uh.hd2160=2160,uh.hd2880=2880,uh.highres=4320,uh);a4={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};bh={}; kvj=(bh.QUALITY_ORDINAL_UNKNOWN=0,bh.QUALITY_ORDINAL_144P_SAVER=124,bh.QUALITY_ORDINAL_144P=144,bh.QUALITY_ORDINAL_240P_SAVER=220,bh.QUALITY_ORDINAL_240P=240,bh.QUALITY_ORDINAL_360P_SAVER=340,bh.QUALITY_ORDINAL_360P=360,bh.QUALITY_ORDINAL_480P=480,bh.QUALITY_ORDINAL_608P_SAVER=588,bh.QUALITY_ORDINAL_608P=608,bh.QUALITY_ORDINAL_720P=720,bh.QUALITY_ORDINAL_720P_ENHANCED=740,bh.QUALITY_ORDINAL_1080P=1080,bh.QUALITY_ORDINAL_1080P_ENHANCED=1100,bh.QUALITY_ORDINAL_1440P=1440,bh.QUALITY_ORDINAL_2160P=2160, bh.QUALITY_ORDINAL_HIGHRES=9999,bh);var HY="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");P4.prototype.isHdr=function(){return this.N==="smpte2084"||this.N==="arib-std-b67"};mZ.prototype.dV=function(){return this.containerType===2}; mZ.prototype.isEncrypted=function(){return!!this.by}; mZ.prototype.BE=function(){return!!this.audio}; mZ.prototype.K6=function(){return!!this.video}; var KD=!1;g.d(t3,g.Xu);g.Q=t3.prototype;g.Q.appendBuffer=function(n,Z,F){if(this.D8.fV()!==this.appendWindowStart+this.start||this.D8.P6()!==this.appendWindowEnd+this.start||this.D8.Kn()!==this.timestampOffset+this.start)this.D8.supports(1),this.D8.Zu(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.D8.Wf(this.timestampOffset+this.start);this.D8.appendBuffer(n,Z,F)}; g.Q.abort=function(){this.D8.abort()}; g.Q.remove=function(n,Z){this.D8.remove(n+this.start,Z+this.start)}; g.Q.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.Q.clear=function(){this.D8.clear()}; g.Q.Zu=function(n,Z){this.appendWindowStart=n;this.appendWindowEnd=Z}; g.Q.vY=function(){return this.timestampOffset+this.start}; g.Q.fV=function(){return this.appendWindowStart}; g.Q.P6=function(){return this.appendWindowEnd}; g.Q.Wf=function(n){this.timestampOffset=n}; g.Q.Kn=function(){return this.timestampOffset}; g.Q.qj=function(n){n=this.D8.qj(n===void 0?!1:n);return yz(n,this.start,this.end)}; g.Q.vn=function(){return this.D8.vn()}; g.Q.JS=function(){return this.D8.JS()}; g.Q.R6=function(){return this.D8.R6()}; g.Q.gH=function(){return this.D8.gH()}; g.Q.Jc=function(){this.D8.Jc()}; g.Q.rI=function(n){return this.D8.rI(n)}; g.Q.vc=function(){return this.D8.vc()}; g.Q.b$=function(){return this.D8.b$()}; g.Q.Gh=function(n,Z,F){this.D8.Gh(n,Z,F)}; g.Q.pC=function(n,Z,F){this.D8.pC(n,Z,F)}; g.Q.CE=function(n,Z){return this.D8.CE(n,Z)}; g.Q.supports=function(n){return this.D8.supports(n)}; g.Q.Uu=function(){return this.D8.Uu()}; g.Q.isView=function(){return!0}; g.Q.PG=function(){return this.D8.PG()?this.isActive:!1}; g.Q.isLocked=function(){return this.aM&&!this.isActive}; g.Q.Zx=function(n){n=this.D8.Zx(n);n.vw=this.start+"-"+this.end;return n}; g.Q.i$=function(){return this.D8.i$()}; g.Q.xI=function(){return this.D8.xI()}; g.Q.pS=function(){return this.D8.pS()}; g.Q.IY=function(){this.D8.h7(this.cB);g.Xu.prototype.IY.call(this)};var bA=!1;g.d(IA,g.Xu);g.Q=IA.prototype;g.Q.appendBuffer=function(n,Z,F){this.qR=!1;F&&(this.xq=F);if(n.length){var y;((y=this.fn)==null?0:y.appendBuffer)?this.fn.appendBuffer(n):this.fn?this.fn.append(n):this.m9&&this.m9.webkitSourceAppend(this.id,n)}Z&&(Z.isEncrypted()&&(this.PS=this.xq),Z.type===3&&(this.n6=Z),this.Ry.push(Z.bd()),this.Ry.length>4&&this.Ry.shift());this.BK&&(this.BK.length>=2||n.length>1048576?delete this.BK:this.BK.push(n))}; g.Q.abort=function(){try{this.fn?this.fn.abort():this.m9&&this.m9.webkitSourceAbort(this.id)}catch(Z){if(hh3){var n=new g.FV("Error while abort the source buffer: "+Z.name+", "+Z.message);g.ZW(n)}}this.xq=this.n6=null}; g.Q.remove=function(n,Z,F){this.qR=!1;var y;if((y=this.fn)==null?0:y.remove)F&&F({b:dr(this.qj()),s:n,e:Z}),this.fn.remove(n,Z)}; g.Q.removeAll=function(){this.remove(this.fV(),this.P6())}; g.Q.clear=function(){this.R6()||(this.abort(),this.removeAll(),this.PS=this.xq=this.n6=null,this.appendWindowStart=this.timestampOffset=0,this.Lr=n6([],[]),this.qR=!1,this.BK=vp?[]:void 0,this.iQ=!0)}; g.Q.fV=function(){if(bA&&this.K6)return this.appendWindowStart;var n;return((n=this.fn)==null?void 0:n.appendWindowStart)||0}; g.Q.P6=function(){var n;return((n=this.fn)==null?void 0:n.appendWindowEnd)||0}; g.Q.Zu=function(n,Z){this.fn&&(bA&&this.K6?(this.appendWindowStart=n,this.fn.appendWindowEnd=Z):n>this.fV()?(this.fn.appendWindowEnd=Z,this.fn.appendWindowStart=n):(this.fn.appendWindowStart=n,this.fn.appendWindowEnd=Z))}; g.Q.vY=function(){return this.timestampOffset}; g.Q.Wf=function(n){bA?this.timestampOffset=n:this.supports(1)&&(this.fn.timestampOffset=n)}; g.Q.Kn=function(){return bA?this.timestampOffset:this.supports(1)?this.fn.timestampOffset:0}; g.Q.qj=function(n){if(n===void 0?0:n)return this.qR||this.vn()||(this.Lr=this.qj(!1),this.qR=!0),this.Lr;try{return this.fn?this.fn.buffered:this.m9?this.m9.webkitSourceBuffered(this.id):n6([0],[Infinity])}catch(Z){return n6([],[])}}; g.Q.vn=function(){var n;return((n=this.fn)==null?void 0:n.updating)||!1}; g.Q.R6=function(){return this.iQ}; g.Q.gH=function(){return!this.iQ&&this.vn()}; g.Q.Jc=function(){this.iQ=!1}; g.Q.rI=function(n){var Z=n==null?void 0:n.vr;n=n==null?void 0:n.containerType;return!Z&&!n||Z===this.vr&&n===this.containerType}; g.Q.vc=function(){return this.xq}; g.Q.b$=function(){return this.PS}; g.Q.CE=function(n,Z){return this.containerType!==n||this.vr!==Z}; g.Q.Gh=function(n,Z,F){if(this.containerType!==n||F&&this.CE(n,F))this.supports(4),y1()&&this.fn.changeType(Z),F&&(this.vr=F);this.containerType=n}; g.Q.pC=function(n,Z,F){this.containerType&&this.CE(n,Z)&&y1()&&this.fn.changeType(F);this.containerType=n;this.vr=Z}; g.Q.Uu=function(){return this.n6}; g.Q.isView=function(){return!1}; g.Q.supports=function(n){switch(n){case 1:var Z;return((Z=this.fn)==null?void 0:Z.timestampOffset)!==void 0;case 0:var F;return!((F=this.fn)==null||!F.appendBuffer);case 2:var y;return!((y=this.fn)==null||!y.remove);case 3:var l,m;return!!(((l=this.fn)==null?0:l.addEventListener)&&((m=this.fn)==null?0:m.removeEventListener));case 4:return!(!this.fn||!this.fn.changeType);default:return!1}}; g.Q.PG=function(){return!this.vn()}; g.Q.isLocked=function(){return!1}; g.Q.Zx=function(n){n.to=this.Kn();n.up=this.vn();var Z,F=((Z=this.fn)==null?void 0:Z.appendWindowStart)||0,y;Z=((y=this.fn)==null?void 0:y.appendWindowEnd)||Infinity;n.aw=F.toFixed(3)+"-"+Z.toFixed(3);return n}; g.Q.JS=function(){var n;return((n=this.fn)==null?void 0:n.writeHead)||0}; g.Q.i$=function(){for(var n={},Z=0;Z=7&&(!Z||((y=this.mQ)==null?0:y.j("mweb_ios_allow_playback_workaround_when_ready")))&&egi(this,function(){g.A3(function(){S6o(n,n.getCurrentTime(),0)},500)})}return Z}; g.Q.Iu=function(n,Z,F){var y;((y=this.mQ)==null?0:y.eG())&&this.mQ.Xp(n,Z,F===void 0?!1:F)}; g.Q.S7=function(n){this.mQ=n}; g.Q.yq=function(){return Dz(this.WE(),this.getCurrentTime())}; g.Q.seekTo=function(n){this.Ih()>0&&(hF&&Zn<4&&(n=Math.max(.1,n)),this.setCurrentTime(n))}; g.Q.zs=function(n){if(this.Ih()===0||this.hasError())return!1;var Z=this.getCurrentTime()>0;if(n>=0){var F=this.VB();if(F.length||!Z)return SF(F,n)}return Z}; g.Q.yX=function(){if(!this.T&&this.KR)if(this.KR.C)try{var n;this.Iu("rms",{l:"mer",sr:(n=this.mQ)==null?void 0:n.Ef(),rs:B4(this.KR)});this.KR.clear();this.b7(this.KR);this.KR=void 0}catch(Z){n=new g.FV("Error while clearing Media Source in MediaElement: "+Z.name+", "+Z.message),g.ZW(n),this.stopVideo()}else this.stopVideo()}; g.Q.stopVideo=function(){var n=this;if(!this.T){var Z;(Z=this.KR)==null||KOT(Z);if(SCo){if(!this.J){var F=new dZ;F.then(void 0,function(){}); this.J=F;jj7&&this.pause();g.A3(function(){n.J===F&&(H9(n),F.resolve())},200)}}else H9(this)}}; g.Q.fP=function(){var n=this.WE();return eV(n)&&this.getDuration()?NY(n,this.getCurrentTime()):0}; g.Q.PB=function(){var n=this.WE();return eV(n)&&this.getDuration()?n.end(n.length-1):0}; g.Q.Yg=function(){var n=this.getDuration();return n===Infinity?1:n?this.fP()/n:0}; g.Q.Zx=function(){try{var n=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:dr(this.wF(),",",3),vbu:dr(this.WE()),vbs:dr(this.VB()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Ih(),vns:""+this.zH(),vec:""+this.RZ(),vemsg:this.bP(),vvol:""+this.getVolume(),vdom:""+ +this.nH(),vsrc:""+ +!!this.cE(),vw:""+n.width,vh:""+n.height}}catch(Z){return{}}}; g.Q.Mk=function(){return this.RZ()===4}; g.Q.hasError=function(){return this.RZ()>0}; g.Q.tS=function(){switch(this.RZ()){case 2:return"progressive.net.retryexhausted";case 3:var n=this.bP();return(n==null?0:n.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||Nvi&&(n==null?0:n.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.Q.addEventListener=function(n,Z){this.Pr.listen(n,Z,!1,this);this.l1(n)}; g.Q.removeEventListener=function(n,Z){this.Pr.o0(n,Z,!1,this)}; g.Q.dispatchEvent=function(n){if(this.J&&n.type==="pause")return!1;if(UB3){var Z,F=((Z=n.N)==null?void 0:Z.timeStamp)||Infinity;Z=F>performance.now()?F-Date.now()+performance.now():F;F=this.T||this.KR;if((F==null?0:F.R6())||Z<=((F==null?void 0:F.V)||0)){var y;this.Iu("rms",{l:"mede",sr:(y=this.mQ)==null?void 0:y.Ef(),et:n.type});return!1}if(this.oT)return this.Iu("rms",{l:"medes",et:n.type}),F&&n.type==="seeking"&&(F.V=performance.now(),this.oT=!1),!1}return this.Pr.dispatchEvent(n)}; g.Q.gT=function(){this.w5=!1}; g.Q.ej=function(){this.w5=!0;this.Re(!0)}; g.Q.fb=function(){this.w5&&!this.UM()&&this.Re(!0)}; g.Q.equals=function(n){return!!n&&n.w1()===this.w1()}; g.Q.IY=function(){this.Wr&&this.removeEventListener("volumechange",this.fb);SCo&&H9(this);g.I.prototype.IY.call(this)}; var SCo=!1,jj7=!1,UB3=!1,Nvi=!1;g.Q=g.iE.prototype;g.Q.isPaused=function(){return g.b(this,4)}; g.Q.isPlaying=function(){return g.b(this,8)&&!g.b(this,512)&&!g.b(this,64)&&!g.b(this,2)}; g.Q.isOrWillBePlaying=function(){return g.b(this,8)&&!g.b(this,2)&&!g.b(this,1024)}; g.Q.isCued=function(){return g.b(this,64)&&!g.b(this,8)&&!g.b(this,4)}; g.Q.isBuffering=function(){return g.b(this,1)&&!g.b(this,2)}; g.Q.isError=function(){return g.b(this,128)}; g.Q.isSuspended=function(){return g.b(this,512)}; g.Q.CY=function(){return g.b(this,64)&&g.b(this,4)}; g.Q.toString=function(){return"PSt."+this.state.toString(16)}; var Xf={},zY=(Xf.BUFFERING="buffering-mode",Xf.CUED="cued-mode",Xf.ENDED="ended-mode",Xf.PAUSED="paused-mode",Xf.PLAYING="playing-mode",Xf.SEEKING="seeking-mode",Xf.UNSTARTED="unstarted-mode",Xf);g.d(hs,g.I);g.Q=hs.prototype;g.Q.RW=function(){return this.slot}; g.Q.qs=function(){return this.layout}; g.Q.init=function(){var n=o5(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Z=o5(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");fR(this.layout.Nd)&&$M(this.TN.get(),this.layout.layoutId,{O7:Z,rQ:n,listener:this});zmK(this.uY.get(),this);this.hS()}; g.Q.ZU=function(){}; g.Q.release=function(){fR(this.layout.Nd)&&Dq(this.TN.get(),this.layout.layoutId);sB(this.uY.get(),this);this.tC()}; g.Q.X8=function(){}; g.Q.OO=function(){}; g.Q.startRendering=function(n){if(n.layoutId!==this.layout.layoutId){this.Fz.KN(this.slot,n,new JT("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");var Z=!1}else Z=!0;Z&&(this.A2="rendering_start_requested",this.Z6(-1),this.N5(n),this.xn(!1))}; g.Q.m0=function(n,Z){if(Z.layoutId===this.layout.layoutId){this.A2="rendering";this.N=this.tG.get().isMuted()||this.tG.get().getVolume()===0;this.GN("impression");this.GN("start");if(this.tG.get().isMuted()){os(this,"mute");var F;n=((F=Gp(this))==null?void 0:F.muteCommands)||[];pe(this.Cn.get(),n,this.layout.layoutId)}if(this.tG.get().isFullscreen()){this.rB("fullscreen");var y;F=((y=Gp(this))==null?void 0:y.fullscreenCommands)||[];pe(this.Cn.get(),F,this.layout.layoutId)}y=this.tD.get();y.T&&!y.X&& (y.S=!1,y.X=!0,y.actionType!=="ad_to_video"&&(hm("pbs",void 0,y.actionType),g.N5("finalize_all_timelines")&&zoo(y.actionType)));this.Z6(1);this.HD(Z);var l;Z=((l=Gp(this))==null?void 0:l.impressionCommands)||[];pe(this.Cn.get(),Z,this.layout.layoutId)}}; g.Q.f$=function(n,Z,F){this.S={Vp:3,Oa:n==="load_timeout"?402:400,errorMessage:Z.message};this.GN("error");var y;n=((y=Gp(this))==null?void 0:y.errorCommands)||[];pe(this.Cn.get(),n,this.layout.layoutId);this.Fz.KN(this.slot,this.layout,Z,F)}; g.Q.uK=function(){if(this.A2==="rendering"){os(this,"pause");var n,Z=((n=Gp(this))==null?void 0:n.pauseCommands)||[];pe(this.Cn.get(),Z,this.layout.layoutId);this.Z6(2)}}; g.Q.kh=function(){if(this.A2==="rendering"){os(this,"resume");var n,Z=((n=Gp(this))==null?void 0:n.resumeCommands)||[];pe(this.Cn.get(),Z,this.layout.layoutId)}}; g.Q.u3=function(n,Z){Z=Z===void 0?!1:Z;if(this.A2==="rendering"){Ti(this.Ms,n*1E3,Z);this.N||Ti(this.Ms,n*1E3,Z===void 0?!1:Z);var F=this.Vk();F&&(F/=1E3,(n>=F*.25||Z)&&this.GN("first_quartile"),(n>=F*.5||Z)&&this.GN("midpoint"),(n>=F*.75||Z)&&this.GN("third_quartile"),this.U8.get().W.B().experiments.RY("enable_progress_command_flush_on_kabuki")?Ci(this.X,n*1E3,Z):Ci(this.X,n*1E3,YfP(this)?Z:!1))}}; g.Q.ix=function(){var n;return((n=tI(this.nR.get(),1))==null?void 0:n.clientPlaybackNonce)||""}; g.Q.dg=function(n,Z){n.layoutId!==this.layout.layoutId?this.Fz.KN(this.slot,n,new JT("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"):Z()}; g.Q.nJ=function(n,Z,F){if(Z.layoutId===this.layout.layoutId)switch(this.A2="not_rendering",this.layoutExitReason=void 0,(n=F!=="normal"||this.position+1===this.V)&&this.xn(n),this.Cc(F),this.Z6(0),F){case "abandoned":if(Hb(this.Ms,"impression")){var y,l=((y=Gp(this))==null?void 0:y.abandonCommands)||[];pe(this.Cn.get(),l,this.layout.layoutId)}break;case "normal":y=((l=Gp(this))==null?void 0:l.completeCommands)||[];pe(this.Cn.get(),y,this.layout.layoutId);break;case "skipped":var m;y=((m=Gp(this))== null?void 0:m.skipCommands)||[];pe(this.Cn.get(),y,this.layout.layoutId)}}; g.Q.By=function(){return this.layout.layoutId}; g.Q.T3=function(){return this.S}; g.Q.DA=function(){if(this.A2==="rendering"){this.Ms.GN("active_view_measurable");var n,Z=((n=Gp(this))==null?void 0:n.activeViewMeasurableCommands)||[];pe(this.Cn.get(),Z,this.layout.layoutId)}}; g.Q.Bp=function(){if(this.A2==="rendering"){this.Ms.GN("active_view_fully_viewable_audible_half_duration");var n,Z=((n=Gp(this))==null?void 0:n.activeViewFullyViewableAudibleHalfDurationCommands)||[];pe(this.Cn.get(),Z,this.layout.layoutId)}}; g.Q.qf=function(){if(this.A2==="rendering"){this.Ms.GN("active_view_viewable");var n,Z=((n=Gp(this))==null?void 0:n.activeViewViewableCommands)||[];pe(this.Cn.get(),Z,this.layout.layoutId)}}; g.Q.x3=function(){if(this.A2==="rendering"){this.Ms.GN("audio_audible");var n,Z=((n=Gp(this))==null?void 0:n.activeViewAudioAudibleCommands)||[];pe(this.Cn.get(),Z,this.layout.layoutId)}}; g.Q.vp=function(){if(this.A2==="rendering"){this.Ms.GN("audio_measurable");var n,Z=((n=Gp(this))==null?void 0:n.activeViewAudioMeasurableCommands)||[];pe(this.Cn.get(),Z,this.layout.layoutId)}}; g.Q.xn=function(n){this.tD.get().xn(o5(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,n,this.position,this.V,!1)}; g.Q.onFullscreenToggled=function(n){if(this.A2==="rendering")if(n){this.rB("fullscreen");var Z,F=((Z=Gp(this))==null?void 0:Z.fullscreenCommands)||[];pe(this.Cn.get(),F,this.layout.layoutId)}else this.rB("end_fullscreen"),Z=((F=Gp(this))==null?void 0:F.endFullscreenCommands)||[],pe(this.Cn.get(),Z,this.layout.layoutId)}; g.Q.onVolumeChange=function(){if(this.A2==="rendering")if(this.tG.get().isMuted()){os(this,"mute");var n,Z=((n=Gp(this))==null?void 0:n.muteCommands)||[];pe(this.Cn.get(),Z,this.layout.layoutId)}else os(this,"unmute"),n=((Z=Gp(this))==null?void 0:Z.unmuteCommands)||[],pe(this.Cn.get(),n,this.layout.layoutId)}; g.Q.dB=function(){}; g.Q.j0=function(){}; g.Q.o6=function(){}; g.Q.Wn=function(){}; g.Q.uL=function(){}; g.Q.rB=function(n){this.Ms.rB(n,!this.N)}; g.Q.GN=function(n){this.Ms.GN(n,!this.N)};g.d(kC,hs);g.Q=kC.prototype;g.Q.hS=function(){}; g.Q.tC=function(){var n=this.uY.get();n.rg===this&&(n.rg=null);this.timer.stop()}; g.Q.X8=function(){this.timer.stop();hs.prototype.uK.call(this)}; g.Q.OO=function(){rEY(this);hs.prototype.kh.call(this)}; g.Q.Vk=function(){return o5(this.qs().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.Q.IZ=function(n,Z){var F=this;this.dg(n,function(){F.A2!=="rendering_stop_requested"&&(F.A2="rendering_stop_requested",F.layoutExitReason=Z,bYK(F,Z),F.timer.stop())})}; g.Q.jO=function(){var n=Date.now(),Z=n-this.Ia;this.Ia=n;this.Y6+=Z;this.Y6>=this.Vk()?(this.Y6=this.Vk(),this.u3(this.Y6/1E3,!0),VL(this,this.Y6),this.Py()):(this.u3(this.Y6/1E3),VL(this,this.Y6))}; g.Q.LP=function(n){if(this.A2!=="not_rendering"){n=YC8(this,n);var Z=this.tG.get().getPresentingPlayerType()===2;this.A2==="rendering_start_requested"?Z&&bu(n)&&this.o5():Z?g.On(n,2)?wU("Receive player ended event during MediaBreak",this.RW(),this.qs()):K2o(this,n):this.UK()}}; g.Q.N5=function(){tde(this);P6Y(this.tG.get());this.uY.get().rg=this;uO("pbp")||uO("pbs")||hm("pbp");uO("pbp","watch")||uO("pbs","watch")||hm("pbp",void 0,"watch");this.o5()}; g.Q.HD=function(n){this.tD.get();var Z=o5(n.clientMetadata,"metadata_type_ad_placement_config").kind,F=this.position===0;n=o5(n.clientMetadata,"metadata_type_linked_in_player_layout_type");n={adBreakType:ev(Z),adType:gS8(n)};var y=void 0;F?Z!=="AD_PLACEMENT_KIND_START"&&(y="video_to_ad"):y="ad_to_ad";fZ("ad_mbs",void 0,y);g.HS(n,y);rEY(this)}; g.Q.UK=function(){this.Py()}; g.Q.Cc=function(){}; g.Q.kc=function(){};g.d(VR,hs);g.Q=VR.prototype;g.Q.UK=function(){this.Py()}; g.Q.LP=function(n){this.Tt(n)}; g.Q.hS=function(){o5(this.qs().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=o5(this.qs().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.Q.tC=function(){o5(this.qs().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.pF&&this.ES.get().removeCueRange(this.pF);this.pF=void 0;var n;(n=this.jd)==null||n.dispose();this.UX&&this.UX.dispose()}; g.Q.N5=function(n){var Z=O4(this.U8.get()),F=cD(this.U8.get());if(Z&&F){F=o5(n.clientMetadata,"metadata_type_preload_player_vars");var y=this.U8.get();y=g.jf(y.W.B().experiments,"html5_preload_wait_time_secs");F&&this.UX&&this.UX.start(y*1E3)}F=o5(n.clientMetadata,"metadata_type_ad_video_id");y=o5(n.clientMetadata,"metadata_type_legacy_info_card_vast_extension");F&&y&&this.tX.get().W.B().jT.add(F,{ER:y});(F=o5(n.clientMetadata,"metadata_type_sodar_extension_data"))&&U0T(this.OG.get(),F);d58(this.tG.get(), !1);tde(this);Z?(F=this.gM.get(),n=o5(n.clientMetadata,"metadata_type_player_vars"),F.W.loadVideoByPlayerVars(n,!1,2)):qK8(this.gM.get(),o5(n.clientMetadata,"metadata_type_player_vars"));var l;(l=this.jd)==null||l.start();Z||this.gM.get().W.playVideo(2)}; g.Q.HD=function(){var n;(n=this.jd)==null||n.stop();this.b6();(this.adCpn=Yci(this))||wU("Media layout confirmed started, but ad CPN not set.");this.M1.get().wj("onAdStart",this.adCpn);this.BN=Date.now()}; g.Q.Vk=function(){var n;return(n=tI(this.nR.get(),2))==null?void 0:n.Ca}; g.Q.vJ=function(){this.Ms.rB("clickthrough")}; g.Q.IZ=function(n,Z){var F=this;this.dg(n,function(){if(F.A2!=="rendering_stop_requested"){F.A2="rendering_stop_requested";F.layoutExitReason=Z;bYK(F,Z);var y;(y=F.jd)==null||y.stop();F.UX&&F.UX.stop();d58(F.tG.get(),!0);var l;((l=F.shrunkenPlayerBytesConfig)==null?0:l.shouldRequestShrunkenPlayerBytes)&&F.tG.get().qN(!1)}})}; g.Q.onCueRangeEnter=function(n){n!==this.pF?wU("Received CueRangeEnter signal for unknown layout.",this.RW(),this.qs(),{cueRangeId:n}):(this.ES.get().removeCueRange(this.pF),this.pF=void 0,n=o5(this.qs().clientMetadata,"metadata_type_video_length_seconds"),this.u3(n,!0),this.GN("complete"))}; g.Q.Cc=function(n){n!=="abandoned"&&this.M1.get().wj("onAdComplete");this.M1.get().wj("onAdEnd",this.adCpn)}; g.Q.b6=function(){this.pF="adcompletioncuerange:"+this.qs().layoutId;this.ES.get().addCueRange(this.pF,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}; g.Q.onCueRangeExit=function(){}; g.Q.kc=function(n){this.A2==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&n>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.tG.get().qN(!0),this.u3(n))}; g.Q.u3=function(n,Z){hs.prototype.u3.call(this,n,Z===void 0?!1:Z);Z=Date.now()-this.BN;var F=n*1E3,y={contentCpn:this.ix(),adCpn:Yci(this)};if(n-this.sY>=5){var l=Z0&&R4(this.N(),Z)}; g.Q.CF=function(n){this.S.delete(n.slotId);for(var Z=[],F=g.Y(this.uN.values()),y=F.next();!y.done;y=F.next()){y=y.value;var l=y.trigger;l instanceof F7&&l.triggeringSlotId===n.slotId&&Z.push(y)}Z.length>0&&R4(this.N(),Z)}; g.Q.Wj=function(n){for(var Z=[],F=g.Y(this.uN.values()),y=F.next();!y.done;y=F.next()){y=y.value;var l=y.trigger;l instanceof CWP&&l.slotType===n.slotType&&l.N!==n.slotId&&Z.push(y)}Z.length>0&&R4(this.N(),Z)}; g.Q.sG=function(n){this.T.add(n.slotId);for(var Z=[],F=g.Y(this.uN.values()),y=F.next();!y.done;y=F.next())y=y.value,y.trigger instanceof nz&&n.slotId===y.trigger.triggeringSlotId&&Z.push(y);Z.length>0&&R4(this.N(),Z)}; g.Q.jV=function(n){this.T.delete(n.slotId);this.V.add(n.slotId);for(var Z=[],F=g.Y(this.uN.values()),y=F.next();!y.done;y=F.next())if(y=y.value,y.trigger instanceof lB)n.slotId===y.trigger.triggeringSlotId&&Z.push(y);else if(y.trigger instanceof ul){var l=y.trigger;n.slotId===l.slotId&&this.X.has(l.triggeringLayoutId)&&Z.push(y)}Z.length>0&&R4(this.N(),Z)}; g.Q.tB=function(n){for(var Z=[],F=g.Y(this.uN.values()),y=F.next();!y.done;y=F.next())y=y.value,y.trigger instanceof jE&&n.slotId===y.trigger.triggeringSlotId&&Z.push(y);Z.length>0&&R4(this.N(),Z)}; g.Q.jz=function(n){for(var Z=[],F=g.Y(this.uN.values()),y=F.next();!y.done;y=F.next())y=y.value,y.trigger instanceof Tk&&n.slotId===y.trigger.triggeringSlotId&&Z.push(y);Z.length>0&&R4(this.N(),Z)}; g.Q.FX=function(n,Z){this.C.add(Z.layoutId)}; g.Q.Nb=function(n,Z){this.C.delete(Z.layoutId)}; g.Q.m0=function(n,Z){this.X.add(Z.layoutId);for(var F=[],y=g.Y(this.uN.values()),l=y.next();!l.done;l=y.next())if(l=l.value,l.trigger instanceof Sp)Z.layoutId===l.trigger.triggeringLayoutId&&F.push(l);else if(l.trigger instanceof rg){var m=l.trigger;n.slotType===m.slotType&&Z.layoutType===m.layoutType&&Z.layoutId!==m.N&&F.push(l)}else l.trigger instanceof ul&&(m=l.trigger,Z.layoutId===m.triggeringLayoutId&&this.V.has(m.slotId)&&F.push(l));F.length>0&&R4(this.N(),F)}; g.Q.nJ=function(n,Z,F){this.X.delete(Z.layoutId);n=[];for(var y=g.Y(this.uN.values()),l=y.next();!l.done;l=y.next())if(l=l.value,l.trigger instanceof vQ&&Z.layoutId===l.trigger.triggeringLayoutId&&n.push(l),l.trigger instanceof jp){var m=l.trigger;Z.layoutId===m.triggeringLayoutId&&m.N.includes(F)&&n.push(l)}n.length>0&&R4(this.N(),n)}; g.Q.nN=function(){}; g.Q.OV=function(){this.V.clear()}; g.Q.YR=function(){};g.d(ad,g.I);ad.prototype.Jw=function(n,Z,F,y){if(this.uN.has(Z.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(Z instanceof ir))throw new C("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in CloseRequestedTriggerAdapter");this.uN.set(Z.triggerId,new aL(n,Z,F,y))}; ad.prototype.KK=function(n){this.uN.delete(n.triggerId)};g.d(KZ,g.I);KZ.prototype.Jw=function(n,Z,F,y){if(this.uN.has(Z.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(Z instanceof xK||Z instanceof ZX))throw new C("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.uN.set(Z.triggerId,new aL(n,Z,F,y))}; KZ.prototype.KK=function(n){this.uN.delete(n.triggerId)}; KZ.prototype.OV=function(n){for(var Z=[],F=Z.push,y=F.apply,l=[],m=g.Y(this.uN.values()),a=m.next();!a.done;a=m.next())a=a.value,a.trigger instanceof xK&&a.trigger.MQ===n&&l.push(a);y.call(F,Z,g.t(l));F=Z.push;y=F.apply;l=[];m=g.Y(this.uN.values());for(a=m.next();!a.done;a=m.next())a=a.value,a.trigger instanceof ZX&&a.trigger.N!==n&&l.push(a);y.call(F,Z,g.t(l));Z.length&&R4(this.N(),Z)}; KZ.prototype.YR=function(n){for(var Z=[],F=Z.push,y=F.apply,l=[],m=g.Y(this.uN.values()),a=m.next();!a.done;a=m.next()){a=a.value;var D=a.trigger;D instanceof ZX&&D.N===n&&l.push(a)}y.call(F,Z,g.t(l));Z.length&&R4(this.N(),Z)};g.d(DQ,g.I);g.Q=DQ.prototype;g.Q.Jw=function(n,Z,F,y){if(this.uN.has(Z.triggerId))throw new C("Tried to register duplicate trigger for slot.");var l="adtriggercuerange:"+Z.triggerId;if(Z instanceof K3)R28(this,n,Z,F,y,l,Z.N.start,Z.N.end,Z.MQ,Z.visible);else if(Z instanceof ur)R28(this,n,Z,F,y,l,0x7ffffffffffff,0x8000000000000,Z.MQ,Z.visible);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in CueRangeTriggerAdapter");}; g.Q.KK=function(n){var Z=this.uN.get(n.triggerId);Z&&this.ES.get().removeCueRange(Z.cueRangeId);this.uN.delete(n.triggerId)}; g.Q.onCueRangeEnter=function(n){if(n=zGT(this,n))if(n=this.uN.get(n))if(g.b(KR(this.tG.get()),32))this.N.add(n.cueRangeId);else{var Z=n==null?void 0:n.Wv.trigger;(Z instanceof K3||Z instanceof ur)&&R4(this.X(),[n.Wv])}}; g.Q.onCueRangeExit=function(n){(n=zGT(this,n))&&(n=this.uN.get(n))&&this.N.delete(n.cueRangeId)}; g.Q.LP=function(n){if(XG(n,16)<0){n=g.Y(this.N);for(var Z=n.next();!Z.done;Z=n.next())this.onCueRangeEnter(Z.value,!0);this.N.clear()}}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.m0=function(){}; g.Q.nJ=function(){}; g.Q.nN=function(){}; g.Q.kc=function(){}; g.Q.onFullscreenToggled=function(){}; g.Q.dB=function(){}; g.Q.j0=function(){}; g.Q.o6=function(){}; g.Q.onVolumeChange=function(){}; g.Q.Wn=function(){}; g.Q.uL=function(){};g.d(XU,g.I); XU.prototype.Jw=function(n,Z,F,y){if(this.X.has(Z.triggerId)||this.T.has(Z.triggerId))throw new C("Tried to re-register the trigger.");n=new aL(n,Z,F,y);if(n.trigger instanceof XS)this.X.set(n.trigger.triggerId,n);else if(n.trigger instanceof m2)this.T.set(n.trigger.triggerId,n);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+n.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.X.has(n.trigger.triggerId)&&n.slot.slotId===this.N&&R4(this.V(),[n])}; XU.prototype.KK=function(n){this.X.delete(n.triggerId);this.T.delete(n.triggerId)}; XU.prototype.Sb=function(n){n=n.slotId;if(this.N!==n){var Z=[];this.N!=null&&Z.push.apply(Z,g.t(Bjo(this.T,this.N)));n!=null&&Z.push.apply(Z,g.t(Bjo(this.X,n)));this.N=n;Z.length&&R4(this.V(),Z)}};g.d(pZ,g.I);g.Q=pZ.prototype;g.Q.Jw=function(n,Z,F,y){if(this.uN.has(Z.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(Z instanceof RC))throw new C("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.uN.set(Z.triggerId,new aL(n,Z,F,y))}; g.Q.KK=function(n){this.uN.delete(n.triggerId)}; g.Q.m0=function(){}; g.Q.nJ=function(){}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){};g.d(LZ,g.I);g.Q=LZ.prototype;g.Q.nN=function(n,Z){for(var F=[],y=g.Y(this.uN.values()),l=y.next();!l.done;l=y.next()){l=l.value;var m=l.trigger;m.opportunityType===n&&(m.associatedSlotId&&m.associatedSlotId!==Z||F.push(l))}F.length&&R4(this.N(),F)}; g.Q.Jw=function(n,Z,F,y){if(this.uN.has(Z.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(Z instanceof Hvi))throw new C("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in OpportunityEventTriggerAdapter");this.uN.set(Z.triggerId,new aL(n,Z,F,y))}; g.Q.KK=function(n){this.uN.delete(n.triggerId)}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.m0=function(){}; g.Q.nJ=function(){};g.d(od,g.I);g.Q=od.prototype;g.Q.Jw=function(n,Z,F,y){n=new aL(n,Z,F,y);if(Z instanceof BC||Z instanceof t0||Z instanceof zg||Z instanceof kK||Z instanceof lfU){if(this.uN.has(Z.triggerId))throw new C("Tried to register duplicate trigger for slot.");this.uN.set(Z.triggerId,n)}else throw new C("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in PrefetchTriggerAdapter");}; g.Q.KK=function(n){this.uN.delete(n.triggerId)}; g.Q.fN=function(n){var Z=n.slotFulfillmentTriggers.find(function(F){return F instanceof BC}); Z&&(e9(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Z.breakDurationMs,new Set([n.slotId]),!0),QA(this.uY.get(),"ads_css","sid."+n.slotId+";bd."+Z.breakDurationMs))}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.m0=function(){}; g.Q.nJ=function(){}; g.Q.nN=function(){}; g.Q.UN=function(n){var Z=this;if(!this.N)return QA(this.uY.get(),"ads_nfi","a.pta;cid."+n.identifier),!1;this.X&&this.X.stop();this.S&&g.J3(this.S);var F=IO8(this,n);if(!F){var y=KLT(this),l=this.J!==void 0&&Date.now()<=this.J+1E4;QA(this.uY.get(),"ads_ncfs","cid."+n.identifier+";cd."+n.iy.toFixed(3)+";ccs."+l+";cfa."+this.V+";bdc."+y.length+";"+y.slice(0,6).map(function(m){return";bd."+m}).join("")); return l?(YJ3(this.Em,this.N,n),!0):!1}(y=o5(F.slot.clientMetadata,"metadata_type_triggering_cue_point"))?y.current=n:wU("Expected triggering cue point ref to be available",F.slot);(new g.e7(function(){var m=F.trigger,a=F.slot;e9(Z,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",m.breakDurationMs,new Set,!0);e9(Z,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",m.breakDurationMs,new Set,!1);for(var D=0,p=g.Y(Z.uN.values()),L=p.next();!L.done;L=p.next()){L=L.value;var q= L.trigger;L.slot.slotId===a.slotId&&(Z.uN.delete(q.triggerId),D++)}QA(Z.uY.get(),"ads_csf","sid."+a.slotId+";bd."+m.breakDurationMs+";dt."+D)},10)).start(); return!0}; g.Q.Ra=function(){}; g.Q.OV=function(n){var Z=this;this.V=!1;this.J=Date.now();if(this.N&&this.N.contentCpn!==n)wU("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:n,fetchInstructionsCpn:this.N.contentCpn}),l1(this);else{this.T=new g.e7(function(){if(Z.V)delete Z.T;else{var y=Z.tG.get().getGetAdBreakContext(),l;if(Number(y==null?void 0:(l=y.livePlaybackPosition)==null?void 0:l.utcTimeMillis)>0)delete Z.T,pZ8(Z);else{var m;(m=Z.T)==null||m.start()}}},200); var F;(F=this.T)==null||F.start()}}; g.Q.YR=function(n){this.N&&this.N.contentCpn!==n&&wU("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:n,fetchInstructionsCpn:this.N.contentCpn},!0);l1(this)}; g.Q.Dg=function(n){var Z=this;if(this.N)wU("Unexpected multiple fetch instructions for the current content");else{this.N=n;n=yNo(n);this.X=new g.e7(function(){pZ8(Z)},n?n:6E5); this.X.start();this.S=new g.e7(function(){Z.N&&(Z.X&&(Z.X.stop(),Z.X.start()),Di7(Z,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},CM7(this.N)); n=this.tG.get().getCurrentTimeSec(1,!1);for(var F=g.Y(this.Je.get().kU),y=F.next();!y.done;y=F.next())y=y.value,QA(this.uY.get(),"nocache","ct."+Date.now()+";cmt."+n+";d."+y.iy.toFixed(3)+";tw."+(y.startSecs-n)+";cid."+y.identifier+";")}}; g.Q.IY=function(){g.I.prototype.IY.call(this);l1(this)};g.d(q9,g.I);g.Q=q9.prototype;g.Q.Jw=function(n,Z,F,y){if(this.uN.has(Z.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(Z instanceof br))throw new C("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.uN.set(Z.triggerId,new aL(n,Z,F,y));n=this.N.has(Z.triggeringLayoutId)?this.N.get(Z.triggeringLayoutId):new Set;n.add(Z);this.N.set(Z.triggeringLayoutId,n)}; g.Q.KK=function(n){this.uN.delete(n.triggerId);if(!(n instanceof br))throw new C("Incorrect TriggerType: Tried to unregister trigger of type "+n.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var Z=this.X.get(n.triggerId);Z&&(Z.dispose(),this.X.delete(n.triggerId));if(Z=this.N.get(n.triggeringLayoutId))Z.delete(n),Z.size===0&&this.N.delete(n.triggeringLayoutId)}; g.Q.fN=function(){}; g.Q.CF=function(){}; g.Q.Wj=function(){}; g.Q.sG=function(){}; g.Q.jV=function(){}; g.Q.tB=function(){}; g.Q.jz=function(){}; g.Q.FX=function(){}; g.Q.Nb=function(){}; g.Q.nN=function(){}; g.Q.m0=function(n,Z){var F=this;if(this.N.has(Z.layoutId)){n=this.N.get(Z.layoutId);n=g.Y(n);var y=n.next();for(Z={};!y.done;Z={GS:void 0},y=n.next())Z.GS=y.value,y=new g.e7(function(l){return function(){var m=F.uN.get(l.GS.triggerId);R4(F.T(),[m])}}(Z),Z.GS.durationMs),y.start(),this.X.set(Z.GS.triggerId,y)}}; g.Q.nJ=function(){};g.d(T6,g.I);T6.prototype.Jw=function(n,Z){if(this.uN.has(Z.triggerId))throw new C("Tried to register duplicate trigger for slot.");throw new C("Incorrect TriggerType: Tried to register trigger of type "+Z.triggerType+" in VideoTransitionTriggerAdapter.");}; T6.prototype.KK=function(n){this.uN.delete(n.triggerId)};NA.prototype.O9=function(n){return n.kind==="AD_PLACEMENT_KIND_START"};g.d(KE,g.I);KE.prototype.logEvent=function(n){this.N(n)}; KE.prototype.N=function(n,Z,F,y,l,m,a,D,p,L,q,w){var T=this;w=w===void 0?0:w;E4(this.U8.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+n,"slot:",l,"layout:",m,"ping:",a,"Opportunity:",{opportunityType:Z,associatedSlotId:F,zBR:y,owg:D,adSlotLoggingData:p,adLayoutLoggingData:L});try{var P=function(){if(!T.U8.get().W.B().j("html5_disable_client_tmp_logs")&&n!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){n||wU("Empty PACF event type",l,m);var J=Uon(T.X.get()),U={eventType:n,eventOrder:++T.eventCount}, h={};l&&(h.slotData=f8(J,l));m&&(h.layoutData=REP(J,m));a&&(h.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:a.N.serializedAdPingMetadata,pingIndex:a.index});D&&(h.triggerData=IR(D.trigger,D.category));Z&&(h.opportunityData=zq8(J,Z,F,y));J={organicPlaybackContext:{contentCpn:tI(T.nR.get(),1).clientPlaybackNonce}};J.organicPlaybackContext.isLivePlayback=tI(T.nR.get(),1).t2;var v;J.organicPlaybackContext.isMdxPlayback=(v=tI(T.nR.get(),1))==null?void 0: v.isMdxPlayback;var V;if((V=tI(T.nR.get(),1))==null?0:V.daiEnabled)J.organicPlaybackContext.isDaiContent=!0;var f;if(v=(f=tI(T.nR.get(),2))==null?void 0:f.clientPlaybackNonce)J.adVideoPlaybackContext={adVideoCpn:v};J&&(h.externalContext=J);U.adClientData=h;p&&(U.serializedSlotAdServingData=p.serializedSlotAdServingDataEntry);L&&(U.serializedAdServingData=L.serializedAdServingDataEntry);q&&(U.errorInfo=q);g.xt("adsClientStateChange",{adsClientEvent:U})}}; w&&w>0?g.HX(g.pF(),function(){return P()},w):P()}catch(J){E4(this.U8.get(),"html5_log_pacf_logging_errors")&&g.HX(g.pF(),function(){wU(J instanceof Error?J:String(J),l,m,{pacf_message:"exception during pacf logging"})})}};g.d(Dl,KE);Dl.prototype.N=function(n,Z,F,y,l,m,a,D,p,L,q){var w=this.U8.get();g.f4(w.W.B())?(w=this.U8.get(),w=g.jf(w.W.B().experiments,"H5_async_logging_delay_ms")):w=void 0;KE.prototype.N.call(this,n,Z,F,y,l,m,a,D,p,L,q,w)};hO.prototype.clear=function(){this.N.clear()};ZR.prototype.state=function(){return this.N==="fulfilled"?{state:"fulfilled",value:this.result}:this.N==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; ZR.prototype.V=function(n){Sr(n)||YY(n)?Dv(VX(n),this.V.bind(this),this.reject.bind(this)):(this.N="fulfilled",this.result=n,xij(this))}; ZR.prototype.reject=function(n){this.N="rejected";this.error=n;xij(this)}; var YY=J$(function(n){return GCU(n)?n instanceof ZR:!1});var Uu=window.JL8||"en";V5.prototype.GP=function(n){this.client=n}; V5.prototype.N=function(){this.clear();this.csn=g.f_()}; V5.prototype.clear=function(){this.T.clear();this.X.clear();this.V.clear();this.csn=null};Y9.prototype.GP=function(n){g.gU(g_().GP).bind(g_())(n)}; Y9.prototype.clear=function(){g.gU(g_().clear).bind(g_())()};g.Q=IT.prototype;g.Q.GP=function(n){this.client=n}; g.Q.Ah=function(n,Z){var F=this;Z=Z===void 0?{}:Z;g.gU(function(){var y,l,m,a=((y=g.e(n==null?void 0:n.commandMetadata,g.Ys))==null?void 0:y.rootVe)||((l=g.e(n==null?void 0:n.commandMetadata,kqj))==null?void 0:(m=l.screenVisualElement)==null?void 0:m.uiType);if(a){y=g.e(n==null?void 0:n.commandMetadata,pTI);if(y==null?0:y.parentTrackingParams){var D=g.fE(y.parentTrackingParams);if(y.parentCsn)var p=y.parentCsn}else Z.clickedVisualElement?D=Z.clickedVisualElement:n.clickTrackingParams&&(D=g.fE(n.clickTrackingParams)); a:{y=g.e(n,g.v_);l=g.e(n,mnI);if(y){if(l=KP8(y,"VIDEO")){y={token:l,videoId:y.videoId};break a}}else if(l&&(y=KP8(l,"PLAYLIST"))){y={token:y,playlistId:l.playlistId};break a}y=void 0}Z=Object.assign({},{cttAuthInfo:y,parentCsn:p},Z);if(g.N5("expectation_logging")){var L;Z.loggingExpectations=((L=g.e(n==null?void 0:n.commandMetadata,kqj))==null?void 0:L.loggingExpectations)||void 0}Xy(F,a,D,Z)}else g.yi(new g.FV("Error: Trying to create a new screen without a rootVeType",n))})()}; g.Q.clickCommand=function(n,Z,F){n=n.clickTrackingParams;F=F===void 0?0:F;n?(F=g.f_(F===void 0?0:F))?(iT7(this.client,F,g.fE(n),Z),Z=!0):Z=!1:Z=!1;return Z}; g.Q.stateChanged=function(n,Z,F){this.visualElementStateChanged(g.fE(n),Z,F===void 0?0:F)}; g.Q.visualElementStateChanged=function(n,Z,F){F=F===void 0?0:F;F===0&&this.X.has(F)?this.L.push([n,Z]):c3p(this,n,Z,F)};Ot.prototype.fetch=function(n,Z,F){var y=this,l=lD7(n,Z,F);return new Promise(function(m,a){function D(){if(F==null?0:F.Zp)try{var L=y.handleResponse(n,l.status,l.response,F);m(L)}catch(q){a(q)}else m(y.handleResponse(n,l.status,l.response,F))} l.onerror=D;l.onload=D;var p;l.send((p=Z.body)!=null?p:null)})}; Ot.prototype.handleResponse=function(n,Z,F,y){F=F.replace(")]}'","");try{var l=JSON.parse(F)}catch(m){g.yi(new g.FV("JSON parsing failed after XHR fetch",n,Z,F));if((y==null?0:y.Zp)&&F)throw new g.Is(1,"JSON parsing failed after XHR fetch");l={}}Z!==200&&(g.yi(new g.FV("XHR API fetch failed",n,Z,F)),l=Object.assign({},l,{errorMetadata:{status:Z}}));return l};KT.getInstance=function(){var n=g.Di("ytglobal.storage_");n||(n=new KT,g.pv("ytglobal.storage_",n));return n}; KT.prototype.estimate=function(){var n,Z,F;return g.A(function(y){n=navigator;return((Z=n.storage)==null?0:Z.estimate)?y.return(n.storage.estimate()):((F=n.webkitTemporaryStorage)==null?0:F.queryUsageAndQuota)?y.return(gVp()):y.return()})}; g.pv("ytglobal.storageClass_",KT);Wk.prototype.iL=function(n){this.handleError(n)}; Wk.prototype.logEvent=function(n,Z){switch(n){case "IDB_DATA_CORRUPTED":g.N5("idb_data_corrupted_killswitch")||this.N("idbDataCorrupted",Z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.N("idbUnexpectedlyClosed",Z);break;case "IS_SUPPORTED_COMPLETED":g.N5("idb_is_supported_completed_killswitch")||this.N("idbIsSupportedCompleted",Z);break;case "QUOTA_EXCEEDED":I7U(this,Z);break;case "TRANSACTION_ENDED":this.T&&Math.random()<=.1&&this.N("idbTransactionEnded",Z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":n= Object.assign({},Z,{hasWindowUnloaded:this.X}),this.N("idbTransactionAborted",n)}};var tz={},dCf=g.gS("yt-player-local-media",{CU:(tz.index={gZ:2},tz.media={gZ:2},tz.captions={gZ:5},tz),shared:!1,upgrade:function(n,Z){Z(2)&&(g.Rz(n,"index"),g.Rz(n,"media"));Z(5)&&g.Rz(n,"captions");Z(6)&&(A$(n,"metadata"),A$(n,"playerdata"))}, version:5});var NUh={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},ks;a:{var ec=g.PT();ec=ec.toLowerCase();if(g.oo(ec,"android")){var hdz=ec.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(hdz){var EmO=parseFloat(hdz[1]);if(EmO<100){ks=EmO;break a}}var OhU=ec.match("("+Object.keys(NUh).join("|")+")");ks=OhU?NUh[OhU[0]]:0}else ks=void 0}var bi=ks,rZ=bi>=0;var kEP={clientName:"UNKNOWN_INTERFACE",clientVersion:"unknown",clientTheme:"UNKNOWN_THEME",clientLanguage:"en",clientLocation:"US",clientLabel:"",cssPrefix:"",hasDisplay:!0,webpSupport:!1,forcedExperiments:"",requestVideoQuality:"",forceAdsUrl:"",forceHomeAdsUrl:"",internalExperimentFlags:[],oAuthClientProfiles:{},payments:{url:"https://payments.youtube.com"},xsrfToken:"",creditsUrl:"",startTime:0,authConfig:{accessTokenDiscountedExpirationMinutes:5,accessTokenServerExpirationMinutes:5,backgroundRefreshMinRemainingTokenTimeSec:0, defaultPlayerAccessTokenExpirationMs:-1,accountManagerTokenRefreshRetryDelayMs:0,accountManagerTokenRefreshMaxDelayMs:0,enableBackgroundTokenRefresh:!1,enableBackgroundTokenRefreshOauthCallback:!1,enableAuthenticationFailClosed:!1,enableAccountManagerAccountPropagation:!1,supexSignOutDisabled:!1,enableSwitchAccountsButton:!1,enableTectonicPlayerOauthCallback:!1,enableOAuthCredShare:!1},settings:{defaultValues:new Map([["AUTONAV",!0],["AUTONAV_KIDS",!1],["ENABLE_SOUND",!0],["ENABLE_PREVIEWS_WITH_SOUND", !0],["MDX_AUTOPLAY_ENABLED",!0],["SAFETY_MODE",!1],["HOME_ENABLE_PERSONAL_RESULTS",!0],["PRE_APP_USER_SETTING_FOR_LIVING_ROOM",!0]])}};var ZdK=bO(function(){var n,Z;return(Z=(n=window).matchMedia)==null?void 0:Z.call(n,"(prefers-reduced-motion: reduce)").matches});var Rs;g.ic=new mC;Rs=0;var gT=NPU()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.yd?!0:!1;var AI={td:function(n){n[K[36]]()}, W8:function(n,Z){var F=n[0];n[0]=n[Z%n[K[20]]];n[Z%n[K[20]]]=F}, LV:function(n,Z){n[K[61]](0,Z)}};var $Ye={bh4:"adunit",ZKr:"detailpage",Q6Q:"editpage",m$Q:"embedded",K6p:"leanback",hri:"previewpage",xK4:"profilepage",xo:"unplugged",ZDu:"playlistoverview",QE8:"sponsorshipsoffer",hPg:"shortspage",yag:"handlesclaiming",Aai:"immersivelivepage",ywQ:"creatormusic",Ynu:"immersivelivepreviewpage",X7Q:"admintoolyurt",LqY:"shortsaudiopivot",ad4:"consumption",AFr:"background_audio_playback"};var vz7=2592E3;var HI,cgI,v8;HI={};g.qm=(HI.STOP_EVENT_PROPAGATION="html5-stop-propagation",HI.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",HI.IV_DRAWER_OPEN="ytp-iv-drawer-open",HI.MAIN_VIDEO="html5-main-video",HI.VIDEO_CONTAINER="html5-video-container",HI.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",HI.HOUSE_BRAND="house-brand",HI);cgI={};v8=(cgI.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",cgI.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",cgI);var QPY={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Qk3={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},Ape={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"},IcP={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var W0i={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.yD[K[26]][K[5]]=function(n,Z){this[K[31]][n]!==Z&&(this[K[31]][n]=Z,this[K[13]]=K[12])}; g.yD[K[26]][K[22]]=function(n){NW(61,this);return this[K[31]][n]||null}; g.yD[K[26]][K[37]]=function(){this[K[13]]||(this[K[13]]=$d(32,this));return this[K[13]]}; g.yD[K[26]][K[24]]=function(){var n=new g.yD(this[K[15]],this[K[16]]);n[K[40]]=this[K[40]];n[K[9]]=this[K[9]];n[K[7]]=this[K[7]];n[K[31]]=g.nO(this[K[31]]);n[K[13]]=this[K[13]];return n}; var p58=[MjT];g.$$.prototype.getLanguageInfo=function(){return this.J2}; g.$$.prototype.getXtags=function(){if(!this.xtags){var n=this.id.split(";");n.length>1&&(this.xtags=n[1])}return this.xtags}; g.$$.prototype.toString=function(){return this.J2.name}; g.$$.prototype.getLanguageInfo=g.$$.prototype.getLanguageInfo;vL.prototype.equals=function(n){return this.X===n.X&&this.N===n.N&&this.T===n.T&&this.reason===n.reason&&(!y3||this.Qg===n.Qg)}; vL.prototype.isLocked=function(){return this.T&&!!this.X&&this.X===this.N}; vL.prototype.compose=function(n){if(n.T&&jW(n))return IK;if(n.T||jW(this))return n;if(this.T||jW(n))return this;var Z=this.X&&n.X?Math.max(this.X,n.X):this.X||n.X,F=this.N&&n.N?Math.min(this.N,n.N):this.N||n.N;Z=Math.min(Z,F);var y=0;y3&&(y=this.Qg!==0&&n.Qg!==0?Math.min(this.Qg,n.Qg):this.Qg===0?n.Qg:this.Qg);return y3&&Z===this.X&&F===this.N&&y===this.Qg||!y3&&Z===this.X&&F===this.N?this:y3?new vL(Z,F,!1,F===this.N&&y===this.Qg?this.reason:n.reason,y):new vL(Z,F,!1,F===this.N?this.reason:n.reason)}; vL.prototype.V=function(n){return!n.video||y3&&this.Qg!==0&&this.Qg=0}; g.Q.Ri=function(){var n=this.segments[this.segments.length-1];return n?n.endTime:NaN}; g.Q.LJ=function(){return this.segments[0].startTime}; g.Q.Se=function(){return this.segments.length}; g.Q.M$=function(){return 0}; g.Q.Um=function(n){return(n=this.Ac(n))?n.O8:-1}; g.Q.j$=function(n){return(n=this.HH(n))?n.sourceURL:""}; g.Q.getStartTime=function(n){return(n=this.HH(n))?n.startTime:0}; g.Q.CS=function(n){return this.getStartTime(n)+this.getDuration(n)}; g.Q.kx=hA(1);g.Q.isLoaded=function(){return this.segments.length>0}; g.Q.HH=function(n){if(this.N&&this.N.O8===n)return this.N;n=g.Ad(this.segments,new ts(n,0,0,0,""),function(Z,F){return Z.O8-F.O8}); return this.N=n>=0?this.segments[n]:null}; g.Q.Ac=function(n){if(this.N&&this.N.startTime<=n&&n=0?this.segments[n]:this.segments[Math.max(0,-n-2)]}; g.Q.append=function(n){if(n.length)if(n=g.rU(n),this.segments.length){var Z=this.segments.length?g.lj(this.segments).endTime:0,F=n[0].O8-this.pJ();F>1&&CXp(this.segments);for(F=F>0?0:-F+1;Fn.O8&&this.index.RA()<=n.O8+1}; g.Q.update=function(n,Z,F){this.index.append(n);E7f(this.index,F);n=this.index;n.X=Z;n.T="update"}; g.Q.Pm=function(){return this.Qk()?!0:Fd.prototype.Pm.call(this)}; g.Q.iD=function(n,Z){var F=this.index.j$(n),y=this.index.getStartTime(n),l=this.index.getDuration(n),m;Z?l=m=0:m=this.info.Qg>0?this.info.Qg*l:1E3;return new HM([new fM(3,this,void 0,"liveCreateRequestInfoForSegment",n,y,l,0,m,!Z)],F)}; g.Q.cY=function(){return this.Qk()?0:this.initRange.length}; g.Q.MH=function(){return!1};Op.prototype.update=function(n){var Z=void 0;this.X&&(Z=this.X);var F=new Op,y=Array.from(n.getElementsByTagName("S"));if(y.length){var l=+ZK(n,"timescale")||1,m=(+y[0].getAttribute("t")||0)/l,a=+ZK(n,"startNumber")||0;F.V=m;var D=Z?Z.startSecs+Z.iy:0,p=Date.parse(pff(ZK(n,"yt:segmentIngestTime")))/1E3;F.S=n.parentElement.tagName==="SegmentTemplate";F.S&&(F.J=ZK(n,"media"));n=Z?a-Z.O8:1;F.C=n>0?0:-n+1;n=g.Y(y);for(y=n.next();!y.done;y=n.next()){y=y.value;for(var L=+y.getAttribute("d")/l,q=(+y.getAttribute("yt:sid")|| 0)/l,w=+y.getAttribute("r")||0,T=0;T<=w;T++)if(Z&&a<=Z.O8)a++;else{var P=new uUn(a,D,L,p+q,m);F.N.push(P);var J=y;var U=l,h=P.startSecs;P=J.getAttribute("yt:cuepointTimeOffset");var v=J.getAttribute("yt:cuepointDuration");if(P&&v){P=Number(P);h=-P/U+h;U=Number(v)/U;v=J.getAttribute("yt:cuepointContext")||null;var V=J.getAttribute("yt:cuepointIdentifier")||"";J=J.getAttribute("yt:cuepointEvent")||"";J=new Y8(h,U,v,V,vmg[J]||"unknown",P)}else J=null;J&&F.T.push(J);a++;D+=L;m+=L;p+=L+q}}F.N.length&& (F.X=g.lj(F.N))}this.C=F.C;this.X=F.X||this.X;g.Y$(this.N,F.N);g.Y$(this.T,F.T);this.S=F.S;this.J=F.J;this.V===-1&&(this.V=F.getStreamTimeOffset())}; Op.prototype.getStreamTimeOffset=function(){return this.V===-1?0:this.V};g.d(yR,g.c_);g.Q=yR.prototype;g.Q.Xb=function(){return this.IH}; g.Q.Am=function(n,Z){n=al(this,n);return n>=0&&(Z||!this.segments[n].pending)}; g.Q.RA=function(){return this.KO?this.segments.length?this.Ac(this.LJ()).O8:-1:g.c_.prototype.RA.call(this)}; g.Q.LJ=function(){if(this.z7)return 0;if(!this.KO)return g.c_.prototype.LJ.call(this);if(!this.segments.length)return 0;var n=Math.max(g.lj(this.segments).endTime-this.GB,0);return this.Nt>0&&this.Ac(n).O80)return this.vW/1E3;if(!this.segments.length)return g.c_.prototype.Ri.call(this);var n=this.pJ();if(!this.KO||n<=this.segments[this.segments.length-1].O8)n=this.segments[this.segments.length-1];else{var Z=this.segments[this.segments.length-1];n=new ts(n,Math.max(0,Z.startTime-(Z.O8-n)*this.IH),this.IH,0,"sq/"+n,void 0,void 0,!0)}return this.z7?Math.min(this.GB,n.endTime):n.endTime}; g.Q.Se=function(){return this.KO?this.segments.length?this.pJ()-this.RA()+1:0:g.c_.prototype.Se.call(this)}; g.Q.pJ=function(){var n=Math.min(this.DE,Math.max(g.c_.prototype.pJ.call(this),this.oE)),Z=this.GB*1E3;Z=this.vW>0&&this.vW0&&this.oE>0&&!Z&&(Z=this.Ac(this.GB))&&(n=Math.min(Z.O8-1,n));return n}; g.Q.Bc=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.Q.TV=function(n){var Z=al(this,n.O8);if(Z>=0)this.segments[Z]=n;else if(this.segments.splice(-(Z+1),0,n),this.b4&&n.O8%(300/this.IH)===0){var F=this.segments[0].O8,y=Math.floor(this.b4/this.IH);n=n.O8-y;Z=-(Z+1)-y;Z>0&&n>F&&(this.segments=this.segments.slice(Z))}}; g.Q.Rp=function(){return this.oE}; g.Q.ZY=function(n){return Fb3?!this.X&&n>=0&&this.pJ()<=n:g.c_.prototype.ZY.call(this,n)}; g.Q.Ac=function(n){if(!this.KO)return g.c_.prototype.Ac.call(this,n);if(!this.segments.length)return null;var Z=this.segments[this.segments.length-1];if(n=Z.endTime)Z=Z.O8+Math.floor((n-Z.endTime)/this.IH+1);else{Z=Be(this.segments,function(y){return n=y.endTime?1:0}); if(Z>=0)return this.segments[Z];var F=-(Z+1);Z=this.segments[F-1];F=this.segments[F];Z=Math.floor((n-Z.endTime)/((F.startTime-Z.endTime)/(F.O8-Z.O8-1))+1)+Z.O8}return this.HH(Z)}; g.Q.HH=function(n){if(!this.KO)return g.c_.prototype.HH.call(this,n);if(!this.segments.length)return null;var Z=al(this,n);if(Z>=0)return this.segments[Z];var F=-(Z+1);Z=this.IH;if(F===0)var y=Math.max(0,this.segments[0].startTime-(this.segments[0].O8-n)*Z);else F===this.segments.length?(y=this.segments[this.segments.length-1],y=y.endTime+(n-y.O8-1)*Z):(y=this.segments[F-1],Z=this.segments[F],Z=(Z.startTime-y.endTime)/(Z.O8-y.O8-1),y=y.endTime+(n-y.O8-1)*Z);return new ts(n,y,Z,0,"sq/"+n,void 0,void 0, !0)}; var Fb3=!1;g.d(ls,FN);g.Q=ls.prototype;g.Q.Bh=function(){return!0}; g.Q.Pm=function(){return!0}; g.Q.bD=function(n){return this.SN()&&n.X&&!n.T||!n.bY.index.ZY(n.O8)}; g.Q.Ap=function(){}; g.Q.NO=function(n,Z){return typeof n!=="number"||isFinite(n)?FN.prototype.NO.call(this,n,Z===void 0?!1:Z):new HM([new fM(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.H7,void 0,this.H7*this.info.Qg)],"")}; g.Q.iD=function(n,Z){var F=F===void 0?!1:F;if(this.index.Am(n))return FN.prototype.iD.call(this,n,Z);var y=this.index.getStartTime(n),l=Math.round(this.H7*this.info.Qg),m=this.H7;Z&&(m=l=0);return new HM([new fM(F?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",n,y,m,void 0,l,!Z)],n>=0?"sq/"+n:"")};g.d(Hf,Fd);g.Q=Hf.prototype;g.Q.Dn=function(){return!1}; g.Q.SN=function(){return!1}; g.Q.Bh=function(){return!1}; g.Q.Ap=function(){return new HM([new fM(1,this,void 0,"otfInit")],this.S)}; g.Q.Ib=function(){return null}; g.Q.iM=function(n){this.bD(n);return u1K(this,eJ(n),!1)}; g.Q.NO=function(n,Z){Z=Z===void 0?!1:Z;n=this.index.Um(n);Z&&(n=Math.min(this.index.pJ(),n+1));return u1K(this,n,!0)}; g.Q.NW=function(n){n.info.type===1&&(this.N||(this.N=eU(n.X)),n.N&&n.N.uri==="http://youtube.com/streaming/otf/durations/112015"&&SAi(this,n.N))}; g.Q.bD=function(n){return n.X===0?!0:this.index.pJ()>n.O8&&this.index.RA()<=n.O8+1}; g.Q.cY=function(){return 0}; g.Q.MH=function(){return!1};var AFT=new Map,xIT=new Map,WfY=new function(){var n=this;this.N=new Map;this.vx={G4Q:function(){return n.N}}};g.Q=g.yG.prototype;g.Q.Am=function(n){return n<=this.pJ()}; g.Q.M$=function(n){return this.offsets[n]}; g.Q.getStartTime=function(n){return this.startTicks[n]/this.N}; g.Q.CS=function(n){return this.getStartTime(n)+this.getDuration(n)}; g.Q.kx=hA(0);g.Q.Xh=function(){return NaN}; g.Q.getDuration=function(n){n=this.xP(n);return n>=0?n/this.N:-1}; g.Q.xP=function(n){return n+1=0}; g.Q.Ri=function(){return this.X?this.startTicks[this.count]/this.N:NaN}; g.Q.LJ=function(){return 0}; g.Q.Se=function(){return this.count}; g.Q.j$=function(){return""}; g.Q.Um=function(n){n=g.Ad(this.startTicks.subarray(0,this.count),n*this.N);return n>=0?n:Math.max(0,-n-2)}; g.Q.isLoaded=function(){return this.pJ()>=0}; g.Q.Fr=function(n,Z){if(n>=this.pJ())return 0;var F=0;for(Z=this.getStartTime(n)+Z;nthis.getStartTime(n);n++)F=Math.max(F,D7n(this,n)/this.getDuration(n));return F}; g.Q.resize=function(n){n+=2;var Z=this.offsets;this.offsets=new Float64Array(n+1);var F=this.startTicks;this.startTicks=new Float64Array(n+1);for(n=0;n0&&n&&(F=F.range.end+1,n=Math.min(n,this.info.contentLength-F),n>0&&y.push(new fM(4,this,Ic(F,n),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z)));return new HM(y)}; g.Q.NW=function(n){if(n.info.type===1){if(this.N)return;this.N=eU(n.X)}else if(n.info.type===2){if(this.S||this.index.pJ()>=0)return;if(g.W2(this.info)){var Z=this.index,F=g.sj(n);n=n.info.range.start;var y=g.ef(F,0,1936286840);F=Jlf(y);Z.N=F.timescale;var l=F.Ok;Z.offsets[0]=F.Fl+n+y.size;Z.startTicks[0]=l;Z.X=!0;n=F.tv.length;for(y=0;y0&&n===m[0].zb)for(n=0;n=Z+F)break}l.length||(n=new g.FV("b189619593",""+n,""+Z,""+F),g.ZW(n));return new HM(l)}; g.Q.s$=function(n){for(var Z=this.vK(n.info),F=n.info.range.start+n.info.N,y=[],l=0;l=this.index.M$(F+1);)F++;return this.m8(F,Z,n.X).D4}; g.Q.bD=function(n){n.tF();return this.Pm()?!0:n.range.end+1this.info.contentLength&&(Z=new MN(Z.start,this.info.contentLength-1)),new HM([new fM(4,n.bY,Z,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,n.clipId)]);n.type===4&&(n=this.vK(n),n=n[n.length-1]);var F=0,y=n.range.start+n.N+n.X;n.type===3&&(n.tF(),F=n.O8,y===n.range.end+1&&(F+=1));return this.m8(F,y,Z)}; g.Q.iM=function(){return null}; g.Q.NO=function(n,Z){Z=Z===void 0?!1:Z;n=this.index.Um(n);Z&&(n=Math.min(this.index.pJ(),n+1));return this.m8(n,this.index.M$(n),0,void 0)}; g.Q.Dn=function(){return!0}; g.Q.SN=function(){return!0}; g.Q.Bh=function(){return!1}; g.Q.cY=function(){return this.indexRange.length+this.initRange.length}; g.Q.MH=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var BI={},t4j=(BI.COLOR_PRIMARIES_BT709="bt709",BI.COLOR_PRIMARIES_BT2020="bt2020",BI.COLOR_PRIMARIES_UNKNOWN=null,BI.COLOR_PRIMARIES_UNSPECIFIED=null,BI),MM={},VBe=(MM.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",MM.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",MM.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",MM.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",MM.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,MM.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,MM);g.ZV.prototype.getName=function(){return this.name}; g.ZV.prototype.getId=function(){return this.id}; g.ZV.prototype.getIsDefault=function(){return this.isDefault}; g.ZV.prototype.toString=function(){return this.name}; g.ZV.prototype.getName=g.ZV.prototype.getName;g.ZV.prototype.getId=g.ZV.prototype.getId;g.ZV.prototype.getIsDefault=g.ZV.prototype.getIsDefault;var Dqf=/action_display_post/;var mAY,Uc,Nj;g.d(ab,g.Xu);g.Q=ab.prototype;g.Q.isLoading=function(){return this.state===1}; g.Q.xM=function(){return this.state===3}; g.Q.PHg=function(n){var Z=n.getElementsByTagName("Representation");if(n.getElementsByTagName("SegmentList").length>0||n.getElementsByTagName("SegmentTemplate").length>0){this.t2=this.X=!0;this.J||(this.J=new kyo);XfY(this.J,n);this.publish("refresh");for(n=0;n=0?q=O9(T):w=w+"?range="+T}p.call(D,new ts(L.O8,L.startSecs,L.iy,L.N,w,q,L.X))}y=l}F.update(y,this.isLive,this.aY)}ZVP(this.J);return!0}this.duration=C83(ZK(n,"mediaPresentationDuration"));a:{for(n= 0;n0))return this.xA()-n}}n=this.N;for(var Z in n){var F=n[Z].index;if(F.isLoaded()&&!PM(n[Z].info.mimeType))return F.LJ()}return 0}; g.Q.getStreamTimeOffset=function(){return this.L}; g.Q.Xh=function(n){for(var Z in this.N){var F=this.N[Z].index;if(F.isLoaded()){var y=F.Um(n),l=F.Xh(y);if(l)return l+n-F.getStartTime(y)}}return NaN}; var WV=null,Izc,ra=!((Izc=navigator.mediaCapabilities)==null||!Izc.decodingInfo),mqU={commentary:1,alternate:2,dub:3,main:4};var Oi=new Set,e1=new Map;nP.prototype.clone=function(n){return new nP(this.flavor,n,this.X,this.experiments)}; nP.prototype.Zx=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; nP.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 fzv={},oZp=(fzv.playready=["com.youtube.playready","com.microsoft.playready"],fzv.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],fzv),$0={},xh3=($0.widevine="DRM_SYSTEM_WIDEVINE",$0.fairplay="DRM_SYSTEM_FAIRPLAY",$0.playready="DRM_SYSTEM_PLAYREADY",$0),nS={},Agv=(nS.widevine=1,nS.fairplay=2,nS.playready=3,nS);var Kb;g.d(mo,g.I); mo.prototype.initialize=function(n,Z){for(var F=this,y=g.Y(Object.keys(n)),l=y.next();!l.done;l=y.next()){l=g.Y(n[l.value]);for(var m=l.next();!m.done;m=l.next())if(m=m.value,m.by)for(var a=g.Y(Object.keys(m.by)),D=a.next();!D.done;D=a.next()){var p=D.value;D=p;p=oZp[p];!p&&this.j("html5_enable_vp9_fairplay")&&D==="fairplay"&&(p=["com.youtube.fairplay.sbdl"]);if(p){p=g.Y(p);for(var L=p.next();!L.done;L=p.next())L=L.value,this.T[L]=this.T[L]||new nP(D,L,m.by[D],this.iY.experiments),this.N[D]=this.N[D]|| {},this.N[D][m.mimeType]=!0}}}sm()&&(this.T["com.youtube.fairplay"]=new nP("fairplay","com.youtube.fairplay","",this.iY.experiments),this.j("html5_enable_vp9_fairplay")||(this.N.fairplay=this.N.fairplay||{},this.N.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.N.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.X=Pqp(Z,this.useCobaltWidevine,this.j("html5_enable_safari_fairplay")&&!0,this.j("html5_enable_vp9_fairplay")).filter(function(q){return!!F.T[q]})}; mo.prototype.j=function(n){return this.iY.experiments.RY(n)};var W1g={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var Z9Y={RED:"red",kW4:"white"};iN7.prototype.Wx=function(n){if(n.bv!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return H0P(this,n)}; iN7.prototype.RY=function(n){return this.flags.get(""+n)==="true"};gX.prototype.OS=function(){return this.T}; gX.prototype.YI=function(){return this.X}; gX.prototype.RY=function(n){n=this.Wx(n);JSON.stringify(n);return n==="true"}; gX.prototype.Wx=function(n){return this.flags[n]};var OaQ=Promise.resolve(),T98=window.queueMicrotask?window.queueMicrotask.bind(window):c03;eW.prototype.canPlayType=function(n,Z){n=n.canPlayType?n.canPlayType(Z):!1;Zq?n=n||rgh[Z]:bi===2.2?n=n||xG7[Z]:QM()&&(n=n||Gcv[Z]);return!!n}; eW.prototype.isTypeSupported=function(n){return this.Pr?window.cast.receiver.platform.canDisplayType(n):ZN(n)}; var xG7={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Gcv={"application/x-mpegURL":"maybe"},rgh={"application/x-mpegURL":"maybe"};g.d(z9,g.Xu);z9.prototype.add=function(n,Z){if(!this.items[n]&&(Z.ER||Z.I5||Z.sI)){var F=this.items,y=Z;Object.isFrozen&&!Object.isFrozen(Z)&&(y=Object.create(Z),Object.freeze(y));F[n]=y;this.publish("vast_info_card_add",n)}}; z9.prototype.remove=function(n){var Z=this.get(n);delete this.items[n];return Z}; z9.prototype.get=function(n){return this.items[n]||null}; z9.prototype.isEmpty=function(){return g.Zc(this.items)};SW.prototype.encrypt=function(n){this.N.exports.AES128CTRCipher_encrypt(this.cipher,n.byteOffset,n.byteLength);return n}; SW.prototype.CR=function(){return this.cipher===0}; SW.prototype.dispose=function(){this.N.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};BL.prototype.PW=function(n,Z){Z=Z===void 0?1:Z;this.uV+=Z;this.X+=n;n/=Z;for(var F=0;F0)y+="."+Le[l].toFixed(0)+"_"+F.N[l].toFixed(0);else break;F=y}F&&(n[Z]=F)}this.N=new $Gi;return n}; g.Q.toString=function(){return""};g.Q=wKe.prototype;g.Q.isActive=function(){return!1}; g.Q.Ts=function(){}; g.Q.Pq=function(){}; g.Q.Yj=function(){}; g.Q.Eg=function(n,Z){Z()}; g.Q.gr=function(){return{}}; g.Q.toString=function(){return""};var Rdc=new wKe,gmm=!!+Hu("html5_enable_profiler"),ihv=!!+Hu("html5_onesie_enable_profiler"),ZA=gmm||ihv?new nmp:Rdc,mgp=gmm?ZA:Rdc,xS=ihv?ZA:Rdc;O9e.prototype.emscripten_notify_memory_growth=function(){};g.Q=Tm.prototype;g.Q.malloc=function(n){return this.exports.malloc(n)}; g.Q.free=function(n){this.exports.free(n)}; g.Q.realloc=function(n,Z){return this.exports.realloc(n,Z)}; g.Q.f5=function(n){if(n.buffer!==this.exports.memory.buffer){var Z=this.malloc(n.byteLength);Z=new Uint8Array(this.exports.memory.buffer,Z,n.byteLength);Z.set(n);return Z}}; g.Q.UT=function(n){if(n.buffer===this.exports.memory.buffer){var Z=n.slice();this.free(n.byteOffset);return Z}}; var VM7=new function(){this.N="WebAssembly"in window},Wbj="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); xS.Ts(Tm,{f5:function(n){return{profile:"copyj2w",uV:n===void 0?0:Math.ceil(n.byteLength/16)}}, UT:function(n){return{profile:"copyw2j",uV:n===void 0?0:Math.ceil(n.byteLength/16)}}});ae.prototype.encrypt=function(n,Z){try{return this.N.UT(igQ(this,n,Z))}catch(F){g.yi(Error("ocwce: wasm encrypt failed: "+F))}}; ae.prototype.CR=function(){return this.T}; ae.prototype.dispose=function(){this.CR()||(g.xA(this.X),this.N.free(this.V.byteOffset),this.T=!0)};g.d(Xk3,g.I);g.d(zSU,g.I);g.d(sJp,g.I);var nce="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Y1o={yFr:"caoe",GcY:"capsv",PL5:"cbrand",N8r:"cbr",T8p:"cbrver",oMp:"cchip",keY:"ccappver",OKR:"ccrv",jzr:"cfrmver",F7s:"c",NZG:"cver",PTY:"ctheme",mpg:"cplayer",N68:"cmodel",uB:"cnetwork",rTg:"cos",OS_VERSION:"cosver",fwg:"cplatform",OBu:"crqyear"};g.d(ma,g.I);g.Q=ma.prototype;g.Q.j=function(n){return this.experiments.RY(n)}; g.Q.OS=function(){return this.experiments.OS()}; g.Q.YI=function(){return this.experiments.YI()}; g.Q.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.Q.getVideoUrl=function(n,Z,F,y,l,m,a){Z={list:Z};F&&(l?Z.time_continue=F:Z.t=F);F=a?"music.youtube.com":g.bc(this);l=F==="www.youtube.com";!m&&y&&l?m="https://youtu.be/"+n:g.Uo(this)?(m="https://"+F+"/fire",Z.v=n):(m&&l?(m=this.protocol+"://"+F+"/shorts/"+n,y&&(Z.feature="share")):(m=this.protocol+"://"+F+"/watch",Z.v=n),Zq&&(n=eJp())&&(Z.ebc=n));return g.pQ(m,Z)}; g.Q.getVideoEmbedCode=function(n,Z,F,y){Z="https://"+g.bc(this)+"/embed/"+Z;y&&(Z=g.pQ(Z,{list:y}));y=F.width;F=F.height;Z=uS(Z);n=uS(n!=null?n:"YouTube video player");return'')}; g.Q.supportsGaplessAudio=function(){return g.z$&&!Zq&&YU()>=74||g.kr&&g.SG(68)?!0:!1}; g.Q.supportsGaplessShorts=function(){return!this.j("html5_enable_short_gapless")||this.aY||g.x5?!1:!0}; g.Q.getPlayerType=function(){return this.N.cplayer}; g.Q.eG=function(){return this.GU}; var qzp=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],mii=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],kYe=[19];var Fs={},ISU=(Fs["140"]={numChannels:2},Fs["141"]={numChannels:2},Fs["251"]={audioSampleRate:48E3,numChannels:2},Fs["774"]={audioSampleRate:48E3,numChannels:2},Fs["380"]={numChannels:6},Fs["328"]={numChannels:6},Fs["773"]={},Fs),yK={},dmp=(yK["1"]='video/mp4; codecs="av01.0.08M.08"',yK["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',yK["1e"]='video/mp4; codecs="av01.0.08M.08"',yK["9"]='video/webm; codecs="vp9"',yK["("]='video/webm; codecs="vp9"',yK["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', yK.h='video/mp4; codecs="avc1.64001e"',yK.H='video/mp4; codecs="avc1.64001e"',yK.o='audio/webm; codecs="opus"',yK.a='audio/mp4; codecs="mp4a.40.2"',yK.ah='audio/mp4; codecs="mp4a.40.2"',yK.mac3='audio/mp4; codecs="ac-3"; channels=6',yK.meac3='audio/mp4; codecs="ec-3"; channels=6',yK.i='audio/mp4; codecs="iamf.001.001.Opus"',yK),ld={},B$7=(ld["337"]={width:3840,height:2160,bitrate:3E7,fps:30},ld["336"]={width:2560,height:1440,bitrate:15E6,fps:30},ld["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, ld["702"]={width:7680,height:4320,bitrate:4E7,fps:60},ld["701"]={width:3840,height:2160,bitrate:2E7,fps:60},ld["700"]={width:2560,height:1440,bitrate:1E7,fps:60},ld["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},ld["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},ld["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},ld["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, ld["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},ld["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},ld["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},ld["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},ld["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},ld["315"]={width:3840,height:2160,bitrate:2E7,fps:60},ld["308"]={width:2560, height:1440,bitrate:1E7,fps:60},ld["303"]={width:1920,height:1080,bitrate:5E6,fps:60},ld["302"]={width:1280,height:720,bitrate:25E5,fps:60},ld["299"]={width:1920,height:1080,bitrate:75E5,fps:60},ld["298"]={width:1280,height:720,bitrate:35E5,fps:60},ld["571"]={width:7680,height:4320,bitrate:3E7,fps:60},ld["401"]={width:3840,height:2160,bitrate:15E6,fps:60},ld["400"]={width:2560,height:1440,bitrate:75E5,fps:60},ld["399"]={width:1920,height:1080,bitrate:2E6,fps:60},ld["398"]={width:1280,height:720,bitrate:1E6, fps:60},ld["397"]={width:854,height:480,bitrate:4E5,fps:30},ld["396"]={width:640,height:360,bitrate:25E4,fps:30},ld["787"]={width:1080,height:608,bitrate:2E5,fps:30},ld["788"]={width:1080,height:608,bitrate:4E5,fps:30},ld["572"]={width:7680,height:4320,bitrate:3E7,fps:60},ld["555"]={width:3840,height:2160,bitrate:15E6,fps:60},ld["554"]={width:2560,height:1440,bitrate:75E5,fps:60},ld["553"]={width:1920,height:1080,bitrate:2E6,fps:60},ld["552"]={width:1280,height:720,bitrate:1E6,fps:60},ld["551"]={width:854, height:480,bitrate:4E5,fps:30},ld["550"]={width:640,height:360,bitrate:25E4,fps:30},ld["313"]={width:3840,height:2160,bitrate:8E6,fps:30},ld["271"]={width:2560,height:1440,bitrate:4E6,fps:30},ld["248"]={width:1920,height:1080,bitrate:2E6,fps:30},ld["247"]={width:1280,height:720,bitrate:15E5,fps:30},ld["244"]={width:854,height:480,bitrate:52E4,fps:30},ld["243"]={width:640,height:360,bitrate:28E4,fps:30},ld["137"]={width:1920,height:1080,bitrate:4E6,fps:30},ld["136"]={width:1280,height:720,bitrate:3E6, fps:30},ld["135"]={width:854,height:480,bitrate:1E6,fps:30},ld["385"]={width:1920,height:1080,bitrate:6503313,fps:60},ld["376"]={width:1280,height:720,bitrate:5706960,fps:60},ld["384"]={width:1280,height:720,bitrate:3660979,fps:60},ld["225"]={width:1280,height:720,bitrate:5805E3,fps:30},ld["224"]={width:1280,height:720,bitrate:453E4,fps:30},ld["145"]={width:1280,height:720,bitrate:2682052,fps:30},ld);g.Q=iZ.prototype;g.Q.getInfo=function(){return this.N}; g.Q.U1=function(){return null}; g.Q.Bk=function(){var n=this.U1();return n?(n=g.EG(n.Er),Number(n.expire)):NaN}; g.Q.G1=function(){}; g.Q.getHeight=function(){return this.N.video.height};L4T.prototype.build=function(){MvY(this);var n=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],Z={};a:if(this.N)var F=this.N;else{F="";for(var y=g.Y(this.T),l=y.next();!l.done;l=y.next())if(l=l.value,l.J2){if(l.J2.getIsDefault()){F=l.J2.getId();break a}F||(F=l.J2.getId())}}y=g.Y(this.T);for(l=y.next();!l.done;l=y.next())if(l=l.value,this.C||!l.J2||l.J2.getId()===F)Z[l.itag]||(Z[l.itag]=[]),Z[l.itag].push(l);F=g.Y(this.X);for(y=F.next();!y.done;y=F.next())if(y=y.value,l=Z[y.N]){l=g.Y(l);for(var m=l.next();!m.done;m= l.next()){var a=n,D=a.push;m=m.value;var p="#EXT-X-MEDIA:TYPE=AUDIO,",L="YES",q="audio";if(m.J2){q=m.J2;var w=q.getId().split(".")[0];w&&(p+='LANGUAGE="'+w+'",');(this.N?this.N===q.getId():q.getIsDefault())||(L="NO");q=q.getName()}w="";y!==null&&(w=y.itag.toString());w=qn(this,m.url,w);p=p+('NAME="'+q+'",DEFAULT='+(L+',AUTOSELECT=YES,GROUP-ID="'))+(yvY(m,y)+'",URI="'+(w+'"'));D.call(a,p)}}F=g.Y(this.S);for(y=F.next();!y.done;y=F.next())y=y.value,l=CO7,y=(a=y.J2)?'#EXT-X-MEDIA:URI="'+qn(this,y.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+l+'",LANGUAGE="'+a.getId()+'",NAME="'+a.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,y&&n.push(y);F=this.S.length>0?CO7:void 0;y=g.Y(this.X);for(l=y.next();!l.done;l=y.next())l=l.value,D=Z[l.N],a=void 0,((a=D)==null?void 0:a.length)>0&&(a=l,D=D[0],D="#EXT-X-STREAM-INF:BANDWIDTH="+(a.bitrate+D.bitrate)+',CODECS="'+(a.codecs+","+D.codecs+'",RESOLUTION=')+(a.width+"x"+a.height+',AUDIO="')+(yvY(D,a)+'",')+(F?'SUBTITLES="'+F+'",':"")+"CLOSED-CAPTIONS=NONE",a.fps>1&&(D+= ",FRAME-RATE="+a.fps),a.gf&&(D+=",VIDEO-RANGE="+a.gf),n.push(D),n.push(qn(this,l.url,"")));return n.join("\n")}; var CO7="text";g.d(BA,iZ);BA.prototype.Bk=function(){return this.expiration}; BA.prototype.U1=function(){if(!this.Er||this.Er.CR()){var n=this.X.build();n="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(n);this.Er=new aA(n)}return this.Er};g.d(NU,iZ);NU.prototype.U1=function(){return new aA(this.X.Uw())}; NU.prototype.G1=function(){this.X=Ox(54,this.X)};g.d(jo,iZ);jo.prototype.U1=function(){return new aA(this.X)};var sJ={},FFn=(sJ.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",sJ.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",sJ.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",sJ.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",sJ);g.Q=g.kG.prototype;g.Q.getId=function(){return this.id}; g.Q.getName=function(){return this.name}; g.Q.isServable=function(){return this.N}; g.Q.Uw=function(){return this.url}; g.Q.getXtags=function(){return this.xtags}; g.Q.toString=function(){return this.languageCode+": "+g.qi(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.Q.equals=function(n){return n?this.toString()===n.toString():!1}; g.Q.uy=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var W5i={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},rZp={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},xfY=/^(\d*)_((\d*)_?(\d*))$/;var GIf={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},uLU={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var mj={},rWY=(mj.ALWAYS=1,mj.BY_REQUEST=3,mj.UNKNOWN=void 0,mj),aU={},Iw7=(aU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",aU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",aU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",aU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",aU);var CCj; CCj=function(n){for(var Z=Object.keys(n),F={},y=0;yy-Z?-1:n}; g.Q.ww=function(){return this.X.pJ()}; g.Q.v$=function(){return this.X.RA()}; g.Q.jA=function(n){this.X=n};g.d(b6,mN);b6.prototype.X=function(n,Z){return mN.prototype.X.call(this,"$N|"+n,Z)}; b6.prototype.S=function(n,Z,F){return new J$o(n,Z,F,this.isLive)};g.d(g.O8,g.Xu);g.Q=g.O8.prototype; g.Q.setData=function(n){var Z=this;n=n||{};var F=n.errordetail;F!=null&&(this.errorDetail=F);var y=n.errorcode;y!=null?this.errorCode=y:n.status==="fail"&&(this.errorCode="auth");var l=n.reason;l!=null&&(this.errorReason=l);var m=n.subreason;m!=null&&(this.pO=m);this.clientPlaybackNonce||(this.clientPlaybackNonce=n.cpn||(this.iY.eG()?"r"+g.qO(15):g.qO(16)));this.Pf=C6(this.iY.Pf,n.livemonitor);EC7(this,n);var a=n.raw_player_response;if(a)this.Dt=a;else{var D=n.player_response;D&&(a=JSON.parse(D))}a&& (this.playerResponse=a);if(this.playerResponse){var p=this.playerResponse.annotations;p&&xDT(this,p);var L=this.playerResponse.attestation;L&&a9K(this,L);var q=this.playerResponse.cotn;q&&(this.cotn=q);var w=this.playerResponse.heartbeatParams;w&&ZNo(this,w);var T=this.playerResponse.messages;T&&kIQ(this,T);var P=this.playerResponse.overlay;P&&wXj(this,P);var J=this.playerResponse.playabilityStatus;if(J){E93(this,J);var U=J.errorScreen;U&&bPY(this,U)}var h=this.playerResponse.playbackTracking;h&& iff(this,h,n);var v=this.playerResponse.playerCueRanges;v&&v.length>0&&(this.cueRanges=v);var V=this.playerResponse.playerCueRangeSet;V&&g.fc(this,V);var f=Smj(this.playerResponse.adPlacements);h&&h.promotedPlaybackTracking&&f&&g.yi(new g.FV("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(f||JL8(this.playerResponse.adSlots))this.gi=!0;var W=this.playerResponse.playerAds;W&&waY(this,W,n);var X=this.playerResponse.playerConfig;X&&qfY(this,X);var u=this.playerResponse.streamingData; u&&eVo(this,u,X||null);var Fp=this.playerResponse.trackingParams;Fp&&(this.Ns=Fp);var nQ=this.playerResponse.videoDetails;if(nQ){kHK(this,nQ,n);fwe(this,nQ,X||null,n);var $U=nQ.isPrivate;$U!==void 0&&(this.isPrivate=C6(this.isPrivate,$U))}J&&gZK(this,J,nQ||null);var mY=this.playerResponse.interstitialPods;mY&&GPj(this,mY);this.ra&&this.eventId&&(this.ra=Fr(this.ra,{ei:this.eventId}));var LQ=this.playerResponse.captions;LQ&&LQ.playerCaptionsTracklistRenderer&&dfU(this,LQ.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.hH=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&udT(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Zi;this.compositeLiveIngestionOffsetToken=(Zi=this.playerResponse.playbackTracking)==null?void 0:Zi.compositeLiveIngestionOffsetToken; var Qe;this.compositeLiveStatusToken=(Qe=this.playerResponse.playbackTracking)==null?void 0:Qe.compositeLiveStatusToken;this.j("html5_fill_default_mosaic_audio_track_id")&&vD(this)&&(this.iY.xi=Rhj(this));var eo,av,lO=(eo=this.playerResponse.playerConfig)==null?void 0:(av=eo.granularVariableSpeedConfig)==null?void 0:av.minimumPlaybackRate,kU,WT,$t=(kU=this.playerResponse.playerConfig)==null?void 0:(WT=kU.granularVariableSpeedConfig)==null?void 0:WT.maximumPlaybackRate;lO&&$t&&(this.P_=lO/100,this.d0= $t/100);this.j("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(Zp){var OQ;((OQ=g.e(Zp,Rs7))==null?void 0:OQ.signal)==="INIT_ATT_SERVICE"&&(Z.o2=!0)})}Wf(this,n); OgU(this,n);n.queue_info&&(this.queueInfo=n.queue_info);var fh=n.hlsdvr;fh!=null&&(this.allowLiveDvr=Number(fh)===1?ZM()?!0:nc&&Zn<5?!1:!0:!1);this.adQueryId=n.ad_query_id||null;this.eI||(this.eI=n.encoded_ad_safety_reason||null);this.s5=C6(this.s5,n.infringe||n.muted);this.EJ=n.authkey;this.PO=n.authuser;this.mutedAutoplay=C6(this.mutedAutoplay,n&&n.playmuted);this.mutedAutoplayDurationMode=bY(this.mutedAutoplayDurationMode,n&&n.muted_autoplay_duration_mode);this.Nn=C6(this.Nn,n&&n.mutedautoplay); var Ag=n.length_seconds;Ag&&(this.lengthSeconds=typeof Ag==="string"?n_(Ag):Ag);this.isAd()||this.XH||!g.DB(g.XO(this.iY))?this.endSeconds=bY(this.endSeconds,this.aV||n.end||n.endSeconds):Y4f(this,g.XO(this.iY),this.lengthSeconds);this.Ns=go(this.Ns,n.itct);this.fY=C6(this.fY,n.is_live_destination);this.isLivePlayback=C6(this.isLivePlayback,n.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.t2();n.isUpcoming&&(this.isUpcoming=C6(this.isUpcoming,n.isUpcoming));this.z7= C6(this.z7,n.post_live_playback);this.sV&&(this.z7=!1);this.isMdxPlayback=C6(this.isMdxPlayback,n.mdx);var Hx=n.mdx_control_mode;Hx&&(this.mdxControlMode=typeof Hx==="number"?Hx:n_(Hx));this.isInlinePlaybackNoAd=C6(this.isInlinePlaybackNoAd,n.is_inline_playback_no_ad);this.fR=bY(this.fR,n.reload_count);this.reloadReason=go(this.reloadReason,n.reload_reason);this.VI=C6(this.VI,n.show_content_thumbnail);this.cycToken=n.cyc||null;var tg=es(n);Object.keys(tg).length>0&&(this.lG=tg);this.Tx=go(this.Tx, n.vvt);this.mdxEnvironment=go(this.mdxEnvironment,n.mdx_environment);n.source_container_playlist_id&&(this.sourceContainerPlaylistId=n.source_container_playlist_id);n.serialized_mdx_metadata&&(this.serializedMdxMetadata=n.serialized_mdx_metadata);this.wx=n.osig;this.eventId||(this.eventId=n.eventid);this.osid||(this.osid=n.osid);this.playlistId=go(this.playlistId,n.list);n.index&&(this.playlistIndex=this.playlistIndex===void 0?bY(0,n.index):bY(this.playlistIndex,n.index));this.Zf=n.pyv_view_beacon_url; this.Rf=n.pyv_quartile25_beacon_url;this.xU=n.pyv_quartile50_beacon_url;this.Bi=n.pyv_quartile75_beacon_url;this.LL=n.pyv_quartile100_beacon_url;var af=n.session_data;!this.h6&&af&&(this.h6=zj(af,"&").feature);this.isFling=bY(this.isFling?1:0,n.is_fling)===1;this.vnd=bY(this.vnd,n.vnd);this.forceAdsUrl=go(this.forceAdsUrl,n.force_ads_url);this.DI=go(this.DI,n.ctrl);this.a6=go(this.a6,n.ytr);this.FQ=n.ytrcc;this.RM=n.ytrexp;this.ma=n.ytrext;this.Hx=go(this.Hx,n.adformat);this.mN=go(this.mN,n.attrib); this.slotPosition=bY(this.slotPosition,n.slot_pos);this.breakType=n.break_type;this.B_=C6(this.B_,n.ssrt);this.videoId=au(n)||this.videoId;this.C=go(this.C,n.vss_credentials_token);this.zy=go(this.zy,n.vss_credentials_token_type);this.A7=C6(this.A7,n.audio_only);this.Wr=C6(this.Wr,n.aac_high);this.Ck=C6(this.Ck,n.prefer_low_quality_audio);this.d4=C6(this.d4,n.uncap_inline_quality);this.j("html5_enable_qoe_cat_list")?n.qoe_cat&&(this.Ya=this.Ya.concat(n.qoe_cat.split(","))):this.iZ=go(this.iZ,n.qoe_cat); this.sW=C6(this.sW,n.download_media);this.J=U_7(this,n.prefer_gapless);jkp(this.playerResponse)&&this.a7.push("ad");var cx=n.adaptive_fmts;cx&&(this.adaptiveFormats=cx,this.Xp("adpfmts",{},!0));var E=n.allow_embed;E&&(this.allowEmbed=Number(E)===1);var B=n.backgroundable;B&&(this.backgroundable=Number(B)===1);var jG=n.autonav;jG&&(this.isAutonav=Number(jG)===1);var aS=n.autoplay;aS&&(this.yU=this.Bt=Number(aS)===1);var eG=n.iv_load_policy;eG&&(this.annotationsLoadPolicy=uY(this.annotationsLoadPolicy, eG,zx));var DC=n.cc_lang_pref;DC&&(this.captionsLanguagePreference=go(DC,this.captionsLanguagePreference));var HT=n.cc_load_policy;HT&&(this.GO=uY(this.GO,HT,zx));var $m;this.deviceCaptionsOn=($m=n.device_captions_on)!=null?$m:void 0;var Oq;this.lM=(Oq=n.device_captions_lang_pref)!=null?Oq:"";var c;this.Ye=(c=n.viewer_selected_caption_langs)!=null?c:[];var N=n.cached_load;N&&(this.C5=C6(this.C5,N));if(n.dash==="0"||n.dash===0||n.dash===!1)this.Sk=!0;var O=n.dashmpd;O&&(this.yc=g.pQ(O,{cpn:this.clientPlaybackNonce})); var r=n.delay;r&&(this.Y4=n_(r));var k=this.aV||n.end;if(this.yg?k!=null:k!=void 0)this.clipEnd=bY(this.clipEnd,k);var s8=n.fmt_list;s8&&(this.YS=s8);n.heartbeat_preroll&&this.a7.push("heartbeat");uII&&(this.Hf=-Math.floor(Math.random()*10),this.jP=-Math.floor(Math.random()*40));var H=n.is_listed;H&&(this.isListed=C6(this.isListed,H));var z=n.is_private;z&&(this.isPrivate=C6(this.isPrivate,z));var G=n.is_dni;G&&(this.vV=C6(this.vV,G));var vT=n.dni_color;vT&&(this.mq=go(this.mq,vT));var If=n.pipable; If&&(this.pipable=C6(this.pipable,If));this.Uc=(this.tQ=this.pipable&&this.iY.Xw)&&!this.iY.showMiniplayerButton;var JP=n.paid_content_overlay_duration_ms;JP&&(this.paidContentOverlayDurationMs=n_(JP));var cT=n.paid_content_overlay_text;cT&&(this.paidContentOverlayText=cT);var Zz=n.url_encoded_fmt_stream_map;Zz&&(this.BC=Zz);var E8=n.hls_formats;E8&&(this.hlsFormats=E8);var u9=n.hlsvp;u9&&(this.hlsvp=u9);var AV=n.live_start_walltime;AV&&(this.IK=typeof AV==="number"?AV:n_(AV));var eh=n.live_manifest_duration; eh&&(this.j8=typeof eh==="number"?eh:n_(eh));var Ve=n.player_params;Ve&&(this.playerParams=Ve);var zE=n.partnerid;zE&&(this.partnerId=bY(this.partnerId,zE));var fQ=n.probe_url;fQ&&(this.probeUrl=iY(g.pQ(fQ,{cpn:this.clientPlaybackNonce})));var Sh=n.pyv_billable_url;Sh&&PEQ(Sh)&&(this.nM=Sh);var gK=n.pyv_conv_url;gK&&PEQ(gK)&&(this.MJ=gK);xaP(this,n);this.startSeconds>0?this.j("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.hH||this.KH||n.start||n.startSeconds)&&this.Xp("lss",{css:this.startSeconds, pcss:this.hH,iss:this.KH,ps:n.start||void 0,pss:n.startSeconds||void 0}):this.aY=this.startSeconds=bY(this.startSeconds,this.hH||this.KH||n.start||n.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var cP=n.live_utc_start;cP!=null?this.liveUtcStartSeconds=Number(cP):SrY(this.startSeconds)&&(this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var UG=n.utc_start_millis;UG&&(this.liveUtcStartSeconds=Number(UG)*.001)}var dU= n.stream_time_start_millis;dU&&(this.AL=Number(dU)*.001);var nX=this.KH||n.start;(this.yg?nX==null||Number(n.resume)===1:nX==void 0||n.resume=="1")||this.isLivePlayback||(this.clipStart=bY(this.clipStart,nX));var iO=n.url_encoded_third_party_media;iO&&(this.Mt=Xa(iO));var Wx=n.ypc_offer_button_formatted_text;if(Wx){var Qi=JSON.parse(Wx);this.mY=Qi!=null?Qi:null;this.Wb=Wx}var I1=n.ypc_offer_button_text;I1&&(this.IS=I1);var T0=n.ypc_offer_description;T0&&(this.Hq=T0);var oF=n.ypc_offer_headline;oF&& (this.wY=oF);var FX=n.ypc_full_video_message;FX&&(this.y5=FX);var yX=n.ypc_offer_id;yX&&(this.fL=yX);var s7=n.ypc_buy_url;s7&&(this.XE=s7);var QP=n.ypc_item_thumbnail;QP&&(this.TC=QP);var lc=n.ypc_item_title;lc&&(this.G0=lc);var sO=n.ypc_item_url;sO&&(this.EL=sO);var mA=n.ypc_vid;mA&&(this.M5=mA);n.ypc_overlay_timeout&&(this.ZQ=Number(n.ypc_overlay_timeout));var z6=n.ypc_trailer_player_vars;z6&&(this.yI=jy(z6));var iB=n.ypc_original_itct;iB&&(this.V7=iB);this.z6=go(this.z6,n.ucid);this.rZ=n.storyboard_spec|| null;this.CO=n.live_storyboard_spec||null;this.LH=n.iv_endscreen_url||null;this.BL=C6(this.BL,n.iv3_module);this.vu=C6(this.vu,n.ypc_module);this.Pc=C6(this.Pc,n.ypc_clickwrap_module);this.vu&&this.a7.push("ypc");this.Pc&&this.a7.push("ypcRentalActivation");this.oM={video_id:n.video_id,eventid:n.eventid,cbrand:n.cbrand,cbr:n.cbr,cbrver:n.cbrver,c:n.c,cver:n.cver,ctheme:n.ctheme,cplayer:n.cplayer,cmodel:n.cmodel,cnetwork:n.cnetwork,cos:n.cos,cosver:n.cosver,cplatform:n.cplatform,user_age:n.user_age, user_display_image:n.user_display_image,user_display_name:n.user_display_name,user_gender:n.user_gender,csi_page_type:n.csi_page_type,csi_service_name:n.csi_service_name,enablecsi:n.enablecsi,enabled_engage_types:n.enabled_engage_types};GAY(this,n);var CU=n.cotn;CU&&(this.cotn=CU);x28(this)?aP(this)&&(this.isLivePlayback&&this.yc&&(this.cV=!0),this.G6&&(this.y_=!0)):Uup(this)?this.cV=!0:Znn(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&wk(this):this.yc&&(this.iY.Ns==="yt"&&this.t2()&& this.j("drm_manifestless_unplugged")&&this.j("html5_deprecate_manifestful_fallback")?this.Xp("deprecateMflFallback",{}):this.cV=!0);var Vp=n.adpings;Vp&&(this.XW=Vp?jy(Vp):null);var a6=n.feature;a6&&(this.wb=a6);var vP=n.referrer;vP&&(this.referrer=vP);this.clientScreenNonce=go(this.clientScreenNonce,n.csn);this.J_=bY(this.J_,n.root_ve_type);this.Vs=bY(this.Vs,n.kids_age_up_mode);this.yg||n.kids_app_info==void 0||(this.kidsAppInfo=n.kids_app_info);this.yg&&n.kids_app_info!=null&&(this.kidsAppInfo= n.kids_app_info);this.AC=C6(this.AC,n.upg_content_filter_mode);this.unpluggedFilterModeType=bY(this.unpluggedFilterModeType,n.unplugged_filter_mode_type);var K_=n.unplugged_location_info;K_&&(this.mJ=K_);var DJ=n.unplugged_partner_opt_out;DJ&&(this.uw=go("",DJ));this.s7=C6(this.s7,n.disable_watch_next);this.Ji=go(this.Ji,n.internal_ip_override);this.RB=!!n.is_yto_interstitial;this.interstitials.length&&this.a7.push("playableSequences");var p_=n.Aa;p_&&(this.Aa=p_);this.Pr=go(this.Pr,n.csi_timer); n.watchUrl&&(this.watchUrl=n.watchUrl);var U7=n.watch_endpoint;this.j("html5_attach_watch_endpoint_ustreamer_config")&&U7&&HP3(this,U7);if(U7==null?0:U7.ustreamerConfig)this.g6=ZJ(U7.ustreamerConfig);var L_,tq,IX=U7==null?void 0:(L_=U7.loggingContext)==null?void 0:(tq=L_.qoeLoggingContext)==null?void 0:tq.serializedContextData;IX&&(this.De=IX);g.R6(this.iY)&&this.iY.OW&&(this.embedsRct=go(this.embedsRct,n.rct),this.embedsRctn=go(this.embedsRctn,n.rctn));n.embed_config&&(this.nD=n.embed_config);this.p6= this.p6||!!n.pause_at_start;n.default_active_source_video_id&&(this.defaultActiveSourceVideoId=n.default_active_source_video_id);this.tL=this.tL||!!n.tL}; g.Q.B=function(){return this.iY}; g.Q.j=function(n){return this.iY.j(n)}; g.Q.aH=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.Q.hasSupportedAudio51Tracks=function(){var n;return!((n=this.xi)==null||!n.d5)}; g.Q.getUserAudio51Preference=function(){var n=1;JQ(this.iY)&&this.j("html5_ytv_surround_toggle_default_off")?n=0:Ng(this.iY)&&this.isLivePlayback&&this.mF()&&(n=0);var Z;return(Z=g.z5("yt-player-audio51"))!=null?Z:n}; g.Q.f0=function(){this.CR()||(this.N.X||this.N.unsubscribe("refresh",this.f0,this),this.g$(-1))}; g.Q.g$=function(n){if(!this.isLivePlayback||!this.S||this.S.flavor!=="fairplay"){var Z=iu3(this.N,this.Ls);if(Z.length>0){for(var F=g.Y(Z),y=F.next();!y.done;y=F.next())y=y.value,y.startSecs=Math.max(y.startSecs,this.LJ()),this.j("html5_cuepoint_identifier_logging")&&y.event==="start"&&this.Xp("cuepoint",{pubCue:y.identifier,segNum:n});this.publish("cuepointupdated",Z,n);this.Ls+=Z.length;if(wk(this)&&this.iY.eG())for(Z=g.Y(Z),F=Z.next();!F.done;F=Z.next())F=F.value,this.Xp("cuepoint",{segNum:n,event:F.event, startSecs:F.startSecs,id:F.identifier.slice(-16)}),F.event==="start"&&(F=F.startSecs,this.kL.start=this.IW,this.kL.end=F+3)}}}; g.Q.kX=function(){this.CR()||(this.loading=!1,this.publish("dataloaded"))}; g.Q.mF=function(){return this.UW!==void 0?this.UW:this.UW=!!this.by||!!this.N&&a5(this.N)}; g.Q.Bb=function(n){var Z=this;if(this.CR())return RM();this.d5=this.zx=this.T=null;bI(this,"html5_high_res_logging_always")&&(this.iY.GU=!0);return ii7(this,n).then(void 0,function(){return eiQ(Z,n)}).then(void 0,function(){return Rz8(Z)}).then(void 0,function(){return Rwn(Z)})}; g.Q.i7=function(n){this.T=n;tR3(this,this.T.getAvailableAudioTracks());if(this.T){n=g.Y(this.T.videoInfos);for(var Z=n.next();!Z.done;Z=n.next()){Z=Z.value;var F=Z.containerType;F!==0&&(this.oA[F]=Z.id)}}n=this.getAvailableAudioTracks();n=n.concat(this.RX);for(Z=0;Z0?this.T.getAvailableAudioTracks():this.VG||[]:[]}; g.Q.getAudioTrack=function(){var n=this;if(this.V&&!KU(this.V)){var Z=g.YW(this.getAvailableAudioTracks(),function(l){return l.id===n.V.id}),F; if(!Z&&((F=this.V.J2)==null?0:F.id)){var y=this.V.J2.id;Z=g.YW(this.getAvailableAudioTracks(),function(l){return l.J2.id===y}); this.Xp("nat",{id:this.V.id,track:!!Z})}return Z||this.RX}if(this.VG){if(!this.yQ)for(Z=g.Y(this.VG),F=Z.next();!F.done;F=Z.next())if(F=F.value,F.J2.getIsDefault()){this.yQ=F;break}return this.yQ||this.RX}return this.RX}; g.Q.getPlayerResponse=function(){return this.playerResponse}; g.Q.getWatchNextResponse=function(){return this.w5}; g.Q.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.Q.getHeartbeatResponse=function(){return this.ZZ}; g.Q.W7=function(){return this.watchUrl?this.watchUrl:this.iY.getVideoUrl(this.videoId)}; g.Q.K_=function(){return!!this.N&&(p7U(this.N)||Ie8(this.N)||mwK(this.N))}; g.Q.getEmbeddedPlayerResponse=function(){return this.Uj}; g.Q.pP=function(){return(this.eventLabel||this.iY.w5)==="shortspage"}; g.Q.isAd=function(){return this.rh||!!this.adFormat}; g.Q.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.Q.Cq=function(){var n,Z,F;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((n=this.playerResponse)==null?0:(Z=n.playerConfig)==null?0:(F=Z.daiConfig)==null?0:F.ssaEnabledPlayback)}; g.Q.Fv=function(){return this.GF}; g.Q.v_=function(){return this.vu||this.mC}; g.Q.nt=function(){return bI(this,"html5_samsung_vp9_live")}; g.Q.Xp=function(n,Z,F){this.publish("ctmp",n,Z,F)}; g.Q.I9=function(n,Z,F){this.publish("ctmpstr",n,Z,F)}; g.Q.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.Q.getGetAdBreakContext=function(n,Z){n=n===void 0?NaN:n;Z=Z===void 0?NaN:Z;var F={isSabr:YA(this)},y,l=(y=this.getHeartbeatResponse())==null?void 0:y.adBreakHeartbeatParams;l&&(F.adBreakHeartbeatParams=l);if(this.j("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.N&&!isNaN(n)&&!isNaN(Z)){Z=n-Z;for(var m in this.N.N)if(y=this.N.N[m],y.info.K6()||y.info.BE())if(y=y.index,y.isLoaded()){m=y.Um(Z);y=y.Xh(m)+Z-y.getStartTime(m);this.Xp("gabc",{t:n.toFixed(3),mt:Z.toFixed(3),sg:m,igt:y.toFixed(3)}); F.livePlaybackPosition={utcTimeMillis:""+(y*1E3).toFixed(0)};break}}return F}; g.Q.isEmbedsShortsMode=function(n,Z){if(!g.R6(this.iY)||(this.iY.zx||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||Z)return!1;if(this.j("embeds_enable_shorts")){var F,y;return!!((F=this.embeddedPlayerConfig)==null?0:(y=F.embeddedPlayerFlags)==null?0:y.isShortsExperienceEligible)}var l,m;return!!(((l=this.embeddedPlayerConfig)==null?0:(m=l.embeddedPlayerFlags)==null?0:m.isShortsExperienceEligible)&&n.width<=n.height)}; g.Q.wg=function(n,Z){Z?this.Ky||(this.Ky=n):this.yV||(this.yV=n)}; g.Q.IY=function(){g.Xu.prototype.IY.call(this);this.XW=null;delete this.Td;delete this.accountLinkingConfig;delete this.N;this.T=this.ZZ=this.playerResponse=this.w5=null;this.BC=this.adaptiveFormats="";delete this.botguardData;this.lY=this.suggestions=this.bT=null;this.sabrContextUpdates.clear()}; var uII=!0;var fMi={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},WmY={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},VLj={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},n07={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"},Fje={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},ZS3={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"},vfQ={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.d(ym,g.I);g.Q=ym.prototype;g.Q.handleExternalCall=function(n,Z,F){var y=this.state.J[n],l=this.state.L[n],m=y;if(l)if(F&&en(F,mGx))m=l;else if(!y)throw Error('API call from an untrusted origin: "'+F+'"');this.logApiCall(n,F);if(m){F=!1;y=g.Y(Z);for(l=y.next();!l.done;l=y.next())if(String(l.value).includes("javascript:")){F=!0;break}F&&g.yi(Error('Dangerous call to "'+n+'" with ['+Z+"]."));return m.apply(this,Z)}throw Error('Unknown API method: "'+n+'".');}; g.Q.logApiCall=function(n,Z,F){var y=this.app.B();y.Sk&&!this.state.Pr.has(n)&&(this.state.Pr.add(n),g.xt("webPlayerApiCalled",{callerUrl:y.loaderUrl,methodName:n,origin:Z||void 0,playerStyle:y.playerStyle||void 0,embeddedPlayerMode:y.zx,errorCode:F}))}; g.Q.publish=function(n){var Z=g.S7.apply(1,arguments);this.state.T.publish.apply(this.state.T,[n].concat(g.t(Z)));if(n==="videodatachange"||n==="resize"||n==="cardstatechange")this.state.X.publish.apply(this.state.X,[n].concat(g.t(Z))),this.state.V.publish.apply(this.state.V,[n].concat(g.t(Z)))}; g.Q.LR=function(n){var Z=g.S7.apply(1,arguments);this.state.T.publish.apply(this.state.T,[n].concat(g.t(Z)));this.state.X.publish.apply(this.state.X,[n].concat(g.t(Z)))}; g.Q.Qm=function(n){var Z=g.S7.apply(1,arguments);this.state.T.publish.apply(this.state.T,[n].concat(g.t(Z)));this.state.X.publish.apply(this.state.X,[n].concat(g.t(Z)));this.state.V.publish.apply(this.state.V,[n].concat(g.t(Z)))}; g.Q.SV=function(n){var Z=g.S7.apply(1,arguments);this.state.T.publish.apply(this.state.T,[n].concat(g.t(Z)));this.state.X.publish.apply(this.state.X,[n].concat(g.t(Z)));this.state.V.publish.apply(this.state.V,[n].concat(g.t(Z)));this.state.S.publish.apply(this.state.S,[n].concat(g.t(Z)))}; g.Q.j=function(n){return this.app.B().j(n)}; g.Q.IY=function(){if(this.state.element){var n=this.state.element,Z;for(Z in this.state.N)this.state.N.hasOwnProperty(Z)&&(n[Z]=null);this.state.element=null}g.I.prototype.IY.call(this)};g.d(p0,g.aR);p0.prototype.publish=function(n){var Z=g.S7.apply(1,arguments);if(this.S.has(n))return this.S.get(n).push(Z),!0;var F=!1;try{for(Z=[Z],this.S.set(n,Z);Z.length;)F=g.aR.prototype.publish.call.apply(g.aR.prototype.publish,[this,n].concat(g.t(Z.shift())))}finally{this.S.delete(n)}return F};g.d(L0,g.I);L0.prototype.IY=function(){this.S.dispose();this.V.dispose();this.X.dispose();this.T.dispose();this.Pr=this.N=this.L=this.J=this.C=void 0};var gD7=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.d(l_,ym);g.Q=l_.prototype;g.Q.getApiInterface=function(){return Array.from(this.state.C)}; g.Q.UC=function(n,Z){this.state.S.subscribe(n,Z)}; g.Q.LFs=function(n,Z){this.state.S.unsubscribe(n,Z)}; g.Q.getPlayerState=function(n){return sNT(this.app,n)}; g.Q.cF=function(){return sNT(this.app)}; g.Q.wju=function(n,Z,F){kNe(this)&&(B1(this.app,!0,1),ch(this.app,n,Z,F,1))}; g.Q.getCurrentTime=function(n,Z,F){var y=this.getPlayerState(n);if(this.app.getAppState()===2&&y===5){var l;return((l=this.app.getVideoData())==null?void 0:l.startSeconds)||0}return this.j("web_player_max_seekable_on_ended")&&y===0?Lb(this.app,n):n?this.app.getCurrentTime(n,Z,F):this.app.getCurrentTime(n)}; g.Q.oD=function(){return this.app.getCurrentTime(1)}; g.Q.O2=function(){var n=this.app.Xh(1);return isNaN(n)?this.getCurrentTime(1):n}; g.Q.jh=function(){return this.app.getDuration(1)}; g.Q.o1=function(n,Z){n=g.mk(Math.floor(n),0,100);isFinite(n)&&Vy(this.app,{volume:n,muted:this.isMuted()},Z)}; g.Q.rB5=function(n){this.o1(n,!1)}; g.Q.ag=function(n){Vy(this.app,{muted:!0,volume:this.getVolume()},n)}; g.Q.GNp=function(){this.ag(!1)}; g.Q.Za=function(n){Vy(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},n)}; g.Q.o68=function(){ew(this.app)||this.Za(!1)}; g.Q.getPlayerMode=function(){var n={};this.app.getVideoData().vV&&(n.pfp={enableIma:this.app.dM().allowImaMonetization,autoplay:te(this.app.dM()),mutedAutoplay:this.app.dM().mutedAutoplay});return n}; g.Q.L9=function(){var n=this.app.getPresentingPlayerType();if(n===2&&!this.app.DD()){var Z=u2(this.app.iN());if(!(jtn(Z)||g.R6(this.app.B())&&g.b(this.app.Z4().getPlayerState(),1024))||Kcp(Z))return}(Z=this.app.iG().qh)?Z.playVideo():this.app.playVideo(n)}; g.Q.UbQ=function(){B1(this.app,!0,1);this.L9()}; g.Q.pauseVideo=function(n){var Z=this.app.getPresentingPlayerType();if(Z!==2||this.app.DD()||jtn(u2(this.app.iN()))){var F=this.app.iG().qh;F?F.pauseVideo():this.app.pauseVideo(Z,n)}}; g.Q.L9Y=function(){var n=this.app,Z=!1;n.Y.kV&&(n.JG.publish("pageTransition"),Z=!0);n.stopVideo(Z)}; g.Q.clearVideo=function(){}; g.Q.getAvailablePlaybackRates=function(){var n=this.app.B();if(n.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(n.V?n.ancestorOrigins[0]:window.location.origin)||n.W4)return G3v;var Z=this.app.getVideoData();if(BqK(Z)){var F=Z.P_,y=Z.d0;return iQm.filter(function(l){return l>=F&&l<=y})}return n.supportsVarispeedExtendedFeatures?Rjh:n.j("web_remix_allow_up_to_3x_playback_rate")&&g.Fu(n)?gUU:cI}return[1]}; g.Q.getPlaybackQuality=function(n){return(n=this.app.iP(n))?n.getPlaybackQuality():"unknown"}; g.Q.jsr=function(){}; g.Q.getAvailableQualityLevels=function(n){return(n=this.app.iP(n))?(n=g.Yn(n.Mp(),function(Z){return Z.quality}),n.length&&(n[0]==="auto"&&n.shift(),n=n.concat(["auto"])),n):[]}; g.Q.VZ=function(){return this.getAvailableQualityLevels(1)}; g.Q.HF=function(){return this.tR()}; g.Q.Zm=function(){return 1}; g.Q.getVideoLoadedFraction=function(n){return this.app.getVideoLoadedFraction(n)}; g.Q.tR=function(){return this.getVideoLoadedFraction()}; g.Q.hd=function(){return 0}; g.Q.getSize=function(){var n=this.app.Br().getPlayerSize();return{width:n.width,height:n.height}}; g.Q.setSize=function(){this.app.Br().resize()}; g.Q.loadVideoById=function(n,Z,F,y){if(!n)return!1;n=Tw(n,Z,F);return this.app.loadVideoByPlayerVars(n,y)}; g.Q.wxr=function(n,Z,F){n=this.loadVideoById(n,Z,F,1);B1(this.app,n,1)}; g.Q.cueVideoById=function(n,Z,F,y){n=Tw(n,Z,F);this.app.cueVideoByPlayerVars(n,y)}; g.Q.PZ=function(n,Z,F){this.cueVideoById(n,Z,F,1)}; g.Q.loadVideoByUrl=function(n,Z,F,y){n=gKQ(n,Z,F);return this.app.loadVideoByPlayerVars(n,y)}; g.Q.in8=function(n,Z,F){n=this.loadVideoByUrl(n,Z,F,1);B1(this.app,n,1)}; g.Q.cueVideoByUrl=function(n,Z,F,y){n=gKQ(n,Z,F);this.app.cueVideoByPlayerVars(n,y)}; g.Q.Tq=function(n,Z,F){this.cueVideoByUrl(n,Z,F,1)}; g.Q.xz=function(){var n=this.app.B();if(n.Tx)return"";var Z=this.app.dM(),F=void 0;Z.isLivePlayback||(F=Math.floor(this.app.getCurrentTime(1)));return n.getVideoUrl(Z.videoId,this.getPlaylistId()||void 0,F)}; g.Q.s2=function(){return this.app.getDebugText()}; g.Q.getVideoEmbedCode=function(){var n=this.app.B();if(n.Tx)return"";var Z=this.app.dM();return n.getVideoEmbedCode(Z.isPrivate?"":Z.title,this.app.dM().videoId,this.app.Br().getPlayerSize(),this.getPlaylistId()||void 0)}; g.Q.bX=function(n,Z,F){return T7(this.app,n,Z,F)}; g.Q.removeCueRange=function(n){return this.app.RR(n)}; g.Q.loadPlaylist=function(n,Z,F,y){this.app.loadPlaylist(n,Z,F,y)}; g.Q.EVx=function(n,Z,F,y){this.loadPlaylist(n,Z,F,y);B1(this.app,!0,1)}; g.Q.cuePlaylist=function(n,Z,F,y){this.app.cuePlaylist(n,Z,F,y)}; g.Q.nextVideo=function(n,Z){this.app.nextVideo(n,Z)}; g.Q.pxs=function(){this.nextVideo();B1(this.app,!0,1)}; g.Q.previousVideo=function(n){this.app.previousVideo(n)}; g.Q.lCT=function(){this.previousVideo();B1(this.app,!0,1)}; g.Q.playVideoAt=function(n){this.app.playVideoAt(n)}; g.Q.iNY=function(n){this.playVideoAt(n);B1(this.app,!0,1)}; g.Q.setShuffle=function(n){var Z=this.app.getPlaylist();Z&&Z.setShuffle(n)}; g.Q.setLoop=function(n){var Z=this.app.getPlaylist();Z&&(Z.loop=n)}; g.Q.Ke=function(){var n=this.app.getPlaylist();if(!n)return null;for(var Z=[],F=0;F=400)if(n=this.dM(),this.W.B().j("client_respect_autoplay_switch_button_renderer"))n=!!n.autoplaySwitchButtonRenderer;else{var Z,F,y,l;n=!!((Z=n.getWatchNextResponse())==null?0:(F=Z.contents)==null?0:(y=F.twoColumnWatchNextResults)==null?0:(l=y.autoplay)==null?0:l.autoplay)!==!1}n?this.N||(this.N=!0,this.yP(this.N),Z=this.dM(),this.CA(Z.autonavState),this.W.logVisibility(this.element,this.N)): (this.N=!1,this.yP(this.N))}; g.Q.CA=function(n){UE8(this)?this.isChecked=n!==1:((n=n!==1)||(n=g.mM(),n=g.N5("web_autonav_allow_off_by_default")&&!n.Wx(141)&&g.BT("AUTONAV_OFF_BY_DEFAULT")?!1:!n.Wx(140)),this.isChecked=n);oBK(this)}; g.Q.onClick=function(){this.isChecked=!this.isChecked;this.W.BJ(this.isChecked?2:1);oBK(this);if(UE8(this)){var n=this.dM().autoplaySwitchButtonRenderer;this.isChecked&&(n==null?0:n.onEnabledCommand)?this.W.LR("innertubeCommand",n.onEnabledCommand):!this.isChecked&&(n==null?0:n.onDisabledCommand)&&this.W.LR("innertubeCommand",n.onDisabledCommand)}this.W.logClick(this.element)}; g.Q.getValue=function(){return this.isChecked}; g.Q.dM=function(){return this.W.getVideoData(1)};g.d(pln,vk);g.d(u6,c5);u6.prototype.g5=function(n){n?this.N||(this.Fp.Dx(this),this.N=!0):this.N&&(this.Fp.EG(this),this.N=!1);this.N&&VS(this,F_o())}; u6.prototype.V=function(){g.hw(this.element,"ytp-menuitem-highlight-transition-enabled")}; u6.prototype.T=function(n){var Z=F_o();n!==Z&&(Z=g.mM(),Xq(190,n),Xq(192,!0),Z.save(),this.W.LR("cinematicSettingsToggleChange",n))}; u6.prototype.IY=function(){this.N&&this.Fp.EG(this);c5.prototype.IY.call(this)};g.d(LN,vk);LN.prototype.updateCinematicSettings=function(n){this.N=n;var Z;(Z=this.menuItem)==null||Z.g5(n);this.api.publish("onCinematicSettingsVisibilityChange",n)};g.d(MP8,vk);g.d(U4,vk);U4.prototype.setCreatorEndscreenVisibility=function(n){var Z;(Z=o0(this.api.iN()))==null||Z.yP(n)}; U4.prototype.N=function(n){function Z(y){y==="creatorendscreen"&&(y=o0(F.api.iN()))&&y.tzR(F.hideButton)} var F=this;this.hideButton=n;this.events.G(this.api,"modulecreated",Z);Z("creatorendscreen")};g.d(PSU,vk);g.d(v5,c5);v5.prototype.S=function(n){this.V(n?1:0)}; v5.prototype.lP=function(){if(this.enableNewAudioSettingsMenu||this.T){var n=this.W.getPresentingPlayerType();n===2||n===3?this.N&&(this.N=!1,this.Fp.EG(this)):(n=this.getDrcState(),n!==1?(n===0?(VS(this,this.X()===1),this.setEnabled(!0)):(VS(this,!1),this.setEnabled(!1)),this.N||(this.Fp.Dx(this),this.N=!0)):this.N&&(this.Fp.EG(this),this.N=!1))}else{n=this.hasDrcAudioTrack();var Z=this.X()===1&&n;VS(this,Z);this.setEnabled(n)}}; v5.prototype.IY=function(){this.Fp.EG(this);c5.prototype.IY.call(this)}; v5.prototype.C=function(){this.W.logClick(this.element)};g.d(Qr,vk);g.Q=Qr.prototype;g.Q.getDrcUserPreference=function(){return this.N}; g.Q.setDrcUserPreference=function(n){this.api.Xp("drc_set",{pref:n});g.Oh("yt-player-drc-pref",n,31536E3);n!==this.N&&(this.N=n,this.updateEnvironmentData(),this.i_()&&this.api.eU(),this.api.V_())}; g.Q.updateEnvironmentData=function(){this.api.B().ZD=this.N===1}; g.Q.i_=function(){var n,Z,F=(n=this.api.getVideoData())==null?void 0:(Z=n.T)==null?void 0:Z.N;if(!F)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.j("mta_drc_mutual_exclusion_removal")){var y,l,m=(y=this.api.FG())==null?void 0:(l=y.J2)==null?void 0:l.id;return IF(F,function(a){var D;return a.audio.N&&((D=a.J2)==null?void 0:D.id)===m})}return IF(F,function(a){var D; return((D=a.audio)==null?void 0:D.N)===!0})}; g.Q.getDrcState=function(){return this.api.Zr(3)};g.d(r0,vk);r0.prototype.onVideoDataChange=function(){var n=this,Z=this.api.getVideoData();this.api.V9("embargo",1);var F=Z==null?void 0:Z.lT.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(F==null?0:F.length)?eef(this,F.filter(function(y){return G_K(n,y)})):(Z==null?0:Z.cueRanges)&&eef(this,Z.cueRanges.filter(function(y){return G_K(n,y)}))}; r0.prototype.X=function(n){return n.embargo!==void 0}; r0.prototype.IY=function(){vk.prototype.IY.call(this);this.N={}};g.d(wj,vk); wj.prototype.addEmbedsConversionTrackingParams=function(n){var Z=this.api.B(),F=Z.widgetReferrer,y=Z.p6,l=this.N,m="",a=Z.getWebPlayerContextConfig();a&&(m=a.embedsIframeOriginParam||"");F.length>0&&(n.embeds_widget_referrer=F);y.length>0&&(n.embeds_referring_euri=y);Z.V&&m.length>0&&(n.embeds_referring_origin=m);a&&a.embedsFeature&&(n.feature=a.embedsFeature);l.length>0&&(Z.j("embeds_web_enable_lite_experiment_control_arm_logging")?l.unshift(28572):g.DB(g.XO(Z))&&l.unshift(159628),Z=l.join(","),Z= g.N9()?Z:g.ft(Z,4),n.source_ve_path=Z);this.N.length=0};g.d(Dmf,vk);g.d(Ulf,vk);g.d(zaP,g.I);zaP.prototype.IY=function(){g.I.prototype.IY.call(this);this.N=null;this.X&&this.X.disconnect()};g.d(q$U,vk);g.d($2,vk);$2.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.d(FL,g.R);FL.prototype.show=function(){g.R.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; FL.prototype.stopTimer=function(){this.N&&(this.N.dispose(),this.N=null)}; FL.prototype.onVideoDataChange=function(n){var Z,F,y=(Z=this.api.getVideoData())==null?void 0:(F=Z.getPlayerResponse())==null?void 0:F.playabilityStatus;y&&(Z=q4K(y),g.b(this.api.getPlayerStateObject(),128)||n==="dataloaderror"||!Z?(this.X=0,this.stopTimer(),this.hide()):(n=(Z.remainingTimeSecs||0)*1E3,n>0&&(this.show(),this.updateValue("label",oK(Z.label)),BYn(this,n))))}; FL.prototype.IY=function(){this.stopTimer();g.R.prototype.IY.call(this)};g.d(KHY,vk);g.d(cl,g.R);cl.prototype.onClick=function(){this.JG.logClick(this.element);this.JG.LR("onFullerscreenEduClicked")}; cl.prototype.g5=function(){this.JG.isFullscreen()?this.N?this.fade.hide():this.fade.show():this.hide();this.JG.logVisibility(this.element,this.JG.isFullscreen()&&!this.N)};g.d(q4,vk);q4.prototype.updateFullerscreenEduButtonSubtleModeState=function(n){var Z;(Z=this.N)!=null&&(g.w4(Z.element,"ytp-fullerscreen-edu-button-subtle",n),n&&!Z.X&&(Z.JG.j("player_tooltip_data_title_killswitch")?Z.element.setAttribute("title","Scroll for details"):Z.element.setAttribute("data-tooltip-title","Scroll for details"),XX(Z.JG,Z.element,Z),Z.X=!0))}; q4.prototype.updateFullerscreenEduButtonVisibility=function(n){var Z;(Z=this.N)!=null&&(Z.N=n,Z.g5())};g.d(Dtf,g.R);g.d(aLY,vk);g.d(pN,vk);pN.prototype.getSphericalProperties=function(){var n=g.PL(this.api.iN());return n?n.getSphericalProperties():{}}; pN.prototype.setSphericalProperties=function(n){if(n){var Z=g.PL(this.api.iN());Z&&Z.setSphericalProperties(n,!0)}};g.d(RJ,vk);g.Q=RJ.prototype;g.Q.createClientVe=function(n,Z,F,y){this.api.createClientVe(n,Z,F,y===void 0?!1:y)}; g.Q.createServerVe=function(n,Z,F){this.api.createServerVe(n,Z,F===void 0?!1:F)}; g.Q.setTrackingParams=function(n,Z){this.api.setTrackingParams(n,Z)}; g.Q.logClick=function(n,Z){this.api.logClick(n,Z)}; g.Q.logVisibility=function(n,Z,F){this.api.logVisibility(n,Z,F)}; g.Q.hasVe=function(n){return this.api.hasVe(n)}; g.Q.destroyVe=function(n){this.api.destroyVe(n)};var VDj=!1;I9.prototype.setPlaybackRate=function(n){this.playbackRate=Math.max(1,n)}; I9.prototype.getPlaybackRate=function(){return this.playbackRate};EO.prototype.dh=function(n){var Z=g.TL(n.info.bY.info,this.eT.t2),F=n.info.O8+this.V,y=n.info.startTime*1E3;if(this.policy.xi)try{y=this.policy.xi?g.eM(n)*1E3:n.info.startTime*1E3}catch(a){Math.random()>.99&&this.logger&&(y=eU(n.X).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:n.info.bd(),encodedDataView:g.Ee(y,4)})),y=n.info.startTime*1E3}var l=n.info.clipId,m=this.policy.xi?g.zVn(n)*1E3:n.info.duration*1E3;this.policy.xi&&(y<0||m<0)&&(this.logger&&(this.logger({missingSegInfo:n.info.bd(), startTimeMs:y,durationMs:m}),this.policy.Oq||(y<0&&(y=n.info.startTime*1E3),m<0&&(m=n.info.duration*1E3))),this.policy.Oq&&(y<0&&(y=n.info.startTime*1E3),m<0&&(m=n.info.duration*1E3)));return{formatId:Z,O8:F,startTimeMs:y,clipId:l,CI:m}}; EO.prototype.Wf=function(n){this.timestampOffset=n};rS.prototype.seek=function(n,Z){n!==this.targetTime&&(this.seekCount=0);this.targetTime=n;var F=this.videoTrack.N,y=this.audioTrack.N,l=this.audioTrack.fn,m=w7K(this,this.videoTrack,n,this.videoTrack.fn,Z);Z=w7K(this,this.audioTrack,this.policy.IW?n:m,l,Z);n=Math.max(n,m,Z);this.V=!0;this.eT.isManifestless&&(gzj(this,this.videoTrack,F),gzj(this,this.audioTrack,y));return n}; rS.prototype.isSeeking=function(){return this.V}; rS.prototype.Du=function(n){this.X=n}; var qme=2/24;var EDe=0;var Yi;tx.prototype.add=function(n){if(this.pos+20>this.data.length){var Z=new Uint8Array(this.data.length*2);Z.set(this.data);this.data=Z}for(;n>31;)this.data[this.pos++]=Yi[(n&31)+32],n>>=5;this.data[this.pos++]=Yi[n|0]}; tx.prototype.Go=function(){return g.iI(this.data.subarray(0,this.pos))}; tx.prototype.reset=function(){this.pos=0};g.Q=u0.prototype;g.Q.Tw=function(){this.Pr=this.now();Z7o(this.zN,this.Pr);this.pR.Tw()}; g.Q.lI=function(n,Z){var F=this.policy.X?(0,g.tP)():0;KL(this,n,Z);n-this.C<10&&this.X>0||this.bV(n,Z);this.pR.lI(n,Z);this.policy.X&&(n=(0,g.tP)()-F,this.IW+=n,this.d5=Math.max(n,this.d5))}; g.Q.bV=function(n,Z){var F=(n-this.C)/1E3,y=Z-this.T;this.Fn||(G8p(this.zN,F,y),this.sH(F,y));this.C=n;this.T=Z}; g.Q.iJ=function(){this.Wr&&FG7(this);this.pR.iJ()}; g.Q.k7=function(n){this.Wr||(this.Wr=this.S-this.Bx+n,this.PV=this.S,this.h2=this.J)}; g.Q.zw=function(n,Z){n=n===void 0?this.J:n;Z=Z===void 0?this.S:Z;this.X>0||(this.L=n,this.X=Z,this.Ns=this.isActive=!0)}; g.Q.zg=function(){return this.IH||2}; g.Q.v3=function(){}; g.Q.W9=function(){var n,Z={rn:this.requestNumber,rt:(this.J-this.N).toFixed(),lb:this.S,stall:(1E3*this.V).toFixed(),ht:(this.Pr-this.N).toFixed(),elt:(this.L-this.N).toFixed(),elb:this.X,d:(n=this.zx)==null?void 0:n.Go()};this.url&&Ju7(Z,this.url);this.policy.X&&(Z.mph=this.d5.toFixed(),Z.tph=this.IW.toFixed());Z.ulb=this.lY;Z.ult=this.Tx;return Z}; g.Q.now=function(){return(0,g.tP)()}; g.Q.deactivate=function(){this.isActive&&(this.isActive=!1)};g.d(FB,u0);g.Q=FB.prototype;g.Q.W9=function(){var n=u0.prototype.W9.call(this);n.pb=this.qD;n.pt=(1E3*this.kV).toFixed();n.se=this.Hx;return n}; g.Q.NN=function(){var n=this.pR;this.yg||(this.yg=n.NN?n.NN():1);return this.yg}; g.Q.L_=function(){return this.q2?this.NN()!==1:!1}; g.Q.nj=function(n,Z,F){if(!this.SG){this.SG=!0;if(!this.Fn){KL(this,n,Z);this.bV(n,Z);var y=this.NN();this.Hx=F;if(!this.Fn)if(y===2){y=n-this.L0)||Pw7(this,y,Z),this.X>0&&s1(this.zN,Z,this.V));n=(n-this.N)/ 1E3||.01;this.policy.L&&!(this.X>0)||CB(this.zN,n,this.T,DBn(this),this.fO)}this.deactivate()}}; g.Q.PC=function(n,Z,F){F&&(this.yg=2);n<0&&this.IH&&(n=this.IH);Z?this.fR+=n:this.aY+=n}; g.Q.zg=function(){return this.aY||this.fR||u0.prototype.zg.call(this)}; g.Q.bV=function(n,Z){var F=(n-this.C)/1E3,y=Z-this.T,l=this.NN();this.isActive?l===1&&((y>0||this.policy.S)&&(F>.2||y<1024)?(this.V+=F,y>0&&F>.2&&Pw7(this,this.d8?F:.05,y),this.Yi=!0):y>0&&(Pw7(this,F,y),this.Yi=!0)):Z&&Z>=this.policy.N&&this.zw(n,Z);u0.prototype.bV.call(this,n,Z)}; g.Q.yO=function(n){if(!this.Fn){KL(this,n,this.S);var Z=(n-this.N)/1E3;this.NN()!==2&&this.X>0&&(this.V+=(n-this.C)/1E3,s1(this.zN,this.T,this.V));CB(this.zN,Z,this.T,DBn(this),this.fO,!0);n=(n-this.C)/1E3;G8p(this.zN,n,0);this.sH(n,0)}}; g.Q.zw=function(n,Z){n=n===void 0?this.J:n;Z=Z===void 0?this.S:Z;if(!(this.X>0)&&(u0.prototype.zw.call(this,n,Z),this.NN()===1)){Z=(this.Pr-this.N)/1E3;var F=(n-this.Pr)/1E3;this.q2&&m0(this,this.now());this.mJ||this.Fn||(this.IH&&(F=Math.max(0,F-this.IH)),n=this.zN,n.L.Oj(1,Z),n.zx.Oj(1,F))}}; g.Q.V3=function(){this.q2&&m0(this,this.now());return this.r5}; g.Q.ow=function(){var n;if(n=this.T>this.g9)n=(n=this.T)?n>=this.policy.N:!1;return n}; g.Q.nS=function(){return this.xi}; g.Q.Ug=function(n){n=n===void 0?this.now():n;if(this.q2){m0(this,n);if(this.yg?this.L_():this.w5!==this.jT){var Z=this.jT;if(n0?F+n:F+Math.max(n,Z)}; g.Q.Eu=function(){return this.now()-this.L}; g.Q.fS=function(){return(this.T-this.X)*1E3/this.Eu()||0}; g.Q.iS=function(){return this.L};s4.prototype.feed=function(n){KB(this.N,n);this.YA()}; s4.prototype.YA=function(){if(this.V){if(!this.N.totalLength)return;var n=this.N.split(this.T-this.X),Z=n.H6;n=n.bl;if(!this.pR.k7(this.V,Z,this.X,this.T))return;this.X+=Z.totalLength;this.N=n;this.X===this.T&&(this.V=this.T=this.X=void 0)}for(;;){var F=0;n=g.Y(oCU(this.N,F));Z=n.next().value;F=n.next().value;F=g.Y(oCU(this.N,F));n=F.next().value;F=F.next().value;if(Z<0||n<0)break;if(!(F+n<=this.N.totalLength)){if(!(this.pR.k7&&F+1<=this.N.totalLength))break;F=this.N.split(F).bl;this.pR.k7(Z,F,0, n)&&(this.V=Z,this.X=F.totalLength,this.T=n,this.N=new y9([]));break}n=this.N.split(F).bl.split(n);F=n.bl;this.pR.rK(Z,n.H6);this.N=F}}; s4.prototype.dispose=function(){this.N=new y9};g.Q=YG.prototype;g.Q.bx=function(){return 0}; g.Q.Rp=function(){return null}; g.Q.A9=function(){return null}; g.Q.lz=function(){return this.state>=1}; g.Q.isComplete=function(){return this.state>=3}; g.Q.xM=function(){return this.state===5}; g.Q.onStateChange=function(){}; g.Q.rM=function(n){var Z=this.state;this.state=n;this.onStateChange(Z);this.callback&&this.callback(this,Z)}; g.Q.sX=function(n){n&&this.state=this.xhr.HEADERS_RECEIVED}; g.Q.getResponseHeader=function(n){try{return this.xhr.getResponseHeader(n)}catch(Z){return""}}; g.Q.pV=function(){return+this.getResponseHeader("content-length")}; g.Q.Zn=function(){return this.X}; g.Q.UO=function(){return this.status>=200&&this.status<300&&!!this.X}; g.Q.Pa=function(){return this.N.totalLength>0}; g.Q.g4=function(){var n=this.N;this.N=new y9;return n}; g.Q.oR=function(){return this.N}; g.Q.abort=function(){this.CR=!0;this.xhr.abort()}; g.Q.Ks=function(){return!0}; g.Q.yh=function(){return this.T}; g.Q.bP=function(){return""};g.Q=xNQ.prototype; g.Q.run=function(){var n=this,Z,F,y,l,m,a,D,p,L,q,w,T,P,J,U;return g.A(function(h){if(h.N==1){n.status=200;Z=n.N.get("docid");F=KP(n.N.get("fmtid")||"");y=n.N.get("lmt")||"0";l=+(n.N.get("csz")||0);if(!Z||!F||!l)throw Error("Invalid local URL");n.N.get("ck")&&n.N.get("civ")&&(m=new zvU(n.N.get("ck"),n.N.get("civ")));a=n.range;D=Math.floor(a.start/l);p=Math.floor(a.end/l);L=D}if(h.N!=5)return L<=p?g.x(h,JUj(Z,F,y,L,m),5):h.ST(0);q=h.X;if(q===void 0)throw Error("invariant: data is undefined");w=L*l; T=(L+1)*l;P=Math.max(0,a.start-w);J=Math.min(a.end+1,T)-(P+w);U=new Uint8Array(q.buffer,P,J);n.X.append(U);n.loaded+=J;n.loaded=200&&this.status<300&&!!this.X}; g.Q.Pa=function(){return!!this.N.totalLength}; g.Q.g4=function(){var n=this.N;this.N=new y9;return n}; g.Q.oR=function(){return this.N}; g.Q.CR=function(){return this.aborted}; g.Q.abort=function(){this.T&&this.T.cancel().catch(function(){}); this.V&&this.V.abort();this.aborted=!0}; g.Q.Ks=function(){return!0}; g.Q.yh=function(){return this.S}; g.Q.bP=function(){return this.errorMessage};g.Q=Rio.prototype;g.Q.onDone=function(){if(!this.CR){this.status=this.xhr.status;try{this.response=this.xhr.response,this.X=this.response.byteLength}catch(n){}this.N=!0;this.pR.iJ()}}; g.Q.OX=function(){this.xhr.readyState===2&&this.pR.Tw()}; g.Q.onProgress=function(n){this.CR||(this.status=this.xhr.status,this.N||(this.X=n.loaded),this.pR.lI((0,g.tP)(),n.loaded))}; g.Q.bz=function(){return this.xhr.readyState>=2}; g.Q.getResponseHeader=function(n){try{return this.xhr.getResponseHeader(n)}catch(Z){return g.yi(Error("Could not read XHR header "+n)),""}}; g.Q.pV=function(){return+this.getResponseHeader("content-length")}; g.Q.Zn=function(){return this.X}; g.Q.UO=function(){return this.status>=200&&this.status<300&&this.N&&!!this.X}; g.Q.Pa=function(){return this.N&&!!this.response&&!!this.response.byteLength}; g.Q.g4=function(){var n=this.response;this.response=void 0;return new y9([new Uint8Array(n)])}; g.Q.oR=function(){return new y9([new Uint8Array(this.response)])}; g.Q.abort=function(){this.CR=!0;this.xhr.abort()}; g.Q.Ks=function(){return!1}; g.Q.yh=function(){return!1}; g.Q.bP=function(){return""};g.d(ie,g.I);ie.prototype.T6=function(){if(!this.uP.length)return[];var n=this.uP;this.uP=[];this.T=g.lj(n).info;return n}; ie.prototype.HA=function(){return this.uP}; ie.prototype.IY=function(){g.I.prototype.IY.call(this);this.N=null;this.uP.length=0;this.D4.length=0;this.T=null};g.d(D8,g.I);g.Q=D8.prototype; g.Q.BJR=function(){if(!this.CR()){var n=(0,g.tP)(),Z=!1;if(this.policy.e8){var F=this.timing.X>0?this.timing.L:this.timing.N;this.policy.dg8&&this.T&&(F=this.T);n=n-F-(this.policy.Rf?this.policy.Sk:this.timing.zg()*1E3);F=nl(wa(this),!1);n>=2E3*F?Z=!0:n>=this.policy.T4*F&&(this.N=this.policy.uT)}else if(this.timing.X>0){if(this.C){this.policy.ud&&(this.N=0);return}n=this.timing.nS();this.timing.Ug();this.timing.nS()-n>=this.policy.p6*.8?(this.N++,Z=this.N>=5):this.N=0}else Z=n-this.timing.V3(),this.policy.uT&& Z>0&&(this.N+=1),n=nl(wa(this),!1)*this.policy.f4,Z=Z>n*1E3;this.N>0&&this.pR.EF();Z?this.Zt():this.X.start()}}; g.Q.Zt=function(){this.S=!0;this.pR.U5();this.lastError="net.timeout";Nz(this)}; g.Q.canRetry=function(n){var Z=wa(this);n=n?this.policy.Hi:this.policy.bT;return Z.timedOut0&&(Z=aX(Z.N,0),n.ubyte=Z,F===1&&Z===0&&(n.b248180278=!0))}this.Wm&&(n.rc=this.policy.Ck?this.Wm:this.Wm.toString());this.policy.Z8&&this.bK&&(n.tr=this.bK);n.itag=this.info.D4[0].bY.info.itag;n.ml=""+ +this.info.D4[0].bY.Pm();n.sq=""+this.info.D4[0].O8;this.SH&&(n.ifi=""+ +n8(22,this.info.Er.X));this.Wm!==410&&this.Wm!==500&&this.Wm!==503||(n.fmt_unav="true");var y;(F=this.errorMessage||((y=this.xhr)==null? void 0:y.bP()))&&(n.msg=F);this.Ea&&(n.smb="1");this.info.isDecorated()&&(n.sdai="1");return n}; g.Q.RF=function(){return pyQ(this.timing)}; g.Q.bP=function(){return this.xhr.bP()||""}; g.Q.ow=function(){return this.isComplete()||this.timing.ow()}; g.Q.lI=function(){!this.CR()&&this.xhr&&(this.Wm=this.xhr.status,this.policy.Df&&this.AV&&this.Rz(!1),this.PH()?this.sX(2):!this.HB&&this.ow()&&(this.sX(),this.HB=!0))}; g.Q.Tw=function(){if(!this.CR()&&this.xhr){if(!this.K3&&this.xhr.bz()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var n=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.K3=((0,g.tP)()-n)/1E3}this.xhr.bz()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Hn5&&!kto()&&g.Oh("yt-player-headers-readable",!0,2592E3);n=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var Z=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),F;(F=this.DL)==null||F.stop();this.oE=n||this.oE; this.vW=Z||this.vW}}; g.Q.iJ=function(){var n=this.xhr;if(!this.CR()&&n){this.Wm=n.status;n=this.b_(n);if(this.policy.Z8){var Z;(Z=this.DL)==null||Z.stop()}n===5?Nz(this.US):this.rM(n);this.US.X.stop()}}; g.Q.b_=function(n){j$7(this);if(qd(this.US,this.xhr.status,this.Rr?this.timing.Ns||this.HX:this.xhr.UO(),!1,this.sQ))return 5;var Z="";Gy(this.US,this.xhr)&&(Z=yeP(this.US,this.xhr));if(Z)return BZ(wa(this.US)),this.info.Te(this.SH,Z),3;Z=n.Zn();if(this.Un){this.Rz(!0);j$7(this);if(qd(this.US,this.xhr.status,this.timing.Ns||this.HX,!1,this.sQ))return 5;if(!this.JK){if(this.HX)return BZ(wa(this.US)),3;this.US.lastError="net.closed";return 5}}else{if(qd(this.US,this.xhr.status,this.xhr.UO(),!1,this.sQ))return 5; var F=this.info.T;if(F&&F!==Z||n.yh())return this.US.lastError="net.closed",5;this.Rz(!0)}F=DdY(this)?n.getResponseHeader("X-Bandwidth-Est"):0;if(n=DdY(this)?n.getResponseHeader("X-Bandwidth-Est3"):0)this.WU=!0,this.policy.vT&&(F=n);M13(this.US,Z,F?Number(F):0,this.info.D4[0].type===5);return 4}; g.Q.canRetry=function(){this.CR();var n=this.info.isDecorated();return this.US.canRetry(n)}; g.Q.onStateChange=function(){this.isComplete()&&(this.policy.ma?this.U5():this.timing.deactivate())}; g.Q.Zt=function(){this.US.Zt()}; g.Q.EF=function(){this.callback&&this.callback(this,this.state)}; g.Q.v9=function(){return this.US.v9()}; g.Q.dispose=function(){YG.prototype.dispose.call(this);this.US.dispose();var n;(n=this.DL)==null||n.dispose();this.policy.ma||this.U5()}; g.Q.U5=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.Q.T6=function(){if(!this.HA().length)return[];this.zt=!0;return this.AV.T6()}; g.Q.PH=function(){if(this.state<1)return!1;if(this.AV&&this.AV.uP.length)return!0;var n;return((n=this.xhr)==null?0:n.Pa())?!0:!1}; g.Q.HA=function(){this.Rz(!1);return this.AV?this.AV.HA():[]}; g.Q.Rz=function(n){try{if(n||this.xhr.bz()&&this.xhr.Pa()&&!Gy(this.US,this.xhr)&&!this.JO)this.AV||(this.AV=new ie(this.policy,this.info.D4)),this.xhr.Pa()&&(this.Un?this.Un.feed(this.xhr.g4()):MU(this.AV,this.xhr.g4(),n&&!this.xhr.Pa()))}catch(Z){this.Un?JMU(this,Z):g.yi(Z)}}; g.Q.rK=function(n,Z){switch(n){case 21:n=Z.split(1).bl;M$T(this,n);break;case 22:this.JK=!0;MU(this.AV,new y9([]),!0);break;case 43:if(n=XM(new lT(Z),1))this.info.Te(this.SH,n),this.HX=!0;break;case 45:Z=JCp(new lT(Z));n=Z.F3;Z=Z.K1;n&&Z&&(this.Yn=n/Z);break;case 44:this.q9=SZ8(new lT(Z));var F,y,l;!this.timing.Ns&&((F=this.q9)==null?void 0:F.action)===4&&((y=this.q9)==null?0:(l=y.Vy)==null?0:l.Rr)&&(this.Rr=this.q9.Vy.Rr);break;case 53:this.policy.Z8&&(n=Xee(new lT(Z)).e5)&&(this.DL||(this.e5=n, this.DL=new g.e7(this.AM,n,this)),this.DL.start());break;case 60:this.X7=h_(new lT(Z));break;case 58:if(n=Mkj(new lT(Z)))this.QB=n,n.QB===3&&(this.sQ=!0)}}; g.Q.k7=function(n,Z,F,y){F||this.timing.k7(y);if(n!==21)return!1;if(n=this.policy.Df)if(n*=this.info.D4[0].bY.info.Qg,Z.totalLength+F!==y&&Z.totalLength0)return!1;if(!this.xhr.bz())return!0;if(this.Un)var n=!this.info.T;else this.xhr.pV()?n=!1:(n=this.xhr.getResponseHeader("content-type"),n=n==="audio/mp4"||n==="video/mp4"||n==="video/webm");if(!n)return!1;if(isNaN(this.info.DC)){n=this.xhr.getResponseHeader("x-head-seqnum");var Z=this.timing.policy.J?1:0;if(n&&Number(n)>this.info.D4[0].O8+Z)return!1}return!0}; g.Q.Mz=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.Q.Rp=function(){this.xhr&&(this.oE=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.oE}; g.Q.A9=function(){this.xhr&&(this.vW=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.vW}; g.Q.RZ=function(){return this.US.RZ()}; g.Q.AM=function(){if(!this.CR()&&this.xhr){this.bK="heartbeat";var n=this.US;n.N+=2;this.EF()}};g.d(b0,u0);g.Q=b0.prototype;g.Q.bV=function(n,Z){var F=(n-this.C)/1E3,y=Z-this.T;this.X>0?y>0&&(this.w5&&(F>.2||y<1024?(this.V+=F,F>.2&&ptU(this,.05,y)):ptU(this,F,y)),this.jT&&(this.r5+=y,this.aY+=F)):Z>this.policy.N&&this.zw(n,Z);u0.prototype.bV.call(this,n,Z)}; g.Q.nj=function(n,Z){KL(this,n,Z);this.bV(n,Z);this.w5&&(Z=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.X>0&&s1(this.zN,this.r5,this.V),n=(n-this.N)/1E3||.01,this.policy.L&&!(this.X>0)||CB(this.zN,n,this.T,Z,!1))}; g.Q.yO=function(n){KL(this,n,this.S);var Z=(n-this.C)/1E3;G8p(this.zN,Z,0);this.sH(Z,0);!this.w5&&this.X>0||(Z=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.X>0&&(this.V+=(n-this.C)/1E3,s1(this.zN,this.r5,this.V)),CB(this.zN,(n-this.N)/1E3||.01,this.T,Z,!1,!0))}; g.Q.n7=function(n){n=n.Gd||2147483647;(n&2)!==2&&(this.jT=!1);(n&1)===1&&(this.w5=!0)}; g.Q.C7=function(n){n=n.Gd||2147483647;(n&2)===2&&(this.jT=!1);(n&1)===1&&(this.w5=!1)}; g.Q.iS=function(){return this.L}; g.Q.Eu=function(){var n=this.jT?this.now()-this.C:0;return Math.max(this.aY*1E3+n,1)}; g.Q.fS=function(){return this.r5*1E3/this.Eu()}; g.Q.zw=function(n,Z){n=n===void 0?this.J:n;Z=Z===void 0?this.S:Z;this.X>0||(u0.prototype.zw.call(this,n,Z),Z=this.zN,n=(n-this.Pr)/1E3,Z.L.Oj(1,(this.Pr-this.N)/1E3),Z.zx.Oj(1,n))}; g.Q.v3=function(n){this.fR=n}; g.Q.W9=function(){var n=u0.prototype.W9.call(this);n.rbw=this.fS();n.rbe=+this.jT;n.gbe=+this.w5;n.ackt=(this.fR-this.N).toFixed();return n}; g.Q.Ug=function(){}; g.Q.nS=function(){return NaN}; g.Q.V3=function(){return this.N+this.snapshot.delay*1E3};OY.prototype.rK=function(n,Z){switch(n){case 20:n=new lT(Z);n={Wt:ut(n,1),videoId:XM(n,2),itag:ut(n,3),lmt:ut(n,4),xtags:XM(n,5),AO:ut(n,6),mD:dp(n,8),qg:ut(n,9),dMR:ut(n,10),startMs:ut(n,11),durationMs:ut(n,12),Z1:ut(n,14),timeRange:u5(n,15,iPY),ph:ut(n,16),G8:ut(n,17),clipId:XM(n,1E3)};this.T_(n);break;case 21:this.NH(Z,!1);break;case 22:this.KB(Z);break;case 31:n=sQ(Z,h2Y);this.pR.qP(n);break;case 52:n=sQ(Z,x7Q);this.pR.mO(n);break;case 69:n={Cv:gs(new lT(Z),1,YDT)};this.pR.Y8(n);break;default:this.BS(n, Z)}}; OY.prototype.T_=function(){}; OY.prototype.BS=function(){};var Xxh=new Set([53,49,50]);g.d(fB,OY);g.Q=fB.prototype;g.Q.BS=function(n,Z){foP(this.pR)&&!Xxh.has(n)?this.N.push({id:n,data:Z}):juY(this,n,Z)}; g.Q.g0=function(n){n=new lT(n);n={RCT:gs(n,1,VG),hCY:gs(n,2,VG)};this.pR.g0(n)}; g.Q.ew=function(n){var Z=new lT(n);n=Nc(Z,1);var F=Nc(Z,2);Z=Nc(Z,3);this.pR.ew(n,F,Z)}; g.Q.yB=function(n){n=JCp(new lT(n));this.pR.yB(n)}; g.Q.aL=function(n){n=sQ(n,Qt3);this.pR.aL(n)}; g.Q.Ag=function(n){n=new lT(n);n={videoId:XM(n,1),formatId:u5(n,2,VG),endTimeMs:ut(n,3),ifY:ut(n,4),mimeType:XM(n,5),Q3:u5(n,6,zDT),indexRange:u5(n,7,zDT),mP:u5(n,8,pC3)};this.pR.Ag(n)}; g.Q.FF=function(n){n=new lT(n);n={type:ut(n,1),scope:ut(n,2),value:Mu(n,3),sendByDefault:dp(n,4),writePolicy:ut(n,5)};this.pR.FF(n)}; g.Q.r0=function(){this.pR.r0()}; g.Q.nB=function(n){n=eao(new lT(n));this.pR.nB(n)}; g.Q.oV=function(n){n=Xee(new lT(n));this.pR.oV(n)}; g.Q.JH=function(n){n=SZ8(new lT(n));this.pR.JH(n)}; g.Q.sN=function(n){n={redirectUrl:XM(new lT(n),1)};this.pR.sN(n)}; g.Q.NH=function(n){var Z=aX(n,0);if(n.totalLength!==1){n=n.split(1).bl;var F=this.X[Z]||null;F&&Et(this.pR.f6,Z,F,n)}}; g.Q.KB=function(n){n=aX(n,0);var Z=this.X[n]||null;Z&&this.pR.KB(n,Z)}; g.Q.T_=function(n){var Z=n.Wt,F=n.mD,y=n.AO,l=n.G8,m=n.ph,a=n.qg,D=n.startMs,p=n.durationMs,L=n.timeRange,q=n.Z1,w=n.clipId,T=jF(n);n=jvd.has(Bm[""+n.itag]);this.X[Z]=T;this.pR.PC(T,n,{Wt:Z,mD:!!F,AO:y!=null?y:-1,qg:a!=null?a:-1,startMs:D!=null?D:-1,durationMs:p!=null?p:-1,Z1:q,G8:l,ph:m,clipId:w,timeRange:L})}; g.Q.n7=function(n){n={Gd:ut(new lT(n),1)};this.pR.n7(n)}; g.Q.C7=function(n){n={Gd:ut(new lT(n),1)};this.pR.C7(n)}; g.Q.NQ=function(n){n=Mkj(new lT(n));this.pR.NQ(n)}; g.Q.Oi=function(n){n={cP:u5(new lT(n),1,Jc3)};this.pR.Oi(n)}; g.Q.onSnackbarMessage=function(n){n=ut(new lT(n),1);this.pR.onSnackbarMessage(n)}; g.Q.OT=function(n){n=new lT(n);n={reloadPlaybackParams:u5(n,1,A3e),qT:dp(n,2)};this.pR.OT(n)}; g.Q.d9=function(){for(var n=g.Y(this.N),Z=n.next();!Z.done;Z=n.next())Z=Z.value,juY(this,Z.id,Z.data);this.N=[]};g.d(AF,g.I);g.Q=AF.prototype;g.Q.AY=function(){return Array.from(this.JD.keys())}; g.Q.Ba=function(n){n=this.JD.get(n);var Z=n.uP;n.le+=Z.totalLength;n.uP=new y9;return Z}; g.Q.JX=function(n){return this.JD.get(n).JX}; g.Q.Va=function(n){return this.JD.get(n).Va}; g.Q.PC=function(n,Z,F){this.JD.get(n)||this.JD.set(n,{uP:new y9,le:0,bytesReceived:0,Y5:0,Yv:!1,JX:!1,Va:!1,BE:Z,f1:[],D4:[],IL:[],Ho:!1,Ch:new Map,YW:new Map,pw:[]});Z=this.JD.get(n);this.eT?(n=o87(this,n,F),AGp(this,F.Wt,Z,n)):(F.mD?Z.Y5=F.Z1:Z.IL.push(F),Z.f1.push(F))}; g.Q.Dr=function(n){var Z;return((Z=this.JD.get(n))==null?void 0:Z.D4)||[]}; g.Q.sX=function(){for(var n=g.Y(this.JD.values()),Z=n.next();!Z.done;Z=n.next())if(Z=Z.value,Z.Yv){if(Z.onProgress)Z.onProgress();Z.Yv=!1}}; g.Q.KB=function(n,Z){Z=this.JD.get(Z);iT?Z&&!Z.JX&&(Z.Ch.get(n)?Z.Ch.get(n).zn=!0:Z.Ch.set(n,{data:new y9,Aq:0,zn:!0}),Z.Va=!0):Z&&!Z.Va&&(Z.Va=!0)}; g.Q.T6=function(n){if(iT){var Z=this.JD.get(n);if(Z)for(var F=g.Y(Z.Ch),y=F.next();!y.done;y=F.next()){var l=g.Y(y.value);y=l.next().value;l=l.next().value;var m=Z.YW.get(y);if(yU(m[0])){if(!l.zn)continue;var a=l.data,D=0,p=[];m=g.Y(m);for(var L=m.next();!L.done;L=m.next()){L=L.value;var q=L.X,w=Kf(a,D,q);D+=q;p.push(new mH(L,w))}Z.pw.push.apply(Z.pw,g.t(p))}else if(l.data.totalLength>0||!m[0].range&&l.zn)a=void 0,D=m[0],p=l.Aq,m=l.data,D.range||(a=l.zn),a=new mH(YAi(D,D.N+p,m.totalLength,a),m),l.Aq+= a.info.X,Z.pw.push(a);Z.Ch.get(y).data=new y9;l.zn&&Z.Ch.delete(y)}n=this.JD.get(n);if(!n)return[];Z=n.pw;n.pw=[];F=g.Y(Z);for(y=F.next();!y.done;y=F.next())n.le+=y.value.info.X;return Z||[]}F=(Z=this.JD.get(n))==null?void 0:Z.AV;if(!F)return[];this.Rz(n,F);return F.T6()}; g.Q.PH=function(n){if(iT)return hC(this,n);var Z,F,y;return!!((F=(Z=this.JD.get(n))==null?void 0:Z.AV)==null?0:(y=F.HA())==null?0:y.length)||hC(this,n)}; g.Q.Rz=function(n,Z){for(;hC(this,n);){var F=this.Ba(n);var y=n;y=this.JD.get(y).JX&&!Ck(this,y);MU(Z,F,y&&Gzp(this,n))}}; g.Q.IY=function(){g.I.prototype.IY.call(this);for(var n=g.Y(this.JD.keys()),Z=n.next();!Z.done;Z=n.next())C7(this,Z.value);var F;if((F=this.Ae)==null?0:F.lT)for(n=g.Y(this.JD.values()),Z=n.next();!Z.done;Z=n.next())Z=Z.value,Z.Ch.clear(),Z.YW.clear(),Z.pw.length=0,Z.D4.length=0,Z.f1.length=0,Z.IL.length=0;this.JD.clear()}; var iT=!1;var zdh=new Set([2]);g.d(Dt,g.I);g.Q=Dt.prototype;g.Q.lI=function(){!this.CR()&&this.xhr&&(this.Rz(!1),to(this.pR,this))}; g.Q.Tw=function(){}; g.Q.iJ=function(){if(!this.CR()&&this.xhr){var n=this.b_();n===5?Nz(this.US):this.rM(n);this.US.X.stop();var Z;(Z=this.t_)==null||Z.stop()}}; g.Q.b_=function(){var n="";Gy(this.US,this.xhr)&&(n=yeP(this.US,this.xhr));if(n)return this.info.Er.Te(this.SH,n),3;this.Rz(!0);if(qd(this.US,this.xhr.status,this.xhr.UO(),this.info.Ie(),this.sQ))return 5;if(this.bu)return 3;M13(this.US,this.xhr.Zn(),0,this.Ie());this.policy.cV&&zcj(this.pR);return 4}; g.Q.Rz=function(n){var Z=this.xhr;!n&&Gy(this.US,this.xhr)||!Z.Pa()||(n=Z.g4(),this.Un.feed(n))}; g.Q.rK=function(n,Z){this.xhr.Ks()&&n===21&&ny8(this);this.c8.rK(n,Z)}; g.Q.k7=function(n,Z,F,y){F||(this.BV.k7(y),this.policy.d0&&n===21&&ny8(this));if(n!==21)return!1;this.BV.Ns=!0;n=Z.totalLength;F||(this.cQ=aX(Z,0),Z=Z.split(1).bl);var l=this.policy.L4,m=this.c8.X[this.cQ],a=this.eT.T.get(m);if(l&&a&&(l*=a.info.Qg,n+F!==y&&n0){this.policy.e8&&this.US.X.stop();n=this.BV.Eu();Z=this.BV.fS();var F=Ma8(this,n);if(!(Z>F.kK||F.e_>0&&this.info.WY()>F.e_)){this.Sr=(0,g.tP)();var y;(y=this.t_)==null||y.stop();this.policy.cV&&(y=this.pR,n={jg:Math.round(Z*n/1E3),Hu:n},y.policy.cV&&(y.r5=n,y.h0++));this.Zt()}}}}; g.Q.Zt=function(){this.US.Zt()}; g.Q.JH=function(n){this.pR.JH(n,this.o7())}; g.Q.sN=function(n){this.bu=!0;this.info.Er.Te(this.SH,n.redirectUrl)}; g.Q.n7=function(n){this.BV instanceof b0&&this.BV.n7(n)}; g.Q.C7=function(n){this.BV instanceof b0&&this.BV.C7(n)}; g.Q.Ag=function(n){var Z=n.formatId,F=jF({itag:Z.itag,lmt:Z.lmt,xtags:Z.xtags}),y,l,m=new MN(((y=n.Q3)==null?void 0:y.first)||0,((l=n.Q3)==null?void 0:l.tM)||0),a,D;y=new MN(((a=n.indexRange)==null?void 0:a.first)||0,((D=n.indexRange)==null?void 0:D.tM)||0);this.eT.T.get(F)||(F=n.mP||{},F.mimeType=n.mimeType,F.itag=Z.itag,F.lastModified=""+(Z.lmt||0),F.xtags=Z.xtags,n=this.eT,Z=oI(""),F=Ec(F,null),u$(n,new lK(Z,F,m,y)))}; g.Q.yB=function(n){this.pR.yB(n,this.o7())}; g.Q.onSnackbarMessage=function(n){if(this.policy.bA)this.pR.onSnackbarMessage(n)}; g.Q.Y8=function(n){this.policy.C&&this.pR.Y8(n,this.o7())}; g.Q.qP=function(n){this.Qh=n;this.US.T=(0,g.tP)();this.pR.qP(n)}; g.Q.ew=function(n,Z,F){this.pR.ew(n,Z,F)}; g.Q.FF=function(n){n.scope===2&&(this.a9=n);this.pR.FF(n)}; g.Q.r0=function(){this.Yt=!0;this.pR.r0()}; g.Q.g0=function(n){this.policy.un&&this.pR.g0(n)}; g.Q.aL=function(n){this.pR.aL(n,this.o7())}; g.Q.NQ=function(n){n.QB===3&&(this.sQ=!0);this.pR.NQ(n)}; g.Q.Oi=function(n){this.pR.Oi(n)}; g.Q.OT=function(n){this.pR.OT(n)}; g.Q.canRetry=function(){this.CR();return this.US.canRetry(!1)}; g.Q.dispose=function(){if(!this.CR()){g.I.prototype.dispose.call(this);this.US.dispose();var n;(n=this.t_)==null||n.dispose();this.rM(-1);this.U5()}}; g.Q.rM=function(n){this.state=n;to(this.pR,this)}; g.Q.Ie=function(){return this.info.Ie()}; g.Q.RK=function(){return this.Yt}; g.Q.HY=function(){return this.a9}; g.Q.PC=function(n,Z,F){F.clipId&&(this.clipId=F.clipId);this.policy.X&&!Z&&(this.N$=F.qg);if(this.info.isDecorated()){var y=this.info,l,m;var a=((l=y.data)==null?0:(m=l.g8)==null?0:m.UB)?y.data.g8.UB:-1;a>=0&&a>F.qg&&this.pR.loader.Xp("sdai",{skpsqmismatch:"1",stsq:a,rcvsq:F.qg,a:Z})}this.f6.PC(n,Z,F);this.policy.rZ&&this.Qh&&this.BV instanceof FB&&(a=this.Qh.tN,this.BV.PC(F.durationMs/1E3,Z,a>0&&F.qg+1>=a));this.f6.JD.get(n).Ho=!0;this.policy.H1&&this.pR.wg(2,Z)}; g.Q.KB=function(n,Z){this.f6.KB(n,Z)}; g.Q.mO=function(n){this.requestIdentifier=n}; g.Q.T6=function(n){return this.f6.T6(n)}; g.Q.Dr=function(n){return this.f6.Dr(n)}; g.Q.PH=function(n){return this.f6.PH(n)}; g.Q.AY=function(){return this.f6.AY()}; g.Q.NN=function(){return 1}; g.Q.o7=function(){return this.BV.requestNumber}; g.Q.yW=function(){return this.requestIdentifier}; g.Q.Uw=function(){return this.SH.Uw()}; g.Q.uj=function(){this.U5()}; g.Q.U5=function(){this.BV.deactivate();var n;(n=this.xhr)==null||n.abort()}; g.Q.isComplete=function(){return this.state>=3}; g.Q.St=function(){return this.state===3}; g.Q.xM=function(){return this.state===5}; g.Q.WR=function(){return this.state===4}; g.Q.ZJ=function(){return this.isComplete()}; g.Q.lz=function(){return this.state>=1}; g.Q.v9=function(){return this.policy.ud?this.US.v9():0}; g.Q.EF=function(){this.policy.ud&&to(this.pR,this)}; g.Q.Up=function(){return m1o(this.info)}; g.Q.d9=function(){this.yb()&&!this.f_&&(this.f_=!0,this.c8.d9())}; g.Q.yb=function(){var n,Z;var F=(n=this.info.N)==null?void 0:(Z=n.Dw)==null?void 0:Z.e0;return!!F&&zdh.has(F)}; g.Q.G3=function(){return"SABR"}; g.Q.RZ=function(){return this.US.RZ()}; g.Q.TQ=function(){var n=E0p(this.US);Object.assign(n,aoo(this.info));n.req="sabr";n.rn=this.o7();var Z;if((Z=this.xhr)==null?0:Z.status)n.rc=this.policy.Ck?this.xhr.status:this.xhr.status.toString();var F;(Z=(F=this.xhr)==null?void 0:F.bP())&&(n.msg=Z);this.Sr&&(F=Ma8(this,this.Sr-this.BV.iS()),n.letm=F.AGp,n.mrbps=F.kK,n.mram=F.e_);return n};BWe.prototype.tick=function(n,Z){this.ticks[n]=Z?window.performance.timing.navigationStart+Z:(0,g.tP)()};g.d(W$,g.Xu);g.Q=W$.prototype; g.Q.AA=function(n,Z,F,y){if(this.policy.Vs&&this.policy.X){var l=n.q1||null;l?(DNi(this,n.O8,tu(this,n.startTime,n.O8),{q1:l,O8:n.O8,iz:!!Z,K6:F},this.T),y&&this.T&&this.T.l4(n.O8,n.startTime,this.X,(Z==null?void 0:Z.N)||[],(Z==null?void 0:Z.X)||[],(Z==null?void 0:Z.V)||[],F,(Z==null?void 0:Z.zJ)||0,(Z==null?void 0:Z.T)||void 0)):this.X===1&&jL(this,5,"noad")}else{var m=!1;this.policy.X&&(m=F?this.Wr===n.O8:this.w5===n.O8);if(this.T&&y&&!m){y=[];m=[];var a=[],D=void 0,p=0;Z&&(y=Z.N,m=Z.X,a=Z.V,D= Z.T,p=Z.zJ,this.Xp("sdai",{sq:n.O8,ssvicpns:y.join("."),ssvid:m.join(".")}));this.policy.X&&(F?this.Wr=n.O8:this.w5=n.O8);this.T.l4(n.O8,n.startTime,this.X,y,m,a,F,p,D)}this.policy.X?F&&(this.X===1&&jL(this,5,"noad"),n.O8!==((l=this.N)==null?void 0:l.O8)&&(cyT(this,n,Z,F),isNaN(n.startTime)||RTp(this,n.O8,tu(this,n.startTime,n.O8),!!Z,this.T))):F&&cyT(this,n,Z)}}; g.Q.EN=function(n,Z,F){var y=this.videoTrack.bY.index.pJ()<=Z;this.N={q1:n,O8:Z,iz:F};y&&PF(this,n,Z)}; g.Q.Qv=function(){this.T&&this.T.Qv()}; g.Q.Xp=function(n,Z,F){(n!=="sdai"||this.policy.YQ||(F===void 0?0:F))&&this.loader.Xp(n,Z)}; g.Q.wZ=function(n,Z){var F=this.videoTrack.bY.index.Um(n);if(F>=0){var y;var l=((y=Z.CJ.Wh(F,2))==null?void 0:y.ZV)||"";if(this.policy.X||l)return Z.A0(n,F),n9(this.loader,n,n,F),this.Xp("sdai",{cmskpad:1,t:n.toFixed(3),sq:F}),!0}this.Xp("sdai",{cmskpad:0,t:n.toFixed(3),sq:F});return!1};g.Q=lBK.prototype;g.Q.va=function(n,Z,F){var y=n||this.V;this.Xp("clsdai",{setadcfg:n||"misscid",cid:y,acpn:F,acfglen:(Z==null?void 0:Z.length)||0});this.N.has(y)||(this.Xp("clsdai",{setadcfg:"noentry",cid:y}),this.N.set(y,{event:"unknown",startTimeSecs:0,iy:0,Jq:[],Sj:Date.now(),qY:-1,uU:6}));(n=this.N.get(y))?Z?(n.uU=6,n.Jq.push(F),n.lk=Z):n.uU=2:this.Xp("clsdai",{setadcfg:"notfound",cid:y})}; g.Q.j3=function(n){var Z=n||this.V;this.Xp("clsdai",{rmvadcfg:n||"misscid",lastcid:this.V});(n=this.N.get(Z))?(n.lk="",n.uU=4):this.Xp("clsdai",{rmadcfg:"notfound",cid:Z})}; g.Q.Y8=function(n,Z,F){this.S=Z;var y;if(!((((y=n.Cv)==null?void 0:y.length)||0)<=0)&&(n=n.Cv[0],n.q1)){var l;y=-(((l=n.q1)==null?void 0:l.rL)||0);n.timeRange&&(y+=(n.timeRange.startTicks||0)/(n.timeRange.timescale||1));var m,a,D,p,L;l=new Y8(y,((m=n.q1)==null?void 0:m.X1s)||0,((a=n.q1)==null?void 0:a.Ek)||"",((D=n.q1)==null?void 0:D.identifier)||"",DyP((p=n.q1)==null?void 0:p.event),(((L=n.q1)==null?void 0:L.rL)||0)*1E3);m=n.qg||0;this.N.has(l.identifier)?(a=this.N.get(l.identifier),m>a.qY&&(a.startTimeSecs= l.startSecs,a.iy=l.iy,a.event==="predictStart"&&a.uU===5&&l.event!=="predictStart"&&(a.Sj=Date.now()),a.event=l.event)):(a={event:l.event,startTimeSecs:l.startSecs,iy:l.iy,Jq:[],qY:m,uU:0},this.N.set(l.identifier,a),this.T&&this.Xp("clsdai",{newcid:1,cid:l.identifier,evt:l.event,sn:m,rn:Z,st:RaY(a.uU)}));a.uU===0&&((F==null?0:F.aE(l))?a.uU=5:(a.uU=F?2:3,a.lk=""),a.Sj=Date.now(),a.qY=m,this.T&&this.Xp("clsdai",{onqpnt:1,cid:l.identifier,evt:l.event,sn:m,rn:Z,st:RaY(a.uU)}));m>a.qY&&(F==null||F.aE(l), a.qY=m);this.V=l.identifier;this.T&&this.X.add(l.identifier)}}; g.Q.A0=function(n,Z,F){var y=n;this.T&&(y+=F);var l,m="";y=zC8(this,y);y.length>0&&(m=y[0])&&(l=this.N.get(m));if(!l||l.A_){var a;this.Xp("clsdai",{skipadfail:1,cid:m,sn:Z,mt:n.toFixed(3),of:F.toFixed(3),skipsq:((a=l)==null?void 0:a.A_)||-1});return!1}this.Xp("clsdai",{skipadsuc:1,cid:m,sn:Z,mt:n.toFixed(3),of:F.toFixed(3)});l.A_=Z;this.X.clear();this.X.add(m);return!0}; g.Q.lr=function(){this.Xp("clsdai",{rstskipad:1});for(var n=g.Y(this.N.values()),Z=n.next();!Z.done;Z=n.next())Z.value.A_=NaN};g.d(Re,g.I);Re.prototype.r6=function(n,Z,F){F=F===void 0?{}:F;this.policy.Tc=$n(n,F,this.V,Z===void 0?!1:Z)};fU.prototype.Oj=function(n,Z){var F=Math.pow(this.alpha,n);this.N=Z*(1-F)+F*this.N;this.X+=n}; fU.prototype.lH=function(){return this.N/(1-Math.pow(this.alpha,this.X))};Al.prototype.Bz=function(n){var Z=this;if(this.policy.IK){var F=new Set(n);F.size===this.zx.size&&[].concat(g.t(F)).every(function(y){return Z.zx.has(y)})||(this.loader.Xp("lwnmow",{itagDenylist:[].concat(g.t(n)).join(",")}),this.loader.CT(!!F.size),this.Pr=-1,this.zx=F,WH(this,this.N),this.r5=!0)}}; Al.prototype.r6=function(n,Z,F){F=F===void 0?{}:F;var y=this.policy.Tc;this.S.r6(n,Z===void 0?!1:Z,F);if(y!==this.policy.Tc){WH(this,this.N);aW(this);var l,m;y>this.policy.Tc&&((l=this.T)==null?0:Fa(l.info))&&((m=this.nextVideo)==null||!Fa(m.info))&&(this.Ns=!0)}};var NjQ={CL:-1,AS:!1,e0:0};g.d(hmY,g.I);hmY.prototype.IY=function(){this.X=NjQ;JH(this);g.I.prototype.IY.call(this)};OO.prototype.Wf=function(n){this.timestampOffset=n;this.flush()}; OO.prototype.flush=function(){if(this.N.pos>0){var n={a:this.track.BE(),u:this.N.Go(),pd:Math.round(this.V),ad:Math.round(this.T)},Z=this.X;if(Z){var F=Z.bY.info;n.itag=F.itag;F.N&&(n.xtags=F.N);n.sq=Z.O8;n.st=Z.startTime;n.sd=Z.duration;this.track.policy.J4&&(n.si=Z.bd());Z.T&&(n.esl=Z.N+Z.X);Z.tF()&&(n.eos=1)}isNaN(this.timestampOffset)||(n.to=this.timestampOffset);var y;if(Z=(y=this.track.fn)==null?void 0:y.Zx({})){for(var l in Z)this.C[l]!==Z[l]&&(n["sb_"+l]=Z[l]);this.C=Z}this.track.Xp("sbu", n);this.N.reset();this.buffered=[];this.S=this.T=this.V=0;this.timestampOffset=this.X=void 0}};cu.prototype.dispose=function(){this.Tx=!0}; cu.prototype.CR=function(){return this.Tx}; g.d(kA,Error);ZH.prototype.skip=function(n){this.offset+=n}; ZH.prototype.M$=function(){return this.offset};g.Q=HXU.prototype;g.Q.wC=function(){return this.X}; g.Q.pB=function(){return this.X.length?this.X[this.X.length-1]:null}; g.Q.gW=function(){this.X=[];$X(this);EB(this)}; g.Q.Ba=function(n){this.r5=this.X.shift().info;n.info.equals(this.r5)}; g.Q.Dr=function(){return g.Yn(this.X,function(n){return n.info})}; g.Q.BE=function(){return!!this.bY.info.audio}; g.Q.isDrm=function(){return!!this.bY.info.by}; g.Q.getDuration=function(){return this.bY.index.Ri()};g.d(i$,YG);g.Q=i$.prototype;g.Q.onStateChange=function(){this.CR()&&(uT(this.f6,this.formatId),this.N.dispose())}; g.Q.TQ=function(){var n=Nrp(this.f6,this.formatId),Z;var F=((Z=this.f6.JD.get(this.formatId))==null?void 0:Z.bytesReceived)||0;var y;Z=((y=this.f6.JD.get(this.formatId))==null?void 0:y.le)||0;return{expected:n,received:F,bytesShifted:Z,sliceLength:Ck(this.f6,this.formatId),isAnyMediaEndReceived:this.f6.Va(this.formatId)}}; g.Q.RF=function(){return 0}; g.Q.ow=function(){return!0}; g.Q.T6=function(){return this.f6.T6(this.formatId)}; g.Q.HA=function(){return[]}; g.Q.PH=function(){return this.f6.PH(this.formatId)}; g.Q.RZ=function(){return this.lastError}; g.Q.v9=function(){return 0};g.d(cO,g.I);g.Q=cO.prototype;g.Q.BE=function(){return!!this.bY.info.audio}; g.Q.pB=function(){return this.T.pB()}; g.Q.Ba=function(n){this.T.Ba(n);var Z;(Z=this.J)!=null&&(Z.S.add(n.info.O8),Z.N=p_K(Z,Z.XI,Z.FD,n,Z.N),Z.T=n,Z.C=(0,g.tP)());this.Qg=Math.max(this.Qg,n.info.bY.info.Qg||0)}; g.Q.getDuration=function(){return this.bY.index.Ri()}; g.Q.gW=function(){eY(this);this.T.gW()}; g.Q.Jl=function(){return this.T}; g.Q.TW=function(n){return this.fn?SF(this.fn.qj(),n):!0}; g.Q.isRequestPending=function(n){return this.X.length?n===this.X[this.X.length-1].info.D4[0].O8:!1}; g.Q.Wf=function(n){var Z;(Z=this.J)==null||Z.Wf(n);var F;(F=this.L)==null||F.Wf(n)}; g.Q.Xp=function(n,Z){this.loader.Xp(n,Z)}; g.Q.Zd=function(){return this.loader.Zd()}; g.Q.dispose=function(){var n;(n=this.L)==null||n.flush();g.I.prototype.dispose.call(this)};g.d(w6,g.I);w6.prototype.T=function(){this.X++>15||(this.N=!this.N,new rU7(this.loader,this.policy,this.zN,this.Er,this.N),this.delay.start())}; g.Q=rU7.prototype;g.Q.Tw=function(){}; g.Q.lI=function(){}; g.Q.iJ=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Zn()===this.size)this.loader.Xp("rqs",this.getInfo());else{var n="net.connect";this.xhr.status>200?n="net.badstatus":this.xhr.bz()&&(n="net.closed");this.onError(n)}}; g.Q.onError=function(n){var Z=this;this.loader.handleError(n,this.getInfo());mQ("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(F){Z.loader.Xp("pathprobe",F)},function(F){Z.loader.handleError(F.errorCode,F.details)})}; g.Q.getInfo=function(){var n=this.timing.W9();n.shost=qv(43,this.location.lU);n.pb=this.size;return n};g.d(Ts,g.I); Ts.prototype.J=function(n,Z){if(n.C){this.eT.isLive?(n=this.eT.Nt&&this.eT.V?n.bY.iD(this.eT.Nt,!1):n.bY.NO(Infinity),n.DC=this.DC):n=n.bY.iD(0,!1);if(this.Ns){var F=this.Ns;n.DC===0&&(n.S=F.L)}else n.S=this.Pr;return n}F=n.N;if(!F.bY.Pm())return F.bY.Dn()?(n=PE(this.S,n.bY.info.Qg,Z.bY.info.Qg,0),n=F.bY.Ib(F,n)):n=F.bY.iM(F),n;var y=F.S-this.loader.getCurrentTime(),l=!F.range||F.X===0&&F.N===0?0:F.range.length-(F.N+F.X),m=F.bY;this.Ze(n,y)&&l===0&&(this.eT.isManifestless?m=n.bY:(m=F.startTime+fk, F.X&&(m+=F.duration),Qo(n,m),F=n.N,m=F.bY));m.Dn()?(l=this.T,Z=PE(this.S,m.info.Qg,Z.bY.info.Qg,y,l.V.length>0&&l.L===0&&this.loader.CB),y=D2(n),n=F.bY.Ib(F,Z),(Z=n.T)&&n.D4.length>1&&(y||n.Er.T||n.D4[0].bY!==F.bY?n=F.bY.Ib(F,n.D4[0].X):(y=n.D4[n.D4.length-1],m=y.X/Z,!y.T&&m<.4&&(n=F.bY.Ib(F,Z-y.X))))):(F.O8<0&&(Z=Nm(F),Z.pr=""+n.X.length,this.loader.isSeeking()&&(Z.sk="1"),Z.snss=F.C,this.loader.Xp("nosq",Z)),n=m.iM(F));if(this.policy.lY)for(F=g.Y(n.D4),Z=F.next();!Z.done;Z=F.next())Z.value.type= 6;return n}; Ts.prototype.Ze=function(n,Z){if(!D2(n)||!n.bY.Pm())return!1;var F;(F=this.T.r5)||(F=D2(n)&&n.bY.Pm()&&n.N.bY.info.Qg=Z)return y.return();(F=n.N.get(0))&&eRT(n,F);g.zA(y)})}; var RGo={RrG:0,f6p:1,WqY:2,y0p:3,HKG:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};cG.prototype.decrypt=function(n){var Z=this,F,y,l,m,a,D;return g.A(function(p){switch(p.N){case 1:if(Z.N.length&&!Z.N[0].isEncrypted)return p.return();Z.X=!0;Z.Qi.SO("omd_s");F=new Uint8Array(16);Ri()?y=new g.w1(n):l=new g.$y(n);case 2:if(!Z.N.length||!Z.N[0].isEncrypted){p.ST(4);break}m=Z.N.shift();if(!y){a=l.decrypt(Ge(m.buffer),F);p.ST(5);break}return g.x(p,y.decrypt(Ge(m.buffer),F),6);case 6:a=p.X;case 5:D=a;for(var L=0;L=4)){var Z=nr(this),F=this.xhr;Z.rc=F.status;n&&(Z.ab=!0);if(F.bP()){var y="onesie.net";Z.msg=F.bP()}else F.status>=400?y="onesie.net.badstatus":F.UO()?this.p8||(y="onesie.response.noplayerresponse"):y=F.status===204?"onesie.net.nocontent":"onesie.net.connect";y?this.fail(new g.Xv(y,Z)):(this.SO("or_fs"),this.BV.nj((0,g.tP)(),F.Zn(),0),this.rM(4),this.xR&&this.Xp("rqs",Z));this.xR&&this.Xp("ombre","ok."+ +!y);this.kW=!1;H_(this); zH(this.Qi);if(!this.jB){this.yH.stop();var l;(l=this.X3)==null||l.stop()}var m;if(n=(m=this.aG)==null?void 0:t8p(m))for(m=0;m1E3){var n;(n=this.BV)==null||n.yO((0,g.tP)());n=nr(this);if(this.Y.eG()&&this.xhr instanceof R$){var Z=this.xhr;n.xrs=Z.xhr.readyState;n.xpb=Z.N.totalLength;n.xdc=Z.V}this.fail(new g.Xv("net.timeout",n))}}else(0,g.tP)()-this.BV.N>1E4&&((Z=this.BV)==null||Z.yO((0,g.tP)()),this.wH());this.isComplete()||this.YB.start()}}; g.Q.wH=function(){this.kW=!1;if(!H_(this)){var n=nr(this);n.timeout="1";this.fail(new g.Xv("onesie.request",n))}}; g.Q.fail=function(n){var Z=this;n=oG(n);this.LZ?this.mQ.FI(n):(this.md.reject(n),this.LZ=!0);zH(this.Qi);this.jB||this.yH.stop();this.SO("or_fe");var F,y;(F=this.aG)==null||(y=t8p(F))==null||y.forEach(function(l){Z.Xp("pathprobe",l)}); this.rM(5);this.dispose()}; g.Q.isComplete=function(){return this.state>=3}; g.Q.WR=function(){return this.state===4}; g.Q.ZJ=function(n){var Z,F;return this.isComplete()||!!((Z=this.qt)==null?0:(F=Z.get(n))==null?0:F.N)}; g.Q.St=function(){return!1}; g.Q.xM=function(){return this.state===5}; g.Q.notifySubscribers=function(n){for(var Z=0;Z102400&&!this.EY&&(this.SO("or100k"),this.EY=!0);if(n.Pa()){var Z=n.g4(),F=Z.totalLength;this.xR&&this.Xp("ombrss","len."+F);this.Un.feed(Z)}if(this.qt)for(var y=g.Y(this.qt.keys()),l=y.next();!l.done;l=y.next()){var m=l.value;n=void 0;(n=this.qt.get(m))==null||n.sX();this.notifySubscribers(m)}}catch(a){this.fail(a)}}; g.Q.o7=function(){return this.BV.requestNumber}; g.Q.yW=function(n){return this.Y1.get(n)}; g.Q.yb=function(){return!1}; g.Q.G3=function(){return"ONESIE"};g.d(GO,g.I);g.Q=GO.prototype; g.Q.Zc=function(n){var Z=d_(this.loader)&&n&&n.CL!==void 0&&!n.AS?n.CL*1E3+(this.loader.Kn()||0):Ae(this);if(this.policy.ZD){var F=this.zx;var y=this.lY}else F=r3(this,this.audioTrack),y=r3(this,this.videoTrack);var l=[].concat(g.t(F.XI),g.t(y.XI));GU(this)&&l.push.apply(l,g.t(this.S));var m=[].concat(g.t(F.YM),g.t(y.YM)),a=this.loader.W6();if(this.policy.Ls&&!this.videoData.isLivePlayback){var D=this.videoData.lengthSeconds*1E3;Z>=D&&this.loader.Xp("invalidSabrCmt",{cmt:Z,vd:D})}var p,L;D=this.zN; var q=this.mQ,w=this.eT,T=this.T,P=this.videoData.jT,J=this.policy,U=this.loader.TM,h=$7n(this.loader)*1E3,v=(p=this.r5)==null?void 0:p.jg;p=(L=this.r5)==null?void 0:L.Hu;var V;L=Number((V=this.X.V)==null?void 0:V.info.itag)||0;var f;V=Number((f=this.X.S)==null?void 0:f.info.itag)||0;f=this.h0;var W=this.mQ.Ul();var X=(n==null?0:n.e0)?n.e0:this.loader.isSuspended?4:void 0;Z={zN:D,mQ:q,eT:w,XI:l,YM:m,uQ:Z,nextRequestPolicy:T,u_:P,Ae:J,T8:U,Lw:h,jg:v,Hu:p,h0:f,md8:L,Y8i:V,gK:a,An:W,e0:X};l=this.loader.BH(); m=ZJ(l);l&&(Z.DS=m);if(n=d_(this.loader)&&(n==null?0:n.AS)?n.CL:this.mQ.Fw())Z.vt=n*1E3;var u;n=this.X;l=n.Tx;if(((u=n.Ae)==null?0:xm(u))&&!l)for(u=g.Y(n.T),m=u.next();!m.done;m=u.next())if(m.value.J2){l=!0;break}u=xm(n.Ae)&&!l?[]:n8U(n,n.T);Z.KE=u;u=this.X;xm(u.Ae)&&!u.w5?u=[]:(n=y1p(u),n.length===0&&(n=u.C),u=n8U(u,n));Z.fE=u;Z.nE=GU(this)?[this.C]:void 0;this.policy.Qr&&(Z.Xi=MSj(this.loader,this.audioTrack),Z.Tr=MSj(this.loader,this.videoTrack));if(this.policy.X){u=this.loader.getCurrentTime(); F=NL(this,F.XI,u);y=NL(this,y.XI,u);y=Math.min(F,y);GU(this)&&(F=NL(this,this.S,u),this.mQ.eG()&&F0)for(nQ.Xp("clsdai", {updcids:1,mt:F.toFixed(3),cid:u.join(","),rn:n}),nQ.X.clear(),F=g.Y(u),u=F.next();!u.done;u=F.next())nQ.X.add(u.value);else nQ.C&&(nQ.Xp("clsdai",{updcids:0,mt:F.toFixed(3),rn:n}),nQ.X.clear());F=g.Y(nQ.X);for(n=F.next();!n.done;n=F.next()){u=nQ;if(n=n.value){u=u.N.get(n);n={cuepointId:n};if(u==null?0:u.lk)n.adsConfig=ZJ(u.lk)||void 0;if(u==null?0:u.Jq)n.iV=u.Jq;if(u==null?0:u.A_)n.UB=u.A_;Fp&&(n.vl=n_(Fp.split(";")[0]),n.Bl=Fp.split(";")[1]||"");n.uU=(u==null?void 0:u.uU)||0;u=n}else u=void 0;u&& y.push(u)}nQ=y}Z.MM=nQ}var $U;($U=this.w5)!=null&&$U.X.clear()}else if($U=(nQ=this.J)==null?void 0:nQ.LS(y))Z.g8=$U}this.policy.Ns&&this.N.length>0&&this.N[0].RK()&&(Z.o9=this.N[0].HY());return Z}; g.Q.pU=function(n,Z){this.Pr=void 0;zcj(this);hTY(this,n,Z)}; g.Q.p_=function(n){if(this.N.length===0)return!1;var Z=this.N[0];return Z instanceof LL?n===this.loader.getCurrentTime()*1E3:!(Z instanceof Dt&&Io3(Z.info))&&Math.abs(Z.Up()-n)<50}; g.Q.nB=function(n,Z){this.T=n;this.policy.X&&!n.playbackCookie&&this.loader.Xp("sbrnocookie",{rn:Z!=null?Z:-1});this.Pr=(0,g.tP)()+(n.backoffTimeMs||0)}; g.Q.JH=function(n,Z){if(n.action===void 0){var F=this.mQ.Fw();F!==void 0&&this.loader.HM(F)}else if(n.action!==0||!this.fR)if(n.action===0&&this.policy.PO&&(n.action=2),n.QH==="sabr.malformed_config"&&this.xi++<3)this.loader.handleError("sabr.malformed_config",{action:n.action,rn:Z,retry:this.xi},0);else switch(n.QH==="sabr.malformed_config"&&(n.action=2),F={},F.reason=n.QH,F.action=n.action,F.rn=Z,n.action){case 1:this.policy.X&&this.J&&this.J.L3(void 0,void 0,F);break;case 0:this.fR=!0;this.videoData.Cq()&& this.policy.X&&this.J&&this.J.L3(void 0,void 0,F,!1);this.loader.GX(F);break;case 2:Yie(n.QH)!=="sabr.config"&&delete F.reason;this.loader.handleError(Yie(n.QH),F,1);break;case 3:this.policy.kV&&((n=this.eT.Pr)!=null&&(n.L=!0),this.loader.handleError("sabr.hostfallback",F))}}; g.Q.FF=function(n){n&&(this.loader.Xp("sabrctxt",{onsbrctxt:n.type,scp:n.scope,dflt:n.sendByDefault}),n.type&&n.sendByDefault&&this.videoData.jT.add(n.type),n.scope!==2&&(n.type&&this.videoData.sabrContextUpdates.set(n.type,n),this.mQ.FF(n)))}; g.Q.r0=function(){}; g.Q.yB=function(n,Z){if(this.loader.VT)this.loader.Xp("sdai",{ignSabrSeek:1,smt:n==null?void 0:n.F3,rn:Z});else if(n.F3!==void 0&&n.K1){Z=n.F3/n.K1;this.audioTrack.C=!1;this.videoTrack.C=!1;if(this.policy.Tx||this.policy.KP||this.policy.jk)this.loader.VU.N=!1;if(this.mQ.getCurrentTime()!==Z){var F={eO:"sabr_seek",cM:!0,I_:!0};n.seekSource&&(F.seekSource=n.seekSource);tn(this.loader,Z+.1,F)}}}; g.Q.onSnackbarMessage=function(n){this.mQ.publish("onSnackbarMessage",n)}; g.Q.Y8=function(n,Z){this.policy.C&&!Inf(this.videoData)&&this.loader.Y8(n,Z)}; g.Q.qP=function(n){n.tN&&n.rz&&tA(this.eT,n.tN,n.rz);this.policy.s1&&(n.TD&&n.Ey&&(this.eT.c_=n.TD/n.Ey),n.BR&&n.DO&&(this.eT.dK=n.BR/n.DO));fC(this.videoData)&&!this.videoData.sV&&n.rz&&this.loader.LD(n.rz,1E3);n.EE!=null&&this.mQ.SS(n.EE);n.QC&&(n=((0,g.tP)()-n.QC)/1E3,this.loader.QV.Oj(1,n))}; g.Q.NQ=function(n){this.loader.NQ(n)}; g.Q.Yp=function(n){return this.videoData.jT.has(n)}; g.Q.ew=function(n,Z,F){this.policy.T&&this.loader.Xp("sabrctxtplc",{start:n?n.join("_"):"",stop:Z?Z.join("_"):"",discard:F?F.join("_"):""});if(n){n=g.Y(n);for(var y=n.next();!y.done;y=n.next())this.videoData.jT.add(y.value)}if(Z)for(Z=g.Y(Z),n=Z.next();!n.done;n=Z.next())n=n.value,this.videoData.jT.has(n)&&this.videoData.jT.delete(n);if(F)for(F=g.Y(F),Z=F.next();!Z.done;Z=F.next())if(Z=Z.value,this.videoData.sabrContextUpdates.has(Z)&&this.videoData.sabrContextUpdates.delete(Z),this.policy.Ns&&this.N.length)for(n= g.Y(this.N),y=n.next();!y.done;y=n.next())if(y=y.value,!(y instanceof LL)){var l=void 0;((l=y.a9)==null?void 0:l.type)===Z&&(y.a9=void 0)}}; g.Q.g0=function(){}; g.Q.kO=function(n){this.C=n}; g.Q.MC=function(n){this.S=n}; g.Q.aL=function(n,Z){m4(this.policy,n,4,Z)}; g.Q.Oi=function(n){if(n==null?0:n.cP)if(n=n.cP.po){n=g.Y(n);for(var Z=n.next();!Z.done;Z=n.next())if(Z=Z.value,Z.formatId){var F=this.eT.T.get(jF(Z.formatId));F&&F.info&&(F.info.debugInfo=Z.debugInfo)}}}; g.Q.OT=function(n){this.yg=!0;this.mQ.publish("reloadplayer",n)}; g.Q.UG=function(){return this.mQ.UG()||""}; g.Q.WY=function(){var n=RLQ(this);return Math.min(n.R2,n.FC)}; g.Q.oW=function(n,Z){this.loader.Xp(n,Z)}; g.Q.uS=function(n){ac(this.loader,VXU(this.Yi,n))}; g.Q.wg=function(n,Z){this.videoData.wg(n,Z)}; g.Q.IY=function(){g.I.prototype.IY.call(this);this.T=void 0;hTY(this,!0,"i");this.N=[]};R9.prototype.Tx=function(n){dd(n.state)&&BpQ(this.T)}; R9.prototype.clear=function(){tjo(this.T);this.S.clear();this.X.clear();this.Pr=this.L=NaN;this.C=!1}; R9.prototype.cA=function(){this.isSeeking=!0;this.N===1&&tjo(this.T);this.N===0&&this.L6.V9("transitiondetector");this.C=!1;this.L=NaN;this.J=this.xd};r9.prototype.YA=function(n,Z){if(this.V)return yp3(this,Z);if(Z=dg(n)){var F=Z.N;F&&F.T&&F.N&&(n=n.X.length?n.X[0]:null)&&n.state>=2&&!n.xM()&&n.info.DC===0&&(this.V=n,this.J=F,this.X=Z.info,this.C=this.startTimeSecs=Date.now()/1E3,this.S=this.X.startTime)}return NaN}; r9.prototype.clear=function(){this.X=this.J=this.V=null;this.N=this.S=this.C=this.startTimeSecs=NaN;this.T=!1};g.d(W7,g.I);W7.prototype.IY=function(){j5n(this);g.I.prototype.IY.call(this)};var S8n=/[?&]cpn=/;g.d(rE,g.I);rE.prototype.flush=function(){var n={};this.X&&(n.pe=this.X);this.N.length>0&&(n.pt=this.N.join("."));this.N=[];return n}; rE.prototype.stop=function(){var n=this,Z,F,y;return g.A(function(l){if(l.N==1)return g.RX(l,2),g.x(l,(Z=n.V)==null?void 0:Z.stop(),4);if(l.N!=2)return(F=l.X)&&n.logTrace(F),g.iX(l,0);y=g.d4(l);n.X=QK7(y.message);g.zA(l)})}; rE.prototype.logTrace=function(n){this.encoder.reset();this.encoder.add(1);this.encoder.add(n.resources.length);for(var Z=g.Y(n.resources),F=Z.next();!F.done;F=Z.next()){F=F.value.replace("https://www.youtube.com/s/","");this.encoder.add(F.length);for(var y=0;y=0?n:g.kq(this.provider),this.w5?thd.has(this.gV)&&(this.N.size||(this.gV==="PL"?n>=this.X+30:n<=this.Ns+30||n>=this.X+1200&&n<=this.Ns+86400))&&(g.bM(this,n,"vps",[this.gV]),this.X=n):["PL","B","S"].indexOf(this.gV)>-1&&(this.N.size||n>=this.X+30)&&(g.bM(this,n,"vps",[this.gV]),this.X=n),this.N.size)){this.sequenceNumber===7E3&&g.yi(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Z9(this,n);var Z=this.provider.mQ.Id(); Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next())F=F.value,this.Xp(F.key,F.value);Z=n;F=this.provider.mQ.Iy();var y=F.droppedVideoFrames||0,l=F.totalVideoFrames||0,m=y-this.GY,a=l&&!this.pz;y>F.totalVideoFrames||m>5E3?$Ij(this,"html5.badframedropcount","df."+y+";tf."+F.totalVideoFrames):(m>0||a)&&g.bM(this,Z,"df",[m]);this.GY=y;this.pz=l;this.L>0&&(g.bM(this,n,"glf",[this.L]),this.L=0);ZA.isActive()&&(n=ZA.gr(),Object.keys(n).length>0&&this.Xp("profile",n));this.SG&&Jm(this,"lwnmow");this.provider.Y.eG()&& this.provider.j("html5_record_now")&&this.Xp("now",{wt:(0,g.tP)()});Z={};this.provider.videoData.X&&(Z.fmt=this.provider.videoData.X.itag,(n=this.provider.videoData.V)&&n.itag!==Z.fmt&&(Z.afmt=n.itag));Z.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(Z.adcpn=this.adCpn);this.Sy&&(Z.addocid=this.Sy);this.provider.videoData.cotn&&(Z.cotn=this.provider.videoData.cotn);Z.el=V7(this.provider.videoData);Z.content_v=r2(this.provider.videoData);Z.ns=this.provider.Y.Ns;Z.fexp=FLo(this.provider.Y.experiments).toString(); Z.cl=(827279819).toString();(n=this.provider.videoData.adFormat||this.adFormat)&&(Z.adformat=n);(n=Ap(this.provider.videoData))&&(Z.live=n);this.provider.videoData.mF()&&(Z.drm=1,this.provider.videoData.S&&(Z.drm_system=Agv[this.provider.videoData.S.flavor]||0),this.provider.videoData.drmProduct&&(Z.drm_product=this.provider.videoData.drmProduct));jU()&&this.provider.videoData.C&&(Z.ctt=this.provider.videoData.C,Z.cttype=this.provider.videoData.zy,this.provider.videoData.mdxEnvironment&&(Z.mdx_environment= this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(Z.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.aT&&(Z.dai_fallback="1")):this.provider.videoData.sS?Z.dai="cs":this.provider.videoData.DK&&(Z.dai="disabled");Z.seq=this.sequenceNumber++;if(this.provider.videoData.zE){if(n=this.provider.videoData.zE,Z&&n)for(n.ns==="3pp"&&(Z.ns="3pp"),this.mC.has(n.ns)&&Jm(this,"hbps"),n.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext= n.shbpslc),this.provider.Y.experiments.RY("html5_use_server_qoe_el_value")&&this.hG.delete("el"),F=g.Y(Object.keys(n)),y=F.next();!y.done;y=F.next())y=y.value,this.hG.has(y)||(Z[y]=n[y])}else Z.event="streamingstats",Z.docid=this.provider.videoData.videoId,Z.ei=this.provider.videoData.eventId;this.isEmbargoed&&(Z.embargoed="1");Object.assign(Z,this.provider.Y.N);(n=Z.seq)&&!this.provider.Y.experiments.OS().N.Wx(aPP)&&(F=e6n(this,+n),F=g.py(F,EZe),F=g.Ee(F,4),this.N.set("qclc",[F]));Z=g.pQ("//"+this.provider.Y.eP+ "/api/stats/qoe",Z);y=F="";l=g.Y(this.N.entries());for(m=l.next();!m.done;m=l.next()){a=g.Y(m.value);m=a.next().value;a=a.next().value;var D=void 0;(D=a)!=null&&D.join&&(m="&"+m+"="+a.join(","),m.length>100?y+=m:F+=m)}this.provider.Y.experiments.OS().N.Wx(aPP)&&(n=e6n(this,+(n||0)),n.qoePingUrl=Z+F+y,g.xt("qoeClientLoggingContext",n),F+="&dl=1");iBY(this,Z+F,y.replace(/ /g,"%20"))}this.N.clear()}}; g.Q.CT=function(n){this.SG=n}; g.Q.Cd=function(){if(this.provider.videoData.S){var n=this.provider.videoData.S;Jm(this,"eme-"+(n.keySystemAccess?"final":YI(n)?"ms":vc(n)?"ytfp":J_(n)?"safarifp":"nonfinal"))}}; g.Q.Aw=hA(53);g.Q.nh=function(n){this.isEmbargoed=n}; g.Q.uG=hA(30);g.Q.Om=hA(36);g.Q.onPlaybackRateChange=function(n){var Z=g.kq(this.provider);n&&n!==this.N1&&(g.bM(this,Z,"rate",[n]),this.N1=n);this.w5||this.reportStats(Z)}; g.Q.Mg=hA(24);g.Q.getPlayerState=function(n){if(g.b(n,128))return"ER";if(g.b(n,2048))return"B";if(g.b(n,512))return"SU";if(g.b(n,16)||g.b(n,32))return"S";if(n.isOrWillBePlaying()&&g.b(n,64))return"B";var Z=kcI[$G(n)];g.f4(this.provider.Y)&&Z==="B"&&this.provider.mQ.getVisibilityState()===3&&(Z="SU");Z==="B"&&g.b(n,4)&&(Z="PB");return Z}; g.Q.oI=function(n,Z){var F=g.kq(this.provider);g.bM(this,F,"vfi",[n==="A"?"":""+(Z!=null?Z:0),n])}; g.Q.IY=function(){g.I.prototype.IY.call(this);g.gg(this.Tx);g.gg(this.Bx)}; g.Q.XN=function(n){this.isOffline=n;g.bM(this,g.kq(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.Q.Xp=function(n,Z,F){var y=this.Z8.indexOf(n)!==-1;y||this.Z8.push(n);if(!F||!y){Z=typeof Z!=="string"?UQ(Z):Z;Z=Q3i(Z);if(!F&&!/^t[.]/.test(Z)){var l=g.kq(this.provider)*1E3;Z="t."+l.toFixed()+";"+Z}mS(this,"ctmp",n+":"+Z);MI7(this);return l}}; g.Q.WC=function(n,Z,F){this.S={NBp:Number(this.Xp("glrem",{nst:n.toFixed(),rem:Z.toFixed(),ca:+F})),WD:n,ZNT:Z,isAd:F}}; g.Q.fU=function(n,Z,F){g.bM(this,g.kq(this.provider),"ad_playback",[n,Z,F])}; g.Q.S3=function(n,Z){var F=g.kq(this.provider)*1E3;mS(this,"daism","t."+F.toFixed(0)+";smw."+(n*1E3).toFixed(0)+";smo."+(Z*1E3).toFixed(0))}; g.Q.resume=function(){var n=this;isNaN(this.Tx)?Hkf(this):this.Tx=g.Cb(function(){n.reportStats()},1E4)}; var QK={},kcI=(QK[5]="N",QK[-1]="N",QK[3]="B",QK[0]="EN",QK[2]="PA",QK[1]="PL",QK[-1E3]="ER",QK[1E3]="N",QK),thd=new Set(["PL","B","S"]),C5=[];g.d(g.ao,g.I);g.Q=g.ao.prototype; g.Q.initialize=function(n,Z,F){n=n||0;this.policy.N||(Z=bXQ(this.N),WCi(this.mQ,new Ou(Z.video,Z.reason)),this.mQ.Y3(new Ou(Z.audio,Z.reason)));this.policy.N&&oJ(this);this.eT.isManifestless&&eqi(this.C);this.L&&st7(this.L,this.videoTrack.bY);Z=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var y=!this.eT.isManifestless;this.policy.ri&&(y=y||this.eT.z7);if(!this.policy.jT||this.policy.Bx)this.currentTime=y?n:Z;this.policy.Tx&&this.seek(this.getCurrentTime(),{}).Mc(function(){}); if(this.policy.N){var l;((l=this.Ns)==null?0:Nuf(l,this.UG()||""))&&xMo(this)&&yV(this,this.videoTrack)&&yV(this,this.audioTrack)&&(mMP(this.X,this.Ns),this.policy.S&&TZe(this))}else this.Tx&&(RY8(this,this.videoTrack),RY8(this,this.audioTrack),Frj(this.Tx),delete this.Tx);F?(n4(this,!1),g.J3(this.Ix)):(n=this.getCurrentTime()===0,ho(this.C,this.videoTrack,this.videoTrack.bY,n),ho(this.C,this.audioTrack,this.audioTrack.bY,n),this.policy.N&&rn8(this.X,{e0:1}),this.policy.Tx||this.seek(this.getCurrentTime(), {}).Mc(function(){}),this.timing.tick("gv")); (this.eT.Nt||this.eT.DE||this.eT.ze||this.eT.lf||this.eT.YN)&&this.mQ.TP(this.eT)}; g.Q.resume=function(){if(this.isSuspended||this.CB){this.JE=this.CB=this.isSuspended=!1;try{this.YA()}catch(n){g.ZW(n)}}}; g.Q.iE=function(){return!this.policy.mC}; g.Q.MD=function(n,Z){n=n===void 0?!1:n;Z=Z===void 0?!1:Z;w$3(this);this.mQ.Ef()&&(this.J=NaN);n?(this.policy.r5&&this.Xp("loader",{setsmb:1}),this.policy.lY=!0,this.gW()):(n4(this,!1),Z||this.gW())}; g.Q.setAudioTrack=function(n,Z,F){F=F===void 0?!1:F;if(!this.CR()){var y=!isNaN(Z);F&&y&&(this.audioTrack.Ns=Date.now(),this.policy.RX&&(this.Yi=!0));F=this.mQ.Ef()&&!this.mQ.getVideoData().L;if(this.policy.N){var l=this.V.zp(n.id,y);this.mQ.Y3(l)}else l=this.N,l.X=l.eT.N[n.id],l.J=l.X,l=new Ma(l.J,l.T,y?"t":"m"),this.mQ.Y3(new Ou(l.audio,l.reason));y?(this.SG=Date.now(),y=this.audioTrack.bY.index.Um(Z),this.Xp("setAudio",{id:n.id,cmt:Z,sq:y}),y>=0&&(n=this.policy.iA?y+1:y,this.policy.N&&this.pU(!0, "mosaic"),$c(this.audioTrack,n,NaN,NaN),!this.policy.oX&&this.eT.isLive&&KK(this.eT,n,!1))):F||this.mQ.SU()}}; g.Q.setPlaybackRate=function(n){n!==this.Pr.getPlaybackRate()&&this.Pr.setPlaybackRate(n)}; g.Q.X_=function(n){var Z=this.X.C;this.X.kO(n);this.Xp("scfidc",{curr:jF(Z),"new":jF(n)});n&&jF(n)!==jF(Z)&&(this.pU(!0,"caption change"),this.YA())}; g.Q.NJ=function(n){this.X.MC(n)}; g.Q.vz=function(n){n.N.info.BE()?this.mQ.Y3(n):WCi(this.mQ,n)}; g.Q.uS=function(n){hY(n.D4[n.D4.length-1])&&ac(this,VXU(this.N,n.D4[0].bY))}; g.Q.BH=function(){return this.mQ.BH()}; g.Q.W6=function(){return this.mQ.W6()}; g.Q.NQ=function(n){this.mQ.B().eG()&&this.Xp("sps",{status:n.QB||""});if(n.QB===1)this.aj=0;else if(n.QB===2||n.QB===3){var Z=!1;if(n.QB===3){var F;this.cV=(F=n.HNr)!=null?F:Infinity;this.aj+=1;(Z=h5(this))&&this.ya(!0)}this.mQ.C9(!0,Z)}}; g.Q.oG=function(){return this.mQ.oG()}; g.Q.bG=function(){return this.mQ.bG()}; g.Q.r9=function(n){this.mQ.r9(n)}; g.Q.tn5=function(){var n,Z=(n=this.mQ.HV())==null?void 0:n.getCurrentTime();Z?this.mQ.Xp("rms",{cta:Z}):g.J3(this.ud)}; g.Q.YA=function(){lV(this);if(this.KR&&PU(this.KR)&&!this.KR.vn()&&(!this.policy.jT||isFinite(this.getCurrentTime()))){var n=m1(this.videoTrack);n=this.policy.zHG&&n&&n.tF();this.eT.isManifestless&&this.eT.V&&RP(this.eT)?(this.J=RP(this.eT),this.KR.EW(this.J)):niQ(this.eT)&&!n?isNaN(this.J)?(this.J=this.getCurrentTime()+3600,this.KR.EW(this.J)):this.J<=this.getCurrentTime()+1800&&(this.J=Math.max(this.J+1800,this.getCurrentTime()+3600),this.KR.EW(this.J)):this.KR.isView||(n=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==n)&&n>0&&(this.KR.EW(n),this.J=n))}if(!this.CR())if(q9i(this.eT)&&this.eT.xM()){var Z=this.eT;this.handleError("manifest.net.retryexhausted",Z.xi?{rc:Z.Wm}:{rc:Z.Wm.toString()},1)}else if(this.policy.N)a:{try{if(d_(this)&&this.Y0){var F=this.X,y=this.Y0,l=y.N;if(l){var m=F.mQ.Fw(),a=!0;m||(m=F.loader.getCurrentTime(),a=!1);Z=m;var D=a?F.mQ.vH(Z):Z;if(F.loader.TW(D))var p=!1;else{var L={t:Z.toFixed(3),isUtc:a};c:{var q=F.mQ.UG();if(q){for(var w= g.Y([F.audioTrack,F.videoTrack]),T=w.next();!T.done;T=w.next()){var P=KF(T.value.bY,F.eT.t2);m=void 0;var J=((m=l)==null?void 0:m.Dr(P,q))||[];if(J.length===0||!Dse(new HM(J),D)){var U=!1;break c}}U=!0}else U=!1}if(U)F.loader.Xp("prebuffer",Object.assign(L,{inrange:1})),p=!0;else{if(Io3(l.info)){var h;if(h=a){var v,V;h=(((v=l.info.N)==null?void 0:(V=v.Dw)==null?void 0:V.vt)||0)===Z*1E3}var f=h}else f=!a&&m1o(l.info)===Z*1E3;f?(F.loader.Xp("prebuffer",Object.assign(L,{match:1})),p=!0):p=!1}}if(p){F.mQ.SO("ismp_c"); F.N.push(l);var W;(W=F.Wr)==null||k4(W,l.info.Er);l.d9();JH(y,!1)}}}vBU(this.X);this.eT.isManifestless&&this.policy.S&&no(this.VU);var X;((X=this.KR)==null?0:ua(X))&&this.fz();rn8(this.X);if(d_(this)&&this.Y0){var u=this.X,Fp=this.Y0,nQ=Fp.X.CL;if(nQ!==void 0&&nQ>=0){u.mQ.SO("ismp_a");var $U=Fp.X;var mY=$U.CL;if(mY===void 0)var LQ=!1;else{var Zi=$U.AS?u.mQ.vH(mY):mY,Qe;if(Qe=!u.loader.TW(Zi)&&pon(u,u.hG)){var eo=u.mQ.getCurrentTime()*1E3,av=ghT(u,eo),lO=av.Nq;Qe=av.Qz>=7E3&&lO>=7E3}LQ=Qe}if(LQ){var kU= Wxp(u,$U);u.policy.uw>0&&u.hG.RE++;kU&&(Fp.N!==kU&&(yae(Fp),Fp.N=kU,Fp.X=NjQ),u.mQ.SO("ismp_rc"))}}}}catch(WT){g.yi(WT);Z=WT;if(Z.message.includes("changeType")){this.Xp("ctype",{exp:Z.name,msg:Z.message,s:Z.stack});break a}this.handleError("fmt.unplayable",{exp:Z.name,msg:Z.message,s:Z.stack,trg:"sabrslicerqt"},1)}vZj(this);g.J3(this.hG)}else if(!this.eT.X||!osP(this.videoTrack)&&!osP(this.audioTrack)||(this.videoTrack.V||this.audioTrack.V)&&this.policy.mJ?F=!1:(this.gW(),this.mQ.seekTo(Infinity, {eO:"checkLoaderTracksSync",LD:!0}),F=!0),!F){lV(this);this.eT.isManifestless&&(qQe(this.videoTrack),qQe(this.audioTrack),no(this.VU),(F=dg(this.videoTrack))&&F.N&&(F=F.N.T&&!this.policy.Yc,this.Xp(F===this.policy.L.F0?"strm":"strmbug",{strm:F,sfmp4:this.policy.L.F0,dfs:this.policy.Yc},!0)));if(this.KR)this.fz();else if(this.policy.V){F=!1;if(this.policy.Uc)for(y=g.Y([this.videoTrack,this.audioTrack]),l=y.next();!l.done;l=y.next()){p=l.value;for(l=dg(p);l&&p.pB()!==m1(p);l=dg(p))p.Ba(l);F=F||!!l}else(Z= dg(this.videoTrack))&&this.videoTrack.Ba(Z),(a=dg(this.audioTrack))&&this.audioTrack.Ba(a);b1(this.videoTrack)&&b1(this.audioTrack)||(Z||a||F)&&mx(this)}KM(this);ho(this.C,this.videoTrack,this.videoTrack.bY,!1);ho(this.C,this.audioTrack,this.audioTrack.bY,!1);if(!this.policy.XT&&(Z=this.videoTrack,y=this.audioTrack,(!this.KR||PU(this.KR)&&!this.policy.tY)&&!this.VU.isSeeking()&&(this.policy.N||D2(Z)&&Z.bY.Pm()&&this.N.Ns)))a:{if(a=this.getCurrentTime(),F=this.Pr,y=PE(F,Z.bY.info.Qg,y.bY.info.Qg,0), l=oW(F.zN)+y/TR(F.zN),a+=Math.max(l,l+F.policy.Vr-y/Z.bY.info.Qg),Z.X.length){if(Z.X[0].info.D4[0].startTime<=a)break a;eY(Z)}F=Z.T;for(y=F.X.length-1;y>=0;y--)F.X[y].info.startTime>a&&F.X.pop();lkU(Z);Z.N&&a5&&L.Pr.shift();Z=Z.O8;var q;if((q=this.mQ.getVideoData())==null?0:q.enableServerStitchedDai)q=y7P(this.audioTrack,Z),F=y7P(this.videoTrack,Z),q!==0&&F!==0&&q!==F&&this.handleError("ssdai.avsync",{sq:Z,a:q,v:F}, 0)}}; g.Q.EN=function(n,Z,F,y){n.info.video&&this.T.EN(Z,F,y)}; g.Q.Bz=function(n){this.N.Bz(n)}; g.Q.TL=hA(12);g.Q.fW=function(){if(g.b(this.mQ.getPlayerState(),8)){var n,Z,F=(Z=(n=this.mQ.HV())==null?void 0:n.getCurrentTime())!=null?Z:this.mQ.getCurrentTime(),y;(y=this.yg)==null||Ze8(y,F)}var l;(l=this.kV)==null||g.J3(l)}; g.Q.HP=function(){return this.videoTrack.C||this.audioTrack.C}; g.Q.seek=function(n,Z){if(this.CR())return cc();if(this.HP())return cc("seeking to head");if(this.policy.Tx&&!isFinite(n))return c6T(this.VU),g.Bp(Infinity);lV(this);MHT(this,n,!1,Z.seekSource);oJ(this);this.policy.N||KM(this,n);this.KR&&this.KR.N&&this.KR.X&&!this.mQ.getVideoData().s1&&(this.KR.N.isLocked()||this.KR.X.isLocked())&&this.mQ.SU({reattachOnLockedBuffer:1,vsb:""+this.KR.X.isLocked(),asb:""+this.KR.N.isLocked()});var F=this.getCurrentTime(),y=this.VU.seek(n,Z);if(!this.policy.jT||this.policy.Bx)this.currentTime= y;xY(this.T,n,F,this.policy.cq&&!Z.cM);mx(this);return g.Bp(y)}; g.Q.p_=function(n){return this.policy.N&&this.X.p_(n)}; g.Q.Yp=function(n){return this.X.Yp(n)}; g.Q.pU=function(n,Z){this.X.pU(n,Z)}; g.Q.getCurrentTime=function(){if(this.policy.jT){var n=this.Kn()||0;return this.mQ.getCurrentTime(!0)-n}return this.currentTime}; g.Q.z3=function(){return this.audioTrack.bY.info}; g.Q.XZ=function(){return this.videoTrack.bY.info}; g.Q.Nm=function(){return this.audioTrack.bY.info.vr}; g.Q.Xy=function(){return this.videoTrack.bY.info.vr}; g.Q.IY=function(){try{this.MD(),eY(this.audioTrack),eY(this.videoTrack),w0(this.audioTrack),w0(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.I.prototype.IY.call(this)}catch(n){g.ZW(n)}}; g.Q.handleError=function(n,Z,F){F=F===void 0?0:F;var y=W0(F);n==="fmt.unplayable"&&this.eT.isLive&&(this.policy.JT=!1,OK(this.eT));Z=new g.Xv(n,Z,F);g.c2(this);UQ(Z.details);this.mQ.handleError(Z);n!=="html5.invalidstate"&&Z.errorCode!=="fmt.unplayable"&&n!=="fmt.unparseable"&&y&&this.dispose()}; g.Q.Zx=function(){var n=m1(this.audioTrack),Z=m1(this.videoTrack);n={lct:this.getCurrentTime().toFixed(3),lsk:this.VU.isSeeking(),lmf:this.N.N.isLocked(),lbw:do3(this.schedule).toFixed(3),lhd:oW(this.schedule).toFixed(3),lst:((this.schedule.J.lH()||0)*1E9).toFixed(3),laa:n?n.bd():"",lva:Z?Z.bd():"",lar:this.audioTrack.N?this.audioTrack.N.bd():"",lvr:this.videoTrack.N?this.videoTrack.N.bd():"",laq:""+HK(this.audioTrack),lvq:""+HK(this.videoTrack)};this.KR&&!this.KR.JX()&&this.KR.N&&this.KR.X&&(n.lab= dr(this.KR.N.qj()),n.lvb=dr(this.KR.X.qj()));this.w5&&(n.lapt=((0,g.tP)()-this.w5).toFixed(0),n.lapr=VvQ(this));this.r5&&(n.lapmabht=((0,g.tP)()-this.r5).toFixed(0),n.lapmabh=Jf(this,this.audioTrack).toFixed(0));this.fR&&(n.lapmvbht=((0,g.tP)()-this.fR).toFixed(0),n.lapmvbh=Jf(this,this.videoTrack).toFixed(0));this.aY&&(n.lapsdai=((0,g.tP)()-this.aY).toFixed(0));return n}; g.Q.gW=function(){try{this.policy.N&&this.X.pU(!1,"pending"),this.audioTrack.gW(),this.videoTrack.gW()}catch(n){g.ZW(n)}this.policy.V=""}; g.Q.TW=function(n){return this.videoTrack&&this.audioTrack?this.videoTrack.TW(n)&&this.audioTrack.TW(n):!0}; g.Q.wy=function(){return ML(this.Pr)}; g.Q.Xp=function(n,Z,F){this.mQ.Xp(n,Z,F===void 0?!1:F)}; g.Q.UG=function(){return this.mQ.UG()}; g.Q.LD=function(n,Z){n/=Z;isNaN(this.timestampOffset)&&c9(this,n-Math.min(n,this.policy.Mo));return(n-this.timestampOffset)*Z}; g.Q.Kn=function(){return this.timestampOffset}; g.Q.isSeeking=function(){return this.VU.isSeeking()}; g.Q.Qv=function(){this.T.Qv()}; g.Q.r6=function(n,Z,F){Z=Z===void 0?!1:Z;F=F===void 0?{}:F;this.policy.N?this.V.r6(n,Z,F):this.N.r6(n,Z,F)}; g.Q.wZ=function(n,Z){if(this.policy.X&&(this.VT||this.isSeeking()))return this.Xp("sdai",{ignoreSkip:"1",isSkip:this.VT,isSeek:this.isSeeking(),t:n.toFixed(3)}),!1;var F=this.policy.X&&(this.policy.C||this.policy.XH),y=this.videoTrack.bY.index.Um(n),l=!1;if(F){var m;if(l=!((m=this.Wr)==null||!m.A0(n,y,this.timestampOffset)))if(n9(this,n,n,y),this.S){var a;(a=this.S)==null||a.A0(n,y)}}else this.S&&(l=!!this.T.wZ(n,this.S));if(!l)return this.handleError("ad.skipfailed",{dec:!!this.S,t:n.toFixed(3), sq:y}),!1;this.policy.X&&(this.Xp("sdai",{skipAdStd:"1"}),this.VT=!0);if(this.policy.Hx){var D;(D=this.yg)==null||D.clear()}c9(this,this.timestampOffset-Z);mx(this);this.policy.X&&(OK(this.eT),w0(this.audioTrack),w0(this.videoTrack),this.gW());return!0}; g.Q.getManifest=function(){return this.eT}; g.Q.isOffline=function(){return!!this.mQ.getVideoData().cotn}; g.Q.Eh=function(n,Z){this.mQ.Eh(n,Z)}; g.Q.GW=function(n,Z){if(this.policy.N)MHT(this,n,!0,Z),this.X.pU(!0,"utc"),this.YA();else if(Z=this.mQ.getVideoData().Ej){var F=this.C;F.Nh=n;F.Ej=Z;Hp(this)}}; g.Q.HM=function(n){this.videoTrack.C=!1;this.audioTrack.C=!1;this.VU.N=!1;this.mQ.HM(n)}; g.Q.Du=function(n){this.VU.Du(n-this.Kn())}; g.Q.Yu=function(){this.mQ.Yu()}; g.Q.ya=function(n){n!==this.policy.fF&&((this.policy.fF=n)||this.YA())}; g.Q.SU=function(n){this.mQ.SU(n)}; g.Q.CT=function(n){this.mQ.CT(n)}; g.Q.va=function(n,Z,F){var y;(y=this.Wr)==null||y.va(n,Z,F);this.policy.C&&(this.X.Pr=void 0,this.YA())}; g.Q.j3=function(n){var Z;(Z=this.Wr)==null||Z.j3(n)}; g.Q.Y8=function(n,Z){if(this.policy.C){var F,y=(F=n.Cv)==null?void 0:F[0],l,m,a;this.Xp("clidai",{onqlst:1,len:((l=n.Cv)==null?void 0:l.length)||0,rn:Z,evt:DyP(y==null?void 0:(m=y.q1)==null?void 0:m.event),cid:(y==null?void 0:(a=y.q1)==null?void 0:a.identifier)||"null",sq:(y==null?void 0:y.qg)||-1,trk:(y==null?void 0:y.trackType)||"null"});var D;(D=this.Wr)==null||D.Y8(n,Z,this.S||void 0)}}; g.Q.prefetchKeyPlay=function(n,Z){var F=this;if(d_(this)){var y=eD3().legacyApplicationQuality==="limited-memory";this.policy.uD&&y||(this.Y0||(this.Y0=new hmY(function(l){F.mQ.SO(l)}),g.S(this,this.Y0)),w03(this.Y0,{CL:n, AS:Z,e0:2}),this.YA())}};g.Q=g.qh.prototype;g.Q.TH=function(n,Z,F,y,l,m){return this.CJ.TH(n,Z,F,y,l,m)}; g.Q.e$=function(n,Z,F,y,l,m){return this.CJ.e$(n,Z,F,y,l,m)}; g.Q.LS=function(n){return this.CJ.LS(n)}; g.Q.aQ=function(n){this.CJ.aQ(n)}; g.Q.L3=function(n,Z,F,y){return this.CJ.L3(n,Z,F,y)}; g.Q.Qv=function(){this.CJ.Qv()}; g.Q.A0=function(n,Z){this.CJ.A0(n,Z)}; g.Q.lr=function(){this.CJ.lr()}; g.Q.Hy=hA(56);g.Q.Te=function(n,Z,F){this.CJ.Te(n,Z,F)}; g.Q.Rj=hA(59);g.Q.l4=function(n,Z,F,y,l,m,a,D,p){this.CJ.l4(n,Z,F,y,l,m,a,D,p)}; g.Q.A8=function(n){this.CJ.A8(n)}; g.Q.aE=function(n){return this.CJ.aE(n)}; g.Q.BY=function(n){return this.CJ.BY(n)}; g.Q.ZH=function(n){return this.CJ.ZH(n)};g.d(we,g.Xu);g.d(rN,we);rN.prototype.C=function(n,Z){if(n&&Z){var F=Number(AK(n,"cpi"))*1+1;isNaN(F)||F<=0||Fthis.T&&(this.T=F,g.Zc(this.N)||(this.N={},this.V.stop(),this.X.stop())),this.N[Z]=n,g.J3(this.X))}}; rN.prototype.S=function(){for(var n=g.Y(Object.keys(this.N)),Z=n.next();!Z.done;Z=n.next()){var F=Z.value;Z=this.publish;for(var y=this.T,l=g.Gj(this.N[F]),m=[],a=g.Y(l[6].split("&")),D=a.next();!D.done;D=a.next())D=D.value,D.indexOf("cpi=")===0?m.push("cpi="+y.toString()):D.indexOf("ek=")===0?m.push("ek="+g.J5(F)):m.push(D);l[6]="?"+m.join("&");F="skd://"+l.slice(2).join("");l=F.length*2;y=new Uint8Array(l+4);y[0]=l%256;y[1]=(l-y[0])/256;for(l=0;l0)for(var F=g.Y(this.N),y=F.next();!y.done;y=F.next())if(Z===y.value.info.cryptoPeriodIndex){Z=!0;break a}Z=!1}if(!Z){Z=(0,g.tP)();a:{F=n.cryptoPeriodIndex;if(!isNaN(F)){y=g.Y(this.T.values());for(var l=y.next();!l.done;l=y.next())if(Math.abs(l.value.cryptoPeriodIndex-F)<=1){F=!0;break a}}F=!1}F?(F=n.N,F=Math.max(0,Math.random()*((isNaN(F)?120:F)-30))*1E3):F=0;this.publish("log_qoe",{wvagt:"delay."+F,cpi:n.cryptoPeriodIndex,reqlen:this.N.length}); F<=0?qye(this,n):(this.N.push({time:Z+F,info:n}),g.J3(this.X,F))}}; TX.prototype.IY=function(){this.N=[];we.prototype.IY.call(this)};var Y0={},Mmf=(Y0.DRM_TRACK_TYPE_AUDIO="AUDIO",Y0.DRM_TRACK_TYPE_SD="SD",Y0.DRM_TRACK_TYPE_HD="HD",Y0.DRM_TRACK_TYPE_UHD1="UHD1",Y0);g.d(cgp,g.I);g.d(WW,g.Xu);g.Q=WW.prototype;g.Q.gF=function(n){var Z=this;if(!(this.CR()||n.size<=0)){var F={};n.forEach(function(y,l){var m=Aq(Z.X)?l:y;l=new Uint8Array(Aq(Z.X)?y:l);Aq(Z.X)&&Cfi(l);y=g.Ee(l,4);Cfi(l);l=g.Ee(l,4);Z.N[y]?Z.N[y].status=m:Z.N[l]?Z.N[l].status=m:Z.N[y]={type:"",status:m};gcQ(Z,Z.N[y].type,F)}); IZ3(this,",");Id(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.Q.error=function(n,Z,F,y){this.CR()||(this.publish("licenseerror",n,Z,F,y),n==="drm.provision"&&(n=(Date.now()-this.C)/1E3,this.C=NaN,this.publish("ctmp","provf",{et:n.toFixed(3)})));W0(Z)&&this.dispose()}; g.Q.shouldRetry=function(n,Z){return!n&&this.requestNumber===Z.requestNumber}; g.Q.IY=function(){this.N={};g.Xu.prototype.IY.call(this)}; g.Q.Zx=function(){var n={ctype:this.L.contentType||"",length:this.L.initData.length,requestedKeyIds:this.Wr,cryptoPeriodIndex:this.cryptoPeriodIndex};this.T&&(n.keyStatuses=this.N);return n}; g.Q.getInfo=function(){var n=this.V.join();if(Iy(this)){var Z=new Set,F;for(F in this.N)this.N[F].status!=="usable"&&Z.add(this.N[F].type);n+="/UKS."+Array.from(Z)}return n+="/"+this.cryptoPeriodIndex}; g.Q.Uw=function(){return this.url};g.d(M3,g.I);g.Q=M3.prototype;g.Q.K2=function(n){if(this.S){var Z=n.messageType||"license-request";this.S(new Uint8Array(n.message),Z)}}; g.Q.gF=function(){this.J&&this.J(this.N.keyStatuses)}; g.Q.onClosed=function(){this.CR()||g.tv("xboxone")&&this.T&&this.T("closedShouldNotRetry")}; g.Q.vD=function(n){this.S&&this.S(n.message,"license-request")}; g.Q.xf=function(n){if(this.T){if(this.X){var Z=this.X.error.code;n=this.X.error.systemCode}else Z=n.errorCode,n=n.systemCode;this.T("t.prefixedKeyError;c."+Z+";sc."+n,Z,n)}}; g.Q.Rc=function(){this.C&&this.C()}; g.Q.update=function(n){var Z=this;if(this.N)return this.N.update(n).then(null,mz(function(F){Que(Z,"t.update",F)})); this.X?this.X.update(n):this.element.addKey?this.element.addKey(this.L.keySystem,n,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.L.keySystem,n,this.initData,this.sessionId);return FM()}; g.Q.IY=function(){this.N&&(this.Pr?this.N.close().catch(g.yi):this.N.close());this.element=null;g.I.prototype.IY.call(this)};g.d(si,g.I);g.Q=si.prototype;g.Q.setServerCertificate=function(){return this.X.setServerCertificate?this.N.flavor==="widevine"&&this.N.nL?this.X.setServerCertificate(this.N.nL):Jr(this.N)&&this.N.G6?this.X.setServerCertificate(this.N.G6):null:null}; g.Q.createSession=function(n,Z){var F=n.initData;if(this.N.keySystemAccess){Z&&Z("createsession");var y=this.X.createSession();vc(this.N)?F=Ck7(F,this.N.G6):Jr(this.N)&&(F=hNQ(F)||new Uint8Array(0));Z&&Z("genreq");n=y.generateRequest(n.contentType,F);var l=new M3(null,null,null,y,null,this.J);n.then(function(){Z&&Z("genreqsuccess")},mz(function(a){Que(l,"t.generateRequest",a)})); return l}if(YI(this.N))return BDe(this,F);if(J_(this.N))return uZ3(this,F);if((y=this.element)==null?0:y.generateKeyRequest)this.element.generateKeyRequest(this.N.keySystem,F);else{var m;(m=this.element)==null||m.webkitGenerateKeyRequest(this.N.keySystem,F)}return this.V=new M3(this.element,this.N,F,null,null,this.J)}; g.Q.yj=function(n){var Z=Qt(this,n);Z&&Z.vD(n)}; g.Q.f2=function(n){var Z=Qt(this,n);Z&&Z.xf(n)}; g.Q.n2=function(n){var Z=Qt(this,n);Z&&Z.Rc(n)}; g.Q.getMetrics=function(){var n=null;if(this.X&&this.X.getMetrics)try{n=this.X.getMetrics()}catch(Z){}return n}; g.Q.IY=function(){this.T=this.X=null;var n;(n=this.V)==null||n.dispose();n=g.Y(Object.values(this.C));for(var Z=n.next();!Z.done;Z=n.next())Z.value.dispose();this.C={};g.I.prototype.IY.call(this);delete this.element};g.Q=$S.prototype;g.Q.get=function(n){n=this.findIndex(n);return n!==-1?this.values[n]:null}; g.Q.remove=function(n){n=this.findIndex(n);n!==-1&&(this.keys.splice(n,1),this.values.splice(n,1))}; g.Q.removeAll=function(){this.keys=[];this.values=[]}; g.Q.set=function(n,Z){var F=this.findIndex(n);F!==-1?this.values[F]=Z:(this.keys.push(n),this.values.push(Z))}; g.Q.findIndex=function(n){return g.pg(this.keys,function(Z){return g.yW(n,Z)})};g.d(Chi,g.Xu);g.Q=Chi.prototype;g.Q.rDr=function(n){this.Xe({onecpt:1});n.initData&&HmY(this,new Uint8Array(n.initData),n.initDataType)}; g.Q.Q0Q=function(n){this.Xe({onndky:1});HmY(this,n.initData,n.contentType)}; g.Q.QJ=function(n){this.Xe({onneedkeyinfo:1});this.Y.j("html5_eme_loader_sync")&&(this.J.get(n.initData)||this.J.set(n.initData,n));lrU(this,n)}; g.Q.qL=function(n){this.T.push(n);Qh(this)}; g.Q.createSession=function(n){var Z=X0Q(this)?eOK(n):g.Ee(n.initData);this.X.get(Z);this.Wr=!0;n=new WW(this.videoData,this.Y,n,this.drmSessionId);this.X.set(Z,n);n.subscribe("ctmp",this.lj,this);n.subscribe("keystatuseschange",this.gF,this);n.subscribe("licenseerror",this.Do,this);n.subscribe("newlicense",this.M4,this);n.subscribe("newsession",this.L0,this);n.subscribe("sessionready",this.Xu,this);n.subscribe("fairplay_next_need_key_info",this.yn,this);this.Y.j("html5_enable_vp9_fairplay")&&n.subscribe("qualitychange", this.hv,this);n.subscribe("sabrlicenseconstraint",this.tVu,this);A0e(n,this.V)}; g.Q.M4=function(n){this.CR()||(this.Xe({onnelcswhb:1}),n&&!this.heartbeatParams&&(this.heartbeatParams=n,this.publish("heartbeatparams",n)))}; g.Q.L0=function(){this.CR()||(this.Xe({newlcssn:1}),this.T.shift(),this.Wr=!1,Qh(this))}; g.Q.Xu=function(){if(YI(this.N)&&(this.Xe({onsnrdy:1}),this.jT--,this.jT===0)){var n=this.Ns,Z,F;(Z=n.element)==null||(F=Z.msSetMediaKeys)==null||F.call(Z,n.T)}}; g.Q.gF=function(n){if(!this.CR()){this.lY||(this.lY=!0,this.Y.eG()&&sk8(this));this.Xe({onksch:1});var Z=this.hv;if(!Iy(n)&&g.yd&&n.X.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var F="large";else{F=[];var y=!0;if(Iy(n))for(var l=g.Y(Object.keys(n.N)),m=l.next();!m.done;m=l.next())m=m.value,n.N[m].status==="usable"&&F.push(n.N[m].type),n.N[m].status!=="unknown"&&(y=!1);if(!Iy(n)||y)F=n.V;F=tZj(F)}Z.call(this,F);if(n.Y.j("html5_enable_vp9_fairplay")&&Jr(n.X))Z=n.Pr; else{if(!Iy(n))for(Z={},F=g.Y(n.V),y=F.next();!y.done;y=F.next())gcQ(n,y.value,Z);Z=n.authorizedFormats}this.videoData.authorizedFormats=Z;this.publish("keystatuseschange",n)}}; g.Q.lj=function(n,Z){this.CR()||this.publish("ctmp",n,Z)}; g.Q.yn=function(n,Z){this.CR()||this.publish("fairplay_next_need_key_info",n,Z)}; g.Q.Do=function(n,Z,F,y){this.CR()||(this.videoData.j("html5_log_drm_metrics_on_error")&&sk8(this),this.publish("licenseerror",n,Z,F,y))}; g.Q.qn=function(){return this.L}; g.Q.hv=function(n){var Z=g.MQ("auto",n,!1,"l");if(this.videoData.Mn){if(this.L.equals(Z))return}else if(K6p(this.L,n))return;this.L=Z;this.publish("qualitychange");this.Xe({updtlq:n})}; g.Q.tVu=function(n){this.videoData.sabrLicenseConstraint=n}; g.Q.IY=function(){var n,Z;this.N.keySystemAccess&&this.element&&!((n=this.mediaElement)==null?0:(Z=n.mQ)==null?0:Z.Ef())&&(this.w5?this.element.setMediaKeys(null).catch(g.yi):this.element.setMediaKeys(null));this.element=null;this.T=[];n=g.Y(this.X.values());for(Z=n.next();!Z.done;Z=n.next())Z=Z.value,Z.unsubscribe("ctmp",this.lj,this),Z.unsubscribe("keystatuseschange",this.gF,this),Z.unsubscribe("licenseerror",this.Do,this),Z.unsubscribe("newlicense",this.M4,this),Z.unsubscribe("newsession",this.L0, this),Z.unsubscribe("sessionready",this.Xu,this),Z.unsubscribe("fairplay_next_need_key_info",this.yn,this),this.Y.j("html5_enable_vp9_fairplay")&&Z.unsubscribe("qualitychange",this.hv,this),Z.dispose();this.X.clear();this.C.removeAll();this.J.removeAll();this.heartbeatParams=null;g.Xu.prototype.IY.call(this)}; g.Q.Zx=function(){for(var n={systemInfo:this.N.Zx(),sessions:[]},Z=g.Y(this.X.values()),F=Z.next();!F.done;F=Z.next())n.sessions.push(F.value.Zx());return n}; g.Q.getInfo=function(){return this.X.size<=0?"no session":""+this.X.values().next().value.getInfo()+(this.S?"/KR":"")}; g.Q.Xe=function(n,Z){Z=Z===void 0?!1:Z;this.CR()||(UQ(n),(this.Y.eG()||Z)&&this.publish("ctmp","drmlog",n))};var lFe=!1,Lr=!1;g.d(Ux,g.I);g.Q=Ux.prototype;g.Q.Gb=function(){return!!this.BP}; g.Q.jN=function(){return this.X}; g.Q.handleError=function(n){var Z=this;fjp(this,n);var F;if(F=!((n.errorCode==="html5.invalidstate"||n.errorCode==="fmt.unplayable"||n.errorCode==="fmt.unparseable")&&hq(this,n.errorCode,n.details)))if(F=!xp8(this,n))this.videoData.errorDetail==="7"&&g.f4(this.iY)?(Ex(this,"innertube_player_reload_required"),F=!0):F=!1,F=!F;if(F)if(this.iY.Ns!=="yt"&&A2K(this,n)&&this.videoData.R0&&(0,g.tP)()/1E3>this.videoData.R0&&b$(this.videoData)&&(F=Object.assign({e:n.errorCode},n.details),F.stalesigexp="1", F.expire=Math.round(this.videoData.R0*1E3),F.init=Math.round(this.videoData.V1),F.now=Math.round((0,g.tP)()),n=new g.Xv(n.errorCode,F,2),this.mQ.Mj(n.errorCode,2,"SIGNATURE_EXPIRED",UQ(n.details))),W0(n.severity)){var y;F=(y=this.mQ.loader)==null?void 0:y.N.N;if(this.iY.j("html5_use_network_error_code_enums"))if(DfY(n)&&F&&F.isLocked())var l="FORMAT_UNAVAILABLE";else if(this.iY.C||n.errorCode!=="auth"||n.details.rc!==429)n.errorCode==="ump.spsrejectfailure"&&(l="HTML5_SPS_UMP_STATUS_REJECTED");else{l= "TOO_MANY_REQUESTS";var m="6"}else DfY(n)&&F&&F.isLocked()?l="FORMAT_UNAVAILABLE":this.iY.C||n.errorCode!=="auth"||n.details.rc!=="429"?n.errorCode==="ump.spsrejectfailure"&&(l="HTML5_SPS_UMP_STATUS_REJECTED"):(l="TOO_MANY_REQUESTS",m="6");this.mQ.Mj(n.errorCode,n.severity,l,UQ(n.details),m)}else this.mQ.publish("nonfatalerror",n),y=/^pp/.test(this.videoData.clientPlaybackNonce),this.FI(n.errorCode,n.details),y&&n.errorCode==="manifest.net.connect"&&(n="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.tP)(),mQ(n,"manifest",function(a){Z.C=!0;Z.Xp("pathprobe",a)},function(a){Z.FI(a.errorCode,a.details)}))}; g.Q.Xp=function(n,Z){this.mQ.g1.Xp(n,Z)}; g.Q.FI=function(n,Z){Z=UQ(Z);this.mQ.g1.FI(n,Z)};mI.prototype.El=function(n){var Z=P17(this);if(!n)return{jE:IK,E0:IK,yy:IK,Q0:IK,t9:IK,Zq:IK,BU:Z};var F=IK;if(jW(Z)||this.j("html5_perf_cap_override_sticky"))F=UL(this,n);return{jE:F,E0:QAo(this,n),yy:JE3(this,n),Q0:A6(this,n.videoData),t9:iv(this,n.videoData,n),Zq:Ms(this,n),BU:Z}}; mI.prototype.wu=function(n){if(g.f4(this.Y)&&lJ(this.Y.S,sN.HEIGHT))var Z=n.N.videoInfos[0].video.qualityOrdinal;else{var F=this.XM(!!n.N.N);Z3(n.videoData)||NP(n.videoData);n=n.N.videoInfos;if(n.length){var y=.85,l=n[0].video;l.projectionType!=="MESH"&&l.projectionType!=="EQUIRECTANGULAR"&&l.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||rZ||(y=.45);l=g.jf(this.Y.experiments,"html5_viewport_undersend_maximum");for(var m=0;m=0,stateAtSend:Z,joinLatencySecs:m,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:y,playerCanaryStage:l,isAd:this.provider.videoData.isAd(),liveMode:F,hasDrm:!!g.ZI(this.provider.videoData),isGapless:this.provider.videoData.J,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:YA(this.provider.videoData)};n||g.xt("html5PlayerHealthEvent",Z);this.T=!0;this.dispose()}}; LV.prototype.IY=function(){this.T||this.send();window.removeEventListener("error",this.u4);window.removeEventListener("unhandledrejection",this.u4);g.I.prototype.IY.call(this)}; var ed1=/\bnet\b/;UC.prototype.update=function(){if(this.J){var n=this.FY()||0,Z=g.kq(this.provider);n>=this.provider.mQ.getDuration()-.1&&(this.previouslyEnded=!0);if(n!==this.N||XIT(this,n,Z)){var F;if(!(F=nZ-this.uf+2||XIT(this,n,Z))){F=this.provider.mQ.getVolume();var y=F!==this.Pr,l=this.provider.mQ.isMuted()?1:0;l!==this.L?(this.L=l,F=!0):(!y||this.V>=0||(this.Pr=F,this.V=Z),F=Z-this.V,this.V>=0&&F>2?(this.V=-1,F=!0):F=!1)}F&&(MS(this),this.T=n);this.uf=Z;this.N=n}}}; UC.prototype.FY=function(){var n=this.provider.mQ.FY();return U0(this.provider.videoData)?n+this.provider.mQ.Kn():n};rj.prototype.send=function(n){var Z=this;if(!this.xi){var F=YQ(this),y=g.pQ(this.uri,F);this.Y.j("vss_through_gel_double")&&$k3(y);this.Wr&&!this.Y.j("html5_simplify_pings")?roK(this,y):QQ(this,n).then(function(l){Z.Y.j("html5_switch_vss_to_post")&&(l=l||{},l.method="POST");Z.Wr&&(l=l||{},l.method="POST",l.postParams={atr:Z.attestationResponse});gYT(y,l,{token:Z.Tx,O6:Z.mJ,mdxEnvironment:Z.mdxEnvironment},Z.Y,n,Z.zx,Z.isFinal&&Z.p6||Z.lY||Z.T&&Z.HE)}); this.xi=!0}}; rj.prototype.X=function(n){n===void 0&&(n=NaN);return Number(n.toFixed(3)).toString()}; var Sl={},mB3=(Sl.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Sl.LIVING_ROOM_APP_MODE_MAIN=1,Sl.LIVING_ROOM_APP_MODE_KIDS=2,Sl.LIVING_ROOM_APP_MODE_MUSIC=3,Sl.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Sl.LIVING_ROOM_APP_MODE_GAMING=5,Sl),jl={},sjY=(jl.EMBEDDED_PLAYER_MODE_UNKNOWN=0,jl.EMBEDDED_PLAYER_MODE_DEFAULT=1,jl.EMBEDDED_PLAYER_MODE_PFP=2,jl.EMBEDDED_PLAYER_MODE_PFL=3,jl);g.d(ZL,g.I);g.Q=ZL.prototype; g.Q.fB=function(){if(!this.T){this.provider.videoData.J_===16623&&g.yi(Error("Playback for EmbedPage"));var n=GD(this,"playback");this.J=k4U(this);vDi(this.N);n.J=a0(this);this.X>0&&(n.N-=this.X);n.send();if(this.provider.videoData.iC){n=this.provider.Y;var Z=this.provider.videoData,F={html5:"1",video_id:Z.videoId,cpn:Z.clientPlaybackNonce,ei:Z.eventId,ptk:Z.iC,oid:Z.tP,ptchn:Z.W3,pltype:Z.sb,content_v:r2(Z)};Z.HG&&Object.assign(F,{m:Z.HG});n=g.pQ(n.rW+"ptracking",F);FCn(this,n)}this.provider.videoData.Y4|| (Mcf(this),yuP(this));this.T=!0;n=this.N;n.N=n.FY();n.uf=g.kq(n.provider);!(n.T===0&&n.N<5)&&n.N-n.T>2&&(n.T=n.N);n.J=!0}}; g.Q.onProgress=function(){this.N.update();HcQ(this)&&(Mcf(this),yuP(this))}; g.Q.IY=function(){g.I.prototype.IY.call(this);IZ(this);Gao(this.N)}; g.Q.Zx=function(){return YQ(GD(this,"playback"))}; g.Q.Bm=function(n){var Z=GD(this,"engage");Z.w5=n;return n3U(Z,T3p(this.provider))};SLe.prototype.isEmpty=function(){return this.endTime===this.startTime};WS.prototype.j=function(n){return this.Y.j(n)}; WS.prototype.getCurrentTime=function(){return this.mQ.getCurrentTime()}; WS.prototype.FY=function(){return this.mQ.FY()}; var Rpo={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.d(g.Ki,g.I);g.Q=g.Ki.prototype;g.Q.fB=function(){this.N&&this.N.fB();this.X&&this.X.fB()}; g.Q.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.xd){var n;(n=this.T.get(this.xd))==null||n.onProgress()}else if(this.N)this.N.onProgress()}; g.Q.nh=function(n){this.qoe&&this.qoe.nh(n)}; g.Q.uG=hA(29);g.Q.Om=hA(35);g.Q.S3=function(n,Z){this.qoe&&this.qoe.S3(n,Z)}; g.Q.Hc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.xd){var n;(n=this.T.get(this.xd))!=null&&MS(n.N)}else this.N&&MS(this.N.N)}; g.Q.FI=function(n,Z){this.qoe&&$Ij(this.qoe,n,Z);if(this.X)this.X.onError(n)}; g.Q.oI=function(n,Z){switch(n){case "M":var F;(F=this.qoe)==null||F.oI(n,Z);break;case "A":var y;(y=this.qoe)==null||y.oI(n)}}; g.Q.onPlaybackRateChange=function(n){if(this.qoe)this.qoe.onPlaybackRateChange(n);this.N&&MS(this.N.N)}; g.Q.Aw=hA(52);g.Q.Xp=function(n,Z,F){this.qoe&&this.qoe.Xp(n,Z,F)}; g.Q.WC=function(n,Z,F){this.qoe&&this.qoe.WC(n,Z,F)}; g.Q.SS=function(n){var Z;(Z=this.qoe)==null||Z.SS(n)}; g.Q.TP=function(n){var Z;(Z=this.qoe)==null||Z.TP(n)}; g.Q.t7=function(n,Z,F,y){var l;(l=this.qoe)==null||l.t7(n,Z,F,y)}; g.Q.CT=function(n){this.qoe&&this.qoe.CT(n)}; g.Q.fU=function(n,Z,F){this.qoe&&this.qoe.fU(n,Z,F)}; g.Q.Mg=hA(23);g.Q.vy=function(){if(this.qoe)return this.qoe.vy()}; g.Q.Zx=function(){if(this.provider.videoData.enableServerStitchedDai&&this.xd){var n,Z;return(Z=(n=this.T.get(this.xd))==null?void 0:n.Zx())!=null?Z:{}}return this.N?this.N.Zx():{}}; g.Q.mH=function(){var n;return(n=this.qoe)==null?void 0:n.mH()}; g.Q.rj=function(n,Z){var F;(F=this.qoe)==null||F.rj(n,Z)}; g.Q.Bm=function(n){return this.N?this.N.Bm(n):function(){}}; g.Q.getVideoData=function(){return this.provider.videoData}; g.Q.resume=function(){this.qoe&&this.qoe.resume()};g.d(g.sx,g.I);g.Q=g.sx.prototype;g.Q.y9=function(n,Z){this.sync();Z&&this.N.array.length>=2E3&&this.hp("captions",1E4);Z=this.N;if(n.length>1&&n.length>Z.array.length)Z.array=Z.array.concat(n),Z.array.sort(Z.N);else{n=g.Y(n);for(var F=n.next();!F.done;F=n.next())F=F.value,!Z.array.length||Z.N(F,Z.array[Z.array.length-1])>0?Z.array.push(F):g.ro(Z.array,F,Z.N)}this.T=NaN;this.sync()}; g.Q.Gc=function(n){n.length>1E4&&g.yi(new g.FV("Over 10k cueRanges removal occurs with a sample: ",n[0]));if(!this.CR()){var Z=new Set(n);this.X=this.X.filter(function(F){return!Z.has(F)}); gAn(this.N,Z);this.sync()}}; g.Q.RR=function(n,Z){if(!this.CR()){var F=this.bG().find(function(y){return y.id===Z&&y.namespace===n}); F&&this.Gc([F])}}; g.Q.hp=function(n,Z){var F=(isNaN(this.T)?FBo(this):this.T)-Z;Z=this.bG().filter(function(y){return y.namespace===n&&y.endthis.N,m=g.b(F,8)&&g.b(F,16),a=this.mQ.Rs().isBackground()||F.isSuspended();Bd(this,this.yg,m&&!a,l,"qoe.slowseek",function(){},"timeout"); var D=isFinite(this.N);D=m&&D&&Z.zs(this.N);var p=!y||Math.abs(y-this.N)>10,L=this.Y.j("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),q=y===0&&this.X&&[11,10].includes(this.X);Bd(this,this.xi,D&&p&&!a&&(!L||!q),l,"qoe.slowseek",function(){Z.seekTo(n.N)},"set_cmt"); p=D&&SF(Z.WE(),this.N);var w=this.mQ.loader;D=!w||w.iE();var T=function(){Z.seekTo(n.N+.001)}; Bd(this,this.lY,p&&D&&!a,l,"qoe.slowseek",T,"jiggle_cmt");D=function(){return n.mQ.Mh()}; Bd(this,this.r5,p&&!a,l,"qoe.slowseek",D,"new_elem");var P=dd(F);q=F.isBuffering();var J=Z.WE(),U=ph(J,y),h=U>=0&&J.end(U)>y+5;p=P&&q&&h;L=this.mQ.getVideoData();Bd(this,this.jT,y<.002&&this.N<.002&&m&&g.f4(this.Y)&&g.uW(L)&&!a,l,"qoe.slowseek",D,"slow_seek_shorts");Bd(this,this.Pr,L.pP()&&m&&!a&&!L.L,l,"qoe.slowseek",D,"slow_seek_gapless_shorts");Bd(this,this.Ns,p&&!a,P&&!q,"qoe.longrebuffer",T,"jiggle_cmt");Bd(this,this.Tx,p&&!a,P&&!q,"qoe.longrebuffer",D,"new_elem_nnr");if(w){var v=w.getCurrentTime(); m=Z.wF();m=Zmp(m,v);m=!w.isSeeking()&&y===m;Bd(this,this.SG,P&&q&&m&&!a,P&&!q&&!m,"qoe.longrebuffer",function(){Z.seekTo(v)},"seek_to_loader")}m={}; T=ph(J,Math.max(y-3.5,0));var V=T>=0&&y>J.end(T)-1.1,f=T>=0&&T+1=0&&V&&f<11;m.close2edge=V;m.gapsize=f;m.buflen=J.length;this.X&&(m.seekSour=this.X);Bd(this,this.w5,P&&q&&!a,P&&!q,"qoe.longrebuffer",function(){},"timeout",m); m=F.isSuspended();m=this.mQ.FW()&&!m;Bd(this,this.J,m,!m,"qoe.start15s",function(){n.mQ.P1("ad")},"ads_preroll_timeout"); m=this.Y.experiments.RY("html5_use_playback_rate_in_skip_slow_ad")?this.mQ.getPlaybackRate()*1E3:1E3;U=y-this.V5;Bd(this,this.fR,w,P&&!q,"qoe.longrebuffer",function(){n.mQ.SU()},"reset_media_source"); Bd(this,this.aY,w,P&&!q,"qoe.longrebuffer",D,"reset_media_element");this.V===0&&(this.C=y);w=q&&this.N===0&&y>1&&y===this.C;Bd(this,this.zx,g.uW(L)&&w,P&&!q,"qoe.slowseek",function(){Z.seekTo(0)},"reseek_after_time_jump"); a=F.isOrWillBePlaying()&&!a;h=this.mQ.zc()-y<6&&!h&&this.mQ.Ei();Bd(this,this.L,L.pP()&&a&&q&&h,P&&!q,"qoe.longrebuffer",function(){n.mQ.Mh(!1,!0)},"handoff_end_long_buffer_reload"); a=this.X===104||this.mQ.xO;F=eF(L)&&L.isAd()&&!L.L&&a&&(q||g.b(F,8)&&g.b(F,16));Bd(this,this.hG,F,l,"qoe.start15s",D,"gapless_ad_slow_start");F=eF(L)&&!L.L&&a&&p;Bd(this,this.d5,F,l,"qoe.longrebuffer",D,"gapless_slow_start");this.V=y;this.S.start()}}; zI.prototype.FI=function(n,Z,F){Z=this.Zx(Z);Z.wn=F;Z.wdup=this.T[n]?"1":"0";this.mQ.FI(new g.Xv(n,Z));this.T[n]=!0}; zI.prototype.Zx=function(n){n=Object.assign(this.mQ.Zx(!0),n.Zx());this.N&&(n.stt=this.N.toFixed(3));this.mQ.getVideoData().isLivePlayback&&(n.ct=this.mQ.getCurrentTime().toFixed(3),n.to=this.mQ.Kn().toFixed(3));delete n.uga;delete n.euri;delete n.referrer;delete n.fexp;delete n.vm;return n}; Va.prototype.reset=function(){this.N=this.X=this.T=this.startTimestamp=0;this.V=!1}; Va.prototype.test=function(n){if(!this.S||this.X)return!1;if(!n)return this.reset(),!1;n=(0,g.tP)();if(!this.startTimestamp)this.startTimestamp=n,this.T=0;else if(this.T>=this.S)return this.X=n,!0;this.T+=1;return!1}; Va.prototype.Zx=function(){var n={},Z=(0,g.tP)();this.startTimestamp&&(n.wsd=(Z-this.startTimestamp).toFixed());this.X&&(n.wtd=(Z-this.X).toFixed());this.N&&(n.wssd=(Z-this.N).toFixed());return n};g.d(sU,g.I);g.Q=sU.prototype;g.Q.setMediaElement=function(n){(this.mediaElement=n)?(this.mediaElement&&(this.S||this.T||!this.mediaElement.Oh()||this.seekTo(.01,{eO:"seektimeline_setupMediaElement"})),Pp(this)):Cf(this)}; g.Q.getCurrentTime=function(n){n=n===void 0?!1:n;if(P6(this.mQ)){if(this.j("html5_use_centralized_player_time")&&!n&&!isNaN(this.C))return this.C;if(!isNaN(this.X))return this.X}else{if(this.j("html5_use_centralized_player_time")&&!n&&!isNaN(this.C)&&isFinite(this.C))return this.C;if(!isNaN(this.X)&&isFinite(this.X))return this.X}return this.mediaElement&&iUQ(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.T||0}; g.Q.Fw=function(){return this.xi}; g.Q.FY=function(){return this.getCurrentTime()-this.Kn()}; g.Q.UV=function(){return this.N?this.N.UV():Infinity}; g.Q.isAtLiveHead=function(n){if(!this.N)return!1;n===void 0&&(n=this.getCurrentTime());return G1(this.N,n)}; g.Q.j5=function(){return!!this.N&&this.N.j5()}; g.Q.seekTo=function(n,Z){var F=Z===void 0?{}:Z;Z=F.OB===void 0?!1:F.OB;var y=F.fC===void 0?0:F.fC;var l=F.Tn===void 0?!1:F.Tn;var m=F.l8===void 0?0:F.l8;var a=F.eO===void 0?"":F.eO;var D=F.seekSource===void 0?void 0:F.seekSource;var p=F.LD===void 0?!1:F.LD;var L=F.cM===void 0?!1:F.cM;F=F.I_===void 0?!1:F.I_;p&&(n+=this.Kn());YA(this.videoData)&&D===29&&(this.xi=void 0);p=n=this.xA())||!g.HJ(this.videoData),U||(h={st:h,mst:this.xA()},this.N&&this.j("html5_high_res_seek_logging")&&(h.ht=this.N.UV(),h.adft=jH(this.N)),this.mQ.Xp("seeknotallowed",h)),h=U));if(!h)return this.V&&(this.V=null,gy(this)),g.Bp(this.getCurrentTime());h=.005;L&&this.j("html5_sabr_seek_no_shift_tolerance")&&(h=0);if(Math.abs(n-this.X)<=h&&this.zx)return this.S;a&&(h=n,this.Y.eG()||this.j("html5_log_seek_reasons"))&& (a={reason:a,tgt:h},this.j("html5_sabr_csdai_seek_log")&&(a.source=D),this.mQ.Xp("seekreason",a));D&&(this.Ns.X=D);this.zx&&Cf(this);this.S||(this.S=new dZ);n&&!isFinite(n)&&c4(this,!1);(a=F||p)||(a=n,a=!(this.videoData.isLivePlayback&&this.videoData.T&&!this.videoData.T.N&&!(this.mediaElement&&this.mediaElement.Ih()>0&&this.mediaElement.Ou()>0)||wk(this.videoData)&&this.LJ()===this.xA(!1)?0:isFinite(a)||!wk(this.videoData)));a||(n=oA(this,n,l));n&&!isFinite(n)&&c4(this,!1);this.j("html5_use_centralized_player_time")? this.C=n:this.X=this.T=n;this.aY=m;this.J=0;this.N&&(l=this.N,m=n,MKe(l,m,!1),$aK(l,m));l=this.mQ;m=n;a={OB:Z,seekSource:D};l.WV.T=m;F=l.Bo;F.mediaTime=m;F.N=!0;a.OB&&l.SJ(a);a=m>l.videoData.endSeconds&&m>l.videoData.limitedPlaybackDurationInSeconds;l.pk&&a&&isFinite(m)&&zd(l);mZ.start&&zd(this.mQ);return this.S}; g.Q.xA=function(n){if(!this.videoData.isLivePlayback)return this.mQ.videoData.xA();var Z;return HW(this.videoData)&&((Z=this.mediaElement)==null?0:Z.isPaused())&&this.videoData.N?(n=this.getCurrentTime(),PZp(this.Xh(n)*1E3)+n):this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&YA(this.videoData)&&this.videoData.N?n?this.videoData.N.w5||0:this.videoData.N.dK||0:wk(this.videoData)&&this.videoData.sV&&this.videoData.N?this.videoData.N.xA()+this.timestampOffset:this.videoData.T&&this.videoData.T.N? !n&&this.N?this.N.UV():this.mQ.videoData.xA()+this.timestampOffset:this.mediaElement?sm()?PZp(this.mediaElement.bM().getTime()):this.mediaElement.Ou()+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.Q.LJ=function(){if(this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&YA(this.videoData)){var n;return((n=this.videoData.N)==null?void 0:n.c_)||0}n=this.videoData?this.videoData.LJ()+this.timestampOffset:this.timestampOffset;if(HW(this.videoData)&&this.videoData.N){var Z,F=Number((Z=this.videoData.progressBarStartPosition)==null?void 0:Z.utcTimeMillis)/1E3;if(!isNaN(F)&&(Z=this.vH(F),!isNaN(Z)))return Math.max(n,Z)}return n}; g.Q.Qf=function(){this.S||this.seekTo(this.T,{eO:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.Q.HP=function(){return this.zx&&!isFinite(this.X)}; g.Q.IY=function(){LW(this,null);this.Ns.dispose();g.I.prototype.IY.call(this)}; g.Q.Zx=function(){var n={};this.loader&&Object.assign(n,this.loader.Zx());this.mediaElement&&Object.assign(n,this.mediaElement.Zx());return n}; g.Q.lc=function(n){this.timestampOffset=n}; g.Q.getStreamTimeOffset=function(){return wk(this.videoData)?0:this.videoData.N?this.videoData.N.getStreamTimeOffset():0}; g.Q.Kn=function(){return this.timestampOffset}; g.Q.Xh=function(n){return this.videoData&&this.videoData.N?this.videoData.N.Xh(n-this.timestampOffset):NaN}; g.Q.Yg=function(){if(!this.mediaElement)return 0;if(fC(this.videoData)){var n=this.mediaElement.PB()+this.timestampOffset-this.LJ(),Z=this.xA()-this.LJ();return Math.max(0,Math.min(1,n/Z))}return this.mediaElement.Yg()}; g.Q.Y3=function(n){this.L&&(this.L.N=n)}; g.Q.GW=function(n,Z,F){this.mQ.Xp("requestUtcSeek",{time:n});YA(this.videoData)&&(this.xi=n);var y;(y=this.loader)==null||y.GW(n,F);Z&&(this.Wr=Z)}; g.Q.HM=function(n){YA(this.videoData)&&(this.xi=void 0);this.Wr?(this.mQ.Xp("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Wr}),this.mQ.seekTo(this.Wr,{eO:"utcSeekingFallback_streamTime"}),this.Wr=0):(n=this.vH(n),isNaN(n)||(this.mQ.Xp("utcSeekingFallback",{source:"estimate",timeSeconds:n}),this.mQ.seekTo(n,{eO:"utcSeekingFallback_estimate"})))}; g.Q.Yu=function(){this.Wr=0}; g.Q.vH=function(n){var Z=this.getCurrentTime();if(isNaN(Z))return NaN;var F=this.Xh(Z);return isNaN(F)?NaN:n-(F-Z)}; g.Q.j=function(n){return this.Y&&this.Y.j(n)};g.d(y6,g.I);y6.prototype.start=function(){this.X.start()}; y6.prototype.stop=function(){this.X.stop()}; y6.prototype.clear=function(){for(var n=g.Y(this.N.values()),Z=n.next();!Z.done;Z=n.next())Z.value.clear()}; y6.prototype.sample=function(){for(var n=g.Y(this.T),Z=n.next();!Z.done;Z=n.next()){var F=g.Y(Z.value);Z=F.next().value;F=F.next().value;this.N.has(Z)||this.N.set(Z,new uI(HhG.has(Z)));this.N.get(Z).update(F())}this.X.start()}; var HhG=new Set(["networkactivity"]);uI.prototype.update=function(n){this.X?(this.buffer.add(n-this.N||0),this.N=n):this.buffer.add(n)}; uI.prototype.clear=function(){this.buffer.clear();this.N=0};ni.prototype.lz=function(){return this.started}; ni.prototype.start=function(){this.started=!0}; ni.prototype.reset=function(){this.finished=this.started=!1};var EPf=!1;g.d(g.pi,g.Xu);g.Q=g.pi.prototype;g.Q.IY=function(){g.gg(this.t3);ytp(this.TU);this.visibility.unsubscribe("visibilitystatechange",this.TU);LQU(this.g1);g.xA(this.g1);TS(this);g.CF.qc(this.VA);this.Q_();this.Q9=null;g.xA(this.videoData);g.xA(this.pK);g.xA(this.aK);g.xA(this.cO);g.rk(this.LJu);this.pk=null;g.Xu.prototype.IY.call(this)}; g.Q.fU=function(n,Z,F,y,l){if(this.Y.j("html5_log_ad_playback_docid")){var m=this.g1;if(m.qoe){m=m.qoe;var a=this.Y.Ns||"yt";g.bM(m,g.kq(m.provider),"ad_playback",[n,Z,F,l,a])}}else this.g1.fU(n,Z,F);this.j("html5_log_media_perf_info")&&this.Xp("adloudness",{ld:y.toFixed(3),cpn:n})}; g.Q.Nm=function(){var n;return(n=this.loader)==null?void 0:n.Nm()}; g.Q.Xy=function(){var n;return(n=this.loader)==null?void 0:n.Xy()}; g.Q.XZ=function(){var n;return(n=this.loader)==null?void 0:n.XZ()}; g.Q.z3=function(){var n;return(n=this.loader)==null?void 0:n.z3()}; g.Q.mF=function(){return this.videoData.mF()}; g.Q.Ef=function(){return this.j("html5_not_reset_media_source")&&this.videoData.isLivePlayback}; g.Q.If=function(){this.videoData.J&&(this.videoData.c7=this.videoData.c7||this.kA.Z4().Nm(),this.videoData.Kh=this.videoData.Kh||this.kA.Z4().Xy());if(BvQ(this.videoData)||!yy7(this.videoData)){var n=this.videoData.errorDetail;this.Mj(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),n,n,this.videoData.pO||void 0)}this.j("html5_generate_content_po_token")&&this.hC();this.j("html5_enable_d6de4")&&this.Wq()}; g.Q.getVideoData=function(){return this.videoData}; g.Q.B=function(){return this.Y}; g.Q.El=function(){return this.x6.El(this.Q9)}; g.Q.Rs=function(){return this.visibility}; g.Q.T2=function(){return this.mediaElement&&this.mediaElement.VN()?this.mediaElement.w1():null}; g.Q.HV=function(){return this.mediaElement}; g.Q.eg=function(){if(this.videoData.errorCode)return!1;this.B().C&&this.B().houseBrandUserStatus&&this.Xp("hbut",{status:this.B().houseBrandUserStatus},!0);if(this.videoData.uy())return!0;this.Mj("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.Q.d_=function(n){(n=n===void 0?!1:n)||f6(this.g1);this.k8=n;!this.eg()||this.JL.lz()?D3(this)&&this.JL.lz()&&!this.JL.finished&&!this.k8&&this.Q1():(this.JL.start(),n=this.g1,g.kq(n.provider),n.qoe&&Hkf(n.qoe),this.Q1())}; g.Q.Q1=function(){if(this.videoData.isLoaded()){var n=this.pK;g.jf(n.iY.experiments,"html5_player_min_build_cl")>0&&g.jf(n.iY.experiments,"html5_player_min_build_cl")>827279819&&Ex(n,"oldplayer");oG8(this)}else this.videoData.cV||this.videoData.y_?this.k8&&D3(this)||(this.videoData.cV?h$Y(this.videoData):(n=this.g1,n.qoe&&(n=n.qoe,Jm(n,"protected"),n.provider.videoData.S?n.Cd():n.provider.videoData.subscribe("dataloaded",n.Cd,n)),hC7(this.videoData))):!this.videoData.loading&&this.aq&&SUf(this)}; g.Q.zS=function(n){this.CJ=n;this.loader&&(iZ7(this.loader,new g.qh(n)),this.Xp("sdai",{sdsstm:1}))}; g.Q.va=function(n,Z,F){var y;(y=this.loader)==null||y.va(n,Z,F)}; g.Q.j3=function(n){var Z;(Z=this.loader)==null||Z.j3(n)}; g.Q.x0=hA(8);g.Q.isFullscreen=function(){return this.visibility.isFullscreen()}; g.Q.isBackground=function(){return this.visibility.isBackground()}; g.Q.eU=function(){var n=this;Qw(this).then(function(){return zV(n)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.Q.zi=function(){this.mediaElement&&this.mediaElement.activate();this.d_();this.eg()&&!g.b(this.playerState,128)&&(this.g_.lz()||(this.g_.start(),this.videoData.p6?this.QP(hR(this.playerState,4)):this.QP(hR(hR(this.playerState,8),1))),E0(this))}; g.Q.Wp=function(){return this.JL.finished}; g.Q.sendAbandonmentPing=function(){g.b(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.N0(!0),LQU(this.g1),g.xA(this.g1),g.CF.qc(this.VA))}; g.Q.kQ=function(n,Z,F){n=n===void 0?!0:n;(Z===void 0||Z)&&this.mediaElement&&this.mediaElement.pause();n&&F&&this.loader&&wk(this.videoData)&&this.loader.t7(F);this.QP(n?new g.iE(14):new g.iE)}; g.Q.N_=function(){this.g1.Hc()}; g.Q.Mj=function(n,Z,F,y,l,m){var a,D;g.er(azv,F)?a=F:F?D=F:a="GENERIC_WITHOUT_LINK";y=(y||"")+(";a6s."+GS());if(n==="auth"||n==="drm.auth"||n==="heartbeat.stop")F&&(y+=";r."+F.replaceAll(" ","_")),m&&(y+="sr."+m.replaceAll(" ","_"));Z={errorCode:n,errorDetail:l,errorMessage:D||g.ZE[a]||"",h$:a,pO:m||"",fM:y,vG:Z,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=n;Qa(this,"dataloaderror");this.QP(N6(this.playerState,128,Z));g.CF.qc(this.VA);TS(this);this.yX()}; g.Q.P1=function(n){this.eC=this.eC.filter(function(Z){return n!==Z}); this.g_.lz()&&E0(this)}; g.Q.hw=function(){var n;(n=!!this.eC.length)||(n=this.L6.N.array[0],n=!!n&&n.start<=-0x8000000000000);return n}; g.Q.j5=function(){return this.WV.j5()}; g.Q.isPlaying=function(){return this.playerState.isPlaying()}; g.Q.CY=function(){return this.playerState.CY()&&this.videoData.p6}; g.Q.getPlayerState=function(){return this.playerState}; g.Q.X_=function(n){var Z;(Z=this.loader)==null||Z.X_(n)}; g.Q.NJ=function(n){var Z;(Z=this.loader)==null||Z.NJ(n)}; g.Q.getPlayerType=function(){return this.playerType}; g.Q.getPreferredQuality=function(){if(this.Q9){var n=this.Q9;n=n.videoData.e8.compose(n.videoData.uM);n=Kj(n)}else n="auto";return n}; g.Q.IE=hA(16);g.Q.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.Q.setMediaElement=function(n){if(this.mediaElement&&n.w1()===this.mediaElement.w1()&&(n.isView()||this.mediaElement.isView())){if(n.isView()||!this.mediaElement.isView())this.hO(),this.mediaElement=n,this.mediaElement.S7(this),ZpQ(this),this.WV.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Q_();if(!this.playerState.isError()){var Z=TW(this.playerState,512);g.b(Z,8)&&!g.b(Z,2)&&(Z=hR(Z,1));n.isView()&&(Z=TW(Z,64));this.QP(Z)}this.mediaElement=n;this.mediaElement.S7(this);!g.f4(this.Y)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);ZpQ(this);this.WV.setMediaElement(this.mediaElement);this.j("html5_prewarm_media_source")&&!this.pK.Gb()&&this.mediaElement.J3()}}; g.Q.Q_=function(n,Z,F){n=n===void 0?!1:n;Z=Z===void 0?!1:Z;F=F===void 0?!1:F;if(this.mediaElement){var y=this.getCurrentTime();y>0&&(this.WV.T=y);this.WV.setMediaElement(null);!n&&this.Ef()?ZFQ(this):this.MN(F);this.loader&&(mx(this.loader),pW(this,Z));this.Jj.stop();if(this.mediaElement&&(!this.g_.lz()&&!this.FW()||this.playerState.isError()||g.b(this.playerState,2)||this.QP(hR(this.playerState,512)),this.mediaElement)){this.hO();if(n||!this.mediaElement.isView())this.bN.Y7("mesv_s"),this.mediaElement.stopVideo(), vH(this);this.mediaElement.S7(null);this.mediaElement=null}}}; g.Q.playVideo=function(n,Z){n=n===void 0?!1:n;Z=Z===void 0?!1:Z;var F=this,y,l,m,a,D,p;return g.A(function(L){if(L.N==1){var q=window.google_image_requests;q&&q.length>10&&(window.google_image_requests=q.slice(-10));if(g.b(F.playerState,128))return L.return();if(F.pK.jN())return F.publish("signatureexpired"),L.return();F.mediaElement&&f6(F.g1);F.zi();(g.b(F.playerState,64)||n)&&F.QP(hR(F.playerState,8));return F.g_.finished&&F.mediaElement?F.Q9||!F.p7?L.ST(2):g.x(L,F.p7,3):L.return()}if(L.N!=2&&g.b(F.playerState, 128))return L.return();if(!F.videoData.T)return F.videoData.isLivePlayback&&!g.E9(F.Y.S,!0)?(y="html5.unsupportedlive",l=2):(y=F.videoData.mF()?"fmt.unplayable":"fmt.noneavailable",l=1),g.yi(Error("selectableFormats")),F.Mj(y,l,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),L.return();if(F.rJ()&&F.videoData.T.N)return L.return(Qw(F));if(P6(F))q=F.WV,d9(q.videoData)&&!q.isAtLiveHead(q.getCurrentTime())&&q.j5()&&q.mQ.seekTo(Infinity,{eO:"seektimeline_peggedToLive",seekSource:34});else if(d9(F.videoData)&& (m=F.getCurrentTime()a;if(!D||!a){l&&D&&(m=Math.max(m,l));var p;l=BH(Z,(p=y.N)==null?void 0:p.videoInfos);p=Z.mQ.getPlaybackRate();p>1&&l&&(p=JI3(Z.Y.S,y.N.videoInfos,p),n.N!==0&&p=480;if(Z.j("html5_perf_cap_override_sticky")){L=Z.T;Z=Z.j("html5_perserve_av1_perf_cap");Z=Z===void 0?!1:Z;if(Z===void 0?0:Z){q=v9();n=g.Y(Object.keys(q));for(m=n.next();!m.done;m=n.next())m=m.value,m.indexOf("1")!==0&&delete q[m];g.Oh("yt-player-performance-cap",q,2592E3)}else g.Yc("yt-player-performance-cap");EYi(Z);if(Z){Z=g.Y(e1.keys());for(q=Z.next();!q.done;q=Z.next())q=q.value,q.startsWith("1")|| e1.delete(q);Z=g.Y(Oi.values());for(q=Z.next();!q.done;q=Z.next())q=q.value,q.startsWith("1")||Oi.delete(q);Z=g.Y(L.keys());for(q=Z.next();!q.done;q=Z.next())q=q.value,q.startsWith("1")||L.delete(q)}else e1.clear(),Oi.clear(),L.clear()}}}}this.loader&&(Z=this.loader,F=F||"",Z.policy.N?AT(Z.V.N,F):AT(Z.N.S,F));this.Eq()}; g.Q.getUserPlaybackQualityPreference=function(){return this.videoData.T&&!this.videoData.T.N?Kj(this.videoData.e8):a4[Bf()]}; g.Q.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.Q.setUserAudio51Preference=function(n,Z){this.getUserAudio51Preference()!==n&&(this.Xp("toggle51",{pref:n}),g.Oh("yt-player-audio51",n,Z?31536E3:2592E3),this.eU())}; g.Q.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.Q.setProximaLatencyPreference=function(n){var Z=this.getProximaLatencyPreference();this.Xp("proxima",{pref:n});g.Oh("yt-player-proxima-pref",n,31536E3);Z!==n&&(n=this.WV,n.hG=!0,n.mQ.seekTo(Infinity,{eO:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.Q.getProximaLatencyPreference=function(){var n;return(n=kH())!=null?n:0}; g.Q.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.Q.hC=function(){this.videoData.videoId?this.kA.hC(this.videoData):this.Xp("povid",{})}; g.Q.Wq=function(){this.videoData.videoId?this.kA.Wq(this.videoData):this.Xp("piavid",{})}; g.Q.Eq=function(){if(!this.CR()&&!g.b(this.playerState,128)&&this.videoData.T){if(this.videoData.T.N)pM(this);else{var n=KW(this),Z=this.videoData;a:{var F=this.videoData.d5;if(n.N){for(var y=g.Y(F),l=y.next();!l.done;l=y.next()){l=l.value;var m=l.getInfo(),a=g.FF[m.video.quality];if((!n.T||m.video.quality!=="auto")&&a<=n.N){F=l;break a}}F=F[F.length-1]}else F=F[0]}Z.zx=F;DjU(this,n.reason,zdo(this,this.videoData.zx))}if(this.j("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.WV.Pr= !1,this.playVideo()}}; g.Q.LT=function(n,Z){if(this.CR()||g.b(this.playerState,128))return!1;var F,y=!((F=this.videoData.T)==null||!F.N);F=y&&Z?this.getCurrentTime()-this.Kn():NaN;if(n.J2&&n.J2.id){var l=this.g1;if(l.qoe){l=l.qoe;var m=[n.J2.id,isNaN(F)?"m":"t"];g.bM(l,g.kq(l.provider),"afi",m)}}if(y)return Z&&(y=uM(this.WV),this.Xp("aswh",{id:n.id,xtags:n.xtags,bh:y.toFixed(3)})),this.loader.setAudioTrack(n,F,Z),!0;if(OT3(this)){a:{Z=this.mediaElement.audioTracks();for(y=0;ym.KR.getDuration()&&mbj(m,a)):mbj(m,L);var q=m.loader,w=m.KR;D=D===void 0?!1:D;p=p===void 0?!1:p;q.policy.lY&&(q.policy.r5&&q.Xp("loader",{setsmb:0}),q.gW(),q.policy.lY=!1);w$3(q,p);if(!ua(w)){var T=dg(q.videoTrack),P=dg(q.audioTrack),J=(T?T.info.bY:q.videoTrack.bY).info,U=(P?P.info.bY:q.audioTrack.bY).info,h=q.policy.XW, v=J.mimeType+(h===void 0?"":h),V=U.mimeType,f=J.vr,W=U.vr,X;w.Ns=(X=w.KR)==null?void 0:X.addSourceBuffer(V);var u;w.Tx=v.split(";")[0]==="fakesb"?void 0:(u=w.KR)==null?void 0:u.addSourceBuffer(v);w.m9&&(w.m9.webkitSourceAddId("0",V),w.m9.webkitSourceAddId("1",v));var Fp=new IA(w.Ns,w.m9,"0",ME8(V),W,!1),nQ=new IA(w.Tx,w.m9,"1",ME8(v),f,!0);caQ(w,Fp,nQ)}T=D;P=p;T=T===void 0?!1:T;P=P===void 0?!1:P;nw(q.videoTrack,w.X||null,P);nw(q.audioTrack,w.N||null,P);q.KR=w;q.KR.S=!0;T||q.resume();w.N.Vu(q.xi,q); w.X.Vu(q.xi,q);try{q.YA()}catch($U){g.ZW($U)}m.publish("mediasourceattached")}}catch($U){g.yi($U),m.handleError(new g.Xv("fmt.unplayable",{msi:"1",ename:$U&&typeof $U==="object"&&"name"in $U?String($U.name):void 0,trg:"setmediasrc"},1))}} var m=this;Z=Z===void 0?!1:Z;F=F===void 0?!1:F;cCY(this,y===void 0?!1:y);this.KR=n;this.Ef()&&B4(this.KR)==="open"?l(this.KR):Msf(this.KR,l)}; g.Q.QJ=function(n){this.cK.set(n.initData,n);this.HI&&(this.HI.QJ(n),this.j("html5_eme_loader_sync")||this.cK.remove(n.initData))}; g.Q.r9=function(n){this.videoData.Jm=g.MQ("auto",n,!1,"u");pM(this)}; g.Q.Y3=function(n){var Z=n.reason,F=n.N.info,y=n.token,l=n.videoId,m=this.g1,a=this.videoData;if(F!==a.V){var D=!a.V;a.V=F;Z!=="m"&&Z!=="t"&&(Z=D?"i":"a");var p=Z==="m"||Z==="t";this.Y.experiments.RY("html5_refactor_sabr_audio_format_selection_logging")?this.Lt=new ai(a,F,Z,"",y,l):(Z=new ai(a,F,Z,"",y),m.qoe&&(m=m.qoe,F=g.kq(m.provider),L6j(m,F,Z)));this.publish("internalaudioformatchange",a,!D&&p)}this.WV.Y3(n.N.index)}; g.Q.Qa=function(n){this.publish("localmediachange",n)}; g.Q.r6=function(n){n=n===void 0?{}:n;var Z;(Z=this.loader)==null||Z.r6(this.Y,nW(this.videoData),n)}; g.Q.jN=function(){return this.pK.jN()}; g.Q.ZP=function(n){this.FI(new g.Xv("staleconfig",{reason:n}))}; g.Q.handleError=function(n){this.pK.handleError(n)}; g.Q.Gb=function(){return this.pK.Gb()}; g.Q.HM=function(n){this.WV.HM(n)}; g.Q.Mh=function(n,Z){n=n===void 0?!1:n;Z=Z===void 0?!1:Z;var F=this,y,l,m;return g.A(function(a){if(a.N==1){F.loader&&F.loader.Qv();F.loader&&F.loader.CR()&&TS(F);if(F.j("html5_enable_vp9_fairplay")&&F.mF()&&(y=F.videoData.N)!=null)for(var D in y.N)y.N.hasOwnProperty(D)&&(y.N[D].N=null,y.N[D].T=!1);F.QP(hR(F.playerState,2048));F.publish("newelementrequired");return n?g.x(a,Qw(F),2):a.ST(2)}F.videoData.t2()&&((l=F.loader)==null?0:l.zx)&&!P6(F)&&((m=F.isAtLiveHead())&&d9(F.videoData)?F.seekTo(Infinity, {eO:"videoPlayer_getNewElement"}):F.videoData.z7&&F.loader&&(D=F.loader,D.eT.t2&&(D.eT.z7||D.eT.V||D.eT.isPremiere?(D.seek(0,{eO:"loader_resetSqless"}),D.videoTrack.C=!0,D.audioTrack.C=!0,D.videoTrack.V=!0,D.audioTrack.V=!0):niQ(D.eT)&&Hp(D))));Z&&F.seekTo(0,{seekSource:105});g.b(F.playerState,8)&&F.playVideo();g.zA(a)})}; g.Q.Yw=function(n){this.Xp("hgte",{ne:+n});this.videoData.J=!1;n&&this.Mh();this.loader&&so3(this.loader)}; g.Q.gR=function(n){this.Xp("newelem",{r:n});this.Mh()}; g.Q.pauseVideo=function(n){n=n===void 0?!1:n;if((g.b(this.playerState,64)||g.b(this.playerState,2))&&!n)if(g.b(this.playerState,8))this.QP(fp(this.playerState,4,8));else if(this.CY())zV(this);else return;g.b(this.playerState,128)||(n?this.QP(hR(this.playerState,256)):this.QP(fp(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.HJ(this.videoData)&&this.loader&&pW(this,!1)}; g.Q.stopVideo=function(){this.pauseVideo();this.loader&&(pW(this,!1),this.loader.gW())}; g.Q.yX=function(n,Z){n=n===void 0?!1:n;Z=Z===void 0?!1:Z;if(this.Ef()&&Z){var F;(F=this.mediaElement)==null||F.yX()}else{var y;(y=this.mediaElement)==null||y.stopVideo()}vH(this);TS(this);g.b(this.playerState,128)||(n?this.QP(TW(TW(hR(this.playerState,4),8),16)):this.QP(N6(this.playerState)));this.videoData.videoId&&this.Y.jT.remove(this.videoData.videoId)}; g.Q.seekTo=function(n,Z){Z=Z===void 0?{}:Z;g.b(this.playerState,2)&&zV(this);Z.bsR&&this.QP(hR(this.playerState,2048));if((Z.seekSource===58||Z.seekSource===60)&&this.j("html5_update_vss_during_gapless_seeking")){var F=this.g1;F.N&&(F=F.N,Z.seekSource===58?F.N.update():F.T&&(IZ(F),k8(F).send(),F.V=NaN))}this.WV.seekTo(n,Z);this.L6.sync()}; g.Q.SJ=function(n){this.bN.V.X=(0,g.tP)();g.b(this.playerState,32)||(this.QP(hR(this.playerState,32,n==null?void 0:n.seekSource)),g.b(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.jO()}; g.Q.QY=function(n){n=n==null?void 0:n.seekSource;g.b(this.playerState,32)?(this.QP(fp(this.playerState,16,32,n)),this.publish("endseeking")):g.b(this.playerState,2)||this.QP(hR(this.playerState,16,n));n=this.bN.V;var Z=this.videoData,F=this.playerState.isPaused();if(Z.clientPlaybackNonce&&!isNaN(n.N)){if(Math.random()<.01){F=F?"pbp":"pbs";var y={startTime:n.N};Z.C&&(y.cttAuthInfo={token:Z.C,videoId:Z.videoId});qe("seek",y);g.HS({clientPlaybackNonce:Z.clientPlaybackNonce},"seek");isNaN(n.X)||fZ("pl_ss", n.X,"seek");fZ(F,(0,g.tP)(),"seek")}n.reset()}}; g.Q.cA=function(n){this.QY(n)}; g.Q.jb=function(){this.publish("SEEK_COMPLETE")}; g.Q.FF=function(n){var Z=this.kA,F=this.videoData.clientPlaybackNonce,y=this.playerType;if(n.scope===4){var l=n.type;if(l){var m=Z.Px(),a=m.getVideoData().clientPlaybackNonce;y===1&&(a=F);if(y=kAK(Z,a)){if(F=y.getVideoData())n.writePolicy===2&&F.sabrContextUpdates.has(l)||(n.sendByDefault&&F.jT.add(l),F.sabrContextUpdates.set(l,n)),Z.j("html5_enable_t1_enf_on_sabr")&&(n=l===5,l=jkp(F.playerResponse),n?(n=l?1:0,Fy(n,"m.p_",{}),Ka("MBSTAT",n)):n=1,n===0&&Z.JG.LR("onAbnormalityDetected"))}else m.Xp("scuset", {ncpf:"1",ccpn:a,crcpn:F})}else g.yi(Error("b/380308491: contextUpdateType is undefined"))}}; g.Q.Ul=function(){if(this.playerType===2)return this.kA.Ul("")}; g.Q.getCurrentTime=function(n){return this.WV.getCurrentTime(n===void 0?!1:n)}; g.Q.Fw=function(){return this.WV.Fw()}; g.Q.FY=function(){return this.WV.FY()}; g.Q.Sq=function(){return this.FY()}; g.Q.UV=function(){return this.WV.UV()}; g.Q.getPlaylistSequenceForTime=function(n){return this.videoData.getPlaylistSequenceForTime(n-this.Kn())}; g.Q.fP=function(){var n=NaN;this.mediaElement&&(n=this.mediaElement.fP());return n>=0?n:this.getCurrentTime()}; g.Q.Xh=function(){var n;return((n=this.videoData.N)==null?0:n.Xh)?this.videoData.N.Xh(this.getCurrentTime()-this.Kn()):this.mediaElement&&(n=this.mediaElement.bM())&&(n=n.getTime(),!isNaN(n))?n/1E3+this.getCurrentTime():NaN}; g.Q.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Kn():this.xA()?this.xA():0}; g.Q.PP=function(){var n=new QF8;if(this.loader){var Z=this.zN,F=this.Y.eG();F=F===void 0?!1:F;n.P4=Z.w5;n.Gw=Z.aY;n.bandwidthEstimate=TR(Z);if(F){F=(Z.L.lH()*1E3).toFixed();var y=(Z.zx.lH()*1E3).toFixed(),l=oW(Z).toFixed(2),m=((Z.J.lH()||0)*1E9).toFixed(2),a=Z.T.lH().toFixed(0),D=Z.lY.lH().toFixed(0),p=Z.Pr.percentile(.5).toFixed(2),L=Z.Pr.percentile(.92).toFixed(2),q=Z.Pr.percentile(.96).toFixed(2),w=Z.Pr.percentile(.98).toFixed(2);Z.N?Z.N.reset():Z.N=new tx;Z.N.add(Z.Wr);Z.N.add(Z.interruptions.length); for(var T=0,P=Z.interruptions.length-1;P>=0;P--){var J=Z.interruptions[P];Z.N.add(J-T);T=J}T=0;for(P=Z.V.length-1;P>=0;P--){J=Z.V[P];var U=J.stamp/36E5;Z.N.add(U-T);T=U;Z.N.add(J.net/1E3);Z.N.add(J.max)}Z=Z.N.Go();n.N={ttr:F,ttm:y,d:l,st:m,bw:a,abw:D,v50:p,v92:L,v96:q,v98:w,"int":Z}}Z=this.loader;Z.KR&&Z.KR.S&&!Z.KR.JX()&&(n.s3=Lh(Z.videoTrack),n.X=Lh(Z.audioTrack),Z.policy.T&&(F=HK(Z.videoTrack),y=HK(Z.audioTrack),l=dr(Z.KR.X.qj(),"_",5),m=dr(Z.KR.N.qj(),"_",5),Object.assign(n.N,{lvq:F,laq:y,lvb:l, lab:m})));n.bandwidthEstimate=ML(Z.Pr);var h;(h=Z.audioTrack.L)==null||h.flush();var v;(v=Z.videoTrack.L)==null||v.flush()}else this.mediaElement&&(n.s3=this.mediaElement.yq());n.P4=this.P4;n.Gw=this.Gw;n.T=this.isAtLiveHead()&&this.isPlaying()?lu(this):NaN;h=this.WV;h=h.N?jH(h.N):0;n.V=h;return n}; g.Q.Eh=function(n,Z){this.Gw+=n;this.P4+=Z}; g.Q.Yg=function(){return this.mediaElement?g.HJ(this.videoData)?1:fC(this.videoData)?this.isAtLiveHead()||this.j5()?1:this.WV.Yg():this.mediaElement.Yg():0}; g.Q.sM=function(){var n=this.S4,Z=at(n,"bandwidth"),F=at(n,"bufferhealth"),y=at(n,"livelatency"),l=at(n,"networkactivity"),m=V3(n,"bandwidth"),a=V3(n,"bufferhealth"),D=V3(n,"livelatency");n=V3(n,"networkactivity");var p=this.Iy(),L=p.droppedVideoFrames;p=p.totalVideoFrames;var q=this.getCurrentTime();if(this.HI){var w="IT/"+(this.HI.N.getInfo()+"/"+Kj(this.qn()));w+="/"+this.HI.getInfo()}else w="";var T=this.isGapless(),P=this.vj(),J=this.vy(),U=g.DK(this),h=this.getPlayerState(),v=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var V=0;var f="";if(this.CJ){if(this.CJ.nm){f="D,";break a}V=this.CJ.GK;f=this.CJ.JV.substring(0,4)}V>0?(V="AD"+V+", ",f&&(V+=f+", "),f=V):f=""}return{Us:m,ue:a,currentTime:q,tU:w,droppedVideoFrames:L,isGapless:T,vj:P,mp:J,OY:Z,rE:F,a8:y,cR:l,fu:D,Uy:n,Ub:U,playerState:h,eE:v,V0:f,totalVideoFrames:p}}; g.Q.Zx=function(n){var Z={};if(n===void 0?0:n){Object.assign(Z,this.g1.Zx());this.mediaElement&&(Object.assign(Z,this.mediaElement.Zx()),n=this.Iy(),Z.dvf=n.droppedVideoFrames,Z.tvf=n.totalVideoFrames);this.loader&&Object.assign(Z,this.loader.Zx());this.HI&&(Z.drm=JSON.stringify(this.HI.Zx()));Z.state=this.playerState.state.toString(16);g.b(this.playerState,128)&&(Z.debug_error=JSON.stringify(this.playerState.wB));this.hw()&&(Z.prerolls=this.eC.join(","));this.videoData.Qc&&(Z.ismb=this.videoData.Qc); this.videoData.latencyClass!=="UNKNOWN"&&(Z.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(Z.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)Z.is_mosaic=1;this.videoData.cotn&&(Z.is_offline=1,Z.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(Z.playerResponseCpn=this.videoData.playerResponseCpn);this.kA.isOrchestrationLeader()&&(Z.leader=1);this.videoData.isLivePlayback&& (this.videoData.N&&Qx(this.videoData.N)&&(Z.segduration=Qx(this.videoData.N)),n=this.WV,Z.lat=n.L?V4n(n.L.V):0,Z.liveutcstart=this.videoData.liveUtcStartSeconds);Z.relative_loudness=this.videoData.Wu.toFixed(3);if(n=g.DK(this))Z.optimal_format=n.video.qualityLabel;Z.user_qual=Bf();Z.release_version=K[25]}Z.debug_videoId=this.videoData.videoId;return Z}; g.Q.addCueRange=function(n){this.lD([n])}; g.Q.removeCueRange=function(n){this.L6.Gc([n])}; g.Q.hA=function(){var n=this.L6;if(n.mQ.B().j("html5_sort_cueranges_on_update")&&!(n.bG().length<=0||n.CR())){var Z=n.N;Z.array.sort(Z.N)}n.sync()}; g.Q.hp=function(n,Z){return this.L6.hp(n,Z)}; g.Q.lD=function(n,Z){this.L6.y9(n,Z)}; g.Q.jS=function(n){this.L6.Gc(n)}; g.Q.bG=function(){return this.L6.bG()||[]}; g.Q.VE=function(){return this.B6}; g.Q.rJ=function(){return this.visibility.rJ()}; g.Q.IA=function(){this.mediaElement&&this.mediaElement.IA()}; g.Q.DtY=function(){Qa(this)}; g.Q.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.Q.hO=function(){g.xU(this.l5)}; g.Q.BVT=function(){this.jO();this.publish("onLoadProgress",this.Yg())}; g.Q.wL=function(n){var Z=n.target.cE();if(this.mediaElement&&this.mediaElement.cE()&&this.mediaElement.cE()===Z){tsj(this,n.type);switch(n.type){case "error":var F=this.mediaElement.tS()||"",y=this.mediaElement.bP();if(F==="capability.changed"){this.j("html5_restart_on_capability_change")?(this.Xp("capchg",{msg:y}),this.Mh(!0)):Qw(this);return}if(this.mediaElement.hasError()&&hq(this.pK,F,{msg:y,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.Mk()){this.yX();PW(this,"unplayable"); return}break;case "durationchange":F=this.mediaElement.getDuration();isFinite(F)&&(!this.KR||F>0)&&F!==1&&this.EW(F);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());F=this.L6;F.started=!0;F.sync();this.g1.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":this.OS().N.Wx(Kv7)&&FG(this,!1);jrU(this);this.publish("onLoadedMetadata");RIj(this);F=this.Xh();this.videoData.P$&&(this.videoData.P$=F);break;case "loadstart":RIj(this); break;case "progress":case "suspend":this.A5.Ni();break;case "seeked":(F=this.loader)!=null&&F.policy.X&&F.VT&&(F.Xp("sdai",{skipAdSked:"1"}),F.VT=!1);break;case "playing":this.OS().N.Wx(Kv7)&&FG(this,!1);this.bN.Y7("plev");this.n1&&!P6(this)&&(this.n1=!1,this.isAtLiveHead()||this.seekTo(Infinity,{eO:"videoplayer_onPlaying"}));break;case "timeupdate":this.OS().N.Wx(Kv7)&&FG(this,!1);F=this.mediaElement&&!this.mediaElement.getCurrentTime();y=this.mediaElement&&this.mediaElement.Ih()===0;if(F&&(!this.K$|| y))return;this.K$=this.K$||!!this.mediaElement.getCurrentTime();i2(this);this.jO();if(!this.mediaElement||this.mediaElement.cE()!==Z)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.wF().length>0&&this.mediaElement.WE().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.j("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Ih()>2||!this.mediaElement.isSeeking()&& SF(this.mediaElement.WE(),this.mediaElement.getCurrentTime()))&&(F=this.mediaElement.Zx(),F.bh=this.mediaElement.yq().toFixed(3),this.Xp("uwe",F));break;case "resize":jrU(this);this.videoData.X&&this.videoData.X.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.w$&&g.b(this.playerState,8)&&!g.b(this.playerState,1024)&&this.getCurrentTime()===0&&g.x5){PW(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.cE()=== Z){KdU(this.WV,n);this.publish("videoelementevent",n);Z=this.playerState;y=this.Bo;var l=this.mediaElement;F=this.videoData.clientPlaybackNonce;if(!g.b(Z,128)){var m=Z.state;l=l?l:n.target;var a=l.getCurrentTime();if(!g.b(Z,64)||n.type!=="ended"&&n.type!=="pause"){var D=l.getDuration();D=l.isEnded()||a>1&&Math.abs(a-D)<1.1;var p=n.type==="pause"&&l.isEnded();a=n.type==="ended"||n.type==="waiting"||n.type==="timeupdate"&&!g.b(Z,4)&&!HE(y,a);if(p||D&&a)l.zH()>0&&l.cE()&&(m=14);else switch(n.type){case "error":l.tS()&& (m|=128);break;case "pause":g.b(Z,256)?(m^=256)||(m=64):g.b(Z,32)||g.b(Z,2)||g.b(Z,4)||(m=4,g.b(Z,1)&&g.b(Z,8)&&(m|=1));break;case "playing":a=m;m=(m|8)&-1093;a&4?(m|=1,aj(y,l,!0)):HE(y,l.getCurrentTime())&&(m&=-2);g.b(Z,1)&&aj(y,l)&&(m|=1);break;case "seeking":m|=16;g.b(Z,8)&&(m|=1);m&=-3;break;case "seeked":m&=-17;aj(y,l,!0);break;case "waiting":g.b(Z,2)||(m|=1);aj(y,l);break;case "timeupdate":a=g.b(Z,16),D=g.b(Z,4),(g.b(Z,8)||a)&&!D&&HE(y,l.getCurrentTime())&&(m=8),aj(y,l)&&(m|=1)}}y=m;m=null; y&128&&(m=n.target,l=m.tS(),a=1,l?(l==="capability.changed"&&(a=2),D="GENERIC_WITHOUT_LINK",p=m.Zx(),p.mediaElem="1",p.trg="melem",/AUDIO_RENDERER/.test(m.bP())&&(D="HTML5_AUDIO_RENDERER_ERROR"),m={errorCode:l,errorMessage:g.ZE[D]||"",h$:D,fM:UQ(p),vG:a,cpn:Z.wB?Z.wB.cpn:""}):m=null,m&&(m.cpn=F));Z=N6(Z,y,m)}!g.b(this.playerState,1)&&g.b(Z,1)&&ULU(this,"evt"+n.type);this.QP(Z)}}}; g.Q.B1i=function(n){n=n.N.availability==="available";n!==this.B6&&(this.B6=n,this.publish("airplayavailabilitychange"))}; g.Q.DdQ=function(){var n=(0,g.tP)(),Z=this.mediaElement.rJ();this.Xp("airplay",{ia:Z});!Z&&!isNaN(this.NP)&&n-this.NP<2E3||(this.NP=n,Z!==this.rJ()&&(n=this.visibility,n.N!==Z&&(n.N=Z,n.TU()),this.Xp("airplay",{rbld:Z}),this.eU()),this.publish("airplayactivechange"))}; g.Q.E9=function(n){if(this.loader){var Z=this.loader,F=Z.T,y=Z.getCurrentTime(),l=Date.now()-F.Pr;F.Pr=NaN;F.Xp("sdai",{adfetchdone:n,d:l});n&&!isNaN(F.J)&&F.X!==3&&n9(F.loader,y,F.J,F.C);F.policy.X?F.S=NaN:F.V=NaN;jL(F,4,F.X===3?"adfps":"adf");mx(Z)}}; g.Q.WA=function(){g.gg(this.t3);this.Jj.stop();this.videoData.L=!0;this.Y.z4=!0;this.Y.mJ=0;var n=this.pK;if(n.videoData.X){var Z=n.iY.S,F=n.videoData.X.vr;Z.V.has(F)&&(Z.V.delete(F),Z.X=!0)}n.N.stop();this.di();g.b(this.playerState,8)&&this.QP(TW(this.playerState,65));this.k8=!1;this.g1.fB();g.J3(this.aK);this.publish("playbackstarted");(n=g.Di("yt.scheduler.instance.clearPriorityThreshold"))?n():LF(0)}; g.Q.di=function(){var n=this.kA.dM(),Z={},F={};!uO("pbs",this.bN.timerName)&&u_.measure&&u_.getEntriesByName&&(u_.getEntriesByName("mark_nr")[0]?QLP("mark_nr"):QLP());n.videoId&&(Z.videoId=n.videoId);n.clientPlaybackNonce&&!this.j("web_player_early_cpn")&&(Z.clientPlaybackNonce=n.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(F.isPausedOnLoad=!0);F.itag=n.X?Number(n.X.itag):-1;n.Bx&&(F.preloadType=String(this.UF?2:1));Z.liveStreamMode=W1g[Ap(n)];Z.playerInfo=F;this.bN.infoGel(Z); if(this.loader){n=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(n.T&&(Z=window.performance.getEntriesByName(n.T),Z.length&&(Z=Z[0],n.tick("vri",Z.fetchStart),n.tick("vdns",Z.domainLookupEnd),n.tick("vreq",Z.requestStart),n.tick("vrc",Z.responseEnd))),n.X&&(Z=window.performance.getEntriesByName(n.X),Z.length&&(Z=Z[0],n.tick("ari",Z.fetchStart),n.tick("adns",Z.domainLookupEnd),n.tick("areq",Z.requestStart),n.tick("arc",Z.responseEnd))));n=n.ticks;for(var y in n)n.hasOwnProperty(y)&& this.bN.tick(y,n[y])}}; g.Q.jO=function(n){var Z=this;n=n===void 0?!1:n;if(this.mediaElement&&this.videoData){ZH3(this.WV,this.isPlaying());var F=this.getCurrentTime();if(this.loader&&(g.b(this.playerState,4)&&g.HJ(this.videoData)||g.b(this.playerState,32)&&YA(this.videoData)||FRn(this.loader,F),this.j("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-XhY(this.loader))>10)){var y;this.Xp("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(y=this.loader)==null?void 0:XhY(y)},!0)}F>5&&(this.WV.T= F);(y=g.Qk())?g.CF.qc(this.VA):g.l0(this.VA);var l=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!l||HW(this.videoData))&&!g.b(this.playerState,128)){var m=function(){if(Z.mediaElement&&!g.b(Z.playerState,128)){Z.Y.eG()&&tsj(Z,"pfx");var a=Z.getCurrentTime();Z.j("html5_buffer_underrun_transition_fix")&&(a-=Z.Kn());var D=Z.mediaElement.yq(),p=g.b(Z.playerState,8),L=HE(Z.Bo,a),q=X6j(Z.Bo,a,(0,g.tP)(),D);p&&L?Z.QP(TW(Z.playerState,1)):p&&q?(p=Z.getDuration(),L=d9(Z.videoData),p&&Math.abs(p- a)<1.1?(Z.Xp("setended",{ct:a,bh:D,dur:p,live:L}),Z.mediaElement.HW()?Z.seekTo(0,{eO:"videoplayer_loop",seekSource:37}):Z.kQ()):(Z.playerState.isBuffering()||ULU(Z,"progress_fix"),Z.QP(hR(Z.playerState,1)))):(p&&!L&&!q&&a>0&&(p=(Date.now()-Z.BP)/1E3,L=Z.getDuration(),a>L-1&&Z.Xp("misspg",{t:a.toFixed(2),d:L.toFixed(2),r:p.toFixed(2),bh:D.toFixed(2)})),Z.playerState.isPaused()&&Z.playerState.isBuffering()&&Z.mediaElement.yq()>5&&Z.QP(TW(Z.playerState,1)));Z.jO()}}; this.mediaElement.wF().length===0?this.VA=y?g.CF.k6(m,100):g.A3(m,100):this.VA=y?g.CF.k6(m,500):g.A3(m,500)}this.videoData.IW=F;!n&&this.isPlaying()&&MB8(this);GZ7(this.x6,this.Q9,this.HV(),this.isBackground())&&pM(this);this.publish("progresssync",n);l&&HW(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.Q.Ad=function(){this.Mj("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.Q.vy=function(){return this.g1.vy()}; g.Q.wy=function(){return this.loader?this.loader.wy():TR(this.zN,!0)}; g.Q.QP=function(n){if(!g.UM8(this.playerState,n)){var Z=new g.gZ(n,this.playerState);this.playerState=n;JXY(this);var F=!this.jF.length;this.jF.push(Z);var y=this.mediaElement&&this.mediaElement.isSeeking();g.On(Z,1)&&this.loader&&t0Y(this.loader);y=Z.oldState.state===8&&!y;if(g.On(Z,1)&&y&&g.b(this.playerState,8)&&!g.b(this.playerState,64)&&this.loader){y=this.loader;y.CB=!0;if(y.policy.PV&&y.KR){var l,m,a,D;y.Xp("lr_rb",{c:y.getCurrentTime(),s:y.isSeeking(),ab:dr(y.KR.N.qj()),ala:(l=m1(y.audioTrack))== null?void 0:l.bd(),alr:(m=y.audioTrack.N)==null?void 0:m.bd(),vb:dr(y.KR.X.qj()),vla:(a=m1(y.videoTrack))==null?void 0:a.bd(),vlr:(D=y.videoTrack.N)==null?void 0:D.bd()})}y.aj!==0&&y.Xp("sps_rebuffer",{c:y.getCurrentTime()});this.mediaElement&&this.mediaElement.yq()>=5&&(l=this.x6,m=this.Q9,!m.videoData.X||l.j("html5_disable_performance_downgrade")?l=!1:(Date.now()-l.J>6E4&&(l.X=0),l.X++,l.J=Date.now(),l.X!==4?l=!1:(rDT(l,m.videoData.X),l=!0)),l&&pM(this))}(l=g.jf(this.Y.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.b(n,1)&&(g.b(n,8)||g.b(n,16))?this.oK.start(l):this.oK.stop();(XG(Z,8)<0||g.On(Z,1024))&&this.Jj.stop();!g.On(Z,8)||this.videoData.L||g.b(Z.state,1024)||this.Jj.start();g.b(Z.state,8)&&XG(Z,16)<0&&!g.b(Z.state,32)&&!g.b(Z.state,2)&&this.playVideo();g.b(Z.state,2)&&fC(this.videoData)&&(this.EW(this.getCurrentTime()),this.jO(!0));g.On(Z,2)&&(this.N0(!0),this.Y.eG()&&this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&YA(this.videoData)&&this.videoData.N&&(n={minst:""+ this.videoData.N.c_,cminst:""+(this.videoData.N.LJ()+this.Kn()),maxst:""+this.videoData.N.dK,hts:""+this.videoData.N.w5,cmaxst:""+(this.videoData.N.xA()+this.Kn())},this.Xp("sabrSeekableBoundaries",n)));g.On(Z,128)&&this.yX();this.videoData.N&&this.videoData.isLivePlayback&&!this.hK&&(XG(Z,8)<0?(n=this.videoData.N,n.S&&n.S.stop()):g.On(Z,8)&&this.videoData.N.resume());n=this.WV;g.J3(n.Ns.S);if(n.mediaElement)if(Z.oldState.state===8&&dd(Z.state)&&Z.state.isBuffering()){var p=n.mediaElement.getCurrentTime(); l=n.mediaElement.WE();m=n.j("manifestless_post_live_ufph")||n.j("manifestless_post_live")?ph(l,Math.max(p-3.5,0)):ph(l,p-3.5);m>=0&&p>l.end(m)-1.1&&m+10?(t_(n.mQ,n.getCurrentTime()+n.videoData.limitedPlaybackDurationInSeconds), n.yg=!0):n.videoData.isLivePlayback&&n.videoData.endSeconds>0&&(t_(n.mQ,n.getCurrentTime()+n.videoData.endSeconds),n.yg=!0));p=this.g1;if(g.On(Z,1024)||g.On(Z,512)||g.On(Z,4))p.X&&(n=p.X,n.X>=0||(n.N=-1,n.delay.stop())),p.qoe&&(n=p.qoe,n.J||(n.T=-1));if(p.provider.videoData.enableServerStitchedDai&&p.xd){var L;(L=p.T.get(p.xd))==null||paj(L,Z)}else p.N&&paj(p.N,Z);p.qoe&&(L=p.qoe,n=Z.state,l=g.kq(L.provider),m=L.getPlayerState(n),a=n.seekSource||void 0,m!==L.gV&&(L.w5||l=10&&L.playTimeSecs<=180&&(L.N.set("qoealert",["1"]),L.mJ=!0)),m!=="B"||L.gV!=="PL"&&L.gV!=="PB"||(L.isBuffering=!0),L.X=l),L.gV==="PL"&&(m==="B"||m==="S")||L.provider.Y.eG()?Z9(L,l):(L.IW||m!=="PL"||(L.IW=!0,zM(L,l,L.provider.mQ.PP())),fT(L,l)),m==="PL"&&g.J3(L.cV),D=[m],m==="S"&&a&&D.push("ss."+a),g.bM(L,l,"vps",D),L.gV=m,L.Ns=l,L.X=l,L.V=!0),m=n.wB,g.b(n,128)&&m&&(m.fM=m.fM||"",YR8(L,l,m.errorCode, m.vG,m.fM)),(g.b(n,2)||g.b(n,128))&&L.reportStats(l),n.isPlaying()&&!L.J&&(L.T>=0&&L.N.set("user_intent",[L.T.toString()]),L.J=!0),MI7(L));p.X&&(L=p.X,eFo(L),L.playerState=Z.state,L.X>=0&&g.On(Z,16)&&L.seekCount++,Z.state.isError()&&L.send());if(F&&!this.CR())try{for(var q=g.Y(this.jF),w=q.next();!w.done;w=q.next()){var T=w.value,P=this.L6;if(P.started&&(P.sync(),g.b(T.oldState,16))){Z=P;var J=B93(Z.N,Math.max(Z.T-2E3,0));!isNaN(J)&&J<0x7ffffffffffff&&Z.V.start()}this.publish("statechange",T)}}finally{this.jF.length= 0}}}; g.Q.tW=function(){this.bN.tick("qoes")}; g.Q.Qf=function(){this.WV.Qf()}; g.Q.Do=function(n,Z,F,y){a:{var l=this.pK;y=y===void 0?"LICENSE":y;F=F.substring(0,256);var m=W0(Z);n==="drm.keyerror"&&this.HI&&this.HI.X.keys.length>1&&l.V<96&&(n="drm.sessionlimitexhausted",m=!1);var a=l.iY.experiments.RY("html5_retry_on_drm_unavailable"),D=l.iY.experiments.RY("html5_retry_on_drm_key_error"),p=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(a&&n==="drm.unavailable"||D&&n==="drm.keyerror"&&!F.match(p))l.FI("qoe.restart",{retryOnDrmError:1,e:n,detail:F}),l.mQ.Mh(!0);else{if(m)if(l.videoData.X&& l.videoData.X.video.isHdr())bG(l,n);else{if(l.mQ.Mj(n,Z,y,F),LJj(l,{detail:F}))break a}else l.FI(n,{detail:F});n==="drm.sessionlimitexhausted"&&(l.Xp("retrydrm",{sessionLimitExhausted:1}),l.V++,vpe(l.mQ))}}}; g.Q.ZJs=function(){var n=this,Z=g.jf(this.Y.experiments,"html5_license_constraint_delay"),F=XY();Z&&F?(Z=new g.e7(function(){n.Eq();Qa(n)},Z),g.S(this,Z),Z.start()):(this.Eq(),Qa(this))}; g.Q.Q7=function(n){this.publish("heartbeatparams",n)}; g.Q.gF=function(n){this.Xp("keystatuses",jUo(n));var Z="auto",F=!1;this.videoData.X&&(Z=this.videoData.X.video.quality,F=this.videoData.X.video.isHdr());a:{switch(Z){case "highres":case "hd2880":Z="UHD2";break;case "hd2160":case "hd1440":Z="UHD1";break;case "hd1080":case "hd720":Z="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Z="SD";break;default:Z="";break a}F&&(Z+="HDR")}Z=Iy(n)?pf(n,Z):n.V.includes(Z);if(this.j("html5_enable_vp9_fairplay")){if(F)if(n.J){var y;if((y= this.HI)==null?0:Jr(y.N))if((F=this.HI)==null)F=0;else{for(var l=y=void 0,m=g.Y(F.X.values()),a=m.next();!a.done;a=m.next())a=a.value,y||(y=wDn(a,"SD")),l||(l=wDn(a,"AUDIO"));F.Xe({sd:y,audio:l});F=y==="output-restricted"||l==="output-restricted"}else F=!Z;if(F){this.Xp("drm",{dshdr:1});bG(this.pK);return}}else{this.videoData.W4||(this.videoData.W4=!0,this.Xp("drm",{dphdr:1}),this.Mh(!0));return}var D;if((D=this.HI)==null?0:Jr(D.N))return}else if(D=n.J&&Z,F&&!D){bG(this.pK);return}Z||pf(n,"AUDIO")&& pf(n,"SD")||(n=jUo(n),this.Og?(this.publish("drmoutputrestricted"),this.j("html5_report_fatal_drm_restricted_error_killswitch")||this.Mj("drm.keyerror",2,void 0,"info."+n)):(this.Og=!0,this.FI(new g.Xv("qoe.restart",Object.assign({},{retrydrm:1},n))),pM(this),vpe(this)))}; g.Q.MOs=function(){if(!this.videoData.L&&this.mediaElement&&!this.isBackground()){var n="0";this.mediaElement.Ih()>0&&this.mediaElement.yq()>=5&&this.videoData.T&&this.videoData.T.N&&(this.QP(hR(this.playerState,1)),ULU(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),n="1");JXY(this);var Z=this.videoData.T;n={restartmsg:n,mfmt:!Ni(this.videoData),mdrm:!(!(Z&&Z.videoInfos&&Z.videoInfos.length&&Z.videoInfos[0].by)||this.HI),mfmtinfo:!this.videoData.X,prerolls:this.hw()?this.eC.join(","): "0"};if(this.HI){Z=this.HI;if(Z.X.size<=0){var F="ns;";Z.Pr||(F+="nr;");Z=F+="ql."+Z.T.length}else Z=jUo(Z.X.values().next().value),Z=UQ(Z);n.drmp=Z}var y;Object.assign(n,((y=this.loader)==null?void 0:y.Zx())||{});var l;Object.assign(n,((l=this.mediaElement)==null?void 0:l.Zx())||{});this.g1.FI("qoe.start15s",UQ(n));this.publish("loadsofttimeout")}}; g.Q.EW=function(n){this.videoData.lengthSeconds!==n&&(this.videoData.lengthSeconds=n,Qa(this))}; g.Q.N0=function(n,Z){var F=this;n=n===void 0?!1:n;if(!this.Mi)if(uO("att_s","player_att")||hm("att_s",void 0,"player_att"),this.j("use_rta_for_player"))(function(){var l,m,a,D,p;return g.A(function(L){switch(L.N){case 1:if(!(l=n)){L.ST(2);break}return g.x(L,g.OyT(),3);case 3:l=!L.X;case 2:if(l)return L.return();g.RX(L,4);m=ZuQ(F.g1);if(!m)throw Error();a={};return g.x(L,g.Opn((a.cpn=F.videoData.clientPlaybackNonce,a.encryptedVideoId=F.videoData.videoId||"",a),3E4),6);case 6:D=L.X;if(F.Mi)throw Error(); if(!D.challenge)throw p=D.error?"; error: "+D.error:"",g.yi(Error("Not sending atr ping; missing challenge string"+p)),Error();F.Mi=!0;var q=[D.challenge];if(D.error){var w=SMY();w=NXp(w).get(D.error)||0;q.push("r1c="+w)}else D.webResponse&&q.push("r1a="+D.webResponse);var T;((T=D.adblockReporting)==null?void 0:T.reportingStatus)!==void 0&&q.push("r6a="+D.adblockReporting.reportingStatus);var P;((P=D.adblockReporting)==null?void 0:P.broadSpectrumDetectionResult)!==void 0&&q.push("r6b="+D.adblockReporting.broadSpectrumDetectionResult); m(q.join("&"));hm("att_f",void 0,"player_att");g.iX(L,0);break;case 4:g.d4(L),hm("att_e",void 0,"player_att"),g.zA(L)}})})().then(function(){Z==null||Z()}); else{var y=new g.afQ(this.videoData);if("c1a"in y.cW&&!g.ic.isInitialized()){hm("att_wb",void 0,"player_att");this.JZ===2&&Math.random()<.01&&g.yi(Error("Botguard not available after 2 attempts"));if(n)return;if(this.JZ<5){g.J3(this.cO);this.JZ++;return}}(y=g.oyp(y))?(hm("att_f",void 0,"player_att"),H$p(this.g1,y),this.Mi=!0):hm("att_e",void 0,"player_att")}}; g.Q.zc=function(n){n=n===void 0?!1:n;return d9(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.j5()||g.HJ(this.videoData))?this.getCurrentTime():this.xA(n)}; g.Q.xL=function(){return this.LJ()}; g.Q.xA=function(n){return this.WV.xA(n===void 0?!1:n)}; g.Q.LJ=function(){return this.WV.LJ()}; g.Q.Kn=function(){return this.WV?this.WV.Kn():0}; g.Q.getStreamTimeOffset=function(){return this.WV?this.WV.getStreamTimeOffset():0}; g.Q.bf=function(){return this.getStreamTimeOffset()===0?this.Kn():this.getStreamTimeOffset()}; g.Q.setPlaybackRate=function(n){var Z;this.playbackRate!==n&&BH(this.x6,(Z=this.videoData.T)==null?void 0:Z.videoInfos)&&(this.playbackRate=n,pM(this));this.playbackRate=n;this.mediaElement&&this.mediaElement.setPlaybackRate(n)}; g.Q.getPlaybackRate=function(){return this.playbackRate}; g.Q.getPlaybackQuality=function(){var n="unknown";if(this.videoData.X&&(n=this.videoData.X.video.quality,n==="auto"&&this.mediaElement)){var Z=this.T2();Z&&Z.videoHeight>0&&(n=BBQ(Z.videoWidth,Z.videoHeight))}return n}; g.Q.isHdr=function(){return!!(this.videoData.X&&this.videoData.X.video&&this.videoData.X.video.isHdr())}; g.Q.sendVideoStatsEngageEvent=function(n,Z){var F=this.g1;F.N?(F=GD(F.N,"engage"),F.w5=n,F.send(Z)):Z&&Z()}; g.Q.Bm=function(n){return this.g1.Bm(n)}; g.Q.isAtLiveHead=function(n,Z){Z=Z===void 0?!1:Z;return d9(this.videoData)&&(this.gC||Z)?this.WV.isAtLiveHead(n):!1}; g.Q.Hn=function(){var n=this.xA(),Z=this.getCurrentTime(),F;(F=!d9(this.videoData))||(F=this.WV,F=!(F.N&&F.N.T));return F||this.j5()||isNaN(n)||isNaN(Z)?0:Math.max(0,n-Z)}; g.Q.xE=function(n){(this.gC=n)||this.Jj.stop();if(this.videoData.N)if(n)this.videoData.N.resume();else{var Z=this.videoData.N;Z.S&&Z.S.stop()}this.loader&&(Z=this.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&this.FW()&&this.videoData.isLivePlayback,n&&!Z?this.loader.resume():pW(this,!0));g.b(this.playerState,2)||n?g.b(this.playerState,512)&&n&&this.QP(TW(this.playerState,512)):this.QP(hR(this.playerState,512));Z=this.g1;Z.qoe&&(Z=Z.qoe,g.bM(Z,g.kq(Z.provider),"stream",[n?"A":"I"]))}; g.Q.Rg=function(n){this.g1.FI("player.exception",UQ({n:n.name,m:n.message}))}; g.Q.Mg=hA(22);g.Q.Aw=hA(51);g.Q.nh=function(n){this.g1.nh(n)}; g.Q.SS=function(n){this.g1.SS(n)}; g.Q.CT=function(n){this.g1.CT(n)}; g.Q.uG=hA(28);g.Q.Om=hA(34);g.Q.TP=function(n){this.g1.TP(n)}; g.Q.t7=function(n,Z,F,y){this.g1.t7(n,Z,F,y)}; g.Q.i9=function(){this.Xp("hidden",{},!0)}; g.Q.Iy=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.Q.iE=function(){return this.loader?this.loader.iE():!0}; g.Q.setLoop=function(n){this.loop=n;this.mediaElement&&!g.f4(this.Y)&&this.mediaElement.setLoop(n)}; g.Q.HW=function(){return this.mediaElement&&!g.f4(this.Y)?this.mediaElement.HW():this.loop}; g.Q.lc=function(n){this.Xp("timestamp",{o:n.toString()});this.WV.lc(n)}; g.Q.SO=function(n){this.bN.tick(n)}; g.Q.ZC=function(n){return this.bN.ZC(n)}; g.Q.Y7=function(n){this.bN.Y7(n)}; g.Q.Xp=function(n,Z,F){this.g1.Xp(n,Z,F===void 0?!1:F)}; g.Q.I9=function(n,Z,F){this.g1.Xp(n,Z,F===void 0?!1:F)}; g.Q.FI=function(n){this.g1.FI(n.errorCode,UQ(n.details));n=n.errorCode;if(this.videoData.isLivePlayback&&(n==="qoe.longrebuffer"||n==="qoe.slowseek")||n==="qoe.restart"){n=this.loader?JFT(this.loader.videoTrack):{};var Z,F;this.Xp("lasoe",Object.assign(this.loader?JFT(this.loader.audioTrack):{},(Z=this.KR)==null?void 0:(F=Z.N)==null?void 0:F.i$()));var y,l;this.Xp("lvsoe",Object.assign(n,(y=this.KR)==null?void 0:(l=y.X)==null?void 0:l.i$()))}if(this.j("html5_log_centralized_player_time")){var m;this.Xp("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(m=this.loader)==null?void 0:XhY(m)})}}; g.Q.WC=function(n,Z,F){this.g1.WC(n,Z,F)}; g.Q.IN=function(n,Z,F,y,l,m,a,D){var p;if((p=this.videoData.N)!=null&&p.isLive){var L=Z.playerType===2?Z:n,q=n.videoData.videoId,w=Z.videoData.videoId;if(q&&w){p=this.g1;if(p.qoe){var T=p.qoe,P=n.cpn,J=Z.cpn,U=L.videoData.Hx,h=T.provider.videoData.clientPlaybackNonce,v=T.provider.videoData.videoId,V=J!==h&&w!==v;h=P!==h&&q!==v;T.reportStats();T.adCpn&&T.adCpn!==P||(T.adCpn=h?P:"",T.Sy=h?q:"",T.adFormat=h?U:void 0,F5P(T,m?4:l?2:0,J,w,y),T.reportStats(),T.adCpn=V?J:"",T.Sy=V?w:"",T.adFormat=V?U:void 0, F5P(T,m?5:l?3:1,P,q,F),T.reportStats())}F=n.cpn;if(p.T.has(F)){if(l=p.T.get(F),k8(l,!0).send(),IZ(l),F!==p.provider.videoData.clientPlaybackNonce){f9(l);var f;(f=p.N)==null||cw(f);p.T.delete(F)}}else p.xd=p.provider.videoData.clientPlaybackNonce,p.xd&&p.N&&(p.T.set(p.xd,p.N),k8(p.N).send(),IZ(p.N));f=Z.cpn;L=L.videoData;y-=this.bf();if(p.T.has(f)){y=p.T.get(f);var W=y.T&&isNaN(y.S)?a0(y):NaN;y=VU(y,!1);isNaN(W)||(y.J=W);y.send()}else y=UkK(p,p.provider,L,y),p.T.set(f,y),paj(y,new g.gZ(hR(new g.iE, 8),new g.iE)),y.fB(),(W=p.N)==null||IZ(W);p.xd=f;if(this.j("html5_unify_csi_server_stitched_transition_logging")){if(p=this.bN,W=Z.cpn,y=this.videoData.clientPlaybackNonce,Z=Z.videoData,n=(n.cpn===y?"video":"ad")+"_to_"+(W===y?"video":"ad"),n!=="video_to_ad"){y=n==="ad_to_video"?void 0:Z;L=y==null?void 0:y.sy;f={};if(Z==null?0:Z.C)f.cttAuthInfo={token:Z.C,videoId:Z.videoId};a&&(f.startTime=a);qe(n,f);var X,u,Fp;a={targetVideoId:(X=Z==null?void 0:Z.videoId)!=null?X:"empty_video",targetCpn:W,adVideoId:(u= y==null?void 0:y.videoId)!=null?u:"empty_video",adClientPlaybackNonce:(Fp=L==null?void 0:L.cpn)!=null?Fp:y==null?void 0:y.clientPlaybackNonce};L&&(a.adBreakType=L.adBreakType,a.adType=L.adType);g.HS(a,n);kY(p,D,n)}}else X=this.bN,Fp=this.videoData.clientPlaybackNonce,u=Z.videoData,Fp=(n.cpn===Fp?"video":"ad")+"_to_"+(Z.cpn===Fp?"video":"ad"),n={},u.C&&(n.cttAuthInfo={token:u.C,videoId:u.videoId}),a&&(n.startTime=a),qe(Fp,n),g.HS({targetVideoId:u.videoId,targetCpn:Z.cpn,isSsdai:!0},Fp),a||kY(X,D,Fp)}}else g.u4(this.logger, 360717806,"SSTEvent for nonSS")}; g.Q.Id=function(){var n=this.kA,Z=n.H8;n.H8=[];return Z}; g.Q.GX=function(n){this.videoData.aB=!0;this.FI(new g.Xv("sabr.fallback",n));this.Mh(!0)}; g.Q.a5=function(n,Z){this.videoData.aT=!0;if(Z===void 0||Z)this.FI(new g.Xv("qoe.restart",n)),this.Mh(!0)}; g.Q.pM=function(n){this.Xp("sdai",{aftimeout:n});this.FI(new g.Xv("ad.fetchtimeout",{timeout:n}))}; g.Q.HJ=function(n,Z){this.Xp("timelineerror",n);n=new g.Xv("dai.timelineerror",n);Z?this.Mj("dai.timelineerror",1,"RETRYABLE_ERROR",UQ(n.details)):this.FI(n)}; g.Q.Zd=function(){return g.kq(this.g1.provider)}; g.Q.getPlayerSize=function(){return this.b3.getPlayerSize()}; g.Q.hB=function(){return this.b3.hB()}; g.Q.Hj=function(){return this.bN}; g.Q.Dp=function(){return this.kA.Dp()}; g.Q.getVolume=function(){return this.kA.getVolume()}; g.Q.sZ=function(){return this.kA.sZ()}; g.Q.isMuted=function(){return this.kA.isMuted()}; g.Q.Ph=function(){return this.kA.Ph()}; g.Q.V$=function(){this.hK=!0}; g.Q.j=function(n){return this.Y.j(n)}; g.Q.OS=function(){return this.Y.OS()}; g.Q.NE=function(n,Z,F,y,l){this.Xp("xvt",{m:n,g:Z?1:0,tt:F?1:0,np:y?1:0,c:l})}; g.Q.A3=function(){var n;(n=this.loader)==null||n.resume()}; g.Q.FW=function(){return g.zi(this.eC,"ad")}; g.Q.wZ=function(){var n=this.getCurrentTime(),Z=n-this.Kn();var F=this.mediaElement?Th(this.mediaElement.WE()):0;F=Math.floor(Math.max(F-Z,0))+100;var y;return((y=this.loader)==null?0:y.wZ(Z,F))?(this.Xp("sdai",{skipad:1,ct:Z.toFixed(3),adj:F.toFixed(3)}),YA(this.videoData)&&this.loader.seek(Z+F,{seekSource:89,eO:"videoplayer_skipServerStitchedAd"}),f2e(this.WV,n),!0):!1}; g.Q.eG=function(){return this.Y.eG()}; g.Q.BH=function(){if(this.j("html5_generate_content_po_token"))return this.videoData.O1||"";this.kA.M8();return this.Y.Mt||""}; g.Q.W6=function(){if(this.videoData.videoId)return this.videoData.eP}; g.Q.UG=function(){return this.videoData.videoId}; g.Q.oG=function(){return this.kA.Na}; g.Q.qm=function(){return this.k8}; g.Q.Ei=function(){return this.kA.Ei()}; g.Q.GW=function(n,Z,F){this.QP(hR(this.playerState,16,F));this.WV.GW(n,Z,F)}; g.Q.prefetchKeyPlay=function(n,Z){var F;(F=this.loader)==null||F.prefetchKeyPlay(n,Z)}; g.Q.vH=function(n){return this.WV.vH(n)}; g.Q.Yu=function(){this.WV.Yu()}; g.Q.C9=function(n,Z){var F=this.j("html5_generate_content_po_token")?this.videoData:void 0;this.kA.C9(n,Z,F)}; g.Q.rj=function(n,Z){this.g1.rj(n,Z)}; g.Q.mH=function(){return this.g1.mH()}; g.Q.vj=function(){return this.kA.vj()}; g.Q.HL=function(){return this.kA.HL(this)}; g.Q.m4=function(){this.xO=!0}; g.Q.ya=function(n){var Z;(Z=this.loader)==null||Z.ya(n)}; g.Q.Gt=function(){return this.videoData.Bx&&this.UF};g.d(P_P,vk);g.d(e$,c5);e$.prototype.N=function(n){n&&VS(this,this.W.getLoopVideo());this.W.logVisibility(this.element,n)}; e$.prototype.logClick=function(){this.W.logClick(this.element)}; e$.prototype.onLoopChange=function(n){VS(this,n)}; e$.prototype.X=function(n){this.W.setLoopVideo(n)};g.d(T$3,vk);g.d(TD,vk);g.Q=TD.prototype;g.Q.seekToChapterWithAnimation=function(n){var Z=this;if(g.PZ(this.api)&&!(n<0)){var F=this.api.getVideoData(),y=F.ud;if(y&&n=0)return;Z=~Z;g.WM(this.items,Z,0,n);aF(this.menuItems.element,n.element,Z)}n.subscribe("size-change",this.IV,this);this.menuItems.publish("size-change")}; g.Q.Ko=function(){Fh(this)||this.items[0].focus();return!0}; g.Q.y6=function(){this.items[this.items.length-1].focus();return!0}; g.Q.EG=function(n){n.unsubscribe("size-change",this.IV,this);this.CR()||(g.ov(this.items,n),this.menuItems.element.removeChild(n.element),this.menuItems.publish("size-change"))}; g.Q.IV=function(){this.menuItems.publish("size-change")}; g.Q.focus=function(){for(var n=0,Z=0;Z1&&g.vJ(this)}; g.Q.eJ=function(){pFP(this);this.XJ&&(Kef(this),g.Zj(this.element,this.size))}; g.Q.v1=function(){var n=this.N.pop();VB(this,n,this.N[this.N.length-1],!0)}; g.Q.W1=function(n){if(!n.defaultPrevented)switch(n.keyCode){case 27:this.jG();n.preventDefault();break;case 37:this.N.length>1&&this.v1();n.preventDefault();break;case 39:n.preventDefault()}}; g.Q.focus=function(){this.N.length&&this.N[this.N.length-1].focus()}; g.Q.IY=function(){g.yO.prototype.IY.call(this);this.T&&this.T.dispose();this.V&&this.V.dispose()};g.d(vF,g.MV);vF.prototype.open=function(n,Z){this.initialize(n.items)&&this.KJ(Z,!!Z)}; vF.prototype.initialize=function(n){g.Fe(this.vI);if(n===void 0||n.length===0)return!1;var Z=n.length;n=g.Y(n);for(var F=n.next();!F.done;F=n.next())this.Dx(F.value,Z--);return!0}; vF.prototype.Dx=function(n,Z){n.menuNavigationItemRenderer?KGQ(this,n.menuNavigationItemRenderer,Z):n.menuServiceItemRenderer&&JT7(this,n.menuServiceItemRenderer,Z)};g.d(w7,zO);g.Q=w7.prototype;g.Q.sT=function(n){n.target!==this.dismissButton.element&&n.target!==this.overflowButton.element&&(this.ZL(),this.onClickCommand&&this.W.LR("innertubeCommand",this.onClickCommand))}; g.Q.Ai=function(){this.enabled=!1;this.L.hide()}; g.Q.e3=function(){return!!this.N&&this.enabled}; g.Q.onVideoDataChange=function(n,Z){this.tJ(Z);if(this.N){this.jQ();a:if(!this.isCounterfactual){var F,y,l;this.banner.update({title:(F=this.N)==null?void 0:F.title,subtitle:(y=this.N)==null?void 0:y.subtitle,metadata:(l=this.N)==null?void 0:l.metadataText});var m;this.onClickCommand=g.e((m=this.N)==null?void 0:m.onTap,jk);var a;if(n=g.e((a=this.N)==null?void 0:a.onOverflow,jk))this.C=g.e(n,ZQh);var D;if((D=this.N)==null?0:D.thumbnailImage){var p,L;a=((p=this.N)==null?void 0:(L=p.thumbnailImage)== null?void 0:L.sources)||[];if(a.length===0)break a;this.thumbnailImage.update({url:a[0].url})}else{var q;if((q=this.N)==null?0:q.thumbnailIconName){var w;this.thumbnailIcon.update({icon:(w=this.N)==null?void 0:w.thumbnailIconName})}}var T;this.shouldShowOverflowButton=!((T=this.N)==null||!T.shouldShowOverflowButton);var P;this.shouldHideDismissButton=!((P=this.N)==null||!P.shouldHideDismissButton)}var J;this.banner.element.setAttribute("aria-label",((J=this.N)==null?void 0:J.a11yLabel)||"");var U; this.fR=(U=this.N)==null?void 0:U.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;jD(this)}}; g.Q.eq4=function(){this.isVisible=!0;jD(this)}; g.Q.a8i=function(){this.isVisible=!1;jD(this)}; g.Q.Wz=function(){zO.prototype.Wz.call(this);this.T&&this.W.logVisibility(this.banner.element,this.isVisible)}; g.Q.ZL=function(){zO.prototype.ZL.call(this,!1);this.T&&this.W.logClick(this.banner.element)}; g.Q.GI=function(n){this.S||(this.S=new vF(this.W),g.S(this,this.S));var Z,F;if((Z=this.C)==null?0:(F=Z.menu)==null?0:F.menuRenderer)this.S.open(this.C.menu.menuRenderer,n.target),n.preventDefault()}; g.Q.tJ=function(){}; g.Q.jQ=function(){}; g.Q.IY=function(){this.W.V9("suggested_action_view_model");zO.prototype.IY.call(this)};g.d(TE,w7); TE.prototype.tJ=function(n){var Z,F,y;this.productUpsellSuggestedActionViewModel=g.e((Z=n.getWatchNextResponse())==null?void 0:(F=Z.playerOverlays)==null?void 0:(y=F.playerOverlayRenderer)==null?void 0:y.suggestedActionViewModel,TKG);var l;if((l=this.productUpsellSuggestedActionViewModel)==null?0:l.content){var m;this.N=g.e((m=this.productUpsellSuggestedActionViewModel)==null?void 0:m.content,Mgj)}var a,D;if(this.T=!!((a=this.productUpsellSuggestedActionViewModel)==null?0:(D=a.loggingDirectives)==null? 0:D.trackingParams)){var p,L;this.W.setTrackingParams(this.banner.element,((p=this.productUpsellSuggestedActionViewModel)==null?void 0:(L=p.loggingDirectives)==null?void 0:L.trackingParams)||null)}var q;this.isCounterfactual=!((q=this.productUpsellSuggestedActionViewModel)==null||!q.isCounterfactualServing)}; TE.prototype.jQ=function(){var n=[],Z,F=g.Y(((Z=this.productUpsellSuggestedActionViewModel)==null?void 0:Z.ranges)||[]);for(Z=F.next();!Z.done;Z=F.next()){var y=Z.value;y&&(Z=Number(y.startTimeMilliseconds),y=Number(y.endTimeMilliseconds),isNaN(Z)||isNaN(y)||n.push(new g.wg(Z,y,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.W.y9(n)};g.d(BFQ,vk);g.d(S9,vk);S9.prototype.onVideoDataChange=function(n,Z){var F=this;if(!vD(Z)&&(n==="newdata"&&Ui8(this),this.N&&n==="dataloaded")){this.N=!1;var y;Cq(Dv(lv(this.api.B(),(y=this.api.getVideoData())==null?void 0:g.uf(y)),function(l){XFQ(F,l)}),function(){F.N=!0})}}; S9.prototype.ZE=function(){var n=this;if(g.f4(this.api.B())){var Z,F=g.Cv(this.api.B(),(Z=this.api.getVideoData())==null?void 0:g.uf(Z));return Dv(VX(F),function(y){var l=XE();zl(l,y);return n.api.ZE(l)})}return VX(this.api.ZE())};g.d(g.$K,g.dV);g.Q=g.$K.prototype;g.Q.open=function(){g.$H(this.Fp,this.fJ)}; g.Q.gB=function(n){zu7(this);var Z=this.options[n];Z&&(Z.element.setAttribute("aria-checked","true"),this.setContent(this.R7(n)),this.S=n)}; g.Q.fK=function(n){g.Fe(this.fJ);for(var Z={},F=!1,y=0;y=0?this.N.playbackRate:1}catch(n){return 1}}; g.Q.setPlaybackRate=function(n){this.getPlaybackRate()!==n&&(this.N.playbackRate=n);return n}; g.Q.HW=function(){return this.N.loop}; g.Q.setLoop=function(n){this.N.loop=n}; g.Q.canPlayType=function(n,Z){return this.N.canPlayType(n,Z)}; g.Q.isPaused=function(){return this.N.paused}; g.Q.isSeeking=function(){return this.N.seeking}; g.Q.isEnded=function(){return this.N.ended}; g.Q.UM=function(){return this.N.muted}; g.Q.Re=function(n){rX();this.N.muted=n}; g.Q.wF=function(){return this.N.played||n6([],[])}; g.Q.WE=function(){try{var n=this.N.buffered}catch(Z){}return n||n6([],[])}; g.Q.VB=function(){return this.N.seekable||n6([],[])}; g.Q.bM=function(){var n=this.N;return n.getStartDate?n.getStartDate():null}; g.Q.getCurrentTime=function(){return this.N.currentTime}; g.Q.setCurrentTime=function(n){this.N.currentTime=n}; g.Q.getDuration=function(){return this.N.duration}; g.Q.load=function(){var n=this.N.playbackRate;try{this.N.load()}catch(Z){}this.N.playbackRate=n}; g.Q.pause=function(){this.N.pause()}; g.Q.play=function(){var n=this.N.play();if(!n||!n.then)return null;n.then(void 0,function(){}); return n}; g.Q.Ih=function(){return this.N.readyState}; g.Q.zH=function(){return this.N.networkState}; g.Q.RZ=function(){return this.N.error?this.N.error.code:null}; g.Q.bP=function(){return this.N.error?this.N.error.message:""}; g.Q.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.N instanceof window.HTMLVideoElement&&this.N.getVideoPlaybackQuality)return this.N.getVideoPlaybackQuality();if(this.N){var n=this.N,Z=n.webkitDroppedFrameCount;if(n=n.webkitDecodedFrameCount)return{droppedVideoFrames:Z||0,totalVideoFrames:n}}return{}}; g.Q.rJ=function(){return!!this.N.webkitCurrentPlaybackTargetIsWireless}; g.Q.IA=function(){return!!this.N.webkitShowPlaybackTargetPicker()}; g.Q.togglePictureInPicture=function(){var n=this.N,Z=window.document;window.document.pictureInPictureEnabled?this.N!==Z.pictureInPictureElement?n.requestPictureInPicture():Z.exitPictureInPicture():nM()&&n.webkitSetPresentationMode(n.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.Q.B9=function(){return x1o(this.N)}; g.Q.getSize=function(){return g.WA(this.N)}; g.Q.setSize=function(n){g.Zj(this.N,n)}; g.Q.getVolume=function(){return this.N.volume}; g.Q.setVolume=function(n){rX();this.N.volume=n}; g.Q.l1=function(n){this.X[n]||(this.N.addEventListener(n,this.listener),this.X[n]=this.listener)}; g.Q.setAttribute=function(n,Z){this.N.setAttribute(n,Z)}; g.Q.removeAttribute=function(n){this.N.removeAttribute(n)}; g.Q.hasAttribute=function(n){return this.N.hasAttribute(n)}; g.Q.Sg=hA(62);g.Q.GA=hA(65);g.Q.pT=hA(68);g.Q.Kf=hA(71);g.Q.DG=function(){return yZ(this.N)}; g.Q.c9=function(n){g.gi(this.N,n)}; g.Q.je=function(n){return g.rG(this.N,n)}; g.Q.nH=function(){return g.Uq(document.body,this.N)}; g.Q.audioTracks=function(){var n=this.N;if("audioTracks"in n)return n.audioTracks}; g.Q.IY=function(){for(var n=g.Y(Object.keys(this.X)),Z=n.next();!Z.done;Z=n.next())Z=Z.value,this.N.removeEventListener(Z,this.X[Z]);NV.prototype.IY.call(this)}; g.Q.pE=function(n){this.N.disableRemotePlayback=n};g.d(V2,g.R);g.d(dw,g.R);dw.prototype.show=function(){g.R.prototype.show.call(this);this.g5()}; dw.prototype.hide=function(){g.R.prototype.hide.call(this);this.delay.stop();this.V.stop()}; dw.prototype.g5=function(){var n=(0,g.tP)(),Z=uwj(this.JG);Qs(this.N,Z.bandwidth_samples);Qs(this.C,Z.network_activity_samples);Qs(this.T,Z.live_latency_samples);Qs(this.X,Z.buffer_health_samples);var F={};Z=g.Y(Object.entries(Z));for(var y=Z.next();!y.done;y=Z.next()){var l=g.Y(y.value);y=l.next().value;l=l.next().value;this.J[y]!==l&&(F[y]=" "+String(l));this.J[y]=l}this.update(F);n=(0,g.tP)()-n>25?5E3:500;this.delay.start(n)}; dw.prototype.L=function(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.V.start(2E4)};g.d(lLp,vk);g.d(bv,g.I);bv.prototype.N=function(){var n=(0,g.tP)()-this.startTime;n=nthis.V[n])&&(this.N=n,this.Gn())}; g.Q.onCueRangeExit=function(n){var Z=mFK(this,n);Z&&this.N===n&&this.api.LR("innertubeCommand",Z);EC(this);this.N=void 0}; g.Q.cA=function(n){this.T=n}; g.Q.jb=function(){this.Gn();this.T=void 0}; g.Q.Gn=function(){if(this.N!==void 0){var n=(n=Z8(this,this.N))&&n.onCueRangeEnter?NH(n.onCueRangeEnter):void 0;var Z=Z8(this,this.N);a:if(Z&&Z.additionalTrigger){var F=g.Y(Z.additionalTrigger);for(var y=F.next();!y.done;y=F.next())if(y=y.value,y.type){var l=void 0,m=void 0;if((l=this.Wr[y.type])==null?0:l((m=y.args)!=null?m:{})){F=!0;break a}}F=!1}else F=!0;n&&F&&(this.api.LR("innertubeCommand",n),qi7(this,Z),this.V[this.N]!==void 0&&this.V[this.N]++,this.Pr=!0)}}; g.Q.IY=function(){this.timelyActions=this.T=this.N=this.videoId=void 0;this.V={};this.Gc();EC(this);vk.prototype.IY.call(this)};g.d(szY,vk);g.d(ya,c5);ya.prototype.V=function(n){this.T(n?2:1)}; ya.prototype.lP=function(){var n=this.W.getPresentingPlayerType();n===2||n===3?this.N&&(this.N=!1,this.Fp.EG(this)):(n=this.getVoiceBoostState(),n!==1?(n===0?(VS(this,this.X()===2),this.setEnabled(!0)):(VS(this,!1),this.setEnabled(!1)),this.N||(this.Fp.Dx(this),this.N=!0)):this.N&&(this.Fp.EG(this),this.N=!1))}; ya.prototype.IY=function(){this.Fp.EG(this);c5.prototype.IY.call(this)};g.d(YB,vk);YB.prototype.getVoiceBoostUserPreference=function(){return this.N}; YB.prototype.setVoiceBoostUserPreference=function(n){this.api.Xp("vb_set",{pref:n});g.Oh("yt-player-voice-boost",n);n!==this.N&&(this.N=n,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.eU(),this.api.V_())}; YB.prototype.getVoiceBoostState=function(){return this.api.Zr(1)}; YB.prototype.updateEnvironmentData=function(){this.api.B().Jy=this.N};g.d(h2,vk);h2.prototype.IY=function(){this.L&&(g.gg(this.L),this.L=void 0);vk.prototype.IY.call(this)}; h2.prototype.M8=function(){(this.X?!this.N:this.T)&&Ah(this)}; h2.prototype.AB=function(n,Z,F){var y=this;if(sdP(n)){var l=F||"";if(this.N)Z=Ba(this,l),K0K(n,Z);else{var m=new g.uR;Z.push(m.promise);this.S.promise.then(function(){var a=Ba(y,l);K0K(n,a);m.resolve()})}}}; h2.prototype.hC=function(n){var Z=this;if(this.X||this.T)n.O1=Ba(this,n.videoId),this.N||(this.V=new dZ,this.S.promise.then(function(){Z.bN.ZC("pot_if");n.O1=Ba(Z,n.videoId)}))};g.d(g.YD,g.R);g.YD.prototype.select=function(){this.api.S8(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.xj||void 0)&&this.api.logClick(this.element)}; g.YD.prototype.onClick=function(n){if(g.R6(this.api.B())&&this.api.j("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var Z=this.suggestion.W7(),F={};g.ba(this.api,F);Z=g.pQ(Z,F);g.sq(Z,this.api,n)}else g.Xw(n,this.api,this.X,this.suggestion.sessionData||void 0)&&this.select()}; g.YD.prototype.onKeyPress=function(n){switch(n.keyCode){case 13:case 32:n.defaultPrevented||(this.select(),n.preventDefault())}}; g.YD.prototype.onVideoDataChange=function(){var n=this.api.getVideoData(),Z=this.api.B();this.X=n.vV?!1:Z.V};g.d(g3,g.R);g3.prototype.IY=function(){this.hide();g.xU(this.T);g.rk(this.stills);this.stills.length=0;this.N&&(this.N.remove(),this.N=void 0);g.R.prototype.IY.call(this)}; g3.prototype.C=function(n){this.J&&this.J(n)}; g3.prototype.onVideoDataChange=function(){if(!this.S){this.videoData=this.player.getVideoData(1);var n,Z,F,y,l;var m=(((n=this.videoData)==null?0:(Z=n.suggestions)==null?0:Z.length)?(F=this.videoData)==null?void 0:F.suggestions:((y=this.videoData)==null?0:g.Ih(y))?[(l=this.videoData)==null?void 0:g.Ih(l)]:[]).slice(0,18);if((n=this.V)&&this.X)if(g.Ov(n),m.length)for(this.stills.length>m.length&&g.rk(this.stills.splice(m.length)),this.stills.length=m.length,Z=0;Z=0;n--)this.features[n].dispose();this.features.length=0;g.I.prototype.IY.call(this)};p4P.prototype.reset=function(){this.N=this.X=NaN};g.Q=on.prototype;g.Q.reset=function(){vl(this.timerName)}; g.Q.tick=function(n,Z){fZ(n,Z,this.timerName)}; g.Q.ZC=function(n){return dL(n,void 0,this.timerName)}; g.Q.Y7=function(n){g.gF(n,void 0,this.timerName)}; g.Q.infoGel=function(n){g.HS(n,this.timerName)};g.d(HU,g.Xu);g.Q=HU.prototype;g.Q.hasNext=function(n){return this.loop||!!n||this.index+1=0}; g.Q.setShuffle=function(n){this.shuffle=n;n=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var Z=0;Z=Z.top&&n.right<=Z.right&&n.bottom<=Z.bottom&&n.left>=Z.left))return}Qm(this,2,!1)}; g.Q.ZA=function(n){var Z=new g.e_(n.pageX,n.pageY);pP(Z,this.V)||(this.V=Z,(n=n.target)&&this.Nl(n)&&(Qm(this,4,!0),this.N.o0(this.T),this.T=this.N.G(this.target,"mouseover",this.ox),this.J=this.N.G(this.target,"mouseout",this.ox)))}; g.Q.ox=function(n){n=n.relatedTarget;n&&this.Nl(n)||(this.V=new g.e_(NaN,NaN),mz3(this))}; g.Q.q8Y=function(){Qm(this,1,!0)}; g.Q.mK=function(n){n=n.target;n instanceof Element&&!(n.tabIndex>0)||Qm(this,1,!0)}; g.Q.rp=function(){this.C=!0;this.N.o0(this.S);this.S=this.N.G(document,"mouseup",this.L2)}; g.Q.L2=function(){this.C=!1;Qm(this,8,!1);this.N.o0(this.S);this.S=this.N.G(this.target,"mousedown",this.rp)}; g.Q.eA=function(n){if(n=(n=n.changedTouches)&&n[0])this.Wr=n.identifier,this.N.o0(this.L),this.L=this.N.G(this.target,"touchend",this.RJ,void 0,!0),Qm(this,1024,!0)}; g.Q.RJ=function(n){if(n=n.changedTouches)for(var Z=0;Z1280||l>720)if(Z=y.Sn("maxresdefault.jpg"))break;if(m>640||l>480)if(Z=y.Sn("maxresdefault.jpg"))break;if(m>320||l>180)if(Z=y.Sn("sddefault.jpg")||y.Sn("hqdefault.jpg")||y.Sn("mqdefault.jpg"))break;if(Z=y.Sn("default.jpg"))break}g.TH(n)&&(n=new Image,n.addEventListener("load", function(){s0K()}),n.src=Z?Z:"",this.api.Hj().tick("ftr")); this.V.style.backgroundImage=Z?"url("+Z+")":""};g.d(g.AM,g.R);g.AM.prototype.resize=function(){}; g.AM.prototype.X=function(n){var Z=this;this.T=!1;KnQ(this);var F=n.h$,y=this.api.B();F!=="GENERIC_WITHOUT_LINK"||y.C?F==="TOO_MANY_REQUESTS"?(y=this.api.getVideoData(),this.setContent(F3(this,"TOO_MANY_REQUESTS_WITH_LINK",y.W7(),void 0,void 0,void 0,!1))):F!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||y.C?this.api.B().j("html5_enable_bandaid_error_screen")&&F==="HTML5_SPS_UMP_STATUS_REJECTED"&&!y.C?(y=y.hostLanguage,n="//support.google.com/youtube?p=videoError",y&&(n=g.pQ(n,{hl:y})),this.setContent(F3(this, "HTML5_SPS_UMP_STATUS_REJECTED",n))):this.api.B().j("enable_adb_handling_in_sabr")&&F==="BROWSER_OR_EXTENSION_ERROR"&&!y.C?(y=y.hostLanguage,n="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",y&&(n=g.pQ(n,{hl:y})),this.setContent(F3(this,"BROWSER_OR_EXTENSION_ERROR",n))):this.setContent(g.AC(n.errorMessage)):this.setContent(F3(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(n=y.hostLanguage,F= "//support.google.com/youtube/?p=player_error1",n&&(F=g.pQ(F,{hl:n})),this.setContent(F3(this,"GENERIC_WITH_LINK_AND_CPN",F,!0)),y.kV&&!y.V&&hX8(this,function(m){if(g.Xw(m,Z.api,!wM(Z.api.B()))){m={as3:!1,html5:!0,player:!0,cpn:Z.api.getVideoData().clientPlaybackNonce};var a=Z.api;a.Qm("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:m});a.isFullscreen()&&a.toggleFullscreen()}})); if(this.T){var l=this.Vg("ytp-error-link");l&&(this.api.createClientVe(l,this,216104),this.api.logVisibility(l,!0),hX8(this,function(){Z.api.logClick(l)}))}}; var p3j=/([^<>]+)<\/a>/;g.d(sG,g.R);sG.prototype.wW=function(n,Z,F){F=F===void 0?!1:F;switch(Z){case 1:Bw(this,n,this.T,F);break;case 2:Bw(this,n,this.V,F);break;case 3:Bw(this,n,this.N,F);break;case 4:Bw(this,n,this.X,F)}};g.d(L9,g.R);g.Q=L9.prototype;g.Q.onClick=function(n){this.innertubeCommand?(this.W.LR("innertubeCommand",this.innertubeCommand),n.preventDefault()):g.Xw(n,this.W,!0);this.W.logClick(this.element)}; g.Q.onVideoDataChange=function(n,Z){UcP(this,Z);this.gV&&fTQ(this,this.gV)}; g.Q.xb=function(n){var Z=this.W.getVideoData();this.videoId!==Z.videoId&&UcP(this,Z);this.N&&fTQ(this,n.state);this.gV=n.state}; g.Q.KJ=function(){this.fade.show();this.W.publish("paidcontentoverlayvisibilitychange",!0);this.W.logVisibility(this.element,!0)}; g.Q.jG=function(){this.fade.hide();this.W.publish("paidcontentoverlayvisibilitychange",!1);this.W.logVisibility(this.element,!1)};g.d(xV,g.R);xV.prototype.hide=function(){this.N.stop();this.message.style.display="none";g.R.prototype.hide.call(this)}; xV.prototype.onStateChange=function(n){this.rM(n.state)}; xV.prototype.rM=function(n){if(g.b(n,128)||this.api.qm())var Z=!1;else{var F;Z=this.api.j("web_watch_enable_multiview_manager")&&((F=this.api.getVideoData())==null?0:vD(F))?!1:g.b(n,16)||g.b(n,1)?!0:!1}Z?this.N.start():this.hide()}; xV.prototype.X=function(){this.message.style.display="block"};g.d(qY,g.yO);qY.prototype.onMutedAutoplayChange=function(n){this.X&&(n?(Dwo(this),this.KJ()):(this.N&&this.logClick(),this.jG()))}; qY.prototype.Rh=function(n){this.api.isMutedByMutedAutoplay()&&g.On(n,2)&&this.jG()}; qY.prototype.onClick=function(){this.api.unMute();this.logClick()}; qY.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.d(g.Tv,g.IS);g.Q=g.Tv.prototype;g.Q.init=function(){var n=this.api,Z=n.getPlayerStateObject();this.RQ=n.getPlayerSize();this.QP(Z);this.Ii();this.Ln();this.api.publish("basechromeinitialized",this);this.x9()&&this.api.publish("standardControlsInitialized")}; g.Q.onVideoDataChange=function(n,Z){var F=this.vP!==Z.videoId;if(F||n==="newdata")n=this.api,n.isFullscreen()||(this.RQ=n.getPlayerSize());F&&(this.vP=Z.videoId,F=this.rO,F.zx=3E3,Qm(F,512,!0),this.Ii());this.api.j("web_render_jump_buttons")&&Z.showSeekingControls&&(this.fd=572)}; g.Q.IMi=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.Q.wf=function(){var n=this.api.D3()&&this.api.hT(),Z=this.api.QE();return this.WQ||n||this.oo||Z}; g.Q.xQ=function(){var n=!this.wf();g.w4(this.api.getRootNode(),"ytp-menu-shown",!n)}; g.Q.Nl=function(n){try{if(!g.Uq(this.api.getRootNode(),n))return!1}catch(Z){return!1}for(;n&&!JE(n);)n=n===this.api.getRootNode()?null:n.parentElement||null;return!!n}; g.Q.Cz=function(n){var Z=this.api.getRootNode();g.w4(Z,"ytp-autohide",n);g.w4(Z,"ytp-autohide-active",!0);this.Es.start(n?250:100);n&&(this.fQ=!1,g.hw(Z,"ytp-touch-mode"));this.t$=!n;this.api.I1(!n);this.api.j("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",n)}; g.Q.Zg=function(){var n=this.api.getRootNode();g.w4(n,"ytp-autohide-active",!1)}; g.Q.SG4=function(){this.a_=!0}; g.Q.zNx=function(n){if(this.api.B().j("player_doubletap_to_seek")||this.api.B().J)this.a_=!1,this.gq&&this.o0(this.gq),this.tH===0&&xv(this,n)?(this.WL(),this.cG.start(),this.gq=this.G(this.api.Br(),"touchmove",this.SG4,void 0,!0)):this.cG.stop();cle(this)&&xv(this,n)&&!this.api.B().J&&wb(this);var Z=this.yC.I6();if(!g.R6(this.api.B())&&EK&&Lc(this,n))Z&&n.preventDefault();else if(this.fQ=!0,g.gi(this.api.getRootNode(),"ytp-touch-mode"),this.rO.Xf(),this.api.B().j("player_doubletap_to_seek")||this.api.B().J)if(Z= this.api.getPlayerStateObject(),!(!this.api.aH()||g.b(Z,2)&&g.s3(this.api)||g.b(Z,64))){Z=Date.now()-this.Cu;this.tH+=1;if(Z<=350){this.Wy=!0;Z=this.api.getPlayerSize().width/3;var F=this.api.getRootNode().getBoundingClientRect(),y=n.targetTouches[0].clientX-F.left;F=n.targetTouches[0].clientY-F.top;var l=(this.tH-1)*10;y>0&&yZ*2&&y=650,y=n.width<528;this.rO.resize();if(this.api.j("web_player_use_screen_width_for_big_mode")){var l,m=n.width>=((l=g.jf(this.api.B().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?l:2E3);g.w4(Z,"ytp-big-mode",m)}g.w4(Z,"ytp-fullscreen",this.api.isFullscreen());g.w4(Z,"ytp-large-width-mode",F);this.api.j("delhi_modern_web_player")?g.w4(Z,"ytp-xsmall-width-mode",y):g.w4(Z,"ytp-small-mode",this.gJ()); g.w4(Z,"ytp-tiny-mode",this.FM());g.w4(Z,"ytp-big-mode",this.AX());this.iH&&this.iH.resize(n)}; g.Q.Rh=function(n){this.QP(n.state);this.Ii()}; g.Q.mu=hA(3);g.Q.lx=function(){var n=!!this.vP&&!this.api.PE()&&!this.K9,Z=this.api.getPresentingPlayerType()===2,F=this.api.B();if(Z)return F=u2(this.api.iN()),n&&(F&&F.player?n=(n=F.player.getVideoData(2))?n.isListed&&!g.d5(F.player.B()):!1:(wU("showInfoBarDuringAd: this is null"),n=!1)),n;Z=F.j("web_player_imax_theater_mode")&&this.api.oh()&&!this.api.isInline();return n&&(F.uw||Z||this.api.isFullscreen()||F.c7)}; g.Q.Ii=function(){var n=this.lx();this.Qu!==n&&(this.Qu=n,g.w4(this.api.getRootNode(),"ytp-hide-info-bar",!n))}; g.Q.QP=function(n){var Z=n.isCued()||this.api.hw()&&this.api.getPresentingPlayerType()!==3;Z!==this.isCued&&(this.isCued=Z,this.KC&&this.o0(this.KC),this.KC=this.G(this.api.Br(),"touchstart",this.zNx,void 0,Z));var F=this.rO,y=n.isPlaying()&&!g.b(n,32)||this.api.pH();Qm(F,128,!y);F=this.rO;y=this.api.getPresentingPlayerType()===3;Qm(F,256,y);F=this.api.getRootNode();g.b(n,2)?y=[zY.ENDED]:(y=[],g.b(n,8)?y.push(zY.PLAYING):g.b(n,4)&&y.push(zY.PAUSED),g.b(n,1)&&!g.b(n,32)&&y.push(zY.BUFFERING),g.b(n, 32)&&y.push(zY.SEEKING),g.b(n,64)&&y.push(zY.UNSTARTED));g.yW(this.S1,y)||(g.bS(F,this.S1),this.S1=y,g.ob(F,y));y=this.api.B();var l=g.b(n,2);a:{var m=this.api.B();var a=m.controlsType;switch(a){case "2":case "0":m=!1;break a}m=a==="3"&&!g.b(n,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Kcp(u2(this.api.iN())))||this.api.QE()||g.R6(m)&&this.api.getPresentingPlayerType()===2?!1:!0}g.w4(F,"ytp-hide-controls",!m);g.w4(F,"ytp-native-controls",y.controlsType==="3"&&!Z&&!l&&!this.oo);g.b(n, 128)&&!g.R6(y)?(this.iH||(this.iH=new g.AM(this.api),g.S(this,this.iH),g.y7(this.api,this.iH.element,4)),this.iH.X(n.wB),this.iH.show()):this.iH&&(this.iH.dispose(),this.iH=null)}; g.Q.H9=function(){return this.api.D3()&&this.api.hT()?(this.api.QS(!1,!1),!0):this.api.PE()?(g.Ei(this.api,!0),!0):!1}; g.Q.onMutedAutoplayChange=function(n){this.oo=n;this.xQ()}; g.Q.AX=function(){return!1}; g.Q.gJ=function(){return!this.AX()&&(this.api.getPlayerSize().width=0&&Z.left>=0&&Z.bottom>Z.top&&Z.right>Z.left?Z:null;Z=this.size;n=n.clone();Z=Z.clone();y&&(a=Z,l=5,(l&65)==65&&(n.x=y.right)&&(l&=-2),(l&132)==132&&(n.y=y.bottom)&&(l&=-5),n.xy.right&&(a.width=Math.min(y.right-n.x,m+a.width-y.left),a.width=Math.max(a.width,0))),n.x+a.width>y.right&&l&1&&(n.x=Math.max(y.right-a.width,y.left)),n.yy.bottom&&(a.height=Math.min(y.bottom-n.y,m+a.height-y.top),a.height=Math.max(a.height,0))),n.y+a.height>y.bottom&&l&4&&(n.y=Math.max(y.bottom-a.height,y.top)));y=new g.c1(0,0,0,0);y.left=n.x;y.top=n.y;y.width= Z.width;y.height=Z.height;g.kf(this.element,new g.e_(y.left,y.top));g.xU(this.X);this.X.G(jC(this),"contextmenu",this.uIp);this.X.G(this.W,"fullscreentoggled",this.onFullscreenToggled);this.X.G(this.W,"pageTransition",this.Ar)}; g.Q.uIp=function(n){if(!n.defaultPrevented){var Z=bl(n);g.Uq(this.element,Z)||this.jG();this.W.B().disableNativeContextMenu&&n.preventDefault()}}; g.Q.onFullscreenToggled=function(){this.jG();CKo(this)}; g.Q.Ar=function(){this.jG()};g.d(kh,g.R);kh.prototype.onClick=function(){var n=this,Z,F,y,l;return g.A(function(m){if(m.N==1)return Z=n.api.B(),F=n.api.getVideoData(),y=n.api.getPlaylistId(),l=Z.getVideoUrl(F.videoId,y,void 0,!0),g.x(m,ndj(n,l),2);m.X&&WLK(n);n.api.logClick(n.element);g.zA(m)})}; kh.prototype.g5=function(){this.updateValue("icon",{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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=Ng8(this);g.w4(this.element, "ytp-copylink-button-visible",this.visible);this.yP(this.visible);this.tooltip.RH();this.api.logVisibility(this.element,this.visible&&this.Pr)}; kh.prototype.YV=function(n){g.R.prototype.YV.call(this,n);this.api.logVisibility(this.element,this.visible&&n)}; kh.prototype.IY=function(){g.R.prototype.IY.call(this);g.hw(this.element,"ytp-copylink-button-visible")};g.d(sDP,g.R);g.Q=sDP.prototype;g.Q.show=function(){g.R.prototype.show.call(this);g.J3(this.X)}; g.Q.hide=function(){this.V.stop();this.T=0;this.Vg("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.hw(this.element,"ytp-chapter-seek");g.hw(this.element,"ytp-time-seeking");g.R.prototype.hide.call(this)}; g.Q.Rx=function(n,Z,F,y){this.T=n===this.C?this.T+y:y;this.C=n;var l=n===-1?this.L:this.J;l&&this.W.logClick(l);this.S?this.X.stop():g.fD(this.X);this.V.start();this.element.setAttribute("data-side",n===-1?"back":"forward");var m=3*this.W.Br().getPlayerSize().height;l=this.W.Br().getPlayerSize();l=l.width/3-3*l.height;this.N.style.width=m+"px";this.N.style.height=m+"px";n===1?(this.N.style.left="",this.N.style.right=l+"px"):n===-1&&(this.N.style.right="",this.N.style.left=l+"px");var a=m*2.5;m=a/ 2;var D=this.Vg("ytp-doubletap-ripple");D.style.width=a+"px";D.style.height=a+"px";n===1?(n=this.W.Br().getPlayerSize().width-Z+Math.abs(l),D.style.left="",D.style.right=n-m+"px"):n===-1&&(n=Math.abs(l)+Z,D.style.right="",D.style.left=n-m+"px");D.style.top="calc((33% + "+Math.round(F)+"px) - "+m+"px)";if(F=this.Vg("ytp-doubletap-ripple"))F.classList.remove("ytp-doubletap-ripple"),F.classList.add("ytp-doubletap-ripple");e3K(this,this.S?this.T:y)}; g.Q.LB=function(n,Z,F){if(F=F===void 0?null:F){var y=n===-1?this.L.visualElement:this.J.visualElement;F={seekData:F};var l=g.f_();l&&AL(l,y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",F)}this.T=n===this.C?this.T+Z:Z;this.C=n;y=this.W.Br().getPlayerSize();this.S?this.X.stop():g.fD(this.X);this.V.start();this.element.setAttribute("data-side",n===-1?"back":"forward");g.gi(this.element,"ytp-time-seeking");this.N.style.width="110px";this.N.style.height="110px";F=y.width*.1-15;n===1?this.Ns?(this.N.style.right= F+"px",this.N.style.left=""):(this.N.style.right="",this.N.style.left=y.width*.8-30+"px"):n===-1&&(this.Ns?(this.N.style.right="",this.N.style.left=F+"px"):(this.N.style.right="",this.N.style.left=y.width*.1-15+"px"));this.N.style.top=y.height*.5+15+"px";e3K(this,this.S?this.T:Z)}; g.Q.oN=function(n,Z,F){F=F===void 0?null:F;g.fD(this.X);this.V.start();switch(n){case -1:n="back";break;case 1:n="forward";break;default:n=""}this.element.setAttribute("data-side",n);this.N.style.width="0";this.N.style.height="0";g.gi(this.element,"ytp-chapter-seek");this.updateValue("seekText",Z);this.updateValue("seekTime","");Z=this.Vg("ytp-seek-icon");if(F){a:if(F){switch(F){case "PREMIUM_STANDALONE":F=jBP();break a;case "PREMIUM_STANDALONE_CAIRO":F=zHP();break a}F=void 0}else F=null;this.updateValue("seekIcon", F);Z.style.display="inline-block"}else Z.style.display="none"};g.d(tl,zO);g.Q=tl.prototype;g.Q.Yb=function(n){this.jT||(this.jT=new vF(this.W),g.S(this,this.jT));var Z,F;if((Z=this.IW)==null?0:(F=Z.menu)==null?0:F.menuRenderer)this.jT.open(this.IW.menu.menuRenderer,n.target),n.preventDefault()}; g.Q.e3=function(){return!!this.N}; g.Q.sP=function(){return!!this.N}; g.Q.sT=function(n){n.target===this.overflowButton.element?n.preventDefault():(this.h2&&this.W.LR("innertubeCommand",this.h2),this.ZL(!1))}; g.Q.Ai=function(){this.ZL(!0);var n,Z;if((n=this.N)==null?0:(Z=n.bannerData)==null?0:Z.dismissedStatusKey){if(this.xi.includes(this.N.bannerData.dismissedStatusKey))return;this.xi.push(this.N.bannerData.dismissedStatusKey)}this.Uh();this.W.j("web_enable_shopping_timely_shelf_client")&&(n={},g.qJ(n,dRe,{overlayId:"player_overlay_timely_shelf"}),this.W.LR("innertubeCommand",n))}; g.Q.uR=function(){this.Uh();Qd(this)}; g.Q.W9r=function(n){var Z=this,F;if(n.id!==((F=this.N)==null?void 0:F.identifier)){this.Uh();F=g.Y(this.Wr);for(var y=F.next();!y.done;y=F.next()){var l=y.value,m=void 0,a=void 0;if((y=(m=l)==null?void 0:(a=m.bannerData)==null?void 0:a.itemData)&&l.identifier===n.id){a=m=void 0;var D=((m=l)==null?void 0:(a=m.bannerData)==null?void 0:a.dismissedStatusKey)||"";if(this.xi.includes(D))return;this.N=l;this.banner.element.setAttribute("aria-label",y.accessibilityLabel||"");y.trackingParams&&(this.X=!0, this.W.setTrackingParams(this.badge.element,y.trackingParams));this.show();this.L.show();jd(this);this.zx.yP(!y.stayInApp);ha8(this);Do(this);Kq(this);this.h2=g.e(y.onTapCommand,jk);if(l=g.e(y.menuOnTap,jk))this.IW=g.e(l,ZQh);l=void 0;this.banner.update({thumbnail:(l=(y.thumbnailSources||[])[0])==null?void 0:l.url,title:y.productTitle,price:y.priceReplacementText?y.priceReplacementText:y.price,salesOriginalPrice:yQi(this),priceDropReferencePrice:ThP(this),promotionText:u5Q(this),priceA11yText:YVY(this), affiliateDisclaimer:y.affiliateDisclaimer,vendor:uD7(this)});D=a=m=l=void 0;((l=y)==null?0:(m=l.hiddenProductOptions)==null?0:m.showDropCountdown)&&((a=y)==null?0:(D=a.hiddenProductOptions)==null?0:D.dropTimestampMs)&&(this.kV=new g.e7(function(){bIo(Z)},1E3),this.zx.hide(),this.countdownTimer.show(),bIo(this)); this.W.j("web_player_enable_featured_product_banner_exclusives_on_desktop")&&SOU(this)&&(this.Hx=new g.e7(function(){RkT(Z)},1E3),RkT(this))}}this.W.getRootNode()&&g.gi(this.W.getRootNode(),"ytp-featured-product-shown")}}; g.Q.Uh=function(){this.N&&(this.N=void 0,this.Lh(),this.W.getRootNode()&&g.hw(this.W.getRootNode(),"ytp-featured-product-shown"))}; g.Q.onVideoDataChange=function(n,Z){var F=this;n==="dataloaded"&&Qd(this);var y,l,m;n=g.e((y=Z.getWatchNextResponse())==null?void 0:(l=y.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,$nc);this.overflowButton.show();this.dismissButton.hide();var a=n==null?void 0:n.featuredProductsEntityKey;this.trendingOfferEntityKey=n==null?void 0:n.trendingOfferEntityKey;this.Wr.length||(G$e(this,a),Kq(this));var D;(D=this.N1)==null||D.call(this);this.N1=g.YO.subscribe(function(){G$e(F, a);Kq(F)})}; g.Q.IY=function(){Qd(this);ha8(this);Do(this);zO.prototype.IY.call(this)};g.d(g0p,g.R);g0p.prototype.onClick=function(){this.W.logClick(this.element,this.T);if(this.W.j("embeds_enable_info_panel_dismissal")&&this.N&&this.feedbackToken){var n=this.W.ZE();if(n==null?0:Z6e(this.N,n.Ml))C_(n,this.N,{feedbackTokens:[this.feedbackToken]}),this.W.publish("infopaneldetaildismissed")}};g.d(gR,g.yO);g.Q=gR.prototype;g.Q.show=function(){g.yO.prototype.show.call(this);this.W.publish("infopaneldetailvisibilitychange",!0);this.W.logVisibility(this.element,!0);TGp(this,!0)}; g.Q.hide=function(){g.yO.prototype.hide.call(this);this.W.publish("infopaneldetailvisibilitychange",!1);this.W.logVisibility(this.element,!1);TGp(this,!1)}; g.Q.getId=function(){return this.T}; g.Q.pm=function(){return this.itemData.length}; g.Q.onVideoDataChange=function(n,Z){if(Z){var F,y,l,m;this.update({title:((F=Z.GU)==null?void 0:(y=F.title)==null?void 0:y.content)||"",body:((l=Z.GU)==null?void 0:(m=l.bodyText)==null?void 0:m.content)||""});var a;n=((a=Z.GU)==null?void 0:a.trackingParams)||null;this.W.setTrackingParams(this.element,n);a=g.Y(this.itemData);for(n=a.next();!n.done;n=a.next())n.value.dispose();this.itemData=[];var D;if((D=Z.GU)==null?0:D.ctaButtons)for(Z=g.Y(Z.GU.ctaButtons),D=Z.next();!D.done;D=Z.next())if(D=g.e(D.value, tgp))D=new g0p(this.W,D,this.N),D.uy&&(this.itemData.push(D),D.oY(this.items))}}; g.Q.IY=function(){this.hide();g.yO.prototype.IY.call(this)};g.d(ZTo,g.R);g.Q=ZTo.prototype;g.Q.onVideoDataChange=function(n,Z){CIT(this,Z);this.gV&&imK(this,this.gV)}; g.Q.PT=function(n){var Z=this.W.getVideoData();this.videoId!==Z.videoId&&CIT(this,Z);imK(this,n.state);this.gV=n.state}; g.Q.n0=function(n){(this.T=n)?this.hide():this.N&&!this.isDismissed&&this.show()}; g.Q.F9=function(){this.X||this.KJ();this.showControls=!0}; g.Q.Qj=function(){this.X||this.jG();this.showControls=!1}; g.Q.KJ=function(){if(!this.isDismissed){var n,Z=(n=this.W)==null?void 0:n.getPlayerSize();n=Z.width<380;var F;Z=Z.height<(((F=this.W)==null?0:F.isEmbedsShortsMode())?400:280);var y,l;(((y=this.W)==null?0:y.getPlayerStateObject().isCued())||((l=this.W)==null?0:g.b(l.getPlayerStateObject(),1024)))&&n&&Z||!this.N||this.T||(this.fade.show(),this.W.publish("infopanelpreviewvisibilitychange",!0),this.W.logVisibility(this.element,!0))}}; g.Q.jG=function(){this.N&&!this.T&&(this.fade.hide(),this.W.publish("infopanelpreviewvisibilitychange",!1),this.W.logVisibility(this.element,!1))}; g.Q.k5r=function(){this.X=!1;this.showControls||this.jG()};var $$m={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys($$m).reduce(function(n,Z){n[$$m[Z]]=Z;return n},{}); var ntm={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ntm).reduce(function(n,Z){n[ntm[Z]]=Z;return n},{}); var ZXI={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(ZXI).reduce(function(n,Z){n[ZXI[Z]]=Z;return n},{});var FtI,yVh;FtI=[{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"}];yVh=[{option:0,text:rA(0)},{option:.25,text:rA(.25)},{option:.5,text:rA(.5)},{option:.75,text:rA(.75)},{option:1,text:rA(1)}]; g.eT=[{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:FtI},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:rA(.5)},{option:-1,text:rA(.75)},{option:0,text:rA(1)},{option:1,text:rA(1.5)},{option:2, text:rA(2)},{option:3,text:rA(3)},{option:4,text:rA(4)}]},{option:"background",text:"Background color",options:FtI},{option:"backgroundOpacity",text:"Background opacity",options:yVh},{option:"windowColor",text:"Window color",options:FtI},{option:"windowOpacity",text:"Window opacity",options:yVh},{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:rA(.25)},{option:.5,text:rA(.5)},{option:.75,text:rA(.75)},{option:1,text:rA(1)}]}];var lCh=[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.d(opo,g.IS);g.Q=opo.prototype; g.Q.rC=function(n){n.repeat||(this.T.j6=!1);var Z=!1,F=n.keyCode,y=bl(n),l=!n.altKey&&!n.ctrlKey&&!n.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||lCh.includes(F)),m=!1,a=!1,D=this.api.B();n.defaultPrevented?(l=!1,a=!0):D.oX&&!this.api.isMutedByEmbedsMutedAutoplay()&&(l=!1);if(F===9)Z=!0;else{if(y)switch(F){case 32:case 13:if(y.tagName==="BUTTON"||y.tagName==="A"||y.tagName==="INPUT")Z=!0,l=!1;else if(l){var p=y.getAttribute("role");!p||p!=="option"&&p!=="button"&&p.indexOf("menuitem")!==0|| (Z=!0,y.click(),m=!0)}break;case 37:case 39:case 36:case 35:Z=y.getAttribute("role")==="slider";break;case 38:case 40:p=y.getAttribute("role"),y=F===38?y.previousSibling:y.nextSibling,p==="slider"?Z=!0:l&&(p==="option"?(y&&y.getAttribute("role")==="option"&&y.focus(),m=Z=!0):p&&p.indexOf("menuitem")===0&&(y&&y.hasAttribute("role")&&y.getAttribute("role").indexOf("menuitem")===0&&y.focus(),m=Z=!0))}if(l&&!m)switch(F){case 38:m=Math.min(this.api.getVolume()+5,100);zb(this.WI,m,!1);this.api.setVolume(m); a=m=!0;break;case 40:m=Math.max(this.api.getVolume()-5,0);zb(this.WI,m,!0);this.api.setVolume(m);a=m=!0;break;case 36:this.api.aH()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),a=m=!0);break;case 35:this.api.aH()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),a=m=!0)}}Z&&cR(this,!0);(Z||a)&&this.rO.Xf();(m||l&&this.handleGlobalKeyDown(F,n.shiftKey,n.ctrlKey,n.altKey,n.metaKey,n.key,n.code,n.repeat))&&n.preventDefault();D.L&&(n={keyCode:n.keyCode, altKey:n.altKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,shiftKey:n.shiftKey,handled:n.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.SV("onKeyPress",n))}; g.Q.eW=function(n){var Z=n.keyCode;!this.T.Ao&&this.handleGlobalKeyUp(Z,n.shiftKey,n.ctrlKey,n.altKey,n.metaKey,n.key,n.code)&&n.preventDefault()}; g.Q.handleGlobalKeyUp=function(n,Z,F,y,l,m,a){this.api.publish("keyboardserviceglobalkeyup",{keyCode:n,shiftKey:Z,ctrlKey:F,altKey:y,metaKey:l,key:m,code:a});Z=!1;if(this.T.j6)return Z;(m=g.PL(this.api.iN()))&&(m=m.qM)&&m.XJ&&(m.Op(n),Z=!0);switch(n){case 9:cR(this,!0);Z=!0;break;case 32:if(this.api.j("web_speedmaster_spacebar_control")&&!this.api.B().oX){var D,p;n=(D=this.progressBar)==null?void 0:(p=D.X)==null?void 0:p.isEnabled;Z=this.mL(n)}break;case 39:(this.api.j("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(l||F&&y))&&(vE?y:F)&&this.api.aH()&&this.api.j("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),D=(D=this.api.getVideoData())?D.ud:[],p=XKU(D,this.api.getCurrentTime()*1E3),p!==-1&&this.N!=null&&(this.N.oN(1,D[p].title),this.api.seekTo(D[p].startTime/1E3,void 0,void 0,void 0,52),Z=!0))}return Z}; g.Q.handleGlobalKeyDown=function(n,Z,F,y,l,m,a,D){D||(this.T.j6=!1);var p=!1,L=this.api.B();if(L.oX&&!this.api.isMutedByEmbedsMutedAutoplay())return p;var q=g.PL(this.api.iN());if(q&&(q=q.qM)&&q.XJ)switch(n){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:p=q.k5(n)}L.C||p||(p=m||String.fromCharCode(n).toLowerCase(),this.X+=p,"awesome".indexOf(this.X)===0||this.api.j("web_player_rtr_ctrls")&&"bday".indexOf(this.X)===0?(p=!0,4===this.X.length&&this.X==="bday"&&this.api.j("web_player_rtr_ctrls")&& (XqU(this.S),this.rO.Xf()),7===this.X.length&&this.X==="awesome"&&a5K(this.api.getRootNode(),"ytp-color-party")):(this.X=p,p="awesome".indexOf(this.X)===0||"bday".indexOf(this.X)===0));if(!p&&(!this.api.isMutedByEmbedsMutedAutoplay()||lCh.includes(n))){var w=this.api.getVideoData(),T,P;q=(T=this.progressBar)==null?void 0:(P=T.X)==null?void 0:P.isEnabled;T=w?w.ud:[];P=vE?y:F;switch(n){case 80:Z&&!L.r5&&(XF(this.WI,xUe(),"Previous"),this.api.previousVideo(),p=!0);break;case 78:Z&&!L.r5&&(XF(this.WI, rL(),"Next"),this.api.nextVideo(),p=!0);break;case 74:this.api.aH()&&(this.api.startSeekCsiAction(),this.N?this.api.j("enable_key_press_seek_logging")?(p=kT(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.N.LB(-1,10,p)):this.N.LB(-1,10):XF(this.WI,{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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),p=!0);break;case 76:this.api.aH()&&(this.api.startSeekCsiAction(),this.N?this.api.j("enable_key_press_seek_logging")?(p=kT(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.N.LB(1,10,p)):this.N.LB(1,10):XF(this.WI,{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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),p=!0);break;case 37:if(this.api.aH())if(this.api.startSeekCsiAction(),P){if(this.api.j("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(l||F&&y))P=Pvj(T,this.api.getCurrentTime()*1E3),P!==-1&&this.N!=null&&(this.N.oN(-1,T[P].title),this.api.seekTo(T[P].startTime/1E3,void 0,void 0,void 0,53),p=!0)}else this.N?this.api.j("enable_key_press_seek_logging")?(p=kT(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.N.LB(-1,5,p)):this.N.LB(-1,5):XF(this.WI,{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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),p=!0;break;case 39:this.api.aH()&&(this.api.startSeekCsiAction(),P?this.api.j("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.j("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(l||F&&y)||(P=XKU(T,this.api.getCurrentTime()*1E3),P!==-1&&this.N!=null&&(this.N.oN(1,T[P].title),this.api.seekTo(T[P].startTime/1E3,void 0,void 0,void 0,52),p=!0)):(this.N!=null?this.api.j("enable_key_press_seek_logging")?(p=kT(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.N.LB(1,5,p)):this.N.LB(1,5):XF(this.WI,{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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),p=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),zb(this.WI,this.api.getVolume(),!1)):(this.api.mute(),zb(this.WI,0,!0));p=!0;break;case 32:p=this.api.j("web_speedmaster_spacebar_control")?!this.api.B().r5:this.mL(q);break;case 75:p=this.mL(q);break;case 190:Z?L.enableSpeedOptions&&w3n(this)&&(p=this.api.getPlaybackRate(),this.api.setPlaybackRate(p+.25,!0),$qo(this.WI,!1),p=!0):this.api.aH()&&(this.step(1),p=!0);break;case 188:Z? L.enableSpeedOptions&&w3n(this)&&(p=this.api.getPlaybackRate(),this.api.setPlaybackRate(p-.25,!0),$qo(this.WI,!0),p=!0):this.api.aH()&&(this.step(-1),p=!0);break;case 70:T8p(this.api)&&(this.api.toggleFullscreen().catch(function(){}),p=!0); break;case 27:q?(this.progressBar.xw(),p=!0):this.J()&&(p=!0)}if(L.controlsType!=="3")switch(n){case 67:g.A8(this.api.iN())&&(L=this.api.getOption("captions","track"),this.api.toggleSubtitles(),XVi(this.WI,!L||L&&!L.displayName),p=!0);break;case 79:QT(this,"textOpacity");break;case 87:QT(this,"windowOpacity");break;case 187:case 61:QT(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:QT(this,"fontSizeIncrement",!0,!0)}var J;Z||F||y||(n>=48&&n<=57?J=n-48:n>=96&&n<=105&&(J=n-96));J!=null&&this.api.aH()&& !this.api.j("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),L=this.api.getProgressState(),this.api.seekTo(J/10*(L.seekableEnd-L.seekableStart)+L.seekableStart,void 0,void 0,void 0,81),p=!0);p&&this.rO.Xf()}this.T.rq=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:n,shiftKey:Z,ctrlKey:F,altKey:y,metaKey:l,key:m,code:a,repeat:D},this.T);this.T.rq&&(p=!0,this.rO.Xf());return p}; g.Q.step=function(n){this.api.aH();if(this.api.getPlayerStateObject().isPaused()){var Z=this.api.getVideoData().X;Z&&(Z=Z.video)&&this.api.seekBy(n/(Z.fps||30),void 0,void 0,n>0?77:78)}}; g.Q.mL=function(n){if(!this.api.B().r5){var Z;var F,y=(Z=this.api.getVideoData())==null?void 0:(F=Z.getPlayerResponse())==null?void 0:F.playabilityStatus;if(y){var l;Z=((l=g.e(y.miniplayer,KYO))==null?void 0:l.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else Z=!1;Z&&this.api.LR("onExpandMiniplayer");n?this.progressBar.qZ():(n=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.WI.D_(n),n?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.Q.IY=function(){g.fD(this.V);g.IS.prototype.IY.call(this)};g.d(JM,g.R);JM.prototype.g5=function(){var n=this.W.B(),Z=n.T||this.W.j("web_player_hide_overflow_button_if_empty_menu")&&this.Yk.isEmpty();n=g.R6(n)&&g.ce(this.W)&&g.b(this.W.getPlayerStateObject(),128);var F=this.W.getPlayerSize();this.visible=this.W.gJ()&&!n&&F.width>=240&&!this.W.getVideoData().vV&&!Z&&!this.W.isEmbedsShortsMode();g.w4(this.element,"ytp-overflow-button-visible",this.visible);this.yP(this.visible);this.visible&&this.W.RH();this.W.logVisibility(this.element,this.visible&&this.Pr)}; JM.prototype.YV=function(n){g.R.prototype.YV.call(this,n);this.W.logVisibility(this.element,this.visible&&n)}; JM.prototype.IY=function(){g.R.prototype.IY.call(this);g.hw(this.element,"ytp-overflow-button-visible")};g.d(qr,g.yO);g.Q=qr.prototype;g.Q.Nu=function(n){n=bl(n);g.Uq(this.element,n)&&(g.Uq(this.N,n)||g.Uq(this.closeButton,n)||Ep(this))}; g.Q.jG=function(){g.yO.prototype.jG.call(this);this.W.Ja(this.element)}; g.Q.show=function(){this.XJ&&this.W.publish("OVERFLOW_PANEL_OPENED");g.yO.prototype.show.call(this);this.element.setAttribute("aria-modal","true");wJ7(this,!0)}; g.Q.hide=function(){g.yO.prototype.hide.call(this);this.element.removeAttribute("aria-modal");wJ7(this,!1)}; g.Q.onFullscreenToggled=function(n){!n&&this.I6()&&Ep(this)}; g.Q.isEmpty=function(){return this.actionButtons.length===0}; g.Q.focus=function(){for(var n=g.Y(this.actionButtons),Z=n.next();!Z.done;Z=n.next())if(Z=Z.value,Z.XJ){Z.focus();break}};g.d(mSn,g.R);mSn.prototype.onClick=function(n){g.Xw(n,this.api)&&this.api.playVideoAt(this.index)};g.d(xO,g.yO);g.Q=xO.prototype;g.Q.show=function(){g.yO.prototype.show.call(this);this.N.G(this.api,"videodatachange",this.At);this.N.G(this.api,"onPlaylistUpdate",this.At);this.At()}; g.Q.hide=function(){g.yO.prototype.hide.call(this);g.xU(this.N);this.updatePlaylist(null)}; g.Q.At=function(){this.updatePlaylist(this.api.getPlaylist());this.api.B().T&&(this.Vg("ytp-playlist-menu-title-name").removeAttribute("href"),this.X&&(this.o0(this.X),this.X=null))}; g.Q.qA=function(){var n=this.playlist,Z=n.author,F=Z?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",y={CURRENT_POSITION:String(n.index+1),PLAYLIST_LENGTH:String(n.length)};Z&&(y.AUTHOR=Z);this.update({title:n.title,subtitle:g.xq(F,y),playlisturl:this.api.getVideoUrl(!0)});Z=n.X;if(Z===this.T)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[n.index];else{F=g.Y(this.playlistData);for(y=F.next();!y.done;y=F.next())y.value.dispose(); F=n.length;this.playlistData=[];for(y=0;y=this.X&&!n.T&&!Z.isAd()&&!this.api.isEmbedsShortsMode()}else n=!1;this.visible=n;this.yP(this.visible);g.w4(this.element,"ytp-search-button-visible",this.visible);g.w4(this.element,"ytp-show-search-title",!this.api.gJ());this.api.logVisibility(this.element,this.visible&&this.Pr)}; SX.prototype.YV=function(n){g.R.prototype.YV.call(this,n);this.api.logVisibility(this.element,this.visible&&n)};g.d(Eg,g.R); Eg.prototype.trigger=function(n,Z,F,y){this.show();if(this.X&&n!==this.X){var l=1;this.T&&(l=hYT(this));aIT(this,l,!1);qRK(this)}this.X=n;this.V=this.X===-1?this.J:this.L;n="";Z?(this.X===-1&&this.W.getCurrentTime()<=Z?this.S=Z:this.S+=Z,n=(this.X===-1?"\u2212":"+")+" "+this.S):this.S=0;this.updateValue(this.X===-1?"durationBack":"durationForward",n);if(this.N==="hidden"||this.N==="fading-out")Z=0,this.N==="fading-out"&&(Z=hYT(this),tNe(this)),trf(this,Z),this.N!=="fading-out"&&Evf(this,this.V.querySelector(".ytp-seek-overlay-arrow-persistent")), this.N="fading-in";else if(this.N==="fading-in"||this.N==="lingering")Z=this.V.querySelector(".ytp-seek-overlay-duration"),n=g.jf(this.W.B().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,Z.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("+n+")"},{offset:1,transform:"scale(1)"}],{duration:184}),tNe(this),this.N==="lingering"&&(this.C.stop(),this.C.start());F&&pzp(this, F,y)}; Eg.prototype.Rx=function(n,Z,F,y){this.trigger(n,y)}; Eg.prototype.LB=function(n,Z,F){this.trigger(n,Z);F&&(n=n===-1?this.L.visualElement:this.J.visualElement,F={seekData:F},(Z=g.f_())&&AL(Z,n,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",F))}; Eg.prototype.oN=function(n,Z,F){this.trigger(n,void 0,Z,F)};g.d(Yv,g.R);Yv.prototype.onClick=function(){var n=this,Z=this.api.B(),F=this.api.getVideoData(this.api.getPresentingPlayerType()),y=this.api.getPlaylistId();Z=this.api.j("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):Z.getVideoUrl(F.videoId,y,void 0,!0);if(navigator.share)try{var l=navigator.share({title:F.title,url:Z});l instanceof Promise&&l.catch(function(m){fC8(n,m)})}catch(m){m instanceof Error&&fC8(this,m)}else this.N.H9(),Ep(this.X,this.element,!1); this.api.logClick(this.element)}; Yv.prototype.g5=function(){var n=this.api.B(),Z=this.api.isEmbedsShortsMode();g.w4(this.element,"ytp-show-share-title",g.R6(n)&&!Z);this.N.AX()&&Z?(n=(this.api.Br().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.a$(this.element,"right",n+"px")):Z&&g.a$(this.element,"right","0px");this.updateValue("icon",{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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=r6(this);g.w4(this.element,"ytp-share-button-visible",this.visible);this.yP(this.visible);this.tooltip.RH();this.api.logVisibility(this.element,r6(this)&&this.Pr)}; Yv.prototype.YV=function(n){g.R.prototype.YV.call(this,n);this.api.logVisibility(this.element,this.visible&&n)}; Yv.prototype.IY=function(){g.R.prototype.IY.call(this);g.hw(this.element,"ytp-share-button-visible")};g.d(mt,g.yO);g.Q=mt.prototype;g.Q.Il=function(n){n=bl(n);g.Uq(this.V,n)||g.Uq(this.closeButton,n)||Ep(this)}; g.Q.jG=function(){g.yO.prototype.jG.call(this);this.tooltip.Ja(this.element);this.api.logVisibility(this.N,!1);for(var n=g.Y(this.X),Z=n.next();!Z.done;Z=n.next())Z=Z.value,this.api.hasVe(Z.element)&&this.api.logVisibility(Z.element,!1)}; g.Q.show=function(){var n=this.XJ;g.yO.prototype.show.call(this);this.g5();n||this.api.LR("onSharePanelOpened")}; g.Q.oVi=function(){this.XJ&&this.g5()}; g.Q.g5=function(){var n=this;g.gi(this.element,"ytp-share-panel-loading");g.hw(this.element,"ytp-share-panel-fail");var Z=this.api.getVideoData(),F=this.api.getPlaylistId()&&this.T.checked;Z.getSharePanelCommand&&C_(this.api.ZE(),Z.getSharePanelCommand,{includeListId:F}).then(function(y){n.CR()||(g.hw(n.element,"ytp-share-panel-loading"),qdf(n,y))}); Z=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",Z);this.updateValue("linkText",Z);this.updateValue("shareLinkWithUrl",g.xq("Share link $URL",{URL:Z}));Sip(this.N);this.api.logVisibility(this.N,!0)}; g.Q.onFullscreenToggled=function(n){!n&&this.I6()&&Ep(this)}; g.Q.focus=function(){this.N.focus()}; g.Q.IY=function(){g.yO.prototype.IY.call(this);D0K(this)};g.d(H$,zO);g.Q=H$.prototype;g.Q.IY=function(){zfP(this);zO.prototype.IY.call(this)}; g.Q.sT=function(n){n.target!==this.dismissButton.element&&(this.ZL(!1),this.W.LR("innertubeCommand",this.onClickCommand))}; g.Q.Ai=function(){this.yg=!0;this.ZL(!0);this.Lh()}; g.Q.Hqp=function(n){this.C=n;this.Lh()}; g.Q.onVideoDataChange=function(n,Z){if(n=!!Z.videoId&&this.videoId!==Z.videoId)this.videoId=Z.videoId,this.yg=!1,this.w5=!0,this.J=this.Tx=!1,zfP(this),$_j(this,!1),this.T=this.N=!1,Uy(this),p2e(this);if(n||!Z.videoId)this.Ns=this.X=!1;var F,y;if(Z==null?0:(F=Z.getPlayerResponse())==null?0:(y=F.videoDetails)==null?0:y.isLiveContent)this.TU(!1);else{var l,m,a;Z=g.e((l=Z.getWatchNextResponse())==null?void 0:(m=l.playerOverlays)==null?void 0:(a=m.playerOverlayRenderer)==null?void 0:a.productsInVideoOverlayRenderer, $nc);this.C=this.enabled=!1;if(Z){if(l=Z==null?void 0:Z.featuredProductsEntityKey){m=g.YO.getState().entities;var D;if((D=S0(m,"featuredProductsEntity",l))==null?0:D.productsData){this.TU(!1);return}}if(!Z.text||!Z.onClickCommand||!Z.timing){this.TU(!1);return}this.enabled=!0;if(!this.X){var p;D=(p=Z.badgeInteractionLogging)==null?void 0:p.trackingParams;(this.X=!!D)&&this.W.setTrackingParams(this.badge.element,D||null)}if(!this.Ns){var L;if(this.Ns=!((L=Z.dismissButton)==null||!L.trackingParams)){var q; this.W.setTrackingParams(this.dismissButton.element,((q=Z.dismissButton)==null?void 0:q.trackingParams)||null)}}Z.isContentForward&&(p=Z.productsData,$_j(this,!0),p2e(this),p=OuK(this,p),L=[],p.length>0&&L.push(p[0]),p.length>1&&(q=new g.R({U:"div",K:"ytp-suggested-action-more-products-icon"}),g.S(this,q),L.push(q),L.push.apply(L,g.t(p.slice(1)))),this.S=new g.R({U:"div",D:L,K:"ytp-suggested-action-content-forward-container"}),g.S(this,this.S),this.lY.element.append(this.S.element));this.text=g.sg(Z.text); var w;if(p=(w=Z.dismissButton)==null?void 0:w.a11yLabel)this.fR=g.sg(p);this.onClickCommand=Z.onClickCommand;this.timing=Z.timing;this.y9()}TQj(this);jd(this);this.Lh()}}; g.Q.e3=function(){return!this.C&&this.enabled&&!this.yg&&!this.W.gJ()&&!this.SG&&(this.J||this.w5)}; g.Q.L$=function(n){zO.prototype.L$.call(this,n);if(this.N||this.T)this.timing&&yf(this.timing.preview)&&(this.N=!1,Uy(this),this.T=!1,Uy(this),this.W.V9("shopping_overlay_preview_collapsed"),this.W.V9("shopping_overlay_preview_expanded"),n=z4(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),yf(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.W.V9("shopping_overlay_expanded"),n.end=this.timing.expanded.endSec*1E3),this.W.y9([n])), this.Tx=!0,jd(this);Uy(this)}; g.Q.TU=function(n){(this.J=n)?(Tx(this),jd(this,!1)):(zfP(this),this.r5.start());this.Lh()}; g.Q.y9=function(n){var Z=this.timing;n=(n===void 0?0:n)+this.W.getCurrentTime();var F=[],y=Z.visible,l=Z.preview;Z=Z.expanded;yf(y)&&(htP(y,n),F.push(z4(y.startSec,y.endSec,"shopping_overlay_visible")));yf(l)&&(htP(l,n),y=l.startSec+1,F.push(z4(l.startSec,y,"shopping_overlay_preview_collapsed")),F.push(z4(y,l.endSec,"shopping_overlay_preview_expanded")));yf(Z)&&(htP(Z,n),F.push(z4(Z.startSec,Z.endSec,"shopping_overlay_expanded")));this.W.y9(F)}; g.Q.Lh=function(){zO.prototype.Lh.call(this);this.W.getRootNode()&&g.w4(this.W.getRootNode(),"ytp-shopping-pill-shown",this.e3())};g.d(jP,g.R); jP.prototype.g5=function(){var n=this.api.B();this.yP(g.R6(n)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.XJ);var Z=this.api.getVideoData(),F=!1;this.api.getPresentingPlayerType()===2?F=!!Z.videoId&&!!Z.isListed&&!!Z.author&&!!Z.r5&&!!Z.profilePicture:g.R6(n)&&(F=!!Z.videoId&&!!Z.r5&&!!Z.profilePicture&&!Z.vV&&!n.T&&!(n.J&&this.api.getPlayerSize().width<200));var y=Z.profilePicture;n=g.R6(n)?Z.expandedTitle:Z.author;y=y===void 0?"": y;n=n===void 0?"":n;F?(this.X!==y&&(this.N.style.backgroundImage="url("+y+")",this.X=y),this.updateValue("channelLogoLabel",g.xq("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:n})),g.gi(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.hw(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.N,F&&this.Pr);this.api.logVisibility(this.channelName,F&&this.Pr);this.subscribeButton&&(this.subscribeButton.channelId=Z.z6);this.updateValue("expandedTitle",Z.expandedTitle)};g.d(hH,g.yO);hH.prototype.show=function(){g.yO.prototype.show.call(this);this.N.start()}; hH.prototype.hide=function(){g.yO.prototype.hide.call(this);this.N.stop()}; hH.prototype.ED=function(n,Z){n==="dataloaded"&&((this.Iw=Z.Iw,this.s9=Z.s9,isNaN(this.Iw)||isNaN(this.s9))?this.X&&(this.W.V9("intro"),this.W.removeEventListener(g.HP("intro"),this.J),this.W.removeEventListener(g.dn("intro"),this.V),this.W.removeEventListener("onShowControls",this.T),this.hide(),this.X=!1):(this.W.addEventListener(g.HP("intro"),this.J),this.W.addEventListener(g.dn("intro"),this.V),this.W.addEventListener("onShowControls",this.T),n=new g.wg(this.Iw,this.s9,{priority:9,namespace:"intro"}), this.W.y9([n]),this.X=!0))};g.d(RB,g.R);RB.prototype.onClick=function(){this.W.IA()}; RB.prototype.g5=function(){var n=!0;g.R6(this.W.B())&&(n=n&&this.W.Br().getPlayerSize().width>=480);this.yP(n);n=this.updateValue;var Z=this.W.j("delhi_modern_web_player_icons"),F=Z?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,Z:{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"}}]};Z=Z?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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"}}]};n.call(this,"icon",this.W.rJ()?F:Z)};g.d(P8,g.R);P8.prototype.IY=function(){this.N=null;g.R.prototype.IY.call(this)};g.d(Fk,g.R);Fk.prototype.onClick=function(){this.W.LR("innertubeCommand",this.X)}; Fk.prototype.L=function(){if(this.W.j("delhi_modern_web_player")){var n=this.W.getPlayerSize();n.width&&(this.element.style.maxWidth=n.width*.25+"px")}}; Fk.prototype.Tx=function(n){n!==this.C&&(this.update({chapterTitle:n,ariaLabel:n}),this.C=n);n?this.show():this.hide()}; Fk.prototype.Ns=function(){this.N.disabled=this.X==null;g.w4(this.N,"ytp-chapter-container-disabled",this.N.disabled);this.jO()};g.d(c8,Fk);c8.prototype.onClickCommand=function(n){g.e(n,AH)&&this.jO()}; c8.prototype.updateVideoData=function(n,Z){var F,y,l;n=g.e((F=Z.getWatchNextResponse())==null?void 0:(y=F.playerOverlays)==null?void 0:(l=y.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,N7);F=g.e(n==null?void 0:n.playerBarActionButton,g.qb);if(this.W.j("web_player_updated_entrypoint")){this.J=oK(F==null?void 0:F.text);var m;y=(m=F==null?void 0:F.tooltip)!=null?m:"View chapter";this.S.setAttribute("title",y)}this.X=F==null?void 0:F.command;Fk.prototype.Ns.call(this)}; c8.prototype.jO=function(){var n=this.J,Z=this.V.N,F,y=((F=this.W.getLoopRange())==null?void 0:F.type)==="clips";if(Z.length>1&&!y){n=this.W.getProgressState().current*1E3;F=LC(Z,n);n=Z[F].title||"Chapters";if(F!==this.currentIndex||this.T)this.W.LR("innertubeCommand",Z[F].onActiveCommand),this.currentIndex=F;this.T=!1}else this.T=!0;Fk.prototype.Tx.call(this,n)};g.d(IB,g.oS);IB.prototype.X=function(){var n;(n=this.element.parentElement)==null||n.classList.contains("ytp-right-controls-left");(this.N=!this.N)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; IB.prototype.isExpanded=function(){return this.N};g.d(Y1,g.R);Y1.prototype.T=function(n){g.b(n.state,32)?NYU(this,this.api.LF()):this.XJ&&(g.b(n.state,16)||g.b(n.state,1))||this.fade.hide()}; Y1.prototype.onProgress=function(){var n=this.api.getPlayerStateObject();(g.b(n,32)||g.b(n,16))&&gv8(this)}; Y1.prototype.V=function(){this.frameIndex=NaN;gv8(this)}; Y1.prototype.hide=function(){this.N&&NYU(this,null);g.R.prototype.hide.call(this)};g.d(Ta,g.R);g.Q=Ta.prototype;g.Q.onClick=function(){var n=this;if(this.W.B().d5||this.W.B().J){this.W.logClick(this.element);try{this.W.toggleFullscreen().catch(function(Z){n.zL(Z)})}catch(Z){this.zL(Z)}}else Ep(this.message,this.element,!0)}; g.Q.zL=function(n){String(n).includes("fullscreen error")?g.yi(n):g.ZW(n);this.YJ()}; g.Q.YJ=function(){this.disable();this.message.KJ(this.element,!0)}; g.Q.Aj=function(){Zf()===this.W.getRootNode()?this.T.start():(this.T.stop(),this.message&&this.message.hide())}; g.Q.yw=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var n=window.screen.width*.9,Z=window.screen.height*.9,F=Math.max(window.outerWidth,window.innerWidth),y=Math.max(window.outerHeight,window.innerHeight);if(F>y!==n>Z){var l=F;F=y;y=l}n>F&&Z>y&&this.YJ()}}; g.Q.disable=function(){var n=this;if(!this.message){var Z=(FH(["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.yO(this.W,{U:"div",s8:["ytp-popup","ytp-generic-popup"],Z:{role:"alert",tabindex:"0"},D:[Z[0],{U:"a",Z:{href:"https://support.google.com/youtube/answer/6276924", target:this.W.B().Pr},E8:Z[2]},Z[4]]},100,!0);this.message.hide();g.S(this,this.message);this.message.subscribe("show",function(F){n.X.u1(n.message,F)}); g.y7(this.W,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.N)();this.N=null}}; g.Q.g5=function(){var n=T8p(this.W),Z=this.W.B().J&&this.W.getPlayerSize().width<250;this.yP(n&&!Z);this.W.logVisibility(this.element,this.XJ)}; g.Q.XD=function(n){if(n){var Z=g.Vq(this.W,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.W.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(F){g.yi(F)})}else Z=g.Vq(this.W,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); n=jpP(this,n);Z=this.message?null:Z;this.W.B().j("player_tooltip_data_title_killswitch")?this.update({title:Z,icon:n}):this.update({"tooltip-title":Z,"aria-label":Z,icon:n});this.X.aX().RH()}; g.Q.IY=function(){this.message||((0,this.N)(),this.N=null);g.R.prototype.IY.call(this)}; g.Q.YV=function(n){g.R.prototype.YV.call(this,n)};g.d(UH,g.R);UH.prototype.onClick=function(){this.W.logClick(this.element);this.W.seekBy(this.N,!0);var n=this.N>0?1:-1,Z=Math.abs(this.N),F=this.W.VX().Lf;F&&F.LB(n,Z);this.X.isActive()?this.T=!0:(n=["ytp-jump-spin"],this.N<0&&n.push("backwards"),this.element.classList.add.apply(this.element.classList,g.t(n)),g.J3(this.X))};g.d(Vi,Fk);Vi.prototype.onClickCommand=function(n){g.e(n,Bxo)&&this.jO()}; Vi.prototype.updateVideoData=function(){var n,Z;this.X=(n=nZp(this))==null?void 0:(Z=n.onTap)==null?void 0:Z.innertubeCommand;Fk.prototype.Ns.call(this)}; Vi.prototype.jO=function(){var n="",Z=this.V.J,F,y=(F=nZp(this))==null?void 0:F.headerTitle;F=y?g.sg(y):"";var l;y=((l=this.W.getLoopRange())==null?void 0:l.type)==="clips";Z.length>1&&!y&&(n=this.W.getProgressState().current*1E3,l=Wrp(Z,n),n=l!=null?Z[l].title:F,l!=null&&l!==this.currentIndex&&(this.W.LR("innertubeCommand",Z[l].onActiveCommand),this.currentIndex=l));Fk.prototype.Tx.call(this,n)};g.d(x1,g.R);x1.prototype.onClick=function(){this.W.LR("onCollapseMiniplayer");this.W.logClick(this.element)}; x1.prototype.g5=function(){this.visible=!this.W.isFullscreen();this.yP(this.visible);this.W.logVisibility(this.element,this.visible&&this.Pr)}; x1.prototype.YV=function(n){g.R.prototype.YV.call(this,n);this.W.logVisibility(this.element,this.visible&&n)};g.d(r$,g.R);r$.prototype.init=function(){this.update({minvalue:this.T,maxvalue:this.S,stepvalue:this.J,slidervalue:this.N,ariaValueNow:this.N,ariaMinValue:this.T,ariaMaxValue:this.S});Hd7(this,this.N)}; r$.prototype.V=function(){u3(this,Number(this.X.value));this.X.focus()}; r$.prototype.C=function(n){if(!n.defaultPrevented){switch(n.code){case "ArrowDown":n=-this.J;break;case "ArrowUp":n=this.J;break;default:return}u3(this,Math.min(this.S,Math.max(Number((this.N+n).toFixed(2)),this.T)))}};g.d(iW,r$);iW.prototype.onVolumeChange=function(n){if(this.L)this.L=!1;else{var Z=n.volume;Z===0||n.muted?u3(this,0):u3(this,Z)}}; iW.prototype.V=function(){r$.prototype.V.call(this);this.Ns(this.N)}; iW.prototype.Tx=function(n){var Z=-n.deltaY;Z=n.deltaMode===WheelEvent.DOM_DELTA_LINE||n.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.mk(this.N+Z,0,100):g.mk(this.N+g.mk(Z/10,-10,10),0,100);Z===0?u3(this,0):u3(this,Z);this.Ns(Z);n.preventDefault();n.stopPropagation()}; iW.prototype.w5=function(n,Z){this.L=!0;n===0||Z?this.W.mute():(this.W.isMuted()&&this.W.unMute(),this.W.setVolume(n))};g.d(aBY,g.R);g.d(h9,g.R);g.Q=h9.prototype;g.Q.EA=function(){if(!this.W.Vd()){this.updateValue("dataTooltipOffsetY",-120);var n;(n=this.N)!=null&&LM(n,!0);var Z;(Z=this.N)!=null&&Z.N.stop()}}; g.Q.x5=function(){var n;(n=this.N)!=null&&n.N.start()}; g.Q.I4=function(n){this.visible=n.width>=300||this.jT;this.yP(this.visible);this.W.logVisibility(this.element,this.visible&&this.Pr)}; g.Q.Vt=function(){this.W.B().lY?this.W.isMuted()?this.W.unMute():this.W.mute():Ep(this.message,this.element,!0);this.W.logClick(this.element)}; g.Q.qGT=function(n){if(this.W.B().lY&&this.N)if(n.target===this.T){var Z;if(!this.W.Vd()||((Z=this.N)==null?0:Z.isVisible))this.Vt();else{var F;(F=this.N)!=null&&LM(F,!0)}}else{var y;(y=this.N)!=null&&LM(y,!0)}else this.Vt()}; g.Q.onVolumeChange=function(n){this.setVolume(n.volume,n.muted)}; g.Q.setVolume=function(n,Z){var F=this,y=Z?0:n/100;n=y===0?1:n>50?1:0;if(this.L!==n){var l=this.J;isNaN(l)?Bhp(this,n):kE(this.lY,function(a){Bhp(F,l+(F.L-l)*a)},250); this.L=n}y=y===0?1:0;if(this.C!==y){var m=this.w5;isNaN(m)?bSY(this,y):kE(this.Wr,function(a){bSY(F,m+(F.C-m)*a)},250); this.C=y}SVi(this,Z)}; g.Q.YV=function(n){g.R.prototype.YV.call(this,n);this.W.logVisibility(this.element,this.visible&&n)}; var HY7=["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"],dqQ=["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.d(g.NT,g.R);g.Q=g.NT.prototype;g.Q.onStateChange=function(n){this.rM(n.state)}; g.Q.rM=function(n){var Z=g.HJ(this.W.getVideoData()),F=!1;n.isOrWillBePlaying()?n=Z?4:2:g.b(n,2)?(n=3,F=Z):n=1;this.element.disabled=F;if(this.N!==n){Z=null;switch(n){case 2:Z=g.Vq(this.W,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:Z="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:Z=g.Vq(this.W,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:Z="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}n=== 3?this.W.B().j("player_tooltip_data_title_killswitch")?this.update({title:Z,icon:Z$(this,n)}):this.update({"tooltip-title":Z,icon:Z$(this,n)}):(this.W.j("player_tooltip_data_title_killswitch")?this.update({title:Z}):this.update({"tooltip-title":Z}),(Z=Z$(this,n))&&this.N&&this.N!==3?EbU(this.transition,this.element,Z):this.updateValue("icon",Z));this.tooltip.RH();this.N=n}}; g.Q.onVideoDataChange=function(){g.w4(this.element,"ytp-play-button-playlist",g.ce(this.W))}; g.Q.mL=function(n){this.W.logClick(this.element);if(this.W.getPlayerStateObject().isOrWillBePlaying())this.W.pauseVideo();else{if(this.W.isMinimized()&&this.W.getPlayerStateObject().isCued()){var Z={},F;if((F=this.W.getVideoData())==null?0:F.C)Z.cttAuthInfo={token:this.W.getVideoData().C,videoId:this.W.getVideoData().videoId};qe("direct_playback",Z);this.W.Hj().timerName="direct_playback"}this.W.playVideo()}this.W.isMinimized()&&(n==null?void 0:n.type)==="click"&&this.element.blur()}; g.Q.YV=function(n){g.R.prototype.YV.call(this,n)};g.d(g.j_,g.R);g.Q=g.j_.prototype;g.Q.onVideoDataChange=function(){gsY(this);this.V&&(this.o0(this.V),this.V=null);this.videoData=this.W.getVideoData(1);if(this.playlist=this.W.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.V=this.G(this.W,"progresssync",this.x_);this.T=fRU(this);TP(this);this.UL(this.W.Br().getPlayerSize())}; g.Q.UL=function(n){n=n===void 0?this.W.Br().getPlayerSize():n;var Z,F=((Z=this.W.getLoopRange())==null?void 0:Z.type)==="clips";Z=g.ce(this.W)||this.N&&g.d0(this.W)&&!this.W.j("web_hide_next_button")||jcP(this);var y=!this.N&&n.width<400;n=this.W.j("delhi_modern_web_player_horizontal_volume_controls")&&n.width<640;F=Z&&!F&&!y&&!n;this.yP(F);this.W.logVisibility(this.element,F)}; g.Q.onClick=function(n){this.W.logClick(this.element);var Z=!0;this.C?Z=g.Xw(n,this.W):n.preventDefault();Z&&(this.N&&this.W.getPresentingPlayerType()===5?this.W.publish("ytoprerollinternstitialnext"):this.N?(qV(this.W.Hj()),this.W.publish("playlistnextbuttonclicked",this.element),this.W.nextVideo(!0)):this.T?this.W.seekTo(0):(qV(this.W.Hj()),this.W.publish("playlistprevbuttonclicked",this.element),this.W.previousVideo(!0)))}; g.Q.x_=function(){var n=fRU(this);n!==this.T&&(this.T=n,TP(this))}; g.Q.IY=function(){this.X&&(this.X(),this.X=null);gsY(this);g.R.prototype.IY.call(this)};g.d(lp,g.R);g.Q=lp.prototype;g.Q.B2=function(n){this.Sa(n.pageX);this.zC(n.pageX+n.deltaX);Jei(this)}; g.Q.Sa=function(n){this.Ns=n-this.jT}; g.Q.zC=function(n){n-=this.jT;!isNaN(this.Ns)&&this.thumbnails.length>0&&(this.L=n-this.Ns,this.thumbnails.length>0&&this.L!==0&&(this.T=this.J+this.L,n=a38(this,this.T),this.T<=this.N/2&&this.T>=L7P(this)?(this.api.seekTo(n,!1,void 0,void 0,25),g.a$(this.w5,"transform","translateX("+(this.T-this.N/2)+"px)"),ys(this,n)):this.T=this.J))}; g.Q.v2=function(){this.Tx&&(this.Tx.GH=!0);var n=(0,g.tP)()-this.aY<300;if(Math.abs(this.L)<5&&!n){this.aY=(0,g.tP)();n=this.Ns+this.L;var Z=this.N/2-n;this.Sa(n);this.zC(n+Z);Jei(this);this.api.logClick(this.S)}Jei(this)}; g.Q.Ds=function(){mR(this,this.api.getCurrentTime())}; g.Q.play=function(n){this.api.seekTo(a38(this,this.T),void 0,void 0,void 0,26);this.api.playVideo();n&&this.api.logClick(this.playButton)}; g.Q.onExit=function(n){this.api.seekTo(this.r5,void 0,void 0,void 0,63);this.api.playVideo();n&&this.api.logClick(this.dismissButton)}; g.Q.Ln=function(n,Z){this.jT=n;this.N=Z;mR(this,this.api.getCurrentTime())}; g.Q.enable=function(){this.isEnabled||(this.isEnabled=!0,this.r5=this.api.getCurrentTime(),ys(this,this.r5),g.w4(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.lY=this.G(this.element,"wheel",this.B2),this.logVisibility(this.isEnabled))}; g.Q.disable=function(){this.isEnabled=!1;this.hide();g.w4(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.lY&&this.o0(this.lY);this.logVisibility(this.isEnabled)}; g.Q.reset=function(){this.disable();this.V=[];this.zx=!1}; g.Q.logVisibility=function(n){this.api.logVisibility(this.element,n);this.api.logVisibility(this.S,n);this.api.logVisibility(this.dismissButton,n);this.api.logVisibility(this.playButton,n)}; g.Q.IY=function(){for(;this.X.length;){var n=void 0;(n=this.X.pop())==null||n.dispose()}g.R.prototype.IY.call(this)}; g.d(Ha7,g.R);g.d(PUP,g.R);g.d(YHn,g.R);g.d(hx,g.R);hx.prototype.w1=function(n){return n==="PLAY_PROGRESS"?this.J:n==="LOAD_PROGRESS"?this.C:n==="LIVE_BUFFER"?this.S:this.T};JnY.prototype.update=function(n,Z,F,y){F=F===void 0?0:F;this.width=Z;this.V=F;this.N=Z-F-(y===void 0?0:y);this.position=g.mk(n,F,F+this.N);this.T=this.position-F;this.X=this.T/this.N};g.d(gz,g.R);g.d(g.qT,g.oS);g.Q=g.qT.prototype; g.Q.Lc=function(){var n=!1,Z=this.api.getVideoData();if(!Z)return n;this.api.V9("timedMarkerCueRange");RA(this);for(var F=g.Y(Z.lY),y=F.next();!y.done;y=F.next()){y=y.value;var l=void 0,m=(l=this.yg[y])==null?void 0:l.markerType,a=void 0;l=(a=this.yg[y])==null?void 0:a.markers;if(!l)break;if(m==="MARKER_TYPE_TIMESTAMPS"){n=g.Y(l);for(m=n.next();!m.done;m=n.next()){a=m.value;m=new gz;var D=void 0;m.title=((D=a.title)==null?void 0:D.simpleText)||"";m.timeRangeStartMillis=Number(a.startMillis);m.N=Number(a.durationMillis); var p=D=void 0;m.onActiveCommand=(p=(D=a.onActive)==null?void 0:D.innertubeCommand)!=null?p:void 0;hHY(this,m)}i1(this,this.J);n=this.J;m=this.fF;a=[];D=null;for(p=0;pL&&(D.end=L);L=EHp(L,L+w);a.push(L);D=L;m[L.id]=n[p].onActiveCommand}}this.api.y9(a);a:{n=g.Y(l);for(l=n.next();!l.done;l=n.next())if(l.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){n=!1;break a}n=!0}n&&(this.KP= this.yg[y]);n=!0}else if(m==="MARKER_TYPE_HEATMAP"){y=this.yg[y];q=L=m=p=D=a=void 0;if(y&&y.markers){l=(m=(q=y.markersMetadata)==null?void 0:(L=q.heatmapMetadata)==null?void 0:L.minHeightDp)!=null?m:0;m=(a=(p=y.markersMetadata)==null?void 0:(D=p.heatmapMetadata)==null?void 0:D.maxHeightDp)!=null?a:60;a=this.N.length;D=null;for(p=0;p=q&&J<=w&&L.push(P)}m>0&&(this.Tx.style.height=m+"px");q=this.V[p];w=L;P=l;var U=m,h=p===0;h=h===void 0?!1:h;VVp(q,U);T=w;J=q.X;h=h===void 0?!1:h;var v=1E3/T.length,V=[];V.push({x:0,y:100});for(var f=0;f0&&(D=L[L.length-1])}g.CV(this)}m=void 0;l=[];if(y=(m=y.markersDecoration)==null?void 0:m.timedMarkerDecorations)for(y=g.Y(y),m=y.next();!m.done;m=y.next())m=m.value,p=D=a=void 0,l.push({visibleTimeRangeStartMillis:(a=m.visibleTimeRangeStartMillis)!=null?a:-1,visibleTimeRangeEndMillis:(D= m.visibleTimeRangeEndMillis)!=null?D:-1,decorationTimeMillis:(p=m.decorationTimeMillis)!=null?p:NaN,label:m.label?g.sg(m.label):""});y=l;this.heatMarkersDecorations=y}}Z.Wo=this.J;g.w4(this.element,"ytp-timed-markers-enabled",n);return n}; g.Q.Ln=function(){g.CV(this);EI(this);i1(this,this.J);if(this.X){var n=g.B8(this.element).x||0;this.X.Ln(n,this.C)}}; g.Q.IDp=function(){var n=this.api.getVideoData();n&&I1P(this,n)}; g.Q.onClickCommand=function(n){if(n=g.e(n,AH)){var Z=n.key;n.isVisible&&Z&&u1(this,Z)}}; g.Q.Z6g=function(n){this.api.LR("innertubeCommand",this.fF[n.id])}; g.Q.jO=function(){EI(this);var n=this.api.getCurrentTime();(nthis.clipEnd)&&this.h3()}; g.Q.W1=function(n){if(!n.defaultPrevented){var Z=!1;switch(n.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);Z=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);Z=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);Z=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);Z=!0;break;case 38:this.api.j("enable_key_press_seek_logging")&&WO(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);Z=!0;break;case 40:this.api.j("enable_key_press_seek_logging")&&WO(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),Z=!0}Z&&n.preventDefault()}}; g.Q.ED=function(n,Z){this.updateVideoData(Z,n==="newdata")}; g.Q.I4Q=function(){this.ED("newdata",this.api.getVideoData())}; g.Q.updateVideoData=function(n,Z){Z=Z===void 0?!1:Z;var F=!!n&&n.uy();F&&(HW(n)||A5(this)?this.y_=!1:this.y_=n.allowLiveDvr,g.w4(this.api.getRootNode(),"ytp-enable-live-buffer",!(n==null||!HW(n))),I1P(this,n));Cr(this,this.api.aH());if(Z){if(F){Z=n.clipEnd;this.clipStart=n.clipStart;this.clipEnd=Z;Ik(this);for(hM(this,this.Ns,this.IW);this.V.length>0;)this.V.pop().dispose();this.heatMarkersDecorations=[];this.kV={};var y;(y=this.X)==null||y.reset();RT(this);g.w4(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Ul(this))}else this.h3();this.xk()}if(n){var l;y=((l=this.Ur)==null?void 0:l.type)==="clips";if(l=!n.isLivePlayback){l=this.api.getVideoData();Z=g.hI(l);F=RuQ(l);var m;l=Z!=null||F!=null&&F.length>0||((m=l.uT)==null?void 0:m.length)>0}if(l&&!y){m=this.api.getVideoData();y=g.hI(m);l=!1;if(y==null?0:y.markersMap){l=this.api.getVideoData();var a;l.z4=((a=y.visibleOnLoad)==null?void 0:a.key)||l.z4;a=g.Y(y.markersMap);for(y=a.next();!y.done;y=a.next())y=y.value,y.key&&y.value&&(this.kV[y.key]=y.value, y.value.onChapterRepeat&&(l.iA=y.value.onChapterRepeat));l.z4!=null&&u1(this,l.z4);l=!0}var D;if(((D=m.uT)==null?void 0:D.length)>0){D=g.YO.getState().entities;a=g.Y(m.uT);for(y=a.next();!y.done;y=a.next()){y=y.value;F=void 0;Z=(F=S0(D,"macroMarkersListEntity",y))==null?void 0:F.markersList;var p=F=void 0;if(((F=Z)==null?void 0:F.markerType)==="MARKER_TYPE_TIMESTAMPS"||((p=Z)==null?void 0:p.markerType)==="MARKER_TYPE_HEATMAP")this.yg[y]=Z}l=this.Lc()||l}!l&&(D=RuQ(m))&&(jWY(this,D),m.ud=this.N,UpT(this)); vj8(this,null);n.ET&&this.V.length===0&&(n=n.ET,D=n.key,n.isVisible&&D&&u1(this,D))}else Qc3(this),RA(this)}EI(this)}; g.Q.Tt=function(n){this.L&&!g.b(n.state,32)&&this.api.getPresentingPlayerType()!==3&&this.L.cancel();var Z;((Z=this.X)==null?0:Z.isEnabled)&&g.b(n.state,8)&&this.api.pauseVideo();n=this.api.getPresentingPlayerType()===2||!this.api.aH()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.w4(this.XH,"ytp-hide-scrubber-button",n)}; g.Q.wv=function(n){var Z=!!this.Ur!==!!n,F=this.Ur;this.Ur=n;vj8(this,F);(n==null?void 0:n.type)!=="clips"&&n||(n?(this.updateValue("clipstarticon",AZT()),this.updateValue("clipendicon",AZT()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Heo()),this.updateValue("clipendicon",r_e()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),Z&&(this.updateVideoData(this.api.getVideoData(), !0),g.CV(this)),Ik(this));hM(this,this.Ns,this.IW)}; g.Q.MHr=function(){this.api.publish("progressBarHoverStart")}; g.Q.hYr=function(n,Z,F){var y=g.B8(this.element),l=aH(this).N,m=F?F.getAttribute("data-tooltip"):void 0,a=F?F.getAttribute("data-position"):void 0,D=F?F.getAttribute("data-offset-y"):void 0;D=D?Number(D):0;a&&(n=bz(this.T,Number(F.getAttribute("data-position")),0)*l+g.B8(this.progressBar).x);this.mJ.x=n-y.x;this.mJ.y=Z-y.y;n=aH(this);F=SB(this,n);Z=0;var p;if((p=this.api.getVideoData())==null?0:HW(p))(p=this.api.getProgressState().seekableEnd)&&F>p&&(F=p,n.position=bz(this.T,p)*aH(this).N),Z=this.T.X; A5(this)&&(Z=this.T.X);p=m||g.ve(this.y_?F-this.T.N:F-Z);Z=n.position+this.un;F-=this.api.Kn();var L;if((L=this.X)==null||!L.isEnabled)if(this.api.LF()){if(this.N.length>1){L=wQ(this,this.mJ.x,!0);if(!this.Ur)for(y=0;y1)for(y=0;y0)for(L=this.mJ.x,y=g.Y(this.J),l=y.next();!l.done;l=y.next())l=l.value,a=Rx(this,l.timeRangeStartMillis/ (this.T.N*1E3),aH(this)),g.w4(l.element,"ytp-timed-marker-hover",a<=L&&a+6>=L);y=this.tooltip.scale;L=this.api.j("delhi_modern_web_player")?67:45;D=(isNaN(D)?0:D)-L*y;this.api.j("web_key_moments_markers")?this.KP?(L=Wrp(this.J,F*1E3),L=L!=null?this.J[L].title:""):(L=LC(this.N,F*1E3),L=this.N[L].title):(L=LC(this.N,F*1E3),L=this.N[L].title);L||(D+=16*y);this.tooltip.scale===.6&&(g.ry(this.api.B())?(D=this.api.Br().getPlayerSize().height-225,y=this.api.j("delhi_modern_web_player")?70:110,D=L?D+y:D+ y+16):D=L?110:126);y=LC(this.N,F*1E3);this.lY=CT8(this,F,y)?y:CT8(this,F,y+1)?y+1:-1;g.w4(this.api.getRootNode(),"ytp-progress-bar-snap",this.lY!==-1&&this.N.length>1);y=!1;l=g.Y(this.heatMarkersDecorations);for(a=l.next();!a.done;a=l.next()){a=a.value;var q=F*1E3;q>=a.visibleTimeRangeStartMillis&&q<=a.visibleTimeRangeEndMillis&&(L=a.label,p=g.ve(SB(this,n)),y=!0)}this.p6!==y&&(this.p6=y,this.api.logVisibility(this.VG,this.p6));g.w4(this.api.getRootNode(),"ytp-progress-bar-decoration",y);y=160*this.tooltip.scale* 2;l=L.length*(this.S?8.55:5.7);l=l<=y?l:y;a=l<160*this.tooltip.scale;y=3;!a&&l/2>n.position&&(y=1);!a&&l/2>this.C-n.position&&(y=2);this.api.B().J&&(D-=10);this.V.length&&this.V[0].uy&&(D-=14*(this.S?2:1),this.aY||(this.aY=!0,this.api.logVisibility(this.Tx,this.aY)));var w;if(Ul(this)&&(((w=this.X)==null?0:w.isEnabled)||this.hG>0)){var T;D-=((T=this.X)==null?0:T.isEnabled)?(this.S?135:90)-this.w5:this.hG}w=void 0;Ul(this)&&!this.api.j("web_player_hide_fine_scrubbing_edu")&&(w="Pull up for precise seeking", this.r5||(this.r5=!0,this.api.logVisibility(this.RX,this.r5)));this.tooltip.u7(Z,F,p,!!m,D,L,y,w)}else this.tooltip.u7(Z,F,p,!!m,D);g.gi(this.api.getRootNode(),"ytp-progress-bar-hover");sZ7(this)}; g.Q.LC8=function(){this.xk();g.hw(this.api.getRootNode(),"ytp-progress-bar-hover");this.aY&&(this.aY=!1,this.api.logVisibility(this.Tx,this.aY));this.r5&&(this.r5=!1,this.api.logVisibility(this.RX,this.r5));this.api.j("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.Q.ZqQ=function(n,Z){var F=g.B8(this.element);this.cV=n-F.x;Ul(this)&&this.X&&(this.X.zx?mR(this.X,this.api.getCurrentTime()):J7n(this.X),this.X.show(),g.w4(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.X.isEnabled));this.Mt&&(this.Mt.dispose(),this.Mt=null);this.c7=Z;this.ZD=this.api.getCurrentTime();this.N.length>1&&this.lY!==-1?this.api.seekTo(this.N[this.lY].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(SB(this,aH(this)),!1,void 0,void 0,7);g.gi(this.element,"ytp-drag");(this.iU= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.Q.RY8=function(){if(Ul(this)&&this.X){var n=(this.S?135:90)-this.w5;this.hG>=n*.5?(this.X.enable(),mR(this.X,this.api.getCurrentTime()),ure(this,n)):RT(this)}if(g.b(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var Z;if((Z=this.X)==null?0:Z.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.N.length>1&&this.lY!==-1)this.api.j("html5_enable_progress_bar_slide_seek_logging")&&WO(this,this.ZD,this.N[this.lY].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.N[this.lY].startTime/1E3,void 0,void 0,void 0,7);else{n=SB(this,aH(this));this.api.j("html5_enable_progress_bar_slide_seek_logging")&&WO(this,this.ZD,n,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(n,void 0,void 0,void 0,7);Z=g.Y(this.heatMarkersDecorations);for(var F=Z.next();!F.done;F=Z.next())F=F.value,n*1E3>=F.visibleTimeRangeStartMillis&&n*1E3<=F.visibleTimeRangeEndMillis&& this.api.logClick(this.VG)}g.hw(this.element,"ytp-drag");this.zx&&(this.Wr.src=this.zx);this.iU&&!g.b(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.Q.xjg=function(n,Z){var F=this,y=aH(this),l=SB(this,y);this.api.Br().ou||(y.position>this.cV+2?this.N1&&(this.Wr.src=this.N1):y.position1);this.yP(n&&this.W.Br().getPlayerSize().width>=400);this.W.logVisibility(this.element,this.XJ);var Z=1;n&&this.isActive()&&(Z=2);if(this.N!==Z){this.N=Z;n=this.W.j("delhi_modern_web_player_icons");switch(Z){case 1:this.updateValue("icon",n?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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"}}]}:{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{U:"path",Tu:!0,Z:{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", n?{U:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{U:"path",Z:{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.pvn())}g.w4(this.element,"ytp-remote-button-active",this.isActive())}}; Ga.prototype.X=function(){if(this.W.getOption("remote","quickCast"))this.W.setOption("remote","quickCast",!0);else{var n=this.Fp,Z=this.element;if(n.I6())n.jG();else{n.initialize();a:{var F=g.Y(n.vI.items);for(var y=F.next();!y.done;y=F.next())if(y=y.value,y.priority===1){F=y;break a}F=null}F&&(F.open(),n.KJ(Z));n.KJ(Z)}}this.W.logClick(this.element)};g.d(W8,g.R);W8.prototype.N=function(n){var Z=this.W.B(),F=400;Z.C?F=300:Z.J&&(F=200);n=this.X&&n.width>=F;this.yP(n);this.W.logVisibility(this.element,n)}; W8.prototype.T=function(){if(this.Fp.XJ)this.Fp.jG();else{var n=g.A8(this.W.iN());n&&!n.loaded&&(n.G5("tracklist",{includeAsr:!0}).length||n.load());this.W.logClick(this.element);this.Fp.KJ(this.element)}}; W8.prototype.updateBadge=function(){var n=this.W.isHdr(),Z=this.W.getPresentingPlayerType(),F=Z!==2&&Z!==3,y=g.sl(this.W),l=F&&!!g.PL(this.W.iN());Z=l&&y.displayMode===1;y=l&&y.displayMode===2;F=(l=Z||y)||!F?null:this.W.getPlaybackQuality();g.w4(this.element,"ytp-hdr-quality-badge",n);g.w4(this.element,"ytp-hd-quality-badge",!n&&(F==="hd1080"||F==="hd1440"));g.w4(this.element,"ytp-4k-quality-badge",!n&&F==="hd2160");g.w4(this.element,"ytp-5k-quality-badge",!n&&F==="hd2880");g.w4(this.element,"ytp-8k-quality-badge", !n&&F==="highres");g.w4(this.element,"ytp-3d-badge-grey",!n&&l&&Z);g.w4(this.element,"ytp-3d-badge",!n&&l&&y)};g.d(x2,g.$K);g.Q=x2.prototype;g.Q.g5=function(){var n=this.W.getAvailableAudioTracks();if(n.length>1){this.fK(g.Yn(n,this.oS));this.tracks=g.hh(n,this.oS,this);this.countLabel.setContent(n.length?" ("+n.length+")":"");this.publish("size-change");n=this.oS(this.W.getAudioTrack());this.gB(n);if(this.W.j("html5_enable_new_audio_settings_menu")){var Z;(Z=this.N)!=null&&Z.setContent(n.toString())}this.enable(!0)}else{if(this.W.j("html5_enable_new_audio_settings_menu")){var F;(F=this.N)!=null&&F.setContent("")}this.enable(!1)}}; g.Q.LN=function(n){g.$K.prototype.LN.call(this,n);this.W.setAudioTrack(this.tracks[n]);this.Fp.v1()}; g.Q.oS=function(n){return n.toString()}; g.Q.U7=function(n){this.W.j("html5_enable_new_audio_settings_menu")?this.N&&(n?this.N.Dx(this):this.N.EG(this)):g.$K.prototype.U7.call(this,n)}; g.Q.onClick=function(){this.W.logClick(this.element)};g.d(Gb,g.dV);g.Q=Gb.prototype;g.Q.V_=function(){this.W.V_()}; g.Q.open=function(){this.fJ.pm()>0&&g.$H(this.Fp,this.fJ)}; g.Q.lP=function(){this.fJ.pm()>0&&this.W.getPresentingPlayerType()!==2&&this.W.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.Q.W1=function(n){n.defaultPrevented||(this.open(),n.preventDefault())}; g.Q.Dx=function(n){this.fJ.Dx(n)}; g.Q.EG=function(n){this.fJ.EG(n)};g.d(cf,c5); cf.prototype.lP=function(){var n=this.W.getPresentingPlayerType();if(n!==2&&n!==3&&g.d0(this.W))this.N||(this.Fp.Dx(this),this.N=!0,this.X.push(this.G(this.W,"videodatachange",this.lP)),this.X.push(this.G(this.W,"videoplayerreset",this.lP)),this.X.push(this.G(this.W,"onPlaylistUpdate",this.lP)),this.X.push(this.G(this.W,"autonavchange",this.T)),n=this.W.getVideoData(),this.T(n.autonavState),this.W.logVisibility(this.element,this.N));else if(this.N){this.Fp.EG(this);this.N=!1;n=g.Y(this.X);for(var Z= n.next();!Z.done;Z=n.next())this.o0(Z.value)}}; cf.prototype.T=function(n){VS(this,n!==1)}; cf.prototype.onSelect=function(n){this.W.BJ(n?2:1);this.N&&(this.W.logVisibility(this.element,this.N),this.W.logClick(this.element))}; cf.prototype.IY=function(){this.N&&this.Fp.EG(this);c5.prototype.IY.call(this)};g.d($P,g.dV);$P.prototype.onClick=function(n){n.preventDefault();var Z,F;(Z=g.PZ(this.W))==null||(F=Z.zj())==null||F.jG();var y,l;(y=g.PZ(this.W))==null||(l=y.h9())==null||l.KJ(n.target)};g.d(GZ,g.$K);g.Q=GZ.prototype; g.Q.lP=function(){var n=this.W.getPresentingPlayerType();if(n!==2&&n!==3){this.Tx=this.W.Mp();var Z=this.W.getAvailableQualityLevels();if(this.N){this.X={};n=g.dc(this.W,"getAvailableQualityData",[]);n=g.Y(n);for(var F=n.next();!F.done;F=n.next())F=F.value,this.X[F.qualityLabel]=F;n=Object.keys(this.X);Z[Z.length-1]==="auto"&&n.push("auto");this.w5=new Set(Z)}else if(this.T){F=g.dc(this.W,"getAvailableQualityData",[]);n=[];F=g.Y(F);for(var y=F.next();!y.done;y=F.next())y=y.value,this.C[y.quality]= y,y.quality&&n.push(y.quality);Z[Z.length-1]==="auto"&&n.push("auto")}else n=Z;g.ozj(this.W)&&this.W.FV()&&n.unshift("missing-qualities");Z=this.W.app.Z4();F=Z.getVideoData();if(!F.X||!F.X.video||F.X.video.qualityOrdinal<1080||F.GG)Z=!1;else{y=/^qsa/.test(F.clientPlaybackNonce);var l="r";F.X.id.indexOf(";")>=0&&(y=/^[a-p]/.test(F.clientPlaybackNonce),l="x");y?(Z.Xp("iqss",{trigger:l},!0),Z=!0):Z=!1}Z&&n.unshift("inline-survey");this.fK(n);Z=this.W.getVideoData().cotn?!0:!1;F=this.L.Yd();F=!g.ry(this.W.B())|| !(Z===void 0?0:Z)||!(F===void 0||F);Z=this.fJ;F=F===void 0?!1:F;Z.f8&&g.w4(Z.Vg("ytp-panel-footer"),"ytp-panel-hide-footer",F===void 0?!1:F);if(n.length){this.VK();this.enable(!0);return}}this.enable(!1)}; g.Q.VK=function(){if(this.N){var n=this.W.getPreferredQuality();this.w5.has(n)&&(this.V=this.W.getPlaybackQuality(),this.J=this.W.getPlaybackQualityLabel(),n==="auto"?(this.gB(n),this.setContent(this.R7(n))):this.gB(this.J))}else n=this.W.getPreferredQuality(),this.options[n]&&(this.V=this.W.getPlaybackQuality(),this.gB(n),n==="auto"&&this.setContent(this.R7(n)))}; g.Q.LN=function(n){if(n!=="missing-qualities"){g.$K.prototype.LN.call(this,n);var Z=this.N?this.X[n]:this.C[n];var F=Z==null?void 0:Z.quality,y=Z==null?void 0:Z.formatId,l=Z==null?void 0:Z.paygatedQualityDetails;Z=l==null?void 0:l.endpoint;if(l){var m;l=(m=this.options[n])==null?void 0:m.element;this.W.logClick(l)}if(this.N){var a,D;if((a=g.e(Z,g.zBQ))==null?0:(D=a.popup)==null?0:D.notificationActionRenderer)this.W.LR("innertubeCommand",Z);else if(Z){this.W.LR("innertubeCommand",Z);return}y?this.W.setPlaybackQuality(F, y):this.W.setPlaybackQuality(F)}else{if(this.T){var p,L;if((p=g.e(Z,g.zBQ))==null?0:(L=p.popup)==null?0:L.notificationActionRenderer)this.W.LR("innertubeCommand",Z);else if(Z){this.W.LR("innertubeCommand",Z);return}}this.W.setPlaybackQuality(n)}this.Fp.jG();this.lP()}}; g.Q.open=function(){for(var n=g.Y(Object.values(this.options)),Z=n.next();!Z.done;Z=n.next()){Z=Z.value;var F=void 0;this.W.hasVe((F=Z)==null?void 0:F.element)&&(F=void 0,this.W.logVisibility((F=Z)==null?void 0:F.element,!0))}g.$K.prototype.open.call(this);this.W.logClick(this.element)}; g.Q.O5=function(n,Z,F){var y=this;if(n==="missing-qualities")return new g.dV({U:"a",s8:["ytp-menuitem"],Z:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.W.B().Pr,tabindex:"0",role:"menuitemradio"},D:[{U:"div",s8:["ytp-menuitem-label"],E8:"{{label}}"}]},Z,this.R7(n));if(n!=="inline-survey"){var l,m=(l=this.N?this.X[n]:this.C[n])==null?void 0:l.paygatedQualityDetails;l=m==null?void 0:m.veType;m=m==null?void 0:m.trackingParams;Z=g.$K.prototype.O5.call(this,n,Z,F);m?(this.W.createServerVe(Z.element, this,!0),this.W.setTrackingParams(Z.element,m)):l&&this.W.createClientVe(Z.element,this,l,!0);return Z}n=[{U:"span",E8:"Looks good?"}];F=g.Y([!0,!1]);m=F.next();for(l={};!m.done;l={C_:void 0},m=F.next())l.C_=m.value,m=new g.R({U:"span",K:"ytp-menuitem-inline-survey-response",D:[l.C_?W4o():rf7()],Z:{tabindex:"0",role:"button"}}),m.listen("click",function(a){return function(){var D=y.W.app.Z4();D.Xp("iqsr",{tu:a.C_});D.getVideoData().GG=!0;y.Fp.jG();y.lP()}}(l)),n.push(m); return new g.dV({U:"div",K:"ytp-menuitem",Z:{"aria-disabled":"true"},D:[{U:"div",s8:["ytp-menuitem-label"],D:n}]},Z)}; g.Q.R7=function(n,Z){Z=Z===void 0?!1:Z;if(n==="missing-qualities")return{U:"div",E8:"Missing options?"};if(n==="inline-survey")return"";var F=this.T||this.N?[$Sf(this,n,Z,!1)]:[WWK(this,n)];var y=this.W.getPreferredQuality();Z||y!=="auto"||n!=="auto"||(F.push(" "),this.N?F.push($Sf(this,this.J,Z,!0,["ytp-menu-label-secondary"])):this.T?F.push($Sf(this,this.V,Z,!0,["ytp-menu-label-secondary"])):F.push(WWK(this,this.V,["ytp-menu-label-secondary"])));return{U:"div",D:F}};g.d(X3,r$);X3.prototype.V=function(){r$.prototype.V.call(this);this.L&&cH(this)}; X3.prototype.Wr=function(){this.Ns()}; X3.prototype.w5=function(){this.W.setPlaybackRate(this.N,!0)}; X3.prototype.C=function(n){r$.prototype.C.call(this,n);this.Ns();cH(this);n.preventDefault()};g.d(b4,g.R);g.Q=b4.prototype;g.Q.init=function(){this.JC(this.N);this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.T)}; g.Q.A4=function(n){if(!n.defaultPrevented){switch(n.keyCode){case 37:case 40:var Z=-this.J;break;case 39:case 38:Z=this.J;break;default:return}this.JC(this.N+Z);n.preventDefault()}}; g.Q.qo=function(n){var Z=this.N;Z+=(n.deltaX||-n.deltaY)<0?-this.L:this.L;this.JC(Z);n.preventDefault()}; g.Q.dD=function(n){n=(n-g.B8(this.V).x)/this.Ns*this.range+this.X;this.JC(n)}; g.Q.JC=function(n,Z){Z=Z===void 0?"":Z;n=g.mk(n,this.X,this.T);Z===""&&(Z=n.toString());this.updateValue("valuenow",n);this.updateValue("valuetext",Z);this.Tx.style.left=(n-this.X)/this.range*(this.Ns-this.zx)+"px";this.N=n}; g.Q.focus=function(){this.lY.focus()};g.d(pn,b4);pn.prototype.w5=function(){this.W.setPlaybackRate(this.N,!0)}; pn.prototype.JC=function(n){b4.prototype.JC.call(this,n,LLU(this,n).toString());this.S&&(DU(this),this.Wr())}; pn.prototype.updateValues=function(){var n=this.W.getPlaybackRate();LLU(this,this.N)!==n&&(this.JC(n),DU(this))};g.d(PO,g.oS);PO.prototype.focus=function(){this.N.focus()};g.d(QX,JL);g.d(z1Q,g.$K);g.Q=z1Q.prototype;g.Q.onVideoDataChange=function(n,Z){n==="dataloaded"&&BqK(Z)&&(n=this.W.getAvailablePlaybackRates(),g.yW(this.V,n)||(this.V=n,this.T.dispose(),this.T=new X3(this.W)),this.g5())}; g.Q.R7=function(n){return n==="1"?"Normal":n.toLocaleString()}; g.Q.g5=function(){var n,Z=(n=this.W.getVideoData())==null?void 0:n.Cq();n=this.W.getPresentingPlayerType(Z);this.enable(n!==2&&n!==3);c8Y(this)}; g.Q.fK=function(n){g.$K.prototype.fK.call(this,n);this.T&&this.T.X.focus()}; g.Q.U7=function(n){g.$K.prototype.U7.call(this,n);n?(this.Tx=this.G(this.W,"onPlaybackRateChange",this.onPlaybackRateChange),c8Y(this),sqo(this,this.W.getPlaybackRate()),this.W.j("enable_web_premium_varispeed_upsell")&&(this.W.logVisibility(this.element,!0),this.X&&this.W.logVisibility(this.L.element,!0))):(this.o0(this.Tx),this.Tx=null)}; g.Q.onPlaybackRateChange=function(n){var Z=this.W.getPlaybackRate();!this.C&&this.V.includes(Z)||JQi(this,Z);sqo(this,n)}; g.Q.O5=function(n,Z,F){return n===this.N&&OwK(this.W)?g.$K.prototype.O5.call(this,n,Z,F,{U:"div",K:"ytp-speed-slider-menu-footer",D:[this.T]}):n===this.X&&Y8U(this.W,this.w5)?Tui(this,n,Z,F):g.$K.prototype.O5.call(this,n,Z,F)}; g.Q.LN=function(n){g.$K.prototype.LN.call(this,n);n===this.X?(this.W.logClick(this.L.element),this.W.LR("innertubeCommand",this.w5)):n===this.N?this.W.setPlaybackRate(this.J,!0):this.W.setPlaybackRate(Number(n),!0);(!OwK(this.W)||n!==this.N&&n!==this.X)&&this.Fp.v1()}; g.Q.I2=function(n){var Z=n===this.N;this.C=!1;Z&&Um(this.W)&&!OwK(this.W)?(n=new QX(this.W),g.$H(this.Fp,n)):g.$K.prototype.I2.call(this,n)};g.d(H0,g.$K);g.Q=H0.prototype;g.Q.gB=function(n){g.$K.prototype.gB.call(this,n)}; g.Q.bF=function(n){return n.option.toString()}; g.Q.getOption=function(n){return this.settings[n]}; g.Q.R7=function(n){return this.getOption(n).text||""}; g.Q.LN=function(n){g.$K.prototype.LN.call(this,n);this.publish("settingChange",this.setting,this.settings[n].option)};g.d(M9,g.ko);M9.prototype.Ng=function(n){for(var Z=g.Y(Object.keys(n)),F=Z.next();!F.done;F=Z.next()){var y=F.value;if(F=this.x8[y]){var l=n[y].toString();y=!!n[y+"Override"];F.options[l]&&(F.gB(l),F.X.element.setAttribute("aria-checked",String(!y)),F.N.element.setAttribute("aria-checked",String(y)))}}}; M9.prototype.CK=function(n,Z){this.publish("settingChange",n,Z)};g.d(z1,g.$K);z1.prototype.N=function(n){return n.languageCode}; z1.prototype.R7=function(n){return this.languages[n].languageName||""}; z1.prototype.LN=function(n){this.publish("select",n);this.W.logClick(this.element);g.vJ(this.Fp)};g.d(Wn8,g.$K);g.Q=Wn8.prototype;g.Q.qJ=function(n){return g.Zc(n)?"__off__":n.displayName}; g.Q.R7=function(n){return n==="__off__"?"Off":n==="__translate__"?"Auto-translate":n==="__contribute__"?"Add subtitles/CC":n==="__correction__"?"Suggest caption corrections":(n==="__off__"?{}:this.tracks[n]).displayName}; g.Q.LN=function(n){if(n==="__translate__")this.N.open();else if(n==="__contribute__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var Z=g.kme(this.W.B(),this.W.getVideoData());g.Em(Z)}else if(n==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var F=pwf(this);Dr(this,F);g.$K.prototype.LN.call(this,this.qJ(F));var y,l;F=(Z=this.W.getVideoData().getPlayerResponse())==null?void 0:(y=Z.captions)==null?void 0:(l=y.playerCaptionsTracklistRenderer)== null?void 0:l.openTranscriptCommand;this.W.LR("innertubeCommand",F);this.Fp.v1();this.X&&this.W.logClick(this.X)}else{if(n==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();Z=pwf(this);Dr(this,Z);g.$K.prototype.LN.call(this,this.qJ(Z));var m,a;Z=(F=this.W.getVideoData().getPlayerResponse())==null?void 0:(m=F.captions)==null?void 0:(a=m.playerCaptionsTracklistRenderer)==null?void 0:a.openTranscriptCommand;this.W.LR("innertubeCommand",Z)}else this.W.logClick(this.element), Dr(this,n==="__off__"?{}:this.tracks[n]),g.$K.prototype.LN.call(this,n);this.Fp.v1()}}; g.Q.g5=function(){var n=this.W.getOptions();n=n&&n.indexOf("captions")!==-1;var Z=this.W.getVideoData(),F=Z&&Z.Xo,y,l=!((y=this.W.getVideoData())==null||!g.ww(y));y={};if(n||F){var m;if(n){var a=this.W.getOption("captions","track");y=this.W.getOption("captions","tracklist",{includeAsr:!0});var D=l?[]:this.W.getOption("captions","translationLanguages");this.tracks=g.hh(y,this.qJ,this);l=g.Yn(y,this.qJ);var p,L;pwf(this)&&((m=Z.getPlayerResponse())==null?0:(p=m.captions)==null?0:(L=p.playerCaptionsTracklistRenderer)== null?0:L.openTranscriptCommand)&&l.push("__correction__");if(D.length&&!g.Zc(a)){if((m=a.translationLanguage)&&m.languageName){var q=m.languageName;m=D.findIndex(function(w){return w.languageName===q}); KZ8(D,m)}ovQ(this.N,D);l.push("__translate__")}m=this.qJ(a)}else this.tracks={},l=[],m="__off__";l.unshift("__off__");this.tracks.__off__={};F&&l.unshift("__contribute__");this.tracks[m]||(this.tracks[m]=a,l.push(m));this.fK(l);this.gB(m);a&&a.translationLanguage?this.N.gB(this.N.N(a.translationLanguage)):zu7(this.N);n&&this.T.Ng(this.W.getSubtitlesUserSettings());this.countLabel.setContent(y&&y.length?" ("+y.length+")":"");this.publish("size-change");this.W.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.Q.Y_=function(n){var Z=this.W.getOption("captions","track");Z=g.nO(Z);Z.translationLanguage=this.N.languages[n];Dr(this,Z)}; g.Q.CK=function(n,Z){if(n==="reset")this.W.resetSubtitlesUserSettings();else{var F={};F[n]=Z;this.W.updateSubtitlesUserSettings(F)}f4U(this,!0);this.V.start();this.T.Ng(this.W.getSubtitlesUserSettings())}; g.Q.O6Y=function(n){n||g.fD(this.V)}; g.Q.IY=function(){g.fD(this.V);g.$K.prototype.IY.call(this)}; g.Q.open=function(){g.$K.prototype.open.call(this);this.options.__correction__&&!this.X&&(this.X=this.options.__correction__.element,this.W.createClientVe(this.X,this,167341),this.W.logVisibility(this.X,!0))};g.d(L3,g.MV);g.Q=L3.prototype; g.Q.initialize=function(){if(!this.isInitialized){var n=this.W.B();this.isInitialized=!0;try{this.Xv=new GZ(this.W,this)}catch(F){g.yi(Error("QualityMenuItem creation failed"))}g.S(this,this.Xv);var Z=new Wn8(this.W,this);g.S(this,Z);n.enableSpeedOptions&&(Z=new z1Q(this.W,this),g.S(this,Z));(g.R6(n)||n.C)&&(n.X||n.aY)&&(Z=new $P(this.W,this),g.S(this,Z));n.R0&&!n.j("web_player_move_autonav_toggle")&&(Z=new cf(this.W,this),g.S(this,Z));n.j("html5_enable_new_audio_settings_menu")?(this.hq=new Gb(this.W, this),g.S(this,this.hq)):(n=new x2(this.W,this),g.S(this,n));this.W.publish("settingsMenuInitialized");JU(this.settingsButton,this.vI.pm())}}; g.Q.Dx=function(n){this.initialize();this.vI.Dx(n);JU(this.settingsButton,this.vI.pm())}; g.Q.EG=function(n){this.CR()||(this.XJ&&this.vI.pm()<=1&&this.hide(),this.vI.EG(n),JU(this.settingsButton,this.vI.pm()))}; g.Q.KJ=function(n){this.initialize();this.vI.pm()>0&&g.MV.prototype.KJ.call(this,n)}; g.Q.jG=function(){this.Vh?this.Vh=!1:g.MV.prototype.jG.call(this)}; g.Q.show=function(){g.MV.prototype.show.call(this);g.gi(this.W.getRootNode(),"ytp-settings-shown")}; g.Q.hide=function(){g.MV.prototype.hide.call(this);g.hw(this.W.getRootNode(),"ytp-settings-shown")}; g.Q.TU=function(n){this.W.logVisibility(this.element,n);this.W.publish("settingsMenuVisibilityChanged",n)}; g.Q.V_=function(){this.W.V_()};g.d(f3,g.R);g.Q=f3.prototype;g.Q.onClick=function(){if(AX(this)&&(this.W.toggleSubtitles(),this.W.logClick(this.element),!this.isEnabled())){var n=!1,Z=g.mM().Wx(65);g.ry(this.W.B())&&Z!=null&&(n=!Z);n&&this.W.B().j("web_player_nitrate_promo_tooltip")&&this.W.publish("showpromotooltip",this.element)}}; g.Q.Lwr=function(n){var Z,F;(Z=g.PZ(this.W))==null||(F=Z.zj())==null||F.KJ(n)}; g.Q.isEnabled=function(){var n=this.W.getOption("captions","track");return!(!n||!n.displayName)}; g.Q.g5=function(){var n=AX(this),Z=300;this.W.B().J&&(Z=480);this.W.j("delhi_modern_web_player_icons")&&this.updateValue("icon",DVn(this));if(this.W.B().C){this.updateValue("title",g.Vq(this.W,"Subtitles/closed captions","c"));this.update({"tooltip-title":g.Vq(this.W,"Subtitles/closed captions","c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var F=n}else{if(n)(F=this.Vg("ytp-subtitles-button-icon"))==null||F.setAttribute("fill-opacity","1"),this.W.B().j("player_tooltip_data_title_killswitch")? this.updateValue("title",g.Vq(this.W,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.Vq(this.W,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{if(this.W.j("delhi_modern_web_player_icons")){var y;(y=this.Vg("ytp-subtitles-button-icon"))==null||y.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var l;(l=this.Vg("ytp-subtitles-button-icon"))==null||l.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"})}F=!0}this.tooltip.RH();F=F&&this.W.Br().getPlayerSize().width>=Z;this.yP(F);this.W.logVisibility(this.element,F);n?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.Q.YV=function(n){g.R.prototype.YV.call(this,n)};g.d(g.wt,g.R);g.Q=g.wt.prototype;g.Q.canShowCountdown=function(){return!ag(this)&&!Kl(this)}; g.Q.jO=function(){var n=this.api.Br().getPlayerSize().width,Z=this.Ns;this.api.B().J&&(Z=400);Z=n>=Z&&(!Kl(this)||!g.b(this.api.getPlayerStateObject(),64));this.yP(Z);g.w4(this.element,"ytp-time-display-allow-autohide",Z&&n<400);n=this.api.getProgressState();if(Z){var F=this.api.getPresentingPlayerType();Z=this.api.getCurrentTime(F,!1);this.X&&(Z-=n.airingStart);ag(this)&&(Z-=this.Ur.startTimeMs/1E3);this.canShowCountdown()&&this.T&&(Z-=this.api.getDuration(F,!1));var y=g.ve(Z);this.V!==y&&(this.updateValue("currenttime", y),this.V=y);F=ag(this)?(this.Ur.endTimeMs-this.Ur.startTimeMs)/1E3:this.api.getDuration(F,!1);y=g.ve(F);this.S!==y&&(this.updateValue("duration",y),this.S=y,Z&&(Z=g.xq("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.ve(Z,!0),DURATION:g.ve(F,!0)}),this.updateValue("timeDisplayAriaLabel",Z)))}dse(this,n.isAtLiveHead);VAY(this,this.api.getLoopRange())}; g.Q.onLoopRangeChange=function(n){var Z=this.Ur!==n;this.Ur=n;Z&&(this.jO(),gD(this))}; g.Q.dt4=function(){this.api.setLoopRange(null)}; g.Q.W04=function(){this.T=!this.T;this.jO()}; g.Q.onVideoDataChange=function(n,Z,F){this.updateVideoData((this.api.B().j("enable_topsoil_wta_for_halftime")||this.api.B().j("enable_topsoil_wta_for_halftime_live_infra"))&&F===2?this.api.getVideoData(1):Z);this.jO();gD(this)}; g.Q.updateVideoData=function(n){this.GL=n.isLivePlayback&&!n.Pf;this.X=HW(n);this.isPremiere=n.isPremiere;var Z,F,y;this.liveIndicatorText=(n=(Z=n.getWatchNextResponse())==null?void 0:(F=Z.playerOverlays)==null?void 0:(y=F.playerOverlayRenderer)==null?void 0:y.liveIndicatorText)?oK(n):null;g.w4(this.element,"ytp-live",Kl(this));this.api.j("delhi_modern_web_player")&&this.Vg("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.Q.onClick=function(n){n.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.Q.IY=function(){this.N&&this.N();g.R.prototype.IY.call(this)};g.d(EH,g.R);g.Q=EH.prototype;g.Q.Aj=function(){p$o(this)}; g.Q.m1T=function(n){$OT(this,n);this.L&&p$o(this)}; g.Q.P5=function(n){if(!n.defaultPrevented){var Z=n.keyCode,F=null;Z===37?F=this.volume-5:Z===39?F=this.volume+5:Z===36?F=0:Z===35&&(F=100);F!==null&&(F=g.mk(F,0,100),F===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(F)),n.preventDefault())}}; g.Q.Q8=function(n){var Z=n.deltaX||-n.deltaY;n.deltaMode?this.api.setVolume(this.volume+(Z<0?-10:10)):this.api.setVolume(this.volume+g.mk(Z/10,-10,10));n.preventDefault();var F,y;((F=this.api.B())==null?0:(y=F.getWebPlayerContextConfig())==null?0:y.enableFullscreenComponentsFeature)&&n.stopPropagation()}; g.Q.JV8=function(){RR(this,this.N,!0,this.X,this.api.Vd());this.Ns=this.volume;this.api.isMuted()&&this.api.unMute()}; g.Q.F1=function(n){var Z=this.T?78:52,F=this.T?18:12;n-=g.B8(this.J).x;F=g.mk((n-F/2)/(Z-F),0,1);this.L&&(F=g.mk(n/Z,0,1));Z=F;Z=this.api.j("web_player_non_linear_volume_controls")?Z<=.25?Z/.25*.1:.1+(Z-.25)/.75*.9:Z;this.api.setVolume(Z*100)}; g.Q.eNR=function(){RR(this,this.N,!1,this.X,this.api.Vd());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Ns))}; g.Q.onVolumeChange=function(n){gP(this,n.volume,n.muted)}; g.Q.Kb=function(){RR(this,this.N,this.isDragging,this.X,this.api.Vd())}; g.Q.IY=function(){g.R.prototype.IY.call(this);g.hw(this.C,"ytp-volume-slider-active")};g.d(rt,g.R); rt.prototype.onVideoDataChange=function(){var n=this.api.B();this.Ln();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).vV;this.yP(this.visible);this.api.logVisibility(this.element,this.visible&&this.Pr);if(this.visible){var Z=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",Z)}n.T&&(this.N&&(this.o0(this.N),this.N=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.gi(this.element,"no-link")); Z=this.api.B();n=this.api.getVideoData();var F="";Z.T||(Z=g.bc(Z),Z.indexOf("www.")===0&&(Z=Z.substring(4)),F=g.tG(n)?"Watch on YouTube Music":Z==="youtube.com"?"Watch on YouTube":g.xq("Watch on $WEBSITE",{WEBSITE:Z}));this.api.j("player_tooltip_data_title_killswitch")?this.updateValue("title",F):this.updateValue("tooltip-title",F)}; rt.prototype.onClick=function(n){this.api.j("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Z=this.api.B(),F=this.api.getVideoUrl(!g.OC(n),!1,!0,!0);if(g.R6(Z)){var y={};g.R6(Z)&&g.dc(this.api,"addEmbedsConversionTrackingParams",[y]);F=g.pQ(F,y)}g.sq(F,this.api,n);this.api.j("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; rt.prototype.Ln=function(){var n={U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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 "}}]}, Z=28666,F=this.api.getVideoData();this.api.isEmbedsShortsMode()?n={U:"svg",Z:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},D:[{U:"path",Z:{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.tG(F)&&(n={U:"svg",Z:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},D:[{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}}]},Z=216163);g.tG(F)?g.gi(this.element,"ytp-youtube-music-button"):g.hw(this.element,"ytp-youtube-music-button");n.Z=Object.assign({},n.Z,{"aria-hidden":"true"});this.updateValue("logoSvg",n);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,Z,!0)}; rt.prototype.YV=function(n){g.R.prototype.YV.call(this,n);this.api.logVisibility(this.element,this.visible&&n)};g.d(gt,g.IS);g.Q=gt.prototype;g.Q.onProgress=function(){if(this.W.j("web_player_max_seekable_on_ended")||!g.b(this.W.getPlayerStateObject(),2))PN(this.rO),this.progressBar.jO(),this.QT.jO()}; g.Q.Cz=function(){this.LC();if(PN(this.rO))this.progressBar.xk();else this.onProgress()}; g.Q.N7=function(){this.onProgress();this.L.start()}; g.Q.LC=function(){var n;if(n=!this.W.B().X){n=this.progressBar;var Z=2*g.Mk()*n.C,F=n.T;n=(F.N-F.X)*1E3/n.api.getPlaybackRate()/Z<300}n=n&&this.W.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;Z=!n;PN(this.rO)&&(n=Z=!1);Z?this.Tx||(this.Tx=this.G(this.W,"progresssync",this.onProgress)):this.Tx&&(this.o0(this.Tx),this.Tx=null);n?this.L.isActive()||this.L.start():this.L.stop()}; g.Q.Ln=function(){var n=this.W.AX(),Z=this.W.Br().getPlayerSize(),F=this.W.Br().ou,y=cS(this),l=Q_i(this),m=Math.max(Z.width-y*2,100);if(this.hG!==Z.width||this.xi!==n||this.W.j("web_player_rtr_ctrls")&&this.DY!==F)this.hG=Z.width,this.xi=n,this.DY=F,this.N.element.style.width=l+"px",this.N.element.style.left=y+"px",g.fm7(this.progressBar,y,l,n),this.W.aX().iF=l;F=this.T;m=Math.min(570*(n?1.5:1),m);n=Math.min(413*(n?1.5:1),Math.round((Z.height-Utj(this))*.82));F.maxWidth=m;F.maxHeight=n;F.eJ();this.LC(); this.Yi&&xsp(this.fR,Z.height)}; g.Q.onVideoDataChange=function(){var n=this.W.getVideoData();this.jT.style.background=n.vV?n.mq:"";this.Ns&&uRK(this.Ns,n.showSeekingControls);this.Pr&&uRK(this.Pr,n.showSeekingControls)}; g.Q.w1=function(){return this.N.element};g.d(DE7,zO);g.Q=DE7.prototype;g.Q.sT=function(n){n.target===this.dismissButton.element?this.W.j("web_player_misc_bugfix_a")&&this.N&&zZe(FE(),this.N):(this.onClickCommand&&(this.W.j("web_player_misc_bugfix_a")&&this.ZL(!1),this.W.LR("innertubeCommand",this.onClickCommand)),this.Ai())}; g.Q.Ai=function(){this.enabled=!1;this.L.hide()}; g.Q.onVideoDataChange=function(n,Z){n==="dataloaded"&&FN7(this);n=[];var F,y,l,m;if(Z=(m=g.e((F=Z.getWatchNextResponse())==null?void 0:(y=F.playerOverlays)==null?void 0:(l=y.playerOverlayRenderer)==null?void 0:l.suggestedActionsRenderer,P7G))==null?void 0:m.suggestedActions)for(F=g.Y(Z),y=F.next();!y.done;y=F.next())(y=g.e(y.value,JPd))&&g.e(y.trigger,oU7)&&n.push(y);if(n.length!==0){F=[];n=g.Y(n);for(y=n.next();!y.done;y=n.next())if(y=y.value,l=g.e(y.trigger,oU7)){m=(m=y.title)?g.sg(m):"View Chapters"; Z=l.timeRangeStartMillis;var a=l.timeRangeEndMillis;l=l.onlyTriggersOnPlayerPause;y.tapCommand&&(Z!=null&&a!=null&&F.push(new g.wg(Z,a,{priority:9,namespace:"suggested_action_button_visible",id:m})),Z!=null&&a!=null||l)&&(this.suggestedActions[m]=y)}this.W.y9(F)}}; g.Q.e3=function(){return this.enabled}; g.Q.TU=function(){if(this.enabled){if(this.r5.start(),!this.T&&this.N&&this.W.j("web_player_misc_bugfix_a")&&(rq(FE(),this.N),this.T=!0),this.text&&this.W.j("web_player_misc_bugfix_a")){var n,Z=(n=this.suggestedActions[this.text])==null?void 0:n.rendererContext;if(n=g.e(Z,HJT)){var F;if(n=(F=n.loggingDirectives)==null?void 0:F.trackingParams)this.W.setTrackingParams(this.badge.element,n),this.X=!0}}}else Tx(this),this.W.j("web_player_misc_bugfix_a")&&(this.W.setTrackingParams(this.badge.element,null), this.X=!1);this.Lh()}; g.Q.onStateChange=function(n){for(var Z=g.Y(Object.keys(this.suggestedActions)),F=Z.next();!F.done;F=Z.next()){F=F.value;var y=void 0;if((y=g.e(this.suggestedActions[F].trigger,oU7))==null?0:y.onlyTriggersOnPlayerPause){n.state.isPaused()?(o68(this,F),this.enabled=!0,this.TU()):n.oldState.isPaused()&&(this.enabled=!1,this.TU());break}}}; g.Q.IY=function(){FN7(this);zO.prototype.IY.call(this)};var OJ={},Pr=(OJ.CHANNEL_NAME="ytp-title-channel-name",OJ.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",OJ.LINK="ytp-title-link",OJ.SESSIONLINK="yt-uix-sessionlink",OJ.SUBTEXT="ytp-title-subtext",OJ.TEXT="ytp-title-text",OJ.TITLE="ytp-title",OJ);g.d(Jo,g.R);Jo.prototype.onClick=function(n){this.api.logClick(this.element);var Z=this.api.B(),F=this.api.getVideoUrl(!g.OC(n),!1,!0);g.R6(Z)&&(Z={},g.dc(this.api,"addEmbedsConversionTrackingParams",[Z]),F=g.pQ(F,Z));g.sq(F,this.api,n)}; Jo.prototype.g5=function(){var n=this.api.getVideoData(),Z=this.api.B();this.updateValue("title",n.title);var F={U:"a",K:Pr.CHANNEL_NAME,Z:{href:"{{channelLink}}",target:"_blank"},E8:"{{channelName}}"};this.api.B().T?F={U:"span",K:Pr.CHANNEL_NAME,E8:"{{channelName}}",Z:{tabIndex:"{{channelSubtextFocusable}}"}}:n.Xw&&(F={U:"span",K:Pr.SUBTEXT,E8:n.Xw});this.updateValue("subtextElement",F);zrp(this);this.api.getPresentingPlayerType()===2&&(F=this.api.getVideoData(),F.videoId&&F.isListed&&F.author&& F.r5&&F.profilePicture?(this.updateValue("channelLink",F.r5),this.updateValue("channelName",F.author),this.updateValue("channelTitleFocusable","0")):zrp(this));F=Z.externalFullscreen||!this.api.isFullscreen()&&Z.c7;g.w4(this.link,Pr.FULLERSCREEN_LINK,F);Z.Tx||!n.videoId||F||n.vV||Z.T?this.N&&(this.updateValue("url",null),this.o0(this.N),this.N=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.N||(this.N=this.G(this.link,"click",this.onClick)));Z.T&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.R6(Z)?n.expandedTitle:n.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.d(g.PY,g.R);g.Q=g.PY.prototype;g.Q.setEnabled=function(n){if(this.type!=null)if(n)switch(this.type){case 3:case 2:OR(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.C=n}; g.Q.u7=function(n,Z,F,y,l,m,a,D){if(!this.Wr||this.env.J){this.type===3&&this.xk();this.type!==1&&(g.ER(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.C&&this.fade.show(),this.X&&this.X.dispose(),(this.X=this.api.LF())&&this.X.subscribe("l",this.GD,this));if(D){var p=g.WA(this.bg).height||141;this.zx.style.bottom=p+2+"px"}else this.zx.style.display="none";this.env.j("delhi_modern_web_player")?(this.update({pillTimeStamp:F,pillTitle:m!=null?m:"",eduText:D!=null?D:""}),g.gi(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:F,title:m!=null?m:"",eduText:D!=null?D:""}),g.w4(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!m));this.api.isInline()&&g.gi(this.bottomText,"ytp-modern-tooltip-text");g.w4(this.element,"ytp-text-detail",!!y);F=-1;this.X&&(F=D5(this.X,243*this.scale),this.env.j("web_l3_storyboard")&&this.X.levels.length===4&&(F=this.X.levels.length-1),F=RVY(this.X,F,Z));YQe(this,F);if(a)switch(Z=g.WA(this.element).width,a){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=Z+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=Z/2+"px",this.title.style.textAlign="center"}I9U(this,!!y,n,l)}}; g.Q.sF=function(){this.type===1&&this.xk()}; g.Q.qE=function(n,Z){if(this.type)if(this.type===3)this.xk();else return;AmQ(this,n,3,Z)}; g.Q.RH=function(){this.N&&!this.J&&(this.env.j("player_tooltip_data_title_killswitch")?this.N.hasAttribute("title")&&(this.T=this.N.getAttribute("title")||"",this.N.removeAttribute("title"),this.C&&OR(this)):this.N.hasAttribute("data-tooltip-title")&&(this.T=this.N.getAttribute("data-tooltip-title")||"",this.N.removeAttribute("data-tooltip-title"),this.C&&OR(this)))}; g.Q.GD=function(n,Z){n<=this.V&&this.V<=Z&&(n=this.V,this.V=NaN,YQe(this,n))}; g.Q.T1r=function(){QO7(this.X,this.V,243*this.scale)}; g.Q.xk=function(){switch(this.type){case 2:var n=this.N;n.removeEventListener("mouseout",this.L);n.addEventListener("mouseover",this.S);n.removeEventListener("blur",this.L);n.addEventListener("focus",this.S);mE8(this);break;case 3:mE8(this);break;case 1:this.X&&(this.X.unsubscribe("l",this.GD,this),this.X=null),this.api.removeEventListener("videoready",this.Ns),this.Tx.stop()}this.type=null;this.C&&this.fade.hide()}; g.Q.Ja=function(){if(this.N)for(var n=0;n=0;Z--)if(this.qO[Z]===n){this.qO.splice(Z,1);break}Qm(this.rO,64,this.qO.length>0)}; g.Q.wf=function(){this.api.D3()&&this.api.hT();return!!this.Ip||PxY(this)||g.Tv.prototype.wf.call(this)}; g.Q.xQ=function(){var n=!this.wf(),Z=n&&this.api.D3()&&!g.b(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().vV&&!this.api.B().T&&!this.api.isEmbedsShortsMode(),F=this.Xz&&g.ce(this.api)&&g.b(this.api.getPlayerStateObject(),128);n||F?(this.KQ.show(),this.nQ.show()):(this.KQ.hide(),this.nQ.hide(),this.api.Ja(this.Tj.element));Z?this.Of.KJ():this.Of.jG();this.sf&&QDY(this.sf,this.mbu||!n);this.api.j("web_player_hide_overflow_button_if_empty_menu")&&xx(this);g.Tv.prototype.xQ.call(this)}; g.Q.II=function(n,Z,F,y,l){n.style.left="";n.style.top="";n.style.bottom="";var m=g.WA(n),a=y||this.sf&&g.Uq(this.sf.w1(),Z),D=y=null;F!=null&&a||(y=g.WA(Z),D=g.fK(Z,this.api.getRootNode()),F==null&&(F=D.x+y.width/2));F-=m.width/2;a?(Z=this.sf,y=cS(Z),D=Q_i(Z),a=this.api.Br().getPlayerSize().height,F=g.mk(F,y,y+D-m.width),m=a-Utj(Z)-m.height):g.Uq(this.Tj.element,Z)?(Z=this.api.Br().getPlayerSize().width,F=g.mk(F,12,Z-m.width-12),m=this.AX()?this.mV:this.FT,this.api.B().playerStyle==="gvn"&&(m+=20), this.Xz&&(m-=this.AX()?26:18)):(Z=this.api.Br().getPlayerSize(),F=g.mk(F,12,Z.width-m.width-12),m=D.y>(Z.height-y.height)/2?D.y-m.height-12:D.y+y.height+12);n.style.top=m+(l||0)+"px";n.style.left=F+"px"}; g.Q.Cz=function(n){n&&(this.api.Ja(this.Tj.element),this.sf&&this.api.Ja(this.sf.w1()));this.qv&&(g.w4(this.contextMenu.element,"ytp-autohide",n),g.w4(this.contextMenu.element,"ytp-autohide-active",!0));g.Tv.prototype.Cz.call(this,n)}; g.Q.Zg=function(){g.Tv.prototype.Zg.call(this);this.qv&&(g.w4(this.contextMenu.element,"ytp-autohide-active",!1),this.qv&&(this.contextMenu.hide(),this.Yk&&this.Yk.hide()))}; g.Q.LK=function(n,Z){var F=this.api.Br().getPlayerSize();F=new g.c1(0,0,F.width,F.height);if(n||!PN(this.rO)&&!this.wf()){if(this.api.B().uw||Z)n=this.AX()?this.mV:this.FT,F.top+=n,F.height-=n;this.sf&&(F.height-=Utj(this.sf))}return F}; g.Q.Aj=function(n){var Z=this.api.getRootNode();n?Z.parentElement?(Z.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.B().externalFullscreen||(Z.parentElement.insertBefore(this.nV.element,Z),Z.parentElement.insertBefore(this.KV.element,Z.nextSibling))):g.ZW(Error("Player not in DOM.")):(Z.setAttribute("aria-label","YouTube Video Player"),this.nV.detach(),this.KV.detach());this.Ln();this.Ii()}; g.Q.AX=function(){if(this.api.j("web_player_use_screen_width_for_big_mode")){var n;return this.api.Br().getPlayerSize().width>=((n=g.jf(this.api.B().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?n:2E3)}n=this.api.B();return this.api.isFullscreen()&&!n.J||!1}; g.Q.showControls=function(n){this.WQ=!n;this.xQ()}; g.Q.Ln=function(){var n=this.AX();this.tooltip.scale=n?1.5:1;this.contextMenu&&g.w4(this.contextMenu.element,"ytp-big-mode",n);this.xQ();this.api.j("web_player_hide_overflow_button_if_empty_menu")||xx(this);this.Ii();var Z=this.api.isEmbedsShortsMode();Z&&n?(n=(this.api.Br().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.a$(this.Tj.element,"padding-left",n+"px"),g.a$(this.Tj.element,"padding-right",n+"px")):Z&&(g.a$(this.Tj.element,"padding-left",""),g.a$(this.Tj.element,"padding-right", ""));g.Tv.prototype.Ln.call(this)}; g.Q.lx=function(){if(PxY(this)&&!g.ce(this.api))return!1;var n=this.api.getVideoData();return!g.R6(this.api.B())||this.api.getPresentingPlayerType()===2||!this.Uj||((n=this.Uj||n.Uj)?(n=n.embedPreview)?(n=n.thumbnailPreviewRenderer,n=n.videoDetails&&g.e(n.videoDetails,kk8)||null):n=null:n=null,n&&n.collapsedRenderer&&n.expandedRenderer)?g.Tv.prototype.lx.call(this):!1}; g.Q.Ii=function(){g.Tv.prototype.Ii.call(this);this.api.logVisibility(this.title.element,!!this.Qu);this.EO&&this.EO.YV(!!this.Qu);this.channelAvatar.YV(!!this.Qu);this.overflowButton&&this.overflowButton.YV(this.gJ()&&!!this.Qu);this.shareButton&&this.shareButton.YV(!this.gJ()&&!!this.Qu);this.KD&&this.KD.YV(!this.gJ()&&!!this.Qu);this.searchButton&&this.searchButton.YV(!this.gJ()&&!!this.Qu);this.copyLinkButton&&this.copyLinkButton.YV(!this.gJ()&&!!this.Qu);if(!this.Qu){this.api.Ja(this.Tj.element); for(var n=0;n=0?this.N.playbackRate:1}catch(n){return 1}}; g.Q.setPlaybackRate=function(n){this.getPlaybackRate()!==n&&(this.N.playbackRate=n);return n}; g.Q.HW=function(){return this.N.loop}; g.Q.setLoop=function(n){this.N.loop=n}; g.Q.canPlayType=function(n,Z){return this.N.canPlayType(n,Z)}; g.Q.isPaused=function(){return this.N.paused}; g.Q.isSeeking=function(){return this.N.seeking}; g.Q.isEnded=function(){return this.N.ended}; g.Q.UM=function(){return this.N.muted}; g.Q.Re=function(n){rX();this.N.muted=n}; g.Q.wF=function(){var n=this.N.played||n6([],[]);return this.view?lt(this,n):n}; g.Q.WE=function(){try{var n=this.N.buffered}catch(Z){}n=n||n6([],[]);return this.view?lt(this,n):n}; g.Q.VB=function(){var n=this.N.seekable||n6([],[]);return this.view?lt(this,n):n}; g.Q.bM=function(){var n=this.N;return n.getStartDate?n.getStartDate():null}; g.Q.getCurrentTime=function(){if(this.view){var n=this.N.currentTime;n=this.view?n-this.view.start:n;return this.view.Kt||!isFinite(this.view.end)?n:Math.min(n,this.view.end-this.view.start)}return this.N.currentTime}; g.Q.setCurrentTime=function(n){this.N.currentTime=this.view?this.view?n+this.view.start:n:n}; g.Q.getDuration=function(){return this.view?isFinite(this.view.end)&&!this.view.Kt?this.view.end-this.view.start:this.N.duration-this.view.start:this.N.duration}; g.Q.load=function(){var n=this.N.playbackRate;try{this.N.load()}catch(Z){}this.N.playbackRate=n}; g.Q.pause=function(){this.N.pause()}; g.Q.play=function(){if(this.view&&this.Oh())try{this.N.currentTime=this.view.start}catch(Z){}var n=this.N.play();if(!n||!n.then)return null;n.then(void 0,function(){}); return n}; g.Q.Ih=function(){return this.N.readyState}; g.Q.zH=function(){return this.N.networkState}; g.Q.RZ=function(){return this.N.error?this.N.error.code:null}; g.Q.bP=function(){return this.N.error?this.N.error.message:""}; g.Q.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.N instanceof window.HTMLVideoElement&&this.N.getVideoPlaybackQuality)return this.N.getVideoPlaybackQuality();if(this.N){var n=this.N,Z=n.webkitDroppedFrameCount;if(n=n.webkitDecodedFrameCount)return{droppedVideoFrames:Z||0,totalVideoFrames:n}}return{}}; g.Q.Zx=function(){try{var n=this.getSize(),Z={vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:dr(this.wF(),",",3),vbu:dr(this.WE()),vbs:dr(this.VB()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Ih(),vns:""+this.zH(),vec:""+this.RZ(),vemsg:this.bP(),vvol:""+this.getVolume(),vdom:""+ +this.nH(),vsrc:""+ +!!this.cE(),vw:""+n.width,vh:""+n.height};this.view&&(Z.view=this.view.start+"-"+this.view.end);return Z}catch(F){return{}}}; g.Q.rJ=function(){return!!this.N.webkitCurrentPlaybackTargetIsWireless}; g.Q.IA=function(){return!!this.N.webkitShowPlaybackTargetPicker()}; g.Q.togglePictureInPicture=function(){var n=this.N,Z=window.document;window.document.pictureInPictureEnabled?this.N!==Z.pictureInPictureElement?n.requestPictureInPicture():Z.exitPictureInPicture():nM()&&n.webkitSetPresentationMode(n.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.Q.B9=function(){return x1o(this.N)}; g.Q.getSize=function(){return g.WA(this.N)}; g.Q.setSize=function(n){g.Zj(this.N,n)}; g.Q.getVolume=function(){return this.N.volume}; g.Q.setVolume=function(n){rX();this.N.volume=n}; g.Q.addEventListener=function(n,Z){this.Tx.listen(n,Z,!1,this);this.l1(n)}; g.Q.removeEventListener=function(n,Z){this.Tx.o0(n,Z,!1,this)}; g.Q.dispatchEvent=function(n){if(this.C&&n.type==="pause")return!1;if(sSG){var Z,F=((Z=n.N)==null?void 0:Z.timeStamp)||Infinity;Z=F>performance.now()?F-Date.now()+performance.now():F;F=this.X||this.V;if((F==null?0:F.R6())||Z<=((F==null?void 0:F.V)||0)){var y;this.Iu("rms",{l:"mede",sr:(y=this.mQ)==null?void 0:y.Ef(),et:n.type});return!1}if(this.oT)return this.Iu("rms",{l:"medes",et:n.type}),F&&n.type==="seeking"&&(F.V=performance.now(),this.oT=!1),!1}return this.Tx.dispatchEvent(n)}; g.Q.l1=function(n){this.L[n]||(this.N.addEventListener(n,this.listener),this.L[n]=this.listener)}; g.Q.setAttribute=function(n,Z){this.N.setAttribute(n,Z)}; g.Q.removeAttribute=function(n){this.N.removeAttribute(n)}; g.Q.hasAttribute=function(n){return this.N.hasAttribute(n)}; g.Q.Sg=hA(61);g.Q.GA=hA(64);g.Q.pT=hA(67);g.Q.Kf=hA(70);g.Q.DG=function(){return yZ(this.N)}; g.Q.c9=function(n){g.gi(this.N,n)}; g.Q.je=function(n){return g.rG(this.N,n)}; g.Q.nH=function(){return g.Uq(document.body,this.N)}; g.Q.audioTracks=function(){var n=this.N;if("audioTracks"in n)return n.audioTracks}; g.Q.gT=function(){this.zx=!1}; g.Q.ej=function(){this.zx=!0;this.Re(!0)}; g.Q.oC=function(){this.zx&&!this.UM()&&this.Re(!0)}; g.Q.equals=function(n){return!!n&&n.w1()===this.w1()}; g.Q.IY=function(){for(var n=g.Y(Object.keys(this.L)),Z=n.next();!Z.done;Z=n.next())Z=Z.value,this.N.removeEventListener(Z,this.L[Z]);this.lY&&this.removeEventListener("volumechange",this.oC);m$1&&yo(this);NV.prototype.IY.call(this)}; g.Q.Mk=function(){return this.RZ()===4}; g.Q.hasError=function(){return this.RZ()>0}; g.Q.tS=function(){switch(this.RZ()){case 2:return"progressive.net.retryexhausted";case 3:var n=this.bP();return(n==null?0:n.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.Q.pE=function(n){this.N.disableRemotePlayback=n}; g.Q.Ou=function(){var n=this.VB();return n.length<1?NaN:n.end(n.length-1)}; g.Q.VV=function(){return this.S}; g.Q.activate=function(n){var Z="";n&&(UYp(this,n),Z=n.Er);if(!this.cE()||Z)Z&&this.cE()!==Z&&(this.aI(Z),delete this.X,this.C&&(this.C.reject(),delete this.C),!window.MediaSource&&window.ManagedMediaSource&&this.pE(!(n==null||!n.N))),n&&n.N||this.load(),this.lY||(this.addEventListener("volumechange",this.oC),this.lY=!0)}; g.Q.J3=function(){var n=this;!this.X&&Gw()&&(this.C?this.C.then(function(){return void n.J3()}):this.cE()||(this.X=this.X2()))}; g.Q.bQ=function(){this.X&&(this.X.dispose(),this.X=void 0)}; g.Q.X2=function(n,Z){if(this.X)if(sSG&&ua(this.X)&&!this.X.rI(n,Z)){var F;this.Iu("rms",{l:"megms",sr:(F=this.mQ)==null?void 0:F.Ef()});this.bQ();this.stopVideo()}else return this.V=this.X,this.X=void 0,this.V;n=$bT(this);this.activate(n.T);this.V=n;this.oT=!1;return n}; g.Q.b7=function(n){this.X=n}; g.Q.playVideo=function(){var n=this;this.isEnded()&&this.seekTo(0);!this.cE()&&this.S&&(g.ZW(Error("playVideo without src")),this.aI(this.S.Er),this.S.N||this.load());var Z=this.play(),F;if((F=this.mQ)==null||!tJY(F)){var y;hF&&(Zn||0)>=7&&(!Z||((y=this.mQ)==null?0:y.j("mweb_ios_allow_playback_workaround_when_ready")))&&egi(this,function(){g.A3(function(){gCP(n,n.getCurrentTime(),0)},500)})}return Z}; g.Q.Iu=function(n,Z,F){var y;((y=this.mQ)==null?0:y.eG())&&this.mQ.Xp(n,Z,F===void 0?!1:F)}; g.Q.S7=function(n){this.mQ=n}; g.Q.yq=function(){return Dz(this.WE(),this.getCurrentTime())}; g.Q.seekTo=function(n){this.Ih()>0&&(hF&&Zn<4&&(n=Math.max(.1,n)),this.setCurrentTime(n))}; g.Q.zs=function(n){if(this.Ih()===0||this.hasError())return!1;var Z=this.getCurrentTime()>0;if(n>=0){var F=this.VB();if(F.length||!Z)return SF(F,n)}return Z}; g.Q.yX=function(){if(!this.X&&this.V)if(this.V.C)try{var n;this.Iu("rms",{l:"mer",sr:(n=this.mQ)==null?void 0:n.Ef(),rs:B4(this.V)});this.V.clear();this.b7(this.V);this.V=void 0}catch(Z){n=new g.FV("Error while clearing Media Source in MediaElement: "+Z.name+", "+Z.message),g.ZW(n),this.stopVideo()}else this.stopVideo()}; g.Q.stopVideo=function(){var n=this;if(!this.X){var Z;(Z=this.V)==null||KOT(Z);if(m$1){if(!this.C){var F=new dZ;F.then(void 0,function(){}); this.C=F;aC7&&this.pause();g.A3(function(){n.C===F&&(yo(n),F.resolve())},200)}}else yo(this)}}; g.Q.fP=function(){var n=this.WE();return eV(n)&&this.getDuration()?NY(n,this.getCurrentTime()):0}; g.Q.PB=function(){var n=this.WE();return eV(n)&&this.getDuration()?n.end(n.length-1):0}; g.Q.Yg=function(){var n=this.getDuration();return n===Infinity?1:n?this.fP()/n:0}; var m$1=!1,aC7=!1,sSG=!1;var UK=[],JJi=!1;g.d(UZ,g.I);UZ.prototype.J=function(){this.N!=null&&this.app.getVideoData()!==this.N&&tU(this.N)&&QYj(this.app,this.N,void 0,void 0,this.T)}; UZ.prototype.C=function(){if(this.N!=null&&this.app.getVideoData()!==this.N&&this.X!=null&&this.V!=null&&this.S!=null&&tU(this.N)){var n=this.app.B().experiments.OS().N.Wx(an);n=r3T(this.X,this.V,this.S,n);n==null?QYj(this.app,this.N,void 0,void 0,this.T):(this.X.Xp("sgap",n),this.X.getVideoData().J&&this.X.Yw(!1),this.app.B().j("html5_remove_loop_range_on_gapless_fallback")&&(qC(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}}; UZ.prototype.L=function(n){var Z=this.app.Z4();if(Z){var F=this.app.getCurrentTime();Math.abs(F-n.end/1E3)>5&&Z.Xp("glrs",{cmt:F});Z.seekTo(0,{seekSource:58});Z.Xp("glrre",{cmt:F})}}; UZ.prototype.IY=function(){this.N=null;g.I.prototype.IY.call(this)};g.d(g.Tl,NV);g.Q=g.Tl.prototype;g.Q.isView=function(){return!0}; g.Q.Oh=function(){var n=this.mediaElement.getCurrentTime();if(n1;SF(n.qj(),y-.01)&&!l&&(S4(this,4),F.isActive=!1,F.aM=F.aM||F.isActive,(this.S===1?this.N:this.X).Xp("sbh",{}),Z.isActive=!0,Z.aM=Z.aM||Z.isActive,this.S!==0&&(this.N.getVideoData().s1=!0));n=this.V.X;if(this.V.N.isActive&&n.isActive&&(S4(this,5),this.S!==0)){n=this.X.XZ();F=this.N.XZ(); this.N.Xp("sbs",{citag:F==null?void 0:F.itag,nitag:n==null?void 0:n.itag});this.X.Xp("gitags",{pitag:F==null?void 0:F.itag,citag:n==null?void 0:n.itag});var m;(m=this.X)==null||m.n$()}}}; g.Q.Zz=function(){this.Ei()&&this.pN("player-reload-after-handoff")}; g.Q.pN=function(n,Z){Z=Z===void 0?{}:Z;if(!this.CR()&&this.status.status!==6){var F=this.status.status>=4&&n!=="player-reload-after-handoff";this.status={status:Infinity,error:n};if(this.N&&this.X){var y=this.X.getVideoData().clientPlaybackNonce;this.N.FI(new g.Xv("dai.transitionfailure",Object.assign(Z,{cpn:y,transitionTimeMs:this.Ot,msg:n})));this.N.Yw(F)}this.md.reject(n);this.dispose()}}; g.Q.Ei=function(){return this.status.status>=4&&this.status.status<6}; g.Q.IY=function(){c$Q(this);this.N.unsubscribe("newelementrequired",this.Zz,this);if(this.T){var n=this.T.X;this.T.N.D8.unsubscribe("updateend",this.F8,this);n.D8.unsubscribe("updateend",this.F8,this)}g.I.prototype.IY.call(this)}; g.Q.UA=function(n){g.On(n,128)&&this.pN("player-error-event")};g.d(jj,g.I);jj.prototype.clearQueue=function(n,Z){n=n===void 0?!1:n;Z=Z===void 0?!1:Z;this.V&&this.V.reject("Queue cleared");this.app.B().j("html5_gapless_fallback_on_qoe_restart_v2")||Z&&this.X&&this.X.Yw(!1);N8(this,n)}; jj.prototype.vj=function(){return!this.N}; jj.prototype.Ei=function(){var n;return((n=this.T)==null?void 0:n.Ei())||!1}; jj.prototype.IY=function(){N8(this);g.I.prototype.IY.call(this)};g.d(kw,g.Xu);g.Q=kw.prototype;g.Q.getVisibilityState=function(n,Z,F,y,l,m,a,D){return n?4:l&&Lr?7:lFe&&!(wr()||document.hasFocus&&document.hasFocus())||wr()?3:Z?2:F?1:y?5:l&&!Lr?7:m?8:a?9:D?10:0}; g.Q.XD=function(n){this.fullscreen!==n&&(this.fullscreen=n,this.TU())}; g.Q.setMinimized=function(n){this.X!==n&&(this.X=n,this.TU())}; g.Q.setInline=function(n){this.inline!==n&&(this.inline=n,this.TU())}; g.Q.OH=function(n){this.pictureInPicture!==n&&(this.pictureInPicture=n,this.TU())}; g.Q.setSqueezeback=function(n){this.T!==n&&(this.T=n,this.TU())}; g.Q.EB=function(n){this.V!==n&&(this.V=n,this.TU())}; g.Q.rJ=function(){return this.N}; g.Q.sZ=function(){return this.fullscreen!==0}; g.Q.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.Q.hU=function(){return this.fullscreen}; g.Q.isMinimized=function(){return this.X}; g.Q.isInline=function(){return this.inline}; g.Q.isBackground=function(){return wr()}; g.Q.Sx=function(){return this.pictureInPicture}; g.Q.xp=function(){return!1}; g.Q.Fy=function(){return this.T}; g.Q.oh=function(){return this.V}; g.Q.TU=function(){this.publish("visibilitychange");var n=this.getVisibilityState(this.rJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Sx(),this.xp(),this.Fy(),this.oh());n!==this.C&&this.publish("visibilitystatechange");this.C=n}; g.Q.IY=function(){ytp(this.S);g.Xu.prototype.IY.call(this)};g.d(g.ll,g.I);g.Q=g.ll.prototype;g.Q.IY=function(){this.videoData=this.playerState=null;g.I.prototype.IY.call(this)}; g.Q.addCueRange=function(){}; g.Q.lD=function(){}; g.Q.di=function(){}; g.Q.eg=function(){return!1}; g.Q.Bv=function(){return!1}; g.Q.Hc=function(){}; g.Q.a5=function(){}; g.Q.hp=function(){return[]}; g.Q.V_=function(){}; g.Q.QY=function(){}; g.Q.Zr=function(){return 1}; g.Q.getAudioTrack=function(){return this.getVideoData().RX}; g.Q.FG=function(){return null}; g.Q.getAvailableAudioTracks=function(){return[]}; g.Q.Mp=function(){return[]}; g.Q.MX=function(){return[]}; g.Q.Uf=function(){return""}; g.Q.bG=function(){return[]}; g.Q.Nm=function(){}; g.Q.FY=function(){return 0}; g.Q.getCurrentTime=function(){return 0}; g.Q.Xy=function(){}; g.Q.XZ=function(){}; g.Q.Zx=function(){return{}}; g.Q.getDuration=function(){return 0}; g.Q.UV=function(){return 0}; g.Q.Xh=function(){return 0}; g.Q.VE=function(){return!1}; g.Q.Hn=function(){return 0}; g.Q.fP=function(){return 0}; g.Q.x0=hA(7);g.Q.Zd=function(){return 0}; g.Q.HW=function(){return!1}; g.Q.zc=function(){return 0}; g.Q.HV=function(){return null}; g.Q.X2=function(){return null}; g.Q.LJ=function(){return 0}; g.Q.xL=function(){return 0}; g.Q.Mh=function(){return g.A(function(n){g.zA(n)})}; g.Q.IE=hA(15);g.Q.getPlaybackQuality=function(){return"auto"}; g.Q.getPlaybackRate=function(){return 1}; g.Q.getPlayerState=function(){this.playerState||(this.playerState=new g.iE);return this.playerState}; g.Q.getPlayerType=function(){return 0}; g.Q.getPlaylistSequenceForTime=function(){return null}; g.Q.Bm=function(){return function(){}}; g.Q.BH=function(){return""}; g.Q.getPreferredQuality=function(){return"unknown"}; g.Q.mH=function(){}; g.Q.getProximaLatencyPreference=function(){return 0}; g.Q.u$=function(){return IK}; g.Q.LF=function(){return null}; g.Q.getStoryboardFormat=function(){return null}; g.Q.getStreamTimeOffset=function(){return 0}; g.Q.bf=function(){return 0}; g.Q.Kn=function(){return 0}; g.Q.sM=function(){return{Us:[],ue:[],currentTime:0,tU:"",droppedVideoFrames:0,isGapless:!1,vj:!0,mp:0,OY:0,rE:0,a8:0,cR:0,fu:[],Uy:[],Ub:null,playerState:this.getPlayerState(),eE:null,V0:"",totalVideoFrames:0}}; g.Q.getUserAudio51Preference=function(){return 0}; g.Q.getUserPlaybackQualityPreference=function(){return""}; g.Q.getVideoData=function(){this.videoData||(this.videoData=new g.O8(this.Y),g.S(this,this.videoData));return this.videoData}; g.Q.qz=function(){return null}; g.Q.T2=function(){return null}; g.Q.UG=function(){}; g.Q.getVideoLoadedFraction=function(){return 0}; g.Q.E9=function(){}; g.Q.handleError=function(){}; g.Q.Yw=function(){}; g.Q.gR=function(){}; g.Q.S5=hA(40);g.Q.hw=function(){return!1}; g.Q.hasSupportedAudio51Tracks=function(){return!1}; g.Q.isAd=function(){return!1}; g.Q.FW=function(){return!1}; g.Q.rJ=function(){return!1}; g.Q.isAtLiveHead=function(){return!1}; g.Q.iE=function(){return!0}; g.Q.isGapless=function(){return!1}; g.Q.isHdr=function(){return!1}; g.Q.CY=function(){return!1}; g.Q.Wp=function(){return!1}; g.Q.qm=function(){return!1}; g.Q.isProximaLatencyEligible=function(){return!1}; g.Q.vj=function(){return!0}; g.Q.Yp=function(){return!1}; g.Q.jN=function(){return!1}; g.Q.i9=function(){}; g.Q.ya=function(){}; g.Q.n$=function(){}; g.Q.dI=function(){}; g.Q.WA=function(){}; g.Q.hA=function(){}; g.Q.Rg=function(){}; g.Q.Aw=hA(50);g.Q.Mg=hA(21);g.Q.m4=function(){}; g.Q.pauseVideo=function(){}; g.Q.prefetchKeyPlay=function(){}; g.Q.playVideo=function(){return g.A(function(n){return n.return()})}; g.Q.fU=function(){}; g.Q.uG=hA(27);g.Q.Om=hA(33);g.Q.NE=function(){}; g.Q.Xp=function(){}; g.Q.nh=function(){}; g.Q.S3=function(){}; g.Q.WC=function(){}; g.Q.FI=function(){}; g.Q.pM=function(){}; g.Q.HJ=function(){}; g.Q.IN=function(){}; g.Q.B3=function(){}; g.Q.ZP=function(){}; g.Q.yX=function(){}; g.Q.removeCueRange=function(){}; g.Q.jS=function(){}; g.Q.V9=function(){return[]}; g.Q.MN=function(){}; g.Q.Q_=function(){}; g.Q.hO=function(){}; g.Q.j3=function(){}; g.Q.PU=function(){}; g.Q.A3=function(){}; g.Q.GW=function(){}; g.Q.seekTo=function(){}; g.Q.sendAbandonmentPing=function(){}; g.Q.sendVideoStatsEngageEvent=function(){}; g.Q.kQ=function(){}; g.Q.setLoop=function(){}; g.Q.V$=function(){}; g.Q.setMediaElement=function(){}; g.Q.F7=function(){}; g.Q.setPlaybackRate=function(){}; g.Q.Mj=function(){}; g.Q.rj=function(){}; g.Q.P1=function(){}; g.Q.setProximaLatencyPreference=function(){}; g.Q.NJ=function(){}; g.Q.X_=function(){}; g.Q.va=function(){}; g.Q.If=function(){}; g.Q.zS=function(){}; g.Q.setUserAudio51Preference=function(){}; g.Q.h_=function(){}; g.Q.Ef=function(){return!1}; g.Q.IA=function(){}; g.Q.wZ=function(){return!1}; g.Q.d_=function(){}; g.Q.zi=function(){}; g.Q.SJ=function(){}; g.Q.stopVideo=function(){}; g.Q.subscribe=function(){return NaN}; g.Q.Vu=function(){}; g.Q.togglePictureInPicture=function(){}; g.Q.HC=function(){return 0}; g.Q.So=function(){}; g.Q.unsubscribe=function(){return!1}; g.Q.h7=function(){}; g.Q.LT=function(){return!1}; g.Q.Eq=function(){}; g.Q.xE=function(){}; g.Q.eU=function(){};g.d(BSi,g.I);g.Q=BSi.prototype;g.Q.get=function(n){ak(this);var Z=this.data.find(function(F){return F.key===n}); return Z?Z.value:null}; g.Q.m$=function(){ak(this);return this.data.map(function(n){return n.value})}; g.Q.set=function(n,Z,F){this.remove(n,!0);ak(this);n={key:n,value:Z,expire:Infinity};F&&isFinite(F)&&(F*=1E3,n.expire=(0,g.tP)()+F);for(this.data.push(n);this.data.length>this.T;)(F=this.data.shift())&&t7(this,F,!0);DR(this)}; g.Q.remove=function(n,Z){Z=Z===void 0?!1:Z;var F=this.data.find(function(y){return y.key===n}); F&&(t7(this,F,Z),g.h7(this.data,function(y){return y.key===n}),DR(this))}; g.Q.removeAll=function(n){if(n=n===void 0?!1:n)for(var Z=g.Y(this.data),F=Z.next();!F.done;F=Z.next())t7(this,F.value,n);this.data=[];DR(this)}; g.Q.IY=function(){var n=this;g.I.prototype.IY.call(this);this.data.forEach(function(Z){t7(n,Z,!0)}); this.data=[]}; g.d($W,g.I);g.Q=$W.prototype;g.Q.get=function(n){var Z=this.map.get(n);return Z?Z.dw<=(0,g.tP)()?(this.remove(n,!0),null):Z.value:null}; g.Q.m$=function(){for(var n=[],Z=(0,g.tP)(),F=[],y=g.Y(this.map.entries()),l=y.next();!l.done;l=y.next()){var m=g.Y(l.value);l=m.next().value;m=m.next().value;m.dw<=Z?F.push(l):n.push(m.value)}if(F.length>0){Z=g.Y(F);for(F=Z.next();!F.done;F=Z.next())di(this,F.value,!0);BO(this)}return n}; g.Q.set=function(n,Z,F){this.map.has(n)&&di(this,n,!0);var y=(0,g.tP)(),l=Infinity;F!==void 0&&F!==null&&isFinite(F)&&(l=y+F*1E3);this.map.set(n,{value:Z,dw:l});isFinite(l)&&(this.N.enqueue(l,n),HO(this.N)===l&&BO(this));if(!Number.isNaN(this.V))for(n=this.map.keys();this.map.size>this.V;){Z=n.next();if(Z.done)break;di(this,Z.value,!0)}}; g.Q.remove=function(n,Z){di(this,n,Z===void 0?!1:Z)&&BO(this)}; g.Q.removeAll=function(n){if((n===void 0?0:n)&&this.X){n=g.Y(this.map.values());for(var Z=n.next();!Z.done;Z=n.next())this.X(Z.value.value)}this.map.clear();this.N.clear();this.T.stop()}; g.Q.IY=function(){g.I.prototype.IY.call(this);this.removeAll(!0)};g.d(g.QC,g.I);g.Q=g.QC.prototype;g.Q.IY=function(){for(var n=g.Y(Object.values(this.V)),Z=n.next();!Z.done;Z=n.next())Z.value.dispose();dXj(this);this.N.dispose();g.I.prototype.IY.call(this)}; g.Q.iP=function(n){return n?n===1?this.Pr:this.T.getVideoData().enableServerStitchedDai&&n===2?this.T.getVideoData().ye?this.V[2]||this.T:this.T:this.V[n]||null:this.T}; g.Q.zo=function(n){var Z=n.cpn;n=n.playerType;if(Z)a:{n=g.Y(Object.values(this.V));for(var F=n.next();!F.done;F=n.next())if(F=F.value,F.Uf()===Z){Z=F;break a}Z=this.S[Z]||null}else Z=n?this.iP(n):this.T;return Z}; g.Q.Px=function(){return this.Pr}; g.Q.EP=function(n){this.Pr=n}; g.Q.Z4=function(){return this.T}; g.Q.x7=function(n){this.T=n;Dc(this)}; g.Q.Z_=hA(46);g.Q.zP=hA(48);RI.prototype.Oj=function(n,Z){for(var F=0;F<10;F++){var y=this.N[F],l=y+(F===0?n:0),m=1*Math.pow(2,F);if(l<=m)break;y=Math.min(1,(l-m*.5)/y);for(l=0;l<16;l++)m=this.values[F*16+l]*y,this.values[(F+1)*16+l]+=m,this.N[F+1]+=m,this.values[F*16+l]-=m,this.N[F]-=m}y=F=0;l=8192;Z>8192&&(F=Math.ceil(Math.log(Z/8192)/Math.log(2)),y=8192*Math.pow(2,F-1),l=y*2);F+2>16?this.values[15]+=n:(Z=(Z-y)/(l-y),this.values[F]+=n*(1-Z),this.values[F+1]+=n*Z);this.N[0]+=n}; RI.prototype.lH=function(){var n=n===void 0?this.X:n;var Z=Z===void 0?.02:Z;var F=F===void 0?.98:F;for(var y=this.T,l=0;l<16;l++)y[l]=this.values[l];l=this.N[0];for(var m=1;m<11;m++){var a=this.N[m];if(a===0)break;for(var D=Math.min(1,(n-l)/a),p=0;p<16;p++)y[p]+=this.values[m*16+p]*D;l+=a*D;if(D<1)break}for(m=n=a=0;m<16;m++){D=a+y[m]/l;n+=Math.max(0,Math.min(D,F)-Math.max(a,Z))*(m>0?8192*Math.pow(2,m-1):0);if(D>F)break;a=D}return n/(F-Z)};nN.prototype.Oj=function(n,Z){n=Math.min(this.N,Math.max(1,Math.round(n*this.resolution)));n+this.X>=this.N&&(this.T=!0);for(;n--;)this.values[this.X]=Z,this.X=(this.X+1)%this.N;this.Qq=!0}; nN.prototype.percentile=function(n){var Z=this;if(!this.T&&this.X===0)return 0;this.Qq&&(g.bF(this.S,function(F,y){return Z.values[F]-Z.values[y]}),this.Qq=!1); return this.values[this.S[Math.round(n*((this.T?this.N:this.X)-1))]]||0}; nN.prototype.lH=function(){return this.C?(this.percentile(this.V-this.C)+this.percentile(this.V)+this.percentile(this.V+this.C))/3:this.percentile(this.V)};g.d(K0,g.I);K0.prototype.fR=function(){var n;(n=this.r5)==null||n.start();PK(this)&&this.policy.L&&this.yg()};X1n.prototype.j=function(n){return this.experiments.RY(n)};g.d(HZ,g.GI);g.Q=HZ.prototype;g.Q.U0=function(){}; g.Q.Uf=function(){return this.videoData.clientPlaybackNonce}; g.Q.getVideoData=function(){if(g.GI.prototype.getVideoData.call(this).j("html5_huli_ssdai_use_playback_state")){var n=Cqp(this.CJ,g.GI.prototype.getCurrentTime.call(this))||g.GI.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==n.clientPlaybackNonce&&LNf(this.V,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:n.clientPlaybackNonce});return this.videoData}return Cqp(this.CJ,g.GI.prototype.getCurrentTime.call(this))||g.GI.prototype.getVideoData.call(this)}; g.Q.getCurrentTime=function(n){var Z=g.GI.prototype.getCurrentTime.call(this);if(g.GI.prototype.getVideoData.call(this).j("html5_huli_ssdai_use_playback_state")){this.N===0?n||(Z-=this.startTimeSecs,g.GI.prototype.getVideoData.call(this).j("html5_ssdai_log_missed_ad_impressions")&&this.X&&this.T&&Z>1&&this.Xp("sdai-admiss",{cpn:this.Uf(),ct:Z.toFixed(3),pfs:this.T}),this.X=!1):n&&(Z=this.N);var F=n?this.CJ.EH||g.GI.prototype.getCurrentTime.call(this):zRU(this.CJ,g.GI.prototype.getCurrentTime.call(this)); Z!==F&&LNf(this.V,"time"+(n!=null?n:!1),{time:Z,ref:F,ct:n!=null?n:!1})}else Z=n?this.CJ.EH||Z:zRU(this.CJ,Z);return Z}; g.Q.getDuration=function(){if(g.GI.prototype.getVideoData.call(this).j("html5_huli_ssdai_use_playback_state")){var n=WcK(this.CJ,g.GI.prototype.getCurrentTime.call(this));this.duration!==n&&LNf(this.V,"duration",{dur:this.duration,ref:n});return this.duration}return WcK(this.CJ,g.GI.prototype.getCurrentTime.call(this))}; g.Q.EW=function(n){this.duration=n};g.EE.prototype.Wh=function(n,Z){if(Z===1)return this.N.get(n);if(Z===2)return this.T.get(n);if(Z===3)return this.X.get(n)}; g.EE.prototype.Rj=hA(58);g.EE.prototype.l4=function(n,Z,F,y){F={ZV:y,zJ:F};Z?this.T.set(n,F):this.N.set(n,F)}; g.EE.prototype.clearAll=function(){this.N.clear();this.T.clear();this.X.clear()}; Tp.prototype.clear=function(){this.X=[];this.T.clear();this.V.clear();this.N.clear()}; Tp.prototype.zo=function(n){var Z=n.cpn;n=n.sS;if(Z&&(Z=this.T.get(Z))||n&&(Z=(this.S?this.T:this.V).get(n)))return Z}; g.d(g.cr,g.I);g.Q=g.cr.prototype;g.Q.onCueRangeEnter=function(n){var Z=n.getId();this.oW({oncueEnter:1,cpn:Z,start:n.start,end:n.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.FY()||0).toFixed(3)});var F=this.N.zo({cpn:Z});this.oW({enterAdCueRange:1});var y=this.JV||this.LO().cpn,l;y=(l=this.N.zo({cpn:y}))!=null?l:this.LO();F&&(l=this.playback.getCurrentTime(),F.startTimeSecs=n.start/1E3,F={Dk:y,R5:F,xr:l},PQK(this,Z,n.start/1E3,l),lC(this,F));this.fR=!1}; g.Q.fB=function(n,Z,F){if(n&&Z)if((this.app.iG().S[n]||null)===null){var y;this.oW({nocpn:n,active:(y=this.app.iG().X)==null?void 0:y.Uf()})}else{this.fR=F!=null?F:!1;var l;F=((l=this.app.iG().X)==null?void 0:l.Uf())||this.playback.Uf();var m;l=(m=this.N.zo({cpn:F}))!=null?m:this.LO();var a;m=(a=this.N.zo({cpn:n}))!=null?a:this.LO();m.startTimeSecs=Z;m.playerType===2&&(m.ai=m.ai!=null?Math.min(m.ai,Z):Z);a=this.playback.getCurrentTime();PQK(this,F,Z,a);lC(this,{Dk:l,R5:m,xr:a});if(this.playback.getVideoData().Cq()&& n===this.playback.Uf())if(Z=this.kV.get(F)){var D;n=g.Y((D=this.jT.get(Z))!=null?D:[]);for(D=n.next();!D.done;D=n.next()){D=D.value;F=a=void 0;m=this.app.iG();F=F===void 0?"":F;if(l=m.S[D])m.X===l&&(m.X=null),m.C===l&&(m.C=null),D===((a=m.L.get(F))==null?void 0:a.Uf())&&m.L.delete(F),delete m.S[D];this.Wr.delete(D);this.kV.delete(D)}this.jT.delete(Z)}else this.oW({no_abid:n})}}; g.Q.wI=function(n,Z){if(n===this.playback.Uf())OE(this.app.iG(),this.playback,!1);else{var F=this.Wr.get(n);F?(n=!this.fR,F.N=0,F.startTimeSecs=Z,F.T=n===void 0?!0:n,F.X=!0,OE(this.app.iG(),F,!0)):this.oW({nop_s:n})}}; g.Q.onCueRangeExit=function(n){for(var Z=this.playback.getCurrentTime()*1E3,F=n.getId(),y=g.Y(this.X.values()),l=y.next();!l.done;l=y.next())if(l=l.value,l.getId()!==F&&Z>=l.start&&Z<=l.end)return;if(F=this.N.zo({cpn:F}))Z=this.playback.getCurrentTime(),y=this.LO(),y.startTimeSecs=n.end/1E3,F={Dk:F,R5:y,xr:Z},PQK(this,this.playback.Uf(),n.end/1E3,Z),lC(this,F)}; g.Q.LO=function(){return{cpn:this.playback.Uf(),durationMs:0,I0:0,playerType:1,AD:0,videoData:this.playback.getVideoData(),errorCount:0,xc:""}}; g.Q.seekTo=function(n,Z,F,y){n=n===void 0?0:n;Z=Z===void 0?{}:Z;F=F===void 0?!1:F;y=y===void 0?null:y;yr(this,this.JV);if(this.playback.getVideoData().Cq()&&n<=this.EH)this.playback.pauseVideo(),this.EH=0,ITQ(this,n);else if(this.fR=this.Ns=!0,F)Qgn(this,n,Z);else{F=this.app.Z4();var l=F===this.lY?this.Yi:null;Cn(this,!1);this.SG=n;this.IW=Z;y!=null&&this.mJ.start(y);F&&(this.Yi=l||F.getPlayerState(),F.SJ(Z),this.lY=F)}}; g.Q.IY=function(){Cn(this,!1);M1(this);OBj(this);g.I.prototype.IY.call(this)}; g.Q.A8=function(n){this.Hx=n;this.oW({swebm:n})}; g.Q.Te=function(n,Z,F){if(F&&Z){var y=this.S.get(n);if(y){y.locations||(y.locations=new Map);var l=Number(Z.split(";")[0]);F=new g.yD(F);this.oW({hdlredir:1,itag:Z,seg:n,hostport:qv(3,F)});y.locations.set(l,F)}}}; g.Q.e$=function(n,Z,F,y,l,m){var a=y===3,D=$9e(this,n,Z,y,F,m);if(!D){Du(this,Z,a);var p=g.nj(this,Z)?"undec":"ncp";this.oW({gvprp:p,mt:n,seg:Z,tt:y,itag:F,ce:m});return null}a||this.S.set(Z,D);m=D.xc;var L;y=((L=this.Wh(Z-1,y,l))==null?void 0:L.ZV)||"";y===""&&this.oW({eds:1});L=h5e(this,D.ssdaiAdsConfig);l=this.playback.getVideoData();var q;a=((q=l.X)==null?void 0:q.containerType)||0;q=l.oA[a];D=D.tT&&Z>=D.tT?D.tT:void 0;q={iV:m?FPT(this,m):[],adsConfig:L,ZV:y,UB:D,vl:n_(q.split(";")[0]),Bl:q.split(";")[1]|| ""};D={g8:q};this.xi&&(n={gvprpro:"v",sq:Z,mt:n.toFixed(3),itag:F,acpns:((p=q.iV)==null?void 0:p.join("_"))||"none",abid:m},this.oW(n));return D}; g.Q.LS=function(n){a:{if(!this.nm){var Z=hl(this,n);if(!(this.playback.getVideoData().Cq()&&(Z==null?0:Z.o8)))break a}Z=void 0}var F=Z;if(!F)return this.oW({gvprp:"ncp",mt:n}),null;Z=F.xc;var y=h5e(this,F.ssdaiAdsConfig);F=F.tT&&F.b8&&n>=F.b8?F.tT:void 0;var l=this.playback.getVideoData(),m,a=((m=l.X)==null?void 0:m.containerType)||0;m=l.oA[a];y={iV:Z?FPT(this,Z):[],adsConfig:y,UB:F};!this.Y.j("html5_ssdai_sabr_empty_itag_xtag")&&m&&(y.vl=n_(m.split(";")[0]),y.Bl=m.split(";")[1]||"");var D;n={gvprpro:"v", mt:n.toFixed(3),acpns:((D=y.iV)==null?void 0:D.join("_"))||"none",abid:Z};this.oW(n);return y}; g.Q.TH=function(n,Z,F,y,l,m){var a=Number(F.split(";")[0]),D=y===3;n=$9e(this,n,Z,y,F,m);this.oW({gdu:1,seg:Z,itag:a,pb:""+!!n});if(!n)return Du(this,Z,D),null;n.locations||(n.locations=new Map);if(!n.locations.has(a)){var p,L;m=(p=n.videoData.getPlayerResponse())==null?void 0:(L=p.streamingData)==null?void 0:L.adaptiveFormats;if(!m)return this.oW({gdu:"noadpfmts",seg:Z,itag:a}),Du(this,Z,D),null;p=m.find(function(T){return T.itag===a}); if(!p||!p.url){var q=n.videoData.videoId;n=[];var w=g.Y(m);for(y=w.next();!y.done;y=w.next())n.push(y.value.itag);this.oW({gdu:"nofmt",seg:Z,vid:q,itag:a,fullitag:F,itags:n.join(",")});Du(this,Z,D);return null}n.locations.set(a,new g.yD(p.url,!0))}m=n.locations.get(a);if(!m)return this.oW({gdu:"nourl",seg:Z,itag:a}),Du(this,Z,D),null;m=new cL(m);this.Hx&&(m.get("dvc")?this.oW({dvc:m.get("dvc")||""}):m.set("dvc","webm"));(y=(w=this.Wh(Z-1,y,l))==null?void 0:w.ZV)&&m.set("daistate",y);n.tT&&Z>=n.tT&& m.set("skipsq",""+n.tT);(w=this.playback.getVideoData().clientPlaybackNonce)&&m.set("cpn",w);w=[];n.xc&&(w=FPT(this,n.xc),w.length>0&&m.set("acpns",w.join(",")));D||this.S.set(Z,n);D=null;D=m.get("aids");y=m.Uw();(y==null?void 0:y.length)>2048&&this.oW({urltoolong:1,sq:Z,itag:a,len:y.length});this.xi&&(y&&(m=n.cpn,l=n.xc,v8T(this,m,l),l&&!this.cV.has(l)&&(m=R33(this,m,l),p=t9p(this,l),this.oW({iofa:m}),this.oW({noawnzd:p-m}),this.oW({acpns:w.join("."),aids:(q=D)==null?void 0:q.replace(/,/g,".")}), this.cV.add(l))),this.oW({gdu:"v",seg:Z,itag:F,ast:n.I0.toFixed(3),alen:n.durationMs.toFixed(3),acpn:n.cpn,avid:n.videoData.videoId}));return y}; g.Q.A0=function(n,Z,F){F=F===void 0?!1:F;var y=F6(this,n,Z);if(y){this.mC&&(this.zx=y);var l=void 0,m=y.xc;if(m){this.oW({skipadonsq:Z,sts:F,abid:m,acpn:y.cpn,avid:y.videoData.videoId});F=this.N.N.get(m);if(!F)return;F=g.Y(F);for(m=F.next();!m.done;m=F.next())m=m.value,m.tT=Z,m.b8=n,m.I0>y.I0&&(l=m)}yr(this,this.JV);this.T=y.cpn;qoU(this);this.api.j("html5_ssdai_enable_media_end_cue_range")&&this.playback.So(this.T);n=this.playback.getCurrentTime();BCi(this,y,l,n,n,!1,!0);MMK(this)}}; g.Q.lr=function(){for(var n=g.Y(this.N.X),Z=n.next();!Z.done;Z=n.next())Z=Z.value,Z.tT=NaN,Z.b8=NaN;qoU(this);this.oW({rsac:"resetSkipAd",sac:this.T});this.d5.delete(this.T);this.T="";this.mC&&(this.zx=void 0)}; g.Q.Wh=function(n,Z,F){return this.Tx.Wh(n,Z,F)}; g.Q.Rj=hA(57); g.Q.l4=function(n,Z,F,y,l,m,a,D,p){y.length>0&&this.oW({onssinfo:1,sq:n,start:Z.toFixed(3),cpns:y.join(","),ds:l.join(","),isVideo:a?1:0});if(this.mC&&this.zx&&this.zx.tT&&y.length>0){F=g.Y(y);for(var L=F.next();!L.done;L=F.next())if(L=L.value,L===this.zx.cpn){this.RX!==L&&(this.oW({skiperror:1,sq:n,acpn:this.zx.cpn,skipsq:this.zx.tT||0}),this.RX=L);break}}p&&this.Tx.l4(n,a,D,p);if(a){if(y.length&&l.length)for(this.d5.has(y[0])&&this.oW({skipfail:1,sq:n,acpn:y[0]}),n=Z+this.bf(),a=0;a0&&(this.GK=0,this.JV="",this.Y.j("html5_huli_ssdai_use_playback_state")&&this.wI(this.playback.Uf(),0),this.api.publish("serverstitchedvideochange"));this.playback.a5(F,y);return!0}; g.Q.Qv=function(){this.oW({rstdaist:1});this.Tx.clearAll()}; g.Q.FR=function(n){var Z;if(n!==((Z=this.C)==null?void 0:Z.identifier))this.oW({ignorenoad:n});else{this.R0.add(n);this.oW({noadrcv:n});var F;((F=this.C)==null?void 0:F.identifier)===n&&M4(this)}}; g.Q.aE=function(n){if(this.nm)return this.oW({dai_disabled:n.event}),!1;if(this.playback.getVideoData().Cq()&&(n.event==="continue"||n.event==="stop"))return!1;var Z=u2(this.api.iN());if(Z=Z?Z.aE(n):!1)this.V={rl:n.identifier,Oc:n.startSecs};else if(this.V&&this.V.rl===n.identifier&&n.startSecs>this.V.Oc+1){this.oW({cueStChg:n.identifier,oldSt:this.V.Oc.toFixed(3),newSt:n.startSecs.toFixed(3),abid:this.V.Ct});if(this.V.Ct){var F=n.startSecs-this.V.Oc,y=this.N.N.get(this.V.Ct);if(y){y=g.Y(y);for(var l= y.next();!l.done;l=y.next())l=l.value,l.I0>=0&&(l.I0+=F*1E3,this.Y.j("html5_ssdai_update_timeline_on_start_time_change")&&(l.AD+=F*1E3),this.oW({newApEt:l.I0,newApPrt:l.AD,acpn:l.cpn}))}}this.V.Oc=n.startSecs}Z?this.aY.add(n.identifier):this.aY.has(n.identifier)&&this.aY.delete(n.identifier);return Z}; g.Q.BY=function(n){var Z="";n?n.event==="unknown"?Z="unknown":this.aY.has(n.identifier)?this.V&&this.V.rl===n.identifier?this.V.rl===n.identifier?Z=this.Y.j("html5_ssdai_under_decoration_shortad")&&IF(this.r5,function(F){return F.identifier===n.identifier})?"shortad":"pending":IF(this.r5,function(F){return F.identifier===n.identifier})||(Z="noAdsAdded"):Z="wrongAdBreakInfo":Z="unscheduled":Z="noCuepoint"; return Z}; g.Q.ZH=function(n){return this.nm?!1:!!hl(this,n)}; g.Q.VC=function(n){var Z=this;if(this.Y.j("html5_lifa_ignore_multiple_skips")&&this.w5)return this.oW({ufs_ad:this.T,ufs_cur:this.JV,ufs_cont:this.LO().cpn}),!1;yr(this,this.JV);this.playback.pauseVideo();var F=this.playback.getCurrentTime(),y=this.N.zo({cpn:this.JV});if(!y)return this.oW({skipFail:F}),!1;this.T=this.JV;this.Ns=!1;this.api.j("html5_ssdai_enable_media_end_cue_range")&&this.playback.So(this.T);this.ZX(y.xc);dwQ(this,y,this.LO(),n);ITQ(this,F,{seekSource:89,eO:"lifa_skip"});this.w5|| (this.w5=this.events.G(this.api,"progresssync",function(){kY(Z.api.Hj(),(0,g.tP)(),"ad_to_video");Z.w5&&(Z.events.o0(Z.w5),Z.w5=null)})); return!0}; g.Q.ZX=function(n){if(this.playback.getVideoData().Cq()){var Z=this.N.N.get(n);if(Z){Z=g.Y(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var y=this.X.get(F.cpn);this.X.delete(F.cpn);y&&this.playback.removeCueRange(y);xbe(this.N,F)}this.S.clear();Z=this.N;var l;F=(l=Z.N.get(n))!=null?l:[];l=g.Y(F);for(F=l.next();!F.done;F=l.next())xbe(Z,F.value);Z.N.delete(n);(n=this.Bx.get(n))&&this.oX&&this.playback.j3(n)}}}; g.Q.oW=function(n,Z){((Z===void 0?0:Z)||this.xi)&&this.playback.Xp("sdai",n)}; var Zi7=0;g.d(Sj,g.I);g.Q=Sj.prototype;g.Q.onCueRangeEnter=function(n){if(this.N===this.app.Z4()){var Z=this.S.get(n);Z?bmp(this,Z.target,Z.Ot,n):this.FI("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:n.toString()})}else if(Z=this.X.find(function(l){return l.xg.Is===n})){var F=Z.xg,y=F.target; F=F.Ot;y?bmp(this,y,F,n):vd3(this,Z.AD,F,n)}}; g.Q.onQueuedVideoLoaded=function(){var n=this.J;Wc(this);if(n){if(!kS(this,n)){var Z=this.app.Z4();this.FI("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:Z==null?void 0:Z.getVideoData().clientPlaybackNonce,ccpn:""+n.playerVars.cpn})}this.app.Z4().addCueRange(n.xg.Is)}}; g.Q.seekTo=function(n,Z,F,y){n=n===void 0?0:n;Z=Z===void 0?{}:Z;y=y===void 0?null:y;if(F===void 0?0:F)fBo(this,n,Z);else{F=this.app.Z4()||null;var l=F===this.V?this.C:null;YP(this,!1);this.Ns=n;this.Pr=Z;y!=null&&this.L.start(y);F&&(this.C=l||F.getPlayerState(),F.SJ(),this.V=F)}}; g.Q.Rh=function(n){g.On(n,128)&&wq7(this)}; g.Q.isManifestless=function(){return wk(this.N.getVideoData())}; g.Q.IY=function(){YP(this,!1);mLU(this);g.I.prototype.IY.call(this)}; g.Q.FI=function(n,Z){this.N.FI(new g.Xv(n,Z))}; var Uw3=0;var GMQ="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_APPS 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.d(YE,g.I);YE.prototype.IQ=function(n){if(n)return this.X.get(n)}; YE.prototype.IY=function(){this.N.removeAll();this.X.removeAll();g.I.prototype.IY.call(this)};g.KtO=bO(function(){var n=window.AudioContext||window.webkitAudioContext;try{return new n}catch(Z){return Z.name}});g.d(w2,g.R);g.Q=w2.prototype;g.Q.c9=function(){g.ob(this.element,g.S7.apply(0,arguments))}; g.Q.Q_=function(){this.d1&&(this.d1.removeEventListener("focus",this.d3),g.OG(this.d1),this.d1=null)}; g.Q.fX=function(){this.CR();var n=this.app.B();n.Oq||this.c9("tag-pool-enabled");n.C&&this.c9(g.qm.HOUSE_BRAND);n.playerStyle==="gvn"&&(this.c9("ytp-gvn"),this.element.style.backgroundColor="transparent");n.kV&&(this.Sm=g.ny("yt-dom-content-change",this.resize,this));this.G(window,"orientationchange",this.resize,this);this.G(window,"resize",this.resize,this)}; g.Q.I1=function(n){g.Tg(this.app.B());this.Mv=!n;hr(this)}; g.Q.resize=function(){if(this.d1){var n=this.hB();if(!n.isEmpty()){this.app.JG.isFullscreen()&&QM()&&this.Qo.start();var Z=!g.OF(n,this.yS.getSize()),F=tPo(this);Z&&(this.yS.width=n.width,this.yS.height=n.height);n=this.app.B();(F||Z||this.uW||n.kV)&&this.app.JG.publish("resize",this.getPlayerSize())}}}; g.Q.ED=function(n,Z){this.updateVideoData(Z)}; g.Q.updateVideoData=function(n){if(this.d1){var Z=this.app.B();Zq&&(this.d1.setAttribute("x-webkit-airplay","allow"),n.title?this.d1.setAttribute("title",n.title):this.d1.removeAttribute("title"));this.d1.setAttribute("controlslist","nodownload");Z.T4&&n.videoId&&(this.d1.poster=n.Sn("default.jpg"))}Z=g.$8(n,"yt:bgcolor");this.K5.style.backgroundColor=Z?Z:"";this.Oe=oz(g.$8(n,"yt:stretch"));this.l6=oz(g.$8(n,"yt:crop"),!0);g.w4(this.element,"ytp-dni",n.vV);this.resize()}; g.Q.setGlobalCrop=function(n){this.Y9=oz(n,!0);this.resize()}; g.Q.setCenterCrop=function(n){this.Jh=n;this.resize()}; g.Q.XD=function(){}; g.Q.getPlayerSize=function(){var n=this.app.B(),Z=this.app.JG.isFullscreen(),F=n.externalFullscreen&&g.R6(n);if(Z&&QM()&&!F)return new g.Kz(window.outerWidth,window.outerHeight);F=!isNaN(this.gh.width)&&!isNaN(this.gh.height);var y=this.app.B().j("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.B().j("web_watch_enable_fs_squeezeback_panels");if(Z&&!F&&y)return new g.Kz(this.element.clientWidth,this.element.clientHeight);if(Z||n.uD){if(window.matchMedia){n="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.NI&&this.NI.media===n||(this.NI=window.matchMedia(n));var l=this.NI&&this.NI.matches}if(l)return new g.Kz(window.innerWidth,window.innerHeight)}else if(F)return this.gh.clone();return new g.Kz(this.element.clientWidth,this.element.clientHeight)}; g.Q.hB=function(){var n=this.app.B().j("enable_desktop_player_underlay"),Z=this.getPlayerSize(),F=g.jf(this.app.B().experiments,"player_underlay_min_player_width");return n&&this.B0&&Z.width>F?(n=g.jf(this.app.B().experiments,"player_underlay_video_width_fraction"),new g.Kz(Math.min(Z.height*this.getVideoAspectRatio(),Z.width*n),Math.min(Z.height,Z.width*n/this.getVideoAspectRatio()))):Z}; g.Q.getVideoAspectRatio=function(){return isNaN(this.Oe)?z9p(this):this.Oe}; g.Q.getVideoContentRect=function(n){var Z=this.hB();n=kRY(this,Z,this.getVideoAspectRatio(),n);return new g.c1((Z.width-n.width)/2,(Z.height-n.height)/2,n.width,n.height)}; g.Q.qN=function(n){this.B0=n;this.resize()}; g.Q.Az=function(){return this.CM}; g.Q.onMutedAutoplayChange=function(){hr(this)}; g.Q.setInternalSize=function(n){g.OF(this.gh,n)||(this.gh=n,this.resize())}; g.Q.IY=function(){this.Sm&&g.Sv(this.Sm);this.Q_();g.R.prototype.IY.call(this)};g.Q=B6p.prototype;g.Q.click=function(n,Z){this.elements.has(n);this.N.has(n);var F=g.f_();F&&n.visualElement&&g.ok(F,n.visualElement,Z)}; g.Q.createClientVe=function(n,Z,F,y){var l=this;y=y===void 0?!1:y;this.elements.has(n);this.elements.add(n);F=fr(F);n.visualElement=F;var m=g.f_(),a=g.Wg();m&&a&&(g.N5("combine_ve_grafts")?rq(FE(),F,a):g.gU(g.JI)(void 0,m,a,F));Z.addOnDisposeCallback(function(){l.elements.has(n)&&l.destroyVe(n)}); y&&this.X.add(n)}; g.Q.createServerVe=function(n,Z,F){var y=this;F=F===void 0?!1:F;this.elements.has(n);this.elements.add(n);Z.addOnDisposeCallback(function(){y.destroyVe(n)}); F&&this.X.add(n)}; g.Q.destroyVe=function(n){this.elements.has(n);this.elements.delete(n);this.T.delete(n);this.N.delete(n);this.X.delete(n)}; g.Q.Ah=function(n,Z){this.clientPlaybackNonce!==Z&&(this.clientPlaybackNonce=Z,Xy(FE(),n),kl3(this))}; g.Q.setTrackingParams=function(n,Z){this.elements.has(n);Z&&(n.visualElement=g.fE(Z))}; g.Q.yP=function(n,Z,F){this.elements.has(n);Z?this.N.add(n):this.N.delete(n);var y=g.f_(),l=n.visualElement;this.X.has(n)?y&&l&&(Z?g.be(y,[l]):g.vh(y,[l])):Z&&!this.T.has(n)&&(y&&l&&g.Gx(y,l,void 0,F),this.T.add(n))}; g.Q.hasVe=function(n){return this.elements.has(n)};g.d(g.vs,g.I);g.vs.create=function(n,Z,F,y){try{var l=typeof n==="string"?n:"player"+g.c2(n),m=ct[l];if(m){try{m.dispose()}catch(D){g.ZW(D)}ct[l]=null}var a=new g.vs(n,Z,F,y);a.addOnDisposeCallback(function(){ct[l]=null;a.cg&&a.cg()}); return ct[l]=a}catch(D){throw g.ZW(D),(D&&D instanceof Error?D:Error(String(D))).stack;}}; g.Q=g.vs.prototype;g.Q.Rs=function(){return this.visibility}; g.Q.EP=function(n){var Z=this.Px();if(n!==Z){n.getVideoData().autonavState=Z.getVideoData().autonavState;Z.h7(this.e1,this);var F=Z.getPlaybackRate();Z.dispose();this.qd.EP(n);n.setPlaybackRate(F);n.Vu(this.e1,this);cs(this)}}; g.Q.ZE=function(){this.ao||(this.ao=g.fG(XE(),GRf()));return this.ao}; g.Q.Q_=function(n){if(this.mediaElement){this.KL&&(this.events.o0(this.KL),this.KL=null);g.xU(this.LY);this.Z4().Q_(!0,!1,n);this.template.Q_();try{this.j("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Lz()}catch(Z){g.yi(Z)}this.mediaElement=null}}; g.Q.x7=function(n,Z,F){if(n!==this.Z4()){var y=null;if(F===void 0||!F){F=this.Z4();y=F.getPlayerState();XL(this.Kq,3);gC(this,"cuerangesremoved",F.bG());this.mf&&!n.isGapless()&&F.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();F=n.Ef()&&F.Ef();this.bN.Y7("iv_s");F=F===void 0?!0:F;var l;if(l=this.eH){l=this.eH;var m=this.mediaElement;l=!!m&&m===l.mediaElement}l&&(this.Q_(),Ll(this));l=this.Z4();l.Q_(!F);l.h7(this.Ka,this);l.getPlayerType()!==1&&l.dispose();F=this.qd;F.T=F.N;Dc(F)}n.getPlayerType()=== 1&&this.EP(n);F=n.getPlayerType();l=this.qd.V[F]||null;n!==this.Px()&&n!==l&&(l==null||l.dispose(),this.qd.V[F]=n);this.qd.x7(n);this.mediaElement&&n.setMediaElement(this.mediaElement);n.Vu(this.Ka,this);n.jN()?ZcK(this,"setPresenting",!1):(this.ED("newdata",n,n.getVideoData()),y&&!g.UM8(y,n.getPlayerState())&&this.Dz(new g.gZ(n.getPlayerState(),y)),Z=Z&&n.getPlayerType()===1,n.Wp()&&!Z&&this.ED("dataloaded",n,n.getVideoData()),(Z=(Z=n.getVideoData().X)&&Z.video)&&this.JG.SV("onPlaybackQualityChange", Z.quality),gC(this,"cuerangesadded",n.bG()),Z=n.getPlayerState(),g.b(Z,2)?BGj(this):g.b(Z,8)?n.playVideo():n.CY()&&n.pauseVideo(),Z=this.Px(),n.getPlayerType()===2&&(n.getVideoData().SR=Z.getVideoData().clientPlaybackNonce),n.getPlayerType()!==2||this.DD()||(n=n.getVideoData(),Z.fU(n.clientPlaybackNonce,n.Hx||"",n.breakType||0,n.Wu,n.videoId||"")))}}; g.Q.sO=function(){this.Px()!==this.Z4()&&this.x7(this.Px())}; g.Q.iG=function(){return this.qd}; g.Q.zo=function(n){return this.qd.zo(n)}; g.Q.iP=function(n){return this.qd.iP(n)}; g.Q.Px=function(){return this.qd.Px()}; g.Q.Z4=function(){return this.qd.Z4()}; g.Q.E_=hA(44);g.Q.Yr5=function(){Kd(this)||this.D6(5)}; g.Q.OqY=function(){if(!Kd(this)){Vo(this);var n=this.Z4(),Z=n.getPlayerState();n.CY()?this.pauseVideo():Z.isOrWillBePlaying()&&this.playVideo()}}; g.Q.canPlayType=function(n){return he(n)}; g.Q.B=function(){return this.Y}; g.Q.getVideoData=function(){return this.Z4().getVideoData()}; g.Q.TL=hA(11);g.Q.dM=function(){return this.Px().getVideoData()}; g.Q.getVideoLoadedFraction=function(n){return(n=g.BQ(this,{playerType:n}))?n.getVideoLoadedFraction():this.qd.N.getVideoLoadedFraction()}; g.Q.Br=function(){return this.template}; g.Q.iN=function(){return this.Kq}; g.Q.Hj=function(){return this.bN}; g.Q.Pi=function(n,Z,F){(Z=g.BQ(this,{playerType:Z===void 0?1:Z}))&&Z.kQ(n,void 0,F)}; g.Q.Dp=function(){var n=this.Kq.Dp();this.JG.publish("videoStatsPingCreated",n);return n}; g.Q.getVolume=function(){return Math.round(this.JG.getVolume())}; g.Q.isMuted=function(){return this.JG.isMuted()}; g.Q.Ph=function(){if(this.Px()===this.Z4()&&this.Ur)return this.Ur.postId}; g.Q.yXu=function(){var n=this;this.j("use_rta_for_player")||(g.f4(this.Y)?g.Cv(this.Y,g.uf(this.getVideoData())).then(function(Z){zl(XE(),Z);GG7(n.getVideoData(),n.Y,n.ZE())}):GG7(this.getVideoData(),this.Y,this.ZE()))}; g.Q.hC=function(n){this.JG.publish("poTokenVideoBindingChange",n)}; g.Q.Wq=function(n){this.JG.publish("d6de4videobindingchange",n)}; g.Q.M8=function(){this.JP&&this.JP.M8()}; g.Q.v8=function(n){this.JP=n}; g.Q.qI=function(n){if(n===1){this.bN.tick("vr");var Z=this.Z4();Z.di();h3e(this.bN,Z.getVideoData(),Fo7(this));B_f(this.Kq)}Z=this.Y;if(y5(Z)&&Z.L||g.Uo(Z)){var F;(((F=this.Z4().getVideoData())==null?0:F.enableServerStitchedDai)||!this.DD())&&this.JG.SV("onAdStateChange",n)}}; g.Q.setLoopVideo=function(n){var Z=this.Z4();Z===this.Px()&&Z.HW()!==n&&(Z.setLoop(n),this.JG.LR("onLoopChange",n))}; g.Q.getLoopVideo=function(){return this.Z4().HW()}; g.Q.setLoopRange=function(n){var Z=!1;!!this.Ur!==!!n?Z=!0:this.Ur&&n&&(Z=this.Ur.startTimeMs!==n.startTimeMs||this.Ur.endTimeMs!==n.endTimeMs||this.Ur.postId!==n.postId||this.Ur.type!==n.type);if(Z){Z=this.Z4();eF(Z.getVideoData())&&Z.Xp("slr",{et:(n==null?void 0:n.endTimeMs)||-1});Z=this.Px();Z.V9("applooprange");if(n){var F=new g.wg(n.startTimeMs,n.endTimeMs,{id:"looprange",namespace:"applooprange"});Z.addCueRange(F)}else{this.dM().clipConfig=void 0;var y;((F=this.Ur)==null?void 0:F.type)!=="repeatChapter"|| isNaN(Number((y=this.Ur)==null?void 0:y.loopCount))||(F={loopCount:String(this.Ur.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.xt("repeatChapterLoopEvent",F))}this.Ur=n;this.JG.LR("onLoopRangeChange",n||void 0);this.Px()===this.Z4()&&(this.mz(),Z.Hc())}}; g.Q.getLoopRange=function(){return this.Ur}; g.Q.mz=function(){var n="",Z=this.Px();this.Ur?Z!==this.Z4()?n="pnea":ylP(this,Z.getCurrentTime())&&(this.Ur.loopCount=0,n="ilr"):n="nlr";var F=this.Z4();if(eF(F.getVideoData()))if(this.j("html5_gapless_log_loop_range_info")){var y,l;F.Xp("slrre",{rej:n,ct:Z.getCurrentTime(),lst:(y=this.Ur)==null?void 0:y.startTimeMs,let:(l=this.Ur)==null?void 0:l.endTimeMs})}else F.Xp("slrre",{});n||I4Y(this)}; g.Q.setPlaybackRate=function(n,Z){if(!isNaN(n)){n=oo7(this,n);var F=this.Px();F.getPlaybackRate()!==n&&(F.setPlaybackRate(n),Z&&!this.Y.V&&g.Oh("yt-player-playback-rate",n),this.JG.SV("onPlaybackRateChange",n))}}; g.Q.getCurrentTime=function(n,Z){Z=Z===void 0?!0:Z;var F=this.qd.qh;if(F)return F.getCurrentTime();var y=n===2&&this.getVideoData().enableServerStitchedDai;F=null;y?F=this.Z4():F=g.BQ(this,{playerType:n});return F?y&&this.fq?(n=this.qd.C)?n.getCurrentTime(Z):F.getCurrentTime():Z?(Z=Wr(this,F),$u(this,Z.getCurrentTime(),Z)):F.getCurrentTime():this.qd.N.getCurrentTime()}; g.Q.fP=function(){var n=g.BQ(this,{playerType:void 0});if(!n)return this.qd.N.fP();n=Wr(this,n);return $u(this,n.fP(),n)}; g.Q.getDuration=function(n,Z){Z=Z===void 0?!0:Z;var F=this.qd.qh;if(F)return F.getDuration();F=this.getVideoData();var y=n===2&&F.enableServerStitchedDai,l=null;y?l=this.Z4():l=g.BQ(this,{playerType:n});if(!l)return this.qd.N.getDuration();if(F.hasProgressBarBoundaries()&&!y){var m,a=Number((m=F.progressBarStartPosition)==null?void 0:m.utcTimeMillis),D;m=Number((D=F.progressBarEndPosition)==null?void 0:D.utcTimeMillis);if(!isNaN(a)&&!isNaN(m))return(m-a)/1E3}if(eF(F)&&!F.isLivePlayback)return Lb(this, n);if(Z)return n=MX(this,l),$u(this,n.getDuration(),n);if(y&&this.fq){if(this.j("html5_huli_ssdai_use_playback_state"))return n=this.qd,n=n.X===n.C?n.X:null,(n==null?void 0:n.getDuration())||0;var p;return((p=this.qd.C)==null?void 0:p.getDuration())||0}return l.getDuration()}; g.Q.Xh=function(n){var Z=g.BQ(this,{playerType:n});return Z?this.DD(Z)?(Z=MX(this,Z),Z.Xh()-Z.getCurrentTime()+this.getCurrentTime(n)):Z.Xh():this.qd.N.Xh()}; g.Q.finishSegmentByCpn=function(){return[]}; g.Q.fX=function(){this.template.fX();var n=this.JG;n.state.element=this.template.element;var Z=n.state.element,F;for(F in n.state.N)n.state.N.hasOwnProperty(F)&&(Z[F]=n.state.N[F]);(n=qOn(this.template.element))&&this.events.G(this.template,n,this.onFullscreenChange)}; g.Q.getDebugText=function(n){var Z=this.Px().Zx(n),F=this.Z4();if(F!==this.Px()){F=F.Zx(n);for(var y=g.Y(Object.keys(F)),l=y.next();!l.done;l=y.next())l=l.value,Z["ad"+l]=F[l];if(n){F=Z;y={};if(l=Nl(document,"movie_player"))y.bounds=l.getBoundingClientRect(),y["class"]=l.className;l={};var m=g.q$("video-ads");m?(Q4K(m,l),l.html=m.outerHTML):l.missing=1;m={};var a=g.q$("videoAdUiSkipContainer"),D=g.q$("ytp-ad-skip-button-container"),p=g.q$("ytp-skip-ad-button"),L=a||D||p;L?(Q4K(L,m),m.ima=a?1:0,m.bulleit= D?1:0,m.component=p?1:0):m.missing=1;y=JSON.stringify({player:y,videoAds:l,skipButton:m});F.ad_skipBtnDbgInfo=y}}n&&this.mediaElement&&(Z["0sz"]=""+(+et(this.mediaElement.getSize())===0),Z.op=this.mediaElement.je("opacity"),F=this.mediaElement.B9().y+this.mediaElement.getSize().height,Z.yof=""+(+F<=0),Z.dis=this.mediaElement.je("display"));n&&((n=(0,g.BF)())&&(Z.gpu=n),(n=this.Y.playerStyle)&&(Z.ps=n),this.Y.aY&&(Z.webview=1),(n=this.webPlayerContextConfig.jsUrl)&&(Z.js=n));Z.debug_playbackQuality= this.JG.getPlaybackQuality(1);Z.debug_date=(new Date).toString();Z.origin=window.origin;Z.timestamp=Date.now();delete Z.uga;delete Z.q;return JSON.stringify(Z,null,2)}; g.Q.getFeedbackProductData=function(){var n={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.B().experiments.experimentIds.join(", "),player_release:K[25]},Z=this.getPlayerStateObject().wB;Z&&(n.player_error_code=Z.errorCode,n.player_error_details=JSON.stringify(Z.errorDetail));return n}; g.Q.getPresentingPlayerType=function(n){if(this.appState===1)return 1;if(Kd(this))return 3;var Z,F,y;return(n&&this.Y.OS().N.Wx(lOj)?(y=(Z=this.qd.X)==null?void 0:Z.isAd())!=null&&y:(F=this.fq)==null?0:iz(F,this.getCurrentTime()))?2:this.Z4().getPlayerType()}; g.Q.QE=function(){return!1}; g.Q.getPlayerStateObject=function(n){var Z=this.qd.qh;return Z?Z.getPlayerState():g.BQ(this,{playerType:n}).getPlayerState()}; g.Q.getAppState=function(){return this.appState}; g.Q.yeG=function(n){switch(n.type){case "loadedmetadata":this.dU.start();n=g.Y(this.DN);for(var Z=n.next();!Z.done;Z=n.next())Z=Z.value,i1P(this,Z.id,Z.yuG,Z.fIR,void 0,!1);this.DN=[];break;case "loadstart":this.bN.Y7("gv");break;case "progress":case "timeupdate":Th(n.target.WE())>=2&&this.bN.Y7("l2s");break;case "playing":g.zW&&this.dU.start();if(g.f4(this.Y))n=!1;else{Z=g.PL(this.iN());n=this.mediaElement.je("display")==="none"||et(this.mediaElement.getSize())===0;var F=En(this.template),y=this.Z4().getVideoData(), l=g.Fu(this.Y);y=Z3(y);Z=!F||Z||l||y||this.Y.hG;n=n&&!Z}n&&(n=this.Z4(),n.i9(),this.getVideoData().fR||(this.getVideoData().fR=1,this.BD(),n.playVideo()))}}; g.Q.jXY=function(n){this.JG.Qm("onLoadProgress",n)}; g.Q.nsx=function(){this.JG.publish("playbackstalledatstart")}; g.Q.Je4=function(n,Z){this.JG.publish("sabrCaptionsDataLoaded",n,Z)}; g.Q.Ww4=function(n){this.Z4().X_(n)}; g.Q.oyp=function(n){this.Z4().NJ(n)}; g.Q.pIi=function(n){n=Wr(this,this.Z4());n=$u(this,n.getCurrentTime(),n);this.JG.SV("onVideoProgress",n);this.Y.pD&&Q2(this,this.visibility.Sx())&&this.pauseVideo()}; g.Q.Uj8=function(){this.JG.SV("onAutoplayBlocked");var n=this.Z4().getVideoData();n&&(n.jR=!0);g.R6(this.Y)&&(n={autoplayBrowserPolicy:Z1(),autoplayIntended:F4(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.xt("embedsAutoplayStatusChanged",n))}; g.Q.reQ=function(){this.JG.publish("progresssync")}; g.Q.k75=function(){this.JG.Qm("onPlaybackPauseAtStart")}; g.Q.FJ8=function(n){if(this.getPresentingPlayerType()===1){g.On(n,1)&&!g.b(n.state,64)&&this.dM().isLivePlayback&&this.Px().isAtLiveHead()&&this.JG.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.On(n,2)){if(this.Ur&&this.Ur.endTimeMs>=(this.getDuration()-1)*1E3){I4Y(this);return}BGj(this)}if(g.b(n.state,128)){var Z=n.state;this.cancelPlayback(5);Z=Z.wB;JSON.stringify({errorData:Z,debugInfo:this.getDebugText(!0)});this.JG.SV("onError",Sjo(Z.errorCode));this.JG.Qm("onDetailedError",{errorCode:Z.errorCode, errorDetail:Z.errorDetail,message:Z.errorMessage,messageKey:Z.h$,cpn:Z.cpn});(0,g.tP)()-this.Y.HE>6048E5&&this.JG.Qm("onReloadRequired")}Z={};if(n.state.isPlaying()&&!n.state.isBuffering()&&!uO("pbresume","ad_to_video")&&uO("_start","ad_to_video")){var F=this.getVideoData();Z.clientPlaybackNonce=F.clientPlaybackNonce;F.videoId&&(Z.videoId=F.videoId);g.HS(Z,"ad_to_video");fZ("pbresume",void 0,"ad_to_video");B_f(this.Kq)}this.JG.publish("applicationplayerstatechange",n)}}; g.Q.Dz=function(n){this.qd.qh||this.JG.publish("presentingplayerstatechange",n)}; g.Q.Rh=function(n){DE(this,$G(n.state));g.b(n.state,1024)&&this.JG.isMutedByMutedAutoplay()&&(Vy(this,{muted:!1,volume:this.jx.volume},!1),Xr(this,!1))}; g.Q.onPlayerRequestSent=function(n){this.JG.LR("onPlayerRequestSent",n)}; g.Q.HS=function(n,Z){n==="newdata"&&cs(this);this.JG.publish("applicationvideodatachange",n,Z)}; g.Q.iqR=function(n,Z){Vo(this);this.JG.Qm("onPlaybackAudioChange",this.JG.getAudioTrack().J2.name);this.JG.publish("internalaudioformatchange",this.JG.getAudioTrack().J2.id,Z)}; g.Q.G7T=function(n){var Z=this.Z4().getVideoData();n===Z&&this.JG.SV("onPlaybackQualityChange",n.X.video.quality)}; g.Q.Ve=function(){var n=this.qd.V[2]||null;n&&(n=n.getVideoData(),this.Z4().Xp("ssdai",{cleanaply:1,acpn:n==null?void 0:n.clientPlaybackNonce,avid:n.videoId,isDai:this.dM().enableServerStitchedDai?1:0}),delete this.qd.V[2])}; g.Q.fM4=function(n,Z){this.ED(n,this.Z4(),Z)}; g.Q.ED=function(n,Z,F){this.Y.eG()&&Z.Xp("vdc",{type:n,vid:F.videoId||"",cpn:F.clientPlaybackNonce||""});Z===this.Px()&&(this.Y.nP=F.oauthToken);Z===this.Px()&&(this.getVideoData().enableServerStitchedDai&&!this.fq?(this.Px().Xp("sdai",{initSstm:1}),this.fq=new g.cr(this.JG,this.Y,this.Px(),this)):!this.getVideoData().enableServerStitchedDai&&this.fq&&(this.fq.dispose(),this.fq=null));if(n==="newdata")XL(this.Kq,2),this.JG.publish("videoplayerreset",Z);else{if(!this.mediaElement)return;if(n==="dataloaded")if(this.Px()=== this.Z4()){if(kj(F.iY,F.oM),!this.Px().getPlayerState().isError()){var y=Kd(this);this.dM().isLoaded();y&&this.D6(6);Ghn(this);Ua(this.Kq)||nji(this)}}else Ghn(this);if(Z.getPlayerType()===1&&(this.Y.lY&&Min(this),this.getVideoData().isLivePlayback&&!this.Y.ma&&this.pN("html5.unsupportedlive",2,"DEVICE_FALLBACK"),F.isLoaded()&&((joP(F)||this.getVideoData().XW)&&this.JG.publish("legacyadtrackingpingchange",this.getVideoData()),F.hasProgressBarBoundaries()))){var l;y=Number((l=this.getVideoData().progressBarEndPosition)== null?void 0:l.utcTimeMillis)/1E3;!isNaN(y)&&(l=this.Xh())&&(l-=this.getCurrentTime(),y=(y-l)*1E3,l=this.gU.progressEndBoundary,(l==null?void 0:l.start)!==y&&(l&&this.jS([l]),y=new g.wg(y,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.Px().addCueRange(y),this.gU.progressEndBoundary=y))}this.JG.publish("videodatachange",n,F,Z.getPlayerType())}this.JG.SV("onVideoDataChange",{type:n,playertype:Z.getPlayerType()});this.mz();(n=F.J_)?this.m5.Ah(n,F.clientPlaybackNonce): kl3(this.m5)}; g.Q.NZ=function(){JD(this,null);this.JG.Qm("onPlaylistUpdate")}; g.Q.vsg=function(n){delete this.gU[n.getId()];this.Px().removeCueRange(n);a:{n=this.getVideoData();var Z,F,y,l,m,a,D,p,L,q,w=((Z=n.w5)==null?void 0:(F=Z.contents)==null?void 0:(y=F.singleColumnWatchNextResults)==null?void 0:(l=y.autoplay)==null?void 0:(m=l.autoplay)==null?void 0:m.sets)||((a=n.w5)==null?void 0:(D=a.contents)==null?void 0:(p=D.twoColumnWatchNextResults)==null?void 0:(L=p.autoplay)==null?void 0:(q=L.autoplay)==null?void 0:q.sets);if(w)for(Z=g.Y(w),F=Z.next();!F.done;F=Z.next())if(F= F.value,l=y=void 0,F=F.autoplayVideo||((y=F.autoplayVideoRenderer)==null?void 0:(l=y.autoplayEndpointRenderer)==null?void 0:l.endpoint),y=g.e(F,g.v_),m=l=void 0,F!=null&&((l=y)==null?void 0:l.videoId)===n.videoId&&((m=y)==null?0:m.continuePlayback)){n=F;break a}n=null}(Z=g.e(n,g.v_))&&this.JG.LR("onPlayVideo",{sessionData:{autonav:"1",itct:n==null?void 0:n.clickTrackingParams},videoId:Z.videoId,watchEndpoint:Z})}; g.Q.D6=function(n){n!==this.appState&&(n===2&&this.getPresentingPlayerType()===1&&(DE(this,-1),DE(this,5)),this.appState=n,this.JG.publish("appstatechange",n))}; g.Q.pN=function(n,Z,F,y,l){this.Px().Mj(n,Z,F,y,l)}; g.Q.dF=hA(13);g.Q.isAtLiveHead=function(n,Z){Z=Z===void 0?!1:Z;var F=g.BQ(this,{playerType:n});if(!F)return this.qd.N.isAtLiveHead();n=MX(this,F);F=Wr(this,F);return n!==F?n.isAtLiveHead($u(this,F.getCurrentTime(),F),!0):n.isAtLiveHead(void 0,Z)}; g.Q.Hn=function(){var n=g.BQ(this,{playerType:void 0});return n?MX(this,n).Hn():this.qd.N.Hn()}; g.Q.seekTo=function(n,Z,F,y,l,m){Z=Z!==!1;if(y=g.BQ(this,{playerType:y}))if(this.appState===2&&P9(this),this.DD(y))J2(this)?this.fq.seekTo(n,{seekSource:l},Z,F):this.CJ.seekTo(n,{seekSource:l},Z,F);else{this.j("html5_sabr_csdai_seek_log")||(m="");var a;y.seekTo(n,{OB:!Z,fC:F,eO:"application"+((a=m)!=null?a:""),seekSource:l})}}; g.Q.seekBy=function(n,Z,F,y){this.seekTo(this.getCurrentTime()+n,Z,F,y,void 0,"_by")}; g.Q.aMT=function(){this.JG.SV("SEEK_COMPLETE")}; g.Q.wI4=function(){this.JG.LR("onAbnormalityDetected")}; g.Q.KC4=function(n){this.JG.LR("onSnackbarMessage",n)}; g.Q.cex=function(n){var Z=this.Z4(),F=Z.getVideoData();if(this.appState===1||this.appState===2)F.startSeconds=n;this.appState===2?g.b(Z.getPlayerState(),512)||P9(this):this.JG.SV("SEEK_TO",n)}; g.Q.VHY=function(){this.JG.publish("airplayactivechange")}; g.Q.bqT=function(){this.JG.publish("airplayavailabilitychange")}; g.Q.showAirplayPicker=function(){this.Z4().IA()}; g.Q.zYG=function(){this.JG.publish("beginseeking")}; g.Q.osG=function(){this.JG.publish("endseeking")}; g.Q.getStoryboardFormat=function(n){return(n=g.BQ(this,{playerType:n}))?MX(this,n).getStoryboardFormat():this.qd.N.getStoryboardFormat()}; g.Q.LF=function(n){return(n=g.BQ(this,{playerType:n}))?MX(this,n).getVideoData().LF():this.qd.N.LF()}; g.Q.DD=function(n){n=(n||this.Z4()).getVideoData();if(J2(this))n=n===this.fq.playback.getVideoData();else a:{var Z=this.CJ;if(n===Z.N.getVideoData()&&Z.X.length)n=!0;else{Z=g.Y(Z.X);for(var F=Z.next();!F.done;F=Z.next())if(n.sS===F.value.sS){n=!0;break a}n=!1}}return n}; g.Q.Zh=function(n,Z,F,y,l,m,a,D){var p=J2(this);this.Z4().Xp("appattl",{sstm:this.fq?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:p});p?(F=l9n(this.fq,n,Z,F,y,l,m,a,D),n=(F==null?void 0:F.sS)||"",(this.j("html5_ssdai_new_decoration_logic")||this.Px().getVideoData().FN)&&this.Px().va(D||"",Z,(F==null?void 0:F.clientPlaybackNonce)||"")):n=N9f(this.CJ,n,F,y,l,m);return n}; g.Q.kq=function(n,Z,F,y,l,m,a,D){if(J2(this)){var p;(p=this.fq)==null||l9n(p,n,Z,F,y,l,m,a,D)}}; g.Q.FR=function(n){(this.j("html5_ssdai_new_decoration_logic")||this.Px().getVideoData().FN)&&this.Px().va(n,"","");var Z;(Z=this.fq)==null||Z.FR(n)}; g.Q.ey=function(n,Z){n=n===void 0?-1:n;Z=Z===void 0?Infinity:Z;J2(this)||mLU(this.CJ,n,Z)}; g.Q.t6=function(n,Z,F){if(J2(this)){var y=this.fq,l=y.N.zo({sS:n});l?(F===void 0&&(F=l.AD),Meo(y,l,Z,F)):y.iL("Invalid_timelinePlaybackId_"+n+"_specified")}else{y=this.CJ;l=null;for(var m=g.Y(y.X),a=m.next();!a.done;a=m.next())if(a=a.value,a.sS===n){l=a;break}l?(F===void 0&&(F=l.AD),oh3(y,l,Z,F)):uu(y,"InvalidTimelinePlaybackId timelinePlaybackId="+n)}}; g.Q.enqueueVideoByPlayerVars=function(n,Z,F,y){F=F===void 0?Infinity:F;y=y===void 0?"":y;this.DD();n=new g.O8(this.Y,n);y&&(n.sS=y);QYj(this,n,Z,F)}; g.Q.queueNextVideo=function(n,Z,F,y,l){F=F===void 0?NaN:F;n=this.preloadVideoByPlayerVars(n,Z===void 0?1:Z,F,y===void 0?"":y,l===void 0?"":l);Z=this.Z4();n&&(this.j("html5_check_queue_on_data_loaded")?this.B().supportsGaplessShorts()&&Z.getVideoData().J&&(F=this.Q$,y=this.mf.S,F.V!==n&&(F.X=Z,F.V=n,F.T=1,F.N=n.getVideoData(),F.S=y,F.N.isLoaded()?F.C():F.N.subscribe("dataloaded",F.C,F))):(F=this.Y.experiments.OS().N.Wx(an),F=r3T(Z,n,this.mf.S,F),F!=null?(Z.Xp("sgap",F),Z.getVideoData().J&&Z.Yw(!1)): (n=n.getVideoData(),Z=this.Q$,Z.N!==n&&(Z.N=n,Z.T=1,n.isLoaded()?Z.J():Z.N.subscribe("dataloaded",Z.J,Z)))))}; g.Q.Lv=function(n,Z,F,y){var l=this;F=F===void 0?0:F;y=y===void 0?0:y;MX(this,this.Z4()).V$();WMT(this.mf,n,Z,F,y).then(function(){l.JG.Qm("onQueuedVideoLoaded")},function(){})}; g.Q.vj=function(){return this.mf.vj()}; g.Q.HL=function(n){var Z=this.mf.N;return Z?Z.Bv(n):!1}; g.Q.clearQueue=function(n,Z){this.mf.clearQueue(n===void 0?!1:n,Z===void 0?!1:Z)}; g.Q.loadVideoByPlayerVars=function(n,Z,F,y,l,m){Z=Z===void 0?1:Z;var a=this.Px();if(Z===2&&this.dM().enableServerStitchedDai&&a&&!a.FW())return a.Xp("lvonss",{vid:(n==null?void 0:n.videoId)||"",ptype:Z}),!1;var D=!1;a=new g.O8(this.Y,n);a.nP=m;g.TH(this.Y)&&!a.yU&&qV(this.bN);var p;m=this.bN;var L=(p=a.Pr)!=null?p:"";m.timerName=L;this.bN.ZC("pl_i");this.j("web_player_early_cpn")&&a.clientPlaybackNonce&&this.bN.infoGel({clientPlaybackNonce:a.clientPlaybackNonce});wGi(a).supportsVp9Encoding===!1&& this.Z4().Xp("noVp9enc",{});if(this.B().supportsGaplessShorts()){p=auo(this.mf,a,Z);if(p==null){DE(this,-1);var q;((q=this.mf.N)==null?0:q.getVideoData().isAd())||b2(this);n=this.mf;n.app.B().j("html5_gapless_new_slr")?qC(n.app,"gaplessshortslooprange"):n.app.setLoopRange(null);n.app.getVideoData().tY=!0;var w;(w=n.N)==null||w.A3();var T;(T=n.N)==null||T.B3();F={eO:"gapless_to_next_video",seekSource:60,I_:n.S.N};y=Q7U(n);if(n.S.N){var P;l=((P=n.T)==null?void 0:DH(P))||{};P=l.Pk;l=l.gm;l!=null&&P!= null&&(y=l-P+.001)}var J;(J=n.app.Z4())==null||J.seekTo(y,F);if(!n.app.getPlayerStateObject(Z).isPlaying()){var U;(U=n.app.Z4())==null||U.playVideo(!0)}var h;(h=n.app.Z4())==null||h.hO();n.J();return!0}J=this.j("html5_shorts_gapless_preload_fallback");U=this.mf.N;J&&U&&!U.CR()&&(h=U.getVideoData(),this.qd.J.set(tc(Z,h),U,3600));this.mf.clearQueue(J);this.Z4().Xp("sgap",{f:p})}if(l){for(;a.Aa.length&&a.Aa[0].isExpired();)a.Aa.shift();J=a.Aa.length-1;D=J>0&&l.X(a.Aa[J])&&l.X(a.Aa[J-1]);a.Aa.push(l)}F|| (n&&qt(n)?(wM(this.Y)&&!this.wc&&(n.fetch=0),JD(this,n)):this.playlist&&JD(this,null),n&&(this.wc=C6(!1,n.external_list)));this.JG.publish("loadvideo");J=this.G2(a,Z,y);D&&this.pN("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+a.Aa.join()).replace(/[;:,]/g,"_"));return J}; g.Q.preloadVideoByPlayerVars=function(n,Z,F,y,l){Z=Z===void 0?1:Z;F=F===void 0?NaN:F;l=l===void 0?"":l;y=Z;var m=l,a=au(n);if(y=this.qd.J.get(y+"_"+a+"_"+m+"_"+ +(n.autonav==="1"||n.autonav===!0)+ +(n.autoplay==="1"||n.autoplay===!0||n.autoplay===1))||null)return y;n=new g.O8(this.Y,n);l&&(n.sS=l);l=tc(Z,n);y=this.Z4();m=tc(y.getPlayerType(),y.getVideoData());l===m?(y.d_(!0),n.dispose(),F=null):(n.Bx=!0,y=FD(this,Z,n,!0),(Z!==1||!JQ(this.Y)||this.Y.j("html5_allow_multiview_tile_preload")&&n.tL)&& y.d_(!0),this.qd.J.set(l,y,F||3600),F=y);return F}; g.Q.setMinimized=function(n){this.visibility.setMinimized(n);(n=YFo(this.Kq))&&(this.isMinimized()?n.load():n.unload());this.JG.publish("minimized")}; g.Q.setInline=function(n){this.visibility.setInline(n)}; g.Q.setInlinePreview=function(n){this.visibility.setInline(n)}; g.Q.OH=function(n){XLY(this,n)||this.visibility.OH(n)}; g.Q.setSqueezeback=function(n){this.visibility.setSqueezeback(n)}; g.Q.uO=function(){var n,Z=(n=this.mediaElement)==null?void 0:n.w1();Z&&(this.Y.Vs&&Cq(vO(function(){return document.exitFullscreen()}),function(){}),Cq(vO(function(){return yZ(Z)}),function(){}))}; g.Q.sZY=function(){this.mediaElement.w1();this.mediaElement.w1().webkitPresentationMode==="picture-in-picture"?this.OH(!0):this.OH(!1)}; g.Q.togglePictureInPicture=function(){this.Z4().togglePictureInPicture()}; g.Q.G2=function(n,Z,F){var y=this;Z=Z===void 0?1:Z;uO("_start",this.bN.timerName)||g.gU(D0)(void 0,this.bN.timerName);var l=!1,m=fOU(this,Z,n,!1);m?(l=!0,n.dispose()):(m=FD(this,Z,n,!0,F),(this.j("html5_onesie")||this.j("html5_load_before_stop"))&&m.eg()&&m.d_(),this.dU.stop(),Z===1&&Z!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,Z),this.x7(m));m===this.Px()&&(this.Y.nP=n.oauthToken);if(!m.eg())return!1;if(m===this.Px()){this.D6(1);if(this.Y.j("html5_allow_multiview_tile_preload")&& l&&m.getVideoData().tL)return m.Xp("app_lv",{pdl:m.Wp()}),m.Wp()?mI3(this,m):m.subscribe("internalvideodatachange",function(a){a==="dataloaded"&&mI3(y,m)},this),!0; n=P9(this);l&&this.j("html5_player_preload_ad_fix")&&m.getPlayerType()===1&&m.Wp()&&this.ED("dataloaded",m,m.getVideoData());return n}m.zi();return!0}; g.Q.cueVideoByPlayerVars=function(n,Z){var F=this;Z=Z===void 0?1:Z;var y=this.Px();if(this.dM().enableServerStitchedDai&&y&&!y.FW()&&n&&Object.keys(n).length>0)y.Xp("qvonss",{vid:(n==null?void 0:n.videoId)||"",ptype:Z});else if(n&&qt(n))if(this.tj=!0,JD(this,n),(n=g.AP(this.playlist))&&n.uy())eq(this,n,Z);else this.playlist.onReady(function(){HC(F)}); else{Z||(Z=this.getPresentingPlayerType());Z===1&&this.NZ();y=new g.O8(this.Y,n);var l=g.R6(this.Y)&&!this.Y.Tx&&Z===1&&!y.isAd()&&!y.Hx;this.JG.publish("cuevideo",Z);l?(this.Z4().getVideoData().loading=!0,jIe(y,n?n:{}).then(function(m){eq(F,m,Z)}),y.dispose()):eq(this,y,Z)}}; g.Q.S8=function(n,Z,F,y,l,m,a){if(!n&&!F)throw Error("Playback source is invalid");if(sp(this.Y)||g.d5(this.Y))return Z=Z||{},Z.lact=of(),Z.vis=this.JG.getVisibilityState(),this.JG.LR("onPlayVideo",{videoId:n,watchEndpoint:m,sessionData:Z,listId:F}),!1;XdU(this.bN);this.bN.reset();n={video_id:n};y&&(n.autoplay="1");y&&(n.autonav="1");m&&(n.player_params=m.playerParams);a&&(n.oauth_token=a);F?(n.list=F,this.loadPlaylist(n)):this.loadVideoByPlayerVars(n,1);return!0}; g.Q.cuePlaylist=function(n,Z,F,y){this.tj=!0;qbf(this,n,Z,F,y)}; g.Q.loadPlaylist=function(n,Z,F,y){this.tj=!1;qbf(this,n,Z,F,y)}; g.Q.Gv=function(){return this.JG.isMutedByMutedAutoplay()?!1:this.qd.qh?!0:!(!this.playlist||!this.playlist.hasNext())}; g.Q.dS=hA(5); g.Q.nextVideo=function(n,Z){var F=g.Ih(this.Px().getVideoData());g.d0(this.JG)&&F?this.S8(F.videoId,Z?F.O_:F.sessionData,F.playlistId,Z,void 0,F.In||void 0):this.wc?this.JG.Qm("onPlaylistNext"):this.getPresentingPlayerType()===3?BU(this.Kq).nextVideo():!this.playlist||wM(this.Y)&&!this.JG.isFullscreen()||(this.playlist.hasNext(n)&&h17(this.playlist,UJn(this.playlist)),this.playlist.loaded?(n=Z&&this.Y.j("html5_player_autonav_logging"),Z&&this.JG.publish("playlistautonextvideo"),this.G2(g.AP(this.playlist,void 0, Z,n),1)):this.tj=!1)}; g.Q.previousVideo=function(n){this.wc?this.JG.Qm("onPlaylistPrevious"):this.getPresentingPlayerType()===3?BU(this.Kq).rU():!this.playlist||wM(this.Y)&&!this.JG.isFullscreen()||(this.playlist.hasPrevious(n)&&h17(this.playlist,NQP(this.playlist)),this.playlist.loaded?this.G2(g.AP(this.playlist),1):this.tj=!1)}; g.Q.playVideoAt=function(n){this.wc?this.JG.Qm("onPlaylistIndex",n):this.playlist&&(this.playlist.loaded?this.G2(g.AP(this.playlist,n),1):this.tj=!1,h17(this.playlist,n))}; g.Q.getPlaylist=function(){return this.playlist}; g.Q.AU=hA(19);g.Q.RR=function(n){this.DN=g.I$(this.DN,function(m){return m.id!==n}); for(var Z=this.Px(),F=Z.bG(),y=0;y0&&(p=Math.floor(L/1E3))}p=Z?Z.iy:p;var q={AD_BLOCK:this.N++,AD_BREAK_LENGTH:p,AUTONAV_STATE:a9(this.player.B()),CA_TYPE:"image",CPN:D.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Hn()*1E3,LACT:of(),LIVE_INDEX:Z?this.T++:1,LIVE_TARGETING_CONTEXT:Z&&Z.context?Z.context:"",MIDROLL_POS:m? Math.round(m.start/1E3):0,MIDROLL_POS_MS:m?Math.round(m.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Br().hB().height,P_W:this.player.Br().hB().width,YT_REMOTE:l?l.join(","):""},w=js(Ss);Object.keys(w).forEach(function(P){w[P]!=null&&(q[P.toUpperCase()]=w[P].toString())}); F!==""&&(q.BISCOTTI_ID=F);F={};SU(n)&&(F.sts="20394",(Z=this.player.B().forcedExperiments)&&(F.forced_experiments=Z));var T=Fr(g.tM(n,q),F);return T.split("?").length!==2?cc(Error("Invalid AdBreakInfo URL")):g.Cv(this.player.B(),D==null?void 0:D.oauthToken).then(function(P){if(P&&jU()){var J=XE();zl(J,P)}P=y.player.ZE(J);J=khY(y,T,q,D.isMdxPlayback,a);return g.jA(P,J,"/youtubei/v1/player/ad_break").then(function(U){return U})})}; G9.prototype.reset=function(){this.T=this.N=1};g.d(Q_,G9); Q_.prototype.X=function(n,Z,F){Z=Z===void 0?{}:Z;var y=Z.yv;var l=Z.Is;var m=Z.cueProcessedMs;F=F===void 0?"":F;Z=this.N;this.N++;var a=this.player.B().j("h5_disable_macro_substitution_in_get_ad_break")?n:RXK(this,n,{yv:y,Is:l,cueProcessedMs:m},F,Z);if(a.split("?").length!==2)return Math.random()<.1&&g.yi(Error("Invalid AdBreakInfo URL")),cc(Error("Invalid AdBreakInfo URL"));var D=this.player.getVideoData(1).isMdxPlayback,p=F;F=in8.exec(a);F=F!=null&&F.length>=2?F[1]:"";n=C5K.test(a);var L=u$K.exec(a); L=L!=null&&L.length>=2?L[1]:"";var q=bnU.exec(a);q=q!=null&&q.length>=2&&!Number.isNaN(Number(q[1]))?Number(q[1]):1;var w=X4T.exec(a);w=w!=null&&w.length>=2?w[1]:"0";var T=tH(this.player.B().rW),P=g.Yu(this.player.getVideoData(1).Ns,!0);qYY(this,P,a,p===""?"":p,this.player.B(),this.player.getVideoData(1));p={splay:!1,lactMilliseconds:String(of()),playerHeightPixels:Math.trunc(this.player.Br().hB().height),playerWidthPixels:Math.trunc(this.player.Br().hB().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20394,autonavState:a9(this.player.B())};if(D){D={};var J=this.player.B().yQ;AEn(D,J?J.join(","):"")&&(p.mdxContext=D)}if(D=z$Y.includes(T)?void 0:g.qs("PREF")){J=D.split(RegExp("[:&]"));for(var U=0,h=J.length;U1&&v[1].toUpperCase()==="TRUE"){P.user.lockedSafetyMode=!0;break}}p.autoCaptionsDefaultOn=eoi(D)}a=tE7.exec(a);(a=a!=null&&a.length>=2?a[1]:"")&&L&&(P.user.credentialTransferTokens= [{token:a,scope:"VIDEO"}]);a={contentPlaybackContext:p};p=this.player.getVideoData(1).getGetAdBreakContext();D=this.player.getVideoData(1).clientPlaybackNonce;J=m!==void 0?Math.round(m).toString():void 0;U=(y==null?0:y.context)?y.context:void 0;h=0;m&&l&&!y&&(l=l.end-l.start,l>0&&(h=Math.floor(l/1E3)));y=(y=Math.trunc((y?y.iy:h)*1E3))?String(y):void 0;l=this.player.Hn()*1E3;l=Number.isNaN(l)?0:Math.trunc(l);Z={adBlock:Z,params:F,breakIndex:q,breakPositionMs:w,clientPlaybackNonce:D,topLevelDomain:T, isProxyAdTagRequest:n,context:P,overridePlaybackContext:a,cueProcessedMs:J,videoId:L?L:void 0,liveTargetingParams:U,breakLengthMs:y,driftFromHeadMs:l?String(l):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:p?p:void 0};return A47(this,Z)};var pkI={uZx:"replaceUrlMacros",kOs:"onAboutThisAdPopupClosed",W7T:"executeCommand"};icK.prototype.Lk=function(){return"adPingingEndpoint"}; icK.prototype.IT=function(n,Z,F){vUi(this.uY.get(),n,Z,F)};dj.prototype.Lk=function(){return"changeEngagementPanelVisibilityAction"}; dj.prototype.IT=function(n){this.W.LR("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:n})};rW.prototype.Lk=function(){return"loggingUrls"}; rW.prototype.IT=function(n,Z,F){n=g.Y(n);for(var y=n.next();!y.done;y=n.next())y=y.value,vUi(this.uY.get(),y.baseUrl,Z,F,y.attributionSrcMode)};g.d(bUo,g.I);AY7.prototype.oW=function(n,Z){var F={};Z=Object.assign({},Z,(F.cc=this.Qd.ix(),F));this.Qd.W.Xp(n,Z)};g.d(G3,g.I);g.Q=G3.prototype;g.Q.addListener=function(n){this.listeners.push(n)}; g.Q.removeListener=function(n){this.listeners=this.listeners.filter(function(Z){return Z!==n})}; g.Q.OV=function(n,Z,F,y,l,m,a,D){if(n==="")wU("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(n!==this.N||F){this.N=n;this.tG.get().OV(n,Z,F,y,l,m,a,D);this.nR.get().OV(n,Z,F,y,l,m,a,D);var p;(p=this.Je)==null||p.get().OV(n,Z,F,y,l,m,a,D);this.X.OV(n,Z,F,y,l,m,a,D);p=g.Y(this.listeners);for(var L=p.next();!L.done;L=p.next())L.value.OV(n,Z,F,y,l,m,a,D)}else wU("Duplicate content video loaded signal")}; g.Q.pVu=function(){this.N&&this.YR(this.N)}; g.Q.YR=function(n){this.N=void 0;for(var Z=g.Y(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.YR(n)};cB.prototype.xn=function(n,Z,F,y,l){tki(this);this.S=!Z&&F===0;var m=this.W.getVideoData(1),a=this.W.getVideoData(2);m&&(this.contentCpn=m.clientPlaybackNonce,this.videoId=m.videoId,this.N=m.C);a&&(this.adCpn=a.clientPlaybackNonce,this.adVideoId=a.videoId,this.adFormat=a.adFormat);this.V=n;y<=0?(tki(this),this.S=!Z&&F===0):(this.actionType=this.S?Z?"unknown_type":"video_to_ad":Z?"ad_to_video":"ad_to_ad",this.videoStreamType=l?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.T=!0,uO("_start",this.actionType)&&Kzf(this)))}; cB.prototype.reset=function(){return new cB(this.W)};g.d(VP,g.I);VP.prototype.addCueRange=function(n,Z,F,y,l,m,a,D,p){m=m===void 0?3:m;a=a===void 0?1:a;this.N.has(n)?wU("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:n}):(n=new Sbi(n,Z,F,y,m,D,p),this.N.set(n.id,{Is:n,listener:l,cf:a}),this.W.y9([n],a))}; VP.prototype.removeCueRange=function(n){var Z=this.N.get(n);Z?(this.W.Gc([Z.Is],Z.cf),this.N.delete(Z.Is.id)):wU("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:n})}; VP.prototype.onCueRangeEnter=function(n){if(this.N.has(n.id))this.N.get(n.id).listener.onCueRangeEnter(n.id)}; VP.prototype.onCueRangeExit=function(n){if(this.N.has(n.id))this.N.get(n.id).listener.onCueRangeExit(n.id)}; g.d(Sbi,g.wg);vB.prototype.addPlayerResponseForAssociation=function(n){this.W.addPlayerResponseForAssociation(n)};fz.prototype.qI=function(n){this.W.qI(n)}; fz.prototype.wj=function(n){var Z=g.S7.apply(1,arguments);n==="onAdStart"||n==="onAdEnd"?this.W.SV.apply(this.W,[n].concat(g.t(Z))):this.W.LR.apply(this.W,[n].concat(g.t(Z)))};var Z28=null;g.d($dU,g.Xu);$dU.prototype.k9=function(n){return this.N.hasOwnProperty(n)?this.N[n].k9():{}}; g.pv("ytads.bulleit.getVideoMetadata",function(n){return Kt().k9(n)}); g.pv("ytads.bulleit.triggerExternalActivityEvent",function(n,Z,F){var y=Kt();F=x_f(F);F!==null&&y.publish(F,{queryId:n,viewabilityString:Z})});g.Q=X7.prototype;g.Q.rB=function(n,Z){if(!this.N.has(n))return{};if(Z==="seek"){Z=!1;Z=Z===void 0?!1:Z;var F=xW(KO).rR(n,{});F?ZY(F):Z&&(n=xW(KO).VD(null,$1(),!1,n),n.UD=3,CjU([n]));return{}}Z=sGP(Z);if(Z===null)return{};var y=this.W.T2();if(!y)return{};var l=this.W.getPresentingPlayerType(!0);if((F=this.W.getVideoData(l))==null||!F.isAd())return{};F={opt_adElement:y,opt_fullscreen:this.tG.get().isFullscreen()};return fe3(Z,n,F)}; g.Q.vC=function(n,Z,F,y,l){this.N.has(n)&&(y<=0||l<=0||xW(KO).vC(n,Z,F,y,l))}; g.Q.DA=function(n){var Z;(Z=this.N.get(n.queryId))==null||Z.DA()}; g.Q.Bp=function(n){var Z;(Z=this.N.get(n.queryId))==null||Z.Bp()}; g.Q.qf=function(n){var Z;(Z=this.N.get(n.queryId))==null||Z.qf()}; g.Q.x3=function(n){var Z;(Z=this.N.get(n.queryId))==null||Z.x3()}; g.Q.vp=function(n){var Z;(Z=this.N.get(n.queryId))==null||Z.vp()};UIT.prototype.send=function(n,Z,F,y){try{Ceo(this,n,Z,F,y===void 0?!1:y)}catch(l){}};g.d(onK,UIT);Kt7.prototype.send=function(n,Z,F,y){var l=!1;try{if(y==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")l=!0,n=mcK(n);y=l;var m=g.Gj(n);if(m[1]==="https")var a=n;else m[1]="https",a=un("https",m[2],m[3],m[4],m[5],m[6],m[7]);var D=wmK(a);m=[];var p=U7Y(a)&&this.U8.get().W.B().experiments.RY("add_auth_headers_to_remarketing_google_dot_com_ping");if(SU(a)||p)m.push({headerType:"USER_AUTH"}),m.push({headerType:"PLUS_PAGE_ID"}),m.push({headerType:"VISITOR_ID"}),m.push({headerType:"EOM_VISITOR_ID"}), m.push({headerType:"AUTH_USER"}),m.push({headerType:"DATASYNC_ID"});this.N.send({baseUrl:a,scrubReferrer:D,headers:m},Z,F,y)}catch(L){}};tO.prototype.Bm=function(){return this.W.Bm(1)};g.d(g7,g.I);g.Q=g7.prototype;g.Q.ix=function(){return this.W.getVideoData(1).clientPlaybackNonce}; g.Q.addListener=function(n){this.listeners.push(n)}; g.Q.removeListener=function(n){this.listeners=this.listeners.filter(function(Z){return Z!==n})}; g.Q.OV=function(){this.Cr.clear();this.w3=null;this.P9.get().clear()}; g.Q.YR=function(){}; g.Q.BO5=function(n,Z,F){Z.videoId==="nPpU29QrbiU"&&this.W.Xp("ads_ssm_vdc_s",{pt:F,dvt:n});JA(this.U8.get())&&n!=="dataloaded"||sYo(this,Z,F)}; g.Q.uYY=function(n,Z){n!==void 0&&(this.w3=n,Z===void 0?wU("Expected ad video start time on SS video changed"):this.Cr.set(n,Z));var F=this.W.getPresentingPlayerType(!0),y=this.W.getVideoData(F),l;n===void 0?l=null:l=this.P9.get().N.get(n)||null;this.W.getVideoData(1).Xp("ads_ssvc",{pt:F,cpn:y==null?void 0:y.clientPlaybackNonce,crtt:this.W.getCurrentTime(1,!1),atlh:this.W.isAtLiveHead(),adstt:Z,pid:n,slid:l==null?void 0:l.layoutId});y?sYo(this,y,F):wU("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.W.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:n})}; g.Q.Bb=function(n,Z){var F=n.author,y=n.clientPlaybackNonce,l=n.isListed,m=n.sS,a=n.title,D=n.DI,p=n.a6,L=n.isMdxPlayback,q=n.zy,w=n.mdxEnvironment,T=n.isAutonav,P=n.Bt,J=n.yU,U=n.C5,h=n.videoId||"",v=n.profilePicture||"",V=n.z6||"",f=n.pP()||!1,W=n.Cq()||!1;n=n.FQ||void 0;m=this.P9.get().N.get(m)||{layoutId:null,slotId:null};var X=this.W.getVideoData(1),u=X.t2();X=X.getPlayerResponse();Z=1E3*this.W.getDuration(Z);var Fp=1E3*this.W.getDuration(1),nQ,$U,mY=(X==null?void 0:(nQ=X.playerConfig)==null? void 0:($U=nQ.daiConfig)==null?void 0:$U.enableDai)||!1,LQ,Zi;nQ=(X==null?void 0:(LQ=X.playerConfig)==null?void 0:(Zi=LQ.daiConfig)==null?void 0:Zi.enablePreroll)||!1;return Object.assign({},m,{videoId:h,author:F,clientPlaybackNonce:y,Ca:Z,bU:Fp,daiEnabled:mY,Xr:nQ,isListed:l,t2:u,profilePicture:v,title:a,z6:V,DI:D,a6:p,FQ:n,isMdxPlayback:L,zy:q,mdxEnvironment:w,isAutonav:T,Bt:P,yU:J,C5:U,pP:f,Cq:W})}; g.Q.IY=function(){this.listeners.length=0;this.p5=null;g.I.prototype.IY.call(this)};g.d(ub,g.I);g.Q=ub.prototype;g.Q.OV=function(){var n=this;this.SY=Ra(function(){n.W.CR()||n.W.P1("ad",1)})}; g.Q.YR=function(){}; g.Q.addListener=function(n){this.listeners.push(n)}; g.Q.removeListener=function(n){this.listeners=this.listeners.filter(function(Z){return Z!==n})}; g.Q.hg=function(){}; g.Q.playVideo=function(){this.W.playVideo()}; g.Q.pauseVideo=function(){this.W.pauseVideo()}; g.Q.resumeVideo=function(n){this.NK(n)&&this.W.playVideo()}; g.Q.NK=function(n){return this.W.getPlayerState(n)===2}; g.Q.getCurrentTimeSec=function(n,Z){var F=this.nR.get().w3;return n!==2||Z||F===null?this.W.getCurrentTime(n,Z):tC(this,F)}; g.Q.getVolume=function(){return this.W.getVolume()}; g.Q.isMuted=function(){return this.W.isMuted()}; g.Q.getPresentingPlayerType=function(){return this.W.getPresentingPlayerType(!0)}; g.Q.getPlayerState=function(n){return this.W.getPlayerState(n)}; g.Q.getGetAdBreakContext=function(){return this.W.getGetAdBreakContext()}; g.Q.isFullscreen=function(){return this.W.isFullscreen()}; g.Q.isAtLiveHead=function(){return this.W.isAtLiveHead()}; g.Q.qN=function(n){this.W.qN(n)}; g.Q.Dji=function(){var n=this.W.getPresentingPlayerType(!0),Z=this.getCurrentTimeSec(n,!1);if(n===2){n=g.Y(this.listeners);for(var F=n.next();!F.done;F=n.next())F.value.kc(Z)}else if(n===1)for(n=g.Y(this.Tv),F=n.next();!F.done;F=n.next())F.value.hg(Z)}; g.Q.lMT=function(n){for(var Z=g.Y(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.LP(n,this.getPresentingPlayerType())}; g.Q.onFullscreenToggled=function(n){for(var Z=g.Y(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.onFullscreenToggled(n)}; g.Q.onVolumeChange=function(){for(var n=g.Y(this.listeners),Z=n.next();!Z.done;Z=n.next())Z.value.onVolumeChange()}; g.Q.dB=function(){for(var n=this.W.isMinimized(),Z=g.Y(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.dB(n)}; g.Q.j0=function(n){for(var Z=g.Y(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.j0(n)}; g.Q.Ln=function(){for(var n=this.W.Br().hB(),Z=g.Y(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.o6(n)}; g.Q.Wn=function(n){for(var Z=g.Y(this.listeners),F=Z.next();!F.done;F=Z.next())F.value.Wn(n)}; g.Q.uL=function(){for(var n=g.Y(this.listeners),Z=n.next();!Z.done;Z=n.next())Z.value.uL()};g.d(pJ3,g.I);g.d(jT,g.I);jT.prototype.IY=function(){this.Et.CR()||this.Et.get().removeListener(this);g.I.prototype.IY.call(this)};WB.prototype.fetch=function(n){var Z=n.J$;return this.N.fetch(n.R_,{yv:n.yv===void 0?void 0:n.yv,Is:Z,cueProcessedMs:n.cueProcessedMs===void 0?0:n.cueProcessedMs}).then(function(F){return S7e(F,Z)})};g.d(Er,g.I);g.Q=Er.prototype;g.Q.addListener=function(n){this.listeners.push(n)}; g.Q.removeListener=function(n){this.listeners=this.listeners.filter(function(Z){return Z!==n})}; g.Q.CQ=function(n){yoQ(this,n,1)}; g.Q.onAdUxClicked=function(n,Z){pp(this,function(F){F.vE(n,Z)})}; g.Q.pj=function(n){pp(this,function(Z){Z.mA(n)})}; g.Q.GM=function(n){pp(this,function(Z){Z.Fa(n)})}; g.Q.vVi=function(n){pp(this,function(Z){Z.c6(n)})};UE.prototype.reduce=function(n){switch(n.event){case "unknown":return}var Z=n.identifier;var F=this.N[Z];F?Z=F:(F={wh:null,JM:-Infinity},Z=this.N[Z]=F);F=n.startSecs+n.N/1E3;if(!(F=this.N.startSecs&&F.startSecs<=this.N.startSecs+this.N.iy)){var y=void 0;if(SR(this.U8.get())&&F.identifier!==((y=this.N)==null?void 0:y.identifier)){var l=y=void 0,m=void 0,a=void 0;QA(this.uY.get(),"ocud","ccpi."+F.identifier+";ccpe."+F.event+";ccps."+F.startSecs+";\n ccpd."+F.iy+";pcpi."+((y=this.N)==null?void 0:y.identifier)+ ";pcpe."+((l=this.N)==null?void 0:l.event)+";\n pcps."+((m=this.N)==null?void 0:m.startSecs)+";pcpd."+((a=this.N)==null?void 0:a.iy)+";")}y=void 0;F.identifier!==((y=this.N)==null?void 0:y.identifier)&&wU("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.N=F,ZqY(this,F)}}; g.Q.IY=function(){this.X!=null&&(this.X.unsubscribe("cuepointupdated",this.xJ,this),this.X=null);this.listeners.length=0;this.kU.length=0;g.I.prototype.IY.call(this)};g.Q=wV.prototype;g.Q.Zh=function(n,Z,F,y,l,m,a,D){return this.W.Zh(n,Z,F,y,l,m,a,D)}; g.Q.ey=function(n,Z){this.W.ey(n,Z)}; g.Q.t6=function(n,Z,F){this.W.t6(n,Z,F)}; g.Q.FR=function(n){this.W.FR(n)}; g.Q.kq=function(n,Z,F,y,l,m,a,D){this.W.kq(n,Z,F,y,l,m,a,D)}; g.Q.wZ=function(n){return this.W.wZ(n)}; g.Q.finishSegmentByCpn=function(n,Z,F){F=jbU(F);this.W.finishSegmentByCpn(n,Z,F)};g.d(bb,g.I);g.d(a1o,g.I);g.d(SGi,g.I);g.d(rYK,g.I);g.d(xTK,g.I);g.d(SX8,g.I);g.d(Si,g.I);Si.prototype.T=function(){return this.X};g.d(QB,Jv); QB.prototype.T=function(n){var Z=n.content;if(Z.componentType==="shopping-companion")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1);this.N.LR("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId,shoppingCompanionCarouselRenderer:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.N,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:this.N.LR("updateKevlarOrC3Companion",{})}else if(Z.componentType==="action-companion")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1); this.N.LR("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId,actionCompanionAdRenderer:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.N,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:Z.renderer&&(Z=this.N.getVideoData(1),this.N.LR("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId})),this.N.LR("updateKevlarOrC3Companion",{})}else if(Z.componentType==="image-companion")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1);this.N.LR("updateKevlarOrC3Companion", {contentVideoId:n&&n.videoId,imageCompanionAdRenderer:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.N,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:Z=this.N.getVideoData(1),this.N.LR("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId}),this.N.LR("updateKevlarOrC3Companion",{})}else if(Z.componentType==="top-banner-image-text-icon-buttoned")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1);this.N.LR("updateKevlarOrC3Companion", {contentVideoId:n&&n.videoId,topBannerImageTextIconButtonedLayoutViewModel:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.N,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:Z.renderer&&(Z=this.N.getVideoData(1),this.N.LR("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId})),this.N.LR("updateKevlarOrC3Companion",{})}else if(Z.componentType==="banner-image")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1);this.N.LR("updateKevlarOrC3Companion", {contentVideoId:n&&n.videoId,bannerImageLayoutViewModel:Z.renderer,layoutId:Z.layoutId,macros:Z.macros,onLayoutVisibleCallback:Z.N,interactionLoggingClientData:Z.interactionLoggingClientData});break;case 3:Z=this.N.getVideoData(1),this.N.LR("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId}),this.N.LR("updateKevlarOrC3Companion",{})}else if(Z.componentType==="ads-engagement-panel")switch(Z=Z.renderer,n.actionType){case 1:case 2:this.N.LR("updateEngagementPanelAction",Z.addAction);this.N.LR("changeEngagementPanelVisibility", Z.expandAction);break;case 3:this.N.LR("changeEngagementPanelVisibility",Z.hideAction),this.N.LR("updateEngagementPanelAction",Z.removeAction)}else if(Z.componentType==="ads-engagement-panel-layout"){var F=Z.renderer;switch(n.actionType){case 1:case 2:this.N.LR("updateEngagementPanelAction",{action:NH(F.addAction),layoutId:Z.layoutId,onLayoutVisibleCallback:Z.N,interactionLoggingClientData:Z.interactionLoggingClientData});this.N.LR("changeEngagementPanelVisibility",NH(F.expandAction));break;case 3:this.N.LR("changeEngagementPanelVisibility", NH(F.hideAction)),this.N.LR("updateEngagementPanelAction",{action:NH(F.removeAction)})}}};g.d(X$,By);g.Q=X$.prototype;g.Q.init=function(n,Z,F){By.prototype.init.call(this,n,Z,F);g.a$(this.T,"stroke-dasharray","0 "+this.X);this.T.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.S.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.V.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){j8(this);By.prototype.hide.call(this)}; g.Q.show=function(){Uk(this);By.prototype.show.call(this)}; g.Q.Np=function(){this.hide()}; g.Q.m7=function(){if(this.N){var n=this.N.getProgressState();n!=null&&n.current!=null&&g.a$(this.T,"stroke-dasharray",n.current/n.seekableEnd*this.X+" "+this.X)}};g.d(wZ,CW);g.Q=wZ.prototype; g.Q.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);if(Z.image&&Z.image.thumbnail)if(Z.headline)if(Z.description)if(Z.backgroundImage&&Z.backgroundImage.thumbnail)if(Z.actionButton&&g.e(Z.actionButton,g.qb))if(n=Z.durationMilliseconds||0,typeof n!=="number"||n<=0)g.ZW(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+n));else if(Z.navigationEndpoint){var y=this.api.getVideoData(2);if(y!=null){var l=Z.image.thumbnail.thumbnails;l!=null&& l.length>0&&g.$q(g.Bu(l[0].url))&&(l[0].url=y.profilePicture,g.$q(g.Bu(y.profilePicture))&&ivi("VideoPlayer",239976093,"Expected non-empty profile picture."));l=Z.backgroundImage.thumbnail.thumbnails;l!=null&&l.length>0&&g.$q(g.Bu(l[0].url))&&(l[0].url=y.Sn());l=Z.headline;l!=null&&g.$q(g.Bu(l.text))&&(l.text=y.author)}this.L.init(Tb("ad-image"),Z.image,F);this.S.init(Tb("ad-text"),Z.headline,F);this.T.init(Tb("ad-text"),Z.description,F);this.aY.init(Tb("ad-image"),Z.backgroundImage,F);y=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.T.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.B().j("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-mono-dark"):y.push("ytp-ad-action-interstitial-action-button-dark");this.api.B().X&&(y.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.B().j("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-mono-dark"):y.push("ytp-ad-action-interstitial-action-button-dark"));this.api.B().j("enable_unified_action_endcap_on_web")&&!this.api.B().X&&(this.api.B().j("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-unified-mono"):y.push("ytp-ad-action-interstitial-action-button-unified"),this.yg.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.L.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.hG.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.oZ.classList.add("ytp-ad-action-interstitial-card-unified"),this.Tx.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.zx.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.jT.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.r5.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new sR(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,y);g.S(this,this.actionButton);this.actionButton.oY(this.yg);this.actionButton.init(Tb("button"),g.e(Z.actionButton,g.qb),F);N2(this.actionButton.element);y=Bli(this.actionButton.element);dN(this.actionButton.element, y+" This link opens in new tab");this.navigationEndpoint=Z.navigationEndpoint;this.V.G(this.jT,"click",this.RO,this);this.V.G(this.Tx,"click",this.RO,this);this.api.B().X||this.V.G(this.zx,"click",this.RO,this);this.N=this.N8?new sP(this.api,n):new gG(n);g.S(this,this.N);if(Z.skipButton){(n=g.e(Z.skipButton,Vgn))&&this.N&&(this.skipButton=new Eu(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.N,this.tb),g.S(this,this.skipButton),this.skipButton.oY(this.element),this.skipButton.init(Tb("skip-button"), n,F));if(F=Z.adBadgeRenderer)if(F=g.e(F,cbT))n=new A_(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,!0,!0),n.oY(this.r5),n.init(Tb("simple-ad-badge"),F,this.macros),g.S(this,n);if(F=Z.adInfoRenderer)if(F=g.e(F,uH))n=new cZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.element,void 0,!0),n.oY(this.r5),n.init(Tb("ad-info-hover-text-button"),F,this.macros),g.S(this,n)}else Z.nonskippableOverlayRenderer&&(n=g.e(Z.nonskippableOverlayRenderer,bH))&&this.N&&(this.X= new wG(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.N,!1),g.S(this,this.X),this.X.oY(this.element),this.X.init(Tb("ad-preview"),n,F));Z.countdownRenderer&&(Z=Z.countdownRenderer,g.e(Z,vR8)&&this.N&&(F=new X$(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.N),g.S(this,F),F.oY(this.element),F.init(Tb("timed-pie-countdown"),g.e(Z,vR8),this.macros)));this.show();this.element.focus()}else g.ZW(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.ZW(Error("AdActionInterstitialRenderer has no button."));else g.ZW(Error("AdActionInterstitialRenderer has no background AdImage."));else g.ZW(Error("AdActionInterstitialRenderer has no description AdText."));else g.ZW(Error("AdActionInterstitialRenderer has no headline AdText."));else g.ZW(Error("AdActionInterstitialRenderer has no image."))}; g.Q.clear=function(){g.xU(this.V);this.hide()}; g.Q.show=function(){Ii3(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.X&&this.X.show();CW.prototype.show.call(this)}; g.Q.hide=function(){Ii3(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.X&&this.X.hide();CW.prototype.hide.call(this)}; g.Q.RO=function(){this.navigationEndpoint&&(this.layoutId?this.Hr.executeCommand(this.navigationEndpoint,this.layoutId):g.ZW(Error("Missing layoutId for ad action interstitial.")))};var JV={iconType:"CLOSE"},QE=new g.Kz(320,63);g.d(Pa7,CW);g.Q=Pa7.prototype; g.Q.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);this.V=Z;this.L=g.rU(this.V.onClickCommands||[]);this.r5=this.V.onErrorCommand||null;if(n=this.V.contentSupportedRenderer)n=this.V.contentSupportedRenderer,Z=this.V.adInfoRenderer||null,g.e(n,hBY)?(this.S=g.q$("ytp-ad-overlay-ad-info-button-container",this.T.element),ZAp(this,Z),n=IDp(this,g.e(n,hBY))):g.e(n,ERY)?(this.S=g.q$("ytp-ad-overlay-ad-info-button-container",this.X.element),ZAp(this,Z),n=sei(this,g.e(n,ERY))):g.e(n,OJU)?(this.S= g.q$("ytp-ad-overlay-ad-info-button-container",this.N.element),ZAp(this,Z),n=l$o(this,g.e(n,OJU))):(g.ZW(Error("InvideoOverlayAdRenderer content could not be initialized.")),n=!1);n&&(this.show(),Wop(this,!0))}; g.Q.clear=function(){Wop(this,!1);this.jT.reset();this.Tx=0;this.T.hide();this.logVisibility(this.T.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.N.hide();this.logVisibility(this.N.element,!1);this.hide();this.dispose()}; g.Q.pEY=function(){this.yg&&(this.layoutId?this.Hr.executeCommand(this.yg,this.layoutId):g.ZW(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.Q.W$=function(){a:{if(this.V&&this.V.closeButton&&this.V.closeButton.buttonRenderer){var n=this.V.closeButton.buttonRenderer;if(n.serviceEndpoint){n=[n.serviceEndpoint];break a}}n=[]}n=g.Y(n);for(var Z=n.next();!Z.done;Z=n.next())Z=Z.value,this.layoutId?this.Hr.executeCommand(Z,this.layoutId):g.ZW(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.Q.RlG=function(){this.aY||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.Q.w9=function(){this.aY||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.w9("invideo-overlay")}; g.Q.xdp=function(n){n.target===this.S&&g.q$("ytp-ad-button",this.hG.element).click()};g.d(lnQ,By);g.Q=lnQ.prototype;g.Q.init=function(n,Z,F){By.prototype.init.call(this,n,Z,F);n=Z.durationMs;this.T=n==null||n===0?0:n+this.N.getProgressState().current*1E3;if(Z.text)var y=Z.text.templatedAdText;else Z.staticMessage&&(y=Z.staticMessage);this.messageText.init(Tb("ad-text"),y,F);this.messageText.oY(this.X.element);this.V.show(100);this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){idQ(this,!1);By.prototype.hide.call(this);this.X.hide();this.messageText.hide();j8(this)}; g.Q.show=function(){idQ(this,!0);By.prototype.show.call(this);Uk(this);this.X.show();this.messageText.show()}; g.Q.Np=function(){this.hide()}; g.Q.m7=function(){if(this.N!=null){var n=this.N.getProgressState();n!=null&&n.current!=null&&(n=1E3*n.current,!this.Tx&&n>=this.T?(this.V.hide(),this.Tx=!0):this.messageText&&this.messageText.isTemplated()&&(n=Math.max(0,Math.ceil((this.T-n)/1E3)),n!==this.S&&(cp(this.messageText,{TIME_REMAINING:String(n)}),this.S=n)))}};g.d(uie,CW);g.Q=uie.prototype; g.Q.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,{});Z.image&&Z.image.thumbnail?Z.headline?Z.description?Z.actionButton&&g.e(Z.actionButton,g.qb)?(this.T.init(Tb("ad-image"),Z.image,F),this.X.init(Tb("ad-text"),Z.headline,F),this.V.init(Tb("ad-text"),Z.description,F),this.actionButton=new sR(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,["ytp-ad-underlay-action-button"]),Z.backgroundColor&&g.a$(this.element,"background-color",g.T1(Z.backgroundColor)),g.S(this,this.actionButton), this.actionButton.oY(this.S),this.actionButton.init(Tb("button"),g.e(Z.actionButton,g.qb),F),n=g.jf(this.api.B().experiments,"player_underlay_video_width_fraction"),this.api.B().j("place_shrunken_video_on_left_of_player")?(Z=this.N,g.hw(Z,"ytp-ad-underlay-left-container"),g.gi(Z,"ytp-ad-underlay-right-container"),g.a$(this.N,"margin-left",Math.round((n+.02)*100)+"%")):(Z=this.N,g.hw(Z,"ytp-ad-underlay-right-container"),g.gi(Z,"ytp-ad-underlay-left-container")),g.a$(this.N,"width",Math.round((1-n- .04)*100)+"%"),this.api.Az()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.SZ.bind(this)),this.api.addEventListener("resize",this.zT.bind(this))):g.ZW(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.ZW(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.ZW(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.ZW(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.Q.show=function(){$hp(!0);this.actionButton&&this.actionButton.show();CW.prototype.show.call(this)}; g.Q.hide=function(){$hp(!1);this.actionButton&&this.actionButton.hide();CW.prototype.hide.call(this)}; g.Q.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.SZ.bind(this));this.api.removeEventListener("resize",this.zT.bind(this));this.hide()}; g.Q.onClick=function(n){CW.prototype.onClick.call(this,n);this.actionButton&&g.Uq(this.actionButton.element,n.target)&&this.api.pauseVideo()}; g.Q.SZ=function(n){n==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):n==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):n==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))}; g.Q.zT=function(n){n.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):n.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.a$(this.X.element,"font-size",n.width/40+"px")};g.d(D1,CW); D1.prototype.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);Z.toggledLoggingParams&&(this.toggledLoggingParams=Z.toggledLoggingParams);Z.answer&&g.e(Z.answer,g.qb)?(n=new sR(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),n.oY(this.answer),n.init(Tb("ytp-ad-survey-answer-button"),g.e(Z.answer,g.qb),F),n.show()):Z.answer&&g.e(Z.answer,Sc)&&(this.N=new kL(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr, ["ytp-ad-survey-answer-toggle-button"]),this.N.oY(this.answer),g.S(this,this.N),this.N.init(Tb("survey-answer-button"),g.e(Z.answer,Sc),F));this.show()}; D1.prototype.aN=function(n){this.layoutId?ZZ(this.Hr,n,this.layoutId,this.macros):(n=new g.FV("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.ZW(n))}; D1.prototype.onClick=function(n){CW.prototype.onClick.call(this,n);if(this.api.B().j("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; D1.prototype.clear=function(){this.hide()};g.d(UX,CW);UX.prototype.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);Z.answer&&g.e(Z.answer,Sc)&&(this.button=new kL(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.oY(this.N),this.button.init(Tb("survey-none-of-the-above-button"),g.e(Z.answer,Sc),F));this.show()};g.d(mU,sR);mU.prototype.init=function(n,Z,F){sR.prototype.init.call(this,n,Z,F);n=!1;Z.text&&(Z=g.sg(Z.text),n=!g.$q(Z));n||g.yi(Error("No submit text was present in the renderer."))}; mU.prototype.onClick=function(n){this.publish("l");sR.prototype.onClick.call(this,n)};g.d(Ls,CW); Ls.prototype.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);if(n=Z.skipOrPreviewRenderer)g.e(n,CM)?(n=g.e(n,CM),F=new M6(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.V,!0),F.oY(this.skipOrPreview),F.init(Tb("skip-button"),n,this.macros),g.S(this,F),this.N=F):g.e(n,bH)&&(n=g.e(n,bH),F=new wG(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.V,!1),F.oY(this.skipOrPreview),F.init(Tb("ad-preview"),n,this.macros),F.Tx.show(100),F.show(),g.S(this,F), this.N=F);this.N==null&&(n=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(Z)),g.ZW(n));Z.submitButton&&(n=Z.submitButton,g.e(n,g.qb)&&(n=g.e(n,g.qb),F=new mU(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),F.oY(this.submitButton),F.init(Tb("survey-submit"),n,this.macros),g.S(this,F),this.X=F));if(n=Z.adBadgeRenderer)n=g.e(n,cbT),F=new A_(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,!0,!0,!0),F.oY(this.T),F.init(Tb("simple-ad-badge"), n,this.macros),this.adBadge=F.element,g.S(this,F);if(n=Z.adDurationRemaining)n=g.e(n,j2T),F=new m_(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.V,void 0,!0),F.oY(this.T),F.init(Tb("ad-duration-remaining"),n,this.macros),g.S(this,F);(Z=Z.adInfoRenderer)&&g.e(Z,uH)&&(n=new cZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.element,void 0,!0),g.S(this,n),this.adBadge!==void 0?this.T.insertBefore(n.element,this.adBadge.nextSibling):n.oY(this.T),n.init(Tb("ad-info-hover-text-button"), g.e(Z,uH),this.macros));this.show()}; Ls.prototype.clear=function(){this.hide()};g.d(ex,CW);ex.prototype.init=function(n,Z,F){CW.prototype.init.call(this,n,Z,F);Zw3(this)}; ex.prototype.show=function(){this.T=Date.now();CW.prototype.show.call(this)}; ex.prototype.D7=function(){};g.d(cE,ex);g.Q=cE.prototype;g.Q.init=function(n,Z,F){var y=this;ex.prototype.init.call(this,n,Z,F);Z.questionText&&Mwp(this,Z.questionText);Z.answers&&Z.answers.forEach(function(l,m){g.e(l,Ql)&&Aso(y,g.e(l,Ql),F,m)}); this.S=new Set(this.X.map(function(l){return l.N.N})); (n=Z.noneOfTheAbove)&&(n=g.e(n,Nx7))&&n_e(this,n,F);Z.surveyAdQuestionCommon&&KNQ(this,Z.surveyAdQuestionCommon);Z.submitEndpoints&&(this.submitEndpoints=Z.submitEndpoints);this.G(this.element,"change",this.onChange);this.show()}; g.Q.D7=function(){nB(this,!1);this.V.X.subscribe("l",this.yVR,this)}; g.Q.onChange=function(n){n.target===this.noneOfTheAbove.button.N?x33(this):this.S.has(n.target)&&(this.noneOfTheAbove.button.toggleButton(!1),nB(this,!0))}; g.Q.yVR=function(){var n=[],Z=this.X.reduce(function(l,m,a){var D=m.toggledLoggingParams;m.N&&m.N.isToggled()&&D&&(l.push(D),n.push(a));return l},[]).join("&"),F=this.submitEndpoints.map(function(l){if(!l.loggingUrls)return l; l=g.Q7(l);l.loggingUrls=l.loggingUrls.map(function(m){m.baseUrl&&(m.baseUrl=Yk(m.baseUrl,Z));return m}); return l}); if(F){F=g.Y(F);for(var y=F.next();!y.done;y=F.next())y=y.value,this.layoutId?ZZ(this.Hr,y,this.layoutId,this.macros):g.ZW(Error("Missing layoutId for multi_select_question."))}this.api.B().j("supports_multi_step_on_desktop")&&this.Tx(n)}; g.Q.clear=function(){this.api.B().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.d(wJ,ex);wJ.prototype.init=function(n,Z,F){var y=this;ex.prototype.init.call(this,n,Z,F);Z.questionText&&Mwp(this,Z.questionText);Z.answers&&Z.answers.forEach(function(l,m){g.e(l,Ql)&&Aso(y,g.e(l,Ql),F,m)}); Z.surveyAdQuestionCommon?KNQ(this,Z.surveyAdQuestionCommon):r4(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(Z)));this.show()}; wJ.prototype.clear=function(){this.api.B().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.d(tE,CW);tE.prototype.init=function(n,Z,F){var y=this;CW.prototype.init.call(this,n,Z,F);if(this.api.B().j("supports_multi_step_on_desktop")){var l;this.conditioningRules=(l=Z.conditioningRules)!=null?l:[];var m;this.X=(m=Z.questions)!=null?m:[];var a;((a=Z.questions)==null?0:a.length)&&siK(this,0)}else(Z.questions||[]).forEach(function(D){g.e(D,wm)?xAP(y,g.e(D,wm),F):g.e(D,To)&&lg3(y,g.e(D,To),F)}); this.show()}; tE.prototype.clear=function(){this.api.B().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; tE.prototype.V=function(n){var Z=this;if(this.api.B().j("supports_multi_step_on_desktop")){var F;if((F=this.conditioningRules)==null?0:F.length){var y;if(n.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(l){return l.questionIndex===Z.N})==null)g.ZW(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(l){if(l.questionIndex===Z.N)switch(l.condition){case "CONDITION_ALL_OF":var m;if((m=l.answerIndices)==null?0:m.every(function(D){return n.includes(D)}))y=l.nextQuestionIndex; break;case "CONDITION_ANY_OF":var a;if((a=l.answerIndices)==null?0:a.some(function(D){return n.includes(D)}))y=l.nextQuestionIndex; break;default:g.ZW(Error("Expected specified condition in survey conditioning rules."))}}),y!=null)siK(this,y); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.ZW(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.d(vr,CW); vr.prototype.init=function(n,Z,F){var y=this;CW.prototype.init.call(this,n,Z,F);n=Z.timeoutSeconds||0;if(typeof n!=="number"||n<0)g.ZW(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+n));else if(Z.timeoutCommands)if(Z.text)if(Z.ctaButton&&g.e(Z.ctaButton,g.qb))if(Z.brandImage)if(Z.backgroundImage&&g.e(Z.backgroundImage,sF)&&g.e(Z.backgroundImage,sF).landscape){this.layoutId||g.ZW(Error("Missing layoutId for survey interstitial."));LPT(this.interstitial,g.e(Z.backgroundImage, sF).landscape);LPT(this.logoImage,Z.brandImage);g.uz(this.text,g.sg(Z.text));var l=["ytp-ad-survey-interstitial-action-button"];l.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new sR(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,l);g.S(this,this.actionButton);this.actionButton.oY(this.X);this.actionButton.init(Tb("button"),g.e(Z.ctaButton,g.qb),F);this.actionButton.show();this.N=new sP(this.api,n*1E3);this.N.subscribe("g",function(){y.transition.hide()}); g.S(this,this.N);this.G(this.element,"click",function(m){var a=m.target===y.interstitial;m=y.actionButton.element.contains(m.target);if(a||m)if(y.transition.hide(),a)y.api.onAdUxClicked(y.componentType,y.layoutId)}); this.transition.show(100)}else g.ZW(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.ZW(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.ZW(Error("SurveyTextInterstitialRenderer has no button."));else g.ZW(Error("SurveyTextInterstitialRenderer has no text."));else g.ZW(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; vr.prototype.clear=function(){this.hide()}; vr.prototype.show=function(){b4Q(!0);CW.prototype.show.call(this)}; vr.prototype.hide=function(){b4Q(!1);CW.prototype.hide.call(this)};g.d(Ev,By);g.Q=Ev.prototype; g.Q.init=function(n,Z){By.prototype.init.call(this,n,Z,{});if(Z.durationMilliseconds){if(Z.durationMilliseconds<0){g.ZW(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+Z.durationMilliseconds));return}this.X=Z.durationMilliseconds}else this.X=this.N.Tg();var F;if((F=Z.previewText)==null||!F.text||g.$q(Z.previewText.text))g.ZW(Error("No text is returned for AdPreview."));else{this.S=Z.previewText;Z.previewText.isTemplated||g.uz(this.T,Z.previewText.text);var y; if(((y=this.api.getVideoData(1))==null?0:y.VI)&&Z.previewImage){var l,m;(n=((m=Cde(((l=Z.previewImage)==null?void 0:l.sources)||[],52,!1))==null?void 0:m.url)||"")&&n.length?(this.previewImage=new g.oS({U:"img",K:"ytp-preview-ad__image",Z:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",n),g.S(this,this.previewImage),this.previewImage.oY(this.element)):g.ZW(Error("Failed to get imageUrl in AdPreview."))}else this.T.classList.add("ytp-preview-ad__text--padding--wide")}}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){j8(this);By.prototype.hide.call(this)}; g.Q.show=function(){Uk(this);By.prototype.show.call(this)}; g.Q.Np=function(){this.hide()}; g.Q.m7=function(){if(this.N){var n=this.N.getProgressState();if(n!=null&&n.current)if(n=1E3*n.current,n>=this.X)this.transition.hide();else{var Z;if((Z=this.S)==null?0:Z.isTemplated)if(Z=Math.max(0,Math.ceil((this.X-n)/1E3)),Z!==this.V){var F,y;(n=(F=this.S)==null?void 0:(y=F.text)==null?void 0:y.replace("{TIME_REMAINING}",String(Z)))&&g.uz(this.T,n);this.V=Z}}}};g.d(Pw,CW); Pw.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});var F,y;if((n=((y=Cde(((F=Z.image)==null?void 0:F.sources)||[],RPP(Z),!0))==null?void 0:y.url)||"")&&n.length){F=this.Vg("ytp-ad-avatar");F.src=n;var l,m;if(y=(l=Z.interaction)==null?void 0:(m=l.accessibility)==null?void 0:m.label)F.alt=y;switch(Z.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(Z.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.ZW(Error("Failed to get imageUrl in AdAvatar."))}; Pw.prototype.clear=function(){this.hide()}; Pw.prototype.onClick=function(n){CW.prototype.onClick.call(this,n)};g.d(dM,CW); dM.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});var F;n=(F=Z.label)==null?void 0:F.content;if((F=n!=null&&!g.$q(n))||Z.iconImage){F&&(this.buttonText=new g.oS({U:"span",K:"ytp-ad-button-vm__text",E8:n}),g.S(this,this.buttonText),this.buttonText.oY(this.element));var y,l,m=((y=Z.interaction)==null?0:(l=y.accessibility)==null?0:l.label)||F?n:"";m&&dN(this.element,m+" This link opens in new tab");N2(this.element);if(Z.iconImage){y=void 0;if(Z.iconImage){a:{l=Z.iconImage;if(l.sources)for(l= g.Y(l.sources),n=l.next();!n.done;n=l.next())if(n=n.value,m=void 0,(m=n.clientResource)==null?0:m.imageName){l=n;break a}l=void 0}if(l){var a;y={iconType:(a=l.clientResource)==null?void 0:a.imageName}}}a=Pk(y,!1,this.X);a!=null&&(this.buttonIcon=new g.oS({U:"span",K:"ytp-ad-button-vm__icon",D:[a]}),g.S(this,this.buttonIcon),Z.iconLeading?(aF(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):F?(this.buttonIcon.oY(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.oY(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(Z.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.j("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.N?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(Z.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.yi(Error("AdButton does not have label or an icon."))}; dM.prototype.clear=function(){this.hide()}; dM.prototype.onClick=function(n){CW.prototype.onClick.call(this,n)};g.d(QU,By);g.Q=QU.prototype; g.Q.init=function(n,Z){By.prototype.init.call(this,n,Z,{});if(n=g.e(Z.avatar,ne)){var F=Z.headline;if(F){var y=Z.description;if(y){var l=g.e(Z.button,F_);l?(this.adAvatar.init(Tb("ad-avatar"),n),this.headline.init(Tb("ad-simple-attributed-string"),new Wh(F)),this.description.init(Tb("ad-simple-attributed-string"),new Wh(y)),F.content&&F.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(Tb("ad-button"),l), this.startMilliseconds=Z.startMs||0,this.api.Az()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.o4.bind(this)),Uk(this)):g.ZW(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ZW(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ZW(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ZW(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.Q.m7=function(){if(this.N){var n=this.N.getProgressState();n&&n.current&&1E3*n.current>=this.startMilliseconds&&(j8(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.Q.Np=function(){this.clear()}; g.Q.onClick=function(n){this.api.pauseVideo();By.prototype.onClick.call(this,n)}; g.Q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.o4.bind(this))}; g.Q.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();By.prototype.show.call(this)}; g.Q.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();By.prototype.hide.call(this)}; g.Q.o4=function(n){n==="hidden"?this.show():this.hide()};g.d(Nb,CW);g.Q=Nb.prototype; g.Q.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});if(!Z.label||g.$q(Z.label))g.ZW(Error("No label is returned for SkipAdButton."));else if(g.uz(this.V,Z.label),n=Pk({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.j("delhi_modern_web_player_icons")),n==null)g.ZW(Error("Unable to retrieve icon for SkipAdButton"));else if(this.T=new g.oS({U:"span",K:"ytp-skip-ad-button__icon",D:[n]}),g.S(this,this.T),this.T.oY(this.element),this.api.B().experiments.RY("enable_skip_to_next_messaging")&&(Z=g.Bu(Z.targetId)))this.X= !0,this.element.setAttribute("data-tooltip-target-id",Z),this.element.setAttribute("data-tooltip-target-fixed","")}; g.Q.onClick=function(n){n&&n.preventDefault();var Z,F;wsP(n,{contentCpn:(F=(Z=this.api.getVideoData(1))==null?void 0:Z.clientPlaybackNonce)!=null?F:""})===0?this.api.LR("onAbnormalityDetected"):(CW.prototype.onClick.call(this,n),this.api.LR("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.Q.clear=function(){this.N.reset();this.hide()}; g.Q.hide=function(){CW.prototype.hide.call(this)}; g.Q.show=function(){this.N.start();CW.prototype.show.call(this);this.X&&this.api.B().experiments.RY("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.d(S3i,By);g.Q=S3i.prototype; g.Q.init=function(n,Z){By.prototype.init.call(this,n,Z,{});n=g.e(Z.preskipState,Gqj);var F;if((F=this.api.getVideoData())==null?0:F.isDaiEnabled()){if(!n){g.ZW(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.X=new Ev(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.N);g.S(this,this.X);this.X.oY(this.element);var y;(y=this.X)==null||y.init(Tb("preview-ad"),n);(F=this.X)!=null&&(F.transition.show(100),F.show())}(F=g.e(Z.skippableState,gR3))?(Z.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=Z.skipOffsetMilliseconds:(g.yi(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.T.init(Tb("skip-button"),F),this.show()):g.ZW(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.Q.show=function(){Uk(this);By.prototype.show.call(this)}; g.Q.hide=function(){!this.isSkippable&&this.X?this.X.hide():this.T&&this.T.hide();j8(this);By.prototype.hide.call(this)}; g.Q.clear=function(){var n;(n=this.X)==null||n.clear();this.T&&this.T.clear();j8(this);By.prototype.hide.call(this)}; g.Q.Np=function(){this.hide()}; g.Q.m7=function(){if(1E3*this.N.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var n;(n=this.X)!=null&&n.transition.hide();(n=this.T)!=null&&(n.transition.show(),n.show())}};g.d(uK,CW); uK.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});if(Z.label){var F;((F=Z.label)==null?0:F.content)&&!g.$q(Z.label.content)&&(this.linkText=new g.oS({U:"span",K:"ytp-visit-advertiser-link__text",E8:Z.label.content}),g.S(this,this.linkText),this.linkText.oY(this.element));var y,l;if((y=Z.interaction)==null?0:(l=y.accessibility)==null?0:l.label)dN(this.element,Z.interaction.accessibility.label+" This link opens in new tab");else{var m;((m=Z.label)==null?0:m.content)&&!g.$q(Z.label.content)&&dN(this.element, Z.label.content+" This link opens in new tab")}N2(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.ZW(Error("No label found in VisitAdvertiserLink."))}; uK.prototype.onClick=function(n){CW.prototype.onClick.call(this,n);this.api.onAdUxClicked(this.componentType,this.layoutId)}; uK.prototype.clear=function(){this.hide()};g.d(Mj,CW); Mj.prototype.init=function(n,Z,F,y){CW.prototype.init.call(this,n,Z,{});if(Z.skipOrPreview){F=Z.skipOrPreview;n=g.e(F,iJf);F=g.e(F,Gqj);if(n)this.A0=new S3i(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.X),g.S(this,this.A0),this.A0.oY(this.L),this.A0.init(Tb("skip-ad"),n);else{var l;F&&((l=this.api.getVideoData())==null?0:l.isDaiEnabled())&&(this.V=new Ev(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.X,1),g.S(this,this.V),this.V.oY(this.L),this.V.init(Tb("ad-preview"), F),l=this.V,l.transition.show(100),l.show())}if(l=g.e(Z.skipOrPreview,iJf))var m=l.skipOffsetMilliseconds}Z.playerAdCard&&(l=g.e(Z.playerAdCard,RB3))&&(this.playerAdCard=new QU(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.X),g.S(this,this.playerAdCard),this.playerAdCard.oY(this.zx),this.playerAdCard.init(Tb("ad-avatar-lockup-card"),l));Z.adBadgeRenderer&&((l=g.e(Z.adBadgeRenderer,ZO))?(this.T=new wp(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,!0),g.S(this, this.T),this.T.oY(this.N),this.T.init(Tb("ad-badge"),l)):g.ZW(Error("AdBadgeViewModel is not found in player overlay layout.")));Z.adPodIndex&&(l=g.e(Z.adPodIndex,AbY))&&(this.adPodIndex=new zm(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,this.adPodIndex),this.adPodIndex.oY(this.N),this.adPodIndex.init(Tb("ad-pod-index"),l));Z.adInfoRenderer&&((l=g.e(Z.adInfoRenderer,uH))?(this.adInfoButton=new cZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.element, void 0,!0),g.S(this,this.adInfoButton),this.T!==void 0?this.N.insertBefore(this.adInfoButton.element,this.T.element.nextSibling):this.adInfoButton.oY(this.N),this.adInfoButton.init(Tb("ad-info-hover-text-button"),l,this.macros)):g.yi(Error("AdInfoRenderer is not found in player overlay layout.")));var a;l=(a=this.api.getVideoData())==null?void 0:a.isDaiEnabled();Z.adDurationRemaining&&l&&(a=g.e(Z.adDurationRemaining,j2T))&&(this.adDurationRemaining=new m_(this.api,this.layoutId,this.interactionLoggingClientData, this.Hr,this.X,y.videoAdDurationSeconds,!0),g.S(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.N.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.oY(this.N),this.adDurationRemaining.init(Tb("ad-duration-remaining"),a,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));Z.visitAdvertiserLink&&(y=g.e(Z.visitAdvertiserLink,uCY))&&(this.visitAdvertiserLink=new uK(this.api,this.layoutId, this.interactionLoggingClientData,this.Hr),g.S(this,this.visitAdvertiserLink),this.visitAdvertiserLink.oY(this.N),this.visitAdvertiserLink.init(Tb("visit-advertiser-link"),y));Z.adDisclosureBanner&&(Z=g.e(Z.adDisclosureBanner,fPj))&&(this.adDisclosureBanner=new uJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,this.adDisclosureBanner),this.adDisclosureBanner.oY(this.Tx),this.adDisclosureBanner.init(Tb("ad-disclosure-banner"),Z));this.S=new p3(this.api,this.X,m,!0);g.S(this, this.S);g.y7(this.api,this.S.element,4);this.show()}; Mj.prototype.clear=function(){this.hide()};g.d(li,CW);g.Q=li.prototype; g.Q.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});if(Z!=null&&Z.title)if(n=Z.title)if(this.headline.init(Tb("ad-simple-attributed-string"),new Wh(n)),n=g.e(Z.moreInfoButton,F_)){if(this.moreInfoButton.init(Tb("ad-button"),n),Z.descriptions)Z.descriptions.length>0&&(n=Z.descriptions[0])&&(this.N=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,this.N),this.N.oY(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.N.init(Tb("ad-simple-attributed-string"), new Wh(n))),Z.descriptions.length>1&&(Z=Z.descriptions[1])&&(this.X=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,this.X),this.X.oY(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.X.init(Tb("ad-simple-attributed-string"),new Wh(Z)))}else g.ZW(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.ZW(Error("No headline found in AdGridCardText."));else g.ZW(Error("No headline found in AdGridCardText."))}; g.Q.onClick=function(n){CW.prototype.onClick.call(this,n);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.Q.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var n;(n=this.N)==null||n.clear();var Z;(Z=this.X)==null||Z.clear()}; g.Q.hide=function(){this.headline.hide();this.moreInfoButton.hide();var n;(n=this.N)==null||n.hide();var Z;(Z=this.X)==null||Z.hide();CW.prototype.hide.call(this)}; g.Q.show=function(){CW.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var n;(n=this.N)==null||n.show();var Z;(Z=this.X)==null||Z.show()};g.d(Ke,CW);Ke.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});if(Z!=null&&Z.gridCards)if(Z.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.ZW(Error("Only single column style is currently supported in AdGridCardCollection."));else for(n=g.Y(Z.gridCards),Z=n.next();!Z.done;Z=n.next()){if(Z=g.e(Z.value,xRY)){var F=new li(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);g.S(this,F);F.oY(this.element);F.init(Tb("ad-grid-card-text"),Z);this.N.push(F)}}else g.ZW(Error("No grid cards found in AdGridCardCollection."))}; Ke.prototype.show=function(){for(var n=g.Y(this.N),Z=n.next();!Z.done;Z=n.next())Z.value.show();CW.prototype.show.call(this)}; Ke.prototype.clear=function(){this.hide();for(var n=g.Y(this.N),Z=n.next();!Z.done;Z=n.next())Z.value.clear()}; Ke.prototype.hide=function(){for(var n=g.Y(this.N),Z=n.next();!Z.done;Z=n.next())Z.value.hide();CW.prototype.hide.call(this)};g.d(r_,By);g.Q=r_.prototype;g.Q.init=function(n,Z,F,y,l){l=l===void 0?0:l;By.prototype.init.call(this,n,Z,F,y);this.playerProgressOffsetMs=l;Uk(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.JR.bind(this));this.api.addEventListener("resize",this.Ws.bind(this));this.api.Az()?(this.X=!0,this.api.qN(!0),this.show()):this.hide()}; g.Q.m7=function(){if(this.N){var n=this.N.getProgressState();n&&n.current&&!this.X&&1E3*n.current>=this.playerProgressOffsetMs&&(this.X=!0,this.api.qN(!0),this.show())}}; g.Q.Np=function(){this.X&&this.api.qN(!1);this.hide()}; g.Q.clear=function(){this.api.qN(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.JR.bind(this));this.api.removeEventListener("resize",this.Ws.bind(this));j8(this);this.hide()}; g.Q.hide=function(){XTU(!1);By.prototype.hide.call(this)}; g.Q.show=function(){XTU(!0);By.prototype.show.call(this)};g.d(kzP,r_);g.Q=kzP.prototype; g.Q.init=function(n,Z,F,y){if(Z!=null&&Z.adGridCardCollection)if(Z!=null&&Z.adButton){var l=Number(Z.playerProgressOffsetMs||"0");isNaN(l)?r_.prototype.init.call(this,n,Z,F,y):r_.prototype.init.call(this,n,Z,F,y,l);n=Z.headline;F=g.e(Z.adAvatar,ne);n&&F?(this.headline=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,this.headline),this.headline.oY(this.Vg("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Tb("ad-simple-attributed-string"),new Wh(n)), this.adAvatar=new Pw(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,this.adAvatar),this.adAvatar.oY(this.Vg("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Tb("ad-avatar"),F)):this.V.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");n=g.e(Z.adGridCardCollection,rbn);this.adGridCardCollection.init(Tb("ad-grid-card-collection"),n);Z=g.e(Z.adButton,F_);this.adButton.init(Tb("ad-button"),Z); this.hide()}else g.ZW(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.ZW(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.Q.onClick=function(n){(this.adButton&&g.Uq(this.adButton.element,n.target)||this.adAvatar&&g.Uq(this.adAvatar.element,n.target))&&this.api.pauseVideo();r_.prototype.onClick.call(this,n);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.Q.Ws=function(){}; g.Q.clear=function(){this.hide();var n;(n=this.headline)==null||n.clear();var Z;(Z=this.adAvatar)==null||Z.clear();this.adGridCardCollection.clear();this.adButton.clear();r_.prototype.clear.call(this)}; g.Q.show=function(){var n;(n=this.headline)==null||n.show();var Z;(Z=this.adAvatar)==null||Z.show();this.adGridCardCollection.show();this.adButton.show();r_.prototype.show.call(this)}; g.Q.hide=function(){var n;(n=this.headline)==null||n.hide();var Z;(Z=this.adAvatar)==null||Z.hide();this.adGridCardCollection.hide();this.adButton.hide();r_.prototype.hide.call(this)}; g.Q.JR=function(n){n==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):n==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):n==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))};g.d(Vf,CW); Vf.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});if(Z.attributes===void 0)g.ZW(Error("No attributes found in AdDetailsLineViewModel."));else if(Z.style===void 0)g.ZW(Error("No style found in AdDetailsLineViewModel."));else{n=g.Y(Z.attributes);for(var F=n.next();!F.done;F=n.next())if(F=F.value,F.text!==void 0){F=F.text;var y=Z.style,l=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);g.S(this,l);l.oY(this.element);a:switch(y){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":y="ytp-ad-details-line__text--style-responsive"; break a;default:y="ytp-ad-details-line__text--style-standard"}l.element.classList.add(y);l.init(Tb("ad-simple-attributed-string"),new Wh(F));this.N.push(l)}this.show()}}; Vf.prototype.show=function(){this.N.forEach(function(n){n.show()}); CW.prototype.show.call(this)}; Vf.prototype.clear=function(){this.hide()}; Vf.prototype.hide=function(){this.N.forEach(function(n){n.hide()}); CW.prototype.hide.call(this)};g.d(Us,CW);Us.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});var F,y;(n=((y=Cde(((F=Z.image)==null?void 0:F.sources)||[]))==null?void 0:y.url)||"")&&n.length?(F=this.Vg("ytp-image-background-image"),g.a$(F,"backgroundImage","url("+n+")"),Z.blurLevel!==void 0&&g.a$(F,"filter","blur("+Z.blurLevel+"px)"),Z.gradient!==void 0&&(Z=new g.R({U:"div",s8:["ytp-image-background--gradient-vertical"]}),g.S(this,Z),Z.oY(this.element)),this.show()):g.ZW(Error("Failed to get imageUrl in ImageBackground."))}; Us.prototype.clear=function(){this.hide()};g.d(S1j,By);g.Q=S1j.prototype;g.Q.init=function(n,Z){By.prototype.init.call(this,n,Z,{});g.a$(this.T,"stroke-dasharray","0 "+this.X);this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){j8(this);By.prototype.hide.call(this)}; g.Q.show=function(){Uk(this);By.prototype.show.call(this)}; g.Q.Np=function(){this.hide()}; g.Q.m7=function(){if(this.N){var n=this.N.getProgressState();n!=null&&n.current!=null&&g.a$(this.T,"stroke-dasharray",n.current/n.seekableEnd*this.X+" "+this.X)}};g.d(wB,CW); wB.prototype.init=function(n,Z){CW.prototype.init.call(this,n,Z,{});if(uyn(Z)){this.adAvatar=new Pw(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);g.S(this,this.adAvatar);this.adAvatar.oY(this.Vg("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Tb("ad-avatar"),g.e(Z.adAvatar,ne));this.headline=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr);g.S(this,this.headline);this.headline.oY(this.Vg("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(Tb("ad-simple-attributed-string"),new Wh(Z.headline));if(n=g.e(Z.adDetailsLine,IPU))this.detailsLine=new Vf(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,this.detailsLine),this.detailsLine.oY(this.Vg("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Tb("ad-details-line"),n);this.adButton=new dM(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,!0);g.S(this,this.adButton); this.adButton.oY(this.Vg("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Tb("ad-button"),g.e(Z.adButton,F_));this.adBadge=new wp(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,!0);g.S(this,this.adBadge);this.adBadge.oY(this.V);this.adBadge.init(Tb("ad-badge"),g.e(Z.adBadge,ZO));this.adInfoButton=new cZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.element,void 0,!0);g.S(this,this.adInfoButton);this.adInfoButton.oY(this.V); this.adInfoButton.init(Tb("ad-info-hover-text-button"),g.e(Z.adInfoRenderer,uH),this.macros);if(n=g.e(Z.skipAdButton,gR3))this.skipAdButton=new Nb(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,this.skipAdButton),this.skipAdButton.oY(this.element),this.skipAdButton.init(Tb("skip-button"),n);this.X=new gG(Z.durationMilliseconds);g.S(this,this.X);if(n=g.e(Z.countdownViewModel,CDK))this.N=new S1j(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr,this.X),g.S(this, this.N),this.N.oY(this.Vg("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.N.init(Tb("timed-pie-countdown"),n);if(Z=g.e(Z.imageBackground,WvK))this.imageBackground=new Us(this.api,this.layoutId,this.interactionLoggingClientData,this.Hr),g.S(this,this.imageBackground),this.imageBackground.oY(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Tb("image-background"), Z);this.show();this.element.focus()}}; wB.prototype.clear=function(){g.xU(this.T);this.hide()}; wB.prototype.show=function(){acf(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();CW.prototype.show.call(this)}; wB.prototype.hide=function(){acf(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.N&&this.N.hide();this.imageBackground&&this.imageBackground.hide();CW.prototype.hide.call(this)};g.d(Bl,g.Xu);g.Q=Bl.prototype;g.Q.Tg=function(){return 1E3*this.api.getDuration(this.cf,!1)}; g.Q.stop=function(){this.N&&this.handler.o0(this.N)}; g.Q.jO=function(){var n=this.api.getProgressState(this.cf);this.X={seekableStart:n.seekableStart,seekableEnd:n.seekableEnd,current:this.api.getCurrentTime(this.cf,!1)};this.publish("h")}; g.Q.getProgressState=function(){return this.X}; g.Q.TZ=function(n){g.On(n,2)&&this.publish("g")};var LtG="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.d(h0,Jv); h0.prototype.T=function(n){var Z=n.id,F=n.content,y=F.componentType;if(!LtG.includes(y))switch(n.actionType){case 1:n=this.api;var l=this.Hr,m=F.layoutId,a=F.interactionLoggingClientData,D=F instanceof NN?F.N8:!1,p=F instanceof NN||F instanceof Ze?F.tb:!1;a=a===void 0?{}:a;D=D===void 0?!1:D;p=p===void 0?!1:p;switch(y){case "invideo-overlay":n=new Pa7(n,m,a,l);break;case "player-overlay":n=new gB(n,m,a,l,new Bl(n),p);break;case "player-overlay-layout":n=new Mj(n,m,a,l,new Bl(n));break;case "survey":n= new tE(n,m,a,l);break;case "ad-action-interstitial":n=new wZ(n,m,a,l,D,p);break;case "video-interstitial-buttoned-centered":n=new wB(n,m,a,l);break;case "survey-interstitial":n=new vr(n,m,a,l);break;case "ad-message":n=new lnQ(n,m,a,l,new Bl(n,1));break;case "player-underlay":n=new uie(n,m,a,l);break;case "display-underlay-text-grid-cards":n=new kzP(n,m,a,l,new Bl(n));break;default:n=null}if(!n){g.yi(Error("No UI component returned from ComponentFactory for type: "+y));break}g.I4(this.components, Z)?g.yi(Error("Ad UI component already registered: "+Z)):this.components[Z]=n;n.bind(F);F instanceof z3Q?this.X?this.X.append(n.er):g.yi(Error("Underlay view was not created but UnderlayRenderer was created")):this.V.append(n.er);break;case 2:Z=AIj(this,n);if(Z==null)break;Z.bind(F);break;case 3:F=AIj(this,n),F!=null&&(g.xA(F),g.I4(this.components,Z)?(F=this.components,Z in F&&delete F[Z]):g.yi(Error("Ad UI component does not exist: "+Z)))}}; h0.prototype.IY=function(){g.rk(Object.values(this.components));this.components={};Jv.prototype.IY.call(this)};g.d(Eo,g.J0);g.Q=Eo.prototype;g.Q.create=function(){try{fAQ(this),this.load(),this.created=!0,fAQ(this)}catch(n){wU(n instanceof Error?n:String(n))}}; g.Q.load=function(){A$n(this)}; g.Q.destroy=function(){var n=this.player.getVideoData(1);this.N.N.dn.YR(n&&n.clientPlaybackNonce||"");this.unload();this.created=!1}; g.Q.unload=function(){g.J0.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(Z){wU(Z instanceof Error?Z:String(Z))}if(this.X!=null){var n=this.X;this.X=null;n.dispose()}this.T.reset()}; g.Q.D1=function(){return!1}; g.Q.getAdState=function(){return-1}; g.Q.getOptions=function(){return Object.values(pkI)}; g.Q.G5=function(n,Z){Z=Z===void 0?{}:Z;switch(n){case "replaceUrlMacros":return n=Z,n.url?(Z=KY7(this.player),Object.assign(Z,n.K5T),n=g.tM(n.url,Z)):n=null,n;case "onAboutThisAdPopupClosed":this.J0(Z);break;case "executeCommand":n=Z;n.command&&n.layoutId&&this.executeCommand(n);break;default:return null}}; g.Q.aE=function(n){var Z;return!((Z=this.N.N.Je)==null||!Z.get().aE(n))}; g.Q.J0=function(n){n.isMuted&&iKo(YK(this.N).Bn,YK(this.N).Vq,n.layoutId);this.Cf&&this.Cf.J0()}; g.Q.executeCommand=function(n){YK(this.N).Hr.executeCommand(n.command,n.layoutId)};g.pv("yt.player.Application.create",g.vs.create);g.pv("yt.player.Application.createAlternate",g.vs.create);QWj(tX(),D$U);var qqx=g.Di("ytcsi.tick");qqx&&qqx("pe");g.hQ("ad",Eo);g.d(g.As,g.I);g.As.prototype.start=function(n,Z,F){this.config={from:n,to:Z,duration:F,startTime:(0,g.tP)()};this.next()}; g.As.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.As.prototype.next=function(){if(this.config){var n=this.config,Z=n.from,F=n.to,y=n.duration;n=n.startTime;var l=(0,g.tP)()-n;n=this.N;y=jnK(n,l/y);if(y==0)n=n.J;else if(y==1)n=n.L;else{l=Y7(n.J,n.S,y);var m=Y7(n.S,n.C,y);n=Y7(n.C,n.L,y);l=Y7(l,m,y);m=Y7(m,n,y);n=Y7(l,m,y)}n=g.mk(n,0,1);this.callback(Z+(F-Z)*n);n<1&&this.delay.start()}};g.d(g.DO,g.R);g.Q=g.DO.prototype;g.Q.hasSuggestions=function(){return this.suggestionData.length>0}; g.Q.Ez=function(){this.X&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.Q.show=function(){g.R.prototype.show.call(this);HjP(this)}; g.Q.I3=function(){this.X&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.Q.Aj=function(){this.Ln(this.api.Br().getPlayerSize())}; g.Q.Ln=function(n){var Z=this.api.isEmbedsShortsMode()?.5625:16/9,F=this.api.AX();n=n.width-(F?112:58);F=Math.ceil(n/(F?320:192));var y=(n-F*8)/F;Z=Math.floor(y/Z);for(var l=g.Y(this.N),m=l.next();!m.done;m=l.next())m=m.value.Vg("ytp-suggestion-image"),m.style.width=y+"px",m.style.height=Z+"px";this.suggestions.element.style.height=Z+"px";this.V=y;this.J=Z;this.containerWidth=n;this.columns=F;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.a8(this)}; g.Q.onVideoDataChange=function(){var n=this.api.B(),Z=this.api.getVideoData();this.S=Z.vV?!1:n.V;this.suggestionData=Z.suggestions?g.I$(Z.suggestions,function(F){return F&&!F.playlistId}):[]; dMQ(this);Z.vV?this.title.update({title:g.xq("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:Z.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.Q.scrollTo=function(n){n=g.mk(n,this.containerWidth-this.suggestionData.length*(this.V+8),0);this.C.start(this.scrollPosition,n,1E3);this.scrollPosition=n;g.a8(this);HjP(this)};})(_yt_player);